@bkm016/basalt 0.1.32 → 0.1.33

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 (703) hide show
  1. package/{chunk-nzpzjbpp.js → chunk-3j26jsy0.js} +1 -1
  2. package/{chunk-54qzhq9t.js → chunk-5ggyf53b.js} +2 -2
  3. package/{chunk-scq1dz62.js → chunk-fb2ydc2s.js} +4 -4
  4. package/{chunk-3dtgkgam.js → chunk-nkmvqcge.js} +143 -134
  5. package/compiled.js +1 -1
  6. package/package.json +1 -1
  7. package/ui-test-worker.js +1 -1
  8. package/web/{chunk-v5q92q5d.js → chunk-07kt1zpn.js} +1 -1
  9. package/web/chunk-07kt1zpn.js.br +0 -0
  10. package/web/chunk-07kt1zpn.js.gz +0 -0
  11. package/web/{chunk-d9c65yrg.js → chunk-0d068bmj.js} +1 -1
  12. package/web/chunk-0d068bmj.js.br +0 -0
  13. package/web/chunk-0d068bmj.js.gz +0 -0
  14. package/web/{chunk-f0kc6vf9.js → chunk-0m15ghn0.js} +2 -2
  15. package/web/chunk-0m15ghn0.js.br +0 -0
  16. package/web/chunk-0m15ghn0.js.gz +0 -0
  17. package/web/chunk-0swykhgr.js +2 -0
  18. package/web/chunk-0swykhgr.js.br +0 -0
  19. package/web/chunk-0swykhgr.js.gz +0 -0
  20. package/web/{chunk-3s4mqjna.js → chunk-100a4th6.js} +3 -3
  21. package/web/chunk-100a4th6.js.br +0 -0
  22. package/web/chunk-100a4th6.js.gz +0 -0
  23. package/web/{chunk-0n134mev.js → chunk-1mdvm20t.js} +3 -3
  24. package/web/chunk-1mdvm20t.js.br +0 -0
  25. package/web/chunk-1mdvm20t.js.gz +0 -0
  26. package/web/chunk-1p7wa1rq.js +1 -0
  27. package/web/chunk-1p7wa1rq.js.br +0 -0
  28. package/web/chunk-1p7wa1rq.js.gz +0 -0
  29. package/web/{chunk-we9q8a9q.js → chunk-20gcnbgn.js} +2 -2
  30. package/web/chunk-20gcnbgn.js.br +0 -0
  31. package/web/chunk-20gcnbgn.js.gz +0 -0
  32. package/web/chunk-2grspw9t.js +1 -0
  33. package/web/chunk-2grspw9t.js.br +0 -0
  34. package/web/chunk-2grspw9t.js.gz +0 -0
  35. package/web/chunk-2nwvdqxm.js +1 -0
  36. package/web/chunk-2nwvdqxm.js.br +0 -0
  37. package/web/chunk-2nwvdqxm.js.gz +0 -0
  38. package/web/{chunk-pa0sqjjk.js → chunk-2zz8t49r.js} +1 -1
  39. package/web/chunk-2zz8t49r.js.br +0 -0
  40. package/web/chunk-2zz8t49r.js.gz +0 -0
  41. package/web/{chunk-tanv869p.js → chunk-34g2xrgq.js} +2 -2
  42. package/web/chunk-34g2xrgq.js.br +0 -0
  43. package/web/chunk-34g2xrgq.js.gz +0 -0
  44. package/web/{chunk-cjbqey5q.js → chunk-34q3az4b.js} +1 -1
  45. package/web/chunk-34q3az4b.js.br +0 -0
  46. package/web/chunk-34q3az4b.js.gz +0 -0
  47. package/web/{chunk-gw1d4wmd.js → chunk-39jqdq4r.js} +1 -1
  48. package/web/chunk-39jqdq4r.js.br +0 -0
  49. package/web/chunk-39jqdq4r.js.gz +0 -0
  50. package/web/{chunk-p01t2t8w.js → chunk-3d2fm4qc.js} +1 -1
  51. package/web/chunk-3d2fm4qc.js.br +0 -0
  52. package/web/chunk-3d2fm4qc.js.gz +0 -0
  53. package/web/{chunk-98zd6fb7.js → chunk-3s16fbrf.js} +1 -1
  54. package/web/chunk-3s16fbrf.js.br +0 -0
  55. package/web/chunk-3s16fbrf.js.gz +0 -0
  56. package/web/{chunk-hmc93mm5.js → chunk-3vsey6mw.js} +1 -1
  57. package/web/chunk-3vsey6mw.js.br +0 -0
  58. package/web/chunk-3vsey6mw.js.gz +0 -0
  59. package/web/{chunk-4rbzcphw.js → chunk-3y29sc9c.js} +5 -5
  60. package/web/chunk-3y29sc9c.js.br +0 -0
  61. package/web/chunk-3y29sc9c.js.gz +0 -0
  62. package/web/{chunk-8gvxttsz.js → chunk-40f59ze9.js} +1 -1
  63. package/web/chunk-40f59ze9.js.br +0 -0
  64. package/web/chunk-40f59ze9.js.gz +0 -0
  65. package/web/chunk-414npx47.js +1 -0
  66. package/web/chunk-414npx47.js.br +0 -0
  67. package/web/chunk-414npx47.js.gz +0 -0
  68. package/web/{chunk-wjv2q7b1.js → chunk-495sjpc6.js} +1 -1
  69. package/web/chunk-495sjpc6.js.br +0 -0
  70. package/web/chunk-495sjpc6.js.gz +0 -0
  71. package/web/{chunk-wh028xj6.js → chunk-4ab1dv3g.js} +19 -19
  72. package/web/chunk-4ab1dv3g.js.br +0 -0
  73. package/web/chunk-4ab1dv3g.js.gz +0 -0
  74. package/web/{chunk-02v1btpv.js → chunk-545zx869.js} +2 -2
  75. package/web/chunk-545zx869.js.br +0 -0
  76. package/web/chunk-545zx869.js.gz +0 -0
  77. package/web/{chunk-cgbz97dr.js → chunk-55mx05jg.js} +2 -2
  78. package/web/chunk-55mx05jg.js.br +0 -0
  79. package/web/{chunk-cgbz97dr.js.gz → chunk-55mx05jg.js.gz} +0 -0
  80. package/web/{chunk-8qda1pw3.js → chunk-58xhn7ry.js} +1 -1
  81. package/web/chunk-58xhn7ry.js.br +0 -0
  82. package/web/chunk-58xhn7ry.js.gz +0 -0
  83. package/web/chunk-67pa4950.js +1 -0
  84. package/web/chunk-67pa4950.js.br +0 -0
  85. package/web/chunk-67pa4950.js.gz +0 -0
  86. package/web/chunk-690qxds4.js +1 -0
  87. package/web/chunk-690qxds4.js.br +0 -0
  88. package/web/chunk-690qxds4.js.gz +0 -0
  89. package/web/{chunk-vrakntde.js → chunk-6ana63fs.js} +8 -8
  90. package/web/chunk-6ana63fs.js.br +0 -0
  91. package/web/chunk-6ana63fs.js.gz +0 -0
  92. package/web/{chunk-kvz46sd7.js → chunk-6ew54553.js} +2 -2
  93. package/web/chunk-6ew54553.js.br +0 -0
  94. package/web/chunk-6ew54553.js.gz +0 -0
  95. package/web/{chunk-ev6xj0qs.js → chunk-6f1q0tjv.js} +107 -107
  96. package/web/chunk-6f1q0tjv.js.br +0 -0
  97. package/web/chunk-6f1q0tjv.js.gz +0 -0
  98. package/web/chunk-6gpzz5wm.js +1 -0
  99. package/web/chunk-6gpzz5wm.js.br +0 -0
  100. package/web/chunk-6gpzz5wm.js.gz +0 -0
  101. package/web/{chunk-qz8yct8b.js → chunk-71g6vrx9.js} +1 -1
  102. package/web/chunk-71g6vrx9.js.br +0 -0
  103. package/web/chunk-71g6vrx9.js.gz +0 -0
  104. package/web/chunk-77dnqrb6.js +2 -0
  105. package/web/chunk-77dnqrb6.js.br +0 -0
  106. package/web/chunk-77dnqrb6.js.gz +0 -0
  107. package/web/{chunk-02xgh26g.js → chunk-7fdrwy21.js} +1 -1
  108. package/web/{chunk-02xgh26g.js.br → chunk-7fdrwy21.js.br} +0 -0
  109. package/web/chunk-7fdrwy21.js.gz +0 -0
  110. package/web/{chunk-g5ngaf53.js → chunk-84s7821x.js} +2 -2
  111. package/web/chunk-84s7821x.js.br +0 -0
  112. package/web/chunk-84s7821x.js.gz +0 -0
  113. package/web/{chunk-pss11x84.js → chunk-8e5qd73v.js} +2 -2
  114. package/web/chunk-8e5qd73v.js.br +0 -0
  115. package/web/chunk-8e5qd73v.js.gz +0 -0
  116. package/web/{chunk-mtzj1zyw.js → chunk-8kyj945c.js} +2 -2
  117. package/web/chunk-8kyj945c.js.br +0 -0
  118. package/web/chunk-8kyj945c.js.gz +0 -0
  119. package/web/{chunk-a3qa5c8q.js → chunk-9b0evht1.js} +3 -3
  120. package/web/chunk-9b0evht1.js.br +0 -0
  121. package/web/chunk-9b0evht1.js.gz +0 -0
  122. package/web/{chunk-x0zvwdq6.js → chunk-9j7v0e4v.js} +2 -2
  123. package/web/chunk-9j7v0e4v.js.br +0 -0
  124. package/web/chunk-9j7v0e4v.js.gz +0 -0
  125. package/web/{chunk-magq6xms.js → chunk-9jb5xwya.js} +2 -2
  126. package/web/chunk-9jb5xwya.js.br +0 -0
  127. package/web/chunk-9jb5xwya.js.gz +0 -0
  128. package/web/chunk-9kf8arqg.js +1 -0
  129. package/web/chunk-9kf8arqg.js.br +0 -0
  130. package/web/chunk-9kf8arqg.js.gz +0 -0
  131. package/web/{chunk-ads3r60t.js → chunk-9msmea44.js} +1 -1
  132. package/web/chunk-9msmea44.js.br +0 -0
  133. package/web/chunk-9msmea44.js.gz +0 -0
  134. package/web/{chunk-n5hvbjdt.js → chunk-a7q85665.js} +3 -3
  135. package/web/chunk-a7q85665.js.br +0 -0
  136. package/web/chunk-a7q85665.js.gz +0 -0
  137. package/web/chunk-aan5qk6x.js +1 -0
  138. package/web/chunk-aan5qk6x.js.br +0 -0
  139. package/web/chunk-aan5qk6x.js.gz +0 -0
  140. package/web/{chunk-qxyanf4n.js → chunk-b9cjgxr1.js} +2 -2
  141. package/web/chunk-b9cjgxr1.js.br +0 -0
  142. package/web/chunk-b9cjgxr1.js.gz +0 -0
  143. package/web/{chunk-wgezeg5k.js → chunk-baaattjv.js} +1 -1
  144. package/web/chunk-baaattjv.js.br +0 -0
  145. package/web/chunk-baaattjv.js.gz +0 -0
  146. package/web/{chunk-psymen6a.js → chunk-bj9m08f9.js} +1 -1
  147. package/web/chunk-bj9m08f9.js.br +0 -0
  148. package/web/chunk-bj9m08f9.js.gz +0 -0
  149. package/web/{chunk-wydnkdtp.js → chunk-bm4fvq6q.js} +4 -4
  150. package/web/chunk-bm4fvq6q.js.br +0 -0
  151. package/web/chunk-bm4fvq6q.js.gz +0 -0
  152. package/web/chunk-c4g2k9wp.js +1 -0
  153. package/web/chunk-c4g2k9wp.js.br +0 -0
  154. package/web/chunk-c4g2k9wp.js.gz +0 -0
  155. package/web/{chunk-batey85v.js → chunk-cnptxet3.js} +2 -2
  156. package/web/chunk-cnptxet3.js.br +0 -0
  157. package/web/chunk-cnptxet3.js.gz +0 -0
  158. package/web/{chunk-yjan9xfw.js → chunk-d5n2yz4e.js} +2 -2
  159. package/web/chunk-d5n2yz4e.js.br +0 -0
  160. package/web/chunk-d5n2yz4e.js.gz +0 -0
  161. package/web/{chunk-54cy79n2.js → chunk-db2jge7w.js} +2 -2
  162. package/web/chunk-db2jge7w.js.br +0 -0
  163. package/web/chunk-db2jge7w.js.gz +0 -0
  164. package/web/chunk-dsxjv5an.js +1 -0
  165. package/web/chunk-dsxjv5an.js.br +0 -0
  166. package/web/chunk-dsxjv5an.js.gz +0 -0
  167. package/web/{chunk-qb820yv8.js → chunk-e362x35y.js} +1 -1
  168. package/web/chunk-e362x35y.js.br +0 -0
  169. package/web/chunk-e362x35y.js.gz +0 -0
  170. package/web/{chunk-cqce094e.js → chunk-e6jfnajp.js} +9 -9
  171. package/web/chunk-e6jfnajp.js.br +0 -0
  172. package/web/chunk-e6jfnajp.js.gz +0 -0
  173. package/web/{chunk-szfzt9ph.js → chunk-ex34kdxk.js} +2 -2
  174. package/web/chunk-ex34kdxk.js.br +0 -0
  175. package/web/chunk-ex34kdxk.js.gz +0 -0
  176. package/web/chunk-exa2z1b4.js +1 -0
  177. package/web/chunk-exa2z1b4.js.br +0 -0
  178. package/web/chunk-exa2z1b4.js.gz +0 -0
  179. package/web/{chunk-x9b1052x.js → chunk-f5wyg9zh.js} +2 -2
  180. package/web/chunk-f5wyg9zh.js.br +0 -0
  181. package/web/chunk-f5wyg9zh.js.gz +0 -0
  182. package/web/{chunk-gp3356tf.js → chunk-fjvd2dx2.js} +1 -1
  183. package/web/chunk-fjvd2dx2.js.br +0 -0
  184. package/web/chunk-fjvd2dx2.js.gz +0 -0
  185. package/web/chunk-fs39pqet.js +2 -0
  186. package/web/chunk-fs39pqet.js.br +0 -0
  187. package/web/chunk-fs39pqet.js.gz +0 -0
  188. package/web/{chunk-2vh05ags.js → chunk-gvndjaan.js} +2 -2
  189. package/web/chunk-gvndjaan.js.br +0 -0
  190. package/web/{chunk-2vh05ags.js.gz → chunk-gvndjaan.js.gz} +0 -0
  191. package/web/{chunk-r992px5p.js → chunk-h3618s7t.js} +2 -2
  192. package/web/chunk-h3618s7t.js.br +0 -0
  193. package/web/chunk-h3618s7t.js.gz +0 -0
  194. package/web/chunk-hks91ztk.js +8 -0
  195. package/web/chunk-hks91ztk.js.br +0 -0
  196. package/web/chunk-hks91ztk.js.gz +0 -0
  197. package/web/{chunk-pczbf6w0.js → chunk-hqd97ez8.js} +4 -4
  198. package/web/chunk-hqd97ez8.js.br +0 -0
  199. package/web/chunk-hqd97ez8.js.gz +0 -0
  200. package/web/{chunk-yqzsx086.js → chunk-hta68vm8.js} +2 -2
  201. package/web/chunk-hta68vm8.js.br +0 -0
  202. package/web/chunk-hta68vm8.js.gz +0 -0
  203. package/web/chunk-jcbvhp3h.js +1 -0
  204. package/web/chunk-jcbvhp3h.js.br +0 -0
  205. package/web/chunk-jcbvhp3h.js.gz +0 -0
  206. package/web/chunk-jw6e38cy.js +1 -0
  207. package/web/chunk-jw6e38cy.js.br +0 -0
  208. package/web/chunk-jw6e38cy.js.gz +0 -0
  209. package/web/{chunk-24syb9ar.js → chunk-jzp1qd92.js} +1 -1
  210. package/web/chunk-jzp1qd92.js.br +0 -0
  211. package/web/chunk-jzp1qd92.js.gz +0 -0
  212. package/web/{chunk-14t6ms50.js → chunk-kg39a24q.js} +1 -1
  213. package/web/chunk-kg39a24q.js.br +0 -0
  214. package/web/chunk-kg39a24q.js.gz +0 -0
  215. package/web/{chunk-ezx3f7hw.js → chunk-kj75rme3.js} +1 -1
  216. package/web/chunk-kj75rme3.js.br +0 -0
  217. package/web/chunk-kj75rme3.js.gz +0 -0
  218. package/web/chunk-kvxmwmen.js +1 -0
  219. package/web/chunk-kvxmwmen.js.br +0 -0
  220. package/web/chunk-kvxmwmen.js.gz +0 -0
  221. package/web/chunk-kzdmsaet.js +1 -0
  222. package/web/chunk-kzdmsaet.js.br +0 -0
  223. package/web/chunk-kzdmsaet.js.gz +0 -0
  224. package/web/{chunk-faestmhg.js → chunk-m203pzza.js} +2 -2
  225. package/web/chunk-m203pzza.js.br +0 -0
  226. package/web/chunk-m203pzza.js.gz +0 -0
  227. package/web/{chunk-zcetrm2j.js → chunk-m3xw41vq.js} +1 -1
  228. package/web/chunk-m3xw41vq.js.br +0 -0
  229. package/web/chunk-m3xw41vq.js.gz +0 -0
  230. package/web/{chunk-qm88s0at.js → chunk-m8jcx13t.js} +2 -2
  231. package/web/chunk-m8jcx13t.js.br +0 -0
  232. package/web/chunk-m8jcx13t.js.gz +0 -0
  233. package/web/{chunk-qpmyxj27.js → chunk-mpgz1bj6.js} +1 -1
  234. package/web/chunk-mpgz1bj6.js.br +0 -0
  235. package/web/chunk-mpgz1bj6.js.gz +0 -0
  236. package/web/{chunk-7aqr59hm.js → chunk-mzagmpq5.js} +1 -1
  237. package/web/chunk-mzagmpq5.js.br +0 -0
  238. package/web/chunk-mzagmpq5.js.gz +0 -0
  239. package/web/chunk-n51q6d6e.js +1 -0
  240. package/web/chunk-n51q6d6e.js.br +0 -0
  241. package/web/chunk-n51q6d6e.js.gz +0 -0
  242. package/web/chunk-nbf2zaaj.js +1 -0
  243. package/web/chunk-nbf2zaaj.js.br +0 -0
  244. package/web/chunk-nbf2zaaj.js.gz +0 -0
  245. package/web/chunk-ngsv0xfb.js +1 -0
  246. package/web/chunk-ngsv0xfb.js.br +0 -0
  247. package/web/chunk-ngsv0xfb.js.gz +0 -0
  248. package/web/chunk-nxd7dn08.js +1 -0
  249. package/web/chunk-nxd7dn08.js.br +0 -0
  250. package/web/chunk-nxd7dn08.js.gz +0 -0
  251. package/web/chunk-p44ezwgh.js +1 -0
  252. package/web/chunk-p44ezwgh.js.br +0 -0
  253. package/web/chunk-p44ezwgh.js.gz +0 -0
  254. package/web/{chunk-ece0ex2b.js → chunk-pdg3bxc0.js} +2 -2
  255. package/web/chunk-pdg3bxc0.js.br +0 -0
  256. package/web/chunk-pdg3bxc0.js.gz +0 -0
  257. package/web/chunk-pjbp0xwn.css +1 -0
  258. package/web/chunk-pjbp0xwn.css.br +0 -0
  259. package/web/chunk-pjbp0xwn.css.gz +0 -0
  260. package/web/{chunk-cm5cmpxr.js → chunk-pkbyh261.js} +1 -1
  261. package/web/chunk-pkbyh261.js.br +0 -0
  262. package/web/chunk-pkbyh261.js.gz +0 -0
  263. package/web/{chunk-67pmbk1h.js → chunk-q3q25jr9.js} +1 -1
  264. package/web/chunk-q3q25jr9.js.br +0 -0
  265. package/web/chunk-q3q25jr9.js.gz +0 -0
  266. package/web/{chunk-6ebp7qd7.js → chunk-q5nr5wjn.js} +6 -6
  267. package/web/chunk-q5nr5wjn.js.br +0 -0
  268. package/web/chunk-q5nr5wjn.js.gz +0 -0
  269. package/web/{chunk-n6wz1xv2.js → chunk-qd9y8r3g.js} +2 -2
  270. package/web/chunk-qd9y8r3g.js.br +0 -0
  271. package/web/chunk-qd9y8r3g.js.gz +0 -0
  272. package/web/{chunk-86f9x5fs.js → chunk-qm039dan.js} +1 -1
  273. package/web/chunk-qm039dan.js.br +0 -0
  274. package/web/chunk-qm039dan.js.gz +0 -0
  275. package/web/chunk-qqp31fyy.js +1 -0
  276. package/web/chunk-qqp31fyy.js.br +0 -0
  277. package/web/chunk-qqp31fyy.js.gz +0 -0
  278. package/web/chunk-r7st369j.js +1 -0
  279. package/web/chunk-r7st369j.js.br +0 -0
  280. package/web/chunk-r7st369j.js.gz +0 -0
  281. package/web/chunk-rc3sv7v4.js +1 -0
  282. package/web/chunk-rc3sv7v4.js.br +0 -0
  283. package/web/chunk-rc3sv7v4.js.gz +0 -0
  284. package/web/chunk-rj1rp0tc.js +1 -0
  285. package/web/chunk-rj1rp0tc.js.br +0 -0
  286. package/web/chunk-rj1rp0tc.js.gz +0 -0
  287. package/web/{chunk-43h0rwsj.js → chunk-rtk95qme.js} +1 -1
  288. package/web/chunk-rtk95qme.js.br +0 -0
  289. package/web/chunk-rtk95qme.js.gz +0 -0
  290. package/web/{chunk-rxadtk6j.js → chunk-s4rfkyqn.js} +3 -3
  291. package/web/chunk-s4rfkyqn.js.br +0 -0
  292. package/web/{chunk-rxadtk6j.js.gz → chunk-s4rfkyqn.js.gz} +0 -0
  293. package/web/{chunk-29mff7z7.js → chunk-s6a0gfv3.js} +1 -1
  294. package/web/chunk-s6a0gfv3.js.br +0 -0
  295. package/web/chunk-s6a0gfv3.js.gz +0 -0
  296. package/web/{chunk-kqpj6dnm.js → chunk-s7rwbxr5.js} +2 -2
  297. package/web/chunk-s7rwbxr5.js.br +0 -0
  298. package/web/chunk-s7rwbxr5.js.gz +0 -0
  299. package/web/{chunk-qhwsegs1.js → chunk-s8f6v2nn.js} +1 -1
  300. package/web/chunk-s8f6v2nn.js.br +0 -0
  301. package/web/chunk-s8f6v2nn.js.gz +0 -0
  302. package/web/{chunk-9hkz2jgq.js → chunk-sawc81kc.js} +49 -49
  303. package/web/chunk-sawc81kc.js.br +0 -0
  304. package/web/chunk-sawc81kc.js.gz +0 -0
  305. package/web/{chunk-j94hffw3.js → chunk-sex2gevj.js} +2 -2
  306. package/web/chunk-sex2gevj.js.br +0 -0
  307. package/web/chunk-sex2gevj.js.gz +0 -0
  308. package/web/{chunk-nfz5qmem.js → chunk-smmdqmcy.js} +1 -1
  309. package/web/chunk-smmdqmcy.js.br +0 -0
  310. package/web/chunk-smmdqmcy.js.gz +0 -0
  311. package/web/{chunk-sk3ssmwp.js → chunk-tntwwpyh.js} +2 -2
  312. package/web/chunk-tntwwpyh.js.br +0 -0
  313. package/web/chunk-tntwwpyh.js.gz +0 -0
  314. package/web/{chunk-szwh742y.js → chunk-tpzyyc2z.js} +2 -2
  315. package/web/{chunk-szwh742y.js.br → chunk-tpzyyc2z.js.br} +0 -0
  316. package/web/{chunk-szwh742y.js.gz → chunk-tpzyyc2z.js.gz} +0 -0
  317. package/web/{chunk-jw830br8.js → chunk-txhvq81f.js} +3 -3
  318. package/web/chunk-txhvq81f.js.br +0 -0
  319. package/web/chunk-txhvq81f.js.gz +0 -0
  320. package/web/{chunk-3srybd24.js → chunk-txtm71rz.js} +1 -1
  321. package/web/chunk-txtm71rz.js.br +0 -0
  322. package/web/chunk-txtm71rz.js.gz +0 -0
  323. package/web/chunk-tykcqm6v.js +2 -0
  324. package/web/chunk-tykcqm6v.js.br +0 -0
  325. package/web/chunk-tykcqm6v.js.gz +0 -0
  326. package/web/{chunk-whprx2wg.js → chunk-tyrmd7j6.js} +1 -1
  327. package/web/chunk-tyrmd7j6.js.br +0 -0
  328. package/web/chunk-tyrmd7j6.js.gz +0 -0
  329. package/web/{chunk-ax4wvgv9.js → chunk-v6ebn3sf.js} +2 -2
  330. package/web/chunk-v6ebn3sf.js.br +0 -0
  331. package/web/chunk-v6ebn3sf.js.gz +0 -0
  332. package/web/{chunk-26y868vk.js → chunk-vbx7t0h5.js} +6 -6
  333. package/web/chunk-vbx7t0h5.js.br +0 -0
  334. package/web/chunk-vbx7t0h5.js.gz +0 -0
  335. package/web/chunk-vj3wz0a2.js +1 -0
  336. package/web/chunk-vj3wz0a2.js.br +0 -0
  337. package/web/chunk-vj3wz0a2.js.gz +0 -0
  338. package/web/{chunk-1fv6rp41.js → chunk-vndrjeyr.js} +2 -2
  339. package/web/chunk-vndrjeyr.js.br +0 -0
  340. package/web/chunk-vndrjeyr.js.gz +0 -0
  341. package/web/{chunk-ggfwnr7a.js → chunk-vqgkd7q8.js} +1 -1
  342. package/web/chunk-vqgkd7q8.js.br +0 -0
  343. package/web/chunk-vqgkd7q8.js.gz +0 -0
  344. package/web/chunk-vvsfwjrg.js +1 -0
  345. package/web/chunk-vvsfwjrg.js.br +0 -0
  346. package/web/chunk-vvsfwjrg.js.gz +0 -0
  347. package/web/{chunk-1fp0r6da.js → chunk-w0k63gap.js} +2 -2
  348. package/web/chunk-w0k63gap.js.br +0 -0
  349. package/web/chunk-w0k63gap.js.gz +0 -0
  350. package/web/chunk-wafwgky9.js +1 -0
  351. package/web/chunk-wafwgky9.js.br +0 -0
  352. package/web/chunk-wafwgky9.js.gz +0 -0
  353. package/web/chunk-wdd9pasx.js +1 -0
  354. package/web/chunk-wdd9pasx.js.br +0 -0
  355. package/web/chunk-wdd9pasx.js.gz +0 -0
  356. package/web/{chunk-qzeb7kj6.js → chunk-wk89vrvf.js} +1 -1
  357. package/web/chunk-wk89vrvf.js.br +0 -0
  358. package/web/chunk-wk89vrvf.js.gz +0 -0
  359. package/web/{chunk-jrh3s3f5.js → chunk-wqjn3yz1.js} +42 -42
  360. package/web/chunk-wqjn3yz1.js.br +0 -0
  361. package/web/chunk-wqjn3yz1.js.gz +0 -0
  362. package/web/{chunk-ccdww2gj.js → chunk-wrej9qt0.js} +1 -1
  363. package/web/chunk-wrej9qt0.js.br +0 -0
  364. package/web/chunk-wrej9qt0.js.gz +0 -0
  365. package/web/{chunk-xwyvptzt.js → chunk-xbjv549c.js} +2 -2
  366. package/web/chunk-xbjv549c.js.br +0 -0
  367. package/web/chunk-xbjv549c.js.gz +0 -0
  368. package/web/{chunk-2z5tpzd0.js → chunk-xmp1ag6z.js} +1 -1
  369. package/web/chunk-xmp1ag6z.js.br +0 -0
  370. package/web/chunk-xmp1ag6z.js.gz +0 -0
  371. package/web/{chunk-1c1jdx2r.js → chunk-xsqd38a2.js} +4 -4
  372. package/web/chunk-xsqd38a2.js.br +0 -0
  373. package/web/chunk-xsqd38a2.js.gz +0 -0
  374. package/web/{chunk-d0qb5kr7.js → chunk-y2fbz356.js} +1 -1
  375. package/web/chunk-y2fbz356.js.br +0 -0
  376. package/web/chunk-y2fbz356.js.gz +0 -0
  377. package/web/chunk-y48mj5d7.js +1 -0
  378. package/web/chunk-y48mj5d7.js.br +0 -0
  379. package/web/chunk-y48mj5d7.js.gz +0 -0
  380. package/web/chunk-yebmbyrj.js +1 -0
  381. package/web/chunk-yebmbyrj.js.br +2 -0
  382. package/web/chunk-yebmbyrj.js.gz +0 -0
  383. package/web/{chunk-9b43td2b.js → chunk-ypytxmn6.js} +1 -1
  384. package/web/chunk-ypytxmn6.js.br +0 -0
  385. package/web/chunk-ypytxmn6.js.gz +0 -0
  386. package/web/{chunk-35zjz7ms.js → chunk-z6jy8edk.js} +5 -5
  387. package/web/chunk-z6jy8edk.js.br +0 -0
  388. package/web/chunk-z6jy8edk.js.gz +0 -0
  389. package/web/{chunk-7qnxv6xx.js → chunk-zg5n1hx4.js} +1 -1
  390. package/web/chunk-zg5n1hx4.js.br +0 -0
  391. package/web/chunk-zg5n1hx4.js.gz +0 -0
  392. package/web/{chunk-tpps3mfw.js → chunk-zmrd0bnc.js} +2 -2
  393. package/web/chunk-zmrd0bnc.js.br +0 -0
  394. package/web/chunk-zmrd0bnc.js.gz +0 -0
  395. package/web/{chunk-ct6hkz49.js → chunk-zqm6n89p.js} +1 -1
  396. package/web/chunk-zqm6n89p.js.br +0 -0
  397. package/web/chunk-zqm6n89p.js.gz +0 -0
  398. package/web/chunk-zvat895r.js +1 -0
  399. package/web/chunk-zvat895r.js.br +0 -0
  400. package/web/chunk-zvat895r.js.gz +0 -0
  401. package/web/chunk-zxt17pcp.js +1 -0
  402. package/web/chunk-zxt17pcp.js.br +0 -0
  403. package/web/chunk-zxt17pcp.js.gz +0 -0
  404. package/web/index.html +1 -1
  405. package/web/index.html.br +0 -0
  406. package/web/index.html.gz +0 -0
  407. package/web/chunk-02v1btpv.js.br +0 -0
  408. package/web/chunk-02v1btpv.js.gz +0 -0
  409. package/web/chunk-02xgh26g.js.gz +0 -0
  410. package/web/chunk-0n134mev.js.br +0 -0
  411. package/web/chunk-0n134mev.js.gz +0 -0
  412. package/web/chunk-14t6ms50.js.br +0 -0
  413. package/web/chunk-14t6ms50.js.gz +0 -0
  414. package/web/chunk-17j1pnvx.js +0 -1
  415. package/web/chunk-17j1pnvx.js.br +0 -0
  416. package/web/chunk-17j1pnvx.js.gz +0 -0
  417. package/web/chunk-19qs8qhf.js +0 -2
  418. package/web/chunk-19qs8qhf.js.br +0 -0
  419. package/web/chunk-19qs8qhf.js.gz +0 -0
  420. package/web/chunk-1c1jdx2r.js.br +0 -0
  421. package/web/chunk-1c1jdx2r.js.gz +0 -0
  422. package/web/chunk-1fp0r6da.js.br +0 -0
  423. package/web/chunk-1fp0r6da.js.gz +0 -0
  424. package/web/chunk-1fv6rp41.js.br +0 -0
  425. package/web/chunk-1fv6rp41.js.gz +0 -0
  426. package/web/chunk-1r8npw1h.js +0 -1
  427. package/web/chunk-1r8npw1h.js.br +0 -0
  428. package/web/chunk-1r8npw1h.js.gz +0 -0
  429. package/web/chunk-215gszpx.js +0 -1
  430. package/web/chunk-215gszpx.js.br +0 -0
  431. package/web/chunk-215gszpx.js.gz +0 -0
  432. package/web/chunk-2372y9qw.css +0 -1
  433. package/web/chunk-2372y9qw.css.br +0 -0
  434. package/web/chunk-2372y9qw.css.gz +0 -0
  435. package/web/chunk-24syb9ar.js.br +0 -0
  436. package/web/chunk-24syb9ar.js.gz +0 -0
  437. package/web/chunk-26y868vk.js.br +0 -0
  438. package/web/chunk-26y868vk.js.gz +0 -0
  439. package/web/chunk-29mff7z7.js.br +0 -0
  440. package/web/chunk-29mff7z7.js.gz +0 -0
  441. package/web/chunk-2vh05ags.js.br +0 -0
  442. package/web/chunk-2z5tpzd0.js.br +0 -2
  443. package/web/chunk-2z5tpzd0.js.gz +0 -0
  444. package/web/chunk-35zjz7ms.js.br +0 -0
  445. package/web/chunk-35zjz7ms.js.gz +0 -0
  446. package/web/chunk-3q8tjjp1.js +0 -1
  447. package/web/chunk-3q8tjjp1.js.br +0 -2
  448. package/web/chunk-3q8tjjp1.js.gz +0 -0
  449. package/web/chunk-3s4mqjna.js.br +0 -0
  450. package/web/chunk-3s4mqjna.js.gz +0 -0
  451. package/web/chunk-3srybd24.js.br +0 -0
  452. package/web/chunk-3srybd24.js.gz +0 -0
  453. package/web/chunk-3zsfd0hv.js +0 -1
  454. package/web/chunk-3zsfd0hv.js.br +0 -0
  455. package/web/chunk-3zsfd0hv.js.gz +0 -0
  456. package/web/chunk-43h0rwsj.js.br +0 -0
  457. package/web/chunk-43h0rwsj.js.gz +0 -0
  458. package/web/chunk-4gehgwdn.js +0 -1
  459. package/web/chunk-4gehgwdn.js.br +0 -0
  460. package/web/chunk-4gehgwdn.js.gz +0 -0
  461. package/web/chunk-4q1j0ehq.js +0 -1
  462. package/web/chunk-4q1j0ehq.js.br +0 -2
  463. package/web/chunk-4q1j0ehq.js.gz +0 -0
  464. package/web/chunk-4rbzcphw.js.br +0 -0
  465. package/web/chunk-4rbzcphw.js.gz +0 -0
  466. package/web/chunk-4xvh57dr.js +0 -1
  467. package/web/chunk-4xvh57dr.js.br +0 -0
  468. package/web/chunk-4xvh57dr.js.gz +0 -0
  469. package/web/chunk-54cy79n2.js.br +0 -0
  470. package/web/chunk-54cy79n2.js.gz +0 -0
  471. package/web/chunk-5v7dyp6t.js +0 -2
  472. package/web/chunk-5v7dyp6t.js.br +0 -0
  473. package/web/chunk-5v7dyp6t.js.gz +0 -0
  474. package/web/chunk-5xm6c0r0.js +0 -1
  475. package/web/chunk-5xm6c0r0.js.br +0 -0
  476. package/web/chunk-5xm6c0r0.js.gz +0 -0
  477. package/web/chunk-67pmbk1h.js.br +0 -0
  478. package/web/chunk-67pmbk1h.js.gz +0 -0
  479. package/web/chunk-6ebp7qd7.js.br +0 -0
  480. package/web/chunk-6ebp7qd7.js.gz +0 -0
  481. package/web/chunk-6k8me9kr.js +0 -1
  482. package/web/chunk-6k8me9kr.js.br +0 -0
  483. package/web/chunk-6k8me9kr.js.gz +0 -0
  484. package/web/chunk-7aqr59hm.js.br +0 -0
  485. package/web/chunk-7aqr59hm.js.gz +0 -0
  486. package/web/chunk-7qnxv6xx.js.br +0 -0
  487. package/web/chunk-7qnxv6xx.js.gz +0 -0
  488. package/web/chunk-7yb2g5zs.js +0 -1
  489. package/web/chunk-7yb2g5zs.js.br +0 -0
  490. package/web/chunk-7yb2g5zs.js.gz +0 -0
  491. package/web/chunk-86f9x5fs.js.br +0 -0
  492. package/web/chunk-86f9x5fs.js.gz +0 -0
  493. package/web/chunk-8gvxttsz.js.br +0 -0
  494. package/web/chunk-8gvxttsz.js.gz +0 -0
  495. package/web/chunk-8kjx7nve.js +0 -1
  496. package/web/chunk-8kjx7nve.js.br +0 -0
  497. package/web/chunk-8kjx7nve.js.gz +0 -0
  498. package/web/chunk-8qda1pw3.js.br +0 -0
  499. package/web/chunk-8qda1pw3.js.gz +0 -0
  500. package/web/chunk-98zd6fb7.js.br +0 -0
  501. package/web/chunk-98zd6fb7.js.gz +0 -0
  502. package/web/chunk-9b43td2b.js.br +0 -0
  503. package/web/chunk-9b43td2b.js.gz +0 -0
  504. package/web/chunk-9hkz2jgq.js.br +0 -0
  505. package/web/chunk-9hkz2jgq.js.gz +0 -0
  506. package/web/chunk-a3qa5c8q.js.br +0 -0
  507. package/web/chunk-a3qa5c8q.js.gz +0 -0
  508. package/web/chunk-ads3r60t.js.br +0 -0
  509. package/web/chunk-ads3r60t.js.gz +0 -0
  510. package/web/chunk-ax4wvgv9.js.br +0 -0
  511. package/web/chunk-ax4wvgv9.js.gz +0 -0
  512. package/web/chunk-b9knvs0r.js +0 -1
  513. package/web/chunk-b9knvs0r.js.br +0 -0
  514. package/web/chunk-b9knvs0r.js.gz +0 -0
  515. package/web/chunk-batey85v.js.br +0 -0
  516. package/web/chunk-batey85v.js.gz +0 -0
  517. package/web/chunk-ccdww2gj.js.br +0 -0
  518. package/web/chunk-ccdww2gj.js.gz +0 -0
  519. package/web/chunk-cgbz97dr.js.br +0 -0
  520. package/web/chunk-cjbqey5q.js.br +0 -0
  521. package/web/chunk-cjbqey5q.js.gz +0 -0
  522. package/web/chunk-cm5cmpxr.js.br +0 -0
  523. package/web/chunk-cm5cmpxr.js.gz +0 -0
  524. package/web/chunk-cqce094e.js.br +0 -0
  525. package/web/chunk-cqce094e.js.gz +0 -0
  526. package/web/chunk-ct6hkz49.js.br +0 -0
  527. package/web/chunk-ct6hkz49.js.gz +0 -0
  528. package/web/chunk-d0qb5kr7.js.br +0 -0
  529. package/web/chunk-d0qb5kr7.js.gz +0 -0
  530. package/web/chunk-d9c65yrg.js.br +0 -0
  531. package/web/chunk-d9c65yrg.js.gz +0 -0
  532. package/web/chunk-ece0ex2b.js.br +0 -0
  533. package/web/chunk-ece0ex2b.js.gz +0 -0
  534. package/web/chunk-ejrsh0nz.js +0 -1
  535. package/web/chunk-ejrsh0nz.js.br +0 -2
  536. package/web/chunk-ejrsh0nz.js.gz +0 -0
  537. package/web/chunk-ekcnhcm0.js +0 -1
  538. package/web/chunk-ekcnhcm0.js.br +0 -0
  539. package/web/chunk-ekcnhcm0.js.gz +0 -0
  540. package/web/chunk-eq4skc30.js +0 -1
  541. package/web/chunk-eq4skc30.js.br +0 -0
  542. package/web/chunk-eq4skc30.js.gz +0 -0
  543. package/web/chunk-ev6xj0qs.js.br +0 -0
  544. package/web/chunk-ev6xj0qs.js.gz +0 -0
  545. package/web/chunk-ezx3f7hw.js.br +0 -0
  546. package/web/chunk-ezx3f7hw.js.gz +0 -0
  547. package/web/chunk-f0kc6vf9.js.br +0 -0
  548. package/web/chunk-f0kc6vf9.js.gz +0 -0
  549. package/web/chunk-fabemrkx.js +0 -1
  550. package/web/chunk-fabemrkx.js.br +0 -0
  551. package/web/chunk-fabemrkx.js.gz +0 -0
  552. package/web/chunk-faestmhg.js.br +0 -0
  553. package/web/chunk-faestmhg.js.gz +0 -0
  554. package/web/chunk-g5ngaf53.js.br +0 -0
  555. package/web/chunk-g5ngaf53.js.gz +0 -0
  556. package/web/chunk-gcyhcbej.js +0 -1
  557. package/web/chunk-gcyhcbej.js.br +0 -2
  558. package/web/chunk-gcyhcbej.js.gz +0 -0
  559. package/web/chunk-ggfwnr7a.js.br +0 -0
  560. package/web/chunk-ggfwnr7a.js.gz +0 -0
  561. package/web/chunk-gp3356tf.js.br +0 -0
  562. package/web/chunk-gp3356tf.js.gz +0 -0
  563. package/web/chunk-gw1d4wmd.js.br +0 -0
  564. package/web/chunk-gw1d4wmd.js.gz +0 -0
  565. package/web/chunk-hmc93mm5.js.br +0 -0
  566. package/web/chunk-hmc93mm5.js.gz +0 -0
  567. package/web/chunk-hn9rxtn8.js +0 -8
  568. package/web/chunk-hn9rxtn8.js.br +0 -0
  569. package/web/chunk-hn9rxtn8.js.gz +0 -0
  570. package/web/chunk-hrng3h6w.js +0 -1
  571. package/web/chunk-hrng3h6w.js.br +0 -2
  572. package/web/chunk-hrng3h6w.js.gz +0 -0
  573. package/web/chunk-hxyxfhhs.js +0 -1
  574. package/web/chunk-hxyxfhhs.js.br +0 -2
  575. package/web/chunk-hxyxfhhs.js.gz +0 -0
  576. package/web/chunk-j94hffw3.js.br +0 -0
  577. package/web/chunk-j94hffw3.js.gz +0 -0
  578. package/web/chunk-jrh3s3f5.js.br +0 -0
  579. package/web/chunk-jrh3s3f5.js.gz +0 -0
  580. package/web/chunk-jw830br8.js.br +0 -0
  581. package/web/chunk-jw830br8.js.gz +0 -0
  582. package/web/chunk-k3whmjng.js +0 -1
  583. package/web/chunk-k3whmjng.js.br +0 -0
  584. package/web/chunk-k3whmjng.js.gz +0 -0
  585. package/web/chunk-kgfzf3q8.js +0 -1
  586. package/web/chunk-kgfzf3q8.js.br +0 -0
  587. package/web/chunk-kgfzf3q8.js.gz +0 -0
  588. package/web/chunk-kqpj6dnm.js.br +0 -0
  589. package/web/chunk-kqpj6dnm.js.gz +0 -0
  590. package/web/chunk-kvz46sd7.js.br +0 -0
  591. package/web/chunk-kvz46sd7.js.gz +0 -0
  592. package/web/chunk-magq6xms.js.br +0 -0
  593. package/web/chunk-magq6xms.js.gz +0 -0
  594. package/web/chunk-mtzj1zyw.js.br +0 -0
  595. package/web/chunk-mtzj1zyw.js.gz +0 -0
  596. package/web/chunk-my778zsk.js +0 -1
  597. package/web/chunk-my778zsk.js.br +0 -0
  598. package/web/chunk-my778zsk.js.gz +0 -0
  599. package/web/chunk-mzevfdmp.js +0 -1
  600. package/web/chunk-mzevfdmp.js.br +0 -0
  601. package/web/chunk-mzevfdmp.js.gz +0 -0
  602. package/web/chunk-n5hvbjdt.js.br +0 -0
  603. package/web/chunk-n5hvbjdt.js.gz +0 -0
  604. package/web/chunk-n6wz1xv2.js.br +0 -0
  605. package/web/chunk-n6wz1xv2.js.gz +0 -0
  606. package/web/chunk-nfz5qmem.js.br +0 -0
  607. package/web/chunk-nfz5qmem.js.gz +0 -0
  608. package/web/chunk-p01t2t8w.js.br +0 -0
  609. package/web/chunk-p01t2t8w.js.gz +0 -0
  610. package/web/chunk-pa0sqjjk.js.br +0 -0
  611. package/web/chunk-pa0sqjjk.js.gz +0 -0
  612. package/web/chunk-pczbf6w0.js.br +0 -0
  613. package/web/chunk-pczbf6w0.js.gz +0 -0
  614. package/web/chunk-pss11x84.js.br +0 -0
  615. package/web/chunk-pss11x84.js.gz +0 -0
  616. package/web/chunk-psymen6a.js.br +0 -0
  617. package/web/chunk-psymen6a.js.gz +0 -0
  618. package/web/chunk-q5rd9d4z.js +0 -1
  619. package/web/chunk-q5rd9d4z.js.br +0 -0
  620. package/web/chunk-q5rd9d4z.js.gz +0 -0
  621. package/web/chunk-qb820yv8.js.br +0 -0
  622. package/web/chunk-qb820yv8.js.gz +0 -0
  623. package/web/chunk-qcacb7rs.js +0 -1
  624. package/web/chunk-qcacb7rs.js.br +0 -0
  625. package/web/chunk-qcacb7rs.js.gz +0 -0
  626. package/web/chunk-qhwsegs1.js.br +0 -0
  627. package/web/chunk-qhwsegs1.js.gz +0 -0
  628. package/web/chunk-qm88s0at.js.br +0 -0
  629. package/web/chunk-qm88s0at.js.gz +0 -0
  630. package/web/chunk-qpmyxj27.js.br +0 -0
  631. package/web/chunk-qpmyxj27.js.gz +0 -0
  632. package/web/chunk-qxyanf4n.js.br +0 -0
  633. package/web/chunk-qxyanf4n.js.gz +0 -0
  634. package/web/chunk-qz8yct8b.js.br +0 -0
  635. package/web/chunk-qz8yct8b.js.gz +0 -0
  636. package/web/chunk-qzeb7kj6.js.br +0 -0
  637. package/web/chunk-qzeb7kj6.js.gz +0 -0
  638. package/web/chunk-r827h2kc.js +0 -1
  639. package/web/chunk-r827h2kc.js.br +0 -2
  640. package/web/chunk-r827h2kc.js.gz +0 -0
  641. package/web/chunk-r992px5p.js.br +0 -0
  642. package/web/chunk-r992px5p.js.gz +0 -0
  643. package/web/chunk-rvgx4jhr.js +0 -1
  644. package/web/chunk-rvgx4jhr.js.br +0 -0
  645. package/web/chunk-rvgx4jhr.js.gz +0 -0
  646. package/web/chunk-rxadtk6j.js.br +0 -0
  647. package/web/chunk-sk3ssmwp.js.br +0 -0
  648. package/web/chunk-sk3ssmwp.js.gz +0 -0
  649. package/web/chunk-snvwfzxt.js +0 -2
  650. package/web/chunk-snvwfzxt.js.br +0 -0
  651. package/web/chunk-snvwfzxt.js.gz +0 -0
  652. package/web/chunk-szfzt9ph.js.br +0 -0
  653. package/web/chunk-szfzt9ph.js.gz +0 -0
  654. package/web/chunk-t9hnp1zd.js +0 -2
  655. package/web/chunk-t9hnp1zd.js.br +0 -3
  656. package/web/chunk-t9hnp1zd.js.gz +0 -0
  657. package/web/chunk-tanv869p.js.br +0 -0
  658. package/web/chunk-tanv869p.js.gz +0 -0
  659. package/web/chunk-tpps3mfw.js.br +0 -0
  660. package/web/chunk-tpps3mfw.js.gz +0 -0
  661. package/web/chunk-txb5yf8n.js +0 -1
  662. package/web/chunk-txb5yf8n.js.br +0 -0
  663. package/web/chunk-txb5yf8n.js.gz +0 -0
  664. package/web/chunk-v3vqv74s.js +0 -1
  665. package/web/chunk-v3vqv74s.js.br +0 -0
  666. package/web/chunk-v3vqv74s.js.gz +0 -0
  667. package/web/chunk-v5q92q5d.js.br +0 -0
  668. package/web/chunk-v5q92q5d.js.gz +0 -0
  669. package/web/chunk-vayamfxv.js +0 -1
  670. package/web/chunk-vayamfxv.js.br +0 -0
  671. package/web/chunk-vayamfxv.js.gz +0 -0
  672. package/web/chunk-vrakntde.js.br +0 -0
  673. package/web/chunk-vrakntde.js.gz +0 -0
  674. package/web/chunk-we9q8a9q.js.br +0 -0
  675. package/web/chunk-we9q8a9q.js.gz +0 -0
  676. package/web/chunk-wgezeg5k.js.br +0 -0
  677. package/web/chunk-wgezeg5k.js.gz +0 -0
  678. package/web/chunk-wh028xj6.js.br +0 -0
  679. package/web/chunk-wh028xj6.js.gz +0 -0
  680. package/web/chunk-whprx2wg.js.br +0 -0
  681. package/web/chunk-whprx2wg.js.gz +0 -0
  682. package/web/chunk-wjv2q7b1.js.br +0 -0
  683. package/web/chunk-wjv2q7b1.js.gz +0 -0
  684. package/web/chunk-wydnkdtp.js.br +0 -0
  685. package/web/chunk-wydnkdtp.js.gz +0 -0
  686. package/web/chunk-x0zvwdq6.js.br +0 -0
  687. package/web/chunk-x0zvwdq6.js.gz +0 -0
  688. package/web/chunk-x9b1052x.js.br +0 -0
  689. package/web/chunk-x9b1052x.js.gz +0 -0
  690. package/web/chunk-xwyvptzt.js.br +0 -0
  691. package/web/chunk-xwyvptzt.js.gz +0 -0
  692. package/web/chunk-ya7gs2bv.js +0 -1
  693. package/web/chunk-ya7gs2bv.js.br +0 -0
  694. package/web/chunk-ya7gs2bv.js.gz +0 -0
  695. package/web/chunk-yjan9xfw.js.br +0 -0
  696. package/web/chunk-yjan9xfw.js.gz +0 -0
  697. package/web/chunk-yqzsx086.js.br +0 -0
  698. package/web/chunk-yqzsx086.js.gz +0 -0
  699. package/web/chunk-zcetrm2j.js.br +0 -3
  700. package/web/chunk-zcetrm2j.js.gz +0 -0
  701. package/web/chunk-zk1ddepw.js +0 -1
  702. package/web/chunk-zk1ddepw.js.br +0 -0
  703. package/web/chunk-zk1ddepw.js.gz +0 -0
Binary file
Binary file
@@ -1 +1 @@
1
- import{s,o,a,Qt,ci,m,e,n,b,l,se,dr,yn,Ce,ba,ce}from"./chunk-ev6xj0qs.js";var ye=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M16 8v5a3 3 0 0 0 6 0v-1a10 10 0 1 0-4 8",key:"7n84p3"}]],L=l("at-sign",ye);var ke=[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4",key:"1pf5j1"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"m5 12-3 3 3 3",key:"oke12k"}],["path",{d:"m9 18 3-3-3-3",key:"112psh"}]],de=l("file-code-2",ke);var we=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"m21 3-7 7",key:"1l2asr"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M9 21H3v-6",key:"wtvkvv"}]],ue=l("maximize-2",we);var Me=[["path",{d:"M13.4 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-7.4",key:"re6nr2"}],["path",{d:"M2 6h4",key:"aawbzj"}],["path",{d:"M2 10h4",key:"l0bgd4"}],["path",{d:"M2 14h4",key:"1gsvsf"}],["path",{d:"M2 18h4",key:"1bu2t1"}],["path",{d:"M21.378 5.626a1 1 0 1 0-3.004-3.004l-5.01 5.012a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506z",key:"pqwjuv"}]],Z=l("notebook-pen",Me);var Ie=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],pe=l("user",Ie);var w={approve:{label:"通过",text:"text-success",ring:"ring-success/80",soft:"bg-success/12 text-success"},reject:{label:"反对",text:"text-danger",ring:"ring-danger/80",soft:"bg-danger/12 text-danger"},abstain:{label:"弃权",text:"text-dim",ring:"ring-line-strong",soft:"bg-raised text-dim"},pending:{label:"未表态",text:"text-faint",ring:"ring-line",soft:"bg-raised text-faint"}},ze={thinking:"思考中",reading:"查阅中",speaking:"发言中",idle:"等待中",error:"出错",aborted:"已中止"},F={success:"text-success",warning:"text-warning",danger:"text-danger",neutral:"text-faint"},ee={success:"bg-success",warning:"bg-warning",danger:"bg-danger",neutral:"bg-faint"};function V(t){return t==="thinking"||t==="reading"||t==="speaking"}function K(t){let p=V(t.status);return{busy:p,text:p&&t.activeTool?t.activeTool:ze[t.status]}}function te(t){let p=t.members.filter((v)=>v.verdict==="approve").length,f=t.members.filter((v)=>v.verdict==="reject").length;if(t.state==="running"){if(t.phase==="research")return{tone:"warning",label:"调研中"};if(t.phase==="opening")return{tone:"warning",label:"开场表态"};return{tone:"warning",label:"群聊交流"}}if(t.state==="consensus"){if(p===t.members.length)return{tone:"success",label:"全票通过"};if(f===t.members.length)return{tone:"danger",label:"全票反对"};if(f>p)return{tone:"danger",label:"共识:反对"};return{tone:"success",label:"共识:通过"}}if(t.state==="diverged")return{tone:"warning",label:"存在分歧"};if(t.state==="error")return{tone:"danger",label:"失败"};return{tone:"neutral",label:"已中止"}}function W(t){let p=Math.max(1,Math.round(t/1000));if(p<60)return`${p}s`;return`${Math.floor(p/60)}m ${String(p%60).padStart(2,"0")}s`}var De={research:"调研",opening:"开场表态",discussion:"群聊交流"};function G(t){let{cn:p}=b(),{room:f}=t,v=te(f),g=f.state==="running",h=f.research?["research","opening","discussion"]:["opening","discussion"],i=g?h.indexOf(f.phase==="closed"?"discussion":f.phase??"discussion"):-1,N=[...h.map((d,u)=>({key:d,label:De[d],done:!g||u<i,active:u===i})),{key:"closed",label:g?"结论":v.label,done:!g,active:!1}];return e("ol",{className:p("flex min-w-0 gap-1",t.className),children:N.map((d,u)=>{let c=u===N.length-1&&!g;return n("li",{className:"min-w-0 flex-1",children:[e("span",{className:p("block h-[3px] rounded-full transition-colors duration-300",c?ee[v.tone]:d.active?"bg-accent animate-pulse":d.done?"bg-line-strong":"bg-line/60")}),e("span",{className:p("mt-1.5 block truncate text-2xs",c?p("font-medium",F[v.tone]):d.active?"font-medium text-ink":d.done?"text-dim":"text-faint"),children:d.label})]},d.key)})})}function fe(t){let{Collapsible:p,CollapsibleContent:f,Composer:v,Markdown:g,ModelIcon:h,ScrollArea:i,SessionView:N,cn:d,confirm:u}=b(),{room:c,onClose:C}=t,[M,x]=a(!1),[J,D]=a(""),[R,H]=a(!1),[_,E]=a(),[S,B]=a(!1),[y,I]=a(!0),[T,z]=a(),ne=o(!1);ne.current=T!==void 0;let[U,X]=a(),[ae,A]=a(!1),oe=o(!1);oe.current=U!==void 0;let ie=(r)=>{A(!1),X(r)},re=o(null),Y=o(null),P=c.state==="running",j=te(c),ge=new Map(c.members.map((r)=>[r.id,r]));s(()=>{let r=(me)=>{if(me.key!=="Escape"||me.defaultPrevented||ne.current)return;if(oe.current)A(!0);else x(!0)},k=document.body.style.overflow;return document.body.style.overflow="hidden",window.addEventListener("keydown",r),()=>{window.removeEventListener("keydown",r),document.body.style.overflow=k}},[]);let le=c.messages.length;s(()=>{let r=Y.current;if(!r||!y||le===0)return;r.scrollTo({top:r.scrollHeight,behavior:"smooth"})},[le,y]);let be=async(r)=>{await t.onPost(r),I(!0)},ve=async()=>{if(R)return;if(!await u({title:"中止理事会?",description:"所有成员会立即停止,已有发言保留。",action:"中止",danger:!0}))return;H(!0),E(void 0);try{await t.onAbort()}catch(k){E(k instanceof Error?k.message:"中止理事会失败")}finally{H(!1)}},Q=(r)=>{X(void 0),D((k)=>k.includes(`@${r}`)?k:`${k?`${k.trimEnd()} `:""}@${r} `),requestAnimationFrame(()=>re.current?.focus())},he=c.members.filter((r)=>r.verdict==="approve").length,Ne=c.members.filter((r)=>r.verdict==="reject").length,q=c.members.find((r)=>r.id===T),O=c.members.find((r)=>r.id===U);return Qt(n("div",{role:"dialog","aria-modal":"true","aria-label":`理事会:${c.topic}`,onAnimationEnd:(r)=>{if(M&&r.target===r.currentTarget)C()},className:d("fixed inset-0 z-50 flex flex-col bg-bg pt-[env(safe-area-inset-top)] text-ink",M?"pointer-events-none animate-dialog-out":"animate-dialog-in"),children:[n(p,{open:S,onOpenChange:B,className:"shrink-0 border-b border-line px-4 pt-3 pb-3 sm:px-6",children:[n("div",{className:"flex items-start gap-3",children:[n("div",{className:"min-w-0 flex-1",children:[n("div",{className:"flex items-center gap-3 text-2xs text-faint",children:[e("span",{className:"font-medium tracking-[0.2em] text-dim",children:"COUNCIL"}),e("span",{className:"tabular-nums",children:W(t.elapsedMs)}),n("span",{className:"tabular-nums",children:[c.messages.length," 条发言"]})]}),n("button",{type:"button","aria-expanded":S,onClick:()=>B((r)=>!r),className:"mt-0.5 flex max-w-full cursor-pointer items-start gap-1.5 text-left md:items-center",children:[e("h2",{className:"line-clamp-2 text-md leading-snug font-semibold md:truncate md:text-lg",children:c.topic}),e(Ce,{className:d("mt-0.5 size-4 shrink-0 text-faint transition-transform duration-300 ease-out-quint md:mt-0",!S&&"-rotate-90")})]})]}),n("div",{className:"flex shrink-0 items-center gap-1",children:[n("span",{className:d("inline-flex items-center gap-1.5 rounded-full border border-line px-2.5 py-1 text-xs font-medium",F[j.tone]),children:[e("span",{className:d("size-1.5 rounded-full",ee[j.tone],P&&"animate-pulse")}),j.label]}),e("button",{type:"button","aria-label":"关闭理事会页面",title:"关闭(Esc)",onClick:()=>x(!0),className:"ml-1 inline-flex size-10 -mr-2 cursor-pointer items-center justify-center rounded-full text-faint transition-colors hover:bg-raised hover:text-ink md:size-8 md:mr-0",children:e(ce,{className:"size-4"})})]})]}),e(f,{children:e("div",{className:"mt-2 max-h-[40dvh] overflow-y-auto overscroll-contain rounded-xl bg-panel px-3.5 py-2.5 text-ui leading-relaxed text-dim md:max-h-48",children:e(g,{text:c.brief})})}),e(G,{room:c,className:"mt-3"})]}),n("div",{className:"flex min-h-0 flex-1 flex-col md:flex-row",children:[e("div",{className:"flex shrink-0 gap-2 overflow-x-auto overscroll-x-contain border-b border-line px-4 py-2.5 [scrollbar-width:none] md:hidden",children:c.members.map((r)=>e(Se,{member:r,onSelect:()=>z(r.id)},r.id))}),n("aside",{className:"hidden w-72 shrink-0 flex-col gap-2 overflow-y-auto border-r border-line p-4 md:flex",children:[n("div",{className:"flex items-center justify-between text-2xs text-faint",children:[e("span",{className:"font-medium tracking-wide",children:"席位"}),n("span",{className:"tabular-nums",children:[e("span",{className:"text-success",children:he})," / ",e("span",{className:"text-danger",children:Ne})," /"," ",c.members.length]})]}),c.members.map((r)=>e(Re,{member:r,viewing:r.id===U,onMention:()=>Q(r.name),onOpen:()=>r.id===U?A(!0):ie(r.id)},r.id))]}),O&&n("main",{onAnimationEnd:(r)=>{if(!ae||r.target!==r.currentTarget)return;A(!1),X(void 0)},className:d("flex min-h-0 min-w-0 flex-1 flex-col",ae?"pointer-events-none animate-overlay-out":"animate-fade"),children:[n("div",{className:"flex shrink-0 items-center gap-2 border-b border-line px-3 py-2 sm:px-4",children:[n("button",{type:"button",onClick:()=>A(!0),className:"inline-flex h-8 cursor-pointer items-center gap-1.5 rounded-lg px-2 text-ui text-dim transition-colors hover:bg-raised hover:text-ink",children:[e(dr,{className:"size-4"}),"群聊"]}),e("span",{className:"text-line-strong",children:"/"}),n("span",{className:"flex min-w-0 flex-1 items-center gap-1.5 text-ui font-medium",children:[e(h,{modelID:O.model,className:"size-4 shrink-0",size:16}),n("span",{className:"truncate",children:[O.name," 的推理过程"]})]}),e("button",{type:"button","aria-label":"在完整页面打开",title:"在完整页面打开",onClick:()=>t.onOpenMember(O.childSessionID),className:"inline-flex size-8 cursor-pointer items-center justify-center rounded-lg text-faint transition-colors hover:bg-raised hover:text-ink",children:e(yn,{className:"size-4"})})]}),e(N,{sessionID:O.childSessionID},O.childSessionID)]}),n("main",{className:d("min-h-0 min-w-0 flex-1 flex-col animate-fade",O?"hidden":"flex"),children:[e(i,{viewportRef:Y,onScrollCapture:(r)=>{let k=Y.current;if(!k||r.target!==k)return;I(k.scrollHeight-k.scrollTop-k.clientHeight<80)},children:n("div",{className:"mx-auto w-full max-w-3xl px-4 py-4 sm:px-6 md:py-5",children:[c.messages.length===0?n("div",{className:"flex flex-col items-center justify-center gap-3 py-24 text-center text-faint",children:[P?e(se,{className:"size-5 animate-spin"}):null,e("p",{className:"text-sm",children:P?c.phase==="research"?"成员正在各自调研,笔记不会进入群聊":"成员正在独立准备开场观点,彼此不可见":"这场理事会没有产生发言"})]}):e("ol",{className:"space-y-5",children:c.messages.map((r)=>e(Te,{message:r,membersByID:ge,onMention:()=>Q(r.senderName)},r.floor))}),c.summary&&!P&&n("section",{className:"mt-8 rounded-2xl border border-line bg-panel px-4 py-3",children:[n("h3",{className:d("text-xs font-semibold",F[j.tone]),children:["结论:",j.label]}),e("div",{className:"mt-1.5 text-ui leading-relaxed text-dim",children:e(g,{text:c.summary})})]})]})}),e("div",{className:"shrink-0 px-3 pb-[max(0.75rem,env(safe-area-inset-bottom))] sm:px-6 md:pb-4",children:n("div",{className:"mx-auto w-full max-w-3xl",children:[_&&e("p",{role:"status",className:"px-1 pb-2 text-ui text-danger",children:_}),e(v,{draftKey:`council:${c.roomID}`,placeholder:P?"插话,@ 某位成员会点名要求其回应":"理事会已结束,插话会重新唤醒成员",busy:P,allowAttachments:!1,text:J,onTextChange:D,inputRef:re,onSend:be,onAbort:()=>void ve()})]})})]})]}),q&&e(Oe,{member:q,onClose:()=>z(void 0),onMention:()=>{z(void 0),Q(q.name)},onOpen:()=>{z(void 0),ie(q.id)}})]}),document.body)}function Se(t){let{ModelIcon:p,cn:f}=b(),{member:v}=t,g=w[v.verdict]??w.pending,{busy:h}=K(v);return n("button",{type:"button",onClick:t.onSelect,"aria-label":`${v.name},${g.label},查看详情`,className:"flex h-11 max-w-[11rem] shrink-0 cursor-pointer items-center gap-2 rounded-full border border-line bg-panel/60 pr-3.5 pl-1.5 active:bg-raised",children:[n("span",{className:f("relative flex size-8 shrink-0 items-center justify-center rounded-full bg-raised ring-2",g.ring),children:[e(p,{modelID:v.model,className:"size-4",size:16}),h&&e(se,{className:"absolute -right-1 -bottom-1 size-3.5 animate-spin rounded-full bg-bg text-accent"})]}),n("span",{className:"min-w-0 text-left leading-tight",children:[e("span",{className:"block truncate text-ui font-medium",children:v.name}),e("span",{className:f("block text-2xs",g.text),children:g.label})]})]})}function Oe(t){let{Button:p,Dialog:f,Markdown:v,ModelIcon:g,cn:h}=b(),{member:i}=t,N=w[i.verdict]??w.pending,d=K(i);return e(f,{open:!0,onOpenChange:(u)=>!u&&t.onClose(),title:n("span",{className:"flex min-w-0 items-center gap-2.5",children:[e("span",{className:h("flex size-8 shrink-0 items-center justify-center rounded-full bg-raised ring-2",N.ring),children:e(g,{modelID:i.model,className:"size-4",size:16})}),e("span",{className:"min-w-0 truncate",children:i.name}),e("span",{className:h("shrink-0 rounded px-1.5 py-px text-2xs font-medium",N.soft),children:N.label})]}),description:i.model,footer:n(m,{children:[n(p,{variant:"secondary",onClick:t.onMention,children:[e(L,{className:"size-4"}),"点名"]}),n(p,{variant:"secondary",onClick:t.onOpen,children:[e(yn,{className:"size-4"}),"查看推理"]})]}),children:n("div",{className:"space-y-3 pb-1",children:[n("div",{className:"flex items-center gap-3 text-ui",children:[n("span",{className:h("flex min-w-0 flex-1 items-center gap-1.5",d.busy?"text-accent":"text-dim"),children:[d.busy&&e(se,{className:"size-3.5 shrink-0 animate-spin"}),e("span",{className:"truncate",children:d.text})]}),n("span",{className:"shrink-0 text-faint tabular-nums",children:["发言 ",i.turns??0," 次"]})]}),i.notes?n("section",{children:[n("h3",{className:"mb-1.5 flex items-center gap-1.5 text-xs font-medium text-faint",children:[e(Z,{className:"size-3.5"}),"调研笔记"]}),e("div",{className:"rounded-xl bg-bg/60 px-3.5 py-2.5 text-ui leading-relaxed text-dim",children:e(v,{text:i.notes})})]}):e("p",{className:"text-ui text-faint",children:"没有调研笔记"})]})})}function Re(t){let{Collapsible:p,CollapsibleContent:f,Markdown:v,ModelIcon:g,cn:h}=b(),{member:i}=t,[N,d]=a(!1),u=w[i.verdict]??w.pending,{busy:c,text:C}=K(i);return n(p,{open:N,onOpenChange:d,className:h("relative shrink-0 rounded-xl border p-2.5 transition-colors",t.viewing?"border-line-strong bg-raised/60":"border-line bg-panel/60 hover:bg-raised/40"),children:[e("button",{type:"button","aria-label":t.viewing?"返回群聊":`查看 ${i.name} 的推理过程`,"aria-pressed":t.viewing,title:t.viewing?"返回群聊":"查看推理与工具调用",onClick:t.onOpen,className:"absolute inset-0 cursor-pointer rounded-xl"}),n("div",{className:"pointer-events-none relative flex items-center gap-2.5",children:[e("span",{className:h("relative flex size-8 shrink-0 items-center justify-center rounded-full bg-raised ring-2",u.ring),children:e(g,{modelID:i.model,className:"size-4",size:16})}),n("div",{className:"min-w-0 flex-1",children:[n("div",{className:"flex items-center gap-1.5",children:[e("span",{className:"truncate text-ui font-medium",title:i.model,children:i.name}),e("span",{className:h("shrink-0 rounded px-1 text-2xs font-medium",u.soft),children:u.label})]}),n("div",{className:h("flex min-w-0 items-center gap-1 text-2xs",c?"text-accent":"text-faint"),children:[c&&e(se,{className:"size-3 shrink-0 animate-spin"}),e("span",{className:"truncate",children:C})]})]})]}),n("div",{className:"pointer-events-none relative mt-2 flex items-center gap-1 text-2xs text-faint",children:[n("span",{className:"tabular-nums",children:["发言 ",i.turns??0," 次"]}),e("span",{className:"ml-auto"}),i.notes&&n("button",{type:"button","aria-expanded":N,onClick:()=>d((M)=>!M),className:h("pointer-events-auto inline-flex cursor-pointer items-center gap-1 rounded px-1.5 py-0.5 hover:bg-raised hover:text-ink",N&&"text-ink"),children:[e(Z,{className:"size-3"}),"笔记"]}),e("button",{type:"button","aria-label":`@ ${i.name}`,title:`@ ${i.name}`,onClick:t.onMention,className:"pointer-events-auto inline-flex cursor-pointer items-center rounded p-1 hover:bg-raised hover:text-ink",children:e(L,{className:"size-3"})})]}),i.notes&&e(f,{children:e("div",{className:"relative mt-2 max-h-56 overflow-y-auto rounded-lg bg-bg/60 px-2.5 py-2 text-xs leading-relaxed text-dim",children:e(v,{text:i.notes})})})]})}function Te(t){let{Code:p,Collapsible:f,CollapsibleContent:v,Markdown:g,cn:h}=b(),{message:i}=t,[N,d]=a(!1),u=i.senderID==="user"||i.senderID==="host",c=i.verdict&&i.verdict!=="pending"?w[i.verdict]:void 0,C=i.evidences??[],M=(i.mentions??[]).map((x)=>t.membersByID.get(x)).filter((x)=>x!==void 0);return n("li",{id:`council-floor-${i.floor}`,className:"group flex gap-3 animate-fade",children:[e(xe,{message:i,isHuman:u,className:"mt-0.5 hidden size-8 md:flex"}),n("div",{className:"min-w-0 flex-1",children:[n("div",{className:"flex flex-wrap items-center gap-x-2 gap-y-0.5 text-xs",children:[e(xe,{message:i,isHuman:u,className:"flex size-6 md:hidden"}),e("span",{className:"font-semibold text-ink",title:i.senderModel,children:i.senderName}),n("a",{href:`#council-floor-${i.floor}`,className:"font-mono text-2xs text-faint hover:text-dim",onClick:(x)=>x.preventDefault(),children:["#",i.floor]}),c&&e("span",{className:h("rounded px-1.5 py-px text-2xs font-medium",c.soft),children:c.label}),!u&&n("button",{type:"button",onClick:t.onMention,className:"ml-auto inline-flex cursor-pointer items-center gap-1 rounded-md px-2 py-1 text-2xs text-faint transition-opacity hover:bg-raised hover:text-ink focus-visible:opacity-100 md:px-1.5 md:py-0.5 md:opacity-0 md:group-hover:opacity-100",children:[e(L,{className:"size-3"}),"回复"]})]}),(i.replyToFloor||M.length>0)&&n("div",{className:"mt-1 flex flex-wrap items-center gap-1.5 text-2xs text-faint",children:[i.replyToFloor&&n("button",{type:"button",onClick:()=>document.getElementById(`council-floor-${i.replyToFloor}`)?.scrollIntoView({block:"center",behavior:"smooth"}),className:"inline-flex min-w-0 max-w-full cursor-pointer items-center gap-1 rounded-md bg-raised/70 px-1.5 py-0.5 hover:text-ink",children:[e(ba,{className:"size-3 shrink-0"}),n("span",{className:"shrink-0 text-dim",children:["#",i.replyToFloor," ",i.replyToName]}),i.replyToPreview&&e("span",{className:"truncate",children:i.replyToPreview})]}),M.map((x)=>n("span",{className:"inline-flex items-center gap-1 rounded-md bg-accent/10 px-1.5 py-0.5 text-accent",children:[e(L,{className:"size-3"}),x.name]},x.id))]}),e("div",{className:"mt-1.5 break-words text-sm leading-relaxed text-ink/90 md:text-ui [&_p]:my-1.5 [&>*:first-child]:mt-0 [&>*:last-child]:mb-0",children:e(g,{text:i.text})}),C.length>0&&n(f,{open:N,onOpenChange:d,className:"mt-2",children:[n("button",{type:"button","aria-expanded":N,onClick:()=>d((x)=>!x),className:"inline-flex max-w-full cursor-pointer items-center gap-1 text-2xs text-faint hover:text-ink",children:[e(de,{className:"size-3 shrink-0"}),n("span",{className:"shrink-0",children:["查阅 ",C.length," 处"]}),!N&&e("span",{className:"truncate font-mono",children:C.map((x)=>x.label).join(",")}),e(Ce,{className:h("size-3 shrink-0 transition-transform duration-300 ease-out-quint",!N&&"-rotate-90")})]}),e(v,{children:e("div",{className:"mt-1.5 space-y-1.5",children:C.map((x)=>n("div",{className:"overflow-hidden rounded-lg border border-line bg-panel text-xs",children:[e("div",{className:"truncate border-b border-line/70 px-2.5 py-1 font-mono text-2xs text-dim",children:x.label}),x.snippet&&e(p,{code:x.snippet,lang:x.lang||"ts",className:"max-h-40 overflow-auto px-2.5 py-1.5 text-xs"})]},`${x.tool}:${x.label}:${x.snippet?.slice(0,32)??""}`))})})]})]})]})}function xe(t){let{ModelIcon:p,cn:f}=b();return e("span",{className:f("shrink-0 items-center justify-center rounded-full",t.isHuman?"bg-accent/12 text-accent":"bg-raised",t.className),children:t.message.senderModel?e(p,{modelID:t.message.senderModel,className:"size-4",size:16}):e(pe,{className:"size-4"})})}function ot(t){let{ModelIcon:p,cn:f,useTheme:v}=b();v();let{connection:g,sessionID:h,payload:i,onOpen:N}=t,d=i,[u,c]=a(d),[C,M]=a(()=>{try{return sessionStorage.getItem(ci)===d.roomID}catch{return!1}}),[x,J]=a(Date.now);s(()=>{c(d)},[d]),s(()=>{if(!C)return;try{if(sessionStorage.getItem(ci)===d.roomID)sessionStorage.removeItem(ci)}catch{}},[C,d.roomID]);let D=u.state==="running",R=`/api/sessions/${encodeURIComponent(h)}/council/${encodeURIComponent(u.roomID)}`;s(()=>{if(!D)return;let y=!1,T=setInterval(()=>{if(g.request(R).then((z)=>{if(!y&&z&&typeof z==="object"&&"roomID"in z)c(z)}).catch(()=>{}),!y)J(Date.now())},1200);return()=>{y=!0,clearInterval(T)}},[g,R,D]);let H=async(y)=>{let I=await g.request(`${R}/post`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({text:y})});c(I)},_=async()=>{let y=await g.request(`${R}/kill`,{method:"POST"});c(y)},E=(D?x:u.updatedAt)-u.createdAt,S=u.messages.at(-1),B=u.members.filter((y)=>V(y.status)).length;return n(m,{children:[n("button",{type:"button","aria-label":`进入理事会:${u.topic}`,onClick:()=>M(!0),className:"group relative my-2 block w-full cursor-pointer overflow-hidden rounded-2xl border border-line bg-panel text-left transition-colors hover:border-line-strong animate-fade",children:[n("div",{className:"px-4 pt-3.5",children:[n("div",{className:"flex items-center gap-1.5 text-2xs text-faint",children:[e("span",{className:"font-medium text-dim",children:"理事会"}),e("span",{"aria-hidden":!0,children:"·"}),e("span",{className:"tabular-nums",children:W(E)}),n("span",{className:"ml-auto tabular-nums",children:[u.members.length," 位成员"]})]}),e("h4",{className:"mt-1 line-clamp-2 text-sm font-semibold text-ink md:truncate",title:u.topic,children:u.topic})]}),e(G,{room:u,className:"mt-3 px-4"}),e("div",{className:"mt-3 flex flex-wrap items-center gap-x-4 gap-y-2 px-4",children:u.members.map((y)=>{let I=w[y.verdict]??w.pending,T=V(y.status);return n("span",{className:"flex min-w-0 items-center gap-1.5 text-xs",title:y.model,children:[n("span",{className:f("relative flex size-6 shrink-0 items-center justify-center rounded-full bg-raised ring-2",I.ring),children:[e(p,{modelID:y.model,className:"size-3.5",size:14}),T&&e(se,{className:"absolute -right-1 -bottom-1 size-3 animate-spin rounded-full bg-panel text-accent"})]}),e("span",{className:"truncate text-dim",children:y.name}),e("span",{className:f("shrink-0 text-2xs",I.text),children:I.label})]},y.id)})}),n("div",{className:"mt-3 flex items-center gap-2 border-t border-line/70 px-4 py-2.5 text-xs",children:[S?n(m,{children:[e("span",{className:"shrink-0 font-medium text-dim",children:S.senderName}),e("span",{className:"min-w-0 flex-1 truncate text-faint",children:S.text.replace(/\s+/g," ")})]}):e("span",{className:"min-w-0 flex-1 truncate text-faint",children:D?`${B} 位成员正在${u.phase==="research"?"调研":"思考"}…`:"没有发言"}),n("span",{className:"inline-flex shrink-0 items-center gap-1 text-faint transition-colors group-hover:text-ink",children:[u.messages.length>0&&n("span",{className:"tabular-nums",children:[u.messages.length," 条"]}),e(ue,{className:"size-3.5"})]})]})]}),C&&e(fe,{room:u,elapsedMs:E,onClose:()=>M(!1),onOpenMember:N,onPost:H,onAbort:_})]})}export{ot as CouncilCard};
1
+ import{s,o,a,Qt,li,m,e,n,b,l,ae,fr,yn,Ce,ba,ce}from"./chunk-6f1q0tjv.js";var ye=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M16 8v5a3 3 0 0 0 6 0v-1a10 10 0 1 0-4 8",key:"7n84p3"}]],L=l("at-sign",ye);var ke=[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4",key:"1pf5j1"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"m5 12-3 3 3 3",key:"oke12k"}],["path",{d:"m9 18 3-3-3-3",key:"112psh"}]],de=l("file-code-2",ke);var we=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"m21 3-7 7",key:"1l2asr"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M9 21H3v-6",key:"wtvkvv"}]],ue=l("maximize-2",we);var Me=[["path",{d:"M13.4 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-7.4",key:"re6nr2"}],["path",{d:"M2 6h4",key:"aawbzj"}],["path",{d:"M2 10h4",key:"l0bgd4"}],["path",{d:"M2 14h4",key:"1gsvsf"}],["path",{d:"M2 18h4",key:"1bu2t1"}],["path",{d:"M21.378 5.626a1 1 0 1 0-3.004-3.004l-5.01 5.012a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506z",key:"pqwjuv"}]],Z=l("notebook-pen",Me);var Ie=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],pe=l("user",Ie);var w={approve:{label:"通过",text:"text-success",ring:"ring-success/80",soft:"bg-success/12 text-success"},reject:{label:"反对",text:"text-danger",ring:"ring-danger/80",soft:"bg-danger/12 text-danger"},abstain:{label:"弃权",text:"text-dim",ring:"ring-line-strong",soft:"bg-raised text-dim"},pending:{label:"未表态",text:"text-faint",ring:"ring-line",soft:"bg-raised text-faint"}},ze={thinking:"思考中",reading:"查阅中",speaking:"发言中",idle:"等待中",error:"出错",aborted:"已中止"},F={success:"text-success",warning:"text-warning",danger:"text-danger",neutral:"text-faint"},ee={success:"bg-success",warning:"bg-warning",danger:"bg-danger",neutral:"bg-faint"};function V(t){return t==="thinking"||t==="reading"||t==="speaking"}function K(t){let p=V(t.status);return{busy:p,text:p&&t.activeTool?t.activeTool:ze[t.status]}}function te(t){let p=t.members.filter((v)=>v.verdict==="approve").length,f=t.members.filter((v)=>v.verdict==="reject").length;if(t.state==="running"){if(t.phase==="research")return{tone:"warning",label:"调研中"};if(t.phase==="opening")return{tone:"warning",label:"开场表态"};return{tone:"warning",label:"群聊交流"}}if(t.state==="consensus"){if(p===t.members.length)return{tone:"success",label:"全票通过"};if(f===t.members.length)return{tone:"danger",label:"全票反对"};if(f>p)return{tone:"danger",label:"共识:反对"};return{tone:"success",label:"共识:通过"}}if(t.state==="diverged")return{tone:"warning",label:"存在分歧"};if(t.state==="error")return{tone:"danger",label:"失败"};return{tone:"neutral",label:"已中止"}}function W(t){let p=Math.max(1,Math.round(t/1000));if(p<60)return`${p}s`;return`${Math.floor(p/60)}m ${String(p%60).padStart(2,"0")}s`}var De={research:"调研",opening:"开场表态",discussion:"群聊交流"};function G(t){let{cn:p}=b(),{room:f}=t,v=te(f),g=f.state==="running",h=f.research?["research","opening","discussion"]:["opening","discussion"],i=g?h.indexOf(f.phase==="closed"?"discussion":f.phase??"discussion"):-1,N=[...h.map((d,u)=>({key:d,label:De[d],done:!g||u<i,active:u===i})),{key:"closed",label:g?"结论":v.label,done:!g,active:!1}];return e("ol",{className:p("flex min-w-0 gap-1",t.className),children:N.map((d,u)=>{let c=u===N.length-1&&!g;return n("li",{className:"min-w-0 flex-1",children:[e("span",{className:p("block h-[3px] rounded-full transition-colors duration-300",c?ee[v.tone]:d.active?"bg-accent animate-pulse":d.done?"bg-line-strong":"bg-line/60")}),e("span",{className:p("mt-1.5 block truncate text-2xs",c?p("font-medium",F[v.tone]):d.active?"font-medium text-ink":d.done?"text-dim":"text-faint"),children:d.label})]},d.key)})})}function fe(t){let{Collapsible:p,CollapsibleContent:f,Composer:v,Markdown:g,ModelIcon:h,ScrollArea:i,SessionView:N,cn:d,confirm:u}=b(),{room:c,onClose:C}=t,[M,x]=a(!1),[J,D]=a(""),[R,H]=a(!1),[_,E]=a(),[S,B]=a(!1),[y,I]=a(!0),[T,z]=a(),ne=o(!1);ne.current=T!==void 0;let[U,X]=a(),[se,A]=a(!1),oe=o(!1);oe.current=U!==void 0;let ie=(r)=>{A(!1),X(r)},re=o(null),Y=o(null),P=c.state==="running",j=te(c),ge=new Map(c.members.map((r)=>[r.id,r]));s(()=>{let r=(me)=>{if(me.key!=="Escape"||me.defaultPrevented||ne.current)return;if(oe.current)A(!0);else x(!0)},k=document.body.style.overflow;return document.body.style.overflow="hidden",window.addEventListener("keydown",r),()=>{window.removeEventListener("keydown",r),document.body.style.overflow=k}},[]);let le=c.messages.length;s(()=>{let r=Y.current;if(!r||!y||le===0)return;r.scrollTo({top:r.scrollHeight,behavior:"smooth"})},[le,y]);let be=async(r)=>{await t.onPost(r),I(!0)},ve=async()=>{if(R)return;if(!await u({title:"中止理事会?",description:"所有成员会立即停止,已有发言保留。",action:"中止",danger:!0}))return;H(!0),E(void 0);try{await t.onAbort()}catch(k){E(k instanceof Error?k.message:"中止理事会失败")}finally{H(!1)}},Q=(r)=>{X(void 0),D((k)=>k.includes(`@${r}`)?k:`${k?`${k.trimEnd()} `:""}@${r} `),requestAnimationFrame(()=>re.current?.focus())},he=c.members.filter((r)=>r.verdict==="approve").length,Ne=c.members.filter((r)=>r.verdict==="reject").length,q=c.members.find((r)=>r.id===T),O=c.members.find((r)=>r.id===U);return Qt(n("div",{role:"dialog","aria-modal":"true","aria-label":`理事会:${c.topic}`,onAnimationEnd:(r)=>{if(M&&r.target===r.currentTarget)C()},className:d("fixed inset-0 z-50 flex flex-col bg-bg pt-[env(safe-area-inset-top)] text-ink",M?"pointer-events-none animate-dialog-out":"animate-dialog-in"),children:[n(p,{open:S,onOpenChange:B,className:"shrink-0 border-b border-line px-4 pt-3 pb-3 sm:px-6",children:[n("div",{className:"flex items-start gap-3",children:[n("div",{className:"min-w-0 flex-1",children:[n("div",{className:"flex items-center gap-3 text-2xs text-faint",children:[e("span",{className:"font-medium tracking-[0.2em] text-dim",children:"COUNCIL"}),e("span",{className:"tabular-nums",children:W(t.elapsedMs)}),n("span",{className:"tabular-nums",children:[c.messages.length," 条发言"]})]}),n("button",{type:"button","aria-expanded":S,onClick:()=>B((r)=>!r),className:"mt-0.5 flex max-w-full cursor-pointer items-start gap-1.5 text-left md:items-center",children:[e("h2",{className:"line-clamp-2 text-md leading-snug font-semibold md:truncate md:text-lg",children:c.topic}),e(Ce,{className:d("mt-0.5 size-4 shrink-0 text-faint transition-transform duration-300 ease-out-quint md:mt-0",!S&&"-rotate-90")})]})]}),n("div",{className:"flex shrink-0 items-center gap-1",children:[n("span",{className:d("inline-flex items-center gap-1.5 rounded-full border border-line px-2.5 py-1 text-xs font-medium",F[j.tone]),children:[e("span",{className:d("size-1.5 rounded-full",ee[j.tone],P&&"animate-pulse")}),j.label]}),e("button",{type:"button","aria-label":"关闭理事会页面",title:"关闭(Esc)",onClick:()=>x(!0),className:"ml-1 inline-flex size-10 -mr-2 cursor-pointer items-center justify-center rounded-full text-faint transition-colors hover:bg-raised hover:text-ink md:size-8 md:mr-0",children:e(ce,{className:"size-4"})})]})]}),e(f,{children:e("div",{className:"mt-2 max-h-[40dvh] overflow-y-auto overscroll-contain rounded-xl bg-panel px-3.5 py-2.5 text-ui leading-relaxed text-dim md:max-h-48",children:e(g,{text:c.brief})})}),e(G,{room:c,className:"mt-3"})]}),n("div",{className:"flex min-h-0 flex-1 flex-col md:flex-row",children:[e("div",{className:"flex shrink-0 gap-2 overflow-x-auto overscroll-x-contain border-b border-line px-4 py-2.5 [scrollbar-width:none] md:hidden",children:c.members.map((r)=>e(Se,{member:r,onSelect:()=>z(r.id)},r.id))}),n("aside",{className:"hidden w-72 shrink-0 flex-col gap-2 overflow-y-auto border-r border-line p-4 md:flex",children:[n("div",{className:"flex items-center justify-between text-2xs text-faint",children:[e("span",{className:"font-medium tracking-wide",children:"席位"}),n("span",{className:"tabular-nums",children:[e("span",{className:"text-success",children:he})," / ",e("span",{className:"text-danger",children:Ne})," /"," ",c.members.length]})]}),c.members.map((r)=>e(Re,{member:r,viewing:r.id===U,onMention:()=>Q(r.name),onOpen:()=>r.id===U?A(!0):ie(r.id)},r.id))]}),O&&n("main",{onAnimationEnd:(r)=>{if(!se||r.target!==r.currentTarget)return;A(!1),X(void 0)},className:d("flex min-h-0 min-w-0 flex-1 flex-col",se?"pointer-events-none animate-overlay-out":"animate-fade"),children:[n("div",{className:"flex shrink-0 items-center gap-2 border-b border-line px-3 py-2 sm:px-4",children:[n("button",{type:"button",onClick:()=>A(!0),className:"inline-flex h-8 cursor-pointer items-center gap-1.5 rounded-lg px-2 text-ui text-dim transition-colors hover:bg-raised hover:text-ink",children:[e(fr,{className:"size-4"}),"群聊"]}),e("span",{className:"text-line-strong",children:"/"}),n("span",{className:"flex min-w-0 flex-1 items-center gap-1.5 text-ui font-medium",children:[e(h,{modelID:O.model,className:"size-4 shrink-0",size:16}),n("span",{className:"truncate",children:[O.name," 的推理过程"]})]}),e("button",{type:"button","aria-label":"在完整页面打开",title:"在完整页面打开",onClick:()=>t.onOpenMember(O.childSessionID),className:"inline-flex size-8 cursor-pointer items-center justify-center rounded-lg text-faint transition-colors hover:bg-raised hover:text-ink",children:e(yn,{className:"size-4"})})]}),e(N,{sessionID:O.childSessionID},O.childSessionID)]}),n("main",{className:d("min-h-0 min-w-0 flex-1 flex-col animate-fade",O?"hidden":"flex"),children:[e(i,{viewportRef:Y,onScrollCapture:(r)=>{let k=Y.current;if(!k||r.target!==k)return;I(k.scrollHeight-k.scrollTop-k.clientHeight<80)},children:n("div",{className:"mx-auto w-full max-w-3xl px-4 py-4 sm:px-6 md:py-5",children:[c.messages.length===0?n("div",{className:"flex flex-col items-center justify-center gap-3 py-24 text-center text-faint",children:[P?e(ae,{className:"size-5 animate-spin"}):null,e("p",{className:"text-sm",children:P?c.phase==="research"?"成员正在各自调研,笔记不会进入群聊":"成员正在独立准备开场观点,彼此不可见":"这场理事会没有产生发言"})]}):e("ol",{className:"space-y-5",children:c.messages.map((r)=>e(Te,{message:r,membersByID:ge,onMention:()=>Q(r.senderName)},r.floor))}),c.summary&&!P&&n("section",{className:"mt-8 rounded-2xl border border-line bg-panel px-4 py-3",children:[n("h3",{className:d("text-xs font-semibold",F[j.tone]),children:["结论:",j.label]}),e("div",{className:"mt-1.5 text-ui leading-relaxed text-dim",children:e(g,{text:c.summary})})]})]})}),e("div",{className:"shrink-0 px-3 pb-[max(0.75rem,env(safe-area-inset-bottom))] sm:px-6 md:pb-4",children:n("div",{className:"mx-auto w-full max-w-3xl",children:[_&&e("p",{role:"status",className:"px-1 pb-2 text-ui text-danger",children:_}),e(v,{draftKey:`council:${c.roomID}`,placeholder:P?"插话,@ 某位成员会点名要求其回应":"理事会已结束,插话会重新唤醒成员",busy:P,allowAttachments:!1,text:J,onTextChange:D,inputRef:re,onSend:be,onAbort:()=>void ve()})]})})]})]}),q&&e(Oe,{member:q,onClose:()=>z(void 0),onMention:()=>{z(void 0),Q(q.name)},onOpen:()=>{z(void 0),ie(q.id)}})]}),document.body)}function Se(t){let{ModelIcon:p,cn:f}=b(),{member:v}=t,g=w[v.verdict]??w.pending,{busy:h}=K(v);return n("button",{type:"button",onClick:t.onSelect,"aria-label":`${v.name},${g.label},查看详情`,className:"flex h-11 max-w-[11rem] shrink-0 cursor-pointer items-center gap-2 rounded-full border border-line bg-panel/60 pr-3.5 pl-1.5 active:bg-raised",children:[n("span",{className:f("relative flex size-8 shrink-0 items-center justify-center rounded-full bg-raised ring-2",g.ring),children:[e(p,{modelID:v.model,className:"size-4",size:16}),h&&e(ae,{className:"absolute -right-1 -bottom-1 size-3.5 animate-spin rounded-full bg-bg text-accent"})]}),n("span",{className:"min-w-0 text-left leading-tight",children:[e("span",{className:"block truncate text-ui font-medium",children:v.name}),e("span",{className:f("block text-2xs",g.text),children:g.label})]})]})}function Oe(t){let{Button:p,Dialog:f,Markdown:v,ModelIcon:g,cn:h}=b(),{member:i}=t,N=w[i.verdict]??w.pending,d=K(i);return e(f,{open:!0,onOpenChange:(u)=>!u&&t.onClose(),title:n("span",{className:"flex min-w-0 items-center gap-2.5",children:[e("span",{className:h("flex size-8 shrink-0 items-center justify-center rounded-full bg-raised ring-2",N.ring),children:e(g,{modelID:i.model,className:"size-4",size:16})}),e("span",{className:"min-w-0 truncate",children:i.name}),e("span",{className:h("shrink-0 rounded px-1.5 py-px text-2xs font-medium",N.soft),children:N.label})]}),description:i.model,footer:n(m,{children:[n(p,{variant:"secondary",onClick:t.onMention,children:[e(L,{className:"size-4"}),"点名"]}),n(p,{variant:"secondary",onClick:t.onOpen,children:[e(yn,{className:"size-4"}),"查看推理"]})]}),children:n("div",{className:"space-y-3 pb-1",children:[n("div",{className:"flex items-center gap-3 text-ui",children:[n("span",{className:h("flex min-w-0 flex-1 items-center gap-1.5",d.busy?"text-accent":"text-dim"),children:[d.busy&&e(ae,{className:"size-3.5 shrink-0 animate-spin"}),e("span",{className:"truncate",children:d.text})]}),n("span",{className:"shrink-0 text-faint tabular-nums",children:["发言 ",i.turns??0," 次"]})]}),i.notes?n("section",{children:[n("h3",{className:"mb-1.5 flex items-center gap-1.5 text-xs font-medium text-faint",children:[e(Z,{className:"size-3.5"}),"调研笔记"]}),e("div",{className:"rounded-xl bg-bg/60 px-3.5 py-2.5 text-ui leading-relaxed text-dim",children:e(v,{text:i.notes})})]}):e("p",{className:"text-ui text-faint",children:"没有调研笔记"})]})})}function Re(t){let{Collapsible:p,CollapsibleContent:f,Markdown:v,ModelIcon:g,cn:h}=b(),{member:i}=t,[N,d]=a(!1),u=w[i.verdict]??w.pending,{busy:c,text:C}=K(i);return n(p,{open:N,onOpenChange:d,className:h("relative shrink-0 rounded-xl border p-2.5 transition-colors",t.viewing?"border-line-strong bg-raised/60":"border-line bg-panel/60 hover:bg-raised/40"),children:[e("button",{type:"button","aria-label":t.viewing?"返回群聊":`查看 ${i.name} 的推理过程`,"aria-pressed":t.viewing,title:t.viewing?"返回群聊":"查看推理与工具调用",onClick:t.onOpen,className:"absolute inset-0 cursor-pointer rounded-xl"}),n("div",{className:"pointer-events-none relative flex items-center gap-2.5",children:[e("span",{className:h("relative flex size-8 shrink-0 items-center justify-center rounded-full bg-raised ring-2",u.ring),children:e(g,{modelID:i.model,className:"size-4",size:16})}),n("div",{className:"min-w-0 flex-1",children:[n("div",{className:"flex items-center gap-1.5",children:[e("span",{className:"truncate text-ui font-medium",title:i.model,children:i.name}),e("span",{className:h("shrink-0 rounded px-1 text-2xs font-medium",u.soft),children:u.label})]}),n("div",{className:h("flex min-w-0 items-center gap-1 text-2xs",c?"text-accent":"text-faint"),children:[c&&e(ae,{className:"size-3 shrink-0 animate-spin"}),e("span",{className:"truncate",children:C})]})]})]}),n("div",{className:"pointer-events-none relative mt-2 flex items-center gap-1 text-2xs text-faint",children:[n("span",{className:"tabular-nums",children:["发言 ",i.turns??0," 次"]}),e("span",{className:"ml-auto"}),i.notes&&n("button",{type:"button","aria-expanded":N,onClick:()=>d((M)=>!M),className:h("pointer-events-auto inline-flex cursor-pointer items-center gap-1 rounded px-1.5 py-0.5 hover:bg-raised hover:text-ink",N&&"text-ink"),children:[e(Z,{className:"size-3"}),"笔记"]}),e("button",{type:"button","aria-label":`@ ${i.name}`,title:`@ ${i.name}`,onClick:t.onMention,className:"pointer-events-auto inline-flex cursor-pointer items-center rounded p-1 hover:bg-raised hover:text-ink",children:e(L,{className:"size-3"})})]}),i.notes&&e(f,{children:e("div",{className:"relative mt-2 max-h-56 overflow-y-auto rounded-lg bg-bg/60 px-2.5 py-2 text-xs leading-relaxed text-dim",children:e(v,{text:i.notes})})})]})}function Te(t){let{Code:p,Collapsible:f,CollapsibleContent:v,Markdown:g,cn:h}=b(),{message:i}=t,[N,d]=a(!1),u=i.senderID==="user"||i.senderID==="host",c=i.verdict&&i.verdict!=="pending"?w[i.verdict]:void 0,C=i.evidences??[],M=(i.mentions??[]).map((x)=>t.membersByID.get(x)).filter((x)=>x!==void 0);return n("li",{id:`council-floor-${i.floor}`,className:"group flex gap-3 animate-fade",children:[e(xe,{message:i,isHuman:u,className:"mt-0.5 hidden size-8 md:flex"}),n("div",{className:"min-w-0 flex-1",children:[n("div",{className:"flex flex-wrap items-center gap-x-2 gap-y-0.5 text-xs",children:[e(xe,{message:i,isHuman:u,className:"flex size-6 md:hidden"}),e("span",{className:"font-semibold text-ink",title:i.senderModel,children:i.senderName}),n("a",{href:`#council-floor-${i.floor}`,className:"font-mono text-2xs text-faint hover:text-dim",onClick:(x)=>x.preventDefault(),children:["#",i.floor]}),c&&e("span",{className:h("rounded px-1.5 py-px text-2xs font-medium",c.soft),children:c.label}),!u&&n("button",{type:"button",onClick:t.onMention,className:"ml-auto inline-flex cursor-pointer items-center gap-1 rounded-md px-2 py-1 text-2xs text-faint transition-opacity hover:bg-raised hover:text-ink focus-visible:opacity-100 md:px-1.5 md:py-0.5 md:opacity-0 md:group-hover:opacity-100",children:[e(L,{className:"size-3"}),"回复"]})]}),(i.replyToFloor||M.length>0)&&n("div",{className:"mt-1 flex flex-wrap items-center gap-1.5 text-2xs text-faint",children:[i.replyToFloor&&n("button",{type:"button",onClick:()=>document.getElementById(`council-floor-${i.replyToFloor}`)?.scrollIntoView({block:"center",behavior:"smooth"}),className:"inline-flex min-w-0 max-w-full cursor-pointer items-center gap-1 rounded-md bg-raised/70 px-1.5 py-0.5 hover:text-ink",children:[e(ba,{className:"size-3 shrink-0"}),n("span",{className:"shrink-0 text-dim",children:["#",i.replyToFloor," ",i.replyToName]}),i.replyToPreview&&e("span",{className:"truncate",children:i.replyToPreview})]}),M.map((x)=>n("span",{className:"inline-flex items-center gap-1 rounded-md bg-accent/10 px-1.5 py-0.5 text-accent",children:[e(L,{className:"size-3"}),x.name]},x.id))]}),e("div",{className:"mt-1.5 break-words text-sm leading-relaxed text-ink/90 md:text-ui [&_p]:my-1.5 [&>*:first-child]:mt-0 [&>*:last-child]:mb-0",children:e(g,{text:i.text})}),C.length>0&&n(f,{open:N,onOpenChange:d,className:"mt-2",children:[n("button",{type:"button","aria-expanded":N,onClick:()=>d((x)=>!x),className:"inline-flex max-w-full cursor-pointer items-center gap-1 text-2xs text-faint hover:text-ink",children:[e(de,{className:"size-3 shrink-0"}),n("span",{className:"shrink-0",children:["查阅 ",C.length," 处"]}),!N&&e("span",{className:"truncate font-mono",children:C.map((x)=>x.label).join(",")}),e(Ce,{className:h("size-3 shrink-0 transition-transform duration-300 ease-out-quint",!N&&"-rotate-90")})]}),e(v,{children:e("div",{className:"mt-1.5 space-y-1.5",children:C.map((x)=>n("div",{className:"overflow-hidden rounded-lg border border-line bg-panel text-xs",children:[e("div",{className:"truncate border-b border-line/70 px-2.5 py-1 font-mono text-2xs text-dim",children:x.label}),x.snippet&&e(p,{code:x.snippet,lang:x.lang||"ts",className:"max-h-40 overflow-auto px-2.5 py-1.5 text-xs"})]},`${x.tool}:${x.label}:${x.snippet?.slice(0,32)??""}`))})})]})]})]})}function xe(t){let{ModelIcon:p,cn:f}=b();return e("span",{className:f("shrink-0 items-center justify-center rounded-full",t.isHuman?"bg-accent/12 text-accent":"bg-raised",t.className),children:t.message.senderModel?e(p,{modelID:t.message.senderModel,className:"size-4",size:16}):e(pe,{className:"size-4"})})}function ot(t){let{ModelIcon:p,cn:f,useTheme:v}=b();v();let{connection:g,sessionID:h,payload:i,onOpen:N}=t,d=i,[u,c]=a(d),[C,M]=a(()=>{try{return sessionStorage.getItem(li)===d.roomID}catch{return!1}}),[x,J]=a(Date.now);s(()=>{c(d)},[d]),s(()=>{if(!C)return;try{if(sessionStorage.getItem(li)===d.roomID)sessionStorage.removeItem(li)}catch{}},[C,d.roomID]);let D=u.state==="running",R=`/api/sessions/${encodeURIComponent(h)}/council/${encodeURIComponent(u.roomID)}`;s(()=>{if(!D)return;let y=!1,T=setInterval(()=>{if(g.request(R).then((z)=>{if(!y&&z&&typeof z==="object"&&"roomID"in z)c(z)}).catch(()=>{}),!y)J(Date.now())},1200);return()=>{y=!0,clearInterval(T)}},[g,R,D]);let H=async(y)=>{let I=await g.request(`${R}/post`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({text:y})});c(I)},_=async()=>{let y=await g.request(`${R}/kill`,{method:"POST"});c(y)},E=(D?x:u.updatedAt)-u.createdAt,S=u.messages.at(-1),B=u.members.filter((y)=>V(y.status)).length;return n(m,{children:[n("button",{type:"button","aria-label":`进入理事会:${u.topic}`,onClick:()=>M(!0),className:"group relative my-2 block w-full cursor-pointer overflow-hidden rounded-2xl border border-line bg-panel text-left transition-colors hover:border-line-strong animate-fade",children:[n("div",{className:"px-4 pt-3.5",children:[n("div",{className:"flex items-center gap-1.5 text-2xs text-faint",children:[e("span",{className:"font-medium text-dim",children:"理事会"}),e("span",{"aria-hidden":!0,children:"·"}),e("span",{className:"tabular-nums",children:W(E)}),n("span",{className:"ml-auto tabular-nums",children:[u.members.length," 位成员"]})]}),e("h4",{className:"mt-1 line-clamp-2 text-sm font-semibold text-ink md:truncate",title:u.topic,children:u.topic})]}),e(G,{room:u,className:"mt-3 px-4"}),e("div",{className:"mt-3 flex flex-wrap items-center gap-x-4 gap-y-2 px-4",children:u.members.map((y)=>{let I=w[y.verdict]??w.pending,T=V(y.status);return n("span",{className:"flex min-w-0 items-center gap-1.5 text-xs",title:y.model,children:[n("span",{className:f("relative flex size-6 shrink-0 items-center justify-center rounded-full bg-raised ring-2",I.ring),children:[e(p,{modelID:y.model,className:"size-3.5",size:14}),T&&e(ae,{className:"absolute -right-1 -bottom-1 size-3 animate-spin rounded-full bg-panel text-accent"})]}),e("span",{className:"truncate text-dim",children:y.name}),e("span",{className:f("shrink-0 text-2xs",I.text),children:I.label})]},y.id)})}),n("div",{className:"mt-3 flex items-center gap-2 border-t border-line/70 px-4 py-2.5 text-xs",children:[S?n(m,{children:[e("span",{className:"shrink-0 font-medium text-dim",children:S.senderName}),e("span",{className:"min-w-0 flex-1 truncate text-faint",children:S.text.replace(/\s+/g," ")})]}):e("span",{className:"min-w-0 flex-1 truncate text-faint",children:D?`${B} 位成员正在${u.phase==="research"?"调研":"思考"}…`:"没有发言"}),n("span",{className:"inline-flex shrink-0 items-center gap-1 text-faint transition-colors group-hover:text-ink",children:[u.messages.length>0&&n("span",{className:"tabular-nums",children:[u.messages.length," 条"]}),e(ue,{className:"size-3.5"})]})]})]}),C&&e(fe,{room:u,elapsedMs:E,onClose:()=>M(!1),onOpenMember:N,onPost:H,onAbort:_})]})}export{ot as CouncilCard};
Binary file
Binary file
@@ -0,0 +1 @@
1
+ import{Cs}from"./chunk-55mx05jg.js";import"./chunk-tn39vbcz.js";import"./chunk-6ycpdpfj.js";export{Cs as default};
Binary file
Binary file
@@ -1,2 +1,2 @@
1
- function xt(t){if(!Number.isFinite(t)||t<=0)return"0";if(t<1000)return Math.round(t).toString();if(t<1e6)return`${(t/1000).toFixed(1)}K`;if(t<1e9)return`${(t/1e6).toFixed(2)}M`;return`${(t/1e9).toFixed(2)}B`}function Kn(t){let r=Number.isFinite(t)?Math.max(0,t):0;return Math.round(r).toLocaleString("en-US")}function Et(t){if(!Number.isFinite(t)||t<=0)return"0s";if(t<1000)return"<1s";if(t<60000)return`${Math.floor(t/1000)}s`;if(t<3600000){let e=Math.floor(t/1000),i=Math.floor(e/60),u=e%60;return u>0?`${i}m ${u}s`:`${i}m`}if(t<259200000){let e=Math.floor(t/60000),i=Math.floor(e/60),u=e%60;return u>0?`${i}h ${u}m`:`${i}h`}let r=Math.floor(t/3600000),n=Math.floor(r/24),o=r%24;return o>0?`${n}d ${o}h`:`${n}d`}function mc(t){if(!Number.isFinite(t)||t<=0)return"0s";if(t<1000)return"<1s";if(t<60000)return`${Math.round(t/1000)}s`;if(t<3600000)return`${Math.round(t/60000)}m`;if(t<86400000){let o=t/3600000;return`${o>=10?Math.round(o).toString():o.toFixed(1).replace(/\.0$/,"")}h`}let r=t/86400000;return`${r>=10?Math.round(r).toString():r.toFixed(1).replace(/\.0$/,"")}d`}function Zn(t,r=1){if(!Number.isFinite(t)||t<=0)return"0%";let n=10**-r/100;if(t<n)return`<${(n*100).toFixed(r)}%`;return`${(t*100).toFixed(r)}%`}function yr(t){if(!Number.isFinite(t)||t<=0)return"0 B";if(t<1024)return`${Math.round(t)} B`;if(t<1048576)return`${(t/1024).toFixed(1)} KB`;if(t<1073741824)return`${(t/1048576).toFixed(2)} MB`;return`${(t/1073741824).toFixed(2)} GB`}function Ei(t){let r=t.split("-"),n=r[1],o=r[2];if(n!==void 0&&o!==void 0)return`${n}/${o}`;return t}function Us(t){let r=t.split("-"),n=r[0],o=r[1],e=r[2];if(n===void 0||o===void 0||e===void 0)return t;let i=Number(n),u=Number(o)-1,a=Number(e),f=new Date(Date.UTC(i,u,a)),c=["周日","周一","周二","周三","周四","周五","周六"],d=f.getUTCDay(),_=c[d]??"";return`${t} ${_}`}function fc(t,r=Date.now()){if(t===null||t===void 0||!Number.isFinite(t)||t<=0)return"从未";let n=Math.max(0,r-t);if(n<60000)return"刚刚";if(n<3600000)return`${Math.max(1,Math.floor(n/60000))} 分钟前`;if(n<86400000)return`${Math.max(1,Math.floor(n/3600000))} 小时前`;if(n<2592000000)return`${Math.max(1,Math.floor(n/86400000))} 天前`;let o=new Date(t),e=o.getFullYear(),i=String(o.getMonth()+1).padStart(2,"0"),u=String(o.getDate()).padStart(2,"0");return`${e}-${i}-${u}`}
2
- export{xt,Kn,Et,mc,Zn,yr,Ei,Us,fc};
1
+ function xt(t){if(!Number.isFinite(t)||t<=0)return"0";if(t<1000)return Math.round(t).toString();if(t<1e6)return`${(t/1000).toFixed(1)}K`;if(t<1e9)return`${(t/1e6).toFixed(2)}M`;return`${(t/1e9).toFixed(2)}B`}function Qn(t){let r=Number.isFinite(t)?Math.max(0,t):0;return Math.round(r).toLocaleString("en-US")}function Et(t){if(!Number.isFinite(t)||t<=0)return"0s";if(t<1000)return"<1s";if(t<60000)return`${Math.floor(t/1000)}s`;if(t<3600000){let e=Math.floor(t/1000),i=Math.floor(e/60),u=e%60;return u>0?`${i}m ${u}s`:`${i}m`}if(t<259200000){let e=Math.floor(t/60000),i=Math.floor(e/60),u=e%60;return u>0?`${i}h ${u}m`:`${i}h`}let r=Math.floor(t/3600000),n=Math.floor(r/24),o=r%24;return o>0?`${n}d ${o}h`:`${n}d`}function hc(t){if(!Number.isFinite(t)||t<=0)return"0s";if(t<1000)return"<1s";if(t<60000)return`${Math.round(t/1000)}s`;if(t<3600000)return`${Math.round(t/60000)}m`;if(t<86400000){let o=t/3600000;return`${o>=10?Math.round(o).toString():o.toFixed(1).replace(/\.0$/,"")}h`}let r=t/86400000;return`${r>=10?Math.round(r).toString():r.toFixed(1).replace(/\.0$/,"")}d`}function Jn(t,r=1){if(!Number.isFinite(t)||t<=0)return"0%";let n=10**-r/100;if(t<n)return`<${(n*100).toFixed(r)}%`;return`${(t*100).toFixed(r)}%`}function zn(t){if(!Number.isFinite(t)||t<=0)return"0 B";if(t<1024)return`${Math.round(t)} B`;if(t<1048576)return`${(t/1024).toFixed(1)} KB`;if(t<1073741824)return`${(t/1048576).toFixed(2)} MB`;return`${(t/1073741824).toFixed(2)} GB`}function Li(t){let r=t.split("-"),n=r[1],o=r[2];if(n!==void 0&&o!==void 0)return`${n}/${o}`;return t}function qs(t){let r=t.split("-"),n=r[0],o=r[1],e=r[2];if(n===void 0||o===void 0||e===void 0)return t;let i=Number(n),u=Number(o)-1,a=Number(e),f=new Date(Date.UTC(i,u,a)),c=["周日","周一","周二","周三","周四","周五","周六"],d=f.getUTCDay(),_=c[d]??"";return`${t} ${_}`}function gc(t,r=Date.now()){if(t===null||t===void 0||!Number.isFinite(t)||t<=0)return"从未";let n=Math.max(0,r-t);if(n<60000)return"刚刚";if(n<3600000)return`${Math.max(1,Math.floor(n/60000))} 分钟前`;if(n<86400000)return`${Math.max(1,Math.floor(n/3600000))} 小时前`;if(n<2592000000)return`${Math.max(1,Math.floor(n/86400000))} 天前`;let o=new Date(t),e=o.getFullYear(),i=String(o.getMonth()+1).padStart(2,"0"),u=String(o.getDate()).padStart(2,"0");return`${e}-${i}-${u}`}
2
+ export{xt,Qn,Et,hc,Jn,zn,Li,qs,gc};
Binary file
Binary file
@@ -0,0 +1 @@
1
+ import{$s}from"./chunk-4ab1dv3g.js";export{$s as createPacketServices};
Binary file
Binary file
@@ -0,0 +1 @@
1
+ import{As}from"./chunk-tntwwpyh.js";import"./chunk-6ycpdpfj.js";export{As as default};
Binary file
Binary file
@@ -1,4 +1,4 @@
1
- import{ae}from"./chunk-5v7dyp6t.js";import{t,i,Qe,A,W,N,M,P,R,I,O,D,d,J,Z}from"./chunk-9hkz2jgq.js";import{fe}from"./chunk-wh028xj6.js";var at=t((a,s)=>{let o=a<=1?a*100:a;if(o<0||o>100)throw Error(`${s} must be between 0-1 (decimal) or 0-100 (percentage). Received: ${a}`);return o},"toPercent"),G=t((a,s,o)=>({x:at(s,`${o} evolution`),y:at(a,`${o} visibility`)}),"toCoordinates"),lt=t((a)=>{if(!a)return;if(a==="+<>")return"bidirectional";if(a==="+<")return"backward";if(a==="+>")return"forward";return},"getFlowFromPort"),Yt=t((a)=>{if(!a?.startsWith("+"))return{};let o=/^\+'([^']*)'/.exec(a)?.[1];if(a.includes("<>"))return{flow:"bidirectional",label:o};if(a.includes("<"))return{flow:"backward",label:o};if(a.includes(">"))return{flow:"forward",label:o};return{label:o}},"extractFlowFromArrow"),It=t((a,s)=>{if(ae(a,s),a.size)s.setSize(a.size.width,a.size.height);if(a.evolution){let o=a.evolution.stages.map((r)=>{if(r.secondName)return`${r.name.trim()} / ${r.secondName.trim()}`;return r.name.trim()}),y=a.evolution.stages.filter((r)=>r.boundary!==void 0).map((r)=>r.boundary);s.updateAxes({stages:o,stageBoundaries:y})}if(a.anchors.forEach((o)=>{let y=G(o.visibility,o.evolution,`Anchor "${o.name}"`);s.addNode(o.name,o.name,y.x,y.y,"anchor")}),a.components.forEach((o)=>{let y=G(o.visibility,o.evolution,`Component "${o.name}"`),r=o.label?(o.label.negX?-1:1)*o.label.offsetX:void 0,p=o.label?(o.label.negY?-1:1)*o.label.offsetY:void 0,k=o.decorator?.strategy;s.addNode(o.name,o.name,y.x,y.y,"component",r,p,o.inertia,k)}),a.notes.forEach((o)=>{let y=G(o.visibility,o.evolution,`Note "${o.text}"`);s.addNote(o.text,y.x,y.y)}),a.pipelines.forEach((o)=>{let y=s.getNode(o.parent);if(!y||typeof y.y!=="number")throw Error(`Pipeline "${o.parent}" must reference an existing component with coordinates.`);let r=y.y;s.startPipeline(o.parent),o.components.forEach((p)=>{let k=`${o.parent}_${p.name}`,T=p.label?(p.label.negX?-1:1)*p.label.offsetX:void 0,w=p.label?(p.label.negY?-1:1)*p.label.offsetY:void 0,K=at(p.evolution,`Pipeline component "${p.name}" evolution`);s.addNode(k,p.name,K,r,"pipeline-component",T,w),s.addPipelineComponent(o.parent,k)})}),a.links.forEach((o)=>{let y=!!o.arrow&&(o.arrow.includes("-.->")||o.arrow.includes(".-.")),r=lt(o.fromPort)??lt(o.toPort),{flow:p,label:k}=Yt(o.arrow);if(!r&&p)r=p;let T=o.linkLabel,w=k??T;s.addLink(s.resolveNodeId(o.from),s.resolveNodeId(o.to),y,w,r)}),a.evolves.forEach((o)=>{let y=s.getNode(o.component);if(y?.y!==void 0){let r=at(o.target,`Evolve target for "${o.component}"`);s.addTrend(o.component,r,y.y)}}),a.annotations.length>0){let o=a.annotations[0],y=G(o.x,o.y,"Annotations box");s.setAnnotationsBox(y.x,y.y)}a.annotation.forEach((o)=>{let y=G(o.x,o.y,`Annotation ${o.number}`);s.addAnnotation(o.number,[{x:y.x,y:y.y}],o.text)}),a.accelerators.forEach((o)=>{let y=G(o.x,o.y,`Accelerator "${o.name}"`);s.addAccelerator(o.name,y.x,y.y)}),a.deaccelerators.forEach((o)=>{let y=G(o.x,o.y,`Deaccelerator "${o.name}"`);s.addDeaccelerator(o.name,y.x,y.y)})},"populateDb"),ct={parser:{yy:void 0},parse:t(async(a)=>{let s=await fe("wardley",a);i.debug(s);let o=ct.parser?.yy;if(!o||typeof o.addNode!=="function")throw Error("parser.parser?.yy was not a WardleyDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");It(s,o)},"parse")},Bt=class{constructor(){this.nodes=new Map,this.links=[],this.trends=new Map,this.pipelines=new Map,this.annotations=[],this.notes=[],this.accelerators=[],this.deaccelerators=[],this.axes={}}static{t(this,"WardleyBuilder")}addNode(a){let s=this.nodes.get(a.id)??{id:a.id,label:a.label},o={...s,...a,className:a.className??s.className,labelOffsetX:a.labelOffsetX??s.labelOffsetX,labelOffsetY:a.labelOffsetY??s.labelOffsetY};this.nodes.set(a.id,o)}addLink(a){this.links.push(a)}addTrend(a){this.trends.set(a.nodeId,a)}startPipeline(a){this.pipelines.set(a,{nodeId:a,componentIds:[]});let s=this.nodes.get(a);if(s)s.isPipelineParent=!0}addPipelineComponent(a,s){let o=this.pipelines.get(a);if(o)o.componentIds.push(s);let y=this.nodes.get(s);if(y)y.inPipeline=!0}addAnnotation(a){this.annotations.push(a)}addNote(a){this.notes.push(a)}addAccelerator(a){this.accelerators.push(a)}addDeaccelerator(a){this.deaccelerators.push(a)}setAnnotationsBox(a,s){this.annotationsBox={x:a,y:s}}setAxes(a){this.axes={...this.axes,...a}}setSize(a,s){this.size={width:a,height:s}}getNode(a){return this.nodes.get(a)}resolveNodeId(a){if(this.nodes.has(a))return a;for(let[s,o]of this.nodes)if(o.label===a)return s;return a}build(){let a=[];for(let s of this.nodes.values()){if(typeof s.x!=="number"||typeof s.y!=="number")throw Error(`Node "${s.label}" is missing coordinates`);a.push(s)}return{nodes:a,links:[...this.links],trends:[...this.trends.values()],pipelines:[...this.pipelines.values()],annotations:[...this.annotations],notes:[...this.notes],accelerators:[...this.accelerators],deaccelerators:[...this.deaccelerators],annotationsBox:this.annotationsBox,axes:{...this.axes},size:this.size}}clear(){this.nodes.clear(),this.links=[],this.trends.clear(),this.pipelines.clear(),this.annotations=[],this.notes=[],this.accelerators=[],this.deaccelerators=[],this.annotationsBox=void 0,this.axes={},this.size=void 0}},v=new Bt;function pt(){return d()["wardley-beta"]}t(pt,"getConfig");function ht(a,s,o,y,r,p,k,T,w){v.addNode({id:a,label:s,x:o,y,className:r,labelOffsetX:p,labelOffsetY:k,inertia:T,sourceStrategy:w})}t(ht,"addNode");function ft(a,s,o=!1,y,r){v.addLink({source:a,target:s,dashed:o,label:y,flow:r})}t(ft,"addLink");function xt(a,s,o){v.addTrend({nodeId:a,targetX:s,targetY:o})}t(xt,"addTrend");function gt(a,s,o){v.addAnnotation({number:a,coordinates:s,text:o})}t(gt,"addAnnotation");function yt(a,s,o){v.addNote({text:a,x:s,y:o})}t(yt,"addNote");function ut(a,s,o){v.addAccelerator({name:a,x:s,y:o})}t(ut,"addAccelerator");function wt(a,s,o){v.addDeaccelerator({name:a,x:s,y:o})}t(wt,"addDeaccelerator");function mt(a,s){v.setAnnotationsBox(a,s)}t(mt,"setAnnotationsBox");function kt(a,s){v.setSize(a,s)}t(kt,"setSize");function bt(a){v.startPipeline(a)}t(bt,"startPipeline");function $t(a,s){v.addPipelineComponent(a,s)}t($t,"addPipelineComponent");function vt(a){v.setAxes(a)}t(vt,"updateAxes");function Pt(a){return v.getNode(a)}t(Pt,"getNode");function Ct(a){return v.resolveNodeId(a)}t(Ct,"resolveNodeId");function St(){return v.build()}t(St,"getWardleyData");function Mt(){v.clear(),N()}t(Mt,"clear");var Ft={getConfig:pt,addNode:ht,addLink:ft,addTrend:xt,addAnnotation:gt,addNote:yt,addAccelerator:ut,addDeaccelerator:wt,setAnnotationsBox:mt,setSize:kt,startPipeline:bt,addPipelineComponent:$t,updateAxes:vt,getNode:Pt,resolveNodeId:Ct,getWardleyData:St,clear:Mt,setAccTitle:M,getAccTitle:P,setDiagramTitle:O,getDiagramTitle:D,getAccDescription:I,setAccDescription:R},Rt=["Genesis","Custom Built","Product","Commodity"],Ot=t(()=>{let{themeVariables:a}=d();return{backgroundColor:a.wardley?.backgroundColor??a.background??"#fff",axisColor:a.wardley?.axisColor??"#000",axisTextColor:a.wardley?.axisTextColor??a.primaryTextColor??"#222",gridColor:a.wardley?.gridColor??"rgba(100, 100, 100, 0.2)",componentFill:a.wardley?.componentFill??"#fff",componentStroke:a.wardley?.componentStroke??"#000",componentLabelColor:a.wardley?.componentLabelColor??a.primaryTextColor??"#222",linkStroke:a.wardley?.linkStroke??"#000",evolutionStroke:a.wardley?.evolutionStroke??"#dc3545",annotationStroke:a.wardley?.annotationStroke??"#000",annotationTextColor:a.wardley?.annotationTextColor??a.primaryTextColor??"#222",annotationFill:a.wardley?.annotationFill??a.background??"#fff"}},"getTheme"),Dt=t(()=>{let a=d()["wardley-beta"];return{width:a?.width??900,height:a?.height??600,padding:a?.padding??48,nodeRadius:a?.nodeRadius??6,nodeLabelOffset:a?.nodeLabelOffset??8,axisFontSize:a?.axisFontSize??12,labelFontSize:a?.labelFontSize??10,showGrid:a?.showGrid??!1,useMaxWidth:a?.useMaxWidth??!0}},"getConfigValues"),Gt=t((a,s,o,y)=>{i.debug(`Rendering Wardley map
1
+ import{ie}from"./chunk-tykcqm6v.js";import{t,i,Qe,A,W,N,M,P,R,I,O,D,d,J,Z}from"./chunk-sawc81kc.js";import{fe}from"./chunk-4ab1dv3g.js";var at=t((a,s)=>{let o=a<=1?a*100:a;if(o<0||o>100)throw Error(`${s} must be between 0-1 (decimal) or 0-100 (percentage). Received: ${a}`);return o},"toPercent"),G=t((a,s,o)=>({x:at(s,`${o} evolution`),y:at(a,`${o} visibility`)}),"toCoordinates"),lt=t((a)=>{if(!a)return;if(a==="+<>")return"bidirectional";if(a==="+<")return"backward";if(a==="+>")return"forward";return},"getFlowFromPort"),Yt=t((a)=>{if(!a?.startsWith("+"))return{};let o=/^\+'([^']*)'/.exec(a)?.[1];if(a.includes("<>"))return{flow:"bidirectional",label:o};if(a.includes("<"))return{flow:"backward",label:o};if(a.includes(">"))return{flow:"forward",label:o};return{label:o}},"extractFlowFromArrow"),It=t((a,s)=>{if(ie(a,s),a.size)s.setSize(a.size.width,a.size.height);if(a.evolution){let o=a.evolution.stages.map((r)=>{if(r.secondName)return`${r.name.trim()} / ${r.secondName.trim()}`;return r.name.trim()}),y=a.evolution.stages.filter((r)=>r.boundary!==void 0).map((r)=>r.boundary);s.updateAxes({stages:o,stageBoundaries:y})}if(a.anchors.forEach((o)=>{let y=G(o.visibility,o.evolution,`Anchor "${o.name}"`);s.addNode(o.name,o.name,y.x,y.y,"anchor")}),a.components.forEach((o)=>{let y=G(o.visibility,o.evolution,`Component "${o.name}"`),r=o.label?(o.label.negX?-1:1)*o.label.offsetX:void 0,p=o.label?(o.label.negY?-1:1)*o.label.offsetY:void 0,k=o.decorator?.strategy;s.addNode(o.name,o.name,y.x,y.y,"component",r,p,o.inertia,k)}),a.notes.forEach((o)=>{let y=G(o.visibility,o.evolution,`Note "${o.text}"`);s.addNote(o.text,y.x,y.y)}),a.pipelines.forEach((o)=>{let y=s.getNode(o.parent);if(!y||typeof y.y!=="number")throw Error(`Pipeline "${o.parent}" must reference an existing component with coordinates.`);let r=y.y;s.startPipeline(o.parent),o.components.forEach((p)=>{let k=`${o.parent}_${p.name}`,T=p.label?(p.label.negX?-1:1)*p.label.offsetX:void 0,w=p.label?(p.label.negY?-1:1)*p.label.offsetY:void 0,K=at(p.evolution,`Pipeline component "${p.name}" evolution`);s.addNode(k,p.name,K,r,"pipeline-component",T,w),s.addPipelineComponent(o.parent,k)})}),a.links.forEach((o)=>{let y=!!o.arrow&&(o.arrow.includes("-.->")||o.arrow.includes(".-.")),r=lt(o.fromPort)??lt(o.toPort),{flow:p,label:k}=Yt(o.arrow);if(!r&&p)r=p;let T=o.linkLabel,w=k??T;s.addLink(s.resolveNodeId(o.from),s.resolveNodeId(o.to),y,w,r)}),a.evolves.forEach((o)=>{let y=s.getNode(o.component);if(y?.y!==void 0){let r=at(o.target,`Evolve target for "${o.component}"`);s.addTrend(o.component,r,y.y)}}),a.annotations.length>0){let o=a.annotations[0],y=G(o.x,o.y,"Annotations box");s.setAnnotationsBox(y.x,y.y)}a.annotation.forEach((o)=>{let y=G(o.x,o.y,`Annotation ${o.number}`);s.addAnnotation(o.number,[{x:y.x,y:y.y}],o.text)}),a.accelerators.forEach((o)=>{let y=G(o.x,o.y,`Accelerator "${o.name}"`);s.addAccelerator(o.name,y.x,y.y)}),a.deaccelerators.forEach((o)=>{let y=G(o.x,o.y,`Deaccelerator "${o.name}"`);s.addDeaccelerator(o.name,y.x,y.y)})},"populateDb"),ct={parser:{yy:void 0},parse:t(async(a)=>{let s=await fe("wardley",a);i.debug(s);let o=ct.parser?.yy;if(!o||typeof o.addNode!=="function")throw Error("parser.parser?.yy was not a WardleyDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");It(s,o)},"parse")},Bt=class{constructor(){this.nodes=new Map,this.links=[],this.trends=new Map,this.pipelines=new Map,this.annotations=[],this.notes=[],this.accelerators=[],this.deaccelerators=[],this.axes={}}static{t(this,"WardleyBuilder")}addNode(a){let s=this.nodes.get(a.id)??{id:a.id,label:a.label},o={...s,...a,className:a.className??s.className,labelOffsetX:a.labelOffsetX??s.labelOffsetX,labelOffsetY:a.labelOffsetY??s.labelOffsetY};this.nodes.set(a.id,o)}addLink(a){this.links.push(a)}addTrend(a){this.trends.set(a.nodeId,a)}startPipeline(a){this.pipelines.set(a,{nodeId:a,componentIds:[]});let s=this.nodes.get(a);if(s)s.isPipelineParent=!0}addPipelineComponent(a,s){let o=this.pipelines.get(a);if(o)o.componentIds.push(s);let y=this.nodes.get(s);if(y)y.inPipeline=!0}addAnnotation(a){this.annotations.push(a)}addNote(a){this.notes.push(a)}addAccelerator(a){this.accelerators.push(a)}addDeaccelerator(a){this.deaccelerators.push(a)}setAnnotationsBox(a,s){this.annotationsBox={x:a,y:s}}setAxes(a){this.axes={...this.axes,...a}}setSize(a,s){this.size={width:a,height:s}}getNode(a){return this.nodes.get(a)}resolveNodeId(a){if(this.nodes.has(a))return a;for(let[s,o]of this.nodes)if(o.label===a)return s;return a}build(){let a=[];for(let s of this.nodes.values()){if(typeof s.x!=="number"||typeof s.y!=="number")throw Error(`Node "${s.label}" is missing coordinates`);a.push(s)}return{nodes:a,links:[...this.links],trends:[...this.trends.values()],pipelines:[...this.pipelines.values()],annotations:[...this.annotations],notes:[...this.notes],accelerators:[...this.accelerators],deaccelerators:[...this.deaccelerators],annotationsBox:this.annotationsBox,axes:{...this.axes},size:this.size}}clear(){this.nodes.clear(),this.links=[],this.trends.clear(),this.pipelines.clear(),this.annotations=[],this.notes=[],this.accelerators=[],this.deaccelerators=[],this.annotationsBox=void 0,this.axes={},this.size=void 0}},v=new Bt;function pt(){return d()["wardley-beta"]}t(pt,"getConfig");function ht(a,s,o,y,r,p,k,T,w){v.addNode({id:a,label:s,x:o,y,className:r,labelOffsetX:p,labelOffsetY:k,inertia:T,sourceStrategy:w})}t(ht,"addNode");function ft(a,s,o=!1,y,r){v.addLink({source:a,target:s,dashed:o,label:y,flow:r})}t(ft,"addLink");function xt(a,s,o){v.addTrend({nodeId:a,targetX:s,targetY:o})}t(xt,"addTrend");function gt(a,s,o){v.addAnnotation({number:a,coordinates:s,text:o})}t(gt,"addAnnotation");function yt(a,s,o){v.addNote({text:a,x:s,y:o})}t(yt,"addNote");function ut(a,s,o){v.addAccelerator({name:a,x:s,y:o})}t(ut,"addAccelerator");function wt(a,s,o){v.addDeaccelerator({name:a,x:s,y:o})}t(wt,"addDeaccelerator");function mt(a,s){v.setAnnotationsBox(a,s)}t(mt,"setAnnotationsBox");function kt(a,s){v.setSize(a,s)}t(kt,"setSize");function bt(a){v.startPipeline(a)}t(bt,"startPipeline");function $t(a,s){v.addPipelineComponent(a,s)}t($t,"addPipelineComponent");function vt(a){v.setAxes(a)}t(vt,"updateAxes");function Pt(a){return v.getNode(a)}t(Pt,"getNode");function Ct(a){return v.resolveNodeId(a)}t(Ct,"resolveNodeId");function St(){return v.build()}t(St,"getWardleyData");function Mt(){v.clear(),N()}t(Mt,"clear");var Ft={getConfig:pt,addNode:ht,addLink:ft,addTrend:xt,addAnnotation:gt,addNote:yt,addAccelerator:ut,addDeaccelerator:wt,setAnnotationsBox:mt,setSize:kt,startPipeline:bt,addPipelineComponent:$t,updateAxes:vt,getNode:Pt,resolveNodeId:Ct,getWardleyData:St,clear:Mt,setAccTitle:M,getAccTitle:P,setDiagramTitle:O,getDiagramTitle:D,getAccDescription:I,setAccDescription:R},Rt=["Genesis","Custom Built","Product","Commodity"],Ot=t(()=>{let{themeVariables:a}=d();return{backgroundColor:a.wardley?.backgroundColor??a.background??"#fff",axisColor:a.wardley?.axisColor??"#000",axisTextColor:a.wardley?.axisTextColor??a.primaryTextColor??"#222",gridColor:a.wardley?.gridColor??"rgba(100, 100, 100, 0.2)",componentFill:a.wardley?.componentFill??"#fff",componentStroke:a.wardley?.componentStroke??"#000",componentLabelColor:a.wardley?.componentLabelColor??a.primaryTextColor??"#222",linkStroke:a.wardley?.linkStroke??"#000",evolutionStroke:a.wardley?.evolutionStroke??"#dc3545",annotationStroke:a.wardley?.annotationStroke??"#000",annotationTextColor:a.wardley?.annotationTextColor??a.primaryTextColor??"#222",annotationFill:a.wardley?.annotationFill??a.background??"#fff"}},"getTheme"),Dt=t(()=>{let a=d()["wardley-beta"];return{width:a?.width??900,height:a?.height??600,padding:a?.padding??48,nodeRadius:a?.nodeRadius??6,nodeLabelOffset:a?.nodeLabelOffset??8,axisFontSize:a?.axisFontSize??12,labelFontSize:a?.labelFontSize??10,showGrid:a?.showGrid??!1,useMaxWidth:a?.useMaxWidth??!0}},"getConfigValues"),Gt=t((a,s,o,y)=>{i.debug(`Rendering Wardley map
2
2
  `+a);let r=Dt(),p=Ot(),k=r.nodeRadius*1.6,T=y.db,w=T.getWardleyData(),K=T.getDiagramTitle(),X=w.size?.width??r.width,C=w.size?.height??r.height,j=J(s);j.selectAll("*").remove(),W(j,C,X,r.useMaxWidth),j.attr("viewBox",`0 0 ${X} ${C}`);let z=j.append("g").attr("class","wardley-map"),rt=j.append("defs");rt.append("marker").attr("id",`arrow-${s}`).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerWidth",6).attr("markerHeight",6).attr("orient","auto-start-reverse").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("fill",p.evolutionStroke).attr("stroke","none"),rt.append("marker").attr("id",`link-arrow-end-${s}`).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerWidth",5).attr("markerHeight",5).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("fill",p.linkStroke).attr("stroke","none"),rt.append("marker").attr("id",`link-arrow-start-${s}`).attr("viewBox","0 0 10 10").attr("refX",1).attr("refY",5).attr("markerWidth",5).attr("markerHeight",5).attr("orient","auto").append("path").attr("d","M 10 0 L 0 5 L 10 10 z").attr("fill",p.linkStroke).attr("stroke","none"),z.append("rect").attr("class","wardley-background").attr("width",X).attr("height",C).attr("fill",p.backgroundColor);let V=X-r.padding*2,_=C-r.padding*2;if(K)z.append("text").attr("class","wardley-title").attr("x",X/2).attr("y",r.padding/2).attr("fill",p.axisTextColor).attr("font-size",r.axisFontSize*1.05).attr("font-weight","bold").attr("text-anchor","middle").attr("dominant-baseline","middle").text(K);let Y=t((e)=>r.padding+e/100*V,"projectX"),B=t((e)=>C-r.padding-e/100*_,"projectY"),Q=z.append("g").attr("class","wardley-axes");Q.append("line").attr("x1",r.padding).attr("x2",X-r.padding).attr("y1",C-r.padding).attr("y2",C-r.padding).attr("stroke",p.axisColor).attr("stroke-width",1),Q.append("line").attr("x1",r.padding).attr("x2",r.padding).attr("y1",r.padding).attr("y2",C-r.padding).attr("stroke",p.axisColor).attr("stroke-width",1);let Nt=w.axes.xLabel??"Evolution",zt=w.axes.yLabel??"Visibility";Q.append("text").attr("class","wardley-axis-label wardley-axis-label-x").attr("x",r.padding+V/2).attr("y",C-r.padding/4).attr("fill",p.axisTextColor).attr("font-size",r.axisFontSize).attr("font-weight","bold").attr("text-anchor","middle").text(Nt),Q.append("text").attr("class","wardley-axis-label wardley-axis-label-y").attr("x",r.padding/3).attr("y",r.padding+_/2).attr("fill",p.axisTextColor).attr("font-size",r.axisFontSize).attr("font-weight","bold").attr("text-anchor","middle").attr("transform",`rotate(-90 ${r.padding/3} ${r.padding+_/2})`).text(zt);let U=w.axes.stages&&w.axes.stages.length>0?w.axes.stages:Rt;if(U.length>0){let e=z.append("g").attr("class","wardley-stages"),l=w.axes.stageBoundaries,n=[];if(l&&l.length===U.length){let c=0;l.forEach((f)=>{n.push({start:c,end:f}),c=f})}else{let c=1/U.length;U.forEach((f,x)=>{n.push({start:x*c,end:(x+1)*c})})}U.forEach((c,f)=>{let x=n[f],u=r.padding+x.start*V,g=r.padding+x.end*V,m=(u+g)/2;if(f>0)e.append("line").attr("x1",u).attr("x2",u).attr("y1",r.padding).attr("y2",C-r.padding).attr("stroke","#000").attr("stroke-width",1).attr("stroke-dasharray","5 5").attr("opacity",0.8);e.append("text").attr("class","wardley-stage-label").attr("x",m).attr("y",C-r.padding/1.5).attr("fill",p.axisTextColor).attr("font-size",r.axisFontSize-2).attr("text-anchor","middle").text(c)})}if(r.showGrid){let e=z.append("g").attr("class","wardley-grid");for(let l=1;l<4;l++){let n=l/4,c=r.padding+V*n;e.append("line").attr("x1",c).attr("x2",c).attr("y1",r.padding).attr("y2",C-r.padding).attr("stroke",p.gridColor).attr("stroke-dasharray","2 6"),e.append("line").attr("x1",r.padding).attr("x2",X-r.padding).attr("y1",C-r.padding-_*n).attr("y2",C-r.padding-_*n).attr("stroke",p.gridColor).attr("stroke-dasharray","2 6")}}let h=new Map;if(w.nodes.forEach((e)=>{h.set(e.id,{x:Y(e.x),y:B(e.y),node:e})}),w.pipelines.length>0){let e=z.append("g").attr("class","wardley-pipelines"),l=z.append("g").attr("class","wardley-pipeline-links");w.pipelines.forEach((n)=>{if(n.componentIds.length===0)return;let c=n.componentIds.map((g)=>({id:g,pos:h.get(g),node:w.nodes.find((m)=>m.id===g)})).filter((g)=>g.pos&&g.node).sort((g,m)=>g.node.x-m.node.x);for(let g=0;g<c.length-1;g++){let m=c[g],b=c[g+1];l.append("line").attr("class","wardley-pipeline-evolution-link").attr("x1",m.pos.x).attr("y1",m.pos.y).attr("x2",b.pos.x).attr("y2",b.pos.y).attr("stroke",p.linkStroke).attr("stroke-width",1).attr("stroke-dasharray","4 4")}let f=1/0,x=-1/0,u=0;if(n.componentIds.forEach((g)=>{let m=h.get(g);if(m)f=Math.min(f,m.x),x=Math.max(x,m.x),u=m.y}),f!==1/0&&x!==-1/0){let m=r.nodeRadius*4,b=u-m/2,L=h.get(n.nodeId);if(L){let H=(f+x)/2;L.x=H,L.y=b-k/6}e.append("rect").attr("class","wardley-pipeline-box").attr("x",f-15).attr("y",b).attr("width",x-f+30).attr("height",m).attr("fill","none").attr("stroke",p.axisColor).attr("stroke-width",1.5).attr("rx",4).attr("ry",4)}})}let st=z.append("g").attr("class","wardley-links"),it=new Map;w.pipelines.forEach((e)=>{it.set(e.nodeId,new Set(e.componentIds))});let dt=w.links.filter((e)=>{if(!h.has(e.source)||!h.has(e.target))return!1;if(it.get(e.target)?.has(e.source))return!1;return!0});st.selectAll("line").data(dt).enter().append("line").attr("class",(e)=>`wardley-link${e.dashed?" wardley-link--dashed":""}`).attr("x1",(e)=>{let l=h.get(e.source),n=h.get(e.target),f=w.nodes.find((m)=>m.id===e.source).isPipelineParent?k/Math.sqrt(2):r.nodeRadius,x=n.x-l.x,u=n.y-l.y,g=Math.sqrt(x*x+u*u);return l.x+x/g*f}).attr("y1",(e)=>{let l=h.get(e.source),n=h.get(e.target),f=w.nodes.find((m)=>m.id===e.source).isPipelineParent?k/Math.sqrt(2):r.nodeRadius,x=n.x-l.x,u=n.y-l.y,g=Math.sqrt(x*x+u*u);return l.y+u/g*f}).attr("x2",(e)=>{let l=h.get(e.source),n=h.get(e.target),f=w.nodes.find((m)=>m.id===e.target).isPipelineParent?k/Math.sqrt(2):r.nodeRadius,x=l.x-n.x,u=l.y-n.y,g=Math.sqrt(x*x+u*u);return n.x+x/g*f}).attr("y2",(e)=>{let l=h.get(e.source),n=h.get(e.target),f=w.nodes.find((m)=>m.id===e.target).isPipelineParent?k/Math.sqrt(2):r.nodeRadius,x=l.x-n.x,u=l.y-n.y,g=Math.sqrt(x*x+u*u);return n.y+u/g*f}).attr("stroke",p.linkStroke).attr("stroke-width",1).attr("stroke-dasharray",(e)=>e.dashed?"6 6":null).attr("marker-end",(e)=>{if(e.flow==="forward"||e.flow==="bidirectional")return`url(#link-arrow-end-${s})`;return null}).attr("marker-start",(e)=>{if(e.flow==="backward"||e.flow==="bidirectional")return`url(#link-arrow-start-${s})`;return null}),st.selectAll("text").data(dt.filter((e)=>e.label)).enter().append("text").attr("class","wardley-link-label").attr("x",(e)=>{let l=h.get(e.source),n=h.get(e.target),c=(l.x+n.x)/2,f=n.y-l.y,x=n.x-l.x,u=Math.sqrt(x*x+f*f),g=8,m=f/u;return c+m*8}).attr("y",(e)=>{let l=h.get(e.source),n=h.get(e.target),c=(l.y+n.y)/2,f=n.x-l.x,x=n.y-l.y,u=Math.sqrt(f*f+x*x),g=8,m=-f/u;return c+m*8}).attr("fill",p.axisTextColor).attr("font-size",r.labelFontSize).attr("text-anchor","middle").attr("dominant-baseline","middle").attr("transform",(e)=>{let l=h.get(e.source),n=h.get(e.target),c=(l.x+n.x)/2,f=(l.y+n.y)/2,x=n.x-l.x,u=n.y-l.y,g=Math.sqrt(x*x+u*u),m=8,b=u/g,L=-x/g,H=c+b*8,tt=f+L*8,q=Math.atan2(u,x)*180/Math.PI;if(q>90||q<-90)q+=180;return`rotate(${q} ${H} ${tt})`}).text((e)=>e.label);let Lt=z.append("g").attr("class","wardley-trends"),Tt=w.trends.map((e)=>{let l=h.get(e.nodeId);if(!l)return null;let n=Y(e.targetX),c=B(e.targetY),f=n-l.x,x=c-l.y,u=Math.sqrt(f*f+x*x),g=r.nodeRadius+2,m=u>g?n-f/u*g:n,b=u>g?c-x/u*g:c;return{origin:l,targetX:n,targetY:c,adjustedX2:m,adjustedY2:b}}).filter((e)=>e!==null);Lt.selectAll("line").data(Tt).enter().append("line").attr("class","wardley-trend").attr("x1",(e)=>e.origin.x).attr("y1",(e)=>e.origin.y).attr("x2",(e)=>e.adjustedX2).attr("y2",(e)=>e.adjustedY2).attr("stroke",p.evolutionStroke).attr("stroke-width",1).attr("stroke-dasharray","4 4").attr("marker-end",`url(#arrow-${s})`);let E=z.append("g").attr("class","wardley-nodes").selectAll("g").data(w.nodes).enter().append("g").attr("class",(e)=>["wardley-node",e.className?`wardley-node--${e.className}`:""].filter(Boolean).join(" "));E.filter((e)=>e.sourceStrategy==="outsource").append("circle").attr("class","wardley-outsource-overlay").attr("cx",(e)=>h.get(e.id).x).attr("cy",(e)=>h.get(e.id).y).attr("r",r.nodeRadius*2).attr("fill","#666").attr("stroke",p.componentStroke).attr("stroke-width",1),E.filter((e)=>e.sourceStrategy==="buy").append("circle").attr("class","wardley-buy-overlay").attr("cx",(e)=>h.get(e.id).x).attr("cy",(e)=>h.get(e.id).y).attr("r",r.nodeRadius*2).attr("fill","#ccc").attr("stroke",p.componentStroke).attr("stroke-width",1),E.filter((e)=>e.sourceStrategy==="build").append("circle").attr("class","wardley-build-overlay").attr("cx",(e)=>h.get(e.id).x).attr("cy",(e)=>h.get(e.id).y).attr("r",r.nodeRadius*2).attr("fill","#eee").attr("stroke","#000").attr("stroke-width",1);let F=E.filter((e)=>e.sourceStrategy==="market");F.append("circle").attr("class","wardley-market-overlay").attr("cx",(e)=>h.get(e.id).x).attr("cy",(e)=>h.get(e.id).y).attr("r",r.nodeRadius*2).attr("fill","white").attr("stroke",p.componentStroke).attr("stroke-width",1),E.filter((e)=>!e.isPipelineParent&&e.sourceStrategy!=="market"&&e.className!=="anchor").append("circle").attr("cx",(e)=>h.get(e.id).x).attr("cy",(e)=>h.get(e.id).y).attr("r",r.nodeRadius).attr("fill",p.componentFill).attr("stroke",p.componentStroke).attr("stroke-width",1);let ot=r.nodeRadius*0.7,S=r.nodeRadius*1.2;if(F.append("line").attr("class","wardley-market-line").attr("x1",(e)=>h.get(e.id).x).attr("y1",(e)=>h.get(e.id).y-S).attr("x2",(e)=>h.get(e.id).x-S*Math.cos(Math.PI/6)).attr("y2",(e)=>h.get(e.id).y+S*Math.sin(Math.PI/6)).attr("stroke",p.componentStroke).attr("stroke-width",1),F.append("line").attr("class","wardley-market-line").attr("x1",(e)=>h.get(e.id).x-S*Math.cos(Math.PI/6)).attr("y1",(e)=>h.get(e.id).y+S*Math.sin(Math.PI/6)).attr("x2",(e)=>h.get(e.id).x+S*Math.cos(Math.PI/6)).attr("y2",(e)=>h.get(e.id).y+S*Math.sin(Math.PI/6)).attr("stroke",p.componentStroke).attr("stroke-width",1),F.append("line").attr("class","wardley-market-line").attr("x1",(e)=>h.get(e.id).x+S*Math.cos(Math.PI/6)).attr("y1",(e)=>h.get(e.id).y+S*Math.sin(Math.PI/6)).attr("x2",(e)=>h.get(e.id).x).attr("y2",(e)=>h.get(e.id).y-S).attr("stroke",p.componentStroke).attr("stroke-width",1),F.append("circle").attr("class","wardley-market-dot").attr("cx",(e)=>h.get(e.id).x).attr("cy",(e)=>h.get(e.id).y-S).attr("r",ot).attr("fill","white").attr("stroke",p.componentStroke).attr("stroke-width",2),F.append("circle").attr("class","wardley-market-dot").attr("cx",(e)=>h.get(e.id).x-S*Math.cos(Math.PI/6)).attr("cy",(e)=>h.get(e.id).y+S*Math.sin(Math.PI/6)).attr("r",ot).attr("fill","white").attr("stroke",p.componentStroke).attr("stroke-width",2),F.append("circle").attr("class","wardley-market-dot").attr("cx",(e)=>h.get(e.id).x+S*Math.cos(Math.PI/6)).attr("cy",(e)=>h.get(e.id).y+S*Math.sin(Math.PI/6)).attr("r",ot).attr("fill","white").attr("stroke",p.componentStroke).attr("stroke-width",2),E.filter((e)=>e.isPipelineParent===!0).append("rect").attr("x",(e)=>h.get(e.id).x-k/2).attr("y",(e)=>h.get(e.id).y-k/2).attr("width",k).attr("height",k).attr("fill",p.componentFill).attr("stroke",p.componentStroke).attr("stroke-width",1),E.filter((e)=>e.inertia===!0).append("line").attr("class","wardley-inertia").attr("x1",(e)=>{let l=h.get(e.id),n=e.isPipelineParent?k/2+15:r.nodeRadius+15;if(e.sourceStrategy)n+=r.nodeRadius+10;return l.x+n}).attr("y1",(e)=>{let l=h.get(e.id),n=e.isPipelineParent?k:r.nodeRadius*2;return l.y-n/2}).attr("x2",(e)=>{let l=h.get(e.id),n=e.isPipelineParent?k/2+15:r.nodeRadius+15;if(e.sourceStrategy)n+=r.nodeRadius+10;return l.x+n}).attr("y2",(e)=>{let l=h.get(e.id),n=e.isPipelineParent?k:r.nodeRadius*2;return l.y+n/2}).attr("stroke",p.componentStroke).attr("stroke-width",6),E.append("text").attr("x",(e)=>{let l=h.get(e.id);if(e.className==="anchor")return e.labelOffsetX!==void 0?l.x+e.labelOffsetX:l.x;let n=r.nodeLabelOffset;if(e.sourceStrategy&&e.labelOffsetX===void 0)n+=10;let c=e.labelOffsetX??n;return l.x+c}).attr("y",(e)=>{let l=h.get(e.id);if(e.className==="anchor")return e.labelOffsetY!==void 0?l.y+e.labelOffsetY:l.y-3;let n=-r.nodeLabelOffset;if(e.sourceStrategy&&e.labelOffsetY===void 0)n-=10;let c=e.labelOffsetY??n;return l.y+c}).attr("class","wardley-node-label").attr("fill",(e)=>{if(e.className==="evolved")return p.evolutionStroke;if(e.className==="anchor")return"#000";return p.componentLabelColor}).attr("font-size",r.labelFontSize).attr("font-weight",(e)=>e.className==="anchor"?"bold":"normal").attr("text-anchor",(e)=>e.className==="anchor"?"middle":"start").attr("dominant-baseline",(e)=>e.className==="anchor"?"middle":"auto").text((e)=>e.label),w.annotations.length>0){let e=z.append("g").attr("class","wardley-annotations");if(w.annotations.forEach((l)=>{let n=l.coordinates.map((c)=>({x:Y(c.x),y:B(c.y)}));if(n.length>1)for(let c=0;c<n.length-1;c++)e.append("line").attr("class","wardley-annotation-line").attr("x1",n[c].x).attr("y1",n[c].y).attr("x2",n[c+1].x).attr("y2",n[c+1].y).attr("stroke",p.axisColor).attr("stroke-width",1.5).attr("stroke-dasharray","4 4");n.forEach((c)=>{let f=e.append("g").attr("class","wardley-annotation");f.append("circle").attr("cx",c.x).attr("cy",c.y).attr("r",10).attr("fill","white").attr("stroke",p.axisColor).attr("stroke-width",1.5),f.append("text").attr("x",c.x).attr("y",c.y).attr("text-anchor","middle").attr("dominant-baseline","central").attr("font-size",10).attr("fill",p.axisTextColor).attr("font-weight","bold").text(l.number)})}),w.annotationsBox){let l=Y(w.annotationsBox.x),n=B(w.annotationsBox.y),c=10,f=16,x=11,u=e.append("g").attr("class","wardley-annotations-box"),g=[...w.annotations].filter((b)=>b.text).sort((b,L)=>b.number-L.number),m=[];if(g.forEach((b,L)=>{let H=u.append("text").attr("x",l+c).attr("y",n+c+(L+1)*f).attr("font-size",x).attr("fill",p.axisTextColor).attr("text-anchor","start").attr("dominant-baseline","middle").text(`${b.number}. ${b.text}`);m.push(H)}),m.length>0){let b=0,L=0;m.forEach((nt)=>{let et=nt.node(),Et=et.getComputedTextLength();b=Math.max(b,Et);let Ht=et.getBBox();L=Math.max(L,Ht.height)});let H=b+c*2+105,tt=g.length*f+c*2+L/2,q=r.padding,Wt=X-r.padding-H,At=r.padding,Xt=C-r.padding-tt;l=Math.max(q,Math.min(l,Wt)),n=Math.max(At,Math.min(n,Xt)),m.forEach((nt,et)=>{nt.attr("x",l+c).attr("y",n+c+(et+1)*f)}),u.insert("rect","text").attr("x",l).attr("y",n).attr("width",H).attr("height",tt).attr("fill","white").attr("stroke",p.axisColor).attr("stroke-width",1.5).attr("rx",4).attr("ry",4)}}}if(w.notes.length>0){let e=z.append("g").attr("class","wardley-notes");w.notes.forEach((l)=>{let n=Y(l.x),c=B(l.y);e.append("text").attr("x",n).attr("y",c).attr("text-anchor","start").attr("font-size",11).attr("fill",p.axisTextColor).attr("font-weight","bold").text(l.text)})}if(w.accelerators.length>0){let e=z.append("g").attr("class","wardley-accelerators");w.accelerators.forEach((l)=>{let n=Y(l.x),c=B(l.y),f=60,x=30,u=20,g=`
3
3
  M ${n} ${c-15}
4
4
  L ${n+60-20} ${c-15}
Binary file
Binary file