@stigmer/server-slim 0.1.0

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 (564) hide show
  1. package/README.md +3 -0
  2. package/console/404.html +1 -0
  3. package/console/__next.__PAGE__.txt +54 -0
  4. package/console/__next._full.txt +71 -0
  5. package/console/__next._index.txt +62 -0
  6. package/console/__next._tree.txt +6 -0
  7. package/console/_next/static/GjBokeF86FffwftazOhh6/_buildManifest.js +11 -0
  8. package/console/_next/static/GjBokeF86FffwftazOhh6/_clientMiddlewareManifest.js +1 -0
  9. package/console/_next/static/GjBokeF86FffwftazOhh6/_ssgManifest.js +1 -0
  10. package/console/_next/static/chunks/0376wi8qbsw94.js +1 -0
  11. package/console/_next/static/chunks/04cglffeuwumk.js +1 -0
  12. package/console/_next/static/chunks/04d276dp3qb52.js +1 -0
  13. package/console/_next/static/chunks/05526ws9tzwim.js +1 -0
  14. package/console/_next/static/chunks/05t5235u7o-c4.js +25 -0
  15. package/console/_next/static/chunks/06fz-g9t73bd6.js +4 -0
  16. package/console/_next/static/chunks/0789xt7opwvm-.js +24 -0
  17. package/console/_next/static/chunks/07twy5plc911w.js +1 -0
  18. package/console/_next/static/chunks/08-p5zefc1rea.js +1 -0
  19. package/console/_next/static/chunks/085db4op75mf5.js +1 -0
  20. package/console/_next/static/chunks/0923388wak11-.js +1 -0
  21. package/console/_next/static/chunks/0_7s7fzux7kiv.js +1 -0
  22. package/console/_next/static/chunks/0_bjj6hug8d9a.js +1 -0
  23. package/console/_next/static/chunks/0_zscrk6o0d0-.js +1 -0
  24. package/console/_next/static/chunks/0a4x97q7frgj3.js +1 -0
  25. package/console/_next/static/chunks/0ab5jlm8l0aud.js +1 -0
  26. package/console/_next/static/chunks/0c_c2b4z1yc02.js +1 -0
  27. package/console/_next/static/chunks/0cuyycns49hl4.js +1 -0
  28. package/console/_next/static/chunks/0cz1d0mv5g_q7.js +1 -0
  29. package/console/_next/static/chunks/0d8f3-znyc_to.js +1 -0
  30. package/console/_next/static/chunks/0e-f1rkyz_u2k.js +1 -0
  31. package/console/_next/static/chunks/0ffx83gbnwq09.js +28 -0
  32. package/console/_next/static/chunks/0fyno0jk61txk.js +115 -0
  33. package/console/_next/static/chunks/0ggwoicp90w_s.js +1 -0
  34. package/console/_next/static/chunks/0h_7_i44vofe3.js +1 -0
  35. package/console/_next/static/chunks/0hagmppwo8s-f.js +1 -0
  36. package/console/_next/static/chunks/0hfvbn6c9k3pf.js +1 -0
  37. package/console/_next/static/chunks/0hw7vilkfpzlc.js +1 -0
  38. package/console/_next/static/chunks/0kb63xcvghh_3.js +1 -0
  39. package/console/_next/static/chunks/0ko5wsi6kukgd.js +1 -0
  40. package/console/_next/static/chunks/0kq99qin4db-q.js +1 -0
  41. package/console/_next/static/chunks/0kqg4u5n17gje.js +1 -0
  42. package/console/_next/static/chunks/0ky9qppyx1n57.js +62 -0
  43. package/console/_next/static/chunks/0og4_5pph-mhm.js +1 -0
  44. package/console/_next/static/chunks/0p7p-bpdrqx75.js +1 -0
  45. package/console/_next/static/chunks/0q2bnr94vvuc2.js +1 -0
  46. package/console/_next/static/chunks/0q3sxhnylk_gn.js +1 -0
  47. package/console/_next/static/chunks/0qg6l3tattq3j.js +1 -0
  48. package/console/_next/static/chunks/0qwyk_70quvjh.js +1 -0
  49. package/console/_next/static/chunks/0qzyqii8_m5r2.js +1 -0
  50. package/console/_next/static/chunks/0rlfx91598uvc.js +1 -0
  51. package/console/_next/static/chunks/0s9njms3lumhx.js +1 -0
  52. package/console/_next/static/chunks/0srualwd948m1.js +29 -0
  53. package/console/_next/static/chunks/0u4m2805tgi7x.js +1 -0
  54. package/console/_next/static/chunks/0udcs-1vq74rp.js +1 -0
  55. package/console/_next/static/chunks/0vno04lmwdchj.js +1 -0
  56. package/console/_next/static/chunks/0vt1_fu_q116n.js +1 -0
  57. package/console/_next/static/chunks/0vuq85gcb9zcl.js +1 -0
  58. package/console/_next/static/chunks/0wxazby0i4xu3.js +5 -0
  59. package/console/_next/static/chunks/0yeh2zqwmmec0.js +22 -0
  60. package/console/_next/static/chunks/0zvl88sijsrqk.js +1 -0
  61. package/console/_next/static/chunks/110bgpy30m6m6.js +1 -0
  62. package/console/_next/static/chunks/14ipylvs6qyyw.js +1 -0
  63. package/console/_next/static/chunks/1745jt9onokna.js +1 -0
  64. package/console/_next/static/chunks/177rfq0tsoku9.js +4 -0
  65. package/console/_next/static/chunks/17mfsiiquey1d.js +1 -0
  66. package/console/_next/static/chunks/197iuvi8udifl.js +1 -0
  67. package/console/_next/static/chunks/1_2-z0tjk0xio.js +1 -0
  68. package/console/_next/static/chunks/1_gh5a14dqnji.js +1 -0
  69. package/console/_next/static/chunks/1ame8n7x9g3xc.js +1 -0
  70. package/console/_next/static/chunks/1apepr-7dz16b.js +1 -0
  71. package/console/_next/static/chunks/1dtukwrl8nulc.js +1 -0
  72. package/console/_next/static/chunks/1e0br64ibniud.js +24 -0
  73. package/console/_next/static/chunks/1fm-45g777ifx.js +1 -0
  74. package/console/_next/static/chunks/1g_iha5barqef.js +1 -0
  75. package/console/_next/static/chunks/1glr_lki18csr.js +2 -0
  76. package/console/_next/static/chunks/1hl355w6m5bp5.js +1 -0
  77. package/console/_next/static/chunks/1id3p9v9v5knn.js +1 -0
  78. package/console/_next/static/chunks/1j6kp4gg0_ylt.js +80 -0
  79. package/console/_next/static/chunks/1jssq3ch7qgd6.js +60 -0
  80. package/console/_next/static/chunks/1jzfyfh-3gqlb.js +1 -0
  81. package/console/_next/static/chunks/1k3d5c49mpp-2.js +1 -0
  82. package/console/_next/static/chunks/1kte_bxw9m-ie.js +1 -0
  83. package/console/_next/static/chunks/1lw52jm27gon2.js +1 -0
  84. package/console/_next/static/chunks/1m9e28v8syzxx.js +34 -0
  85. package/console/_next/static/chunks/1mrmq_pigo_yb.js +1 -0
  86. package/console/_next/static/chunks/1muf1a96cgbv5.js +1 -0
  87. package/console/_next/static/chunks/1n1x0ykt8by6w.js +1 -0
  88. package/console/_next/static/chunks/1qu0tqybdtj0_.js +1 -0
  89. package/console/_next/static/chunks/1r8itpdfffwxa.js +1 -0
  90. package/console/_next/static/chunks/1r_opkrpbuykx.js +1 -0
  91. package/console/_next/static/chunks/1tl0h3c_bp62t.js +1 -0
  92. package/console/_next/static/chunks/1v1m1fr8f0yle.js +1 -0
  93. package/console/_next/static/chunks/1v34vj52v7q0g.js +1 -0
  94. package/console/_next/static/chunks/1wztfxoxnu5_9.js +1 -0
  95. package/console/_next/static/chunks/1x7exm5d_hhb8.js +153 -0
  96. package/console/_next/static/chunks/1xwdphzrhi9cn.js +1 -0
  97. package/console/_next/static/chunks/1yc4gdqzxa5ie.js +1 -0
  98. package/console/_next/static/chunks/1zunrzvni97zi.js +1 -0
  99. package/console/_next/static/chunks/1zv6mtmekep40.js +36 -0
  100. package/console/_next/static/chunks/2-jaie5wchnsy.js +1 -0
  101. package/console/_next/static/chunks/20aa5hen470pm.js +1 -0
  102. package/console/_next/static/chunks/2116ko93nwgx8.js +1 -0
  103. package/console/_next/static/chunks/23vk0ig36j0he.js +1 -0
  104. package/console/_next/static/chunks/245vlws7l85dk.js +1 -0
  105. package/console/_next/static/chunks/24__o4dkdytc8.js +1 -0
  106. package/console/_next/static/chunks/24iwqo9ejhxl8.js +127 -0
  107. package/console/_next/static/chunks/24o9ia1be2cze.js +1 -0
  108. package/console/_next/static/chunks/25aea0bgjydel.css +1 -0
  109. package/console/_next/static/chunks/26-p2jxr4f20d.js +1 -0
  110. package/console/_next/static/chunks/28c--yt2jaxxf.js +1 -0
  111. package/console/_next/static/chunks/28vym848oh1ng.js +1 -0
  112. package/console/_next/static/chunks/29ou6qb6p1lni.js +1 -0
  113. package/console/_next/static/chunks/2aalpmeu_tni-.js +3 -0
  114. package/console/_next/static/chunks/2c4ifddi2dal0.js +20 -0
  115. package/console/_next/static/chunks/2ckm4edha_gkb.js +43 -0
  116. package/console/_next/static/chunks/2d5ods6a8n6yd.js +1 -0
  117. package/console/_next/static/chunks/2dm5g7ylrulvb.js +15 -0
  118. package/console/_next/static/chunks/2dtosus35_o5k.js +1 -0
  119. package/console/_next/static/chunks/2e0_cm1_wv-b4.js +1 -0
  120. package/console/_next/static/chunks/2fh_0n31hibdi.js +226 -0
  121. package/console/_next/static/chunks/2fjsaw5pgjcqb.js +1 -0
  122. package/console/_next/static/chunks/2h5pk3yu15nwr.js +1 -0
  123. package/console/_next/static/chunks/2i7w4yyf77gzw.js +1 -0
  124. package/console/_next/static/chunks/2jo3q7mfk65kd.js +1 -0
  125. package/console/_next/static/chunks/2jutbapb-t64n.js +31 -0
  126. package/console/_next/static/chunks/2k6tx8-w1creu.js +148 -0
  127. package/console/_next/static/chunks/2kh_m5onqedc5.js +1 -0
  128. package/console/_next/static/chunks/2ltzdgpjq3v6a.js +1 -0
  129. package/console/_next/static/chunks/2o2ftjhtb8od3.js +2 -0
  130. package/console/_next/static/chunks/2pyn841-jq-oo.js +10 -0
  131. package/console/_next/static/chunks/2rn289343m-y_.js +139 -0
  132. package/console/_next/static/chunks/2t2l3h2w_04bb.js +1 -0
  133. package/console/_next/static/chunks/2v11hooq3xd5t.js +15 -0
  134. package/console/_next/static/chunks/2vsg5t3fnqmfn.js +1 -0
  135. package/console/_next/static/chunks/2wayafjfoiq7q.css +6 -0
  136. package/console/_next/static/chunks/2xsvteosdtsb-.js +1 -0
  137. package/console/_next/static/chunks/2y-x8nhnufxzb.js +1 -0
  138. package/console/_next/static/chunks/2za4b-si894xj.js +1 -0
  139. package/console/_next/static/chunks/3-igvp1-n4pxs.js +104 -0
  140. package/console/_next/static/chunks/3-k25f-adpe5f.js +1 -0
  141. package/console/_next/static/chunks/3-pzmot7dbrfa.js +1 -0
  142. package/console/_next/static/chunks/3-x5lrgs3wcpl.js +80 -0
  143. package/console/_next/static/chunks/30nrkrr9518_z.js +1 -0
  144. package/console/_next/static/chunks/316lh1-hzgnod.js +1 -0
  145. package/console/_next/static/chunks/31wj1au8smjge.js +1 -0
  146. package/console/_next/static/chunks/329o6uup9qmb3.js +1 -0
  147. package/console/_next/static/chunks/34_1w929-5o6r.js +287 -0
  148. package/console/_next/static/chunks/35szx1ga574xu.js +1 -0
  149. package/console/_next/static/chunks/36tg522pkl8hm.js +1 -0
  150. package/console/_next/static/chunks/37-y9fgnir35a.js +1 -0
  151. package/console/_next/static/chunks/39wss1g0ffaqt.js +1 -0
  152. package/console/_next/static/chunks/3_cv0gj1bm3l6.js +1 -0
  153. package/console/_next/static/chunks/3_f8gd_6816re.js +101 -0
  154. package/console/_next/static/chunks/3a4qfuhsxefh2.js +12 -0
  155. package/console/_next/static/chunks/3asb3ztrvogwl.js +1 -0
  156. package/console/_next/static/chunks/3bsxbw10qhvqo.js +1 -0
  157. package/console/_next/static/chunks/3by94g38ljxl1.js +1 -0
  158. package/console/_next/static/chunks/3c_6owv8m4rta.js +90 -0
  159. package/console/_next/static/chunks/3ea2eo8b5gmju.js +2 -0
  160. package/console/_next/static/chunks/3ercnb2rksl_a.js +1 -0
  161. package/console/_next/static/chunks/3esxfmmm0ypxb.js +2 -0
  162. package/console/_next/static/chunks/3exiw74xbmika.js +1 -0
  163. package/console/_next/static/chunks/3f88-tc5u2heg.js +1 -0
  164. package/console/_next/static/chunks/3f_axahrombdp.js +1 -0
  165. package/console/_next/static/chunks/3gz91kn_v2lfa.js +1 -0
  166. package/console/_next/static/chunks/3i9z3x7tka5x2.js +1 -0
  167. package/console/_next/static/chunks/3ih4kfufd47st.js +1 -0
  168. package/console/_next/static/chunks/3itfi41ayfopd.js +15 -0
  169. package/console/_next/static/chunks/3iwgig-fgcscf.js +15 -0
  170. package/console/_next/static/chunks/3jf8qh1ev3gb4.js +2 -0
  171. package/console/_next/static/chunks/3l6svfyqdsq6o.js +1 -0
  172. package/console/_next/static/chunks/3lj0i-qlb4ah2.js +64 -0
  173. package/console/_next/static/chunks/3lmx6tkunfd3u.js +1 -0
  174. package/console/_next/static/chunks/3lp4d64he__am.js +152 -0
  175. package/console/_next/static/chunks/3m_jz3b2j38nn.js +1 -0
  176. package/console/_next/static/chunks/3oe9w1b39nzmn.js +3 -0
  177. package/console/_next/static/chunks/3on7r_d8o-kna.js +1 -0
  178. package/console/_next/static/chunks/3pbpowf3kdu5z.js +119 -0
  179. package/console/_next/static/chunks/3pwwv0u29nk8c.js +23 -0
  180. package/console/_next/static/chunks/3rweyye6o1z6b.js +79 -0
  181. package/console/_next/static/chunks/3sdqgrmvxm_u4.js +201 -0
  182. package/console/_next/static/chunks/3t3vbs-x5hixj.js +1 -0
  183. package/console/_next/static/chunks/3thqnz0a5zy-h.js +9 -0
  184. package/console/_next/static/chunks/3udubdawo7583.js +1 -0
  185. package/console/_next/static/chunks/3uz4lg6e199sb.js +1 -0
  186. package/console/_next/static/chunks/3v2mkz_46uei2.js +1 -0
  187. package/console/_next/static/chunks/3w5crjmhb-3um.js +1 -0
  188. package/console/_next/static/chunks/3waxhrmr_82j5.js +93 -0
  189. package/console/_next/static/chunks/3zmlzef_jxopu.js +1 -0
  190. package/console/_next/static/chunks/3zqvalj8nr-1y.js +1 -0
  191. package/console/_next/static/chunks/40igag4gq4k0a.js +77 -0
  192. package/console/_next/static/chunks/40wq034qcdji_.js +1 -0
  193. package/console/_next/static/chunks/44crhetqymq_e.js +34 -0
  194. package/console/_next/static/chunks/44q2pv6a3w19q.js +1 -0
  195. package/console/_next/static/chunks/turbopack-2u1d16houkiyo.js +1 -0
  196. package/console/_next/static/media/GeistMono_Variable-s.p.21mfa-4xv0w3g.woff2 +0 -0
  197. package/console/_next/static/media/Geist_Variable-s.p.217kyf1h_p0cg.woff2 +0 -0
  198. package/console/_next/static/media/IBMPlexMono_Medium-s.2v25u5rd2tsaf.woff2 +0 -0
  199. package/console/_next/static/media/IBMPlexMono_Regular-s.09u63wo58kris.woff2 +0 -0
  200. package/console/_next/static/media/IBMPlexSans_Bold-s.3iicodgz0epim.woff2 +0 -0
  201. package/console/_next/static/media/IBMPlexSans_Light-s.3ntejfdcyftfg.woff2 +0 -0
  202. package/console/_next/static/media/IBMPlexSans_Medium-s.3n25cgfiu6qss.woff2 +0 -0
  203. package/console/_next/static/media/IBMPlexSans_Regular-s.2e_-c_m03txvi.woff2 +0 -0
  204. package/console/_next/static/media/IBMPlexSans_SemiBold-s.2sutjpuns2xc5.woff2 +0 -0
  205. package/console/_next/static/media/Inter_Variable-s.2-lfiv6s83kzn.woff2 +0 -0
  206. package/console/_next/static/media/Nunito_Variable-s.3r4_r9s3kxd_-.woff2 +0 -0
  207. package/console/_not-found/__next._full.txt +73 -0
  208. package/console/_not-found/__next._index.txt +62 -0
  209. package/console/_not-found/__next._not-found.__PAGE__.txt +61 -0
  210. package/console/_not-found/__next._tree.txt +5 -0
  211. package/console/_not-found.html +1 -0
  212. package/console/_not-found.txt +73 -0
  213. package/console/apple-touch-icon-dark.png +0 -0
  214. package/console/apple-touch-icon-light.png +0 -0
  215. package/console/auth/callback/__next._full.txt +82 -0
  216. package/console/auth/callback/__next._index.txt +62 -0
  217. package/console/auth/callback/__next._tree.txt +8 -0
  218. package/console/auth/callback/__next.auth.callback.__PAGE__.txt +67 -0
  219. package/console/auth/callback.html +1 -0
  220. package/console/auth/callback.txt +82 -0
  221. package/console/auth/oauth/callback/__next._full.txt +84 -0
  222. package/console/auth/oauth/callback/__next._index.txt +62 -0
  223. package/console/auth/oauth/callback/__next._tree.txt +9 -0
  224. package/console/auth/oauth/callback/__next.auth.oauth.callback.__PAGE__.txt +69 -0
  225. package/console/auth/oauth/callback.html +1 -0
  226. package/console/auth/oauth/callback.txt +84 -0
  227. package/console/brand-avatar.png +0 -0
  228. package/console/chat/__placeholder__/__next._full.txt +80 -0
  229. package/console/chat/__placeholder__/__next._index.txt +62 -0
  230. package/console/chat/__placeholder__/__next._tree.txt +8 -0
  231. package/console/chat/__placeholder__/__next.chat.$d$channel.__PAGE__.txt +65 -0
  232. package/console/chat/__placeholder__.html +1 -0
  233. package/console/chat/__placeholder__.txt +80 -0
  234. package/console/connect/__placeholder__/__next._full.txt +79 -0
  235. package/console/connect/__placeholder__/__next._index.txt +62 -0
  236. package/console/connect/__placeholder__/__next._tree.txt +8 -0
  237. package/console/connect/__placeholder__/__next.connect.$d$token.__PAGE__.txt +64 -0
  238. package/console/connect/__placeholder__.html +1 -0
  239. package/console/connect/__placeholder__.txt +79 -0
  240. package/console/conversations/__next._full.txt +79 -0
  241. package/console/conversations/__next._index.txt +62 -0
  242. package/console/conversations/__next._tree.txt +7 -0
  243. package/console/conversations/__next.conversations.__PAGE__.txt +64 -0
  244. package/console/conversations/__placeholder__/__placeholder__/__next._full.txt +83 -0
  245. package/console/conversations/__placeholder__/__placeholder__/__next._index.txt +62 -0
  246. package/console/conversations/__placeholder__/__placeholder__/__next._tree.txt +9 -0
  247. package/console/conversations/__placeholder__/__placeholder__/__next.conversations.$d$channelId.$d$key.__PAGE__.txt +68 -0
  248. package/console/conversations/__placeholder__/__placeholder__.html +1 -0
  249. package/console/conversations/__placeholder__/__placeholder__.txt +83 -0
  250. package/console/conversations.html +1 -0
  251. package/console/conversations.txt +79 -0
  252. package/console/dashboard/__next._full.txt +77 -0
  253. package/console/dashboard/__next._index.txt +62 -0
  254. package/console/dashboard/__next._tree.txt +7 -0
  255. package/console/dashboard/__next.dashboard.__PAGE__.txt +62 -0
  256. package/console/dashboard.html +1 -0
  257. package/console/dashboard.txt +77 -0
  258. package/console/desktop/billing/__next._full.txt +82 -0
  259. package/console/desktop/billing/__next._index.txt +62 -0
  260. package/console/desktop/billing/__next._tree.txt +8 -0
  261. package/console/desktop/billing/__next.desktop.billing.__PAGE__.txt +67 -0
  262. package/console/desktop/billing.html +1 -0
  263. package/console/desktop/billing.txt +82 -0
  264. package/console/embed.js +1 -0
  265. package/console/favicon-dark-16x16.png +0 -0
  266. package/console/favicon-dark-32x32.png +0 -0
  267. package/console/favicon-dark.ico +0 -0
  268. package/console/favicon-dark.svg +1 -0
  269. package/console/favicon-light-16x16.png +0 -0
  270. package/console/favicon-light-32x32.png +0 -0
  271. package/console/favicon-light.ico +0 -0
  272. package/console/favicon-light.svg +1 -0
  273. package/console/index.html +1 -0
  274. package/console/index.txt +71 -0
  275. package/console/invite/__placeholder__/__next._full.txt +80 -0
  276. package/console/invite/__placeholder__/__next._index.txt +62 -0
  277. package/console/invite/__placeholder__/__next._tree.txt +8 -0
  278. package/console/invite/__placeholder__/__next.invite.$d$token.__PAGE__.txt +65 -0
  279. package/console/invite/__placeholder__.html +1 -0
  280. package/console/invite/__placeholder__.txt +80 -0
  281. package/console/library/__next._full.txt +89 -0
  282. package/console/library/__next._index.txt +62 -0
  283. package/console/library/__next._tree.txt +7 -0
  284. package/console/library/__next.library.__PAGE__.txt +74 -0
  285. package/console/library/agents/__next._full.txt +94 -0
  286. package/console/library/agents/__next._index.txt +62 -0
  287. package/console/library/agents/__next._tree.txt +8 -0
  288. package/console/library/agents/__next.library.agents.__PAGE__.txt +79 -0
  289. package/console/library/agents/__placeholder__/__placeholder__/__next._full.txt +96 -0
  290. package/console/library/agents/__placeholder__/__placeholder__/__next._index.txt +62 -0
  291. package/console/library/agents/__placeholder__/__placeholder__/__next._tree.txt +10 -0
  292. package/console/library/agents/__placeholder__/__placeholder__/__next.library.agents.$d$org.$d$slug.__PAGE__.txt +81 -0
  293. package/console/library/agents/__placeholder__/__placeholder__.html +1 -0
  294. package/console/library/agents/__placeholder__/__placeholder__.txt +96 -0
  295. package/console/library/agents/new/__next._full.txt +99 -0
  296. package/console/library/agents/new/__next._index.txt +62 -0
  297. package/console/library/agents/new/__next._tree.txt +9 -0
  298. package/console/library/agents/new/__next.library.agents.new.__PAGE__.txt +84 -0
  299. package/console/library/agents/new.html +1 -0
  300. package/console/library/agents/new.txt +99 -0
  301. package/console/library/agents.html +1 -0
  302. package/console/library/agents.txt +94 -0
  303. package/console/library/environments/__next._full.txt +95 -0
  304. package/console/library/environments/__next._index.txt +62 -0
  305. package/console/library/environments/__next._tree.txt +8 -0
  306. package/console/library/environments/__next.library.environments.__PAGE__.txt +80 -0
  307. package/console/library/environments/__placeholder__/__placeholder__/__next._full.txt +97 -0
  308. package/console/library/environments/__placeholder__/__placeholder__/__next._index.txt +62 -0
  309. package/console/library/environments/__placeholder__/__placeholder__/__next._tree.txt +10 -0
  310. package/console/library/environments/__placeholder__/__placeholder__/__next.library.environments.$d$org.$d$slug.__PAGE__.txt +82 -0
  311. package/console/library/environments/__placeholder__/__placeholder__.html +1 -0
  312. package/console/library/environments/__placeholder__/__placeholder__.txt +97 -0
  313. package/console/library/environments/new/__next._full.txt +99 -0
  314. package/console/library/environments/new/__next._index.txt +62 -0
  315. package/console/library/environments/new/__next._tree.txt +9 -0
  316. package/console/library/environments/new/__next.library.environments.new.__PAGE__.txt +84 -0
  317. package/console/library/environments/new.html +1 -0
  318. package/console/library/environments/new.txt +99 -0
  319. package/console/library/environments.html +1 -0
  320. package/console/library/environments.txt +95 -0
  321. package/console/library/files/__next._full.txt +94 -0
  322. package/console/library/files/__next._index.txt +62 -0
  323. package/console/library/files/__next._tree.txt +8 -0
  324. package/console/library/files/__next.library.files.__PAGE__.txt +79 -0
  325. package/console/library/files.html +1 -0
  326. package/console/library/files.txt +94 -0
  327. package/console/library/plugins/__next._full.txt +94 -0
  328. package/console/library/plugins/__next._index.txt +62 -0
  329. package/console/library/plugins/__next._tree.txt +8 -0
  330. package/console/library/plugins/__next.library.plugins.__PAGE__.txt +79 -0
  331. package/console/library/plugins/__placeholder__/__placeholder__/__next._full.txt +97 -0
  332. package/console/library/plugins/__placeholder__/__placeholder__/__next._index.txt +62 -0
  333. package/console/library/plugins/__placeholder__/__placeholder__/__next._tree.txt +10 -0
  334. package/console/library/plugins/__placeholder__/__placeholder__/__next.library.plugins.$d$org.$d$slug.__PAGE__.txt +82 -0
  335. package/console/library/plugins/__placeholder__/__placeholder__.html +1 -0
  336. package/console/library/plugins/__placeholder__/__placeholder__.txt +97 -0
  337. package/console/library/plugins/upload/__next._full.txt +99 -0
  338. package/console/library/plugins/upload/__next._index.txt +62 -0
  339. package/console/library/plugins/upload/__next._tree.txt +9 -0
  340. package/console/library/plugins/upload/__next.library.plugins.upload.__PAGE__.txt +84 -0
  341. package/console/library/plugins/upload.html +1 -0
  342. package/console/library/plugins/upload.txt +99 -0
  343. package/console/library/plugins.html +1 -0
  344. package/console/library/plugins.txt +94 -0
  345. package/console/library/routines/__next._full.txt +94 -0
  346. package/console/library/routines/__next._index.txt +62 -0
  347. package/console/library/routines/__next._tree.txt +8 -0
  348. package/console/library/routines/__next.library.routines.__PAGE__.txt +79 -0
  349. package/console/library/routines/__placeholder__/__placeholder__/__next._full.txt +97 -0
  350. package/console/library/routines/__placeholder__/__placeholder__/__next._index.txt +62 -0
  351. package/console/library/routines/__placeholder__/__placeholder__/__next._tree.txt +10 -0
  352. package/console/library/routines/__placeholder__/__placeholder__/__next.library.routines.$d$org.$d$slug.__PAGE__.txt +82 -0
  353. package/console/library/routines/__placeholder__/__placeholder__.html +1 -0
  354. package/console/library/routines/__placeholder__/__placeholder__.txt +97 -0
  355. package/console/library/routines/new/__next._full.txt +98 -0
  356. package/console/library/routines/new/__next._index.txt +62 -0
  357. package/console/library/routines/new/__next._tree.txt +9 -0
  358. package/console/library/routines/new/__next.library.routines.new.__PAGE__.txt +83 -0
  359. package/console/library/routines/new.html +1 -0
  360. package/console/library/routines/new.txt +98 -0
  361. package/console/library/routines.html +1 -0
  362. package/console/library/routines.txt +94 -0
  363. package/console/library/skills/__next._full.txt +94 -0
  364. package/console/library/skills/__next._index.txt +62 -0
  365. package/console/library/skills/__next._tree.txt +8 -0
  366. package/console/library/skills/__next.library.skills.__PAGE__.txt +79 -0
  367. package/console/library/skills/__placeholder__/__placeholder__/__next._full.txt +96 -0
  368. package/console/library/skills/__placeholder__/__placeholder__/__next._index.txt +62 -0
  369. package/console/library/skills/__placeholder__/__placeholder__/__next._tree.txt +10 -0
  370. package/console/library/skills/__placeholder__/__placeholder__/__next.library.skills.$d$org.$d$slug.__PAGE__.txt +81 -0
  371. package/console/library/skills/__placeholder__/__placeholder__.html +1 -0
  372. package/console/library/skills/__placeholder__/__placeholder__.txt +96 -0
  373. package/console/library/skills/new/__next._full.txt +98 -0
  374. package/console/library/skills/new/__next._index.txt +62 -0
  375. package/console/library/skills/new/__next._tree.txt +9 -0
  376. package/console/library/skills/new/__next.library.skills.new.__PAGE__.txt +83 -0
  377. package/console/library/skills/new.html +1 -0
  378. package/console/library/skills/new.txt +98 -0
  379. package/console/library/skills.html +1 -0
  380. package/console/library/skills.txt +94 -0
  381. package/console/library.html +1 -0
  382. package/console/library.txt +89 -0
  383. package/console/login/__next._full.txt +81 -0
  384. package/console/login/__next._index.txt +62 -0
  385. package/console/login/__next._tree.txt +7 -0
  386. package/console/login/__next.login.__PAGE__.txt +66 -0
  387. package/console/login.html +1 -0
  388. package/console/login.txt +81 -0
  389. package/console/marketplace/__next._full.txt +81 -0
  390. package/console/marketplace/__next._index.txt +62 -0
  391. package/console/marketplace/__next._tree.txt +7 -0
  392. package/console/marketplace/__next.marketplace.__PAGE__.txt +66 -0
  393. package/console/marketplace.html +1 -0
  394. package/console/marketplace.txt +81 -0
  395. package/console/models/__next._full.txt +77 -0
  396. package/console/models/__next._index.txt +62 -0
  397. package/console/models/__next._tree.txt +7 -0
  398. package/console/models/__next.models.__PAGE__.txt +62 -0
  399. package/console/models.html +1 -0
  400. package/console/models.txt +77 -0
  401. package/console/oauth/slack/callback/__next._full.txt +84 -0
  402. package/console/oauth/slack/callback/__next._index.txt +62 -0
  403. package/console/oauth/slack/callback/__next._tree.txt +9 -0
  404. package/console/oauth/slack/callback/__next.oauth.slack.callback.__PAGE__.txt +69 -0
  405. package/console/oauth/slack/callback.html +1 -0
  406. package/console/oauth/slack/callback.txt +84 -0
  407. package/console/runs/__placeholder__/__next._full.txt +77 -0
  408. package/console/runs/__placeholder__/__next._index.txt +62 -0
  409. package/console/runs/__placeholder__/__next._tree.txt +8 -0
  410. package/console/runs/__placeholder__/__next.runs.$d$id.__PAGE__.txt +62 -0
  411. package/console/runs/__placeholder__.html +1 -0
  412. package/console/runs/__placeholder__.txt +77 -0
  413. package/console/sessions/__placeholder__/__next._full.txt +77 -0
  414. package/console/sessions/__placeholder__/__next._index.txt +62 -0
  415. package/console/sessions/__placeholder__/__next._tree.txt +8 -0
  416. package/console/sessions/__placeholder__/__next.sessions.$d$id.__PAGE__.txt +62 -0
  417. package/console/sessions/__placeholder__.html +1 -0
  418. package/console/sessions/__placeholder__.txt +77 -0
  419. package/console/settings/__next._full.txt +85 -0
  420. package/console/settings/__next._index.txt +62 -0
  421. package/console/settings/__next._tree.txt +7 -0
  422. package/console/settings/__next.settings.__PAGE__.txt +70 -0
  423. package/console/settings/access-history/__next._full.txt +87 -0
  424. package/console/settings/access-history/__next._index.txt +62 -0
  425. package/console/settings/access-history/__next._tree.txt +8 -0
  426. package/console/settings/access-history/__next.settings.access-history.__PAGE__.txt +72 -0
  427. package/console/settings/access-history.html +1 -0
  428. package/console/settings/access-history.txt +87 -0
  429. package/console/settings/account-preferences/__next._full.txt +87 -0
  430. package/console/settings/account-preferences/__next._index.txt +62 -0
  431. package/console/settings/account-preferences/__next._tree.txt +8 -0
  432. package/console/settings/account-preferences/__next.settings.account-preferences.__PAGE__.txt +72 -0
  433. package/console/settings/account-preferences.html +1 -0
  434. package/console/settings/account-preferences.txt +87 -0
  435. package/console/settings/api-keys/__next._full.txt +86 -0
  436. package/console/settings/api-keys/__next._index.txt +62 -0
  437. package/console/settings/api-keys/__next._tree.txt +8 -0
  438. package/console/settings/api-keys/__next.settings.api-keys.__PAGE__.txt +71 -0
  439. package/console/settings/api-keys.html +1 -0
  440. package/console/settings/api-keys.txt +86 -0
  441. package/console/settings/billing/__next._full.txt +89 -0
  442. package/console/settings/billing/__next._index.txt +62 -0
  443. package/console/settings/billing/__next._tree.txt +8 -0
  444. package/console/settings/billing/__next.settings.billing.__PAGE__.txt +74 -0
  445. package/console/settings/billing.html +1 -0
  446. package/console/settings/billing.txt +89 -0
  447. package/console/settings/channel-apps/__next._full.txt +87 -0
  448. package/console/settings/channel-apps/__next._index.txt +62 -0
  449. package/console/settings/channel-apps/__next._tree.txt +8 -0
  450. package/console/settings/channel-apps/__next.settings.channel-apps.__PAGE__.txt +72 -0
  451. package/console/settings/channel-apps.html +1 -0
  452. package/console/settings/channel-apps.txt +87 -0
  453. package/console/settings/federation-issuers/__next._full.txt +88 -0
  454. package/console/settings/federation-issuers/__next._index.txt +62 -0
  455. package/console/settings/federation-issuers/__next._tree.txt +8 -0
  456. package/console/settings/federation-issuers/__next.settings.federation-issuers.__PAGE__.txt +73 -0
  457. package/console/settings/federation-issuers.html +1 -0
  458. package/console/settings/federation-issuers.txt +88 -0
  459. package/console/settings/invitations/__next._full.txt +87 -0
  460. package/console/settings/invitations/__next._index.txt +62 -0
  461. package/console/settings/invitations/__next._tree.txt +8 -0
  462. package/console/settings/invitations/__next.settings.invitations.__PAGE__.txt +72 -0
  463. package/console/settings/invitations.html +1 -0
  464. package/console/settings/invitations.txt +87 -0
  465. package/console/settings/licenses/__next._full.txt +90 -0
  466. package/console/settings/licenses/__next._index.txt +62 -0
  467. package/console/settings/licenses/__next._tree.txt +8 -0
  468. package/console/settings/licenses/__next.settings.licenses.__PAGE__.txt +75 -0
  469. package/console/settings/licenses.html +1 -0
  470. package/console/settings/licenses.txt +90 -0
  471. package/console/settings/members/__next._full.txt +86 -0
  472. package/console/settings/members/__next._index.txt +62 -0
  473. package/console/settings/members/__next._tree.txt +8 -0
  474. package/console/settings/members/__next.settings.members.__PAGE__.txt +71 -0
  475. package/console/settings/members.html +1 -0
  476. package/console/settings/members.txt +86 -0
  477. package/console/settings/memory/__next._full.txt +86 -0
  478. package/console/settings/memory/__next._index.txt +62 -0
  479. package/console/settings/memory/__next._tree.txt +8 -0
  480. package/console/settings/memory/__next.settings.memory.__PAGE__.txt +71 -0
  481. package/console/settings/memory.html +1 -0
  482. package/console/settings/memory.txt +86 -0
  483. package/console/settings/model-catalog/__next._full.txt +89 -0
  484. package/console/settings/model-catalog/__next._index.txt +62 -0
  485. package/console/settings/model-catalog/__next._tree.txt +8 -0
  486. package/console/settings/model-catalog/__next.settings.model-catalog.__PAGE__.txt +74 -0
  487. package/console/settings/model-catalog.html +1 -0
  488. package/console/settings/model-catalog.txt +89 -0
  489. package/console/settings/notifications/__next._full.txt +89 -0
  490. package/console/settings/notifications/__next._index.txt +62 -0
  491. package/console/settings/notifications/__next._tree.txt +8 -0
  492. package/console/settings/notifications/__next.settings.notifications.__PAGE__.txt +74 -0
  493. package/console/settings/notifications.html +1 -0
  494. package/console/settings/notifications.txt +89 -0
  495. package/console/settings/oauth-apps/__next._full.txt +87 -0
  496. package/console/settings/oauth-apps/__next._index.txt +62 -0
  497. package/console/settings/oauth-apps/__next._tree.txt +8 -0
  498. package/console/settings/oauth-apps/__next.settings.oauth-apps.__PAGE__.txt +72 -0
  499. package/console/settings/oauth-apps.html +1 -0
  500. package/console/settings/oauth-apps.txt +87 -0
  501. package/console/settings/org-embedding/__next._full.txt +87 -0
  502. package/console/settings/org-embedding/__next._index.txt +62 -0
  503. package/console/settings/org-embedding/__next._tree.txt +8 -0
  504. package/console/settings/org-embedding/__next.settings.org-embedding.__PAGE__.txt +72 -0
  505. package/console/settings/org-embedding.html +1 -0
  506. package/console/settings/org-embedding.txt +87 -0
  507. package/console/settings/org-policies/__next._full.txt +87 -0
  508. package/console/settings/org-policies/__next._index.txt +62 -0
  509. package/console/settings/org-policies/__next._tree.txt +8 -0
  510. package/console/settings/org-policies/__next.settings.org-policies.__PAGE__.txt +72 -0
  511. package/console/settings/org-policies.html +1 -0
  512. package/console/settings/org-policies.txt +87 -0
  513. package/console/settings/org-preferences/__next._full.txt +87 -0
  514. package/console/settings/org-preferences/__next._index.txt +62 -0
  515. package/console/settings/org-preferences/__next._tree.txt +8 -0
  516. package/console/settings/org-preferences/__next.settings.org-preferences.__PAGE__.txt +72 -0
  517. package/console/settings/org-preferences.html +1 -0
  518. package/console/settings/org-preferences.txt +87 -0
  519. package/console/settings/org-profile/__next._full.txt +89 -0
  520. package/console/settings/org-profile/__next._index.txt +62 -0
  521. package/console/settings/org-profile/__next._tree.txt +8 -0
  522. package/console/settings/org-profile/__next.settings.org-profile.__PAGE__.txt +74 -0
  523. package/console/settings/org-profile.html +1 -0
  524. package/console/settings/org-profile.txt +89 -0
  525. package/console/settings/plans/__next._full.txt +89 -0
  526. package/console/settings/plans/__next._index.txt +62 -0
  527. package/console/settings/plans/__next._tree.txt +8 -0
  528. package/console/settings/plans/__next.settings.plans.__PAGE__.txt +74 -0
  529. package/console/settings/plans.html +1 -0
  530. package/console/settings/plans.txt +89 -0
  531. package/console/settings/service-accounts/__next._full.txt +87 -0
  532. package/console/settings/service-accounts/__next._index.txt +62 -0
  533. package/console/settings/service-accounts/__next._tree.txt +8 -0
  534. package/console/settings/service-accounts/__next.settings.service-accounts.__PAGE__.txt +72 -0
  535. package/console/settings/service-accounts.html +1 -0
  536. package/console/settings/service-accounts.txt +87 -0
  537. package/console/settings/teams/__next._full.txt +86 -0
  538. package/console/settings/teams/__next._index.txt +62 -0
  539. package/console/settings/teams/__next._tree.txt +8 -0
  540. package/console/settings/teams/__next.settings.teams.__PAGE__.txt +71 -0
  541. package/console/settings/teams.html +1 -0
  542. package/console/settings/teams.txt +86 -0
  543. package/console/settings/usage/__next._full.txt +86 -0
  544. package/console/settings/usage/__next._index.txt +62 -0
  545. package/console/settings/usage/__next._tree.txt +8 -0
  546. package/console/settings/usage/__next.settings.usage.__PAGE__.txt +71 -0
  547. package/console/settings/usage.html +1 -0
  548. package/console/settings/usage.txt +86 -0
  549. package/console/settings/vaults/__next._full.txt +86 -0
  550. package/console/settings/vaults/__next._index.txt +62 -0
  551. package/console/settings/vaults/__next._tree.txt +8 -0
  552. package/console/settings/vaults/__next.settings.vaults.__PAGE__.txt +71 -0
  553. package/console/settings/vaults.html +1 -0
  554. package/console/settings/vaults.txt +86 -0
  555. package/console/settings.html +1 -0
  556. package/console/settings.txt +85 -0
  557. package/main.js +1656 -0
  558. package/mappings.wasm +0 -0
  559. package/package.json +25 -0
  560. package/workflow-bundle-agent-execution.js +29297 -0
  561. package/workflow-bundle-evals.js +11997 -0
  562. package/workflow-bundle-grading.js +11155 -0
  563. package/workflow-bundle-routine.js +11300 -0
  564. package/workflow-worker-thread.cjs +111 -0
@@ -0,0 +1,148 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,279769,t=>{"use strict";var e=t.i(475058),i=t.i(810199),n=t.i(216888);function r(t){return t.innerRadius}function a(t){return t.outerRadius}function s(t){return t.startAngle}function l(t){return t.endAngle}function o(t){return t&&t.padAngle}function c(t,e,n,r,a,s,l){var o=t-n,c=e-r,h=(l?s:-s)/(0,i.N)(o*o+c*c),p=h*c,u=-h*o,y=t+p,d=e+u,f=n+p,g=r+u,x=(y+f)/2,m=(d+g)/2,k=f-y,b=g-d,_=k*k+b*b,v=a-s,w=y*g-f*d,$=(b<0?-1:1)*(0,i.N)((0,i.y)(0,v*v*_-w*w)),T=(w*b-k*$)/_,A=(-w*k-b*$)/_,M=(w*b+k*$)/_,S=(-w*k+b*$)/_,E=T-x,C=A-m,I=M-x,P=S-m;return E*E+C*C>I*I+P*P&&(T=M,A=S),{cx:T,cy:A,x01:-p,y01:-u,x11:T*(a/v-1),y11:A*(a/v-1)}}t.s(["f",0,function(){var t=r,h=a,p=(0,e.f)(0),u=null,y=s,d=l,f=o,g=null,x=(0,n.f)(m);function m(){var e,n,r=+t.apply(this,arguments),a=+h.apply(this,arguments),s=y.apply(this,arguments)-i.Z,l=d.apply(this,arguments)-i.Z,o=(0,i.h)(l-s),m=l>s;if(g||(g=e=x()),a<r&&(n=a,a=r,r=n),a>i.n)if(o>i.P-i.n)g.moveTo(a*(0,i.A)(s),a*(0,i.O)(s)),g.arc(0,0,a,s,l,!m),r>i.n&&(g.moveTo(r*(0,i.A)(l),r*(0,i.O)(l)),g.arc(0,0,r,l,s,m));else{var k,b,_=s,v=l,w=s,$=l,T=o,A=o,M=f.apply(this,arguments)/2,S=M>i.n&&(u?+u.apply(this,arguments):(0,i.N)(r*r+a*a)),E=(0,i.t)((0,i.h)(a-r)/2,+p.apply(this,arguments)),C=E,I=E;if(S>i.n){var P=(0,i._)(S/r*(0,i.O)(M)),j=(0,i._)(S/a*(0,i.O)(M));(T-=2*P)>i.n?(P*=m?1:-1,w+=P,$-=P):(T=0,w=$=(s+l)/2),(A-=2*j)>i.n?(j*=m?1:-1,_+=j,v-=j):(A=0,_=v=(s+l)/2)}var O=a*(0,i.A)(_),R=a*(0,i.O)(_),F=r*(0,i.A)($),N=r*(0,i.O)($);if(E>i.n){var V,B=a*(0,i.A)(v),z=a*(0,i.O)(v),D=r*(0,i.A)(w),L=r*(0,i.O)(w);if(o<i.Y)if(V=function(t,e,n,r,a,s,l,o){var c=n-t,h=r-e,p=l-a,u=o-s,y=u*c-p*h;if(!(y*y<i.n))return y=(p*(e-s)-u*(t-a))/y,[t+y*c,e+y*h]}(O,R,D,L,B,z,F,N)){var Y=O-V[0],U=R-V[1],W=B-V[0],q=z-V[1],K=1/(0,i.O)((0,i.k)((Y*W+U*q)/((0,i.N)(Y*Y+U*U)*(0,i.N)(W*W+q*q)))/2),X=(0,i.N)(V[0]*V[0]+V[1]*V[1]);C=(0,i.t)(E,(r-X)/(K-1)),I=(0,i.t)(E,(a-X)/(K+1))}else C=I=0}A>i.n?I>i.n?(k=c(D,L,O,R,a,I,m),b=c(B,z,F,N,a,I,m),g.moveTo(k.cx+k.x01,k.cy+k.y01),I<E?g.arc(k.cx,k.cy,I,(0,i.i)(k.y01,k.x01),(0,i.i)(b.y01,b.x01),!m):(g.arc(k.cx,k.cy,I,(0,i.i)(k.y01,k.x01),(0,i.i)(k.y11,k.x11),!m),g.arc(0,0,a,(0,i.i)(k.cy+k.y11,k.cx+k.x11),(0,i.i)(b.cy+b.y11,b.cx+b.x11),!m),g.arc(b.cx,b.cy,I,(0,i.i)(b.y11,b.x11),(0,i.i)(b.y01,b.x01),!m))):(g.moveTo(O,R),g.arc(0,0,a,_,v,!m)):g.moveTo(O,R),r>i.n&&T>i.n?C>i.n?(k=c(F,N,B,z,r,-C,m),b=c(O,R,D,L,r,-C,m),g.lineTo(k.cx+k.x01,k.cy+k.y01),C<E?g.arc(k.cx,k.cy,C,(0,i.i)(k.y01,k.x01),(0,i.i)(b.y01,b.x01),!m):(g.arc(k.cx,k.cy,C,(0,i.i)(k.y01,k.x01),(0,i.i)(k.y11,k.x11),!m),g.arc(0,0,r,(0,i.i)(k.cy+k.y11,k.cx+k.x11),(0,i.i)(b.cy+b.y11,b.cx+b.x11),m),g.arc(b.cx,b.cy,C,(0,i.i)(b.y11,b.x11),(0,i.i)(b.y01,b.x01),!m))):g.arc(0,0,r,$,w,m):g.lineTo(F,N)}else g.moveTo(0,0);if(g.closePath(),e)return g=null,e+""||null}return m.centroid=function(){var e=(+t.apply(this,arguments)+ +h.apply(this,arguments))/2,n=(+y.apply(this,arguments)+ +d.apply(this,arguments))/2-i.Y/2;return[(0,i.A)(n)*e,(0,i.O)(n)*e]},m.innerRadius=function(i){return arguments.length?(t="function"==typeof i?i:(0,e.f)(+i),m):t},m.outerRadius=function(t){return arguments.length?(h="function"==typeof t?t:(0,e.f)(+t),m):h},m.cornerRadius=function(t){return arguments.length?(p="function"==typeof t?t:(0,e.f)(+t),m):p},m.padRadius=function(t){return arguments.length?(u=null==t?null:"function"==typeof t?t:(0,e.f)(+t),m):u},m.startAngle=function(t){return arguments.length?(y="function"==typeof t?t:(0,e.f)(+t),m):y},m.endAngle=function(t){return arguments.length?(d="function"==typeof t?t:(0,e.f)(+t),m):d},m.padAngle=function(t){return arguments.length?(f="function"==typeof t?t:(0,e.f)(+t),m):f},m.context=function(t){return arguments.length?(g=null==t?null:t,m):g},m}],279769)},572247,t=>{"use strict";var e=(0,t.i(171206).p)(()=>`
2
+ /* Font Awesome icon styling - consolidated */
3
+ .label-icon {
4
+ display: inline-block;
5
+ height: 1em;
6
+ overflow: visible;
7
+ vertical-align: -0.125em;
8
+ }
9
+
10
+ .node .label-icon path {
11
+ fill: currentColor;
12
+ stroke: revert;
13
+ stroke-width: revert;
14
+ }
15
+ `,"getIconStyles");t.s(["f",0,e])},621501,t=>{"use strict";var e=t.i(908381),i=t.i(171206),n=t.i(139941);t.i(947716);var r=t.i(723685),a=(0,i.p)((t,e)=>{let i=t.append("rect");if(i.attr("x",e.x),i.attr("y",e.y),i.attr("fill",e.fill),i.attr("stroke",e.stroke),i.attr("width",e.width),i.attr("height",e.height),e.name&&i.attr("name",e.name),e.rx&&i.attr("rx",e.rx),e.ry&&i.attr("ry",e.ry),void 0!==e.attrs)for(let t in e.attrs)i.attr(t,e.attrs[t]);return e.class&&i.attr("class",e.class),i},"drawRect"),s=(0,i.p)((t,e)=>{a(t,{x:e.startx,y:e.starty,width:e.stopx-e.startx,height:e.stopy-e.starty,fill:e.fill,stroke:e.stroke,class:"rect"}).lower()},"drawBackgroundRect"),l=(0,i.p)((t,i)=>{let n=i.text.replace(e.g," "),r=t.append("text");r.attr("x",i.x),r.attr("y",i.y),r.attr("class","legend"),r.style("text-anchor",i.anchor),i.class&&r.attr("class",i.class);let a=r.append("tspan");return a.attr("x",i.x+2*i.textMargin),a.text(n),r},"drawText"),o=(0,i.p)((t,e,i,r)=>{let a=t.append("image");a.attr("x",e),a.attr("y",i);let s=(0,n.sanitizeUrl)(r);a.attr("xlink:href",s)},"drawImage"),c=(0,i.p)((t,e,i,r)=>{let a=t.append("use");a.attr("x",e),a.attr("y",i);let s=(0,n.sanitizeUrl)(r);a.attr("xlink:href",`#${s}`)},"drawEmbeddedImage"),h=(0,i.p)(()=>({x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0}),"getNoteRect"),p=(0,i.p)(()=>({x:0,y:0,width:100,height:100,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0}),"getTextObj"),u=(0,i.p)(()=>{let t=(0,r.f)(".mermaidTooltip");return t.empty()&&(t=(0,r.f)("body").append("div").attr("class","mermaidTooltip").style("opacity",0).style("position","absolute").style("text-align","center").style("max-width","200px").style("padding","2px").style("font-size","12px").style("background","#ffffde").style("border","1px solid #333").style("border-radius","2px").style("pointer-events","none").style("z-index","100")),t},"createTooltip");t.s(["m",0,u,"Z",0,s,"N",0,c,"A",0,o,"J",0,a,"K",0,l,"f",0,h,"W",0,p])},988537,t=>{"use strict";var e=t.i(572247),i=t.i(621501),n=t.i(908381),r=t.i(171206);t.i(947716);var a=t.i(723685),s=t.i(279769),l=function(){var t=(0,r.p)(function(t,e,i,n){for(i=i||{},n=t.length;n--;i[t[n]]=e);return i},"o"),e=[6,8,10,11,12,14,16,17,18],i=[1,9],n=[1,10],a=[1,11],s=[1,12],l=[1,13],o=[1,14],c={trace:(0,r.p)(function(){},"trace"),yy:{},symbols_:{error:2,start:3,journey:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,taskName:18,taskData:19,$accept:0,$end:1},terminals_:{2:"error",4:"journey",6:"EOF",8:"SPACE",10:"NEWLINE",11:"title",12:"acc_title",13:"acc_title_value",14:"acc_descr",15:"acc_descr_value",16:"acc_descr_multiline_value",17:"section",18:"taskName",19:"taskData"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,2]],performAction:(0,r.p)(function(t,e,i,n,r,a,s){var l=a.length-1;switch(r){case 1:return a[l-1];case 2:case 6:case 7:this.$=[];break;case 3:a[l-1].push(a[l]),this.$=a[l-1];break;case 4:case 5:this.$=a[l];break;case 8:n.setDiagramTitle(a[l].substr(6)),this.$=a[l].substr(6);break;case 9:this.$=a[l].trim(),n.setAccTitle(this.$);break;case 10:case 11:this.$=a[l].trim(),n.setAccDescription(this.$);break;case 12:n.addSection(a[l].substr(8)),this.$=a[l].substr(8);break;case 13:n.addTask(a[l-1],a[l]),this.$="task"}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:i,12:n,14:a,16:s,17:l,18:o},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:15,11:i,12:n,14:a,16:s,17:l,18:o},t(e,[2,5]),t(e,[2,6]),t(e,[2,8]),{13:[1,16]},{15:[1,17]},t(e,[2,11]),t(e,[2,12]),{19:[1,18]},t(e,[2,4]),t(e,[2,9]),t(e,[2,10]),t(e,[2,13])],defaultActions:{},parseError:(0,r.p)(function(t,e){if(e.recoverable)this.trace(t);else{var i=Error(t);throw i.hash=e,i}},"parseError"),parse:(0,r.p)(function(t){var e=this,i=[0],n=[],a=[null],s=[],l=this.table,o="",c=0,h=0,p=0,u=s.slice.call(arguments,1),y=Object.create(this.lexer),d={};for(var f in this.yy)Object.prototype.hasOwnProperty.call(this.yy,f)&&(d[f]=this.yy[f]);y.setInput(t,d),d.lexer=y,d.parser=this,void 0===y.yylloc&&(y.yylloc={});var g=y.yylloc;s.push(g);var x=y.options&&y.options.ranges;function m(){var t;return"number"!=typeof(t=n.pop()||y.lex()||1)&&(t instanceof Array&&(t=(n=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof d.parseError?this.parseError=d.parseError:this.parseError=Object.getPrototypeOf(this).parseError,(0,r.p)(function(t){i.length=i.length-2*t,a.length=a.length-t,s.length=s.length-t},"popStack"),(0,r.p)(m,"lex");for(var k,b,_,v,w,$,T,A,M,S={};;){if(_=i[i.length-1],this.defaultActions[_]?v=this.defaultActions[_]:(null==k&&(k=m()),v=l[_]&&l[_][k]),void 0===v||!v.length||!v[0]){var E="";for($ in M=[],l[_])this.terminals_[$]&&$>2&&M.push("'"+this.terminals_[$]+"'");E=y.showPosition?"Parse error on line "+(c+1)+":\n"+y.showPosition()+"\nExpecting "+M.join(", ")+", got '"+(this.terminals_[k]||k)+"'":"Parse error on line "+(c+1)+": Unexpected "+(1==k?"end of input":"'"+(this.terminals_[k]||k)+"'"),this.parseError(E,{text:y.match,token:this.terminals_[k]||k,line:y.yylineno,loc:g,expected:M})}if(v[0]instanceof Array&&v.length>1)throw Error("Parse Error: multiple actions possible at state: "+_+", token: "+k);switch(v[0]){case 1:i.push(k),a.push(y.yytext),s.push(y.yylloc),i.push(v[1]),k=null,b?(k=b,b=null):(h=y.yyleng,o=y.yytext,c=y.yylineno,g=y.yylloc,p>0&&p--);break;case 2:if(T=this.productions_[v[1]][1],S.$=a[a.length-T],S._$={first_line:s[s.length-(T||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(T||1)].first_column,last_column:s[s.length-1].last_column},x&&(S._$.range=[s[s.length-(T||1)].range[0],s[s.length-1].range[1]]),void 0!==(w=this.performAction.apply(S,[o,h,c,d,v[1],a,s].concat(u))))return w;T&&(i=i.slice(0,-1*T*2),a=a.slice(0,-1*T),s=s.slice(0,-1*T)),i.push(this.productions_[v[1]][0]),a.push(S.$),s.push(S._$),A=l[i[i.length-2]][i[i.length-1]],i.push(A);break;case 3:return!0}}return!0},"parse")};function h(){this.yy={}}return c.lexer={EOF:1,parseError:(0,r.p)(function(t,e){if(this.yy.parser)this.yy.parser.parseError(t,e);else throw Error(t)},"parseError"),setInput:(0,r.p)(function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:(0,r.p)(function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},"input"),unput:(0,r.p)(function(t){var e=t.length,i=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var n=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),i.length-1&&(this.yylineno-=i.length-1);var r=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:i?(i.length===n.length?this.yylloc.first_column:0)+n[n.length-i.length].length-i[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[r[0],r[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},"unput"),more:(0,r.p)(function(){return this._more=!0,this},"more"),reject:(0,r.p)(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:(0,r.p)(function(t){this.unput(this.match.slice(t))},"less"),pastInput:(0,r.p)(function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:(0,r.p)(function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:(0,r.p)(function(){var t=this.pastInput(),e=Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},"showPosition"),test_match:(0,r.p)(function(t,e){var i,n,r;if(this.options.backtrack_lexer&&(r={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(r.yylloc.range=this.yylloc.range.slice(0))),(n=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=n.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:n?n[n.length-1].length-n[n.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],i=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),i)return i;if(this._backtrack)for(var a in r)this[a]=r[a];return!1},"test_match"),next:(0,r.p)(function(){if(this.done)return this.EOF;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var t,e,i,n,r=this._currentRules(),a=0;a<r.length;a++)if((i=this._input.match(this.rules[r[a]]))&&(!e||i[0].length>e[0].length)){if(e=i,n=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(i,r[a])))return t;if(!this._backtrack)return!1;e=!1;continue}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,r[n]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:(0,r.p)(function(){var t=this.next();return t||this.lex()},"lex"),begin:(0,r.p)(function(t){this.conditionStack.push(t)},"begin"),popState:(0,r.p)(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:(0,r.p)(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:(0,r.p)(function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},"topState"),pushState:(0,r.p)(function(t){this.begin(t)},"pushState"),stateStackSize:(0,r.p)(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:(0,r.p)(function(t,e,i,n){switch(i){case 0:case 1:case 3:case 4:break;case 2:return 10;case 5:return 4;case 6:return 11;case 7:return this.begin("acc_title"),12;case 8:return this.popState(),"acc_title_value";case 9:return this.begin("acc_descr"),14;case 10:return this.popState(),"acc_descr_value";case 11:this.begin("acc_descr_multiline");break;case 12:this.popState();break;case 13:return"acc_descr_multiline_value";case 14:return 17;case 15:return 18;case 16:return 19;case 17:return":";case 18:return 6;case 19:return"INVALID"}},"anonymous"),rules:[/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:journey\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:section\s[^#:\n;]+)/i,/^(?:[^#:\n;]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,9,11,14,15,16,17,18,19],inclusive:!0}}},(0,r.p)(h,"Parser"),h.prototype=c,c.Parser=h,new h}();l.parser=l;var o="",c=[],h=[],p=[],u=(0,r.p)(function(){c.length=0,h.length=0,o="",p.length=0,(0,n.M)()},"clear"),y=(0,r.p)(function(t){o=t,c.push(t)},"addSection"),d=(0,r.p)(function(){return c},"getSections"),f=(0,r.p)(function(){let t=k(),e=0;for(;!t&&e<100;)t=k(),e++;return h.push(...p),h},"getTasks"),g=(0,r.p)(function(){let t=[];return h.forEach(e=>{e.people&&t.push(...e.people)}),[...new Set(t)].sort()},"updateActors"),x=(0,r.p)(function(t,e){let i=e.substr(1).split(":"),n=0,r=[];1===i.length?(n=Number(i[0]),r=[]):(n=Number(i[0]),r=i[1].split(","));let a=r.map(t=>t.trim()),s={section:o,type:o,people:a,task:t,score:n};p.push(s)},"addTask"),m=(0,r.p)(function(t){let e={section:o,type:o,description:t,task:t,classes:[]};h.push(e)},"addTaskOrg"),k=(0,r.p)(function(){let t=(0,r.p)(function(t){return p[t].processed},"compileTask"),e=!0;for(let[i,n]of p.entries())t(i),e=e&&n.processed;return e},"compileTasks"),b=(0,r.p)(function(){return g()},"getActors"),_={getConfig:(0,r.p)(()=>(0,n.z)().journey,"getConfig"),clear:u,setDiagramTitle:n.a,getDiagramTitle:n.F,setAccTitle:n.b,getAccTitle:n.d,setAccDescription:n.C,getAccDescription:n.j,addSection:y,getSections:d,getTasks:f,addTask:x,addTaskOrg:m,getActors:b},v=(0,r.p)(t=>`.label {
16
+ font-family: ${t.fontFamily};
17
+ color: ${t.textColor};
18
+ }
19
+ .mouth {
20
+ stroke: #666;
21
+ }
22
+
23
+ line {
24
+ stroke: ${t.textColor}
25
+ }
26
+
27
+ .legend {
28
+ fill: ${t.textColor};
29
+ font-family: ${t.fontFamily};
30
+ }
31
+
32
+ .label text {
33
+ fill: #333;
34
+ }
35
+ .label {
36
+ color: ${t.textColor}
37
+ }
38
+
39
+ .face {
40
+ ${t.faceColor?`fill: ${t.faceColor}`:"fill: #FFF8DC"};
41
+ stroke: #999;
42
+ }
43
+
44
+ .node rect,
45
+ .node circle,
46
+ .node ellipse,
47
+ .node polygon,
48
+ .node path {
49
+ fill: ${t.mainBkg};
50
+ stroke: ${t.nodeBorder};
51
+ stroke-width: 1px;
52
+ }
53
+
54
+ .node .label {
55
+ text-align: center;
56
+ }
57
+ .node.clickable {
58
+ cursor: pointer;
59
+ }
60
+
61
+ .arrowheadPath {
62
+ fill: ${t.arrowheadColor};
63
+ }
64
+
65
+ .edgePath .path {
66
+ stroke: ${t.lineColor};
67
+ stroke-width: 1.5px;
68
+ }
69
+
70
+ .flowchart-link {
71
+ stroke: ${t.lineColor};
72
+ fill: none;
73
+ }
74
+
75
+ .edgeLabel {
76
+ background-color: ${t.edgeLabelBackground};
77
+ rect {
78
+ opacity: 0.5;
79
+ }
80
+ text-align: center;
81
+ }
82
+
83
+ .cluster rect {
84
+ }
85
+
86
+ .cluster text {
87
+ fill: ${t.titleColor};
88
+ }
89
+
90
+ div.mermaidTooltip {
91
+ position: absolute;
92
+ text-align: center;
93
+ max-width: 200px;
94
+ padding: 2px;
95
+ font-family: ${t.fontFamily};
96
+ font-size: 12px;
97
+ background: ${t.tertiaryColor};
98
+ border: 1px solid ${t.border2};
99
+ border-radius: 2px;
100
+ pointer-events: none;
101
+ z-index: 100;
102
+ }
103
+
104
+ .task-type-0, .section-type-0 {
105
+ ${t.fillType0?`fill: ${t.fillType0}`:""};
106
+ }
107
+ .task-type-1, .section-type-1 {
108
+ ${t.fillType0?`fill: ${t.fillType1}`:""};
109
+ }
110
+ .task-type-2, .section-type-2 {
111
+ ${t.fillType0?`fill: ${t.fillType2}`:""};
112
+ }
113
+ .task-type-3, .section-type-3 {
114
+ ${t.fillType0?`fill: ${t.fillType3}`:""};
115
+ }
116
+ .task-type-4, .section-type-4 {
117
+ ${t.fillType0?`fill: ${t.fillType4}`:""};
118
+ }
119
+ .task-type-5, .section-type-5 {
120
+ ${t.fillType0?`fill: ${t.fillType5}`:""};
121
+ }
122
+ .task-type-6, .section-type-6 {
123
+ ${t.fillType0?`fill: ${t.fillType6}`:""};
124
+ }
125
+ .task-type-7, .section-type-7 {
126
+ ${t.fillType0?`fill: ${t.fillType7}`:""};
127
+ }
128
+
129
+ .actor-0 {
130
+ ${t.actor0?`fill: ${t.actor0}`:""};
131
+ }
132
+ .actor-1 {
133
+ ${t.actor1?`fill: ${t.actor1}`:""};
134
+ }
135
+ .actor-2 {
136
+ ${t.actor2?`fill: ${t.actor2}`:""};
137
+ }
138
+ .actor-3 {
139
+ ${t.actor3?`fill: ${t.actor3}`:""};
140
+ }
141
+ .actor-4 {
142
+ ${t.actor4?`fill: ${t.actor4}`:""};
143
+ }
144
+ .actor-5 {
145
+ ${t.actor5?`fill: ${t.actor5}`:""};
146
+ }
147
+ ${(0,e.f)()}
148
+ `,"getStyles"),w=(0,r.p)(function(t,e){return(0,i.J)(t,e)},"drawRect"),$=(0,r.p)(function(t,e){let i=t.append("circle").attr("cx",e.cx).attr("cy",e.cy).attr("class","face").attr("r",15).attr("stroke-width",2).attr("overflow","visible"),n=t.append("g");function a(t){let i=(0,s.f)().startAngle(Math.PI/2).endAngle(Math.PI/2*3).innerRadius(7.5).outerRadius(15/2.2);t.append("path").attr("class","mouth").attr("d",i).attr("transform","translate("+e.cx+","+(e.cy+2)+")")}function l(t){let i=(0,s.f)().startAngle(3*Math.PI/2).endAngle(Math.PI/2*5).innerRadius(7.5).outerRadius(15/2.2);t.append("path").attr("class","mouth").attr("d",i).attr("transform","translate("+e.cx+","+(e.cy+7)+")")}function o(t){t.append("line").attr("class","mouth").attr("stroke",2).attr("x1",e.cx-5).attr("y1",e.cy+7).attr("x2",e.cx+5).attr("y2",e.cy+7).attr("class","mouth").attr("stroke-width","1px").attr("stroke","#666")}return n.append("circle").attr("cx",e.cx-5).attr("cy",e.cy-5).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),n.append("circle").attr("cx",e.cx+5).attr("cy",e.cy-5).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),(0,r.p)(a,"smile"),(0,r.p)(l,"sad"),(0,r.p)(o,"ambivalent"),e.score>3?a(n):e.score<3?l(n):o(n),i},"drawFace"),T=(0,r.p)(function(t,e){let i=t.append("circle");return i.attr("cx",e.cx),i.attr("cy",e.cy),i.attr("class","actor-"+e.pos),i.attr("fill",e.fill),i.attr("stroke",e.stroke),i.attr("r",e.r),void 0!==i.class&&i.attr("class",i.class),void 0!==e.title&&i.append("title").text(e.title),i},"drawCircle"),A=(0,r.p)(function(t,e){return(0,i.K)(t,e)},"drawText"),M=(0,r.p)(function(t,e,n){let r=t.append("g"),a=(0,i.f)();a.x=e.x,a.y=e.y,a.fill=e.fill,a.width=n.width*e.taskCount+n.diagramMarginX*(e.taskCount-1),a.height=n.height,a.class="journey-section section-type-"+e.num,a.rx=3,a.ry=3,w(r,a),C(n)(e.text,r,a.x,a.y,a.width,a.height,{class:"journey-section section-type-"+e.num},n,e.colour)},"drawSection"),S=-1,E=(0,r.p)(function(t,e,n,r){let a=e.x+n.width/2,s=t.append("g");S++,s.append("line").attr("id",r+"-task"+S).attr("x1",a).attr("y1",e.y).attr("x2",a).attr("y2",450).attr("class","task-line").attr("stroke-width","1px").attr("stroke-dasharray","4 2").attr("stroke","#666"),$(s,{cx:a,cy:300+(5-e.score)*30,score:e.score});let l=(0,i.f)();l.x=e.x,l.y=e.y,l.fill=e.fill,l.width=n.width,l.height=n.height,l.class="task task-type-"+e.num,l.rx=3,l.ry=3,w(s,l);let o=e.x+14;e.people.forEach(t=>{let i=e.actors[t].color;T(s,{cx:o,cy:e.y,r:7,fill:i,stroke:"#000",title:t,pos:e.actors[t].position}),o+=10}),C(n)(e.task,s,l.x,l.y,l.width,l.height,{class:"task"},n,e.colour)},"drawTask"),C=function(){function t(t,e,i,r,a,s,l,o){n(e.append("text").attr("x",i+a/2).attr("y",r+s/2+5).style("font-color",o).style("text-anchor","middle").text(t),l)}function e(t,e,i,r,a,s,l,o,c){let{taskFontSize:h,taskFontFamily:p}=o,u=t.split(/<br\s*\/?>/gi);for(let t=0;t<u.length;t++){let o=t*h-h*(u.length-1)/2,y=e.append("text").attr("x",i+a/2).attr("y",r).attr("fill",c).style("text-anchor","middle").style("font-size",h).style("font-family",p);y.append("tspan").attr("x",i+a/2).attr("dy",o).text(u[t]),y.attr("y",r+s/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),n(y,l)}}function i(t,i,r,a,s,l,o,c){let h=i.append("switch"),p=h.append("foreignObject").attr("x",r).attr("y",a).attr("width",s).attr("height",l).attr("position","fixed").append("xhtml:div").style("display","table").style("height","100%").style("width","100%");p.append("div").attr("class","label").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(t),e(t,h,r,a,s,l,o,c),n(p,o)}function n(t,e){for(let i in e)i in e&&t.attr(i,e[i])}return(0,r.p)(t,"byText"),(0,r.p)(e,"byTspan"),(0,r.p)(i,"byFo"),(0,r.p)(n,"_setTextAttrs"),function(n){return"fo"===n.textPlacement?i:"old"===n.textPlacement?t:e}}(),I=(0,r.p)(function(t,e){S=-1,t.append("defs").append("marker").attr("id",e+"-arrowhead").attr("refX",5).attr("refY",2).attr("markerWidth",6).attr("markerHeight",4).attr("orient","auto").append("path").attr("d","M 0,0 V 4 L6,2 Z")},"initGraphics"),P=(0,r.p)(function(t){Object.keys(t).forEach(function(e){F[e]=t[e]})},"setConf"),j={},O=0;function R(t){let e=(0,n.z)().journey,i=e.maxLabelWidth;O=0;let r=60;Object.keys(j).forEach(n=>{let a=j[n].color;T(t,{cx:20,cy:r,r:7,fill:a,stroke:"#000",pos:j[n].position});let s=t.append("text").attr("visibility","hidden").text(n),l=s.node().getBoundingClientRect().width;s.remove();let o=[];if(l<=i)o=[n];else{let e=n.split(" "),r="";s=t.append("text").attr("visibility","hidden"),e.forEach(t=>{let e=r?`${r} ${t}`:t;if(s.text(e),s.node().getBoundingClientRect().width>i){if(r&&o.push(r),r=t,s.text(t),s.node().getBoundingClientRect().width>i){let e="";for(let n of t)e+=n,s.text(e+"-"),s.node().getBoundingClientRect().width>i&&(o.push(e.slice(0,-1)+"-"),e=n);r=e}}else r=e}),r&&o.push(r),s.remove()}o.forEach((i,n)=>{let a=A(t,{x:40,y:r+7+20*n,fill:"#666",text:i,textMargin:e.boxTextMargin??5}).node().getBoundingClientRect().width;a>O&&a>e.leftMargin-a&&(O=a)}),r+=Math.max(20,20*o.length)})}(0,r.p)(R,"drawActorLegend");var F=(0,n.z)().journey,N=0,V=(0,r.p)(function(t,e,i,r){let s,l=(0,n.z)(),o=l.journey.titleColor,c=l.journey.titleFontSize,h=l.journey.titleFontFamily,p=l.securityLevel;"sandbox"===p&&(s=(0,a.f)("#i"+e));let u="sandbox"===p?(0,a.f)(s.nodes()[0].contentDocument.body):(0,a.f)("body");B.init();let y=u.select("#"+e);I(y,e);let d=r.db.getTasks(),f=r.db.getDiagramTitle(),g=r.db.getActors();for(let t in j)delete j[t];let x=0;g.forEach(t=>{j[t]={color:F.actorColours[x%F.actorColours.length],position:x},x++}),R(y),N=F.leftMargin+O,B.insert(0,0,N,50*Object.keys(j).length),L(y,d,0,e);let m=B.getBounds();f&&y.append("text").text(f).attr("x",N).attr("font-size",c).attr("font-weight","bold").attr("y",25).attr("fill",o).attr("font-family",h);let k=m.stopy-m.starty+2*F.diagramMarginY,b=N+m.stopx+2*F.diagramMarginX;(0,n.m)(y,k,b,F.useMaxWidth),y.append("line").attr("x1",N).attr("y1",4*F.height).attr("x2",b-N-4).attr("y2",4*F.height).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#"+e+"-arrowhead)");let _=70*!!f;y.attr("viewBox",`${m.startx} -25 ${b} ${k+_}`),y.attr("preserveAspectRatio","xMinYMin meet"),y.attr("height",k+_+25)},"draw"),B={data:{startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},verticalPos:0,sequenceItems:[],init:(0,r.p)(function(){this.sequenceItems=[],this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},this.verticalPos=0},"init"),updateVal:(0,r.p)(function(t,e,i,n){void 0===t[e]?t[e]=i:t[e]=n(i,t[e])},"updateVal"),updateBounds:(0,r.p)(function(t,e,i,a){let s=(0,n.z)().journey,l=this,o=0;function c(n){return(0,r.p)(function(r){o++;let c=l.sequenceItems.length-o+1;l.updateVal(r,"starty",e-c*s.boxMargin,Math.min),l.updateVal(r,"stopy",a+c*s.boxMargin,Math.max),l.updateVal(B.data,"startx",t-c*s.boxMargin,Math.min),l.updateVal(B.data,"stopx",i+c*s.boxMargin,Math.max),"activation"!==n&&(l.updateVal(r,"startx",t-c*s.boxMargin,Math.min),l.updateVal(r,"stopx",i+c*s.boxMargin,Math.max),l.updateVal(B.data,"starty",e-c*s.boxMargin,Math.min),l.updateVal(B.data,"stopy",a+c*s.boxMargin,Math.max))},"updateItemBounds")}(0,r.p)(c,"updateFn"),this.sequenceItems.forEach(c())},"updateBounds"),insert:(0,r.p)(function(t,e,i,n){let r=Math.min(t,i),a=Math.max(t,i),s=Math.min(e,n),l=Math.max(e,n);this.updateVal(B.data,"startx",r,Math.min),this.updateVal(B.data,"starty",s,Math.min),this.updateVal(B.data,"stopx",a,Math.max),this.updateVal(B.data,"stopy",l,Math.max),this.updateBounds(r,s,a,l)},"insert"),bumpVerticalPos:(0,r.p)(function(t){this.verticalPos=this.verticalPos+t,this.data.stopy=this.verticalPos},"bumpVerticalPos"),getVerticalPos:(0,r.p)(function(){return this.verticalPos},"getVerticalPos"),getBounds:(0,r.p)(function(){return this.data},"getBounds")},z=F.sectionFills,D=F.sectionColours,L=(0,r.p)(function(t,e,i,r){let a=(0,n.z)().journey,s="",l=i+(2*a.height+a.diagramMarginY),o=0,c="#CCC",h="black",p=0;for(let[i,n]of e.entries()){if(s!==n.section){c=z[o%z.length],p=o%z.length,h=D[o%D.length];let r=0,l=n.section;for(let t=i;t<e.length;t++)if(e[t].section==l)r+=1;else break;M(t,{x:i*a.taskMargin+i*a.width+N,y:50,text:n.section,fill:c,num:p,colour:h,taskCount:r},a),s=n.section,o++}let u=n.people.reduce((t,e)=>(j[e]&&(t[e]=j[e]),t),{});n.x=i*a.taskMargin+i*a.width+N,n.y=l,n.width=a.diagramMarginX,n.height=a.diagramMarginY,n.colour=h,n.fill=c,n.num=p,n.actors=u,E(t,n,a,r),B.insert(n.x,n.y,n.x+n.width+a.taskMargin,450)}},"drawTasks"),Y={setConf:P,draw:V},U={parser:l,db:_,renderer:Y,styles:v,init:(0,r.p)(t=>{Y.setConf(t.journey),_.clear()},"init")};t.s(["diagram",0,U])}]);
@@ -0,0 +1 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,38232,e=>{e.v(e=>Promise.resolve().then(()=>e(766895)))}]);
@@ -0,0 +1 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,298023,e=>{"use strict";var t=e.i(974265),s=e.i(651023),n=e.i(537097),a=e.i(893976),r=e.i(209803),i=e.i(869803),l=e.i(891287),o=e.i(17616),d=e.i(170255),g=e.i(459153),u=e.i(504788),c=e.i(361353),m=e.i(476007),x=e.i(261722),f=e.i(616629),h=e.i(484763),p=e.i(803874),b=e.i(10337),v=e.i(668093),j=e.i(652337),N=e.i(966205),y=e.i(154752),S=e.i(582321),w=e.i(267912),k=e.i(352371),C=e.i(58837),T=e.i(979062),R=e.i(972992),I=e.i(394327),E=e.i(453396),A=e.i(85455),F=e.i(937719),L=e.i(51427),P=e.i(216386),M=e.i(210731),D=e.i(729728),$=e.i(752277),U=e.i(102602),B=e.i(818424),_=e.i(188482),O=e.i(255817),z=e.i(383370);function H(e,t){let s=(0,O.f)(),n=t?.pageSize??25,a=(0,z.f)(e?t=>s.routine.listFires((0,l.f)(C.m,{routineId:e,pageSize:n,pageToken:t})):null,[s,e,n]);return{fires:a.entries,pageNumber:a.pageNumber,hasNext:a.hasNext,hasPrevious:a.hasPrevious,next:a.next,previous:a.previous,isLoading:a.isLoading,isRefetching:a.isRefetching,error:a.error,refetch:a.refetch}}function W({routineId:e,onNavigateToRun:s,now:n,pageSize:r=25,className:i}){let{fires:l,pageNumber:o,hasNext:d,hasPrevious:g,next:u,previous:c,isLoading:x,error:f,refetch:h}=H(e,{pageSize:r});if(f)return(0,t.jsx)(m.f,{error:f,retry:h,className:i});if(x&&0===l.length)return(0,t.jsx)("div",{className:(0,a.f)("stg:space-y-2",i),"aria-busy":"true",children:Array.from({length:5},(e,s)=>(0,t.jsx)("div",{className:"stg:h-9 stg:animate-pulse stg:rounded-lg stg:bg-muted-subtle"},s))});if(0===l.length)return(0,t.jsx)("div",{className:i,children:(0,t.jsx)(G,{})});let p=n??new Date;return(0,t.jsxs)("div",{className:i,children:[(0,t.jsxs)("div",{role:"table","aria-label":"Fire history",className:"stg:overflow-hidden stg:rounded-lg stg:border stg:border-border",children:[(0,t.jsxs)("div",{role:"row",className:(0,a.f)(Y,"stg:border-b stg:border-border stg:px-3.5 stg:py-2 stg:text-2xs stg:font-medium stg:uppercase stg:tracking-wider stg:text-muted-foreground"),children:[(0,t.jsx)("span",{role:"columnheader",children:"Outcome"}),(0,t.jsx)("span",{role:"columnheader",className:"stg:hidden stg:sm:block",children:"Origin"}),(0,t.jsx)("span",{role:"columnheader",className:"stg:hidden stg:sm:block",children:"Started by"}),(0,t.jsx)("span",{role:"columnheader",children:"Fired"}),(0,t.jsx)("span",{role:"columnheader",className:"stg:hidden stg:sm:block",children:"Duration"}),(0,t.jsx)("span",{role:"columnheader",className:"stg:text-right",children:"Run"})]}),l.map((e,n)=>(0,t.jsx)(Z,{fire:e,now:p,onNavigateToRun:s},J(e,n)))]}),(d||g)&&(0,t.jsx)(B.f,{pageNumber:o,hasPrevious:g,hasNext:d,onPrevious:c,onNext:u,ariaLabel:"Fire history pagination",className:"stg:mt-3"})]})}let Y="stg:grid stg:grid-cols-[7rem_1fr_auto] stg:items-center stg:gap-x-4 stg:sm:grid-cols-[7rem_5.5rem_minmax(0,9rem)_1fr_5rem_minmax(0,12rem)]";function Z({fire:e,now:s,onNavigateToRun:n}){let r=e.nominalFireTime?(0,o.S)(e.nominalFireTime):null,i=ee(e.outcome),l=X(e);return(0,t.jsxs)("div",{role:"row",className:(0,a.f)(Y,"stg:border-b stg:border-border-muted stg:px-3.5 stg:py-2.5 stg:last:border-b-0"),children:[(0,t.jsx)("span",{role:"cell",children:(0,t.jsx)("span",{className:(0,a.f)("stg:inline-flex stg:items-center stg:rounded-full stg:px-2 stg:py-0.5 stg:text-2xs stg:font-medium",i.className),children:i.label})}),(0,t.jsx)("span",{role:"cell",className:"stg:hidden stg:text-xs stg:text-muted-foreground stg:sm:block",children:Q(e.origin)}),(0,t.jsx)("span",{role:"cell",className:"stg:hidden stg:truncate stg:text-xs stg:text-muted-foreground stg:sm:block",children:l?(0,t.jsx)(K,{startedBy:l}):"—"}),(0,t.jsx)("span",{role:"cell",className:"stg:text-xs stg:text-muted-foreground",children:r?(0,t.jsxs)(_.W,{children:[(0,t.jsx)(_.y,{render:(0,t.jsx)("time",{dateTime:r.toISOString()}),children:(0,c.f)(r,s)}),(0,t.jsx)(_.Y,{side:"top",children:r.toLocaleString()})]}):"—"}),(0,t.jsx)("span",{role:"cell",className:"stg:hidden stg:text-xs stg:tabular-nums stg:text-muted-foreground stg:sm:block",children:function(e){if(!e.recordedAt||!e.completedAt)return null;let t=(0,o.S)(e.completedAt).getTime()-(0,o.S)(e.recordedAt).getTime();if(t<0)return null;let s=Math.round(t/1e3);if(s<1)return"<1s";if(s<60)return`${s}s`;let n=Math.floor(s/60),a=s%60;if(n<60)return a>0?`${n}m ${a}s`:`${n}m`;let r=Math.floor(n/60),i=n%60;return i>0?`${r}h ${i}m`:`${r}h`}(e)??"—"}),(0,t.jsx)("span",{role:"cell",className:"stg:min-w-0 stg:text-right",children:e.runId?n?(0,t.jsx)("button",{type:"button",onClick:()=>n(e.runId),className:(0,a.f)("stg:max-w-full stg:truncate stg:font-mono stg:text-2xs stg:text-primary stg:underline-offset-2 stg:hover:underline","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring stg:rounded-sm"),children:e.runId}):(0,t.jsx)("span",{className:"stg:font-mono stg:text-2xs stg:text-muted-foreground",children:e.runId}):(0,t.jsx)("span",{className:"stg:text-xs stg:text-muted-foreground",children:"—"})}),e.reason&&(0,t.jsx)("p",{role:"cell",className:"stg:col-span-full stg:mt-1 stg:whitespace-pre-wrap stg:break-words stg:text-xs stg:text-muted-foreground",children:e.reason})]})}function V({fires:e,isLoading:s,now:n,onNavigateToRun:r}){return s&&0===e.length?(0,t.jsxs)("div",{className:"stg:space-y-2 stg:px-4 stg:py-3","aria-busy":"true",children:[(0,t.jsx)("div",{className:"stg:h-4 stg:w-full stg:animate-pulse stg:rounded stg:bg-muted"}),(0,t.jsx)("div",{className:"stg:h-4 stg:w-3/4 stg:animate-pulse stg:rounded stg:bg-muted"})]}):0===e.length?(0,t.jsx)(G,{}):(0,t.jsx)("ul",{className:(0,a.f)(i.J,"stg:divide-y stg:divide-border"),children:e.map((e,s)=>(0,t.jsx)(q,{fire:e,now:n,onNavigateToRun:r},J(e,s)))})}function q({fire:e,now:s,onNavigateToRun:n}){let r=e.nominalFireTime?(0,o.S)(e.nominalFireTime):null,i=ee(e.outcome),l=X(e);return(0,t.jsxs)("li",{className:"stg:flex stg:flex-col stg:gap-1 stg:px-4 stg:py-2.5",children:[(0,t.jsxs)("div",{className:"stg:flex stg:items-center stg:gap-2",children:[(0,t.jsx)("span",{className:(0,a.f)("stg:inline-flex stg:items-center stg:rounded-full stg:px-2 stg:py-0.5 stg:text-2xs stg:font-medium",i.className),children:i.label}),(0,t.jsx)("span",{className:"stg:text-xs stg:text-muted-foreground",children:Q(e.origin)}),l&&(0,t.jsxs)("span",{className:"stg:min-w-0 stg:truncate stg:text-xs stg:text-muted-foreground",children:["by ",(0,t.jsx)(K,{startedBy:l})]}),(0,t.jsx)("span",{className:"stg:text-xs stg:text-muted-foreground-subtle",children:"·"}),(0,t.jsx)("span",{className:"stg:text-xs stg:text-muted-foreground",children:r?(0,t.jsxs)(_.W,{children:[(0,t.jsx)(_.y,{render:(0,t.jsx)("time",{dateTime:r.toISOString()}),children:(0,c.f)(r,s)}),(0,t.jsx)(_.Y,{side:"top",children:r.toLocaleString()})]}):"—"})]}),e.reason&&(0,t.jsx)("p",{className:"stg:whitespace-pre-wrap stg:break-words stg:text-xs stg:text-muted-foreground",children:e.reason}),e.runId&&(n?(0,t.jsx)("button",{type:"button",onClick:()=>n(e.runId),className:(0,a.f)("stg:self-start stg:font-mono stg:text-2xs stg:text-primary stg:underline-offset-2 stg:hover:underline","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring stg:rounded-sm"),children:e.runId}):(0,t.jsx)("span",{className:"stg:self-start stg:font-mono stg:text-2xs stg:text-muted-foreground",children:e.runId}))]})}function G(){return(0,t.jsx)("p",{className:"stg:px-4 stg:py-6 stg:text-center stg:text-xs stg:text-muted-foreground",children:"No fires yet. Every fire, on its schedule, by hand or over the API, is recorded here, a refused one included."})}function J(e,t){let s=e.nominalFireTime?(0,o.S)(e.nominalFireTime).getTime():"no-time";return`${s}-${e.origin}-${t}`}function Q(e){return e===C.q.MANUAL?"Manual":"Scheduled"}function X(e){let t=e.firedBy,s=t?.displayName||t?.email||t?.id||"";return""===s?null:t?.mintedBy?{label:s,detail:`through service account ${t.mintedBy}`}:{label:s}}function K({startedBy:e}){return e.detail?(0,t.jsxs)(_.W,{children:[(0,t.jsx)(_.y,{render:(0,t.jsx)("span",{}),children:e.label}),(0,t.jsx)(_.Y,{side:"top",children:e.detail})]}):(0,t.jsx)(t.Fragment,{children:e.label})}function ee(e){switch(e){case C.t.STARTED:return{label:"Started",className:"stg:bg-status-running-subtle stg:text-status-running"};case C.t.COMPLETED:return{label:"Completed",className:"stg:bg-status-ready-subtle stg:text-status-ready"};case C.t.REFUSED:return{label:"Refused",className:"stg:bg-status-degraded-subtle stg:text-status-degraded"};case C.t.TARGET_MISSING:return{label:"Target missing",className:"stg:bg-status-degraded-subtle stg:text-status-degraded"};case C.t.SKIPPED:return{label:"Skipped",className:"stg:bg-muted stg:text-muted-foreground"};case C.t.FAILED:return{label:"Failed",className:"stg:bg-status-failed-subtle stg:text-status-failed"};case C.t.TIMED_OUT:return{label:"Timed out",className:"stg:bg-status-failed-subtle stg:text-status-failed"};default:return{label:"Unknown",className:"stg:bg-muted stg:text-muted-foreground"}}}var et=e.i(551365),es=e.i(910304),en=e.i(616701),ea=e.i(511339),er=e.i(846696),ei=e.i(998127),el=e.i(781836),eo=e.i(323687),ed=e.i(767779),eg=e.i(705450),eu=e.i(57897),ec=e.i(404913),em=e.i(565868),ex=e.i(430182),ef=e.i(65642),eh=e.i(90071),ep=e.i(468806),eb=e.i(244908),ev=e.i(166403),ej=e.i(586093),eN=e.i(816418),ey=e.i(294470),eS=e.i(41097);function ew({routine:e,onManageAccess:s,serviceAccountsHref:n=ey.j,className:r}){let i=e.metadata?.id??"",l=e.metadata?.org??"",o=e.status?.audit?.specAudit?.createdBy,d=o?.displayName||o?.email||o?.id||"the person who created it",g=(0,ej.i)(),{serverInfo:u}=(0,eN.P)(),c=u?.authenticationRequired!==!1,m=u?.deploymentMode,x=c&&void 0!==m&&"local"!==m,f=c&&"local"===m,h=(0,p.f)(x&&i?{kind:"routine",id:i}:null,"can_grant_access"),b=(0,p.f)(x&&i?{kind:"routine",id:i}:null,"can_fire"),v=x&&!h.isLoading&&!b.isLoading,j=v&&h.allowed,N=v&&!h.allowed&&b.allowed,y=v&&!h.allowed&&!b.allowed,S=null===g?null:function({baseUrl:e,routineId:t,withKey:s}){var n;let a=(0,eb.f)(e,"/"),r=`${em.f.typeName}/${em.f.method.fire.name}`,i=JSON.stringify({id:t,text:"Sentry alert SEN-4521 fired"});return[`curl -X POST ${a}/${r} \\`,...s?[' -H "Authorization: Bearer $STIGMER_API_KEY" \\']:[],' -H "Content-Type: application/json" \\',` -d ${(n=i,`'${n.replace(/'/g,"'\\''")}'`)}`].join("\n")}({baseUrl:g,routineId:i,withKey:c});return(0,t.jsxs)("div",{className:(0,a.f)("stg:flex stg:max-w-2xl stg:flex-col stg:gap-5",r),children:[(0,t.jsxs)("p",{className:"stg:text-sm stg:text-foreground",children:["Another system starts this routine with one HTTP call. Each call is a run that acts as ",d,", with the text as its note."]}),(0,t.jsxs)("section",{className:"stg:space-y-2",children:[null!==S?(0,t.jsx)(eh.F,{label:"Start a run",value:S}):(0,t.jsxs)("div",{className:"stg:space-y-1",children:[(0,t.jsx)("p",{className:"stg:text-2xs stg:font-medium stg:text-muted-foreground",children:"Start a run"}),(0,t.jsx)(ev.f,{subject:"the command"})]}),(0,t.jsx)("p",{className:eR,children:"It answers with the run’s id, or the reason it did not start. A disabled routine refuses, and by default a routine starts at most 30 times an hour outside its schedule."})]}),f&&(0,t.jsx)("p",{className:"stg:text-xs stg:text-muted-foreground",children:"Use an API key of the person who created this routine."}),N&&(0,t.jsx)("p",{className:"stg:text-xs stg:text-muted-foreground",children:"You may start this routine: send your own API key as the bearer token."}),y&&(0,t.jsx)("p",{className:"stg:text-xs stg:text-muted-foreground",children:"Starting it takes Participant on this routine, which the person who created it gives."}),j&&(0,t.jsx)(ek,{org:l,onManageAccess:s,serviceAccountsHref:n})]})}function ek({org:e,onManageAccess:n,serviceAccountsHref:a}){let r=(0,s.useId)(),i=(0,p.f)(e?{kind:"organization",id:e}:null,"can_create_identity_account"),l=!i.isLoading&&i.allowed,[o,d]=(0,s.useState)(!1);return(0,t.jsxs)("section",{"aria-labelledby":r,className:"stg:space-y-3",children:[(0,t.jsx)("h3",{id:r,className:"stg:text-xs stg:font-semibold stg:text-foreground",children:"Who may call it"}),(0,t.jsxs)("ol",{className:"stg:m-0 stg:list-none stg:space-y-3 stg:p-0",children:[(0,t.jsx)(eC,{number:1,title:"A service account",children:l?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("p",{className:eR,children:"Create one for the calling system, as Viewer. Its key is shown once."}),(0,t.jsx)(ef.f,{variant:"outline",size:"xs",onClick:()=>d(!0),children:"Create a service account"})]}):(0,t.jsxs)("p",{className:eR,children:["An organization admin creates service accounts and their keys."," ",(0,t.jsx)("a",{href:a,className:eI,children:"Service accounts"})]})}),(0,t.jsxs)(eC,{number:2,title:"Participant on this routine",children:[(0,t.jsx)("p",{className:eR,children:"Only the person who created this routine may do this."}),n&&(0,t.jsx)(ef.f,{variant:"outline",size:"xs",onClick:n,children:"Give it Participant"})]}),(0,t.jsx)(eC,{number:3,title:"The key",children:(0,t.jsx)("p",{className:eR,children:"Send the account’s key as the bearer token."})})]}),(0,t.jsx)("p",{className:"stg:text-xs stg:text-muted-foreground",children:"The key can also read and run whatever its account’s organization role allows; Viewer is the least."}),l&&(0,t.jsx)(eT,{org:e,open:o,onOpenChange:d})]})}function eC({number:e,title:s,children:n}){return(0,t.jsxs)("li",{className:"stg:flex stg:gap-3",children:[(0,t.jsx)("span",{"aria-hidden":"true",className:"stg:flex stg:size-5 stg:shrink-0 stg:items-center stg:justify-center stg:rounded-full stg:bg-muted stg:text-2xs stg:font-medium stg:text-muted-foreground",children:e}),(0,t.jsxs)("div",{className:"stg:min-w-0 stg:flex-1 stg:space-y-1.5",children:[(0,t.jsx)("p",{className:"stg:text-xs stg:font-medium stg:text-foreground",children:s}),n]})]})}function eT({org:e,open:n,onOpenChange:a}){let r=(0,s.useId)(),i=()=>a(!1);return(0,t.jsx)(ep.f,{open:n,onOpenChange:a,width:"md","aria-labelledby":r,children:n&&(0,t.jsxs)("div",{className:"stg:flex stg:flex-col",children:[(0,t.jsxs)("div",{className:"stg:border-b stg:border-border stg:px-5 stg:py-4",children:[(0,t.jsx)("h2",{id:r,className:"stg:text-sm stg:font-semibold stg:text-foreground",children:"Create a service account"}),(0,t.jsx)("p",{className:"stg:mt-0.5 stg:text-xs stg:text-muted-foreground",children:"For the system that starts this routine. Give it Participant on the routine next."})]}),(0,t.jsx)("div",{className:"stg:px-5 stg:py-4",children:(0,t.jsx)(eS.f,{org:e,defaultRole:ex.M.viewer,onDone:i,onCancel:i})})]})})}let eR="stg:text-xs stg:text-muted-foreground",eI="stg:text-primary stg:hover:text-primary-hover stg:underline stg:underline-offset-2";var eE=e.i(733224),eA=e.i(379410),eF=e.i(996675),eL=e.i(42592),eP=e.i(921321),eM=e.i(252771),eD=e.i(653650),e$=e.i(354642);let eU="history",eB={pageSize:5};function e_({org:e,slug:n,onNavigateToAgent:r,onNavigateToRun:i,onDeleted:T,onResourceLoad:R,onRenamed:E,editable:A=!1,additionalTabs:F,activeTab:L,onTabChange:P,defaultTab:M,now:B,serviceAccountsHref:_,className:z}){let Y,Z=(0,eL.b)(),{routine:q,isLoading:G,error:J,refetch:Q}=function(e,t){let s=(0,O.f)(),{data:n,isLoading:a,isRefetching:r,error:i,refetch:l}=(0,en.f)(e&&t?async()=>{try{return await s.routine.getByReference({org:e,slug:t})}catch(e){if((0,es.c)(e))return null;throw e}}:null,[e,t,s],null);return{routine:n,isLoading:a,isRefetching:r,error:i,refetch:l}}(e,n),X=q?.metadata?.id??null,K=(0,p.f)(X?{kind:"routine",id:X}:null,"can_fire"),ee=!K.isLoading&&K.allowed,et=(0,h.f)({resource:q?.metadata?{kind:d.X.routine,kindString:"routine",id:q.metadata.id,org:q.metadata.org,name:q.metadata.name}:null}),{fires:em,hasNext:ex,isLoading:ef,refetch:eh}=H(X,eB),{resumeRoutine:ep,isResuming:eb}=(0,ea.f)(),{fireRoutine:ev,isFiring:ej}=(0,eo.f)(),{setEnabled:eN,isPending:ey}=function(){let e=(0,O.f)(),[t,n]=(0,s.useState)(!1),[a,r]=(0,s.useState)(null),i=(0,s.useCallback)(async(t,s)=>{n(!0),r(null);try{let n=await e.routine.update({metadata:{id:t.metadata?.id??"",etag:t.metadata?.etag??""},spec:{enabled:s}},["spec.enabled"]);return er.c.success(s?"Routine enabled":"Routine disabled"),n}catch(t){let e=(0,el.f)(t);throw r(e),er.c.error((0,ei.q)(t,"routine")),e}finally{n(!1)}},[e]);return(0,s.useMemo)(()=>({setEnabled:i,isPending:t,error:a}),[i,t,a])}(),{updateSpec:eS,isUpdating:ek}=function(){let e=(0,O.f)(),[t,n]=(0,s.useState)(!1),[a,r]=(0,s.useState)(null),i=(0,s.useCallback)(async(t,s)=>{var a,i;let o,d;if(!t.spec)throw Error("Cannot edit this routine: it has no spec. Pass a routine as returned by the server (get/getByReference).");let g=(0,ed.f)(ec.L,t.spec);s(g);let u=(a=t.spec,i=g,o=(0,eu.v)(ec.L,a),d=(0,eu.v)(ec.L,i),ec.L.fields.filter(e=>{let t=(0,eu.v)(ec.L,(0,l.f)(ec.L)),s=(0,eu.v)(ec.L,(0,l.f)(ec.L));return o.isSet(e)&&t.set(e,o.get(e)),d.isSet(e)&&s.set(e,d.get(e)),!(0,eg.f)(ec.L,t.message,s.message)}).map(e=>`spec.${e.name}`));if(0===u.length)return t;n(!0),r(null);try{let s=await e.routine.update({metadata:{id:t.metadata?.id??"",etag:t.metadata?.etag??""},spec:g},u);return er.c.success("Routine updated"),s}catch(t){let e=Error((0,ei.q)(t,"routine"));throw r(e),e}finally{n(!1)}},[e]);return(0,s.useMemo)(()=>({updateSpec:i,isUpdating:t,error:a}),[i,t,a])}(),{deleteResource:eC,isDeleting:eT}=(0,S.f)("routine",X,q?.metadata?.name),{confirmState:eR,confirm:eI,handleConfirm:eA,handleCancel:eF}=(0,N.f)(),{copyId:eD,copyQualifiedSlug:e$}=(0,y.f)(),[eJ,eQ]=(0,s.useState)(!1),[eX,eK]=(0,s.useState)(null),[e7,ts]=(0,s.useState)(0),[tn,ta]=(0,s.useState)(null),tr=(0,s.useCallback)(async(e,t,s)=>{ta(null);try{return await eS(e,s),Q(),!0}catch(e){return ta({field:t,message:e instanceof Error?e.message:String(e)}),!1}},[eS,Q]),ti=(0,s.useMemo)(()=>[{id:"overview",label:"Overview"},{id:eU,label:"History",...em.length>0?{badge:em.length,badgeIsLowerBound:ex}:{}},{id:"api",label:"API"}],[em.length,ex]),{effectiveTabs:tl,effectiveActiveTab:to,effectiveOnTabChange:td,activeAdditionalTab:tg}=(0,w.f)({builtInTabs:ti,additionalTabs:F,activeTab:L,onTabChange:P,defaultTab:M}),{copyYaml:tu,downloadYaml:tc}=(0,k.f)({resource:q});if((0,s.useEffect)(()=>{q&&R?.(q)},[q,R]),G)return(0,t.jsx)(e9,{className:z});if(J)return(0,t.jsx)(m.f,{error:J,retry:Q,className:z});if(!q)return(0,t.jsx)(te,{className:z});let tm=q.metadata,tx=q.spec,tf=q.status,th=tf?.audit?.specAudit,tp=(0,U.X)(tx,tf),tb=B??new Date,tv=tm?.id??"",tj=tm?.org||e,tN=tx?.agent,ty=async()=>{await ep(tv),Q()},tS=async()=>{await eN(q,!tx?.enabled),Q()},tw=async e=>{let t=await ev(tv,e);Q(),eh(),ts(e=>e+1),t.outcome===C.t.STARTED&&t.runId&&i&&i(t.runId)},tk=async e=>{eX?.enableFirst&&(await eN(q,!0),Q(),eK({enableFirst:!1})),await tw(e)},tC=async()=>{await eI({title:"Delete this routine?",description:`"${tm?.name??n}" will stop firing and be permanently removed. Past runs are not affected. This cannot be undone.`,confirmLabel:"Delete",variant:"destructive"})&&(await eC(),T?.())},tT=ee?"disabled"===tp.state?{id:"enable-and-run",label:"Enable & run now",onAction:()=>eK({enableFirst:!0}),disabled:ej||ey}:{id:"trigger",label:"Run now",onAction:()=>eK({enableFirst:!1}),disabled:ej}:void 0,tR=[...tp.isPaused?[{id:"resume",label:"Resume routine",onAction:()=>void ty(),disabled:eb,group:"state"}]:[],{id:"toggle-enabled",label:tx?.enabled?"Disable routine":"Enable routine",onAction:()=>void tS(),disabled:ey,group:"state"},...et.action?[et.action]:[],{id:"copy-id",label:"Copy ID",onAction:()=>void eD(tv),group:"clipboard"},{id:"copy-slug",label:"Copy slug",onAction:()=>void e$(e,n),group:"clipboard"},{id:"edit-yaml",label:"Edit YAML",onAction:()=>eQ(!0),group:"edit"},{id:"copy-yaml",label:"Copy YAML",onAction:()=>void tu(),group:"export"},{id:"download-yaml",label:"Download YAML",onAction:tc,group:"export"},{id:"delete",label:"Delete",variant:"destructive",onAction:()=>void tC(),disabled:eT,group:"danger"}],tI={name:tm?.name||tm?.slug||"Untitled",id:tv,org:tm?.org,slug:tm?.slug,icon:(0,t.jsx)(tt,{className:"stg:size-6 stg:text-muted-foreground"}),createdAt:th?.createdAt?(0,o.S)(th.createdAt):null,updatedAt:th?.updatedAt?(0,o.S)(th.updatedAt):null,status:tp.phase,statusLabel:tp.label},tE="disabled"===tp.state?(0,t.jsxs)(eO,{title:"Routine is disabled",onAction:()=>void tS(),actionLabel:"Enable routine",actionBusy:ey,children:["This routine is staged disabled (",(0,t.jsx)("code",{className:"stg:font-mono",children:"spec.enabled"})," is off) — it will not fire on its schedule or start by hand.",ee&&(0,t.jsxs)(t.Fragment,{children:[" ","Use"," ",(0,t.jsx)("span",{className:"stg:font-medium stg:text-foreground",children:"Enable & run now"})," ","to enable it and start one test run, or Enable it here to hand it to its schedule."]}),tp.isPaused&&(0,t.jsxs)(t.Fragment,{children:[" ","It is also paused by the platform (",tf?.pausedReason,"); after enabling, use Resume to clear the pause."]})]}):"paused"===tp.state?(0,t.jsxs)(eO,{title:"Paused by the platform",onAction:()=>void ty(),actionLabel:"Resume routine",actionBusy:eb,children:[tf?.pausedReason," — resuming clears the pause and the failure streak. Re-applying the manifest does not."]}):void 0,tA=(0,t.jsxs)("div",{className:"stg:flex stg:flex-col stg:gap-6",children:[A&&(0,t.jsx)(eM.e,{kind:"routine",resourceId:tv||null,currentSlug:tm?.slug??"",onRenamed:e=>{E?.(e),Q()},className:"stg:max-w-md"}),(0,t.jsx)(j.f,{title:"Definition",children:(0,t.jsxs)("dl",{className:"stg:divide-y stg:divide-border",children:[(0,t.jsx)(e0,{label:"Cadence",children:A?(0,t.jsx)(eH,{cron:tx?.cron??"",timeZone:tx?.timeZone??"",onSave:(e,t)=>tr(q,"cadence",s=>{s.cron=e,s.timeZone=t}),isSaving:ek,error:tn?.field==="cadence"?tn.message:void 0}):(0,t.jsx)(ez,{cron:tx?.cron??"",timeZone:tx?.timeZone??""})}),(0,t.jsx)(e0,{label:"Target agent",children:tN?.agentRef&&(0,u.Q)(tN.agentRef)?(0,t.jsx)("span",{className:"stg:text-sm stg:text-muted-foreground",children:"deleted agent"}):tN?.agentRef?(0,t.jsx)(e8,{label:`${Z(tN.agentRef.org)}/${tN.agentRef.slug}`,onNavigate:r?()=>r(tN.agentRef.org,tN.agentRef.slug):void 0}):(0,t.jsx)("span",{className:"stg:text-sm stg:text-muted-foreground",children:"—"})}),(0,t.jsx)(e0,{label:"Message",children:A&&tN?(0,t.jsx)(x.f,{value:tN.message??"",placeholder:"The instruction the agent receives on every fire — write it for a run with no human present.",onSave:e=>tr(q,"message",t=>{void 0!==t.agent&&(t.agent.message=e.trim())}),isSaving:ek,error:tn?.field==="message"?tn.message:void 0,validate:eG}):(0,t.jsx)("p",{className:"stg:whitespace-pre-wrap stg:break-words stg:text-sm stg:text-foreground",children:tN?.message||"—"})}),(0,t.jsx)(e0,{label:"Vaults",children:A&&tN?(0,t.jsx)(eW,{org:tj,refs:tN.vaults??[],creatorId:th?.createdBy?.id??"",onSave:e=>tr(q,"vaults",t=>{void 0!==t.agent&&(t.agent.vaults=e.map(e=>(0,l.f)(g.W,{...(0,eP.f)(e),kind:d.X.vault})))}),isSaving:ek,error:tn?.field==="vaults"?tn.message:void 0}):(0,t.jsx)(e1,{refs:tN?.vaults??[]})}),(0,t.jsx)(e0,{label:"Environment",children:(0,t.jsx)(eY,{org:tj,agentRef:tN?.agentRef&&!(0,u.Q)(tN.agentRef)?{org:tN.agentRef.org,slug:tN.agentRef.slug}:null,environmentRef:tN?.environmentRef,editable:!!A&&void 0!==tN,onSave:e=>tr(q,"environment",t=>{void 0!==t.agent&&(t.agent.environmentRef=void 0===e?void 0:(0,l.f)(g.W,{...(0,eP.f)(e),kind:d.X.environment}))}),isSaving:ek,error:tn?.field==="environment"?tn.message:void 0})}),(0,t.jsx)(e0,{label:"Workspace",children:(0,t.jsx)(e6,{resources:tN?.resources??[]})}),(0,t.jsx)(e0,{label:"Files",children:(0,t.jsx)(e4,{resources:tN?.resources??[]})}),(0,t.jsx)(e0,{label:"Harness & model",children:A&&tN?(0,t.jsx)(eZ,{invocation:tN,onSave:(e,t,s,n)=>tr(q,"engine-model",a=>{var r,i,l,o,d;let g,u,c,m,x;void 0!==a.agent&&(r=a.agent,i=e,l=t,o=s,d=n,g=r.runConfig,c=(u=l.trim())===(g?.modelName??"").trim()&&i===r.harness,m=g?.serviceTier??I.h.UNSPECIFIED,x=g?.thinkingMode??I.c.UNSPECIFIED,r.harness=i,r.runConfig=eq(u,g?.maxCostUsd??0,g?.maxToolRounds??0,c&&o===((0,D.S)(m)??"standard")?m:""!==u&&"fast"===o?(0,D.Y)(o):I.h.UNSPECIFIED,c&&d===((0,$.o)(x)??"disabled")?x:""!==u&&"enabled"===d?(0,$.T)(d):I.c.UNSPECIFIED,g?.maxToolResultChars??0))}),isSaving:ek,error:tn?.field==="engine-model"?tn.message:void 0}):(0,t.jsx)(e5,{invocation:tN})}),(0,t.jsx)(e0,{label:"Budget per run",children:A&&tN?(0,t.jsx)(eV,{config:tN.runConfig,onSave:e=>tr(q,"budget",t=>{var s,n;void 0!==t.agent&&(s=t.agent,n=e,s.runConfig=eq(s.runConfig?.modelName??"",n??0,s.runConfig?.maxToolRounds??0,s.runConfig?.serviceTier??I.h.UNSPECIFIED,s.runConfig?.thinkingMode??I.c.UNSPECIFIED,s.runConfig?.maxToolResultChars??0))}),isSaving:ek,error:tn?.field==="budget"?tn.message:void 0}):(0,t.jsx)(e3,{config:tN?.runConfig})})]})}),(0,t.jsx)(j.f,{title:"Status",children:(0,t.jsxs)("dl",{className:"stg:divide-y stg:divide-border",children:[(0,t.jsx)(e0,{label:"Next fire",children:(0,t.jsx)("span",{className:"stg:text-sm stg:text-foreground",children:"active"===tp.state&&tf?.nextFireAt?(0,U.u)((0,o.S)(tf.nextFireAt),tb):"—"})}),(0,t.jsx)(e0,{label:"Last fired",children:(0,t.jsx)("span",{className:"stg:text-sm stg:text-foreground",children:tf?.lastFireAt?(0,c.f)((0,o.S)(tf.lastFireAt),tb):"Never"})}),(0,t.jsx)(e0,{label:"Last run",children:tf?.lastRunId?(0,t.jsx)(e8,{label:tf.lastRunId,mono:!0,onNavigate:i?()=>i(tf.lastRunId):void 0}):(0,t.jsx)("span",{className:"stg:text-sm stg:text-muted-foreground",children:"—"})}),(0,t.jsx)(e0,{label:"Failure streak",children:(0,t.jsx)(e2,{count:tf?.consecutiveFailures??0})})]})}),(0,t.jsx)(j.f,{title:"Recent fires",headerActions:ex?(0,t.jsx)("button",{type:"button",onClick:()=>td(eU),className:(0,a.f)("stg:text-xs stg:font-medium stg:text-primary stg:underline-offset-2 stg:hover:underline","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring stg:rounded-sm"),children:"View all fires"}):void 0,children:(0,t.jsx)(V,{fires:em,isLoading:ef,now:tb,onNavigateToRun:i})})]});return Y=tg?tg.content:"api"===to?(0,t.jsx)(ew,{routine:q,onManageAccess:et.action?et.open:void 0,serviceAccountsHref:_}):to===eU?(0,t.jsx)(W,{routineId:tv,now:B,onNavigateToRun:i},e7):tA,(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(v.f,{header:tI,headerBanner:tE,primaryAction:tT,actions:tR,tabs:tl,activeTab:tl?to:void 0,onTabChange:tl?td:void 0,tabsAriaLabel:"Routine detail sections",className:z,children:Y}),(0,t.jsx)(b.f,{state:eR,onConfirm:eA,onCancel:eF}),(0,t.jsx)(eE.f,{open:null!==eX,onOpenChange:e=>{e||eK(null)},routineName:tm?.name||tm?.slug||n,enableFirst:eX?.enableFirst??!1,onStart:tk}),et.dialog,eJ&&(0,t.jsx)(f.f,{open:eJ,onOpenChange:eQ,resource:q,onApplied:()=>Q()})]})}function eO({title:e,children:s,actionLabel:n,onAction:r,actionBusy:i}){return(0,t.jsxs)("div",{role:"status",className:"stg:flex stg:items-start stg:gap-2.5 stg:rounded-lg stg:bg-status-degraded-subtle stg:px-4 stg:py-3",children:[(0,t.jsx)(ts,{className:"stg:mt-0.5 stg:size-4 stg:shrink-0 stg:text-status-degraded"}),(0,t.jsxs)("div",{className:"stg:min-w-0 stg:flex-1",children:[(0,t.jsx)("p",{className:"stg:text-sm stg:font-medium stg:text-foreground",children:e}),(0,t.jsx)("p",{className:"stg:mt-0.5 stg:text-xs stg:text-status-degraded",children:s})]}),(0,t.jsx)("button",{type:"button",onClick:r,disabled:i,className:(0,a.f)("stg:shrink-0 stg:rounded-md stg:border stg:border-input stg:bg-background stg:px-3 stg:py-1.5 stg:text-xs stg:font-medium stg:text-foreground","stg:hover:bg-accent stg:hover:text-accent-foreground","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring","stg:disabled:pointer-events-none stg:disabled:opacity-50"),children:n})]})}function ez({cron:e,timeZone:s}){if(!e)return(0,t.jsx)("span",{className:"stg:text-sm stg:text-muted-foreground",children:"—"});let n=(0,E.k)(e);return"custom"===n.kind?(0,t.jsxs)("div",{className:"stg:flex stg:flex-col stg:gap-0.5",children:[(0,t.jsx)("code",{className:"stg:font-mono stg:text-sm stg:text-foreground",children:e}),s&&(0,t.jsx)("span",{className:"stg:text-xs stg:text-muted-foreground",children:s})]}):(0,t.jsxs)("div",{className:"stg:flex stg:flex-col stg:gap-0.5",children:[(0,t.jsx)("span",{className:"stg:text-sm stg:text-foreground",children:(0,E.Q)(n,s||void 0)}),(0,t.jsx)("code",{className:"stg:font-mono stg:text-xs stg:text-muted-foreground",children:e})]})}function eH({cron:e,timeZone:n,onSave:a,isSaving:r,error:i}){let[l,o]=(0,s.useState)(!1),[d,g]=(0,s.useState)(()=>(0,E.k)(e)),[u,c]=(0,s.useState)(n);if(!l)return(0,t.jsx)(eX,{onEdit:()=>{g((0,E.k)(e)),c(n||(0,et.W)()),o(!0)},ariaLabel:"Edit cadence",children:(0,t.jsx)(ez,{cron:e,timeZone:n})});let m=(0,E.f)(d).trim(),x=""!==m&&null===(0,E.H)(m);return(0,t.jsxs)("div",{className:"stg:flex stg:flex-col stg:gap-2",children:[(0,t.jsx)(A.f,{value:d,onChange:g,timeZone:u,disabled:r}),(0,t.jsxs)("div",{className:"stg:space-y-1",children:[(0,t.jsx)("span",{className:eJ,children:"Time zone"}),(0,t.jsx)(et.Y,{value:u,onChange:c,disabled:r})]}),(0,t.jsx)(eK,{onCancel:()=>o(!1),onSave:async()=>{await a(m,u)&&o(!1)},isSaving:r,canSave:x,error:i})]})}function eW({org:e,refs:n,creatorId:a,onSave:r,isSaving:i,error:l}){let{account:o}=(0,L.f)(),d=o?.metadata?.id??"",[g,u]=(0,s.useState)(!1),[c,m]=(0,s.useState)([]);return g?(0,t.jsxs)("div",{className:"stg:flex stg:flex-col stg:gap-2",children:[(0,t.jsx)(F.f,{org:e,value:c,onChange:m,disabled:i,allowMyVault:""!==d&&d===a}),(0,t.jsx)("p",{className:"stg:text-2xs stg:text-muted-foreground",children:"The keys and logins every fire uses. Without them, an agent whose tools need credentials is refused every run, naming the key."}),(0,t.jsx)(eK,{onCancel:()=>u(!1),onSave:async()=>{await r(c)&&u(!1)},isSaving:i,canSave:!0,error:l})]}):(0,t.jsx)(eX,{onEdit:()=>{m(n.map(e=>({org:e.org,slug:e.slug,...e.id?{id:e.id}:{}}))),u(!0)},ariaLabel:"Edit vaults",children:(0,t.jsx)(e1,{refs:n})})}function eY({org:e,agentRef:n,environmentRef:a,editable:r,onSave:i,isSaving:l,error:o}){let{inherited:d,nameOf:g}=(0,e$.u)(e,n),[u,c]=(0,s.useState)(!1),[m,x]=(0,s.useState)(void 0),f=void 0!==a&&""!==a.slug?a:void 0,h=(0,t.jsx)("span",{className:"stg:text-sm stg:text-foreground",children:(0,eD.Q)(void 0!==f?{kind:"chosen",environment:f,source:"routine"}:d,g)});return r?u?(0,t.jsxs)("div",{className:"stg:flex stg:flex-col stg:gap-2",children:[(0,t.jsx)(e$.n,{org:e,agentRef:n,value:m,onChange:x,disabled:l}),(0,t.jsx)("p",{className:"stg:text-2xs stg:text-muted-foreground",children:"The packages and network every fire’s sandbox gets."}),(0,t.jsx)(eK,{onCancel:()=>c(!1),onSave:async()=>{await i(m)&&c(!1)},isSaving:l,canSave:!0,error:o})]}):(0,t.jsx)(eX,{onEdit:()=>{x(void 0!==f?{org:f.org||e,slug:f.slug}:void 0),c(!0)},ariaLabel:"Edit environment",children:h}):h}function eZ({invocation:e,onSave:n,isSaving:a,error:r}){let[i,l]=(0,s.useState)(!1),[o,d]=(0,s.useState)(""),[g,u]=(0,s.useState)("stigmer"),[c,m]=(0,s.useState)("standard"),[x,f]=(0,s.useState)("disabled");return i?(0,t.jsxs)("div",{className:"stg:flex stg:flex-col stg:gap-2",children:[(0,t.jsxs)("div",{className:"stg:flex stg:items-center stg:gap-2",children:[(0,t.jsx)(P.f,{value:o,onValueChange:d,initialHarness:g,onHarnessChange:u,serviceTier:c,onServiceTierChange:m,thinkingMode:x,onThinkingModeChange:f,placeholderLabel:"Platform default",disabled:a}),""!==o&&(0,t.jsx)("button",{type:"button",onClick:()=>{d(""),m("standard"),f("disabled")},disabled:a,className:"stg:rounded-md stg:px-2 stg:py-1 stg:text-2xs stg:text-muted-foreground stg:hover:text-foreground stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring stg:disabled:pointer-events-none stg:disabled:opacity-50",children:"Reset to platform default"})]}),(0,t.jsx)("p",{className:"stg:text-2xs stg:text-muted-foreground",children:"Runs use the platform’s default harness and model unless you pick one here. Picking a model pins the harness it belongs to."}),(0,t.jsx)(eK,{onCancel:()=>l(!1),onSave:async()=>{await n(""!==o?(0,M._)(g):R.T.UNSPECIFIED,o,c,x)&&l(!1)},isSaving:a,canSave:!0,error:r})]}):(0,t.jsx)(eX,{onEdit:()=>{d(e.runConfig?.modelName??""),u(e.harness!==R.T.UNSPECIFIED?(0,M.n)(e.harness):"stigmer"),m((0,D.S)(e.runConfig?.serviceTier)??"standard"),f((0,$.o)(e.runConfig?.thinkingMode)??"disabled"),l(!0)},ariaLabel:"Edit harness and model",children:(0,t.jsx)(e5,{invocation:e})})}function eV({config:e,onSave:n,isSaving:r,error:i}){let[l,o]=(0,s.useState)(!1),[d,g]=(0,s.useState)("");if(!l)return(0,t.jsx)(eX,{onEdit:()=>{g(e&&e.maxCostUsd>0?String(e.maxCostUsd):""),o(!0)},ariaLabel:"Edit budget",children:(0,t.jsx)(e3,{config:e})});let u=Number.parseFloat(d),c=Number.isFinite(u)&&u>0?u:void 0;return(0,t.jsxs)("div",{className:"stg:flex stg:flex-col stg:gap-2",children:[(0,t.jsx)("input",{type:"number",min:"0",step:"any","aria-label":"Budget per run (USD)",value:d,onChange:e=>g(e.target.value),placeholder:"platform default",disabled:r,className:(0,a.f)(eQ,"stg:sm:max-w-48")}),(0,t.jsx)("p",{className:"stg:text-2xs stg:text-muted-foreground",children:"Each run stops when it reaches this spend. You can lower the platform’s per-run cap, never raise it past the platform’s ceiling. Blank inherits the platform default."}),(0,t.jsx)(eK,{onCancel:()=>o(!1),onSave:async()=>{await n(c)&&o(!1)},isSaving:r,canSave:!0,error:i})]})}function eq(e,t,s,n,a,r){let i={};return""!==e.trim()&&(i.modelName=e.trim()),t>0&&(i.maxCostUsd=t),s>0&&(i.maxToolRounds=s),r>0&&(i.maxToolResultChars=r),n!==I.h.UNSPECIFIED&&(i.serviceTier=n),a!==I.c.UNSPECIFIED&&(i.thinkingMode=a),Object.keys(i).length>0?(0,l.f)(T.o,i):void 0}function eG(e){return e.trim()?e.length>8192?"Message must be at most 8192 characters.":null:"Message is required — the agent receives it on every fire."}let eJ="stg:block stg:text-xs stg:font-medium stg:text-foreground",eQ=(0,a.f)("stg:w-full stg:rounded-md stg:border stg:border-input stg:bg-background stg:px-2.5 stg:py-1.5 stg:text-xs stg:text-foreground","stg:placeholder:text-muted-foreground","stg:focus-visible:outline-none stg:focus-visible:ring-1 stg:focus-visible:ring-ring","stg:disabled:pointer-events-none stg:disabled:opacity-50");function eX({onEdit:e,ariaLabel:s,children:n}){return(0,t.jsx)("div",{className:"stg:group/inline-edit",children:(0,t.jsx)("button",{type:"button",onClick:e,"aria-label":s,className:(0,a.f)("stg:-mx-2 stg:w-full stg:rounded-md stg:px-2 stg:py-1.5 stg:text-left stg:transition-colors","stg:hover:bg-accent-hover stg:cursor-pointer","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-inset stg:focus-visible:ring-ring"),children:(0,t.jsxs)("div",{className:"stg:flex stg:items-start stg:justify-between stg:gap-2",children:[(0,t.jsx)("div",{className:"stg:min-w-0 stg:flex-1",children:n}),(0,t.jsx)(tn,{className:"stg:mt-0.5 stg:size-3 stg:shrink-0 stg:text-muted-foreground stg:opacity-0 stg:transition-opacity stg:group-hover/inline-edit:opacity-100"})]})})})}function eK({onCancel:e,onSave:s,isSaving:n,canSave:r,error:i}){return(0,t.jsxs)("div",{className:"stg:flex stg:flex-col stg:gap-1.5",children:[(0,t.jsxs)("div",{className:"stg:flex stg:items-center stg:justify-end stg:gap-1.5",children:[(0,t.jsx)("button",{type:"button",onClick:e,disabled:n,className:(0,a.f)("stg:rounded-md stg:px-2.5 stg:py-1 stg:text-xs stg:font-medium","stg:border stg:border-border stg:bg-background stg:text-foreground stg:hover:bg-accent stg:hover:text-accent-foreground","stg:disabled:opacity-50","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring"),children:"Cancel"}),(0,t.jsxs)("button",{type:"button",onClick:s,disabled:!r||n,className:(0,a.f)("stg:inline-flex stg:items-center stg:gap-1 stg:rounded-md stg:px-2.5 stg:py-1 stg:text-xs stg:font-medium","stg:bg-primary stg:text-primary-foreground stg:hover:bg-primary-hover","stg:disabled:pointer-events-none stg:disabled:opacity-50","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring"),children:[n&&(0,t.jsx)(eA.f,{size:14}),"Save"]})]}),i&&(0,t.jsx)("p",{className:"stg:text-xs stg:text-destructive",role:"alert",children:i})]})}function e0({label:e,children:s}){return(0,t.jsxs)("div",{className:"stg:flex stg:items-start stg:gap-4 stg:px-4 stg:py-2.5",children:[(0,t.jsx)("dt",{className:"stg:w-40 stg:shrink-0 stg:pt-0.5 stg:text-xs stg:font-medium stg:text-muted-foreground",children:e}),(0,t.jsx)("dd",{className:"stg:min-w-0 stg:flex-1",children:s})]})}function e1({refs:e}){let s=(0,eL.b)();return 0===e.length?(0,t.jsx)("span",{className:"stg:text-sm stg:text-muted-foreground",children:"—"}):(0,t.jsx)("ul",{className:(0,a.f)(i.J,"stg:flex stg:flex-col stg:gap-0.5"),children:e.map((e,n)=>(0,t.jsx)("li",{className:"stg:font-mono stg:text-xs stg:text-foreground",children:e.org?`${s(e.org)}/${e.slug}`:e.slug},`${e.org}/${e.slug}-${n}`))})}function e2({count:e}){return 0===e?(0,t.jsx)("span",{className:"stg:text-sm stg:text-foreground",children:"0"}):(0,t.jsxs)("div",{className:"stg:flex stg:flex-col stg:gap-0.5",children:[(0,t.jsxs)("span",{className:"stg:text-sm stg:font-medium stg:text-status-degraded",children:[e," consecutive failed ",1===e?"run":"runs"]}),(0,t.jsx)("p",{className:"stg:text-xs stg:text-muted-foreground",children:"Failed scheduled runs raise this streak; too many in a row and the platform pauses the routine automatically. One successful run resets it to 0. Manual runs never count."})]})}function e5({invocation:e}){let s=e?.harness??R.T.UNSPECIFIED,n=e?.runConfig?.modelName??"";if(s===R.T.UNSPECIFIED&&""===n)return(0,t.jsx)("span",{className:"stg:text-sm stg:text-muted-foreground",children:"Platform default"});let a=[];return s!==R.T.UNSPECIFIED&&a.push(M.H[(0,M.n)(s)].label),a.push(""!==n?n:"platform-default model"),e?.runConfig?.serviceTier===I.h.FAST&&a.push("Fast tier"),e?.runConfig?.thinkingMode===I.c.ENABLED&&a.push("Thinking"),(0,t.jsx)("span",{className:"stg:text-sm stg:text-foreground",children:a.join(" · ")})}function e3({config:e}){let s=e?.maxCostUsd??0,n=e?.maxToolRounds??0;return(0,t.jsxs)("div",{className:"stg:flex stg:flex-col stg:gap-0.5",children:[s>0?(0,t.jsxs)("span",{className:"stg:text-sm stg:text-foreground",children:["≤ $",s.toFixed(2)," per run"]}):(0,t.jsx)("span",{className:"stg:text-sm stg:text-muted-foreground",children:"Platform default"}),n>0&&(0,t.jsxs)("span",{className:"stg:text-xs stg:text-muted-foreground",children:["≤ ",n," tool rounds"]})]})}function e6({resources:e}){let s=e.filter(e=>"file"!==e.resource.case);return 0===s.length?(0,t.jsx)("span",{className:"stg:text-sm stg:text-muted-foreground",children:"—"}):(0,t.jsx)("ul",{className:(0,a.f)(i.J,"stg:flex stg:flex-col stg:gap-0.5"),children:s.map((e,s)=>{let n="gitRepository"===e.resource.case?e.resource.value:void 0;return(0,t.jsxs)("li",{className:"stg:text-xs stg:text-foreground",children:[(0,t.jsx)("span",{className:"stg:font-medium",children:e.name}),n?.url&&(0,t.jsxs)("span",{className:"stg:ml-1.5 stg:font-mono stg:text-muted-foreground",children:[n.url,n.branch?`@${n.branch}`:""]})]},`${e.name}-${s}`)})})}function e4({resources:e}){let s=e.flatMap(e=>"file"===e.resource.case?[e.resource.value.fileId]:[]);return 0===s.length?(0,t.jsx)("span",{className:"stg:text-sm stg:text-muted-foreground",children:"—"}):(0,t.jsx)("ul",{className:(0,a.f)(i.J,"stg:flex stg:flex-col stg:gap-0.5"),children:s.map(e=>(0,t.jsx)(e7,{fileId:e},e))})}function e7({fileId:e}){let{file:s,isLoading:n,error:a}=(0,r.V)(e);return s?(0,t.jsx)("li",{className:"stg:text-xs stg:font-medium stg:text-foreground",children:s.spec?.filename}):(0,t.jsx)("li",{className:"stg:text-xs stg:text-muted-foreground",children:n?"Loading…":(0,t.jsxs)(t.Fragment,{children:["A file you cannot see ",(0,t.jsx)("span",{className:"stg:font-mono",children:e}),a?". Its owner can share it with the organization.":""]})})}function e8({label:e,onNavigate:s,mono:n}){let r=(0,a.f)("stg:text-sm",n&&"stg:font-mono stg:text-xs");return s?(0,t.jsx)("button",{type:"button",onClick:s,className:(0,a.f)(r,"stg:text-primary stg:underline-offset-2 stg:hover:underline","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring stg:rounded-sm"),children:e}):(0,t.jsx)("span",{className:(0,a.f)(r,"stg:text-foreground"),children:e})}function e9({className:e}){return(0,t.jsxs)(eF.f,{className:(0,a.f)("stg:flex stg:flex-col stg:gap-6",e),label:"Loading routine details",children:[(0,t.jsxs)("div",{className:"stg:flex stg:items-start stg:gap-3",children:[(0,t.jsx)("div",{className:"stg:mt-1 stg:size-6 stg:shrink-0 stg:animate-pulse stg:rounded stg:bg-muted"}),(0,t.jsxs)("div",{className:"stg:flex-1 stg:space-y-2",children:[(0,t.jsx)("div",{className:"stg:h-5 stg:w-48 stg:animate-pulse stg:rounded stg:bg-muted"}),(0,t.jsx)("div",{className:"stg:h-3 stg:w-64 stg:animate-pulse stg:rounded stg:bg-muted"})]})]}),(0,t.jsxs)("div",{className:"stg:space-y-2",children:[(0,t.jsx)("div",{className:"stg:h-3 stg:w-28 stg:animate-pulse stg:rounded stg:bg-muted"}),(0,t.jsx)("div",{className:"stg:animate-pulse stg:rounded-lg stg:border stg:border-border stg:bg-muted-faint",style:{height:"160px"}})]}),(0,t.jsxs)("div",{className:"stg:space-y-2",children:[(0,t.jsx)("div",{className:"stg:h-3 stg:w-20 stg:animate-pulse stg:rounded stg:bg-muted"}),(0,t.jsx)("div",{className:"stg:animate-pulse stg:rounded-lg stg:border stg:border-border stg:bg-muted-faint",style:{height:"160px"}})]})]})}function te({className:e}){return(0,t.jsxs)("div",{role:"status",className:(0,a.f)("stg:flex stg:flex-col stg:items-center stg:gap-2 stg:py-12 stg:text-center",e),children:[(0,t.jsx)(tt,{className:"stg:size-10 stg:text-muted-foreground-faint"}),(0,t.jsx)("p",{className:"stg:text-sm stg:font-medium stg:text-muted-foreground",children:"Routine not found"}),(0,t.jsx)("p",{className:"stg:text-xs stg:text-muted-foreground-subtle",children:"This routine doesn't exist or you don't have access to it."})]})}function tt({className:e}){return(0,t.jsxs)("svg",{className:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,t.jsx)("path",{d:"M21 12a9 9 0 1 1-2.64-6.36"}),(0,t.jsx)("path",{d:"M21 3v5h-5"}),(0,t.jsx)("path",{d:"M12 7v5l3 3"})]})}function ts({className:e}){return(0,t.jsxs)("svg",{className:e,viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,t.jsx)("path",{d:"M8 1.5 15 14H1L8 1.5Z"}),(0,t.jsx)("path",{d:"M8 6v4"}),(0,t.jsx)("path",{d:"M8 12.2v.05"})]})}function tn({className:e}){return(0,t.jsx)("svg",{className:e,viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:(0,t.jsx)("path",{d:"M11.5 1.5a2.121 2.121 0 0 1 3 3L5 14l-4 1 1-4Z"})})}var ta=e.i(310057),tr=e.i(451241),ti=e.i(683738),tl=e.i(107141);function to({org:e,slug:a}){let r=(0,n.useRouter)(),{setLabel:i}=(0,ta.Q)(),{navigateToDetail:l,canonicalSlug:o}=(0,tr.b)(),{navigateToRun:d}=(0,ti.f)(),[g,u]=(0,s.useState)(()=>new URLSearchParams(window.location.search).get("tab")??void 0??"overview");(0,s.useEffect)(()=>()=>i(null),[i]);let c=(0,s.useCallback)(e=>{i(e.metadata?.name||e.metadata?.slug||"Routine"),e.metadata?.slug&&o(e.metadata.slug)},[i,o]);return(0,t.jsx)(e_,{org:e,slug:a,editable:!0,activeTab:g,onTabChange:u,onResourceLoad:c,onNavigateToAgent:(e,t)=>l("agents",e,t),onNavigateToRun:d,onDeleted:()=>r.push("/library/routines"),onRenamed:e=>{e.metadata?.slug&&o(e.metadata.slug)}})}e.s(["RoutineDetailPage",0,function(){let e=(0,tr.R)(),s=(0,tl.f)("org",2),n=(0,tl.f)("slug");return!e&&s&&n?(0,t.jsx)(to,{org:s,slug:n}):null},"RoutineDetailPageInner",0,to],298023)}]);
@@ -0,0 +1,2 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,335264,982247,722764,e=>{"use strict";var t=e.i(891287),s=e.i(17616),r=e.i(191470),i=e.i(931664),n=e.i(937111),a=e.i(628217);let o=BigInt(1e6),l=new Intl.NumberFormat("en-US",{maximumFractionDigits:0}),c=new Intl.NumberFormat("en-US",{minimumFractionDigits:2,maximumFractionDigits:2});function d(e){let t=e??BigInt(0),s=Number(t)/Number(o);return`$${t%o===BigInt(0)?l.format(s):c.format(s)}`}e.s(["i",0,d,"w",0,function(e){if(void 0===e)return"$0.00";let t=Number(e)/1e4;return`$${(t/100).toFixed(2)}`}],982247);let g=BigInt(0),u=new Set;function m(e){return[...new Set(e?.features??[])].filter(e=>(0,a.e)(e)&&!u.has(e)).sort((e,t)=>e-t).map(e=>({feature:e,...a.o[e]}))}function h(e){return e.filter(e=>e.spec?.instrument===r.c.subscription&&e.status?.lifecycle===i.N.active).map((e,t)=>({plan:e,index:t})).sort((e,t)=>{var s,r;let i,n;return s=e.plan,r=t.plan,i=s.spec?.terms?.monthlyMinimumMicros??g,(i===(n=r.spec?.terms?.monthlyMinimumMicros??g)?0:i<n?-1:1)||e.index-t.index}).map(({plan:e})=>e)}let f={name:"Enterprise Cloud",includes:"Everything in Business",features:[n.x.access_history],terms:"Annual contract, invoiced"},x={name:"Free",entitlements:(0,t.f)(n.i,{features:[n.x.channels,n.x.chat_links],limits:{includedAgentHours:30,maxActiveSessionSandboxes:5}}),extras:["Unlimited members"]},p=new Intl.NumberFormat("en-US");function v(e,t){if(!(e?.features??[]).includes(n.x.child_orgs))return"";let s=e?.limits?.includedChildOrgs,r=t?.perExtraOrgMicros??g;if(void 0===s)return"Unlimited child organizations";let i=r>g?`, then ${d(r)}/month each`:"";return`${p.format(s)} child organization${1===s?"":"s"} included${i}`}function j(e,t){let s=e?.limits?.includedAgentHours;if(void 0===s)return"";let r=`${p.format(s)} agent hour${1===s?"":"s"} a month`,i=t?.perAgentHourMicros;return void 0===i?`${r}, then new work pauses`:`${r}, then ${d(i)} an hour`}let y=new Intl.DateTimeFormat("en-US",{month:"short",day:"numeric",year:"numeric",timeZone:"UTC"});function b(e){return y.format(e)}e.s(["V",0,f,"Z",0,x,"v",0,h,"t",0,function(e,t){let s=new Set(m(t.spec?.entitlements).map(e=>e.feature));return m(e?.spec?.entitlements).filter(e=>!s.has(e.feature))},"u",0,function(e){let t=(e+BigInt(180))/BigInt(360);return`${t/BigInt(10)}.${t%BigInt(10)} h`},"I",0,j,"m",0,v,"_",0,b,"k",0,function(e){return`${d(e?.monthlyMinimumMicros??g)}/month`},"c",0,function(e){return void 0===e?"":b((0,s.S)(e))},"J",0,m,"e",0,function(e,t){var s;let r;return[v(e,t),j(e,t),(s=e,void 0===(r=s?.limits?.maxActiveSessionSandboxes)?"":`${p.format(r)} agent${1===r?"":"s"} at once`)].filter(e=>""!==e)},"n",0,function(e,t){let s=h(e).find(e=>m(e.spec?.entitlements).some(e=>e.feature===t))?.metadata?.name;return void 0!==s&&""!==s?s:f.features.some(e=>e===t)?f.name:""}],335264);var N=e.i(651023),w=e.i(434517),k=e.i(255817),$=e.i(766330),S=e.i(205413),M=e.i(616701);e.s(["f",0,function(e){let s=(0,k.f)(),r=e?.enabled??!0,i=e?.includeRetired??!1,{data:n,isLoading:a,isRefetching:o,error:l,refetch:c}=(0,M.f)(r?()=>(0,S.T)(e=>s.plan.list((0,t.f)(w.v,{includeRetired:i,pageSize:$.J,pageToken:e}))):null,[r,i,s],null);return(0,N.useMemo)(()=>({plans:n,isLoading:a,isRefetching:o,error:l,refetch:c}),[n,a,o,l,c])}],722764)},182836,e=>{"use strict";var t=e.i(651023),s=e.i(891287),r=e.i(662502),i=e.i(255817),n=e.i(616701);e.s(["f",0,function(e,a){let o=(0,i.f)(),l=(a?.enabled??!0)&&null!==e&&""!==e,{data:c,isLoading:d,error:g,refetch:u}=(0,n.f)(l&&e?()=>o.subscription.getEntitlements((0,s.f)(r.w,{org:e})):null,[l,e,o],null,{refetchOnWindowFocus:!0}),m=c?.entitlements?.features;return(0,t.useMemo)(()=>({entitlements:c,allows:e=>void 0===m?null:m.includes(e),isLoading:d,error:g,refetch:u}),[c,m,d,g,u])}])},311015,e=>{"use strict";var t=e.i(974265),s=e.i(893976),r=e.i(65642),i=e.i(651023),n=e.i(475254);let a=(0,n.f)("package",[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]]),o=(0,n.f)("search-x",[["path",{d:"m13.5 8.5-5 5",key:"1cs55j"}],["path",{d:"m8.5 8.5 5 5",key:"a8mexj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]),l=(0,n.f)("lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]]);var c=e.i(63209);let d="stg:h-10 stg:w-10";e.s(["f",0,function({variant:e,resourceLabel:n,icon:g,title:u,description:m,errorMessage:h,action:f,children:x,className:p}){let v=function(e){let{variant:t,resourceLabel:s="resources",title:r,description:n,errorMessage:g}=e;return(0,i.useMemo)(()=>{let e=function(e,t){switch(e){case"first-use":return{title:`No ${t} yet`,description:`Create ${"agents"===t?"an agent":`a ${t.replace(/s$/,"")}`} to get started.`};case"zero-results":return{title:"No results found",description:"Try adjusting your search or filters."};case"permission":return{title:`No access to ${t}`,description:"You don't have permission to view these resources. Contact your organization admin."};case"error":return{title:"Something went wrong",description:"We couldn't load this content. Please try again."}}}(t,s);return{title:r??e.title,description:"error"===t&&g?g:n??e.description,defaultIcon:function(e){switch(e){case"first-use":return(0,i.createElement)(a,{className:d});case"zero-results":return(0,i.createElement)(o,{className:d});case"permission":return(0,i.createElement)(l,{className:d});case"error":return(0,i.createElement)(c.f,{className:d})}}(t),role:"error"===t?"alert":"status"}},[t,s,r,n,g])}({variant:e,resourceLabel:n,title:u,description:m,errorMessage:h});return(0,t.jsxs)("div",{role:v.role,className:(0,s.f)("stg:flex stg:flex-col stg:items-center stg:gap-3 stg:py-12 stg:text-center",p),children:[(0,t.jsx)("div",{className:"stg:text-muted-foreground-faint",children:g??v.defaultIcon}),(0,t.jsxs)("div",{className:"stg:flex stg:flex-col stg:gap-1",children:[(0,t.jsx)("p",{className:"stg:m-0 stg:text-sm stg:font-medium stg:text-muted-foreground",children:v.title}),(0,t.jsx)("p",{className:"stg:m-0 stg:max-w-sm stg:text-xs stg:text-muted-foreground",children:v.description})]}),x?(0,t.jsx)("div",{className:"stg:mt-1",children:x}):f&&(0,t.jsx)(r.f,{variant:"error"===e?"outline":"primary",icon:f.icon,onClick:f.onClick,className:"stg:mt-1",children:f.label})]})}],311015)},476007,e=>{"use strict";var t=e.i(974265),s=e.i(651023),r=e.i(610595),i=e.i(893976);let n={auth:"Authentication required",permission:"Access denied","not-found":"Not found",validation:"Invalid request",server:"Server error",unavailable:"Service unavailable",cancelled:"Request cancelled",unknown:"Something went wrong"};function a({className:e}){return(0,t.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",className:e,"aria-hidden":"true",children:[(0,t.jsx)("path",{d:"M7.13 2.5a1 1 0 0 1 1.74 0l5.5 9.5A1 1 0 0 1 13.5 13.5h-11a1 1 0 0 1-.87-1.5l5.5-9.5z"}),(0,t.jsx)("path",{d:"M8 6v3"}),(0,t.jsx)("circle",{cx:"8",cy:"11",r:"0.5",fill:"currentColor",stroke:"none"})]})}function o({className:e}){return(0,t.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",className:e,"aria-hidden":"true",children:[(0,t.jsx)("path",{d:"M8 1.5l5 2v4c0 3.5-2.5 5.5-5 6.5-2.5-1-5-3-5-6.5v-4l5-2z"}),(0,t.jsx)("path",{d:"M6 6.5l4 4M10 6.5l-4 4"})]})}function l({className:e}){return(0,t.jsx)("svg",{width:"12",height:"12",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:e,"aria-hidden":"true",children:(0,t.jsx)("path",{d:"M4 6l4 4 4-4"})})}function c({className:e}){return(0,t.jsxs)("svg",{width:"12",height:"12",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",className:e,"aria-hidden":"true",children:[(0,t.jsx)("path",{d:"M2 6.5h4v-4"}),(0,t.jsx)("path",{d:"M3.5 11.5a5.5 5.5 0 1 0 .5-6l-2 1"})]})}e.s(["f",0,function({error:e,title:d,retry:g,className:u}){let[m,h]=(0,s.useState)(!1);if(!e)return null;let f=(0,r.V)(e),x=(0,r.g)(e),p=(0,r.X)(e),v=(0,r.f)(e);return(0,t.jsx)("div",{role:"alert",className:(0,i.f)("stg:bg-destructive-subtle stg:border-destructive/20 stg:text-destructive stg:rounded-lg stg:border stg:p-4",u),children:(0,t.jsxs)("div",{className:"stg:flex stg:items-start stg:gap-3",children:["auth"===f||"permission"===f?(0,t.jsx)(o,{className:"stg:mt-0.5 stg:size-4 stg:shrink-0"}):(0,t.jsx)(a,{className:"stg:mt-0.5 stg:size-4 stg:shrink-0"}),(0,t.jsxs)("div",{className:"stg:min-w-0 stg:flex-1 stg:space-y-1",children:[(0,t.jsx)("p",{className:"stg:text-sm stg:font-medium",children:d??n[f]}),(0,t.jsx)("p",{className:"stg:m-0 stg:text-destructive stg:text-sm",children:x}),p&&(0,t.jsxs)("div",{className:"stg:pt-1",children:[(0,t.jsxs)("button",{type:"button",onClick:()=>h(e=>!e),className:"stg:text-destructive stg:hover:underline stg:inline-flex stg:items-center stg:gap-1 stg:text-xs stg:transition-colors",children:[(0,t.jsx)(l,{className:(0,i.f)("stg:size-3 stg:transition-transform",m&&"stg:rotate-180")}),"Technical details"]}),m&&(0,t.jsxs)("dl",{className:"stg:text-destructive stg:mt-1.5 stg:space-y-0.5 stg:font-mono stg:text-xs",children:[(0,t.jsxs)("div",{className:"stg:flex stg:gap-2",children:[(0,t.jsx)("dt",{className:"stg:shrink-0",children:"Method:"}),(0,t.jsx)("dd",{className:"stg:truncate",children:p.method})]}),(0,t.jsxs)("div",{className:"stg:flex stg:gap-2",children:[(0,t.jsx)("dt",{className:"stg:shrink-0",children:"Path:"}),(0,t.jsx)("dd",{className:"stg:truncate",children:p.path})]})]})]})]}),g&&v&&(0,t.jsxs)("button",{type:"button",onClick:g,className:(0,i.f)("stg:inline-flex stg:shrink-0 stg:items-center stg:gap-1.5 stg:rounded-md stg:border stg:px-2.5 stg:py-1.5 stg:text-xs stg:font-medium","stg:border-destructive/20 stg:text-destructive stg:hover:bg-destructive-subtle","stg:transition-colors"),children:[(0,t.jsx)(c,{className:"stg:size-3"}),"Retry"]})]})})}])},630983,e=>{"use strict";var t=e.i(974265),s=e.i(893976);function r({className:e}){return(0,t.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",className:e,"aria-hidden":"true",children:[(0,t.jsx)("circle",{cx:"8",cy:"8",r:"6.25"}),(0,t.jsx)("path",{d:"M8 7v4"}),(0,t.jsx)("circle",{cx:"8",cy:"5",r:"0.5",fill:"currentColor",stroke:"none"})]})}e.s(["f",0,function({children:e,className:i}){return(0,t.jsxs)("div",{role:"status",className:(0,s.f)("stg:bg-muted-subtle stg:text-muted-foreground stg:flex stg:items-start stg:gap-2.5 stg:rounded-lg stg:border stg:border-transparent stg:px-4 stg:py-3",i),children:[(0,t.jsx)(r,{className:"stg:mt-0.5 stg:size-4 stg:shrink-0"}),(0,t.jsx)("p",{className:"stg:text-xs stg:leading-relaxed",children:e})]})}])},66724,e=>{"use strict";var t=e.i(974265),s=e.i(893976);e.s(["f",0,function({title:e,description:r,actions:i,headingLevel:n=1,headingId:a,className:o}){return(0,t.jsxs)("header",{className:(0,s.f)("stg:flex stg:flex-col stg:gap-1",o),children:[(0,t.jsxs)("div",{className:"stg:flex stg:min-h-8 stg:flex-wrap stg:items-center stg:justify-between stg:gap-x-6 stg:gap-y-2",children:[(0,t.jsx)(1===n?"h1":"h2",{id:a,className:"stg:m-0 stg:text-xl stg:font-semibold stg:tracking-tight stg:text-foreground",children:e}),null!=i&&!1!==i&&(0,t.jsx)("div",{className:"stg:flex stg:shrink-0 stg:items-center stg:gap-2",children:i})]}),null!=r&&(0,t.jsx)("p",{className:"stg:m-0 stg:max-w-2xl stg:text-sm stg:text-muted-foreground",children:r})]})}])},862736,e=>{"use strict";var t=e.i(974265),s=e.i(651023),r=e.i(17616),i=e.i(893976),n=e.i(170255),a=e.i(349279),o=e.i(937111),l=e.i(891287),c=e.i(414385);async function*d(e,t,s={}){let r=s.after??BigInt(0),i="",n=!0;do{s.signal?.throwIfAborted();let o=await e.listAccessHistory((0,l.f)(a.N,{org:t,afterSequence:r,pageSize:100,pageToken:i}));n&&o.oldestSequence>r+BigInt(1)&&s.onRemoved?.({first:r+BigInt(1),last:o.oldestSequence-BigInt(1),retentionDays:o.retentionDays}),n=!1,yield*o.entries,i=o.nextPageToken}while(""!==i)}var g=e.i(504788),u=e.i(610595),m=e.i(247112),h=e.i(335264),f=e.i(182836),x=e.i(722764),p=e.i(971854),v=e.i(255817),j=e.i(803874),y=e.i(400019),b=e.i(311015),N=e.i(476007),w=e.i(745176),k=e.i(869803),$=e.i(297629),S=e.i(193251),M=e.i(365785),z=e.i(734433);function _({org:e}){var r;let n=function(e,t={}){let s=(0,v.f)(),r=t.pageSize??50,i=(0,y.f)(e?t=>s.grant.listAccessHistory((0,l.f)(a.N,{org:e,pageSize:r,pageToken:t})):null,[e,r,s],e=>e.sequence.toString()),n=i.firstPage;return{entries:i.items,retention:null===n?null:{days:n.retentionDays,oldestSequence:n.oldestSequence},hasMore:i.hasMore,loadMore:i.loadMore,isLoadingMore:i.isLoadingMore,loadMoreError:i.loadMoreError,isLoading:i.isLoading,error:i.error,refetch:i.refetch}}(e),o=function(e){let t=(0,v.f)(),[r,i]=(0,s.useState)(!1),[n,o]=(0,s.useState)(null);return{run:(0,s.useCallback)(async()=>{i(!0),o(null);try{let s=[];for await(let r of d(t.grant,e))s.push((0,c.F)(a.c,r));(0,w.a)(`${s.join("\n")}
2
+ `,`access-history-${e}.jsonl`,"application/jsonl")}catch(e){o(e instanceof Error?e:Error(String(e)))}finally{i(!1)}},[e,t]),isRunning:r,error:n}}(e);if(n.isLoading)return(0,t.jsx)(z.SettingsSkeleton,{label:"Loading the access history",rows:3});if(n.error){let e=(0,m.S)(n.error);return null!==e?(0,t.jsx)(m.e,{feature:e,error:n.error}):(0,t.jsx)(N.f,{error:n.error,title:"The access history could not be read",retry:n.refetch})}return(0,t.jsxs)("div",{className:"stg:space-y-3",children:[(0,t.jsxs)("div",{className:"stg:flex stg:items-center stg:justify-between stg:gap-3",children:[(0,t.jsx)("p",{className:"stg:text-muted-foreground stg:text-xs",children:(r=n.retention?.days??0)<=0?"Kept for good":`Entries older than ${r} ${1===r?"day":"days"} are removed`}),(0,t.jsx)("button",{type:"button",onClick:o.run,disabled:o.isRunning||0===n.entries.length,className:"stg:text-primary stg:hover:text-foreground stg:text-xs stg:font-medium stg:transition-colors stg:disabled:opacity-50",children:o.isRunning?"Preparing…":"Download JSON Lines"})]}),null!==o.error&&(0,t.jsx)("p",{className:"stg:text-destructive stg:text-xs",role:"alert",children:(0,u.g)(o.error)}),0===n.entries.length?(0,t.jsx)(b.f,{variant:"first-use",title:"No access changes recorded yet",description:"When someone is given or loses access, it is written here.",className:"stg:rounded-lg stg:border stg:border-dashed stg:border-border"}):(0,t.jsx)("ol",{"aria-label":"Access changes",className:(0,i.f)(k.J,"stg:space-y-1"),children:n.entries.map(e=>(0,t.jsx)(L,{entry:e},e.sequence.toString()))}),null!==n.loadMoreError&&(0,t.jsx)("p",{className:"stg:text-destructive stg:text-xs",role:"alert",children:(0,u.g)(n.loadMoreError)}),n.hasMore&&(0,t.jsx)("button",{type:"button",onClick:n.loadMore,disabled:n.isLoadingMore,className:"stg:text-primary stg:text-xs stg:font-medium stg:hover:underline stg:disabled:opacity-50",children:n.isLoadingMore?"Loading…":"Load more"})]})}function L({entry:e}){var s;let i,o=void 0===e.occurredAt?"":A.format((0,r.S)(e.occurredAt)),l=e.role?.name||e.role?.code||"a",c=(i=I(s=e.principal),void 0===s||""===s.relation?s?.kind==="team"?`team ${i}`:i:`the ${s.relation}s of ${s.kind.replace(/_/g," ")} ${i}`),d=function(e){let t=e.resource;if(void 0===t)return"a resource";if((0,g.Q)(t))return`a ${(0,g.$)(t.kind)}`;let s=n.X[t.kind]?.replace(/_/g," ")??"resource";return`${s} ${t.slug||t.id}`}(e),u=e.change===a.k.revoked?`${B(e)} removed ${c}'s ${l} role on ${d}`:`${B(e)} gave ${c} the ${l} role on ${d}`;return(0,t.jsxs)("li",{className:"stg:rounded-md stg:px-2 stg:py-1.5 stg:hover:bg-accent-hover",children:[(0,t.jsx)("p",{className:"stg:text-foreground stg:text-xs",children:u}),(0,t.jsxs)("p",{className:"stg:text-muted-foreground stg:text-2xs",children:[o?`${o} \xb7 `:"",C[e.cause]??C[a.m.access_change_cause_unspecified],` \xb7 #${e.sequence.toString()}`]})]})}let A=new Intl.DateTimeFormat(void 0,{dateStyle:"medium",timeStyle:"short"}),C={[a.m.access_change_cause_unspecified]:"Other change",[a.m.grant]:"Granted",[a.m.revoke]:"Removed",[a.m.structural]:"Set by the resource's creation or visibility",[a.m.organization_access_revoked]:"Removed from the organization",[a.m.left_organization]:"Left the organization",[a.m.resource_deleted]:"The resource was deleted",[a.m.organization_created]:"Created the organization",[a.m.first_sign_in]:"First sign-in",[a.m.role_reconciliation]:"Membership rules applied",[a.m.operator_ownership]:"The server's operator took ownership",[a.m.service_account_created]:"Service account created"};function I(e){return e?.name||e?.email||e?.id||"someone"}function B(e){return"internal"!==e.actorClass?I(e.actor):e.actor?.id?`The server, on behalf of ${I(e.actor)},`:"The server"}e.s(["AccessHistorySection",0,function(){let{activeOrg:e}=(0,$.S)(),s=e?.metadata?.id??"",r=(0,p.T)(),i="local"!==r,n=!1===(0,f.f)(s||null,{enabled:"cloud"===r}).allows(o.x.access_history),a=(0,x.f)({enabled:n}),l=(0,h.n)(a.plans??[],o.x.access_history),c=(0,j.f)(i&&s&&!n?{kind:"organization",id:s}:null,"can_view_access_history");return(0,t.jsx)(M.f,{title:"Access history",description:"Every time someone was given or lost access to this organization or anything in it: who did it, why, and when. The history starts when your server began keeping it; nothing earlier is filled in.",unavailable:!i&&"The access history comes with Stigmer Enterprise and Cloud. On this edition no record of access changes is kept.",denied:!c.isLoading&&!c.allowed&&{title:"Only an admin can open Access history",description:"The access history is read by your organization's owners and admins."},children:s?n?(0,t.jsx)(m.e,{feature:o.x.access_history,unlockingPlanName:l}):c.isLoading?(0,t.jsx)(z.SettingsSkeleton,{label:"Loading the access history",rows:3}):(0,t.jsx)(_,{org:s}):(0,t.jsx)(S.j,{what:"its access history"})})}],862736)},193251,e=>{"use strict";var t=e.i(974265),s=e.i(311015);e.s(["H",0,"Ask one of them if this organization needs one.","j",0,function({what:e}){return(0,t.jsx)(s.f,{variant:"first-use",title:"No organization selected",description:`Choose an organization to see ${e}.`,className:"stg:rounded-lg stg:border stg:border-dashed stg:border-border"})}])},365785,e=>{"use strict";var t=e.i(974265),s=e.i(651023),r=e.i(893976),i=e.i(311015),n=e.i(630983),a=e.i(66724);e.s(["f",0,function({title:e,description:o,actions:l,unavailable:c,denied:d=!1,children:g,className:u}){let m=(0,s.useId)(),h=!0===d?{title:`Only an admin can open ${e}`,description:"Ask an owner or an admin of this organization."}:d||null,f=!!c||null!==h;return(0,t.jsxs)("section",{"aria-labelledby":m,className:(0,r.f)("stg:flex stg:flex-col stg:gap-6",u),children:[(0,t.jsx)(a.f,{title:e,description:o,actions:f?void 0:l,headingLevel:2,headingId:m}),c?(0,t.jsx)(n.f,{children:c}):null!==h?(0,t.jsx)(i.f,{variant:"permission",title:h.title,description:h.description,className:"stg:rounded-lg stg:border stg:border-border"}):g]})}])},734433,e=>{"use strict";var t=e.i(974265),s=e.i(893976),r=e.i(996675);e.s(["SettingsSkeleton",0,function({label:e="Loading",variant:i="rows",rows:n,className:a}){return"figures"===i?(0,t.jsxs)(r.f,{label:e,className:(0,s.f)("stg:flex stg:flex-col stg:gap-4",a),children:[(0,t.jsx)("div",{className:"stg:grid stg:grid-cols-1 stg:gap-3 stg:sm:grid-cols-3","aria-hidden":"true",children:Array.from({length:n??3},(e,s)=>(0,t.jsxs)("span",{className:"stg:flex stg:h-20 stg:flex-col stg:justify-center stg:gap-2 stg:rounded-lg stg:border stg:border-border stg:bg-card stg:px-4",children:[(0,t.jsx)("span",{className:"stg:h-2.5 stg:w-20 stg:animate-pulse stg:rounded stg:bg-muted-subtle"}),(0,t.jsx)("span",{className:"stg:h-5 stg:w-24 stg:animate-pulse stg:rounded stg:bg-muted"})]},s))}),(0,t.jsx)("span",{className:"stg:block stg:h-40 stg:animate-pulse stg:rounded-lg stg:border stg:border-border stg:bg-card","aria-hidden":"true"})]}):(0,t.jsx)(r.f,{label:e,className:(0,s.f)("stg:overflow-hidden stg:rounded-lg stg:border stg:border-border stg:bg-card",a),children:(0,t.jsx)("ul",{className:"stg:m-0 stg:list-none stg:divide-y stg:divide-border stg:p-0","aria-hidden":"true",children:Array.from({length:n??4},(e,s)=>(0,t.jsxs)("li",{className:"stg:flex stg:items-center stg:gap-3 stg:px-4 stg:py-3",children:[(0,t.jsx)("span",{className:"stg:size-8 stg:shrink-0 stg:animate-pulse stg:rounded-full stg:bg-muted"}),(0,t.jsxs)("span",{className:"stg:flex stg:flex-1 stg:flex-col stg:gap-1.5",children:[(0,t.jsx)("span",{className:"stg:h-3 stg:w-40 stg:max-w-full stg:animate-pulse stg:rounded stg:bg-muted"}),(0,t.jsx)("span",{className:"stg:h-2.5 stg:w-64 stg:max-w-full stg:animate-pulse stg:rounded stg:bg-muted-subtle"})]}),(0,t.jsx)("span",{className:"stg:h-5 stg:w-14 stg:shrink-0 stg:animate-pulse stg:rounded-full stg:bg-muted"})]},s))})})}])}]);