@stigmer/server-slim 3.13.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 (738) hide show
  1. package/README.md +3 -0
  2. package/console/404.html +1 -0
  3. package/console/Icon-bw.svg +10 -0
  4. package/console/Icon-light.svg +10 -0
  5. package/console/__next.__PAGE__.txt +5 -0
  6. package/console/__next._full.txt +28 -0
  7. package/console/__next._head.txt +6 -0
  8. package/console/__next._index.txt +17 -0
  9. package/console/__next._tree.txt +5 -0
  10. package/console/_next/static/XrBnttPHHP5Wmi7mT4uLM/_buildManifest.js +11 -0
  11. package/console/_next/static/XrBnttPHHP5Wmi7mT4uLM/_clientMiddlewareManifest.js +1 -0
  12. package/console/_next/static/XrBnttPHHP5Wmi7mT4uLM/_ssgManifest.js +1 -0
  13. package/console/_next/static/chunks/0-6znc4v4kg4~.js +1 -0
  14. package/console/_next/static/chunks/0-73gkqs33_.~.js +1 -0
  15. package/console/_next/static/chunks/0-l4jzu40dd8w.js +1 -0
  16. package/console/_next/static/chunks/0-z-fnjdx4ulh.js +1 -0
  17. package/console/_next/static/chunks/0-zcgxw8vt51~.js +1 -0
  18. package/console/_next/static/chunks/0.f-b71h~m9l_.js +1 -0
  19. package/console/_next/static/chunks/0.p57pbuzo8j7.js +90 -0
  20. package/console/_next/static/chunks/0.qu8zg6yocro.js +1 -0
  21. package/console/_next/static/chunks/00-fpv~l3r27l.js +1 -0
  22. package/console/_next/static/chunks/005ctashl3n1r.js +1 -0
  23. package/console/_next/static/chunks/0068d1zb538z~.js +1 -0
  24. package/console/_next/static/chunks/008b.zzs.t4bw.js +139 -0
  25. package/console/_next/static/chunks/00d~s.n2ue-_h.js +1 -0
  26. package/console/_next/static/chunks/00o8ud2dmna2j.js +1 -0
  27. package/console/_next/static/chunks/00r~itj4ekq5y.js +1 -0
  28. package/console/_next/static/chunks/01.9x7hzkgv7j.js +1 -0
  29. package/console/_next/static/chunks/016uwj-o-jqap.js +1 -0
  30. package/console/_next/static/chunks/01f1gh.2dzexy.js +1 -0
  31. package/console/_next/static/chunks/01ontipw7_pn-.js +1 -0
  32. package/console/_next/static/chunks/02fsq8lsaeu8j.js +1 -0
  33. package/console/_next/static/chunks/02qsbdquvk64o.js +1 -0
  34. package/console/_next/static/chunks/03.b9z-1o34dx.js +1 -0
  35. package/console/_next/static/chunks/038jxymv2x4u-.js +148 -0
  36. package/console/_next/static/chunks/03f2f6enzzhsy.js +1 -0
  37. package/console/_next/static/chunks/03l_lqxocp3uj.js +1 -0
  38. package/console/_next/static/chunks/03lth2le32c6r.js +201 -0
  39. package/console/_next/static/chunks/03v0v690_bw8u.js +62 -0
  40. package/console/_next/static/chunks/03yru4-m-450t.js +1 -0
  41. package/console/_next/static/chunks/03~yq9q893hmn.js +1 -0
  42. package/console/_next/static/chunks/04nu-nyhd8yfk.js +18 -0
  43. package/console/_next/static/chunks/04uzf6wcrofgt.js +1 -0
  44. package/console/_next/static/chunks/056bfxvkb8fd~.js +1 -0
  45. package/console/_next/static/chunks/06huuay3x3z07.js +1 -0
  46. package/console/_next/static/chunks/06o.rsm2b~dht.js +60 -0
  47. package/console/_next/static/chunks/07.l7154cu7z-.js +1 -0
  48. package/console/_next/static/chunks/07wnm1~gr1rx~.js +1 -0
  49. package/console/_next/static/chunks/08.rk-nar1l2t.js +25 -0
  50. package/console/_next/static/chunks/08iibm2~7e.mj.js +1 -0
  51. package/console/_next/static/chunks/08o5wsrurx9ux.js +5 -0
  52. package/console/_next/static/chunks/09~n7y-jkmjlj.js +152 -0
  53. package/console/_next/static/chunks/0_mhv9_2_g.-d.js +119 -0
  54. package/console/_next/static/chunks/0af53k.rxu1kn.js +1 -0
  55. package/console/_next/static/chunks/0amugang-25bm.js +1 -0
  56. package/console/_next/static/chunks/0awsj.h.eiuen.js +1 -0
  57. package/console/_next/static/chunks/0axtn1ln1j35_.js +79 -0
  58. package/console/_next/static/chunks/0c5xj4q0jmdu0.js +1 -0
  59. package/console/_next/static/chunks/0c7llz2igr3w7.js +1 -0
  60. package/console/_next/static/chunks/0cgp87bgoglgv.js +1 -0
  61. package/console/_next/static/chunks/0co3~00k0sae5.js +1 -0
  62. package/console/_next/static/chunks/0cq0zrqlu~xa7.js +1 -0
  63. package/console/_next/static/chunks/0cs_h74-ljzlt.js +77 -0
  64. package/console/_next/static/chunks/0cu8k_dz43e4y.js +1 -0
  65. package/console/_next/static/chunks/0d05q_m7mqj4o.js +1 -0
  66. package/console/_next/static/chunks/0dsde0n1co0l..js +1 -0
  67. package/console/_next/static/chunks/0e4xdug~7dxzk.js +1 -0
  68. package/console/_next/static/chunks/0e7hldxv930hc.js +12 -0
  69. package/console/_next/static/chunks/0ed3hfv95qark.js +10 -0
  70. package/console/_next/static/chunks/0f1nokqa6poai.js +1 -0
  71. package/console/_next/static/chunks/0f8bbcvfh6x_j.js +64 -0
  72. package/console/_next/static/chunks/0fy2-q-5a0j3r.js +1 -0
  73. package/console/_next/static/chunks/0g-98wql22rf4.css +1 -0
  74. package/console/_next/static/chunks/0g167wye7-x6z.js +1 -0
  75. package/console/_next/static/chunks/0g4_345f39a55.js +1 -0
  76. package/console/_next/static/chunks/0ge0mq0ea60lx.js +1 -0
  77. package/console/_next/static/chunks/0gepanyj709pr.js +1 -0
  78. package/console/_next/static/chunks/0glne1asott9e.js +2 -0
  79. package/console/_next/static/chunks/0hb.-vcj2w6kf.js +1 -0
  80. package/console/_next/static/chunks/0hdh_2akzrlxi.js +287 -0
  81. package/console/_next/static/chunks/0hhe78mplcj67.js +1 -0
  82. package/console/_next/static/chunks/0hori02zn~h3o.js +1 -0
  83. package/console/_next/static/chunks/0hq~c-~dp2g~1.js +1 -0
  84. package/console/_next/static/chunks/0i.l9589uvx0j.js +1 -0
  85. package/console/_next/static/chunks/0i8pgzf~hu-3m.js +24 -0
  86. package/console/_next/static/chunks/0icpvuwlmnlty.js +43 -0
  87. package/console/_next/static/chunks/0icsogze8wb_v.js +3 -0
  88. package/console/_next/static/chunks/0ij17mw0v0qd-.js +1 -0
  89. package/console/_next/static/chunks/0io-wgdji~5d0.js +1 -0
  90. package/console/_next/static/chunks/0ipk1er3w80bj.js +24 -0
  91. package/console/_next/static/chunks/0irq1yd9ix16u.js +1 -0
  92. package/console/_next/static/chunks/0iwpyv2wbln6f.js +1 -0
  93. package/console/_next/static/chunks/0ixo5_jc~m0~2.js +1 -0
  94. package/console/_next/static/chunks/0jxlubusvmdjm.js +1 -0
  95. package/console/_next/static/chunks/0j~3z.dgn_8ff.css +6 -0
  96. package/console/_next/static/chunks/0k9_1v72yx36d.js +226 -0
  97. package/console/_next/static/chunks/0ka-.7dww7nze.js +101 -0
  98. package/console/_next/static/chunks/0kt3942_0py-t.js +1 -0
  99. package/console/_next/static/chunks/0l3uvjh3oslhq.js +1 -0
  100. package/console/_next/static/chunks/0lp.du_t-~cqs.js +2 -0
  101. package/console/_next/static/chunks/0lq22-4n7_uyt.js +34 -0
  102. package/console/_next/static/chunks/0lypu-.xpph9..js +15 -0
  103. package/console/_next/static/chunks/0mb.pnhflhw95.js +1 -0
  104. package/console/_next/static/chunks/0mcz_room09fj.js +1 -0
  105. package/console/_next/static/chunks/0mo3-obfy2_6v.js +15 -0
  106. package/console/_next/static/chunks/0mtfbfe5xd3.6.js +1 -0
  107. package/console/_next/static/chunks/0mvcspqlkvjri.js +1 -0
  108. package/console/_next/static/chunks/0n2qydw3oc1oj.js +1 -0
  109. package/console/_next/static/chunks/0nnkdto25tilf.js +1 -0
  110. package/console/_next/static/chunks/0npm9l63~4j0v.js +1 -0
  111. package/console/_next/static/chunks/0nu6llqvg4741.js +1 -0
  112. package/console/_next/static/chunks/0n~glqz40m6gv.js +1 -0
  113. package/console/_next/static/chunks/0o-.19qua6web.js +5 -0
  114. package/console/_next/static/chunks/0omq5mq8dkd24.js +1 -0
  115. package/console/_next/static/chunks/0oprw5m.lmqln.js +1 -0
  116. package/console/_next/static/chunks/0ortphe030oky.js +1 -0
  117. package/console/_next/static/chunks/0oufb2b491l23.js +153 -0
  118. package/console/_next/static/chunks/0owq59irnycu5.js +1 -0
  119. package/console/_next/static/chunks/0ptwwlt0l20~o.js +1 -0
  120. package/console/_next/static/chunks/0q2tc-vqxe1_n.js +1 -0
  121. package/console/_next/static/chunks/0qfu4h5g.k-yt.js +1 -0
  122. package/console/_next/static/chunks/0qji_.pm~u8x3.js +1 -0
  123. package/console/_next/static/chunks/0qm2930z0c.8m.js +80 -0
  124. package/console/_next/static/chunks/0q~1rz_i~v0vs.js +1 -0
  125. package/console/_next/static/chunks/0r4lipg4xb6fx.js +1 -0
  126. package/console/_next/static/chunks/0rhvismtjivza.js +104 -0
  127. package/console/_next/static/chunks/0rmt10l3458p_.js +93 -0
  128. package/console/_next/static/chunks/0rob~86j~8vge.js +1 -0
  129. package/console/_next/static/chunks/0r~zu0c3j_b7p.js +1 -0
  130. package/console/_next/static/chunks/0s0v8xobo-2ok.js +34 -0
  131. package/console/_next/static/chunks/0s8nwq43gep9_.js +15 -0
  132. package/console/_next/static/chunks/0spswjguxbqfn.js +1 -0
  133. package/console/_next/static/chunks/0t6aq14rpn1.w.js +1 -0
  134. package/console/_next/static/chunks/0taiwi2j.k7mm.js +1 -0
  135. package/console/_next/static/chunks/0tj3k0t29gpn7.js +1 -0
  136. package/console/_next/static/chunks/0tq77.56bu2eu.js +1 -0
  137. package/console/_next/static/chunks/0ulcdeu8yx-cn.js +1 -0
  138. package/console/_next/static/chunks/0uvbqsa~x3_x6.js +1 -0
  139. package/console/_next/static/chunks/0uw8zy_zoej6s.js +1 -0
  140. package/console/_next/static/chunks/0uz5-~rqk9vr..js +1 -0
  141. package/console/_next/static/chunks/0w3ug0~zih~j2.js +1 -0
  142. package/console/_next/static/chunks/0wfrz3x.bxehc.js +1 -0
  143. package/console/_next/static/chunks/0wyb4nqlt6his.js +1 -0
  144. package/console/_next/static/chunks/0x.4919xjicc5.js +75 -0
  145. package/console/_next/static/chunks/0xr1dk~mec2dn.js +1 -0
  146. package/console/_next/static/chunks/0xxouzzjw_a6q.js +115 -0
  147. package/console/_next/static/chunks/0y0u4wm.3~_ac.js +1 -0
  148. package/console/_next/static/chunks/0y4vop46pw7ip.js +2 -0
  149. package/console/_next/static/chunks/0y5z3t-z1c8ks.js.map +5 -0
  150. package/console/_next/static/chunks/0y99xmlf_e2si.js +1 -0
  151. package/console/_next/static/chunks/0ydl92ezt_ppz.js +1 -0
  152. package/console/_next/static/chunks/0ywlzawl2ml3h.js +1 -0
  153. package/console/_next/static/chunks/0yysdfbgz-l8n.js +1 -0
  154. package/console/_next/static/chunks/0zjs5hlwbvch9.js +4 -0
  155. package/console/_next/static/chunks/0zsntdh42--v1.js +1 -0
  156. package/console/_next/static/chunks/104yvyc1ce3q5.js +1 -0
  157. package/console/_next/static/chunks/1051z1rwyse00.js +1 -0
  158. package/console/_next/static/chunks/10h6g4u9i~5h8.js +1 -0
  159. package/console/_next/static/chunks/10isn5~-bj4w5.js +4 -0
  160. package/console/_next/static/chunks/10ymqudg~95gr.js +1 -0
  161. package/console/_next/static/chunks/111eimn8nia.7.js +1 -0
  162. package/console/_next/static/chunks/1155_-gh-rcvi.js +1 -0
  163. package/console/_next/static/chunks/117cg_x8i7.ol.js +1 -0
  164. package/console/_next/static/chunks/11_7qxlc92f5s.js +1 -0
  165. package/console/_next/static/chunks/11h85j-8~tny3.js +36 -0
  166. package/console/_next/static/chunks/11t~35bechtea.js +1 -0
  167. package/console/_next/static/chunks/11uh-ttx4zin-.js +9 -0
  168. package/console/_next/static/chunks/11xfx57fbi3md.js +2 -0
  169. package/console/_next/static/chunks/12329wyw7127c.js +1 -0
  170. package/console/_next/static/chunks/123jshjvn0ocr.js +31 -0
  171. package/console/_next/static/chunks/128ahbvhdeeq-.js +1 -0
  172. package/console/_next/static/chunks/13hl4dngamd3l.js +127 -0
  173. package/console/_next/static/chunks/14.38bpm-d3-l.js +1 -0
  174. package/console/_next/static/chunks/14i46k409qlt0.js +1 -0
  175. package/console/_next/static/chunks/14j238ax8coge.js +29 -0
  176. package/console/_next/static/chunks/159151ghv9-cc.js +1 -0
  177. package/console/_next/static/chunks/15hlb71q~xfev.js +1 -0
  178. package/console/_next/static/chunks/15r_pfbdb2jhp.js +23 -0
  179. package/console/_next/static/chunks/15wc.2zpsy4wc.js +4 -0
  180. package/console/_next/static/chunks/16pzrphqjtyli.js +1 -0
  181. package/console/_next/static/chunks/16ukgtm3fhab~.js +1071 -0
  182. package/console/_next/static/chunks/170p3g7_6_620.js +2 -0
  183. package/console/_next/static/chunks/175hd_pl41_vh.js +15 -0
  184. package/console/_next/static/chunks/17glhyaxi4vs-.js +1 -0
  185. package/console/_next/static/chunks/17jhgtykn778_.js +1 -0
  186. package/console/_next/static/chunks/17v4twif7y~.b.js +1 -0
  187. package/console/_next/static/chunks/182b_f_n0-cdr.js +1 -0
  188. package/console/_next/static/chunks/187v8dzyf1l-f.js +80 -0
  189. package/console/_next/static/chunks/turbopack-0cvnq9zq1g68-.js +1 -0
  190. package/console/_next/static/chunks/turbopack-172c~.rma.yso.js +1 -0
  191. package/console/_next/static/chunks/turbopack-worker-0sjn--fhq~1cg.js +1 -0
  192. package/console/_next/static/media/02263ebadd758ea4-s.0qg7j5o.yrclm.woff2 +0 -0
  193. package/console/_next/static/media/03fc1b4a8d284b5e-s.09.f.n_ccld80.woff2 +0 -0
  194. package/console/_next/static/media/07454f8ad8aaac57-s.0tqkxa-w3pk~c.woff2 +0 -0
  195. package/console/_next/static/media/1bcd0e671759a44c-s.0vnh8.d8wxa2x.woff2 +0 -0
  196. package/console/_next/static/media/1bffadaabf893a1e-s.16ipb6fqu393i.woff2 +0 -0
  197. package/console/_next/static/media/224e262ef877bfa4-s.0mo8vqgr8yagc.woff2 +0 -0
  198. package/console/_next/static/media/2bbe8d2671613f1f-s.067x_6k0k23tk.woff2 +0 -0
  199. package/console/_next/static/media/2c55a0e60120577a-s.0bjc5tiuqdqro.woff2 +0 -0
  200. package/console/_next/static/media/2fe89d53234c61d4-s.0k_.i63k_i_qa.woff2 +0 -0
  201. package/console/_next/static/media/4fa387ec64143e14-s.0wkzw~je483f-.woff2 +0 -0
  202. package/console/_next/static/media/53b9e256198e5412-s.0-wfv7uh4i7h9.woff2 +0 -0
  203. package/console/_next/static/media/5476f68d60460930-s.0wxq9webf.ew4.woff2 +0 -0
  204. package/console/_next/static/media/57215795b8570f5c-s.0vwgtotjdgnhr.woff2 +0 -0
  205. package/console/_next/static/media/59b15b4bcd7b1eb5-s.0x08jh8vondwt.woff2 +0 -0
  206. package/console/_next/static/media/5ce348bf30bf5439-s.0zgw-jeven.3w.woff2 +0 -0
  207. package/console/_next/static/media/5e05ae5b48faa55e-s.0m9hhkgdlzukj.woff2 +0 -0
  208. package/console/_next/static/media/6306c77e7c8268e4-s.0rhz0arwfsn~5.woff2 +0 -0
  209. package/console/_next/static/media/68757d6cddeff913-s.0hkrq11n-dhos.woff2 +0 -0
  210. package/console/_next/static/media/7178b3e590c64307-s.0nx0ww8fni_q3.woff2 +0 -0
  211. package/console/_next/static/media/797e433ab948586e-s.p.08e28id.o-okb.woff2 +0 -0
  212. package/console/_next/static/media/7d817b4c03b0c5f1-s.0l76wvqk9d84w.woff2 +0 -0
  213. package/console/_next/static/media/7f11d98043fdedc9-s.0r4w1y.tjq0ay.woff2 +0 -0
  214. package/console/_next/static/media/7fea77d1d19108bf-s.0xyeb7czu1stb.woff2 +0 -0
  215. package/console/_next/static/media/83afe278b6a6bb3c-s.0q-301v4kxxnr.woff2 +0 -0
  216. package/console/_next/static/media/8a480f0b521d4e75-s.0jzbimsg8vl84.woff2 +0 -0
  217. package/console/_next/static/media/90c51ce8fb754fe8-s.00z~hoalba5dm.woff2 +0 -0
  218. package/console/_next/static/media/99e609270109b47d-s.16-z~2sp29ex6.woff2 +0 -0
  219. package/console/_next/static/media/9c72aa0f40e4eef8-s.0m6w47a4e5dy9.woff2 +0 -0
  220. package/console/_next/static/media/a7afbb44bec2bb18-s.0juuwbcf7uz~t.woff2 +0 -0
  221. package/console/_next/static/media/ad66f9afd8947f86-s.11u06r12fd6v_.woff2 +0 -0
  222. package/console/_next/static/media/bbc41e54d2fcbd21-s.0k4k9394f2q-k.woff2 +0 -0
  223. package/console/_next/static/media/caa3a2e1cccd8315-s.p.09~u27dqhyhd6.woff2 +0 -0
  224. package/console/_next/static/media/d8cb5ab3660140cd-s.0ri_id_kcagyz.woff2 +0 -0
  225. package/console/_next/static/media/e15f58668ad64cb8-s.0~.8lt~vdqmc3.woff2 +0 -0
  226. package/console/_next/static/media/e390973e931a41c5-s.08hd0g.321csk.woff2 +0 -0
  227. package/console/_next/static/media/e532fa1b9921e1cd-s.0~wrfy7sm-h4g.woff2 +0 -0
  228. package/console/_next/static/media/e6d00ff86ef9e699-s.0lcb62h0-.jh3.woff2 +0 -0
  229. package/console/_next/static/media/effe91970fc4db64-s.07ig5l8azj~hy.woff2 +0 -0
  230. package/console/_next/static/media/elk-worker.min.13hrbirt7_.ef.js +6401 -0
  231. package/console/_next/static/media/favicon.0x3dzn~oxb6tn.ico +0 -0
  232. package/console/_next/static/media/fef07dbb0973bf53-s.12tyk43_3sh9u.woff2 +0 -0
  233. package/console/_not-found/__next._full.txt +29 -0
  234. package/console/_not-found/__next._head.txt +6 -0
  235. package/console/_not-found/__next._index.txt +17 -0
  236. package/console/_not-found/__next._not-found.__PAGE__.txt +6 -0
  237. package/console/_not-found/__next._not-found.txt +5 -0
  238. package/console/_not-found/__next._tree.txt +3 -0
  239. package/console/_not-found.html +1 -0
  240. package/console/_not-found.txt +29 -0
  241. package/console/apple-touch-icon-dark.png +0 -0
  242. package/console/apple-touch-icon-light.png +0 -0
  243. package/console/auth/callback/__next._full.txt +36 -0
  244. package/console/auth/callback/__next._head.txt +6 -0
  245. package/console/auth/callback/__next._index.txt +17 -0
  246. package/console/auth/callback/__next._tree.txt +5 -0
  247. package/console/auth/callback/__next.auth.callback.__PAGE__.txt +9 -0
  248. package/console/auth/callback/__next.auth.callback.txt +5 -0
  249. package/console/auth/callback/__next.auth.txt +5 -0
  250. package/console/auth/callback.html +1 -0
  251. package/console/auth/callback.txt +36 -0
  252. package/console/auth/github/callback/__next._full.txt +37 -0
  253. package/console/auth/github/callback/__next._head.txt +6 -0
  254. package/console/auth/github/callback/__next._index.txt +17 -0
  255. package/console/auth/github/callback/__next._tree.txt +5 -0
  256. package/console/auth/github/callback/__next.auth.github.callback.__PAGE__.txt +9 -0
  257. package/console/auth/github/callback/__next.auth.github.callback.txt +5 -0
  258. package/console/auth/github/callback/__next.auth.github.txt +5 -0
  259. package/console/auth/github/callback/__next.auth.txt +5 -0
  260. package/console/auth/github/callback.html +1 -0
  261. package/console/auth/github/callback.txt +37 -0
  262. package/console/auth/oauth/callback/__next._full.txt +37 -0
  263. package/console/auth/oauth/callback/__next._head.txt +6 -0
  264. package/console/auth/oauth/callback/__next._index.txt +17 -0
  265. package/console/auth/oauth/callback/__next._tree.txt +5 -0
  266. package/console/auth/oauth/callback/__next.auth.oauth.callback.__PAGE__.txt +9 -0
  267. package/console/auth/oauth/callback/__next.auth.oauth.callback.txt +5 -0
  268. package/console/auth/oauth/callback/__next.auth.oauth.txt +5 -0
  269. package/console/auth/oauth/callback/__next.auth.txt +5 -0
  270. package/console/auth/oauth/callback.html +1 -0
  271. package/console/auth/oauth/callback.txt +37 -0
  272. package/console/chat/__placeholder__/__placeholder__/__next._full.txt +35 -0
  273. package/console/chat/__placeholder__/__placeholder__/__next._head.txt +6 -0
  274. package/console/chat/__placeholder__/__placeholder__/__next._index.txt +17 -0
  275. package/console/chat/__placeholder__/__placeholder__/__next._tree.txt +5 -0
  276. package/console/chat/__placeholder__/__placeholder__/__next.chat.$d$org.$d$slug.__PAGE__.txt +6 -0
  277. package/console/chat/__placeholder__/__placeholder__/__next.chat.$d$org.$d$slug.txt +5 -0
  278. package/console/chat/__placeholder__/__placeholder__/__next.chat.$d$org.txt +5 -0
  279. package/console/chat/__placeholder__/__placeholder__/__next.chat.txt +5 -0
  280. package/console/chat/__placeholder__/__placeholder__.html +1 -0
  281. package/console/chat/__placeholder__/__placeholder__.txt +35 -0
  282. package/console/conversations/__next._full.txt +32 -0
  283. package/console/conversations/__next._head.txt +6 -0
  284. package/console/conversations/__next._index.txt +17 -0
  285. package/console/conversations/__next._tree.txt +5 -0
  286. package/console/conversations/__next.conversations.__PAGE__.txt +6 -0
  287. package/console/conversations/__next.conversations.txt +5 -0
  288. package/console/conversations/__placeholder__/__placeholder__/__next._full.txt +35 -0
  289. package/console/conversations/__placeholder__/__placeholder__/__next._head.txt +6 -0
  290. package/console/conversations/__placeholder__/__placeholder__/__next._index.txt +17 -0
  291. package/console/conversations/__placeholder__/__placeholder__/__next._tree.txt +5 -0
  292. package/console/conversations/__placeholder__/__placeholder__/__next.conversations.$d$channelId.$d$key.__PAGE__.txt +6 -0
  293. package/console/conversations/__placeholder__/__placeholder__/__next.conversations.$d$channelId.$d$key.txt +5 -0
  294. package/console/conversations/__placeholder__/__placeholder__/__next.conversations.$d$channelId.txt +5 -0
  295. package/console/conversations/__placeholder__/__placeholder__/__next.conversations.txt +5 -0
  296. package/console/conversations/__placeholder__/__placeholder__.html +1 -0
  297. package/console/conversations/__placeholder__/__placeholder__.txt +35 -0
  298. package/console/conversations.html +1 -0
  299. package/console/conversations.txt +32 -0
  300. package/console/dashboard/__next._full.txt +32 -0
  301. package/console/dashboard/__next._head.txt +6 -0
  302. package/console/dashboard/__next._index.txt +17 -0
  303. package/console/dashboard/__next._tree.txt +5 -0
  304. package/console/dashboard/__next.dashboard.__PAGE__.txt +6 -0
  305. package/console/dashboard/__next.dashboard.txt +5 -0
  306. package/console/dashboard.html +1 -0
  307. package/console/dashboard.txt +32 -0
  308. package/console/embed.js +1 -0
  309. package/console/executions/__placeholder__/__next._full.txt +32 -0
  310. package/console/executions/__placeholder__/__next._head.txt +6 -0
  311. package/console/executions/__placeholder__/__next._index.txt +17 -0
  312. package/console/executions/__placeholder__/__next._tree.txt +5 -0
  313. package/console/executions/__placeholder__/__next.executions.$d$id.__PAGE__.txt +5 -0
  314. package/console/executions/__placeholder__/__next.executions.$d$id.txt +5 -0
  315. package/console/executions/__placeholder__/__next.executions.txt +5 -0
  316. package/console/executions/__placeholder__.html +1 -0
  317. package/console/executions/__placeholder__.txt +32 -0
  318. package/console/favicon-dark-16x16.png +0 -0
  319. package/console/favicon-dark-32x32.png +0 -0
  320. package/console/favicon-dark.ico +0 -0
  321. package/console/favicon-dark.svg +11 -0
  322. package/console/favicon-light-16x16.png +0 -0
  323. package/console/favicon-light-32x32.png +0 -0
  324. package/console/favicon-light.ico +0 -0
  325. package/console/favicon-light.svg +11 -0
  326. package/console/favicon.ico +0 -0
  327. package/console/index.html +1 -0
  328. package/console/index.txt +28 -0
  329. package/console/invite/__placeholder__/__next._full.txt +33 -0
  330. package/console/invite/__placeholder__/__next._head.txt +6 -0
  331. package/console/invite/__placeholder__/__next._index.txt +17 -0
  332. package/console/invite/__placeholder__/__next._tree.txt +5 -0
  333. package/console/invite/__placeholder__/__next.invite.$d$token.__PAGE__.txt +6 -0
  334. package/console/invite/__placeholder__/__next.invite.$d$token.txt +5 -0
  335. package/console/invite/__placeholder__/__next.invite.txt +5 -0
  336. package/console/invite/__placeholder__.html +1 -0
  337. package/console/invite/__placeholder__.txt +33 -0
  338. package/console/library/__next._full.txt +33 -0
  339. package/console/library/__next._head.txt +6 -0
  340. package/console/library/__next._index.txt +17 -0
  341. package/console/library/__next._tree.txt +5 -0
  342. package/console/library/__next.library.__PAGE__.txt +6 -0
  343. package/console/library/__next.library.txt +7 -0
  344. package/console/library/agents/__next._full.txt +36 -0
  345. package/console/library/agents/__next._head.txt +6 -0
  346. package/console/library/agents/__next._index.txt +17 -0
  347. package/console/library/agents/__next._tree.txt +5 -0
  348. package/console/library/agents/__next.library.agents.__PAGE__.txt +6 -0
  349. package/console/library/agents/__next.library.agents.txt +5 -0
  350. package/console/library/agents/__next.library.txt +7 -0
  351. package/console/library/agents/__placeholder__/__placeholder__/__next._full.txt +39 -0
  352. package/console/library/agents/__placeholder__/__placeholder__/__next._head.txt +6 -0
  353. package/console/library/agents/__placeholder__/__placeholder__/__next._index.txt +17 -0
  354. package/console/library/agents/__placeholder__/__placeholder__/__next._tree.txt +5 -0
  355. package/console/library/agents/__placeholder__/__placeholder__/__next.library.agents.$d$org.$d$slug.__PAGE__.txt +6 -0
  356. package/console/library/agents/__placeholder__/__placeholder__/__next.library.agents.$d$org.$d$slug.txt +5 -0
  357. package/console/library/agents/__placeholder__/__placeholder__/__next.library.agents.$d$org.txt +5 -0
  358. package/console/library/agents/__placeholder__/__placeholder__/__next.library.agents.txt +5 -0
  359. package/console/library/agents/__placeholder__/__placeholder__/__next.library.txt +7 -0
  360. package/console/library/agents/__placeholder__/__placeholder__.html +1 -0
  361. package/console/library/agents/__placeholder__/__placeholder__.txt +39 -0
  362. package/console/library/agents/new/__next._full.txt +40 -0
  363. package/console/library/agents/new/__next._head.txt +6 -0
  364. package/console/library/agents/new/__next._index.txt +17 -0
  365. package/console/library/agents/new/__next._tree.txt +5 -0
  366. package/console/library/agents/new/__next.library.agents.new.__PAGE__.txt +9 -0
  367. package/console/library/agents/new/__next.library.agents.new.txt +5 -0
  368. package/console/library/agents/new/__next.library.agents.txt +5 -0
  369. package/console/library/agents/new/__next.library.txt +7 -0
  370. package/console/library/agents/new.html +1 -0
  371. package/console/library/agents/new.txt +40 -0
  372. package/console/library/agents.html +1 -0
  373. package/console/library/agents.txt +36 -0
  374. package/console/library/mcp-servers/__next._full.txt +36 -0
  375. package/console/library/mcp-servers/__next._head.txt +6 -0
  376. package/console/library/mcp-servers/__next._index.txt +17 -0
  377. package/console/library/mcp-servers/__next._tree.txt +5 -0
  378. package/console/library/mcp-servers/__next.library.mcp-servers.__PAGE__.txt +6 -0
  379. package/console/library/mcp-servers/__next.library.mcp-servers.txt +5 -0
  380. package/console/library/mcp-servers/__next.library.txt +7 -0
  381. package/console/library/mcp-servers/__placeholder__/__placeholder__/__next._full.txt +39 -0
  382. package/console/library/mcp-servers/__placeholder__/__placeholder__/__next._head.txt +6 -0
  383. package/console/library/mcp-servers/__placeholder__/__placeholder__/__next._index.txt +17 -0
  384. package/console/library/mcp-servers/__placeholder__/__placeholder__/__next._tree.txt +5 -0
  385. package/console/library/mcp-servers/__placeholder__/__placeholder__/__next.library.mcp-servers.$d$org.$d$slug.__PAGE__.txt +6 -0
  386. package/console/library/mcp-servers/__placeholder__/__placeholder__/__next.library.mcp-servers.$d$org.$d$slug.txt +5 -0
  387. package/console/library/mcp-servers/__placeholder__/__placeholder__/__next.library.mcp-servers.$d$org.txt +5 -0
  388. package/console/library/mcp-servers/__placeholder__/__placeholder__/__next.library.mcp-servers.txt +5 -0
  389. package/console/library/mcp-servers/__placeholder__/__placeholder__/__next.library.txt +7 -0
  390. package/console/library/mcp-servers/__placeholder__/__placeholder__.html +1 -0
  391. package/console/library/mcp-servers/__placeholder__/__placeholder__.txt +39 -0
  392. package/console/library/mcp-servers/new/__next._full.txt +40 -0
  393. package/console/library/mcp-servers/new/__next._head.txt +6 -0
  394. package/console/library/mcp-servers/new/__next._index.txt +17 -0
  395. package/console/library/mcp-servers/new/__next._tree.txt +5 -0
  396. package/console/library/mcp-servers/new/__next.library.mcp-servers.new.__PAGE__.txt +9 -0
  397. package/console/library/mcp-servers/new/__next.library.mcp-servers.new.txt +5 -0
  398. package/console/library/mcp-servers/new/__next.library.mcp-servers.txt +5 -0
  399. package/console/library/mcp-servers/new/__next.library.txt +7 -0
  400. package/console/library/mcp-servers/new.html +1 -0
  401. package/console/library/mcp-servers/new.txt +40 -0
  402. package/console/library/mcp-servers.html +1 -0
  403. package/console/library/mcp-servers.txt +36 -0
  404. package/console/library/schedules/__next._full.txt +36 -0
  405. package/console/library/schedules/__next._head.txt +6 -0
  406. package/console/library/schedules/__next._index.txt +17 -0
  407. package/console/library/schedules/__next._tree.txt +5 -0
  408. package/console/library/schedules/__next.library.schedules.__PAGE__.txt +6 -0
  409. package/console/library/schedules/__next.library.schedules.txt +5 -0
  410. package/console/library/schedules/__next.library.txt +7 -0
  411. package/console/library/schedules/__placeholder__/__placeholder__/__next._full.txt +39 -0
  412. package/console/library/schedules/__placeholder__/__placeholder__/__next._head.txt +6 -0
  413. package/console/library/schedules/__placeholder__/__placeholder__/__next._index.txt +17 -0
  414. package/console/library/schedules/__placeholder__/__placeholder__/__next._tree.txt +5 -0
  415. package/console/library/schedules/__placeholder__/__placeholder__/__next.library.schedules.$d$org.$d$slug.__PAGE__.txt +6 -0
  416. package/console/library/schedules/__placeholder__/__placeholder__/__next.library.schedules.$d$org.$d$slug.txt +5 -0
  417. package/console/library/schedules/__placeholder__/__placeholder__/__next.library.schedules.$d$org.txt +5 -0
  418. package/console/library/schedules/__placeholder__/__placeholder__/__next.library.schedules.txt +5 -0
  419. package/console/library/schedules/__placeholder__/__placeholder__/__next.library.txt +7 -0
  420. package/console/library/schedules/__placeholder__/__placeholder__.html +1 -0
  421. package/console/library/schedules/__placeholder__/__placeholder__.txt +39 -0
  422. package/console/library/schedules/new/__next._full.txt +40 -0
  423. package/console/library/schedules/new/__next._head.txt +6 -0
  424. package/console/library/schedules/new/__next._index.txt +17 -0
  425. package/console/library/schedules/new/__next._tree.txt +5 -0
  426. package/console/library/schedules/new/__next.library.schedules.new.__PAGE__.txt +9 -0
  427. package/console/library/schedules/new/__next.library.schedules.new.txt +5 -0
  428. package/console/library/schedules/new/__next.library.schedules.txt +5 -0
  429. package/console/library/schedules/new/__next.library.txt +7 -0
  430. package/console/library/schedules/new.html +1 -0
  431. package/console/library/schedules/new.txt +40 -0
  432. package/console/library/schedules.html +1 -0
  433. package/console/library/schedules.txt +36 -0
  434. package/console/library/skills/__next._full.txt +36 -0
  435. package/console/library/skills/__next._head.txt +6 -0
  436. package/console/library/skills/__next._index.txt +17 -0
  437. package/console/library/skills/__next._tree.txt +5 -0
  438. package/console/library/skills/__next.library.skills.__PAGE__.txt +6 -0
  439. package/console/library/skills/__next.library.skills.txt +5 -0
  440. package/console/library/skills/__next.library.txt +7 -0
  441. package/console/library/skills/__placeholder__/__placeholder__/__next._full.txt +39 -0
  442. package/console/library/skills/__placeholder__/__placeholder__/__next._head.txt +6 -0
  443. package/console/library/skills/__placeholder__/__placeholder__/__next._index.txt +17 -0
  444. package/console/library/skills/__placeholder__/__placeholder__/__next._tree.txt +5 -0
  445. package/console/library/skills/__placeholder__/__placeholder__/__next.library.skills.$d$org.$d$slug.__PAGE__.txt +6 -0
  446. package/console/library/skills/__placeholder__/__placeholder__/__next.library.skills.$d$org.$d$slug.txt +5 -0
  447. package/console/library/skills/__placeholder__/__placeholder__/__next.library.skills.$d$org.txt +5 -0
  448. package/console/library/skills/__placeholder__/__placeholder__/__next.library.skills.txt +5 -0
  449. package/console/library/skills/__placeholder__/__placeholder__/__next.library.txt +7 -0
  450. package/console/library/skills/__placeholder__/__placeholder__.html +1 -0
  451. package/console/library/skills/__placeholder__/__placeholder__.txt +39 -0
  452. package/console/library/skills/new/__next._full.txt +40 -0
  453. package/console/library/skills/new/__next._head.txt +6 -0
  454. package/console/library/skills/new/__next._index.txt +17 -0
  455. package/console/library/skills/new/__next._tree.txt +5 -0
  456. package/console/library/skills/new/__next.library.skills.new.__PAGE__.txt +9 -0
  457. package/console/library/skills/new/__next.library.skills.new.txt +5 -0
  458. package/console/library/skills/new/__next.library.skills.txt +5 -0
  459. package/console/library/skills/new/__next.library.txt +7 -0
  460. package/console/library/skills/new.html +1 -0
  461. package/console/library/skills/new.txt +40 -0
  462. package/console/library/skills.html +1 -0
  463. package/console/library/skills.txt +36 -0
  464. package/console/library/workflows/__next._full.txt +36 -0
  465. package/console/library/workflows/__next._head.txt +6 -0
  466. package/console/library/workflows/__next._index.txt +17 -0
  467. package/console/library/workflows/__next._tree.txt +5 -0
  468. package/console/library/workflows/__next.library.txt +7 -0
  469. package/console/library/workflows/__next.library.workflows.__PAGE__.txt +6 -0
  470. package/console/library/workflows/__next.library.workflows.txt +5 -0
  471. package/console/library/workflows/__placeholder__/__placeholder__/__next._full.txt +39 -0
  472. package/console/library/workflows/__placeholder__/__placeholder__/__next._head.txt +6 -0
  473. package/console/library/workflows/__placeholder__/__placeholder__/__next._index.txt +17 -0
  474. package/console/library/workflows/__placeholder__/__placeholder__/__next._tree.txt +5 -0
  475. package/console/library/workflows/__placeholder__/__placeholder__/__next.library.txt +7 -0
  476. package/console/library/workflows/__placeholder__/__placeholder__/__next.library.workflows.$d$org.$d$slug.__PAGE__.txt +6 -0
  477. package/console/library/workflows/__placeholder__/__placeholder__/__next.library.workflows.$d$org.$d$slug.txt +5 -0
  478. package/console/library/workflows/__placeholder__/__placeholder__/__next.library.workflows.$d$org.txt +5 -0
  479. package/console/library/workflows/__placeholder__/__placeholder__/__next.library.workflows.txt +5 -0
  480. package/console/library/workflows/__placeholder__/__placeholder__.html +1 -0
  481. package/console/library/workflows/__placeholder__/__placeholder__.txt +39 -0
  482. package/console/library/workflows/executions/__next._full.txt +37 -0
  483. package/console/library/workflows/executions/__next._head.txt +6 -0
  484. package/console/library/workflows/executions/__next._index.txt +17 -0
  485. package/console/library/workflows/executions/__next._tree.txt +5 -0
  486. package/console/library/workflows/executions/__next.library.txt +7 -0
  487. package/console/library/workflows/executions/__next.library.workflows.executions.__PAGE__.txt +6 -0
  488. package/console/library/workflows/executions/__next.library.workflows.executions.txt +5 -0
  489. package/console/library/workflows/executions/__next.library.workflows.txt +5 -0
  490. package/console/library/workflows/executions.html +1 -0
  491. package/console/library/workflows/executions.txt +37 -0
  492. package/console/library/workflows/new/__next._full.txt +40 -0
  493. package/console/library/workflows/new/__next._head.txt +6 -0
  494. package/console/library/workflows/new/__next._index.txt +17 -0
  495. package/console/library/workflows/new/__next._tree.txt +5 -0
  496. package/console/library/workflows/new/__next.library.txt +7 -0
  497. package/console/library/workflows/new/__next.library.workflows.new.__PAGE__.txt +9 -0
  498. package/console/library/workflows/new/__next.library.workflows.new.txt +5 -0
  499. package/console/library/workflows/new/__next.library.workflows.txt +5 -0
  500. package/console/library/workflows/new.html +1 -0
  501. package/console/library/workflows/new.txt +40 -0
  502. package/console/library/workflows.html +1 -0
  503. package/console/library/workflows.txt +36 -0
  504. package/console/library.html +1 -0
  505. package/console/library.txt +33 -0
  506. package/console/login/__next._full.txt +35 -0
  507. package/console/login/__next._head.txt +6 -0
  508. package/console/login/__next._index.txt +17 -0
  509. package/console/login/__next._tree.txt +5 -0
  510. package/console/login/__next.login.__PAGE__.txt +9 -0
  511. package/console/login/__next.login.txt +5 -0
  512. package/console/login.html +1 -0
  513. package/console/login.txt +35 -0
  514. package/console/logo.svg +1 -0
  515. package/console/oauth/slack/callback/__next._full.txt +37 -0
  516. package/console/oauth/slack/callback/__next._head.txt +6 -0
  517. package/console/oauth/slack/callback/__next._index.txt +17 -0
  518. package/console/oauth/slack/callback/__next._tree.txt +5 -0
  519. package/console/oauth/slack/callback/__next.oauth.slack.callback.__PAGE__.txt +9 -0
  520. package/console/oauth/slack/callback/__next.oauth.slack.callback.txt +5 -0
  521. package/console/oauth/slack/callback/__next.oauth.slack.txt +5 -0
  522. package/console/oauth/slack/callback/__next.oauth.txt +5 -0
  523. package/console/oauth/slack/callback.html +1 -0
  524. package/console/oauth/slack/callback.txt +37 -0
  525. package/console/sessions/__placeholder__/__next._full.txt +32 -0
  526. package/console/sessions/__placeholder__/__next._head.txt +6 -0
  527. package/console/sessions/__placeholder__/__next._index.txt +17 -0
  528. package/console/sessions/__placeholder__/__next._tree.txt +5 -0
  529. package/console/sessions/__placeholder__/__next.sessions.$d$id.__PAGE__.txt +5 -0
  530. package/console/sessions/__placeholder__/__next.sessions.$d$id.txt +5 -0
  531. package/console/sessions/__placeholder__/__next.sessions.txt +5 -0
  532. package/console/sessions/__placeholder__.html +1 -0
  533. package/console/sessions/__placeholder__.txt +32 -0
  534. package/console/settings/__next._full.txt +35 -0
  535. package/console/settings/__next._head.txt +6 -0
  536. package/console/settings/__next._index.txt +17 -0
  537. package/console/settings/__next._tree.txt +5 -0
  538. package/console/settings/__next.settings.__PAGE__.txt +9 -0
  539. package/console/settings/__next.settings.txt +6 -0
  540. package/console/settings/account-preferences/__next._full.txt +35 -0
  541. package/console/settings/account-preferences/__next._head.txt +6 -0
  542. package/console/settings/account-preferences/__next._index.txt +17 -0
  543. package/console/settings/account-preferences/__next._tree.txt +5 -0
  544. package/console/settings/account-preferences/__next.settings.account-preferences.__PAGE__.txt +6 -0
  545. package/console/settings/account-preferences/__next.settings.account-preferences.txt +5 -0
  546. package/console/settings/account-preferences/__next.settings.txt +6 -0
  547. package/console/settings/account-preferences.html +1 -0
  548. package/console/settings/account-preferences.txt +35 -0
  549. package/console/settings/api-keys/__next._full.txt +35 -0
  550. package/console/settings/api-keys/__next._head.txt +6 -0
  551. package/console/settings/api-keys/__next._index.txt +17 -0
  552. package/console/settings/api-keys/__next._tree.txt +5 -0
  553. package/console/settings/api-keys/__next.settings.api-keys.__PAGE__.txt +6 -0
  554. package/console/settings/api-keys/__next.settings.api-keys.txt +5 -0
  555. package/console/settings/api-keys/__next.settings.txt +6 -0
  556. package/console/settings/api-keys.html +1 -0
  557. package/console/settings/api-keys.txt +35 -0
  558. package/console/settings/billing/__next._full.txt +38 -0
  559. package/console/settings/billing/__next._head.txt +6 -0
  560. package/console/settings/billing/__next._index.txt +17 -0
  561. package/console/settings/billing/__next._tree.txt +5 -0
  562. package/console/settings/billing/__next.settings.billing.__PAGE__.txt +9 -0
  563. package/console/settings/billing/__next.settings.billing.txt +5 -0
  564. package/console/settings/billing/__next.settings.txt +6 -0
  565. package/console/settings/billing.html +1 -0
  566. package/console/settings/billing.txt +38 -0
  567. package/console/settings/channel-apps/__next._full.txt +35 -0
  568. package/console/settings/channel-apps/__next._head.txt +6 -0
  569. package/console/settings/channel-apps/__next._index.txt +17 -0
  570. package/console/settings/channel-apps/__next._tree.txt +5 -0
  571. package/console/settings/channel-apps/__next.settings.channel-apps.__PAGE__.txt +6 -0
  572. package/console/settings/channel-apps/__next.settings.channel-apps.txt +5 -0
  573. package/console/settings/channel-apps/__next.settings.txt +6 -0
  574. package/console/settings/channel-apps.html +1 -0
  575. package/console/settings/channel-apps.txt +35 -0
  576. package/console/settings/cursor-accounts/__next._full.txt +38 -0
  577. package/console/settings/cursor-accounts/__next._head.txt +6 -0
  578. package/console/settings/cursor-accounts/__next._index.txt +17 -0
  579. package/console/settings/cursor-accounts/__next._tree.txt +5 -0
  580. package/console/settings/cursor-accounts/__next.settings.cursor-accounts.__PAGE__.txt +9 -0
  581. package/console/settings/cursor-accounts/__next.settings.cursor-accounts.txt +5 -0
  582. package/console/settings/cursor-accounts/__next.settings.txt +6 -0
  583. package/console/settings/cursor-accounts.html +1 -0
  584. package/console/settings/cursor-accounts.txt +38 -0
  585. package/console/settings/environments/__next._full.txt +35 -0
  586. package/console/settings/environments/__next._head.txt +6 -0
  587. package/console/settings/environments/__next._index.txt +17 -0
  588. package/console/settings/environments/__next._tree.txt +5 -0
  589. package/console/settings/environments/__next.settings.environments.__PAGE__.txt +6 -0
  590. package/console/settings/environments/__next.settings.environments.txt +5 -0
  591. package/console/settings/environments/__next.settings.txt +6 -0
  592. package/console/settings/environments.html +1 -0
  593. package/console/settings/environments.txt +35 -0
  594. package/console/settings/identity-providers/__next._full.txt +35 -0
  595. package/console/settings/identity-providers/__next._head.txt +6 -0
  596. package/console/settings/identity-providers/__next._index.txt +17 -0
  597. package/console/settings/identity-providers/__next._tree.txt +5 -0
  598. package/console/settings/identity-providers/__next.settings.identity-providers.__PAGE__.txt +6 -0
  599. package/console/settings/identity-providers/__next.settings.identity-providers.txt +5 -0
  600. package/console/settings/identity-providers/__next.settings.txt +6 -0
  601. package/console/settings/identity-providers.html +1 -0
  602. package/console/settings/identity-providers.txt +35 -0
  603. package/console/settings/invitations/__next._full.txt +35 -0
  604. package/console/settings/invitations/__next._head.txt +6 -0
  605. package/console/settings/invitations/__next._index.txt +17 -0
  606. package/console/settings/invitations/__next._tree.txt +5 -0
  607. package/console/settings/invitations/__next.settings.invitations.__PAGE__.txt +6 -0
  608. package/console/settings/invitations/__next.settings.invitations.txt +5 -0
  609. package/console/settings/invitations/__next.settings.txt +6 -0
  610. package/console/settings/invitations.html +1 -0
  611. package/console/settings/invitations.txt +35 -0
  612. package/console/settings/members/__next._full.txt +35 -0
  613. package/console/settings/members/__next._head.txt +6 -0
  614. package/console/settings/members/__next._index.txt +17 -0
  615. package/console/settings/members/__next._tree.txt +5 -0
  616. package/console/settings/members/__next.settings.members.__PAGE__.txt +6 -0
  617. package/console/settings/members/__next.settings.members.txt +5 -0
  618. package/console/settings/members/__next.settings.txt +6 -0
  619. package/console/settings/members.html +1 -0
  620. package/console/settings/members.txt +35 -0
  621. package/console/settings/memory/__next._full.txt +35 -0
  622. package/console/settings/memory/__next._head.txt +6 -0
  623. package/console/settings/memory/__next._index.txt +17 -0
  624. package/console/settings/memory/__next._tree.txt +5 -0
  625. package/console/settings/memory/__next.settings.memory.__PAGE__.txt +6 -0
  626. package/console/settings/memory/__next.settings.memory.txt +5 -0
  627. package/console/settings/memory/__next.settings.txt +6 -0
  628. package/console/settings/memory.html +1 -0
  629. package/console/settings/memory.txt +35 -0
  630. package/console/settings/oauth-apps/__next._full.txt +35 -0
  631. package/console/settings/oauth-apps/__next._head.txt +6 -0
  632. package/console/settings/oauth-apps/__next._index.txt +17 -0
  633. package/console/settings/oauth-apps/__next._tree.txt +5 -0
  634. package/console/settings/oauth-apps/__next.settings.oauth-apps.__PAGE__.txt +6 -0
  635. package/console/settings/oauth-apps/__next.settings.oauth-apps.txt +5 -0
  636. package/console/settings/oauth-apps/__next.settings.txt +6 -0
  637. package/console/settings/oauth-apps.html +1 -0
  638. package/console/settings/oauth-apps.txt +35 -0
  639. package/console/settings/org-preferences/__next._full.txt +35 -0
  640. package/console/settings/org-preferences/__next._head.txt +6 -0
  641. package/console/settings/org-preferences/__next._index.txt +17 -0
  642. package/console/settings/org-preferences/__next._tree.txt +5 -0
  643. package/console/settings/org-preferences/__next.settings.org-preferences.__PAGE__.txt +6 -0
  644. package/console/settings/org-preferences/__next.settings.org-preferences.txt +5 -0
  645. package/console/settings/org-preferences/__next.settings.txt +6 -0
  646. package/console/settings/org-preferences.html +1 -0
  647. package/console/settings/org-preferences.txt +35 -0
  648. package/console/settings/org-profile/__next._full.txt +35 -0
  649. package/console/settings/org-profile/__next._head.txt +6 -0
  650. package/console/settings/org-profile/__next._index.txt +17 -0
  651. package/console/settings/org-profile/__next._tree.txt +5 -0
  652. package/console/settings/org-profile/__next.settings.org-profile.__PAGE__.txt +6 -0
  653. package/console/settings/org-profile/__next.settings.org-profile.txt +5 -0
  654. package/console/settings/org-profile/__next.settings.txt +6 -0
  655. package/console/settings/org-profile.html +1 -0
  656. package/console/settings/org-profile.txt +35 -0
  657. package/console/settings/platform-clients/__next._full.txt +35 -0
  658. package/console/settings/platform-clients/__next._head.txt +6 -0
  659. package/console/settings/platform-clients/__next._index.txt +17 -0
  660. package/console/settings/platform-clients/__next._tree.txt +5 -0
  661. package/console/settings/platform-clients/__next.settings.platform-clients.__PAGE__.txt +6 -0
  662. package/console/settings/platform-clients/__next.settings.platform-clients.txt +5 -0
  663. package/console/settings/platform-clients/__next.settings.txt +6 -0
  664. package/console/settings/platform-clients.html +1 -0
  665. package/console/settings/platform-clients.txt +35 -0
  666. package/console/settings/pricing-governance/__next._full.txt +38 -0
  667. package/console/settings/pricing-governance/__next._head.txt +6 -0
  668. package/console/settings/pricing-governance/__next._index.txt +17 -0
  669. package/console/settings/pricing-governance/__next._tree.txt +5 -0
  670. package/console/settings/pricing-governance/__next.settings.pricing-governance.__PAGE__.txt +9 -0
  671. package/console/settings/pricing-governance/__next.settings.pricing-governance.txt +5 -0
  672. package/console/settings/pricing-governance/__next.settings.txt +6 -0
  673. package/console/settings/pricing-governance.html +1 -0
  674. package/console/settings/pricing-governance.txt +38 -0
  675. package/console/settings/provider-standing/__next._full.txt +38 -0
  676. package/console/settings/provider-standing/__next._head.txt +6 -0
  677. package/console/settings/provider-standing/__next._index.txt +17 -0
  678. package/console/settings/provider-standing/__next._tree.txt +5 -0
  679. package/console/settings/provider-standing/__next.settings.provider-standing.__PAGE__.txt +9 -0
  680. package/console/settings/provider-standing/__next.settings.provider-standing.txt +5 -0
  681. package/console/settings/provider-standing/__next.settings.txt +6 -0
  682. package/console/settings/provider-standing.html +1 -0
  683. package/console/settings/provider-standing.txt +38 -0
  684. package/console/settings/usage/__next._full.txt +35 -0
  685. package/console/settings/usage/__next._head.txt +6 -0
  686. package/console/settings/usage/__next._index.txt +17 -0
  687. package/console/settings/usage/__next._tree.txt +5 -0
  688. package/console/settings/usage/__next.settings.txt +6 -0
  689. package/console/settings/usage/__next.settings.usage.__PAGE__.txt +6 -0
  690. package/console/settings/usage/__next.settings.usage.txt +5 -0
  691. package/console/settings/usage.html +1 -0
  692. package/console/settings/usage.txt +35 -0
  693. package/console/settings.html +1 -0
  694. package/console/settings.txt +35 -0
  695. package/console/workflows/__next._full.txt +32 -0
  696. package/console/workflows/__next._head.txt +6 -0
  697. package/console/workflows/__next._index.txt +17 -0
  698. package/console/workflows/__next._tree.txt +5 -0
  699. package/console/workflows/__next.workflows.__PAGE__.txt +6 -0
  700. package/console/workflows/__next.workflows.txt +5 -0
  701. package/console/workflows/__placeholder__/__placeholder__/__next._full.txt +35 -0
  702. package/console/workflows/__placeholder__/__placeholder__/__next._head.txt +6 -0
  703. package/console/workflows/__placeholder__/__placeholder__/__next._index.txt +17 -0
  704. package/console/workflows/__placeholder__/__placeholder__/__next._tree.txt +5 -0
  705. package/console/workflows/__placeholder__/__placeholder__/__next.workflows.$d$org.$d$slug.__PAGE__.txt +6 -0
  706. package/console/workflows/__placeholder__/__placeholder__/__next.workflows.$d$org.$d$slug.txt +5 -0
  707. package/console/workflows/__placeholder__/__placeholder__/__next.workflows.$d$org.txt +5 -0
  708. package/console/workflows/__placeholder__/__placeholder__/__next.workflows.txt +5 -0
  709. package/console/workflows/__placeholder__/__placeholder__.html +1 -0
  710. package/console/workflows/__placeholder__/__placeholder__.txt +35 -0
  711. package/console/workflows/executions/__next._full.txt +33 -0
  712. package/console/workflows/executions/__next._head.txt +6 -0
  713. package/console/workflows/executions/__next._index.txt +17 -0
  714. package/console/workflows/executions/__next._tree.txt +5 -0
  715. package/console/workflows/executions/__next.workflows.executions.__PAGE__.txt +6 -0
  716. package/console/workflows/executions/__next.workflows.executions.txt +5 -0
  717. package/console/workflows/executions/__next.workflows.txt +5 -0
  718. package/console/workflows/executions/__placeholder__/__next._full.txt +34 -0
  719. package/console/workflows/executions/__placeholder__/__next._head.txt +6 -0
  720. package/console/workflows/executions/__placeholder__/__next._index.txt +17 -0
  721. package/console/workflows/executions/__placeholder__/__next._tree.txt +5 -0
  722. package/console/workflows/executions/__placeholder__/__next.workflows.executions.$d$id.__PAGE__.txt +6 -0
  723. package/console/workflows/executions/__placeholder__/__next.workflows.executions.$d$id.txt +5 -0
  724. package/console/workflows/executions/__placeholder__/__next.workflows.executions.txt +5 -0
  725. package/console/workflows/executions/__placeholder__/__next.workflows.txt +5 -0
  726. package/console/workflows/executions/__placeholder__.html +1 -0
  727. package/console/workflows/executions/__placeholder__.txt +34 -0
  728. package/console/workflows/executions.html +1 -0
  729. package/console/workflows/executions.txt +33 -0
  730. package/console/workflows.html +1 -0
  731. package/console/workflows.txt +32 -0
  732. package/main.js +1138 -0
  733. package/mappings.wasm +0 -0
  734. package/package.json +25 -0
  735. package/workflow-bundle-agent-execution.js +31729 -0
  736. package/workflow-bundle-schedule.js +11315 -0
  737. package/workflow-bundle-workflow-execution.js +29297 -0
  738. package/workflow-worker-thread.cjs +111 -0
@@ -0,0 +1 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,271302,e=>{"use strict";var t=e.i(843476),s=e.i(21218),a=e.i(244686),d=e.i(297629),r=e.i(879738),i=e.i(17616),l=e.i(635549);e.s(["WorkflowExecutionListPage",0,function(){let{navigateToExecution:e}=(0,l.useExecutionNavigation)(),o=(0,d.useActiveOrgSlug)(),{executions:n,isLoading:c,error:x}=(0,r.useWorkflowExecutionList)({pageSize:50,org:o});return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"mb-6",children:[(0,t.jsx)("h1",{className:"text-xl font-semibold text-foreground",children:"Workflow Executions"}),(0,t.jsx)("p",{className:"mt-1 text-sm text-muted-foreground",children:"All workflow executions across your organization."})]}),c&&(0,t.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,t.jsx)("div",{className:"h-10 w-full animate-pulse rounded bg-muted"}),(0,t.jsx)("div",{className:"h-10 w-full animate-pulse rounded bg-muted"}),(0,t.jsx)("div",{className:"h-10 w-full animate-pulse rounded bg-muted"})]}),x&&(0,t.jsx)("div",{className:"py-8 text-center text-sm text-destructive",children:"Failed to load executions"}),!c&&!x&&0===n.length&&(0,t.jsxs)("div",{className:"flex flex-col items-center justify-center py-16 text-muted-foreground",children:[(0,t.jsx)(s.Activity,{className:"mb-3 size-10","aria-hidden":"true"}),(0,t.jsx)("p",{className:"text-sm font-medium",children:"No executions yet"}),(0,t.jsx)("p",{className:"mt-1 text-xs",children:"Workflow executions will appear here once workflows are run."})]}),!c&&!x&&n.length>0&&(0,t.jsx)("div",{className:"overflow-hidden rounded-lg border border-border",children:(0,t.jsxs)("table",{className:"w-full text-sm",children:[(0,t.jsx)("thead",{children:(0,t.jsxs)("tr",{className:"border-b border-border bg-muted/50",children:[(0,t.jsx)("th",{className:"px-4 py-2.5 text-left text-xs font-medium uppercase tracking-wider text-muted-foreground",children:"Name"}),(0,t.jsx)("th",{className:"px-4 py-2.5 text-left text-xs font-medium uppercase tracking-wider text-muted-foreground",children:"Phase"}),(0,t.jsx)("th",{className:"px-4 py-2.5 text-left text-xs font-medium uppercase tracking-wider text-muted-foreground",children:"Started"})]})}),(0,t.jsx)("tbody",{className:"divide-y divide-border",children:n.map(s=>{let d=s.status?.audit?.specAudit?.createdAt;return(0,t.jsxs)("tr",{role:"link",tabIndex:0,className:"cursor-pointer transition-colors hover:bg-muted/30",onClick:()=>{s.metadata?.id&&e(s.metadata.id)},onKeyDown:t=>{"Enter"===t.key&&s.metadata?.id&&e(s.metadata.id)},children:[(0,t.jsx)("td",{className:"px-4 py-2.5 font-medium text-foreground",children:s.metadata?.name||s.metadata?.slug||"—"}),(0,t.jsx)("td",{className:"px-4 py-2.5",children:s.status?.phase!=null?(0,t.jsx)(a.WorkflowExecutionPhaseBadge,{phase:s.status.phase}):(0,t.jsx)("span",{className:"text-xs text-muted-foreground",children:"—"})}),(0,t.jsx)("td",{className:"px-4 py-2.5 text-xs text-muted-foreground",children:d?(0,i.timestampDate)(d).toLocaleString():"—"})]},s.metadata?.id)})})]})})]})}])}]);
@@ -0,0 +1 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,248018,t=>{"use strict";var i,e=t.i(332090),s=t.i(864421),a=t.i(669587),n=t.i(908381),h=t.i(171206);t.i(947716);var o=t.i(365332),r=t.i(65232);function l(){var t,i,e=(0,r.default)().unknown(void 0),s=e.domain,a=e.range,n=0,h=1,c=!1,g=0,u=0,x=.5;function d(){var e=s().length,o=h<n,r=o?h:n,l=o?n:h;t=(l-r)/Math.max(1,e-g+2*u),c&&(t=Math.floor(t)),r+=(l-r-t*(e-g))*x,i=t*(1-g),c&&(r=Math.round(r),i=Math.round(i));var d=(function(t,i,e){t*=1,i*=1,e=(a=arguments.length)<2?(i=t,t=0,1):a<3?1:+e;for(var s=-1,a=0|Math.max(0,Math.ceil((i-t)/e)),n=Array(a);++s<a;)n[s]=t+s*e;return n})(e).map(function(i){return r+t*i});return a(o?d.reverse():d)}return delete e.unknown,e.domain=function(t){return arguments.length?(s(t),d()):s()},e.range=function(t){return arguments.length?([n,h]=t,n*=1,h*=1,d()):[n,h]},e.rangeRound=function(t){return[n,h]=t,n*=1,h*=1,c=!0,d()},e.bandwidth=function(){return i},e.step=function(){return t},e.round=function(t){return arguments.length?(c=!!t,d()):c},e.padding=function(t){return arguments.length?(g=Math.min(1,u=+t),d()):g},e.paddingInner=function(t){return arguments.length?(g=Math.min(1,t),d()):g},e.paddingOuter=function(t){return arguments.length?(u=+t,d()):u},e.align=function(t){return arguments.length?(x=Math.max(0,Math.min(1,t)),d()):x},e.copy=function(){return l(s(),[n,h]).round(c).paddingInner(g).paddingOuter(u).align(x)},o.initRange.apply(d(),arguments)}var c=t.i(282803),g=t.i(785833),u=function(){var t=(0,h.__name)(function(t,i,e,s){for(e=e||{},s=t.length;s--;e[t[s]]=i);return e},"o"),i=[1,10,12,14,16,18,19,21,23],e=[2,6],s=[1,3],a=[1,5],n=[1,6],o=[1,7],r=[1,5,10,12,14,16,18,19,21,23,34,35,36],l=[1,25],c=[1,26],g=[1,28],u=[1,29],x=[1,30],d=[1,31],p=[1,32],m=[1,33],f=[1,34],_=[1,35],y=[1,36],b=[1,37],A=[1,43],S=[1,42],w=[1,47],C=[1,50],k=[1,10,12,14,16,18,19,21,23,34,35,36],T=[1,10,12,14,16,18,19,21,23,24,26,27,28,34,35,36],R=[1,10,12,14,16,18,19,21,23,24,26,27,28,34,35,36,41,42,43,44,45,46,47,48,49,50],D=[1,64],L={trace:(0,h.__name)(function(){},"trace"),yy:{},symbols_:{error:2,start:3,eol:4,XYCHART:5,chartConfig:6,document:7,CHART_ORIENTATION:8,statement:9,title:10,text:11,X_AXIS:12,parseXAxis:13,Y_AXIS:14,parseYAxis:15,LINE:16,plotData:17,BAR:18,acc_title:19,acc_title_value:20,acc_descr:21,acc_descr_value:22,acc_descr_multiline_value:23,SQUARE_BRACES_START:24,commaSeparatedNumbers:25,SQUARE_BRACES_END:26,NUMBER_WITH_DECIMAL:27,COMMA:28,xAxisData:29,bandData:30,ARROW_DELIMITER:31,commaSeparatedTexts:32,yAxisData:33,NEWLINE:34,SEMI:35,EOF:36,alphaNum:37,STR:38,MD_STR:39,alphaNumToken:40,AMP:41,NUM:42,ALPHA:43,PLUS:44,EQUALS:45,MULT:46,DOT:47,BRKT:48,MINUS:49,UNDERSCORE:50,$accept:0,$end:1},terminals_:{2:"error",5:"XYCHART",8:"CHART_ORIENTATION",10:"title",12:"X_AXIS",14:"Y_AXIS",16:"LINE",18:"BAR",19:"acc_title",20:"acc_title_value",21:"acc_descr",22:"acc_descr_value",23:"acc_descr_multiline_value",24:"SQUARE_BRACES_START",26:"SQUARE_BRACES_END",27:"NUMBER_WITH_DECIMAL",28:"COMMA",31:"ARROW_DELIMITER",34:"NEWLINE",35:"SEMI",36:"EOF",38:"STR",39:"MD_STR",41:"AMP",42:"NUM",43:"ALPHA",44:"PLUS",45:"EQUALS",46:"MULT",47:"DOT",48:"BRKT",49:"MINUS",50:"UNDERSCORE"},productions_:[0,[3,2],[3,3],[3,2],[3,1],[6,1],[7,0],[7,2],[9,2],[9,2],[9,2],[9,2],[9,2],[9,3],[9,2],[9,3],[9,2],[9,2],[9,1],[17,3],[25,3],[25,1],[13,1],[13,2],[13,1],[29,1],[29,3],[30,3],[32,3],[32,1],[15,1],[15,2],[15,1],[33,3],[4,1],[4,1],[4,1],[11,1],[11,1],[11,1],[37,1],[37,2],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1]],performAction:(0,h.__name)(function(t,i,e,s,a,n,h){var o=n.length-1;switch(a){case 5:s.setOrientation(n[o]);break;case 9:s.setDiagramTitle(n[o].text.trim());break;case 12:s.setLineData({text:"",type:"text"},n[o]);break;case 13:s.setLineData(n[o-1],n[o]);break;case 14:s.setBarData({text:"",type:"text"},n[o]);break;case 15:s.setBarData(n[o-1],n[o]);break;case 16:this.$=n[o].trim(),s.setAccTitle(this.$);break;case 17:case 18:this.$=n[o].trim(),s.setAccDescription(this.$);break;case 19:case 27:this.$=n[o-1];break;case 20:this.$=[Number(n[o-2]),...n[o]];break;case 21:this.$=[Number(n[o])];break;case 22:s.setXAxisTitle(n[o]);break;case 23:s.setXAxisTitle(n[o-1]);break;case 24:s.setXAxisTitle({type:"text",text:""});break;case 25:s.setXAxisBand(n[o]);break;case 26:s.setXAxisRangeData(Number(n[o-2]),Number(n[o]));break;case 28:this.$=[n[o-2],...n[o]];break;case 29:this.$=[n[o]];break;case 30:s.setYAxisTitle(n[o]);break;case 31:s.setYAxisTitle(n[o-1]);break;case 32:s.setYAxisTitle({type:"text",text:""});break;case 33:s.setYAxisRangeData(Number(n[o-2]),Number(n[o]));break;case 37:case 38:this.$={text:n[o],type:"text"};break;case 39:this.$={text:n[o],type:"markdown"};break;case 40:this.$=n[o];break;case 41:this.$=n[o-1]+""+n[o]}},"anonymous"),table:[t(i,e,{3:1,4:2,7:4,5:s,34:a,35:n,36:o}),{1:[3]},t(i,e,{4:2,7:4,3:8,5:s,34:a,35:n,36:o}),t(i,e,{4:2,7:4,6:9,3:10,5:s,8:[1,11],34:a,35:n,36:o}),{1:[2,4],9:12,10:[1,13],12:[1,14],14:[1,15],16:[1,16],18:[1,17],19:[1,18],21:[1,19],23:[1,20]},t(r,[2,34]),t(r,[2,35]),t(r,[2,36]),{1:[2,1]},t(i,e,{4:2,7:4,3:21,5:s,34:a,35:n,36:o}),{1:[2,3]},t(r,[2,5]),t(i,[2,7],{4:22,34:a,35:n,36:o}),{11:23,37:24,38:l,39:c,40:27,41:g,42:u,43:x,44:d,45:p,46:m,47:f,48:_,49:y,50:b},{11:39,13:38,24:A,27:S,29:40,30:41,37:24,38:l,39:c,40:27,41:g,42:u,43:x,44:d,45:p,46:m,47:f,48:_,49:y,50:b},{11:45,15:44,27:w,33:46,37:24,38:l,39:c,40:27,41:g,42:u,43:x,44:d,45:p,46:m,47:f,48:_,49:y,50:b},{11:49,17:48,24:C,37:24,38:l,39:c,40:27,41:g,42:u,43:x,44:d,45:p,46:m,47:f,48:_,49:y,50:b},{11:52,17:51,24:C,37:24,38:l,39:c,40:27,41:g,42:u,43:x,44:d,45:p,46:m,47:f,48:_,49:y,50:b},{20:[1,53]},{22:[1,54]},t(k,[2,18]),{1:[2,2]},t(k,[2,8]),t(k,[2,9]),t(T,[2,37],{40:55,41:g,42:u,43:x,44:d,45:p,46:m,47:f,48:_,49:y,50:b}),t(T,[2,38]),t(T,[2,39]),t(R,[2,40]),t(R,[2,42]),t(R,[2,43]),t(R,[2,44]),t(R,[2,45]),t(R,[2,46]),t(R,[2,47]),t(R,[2,48]),t(R,[2,49]),t(R,[2,50]),t(R,[2,51]),t(k,[2,10]),t(k,[2,22],{30:41,29:56,24:A,27:S}),t(k,[2,24]),t(k,[2,25]),{31:[1,57]},{11:59,32:58,37:24,38:l,39:c,40:27,41:g,42:u,43:x,44:d,45:p,46:m,47:f,48:_,49:y,50:b},t(k,[2,11]),t(k,[2,30],{33:60,27:w}),t(k,[2,32]),{31:[1,61]},t(k,[2,12]),{17:62,24:C},{25:63,27:D},t(k,[2,14]),{17:65,24:C},t(k,[2,16]),t(k,[2,17]),t(R,[2,41]),t(k,[2,23]),{27:[1,66]},{26:[1,67]},{26:[2,29],28:[1,68]},t(k,[2,31]),{27:[1,69]},t(k,[2,13]),{26:[1,70]},{26:[2,21],28:[1,71]},t(k,[2,15]),t(k,[2,26]),t(k,[2,27]),{11:59,32:72,37:24,38:l,39:c,40:27,41:g,42:u,43:x,44:d,45:p,46:m,47:f,48:_,49:y,50:b},t(k,[2,33]),t(k,[2,19]),{25:73,27:D},{26:[2,28]},{26:[2,20]}],defaultActions:{8:[2,1],10:[2,3],21:[2,2],72:[2,28],73:[2,20]},parseError:(0,h.__name)(function(t,i){if(i.recoverable)this.trace(t);else{var e=Error(t);throw e.hash=i,e}},"parseError"),parse:(0,h.__name)(function(t){var i=this,e=[0],s=[],a=[null],n=[],o=this.table,r="",l=0,c=0,g=0,u=n.slice.call(arguments,1),x=Object.create(this.lexer),d={};for(var p in this.yy)Object.prototype.hasOwnProperty.call(this.yy,p)&&(d[p]=this.yy[p]);x.setInput(t,d),d.lexer=x,d.parser=this,void 0===x.yylloc&&(x.yylloc={});var m=x.yylloc;n.push(m);var f=x.options&&x.options.ranges;function _(){var t;return"number"!=typeof(t=s.pop()||x.lex()||1)&&(t instanceof Array&&(t=(s=t).pop()),t=i.symbols_[t]||t),t}"function"==typeof d.parseError?this.parseError=d.parseError:this.parseError=Object.getPrototypeOf(this).parseError,(0,h.__name)(function(t){e.length=e.length-2*t,a.length=a.length-t,n.length=n.length-t},"popStack"),(0,h.__name)(_,"lex");for(var y,b,A,S,w,C,k,T,R,D={};;){if(A=e[e.length-1],this.defaultActions[A]?S=this.defaultActions[A]:(null==y&&(y=_()),S=o[A]&&o[A][y]),void 0===S||!S.length||!S[0]){var L="";for(C in R=[],o[A])this.terminals_[C]&&C>2&&R.push("'"+this.terminals_[C]+"'");L=x.showPosition?"Parse error on line "+(l+1)+":\n"+x.showPosition()+"\nExpecting "+R.join(", ")+", got '"+(this.terminals_[y]||y)+"'":"Parse error on line "+(l+1)+": Unexpected "+(1==y?"end of input":"'"+(this.terminals_[y]||y)+"'"),this.parseError(L,{text:x.match,token:this.terminals_[y]||y,line:x.yylineno,loc:m,expected:R})}if(S[0]instanceof Array&&S.length>1)throw Error("Parse Error: multiple actions possible at state: "+A+", token: "+y);switch(S[0]){case 1:e.push(y),a.push(x.yytext),n.push(x.yylloc),e.push(S[1]),y=null,b?(y=b,b=null):(c=x.yyleng,r=x.yytext,l=x.yylineno,m=x.yylloc,g>0&&g--);break;case 2:if(k=this.productions_[S[1]][1],D.$=a[a.length-k],D._$={first_line:n[n.length-(k||1)].first_line,last_line:n[n.length-1].last_line,first_column:n[n.length-(k||1)].first_column,last_column:n[n.length-1].last_column},f&&(D._$.range=[n[n.length-(k||1)].range[0],n[n.length-1].range[1]]),void 0!==(w=this.performAction.apply(D,[r,c,l,d,S[1],a,n].concat(u))))return w;k&&(e=e.slice(0,-1*k*2),a=a.slice(0,-1*k),n=n.slice(0,-1*k)),e.push(this.productions_[S[1]][0]),a.push(D.$),n.push(D._$),T=o[e[e.length-2]][e[e.length-1]],e.push(T);break;case 3:return!0}}return!0},"parse")};function P(){this.yy={}}return L.lexer={EOF:1,parseError:(0,h.__name)(function(t,i){if(this.yy.parser)this.yy.parser.parseError(t,i);else throw Error(t)},"parseError"),setInput:(0,h.__name)(function(t,i){return this.yy=i||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,h.__name)(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,h.__name)(function(t){var i=t.length,e=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-i),this.offset-=i;var s=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),e.length-1&&(this.yylineno-=e.length-1);var a=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:e?(e.length===s.length?this.yylloc.first_column:0)+s[s.length-e.length].length-e[0].length:this.yylloc.first_column-i},this.options.ranges&&(this.yylloc.range=[a[0],a[0]+this.yyleng-i]),this.yyleng=this.yytext.length,this},"unput"),more:(0,h.__name)(function(){return this._more=!0,this},"more"),reject:(0,h.__name)(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,h.__name)(function(t){this.unput(this.match.slice(t))},"less"),pastInput:(0,h.__name)(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,h.__name)(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,h.__name)(function(){var t=this.pastInput(),i=Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+i+"^"},"showPosition"),test_match:(0,h.__name)(function(t,i){var e,s,a;if(this.options.backtrack_lexer&&(a={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&&(a.yylloc.range=this.yylloc.range.slice(0))),(s=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=s.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:s?s[s.length-1].length-s[s.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],e=this.performAction.call(this,this.yy,this,i,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),e)return e;if(this._backtrack)for(var n in a)this[n]=a[n];return!1},"test_match"),next:(0,h.__name)(function(){if(this.done)return this.EOF;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var t,i,e,s,a=this._currentRules(),n=0;n<a.length;n++)if((e=this._input.match(this.rules[a[n]]))&&(!i||e[0].length>i[0].length)){if(i=e,s=n,this.options.backtrack_lexer){if(!1!==(t=this.test_match(e,a[n])))return t;if(!this._backtrack)return!1;i=!1;continue}if(!this.options.flex)break}return i?!1!==(t=this.test_match(i,a[s]))&&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,h.__name)(function(){var t=this.next();return t||this.lex()},"lex"),begin:(0,h.__name)(function(t){this.conditionStack.push(t)},"begin"),popState:(0,h.__name)(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:(0,h.__name)(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,h.__name)(function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},"topState"),pushState:(0,h.__name)(function(t){this.begin(t)},"pushState"),stateStackSize:(0,h.__name)(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:(0,h.__name)(function(t,i,e,s){switch(e){case 0:case 1:case 5:case 44:break;case 2:case 3:return this.popState(),34;case 4:return 34;case 6:return 10;case 7:return this.pushState("acc_title"),19;case 8:return this.popState(),"acc_title_value";case 9:return this.pushState("acc_descr"),21;case 10:return this.popState(),"acc_descr_value";case 11:this.pushState("acc_descr_multiline");break;case 12:case 26:case 28:this.popState();break;case 13:return"acc_descr_multiline_value";case 14:case 15:return 5;case 16:return 8;case 17:return this.pushState("axis_data"),"X_AXIS";case 18:return this.pushState("axis_data"),"Y_AXIS";case 19:return this.pushState("axis_band_data"),24;case 20:return 31;case 21:return this.pushState("data"),16;case 22:return this.pushState("data"),18;case 23:return this.pushState("data_inner"),24;case 24:return 27;case 25:return this.popState(),26;case 27:this.pushState("string");break;case 29:return"STR";case 30:return 24;case 31:return 26;case 32:return 43;case 33:return"COLON";case 34:return 44;case 35:return 28;case 36:return 45;case 37:return 46;case 38:return 48;case 39:return 50;case 40:return 47;case 41:return 41;case 42:return 49;case 43:return 42;case 45:return 35;case 46:return 36}},"anonymous"),rules:[/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:(\r?\n))/i,/^(?:(\r?\n))/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:title\b)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:\})/i,/^(?:[^\}]*)/i,/^(?:xychart-beta\b)/i,/^(?:xychart\b)/i,/^(?:(?:vertical|horizontal))/i,/^(?:x-axis\b)/i,/^(?:y-axis\b)/i,/^(?:\[)/i,/^(?:-->)/i,/^(?:line\b)/i,/^(?:bar\b)/i,/^(?:\[)/i,/^(?:[+-]?(?:\d+(?:\.\d+)?|\.\d+))/i,/^(?:\])/i,/^(?:(?:`\) \{ this\.pushState\(md_string\); \}\n<md_string>\(\?:\(\?!`"\)\.\)\+ \{ return MD_STR; \}\n<md_string>\(\?:`))/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:\[)/i,/^(?:\])/i,/^(?:[A-Za-z]+)/i,/^(?::)/i,/^(?:\+)/i,/^(?:,)/i,/^(?:=)/i,/^(?:\*)/i,/^(?:#)/i,/^(?:[\_])/i,/^(?:\.)/i,/^(?:&)/i,/^(?:-)/i,/^(?:[0-9]+)/i,/^(?:\s+)/i,/^(?:;)/i,/^(?:$)/i],conditions:{data_inner:{rules:[0,1,4,5,6,7,9,11,14,15,16,17,18,21,22,24,25,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0},data:{rules:[0,1,3,4,5,6,7,9,11,14,15,16,17,18,21,22,23,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0},axis_band_data:{rules:[0,1,4,5,6,7,9,11,14,15,16,17,18,21,22,25,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0},axis_data:{rules:[0,1,2,4,5,6,7,9,11,14,15,16,17,18,19,20,21,22,24,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0},acc_descr_multiline:{rules:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},title:{rules:[],inclusive:!1},md_string:{rules:[],inclusive:!1},string:{rules:[28,29],inclusive:!1},INITIAL:{rules:[0,1,4,5,6,7,9,11,14,15,16,17,18,21,22,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0}}},(0,h.__name)(P,"Parser"),P.prototype=L,L.Parser=P,new P}();function x(t){return"bar"===t.type}function d(t){return"band"===t.type}function p(t){return"linear"===t.type}u.parser=u,(0,h.__name)(x,"isBarPlot"),(0,h.__name)(d,"isBandAxisData"),(0,h.__name)(p,"isLinearAxisData");var m=class{constructor(t){this.parentGroup=t}static{(0,h.__name)(this,"TextDimensionCalculatorWithFont")}getMaxDimension(t,i){if(!this.parentGroup)return{width:t.reduce((t,i)=>Math.max(i.length,t),0)*i,height:i};let e={width:0,height:0},a=this.parentGroup.append("g").attr("visibility","hidden").attr("font-size",i);for(let n of t){let t=(0,s.computeDimensionOfText)(a,1,n),h=t?t.width:n.length*i,o=t?t.height:i;e.width=Math.max(e.width,h),e.height=Math.max(e.height,o)}return a.remove(),e}},f=class{constructor(t,i,e,s){this.axisConfig=t,this.title=i,this.textDimensionCalculator=e,this.axisThemeConfig=s,this.boundingRect={x:0,y:0,width:0,height:0},this.axisPosition="left",this.showTitle=!1,this.showLabel=!1,this.showTick=!1,this.showAxisLine=!1,this.outerPadding=0,this.titleTextHeight=0,this.labelTextHeight=0,this.range=[0,10],this.boundingRect={x:0,y:0,width:0,height:0},this.axisPosition="left"}static{(0,h.__name)(this,"BaseAxis")}setRange(t){this.range=t,"left"===this.axisPosition||"right"===this.axisPosition?this.boundingRect.height=t[1]-t[0]:this.boundingRect.width=t[1]-t[0],this.recalculateScale()}getRange(){return[this.range[0]+this.outerPadding,this.range[1]-this.outerPadding]}setAxisPosition(t){this.axisPosition=t,this.setRange(this.range)}getTickDistance(){let t=this.getRange();return Math.abs(t[0]-t[1])/this.getTickValues().length}getAxisOuterPadding(){return this.outerPadding}getLabelDimension(){return this.textDimensionCalculator.getMaxDimension(this.getTickValues().map(t=>t.toString()),this.axisConfig.labelFontSize)}recalculateOuterPaddingToDrawBar(){.7*this.getTickDistance()>2*this.outerPadding&&(this.outerPadding=Math.floor(.7*this.getTickDistance()/2)),this.recalculateScale()}calculateSpaceIfDrawnHorizontally(t){let i=t.height;if(this.axisConfig.showAxisLine&&i>this.axisConfig.axisLineWidth&&(i-=this.axisConfig.axisLineWidth,this.showAxisLine=!0),this.axisConfig.showLabel){let e=this.getLabelDimension(),s=.2*t.width;this.outerPadding=Math.min(e.width/2,s);let a=e.height+2*this.axisConfig.labelPadding;this.labelTextHeight=e.height,a<=i&&(i-=a,this.showLabel=!0)}if(this.axisConfig.showTick&&i>=this.axisConfig.tickLength&&(this.showTick=!0,i-=this.axisConfig.tickLength),this.axisConfig.showTitle&&this.title){let t=this.textDimensionCalculator.getMaxDimension([this.title],this.axisConfig.titleFontSize),e=t.height+2*this.axisConfig.titlePadding;this.titleTextHeight=t.height,e<=i&&(i-=e,this.showTitle=!0)}this.boundingRect.width=t.width,this.boundingRect.height=t.height-i}calculateSpaceIfDrawnVertical(t){let i=t.width;if(this.axisConfig.showAxisLine&&i>this.axisConfig.axisLineWidth&&(i-=this.axisConfig.axisLineWidth,this.showAxisLine=!0),this.axisConfig.showLabel){let e=this.getLabelDimension(),s=.2*t.height;this.outerPadding=Math.min(e.height/2,s);let a=e.width+2*this.axisConfig.labelPadding;a<=i&&(i-=a,this.showLabel=!0)}if(this.axisConfig.showTick&&i>=this.axisConfig.tickLength&&(this.showTick=!0,i-=this.axisConfig.tickLength),this.axisConfig.showTitle&&this.title){let t=this.textDimensionCalculator.getMaxDimension([this.title],this.axisConfig.titleFontSize),e=t.height+2*this.axisConfig.titlePadding;this.titleTextHeight=t.height,e<=i&&(i-=e,this.showTitle=!0)}this.boundingRect.width=t.width-i,this.boundingRect.height=t.height}calculateSpace(t){return"left"===this.axisPosition||"right"===this.axisPosition?this.calculateSpaceIfDrawnVertical(t):this.calculateSpaceIfDrawnHorizontally(t),this.recalculateScale(),{width:this.boundingRect.width,height:this.boundingRect.height}}setBoundingBoxXY(t){this.boundingRect.x=t.x,this.boundingRect.y=t.y}getDrawableElementsForLeftAxis(){let t=[];if(this.showAxisLine){let i=this.boundingRect.x+this.boundingRect.width-this.axisConfig.axisLineWidth/2;t.push({type:"path",groupTexts:["left-axis","axisl-line"],data:[{path:`M ${i},${this.boundingRect.y} L ${i},${this.boundingRect.y+this.boundingRect.height} `,strokeFill:this.axisThemeConfig.axisLineColor,strokeWidth:this.axisConfig.axisLineWidth}]})}if(this.showLabel&&t.push({type:"text",groupTexts:["left-axis","label"],data:this.getTickValues().map(t=>({text:t.toString(),x:this.boundingRect.x+this.boundingRect.width-(this.showLabel?this.axisConfig.labelPadding:0)-(this.showTick?this.axisConfig.tickLength:0)-(this.showAxisLine?this.axisConfig.axisLineWidth:0),y:this.getScaleValue(t),fill:this.axisThemeConfig.labelColor,fontSize:this.axisConfig.labelFontSize,rotation:0,verticalPos:"middle",horizontalPos:"right"}))}),this.showTick){let i=this.boundingRect.x+this.boundingRect.width-(this.showAxisLine?this.axisConfig.axisLineWidth:0);t.push({type:"path",groupTexts:["left-axis","ticks"],data:this.getTickValues().map(t=>({path:`M ${i},${this.getScaleValue(t)} L ${i-this.axisConfig.tickLength},${this.getScaleValue(t)}`,strokeFill:this.axisThemeConfig.tickColor,strokeWidth:this.axisConfig.tickWidth}))})}return this.showTitle&&t.push({type:"text",groupTexts:["left-axis","title"],data:[{text:this.title,x:this.boundingRect.x+this.axisConfig.titlePadding,y:this.boundingRect.y+this.boundingRect.height/2,fill:this.axisThemeConfig.titleColor,fontSize:this.axisConfig.titleFontSize,rotation:270,verticalPos:"top",horizontalPos:"center"}]}),t}getDrawableElementsForBottomAxis(){let t=[];if(this.showAxisLine){let i=this.boundingRect.y+this.axisConfig.axisLineWidth/2;t.push({type:"path",groupTexts:["bottom-axis","axis-line"],data:[{path:`M ${this.boundingRect.x},${i} L ${this.boundingRect.x+this.boundingRect.width},${i}`,strokeFill:this.axisThemeConfig.axisLineColor,strokeWidth:this.axisConfig.axisLineWidth}]})}if(this.showLabel&&t.push({type:"text",groupTexts:["bottom-axis","label"],data:this.getTickValues().map(t=>({text:t.toString(),x:this.getScaleValue(t),y:this.boundingRect.y+this.axisConfig.labelPadding+(this.showTick?this.axisConfig.tickLength:0)+(this.showAxisLine?this.axisConfig.axisLineWidth:0),fill:this.axisThemeConfig.labelColor,fontSize:this.axisConfig.labelFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}))}),this.showTick){let i=this.boundingRect.y+(this.showAxisLine?this.axisConfig.axisLineWidth:0);t.push({type:"path",groupTexts:["bottom-axis","ticks"],data:this.getTickValues().map(t=>({path:`M ${this.getScaleValue(t)},${i} L ${this.getScaleValue(t)},${i+this.axisConfig.tickLength}`,strokeFill:this.axisThemeConfig.tickColor,strokeWidth:this.axisConfig.tickWidth}))})}return this.showTitle&&t.push({type:"text",groupTexts:["bottom-axis","title"],data:[{text:this.title,x:this.range[0]+(this.range[1]-this.range[0])/2,y:this.boundingRect.y+this.boundingRect.height-this.axisConfig.titlePadding-this.titleTextHeight,fill:this.axisThemeConfig.titleColor,fontSize:this.axisConfig.titleFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}]}),t}getDrawableElementsForTopAxis(){let t=[];if(this.showAxisLine){let i=this.boundingRect.y+this.boundingRect.height-this.axisConfig.axisLineWidth/2;t.push({type:"path",groupTexts:["top-axis","axis-line"],data:[{path:`M ${this.boundingRect.x},${i} L ${this.boundingRect.x+this.boundingRect.width},${i}`,strokeFill:this.axisThemeConfig.axisLineColor,strokeWidth:this.axisConfig.axisLineWidth}]})}if(this.showLabel&&t.push({type:"text",groupTexts:["top-axis","label"],data:this.getTickValues().map(t=>({text:t.toString(),x:this.getScaleValue(t),y:this.boundingRect.y+(this.showTitle?this.titleTextHeight+2*this.axisConfig.titlePadding:0)+this.axisConfig.labelPadding,fill:this.axisThemeConfig.labelColor,fontSize:this.axisConfig.labelFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}))}),this.showTick){let i=this.boundingRect.y;t.push({type:"path",groupTexts:["top-axis","ticks"],data:this.getTickValues().map(t=>({path:`M ${this.getScaleValue(t)},${i+this.boundingRect.height-(this.showAxisLine?this.axisConfig.axisLineWidth:0)} L ${this.getScaleValue(t)},${i+this.boundingRect.height-this.axisConfig.tickLength-(this.showAxisLine?this.axisConfig.axisLineWidth:0)}`,strokeFill:this.axisThemeConfig.tickColor,strokeWidth:this.axisConfig.tickWidth}))})}return this.showTitle&&t.push({type:"text",groupTexts:["top-axis","title"],data:[{text:this.title,x:this.boundingRect.x+this.boundingRect.width/2,y:this.boundingRect.y+this.axisConfig.titlePadding,fill:this.axisThemeConfig.titleColor,fontSize:this.axisConfig.titleFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}]}),t}getDrawableElements(){if("left"===this.axisPosition)return this.getDrawableElementsForLeftAxis();if("right"===this.axisPosition)throw Error("Drawing of right axis is not implemented");return"bottom"===this.axisPosition?this.getDrawableElementsForBottomAxis():"top"===this.axisPosition?this.getDrawableElementsForTopAxis():[]}},_=class extends f{static{(0,h.__name)(this,"BandAxis")}constructor(t,i,e,s,a){super(t,s,a,i),this.categories=e,this.scale=l().domain(this.categories).range(this.getRange())}setRange(t){super.setRange(t)}recalculateScale(){this.scale=l().domain(this.categories).range(this.getRange()).paddingInner(1).paddingOuter(0).align(.5),h.log.trace("BandAxis axis final categories, range: ",this.categories,this.getRange())}getTickValues(){return this.categories}getScaleValue(t){return this.scale(t)??this.getRange()[0]}},y=class extends f{static{(0,h.__name)(this,"LinearAxis")}constructor(t,i,e,s,a){super(t,s,a,i),this.domain=e,this.scale=(0,c.scaleLinear)().domain(this.domain).range(this.getRange())}getTickValues(){return this.scale.ticks()}recalculateScale(){let t=[...this.domain];"left"===this.axisPosition&&t.reverse(),this.scale=(0,c.scaleLinear)().domain(t).range(this.getRange())}getScaleValue(t){return this.scale(t)}};function b(t,i,e,s){let a=new m(s);return d(t)?new _(i,e,t.categories,t.title,a):new y(i,e,[t.min,t.max],t.title,a)}(0,h.__name)(b,"getAxis");var A=class{constructor(t,i,e,s){this.textDimensionCalculator=t,this.chartConfig=i,this.chartData=e,this.chartThemeConfig=s,this.boundingRect={x:0,y:0,width:0,height:0},this.showChartTitle=!1}static{(0,h.__name)(this,"ChartTitle")}setBoundingBoxXY(t){this.boundingRect.x=t.x,this.boundingRect.y=t.y}calculateSpace(t){let i=this.textDimensionCalculator.getMaxDimension([this.chartData.title],this.chartConfig.titleFontSize),e=Math.max(i.width,t.width),s=i.height+2*this.chartConfig.titlePadding;return i.width<=e&&i.height<=s&&this.chartConfig.showTitle&&this.chartData.title&&(this.boundingRect.width=e,this.boundingRect.height=s,this.showChartTitle=!0),{width:this.boundingRect.width,height:this.boundingRect.height}}getDrawableElements(){let t=[];return this.showChartTitle&&t.push({groupTexts:["chart-title"],type:"text",data:[{fontSize:this.chartConfig.titleFontSize,text:this.chartData.title,verticalPos:"middle",horizontalPos:"center",x:this.boundingRect.x+this.boundingRect.width/2,y:this.boundingRect.y+this.boundingRect.height/2,fill:this.chartThemeConfig.titleColor,rotation:0}]}),t}};function S(t,i,e,s){return new A(new m(s),t,i,e)}(0,h.__name)(S,"getChartTitleComponent");var w=class{constructor(t,i,e,s,a){this.plotData=t,this.xAxis=i,this.yAxis=e,this.orientation=s,this.plotIndex=a}static{(0,h.__name)(this,"LinePlot")}getDrawableElement(){let t,i=this.plotData.data.map(t=>[this.xAxis.getScaleValue(t[0]),this.yAxis.getScaleValue(t[1])]);return(t="horizontal"===this.orientation?(0,g.line)().y(t=>t[0]).x(t=>t[1])(i):(0,g.line)().x(t=>t[0]).y(t=>t[1])(i))?[{groupTexts:["plot",`line-plot-${this.plotIndex}`],type:"path",data:[{path:t,strokeFill:this.plotData.strokeFill,strokeWidth:this.plotData.strokeWidth}]}]:[]}},C=class{constructor(t,i,e,s,a,n){this.barData=t,this.boundingRect=i,this.xAxis=e,this.yAxis=s,this.orientation=a,this.plotIndex=n}static{(0,h.__name)(this,"BarPlot")}getDrawableElement(){let t=this.barData.data.map(t=>[this.xAxis.getScaleValue(t[0]),this.yAxis.getScaleValue(t[1])]),i=.95*Math.min(2*this.xAxis.getAxisOuterPadding(),this.xAxis.getTickDistance()),e=i/2;return"horizontal"===this.orientation?[{groupTexts:["plot",`bar-plot-${this.plotIndex}`],type:"rect",data:t.map(t=>({x:this.boundingRect.x,y:t[0]-e,height:i,width:t[1]-this.boundingRect.x,fill:this.barData.fill,strokeWidth:0,strokeFill:this.barData.fill}))}]:[{groupTexts:["plot",`bar-plot-${this.plotIndex}`],type:"rect",data:t.map(t=>({x:t[0]-e,y:t[1],width:i,height:this.boundingRect.y+this.boundingRect.height-t[1],fill:this.barData.fill,strokeWidth:0,strokeFill:this.barData.fill}))}]}},k=class{constructor(t,i,e){this.chartConfig=t,this.chartData=i,this.chartThemeConfig=e,this.boundingRect={x:0,y:0,width:0,height:0}}static{(0,h.__name)(this,"BasePlot")}setAxes(t,i){this.xAxis=t,this.yAxis=i}setBoundingBoxXY(t){this.boundingRect.x=t.x,this.boundingRect.y=t.y}calculateSpace(t){return this.boundingRect.width=t.width,this.boundingRect.height=t.height,{width:this.boundingRect.width,height:this.boundingRect.height}}getDrawableElements(){if(!(this.xAxis&&this.yAxis))throw Error("Axes must be passed to render Plots");let t=[];for(let[i,e]of this.chartData.plots.entries())switch(e.type){case"line":{let s=new w(e,this.xAxis,this.yAxis,this.chartConfig.chartOrientation,i);t.push(...s.getDrawableElement())}break;case"bar":{let s=new C(e,this.boundingRect,this.xAxis,this.yAxis,this.chartConfig.chartOrientation,i);t.push(...s.getDrawableElement())}}return t}};function T(t,i,e){return new k(t,i,e)}(0,h.__name)(T,"getPlotComponent");var R=class{constructor(t,i,e,s){this.chartConfig=t,this.chartData=i,this.componentStore={title:S(t,i,e,s),plot:T(t,i,e),xAxis:b(i.xAxis,t.xAxis,{titleColor:e.xAxisTitleColor,labelColor:e.xAxisLabelColor,tickColor:e.xAxisTickColor,axisLineColor:e.xAxisLineColor},s),yAxis:b(i.yAxis,t.yAxis,{titleColor:e.yAxisTitleColor,labelColor:e.yAxisLabelColor,tickColor:e.yAxisTickColor,axisLineColor:e.yAxisLineColor},s)}}static{(0,h.__name)(this,"Orchestrator")}calculateVerticalSpace(){let t=this.chartConfig.width,i=this.chartConfig.height,e=0,s=0,a=Math.floor(t*this.chartConfig.plotReservedSpacePercent/100),n=Math.floor(i*this.chartConfig.plotReservedSpacePercent/100),h=this.componentStore.plot.calculateSpace({width:a,height:n});t-=h.width,i-=h.height,s=(h=this.componentStore.title.calculateSpace({width:this.chartConfig.width,height:i})).height,i-=h.height,this.componentStore.xAxis.setAxisPosition("bottom"),h=this.componentStore.xAxis.calculateSpace({width:t,height:i}),i-=h.height,this.componentStore.yAxis.setAxisPosition("left"),e=(h=this.componentStore.yAxis.calculateSpace({width:t,height:i})).width,(t-=h.width)>0&&(a+=t,t=0),i>0&&(n+=i,i=0),this.componentStore.plot.calculateSpace({width:a,height:n}),this.componentStore.plot.setBoundingBoxXY({x:e,y:s}),this.componentStore.xAxis.setRange([e,e+a]),this.componentStore.xAxis.setBoundingBoxXY({x:e,y:s+n}),this.componentStore.yAxis.setRange([s,s+n]),this.componentStore.yAxis.setBoundingBoxXY({x:0,y:s}),this.chartData.plots.some(t=>x(t))&&this.componentStore.xAxis.recalculateOuterPaddingToDrawBar()}calculateHorizontalSpace(){let t=this.chartConfig.width,i=this.chartConfig.height,e=0,s=0,a=0,n=Math.floor(t*this.chartConfig.plotReservedSpacePercent/100),h=Math.floor(i*this.chartConfig.plotReservedSpacePercent/100),o=this.componentStore.plot.calculateSpace({width:n,height:h});t-=o.width,i-=o.height,e=(o=this.componentStore.title.calculateSpace({width:this.chartConfig.width,height:i})).height,i-=o.height,this.componentStore.xAxis.setAxisPosition("left"),o=this.componentStore.xAxis.calculateSpace({width:t,height:i}),t-=o.width,s=o.width,this.componentStore.yAxis.setAxisPosition("top"),o=this.componentStore.yAxis.calculateSpace({width:t,height:i}),i-=o.height,a=e+o.height,t>0&&(n+=t,t=0),i>0&&(h+=i,i=0),this.componentStore.plot.calculateSpace({width:n,height:h}),this.componentStore.plot.setBoundingBoxXY({x:s,y:a}),this.componentStore.yAxis.setRange([s,s+n]),this.componentStore.yAxis.setBoundingBoxXY({x:s,y:e}),this.componentStore.xAxis.setRange([a,a+h]),this.componentStore.xAxis.setBoundingBoxXY({x:0,y:a}),this.chartData.plots.some(t=>x(t))&&this.componentStore.xAxis.recalculateOuterPaddingToDrawBar()}calculateSpace(){"horizontal"===this.chartConfig.chartOrientation?this.calculateHorizontalSpace():this.calculateVerticalSpace()}getDrawableElement(){this.calculateSpace();let t=[];for(let i of(this.componentStore.plot.setAxes(this.componentStore.xAxis,this.componentStore.yAxis),Object.values(this.componentStore)))t.push(...i.getDrawableElements());return t}},D=class{static{(0,h.__name)(this,"XYChartBuilder")}static build(t,i,e,s){return new R(t,i,e,s).getDrawableElement()}},L=0,P=z(),v=B(),E=O(),M=v.plotColorPalette.split(",").map(t=>t.trim()),I=!1,$=!1;function B(){let t=(0,n.getThemeVariables)(),i=(0,n.getConfig)();return(0,a.cleanAndMerge)(t.xyChart,i.themeVariables.xyChart)}function z(){let t=(0,n.getConfig)();return(0,a.cleanAndMerge)(n.defaultConfig_default.xyChart,t.xyChart)}function O(){return{yAxis:{type:"linear",title:"",min:1/0,max:-1/0},xAxis:{type:"band",title:"",categories:[]},title:"",plots:[]}}function W(t){let i=(0,n.getConfig)();return(0,n.sanitizeText)(t.trim(),i)}function F(t){i=t}function N(t){"horizontal"===t?P.chartOrientation="horizontal":P.chartOrientation="vertical"}function V(t){E.xAxis.title=W(t.text)}function X(t,i){E.xAxis={type:"linear",title:E.xAxis.title,min:t,max:i},I=!0}function Y(t){E.xAxis={type:"band",title:E.xAxis.title,categories:t.map(t=>W(t.text))},I=!0}function U(t){E.yAxis.title=W(t.text)}function H(t,i){E.yAxis={type:"linear",title:E.yAxis.title,min:t,max:i},$=!0}function j(t){let i=Math.min(...t),e=Math.max(...t),s=p(E.yAxis)?E.yAxis.min:1/0,a=p(E.yAxis)?E.yAxis.max:-1/0;E.yAxis={type:"linear",title:E.yAxis.title,min:Math.min(s,i),max:Math.max(a,e)}}function G(t){let i=[];if(0===t.length)return i;if(I||X(Math.min(p(E.xAxis)?E.xAxis.min:1/0,1),Math.max(p(E.xAxis)?E.xAxis.max:-1/0,t.length)),$||j(t),d(E.xAxis)&&(i=E.xAxis.categories.map((i,e)=>[i,t[e]])),p(E.xAxis)){let e=E.xAxis.min,s=E.xAxis.max,a=(s-e)/(t.length-1),n=[];for(let t=e;t<=s;t+=a)n.push(`${t}`);i=n.map((i,e)=>[i,t[e]])}return i}function Q(t){return M[0===t?0:t%M.length]}function K(t,i){let e=G(i);E.plots.push({type:"line",strokeFill:Q(L),strokeWidth:2,data:e}),L++}function Z(t,i){let e=G(i);E.plots.push({type:"bar",fill:Q(L),data:e}),L++}function q(){if(0===E.plots.length)throw Error("No Plot to render, please provide a plot with some data");return E.title=(0,n.getDiagramTitle)(),D.build(P,E,v,i)}function J(){return v}function tt(){return P}function ti(){return E}(0,h.__name)(B,"getChartDefaultThemeConfig"),(0,h.__name)(z,"getChartDefaultConfig"),(0,h.__name)(O,"getChartDefaultData"),(0,h.__name)(W,"textSanitizer"),(0,h.__name)(F,"setTmpSVGG"),(0,h.__name)(N,"setOrientation"),(0,h.__name)(V,"setXAxisTitle"),(0,h.__name)(X,"setXAxisRangeData"),(0,h.__name)(Y,"setXAxisBand"),(0,h.__name)(U,"setYAxisTitle"),(0,h.__name)(H,"setYAxisRangeData"),(0,h.__name)(j,"setYAxisRangeFromPlotData"),(0,h.__name)(G,"transformDataWithoutCategory"),(0,h.__name)(Q,"getPlotColorFromPalette"),(0,h.__name)(K,"setLineData"),(0,h.__name)(Z,"setBarData"),(0,h.__name)(q,"getDrawableElem"),(0,h.__name)(J,"getChartThemeConfig"),(0,h.__name)(tt,"getChartConfig"),(0,h.__name)(ti,"getXYChartData");var te={getDrawableElem:q,clear:(0,h.__name)(function(){(0,n.clear)(),L=0,P=z(),E=O(),M=(v=B()).plotColorPalette.split(",").map(t=>t.trim()),I=!1,$=!1},"clear"),setAccTitle:n.setAccTitle,getAccTitle:n.getAccTitle,setDiagramTitle:n.setDiagramTitle,getDiagramTitle:n.getDiagramTitle,getAccDescription:n.getAccDescription,setAccDescription:n.setAccDescription,setOrientation:N,setXAxisTitle:V,setXAxisRangeData:X,setXAxisBand:Y,setYAxisTitle:U,setYAxisRangeData:H,setLineData:K,setBarData:Z,setTmpSVGG:F,getChartThemeConfig:J,getChartConfig:tt,getXYChartData:ti},ts=(0,h.__name)((t,i,s,a)=>{let o=a.db,r=o.getChartThemeConfig(),l=o.getChartConfig(),c=o.getXYChartData().plots[0].data.map(t=>t[1]);function g(t){return"top"===t?"text-before-edge":"middle"}function u(t){return"left"===t?"start":"right"===t?"end":"middle"}function x(t){return`translate(${t.x}, ${t.y}) rotate(${t.rotation||0})`}(0,h.__name)(g,"getDominantBaseLine"),(0,h.__name)(u,"getTextAnchor"),(0,h.__name)(x,"getTextTransformation"),h.log.debug("Rendering xychart chart\n"+t);let d=(0,e.selectSvgElement)(i),p=d.append("g").attr("class","main"),m=p.append("rect").attr("width",l.width).attr("height",l.height).attr("class","background");(0,n.configureSvgSize)(d,l.height,l.width,!0),d.attr("viewBox",`0 0 ${l.width} ${l.height}`),m.attr("fill",r.backgroundColor),o.setTmpSVGG(d.append("g").attr("class","mermaid-tmp-group"));let f=o.getDrawableElem(),_={};function y(t){let i=p,e="";for(let[s]of t.entries()){let a=p;s>0&&_[e]&&(a=_[e]),e+=t[s],(i=_[e])||(i=_[e]=a.append("g").attr("class",t[s]))}return i}for(let t of((0,h.__name)(y,"getGroup"),f)){if(0===t.data.length)continue;let i=y(t.groupTexts);switch(t.type){case"rect":if(i.selectAll("rect").data(t.data).enter().append("rect").attr("x",t=>t.x).attr("y",t=>t.y).attr("width",t=>t.width).attr("height",t=>t.height).attr("fill",t=>t.fill).attr("stroke",t=>t.strokeFill).attr("stroke-width",t=>t.strokeWidth),l.showDataLabel){let e=l.showDataLabelOutsideBar;if("horizontal"===l.chartOrientation){let s=function(t,i){let{data:e,label:s}=t;return i*s.length*a<=e.width-n};(0,h.__name)(s,"fitsHorizontally");let a=.7,n=10,o=t.data.map((t,i)=>({data:t,label:c[i].toString()})).filter(t=>t.data.width>0&&t.data.height>0),l=Math.floor(Math.min(...o.map(t=>{let{data:i}=t,e=.7*i.height;for(;!s(t,e)&&e>0;)e-=1;return e}))),g=(0,h.__name)(t=>e?t.data.x+t.data.width+n:t.data.x+t.data.width-n,"determineLabelXPosition");i.selectAll("text").data(o).enter().append("text").attr("x",g).attr("y",t=>t.data.y+t.data.height/2).attr("text-anchor",e?"start":"end").attr("dominant-baseline","middle").attr("fill",r.dataLabelColor).attr("font-size",`${l}px`).text(t=>t.label)}else{let s=function(t,i,e){let{data:s,label:a}=t,n=i*a.length*.7,h=s.x+s.width/2,o=h-n/2,r=h+n/2,l=o>=s.x&&r<=s.x+s.width,c=s.y+e+i<=s.y+s.height;return l&&c};(0,h.__name)(s,"fitsInBar");let a=t.data.map((t,i)=>({data:t,label:c[i].toString()})).filter(t=>t.data.width>0&&t.data.height>0),n=Math.floor(Math.min(...a.map(t=>{let{data:i,label:e}=t,a=i.width/(.7*e.length);for(;!s(t,a,10)&&a>0;)a-=1;return a}))),o=(0,h.__name)(t=>e?t.data.y-10:t.data.y+10,"determineLabelYPosition");i.selectAll("text").data(a).enter().append("text").attr("x",t=>t.data.x+t.data.width/2).attr("y",o).attr("text-anchor","middle").attr("dominant-baseline",e?"auto":"hanging").attr("fill",r.dataLabelColor).attr("font-size",`${n}px`).text(t=>t.label)}}break;case"text":i.selectAll("text").data(t.data).enter().append("text").attr("x",0).attr("y",0).attr("fill",t=>t.fill).attr("font-size",t=>t.fontSize).attr("dominant-baseline",t=>g(t.verticalPos)).attr("text-anchor",t=>u(t.horizontalPos)).attr("transform",t=>x(t)).text(t=>t.text);break;case"path":i.selectAll("path").data(t.data).enter().append("path").attr("d",t=>t.path).attr("fill",t=>t.fill?t.fill:"none").attr("stroke",t=>t.strokeFill).attr("stroke-width",t=>t.strokeWidth)}}},"draw");t.s(["diagram",0,{parser:u,db:te,renderer:{draw:ts}}],248018)}]);
@@ -0,0 +1,2 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,467034,(t,e,i)=>{var n={675:function(t,e){"use strict";e.byteLength=function(t){var e=a(t),i=e[0],n=e[1];return(i+n)*3/4-n},e.toByteArray=function(t){var e,i,o=a(t),s=o[0],h=o[1],f=new r((s+h)*3/4-h),u=0,c=h>0?s-4:s;for(i=0;i<c;i+=4)e=n[t.charCodeAt(i)]<<18|n[t.charCodeAt(i+1)]<<12|n[t.charCodeAt(i+2)]<<6|n[t.charCodeAt(i+3)],f[u++]=e>>16&255,f[u++]=e>>8&255,f[u++]=255&e;return 2===h&&(e=n[t.charCodeAt(i)]<<2|n[t.charCodeAt(i+1)]>>4,f[u++]=255&e),1===h&&(e=n[t.charCodeAt(i)]<<10|n[t.charCodeAt(i+1)]<<4|n[t.charCodeAt(i+2)]>>2,f[u++]=e>>8&255,f[u++]=255&e),f},e.fromByteArray=function(t){for(var e,n=t.length,r=n%3,o=[],s=0,h=n-r;s<h;s+=16383)o.push(function(t,e,n){for(var r,o=[],s=e;s<n;s+=3)r=(t[s]<<16&0xff0000)+(t[s+1]<<8&65280)+(255&t[s+2]),o.push(i[r>>18&63]+i[r>>12&63]+i[r>>6&63]+i[63&r]);return o.join("")}(t,s,s+16383>h?h:s+16383));return 1===r?o.push(i[(e=t[n-1])>>2]+i[e<<4&63]+"=="):2===r&&o.push(i[(e=(t[n-2]<<8)+t[n-1])>>10]+i[e>>4&63]+i[e<<2&63]+"="),o.join("")};for(var i=[],n=[],r="u">typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,h=o.length;s<h;++s)i[s]=o[s],n[o.charCodeAt(s)]=s;function a(t){var e=t.length;if(e%4>0)throw Error("Invalid string. Length must be a multiple of 4");var i=t.indexOf("=");-1===i&&(i=e);var n=i===e?0:4-i%4;return[i,n]}n[45]=62,n[95]=63},72:function(t,e,i){"use strict";var n=i(675),r=i(783),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function s(t){if(t>0x7fffffff)throw RangeError('The value "'+t+'" is invalid for option "size"');var e=new Uint8Array(t);return Object.setPrototypeOf(e,h.prototype),e}function h(t,e,i){if("number"==typeof t){if("string"==typeof e)throw TypeError('The "string" argument must be of type string. Received type number');return u(t)}return a(t,e,i)}function a(t,e,i){if("string"==typeof t){var n=t,r=e;if(("string"!=typeof r||""===r)&&(r="utf8"),!h.isEncoding(r))throw TypeError("Unknown encoding: "+r);var o=0|_(n,r),a=s(o),f=a.write(n,r);return f!==o&&(a=a.slice(0,f)),a}if(ArrayBuffer.isView(t))return c(t);if(null==t)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(j(t,ArrayBuffer)||t&&j(t.buffer,ArrayBuffer)||"u">typeof SharedArrayBuffer&&(j(t,SharedArrayBuffer)||t&&j(t.buffer,SharedArrayBuffer)))return function(t,e,i){var n;if(e<0||t.byteLength<e)throw RangeError('"offset" is outside of buffer bounds');if(t.byteLength<e+(i||0))throw RangeError('"length" is outside of buffer bounds');return Object.setPrototypeOf(n=void 0===e&&void 0===i?new Uint8Array(t):void 0===i?new Uint8Array(t,e):new Uint8Array(t,e,i),h.prototype),n}(t,e,i);if("number"==typeof t)throw TypeError('The "value" argument must not be of type number. Received type number');var u=t.valueOf&&t.valueOf();if(null!=u&&u!==t)return h.from(u,e,i);var p=function(t){if(h.isBuffer(t)){var e=0|l(t.length),i=s(e);return 0===i.length||t.copy(i,0,0,e),i}return void 0!==t.length?"number"!=typeof t.length||function(t){return t!=t}(t.length)?s(0):c(t):"Buffer"===t.type&&Array.isArray(t.data)?c(t.data):void 0}(t);if(p)return p;if("u">typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof t[Symbol.toPrimitive])return h.from(t[Symbol.toPrimitive]("string"),e,i);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}function f(t){if("number"!=typeof t)throw TypeError('"size" argument must be of type number');if(t<0)throw RangeError('The value "'+t+'" is invalid for option "size"')}function u(t){return f(t),s(t<0?0:0|l(t))}function c(t){for(var e=t.length<0?0:0|l(t.length),i=s(e),n=0;n<e;n+=1)i[n]=255&t[n];return i}e.Buffer=h,e.SlowBuffer=function(t){return+t!=t&&(t=0),h.alloc(+t)},e.INSPECT_MAX_BYTES=50,e.kMaxLength=0x7fffffff,h.TYPED_ARRAY_SUPPORT=function(){try{var t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),42===t.foo()}catch(t){return!1}}(),!h.TYPED_ARRAY_SUPPORT&&"u">typeof console&&"function"==typeof console.error&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(h.prototype,"parent",{enumerable:!0,get:function(){if(h.isBuffer(this))return this.buffer}}),Object.defineProperty(h.prototype,"offset",{enumerable:!0,get:function(){if(h.isBuffer(this))return this.byteOffset}}),h.poolSize=8192,h.from=function(t,e,i){return a(t,e,i)},Object.setPrototypeOf(h.prototype,Uint8Array.prototype),Object.setPrototypeOf(h,Uint8Array),h.alloc=function(t,e,i){return(f(t),t<=0)?s(t):void 0!==e?"string"==typeof i?s(t).fill(e,i):s(t).fill(e):s(t)},h.allocUnsafe=function(t){return u(t)},h.allocUnsafeSlow=function(t){return u(t)};function l(t){if(t>=0x7fffffff)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|t}function _(t,e){if(h.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||j(t,ArrayBuffer))return t.byteLength;if("string"!=typeof t)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);var i=t.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===i)return 0;for(var r=!1;;)switch(e){case"ascii":case"latin1":case"binary":return i;case"utf8":case"utf-8":return A(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*i;case"hex":return i>>>1;case"base64":return B(t).length;default:if(r)return n?-1:A(t).length;e=(""+e).toLowerCase(),r=!0}}function p(t,e,i){var r,o,s,h=!1;if((void 0===e||e<0)&&(e=0),e>this.length||((void 0===i||i>this.length)&&(i=this.length),i<=0||(i>>>=0)<=(e>>>=0)))return"";for(t||(t="utf8");;)switch(t){case"hex":return function(t,e,i){var n=t.length;(!e||e<0)&&(e=0),(!i||i<0||i>n)&&(i=n);for(var r="",o=e;o<i;++o)r+=M[t[o]];return r}(this,e,i);case"utf8":case"utf-8":return d(this,e,i);case"ascii":return function(t,e,i){var n="";i=Math.min(t.length,i);for(var r=e;r<i;++r)n+=String.fromCharCode(127&t[r]);return n}(this,e,i);case"latin1":case"binary":return function(t,e,i){var n="";i=Math.min(t.length,i);for(var r=e;r<i;++r)n+=String.fromCharCode(t[r]);return n}(this,e,i);case"base64":return r=this,o=e,s=i,0===o&&s===r.length?n.fromByteArray(r):n.fromByteArray(r.slice(o,s));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return function(t,e,i){for(var n=t.slice(e,i),r="",o=0;o<n.length;o+=2)r+=String.fromCharCode(n[o]+256*n[o+1]);return r}(this,e,i);default:if(h)throw TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),h=!0}}function y(t,e,i){var n=t[e];t[e]=t[i],t[i]=n}function g(t,e,i,n,r){var o;if(0===t.length)return -1;if("string"==typeof i?(n=i,i=0):i>0x7fffffff?i=0x7fffffff:i<-0x80000000&&(i=-0x80000000),(o=i*=1)!=o&&(i=r?0:t.length-1),i<0&&(i=t.length+i),i>=t.length)if(r)return -1;else i=t.length-1;else if(i<0)if(!r)return -1;else i=0;if("string"==typeof e&&(e=h.from(e,n)),h.isBuffer(e))return 0===e.length?-1:x(t,e,i,n,r);if("number"==typeof e){if(e&=255,"function"==typeof Uint8Array.prototype.indexOf)if(r)return Uint8Array.prototype.indexOf.call(t,e,i);else return Uint8Array.prototype.lastIndexOf.call(t,e,i);return x(t,[e],i,n,r)}throw TypeError("val must be string, number or Buffer")}function x(t,e,i,n,r){var o,s=1,h=t.length,a=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return -1;s=2,h/=2,a/=2,i/=2}function f(t,e){return 1===s?t[e]:t.readUInt16BE(e*s)}if(r){var u=-1;for(o=i;o<h;o++)if(f(t,o)===f(e,-1===u?0:o-u)){if(-1===u&&(u=o),o-u+1===a)return u*s}else -1!==u&&(o-=o-u),u=-1}else for(i+a>h&&(i=h-a),o=i;o>=0;o--){for(var c=!0,l=0;l<a;l++)if(f(t,o+l)!==f(e,l)){c=!1;break}if(c)return o}return -1}h.isBuffer=function(t){return null!=t&&!0===t._isBuffer&&t!==h.prototype},h.compare=function(t,e){if(j(t,Uint8Array)&&(t=h.from(t,t.offset,t.byteLength)),j(e,Uint8Array)&&(e=h.from(e,e.offset,e.byteLength)),!h.isBuffer(t)||!h.isBuffer(e))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===e)return 0;for(var i=t.length,n=e.length,r=0,o=Math.min(i,n);r<o;++r)if(t[r]!==e[r]){i=t[r],n=e[r];break}return i<n?-1:+(n<i)},h.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},h.concat=function(t,e){if(!Array.isArray(t))throw TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return h.alloc(0);if(void 0===e)for(i=0,e=0;i<t.length;++i)e+=t[i].length;var i,n=h.allocUnsafe(e),r=0;for(i=0;i<t.length;++i){var o=t[i];if(j(o,Uint8Array)&&(o=h.from(o)),!h.isBuffer(o))throw TypeError('"list" argument must be an Array of Buffers');o.copy(n,r),r+=o.length}return n},h.byteLength=_,h.prototype._isBuffer=!0,h.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)y(this,e,e+1);return this},h.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)y(this,e,e+3),y(this,e+1,e+2);return this},h.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)y(this,e,e+7),y(this,e+1,e+6),y(this,e+2,e+5),y(this,e+3,e+4);return this},h.prototype.toString=function(){var t=this.length;return 0===t?"":0==arguments.length?d(this,0,t):p.apply(this,arguments)},h.prototype.toLocaleString=h.prototype.toString,h.prototype.equals=function(t){if(!h.isBuffer(t))throw TypeError("Argument must be a Buffer");return this===t||0===h.compare(this,t)},h.prototype.inspect=function(){var t="",i=e.INSPECT_MAX_BYTES;return t=this.toString("hex",0,i).replace(/(.{2})/g,"$1 ").trim(),this.length>i&&(t+=" ... "),"<Buffer "+t+">"},o&&(h.prototype[o]=h.prototype.inspect),h.prototype.compare=function(t,e,i,n,r){if(j(t,Uint8Array)&&(t=h.from(t,t.offset,t.byteLength)),!h.isBuffer(t))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===e&&(e=0),void 0===i&&(i=t?t.length:0),void 0===n&&(n=0),void 0===r&&(r=this.length),e<0||i>t.length||n<0||r>this.length)throw RangeError("out of range index");if(n>=r&&e>=i)return 0;if(n>=r)return -1;if(e>=i)return 1;if(e>>>=0,i>>>=0,n>>>=0,r>>>=0,this===t)return 0;for(var o=r-n,s=i-e,a=Math.min(o,s),f=this.slice(n,r),u=t.slice(e,i),c=0;c<a;++c)if(f[c]!==u[c]){o=f[c],s=u[c];break}return o<s?-1:+(s<o)},h.prototype.includes=function(t,e,i){return -1!==this.indexOf(t,e,i)},h.prototype.indexOf=function(t,e,i){return g(this,t,e,i,!0)},h.prototype.lastIndexOf=function(t,e,i){return g(this,t,e,i,!1)};function d(t,e,i){i=Math.min(t.length,i);for(var n=[],r=e;r<i;){var o,s,h,a,f=t[r],u=null,c=f>239?4:f>223?3:f>191?2:1;if(r+c<=i)switch(c){case 1:f<128&&(u=f);break;case 2:(192&(o=t[r+1]))==128&&(a=(31&f)<<6|63&o)>127&&(u=a);break;case 3:o=t[r+1],s=t[r+2],(192&o)==128&&(192&s)==128&&(a=(15&f)<<12|(63&o)<<6|63&s)>2047&&(a<55296||a>57343)&&(u=a);break;case 4:o=t[r+1],s=t[r+2],h=t[r+3],(192&o)==128&&(192&s)==128&&(192&h)==128&&(a=(15&f)<<18|(63&o)<<12|(63&s)<<6|63&h)>65535&&a<1114112&&(u=a)}null===u?(u=65533,c=1):u>65535&&(u-=65536,n.push(u>>>10&1023|55296),u=56320|1023&u),n.push(u),r+=c}var l=n,_=l.length;if(_<=4096)return String.fromCharCode.apply(String,l);for(var p="",y=0;y<_;)p+=String.fromCharCode.apply(String,l.slice(y,y+=4096));return p}function b(t,e,i){if(t%1!=0||t<0)throw RangeError("offset is not uint");if(t+e>i)throw RangeError("Trying to access beyond buffer length")}function v(t,e,i,n,r,o){if(!h.isBuffer(t))throw TypeError('"buffer" argument must be a Buffer instance');if(e>r||e<o)throw RangeError('"value" argument is out of bounds');if(i+n>t.length)throw RangeError("Index out of range")}function m(t,e,i,n,r,o){if(i+n>t.length||i<0)throw RangeError("Index out of range")}function w(t,e,i,n,o){return e*=1,i>>>=0,o||m(t,e,i,4,34028234663852886e22,-34028234663852886e22),r.write(t,e,i,n,23,4),i+4}function E(t,e,i,n,o){return e*=1,i>>>=0,o||m(t,e,i,8,17976931348623157e292,-17976931348623157e292),r.write(t,e,i,n,52,8),i+8}h.prototype.write=function(t,e,i,n){if(void 0===e)n="utf8",i=this.length,e=0;else if(void 0===i&&"string"==typeof e)n=e,i=this.length,e=0;else if(isFinite(e))e>>>=0,isFinite(i)?(i>>>=0,void 0===n&&(n="utf8")):(n=i,i=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var r,o,s,h,a,f,u,c,l=this.length-e;if((void 0===i||i>l)&&(i=l),t.length>0&&(i<0||e<0)||e>this.length)throw RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var _=!1;;)switch(n){case"hex":return function(t,e,i,n){i=Number(i)||0;var r=t.length-i;n?(n=Number(n))>r&&(n=r):n=r;var o=e.length;n>o/2&&(n=o/2);for(var s=0;s<n;++s){var h,a=parseInt(e.substr(2*s,2),16);if((h=a)!=h)break;t[i+s]=a}return s}(this,t,e,i);case"utf8":case"utf-8":return r=e,o=i,O(A(t,this.length-r),this,r,o);case"ascii":return s=e,h=i,O(S(t),this,s,h);case"latin1":case"binary":return function(t,e,i,n){return O(S(e),t,i,n)}(this,t,e,i);case"base64":return a=e,f=i,O(B(t),this,a,f);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return u=e,c=i,O(function(t,e){for(var i,n,r=[],o=0;o<t.length&&!((e-=2)<0);++o)n=(i=t.charCodeAt(o))>>8,r.push(i%256),r.push(n);return r}(t,this.length-u),this,u,c);default:if(_)throw TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),_=!0}},h.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},h.prototype.slice=function(t,e){var i=this.length;t=~~t,e=void 0===e?i:~~e,t<0?(t+=i)<0&&(t=0):t>i&&(t=i),e<0?(e+=i)<0&&(e=0):e>i&&(e=i),e<t&&(e=t);var n=this.subarray(t,e);return Object.setPrototypeOf(n,h.prototype),n},h.prototype.readUIntLE=function(t,e,i){t>>>=0,e>>>=0,i||b(t,e,this.length);for(var n=this[t],r=1,o=0;++o<e&&(r*=256);)n+=this[t+o]*r;return n},h.prototype.readUIntBE=function(t,e,i){t>>>=0,e>>>=0,i||b(t,e,this.length);for(var n=this[t+--e],r=1;e>0&&(r*=256);)n+=this[t+--e]*r;return n},h.prototype.readUInt8=function(t,e){return t>>>=0,e||b(t,1,this.length),this[t]},h.prototype.readUInt16LE=function(t,e){return t>>>=0,e||b(t,2,this.length),this[t]|this[t+1]<<8},h.prototype.readUInt16BE=function(t,e){return t>>>=0,e||b(t,2,this.length),this[t]<<8|this[t+1]},h.prototype.readUInt32LE=function(t,e){return t>>>=0,e||b(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+0x1000000*this[t+3]},h.prototype.readUInt32BE=function(t,e){return t>>>=0,e||b(t,4,this.length),0x1000000*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},h.prototype.readIntLE=function(t,e,i){t>>>=0,e>>>=0,i||b(t,e,this.length);for(var n=this[t],r=1,o=0;++o<e&&(r*=256);)n+=this[t+o]*r;return n>=(r*=128)&&(n-=Math.pow(2,8*e)),n},h.prototype.readIntBE=function(t,e,i){t>>>=0,e>>>=0,i||b(t,e,this.length);for(var n=e,r=1,o=this[t+--n];n>0&&(r*=256);)o+=this[t+--n]*r;return o>=(r*=128)&&(o-=Math.pow(2,8*e)),o},h.prototype.readInt8=function(t,e){return(t>>>=0,e||b(t,1,this.length),128&this[t])?-((255-this[t]+1)*1):this[t]},h.prototype.readInt16LE=function(t,e){t>>>=0,e||b(t,2,this.length);var i=this[t]|this[t+1]<<8;return 32768&i?0xffff0000|i:i},h.prototype.readInt16BE=function(t,e){t>>>=0,e||b(t,2,this.length);var i=this[t+1]|this[t]<<8;return 32768&i?0xffff0000|i:i},h.prototype.readInt32LE=function(t,e){return t>>>=0,e||b(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},h.prototype.readInt32BE=function(t,e){return t>>>=0,e||b(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},h.prototype.readFloatLE=function(t,e){return t>>>=0,e||b(t,4,this.length),r.read(this,t,!0,23,4)},h.prototype.readFloatBE=function(t,e){return t>>>=0,e||b(t,4,this.length),r.read(this,t,!1,23,4)},h.prototype.readDoubleLE=function(t,e){return t>>>=0,e||b(t,8,this.length),r.read(this,t,!0,52,8)},h.prototype.readDoubleBE=function(t,e){return t>>>=0,e||b(t,8,this.length),r.read(this,t,!1,52,8)},h.prototype.writeUIntLE=function(t,e,i,n){if(t*=1,e>>>=0,i>>>=0,!n){var r=Math.pow(2,8*i)-1;v(this,t,e,i,r,0)}var o=1,s=0;for(this[e]=255&t;++s<i&&(o*=256);)this[e+s]=t/o&255;return e+i},h.prototype.writeUIntBE=function(t,e,i,n){if(t*=1,e>>>=0,i>>>=0,!n){var r=Math.pow(2,8*i)-1;v(this,t,e,i,r,0)}var o=i-1,s=1;for(this[e+o]=255&t;--o>=0&&(s*=256);)this[e+o]=t/s&255;return e+i},h.prototype.writeUInt8=function(t,e,i){return t*=1,e>>>=0,i||v(this,t,e,1,255,0),this[e]=255&t,e+1},h.prototype.writeUInt16LE=function(t,e,i){return t*=1,e>>>=0,i||v(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},h.prototype.writeUInt16BE=function(t,e,i){return t*=1,e>>>=0,i||v(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},h.prototype.writeUInt32LE=function(t,e,i){return t*=1,e>>>=0,i||v(this,t,e,4,0xffffffff,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},h.prototype.writeUInt32BE=function(t,e,i){return t*=1,e>>>=0,i||v(this,t,e,4,0xffffffff,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},h.prototype.writeIntLE=function(t,e,i,n){if(t*=1,e>>>=0,!n){var r=Math.pow(2,8*i-1);v(this,t,e,i,r-1,-r)}var o=0,s=1,h=0;for(this[e]=255&t;++o<i&&(s*=256);)t<0&&0===h&&0!==this[e+o-1]&&(h=1),this[e+o]=(t/s|0)-h&255;return e+i},h.prototype.writeIntBE=function(t,e,i,n){if(t*=1,e>>>=0,!n){var r=Math.pow(2,8*i-1);v(this,t,e,i,r-1,-r)}var o=i-1,s=1,h=0;for(this[e+o]=255&t;--o>=0&&(s*=256);)t<0&&0===h&&0!==this[e+o+1]&&(h=1),this[e+o]=(t/s|0)-h&255;return e+i},h.prototype.writeInt8=function(t,e,i){return t*=1,e>>>=0,i||v(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},h.prototype.writeInt16LE=function(t,e,i){return t*=1,e>>>=0,i||v(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},h.prototype.writeInt16BE=function(t,e,i){return t*=1,e>>>=0,i||v(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},h.prototype.writeInt32LE=function(t,e,i){return t*=1,e>>>=0,i||v(this,t,e,4,0x7fffffff,-0x80000000),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},h.prototype.writeInt32BE=function(t,e,i){return t*=1,e>>>=0,i||v(this,t,e,4,0x7fffffff,-0x80000000),t<0&&(t=0xffffffff+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},h.prototype.writeFloatLE=function(t,e,i){return w(this,t,e,!0,i)},h.prototype.writeFloatBE=function(t,e,i){return w(this,t,e,!1,i)},h.prototype.writeDoubleLE=function(t,e,i){return E(this,t,e,!0,i)},h.prototype.writeDoubleBE=function(t,e,i){return E(this,t,e,!1,i)},h.prototype.copy=function(t,e,i,n){if(!h.isBuffer(t))throw TypeError("argument should be a Buffer");if(i||(i=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n<i&&(n=i),n===i||0===t.length||0===this.length)return 0;if(e<0)throw RangeError("targetStart out of bounds");if(i<0||i>=this.length)throw RangeError("Index out of range");if(n<0)throw RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e<n-i&&(n=t.length-e+i);var r=n-i;if(this===t&&"function"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(e,i,n);else if(this===t&&i<e&&e<n)for(var o=r-1;o>=0;--o)t[o+e]=this[o+i];else Uint8Array.prototype.set.call(t,this.subarray(i,n),e);return r},h.prototype.fill=function(t,e,i,n){if("string"==typeof t){if("string"==typeof e?(n=e,e=0,i=this.length):"string"==typeof i&&(n=i,i=this.length),void 0!==n&&"string"!=typeof n)throw TypeError("encoding must be a string");if("string"==typeof n&&!h.isEncoding(n))throw TypeError("Unknown encoding: "+n);if(1===t.length){var r,o=t.charCodeAt(0);("utf8"===n&&o<128||"latin1"===n)&&(t=o)}}else"number"==typeof t?t&=255:"boolean"==typeof t&&(t=Number(t));if(e<0||this.length<e||this.length<i)throw RangeError("Out of range index");if(i<=e)return this;if(e>>>=0,i=void 0===i?this.length:i>>>0,t||(t=0),"number"==typeof t)for(r=e;r<i;++r)this[r]=t;else{var s=h.isBuffer(t)?t:h.from(t,n),a=s.length;if(0===a)throw TypeError('The value "'+t+'" is invalid for argument "value"');for(r=0;r<i-e;++r)this[r+e]=s[r%a]}return this};var T=/[^+/0-9A-Za-z-_]/g;function A(t,e){e=e||1/0;for(var i,n=t.length,r=null,o=[],s=0;s<n;++s){if((i=t.charCodeAt(s))>55295&&i<57344){if(!r){if(i>56319||s+1===n){(e-=3)>-1&&o.push(239,191,189);continue}r=i;continue}if(i<56320){(e-=3)>-1&&o.push(239,191,189),r=i;continue}i=(r-55296<<10|i-56320)+65536}else r&&(e-=3)>-1&&o.push(239,191,189);if(r=null,i<128){if((e-=1)<0)break;o.push(i)}else if(i<2048){if((e-=2)<0)break;o.push(i>>6|192,63&i|128)}else if(i<65536){if((e-=3)<0)break;o.push(i>>12|224,i>>6&63|128,63&i|128)}else if(i<1114112){if((e-=4)<0)break;o.push(i>>18|240,i>>12&63|128,i>>6&63|128,63&i|128)}else throw Error("Invalid code point")}return o}function S(t){for(var e=[],i=0;i<t.length;++i)e.push(255&t.charCodeAt(i));return e}function B(t){return n.toByteArray(function(t){if((t=(t=t.split("=")[0]).trim().replace(T,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function O(t,e,i,n){for(var r=0;r<n&&!(r+i>=e.length)&&!(r>=t.length);++r)e[r+i]=t[r];return r}function j(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}var M=function(){for(var t="0123456789abcdef",e=Array(256),i=0;i<16;++i)for(var n=16*i,r=0;r<16;++r)e[n+r]=t[i]+t[r];return e}()},783:function(t,e){e.read=function(t,e,i,n,r){var o,s,h=8*r-n-1,a=(1<<h)-1,f=a>>1,u=-7,c=i?r-1:0,l=i?-1:1,_=t[e+c];for(c+=l,o=_&(1<<-u)-1,_>>=-u,u+=h;u>0;o=256*o+t[e+c],c+=l,u-=8);for(s=o&(1<<-u)-1,o>>=-u,u+=n;u>0;s=256*s+t[e+c],c+=l,u-=8);if(0===o)o=1-f;else{if(o===a)return s?NaN:1/0*(_?-1:1);s+=Math.pow(2,n),o-=f}return(_?-1:1)*s*Math.pow(2,o-n)},e.write=function(t,e,i,n,r,o){var s,h,a,f=8*o-r-1,u=(1<<f)-1,c=u>>1,l=5960464477539062e-23*(23===r),_=n?0:o-1,p=n?1:-1,y=+(e<0||0===e&&1/e<0);for(isNaN(e=Math.abs(e))||e===1/0?(h=+!!isNaN(e),s=u):(s=Math.floor(Math.log(e)/Math.LN2),e*(a=Math.pow(2,-s))<1&&(s--,a*=2),s+c>=1?e+=l/a:e+=l*Math.pow(2,1-c),e*a>=2&&(s++,a/=2),s+c>=u?(h=0,s=u):s+c>=1?(h=(e*a-1)*Math.pow(2,r),s+=c):(h=e*Math.pow(2,c-1)*Math.pow(2,r),s=0));r>=8;t[i+_]=255&h,_+=p,h/=256,r-=8);for(s=s<<r|h,f+=r;f>0;t[i+_]=255&s,_+=p,s/=256,f-=8);t[i+_-p]|=128*y}}},r={};function o(t){var e=r[t];if(void 0!==e)return e.exports;var i=r[t]={exports:{}},s=!0;try{n[t](i,i.exports,o),s=!1}finally{s&&delete r[t]}return i.exports}o.ab="/ROOT/node_modules/next/dist/compiled/buffer/",e.exports=o(72)},669587,600104,872200,722914,826157,693158,48114,851262,363823,992536,226619,381142,700357,163018,342919,991085,885812,568482,532780,338489,t=>{"use strict";var e,i=t.i(908381),n=t.i(171206),r=t.i(139941);function o(t,e,i){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+i)/6)}function s(t){this._context=t}function h(t){return new s(t)}function a(){}function f(t){this._context=t}function u(t){this._context=t}t.i(947716),s.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:o(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t*=1,e*=1,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:o(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},t.s(["curveBasis",0,h],600104),f.prototype={areaStart:a,areaEnd:a,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(t,e){switch(t*=1,e*=1,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:o(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},u.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t*=1,e*=1,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var i=(this._x0+4*this._x1+t)/6,n=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(i,n):this._context.moveTo(i,n);break;case 3:this._point=4;default:o(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};class c{constructor(t,e){this._context=t,this._x=e}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(t,e){switch(t*=1,e*=1,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,e,t,e):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+e)/2,t,this._y0,t,e)}this._x0=t,this._y0=e}}function l(t){return new c(t,!0)}function _(t){return new c(t,!1)}function p(t,e){this._basis=new s(t),this._beta=e}t.s(["curveBumpX",0,l],872200),t.s(["curveBumpY",0,_],722914),p.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,e=this._y,i=t.length-1;if(i>0)for(var n,r=t[0],o=e[0],s=t[i]-r,h=e[i]-o,a=-1;++a<=i;)n=a/i,this._basis.point(this._beta*t[a]+(1-this._beta)*(r+n*s),this._beta*e[a]+(1-this._beta)*(o+n*h));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};let y=function t(e){function i(t){return 1===e?new s(t):new p(t,e)}return i.beta=function(e){return t(+e)},i}(.85);function g(t,e,i){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-i),t._x2,t._y2)}function x(t,e){this._context=t,this._k=(1-e)/6}x.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:g(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t*=1,e*=1,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:g(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};let d=function t(e){function i(t){return new x(t,e)}return i.tension=function(e){return t(+e)},i}(0);function b(t,e){this._context=t,this._k=(1-e)/6}b.prototype={areaStart:a,areaEnd:a,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){switch(t*=1,e*=1,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:g(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};let v=function t(e){function i(t){return new b(t,e)}return i.tension=function(e){return t(+e)},i}(0);function m(t,e){this._context=t,this._k=(1-e)/6}m.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t*=1,e*=1,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:g(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};let w=function t(e){function i(t){return new m(t,e)}return i.tension=function(e){return t(+e)},i}(0);t.s(["curveCardinal",0,d],826157);var E=t.i(810199);function T(t,e,i){var n=t._x1,r=t._y1,o=t._x2,s=t._y2;if(t._l01_a>E.epsilon){var h=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,a=3*t._l01_a*(t._l01_a+t._l12_a);n=(n*h-t._x0*t._l12_2a+t._x2*t._l01_2a)/a,r=(r*h-t._y0*t._l12_2a+t._y2*t._l01_2a)/a}if(t._l23_a>E.epsilon){var f=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,u=3*t._l23_a*(t._l23_a+t._l12_a);o=(o*f+t._x1*t._l23_2a-e*t._l12_2a)/u,s=(s*f+t._y1*t._l23_2a-i*t._l12_2a)/u}t._context.bezierCurveTo(n,r,o,s,t._x2,t._y2)}function A(t,e){this._context=t,this._alpha=e}A.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t*=1,e*=1,this._point){var i=this._x2-t,n=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(i*i+n*n,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:T(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};let S=function t(e){function i(t){return e?new A(t,e):new x(t,0)}return i.alpha=function(e){return t(+e)},i}(.5);function B(t,e){this._context=t,this._alpha=e}B.prototype={areaStart:a,areaEnd:a,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){if(t*=1,e*=1,this._point){var i=this._x2-t,n=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(i*i+n*n,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:T(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};let O=function t(e){function i(t){return e?new B(t,e):new b(t,0)}return i.alpha=function(e){return t(+e)},i}(.5);function j(t,e){this._context=t,this._alpha=e}j.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t*=1,e*=1,this._point){var i=this._x2-t,n=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(i*i+n*n,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:T(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};let M=function t(e){function i(t){return e?new j(t,e):new m(t,0)}return i.alpha=function(e){return t(+e)},i}(.5);function N(t){this._context=t}function k(t){return new N(t)}function C(t){this._context=t}t.s(["curveCatmullRom",0,S],693158),N.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t*=1,e*=1,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e)}}},t.s(["default",0,k],48114),t.s(["curveLinear",0,k],851262),C.prototype={areaStart:a,areaEnd:a,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t*=1,e*=1,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}};function I(t,e,i){var n=t._x1-t._x0,r=e-t._x1,o=(t._y1-t._y0)/(n||r<0&&-0),s=(i-t._y1)/(r||n<0&&-0);return((o<0?-1:1)+(s<0?-1:1))*Math.min(Math.abs(o),Math.abs(s),.5*Math.abs((o*r+s*n)/(n+r)))||0}function P(t,e){var i=t._x1-t._x0;return i?(3*(t._y1-t._y0)/i-e)/2:e}function U(t,e,i){var n=t._x0,r=t._y0,o=t._x1,s=t._y1,h=(o-n)/3;t._context.bezierCurveTo(n+h,r+h*e,o-h,s-h*i,o,s)}function R(t){this._context=t}function L(t){this._context=new $(t)}function $(t){this._context=t}function D(t){return new R(t)}function z(t){return new L(t)}function F(t){this._context=t}function W(t){var e,i,n=t.length-1,r=Array(n),o=Array(n),s=Array(n);for(r[0]=0,o[0]=2,s[0]=t[0]+2*t[1],e=1;e<n-1;++e)r[e]=1,o[e]=4,s[e]=4*t[e]+2*t[e+1];for(r[n-1]=2,o[n-1]=7,s[n-1]=8*t[n-1]+t[n],e=1;e<n;++e)i=r[e]/o[e-1],o[e]-=i,s[e]-=i*s[e-1];for(r[n-1]=s[n-1]/o[n-1],e=n-2;e>=0;--e)r[e]=(s[e]-r[e+1])/o[e];for(e=0,o[n-1]=(t[n]+r[n-1])/2;e<n-1;++e)o[e]=2*t[e+1]-r[e+1];return[r,o]}function H(t){return new F(t)}function Y(t,e){this._context=t,this._t=e}function V(t){return new Y(t,.5)}function q(t){return new Y(t,0)}function X(t){return new Y(t,1)}R.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:U(this,this._t0,P(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var i=NaN;if(e*=1,(t*=1)!==this._x1||e!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,U(this,P(this,i=I(this,t,e)),i);break;default:U(this,this._t0,i=I(this,t,e))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=i}}},(L.prototype=Object.create(R.prototype)).point=function(t,e){R.prototype.point.call(this,e,t)},$.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,i,n,r,o){this._context.bezierCurveTo(e,t,n,i,o,r)}},t.s(["curveMonotoneX",0,D],363823),t.s(["curveMonotoneY",0,z],992536),F.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,e=this._y,i=t.length;if(i)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),2===i)this._context.lineTo(t[1],e[1]);else for(var n=W(t),r=W(e),o=0,s=1;s<i;++o,++s)this._context.bezierCurveTo(n[0][o],r[0][o],n[1][o],r[1][o],t[s],e[s]);(this._line||0!==this._line&&1===i)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,e){this._x.push(+t),this._y.push(+e)}},t.s(["curveNatural",0,H],226619),Y.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t*=1,e*=1,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var i=this._x*(1-this._t)+t*this._t;this._context.lineTo(i,this._y),this._context.lineTo(i,e)}}this._x=t,this._y=e}},t.s(["curveStep",0,V],381142),t.s(["curveStepAfter",0,X],700357),t.s(["curveStepBefore",0,q],163018);var J=t.i(723685);function K(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw TypeError("Expected a function");let i=function(...n){let r=e?e.apply(this,n):n[0],o=i.cache;if(o.has(r))return o.get(r);let s=t.apply(this,n);return i.cache=o.set(r,s)||o,s};return i.cache=new(K.Cache||Map),i}K.Cache=Map;var Z=t.i(467034);function G(t){return Object.getOwnPropertySymbols(t).filter(e=>Object.prototype.propertyIsEnumerable.call(t,e))}function Q(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":Object.prototype.toString.call(t)}t.s(["getTag",0,Q],342919);let tt="[object RegExp]",te="[object String]",ti="[object Number]",tn="[object Boolean]",tr="[object Arguments]",to="[object Symbol]",ts="[object Date]",th="[object Map]",ta="[object Set]",tf="[object Array]",tu="[object ArrayBuffer]",tc="[object Object]",tl="[object DataView]",t_="[object Uint8Array]",tp="[object Uint8ClampedArray]",ty="[object Uint16Array]",tg="[object Uint32Array]",tx="[object Int8Array]",td="[object Int16Array]",tb="[object Int32Array]",tv="[object Float32Array]",tm="[object Float64Array]";function tw(t){return null==t||"object"!=typeof t&&"function"!=typeof t}function tE(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}function tT(t,e,i,n=new Map,r){let o=r?.(t,e,i,n);if(void 0!==o)return o;if(tw(t))return t;if(n.has(t))return n.get(t);if(Array.isArray(t)){let e=Array(t.length);n.set(t,e);for(let o=0;o<t.length;o++)e[o]=tT(t[o],o,i,n,r);return Object.hasOwn(t,"index")&&(e.index=t.index),Object.hasOwn(t,"input")&&(e.input=t.input),e}if(t instanceof Date)return new Date(t.getTime());if(t instanceof RegExp){let e=new RegExp(t.source,t.flags);return e.lastIndex=t.lastIndex,e}if(t instanceof Map){let e=new Map;for(let[o,s]of(n.set(t,e),t))e.set(o,tT(s,o,i,n,r));return e}if(t instanceof Set){let e=new Set;for(let o of(n.set(t,e),t))e.add(tT(o,void 0,i,n,r));return e}if(void 0!==Z.Buffer&&Z.Buffer.isBuffer(t))return t.subarray();if(tE(t)){let e=new(Object.getPrototypeOf(t)).constructor(t.length);n.set(t,e);for(let o=0;o<t.length;o++)e[o]=tT(t[o],o,i,n,r);return e}if(t instanceof ArrayBuffer||"u">typeof SharedArrayBuffer&&t instanceof SharedArrayBuffer)return t.slice(0);if(t instanceof DataView){let e=new DataView(t.buffer.slice(0),t.byteOffset,t.byteLength);return n.set(t,e),tA(e,t,i,n,r),e}if("u">typeof File&&t instanceof File){let e=new File([t],t.name,{type:t.type});return n.set(t,e),tA(e,t,i,n,r),e}if("u">typeof Blob&&t instanceof Blob){let e=new Blob([t],{type:t.type});return n.set(t,e),tA(e,t,i,n,r),e}if(t instanceof Error){let e=structuredClone(t);return n.set(t,e),e.message=t.message,e.name=t.name,e.stack=t.stack,e.cause=t.cause,e.constructor=t.constructor,tA(e,t,i,n,r),e}if(t instanceof Boolean){let e=new Boolean(t.valueOf());return n.set(t,e),tA(e,t,i,n,r),e}if(t instanceof Number){let e=new Number(t.valueOf());return n.set(t,e),tA(e,t,i,n,r),e}if(t instanceof String){let e=new String(t.valueOf());return n.set(t,e),tA(e,t,i,n,r),e}if("object"==typeof t&&function(t){switch(Q(t)){case tr:case tf:case tu:case tl:case tn:case ts:case tv:case tm:case tx:case td:case tb:case th:case ti:case tc:case tt:case ta:case te:case to:case t_:case tp:case ty:case tg:return!0;default:return!1}}(t)){let e=Object.create(Object.getPrototypeOf(t));return n.set(t,e),tA(e,t,i,n,r),e}return t}function tA(t,e,i=t,n,r){let o=[...Object.keys(e),...G(e)];for(let s=0;s<o.length;s++){let h=o[s],a=Object.getOwnPropertyDescriptor(t,h);(null==a||a.writable)&&(t[h]=tT(e[h],h,i,n,r))}}function tS(t){var e;return e=(e,i,n,r)=>{let o;if(void 0!==o)return o;if("object"==typeof t){if(Q(t)===tc&&"function"!=typeof t.constructor){let e={};return r.set(t,e),tA(e,t,n,r),e}switch(Object.prototype.toString.call(t)){case ti:case te:case tn:{let e=new t.constructor(t?.valueOf());return tA(e,t),e}case tr:{let e={};return tA(e,t),e.length=t.length,e[Symbol.iterator]=t[Symbol.iterator],e}default:return}}},tT(t,void 0,t,new Map,e)}function tB(t){return null!==t&&"object"==typeof t&&"[object Arguments]"===Q(t)}function tO(t){var e;return null!=t&&"function"!=typeof t&&Number.isSafeInteger(e=t.length)&&e>=0}function tj(t){return"object"==typeof t&&null!==t}function tM(t){if("object"!=typeof t||null==t)return!1;if(null===Object.getPrototypeOf(t))return!0;if("[object Object]"!==Object.prototype.toString.call(t)){let e=t[Symbol.toStringTag];return null!=e&&!!Object.getOwnPropertyDescriptor(t,Symbol.toStringTag)?.writable&&t.toString()===`[object ${e}]`}let e=t;for(;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function tN(t){return tE(t)}function tk(){}t.s(["argumentsTag",0,tr,"arrayBufferTag",0,tu,"arrayTag",0,tf,"booleanTag",0,tn,"dataViewTag",0,tl,"dateTag",0,ts,"float32ArrayTag",0,tv,"float64ArrayTag",0,tm,"int16ArrayTag",0,td,"int32ArrayTag",0,tb,"int8ArrayTag",0,tx,"mapTag",0,th,"numberTag",0,ti,"objectTag",0,tc,"regexpTag",0,tt,"setTag",0,ta,"stringTag",0,te,"symbolTag",0,to,"uint16ArrayTag",0,ty,"uint32ArrayTag",0,tg,"uint8ArrayTag",0,t_,"uint8ClampedArrayTag",0,tp],991085),t.s(["isPrimitive",0,tw],885812),t.s(["isArguments",0,tB],568482),t.s(["isArrayLike",0,tO],532780),t.s(["isTypedArray",0,tN],338489);var tC={curveBasis:h,curveBasisClosed:function(t){return new f(t)},curveBasisOpen:function(t){return new u(t)},curveBumpX:l,curveBumpY:_,curveBundle:y,curveCardinalClosed:v,curveCardinalOpen:w,curveCardinal:d,curveCatmullRomClosed:O,curveCatmullRomOpen:M,curveCatmullRom:S,curveLinear:k,curveLinearClosed:function(t){return new C(t)},curveMonotoneX:D,curveMonotoneY:z,curveNatural:H,curveStep:V,curveStepAfter:X,curveStepBefore:q},tI=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,tP=(0,n.__name)(function(t,e){let n=tU(t,/(?:init\b)|(?:initialize\b)/),r={};if(Array.isArray(n)){let t=n.map(t=>t.args);(0,i.sanitizeDirective)(t),r=(0,i.assignWithDepth_default)(r,[...t])}else r=n.args;if(!r)return;let o=(0,i.detectType)(t,e),s="config";return void 0!==r[s]&&("flowchart-v2"===o&&(o="flowchart"),r[o]=r[s],delete r[s]),r},"detectInit"),tU=(0,n.__name)(function(t,e=null){try{let r,o=RegExp(`[%]{2}(?![{]${tI.source})(?=[}][%]{2}).*
2
+ `,"ig");t=t.trim().replace(o,"").replace(/'/gm,'"'),n.log.debug(`Detecting diagram directive${null!==e?" type:"+e:""} based on the text:${t}`);let s=[];for(;null!==(r=i.directiveRegex.exec(t));)if(r.index===i.directiveRegex.lastIndex&&i.directiveRegex.lastIndex++,r&&!e||e&&r[1]?.match(e)||e&&r[2]?.match(e)){let t=r[1]?r[1]:r[2],e=r[3]?r[3].trim():r[4]?JSON.parse(r[4].trim()):null;s.push({type:t,args:e})}if(0===s.length)return{type:t,args:null};return 1===s.length?s[0]:s}catch(i){return n.log.error(`ERROR: ${i.message} - Unable to parse directive type: '${e}' based on the text: '${t}'`),{type:void 0,args:null}}},"detectDirective"),tR=(0,n.__name)(function(t){return t.replace(i.directiveRegex,"")},"removeDirectives"),tL=(0,n.__name)(function(t,e){for(let[i,n]of e.entries())if(n.match(t))return i;return -1},"isSubstringInArray");function t$(t,e){return t?tC[`curve${t.charAt(0).toUpperCase()+t.slice(1)}`]??e:e}function tD(t,e){let i=t.trim();if(i)return"loose"!==e.securityLevel?(0,r.sanitizeUrl)(i):i}(0,n.__name)(t$,"interpolateToCurve"),(0,n.__name)(tD,"formatUrl");var tz=(0,n.__name)((t,...e)=>{let i=t.split("."),r=i.length-1,o=i[r],s=window;for(let e=0;e<r;e++)if(!(s=s[i[e]]))return void n.log.error(`Function name: ${t} not found in window`);s[o](...e)},"runFunc");function tF(t,e){return t&&e?Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2)):0}function tW(t){let e,i=0;return t.forEach(t=>{i+=tF(t,e),e=t}),tV(t,i/2)}function tH(t){return 1===t.length?t[0]:tW(t)}(0,n.__name)(tF,"distance"),(0,n.__name)(tW,"traverseEdge"),(0,n.__name)(tH,"calcLabelPosition");var tY=(0,n.__name)((t,e=2)=>{let i=Math.pow(10,e);return Math.round(t*i)/i},"roundNumber"),tV=(0,n.__name)((t,e)=>{let i,n=e;for(let e of t){if(i){let t=tF(e,i);if(0===t)return i;if(t<n)n-=t;else{let r=n/t;if(r<=0)return i;if(r>=1)return{x:e.x,y:e.y};if(r>0&&r<1)return{x:tY((1-r)*i.x+r*e.x,5),y:tY((1-r)*i.y+r*e.y,5)}}}i=e}throw Error("Could not find a suitable point for the given distance")},"calculatePoint"),tq=(0,n.__name)((t,e,i)=>{n.log.info(`our points ${JSON.stringify(e)}`),e[0]!==i&&(e=e.reverse());let r=tV(e,25),o=t?10:5,s=Math.atan2(e[0].y-r.y,e[0].x-r.x),h={x:0,y:0};return h.x=Math.sin(s)*o+(e[0].x+r.x)/2,h.y=-Math.cos(s)*o+(e[0].y+r.y)/2,h},"calcCardinalityPosition");function tX(t,e,i){let r=structuredClone(i);n.log.info("our points",r),"start_left"!==e&&"start_right"!==e&&r.reverse();let o=tV(r,25+t),s=10+.5*t,h=Math.atan2(r[0].y-o.y,r[0].x-o.x),a={x:0,y:0};return"start_left"===e?(a.x=Math.sin(h+Math.PI)*s+(r[0].x+o.x)/2,a.y=-Math.cos(h+Math.PI)*s+(r[0].y+o.y)/2):"end_right"===e?(a.x=Math.sin(h-Math.PI)*s+(r[0].x+o.x)/2-5,a.y=-Math.cos(h-Math.PI)*s+(r[0].y+o.y)/2-5):"end_left"===e?(a.x=Math.sin(h)*s+(r[0].x+o.x)/2-5,a.y=-Math.cos(h)*s+(r[0].y+o.y)/2-5):(a.x=Math.sin(h)*s+(r[0].x+o.x)/2,a.y=-Math.cos(h)*s+(r[0].y+o.y)/2),a}function tJ(t){let e="",i="";for(let n of t)void 0!==n&&(n.startsWith("color:")||n.startsWith("text-align:")?i=i+n+";":e=e+n+";");return{style:e,labelStyle:i}}(0,n.__name)(tX,"calcTerminalLabelPosition"),(0,n.__name)(tJ,"getStylesFromArray");var tK=0,tZ=(0,n.__name)(()=>(tK++,"id-"+Math.random().toString(36).substr(2,12)+"-"+tK),"generateId");function tG(t){let e="",i="0123456789abcdef",n=i.length;for(let r=0;r<t;r++)e+=i.charAt(Math.floor(Math.random()*n));return e}(0,n.__name)(tG,"makeRandomHex");var tQ=(0,n.__name)(t=>tG(t.length),"random"),t0=(0,n.__name)(function(){return{x:0,y:0,fill:void 0,anchor:"start",style:"#666",width:100,height:100,textMargin:0,rx:0,ry:0,valign:void 0,text:""}},"getTextObj"),t1=(0,n.__name)(function(t,e){let n=e.text.replace(i.common_default.lineBreakRegex," "),[,r]=ee(e.fontSize),o=t.append("text");o.attr("x",e.x),o.attr("y",e.y),o.style("text-anchor",e.anchor),o.style("font-family",e.fontFamily),o.style("font-size",r),o.style("font-weight",e.fontWeight),o.attr("fill",e.fill),void 0!==e.class&&o.attr("class",e.class);let s=o.append("tspan");return s.attr("x",e.x+2*e.textMargin),s.attr("fill",e.fill),s.text(n),o},"drawSimpleText"),t2=K((t,e,n)=>{if(!t||(n=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"<br/>"},n),i.common_default.lineBreakRegex.test(t)))return t;let r=t.split(" ").filter(Boolean),o=[],s="";return r.forEach((t,i)=>{let h=t8(`${t} `,n),a=t8(s,n);if(h>e){let{hyphenatedStrings:i,remainingWord:r}=t3(t,e,"-",n);o.push(s,...i),s=r}else a+h>=e?(o.push(s),s=t):s=[s,t].filter(Boolean).join(" ");i+1===r.length&&o.push(s)}),o.filter(t=>""!==t).join(n.joinWith)},(t,e,i)=>`${t}${e}${i.fontSize}${i.fontWeight}${i.fontFamily}${i.joinWith}`),t3=K((t,e,i="-",n)=>{n=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},n);let r=[...t],o=[],s="";return r.forEach((t,h)=>{let a=`${s}${t}`;if(t8(a,n)>=e){let t=r.length===h+1,e=`${a}${i}`;o.push(t?a:e),s=""}else s=a}),{hyphenatedStrings:o,remainingWord:s}},(t,e,i="-",n)=>`${t}${e}${i}${n.fontSize}${n.fontWeight}${n.fontFamily}`);function t5(t,e){return t6(t,e).height}function t8(t,e){return t6(t,e).width}(0,n.__name)(t5,"calculateTextHeight"),(0,n.__name)(t8,"calculateTextWidth");var t6=K((t,e)=>{let{fontSize:n=12,fontFamily:r="Arial",fontWeight:o=400}=e;if(!t)return{width:0,height:0};let[,s]=ee(n),h=t.split(i.common_default.lineBreakRegex),a=[],f=(0,J.select)("body");if(!f.remove)return{width:0,height:0,lineHeight:0};let u=f.append("svg");for(let t of["sans-serif",r]){let e=0,i={width:0,height:0,lineHeight:0};for(let n of h){let r=t0();r.text=n||"​";let h=t1(u,r).style("font-size",s).style("font-weight",o).style("font-family",t),a=(h._groups||h)[0][0].getBBox();if(0===a.width&&0===a.height)throw Error("svg element not in render tree");i.width=Math.round(Math.max(i.width,a.width)),e=Math.round(a.height),i.height+=e,i.lineHeight=Math.round(Math.max(i.lineHeight,e))}a.push(i)}u.remove();let c=isNaN(a[1].height)||isNaN(a[1].width)||isNaN(a[1].lineHeight)||a[0].height>a[1].height&&a[0].width>a[1].width&&a[0].lineHeight>a[1].lineHeight?0:1;return a[c]},(t,e)=>`${t}${e.fontSize}${e.fontWeight}${e.fontFamily}`),t4=class{constructor(t=!1,e){this.count=0,this.count=e?e.length:0,this.next=t?()=>this.count++:()=>Date.now()}static{(0,n.__name)(this,"InitIDGenerator")}},t9=(0,n.__name)(function(t){return e=e||document.createElement("div"),t=escape(t).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),e.innerHTML=t,unescape(e.textContent)},"entityDecode");function t7(t){return"str"in t}(0,n.__name)(t7,"isDetailedError");var et=(0,n.__name)((t,e,i,n)=>{if(!n)return;let r=t.node()?.getBBox();r&&t.append("text").text(n).attr("text-anchor","middle").attr("x",r.x+r.width/2).attr("y",-i).attr("class",e)},"insertTitle"),ee=(0,n.__name)(t=>{if("number"==typeof t)return[t,t+"px"];let e=parseInt(t??"",10);return Number.isNaN(e)?[void 0,void 0]:t===String(e)?[e,t+"px"]:[e,t]},"parseFontSize");function ei(t,e){return function(t,...e){return function(t,...e){let i=e.slice(0,-1),n=e[e.length-1],r=t;for(let t=0;t<i.length;t++)r=function t(e,i,n,r){if(tw(e)&&(e=Object(e)),null==i||"object"!=typeof i)return e;if(r.has(i))return function(t){if(tw(t))return t;if(Array.isArray(t)||tE(t)||t instanceof ArrayBuffer||"u">typeof SharedArrayBuffer&&t instanceof SharedArrayBuffer)return t.slice(0);let e=Object.getPrototypeOf(t);if(null==e)return Object.assign(Object.create(e),t);let i=e.constructor;if(t instanceof Date||t instanceof Map||t instanceof Set)return new i(t);if(t instanceof RegExp){let e=new i(t);return e.lastIndex=t.lastIndex,e}if(t instanceof DataView)return new i(t.buffer.slice(0));if(t instanceof Error){let e;return(e=t instanceof AggregateError?new i(t.errors,t.message,{cause:t.cause}):new i(t.message,{cause:t.cause})).stack=t.stack,Object.assign(e,t),e}return"u">typeof File&&t instanceof File?new i([t],t.name,{type:t.type,lastModified:t.lastModified}):"object"==typeof t?Object.assign(Object.create(e),t):t}(r.get(i));if(r.set(i,e),Array.isArray(i)){i=i.slice();for(let t=0;t<i.length;t++)i[t]=i[t]??void 0}let o=[...Object.keys(i),...G(i)];for(let h=0;h<o.length;h++){let a=o[h];if("__proto__"===a)continue;let f=i[a],u=e[a];if(tB(f)&&(f={...f}),tB(u)&&(u={...u}),void 0!==Z.Buffer&&Z.Buffer.isBuffer(f)&&(f=tS(f)),Array.isArray(f))if(Array.isArray(u)){let t=[],e=Reflect.ownKeys(u);for(let i=0;i<e.length;i++){let n=e[i];t[n]=u[n]}u=t}else{var s;if(tj(s=u)&&tO(s)){let t=[];for(let e=0;e<u.length;e++)t[e]=u[e];u=t}else u=[]}let c=n(u,f,a,e,i,r);void 0!==c?e[a]=c:Array.isArray(f)||tj(u)&&tj(f)&&(tM(u)||tM(f)||tN(u)||tN(f))?e[a]=t(u,f,n,r):null==u&&tM(f)?e[a]=t({},f,n,r):null==u&&tN(f)?e[a]=tS(f):(void 0===u||void 0!==f)&&(e[a]=f)}return e}(r,i[t],n,new Map);return r}(t,...e,tk)}({},t,e)}(0,n.__name)(ei,"cleanAndMerge");var en={assignWithDepth:i.assignWithDepth_default,wrapLabel:t2,calculateTextHeight:t5,calculateTextWidth:t8,calculateTextDimensions:t6,cleanAndMerge:ei,detectInit:tP,detectDirective:tU,isSubstringInArray:tL,interpolateToCurve:t$,calcLabelPosition:tH,calcCardinalityPosition:tq,calcTerminalLabelPosition:tX,formatUrl:tD,getStylesFromArray:tJ,generateId:tZ,random:tQ,runFunc:tz,entityDecode:t9,insertTitle:et,isLabelCoordinateInPath:ea,parseFontSize:ee,InitIDGenerator:t4},er=(0,n.__name)(function(t){let e=t;return(e=(e=e.replace(/style.*:\S*#.*;/g,function(t){return t.substring(0,t.length-1)})).replace(/classDef.*:\S*#.*;/g,function(t){return t.substring(0,t.length-1)})).replace(/#\w+;/g,function(t){let e=t.substring(1,t.length-1);return/^\+?\d+$/.test(e)?"fl°°"+e+"¶ß":"fl°"+e+"¶ß"})},"encodeEntities"),eo=(0,n.__name)(function(t){return t.replace(/fl°°/g,"&#").replace(/fl°/g,"&").replace(/¶ß/g,";")},"decodeEntities"),es=(0,n.__name)((t,e,{counter:i=0,prefix:n,suffix:r},o)=>o||`${n?`${n}_`:""}${t}_${e}_${i}${r?`_${r}`:""}`,"getEdgeId");function eh(t){return t??null}function ea(t,e){let i=Math.round(t.x),n=Math.round(t.y),r=e.replace(/(\d+\.\d+)/g,t=>Math.round(parseFloat(t)).toString());return r.includes(i.toString())||r.includes(n.toString())}(0,n.__name)(eh,"handleUndefinedAttr"),(0,n.__name)(ea,"isLabelCoordinateInPath"),t.s(["ZERO_WIDTH_SPACE",0,"​","calculateTextDimensions",0,t6,"calculateTextHeight",0,t5,"calculateTextWidth",0,t8,"cleanAndMerge",0,ei,"decodeEntities",0,eo,"encodeEntities",0,er,"generateId",0,tZ,"getEdgeId",0,es,"getStylesFromArray",0,tJ,"handleUndefinedAttr",0,eh,"interpolateToCurve",0,t$,"isDetailedError",0,t7,"parseFontSize",0,ee,"random",0,tQ,"removeDirectives",0,tR,"utils_default",0,en,"wrapLabel",0,t2],669587)}]);
@@ -0,0 +1,34 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,630983,e=>{"use strict";var t=e.i(843476),s=e.i(893976);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)("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(["CloudFeatureNotice",0,function({children:e,className:r}){return(0,t.jsxs)("div",{role:"status",className:(0,s.cn)("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",r),children:[(0,t.jsx)(a,{className:"stg:mt-0.5 stg:size-4 stg:shrink-0"}),(0,t.jsx)("p",{className:"stg:text-xs stg:leading-relaxed",children:e})]})}])},543727,914118,582688,e=>{"use strict";var t=e.i(843476);function s({className:e}){return(0,t.jsx)("svg",{className:e,viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",children:(0,t.jsx)("path",{d:"M5.04 15.17a2.52 2.52 0 1 1-2.52-2.52h2.52v2.52zM6.31 15.17a2.52 2.52 0 0 1 5.04 0v6.31a2.52 2.52 0 1 1-5.04 0v-6.31zM8.83 5.04a2.52 2.52 0 1 1 2.52-2.52v2.52H8.83zM8.83 6.31a2.52 2.52 0 0 1 0 5.04H2.52a2.52 2.52 0 1 1 0-5.04h6.31zM18.96 8.83a2.52 2.52 0 1 1 2.52 2.52h-2.52V8.83zM17.69 8.83a2.52 2.52 0 0 1-5.04 0V2.52a2.52 2.52 0 1 1 5.04 0v6.31zM15.17 18.96a2.52 2.52 0 1 1-2.52 2.52v-2.52h2.52zM15.17 17.69a2.52 2.52 0 0 1 0-5.04h6.31a2.52 2.52 0 1 1 0 5.04h-6.31z"})})}function a({className:e}){return(0,t.jsx)("svg",{className:e,viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",children:(0,t.jsx)("path",{d:"M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 0 1-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 0 1-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 0 1 2.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0 0 12.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 0 0 5.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 0 0-3.48-8.413Z"})})}e.s(["SlackMarkIcon",0,s],914118),e.s(["WhatsAppMarkIcon",0,a],582688);let r=[{id:"slack",label:"Slack",Icon:s,installStyle:"redirect",supportsMessageTemplates:!1,supportsStaffReplies:!1,timelineIncludesCustomerMessages:!1},{id:"whatsapp",label:"WhatsApp",Icon:a,installStyle:"direct",supportsMessageTemplates:!0,supportsStaffReplies:!0,timelineIncludesCustomerMessages:!0}];e.s(["CHANNEL_PROVIDERS",0,r,"channelProviderOf",0,function(e){return r.find(t=>t.id===e)??null}],543727)},699187,e=>{"use strict";var t=e.i(891287),s=e.i(109623),a=e.i(586108),r=e.i(583093);e.s(["useChannelAppList",0,function(e){let n=(0,a.useStigmer)(),{data:i,isLoading:l,isRefetching:o,error:c,refetch:d}=(0,r.useFetch)(e?()=>n.channelapp.listByOrg((0,t.create)(s.ListChannelAppsByOrgInputSchema,{org:e})).then(e=>[...e.entries]):null,[e,n],[]);return{channelApps:i,isLoading:l,isRefetching:o,error:c,refetch:d}}])},507768,e=>{"use strict";var t=e.i(843476),s=e.i(271645),a=e.i(893976),r=e.i(610595),n=e.i(17616),i=e.i(543727),l=e.i(699187);function o({org:e,onEdit:s,onRefetchRef:n,className:i}){let{channelApps:d,isLoading:g,error:p,refetch:u}=(0,l.useChannelAppList)(e);return(n&&n(u),g)?(0,t.jsx)("div",{className:(0,a.cn)("stg:space-y-2",i),"aria-busy":"true","aria-label":"Loading channel apps",children:Array.from({length:2},(e,s)=>(0,t.jsx)("div",{className:"stg:bg-muted-subtle stg:h-14 stg:animate-pulse stg:rounded-lg"},s))}):p?(0,t.jsx)("p",{className:(0,a.cn)("stg:text-destructive stg:text-xs",i),role:"alert",children:(0,r.getUserMessage)(p)}):0===d.length?(0,t.jsx)("p",{className:(0,a.cn)("stg:text-muted-foreground stg:py-4 stg:text-center stg:text-xs",i),children:"No channel apps registered yet."}):(0,t.jsx)("div",{className:(0,a.cn)("stg:space-y-2",i),role:"list","aria-label":"Channel apps",children:d.map(e=>(0,t.jsx)(c,{channelApp:e,onEdit:s?()=>s(e):void 0},e.metadata?.id??""))})}function c({channelApp:e,onEdit:s}){let r=e.metadata?.name??"",l=e.spec?.providerConfig?.case,o=(0,i.channelProviderOf)(l),g=e.spec?.providerConfig?.case==="slack"?e.spec.providerConfig.value.clientId:e.spec?.providerConfig?.case==="whatsapp"?e.spec.providerConfig.value.appId:void 0,p=e.status?.audit?.specAudit?.createdAt;return(0,t.jsxs)("div",{role:"listitem",className:(0,a.cn)("stg:border-border stg:bg-card stg:flex stg:items-center stg:gap-3 stg:rounded-lg stg:border stg:px-3 stg:py-2.5"),children:[(0,t.jsxs)("div",{className:"stg:min-w-0 stg:flex-1",children:[(0,t.jsxs)("div",{className:"stg:flex stg:items-baseline stg:gap-2",children:[(0,t.jsx)("span",{className:"stg:truncate stg:text-xs stg:font-medium stg:text-foreground",children:r}),(0,t.jsx)("span",{className:"stg:text-[0.65rem] stg:text-muted-foreground",children:o?.label??l??""})]}),(0,t.jsxs)("div",{className:"stg:flex stg:items-baseline stg:gap-2",children:[g&&(0,t.jsx)("span",{className:"stg:truncate stg:font-mono stg:text-[0.65rem] stg:text-muted-foreground",children:g}),p&&(0,t.jsx)("span",{className:"stg:shrink-0 stg:text-[0.65rem] stg:text-muted-foreground",children:(0,n.timestampDate)(p).toLocaleDateString()})]})]}),s&&(0,t.jsx)("button",{type:"button",onClick:s,"aria-label":`Edit ${r}`,className:(0,a.cn)("stg:text-muted-foreground stg:hover:text-foreground stg:hover:bg-accent-hover","stg:shrink-0 stg:rounded-md stg:p-1.5 stg:transition-colors"),children:(0,t.jsx)(d,{})})]})}function d(){return(0,t.jsx)("svg",{width:"12",height:"12",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 2.5a1.4 1.4 0 0 1 2 2L5 13l-3 1 1-3 8.5-8.5z"})})}var g=e.i(869803),p=e.i(586108),u=e.i(326283);let m=["app_mentions:read","assistant:write","chat:write","im:history"],h=["app_home_opened","app_mention","app_uninstalled","assistant_thread_context_changed","assistant_thread_started","message.im","tokens_revoked"];function x(e){let t=e??window.location.origin;return`${t.replace(/\/+$/,"")}/oauth/slack/callback`}function f(e){let t=e.description??"Chat with your organization's Stigmer agent without leaving Slack.",s=e.webhookUrl?` event_subscriptions:
2
+ request_url: "${e.webhookUrl}"
3
+ bot_events:
4
+ ${h.map(e=>` - ${e}`).join("\n")}
5
+ `:"";return`display_information:
6
+ name: ${e.name}
7
+ description: ${t}
8
+
9
+ features:
10
+ app_home:
11
+ home_tab_enabled: false
12
+ messages_tab_enabled: true
13
+ messages_tab_read_only_enabled: false
14
+ bot_user:
15
+ display_name: ${e.name}
16
+ always_online: true
17
+ assistant_view:
18
+ assistant_description: ${t}
19
+ suggested_prompts: []
20
+
21
+ oauth_config:
22
+ redirect_urls:
23
+ - "${e.redirectUrl}"
24
+ scopes:
25
+ bot:
26
+ ${m.map(e=>` - ${e}`).join("\n")}
27
+
28
+ settings:
29
+ ${s} interactivity:
30
+ is_enabled: false
31
+ org_deploy_enabled: false
32
+ socket_mode_enabled: false
33
+ token_rotation_enabled: false
34
+ `}let b=["messages"];function v(){let e=new Uint8Array(32);return crypto.getRandomValues(e),Array.from(e,e=>e.toString(16).padStart(2,"0")).join("")}var y=e.i(364802),j=e.i(193799);function k({id:e,label:s,value:r,onChange:n,placeholder:i,hint:l,type:o="text",disabled:c,required:d}){return(0,t.jsxs)("div",{className:"stg:space-y-1",children:[(0,t.jsx)("label",{htmlFor:e,className:"stg:text-xs stg:font-medium stg:text-foreground",children:s}),(0,t.jsx)("input",{id:e,type:o,value:r,onChange:e=>n(e.target.value),placeholder:i,disabled:c,required:d,className:(0,a.cn)("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")}),l&&(0,t.jsx)("p",{className:"stg:text-[0.65rem] stg:text-muted-foreground",children:l})]})}function N({label:e,value:s,copyTargetId:r}){let{copied:n,copy:i}=w(s);return(0,t.jsxs)("div",{className:"stg:space-y-1",children:[(0,t.jsx)("p",{className:"stg:text-xs stg:font-medium stg:text-foreground",children:e}),(0,t.jsxs)("div",{className:"stg:flex stg:items-center stg:gap-1.5",children:[(0,t.jsx)(y.TruncatedText,{text:s,className:(0,a.cn)("stg:min-w-0 stg:flex-1 stg:rounded-md stg:border stg:border-border stg:bg-muted-subtle","stg:px-2 stg:py-1.5 stg:font-mono stg:text-[0.65rem] stg:text-foreground")}),(0,t.jsx)(S,{copied:n,onCopy:i,copyTargetId:r})]})]})}function C({label:e,value:s,copyTargetId:r}){let{copied:n,copy:i}=w(s);return(0,t.jsxs)("div",{className:"stg:space-y-1",children:[(0,t.jsxs)("div",{className:"stg:flex stg:items-center stg:justify-between",children:[(0,t.jsx)("p",{className:"stg:text-[0.65rem] stg:font-medium stg:text-muted-foreground",children:e}),(0,t.jsx)(S,{copied:n,onCopy:i,copyTargetId:r})]}),(0,t.jsx)("pre",{className:(0,a.cn)("stg:max-h-40 stg:overflow-auto stg:rounded-md stg:border stg:border-border stg:bg-muted-subtle","stg:px-2.5 stg:py-2 stg:font-mono stg:text-[0.65rem] stg:leading-relaxed stg:text-foreground"),children:s})]})}function S({copied:e,onCopy:s,copyTargetId:r}){return(0,t.jsx)("button",{type:"button",onClick:s,"data-cursor-target":r,className:(0,a.cn)("stg:shrink-0 stg:rounded-md stg:border stg:border-border stg:px-2 stg:py-1 stg:text-[0.65rem] stg:font-medium stg:transition-colors",e?"stg:text-success":"stg:text-muted-foreground stg:hover:text-foreground stg:hover:bg-accent-hover"),"aria-live":"polite",children:e?"Copied":"Copy"})}function w(e){let{copy:t,copied:a}=(0,j.useCopyFeedback)();return{copied:a,copy:(0,s.useCallback)(()=>{t(e)},[t,e])}}var A=e.i(379410);function I({org:e,consoleOrigin:n,onCreated:i,onCancel:l,className:o}){let c=(0,s.useId)(),{create:d,isCreating:g,error:m,clearError:h}=function(){let e=(0,p.useStigmer)(),[t,a]=(0,s.useState)(!1),[r,n]=(0,s.useState)(null),i=(0,s.useCallback)(()=>n(null),[]);return{create:(0,s.useCallback)(async t=>{a(!0),n(null);try{return await e.channelapp.create(t)}catch(e){throw n((0,u.toError)(e)),e}finally{a(!1)}},[e]),isCreating:t,error:r,clearError:i}}(),[b,y]=(0,s.useState)("slack"),[j,N]=(0,s.useState)(""),[C,S]=(0,s.useState)(""),[w,T]=(0,s.useState)(""),[U,D]=(0,s.useState)(""),[L,R]=(0,s.useState)(""),[q,E]=(0,s.useState)(""),[z,B]=(0,s.useState)(""),[F,O]=(0,s.useState)(v),V=j.trim(),W=(0,s.useMemo)(()=>f({name:V||"Your Bot Name",redirectUrl:x(n)}),[V,n]),P="slack"===b?""!==C.trim()&&""!==w.trim()&&""!==U.trim():""!==L.trim()&&""!==q.trim()&&""!==z.trim()&&""!==F.trim(),H=""!==V&&P&&!g,K=(0,s.useCallback)(async t=>{if(t.preventDefault(),H){h();try{let t=await d({name:V,org:e,..."slack"===b?{slack:{clientId:C.trim(),clientSecret:w.trim(),signingSecret:U.trim()}}:{whatsapp:{appId:L.trim(),appSecret:q.trim(),accessToken:z.trim(),verifyToken:F.trim()}}});i?.(t,"whatsapp"===b?{verifyToken:F.trim()}:{})}catch{}}},[H,V,e,b,C,w,U,L,q,z,F,d,h,i]);return(0,t.jsxs)("form",{onSubmit:K,className:(0,a.cn)("stg:space-y-4",o),children:[(0,t.jsxs)("div",{className:"stg:space-y-3",children:[(0,t.jsx)(_,{value:b,onChange:y,disabled:g}),(0,t.jsx)(k,{id:`${c}-name`,label:"Name",value:j,onChange:N,placeholder:"slack"===b?"e.g. Acme Support Bot":"e.g. Acme WhatsApp",hint:"slack"===b?"The bot name your workspace will @mention":"Names the app in Stigmer — pick something that identifies the Meta app",disabled:g,required:!0}),"slack"===b?(0,t.jsx)(M,{manifest:W,clientId:C,onClientIdChange:S,clientSecret:w,onClientSecretChange:T,signingSecret:U,onSigningSecretChange:D,disabled:g}):(0,t.jsx)($,{appId:L,onAppIdChange:R,appSecret:q,onAppSecretChange:E,accessToken:z,onAccessTokenChange:B,verifyToken:F,onVerifyTokenChange:O,disabled:g})]}),m&&(0,t.jsx)("p",{className:"stg:text-destructive stg:text-[0.65rem]",role:"alert",children:(0,r.getUserMessage)(m)}),(0,t.jsxs)("div",{className:"stg:flex stg:items-center stg:gap-2",children:[(0,t.jsxs)("button",{type:"submit",disabled:!H,className:(0,a.cn)("stg:inline-flex stg:items-center stg:gap-1.5 stg:rounded-md stg:px-3 stg:py-1.5 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-40"),children:[g&&(0,t.jsx)(A.SpinnerIcon,{size:12}),"Register channel app"]}),l&&(0,t.jsx)("button",{type:"button",onClick:l,disabled:g,className:(0,a.cn)("stg:rounded-md stg:px-3 stg:py-1.5 stg:text-xs","stg:text-muted-foreground stg:hover:text-foreground stg:hover:bg-accent-hover","stg:disabled:pointer-events-none stg:disabled:opacity-50"),children:"Cancel"})]})]})}function _({value:e,onChange:r,disabled:n}){let l=(0,s.useId)();return(0,t.jsxs)("fieldset",{className:g.UNSTYLED_FIELDSET,children:[(0,t.jsx)("legend",{className:"stg:mb-1.5 stg:block stg:text-xs stg:font-medium stg:text-foreground",children:"Provider"}),(0,t.jsx)("div",{role:"radiogroup",className:"stg:flex stg:gap-1.5",children:i.CHANNEL_PROVIDERS.map(s=>{let i=e===s.id;return(0,t.jsxs)("label",{htmlFor:`stgm-chapp-provider-${s.id}`,className:(0,a.cn)("stg:flex stg:flex-1 stg:cursor-pointer stg:items-center stg:gap-2 stg:rounded-md stg:border stg:px-2.5 stg:py-1.5",i?"stg:border-ring stg:bg-accent":"stg:border-border stg:hover:bg-accent-hover",n&&"stg:pointer-events-none stg:opacity-50"),children:[(0,t.jsx)("input",{id:`stgm-chapp-provider-${s.id}`,type:"radio",name:`${l}-provider`,checked:i,onChange:()=>r(s.id),disabled:n,className:"stg:accent-current"}),(0,t.jsx)(s.Icon,{className:"stg:size-3.5 stg:shrink-0 stg:text-foreground"}),(0,t.jsx)("span",{className:"stg:text-xs stg:font-medium stg:text-foreground",children:s.label})]},s.id)})})]})}function M({manifest:e,clientId:a,onClientIdChange:r,clientSecret:n,onClientSecretChange:i,signingSecret:l,onSigningSecretChange:o,disabled:c}){let d=(0,s.useId)();return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"stg:space-y-1.5",children:[(0,t.jsx)("p",{className:"stg:text-xs stg:font-medium stg:text-foreground",children:"1. Create the Slack app"}),(0,t.jsxs)("p",{className:"stg:text-[0.65rem] stg:text-muted-foreground",children:["On"," ",(0,t.jsx)("a",{href:"https://api.slack.com/apps?new_app=1",target:"_blank",rel:"noreferrer",className:"stg:text-primary stg:hover:text-foreground stg:underline stg:transition-colors",children:"api.slack.com/apps"}),", choose ",(0,t.jsx)("span",{className:"stg:font-medium",children:"From a manifest"})," and paste this. Event subscriptions come after the next step — the webhook URL is minted when this form is saved."]}),(0,t.jsx)(C,{label:"Slack app manifest",value:e,copyTargetId:"stgm-chapp-manifest-copy"})]}),(0,t.jsxs)("div",{className:"stg:space-y-3",children:[(0,t.jsx)("p",{className:"stg:text-xs stg:font-medium stg:text-foreground",children:"2. Paste the app's credentials"}),(0,t.jsxs)("p",{className:"stg:-mt-2 stg:text-[0.65rem] stg:text-muted-foreground",children:["From the app's ",(0,t.jsx)("span",{className:"stg:font-medium",children:"Basic Information"})," page. They are encrypted at rest and never shown again."]}),(0,t.jsx)(k,{id:`${d}-client-id`,label:"Client ID",value:a,onChange:r,placeholder:"1234567890.0987654321",disabled:c,required:!0}),(0,t.jsx)(k,{id:`${d}-client-secret`,label:"Client secret",value:n,onChange:i,placeholder:"Client secret",type:"password",disabled:c,required:!0}),(0,t.jsx)(k,{id:`${d}-signing-secret`,label:"Signing secret",value:l,onChange:o,placeholder:"Signing secret",type:"password",hint:"Verifies that webhook events really come from your app",disabled:c,required:!0})]})]})}function $({appId:e,onAppIdChange:a,appSecret:r,onAppSecretChange:n,accessToken:i,onAccessTokenChange:l,verifyToken:o,onVerifyTokenChange:c,disabled:d}){let g=(0,s.useId)();return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"stg:space-y-1.5",children:[(0,t.jsx)("p",{className:"stg:text-xs stg:font-medium stg:text-foreground",children:"1. Create the Meta app"}),(0,t.jsxs)("p",{className:"stg:text-[0.65rem] stg:text-muted-foreground",children:["On"," ",(0,t.jsx)("a",{href:"https://developers.facebook.com/apps",target:"_blank",rel:"noreferrer",className:"stg:text-primary stg:hover:text-foreground stg:underline stg:transition-colors",children:"developers.facebook.com"}),", create a ",(0,t.jsx)("span",{className:"stg:font-medium",children:"Business"}),"-type app and add the ",(0,t.jsx)("span",{className:"stg:font-medium",children:"WhatsApp"})," product. The webhook setup comes after the next step — the webhook URL is minted when this form is saved."]})]}),(0,t.jsxs)("div",{className:"stg:space-y-3",children:[(0,t.jsx)("p",{className:"stg:text-xs stg:font-medium stg:text-foreground",children:"2. Paste the app's credentials"}),(0,t.jsxs)("p",{className:"stg:-mt-2 stg:text-[0.65rem] stg:text-muted-foreground",children:["The app ID and secret are on ",(0,t.jsx)("span",{className:"stg:font-medium",children:"App settings → Basic"}),"; mint a long-lived system-user access token with WhatsApp permissions in Meta Business settings. The secrets are encrypted at rest and never shown again."]}),(0,t.jsx)(k,{id:`${g}-app-id`,label:"App ID",value:e,onChange:a,placeholder:"1234567890123456",disabled:d,required:!0}),(0,t.jsx)(k,{id:`${g}-app-secret`,label:"App secret",value:r,onChange:n,placeholder:"App secret",type:"password",hint:"Verifies that webhook events really come from your app",disabled:d,required:!0}),(0,t.jsx)(k,{id:`${g}-access-token`,label:"Access token",value:i,onChange:l,placeholder:"Long-lived system-user access token",type:"password",hint:"Sends messages on behalf of your WhatsApp Business account",disabled:d,required:!0}),(0,t.jsx)(k,{id:`${g}-verify-token`,label:"Verify token",value:o,onChange:c,placeholder:"Verify token",hint:"Generated for you — you'll paste this same value into Meta's webhook configuration after registering. Replace it if your Meta app already has one.",disabled:d,required:!0})]})]})}var T=e.i(857897);function U(){let e=(0,p.useStigmer)(),[t,a]=(0,s.useState)(!1),[r,n]=(0,s.useState)(null),i=(0,s.useCallback)(()=>n(null),[]);return{update:(0,s.useCallback)(async t=>{a(!0),n(null);try{return await e.channelapp.update(t)}catch(e){throw n((0,u.toError)(e)),e}finally{a(!1)}},[e]),isUpdating:t,error:r,clearError:i}}function D({channelApp:e,consoleOrigin:n,createHandoff:i,onUpdated:l,onDeleted:o,onBack:c,className:d}){let{deleteApp:g,isDeleting:m,error:h}=function(){let e=(0,p.useStigmer)(),[t,a]=(0,s.useState)(!1),[r,n]=(0,s.useState)(null),i=(0,s.useCallback)(()=>n(null),[]);return{deleteApp:(0,s.useCallback)(async t=>{a(!0),n(null);try{return await e.channelapp.delete({resourceId:t})}catch(e){throw n((0,u.toError)(e)),e}finally{a(!1)}},[e]),isDeleting:t,error:r,clearError:i}}(),[x,f]=(0,s.useState)(!1),b=e.metadata?.id??"",v=e.metadata?.name??"",y=e.spec?.providerConfig?.case,j=(0,s.useCallback)(async()=>{try{await g(b),o?.()}catch{}finally{f(!1)}},[g,b,o]);return(0,t.jsxs)("div",{className:(0,a.cn)("stg:space-y-5",d),children:[(0,t.jsxs)("div",{className:"stg:flex stg:items-center stg:justify-between",children:[(0,t.jsxs)("div",{className:"stg:min-w-0",children:[(0,t.jsx)("h3",{className:"stg:truncate stg:text-sm stg:font-semibold stg:text-foreground",children:v}),(0,t.jsx)("p",{className:"stg:font-mono stg:text-[0.65rem] stg:text-muted-foreground",children:b})]}),c&&(0,t.jsx)("button",{type:"button",onClick:c,className:"stg:text-muted-foreground stg:hover:text-foreground stg:shrink-0 stg:text-xs stg:transition-colors",children:"← Back"})]}),"slack"===y?(0,t.jsx)(L,{channelApp:e,consoleOrigin:n,onUpdated:l}):"whatsapp"===y?(0,t.jsx)(R,{channelApp:e,createHandoff:i,onUpdated:l}):null,(0,t.jsxs)("section",{className:"stg:border-t stg:border-border stg:pt-3","aria-label":"Danger zone",children:[h&&(0,t.jsx)("p",{className:"stg:text-destructive stg:mb-2 stg:text-[0.65rem]",role:"alert",children:(0,r.getUserMessage)(h)}),x?(0,t.jsxs)("div",{className:"stg:flex stg:items-center stg:gap-2",children:[(0,t.jsx)("p",{className:"stg:text-xs stg:text-foreground",children:"Delete this channel app? Channels installing through it must be disconnected first."}),(0,t.jsxs)("button",{type:"button",onClick:j,disabled:m,className:(0,a.cn)("stg:inline-flex stg:items-center stg:gap-1.5 stg:rounded-md stg:px-2.5 stg:py-1 stg:text-xs stg:font-medium","stg:bg-destructive stg:text-destructive-foreground stg:hover:opacity-90","stg:disabled:pointer-events-none stg:disabled:opacity-40"),children:[m&&(0,t.jsx)(A.SpinnerIcon,{size:12}),"Delete"]}),(0,t.jsx)("button",{type:"button",onClick:()=>f(!1),disabled:m,className:"stg:text-muted-foreground stg:hover:text-foreground stg:text-xs stg:transition-colors",children:"Keep"})]}):(0,t.jsx)("button",{type:"button",onClick:()=>f(!0),className:"stg:text-destructive stg:text-xs stg:font-medium stg:hover:opacity-80",children:"Delete channel app"})]})]})}function L({channelApp:e,consoleOrigin:n,onUpdated:i}){let l=(0,s.useId)(),o=(0,p.useStigmer)(),{update:c,isUpdating:d,error:g,clearError:u}=U(),m=e.spec?.providerConfig?.case==="slack"?e.spec.providerConfig.value:void 0,[h,b]=(0,s.useState)(m?.clientId??""),[v,y]=(0,s.useState)(m?.clientSecret??""),[j,S]=(0,s.useState)(m?.signingSecret??""),w=e.metadata?.id??"",I=e.metadata?.name??"",_=(0,s.useMemo)(()=>{var e;return e=o.baseUrl,`${e.replace(/\/+$/,"")}/webhook/slack/${w}`},[o.baseUrl,w]),M=(0,s.useMemo)(()=>x(n),[n]),$=(0,s.useMemo)(()=>f({name:I,redirectUrl:M,webhookUrl:_}),[I,M,_]),D=""!==h.trim()&&""!==v.trim()&&""!==j.trim()&&!d,R=(0,s.useCallback)(async t=>{if(t.preventDefault(),D){u();try{let t=await c({...(0,T.toChannelAppUpdateInput)(e),slack:{clientId:h.trim(),clientSecret:v.trim(),signingSecret:j.trim()}});i?.(t)}catch{}}},[D,u,c,e,h,v,j,i]);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("section",{className:"stg:space-y-2","aria-label":"Finish setup in Slack",children:[(0,t.jsx)("p",{className:"stg:text-xs stg:font-medium stg:text-foreground",children:"Finish setup in Slack"}),(0,t.jsxs)("p",{className:"stg:text-[0.65rem] stg:text-muted-foreground",children:["On the app's ",(0,t.jsx)("span",{className:"stg:font-medium",children:"Event Subscriptions"})," page, enable events and set the request URL below (Slack verifies it immediately). The completed manifest is also available for review or re-paste."]}),(0,t.jsx)(N,{label:"Events request URL",value:_,copyTargetId:"stgm-chapp-webhook-copy"}),(0,t.jsx)(N,{label:"OAuth redirect URL",value:M}),(0,t.jsx)(C,{label:"Completed app manifest",value:$})]}),(0,t.jsxs)("form",{onSubmit:R,className:"stg:space-y-3","aria-label":"Credentials",children:[(0,t.jsx)("p",{className:"stg:text-xs stg:font-medium stg:text-foreground",children:"Credentials"}),(0,t.jsxs)("p",{className:"stg:-mt-2 stg:text-[0.65rem] stg:text-muted-foreground",children:["Secrets show as ",(0,t.jsx)("code",{className:"stg:font-mono",children:"***REDACTED***"}),"; leave a field untouched to keep its stored value, or paste a new one to rotate it."]}),(0,t.jsx)(k,{id:`${l}-client-id`,label:"Client ID",value:h,onChange:b,placeholder:"1234567890.0987654321",disabled:d,required:!0}),(0,t.jsx)(k,{id:`${l}-client-secret`,label:"Client secret",value:v,onChange:y,placeholder:"Client secret",type:"password",disabled:d,required:!0}),(0,t.jsx)(k,{id:`${l}-signing-secret`,label:"Signing secret",value:j,onChange:S,placeholder:"Signing secret",type:"password",disabled:d,required:!0}),g&&(0,t.jsx)("p",{className:"stg:text-destructive stg:text-[0.65rem]",role:"alert",children:(0,r.getUserMessage)(g)}),(0,t.jsxs)("button",{type:"submit",disabled:!D,className:(0,a.cn)("stg:inline-flex stg:items-center stg:gap-1.5 stg:rounded-md stg:px-3 stg:py-1.5 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-40"),children:[d&&(0,t.jsx)(A.SpinnerIcon,{size:12}),"Save credentials"]})]})]})}function R({channelApp:e,createHandoff:n,onUpdated:i}){let l=(0,s.useId)(),o=(0,p.useStigmer)(),{update:c,isUpdating:d,error:g,clearError:u}=U(),m=e.spec?.providerConfig?.case==="whatsapp"?e.spec.providerConfig.value:void 0,[h,x]=(0,s.useState)(m?.appId??""),[f,v]=(0,s.useState)(m?.appSecret??""),[y,j]=(0,s.useState)(m?.accessToken??""),[C,S]=(0,s.useState)(m?.verifyToken??""),w=e.metadata?.id??"";e.metadata?.name;let I=(0,s.useMemo)(()=>{var e;return e=o.baseUrl,`${e.replace(/\/+$/,"")}/webhook/whatsapp/${w}`},[o.baseUrl,w]),_=""!==h.trim()&&""!==f.trim()&&""!==y.trim()&&""!==C.trim()&&!d,M=(0,s.useCallback)(async t=>{if(t.preventDefault(),_){u();try{let t=await c({...(0,T.toChannelAppUpdateInput)(e),whatsapp:{appId:h.trim(),appSecret:f.trim(),accessToken:y.trim(),verifyToken:C.trim()}});i?.(t)}catch{}}},[_,u,c,e,h,f,y,C,i]);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("section",{className:"stg:space-y-2","aria-label":"Finish setup in Meta",children:[(0,t.jsx)("p",{className:"stg:text-xs stg:font-medium stg:text-foreground",children:"Finish setup in Meta"}),(0,t.jsxs)("p",{className:"stg:text-[0.65rem] stg:text-muted-foreground",children:["On the app's ",(0,t.jsx)("span",{className:"stg:font-medium",children:"WhatsApp → Configuration"})," page, set the callback URL and verify token below, click ",(0,t.jsx)("span",{className:"stg:font-medium",children:"Verify and save"})," ","(Meta verifies immediately), then subscribe to the"," ",(0,t.jsx)("span",{className:"stg:font-medium",children:b.join(", ")})," ","webhook field."]}),(0,t.jsx)(N,{label:"Callback URL",value:I,copyTargetId:"stgm-chapp-webhook-copy"}),n?.verifyToken?(0,t.jsx)(N,{label:"Verify token",value:n.verifyToken,copyTargetId:"stgm-chapp-verify-token-copy"}):(0,t.jsxs)("div",{className:"stg:space-y-1",children:[(0,t.jsx)("p",{className:"stg:text-xs stg:font-medium stg:text-foreground",children:"Verify token"}),(0,t.jsx)("p",{className:"stg:text-[0.65rem] stg:text-muted-foreground",children:"Shown once at registration. If you no longer have it, paste a new one below and update Meta's webhook configuration to match."})]})]}),(0,t.jsxs)("form",{onSubmit:M,className:"stg:space-y-3","aria-label":"Credentials",children:[(0,t.jsx)("p",{className:"stg:text-xs stg:font-medium stg:text-foreground",children:"Credentials"}),(0,t.jsxs)("p",{className:"stg:-mt-2 stg:text-[0.65rem] stg:text-muted-foreground",children:["Secrets show as ",(0,t.jsx)("code",{className:"stg:font-mono",children:"***REDACTED***"}),"; leave a field untouched to keep its stored value, or paste a new one to rotate it."]}),(0,t.jsx)(k,{id:`${l}-app-id`,label:"App ID",value:h,onChange:x,placeholder:"1234567890123456",disabled:d,required:!0}),(0,t.jsx)(k,{id:`${l}-app-secret`,label:"App secret",value:f,onChange:v,placeholder:"App secret",type:"password",disabled:d,required:!0}),(0,t.jsx)(k,{id:`${l}-access-token`,label:"Access token",value:y,onChange:j,placeholder:"Long-lived system-user access token",type:"password",disabled:d,required:!0}),(0,t.jsx)(k,{id:`${l}-verify-token`,label:"Verify token",value:C,onChange:S,placeholder:"Verify token",type:"password",hint:"Rotating it? Update Meta's webhook configuration to the same value.",disabled:d,required:!0}),g&&(0,t.jsx)("p",{className:"stg:text-destructive stg:text-[0.65rem]",role:"alert",children:(0,r.getUserMessage)(g)}),(0,t.jsxs)("button",{type:"submit",disabled:!_,className:(0,a.cn)("stg:inline-flex stg:items-center stg:gap-1.5 stg:rounded-md stg:px-3 stg:py-1.5 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-40"),children:[d&&(0,t.jsx)(A.SpinnerIcon,{size:12}),"Save credentials"]})]})]})}var q=e.i(597744),E=e.i(630983),z=e.i(297629);e.s(["ChannelAppsSection",0,function(){let e=(0,s.useId)(),a=(0,z.useActiveOrgSlug)(),r="cloud"===(0,q.useDeploymentMode)(),[n,i]=(0,s.useState)({phase:"idle"}),l=(0,s.useRef)(null),c=(0,s.useCallback)(e=>{l.current=e},[]),d=(0,s.useCallback)((e,t)=>{l.current?.(),i({phase:"editing",channelApp:e,createHandoff:t})},[]),g=(0,s.useCallback)(()=>{l.current?.(),i({phase:"idle"})},[]),p=(0,s.useCallback)(()=>{l.current?.(),i({phase:"idle"})},[]);return(0,t.jsxs)("section",{"aria-labelledby":e,children:[(0,t.jsxs)("div",{className:"stg:mb-3 stg:flex stg:items-center stg:justify-between",children:[(0,t.jsx)("h2",{id:e,className:"stg:text-foreground stg:text-sm stg:font-semibold",children:"Channel Apps"}),r&&a&&"idle"===n.phase&&(0,t.jsx)("button",{type:"button",onClick:()=>i({phase:"creating"}),className:"stg:text-primary stg:hover:text-foreground stg:text-xs stg:font-medium stg:transition-colors",children:"+ New channel app"})]}),(0,t.jsx)("p",{className:"stg:text-muted-foreground stg:mb-4 stg:text-xs",children:"Your own provider apps for serving agent channels. A Slack app gives the bot your name and icon, and lets multiple agents serve the same workspace — one per app. A Meta app is how WhatsApp channels connect — every WhatsApp channel installs through one."}),r?"creating"===n.phase?(0,t.jsx)("div",{className:"stg:border-border stg:bg-card stg:rounded-lg stg:border stg:p-4",children:(0,t.jsx)(I,{org:a,onCreated:d,onCancel:()=>i({phase:"idle"})})}):"editing"===n.phase?(0,t.jsx)("div",{className:"stg:border-border stg:bg-card stg:rounded-lg stg:border stg:p-4",children:(0,t.jsx)(D,{channelApp:n.channelApp,createHandoff:n.createHandoff,onUpdated:g,onDeleted:p,onBack:()=>i({phase:"idle"})})}):(0,t.jsx)(o,{org:a,onEdit:e=>i({phase:"editing",channelApp:e}),onRefetchRef:c}):(0,t.jsx)(E.CloudFeatureNotice,{children:"Channel apps are not available in local mode. Channel installs require Stigmer Cloud."})]})}],507768)}]);
@@ -0,0 +1,15 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,443578,t=>{"use strict";var e=t.i(908381),r=t.i(171206),a=(0,r.__name)((t,a,l,n)=>{t.attr("class",l);let{width:o,height:d,x:c,y:x}=i(t,a);(0,e.configureSvgSize)(t,d,o,n);let g=s(c,x,o,d,a);t.attr("viewBox",g),r.log.debug(`viewBox configured: ${g} with padding: ${a}`)},"setupViewPortForSVG"),i=(0,r.__name)((t,e)=>{let r=t.node()?.getBBox()||{width:0,height:0,x:0,y:0};return{width:r.width+2*e,height:r.height+2*e,x:r.x,y:r.y}},"calculateDimensionsWithPadding"),s=(0,r.__name)((t,e,r,a,i)=>`${t-i} ${e-i} ${r} ${a}`,"createViewBox");t.s(["setupViewPortForSVG",0,a])},707510,t=>{"use strict";var e=t.i(171206);t.i(947716);var r=t.i(723685),a=(0,e.__name)((t,e)=>{let a;return"sandbox"===e&&(a=(0,r.select)("#i"+t)),("sandbox"===e?(0,r.select)(a.nodes()[0].contentDocument.body):(0,r.select)("body")).select(`[id="${t}"]`)},"getDiagramElement");t.s(["getDiagramElement",0,a])},572247,t=>{"use strict";var e=(0,t.i(171206).__name)(()=>`
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(["getIconStyles",0,e])},621501,t=>{"use strict";var e=t.i(908381),r=t.i(171206),a=t.i(139941);t.i(947716);var i=t.i(723685),s=(0,r.__name)((t,e)=>{let r=t.append("rect");if(r.attr("x",e.x),r.attr("y",e.y),r.attr("fill",e.fill),r.attr("stroke",e.stroke),r.attr("width",e.width),r.attr("height",e.height),e.name&&r.attr("name",e.name),e.rx&&r.attr("rx",e.rx),e.ry&&r.attr("ry",e.ry),void 0!==e.attrs)for(let t in e.attrs)r.attr(t,e.attrs[t]);return e.class&&r.attr("class",e.class),r},"drawRect"),l=(0,r.__name)((t,e)=>{s(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"),n=(0,r.__name)((t,r)=>{let a=r.text.replace(e.lineBreakRegex," "),i=t.append("text");i.attr("x",r.x),i.attr("y",r.y),i.attr("class","legend"),i.style("text-anchor",r.anchor),r.class&&i.attr("class",r.class);let s=i.append("tspan");return s.attr("x",r.x+2*r.textMargin),s.text(a),i},"drawText"),o=(0,r.__name)((t,e,r,i)=>{let s=t.append("image");s.attr("x",e),s.attr("y",r);let l=(0,a.sanitizeUrl)(i);s.attr("xlink:href",l)},"drawImage"),d=(0,r.__name)((t,e,r,i)=>{let s=t.append("use");s.attr("x",e),s.attr("y",r);let l=(0,a.sanitizeUrl)(i);s.attr("xlink:href",`#${l}`)},"drawEmbeddedImage"),c=(0,r.__name)(()=>({x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0}),"getNoteRect"),x=(0,r.__name)(()=>({x:0,y:0,width:100,height:100,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0}),"getTextObj"),g=(0,r.__name)(()=>{let t=(0,i.select)(".mermaidTooltip");return t.empty()&&(t=(0,i.select)("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(["createTooltip",0,g,"drawBackgroundRect",0,l,"drawEmbeddedImage",0,d,"drawImage",0,o,"drawRect",0,s,"drawText",0,n,"getNoteRect",0,c,"getTextObj",0,x])},3421,t=>{"use strict";var e=t.i(886882);t.i(572247),t.i(621501),t.i(707510),t.i(443578),t.i(233755),t.i(95547),t.i(609003),t.i(347578),t.i(136013),t.i(620144),t.i(864421),t.i(669587),t.i(908381);var r=t.i(171206),a={parser:e.classDiagram_default,get db(){return new e.ClassDB},renderer:e.classRenderer_v3_unified_default,styles:e.styles_default,init:(0,r.__name)(t=>{t.class||(t.class={}),t.class.arrowMarkerAbsolute=t.arrowMarkerAbsolute},"init")};t.s(["diagram",0,a])}]);
@@ -0,0 +1 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,720909,e=>{"use strict";var t=e.i(843476),s=e.i(271645),r=e.i(893976),i=e.i(610595),a=e.i(910304),l=e.i(65642),n=e.i(927056),o=e.i(869803),c=e.i(891287),d=e.i(576985),g=e.i(933221),u=e.i(823809);let p=BigInt(0),m={[u.PricingRateField.input]:"Input",[u.PricingRateField.output]:"Output",[u.PricingRateField.cache_write]:"Cache write",[u.PricingRateField.cache_read]:"Cache read",[u.PricingRateField.cursor_token_rate]:"Cursor token rate"};function h(e){let t=Number(e)/1e6;return`$${t.toFixed(t<1?4:2)}/M`}function x(e){let t=Number(e)/100;return`${t>0?"+":""}${t.toFixed(2)}%`}function b(e){return e===p?"0":String(parseFloat((Number(e)/1e6).toFixed(6)))}function f(e){let t=e.trim();if(""===t)return null;let s=Number(t);return!Number.isFinite(s)||s<0?null:BigInt(Math.round(1e6*s))}function v({label:e,value:s,placeholder:r,disabled:i,onChange:a}){return(0,t.jsx)(g.Field,{label:e,children:(0,t.jsx)("input",{className:g.INPUT_CLASSES,inputMode:"decimal",value:s,onChange:e=>a(e.target.value),placeholder:r??"0.00",disabled:i})})}let j={modelId:"",apiModelId:"",provider:"",harness:"native",displayName:"",shortDescription:"",speedTier:"fast",costTier:"standard",featured:!1,wireIds:"",input:"",output:"",cacheWrite:"0",cacheRead:"0",cursorRate:"",variants:[],revisionNote:""};function N({initial:e,isSubmitting:r,submitError:a,onSubmit:n,onCancel:u}){let m,[x,P]=(0,s.useState)(e?(m=e.pricing,{modelId:e.modelId,apiModelId:e.apiModelId,provider:e.provider,harness:e.harness,displayName:e.displayName,shortDescription:e.shortDescription,speedTier:e.speedTier||"fast",costTier:e.costTier||"standard",featured:e.featured,wireIds:e.wireIds.join(", "),input:b(m?.inputPriceMicrosPerMillion??p),output:b(m?.outputPriceMicrosPerMillion??p),cacheWrite:b(m?.cacheWritePriceMicrosPerMillion??p),cacheRead:b(m?.cacheReadPriceMicrosPerMillion??p),cursorRate:(m?.cursorTokenRateMicrosPerMillion??p)>p?b(m.cursorTokenRateMicrosPerMillion):"",variants:Object.entries(e.pricingVariants).map(([e,t])=>({key:e,input:b(t.pricing?.inputPriceMicrosPerMillion??p),output:b(t.pricing?.outputPriceMicrosPerMillion??p),cacheWrite:b(t.pricing?.cacheWritePriceMicrosPerMillion??p),cacheRead:b(t.pricing?.cacheReadPriceMicrosPerMillion??p),wireIds:t.wireIds.join(", ")})),revisionNote:""}):j),[y,C]=(0,s.useState)([]),[k,S]=(0,s.useState)(null),w=(e,t)=>P(s=>({...s,[e]:t})),I=(0,s.useCallback)(t=>{t.preventDefault();let{baseline:s,errors:r}=function(e,t){let s=[],r=(e,t)=>(""===e.trim()&&s.push(`${t} is required.`),e.trim()),i=(e,t)=>{let r=f(e);return null===r?(s.push(`${t} must be a non-negative dollar amount.`),p):r},a=r(e.modelId,"Model id"),l=r(e.provider,"Provider"),n=r(e.harness,"Harness"),o=r(e.displayName,"Display name"),g=i(e.input,"Input rate"),u=i(e.output,"Output rate"),m=i(e.cacheWrite,"Cache-write rate"),h=i(e.cacheRead,"Cache-read rate"),x=""===e.cursorRate.trim()?p:i(e.cursorRate,"Cursor token rate"),b=new Set,v={};for(let r of e.variants){let e=r.key.trim();if(""===e){s.push('Every variant needs a key (e.g. "fast").');continue}if(b.has(e)){s.push(`Duplicate variant key "${e}".`);continue}b.add(e),v[e]=function(e,t,s,r){let i=(e,s)=>{let i=f(e);return null===i?(r.push(`Variant "${t}" ${s} must be a non-negative dollar amount.`),p):i},a=s?.pricingVariants[t]?.pricing;return(0,c.create)(d.PricingVariantSchema,{pricing:(0,c.create)(d.PricingBlockSchema,{inputPriceMicrosPerMillion:i(e.input,"input rate"),outputPriceMicrosPerMillion:i(e.output,"output rate"),cacheWritePriceMicrosPerMillion:i(e.cacheWrite,"cache-write rate"),cacheReadPriceMicrosPerMillion:i(e.cacheRead,"cache-read rate"),source:a?.source??"operator_console",sourceNote:a?.sourceNote??""}),wireIds:e.wireIds.split(",").map(e=>e.trim()).filter(e=>""!==e)})}(r,e,t,s)}if(s.length>0)return{errors:s};let j=t?.pricing;return{baseline:(0,c.create)(d.ModelPricingBaselineSchema,{modelId:a,apiModelId:e.apiModelId.trim(),provider:l,harness:n,displayName:o,shortDescription:e.shortDescription.trim(),speedTier:e.speedTier,costTier:e.costTier,featured:e.featured,wireIds:e.wireIds.split(",").map(e=>e.trim()).filter(e=>""!==e),pricing:(0,c.create)(d.PricingBlockSchema,{inputPriceMicrosPerMillion:g,outputPriceMicrosPerMillion:u,cacheWritePriceMicrosPerMillion:m,cacheReadPriceMicrosPerMillion:h,cursorTokenRateMicrosPerMillion:x,source:j?.source??"operator_console",sourceNote:j?.sourceNote??""}),pricingVariants:v,contextWindowTokens:t?.contextWindowTokens??0,maxOutputTokens:t?.maxOutputTokens??0,tokenCounterMethod:t?.tokenCounterMethod??"",summarization:t?.summarization,capabilities:t?.capabilities}),errors:[]}}(x,e);C(r),s&&S(s)},[x,e]),T=(0,s.useCallback)(async()=>{if(k)try{await n(k,x.revisionNote.trim())}catch{}},[k,x.revisionNote,n]);if(k){let s=function(e,t){let s=[],r=(t,r,i)=>{let a=r??p,l=i??p;a!==l&&s.push({label:t,before:e?h(a):"—",after:h(l)})};for(let i of(r("Input",e?.pricing?.inputPriceMicrosPerMillion,t.pricing?.inputPriceMicrosPerMillion),r("Output",e?.pricing?.outputPriceMicrosPerMillion,t.pricing?.outputPriceMicrosPerMillion),r("Cache write",e?.pricing?.cacheWritePriceMicrosPerMillion,t.pricing?.cacheWritePriceMicrosPerMillion),r("Cache read",e?.pricing?.cacheReadPriceMicrosPerMillion,t.pricing?.cacheReadPriceMicrosPerMillion),r("Cursor token rate",e?.pricing?.cursorTokenRateMicrosPerMillion,t.pricing?.cursorTokenRateMicrosPerMillion),new Set([...Object.keys(e?.pricingVariants??{}),...Object.keys(t.pricingVariants)]))){let a=e?.pricingVariants[i]?.pricing,l=t.pricingVariants[i]?.pricing;if(!l){s.push({label:`Variant "${i}"`,before:"present",after:"removed"});continue}r(`Variant "${i}" input`,a?.inputPriceMicrosPerMillion,l.inputPriceMicrosPerMillion),r(`Variant "${i}" output`,a?.outputPriceMicrosPerMillion,l.outputPriceMicrosPerMillion),r(`Variant "${i}" cache write`,a?.cacheWritePriceMicrosPerMillion,l.cacheWritePriceMicrosPerMillion),r(`Variant "${i}" cache read`,a?.cacheReadPriceMicrosPerMillion,l.cacheReadPriceMicrosPerMillion)}return s}(e,k);return(0,t.jsxs)("div",{className:"stg:space-y-3 stg:rounded-lg stg:border stg:border-border stg:bg-card stg:px-3 stg:py-3",children:[(0,t.jsxs)("h4",{className:"stg:text-xs stg:font-semibold stg:text-foreground",children:[e?"Confirm baseline revision":"Confirm new catalog entry"," · ",(0,t.jsxs)("span",{className:"stg:font-normal stg:text-muted-foreground",children:[k.modelId," / ",k.provider," / ",k.harness]})]}),0===s.length?(0,t.jsx)("p",{className:"stg:text-xs stg:text-muted-foreground",children:"No rate changes — only catalog fields move. Billing is unaffected."}):(0,t.jsxs)("div",{className:"stg:space-y-1",role:"table","aria-label":"Rate changes",children:[s.map(e=>(0,t.jsxs)("p",{className:"stg:text-xs stg:text-foreground",role:"row",children:[(0,t.jsxs)("span",{className:"stg:text-muted-foreground",children:[e.label,": "]}),(0,t.jsx)("span",{className:"stg:line-through",children:e.before})," → ",(0,t.jsx)("span",{className:"stg:font-medium",children:e.after})]},e.label)),(0,t.jsx)("p",{className:"stg:text-[11px] stg:text-muted-foreground",children:"New rates govern charges from the moment this revision is applied (forward-only; already-billed records keep their stamps)."})]}),a&&(0,t.jsx)("p",{className:"stg:text-destructive stg:text-xs",role:"alert",children:(0,i.getUserMessage)(a)}),(0,t.jsxs)("div",{className:"stg:flex stg:gap-2",children:[(0,t.jsx)(l.Button,{size:"sm",disabled:r,onClick:T,children:r?"Applying…":"Apply revision"}),(0,t.jsx)(l.Button,{size:"sm",variant:"outline",disabled:r,onClick:()=>S(null),children:"Back"})]})]})}return(0,t.jsxs)("form",{onSubmit:I,className:"stg:space-y-3 stg:rounded-lg stg:border stg:border-border stg:bg-card stg:px-3 stg:py-3",children:[(0,t.jsx)("h4",{className:"stg:text-xs stg:font-semibold stg:text-foreground",children:e?`Edit ${e.modelId}`:"Add model"}),(0,t.jsxs)("div",{className:"stg:grid stg:grid-cols-2 stg:gap-2",children:[(0,t.jsx)(g.Field,{label:"Model id",required:!0,children:(0,t.jsx)("input",{className:g.INPUT_CLASSES,value:x.modelId,onChange:e=>w("modelId",e.target.value),placeholder:"e.g. claude-sonnet-4.6",disabled:null!==e||r,required:!0})}),(0,t.jsx)(g.Field,{label:"Provider API id",children:(0,t.jsx)("input",{className:g.INPUT_CLASSES,value:x.apiModelId,onChange:e=>w("apiModelId",e.target.value),placeholder:"e.g. claude-sonnet-4-6",disabled:r})}),(0,t.jsx)(g.Field,{label:"Provider",required:!0,children:(0,t.jsx)("input",{className:g.INPUT_CLASSES,value:x.provider,onChange:e=>w("provider",e.target.value),placeholder:"e.g. anthropic",disabled:null!==e||r,required:!0})}),(0,t.jsx)(g.Field,{label:"Harness",required:!0,children:(0,t.jsxs)("select",{className:g.INPUT_CLASSES,value:x.harness,onChange:e=>w("harness",e.target.value),disabled:null!==e||r,children:[(0,t.jsx)("option",{value:"native",children:"native"}),(0,t.jsx)("option",{value:"cursor",children:"cursor"})]})}),(0,t.jsx)(g.Field,{label:"Display name",required:!0,children:(0,t.jsx)("input",{className:g.INPUT_CLASSES,value:x.displayName,onChange:e=>w("displayName",e.target.value),disabled:r,required:!0})}),(0,t.jsx)(g.Field,{label:"Short description",children:(0,t.jsx)("input",{className:g.INPUT_CLASSES,value:x.shortDescription,onChange:e=>w("shortDescription",e.target.value),placeholder:"3-6 word pitch",disabled:r})}),(0,t.jsx)(g.Field,{label:"Speed tier",children:(0,t.jsxs)("select",{className:g.INPUT_CLASSES,value:x.speedTier,onChange:e=>w("speedTier",e.target.value),disabled:r,children:[(0,t.jsx)("option",{value:"fastest",children:"fastest"}),(0,t.jsx)("option",{value:"fast",children:"fast"}),(0,t.jsx)("option",{value:"balanced",children:"balanced"}),(0,t.jsx)("option",{value:"slow",children:"slow"})]})}),(0,t.jsx)(g.Field,{label:"Cost tier",children:(0,t.jsxs)("select",{className:g.INPUT_CLASSES,value:x.costTier,onChange:e=>w("costTier",e.target.value),disabled:r,children:[(0,t.jsx)("option",{value:"economy",children:"economy"}),(0,t.jsx)("option",{value:"standard",children:"standard"}),(0,t.jsx)("option",{value:"premium",children:"premium"})]})})]}),(0,t.jsx)(g.Field,{label:"Wire ids (comma-separated)",children:(0,t.jsx)("input",{className:g.INPUT_CLASSES,value:x.wireIds,onChange:e=>w("wireIds",e.target.value),placeholder:"e.g. gemini-3-flash-preview",disabled:r})}),(0,t.jsxs)("label",{className:"stg:flex stg:cursor-pointer stg:items-center stg:gap-1.5 stg:text-xs stg:text-foreground",children:[(0,t.jsx)("input",{type:"checkbox",checked:x.featured,onChange:e=>w("featured",e.target.checked),disabled:r}),"Featured (appears in the curated default picker list)"]}),(0,t.jsxs)("fieldset",{className:`${o.UNSTYLED_FIELDSET} stg:space-y-2`,children:[(0,t.jsx)("legend",{className:"stg:text-xs stg:font-medium stg:text-foreground",children:"Rates ($ per million tokens)"}),(0,t.jsxs)("div",{className:"stg:grid stg:grid-cols-2 stg:gap-2 stg:sm:grid-cols-5",children:[(0,t.jsx)(v,{label:"Input",value:x.input,disabled:r,onChange:e=>w("input",e)}),(0,t.jsx)(v,{label:"Output",value:x.output,disabled:r,onChange:e=>w("output",e)}),(0,t.jsx)(v,{label:"Cache write",value:x.cacheWrite,disabled:r,onChange:e=>w("cacheWrite",e)}),(0,t.jsx)(v,{label:"Cache read",value:x.cacheRead,disabled:r,onChange:e=>w("cacheRead",e)}),(0,t.jsx)(v,{label:"Cursor token rate",value:x.cursorRate,placeholder:"cursor only",disabled:r,onChange:e=>w("cursorRate",e)})]})]}),(0,t.jsxs)("fieldset",{className:`${o.UNSTYLED_FIELDSET} stg:space-y-2`,children:[(0,t.jsx)("legend",{className:"stg:text-xs stg:font-medium stg:text-foreground",children:"Pricing variants"}),x.variants.map((e,s)=>(0,t.jsxs)("div",{className:"stg:space-y-2 stg:rounded-md stg:border stg:border-border-muted stg:px-2.5 stg:py-2",children:[(0,t.jsxs)("div",{className:"stg:flex stg:items-end stg:gap-2",children:[(0,t.jsx)(g.Field,{label:"Variant key",className:"stg:w-32",children:(0,t.jsx)("input",{className:g.INPUT_CLASSES,value:e.key,onChange:e=>M(P,s,{key:e.target.value}),placeholder:"fast",disabled:r})}),(0,t.jsx)(g.Field,{label:"Wire ids (comma-separated)",className:"stg:flex-1",children:(0,t.jsx)("input",{className:g.INPUT_CLASSES,value:e.wireIds,onChange:e=>M(P,s,{wireIds:e.target.value}),placeholder:"e.g. composer-2.5-fast",disabled:r})}),(0,t.jsx)(l.Button,{size:"sm",variant:"outline",disabled:r,onClick:()=>P(e=>({...e,variants:e.variants.filter((e,t)=>t!==s)})),children:"Remove"})]}),(0,t.jsxs)("div",{className:"stg:grid stg:grid-cols-2 stg:gap-2 stg:sm:grid-cols-4",children:[(0,t.jsx)(v,{label:"Input",value:e.input,disabled:r,onChange:e=>M(P,s,{input:e})}),(0,t.jsx)(v,{label:"Output",value:e.output,disabled:r,onChange:e=>M(P,s,{output:e})}),(0,t.jsx)(v,{label:"Cache write",value:e.cacheWrite,disabled:r,onChange:e=>M(P,s,{cacheWrite:e})}),(0,t.jsx)(v,{label:"Cache read",value:e.cacheRead,disabled:r,onChange:e=>M(P,s,{cacheRead:e})})]})]},s)),(0,t.jsx)(l.Button,{size:"sm",variant:"outline",disabled:r,onClick:()=>P(e=>({...e,variants:[...e.variants,{key:"",input:"",output:"",cacheWrite:"0",cacheRead:"0",wireIds:""}]})),children:"Add variant"})]}),(0,t.jsx)(g.Field,{label:"Revision note",children:(0,t.jsx)("input",{className:g.INPUT_CLASSES,value:x.revisionNote,onChange:e=>w("revisionNote",e.target.value),placeholder:"Why this revision (audit trail)",disabled:r})}),y.length>0&&(0,t.jsx)("div",{role:"alert",className:"stg:space-y-0.5",children:y.map(e=>(0,t.jsx)("p",{className:"stg:text-destructive stg:text-xs",children:e},e))}),(0,t.jsxs)("div",{className:"stg:flex stg:gap-2",children:[(0,t.jsx)(l.Button,{size:"sm",type:"submit",disabled:r,children:"Review changes"}),(0,t.jsx)(l.Button,{size:"sm",variant:"outline",disabled:r,onClick:u,children:"Cancel"})]})]})}function M(e,t,s){e(e=>({...e,variants:e.variants.map((e,r)=>r===t?{...e,...s}:e)}))}function P({target:e,isSubmitting:r,submitError:a,onConfirm:n,onCancel:o}){let[c,d]=(0,s.useState)(""),[u,p]=(0,s.useState)(""),m=c===e.modelId;return(0,t.jsxs)("div",{className:"stg:space-y-2 stg:rounded-lg stg:border stg:border-destructive stg:bg-card stg:px-3 stg:py-3",children:[(0,t.jsxs)("h4",{className:"stg:text-xs stg:font-semibold stg:text-foreground",children:["Retire ",e.displayName||e.modelId,"?"]}),(0,t.jsxs)("p",{className:"stg:text-xs stg:text-muted-foreground",children:["The model disappears from every price surface (billing lookups, model pickers, the served registry) and any active pricing overrides on it are archived. The revision history is kept, and the key can be revived by a later upsert. Type ",(0,t.jsx)("span",{className:"stg:font-medium stg:text-foreground",children:e.modelId})," ","to confirm."]}),(0,t.jsxs)("div",{className:"stg:grid stg:grid-cols-2 stg:gap-2",children:[(0,t.jsx)("input",{className:g.INPUT_CLASSES,value:c,onChange:e=>d(e.target.value),placeholder:e.modelId,disabled:r,"aria-label":"Type the model id to confirm retirement"}),(0,t.jsx)("input",{className:g.INPUT_CLASSES,value:u,onChange:e=>p(e.target.value),placeholder:"Reason (audit trail)",disabled:r})]}),a&&(0,t.jsx)("p",{className:"stg:text-destructive stg:text-xs",role:"alert",children:(0,i.getUserMessage)(a)}),(0,t.jsxs)("div",{className:"stg:flex stg:gap-2",children:[(0,t.jsx)(l.Button,{size:"sm",variant:"destructive",disabled:!m||r,onClick:()=>n(e,u.trim()).catch(()=>void 0),children:r?"Retiring…":"Retire model"}),(0,t.jsx)(l.Button,{size:"sm",variant:"outline",disabled:r,onClick:o,children:"Cancel"})]})]})}function y({override:e,isSubmitting:s,onDecide:r}){let i=e.provenance;return(0,t.jsx)("div",{className:"stg:rounded-lg stg:border stg:border-border stg:bg-card stg:px-3 stg:py-2",children:(0,t.jsxs)("div",{className:"stg:flex stg:items-center stg:justify-between stg:gap-2",children:[(0,t.jsxs)("div",{className:"stg:min-w-0",children:[(0,t.jsxs)("p",{className:"stg:truncate stg:text-xs stg:font-medium stg:text-foreground",children:[e.modelId,e.variant?` (${e.variant})`:""," · ",m[e.rateField]??"Rate"]}),(0,t.jsx)("p",{className:"stg:text-[11px] stg:text-muted-foreground",children:i?(0,t.jsxs)(t.Fragment,{children:["Ledger observed ",h(i.observedRateMicrosPerMillion)," vs effective ",h(i.effectiveRateAtDerivationMicrosPerMillion)," ","(",x(i.deltaBasisPoints),") over"," ",i.windowFrom,"..",i.windowTo]}):(0,t.jsxs)(t.Fragment,{children:["Proposed rate ",h(e.rateMicrosPerMillion)]})})]}),(0,t.jsxs)("div",{className:"stg:flex stg:shrink-0 stg:gap-2",children:[(0,t.jsx)(l.Button,{size:"sm",disabled:s,onClick:()=>r(e.overrideId,!0),children:"Approve"}),(0,t.jsx)(l.Button,{size:"sm",variant:"outline",disabled:s,onClick:()=>r(e.overrideId,!1),children:"Reject"})]})]})})}function C({baseline:e,effective:s,role:r}){return(0,t.jsxs)("span",{role:r,className:"stg:text-right stg:text-foreground",children:[e!==s&&(0,t.jsx)("span",{className:"stg:mr-1 stg:text-[10px] stg:text-muted-foreground stg:line-through",children:h(e)}),h(s)]})}function k({ledgerReconcilable:e,hasOverrides:s}){return e?(0,t.jsx)("span",{className:(0,r.cn)("stg:rounded stg:px-1.5 stg:py-0.5 stg:text-[10px] stg:font-medium",s?"stg:bg-accent stg:text-primary":"stg:bg-muted-subtle stg:text-muted-foreground"),children:s?"Ledger-corrected":"Ledger-verified"}):(0,t.jsx)("span",{className:"stg:rounded stg:bg-muted-subtle stg:px-1.5 stg:py-0.5 stg:text-[10px] stg:font-medium stg:text-muted-foreground",children:"Manually governed"})}function S({row:e,onEdit:s,onRetire:i,onBack:a}){let{baseline:n,governance:o}=e,c=(o?.activeOverrides.length??0)>0,g=[{label:"Input",baseline:n.pricing?.inputPriceMicrosPerMillion??p,effective:o?.effectiveInputMicrosPerMillion??null},{label:"Output",baseline:n.pricing?.outputPriceMicrosPerMillion??p,effective:o?.effectiveOutputMicrosPerMillion??null},{label:"Cache write",baseline:n.pricing?.cacheWritePriceMicrosPerMillion??p,effective:o?.effectiveCacheWriteMicrosPerMillion??null},{label:"Cache read",baseline:n.pricing?.cacheReadPriceMicrosPerMillion??p,effective:o?.effectiveCacheReadMicrosPerMillion??null},{label:"Cursor token rate",baseline:n.pricing?.cursorTokenRateMicrosPerMillion??p,effective:o?.effectiveCursorTokenRateMicrosPerMillion??null}];return(0,t.jsxs)("div",{className:"stg:space-y-4 stg:rounded-lg stg:border stg:border-border stg:bg-card stg:px-4 stg:py-3",children:[(0,t.jsxs)("div",{className:"stg:flex stg:items-start stg:justify-between stg:gap-3",children:[(0,t.jsxs)("div",{className:"stg:min-w-0",children:[(0,t.jsxs)("h4",{className:"stg:flex stg:flex-wrap stg:items-center stg:gap-2 stg:text-sm stg:font-semibold stg:text-foreground",children:[n.displayName||n.modelId,o&&(0,t.jsx)(k,{ledgerReconcilable:o.ledgerReconcilable,hasOverrides:c}),n.featured&&(0,t.jsx)("span",{className:"stg:rounded stg:bg-accent stg:px-1.5 stg:py-0.5 stg:text-[10px] stg:font-medium stg:text-primary",children:"Featured"})]}),(0,t.jsxs)("p",{className:"stg:mt-0.5 stg:text-[11px] stg:text-muted-foreground",children:[n.modelId," · ",n.provider," · ",n.harness,n.shortDescription?` — ${n.shortDescription}`:""]})]}),(0,t.jsxs)("div",{className:"stg:flex stg:shrink-0 stg:gap-2",children:[(0,t.jsx)(l.Button,{size:"sm",variant:"outline",onClick:a,children:"Back"}),(0,t.jsx)(l.Button,{size:"sm",onClick:s,children:"Edit"}),(0,t.jsx)(l.Button,{size:"sm",variant:"outline",onClick:i,children:"Retire"})]})]}),(0,t.jsxs)("section",{"aria-label":"Rates",children:[(0,t.jsx)("h5",{className:"stg:mb-1.5 stg:text-[11px] stg:font-medium stg:uppercase stg:tracking-wider stg:text-muted-foreground",children:"Rates ($ per million tokens)"}),(0,t.jsxs)("div",{className:"stg:rounded-md stg:border stg:border-border-muted",role:"table","aria-label":"Baseline vs effective rates",children:[(0,t.jsxs)("div",{role:"row",className:"stg:grid stg:grid-cols-[1.5fr_1fr_1fr] stg:gap-2 stg:border-b stg:border-border-muted stg:px-2.5 stg:py-1.5 stg:text-[11px] stg:font-medium stg:text-muted-foreground",children:[(0,t.jsx)("span",{role:"columnheader",children:"Rate"}),(0,t.jsx)("span",{role:"columnheader",className:"stg:text-right",children:"Baseline"}),(0,t.jsx)("span",{role:"columnheader",className:"stg:text-right",children:"Effective"})]}),g.map(e=>{let s=null!==e.effective&&e.effective!==e.baseline;return(0,t.jsxs)("div",{role:"row",className:"stg:grid stg:grid-cols-[1.5fr_1fr_1fr] stg:gap-2 stg:border-b stg:border-border-muted stg:px-2.5 stg:py-1.5 stg:text-xs stg:last:border-b-0",children:[(0,t.jsx)("span",{role:"cell",className:"stg:text-muted-foreground",children:e.label}),(0,t.jsx)("span",{role:"cell",className:(0,r.cn)("stg:text-right stg:text-foreground",s&&"stg:line-through stg:text-muted-foreground"),children:h(e.baseline)}),(0,t.jsx)("span",{role:"cell",className:(0,r.cn)("stg:text-right stg:text-foreground",s&&"stg:font-medium"),children:null!==e.effective?h(e.effective):"—"})]},e.label)})]})]}),c&&o&&(0,t.jsxs)("section",{"aria-label":"Active pricing overrides",children:[(0,t.jsx)("h5",{className:"stg:mb-1.5 stg:text-[11px] stg:font-medium stg:uppercase stg:tracking-wider stg:text-muted-foreground",children:"Active Overrides"}),(0,t.jsx)("div",{className:"stg:space-y-1",children:o.activeOverrides.map(e=>(0,t.jsxs)("p",{className:"stg:text-[11px] stg:text-muted-foreground",children:[(0,t.jsxs)("span",{className:"stg:font-medium stg:text-foreground",children:[m[e.rateField]??"Rate",e.variant?` (${e.variant})`:""]})," → ",h(e.rateMicrosPerMillion),e.provenance&&(0,t.jsxs)(t.Fragment,{children:[" · ledger observed ",h(e.provenance.observedRateMicrosPerMillion)," (",x(e.provenance.deltaBasisPoints),") over ",e.provenance.windowFrom,"..",e.provenance.windowTo]})]},e.overrideId))})]}),Object.keys(n.pricingVariants).length>0&&(0,t.jsxs)("section",{"aria-label":"Pricing variants",children:[(0,t.jsx)("h5",{className:"stg:mb-1.5 stg:text-[11px] stg:font-medium stg:uppercase stg:tracking-wider stg:text-muted-foreground",children:"Variants"}),(0,t.jsx)("div",{className:"stg:space-y-2",children:Object.entries(n.pricingVariants).map(([s,r])=>{var i;let a=e.variantGovernance.find(e=>e.variant===s)??null;return(0,t.jsxs)("div",{className:"stg:rounded-md stg:border stg:border-border-muted stg:px-2.5 stg:py-2",children:[(0,t.jsxs)("p",{className:"stg:text-xs stg:font-medium stg:text-foreground",children:[s,a&&(0,t.jsx)("span",{className:"stg:ml-2 stg:align-middle",children:(0,t.jsx)(k,{ledgerReconcilable:a.ledgerReconcilable,hasOverrides:a.activeOverrides.length>0})})]}),(0,t.jsx)("p",{className:"stg:mt-0.5 stg:text-[11px] stg:text-muted-foreground",children:(i=r.pricing,[["Input",i?.inputPriceMicrosPerMillion??p],["Output",i?.outputPriceMicrosPerMillion??p],["Cache write",i?.cacheWritePriceMicrosPerMillion??p],["Cache read",i?.cacheReadPriceMicrosPerMillion??p],["Cursor token rate",i?.cursorTokenRateMicrosPerMillion??p]]).filter(([,e])=>e>p).map(([e,t])=>`${e} ${h(t)}`).join(" · ")||"No rates set"}),r.wireIds.length>0&&(0,t.jsxs)("p",{className:"stg:mt-0.5 stg:text-[11px] stg:text-muted-foreground",children:["Wire ids: ",r.wireIds.join(", ")]})]},s)})})]}),(0,t.jsxs)("section",{"aria-label":"Catalog metadata",children:[(0,t.jsx)("h5",{className:"stg:mb-1.5 stg:text-[11px] stg:font-medium stg:uppercase stg:tracking-wider stg:text-muted-foreground",children:"Catalog"}),(0,t.jsxs)("dl",{className:"stg:grid stg:grid-cols-2 stg:gap-x-4 stg:gap-y-1 stg:text-xs stg:sm:grid-cols-3",children:[(0,t.jsx)(w,{label:"Provider API id",value:n.apiModelId||"—"}),(0,t.jsx)(w,{label:"Speed tier",value:n.speedTier||"—"}),(0,t.jsx)(w,{label:"Cost tier",value:n.costTier||"—"}),(0,t.jsx)(w,{label:"Context window",value:n.contextWindowTokens>0?n.contextWindowTokens.toLocaleString():"—"}),(0,t.jsx)(w,{label:"Max output tokens",value:n.maxOutputTokens>0?n.maxOutputTokens.toLocaleString():"—"}),(0,t.jsx)(w,{label:"Token counter",value:n.tokenCounterMethod||"—"})]})]}),(0,t.jsxs)("section",{"aria-label":"Revision history",children:[(0,t.jsx)("h5",{className:"stg:mb-1.5 stg:text-[11px] stg:font-medium stg:uppercase stg:tracking-wider stg:text-muted-foreground",children:"Revision History"}),0===e.history.length?(0,t.jsx)("p",{className:"stg:text-[11px] stg:text-muted-foreground",children:"No previous revisions — this is the original entry."}):(0,t.jsx)("div",{className:"stg:space-y-1",children:e.history.map(e=>(0,t.jsxs)("p",{className:"stg:text-[11px] stg:text-muted-foreground",children:[e.status===d.ModelPricingBaselineStatus.pricing_baseline_retired?"Retired":"Superseded"," · ",h(e.pricing?.inputPriceMicrosPerMillion??p)," in /"," ",h(e.pricing?.outputPriceMicrosPerMillion??p)," out"," · ",e.decidedBy,e.revisionNote?` — ${e.revisionNote}`:""]},e.baselineId))})]})]})}function w({label:e,value:s}){return(0,t.jsxs)("div",{children:[(0,t.jsx)("dt",{className:"stg:text-[11px] stg:text-muted-foreground",children:e}),(0,t.jsx)("dd",{className:"stg:text-foreground",children:s})]})}function I({className:e}){return(0,t.jsxs)("div",{className:(0,r.cn)("stg:rounded-lg stg:border stg:border-border stg:bg-card stg:px-4 stg:py-6 stg:text-center",e),role:"status",children:[(0,t.jsx)("p",{className:"stg:text-xs stg:font-semibold stg:text-foreground",children:"Platform operator access required"}),(0,t.jsx)("p",{className:"stg:mx-auto stg:mt-1 stg:max-w-md stg:text-xs stg:text-muted-foreground",children:"Model pricing governance is a Stigmer-internal surface. It needs the platform operator role — organization roles do not grant it. If you believe you should have access, contact a platform operator."})]})}var T=e.i(364802),R=e.i(586108),_=e.i(326283),E=e.i(583093);function L(e){return`${e.modelId}|${e.provider}|${e.harness}`}function O(e,...t){let s=e.trim().toLowerCase();return""===s||t.some(e=>e.toLowerCase().includes(s))}let B=[{id:"models",label:"Models"},{id:"sign-offs",label:"Sign-Offs"}];function F({className:e,defaultTab:l}){let o=function(){let e=function(e){let t=(0,R.useStigmer)(),s=e?.enabled??!0,r=e?.includeHistory??!1,{data:i,isLoading:a,isRefetching:l,error:n,refetch:o}=(0,E.useFetch)(s?async()=>(await t.billing.listModelPricingBaselines({includeHistory:r})).baselines:null,[s,r,t],null);return{baselines:i,isLoading:a,isRefetching:l,error:n,refetch:o}}({includeHistory:!0}),t=function(){let e=(0,R.useStigmer)(),t=(void 0)??!0,{data:s,isLoading:r,isRefetching:i,error:a,refetch:l}=(0,E.useFetch)(t?()=>e.billing.getModelPricingGovernance():null,[t,e],null);return{governance:s,isLoading:r,isRefetching:i,error:a,refetch:l}}(),[r,i]=(0,s.useState)(""),[a,l]=(0,s.useState)(""),[n,o]=(0,s.useState)({phase:"list"}),c=(0,s.useMemo)(()=>{let s=e.baselines??[],r=t.governance?.entries??[],i=new Map,a=new Map;for(let e of r){let t=L(e);""===e.variant?i.set(t,e):a.set(t,[...a.get(t)??[],e])}let l=new Map;for(let e of s){if(e.status===d.ModelPricingBaselineStatus.pricing_baseline_active)continue;let t=L(e);l.set(t,[...l.get(t)??[],e])}return s.filter(e=>e.status===d.ModelPricingBaselineStatus.pricing_baseline_active).map(e=>{let t=L(e);return{key:t,baseline:e,governance:i.get(t)??null,variantGovernance:a.get(t)??[],history:l.get(t)??[]}}).sort((e,t)=>(e.baseline.displayName||e.baseline.modelId).localeCompare(t.baseline.displayName||t.baseline.modelId))},[e.baselines,t.governance]),g=(0,s.useMemo)(()=>c.filter(e=>O(r,e.baseline.modelId,e.baseline.displayName,e.baseline.provider,e.baseline.harness)),[c,r]),u=(0,s.useMemo)(()=>t.governance?.pendingOverrides??[],[t.governance]),p=(0,s.useMemo)(()=>u.filter(e=>O(a,e.modelId,e.variant)),[u,a]),m=(0,s.useMemo)(()=>"detail"!==n.phase?null:c.find(e=>e.key===n.modelKey)??null,[n,c]),h=(0,s.useCallback)(e=>o({phase:"detail",modelKey:e,mode:"view"}),[]),x=(0,s.useCallback)(()=>o({phase:"create"}),[]),b=(0,s.useCallback)(()=>o(e=>"detail"===e.phase?{...e,mode:"edit"}:e),[]),f=(0,s.useCallback)(()=>o(e=>"detail"===e.phase?{...e,mode:"retire"}:e),[]),v=(0,s.useCallback)(()=>o(e=>"detail"===e.phase?{...e,mode:"view"}:e),[]),j=(0,s.useCallback)(()=>o({phase:"list"}),[]),N=(0,s.useCallback)(()=>{e.refetch(),t.refetch()},[e.refetch,t.refetch]),M=e.isLoading||t.isLoading,P=e.error??t.error;return(0,s.useMemo)(()=>({models:g,pendingOverrides:p,pendingCount:u.length,modelQuery:r,setModelQuery:i,signOffQuery:a,setSignOffQuery:l,flow:n,selected:m,openDetail:h,openCreate:x,openEdit:b,openRetire:f,backToDetail:v,backToList:j,isLoading:M,error:P,refetch:N}),[g,p,u.length,r,a,n,m,h,x,b,f,v,j,M,P,N])}(),[c,g]=(0,s.useState)(()=>void 0!==l&&B.some(e=>e.id===l)?l:"models"),{decide:u,isSubmitting:p,error:m}=function(){let e=(0,R.useStigmer)(),[t,r]=(0,s.useState)(!1),[i,a]=(0,s.useState)(null);return{decide:(0,s.useCallback)(async t=>{r(!0),a(null);try{return await e.billing.decideModelPricingOverride(t)}catch(t){let e=(0,_.toError)(t);throw a(e),e}finally{r(!1)}},[e.billing]),isSubmitting:t,error:i,clearError:(0,s.useCallback)(()=>a(null),[])}}(),{upsert:h,isSubmitting:x,error:b,clearError:f}=function(){let e=(0,R.useStigmer)(),[t,r]=(0,s.useState)(!1),[i,a]=(0,s.useState)(null);return{upsert:(0,s.useCallback)(async t=>{r(!0),a(null);try{return await e.billing.upsertModelPricingBaseline(t)}catch(t){let e=(0,_.toError)(t);throw a(e),e}finally{r(!1)}},[e.billing]),isSubmitting:t,error:i,clearError:(0,s.useCallback)(()=>a(null),[])}}(),{retire:v,isSubmitting:j,error:N,clearError:M}=function(){let e=(0,R.useStigmer)(),[t,r]=(0,s.useState)(!1),[i,a]=(0,s.useState)(null);return{retire:(0,s.useCallback)(async t=>{r(!0),a(null);try{return await e.billing.retireModelPricingBaseline(t)}catch(t){let e=(0,_.toError)(t);throw a(e),e}finally{r(!1)}},[e.billing]),isSubmitting:t,error:i,clearError:(0,s.useCallback)(()=>a(null),[])}}(),P=(0,s.useCallback)(async(e,t)=>{try{await u({overrideId:e,approve:t}),o.refetch()}catch{}},[u,o.refetch]),y=(0,s.useCallback)(async(e,t)=>{await h({baseline:e,revisionNote:t||void 0}),o.refetch(),"detail"===o.flow.phase?o.backToDetail():o.backToList()},[h,o.refetch,o.flow.phase,o.backToDetail,o.backToList]),C=(0,s.useCallback)(()=>{f(),"detail"===o.flow.phase?o.backToDetail():o.backToList()},[f,o.flow.phase,o.backToDetail,o.backToList]),k=(0,s.useCallback)(async(e,t)=>{await v({modelId:e.modelId,provider:e.provider,harness:e.harness,revisionNote:t||void 0}),o.refetch(),o.backToList()},[v,o.refetch,o.backToList]),S=(0,s.useCallback)(()=>{M(),o.backToDetail()},[M,o.backToDetail]);return o.isLoading?(0,t.jsxs)("div",{className:(0,r.cn)("stg:space-y-2",e),"aria-busy":"true",children:[(0,t.jsx)("div",{className:"stg:h-4 stg:w-40 stg:animate-pulse stg:rounded stg:bg-muted-subtle"}),Array.from({length:4},(e,s)=>(0,t.jsx)("div",{className:"stg:h-10 stg:animate-pulse stg:rounded-lg stg:bg-muted-subtle"},s))]}):o.error?(0,a.isPermissionDenied)(o.error)?(0,t.jsx)(I,{className:e}):(0,t.jsx)("p",{className:(0,r.cn)("stg:text-destructive stg:text-xs",e),role:"alert",children:(0,i.getUserMessage)(o.error)}):(0,t.jsx)(n.Tabs,{className:e,tabs:[B[0],{...B[1],badge:o.pendingCount}],activeTab:c,onTabChange:e=>g(e),"aria-label":"Pricing governance sections",children:"models"===c?(0,t.jsx)($,{view:o,isUpserting:x,upsertError:b,onUpsert:y,onCancelEdit:C,isRetiring:j,retireError:N,onRetire:k,onCancelRetire:S}):(0,t.jsx)(D,{view:o,isDeciding:p,decisionError:m,onDecide:P})})}function $({view:e,isUpserting:s,upsertError:i,onUpsert:a,onCancelEdit:n,isRetiring:c,retireError:d,onRetire:u,onCancelRetire:p}){let{flow:m,selected:h}=e;return"create"===m.phase?(0,t.jsx)(N,{initial:null,isSubmitting:s,submitError:i,onSubmit:a,onCancel:n}):"detail"===m.phase&&h?"edit"===m.mode?(0,t.jsx)(N,{initial:h.baseline,isSubmitting:s,submitError:i,onSubmit:a,onCancel:n}):"retire"===m.mode?(0,t.jsx)(P,{target:h.baseline,isSubmitting:c,submitError:d,onConfirm:u,onCancel:p}):(0,t.jsx)(S,{row:h,onEdit:e.openEdit,onRetire:e.openRetire,onBack:e.backToList}):(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)("input",{type:"search",className:(0,r.cn)(g.INPUT_CLASSES,"stg:max-w-xs"),value:e.modelQuery,onChange:t=>e.setModelQuery(t.target.value),placeholder:"Search models…","aria-label":"Search models"}),(0,t.jsx)(l.Button,{size:"sm",onClick:e.openCreate,children:"Add model"})]}),(0,t.jsxs)("div",{className:"stg:rounded-lg stg:border stg:border-border stg:bg-card",children:[(0,t.jsxs)("div",{"aria-hidden":"true",className:"stg:grid stg:grid-cols-[2fr_1fr_1fr_1fr_0.7fr_1fr] stg:gap-2 stg:border-b stg:border-border stg:px-3 stg:py-2 stg:text-[11px] stg:font-medium stg:text-muted-foreground",children:[(0,t.jsx)("span",{children:"Model"}),(0,t.jsx)("span",{children:"Harness"}),(0,t.jsx)("span",{className:"stg:text-right",children:"Input"}),(0,t.jsx)("span",{className:"stg:text-right",children:"Output"}),(0,t.jsx)("span",{className:"stg:text-right",children:"Variants"}),(0,t.jsx)("span",{className:"stg:text-right",children:"Governance"})]}),0===e.models.length?(0,t.jsx)("p",{className:"stg:px-3 stg:py-2 stg:text-xs stg:text-muted-foreground",children:""!==e.modelQuery.trim()?`No models match "${e.modelQuery.trim()}".`:"The catalog is empty — has the baseline seed migration run?"}):(0,t.jsx)("ul",{role:"list","aria-label":"Models",className:o.UNSTYLED_LIST,children:e.models.map(s=>(0,t.jsx)(A,{row:s,onOpen:()=>e.openDetail(s.key)},s.key))})]})]})}function A({row:e,onOpen:s}){let{baseline:i,governance:a}=e,l=Object.keys(i.pricingVariants).length,n=(a?.activeOverrides.length??0)>0;return(0,t.jsx)("li",{className:"stg:border-b stg:border-border stg:last:border-b-0",children:(0,t.jsxs)("button",{type:"button",onClick:s,className:(0,r.cn)("stg:grid stg:w-full stg:grid-cols-[2fr_1fr_1fr_1fr_0.7fr_1fr] stg:items-center stg:gap-2 stg:px-3 stg:py-2 stg:text-left stg:text-xs","stg:transition-colors stg:hover:bg-accent","stg:focus-visible:outline-none stg:focus-visible:ring-1 stg:focus-visible:ring-ring"),children:[(0,t.jsxs)("span",{className:"stg:min-w-0",children:[(0,t.jsx)("span",{className:"stg:block stg:truncate stg:font-medium stg:text-foreground",children:i.displayName||i.modelId}),(0,t.jsx)(T.TruncatedText,{text:`${i.modelId}${i.featured?" · featured":""}`,className:"stg:block stg:text-[11px] stg:text-muted-foreground"})]}),(0,t.jsx)("span",{className:"stg:text-muted-foreground",children:i.harness}),(0,t.jsx)(C,{baseline:i.pricing?.inputPriceMicrosPerMillion??p,effective:a?.effectiveInputMicrosPerMillion??i.pricing?.inputPriceMicrosPerMillion??p}),(0,t.jsx)(C,{baseline:i.pricing?.outputPriceMicrosPerMillion??p,effective:a?.effectiveOutputMicrosPerMillion??i.pricing?.outputPriceMicrosPerMillion??p}),(0,t.jsx)("span",{className:"stg:text-right stg:text-muted-foreground",children:l>0?l:"—"}),(0,t.jsx)("span",{className:"stg:text-right",children:a?(0,t.jsx)(k,{ledgerReconcilable:a.ledgerReconcilable,hasOverrides:n}):(0,t.jsx)("span",{className:"stg:text-[10px] stg:text-muted-foreground",children:"—"})})]})})}function D({view:e,isDeciding:s,decisionError:a,onDecide:l}){return(0,t.jsxs)("div",{className:"stg:space-y-3",children:[(0,t.jsx)("input",{type:"search",className:(0,r.cn)(g.INPUT_CLASSES,"stg:max-w-xs"),value:e.signOffQuery,onChange:t=>e.setSignOffQuery(t.target.value),placeholder:"Search sign-offs…","aria-label":"Search sign-offs"}),a&&(0,t.jsx)("p",{className:"stg:text-destructive stg:text-xs",role:"alert",children:(0,i.getUserMessage)(a)}),0===e.pendingOverrides.length?(0,t.jsx)("p",{className:"stg:text-xs stg:text-muted-foreground",children:""!==e.signOffQuery.trim()?`No pending sign-offs match "${e.signOffQuery.trim()}".`:"No pricing overrides awaiting a decision."}):(0,t.jsx)("div",{className:"stg:space-y-2",children:e.pendingOverrides.map(e=>(0,t.jsx)(y,{override:e,isSubmitting:s,onDecide:l},e.overrideId))})]})}e.s(["default",0,function(){let e;return(0,t.jsx)(F,{defaultTab:"models"===(e=new URLSearchParams(window.location.search).get("tab"))||"sign-offs"===e?e:void 0})}],720909)}]);
@@ -0,0 +1 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,387093,e=>{"use strict";var s=e.i(843476),t=e.i(522016),r=e.i(20753);e.s(["default",0,function(){let e=(0,r.useSettingsNavGroups)();return(0,s.jsx)("div",{className:"flex flex-col gap-6",children:e.map(e=>(0,s.jsxs)("section",{className:"border-border rounded-lg border p-5",children:[(0,s.jsx)("h2",{className:"text-foreground mb-1 text-sm font-semibold",children:e.label}),(0,s.jsx)("p",{className:"text-muted-foreground mb-4 text-xs",children:e.description}),(0,s.jsx)("div",{className:"flex flex-wrap gap-x-4 gap-y-2",children:e.items.map(e=>(0,s.jsxs)(t.default,{href:e.href,className:"text-foreground hover:text-primary flex items-center gap-1.5 text-sm font-medium transition-colors",children:[(0,s.jsx)(e.icon,{className:"text-muted-foreground size-4 shrink-0"}),e.label]},e.href))})]},e.label))})}])}]);
@@ -0,0 +1,15 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,572247,e=>{"use strict";var t=(0,e.i(171206).__name)(()=>`
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");e.s(["getIconStyles",0,t])},569696,e=>{"use strict";var t=e.i(895727),l=e.i(526290);e.s(["channel",0,(e,o)=>t.default.lang.round(l.default.parse(e)[o])],569696)}]);
@@ -0,0 +1 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,940069,e=>{"use strict";let s={agents:"stigmer:library:agents:scope",skills:"stigmer:library:skills:scope","mcp-servers":"stigmer:library:mcp-servers:scope",workflows:"stigmer:workflows:scope"};e.s(["readPersistedScope",0,function(e){return"all"===localStorage.getItem(s[e])?"all":"org"},"writePersistedScope",0,function(e,i){localStorage.setItem(s[e],i)}])},283086,e=>{"use strict";let s=(0,e.i(475254).default)("sparkles",[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]]);e.s(["Sparkles",0,s],283086)},920744,e=>{"use strict";var s=e.i(843476),i=e.i(271645),l=e.i(522016),r=e.i(107233),t=e.i(283086),a=e.i(541071),o=e.i(174886),n=e.i(778917),c=e.i(727612),d=e.i(451241),u=e.i(940069),m=e.i(610008),g=e.i(845132),p=e.i(586108),x=e.i(297629),h=e.i(966205),f=e.i(10337),k=e.i(846696);let b=[{id:"name",header:"Name",cell:e=>(0,s.jsx)("span",{className:"font-medium text-foreground",children:e.name||e.slug}),sortable:!0,flex:2},{id:"org",header:"Organization",cell:e=>(0,s.jsx)("span",{className:"text-muted-foreground",children:e.org}),flex:1},{id:"description",header:"Description",cell:e=>(0,s.jsx)("span",{className:"line-clamp-1 text-muted-foreground",children:e.description||"—"}),flex:3}];e.s(["SkillListPage",0,function(){let e=(0,x.useActiveOrgSlug)(),y=(0,p.useStigmer)(),{navigateToDetail:j}=(0,d.useLibraryNavigation)(),{confirmState:v,confirm:w,handleConfirm:S,handleCancel:N}=(0,h.useConfirmAction)(),[M,A]=(0,i.useState)(()=>(0,u.readPersistedScope)("skills")),[C,z]=(0,i.useReducer)(e=>e+1,0),P=(0,i.useCallback)(async e=>{if(await w({title:`Delete ${e.name||e.slug}?`,description:"This action cannot be undone. The skill and its content will be permanently removed.",confirmLabel:"Delete",variant:"destructive"}))try{await y.skill.delete(e.id),k.toast.success(`${e.name||e.slug} deleted`),z()}catch{k.toast.error("Failed to delete skill")}},[w,y]),T=(0,i.useCallback)(e=>{A(e),(0,u.writePersistedScope)("skills",e)},[]),I=(0,i.useMemo)(()=>e=>y.skill.list(e),[y]);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"mb-6",children:[(0,s.jsx)("h1",{className:"text-foreground text-xl font-semibold",children:"Skills"}),(0,s.jsx)("p",{className:"text-muted-foreground mt-1 text-sm",children:"Browse and manage skills in your organization."})]}),(0,s.jsx)(m.ResourceWorkbench,{refetchToken:C,listFn:I,org:e,columns:b,scope:M,onScopeChange:T,defaultViewMode:"cards",viewModes:["table","cards"],viewModeStorageKey:"stigmer:workbench:skills:viewMode",searchPlaceholder:"Search skills…",emptyIcon:(0,s.jsx)(t.Sparkles,{className:"size-10","aria-hidden":"true"}),emptyTitle:"No skills yet",emptyDescription:"Upload a skill package to provide reusable instructions and context for your agents.",headerAction:(0,s.jsxs)(l.default,{href:"/library/skills/new",className:"inline-flex items-center gap-1.5 rounded-md bg-primary px-3 py-1.5 text-sm font-medium text-primary-foreground transition-colors hover:bg-primary-hover focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",children:[(0,s.jsx)(r.Plus,{className:"size-3.5","aria-hidden":"true"}),"Upload skill"]}),emptyAction:(0,s.jsxs)(l.default,{href:"/library/skills/new",className:"inline-flex items-center gap-1.5 rounded-md bg-primary px-3 py-1.5 text-xs font-medium text-primary-foreground transition-colors hover:bg-primary-hover focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",children:[(0,s.jsx)(r.Plus,{className:"size-3.5","aria-hidden":"true"}),"Upload skill"]}),onItemClick:e=>j("skills",e.org,e.slug),renderItemAction:e=>(0,s.jsx)("div",{onClick:e=>e.stopPropagation(),children:(0,s.jsxs)(g.ActionMenu,{children:[(0,s.jsx)(g.ActionMenu.Trigger,{"aria-label":`Actions for ${e.name||e.slug}`,children:(0,s.jsx)(a.MoreHorizontal,{className:"size-4"})}),(0,s.jsxs)(g.ActionMenu.Content,{children:[(0,s.jsx)(g.ActionMenu.Item,{icon:(0,s.jsx)(n.ExternalLink,{className:"size-4"}),onSelect:()=>j("skills",e.org,e.slug),children:"View details"}),(0,s.jsx)(g.ActionMenu.Item,{icon:(0,s.jsx)(o.Copy,{className:"size-4"}),onSelect:()=>{navigator.clipboard.writeText(`${e.org}/${e.slug}`),k.toast.success("Copied skill ID")},children:"Copy ID"}),(0,s.jsx)(g.ActionMenu.Separator,{}),(0,s.jsx)(g.ActionMenu.Item,{icon:(0,s.jsx)(c.Trash2,{className:"size-4"}),variant:"destructive",onSelect:()=>P(e),children:"Delete"})]})]})}),"aria-label":"Skill workbench"}),(0,s.jsx)(f.ConfirmDialog,{state:v,onConfirm:S,onCancel:N})]})}])}]);