@bkm016/basalt 0.1.31 → 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 (818) hide show
  1. package/chunk-3j26jsy0.js +51 -0
  2. package/chunk-5ggyf53b.js +50 -0
  3. package/chunk-9vth0w8q.js +2 -0
  4. package/chunk-fb2ydc2s.js +8 -0
  5. package/chunk-jqtdf0ym.js +63 -0
  6. package/chunk-n3hfhbe4.js +498 -0
  7. package/chunk-nkmvqcge.js +4073 -0
  8. package/chunk-p23eqet9.js +2 -0
  9. package/chunk-qqs9fqsy.js +4 -0
  10. package/chunk-x83syrhw.js +44 -0
  11. package/compiled.js +1 -1
  12. package/package.json +1 -1
  13. package/ui-test-worker.js +1 -1
  14. package/web/chunk-07kt1zpn.js +1 -0
  15. package/web/chunk-07kt1zpn.js.br +0 -0
  16. package/web/chunk-07kt1zpn.js.gz +0 -0
  17. package/web/chunk-0d068bmj.js +1 -0
  18. package/web/chunk-0d068bmj.js.br +0 -0
  19. package/web/chunk-0d068bmj.js.gz +0 -0
  20. package/web/chunk-0m15ghn0.js +2 -0
  21. package/web/chunk-0m15ghn0.js.br +0 -0
  22. package/web/chunk-0m15ghn0.js.gz +0 -0
  23. package/web/chunk-0swykhgr.js +2 -0
  24. package/web/chunk-0swykhgr.js.br +0 -0
  25. package/web/chunk-0swykhgr.js.gz +0 -0
  26. package/web/chunk-100a4th6.js +4 -0
  27. package/web/chunk-100a4th6.js.br +0 -0
  28. package/web/chunk-100a4th6.js.gz +0 -0
  29. package/web/chunk-1mdvm20t.js +140 -0
  30. package/web/chunk-1mdvm20t.js.br +0 -0
  31. package/web/chunk-1mdvm20t.js.gz +0 -0
  32. package/web/chunk-1mkzfr1m.js +2 -0
  33. package/web/chunk-1mkzfr1m.js.br +0 -0
  34. package/web/chunk-1mkzfr1m.js.gz +0 -0
  35. package/web/chunk-1p7wa1rq.js +1 -0
  36. package/web/chunk-1p7wa1rq.js.br +0 -0
  37. package/web/chunk-1p7wa1rq.js.gz +0 -0
  38. package/web/chunk-20gcnbgn.js +2 -0
  39. package/web/chunk-20gcnbgn.js.br +0 -0
  40. package/web/chunk-20gcnbgn.js.gz +0 -0
  41. package/web/chunk-2grspw9t.js +1 -0
  42. package/web/chunk-2grspw9t.js.br +0 -0
  43. package/web/chunk-2grspw9t.js.gz +0 -0
  44. package/web/chunk-2nwvdqxm.js +1 -0
  45. package/web/chunk-2nwvdqxm.js.br +0 -0
  46. package/web/chunk-2nwvdqxm.js.gz +0 -0
  47. package/web/chunk-2zz8t49r.js +1 -0
  48. package/web/chunk-2zz8t49r.js.br +0 -0
  49. package/web/chunk-2zz8t49r.js.gz +0 -0
  50. package/web/chunk-34g2xrgq.js +120 -0
  51. package/web/chunk-34g2xrgq.js.br +0 -0
  52. package/web/chunk-34g2xrgq.js.gz +0 -0
  53. package/web/chunk-34q3az4b.js +1 -0
  54. package/web/chunk-34q3az4b.js.br +0 -0
  55. package/web/chunk-34q3az4b.js.gz +0 -0
  56. package/web/chunk-39jqdq4r.js +1 -0
  57. package/web/chunk-39jqdq4r.js.br +0 -0
  58. package/web/chunk-39jqdq4r.js.gz +0 -0
  59. package/web/chunk-3d2fm4qc.js +1 -0
  60. package/web/chunk-3d2fm4qc.js.br +0 -0
  61. package/web/chunk-3d2fm4qc.js.gz +0 -0
  62. package/web/chunk-3s16fbrf.js +40 -0
  63. package/web/chunk-3s16fbrf.js.br +0 -0
  64. package/web/chunk-3s16fbrf.js.gz +0 -0
  65. package/web/chunk-3vsey6mw.js +1 -0
  66. package/web/chunk-3vsey6mw.js.br +0 -0
  67. package/web/chunk-3vsey6mw.js.gz +0 -0
  68. package/web/chunk-3y29sc9c.js +7 -0
  69. package/web/chunk-3y29sc9c.js.br +0 -0
  70. package/web/chunk-3y29sc9c.js.gz +0 -0
  71. package/web/chunk-40f59ze9.js +39 -0
  72. package/web/chunk-40f59ze9.js.br +0 -0
  73. package/web/chunk-40f59ze9.js.gz +0 -0
  74. package/web/chunk-414npx47.js +1 -0
  75. package/web/chunk-414npx47.js.br +0 -0
  76. package/web/chunk-414npx47.js.gz +0 -0
  77. package/web/chunk-495sjpc6.js +2 -0
  78. package/web/chunk-495sjpc6.js.br +0 -0
  79. package/web/chunk-495sjpc6.js.gz +0 -0
  80. package/web/chunk-4ab1dv3g.js +142 -0
  81. package/web/chunk-4ab1dv3g.js.br +0 -0
  82. package/web/chunk-4ab1dv3g.js.gz +0 -0
  83. package/web/chunk-545zx869.js +2 -0
  84. package/web/chunk-545zx869.js.br +0 -0
  85. package/web/chunk-545zx869.js.gz +0 -0
  86. package/web/chunk-55mx05jg.js +2 -0
  87. package/web/chunk-55mx05jg.js.br +0 -0
  88. package/web/chunk-55mx05jg.js.gz +0 -0
  89. package/web/chunk-58xhn7ry.js +2 -0
  90. package/web/chunk-58xhn7ry.js.br +0 -0
  91. package/web/chunk-58xhn7ry.js.gz +0 -0
  92. package/web/chunk-67pa4950.js +1 -0
  93. package/web/chunk-67pa4950.js.br +0 -0
  94. package/web/chunk-67pa4950.js.gz +0 -0
  95. package/web/chunk-690qxds4.js +1 -0
  96. package/web/chunk-690qxds4.js.br +0 -0
  97. package/web/chunk-690qxds4.js.gz +0 -0
  98. package/web/chunk-6ana63fs.js +21 -0
  99. package/web/chunk-6ana63fs.js.br +0 -0
  100. package/web/chunk-6ana63fs.js.gz +0 -0
  101. package/web/chunk-6ew54553.js +2 -0
  102. package/web/chunk-6ew54553.js.br +0 -0
  103. package/web/chunk-6ew54553.js.gz +0 -0
  104. package/web/chunk-6f1q0tjv.js +1142 -0
  105. package/web/chunk-6f1q0tjv.js.br +0 -0
  106. package/web/chunk-6f1q0tjv.js.gz +0 -0
  107. package/web/chunk-6gpzz5wm.js +1 -0
  108. package/web/chunk-6gpzz5wm.js.br +0 -0
  109. package/web/chunk-6gpzz5wm.js.gz +0 -0
  110. package/web/chunk-71g6vrx9.js +62 -0
  111. package/web/chunk-71g6vrx9.js.br +0 -0
  112. package/web/chunk-71g6vrx9.js.gz +0 -0
  113. package/web/chunk-77dnqrb6.js +2 -0
  114. package/web/chunk-77dnqrb6.js.br +0 -0
  115. package/web/chunk-77dnqrb6.js.gz +0 -0
  116. package/web/chunk-7fdrwy21.js +1 -0
  117. package/web/chunk-7fdrwy21.js.br +0 -0
  118. package/web/chunk-7fdrwy21.js.gz +0 -0
  119. package/web/chunk-84s7821x.js +2 -0
  120. package/web/chunk-84s7821x.js.br +0 -0
  121. package/web/chunk-84s7821x.js.gz +0 -0
  122. package/web/chunk-8e5qd73v.js +7 -0
  123. package/web/chunk-8e5qd73v.js.br +0 -0
  124. package/web/chunk-8e5qd73v.js.gz +0 -0
  125. package/web/chunk-8kyj945c.js +2 -0
  126. package/web/chunk-8kyj945c.js.br +0 -0
  127. package/web/chunk-8kyj945c.js.gz +0 -0
  128. package/web/chunk-9b0evht1.js +292 -0
  129. package/web/chunk-9b0evht1.js.br +0 -0
  130. package/web/chunk-9b0evht1.js.gz +0 -0
  131. package/web/chunk-9jb5xwya.js +36 -0
  132. package/web/chunk-9jb5xwya.js.br +0 -0
  133. package/web/chunk-9jb5xwya.js.gz +0 -0
  134. package/web/chunk-9kf8arqg.js +1 -0
  135. package/web/chunk-9kf8arqg.js.br +0 -0
  136. package/web/chunk-9kf8arqg.js.gz +0 -0
  137. package/web/chunk-9msmea44.js +70 -0
  138. package/web/chunk-9msmea44.js.br +0 -0
  139. package/web/chunk-9msmea44.js.gz +0 -0
  140. package/web/chunk-a7q85665.js +3 -0
  141. package/web/chunk-a7q85665.js.br +0 -0
  142. package/web/chunk-a7q85665.js.gz +0 -0
  143. package/web/chunk-aan5qk6x.js +1 -0
  144. package/web/chunk-aan5qk6x.js.br +0 -0
  145. package/web/chunk-aan5qk6x.js.gz +0 -0
  146. package/web/chunk-b9cjgxr1.js +98 -0
  147. package/web/chunk-b9cjgxr1.js.br +0 -0
  148. package/web/chunk-b9cjgxr1.js.gz +0 -0
  149. package/web/chunk-baaattjv.js +2 -0
  150. package/web/chunk-baaattjv.js.br +0 -0
  151. package/web/chunk-baaattjv.js.gz +0 -0
  152. package/web/chunk-bj9m08f9.js +1 -0
  153. package/web/chunk-bj9m08f9.js.br +0 -0
  154. package/web/chunk-bj9m08f9.js.gz +0 -0
  155. package/web/chunk-bm4fvq6q.js +89 -0
  156. package/web/chunk-bm4fvq6q.js.br +0 -0
  157. package/web/chunk-bm4fvq6q.js.gz +0 -0
  158. package/web/chunk-c4g2k9wp.js +1 -0
  159. package/web/chunk-c4g2k9wp.js.br +0 -0
  160. package/web/chunk-c4g2k9wp.js.gz +0 -0
  161. package/web/chunk-cnptxet3.js +2 -0
  162. package/web/chunk-cnptxet3.js.br +0 -0
  163. package/web/chunk-cnptxet3.js.gz +0 -0
  164. package/web/chunk-d5n2yz4e.js +2 -0
  165. package/web/chunk-d5n2yz4e.js.br +0 -0
  166. package/web/chunk-d5n2yz4e.js.gz +0 -0
  167. package/web/chunk-db2jge7w.js +291 -0
  168. package/web/chunk-db2jge7w.js.br +0 -0
  169. package/web/chunk-db2jge7w.js.gz +0 -0
  170. package/web/chunk-dfv95z6w.js +1 -0
  171. package/web/chunk-dfv95z6w.js.br +0 -0
  172. package/web/chunk-dfv95z6w.js.gz +0 -0
  173. package/web/chunk-dsxjv5an.js +1 -0
  174. package/web/chunk-dsxjv5an.js.br +0 -0
  175. package/web/chunk-dsxjv5an.js.gz +0 -0
  176. package/web/chunk-e362x35y.js +1 -0
  177. package/web/chunk-e362x35y.js.br +0 -0
  178. package/web/chunk-e362x35y.js.gz +0 -0
  179. package/web/chunk-e6jfnajp.js +55 -0
  180. package/web/chunk-e6jfnajp.js.br +0 -0
  181. package/web/chunk-e6jfnajp.js.gz +0 -0
  182. package/web/chunk-ex34kdxk.js +217 -0
  183. package/web/chunk-ex34kdxk.js.br +0 -0
  184. package/web/chunk-ex34kdxk.js.gz +0 -0
  185. package/web/chunk-exa2z1b4.js +1 -0
  186. package/web/chunk-exa2z1b4.js.br +0 -0
  187. package/web/chunk-exa2z1b4.js.gz +0 -0
  188. package/web/chunk-f5wyg9zh.js +2 -0
  189. package/web/chunk-f5wyg9zh.js.br +0 -0
  190. package/web/chunk-f5wyg9zh.js.gz +0 -0
  191. package/web/chunk-fjvd2dx2.js +2 -0
  192. package/web/chunk-fjvd2dx2.js.br +0 -0
  193. package/web/chunk-fjvd2dx2.js.gz +0 -0
  194. package/web/chunk-fs39pqet.js +2 -0
  195. package/web/chunk-fs39pqet.js.br +0 -0
  196. package/web/chunk-fs39pqet.js.gz +0 -0
  197. package/web/chunk-gvndjaan.js +2 -0
  198. package/web/chunk-gvndjaan.js.br +0 -0
  199. package/web/chunk-gvndjaan.js.gz +0 -0
  200. package/web/chunk-h3618s7t.js +4 -0
  201. package/web/chunk-h3618s7t.js.br +0 -0
  202. package/web/chunk-h3618s7t.js.gz +0 -0
  203. package/web/chunk-hks91ztk.js +8 -0
  204. package/web/chunk-hks91ztk.js.br +0 -0
  205. package/web/chunk-hks91ztk.js.gz +0 -0
  206. package/web/chunk-hqd97ez8.js +200 -0
  207. package/web/chunk-hqd97ez8.js.br +0 -0
  208. package/web/chunk-hqd97ez8.js.gz +0 -0
  209. package/web/chunk-hta68vm8.js +2 -0
  210. package/web/chunk-hta68vm8.js.br +0 -0
  211. package/web/chunk-hta68vm8.js.gz +0 -0
  212. package/web/chunk-jcbvhp3h.js +1 -0
  213. package/web/chunk-jcbvhp3h.js.br +0 -0
  214. package/web/chunk-jcbvhp3h.js.gz +0 -0
  215. package/web/chunk-jw6e38cy.js +1 -0
  216. package/web/chunk-jw6e38cy.js.br +0 -0
  217. package/web/chunk-jw6e38cy.js.gz +0 -0
  218. package/web/chunk-jzp1qd92.js +1 -0
  219. package/web/chunk-jzp1qd92.js.br +0 -0
  220. package/web/chunk-jzp1qd92.js.gz +0 -0
  221. package/web/chunk-kg39a24q.js +16 -0
  222. package/web/chunk-kg39a24q.js.br +0 -0
  223. package/web/chunk-kg39a24q.js.gz +0 -0
  224. package/web/chunk-kj75rme3.js +1 -0
  225. package/web/chunk-kj75rme3.js.br +0 -0
  226. package/web/chunk-kj75rme3.js.gz +0 -0
  227. package/web/chunk-kvxmwmen.js +1 -0
  228. package/web/chunk-kvxmwmen.js.br +0 -0
  229. package/web/chunk-kvxmwmen.js.gz +0 -0
  230. package/web/chunk-kzdmsaet.js +1 -0
  231. package/web/chunk-kzdmsaet.js.br +0 -0
  232. package/web/chunk-kzdmsaet.js.gz +0 -0
  233. package/web/chunk-m203pzza.js +89 -0
  234. package/web/chunk-m203pzza.js.br +0 -0
  235. package/web/chunk-m203pzza.js.gz +0 -0
  236. package/web/chunk-m3xw41vq.js +1 -0
  237. package/web/chunk-m3xw41vq.js.br +0 -0
  238. package/web/chunk-m3xw41vq.js.gz +0 -0
  239. package/web/chunk-m8jcx13t.js +30 -0
  240. package/web/chunk-m8jcx13t.js.br +0 -0
  241. package/web/chunk-m8jcx13t.js.gz +0 -0
  242. package/web/chunk-mpgz1bj6.js +1 -0
  243. package/web/chunk-mpgz1bj6.js.br +0 -0
  244. package/web/chunk-mpgz1bj6.js.gz +0 -0
  245. package/web/chunk-mzagmpq5.js +1 -0
  246. package/web/chunk-mzagmpq5.js.br +0 -0
  247. package/web/chunk-mzagmpq5.js.gz +0 -0
  248. package/web/chunk-n51q6d6e.js +1 -0
  249. package/web/chunk-n51q6d6e.js.br +0 -0
  250. package/web/chunk-n51q6d6e.js.gz +0 -0
  251. package/web/chunk-nbf2zaaj.js +1 -0
  252. package/web/chunk-nbf2zaaj.js.br +0 -0
  253. package/web/chunk-nbf2zaaj.js.gz +0 -0
  254. package/web/chunk-ngsv0xfb.js +1 -0
  255. package/web/chunk-ngsv0xfb.js.br +0 -0
  256. package/web/chunk-ngsv0xfb.js.gz +0 -0
  257. package/web/chunk-nxd7dn08.js +1 -0
  258. package/web/chunk-nxd7dn08.js.br +0 -0
  259. package/web/chunk-nxd7dn08.js.gz +0 -0
  260. package/web/chunk-p44ezwgh.js +1 -0
  261. package/web/chunk-p44ezwgh.js.br +0 -0
  262. package/web/chunk-p44ezwgh.js.gz +0 -0
  263. package/web/chunk-pdg3bxc0.js +2 -0
  264. package/web/chunk-pdg3bxc0.js.br +0 -0
  265. package/web/chunk-pdg3bxc0.js.gz +0 -0
  266. package/web/chunk-pjbp0xwn.css +1 -0
  267. package/web/chunk-pjbp0xwn.css.br +0 -0
  268. package/web/chunk-pjbp0xwn.css.gz +0 -0
  269. package/web/chunk-pkbyh261.js +1 -0
  270. package/web/chunk-pkbyh261.js.br +0 -0
  271. package/web/chunk-pkbyh261.js.gz +0 -0
  272. package/web/chunk-q3q25jr9.js +324 -0
  273. package/web/chunk-q3q25jr9.js.br +0 -0
  274. package/web/chunk-q3q25jr9.js.gz +0 -0
  275. package/web/chunk-q5nr5wjn.js +169 -0
  276. package/web/chunk-q5nr5wjn.js.br +0 -0
  277. package/web/chunk-q5nr5wjn.js.gz +0 -0
  278. package/web/chunk-qd9y8r3g.js +84 -0
  279. package/web/chunk-qd9y8r3g.js.br +0 -0
  280. package/web/chunk-qd9y8r3g.js.gz +0 -0
  281. package/web/chunk-qm039dan.js +24 -0
  282. package/web/chunk-qm039dan.js.br +0 -0
  283. package/web/chunk-qm039dan.js.gz +0 -0
  284. package/web/chunk-qqp31fyy.js +1 -0
  285. package/web/chunk-qqp31fyy.js.br +0 -0
  286. package/web/chunk-qqp31fyy.js.gz +0 -0
  287. package/web/chunk-r7st369j.js +1 -0
  288. package/web/chunk-r7st369j.js.br +0 -0
  289. package/web/chunk-r7st369j.js.gz +0 -0
  290. package/web/chunk-rc3sv7v4.js +1 -0
  291. package/web/chunk-rc3sv7v4.js.br +0 -0
  292. package/web/chunk-rc3sv7v4.js.gz +0 -0
  293. package/web/chunk-rj1rp0tc.js +1 -0
  294. package/web/chunk-rj1rp0tc.js.br +0 -0
  295. package/web/chunk-rj1rp0tc.js.gz +0 -0
  296. package/web/chunk-rtk95qme.js +1 -0
  297. package/web/chunk-rtk95qme.js.br +0 -0
  298. package/web/chunk-rtk95qme.js.gz +0 -0
  299. package/web/chunk-s4rfkyqn.js +12 -0
  300. package/web/chunk-s4rfkyqn.js.br +0 -0
  301. package/web/chunk-s4rfkyqn.js.gz +0 -0
  302. package/web/chunk-s6a0gfv3.js +34 -0
  303. package/web/chunk-s6a0gfv3.js.br +0 -0
  304. package/web/chunk-s6a0gfv3.js.gz +0 -0
  305. package/web/chunk-s7rwbxr5.js +2 -0
  306. package/web/chunk-s7rwbxr5.js.br +0 -0
  307. package/web/chunk-s7rwbxr5.js.gz +0 -0
  308. package/web/chunk-s8f6v2nn.js +1 -0
  309. package/web/chunk-s8f6v2nn.js.br +0 -0
  310. package/web/chunk-s8f6v2nn.js.gz +0 -0
  311. package/web/chunk-sawc81kc.js +303 -0
  312. package/web/chunk-sawc81kc.js.br +0 -0
  313. package/web/chunk-sawc81kc.js.gz +0 -0
  314. package/web/chunk-sex2gevj.js +2 -0
  315. package/web/chunk-sex2gevj.js.br +0 -0
  316. package/web/chunk-sex2gevj.js.gz +0 -0
  317. package/web/chunk-smmdqmcy.js +1 -0
  318. package/web/chunk-smmdqmcy.js.br +0 -0
  319. package/web/chunk-smmdqmcy.js.gz +0 -0
  320. package/web/chunk-tntwwpyh.js +2 -0
  321. package/web/chunk-tntwwpyh.js.br +0 -0
  322. package/web/chunk-tntwwpyh.js.gz +0 -0
  323. package/web/chunk-tpzyyc2z.js +2 -0
  324. package/web/chunk-tpzyyc2z.js.br +0 -0
  325. package/web/chunk-tpzyyc2z.js.gz +0 -0
  326. package/web/chunk-txhvq81f.js +106 -0
  327. package/web/chunk-txhvq81f.js.br +0 -0
  328. package/web/chunk-txhvq81f.js.gz +0 -0
  329. package/web/chunk-txtm71rz.js +41 -0
  330. package/web/chunk-txtm71rz.js.br +0 -0
  331. package/web/chunk-txtm71rz.js.gz +0 -0
  332. package/web/chunk-tykcqm6v.js +2 -0
  333. package/web/chunk-tykcqm6v.js.br +0 -0
  334. package/web/chunk-tykcqm6v.js.gz +0 -0
  335. package/web/chunk-tyrmd7j6.js +1 -0
  336. package/web/chunk-tyrmd7j6.js.br +0 -0
  337. package/web/chunk-tyrmd7j6.js.gz +0 -0
  338. package/web/chunk-v6ebn3sf.js +38 -0
  339. package/web/chunk-v6ebn3sf.js.br +0 -0
  340. package/web/chunk-v6ebn3sf.js.gz +0 -0
  341. package/web/chunk-vbx7t0h5.js +214 -0
  342. package/web/chunk-vbx7t0h5.js.br +0 -0
  343. package/web/chunk-vbx7t0h5.js.gz +0 -0
  344. package/web/chunk-vj3wz0a2.js +1 -0
  345. package/web/chunk-vj3wz0a2.js.br +0 -0
  346. package/web/chunk-vj3wz0a2.js.gz +0 -0
  347. package/web/chunk-vndrjeyr.js +2 -0
  348. package/web/chunk-vndrjeyr.js.br +0 -0
  349. package/web/chunk-vndrjeyr.js.gz +0 -0
  350. package/web/chunk-vqgkd7q8.js +1 -0
  351. package/web/chunk-vqgkd7q8.js.br +0 -0
  352. package/web/chunk-vqgkd7q8.js.gz +0 -0
  353. package/web/chunk-vvsfwjrg.js +1 -0
  354. package/web/chunk-vvsfwjrg.js.br +0 -0
  355. package/web/chunk-vvsfwjrg.js.gz +0 -0
  356. package/web/chunk-w0k63gap.js +2 -0
  357. package/web/chunk-w0k63gap.js.br +0 -0
  358. package/web/chunk-w0k63gap.js.gz +0 -0
  359. package/web/chunk-wafwgky9.js +1 -0
  360. package/web/chunk-wafwgky9.js.br +0 -0
  361. package/web/chunk-wafwgky9.js.gz +0 -0
  362. package/web/chunk-wdd9pasx.js +1 -0
  363. package/web/chunk-wdd9pasx.js.br +0 -0
  364. package/web/chunk-wdd9pasx.js.gz +0 -0
  365. package/web/chunk-wk89vrvf.js +78 -0
  366. package/web/chunk-wk89vrvf.js.br +0 -0
  367. package/web/chunk-wk89vrvf.js.gz +0 -0
  368. package/web/chunk-wqjn3yz1.js +370 -0
  369. package/web/chunk-wqjn3yz1.js.br +0 -0
  370. package/web/chunk-wqjn3yz1.js.gz +0 -0
  371. package/web/chunk-wrej9qt0.js +2 -0
  372. package/web/chunk-wrej9qt0.js.br +0 -0
  373. package/web/chunk-wrej9qt0.js.gz +0 -0
  374. package/web/chunk-xbjv549c.js +2 -0
  375. package/web/chunk-xbjv549c.js.br +0 -0
  376. package/web/chunk-xbjv549c.js.gz +0 -0
  377. package/web/chunk-xmp1ag6z.js +2 -0
  378. package/web/chunk-xmp1ag6z.js.br +0 -0
  379. package/web/chunk-xmp1ag6z.js.gz +0 -0
  380. package/web/chunk-xsqd38a2.js +332 -0
  381. package/web/chunk-xsqd38a2.js.br +0 -0
  382. package/web/chunk-xsqd38a2.js.gz +0 -0
  383. package/web/chunk-y2fbz356.js +1 -0
  384. package/web/chunk-y2fbz356.js.br +0 -0
  385. package/web/chunk-y2fbz356.js.gz +0 -0
  386. package/web/chunk-yebmbyrj.js +1 -0
  387. package/web/chunk-yebmbyrj.js.br +2 -0
  388. package/web/chunk-yebmbyrj.js.gz +0 -0
  389. package/web/chunk-ypytxmn6.js +24 -0
  390. package/web/chunk-ypytxmn6.js.br +0 -0
  391. package/web/chunk-ypytxmn6.js.gz +0 -0
  392. package/web/chunk-z6jy8edk.js +99 -0
  393. package/web/chunk-z6jy8edk.js.br +0 -0
  394. package/web/chunk-z6jy8edk.js.gz +0 -0
  395. package/web/chunk-zg5n1hx4.js +1 -0
  396. package/web/chunk-zg5n1hx4.js.br +0 -0
  397. package/web/chunk-zg5n1hx4.js.gz +0 -0
  398. package/web/chunk-zmrd0bnc.js +139 -0
  399. package/web/chunk-zmrd0bnc.js.br +0 -0
  400. package/web/chunk-zmrd0bnc.js.gz +0 -0
  401. package/web/chunk-zqm6n89p.js +7 -0
  402. package/web/chunk-zqm6n89p.js.br +0 -0
  403. package/web/chunk-zqm6n89p.js.gz +0 -0
  404. package/web/chunk-zvat895r.js +1 -0
  405. package/web/chunk-zvat895r.js.br +0 -0
  406. package/web/chunk-zvat895r.js.gz +0 -0
  407. package/web/chunk-zxt17pcp.js +1 -0
  408. package/web/chunk-zxt17pcp.js.br +0 -0
  409. package/web/chunk-zxt17pcp.js.gz +0 -0
  410. package/web/index.html +1 -1
  411. package/web/index.html.br +0 -0
  412. package/web/index.html.gz +0 -0
  413. package/chunk-0er07d2g.js +0 -51
  414. package/chunk-0ge4k9gq.js +0 -2
  415. package/chunk-1t0yzkg7.js +0 -4
  416. package/chunk-3gw871zb.js +0 -2
  417. package/chunk-6gzvp0f6.js +0 -50
  418. package/chunk-71pz02bd.js +0 -8
  419. package/chunk-khy3j5kp.js +0 -63
  420. package/chunk-vx4v71t4.js +0 -498
  421. package/chunk-wvn68m5f.js +0 -4058
  422. package/chunk-x2ry671h.js +0 -44
  423. package/web/chunk-01mrggts.js +0 -1
  424. package/web/chunk-01mrggts.js.br +0 -0
  425. package/web/chunk-01mrggts.js.gz +0 -0
  426. package/web/chunk-0b25tje3.js +0 -1
  427. package/web/chunk-0b25tje3.js.br +0 -0
  428. package/web/chunk-0b25tje3.js.gz +0 -0
  429. package/web/chunk-0g46ww9d.js +0 -1
  430. package/web/chunk-0g46ww9d.js.br +0 -0
  431. package/web/chunk-0g46ww9d.js.gz +0 -0
  432. package/web/chunk-0grg8w51.js +0 -200
  433. package/web/chunk-0grg8w51.js.br +0 -0
  434. package/web/chunk-0grg8w51.js.gz +0 -0
  435. package/web/chunk-0qf3m69c.js +0 -24
  436. package/web/chunk-0qf3m69c.js.br +0 -0
  437. package/web/chunk-0qf3m69c.js.gz +0 -0
  438. package/web/chunk-14yejkcn.js +0 -7
  439. package/web/chunk-14yejkcn.js.br +0 -0
  440. package/web/chunk-14yejkcn.js.gz +0 -0
  441. package/web/chunk-1ffzwm6m.js +0 -106
  442. package/web/chunk-1ffzwm6m.js.br +0 -0
  443. package/web/chunk-1ffzwm6m.js.gz +0 -0
  444. package/web/chunk-1ncaw3hk.js +0 -3
  445. package/web/chunk-1ncaw3hk.js.br +0 -0
  446. package/web/chunk-1ncaw3hk.js.gz +0 -0
  447. package/web/chunk-1pffd2va.js +0 -2
  448. package/web/chunk-1pffd2va.js.br +0 -0
  449. package/web/chunk-1pffd2va.js.gz +0 -0
  450. package/web/chunk-1x2kh4he.js +0 -1
  451. package/web/chunk-1x2kh4he.js.br +0 -0
  452. package/web/chunk-1x2kh4he.js.gz +0 -0
  453. package/web/chunk-23atmwvk.js +0 -2
  454. package/web/chunk-23atmwvk.js.br +0 -0
  455. package/web/chunk-23atmwvk.js.gz +0 -0
  456. package/web/chunk-2gfgrjy6.js +0 -142
  457. package/web/chunk-2gfgrjy6.js.br +0 -0
  458. package/web/chunk-2gfgrjy6.js.gz +0 -0
  459. package/web/chunk-2ttatv42.js +0 -2
  460. package/web/chunk-2ttatv42.js.br +0 -0
  461. package/web/chunk-2ttatv42.js.gz +0 -0
  462. package/web/chunk-2vqn82nw.js +0 -139
  463. package/web/chunk-2vqn82nw.js.br +0 -0
  464. package/web/chunk-2vqn82nw.js.gz +0 -0
  465. package/web/chunk-2wzvn2ne.js +0 -1
  466. package/web/chunk-2wzvn2ne.js.br +0 -0
  467. package/web/chunk-2wzvn2ne.js.gz +0 -0
  468. package/web/chunk-3at8qbcv.js +0 -89
  469. package/web/chunk-3at8qbcv.js.br +0 -0
  470. package/web/chunk-3at8qbcv.js.gz +0 -0
  471. package/web/chunk-3b97pd97.js +0 -120
  472. package/web/chunk-3b97pd97.js.br +0 -0
  473. package/web/chunk-3b97pd97.js.gz +0 -0
  474. package/web/chunk-3q5j14ah.js +0 -1
  475. package/web/chunk-3q5j14ah.js.br +0 -0
  476. package/web/chunk-3q5j14ah.js.gz +0 -0
  477. package/web/chunk-45xqp3dn.js +0 -1
  478. package/web/chunk-45xqp3dn.js.br +0 -0
  479. package/web/chunk-45xqp3dn.js.gz +0 -0
  480. package/web/chunk-4fdgpye3.js +0 -2
  481. package/web/chunk-4fdgpye3.js.br +0 -0
  482. package/web/chunk-4fdgpye3.js.gz +0 -0
  483. package/web/chunk-4wpvkw6b.js +0 -1141
  484. package/web/chunk-4wpvkw6b.js.br +0 -0
  485. package/web/chunk-4wpvkw6b.js.gz +0 -0
  486. package/web/chunk-51m79xhr.js +0 -2
  487. package/web/chunk-51m79xhr.js.br +0 -2
  488. package/web/chunk-51m79xhr.js.gz +0 -0
  489. package/web/chunk-5c6q7asc.js +0 -1
  490. package/web/chunk-5c6q7asc.js.br +0 -0
  491. package/web/chunk-5c6q7asc.js.gz +0 -0
  492. package/web/chunk-5vbnqhs0.js +0 -38
  493. package/web/chunk-5vbnqhs0.js.br +0 -0
  494. package/web/chunk-5vbnqhs0.js.gz +0 -0
  495. package/web/chunk-688a15p4.js +0 -2
  496. package/web/chunk-688a15p4.js.br +0 -0
  497. package/web/chunk-688a15p4.js.gz +0 -0
  498. package/web/chunk-6f9btq4p.js +0 -1
  499. package/web/chunk-6f9btq4p.js.br +0 -0
  500. package/web/chunk-6f9btq4p.js.gz +0 -0
  501. package/web/chunk-6geede02.js +0 -217
  502. package/web/chunk-6geede02.js.br +0 -0
  503. package/web/chunk-6geede02.js.gz +0 -0
  504. package/web/chunk-6j37ynfq.js +0 -1
  505. package/web/chunk-6j37ynfq.js.br +0 -0
  506. package/web/chunk-6j37ynfq.js.gz +0 -0
  507. package/web/chunk-7j7btfha.js +0 -292
  508. package/web/chunk-7j7btfha.js.br +0 -0
  509. package/web/chunk-7j7btfha.js.gz +0 -0
  510. package/web/chunk-8299qcyc.js +0 -1
  511. package/web/chunk-8299qcyc.js.br +0 -0
  512. package/web/chunk-8299qcyc.js.gz +0 -0
  513. package/web/chunk-8mncz9c6.js +0 -89
  514. package/web/chunk-8mncz9c6.js.br +0 -0
  515. package/web/chunk-8mncz9c6.js.gz +0 -0
  516. package/web/chunk-8pygn7wf.js +0 -1
  517. package/web/chunk-8pygn7wf.js.br +0 -0
  518. package/web/chunk-8pygn7wf.js.gz +0 -0
  519. package/web/chunk-8ye62j8m.js +0 -2
  520. package/web/chunk-8ye62j8m.js.br +0 -3
  521. package/web/chunk-8ye62j8m.js.gz +0 -0
  522. package/web/chunk-982457hh.js +0 -1
  523. package/web/chunk-982457hh.js.br +0 -2
  524. package/web/chunk-982457hh.js.gz +0 -0
  525. package/web/chunk-9f9pp12b.js +0 -1
  526. package/web/chunk-9f9pp12b.js.br +0 -0
  527. package/web/chunk-9f9pp12b.js.gz +0 -0
  528. package/web/chunk-9k6d95ab.js +0 -1
  529. package/web/chunk-9k6d95ab.js.br +0 -0
  530. package/web/chunk-9k6d95ab.js.gz +0 -0
  531. package/web/chunk-9z4tf6fd.js +0 -1
  532. package/web/chunk-9z4tf6fd.js.br +0 -0
  533. package/web/chunk-9z4tf6fd.js.gz +0 -0
  534. package/web/chunk-a11ev6ff.js +0 -1
  535. package/web/chunk-a11ev6ff.js.br +0 -0
  536. package/web/chunk-a11ev6ff.js.gz +0 -0
  537. package/web/chunk-ayamka39.js +0 -1
  538. package/web/chunk-ayamka39.js.br +0 -0
  539. package/web/chunk-ayamka39.js.gz +0 -0
  540. package/web/chunk-b6k80wbw.js +0 -1
  541. package/web/chunk-b6k80wbw.js.br +0 -0
  542. package/web/chunk-b6k80wbw.js.gz +0 -0
  543. package/web/chunk-b6w2gmw0.js +0 -2
  544. package/web/chunk-b6w2gmw0.js.br +0 -0
  545. package/web/chunk-b6w2gmw0.js.gz +0 -0
  546. package/web/chunk-ba22js10.js +0 -84
  547. package/web/chunk-ba22js10.js.br +0 -0
  548. package/web/chunk-ba22js10.js.gz +0 -0
  549. package/web/chunk-bq7y294e.js +0 -34
  550. package/web/chunk-bq7y294e.js.br +0 -0
  551. package/web/chunk-bq7y294e.js.gz +0 -0
  552. package/web/chunk-bw9crrb4.js +0 -1
  553. package/web/chunk-bw9crrb4.js.br +0 -0
  554. package/web/chunk-bw9crrb4.js.gz +0 -0
  555. package/web/chunk-c0vc50pd.js +0 -4
  556. package/web/chunk-c0vc50pd.js.br +0 -0
  557. package/web/chunk-c0vc50pd.js.gz +0 -0
  558. package/web/chunk-c2vtzhbs.js +0 -1
  559. package/web/chunk-c2vtzhbs.js.br +0 -0
  560. package/web/chunk-c2vtzhbs.js.gz +0 -0
  561. package/web/chunk-cf9886tj.js +0 -2
  562. package/web/chunk-cf9886tj.js.br +0 -0
  563. package/web/chunk-cf9886tj.js.gz +0 -0
  564. package/web/chunk-cqf4fzk6.js +0 -16
  565. package/web/chunk-cqf4fzk6.js.br +0 -0
  566. package/web/chunk-cqf4fzk6.js.gz +0 -0
  567. package/web/chunk-ct9sq4ka.js +0 -1
  568. package/web/chunk-ct9sq4ka.js.br +0 -0
  569. package/web/chunk-ct9sq4ka.js.gz +0 -0
  570. package/web/chunk-cy60hc6q.js +0 -2
  571. package/web/chunk-cy60hc6q.js.br +0 -0
  572. package/web/chunk-cy60hc6q.js.gz +0 -0
  573. package/web/chunk-cygtgz2r.js +0 -2
  574. package/web/chunk-cygtgz2r.js.br +0 -0
  575. package/web/chunk-cygtgz2r.js.gz +0 -0
  576. package/web/chunk-dgf0f0er.js +0 -214
  577. package/web/chunk-dgf0f0er.js.br +0 -0
  578. package/web/chunk-dgf0f0er.js.gz +0 -0
  579. package/web/chunk-dscn4mpq.js +0 -4
  580. package/web/chunk-dscn4mpq.js.br +0 -0
  581. package/web/chunk-dscn4mpq.js.gz +0 -0
  582. package/web/chunk-e7683p83.js +0 -1
  583. package/web/chunk-e7683p83.js.br +0 -0
  584. package/web/chunk-e7683p83.js.gz +0 -0
  585. package/web/chunk-eanfvatc.js +0 -1
  586. package/web/chunk-eanfvatc.js.br +0 -0
  587. package/web/chunk-eanfvatc.js.gz +0 -0
  588. package/web/chunk-egfn5522.js +0 -1
  589. package/web/chunk-egfn5522.js.br +0 -3
  590. package/web/chunk-egfn5522.js.gz +0 -0
  591. package/web/chunk-ejk5ec5n.js +0 -1
  592. package/web/chunk-ejk5ec5n.js.br +0 -0
  593. package/web/chunk-ejk5ec5n.js.gz +0 -0
  594. package/web/chunk-fzffxer1.js +0 -41
  595. package/web/chunk-fzffxer1.js.br +0 -0
  596. package/web/chunk-fzffxer1.js.gz +0 -0
  597. package/web/chunk-g19dt2gr.js +0 -55
  598. package/web/chunk-g19dt2gr.js.br +0 -0
  599. package/web/chunk-g19dt2gr.js.gz +0 -0
  600. package/web/chunk-g6cj4czr.js +0 -2
  601. package/web/chunk-g6cj4czr.js.br +0 -0
  602. package/web/chunk-g6cj4czr.js.gz +0 -0
  603. package/web/chunk-gbv8v3z7.js +0 -78
  604. package/web/chunk-gbv8v3z7.js.br +0 -0
  605. package/web/chunk-gbv8v3z7.js.gz +0 -0
  606. package/web/chunk-h1w081tm.js +0 -12
  607. package/web/chunk-h1w081tm.js.br +0 -0
  608. package/web/chunk-h1w081tm.js.gz +0 -0
  609. package/web/chunk-h47k4j7f.js +0 -1
  610. package/web/chunk-h47k4j7f.js.br +0 -0
  611. package/web/chunk-h47k4j7f.js.gz +0 -0
  612. package/web/chunk-h87t8gsr.js +0 -1
  613. package/web/chunk-h87t8gsr.js.br +0 -0
  614. package/web/chunk-h87t8gsr.js.gz +0 -0
  615. package/web/chunk-haewrbm7.js +0 -1
  616. package/web/chunk-haewrbm7.js.br +0 -0
  617. package/web/chunk-haewrbm7.js.gz +0 -0
  618. package/web/chunk-hahz28y7.js +0 -2
  619. package/web/chunk-hahz28y7.js.br +0 -0
  620. package/web/chunk-hahz28y7.js.gz +0 -0
  621. package/web/chunk-hqz75fkz.js +0 -1
  622. package/web/chunk-hqz75fkz.js.br +0 -0
  623. package/web/chunk-hqz75fkz.js.gz +0 -0
  624. package/web/chunk-hr4fa514.js +0 -2
  625. package/web/chunk-hr4fa514.js.br +0 -0
  626. package/web/chunk-hr4fa514.js.gz +0 -0
  627. package/web/chunk-j7vtqbbc.js +0 -1
  628. package/web/chunk-j7vtqbbc.js.br +0 -0
  629. package/web/chunk-j7vtqbbc.js.gz +0 -0
  630. package/web/chunk-jt33d37t.js +0 -1
  631. package/web/chunk-jt33d37t.js.br +0 -0
  632. package/web/chunk-jt33d37t.js.gz +0 -0
  633. package/web/chunk-k3qt0rx5.js +0 -2
  634. package/web/chunk-k3qt0rx5.js.br +0 -0
  635. package/web/chunk-k3qt0rx5.js.gz +0 -0
  636. package/web/chunk-kgmw7sh4.js +0 -1
  637. package/web/chunk-kgmw7sh4.js.br +0 -0
  638. package/web/chunk-kgmw7sh4.js.gz +0 -0
  639. package/web/chunk-kjvk8prw.js +0 -1
  640. package/web/chunk-kjvk8prw.js.br +0 -0
  641. package/web/chunk-kjvk8prw.js.gz +0 -0
  642. package/web/chunk-kq7snx3t.js +0 -1
  643. package/web/chunk-kq7snx3t.js.br +0 -0
  644. package/web/chunk-kq7snx3t.js.gz +0 -0
  645. package/web/chunk-kvteqhz2.js +0 -1
  646. package/web/chunk-kvteqhz2.js.br +0 -2
  647. package/web/chunk-kvteqhz2.js.gz +0 -0
  648. package/web/chunk-kypct03a.js +0 -169
  649. package/web/chunk-kypct03a.js.br +0 -0
  650. package/web/chunk-kypct03a.js.gz +0 -0
  651. package/web/chunk-m4hz4v80.js +0 -370
  652. package/web/chunk-m4hz4v80.js.br +0 -0
  653. package/web/chunk-m4hz4v80.js.gz +0 -0
  654. package/web/chunk-m5k8jhya.js +0 -40
  655. package/web/chunk-m5k8jhya.js.br +0 -0
  656. package/web/chunk-m5k8jhya.js.gz +0 -0
  657. package/web/chunk-mfsdyw6v.js +0 -2
  658. package/web/chunk-mfsdyw6v.js.br +0 -0
  659. package/web/chunk-mfsdyw6v.js.gz +0 -0
  660. package/web/chunk-mr38k717.js +0 -140
  661. package/web/chunk-mr38k717.js.br +0 -0
  662. package/web/chunk-mr38k717.js.gz +0 -0
  663. package/web/chunk-mtcet6gc.js +0 -2
  664. package/web/chunk-mtcet6gc.js.br +0 -0
  665. package/web/chunk-mtcet6gc.js.gz +0 -0
  666. package/web/chunk-mtfv8gjh.js +0 -291
  667. package/web/chunk-mtfv8gjh.js.br +0 -0
  668. package/web/chunk-mtfv8gjh.js.gz +0 -0
  669. package/web/chunk-nnyjx4ef.js +0 -1
  670. package/web/chunk-nnyjx4ef.js.br +0 -0
  671. package/web/chunk-nnyjx4ef.js.gz +0 -0
  672. package/web/chunk-npn3fk69.js +0 -1
  673. package/web/chunk-npn3fk69.js.br +0 -2
  674. package/web/chunk-npn3fk69.js.gz +0 -0
  675. package/web/chunk-p2gdfpjs.js +0 -2
  676. package/web/chunk-p2gdfpjs.js.br +0 -0
  677. package/web/chunk-p2gdfpjs.js.gz +0 -0
  678. package/web/chunk-q0by2m1w.js +0 -21
  679. package/web/chunk-q0by2m1w.js.br +0 -0
  680. package/web/chunk-q0by2m1w.js.gz +0 -0
  681. package/web/chunk-q5hj3y5k.js +0 -2
  682. package/web/chunk-q5hj3y5k.js.br +0 -0
  683. package/web/chunk-q5hj3y5k.js.gz +0 -0
  684. package/web/chunk-q6k872kv.js +0 -7
  685. package/web/chunk-q6k872kv.js.br +0 -0
  686. package/web/chunk-q6k872kv.js.gz +0 -0
  687. package/web/chunk-q7krdwy7.js +0 -332
  688. package/web/chunk-q7krdwy7.js.br +0 -0
  689. package/web/chunk-q7krdwy7.js.gz +0 -0
  690. package/web/chunk-q7wbksg4.js +0 -1
  691. package/web/chunk-q7wbksg4.js.br +0 -0
  692. package/web/chunk-q7wbksg4.js.gz +0 -0
  693. package/web/chunk-qdxa0c4c.js +0 -1
  694. package/web/chunk-qdxa0c4c.js.br +0 -0
  695. package/web/chunk-qdxa0c4c.js.gz +0 -0
  696. package/web/chunk-r9m8jh7x.js +0 -2
  697. package/web/chunk-r9m8jh7x.js.br +0 -0
  698. package/web/chunk-r9m8jh7x.js.gz +0 -0
  699. package/web/chunk-rnhbck1h.js +0 -99
  700. package/web/chunk-rnhbck1h.js.br +0 -0
  701. package/web/chunk-rnhbck1h.js.gz +0 -0
  702. package/web/chunk-rxtzde6n.js +0 -62
  703. package/web/chunk-rxtzde6n.js.br +0 -0
  704. package/web/chunk-rxtzde6n.js.gz +0 -0
  705. package/web/chunk-ryds6qnb.js +0 -2
  706. package/web/chunk-ryds6qnb.js.br +0 -0
  707. package/web/chunk-ryds6qnb.js.gz +0 -0
  708. package/web/chunk-shc8bv2k.js +0 -2
  709. package/web/chunk-shc8bv2k.js.br +0 -0
  710. package/web/chunk-shc8bv2k.js.gz +0 -0
  711. package/web/chunk-stnwzrqv.js +0 -98
  712. package/web/chunk-stnwzrqv.js.br +0 -0
  713. package/web/chunk-stnwzrqv.js.gz +0 -0
  714. package/web/chunk-sy28z9pe.js +0 -2
  715. package/web/chunk-sy28z9pe.js.br +0 -2
  716. package/web/chunk-sy28z9pe.js.gz +0 -0
  717. package/web/chunk-szwh742y.js +0 -2
  718. package/web/chunk-szwh742y.js.br +0 -0
  719. package/web/chunk-szwh742y.js.gz +0 -0
  720. package/web/chunk-t60hp0qs.js +0 -36
  721. package/web/chunk-t60hp0qs.js.br +0 -0
  722. package/web/chunk-t60hp0qs.js.gz +0 -0
  723. package/web/chunk-t9twwgfe.js +0 -1
  724. package/web/chunk-t9twwgfe.js.br +0 -0
  725. package/web/chunk-t9twwgfe.js.gz +0 -0
  726. package/web/chunk-tbgavq0t.js +0 -2
  727. package/web/chunk-tbgavq0t.js.br +0 -0
  728. package/web/chunk-tbgavq0t.js.gz +0 -0
  729. package/web/chunk-tjma3e4d.js +0 -7
  730. package/web/chunk-tjma3e4d.js.br +0 -0
  731. package/web/chunk-tjma3e4d.js.gz +0 -0
  732. package/web/chunk-tv9rz73h.js +0 -30
  733. package/web/chunk-tv9rz73h.js.br +0 -0
  734. package/web/chunk-tv9rz73h.js.gz +0 -0
  735. package/web/chunk-twgzayjk.js +0 -1
  736. package/web/chunk-twgzayjk.js.br +0 -0
  737. package/web/chunk-twgzayjk.js.gz +0 -0
  738. package/web/chunk-tz4w2nh2.js +0 -303
  739. package/web/chunk-tz4w2nh2.js.br +0 -0
  740. package/web/chunk-tz4w2nh2.js.gz +0 -0
  741. package/web/chunk-v0egh6d3.js +0 -1
  742. package/web/chunk-v0egh6d3.js.br +0 -0
  743. package/web/chunk-v0egh6d3.js.gz +0 -0
  744. package/web/chunk-vayamfxv.js +0 -1
  745. package/web/chunk-vayamfxv.js.br +0 -0
  746. package/web/chunk-vayamfxv.js.gz +0 -0
  747. package/web/chunk-vcawg8d2.js +0 -1
  748. package/web/chunk-vcawg8d2.js.br +0 -0
  749. package/web/chunk-vcawg8d2.js.gz +0 -0
  750. package/web/chunk-vh8s2rek.js +0 -1
  751. package/web/chunk-vh8s2rek.js.br +0 -2
  752. package/web/chunk-vh8s2rek.js.gz +0 -0
  753. package/web/chunk-vns6bpqm.js +0 -2
  754. package/web/chunk-vns6bpqm.js.br +0 -0
  755. package/web/chunk-vns6bpqm.js.gz +0 -0
  756. package/web/chunk-vvbte0a5.css +0 -1
  757. package/web/chunk-vvbte0a5.css.br +0 -0
  758. package/web/chunk-vvbte0a5.css.gz +0 -0
  759. package/web/chunk-vxzw2t1r.js +0 -1
  760. package/web/chunk-vxzw2t1r.js.br +0 -0
  761. package/web/chunk-vxzw2t1r.js.gz +0 -0
  762. package/web/chunk-w40atygt.js +0 -2
  763. package/web/chunk-w40atygt.js.br +0 -0
  764. package/web/chunk-w40atygt.js.gz +0 -0
  765. package/web/chunk-w4bxgcwm.js +0 -1
  766. package/web/chunk-w4bxgcwm.js.br +0 -0
  767. package/web/chunk-w4bxgcwm.js.gz +0 -0
  768. package/web/chunk-w5t00pns.js +0 -70
  769. package/web/chunk-w5t00pns.js.br +0 -0
  770. package/web/chunk-w5t00pns.js.gz +0 -0
  771. package/web/chunk-wpmzdqba.js +0 -324
  772. package/web/chunk-wpmzdqba.js.br +0 -0
  773. package/web/chunk-wpmzdqba.js.gz +0 -0
  774. package/web/chunk-x9mexzav.js +0 -2
  775. package/web/chunk-x9mexzav.js.br +0 -0
  776. package/web/chunk-x9mexzav.js.gz +0 -0
  777. package/web/chunk-xc74f1nj.js +0 -1
  778. package/web/chunk-xc74f1nj.js.br +0 -0
  779. package/web/chunk-xc74f1nj.js.gz +0 -0
  780. package/web/chunk-xk8637wb.js +0 -1
  781. package/web/chunk-xk8637wb.js.br +0 -0
  782. package/web/chunk-xk8637wb.js.gz +0 -0
  783. package/web/chunk-xs4cyb71.js +0 -1
  784. package/web/chunk-xs4cyb71.js.br +0 -0
  785. package/web/chunk-xs4cyb71.js.gz +0 -0
  786. package/web/chunk-xthg4efe.js +0 -1
  787. package/web/chunk-xthg4efe.js.br +0 -0
  788. package/web/chunk-xthg4efe.js.gz +0 -0
  789. package/web/chunk-yet0bbyh.js +0 -1
  790. package/web/chunk-yet0bbyh.js.br +0 -0
  791. package/web/chunk-yet0bbyh.js.gz +0 -0
  792. package/web/chunk-yzcxmqy3.js +0 -1
  793. package/web/chunk-yzcxmqy3.js.br +0 -0
  794. package/web/chunk-yzcxmqy3.js.gz +0 -0
  795. package/web/chunk-z2a9zwwx.js +0 -24
  796. package/web/chunk-z2a9zwwx.js.br +0 -0
  797. package/web/chunk-z2a9zwwx.js.gz +0 -0
  798. package/web/chunk-z8fgdsx5.js +0 -1
  799. package/web/chunk-z8fgdsx5.js.br +0 -0
  800. package/web/chunk-z8fgdsx5.js.gz +0 -0
  801. package/web/chunk-zeyw59b9.js +0 -2
  802. package/web/chunk-zeyw59b9.js.br +0 -0
  803. package/web/chunk-zeyw59b9.js.gz +0 -0
  804. package/web/chunk-zftk5ww7.js +0 -8
  805. package/web/chunk-zftk5ww7.js.br +0 -0
  806. package/web/chunk-zftk5ww7.js.gz +0 -0
  807. package/web/chunk-zmbp3phd.js +0 -2
  808. package/web/chunk-zmbp3phd.js.br +0 -0
  809. package/web/chunk-zmbp3phd.js.gz +0 -0
  810. package/web/chunk-zpxh70dj.js +0 -1
  811. package/web/chunk-zpxh70dj.js.br +0 -0
  812. package/web/chunk-zpxh70dj.js.gz +0 -0
  813. package/web/chunk-zqhdf12s.js +0 -39
  814. package/web/chunk-zqhdf12s.js.br +0 -0
  815. package/web/chunk-zqhdf12s.js.gz +0 -0
  816. package/web/chunk-zr2xst5w.js +0 -1
  817. package/web/chunk-zr2xst5w.js.br +0 -0
  818. package/web/chunk-zr2xst5w.js.gz +0 -0
@@ -0,0 +1,70 @@
1
+ import{t,C,W,N,M,P,R,I,O,D,d,J,Mt,y}from"./chunk-sawc81kc.js";var dt=function(){var e=t(function(z,i,n,s){for(n=n||{},s=z.length;s--;n[z[s]]=i);return n},"o"),f=[1,4],r=[1,14],l=[1,12],o=[1,13],p=[6,7,8],k=[1,20],u=[1,18],_=[1,19],c=[6,7,11],b=[1,6,13,14],w=[1,23],v=[1,24],S=[1,6,7,11,13,14],U={trace:t(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ishikawa:4,spaceLines:5,SPACELINE:6,NL:7,ISHIKAWA:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,TEXT:14,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"ISHIKAWA",11:"EOF",13:"SPACELIST",14:"TEXT"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,1],[12,1],[12,1]],performAction:t(function(i,n,s,h,g,a,E){var x=a.length-1;switch(g){case 6:case 7:return h;case 15:h.addNode(a[x-1].length,a[x].trim());break;case 16:h.addNode(0,a[x].trim());break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:f},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:f},{6:r,7:[1,10],9:9,12:11,13:l,14:o},e(p,[2,3]),{1:[2,2]},e(p,[2,4]),e(p,[2,5]),{1:[2,6],6:r,12:15,13:l,14:o},{6:r,9:16,12:11,13:l,14:o},{6:k,7:u,10:17,11:_},e(c,[2,18],{14:[1,21]}),e(c,[2,16]),e(c,[2,17]),{6:k,7:u,10:22,11:_},{1:[2,7],6:r,12:15,13:l,14:o},e(b,[2,14],{7:w,11:v}),e(S,[2,8]),e(S,[2,9]),e(S,[2,10]),e(c,[2,15]),e(b,[2,13],{7:w,11:v}),e(S,[2,11]),e(S,[2,12])],defaultActions:{2:[2,1],6:[2,2]},parseError:t(function(i,n){if(n.recoverable)this.trace(i);else{var s=Error(i);throw s.hash=n,s}},"parseError"),parse:t(function(i){var n=this,s=[0],h=[],g=[null],a=[],E=this.table,x="",V=0,A=0,B=0,F=2,X=1,rt=a.slice.call(arguments,1),m=Object.create(this.lexer),L={yy:{}};for(var K in this.yy)if(Object.prototype.hasOwnProperty.call(this.yy,K))L.yy[K]=this.yy[K];if(m.setInput(i,L.yy),L.yy.lexer=m,L.yy.parser=this,typeof m.yylloc>"u")m.yylloc={};var q=m.yylloc;a.push(q);var lt=m.options&&m.options.ranges;if(typeof L.yy.parseError==="function")this.parseError=L.yy.parseError;else this.parseError=Object.getPrototypeOf(this).parseError;function xt(G){s.length=s.length-2*G,g.length=g.length-G,a.length=a.length-G}t(xt,"popStack");function yt(){var G=h.pop()||m.lex()||X;if(typeof G!=="number"){if(G instanceof Array)h=G,G=h.pop();G=n.symbols_[G]||G}return G}t(yt,"lex");var j,ot,Q,H,Rt,ht,tt={},st,Y,ft,nt;while(!0){if(Q=s[s.length-1],this.defaultActions[Q])H=this.defaultActions[Q];else{if(j===null||typeof j>"u")j=yt();H=E[Q]&&E[Q][j]}if(typeof H>"u"||!H.length||!H[0]){var ct="";nt=[];for(st in E[Q])if(this.terminals_[st]&&st>F)nt.push("'"+this.terminals_[st]+"'");if(m.showPosition)ct="Parse error on line "+(V+1)+`:
2
+ `+m.showPosition()+`
3
+ Expecting `+nt.join(", ")+", got '"+(this.terminals_[j]||j)+"'";else ct="Parse error on line "+(V+1)+": Unexpected "+(j==X?"end of input":"'"+(this.terminals_[j]||j)+"'");this.parseError(ct,{text:m.match,token:this.terminals_[j]||j,line:m.yylineno,loc:q,expected:nt})}if(H[0]instanceof Array&&H.length>1)throw Error("Parse Error: multiple actions possible at state: "+Q+", token: "+j);switch(H[0]){case 1:if(s.push(j),g.push(m.yytext),a.push(m.yylloc),s.push(H[1]),j=null,!ot){if(A=m.yyleng,x=m.yytext,V=m.yylineno,q=m.yylloc,B>0)B--}else j=ot,ot=null;break;case 2:if(Y=this.productions_[H[1]][1],tt.$=g[g.length-Y],tt._$={first_line:a[a.length-(Y||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(Y||1)].first_column,last_column:a[a.length-1].last_column},lt)tt._$.range=[a[a.length-(Y||1)].range[0],a[a.length-1].range[1]];if(ht=this.performAction.apply(tt,[x,A,V,L.yy,H[1],g,a].concat(rt)),typeof ht<"u")return ht;if(Y)s=s.slice(0,-1*Y*2),g=g.slice(0,-1*Y),a=a.slice(0,-1*Y);s.push(this.productions_[H[1]][0]),g.push(tt.$),a.push(tt._$),ft=E[s[s.length-2]][s[s.length-1]],s.push(ft);break;case 3:return!0}}return!0},"parse")},Z=function(){var z={EOF:1,parseError:t(function(n,s){if(this.yy.parser)this.yy.parser.parseError(n,s);else throw Error(n)},"parseError"),setInput:t(function(i,n){if(this.yy=n||this.yy||{},this._input=i,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges)this.yylloc.range=[0,0];return this.offset=0,this},"setInput"),input:t(function(){var i=this._input[0];this.yytext+=i,this.yyleng++,this.offset++,this.match+=i,this.matched+=i;var n=i.match(/(?:\r\n?|\n).*/g);if(n)this.yylineno++,this.yylloc.last_line++;else this.yylloc.last_column++;if(this.options.ranges)this.yylloc.range[1]++;return this._input=this._input.slice(1),i},"input"),unput:t(function(i){var n=i.length,s=i.split(/(?:\r\n?|\n)/g);this._input=i+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-n),this.offset-=n;var h=this.match.split(/(?:\r\n?|\n)/g);if(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),s.length-1)this.yylineno-=s.length-1;var g=this.yylloc.range;if(this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:s?(s.length===h.length?this.yylloc.first_column:0)+h[h.length-s.length].length-s[0].length:this.yylloc.first_column-n},this.options.ranges)this.yylloc.range=[g[0],g[0]+this.yyleng-n];return this.yyleng=this.yytext.length,this},"unput"),more:t(function(){return this._more=!0,this},"more"),reject:t(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
4
+ `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:t(function(i){this.unput(this.match.slice(i))},"less"),pastInput:t(function(){var i=this.matched.substr(0,this.matched.length-this.match.length);return(i.length>20?"...":"")+i.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:t(function(){var i=this.match;if(i.length<20)i+=this._input.substr(0,20-i.length);return(i.substr(0,20)+(i.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:t(function(){var i=this.pastInput(),n=Array(i.length+1).join("-");return i+this.upcomingInput()+`
5
+ `+n+"^"},"showPosition"),test_match:t(function(i,n){var s,h,g;if(this.options.backtrack_lexer){if(g={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges)g.yylloc.range=this.yylloc.range.slice(0)}if(h=i[0].match(/(?:\r\n?|\n).*/g),h)this.yylineno+=h.length;if(this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:h?h[h.length-1].length-h[h.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+i[0].length},this.yytext+=i[0],this.match+=i[0],this.matches=i,this.yyleng=this.yytext.length,this.options.ranges)this.yylloc.range=[this.offset,this.offset+=this.yyleng];if(this._more=!1,this._backtrack=!1,this._input=this._input.slice(i[0].length),this.matched+=i[0],s=this.performAction.call(this,this.yy,this,n,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input)this.done=!1;if(s)return s;else if(this._backtrack){for(var a in g)this[a]=g[a];return!1}return!1},"test_match"),next:t(function(){if(this.done)return this.EOF;if(!this._input)this.done=!0;var i,n,s,h;if(!this._more)this.yytext="",this.match="";var g=this._currentRules();for(var a=0;a<g.length;a++)if(s=this._input.match(this.rules[g[a]]),s&&(!n||s[0].length>n[0].length)){if(n=s,h=a,this.options.backtrack_lexer)if(i=this.test_match(s,g[a]),i!==!1)return i;else if(this._backtrack){n=!1;continue}else return!1;else if(!this.options.flex)break}if(n){if(i=this.test_match(n,g[h]),i!==!1)return i;return!1}if(this._input==="")return this.EOF;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
6
+ `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:t(function(){var n=this.next();if(n)return n;else return this.lex()},"lex"),begin:t(function(n){this.conditionStack.push(n)},"begin"),popState:t(function(){var n=this.conditionStack.length-1;if(n>0)return this.conditionStack.pop();else return this.conditionStack[0]},"popState"),_currentRules:t(function(){if(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1])return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules;else return this.conditions.INITIAL.rules},"_currentRules"),topState:t(function(n){if(n=this.conditionStack.length-1-Math.abs(n||0),n>=0)return this.conditionStack[n];else return"INITIAL"},"topState"),pushState:t(function(n){this.begin(n)},"pushState"),stateStackSize:t(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:t(function(n,s,h,g){var a=g;switch(h){case 0:return 6;case 1:return 8;case 2:return 8;case 3:return 6;case 4:return 7;case 5:return 13;case 6:return 14;case 7:return 11}},"anonymous"),rules:[/^(?:\s*%%.*)/i,/^(?:ishikawa-beta\b)/i,/^(?:ishikawa\b)/i,/^(?:[\s]+[\n])/i,/^(?:[\n]+)/i,/^(?:[\s]+)/i,/^(?:[^\n]+)/i,/^(?:$)/i],conditions:{INITIAL:{rules:[0,1,2,3,4,5,6,7],inclusive:!0}}};return z}();U.lexer=Z;function T(){this.yy={}}return t(T,"Parser"),T.prototype=U,U.Parser=T,new T}();dt.parser=dt;var vt=dt,St=class{constructor(){this.stack=[],this.clear=this.clear.bind(this),this.addNode=this.addNode.bind(this),this.getRoot=this.getRoot.bind(this)}static{t(this,"IshikawaDB")}clear(){this.root=void 0,this.stack=[],this.baseLevel=void 0,N()}getRoot(){return this.root}addNode(e,f){let r=C.sanitizeText(f,d());if(!this.root){this.root={text:r,children:[]},this.stack=[{level:0,node:this.root}],O(r);return}this.baseLevel??=e;let l=e-this.baseLevel+1;if(l<=0)l=1;while(this.stack.length>1&&this.stack[this.stack.length-1].level>=l)this.stack.pop();let o=this.stack[this.stack.length-1].node,p={text:r,children:[]};o.children.push(p),this.stack.push({level:l,node:p})}getAccTitle(){return P()}setAccTitle(e){M(e)}getAccDescription(){return I()}setAccDescription(e){R(e)}getDiagramTitle(){return D()}setDiagramTitle(e){O(e)}},Et=14,et=250,$t=30,At=60,It=5,bt=82*Math.PI/180,pt=Math.cos(bt),gt=Math.sin(bt),kt=t((e,f,r)=>{let l=e.node().getBBox(),o=l.width+f*2,p=l.height+f*2;W(e,p,o,r),e.attr("viewBox",`${l.x-f} ${l.y-f} ${o} ${p}`)},"applyPaddedViewBox"),Lt=t((e,f,r,l)=>{let p=l.db.getRoot();if(!p)return;let k=d(),{look:u,handDrawnSeed:_,themeVariables:c}=k,b=Mt(k.fontSize)[0]??Et,w=u==="handDrawn",v=p.children??[],S=k.ishikawa?.diagramPadding??20,U=k.ishikawa?.useMaxWidth??!1,Z=J(f),T=Z.append("g").attr("class","ishikawa"),z=w?y.svg(Z.node()):void 0,i=z?{roughSvg:z,seed:_??0,lineColor:c?.lineColor??"#333",fillColor:c?.mainBkg??"#fff"}:void 0,n=`ishikawa-arrow-${f}`;if(!w)T.append("defs").append("marker").attr("id",n).attr("viewBox","0 0 10 10").attr("refX",0).attr("refY",5).attr("markerWidth",6).attr("markerHeight",6).attr("orient","auto").append("path").attr("d","M 10 0 L 0 5 L 10 10 Z").attr("class","ishikawa-arrow");let s=0,h=et,g=w?void 0:it(T,s,h,s,h,"ishikawa-spine");if(Tt(T,s,h,p.text,b,i),!v.length){if(w)it(T,s,h,s,h,"ishikawa-spine",i);kt(Z,S,U);return}s-=20;let a=v.filter((m,L)=>L%2===0),E=v.filter((m,L)=>L%2===1),x=mt(a),V=mt(E),A=x.total+V.total,B=et,F=et;if(A>0){let m=et*2,L=et*0.3;B=Math.max(L,m*(x.total/A)),F=Math.max(L,m*(V.total/A))}let X=b*2;if(B=Math.max(B,x.max*X),F=Math.max(F,V.max*X),h=Math.max(B,et),g)g.attr("y1",h).attr("y2",h);T.select(".ishikawa-head-group").attr("transform",`translate(0,${h})`);let rt=Math.ceil(v.length/2);for(let m=0;m<rt;m++){let L=T.append("g").attr("class","ishikawa-pair");for(let[K,q,lt]of[[v[m*2],-1,B],[v[m*2+1],1,F]])if(K)Nt(L,K,s,h,q,lt,b,i);s=L.selectAll("text").nodes().reduce((K,q)=>Math.min(K,q.getBBox().x),1/0)}if(w)it(T,s,h,0,h,"ishikawa-spine",i);else{g.attr("x1",s);let m=`url(#${n})`;T.selectAll("line.ishikawa-branch, line.ishikawa-sub-branch").attr("marker-start",m)}kt(Z,S,U)},"draw"),mt=t((e)=>{let f=t((r)=>r.children.reduce((l,o)=>l+1+f(o),0),"countDescendants");return e.reduce((r,l)=>{let o=f(l);return r.total+=o,r.max=Math.max(r.max,o),r},{total:0,max:0})},"sideStats"),Tt=t((e,f,r,l,o,p)=>{let k=Math.max(6,Math.floor(110/(o*0.6))),u=e.append("g").attr("class","ishikawa-head-group").attr("transform",`translate(${f},${r})`),_=at(u,_t(l,k),0,0,"ishikawa-head-label","start",o),c=_.node().getBBox(),b=Math.max(60,c.width+6),w=Math.max(40,c.height*2+40),v=`M 0 ${-w/2} L 0 ${w/2} Q ${b*2.4} 0 0 ${-w/2} Z`;if(p){let S=p.roughSvg.path(v,{roughness:1.5,seed:p.seed,fill:p.fillColor,fillStyle:"hachure",fillWeight:2.5,hachureGap:5,stroke:p.lineColor,strokeWidth:2});u.insert(()=>S,":first-child").attr("class","ishikawa-head")}else u.insert("path",":first-child").attr("class","ishikawa-head").attr("d",v);_.attr("transform",`translate(${(b-c.width)/2-c.x+3},${-c.y-c.height/2})`)},"drawHead"),Pt=t((e,f)=>{let r=[],l=[],o=t((p,k,u)=>{let _=f===-1?[...p].reverse():p;for(let c of _){let b=r.length,w=c.children??[];if(r.push({depth:u,text:_t(c.text,15),parentIndex:k,childCount:w.length}),u%2===0){if(l.push(b),w.length)o(w,b,u+1)}else{if(w.length)o(w,b,u+1);l.push(b)}}},"walk");return o(e,-1,2),{entries:r,yOrder:l}},"flattenTree"),Bt=t((e,f,r,l,o,p,k)=>{let u=e.append("g").attr("class","ishikawa-label-group"),c=at(u,f,r,l+11*o,"ishikawa-label cause","middle",p).node().getBBox();if(k){let b=k.roughSvg.rectangle(c.x-20,c.y-2,c.width+40,c.height+4,{roughness:1.5,seed:k.seed,fill:k.fillColor,fillStyle:"hachure",fillWeight:2.5,hachureGap:5,stroke:k.lineColor,strokeWidth:2});u.insert(()=>b,":first-child").attr("class","ishikawa-label-box")}else u.insert("rect",":first-child").attr("class","ishikawa-label-box").attr("x",c.x-20).attr("y",c.y-2).attr("width",c.width+40).attr("height",c.height+4)},"drawCauseLabel"),ut=t((e,f,r,l,o,p)=>{let k=Math.sqrt(l*l+o*o);if(k===0)return;let u=l/k,_=o/k,c=6,b=-_*c,w=u*c,v=f,S=r,U=`M ${v} ${S} L ${v-u*c*2+b} ${S-_*c*2+w} L ${v-u*c*2-b} ${S-_*c*2-w} Z`,Z=p.roughSvg.path(U,{roughness:1,seed:p.seed,fill:p.lineColor,fillStyle:"solid",stroke:p.lineColor,strokeWidth:1});e.append(()=>Z)},"drawArrowMarker"),Nt=t((e,f,r,l,o,p,k,u)=>{let _=f.children??[],c=p*(_.length?1:0.2),b=-pt*c,w=gt*c*o,v=r+b,S=l+w;if(it(e,r,l,v,S,"ishikawa-branch",u),u)ut(e,r,l,r-v,l-S,u);if(Bt(e,f.text,v,S,o,k,u),!_.length)return;let{entries:U,yOrder:Z}=Pt(_,o),T=U.length,z=Array(T);for(let[g,a]of Z.entries())z[a]=l+w*((g+1)/(T+1));let i=new Map;i.set(-1,{x0:r,y0:l,x1:v,y1:S,childCount:_.length,childrenDrawn:0});let n=-pt,s=gt*o,h=o<0?"ishikawa-label up":"ishikawa-label down";for(let[g,a]of U.entries()){let E=z[g],x=i.get(a.parentIndex),V=e.append("g").attr("class","ishikawa-sub-group"),A=0,B=0,F=0;if(a.depth%2===0){let X=x.y1-x.y0;if(A=wt(x.x0,x.x1,X?(E-x.y0)/X:0.5),B=E,F=A-(a.childCount>0?At+a.childCount*It:$t),it(V,A,E,F,E,"ishikawa-sub-branch",u),u)ut(V,A,E,1,0,u);at(V,a.text,F,E,"ishikawa-label align","end",k)}else{let X=x.childrenDrawn++;if(A=wt(x.x0,x.x1,(x.childCount-X)/(x.childCount+1)),B=x.y0,F=A+n*((E-B)/s),it(V,A,B,F,E,"ishikawa-sub-branch",u),u)ut(V,A,B,A-F,B-E,u);at(V,a.text,F,E,h,"end",k)}if(a.childCount>0)i.set(g,{x0:A,y0:B,x1:F,y1:E,childCount:a.childCount,childrenDrawn:0})}},"drawBranch"),Dt=t((e)=>e.split(/<br\s*\/?>|\n/),"splitLines"),_t=t((e,f)=>{if(e.length<=f)return e;let r=[];for(let l of e.split(/\s+/)){let o=r.length-1;if(o>=0&&r[o].length+1+l.length<=f)r[o]+=" "+l;else r.push(l)}return r.join(`
7
+ `)},"wrapText"),at=t((e,f,r,l,o,p,k)=>{let u=Dt(f),_=k*1.05,c=e.append("text").attr("class",o).attr("text-anchor",p).attr("x",r).attr("y",l-(u.length-1)*_/2);for(let[b,w]of u.entries())c.append("tspan").attr("x",r).attr("dy",b===0?0:_).text(w);return c},"drawMultilineText"),wt=t((e,f,r)=>e+(f-e)*r,"lerp"),it=t((e,f,r,l,o,p,k)=>{if(k){let u=k.roughSvg.line(f,r,l,o,{roughness:1.5,seed:k.seed,stroke:k.lineColor,strokeWidth:2});e.append(()=>u).attr("class",p);return}return e.append("line").attr("class",p).attr("x1",f).attr("y1",r).attr("x2",l).attr("y2",o)},"drawLine"),Ot={draw:Lt},Ct=t((e)=>`
8
+ .ishikawa .ishikawa-spine,
9
+ .ishikawa .ishikawa-branch,
10
+ .ishikawa .ishikawa-sub-branch {
11
+ stroke: ${e.lineColor};
12
+ stroke-width: 2;
13
+ fill: none;
14
+ }
15
+
16
+ .ishikawa .ishikawa-sub-branch {
17
+ stroke-width: 1;
18
+ }
19
+
20
+ .ishikawa .ishikawa-arrow {
21
+ fill: ${e.lineColor};
22
+ }
23
+
24
+ .ishikawa .ishikawa-head {
25
+ fill: ${e.mainBkg};
26
+ stroke: ${e.lineColor};
27
+ stroke-width: 2;
28
+ }
29
+
30
+ .ishikawa .ishikawa-label-box {
31
+ fill: ${e.mainBkg};
32
+ stroke: ${e.lineColor};
33
+ stroke-width: 2;
34
+ }
35
+
36
+ .ishikawa text {
37
+ font-family: ${e.fontFamily};
38
+ font-size: ${e.fontSize};
39
+ fill: ${e.textColor};
40
+ }
41
+
42
+ .ishikawa .ishikawa-head-label {
43
+ font-weight: 600;
44
+ text-anchor: middle;
45
+ dominant-baseline: middle;
46
+ font-size: 14px;
47
+ }
48
+
49
+ .ishikawa .ishikawa-label {
50
+ text-anchor: end;
51
+ }
52
+
53
+ .ishikawa .ishikawa-label.cause {
54
+ text-anchor: middle;
55
+ dominant-baseline: middle;
56
+ }
57
+
58
+ .ishikawa .ishikawa-label.align {
59
+ text-anchor: end;
60
+ dominant-baseline: middle;
61
+ }
62
+
63
+ .ishikawa .ishikawa-label.up {
64
+ dominant-baseline: baseline;
65
+ }
66
+
67
+ .ishikawa .ishikawa-label.down {
68
+ dominant-baseline: hanging;
69
+ }
70
+ `,"getStyles"),Vt=Ct,Ut={parser:vt,get db(){return new St},renderer:Ot,styles:Vt};export{Ut as diagram};
Binary file
Binary file
@@ -0,0 +1,3 @@
1
+ import{ie}from"./chunk-tykcqm6v.js";import{t,i,F,A,q,N,M,P,R,I,O,D,d,Za,g,Xr,zi,Z}from"./chunk-sawc81kc.js";import{Ti,fe}from"./chunk-4ab1dv3g.js";var U="position frame",_="frame positioned",B="position relation",G="relation positioned",pe=t(function(e){i.debug("options str",e)},"setOptions"),ve=t(function(){return{}},"getOptions"),be=t(function(){L(),N()},"clear");function L(){S={}}t(L,"reset");var we=F.eventmodeling,ye=t(()=>Z({...we,...A().eventmodeling}),"getConfig"),S={};function V(){let e=Pe,{ast:r}=S,n=C();if(!r)throw Error("No data for EventModel");return r.frames.forEach((a,o)=>{let s=Q(a,r.dataEntities,n);e=y(e,{$kind:U,index:o,frame:a,textProps:s});let c=void 0;if(oe(a))i.debug("source frame",a.sourceFrames),c=r.frames.filter((m)=>a.sourceFrames.some((u)=>u.$refText===m.name)),c.forEach((m)=>{e=y(e,{$kind:B,index:o,frame:a,sourceFrame:m})});else e=y(e,{$kind:B,index:o,frame:a})}),e={...e,sortedSwimlanesArray:W(e.swimlanes)},e}t(V,"getState");function X(e){S.ast=void 0;let r=new Set;for(let n of e.frames){if(r.has(n.name)){let a=n.$cstNode?.range.start.line,o=a===void 0?"":` on line ${a+1}`;throw Error(`Duplicate event modeling frame ID "${n.name}"${o}`)}r.add(n.name)}S.ast=e}t(X,"setAst");var l={swimlaneMinHeight:70,swimlanePadding:15,swimlaneGap:10,boxPadding:10,boxOverlap:90,boxDefaultY:0,boxMinWidth:80,boxMaxWidth:450,boxMinHeight:80,boxMaxHeight:750,contentStartX:250,textMaxWidth:430,boxTextFontWeight:"bold",boxTextPadding:10,swimlaneTextFontWeight:"bold",labelUiAutomation:"UI/Automation",labelUiAutomationPrefix:"UI/A: ",labelCommandReadModel:"Command/Read Model",labelCommandReadModelPrefix:"C/RM: ",labelEvents:"Events",labelEventsPrefix:"Stream: "};function C(){return l}t(C,"getDiagramProps");var Pe={boxes:[],swimlanes:{},relations:[],maxR:0,sortedSwimlanesArray:[]};function j(e){let r=e.split(".");if(r.length===2)return r[0];return}t(j,"extractNamespace");function Y(e){let r=e.split(".");if(r.length===2)return r[1];return e}t(Y,"extractName");function z(e,r){if(!r||r.length===0)return;return Object.values(e).find((n)=>n.namespace===r)}t(z,"findSwimlaneByNamespace");function w(e,r,n){return Math.max(r,...Object.keys(e).filter((a)=>{let o=Number.parseInt(a);return o>r&&o<n}).map((a)=>Number.parseInt(a)))+1}t(w,"findNextAvailableIndex");function K(e,r){let n=j(e.entityIdentifier),a=z(r,n);switch(e.modelEntityType){case"ui":case"pcr":case"processor":if(a)return{index:a.index,label:a.namespace||l.labelUiAutomation};else if(n)return{index:w(r,0,100),label:l.labelUiAutomationPrefix+n};return{index:0,label:l.labelUiAutomation};case"rmo":case"readmodel":case"cmd":case"command":if(a)return{index:a.index,label:a.namespace||l.labelCommandReadModel};else if(n)return{index:w(r,100,200),label:l.labelCommandReadModelPrefix+n};return{index:100,label:l.labelCommandReadModel};case"evt":case"event":default:if(a)return{index:a.index,label:a.namespace||l.labelEvents};else if(n)return{index:w(r,200,300),label:l.labelEventsPrefix+n};return{index:200,label:l.labelEvents}}}t(K,"calculateSwimlaneProps");function J(e){let{themeVariables:r}=A();switch(e.modelEntityType){case"ui":return{fill:r.emUiFill??"white",stroke:r.emUiStroke??"#dbdada"};case"pcr":case"processor":return{fill:r.emProcessorFill??"#edb3f6",stroke:r.emProcessorStroke??"#b88cbf"};case"rmo":case"readmodel":return{fill:r.emReadModelFill??"#d3f1a2",stroke:r.emReadModelStroke??"#a3b732"};case"cmd":case"command":return{fill:r.emCommandFill??"#bcd6fe",stroke:r.emCommandStroke??"#679ac3"};case"evt":case"event":return{fill:r.emEventFill??"#ffb778",stroke:r.emEventStroke??"#c19a0f"};default:return{fill:"red",stroke:"black"}}}t(J,"calculateEntityVisualProps");function Q(e,r,n){let a=A(),o=q(Y(e.entityIdentifier)??"",a),s,c={fontSize:16,fontWeight:700,fontFamily:'"trebuchet ms", verdana, arial, sans-serif',joinWith:"<br/>"},u=`<b>${Xr(o,n.textMaxWidth,c)}</b>`;if(e.dataInlineValue)s=e.dataInlineValue,s=s.substring(s.indexOf("{")+1),s=s.substring(0,s.lastIndexOf("}")-1),s=q(s,a),s=Xr(s,n.textMaxWidth,c),s=s.replaceAll(" ","&nbsp;");if(e.dataReference){let b=r.find((k)=>k.name===e.dataReference?.$refText);if(b)s=b.dataBlockValue,s=s.substring(s.indexOf(`{
2
+ `)+2),s=s.substring(0,s.lastIndexOf("}")-1),s=q(s,a),s=Xr(s,n.textMaxWidth,c),s=s.replaceAll(" ","&nbsp;"),s+="<br/>"}let x=s!==void 0;if(x)u+=`<br/><br/><code style="text-align: left; display: block;max-width:${n.textMaxWidth}px">${s}</code>`;let h={fontSize:c.fontSize,fontWeight:c.fontWeight,fontFamily:c.fontFamily},f=zi(u,h),v=x?f.width/3:f.width,p={content:u,width:v,height:f.height};return i.debug(`[${e.name}] ${e.entityIdentifier} text`,p),p}t(Q,"calculateTextProps");function ee(e,r){let n=r,a=J(n.frame),o={width:n.textProps.width+2*l.boxTextPadding,height:n.textProps.height+2*l.boxTextPadding};return[{$kind:_,frame:n.frame,index:n.index,visual:a,dimension:o,textProps:n.textProps}]}t(ee,"decidePositionFrame");function te(e,r,n){if(r===void 0)return l.contentStartX;if(r.index===e.index&&e.r)return e.r+l.boxPadding;if(n===void 0)return l.contentStartX;return n.r-l.boxOverlap+l.boxPadding}t(te,"calculateX");function ne(e,r){let n=[...e.map((a)=>a.r),r];return Math.max(...n)}t(ne,"calculateMaxRight");function W(e){return Object.values(e).sort((r,n)=>r.index-n.index)}t(W,"sortedSwimlanesArray");function re(e,r){let n=r,a=K(n.frame,e.swimlanes),o;if(a.index in e.swimlanes)o=e.swimlanes[a.index];else o={index:a.index,label:a.label,r:0,y:a.index*l.swimlaneMinHeight+l.swimlaneGap,height:l.swimlaneMinHeight,maxHeight:l.swimlaneMinHeight};let s=e.boxes.length>0?e.boxes[e.boxes.length-1]:void 0,c=e.previousSwimlaneNumber!==void 0?e.swimlanes[e.previousSwimlaneNumber]:void 0,m={width:Math.max(l.boxMinWidth,Math.min(l.boxMaxWidth,n.dimension.width))+2*l.boxPadding,height:Math.max(l.boxMinHeight,Math.min(l.boxMaxHeight,n.dimension.height))+2*l.boxPadding},u=te(o,c,s),x=u+m.width+l.boxPadding,h=ne(Object.values(e.swimlanes),x);o.r=u+m.width,o.maxHeight=Math.max(o.maxHeight,m.height),o.height=Math.max(l.swimlaneMinHeight,o.maxHeight)+2*l.swimlanePadding;let f={x:u,y:l.swimlanePadding+o.y,r:x,dimension:m,leftSibling:!1,swimlane:o,visual:n.visual,text:n.textProps.content,frame:n.frame,index:n.index},v={...e,boxes:[...e.boxes,f],swimlanes:{...e.swimlanes,[`${o.index}`]:o},previousSwimlaneNumber:a.index,previousFrame:n.frame,maxR:h},p=W(v.swimlanes);if(p.length>0)p[0].y=0;for(let b=1;b<p.length;b++){let k=p[b],H=p[b-1];k.y=H.y+H.height+l.swimlaneGap}return v}t(re,"evolveFramePositioned");function ae(e,r){if(e===0&&r.sourceFrames.length===0)return!0;return!1}t(ae,"isFirstFrame");function oe(e){return e.sourceFrames!==void 0&&e.sourceFrames!==null&&e.sourceFrames.length>0}t(oe,"hasSourceFrame");function E(e,r){if(r===void 0||r===null)return;return e.find((n)=>n.frame.name===r.name)}t(E,"findBoxByFrame");function se(e,r,n){if(n<0)return;for(let a=n;a>=0;a--){let o=e[a];if(o.swimlane.index!==r)return o}return}t(se,"findBoxByLineIndex");function de(e,r){let n=r;if(ae(n.index,n.frame))return[];let a=E(e.boxes,n.frame);if(a===void 0)throw Error(`Target box not found for frame ${n.frame.name}`);let o;if(n.sourceFrame)o=E(e.boxes,n.sourceFrame);else{if(Ti(n.frame))return[];o=se(e.boxes,a.swimlane.index,n.index-1)}if(o===void 0)return[];return[{$kind:G,frame:n.frame,index:n.index,sourceBox:o,targetBox:a}]}t(de,"decidePositionRelation");function le(e,r){let n=r,a={visual:{fill:"none",stroke:"#000"},source:{x:n.sourceBox.x,y:n.sourceBox.y},target:{x:n.targetBox.x,y:n.targetBox.y},sourceBox:n.sourceBox,targetBox:n.targetBox};return{...e,relations:[...e.relations,a]}}t(le,"evolveRelationPositioned");var Se={[U]:ee,[B]:de},Me={[_]:re,[G]:le};function ce(e,r){let n=Se[r.$kind];if(n===void 0||n===null)return[];let a=n(e,r);return i.debug("decided events",a),a}t(ce,"decide");function me(e,r){let n=r.reduce((a,o)=>{let s=Me[o.$kind];if(s===void 0||s===null)return a;return s(a,o)},e);return i.debug("evolve events",{state:e,newState:n,events:r}),n}t(me,"evolve");function y(e,r){let n=ce(e,r);return me(e,n)}t(y,"dispatch");var T={getConfig:ye,preserveCommentsWhenParsing:!0,setOptions:pe,getOptions:ve,clear:be,setAccTitle:M,getAccTitle:P,getAccDescription:I,setAccDescription:R,setDiagramTitle:O,getDiagramTitle:D,setAst:X,getDiagramProps:C,getState:V},ke={parse:t(async(e)=>{let r=await fe("eventmodeling",e);i.debug(r),T.setAst(r),ie(r,T)},"parse")},Fe=d(),Be=Fe?.eventmodeling;function ue(e,r){return(n)=>{let a=n.swimlane.y+r.swimlanePadding,o=e.append("g").attr("class","em-box");o.append("rect").attr("x",n.x).attr("y",a).attr("rx","3").attr("width",n.dimension.width).attr("height",n.dimension.height).attr("stroke",n.visual.stroke).attr("fill",n.visual.fill),o.append("foreignObject").attr("x",n.x+r.boxPadding).attr("y",a+10).attr("width",n.dimension.width-2*r.boxPadding).attr("height",n.dimension.height-2*r.boxPadding).append("xhtml:div").style("display","table").style("height","100%").style("width","100%").append("span").style("display","table-cell").style("text-align","center").style("vertical-align","middle").html(n.text)}}t(ue,"renderD3Box");function xe(e,r){return e>r}t(xe,"dirUpwards");function ge(e,r,n,a){return(o)=>{let s=o.sourceBox.swimlane.y+r.swimlanePadding,c=o.targetBox.swimlane.y+r.swimlanePadding,m=xe(s,c),u=o.sourceBox.x+o.sourceBox.dimension.width*2/3,x=o.targetBox.x+o.targetBox.dimension.width/3,h,f;if(i.debug(`rendering relation up=${m} for `,{sourceBox:o.sourceBox,targetBox:o.targetBox}),m)h=s,f=c+o.targetBox.dimension.height;else h=s+o.sourceBox.dimension.height,f=c;let v=a.emRelationStroke??o.visual.stroke;e.append("path").attr("class","em-relation").attr("fill",o.visual.fill).attr("stroke",v).attr("stroke-width","1").attr("marker-end",`url(#${n})`).attr("d",`M${u} ${h} L${x} ${f}`)}}t(ge,"renderD3Relation");function he(e,r,n,a){return(o)=>{let s=e.append("g").attr("class","em-swimlane"),c=a.emSwimlaneBackgroundOdd??"rgb(250,250,250)",m=a.emSwimlaneBackgroundStroke??"rgb(240,240,240)";s.append("rect").attr("x",0).attr("y",o.y).attr("rx","3").attr("width",r+n.swimlanePadding).attr("height",o.height).attr("fill",c).attr("stroke",m),s.append("text").attr("font-weight",n.swimlaneTextFontWeight).attr("x",30).attr("y",o.y+30).text(o.label)}}t(he,"renderD3Swimlane");var Ee=t(function(e,r,n,a){if(i.debug("in eventmodeling renderer",e+`
3
+ `,"id:",r,n),!Be)throw Error("EventModeling config not found");let o=a.db,{themeVariables:s,eventmodeling:c}=d(),m=g(`[id="${r}"]`),u=o.getDiagramProps(),x=o.getState(),h=`em-arrowhead-${r}`,f=s.emArrowhead??"#000000";x.sortedSwimlanesArray.forEach(he(m,x.maxR,u,s)),x.boxes.forEach(ue(m,u)),x.relations.forEach(ge(m,u,h,s)),m.append("defs").append("marker").attr("id",h).attr("markerWidth","10").attr("markerHeight","7").attr("refX","10").attr("refY","3.5").attr("orient","auto").append("polygon").attr("points","0 0, 10 3.5, 0 7").attr("fill",f),Za(void 0,m,c?.padding??30,c?.useMaxWidth)},"draw"),Ae={draw:Ee},$e=t((e)=>"","getStyles"),Re=$e,Ue={parser:ke,db:T,renderer:Ae,styles:Re};export{Ue as diagram};
Binary file
Binary file
@@ -0,0 +1 @@
1
+ import{Ns}from"./chunk-gvndjaan.js";import"./chunk-6ycpdpfj.js";export{Ns as default};
Binary file
Binary file
@@ -0,0 +1,98 @@
1
+ import{t,i,de,f,h,F,A,Ac,q,d,He,Ue}from"./chunk-sawc81kc.js";import{ze}from"./chunk-fjvd2dx2.js";import{Pe}from"./chunk-xmp1ag6z.js";var ye=new Uint8Array(16);function Z(){return crypto.getRandomValues(ye)}var S=[];for(let e=0;e<256;++e)S.push((e+256).toString(16).slice(1));function le(e,r=0){return(S[e[r+0]]+S[e[r+1]]+S[e[r+2]]+S[e[r+3]]+"-"+S[e[r+4]]+S[e[r+5]]+"-"+S[e[r+6]]+S[e[r+7]]+"-"+S[e[r+8]]+S[e[r+9]]+"-"+S[e[r+10]]+S[e[r+11]]+S[e[r+12]]+S[e[r+13]]+S[e[r+14]]+S[e[r+15]]).toLowerCase()}function ke(e,r,u){if(!r&&!e&&crypto.randomUUID)return crypto.randomUUID();return be(e,r,u)}function be(e,r,u){e=e||{};let l=e.random??e.rng?.()??Z();if(l.length<16)throw Error("Random bytes length must be >= 16");if(l[6]=l[6]&15|64,l[8]=l[8]&63|128,r){if(u=u||0,u<0||u+16>r.length)throw RangeError(`UUID byte range ${u}:${u+15} is out of buffer bounds`);for(let n=0;n<16;++n)r[u+n]=l[n];return r}return le(l)}var ee=ke;var te=function(){var e=t(function(O,a,s,c){for(s=s||{},c=O.length;c--;s[O[c]]=a);return s},"o"),r=[1,4],u=[1,13],l=[1,12],n=[1,15],p=[1,16],k=[1,20],E=[1,19],x=[6,7,8],w=[1,26],U=[1,24],B=[1,25],m=[6,7,11],M=[1,6,13,15,16,19,22],ne=[1,33],ie=[1,34],P=[1,6,7,11,13,15,16,19,22],X={trace:t(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,MINDMAP:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,ICON:15,CLASS:16,nodeWithId:17,nodeWithoutId:18,NODE_DSTART:19,NODE_DESCR:20,NODE_DEND:21,NODE_ID:22,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"MINDMAP",11:"EOF",13:"SPACELIST",15:"ICON",16:"CLASS",19:"NODE_DSTART",20:"NODE_DESCR",21:"NODE_DEND",22:"NODE_ID"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,2],[12,2],[12,1],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[18,3],[17,1],[17,4]],performAction:t(function(a,s,c,g,b,o,V){var y=o.length-1;switch(b){case 6:case 7:return g;case 8:g.getLogger().trace("Stop NL ");break;case 9:g.getLogger().trace("Stop EOF ");break;case 11:g.getLogger().trace("Stop NL2 ");break;case 12:g.getLogger().trace("Stop EOF2 ");break;case 15:g.getLogger().info("Node: ",o[y].id),g.addNode(o[y-1].length,o[y].id,o[y].descr,o[y].type);break;case 16:g.getLogger().trace("Icon: ",o[y]),g.decorateNode({icon:o[y]});break;case 17:case 21:g.decorateNode({class:o[y]});break;case 18:g.getLogger().trace("SPACELIST");break;case 19:g.getLogger().trace("Node: ",o[y].id),g.addNode(0,o[y].id,o[y].descr,o[y].type);break;case 20:g.decorateNode({icon:o[y]});break;case 25:g.getLogger().trace("node found ..",o[y-2]),this.$={id:o[y-1],descr:o[y-1],type:g.getType(o[y-2],o[y])};break;case 26:this.$={id:o[y],descr:o[y],type:g.nodeType.DEFAULT};break;case 27:g.getLogger().trace("node found ..",o[y-3]),this.$={id:o[y-3],descr:o[y-1],type:g.getType(o[y-2],o[y])};break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:r},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:r},{6:u,7:[1,10],9:9,12:11,13:l,14:14,15:n,16:p,17:17,18:18,19:k,22:E},e(x,[2,3]),{1:[2,2]},e(x,[2,4]),e(x,[2,5]),{1:[2,6],6:u,12:21,13:l,14:14,15:n,16:p,17:17,18:18,19:k,22:E},{6:u,9:22,12:11,13:l,14:14,15:n,16:p,17:17,18:18,19:k,22:E},{6:w,7:U,10:23,11:B},e(m,[2,22],{17:17,18:18,14:27,15:[1,28],16:[1,29],19:k,22:E}),e(m,[2,18]),e(m,[2,19]),e(m,[2,20]),e(m,[2,21]),e(m,[2,23]),e(m,[2,24]),e(m,[2,26],{19:[1,30]}),{20:[1,31]},{6:w,7:U,10:32,11:B},{1:[2,7],6:u,12:21,13:l,14:14,15:n,16:p,17:17,18:18,19:k,22:E},e(M,[2,14],{7:ne,11:ie}),e(P,[2,8]),e(P,[2,9]),e(P,[2,10]),e(m,[2,15]),e(m,[2,16]),e(m,[2,17]),{20:[1,35]},{21:[1,36]},e(M,[2,13],{7:ne,11:ie}),e(P,[2,11]),e(P,[2,12]),{21:[1,37]},e(m,[2,25]),e(m,[2,27])],defaultActions:{2:[2,1],6:[2,2]},parseError:t(function(a,s){if(s.recoverable)this.trace(a);else{var c=Error(a);throw c.hash=s,c}},"parseError"),parse:t(function(a){var s=this,c=[0],g=[],b=[null],o=[],V=this.table,y="",j=0,re=0,se=0,ue=2,oe=1,pe=o.slice.call(arguments,1),_=Object.create(this.lexer),I={yy:{}};for(var z in this.yy)if(Object.prototype.hasOwnProperty.call(this.yy,z))I.yy[z]=this.yy[z];if(_.setInput(a,I.yy),I.yy.lexer=_,I.yy.parser=this,typeof _.yylloc>"u")_.yylloc={};var Y=_.yylloc;o.push(Y);var fe=_.options&&_.options.ranges;if(typeof I.yy.parseError==="function")this.parseError=I.yy.parseError;else this.parseError=Object.getPrototypeOf(this).parseError;function me(D){c.length=c.length-2*D,b.length=b.length-D,o.length=o.length-D}t(me,"popStack");function ae(){var D=g.pop()||_.lex()||oe;if(typeof D!=="number"){if(D instanceof Array)g=D,D=g.pop();D=s.symbols_[D]||D}return D}t(ae,"lex");var N,J,C,L,Te,K,R={},H,v,ce,W;while(!0){if(C=c[c.length-1],this.defaultActions[C])L=this.defaultActions[C];else{if(N===null||typeof N>"u")N=ae();L=V[C]&&V[C][N]}if(typeof L>"u"||!L.length||!L[0]){var Q="";W=[];for(H in V[C])if(this.terminals_[H]&&H>ue)W.push("'"+this.terminals_[H]+"'");if(_.showPosition)Q="Parse error on line "+(j+1)+`:
2
+ `+_.showPosition()+`
3
+ Expecting `+W.join(", ")+", got '"+(this.terminals_[N]||N)+"'";else Q="Parse error on line "+(j+1)+": Unexpected "+(N==oe?"end of input":"'"+(this.terminals_[N]||N)+"'");this.parseError(Q,{text:_.match,token:this.terminals_[N]||N,line:_.yylineno,loc:Y,expected:W})}if(L[0]instanceof Array&&L.length>1)throw Error("Parse Error: multiple actions possible at state: "+C+", token: "+N);switch(L[0]){case 1:if(c.push(N),b.push(_.yytext),o.push(_.yylloc),c.push(L[1]),N=null,!J){if(re=_.yyleng,y=_.yytext,j=_.yylineno,Y=_.yylloc,se>0)se--}else N=J,J=null;break;case 2:if(v=this.productions_[L[1]][1],R.$=b[b.length-v],R._$={first_line:o[o.length-(v||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(v||1)].first_column,last_column:o[o.length-1].last_column},fe)R._$.range=[o[o.length-(v||1)].range[0],o[o.length-1].range[1]];if(K=this.performAction.apply(R,[y,re,j,I.yy,L[1],b,o].concat(pe)),typeof K<"u")return K;if(v)c=c.slice(0,-1*v*2),b=b.slice(0,-1*v),o=o.slice(0,-1*v);c.push(this.productions_[L[1]][0]),b.push(R.$),o.push(R._$),ce=V[c[c.length-2]][c[c.length-1]],c.push(ce);break;case 3:return!0}}return!0},"parse")},ge=function(){var O={EOF:1,parseError:t(function(s,c){if(this.yy.parser)this.yy.parser.parseError(s,c);else throw Error(s)},"parseError"),setInput:t(function(a,s){if(this.yy=s||this.yy||{},this._input=a,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges)this.yylloc.range=[0,0];return this.offset=0,this},"setInput"),input:t(function(){var a=this._input[0];this.yytext+=a,this.yyleng++,this.offset++,this.match+=a,this.matched+=a;var s=a.match(/(?:\r\n?|\n).*/g);if(s)this.yylineno++,this.yylloc.last_line++;else this.yylloc.last_column++;if(this.options.ranges)this.yylloc.range[1]++;return this._input=this._input.slice(1),a},"input"),unput:t(function(a){var s=a.length,c=a.split(/(?:\r\n?|\n)/g);this._input=a+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-s),this.offset-=s;var g=this.match.split(/(?:\r\n?|\n)/g);if(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),c.length-1)this.yylineno-=c.length-1;var b=this.yylloc.range;if(this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:c?(c.length===g.length?this.yylloc.first_column:0)+g[g.length-c.length].length-c[0].length:this.yylloc.first_column-s},this.options.ranges)this.yylloc.range=[b[0],b[0]+this.yyleng-s];return this.yyleng=this.yytext.length,this},"unput"),more:t(function(){return this._more=!0,this},"more"),reject:t(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
4
+ `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:t(function(a){this.unput(this.match.slice(a))},"less"),pastInput:t(function(){var a=this.matched.substr(0,this.matched.length-this.match.length);return(a.length>20?"...":"")+a.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:t(function(){var a=this.match;if(a.length<20)a+=this._input.substr(0,20-a.length);return(a.substr(0,20)+(a.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:t(function(){var a=this.pastInput(),s=Array(a.length+1).join("-");return a+this.upcomingInput()+`
5
+ `+s+"^"},"showPosition"),test_match:t(function(a,s){var c,g,b;if(this.options.backtrack_lexer){if(b={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges)b.yylloc.range=this.yylloc.range.slice(0)}if(g=a[0].match(/(?:\r\n?|\n).*/g),g)this.yylineno+=g.length;if(this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:g?g[g.length-1].length-g[g.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+a[0].length},this.yytext+=a[0],this.match+=a[0],this.matches=a,this.yyleng=this.yytext.length,this.options.ranges)this.yylloc.range=[this.offset,this.offset+=this.yyleng];if(this._more=!1,this._backtrack=!1,this._input=this._input.slice(a[0].length),this.matched+=a[0],c=this.performAction.call(this,this.yy,this,s,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input)this.done=!1;if(c)return c;else if(this._backtrack){for(var o in b)this[o]=b[o];return!1}return!1},"test_match"),next:t(function(){if(this.done)return this.EOF;if(!this._input)this.done=!0;var a,s,c,g;if(!this._more)this.yytext="",this.match="";var b=this._currentRules();for(var o=0;o<b.length;o++)if(c=this._input.match(this.rules[b[o]]),c&&(!s||c[0].length>s[0].length)){if(s=c,g=o,this.options.backtrack_lexer)if(a=this.test_match(c,b[o]),a!==!1)return a;else if(this._backtrack){s=!1;continue}else return!1;else if(!this.options.flex)break}if(s){if(a=this.test_match(s,b[g]),a!==!1)return a;return!1}if(this._input==="")return this.EOF;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
6
+ `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:t(function(){var s=this.next();if(s)return s;else return this.lex()},"lex"),begin:t(function(s){this.conditionStack.push(s)},"begin"),popState:t(function(){var s=this.conditionStack.length-1;if(s>0)return this.conditionStack.pop();else return this.conditionStack[0]},"popState"),_currentRules:t(function(){if(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1])return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules;else return this.conditions.INITIAL.rules},"_currentRules"),topState:t(function(s){if(s=this.conditionStack.length-1-Math.abs(s||0),s>=0)return this.conditionStack[s];else return"INITIAL"},"topState"),pushState:t(function(s){this.begin(s)},"pushState"),stateStackSize:t(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:t(function(s,c,g,b){var o=b;switch(g){case 0:return s.getLogger().trace("Found comment",c.yytext),6;break;case 1:return 8;case 2:this.begin("CLASS");break;case 3:return this.popState(),16;break;case 4:this.popState();break;case 5:s.getLogger().trace("Begin icon"),this.begin("ICON");break;case 6:return s.getLogger().trace("SPACELINE"),6;break;case 7:return 7;case 8:return 15;case 9:s.getLogger().trace("end icon"),this.popState();break;case 10:return s.getLogger().trace("Exploding node"),this.begin("NODE"),19;break;case 11:return s.getLogger().trace("Cloud"),this.begin("NODE"),19;break;case 12:return s.getLogger().trace("Explosion Bang"),this.begin("NODE"),19;break;case 13:return s.getLogger().trace("Cloud Bang"),this.begin("NODE"),19;break;case 14:return this.begin("NODE"),19;break;case 15:return this.begin("NODE"),19;break;case 16:return this.begin("NODE"),19;break;case 17:return this.begin("NODE"),19;break;case 18:return 13;case 19:return 22;case 20:return 11;case 21:this.begin("NSTR2");break;case 22:return"NODE_DESCR";case 23:this.popState();break;case 24:s.getLogger().trace("Starting NSTR"),this.begin("NSTR");break;case 25:return s.getLogger().trace("description:",c.yytext),"NODE_DESCR";break;case 26:this.popState();break;case 27:return this.popState(),s.getLogger().trace("node end ))"),"NODE_DEND";break;case 28:return this.popState(),s.getLogger().trace("node end )"),"NODE_DEND";break;case 29:return this.popState(),s.getLogger().trace("node end ...",c.yytext),"NODE_DEND";break;case 30:return this.popState(),s.getLogger().trace("node end (("),"NODE_DEND";break;case 31:return this.popState(),s.getLogger().trace("node end (-"),"NODE_DEND";break;case 32:return this.popState(),s.getLogger().trace("node end (-"),"NODE_DEND";break;case 33:return this.popState(),s.getLogger().trace("node end (("),"NODE_DEND";break;case 34:return this.popState(),s.getLogger().trace("node end (("),"NODE_DEND";break;case 35:return s.getLogger().trace("Long description:",c.yytext),20;break;case 36:return s.getLogger().trace("Long description:",c.yytext),20;break}},"anonymous"),rules:[/^(?:\s*%%.*)/i,/^(?:mindmap\b)/i,/^(?::::)/i,/^(?:.+)/i,/^(?:\n)/i,/^(?:::icon\()/i,/^(?:[\s]+[\n])/i,/^(?:[\n]+)/i,/^(?:[^\)]+)/i,/^(?:\))/i,/^(?:-\))/i,/^(?:\(-)/i,/^(?:\)\))/i,/^(?:\))/i,/^(?:\(\()/i,/^(?:\{\{)/i,/^(?:\()/i,/^(?:\[)/i,/^(?:[\s]+)/i,/^(?:[^\(\[\n\)\{\}]+)/i,/^(?:$)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:[^"]+)/i,/^(?:["])/i,/^(?:[\)]\))/i,/^(?:[\)])/i,/^(?:[\]])/i,/^(?:\}\})/i,/^(?:\(-)/i,/^(?:-\))/i,/^(?:\(\()/i,/^(?:\()/i,/^(?:[^\)\]\(\}]+)/i,/^(?:.+(?!\(\())/i],conditions:{CLASS:{rules:[3,4],inclusive:!1},ICON:{rules:[8,9],inclusive:!1},NSTR2:{rules:[22,23],inclusive:!1},NSTR:{rules:[25,26],inclusive:!1},NODE:{rules:[21,24,27,28,29,30,31,32,33,34,35,36],inclusive:!1},INITIAL:{rules:[0,1,2,5,6,7,10,11,12,13,14,15,16,17,18,19,20],inclusive:!0}}};return O}();X.lexer=ge;function G(){this.yy={}}return t(G,"Parser"),G.prototype=X,X.Parser=G,new G}();te.parser=te;var Ee=te,he=12,T={DEFAULT:0,NO_BORDER:0,ROUNDED_RECT:1,RECT:2,CIRCLE:3,CLOUD:4,BANG:5,HEXAGON:6},_e=class{constructor(){this.nodes=[],this.count=0,this.elements={},this.getLogger=this.getLogger.bind(this),this.nodeType=T,this.clear(),this.getType=this.getType.bind(this),this.getElementById=this.getElementById.bind(this),this.getParent=this.getParent.bind(this),this.getMindmap=this.getMindmap.bind(this),this.addNode=this.addNode.bind(this),this.decorateNode=this.decorateNode.bind(this)}static{t(this,"MindmapDB")}clear(){this.nodes=[],this.count=0,this.elements={},this.baseLevel=void 0}getParent(e){for(let r=this.nodes.length-1;r>=0;r--)if(this.nodes[r].level<e)return this.nodes[r];return null}getMindmap(){return this.nodes.length>0?this.nodes[0]:null}addNode(e,r,u,l){i.info("addNode",e,r,u,l);let n=!1;if(this.nodes.length===0)this.baseLevel=e,e=0,n=!0;else if(this.baseLevel!==void 0)e=e-this.baseLevel,n=!1;let p=d(),k=p.mindmap?.padding??F.mindmap.padding;switch(l){case this.nodeType.ROUNDED_RECT:case this.nodeType.RECT:case this.nodeType.HEXAGON:k*=2;break}let E={id:this.count++,nodeId:q(r,p),level:e,descr:q(u,p),type:l,children:[],width:p.mindmap?.maxNodeWidth??F.mindmap.maxNodeWidth,padding:k,isRoot:n},x=this.getParent(e);if(x)x.children.push(E),this.nodes.push(E);else if(n)this.nodes.push(E);else throw Error(`There can be only one root. No parent could be found for ("${E.descr}")`)}getType(e,r){switch(i.debug("In get type",e,r),e){case"[":return this.nodeType.RECT;case"(":return r===")"?this.nodeType.ROUNDED_RECT:this.nodeType.CLOUD;case"((":return this.nodeType.CIRCLE;case")":return this.nodeType.CLOUD;case"))":return this.nodeType.BANG;case"{{":return this.nodeType.HEXAGON;default:return this.nodeType.DEFAULT}}setElementForId(e,r){this.elements[e]=r}getElementById(e){return this.elements[e]}decorateNode(e){if(!e)return;let r=d(),u=this.nodes[this.nodes.length-1];if(e.icon)u.icon=q(e.icon,r);if(e.class)u.class=q(e.class,r)}type2Str(e){switch(e){case this.nodeType.DEFAULT:return"no-border";case this.nodeType.RECT:return"rect";case this.nodeType.ROUNDED_RECT:return"rounded-rect";case this.nodeType.CIRCLE:return"circle";case this.nodeType.CLOUD:return"cloud";case this.nodeType.BANG:return"bang";case this.nodeType.HEXAGON:return"hexgon";default:return"no-border"}}assignSections(e,r,u=0,l=!1){if(e.level===0)e.section=void 0;else e.section=l?(u-1)%(he-1):r;if(e.children)for(let[n,p]of e.children.entries()){let k=e.level===0?n%(he-1):r;this.assignSections(p,k,u+1,l)}}flattenNodes(e,r){let u=d(),l=["mindmap-node"];if(e.isRoot===!0)l.push("section-root","section--1");else if(e.section!==void 0)l.push(`section-${e.section}`);if(e.class)l.push(e.class);let n=l.join(" "),p=t((E)=>{let w=(u.theme?.toLowerCase()??"").includes("redux");switch(E){case T.CIRCLE:return"mindmapCircle";case T.RECT:return"rect";case T.ROUNDED_RECT:return"rounded";case T.CLOUD:return"cloud";case T.BANG:return"bang";case T.HEXAGON:return"hexagon";case T.DEFAULT:return w?"rounded":"defaultMindmapNode";case T.NO_BORDER:default:return"rect"}},"getShapeFromType"),k={id:e.id.toString(),domId:"node_"+e.id.toString(),label:e.descr,labelType:"markdown",isGroup:!1,shape:p(e.type),width:e.width,height:e.height??0,padding:e.padding,cssClasses:n,cssStyles:[],centerLabel:!0,look:u.look,icon:e.icon,x:e.x,y:e.y,level:e.level,nodeId:e.nodeId,type:e.type,section:e.section};if(r.push(k),e.children)for(let E of e.children)this.flattenNodes(E,r)}generateEdges(e,r){if(!e.children)return;let u=d();for(let l of e.children){let n="edge";if(l.section!==void 0)n+=` section-edge-${l.section}`;let p=e.level+1;n+=` edge-depth-${p}`;let k={id:`edge_${e.id}_${l.id}`,start:e.id.toString(),end:l.id.toString(),type:"normal",curve:"basis",thickness:"normal",look:u.look,classes:n,depth:e.level,section:l.section};r.push(k),this.generateEdges(l,r)}}getData(){let e=this.getMindmap(),r=d(),l=Ac().layout!==void 0,n=r;if(!l)n.layout="cose-bilkent";if(!e)return{nodes:[],edges:[],config:n};i.debug("getData: mindmapRoot",e,r),this.assignSections(e,void 0,0,r.mindmap?.colorBy==="depth");let p=[],k=[];this.flattenNodes(e,p),this.generateEdges(e,k),i.debug(`getData: processed ${p.length} nodes and ${k.length} edges`);let E=new Map;for(let x of p)E.set(x.id,{shape:x.shape,width:x.width,height:x.height,padding:x.padding});return{nodes:p,edges:k,config:n,rootNode:e,markers:["point"],direction:"TB",nodeSpacing:50,rankSpacing:50,shapes:Object.fromEntries(E),type:"mindmap",diagramId:"mindmap-"+ee()}}getLogger(){return i}},Se=t(async(e,r,u,l)=>{i.debug(`Rendering mindmap diagram
7
+ `+e);let n=l.db,p=n.getData(),k=ze(r,p.config.securityLevel);if(p.type=l.type,p.layoutAlgorithm=Ue(p.config.layout,{fallback:"cose-bilkent"}),p.diagramId=r,!n.getMindmap())return;p.nodes.forEach((m)=>{if(m.shape==="rounded")m.radius=15,m.taper=15,m.stroke="none",m.width=0,m.padding=15;else if(m.shape==="circle")m.padding=10;else if(m.shape==="rect")m.width=0,m.padding=10;else if(m.shape==="hexagon")m.width=0,m.height=0}),await He(p,k);let{themeVariables:x}=A(),{useGradient:w,gradientStart:U,gradientStop:B}=x;if(w&&U&&B){let m=k.attr("id"),M=k.append("defs").append("linearGradient").attr("id",`${m}-gradient`).attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");M.append("stop").attr("offset","0%").attr("stop-color",U).attr("stop-opacity",1),M.append("stop").attr("offset","100%").attr("stop-color",B).attr("stop-opacity",1)}Pe(k,p.config.mindmap?.padding??F.mindmap.padding,"mindmapDiagram",p.config.mindmap?.useMaxWidth??F.mindmap.useMaxWidth)},"draw"),xe={draw:Se},Ne=t((e)=>{let{theme:r,look:u}=e,l="";for(let n=0;n<e.THEME_COLOR_LIMIT;n++)if(e["lineColor"+n]=e["lineColor"+n]||e["cScaleInv"+n],de(e["lineColor"+n]))e["lineColor"+n]=f(e["lineColor"+n],20);else e["lineColor"+n]=h(e["lineColor"+n],20);for(let n=0;n<e.THEME_COLOR_LIMIT;n++){let p=""+(u==="neo"?Math.max(10-(n-1)*2,2):17-3*n),k=r==="redux"||r==="redux-dark"?e.nodeBorder:e["cScaleLabel"+(r==="neutral"?1:n)];l+=`
8
+ .section-${n-1} rect, .section-${n-1} path, .section-${n-1} circle, .section-${n-1} polygon, .section-${n-1} path {
9
+ fill: ${e["cScale"+n]};
10
+ }
11
+ .section-${n-1} text {
12
+ fill: ${e["cScaleLabel"+n]};
13
+ }
14
+ .section-${n-1} span {
15
+ color: ${e["cScaleLabel"+n]};
16
+ }
17
+ .node-icon-${n-1} {
18
+ font-size: 40px;
19
+ color: ${e["cScaleLabel"+n]};
20
+ }
21
+ .section-edge-${n-1}{
22
+ stroke: ${e["cScale"+n]};
23
+ }
24
+ .edge-depth-${n-1}{
25
+ stroke-width: ${p};
26
+ }
27
+ .section-${n-1} line {
28
+ stroke: ${e["cScaleInv"+n]} ;
29
+ stroke-width: 3;
30
+ }
31
+
32
+ .disabled, .disabled circle, .disabled text {
33
+ fill: lightgray;
34
+ }
35
+ .disabled text {
36
+ fill: #efefef;
37
+ }
38
+ [data-look="neo"].mindmap-node.section-${n-1} rect, [data-look="neo"].mindmap-node.section-${n-1} path, [data-look="neo"].mindmap-node.section-${n-1} circle, [data-look="neo"].mindmap-node.section-${n-1} polygon {
39
+ fill: ${r==="redux"||r==="redux-dark"||r==="neutral"?e.mainBkg:e["cScale"+n]};
40
+ stroke: ${r==="redux"||r==="redux-dark"?e.nodeBorder:e["cScale"+n]};
41
+ stroke-width: ${e.strokeWidth??2}px;
42
+ }
43
+ [data-look="neo"].section-edge-${n-1}{
44
+ stroke: ${r?.includes("redux")||r==="neo-dark"?e.nodeBorder:e["cScale"+n]};
45
+ }
46
+ [data-look="neo"].mindmap-node.section-${n-1} text, [data-look="neo"].mindmap-node.section-${n-1} span {
47
+ fill: ${k};
48
+ color: ${k};
49
+ }
50
+ `}return l},"genSections"),Le=t((e,r,u)=>{let l="";for(let n=0;n<e;n++)l+=`
51
+ [data-look="neo"].mindmap-node.section-${n-1} rect, [data-look="neo"].mindmap-node.section-${n-1} path, [data-look="neo"].mindmap-node.section-${n-1} circle, [data-look="neo"].mindmap-node.section-${n-1} polygon {
52
+ stroke: url(${r}-gradient);
53
+ fill: ${u};
54
+ }
55
+ .section-${n-1} line {
56
+ stroke-width: 0;
57
+ }`;return l},"genGradient"),De=t((e)=>{let{theme:r}=e,u=e.svgId,l=r?.includes("redux")?e.nodeBorder:e["cScaleLabel"+(r==="neutral"?1:0)],n=e.dropShadow?e.dropShadow.replace("url(#drop-shadow)",`url(${u}-drop-shadow)`):"none";return`
58
+ .edge {
59
+ stroke-width: 3;
60
+ }
61
+ ${Ne(e)}
62
+ .section-root rect, .section-root path, .section-root circle, .section-root polygon {
63
+ fill: ${e.git0};
64
+ }
65
+ .section-root text {
66
+ fill: ${e.gitBranchLabel0};
67
+ }
68
+ .section-root span {
69
+ color: ${r?.includes("redux")?e.nodeBorder:e.gitBranchLabel0};
70
+ }
71
+ .icon-container {
72
+ height:100%;
73
+ display: flex;
74
+ justify-content: center;
75
+ align-items: center;
76
+ }
77
+ .edge {
78
+ fill: none;
79
+ }
80
+ .mindmap-node-label {
81
+ dy: 1em;
82
+ alignment-baseline: middle;
83
+ text-anchor: middle;
84
+ dominant-baseline: middle;
85
+ text-align: center;
86
+ }
87
+ [data-look="neo"].mindmap-node {
88
+ filter: ${n};
89
+ }
90
+ [data-look="neo"].mindmap-node.section-root rect, [data-look="neo"].mindmap-node.section-root path, [data-look="neo"].mindmap-node.section-root circle, [data-look="neo"].mindmap-node.section-root polygon {
91
+ fill: ${r?.includes("redux")?e.mainBkg:e.git0};
92
+ }
93
+ [data-look="neo"].mindmap-node.section-root .text-inner-tspan, [data-look="neo"].mindmap-node.section-root span {
94
+ fill: ${l};
95
+ color: ${l};
96
+ }
97
+ ${e.useGradient&&u&&e.mainBkg?Le(e.THEME_COLOR_LIMIT,u,e.mainBkg):""}
98
+ `},"getStyles"),ve=De,It={get db(){return new _e},renderer:xe,parser:Ee,styles:ve};export{It as diagram};
Binary file
Binary file
@@ -0,0 +1,2 @@
1
+ import{t,i,W,J}from"./chunk-sawc81kc.js";import{fe}from"./chunk-4ab1dv3g.js";var n={parse:t(async(r)=>{let e=await fe("info",r);i.debug(e)},"parse")},s={version:"12.2.0"},p=t(()=>s.version,"getVersion"),g={getVersion:p},m=t((r,e,o)=>{i.debug(`rendering info diagram
2
+ `+r);let a=J(e);W(a,100,400,!0),a.append("g").append("text").attr("x",100).attr("y",40).attr("class","version").attr("font-size",32).style("text-anchor","middle").text(`v${o}`)},"draw"),v={draw:m},y={parser:n,db:g,renderer:v};export{y as diagram};
Binary file
Binary file
@@ -0,0 +1 @@
1
+ import{v,s,ee,o,a,m,e,n,b,hr,ya,ht,Kr,gt,Er,be,xe,ji,jc,qi}from"./chunk-6f1q0tjv.js";function le(d){let{Button:x,confirm:L,PageLayout:y,Switch:_,cn:F,style:z}=b(),{connection:f,onOpen:O}=d,[D,p]=a([]),[w,H]=a([]),[q,J]=a([]),[I,T]=a(),[B,U]=a([]),[A,V]=a(!0),[k,N]=a(),[C,R]=a(),[W,P]=a(!1),[G,c]=a({}),i=o(0),E=v(async()=>{let t=++i.current;try{let[r,l,u,g]=await Promise.all([f.request("/api/automations"),f.request("/api/projects").catch(()=>[]),f.request("/api/info").catch(()=>{return}),f.request("/api/models").catch(()=>({models:[]}))]),Z=[...new Set(r.flatMap((h)=>h.lastSessionID?[h.lastSessionID]:[]))],te=(await Promise.all(Z.map(async(h)=>f.request(`/api/sessions/${encodeURIComponent(h)}`).catch((j)=>{if(j instanceof Error&&"status"in j&&j.status===404)return;throw j})))).filter((h)=>h!==void 0);if(t!==i.current)return;if(p(r.sort((h,j)=>h.created-j.created)),H(l),J(te),T(u),g?.models)U(g.models.map((h)=>h.id));N(void 0)}catch(r){if(t===i.current)N(r instanceof Error?r.message:"加载失败")}finally{if(t===i.current)V(!1)}},[f]);s(()=>(E(),()=>{i.current++}),[E]);let S=(t)=>{R(t),P(!0)},Q=async(t)=>{c((r)=>({...r,[t.id]:!0}));try{let r=await f.request(`/api/automations/${t.id}/run`,{method:"POST"});O(r.id)}catch(r){N(r instanceof Error?r.message:"运行失败")}finally{c((r)=>({...r,[t.id]:!1}))}},X=async(t)=>{if(!await L({title:`删除自动化「${t.name}」?`,description:"已经跑出来的会话会保留。",action:"删除",danger:!0}))return;try{await f.request(`/api/automations/${t.id}`,{method:"DELETE"}),p((l)=>l.filter((u)=>u.id!==t.id))}catch(l){N(l instanceof Error?l.message:"删除失败")}},Y=async(t,r)=>{try{let l=await f.request(`/api/automations/${t.id}`,{method:"PATCH",headers:{"content-type":"application/json"},body:JSON.stringify({enabled:r})});p((u)=>u.map((g)=>g.id===t.id?l:g))}catch(l){N(l instanceof Error?l.message:"状态切换失败")}};return n(y,{title:"自动化",description:n(m,{children:["到点自动开一个新会话执行提示词,跑完的结果在会话里查看。",I?.timezone&&n("span",{className:"text-faint",children:["按服务器时区 ",I.timezone,"。"]})]}),actions:n(x,{variant:"primary",onClick:()=>S(null),children:[e(be,{className:"size-4"}),"新建"]}),children:[k&&e("div",{className:"mb-4 rounded-lg bg-danger/10 px-3 py-2 text-xs text-danger",children:k}),A?e("div",{className:"flex justify-center py-12 text-xs text-faint",children:"正在加载自动化…"}):D.length===0?n("div",{className:z("surface.emptyDashed","animate-fade"),children:[e("div",{className:"grid size-11 place-items-center rounded-xl bg-raised text-dim",children:e(hr,{className:"size-5"})}),n("div",{children:[e("p",{className:"text-md font-medium",children:"还没有自动化"}),e("p",{className:"mt-1 text-sm text-dim",children:"比如「每个工作日 9 点总结昨天的提交」。"})]}),n(x,{size:"sm",onClick:()=>S(null),className:"mt-1",children:[e(be,{className:"size-3.5"}),"新建自动化"]})]}):e("ul",{className:"flex animate-fade flex-col gap-3",children:D.map((t)=>{let r=t.projectID?w.find((g)=>g.id===t.projectID):void 0,l=t.lastSessionID?q.find((g)=>g.id===t.lastSessionID):void 0,u=Boolean(G[t.id]);return e("li",{children:n("article",{className:z("surface.card","group p-4 transition-[border-color,box-shadow] duration-200 hover:border-line-strong hover:shadow-composer"),children:[n("div",{className:"flex items-start gap-3",children:[n("div",{className:F("min-w-0 flex-1 transition-opacity duration-200",!t.enabled&&"opacity-55"),children:[e("h2",{className:"truncate text-md font-medium",children:t.name}),n("div",{className:"mt-1 flex flex-wrap items-center gap-x-3.5 gap-y-1 text-ui text-dim",children:[n("span",{className:"flex items-center gap-1.5 [&_svg]:size-3.5 [&_svg]:text-faint",children:[e(hr,{}),jc(t.schedule)]}),n("span",{className:"flex items-center gap-1.5 [&_svg]:size-3.5 [&_svg]:text-faint",children:[r?e(ht,{}):e(Kr,{}),r?r.name:"聊天"]}),t.enabled&&t.nextRun!==null&&n("span",{className:"flex items-center gap-1.5 [&_svg]:size-3.5 [&_svg]:text-faint",children:[e(ya,{}),"下次 ",qi(t.nextRun)]})]})]}),e(_,{checked:t.enabled,label:t.enabled?"停用":"启用",onCheckedChange:(g)=>Y(t,g),className:"mt-0.5"})]}),e("p",{className:F("mt-3 line-clamp-2 text-sm leading-6 whitespace-pre-wrap text-faint transition-opacity duration-200",!t.enabled&&"opacity-55"),children:t.prompt}),n("div",{className:"mt-3 -mb-1 flex items-center gap-1",children:[n(x,{size:"sm",onClick:()=>Q(t),disabled:u,children:[e(Er,{className:"size-3.5"}),u?"正在启动…":"立即运行"]}),n(x,{size:"sm",variant:"ghost",onClick:()=>S(t),children:[e(gt,{className:"size-3.5"}),"编辑"]}),n(x,{size:"sm",variant:"danger-ghost",onClick:()=>X(t),children:[e(xe,{className:"size-3.5"}),"删除"]}),e("div",{className:"flex-1"}),t.lastRun!==null&&n("button",{type:"button",disabled:!l,onClick:()=>l&&O(l.id),className:"rounded-md px-1.5 py-1 text-ui text-faint transition-colors enabled:hover:bg-raised enabled:hover:text-ink",children:["上次运行 ",qi(t.lastRun),l?.archivedAt!=null?" · 已归档":"",!l?" · 会话已删除":""]})]})]})},t.id)})}),C!==void 0&&e(ne,{open:W,onOpenChange:P,automation:C??void 0,projects:w,models:B,timezone:I?.timezone,onSaved:(t)=>{p((r)=>{let l=r.findIndex((u)=>u.id===t.id);if(l>=0){let u=[...r];return u[l]=t,u}return[...r,t].sort((u,g)=>u.created-g.created)}),P(!1)},connection:f},C?.id??"new")]})}var M="custom",K="chat";function ne(d){let{Button:x,Dialog:L,Field:y,Form:_,FormError:F,Input:z,Select:f,Textarea:O}=b(),D=ee(),p=d.automation,[w,H]=a(p?.name??""),[q,J]=a(p?.prompt??""),[I,T]=a(p?.schedule??ji[0]?.cron??"0 9 * * *"),[B,U]=a(()=>!ji.some((c)=>c.cron===I)),[A,V]=a(p?.projectID??K),[k,N]=a(p?.model??""),[C,R]=a(!1),[W,P]=a();async function G(c){c.preventDefault(),R(!0),P(void 0);try{let i=A===K?void 0:A,E={name:w,prompt:q,schedule:I,model:k||void 0},S;if(p)S=await d.connection.request(`/api/automations/${p.id}`,{method:"PATCH",headers:{"content-type":"application/json"},body:JSON.stringify({...E,projectID:i??null})});else S=await d.connection.request("/api/automations",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({...E,projectID:i})});d.onSaved(S)}catch(i){P(i instanceof Error?i.message:"保存失败")}finally{R(!1)}}return e(L,{open:d.open,onOpenChange:d.onOpenChange,title:d.automation?"编辑自动化":"新建自动化",size:"lg",footer:n(m,{children:[e("div",{className:"flex-1 max-sm:hidden"}),e(x,{onClick:()=>d.onOpenChange(!1),children:"取消"}),e(x,{type:"submit",form:D,variant:"primary",disabled:C,children:C?"正在保存…":d.automation?"保存":"创建"})]}),children:n(_,{id:D,onSubmit:G,children:[e(y,{label:"名称",children:(c)=>e(z,{id:c,autoFocus:!p,required:!0,value:w,onChange:(i)=>H(i.target.value),placeholder:"例如:每日提交总结"})}),e(y,{label:"提示词",hint:"没人盯着运行,写清楚要做什么、结果怎么汇报。",children:(c)=>e(O,{id:c,required:!0,value:q,onChange:(i)=>J(i.target.value),rows:5,placeholder:"总结昨天到现在的 git 提交,按模块分组,列出需要我关注的改动。"})}),n("div",{className:"grid gap-x-3 gap-y-4 sm:grid-cols-2",children:[e(y,{label:"时间",children:(c)=>e(f,{id:c,value:B?M:I,onValueChange:(i)=>{if(U(i===M),i!==M)T(i)},groups:[{options:ji.map((i)=>({value:i.cron,label:i.label}))},{options:[{value:M,label:"自定义(cron)"}]}]})}),e(y,{label:"在哪里运行",children:(c)=>e(f,{id:c,value:A,onValueChange:V,groups:[{options:[{value:K,label:"聊天",description:"不绑定目录",icon:e(Kr,{})}]},...d.projects.length?[{label:"项目",options:d.projects.map((i)=>({value:i.id,label:i.name,icon:e(ht,{})}))}]:[]]})})]}),B&&e(y,{label:"cron 表达式",hint:`分 时 日 月 周,例如 30 8 * * 1-5 是工作日 8:30。${d.timezone?`按 ${d.timezone} 时间。`:""}`,children:(c)=>e(z,{id:c,required:!0,value:I,onChange:(i)=>T(i.target.value),spellCheck:!1,className:"font-mono"})}),d.models.length>0&&e(y,{label:"模型",children:(c)=>e(f,{id:c,value:k||"default",onValueChange:(i)=>N(i==="default"?"":i),groups:[{options:[{value:"default",label:"默认模型"},...d.models.map((i)=>({value:i,label:i}))]}]})}),e(F,{children:W})]})})}export{le as AutomationsPage};
Binary file
Binary file
@@ -0,0 +1,89 @@
1
+ import{t,i,Qe,A,q,W,N,d,J}from"./chunk-sawc81kc.js";var M="",O="",D="",E=[],z=new Map,v=t((e)=>q(e,d()),"sanitizeText"),y=t((e)=>{switch(e.type){case"terminal":return{...e,value:v(e.value)};case"nonterminal":return{...e,name:v(e.name)};case"sequence":return{...e,elements:e.elements.map(y)};case"choice":return{...e,alternatives:e.alternatives.map(y)};case"optional":return{...e,element:y(e.element)};case"repetition":return{...e,element:y(e.element),separator:e.separator?y(e.separator):void 0};case"special":return{...e,text:v(e.text)}}},"sanitizeAstNode"),G=t(()=>{M="",O="",D="",E.length=0,z.clear(),N(),i.debug("[Railroad] Database cleared")},"clear"),P=t((e)=>{M=v(e),i.debug("[Railroad] Title set:",e)},"setTitle"),L=t(()=>M,"getTitle"),U=t((e)=>{let a={...e,name:v(e.name),definition:y(e.definition),comment:e.comment?v(e.comment):void 0};if(i.debug("[Railroad] Adding rule:",a.name),z.has(a.name))i.warn(`[Railroad] Rule '${a.name}' is already defined. Overwriting.`);E.push(a),z.set(a.name,a)},"addRule"),j=t(()=>E,"getRules"),K=t((e)=>z.get(e),"getRule"),Q=t((e)=>{O=v(e).replace(/^\s+/g,""),i.debug("[Railroad] Accessibility title set:",e)},"setAccTitle"),Z=t(()=>O,"getAccTitle"),V=t((e)=>{D=v(e).replace(/\n\s+/g,`
2
+ `),i.debug("[Railroad] Accessibility description set:",e)},"setAccDescription"),ee=t(()=>D,"getAccDescription"),te=P,re=L,he={clear:G,setTitle:P,getTitle:L,addRule:U,getRules:j,getRule:K,setAccTitle:Q,getAccTitle:Z,setAccDescription:V,getAccDescription:ee,setDiagramTitle:te,getDiagramTitle:re},T={compactMode:!1,padding:10,verticalSeparation:8,horizontalSeparation:10,arcRadius:10,fontSize:14,fontFamily:"monospace",terminalFill:"#FFFFC0",terminalStroke:"#000000",terminalTextColor:"#000000",nonTerminalFill:"#FFFFFF",nonTerminalStroke:"#000000",nonTerminalTextColor:"#000000",lineColor:"#000000",strokeWidth:2,markerFill:"#000000",commentFill:"#E8E8E8",commentStroke:"#888888",commentTextColor:"#666666",specialFill:"#F0E0FF",specialStroke:"#8800CC",ruleNameColor:"#000066",showMarkers:!0,markerRadius:5},ie=/^#(?:[\da-f]{3,4}|[\da-f]{6}|[\da-f]{8})$|^(?:rgb|rgba|hsl|hsla|hwb|lab|lch|oklab|oklch)\([\d\s%+,./-]+\)$|^[a-z]+$/i,ne=/^[\w "',.-]+$/,ae=new Set(["compactMode","padding","verticalSeparation","horizontalSeparation","arcRadius","fontSize","fontFamily","terminalFill","terminalStroke","terminalTextColor","nonTerminalFill","nonTerminalStroke","nonTerminalTextColor","lineColor","strokeWidth","markerFill","commentFill","commentStroke","commentTextColor","specialFill","specialStroke","ruleNameColor","showMarkers","markerRadius"]),I=t((e)=>{if(!e)return!1;return Object.keys(e).every((a)=>a==="railroad"||ae.has(a))},"isRailroadStyleOptions"),oe=t((e)=>{if(!e)return{};if("railroad"in e&&e.railroad)return e.railroad;return I(e)?e:{}},"extractRailroadOverrides"),le=t((e)=>{if(!e||I(e))return{};let{railroad:a,svgId:l,theme:n,look:r,...o}=e;return o},"extractThemeOverrides"),u=t((e,a)=>{if(typeof e!=="string")return a;let l=e.trim();return ie.test(l)?l:a},"sanitizeColorValue"),X=t((e,a)=>{if(typeof e!=="string")return a;let l=e.trim();return ne.test(l)?l:a},"sanitizeFontFamilyValue"),F=t((e,a)=>{let l=typeof e==="number"?e:typeof e==="string"?Number.parseFloat(e):Number.NaN;return Number.isFinite(l)&&l>=0?l:a},"sanitizeNumberValue"),se=t((e)=>{let a=typeof e==="number"?e:typeof e==="string"?Number.parseFloat(e):Number.NaN;return Number.isFinite(a)&&a>0?a:void 0},"parseThemeFontSize"),de=t((e)=>{let a=X(e.fontFamily,T.fontFamily),l=se(e.fontSize)??T.fontSize;return{...T,fontFamily:a,fontSize:l,terminalFill:u(e.secondBkg??e.secondaryColor,T.terminalFill),terminalStroke:u(e.secondaryBorderColor??e.lineColor,T.terminalStroke),terminalTextColor:u(e.secondaryTextColor??e.textColor,T.terminalTextColor),nonTerminalFill:u(e.mainBkg??e.background,T.nonTerminalFill),nonTerminalStroke:u(e.primaryBorderColor??e.lineColor,T.nonTerminalStroke),nonTerminalTextColor:u(e.primaryTextColor??e.textColor,T.nonTerminalTextColor),lineColor:u(e.lineColor,T.lineColor),markerFill:u(e.lineColor,T.markerFill),commentFill:u(e.labelBackground??e.tertiaryColor,T.commentFill),commentStroke:u(e.tertiaryBorderColor??e.lineColor,T.commentStroke),commentTextColor:u(e.tertiaryTextColor??e.textColor,T.commentTextColor),specialFill:u(e.tertiaryColor??e.secondaryColor,T.specialFill),specialStroke:u(e.tertiaryBorderColor??e.secondaryBorderColor,T.specialStroke),ruleNameColor:u(e.titleColor??e.textColor,T.ruleNameColor)}},"buildThemeDefaults"),_=t((e)=>{let a=A(),l={...Qe(),...a.themeVariables??{},...le(e)},n=de(l),r={...a.railroad??{},...oe(e)};return{compactMode:r.compactMode??n.compactMode,padding:F(r.padding,n.padding),verticalSeparation:F(r.verticalSeparation,n.verticalSeparation),horizontalSeparation:F(r.horizontalSeparation,n.horizontalSeparation),arcRadius:F(r.arcRadius,n.arcRadius),fontSize:F(r.fontSize,n.fontSize),fontFamily:X(r.fontFamily,n.fontFamily),terminalFill:u(r.terminalFill,n.terminalFill),terminalStroke:u(r.terminalStroke,n.terminalStroke),terminalTextColor:u(r.terminalTextColor,n.terminalTextColor),nonTerminalFill:u(r.nonTerminalFill,n.nonTerminalFill),nonTerminalStroke:u(r.nonTerminalStroke,n.nonTerminalStroke),nonTerminalTextColor:u(r.nonTerminalTextColor,n.nonTerminalTextColor),lineColor:u(r.lineColor,n.lineColor),strokeWidth:F(r.strokeWidth,n.strokeWidth),markerFill:u(r.markerFill,n.markerFill),commentFill:u(r.commentFill,n.commentFill),commentStroke:u(r.commentStroke,n.commentStroke),commentTextColor:u(r.commentTextColor,n.commentTextColor),specialFill:u(r.specialFill,n.specialFill),specialStroke:u(r.specialStroke,n.specialStroke),ruleNameColor:u(r.ruleNameColor,n.ruleNameColor),showMarkers:r.showMarkers??n.showMarkers,markerRadius:F(r.markerRadius,n.markerRadius)}},"buildRailroadStyleOptions"),Pn=t((e)=>{let{fontFamily:a,fontSize:l,terminalFill:n,terminalStroke:r,terminalTextColor:o,nonTerminalFill:g,nonTerminalStroke:m,nonTerminalTextColor:s,lineColor:f,strokeWidth:p,markerFill:h,commentFill:C,commentStroke:c,commentTextColor:x,specialFill:R,specialStroke:S,ruleNameColor:k}=_(e);return`
3
+ .railroad-diagram {
4
+ font-family: ${a};
5
+ font-size: ${l}px;
6
+ }
7
+
8
+ .railroad-terminal rect {
9
+ fill: ${n};
10
+ stroke: ${r};
11
+ stroke-width: ${p}px;
12
+ }
13
+
14
+ .railroad-terminal text {
15
+ fill: ${o};
16
+ font-family: ${a};
17
+ font-size: ${l}px;
18
+ text-anchor: middle;
19
+ dominant-baseline: middle;
20
+ }
21
+
22
+ .railroad-nonterminal rect {
23
+ fill: ${g};
24
+ stroke: ${m};
25
+ stroke-width: ${p}px;
26
+ }
27
+
28
+ .railroad-nonterminal text {
29
+ fill: ${s};
30
+ font-family: ${a};
31
+ font-size: ${l}px;
32
+ text-anchor: middle;
33
+ dominant-baseline: middle;
34
+ }
35
+
36
+ .railroad-line {
37
+ stroke: ${f};
38
+ stroke-width: ${p}px;
39
+ fill: none;
40
+ }
41
+
42
+ .railroad-start circle,
43
+ .railroad-end circle {
44
+ fill: ${h};
45
+ }
46
+
47
+ .railroad-comment ellipse {
48
+ fill: ${C};
49
+ stroke: ${c};
50
+ stroke-width: ${p}px;
51
+ }
52
+
53
+ .railroad-comment text {
54
+ fill: ${x};
55
+ font-style: italic;
56
+ font-family: ${a};
57
+ font-size: ${l}px;
58
+ text-anchor: middle;
59
+ dominant-baseline: middle;
60
+ }
61
+
62
+ .railroad-special rect {
63
+ fill: ${R};
64
+ stroke: ${S};
65
+ stroke-width: ${p}px;
66
+ stroke-dasharray: 5,3;
67
+ }
68
+
69
+ .railroad-special text {
70
+ fill: ${s};
71
+ font-family: ${a};
72
+ font-size: ${l}px;
73
+ text-anchor: middle;
74
+ dominant-baseline: middle;
75
+ }
76
+
77
+ .railroad-rule-name {
78
+ font-weight: bold;
79
+ fill: ${k};
80
+ font-family: ${a};
81
+ font-size: ${l}px;
82
+ }
83
+
84
+ .railroad-group {
85
+ /* Grouping container, no specific styles */
86
+ }
87
+ `},"getStyles"),w=class{constructor(){this.d=""}static{t(this,"PathBuilder")}moveTo(e,a){return this.d+=`M ${e} ${a} `,this}lineTo(e,a){return this.d+=`L ${e} ${a} `,this}horizontalTo(e){return this.d+=`H ${e} `,this}verticalTo(e){return this.d+=`V ${e} `,this}arcTo(e,a,l,n,r,o,g){return this.d+=`A ${e} ${a} ${l} ${n?1:0} ${r?1:0} ${o} ${g} `,this}build(){return this.d.trim()}},ce=class{constructor(e,a=_()){this.textCache=new Map,this.svg=e,this.config=a}static{t(this,"RailroadRenderer")}measureText(e){if(this.textCache.has(e))return this.textCache.get(e);let a=this.svg.append("text").attr("font-family",this.config.fontFamily).attr("font-size",this.config.fontSize).text(e),l=a.node().getBBox(),n={width:l.width,height:l.height};return a.remove(),this.textCache.set(e,n),n}renderTerminal(e,a){let l=this.measureText(a),n=l.width+this.config.padding*2,r=l.height+this.config.padding*2,o=e.append("g").attr("class","railroad-terminal");return o.append("rect").attr("x",0).attr("y",0).attr("width",n).attr("height",r).attr("rx",10).attr("ry",10),o.append("text").attr("x",n/2).attr("y",r/2).text(a),{element:o.node(),dimensions:{width:n,height:r,up:r/2,down:r/2}}}renderNonTerminal(e,a){let l=this.measureText(a),n=l.width+this.config.padding*2,r=l.height+this.config.padding*2,o=e.append("g").attr("class","railroad-nonterminal");return o.append("rect").attr("x",0).attr("y",0).attr("width",n).attr("height",r),o.append("text").attr("x",n/2).attr("y",r/2).text(a),{element:o.node(),dimensions:{width:n,height:r,up:r/2,down:r/2}}}renderSequence(e,a){let l=a.map((s)=>this.renderExpression(e,s)),n=0,r=0,o=0;for(let s of l)n+=s.dimensions.width,r=Math.max(r,s.dimensions.up),o=Math.max(o,s.dimensions.down);n+=(l.length-1)*this.config.horizontalSeparation;let g=e.append("g").attr("class","railroad-sequence"),m=0;for(let s=0;s<l.length;s++){let f=l[s],p=r-f.dimensions.up;if(g.node().appendChild(f.element).setAttribute("transform",`translate(${m}, ${p})`),s<l.length-1){let C=m+f.dimensions.width,c=C+this.config.horizontalSeparation,x=r;g.append("path").attr("class","railroad-line").attr("d",new w().moveTo(C,x).lineTo(c,x).build())}m+=f.dimensions.width+this.config.horizontalSeparation}return{element:g.node(),dimensions:{width:n,height:r+o,up:r,down:o}}}renderChoice(e,a){let l=a.map((h)=>this.renderExpression(e,h)),n=0,r=0;for(let h of l)n=Math.max(n,h.dimensions.width),r+=h.dimensions.height;r+=(l.length-1)*this.config.verticalSeparation;let o=this.config.arcRadius,g=o*4,m=n+g,s=e.append("g").attr("class","railroad-choice"),f=0,p=r/2;for(let h of l){let C=f,c=C+h.dimensions.up,x=o*2+(n-h.dimensions.width)/2;s.node().appendChild(h.element).setAttribute("transform",`translate(${x}, ${C})`);let S=new w,k=c>p;if(c===p)S.moveTo(0,p).lineTo(x,c);else S.moveTo(0,p).arcTo(o,o,0,!1,k,o,p+(k?o:-o)).lineTo(o,c-(k?o:-o)).arcTo(o,o,0,!1,!k,o*2,c).lineTo(x,c);s.append("path").attr("class","railroad-line").attr("d",S.build());let b=new w,B=x+h.dimensions.width,H=m-o*2;if(c===p)b.moveTo(B,c).lineTo(m,p);else b.moveTo(B,c).lineTo(H,c).arcTo(o,o,0,!1,!k,m-o,c+(k?-o:o)).lineTo(m-o,p+(k?o:-o)).arcTo(o,o,0,!1,k,m,p);s.append("path").attr("class","railroad-line").attr("d",b.build()),f+=h.dimensions.height+this.config.verticalSeparation}return{element:s.node(),dimensions:{width:m,height:r,up:p,down:r-p}}}renderOptional(e,a){let l=this.renderExpression(e,a),n=this.config.arcRadius,r=n*2,o=l.dimensions.width+n*4,g=l.dimensions.height+r,m=e.append("g").attr("class","railroad-optional"),s=n*2,f=r;m.node().appendChild(l.element).setAttribute("transform",`translate(${s}, ${f})`);let h=f+l.dimensions.up,C=new w().moveTo(0,h).lineTo(n*2,h);m.append("path").attr("class","railroad-line").attr("d",C.build());let c=new w().moveTo(s+l.dimensions.width,h).lineTo(o,h);m.append("path").attr("class","railroad-line").attr("d",c.build());let x=new w().moveTo(0,h).arcTo(n,n,0,!1,!1,n,h-n).lineTo(n,n).arcTo(n,n,0,!1,!0,n*2,0).lineTo(o-n*2,0).arcTo(n,n,0,!1,!0,o-n,n).lineTo(o-n,h-n).arcTo(n,n,0,!1,!1,o,h);return m.append("path").attr("class","railroad-line").attr("d",x.build()),{element:m.node(),dimensions:{width:o,height:g,up:h,down:g-h}}}renderRepetition(e,a,l){let n=this.renderExpression(e,a),r=this.config.arcRadius,o=r*2,g=n.dimensions.width+r*4,m=l===0,s=n.dimensions.height+o+(m?o:0),f=e.append("g").attr("class","railroad-repetition"),p=r*2,h=m?o:0;f.node().appendChild(n.element).setAttribute("transform",`translate(${p}, ${h})`);let c=h+n.dimensions.up;f.append("path").attr("class","railroad-line").attr("d",new w().moveTo(0,c).lineTo(r*2,c).build()),f.append("path").attr("class","railroad-line").attr("d",new w().moveTo(p+n.dimensions.width,c).lineTo(g,c).build());let x=h+n.dimensions.height+r,R=new w().moveTo(p+n.dimensions.width,c).arcTo(r,r,0,!1,!0,p+n.dimensions.width+r,c+r).lineTo(p+n.dimensions.width+r,x).arcTo(r,r,0,!1,!0,p+n.dimensions.width,x+r).lineTo(r*2,x+r).arcTo(r,r,0,!1,!0,r,x).lineTo(r,c+r).arcTo(r,r,0,!1,!0,r*2,c);if(f.append("path").attr("class","railroad-line").attr("d",R.build()),m){let S=new w().moveTo(0,c).arcTo(r,r,0,!1,!1,r,c-r).lineTo(r,r).arcTo(r,r,0,!1,!0,r*2,0).lineTo(g-r*2,0).arcTo(r,r,0,!1,!0,g-r,r).lineTo(g-r,c-r).arcTo(r,r,0,!1,!1,g,c);f.append("path").attr("class","railroad-line").attr("d",S.build())}return{element:f.node(),dimensions:{width:g,height:s,up:c,down:s-c}}}renderSpecial(e,a){let l=this.measureText("? "+a+" ?"),n=l.width+this.config.padding*2,r=l.height+this.config.padding*2,o=e.append("g").attr("class","railroad-special");return o.append("rect").attr("x",0).attr("y",0).attr("width",n).attr("height",r),o.append("text").attr("x",n/2).attr("y",r/2).text("? "+a+" ?"),{element:o.node(),dimensions:{width:n,height:r,up:r/2,down:r/2}}}renderExpression(e,a){switch(a.type){case"terminal":return this.renderTerminal(e,a.value);case"nonterminal":return this.renderNonTerminal(e,a.name);case"sequence":return this.renderSequence(e,a.elements);case"choice":return this.renderChoice(e,a.alternatives);case"optional":return this.renderOptional(e,a.element);case"repetition":return this.renderRepetition(e,a.element,a.min);case"special":return this.renderSpecial(e,a.text);default:throw Error(`Unknown node type: ${a.type}`)}}renderRule(e,a){let l=this.svg.append("g").attr("class","railroad-rule").attr("transform",`translate(0, ${a})`),n=e.name+" =",r=this.measureText(n).width+20,o=r+20,g=l.append("g"),m=this.renderExpression(g,e.definition),s=Math.max(20,m.dimensions.up),f=s-m.dimensions.up;return g.attr("transform",`translate(${o}, ${f})`),l.append("g").attr("class","railroad-rule-name-group").append("text").attr("class","railroad-rule-name").attr("x",0).attr("y",s).text(n),l.append("g").attr("class","railroad-start").append("circle").attr("cx",r).attr("cy",s).attr("r",this.config.markerRadius),l.append("g").attr("class","railroad-end").append("circle").attr("cx",o+m.dimensions.width+10).attr("cy",s).attr("r",this.config.markerRadius),l.append("path").attr("class","railroad-line").attr("d",new w().moveTo(r+this.config.markerRadius,s).lineTo(o,s).build()),l.append("path").attr("class","railroad-line").attr("d",new w().moveTo(o+m.dimensions.width,s).lineTo(o+m.dimensions.width+10-this.config.markerRadius,s).build()),{height:Math.max(40,f+m.dimensions.height+this.config.padding*2),width:o+m.dimensions.width+10+this.config.markerRadius}}renderDiagram(e){let a=this.config.padding,l=0;for(let n of e){let r=this.renderRule(n,a);a+=r.height+this.config.verticalSeparation,l=Math.max(l,r.width)}return{width:l+this.config.padding*2,height:a+this.config.padding}}},Y=t((e,a,l)=>{W(e,a.height,a.width,l),e.attr("viewBox",`0 0 ${a.width} ${a.height}`)},"configureRailroadSvgSize"),me=t((e,a,l)=>{i.debug(`[Railroad] Rendering diagram
88
+ `+e);try{let n=J(a);n.attr("class","railroad-diagram");let o=A().railroad?.useMaxWidth??!0,g=he.getRules();if(i.debug(`[Railroad] Rendering ${g.length} rules`),g.length===0){i.warn("[Railroad] No rules to render"),Y(n,{height:100,width:200},o);return}let s=new ce(n,_()).renderDiagram(g);Y(n,s,o),i.debug("[Railroad] Render complete")}catch(n){throw i.error("[Railroad] Render error:",n),n}},"draw"),In={draw:me};
89
+ export{he,Pn,In};
Binary file
Binary file
@@ -0,0 +1 @@
1
+ import{Bs}from"./chunk-4ab1dv3g.js";export{Bs as createPieServices};
Binary file
Binary file