@bkm016/basalt 0.1.28 → 0.1.29

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 (846) hide show
  1. package/chunk-01fz0kzx.js +2 -0
  2. package/chunk-06k5mcmy.js +4018 -0
  3. package/chunk-14pg1g7b.js +2 -0
  4. package/chunk-1cvzbvsq.js +2 -0
  5. package/chunk-1pgj58dw.js +20 -0
  6. package/chunk-200cn72d.js +16 -0
  7. package/chunk-2nd8hvf3.js +31 -0
  8. package/chunk-39wsmkd7.js +4 -0
  9. package/chunk-54qc1d5t.js +2 -0
  10. package/chunk-59enxka6.js +50 -0
  11. package/chunk-5fs3331q.js +3 -0
  12. package/chunk-674kjaqz.js +2 -0
  13. package/chunk-6pqsx156.js +12 -0
  14. package/chunk-6rw1ex78.js +2 -0
  15. package/chunk-6vz0znf6.js +8 -0
  16. package/chunk-73z1fv3d.js +9 -0
  17. package/chunk-7dnq7g8f.js +3 -0
  18. package/chunk-7emc0sy7.js +11 -0
  19. package/chunk-7nsrfrmx.js +2 -0
  20. package/chunk-8hxsap9d.js +5 -0
  21. package/chunk-8kmtns4v.js +5 -0
  22. package/chunk-9dy56agy.js +51 -0
  23. package/chunk-9mt2k1a7.js +5 -0
  24. package/chunk-9sq7yxh7.js +12 -0
  25. package/chunk-9x1yprjh.js +2 -0
  26. package/chunk-a5k24aj6.js +3 -0
  27. package/chunk-ades3qy7.js +10 -0
  28. package/chunk-ag642nqs.js +8 -0
  29. package/chunk-av3zmcd8.js +3 -0
  30. package/chunk-b1hdfsj4.js +25 -0
  31. package/chunk-b5448t3j.js +2 -0
  32. package/chunk-b6rvzkxg.js +3 -0
  33. package/chunk-b8acka7e.js +2 -0
  34. package/chunk-bh680te4.js +2 -0
  35. package/chunk-cb4rvanv.js +2 -0
  36. package/chunk-d6hcvbkh.js +3 -0
  37. package/chunk-dqxks09b.js +3 -0
  38. package/chunk-eg161ep9.js +3 -0
  39. package/chunk-exjytvzn.js +2 -0
  40. package/chunk-f6kg68bj.js +3 -0
  41. package/chunk-fcxdq1dy.js +7 -0
  42. package/chunk-fkjjadt4.js +3 -0
  43. package/chunk-fr1zvytp.js +7 -0
  44. package/chunk-fx3cc8nr.js +3 -0
  45. package/chunk-hvxc1wyv.js +3 -0
  46. package/chunk-j24fq8ss.js +2 -0
  47. package/chunk-j55tyjct.js +2 -0
  48. package/chunk-jn0dhvkp.js +2 -0
  49. package/chunk-k9dw37w2.js +3 -0
  50. package/chunk-m6bm0739.js +2 -0
  51. package/chunk-mkfdzt82.js +2 -0
  52. package/chunk-nbm1tqvg.js +3 -0
  53. package/chunk-p5ga5as0.js +25 -0
  54. package/chunk-pmefr1ak.js +490 -0
  55. package/chunk-r49sxmnc.js +3 -0
  56. package/chunk-rf6t7zeb.js +286 -0
  57. package/chunk-s0ne3yb9.js +2 -0
  58. package/chunk-s8ybq82n.js +5 -0
  59. package/chunk-spv39wem.js +7 -0
  60. package/chunk-stgqqm7m.js +59 -0
  61. package/chunk-sykaz5bf.js +18 -0
  62. package/chunk-sz0jywpb.js +39 -0
  63. package/chunk-vcngwaee.js +3 -0
  64. package/chunk-vpvznxf4.js +3 -0
  65. package/chunk-vzh6e5f2.js +2 -0
  66. package/chunk-wkvrtjtc.js +2 -0
  67. package/chunk-wzd9b2qk.js +2 -0
  68. package/chunk-x1cva1gc.js +2 -0
  69. package/chunk-x83jcg3x.js +3 -0
  70. package/chunk-xdyee71m.js +10 -0
  71. package/chunk-xdygdssk.js +3 -0
  72. package/chunk-xjcg6cxc.js +3 -0
  73. package/chunk-xran6f0c.js +2 -0
  74. package/chunk-ymn1s2xs.js +3 -0
  75. package/chunk-ysqx0ye8.js +2 -0
  76. package/chunk-z58jafcm.js +3 -0
  77. package/chunk-zf1c6rj7.js +63 -0
  78. package/chunk-zgtahh10.js +44 -0
  79. package/compiled.js +11 -11
  80. package/package.json +1 -1
  81. package/ui-test-worker.js +79 -77
  82. package/web/chunk-0nt1mz09.js +1 -0
  83. package/web/chunk-0nt1mz09.js.br +0 -0
  84. package/web/chunk-0nt1mz09.js.gz +0 -0
  85. package/web/chunk-0yye7ex1.js +1 -0
  86. package/web/chunk-0yye7ex1.js.br +0 -0
  87. package/web/chunk-0yye7ex1.js.gz +0 -0
  88. package/web/chunk-1pffd2va.js +2 -0
  89. package/web/chunk-1pffd2va.js.br +0 -0
  90. package/web/chunk-1pffd2va.js.gz +0 -0
  91. package/web/chunk-368znnfs.js +1 -0
  92. package/web/chunk-368znnfs.js.br +0 -0
  93. package/web/chunk-368znnfs.js.gz +0 -0
  94. package/web/chunk-3tx9tqfb.js +291 -0
  95. package/web/chunk-3tx9tqfb.js.br +0 -0
  96. package/web/chunk-3tx9tqfb.js.gz +0 -0
  97. package/web/chunk-46ht4dh6.js +24 -0
  98. package/web/chunk-46ht4dh6.js.br +0 -0
  99. package/web/chunk-46ht4dh6.js.gz +0 -0
  100. package/web/chunk-4c418rk9.js +1 -0
  101. package/web/chunk-4c418rk9.js.br +2 -0
  102. package/web/chunk-4c418rk9.js.gz +0 -0
  103. package/web/chunk-4p0sm8e7.js +7 -0
  104. package/web/chunk-4p0sm8e7.js.br +0 -0
  105. package/web/chunk-4p0sm8e7.js.gz +0 -0
  106. package/web/chunk-4zam960g.js +1 -0
  107. package/web/chunk-4zam960g.js.br +0 -0
  108. package/web/chunk-4zam960g.js.gz +0 -0
  109. package/web/chunk-5h63t21g.js +1 -0
  110. package/web/chunk-5h63t21g.js.br +0 -0
  111. package/web/chunk-5h63t21g.js.gz +0 -0
  112. package/web/chunk-5h7xm5mn.js +1 -0
  113. package/web/chunk-5h7xm5mn.js.br +0 -0
  114. package/web/chunk-5h7xm5mn.js.gz +0 -0
  115. package/web/chunk-6crex674.js +89 -0
  116. package/web/chunk-6crex674.js.br +0 -0
  117. package/web/chunk-6crex674.js.gz +0 -0
  118. package/web/chunk-6v031vc6.js +21 -0
  119. package/web/chunk-6v031vc6.js.br +0 -0
  120. package/web/chunk-6v031vc6.js.gz +0 -0
  121. package/web/chunk-782gfmtk.js +38 -0
  122. package/web/chunk-782gfmtk.js.br +0 -0
  123. package/web/chunk-782gfmtk.js.gz +0 -0
  124. package/web/chunk-7a6szg06.js +2 -0
  125. package/web/chunk-7a6szg06.js.br +0 -0
  126. package/web/chunk-7a6szg06.js.gz +0 -0
  127. package/web/chunk-7dvbxn34.js +4 -0
  128. package/web/chunk-7dvbxn34.js.br +0 -0
  129. package/web/chunk-7dvbxn34.js.gz +0 -0
  130. package/web/chunk-7g795nba.js +1 -0
  131. package/web/chunk-7g795nba.js.br +2 -0
  132. package/web/chunk-7g795nba.js.gz +0 -0
  133. package/web/chunk-8fymhvne.js +1 -0
  134. package/web/chunk-8fymhvne.js.br +0 -0
  135. package/web/chunk-8fymhvne.js.gz +0 -0
  136. package/web/chunk-8kcp1h63.js +1 -0
  137. package/web/chunk-8kcp1h63.js.br +0 -0
  138. package/web/chunk-8kcp1h63.js.gz +0 -0
  139. package/web/chunk-8vtr60yn.js +2 -0
  140. package/web/chunk-8vtr60yn.js.br +0 -0
  141. package/web/chunk-8vtr60yn.js.gz +0 -0
  142. package/web/chunk-8y14zggg.js +2 -0
  143. package/web/chunk-8y14zggg.js.br +0 -0
  144. package/web/chunk-8y14zggg.js.gz +0 -0
  145. package/web/chunk-8zg840m3.js +1 -0
  146. package/web/chunk-8zg840m3.js.br +0 -0
  147. package/web/chunk-8zg840m3.js.gz +0 -0
  148. package/web/chunk-940sc4ny.js +7 -0
  149. package/web/chunk-940sc4ny.js.br +0 -0
  150. package/web/chunk-940sc4ny.js.gz +0 -0
  151. package/web/chunk-94f4sz0m.js +1 -0
  152. package/web/chunk-94f4sz0m.js.br +0 -0
  153. package/web/chunk-94f4sz0m.js.gz +0 -0
  154. package/web/chunk-94jy9s3n.js +55 -0
  155. package/web/chunk-94jy9s3n.js.br +0 -0
  156. package/web/chunk-94jy9s3n.js.gz +0 -0
  157. package/web/chunk-97qfkg6n.js +30 -0
  158. package/web/chunk-97qfkg6n.js.br +0 -0
  159. package/web/chunk-97qfkg6n.js.gz +0 -0
  160. package/web/chunk-99mgkmjb.js +62 -0
  161. package/web/chunk-99mgkmjb.js.br +0 -0
  162. package/web/chunk-99mgkmjb.js.gz +0 -0
  163. package/web/chunk-9afn27bs.js +1 -0
  164. package/web/chunk-9afn27bs.js.br +2 -0
  165. package/web/chunk-9afn27bs.js.gz +0 -0
  166. package/web/chunk-aw4h94zp.js +1 -0
  167. package/web/chunk-aw4h94zp.js.br +0 -0
  168. package/web/chunk-aw4h94zp.js.gz +0 -0
  169. package/web/chunk-azdhgj11.js +40 -0
  170. package/web/chunk-azdhgj11.js.br +0 -0
  171. package/web/chunk-azdhgj11.js.gz +0 -0
  172. package/web/chunk-batey85v.js +2 -0
  173. package/web/chunk-batey85v.js.br +0 -0
  174. package/web/chunk-batey85v.js.gz +0 -0
  175. package/web/chunk-brbxfap5.js +99 -0
  176. package/web/chunk-brbxfap5.js.br +0 -0
  177. package/web/chunk-brbxfap5.js.gz +0 -0
  178. package/web/chunk-bxc8a663.js +2 -0
  179. package/web/chunk-bxc8a663.js.br +0 -0
  180. package/web/chunk-bxc8a663.js.gz +0 -0
  181. package/web/chunk-c2t7zyge.js +169 -0
  182. package/web/chunk-c2t7zyge.js.br +0 -0
  183. package/web/chunk-c2t7zyge.js.gz +0 -0
  184. package/web/chunk-c5bfa3rp.js +1 -0
  185. package/web/chunk-c5bfa3rp.js.br +0 -0
  186. package/web/chunk-c5bfa3rp.js.gz +0 -0
  187. package/web/chunk-c86a6am5.js +2 -0
  188. package/web/chunk-c86a6am5.js.br +3 -0
  189. package/web/chunk-c86a6am5.js.gz +0 -0
  190. package/web/chunk-dgtp38mj.js +1 -0
  191. package/web/chunk-dgtp38mj.js.br +0 -0
  192. package/web/chunk-dgtp38mj.js.gz +0 -0
  193. package/web/chunk-e4h4dg4y.js +303 -0
  194. package/web/chunk-e4h4dg4y.js.br +0 -0
  195. package/web/chunk-e4h4dg4y.js.gz +0 -0
  196. package/web/chunk-e5f8e2ta.js +1 -0
  197. package/web/chunk-e5f8e2ta.js.br +0 -0
  198. package/web/chunk-e5f8e2ta.js.gz +0 -0
  199. package/web/chunk-e7rwnv7e.js +1 -0
  200. package/web/chunk-e7rwnv7e.js.br +0 -0
  201. package/web/chunk-e7rwnv7e.js.gz +0 -0
  202. package/web/chunk-ef9tqrz4.js +324 -0
  203. package/web/chunk-ef9tqrz4.js.br +0 -0
  204. package/web/chunk-ef9tqrz4.js.gz +0 -0
  205. package/web/chunk-ekcnhcm0.js +1 -0
  206. package/web/chunk-ekcnhcm0.js.br +0 -0
  207. package/web/chunk-ekcnhcm0.js.gz +0 -0
  208. package/web/chunk-ekkdhece.js +41 -0
  209. package/web/chunk-ekkdhece.js.br +0 -0
  210. package/web/chunk-ekkdhece.js.gz +0 -0
  211. package/web/chunk-enbqe508.js +36 -0
  212. package/web/chunk-enbqe508.js.br +0 -0
  213. package/web/chunk-enbqe508.js.gz +0 -0
  214. package/web/chunk-ev517x0c.js +1 -0
  215. package/web/chunk-ev517x0c.js.br +0 -0
  216. package/web/chunk-ev517x0c.js.gz +0 -0
  217. package/web/chunk-ex47jeev.js +1 -0
  218. package/web/chunk-ex47jeev.js.br +0 -0
  219. package/web/chunk-ex47jeev.js.gz +0 -0
  220. package/web/chunk-ft9p7cr8.js +8 -0
  221. package/web/chunk-ft9p7cr8.js.br +0 -0
  222. package/web/chunk-ft9p7cr8.js.gz +0 -0
  223. package/web/chunk-fybmc8p1.js +1 -0
  224. package/web/chunk-fybmc8p1.js.br +0 -0
  225. package/web/chunk-fybmc8p1.js.gz +0 -0
  226. package/web/chunk-g6e50kx0.js +3 -0
  227. package/web/chunk-g6e50kx0.js.br +0 -0
  228. package/web/chunk-g6e50kx0.js.gz +0 -0
  229. package/web/chunk-g6grehr5.css +1 -0
  230. package/web/chunk-g6grehr5.css.br +0 -0
  231. package/web/chunk-g6grehr5.css.gz +0 -0
  232. package/web/chunk-gbzfq3rg.js +332 -0
  233. package/web/chunk-gbzfq3rg.js.br +0 -0
  234. package/web/chunk-gbzfq3rg.js.gz +0 -0
  235. package/web/chunk-gsg8yq3m.js +1 -0
  236. package/web/chunk-gsg8yq3m.js.br +0 -0
  237. package/web/chunk-gsg8yq3m.js.gz +0 -0
  238. package/web/chunk-hgcgbxns.js +1 -0
  239. package/web/chunk-hgcgbxns.js.br +0 -0
  240. package/web/chunk-hgcgbxns.js.gz +0 -0
  241. package/web/chunk-hh8ck7sy.js +2 -0
  242. package/web/chunk-hh8ck7sy.js.br +0 -0
  243. package/web/chunk-hh8ck7sy.js.gz +0 -0
  244. package/web/chunk-hj18pw9f.js +2 -0
  245. package/web/chunk-hj18pw9f.js.br +0 -0
  246. package/web/chunk-hj18pw9f.js.gz +0 -0
  247. package/web/chunk-hk4jd2qq.js +24 -0
  248. package/web/chunk-hk4jd2qq.js.br +0 -0
  249. package/web/chunk-hk4jd2qq.js.gz +0 -0
  250. package/web/chunk-hrnx1576.js +4 -0
  251. package/web/chunk-hrnx1576.js.br +0 -0
  252. package/web/chunk-hrnx1576.js.gz +0 -0
  253. package/web/chunk-j0ns5dyq.js +120 -0
  254. package/web/chunk-j0ns5dyq.js.br +0 -0
  255. package/web/chunk-j0ns5dyq.js.gz +0 -0
  256. package/web/chunk-j21a7pd1.js +1 -0
  257. package/web/chunk-j21a7pd1.js.br +0 -0
  258. package/web/chunk-j21a7pd1.js.gz +0 -0
  259. package/web/chunk-jbejy8k3.js +1139 -0
  260. package/web/chunk-jbejy8k3.js.br +0 -0
  261. package/web/chunk-jbejy8k3.js.gz +0 -0
  262. package/web/chunk-jeq99z4t.js +70 -0
  263. package/web/chunk-jeq99z4t.js.br +0 -0
  264. package/web/chunk-jeq99z4t.js.gz +0 -0
  265. package/web/chunk-jqq07zta.js +1 -0
  266. package/web/chunk-jqq07zta.js.br +0 -0
  267. package/web/chunk-jqq07zta.js.gz +0 -0
  268. package/web/chunk-k6m37v6k.js +1 -0
  269. package/web/chunk-k6m37v6k.js.br +0 -0
  270. package/web/chunk-k6m37v6k.js.gz +0 -0
  271. package/web/chunk-kajk2w5j.js +217 -0
  272. package/web/chunk-kajk2w5j.js.br +0 -0
  273. package/web/chunk-kajk2w5j.js.gz +0 -0
  274. package/web/chunk-kcrypnnf.js +1 -0
  275. package/web/chunk-kcrypnnf.js.br +0 -0
  276. package/web/chunk-kcrypnnf.js.gz +0 -0
  277. package/web/chunk-kyksv8an.js +1 -0
  278. package/web/chunk-kyksv8an.js.br +2 -0
  279. package/web/chunk-kyksv8an.js.gz +0 -0
  280. package/web/chunk-mkhcq6z6.js +1 -0
  281. package/web/chunk-mkhcq6z6.js.br +0 -0
  282. package/web/chunk-mkhcq6z6.js.gz +0 -0
  283. package/web/chunk-mytypet0.js +2 -0
  284. package/web/chunk-mytypet0.js.br +0 -0
  285. package/web/chunk-mytypet0.js.gz +0 -0
  286. package/web/chunk-mzb086jr.js +1 -0
  287. package/web/chunk-mzb086jr.js.br +0 -0
  288. package/web/chunk-mzb086jr.js.gz +0 -0
  289. package/web/chunk-mzevfdmp.js +1 -0
  290. package/web/chunk-mzevfdmp.js.br +0 -0
  291. package/web/chunk-mzevfdmp.js.gz +0 -0
  292. package/web/chunk-n7c5sndg.js +1 -0
  293. package/web/chunk-n7c5sndg.js.br +0 -0
  294. package/web/chunk-n7c5sndg.js.gz +0 -0
  295. package/web/chunk-ned200k0.js +84 -0
  296. package/web/chunk-ned200k0.js.br +0 -0
  297. package/web/chunk-ned200k0.js.gz +0 -0
  298. package/web/chunk-ngcd5a3c.js +1 -0
  299. package/web/chunk-ngcd5a3c.js.br +0 -0
  300. package/web/chunk-ngcd5a3c.js.gz +0 -0
  301. package/web/chunk-nx14h1a6.js +1 -0
  302. package/web/chunk-nx14h1a6.js.br +0 -0
  303. package/web/chunk-nx14h1a6.js.gz +0 -0
  304. package/web/chunk-p3fv7nbz.js +1 -0
  305. package/web/chunk-p3fv7nbz.js.br +0 -0
  306. package/web/chunk-p3fv7nbz.js.gz +0 -0
  307. package/web/chunk-pktgtyf6.js +1 -0
  308. package/web/chunk-pktgtyf6.js.br +0 -0
  309. package/web/chunk-pktgtyf6.js.gz +0 -0
  310. package/web/chunk-pm504vps.js +89 -0
  311. package/web/chunk-pm504vps.js.br +0 -0
  312. package/web/chunk-pm504vps.js.gz +0 -0
  313. package/web/chunk-pnvkphs0.js +12 -0
  314. package/web/chunk-pnvkphs0.js.br +0 -0
  315. package/web/chunk-pnvkphs0.js.gz +0 -0
  316. package/web/chunk-ptvshaa0.js +2 -0
  317. package/web/chunk-ptvshaa0.js.br +0 -0
  318. package/web/chunk-ptvshaa0.js.gz +0 -0
  319. package/web/chunk-py4737sc.js +39 -0
  320. package/web/chunk-py4737sc.js.br +0 -0
  321. package/web/chunk-py4737sc.js.gz +0 -0
  322. package/web/chunk-pz5wcbdv.js +139 -0
  323. package/web/chunk-pz5wcbdv.js.br +0 -0
  324. package/web/chunk-pz5wcbdv.js.gz +0 -0
  325. package/web/chunk-q467b529.js +1 -0
  326. package/web/chunk-q467b529.js.br +0 -0
  327. package/web/chunk-q467b529.js.gz +0 -0
  328. package/web/chunk-qbvbfpx8.js +1 -0
  329. package/web/chunk-qbvbfpx8.js.br +0 -0
  330. package/web/chunk-qbvbfpx8.js.gz +0 -0
  331. package/web/chunk-qgfc4ptt.js +7 -0
  332. package/web/chunk-qgfc4ptt.js.br +0 -0
  333. package/web/chunk-qgfc4ptt.js.gz +0 -0
  334. package/web/chunk-qmmss130.js +2 -0
  335. package/web/chunk-qmmss130.js.br +0 -0
  336. package/web/chunk-qmmss130.js.gz +0 -0
  337. package/web/chunk-qqrzr444.js +2 -0
  338. package/web/chunk-qqrzr444.js.br +0 -0
  339. package/web/chunk-qqrzr444.js.gz +0 -0
  340. package/web/chunk-r2fjprkk.js +1 -0
  341. package/web/chunk-r2fjprkk.js.br +0 -0
  342. package/web/chunk-r2fjprkk.js.gz +0 -0
  343. package/web/chunk-rcn21n5e.js +214 -0
  344. package/web/chunk-rcn21n5e.js.br +0 -0
  345. package/web/chunk-rcn21n5e.js.gz +0 -0
  346. package/web/chunk-rpnw9xwe.js +1 -0
  347. package/web/chunk-rpnw9xwe.js.br +0 -0
  348. package/web/chunk-rpnw9xwe.js.gz +0 -0
  349. package/web/chunk-rv5h4d8w.js +1 -0
  350. package/web/chunk-rv5h4d8w.js.br +0 -0
  351. package/web/chunk-rv5h4d8w.js.gz +0 -0
  352. package/web/chunk-s8e8gzvn.js +16 -0
  353. package/web/chunk-s8e8gzvn.js.br +0 -0
  354. package/web/chunk-s8e8gzvn.js.gz +0 -0
  355. package/web/chunk-sa57mndb.js +1 -0
  356. package/web/chunk-sa57mndb.js.br +0 -0
  357. package/web/chunk-sa57mndb.js.gz +0 -0
  358. package/web/chunk-sc90h9bd.js +2 -0
  359. package/web/chunk-sc90h9bd.js.br +0 -0
  360. package/web/chunk-sc90h9bd.js.gz +0 -0
  361. package/web/chunk-t44qa4yt.js +200 -0
  362. package/web/chunk-t44qa4yt.js.br +0 -0
  363. package/web/chunk-t44qa4yt.js.gz +0 -0
  364. package/web/chunk-t8b8cdak.js +2 -0
  365. package/web/chunk-t8b8cdak.js.br +0 -0
  366. package/web/chunk-t8b8cdak.js.gz +0 -0
  367. package/web/chunk-t9cgbcf2.js +1 -0
  368. package/web/chunk-t9cgbcf2.js.br +0 -0
  369. package/web/chunk-t9cgbcf2.js.gz +0 -0
  370. package/web/chunk-tk8kf0bf.js +2 -0
  371. package/web/chunk-tk8kf0bf.js.br +0 -0
  372. package/web/chunk-tk8kf0bf.js.gz +0 -0
  373. package/web/chunk-tt3v857c.js +106 -0
  374. package/web/chunk-tt3v857c.js.br +0 -0
  375. package/web/chunk-tt3v857c.js.gz +0 -0
  376. package/web/chunk-vjnmqaam.js +2 -0
  377. package/web/chunk-vjnmqaam.js.br +0 -0
  378. package/web/chunk-vjnmqaam.js.gz +0 -0
  379. package/web/chunk-vp5qf59s.js +1 -0
  380. package/web/chunk-vp5qf59s.js.br +0 -0
  381. package/web/chunk-vp5qf59s.js.gz +0 -0
  382. package/web/chunk-wrax5wt5.js +292 -0
  383. package/web/chunk-wrax5wt5.js.br +0 -0
  384. package/web/chunk-wrax5wt5.js.gz +0 -0
  385. package/web/chunk-xk8637wb.js +1 -0
  386. package/web/chunk-xk8637wb.js.br +0 -0
  387. package/web/chunk-xk8637wb.js.gz +0 -0
  388. package/web/chunk-yarejzzs.js +142 -0
  389. package/web/chunk-yarejzzs.js.br +0 -0
  390. package/web/chunk-yarejzzs.js.gz +0 -0
  391. package/web/chunk-yg6ys554.js +1 -0
  392. package/web/chunk-yg6ys554.js.br +0 -0
  393. package/web/chunk-yg6ys554.js.gz +0 -0
  394. package/web/chunk-yq6xkb5w.js +370 -0
  395. package/web/chunk-yq6xkb5w.js.br +0 -0
  396. package/web/chunk-yq6xkb5w.js.gz +0 -0
  397. package/web/chunk-yw98mr7e.js +2 -0
  398. package/web/chunk-yw98mr7e.js.br +0 -0
  399. package/web/chunk-yw98mr7e.js.gz +0 -0
  400. package/web/chunk-z07kf12w.js +78 -0
  401. package/web/chunk-z07kf12w.js.br +0 -0
  402. package/web/chunk-z07kf12w.js.gz +0 -0
  403. package/web/chunk-z5sk390b.js +2 -0
  404. package/web/chunk-z5sk390b.js.br +0 -0
  405. package/web/chunk-z5sk390b.js.gz +0 -0
  406. package/web/chunk-zh2szkjy.js +140 -0
  407. package/web/chunk-zh2szkjy.js.br +0 -0
  408. package/web/chunk-zh2szkjy.js.gz +0 -0
  409. package/web/chunk-zrmm67mx.js +34 -0
  410. package/web/chunk-zrmm67mx.js.br +0 -0
  411. package/web/chunk-zrmm67mx.js.gz +0 -0
  412. package/web/chunk-zyfr25n1.js +98 -0
  413. package/web/chunk-zyfr25n1.js.br +0 -0
  414. package/web/chunk-zyfr25n1.js.gz +0 -0
  415. package/web/chunk-zykkmwba.js +2 -0
  416. package/web/chunk-zykkmwba.js.br +0 -0
  417. package/web/chunk-zykkmwba.js.gz +0 -0
  418. package/web/chunk-zzs4h31m.js +2 -0
  419. package/web/chunk-zzs4h31m.js.br +0 -0
  420. package/web/chunk-zzs4h31m.js.gz +0 -0
  421. package/web/index.html +1 -1
  422. package/web/index.html.br +0 -0
  423. package/web/index.html.gz +0 -0
  424. package/worker.js +1 -1
  425. package/chunk-00jhevnt.js +0 -3
  426. package/chunk-04tx0etc.js +0 -2
  427. package/chunk-0r86p29p.js +0 -7
  428. package/chunk-10x1zefx.js +0 -25
  429. package/chunk-1amcz1cz.js +0 -10
  430. package/chunk-1pfdps04.js +0 -2
  431. package/chunk-206g40v9.js +0 -59
  432. package/chunk-2364s958.js +0 -7
  433. package/chunk-3fv2qcpg.js +0 -12
  434. package/chunk-3zz4a5tn.js +0 -31
  435. package/chunk-45wfmdts.js +0 -44
  436. package/chunk-4hkwjw05.js +0 -2
  437. package/chunk-4n4wn5cj.js +0 -4014
  438. package/chunk-4pq7ycp2.js +0 -5
  439. package/chunk-5e0qfdgx.js +0 -5
  440. package/chunk-78yngmvf.js +0 -51
  441. package/chunk-7hpf9qq2.js +0 -3
  442. package/chunk-82dkdvs9.js +0 -2
  443. package/chunk-8913dkey.js +0 -3
  444. package/chunk-8g1sbmwf.js +0 -3
  445. package/chunk-8hfch7d0.js +0 -2
  446. package/chunk-90arpvgz.js +0 -2
  447. package/chunk-912knnfg.js +0 -11
  448. package/chunk-97bazdk3.js +0 -20
  449. package/chunk-9akexjfn.js +0 -2
  450. package/chunk-9dgmbwcc.js +0 -2
  451. package/chunk-a454ntda.js +0 -50
  452. package/chunk-acd2cwza.js +0 -3
  453. package/chunk-ach16jbw.js +0 -2
  454. package/chunk-ax823t5v.js +0 -3
  455. package/chunk-b03hg30w.js +0 -2
  456. package/chunk-bh29df86.js +0 -5
  457. package/chunk-bhpg72c4.js +0 -2
  458. package/chunk-bwww6j2q.js +0 -2
  459. package/chunk-c126k8wc.js +0 -2
  460. package/chunk-cb3jgak9.js +0 -3
  461. package/chunk-cjeyy6da.js +0 -3
  462. package/chunk-cs4gb2hb.js +0 -2
  463. package/chunk-en5t6hwd.js +0 -3
  464. package/chunk-f4n1csz0.js +0 -3
  465. package/chunk-j16smb6d.js +0 -2
  466. package/chunk-j7eqp97m.js +0 -2
  467. package/chunk-jdrqn8m1.js +0 -2
  468. package/chunk-jp1gqkbp.js +0 -4
  469. package/chunk-jrcvxscb.js +0 -9
  470. package/chunk-k8zq95wr.js +0 -2
  471. package/chunk-ken7ras9.js +0 -8
  472. package/chunk-kqgpjmcf.js +0 -2
  473. package/chunk-krbdx24j.js +0 -3
  474. package/chunk-ky2ym708.js +0 -8
  475. package/chunk-kzfy666j.js +0 -16
  476. package/chunk-n0stnnxv.js +0 -2
  477. package/chunk-n9m2pagh.js +0 -2
  478. package/chunk-nedvy6yk.js +0 -10
  479. package/chunk-ng5g0fy3.js +0 -3
  480. package/chunk-nqeqasyt.js +0 -7
  481. package/chunk-nt30x5a7.js +0 -3
  482. package/chunk-q1s5r204.js +0 -3
  483. package/chunk-qj0vfk01.js +0 -2
  484. package/chunk-qqfdg01g.js +0 -3
  485. package/chunk-rj6qknjx.js +0 -12
  486. package/chunk-rvrj0nrs.js +0 -3
  487. package/chunk-sbhj5h2q.js +0 -2
  488. package/chunk-t71zzafh.js +0 -3
  489. package/chunk-t7fwvzmh.js +0 -3
  490. package/chunk-tpv5hz99.js +0 -5
  491. package/chunk-tx2rrrtq.js +0 -2
  492. package/chunk-tyzzbhr5.js +0 -3
  493. package/chunk-tzbefwf0.js +0 -286
  494. package/chunk-v4p8807b.js +0 -18
  495. package/chunk-vnxjcym9.js +0 -17
  496. package/chunk-w35r8v6x.js +0 -39
  497. package/chunk-wbygknv2.js +0 -3
  498. package/chunk-wk63htqy.js +0 -2
  499. package/chunk-wwazj6mz.js +0 -3
  500. package/chunk-xpc75mkw.js +0 -25
  501. package/chunk-ypxn8bec.js +0 -3
  502. package/chunk-yztc2q9q.js +0 -490
  503. package/web/chunk-02z7yrhn.js +0 -2
  504. package/web/chunk-02z7yrhn.js.br +0 -0
  505. package/web/chunk-02z7yrhn.js.gz +0 -0
  506. package/web/chunk-0an1eqtf.js +0 -1
  507. package/web/chunk-0an1eqtf.js.br +0 -0
  508. package/web/chunk-0an1eqtf.js.gz +0 -0
  509. package/web/chunk-128zy60g.js +0 -99
  510. package/web/chunk-128zy60g.js.br +0 -0
  511. package/web/chunk-128zy60g.js.gz +0 -0
  512. package/web/chunk-1e2jy7m2.js +0 -139
  513. package/web/chunk-1e2jy7m2.js.br +0 -0
  514. package/web/chunk-1e2jy7m2.js.gz +0 -0
  515. package/web/chunk-1v3e001f.js +0 -1
  516. package/web/chunk-1v3e001f.js.br +0 -0
  517. package/web/chunk-1v3e001f.js.gz +0 -0
  518. package/web/chunk-214p3rj6.js +0 -41
  519. package/web/chunk-214p3rj6.js.br +0 -0
  520. package/web/chunk-214p3rj6.js.gz +0 -0
  521. package/web/chunk-29byd5kf.js +0 -89
  522. package/web/chunk-29byd5kf.js.br +0 -0
  523. package/web/chunk-29byd5kf.js.gz +0 -0
  524. package/web/chunk-3fbh1wxk.js +0 -62
  525. package/web/chunk-3fbh1wxk.js.br +0 -0
  526. package/web/chunk-3fbh1wxk.js.gz +0 -0
  527. package/web/chunk-3fnrzj1h.js +0 -98
  528. package/web/chunk-3fnrzj1h.js.br +0 -0
  529. package/web/chunk-3fnrzj1h.js.gz +0 -0
  530. package/web/chunk-3g1095m7.js +0 -78
  531. package/web/chunk-3g1095m7.js.br +0 -0
  532. package/web/chunk-3g1095m7.js.gz +0 -0
  533. package/web/chunk-3nn7w4hw.js +0 -2
  534. package/web/chunk-3nn7w4hw.js.br +0 -0
  535. package/web/chunk-3nn7w4hw.js.gz +0 -0
  536. package/web/chunk-3qa8xcdr.js +0 -1
  537. package/web/chunk-3qa8xcdr.js.br +0 -0
  538. package/web/chunk-3qa8xcdr.js.gz +0 -0
  539. package/web/chunk-3x69jfmh.js +0 -332
  540. package/web/chunk-3x69jfmh.js.br +0 -0
  541. package/web/chunk-3x69jfmh.js.gz +0 -0
  542. package/web/chunk-4v6m77sv.css +0 -1
  543. package/web/chunk-4v6m77sv.css.br +0 -0
  544. package/web/chunk-4v6m77sv.css.gz +0 -0
  545. package/web/chunk-4vk6xma5.js +0 -1
  546. package/web/chunk-4vk6xma5.js.br +0 -0
  547. package/web/chunk-4vk6xma5.js.gz +0 -0
  548. package/web/chunk-50pdas2t.js +0 -1
  549. package/web/chunk-50pdas2t.js.br +0 -0
  550. package/web/chunk-50pdas2t.js.gz +0 -0
  551. package/web/chunk-56a6zytc.js +0 -1139
  552. package/web/chunk-56a6zytc.js.br +0 -0
  553. package/web/chunk-56a6zytc.js.gz +0 -0
  554. package/web/chunk-5ckj4zez.js +0 -1
  555. package/web/chunk-5ckj4zez.js.br +0 -2
  556. package/web/chunk-5ckj4zez.js.gz +0 -0
  557. package/web/chunk-5mr8z024.js +0 -2
  558. package/web/chunk-5mr8z024.js.br +0 -0
  559. package/web/chunk-5mr8z024.js.gz +0 -0
  560. package/web/chunk-5q4pemdh.js +0 -1
  561. package/web/chunk-5q4pemdh.js.br +0 -0
  562. package/web/chunk-5q4pemdh.js.gz +0 -0
  563. package/web/chunk-63ft76vs.js +0 -1
  564. package/web/chunk-63ft76vs.js.br +0 -0
  565. package/web/chunk-63ft76vs.js.gz +0 -0
  566. package/web/chunk-67ynxnvq.js +0 -8
  567. package/web/chunk-67ynxnvq.js.br +0 -0
  568. package/web/chunk-67ynxnvq.js.gz +0 -0
  569. package/web/chunk-6c2pv79h.js +0 -1
  570. package/web/chunk-6c2pv79h.js.br +0 -0
  571. package/web/chunk-6c2pv79h.js.gz +0 -0
  572. package/web/chunk-719tz8xw.js +0 -1
  573. package/web/chunk-719tz8xw.js.br +0 -0
  574. package/web/chunk-719tz8xw.js.gz +0 -0
  575. package/web/chunk-77nxgqqb.js +0 -4
  576. package/web/chunk-77nxgqqb.js.br +0 -0
  577. package/web/chunk-77nxgqqb.js.gz +0 -0
  578. package/web/chunk-7c59jb8d.js +0 -2
  579. package/web/chunk-7c59jb8d.js.br +0 -0
  580. package/web/chunk-7c59jb8d.js.gz +0 -0
  581. package/web/chunk-7ed5jf6e.js +0 -36
  582. package/web/chunk-7ed5jf6e.js.br +0 -0
  583. package/web/chunk-7ed5jf6e.js.gz +0 -0
  584. package/web/chunk-891bpx3c.js +0 -70
  585. package/web/chunk-891bpx3c.js.br +0 -0
  586. package/web/chunk-891bpx3c.js.gz +0 -0
  587. package/web/chunk-8h4dc48v.js +0 -292
  588. package/web/chunk-8h4dc48v.js.br +0 -0
  589. package/web/chunk-8h4dc48v.js.gz +0 -0
  590. package/web/chunk-96n00vam.js +0 -1
  591. package/web/chunk-96n00vam.js.br +0 -0
  592. package/web/chunk-96n00vam.js.gz +0 -0
  593. package/web/chunk-9bs7khrr.js +0 -24
  594. package/web/chunk-9bs7khrr.js.br +0 -0
  595. package/web/chunk-9bs7khrr.js.gz +0 -0
  596. package/web/chunk-9ctyqr3n.js +0 -169
  597. package/web/chunk-9ctyqr3n.js.br +0 -0
  598. package/web/chunk-9ctyqr3n.js.gz +0 -0
  599. package/web/chunk-9qdx0ekk.js +0 -142
  600. package/web/chunk-9qdx0ekk.js.br +0 -0
  601. package/web/chunk-9qdx0ekk.js.gz +0 -0
  602. package/web/chunk-9r0rnt6d.js +0 -214
  603. package/web/chunk-9r0rnt6d.js.br +0 -0
  604. package/web/chunk-9r0rnt6d.js.gz +0 -0
  605. package/web/chunk-a11ev6ff.js +0 -1
  606. package/web/chunk-a11ev6ff.js.br +0 -0
  607. package/web/chunk-a11ev6ff.js.gz +0 -0
  608. package/web/chunk-ac9g3w7v.js +0 -1
  609. package/web/chunk-ac9g3w7v.js.br +0 -0
  610. package/web/chunk-ac9g3w7v.js.gz +0 -0
  611. package/web/chunk-ackts7ph.js +0 -24
  612. package/web/chunk-ackts7ph.js.br +0 -0
  613. package/web/chunk-ackts7ph.js.gz +0 -0
  614. package/web/chunk-asyqrf38.js +0 -1
  615. package/web/chunk-asyqrf38.js.br +0 -0
  616. package/web/chunk-asyqrf38.js.gz +0 -0
  617. package/web/chunk-b13crsv9.js +0 -1
  618. package/web/chunk-b13crsv9.js.br +0 -0
  619. package/web/chunk-b13crsv9.js.gz +0 -0
  620. package/web/chunk-brg2zcv5.js +0 -55
  621. package/web/chunk-brg2zcv5.js.br +0 -0
  622. package/web/chunk-brg2zcv5.js.gz +0 -0
  623. package/web/chunk-bw9crrb4.js +0 -1
  624. package/web/chunk-bw9crrb4.js.br +0 -0
  625. package/web/chunk-bw9crrb4.js.gz +0 -0
  626. package/web/chunk-c3d08dw1.js +0 -1
  627. package/web/chunk-c3d08dw1.js.br +0 -0
  628. package/web/chunk-c3d08dw1.js.gz +0 -0
  629. package/web/chunk-cgwnzse1.js +0 -16
  630. package/web/chunk-cgwnzse1.js.br +0 -0
  631. package/web/chunk-cgwnzse1.js.gz +0 -0
  632. package/web/chunk-cm4fjb6j.js +0 -2
  633. package/web/chunk-cm4fjb6j.js.br +0 -0
  634. package/web/chunk-cm4fjb6j.js.gz +0 -0
  635. package/web/chunk-cys4n4sv.js +0 -1
  636. package/web/chunk-cys4n4sv.js.br +0 -0
  637. package/web/chunk-cys4n4sv.js.gz +0 -0
  638. package/web/chunk-djrvdzsb.js +0 -89
  639. package/web/chunk-djrvdzsb.js.br +0 -0
  640. package/web/chunk-djrvdzsb.js.gz +0 -0
  641. package/web/chunk-dsffzc1e.js +0 -2
  642. package/web/chunk-dsffzc1e.js.br +0 -0
  643. package/web/chunk-dsffzc1e.js.gz +0 -0
  644. package/web/chunk-e1wy8050.js +0 -370
  645. package/web/chunk-e1wy8050.js.br +0 -0
  646. package/web/chunk-e1wy8050.js.gz +0 -0
  647. package/web/chunk-ebknmxdp.js +0 -2
  648. package/web/chunk-ebknmxdp.js.br +0 -0
  649. package/web/chunk-ebknmxdp.js.gz +0 -0
  650. package/web/chunk-egjv760p.js +0 -2
  651. package/web/chunk-egjv760p.js.br +0 -0
  652. package/web/chunk-egjv760p.js.gz +0 -0
  653. package/web/chunk-etpd8y98.js +0 -1
  654. package/web/chunk-etpd8y98.js.br +0 -0
  655. package/web/chunk-etpd8y98.js.gz +0 -0
  656. package/web/chunk-f5kr9p2k.js +0 -1
  657. package/web/chunk-f5kr9p2k.js.br +0 -2
  658. package/web/chunk-f5kr9p2k.js.gz +0 -0
  659. package/web/chunk-fjhqg9ag.js +0 -2
  660. package/web/chunk-fjhqg9ag.js.br +0 -0
  661. package/web/chunk-fjhqg9ag.js.gz +0 -0
  662. package/web/chunk-fyr6rm2p.js +0 -2
  663. package/web/chunk-fyr6rm2p.js.br +0 -0
  664. package/web/chunk-fyr6rm2p.js.gz +0 -0
  665. package/web/chunk-grjq1g15.js +0 -1
  666. package/web/chunk-grjq1g15.js.br +0 -0
  667. package/web/chunk-grjq1g15.js.gz +0 -0
  668. package/web/chunk-h4bzgvbg.js +0 -303
  669. package/web/chunk-h4bzgvbg.js.br +0 -0
  670. package/web/chunk-h4bzgvbg.js.gz +0 -0
  671. package/web/chunk-heen0v5d.js +0 -12
  672. package/web/chunk-heen0v5d.js.br +0 -0
  673. package/web/chunk-heen0v5d.js.gz +0 -0
  674. package/web/chunk-henez15c.js +0 -4
  675. package/web/chunk-henez15c.js.br +0 -0
  676. package/web/chunk-henez15c.js.gz +0 -0
  677. package/web/chunk-hpcvwdkg.js +0 -1
  678. package/web/chunk-hpcvwdkg.js.br +0 -0
  679. package/web/chunk-hpcvwdkg.js.gz +0 -0
  680. package/web/chunk-hpvyk6rz.js +0 -324
  681. package/web/chunk-hpvyk6rz.js.br +0 -0
  682. package/web/chunk-hpvyk6rz.js.gz +0 -0
  683. package/web/chunk-j0dyf1g8.js +0 -2
  684. package/web/chunk-j0dyf1g8.js.br +0 -3
  685. package/web/chunk-j0dyf1g8.js.gz +0 -0
  686. package/web/chunk-jb89v31q.js +0 -1
  687. package/web/chunk-jb89v31q.js.br +0 -0
  688. package/web/chunk-jb89v31q.js.gz +0 -0
  689. package/web/chunk-jb949ewp.js +0 -217
  690. package/web/chunk-jb949ewp.js.br +0 -0
  691. package/web/chunk-jb949ewp.js.gz +0 -0
  692. package/web/chunk-je4bf95v.js +0 -1
  693. package/web/chunk-je4bf95v.js.br +0 -0
  694. package/web/chunk-je4bf95v.js.gz +0 -0
  695. package/web/chunk-js6c1973.js +0 -1
  696. package/web/chunk-js6c1973.js.br +0 -0
  697. package/web/chunk-js6c1973.js.gz +0 -0
  698. package/web/chunk-k140nr54.js +0 -1
  699. package/web/chunk-k140nr54.js.br +0 -0
  700. package/web/chunk-k140nr54.js.gz +0 -0
  701. package/web/chunk-k89686qj.js +0 -2
  702. package/web/chunk-k89686qj.js.br +0 -0
  703. package/web/chunk-k89686qj.js.gz +0 -0
  704. package/web/chunk-kknrn2wb.js +0 -84
  705. package/web/chunk-kknrn2wb.js.br +0 -0
  706. package/web/chunk-kknrn2wb.js.gz +0 -0
  707. package/web/chunk-mhtzdq9d.js +0 -140
  708. package/web/chunk-mhtzdq9d.js.br +0 -0
  709. package/web/chunk-mhtzdq9d.js.gz +0 -0
  710. package/web/chunk-mrnj2k3v.js +0 -2
  711. package/web/chunk-mrnj2k3v.js.br +0 -0
  712. package/web/chunk-mrnj2k3v.js.gz +0 -0
  713. package/web/chunk-my0k5w7f.js +0 -39
  714. package/web/chunk-my0k5w7f.js.br +0 -0
  715. package/web/chunk-my0k5w7f.js.gz +0 -0
  716. package/web/chunk-n08727ym.js +0 -34
  717. package/web/chunk-n08727ym.js.br +0 -0
  718. package/web/chunk-n08727ym.js.gz +0 -0
  719. package/web/chunk-n5ghyxwk.js +0 -38
  720. package/web/chunk-n5ghyxwk.js.br +0 -0
  721. package/web/chunk-n5ghyxwk.js.gz +0 -0
  722. package/web/chunk-nt21rjrm.js +0 -21
  723. package/web/chunk-nt21rjrm.js.br +0 -0
  724. package/web/chunk-nt21rjrm.js.gz +0 -0
  725. package/web/chunk-nzgj9qx5.js +0 -2
  726. package/web/chunk-nzgj9qx5.js.br +0 -0
  727. package/web/chunk-nzgj9qx5.js.gz +0 -0
  728. package/web/chunk-p9wm0dv3.js +0 -1
  729. package/web/chunk-p9wm0dv3.js.br +0 -0
  730. package/web/chunk-p9wm0dv3.js.gz +0 -0
  731. package/web/chunk-pqh9yszs.js +0 -106
  732. package/web/chunk-pqh9yszs.js.br +0 -0
  733. package/web/chunk-pqh9yszs.js.gz +0 -0
  734. package/web/chunk-q0vsqq43.js +0 -1
  735. package/web/chunk-q0vsqq43.js.br +0 -0
  736. package/web/chunk-q0vsqq43.js.gz +0 -0
  737. package/web/chunk-qv5d69fn.js +0 -2
  738. package/web/chunk-qv5d69fn.js.br +0 -0
  739. package/web/chunk-qv5d69fn.js.gz +0 -0
  740. package/web/chunk-r7afv22v.js +0 -2
  741. package/web/chunk-r7afv22v.js.br +0 -0
  742. package/web/chunk-r7afv22v.js.gz +0 -0
  743. package/web/chunk-rc6at4k5.js +0 -291
  744. package/web/chunk-rc6at4k5.js.br +0 -0
  745. package/web/chunk-rc6at4k5.js.gz +0 -0
  746. package/web/chunk-rnsvrehz.js +0 -30
  747. package/web/chunk-rnsvrehz.js.br +0 -0
  748. package/web/chunk-rnsvrehz.js.gz +0 -0
  749. package/web/chunk-rsmhn1fq.js +0 -1
  750. package/web/chunk-rsmhn1fq.js.br +0 -0
  751. package/web/chunk-rsmhn1fq.js.gz +0 -0
  752. package/web/chunk-s1p271av.js +0 -1
  753. package/web/chunk-s1p271av.js.br +0 -0
  754. package/web/chunk-s1p271av.js.gz +0 -0
  755. package/web/chunk-s6a13wxe.js +0 -2
  756. package/web/chunk-s6a13wxe.js.br +0 -0
  757. package/web/chunk-s6a13wxe.js.gz +0 -0
  758. package/web/chunk-sc4kwbnh.js +0 -1
  759. package/web/chunk-sc4kwbnh.js.br +0 -2
  760. package/web/chunk-sc4kwbnh.js.gz +0 -0
  761. package/web/chunk-scebh2ee.js +0 -1
  762. package/web/chunk-scebh2ee.js.br +0 -0
  763. package/web/chunk-scebh2ee.js.gz +0 -0
  764. package/web/chunk-shtkgxz6.js +0 -2
  765. package/web/chunk-shtkgxz6.js.br +0 -0
  766. package/web/chunk-shtkgxz6.js.gz +0 -0
  767. package/web/chunk-spmfwbhd.js +0 -1
  768. package/web/chunk-spmfwbhd.js.br +0 -0
  769. package/web/chunk-spmfwbhd.js.gz +0 -0
  770. package/web/chunk-svtenejf.js +0 -1
  771. package/web/chunk-svtenejf.js.br +0 -0
  772. package/web/chunk-svtenejf.js.gz +0 -0
  773. package/web/chunk-t9z1bp8j.js +0 -3
  774. package/web/chunk-t9z1bp8j.js.br +0 -0
  775. package/web/chunk-t9z1bp8j.js.gz +0 -0
  776. package/web/chunk-tbgavq0t.js +0 -2
  777. package/web/chunk-tbgavq0t.js.br +0 -0
  778. package/web/chunk-tbgavq0t.js.gz +0 -0
  779. package/web/chunk-tnttdgsc.js +0 -1
  780. package/web/chunk-tnttdgsc.js.br +0 -0
  781. package/web/chunk-tnttdgsc.js.gz +0 -0
  782. package/web/chunk-tp3fpa0t.js +0 -1
  783. package/web/chunk-tp3fpa0t.js.br +0 -0
  784. package/web/chunk-tp3fpa0t.js.gz +0 -0
  785. package/web/chunk-txdkp6yc.js +0 -7
  786. package/web/chunk-txdkp6yc.js.br +0 -0
  787. package/web/chunk-txdkp6yc.js.gz +0 -0
  788. package/web/chunk-v34mwgx8.js +0 -1
  789. package/web/chunk-v34mwgx8.js.br +0 -0
  790. package/web/chunk-v34mwgx8.js.gz +0 -0
  791. package/web/chunk-vtp01n96.js +0 -1
  792. package/web/chunk-vtp01n96.js.br +0 -0
  793. package/web/chunk-vtp01n96.js.gz +0 -0
  794. package/web/chunk-vx1qmkbm.js +0 -120
  795. package/web/chunk-vx1qmkbm.js.br +0 -0
  796. package/web/chunk-vx1qmkbm.js.gz +0 -0
  797. package/web/chunk-vxx451tt.js +0 -1
  798. package/web/chunk-vxx451tt.js.br +0 -0
  799. package/web/chunk-vxx451tt.js.gz +0 -0
  800. package/web/chunk-w8epfc0c.js +0 -1
  801. package/web/chunk-w8epfc0c.js.br +0 -0
  802. package/web/chunk-w8epfc0c.js.gz +0 -0
  803. package/web/chunk-whgh2r7d.js +0 -200
  804. package/web/chunk-whgh2r7d.js.br +0 -0
  805. package/web/chunk-whgh2r7d.js.gz +0 -0
  806. package/web/chunk-x0p1n5ws.js +0 -1
  807. package/web/chunk-x0p1n5ws.js.br +0 -2
  808. package/web/chunk-x0p1n5ws.js.gz +0 -0
  809. package/web/chunk-x2tk9zeq.js +0 -1
  810. package/web/chunk-x2tk9zeq.js.br +0 -0
  811. package/web/chunk-x2tk9zeq.js.gz +0 -0
  812. package/web/chunk-xbt045kt.js +0 -1
  813. package/web/chunk-xbt045kt.js.br +0 -2
  814. package/web/chunk-xbt045kt.js.gz +0 -0
  815. package/web/chunk-xh3agbvb.js +0 -7
  816. package/web/chunk-xh3agbvb.js.br +0 -0
  817. package/web/chunk-xh3agbvb.js.gz +0 -0
  818. package/web/chunk-xpw1spgj.js +0 -40
  819. package/web/chunk-xpw1spgj.js.br +0 -0
  820. package/web/chunk-xpw1spgj.js.gz +0 -0
  821. package/web/chunk-y2jkaf1e.js +0 -2
  822. package/web/chunk-y2jkaf1e.js.br +0 -0
  823. package/web/chunk-y2jkaf1e.js.gz +0 -0
  824. package/web/chunk-yp2jydfj.js +0 -1
  825. package/web/chunk-yp2jydfj.js.br +0 -0
  826. package/web/chunk-yp2jydfj.js.gz +0 -0
  827. package/web/chunk-yxp1es3b.js +0 -1
  828. package/web/chunk-yxp1es3b.js.br +0 -0
  829. package/web/chunk-yxp1es3b.js.gz +0 -0
  830. package/web/chunk-yzrww95m.js +0 -7
  831. package/web/chunk-yzrww95m.js.br +0 -0
  832. package/web/chunk-yzrww95m.js.gz +0 -0
  833. package/web/chunk-z502b5p0.js +0 -1
  834. package/web/chunk-z502b5p0.js.br +0 -0
  835. package/web/chunk-z502b5p0.js.gz +0 -0
  836. package/web/chunk-zny7cya7.js +0 -1
  837. package/web/chunk-zny7cya7.js.br +0 -2
  838. package/web/chunk-zny7cya7.js.gz +0 -0
  839. package/web/chunk-zq1qbaxb.js +0 -2
  840. package/web/chunk-zq1qbaxb.js.br +0 -0
  841. package/web/chunk-zq1qbaxb.js.gz +0 -0
  842. /package/{chunk-h4bvkm6p.js → chunk-2h2mvrw2.js} +0 -0
  843. /package/{chunk-51f8zbj5.js → chunk-54zpktrq.js} +0 -0
  844. /package/{chunk-fqfjjhkj.js → chunk-aq6xkc1w.js} +0 -0
  845. /package/{chunk-chfzk1fx.js → chunk-et2s8y6a.js} +0 -0
  846. /package/{chunk-pa7yh2q3.js → chunk-fgpzy3fe.js} +0 -0
Binary file
Binary file
@@ -0,0 +1 @@
1
+ import{t,i,g}from"./chunk-e4h4dg4y.js";import{hn,ci}from"./chunk-gbzfq3rg.js";import{Qe,Je}from"./chunk-jbejy8k3.js";var k=Je(function(F,Y){(function(f,r){if(typeof F==="object"&&typeof Y==="object")Y.exports=r(ci());else if(typeof define==="function"&&define.amd)define(["cose-base"],r);else if(typeof F==="object")F.cytoscapeCoseBilkent=r(ci());else f.cytoscapeCoseBilkent=r(f.coseBase)})(F,function(u){return function(f){var r={};function n(o){if(r[o])return r[o].exports;var d=r[o]={i:o,l:!1,exports:{}};return f[o].call(d.exports,d,d.exports,n),d.l=!0,d.exports}return n.m=f,n.c=r,n.i=function(o){return o},n.d=function(o,d,l){if(!n.o(o,d))Object.defineProperty(o,d,{configurable:!1,enumerable:!0,get:l})},n.n=function(o){var d=o&&o.__esModule?function(){return o.default}:function(){return o};return n.d(d,"a",d),d},n.o=function(o,d){return Object.prototype.hasOwnProperty.call(o,d)},n.p="",n(n.s=1)}([function(f,r){f.exports=u},function(f,r,n){var o=n(0).layoutBase.LayoutConstants,d=n(0).layoutBase.FDLayoutConstants,l=n(0).CoSEConstants,L=n(0).CoSELayout,b=n(0).CoSENode,H=n(0).layoutBase.PointD,v=n(0).layoutBase.DimensionD,_={ready:function(){},stop:function(){},quality:"default",nodeDimensionsIncludeLabels:!1,refresh:30,fit:!0,padding:10,randomize:!0,nodeRepulsion:4500,idealEdgeLength:50,edgeElasticity:0.45,nestingFactor:0.1,gravity:0.25,numIter:2500,tile:!0,animate:"end",animationDuration:500,tilingPaddingVertical:10,tilingPaddingHorizontal:10,gravityRangeCompound:1.5,gravityCompound:1,gravityRange:3.8,initialEnergyOnIncremental:0.5};function D(p,e){var y={};for(var s in p)y[s]=p[s];for(var s in e)y[s]=e[s];return y}function I(p){this.options=D(_,p),U(this.options)}var U=function(e){if(e.nodeRepulsion!=null)l.DEFAULT_REPULSION_STRENGTH=d.DEFAULT_REPULSION_STRENGTH=e.nodeRepulsion;if(e.idealEdgeLength!=null)l.DEFAULT_EDGE_LENGTH=d.DEFAULT_EDGE_LENGTH=e.idealEdgeLength;if(e.edgeElasticity!=null)l.DEFAULT_SPRING_STRENGTH=d.DEFAULT_SPRING_STRENGTH=e.edgeElasticity;if(e.nestingFactor!=null)l.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=d.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=e.nestingFactor;if(e.gravity!=null)l.DEFAULT_GRAVITY_STRENGTH=d.DEFAULT_GRAVITY_STRENGTH=e.gravity;if(e.numIter!=null)l.MAX_ITERATIONS=d.MAX_ITERATIONS=e.numIter;if(e.gravityRange!=null)l.DEFAULT_GRAVITY_RANGE_FACTOR=d.DEFAULT_GRAVITY_RANGE_FACTOR=e.gravityRange;if(e.gravityCompound!=null)l.DEFAULT_COMPOUND_GRAVITY_STRENGTH=d.DEFAULT_COMPOUND_GRAVITY_STRENGTH=e.gravityCompound;if(e.gravityRangeCompound!=null)l.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=d.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=e.gravityRangeCompound;if(e.initialEnergyOnIncremental!=null)l.DEFAULT_COOLING_FACTOR_INCREMENTAL=d.DEFAULT_COOLING_FACTOR_INCREMENTAL=e.initialEnergyOnIncremental;if(e.quality=="draft")o.QUALITY=0;else if(e.quality=="proof")o.QUALITY=2;else o.QUALITY=1;l.NODE_DIMENSIONS_INCLUDE_LABELS=d.NODE_DIMENSIONS_INCLUDE_LABELS=o.NODE_DIMENSIONS_INCLUDE_LABELS=e.nodeDimensionsIncludeLabels,l.DEFAULT_INCREMENTAL=d.DEFAULT_INCREMENTAL=o.DEFAULT_INCREMENTAL=!e.randomize,l.ANIMATE=d.ANIMATE=o.ANIMATE=e.animate,l.TILE=e.tile,l.TILING_PADDING_VERTICAL=typeof e.tilingPaddingVertical==="function"?e.tilingPaddingVertical.call():e.tilingPaddingVertical,l.TILING_PADDING_HORIZONTAL=typeof e.tilingPaddingHorizontal==="function"?e.tilingPaddingHorizontal.call():e.tilingPaddingHorizontal};I.prototype.run=function(){var p,e,y=this.options,s=this.idToLNode={},c=this.layout=new L,a=this;a.stopped=!1,this.cy=this.options.cy,this.cy.trigger({type:"layoutstart",layout:this});var E=c.newGraphManager();this.gm=E;var T=this.options.eles.nodes(),m=this.options.eles.edges();this.root=E.addRoot(),this.processChildrenList(this.root,this.getTopMostNodes(T),c);for(var h=0;h<m.length;h++){var P=m[h],x=this.idToLNode[P.data("source")],O=this.idToLNode[P.data("target")];if(x!==O&&x.getEdgesBetween(O).length==0){var et=E.add(c.newEdge(),x,O);et.id=P.id()}}var V=function(R,B){if(typeof R==="number")R=B;var C=R.data("id"),G=a.idToLNode[C];return{x:G.getRect().getCenterX(),y:G.getRect().getCenterY()}},nt=function X(){var R=function(){if(y.fit)y.cy.fit(y.eles,y.padding);if(!p)p=!0,a.cy.one("layoutready",y.ready),a.cy.trigger({type:"layoutready",layout:a})},B=a.options.refresh,C;for(var G=0;G<B&&!C;G++)C=a.stopped||a.layout.tick();if(C){if(c.checkLayoutSuccess()&&!c.isSubLayout)c.doPostLayout();if(c.tilingPostLayout)c.tilingPostLayout();if(c.isLayoutFinished=!0,a.options.eles.nodes().positions(V),R(),a.cy.one("layoutstop",a.options.stop),a.cy.trigger({type:"layoutstop",layout:a}),e)cancelAnimationFrame(e);p=!1;return}var M=a.layout.getPositionsData();y.eles.nodes().positions(function(A,it){if(typeof A==="number")A=it;if(!A.isParent()){var j=A.id(),N=M[j],w=A;while(N==null)if(N=M[w.data("parent")]||M["DummyCompound_"+w.data("parent")],M[j]=N,w=w.parent()[0],w==null)break;if(N!=null)return{x:N.x,y:N.y};else return{x:A.position("x"),y:A.position("y")}}}),R(),e=requestAnimationFrame(X)};if(c.addListener("layoutstarted",function(){if(a.options.animate==="during")e=requestAnimationFrame(nt)}),c.runLayout(),this.options.animate!=="during")a.options.eles.nodes().not(":parent").layoutPositions(a,a.options,V),p=!1;return this},I.prototype.getTopMostNodes=function(p){var e={};for(var y=0;y<p.length;y++)e[p[y].id()]=!0;var s=p.filter(function(c,a){if(typeof c==="number")c=a;var E=c.parent()[0];while(E!=null){if(e[E.id()])return!1;E=E.parent()[0]}return!0});return s},I.prototype.processChildrenList=function(p,e,y){var s=e.length;for(var c=0;c<s;c++){var a=e[c],E=a.children(),T,m=a.layoutDimensions({nodeDimensionsIncludeLabels:this.options.nodeDimensionsIncludeLabels});if(a.outerWidth()!=null&&a.outerHeight()!=null)T=p.add(new b(y.graphManager,new H(a.position("x")-m.w/2,a.position("y")-m.h/2),new v(parseFloat(m.w),parseFloat(m.h))));else T=p.add(new b(this.graphManager));if(T.id=a.data("id"),T.paddingLeft=parseInt(a.css("padding")),T.paddingTop=parseInt(a.css("padding")),T.paddingRight=parseInt(a.css("padding")),T.paddingBottom=parseInt(a.css("padding")),this.options.nodeDimensionsIncludeLabels){if(a.isParent()){var h=a.boundingBox({includeLabels:!0,includeNodes:!1}).w,P=a.boundingBox({includeLabels:!0,includeNodes:!1}).h,x=a.css("text-halign");T.labelWidth=h,T.labelHeight=P,T.labelPos=x}}if(this.idToLNode[a.data("id")]=T,isNaN(T.rect.x))T.rect.x=0;if(isNaN(T.rect.y))T.rect.y=0;if(E!=null&&E.length>0){var O=y.getGraphManager().add(y.newGraph(),T);this.processChildrenList(O,E,y)}}},I.prototype.stop=function(){return this.stopped=!0,this};var S=function(e){e("layout","cose-bilkent",I)};if(typeof cytoscape<"u")S(cytoscape);f.exports=S}])})});var z=Qe(k(),1);hn.use(z.default);function q(u,f){u.forEach((r)=>{let n={id:r.id,labelText:r.label,height:r.height,width:r.width,padding:r.padding??0};Object.keys(r).forEach((o)=>{if(!["id","label","height","width","padding","x","y"].includes(o))n[o]=r[o]}),f.add({group:"nodes",data:n,position:{x:r.x??0,y:r.y??0}})})}t(q,"addNodes");function W(u,f){u.forEach((r)=>{let n={id:r.id,source:r.start,target:r.end};Object.keys(r).forEach((o)=>{if(!["id","start","end"].includes(o))n[o]=r[o]}),f.add({group:"edges",data:n})})}t(W,"addEdges");function Q(u){return new Promise((f)=>{let r=g("body").append("div").attr("id","cy").attr("style","display:none"),n=hn({container:document.getElementById("cy"),style:[{selector:"edge",style:{"curve-style":"bezier"}}]});r.remove(),q(u.nodes,n),W(u.edges,n),n.nodes().forEach(function(d){d.layoutDimensions=()=>{let l=d.data();return{w:l.width,h:l.height}}});let o={name:"cose-bilkent",quality:"proof",styleEnabled:!1,animate:!1};n.layout(o).run(),n.ready((d)=>{i.info("Cytoscape ready",d),f(n)})})}t(Q,"createCytoscapeInstance");function Z(u){return u.nodes().map((f)=>{let r=f.data(),n=f.position(),o={id:r.id,x:n.x,y:n.y};return Object.keys(r).forEach((d)=>{if(d!=="id")o[d]=r[d]}),o})}t(Z,"extractPositionedNodes");function J(u){return u.edges().map((f)=>{let r=f.data(),n=f._private.rscratch,o={id:r.id,source:r.source,target:r.target,startX:n.startX,startY:n.startY,midX:n.midX,midY:n.midY,endX:n.endX,endY:n.endY};return Object.keys(r).forEach((d)=>{if(!["id","source","target"].includes(d))o[d]=r[d]}),o})}t(J,"extractPositionedEdges");async function K(u,f){i.debug("Starting cose-bilkent layout algorithm");try{tt(u);let r=await Q(u),n=Z(r),o=J(r);return i.debug(`Layout completed: ${n.length} nodes, ${o.length} edges`),{nodes:n,edges:o}}catch(r){throw i.error("Error in cose-bilkent layout algorithm:",r),r}}t(K,"executeCoseBilkentLayout");function tt(u){if(!u)throw Error("Layout data is required");if(!u.config)throw Error("Configuration is required in layout data");if(!u.rootNode)throw Error("Root node is required");if(!u.nodes||!Array.isArray(u.nodes))throw Error("No nodes found in layout data");if(!Array.isArray(u.edges))throw Error("Edges array is required in layout data");return!0}t(tt,"validateLayoutData");var at=t(async(u,f,{insertCluster:r,insertEdge:n,insertEdgeLabel:o,insertMarkers:d,insertNode:l,log:L,positionEdgeLabel:b},{algorithm:H})=>{let v={},_={},D=f.select("g");d(D,u.markers,u.type,u.diagramId);let I=D.insert("g").attr("class","subgraphs"),U=D.insert("g").attr("class","edgePaths"),S=D.insert("g").attr("class","edgeLabels"),p=D.insert("g").attr("class","nodes");L.debug("Inserting nodes into DOM for dimension calculation"),await Promise.all(u.nodes.map(async(s)=>{if(s.isGroup){let c={...s};_[s.id]=c,v[s.id]=c,await r(I,s)}else{let c={...s};v[s.id]=c;let a=await l(p,s,{config:u.config,dir:u.direction||"TB"}),E=a.node().getBBox();c.width=E.width,c.height=E.height,c.domId=a,L.debug(`Node ${s.id} dimensions: ${E.width}x${E.height}`)}})),L.debug("Running cose-bilkent layout algorithm");let e={...u,nodes:u.nodes.map((s)=>{let c=v[s.id];return{...s,width:c.width,height:c.height}})},y=await K(e,u.config);L.debug("Positioning nodes based on layout results"),y.nodes.forEach((s)=>{let c=v[s.id];if(c?.domId)c.domId.attr("transform",`translate(${s.x}, ${s.y})`),c.x=s.x,c.y=s.y,L.debug(`Positioned node ${c.id} at center (${s.x}, ${s.y})`)}),y.edges.forEach((s)=>{let c=u.edges.find((a)=>a.id===s.id);if(c)c.points=[{x:s.startX,y:s.startY},{x:s.midX,y:s.midY},{x:s.endX,y:s.endY}]}),L.debug("Inserting and positioning edges"),await Promise.all(u.edges.map(async(s)=>{let c=await o(S,s),a=v[s.start??""],E=v[s.end??""];if(a&&E){let T=y.edges.find((m)=>m.id===s.id);if(T){L.debug("APA01 positionedEdge",T);let m={...s},h=n(U,m,_,u.type,a,E,u.diagramId);b(m,h)}else{let m={...s,points:[{x:a.x||0,y:a.y||0},{x:E.x||0,y:E.y||0}]},h=n(U,m,_,u.type,a,E,u.diagramId);b(m,h)}}})),L.debug("Cose-bilkent rendering completed")},"render"),ct=at;export{ct as render};
Binary file
Binary file
@@ -0,0 +1 @@
1
+ import{s,o,a,se,h,e,n,d,$t,Q,me,Yi,k,p,_,re,ie,it,xs}from"./chunk-jbejy8k3.js";var M=30;function W(t){let l=new Date(t),y=new Date,c=new Date(l.getFullYear(),l.getMonth(),l.getDate()).getTime(),x=new Date(y.getFullYear(),y.getMonth(),y.getDate()).getTime(),m=86400000,g=Math.round((x-c)/86400000),f=`${l.getMonth()+1}月${l.getDate()}日`;if(g===0)return`今天 · ${f}`;if(g===1)return`昨天 · ${f}`;if(g>1&&g<7)return`${g} 天前 · ${f}`;if(l.getFullYear()===y.getFullYear())return f;return`${l.getFullYear()}年${f}`}function q(t){if(!t)return"";let l=new Date(t),y=(m)=>String(m).padStart(2,"0"),c=y(l.getHours()),x=y(l.getMinutes());return`${c}:${x}`}function V(t){if(!t)return"";return new Date(t).toLocaleString()}function Z(t,l=t.length){let y=[],c=new Map;for(let x=0;x<t.length;x++){let m=t[x];if(!m)continue;let g=m.archivedAt??0,f=new Date(g),D=`${f.getFullYear()}-${f.getMonth()+1}-${f.getDate()}`,b=c.get(D);if(!b){if(x>=l)continue;b={key:D,title:W(g),total:0,sessions:[]},c.set(D,b),y.push(b)}if(b.total+=1,x<l)b.sessions.push(m)}return y}function de(t){k();let[l,y]=a(""),[c,x]=a(!1),[m,g]=a(new Set),[f,D]=a(!1),b=o(null),w=se(t.conn.state),P=t.projectID??"chat",L=t.projectID?t.projects.find((i)=>i.id===t.projectID)?.name??"项目":"聊天",S=Yi(t.sessions,P),u=Yi(S,P,l),I=`${P}\x00${l.trim().toLocaleLowerCase()}`,[T,A]=a({key:I,count:M}),G=T.key===I?T.count:M,z=Math.min(G,u.length),R=z<u.length;s(()=>{let i=b.current;if(!i||!R||typeof IntersectionObserver>"u")return;let v=i.closest(".minimal-scroll-area"),r=new IntersectionObserver((C)=>{if(C.some((j)=>j.isIntersecting))A({key:I,count:Math.min(u.length,z+M)})},{root:v,rootMargin:"320px 0px"});return r.observe(i),()=>r.disconnect()},[I,R,z,u.length]);let F=u.filter((i)=>m.has(i.id)),B=u.length>0&&m.size===u.length;function O(){if(B)g(new Set);else g(new Set(u.map((i)=>i.id)))}function E(i){g((v)=>{let r=new Set(v);if(r.has(i))r.delete(i);else r.add(i);return r})}async function Y(i){if(i.length===0||f)return;D(!0);try{if(t.onBatchDelete)await t.onBatchDelete(i);else for(let v of i)t.onDelete(v);if(g(new Set),c&&i.length===u.length)x(!1)}finally{D(!1)}}async function H(i){if(i.length===0||f)return;D(!0);try{if(t.onBatchRestore)await t.onBatchRestore(i);else for(let v of i)t.onRestore(v);if(g(new Set),c&&i.length===u.length)x(!1)}finally{D(!1)}}function K(){if(w.indexError)return n("div",{role:"alert",className:"animate-fade space-y-2 rounded-2xl border border-danger/20 bg-danger/5 p-6 text-sm text-danger",children:[n("p",{children:["加载失败:",w.indexError]}),e(_,{loading:w.indexLoading,disabled:w.indexLoading,onClick:()=>{if(!t.conn.state.get().indexLoading)t.conn.refreshIndex()},children:"重试"})]});if(w.status!=="open"||w.indexLoading)return e("div",{className:"flex justify-center py-12 text-xs text-faint",children:"正在连接…"});if(u.length===0)return n("div",{className:p("surface.emptyDashed","animate-fade"),children:[e("div",{className:"grid size-11 place-items-center rounded-xl bg-raised text-dim",children:e($t,{className:"size-5"})}),n("div",{children:[e("p",{className:"text-md font-medium",children:S.length===0?`${L}里暂无归档会话`:"没有匹配结果"}),e("p",{className:"mt-1 text-sm text-dim",children:S.length===0?"归档的会话会安全存放在这里,不干扰日常列表。":"尝试更换关键词重新搜索。"})]})]});let i=Z(u,z);return n("div",{className:"space-y-6 animate-fade",children:[i.map((v)=>n("section",{className:"space-y-2",children:[n("div",{className:"flex items-center justify-between px-1 text-xs text-dim",children:[e("h2",{className:"font-medium text-ink",children:v.title}),n("span",{className:"tabular-nums text-faint",children:[v.total," 个会话"]})]}),e("div",{className:p("settings.groupBox"),children:e("ul",{className:"divide-y divide-line/60",children:v.sessions.map((r)=>{let C=m.has(r.id),j=t.projects.find((N)=>N.id===r.projectID)?.name;return n("li",{tabIndex:c?0:void 0,className:d("group flex flex-wrap items-center justify-between gap-x-3 gap-y-1 px-4 py-2.5 transition-colors sm:flex-nowrap",c?"cursor-pointer hover:bg-raised/70 focus:outline-hidden focus:bg-raised/70":"hover:bg-raised/50",c&&C&&"bg-accent/5"),onClick:c?()=>E(r.id):void 0,onKeyDown:c?(N)=>{if(N.key==="Enter"||N.key===" ")N.preventDefault(),E(r.id)}:void 0,children:[n("div",{className:"flex min-w-0 flex-1 basis-48 items-center gap-2.5",children:[c&&e("span",{className:d("flex size-4 shrink-0 items-center justify-center rounded-md border transition-colors",C?"border-accent bg-accent text-accent-ink":"border-line-strong bg-panel"),children:C&&e(Q,{className:"size-3",strokeWidth:3})}),e(it,{modelID:r.model,className:"size-4 shrink-0 text-dim"}),e("button",{type:"button",disabled:c,className:d("block max-w-full truncate text-left text-sm font-medium text-ink transition-colors focus:outline-hidden",!c&&"hover:text-accent"),onClick:()=>!c&&t.onOpen(r.id),children:me(r)}),j&&e("span",{className:p("control.badge","shrink-0 text-2xs text-dim"),children:j})]}),n("div",{className:"flex shrink-0 items-center justify-end gap-1.5 sm:grid sm:justify-items-end",children:[e("time",{dateTime:r.archivedAt?new Date(r.archivedAt).toISOString():void 0,title:r.archivedAt?`归档于 ${V(r.archivedAt)}`:void 0,className:d("text-xs tabular-nums text-faint cursor-default sm:col-start-1 sm:row-start-1",!c&&"transition-opacity sm:group-hover:opacity-0 sm:group-focus-within:opacity-0"),children:q(r.archivedAt)}),!c&&n("div",{className:"flex items-center gap-1.5 opacity-90 transition-opacity sm:pointer-events-none sm:col-start-1 sm:row-start-1 sm:opacity-0 sm:group-hover:pointer-events-auto sm:group-hover:opacity-100 sm:group-focus-within:pointer-events-auto sm:group-focus-within:opacity-100",children:[e(_,{size:"sm",variant:"ghost",className:"h-7 px-2 text-xs",disabled:t.pending.has(r.id),onClick:(N)=>{N.stopPropagation(),t.onRestore(r)},children:"恢复"}),e(_,{size:"sm",variant:"danger-ghost",className:"h-7 px-2 text-xs",disabled:t.pending.has(r.id),onClick:(N)=>{N.stopPropagation(),t.onDelete(r)},children:"永久删除"})]})]})]},r.id)})})})]},v.key)),R&&n("div",{ref:b,className:"flex items-center justify-between rounded-xl border border-line/60 bg-panel/40 px-4 py-2.5 text-xs text-faint",children:[n("span",{className:"tabular-nums",children:["已显示 ",z," / ",u.length," 个会话"]}),n("div",{className:"flex items-center gap-1.5",children:[e(_,{size:"sm",variant:"ghost",className:"h-7 px-2 text-xs",onClick:()=>A({key:I,count:Math.min(u.length,z+M)}),children:"加载更多"}),e(_,{size:"sm",variant:"ghost",className:"h-7 px-2 text-xs",onClick:()=>A({key:I,count:u.length}),children:"显示全部"})]})]})]})}return n(xs,{"aria-label":"已归档会话",title:n(h,{children:["已归档 ",n("span",{className:"text-dim",children:["· ",L]})]}),description:"浏览和管理已归档的会话,可随时恢复到聊天列表或彻底删除。",children:[n("div",{className:"mb-6 space-y-2",children:[e(ie,{label:"搜索标题",children:(i)=>e(re,{id:i,value:l,onChange:(v)=>y(v.target.value),placeholder:"搜索归档会话…"})}),S.length>0&&(c?n("div",{className:"flex flex-wrap items-center justify-between gap-2 rounded-xl border border-line bg-panel p-2.5 shadow-xs",children:[n("button",{type:"button",className:"flex items-center gap-2 text-xs font-medium text-ink hover:text-accent focus:outline-hidden",onClick:O,children:[n("span",{className:d("flex size-4 shrink-0 items-center justify-center rounded-md border transition-colors",B?"border-accent bg-accent text-accent-ink":m.size>0?"border-accent bg-accent/20 text-accent":"border-line-strong bg-panel"),children:[B&&e(Q,{className:"size-3",strokeWidth:3}),!B&&m.size>0&&e("span",{className:"size-1.5 rounded-xs bg-accent"})]}),n("span",{children:[B?"取消全选":"全选",n("span",{className:"ml-1 text-dim",children:["(",m.size,"/",u.length,")"]})]})]}),n("div",{className:"flex items-center gap-2",children:[n(_,{size:"sm",variant:"secondary",className:"h-7 px-2.5 text-xs",loading:f,disabled:m.size===0||f,onClick:()=>void H(F),children:["批量恢复",m.size>0?` (${m.size})`:""]}),n(_,{size:"sm",variant:"danger",className:"h-7 px-2.5 text-xs",loading:f,disabled:m.size===0||f,onClick:()=>void Y(F),children:["彻底删除",m.size>0?` (${m.size})`:""]}),e(_,{size:"sm",variant:"ghost",className:"h-7 px-2 text-xs",disabled:f,onClick:()=>{x(!1),g(new Set)},children:"退出管理"})]})]}):n("div",{className:"flex items-center justify-between px-0.5 text-xs text-dim",children:[e("span",{children:l.trim()?`匹配 ${u.length} 个会话(共 ${S.length} 个)`:`共 ${S.length} 个归档会话`}),u.length>0&&n("div",{className:"flex items-center gap-2",children:[e(_,{size:"sm",variant:"ghost",className:"h-7 px-2 text-xs",onClick:()=>x(!0),children:"批量管理"}),e(_,{size:"sm",variant:"danger-ghost",className:"h-7 px-2 text-xs",onClick:()=>void Y(u),children:l.trim()?"清空匹配结果":"清空全部"})]})]}))]}),K()]})}export{de as ArchivePage};
Binary file
Binary file
@@ -0,0 +1,2 @@
1
+ function bt(t){if(!Number.isFinite(t)||t<=0)return"0";if(t<1000)return Math.round(t).toString();if(t<1e6)return`${(t/1000).toFixed(1)}K`;if(t<1e9)return`${(t/1e6).toFixed(2)}M`;return`${(t/1e9).toFixed(2)}B`}function Xn(t){let r=Number.isFinite(t)?Math.max(0,t):0;return Math.round(r).toLocaleString("en-US")}function Et(t){if(!Number.isFinite(t)||t<=0)return"0s";if(t<1000)return"<1s";if(t<60000)return`${Math.floor(t/1000)}s`;if(t<3600000){let e=Math.floor(t/1000),i=Math.floor(e/60),u=e%60;return u>0?`${i}m ${u}s`:`${i}m`}if(t<259200000){let e=Math.floor(t/60000),i=Math.floor(e/60),u=e%60;return u>0?`${i}h ${u}m`:`${i}h`}let r=Math.floor(t/3600000),n=Math.floor(r/24),o=r%24;return o>0?`${n}d ${o}h`:`${n}d`}function hc(t){if(!Number.isFinite(t)||t<=0)return"0s";if(t<1000)return"<1s";if(t<60000)return`${Math.round(t/1000)}s`;if(t<3600000)return`${Math.round(t/60000)}m`;if(t<86400000){let o=t/3600000;return`${o>=10?Math.round(o).toString():o.toFixed(1).replace(/\.0$/,"")}h`}let r=t/86400000;return`${r>=10?Math.round(r).toString():r.toFixed(1).replace(/\.0$/,"")}d`}function Kn(t,r=1){if(!Number.isFinite(t)||t<=0)return"0%";let n=10**-r/100;if(t<n)return`<${(n*100).toFixed(r)}%`;return`${(t*100).toFixed(r)}%`}function Oa(t){if(!Number.isFinite(t)||t<=0)return"0 B";if(t<1024)return`${Math.round(t)} B`;if(t<1048576)return`${(t/1024).toFixed(1)} KB`;if(t<1073741824)return`${(t/1048576).toFixed(2)} MB`;return`${(t/1073741824).toFixed(2)} GB`}function Li(t){let r=t.split("-"),n=r[1],o=r[2];if(n!==void 0&&o!==void 0)return`${n}/${o}`;return t}function qs(t){let r=t.split("-"),n=r[0],o=r[1],e=r[2];if(n===void 0||o===void 0||e===void 0)return t;let i=Number(n),u=Number(o)-1,a=Number(e),f=new Date(Date.UTC(i,u,a)),c=["周日","周一","周二","周三","周四","周五","周六"],d=f.getUTCDay(),_=c[d]??"";return`${t} ${_}`}function gc(t,r=Date.now()){if(t===null||t===void 0||!Number.isFinite(t)||t<=0)return"从未";let n=Math.max(0,r-t);if(n<60000)return"刚刚";if(n<3600000)return`${Math.max(1,Math.floor(n/60000))} 分钟前`;if(n<86400000)return`${Math.max(1,Math.floor(n/3600000))} 小时前`;if(n<2592000000)return`${Math.max(1,Math.floor(n/86400000))} 天前`;let o=new Date(t),e=o.getFullYear(),i=String(o.getMonth()+1).padStart(2,"0"),u=String(o.getDate()).padStart(2,"0");return`${e}-${i}-${u}`}
2
+ export{bt,Xn,Et,hc,Kn,Oa,Li,qs,gc};
Binary file
Binary file
@@ -0,0 +1,2 @@
1
+ import{t,i,W,J}from"./chunk-e4h4dg4y.js";import{fe}from"./chunk-yarejzzs.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,24 @@
1
+ import{ae}from"./chunk-mytypet0.js";import{t,i,F,A,W,L,M,P,R,I,O,D,J,Z}from"./chunk-e4h4dg4y.js";import{fe}from"./chunk-yarejzzs.js";var z=F.packet,B=class{constructor(){this.packet=[],this.setAccTitle=M,this.getAccTitle=P,this.setDiagramTitle=O,this.getDiagramTitle=D,this.getAccDescription=I,this.setAccDescription=R}static{t(this,"PacketDB")}getConfig(){let e=Z({...z,...A().packet});if(e.showBits)e.paddingY+=10;return e}getPacket(){return this.packet}pushWord(e){if(e.length>0)this.packet.push(e)}clear(){L(),this.packet=[]}},E=1e4,_=t((e,r)=>{ae(e,r);let o=-1,s=[],l=1,{bitsPerRow:d}=r.getConfig();for(let{start:a,end:n,bits:g,label:f}of e.blocks){if(a!==void 0&&n!==void 0&&n<a)throw Error(`Packet block ${a} - ${n} is invalid. End must be greater than start.`);if(a??=o+1,a!==o+1)throw Error(`Packet block ${a} - ${n??a} is not contiguous. It should start from ${o+1}.`);if(g===0)throw Error(`Packet block ${a} is invalid. Cannot have a zero bit field.`);n??=a+(g??1)-1,g??=n-a+1,o=n,i.debug(`Packet block ${a} - ${o} with label ${f}`);while(s.length<=d+1&&r.getPacket().length<E){let[p,h]=N({start:a,end:n,bits:g,label:f},l,d);if(s.push(p),p.end+1===l*d)r.pushWord(s),s=[],l++;if(!h)break;({start:a,end:n,bits:g,label:f}=h)}}r.pushWord(s)},"populate"),N=t((e,r,o)=>{if(e.start===void 0)throw Error("start should have been set during first phase");if(e.end===void 0)throw Error("end should have been set during first phase");if(e.start>e.end)throw Error(`Block start ${e.start} is greater than block end ${e.end}.`);if(e.end+1<=r*o)return[e,void 0];let s=r*o-1,l=r*o;return[{start:e.start,end:s,label:e.label,bits:s-e.start},{start:l,end:e.end,label:e.label,bits:e.end-l}]},"getNextFittingBlock"),C={parser:{yy:void 0},parse:t(async(e)=>{let r=await fe("packet",e),o=C.parser?.yy;if(!(o instanceof B))throw Error("parser.parser?.yy was not a PacketDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");i.debug(r),_(r,o)},"parse")},Y=t((e,r,o,s)=>{let l=s.db,d=l.getConfig(),{rowHeight:a,paddingY:n,bitWidth:g,bitsPerRow:f}=d,p=l.getPacket(),h=l.getDiagramTitle(),b=a+n,c=b*(p.length+1)-(h?0:a),k=g*f+2,m=J(r);m.attr("viewBox",`0 0 ${k} ${c}`),W(m,c,k,d.useMaxWidth);for(let[x,u]of p.entries())j(m,u,x,d);m.append("text").text(h).attr("x",k/2).attr("y",c-b/2).attr("dominant-baseline","middle").attr("text-anchor","middle").attr("class","packetTitle")},"draw"),j=t((e,r,o,{rowHeight:s,paddingX:l,paddingY:d,bitWidth:a,bitsPerRow:n,showBits:g,bitOrder:f})=>{let p=e.append("g"),h=o*(s+d)+d,b=f==="descending";for(let c of r){let k=c.end-c.start+1,m=c.start%n,u=(b?n-m-k:m)*a+1,w=k*a-l;if(p.append("rect").attr("x",u).attr("y",h).attr("width",w).attr("height",s).attr("class","packetBlock"),p.append("text").attr("x",u+w/2).attr("y",h+s/2).attr("class","packetLabel").attr("dominant-baseline","middle").attr("text-anchor","middle").text(c.label),!g)continue;let[S,T]=b?[c.end,c.start]:[c.start,c.end],v=k===1,y=h-2;if(p.append("text").attr("x",u+(v?w/2:0)).attr("y",y).attr("class","packetByte start").attr("dominant-baseline","auto").attr("text-anchor",v?"middle":"start").text(S),!v)p.append("text").attr("x",u+w).attr("y",y).attr("class","packetByte end").attr("dominant-baseline","auto").attr("text-anchor","end").text(T)}},"drawWord"),G={draw:Y},H={byteFontSize:"10px",startByteColor:"black",endByteColor:"black",labelColor:"black",labelFontSize:"12px",titleColor:"black",titleFontSize:"14px",blockStrokeColor:"black",blockStrokeWidth:"1",blockFillColor:"#efefef"},K=t(({packet:e}={})=>{let r=Z(H,e);return`
2
+ .packetByte {
3
+ font-size: ${r.byteFontSize};
4
+ }
5
+ .packetByte.start {
6
+ fill: ${r.startByteColor};
7
+ }
8
+ .packetByte.end {
9
+ fill: ${r.endByteColor};
10
+ }
11
+ .packetLabel {
12
+ fill: ${r.labelColor};
13
+ font-size: ${r.labelFontSize};
14
+ }
15
+ .packetTitle {
16
+ fill: ${r.titleColor};
17
+ font-size: ${r.titleFontSize};
18
+ }
19
+ .packetBlock {
20
+ stroke: ${r.blockStrokeColor};
21
+ stroke-width: ${r.blockStrokeWidth};
22
+ fill: ${r.blockFillColor};
23
+ }
24
+ `},"styles"),rt={parser:C,get db(){return new B},renderer:G,styles:K};export{rt as diagram};
Binary file
Binary file
@@ -0,0 +1,4 @@
1
+ import{t,i,u,B,Cn,Ic,fn,or,An,fa,sr}from"./chunk-e4h4dg4y.js";import{We,xt,qt,nt,cn,Zn,oe,Oe,tn,Qn,nn,Ba,lo,po,uo,Pr,wn,mo,Ir,_t,Dr,Fn,kn,Or,Jn,$r,fo,ho,Fa,Ye,go,Br,er,Fr,za,Ha,tr,vo,Ua,yo,Mi,ln,ja,bo,xo,_o,Pt,qa,Va,zr,wo,Ga,x,Vt,pn,Xe,nr,xe}from"./chunk-sc90h9bd.js";import{oo,so,ne,aa,xc,co,$a}from"./chunk-8vtr60yn.js";import{Tn}from"./chunk-jbejy8k3.js";var pr={};Tn(pr,{default:()=>Z});var Wn=/\s/;function qn(r){var e=r.length;while(e--&&Wn.test(r.charAt(e)));return e}var ee=qn;var Hn=/^\s+/;function Kn(r){return r?r.slice(0,ee(r)+1).replace(Hn,""):r}var te=Kn;var ie=NaN,$n=/^[-+]0x[0-9a-f]+$/i,ro=/^0b[01]+$/i,eo=/^0o[0-7]+$/i,to=parseInt;function no(r){if(typeof r=="number")return r;if(cn(r))return ie;if(Oe(r)){var e=typeof r.valueOf=="function"?r.valueOf():r;r=Oe(e)?e+"":e}if(typeof r!="string")return r===0?r:+r;r=te(r);var n=ro.test(r);return n||eo.test(r)?to(r.slice(2),n?2:8):$n.test(r)?ie:+r}var ae=no;var fe=1/0,io=179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000;function ao(r){if(!r)return r===0?r:0;if(r=ae(r),r===fe||r===-fe){var e=r<0?-1:1;return e*io}return r===r?r:0}var V=ao;function Eo(r){var e=V(r),n=e%1;return e===e?n?e-n:e:0}var se=Eo;var ue=Object.create,Oo=function(){function r(){}return function(e){if(!Oe(e))return{};if(ue)return ue(e);r.prototype=e;var n=new r;return r.prototype=void 0,n}}(),de=Oo;function Lo(r,e){var n=-1,o=r.length;e||(e=Array(o));while(++n<o)e[n]=r[n];return e}var dr=Lo;function Io(r,e,n){if(e=="__proto__"&&Ba)Ba(r,e,{configurable:!0,enumerable:!0,value:n,writable:!0});else r[e]=n}var R=Io;var So=Object.prototype,No=So.hasOwnProperty;function Po(r,e,n){var o=r[e];if(!(No.call(r,e)&&wn(o,n))||n===void 0&&!(e in r))R(r,e,n)}var M=Po;function ko(r,e,n,o){var a=!n;n||(n={});var f=-1,s=e.length;while(++f<s){var d=e[f],c=o?o(n[d],r[d],d,n,r):void 0;if(c===void 0)c=r[d];if(a)R(n,d,c);else M(n,d,c)}return n}var P=ko;function To(r,e,n){if(!Oe(n))return!1;var o=typeof e;if(o=="number"?_t(n)&&Pr(e,n.length):o=="string"&&(e in n))return wn(n[e],r);return!1}var T=To;function Co(r){return Ir(function(e,n){var o=-1,a=n.length,f=a>1?n[a-1]:void 0,s=a>2?n[2]:void 0;if(f=r.length>3&&typeof f=="function"?(a--,f):void 0,s&&T(n[0],n[1],s))f=a<3?void 0:f,a=1;e=Object(e);while(++o<a){var d=n[o];if(d)r(e,d,o,f)}return e})}var ce=Co;function Ao(r){var e=[];if(r!=null)for(var n in Object(r))e.push(n);return e}var pe=Ao;var Ro=Object.prototype,Mo=Ro.hasOwnProperty;function jo(r){if(!Oe(r))return pe(r);var e=Dr(r),n=[];for(var o in r)if(!(o=="constructor"&&(e||!Mo.call(r,o))))n.push(o);return n}var le=jo;function Bo(r){return _t(r)?fo(r,!0):le(r)}var L=Bo;function Do(r){var e=r==null?0:r.length;return e?Ha(r,1):[]}var S=Do;function Fo(r){return lo(mo(r,void 0,S),r+"")}var me=Fo;var Go=ho(Object.getPrototypeOf,Object),Y=Go;var Xo="[object Object]",Uo=Function.prototype,Vo=Object.prototype,he=Uo.toString,Yo=Vo.hasOwnProperty,zo=he.call(Object);function Wo(r){if(!nt(r)||qt(r)!=Xo)return!1;var e=Y(r);if(e===null)return!0;var n=Yo.call(e,"constructor")&&e.constructor;return typeof n=="function"&&n instanceof n&&he.call(n)==zo}var ge=Wo;var qo="\\ud800-\\udfff",Ho="\\u0300-\\u036f",Ko="\\ufe20-\\ufe2f",Jo="\\u20d0-\\u20ff",Zo=Ho+Ko+Jo,$o="\\ufe0e\\ufe0f",Qo="\\u200d",ri=RegExp("["+Qo+qo+Zo+$o+"]");function ei(r){return ri.test(r)}var ve=ei;function ti(r,e){return r&&P(e,Ye(e),r)}var be=ti;function ni(r,e){return r&&P(e,L(e),r)}var ye=ni;var Le=typeof pr=="object"&&pr&&!pr.nodeType&&pr,we=Le&&typeof cr=="object"&&cr&&!cr.nodeType&&cr,oi=we&&we.exports===Le,_e=oi?We.Buffer:void 0,Ee=_e?_e.allocUnsafe:void 0;function ii(r,e){if(e)return r.slice();var n=r.length,o=Ee?Ee(n):new r.constructor(n);return r.copy(o),o}var Z=ii;function ai(r,e){return P(r,Ua(r),e)}var Ie=ai;var fi=Object.getOwnPropertySymbols,si=!fi?vo:function(r){var e=[];while(r)za(e,Ua(r)),r=Y(r);return e},lr=si;function ui(r,e){return P(r,lr(r),e)}var Se=ui;function di(r){return yo(r,L,lr)}var Ne=di;var ci=Object.prototype,pi=ci.hasOwnProperty;function li(r){var e=r.length,n=new r.constructor(e);if(e&&typeof r[0]=="string"&&pi.call(r,"index"))n.index=r.index,n.input=r.input;return n}var Pe=li;function mi(r){var e=new r.constructor(r.byteLength);return new ja(e).set(new ja(r)),e}var z=mi;function hi(r,e){var n=e?z(r.buffer):r.buffer;return new r.constructor(n,r.byteOffset,r.byteLength)}var ke=hi;var gi=/\w*$/;function vi(r){var e=new r.constructor(r.source,gi.exec(r));return e.lastIndex=r.lastIndex,e}var Te=vi;var Ce=xt?xt.prototype:void 0,Ae=Ce?Ce.valueOf:void 0;function bi(r){return Ae?Object(Ae.call(r)):{}}var Re=bi;function yi(r,e){var n=e?z(r.buffer):r.buffer;return new r.constructor(n,r.byteOffset,r.length)}var mr=yi;var wi="[object Boolean]",_i="[object Date]",Ei="[object Map]",xi="[object Number]",Oi="[object RegExp]",Li="[object Set]",Ii="[object String]",Si="[object Symbol]",Ni="[object ArrayBuffer]",Pi="[object DataView]",ki="[object Float32Array]",Ti="[object Float64Array]",Ci="[object Int8Array]",Ai="[object Int16Array]",Ri="[object Int32Array]",ji="[object Uint8Array]",Bi="[object Uint8ClampedArray]",Di="[object Uint16Array]",Fi="[object Uint32Array]";function Gi(r,e,n){var o=r.constructor;switch(e){case Ni:return z(r);case wi:case _i:return new o(+r);case Pi:return ke(r,n);case ki:case Ti:case Ci:case Ai:case Ri:case ji:case Bi:case Di:case Fi:return mr(r,n);case Ei:return new o;case xi:case Ii:return new o(r);case Oi:return Te(r);case Li:return new o;case Si:return Re(r)}}var Me=Gi;function Xi(r){return typeof r.constructor=="function"&&!Dr(r)?de(Y(r)):{}}var hr=Xi;var Ui="[object Map]";function Vi(r){return nt(r)&&ln(r)==Ui}var je=Vi;var Be=Jn&&Jn.isMap,Yi=Be?Or(Be):je,De=Yi;var zi="[object Set]";function Wi(r){return nt(r)&&ln(r)==zi}var Fe=Wi;var Ge=Jn&&Jn.isSet,qi=Ge?Or(Ge):Fe,Ue=qi;var Hi=1,Ki=2,Ji=4,Ve="[object Arguments]",Zi="[object Array]",$i="[object Boolean]",Qi="[object Date]",ra="[object Error]",ze="[object Function]",ea="[object GeneratorFunction]",ta="[object Map]",na="[object Number]",qe="[object Object]",oa="[object RegExp]",ia="[object Set]",sa="[object String]",ua="[object Symbol]",da="[object WeakMap]",ca="[object ArrayBuffer]",pa="[object DataView]",la="[object Float32Array]",ma="[object Float64Array]",ha="[object Int8Array]",ga="[object Int16Array]",va="[object Int32Array]",ba="[object Uint8Array]",ya="[object Uint8ClampedArray]",wa="[object Uint16Array]",_a="[object Uint32Array]",E={};E[Ve]=E[Zi]=E[ca]=E[pa]=E[$i]=E[Qi]=E[la]=E[ma]=E[ha]=E[ga]=E[va]=E[ta]=E[na]=E[qe]=E[oa]=E[ia]=E[sa]=E[ua]=E[ba]=E[ya]=E[wa]=E[_a]=!0;E[ra]=E[ze]=E[da]=!1;function gr(r,e,n,o,a,f){var s,d=e&Hi,c=e&Ki,p=e&Ji;if(n)s=a?n(r,o,a,f):n(r);if(s!==void 0)return s;if(!Oe(r))return r;var l=oe(r);if(l){if(s=Pe(r),!d)return dr(r,s)}else{var m=ln(r),h=m==ze||m==ea;if(kn(r))return Z(r,d);if(m==qe||m==Ve||h&&!a){if(s=c||h?{}:hr(r),!d)return c?Se(r,ye(s,r)):Ie(r,be(s,r))}else{if(!E[m])return a?r:{};s=Me(r,m,d)}}f||(f=new tr);var v=f.get(r);if(v)return v;if(f.set(r,s),Ue(r))r.forEach(function(g){s.add(gr(g,e,n,g,r,f))});else if(De(r))r.forEach(function(g,w){s.set(w,gr(g,e,n,w,r,f))});var y=p?c?Ne:Mi:c?L:Ye,b=l?void 0:y(r);return po(b||r,function(g,w){if(b)w=g,g=r[w];M(s,w,gr(g,e,n,w,r,f))}),s}var He=gr;var Ea=1,xa=4;function Oa(r){return He(r,Ea|xa)}var Ke=Oa;var La=function(){return We.Date.now()},xr=La;var Je=Object.prototype,Ia=Je.hasOwnProperty,Sa=Ir(function(r,e){r=Object(r);var n=-1,o=e.length,a=o>2?e[2]:void 0;if(a&&T(e[0],e[1],a))o=1;while(++n<o){var f=e[n],s=L(f),d=-1,c=s.length;while(++d<c){var p=s[d],l=r[p];if(l===void 0||wn(l,Je[p])&&!Ia.call(r,p))r[p]=f[p]}}return r}),Ze=Sa;function Na(r,e,n){if(n!==void 0&&!wn(r[e],n)||n===void 0&&!(e in r))R(r,e,n)}var Q=Na;function Pa(r,e){if(e==="constructor"&&typeof r[e]==="function")return;if(e=="__proto__")return;return r[e]}var rr=Pa;function ka(r){return P(r,L(r))}var $e=ka;function Ta(r,e,n,o,a,f,s){var d=rr(r,n),c=rr(e,n),p=s.get(c);if(p){Q(r,n,p);return}var l=f?f(d,c,n+"",r,e,s):void 0,m=l===void 0;if(m){var h=oe(c),v=!h&&kn(c),y=!h&&!v&&$r(c);if(l=c,h||v||y)if(oe(d))l=d;else if(wo(d))l=dr(d);else if(v)m=!1,l=Z(c,!0);else if(y)m=!1,l=mr(c,!0);else l=[];else if(ge(c)||Fn(c)){if(l=d,Fn(d))l=$e(d);else if(!Oe(d)||Qn(d))l=hr(c)}else m=!1}if(m)s.set(c,l),a(l,c,o,f,s),s.delete(c);Q(r,n,l)}var Qe=Ta;function rt(r,e,n,o,a){if(r===e)return;qa(e,function(f,s){if(a||(a=new tr),Oe(f))Qe(r,e,s,n,rt,o,a);else{var d=o?o(rr(r,s),f,s+"",r,e,a):void 0;if(d===void 0)d=f;Q(r,s,d)}},L)}var et=rt;function Ca(r){var e=r==null?0:r.length;return e?r[e-1]:void 0}var X=Ca;function Aa(r){return function(e,n,o){var a=Object(e);if(!_t(e)){var f=Pt(n,3);e=Ye(e),n=function(d){return f(a[d],d,a)}}var s=r(e,n,o);return s>-1?a[f?e[s]:s]:void 0}}var tt=Aa;var Ra=Math.max;function Ma(r,e,n){var o=r==null?0:r.length;if(!o)return-1;var a=n==null?0:se(n);if(a<0)a=Ra(o+a,0);return uo(r,Pt(e,3),a)}var ot=Ma;var Da=tt(ot),ir=Da;function Xa(r,e){var n=-1,o=_t(r)?Array(r.length):[];return zr(r,function(a,f,s){o[++n]=e(a,f,s)}),o}var vr=Xa;function Ya(r,e){var n=oe(r)?Zn:vr;return n(r,Pt(e,3))}var _=Ya;function Wa(r,e){return r==null?r:qa(r,Ga(e),L)}var it=Wa;function Ka(r,e){return r&&Va(r,Ga(e))}var at=Ka;function Ja(r,e){return r>e}var ft=Ja;var Za=Object.prototype,Qa=Za.hasOwnProperty;function rf(r,e){return r!=null&&Qa.call(r,e)}var st=rf;function ef(r,e){return r!=null&&bo(r,e,st)}var br=ef;var tf="[object String]";function nf(r){return typeof r=="string"||!oe(r)&&nt(r)&&qt(r)==tf}var ut=nf;function of(r,e){return r<e}var yr=of;function af(r,e){var n={};return e=Pt(e,3),Va(r,function(o,a,f){R(n,a,e(o,a,f))}),n}var W=af;function ff(r,e,n){var o=-1,a=r.length;while(++o<a){var f=r[o],s=e(f);if(s!=null&&(d===void 0?s===s&&!cn(s):n(s,d)))var d=s,c=f}return c}var q=ff;function sf(r){return r&&r.length?q(r,tn,ft):void 0}var I=sf;var uf=ce(function(r,e,n){et(r,e,n)}),ar=uf;function df(r){return r&&r.length?q(r,tn,yr):void 0}var j=df;function cf(r,e){return r&&r.length?q(r,Pt(e,2),yr):void 0}var H=cf;function pf(r,e,n,o){if(!Oe(r))return r;e=Br(e,r);var a=-1,f=e.length,s=f-1,d=r;while(d!=null&&++a<f){var c=er(e[a]),p=n;if(c==="__proto__"||c==="constructor"||c==="prototype")return r;if(a!=s){var l=d[c];if(p=o?o(l,c,d):void 0,p===void 0)p=Oe(l)?l:Pr(e[a+1])?[]:{}}M(d,c,p),d=d[c]}return r}var dt=pf;function lf(r,e,n){var o=-1,a=e.length,f={};while(++o<a){var s=e[o],d=Fr(r,s);if(n(d,s))dt(f,Br(s,r),d)}return f}var ct=lf;function mf(r,e){var n=r.length;r.sort(e);while(n--)r[n]=r[n].value;return r}var pt=mf;function hf(r,e){if(r!==e){var n=r!==void 0,o=r===null,a=r===r,f=cn(r),s=e!==void 0,d=e===null,c=e===e,p=cn(e);if(!d&&!p&&!f&&r>e||f&&s&&c&&!d&&!p||o&&s&&c||!n&&c||!a)return 1;if(!o&&!f&&!p&&r<e||p&&n&&a&&!o&&!f||d&&n&&a||!s&&a||!c)return-1}return 0}var lt=hf;function gf(r,e,n){var o=-1,a=r.criteria,f=e.criteria,s=a.length,d=n.length;while(++o<s){var c=lt(a[o],f[o]);if(c){if(o>=d)return c;var p=n[o];return c*(p=="desc"?-1:1)}}return r.index-e.index}var mt=gf;function vf(r,e,n){if(e.length)e=Zn(e,function(f){if(oe(f))return function(s){return Fr(s,f.length===1?f[0]:f)};return f});else e=[tn];var o=-1;e=Zn(e,Or(Pt));var a=vr(r,function(f,s,d){var c=Zn(e,function(p){return p(f)});return{criteria:c,index:++o,value:f}});return pt(a,function(f,s){return mt(f,s,n)})}var ht=vf;var bf=_o("length"),gt=bf;var bt="\\ud800-\\udfff",yf="\\u0300-\\u036f",wf="\\ufe20-\\ufe2f",_f="\\u20d0-\\u20ff",Ef=yf+wf+_f,xf="\\ufe0e\\ufe0f",Of="["+bt+"]",Lr="["+Ef+"]",Sr="\\ud83c[\\udffb-\\udfff]",Lf="(?:"+Lr+"|"+Sr+")",yt="[^"+bt+"]",wt="(?:\\ud83c[\\udde6-\\uddff]){2}",Et="[\\ud800-\\udbff][\\udc00-\\udfff]",If="\\u200d",Ot=Lf+"?",Lt="["+xf+"]?",Sf="(?:"+If+"(?:"+[yt,wt,Et].join("|")+")"+Lt+Ot+")*",Nf=Lt+Ot+Sf,Pf="(?:"+[yt+Lr+"?",Lr,wt,Et,Of].join("|")+")",vt=RegExp(Sr+"(?="+Sr+")|"+Pf+Nf,"g");function kf(r){var e=vt.lastIndex=0;while(vt.test(r))++e;return e}var It=kf;function Tf(r){return ve(r)?It(r):gt(r)}var St=Tf;function Cf(r,e){return ct(r,e,function(n,o){return xo(r,o)})}var Nt=Cf;var Af=me(function(r,e){return r==null?{}:Nt(r,e)}),K=Af;var{ceil:Rf,max:Mf}=Math;function jf(r,e,n,o){var a=-1,f=Mf(Rf((e-r)/(n||1)),0),s=Array(f);while(f--)s[o?f:++a]=r,r+=n;return s}var kt=jf;function Bf(r){return function(e,n,o){if(o&&typeof o!="number"&&T(e,n,o))n=o=void 0;if(e=V(e),n===void 0)n=e,e=0;else n=V(n);return o=o===void 0?e<n?1:-1:V(o),kt(e,n,o,r)}}var Tt=Bf;var Df=Tt(),N=Df;var Ff="[object Map]",Gf="[object Set]";function Xf(r){if(r==null)return 0;if(_t(r))return ut(r)?St(r):r.length;var e=ln(r);if(e==Ff||e==Gf)return r.size;return Fa(r).length}var Ct=Xf;var Uf=Ir(function(r,e){if(r==null)return[];var n=e.length;if(n>1&&T(r,e[0],e[1]))e=[];else if(n>2&&T(e[0],e[1],e[2]))e=[e[0]];return ht(r,Ha(e,1),[])}),C=Uf;var Vf=0;function Yf(r){var e=++Vf;return go(r)+e}var J=Yf;function zf(r,e,n){var o=-1,a=r.length,f=e.length,s={};while(++o<a){var d=o<f?e[o]:void 0;n(s,r[o],d)}return s}var At=zf;function Wf(r,e){return At(r||[],e||[],M)}var Nr=Wf;class kr{constructor(){var r={};r._next=r._prev=r,this._sentinel=r}dequeue(){var r=this._sentinel,e=r._prev;if(e!==r)return Rt(e),e}enqueue(r){var e=this._sentinel;if(r._prev&&r._next)Rt(r);r._next=e._next,e._next._prev=r,e._next=r,r._prev=e}toString(){var r=[],e=this._sentinel,n=e._prev;while(n!==e)r.push(JSON.stringify(n,qf)),n=n._prev;return"["+r.join(", ")+"]"}}function Rt(r){r._prev._next=r._next,r._next._prev=r._prev,delete r._next,delete r._prev}function qf(r,e){if(r!=="_next"&&r!=="_prev")return e}var Hf=nn(1);function Mt(r,e){if(r.nodeCount()<=1)return[];var n=Jf(r,e||Hf),o=Kf(n.graph,n.buckets,n.zeroIdx);return S(_(o,function(a){return r.outEdges(a.v,a.w)}))}function Kf(r,e,n){var o=[],a=e[e.length-1],f=e[0],s;while(r.nodeCount()){while(s=f.dequeue())Tr(r,e,n,s);while(s=a.dequeue())Tr(r,e,n,s);if(r.nodeCount()){for(var d=e.length-2;d>0;--d)if(s=e[d].dequeue(),s){o=o.concat(Tr(r,e,n,s,!0));break}}}return o}function Tr(r,e,n,o,a){var f=a?[]:void 0;return x(r.inEdges(o.v),function(s){var d=r.edge(s),c=r.node(s.v);if(a)f.push({v:s.v,w:s.w});c.out-=d,Cr(e,n,c)}),x(r.outEdges(o.v),function(s){var d=r.edge(s),c=s.w,p=r.node(c);p.in-=d,Cr(e,n,p)}),r.removeNode(o.v),f}function Jf(r,e){var n=new xe,o=0,a=0;x(r.nodes(),function(d){n.setNode(d,{v:d,in:0,out:0})}),x(r.edges(),function(d){var c=n.edge(d.v,d.w)||0,p=e(d),l=c+p;n.setEdge(d.v,d.w,l),a=Math.max(a,n.node(d.v).out+=p),o=Math.max(o,n.node(d.w).in+=p)});var f=N(a+o+3).map(function(){return new kr}),s=o+1;return x(n.nodes(),function(d){Cr(f,s,n.node(d))}),{graph:n,buckets:f,zeroIdx:s}}function Cr(r,e,n){if(!n.out)r[0].enqueue(n);else if(!n.in)r[r.length-1].enqueue(n);else r[n.out-n.in+e].enqueue(n)}function jt(r){var e=r.graph().acyclicer==="greedy"?Mt(r,n(r)):Zf(r);x(e,function(o){var a=r.edge(o);r.removeEdge(o),a.forwardName=o.name,a.reversed=!0,r.setEdge(o.w,o.v,a,J("rev"))});function n(o){return function(a){return o.edge(a).weight}}}function Zf(r){var e=[],n={},o={};function a(f){if(Object.prototype.hasOwnProperty.call(o,f))return;o[f]=!0,n[f]=!0,x(r.outEdges(f),function(s){if(Object.prototype.hasOwnProperty.call(n,s.w))e.push(s);else a(s.w)}),delete n[f]}return x(r.nodes(),a),e}function Bt(r){x(r.edges(),function(e){var n=r.edge(e);if(n.reversed){r.removeEdge(e);var o=n.forwardName;delete n.reversed,delete n.forwardName,r.setEdge(e.w,e.v,n,o)}})}function k(r,e,n,o){var a;do a=J(o);while(r.hasNode(a));return n.dummy=e,r.setNode(a,n),a}function Ft(r){var e=new xe().setGraph(r.graph());return x(r.nodes(),function(n){e.setNode(n,r.node(n))}),x(r.edges(),function(n){var o=e.edge(n.v,n.w)||{weight:0,minlen:1},a=r.edge(n);e.setEdge(n.v,n.w,{weight:o.weight+a.weight,minlen:Math.max(o.minlen,a.minlen)})}),e}function wr(r){var e=new xe({multigraph:r.isMultigraph()}).setGraph(r.graph());return x(r.nodes(),function(n){if(!r.children(n).length)e.setNode(n,r.node(n))}),x(r.edges(),function(n){e.setEdge(n,r.edge(n))}),e}function Ar(r,e){var{x:n,y:o}=r,a=e.x-n,f=e.y-o,s=r.width/2,d=r.height/2;if(!a&&!f)throw Error("Not possible to find intersection inside of the rectangle");var c,p;if(Math.abs(f)*s>Math.abs(a)*d){if(f<0)d=-d;c=d*a/f,p=d}else{if(a<0)s=-s;c=s,p=s*f/a}return{x:n+c,y:o+p}}function D(r){var e=_(N(Mr(r)+1),function(){return[]});return x(r.nodes(),function(n){var o=r.node(n),a=o.rank;if(!Xe(a))e[a][o.order]=n}),e}function Gt(r){var e=j(_(r.nodes(),function(n){return r.node(n).rank}));x(r.nodes(),function(n){var o=r.node(n);if(br(o,"rank"))o.rank-=e})}function Xt(r){var e=j(_(r.nodes(),function(f){return r.node(f).rank})),n=[];x(r.nodes(),function(f){var s=r.node(f).rank-e;if(!n[s])n[s]=[];n[s].push(f)});var o=0,a=r.graph().nodeRankFactor;x(n,function(f,s){if(Xe(f)&&s%a!==0)--o;else if(o)x(f,function(d){r.node(d).rank+=o})})}function Rr(r,e,n,o){var a={width:0,height:0};if(arguments.length>=4)a.rank=n,a.order=o;return k(r,"border",a,e)}function Mr(r){return I(_(r.nodes(),function(e){var n=r.node(e).rank;if(!Xe(n))return n}))}function Ut(r,e){var n={lhs:[],rhs:[]};return x(r,function(o){if(e(o))n.lhs.push(o);else n.rhs.push(o)}),n}function Yt(r,e){var n=xr();try{return e()}finally{console.log(r+" time: "+(xr()-n)+"ms")}}function zt(r,e){return e()}function Ht(r){function e(n){var o=r.children(n),a=r.node(n);if(o.length)x(o,e);if(Object.prototype.hasOwnProperty.call(a,"minRank")){a.borderLeft=[],a.borderRight=[];for(var f=a.minRank,s=a.maxRank+1;f<s;++f)Wt(r,"borderLeft","_bl",n,a,f),Wt(r,"borderRight","_br",n,a,f)}}x(r.children(),e)}function Wt(r,e,n,o,a,f){var s={width:0,height:0,rank:f,borderType:e},d=a[e][f-1],c=k(r,"border",s,n);if(a[e][f]=c,r.setParent(c,o),d)r.setEdge(d,c,{weight:1})}function Jt(r){var e=r.graph().rankdir.toLowerCase();if(e==="lr"||e==="rl")$t(r)}function Zt(r){var e=r.graph().rankdir.toLowerCase();if(e==="bt"||e==="rl")$f(r);if(e==="lr"||e==="rl")Qf(r),$t(r)}function $t(r){x(r.nodes(),function(e){Kt(r.node(e))}),x(r.edges(),function(e){Kt(r.edge(e))})}function Kt(r){var e=r.width;r.width=r.height,r.height=e}function $f(r){x(r.nodes(),function(e){jr(r.node(e))}),x(r.edges(),function(e){var n=r.edge(e);if(x(n.points,jr),Object.prototype.hasOwnProperty.call(n,"y"))jr(n)})}function jr(r){r.y=-r.y}function Qf(r){x(r.nodes(),function(e){Gr(r.node(e))}),x(r.edges(),function(e){var n=r.edge(e);if(x(n.points,Gr),Object.prototype.hasOwnProperty.call(n,"x"))Gr(n)})}function Gr(r){var e=r.x;r.x=r.y,r.y=e}function Qt(r){r.graph().dummyChains=[],x(r.edges(),function(e){es(r,e)})}function es(r,e){var n=e.v,o=r.node(n).rank,a=e.w,f=r.node(a).rank,s=e.name,d=r.edge(e),c=d.labelRank;if(f===o+1)return;r.removeEdge(e);var p=void 0,l,m;for(m=0,++o;o<f;++m,++o){if(d.points=[],p={width:0,height:0,edgeLabel:d,edgeObj:e,rank:o},l=k(r,"edge",p,"_d"),o===c)p.width=d.width,p.height=d.height,p.dummy="edge-label",p.labelpos=d.labelpos;if(r.setEdge(n,l,{weight:d.weight},s),m===0)r.graph().dummyChains.push(l);n=l}r.setEdge(n,a,{weight:d.weight},s)}function rn(r){x(r.graph().dummyChains,function(e){var n=r.node(e),o=n.edgeLabel,a;r.setEdge(n.edgeObj,o);while(n.dummy){if(a=r.successors(e)[0],r.removeNode(e),o.points.push({x:n.x,y:n.y}),n.dummy==="edge-label")o.x=n.x,o.y=n.y,o.width=n.width,o.height=n.height;e=a,n=r.node(e)}})}function fr(r){var e={};function n(o){var a=r.node(o);if(Object.prototype.hasOwnProperty.call(e,o))return a.rank;e[o]=!0;var f=j(_(r.outEdges(o),function(s){return n(s.w)-r.edge(s).minlen}));if(f===Number.POSITIVE_INFINITY||f===void 0||f===null)f=0;return a.rank=f}x(r.sources(),n)}function U(r,e){return r.node(e.w).rank-r.node(e.v).rank-r.edge(e).minlen}function _r(r){var e=new xe({directed:!1}),n=r.nodes()[0],o=r.nodeCount();e.setNode(n,{});var a,f;while(ts(e,r)<o)a=ns(e,r),f=e.hasNode(a.v)?U(r,a):-U(r,a),os(e,r,f);return e}function ts(r,e){function n(o){x(e.nodeEdges(o),function(a){var f=a.v,s=o===f?a.w:f;if(!r.hasNode(s)&&!U(e,a))r.setNode(s,{}),r.setEdge(o,s,{}),n(s)})}return x(r.nodes(),n),r.nodeCount()}function ns(r,e){return H(e.edges(),function(n){if(r.hasNode(n.v)!==r.hasNode(n.w))return U(e,n)})}function os(r,e,n){x(r.nodes(),function(o){e.node(o).rank+=n})}var dh=nn(1);var vh=nn(1);Xr.CycleException=ur;function Xr(r){var e={},n={},o=[];function a(f){if(Object.prototype.hasOwnProperty.call(n,f))throw new ur;if(!Object.prototype.hasOwnProperty.call(e,f))n[f]=!0,e[f]=!0,x(r.predecessors(f),a),delete n[f],o.push(f)}if(x(r.sinks(),a),Ct(e)!==r.nodeCount())throw new ur;return o}function ur(){}ur.prototype=Error();function Er(r,e,n){if(!oe(e))e=[e];var o=(r.isDirected()?r.successors:r.neighbors).bind(r),a=[],f={};return x(e,function(s){if(!r.hasNode(s))throw Error("Graph does not have node: "+s);on(r,s,n==="post",f,o,a)}),a}function on(r,e,n,o,a,f){if(!Object.prototype.hasOwnProperty.call(o,e)){if(o[e]=!0,!n)f.push(e);if(x(a(e),function(s){on(r,s,n,o,a,f)}),n)f.push(e)}}function Ur(r,e){return Er(r,e,"post")}function Vr(r,e){return Er(r,e,"pre")}G.initLowLimValues=Wr;G.initCutValues=Yr;G.calcCutValue=sn;G.leaveEdge=dn;G.enterEdge=mn;G.exchangeEdges=hn;function G(r){r=Ft(r),fr(r);var e=_r(r);Wr(e),Yr(e,r);var n,o;while(n=dn(e))o=mn(e,r,n),hn(e,r,n,o)}function Yr(r,e){var n=Ur(r,r.nodes());n=n.slice(0,n.length-1),x(n,function(o){us(r,e,o)})}function us(r,e,n){var o=r.node(n),a=o.parent;r.edge(n,a).cutvalue=sn(r,e,n)}function sn(r,e,n){var o=r.node(n),a=o.parent,f=!0,s=e.edge(n,a),d=0;if(!s)f=!1,s=e.edge(a,n);return d=s.weight,x(e.nodeEdges(n),function(c){var p=c.v===n,l=p?c.w:c.v;if(l!==a){var m=p===f,h=e.edge(c).weight;if(d+=m?h:-h,cs(r,n,l)){var v=r.edge(n,l).cutvalue;d+=m?-v:v}}}),d}function Wr(r,e){if(arguments.length<2)e=r.nodes()[0];un(r,{},1,e)}function un(r,e,n,o,a){var f=n,s=r.node(o);if(e[o]=!0,x(r.neighbors(o),function(d){if(!Object.prototype.hasOwnProperty.call(e,d))n=un(r,e,n,d,o)}),s.low=f,s.lim=n++,a)s.parent=a;else delete s.parent;return n}function dn(r){return ir(r.edges(),function(e){return r.edge(e).cutvalue<0})}function mn(r,e,n){var{v:o,w:a}=n;if(!e.hasEdge(o,a))o=n.w,a=n.v;var f=r.node(o),s=r.node(a),d=f,c=!1;if(f.lim>s.lim)d=s,c=!0;var p=Vt(e.edges(),function(l){return c===an(r,r.node(l.v),d)&&c!==an(r,r.node(l.w),d)});return H(p,function(l){return U(e,l)})}function hn(r,e,n,o){var{v:a,w:f}=n;r.removeEdge(a,f),r.setEdge(o.v,o.w,{}),Wr(r),Yr(r,e),ds(r,e)}function ds(r,e){var n=ir(r.nodes(),function(a){return!e.node(a).parent}),o=Vr(r,n);o=o.slice(1),x(o,function(a){var f=r.node(a).parent,s=e.edge(a,f),d=!1;if(!s)s=e.edge(f,a),d=!0;e.node(a).rank=e.node(f).rank+(d?s.minlen:-s.minlen)})}function cs(r,e,n){return r.hasEdge(e,n)}function an(r,e,n){return n.low<=e.lim&&e.lim<=n.lim}function qr(r){switch(r.graph().ranker){case"network-simplex":gn(r);break;case"tight-tree":ls(r);break;case"longest-path":ps(r);break;default:gn(r)}}var ps=fr;function ls(r){fr(r),_r(r)}function gn(r){G(r)}function vn(r){var e=k(r,"root",{},"_root"),n=ms(r),o=I(pn(n))-1,a=2*o+1;r.graph().nestingRoot=e,x(r.edges(),function(s){r.edge(s).minlen*=a});var f=hs(r)+1;x(r.children(),function(s){bn(r,e,a,f,o,n,s)}),r.graph().nodeRankFactor=a}function bn(r,e,n,o,a,f,s){var d=r.children(s);if(!d.length){if(s!==e)r.setEdge(e,s,{weight:0,minlen:n});return}var c=Rr(r,"_bt"),p=Rr(r,"_bb"),l=r.node(s);if(r.setParent(c,s),l.borderTop=c,r.setParent(p,s),l.borderBottom=p,x(d,function(m){bn(r,e,n,o,a,f,m);var h=r.node(m),v=h.borderTop?h.borderTop:m,y=h.borderBottom?h.borderBottom:m,b=h.borderTop?o:2*o,g=v!==y?1:a-f[s]+1;r.setEdge(c,v,{weight:b,minlen:g,nestingEdge:!0}),r.setEdge(y,p,{weight:b,minlen:g,nestingEdge:!0})}),!r.parent(s))r.setEdge(e,c,{weight:0,minlen:a+f[s]})}function ms(r){var e={};function n(o,a){var f=r.children(o);if(f&&f.length)x(f,function(s){n(s,a+1)});e[o]=a}return x(r.children(),function(o){n(o,1)}),e}function hs(r){return nr(r.edges(),function(e,n){return e+r.edge(n).weight},0)}function yn(r){var e=r.graph();r.removeNode(e.nestingRoot),delete e.nestingRoot,x(r.edges(),function(n){var o=r.edge(n);if(o.nestingEdge)r.removeEdge(n)})}function _n(r,e,n){var o={},a;x(n,function(f){var s=r.parent(f),d,c;while(s){if(d=r.parent(s),d)c=o[d],o[d]=s;else c=a,a=s;if(c&&c!==s){e.setEdge(c,s);return}s=d}})}function En(r,e,n){var o=vs(r),a=new xe({compound:!0}).setGraph({root:o}).setDefaultNodeLabel(function(f){return r.node(f)});return x(r.nodes(),function(f){var s=r.node(f),d=r.parent(f);if(s.rank===e||s.minRank<=e&&e<=s.maxRank){if(a.setNode(f),a.setParent(f,d||o),x(r[n](f),function(c){var p=c.v===f?c.w:c.v,l=a.edge(p,f),m=!Xe(l)?l.weight:0;a.setEdge(p,f,{weight:r.edge(c).weight+m})}),Object.prototype.hasOwnProperty.call(s,"minRank"))a.setNode(f,{borderLeft:s.borderLeft[e],borderRight:s.borderRight[e]})}}),a}function vs(r){var e;while(r.hasNode(e=J("_root")));return e}function xn(r,e){var n=0;for(var o=1;o<e.length;++o)n+=bs(r,e[o-1],e[o]);return n}function bs(r,e,n){var o=Nr(n,_(n,function(p,l){return l})),a=S(_(e,function(p){return C(_(r.outEdges(p),function(l){return{pos:o[l.w],weight:r.edge(l).weight}}),"pos")})),f=1;while(f<n.length)f<<=1;var s=2*f-1;f-=1;var d=_(Array(s),function(){return 0}),c=0;return x(a.forEach(function(p){var l=p.pos+f;d[l]+=p.weight;var m=0;while(l>0){if(l%2)m+=d[l+1];l=l-1>>1,d[l]+=p.weight}c+=p.weight*m})),c}function On(r){var e={},n=Vt(r.nodes(),function(d){return!r.children(d).length}),o=I(_(n,function(d){return r.node(d).rank})),a=_(N(o+1),function(){return[]});function f(d){if(br(e,d))return;e[d]=!0;var c=r.node(d);a[c.rank].push(d),x(r.successors(d),f)}var s=C(n,function(d){return r.node(d).rank});return x(s,f),a}function Ln(r,e){return _(e,function(n){var o=r.inEdges(n);if(!o.length)return{v:n};else{var a=nr(o,function(f,s){var d=r.edge(s),c=r.node(s.v);return{sum:f.sum+d.weight*c.order,weight:f.weight+d.weight}},{sum:0,weight:0});return{v:n,barycenter:a.sum/a.weight,weight:a.weight}}})}function In(r,e){var n={};x(r,function(a,f){var s=n[a.v]={indegree:0,in:[],out:[],vs:[a.v],i:f};if(!Xe(a.barycenter))s.barycenter=a.barycenter,s.weight=a.weight}),x(e.edges(),function(a){var f=n[a.v],s=n[a.w];if(!Xe(f)&&!Xe(s))s.indegree++,f.out.push(n[a.w])});var o=Vt(n,function(a){return!a.indegree});return ys(o)}function ys(r){var e=[];function n(f){return function(s){if(s.merged)return;if(Xe(s.barycenter)||Xe(f.barycenter)||s.barycenter>=f.barycenter)ws(f,s)}}function o(f){return function(s){if(s.in.push(f),--s.indegree===0)r.push(s)}}while(r.length){var a=r.pop();e.push(a),x(a.in.reverse(),n(a)),x(a.out,o(a))}return _(Vt(e,function(f){return!f.merged}),function(f){return K(f,["vs","i","barycenter","weight"])})}function ws(r,e){var n=0,o=0;if(r.weight)n+=r.barycenter*r.weight,o+=r.weight;if(e.weight)n+=e.barycenter*e.weight,o+=e.weight;r.vs=e.vs.concat(r.vs),r.barycenter=n/o,r.weight=o,r.i=Math.min(e.i,r.i),e.merged=!0}function Nn(r,e){var n=Ut(r,function(l){return Object.prototype.hasOwnProperty.call(l,"barycenter")}),o=n.lhs,a=C(n.rhs,function(l){return-l.i}),f=[],s=0,d=0,c=0;o.sort(_s(!!e)),c=Sn(f,a,c),x(o,function(l){c+=l.vs.length,f.push(l.vs),s+=l.barycenter*l.weight,d+=l.weight,c=Sn(f,a,c)});var p={vs:S(f)};if(d)p.barycenter=s/d,p.weight=d;return p}function Sn(r,e,n){var o;while(e.length&&(o=X(e)).i<=n)e.pop(),r.push(o.vs),n++;return n}function _s(r){return function(e,n){if(e.barycenter<n.barycenter)return-1;else if(e.barycenter>n.barycenter)return 1;return!r?e.i-n.i:n.i-e.i}}function Hr(r,e,n,o){var a=r.children(e),f=r.node(e),s=f?f.borderLeft:void 0,d=f?f.borderRight:void 0,c={};if(s)a=Vt(a,function(y){return y!==s&&y!==d});var p=Ln(r,a);x(p,function(y){if(r.children(y.v).length){var b=Hr(r,y.v,n,o);if(c[y.v]=b,Object.prototype.hasOwnProperty.call(b,"barycenter"))xs(y,b)}});var l=In(p,n);Es(l,c);var m=Nn(l,o);if(s){if(m.vs=S([s,m.vs,d]),r.predecessors(s).length){var h=r.node(r.predecessors(s)[0]),v=r.node(r.predecessors(d)[0]);if(!Object.prototype.hasOwnProperty.call(m,"barycenter"))m.barycenter=0,m.weight=0;m.barycenter=(m.barycenter*m.weight+h.order+v.order)/(m.weight+2),m.weight+=2}}return m}function Es(r,e){x(r,function(n){n.vs=S(n.vs.map(function(o){if(e[o])return e[o].vs;return o}))})}function xs(r,e){if(!Xe(r.barycenter))r.barycenter=(r.barycenter*r.weight+e.barycenter*e.weight)/(r.weight+e.weight),r.weight+=e.weight;else r.barycenter=e.barycenter,r.weight=e.weight}function Mn(r){var e=Mr(r),n=Pn(r,N(1,e+1),"inEdges"),o=Pn(r,N(e-1,-1,-1),"outEdges"),a=On(r);Rn(r,a);var f=Number.POSITIVE_INFINITY,s;for(var d=0,c=0;c<4;++d,++c){Os(d%2?n:o,d%4>=2),a=D(r);var p=xn(r,a);if(p<f)c=0,s=Ke(a),f=p}Rn(r,s)}function Pn(r,e,n){return _(e,function(o){return En(r,o,n)})}function Os(r,e){var n=new xe;x(r,function(o){var a=o.graph().root,f=Hr(o,a,n,e);x(f.vs,function(s,d){o.node(s).order=d}),_n(o,n,f.vs)})}function Rn(r,e){x(e,function(n){x(n,function(o,a){r.node(o).order=a})})}function jn(r){var e=Is(r);x(r.graph().dummyChains,function(n){var o=r.node(n),a=o.edgeObj,f=Ls(r,e,a.v,a.w),{path:s,lca:d}=f,c=0,p=s[c],l=!0;while(n!==a.w){if(o=r.node(n),l){while((p=s[c])!==d&&r.node(p).maxRank<o.rank)c++;if(p===d)l=!1}if(!l){while(c<s.length-1&&r.node(p=s[c+1]).minRank<=o.rank)c++;p=s[c]}r.setParent(n,p),n=r.successors(n)[0]}})}function Ls(r,e,n,o){var a=[],f=[],s=Math.min(e[n].low,e[o].low),d=Math.max(e[n].lim,e[o].lim),c,p;c=n;do c=r.parent(c),a.push(c);while(c&&(e[c].low>s||d>e[c].lim));p=c,c=o;while((c=r.parent(c))!==p)f.push(c);return{path:a.concat(f.reverse()),lca:p}}function Is(r){var e={},n=0;function o(a){var f=n;x(r.children(a),o),e[a]={low:f,lim:n++}}return x(r.children(),o),e}function Ss(r,e){var n={};function o(a,f){var s=0,d=0,c=a.length,p=X(f);return x(f,function(l,m){var h=Ps(r,l),v=h?r.node(h).order:c;if(h||l===p)x(f.slice(d,m+1),function(y){x(r.predecessors(y),function(b){var g=r.node(b),w=g.order;if((w<s||v<w)&&!(g.dummy&&r.node(y).dummy))Bn(n,b,y)})}),d=m+1,s=v}),f}return nr(e,o),n}function Ns(r,e){var n={};function o(f,s,d,c,p){var l;x(N(s,d),function(m){if(l=f[m],r.node(l).dummy)x(r.predecessors(l),function(h){var v=r.node(h);if(v.dummy&&(v.order<c||v.order>p))Bn(n,h,l)})})}function a(f,s){var d=-1,c,p=0;return x(s,function(l,m){if(r.node(l).dummy==="border"){var h=r.predecessors(l);if(h.length)c=r.node(h[0]).order,o(s,p,m,d,c),p=m,d=c}o(s,p,s.length,c,f.length)}),s}return nr(e,a),n}function Ps(r,e){if(r.node(e).dummy)return ir(r.predecessors(e),function(n){return r.node(n).dummy})}function Bn(r,e,n){if(e>n){var o=e;e=n,n=o}if(!Object.prototype.hasOwnProperty.call(r,e))Object.defineProperty(r,e,{enumerable:!0,configurable:!0,value:{},writable:!0});var a=r[e];Object.defineProperty(a,n,{enumerable:!0,configurable:!0,value:!0,writable:!0})}function ks(r,e,n){if(e>n){var o=e;e=n,n=o}return!!r[e]&&Object.prototype.hasOwnProperty.call(r[e],n)}function Ts(r,e,n,o){var a={},f={},s={};return x(e,function(d){x(d,function(c,p){a[c]=c,f[c]=c,s[c]=p})}),x(e,function(d){var c=-1;x(d,function(p){var l=o(p);if(l.length){l=C(l,function(b){return s[b]});var m=(l.length-1)/2;for(var h=Math.floor(m),v=Math.ceil(m);h<=v;++h){var y=l[h];if(f[p]===p&&c<s[y]&&!ks(n,p,y))f[y]=p,f[p]=a[p]=a[y],c=s[y]}}})}),{root:a,align:f}}function Cs(r,e,n,o,a){var f={},s=As(r,e,n,a),d=a?"borderLeft":"borderRight";function c(m,h){var v=s.nodes(),y=v.pop(),b={};while(y){if(b[y])m(y);else b[y]=!0,v.push(y),v=v.concat(h(y));y=v.pop()}}function p(m){f[m]=s.inEdges(m).reduce(function(h,v){return Math.max(h,f[v.v]+s.edge(v))},0)}function l(m){var h=s.outEdges(m).reduce(function(y,b){return Math.min(y,f[b.w]-s.edge(b))},Number.POSITIVE_INFINITY),v=r.node(m);if(h!==Number.POSITIVE_INFINITY&&v.borderType!==d)f[m]=Math.max(f[m],h)}return c(p,s.predecessors.bind(s)),c(l,s.successors.bind(s)),x(o,function(m){f[m]=f[n[m]]}),f}function As(r,e,n,o){var a=new xe,f=r.graph(),s=Bs(f.nodesep,f.edgesep,o);return x(e,function(d){var c;x(d,function(p){var l=n[p];if(a.setNode(l),c){var m=n[c],h=a.edge(m,l);a.setEdge(m,l,Math.max(s(r,p,c),h||0))}c=p})}),a}function Rs(r,e){return H(pn(e),function(n){var{NEGATIVE_INFINITY:o,POSITIVE_INFINITY:a}=Number;return it(n,function(f,s){var d=Ds(r,s)/2;o=Math.max(f+d,o),a=Math.min(f-d,a)}),o-a})}function Ms(r,e){var n=pn(e),o=j(n),a=I(n);x(["u","d"],function(f){x(["l","r"],function(s){var d=f+s,c=r[d],p;if(c===e)return;var l=pn(c);if(p=s==="l"?o-j(l):a-I(l),p)r[d]=W(c,function(m){return m+p})})})}function js(r,e){return W(r.ul,function(n,o){if(e)return r[e.toLowerCase()][o];else{var a=C(_(r,o));return(a[1]+a[2])/2}})}function Dn(r){var e=D(r),n=ar(Ss(r,e),Ns(r,e)),o={},a;x(["u","d"],function(s){a=s==="u"?e:pn(e).reverse(),x(["l","r"],function(d){if(d==="r")a=_(a,function(m){return pn(m).reverse()});var c=(s==="u"?r.predecessors:r.successors).bind(r),p=Ts(r,a,n,c),l=Cs(r,a,p.root,p.align,d==="r");if(d==="r")l=W(l,function(m){return-m});o[s+d]=l})});var f=Rs(r,o);return Ms(o,f),js(o,r.graph().align)}function Bs(r,e,n){return function(o,a,f){var s=o.node(a),d=o.node(f),c=0,p;if(c+=s.width/2,Object.prototype.hasOwnProperty.call(s,"labelpos"))switch(s.labelpos.toLowerCase()){case"l":p=-s.width/2;break;case"r":p=s.width/2;break}if(p)c+=n?p:-p;if(p=0,c+=(s.dummy?e:r)/2,c+=(d.dummy?e:r)/2,c+=d.width/2,Object.prototype.hasOwnProperty.call(d,"labelpos"))switch(d.labelpos.toLowerCase()){case"l":p=d.width/2;break;case"r":p=-d.width/2;break}if(p)c+=n?p:-p;return p=0,c}}function Ds(r,e){return r.node(e).width}function Gn(r){r=wr(r),Fs(r),at(Dn(r),function(e,n){r.node(n).x=e})}function Fs(r){var e=D(r),n=r.graph().ranksep,o=0;x(e,function(a){var f=I(_(a,function(s){return r.node(s).height}));x(a,function(s){r.node(s).y=o+f/2}),o+=f+n})}function Zr(r,e){var n=e&&e.debugTiming?Yt:zt;n("layout",()=>{var o=n(" buildLayoutGraph",()=>Js(r));n(" runLayout",()=>Gs(o,n)),n(" updateInputGraph",()=>Xs(r,o))})}function Gs(r,e){e(" makeSpaceForEdgeLabels",()=>Zs(r)),e(" removeSelfEdges",()=>au(r)),e(" acyclic",()=>jt(r)),e(" nestingGraph.run",()=>vn(r)),e(" rank",()=>qr(wr(r))),e(" injectEdgeLabelProxies",()=>$s(r)),e(" removeEmptyRanks",()=>Xt(r)),e(" nestingGraph.cleanup",()=>yn(r)),e(" normalizeRanks",()=>Gt(r)),e(" assignRankMinMax",()=>Qs(r)),e(" removeEdgeLabelProxies",()=>ru(r)),e(" normalize.run",()=>Qt(r)),e(" parentDummyChains",()=>jn(r)),e(" addBorderSegments",()=>Ht(r)),e(" order",()=>Mn(r)),e(" insertSelfEdges",()=>fu(r)),e(" adjustCoordinateSystem",()=>Jt(r)),e(" position",()=>Gn(r)),e(" positionSelfEdges",()=>su(r)),e(" removeBorderNodes",()=>iu(r)),e(" normalize.undo",()=>rn(r)),e(" fixupEdgeLabelCoords",()=>nu(r)),e(" undoCoordinateSystem",()=>Zt(r)),e(" translateGraph",()=>eu(r)),e(" assignNodeIntersects",()=>tu(r)),e(" reversePoints",()=>ou(r)),e(" acyclic.undo",()=>Bt(r))}function Xs(r,e){x(r.nodes(),function(n){var o=r.node(n),a=e.node(n);if(o){if(o.x=a.x,o.y=a.y,e.children(n).length)o.width=a.width,o.height=a.height}}),x(r.edges(),function(n){var o=r.edge(n),a=e.edge(n);if(o.points=a.points,Object.prototype.hasOwnProperty.call(a,"x"))o.x=a.x,o.y=a.y}),r.graph().width=e.graph().width,r.graph().height=e.graph().height}var Us=["nodesep","edgesep","ranksep","marginx","marginy"],Vs={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},Ys=["acyclicer","ranker","rankdir","align"],zs=["width","height"],Ws={width:0,height:0},qs=["minlen","weight","width","height","labeloffset"],Hs={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},Ks=["labelpos"];function Js(r){var e=new xe({multigraph:!0,compound:!0}),n=Jr(r.graph());return e.setGraph(ar({},Vs,Kr(n,Us),K(n,Ys))),x(r.nodes(),function(o){var a=Jr(r.node(o));e.setNode(o,Ze(Kr(a,zs),Ws)),e.setParent(o,r.parent(o))}),x(r.edges(),function(o){var a=Jr(r.edge(o));e.setEdge(o,ar({},Hs,Kr(a,qs),K(a,Ks)))}),e}function Zs(r){var e=r.graph();e.ranksep/=2,x(r.edges(),function(n){var o=r.edge(n);if(o.minlen*=2,o.labelpos.toLowerCase()!=="c")if(e.rankdir==="TB"||e.rankdir==="BT")o.width+=o.labeloffset;else o.height+=o.labeloffset})}function $s(r){x(r.edges(),function(e){var n=r.edge(e);if(n.width&&n.height){var o=r.node(e.v),a=r.node(e.w),f={rank:(a.rank-o.rank)/2+o.rank,e};k(r,"edge-proxy",f,"_ep")}})}function Qs(r){var e=0;x(r.nodes(),function(n){var o=r.node(n);if(o.borderTop)o.minRank=r.node(o.borderTop).rank,o.maxRank=r.node(o.borderBottom).rank,e=I(e,o.maxRank)}),r.graph().maxRank=e}function ru(r){x(r.nodes(),function(e){var n=r.node(e);if(n.dummy==="edge-proxy")r.edge(n.e).labelRank=n.rank,r.removeNode(e)})}function eu(r){var e=Number.POSITIVE_INFINITY,n=0,o=Number.POSITIVE_INFINITY,a=0,f=r.graph(),s=f.marginx||0,d=f.marginy||0;function c(p){var{x:l,y:m,width:h,height:v}=p;e=Math.min(e,l-h/2),n=Math.max(n,l+h/2),o=Math.min(o,m-v/2),a=Math.max(a,m+v/2)}x(r.nodes(),function(p){c(r.node(p))}),x(r.edges(),function(p){var l=r.edge(p);if(Object.prototype.hasOwnProperty.call(l,"x"))c(l)}),e-=s,o-=d,x(r.nodes(),function(p){var l=r.node(p);l.x-=e,l.y-=o}),x(r.edges(),function(p){var l=r.edge(p);if(x(l.points,function(m){m.x-=e,m.y-=o}),Object.prototype.hasOwnProperty.call(l,"x"))l.x-=e;if(Object.prototype.hasOwnProperty.call(l,"y"))l.y-=o}),f.width=n-e+s,f.height=a-o+d}function tu(r){x(r.edges(),function(e){var n=r.edge(e),o=r.node(e.v),a=r.node(e.w),f,s;if(!n.points)n.points=[],f=a,s=o;else f=n.points[0],s=n.points[n.points.length-1];n.points.unshift(Ar(o,f)),n.points.push(Ar(a,s))})}function nu(r){x(r.edges(),function(e){var n=r.edge(e);if(Object.prototype.hasOwnProperty.call(n,"x")){if(n.labelpos==="l"||n.labelpos==="r")n.width-=n.labeloffset;switch(n.labelpos){case"l":n.x-=n.width/2+n.labeloffset;break;case"r":n.x+=n.width/2+n.labeloffset;break}}})}function ou(r){x(r.edges(),function(e){var n=r.edge(e);if(n.reversed)n.points.reverse()})}function iu(r){x(r.nodes(),function(e){if(r.children(e).length){var n=r.node(e),o=r.node(n.borderTop),a=r.node(n.borderBottom),f=r.node(X(n.borderLeft)),s=r.node(X(n.borderRight));n.width=Math.abs(s.x-f.x),n.height=Math.abs(a.y-o.y),n.x=f.x+n.width/2,n.y=o.y+n.height/2}}),x(r.nodes(),function(e){if(r.node(e).dummy==="border")r.removeNode(e)})}function au(r){x(r.edges(),function(e){if(e.v===e.w){var n=r.node(e.v);if(!n.selfEdges)n.selfEdges=[];n.selfEdges.push({e,label:r.edge(e)}),r.removeEdge(e)}})}function fu(r){var e=D(r);x(e,function(n){var o=0;x(n,function(a,f){var s=r.node(a);s.order=f+o,x(s.selfEdges,function(d){k(r,"selfedge",{width:d.label.width,height:d.label.height,rank:s.rank,order:f+ ++o,e:d.e,label:d.label},"_se")}),delete s.selfEdges})})}function su(r){x(r.nodes(),function(e){var n=r.node(e);if(n.dummy==="selfedge"){var o=r.node(n.e.v),a=o.x+o.width/2,f=o.y,s=n.x-a,d=o.height/2;r.setEdge(n.e,n.label),r.removeNode(e),n.label.points=[{x:a+2*s/3,y:f-d},{x:a+5*s/6,y:f-d},{x:a+s,y:f},{x:a+5*s/6,y:f+d},{x:a+2*s/3,y:f+d}],n.label.x=n.x,n.label.y=n.y}})}function Kr(r,e){return W(K(r,e),Number)}function Jr(r){var e={};return x(r,function(n,o){e[o.toLowerCase()]=n}),e}var Xn=t((r,e,n)=>Math.max(e,Math.min(n,r)),"clamp"),Un=t((r="TB")=>{switch(r){case"BT":return"bottom";case"LR":return"right";case"RL":return"left";case"TB":default:return"top"}},"getDefaultSelfLoopSide"),uu=t((r)=>r==="flowchart"||r==="flowchart-v2"||r==="stateDiagram"||r==="er"||r==="classDiagram","shouldMergeSelfLoopSegments"),du=["x","y","width","height","labelBBox","intersect","calcIntersect","diff","clusterNode"],cu=t((r,e,n,o,a)=>{let f=[],s=new Set;if(n.forEach(({start:l,end:m})=>{if(l!==o)s.add(l);if(m!==o)s.add(m)}),s.forEach((l)=>{let m=r.node(l);if(typeof m?.x==="number"&&typeof m?.y==="number")f.push(m)}),f.length===0)n.forEach(({edge:l})=>{(l.points??[]).forEach((m)=>{if(typeof m?.x==="number"&&typeof m?.y==="number")f.push(m)})});if(f.length===0)return Un(a);let d=f.reduce((l,m)=>({x:l.x+m.x/f.length,y:l.y+m.y/f.length}),{x:0,y:0}),c=d.x-e.x,p=d.y-e.y;if(Math.abs(c)>Math.abs(p))return c>0?"right":"left";if(Math.abs(p)>0)return p>0?"bottom":"top";return Un(a)},"getSelfLoopSide"),pu=t((r,e="top",n=0,o=0)=>{let a=r.x,f=r.y-n,s=r.width/2,d=r.height/2,c=Math.max(36,Math.min(100,r.width*0.8)),p=Xn(Math.max(o,r.width*0.35),36,c),l=Xn(Math.min(r.width,r.height)*0.45,24,48);switch(e){case"bottom":{let m=f+d;return[{x:a-p/2,y:m},{x:a-p/2,y:m+l},{x:a+p/2,y:m+l},{x:a+p/2,y:m}]}case"right":{let m=a+s;return[{x:m,y:f-p/2},{x:m+l,y:f-p/2},{x:m+l,y:f+p/2},{x:m,y:f+p/2}]}case"left":{let m=a-s;return[{x:m,y:f-p/2},{x:m-l,y:f-p/2},{x:m-l,y:f+p/2},{x:m,y:f+p/2}]}case"top":default:{let m=f-d;return[{x:a-p/2,y:m},{x:a-p/2,y:m-l},{x:a+p/2,y:m-l},{x:a+p/2,y:m}]}}},"getSelfLoopPoints"),lu=t((r,e,n="top",o=0,a={})=>{let s=r.x,d=r.y-o,c=a.width??0,p=a.height??0;switch(n){case"bottom":return{x:s,y:Math.max(...e.map((l)=>l.y))+p/2+4};case"right":return{x:Math.max(...e.map((l)=>l.x))+c/2+4,y:d};case"left":return{x:Math.min(...e.map((l)=>l.x))-c/2-4,y:d};case"top":default:return{x:s,y:Math.min(...e.map((l)=>l.y))-p/2-4}}},"getSelfLoopLabelPosition"),vc=t((r,e=0,{mergeSelfLoops:n=!0}={})=>{let o=new Map,a=[],f=r.graph()?.rankdir;return r.edges().forEach((s)=>{let d=r.edge(s);if(n&&d.selfLoop){let c=d.selfLoop.id;if(!o.has(c))o.set(c,[]);o.get(c).push({edge:d,start:s.v,end:s.w})}else a.push({edge:d,start:s.v,end:s.w})}),o.forEach((s)=>{if(s.length!==3){s.forEach((w)=>a.push(w));return}s.sort((w,A)=>w.edge.selfLoop.order-A.edge.selfLoop.order);let[d,c,p]=s,l=d.edge.originalEdge??c.edge.originalEdge??p.edge.originalEdge??c.edge,m=r.node(l.start);if(!m){s.forEach((w)=>a.push(w));return}let h={width:c.edge.width,height:c.edge.height},v=cu(r,m,s,l.start,f),y=pu(m,v,e,h.width??0),b=lu(m,y,v,e,h),g={...c.edge,...l,id:l.id,points:y,start:l.start,end:l.end,x:b.x,y:b.y,width:h.width,height:h.height,labelStyle:c.edge.labelStyle,fromCluster:d.edge.fromCluster??c.edge.fromCluster??p.edge.fromCluster,toCluster:d.edge.toCluster??c.edge.toCluster??p.edge.toCluster};delete g.selfLoop,delete g.originalEdge,a.push({edge:g,start:g.start,end:g.end})}),a},"getEdgesToRender"),Yn=t(async({element:r,graph:e,diagramType:n,id:o,parentCluster:a,siteConfig:f})=>{let s=e.graph().rankdir;i.trace("Dir in recursive render - dir:",s);let{clusters:d,edgePaths:c,edgeLabels:p,nodes:l,rootGroups:m}=oo(r,{edgePathsClass:"edgePaths"});if(!e.nodes())i.info("No nodes found for",e);else i.info("Recursive render XXX",e.nodes());if(e.edges().length>0)i.info("Recursive edges",e.edge(e.edges()[0]));let h=uu(n);await Promise.all(e.nodes().map(async function(b){let g=e.node(b);if(a!==void 0){let w=JSON.parse(JSON.stringify(a.clusterData));if(i.trace(`Setting data for parent cluster XXX
2
+ Node.id = `,b,`
3
+ data=`,w.height,`
4
+ Parent cluster`,a.height),e.setNode(a.id,w),!e.parent(b))i.trace("Setting parent",b,a.id),e.setParent(b,a.id,w)}if(i.info("(Insert) Node XXX"+b+": "+JSON.stringify(e.node(b))),g?.clusterNode){i.info("Cluster identified XBX",b,g.width,e.node(b));let{ranksep:w,nodesep:A}=e.graph();g.graph.setGraph({...g.graph.graph(),ranksep:w+25,nodesep:A});let Qr=await vu({element:l,graph:g.graph,diagramType:n,id:o,parentCluster:e.node(b),siteConfig:f}),re=Qr.elem;B(g,re),g.diff=Qr.diff||0,i.info("New compound node after recursive render XAX",b,"width",g.width,"height",g.height),Ic(re,g)}else if(e.children(b).length>0)i.trace("Cluster - the non recursive path XBX",b,g.id,g,g.width,"Graph:",e),i.trace(aa(g.id,e)),ne.set(g.id,{id:aa(g.id,e),node:g});else i.trace("Node - the non recursive path XAX",b,l,e.node(b),s),await so(l,e.node(b),{config:f,dir:s})})),await t(async()=>{let b=e.edges().map(async function(g){let w=e.edge(g.v,g.w,g.name);if(i.info("Edge "+g.v+" -> "+g.w+": "+JSON.stringify(g)),i.info("Edge "+g.v+" -> "+g.w+": ",g," ",JSON.stringify(e.edge(g))),i.info("Fix",ne,"ids:",g.v,g.w,"Translating: ",ne.get(g.v),ne.get(g.w)),h&&w.selfLoop){if(w.selfLoop.order!==1)return;let A={...w.originalEdge,...w,id:w.selfLoop.id,startLabelLeft:w.originalEdge?.startLabelLeft??w.startLabelLeft,startLabelRight:w.originalEdge?.startLabelRight??w.startLabelRight,endLabelLeft:w.originalEdge?.endLabelLeft??w.endLabelLeft,endLabelRight:w.originalEdge?.endLabelRight??w.endLabelRight};await An(p,A),w.width=A.width,w.height=A.height,w.labelStyle=A.labelStyle;return}await An(p,w)});await Promise.all(b)},"processEdges")();let{subGraphTitleTotalMargin:y}=Cn(f);return{elem:m,graph:e,groups:{clusters:d,edgePaths:c,edgeLabels:p,nodes:l,rootGroups:m},diagramType:n,id:o,mergeSelfLoops:h,subGraphTitleTotalMargin:y}},"measureDagreGraph"),zn=t((r)=>{i.info("############################################# XXX"),i.info("### Layout ### XXX"),i.info("############################################# XXX"),Zr(r)},"runDagreGraphLayout"),mu=t((r,e,n)=>{let o=r.node(e);if(!o)return;let a={...o};if(o?.clusterNode)a.y=(o.y??0)+n;else if(r.children(e).length>0)a.height=(o.height??0)+n;else a.y=(o.y??0)+n/2;return a},"normalizeDagreNode"),Vn=t((r,e)=>{du.forEach((n)=>{if(e[n]!==void 0)r[n]=e[n]})},"applyDagreNodeLayout"),hu=t((r,e,n,o)=>({...r,start:r.start??e,end:r.end??n,points:(r.points??[]).map((a)=>({...a,y:typeof a.y==="number"?a.y+o:a.y}))}),"normalizeDagreEdge"),Zc=t((r,e)=>{let{graph:n,mergeSelfLoops:o,subGraphTitleTotalMargin:a=0}=e,f=new Map(r.nodes.map((d)=>[d.id,d]));co(n).forEach((d)=>{let c=mu(n,d,a);if(!c)return;Vn(n.node(d),c);let p=f.get(d);if(p)Vn(p,c)});let s=a/2;return r.edges=vc(n,s,{mergeSelfLoops:o}).map(({edge:d,start:c,end:p})=>hu(d,c,p,s)),r},"applyDagreLayoutResult"),gu=t(async({elem:r,graph:e,groups:{clusters:n,edgePaths:o},diagramType:a,id:f,mergeSelfLoops:s,subGraphTitleTotalMargin:d})=>{let c=0;await Promise.all(co(e).map(async function(m){let h=e.node(m);if(i.info("Position XBX => "+m+": ("+h.x,","+h.y,") width: ",h.width," height: ",h.height),h?.clusterNode)h.y+=d,i.info("A tainted cluster node XBX1",m,h.id,h.width,h.height,h.x,h.y,e.parent(m)),ne.get(h.id).node=h,fn(h);else if(e.children(m).length>0){i.info("A pure cluster node XBX1",m,h.id,h.x,h.y,h.width,h.height,e.parent(m)),h.height+=d,e.node(h.parentId);let v=h?.padding/2||0,y=h?.labelBBox?.height||0,b=y-v||0;i.debug("OffsetY",b,"labelHeight",y,"halfPadding",v),await or(n,h),ne.get(h.id).node=h}else{let v=e.node(h.parentId);h.y+=d/2,i.info("A regular node XBX1 - using the padding",h.id,"parent",h.parentId,h.width,h.height,h.x,h.y,"offsetY",h.offsetY,"parent",v,v?.offsetY,h),fn(h)}}));let p=d/2;return vc(e,p,{mergeSelfLoops:s}).forEach(function({edge:m,start:h,end:v}){i.info("Edge "+h+" -> "+v+": "+JSON.stringify(m),m),m.points.forEach((w)=>w.y+=p);let y=e.node(h),b=e.node(v),g=sr(o,m,ne,a,y,b,f);fa(m,g)}),e.nodes().forEach(function(m){let h=e.node(m);if(i.info(m,h.type,h.diff),h.isGroup)c=h.diff}),i.warn("Returning from recursive render XAX",r,c),{elem:r,diff:c}},"paintDagreLayoutCore"),vu=t(async(r)=>{let e=await Yn(r);return zn(e.graph),await gu(e)},"renderDagreSubgraph"),yc=t((r)=>{let e=new xe({multigraph:!0,compound:!0}).setGraph({rankdir:r.direction,nodesep:r.config?.nodeSpacing||r.nodeSpacing||r.config?.flowchart?.nodeSpacing,ranksep:r.config?.rankSpacing||r.rankSpacing||r.config?.flowchart?.rankSpacing,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});return r.nodes.forEach((n)=>{if(e.setNode(n.id,{...n}),n.parentId)e.setParent(n.id,n.parentId)}),i.debug("Edges:",r.edges),r.edges.forEach((n)=>{if(n.start===n.end){let o=n.start,a=o+"---"+o+"---1",f=o+"---"+o+"---2",s=e.node(o);e.setNode(a,{domId:a,id:a,parentId:s.parentId,labelStyle:"",label:"",padding:0,shape:"labelRect",style:"",width:10,height:10}),e.setParent(a,s.parentId),e.setNode(f,{domId:f,id:f,parentId:s.parentId,labelStyle:"",padding:0,shape:"labelRect",label:"",style:"",width:10,height:10}),e.setParent(f,s.parentId);let d=structuredClone(n),c=structuredClone(n),p=structuredClone(n),l=structuredClone(n);if(c.originalEdge=d,c.selfLoop={id:d.id,order:0},p.originalEdge=d,p.selfLoop={id:d.id,order:1},l.originalEdge=d,l.selfLoop={id:d.id,order:2},c.label="",c.arrowTypeEnd="none",c.endLabelLeft="",c.endLabelRight="",c.startLabelLeft="",c.id=o+"-cyclic-special-1",p.startLabelRight="",p.startLabelLeft="",p.endLabelLeft="",p.endLabelRight="",p.arrowTypeStart="none",p.arrowTypeEnd="none",p.id=o+"-cyclic-special-mid",l.label="",l.startLabelRight="",l.startLabelLeft="",l.arrowTypeStart="none",s.isGroup)c.fromCluster=o,l.toCluster=o;l.id=o+"-cyclic-special-2",l.arrowTypeStart="none",e.setEdge(o,a,c,o+"-cyclic-special-0"),e.setEdge(a,f,p,o+"-cyclic-special-1"),e.setEdge(f,o,l,o+"-cyclic-special-2")}else e.setEdge(n.start,n.end,{...n},n.id)}),xc(e),{graph:e}},"prepareLayoutForDagre"),Qc=t(async(r,{element:e,preparedLayout:n})=>{let o=n??yc(r),a=u(),f=await Yn({element:e,graph:o.graph,diagramType:r.type,id:r.diagramId,parentCluster:void 0,siteConfig:a});return o.measuredLayout=f,f},"measureDagreLayout"),Jc=t((r,e)=>{let n=e.preparedLayout?.measuredLayout;if(!n)throw Error("runDagreLayoutCore requires measureDagreLayout to run first");return zn(n.graph),Zc(r,n),n},"runDagreLayoutCore"),bu=t((r,{measure:e})=>co(e.graph).map((n)=>e.graph.node(n)).filter(Boolean),"getDagrePaintNodes"),yu=t((r,e,{measure:n})=>r?n.graph.node(r):void 0,"getDagreEdgeNode"),bc=$a({prepareLayout:yc,measureLayout:Qc,runLayoutCore:Jc,paintOptions:{clusterDb:ne,getNodes:bu,getEdgeNode:yu,skipNode:t((r,{measure:e})=>!e.graph.hasNode(r.id),"skipNode"),isCluster:t((r,{measure:e})=>e.graph.hasNode(r.id)&&(e.graph.children(r.id)??[]).length>0,"isCluster")}});export{vc,Zc,yc,Qc,Jc,bc};
Binary file
Binary file
@@ -0,0 +1,120 @@
1
+ import{t,rr,i,de,m,f,A,dn,To,L,u,g,J,Mt,Ne,Dt}from"./chunk-e4h4dg4y.js";import{xn}from"./chunk-vjnmqaam.js";var ct=function(){var r=t(function(S,o,p,h){for(p=p||{},h=S.length;h--;p[S[h]]=o);return p},"o"),e=[6,11,13,14,15,17,19,20,23,24],a=[1,12],s=[1,13],n=[1,14],d=[1,15],c=[1,16],l=[1,19],v=[1,20],x={trace:t(function(){},"trace"),yy:{},symbols_:{error:2,start:3,timeline_header:4,document:5,EOF:6,timeline:7,timeline_lr:8,timeline_td:9,line:10,SPACE:11,statement:12,NEWLINE:13,title:14,acc_title:15,acc_title_value:16,acc_descr:17,acc_descr_value:18,acc_descr_multiline_value:19,section:20,period_statement:21,event_statement:22,period:23,event:24,$accept:0,$end:1},terminals_:{2:"error",6:"EOF",7:"timeline",8:"timeline_lr",9:"timeline_td",11:"SPACE",13:"NEWLINE",14:"title",15:"acc_title",16:"acc_title_value",17:"acc_descr",18:"acc_descr_value",19:"acc_descr_multiline_value",20:"section",23:"period",24:"event"},productions_:[0,[3,3],[4,1],[4,1],[4,1],[5,0],[5,2],[10,2],[10,1],[10,1],[10,1],[12,1],[12,2],[12,2],[12,1],[12,1],[12,1],[12,1],[21,1],[22,1]],performAction:t(function(o,p,h,k,_,y,N){var E=y.length-1;switch(_){case 1:return y[E-1];case 3:k.setDirection("LR");break;case 4:k.setDirection("TD");break;case 5:this.$=[];break;case 6:y[E-1].push(y[E]),this.$=y[E-1];break;case 7:case 8:this.$=y[E];break;case 9:case 10:this.$=[];break;case 11:k.getCommonDb().setDiagramTitle(y[E].substr(6)),this.$=y[E].substr(6);break;case 12:this.$=y[E].trim(),k.getCommonDb().setAccTitle(this.$);break;case 13:case 14:this.$=y[E].trim(),k.getCommonDb().setAccDescription(this.$);break;case 15:k.addSection(y[E].substr(8)),this.$=y[E].substr(8);break;case 18:k.addTask(y[E],0,""),this.$=y[E];break;case 19:k.addEvent(y[E].substr(2)),this.$=y[E];break}},"anonymous"),table:[{3:1,4:2,7:[1,3],8:[1,4],9:[1,5]},{1:[3]},r(e,[2,5],{5:6}),r(e,[2,2]),r(e,[2,3]),r(e,[2,4]),{6:[1,7],10:8,11:[1,9],12:10,13:[1,11],14:a,15:s,17:n,19:d,20:c,21:17,22:18,23:l,24:v},r(e,[2,10],{1:[2,1]}),r(e,[2,6]),{12:21,14:a,15:s,17:n,19:d,20:c,21:17,22:18,23:l,24:v},r(e,[2,8]),r(e,[2,9]),r(e,[2,11]),{16:[1,22]},{18:[1,23]},r(e,[2,14]),r(e,[2,15]),r(e,[2,16]),r(e,[2,17]),r(e,[2,18]),r(e,[2,19]),r(e,[2,7]),r(e,[2,12]),r(e,[2,13])],defaultActions:{},parseError:t(function(o,p){if(p.recoverable)this.trace(o);else{var h=Error(o);throw h.hash=p,h}},"parseError"),parse:t(function(o){var p=this,h=[0],k=[],_=[null],y=[],N=this.table,E="",W=0,G=0,D=0,q=2,B=1,O=y.slice.call(arguments,1),H=Object.create(this.lexer),F={yy:{}};for(var U in this.yy)if(Object.prototype.hasOwnProperty.call(this.yy,U))F.yy[U]=this.yy[U];if(H.setInput(o,F.yy),F.yy.lexer=H,F.yy.parser=this,typeof H.yylloc>"u")H.yylloc={};var Q=H.yylloc;y.push(Q);var C=H.options&&H.options.ranges;if(typeof F.yy.parseError==="function")this.parseError=F.yy.parseError;else this.parseError=Object.getPrototypeOf(this).parseError;function T(K){h.length=h.length-2*K,_.length=_.length-K,y.length=y.length-K}t(T,"popStack");function M(){var K=k.pop()||H.lex()||B;if(typeof K!=="number"){if(K instanceof Array)k=K,K=k.pop();K=p.symbols_[K]||K}return K}t(M,"lex");var I,P,V,R,ot,et,j={},rt,X,yt,nt;while(!0){if(V=h[h.length-1],this.defaultActions[V])R=this.defaultActions[V];else{if(I===null||typeof I>"u")I=M();R=N[V]&&N[V][I]}if(typeof R>"u"||!R.length||!R[0]){var lt="";nt=[];for(rt in N[V])if(this.terminals_[rt]&&rt>q)nt.push("'"+this.terminals_[rt]+"'");if(H.showPosition)lt="Parse error on line "+(W+1)+`:
2
+ `+H.showPosition()+`
3
+ Expecting `+nt.join(", ")+", got '"+(this.terminals_[I]||I)+"'";else lt="Parse error on line "+(W+1)+": Unexpected "+(I==B?"end of input":"'"+(this.terminals_[I]||I)+"'");this.parseError(lt,{text:H.match,token:this.terminals_[I]||I,line:H.yylineno,loc:Q,expected:nt})}if(R[0]instanceof Array&&R.length>1)throw Error("Parse Error: multiple actions possible at state: "+V+", token: "+I);switch(R[0]){case 1:if(h.push(I),_.push(H.yytext),y.push(H.yylloc),h.push(R[1]),I=null,!P){if(G=H.yyleng,E=H.yytext,W=H.yylineno,Q=H.yylloc,D>0)D--}else I=P,P=null;break;case 2:if(X=this.productions_[R[1]][1],j.$=_[_.length-X],j._$={first_line:y[y.length-(X||1)].first_line,last_line:y[y.length-1].last_line,first_column:y[y.length-(X||1)].first_column,last_column:y[y.length-1].last_column},C)j._$.range=[y[y.length-(X||1)].range[0],y[y.length-1].range[1]];if(et=this.performAction.apply(j,[E,G,W,F.yy,R[1],_,y].concat(O)),typeof et<"u")return et;if(X)h=h.slice(0,-1*X*2),_=_.slice(0,-1*X),y=y.slice(0,-1*X);h.push(this.productions_[R[1]][0]),_.push(j.$),y.push(j._$),yt=N[h[h.length-2]][h[h.length-1]],h.push(yt);break;case 3:return!0}}return!0},"parse")},w=function(){var S={EOF:1,parseError:t(function(p,h){if(this.yy.parser)this.yy.parser.parseError(p,h);else throw Error(p)},"parseError"),setInput:t(function(o,p){if(this.yy=p||this.yy||{},this._input=o,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 o=this._input[0];this.yytext+=o,this.yyleng++,this.offset++,this.match+=o,this.matched+=o;var p=o.match(/(?:\r\n?|\n).*/g);if(p)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),o},"input"),unput:t(function(o){var p=o.length,h=o.split(/(?:\r\n?|\n)/g);this._input=o+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-p),this.offset-=p;var k=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),h.length-1)this.yylineno-=h.length-1;var _=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:h?(h.length===k.length?this.yylloc.first_column:0)+k[k.length-h.length].length-h[0].length:this.yylloc.first_column-p},this.options.ranges)this.yylloc.range=[_[0],_[0]+this.yyleng-p];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(o){this.unput(this.match.slice(o))},"less"),pastInput:t(function(){var o=this.matched.substr(0,this.matched.length-this.match.length);return(o.length>20?"...":"")+o.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:t(function(){var o=this.match;if(o.length<20)o+=this._input.substr(0,20-o.length);return(o.substr(0,20)+(o.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:t(function(){var o=this.pastInput(),p=Array(o.length+1).join("-");return o+this.upcomingInput()+`
5
+ `+p+"^"},"showPosition"),test_match:t(function(o,p){var h,k,_;if(this.options.backtrack_lexer){if(_={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)_.yylloc.range=this.yylloc.range.slice(0)}if(k=o[0].match(/(?:\r\n?|\n).*/g),k)this.yylineno+=k.length;if(this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:k?k[k.length-1].length-k[k.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+o[0].length},this.yytext+=o[0],this.match+=o[0],this.matches=o,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(o[0].length),this.matched+=o[0],h=this.performAction.call(this,this.yy,this,p,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input)this.done=!1;if(h)return h;else if(this._backtrack){for(var y in _)this[y]=_[y];return!1}return!1},"test_match"),next:t(function(){if(this.done)return this.EOF;if(!this._input)this.done=!0;var o,p,h,k;if(!this._more)this.yytext="",this.match="";var _=this._currentRules();for(var y=0;y<_.length;y++)if(h=this._input.match(this.rules[_[y]]),h&&(!p||h[0].length>p[0].length)){if(p=h,k=y,this.options.backtrack_lexer)if(o=this.test_match(h,_[y]),o!==!1)return o;else if(this._backtrack){p=!1;continue}else return!1;else if(!this.options.flex)break}if(p){if(o=this.test_match(p,_[k]),o!==!1)return o;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 p=this.next();if(p)return p;else return this.lex()},"lex"),begin:t(function(p){this.conditionStack.push(p)},"begin"),popState:t(function(){var p=this.conditionStack.length-1;if(p>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(p){if(p=this.conditionStack.length-1-Math.abs(p||0),p>=0)return this.conditionStack[p];else return"INITIAL"},"topState"),pushState:t(function(p){this.begin(p)},"pushState"),stateStackSize:t(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:t(function(p,h,k,_){var y=_;switch(k){case 0:break;case 1:break;case 2:return 13;case 3:break;case 4:break;case 5:return 8;case 6:return 9;case 7:return 7;case 8:return 14;case 9:return this.begin("acc_title"),15;break;case 10:return this.popState(),"acc_title_value";break;case 11:return this.begin("acc_descr"),17;break;case 12:return this.popState(),"acc_descr_value";break;case 13:this.begin("acc_descr_multiline");break;case 14:this.popState();break;case 15:return"acc_descr_multiline_value";case 16:return 20;case 17:return 24;case 18:return 23;case 19:return 6;case 20:return"INVALID"}},"anonymous"),rules:[/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:timeline[ \t]+LR\b)/i,/^(?:timeline[ \t]+TD\b)/i,/^(?:timeline\b)/i,/^(?:title\s[^\n]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:section\s[^:\n]+)/i,/^(?::\s(?:[^:\n]|:(?!\s))+)/i,/^(?:[^#:\n]+)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[14,15],inclusive:!1},acc_descr:{rules:[12],inclusive:!1},acc_title:{rules:[10],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,11,13,16,17,18,19,20],inclusive:!0}}};return S}();x.lexer=w;function b(){this.yy={}}return t(b,"Parser"),b.prototype=x,x.Parser=b,new b}();ct.parser=ct;var zt=ct,_t={};rr(_t,{addEvent:()=>At,addSection:()=>Nt,addTask:()=>Lt,addTaskOrg:()=>Ct,clear:()=>Et,default:()=>Ot,getCommonDb:()=>St,getDirection:()=>$t,getSections:()=>It,getTasks:()=>Ht,setDirection:()=>Tt});var Y="",wt=0,dt="LR",ut=[],it=[],tt=[],St=t(()=>To,"getCommonDb"),Et=t(function(){ut.length=0,it.length=0,Y="",tt.length=0,dt="LR",L()},"clear"),Tt=t(function(r){dt=r},"setDirection"),$t=t(function(){return dt},"getDirection"),Nt=t(function(r){Y=r,ut.push(r)},"addSection"),It=t(function(){return ut},"getSections"),Ht=t(function(){let r=mt(),e=100,a=0;while(!r&&a<e)r=mt(),a++;return it.push(...tt),it},"getTasks"),Lt=t(function(r,e,a){let s={id:wt++,section:Y,type:Y,task:r,score:e?e:0,events:a?[a]:[]};tt.push(s)},"addTask"),At=t(function(r){tt.find((a)=>a.id===wt-1).events.push(r)},"addEvent"),Ct=t(function(r){let e={section:Y,type:Y,description:r,task:r,classes:[]};it.push(e)},"addTaskOrg"),mt=t(function(){let r=t(function(a){return tt[a].processed},"compileTask"),e=!0;for(let[a,s]of tt.entries())r(a),e=e&&s.processed;return e},"compileTasks"),Ot={clear:Et,getCommonDb:St,getDirection:$t,setDirection:Tt,addSection:Nt,getSections:It,getTasks:Ht,addTask:Lt,addTaskOrg:Ct,addEvent:At},Rt=0,st=t(function(r,e){let a=r.append("rect");if(a.attr("x",e.x),a.attr("y",e.y),a.attr("fill",e.fill),a.attr("stroke",e.stroke),a.attr("width",e.width),a.attr("height",e.height),a.attr("rx",e.rx),a.attr("ry",e.ry),e.class!==void 0)a.attr("class",e.class);return a},"drawRect"),Gt=t(function(r,e){let s=r.append("circle").attr("cx",e.cx).attr("cy",e.cy).attr("class","face").attr("r",15).attr("stroke-width",2).attr("overflow","visible"),n=r.append("g");n.append("circle").attr("cx",e.cx-5).attr("cy",e.cy-5).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),n.append("circle").attr("cx",e.cx+5).attr("cy",e.cy-5).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666");function d(v){let x=xn().startAngle(Math.PI/2).endAngle(3*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);v.append("path").attr("class","mouth").attr("d",x).attr("transform","translate("+e.cx+","+(e.cy+2)+")")}t(d,"smile");function c(v){let x=xn().startAngle(3*Math.PI/2).endAngle(5*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);v.append("path").attr("class","mouth").attr("d",x).attr("transform","translate("+e.cx+","+(e.cy+7)+")")}t(c,"sad");function l(v){v.append("line").attr("class","mouth").attr("stroke",2).attr("x1",e.cx-5).attr("y1",e.cy+7).attr("x2",e.cx+5).attr("y2",e.cy+7).attr("class","mouth").attr("stroke-width","1px").attr("stroke","#666")}if(t(l,"ambivalent"),e.score>3)d(n);else if(e.score<3)c(n);else l(n);return s},"drawFace"),Kt=t(function(r,e){let a=r.append("circle");if(a.attr("cx",e.cx),a.attr("cy",e.cy),a.attr("class","actor-"+e.pos),a.attr("fill",e.fill),a.attr("stroke",e.stroke),a.attr("r",e.r),a.class!==void 0)a.attr("class",a.class);if(e.title!==void 0)a.append("title").text(e.title);return a},"drawCircle"),Wt=t(function(r,e){let a=e.text.replace(/<br\s*\/?>/gi," "),s=r.append("text");if(s.attr("x",e.x),s.attr("y",e.y),s.attr("class","legend"),s.style("text-anchor",e.anchor),e.class!==void 0)s.attr("class",e.class);let n=s.append("tspan");return n.attr("x",e.x+e.textMargin*2),n.text(a),s},"drawText"),Ut=t(function(r,e){function a(n,d,c,l,v){return n+","+d+" "+(n+c)+","+d+" "+(n+c)+","+(d+l-v)+" "+(n+c-v*1.2)+","+(d+l)+" "+n+","+(d+l)}t(a,"genPoints");let s=r.append("polygon");s.attr("points",a(e.x,e.y,50,20,7)),s.attr("class","labelBox"),e.y=e.y+e.labelMargin,e.x=e.x+0.5*e.labelMargin,Wt(r,e)},"drawLabel"),Xt=t(function(r,e,a){let s=r.append("g"),n=pt();n.x=e.x,n.y=e.y,n.fill=e.fill,n.width=a.width,n.height=a.height,n.class="journey-section section-type-"+e.num,n.rx=3,n.ry=3,st(s,n),Pt(a)(e.text,s,n.x,n.y,n.width,n.height,{class:"journey-section section-type-"+e.num},a,e.colour)},"drawSection"),ht=-1,Zt=t(function(r,e,a,s){let n=e.x+a.width/2,d=r.append("g");ht++;let c=450;d.append("line").attr("id",s+"-task"+ht).attr("x1",n).attr("y1",e.y).attr("x2",n).attr("y2",c).attr("class","task-line").attr("stroke-width","1px").attr("stroke-dasharray","4 2").attr("stroke","#666"),Gt(d,{cx:n,cy:300+(5-e.score)*30,score:e.score});let l=pt();l.x=e.x,l.y=e.y,l.fill=e.fill,l.width=a.width,l.height=a.height,l.class="task task-type-"+e.num,l.rx=3,l.ry=3,st(d,l),Pt(a)(e.task,d,l.x,l.y,l.width,l.height,{class:"task"},a,e.colour)},"drawTask"),jt=t(function(r,e){st(r,{x:e.startx,y:e.starty,width:e.stopx-e.startx,height:e.stopy-e.starty,fill:e.fill,class:"rect"}).lower()},"drawBackgroundRect"),qt=t(function(){return{x:0,y:0,fill:void 0,"text-anchor":"start",width:100,height:100,textMargin:0,rx:0,ry:0}},"getTextObj"),pt=t(function(){return{x:0,y:0,width:100,anchor:"start",height:100,rx:0,ry:0}},"getNoteRect"),Pt=function(){function r(n,d,c,l,v,x,w,b){let S=d.append("text").attr("x",c+v/2).attr("y",l+x/2+5).style("font-color",b).style("text-anchor","middle").text(n);s(S,w)}t(r,"byText");function e(n,d,c,l,v,x,w,b,S){let{taskFontSize:o,taskFontFamily:p}=b,h=n.split(/<br\s*\/?>/gi);for(let k=0;k<h.length;k++){let _=k*o-o*(h.length-1)/2,y=d.append("text").attr("x",c+v/2).attr("y",l).attr("fill",S).style("text-anchor","middle").style("font-size",o).style("font-family",p);y.append("tspan").attr("x",c+v/2).attr("dy",_).text(h[k]),y.attr("y",l+x/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),s(y,w)}}t(e,"byTspan");function a(n,d,c,l,v,x,w,b){let S=d.append("switch"),p=S.append("foreignObject").attr("x",c).attr("y",l).attr("width",v).attr("height",x).attr("position","fixed").append("xhtml:div").style("display","table").style("height","100%").style("width","100%");p.append("div").attr("class","label").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(n),e(n,S,c,l,v,x,w,b),s(p,w)}t(a,"byFo");function s(n,d){for(let c in d)if(c in d)n.attr(c,d[c])}return t(s,"_setTextAttrs"),function(n){return n.textPlacement==="fo"?a:n.textPlacement==="old"?r:e}}(),Jt=t(function(r,e){Rt=0,ht=-1,r.append("defs").append("marker").attr("id",e+"-arrowhead").attr("refX",5).attr("refY",2).attr("markerWidth",6).attr("markerHeight",4).attr("orient","auto").append("path").attr("d","M 0,0 V 4 L6,2 Z")},"initGraphics");function gt(r,e){r.each(function(){var a=g(this),s=a.text().split(/(\s+|<br>)/).reverse(),n,d=[],c=1.1,l=a.attr("y"),v=parseFloat(a.attr("dy")),x=a.text(null).append("tspan").attr("x",0).attr("y",l).attr("dy",v+"em");for(let w=0;w<s.length;w++)if(n=s[s.length-1-w],d.push(n),x.text(d.join(" ").trim()),x.node().getComputedTextLength()>e||n==="<br>"){if(d.pop(),x.text(d.join(" ").trim()),n==="<br>")d=[""];else d=[n];x=a.append("tspan").attr("x",0).attr("y",l).attr("dy",c+"em").text(n)}})}t(gt,"wrap");var Qt=t(function(r,e,a,s,n,d=!1){let{theme:c,look:l}=s,v=c?.includes("redux"),x=s?.themeVariables?.THEME_COLOR_LIMIT??12,w=a%x-1,b=r.append("g");e.section=w,b.attr("class",(e.class?e.class+" ":"")+"timeline-node "+("section-"+w));let S=b.append("g"),o=b.append("g"),h=o.append("text").text(e.descr).attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle").call(gt,e.width).node().getBBox(),k=s.fontSize?.replace?s.fontSize.replace("px",""):s.fontSize;if(e.height=h.height+k*1.1*0.5+e.padding,e.height=Math.max(e.height,e.maxHeight),e.width=e.width+2*e.padding,o.attr("transform","translate("+e.width/2+", "+e.padding/2+")"),v)o.attr("transform",`translate(${e.width/2}, ${d?e.padding/2+3:e.padding})`);if(te(S,e,w,n,s),l==="neo"){if(b.attr("data-look","neo"),v){let _=c.includes("dark"),y=r.node()?.ownerSVGElement??r.node(),N=g(y),E=N.attr("id")??"",W=E?`${E}-drop-shadow`:"drop-shadow";if(N.select(`#${W}`).empty()){let G=N.select("defs");(G.empty()?N.append("defs"):G).append("filter").attr("id",W).attr("height","130%").attr("width","130%").append("feDropShadow").attr("dx","4").attr("dy","4").attr("stdDeviation",0).attr("flood-opacity",_?"0.2":"0.06").attr("flood-color",_?"#FFFFFF":"#000000")}}}return e},"drawNode"),Yt=t(function(r,e,a){let s=r.append("g"),d=s.append("text").text(e.descr).attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle").call(gt,e.width).node().getBBox(),c=a.fontSize?.replace?a.fontSize.replace("px",""):a.fontSize;return s.remove(),d.height+c*1.1*0.5+e.padding},"getVirtualNodeHeight"),te=t(function(r,e,a,s,n){let{theme:d}=n,c=d?.includes("redux")?0:5,l=5,v=c>0?`M0 ${e.height-5} v${-e.height+10} q0,-${c},${c},-${c} h${e.width-10} q${c},0,${c},${c} v${e.height-5} H0 Z`:`M0 ${e.height-5} v${-(e.height-5)} h${e.width} v${e.height} H0 Z`;if(r.append("path").attr("id",s+"-node-"+Rt++).attr("class","node-bkg node-"+e.type).attr("d",v),!d?.includes("redux"))r.append("line").attr("class","node-line-"+a).attr("x1",0).attr("y1",e.height).attr("x2",e.width).attr("y2",e.height)},"defaultBkg"),z={drawRect:st,drawCircle:Kt,drawSection:Xt,drawText:Wt,drawLabel:Ut,drawTask:Zt,drawBackgroundRect:jt,getTextObj:qt,getNoteRect:pt,initGraphics:Jt,drawNode:Qt,getVirtualNodeHeight:Yt},ee=t(function(r,e,a,s){let n=u(),{look:d,theme:c,themeVariables:l}=n,{useGradient:v,gradientStart:x,gradientStop:w}=l,b=n.timeline?.leftMargin??50;i.debug("timeline",s.db);let S=n.securityLevel,o;if(S==="sandbox")o=g("#i"+e);let h=(S==="sandbox"?g(o.nodes()[0].contentDocument.body):g("body")).select("#"+e);h.append("g");let k=s.db.getTasks(),_=s.db.getCommonDb().getDiagramTitle();i.debug("task",k),z.initGraphics(h,e);let y=s.db.getSections();i.debug("sections",y);let N=0,E=0,W=0,G=0,D=50+b,q=50;G=50;let B=0,O=!0;y.forEach(function(C){let T={number:B,descr:C,section:B,width:150,padding:20,maxHeight:N},M=z.getVirtualNodeHeight(h,T,n);i.debug("sectionHeight before draw",M),N=Math.max(N,M+20)});let H=0,F=0;i.debug("tasks.length",k.length);for(let[C,T]of k.entries()){let M={number:C,descr:T,section:T.section,width:150,padding:20,maxHeight:E},I=z.getVirtualNodeHeight(h,M,n);i.debug("taskHeight before draw",I),E=Math.max(E,I+20),H=Math.max(H,T.events.length);let P=0;for(let V of T.events){let R={descr:V,section:T.section,number:T.section,width:150,padding:20,maxHeight:50};P+=z.getVirtualNodeHeight(h,R,n)}if(T.events.length>0)P+=(T.events.length-1)*10;F=Math.max(F,P)}if(i.debug("maxSectionHeight before draw",N),i.debug("maxTaskHeight before draw",E),y&&y.length>0)y.forEach((C)=>{let T=k.filter((V)=>V.section===C),M={number:B,descr:C,section:B,width:200*Math.max(T.length,1)-50,padding:20,maxHeight:N};i.debug("sectionNode",M);let I=h.append("g"),P=z.drawNode(I,M,B,n,e);if(i.debug("sectionNode output",P),I.attr("transform",`translate(${D}, ${G})`),q+=N+50,T.length>0)kt(h,T,B,D,q,E,n,H,F,N,!1,e);D+=200*Math.max(T.length,1),q=G,B++});else O=!1,kt(h,k,B,D,q,E,n,H,F,N,!0,e);let U=h.node().getBBox();if(i.debug("bounds",U),_)h.append("text").text(_).attr("x",d==="neo"?U.x*2+b:U.width/2-b).attr("font-size","4ex").attr("font-weight","bold").attr("y",20);if(W=O?N+E+150:E+100,h.append("g").attr("class","lineWrapper").append("line").attr("x1",b).attr("y1",W).attr("x2",U.width+3*b).attr("y2",W).attr("stroke-width",4).attr("stroke","black").attr("marker-end",`url(#${e}-arrowhead)`),d==="neo"&&v&&c!=="neutral"){let C=h.select("defs"),M=(C.empty()?h.append("defs"):C).append("linearGradient").attr("id",h.attr("id")+"-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",x).attr("stop-opacity",1),M.append("stop").attr("offset","100%").attr("stop-color",w).attr("stop-opacity",1)}dn(void 0,h,n.timeline?.padding??50,n.timeline?.useMaxWidth??!1)},"draw"),kt=t(function(r,e,a,s,n,d,c,l,v,x,w,b){for(let S of e){let o={descr:S.task,section:a,number:a,width:150,padding:20,maxHeight:d};i.debug("taskNode",o);let p=r.append("g").attr("class","taskWrapper"),k=z.drawNode(p,o,a,c,b).height;if(i.debug("taskHeight after draw",k),p.attr("transform",`translate(${s}, ${n})`),d=Math.max(d,k),S.events){let _=r.append("g").attr("class","lineWrapper"),y=d;n+=100,y=y+re(r,S.events,a,s,n,c,b),n-=100,_.append("line").attr("x1",s+95).attr("y1",n+d).attr("x2",s+95).attr("y2",n+d+100+v+100).attr("stroke-width",2).attr("stroke","black").attr("marker-end",`url(#${b}-arrowhead)`).attr("stroke-dasharray","5,5")}if(s=s+200,w&&!c.timeline?.disableMulticolor)a++}n=n-10},"drawTasks"),re=t(function(r,e,a,s,n,d,c){let l=0,v=n;n=n+100;for(let x of e){let w={descr:x,section:a,number:a,width:150,padding:20,maxHeight:50};i.debug("eventNode",w);let b=r.append("g").attr("class","eventWrapper"),o=z.drawNode(b,w,a,d,c,!0).height;l=l+o,b.attr("transform",`translate(${s}, ${n})`),n=n+10+o}return n=v,l},"drawEvents"),ne={setConf:t(()=>{},"setConf"),draw:ee},at=200,Z=5,ie=at+Z*2,ft=at+100,se=ft+Z*2,Bt=10,ae=0,xt=20,Vt=20,bt=30,Ft=50,oe=t(function(r,e,a,s){let n=u(),d=n.timeline?.leftMargin??50;i.debug("timeline",s.db);let c=J(e);c.append("g");let l=s.db.getTasks(),v=s.db.getCommonDb().getDiagramTitle();i.debug("task",l),z.initGraphics(c);let x=s.db.getSections();i.debug("sections",x);let w=0,b=0,S=50+d,o=50,p=o,h=S,k=ie+Vt,_=se+Ft,y=h+k,N=0,E=x&&x.length>0,W=E?y:S+k,G=Math.max(50,k+_-Z*2);x.forEach(function(C){let T={number:N,descr:C,section:N,width:G,padding:Z,maxHeight:w},M=z.getVirtualNodeHeight(c,T,n);i.debug("sectionHeight before draw",M),w=Math.max(w,M)});let D=0;i.debug("tasks.length",l.length);for(let[C,T]of l.entries()){let M={number:C,descr:T,section:T.section,width:at,padding:Z,maxHeight:b},I=z.getVirtualNodeHeight(c,M,n);i.debug("taskHeight before draw",I),b=Math.max(b,I);let P=0;for(let V of T.events){let R={descr:V,section:T.section,number:T.section,width:ft,padding:Z,maxHeight:50};P+=z.getVirtualNodeHeight(c,R,n)}if(T.events.length>0)P+=(T.events.length-1)*Bt;D=Math.max(D,P)+ae}i.debug("maxSectionHeight before draw",w),i.debug("maxTaskHeight before draw",b);let B=Math.max(b,D)+bt;if(E)x.forEach((C)=>{let T=l.filter((j)=>j.section===C),M={number:N,descr:C,section:N,width:G,padding:Z,maxHeight:w};i.debug("sectionNode",M);let I=c.append("g"),P=z.drawNode(I,M,N,n);i.debug("sectionNode output",P);let V=W-k;I.attr("transform",`translate(${V}, ${o})`);let R=o+P.height+xt;if(T.length>0)vt(c,T,N,W,R,b,n,B,!1);let ot=T.length,et=P.height+xt+B*Math.max(ot,1)-(ot>0?bt*2:0);o+=et,N++});else vt(c,l,N,W,o,b,n,B,!0);let O=c.node()?.getBBox();if(!O)throw Error("bbox not found");if(i.debug("bounds",O),v){if(c.append("text").text(v).attr("x",O.width/2-d).attr("font-size","4ex").attr("font-weight","bold").attr("y",20),O=c.node()?.getBBox(),!O)throw Error("bbox not found");i.debug("bounds after title",O)}let[H]=Mt(n.fontSize),F=(H??16)*2,U=(H??16)*0.5+20,Q=c.append("g").attr("class","lineWrapper");Q.append("line").attr("x1",W).attr("y1",p-F).attr("x2",W).attr("y2",O.y+O.height+U).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#arrowhead)"),Q.lower(),dn(void 0,c,n.timeline?.padding??50,n.timeline?.useMaxWidth??!1)},"draw"),vt=t(function(r,e,a,s,n,d,c,l,v){for(let x of e){let w={descr:x.task,section:a,number:a,width:at,padding:Z,maxHeight:d};i.debug("taskNode",w);let b=r.append("g").attr("class","taskWrapper"),S=z.drawNode(b,w,a,c),o=S.height;i.debug("taskHeight after draw",o);let p=s-Vt-S.width;if(b.attr("transform",`translate(${p}, ${n})`),d=Math.max(d,o),x.events&&x.events.length>0){let h=n,k=s+Ft;le(r,x.events,a,s,k,h,c)}if(n=n+l,v&&!c.timeline?.disableMulticolor)a++}},"drawTasks"),le=t(function(r,e,a,s,n,d,c){let l=d;for(let v of e){let x={descr:v,section:a,number:a,width:ft,padding:Z,maxHeight:0};i.debug("eventNode",x);let w=r.append("g").attr("class","eventWrapper"),S=z.drawNode(w,x,a,c).height;w.attr("transform",`translate(${n}, ${l})`);let o=r.append("g").attr("class","lineWrapper"),p=l+S/2;o.append("line").attr("x1",s).attr("y1",p).attr("x2",n).attr("y2",p).attr("stroke-width",2).attr("stroke","black").attr("marker-end","url(#arrowhead)").attr("stroke-dasharray","5,5"),l=l+S+Bt}return l-d},"drawEvents"),ce={setConf:t(()=>{},"setConf"),draw:oe},he=t((r)=>{let{theme:e}=A(),a=e?.includes("dark"),s=Ne(e,r.borderColorArray),n=r.svgId?.replace(/^#/,"")??"",d=n?`url(#${n}-drop-shadow)`:r.dropShadow??"none",c="";for(let l=0;l<Dt(r.THEME_COLOR_LIMIT);l++){let v=`${17-3*l}`,x=s?r.borderColorArray[l%r.borderColorArray.length]:void 0,w=x??r.mainBkg,b=x??r.nodeBorder;c+=`
7
+ .section-${l-1} rect,
8
+ .section-${l-1} path,
9
+ .section-${l-1} circle {
10
+ fill: ${a&&s?r.mainBkg:w};
11
+ stroke: ${b};
12
+ stroke-width: ${r.strokeWidth};
13
+ filter: ${d};
14
+ }
15
+
16
+ .section-${l-1} text {
17
+ fill: ${r.nodeBorder};
18
+ font-weight: ${r.fontWeight}
19
+ }
20
+
21
+ .node-icon-${l-1} {
22
+ font-size: 40px;
23
+ color: ${r["cScaleLabel"+l]};
24
+ }
25
+
26
+ .section-edge-${l-1} {
27
+ stroke: ${r["cScale"+l]};
28
+ }
29
+
30
+ .edge-depth-${l-1} {
31
+ stroke-width: ${v};
32
+ }
33
+
34
+ .section-${l-1} line {
35
+ stroke: ${r["cScaleInv"+l]};
36
+ stroke-width: 3;
37
+ }
38
+
39
+ .lineWrapper line {
40
+ stroke: ${r.nodeBorder};
41
+ stroke-width:${r.strokeWidth}
42
+ }
43
+
44
+ .disabled,
45
+ .disabled circle,
46
+ .disabled text {
47
+ fill: ${r.tertiaryColor??"lightgray"};
48
+ }
49
+
50
+ .disabled text {
51
+ fill: ${r.clusterBorder??"#efefef"};
52
+ }
53
+ `}return c},"genReduxSections"),ue=t((r)=>{let e="",a=Dt(r.THEME_COLOR_LIMIT);for(let s=0;s<a;s++)if(r["lineColor"+s]=r["lineColor"+s]??r["cScaleInv"+s],de(r["lineColor"+s]))r["lineColor"+s]=m(r["lineColor"+s],20);else r["lineColor"+s]=f(r["lineColor"+s],20);for(let s=0;s<a;s++){let n=""+(17-3*s);e+=`
54
+ .section-${s-1} rect, .section-${s-1} path, .section-${s-1} circle, .section-${s-1} path {
55
+ fill: ${r["cScale"+s]};
56
+ }
57
+ .section-${s-1} text {
58
+ fill: ${r["cScaleLabel"+s]};
59
+ }
60
+ .node-icon-${s-1} {
61
+ font-size: 40px;
62
+ color: ${r["cScaleLabel"+s]};
63
+ }
64
+ .section-edge-${s-1}{
65
+ stroke: ${r["cScale"+s]};
66
+ }
67
+ .edge-depth-${s-1}{
68
+ stroke-width: ${n};
69
+ }
70
+ .section-${s-1} line {
71
+ stroke: ${r["cScaleInv"+s]} ;
72
+ stroke-width: 3;
73
+ }
74
+
75
+ .lineWrapper line{
76
+ stroke: ${r["cScaleLabel"+s]} ;
77
+ }
78
+
79
+ .disabled, .disabled circle, .disabled text {
80
+ fill: ${r.tertiaryColor??"lightgray"};
81
+ }
82
+ .disabled text {
83
+ fill: ${r.clusterBorder??"#efefef"};
84
+ }
85
+ `}return e},"genSections"),pe=t((r)=>{let{theme:e}=A(),a=e?.includes("redux"),s=e==="neutral",n=r.svgId?.replace(/^#/,"")??"",d="";if(r.useGradient&&n&&r.THEME_COLOR_LIMIT&&!s){let c=Dt(r.THEME_COLOR_LIMIT);for(let l=0;l<c;l++)d+=`
86
+ .section-${l-1}[data-look="neo"] rect,
87
+ .section-${l-1}[data-look="neo"] path,
88
+ .section-${l-1}[data-look="neo"] circle {
89
+ fill: ${r.mainBkg};
90
+ stroke: url(#${n}-gradient);
91
+ stroke-width: 2;
92
+ }
93
+ .section-${l-1}[data-look="neo"] line {
94
+ stroke: url(#${n}-gradient);
95
+ stroke-width: 2;
96
+ }`}return`
97
+ .edge {
98
+ stroke-width: 3;
99
+ }
100
+ ${a?he(r):ue(r)}
101
+ ${d}
102
+ .section-root rect, .section-root path, .section-root circle {
103
+ fill: ${r.git0};
104
+ }
105
+ .section-root text {
106
+ fill: ${r.gitBranchLabel0};
107
+ }
108
+ .icon-container {
109
+ height:100%;
110
+ display: flex;
111
+ justify-content: center;
112
+ align-items: center;
113
+ }
114
+ .edge {
115
+ fill: none;
116
+ }
117
+ .eventWrapper {
118
+ filter: brightness(120%);
119
+ }
120
+ `},"getStyles"),ge=pe,fe={setConf:t(()=>{},"setConf"),draw:t((r,e,a,s)=>{if((s?.db?.getDirection?.()??"LR")==="TD")return ce.draw(r,e,a,s);return ne.draw(r,e,a,s)},"draw")},Ee={db:_t,renderer:fe,parser:zt,styles:ge};export{Ee as diagram};
Binary file
Binary file
@@ -0,0 +1 @@
1
+ import{Da}from"./chunk-yarejzzs.js";export{Da as createRailroadPegServices};
Binary file
Binary file