@bkm016/basalt 0.1.34 → 0.1.36

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 (1009) hide show
  1. package/README.md +2 -1
  2. package/chunk-082x3g29.js +3 -0
  3. package/chunk-0aaf270z.js +3 -0
  4. package/chunk-0dqv9x0y.js +51 -0
  5. package/chunk-0ns02fzq.js +2 -0
  6. package/chunk-0y13kfpt.js +5 -0
  7. package/chunk-1753m6xk.js +4179 -0
  8. package/chunk-24ae99b6.js +5 -0
  9. package/chunk-2cp8why4.js +2 -0
  10. package/chunk-3bdzn4h2.js +2 -0
  11. package/chunk-48m0w8xg.js +2 -0
  12. package/chunk-4pr7ykh0.js +2 -0
  13. package/chunk-4qtw5cga.js +12 -0
  14. package/chunk-4yqge35f.js +3 -0
  15. package/chunk-65rd9zn4.js +3 -0
  16. package/chunk-67ehvv4n.js +44 -0
  17. package/chunk-6wm62kte.js +18 -0
  18. package/chunk-6zkggkdm.js +13 -0
  19. package/chunk-78ferdza.js +3 -0
  20. package/chunk-794r8w6m.js +2 -0
  21. package/chunk-7azn0brs.js +7 -0
  22. package/chunk-7wh4n0yg.js +2 -0
  23. package/chunk-7z0wh161.js +25 -0
  24. package/chunk-95aqrqnh.js +2 -0
  25. package/chunk-a0zcps2d.js +2 -0
  26. package/chunk-a23pv6tv.js +3 -0
  27. package/chunk-adb2nbxk.js +2 -0
  28. package/chunk-as2ty5w5.js +3 -0
  29. package/chunk-b84y794v.js +3 -0
  30. package/chunk-bh80e336.js +3 -0
  31. package/chunk-c6azecvs.js +3 -0
  32. package/chunk-cc8h8mz9.js +2 -0
  33. package/chunk-cdb6caq7.js +3 -0
  34. package/chunk-cjdbsa9s.js +3 -0
  35. package/chunk-cnqgtmwm.js +10 -0
  36. package/chunk-cwn9vs1a.js +3 -0
  37. package/chunk-cxybp3fn.js +8 -0
  38. package/chunk-dea2htm4.js +2 -0
  39. package/chunk-e01wravf.js +12 -0
  40. package/chunk-f0pz8pvb.js +5 -0
  41. package/chunk-fvmrsrmq.js +3 -0
  42. package/chunk-fwdhn0gw.js +7 -0
  43. package/chunk-h7x8g57v.js +9 -0
  44. package/chunk-h8qhy3px.js +39 -0
  45. package/chunk-hsvchrh3.js +7 -0
  46. package/chunk-j1peg724.js +504 -0
  47. package/chunk-j2cse817.js +63 -0
  48. package/chunk-j3jzgw98.js +31 -0
  49. package/chunk-jmzdtefg.js +2 -0
  50. package/chunk-k0e6n6yy.js +3 -0
  51. package/chunk-mb2jqd5z.js +3 -0
  52. package/chunk-nbgtqpay.js +3 -0
  53. package/chunk-prfczhpq.js +10 -0
  54. package/chunk-pv25a7sw.js +2 -0
  55. package/chunk-q8m2x20d.js +286 -0
  56. package/chunk-qnkxeh37.js +3 -0
  57. package/chunk-qvfrv3rb.js +59 -0
  58. package/chunk-r14x07ez.js +2 -0
  59. package/chunk-r1kah65k.js +2 -0
  60. package/chunk-r6pt44wk.js +60 -0
  61. package/chunk-rhkw8ygf.js +3 -0
  62. package/chunk-rvqeb7gr.js +3 -0
  63. package/chunk-rwa7mfwa.js +2 -0
  64. package/chunk-sj46f002.js +2 -0
  65. package/chunk-sp89jja7.js +3 -0
  66. package/chunk-sss5x2ak.js +2 -0
  67. package/chunk-szn4y5mx.js +25 -0
  68. package/chunk-t05q9ksf.js +2 -0
  69. package/chunk-tb66q678.js +11 -0
  70. package/chunk-tej75y8n.js +2 -0
  71. package/chunk-tmfr2ym8.js +4 -0
  72. package/chunk-tnay319j.js +3 -0
  73. package/chunk-txwheg1n.js +2 -0
  74. package/chunk-ve6n38r4.js +16 -0
  75. package/chunk-vfa49qcy.js +3 -0
  76. package/chunk-wcy1r6vv.js +2 -0
  77. package/chunk-wj6am3ag.js +3 -0
  78. package/chunk-x0afp8wt.js +3 -0
  79. package/chunk-xe627eyp.js +20 -0
  80. package/chunk-y18ey7s9.js +8 -0
  81. package/chunk-y9r7tt53.js +3 -0
  82. package/chunk-yq20v3va.js +3 -0
  83. package/chunk-yyg4ygv7.js +2 -0
  84. package/chunk-z2zhr4e5.js +3 -0
  85. package/chunk-zdtg52xn.js +2 -0
  86. package/chunk-zrhdrkdb.js +5 -0
  87. package/compiled.js +10 -10
  88. package/package.json +1 -1
  89. package/ui-test-worker.js +44 -44
  90. package/web/chunk-0d0fwb7b.js +2 -0
  91. package/web/chunk-0d0fwb7b.js.br +0 -0
  92. package/web/chunk-0d0fwb7b.js.gz +0 -0
  93. package/web/chunk-0jm4zyrt.js +1 -0
  94. package/web/chunk-0jm4zyrt.js.br +0 -0
  95. package/web/chunk-0jm4zyrt.js.gz +0 -0
  96. package/web/chunk-0pp7dzx1.js +1 -0
  97. package/web/chunk-0pp7dzx1.js.br +0 -0
  98. package/web/chunk-0pp7dzx1.js.gz +0 -0
  99. package/web/chunk-0w73jp4n.js +1 -0
  100. package/web/chunk-0w73jp4n.js.br +0 -0
  101. package/web/chunk-0w73jp4n.js.gz +0 -0
  102. package/web/chunk-1416f30c.js +2 -0
  103. package/web/chunk-1416f30c.js.br +0 -0
  104. package/web/chunk-1416f30c.js.gz +0 -0
  105. package/web/chunk-18wyawez.js +30 -0
  106. package/web/chunk-18wyawez.js.br +0 -0
  107. package/web/chunk-18wyawez.js.gz +0 -0
  108. package/web/chunk-19ew9re5.js +1 -0
  109. package/web/chunk-19ew9re5.js.br +0 -0
  110. package/web/chunk-19ew9re5.js.gz +0 -0
  111. package/web/chunk-1mdtr9wk.js +8 -0
  112. package/web/chunk-1mdtr9wk.js.br +1 -0
  113. package/web/chunk-1mdtr9wk.js.gz +0 -0
  114. package/web/chunk-1p4egv85.js +1 -0
  115. package/web/chunk-1p4egv85.js.br +0 -0
  116. package/web/chunk-1p4egv85.js.gz +0 -0
  117. package/web/chunk-1x61dvvr.js +2 -0
  118. package/web/chunk-1x61dvvr.js.br +0 -0
  119. package/web/chunk-1x61dvvr.js.gz +0 -0
  120. package/web/chunk-241n0y1h.js +1 -0
  121. package/web/chunk-241n0y1h.js.br +0 -0
  122. package/web/chunk-241n0y1h.js.gz +0 -0
  123. package/web/chunk-26sgnzb2.js +1 -0
  124. package/web/chunk-26sgnzb2.js.br +0 -0
  125. package/web/chunk-26sgnzb2.js.gz +0 -0
  126. package/web/chunk-2p77pefd.js +1 -0
  127. package/web/chunk-2p77pefd.js.br +0 -0
  128. package/web/chunk-2p77pefd.js.gz +0 -0
  129. package/web/chunk-2ppe5znq.js +1 -0
  130. package/web/chunk-2ppe5znq.js.br +0 -0
  131. package/web/chunk-2ppe5znq.js.gz +0 -0
  132. package/web/chunk-2qzr943m.js +2 -0
  133. package/web/chunk-2qzr943m.js.br +0 -0
  134. package/web/chunk-2qzr943m.js.gz +0 -0
  135. package/web/chunk-32k44660.js +214 -0
  136. package/web/chunk-32k44660.js.br +0 -0
  137. package/web/chunk-32k44660.js.gz +0 -0
  138. package/web/chunk-33zb5a76.js +2 -0
  139. package/web/chunk-33zb5a76.js.br +0 -0
  140. package/web/chunk-33zb5a76.js.gz +0 -0
  141. package/web/chunk-38bzkv9k.js +7 -0
  142. package/web/chunk-38bzkv9k.js.br +0 -0
  143. package/web/chunk-38bzkv9k.js.gz +0 -0
  144. package/web/chunk-42ytz496.js +1 -0
  145. package/web/chunk-42ytz496.js.br +0 -0
  146. package/web/chunk-42ytz496.js.gz +0 -0
  147. package/web/chunk-4749rrqv.js +55 -0
  148. package/web/chunk-4749rrqv.js.br +0 -0
  149. package/web/chunk-4749rrqv.js.gz +0 -0
  150. package/web/chunk-4d57cnh5.js +40 -0
  151. package/web/chunk-4d57cnh5.js.br +0 -0
  152. package/web/chunk-4d57cnh5.js.gz +0 -0
  153. package/web/chunk-4gh3hcrc.js +1 -0
  154. package/web/chunk-4gh3hcrc.js.br +0 -0
  155. package/web/chunk-4gh3hcrc.js.gz +0 -0
  156. package/web/chunk-4hg08mj3.js +1 -0
  157. package/web/chunk-4hg08mj3.js.br +0 -0
  158. package/web/chunk-4hg08mj3.js.gz +0 -0
  159. package/web/chunk-4rra9tt7.js +78 -0
  160. package/web/chunk-4rra9tt7.js.br +0 -0
  161. package/web/chunk-4rra9tt7.js.gz +0 -0
  162. package/web/chunk-572kjbne.js +89 -0
  163. package/web/chunk-572kjbne.js.br +0 -0
  164. package/web/chunk-572kjbne.js.gz +0 -0
  165. package/web/chunk-5hqe3cct.js +98 -0
  166. package/web/chunk-5hqe3cct.js.br +0 -0
  167. package/web/chunk-5hqe3cct.js.gz +0 -0
  168. package/web/chunk-5k4vdcwk.js +24 -0
  169. package/web/chunk-5k4vdcwk.js.br +0 -0
  170. package/web/chunk-5k4vdcwk.js.gz +0 -0
  171. package/web/chunk-5z44jbdc.js +1 -0
  172. package/web/chunk-5z44jbdc.js.br +0 -0
  173. package/web/chunk-5z44jbdc.js.gz +0 -0
  174. package/web/chunk-600x58nm.js +1143 -0
  175. package/web/chunk-600x58nm.js.br +0 -0
  176. package/web/chunk-600x58nm.js.gz +0 -0
  177. package/web/chunk-61djfs0t.js +140 -0
  178. package/web/chunk-61djfs0t.js.br +0 -0
  179. package/web/chunk-61djfs0t.js.gz +0 -0
  180. package/web/chunk-6j4jdvtd.js +1 -0
  181. package/web/chunk-6j4jdvtd.js.br +0 -0
  182. package/web/chunk-6j4jdvtd.js.gz +0 -0
  183. package/web/chunk-74ymgabb.js +2 -0
  184. package/web/chunk-74ymgabb.js.br +0 -0
  185. package/web/chunk-74ymgabb.js.gz +0 -0
  186. package/web/chunk-768vchz5.js +169 -0
  187. package/web/chunk-768vchz5.js.br +0 -0
  188. package/web/chunk-768vchz5.js.gz +0 -0
  189. package/web/chunk-7f87paxe.js +36 -0
  190. package/web/chunk-7f87paxe.js.br +0 -0
  191. package/web/chunk-7f87paxe.js.gz +0 -0
  192. package/web/chunk-7ns0kj87.js +2 -0
  193. package/web/chunk-7ns0kj87.js.br +0 -0
  194. package/web/chunk-7ns0kj87.js.gz +0 -0
  195. package/web/chunk-7vpk9y00.js +1 -0
  196. package/web/chunk-7vpk9y00.js.br +0 -0
  197. package/web/chunk-7vpk9y00.js.gz +0 -0
  198. package/web/chunk-89mc1vj3.js +1 -0
  199. package/web/chunk-89mc1vj3.js.br +0 -0
  200. package/web/chunk-89mc1vj3.js.gz +0 -0
  201. package/web/chunk-8wgpesrk.js +139 -0
  202. package/web/chunk-8wgpesrk.js.br +0 -0
  203. package/web/chunk-8wgpesrk.js.gz +0 -0
  204. package/web/chunk-9nh1aeqs.js +303 -0
  205. package/web/chunk-9nh1aeqs.js.br +0 -0
  206. package/web/chunk-9nh1aeqs.js.gz +0 -0
  207. package/web/chunk-9pgq2ax4.js +1 -0
  208. package/web/chunk-9pgq2ax4.js.br +0 -0
  209. package/web/chunk-9pgq2ax4.js.gz +0 -0
  210. package/web/chunk-9tfs2dg1.js +1 -0
  211. package/web/chunk-9tfs2dg1.js.br +0 -0
  212. package/web/chunk-9tfs2dg1.js.gz +0 -0
  213. package/web/chunk-9wemd2wn.js +41 -0
  214. package/web/chunk-9wemd2wn.js.br +0 -0
  215. package/web/chunk-9wemd2wn.js.gz +0 -0
  216. package/web/chunk-9wsz2j8n.js +1 -0
  217. package/web/chunk-9wsz2j8n.js.br +0 -0
  218. package/web/chunk-9wsz2j8n.js.gz +0 -0
  219. package/web/chunk-9wzvqpre.js +2 -0
  220. package/web/chunk-9wzvqpre.js.br +0 -0
  221. package/web/chunk-9wzvqpre.js.gz +0 -0
  222. package/web/chunk-a48wgrb1.js +1 -0
  223. package/web/chunk-a48wgrb1.js.br +2 -0
  224. package/web/chunk-a48wgrb1.js.gz +0 -0
  225. package/web/chunk-a67d8w1k.js +14 -0
  226. package/web/chunk-a67d8w1k.js.br +0 -0
  227. package/web/chunk-a67d8w1k.js.gz +0 -0
  228. package/web/chunk-ah8e1y9j.js +4 -0
  229. package/web/chunk-ah8e1y9j.js.br +0 -0
  230. package/web/chunk-ah8e1y9j.js.gz +0 -0
  231. package/web/chunk-amsr9cg2.js +1 -0
  232. package/web/chunk-amsr9cg2.js.br +0 -0
  233. package/web/chunk-amsr9cg2.js.gz +0 -0
  234. package/web/chunk-aps2c5t2.js +16 -0
  235. package/web/chunk-aps2c5t2.js.br +0 -0
  236. package/web/chunk-aps2c5t2.js.gz +0 -0
  237. package/web/chunk-avfynf6y.js +1 -0
  238. package/web/chunk-avfynf6y.js.br +0 -0
  239. package/web/chunk-avfynf6y.js.gz +0 -0
  240. package/web/chunk-b5zrttcx.js +2 -0
  241. package/web/chunk-b5zrttcx.js.br +0 -0
  242. package/web/chunk-b5zrttcx.js.gz +0 -0
  243. package/web/chunk-bvvf024a.js +24 -0
  244. package/web/chunk-bvvf024a.js.br +0 -0
  245. package/web/chunk-bvvf024a.js.gz +0 -0
  246. package/web/chunk-by2dphx7.js +200 -0
  247. package/web/chunk-by2dphx7.js.br +0 -0
  248. package/web/chunk-by2dphx7.js.gz +0 -0
  249. package/web/chunk-c0sc2yy1.js +1 -0
  250. package/web/chunk-c0sc2yy1.js.br +0 -0
  251. package/web/chunk-c0sc2yy1.js.gz +0 -0
  252. package/web/chunk-c612n2pw.js +2 -0
  253. package/web/chunk-c612n2pw.js.br +0 -0
  254. package/web/chunk-c612n2pw.js.gz +0 -0
  255. package/web/chunk-c91rk85x.js +2 -0
  256. package/web/chunk-c91rk85x.js.br +0 -0
  257. package/web/chunk-c91rk85x.js.gz +0 -0
  258. package/web/chunk-catm30vp.js +2 -0
  259. package/web/chunk-catm30vp.js.br +0 -0
  260. package/web/chunk-catm30vp.js.gz +0 -0
  261. package/web/chunk-cbdxzddd.js +142 -0
  262. package/web/chunk-cbdxzddd.js.br +0 -0
  263. package/web/chunk-cbdxzddd.js.gz +0 -0
  264. package/web/chunk-cng693ts.js +2 -0
  265. package/web/chunk-cng693ts.js.br +0 -0
  266. package/web/chunk-cng693ts.js.gz +0 -0
  267. package/web/chunk-d5vcma5a.js +89 -0
  268. package/web/chunk-d5vcma5a.js.br +0 -0
  269. package/web/chunk-d5vcma5a.js.gz +0 -0
  270. package/web/chunk-d6d9cp71.js +1 -0
  271. package/web/chunk-d6d9cp71.js.br +2 -0
  272. package/web/chunk-d6d9cp71.js.gz +0 -0
  273. package/web/chunk-dsghhcew.js +1 -0
  274. package/web/chunk-dsghhcew.js.br +0 -0
  275. package/web/chunk-dsghhcew.js.gz +0 -0
  276. package/web/chunk-dt2e6evf.js +1 -0
  277. package/web/chunk-dt2e6evf.js.br +0 -0
  278. package/web/chunk-dt2e6evf.js.gz +0 -0
  279. package/web/chunk-dxrsmcah.js +1 -0
  280. package/web/chunk-dxrsmcah.js.br +0 -0
  281. package/web/chunk-dxrsmcah.js.gz +0 -0
  282. package/web/chunk-ent5zx24.js +1 -0
  283. package/web/chunk-ent5zx24.js.br +2 -0
  284. package/web/chunk-ent5zx24.js.gz +0 -0
  285. package/web/chunk-f4n1q3mf.js +1 -0
  286. package/web/chunk-f4n1q3mf.js.br +0 -0
  287. package/web/chunk-f4n1q3mf.js.gz +0 -0
  288. package/web/chunk-fdfrv6bc.js +1 -0
  289. package/web/chunk-fdfrv6bc.js.br +2 -0
  290. package/web/chunk-fdfrv6bc.js.gz +0 -0
  291. package/web/chunk-fh44xz70.js +1 -0
  292. package/web/chunk-fh44xz70.js.br +0 -0
  293. package/web/chunk-fh44xz70.js.gz +0 -0
  294. package/web/chunk-fkbp72gk.js +1 -0
  295. package/web/chunk-fkbp72gk.js.br +0 -0
  296. package/web/chunk-fkbp72gk.js.gz +0 -0
  297. package/web/chunk-fzkjgwzq.js +4 -0
  298. package/web/chunk-fzkjgwzq.js.br +0 -0
  299. package/web/chunk-fzkjgwzq.js.gz +0 -0
  300. package/web/chunk-gf2gznsb.js +38 -0
  301. package/web/chunk-gf2gznsb.js.br +0 -0
  302. package/web/chunk-gf2gznsb.js.gz +0 -0
  303. package/web/chunk-gne1ybac.js +2 -0
  304. package/web/chunk-gne1ybac.js.br +0 -0
  305. package/web/chunk-gne1ybac.js.gz +0 -0
  306. package/web/chunk-gws1fj71.js +106 -0
  307. package/web/chunk-gws1fj71.js.br +0 -0
  308. package/web/chunk-gws1fj71.js.gz +0 -0
  309. package/web/chunk-h4m88fg8.js +2 -0
  310. package/web/chunk-h4m88fg8.js.br +0 -0
  311. package/web/chunk-h4m88fg8.js.gz +0 -0
  312. package/web/chunk-h4vk09kd.js +2 -0
  313. package/web/chunk-h4vk09kd.js.br +0 -0
  314. package/web/chunk-h4vk09kd.js.gz +0 -0
  315. package/web/chunk-h6wzjfj2.js +34 -0
  316. package/web/chunk-h6wzjfj2.js.br +0 -0
  317. package/web/chunk-h6wzjfj2.js.gz +0 -0
  318. package/web/chunk-hajg1p0h.js +7 -0
  319. package/web/chunk-hajg1p0h.js.br +0 -0
  320. package/web/chunk-hajg1p0h.js.gz +0 -0
  321. package/web/chunk-hhmd6qrc.js +2 -0
  322. package/web/chunk-hhmd6qrc.js.br +0 -0
  323. package/web/chunk-hhmd6qrc.js.gz +0 -0
  324. package/web/chunk-hya0fh1r.js +1 -0
  325. package/web/chunk-hya0fh1r.js.br +0 -0
  326. package/web/chunk-hya0fh1r.js.gz +0 -0
  327. package/web/chunk-j469ky77.js +1 -0
  328. package/web/chunk-j469ky77.js.br +0 -0
  329. package/web/chunk-j469ky77.js.gz +0 -0
  330. package/web/chunk-j6ymcm3h.js +2 -0
  331. package/web/chunk-j6ymcm3h.js.br +0 -0
  332. package/web/chunk-j6ymcm3h.js.gz +0 -0
  333. package/web/chunk-j79z6bta.js +21 -0
  334. package/web/chunk-j79z6bta.js.br +0 -0
  335. package/web/chunk-j79z6bta.js.gz +0 -0
  336. package/web/chunk-jbxc5y3z.js +12 -0
  337. package/web/chunk-jbxc5y3z.js.br +0 -0
  338. package/web/chunk-jbxc5y3z.js.gz +0 -0
  339. package/web/chunk-jcc187d7.js +1 -0
  340. package/web/chunk-jcc187d7.js.br +0 -0
  341. package/web/chunk-jcc187d7.js.gz +0 -0
  342. package/web/chunk-jjvpdxhd.js +2 -0
  343. package/web/chunk-jjvpdxhd.js.br +0 -0
  344. package/web/chunk-jjvpdxhd.js.gz +0 -0
  345. package/web/chunk-jrh3mwmy.js +2 -0
  346. package/web/chunk-jrh3mwmy.js.br +0 -0
  347. package/web/chunk-jrh3mwmy.js.gz +0 -0
  348. package/web/chunk-jv3pgdp0.js +1 -0
  349. package/web/chunk-jv3pgdp0.js.br +2 -0
  350. package/web/chunk-jv3pgdp0.js.gz +0 -0
  351. package/web/chunk-ksxjhezb.js +1 -0
  352. package/web/chunk-ksxjhezb.js.br +0 -0
  353. package/web/chunk-ksxjhezb.js.gz +0 -0
  354. package/web/chunk-ktnd8t40.js +2 -0
  355. package/web/chunk-ktnd8t40.js.br +0 -0
  356. package/web/chunk-ktnd8t40.js.gz +0 -0
  357. package/web/chunk-mgwv3dp0.js +1 -0
  358. package/web/chunk-mgwv3dp0.js.br +0 -0
  359. package/web/chunk-mgwv3dp0.js.gz +0 -0
  360. package/web/chunk-mtjdfgjj.js +2 -0
  361. package/web/chunk-mtjdfgjj.js.br +0 -0
  362. package/web/chunk-mtjdfgjj.js.gz +0 -0
  363. package/web/chunk-mzkaanwd.js +2 -0
  364. package/web/chunk-mzkaanwd.js.br +0 -0
  365. package/web/chunk-mzkaanwd.js.gz +0 -0
  366. package/web/chunk-n22pg5xy.js +1 -0
  367. package/web/chunk-n22pg5xy.js.br +0 -0
  368. package/web/chunk-n22pg5xy.js.gz +0 -0
  369. package/web/chunk-n58ezsfb.js +2 -0
  370. package/web/chunk-n58ezsfb.js.br +0 -0
  371. package/web/chunk-n58ezsfb.js.gz +0 -0
  372. package/web/chunk-nhx74teq.js +3 -0
  373. package/web/chunk-nhx74teq.js.br +0 -0
  374. package/web/chunk-nhx74teq.js.gz +0 -0
  375. package/web/chunk-njjsgwfw.js +2 -0
  376. package/web/chunk-njjsgwfw.js.br +0 -0
  377. package/web/chunk-njjsgwfw.js.gz +0 -0
  378. package/web/chunk-nwhqcbnr.js +1 -0
  379. package/web/chunk-nwhqcbnr.js.br +0 -0
  380. package/web/chunk-nwhqcbnr.js.gz +0 -0
  381. package/web/chunk-pnghaajd.js +70 -0
  382. package/web/chunk-pnghaajd.js.br +0 -0
  383. package/web/chunk-pnghaajd.js.gz +0 -0
  384. package/web/chunk-pqfn8x7v.js +1 -0
  385. package/web/chunk-pqfn8x7v.js.br +0 -0
  386. package/web/chunk-pqfn8x7v.js.gz +0 -0
  387. package/web/chunk-ptk0jnyx.js +1 -0
  388. package/web/chunk-ptk0jnyx.js.br +0 -0
  389. package/web/chunk-ptk0jnyx.js.gz +0 -0
  390. package/web/chunk-pv7e5g4k.js +370 -0
  391. package/web/chunk-pv7e5g4k.js.br +0 -0
  392. package/web/chunk-pv7e5g4k.js.gz +0 -0
  393. package/web/chunk-pxnh5qgn.js +2 -0
  394. package/web/chunk-pxnh5qgn.js.br +0 -0
  395. package/web/chunk-pxnh5qgn.js.gz +0 -0
  396. package/web/chunk-q6eq5y2t.js +1 -0
  397. package/web/chunk-q6eq5y2t.js.br +2 -0
  398. package/web/chunk-q6eq5y2t.js.gz +0 -0
  399. package/web/chunk-qdwg9n1d.js +1 -0
  400. package/web/chunk-qdwg9n1d.js.br +0 -0
  401. package/web/chunk-qdwg9n1d.js.gz +0 -0
  402. package/web/chunk-qp42gtvd.js +1 -0
  403. package/web/chunk-qp42gtvd.js.br +0 -0
  404. package/web/chunk-qp42gtvd.js.gz +0 -0
  405. package/web/chunk-qzdw8vdp.js +1 -0
  406. package/web/chunk-qzdw8vdp.js.br +0 -0
  407. package/web/chunk-qzdw8vdp.js.gz +0 -0
  408. package/web/chunk-r571ywxq.js +1 -0
  409. package/web/chunk-r571ywxq.js.br +0 -0
  410. package/web/chunk-r571ywxq.js.gz +0 -0
  411. package/web/chunk-r9fx4cjw.js +1 -0
  412. package/web/chunk-r9fx4cjw.js.br +0 -0
  413. package/web/chunk-r9fx4cjw.js.gz +0 -0
  414. package/web/chunk-rhvq3c1c.js +1 -0
  415. package/web/chunk-rhvq3c1c.js.br +0 -0
  416. package/web/chunk-rhvq3c1c.js.gz +0 -0
  417. package/web/chunk-rjay9w1t.js +1 -0
  418. package/web/chunk-rjay9w1t.js.br +0 -0
  419. package/web/chunk-rjay9w1t.js.gz +0 -0
  420. package/web/chunk-rpvdnc3p.js +1 -0
  421. package/web/chunk-rpvdnc3p.js.br +0 -0
  422. package/web/chunk-rpvdnc3p.js.gz +0 -0
  423. package/web/chunk-rrfr4wyt.js +62 -0
  424. package/web/chunk-rrfr4wyt.js.br +0 -0
  425. package/web/chunk-rrfr4wyt.js.gz +0 -0
  426. package/web/chunk-rvngywg9.js +2 -0
  427. package/web/chunk-rvngywg9.js.br +0 -0
  428. package/web/chunk-rvngywg9.js.gz +0 -0
  429. package/web/chunk-rw7d025r.js +84 -0
  430. package/web/chunk-rw7d025r.js.br +0 -0
  431. package/web/chunk-rw7d025r.js.gz +0 -0
  432. package/web/chunk-s1g8acth.js +324 -0
  433. package/web/chunk-s1g8acth.js.br +0 -0
  434. package/web/chunk-s1g8acth.js.gz +0 -0
  435. package/web/chunk-s8572njv.js +2 -0
  436. package/web/chunk-s8572njv.js.br +1 -0
  437. package/web/chunk-s8572njv.js.gz +0 -0
  438. package/web/chunk-sb57e1m9.css +1 -0
  439. package/web/chunk-sb57e1m9.css.br +0 -0
  440. package/web/chunk-sb57e1m9.css.gz +0 -0
  441. package/web/chunk-sn3h5adt.js +2 -0
  442. package/web/chunk-sn3h5adt.js.br +0 -0
  443. package/web/chunk-sn3h5adt.js.gz +0 -0
  444. package/web/chunk-tb2v18q8.js +2 -0
  445. package/web/chunk-tb2v18q8.js.br +0 -0
  446. package/web/chunk-tb2v18q8.js.gz +0 -0
  447. package/web/chunk-tetbyky0.js +39 -0
  448. package/web/chunk-tetbyky0.js.br +0 -0
  449. package/web/chunk-tetbyky0.js.gz +0 -0
  450. package/web/chunk-tqvctvsv.js +1 -0
  451. package/web/chunk-tqvctvsv.js.br +0 -0
  452. package/web/chunk-tqvctvsv.js.gz +0 -0
  453. package/web/chunk-v9mj2pxz.js +1 -0
  454. package/web/chunk-v9mj2pxz.js.br +0 -0
  455. package/web/chunk-v9mj2pxz.js.gz +0 -0
  456. package/web/chunk-vkhah4nd.js +2 -0
  457. package/web/chunk-vkhah4nd.js.br +0 -0
  458. package/web/chunk-vkhah4nd.js.gz +0 -0
  459. package/web/chunk-vpnh7wmw.js +1 -0
  460. package/web/chunk-vpnh7wmw.js.br +0 -0
  461. package/web/chunk-vpnh7wmw.js.gz +0 -0
  462. package/web/chunk-w1qe2x5p.js +217 -0
  463. package/web/chunk-w1qe2x5p.js.br +0 -0
  464. package/web/chunk-w1qe2x5p.js.gz +0 -0
  465. package/web/chunk-werh47fw.js +99 -0
  466. package/web/chunk-werh47fw.js.br +0 -0
  467. package/web/chunk-werh47fw.js.gz +0 -0
  468. package/web/chunk-wfmf0dc8.js +1 -0
  469. package/web/chunk-wfmf0dc8.js.br +0 -0
  470. package/web/chunk-wfmf0dc8.js.gz +0 -0
  471. package/web/chunk-wna4vqp6.js +1 -0
  472. package/web/chunk-wna4vqp6.js.br +0 -0
  473. package/web/chunk-wna4vqp6.js.gz +0 -0
  474. package/web/chunk-wwhq09nf.js +1 -0
  475. package/web/chunk-wwhq09nf.js.br +0 -0
  476. package/web/chunk-wwhq09nf.js.gz +0 -0
  477. package/web/chunk-x6va53y6.js +291 -0
  478. package/web/chunk-x6va53y6.js.br +0 -0
  479. package/web/chunk-x6va53y6.js.gz +0 -0
  480. package/web/chunk-xefyzr9s.js +120 -0
  481. package/web/chunk-xefyzr9s.js.br +0 -0
  482. package/web/chunk-xefyzr9s.js.gz +0 -0
  483. package/web/chunk-xj1w9054.js +2 -0
  484. package/web/chunk-xj1w9054.js.br +0 -0
  485. package/web/chunk-xj1w9054.js.gz +0 -0
  486. package/web/chunk-xtb3xhxk.js +2 -0
  487. package/web/chunk-xtb3xhxk.js.br +2 -0
  488. package/web/chunk-xtb3xhxk.js.gz +0 -0
  489. package/web/chunk-y1eeptks.js +2 -0
  490. package/web/chunk-y1eeptks.js.br +0 -0
  491. package/web/chunk-y1eeptks.js.gz +0 -0
  492. package/web/chunk-y7z6zmvp.js +292 -0
  493. package/web/chunk-y7z6zmvp.js.br +0 -0
  494. package/web/chunk-y7z6zmvp.js.gz +0 -0
  495. package/web/chunk-yj8tkncg.js +7 -0
  496. package/web/chunk-yj8tkncg.js.br +0 -0
  497. package/web/chunk-yj8tkncg.js.gz +0 -0
  498. package/web/chunk-z0m2d74w.js +1 -0
  499. package/web/chunk-z0m2d74w.js.br +0 -0
  500. package/web/chunk-z0m2d74w.js.gz +0 -0
  501. package/web/chunk-z30kqv40.js +1 -0
  502. package/web/chunk-z30kqv40.js.br +0 -0
  503. package/web/chunk-z30kqv40.js.gz +0 -0
  504. package/web/chunk-z3a96d42.js +332 -0
  505. package/web/chunk-z3a96d42.js.br +0 -0
  506. package/web/chunk-z3a96d42.js.gz +0 -0
  507. package/web/index.html +1 -1
  508. package/web/index.html.br +0 -0
  509. package/web/index.html.gz +0 -0
  510. package/worker.js +1 -1
  511. package/chunk-0tr0cc6f.js +0 -3
  512. package/chunk-1f0mnggp.js +0 -3
  513. package/chunk-1ntcq7ed.js +0 -2
  514. package/chunk-1xkxfddg.js +0 -286
  515. package/chunk-1zz6akcm.js +0 -3
  516. package/chunk-2cd3qzny.js +0 -3
  517. package/chunk-2h2mvrw2.js +0 -3
  518. package/chunk-2sbmy31t.js +0 -2
  519. package/chunk-32s6agaj.js +0 -2
  520. package/chunk-37n62c4c.js +0 -3
  521. package/chunk-3w2902kg.js +0 -9
  522. package/chunk-43q7hq53.js +0 -2
  523. package/chunk-4ewh67qf.js +0 -25
  524. package/chunk-5277mfp2.js +0 -44
  525. package/chunk-54zpktrq.js +0 -3
  526. package/chunk-6f1zc4g6.js +0 -2
  527. package/chunk-6r4kw9x9.js +0 -60
  528. package/chunk-7qaavsga.js +0 -2
  529. package/chunk-88s6d1bz.js +0 -3
  530. package/chunk-9jw0km9r.js +0 -13
  531. package/chunk-a3h0mng1.js +0 -8
  532. package/chunk-acmtkg1q.js +0 -20
  533. package/chunk-adn9jbzj.js +0 -2
  534. package/chunk-anfhjdgv.js +0 -2
  535. package/chunk-apn5amfe.js +0 -498
  536. package/chunk-bsp6e8cv.js +0 -2
  537. package/chunk-bw2h35jd.js +0 -2
  538. package/chunk-bwx9m3ex.js +0 -51
  539. package/chunk-cezgvpja.js +0 -3
  540. package/chunk-cfhtmr6g.js +0 -31
  541. package/chunk-d5w3ntc3.js +0 -7
  542. package/chunk-dtks8c7v.js +0 -2
  543. package/chunk-e01g2yf9.js +0 -3
  544. package/chunk-e1rfd7jn.js +0 -3
  545. package/chunk-e8ehznx7.js +0 -2
  546. package/chunk-edp0svhf.js +0 -3
  547. package/chunk-evaew46c.js +0 -2
  548. package/chunk-ewhpfrgj.js +0 -3
  549. package/chunk-f7q6p7tp.js +0 -7
  550. package/chunk-fgpzy3fe.js +0 -3
  551. package/chunk-fm482h25.js +0 -3
  552. package/chunk-g3j6jdht.js +0 -39
  553. package/chunk-gejre6z5.js +0 -7
  554. package/chunk-gz5ssvjh.js +0 -3
  555. package/chunk-h32ca6cs.js +0 -11
  556. package/chunk-hab25nd9.js +0 -3
  557. package/chunk-jbfkv490.js +0 -8
  558. package/chunk-jem2kqdt.js +0 -3
  559. package/chunk-jrwezx0r.js +0 -16
  560. package/chunk-ka5dtn3w.js +0 -3
  561. package/chunk-kxmws6zx.js +0 -4068
  562. package/chunk-m0gk2b1f.js +0 -3
  563. package/chunk-mekgrca0.js +0 -25
  564. package/chunk-mkp20bwr.js +0 -2
  565. package/chunk-n4qxf40m.js +0 -2
  566. package/chunk-n9r9zzr4.js +0 -59
  567. package/chunk-ndca35jt.js +0 -5
  568. package/chunk-ng9vq9hy.js +0 -2
  569. package/chunk-nx1997s8.js +0 -2
  570. package/chunk-p99dt6kf.js +0 -12
  571. package/chunk-pnctvz58.js +0 -3
  572. package/chunk-ppgn9exm.js +0 -2
  573. package/chunk-pqq5znyp.js +0 -2
  574. package/chunk-q2429jd1.js +0 -3
  575. package/chunk-q3nmdtk4.js +0 -3
  576. package/chunk-q4r4nger.js +0 -3
  577. package/chunk-q6gq7g7m.js +0 -4
  578. package/chunk-qnejy3qp.js +0 -2
  579. package/chunk-sj0fqgjf.js +0 -10
  580. package/chunk-t5y3dqv3.js +0 -3
  581. package/chunk-t6vw73nv.js +0 -2
  582. package/chunk-t9zpdekw.js +0 -5
  583. package/chunk-v0xs5sy0.js +0 -2
  584. package/chunk-v8v2exqg.js +0 -2
  585. package/chunk-wgff8n0r.js +0 -2
  586. package/chunk-wpv679r1.js +0 -3
  587. package/chunk-wrw806wb.js +0 -3
  588. package/chunk-wsby70ce.js +0 -12
  589. package/chunk-xdbgpht7.js +0 -2
  590. package/chunk-y1b98tfk.js +0 -5
  591. package/chunk-y3m3w19s.js +0 -3
  592. package/chunk-y5p5jq48.js +0 -63
  593. package/chunk-ynf5sz68.js +0 -10
  594. package/chunk-zfk9az7y.js +0 -5
  595. package/chunk-zwse6b6t.js +0 -18
  596. package/web/chunk-016nkjwe.js +0 -2
  597. package/web/chunk-016nkjwe.js.br +0 -0
  598. package/web/chunk-016nkjwe.js.gz +0 -0
  599. package/web/chunk-0er8vdaw.js +0 -2
  600. package/web/chunk-0er8vdaw.js.br +0 -0
  601. package/web/chunk-0er8vdaw.js.gz +0 -0
  602. package/web/chunk-0sq0ed2h.js +0 -12
  603. package/web/chunk-0sq0ed2h.js.br +0 -0
  604. package/web/chunk-0sq0ed2h.js.gz +0 -0
  605. package/web/chunk-0w8swe64.js +0 -2
  606. package/web/chunk-0w8swe64.js.br +0 -0
  607. package/web/chunk-0w8swe64.js.gz +0 -0
  608. package/web/chunk-15pxdcz7.js +0 -1
  609. package/web/chunk-15pxdcz7.js.br +0 -0
  610. package/web/chunk-15pxdcz7.js.gz +0 -0
  611. package/web/chunk-1a1w9rth.js +0 -4
  612. package/web/chunk-1a1w9rth.js.br +0 -0
  613. package/web/chunk-1a1w9rth.js.gz +0 -0
  614. package/web/chunk-1e8tsn4c.js +0 -1
  615. package/web/chunk-1e8tsn4c.js.br +0 -0
  616. package/web/chunk-1e8tsn4c.js.gz +0 -0
  617. package/web/chunk-1jwp193e.js +0 -78
  618. package/web/chunk-1jwp193e.js.br +0 -0
  619. package/web/chunk-1jwp193e.js.gz +0 -0
  620. package/web/chunk-1wz0tepc.js +0 -106
  621. package/web/chunk-1wz0tepc.js.br +0 -0
  622. package/web/chunk-1wz0tepc.js.gz +0 -0
  623. package/web/chunk-20gcnbgn.js +0 -2
  624. package/web/chunk-20gcnbgn.js.br +0 -0
  625. package/web/chunk-20gcnbgn.js.gz +0 -0
  626. package/web/chunk-213m58wn.js +0 -1
  627. package/web/chunk-213m58wn.js.br +0 -0
  628. package/web/chunk-213m58wn.js.gz +0 -0
  629. package/web/chunk-2hat8cth.js +0 -1
  630. package/web/chunk-2hat8cth.js.br +0 -0
  631. package/web/chunk-2hat8cth.js.gz +0 -0
  632. package/web/chunk-2nwvdqxm.js +0 -1
  633. package/web/chunk-2nwvdqxm.js.br +0 -0
  634. package/web/chunk-2nwvdqxm.js.gz +0 -0
  635. package/web/chunk-3dj31vfh.js +0 -292
  636. package/web/chunk-3dj31vfh.js.br +0 -0
  637. package/web/chunk-3dj31vfh.js.gz +0 -0
  638. package/web/chunk-3g7waf75.js +0 -70
  639. package/web/chunk-3g7waf75.js.br +0 -0
  640. package/web/chunk-3g7waf75.js.gz +0 -0
  641. package/web/chunk-3x1zg1hk.js +0 -1
  642. package/web/chunk-3x1zg1hk.js.br +0 -0
  643. package/web/chunk-3x1zg1hk.js.gz +0 -0
  644. package/web/chunk-414npx47.js +0 -1
  645. package/web/chunk-414npx47.js.br +0 -0
  646. package/web/chunk-414npx47.js.gz +0 -0
  647. package/web/chunk-416ts17x.js +0 -2
  648. package/web/chunk-416ts17x.js.br +0 -0
  649. package/web/chunk-416ts17x.js.gz +0 -0
  650. package/web/chunk-47qwqp4f.js +0 -7
  651. package/web/chunk-47qwqp4f.js.br +0 -0
  652. package/web/chunk-47qwqp4f.js.gz +0 -0
  653. package/web/chunk-4k4c2se1.js +0 -2
  654. package/web/chunk-4k4c2se1.js.br +0 -0
  655. package/web/chunk-4k4c2se1.js.gz +0 -0
  656. package/web/chunk-4vsg8d4c.js +0 -4
  657. package/web/chunk-4vsg8d4c.js.br +0 -0
  658. package/web/chunk-4vsg8d4c.js.gz +0 -0
  659. package/web/chunk-53ag9hyw.js +0 -40
  660. package/web/chunk-53ag9hyw.js.br +0 -0
  661. package/web/chunk-53ag9hyw.js.gz +0 -0
  662. package/web/chunk-545zx869.js +0 -2
  663. package/web/chunk-545zx869.js.br +0 -0
  664. package/web/chunk-545zx869.js.gz +0 -0
  665. package/web/chunk-55mx05jg.js +0 -2
  666. package/web/chunk-55mx05jg.js.br +0 -0
  667. package/web/chunk-55mx05jg.js.gz +0 -0
  668. package/web/chunk-55phnzd7.js +0 -1
  669. package/web/chunk-55phnzd7.js.br +0 -0
  670. package/web/chunk-55phnzd7.js.gz +0 -0
  671. package/web/chunk-56a6njsk.js +0 -1
  672. package/web/chunk-56a6njsk.js.br +0 -0
  673. package/web/chunk-56a6njsk.js.gz +0 -0
  674. package/web/chunk-5hvs5kyx.js +0 -1
  675. package/web/chunk-5hvs5kyx.js.br +0 -0
  676. package/web/chunk-5hvs5kyx.js.gz +0 -0
  677. package/web/chunk-5nbyvd4t.js +0 -1
  678. package/web/chunk-5nbyvd4t.js.br +0 -0
  679. package/web/chunk-5nbyvd4t.js.gz +0 -0
  680. package/web/chunk-690qxds4.js +0 -1
  681. package/web/chunk-690qxds4.js.br +0 -0
  682. package/web/chunk-690qxds4.js.gz +0 -0
  683. package/web/chunk-6dr6eazd.js +0 -2
  684. package/web/chunk-6dr6eazd.js.br +0 -0
  685. package/web/chunk-6dr6eazd.js.gz +0 -0
  686. package/web/chunk-6nkegqxk.js +0 -139
  687. package/web/chunk-6nkegqxk.js.br +0 -0
  688. package/web/chunk-6nkegqxk.js.gz +0 -0
  689. package/web/chunk-6ypf5nq6.js +0 -140
  690. package/web/chunk-6ypf5nq6.js.br +0 -0
  691. package/web/chunk-6ypf5nq6.js.gz +0 -0
  692. package/web/chunk-70kws32b.js +0 -2
  693. package/web/chunk-70kws32b.js.br +0 -0
  694. package/web/chunk-70kws32b.js.gz +0 -0
  695. package/web/chunk-71tshjjr.js +0 -16
  696. package/web/chunk-71tshjjr.js.br +0 -0
  697. package/web/chunk-71tshjjr.js.gz +0 -0
  698. package/web/chunk-7fh9k75p.js +0 -1
  699. package/web/chunk-7fh9k75p.js.br +0 -0
  700. package/web/chunk-7fh9k75p.js.gz +0 -0
  701. package/web/chunk-7k8azd8z.js +0 -1
  702. package/web/chunk-7k8azd8z.js.br +0 -0
  703. package/web/chunk-7k8azd8z.js.gz +0 -0
  704. package/web/chunk-7mmebce4.js +0 -1
  705. package/web/chunk-7mmebce4.js.br +0 -0
  706. package/web/chunk-7mmebce4.js.gz +0 -0
  707. package/web/chunk-7mwghj09.js +0 -89
  708. package/web/chunk-7mwghj09.js.br +0 -0
  709. package/web/chunk-7mwghj09.js.gz +0 -0
  710. package/web/chunk-7y5kr56m.js +0 -1
  711. package/web/chunk-7y5kr56m.js.br +0 -0
  712. package/web/chunk-7y5kr56m.js.gz +0 -0
  713. package/web/chunk-8esqhp64.js +0 -1
  714. package/web/chunk-8esqhp64.js.br +0 -0
  715. package/web/chunk-8esqhp64.js.gz +0 -0
  716. package/web/chunk-8gxgpr3n.js +0 -214
  717. package/web/chunk-8gxgpr3n.js.br +0 -0
  718. package/web/chunk-8gxgpr3n.js.gz +0 -0
  719. package/web/chunk-8vnmk3y7.js +0 -1
  720. package/web/chunk-8vnmk3y7.js.br +0 -0
  721. package/web/chunk-8vnmk3y7.js.gz +0 -0
  722. package/web/chunk-99r862t8.js +0 -30
  723. package/web/chunk-99r862t8.js.br +0 -0
  724. package/web/chunk-99r862t8.js.gz +0 -0
  725. package/web/chunk-9cznsyf4.js +0 -7
  726. package/web/chunk-9cznsyf4.js.br +0 -0
  727. package/web/chunk-9cznsyf4.js.gz +0 -0
  728. package/web/chunk-9hmw91e9.js +0 -1
  729. package/web/chunk-9hmw91e9.js.br +0 -0
  730. package/web/chunk-9hmw91e9.js.gz +0 -0
  731. package/web/chunk-9j7v0e4v.js +0 -2
  732. package/web/chunk-9j7v0e4v.js.br +0 -0
  733. package/web/chunk-9j7v0e4v.js.gz +0 -0
  734. package/web/chunk-9pyad3tv.js +0 -1
  735. package/web/chunk-9pyad3tv.js.br +0 -0
  736. package/web/chunk-9pyad3tv.js.gz +0 -0
  737. package/web/chunk-9rf2smk2.js +0 -1142
  738. package/web/chunk-9rf2smk2.js.br +0 -0
  739. package/web/chunk-9rf2smk2.js.gz +0 -0
  740. package/web/chunk-aan5qk6x.js +0 -1
  741. package/web/chunk-aan5qk6x.js.br +0 -0
  742. package/web/chunk-aan5qk6x.js.gz +0 -0
  743. package/web/chunk-aaz4msca.js +0 -89
  744. package/web/chunk-aaz4msca.js.br +0 -0
  745. package/web/chunk-aaz4msca.js.gz +0 -0
  746. package/web/chunk-ag0ng2nt.js +0 -24
  747. package/web/chunk-ag0ng2nt.js.br +0 -0
  748. package/web/chunk-ag0ng2nt.js.gz +0 -0
  749. package/web/chunk-an9b0mhe.js +0 -55
  750. package/web/chunk-an9b0mhe.js.br +0 -0
  751. package/web/chunk-an9b0mhe.js.gz +0 -0
  752. package/web/chunk-apgvrfc2.js +0 -41
  753. package/web/chunk-apgvrfc2.js.br +0 -0
  754. package/web/chunk-apgvrfc2.js.gz +0 -0
  755. package/web/chunk-aq09zt1h.js +0 -332
  756. package/web/chunk-aq09zt1h.js.br +0 -0
  757. package/web/chunk-aq09zt1h.js.gz +0 -0
  758. package/web/chunk-ayy6rwm5.js +0 -1
  759. package/web/chunk-ayy6rwm5.js.br +0 -0
  760. package/web/chunk-ayy6rwm5.js.gz +0 -0
  761. package/web/chunk-azhw80d1.js +0 -1
  762. package/web/chunk-azhw80d1.js.br +0 -0
  763. package/web/chunk-azhw80d1.js.gz +0 -0
  764. package/web/chunk-b4bty1ns.js +0 -8
  765. package/web/chunk-b4bty1ns.js.br +0 -1
  766. package/web/chunk-b4bty1ns.js.gz +0 -0
  767. package/web/chunk-bs9934z7.js +0 -200
  768. package/web/chunk-bs9934z7.js.br +0 -0
  769. package/web/chunk-bs9934z7.js.gz +0 -0
  770. package/web/chunk-bvyjy17t.js +0 -14
  771. package/web/chunk-bvyjy17t.js.br +0 -0
  772. package/web/chunk-bvyjy17t.js.gz +0 -0
  773. package/web/chunk-c9nwfxrp.js +0 -1
  774. package/web/chunk-c9nwfxrp.js.br +0 -0
  775. package/web/chunk-c9nwfxrp.js.gz +0 -0
  776. package/web/chunk-capfyqch.js +0 -1
  777. package/web/chunk-capfyqch.js.br +0 -0
  778. package/web/chunk-capfyqch.js.gz +0 -0
  779. package/web/chunk-ckev38zc.js +0 -36
  780. package/web/chunk-ckev38zc.js.br +0 -0
  781. package/web/chunk-ckev38zc.js.gz +0 -0
  782. package/web/chunk-cnkerjp4.js +0 -370
  783. package/web/chunk-cnkerjp4.js.br +0 -0
  784. package/web/chunk-cnkerjp4.js.gz +0 -0
  785. package/web/chunk-d3bgcz6q.js +0 -1
  786. package/web/chunk-d3bgcz6q.js.br +0 -0
  787. package/web/chunk-d3bgcz6q.js.gz +0 -0
  788. package/web/chunk-d5n2yz4e.js +0 -2
  789. package/web/chunk-d5n2yz4e.js.br +0 -0
  790. package/web/chunk-d5n2yz4e.js.gz +0 -0
  791. package/web/chunk-d5xqtvb1.js +0 -2
  792. package/web/chunk-d5xqtvb1.js.br +0 -0
  793. package/web/chunk-d5xqtvb1.js.gz +0 -0
  794. package/web/chunk-daqfnvaw.js +0 -1
  795. package/web/chunk-daqfnvaw.js.br +0 -0
  796. package/web/chunk-daqfnvaw.js.gz +0 -0
  797. package/web/chunk-dqz580pg.js +0 -1
  798. package/web/chunk-dqz580pg.js.br +0 -0
  799. package/web/chunk-dqz580pg.js.gz +0 -0
  800. package/web/chunk-e54b48p5.js +0 -2
  801. package/web/chunk-e54b48p5.js.br +0 -0
  802. package/web/chunk-e54b48p5.js.gz +0 -0
  803. package/web/chunk-e8bgrjps.js +0 -2
  804. package/web/chunk-e8bgrjps.js.br +0 -0
  805. package/web/chunk-e8bgrjps.js.gz +0 -0
  806. package/web/chunk-efdg5mjf.js +0 -217
  807. package/web/chunk-efdg5mjf.js.br +0 -0
  808. package/web/chunk-efdg5mjf.js.gz +0 -0
  809. package/web/chunk-efhyygba.js +0 -7
  810. package/web/chunk-efhyygba.js.br +0 -0
  811. package/web/chunk-efhyygba.js.gz +0 -0
  812. package/web/chunk-en5n60qw.js +0 -2
  813. package/web/chunk-en5n60qw.js.br +0 -0
  814. package/web/chunk-en5n60qw.js.gz +0 -0
  815. package/web/chunk-eq0vm9vw.js +0 -2
  816. package/web/chunk-eq0vm9vw.js.br +0 -0
  817. package/web/chunk-eq0vm9vw.js.gz +0 -0
  818. package/web/chunk-eznkbqms.js +0 -1
  819. package/web/chunk-eznkbqms.js.br +0 -0
  820. package/web/chunk-eznkbqms.js.gz +0 -0
  821. package/web/chunk-f5wyg9zh.js +0 -2
  822. package/web/chunk-f5wyg9zh.js.br +0 -0
  823. package/web/chunk-f5wyg9zh.js.gz +0 -0
  824. package/web/chunk-f9rv8b13.js +0 -1
  825. package/web/chunk-f9rv8b13.js.br +0 -0
  826. package/web/chunk-f9rv8b13.js.gz +0 -0
  827. package/web/chunk-fnzyprme.js +0 -142
  828. package/web/chunk-fnzyprme.js.br +0 -0
  829. package/web/chunk-fnzyprme.js.gz +0 -0
  830. package/web/chunk-g63m3g5y.js +0 -1
  831. package/web/chunk-g63m3g5y.js.br +0 -2
  832. package/web/chunk-g63m3g5y.js.gz +0 -0
  833. package/web/chunk-g6gb3wz7.js +0 -1
  834. package/web/chunk-g6gb3wz7.js.br +0 -2
  835. package/web/chunk-g6gb3wz7.js.gz +0 -0
  836. package/web/chunk-g7ec62te.js +0 -2
  837. package/web/chunk-g7ec62te.js.br +0 -0
  838. package/web/chunk-g7ec62te.js.gz +0 -0
  839. package/web/chunk-gkj2bbdx.js +0 -1
  840. package/web/chunk-gkj2bbdx.js.br +0 -0
  841. package/web/chunk-gkj2bbdx.js.gz +0 -0
  842. package/web/chunk-gnx30bed.css +0 -1
  843. package/web/chunk-gnx30bed.css.br +0 -0
  844. package/web/chunk-gnx30bed.css.gz +0 -0
  845. package/web/chunk-gvndjaan.js +0 -2
  846. package/web/chunk-gvndjaan.js.br +0 -0
  847. package/web/chunk-gvndjaan.js.gz +0 -0
  848. package/web/chunk-h391pq6j.js +0 -1
  849. package/web/chunk-h391pq6j.js.br +0 -0
  850. package/web/chunk-h391pq6j.js.gz +0 -0
  851. package/web/chunk-h3kdr5mz.js +0 -21
  852. package/web/chunk-h3kdr5mz.js.br +0 -0
  853. package/web/chunk-h3kdr5mz.js.gz +0 -0
  854. package/web/chunk-hjs5pyye.js +0 -1
  855. package/web/chunk-hjs5pyye.js.br +0 -0
  856. package/web/chunk-hjs5pyye.js.gz +0 -0
  857. package/web/chunk-hxgtek0e.js +0 -2
  858. package/web/chunk-hxgtek0e.js.br +0 -0
  859. package/web/chunk-hxgtek0e.js.gz +0 -0
  860. package/web/chunk-j5a3jhp0.js +0 -120
  861. package/web/chunk-j5a3jhp0.js.br +0 -0
  862. package/web/chunk-j5a3jhp0.js.gz +0 -0
  863. package/web/chunk-jgdways6.js +0 -39
  864. package/web/chunk-jgdways6.js.br +0 -0
  865. package/web/chunk-jgdways6.js.gz +0 -0
  866. package/web/chunk-jybmjakj.js +0 -1
  867. package/web/chunk-jybmjakj.js.br +0 -2
  868. package/web/chunk-jybmjakj.js.gz +0 -0
  869. package/web/chunk-kasv56qe.js +0 -303
  870. package/web/chunk-kasv56qe.js.br +0 -0
  871. package/web/chunk-kasv56qe.js.gz +0 -0
  872. package/web/chunk-kmhbkjqx.js +0 -2
  873. package/web/chunk-kmhbkjqx.js.br +0 -0
  874. package/web/chunk-kmhbkjqx.js.gz +0 -0
  875. package/web/chunk-m06zdhdz.js +0 -1
  876. package/web/chunk-m06zdhdz.js.br +0 -0
  877. package/web/chunk-m06zdhdz.js.gz +0 -0
  878. package/web/chunk-mrnnq8dv.js +0 -1
  879. package/web/chunk-mrnnq8dv.js.br +0 -0
  880. package/web/chunk-mrnnq8dv.js.gz +0 -0
  881. package/web/chunk-mx1e3jgh.js +0 -1
  882. package/web/chunk-mx1e3jgh.js.br +0 -0
  883. package/web/chunk-mx1e3jgh.js.gz +0 -0
  884. package/web/chunk-n0tehchs.js +0 -3
  885. package/web/chunk-n0tehchs.js.br +0 -0
  886. package/web/chunk-n0tehchs.js.gz +0 -0
  887. package/web/chunk-n449ebhn.js +0 -38
  888. package/web/chunk-n449ebhn.js.br +0 -0
  889. package/web/chunk-n449ebhn.js.gz +0 -0
  890. package/web/chunk-ngsv0xfb.js +0 -1
  891. package/web/chunk-ngsv0xfb.js.br +0 -0
  892. package/web/chunk-ngsv0xfb.js.gz +0 -0
  893. package/web/chunk-ngy730n0.js +0 -1
  894. package/web/chunk-ngy730n0.js.br +0 -0
  895. package/web/chunk-ngy730n0.js.gz +0 -0
  896. package/web/chunk-nj9dtqyd.js +0 -2
  897. package/web/chunk-nj9dtqyd.js.br +0 -0
  898. package/web/chunk-nj9dtqyd.js.gz +0 -0
  899. package/web/chunk-nzaq0yae.js +0 -2
  900. package/web/chunk-nzaq0yae.js.br +0 -0
  901. package/web/chunk-nzaq0yae.js.gz +0 -0
  902. package/web/chunk-pgnfj8ea.js +0 -2
  903. package/web/chunk-pgnfj8ea.js.br +0 -0
  904. package/web/chunk-pgnfj8ea.js.gz +0 -0
  905. package/web/chunk-qtgen5c5.js +0 -24
  906. package/web/chunk-qtgen5c5.js.br +0 -0
  907. package/web/chunk-qtgen5c5.js.gz +0 -0
  908. package/web/chunk-qzn05afn.js +0 -169
  909. package/web/chunk-qzn05afn.js.br +0 -0
  910. package/web/chunk-qzn05afn.js.gz +0 -0
  911. package/web/chunk-r76we294.js +0 -1
  912. package/web/chunk-r76we294.js.br +0 -0
  913. package/web/chunk-r76we294.js.gz +0 -0
  914. package/web/chunk-r7st369j.js +0 -1
  915. package/web/chunk-r7st369j.js.br +0 -0
  916. package/web/chunk-r7st369j.js.gz +0 -0
  917. package/web/chunk-rj1rp0tc.js +0 -1
  918. package/web/chunk-rj1rp0tc.js.br +0 -0
  919. package/web/chunk-rj1rp0tc.js.gz +0 -0
  920. package/web/chunk-sgy3c5m7.js +0 -62
  921. package/web/chunk-sgy3c5m7.js.br +0 -0
  922. package/web/chunk-sgy3c5m7.js.gz +0 -0
  923. package/web/chunk-t7s9xrxt.js +0 -34
  924. package/web/chunk-t7s9xrxt.js.br +0 -0
  925. package/web/chunk-t7s9xrxt.js.gz +0 -0
  926. package/web/chunk-tmf1jnqz.js +0 -2
  927. package/web/chunk-tmf1jnqz.js.br +0 -0
  928. package/web/chunk-tmf1jnqz.js.gz +0 -0
  929. package/web/chunk-tn39vbcz.js +0 -2
  930. package/web/chunk-tn39vbcz.js.br +0 -0
  931. package/web/chunk-tn39vbcz.js.gz +0 -0
  932. package/web/chunk-tntwwpyh.js +0 -2
  933. package/web/chunk-tntwwpyh.js.br +0 -0
  934. package/web/chunk-tntwwpyh.js.gz +0 -0
  935. package/web/chunk-tpzyyc2z.js +0 -2
  936. package/web/chunk-tpzyyc2z.js.br +0 -0
  937. package/web/chunk-tpzyyc2z.js.gz +0 -0
  938. package/web/chunk-v95eqx92.js +0 -84
  939. package/web/chunk-v95eqx92.js.br +0 -0
  940. package/web/chunk-v95eqx92.js.gz +0 -0
  941. package/web/chunk-vcj5m1xb.js +0 -1
  942. package/web/chunk-vcj5m1xb.js.br +0 -0
  943. package/web/chunk-vcj5m1xb.js.gz +0 -0
  944. package/web/chunk-vndrjeyr.js +0 -2
  945. package/web/chunk-vndrjeyr.js.br +0 -0
  946. package/web/chunk-vndrjeyr.js.gz +0 -0
  947. package/web/chunk-vq0zf16h.js +0 -1
  948. package/web/chunk-vq0zf16h.js.br +0 -0
  949. package/web/chunk-vq0zf16h.js.gz +0 -0
  950. package/web/chunk-vqhtph6r.js +0 -1
  951. package/web/chunk-vqhtph6r.js.br +0 -0
  952. package/web/chunk-vqhtph6r.js.gz +0 -0
  953. package/web/chunk-vvsfwjrg.js +0 -1
  954. package/web/chunk-vvsfwjrg.js.br +0 -0
  955. package/web/chunk-vvsfwjrg.js.gz +0 -0
  956. package/web/chunk-vz2mgxs7.js +0 -1
  957. package/web/chunk-vz2mgxs7.js.br +0 -0
  958. package/web/chunk-vz2mgxs7.js.gz +0 -0
  959. package/web/chunk-wdd9pasx.js +0 -1
  960. package/web/chunk-wdd9pasx.js.br +0 -0
  961. package/web/chunk-wdd9pasx.js.gz +0 -0
  962. package/web/chunk-wry3q68j.js +0 -1
  963. package/web/chunk-wry3q68j.js.br +0 -2
  964. package/web/chunk-wry3q68j.js.gz +0 -0
  965. package/web/chunk-wrz0gqnv.js +0 -1
  966. package/web/chunk-wrz0gqnv.js.br +0 -0
  967. package/web/chunk-wrz0gqnv.js.gz +0 -0
  968. package/web/chunk-wvapb3r6.js +0 -98
  969. package/web/chunk-wvapb3r6.js.br +0 -0
  970. package/web/chunk-wvapb3r6.js.gz +0 -0
  971. package/web/chunk-x6qva9zc.js +0 -324
  972. package/web/chunk-x6qva9zc.js.br +0 -0
  973. package/web/chunk-x6qva9zc.js.gz +0 -0
  974. package/web/chunk-xa2ngtyg.js +0 -2
  975. package/web/chunk-xa2ngtyg.js.br +0 -0
  976. package/web/chunk-xa2ngtyg.js.gz +0 -0
  977. package/web/chunk-xhjf5ye0.js +0 -1
  978. package/web/chunk-xhjf5ye0.js.br +0 -0
  979. package/web/chunk-xhjf5ye0.js.gz +0 -0
  980. package/web/chunk-xkqekh81.js +0 -2
  981. package/web/chunk-xkqekh81.js.br +0 -0
  982. package/web/chunk-xkqekh81.js.gz +0 -0
  983. package/web/chunk-xsjvamcy.js +0 -1
  984. package/web/chunk-xsjvamcy.js.br +0 -0
  985. package/web/chunk-xsjvamcy.js.gz +0 -0
  986. package/web/chunk-xyfnr395.js +0 -1
  987. package/web/chunk-xyfnr395.js.br +0 -0
  988. package/web/chunk-xyfnr395.js.gz +0 -0
  989. package/web/chunk-y48mj5d7.js +0 -1
  990. package/web/chunk-y48mj5d7.js.br +0 -0
  991. package/web/chunk-y48mj5d7.js.gz +0 -0
  992. package/web/chunk-y4x1g94q.js +0 -1
  993. package/web/chunk-y4x1g94q.js.br +0 -0
  994. package/web/chunk-y4x1g94q.js.gz +0 -0
  995. package/web/chunk-yzbp4vpe.js +0 -1
  996. package/web/chunk-yzbp4vpe.js.br +0 -0
  997. package/web/chunk-yzbp4vpe.js.gz +0 -0
  998. package/web/chunk-z601k790.js +0 -291
  999. package/web/chunk-z601k790.js.br +0 -0
  1000. package/web/chunk-z601k790.js.gz +0 -0
  1001. package/web/chunk-zc9mxd01.js +0 -99
  1002. package/web/chunk-zc9mxd01.js.br +0 -0
  1003. package/web/chunk-zc9mxd01.js.gz +0 -0
  1004. package/web/chunk-zm1jfkcz.js +0 -2
  1005. package/web/chunk-zm1jfkcz.js.br +0 -0
  1006. package/web/chunk-zm1jfkcz.js.gz +0 -0
  1007. package/web/chunk-zz0d7377.js +0 -2
  1008. package/web/chunk-zz0d7377.js.br +0 -0
  1009. package/web/chunk-zz0d7377.js.gz +0 -0
@@ -0,0 +1,303 @@
1
+ import{rt,at,S}from"./chunk-600x58nm.js";var Ro=at(function(zl,Hl){(function(r,e){typeof zl=="object"&&typeof Hl<"u"?Hl.exports=e():typeof define=="function"&&define.amd?define(e):(r=typeof globalThis<"u"?globalThis:r||self).dayjs=e()})(zl,function(){var r=1000,e=60000,o=3600000,a="millisecond",s="second",n="minute",c="hour",l="day",f="week",p="month",u="quarter",m="year",x="date",w="Invalid Date",T=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,_=/\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,v={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(bt){var it=["th","st","nd","rd"],ot=bt%100;return"["+bt+(it[(ot-20)%10]||it[ot]||it[0])+"]"}},F=function(bt,it,ot){var yt=String(bt);return!yt||yt.length>=it?bt:""+Array(it+1-yt.length).join(ot)+bt},U={s:F,z:function(bt){var it=-bt.utcOffset(),ot=Math.abs(it),yt=Math.floor(ot/60),et=ot%60;return(it<=0?"+":"-")+F(yt,2,"0")+":"+F(et,2,"0")},m:function bt(it,ot){if(it.date()<ot.date())return-bt(ot,it);var yt=12*(ot.year()-it.year())+(ot.month()-it.month()),et=it.clone().add(yt,p),wt=ot-et<0,Lt=it.clone().add(yt+(wt?-1:1),p);return+(-(yt+(ot-et)/(wt?et-Lt:Lt-et))||0)},a:function(bt){return bt<0?Math.ceil(bt)||0:Math.floor(bt)},p:function(bt){return{M:p,y:m,w:f,d:l,D:x,h:c,m:n,s,ms:a,Q:u}[bt]||String(bt||"").toLowerCase().replace(/s$/,"")},u:function(bt){return bt===void 0}},V="en",Z={};Z[V]=v;var J="$isDayjsObject",lt=function(bt){return bt instanceof Bt||!(!bt||!bt[J])},st=function bt(it,ot,yt){var et;if(!it)return V;if(typeof it=="string"){var wt=it.toLowerCase();Z[wt]&&(et=wt),ot&&(Z[wt]=ot,et=wt);var Lt=it.split("-");if(!et&&Lt.length>1)return bt(Lt[0])}else{var Vt=it.name;Z[Vt]=it,et=Vt}return!yt&&et&&(V=et),et||!yt&&V},dt=function(bt,it){if(lt(bt))return bt.clone();var ot=typeof it=="object"?it:{};return ot.date=bt,ot.args=arguments,new Bt(ot)},Ct=U;Ct.l=st,Ct.i=lt,Ct.w=function(bt,it){return dt(bt,{locale:it.$L,utc:it.$u,x:it.$x,$offset:it.$offset})};var Bt=function(){function bt(ot){this.$L=st(ot.locale,null,!0),this.parse(ot),this.$x=this.$x||ot.x||{},this[J]=!0}var it=bt.prototype;return it.parse=function(ot){this.$d=function(yt){var{date:et,utc:wt}=yt;if(et===null)return new Date(NaN);if(Ct.u(et))return new Date;if(et instanceof Date)return new Date(et);if(typeof et=="string"&&!/Z$/i.test(et)){var Lt=et.match(T);if(Lt){var Vt=Lt[2]-1||0,Xt=(Lt[7]||"0").substring(0,3);return wt?new Date(Date.UTC(Lt[1],Vt,Lt[3]||1,Lt[4]||0,Lt[5]||0,Lt[6]||0,Xt)):new Date(Lt[1],Vt,Lt[3]||1,Lt[4]||0,Lt[5]||0,Lt[6]||0,Xt)}}return new Date(et)}(ot),this.init()},it.init=function(){var ot=this.$d;this.$y=ot.getFullYear(),this.$M=ot.getMonth(),this.$D=ot.getDate(),this.$W=ot.getDay(),this.$H=ot.getHours(),this.$m=ot.getMinutes(),this.$s=ot.getSeconds(),this.$ms=ot.getMilliseconds()},it.$utils=function(){return Ct},it.isValid=function(){return this.$d.toString()!==w},it.isSame=function(ot,yt){var et=dt(ot);return this.startOf(yt)<=et&&et<=this.endOf(yt)},it.isAfter=function(ot,yt){return dt(ot)<this.startOf(yt)},it.isBefore=function(ot,yt){return this.endOf(yt)<dt(ot)},it.$g=function(ot,yt,et){return Ct.u(ot)?this[yt]:this.set(et,ot)},it.unix=function(){return Math.floor(this.valueOf()/1000)},it.valueOf=function(){return this.$d.getTime()},it.startOf=function(ot,yt){var et=this,wt=!!Ct.u(yt)||yt,Lt=Ct.p(ot),Vt=function(ie,ne){var le=Ct.w(et.$u?Date.UTC(et.$y,ne,ie):new Date(et.$y,ne,ie),et);return wt?le:le.endOf(l)},Xt=function(ie,ne){return Ct.w(et.toDate()[ie].apply(et.toDate("s"),(wt?[0,0,0,0]:[23,59,59,999]).slice(ne)),et)},ae=this.$W,se=this.$M,pe=this.$D,me="set"+(this.$u?"UTC":"");switch(Lt){case m:return wt?Vt(1,0):Vt(31,11);case p:return wt?Vt(1,se):Vt(0,se+1);case f:var ue=this.$locale().weekStart||0,Gt=(ae<ue?ae+7:ae)-ue;return Vt(wt?pe-Gt:pe+(6-Gt),se);case l:case x:return Xt(me+"Hours",0);case c:return Xt(me+"Minutes",1);case n:return Xt(me+"Seconds",2);case s:return Xt(me+"Milliseconds",3);default:return this.clone()}},it.endOf=function(ot){return this.startOf(ot,!1)},it.$set=function(ot,yt){var et,wt=Ct.p(ot),Lt="set"+(this.$u?"UTC":""),Vt=(et={},et[l]=Lt+"Date",et[x]=Lt+"Date",et[p]=Lt+"Month",et[m]=Lt+"FullYear",et[c]=Lt+"Hours",et[n]=Lt+"Minutes",et[s]=Lt+"Seconds",et[a]=Lt+"Milliseconds",et)[wt],Xt=wt===l?this.$D+(yt-this.$W):yt;if(wt===p||wt===m){var ae=this.clone().set(x,1);ae.$d[Vt](Xt),ae.init(),this.$d=ae.set(x,Math.min(this.$D,ae.daysInMonth())).$d}else Vt&&this.$d[Vt](Xt);return this.init(),this},it.set=function(ot,yt){return this.clone().$set(ot,yt)},it.get=function(ot){return this[Ct.p(ot)]()},it.add=function(ot,yt){var et,wt=this;ot=Number(ot);var Lt=Ct.p(yt),Vt=function(se){var pe=dt(wt);return Ct.w(pe.date(pe.date()+Math.round(se*ot)),wt)};if(Lt===p)return this.set(p,this.$M+ot);if(Lt===m)return this.set(m,this.$y+ot);if(Lt===l)return Vt(1);if(Lt===f)return Vt(7);var Xt=(et={},et[n]=e,et[c]=o,et[s]=r,et)[Lt]||1,ae=this.$d.getTime()+ot*Xt;return Ct.w(ae,this)},it.subtract=function(ot,yt){return this.add(-1*ot,yt)},it.format=function(ot){var yt=this,et=this.$locale();if(!this.isValid())return et.invalidDate||w;var wt=ot||"YYYY-MM-DDTHH:mm:ssZ",Lt=Ct.z(this),Vt=this.$H,Xt=this.$m,ae=this.$M,{weekdays:se,months:pe,meridiem:me}=et,ue=function(ne,le,ve,Be){return ne&&(ne[le]||ne(yt,wt))||ve[le].slice(0,Be)},Gt=function(ne){return Ct.s(Vt%12||12,ne,"0")},ie=me||function(ne,le,ve){var Be=ne<12?"AM":"PM";return ve?Be.toLowerCase():Be};return wt.replace(_,function(ne,le){return le||function(ve){switch(ve){case"YY":return String(yt.$y).slice(-2);case"YYYY":return Ct.s(yt.$y,4,"0");case"M":return ae+1;case"MM":return Ct.s(ae+1,2,"0");case"MMM":return ue(et.monthsShort,ae,pe,3);case"MMMM":return ue(pe,ae);case"D":return yt.$D;case"DD":return Ct.s(yt.$D,2,"0");case"d":return String(yt.$W);case"dd":return ue(et.weekdaysMin,yt.$W,se,2);case"ddd":return ue(et.weekdaysShort,yt.$W,se,3);case"dddd":return se[yt.$W];case"H":return String(Vt);case"HH":return Ct.s(Vt,2,"0");case"h":return Gt(1);case"hh":return Gt(2);case"a":return ie(Vt,Xt,!0);case"A":return ie(Vt,Xt,!1);case"m":return String(Xt);case"mm":return Ct.s(Xt,2,"0");case"s":return String(yt.$s);case"ss":return Ct.s(yt.$s,2,"0");case"SSS":return Ct.s(yt.$ms,3,"0");case"Z":return Lt}return null}(ne)||Lt.replace(":","")})},it.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},it.diff=function(ot,yt,et){var wt,Lt=this,Vt=Ct.p(yt),Xt=dt(ot),ae=(Xt.utcOffset()-this.utcOffset())*e,se=this-Xt,pe=function(){return Ct.m(Lt,Xt)};switch(Vt){case m:wt=pe()/12;break;case p:wt=pe();break;case u:wt=pe()/3;break;case f:wt=(se-ae)/604800000;break;case l:wt=(se-ae)/86400000;break;case c:wt=se/o;break;case n:wt=se/e;break;case s:wt=se/r;break;default:wt=se}return et?wt:Ct.a(wt)},it.daysInMonth=function(){return this.endOf(p).$D},it.$locale=function(){return Z[this.$L]},it.locale=function(ot,yt){if(!ot)return this.$L;var et=this.clone(),wt=st(ot,yt,!0);return wt&&(et.$L=wt),et},it.clone=function(){return Ct.w(this.$d,this)},it.toDate=function(){return new Date(this.valueOf())},it.toJSON=function(){return this.isValid()?this.toISOString():null},it.toISOString=function(){return this.$d.toISOString()},it.toString=function(){return this.$d.toUTCString()},bt}(),kt=Bt.prototype;return dt.prototype=kt,[["$ms",a],["$s",s],["$m",n],["$H",c],["$W",l],["$M",p],["$y",m],["$D",x]].forEach(function(bt){kt[bt[1]]=function(it){return this.$g(it,bt[0],bt[1])}}),dt.extend=function(bt,it){return bt.$i||(bt(it,Bt,dt),bt.$i=!0),dt},dt.locale=st,dt.isDayjs=lt,dt.unix=function(bt){return dt(1000*bt)},dt.en=Z[V],dt.Ls=Z,dt.p={},dt})});var sm=at(function(im){Object.defineProperty(im,"__esModule",{value:!0});im.BLANK_URL=im.relativeFirstCharacters=im.whitespaceEscapeCharsRegex=im.urlSchemeRegex=im.ctrlCharactersRegex=im.htmlCtrlEntityRegex=im.htmlEntitiesRegex=im.invalidProtocolRegex=void 0;im.invalidProtocolRegex=/^([^\w]*)(javascript|data|vbscript)/im;im.htmlEntitiesRegex=/&#(\w+)(^\w|;)?/g;im.htmlCtrlEntityRegex=/&(newline|tab);/gi;im.ctrlCharactersRegex=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim;im.urlSchemeRegex=/^.+(:|&colon;)/gim;im.whitespaceEscapeCharsRegex=/(\\|%5[cC])((%(6[eE]|72|74))|[nrt])/g;im.relativeFirstCharacters=[".","/"];im.BLANK_URL="about:blank"});var Ca=at(function(nm){Object.defineProperty(nm,"__esModule",{value:!0});nm.sanitizeUrl=T2;var rr=sm();function k2(r){return rr.relativeFirstCharacters.indexOf(r[0])>-1}function w2(r){var e=r.replace(rr.ctrlCharactersRegex,"");return e.replace(rr.htmlEntitiesRegex,function(o,a){return String.fromCharCode(a)})}function S2(r){return URL.canParse(r)}function am(r){try{return decodeURIComponent(r)}catch(e){return r}}function T2(r){if(!r)return rr.BLANK_URL;var e,o=am(r.trim());do o=w2(o).replace(rr.htmlCtrlEntityRegex,"").replace(rr.ctrlCharactersRegex,"").replace(rr.whitespaceEscapeCharsRegex,"").trim(),o=am(o),e=o.match(rr.ctrlCharactersRegex)||o.match(rr.htmlEntitiesRegex)||o.match(rr.htmlCtrlEntityRegex)||o.match(rr.whitespaceEscapeCharsRegex);while(e&&e.length>0);var a=o;if(!a)return rr.BLANK_URL;if(k2(a))return a;var s=a.trimStart(),n=s.match(rr.urlSchemeRegex);if(!n)return a;var c=n[0].toLowerCase().trim();if(rr.invalidProtocolRegex.test(c))return rr.BLANK_URL;var l=s.replace(/\\/g,"/");if(c==="mailto:"||c.includes("://"))return l;if(c==="http:"||c==="https:"){if(!S2(l))return rr.BLANK_URL;var f=new URL(l);return f.protocol=f.protocol.toLowerCase(),f.hostname=f.hostname.toLowerCase(),f.toString()}return l}});var _d=Object.defineProperty,t=(r,e)=>_d(r,"name",{value:e,configurable:!0}),dr=(r,e)=>{for(var o in e)_d(r,o,{get:e[o],enumerable:!0})};var Bd=rt(Ro(),1),xi={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},i={trace:t((...r)=>{},"trace"),debug:t((...r)=>{},"debug"),info:t((...r)=>{},"info"),warn:t((...r)=>{},"warn"),error:t((...r)=>{},"error"),fatal:t((...r)=>{},"fatal")},Hi=t(function(r="fatal"){let e=xi.fatal;if(typeof r==="string"){if(r.toLowerCase()in xi)e=xi[r]}else if(typeof r==="number")e=r;if(i.trace=()=>{},i.debug=()=>{},i.info=()=>{},i.warn=()=>{},i.error=()=>{},i.fatal=()=>{},e<=xi.fatal)i.fatal=console.error?console.error.bind(console,_r("FATAL"),"color: orange"):console.log.bind(console,"\x1B[35m",_r("FATAL"));if(e<=xi.error)i.error=console.error?console.error.bind(console,_r("ERROR"),"color: orange"):console.log.bind(console,"\x1B[31m",_r("ERROR"));if(e<=xi.warn)i.warn=console.warn?console.warn.bind(console,_r("WARN"),"color: orange"):console.log.bind(console,"\x1B[33m",_r("WARN"));if(e<=xi.info)i.info=console.info?console.info.bind(console,_r("INFO"),"color: lightblue"):console.log.bind(console,"\x1B[34m",_r("INFO"));if(e<=xi.debug)i.debug=console.debug?console.debug.bind(console,_r("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",_r("DEBUG"));if(e<=xi.trace)i.trace=console.debug?console.debug.bind(console,_r("TRACE"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",_r("TRACE"))},"setLogLevel"),_r=t((r)=>`%c${Bd.default().format("ss.SSS")} : ${r} : `,"format");var Za={min:{r:0,g:0,b:0,s:0,l:0,a:0},max:{r:255,g:255,b:255,h:360,s:100,l:100,a:1},clamp:{r:(r)=>r>=255?255:r<0?0:r,g:(r)=>r>=255?255:r<0?0:r,b:(r)=>r>=255?255:r<0?0:r,h:(r)=>r%360,s:(r)=>r>=100?100:r<0?0:r,l:(r)=>r>=100?100:r<0?0:r,a:(r)=>r>=1?1:r<0?0:r},toLinear:(r)=>{let e=r/255;return r>0.03928?Math.pow((e+0.055)/1.055,2.4):e/12.92},hue2rgb:(r,e,o)=>{if(o<0)o+=1;if(o>1)o-=1;if(o<0.16666666666666666)return r+(e-r)*6*o;if(o<0.5)return e;if(o<0.6666666666666666)return r+(e-r)*(0.6666666666666666-o)*6;return r},hsl2rgb:({h:r,s:e,l:o},a)=>{if(!e)return o*2.55;r/=360,e/=100,o/=100;let s=o<0.5?o*(1+e):o+e-o*e,n=2*o-s;switch(a){case"r":return Za.hue2rgb(n,s,r+0.3333333333333333)*255;case"g":return Za.hue2rgb(n,s,r)*255;case"b":return Za.hue2rgb(n,s,r-0.3333333333333333)*255}},rgb2hsl:({r,g:e,b:o},a)=>{r/=255,e/=255,o/=255;let s=Math.max(r,e,o),n=Math.min(r,e,o),c=(s+n)/2;if(a==="l")return c*100;if(s===n)return 0;let l=s-n,f=c>0.5?l/(2-s-n):l/(s+n);if(a==="s")return f*100;switch(s){case r:return((e-o)/l+(e<o?6:0))*60;case e:return((o-r)/l+2)*60;case o:return((r-e)/l+4)*60;default:return-1}}},vd=Za;var rC={clamp:(r,e,o)=>{if(e>o)return Math.min(e,Math.max(o,r));return Math.min(o,Math.max(e,r))},round:(r)=>Math.round(r*10000000000)/10000000000},Ld=rC;var iC={dec2hex:(r)=>{let e=Math.round(r).toString(16);return e.length>1?e:`0${e}`}},Fd=iC;var oC={channel:vd,lang:Ld,unit:Fd},X=oC;var Ci={};for(let r=0;r<=255;r++)Ci[r]=X.unit.dec2hex(r);var Ue={ALL:0,RGB:1,HSL:2};class Ad{constructor(){this.type=Ue.ALL}get(){return this.type}set(r){if(this.type&&this.type!==r)throw Error("Cannot change both RGB and HSL channels at the same time");this.type=r}reset(){this.type=Ue.ALL}is(r){return this.type===r}}var Md=Ad;class Ed{constructor(r,e){this.color=e,this.changed=!1,this.data=r,this.type=new Md}set(r,e){return this.color=e,this.changed=!1,this.data=r,this.type.type=Ue.ALL,this}_ensureHSL(){let r=this.data,{h:e,s:o,l:a}=r;if(e===void 0)r.h=X.channel.rgb2hsl(r,"h");if(o===void 0)r.s=X.channel.rgb2hsl(r,"s");if(a===void 0)r.l=X.channel.rgb2hsl(r,"l")}_ensureRGB(){let r=this.data,{r:e,g:o,b:a}=r;if(e===void 0)r.r=X.channel.hsl2rgb(r,"r");if(o===void 0)r.g=X.channel.hsl2rgb(r,"g");if(a===void 0)r.b=X.channel.hsl2rgb(r,"b")}get r(){let r=this.data,e=r.r;if(!this.type.is(Ue.HSL)&&e!==void 0)return e;return this._ensureHSL(),X.channel.hsl2rgb(r,"r")}get g(){let r=this.data,e=r.g;if(!this.type.is(Ue.HSL)&&e!==void 0)return e;return this._ensureHSL(),X.channel.hsl2rgb(r,"g")}get b(){let r=this.data,e=r.b;if(!this.type.is(Ue.HSL)&&e!==void 0)return e;return this._ensureHSL(),X.channel.hsl2rgb(r,"b")}get h(){let r=this.data,e=r.h;if(!this.type.is(Ue.RGB)&&e!==void 0)return e;return this._ensureRGB(),X.channel.rgb2hsl(r,"h")}get s(){let r=this.data,e=r.s;if(!this.type.is(Ue.RGB)&&e!==void 0)return e;return this._ensureRGB(),X.channel.rgb2hsl(r,"s")}get l(){let r=this.data,e=r.l;if(!this.type.is(Ue.RGB)&&e!==void 0)return e;return this._ensureRGB(),X.channel.rgb2hsl(r,"l")}get a(){return this.data.a}set r(r){this.type.set(Ue.RGB),this.changed=!0,this.data.r=r}set g(r){this.type.set(Ue.RGB),this.changed=!0,this.data.g=r}set b(r){this.type.set(Ue.RGB),this.changed=!0,this.data.b=r}set h(r){this.type.set(Ue.HSL),this.changed=!0,this.data.h=r}set s(r){this.type.set(Ue.HSL),this.changed=!0,this.data.s=r}set l(r){this.type.set(Ue.HSL),this.changed=!0,this.data.l=r}set a(r){this.changed=!0,this.data.a=r}}var Od=Ed;var sC=new Od({r:0,g:0,b:0,a:0},"transparent"),Di=sC;var Id={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:(r)=>{if(r.charCodeAt(0)!==35)return;let e=r.match(Id.re);if(!e)return;let o=e[1],a=parseInt(o,16),s=o.length,n=s%4===0,c=s>4,l=c?1:17,f=c?8:4,p=n?0:-1,u=c?255:15;return Di.set({r:(a>>f*(p+3)&u)*l,g:(a>>f*(p+2)&u)*l,b:(a>>f*(p+1)&u)*l,a:n?(a&u)*l/255:1},r)},stringify:(r)=>{let{r:e,g:o,b:a,a:s}=r;if(s<1)return`#${Ci[Math.round(e)]}${Ci[Math.round(o)]}${Ci[Math.round(a)]}${Ci[Math.round(s*255)]}`;else return`#${Ci[Math.round(e)]}${Ci[Math.round(o)]}${Ci[Math.round(a)]}`}},eo=Id;var Qa={re:/^hsla?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(?:deg|grad|rad|turn)?)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(%)?))?\s*?\)$/i,hueRe:/^(.+?)(deg|grad|rad|turn)$/i,_hue2deg:(r)=>{let e=r.match(Qa.hueRe);if(e){let[,o,a]=e;switch(a){case"grad":return X.channel.clamp.h(parseFloat(o)*0.9);case"rad":return X.channel.clamp.h(parseFloat(o)*180/Math.PI);case"turn":return X.channel.clamp.h(parseFloat(o)*360)}}return X.channel.clamp.h(parseFloat(r))},parse:(r)=>{let e=r.charCodeAt(0);if(e!==104&&e!==72)return;let o=r.match(Qa.re);if(!o)return;let[,a,s,n,c,l]=o;return Di.set({h:Qa._hue2deg(a),s:X.channel.clamp.s(parseFloat(s)),l:X.channel.clamp.l(parseFloat(n)),a:c?X.channel.clamp.a(l?parseFloat(c)/100:parseFloat(c)):1},r)},stringify:(r)=>{let{h:e,s:o,l:a,a:s}=r;if(s<1)return`hsla(${X.lang.round(e)}, ${X.lang.round(o)}%, ${X.lang.round(a)}%, ${s})`;else return`hsl(${X.lang.round(e)}, ${X.lang.round(o)}%, ${X.lang.round(a)}%)`}},Fs=Qa;var Ja={colors:{aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyanaqua:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",transparent:"#00000000",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},parse:(r)=>{r=r.toLowerCase();let e=Ja.colors[r];if(!e)return;return eo.parse(e)},stringify:(r)=>{let e=eo.stringify(r);for(let o in Ja.colors)if(Ja.colors[o]===e)return o;return}},Yl=Ja;var $d={re:/^rgba?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?)))?\s*?\)$/i,parse:(r)=>{let e=r.charCodeAt(0);if(e!==114&&e!==82)return;let o=r.match($d.re);if(!o)return;let[,a,s,n,c,l,f,p,u]=o;return Di.set({r:X.channel.clamp.r(s?parseFloat(a)*2.55:parseFloat(a)),g:X.channel.clamp.g(c?parseFloat(n)*2.55:parseFloat(n)),b:X.channel.clamp.b(f?parseFloat(l)*2.55:parseFloat(l)),a:p?X.channel.clamp.a(u?parseFloat(p)/100:parseFloat(p)):1},r)},stringify:(r)=>{let{r:e,g:o,b:a,a:s}=r;if(s<1)return`rgba(${X.lang.round(e)}, ${X.lang.round(o)}, ${X.lang.round(a)}, ${X.lang.round(s)})`;else return`rgb(${X.lang.round(e)}, ${X.lang.round(o)}, ${X.lang.round(a)})`}},As=$d;var aC={format:{keyword:Yl,hex:eo,rgb:As,rgba:As,hsl:Fs,hsla:Fs},parse:(r)=>{if(typeof r!=="string")return r;let e=eo.parse(r)||As.parse(r)||Fs.parse(r)||Yl.parse(r);if(e)return e;throw Error(`Unsupported color format: "${r}"`)},stringify:(r)=>{if(!r.changed&&r.color)return r.color;if(r.type.is(Ue.HSL)||r.data.r===void 0)return Fs.stringify(r);else if(r.a<1||!Number.isInteger(r.r)||!Number.isInteger(r.g)||!Number.isInteger(r.b))return As.stringify(r);else return eo.stringify(r)}},ht=aC;var nC=(r,e)=>{let o=ht.parse(r);for(let a in e)o[a]=X.channel.clamp[a](e[a]);return ht.stringify(o)},rn=nC;var lC=(r,e,o=0,a=1)=>{if(typeof r!=="number")return rn(r,{a:e});let s=Di.set({r:X.channel.clamp.r(r),g:X.channel.clamp.g(e),b:X.channel.clamp.b(o),a:X.channel.clamp.a(a)});return ht.stringify(s)},Oe=lC;var hC=(r)=>{let{r:e,g:o,b:a}=ht.parse(r),s=0.2126*X.channel.toLinear(e)+0.7152*X.channel.toLinear(o)+0.0722*X.channel.toLinear(a);return X.lang.round(s)},Dd=hC;var cC=(r)=>Dd(r)>=0.5,Pd=cC;var uC=(r)=>!Pd(r),he=uC;var fC=(r,e,o)=>{let a=ht.parse(r),s=a[e],n=X.channel.clamp[e](s+o);if(s!==n)a[e]=n;return ht.stringify(a)},ni=fC;var dC=(r,e)=>ni(r,"l",e),h=dC;var pC=(r,e)=>ni(r,"l",-e),g=pC;var gC=(r,e)=>{let o=ht.parse(r),a={};for(let s in e){if(!e[s])continue;a[s]=o[s]+e[s]}return rn(r,a)},W=gC;var mC=(r,e,o=50)=>{let{r:a,g:s,b:n,a:c}=ht.parse(r),{r:l,g:f,b:p,a:u}=ht.parse(e),m=o/100,x=m*2-1,w=c-u,_=((x*w===-1?x:(x+w)/(1+x*w))+1)/2,v=1-_,F=a*_+l*v,U=s*_+f*v,V=n*_+p*v,Z=c*m+u*(1-m);return Oe(F,U,V,Z)},Rd=mC;var yC=(r,e=100)=>{let o=ht.parse(r);return o.r=255-o.r,o.g=255-o.g,o.b=255-o.b,Rd(o,r,e)},ct=yC;/*! @license DOMPurify 3.4.17 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.17/LICENSE */function xC(r,e){this.v=r,this.k=e}function qd(r,e){(e==null||e>r.length)&&(e=r.length);for(var o=0,a=Array(e);o<e;o++)a[o]=r[o];return a}function CC(r){if(Array.isArray(r))return r}function bC(r,e){var o=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(o!=null){var a,s,n,c,l=[],f=!0,p=!1;try{if(n=(o=o.call(r)).next,e===0){if(Object(o)!==o)return;f=!1}else for(;!(f=(a=n.call(o)).done)&&(l.push(a.value),l.length!==e);f=!0);}catch(u){p=!0,s=u}finally{try{if(!f&&o.return!=null&&(c=o.return(),Object(c)!==c))return}finally{if(p)throw s}}return l}}function kC(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
2
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */function wC(r,e){return CC(r)||bC(r,e)||SC(r,e)||kC()}function SC(r,e){if(r){if(typeof r=="string")return qd(r,e);var o={}.toString.call(r).slice(8,-1);return o==="Object"&&r.constructor&&(o=r.constructor.name),o==="Map"||o==="Set"?Array.from(r):o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?qd(r,e):void 0}}function on(r){var e,o;function a(n,c){try{var l=r[n](c),f=l.value,p=f instanceof xC;Promise.resolve(p?f.v:f).then(function(u){if(p){var m=n==="return"&&f.k?n:"next";if(!f.k||u.done)return a(m,u);u=r[m](u).value}s(!!l.done,u)},function(u){a("throw",u)})}catch(u){s(2,u)}}function s(n,c){n===2?e.reject(c):e.resolve({value:c,done:n}),(e=e.next)?a(e.key,e.arg):o=null}this._invoke=function(n,c){return new Promise(function(l,f){var p={key:n,arg:c,resolve:l,reject:f,next:null};o?o=o.next=p:(e=o=p,a(n,c))})},typeof r.return!="function"&&(this.return=void 0)}on.prototype[typeof Symbol=="function"&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},on.prototype.next=function(r){return this._invoke("next",r)},on.prototype.throw=function(r){return this._invoke("throw",r)},on.prototype.return=function(r){return this._invoke("return",r)};var{entries:tp,setPrototypeOf:Nd,isFrozen:TC,getPrototypeOf:ep,getOwnPropertyDescriptor:rp,freeze:Xe,seal:Ze,create:Co}=Object,ip=typeof Reflect<"u"&&Reflect,{apply:th,construct:eh}=ip;if(!Xe)Xe=function(e){return e};if(!Ze)Ze=function(e){return e};if(!th)th=function(e,o){for(var a=arguments.length,s=Array(a>2?a-2:0),n=2;n<a;n++)s[n-2]=arguments[n];return e.apply(o,s)};if(!eh)eh=function(e){for(var o=arguments.length,a=Array(o>1?o-1:0),s=1;s<o;s++)a[s-1]=arguments[s];return new e(...a)};var bi=Le(Array.prototype.forEach);Array.prototype.indexOf;var _C=Le(Array.prototype.lastIndexOf),Wd=Le(Array.prototype.pop),Ms=Le(Array.prototype.push),BC=Le(Array.prototype.slice),vC=Le(Array.prototype.splice),bo=Array.isArray,Ul=op(Set),jl=Le(Set.prototype.add),Es=Le(Set.prototype.has),ro=Le(String.prototype.toLowerCase),Gl=Le(String.prototype.toString),zd=Le(String.prototype.match),Os=Le(String.prototype.replace),Hd=Le(String.prototype.indexOf),LC=Le(String.prototype.trim),FC=Le(Number.prototype.toString),AC=Le(Boolean.prototype.toString),Yd=typeof BigInt>"u"?null:Le(BigInt.prototype.toString),Ud=typeof Symbol>"u"?null:Le(Symbol.prototype.toString),ur=Le(Object.prototype.hasOwnProperty),Is=Le(Object.prototype.toString),Ke=Le(RegExp.prototype.test),ki=op(TypeError);function Le(r){return function(e){if(e instanceof RegExp)e.lastIndex=0;for(var o=arguments.length,a=Array(o>1?o-1:0),s=1;s<o;s++)a[s-1]=arguments[s];return th(r,e,a)}}function op(r){return function(){for(var e=arguments.length,o=Array(e),a=0;a<e;a++)o[a]=arguments[a];return eh(r,o)}}function Ce(r,e){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ro;if(Nd)Nd(r,null);if(!bo(e))return r;let a=e.length;while(a--){let s=e[a];if(typeof s==="string"){let n=o(s);if(n!==s){if(!TC(e))e[a]=n;s=n}}r[s]=!0}return r}function MC(r){for(let e=0;e<r.length;e++)if(!ur(r,e))r[e]=null;return r}function xr(r){let e=Co(null);for(let a of tp(r)){var o=wC(a,2);let s=o[0],n=o[1];if(ur(r,s))if(bo(n))e[s]=MC(n);else if(n&&typeof n==="object"&&n.constructor===Object)e[s]=xr(n);else e[s]=n}return e}function EC(r){switch(typeof r){case"string":return r;case"number":return FC(r);case"boolean":return AC(r);case"bigint":return Yd?Yd(r):"0";case"symbol":return Ud?Ud(r):"Symbol()";case"undefined":return Is(r);case"function":case"object":{if(r===null)return Is(r);let e=r,o=Br(e,"toString");if(typeof o==="function"){let a=o(e);return typeof a==="string"?a:Is(a)}return Is(r)}default:return Is(r)}}function Br(r,e){while(r!==null){let a=rp(r,e);if(a){if(a.get)return Le(a.get);if(typeof a.value==="function")return Le(a.value)}r=ep(r)}function o(){return null}return o}function OC(r,e){while(r!==null){let o=rp(r,e);if(o)return o.get?Le(o.get):null;r=ep(r)}return null}function IC(r){try{return Ke(r,""),!0}catch(e){return!1}}var jd=Xe(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Xl=Xe(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Vl=Xe(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),$C=Xe(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Kl=Xe(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),DC=Xe(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Gd=Xe(["#text"]),Xd=Xe(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),Zl=Xe(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dominant-baseline","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","pointer-events","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-orientation","text-rendering","textlength","type","u1","u2","unicode","values","vector-effect","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Vd=Xe(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),sn=Xe(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),PC=Ze(/{{[\w\W]*|^[\w\W]*}}/g),RC=Ze(/<%[\w\W]*|^[\w\W]*%>/g),qC=Ze(/\${[\w\W]*/g),NC=Ze(/^data-[\-\w.\u00B7-\uFFFF]+$/),WC=Ze(/^aria-[\-\w]+$/),Kd=Ze(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),zC=Ze(/^(?:\w+script|data):/i),HC=Ze(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),YC=Ze(/^html$/i),UC=Ze(/^[a-z][.\w]*(-[.\w]+)+$/i),Ql=Ze(/<[/\w!]/g),Zd=Ze(/<[/\w]/g),jC=Ze(/<\/no(script|embed|frames)/i),Qd=Ze(/\/>/i),ze={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},GC=Xe(Ce({},["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"])),XC=function(){return typeof window>"u"?null:window},VC=function(e,o){if(typeof e!=="object"||typeof e.createPolicy!=="function")return null;let a=null,s="data-tt-policy-suffix";if(o&&o.hasAttribute(s))a=o.getAttribute(s);let n="dompurify"+(a?"#"+a:"");try{return e.createPolicy(n,{createHTML(c){return c},createScriptURL(c){return c}})}catch(c){return console.warn("TrustedTypes policy "+n+" could not be created."),null}},Jd=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},Pi=function(e,o,a,s){return ur(e,o)&&bo(e[o])?Ce(s.base?xr(s.base):{},e[o],s.transform):a},Jl=function(e,o,a){let s=ur(e,o)?e[o]:void 0;return s&&typeof s==="object"?xr(s):a()};function sp(){let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:XC(),e=(Wt)=>sp(Wt);if(e.version="3.4.17",e.removed=[],!r||!r.document||r.document.nodeType!==ze.document||!r.Element)return e.isSupported=!1,e;let o=r.document,a=o,s=a.currentScript;r.DocumentFragment;let{HTMLTemplateElement:n,Node:c,Element:l,NodeFilter:f}=r;r.NamedNodeMap===void 0&&(r.NamedNodeMap||r.MozNamedAttrMap),r.HTMLFormElement;let{DOMParser:p,trustedTypes:u}=r,m=l.prototype,x=Br(m,"cloneNode"),w=Br(m,"remove"),T=Br(m,"removeAttributeNode"),_=Br(m,"nextSibling"),v=Br(m,"childNodes"),F=Br(m,"parentNode"),U=Br(m,"shadowRoot"),V=Br(m,"attributes"),Z=c&&c.prototype?Br(c.prototype,"nodeType"):null,J=c&&c.prototype?Br(c.prototype,"nodeName"):null,lt=c&&c.prototype?Br(c.prototype,"ownerDocument"):null,st=function(K){return Z?Z(K):K.nodeType},dt=function(K){return J?J(K):K.nodeName},Ct=OC(m,"namespaceURI"),Bt=function(K){return Ct?Ct(K):K.namespaceURI};if(typeof n==="function"){let Wt=o.createElement("template");if(Wt.content&&Wt.content.ownerDocument)o=Wt.content.ownerDocument}let kt,bt="",it,ot=!1,yt=0,et=function(){if(yt>0)throw ki('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},wt=function(K){et(),yt++;try{return kt.createHTML(K)}finally{yt--}},Lt=function(K){et(),yt++;try{return kt.createScriptURL(K)}finally{yt--}},Vt=function(){if(!ot)it=VC(u,s),ot=!0;return it},Xt=o,{implementation:ae,createNodeIterator:se,createDocumentFragment:pe,getElementsByTagName:me}=Xt,ue=a.importNode,Gt=Jd();e.isSupported=typeof tp==="function"&&typeof F==="function"&&ae&&ae.createHTMLDocument!==void 0;let ie=PC,ne=RC,le=qC,ve=NC,Be=WC,Fr=zC,Qr=HC,kr=UC,Fi=Kd,Te=null,nr=Ce({},[...jd,...Xl,...Vl,...Kl,...Gd]),we=null,ti=Ce({},[...Xd,...Zl,...Vd,...sn]),Ve=Object.seal(Co(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),wr=null,Ai=null,Ne=Object.seal(Co(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),Mi=!0,Rr=!0,ei=!1,yi=!0,k=!1,mt=!0,_t=!1,Mt=!1,St=null,Yt=null,j=!1,xt=!1,qt=!1,Ft=!1,Ot=!0,zt=!1,Nt="user-content-",Qt=!0,Zt=!1,Jt=null,ee={},ge=null,_e=Ce({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]),_s=null,Ei=Ce({},["audio","video","img","source","image","track"]),Oi=null,ld=Ce({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),ja="http://www.w3.org/1998/Math/MathML",Ga="http://www.w3.org/2000/svg",qr="http://www.w3.org/1999/xhtml",po=qr,Ll=!1,Fl=null,D0=Ce({},[ja,Ga,qr],Gl),hd=Xe(["mi","mo","mn","ms","mtext"]),Al=Ce({},hd),cd=Xe(["annotation-xml"]),Ml=Ce({},cd),P0=Ce({},["title","style","font","a","script"]),Bs=null,R0=["application/xhtml+xml","text/html"],q0="text/html",De=null,go=null,N0=o.createElement("form"),ud=function(K){return K instanceof RegExp||K instanceof Function},El=function(){let K=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(go&&go===K)return;if(!K||typeof K!=="object")K={};K=xr(K),Bs=R0.indexOf(K.PARSER_MEDIA_TYPE)===-1?q0:K.PARSER_MEDIA_TYPE,De=Bs==="application/xhtml+xml"?Gl:ro,Te=Pi(K,"ALLOWED_TAGS",nr,{transform:De}),we=Pi(K,"ALLOWED_ATTR",ti,{transform:De}),Fl=Pi(K,"ALLOWED_NAMESPACES",D0,{transform:Gl}),Oi=Pi(K,"ADD_URI_SAFE_ATTR",ld,{transform:De,base:ld}),_s=Pi(K,"ADD_DATA_URI_TAGS",Ei,{transform:De,base:Ei}),ge=Pi(K,"FORBID_CONTENTS",_e,{transform:De}),wr=Pi(K,"FORBID_TAGS",xr({}),{transform:De}),Ai=Pi(K,"FORBID_ATTR",xr({}),{transform:De}),ee=ur(K,"USE_PROFILES")?K.USE_PROFILES&&typeof K.USE_PROFILES==="object"?xr(K.USE_PROFILES):K.USE_PROFILES:!1,Mi=K.ALLOW_ARIA_ATTR!==!1,Rr=K.ALLOW_DATA_ATTR!==!1,ei=K.ALLOW_UNKNOWN_PROTOCOLS||!1,yi=K.ALLOW_SELF_CLOSE_IN_ATTR!==!1,k=K.SAFE_FOR_TEMPLATES||!1,mt=K.SAFE_FOR_XML!==!1,_t=K.WHOLE_DOCUMENT||!1,xt=K.RETURN_DOM||!1,qt=K.RETURN_DOM_FRAGMENT||!1,Ft=K.RETURN_TRUSTED_TYPE||!1,j=K.FORCE_BODY||!1,Ot=K.SANITIZE_DOM!==!1,zt=K.SANITIZE_NAMED_PROPS||!1,Qt=K.KEEP_CONTENT!==!1,Zt=K.IN_PLACE||!1,Fi=IC(K.ALLOWED_URI_REGEXP)?K.ALLOWED_URI_REGEXP:Kd,po=typeof K.NAMESPACE==="string"?K.NAMESPACE:qr,Al=Jl(K,"MATHML_TEXT_INTEGRATION_POINTS",()=>Ce({},hd)),Ml=Jl(K,"HTML_INTEGRATION_POINTS",()=>Ce({},cd));let ft=Jl(K,"CUSTOM_ELEMENT_HANDLING",()=>Co(null));if(Ve=Co(null),ur(ft,"tagNameCheck")&&ud(ft.tagNameCheck))Ve.tagNameCheck=ft.tagNameCheck;if(ur(ft,"attributeNameCheck")&&ud(ft.attributeNameCheck))Ve.attributeNameCheck=ft.attributeNameCheck;if(ur(ft,"allowCustomizedBuiltInElements")&&typeof ft.allowCustomizedBuiltInElements==="boolean")Ve.allowCustomizedBuiltInElements=ft.allowCustomizedBuiltInElements;if(Ze(Ve),k)Rr=!1;if(qt)xt=!0;if(ee){if(Te=Ce({},Gd),we=Co(null),ee.html===!0)Ce(Te,jd),Ce(we,Xd);if(ee.svg===!0)Ce(Te,Xl),Ce(we,Zl),Ce(we,sn);if(ee.svgFilters===!0)Ce(Te,Vl),Ce(we,Zl),Ce(we,sn);if(ee.mathMl===!0)Ce(Te,Kl),Ce(we,Vd),Ce(we,sn)}if(Ne.tagCheck=null,Ne.attributeCheck=null,ur(K,"ADD_TAGS")){if(typeof K.ADD_TAGS==="function")Ne.tagCheck=K.ADD_TAGS;else if(bo(K.ADD_TAGS)){if(Te===nr)Te=xr(Te);Ce(Te,K.ADD_TAGS,De)}}if(ur(K,"ADD_ATTR")){if(typeof K.ADD_ATTR==="function")Ne.attributeCheck=K.ADD_ATTR;else if(bo(K.ADD_ATTR)){if(we===ti)we=xr(we);Ce(we,K.ADD_ATTR,De)}}if(ur(K,"ADD_FORBID_CONTENTS")&&bo(K.ADD_FORBID_CONTENTS)){if(ge===_e)ge=xr(ge);Ce(ge,K.ADD_FORBID_CONTENTS,De)}if(Qt)Te["#text"]=!0;if(_t)Ce(Te,["html","head","body"]);if(Te.table)Ce(Te,["tbody"]),delete wr.tbody;if(K.TRUSTED_TYPES_POLICY){if(typeof K.TRUSTED_TYPES_POLICY.createHTML!=="function")throw ki('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof K.TRUSTED_TYPES_POLICY.createScriptURL!=="function")throw ki('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');let $t=kt;kt=K.TRUSTED_TYPES_POLICY;try{bt=wt("")}catch(Dt){throw kt=$t,Dt}}else if(K.TRUSTED_TYPES_POLICY===null)kt=void 0,bt="";else{if(kt===void 0)kt=Vt();if(kt&&typeof bt==="string")bt=wt("")}if(Xe)Xe(K);go=K},fd=Ce({},[...Xl,...Vl,...$C]),dd=Ce({},[...Kl,...DC]),W0=function(K,ft,$t){if(ft.namespaceURI===qr)return K==="svg";if(ft.namespaceURI===ja)return K==="svg"&&($t==="annotation-xml"||Al[$t]);return Boolean(fd[K])},z0=function(K,ft,$t){if(ft.namespaceURI===qr)return K==="math";if(ft.namespaceURI===Ga)return K==="math"&&Ml[$t];return Boolean(dd[K])},H0=function(K,ft,$t){if(ft.namespaceURI===Ga&&!Ml[$t])return!1;if(ft.namespaceURI===ja&&!Al[$t])return!1;return!dd[K]&&(P0[K]||!fd[K])},Y0=function(K){let ft=Bt(K),$t=ro(dt(K)),Dt=F(K),oe,de;if(Dt&&st(Dt)===ze.element)oe={namespaceURI:Bt(Dt)},de=ro(dt(Dt));else oe={namespaceURI:po},de="template";if(!Fl[ft])return!1;if(ft===Ga)return W0($t,oe,de);if(ft===ja)return z0($t,oe,de);if(ft===qr)return H0($t,oe,de);if(Bs==="application/xhtml+xml"&&Fl[ft])return!0;return!1},Ii=function(K){Ms(e.removed,{element:K});try{F(K).removeChild(K)}catch(ft){if(w(K),!F(K))throw ki("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},pd=function(K,ft,$t){try{T(K,ft)}catch(Dt){try{K.removeAttribute($t)}catch(oe){}}},Ol=function(K){$l(K);let ft=v(K);if(ft)bi(BC(ft),(Dt)=>{try{w(Dt)}catch(oe){}});let $t=st(K)===ze.element?V(K):null;if($t)for(let Dt=$t.length-1;Dt>=0;--Dt){let oe=$t[Dt],de=oe&&oe.name;if(typeof de==="string")pd(K,oe,de)}},mo=function(K,ft,$t){if(!$t)try{$t=ft.getAttributeNode(K)}catch(Dt){$t=null}Ms(e.removed,{attribute:$t||null,from:ft});try{if($t)T(ft,$t);else ft.removeAttribute(K)}catch(Dt){try{ft.removeAttribute(K)}catch(oe){}}if(K==="is")if(xt||qt)try{Ii(ft)}catch(Dt){}else try{ft.setAttribute(K,"")}catch(Dt){}},gd=function(K){let ft=V(K);if(!ft)return;for(let $t=ft.length-1;$t>=0;--$t){let Dt=ft[$t],oe=Dt&&Dt.name;if(typeof oe!=="string"||we[De(oe)])continue;pd(K,Dt,oe)}},Il=function(K,ft){let $t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Dt=[K];while(Dt.length>0){let oe=Dt.pop();if(ft(oe)===!1)continue;if($t&&st(oe)===ze.element){let ye=U(oe);if($i(ye))Dt.push(ye)}let de=v(oe);if(de)for(let ye=de.length-1;ye>=0;--ye)Dt.push(de[ye])}},$l=function(K){Il(K,(ft)=>{if(st(ft)===ze.element)gd(ft)})},Dl=function(K){let ft=[];return Il(K,($t)=>{ft.push($t)},!0),ft},U0=function(K,ft){let $t=Ul();bi(Dl(K),(Dt)=>{if(st(Dt)===ze.element)jl($t,Dt)}),bi(ft,(Dt)=>{if(st(Dt)===ze.element&&!Es($t,Dt))gd(Dt)})},md=function(K,ft){let $t=!1;return bi(e.removed,(Dt)=>{if(Dt.element)$t=$t||Dt.element===K,$l(Dt.element)}),U0(K,ft),$t},j0=8,G0=function(K,ft){let $t=Jt,Dt=null,oe=()=>{if(!Dt)Dt=Ul(),bi(ft,(de)=>{jl(Dt,de)});return Dt};for(let de=0;;de++){let ye=Dl(K),Ye=[K],Nr=!1;if(bi(ye,(ir)=>{if(st(ir)===ze.documentFragment)Ms(Ye,ir);else if(!Nr&&!Es($t,ir))Nr=Es(oe(),ir)}),!Nr)return;if(de>=j0)throw ki("the tree kept changing during in-place sanitization; refusing to return it");bi(Ye,(ir,lr)=>{X0(ir,lr>0,K,oe())})}},X0=function(K,ft,$t,Dt){let oe=Pl(K),de;while(de=oe.nextNode()){if(!Es(Dt,de)||Es(Jt,de))continue;if(ft)Mr(Gt.uponSanitizeShadowNode,de,null);if(ql(de,$t),Nl(de,$t),$i(de.content))Ls(de.content)}},V0=function(K){if(Jt)jl(Jt,K)},yd=function(K,ft){if(!mt)return!1;if(K==="patchsrc")return!0;return K==="for"&&ft!=="label"&&ft!=="output"},K0=function(K){if(!mt)return;Il(K,(ft)=>{let $t=st(ft);if($t===ze.processingInstruction||$t===ze.comment&&Ke(Zd,ft.data)){try{w(ft)}catch(Dt){}return!1}if($t===ze.element){let Dt=ft,oe=De(dt(ft));try{if(Dt.hasAttribute&&Dt.hasAttribute("patchsrc"))Dt.removeAttribute("patchsrc");if(Dt.hasAttribute&&Dt.hasAttribute("for")&&yd("for",oe))Dt.removeAttribute("for")}catch(de){}}return!0})},xd=function(K){let ft=null,$t=null;if(j)K="<remove></remove>"+K;else{let de=zd(K,/^[\r\n\t ]+/);$t=de&&de[0]}if(Bs==="application/xhtml+xml"&&po===qr)K='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+K+"</body></html>";let Dt=kt?wt(K):K;if(po===qr)try{ft=new p().parseFromString(Dt,Bs)}catch(de){}if(!ft||!ft.documentElement){ft=ae.createDocument(po,"template",null);try{ft.documentElement.innerHTML=Ll?bt:Dt}catch(de){}}let oe=ft.body||ft.documentElement;if(K&&$t)oe.insertBefore(o.createTextNode($t),oe.childNodes[0]||null);if(po===qr)return me.call(ft,_t?"html":"body")[0];return _t?ft.documentElement:oe},Pl=function(K){let ft=lt?lt(K):K.ownerDocument;return se.call(ft||K,K,f.SHOW_ELEMENT|f.SHOW_COMMENT|f.SHOW_TEXT|f.SHOW_PROCESSING_INSTRUCTION|f.SHOW_CDATA_SECTION,null)},Xa=function(K){return K=Os(K,ie," "),K=Os(K,ne," "),K=Os(K,le," "),K},Rl=function(K){var ft;Cd(K);let $t=(ft=K.querySelectorAll)===null||ft===void 0?void 0:ft.call(K,"template");if($t)bi($t,(Dt)=>{if($i(Dt.content))Rl(Dt.content)})},Cd=function(K){K.normalize();let ft=lt?lt(K):K.ownerDocument,$t=se.call(ft||K,K,f.SHOW_TEXT|f.SHOW_COMMENT|f.SHOW_CDATA_SECTION|f.SHOW_PROCESSING_INSTRUCTION,null),Dt=$t.nextNode();while(Dt)Dt.data=Xa(Dt.data),Dt=$t.nextNode()},Va=function(K){let ft=J?J(K):null;if(typeof ft!=="string")return!1;if(De(ft)!=="form")return!1;return typeof K.nodeName!=="string"||typeof K.textContent!=="string"||typeof K.removeChild!=="function"||K.attributes!==V(K)||typeof K.removeAttribute!=="function"||typeof K.removeAttributeNode!=="function"||typeof K.getAttributeNode!=="function"||typeof K.setAttribute!=="function"||typeof K.namespaceURI!=="string"||typeof K.insertBefore!=="function"||typeof K.hasChildNodes!=="function"||K.nodeType!==Z(K)||K.childNodes!==v(K)},$i=function(K){if(!Z||typeof K!=="object"||K===null)return!1;try{return Z(K)===ze.documentFragment}catch(ft){return!1}},vs=function(K){if(!Z||typeof K!=="object"||K===null)return!1;try{return typeof Z(K)==="number"}catch(ft){return!1}};function Mr(Wt,K,ft){if(Wt.length===0)return;bi(Wt,($t)=>{$t.call(e,K,ft,go)})}let Z0=function(K,ft){if(mt&&K.hasChildNodes()&&!vs(K.firstElementChild)&&Ke(Ql,K.textContent)&&Ke(Ql,K.innerHTML))return!0;if(mt&&GC[ft]&&st(K)===ze.element&&Bt(K)===qr&&(vs(K.firstElementChild)||typeof K.textContent==="string"&&Ke(Ql,K.textContent)))return!0;if(K.nodeType===ze.processingInstruction)return!0;if(mt&&K.nodeType===ze.comment&&Ke(Zd,K.data))return!0;return!1},Ka=function(K,ft){if(K instanceof RegExp)return Ke(K,ft);if(K instanceof Function){for(var $t=arguments.length,Dt=Array($t>2?$t-2:0),oe=2;oe<$t;oe++)Dt[oe-2]=arguments[oe];return Boolean(K(ft,...Dt))}return!1},Q0=function(K,ft,$t){if(!wr[ft]&&wd(ft)&&Ka(Ve.tagNameCheck,ft))return!1;if(Qt&&!ge[ft]&&!ge[ro(ft)]){let Dt=F(K),oe=v(K);if(oe&&Dt){let de=oe.length;for(let ye=de-1;ye>=0;--ye){let Ye=K===$t?x(oe[ye],!0):oe[ye];Dt.insertBefore(Ye,_(K))}}}return Ii(K),!0},bd=function(K,ft,$t,Dt){if(K.length===0)return ft;return ft===$t||ft===Dt?xr(ft):ft},yo=function(K,ft){if(K===ft||F(K)!==null)return!1;if(Zt)$l(K);return!0},ql=function(K,ft){if(V0(K),Mr(Gt.beforeSanitizeElements,K,null),yo(K,ft))return!0;if(Va(K))return Ii(K),!0;let $t=De(dt(K));if(Te=bd(Gt.uponSanitizeElement,Te,nr,St),Mr(Gt.uponSanitizeElement,K,{tagName:$t,allowedTags:Te}),yo(K,ft))return!0;if(Z0(K,$t))return Ii(K),!0;if(wr[$t]||!(Ne.tagCheck instanceof Function&&Ne.tagCheck($t))&&!Te[$t]){let Dt=Q0(K,$t,ft);if(Dt===!1){if(Mr(Gt.afterSanitizeElements,K,null),yo(K,ft))return!0}return Dt}if(st(K)===ze.element&&!Y0(K))return Ii(K),!0;if(($t==="noscript"||$t==="noembed"||$t==="noframes")&&Ke(jC,K.innerHTML))return Ii(K),!0;if(k&&K.nodeType===ze.text){let Dt=Xa(K.textContent);if(K.textContent!==Dt)Ms(e.removed,{element:K.cloneNode()}),K.textContent=Dt}return Mr(Gt.afterSanitizeElements,K,null),yo(K,ft)},kd=function(K,ft,$t){if(Ai[ft])return!1;if(yd(ft,K))return!1;if(Ot&&(ft==="id"||ft==="name")&&(($t in o)||($t in N0)))return!1;let Dt=we[ft]||Ne.attributeCheck instanceof Function&&Ne.attributeCheck(ft,K);if(Rr&&Ke(ve,ft))return!0;if(Mi&&Ke(Be,ft))return!0;if(!Dt)return wd(K)&&Ka(Ve.tagNameCheck,K)&&Ka(Ve.attributeNameCheck,ft,K)||ft==="is"&&Ve.allowCustomizedBuiltInElements&&Ka(Ve.tagNameCheck,$t);if(Oi[ft])return!0;if(Ke(Fi,Os($t,Qr,"")))return!0;if((ft==="src"||ft==="xlink:href"||ft==="href")&&K!=="script"&&Hd($t,"data:")===0&&_s[K])return!0;if(ei&&!Ke(Fr,Os($t,Qr,"")))return!0;return!$t},J0=Ce({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),wd=function(K){return!J0[ro(K)]&&Ke(kr,K)},tC=function(K,ft,$t,Dt){if(kt&&typeof u==="object"&&typeof u.getAttributeType==="function"&&!$t)switch(u.getAttributeType(K,ft)){case"TrustedHTML":return wt(Dt);case"TrustedScriptURL":return Lt(Dt)}return Dt},eC=function(K,ft,$t,Dt){try{if($t)K.setAttributeNS($t,ft,Dt);else K.setAttribute(ft,Dt);if(Va(K))return Ii(K),!1;return!0}catch(oe){return mo(ft,K),!1}},Sd=function(K,ft){if(mt&&Ke(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,ft))return!0;return ro(K)==="attributename"&&zd(ft,"href")!==null},Nl=function(K,ft){if(Mr(Gt.beforeSanitizeAttributes,K,null),yo(K,ft))return;let $t=K.attributes;if(!$t||Va(K))return;we=bd(Gt.uponSanitizeAttribute,we,ti,Yt);let Dt={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:we,forceKeepAttr:void 0},oe=$t.length,de=De(K.nodeName);while(oe--){let ye=$t[oe],{name:Ye,namespaceURI:Nr,value:ir}=ye,lr=De(Ye),xo=ir,cr=Ye==="value"?xo:LC(xo),Td=!1;if(Dt.attrName=lr,Dt.attrValue=cr,Dt.keepAttr=!0,Dt.forceKeepAttr=void 0,Mr(Gt.uponSanitizeAttribute,K,Dt),cr=Dt.attrValue,zt&&(lr==="id"||lr==="name")&&Hd(cr,Nt)!==0)mo(Ye,K,ye),cr=Nt+cr,Td=!0;if(Sd(Ye,cr)){mo(Ye,K,ye);continue}if(Dt.forceKeepAttr)continue;if(!Dt.keepAttr){mo(Ye,K,ye);continue}if(!yi&&Ke(Qd,cr)){mo(Ye,K,ye);continue}if(k)cr=Xa(cr);if(!kd(de,lr,cr)){mo(Ye,K,ye);continue}if(cr=tC(de,lr,Nr,cr),cr!==xo){if(eC(K,Ye,Nr,cr)&&Td)Wd(e.removed)}}Mr(Gt.afterSanitizeAttributes,K,null),yo(K,ft)},Ls=function(K){let ft=null,$t=Pl(K);Mr(Gt.beforeSanitizeShadowDOM,K,null);while(ft=$t.nextNode()){if(Mr(Gt.uponSanitizeShadowNode,ft,null),ql(ft,K),Nl(ft,K),$i(ft.content))Ls(ft.content);if(st(ft)===ze.element){let Dt=U(ft);if($i(Dt))Wl(Dt),Ls(Dt)}}if(k)Cd(K);Mr(Gt.afterSanitizeShadowDOM,K,null)},Wl=function(K){let ft=[{node:K,shadow:null}];while(ft.length>0){let $t=ft.pop();if($t.shadow){Ls($t.shadow);continue}let Dt=$t.node,oe=st(Dt)===ze.element,de=v(Dt);if(de)for(let ye=de.length-1;ye>=0;--ye)ft.push({node:de[ye],shadow:null});if(oe){let ye=J?J(Dt):null;if(typeof ye==="string"&&De(ye)==="template"){let Ye=Dt.content;if($i(Ye))ft.push({node:Ye,shadow:null})}}if(oe){let ye=U(Dt);if($i(ye))ft.push({node:null,shadow:ye},{node:ye,shadow:null})}}};return e.sanitize=function(Wt){let K=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ft=null,$t=null,Dt=null,oe=null;if(Ll=!Wt,Ll)Wt="<!-->";if(typeof Wt!=="string"&&!vs(Wt)){if(Wt=EC(Wt),typeof Wt!=="string")throw ki("dirty is not a string, aborting")}if(!e.isSupported)return Wt;if(Mt)Te=St,we=Yt;else El(K);if(Gt.uponSanitizeElement.length>0||Gt.uponSanitizeAttribute.length>0)Te=xr(Te);if(Gt.uponSanitizeAttribute.length>0)we=xr(we);e.removed=[];let de=Zt&&typeof Wt!=="string"&&vs(Wt),ye=[],Ye=Jt;if(de){K0(Wt);let lr=dt(Wt);if(typeof lr==="string"){let xo=De(lr);if(!Te[xo]||wr[xo])throw Ol(Wt),ki("root node is forbidden and cannot be sanitized in-place")}if(Va(Wt))throw Ol(Wt),ki("root node is clobbered and cannot be sanitized in-place");ye=Dl(Wt),Jt=Ul()}else if(vs(Wt)){if(ft=xd("<!---->"),$t=ft.ownerDocument.importNode(Wt,!0),$t.nodeType===ze.element&&$t.nodeName==="BODY")ft=$t;else if($t.nodeName==="HTML")ft=$t;else ft.appendChild($t);Wl(ft)}else{if(!xt&&!k&&!_t&&Wt.indexOf("<")===-1)return kt&&Ft?wt(Wt):Wt;if(ft=xd(Wt),!ft)return xt?null:Ft?bt:""}if(ft&&j)Ii(ft.firstChild);let Nr=de?Wt:ft;try{if(de)Wl(Wt);let lr=Pl(Nr);while(Dt=lr.nextNode())if(ql(Dt,Nr),Nl(Dt,Nr),$i(Dt.content))Ls(Dt.content);if(de)G0(Wt,ye)}catch(lr){if(de)Ol(Wt),md(Wt,ye);throw lr}finally{Jt=Ye}if(de){if(md(Wt,ye))throw ki("a node selected for removal could not be safely returned; refusing to sanitize in place");if(k)Rl(Wt);return Wt}if(xt){if(k)Rl(ft);if(qt){oe=pe.call(ft.ownerDocument);while(ft.firstChild)oe.appendChild(ft.firstChild)}else oe=ft;if(we.shadowroot||we.shadowrootmode)oe=ue.call(a,oe,!0);return oe}let ir=_t?ft.outerHTML:ft.innerHTML;if(_t&&Te["!doctype"]&&ft.ownerDocument&&ft.ownerDocument.doctype&&ft.ownerDocument.doctype.name&&Ke(YC,ft.ownerDocument.doctype.name))ir="<!DOCTYPE "+ft.ownerDocument.doctype.name+`>
3
+ `+ir;if(k)ir=Xa(ir);return kt&&Ft?wt(ir):ir},e.setConfig=function(){let Wt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};El(Wt),Mt=!0,St=Te,Yt=we},e.clearConfig=function(){go=null,Mt=!1,St=null,Yt=null,kt=it,bt=""},e.isValidAttribute=function(Wt,K,ft){if(!go)El({});let $t=De(Wt),Dt=De(K);if(typeof ft==="string"&&(Sd(K,ft)||!yi&&Ke(Qd,ft)))return!1;return kd($t,Dt,ft)},e.addHook=function(Wt,K){if(typeof K!=="function")return;if(!ur(Gt,Wt))return;Ms(Gt[Wt],K)},e.removeHook=function(Wt,K){if(!ur(Gt,Wt))return;if(K!==void 0){let ft=_C(Gt[Wt],K);return ft===-1?void 0:vC(Gt[Wt],ft,1)[0]}return Wd(Gt[Wt])},e.removeHooks=function(Wt){if(!ur(Gt,Wt))return;Gt[Wt]=[]},e.removeAllHooks=function(){Gt=Jd()},e}var pt=sp();var ko=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,cn=/\s/,KC=t((r)=>{let e="",o=0,a=0;while(a<r.length){let s=r.indexOf("%%",a);if(s===-1)break;let n=r.indexOf(`
4
+ `,s);if(n===-1)break;let c=s;while(c>o&&cn.test(r[c-1]))c--;e+=r.slice(o,c)+`
5
+ `,o=n+1,a=o}return e+r.slice(o)},"stripAnyComments"),an=t((r)=>r===`
6
+ `||r==="\r","isLineBreak"),ZC=t((r,e)=>{let o=-1;for(let a=e;a<r.length&&cn.test(r[a]);a++)if(an(r[a]))o=a;return o},"lastLineBreakInWhitespaceRun"),ec=t((r)=>{let e=0;while(e<r.length&&cn.test(r[e])&&!an(r[e]))e++;let o=r.slice(0,e);if(!r.startsWith("---",e))return;let a=[];for(let u=e+3;u<r.length&&cn.test(r[u]);u++)if(an(r[u]))a.push(u);if(a.length===0)return;let s=`${o}---`,n=t((u)=>an(r[u])&&r.startsWith(s,u+1)?ZC(r,u+1+s.length):-1,"closingEnd"),c=a[0]+1,l=-1;for(let u=c;u<r.length;u++)if(n(u)!==-1)l=u;if(l===-1)return;let f=a[0];for(let u of a)if(u<l)f=u;let p=f+1;for(let u=p;u<=l;u++){let m=n(u);if(m!==-1)return{indent:o,body:r.slice(p,u),length:m+1}}return},"matchFrontMatter"),tc=class extends Error{static{t(this,"UnknownDiagramError")}constructor(r){super(r);this.name="UnknownDiagramError"}},Jr={},ri=t(function(r,e){let o=ec(r);r=KC((o?r.slice(o.length):r).replace(ko,""));for(let[a,{detector:s}]of Object.entries(Jr))if(s(r,e))return a;throw new tc(`No diagram type detected matching given configuration for text: ${r}`)},"detectType"),Po=t((...r)=>{for(let{id:e,detector:o,loader:a}of r)up(e,o,a)},"registerLazyLoadedDiagrams"),up=t((r,e,o)=>{if(Jr[r])i.warn(`Detector with key ${r} already exists. Overwriting.`);Jr[r]={detector:e,loader:o},i.debug(`Detector with key ${r} added${o?" with loader":""}`)},"addDetector"),Nc=t((r)=>Jr[r].loader,"getDiagramLoader"),rh=t((r,e,{depth:o=2}={})=>{let a={depth:o};if(Array.isArray(e)&&!Array.isArray(r))return e.forEach((s)=>rh(r,s,a)),r;else if(Array.isArray(e)&&Array.isArray(r))return e.forEach((s)=>{if(!r.includes(s))r.push(s)}),r;if(r===void 0||r===null||o<=0)if(r!==void 0&&r!==null&&typeof r==="object"&&typeof e==="object")return Object.assign(r,e);else return e;if(e!==void 0&&e!==null&&typeof r==="object"&&typeof e==="object"){let s=r;Object.entries(e).forEach(([n,c])=>{if(typeof c==="object"){if(c===null)return;if(!Object.hasOwn(r,n))Object.defineProperty(r,n,{value:void 0,writable:!0,enumerable:!0,configurable:!0});if(s[n]===void 0)s[n]=Array.isArray(c)?[]:{};if(typeof s[n]==="object")s[n]=rh(s[n],c,{depth:o-1})}else if(typeof s[n]!=="object")if(Object.hasOwn(r,n))s[n]=c;else Object.defineProperty(r,n,{value:c,writable:!0,enumerable:!0,configurable:!0})})}return r},"assignWithDepth"),Ee=rh,Wr="#ffffff",zr="#f2f2f2",fe=t((r,e)=>e?W(r,{s:-40,l:10}):W(r,{s:-40,l:-10}),"mkBorder"),ap=t((r)=>typeof r==="object"&&r!==null&&!Array.isArray(r),"isPlainObject"),Or=t((r,e)=>ap(r)&&ap(e)?{...r,...e}:e,"applyOverride"),QC=class{static{t(this,"Theme")}constructor(){this.background="#f4f4f4",this.primaryColor="#fff4dd",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.radius=5,this.strokeWidth=1,this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.useGradient=!0,this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,1))"}updateColors(){if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||W(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||W(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||fe(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||fe(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||fe(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||fe(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||ct(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||ct(this.tertiaryColor),this.lineColor=this.lineColor||ct(this.background),this.arrowheadColor=this.arrowheadColor||ct(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?g(this.secondaryColor,30):this.secondaryColor),this.flowContainerStroke=this.flowContainerStroke||this.secondaryBorderColor,this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||g(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||ct(this.lineColor),this.rectBkgColor=this.rectBkgColor||this.tertiaryColor,this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||h(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.vertLineColor=this.vertLineColor||"navy",this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.noteFontWeight=this.noteFontWeight||"normal",this.fontWeight=this.fontWeight||"normal",this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.darkMode)this.rowOdd=this.rowOdd||g(this.mainBkg,5)||"#ffffff",this.rowEven=this.rowEven||g(this.mainBkg,10);else this.rowOdd=this.rowOdd||h(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||h(this.mainBkg,5);if(this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||this.tertiaryColor,this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||W(this.primaryColor,{h:30}),this.cScale4=this.cScale4||W(this.primaryColor,{h:60}),this.cScale5=this.cScale5||W(this.primaryColor,{h:90}),this.cScale6=this.cScale6||W(this.primaryColor,{h:120}),this.cScale7=this.cScale7||W(this.primaryColor,{h:150}),this.cScale8=this.cScale8||W(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||W(this.primaryColor,{h:270}),this.cScale10=this.cScale10||W(this.primaryColor,{h:300}),this.cScale11=this.cScale11||W(this.primaryColor,{h:330}),this.darkMode)for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScale"+e]=g(this["cScale"+e],75);else for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScale"+e]=g(this["cScale"+e],25);for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScaleInv"+e]=this["cScaleInv"+e]||ct(this["cScale"+e]);for(let e=0;e<this.THEME_COLOR_LIMIT;e++)if(this.darkMode)this["cScalePeer"+e]=this["cScalePeer"+e]||h(this["cScale"+e],10);else this["cScalePeer"+e]=this["cScalePeer"+e]||g(this["cScale"+e],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScaleLabel"+e]=this["cScaleLabel"+e]||this.scaleLabelColor;let r=this.darkMode?-4:-1;for(let e=0;e<5;e++)this["surface"+e]=this["surface"+e]||W(this.mainBkg,{h:180,s:-15,l:r*(5+e*3)}),this["surfacePeer"+e]=this["surfacePeer"+e]||W(this.mainBkg,{h:180,s:-15,l:r*(8+e*3)});if(this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||W(this.primaryColor,{h:64}),this.fillType3=this.fillType3||W(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||W(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||W(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||W(this.primaryColor,{h:128}),this.fillType7=this.fillType7||W(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||W(this.primaryColor,{l:-10}),this.pie5=this.pie5||W(this.secondaryColor,{l:-10}),this.pie6=this.pie6||W(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||W(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||W(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||W(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||W(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||W(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||W(this.primaryColor,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.venn1=this.venn1??W(this.primaryColor,{l:-30}),this.venn2=this.venn2??W(this.secondaryColor,{l:-30}),this.venn3=this.venn3??W(this.tertiaryColor,{l:-30}),this.venn4=this.venn4??W(this.primaryColor,{h:60,l:-30}),this.venn5=this.venn5??W(this.primaryColor,{h:-60,l:-30}),this.venn6=this.venn6??W(this.secondaryColor,{h:60,l:-30}),this.venn7=this.venn7??W(this.primaryColor,{h:120,l:-30}),this.venn8=this.venn8??W(this.secondaryColor,{h:120,l:-30}),this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.cynefin={domainFontSize:this.cynefin?.domainFontSize||16,itemFontSize:this.cynefin?.itemFontSize||12,boundaryColor:this.cynefin?.boundaryColor||this.lineColor,boundaryWidth:this.cynefin?.boundaryWidth||2,cliffColor:this.cynefin?.cliffColor||"#8B0000",cliffWidth:this.cynefin?.cliffWidth||4,arrowColor:this.cynefin?.arrowColor||this.lineColor,arrowWidth:this.cynefin?.arrowWidth||2,complexBg:this.cynefin?.complexBg||"#E8F5E9",complicatedBg:this.cynefin?.complicatedBg||"#E3F2FD",chaoticBg:this.cynefin?.chaoticBg||"#FBE9E7",clearBg:this.cynefin?.clearBg||"#FFF8E1",confusionBg:this.cynefin?.confusionBg||"#F3E5F5",textColor:this.cynefin?.textColor||this.textColor,labelColor:this.cynefin?.labelColor||this.primaryTextColor},this.radar={axisColor:this.radar?.axisColor||this.lineColor,axisStrokeWidth:this.radar?.axisStrokeWidth||2,axisLabelFontSize:this.radar?.axisLabelFontSize||12,curveOpacity:this.radar?.curveOpacity||0.5,curveStrokeWidth:this.radar?.curveStrokeWidth||2,graticuleColor:this.radar?.graticuleColor||"#DEDEDE",graticuleStrokeWidth:this.radar?.graticuleStrokeWidth||1,graticuleOpacity:this.radar?.graticuleOpacity||0.3,legendBoxSize:this.radar?.legendBoxSize||12,legendFontSize:this.radar?.legendFontSize||12},this.wardleyEvolutionColor=this.wardleyEvolutionColor||"#dc3545",this.wardley={backgroundColor:this.wardley?.backgroundColor||this.background,axisColor:this.wardley?.axisColor||this.lineColor,axisTextColor:this.wardley?.axisTextColor||this.primaryTextColor,gridColor:this.wardley?.gridColor||this.gridColor,componentFill:this.wardley?.componentFill||this.background,componentStroke:this.wardley?.componentStroke||this.lineColor,componentLabelColor:this.wardley?.componentLabelColor||this.primaryTextColor,linkStroke:this.wardley?.linkStroke||this.lineColor,evolutionStroke:this.wardley?.evolutionStroke||this.wardleyEvolutionColor,annotationStroke:this.wardley?.annotationStroke||this.lineColor,annotationTextColor:this.wardley?.annotationTextColor||this.primaryTextColor,annotationFill:this.wardley?.annotationFill||this.background},this.archEdgeColor=this.archEdgeColor||"#777",this.archEdgeArrowColor=this.archEdgeArrowColor||"#777",this.archEdgeWidth=this.archEdgeWidth||"3",this.archGroupBorderColor=this.archGroupBorderColor||"#000",this.archGroupBorderWidth=this.archGroupBorderWidth||"2px",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||W(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||W(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||W(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||W(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||W(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||W(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||he(this.quadrant1Fill)?h(this.quadrant1Fill):g(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,dataLabelColor:this.xyChart?.dataLabelColor||this.primaryTextColor,legendTextColor:this.xyChart?.legendTextColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?g(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||W(this.primaryColor,{h:-30}),this.git4=this.git4||W(this.primaryColor,{h:-60}),this.git5=this.git5||W(this.primaryColor,{h:-90}),this.git6=this.git6||W(this.primaryColor,{h:60}),this.git7=this.git7||W(this.primaryColor,{h:120}),this.darkMode)this.git0=h(this.git0,25),this.git1=h(this.git1,25),this.git2=h(this.git2,25),this.git3=h(this.git3,25),this.git4=h(this.git4,25),this.git5=h(this.git5,25),this.git6=h(this.git6,25),this.git7=h(this.git7,25);else this.git0=g(this.git0,25),this.git1=g(this.git1,25),this.git2=g(this.git2,25),this.git3=g(this.git3,25),this.git4=g(this.git4,25),this.git5=g(this.git5,25),this.git6=g(this.git6,25),this.git7=g(this.git7,25);this.gitInv0=this.gitInv0||ct(this.git0),this.gitInv1=this.gitInv1||ct(this.git1),this.gitInv2=this.gitInv2||ct(this.git2),this.gitInv3=this.gitInv3||ct(this.git3),this.gitInv4=this.gitInv4||ct(this.git4),this.gitInv5=this.gitInv5||ct(this.git5),this.gitInv6=this.gitInv6||ct(this.git6),this.gitInv7=this.gitInv7||ct(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.emUiFill=this.emUiFill||"white",this.emUiStroke=this.emUiStroke||"#dbdada",this.emProcessorFill=this.emProcessorFill||"#edb3f6",this.emProcessorStroke=this.emProcessorStroke||"#b88cbf",this.emReadModelFill=this.emReadModelFill||"#d3f1a2",this.emReadModelStroke=this.emReadModelStroke||"#a3b732",this.emCommandFill=this.emCommandFill||"#bcd6fe",this.emCommandStroke=this.emCommandStroke||"#679ac3",this.emEventFill=this.emEventFill||"#ffb778",this.emEventStroke=this.emEventStroke||"#c19a0f",this.emSwimlaneBackgroundOdd=this.emSwimlaneBackgroundOdd||"rgb(250,250,250)",this.emSwimlaneBackgroundStroke=this.emSwimlaneBackgroundStroke||"rgb(240,240,240)",this.emArrowhead=this.emArrowhead||this.lineColor,this.emRelationStroke=this.emRelationStroke||this.lineColor,this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||Wr,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||zr,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor}calculate(r){if(typeof r!=="object"){this.updateColors();return}let e=Object.keys(r);if(e.forEach((o)=>{this[o]=r[o]}),this.updateColors(),e.forEach((o)=>{this[o]=Or(this[o],r[o])}),Object.hasOwn(r,"nodeBorder")&&!Object.hasOwn(r,"useGradient"))this.useGradient=!1}},JC=t((r)=>{let e=new QC;return e.calculate(r),e},"getThemeVariables"),tb=class{static{t(this,"Theme")}constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=h(this.primaryColor,16),this.tertiaryColor=W(this.primaryColor,{h:-160}),this.primaryBorderColor=ct(this.background),this.secondaryBorderColor=fe(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=fe(this.tertiaryColor,this.darkMode),this.primaryTextColor=ct(this.primaryColor),this.secondaryTextColor=ct(this.secondaryColor),this.tertiaryTextColor=ct(this.tertiaryColor),this.lineColor=ct(this.background),this.textColor=ct(this.background),this.mainBkg="#1f2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=h(ct("#323D47"),10),this.lineColor="calculated",this.border1="#ccc",this.border2=Oe(255,255,255,0.25),this.arrowheadColor="calculated",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="#181818",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.radius=5,this.strokeWidth=1,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#F9FFFE",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="calculated",this.activationBkgColor="calculated",this.sequenceNumberColor="black",this.clusterBkg="#302F3D",this.sectionBkgColor=g("#EAE8D9",30),this.altSectionBkgColor="calculated",this.sectionBkgColor2="#EAE8D9",this.excludeBkgColor=g(this.sectionBkgColor,10),this.taskBorderColor=Oe(255,255,255,70),this.taskBkgColor="calculated",this.taskTextColor="calculated",this.taskTextLightColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor=Oe(255,255,255,50),this.activeTaskBkgColor="#81B1DB",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="grey",this.critBorderColor="#E83737",this.critBkgColor="#E83737",this.taskTextDarkColor="calculated",this.todayLineColor="#DB5757",this.vertLineColor="#00BFFF",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.rowOdd=this.rowOdd||h(this.mainBkg,5)||"#ffffff",this.rowEven=this.rowEven||g(this.mainBkg,10),this.labelColor="calculated",this.errorBkgColor="#a44141",this.errorTextColor="#ddd",this.useGradient=!0,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor,this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,1))",this.noteFontWeight=this.noteFontWeight||"normal",this.fontWeight=this.fontWeight||"normal"}updateColors(){this.secondBkg=h(this.mainBkg,16),this.lineColor=this.mainContrastColor,this.arrowheadColor=this.mainContrastColor,this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.edgeLabelBackground=h(this.labelBackground,25),this.flowContainerStroke=this.flowContainerStroke||this.secondaryBorderColor,this.actorBorder=this.border1,this.actorBkg=this.mainBkg,this.actorTextColor=this.mainContrastColor,this.actorLineColor=this.actorBorder,this.signalColor=this.mainContrastColor,this.signalTextColor=this.mainContrastColor,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.mainContrastColor,this.loopTextColor=this.mainContrastColor,this.noteBorderColor=this.secondaryBorderColor,this.noteBkgColor=this.secondBkg,this.noteTextColor=this.secondaryTextColor,this.activationBorderColor=this.border1,this.activationBkgColor=this.secondBkg,this.rectBkgColor=this.rectBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.background,this.taskBkgColor=h(this.mainBkg,23),this.taskTextColor=this.darkTextColor,this.taskTextLightColor=this.mainContrastColor,this.taskTextOutsideColor=this.taskTextLightColor,this.gridColor=this.mainContrastColor,this.doneTaskBkgColor=this.mainContrastColor,this.taskTextDarkColor=ct(this.doneTaskBkgColor),this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#555",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#f4f4f4",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=W(this.primaryColor,{h:64}),this.fillType3=W(this.secondaryColor,{h:64}),this.fillType4=W(this.primaryColor,{h:-64}),this.fillType5=W(this.secondaryColor,{h:-64}),this.fillType6=W(this.primaryColor,{h:128}),this.fillType7=W(this.secondaryColor,{h:128}),this.cScale1=this.cScale1||"#0b0000",this.cScale2=this.cScale2||"#4d1037",this.cScale3=this.cScale3||"#3f5258",this.cScale4=this.cScale4||"#4f2f1b",this.cScale5=this.cScale5||"#6e0a0a",this.cScale6=this.cScale6||"#3b0048",this.cScale7=this.cScale7||"#995a01",this.cScale8=this.cScale8||"#154706",this.cScale9=this.cScale9||"#161722",this.cScale10=this.cScale10||"#00296f",this.cScale11=this.cScale11||"#01629c",this.cScale12=this.cScale12||"#010029",this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||W(this.primaryColor,{h:30}),this.cScale4=this.cScale4||W(this.primaryColor,{h:60}),this.cScale5=this.cScale5||W(this.primaryColor,{h:90}),this.cScale6=this.cScale6||W(this.primaryColor,{h:120}),this.cScale7=this.cScale7||W(this.primaryColor,{h:150}),this.cScale8=this.cScale8||W(this.primaryColor,{h:210}),this.cScale9=this.cScale9||W(this.primaryColor,{h:270}),this.cScale10=this.cScale10||W(this.primaryColor,{h:300}),this.cScale11=this.cScale11||W(this.primaryColor,{h:330});for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this["cScaleInv"+r]=this["cScaleInv"+r]||ct(this["cScale"+r]);for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this["cScalePeer"+r]=this["cScalePeer"+r]||h(this["cScale"+r],10);for(let r=0;r<5;r++)this["surface"+r]=this["surface"+r]||W(this.mainBkg,{h:30,s:-30,l:-(-10+r*4)}),this["surfacePeer"+r]=this["surfacePeer"+r]||W(this.mainBkg,{h:30,s:-30,l:-(-7+r*4)});this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor);for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this["cScaleLabel"+r]=this["cScaleLabel"+r]||this.scaleLabelColor;for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this["pie"+r]=this["cScale"+r];this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.mainContrastColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.mainContrastColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7";for(let r=0;r<8;r++)this["venn"+(r+1)]=this["venn"+(r+1)]??h(this["cScale"+r],30);this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.cynefin={domainFontSize:this.cynefin?.domainFontSize||16,itemFontSize:this.cynefin?.itemFontSize||12,boundaryColor:this.cynefin?.boundaryColor||this.lineColor,boundaryWidth:this.cynefin?.boundaryWidth||2,cliffColor:this.cynefin?.cliffColor||"#FF6B6B",cliffWidth:this.cynefin?.cliffWidth||4,arrowColor:this.cynefin?.arrowColor||this.lineColor,arrowWidth:this.cynefin?.arrowWidth||2,complexBg:this.cynefin?.complexBg||"#1B5E20",complicatedBg:this.cynefin?.complicatedBg||"#0D47A1",chaoticBg:this.cynefin?.chaoticBg||"#BF360C",clearBg:this.cynefin?.clearBg||"#F57F17",confusionBg:this.cynefin?.confusionBg||"#4A148C",textColor:this.cynefin?.textColor||this.textColor,labelColor:this.cynefin?.labelColor||this.primaryTextColor},this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||W(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||W(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||W(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||W(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||W(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||W(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||he(this.quadrant1Fill)?h(this.quadrant1Fill):g(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,dataLabelColor:this.xyChart?.dataLabelColor||this.primaryTextColor,legendTextColor:this.xyChart?.legendTextColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#3498db,#2ecc71,#e74c3c,#f1c40f,#bdc3c7,#ffffff,#34495e,#9b59b6,#1abc9c,#e67e22"},this.packet={startByteColor:this.primaryTextColor,endByteColor:this.primaryTextColor,labelColor:this.primaryTextColor,titleColor:this.primaryTextColor,blockStrokeColor:this.primaryTextColor,blockFillColor:this.background},this.radar={axisColor:this.radar?.axisColor||this.lineColor,axisStrokeWidth:this.radar?.axisStrokeWidth||2,axisLabelFontSize:this.radar?.axisLabelFontSize||12,curveOpacity:this.radar?.curveOpacity||0.5,curveStrokeWidth:this.radar?.curveStrokeWidth||2,graticuleColor:this.radar?.graticuleColor||"#DEDEDE",graticuleStrokeWidth:this.radar?.graticuleStrokeWidth||1,graticuleOpacity:this.radar?.graticuleOpacity||0.3,legendBoxSize:this.radar?.legendBoxSize||12,legendFontSize:this.radar?.legendFontSize||12},this.wardleyEvolutionColor=this.wardleyEvolutionColor||"#ff6b6b",this.wardley={backgroundColor:this.wardley?.backgroundColor||this.background,axisColor:this.wardley?.axisColor||this.lineColor,axisTextColor:this.wardley?.axisTextColor||this.primaryTextColor,gridColor:this.wardley?.gridColor||this.gridColor,componentFill:this.wardley?.componentFill||this.mainBkg,componentStroke:this.wardley?.componentStroke||this.lineColor,componentLabelColor:this.wardley?.componentLabelColor||this.primaryTextColor,linkStroke:this.wardley?.linkStroke||this.lineColor,evolutionStroke:this.wardley?.evolutionStroke||this.wardleyEvolutionColor,annotationStroke:this.wardley?.annotationStroke||this.lineColor,annotationTextColor:this.wardley?.annotationTextColor||this.primaryTextColor,annotationFill:this.wardley?.annotationFill||this.mainBkg},this.classText=this.primaryTextColor,this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?g(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=h(this.secondaryColor,20),this.git1=h(this.pie2||this.secondaryColor,20),this.git2=h(this.pie3||this.tertiaryColor,20),this.git3=h(this.pie4||W(this.primaryColor,{h:-30}),20),this.git4=h(this.pie5||W(this.primaryColor,{h:-60}),20),this.git5=h(this.pie6||W(this.primaryColor,{h:-90}),10),this.git6=h(this.pie7||W(this.primaryColor,{h:60}),10),this.git7=h(this.pie8||W(this.primaryColor,{h:120}),20),this.gitInv0=this.gitInv0||ct(this.git0),this.gitInv1=this.gitInv1||ct(this.git1),this.gitInv2=this.gitInv2||ct(this.git2),this.gitInv3=this.gitInv3||ct(this.git3),this.gitInv4=this.gitInv4||ct(this.git4),this.gitInv5=this.gitInv5||ct(this.git5),this.gitInv6=this.gitInv6||ct(this.git6),this.gitInv7=this.gitInv7||ct(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||ct(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||ct(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.emUiFill=this.emUiFill||"#2d2d2d",this.emUiStroke=this.emUiStroke||"#555",this.emProcessorFill=this.emProcessorFill||h("#5a3d5c",10),this.emProcessorStroke=this.emProcessorStroke||"#8a6d8c",this.emReadModelFill=this.emReadModelFill||h("#3d5a2d",10),this.emReadModelStroke=this.emReadModelStroke||"#6d8c5c",this.emCommandFill=this.emCommandFill||h("#2d3d5a",10),this.emCommandStroke=this.emCommandStroke||"#5c6d8c",this.emEventFill=this.emEventFill||h("#5a452d",10),this.emEventStroke=this.emEventStroke||"#8c755c",this.emSwimlaneBackgroundOdd=this.emSwimlaneBackgroundOdd||h(this.background,5),this.emSwimlaneBackgroundStroke=this.emSwimlaneBackgroundStroke||h(this.background,12),this.emArrowhead=this.emArrowhead||this.lineColor,this.emRelationStroke=this.emRelationStroke||this.lineColor,this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||h(this.background,12),this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||h(this.background,2),this.nodeBorder=this.nodeBorder||"#999"}calculate(r){if(typeof r!=="object"){this.updateColors();return}let e=Object.keys(r);e.forEach((o)=>{this[o]=r[o]}),this.updateColors(),e.forEach((o)=>{this[o]=Or(this[o],r[o])})}},eb=t((r)=>{let e=new tb;return e.calculate(r),e},"getThemeVariables"),rb=class{static{t(this,"Theme")}constructor(){this.background="#f4f4f4",this.primaryColor="#ECECFF",this.secondaryColor=W(this.primaryColor,{h:120}),this.secondaryColor="#ffffde",this.tertiaryColor=W(this.primaryColor,{h:-160}),this.primaryBorderColor=fe(this.primaryColor,this.darkMode),this.secondaryBorderColor=fe(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=fe(this.tertiaryColor,this.darkMode),this.primaryTextColor=ct(this.primaryColor),this.secondaryTextColor=ct(this.secondaryColor),this.tertiaryTextColor=ct(this.tertiaryColor),this.lineColor=ct(this.background),this.textColor=ct(this.background),this.background="white",this.mainBkg="#ECECFF",this.secondBkg="#ffffde",this.lineColor="#333333",this.border1="#9370DB",this.primaryBorderColor=fe(this.primaryColor,this.darkMode),this.border2="#aaaa33",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="rgba(232,232,232, 0.8)",this.textColor="#333",this.THEME_COLOR_LIMIT=12,this.radius=5,this.strokeWidth=1,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.clusterBkg="#FBFBFF",this.sectionBkgColor="calculated",this.altSectionBkgColor="calculated",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="calculated",this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor="calculated",this.taskTextOutsideColor=this.taskTextDarkColor,this.taskTextClickableColor="calculated",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBorderColor="calculated",this.critBkgColor="calculated",this.todayLineColor="calculated",this.vertLineColor="calculated",this.sectionBkgColor=Oe(102,102,255,0.49),this.altSectionBkgColor="white",this.sectionBkgColor2="#fff400",this.taskBorderColor="#534fbc",this.taskBkgColor="#8a90dd",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="#534fbc",this.activeTaskBkgColor="#bfc7ff",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.vertLineColor="navy",this.noteFontWeight=this.noteFontWeight||"normal",this.fontWeight=this.fontWeight||"normal",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.rowOdd="calculated",this.rowEven="calculated",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.useGradient=!1,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor,this.dropShadow="drop-shadow(1px 2px 2px rgba(185, 185, 185, 1))",this.updateColors()}updateColors(){this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||W(this.primaryColor,{h:30}),this.cScale4=this.cScale4||W(this.primaryColor,{h:60}),this.cScale5=this.cScale5||W(this.primaryColor,{h:90}),this.cScale6=this.cScale6||W(this.primaryColor,{h:120}),this.cScale7=this.cScale7||W(this.primaryColor,{h:150}),this.cScale8=this.cScale8||W(this.primaryColor,{h:210}),this.cScale9=this.cScale9||W(this.primaryColor,{h:270}),this.cScale10=this.cScale10||W(this.primaryColor,{h:300}),this.cScale11=this.cScale11||W(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||g(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||g(this.tertiaryColor,40);for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this["cScale"+r]=g(this["cScale"+r],10),this["cScalePeer"+r]=this["cScalePeer"+r]||g(this["cScale"+r],25);for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this["cScaleInv"+r]=this["cScaleInv"+r]||W(this["cScale"+r],{h:180});for(let r=0;r<5;r++)this["surface"+r]=this["surface"+r]||W(this.mainBkg,{h:30,l:-(5+r*5)}),this["surfacePeer"+r]=this["surfacePeer"+r]||W(this.mainBkg,{h:30,l:-(7+r*5)});if(this.scaleLabelColor=this.scaleLabelColor!=="calculated"&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor,this.labelTextColor!=="calculated"){this.cScaleLabel0=this.cScaleLabel0||ct(this.labelTextColor),this.cScaleLabel3=this.cScaleLabel3||ct(this.labelTextColor);for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this["cScaleLabel"+r]=this["cScaleLabel"+r]||this.labelTextColor}if(this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.titleColor=this.textColor,this.edgeLabelBackground=this.labelBackground,this.flowContainerStroke=this.flowContainerStroke||this.secondaryBorderColor,this.actorBorder=this.border1,this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.signalColor=this.textColor,this.signalTextColor=this.textColor,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.actorLineColor=this.actorBorder,this.rectBkgColor=this.rectBkgColor||this.tertiaryColor,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.rowOdd=this.rowOdd||h(this.primaryColor,75)||"#ffffff",this.rowEven=this.rowEven||h(this.primaryColor,1),this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.specialStateColor=this.lineColor,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=W(this.primaryColor,{h:64}),this.fillType3=W(this.secondaryColor,{h:64}),this.fillType4=W(this.primaryColor,{h:-64}),this.fillType5=W(this.secondaryColor,{h:-64}),this.fillType6=W(this.primaryColor,{h:128}),this.fillType7=W(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||W(this.tertiaryColor,{l:-40}),this.pie4=this.pie4||W(this.primaryColor,{l:-10}),this.pie5=this.pie5||W(this.secondaryColor,{l:-30}),this.pie6=this.pie6||W(this.tertiaryColor,{l:-20}),this.pie7=this.pie7||W(this.primaryColor,{h:60,l:-20}),this.pie8=this.pie8||W(this.primaryColor,{h:-60,l:-40}),this.pie9=this.pie9||W(this.primaryColor,{h:120,l:-40}),this.pie10=this.pie10||W(this.primaryColor,{h:60,l:-40}),this.pie11=this.pie11||W(this.primaryColor,{h:-90,l:-40}),this.pie12=this.pie12||W(this.primaryColor,{h:120,l:-30}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.venn1=this.venn1??W(this.primaryColor,{l:-30}),this.venn2=this.venn2??W(this.secondaryColor,{l:-30}),this.venn3=this.venn3??W(this.tertiaryColor,{l:-40}),this.venn4=this.venn4??W(this.primaryColor,{h:60,l:-30}),this.venn5=this.venn5??W(this.primaryColor,{h:-60,l:-30}),this.venn6=this.venn6??W(this.secondaryColor,{h:60,l:-30}),this.venn7=this.venn7??W(this.primaryColor,{h:120,l:-30}),this.venn8=this.venn8??W(this.secondaryColor,{h:120,l:-30}),this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.cynefin={domainFontSize:this.cynefin?.domainFontSize||16,itemFontSize:this.cynefin?.itemFontSize||12,boundaryColor:this.cynefin?.boundaryColor||this.lineColor,boundaryWidth:this.cynefin?.boundaryWidth||2,cliffColor:this.cynefin?.cliffColor||"#8B0000",cliffWidth:this.cynefin?.cliffWidth||4,arrowColor:this.cynefin?.arrowColor||this.lineColor,arrowWidth:this.cynefin?.arrowWidth||2,complexBg:this.cynefin?.complexBg||"#E8F5E9",complicatedBg:this.cynefin?.complicatedBg||"#E3F2FD",chaoticBg:this.cynefin?.chaoticBg||"#FBE9E7",clearBg:this.cynefin?.clearBg||"#FFF8E1",confusionBg:this.cynefin?.confusionBg||"#F3E5F5",textColor:this.cynefin?.textColor||this.textColor,labelColor:this.cynefin?.labelColor||this.primaryTextColor},this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||W(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||W(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||W(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||W(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||W(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||W(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||he(this.quadrant1Fill)?h(this.quadrant1Fill):g(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.radar={axisColor:this.radar?.axisColor||this.lineColor,axisStrokeWidth:this.radar?.axisStrokeWidth||2,axisLabelFontSize:this.radar?.axisLabelFontSize||12,curveOpacity:this.radar?.curveOpacity||0.5,curveStrokeWidth:this.radar?.curveStrokeWidth||2,graticuleColor:this.radar?.graticuleColor||"#DEDEDE",graticuleStrokeWidth:this.radar?.graticuleStrokeWidth||1,graticuleOpacity:this.radar?.graticuleOpacity||0.3,legendBoxSize:this.radar?.legendBoxSize||12,legendFontSize:this.radar?.legendFontSize||12},this.wardleyEvolutionColor=this.wardleyEvolutionColor||"#dc3545",this.wardley={backgroundColor:this.wardley?.backgroundColor||this.background,axisColor:this.wardley?.axisColor||this.lineColor,axisTextColor:this.wardley?.axisTextColor||this.primaryTextColor,gridColor:this.wardley?.gridColor||this.gridColor,componentFill:this.wardley?.componentFill||this.background,componentStroke:this.wardley?.componentStroke||this.lineColor,componentLabelColor:this.wardley?.componentLabelColor||this.primaryTextColor,linkStroke:this.wardley?.linkStroke||this.lineColor,evolutionStroke:this.wardley?.evolutionStroke||this.wardleyEvolutionColor,annotationStroke:this.wardley?.annotationStroke||this.lineColor,annotationTextColor:this.wardley?.annotationTextColor||this.primaryTextColor,annotationFill:this.wardley?.annotationFill||this.background},this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,dataLabelColor:this.xyChart?.dataLabelColor||this.primaryTextColor,legendTextColor:this.xyChart?.legendTextColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#ECECFF,#8493A6,#FFC3A0,#DCDDE1,#B8E994,#D1A36F,#C3CDE6,#FFB6C1,#496078,#F8F3E3"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.labelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||W(this.primaryColor,{h:-30}),this.git4=this.git4||W(this.primaryColor,{h:-60}),this.git5=this.git5||W(this.primaryColor,{h:-90}),this.git6=this.git6||W(this.primaryColor,{h:60}),this.git7=this.git7||W(this.primaryColor,{h:120}),this.darkMode)this.git0=h(this.git0,25),this.git1=h(this.git1,25),this.git2=h(this.git2,25),this.git3=h(this.git3,25),this.git4=h(this.git4,25),this.git5=h(this.git5,25),this.git6=h(this.git6,25),this.git7=h(this.git7,25);else this.git0=g(this.git0,25),this.git1=g(this.git1,25),this.git2=g(this.git2,25),this.git3=g(this.git3,25),this.git4=g(this.git4,25),this.git5=g(this.git5,25),this.git6=g(this.git6,25),this.git7=g(this.git7,25);this.gitInv0=this.gitInv0||g(ct(this.git0),25),this.gitInv1=this.gitInv1||ct(this.git1),this.gitInv2=this.gitInv2||ct(this.git2),this.gitInv3=this.gitInv3||ct(this.git3),this.gitInv4=this.gitInv4||ct(this.git4),this.gitInv5=this.gitInv5||ct(this.git5),this.gitInv6=this.gitInv6||ct(this.git6),this.gitInv7=this.gitInv7||ct(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||ct(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||ct(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.emUiFill=this.emUiFill||"white",this.emUiStroke=this.emUiStroke||"#dbdada",this.emProcessorFill=this.emProcessorFill||"#edb3f6",this.emProcessorStroke=this.emProcessorStroke||"#b88cbf",this.emReadModelFill=this.emReadModelFill||"#d3f1a2",this.emReadModelStroke=this.emReadModelStroke||"#a3b732",this.emCommandFill=this.emCommandFill||"#bcd6fe",this.emCommandStroke=this.emCommandStroke||"#679ac3",this.emEventFill=this.emEventFill||"#ffb778",this.emEventStroke=this.emEventStroke||"#c19a0f",this.emSwimlaneBackgroundOdd=this.emSwimlaneBackgroundOdd||"rgb(250,250,250)",this.emSwimlaneBackgroundStroke=this.emSwimlaneBackgroundStroke||"rgb(240,240,240)",this.emArrowhead=this.emArrowhead||this.lineColor,this.emRelationStroke=this.emRelationStroke||this.lineColor,this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||Wr,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||zr}calculate(r){if(Object.keys(this).forEach((o)=>{if(this[o]==="calculated")this[o]=void 0}),typeof r!=="object"){this.updateColors();return}let e=Object.keys(r);e.forEach((o)=>{this[o]=r[o]}),this.updateColors(),e.forEach((o)=>{this[o]=Or(this[o],r[o])})}},tt=t((r)=>{let e=new rb;return e.calculate(r),e},"getThemeVariables"),ib=class{static{t(this,"Theme")}constructor(){this.background="#f4f4f4",this.primaryColor="#cde498",this.secondaryColor="#cdffb2",this.background="white",this.mainBkg="#cde498",this.secondBkg="#cdffb2",this.lineColor="green",this.border1="#13540c",this.border2="#6eaa49",this.arrowheadColor="green",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.tertiaryColor=h("#cde498",10),this.primaryBorderColor=fe(this.primaryColor,this.darkMode),this.secondaryBorderColor=fe(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=fe(this.tertiaryColor,this.darkMode),this.primaryTextColor=ct(this.primaryColor),this.secondaryTextColor=ct(this.secondaryColor),this.tertiaryTextColor=ct(this.primaryColor),this.lineColor=ct(this.background),this.textColor=ct(this.background),this.THEME_COLOR_LIMIT=12,this.radius=5,this.strokeWidth=1,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#333",this.edgeLabelBackground="#e8e8e8",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="calculated",this.signalColor="#333",this.signalTextColor="#333",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="#326932",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="#6eaa49",this.altSectionBkgColor="white",this.sectionBkgColor2="#6eaa49",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="#487e3a",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.vertLineColor="#00BFFF",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.noteFontWeight="normal",this.fontWeight="normal",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.useGradient=!0,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor,this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,0.5))"}updateColors(){this.actorBorder=g(this.mainBkg,20),this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.actorLineColor=this.actorBorder,this.rectBkgColor=this.rectBkgColor||this.tertiaryColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||W(this.primaryColor,{h:30}),this.cScale4=this.cScale4||W(this.primaryColor,{h:60}),this.cScale5=this.cScale5||W(this.primaryColor,{h:90}),this.cScale6=this.cScale6||W(this.primaryColor,{h:120}),this.cScale7=this.cScale7||W(this.primaryColor,{h:150}),this.cScale8=this.cScale8||W(this.primaryColor,{h:210}),this.cScale9=this.cScale9||W(this.primaryColor,{h:270}),this.cScale10=this.cScale10||W(this.primaryColor,{h:300}),this.cScale11=this.cScale11||W(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||g(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||g(this.tertiaryColor,40);for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this["cScale"+r]=g(this["cScale"+r],10),this["cScalePeer"+r]=this["cScalePeer"+r]||g(this["cScale"+r],25);for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this["cScaleInv"+r]=this["cScaleInv"+r]||W(this["cScale"+r],{h:180});this.scaleLabelColor=this.scaleLabelColor!=="calculated"&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor;for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this["cScaleLabel"+r]=this["cScaleLabel"+r]||this.scaleLabelColor;for(let r=0;r<5;r++)this["surface"+r]=this["surface"+r]||W(this.mainBkg,{h:30,s:-30,l:-(5+r*5)}),this["surfacePeer"+r]=this["surfacePeer"+r]||W(this.mainBkg,{h:30,s:-30,l:-(8+r*5)});if(this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.flowContainerStroke=this.flowContainerStroke||this.secondaryBorderColor,this.taskBorderColor=this.border1,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.activeTaskBorderColor=this.taskBorderColor,this.activeTaskBkgColor=this.mainBkg,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.rowOdd=this.rowOdd||h(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||h(this.mainBkg,20),this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor=this.lineColor,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=W(this.primaryColor,{h:64}),this.fillType3=W(this.secondaryColor,{h:64}),this.fillType4=W(this.primaryColor,{h:-64}),this.fillType5=W(this.secondaryColor,{h:-64}),this.fillType6=W(this.primaryColor,{h:128}),this.fillType7=W(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||W(this.primaryColor,{l:-30}),this.pie5=this.pie5||W(this.secondaryColor,{l:-30}),this.pie6=this.pie6||W(this.tertiaryColor,{h:40,l:-40}),this.pie7=this.pie7||W(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||W(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||W(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||W(this.primaryColor,{h:60,l:-50}),this.pie11=this.pie11||W(this.primaryColor,{h:-60,l:-50}),this.pie12=this.pie12||W(this.primaryColor,{h:120,l:-50}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.venn1=this.venn1??W(this.primaryColor,{l:-30}),this.venn2=this.venn2??W(this.secondaryColor,{l:-30}),this.venn3=this.venn3??W(this.tertiaryColor,{l:-30}),this.venn4=this.venn4??W(this.primaryColor,{h:60,l:-30}),this.venn5=this.venn5??W(this.primaryColor,{h:-60,l:-30}),this.venn6=this.venn6??W(this.secondaryColor,{h:60,l:-30}),this.venn7=this.venn7??W(this.primaryColor,{h:120,l:-30}),this.venn8=this.venn8??W(this.secondaryColor,{h:120,l:-30}),this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.cynefin={domainFontSize:this.cynefin?.domainFontSize||16,itemFontSize:this.cynefin?.itemFontSize||12,boundaryColor:this.cynefin?.boundaryColor||this.lineColor,boundaryWidth:this.cynefin?.boundaryWidth||2,cliffColor:this.cynefin?.cliffColor||"#8B4513",cliffWidth:this.cynefin?.cliffWidth||4,arrowColor:this.cynefin?.arrowColor||this.lineColor,arrowWidth:this.cynefin?.arrowWidth||2,complexBg:this.cynefin?.complexBg||"#C8E6C9",complicatedBg:this.cynefin?.complicatedBg||"#DCEDC8",chaoticBg:this.cynefin?.chaoticBg||"#FFE0B2",clearBg:this.cynefin?.clearBg||"#FFF9C4",confusionBg:this.cynefin?.confusionBg||"#D7CCC8",textColor:this.cynefin?.textColor||this.textColor,labelColor:this.cynefin?.labelColor||this.primaryTextColor},this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||W(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||W(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||W(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||W(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||W(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||W(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||he(this.quadrant1Fill)?h(this.quadrant1Fill):g(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.packet={startByteColor:this.primaryTextColor,endByteColor:this.primaryTextColor,labelColor:this.primaryTextColor,titleColor:this.primaryTextColor,blockStrokeColor:this.primaryTextColor,blockFillColor:this.mainBkg},this.radar={axisColor:this.radar?.axisColor||this.lineColor,axisStrokeWidth:this.radar?.axisStrokeWidth||2,axisLabelFontSize:this.radar?.axisLabelFontSize||12,curveOpacity:this.radar?.curveOpacity||0.5,curveStrokeWidth:this.radar?.curveStrokeWidth||2,graticuleColor:this.radar?.graticuleColor||"#DEDEDE",graticuleStrokeWidth:this.radar?.graticuleStrokeWidth||1,graticuleOpacity:this.radar?.graticuleOpacity||0.3,legendBoxSize:this.radar?.legendBoxSize||12,legendFontSize:this.radar?.legendFontSize||12},this.wardleyEvolutionColor=this.wardleyEvolutionColor||"#dc3545",this.wardley={backgroundColor:this.wardley?.backgroundColor||this.background,axisColor:this.wardley?.axisColor||this.lineColor,axisTextColor:this.wardley?.axisTextColor||this.primaryTextColor,gridColor:this.wardley?.gridColor||this.gridColor,componentFill:this.wardley?.componentFill||this.background,componentStroke:this.wardley?.componentStroke||this.lineColor,componentLabelColor:this.wardley?.componentLabelColor||this.primaryTextColor,linkStroke:this.wardley?.linkStroke||this.lineColor,evolutionStroke:this.wardley?.evolutionStroke||this.wardleyEvolutionColor,annotationStroke:this.wardley?.annotationStroke||this.lineColor,annotationTextColor:this.wardley?.annotationTextColor||this.primaryTextColor,annotationFill:this.wardley?.annotationFill||this.background},this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,dataLabelColor:this.xyChart?.dataLabelColor||this.primaryTextColor,legendTextColor:this.xyChart?.legendTextColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#CDE498,#FF6B6B,#A0D2DB,#D7BDE2,#F0F0F0,#FFC3A0,#7FD8BE,#FF9A8B,#FAF3E0,#FFF176"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.edgeLabelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||W(this.primaryColor,{h:-30}),this.git4=this.git4||W(this.primaryColor,{h:-60}),this.git5=this.git5||W(this.primaryColor,{h:-90}),this.git6=this.git6||W(this.primaryColor,{h:60}),this.git7=this.git7||W(this.primaryColor,{h:120}),this.darkMode)this.git0=h(this.git0,25),this.git1=h(this.git1,25),this.git2=h(this.git2,25),this.git3=h(this.git3,25),this.git4=h(this.git4,25),this.git5=h(this.git5,25),this.git6=h(this.git6,25),this.git7=h(this.git7,25);else this.git0=g(this.git0,25),this.git1=g(this.git1,25),this.git2=g(this.git2,25),this.git3=g(this.git3,25),this.git4=g(this.git4,25),this.git5=g(this.git5,25),this.git6=g(this.git6,25),this.git7=g(this.git7,25);this.gitInv0=this.gitInv0||ct(this.git0),this.gitInv1=this.gitInv1||ct(this.git1),this.gitInv2=this.gitInv2||ct(this.git2),this.gitInv3=this.gitInv3||ct(this.git3),this.gitInv4=this.gitInv4||ct(this.git4),this.gitInv5=this.gitInv5||ct(this.git5),this.gitInv6=this.gitInv6||ct(this.git6),this.gitInv7=this.gitInv7||ct(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||ct(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||ct(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.emUiFill=this.emUiFill||"white",this.emUiStroke=this.emUiStroke||"#dbdada",this.emProcessorFill=this.emProcessorFill||"#edb3f6",this.emProcessorStroke=this.emProcessorStroke||"#b88cbf",this.emReadModelFill=this.emReadModelFill||"#d3f1a2",this.emReadModelStroke=this.emReadModelStroke||"#a3b732",this.emCommandFill=this.emCommandFill||"#bcd6fe",this.emCommandStroke=this.emCommandStroke||"#679ac3",this.emEventFill=this.emEventFill||"#ffb778",this.emEventStroke=this.emEventStroke||"#c19a0f",this.emSwimlaneBackgroundOdd=this.emSwimlaneBackgroundOdd||"rgb(250,250,250)",this.emSwimlaneBackgroundStroke=this.emSwimlaneBackgroundStroke||"rgb(240,240,240)",this.emArrowhead=this.emArrowhead||this.lineColor,this.emRelationStroke=this.emRelationStroke||this.lineColor,this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||Wr,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||zr}calculate(r){if(typeof r!=="object"){this.updateColors();return}let e=Object.keys(r);e.forEach((o)=>{this[o]=r[o]}),this.updateColors(),e.forEach((o)=>{this[o]=Or(this[o],r[o])})}},ob=t((r)=>{let e=new ib;return e.calculate(r),e},"getThemeVariables"),sb=class{static{t(this,"Theme")}constructor(){this.primaryColor="#eee",this.contrast="#707070",this.secondaryColor=h(this.contrast,55),this.background="#ffffff",this.tertiaryColor=W(this.primaryColor,{h:-160}),this.primaryBorderColor=fe(this.primaryColor,this.darkMode),this.secondaryBorderColor=fe(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=fe(this.tertiaryColor,this.darkMode),this.primaryTextColor=ct(this.primaryColor),this.secondaryTextColor=ct(this.secondaryColor),this.tertiaryTextColor=ct(this.tertiaryColor),this.lineColor=ct(this.background),this.textColor=ct(this.background),this.mainBkg="#eee",this.secondBkg="calculated",this.lineColor="#666",this.border1="#999",this.border2="calculated",this.note="#ffa",this.text="#333",this.critical="#d42",this.done="#bbb",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.THEME_COLOR_LIMIT=12,this.radius=5,this.strokeWidth=1,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="white",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor=this.actorBorder,this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="calculated",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="white",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBkgColor="calculated",this.critBorderColor="calculated",this.todayLineColor="calculated",this.vertLineColor="calculated",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.noteFontWeight="normal",this.fontWeight="normal",this.rowOdd=this.rowOdd||h(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||"#f4f4f4",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.useGradient=!0,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor,this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,1))"}updateColors(){this.secondBkg=h(this.contrast,55),this.border2=this.contrast,this.actorBorder=h(this.border1,23),this.actorBkg=this.mainBkg,this.actorTextColor=this.text,this.actorLineColor=this.actorBorder,this.rectBkgColor=this.rectBkgColor||this.tertiaryColor,this.signalColor=this.text,this.signalTextColor=this.text,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.text,this.loopTextColor=this.text,this.noteBorderColor="#999",this.noteBkgColor="#666",this.noteTextColor="#fff",this.cScale0=this.cScale0||"#555",this.cScale1=this.cScale1||"#F4F4F4",this.cScale2=this.cScale2||"#555",this.cScale3=this.cScale3||"#BBB",this.cScale4=this.cScale4||"#777",this.cScale5=this.cScale5||"#999",this.cScale6=this.cScale6||"#DDD",this.cScale7=this.cScale7||"#FFF",this.cScale8=this.cScale8||"#DDD",this.cScale9=this.cScale9||"#BBB",this.cScale10=this.cScale10||"#999",this.cScale11=this.cScale11||"#777";for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this["cScaleInv"+r]=this["cScaleInv"+r]||ct(this["cScale"+r]);for(let r=0;r<this.THEME_COLOR_LIMIT;r++)if(this.darkMode)this["cScalePeer"+r]=this["cScalePeer"+r]||h(this["cScale"+r],10);else this["cScalePeer"+r]=this["cScalePeer"+r]||g(this["cScale"+r],10);this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor),this.cScaleLabel0=this.cScaleLabel0||this.cScale1,this.cScaleLabel2=this.cScaleLabel2||this.cScale1;for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this["cScaleLabel"+r]=this["cScaleLabel"+r]||this.scaleLabelColor;for(let r=0;r<5;r++)this["surface"+r]=this["surface"+r]||W(this.mainBkg,{l:-(5+r*5)}),this["surfacePeer"+r]=this["surfacePeer"+r]||W(this.mainBkg,{l:-(8+r*5)});this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.titleColor=this.text,this.flowContainerStroke=this.flowContainerStroke||this.secondaryBorderColor,this.sectionBkgColor=h(this.contrast,30),this.sectionBkgColor2=h(this.contrast,30),this.taskBorderColor=g(this.contrast,10),this.taskBkgColor=this.contrast,this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor=this.text,this.taskTextOutsideColor=this.taskTextDarkColor,this.activeTaskBorderColor=this.taskBorderColor,this.activeTaskBkgColor=this.mainBkg,this.gridColor=h(this.border1,30),this.doneTaskBkgColor=this.done,this.doneTaskBorderColor=this.lineColor,this.critBkgColor=this.critical,this.critBorderColor=g(this.critBkgColor,10),this.todayLineColor=this.critBkgColor,this.vertLineColor=this.critBkgColor,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.transitionColor=this.transitionColor||"#000",this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f4f4f4",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.stateBorder=this.stateBorder||"#000",this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#222",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=W(this.primaryColor,{h:64}),this.fillType3=W(this.secondaryColor,{h:64}),this.fillType4=W(this.primaryColor,{h:-64}),this.fillType5=W(this.secondaryColor,{h:-64}),this.fillType6=W(this.primaryColor,{h:128}),this.fillType7=W(this.secondaryColor,{h:128});for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this["pie"+r]=this["cScale"+r];this.pie12=this.pie0,this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7";for(let r=0;r<8;r++)this["venn"+(r+1)]=this["venn"+(r+1)]??this["cScale"+r];this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.cynefin={domainFontSize:this.cynefin?.domainFontSize||16,itemFontSize:this.cynefin?.itemFontSize||12,boundaryColor:this.cynefin?.boundaryColor||this.lineColor,boundaryWidth:this.cynefin?.boundaryWidth||2,cliffColor:this.cynefin?.cliffColor||"#8B0000",cliffWidth:this.cynefin?.cliffWidth||4,arrowColor:this.cynefin?.arrowColor||this.lineColor,arrowWidth:this.cynefin?.arrowWidth||2,complexBg:this.cynefin?.complexBg||"#E8F5E9",complicatedBg:this.cynefin?.complicatedBg||"#E3F2FD",chaoticBg:this.cynefin?.chaoticBg||"#FBE9E7",clearBg:this.cynefin?.clearBg||"#FFF8E1",confusionBg:this.cynefin?.confusionBg||"#F3E5F5",textColor:this.cynefin?.textColor||this.textColor,labelColor:this.cynefin?.labelColor||this.primaryTextColor},this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||W(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||W(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||W(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||W(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||W(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||W(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||he(this.quadrant1Fill)?h(this.quadrant1Fill):g(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,dataLabelColor:this.xyChart?.dataLabelColor||this.primaryTextColor,legendTextColor:this.xyChart?.legendTextColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#EEE,#6BB8E4,#8ACB88,#C7ACD6,#E8DCC2,#FFB2A8,#FFF380,#7E8D91,#FFD8B1,#FAF3E0"},this.radar={axisColor:this.radar?.axisColor||this.lineColor,axisStrokeWidth:this.radar?.axisStrokeWidth||2,axisLabelFontSize:this.radar?.axisLabelFontSize||12,curveOpacity:this.radar?.curveOpacity||0.5,curveStrokeWidth:this.radar?.curveStrokeWidth||2,graticuleColor:this.radar?.graticuleColor||"#DEDEDE",graticuleStrokeWidth:this.radar?.graticuleStrokeWidth||1,graticuleOpacity:this.radar?.graticuleOpacity||0.3,legendBoxSize:this.radar?.legendBoxSize||12,legendFontSize:this.radar?.legendFontSize||12},this.wardleyEvolutionColor=this.wardleyEvolutionColor||"#dc3545",this.wardley={backgroundColor:this.wardley?.backgroundColor||this.background,axisColor:this.wardley?.axisColor||this.lineColor,axisTextColor:this.wardley?.axisTextColor||this.primaryTextColor,gridColor:this.wardley?.gridColor||this.gridColor,componentFill:this.wardley?.componentFill||this.background,componentStroke:this.wardley?.componentStroke||this.lineColor,componentLabelColor:this.wardley?.componentLabelColor||this.primaryTextColor,linkStroke:this.wardley?.linkStroke||this.lineColor,evolutionStroke:this.wardley?.evolutionStroke||this.wardleyEvolutionColor,annotationStroke:this.wardley?.annotationStroke||this.lineColor,annotationTextColor:this.wardley?.annotationTextColor||this.primaryTextColor,annotationFill:this.wardley?.annotationFill||this.background},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.edgeLabelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=g(this.pie1,25)||this.primaryColor,this.git1=this.pie2||this.secondaryColor,this.git2=this.pie3||this.tertiaryColor,this.git3=this.pie4||W(this.primaryColor,{h:-30}),this.git4=this.pie5||W(this.primaryColor,{h:-60}),this.git5=this.pie6||W(this.primaryColor,{h:-90}),this.git6=this.pie7||W(this.primaryColor,{h:60}),this.git7=this.pie8||W(this.primaryColor,{h:120}),this.gitInv0=this.gitInv0||ct(this.git0),this.gitInv1=this.gitInv1||ct(this.git1),this.gitInv2=this.gitInv2||ct(this.git2),this.gitInv3=this.gitInv3||ct(this.git3),this.gitInv4=this.gitInv4||ct(this.git4),this.gitInv5=this.gitInv5||ct(this.git5),this.gitInv6=this.gitInv6||ct(this.git6),this.gitInv7=this.gitInv7||ct(this.git7),this.branchLabelColor=this.branchLabelColor||this.labelTextColor,this.gitBranchLabel0=this.branchLabelColor,this.gitBranchLabel1="white",this.gitBranchLabel2=this.branchLabelColor,this.gitBranchLabel3="white",this.gitBranchLabel4=this.branchLabelColor,this.gitBranchLabel5=this.branchLabelColor,this.gitBranchLabel6=this.branchLabelColor,this.gitBranchLabel7=this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.emUiFill=this.emUiFill||"white",this.emUiStroke=this.emUiStroke||"#dbdada",this.emProcessorFill=this.emProcessorFill||"#edb3f6",this.emProcessorStroke=this.emProcessorStroke||"#b88cbf",this.emReadModelFill=this.emReadModelFill||"#d3f1a2",this.emReadModelStroke=this.emReadModelStroke||"#a3b732",this.emCommandFill=this.emCommandFill||"#bcd6fe",this.emCommandStroke=this.emCommandStroke||"#679ac3",this.emEventFill=this.emEventFill||"#ffb778",this.emEventStroke=this.emEventStroke||"#c19a0f",this.emSwimlaneBackgroundOdd=this.emSwimlaneBackgroundOdd||"rgb(250,250,250)",this.emSwimlaneBackgroundStroke=this.emSwimlaneBackgroundStroke||"rgb(240,240,240)",this.emArrowhead=this.emArrowhead||this.lineColor,this.emRelationStroke=this.emRelationStroke||this.lineColor,this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||Wr,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||zr}calculate(r){if(typeof r!=="object"){this.updateColors();return}let e=Object.keys(r);e.forEach((o)=>{this[o]=r[o]}),this.updateColors(),e.forEach((o)=>{this[o]=Or(this[o],r[o])})}},ab=t((r)=>{let e=new sb;return e.calculate(r),e},"getThemeVariables"),nb=class{static{t(this,"Theme")}constructor(){this.background="#ffffff",this.primaryColor="#cccccc",this.mainBkg="#ffffff",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.radius=3,this.strokeWidth=2,this.primaryBorderColor=fe(this.primaryColor,this.darkMode),this.fontFamily="arial, sans-serif",this.fontSize="14px",this.nodeBorder="#000000",this.stateBorder="#000000",this.useGradient=!0,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="drop-shadow( 0px 1px 2px rgba(0, 0, 0, 0.25));",this.tertiaryColor="#ffffff",this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.noteFontWeight="normal",this.fontWeight="normal"}updateColors(){this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||W(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||W(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||fe(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||fe(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||fe(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||fe(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||ct(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||ct(this.tertiaryColor),this.lineColor=this.lineColor||ct(this.background),this.arrowheadColor=this.arrowheadColor||ct(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?g(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.flowContainerStroke=this.flowContainerStroke||this.secondaryBorderColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||g(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||ct(this.lineColor),this.rectBkgColor=this.rectBkgColor||(he(this.background)?h(this.background,4):g(this.background,4));let r="#ECECFE",e="#E9E9F1",o=W(r,{h:180,l:5});if(this.sectionBkgColor=this.sectionBkgColor||o,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||e,this.sectionBkgColor2=this.sectionBkgColor2||r,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||r,this.activeTaskBorderColor=this.activeTaskBorderColor||r,this.activeTaskBkgColor=this.activeTaskBkgColor||h(r,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||r,this.cScale1=this.cScale1||e,this.cScale2=this.cScale2||o,this.cScale3=this.cScale3||W(r,{h:30}),this.cScale4=this.cScale4||W(r,{h:60}),this.cScale5=this.cScale5||W(r,{h:90}),this.cScale6=this.cScale6||W(r,{h:120}),this.cScale7=this.cScale7||W(r,{h:150}),this.cScale8=this.cScale8||W(r,{h:210,l:150}),this.cScale9=this.cScale9||W(r,{h:270}),this.cScale10=this.cScale10||W(r,{h:300}),this.cScale11=this.cScale11||W(r,{h:330}),this.darkMode)for(let s=0;s<this.THEME_COLOR_LIMIT;s++)this["cScale"+s]=g(this["cScale"+s],75);else for(let s=0;s<this.THEME_COLOR_LIMIT;s++)this["cScale"+s]=g(this["cScale"+s],25);for(let s=0;s<this.THEME_COLOR_LIMIT;s++)this["cScaleInv"+s]=this["cScaleInv"+s]||ct(this["cScale"+s]);for(let s=0;s<this.THEME_COLOR_LIMIT;s++)if(this.darkMode)this["cScalePeer"+s]=this["cScalePeer"+s]||h(this["cScale"+s],10);else this["cScalePeer"+s]=this["cScalePeer"+s]||g(this["cScale"+s],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let s=0;s<this.THEME_COLOR_LIMIT;s++)this["cScaleLabel"+s]=this["cScaleLabel"+s]||this.scaleLabelColor;let a=this.darkMode?-4:-1;for(let s=0;s<5;s++)this["surface"+s]=this["surface"+s]||W(this.mainBkg,{h:180,s:-15,l:a*(5+s*3)}),this["surfacePeer"+s]=this["surfacePeer"+s]||W(this.mainBkg,{h:180,s:-15,l:a*(8+s*3)});if(this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||r,this.fillType1=this.fillType1||e,this.fillType2=this.fillType2||W(r,{h:64}),this.fillType3=this.fillType3||W(e,{h:64}),this.fillType4=this.fillType4||W(r,{h:-64}),this.fillType5=this.fillType5||W(e,{h:-64}),this.fillType6=this.fillType6||W(r,{h:128}),this.fillType7=this.fillType7||W(e,{h:128}),this.pie1=this.pie1||r,this.pie2=this.pie2||e,this.pie3=this.pie3||o,this.pie4=this.pie4||W(r,{l:-10}),this.pie5=this.pie5||W(e,{l:-10}),this.pie6=this.pie6||W(o,{l:-10}),this.pie7=this.pie7||W(r,{h:60,l:-10}),this.pie8=this.pie8||W(r,{h:-60,l:-10}),this.pie9=this.pie9||W(r,{h:120,l:0}),this.pie10=this.pie10||W(r,{h:60,l:-20}),this.pie11=this.pie11||W(r,{h:-60,l:-20}),this.pie12=this.pie12||W(r,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||r,this.quadrant2Fill=this.quadrant2Fill||W(r,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||W(r,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||W(r,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||W(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||W(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||W(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||he(this.quadrant1Fill)?h(this.quadrant1Fill):g(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,legendTextColor:this.xyChart?.legendTextColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||r,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?g(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||r,this.git1=this.git1||e,this.git2=this.git2||o,this.git3=this.git3||W(r,{h:-30}),this.git4=this.git4||W(r,{h:-60}),this.git5=this.git5||W(r,{h:-90}),this.git6=this.git6||W(r,{h:60}),this.git7=this.git7||W(r,{h:120}),this.darkMode)this.git0=h(this.git0,25),this.git1=h(this.git1,25),this.git2=h(this.git2,25),this.git3=h(this.git3,25),this.git4=h(this.git4,25),this.git5=h(this.git5,25),this.git6=h(this.git6,25),this.git7=h(this.git7,25);else this.git0=g(this.git0,25),this.git1=g(this.git1,25),this.git2=g(this.git2,25),this.git3=g(this.git3,25),this.git4=g(this.git4,25),this.git5=g(this.git5,25),this.git6=g(this.git6,25),this.git7=g(this.git7,25);this.gitInv0=this.gitInv0||ct(this.git0),this.gitInv1=this.gitInv1||ct(this.git1),this.gitInv2=this.gitInv2||ct(this.git2),this.gitInv3=this.gitInv3||ct(this.git3),this.gitInv4=this.gitInv4||ct(this.git4),this.gitInv5=this.gitInv5||ct(this.git5),this.gitInv6=this.gitInv6||ct(this.git6),this.gitInv7=this.gitInv7||ct(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||Wr,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||zr}calculate(r){if(typeof r!=="object"){this.updateColors();return}let e=Object.keys(r);e.forEach((o)=>{this[o]=r[o]}),this.updateColors(),e.forEach((o)=>{this[o]=Or(this[o],r[o])})}},lb=t((r)=>{let e=new nb;return e.calculate(r),e},"getThemeVariables"),hb=class{static{t(this,"Theme")}constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=h(this.primaryColor,16),this.tertiaryColor=W(this.primaryColor,{h:-160}),this.primaryBorderColor=ct(this.background),this.secondaryBorderColor=fe(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=fe(this.tertiaryColor,this.darkMode),this.primaryTextColor=ct(this.primaryColor),this.secondaryTextColor=ct(this.secondaryColor),this.tertiaryTextColor=ct(this.tertiaryColor),this.mainBkg="#2a2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=h(ct("#323D47"),10),this.border1="#ccc",this.border2=Oe(255,255,255,0.25),this.arrowheadColor=ct(this.background),this.fontFamily="arial, sans-serif",this.fontSize="14px",this.labelBackground="#181818",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.radius=3,this.strokeWidth=1,this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.fontFamily="arial, sans-serif",this.fontSize="14px",this.useGradient=!0,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,0.2))",this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.noteFontWeight="normal",this.fontWeight="normal"}updateColors(){if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||W(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||W(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||fe(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||fe(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||fe(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||fe(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||ct(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||ct(this.tertiaryColor),this.lineColor=this.lineColor||ct(this.background),this.arrowheadColor=this.arrowheadColor||ct(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.secondBkg=this.secondBkg==="calculated"?h(this.mainBkg,16):this.secondBkg,this.nodeBorder=this.nodeBorder||this.border1,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?g(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.flowContainerStroke=this.flowContainerStroke||this.secondaryBorderColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||g(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||ct(this.lineColor),this.rectBkgColor=this.rectBkgColor||this.tertiaryColor,this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||h(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||this.secondBkg,this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||W(this.primaryColor,{h:30}),this.cScale4=this.cScale4||W(this.primaryColor,{h:60}),this.cScale5=this.cScale5||W(this.primaryColor,{h:90}),this.cScale6=this.cScale6||W(this.primaryColor,{h:120}),this.cScale7=this.cScale7||W(this.primaryColor,{h:150}),this.cScale8=this.cScale8||W(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||W(this.primaryColor,{h:270}),this.cScale10=this.cScale10||W(this.primaryColor,{h:300}),this.cScale11=this.cScale11||W(this.primaryColor,{h:330}),this.darkMode)for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScale"+e]=g(this["cScale"+e],75);else for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScale"+e]=g(this["cScale"+e],25);for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScaleInv"+e]=this["cScaleInv"+e]||ct(this["cScale"+e]);for(let e=0;e<this.THEME_COLOR_LIMIT;e++)if(this.darkMode)this["cScalePeer"+e]=this["cScalePeer"+e]||h(this["cScale"+e],10);else this["cScalePeer"+e]=this["cScalePeer"+e]||g(this["cScale"+e],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScaleLabel"+e]=this["cScaleLabel"+e]||this.scaleLabelColor;let r=this.darkMode?-4:-1;for(let e=0;e<5;e++)this["surface"+e]=this["surface"+e]||W(this.mainBkg,{h:180,s:-15,l:r*(5+e*3)}),this["surfacePeer"+e]=this["surfacePeer"+e]||W(this.mainBkg,{h:180,s:-15,l:r*(8+e*3)});if(this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||W(this.primaryColor,{h:64}),this.fillType3=this.fillType3||W(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||W(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||W(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||W(this.primaryColor,{h:128}),this.fillType7=this.fillType7||W(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||W(this.primaryColor,{l:-10}),this.pie5=this.pie5||W(this.secondaryColor,{l:-10}),this.pie6=this.pie6||W(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||W(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||W(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||W(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||W(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||W(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||W(this.primaryColor,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||W(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||W(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||W(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||W(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||W(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||W(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||he(this.quadrant1Fill)?h(this.quadrant1Fill):g(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,legendTextColor:this.xyChart?.legendTextColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?g(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||"#0b0000",this.git1=this.git1||"#4d1037",this.git2=this.git2||"#3f5258",this.git3=this.git3||"#4f2f1b",this.git4=this.git4||"#6e0a0a",this.git5=this.git5||"#3b0048",this.git6=this.git6||"#995a01",this.git7=this.git7||"#154706",this.gitDarkMode=!0,this.gitDarkMode)this.git0=h(this.git0,25),this.git1=h(this.git1,25),this.git2=h(this.git2,25),this.git3=h(this.git3,25),this.git4=h(this.git4,25),this.git5=h(this.git5,25),this.git6=h(this.git6,25),this.git7=h(this.git7,25);else this.git0=g(this.git0,25),this.git1=g(this.git1,25),this.git2=g(this.git2,25),this.git3=g(this.git3,25),this.git4=g(this.git4,25),this.git5=g(this.git5,25),this.git6=g(this.git6,25),this.git7=g(this.git7,25);this.gitInv0=this.gitInv0||ct(this.git0),this.gitInv1=this.gitInv1||ct(this.git1),this.gitInv2=this.gitInv2||ct(this.git2),this.gitInv3=this.gitInv3||ct(this.git3),this.gitInv4=this.gitInv4||ct(this.git4),this.gitInv5=this.gitInv5||ct(this.git5),this.gitInv6=this.gitInv6||ct(this.git6),this.gitInv7=this.gitInv7||ct(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||Wr,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||zr}calculate(r){if(typeof r!=="object"){this.updateColors();return}let e=Object.keys(r);e.forEach((o)=>{this[o]=r[o]}),this.updateColors(),e.forEach((o)=>{this[o]=Or(this[o],r[o])})}};var cb=t((r)=>{let e=new hb;return e.calculate(r),e},"getThemeVariables"),ub=class{static{t(this,"Theme")}constructor(){this.background="#ffffff",this.primaryColor="#cccccc",this.mainBkg="#ffffff",this.noteBkgColor="#fff5ad",this.noteTextColor="#28253D",this.THEME_COLOR_LIMIT=12,this.radius=12,this.strokeWidth=2,this.primaryBorderColor=fe("#28253D",this.darkMode),this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.nodeBorder="#28253D",this.stateBorder="#28253D",this.useGradient=!1,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="url(#drop-shadow)",this.nodeShadow=!0,this.tertiaryColor="#ffffff",this.clusterBkg="#F9F9FB",this.clusterBorder="#BDBCCC",this.noteBorderColor="#FACC15",this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.actorBorder="#28253D",this.filterColor="#000000"}updateColors(){this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#28253D"),this.secondaryColor=this.secondaryColor||W(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||W(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||fe(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||fe(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||fe(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||fe(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#FEF9C3",this.noteTextColor=this.noteTextColor||"#28253D",this.secondaryTextColor=this.secondaryTextColor||ct(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||ct(this.tertiaryColor),this.lineColor=this.lineColor||ct(this.background),this.arrowheadColor=this.arrowheadColor||ct(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?g(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.flowContainerStroke=this.flowContainerStroke||this.secondaryBorderColor,this.noteFontWeight=600,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||g(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||ct(this.lineColor),this.rectBkgColor=this.rectBkgColor||(he(this.background)?h(this.background,4):g(this.background,4));let r="#ECECFE",e="#E9E9F1",o=W(r,{h:180,l:5});this.sectionBkgColor=this.sectionBkgColor||o,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||e,this.sectionBkgColor2=this.sectionBkgColor2||r,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||r,this.activeTaskBorderColor=this.activeTaskBorderColor||r,this.activeTaskBkgColor=this.activeTaskBkgColor||h(r,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.compositeTitleBackground="#F9F9FB",this.altBackground="#F9F9FB",this.stateEdgeLabelBackground="#FFFFFF",this.fontWeight=600,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor;for(let s=0;s<this.THEME_COLOR_LIMIT;s++)this["cScale"+s]=this.mainBkg;if(this.darkMode)for(let s=0;s<this.THEME_COLOR_LIMIT;s++)this["cScale"+s]=g(this["cScale"+s],75);else for(let s=0;s<this.THEME_COLOR_LIMIT;s++)this["cScale"+s]=g(this["cScale"+s],25);for(let s=0;s<this.THEME_COLOR_LIMIT;s++)this["cScaleInv"+s]=this["cScaleInv"+s]||ct(this["cScale"+s]);for(let s=0;s<this.THEME_COLOR_LIMIT;s++)if(this.darkMode)this["cScalePeer"+s]=this["cScalePeer"+s]||h(this["cScale"+s],10);else this["cScalePeer"+s]=this["cScalePeer"+s]||g(this["cScale"+s],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let s=0;s<this.THEME_COLOR_LIMIT;s++)this["cScaleLabel"+s]=this["cScaleLabel"+s]||this.scaleLabelColor;let a=this.darkMode?-4:-1;for(let s=0;s<5;s++)this["surface"+s]=this["surface"+s]||W(this.mainBkg,{h:180,s:-15,l:a*(5+s*3)}),this["surfacePeer"+s]=this["surfacePeer"+s]||W(this.mainBkg,{h:180,s:-15,l:a*(8+s*3)});if(this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||r,this.fillType1=this.fillType1||e,this.fillType2=this.fillType2||W(r,{h:64}),this.fillType3=this.fillType3||W(e,{h:64}),this.fillType4=this.fillType4||W(r,{h:-64}),this.fillType5=this.fillType5||W(e,{h:-64}),this.fillType6=this.fillType6||W(r,{h:128}),this.fillType7=this.fillType7||W(e,{h:128}),this.pie1=this.pie1||r,this.pie2=this.pie2||e,this.pie3=this.pie3||o,this.pie4=this.pie4||W(r,{l:-10}),this.pie5=this.pie5||W(e,{l:-10}),this.pie6=this.pie6||W(o,{l:-10}),this.pie7=this.pie7||W(r,{h:60,l:-10}),this.pie8=this.pie8||W(r,{h:-60,l:-10}),this.pie9=this.pie9||W(r,{h:120,l:0}),this.pie10=this.pie10||W(r,{h:60,l:-20}),this.pie11=this.pie11||W(r,{h:-60,l:-20}),this.pie12=this.pie12||W(r,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||r,this.quadrant2Fill=this.quadrant2Fill||W(r,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||W(r,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||W(r,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||W(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||W(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||W(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||he(this.quadrant1Fill)?h(this.quadrant1Fill):g(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,legendTextColor:this.xyChart?.legendTextColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||r,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?g(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.requirementEdgeLabelBackground="#FFFFFF",this.git0=this.git0||r,this.git1=this.git1||e,this.git2=this.git2||o,this.git3=this.git3||W(r,{h:-30}),this.git4=this.git4||W(r,{h:-60}),this.git5=this.git5||W(r,{h:-90}),this.git6=this.git6||W(r,{h:60}),this.git7=this.git7||W(r,{h:120}),this.darkMode)this.git0=h(this.git0,25),this.git1=h(this.git1,25),this.git2=h(this.git2,25),this.git3=h(this.git3,25),this.git4=h(this.git4,25),this.git5=h(this.git5,25),this.git6=h(this.git6,25),this.git7=h(this.git7,25);else this.git0=g(this.git0,25),this.git1=g(this.git1,25),this.git2=g(this.git2,25),this.git3=g(this.git3,25),this.git4=g(this.git4,25),this.git5=g(this.git5,25),this.git6=g(this.git6,25),this.git7=g(this.git7,25);this.gitInv0=this.gitInv0||ct(this.git0),this.gitInv1=this.gitInv1||ct(this.git1),this.gitInv2=this.gitInv2||ct(this.git2),this.gitInv3=this.gitInv3||ct(this.git3),this.gitInv4=this.gitInv4||ct(this.git4),this.gitInv5=this.gitInv5||ct(this.git5),this.gitInv6=this.gitInv6||ct(this.git6),this.gitInv7=this.gitInv7||ct(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.commitLineColor=this.commitLineColor??"#BDBCCC",this.erEdgeLabelBackground="#FFFFFF",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||Wr,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||zr}calculate(r){if(typeof r!=="object"){this.updateColors();return}let e=Object.keys(r);e.forEach((o)=>{this[o]=r[o]}),this.updateColors(),e.forEach((o)=>{this[o]=Or(this[o],r[o])})}},fb=t((r)=>{let e=new ub;return e.calculate(r),e},"getThemeVariables"),db=class{static{t(this,"Theme")}constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=h(this.primaryColor,16),this.tertiaryColor=W(this.primaryColor,{h:-160}),this.primaryBorderColor=ct(this.background),this.secondaryBorderColor=fe(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=fe(this.tertiaryColor,this.darkMode),this.primaryTextColor=ct(this.primaryColor),this.secondaryTextColor=ct(this.secondaryColor),this.tertiaryTextColor=ct(this.tertiaryColor),this.mainBkg="#111113",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=h(ct("#323D47"),10),this.border1="#ccc",this.border2=Oe(255,255,255,0.25),this.arrowheadColor=ct(this.background),this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.labelBackground="#111113",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.radius=12,this.strokeWidth=2,this.noteBkgColor=this.noteBkgColor??"#FEF9C3",this.noteTextColor=this.noteTextColor??"#28253D",this.THEME_COLOR_LIMIT=12,this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.nodeBorder="#FFFFFF",this.stateBorder="#FFFFFF",this.useGradient=!1,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="url(#drop-shadow)",this.nodeShadow=!0,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.clusterBkg="#1E1A2E",this.clusterBorder="#BDBCCC",this.noteBorderColor="#FACC15",this.noteFontWeight=600,this.filterColor="#FFFFFF"}updateColors(){if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#FFFFFF"),this.secondaryColor=this.secondaryColor||W(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||W(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||fe(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||fe(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||fe(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||fe(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#FFFFFF",this.secondaryTextColor=this.secondaryTextColor||ct(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||ct(this.tertiaryColor),this.lineColor=this.lineColor||ct(this.background),this.arrowheadColor=this.arrowheadColor||ct(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.secondBkg=this.secondBkg==="calculated"?h(this.mainBkg,16):this.secondBkg,this.nodeBorder=this.nodeBorder||this.border1,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?g(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.flowContainerStroke=this.flowContainerStroke||this.secondaryBorderColor,this.actorBorder="#FFFFFF",this.signalColor="#FFFFFF",this.labelBoxBorderColor="#BDBCCC",this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||g(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||ct(this.lineColor),this.rectBkgColor=this.rectBkgColor||this.tertiaryColor,this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||h(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||this.secondBkg,this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.compositeBackground="#16141F",this.altBackground="#16141F",this.compositeTitleBackground="#16141F",this.stateEdgeLabelBackground="#16141F",this.fontWeight=600,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||W(this.primaryColor,{h:30}),this.cScale4=this.cScale4||W(this.primaryColor,{h:60}),this.cScale5=this.cScale5||W(this.primaryColor,{h:90}),this.cScale6=this.cScale6||W(this.primaryColor,{h:120}),this.cScale7=this.cScale7||W(this.primaryColor,{h:150}),this.cScale8=this.cScale8||W(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||W(this.primaryColor,{h:270}),this.cScale10=this.cScale10||W(this.primaryColor,{h:300}),this.cScale11=this.cScale11||W(this.primaryColor,{h:330}),this.darkMode)for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScale"+e]=g(this["cScale"+e],75);else for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScale"+e]=g(this["cScale"+e],25);for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScaleInv"+e]=this["cScaleInv"+e]||ct(this["cScale"+e]);for(let e=0;e<this.THEME_COLOR_LIMIT;e++)if(this.darkMode)this["cScalePeer"+e]=this["cScalePeer"+e]||h(this["cScale"+e],10);else this["cScalePeer"+e]=this["cScalePeer"+e]||g(this["cScale"+e],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScaleLabel"+e]=this["cScaleLabel"+e]||this.scaleLabelColor;let r=this.darkMode?-4:-1;for(let e=0;e<5;e++)this["surface"+e]=this["surface"+e]||W(this.mainBkg,{h:180,s:-15,l:r*(5+e*3)}),this["surfacePeer"+e]=this["surfacePeer"+e]||W(this.mainBkg,{h:180,s:-15,l:r*(8+e*3)});if(this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||W(this.primaryColor,{h:64}),this.fillType3=this.fillType3||W(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||W(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||W(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||W(this.primaryColor,{h:128}),this.fillType7=this.fillType7||W(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||W(this.primaryColor,{l:-10}),this.pie5=this.pie5||W(this.secondaryColor,{l:-10}),this.pie6=this.pie6||W(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||W(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||W(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||W(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||W(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||W(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||W(this.primaryColor,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||W(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||W(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||W(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||W(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||W(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||W(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||he(this.quadrant1Fill)?h(this.quadrant1Fill):g(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,legendTextColor:this.xyChart?.legendTextColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?g(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.requirementEdgeLabelBackground="#16141F",this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||W(this.primaryColor,{h:-30}),this.git4=this.git4||W(this.primaryColor,{h:-60}),this.git5=this.git5||W(this.primaryColor,{h:-90}),this.git6=this.git6||W(this.primaryColor,{h:60}),this.git7=this.git7||W(this.primaryColor,{h:120}),this.darkMode)this.git0=h(this.git0,25),this.git1=h(this.git1,25),this.git2=h(this.git2,25),this.git3=h(this.git3,25),this.git4=h(this.git4,25),this.git5=h(this.git5,25),this.git6=h(this.git6,25),this.git7=h(this.git7,25);else this.git0=g(this.git0,25),this.git1=g(this.git1,25),this.git2=g(this.git2,25),this.git3=g(this.git3,25),this.git4=g(this.git4,25),this.git5=g(this.git5,25),this.git6=g(this.git6,25),this.git7=g(this.git7,25);this.gitInv0=this.gitInv0||ct(this.git0),this.gitInv1=this.gitInv1||ct(this.git1),this.gitInv2=this.gitInv2||ct(this.git2),this.gitInv3=this.gitInv3||ct(this.git3),this.gitInv4=this.gitInv4||ct(this.git4),this.gitInv5=this.gitInv5||ct(this.git5),this.gitInv6=this.gitInv6||ct(this.git6),this.gitInv7=this.gitInv7||ct(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.commitLineColor=this.commitLineColor??"#BDBCCC",this.erEdgeLabelBackground="#16141F",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||Wr,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||zr}calculate(r){if(typeof r!=="object"){this.updateColors();return}let e=Object.keys(r);e.forEach((o)=>{this[o]=r[o]}),this.updateColors(),e.forEach((o)=>{this[o]=Or(this[o],r[o])})}},pb=t((r)=>{let e=new db;return e.calculate(r),e},"getThemeVariables"),gb=class{static{t(this,"Theme")}constructor(){this.background="#ffffff",this.primaryColor="#cccccc",this.mainBkg="#ffffff",this.noteBkgColor="#fff5ad",this.noteTextColor="#28253D",this.THEME_COLOR_LIMIT=12,this.radius=12,this.strokeWidth=2,this.primaryBorderColor=fe("#28253D",this.darkMode),this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.nodeBorder="#28253D",this.stateBorder="#28253D",this.useGradient=!1,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="url(#drop-shadow)",this.nodeShadow=!0,this.tertiaryColor="#ffffff",this.clusterBkg="#F9F9FB",this.clusterBorder="#BDBCCC",this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.actorBorder="#28253D",this.noteBorderColor="#FACC15",this.noteFontWeight=600,this.borderColorArray=["#E879F9","#2DD4BF","#FB923C","#22D3EE","#4ADE80","#A78BFA","#F87171","#FACC15","#818CF8","#A3E635 ","#38BDF8","#FB7185"],this.bkgColorArray=["#FDF4FF","#F0FDFA","#FFF7ED","#ECFEFF","#F0FDF4","#F5F3FF","#FEF2F2","#FEFCE8","#EEF2FF","#F7FEE7","#F0F9FF","#FFF1F2"],this.usecaseActorBorder="#A78BFA",this.usecaseActorBkg="#F5F3FF",this.usecaseBorder="#2DD4BF",this.usecaseBkg="#F0FDFA",this.usecaseBoundaryBorder="#BDBCCC",this.usecaseBoundaryBkg="#FAFAFC",this.usecaseIncludeLine="#38BDF8",this.usecaseExtendLine="#FB923C",this.filterColor="#000000"}updateColors(){this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#28253D"),this.secondaryColor=this.secondaryColor||W(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||W(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||fe(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||fe(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||fe(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||fe(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#28253D",this.secondaryTextColor=this.secondaryTextColor||ct(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||ct(this.tertiaryColor),this.lineColor=this.lineColor||ct(this.background),this.arrowheadColor=this.arrowheadColor||ct(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?g(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.flowContainerStroke=this.flowContainerStroke||this.secondaryBorderColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||g(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||ct(this.lineColor),this.rectBkgColor=this.rectBkgColor||(he(this.background)?h(this.background,4):g(this.background,4));let r="#ECECFE",e="#E9E9F1",o=W(r,{h:180,l:5});this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||r,this.activeTaskBorderColor=this.activeTaskBorderColor||r,this.activeTaskBkgColor=this.activeTaskBkgColor||h(r,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateEdgeLabelBackground=this.stateEdgeLabelBackground||"#FFFFFF",this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#F9F9FB",this.compositeTitleBackground=this.compositeTitleBackground||"#F9F9FB",this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||"#f4a8ff",this.cScale1=this.cScale1||"#46ecd5",this.cScale2=this.cScale2||"#ffb86a",this.cScale3=this.cScale3||"#dab2ff",this.cScale4=this.cScale4||"#7bf1a8",this.cScale5=this.cScale5||"#c4b4ff",this.cScale6=this.cScale6||"#ffa2a2",this.cScale7=this.cScale7||"#ffdf20",this.cScale8=this.cScale8||"#a3b3ff",this.cScale9=this.cScale9||"#bbf451",this.cScale10=this.cScale10||"#74d4ff",this.cScale11=this.cScale11||"#ffa1ad",this.sectionBkgColor=this.sectionBkgColor||this.cScale0,this.sectionBkgColor2=this.sectionBkgColor2||this.cScale1,this.altSectionBkgColor=this.altSectionBkgColor||"white";for(let s=0;s<this.THEME_COLOR_LIMIT;s++)this["cScaleInv"+s]=this["cScaleInv"+s]||ct(this["cScale"+s]);for(let s=0;s<this.THEME_COLOR_LIMIT;s++)if(this.darkMode)this["cScalePeer"+s]=this["cScalePeer"+s]||h(this["cScale"+s],10);else this["cScalePeer"+s]=this["cScalePeer"+s]||g(this["cScale"+s],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let s=0;s<this.THEME_COLOR_LIMIT;s++)this["cScaleLabel"+s]=this["cScaleLabel"+s]||this.scaleLabelColor;let a=this.darkMode?-4:-1;for(let s=0;s<5;s++)this["surface"+s]=this["surface"+s]||W(this.mainBkg,{h:180,s:-15,l:a*(5+s*3)}),this["surfacePeer"+s]=this["surfacePeer"+s]||W(this.mainBkg,{h:180,s:-15,l:a*(8+s*3)});this.classText=this.classText||this.textColor;for(let s=0;s<8;s++)this["fillType"+s]=this["fillType"+s]||this.bkgColorArray[s];for(let s=0;s<this.THEME_COLOR_LIMIT;s++)this["pie"+(s+1)]=this["pie"+(s+1)]||this["cScale"+s];this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7";for(let s=0;s<8;s++)this["venn"+(s+1)]=this["venn"+(s+1)]??this.borderColorArray[s%this.borderColorArray.length];if(this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||r,this.quadrant2Fill=this.quadrant2Fill||W(r,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||W(r,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||W(r,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||W(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||W(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||W(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||he(this.quadrant1Fill)?h(this.quadrant1Fill):g(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,legendTextColor:this.xyChart?.legendTextColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||r,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?g(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.requirementEdgeLabelBackground="#FFFFFF",this.git0=this.git0||r,this.git1=this.git1||e,this.git2=this.git2||o,this.git3=this.git3||W(r,{h:-30}),this.git4=this.git4||W(r,{h:-60}),this.git5=this.git5||W(r,{h:-90}),this.git6=this.git6||W(r,{h:60}),this.git7=this.git7||W(r,{h:120}),this.darkMode)this.git0=h(this.git0,25),this.git1=h(this.git1,25),this.git2=h(this.git2,25),this.git3=h(this.git3,25),this.git4=h(this.git4,25),this.git5=h(this.git5,25),this.git6=h(this.git6,25),this.git7=h(this.git7,25);else this.git0=g(this.git0,25),this.git1=g(this.git1,25),this.git2=g(this.git2,25),this.git3=g(this.git3,25),this.git4=g(this.git4,25),this.git5=g(this.git5,25),this.git6=g(this.git6,25),this.git7=g(this.git7,25);this.gitInv0=this.gitInv0||ct(this.git0),this.gitInv1=this.gitInv1||ct(this.git1),this.gitInv2=this.gitInv2||ct(this.git2),this.gitInv3=this.gitInv3||ct(this.git3),this.gitInv4=this.gitInv4||ct(this.git4),this.gitInv5=this.gitInv5||ct(this.git5),this.gitInv6=this.gitInv6||ct(this.git6),this.gitInv7=this.gitInv7||ct(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLineColor=this.commitLineColor??"#BDBCCC",this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.fontWeight=600,this.erEdgeLabelBackground="#FFFFFF",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||Wr,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||zr}calculate(r){if(typeof r!=="object"){this.updateColors();return}let e=Object.keys(r);e.forEach((o)=>{this[o]=r[o]}),this.updateColors(),e.forEach((o)=>{this[o]=Or(this[o],r[o])})}},mb=t((r)=>{let e=new gb;return e.calculate(r),e},"getThemeVariables"),yb=class{static{t(this,"Theme")}constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=h(this.primaryColor,16),this.tertiaryColor=W(this.primaryColor,{h:-160}),this.primaryBorderColor=ct(this.background),this.secondaryBorderColor=fe(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=fe(this.tertiaryColor,this.darkMode),this.primaryTextColor=ct(this.primaryColor),this.secondaryTextColor=ct(this.secondaryColor),this.tertiaryTextColor=ct(this.tertiaryColor),this.mainBkg="#111113",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=h(ct("#323D47"),10),this.border1="#ccc",this.border2=Oe(255,255,255,0.25),this.arrowheadColor=ct(this.background),this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.labelBackground="#111113",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.radius=12,this.strokeWidth=2,this.noteBkgColor=this.noteBkgColor??"#FEF9C3",this.noteTextColor=this.noteTextColor??"#28253D",this.THEME_COLOR_LIMIT=12,this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.nodeBorder="#FFFFFF",this.stateBorder="#FFFFFF",this.useGradient=!1,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="url(#drop-shadow)",this.nodeShadow=!0,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.clusterBkg="#1E1A2E",this.clusterBorder="#BDBCCC",this.noteBorderColor="#FACC15",this.noteFontWeight=600,this.borderColorArray=["#E879F9","#2DD4BF","#FB923C","#22D3EE","#4ADE80","#A78BFA","#F87171","#FACC15","#818CF8","#A3E635 ","#38BDF8","#FB7185"],this.bkgColorArray=[],this.usecaseActorBorder="#A78BFA",this.usecaseBorder="#2DD4BF",this.usecaseBoundaryBorder="#BDBCCC",this.usecaseIncludeLine="#38BDF8",this.usecaseExtendLine="#FB923C",this.filterColor="#FFFFFF"}updateColors(){this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#FFFFFF"),this.secondaryColor=this.secondaryColor||W(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||W(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||fe(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||fe(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||fe(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||fe(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#FFFFFF",this.secondaryTextColor=this.secondaryTextColor||ct(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||ct(this.tertiaryColor),this.lineColor=this.lineColor||ct(this.background),this.arrowheadColor=this.arrowheadColor||ct(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.secondBkg=this.secondBkg==="calculated"?h(this.mainBkg,16):this.secondBkg,this.nodeBorder=this.nodeBorder||this.border1,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?g(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.flowContainerStroke=this.flowContainerStroke||this.secondaryBorderColor,this.actorBorder="#FFFFFF",this.signalColor="#FFFFFF",this.labelBoxBorderColor="#BDBCCC",this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||g(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||ct(this.lineColor),this.rectBkgColor=this.rectBkgColor||this.tertiaryColor,this.rootLabelColor="#FFFFFF",this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||h(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||this.secondBkg,this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateEdgeLabelBackground=this.stateEdgeLabelBackground||"#16141F",this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||"#16141F",this.altBackground=this.altBackground||"#16141F",this.compositeTitleBackground=this.compositeTitleBackground||"#16141F",this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||"#f4a8ff",this.cScale1=this.cScale1||"#46ecd5",this.cScale2=this.cScale2||"#ffb86a",this.cScale3=this.cScale3||"#dab2ff",this.cScale4=this.cScale4||"#7bf1a8",this.cScale5=this.cScale5||"#c4b4ff",this.cScale6=this.cScale6||"#ffa2a2",this.cScale7=this.cScale7||"#ffdf20",this.cScale8=this.cScale8||"#a3b3ff",this.cScale9=this.cScale9||"#bbf451",this.cScale10=this.cScale10||"#74d4ff",this.cScale11=this.cScale11||"#ffa1ad",this.sectionBkgColor=this.sectionBkgColor||this.cScale0,this.sectionBkgColor2=this.sectionBkgColor2||this.cScale1,this.altSectionBkgColor=this.altSectionBkgColor||this.background;for(let o=0;o<this.THEME_COLOR_LIMIT;o++)this["cScaleInv"+o]=this["cScaleInv"+o]||ct(this["cScale"+o]);for(let o=0;o<this.THEME_COLOR_LIMIT;o++)if(this.darkMode)this["cScalePeer"+o]=this["cScalePeer"+o]||h(this["cScale"+o],10);else this["cScalePeer"+o]=this["cScalePeer"+o]||g(this["cScale"+o],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let o=0;o<this.THEME_COLOR_LIMIT;o++)this["cScaleLabel"+o]=g(this["cScale"+o],75);let r=this.darkMode?-4:-1;for(let o=0;o<5;o++)this["surface"+o]=this["surface"+o]||W(this.mainBkg,{h:180,s:-15,l:r*(5+o*3)}),this["surfacePeer"+o]=this["surfacePeer"+o]||W(this.mainBkg,{h:180,s:-15,l:r*(8+o*3)});this.classText=this.classText||this.textColor,["#701a75","#134e4a","#7c2d12","#581c87","#14532d","#4c1d95","#7f1d1d","#713f12"].forEach((o,a)=>{this["fillType"+a]=this["fillType"+a]||o});for(let o=0;o<this.THEME_COLOR_LIMIT;o++)this["pie"+(o+1)]=this["pie"+(o+1)]||this["cScale"+o];this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||"#28253D",this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7";for(let o=0;o<8;o++)this["venn"+(o+1)]=this["venn"+(o+1)]??this.borderColorArray[o%this.borderColorArray.length];if(this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||W(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||W(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||W(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||W(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||W(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||W(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||he(this.quadrant1Fill)?h(this.quadrant1Fill):g(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,legendTextColor:this.xyChart?.legendTextColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?g(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.requirementEdgeLabelBackground="#16141F",this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||W(this.primaryColor,{h:-30}),this.git4=this.git4||W(this.primaryColor,{h:-60}),this.git5=this.git5||W(this.primaryColor,{h:-90}),this.git6=this.git6||W(this.primaryColor,{h:60}),this.git7=this.git7||W(this.primaryColor,{h:120}),this.darkMode)this.git0=h(this.git0,25),this.git1=h(this.git1,25),this.git2=h(this.git2,25),this.git3=h(this.git3,25),this.git4=h(this.git4,25),this.git5=h(this.git5,25),this.git6=h(this.git6,25),this.git7=h(this.git7,25);else this.git0=g(this.git0,25),this.git1=g(this.git1,25),this.git2=g(this.git2,25),this.git3=g(this.git3,25),this.git4=g(this.git4,25),this.git5=g(this.git5,25),this.git6=g(this.git6,25),this.git7=g(this.git7,25);this.gitInv0=this.gitInv0||ct(this.git0),this.gitInv1=this.gitInv1||ct(this.git1),this.gitInv2=this.gitInv2||ct(this.git2),this.gitInv3=this.gitInv3||ct(this.git3),this.gitInv4=this.gitInv4||ct(this.git4),this.gitInv5=this.gitInv5||ct(this.git5),this.gitInv6=this.gitInv6||ct(this.git6),this.gitInv7=this.gitInv7||ct(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.commitLineColor=this.commitLineColor??"#BDBCCC",this.fontWeight=600,this.erEdgeLabelBackground="#16141F",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||Wr,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||zr}calculate(r){if(typeof r!=="object"){this.updateColors();return}let e=Object.keys(r);e.forEach((o)=>{this[o]=r[o]}),this.updateColors(),e.forEach((o)=>{this[o]=Or(this[o],r[o])})}},xb=t((r)=>{let e=new yb;return e.calculate(r),e},"getThemeVariables"),mr={base:{getThemeVariables:JC},dark:{getThemeVariables:eb},default:{getThemeVariables:tt},forest:{getThemeVariables:ob},neutral:{getThemeVariables:ab},neo:{getThemeVariables:lb},"neo-dark":{getThemeVariables:cb},redux:{getThemeVariables:fb},"redux-dark":{getThemeVariables:pb},"redux-color":{getThemeVariables:mb},"redux-dark-color":{getThemeVariables:xb}},qe={flowchart:{useMaxWidth:!0,theme:"redux-color",look:"neo",titleTopMargin:25,subGraphTitleMargin:{top:0,bottom:0},diagramPadding:8,htmlLabels:null,nodeSpacing:50,rankSpacing:50,curve:"basis",padding:15,wrappingWidth:120,minNodeWidth:120,inheritDir:!1},swimlane:{useMaxWidth:!0,theme:"redux-color",look:"neo",layout:"swimlane",lineHops:"arc",ignoreCrossLaneEdges:!0,optimizeRanksByCrossings:!0,automaticLaneOrdering:!1},agentflow:{useMaxWidth:!0,theme:"redux-color",look:"neo",titleTopMargin:25,diagramPadding:8,nodeSpacing:50,rankSpacing:50,wrappingWidth:120,minNodeWidth:120},sequence:{useMaxWidth:!0,theme:"redux-color",look:"neo",hideUnusedParticipants:!1,activationWidth:10,diagramMarginX:50,diagramMarginY:10,actorMargin:50,width:150,height:65,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",mirrorActors:!0,forceMenus:!1,bottomMarginAdj:1,rightAngles:!1,showSequenceNumbers:!1,actorFontSize:14,actorFontFamily:'"Open Sans", sans-serif',actorFontWeight:400,noteFontSize:14,noteFontFamily:'"trebuchet ms", verdana, arial, sans-serif',noteFontWeight:400,noteAlign:"center",messageFontSize:16,messageFontFamily:'"trebuchet ms", verdana, arial, sans-serif',messageFontWeight:400,wrap:!1,wrapPadding:10,labelBoxWidth:50,labelBoxHeight:20},gantt:{useMaxWidth:!0,titleTopMargin:25,barHeight:20,barGap:4,topPadding:50,rightPadding:75,leftPadding:75,gridLineStartPadding:35,fontSize:11,sectionFontSize:11,numberSectionStyles:4,axisFormat:"%Y-%m-%d",topAxis:!1,displayMode:"",weekday:"sunday"},journey:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,maxLabelWidth:360,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"],titleColor:"",titleFontFamily:'"trebuchet ms", verdana, arial, sans-serif',titleFontSize:"4ex"},class:{useMaxWidth:!0,theme:"redux-color",look:"neo",titleTopMargin:25,arrowMarkerAbsolute:!1,dividerMargin:10,padding:5,textHeight:10,htmlLabels:!1,hideEmptyMembersBox:!1,hierarchicalNamespaces:!0},state:{useMaxWidth:!0,theme:"redux-color",look:"neo",layout:"elk",wrappingWidth:120,minNodeWidth:120,titleTopMargin:25,dividerMargin:10,sizeUnit:5,padding:8,textHeight:10,titleShift:-15,noteMargin:10,forkWidth:70,forkHeight:7,miniPadding:2,fontSizeFactor:5.02,fontSize:24,labelHeight:16,edgeLengthFactor:"20",compositTitleSize:35,radius:5},er:{useMaxWidth:!0,theme:"redux-color",look:"neo",titleTopMargin:25,diagramPadding:20,layoutDirection:"TB",minEntityWidth:100,minEntityHeight:75,entityPadding:15,nodeSpacing:140,rankSpacing:80,stroke:"gray",fill:"honeydew",fontSize:12},pie:{useMaxWidth:!0,textPosition:0.75,donutHole:0,legendPosition:"right",highlightSlice:""},quadrantChart:{useMaxWidth:!0,chartWidth:500,chartHeight:500,titleFontSize:20,titlePadding:10,quadrantPadding:5,xAxisLabelPadding:5,yAxisLabelPadding:5,xAxisLabelFontSize:16,yAxisLabelFontSize:16,quadrantLabelFontSize:16,quadrantTextTopPadding:5,pointTextPadding:5,pointLabelFontSize:12,pointRadius:5,xAxisPosition:"top",yAxisPosition:"left",quadrantInternalBorderStrokeWidth:1,quadrantExternalBorderStrokeWidth:2},xyChart:{useMaxWidth:!0,width:700,height:500,titleFontSize:20,titlePadding:10,showDataLabel:!1,showDataLabelOutsideBar:!1,showTitle:!0,showLegend:!0,legendFontSize:14,legendPadding:10,xAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2,labelRotation:0},yAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2,labelRotation:0},chartOrientation:"vertical",plotReservedSpacePercent:50},requirement:{useMaxWidth:!0,theme:"redux-color",look:"neo",rect_fill:"#f9f9f9",text_color:"#333",rect_border_size:"0.5px",rect_border_color:"#bbb",rect_min_width:200,rect_min_height:200,fontSize:14,rect_padding:10,line_height:20},mindmap:{useMaxWidth:!0,colorBy:"branch",padding:10,maxNodeWidth:200,layoutAlgorithm:"cose-bilkent"},ishikawa:{useMaxWidth:!0,diagramPadding:20},kanban:{useMaxWidth:!0,padding:8,sectionWidth:200,ticketBaseUrl:""},timeline:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"],disableMulticolor:!1},gitGraph:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:8,nodeLabel:{width:75,height:100,x:-25,y:0},mainBranchName:"main",mainBranchOrder:0,showCommitLabel:!0,showBranches:!0,rotateCommitLabel:!0,parallelCommits:!1,arrowMarkerAbsolute:!1},c4:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,c4ShapeMargin:50,c4ShapePadding:20,width:216,height:60,boxMargin:10,c4ShapeInRow:4,nextLinePaddingX:0,c4BoundaryInRow:2,personFontSize:14,personFontFamily:'"Open Sans", sans-serif',personFontWeight:"normal",external_personFontSize:14,external_personFontFamily:'"Open Sans", sans-serif',external_personFontWeight:"normal",systemFontSize:14,systemFontFamily:'"Open Sans", sans-serif',systemFontWeight:"normal",external_systemFontSize:14,external_systemFontFamily:'"Open Sans", sans-serif',external_systemFontWeight:"normal",system_dbFontSize:14,system_dbFontFamily:'"Open Sans", sans-serif',system_dbFontWeight:"normal",external_system_dbFontSize:14,external_system_dbFontFamily:'"Open Sans", sans-serif',external_system_dbFontWeight:"normal",system_queueFontSize:14,system_queueFontFamily:'"Open Sans", sans-serif',system_queueFontWeight:"normal",external_system_queueFontSize:14,external_system_queueFontFamily:'"Open Sans", sans-serif',external_system_queueFontWeight:"normal",boundaryFontSize:14,boundaryFontFamily:'"Open Sans", sans-serif',boundaryFontWeight:"normal",messageFontSize:12,messageFontFamily:'"Open Sans", sans-serif',messageFontWeight:"normal",containerFontSize:14,containerFontFamily:'"Open Sans", sans-serif',containerFontWeight:"normal",external_containerFontSize:14,external_containerFontFamily:'"Open Sans", sans-serif',external_containerFontWeight:"normal",container_dbFontSize:14,container_dbFontFamily:'"Open Sans", sans-serif',container_dbFontWeight:"normal",external_container_dbFontSize:14,external_container_dbFontFamily:'"Open Sans", sans-serif',external_container_dbFontWeight:"normal",container_queueFontSize:14,container_queueFontFamily:'"Open Sans", sans-serif',container_queueFontWeight:"normal",external_container_queueFontSize:14,external_container_queueFontFamily:'"Open Sans", sans-serif',external_container_queueFontWeight:"normal",componentFontSize:14,componentFontFamily:'"Open Sans", sans-serif',componentFontWeight:"normal",external_componentFontSize:14,external_componentFontFamily:'"Open Sans", sans-serif',external_componentFontWeight:"normal",component_dbFontSize:14,component_dbFontFamily:'"Open Sans", sans-serif',component_dbFontWeight:"normal",external_component_dbFontSize:14,external_component_dbFontFamily:'"Open Sans", sans-serif',external_component_dbFontWeight:"normal",component_queueFontSize:14,component_queueFontFamily:'"Open Sans", sans-serif',component_queueFontWeight:"normal",external_component_queueFontSize:14,external_component_queueFontFamily:'"Open Sans", sans-serif',external_component_queueFontWeight:"normal",wrap:!0,wrapPadding:10,person_bg_color:"#08427B",person_border_color:"#073B6F",external_person_bg_color:"#686868",external_person_border_color:"#8A8A8A",system_bg_color:"#1168BD",system_border_color:"#3C7FC0",system_db_bg_color:"#1168BD",system_db_border_color:"#3C7FC0",system_queue_bg_color:"#1168BD",system_queue_border_color:"#3C7FC0",external_system_bg_color:"#999999",external_system_border_color:"#8A8A8A",external_system_db_bg_color:"#999999",external_system_db_border_color:"#8A8A8A",external_system_queue_bg_color:"#999999",external_system_queue_border_color:"#8A8A8A",container_bg_color:"#438DD5",container_border_color:"#3C7FC0",container_db_bg_color:"#438DD5",container_db_border_color:"#3C7FC0",container_queue_bg_color:"#438DD5",container_queue_border_color:"#3C7FC0",external_container_bg_color:"#B3B3B3",external_container_border_color:"#A6A6A6",external_container_db_bg_color:"#B3B3B3",external_container_db_border_color:"#A6A6A6",external_container_queue_bg_color:"#B3B3B3",external_container_queue_border_color:"#A6A6A6",component_bg_color:"#85BBF0",component_border_color:"#78A8D8",component_db_bg_color:"#85BBF0",component_db_border_color:"#78A8D8",component_queue_bg_color:"#85BBF0",component_queue_border_color:"#78A8D8",external_component_bg_color:"#CCCCCC",external_component_border_color:"#BFBFBF",external_component_db_bg_color:"#CCCCCC",external_component_db_border_color:"#BFBFBF",external_component_queue_bg_color:"#CCCCCC",external_component_queue_border_color:"#BFBFBF"},sankey:{useMaxWidth:!0,width:600,height:400,linkColor:"gradient",nodeAlignment:"justify",showValues:!0,prefix:"",suffix:"",nodeWidth:10,nodePadding:12,labelStyle:"legacy"},block:{useMaxWidth:!0,padding:8},packet:{useMaxWidth:!0,rowHeight:32,bitWidth:32,bitsPerRow:32,showBits:!0,bitOrder:"ascending",paddingX:5,paddingY:5},treeView:{useMaxWidth:!0,rowIndent:10,paddingX:5,paddingY:5,lineThickness:1,showIcons:!1,defaultIconPack:"",filenameIcons:{},extensionIcons:{}},architecture:{useMaxWidth:!0,padding:40,iconSize:80,fontSize:16,randomize:!1,nodeSeparation:75,idealEdgeLengthMultiplier:1.5,edgeElasticity:0.45,numIter:2500,seed:1},eventmodeling:{useMaxWidth:!0,padding:30,rowHeight:32},radar:{useMaxWidth:!0,width:600,height:600,marginTop:50,marginRight:50,marginBottom:50,marginLeft:50,axisScaleFactor:1,axisLabelFactor:1.05,curveTension:0.17},usecase:{useMaxWidth:!0,theme:"redux-color",look:"neo",wrappingWidth:120,minNodeWidth:120,actorFontSize:14,actorFontFamily:'"Open Sans", sans-serif',actorFontWeight:"normal",usecaseFontSize:12,usecaseFontFamily:'"Open Sans", sans-serif',usecaseFontWeight:"normal",nodeSpacing:50,rankSpacing:50,diagramPadding:20,colorScheme:"role"},venn:{useMaxWidth:!0,theme:"redux-color",look:"neo",width:800,height:450,padding:8,useDebugLayout:!1},cynefin:{useMaxWidth:!0,width:800,height:600,padding:40,showDomainDescriptions:!0,boundaryAmplitude:8,seed:0},theme:"default",look:"classic",handDrawnSeed:0,layout:"elk",maxTextSize:50000,maxEdges:500,darkMode:!1,fontFamily:'"trebuchet ms", verdana, arial, sans-serif;',logLevel:5,securityLevel:"strict",startOnLoad:!0,arrowMarkerAbsolute:!1,secure:["secure","securityLevel","startOnLoad","maxTextSize","suppressErrorRendering","maxEdges"],legacyMathML:!1,forceLegacyMathML:!1,deterministicIds:!1,fontSize:16,markdownAutoWrap:!0,suppressErrorRendering:!1},fp={...qe,deterministicIDSeed:void 0,elk:{mergeEdges:!1,straightenEdges:!0,lineHops:!0,preset:"default",nodePlacementStrategy:void 0,layeringStrategy:void 0,cycleBreakingStrategy:void 0,layeringLayerBound:4,nodePlacementAlignment:void 0,forceNodeModelOrder:!1,considerModelOrder:"NODES_AND_EDGES",keepEntryNodeOnTop:!1,orientFeedbackEdges:!0},themeCSS:void 0,themeVariables:mr.default.getThemeVariables(),sequence:{...qe.sequence,messageFont:t(function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},"messageFont"),noteFont:t(function(){return{fontFamily:this.noteFontFamily,fontSize:this.noteFontSize,fontWeight:this.noteFontWeight}},"noteFont"),actorFont:t(function(){return{fontFamily:this.actorFontFamily,fontSize:this.actorFontSize,fontWeight:this.actorFontWeight}},"actorFont")},class:{theme:qe.class?.theme,look:qe.class?.look,layout:qe.class?.layout,hideEmptyMembersBox:!1,hierarchicalNamespaces:!0},gantt:{...qe.gantt,tickInterval:void 0,useWidth:void 0},c4:{...qe.c4,useWidth:void 0,personFont:t(function(){return{fontFamily:this.personFontFamily,fontSize:this.personFontSize,fontWeight:this.personFontWeight}},"personFont"),flowchart:{...qe.flowchart,inheritDir:!1},external_personFont:t(function(){return{fontFamily:this.external_personFontFamily,fontSize:this.external_personFontSize,fontWeight:this.external_personFontWeight}},"external_personFont"),systemFont:t(function(){return{fontFamily:this.systemFontFamily,fontSize:this.systemFontSize,fontWeight:this.systemFontWeight}},"systemFont"),external_systemFont:t(function(){return{fontFamily:this.external_systemFontFamily,fontSize:this.external_systemFontSize,fontWeight:this.external_systemFontWeight}},"external_systemFont"),system_dbFont:t(function(){return{fontFamily:this.system_dbFontFamily,fontSize:this.system_dbFontSize,fontWeight:this.system_dbFontWeight}},"system_dbFont"),external_system_dbFont:t(function(){return{fontFamily:this.external_system_dbFontFamily,fontSize:this.external_system_dbFontSize,fontWeight:this.external_system_dbFontWeight}},"external_system_dbFont"),system_queueFont:t(function(){return{fontFamily:this.system_queueFontFamily,fontSize:this.system_queueFontSize,fontWeight:this.system_queueFontWeight}},"system_queueFont"),external_system_queueFont:t(function(){return{fontFamily:this.external_system_queueFontFamily,fontSize:this.external_system_queueFontSize,fontWeight:this.external_system_queueFontWeight}},"external_system_queueFont"),containerFont:t(function(){return{fontFamily:this.containerFontFamily,fontSize:this.containerFontSize,fontWeight:this.containerFontWeight}},"containerFont"),external_containerFont:t(function(){return{fontFamily:this.external_containerFontFamily,fontSize:this.external_containerFontSize,fontWeight:this.external_containerFontWeight}},"external_containerFont"),container_dbFont:t(function(){return{fontFamily:this.container_dbFontFamily,fontSize:this.container_dbFontSize,fontWeight:this.container_dbFontWeight}},"container_dbFont"),external_container_dbFont:t(function(){return{fontFamily:this.external_container_dbFontFamily,fontSize:this.external_container_dbFontSize,fontWeight:this.external_container_dbFontWeight}},"external_container_dbFont"),container_queueFont:t(function(){return{fontFamily:this.container_queueFontFamily,fontSize:this.container_queueFontSize,fontWeight:this.container_queueFontWeight}},"container_queueFont"),external_container_queueFont:t(function(){return{fontFamily:this.external_container_queueFontFamily,fontSize:this.external_container_queueFontSize,fontWeight:this.external_container_queueFontWeight}},"external_container_queueFont"),componentFont:t(function(){return{fontFamily:this.componentFontFamily,fontSize:this.componentFontSize,fontWeight:this.componentFontWeight}},"componentFont"),external_componentFont:t(function(){return{fontFamily:this.external_componentFontFamily,fontSize:this.external_componentFontSize,fontWeight:this.external_componentFontWeight}},"external_componentFont"),component_dbFont:t(function(){return{fontFamily:this.component_dbFontFamily,fontSize:this.component_dbFontSize,fontWeight:this.component_dbFontWeight}},"component_dbFont"),external_component_dbFont:t(function(){return{fontFamily:this.external_component_dbFontFamily,fontSize:this.external_component_dbFontSize,fontWeight:this.external_component_dbFontWeight}},"external_component_dbFont"),component_queueFont:t(function(){return{fontFamily:this.component_queueFontFamily,fontSize:this.component_queueFontSize,fontWeight:this.component_queueFontWeight}},"component_queueFont"),external_component_queueFont:t(function(){return{fontFamily:this.external_component_queueFontFamily,fontSize:this.external_component_queueFontSize,fontWeight:this.external_component_queueFontWeight}},"external_component_queueFont"),boundaryFont:t(function(){return{fontFamily:this.boundaryFontFamily,fontSize:this.boundaryFontSize,fontWeight:this.boundaryFontWeight}},"boundaryFont"),messageFont:t(function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},"messageFont")},pie:{...qe.pie,useWidth:984},xyChart:{...qe.xyChart,useWidth:void 0},requirement:{...qe.requirement,useWidth:void 0},packet:{...qe.packet},eventmodeling:{...qe.eventmodeling},treeView:{...qe.treeView,useWidth:void 0},radar:{...qe.radar},usecase:{...qe.usecase},railroad:{...qe.railroad,fontSize:void 0,fontFamily:void 0,terminalFill:void 0,terminalStroke:void 0,terminalTextColor:void 0,nonTerminalFill:void 0,nonTerminalStroke:void 0,nonTerminalTextColor:void 0,lineColor:void 0,markerFill:void 0,commentFill:void 0,commentStroke:void 0,commentTextColor:void 0,specialFill:void 0,specialStroke:void 0,ruleNameColor:void 0},ishikawa:{...qe.ishikawa},sankey:{...qe.sankey,nodeColors:void 0},treemap:{useMaxWidth:!0,padding:10,diagramPadding:8,showValues:!0,nodeWidth:100,nodeHeight:40,borderWidth:1,valueFontSize:12,labelFontSize:14,valueFormat:","},venn:{...qe.venn},cynefin:{...qe.cynefin}},dp=t((r,e="")=>Object.keys(r).reduce((o,a)=>{if(Array.isArray(r[a]))return o;else if(typeof r[a]==="object"&&r[a]!==null)return[...o,e+a,...dp(r[a],"")];return[...o,e+a]},[]),"keyify"),Cb=new Set(dp(fp,"")),z=fp,bb={"flowchart-v2":"flowchart","flowchart-elk":"flowchart",classDiagram:"class",stateDiagram:"state",xychart:"xyChart",railroadAbnf:"railroad",railroadEbnf:"railroad",railroadPeg:"railroad"},kb=t((r)=>bb[r]??r,"getDiagramConfigKey"),wb={nodeColors:/^#[\da-f]{3,8}$|^rgb\([\d\s%,.]+\)$|^hsl\([\d\s%,.]+\)$|^[a-z]+$/i,filenameIcons:/^[\w-]+(?::[\w-]+)?$/,extensionIcons:/^[\w-]+(?::[\w-]+)?$/},Sb=t((r,e)=>{for(let o of Object.keys(r)){let a=r[o];if(o.startsWith("__")||o.includes("proto")||o.includes("constr")||typeof a!=="string"||!e.test(a))i.debug("sanitize deleting dictionary entry:",o,a),delete r[o]}},"sanitizeDictionaryConfig"),Ps=t((r)=>{if(i.debug("sanitizeDirective called with",r),typeof r!=="object"||r==null)return;if(Array.isArray(r)){r.forEach((e)=>Ps(e));return}for(let e of Object.keys(r)){if(i.debug("Checking key",e),e.startsWith("__")||e.includes("proto")||e.includes("constr")||!Cb.has(e)||r[e]==null){i.debug("sanitize deleting key: ",e),delete r[e];continue}if(typeof r[e]==="object"){let a=wb[e];if(a)Sb(r[e],a);else i.debug("sanitizing object",e),Ps(r[e]);continue}let o=["themeCSS","fontFamily","altFontFamily"];for(let a of o)if(e.includes(a))i.debug("sanitizing css option",e),r[e]=nc(r[e])}if(r.themeVariables)for(let e of Object.keys(r.themeVariables)){let o=r.themeVariables[e];if(o?.match&&!o.match(/^[\d "#%(),.;A-Za-z]+$/))r.themeVariables[e]=""}i.debug("After sanitization",r)},"sanitizeDirective"),nc=t((r)=>{let e=0,o=0;for(let a of r){if(e<o)return"{ /* ERROR: Unbalanced CSS */ }";if(a==="{")e++;else if(a==="}")o++}if(e!==o)return"{ /* ERROR: Unbalanced CSS */ }";return r},"sanitizeCss"),Sr=Object.freeze(z),Tb=["theme","look","layout"],_b=new Set(["classic","handDrawn","neo"]),Bb=t((r,e)=>{if(r==="theme")return e==="null"||Object.hasOwn(mr,e);return r!=="look"||_b.has(e)},"isUsableAppearance"),vb=t((r,e,o)=>{if(!r)return;return[r[e]?.[o],r[o]].find((s)=>s!==void 0&&Bb(o,s))},"readAppearance"),gn=t((r)=>r===!1||["false","null","0"].includes(String(r).trim().toLowerCase())?!1:!0,"evaluate"),or=Ee({},Sr),un,fn={},wi=[],$s=Ee({},Sr),Ds,Lb=t((r,e)=>{if(!Ds)return;let o=[e,...[...wi].reverse(),fn,Sr],a=r[Ds];for(let s of Tb)for(let n of o){let c=vb(n,Ds,s);if(c===void 0)continue;if(r[s]=c,a?.[s]!==void 0)a[s]=c;break}},"resolveAppearance"),wo=t((r,e)=>{let o=Ee({},r),a={};for(let n of e)pp(n),a=Ee(a,n);if(o=Ee(o,a),Lb(o,a),(Boolean(a.theme)||o.theme!==r.theme)&&o.theme&&Object.hasOwn(mr,o.theme)){let n=Ee({},un),c=Ee(n.themeVariables||{},a.themeVariables);o.themeVariables=mr[o.theme].getThemeVariables(c)}return $s=o,Ab($s),$s},"updateCurrentConfig"),Io=t((r)=>{Ds=r===void 0?void 0:kb(r),wo(or,wi)},"setDiagramConfigScope"),Mc=t((r)=>{if(or=Ee({},Sr),or=Ee(or,r),fn=Ee({},r),r.theme&&Object.hasOwn(mr,r.theme))or.themeVariables=mr[r.theme].getThemeVariables(r.themeVariables);return wo(or,wi),or},"setSiteConfig"),Rc=t((r)=>{un=Ee({},r)},"saveConfigFromInitialize"),Pc=t((r)=>(or=Ee(or,r),fn=Ee(fn,r),wo(or,wi),or),"updateSiteConfig"),rc=t(()=>Ee({},or),"getSiteConfig"),ac=t((r)=>(wo($s,[r]),A()),"setConfig"),A=t(()=>Ee({},$s),"getConfig"),pp=t((r)=>{if(!r)return;["secure",...or.secure??[]].forEach((e)=>{if(Object.hasOwn(r,e))i.debug(`Denied attempt to modify a secure key ${e}`,r[e]),delete r[e]}),Object.keys(r).forEach((e)=>{if(e.startsWith("__"))delete r[e]}),Object.keys(r).forEach((e)=>{if(typeof r[e]==="string"&&(r[e].includes("<")||r[e].includes(">")||r[e].includes("url(data:")))delete r[e];if(typeof r[e]==="object")pp(r[e])})},"sanitize"),Ic=t((r)=>{if(Ps(r),r.fontFamily&&!r.themeVariables?.fontFamily)r.themeVariables={...r.themeVariables,fontFamily:r.fontFamily};wi.push(r),wo(or,wi)},"addDirective"),Ui=t((r=or)=>{wi=[],Ds=void 0,wo(r,wi)},"reset"),Fb={LAZY_LOAD_DEPRECATED:"The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead.",FLOWCHART_HTML_LABELS_DEPRECATED:"flowchart.htmlLabels is deprecated. Please use global htmlLabels instead."},np={},gp=t((r)=>{if(np[r])return;i.warn(Fb[r]),np[r]=!0},"issueWarning"),Ab=t((r)=>{if(!r)return;if(r.lazyLoadedDiagrams||r.loadExternalDiagramsAtStartup)gp("LAZY_LOAD_DEPRECATED")},"checkConfig"),Dc=t(()=>{let r={};if(un)r=Ee(r,un);for(let e of wi)r=Ee(r,e);return r},"getUserDefinedConfig"),nt=t((r)=>{if(r.flowchart?.htmlLabels!=null)gp("FLOWCHART_HTML_LABELS_DEPRECATED");return gn(r.htmlLabels??r.flowchart?.htmlLabels??!0)},"getEffectiveHtmlLabels"),va=/<\/?br\s*\/?>/gi,Mb=new RegExp(va.source,"i"),Eb=t((r)=>{if(!r)return[""];return xp(r).replace(/\\n/g,"#br#").split("#br#")},"getRows"),Ob=(()=>{let r=!1;return()=>{if(!r)mp(),r=!0}})();function mp(){pt.addHook("beforeSanitizeAttributes",(e)=>{if(e.tagName==="A"&&e.hasAttribute("target"))e.setAttribute("data-temp-href-target",e.getAttribute("target")??"")}),pt.addHook("afterSanitizeAttributes",(e)=>{if(e.tagName==="A"&&e.hasAttribute("data-temp-href-target")){if(e.setAttribute("target",e.getAttribute("data-temp-href-target")??""),e.removeAttribute("data-temp-href-target"),e.getAttribute("target")==="_blank")e.setAttribute("rel","noopener")}})}t(mp,"setupDompurifyHooks");var yp=t((r)=>(Ob(),pt.sanitize(r)),"removeScript"),lp=t((r,e)=>{if(nt(e)){let o=e.securityLevel;if(o==="antiscript"||o==="strict"||o==="sandbox")r=yp(r);else if(o!=="loose")r=xp(r),r=r.replace(/</g,"&lt;").replace(/>/g,"&gt;"),r=r.replace(/=/g,"&equals;"),r=Pb(r)}return r},"sanitizeMore"),G=t((r,e)=>{if(!r)return r;if(e.dompurifyConfig)r=pt.sanitize(lp(r,e),e.dompurifyConfig).toString();else r=pt.sanitize(lp(r,e),{FORBID_TAGS:["style"]}).toString();return r},"sanitizeText"),Ib=t((r,e)=>{if(typeof r==="string")return G(r,e);return r.flat().map((o)=>G(o,e))},"sanitizeTextOrArray"),$b=t((r)=>Mb.test(r),"hasBreaks"),Db=t((r)=>r.split(va),"splitBreaks"),Pb=t((r)=>r.replace(/#br#/g,"<br/>"),"placeholderToBreak"),xp=t((r)=>r.replace(va,"#br#"),"breakToPlaceholder"),ic=t((r)=>{let e="";if(r)e=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,e=CSS.escape(e);return e},"getUrl"),Rb=t(function(...r){let e=r.filter((o)=>!isNaN(o));return Math.max(...e)},"getMax"),qb=t(function(...r){let e=r.filter((o)=>!isNaN(o));return Math.min(...e)},"getMin"),fr=t(function(r){let e=r.split(/(,)/),o=[];for(let a=0;a<e.length;a++){let s=e[a];if(s===","&&a>0&&a+1<e.length){let n=e[a-1],c=e[a+1];if(Nb(n,c))s=n+","+c,a++,o.pop()}o.push(Wb(s))}return o.join("")},"parseGenericTypes"),ih=t((r,e)=>Math.max(0,r.split(e).length-1),"countOccurrence"),Nb=t((r,e)=>{let o=ih(r,"~"),a=ih(e,"~");return o===1&&a===1},"shouldCombineSets"),Wb=t((r)=>{let e=ih(r,"~"),o=!1;if(e<=1)return r;if(e%2!==0&&r.startsWith("~"))r=r.substring(1),o=!0;let a=[...r],s=a.indexOf("~"),n=a.lastIndexOf("~");while(s!==-1&&n!==-1&&s!==n)a[s]="<",a[n]=">",s=a.indexOf("~"),n=a.lastIndexOf("~");if(o)a.unshift("~");return a.join("")},"processSet"),hp=t(()=>window.MathMLElement!==void 0,"isMathMLSupported"),ln=/\$\$(.*?)\$\$/g,He=t((r)=>(r.match(ln)?.length??0)>0,"hasKatex"),ai=t(async(r,e)=>{let o=document.createElement("div");o.innerHTML=await ii(r,e),o.id="katex-temp",o.style.visibility="hidden",o.style.position="absolute",o.style.top="0",document.querySelector("body")?.insertAdjacentElement("beforeend",o);let s={width:o.clientWidth,height:o.clientHeight};return o.remove(),s},"calculateMathMLDimensions"),zb=t(async(r,e)=>{if(!He(r))return r;if(!(hp()||e.legacyMathML||e.forceLegacyMathML))return r.replace(ln,"MathML is unsupported in this environment.");{let{default:o}=await (S("nj0cv1cq"),import("./chunk-nj0cv1cq.js")),a=e.forceLegacyMathML||!hp()&&e.legacyMathML?"htmlAndMathml":"mathml";return r.split(va).map((s)=>He(s)?`<div style="display: flex; align-items: center; justify-content: center; white-space: nowrap;">${s}</div>`:`<div>${s}</div>`).join("").replace(ln,(s,n)=>o.renderToString(n,{throwOnError:!0,displayMode:!0,output:a}).replace(/\n/g," ").replace(/<annotation.*<\/annotation>/g,""))}return r.replace(ln,"Katex is not supported in @mermaid-js/tiny. Please use the full mermaid library.")},"renderKatexUnsanitized"),ii=t(async(r,e)=>G(await zb(r,e),e),"renderKatexSanitized"),C={getRows:Eb,sanitizeText:G,sanitizeTextOrArray:Ib,hasBreaks:$b,splitBreaks:Db,lineBreakRegex:va,removeScript:yp,getUrl:ic,evaluate:gn,getMax:Rb,getMin:qb},Hb=t(function(r,e){for(let o of e)r.attr(o[0],o[1])},"d3Attrs"),Yb=t(function(r,e,o){let a=new Map;if(o)a.set("width","100%"),a.set("style",`max-width: ${e}px;`);else a.set("height",r),a.set("width",e);return a},"calculateSvgSizeAttrs"),Y=t(function(r,e,o,a){let s=Yb(e,o,a);Hb(r,s)},"configureSvgSize"),vn=t(function(r,e,o,a){let s=e.node().getBBox(),{width:n,height:c}=s;i.info(`SVG bounds: ${n}x${c}`,s);let l=0,f=0;i.info(`Graph bounds: ${l}x${f}`,r),l=n+o*2,f=c+o*2,i.info(`Calculated bounds: ${l}x${f}`),Y(e,f,l,a);let p=`${s.x-o} ${s.y-o} ${s.width+2*o} ${s.height+2*o}`;e.attr("viewBox",p)},"setupGraphViewbox"),hn={};function Do(r){return[...r.cssRules].map((e)=>e.cssText).join(`
7
+ `)}t(Do,"cssStyleSheetToString");var Ub=t((r,e,o,a)=>{let s="";if(r in hn&&hn[r])s=hn[r]({...o,svgId:a});else i.warn(`No theme found for ${r}`);return`& {
8
+ font-family: ${o.fontFamily};
9
+ font-size: ${o.fontSize};
10
+ fill: ${o.textColor}
11
+ }
12
+ @keyframes edge-animation-frame {
13
+ from {
14
+ stroke-dashoffset: 0;
15
+ }
16
+ }
17
+ @keyframes dash {
18
+ to {
19
+ stroke-dashoffset: 0;
20
+ }
21
+ }
22
+ & .edge-animation-slow {
23
+ stroke-dasharray: 9,5 !important;
24
+ stroke-dashoffset: 900;
25
+ animation: dash 50s linear infinite;
26
+ stroke-linecap: round;
27
+ }
28
+ & .edge-animation-fast {
29
+ stroke-dasharray: 9,5 !important;
30
+ stroke-dashoffset: 900;
31
+ animation: dash 20s linear infinite;
32
+ stroke-linecap: round;
33
+ }
34
+ /* Classes common for multiple diagrams */
35
+
36
+ & .error-icon {
37
+ fill: ${o.errorBkgColor};
38
+ }
39
+ & .error-text {
40
+ fill: ${o.errorTextColor};
41
+ stroke: ${o.errorTextColor};
42
+ }
43
+
44
+ & .edge-thickness-normal {
45
+ stroke-width: ${o.strokeWidth??1}px;
46
+ }
47
+ & .edge-thickness-thick {
48
+ stroke-width: 3.5px
49
+ }
50
+ & .edge-pattern-solid {
51
+ stroke-dasharray: 0;
52
+ }
53
+ & .edge-thickness-invisible {
54
+ stroke-width: 0;
55
+ fill: none;
56
+ }
57
+ & .edge-pattern-dashed{
58
+ stroke-dasharray: 3;
59
+ }
60
+ .edge-pattern-dotted {
61
+ stroke-dasharray: 2;
62
+ }
63
+
64
+ & .marker {
65
+ fill: ${o.lineColor};
66
+ stroke: ${o.lineColor};
67
+ }
68
+ & .marker.cross {
69
+ stroke: ${o.lineColor};
70
+ }
71
+
72
+ & svg {
73
+ font-family: ${o.fontFamily};
74
+ font-size: ${o.fontSize};
75
+ }
76
+ & p {
77
+ margin: 0
78
+ }
79
+
80
+ ${s}
81
+ .node .neo-node {
82
+ stroke: ${o.nodeBorder};
83
+ }
84
+
85
+ [data-look="neo"].node rect, [data-look="neo"].cluster rect, [data-look="neo"].node polygon {
86
+ stroke: ${o.useGradient?"url("+a+"-gradient)":o.nodeBorder};
87
+ filter: ${o.dropShadow?o.dropShadow.replace("url(#drop-shadow)",`url(${a}-drop-shadow)`):"none"};
88
+ }
89
+ [data-look="neo"].swimlane.cluster rect {
90
+ filter: none;
91
+ }
92
+
93
+
94
+ [data-look="neo"].node path {
95
+ stroke: ${o.useGradient?"url("+a+"-gradient)":o.nodeBorder};
96
+ stroke-width: ${o.strokeWidth??1}px;
97
+ }
98
+
99
+ [data-look="neo"].node .outer-path {
100
+ filter: ${o.dropShadow?o.dropShadow.replace("url(#drop-shadow)",`url(${a}-drop-shadow)`):"none"};
101
+ }
102
+
103
+ [data-look="neo"].node .neo-line path {
104
+ stroke: ${o.nodeBorder};
105
+ filter: none;
106
+ }
107
+
108
+ [data-look="neo"].node circle{
109
+ stroke: ${o.useGradient?"url("+a+"-gradient)":o.nodeBorder};
110
+ filter: ${o.dropShadow?o.dropShadow.replace("url(#drop-shadow)",`url(${a}-drop-shadow)`):"none"};
111
+ }
112
+
113
+ [data-look="neo"].node circle .state-start{
114
+ fill: #000000;
115
+ }
116
+
117
+ [data-look="neo"].icon-shape .icon {
118
+ fill: ${o.useGradient?"url("+a+"-gradient)":o.nodeBorder};
119
+ filter: ${o.dropShadow?o.dropShadow.replace("url(#drop-shadow)",`url(${a}-drop-shadow)`):"none"};
120
+ }
121
+
122
+ [data-look="neo"].icon-shape .icon-neo path {
123
+ stroke: ${o.useGradient?"url("+a+"-gradient)":o.nodeBorder};
124
+ filter: ${o.dropShadow?o.dropShadow.replace("url(#drop-shadow)",`url(${a}-drop-shadow)`):"none"};
125
+ }
126
+
127
+ ${e}
128
+ `},"getStyles"),jb=t((r,e)=>{if(e!==void 0)hn[r]=e},"addStylesForDiagram"),Oc=Ub,Oo={};dr(Oo,{clear:()=>N,getAccDescription:()=>I,getAccTitle:()=>P,getDiagramTitle:()=>D,setAccDescription:()=>R,setAccTitle:()=>M,setDiagramTitle:()=>O});var oh="",sh="",ah="",nh=t((r)=>G(r,A()),"sanitizeText"),N=t(()=>{oh="",ah="",sh=""},"clear"),M=t((r)=>{oh=nh(r).replace(/^\s+/g,"")},"setAccTitle"),P=t(()=>oh,"getAccTitle"),R=t((r)=>{ah=nh(r).replace(/\n\s+/g,`
129
+ `)},"setAccDescription"),I=t(()=>ah,"getAccDescription"),O=t((r)=>{sh=nh(r)},"setDiagramTitle"),D=t(()=>sh,"getDiagramTitle"),cp=i,Gb=Hi,d=A,Ar=ac,ea=Sr,pn=t((r)=>G(r,d()),"sanitizeText"),oi=vn,Xb=t(()=>Oo,"getCommonDb"),dn={},ji=t((r,e,o)=>{if(dn[r])cp.warn(`Diagram with id ${r} already registered. Overwriting.`);if(dn[r]=e,o)up(r,o);jb(r,e.styles),e.injectUtils?.(cp,Gb,d,pn,oi,Xb(),()=>{})},"registerDiagram"),$o=t((r)=>{if(r in dn)return dn[r];throw new Vb(r)},"getDiagram"),Vb=class extends Error{static{t(this,"DiagramNotFoundError")}constructor(r){super(`Diagram ${r} not found.`)}};var Kb={value:()=>{}};function bp(){for(var r=0,e=arguments.length,o={},a;r<e;++r){if(!(a=arguments[r]+"")||a in o||/[\s.]/.test(a))throw Error("illegal type: "+a);o[a]=[]}return new mn(o)}function mn(r){this._=r}function Zb(r,e){return r.trim().split(/^|\s+/).map(function(o){var a="",s=o.indexOf(".");if(s>=0)a=o.slice(s+1),o=o.slice(0,s);if(o&&!e.hasOwnProperty(o))throw Error("unknown type: "+o);return{type:o,name:a}})}mn.prototype=bp.prototype={constructor:mn,on:function(r,e){var o=this._,a=Zb(r+"",o),s,n=-1,c=a.length;if(arguments.length<2){while(++n<c)if((s=(r=a[n]).type)&&(s=Qb(o[s],r.name)))return s;return}if(e!=null&&typeof e!=="function")throw Error("invalid callback: "+e);while(++n<c)if(s=(r=a[n]).type)o[s]=Cp(o[s],r.name,e);else if(e==null)for(s in o)o[s]=Cp(o[s],r.name,null);return this},copy:function(){var r={},e=this._;for(var o in e)r[o]=e[o].slice();return new mn(r)},call:function(r,e){if((s=arguments.length-2)>0)for(var o=Array(s),a=0,s,n;a<s;++a)o[a]=arguments[a+2];if(!this._.hasOwnProperty(r))throw Error("unknown type: "+r);for(n=this._[r],a=0,s=n.length;a<s;++a)n[a].value.apply(e,o)},apply:function(r,e,o){if(!this._.hasOwnProperty(r))throw Error("unknown type: "+r);for(var a=this._[r],s=0,n=a.length;s<n;++s)a[s].value.apply(e,o)}};function Qb(r,e){for(var o=0,a=r.length,s;o<a;++o)if((s=r[o]).name===e)return s.value}function Cp(r,e,o){for(var a=0,s=r.length;a<s;++a)if(r[a].name===e){r[a]=Kb,r=r.slice(0,a).concat(r.slice(a+1));break}if(o!=null)r.push({name:e,value:o});return r}var lh=bp;var xn="http://www.w3.org/1999/xhtml",hh={svg:"http://www.w3.org/2000/svg",xhtml:xn,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Hr(r){var e=r+="",o=e.indexOf(":");if(o>=0&&(e=r.slice(0,o))!=="xmlns")r=r.slice(o+1);return hh.hasOwnProperty(e)?{space:hh[e],local:r}:r}function Jb(r){return function(){var e=this.ownerDocument,o=this.namespaceURI;return o===xn&&e.documentElement.namespaceURI===xn?e.createElement(r):e.createElementNS(o,r)}}function tk(r){return function(){return this.ownerDocument.createElementNS(r.space,r.local)}}function Rs(r){var e=Hr(r);return(e.local?tk:Jb)(e)}function ek(){}function Ri(r){return r==null?ek:function(){return this.querySelector(r)}}function ch(r){if(typeof r!=="function")r=Ri(r);for(var e=this._groups,o=e.length,a=Array(o),s=0;s<o;++s)for(var n=e[s],c=n.length,l=a[s]=Array(c),f,p,u=0;u<c;++u)if((f=n[u])&&(p=r.call(f,f.__data__,u,n))){if("__data__"in f)p.__data__=f.__data__;l[u]=p}return new Me(a,this._parents)}function uh(r){return r==null?[]:Array.isArray(r)?r:Array.from(r)}function rk(){return[]}function So(r){return r==null?rk:function(){return this.querySelectorAll(r)}}function ik(r){return function(){return uh(r.apply(this,arguments))}}function fh(r){if(typeof r==="function")r=ik(r);else r=So(r);for(var e=this._groups,o=e.length,a=[],s=[],n=0;n<o;++n)for(var c=e[n],l=c.length,f,p=0;p<l;++p)if(f=c[p])a.push(r.call(f,f.__data__,p,c)),s.push(f);return new Me(a,s)}function To(r){return function(){return this.matches(r)}}function Cn(r){return function(e){return e.matches(r)}}var ok=Array.prototype.find;function sk(r){return function(){return ok.call(this.children,r)}}function ak(){return this.firstElementChild}function dh(r){return this.select(r==null?ak:sk(typeof r==="function"?r:Cn(r)))}var nk=Array.prototype.filter;function lk(){return Array.from(this.children)}function hk(r){return function(){return nk.call(this.children,r)}}function ph(r){return this.selectAll(r==null?lk:hk(typeof r==="function"?r:Cn(r)))}function gh(r){if(typeof r!=="function")r=To(r);for(var e=this._groups,o=e.length,a=Array(o),s=0;s<o;++s)for(var n=e[s],c=n.length,l=a[s]=[],f,p=0;p<c;++p)if((f=n[p])&&r.call(f,f.__data__,p,n))l.push(f);return new Me(a,this._parents)}function qs(r){return Array(r.length)}function mh(){return new Me(this._enter||this._groups.map(qs),this._parents)}function Ns(r,e){this.ownerDocument=r.ownerDocument,this.namespaceURI=r.namespaceURI,this._next=null,this._parent=r,this.__data__=e}Ns.prototype={constructor:Ns,appendChild:function(r){return this._parent.insertBefore(r,this._next)},insertBefore:function(r,e){return this._parent.insertBefore(r,e)},querySelector:function(r){return this._parent.querySelector(r)},querySelectorAll:function(r){return this._parent.querySelectorAll(r)}};function yh(r){return function(){return r}}function ck(r,e,o,a,s,n){var c=0,l,f=e.length,p=n.length;for(;c<p;++c)if(l=e[c])l.__data__=n[c],a[c]=l;else o[c]=new Ns(r,n[c]);for(;c<f;++c)if(l=e[c])s[c]=l}function uk(r,e,o,a,s,n,c){var l,f,p=new Map,u=e.length,m=n.length,x=Array(u),w;for(l=0;l<u;++l)if(f=e[l])if(x[l]=w=c.call(f,f.__data__,l,e)+"",p.has(w))s[l]=f;else p.set(w,f);for(l=0;l<m;++l)if(w=c.call(r,n[l],l,n)+"",f=p.get(w))a[l]=f,f.__data__=n[l],p.delete(w);else o[l]=new Ns(r,n[l]);for(l=0;l<u;++l)if((f=e[l])&&p.get(x[l])===f)s[l]=f}function fk(r){return r.__data__}function xh(r,e){if(!arguments.length)return Array.from(this,fk);var o=e?uk:ck,a=this._parents,s=this._groups;if(typeof r!=="function")r=yh(r);for(var n=s.length,c=Array(n),l=Array(n),f=Array(n),p=0;p<n;++p){var u=a[p],m=s[p],x=m.length,w=dk(r.call(u,u&&u.__data__,p,a)),T=w.length,_=l[p]=Array(T),v=c[p]=Array(T),F=f[p]=Array(x);o(u,m,_,v,F,w,e);for(var U=0,V=0,Z,J;U<T;++U)if(Z=_[U]){if(U>=V)V=U+1;while(!(J=v[V])&&++V<T);Z._next=J||null}}return c=new Me(c,a),c._enter=l,c._exit=f,c}function dk(r){return typeof r==="object"&&"length"in r?r:Array.from(r)}function Ch(){return new Me(this._exit||this._groups.map(qs),this._parents)}function bh(r,e,o){var a=this.enter(),s=this,n=this.exit();if(typeof r==="function"){if(a=r(a),a)a=a.selection()}else a=a.append(r+"");if(e!=null){if(s=e(s),s)s=s.selection()}if(o==null)n.remove();else o(n);return a&&s?a.merge(s).order():s}function kh(r){var e=r.selection?r.selection():r;for(var o=this._groups,a=e._groups,s=o.length,n=a.length,c=Math.min(s,n),l=Array(s),f=0;f<c;++f)for(var p=o[f],u=a[f],m=p.length,x=l[f]=Array(m),w,T=0;T<m;++T)if(w=p[T]||u[T])x[T]=w;for(;f<s;++f)l[f]=o[f];return new Me(l,this._parents)}function wh(){for(var r=this._groups,e=-1,o=r.length;++e<o;)for(var a=r[e],s=a.length-1,n=a[s],c;--s>=0;)if(c=a[s]){if(n&&c.compareDocumentPosition(n)^4)n.parentNode.insertBefore(c,n);n=c}return this}function Sh(r){if(!r)r=pk;function e(m,x){return m&&x?r(m.__data__,x.__data__):!m-!x}for(var o=this._groups,a=o.length,s=Array(a),n=0;n<a;++n){for(var c=o[n],l=c.length,f=s[n]=Array(l),p,u=0;u<l;++u)if(p=c[u])f[u]=p;f.sort(e)}return new Me(s,this._parents).order()}function pk(r,e){return r<e?-1:r>e?1:r>=e?0:NaN}function Th(){var r=arguments[0];return arguments[0]=this,r.apply(null,arguments),this}function _h(){return Array.from(this)}function Bh(){for(var r=this._groups,e=0,o=r.length;e<o;++e)for(var a=r[e],s=0,n=a.length;s<n;++s){var c=a[s];if(c)return c}return null}function vh(){let r=0;for(let e of this)++r;return r}function Lh(){return!this.node()}function Fh(r){for(var e=this._groups,o=0,a=e.length;o<a;++o)for(var s=e[o],n=0,c=s.length,l;n<c;++n)if(l=s[n])r.call(l,l.__data__,n,s);return this}function gk(r){return function(){this.removeAttribute(r)}}function mk(r){return function(){this.removeAttributeNS(r.space,r.local)}}function yk(r,e){return function(){this.setAttribute(r,e)}}function xk(r,e){return function(){this.setAttributeNS(r.space,r.local,e)}}function Ck(r,e){return function(){var o=e.apply(this,arguments);if(o==null)this.removeAttribute(r);else this.setAttribute(r,o)}}function bk(r,e){return function(){var o=e.apply(this,arguments);if(o==null)this.removeAttributeNS(r.space,r.local);else this.setAttributeNS(r.space,r.local,o)}}function Ah(r,e){var o=Hr(r);if(arguments.length<2){var a=this.node();return o.local?a.getAttributeNS(o.space,o.local):a.getAttribute(o)}return this.each((e==null?o.local?mk:gk:typeof e==="function"?o.local?bk:Ck:o.local?xk:yk)(o,e))}function Ws(r){return r.ownerDocument&&r.ownerDocument.defaultView||r.document&&r||r.defaultView}function kk(r){return function(){this.style.removeProperty(r)}}function wk(r,e,o){return function(){this.style.setProperty(r,e,o)}}function Sk(r,e,o){return function(){var a=e.apply(this,arguments);if(a==null)this.style.removeProperty(r);else this.style.setProperty(r,a,o)}}function Mh(r,e,o){return arguments.length>1?this.each((e==null?kk:typeof e==="function"?Sk:wk)(r,e,o==null?"":o)):Ni(this.node(),r)}function Ni(r,e){return r.style.getPropertyValue(e)||Ws(r).getComputedStyle(r,null).getPropertyValue(e)}function Tk(r){return function(){delete this[r]}}function _k(r,e){return function(){this[r]=e}}function Bk(r,e){return function(){var o=e.apply(this,arguments);if(o==null)delete this[r];else this[r]=o}}function Eh(r,e){return arguments.length>1?this.each((e==null?Tk:typeof e==="function"?Bk:_k)(r,e)):this.node()[r]}function kp(r){return r.trim().split(/^|\s+/)}function Oh(r){return r.classList||new wp(r)}function wp(r){this._node=r,this._names=kp(r.getAttribute("class")||"")}wp.prototype={add:function(r){var e=this._names.indexOf(r);if(e<0)this._names.push(r),this._node.setAttribute("class",this._names.join(" "))},remove:function(r){var e=this._names.indexOf(r);if(e>=0)this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" "))},contains:function(r){return this._names.indexOf(r)>=0}};function Sp(r,e){var o=Oh(r),a=-1,s=e.length;while(++a<s)o.add(e[a])}function Tp(r,e){var o=Oh(r),a=-1,s=e.length;while(++a<s)o.remove(e[a])}function vk(r){return function(){Sp(this,r)}}function Lk(r){return function(){Tp(this,r)}}function Fk(r,e){return function(){(e.apply(this,arguments)?Sp:Tp)(this,r)}}function Ih(r,e){var o=kp(r+"");if(arguments.length<2){var a=Oh(this.node()),s=-1,n=o.length;while(++s<n)if(!a.contains(o[s]))return!1;return!0}return this.each((typeof e==="function"?Fk:e?vk:Lk)(o,e))}function Ak(){this.textContent=""}function Mk(r){return function(){this.textContent=r}}function Ek(r){return function(){var e=r.apply(this,arguments);this.textContent=e==null?"":e}}function $h(r){return arguments.length?this.each(r==null?Ak:(typeof r==="function"?Ek:Mk)(r)):this.node().textContent}function Ok(){this.innerHTML=""}function Ik(r){return function(){this.innerHTML=r}}function $k(r){return function(){var e=r.apply(this,arguments);this.innerHTML=e==null?"":e}}function Dh(r){return arguments.length?this.each(r==null?Ok:(typeof r==="function"?$k:Ik)(r)):this.node().innerHTML}function Dk(){if(this.nextSibling)this.parentNode.appendChild(this)}function Ph(){return this.each(Dk)}function Pk(){if(this.previousSibling)this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Rh(){return this.each(Pk)}function qh(r){var e=typeof r==="function"?r:Rs(r);return this.select(function(){return this.appendChild(e.apply(this,arguments))})}function Rk(){return null}function Nh(r,e){var o=typeof r==="function"?r:Rs(r),a=e==null?Rk:typeof e==="function"?e:Ri(e);return this.select(function(){return this.insertBefore(o.apply(this,arguments),a.apply(this,arguments)||null)})}function qk(){var r=this.parentNode;if(r)r.removeChild(this)}function Wh(){return this.each(qk)}function Nk(){var r=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(r,this.nextSibling):r}function Wk(){var r=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(r,this.nextSibling):r}function zh(r){return this.select(r?Wk:Nk)}function Hh(r){return arguments.length?this.property("__data__",r):this.node().__data__}function zk(r){return function(e){r.call(this,e,this.__data__)}}function Hk(r){return r.trim().split(/^|\s+/).map(function(e){var o="",a=e.indexOf(".");if(a>=0)o=e.slice(a+1),e=e.slice(0,a);return{type:e,name:o}})}function Yk(r){return function(){var e=this.__on;if(!e)return;for(var o=0,a=-1,s=e.length,n;o<s;++o)if(n=e[o],(!r.type||n.type===r.type)&&n.name===r.name)this.removeEventListener(n.type,n.listener,n.options);else e[++a]=n;if(++a)e.length=a;else delete this.__on}}function Uk(r,e,o){return function(){var a=this.__on,s,n=zk(e);if(a){for(var c=0,l=a.length;c<l;++c)if((s=a[c]).type===r.type&&s.name===r.name){this.removeEventListener(s.type,s.listener,s.options),this.addEventListener(s.type,s.listener=n,s.options=o),s.value=e;return}}if(this.addEventListener(r.type,n,o),s={type:r.type,name:r.name,value:e,listener:n,options:o},!a)this.__on=[s];else a.push(s)}}function Yh(r,e,o){var a=Hk(r+""),s,n=a.length,c;if(arguments.length<2){var l=this.node().__on;if(l){for(var f=0,p=l.length,u;f<p;++f)for(s=0,u=l[f];s<n;++s)if((c=a[s]).type===u.type&&c.name===u.name)return u.value}return}l=e?Uk:Yk;for(s=0;s<n;++s)this.each(l(a[s],e,o));return this}function _p(r,e,o){var a=Ws(r),s=a.CustomEvent;if(typeof s==="function")s=new s(e,o);else if(s=a.document.createEvent("Event"),o)s.initEvent(e,o.bubbles,o.cancelable),s.detail=o.detail;else s.initEvent(e,!1,!1);r.dispatchEvent(s)}function jk(r,e){return function(){return _p(this,r,e)}}function Gk(r,e){return function(){return _p(this,r,e.apply(this,arguments))}}function Uh(r,e){return this.each((typeof e==="function"?Gk:jk)(r,e))}function*jh(){for(var r=this._groups,e=0,o=r.length;e<o;++e)for(var a=r[e],s=0,n=a.length,c;s<n;++s)if(c=a[s])yield c}var Gh=[null];function Me(r,e){this._groups=r,this._parents=e}function Bp(){return new Me([[document.documentElement]],Gh)}function Xk(){return this}Me.prototype=Bp.prototype={constructor:Me,select:ch,selectAll:fh,selectChild:dh,selectChildren:ph,filter:gh,data:xh,enter:mh,exit:Ch,join:bh,merge:kh,selection:Xk,order:wh,sort:Sh,call:Th,nodes:_h,node:Bh,size:vh,empty:Lh,each:Fh,attr:Ah,style:Mh,property:Eh,classed:Ih,text:$h,html:Dh,raise:Ph,lower:Rh,append:qh,insert:Nh,remove:Wh,clone:zh,datum:Hh,on:Yh,dispatch:Uh,[Symbol.iterator]:jh};var Si=Bp;function y(r){return typeof r==="string"?new Me([[document.querySelector(r)]],[document.documentElement]):new Me([[r]],Gh)}function ta(r,e,o){r.prototype=e.prototype=o,o.constructor=r}function si(r,e){var o=Object.create(r.prototype);for(var a in e)o[a]=e[a];return o}function na(){}var zs=0.7,Sn=1/zs,_o="\\s*([+-]?\\d+)\\s*",Hs="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Yr="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Vk=/^#([0-9a-f]{3,8})$/,Kk=new RegExp(`^rgb\\(${_o},${_o},${_o}\\)$`),Zk=new RegExp(`^rgb\\(${Yr},${Yr},${Yr}\\)$`),Qk=new RegExp(`^rgba\\(${_o},${_o},${_o},${Hs}\\)$`),Jk=new RegExp(`^rgba\\(${Yr},${Yr},${Yr},${Hs}\\)$`),t1=new RegExp(`^hsl\\(${Hs},${Yr},${Yr}\\)$`),e1=new RegExp(`^hsla\\(${Hs},${Yr},${Yr},${Hs}\\)$`),vp={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};ta(na,Wn,{copy(r){return Object.assign(new this.constructor,this,r)},displayable(){return this.rgb().displayable()},hex:Lp,formatHex:Lp,formatHex8:r1,formatHsl:i1,formatRgb:Fp,toString:Fp});function Lp(){return this.rgb().formatHex()}function r1(){return this.rgb().formatHex8()}function i1(){return $p(this).formatHsl()}function Fp(){return this.rgb().formatRgb()}function Wn(r){var e,o;return r=(r+"").trim().toLowerCase(),(e=Vk.exec(r))?(o=e[1].length,e=parseInt(e[1],16),o===6?Ap(e):o===3?new Rt(e>>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):o===8?kn(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):o===4?kn(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|e&240,((e&15)<<4|e&15)/255):null):(e=Kk.exec(r))?new Rt(e[1],e[2],e[3],1):(e=Zk.exec(r))?new Rt(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=Qk.exec(r))?kn(e[1],e[2],e[3],e[4]):(e=Jk.exec(r))?kn(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=t1.exec(r))?Op(e[1],e[2]/100,e[3]/100,1):(e=e1.exec(r))?Op(e[1],e[2]/100,e[3]/100,e[4]):vp.hasOwnProperty(r)?Ap(vp[r]):r==="transparent"?new Rt(NaN,NaN,NaN,0):null}function Ap(r){return new Rt(r>>16&255,r>>8&255,r&255,1)}function kn(r,e,o,a){if(a<=0)r=e=o=NaN;return new Rt(r,e,o,a)}function oc(r){if(!(r instanceof na))r=Wn(r);if(!r)return new Rt;return r=r.rgb(),new Rt(r.r,r.g,r.b,r.opacity)}function vo(r,e,o,a){return arguments.length===1?oc(r):new Rt(r,e,o,a==null?1:a)}function Rt(r,e,o,a){this.r=+r,this.g=+e,this.b=+o,this.opacity=+a}ta(Rt,vo,si(na,{brighter(r){return r=r==null?Sn:Math.pow(Sn,r),new Rt(this.r*r,this.g*r,this.b*r,this.opacity)},darker(r){return r=r==null?zs:Math.pow(zs,r),new Rt(this.r*r,this.g*r,this.b*r,this.opacity)},rgb(){return this},clamp(){return new Rt(oo(this.r),oo(this.g),oo(this.b),Tn(this.opacity))},displayable(){return-0.5<=this.r&&this.r<255.5&&(-0.5<=this.g&&this.g<255.5)&&(-0.5<=this.b&&this.b<255.5)&&(0<=this.opacity&&this.opacity<=1)},hex:Mp,formatHex:Mp,formatHex8:o1,formatRgb:Ep,toString:Ep}));function Mp(){return`#${io(this.r)}${io(this.g)}${io(this.b)}`}function o1(){return`#${io(this.r)}${io(this.g)}${io(this.b)}${io((isNaN(this.opacity)?1:this.opacity)*255)}`}function Ep(){let r=Tn(this.opacity);return`${r===1?"rgb(":"rgba("}${oo(this.r)}, ${oo(this.g)}, ${oo(this.b)}${r===1?")":`, ${r})`}`}function Tn(r){return isNaN(r)?1:Math.max(0,Math.min(1,r))}function oo(r){return Math.max(0,Math.min(255,Math.round(r)||0))}function io(r){return r=oo(r),(r<16?"0":"")+r.toString(16)}function Op(r,e,o,a){if(a<=0)r=e=o=NaN;else if(o<=0||o>=1)r=e=NaN;else if(e<=0)r=NaN;return new Ir(r,e,o,a)}function $p(r){if(r instanceof Ir)return new Ir(r.h,r.s,r.l,r.opacity);if(!(r instanceof na))r=Wn(r);if(!r)return new Ir;if(r instanceof Ir)return r;r=r.rgb();var e=r.r/255,o=r.g/255,a=r.b/255,s=Math.min(e,o,a),n=Math.max(e,o,a),c=NaN,l=n-s,f=(n+s)/2;if(l){if(e===n)c=(o-a)/l+(o<a)*6;else if(o===n)c=(a-e)/l+2;else c=(e-o)/l+4;l/=f<0.5?n+s:2-n-s,c*=60}else l=f>0&&f<1?0:c;return new Ir(c,l,f,r.opacity)}function Dp(r,e,o,a){return arguments.length===1?$p(r):new Ir(r,e,o,a==null?1:a)}function Ir(r,e,o,a){this.h=+r,this.s=+e,this.l=+o,this.opacity=+a}ta(Ir,Dp,si(na,{brighter(r){return r=r==null?Sn:Math.pow(Sn,r),new Ir(this.h,this.s,this.l*r,this.opacity)},darker(r){return r=r==null?zs:Math.pow(zs,r),new Ir(this.h,this.s,this.l*r,this.opacity)},rgb(){var r=this.h%360+(this.h<0)*360,e=isNaN(r)||isNaN(this.s)?0:this.s,o=this.l,a=o+(o<0.5?o:1-o)*e,s=2*o-a;return new Rt(Xh(r>=240?r-240:r+120,s,a),Xh(r,s,a),Xh(r<120?r+240:r-120,s,a),this.opacity)},clamp(){return new Ir(Ip(this.h),wn(this.s),wn(this.l),Tn(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&(0<=this.l&&this.l<=1)&&(0<=this.opacity&&this.opacity<=1)},formatHsl(){let r=Tn(this.opacity);return`${r===1?"hsl(":"hsla("}${Ip(this.h)}, ${wn(this.s)*100}%, ${wn(this.l)*100}%${r===1?")":`, ${r})`}`}}));function Ip(r){return r=(r||0)%360,r<0?r+360:r}function wn(r){return Math.max(0,Math.min(1,r||0))}function Xh(r,e,o){return(r<60?e+(o-e)*r/60:r<180?o:r<240?e+(o-e)*(240-r)/60:e)*255}function Vh(r,e,o,a,s){var n=r*r,c=n*r;return((1-3*r+3*n-c)*e+(4-6*n+3*c)*o+(1+3*r+3*n-3*c)*a+c*s)/6}function Kh(r){var e=r.length-1;return function(o){var a=o<=0?o=0:o>=1?(o=1,e-1):Math.floor(o*e),s=r[a],n=r[a+1],c=a>0?r[a-1]:2*s-n,l=a<e-1?r[a+2]:2*n-s;return Vh((o-a/e)*e,c,s,n,l)}}function Zh(r){var e=r.length;return function(o){var a=Math.floor(((o%=1)<0?++o:o)*e),s=r[(a+e-1)%e],n=r[a%e],c=r[(a+1)%e],l=r[(a+2)%e];return Vh((o-a/e)*e,s,n,c,l)}}var ci=(r)=>()=>r;function Pp(r,e){return function(o){return r+o*e}}function s1(r,e,o){return r=Math.pow(r,o),e=Math.pow(e,o)-r,o=1/o,function(a){return Math.pow(r+a*e,o)}}function $c(r,e){var o=e-r;return o?Pp(r,o>180||o<-180?o-360*Math.round(o/360):o):ci(isNaN(r)?e:r)}function Rp(r){return(r=+r)===1?Tr:function(e,o){return o-e?s1(e,o,r):ci(isNaN(e)?o:e)}}function Tr(r,e){var o=e-r;return o?Pp(r,o):ci(isNaN(r)?e:r)}var ya=function r(e){var o=Rp(e);function a(s,n){var c=o((s=vo(s)).r,(n=vo(n)).r),l=o(s.g,n.g),f=o(s.b,n.b),p=Tr(s.opacity,n.opacity);return function(u){return s.r=c(u),s.g=l(u),s.b=f(u),s.opacity=p(u),s+""}}return a.gamma=r,a}(1);function qp(r){return function(e){var o=e.length,a=Array(o),s=Array(o),n=Array(o),c,l;for(c=0;c<o;++c)l=vo(e[c]),a[c]=l.r||0,s[c]=l.g||0,n[c]=l.b||0;return a=r(a),s=r(s),n=r(n),l.opacity=1,function(f){return l.r=a(f),l.g=s(f),l.b=n(f),l+""}}}var a1=qp(Kh),n1=qp(Zh);function At(r,e){return r=+r,e=+e,function(o){return r*(1-o)+e*o}}var Jh=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Qh=new RegExp(Jh.source,"g");function l1(r){return function(){return r}}function h1(r){return function(e){return r(e)+""}}function li(r,e){var o=Jh.lastIndex=Qh.lastIndex=0,a,s,n,c=-1,l=[],f=[];r=r+"",e=e+"";while((a=Jh.exec(r))&&(s=Qh.exec(e))){if((n=s.index)>o)if(n=e.slice(o,n),l[c])l[c]+=n;else l[++c]=n;if((a=a[0])===(s=s[0]))if(l[c])l[c]+=s;else l[++c]=s;else l[++c]=null,f.push({i:c,x:At(a,s)});o=Qh.lastIndex}if(o<e.length)if(n=e.slice(o),l[c])l[c]+=n;else l[++c]=n;return l.length<2?f[0]?h1(f[0].x):l1(e):(e=f.length,function(p){for(var u=0,m;u<e;++u)l[(m=f[u]).i]=m.x(p);return l.join("")})}var Np=180/Math.PI,_n={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Bn(r,e,o,a,s,n){var c,l,f;if(c=Math.sqrt(r*r+e*e))r/=c,e/=c;if(f=r*o+e*a)o-=r*f,a-=e*f;if(l=Math.sqrt(o*o+a*a))o/=l,a/=l,f/=l;if(r*a<e*o)r=-r,e=-e,f=-f,c=-c;return{translateX:s,translateY:n,rotate:Math.atan2(e,r)*Np,skewX:Math.atan(f)*Np,scaleX:c,scaleY:l}}var Ln;function Wp(r){let e=new(typeof DOMMatrix==="function"?DOMMatrix:WebKitCSSMatrix)(r+"");return e.isIdentity?_n:Bn(e.a,e.b,e.c,e.d,e.e,e.f)}function zp(r){if(r==null)return _n;if(!Ln)Ln=document.createElementNS("http://www.w3.org/2000/svg","g");if(Ln.setAttribute("transform",r),!(r=Ln.transform.baseVal.consolidate()))return _n;return r=r.matrix,Bn(r.a,r.b,r.c,r.d,r.e,r.f)}function Hp(r,e,o,a){function s(p){return p.length?p.pop()+" ":""}function n(p,u,m,x,w,T){if(p!==m||u!==x){var _=w.push("translate(",null,e,null,o);T.push({i:_-4,x:At(p,m)},{i:_-2,x:At(u,x)})}else if(m||x)w.push("translate("+m+e+x+o)}function c(p,u,m,x){if(p!==u){if(p-u>180)u+=360;else if(u-p>180)p+=360;x.push({i:m.push(s(m)+"rotate(",null,a)-2,x:At(p,u)})}else if(u)m.push(s(m)+"rotate("+u+a)}function l(p,u,m,x){if(p!==u)x.push({i:m.push(s(m)+"skewX(",null,a)-2,x:At(p,u)});else if(u)m.push(s(m)+"skewX("+u+a)}function f(p,u,m,x,w,T){if(p!==m||u!==x){var _=w.push(s(w)+"scale(",null,",",null,")");T.push({i:_-4,x:At(p,m)},{i:_-2,x:At(u,x)})}else if(m!==1||x!==1)w.push(s(w)+"scale("+m+","+x+")")}return function(p,u){var m=[],x=[];return p=r(p),u=r(u),n(p.translateX,p.translateY,u.translateX,u.translateY,m,x),c(p.rotate,u.rotate,m,x),l(p.skewX,u.skewX,m,x),f(p.scaleX,p.scaleY,u.scaleX,u.scaleY,m,x),p=u=null,function(w){var T=-1,_=x.length,v;while(++T<_)m[(v=x[T]).i]=v.x(w);return m.join("")}}}var yc=Hp(Wp,"px, ","px)","deg)"),xc=Hp(zp,", ",")",")");var Lo=0,Us=0,Ys=0,Up=1000,Fn,js,An=0,so=0,En=0,Gs=typeof performance==="object"&&performance.now?performance:Date,jp=typeof window==="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(r){setTimeout(r,17)};function Vs(){return so||(jp(c1),so=Gs.now()+En)}function c1(){so=0}function Xs(){this._call=this._time=this._next=null}Xs.prototype=On.prototype={constructor:Xs,restart:function(r,e,o){if(typeof r!=="function")throw TypeError("callback is not a function");if(o=(o==null?Vs():+o)+(e==null?0:+e),!this._next&&js!==this){if(js)js._next=this;else Fn=this;js=this}this._call=r,this._time=o,Cc()},stop:function(){if(this._call)this._call=null,this._time=1/0,Cc()}};function On(r,e,o){var a=new Xs;return a.restart(r,e,o),a}function Gp(){Vs(),++Lo;var r=Fn,e;while(r){if((e=so-r._time)>=0)r._call.call(void 0,e);r=r._next}--Lo}function Yp(){so=(An=Gs.now())+En,Lo=Us=0;try{Gp()}finally{Lo=0,f1(),so=0}}function u1(){var r=Gs.now(),e=r-An;if(e>Up)En-=e,An=r}function f1(){var r,e=Fn,o,a=1/0;while(e)if(e._call){if(a>e._time)a=e._time;r=e,e=e._next}else o=e._next,e._next=null,e=r?r._next=o:Fn=o;js=r,Cc(a)}function Cc(r){if(Lo)return;if(Us)Us=clearTimeout(Us);var e=r-so;if(e>24){if(r<1/0)Us=setTimeout(Yp,r-Gs.now()-En);if(Ys)Ys=clearInterval(Ys)}else{if(!Ys)An=Gs.now(),Ys=setInterval(u1,Up);Lo=1,jp(Yp)}}function Ks(r,e,o){var a=new Xs;return e=e==null?0:+e,a.restart((s)=>{a.stop(),r(s+e)},e,o),a}var d1=lh("start","end","cancel","interrupt"),p1=[],Kp=0,Xp=1,$n=2,In=3,Vp=4,Dn=5,Zs=6;function Ti(r,e,o,a,s,n){var c=r.__transition;if(!c)r.__transition={};else if(o in c)return;g1(r,o,{name:e,index:a,group:s,on:d1,tween:p1,time:n.time,delay:n.delay,duration:n.duration,ease:n.ease,timer:null,state:Kp})}function Qs(r,e){var o=je(r,e);if(o.state>Kp)throw Error("too late; already scheduled");return o}function Qe(r,e){var o=je(r,e);if(o.state>In)throw Error("too late; already running");return o}function je(r,e){var o=r.__transition;if(!o||!(o=o[e]))throw Error("transition not found");return o}function g1(r,e,o){var a=r.__transition,s;a[e]=o,o.timer=On(n,0,o.time);function n(p){if(o.state=Xp,o.timer.restart(c,o.delay,o.time),o.delay<=p)c(p-o.delay)}function c(p){var u,m,x,w;if(o.state!==Xp)return f();for(u in a){if(w=a[u],w.name!==o.name)continue;if(w.state===In)return Ks(c);if(w.state===Vp)w.state=Zs,w.timer.stop(),w.on.call("interrupt",r,r.__data__,w.index,w.group),delete a[u];else if(+u<e)w.state=Zs,w.timer.stop(),w.on.call("cancel",r,r.__data__,w.index,w.group),delete a[u]}if(Ks(function(){if(o.state===In)o.state=Vp,o.timer.restart(l,o.delay,o.time),l(p)}),o.state=$n,o.on.call("start",r,r.__data__,o.index,o.group),o.state!==$n)return;o.state=In,s=Array(x=o.tween.length);for(u=0,m=-1;u<x;++u)if(w=o.tween[u].value.call(r,r.__data__,o.index,o.group))s[++m]=w;s.length=m+1}function l(p){var u=p<o.duration?o.ease.call(null,p/o.duration):(o.timer.restart(f),o.state=Dn,1),m=-1,x=s.length;while(++m<x)s[m].call(r,u);if(o.state===Dn)o.on.call("end",r,r.__data__,o.index,o.group),f()}function f(){o.state=Zs,o.timer.stop(),delete a[e];for(var p in a)return;delete r.__transition}}function Js(r,e){var o=r.__transition,a,s,n=!0,c;if(!o)return;e=e==null?null:e+"";for(c in o){if((a=o[c]).name!==e){n=!1;continue}s=a.state>$n&&a.state<Dn,a.state=Zs,a.timer.stop(),a.on.call(s?"interrupt":"cancel",r,r.__data__,a.index,a.group),delete o[c]}if(n)delete r.__transition}function bc(r){return this.each(function(){Js(this,r)})}function m1(r,e){var o,a;return function(){var s=Qe(this,r),n=s.tween;if(n!==o){a=o=n;for(var c=0,l=a.length;c<l;++c)if(a[c].name===e){a=a.slice(),a.splice(c,1);break}}s.tween=a}}function y1(r,e,o){var a,s;if(typeof o!=="function")throw Error();return function(){var n=Qe(this,r),c=n.tween;if(c!==a){s=(a=c).slice();for(var l={name:e,value:o},f=0,p=s.length;f<p;++f)if(s[f].name===e){s[f]=l;break}if(f===p)s.push(l)}n.tween=s}}function kc(r,e){var o=this._id;if(r+="",arguments.length<2){var a=je(this.node(),o).tween;for(var s=0,n=a.length,c;s<n;++s)if((c=a[s]).name===r)return c.value;return null}return this.each((e==null?m1:y1)(o,r,e))}function Ao(r,e,o){var a=r._id;return r.each(function(){var s=Qe(this,a);(s.value||(s.value={}))[e]=o.apply(this,arguments)}),function(s){return je(s,a).value[e]}}function sa(r,e){var o;return(typeof e==="number"?At:e instanceof Wn?ya:(o=Wn(e))?(e=o,ya):li)(r,e)}function x1(r){return function(){this.removeAttribute(r)}}function C1(r){return function(){this.removeAttributeNS(r.space,r.local)}}function b1(r,e,o){var a,s=o+"",n;return function(){var c=this.getAttribute(r);return c===s?null:c===a?n:n=e(a=c,o)}}function k1(r,e,o){var a,s=o+"",n;return function(){var c=this.getAttributeNS(r.space,r.local);return c===s?null:c===a?n:n=e(a=c,o)}}function w1(r,e,o){var a,s,n;return function(){var c,l=o(this),f;if(l==null)return void this.removeAttribute(r);return c=this.getAttribute(r),f=l+"",c===f?null:c===a&&f===s?n:(s=f,n=e(a=c,l))}}function S1(r,e,o){var a,s,n;return function(){var c,l=o(this),f;if(l==null)return void this.removeAttributeNS(r.space,r.local);return c=this.getAttributeNS(r.space,r.local),f=l+"",c===f?null:c===a&&f===s?n:(s=f,n=e(a=c,l))}}function wc(r,e){var o=Hr(r),a=o==="transform"?xc:sa;return this.attrTween(r,typeof e==="function"?(o.local?S1:w1)(o,a,Ao(this,"attr."+r,e)):e==null?(o.local?C1:x1)(o):(o.local?k1:b1)(o,a,e))}function T1(r,e){return function(o){this.setAttribute(r,e.call(this,o))}}function _1(r,e){return function(o){this.setAttributeNS(r.space,r.local,e.call(this,o))}}function B1(r,e){var o,a;function s(){var n=e.apply(this,arguments);if(n!==a)o=(a=n)&&_1(r,n);return o}return s._value=e,s}function v1(r,e){var o,a;function s(){var n=e.apply(this,arguments);if(n!==a)o=(a=n)&&T1(r,n);return o}return s._value=e,s}function Sc(r,e){var o="attr."+r;if(arguments.length<2)return(o=this.tween(o))&&o._value;if(e==null)return this.tween(o,null);if(typeof e!=="function")throw Error();var a=Hr(r);return this.tween(o,(a.local?B1:v1)(a,e))}function L1(r,e){return function(){Qs(this,r).delay=+e.apply(this,arguments)}}function F1(r,e){return e=+e,function(){Qs(this,r).delay=e}}function Tc(r){var e=this._id;return arguments.length?this.each((typeof r==="function"?L1:F1)(e,r)):je(this.node(),e).delay}function A1(r,e){return function(){Qe(this,r).duration=+e.apply(this,arguments)}}function M1(r,e){return e=+e,function(){Qe(this,r).duration=e}}function _c(r){var e=this._id;return arguments.length?this.each((typeof r==="function"?A1:M1)(e,r)):je(this.node(),e).duration}function E1(r,e){if(typeof e!=="function")throw Error();return function(){Qe(this,r).ease=e}}function Lc(r){var e=this._id;return arguments.length?this.each(E1(e,r)):je(this.node(),e).ease}function O1(r,e){return function(){var o=e.apply(this,arguments);if(typeof o!=="function")throw Error();Qe(this,r).ease=o}}function Ac(r){if(typeof r!=="function")throw Error();return this.each(O1(this._id,r))}function Ec(r){if(typeof r!=="function")r=To(r);for(var e=this._groups,o=e.length,a=Array(o),s=0;s<o;++s)for(var n=e[s],c=n.length,l=a[s]=[],f,p=0;p<c;++p)if((f=n[p])&&r.call(f,f.__data__,p,n))l.push(f);return new sr(a,this._parents,this._name,this._id)}function Wc(r){if(r._id!==this._id)throw Error();for(var e=this._groups,o=r._groups,a=e.length,s=o.length,n=Math.min(a,s),c=Array(a),l=0;l<n;++l)for(var f=e[l],p=o[l],u=f.length,m=c[l]=Array(u),x,w=0;w<u;++w)if(x=f[w]||p[w])m[w]=x;for(;l<a;++l)c[l]=e[l];return new sr(c,this._parents,this._name,this._id)}function I1(r){return(r+"").trim().split(/^|\s+/).every(function(e){var o=e.indexOf(".");if(o>=0)e=e.slice(0,o);return!e||e==="start"})}function $1(r,e,o){var a,s,n=I1(e)?Qs:Qe;return function(){var c=n(this,r),l=c.on;if(l!==a)(s=(a=l).copy()).on(e,o);c.on=s}}function Yc(r,e){var o=this._id;return arguments.length<2?je(this.node(),o).on.on(r):this.each($1(o,r,e))}function D1(r){return function(){var e=this.parentNode;for(var o in this.__transition)if(+o!==r)return;if(e)e.removeChild(this)}}function Xc(){return this.on("end.remove",D1(this._id))}function Kc(r){var e=this._name,o=this._id;if(typeof r!=="function")r=Ri(r);for(var a=this._groups,s=a.length,n=Array(s),c=0;c<s;++c)for(var l=a[c],f=l.length,p=n[c]=Array(f),u,m,x=0;x<f;++x)if((u=l[x])&&(m=r.call(u,u.__data__,x,l))){if("__data__"in u)m.__data__=u.__data__;p[x]=m,Ti(p[x],e,o,x,p,je(u,o))}return new sr(n,this._parents,e,o)}function Zc(r){var e=this._name,o=this._id;if(typeof r!=="function")r=So(r);for(var a=this._groups,s=a.length,n=[],c=[],l=0;l<s;++l)for(var f=a[l],p=f.length,u,m=0;m<p;++m)if(u=f[m]){for(var x=r.call(u,u.__data__,m,f),w,T=je(u,o),_=0,v=x.length;_<v;++_)if(w=x[_])Ti(w,e,o,_,x,T);n.push(x),c.push(u)}return new sr(n,c,e,o)}var P1=Si.prototype.constructor;function Qc(){return new P1(this._groups,this._parents)}function R1(r,e){var o,a,s;return function(){var n=Ni(this,r),c=(this.style.removeProperty(r),Ni(this,r));return n===c?null:n===o&&c===a?s:s=e(o=n,a=c)}}function Zp(r){return function(){this.style.removeProperty(r)}}function q1(r,e,o){var a,s=o+"",n;return function(){var c=Ni(this,r);return c===s?null:c===a?n:n=e(a=c,o)}}function N1(r,e,o){var a,s,n;return function(){var c=Ni(this,r),l=o(this),f=l+"";if(l==null)f=l=(this.style.removeProperty(r),Ni(this,r));return c===f?null:c===a&&f===s?n:(s=f,n=e(a=c,l))}}function W1(r,e){var o,a,s,n="style."+e,c="end."+n,l;return function(){var f=Qe(this,r),p=f.on,u=f.value[n]==null?l||(l=Zp(e)):void 0;if(p!==o||s!==u)(a=(o=p).copy()).on(c,s=u);f.on=a}}function Jc(r,e,o){var a=(r+="")==="transform"?yc:sa;return e==null?this.styleTween(r,R1(r,a)).on("end.style."+r,Zp(r)):typeof e==="function"?this.styleTween(r,N1(r,a,Ao(this,"style."+r,e))).each(W1(this._id,r)):this.styleTween(r,q1(r,a,e),o).on("end.style."+r,null)}function z1(r,e,o){return function(a){this.style.setProperty(r,e.call(this,a),o)}}function H1(r,e,o){var a,s;function n(){var c=e.apply(this,arguments);if(c!==s)a=(s=c)&&z1(r,c,o);return a}return n._value=e,n}function tu(r,e,o){var a="style."+(r+="");if(arguments.length<2)return(a=this.tween(a))&&a._value;if(e==null)return this.tween(a,null);if(typeof e!=="function")throw Error();return this.tween(a,H1(r,e,o==null?"":o))}function Y1(r){return function(){this.textContent=r}}function U1(r){return function(){var e=r(this);this.textContent=e==null?"":e}}function eu(r){return this.tween("text",typeof r==="function"?U1(Ao(this,"text",r)):Y1(r==null?"":r+""))}function j1(r){return function(e){this.textContent=r.call(this,e)}}function G1(r){var e,o;function a(){var s=r.apply(this,arguments);if(s!==o)e=(o=s)&&j1(s);return e}return a._value=r,a}function ru(r){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(r==null)return this.tween(e,null);if(typeof r!=="function")throw Error();return this.tween(e,G1(r))}function iu(){var r=this._name,e=this._id,o=qn();for(var a=this._groups,s=a.length,n=0;n<s;++n)for(var c=a[n],l=c.length,f,p=0;p<l;++p)if(f=c[p]){var u=je(f,e);Ti(f,r,o,p,c,{time:u.time+u.delay+u.duration,delay:0,duration:u.duration,ease:u.ease})}return new sr(a,this._parents,r,o)}function ou(){var r,e,o=this,a=o._id,s=o.size();return new Promise(function(n,c){var l={value:c},f={value:function(){if(--s===0)n()}};if(o.each(function(){var p=Qe(this,a),u=p.on;if(u!==r)e=(r=u).copy(),e._.cancel.push(l),e._.interrupt.push(l),e._.end.push(f);p.on=e}),s===0)n()})}var X1=0;function sr(r,e,o,a){this._groups=r,this._parents=e,this._name=o,this._id=a}function Qp(r){return Si().transition(r)}function qn(){return++X1}var _i=Si.prototype;sr.prototype=Qp.prototype={constructor:sr,select:Kc,selectAll:Zc,selectChild:_i.selectChild,selectChildren:_i.selectChildren,filter:Ec,merge:Wc,selection:Qc,transition:iu,call:_i.call,nodes:_i.nodes,node:_i.node,size:_i.size,empty:_i.empty,each:_i.each,on:Yc,attr:wc,attrTween:Sc,style:Jc,styleTween:tu,text:eu,textTween:ru,remove:Xc,tween:kc,delay:Tc,duration:_c,ease:Lc,easeVarying:Ac,end:ou,[Symbol.iterator]:_i[Symbol.iterator]};function Nn(r){return((r*=2)<=1?r*r*r:(r-=2)*r*r+2)/2}var V1={time:null,delay:0,duration:250,ease:Nn};function K1(r,e){var o;while(!(o=r.__transition)||!(o=o[e]))if(!(r=r.parentNode))throw Error(`transition ${e} not found`);return o}function su(r){var e,o;if(r instanceof sr)e=r._id,r=r._name;else e=qn(),(o=V1).time=Vs(),r=r==null?null:r+"";for(var a=this._groups,s=a.length,n=0;n<s;++n)for(var c=a[n],l=c.length,f,p=0;p<l;++p)if(f=c[p])Ti(f,r,e,p,c,o||K1(f,e));return new sr(a,this._parents,r,e)}Si.prototype.interrupt=bc;Si.prototype.transition=su;var{abs:tE,max:eE,min:rE}=Math;function Jp(r){return[+r[0],+r[1]]}function Z1(r){return[Jp(r[0]),Jp(r[1])]}var iE={name:"x",handles:["w","e"].map(au),input:function(r,e){return r==null?null:[[+r[0],e[0][1]],[+r[1],e[1][1]]]},output:function(r){return r&&[r[0][0],r[1][0]]}},oE={name:"y",handles:["n","s"].map(au),input:function(r,e){return r==null?null:[[e[0][0],+r[0]],[e[1][0],+r[1]]]},output:function(r){return r&&[r[0][1],r[1][1]]}},sE={name:"xy",handles:["n","w","e","s","nw","ne","sw","se"].map(au),input:function(r){return r==null?null:Z1(r)},output:function(r){return r}};function au(r){return{type:r}}var nu=Math.PI,lu=2*nu;var Q1=lu-0.000001;function tg(r){this._+=r[0];for(let e=1,o=r.length;e<o;++e)this._+=arguments[e]+r[e]}function J1(r){let e=Math.floor(r);if(!(e>=0))throw Error(`invalid digits: ${r}`);if(e>15)return tg;let o=10**e;return function(a){this._+=a[0];for(let s=1,n=a.length;s<n;++s)this._+=Math.round(arguments[s]*o)/o+a[s]}}class Mo{constructor(r){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=r==null?tg:J1(r)}moveTo(r,e){this._append`M${this._x0=this._x1=+r},${this._y0=this._y1=+e}`}closePath(){if(this._x1!==null)this._x1=this._x0,this._y1=this._y0,this._append`Z`}lineTo(r,e){this._append`L${this._x1=+r},${this._y1=+e}`}quadraticCurveTo(r,e,o,a){this._append`Q${+r},${+e},${this._x1=+o},${this._y1=+a}`}bezierCurveTo(r,e,o,a,s,n){this._append`C${+r},${+e},${+o},${+a},${this._x1=+s},${this._y1=+n}`}arcTo(r,e,o,a,s){if(r=+r,e=+e,o=+o,a=+a,s=+s,s<0)throw Error(`negative radius: ${s}`);let n=this._x1,c=this._y1,l=o-r,f=a-e,p=n-r,u=c-e,m=p*p+u*u;if(this._x1===null)this._append`M${this._x1=r},${this._y1=e}`;else if(!(m>0.000001));else if(!(Math.abs(u*l-f*p)>0.000001)||!s)this._append`L${this._x1=r},${this._y1=e}`;else{let x=o-n,w=a-c,T=l*l+f*f,_=x*x+w*w,v=Math.sqrt(T),F=Math.sqrt(m),U=s*Math.tan((nu-Math.acos((T+m-_)/(2*v*F)))/2),V=U/F,Z=U/v;if(Math.abs(V-1)>0.000001)this._append`L${r+V*p},${e+V*u}`;this._append`A${s},${s},0,0,${+(u*x>p*w)},${this._x1=r+Z*l},${this._y1=e+Z*f}`}}arc(r,e,o,a,s,n){if(r=+r,e=+e,o=+o,n=!!n,o<0)throw Error(`negative radius: ${o}`);let c=o*Math.cos(a),l=o*Math.sin(a),f=r+c,p=e+l,u=1^n,m=n?a-s:s-a;if(this._x1===null)this._append`M${f},${p}`;else if(Math.abs(this._x1-f)>0.000001||Math.abs(this._y1-p)>0.000001)this._append`L${f},${p}`;if(!o)return;if(m<0)m=m%lu+lu;if(m>Q1)this._append`A${o},${o},0,1,${u},${r-c},${e-l}A${o},${o},0,1,${u},${this._x1=f},${this._y1=p}`;else if(m>0.000001)this._append`A${o},${o},0,${+(m>=nu)},${u},${this._x1=r+o*Math.cos(s)},${this._y1=e+o*Math.sin(s)}`}rect(r,e,o,a){this._append`M${this._x0=this._x1=+r},${this._y0=this._y1=+e}h${o=+o}v${+a}h${-o}Z`}toString(){return this._}}function eg(){return new Mo}eg.prototype=Mo.prototype;function ke(r){return function(){return r}}var{abs:sc,atan2:Pt,cos:ra,max:Bc,min:Bo,sin:Yn,sqrt:ba}=Math,Tt=0.000000000001,pi=Math.PI,qi=pi/2,xa=2*pi;function Fc(r){return r>1?0:r<-1?pi:Math.acos(r)}function cc(r){return r>=1?qi:r<=-1?-qi:Math.asin(r)}function _a(r){let e=3;return r.digits=function(o){if(!arguments.length)return e;if(o==null)e=null;else{let a=Math.floor(o);if(!(a>=0))throw RangeError(`invalid digits: ${o}`);e=a}return r},()=>new Mo(e)}var zc=Array.prototype.slice;function Vi(r){return typeof r==="object"&&"length"in r?r:Array.from(r)}function rg(r){this._context=r}rg.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){if(this._line||this._line!==0&&this._point===1)this._context.closePath();this._line=1-this._line},point:function(r,e){switch(r=+r,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(r,e):this._context.moveTo(r,e);break;case 1:this._point=2;default:this._context.lineTo(r,e);break}}};function Ur(r){return new rg(r)}function Fo(r){return r[0]}function zo(r){return r[1]}function wa(r,e){var o=ke(!0),a=null,s=Ur,n=null,c=_a(l);r=typeof r==="function"?r:r===void 0?Fo:ke(r),e=typeof e==="function"?e:e===void 0?zo:ke(e);function l(f){var p,u=(f=Vi(f)).length,m,x=!1,w;if(a==null)n=s(w=c());for(p=0;p<=u;++p){if(!(p<u&&o(m=f[p],p,f))===x)if(x=!x)n.lineStart();else n.lineEnd();if(x)n.point(+r(m,p,f),+e(m,p,f))}if(w)return n=null,w+""||null}return l.x=function(f){return arguments.length?(r=typeof f==="function"?f:ke(+f),l):r},l.y=function(f){return arguments.length?(e=typeof f==="function"?f:ke(+f),l):e},l.defined=function(f){return arguments.length?(o=typeof f==="function"?f:ke(!!f),l):o},l.curve=function(f){return arguments.length?(s=f,a!=null&&(n=s(a)),l):s},l.context=function(f){return arguments.length?(f==null?a=n=null:n=s(a=f),l):a},l}class hu{constructor(r,e){this._context=r,this._x=e}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){if(this._line||this._line!==0&&this._point===1)this._context.closePath();this._line=1-this._line}point(r,e){switch(r=+r,e=+e,this._point){case 0:{if(this._point=1,this._line)this._context.lineTo(r,e);else this._context.moveTo(r,e);break}case 1:this._point=2;default:{if(this._x)this._context.bezierCurveTo(this._x0=(this._x0+r)/2,this._y0,this._x0,e,r,e);else this._context.bezierCurveTo(this._x0,this._y0=(this._y0+e)/2,r,this._y0,r,e);break}}this._x0=r,this._y0=e}}function ka(r){return new hu(r,!0)}function la(r){return new hu(r,!1)}function Cr(){}function Eo(r,e,o){r._context.bezierCurveTo((2*r._x0+r._x1)/3,(2*r._y0+r._y1)/3,(r._x0+2*r._x1)/3,(r._y0+2*r._y1)/3,(r._x0+4*r._x1+e)/6,(r._y0+4*r._y1+o)/6)}function ha(r){this._context=r}ha.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:Eo(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}if(this._line||this._line!==0&&this._point===1)this._context.closePath();this._line=1-this._line},point:function(r,e){switch(r=+r,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(r,e):this._context.moveTo(r,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Eo(this,r,e);break}this._x0=this._x1,this._x1=r,this._y0=this._y1,this._y1=e}};function ao(r){return new ha(r)}function ig(r){this._context=r}ig.prototype={areaStart:Cr,areaEnd:Cr,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(r,e){switch(r=+r,e=+e,this._point){case 0:this._point=1,this._x2=r,this._y2=e;break;case 1:this._point=2,this._x3=r,this._y3=e;break;case 2:this._point=3,this._x4=r,this._y4=e,this._context.moveTo((this._x0+4*this._x1+r)/6,(this._y0+4*this._y1+e)/6);break;default:Eo(this,r,e);break}this._x0=this._x1,this._x1=r,this._y0=this._y1,this._y1=e}};function zn(r){return new ig(r)}function og(r){this._context=r}og.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){if(this._line||this._line!==0&&this._point===3)this._context.closePath();this._line=1-this._line},point:function(r,e){switch(r=+r,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var o=(this._x0+4*this._x1+r)/6,a=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(o,a):this._context.moveTo(o,a);break;case 3:this._point=4;default:Eo(this,r,e);break}this._x0=this._x1,this._x1=r,this._y0=this._y1,this._y1=e}};function Hn(r){return new og(r)}function sg(r,e){this._basis=new ha(r),this._beta=e}sg.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var r=this._x,e=this._y,o=r.length-1;if(o>0){var a=r[0],s=e[0],n=r[o]-a,c=e[o]-s,l=-1,f;while(++l<=o)f=l/o,this._basis.point(this._beta*r[l]+(1-this._beta)*(a+f*n),this._beta*e[l]+(1-this._beta)*(s+f*c))}this._x=this._y=null,this._basis.lineEnd()},point:function(r,e){this._x.push(+r),this._y.push(+e)}};var cu=function r(e){function o(a){return e===1?new ha(a):new sg(a,e)}return o.beta=function(a){return r(+a)},o}(0.85);function No(r,e,o){r._context.bezierCurveTo(r._x1+r._k*(r._x2-r._x0),r._y1+r._k*(r._y2-r._y0),r._x2+r._k*(r._x1-e),r._y2+r._k*(r._y1-o),r._x2,r._y2)}function Un(r,e){this._context=r,this._k=(1-e)/6}Un.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:No(this,this._x1,this._y1);break}if(this._line||this._line!==0&&this._point===1)this._context.closePath();this._line=1-this._line},point:function(r,e){switch(r=+r,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(r,e):this._context.moveTo(r,e);break;case 1:this._point=2,this._x1=r,this._y1=e;break;case 2:this._point=3;default:No(this,r,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=r,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var ca=function r(e){function o(a){return new Un(a,e)}return o.tension=function(a){return r(+a)},o}(0);function jn(r,e){this._context=r,this._k=(1-e)/6}jn.prototype={areaStart:Cr,areaEnd:Cr,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(r,e){switch(r=+r,e=+e,this._point){case 0:this._point=1,this._x3=r,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=r,this._y4=e);break;case 2:this._point=3,this._x5=r,this._y5=e;break;default:No(this,r,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=r,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var uu=function r(e){function o(a){return new jn(a,e)}return o.tension=function(a){return r(+a)},o}(0);function Gn(r,e){this._context=r,this._k=(1-e)/6}Gn.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){if(this._line||this._line!==0&&this._point===3)this._context.closePath();this._line=1-this._line},point:function(r,e){switch(r=+r,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:No(this,r,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=r,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var fu=function r(e){function o(a){return new Gn(a,e)}return o.tension=function(a){return r(+a)},o}(0);function ua(r,e,o){var{_x1:a,_y1:s,_x2:n,_y2:c}=r;if(r._l01_a>Tt){var l=2*r._l01_2a+3*r._l01_a*r._l12_a+r._l12_2a,f=3*r._l01_a*(r._l01_a+r._l12_a);a=(a*l-r._x0*r._l12_2a+r._x2*r._l01_2a)/f,s=(s*l-r._y0*r._l12_2a+r._y2*r._l01_2a)/f}if(r._l23_a>Tt){var p=2*r._l23_2a+3*r._l23_a*r._l12_a+r._l12_2a,u=3*r._l23_a*(r._l23_a+r._l12_a);n=(n*p+r._x1*r._l23_2a-e*r._l12_2a)/u,c=(c*p+r._y1*r._l23_2a-o*r._l12_2a)/u}r._context.bezierCurveTo(a,s,n,c,r._x2,r._y2)}function ag(r,e){this._context=r,this._alpha=e}ag.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}if(this._line||this._line!==0&&this._point===1)this._context.closePath();this._line=1-this._line},point:function(r,e){if(r=+r,e=+e,this._point){var o=this._x2-r,a=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(o*o+a*a,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(r,e):this._context.moveTo(r,e);break;case 1:this._point=2;break;case 2:this._point=3;default:ua(this,r,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=r,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var fa=function r(e){function o(a){return e?new ag(a,e):new Un(a,0)}return o.alpha=function(a){return r(+a)},o}(0.5);function ng(r,e){this._context=r,this._alpha=e}ng.prototype={areaStart:Cr,areaEnd:Cr,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(r,e){if(r=+r,e=+e,this._point){var o=this._x2-r,a=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(o*o+a*a,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=r,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=r,this._y4=e);break;case 2:this._point=3,this._x5=r,this._y5=e;break;default:ua(this,r,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=r,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var du=function r(e){function o(a){return e?new ng(a,e):new jn(a,0)}return o.alpha=function(a){return r(+a)},o}(0.5);function lg(r,e){this._context=r,this._alpha=e}lg.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){if(this._line||this._line!==0&&this._point===3)this._context.closePath();this._line=1-this._line},point:function(r,e){if(r=+r,e=+e,this._point){var o=this._x2-r,a=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(o*o+a*a,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:ua(this,r,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=r,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var pu=function r(e){function o(a){return e?new lg(a,e):new Gn(a,0)}return o.alpha=function(a){return r(+a)},o}(0.5);function hg(r){this._context=r}hg.prototype={areaStart:Cr,areaEnd:Cr,lineStart:function(){this._point=0},lineEnd:function(){if(this._point)this._context.closePath()},point:function(r,e){if(r=+r,e=+e,this._point)this._context.lineTo(r,e);else this._point=1,this._context.moveTo(r,e)}};function Vn(r){return new hg(r)}function cg(r){return r<0?-1:1}function ug(r,e,o){var a=r._x1-r._x0,s=e-r._x1,n=(r._y1-r._y0)/(a||s<0&&-0),c=(o-r._y1)/(s||a<0&&-0),l=(n*s+c*a)/(a+s);return(cg(n)+cg(c))*Math.min(Math.abs(n),Math.abs(c),0.5*Math.abs(l))||0}function fg(r,e){var o=r._x1-r._x0;return o?(3*(r._y1-r._y0)/o-e)/2:e}function gu(r,e,o){var{_x0:a,_y0:s,_x1:n,_y1:c}=r,l=(n-a)/3;r._context.bezierCurveTo(a+l,s+l*e,n-l,c-l*o,n,c)}function Kn(r){this._context=r}Kn.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:gu(this,this._t0,fg(this,this._t0));break}if(this._line||this._line!==0&&this._point===1)this._context.closePath();this._line=1-this._line},point:function(r,e){var o=NaN;if(r=+r,e=+e,r===this._x1&&e===this._y1)return;switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(r,e):this._context.moveTo(r,e);break;case 1:this._point=2;break;case 2:this._point=3,gu(this,fg(this,o=ug(this,r,e)),o);break;default:gu(this,this._t0,o=ug(this,r,e));break}this._x0=this._x1,this._x1=r,this._y0=this._y1,this._y1=e,this._t0=o}};function dg(r){this._context=new pg(r)}(dg.prototype=Object.create(Kn.prototype)).point=function(r,e){Kn.prototype.point.call(this,e,r)};function pg(r){this._context=r}pg.prototype={moveTo:function(r,e){this._context.moveTo(e,r)},closePath:function(){this._context.closePath()},lineTo:function(r,e){this._context.lineTo(e,r)},bezierCurveTo:function(r,e,o,a,s,n){this._context.bezierCurveTo(e,r,a,o,n,s)}};function da(r){return new Kn(r)}function pa(r){return new dg(r)}function mg(r){this._context=r}mg.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var r=this._x,e=this._y,o=r.length;if(o)if(this._line?this._context.lineTo(r[0],e[0]):this._context.moveTo(r[0],e[0]),o===2)this._context.lineTo(r[1],e[1]);else{var a=gg(r),s=gg(e);for(var n=0,c=1;c<o;++n,++c)this._context.bezierCurveTo(a[0][n],s[0][n],a[1][n],s[1][n],r[c],e[c])}if(this._line||this._line!==0&&o===1)this._context.closePath();this._line=1-this._line,this._x=this._y=null},point:function(r,e){this._x.push(+r),this._y.push(+e)}};function gg(r){var e,o=r.length-1,a,s=Array(o),n=Array(o),c=Array(o);s[0]=0,n[0]=2,c[0]=r[0]+2*r[1];for(e=1;e<o-1;++e)s[e]=1,n[e]=4,c[e]=4*r[e]+2*r[e+1];s[o-1]=2,n[o-1]=7,c[o-1]=8*r[o-1]+r[o];for(e=1;e<o;++e)a=s[e]/n[e-1],n[e]-=a,c[e]-=a*c[e-1];s[o-1]=c[o-1]/n[o-1];for(e=o-2;e>=0;--e)s[e]=(c[e]-s[e+1])/n[e];n[o-1]=(r[o]+s[o-1])/2;for(e=0;e<o-1;++e)n[e]=2*r[e+1]-s[e+1];return[s,n]}function hs(r){return new mg(r)}function Zn(r,e){this._context=r,this._t=e}Zn.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){if(0<this._t&&this._t<1&&this._point===2)this._context.lineTo(this._x,this._y);if(this._line||this._line!==0&&this._point===1)this._context.closePath();if(this._line>=0)this._t=1-this._t,this._line=1-this._line},point:function(r,e){switch(r=+r,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(r,e):this._context.moveTo(r,e);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(r,e);else{var o=this._x*(1-this._t)+r*this._t;this._context.lineTo(o,this._y),this._context.lineTo(o,e)}break}}this._x=r,this._y=e}};function us(r){return new Zn(r,0.5)}function ga(r){return new Zn(r,0)}function ma(r){return new Zn(r,1)}function zi(r,e,o){this.k=r,this.x=e,this.y=o}zi.prototype={constructor:zi,scale:function(r){return r===1?this:new zi(this.k*r,this.x,this.y)},translate:function(r,e){return r===0&e===0?this:new zi(this.k,this.x+this.k*r,this.y+this.k*e)},apply:function(r){return[r[0]*this.k+this.x,r[1]*this.k+this.y]},applyX:function(r){return r*this.k+this.x},applyY:function(r){return r*this.k+this.y},invert:function(r){return[(r[0]-this.x)/this.k,(r[1]-this.y)/this.k]},invertX:function(r){return(r-this.x)/this.k},invertY:function(r){return(r-this.y)/this.k},rescaleX:function(r){return r.copy().domain(r.range().map(this.invertX,this).map(r.invert,r))},rescaleY:function(r){return r.copy().domain(r.range().map(this.invertY,this).map(r.invert,r))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var mu=new zi(1,0,0);yu.prototype=zi.prototype;function yu(r){while(!r.__zoom)if(!(r=r.parentNode))return mu;return r.__zoom}var re=t((r)=>{let{securityLevel:e}=d(),o=y("body");if(e==="sandbox"){let n=y(`#i${r}`).node()?.contentDocument??document;o=y(n.body)}return o.select(`#${r}`)},"selectSvgElement");function zg(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}t(zg,"getDefaultExportFromCjs");var tr={},Qn={},Qi={},yg;function fs(){if(yg)return Qi;yg=1;function r(c){return typeof c>"u"||c===null}t(r,"isNothing");function e(c){return typeof c==="object"&&c!==null}t(e,"isObject");function o(c){if(Array.isArray(c))return c;else if(r(c))return[];return[c]}t(o,"toArray");function a(c,l){if(l){let f=Object.keys(l);for(let p=0,u=f.length;p<u;p+=1){let m=f[p];c[m]=l[m]}}return c}t(a,"extend");function s(c,l){let f="";for(let p=0;p<l;p+=1)f+=c;return f}t(s,"repeat");function n(c){return c===0&&Number.NEGATIVE_INFINITY===1/c}return t(n,"isNegativeZero"),Qi.isNothing=r,Qi.isObject=e,Qi.toArray=o,Qi.repeat=s,Qi.isNegativeZero=n,Qi.extend=a,Qi}t(fs,"requireCommon");var xu,xg;function ds(){if(xg)return xu;xg=1;function r(o,a){let s="",n=o.reason||"(unknown reason)";if(!o.mark)return n;if(o.mark.name)s+='in "'+o.mark.name+'" ';if(s+="("+(o.mark.line+1)+":"+(o.mark.column+1)+")",!a&&o.mark.snippet)s+=`
130
+
131
+ `+o.mark.snippet;return n+" "+s}t(r,"formatError");function e(o,a){if(Error.call(this),this.name="YAMLException",this.reason=o,this.mark=a,this.message=r(this,!1),Error.captureStackTrace)Error.captureStackTrace(this,this.constructor);else this.stack=Error().stack||""}return t(e,"YAMLException2"),e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e.prototype.toString=t(function(a){return this.name+": "+r(this,a)},"toString"),xu=e,xu}t(ds,"requireException");var Cu,Cg;function Hg(){if(Cg)return Cu;Cg=1;let r=fs();function e(s,n,c,l,f){let p="",u="",m=Math.floor(f/2)-1;if(l-n>m)p=" ... ",n=l-m+p.length;if(c-l>m)u=" ...",c=l+m-u.length;return{str:p+s.slice(n,c).replace(/\t/g,"→")+u,pos:l-n+p.length}}t(e,"getLine");function o(s,n){return r.repeat(" ",n-s.length)+s}t(o,"padStart");function a(s,n){if(n=Object.create(n||null),!s.buffer)return null;if(!n.maxLength)n.maxLength=79;if(typeof n.indent!=="number")n.indent=1;if(typeof n.linesBefore!=="number")n.linesBefore=3;if(typeof n.linesAfter!=="number")n.linesAfter=2;let c=/\r?\n|\r|\0/g,l=[0],f=[],p,u=-1;while(p=c.exec(s.buffer))if(f.push(p.index),l.push(p.index+p[0].length),s.position<=p.index&&u<0)u=l.length-2;if(u<0)u=l.length-1;let m="",x=Math.min(s.line+n.linesAfter,f.length).toString().length,w=n.maxLength-(n.indent+x+3);for(let _=1;_<=n.linesBefore;_++){if(u-_<0)break;let v=e(s.buffer,l[u-_],f[u-_],s.position-(l[u]-l[u-_]),w);m=r.repeat(" ",n.indent)+o((s.line-_+1).toString(),x)+" | "+v.str+`
132
+ `+m}let T=e(s.buffer,l[u],f[u],s.position,w);m+=r.repeat(" ",n.indent)+o((s.line+1).toString(),x)+" | "+T.str+`
133
+ `,m+=r.repeat("-",n.indent+x+3+T.pos)+`^
134
+ `;for(let _=1;_<=n.linesAfter;_++){if(u+_>=f.length)break;let v=e(s.buffer,l[u+_],f[u+_],s.position-(l[u]-l[u+_]),w);m+=r.repeat(" ",n.indent)+o((s.line+_+1).toString(),x)+" | "+v.str+`
135
+ `}return m.replace(/\n$/,"")}return t(a,"makeSnippet"),Cu=a,Cu}t(Hg,"requireSnippet");var bu,bg;function er(){if(bg)return bu;bg=1;let r=ds(),e=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],o=["scalar","sequence","mapping"];function a(n){let c={};if(n!==null)Object.keys(n).forEach(function(l){n[l].forEach(function(f){c[String(f)]=l})});return c}t(a,"compileStyleAliases");function s(n,c){if(c=c||{},Object.keys(c).forEach(function(l){if(e.indexOf(l)===-1)throw new r('Unknown option "'+l+'" is met in definition of "'+n+'" YAML type.')}),this.options=c,this.tag=n,this.kind=c.kind||null,this.resolve=c.resolve||function(){return!0},this.construct=c.construct||function(l){return l},this.instanceOf=c.instanceOf||null,this.predicate=c.predicate||null,this.represent=c.represent||null,this.representName=c.representName||null,this.defaultStyle=c.defaultStyle||null,this.multi=c.multi||!1,this.styleAliases=a(c.styleAliases||null),o.indexOf(this.kind)===-1)throw new r('Unknown kind "'+this.kind+'" is specified for "'+n+'" YAML type.')}return t(s,"Type2"),bu=s,bu}t(er,"requireType");var ku,kg;function Nu(){if(kg)return ku;kg=1;let r=ds(),e=er();function o(n,c){let l=[];return n[c].forEach(function(f){let p=l.length;l.forEach(function(u,m){if(u.tag===f.tag&&u.kind===f.kind&&u.multi===f.multi)p=m}),l[p]=f}),l}t(o,"compileList");function a(){let n={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function c(l){if(l.multi)n.multi[l.kind].push(l),n.multi.fallback.push(l);else n[l.kind][l.tag]=n.fallback[l.tag]=l}t(c,"collectType");for(let l=0,f=arguments.length;l<f;l+=1)arguments[l].forEach(c);return n}t(a,"compileMap");function s(n){return this.extend(n)}return t(s,"Schema2"),s.prototype.extend=t(function(c){let l=[],f=[];if(c instanceof e)f.push(c);else if(Array.isArray(c))f=f.concat(c);else if(c&&(Array.isArray(c.implicit)||Array.isArray(c.explicit))){if(c.implicit)l=l.concat(c.implicit);if(c.explicit)f=f.concat(c.explicit)}else throw new r("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");l.forEach(function(u){if(!(u instanceof e))throw new r("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(u.loadKind&&u.loadKind!=="scalar")throw new r("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(u.multi)throw new r("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),f.forEach(function(u){if(!(u instanceof e))throw new r("Specified list of YAML types (or a single Type object) contains a non-Type object.")});let p=Object.create(s.prototype);return p.implicit=(this.implicit||[]).concat(l),p.explicit=(this.explicit||[]).concat(f),p.compiledImplicit=o(p,"implicit"),p.compiledExplicit=o(p,"explicit"),p.compiledTypeMap=a(p.compiledImplicit,p.compiledExplicit),p},"extend"),ku=s,ku}t(Nu,"requireSchema");var wu,wg;function Wu(){if(wg)return wu;return wg=1,wu=new(er())("tag:yaml.org,2002:str",{kind:"scalar",construct:t(function(e){return e!==null?e:""},"construct")}),wu}t(Wu,"requireStr");var Su,Sg;function zu(){if(Sg)return Su;return Sg=1,Su=new(er())("tag:yaml.org,2002:seq",{kind:"sequence",construct:t(function(e){return e!==null?e:[]},"construct")}),Su}t(zu,"requireSeq");var Tu,Tg;function Hu(){if(Tg)return Tu;return Tg=1,Tu=new(er())("tag:yaml.org,2002:map",{kind:"mapping",construct:t(function(e){return e!==null?e:{}},"construct")}),Tu}t(Hu,"requireMap");var _u,_g;function Yu(){if(_g)return _u;return _g=1,_u=new(Nu())({explicit:[Wu(),zu(),Hu()]}),_u}t(Yu,"requireFailsafe");var Bu,Bg;function Uu(){if(Bg)return Bu;Bg=1;let r=er();function e(s){if(s===null)return!0;let n=s.length;return n===1&&s==="~"||n===4&&(s==="null"||s==="Null"||s==="NULL")}t(e,"resolveYamlNull");function o(){return null}t(o,"constructYamlNull");function a(s){return s===null}return t(a,"isNull"),Bu=new r("tag:yaml.org,2002:null",{kind:"scalar",resolve:e,construct:o,predicate:a,represent:{canonical:t(function(){return"~"},"canonical"),lowercase:t(function(){return"null"},"lowercase"),uppercase:t(function(){return"NULL"},"uppercase"),camelcase:t(function(){return"Null"},"camelcase"),empty:t(function(){return""},"empty")},defaultStyle:"lowercase"}),Bu}t(Uu,"require_null");var vu,vg;function ju(){if(vg)return vu;vg=1;let r=er();function e(s){if(s===null)return!1;let n=s.length;return n===4&&(s==="true"||s==="True"||s==="TRUE")||n===5&&(s==="false"||s==="False"||s==="FALSE")}t(e,"resolveYamlBoolean");function o(s){return s==="true"||s==="True"||s==="TRUE"}t(o,"constructYamlBoolean");function a(s){return Object.prototype.toString.call(s)==="[object Boolean]"}return t(a,"isBoolean"),vu=new r("tag:yaml.org,2002:bool",{kind:"scalar",resolve:e,construct:o,predicate:a,represent:{lowercase:t(function(s){return s?"true":"false"},"lowercase"),uppercase:t(function(s){return s?"TRUE":"FALSE"},"uppercase"),camelcase:t(function(s){return s?"True":"False"},"camelcase")},defaultStyle:"lowercase"}),vu}t(ju,"requireBool");var Lu,Lg;function Gu(){if(Lg)return Lu;Lg=1;let r=fs(),e=er();function o(p){return p>=48&&p<=57||p>=65&&p<=70||p>=97&&p<=102}t(o,"isHexCode");function a(p){return p>=48&&p<=55}t(a,"isOctCode");function s(p){return p>=48&&p<=57}t(s,"isDecCode");function n(p){if(p===null)return!1;let u=p.length,m=0,x=!1;if(!u)return!1;let w=p[m];if(w==="-"||w==="+")w=p[++m];if(w==="0"){if(m+1===u)return!0;if(w=p[++m],w==="b"){m++;for(;m<u;m++){if(w=p[m],w!=="0"&&w!=="1")return!1;x=!0}return x&&isFinite(c(p))}if(w==="x"){m++;for(;m<u;m++){if(!o(p.charCodeAt(m)))return!1;x=!0}return x&&isFinite(c(p))}if(w==="o"){m++;for(;m<u;m++){if(!a(p.charCodeAt(m)))return!1;x=!0}return x&&isFinite(c(p))}}for(;m<u;m++){if(!s(p.charCodeAt(m)))return!1;x=!0}if(!x)return!1;return isFinite(c(p))}t(n,"resolveYamlInteger");function c(p){let u=p,m=1,x=u[0];if(x==="-"||x==="+"){if(x==="-")m=-1;u=u.slice(1),x=u[0]}if(u==="0")return 0;if(x==="0"){if(u[1]==="b")return m*parseInt(u.slice(2),2);if(u[1]==="x")return m*parseInt(u.slice(2),16);if(u[1]==="o")return m*parseInt(u.slice(2),8)}return m*parseInt(u,10)}t(c,"parseYamlInteger");function l(p){return c(p)}t(l,"constructYamlInteger");function f(p){return Object.prototype.toString.call(p)==="[object Number]"&&(p%1===0&&!r.isNegativeZero(p))}return t(f,"isInteger"),Lu=new e("tag:yaml.org,2002:int",{kind:"scalar",resolve:n,construct:l,predicate:f,represent:{binary:t(function(p){return p>=0?"0b"+p.toString(2):"-0b"+p.toString(2).slice(1)},"binary"),octal:t(function(p){return p>=0?"0o"+p.toString(8):"-0o"+p.toString(8).slice(1)},"octal"),decimal:t(function(p){return p.toString(10)},"decimal"),hexadecimal:t(function(p){return p>=0?"0x"+p.toString(16).toUpperCase():"-0x"+p.toString(16).toUpperCase().slice(1)},"hexadecimal")},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),Lu}t(Gu,"requireInt");var Fu,Fg;function Xu(){if(Fg)return Fu;Fg=1;let r=fs(),e=er(),o=new RegExp("^(?:[-+]?(?:[0-9]+)(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),a=new RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function s(p){if(p===null)return!1;if(!o.test(p))return!1;if(isFinite(parseFloat(p,10)))return!0;return a.test(p)}t(s,"resolveYamlFloat");function n(p){let u=p.toLowerCase(),m=u[0]==="-"?-1:1;if("+-".indexOf(u[0])>=0)u=u.slice(1);if(u===".inf")return m===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY;else if(u===".nan")return NaN;return m*parseFloat(u,10)}t(n,"constructYamlFloat");let c=/^[-+]?[0-9]+e/;function l(p,u){if(isNaN(p))switch(u){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===p)switch(u){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===p)switch(u){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(r.isNegativeZero(p))return"-0.0";let m=p.toString(10);return c.test(m)?m.replace("e",".e"):m}t(l,"representYamlFloat");function f(p){return Object.prototype.toString.call(p)==="[object Number]"&&(p%1!==0||r.isNegativeZero(p))}return t(f,"isFloat"),Fu=new e("tag:yaml.org,2002:float",{kind:"scalar",resolve:s,construct:n,predicate:f,represent:l,defaultStyle:"lowercase"}),Fu}t(Xu,"requireFloat");var Au,Ag;function Vu(){if(Ag)return Au;return Ag=1,Au=Yu().extend({implicit:[Uu(),ju(),Gu(),Xu()]}),Au}t(Vu,"requireJson");var Mu,Mg;function Ku(){if(Mg)return Mu;return Mg=1,Mu=Vu(),Mu}t(Ku,"requireCore");var Eu,Eg;function Zu(){if(Eg)return Eu;Eg=1;let r=er(),e=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),o=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function a(c){if(c===null)return!1;if(e.exec(c)!==null)return!0;if(o.exec(c)!==null)return!0;return!1}t(a,"resolveYamlTimestamp");function s(c){let l=0,f=null,p=e.exec(c);if(p===null)p=o.exec(c);if(p===null)throw Error("Date resolve error");let u=+p[1],m=+p[2]-1,x=+p[3];if(!p[4])return new Date(Date.UTC(u,m,x));let w=+p[4],T=+p[5],_=+p[6];if(p[7]){l=p[7].slice(0,3);while(l.length<3)l+="0";l=+l}if(p[9]){let F=+p[10],U=+(p[11]||0);if(f=(F*60+U)*60000,p[9]==="-")f=-f}let v=new Date(Date.UTC(u,m,x,w,T,_,l));if(f)v.setTime(v.getTime()-f);return v}t(s,"constructYamlTimestamp");function n(c){return c.toISOString()}return t(n,"representYamlTimestamp"),Eu=new r("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:a,construct:s,instanceOf:Date,represent:n}),Eu}t(Zu,"requireTimestamp");var Ou,Og;function Qu(){if(Og)return Ou;Og=1;let r=er();function e(o){return o==="<<"||o===null}return t(e,"resolveYamlMerge"),Ou=new r("tag:yaml.org,2002:merge",{kind:"scalar",resolve:e}),Ou}t(Qu,"requireMerge");var Iu,Ig;function Ju(){if(Ig)return Iu;Ig=1;let r=er(),e=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
136
+ \r`;function o(c){if(c===null)return!1;let l=0,f=c.length,p=e;for(let u=0;u<f;u++){let m=p.indexOf(c.charAt(u));if(m>64)continue;if(m<0)return!1;l+=6}return l%8===0}t(o,"resolveYamlBinary");function a(c){let l=c.replace(/[\r\n=]/g,""),f=l.length,p=e,u=0,m=[];for(let w=0;w<f;w++){if(w%4===0&&w)m.push(u>>16&255),m.push(u>>8&255),m.push(u&255);u=u<<6|p.indexOf(l.charAt(w))}let x=f%4*6;if(x===0)m.push(u>>16&255),m.push(u>>8&255),m.push(u&255);else if(x===18)m.push(u>>10&255),m.push(u>>2&255);else if(x===12)m.push(u>>4&255);return new Uint8Array(m)}t(a,"constructYamlBinary");function s(c){let l="",f=0,p=c.length,u=e;for(let x=0;x<p;x++){if(x%3===0&&x)l+=u[f>>18&63],l+=u[f>>12&63],l+=u[f>>6&63],l+=u[f&63];f=(f<<8)+c[x]}let m=p%3;if(m===0)l+=u[f>>18&63],l+=u[f>>12&63],l+=u[f>>6&63],l+=u[f&63];else if(m===2)l+=u[f>>10&63],l+=u[f>>4&63],l+=u[f<<2&63],l+=u[64];else if(m===1)l+=u[f>>2&63],l+=u[f<<4&63],l+=u[64],l+=u[64];return l}t(s,"representYamlBinary");function n(c){return Object.prototype.toString.call(c)==="[object Uint8Array]"}return t(n,"isBinary"),Iu=new r("tag:yaml.org,2002:binary",{kind:"scalar",resolve:o,construct:a,predicate:n,represent:s}),Iu}t(Ju,"requireBinary");var $u,$g;function tf(){if($g)return $u;$g=1;let r=er(),e=Object.prototype.hasOwnProperty,o=Object.prototype.toString;function a(n){if(n===null)return!0;let c=[],l=n;for(let f=0,p=l.length;f<p;f+=1){let u=l[f],m=!1;if(o.call(u)!=="[object Object]")return!1;let x;for(x in u)if(e.call(u,x))if(!m)m=!0;else return!1;if(!m)return!1;if(c.indexOf(x)===-1)c.push(x);else return!1}return!0}t(a,"resolveYamlOmap");function s(n){return n!==null?n:[]}return t(s,"constructYamlOmap"),$u=new r("tag:yaml.org,2002:omap",{kind:"sequence",resolve:a,construct:s}),$u}t(tf,"requireOmap");var Du,Dg;function ef(){if(Dg)return Du;Dg=1;let r=er(),e=Object.prototype.toString;function o(s){if(s===null)return!0;let n=s,c=Array(n.length);for(let l=0,f=n.length;l<f;l+=1){let p=n[l];if(e.call(p)!=="[object Object]")return!1;let u=Object.keys(p);if(u.length!==1)return!1;c[l]=[u[0],p[u[0]]]}return!0}t(o,"resolveYamlPairs");function a(s){if(s===null)return[];let n=s,c=Array(n.length);for(let l=0,f=n.length;l<f;l+=1){let p=n[l],u=Object.keys(p);c[l]=[u[0],p[u[0]]]}return c}return t(a,"constructYamlPairs"),Du=new r("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:o,construct:a}),Du}t(ef,"requirePairs");var Pu,Pg;function rf(){if(Pg)return Pu;Pg=1;let r=er(),e=Object.prototype.hasOwnProperty;function o(s){if(s===null)return!0;let n=s;for(let c in n)if(e.call(n,c)){if(n[c]!==null)return!1}return!0}t(o,"resolveYamlSet");function a(s){return s!==null?s:{}}return t(a,"constructYamlSet"),Pu=new r("tag:yaml.org,2002:set",{kind:"mapping",resolve:o,construct:a}),Pu}t(rf,"requireSet");var Ru,Rg;function Jn(){if(Rg)return Ru;return Rg=1,Ru=Ku().extend({implicit:[Zu(),Qu()],explicit:[Ju(),tf(),ef(),rf()]}),Ru}t(Jn,"require_default");var qg;function Yg(){if(qg)return Qn;qg=1;let r=fs(),e=ds(),o=Hg(),a=Jn(),s=Object.prototype.hasOwnProperty,n=1,c=2,l=3,f=4,p=1,u=2,m=3,x=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,w=/[\x85\u2028\u2029]/,T=/[,\[\]{}]/,_=/^(?:!|!!|![0-9A-Za-z-]+!)$/,v=/^(?:!|[^,\[\]{}])(?:%[0-9a-f]{2}|[0-9a-z\-#;/?:@&=+$,_.!~*'()\[\]])*$/i;function F(k){return Object.prototype.toString.call(k)}t(F,"_class");function U(k){return k===10||k===13}t(U,"isEol");function V(k){return k===9||k===32}t(V,"isWhiteSpace");function Z(k){return k===9||k===32||k===10||k===13}t(Z,"isWsOrEol");function J(k){return k===44||k===91||k===93||k===123||k===125}t(J,"isFlowIndicator");function lt(k){if(k>=48&&k<=57)return k-48;let mt=k|32;if(mt>=97&&mt<=102)return mt-97+10;return-1}t(lt,"fromHexCode");function st(k){if(k===120)return 2;if(k===117)return 4;if(k===85)return 8;return 0}t(st,"escapedHexLen");function dt(k){if(k>=48&&k<=57)return k-48;return-1}t(dt,"fromDecimalCode");function Ct(k){switch(k){case 48:return"\x00";case 97:return"\x07";case 98:return"\b";case 116:return"\t";case 9:return"\t";case 110:return`
137
+ `;case 118:return"\v";case 102:return"\f";case 114:return"\r";case 101:return"\x1B";case 32:return" ";case 34:return'"';case 47:return"/";case 92:return"\\";case 78:return"…";case 95:return" ";case 76:return"\u2028";case 80:return"\u2029";default:return""}}t(Ct,"simpleEscapeSequence");function Bt(k){if(k<=65535)return String.fromCharCode(k);return String.fromCharCode((k-65536>>10)+55296,(k-65536&1023)+56320)}t(Bt,"charFromCodepoint");function kt(k,mt,_t){if(mt==="__proto__")Object.defineProperty(k,mt,{configurable:!0,enumerable:!0,writable:!0,value:_t});else k[mt]=_t}t(kt,"setProperty");let bt=Array(256),it=Array(256);for(let k=0;k<256;k++)bt[k]=Ct(k)?1:0,it[k]=Ct(k);function ot(k,mt){this.input=k,this.filename=mt.filename||null,this.schema=mt.schema||a,this.onWarning=mt.onWarning||null,this.legacy=mt.legacy||!1,this.json=mt.json||!1,this.listener=mt.listener||null,this.maxDepth=typeof mt.maxDepth==="number"?mt.maxDepth:100,this.maxTotalMergeKeys=typeof mt.maxTotalMergeKeys==="number"?mt.maxTotalMergeKeys:1e4,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=k.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.depth=0,this.totalMergeKeys=0,this.firstTabInLine=-1,this.documents=[],this.anchorMapTransactions=[]}t(ot,"State");function yt(k,mt){let _t={name:k.filename,buffer:k.input.slice(0,-1),position:k.position,line:k.line,column:k.position-k.lineStart};return _t.snippet=o(_t),new e(mt,_t)}t(yt,"generateError");function et(k,mt){throw yt(k,mt)}t(et,"throwError");function wt(k,mt){if(k.onWarning)k.onWarning.call(null,yt(k,mt))}t(wt,"throwWarning");function Lt(k,mt,_t){let Mt=k.anchorMapTransactions;if(Mt.length!==0){let St=Mt[Mt.length-1];if(!s.call(St,mt))St[mt]={existed:s.call(k.anchorMap,mt),value:k.anchorMap[mt]}}k.anchorMap[mt]=_t}t(Lt,"storeAnchor");function Vt(k){k.anchorMapTransactions.push(Object.create(null))}t(Vt,"beginAnchorTransaction");function Xt(k){let mt=k.anchorMapTransactions.pop(),_t=k.anchorMapTransactions;if(_t.length===0)return;let Mt=_t[_t.length-1],St=Object.keys(mt);for(let Yt=0,j=St.length;Yt<j;Yt+=1){let xt=St[Yt];if(!s.call(Mt,xt))Mt[xt]=mt[xt]}}t(Xt,"commitAnchorTransaction");function ae(k){let mt=k.anchorMapTransactions.pop(),_t=Object.keys(mt);for(let Mt=_t.length-1;Mt>=0;Mt-=1){let St=mt[_t[Mt]];if(St.existed)k.anchorMap[_t[Mt]]=St.value;else delete k.anchorMap[_t[Mt]]}}t(ae,"rollbackAnchorTransaction");function se(k){return{position:k.position,line:k.line,lineStart:k.lineStart,lineIndent:k.lineIndent,firstTabInLine:k.firstTabInLine,tag:k.tag,anchor:k.anchor,kind:k.kind,result:k.result}}t(se,"snapshotState");function pe(k,mt){k.position=mt.position,k.line=mt.line,k.lineStart=mt.lineStart,k.lineIndent=mt.lineIndent,k.firstTabInLine=mt.firstTabInLine,k.tag=mt.tag,k.anchor=mt.anchor,k.kind=mt.kind,k.result=mt.result}t(pe,"restoreState");let me={YAML:t(function(mt,_t,Mt){if(mt.version!==null)et(mt,"duplication of %YAML directive");if(Mt.length!==1)et(mt,"YAML directive accepts exactly one argument");let St=/^([0-9]+)\.([0-9]+)$/.exec(Mt[0]);if(St===null)et(mt,"ill-formed argument of the YAML directive");let Yt=parseInt(St[1],10),j=parseInt(St[2],10);if(Yt!==1)et(mt,"unacceptable YAML version of the document");if(mt.version=Mt[0],mt.checkLineBreaks=j<2,j!==1&&j!==2)wt(mt,"unsupported YAML version of the document")},"handleYamlDirective"),TAG:t(function(mt,_t,Mt){let St;if(Mt.length!==2)et(mt,"TAG directive accepts exactly two arguments");let Yt=Mt[0];if(St=Mt[1],!_.test(Yt))et(mt,"ill-formed tag handle (first argument) of the TAG directive");if(s.call(mt.tagMap,Yt))et(mt,'there is a previously declared suffix for "'+Yt+'" tag handle');if(!v.test(St))et(mt,"ill-formed tag prefix (second argument) of the TAG directive");try{St=decodeURIComponent(St)}catch(j){et(mt,"tag prefix is malformed: "+St)}mt.tagMap[Yt]=St},"handleTagDirective")};function ue(k,mt,_t,Mt){if(mt<_t){let St=k.input.slice(mt,_t);if(Mt)for(let Yt=0,j=St.length;Yt<j;Yt+=1){let xt=St.charCodeAt(Yt);if(!(xt===9||xt>=32&&xt<=1114111))et(k,"expected valid JSON character")}else if(x.test(St))et(k,"the stream contains non-printable characters");k.result+=St}}t(ue,"captureSegment");function Gt(k,mt,_t,Mt){if(!r.isObject(_t))et(k,"cannot merge mappings; the provided source object is unacceptable");let St=Object.keys(_t);for(let Yt=0,j=St.length;Yt<j;Yt+=1){let xt=St[Yt];if(k.maxTotalMergeKeys!==-1&&++k.totalMergeKeys>k.maxTotalMergeKeys)et(k,"merge keys exceeded maxTotalMergeKeys ("+k.maxTotalMergeKeys+")");if(!s.call(mt,xt))kt(mt,xt,_t[xt]),Mt[xt]=!0}}t(Gt,"mergeMappings");function ie(k,mt,_t,Mt,St,Yt,j,xt,qt){if(Array.isArray(St)){St=Array.prototype.slice.call(St);for(let Ft=0,Ot=St.length;Ft<Ot;Ft+=1){if(Array.isArray(St[Ft]))et(k,"nested arrays are not supported inside keys");if(typeof St==="object"&&F(St[Ft])==="[object Object]")St[Ft]="[object Object]"}}if(typeof St==="object"&&F(St)==="[object Object]")St="[object Object]";if(St=String(St),mt===null)mt={};if(Mt==="tag:yaml.org,2002:merge")if(Array.isArray(Yt))for(let Ft=0,Ot=Yt.length;Ft<Ot;Ft+=1)Gt(k,mt,Yt[Ft],_t);else Gt(k,mt,Yt,_t);else{if(!k.json&&!s.call(_t,St)&&s.call(mt,St))k.line=j||k.line,k.lineStart=xt||k.lineStart,k.position=qt||k.position,et(k,"duplicated mapping key");kt(mt,St,Yt),delete _t[St]}return mt}t(ie,"storeMappingPair");function ne(k){let mt=k.input.charCodeAt(k.position);if(mt===10)k.position++;else if(mt===13){if(k.position++,k.input.charCodeAt(k.position)===10)k.position++}else et(k,"a line break is expected");k.line+=1,k.lineStart=k.position,k.firstTabInLine=-1}t(ne,"readLineBreak");function le(k,mt,_t){let Mt=0,St=k.input.charCodeAt(k.position);while(St!==0){while(V(St)){if(St===9&&k.firstTabInLine===-1)k.firstTabInLine=k.position;St=k.input.charCodeAt(++k.position)}if(mt&&St===35)do St=k.input.charCodeAt(++k.position);while(St!==10&&St!==13&&St!==0);if(U(St)){ne(k),St=k.input.charCodeAt(k.position),Mt++,k.lineIndent=0;while(St===32)k.lineIndent++,St=k.input.charCodeAt(++k.position)}else break}if(_t!==-1&&Mt!==0&&k.lineIndent<_t)wt(k,"deficient indentation");return Mt}t(le,"skipSeparationSpace");function ve(k){let mt=k.position,_t=k.input.charCodeAt(mt);if((_t===45||_t===46)&&_t===k.input.charCodeAt(mt+1)&&_t===k.input.charCodeAt(mt+2)){if(mt+=3,_t=k.input.charCodeAt(mt),_t===0||Z(_t))return!0}return!1}t(ve,"testDocumentSeparator");function Be(k,mt){if(mt===1)k.result+=" ";else if(mt>1)k.result+=r.repeat(`
138
+ `,mt-1)}t(Be,"writeFoldedLines");function Fr(k,mt,_t){let Mt,St,Yt,j,xt,qt,{kind:Ft,result:Ot}=k,zt=k.input.charCodeAt(k.position);if(Z(zt)||J(zt)||zt===35||zt===38||zt===42||zt===33||zt===124||zt===62||zt===39||zt===34||zt===37||zt===64||zt===96)return!1;if(zt===63||zt===45){let Nt=k.input.charCodeAt(k.position+1);if(Z(Nt)||_t&&J(Nt))return!1}k.kind="scalar",k.result="",Mt=St=k.position,Yt=!1;while(zt!==0){if(zt===58){let Nt=k.input.charCodeAt(k.position+1);if(Z(Nt)||_t&&J(Nt))break}else if(zt===35){let Nt=k.input.charCodeAt(k.position-1);if(Z(Nt))break}else if(k.position===k.lineStart&&ve(k)||_t&&J(zt))break;else if(U(zt))if(j=k.line,xt=k.lineStart,qt=k.lineIndent,le(k,!1,-1),k.lineIndent>=mt){Yt=!0,zt=k.input.charCodeAt(k.position);continue}else{k.position=St,k.line=j,k.lineStart=xt,k.lineIndent=qt;break}if(Yt)ue(k,Mt,St,!1),Be(k,k.line-j),Mt=St=k.position,Yt=!1;if(!V(zt))St=k.position+1;zt=k.input.charCodeAt(++k.position)}if(ue(k,Mt,St,!1),k.result)return!0;return k.kind=Ft,k.result=Ot,!1}t(Fr,"readPlainScalar");function Qr(k,mt){let _t,Mt,St=k.input.charCodeAt(k.position);if(St!==39)return!1;k.kind="scalar",k.result="",k.position++,_t=Mt=k.position;while((St=k.input.charCodeAt(k.position))!==0)if(St===39)if(ue(k,_t,k.position,!0),St=k.input.charCodeAt(++k.position),St===39)_t=k.position,k.position++,Mt=k.position;else return!0;else if(U(St))ue(k,_t,Mt,!0),Be(k,le(k,!1,mt)),_t=Mt=k.position;else if(k.position===k.lineStart&&ve(k))et(k,"unexpected end of the document within a single quoted scalar");else if(k.position++,!V(St))Mt=k.position;et(k,"unexpected end of the stream within a single quoted scalar")}t(Qr,"readSingleQuotedScalar");function kr(k,mt){let _t,Mt,St,Yt=k.input.charCodeAt(k.position);if(Yt!==34)return!1;k.kind="scalar",k.result="",k.position++,_t=Mt=k.position;while((Yt=k.input.charCodeAt(k.position))!==0)if(Yt===34)return ue(k,_t,k.position,!0),k.position++,!0;else if(Yt===92){if(ue(k,_t,k.position,!0),Yt=k.input.charCodeAt(++k.position),U(Yt))le(k,!1,mt);else if(Yt<256&&bt[Yt])k.result+=it[Yt],k.position++;else if((St=st(Yt))>0){let j=St,xt=0;for(;j>0;j--)if(Yt=k.input.charCodeAt(++k.position),(St=lt(Yt))>=0)xt=(xt<<4)+St;else et(k,"expected hexadecimal character");k.result+=Bt(xt),k.position++}else et(k,"unknown escape sequence");_t=Mt=k.position}else if(U(Yt))ue(k,_t,Mt,!0),Be(k,le(k,!1,mt)),_t=Mt=k.position;else if(k.position===k.lineStart&&ve(k))et(k,"unexpected end of the document within a double quoted scalar");else if(k.position++,!V(Yt))Mt=k.position;et(k,"unexpected end of the stream within a double quoted scalar")}t(kr,"readDoubleQuotedScalar");function Fi(k,mt){let _t=!0,Mt,St,Yt,j=k.tag,xt,qt=k.anchor,Ft,Ot,zt,Nt,Qt=Object.create(null),Zt,Jt,ee,ge=k.input.charCodeAt(k.position);if(ge===91)Ft=93,Nt=!1,xt=[];else if(ge===123)Ft=125,Nt=!0,xt={};else return!1;if(k.anchor!==null)Lt(k,k.anchor,xt);ge=k.input.charCodeAt(++k.position);while(ge!==0){if(le(k,!0,mt),ge=k.input.charCodeAt(k.position),ge===Ft)return k.position++,k.tag=j,k.anchor=qt,k.kind=Nt?"mapping":"sequence",k.result=xt,!0;else if(!_t)et(k,"missed comma between flow collection entries");else if(ge===44)et(k,"expected the node content, but found ','");if(Jt=Zt=ee=null,Ot=zt=!1,ge===63){let _e=k.input.charCodeAt(k.position+1);if(Z(_e))Ot=zt=!0,k.position++,le(k,!0,mt)}if(Mt=k.line,St=k.lineStart,Yt=k.position,Ne(k,mt,n,!1,!0),Jt=k.tag,Zt=k.result,le(k,!0,mt),ge=k.input.charCodeAt(k.position),(zt||k.line===Mt)&&ge===58)Ot=!0,ge=k.input.charCodeAt(++k.position),le(k,!0,mt),Ne(k,mt,n,!1,!0),ee=k.result;if(Nt)ie(k,xt,Qt,Jt,Zt,ee,Mt,St,Yt);else if(Ot)xt.push(ie(k,null,Qt,Jt,Zt,ee,Mt,St,Yt));else xt.push(Zt);if(le(k,!0,mt),ge=k.input.charCodeAt(k.position),ge===44)_t=!0,ge=k.input.charCodeAt(++k.position);else _t=!1}et(k,"unexpected end of the stream within a flow collection")}t(Fi,"readFlowCollection");function Te(k,mt){let _t,Mt=p,St=!1,Yt=!1,j=mt,xt=0,qt=!1,Ft,Ot=k.input.charCodeAt(k.position);if(Ot===124)_t=!1;else if(Ot===62)_t=!0;else return!1;k.kind="scalar",k.result="";while(Ot!==0)if(Ot=k.input.charCodeAt(++k.position),Ot===43||Ot===45)if(p===Mt)Mt=Ot===43?m:u;else et(k,"repeat of a chomping mode identifier");else if((Ft=dt(Ot))>=0)if(Ft===0)et(k,"bad explicit indentation width of a block scalar; it cannot be less than one");else if(!Yt)j=mt+Ft-1,Yt=!0;else et(k,"repeat of an indentation width identifier");else break;if(V(Ot)){do Ot=k.input.charCodeAt(++k.position);while(V(Ot));if(Ot===35)do Ot=k.input.charCodeAt(++k.position);while(!U(Ot)&&Ot!==0)}while(Ot!==0){ne(k),k.lineIndent=0,Ot=k.input.charCodeAt(k.position);while((!Yt||k.lineIndent<j)&&Ot===32)k.lineIndent++,Ot=k.input.charCodeAt(++k.position);if(!Yt&&k.lineIndent>j)j=k.lineIndent;if(U(Ot)){xt++;continue}if(!Yt&&j===0)et(k,"missing indentation for block scalar");if(k.lineIndent<j){if(Mt===m)k.result+=r.repeat(`
139
+ `,St?1+xt:xt);else if(Mt===p){if(St)k.result+=`
140
+ `}break}if(_t)if(V(Ot))qt=!0,k.result+=r.repeat(`
141
+ `,St?1+xt:xt);else if(qt)qt=!1,k.result+=r.repeat(`
142
+ `,xt+1);else if(xt===0){if(St)k.result+=" "}else k.result+=r.repeat(`
143
+ `,xt);else k.result+=r.repeat(`
144
+ `,St?1+xt:xt);St=!0,Yt=!0,xt=0;let zt=k.position;while(!U(Ot)&&Ot!==0)Ot=k.input.charCodeAt(++k.position);ue(k,zt,k.position,!1)}return!0}t(Te,"readBlockScalar");function nr(k,mt){let{tag:_t,anchor:Mt}=k,St=[],Yt=!1;if(k.firstTabInLine!==-1)return!1;if(k.anchor!==null)Lt(k,k.anchor,St);let j=k.input.charCodeAt(k.position);while(j!==0){if(k.firstTabInLine!==-1)k.position=k.firstTabInLine,et(k,"tab characters must not be used in indentation");if(j!==45)break;let xt=k.input.charCodeAt(k.position+1);if(!Z(xt))break;if(Yt=!0,k.position++,le(k,!0,-1)){if(k.lineIndent<=mt){St.push(null),j=k.input.charCodeAt(k.position);continue}}let qt=k.line;if(Ne(k,mt,l,!1,!0),St.push(k.result),le(k,!0,-1),j=k.input.charCodeAt(k.position),(k.line===qt||k.lineIndent>mt)&&j!==0)et(k,"bad indentation of a sequence entry");else if(k.lineIndent<mt)break}if(Yt)return k.tag=_t,k.anchor=Mt,k.kind="sequence",k.result=St,!0;return!1}t(nr,"readBlockSequence");function we(k,mt,_t){let Mt,St,Yt,j,{tag:xt,anchor:qt}=k,Ft={},Ot=Object.create(null),zt=null,Nt=null,Qt=null,Zt=!1,Jt=!1;if(k.firstTabInLine!==-1)return!1;if(k.anchor!==null)Lt(k,k.anchor,Ft);let ee=k.input.charCodeAt(k.position);while(ee!==0){if(!Zt&&k.firstTabInLine!==-1)k.position=k.firstTabInLine,et(k,"tab characters must not be used in indentation");let ge=k.input.charCodeAt(k.position+1),_e=k.line;if((ee===63||ee===58)&&Z(ge)){if(ee===63){if(Zt)ie(k,Ft,Ot,zt,Nt,null,St,Yt,j),zt=Nt=Qt=null;Jt=!0,Zt=!0,Mt=!0}else if(Zt)Zt=!1,Mt=!0;else et(k,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line");k.position+=1,ee=ge}else{if(St=k.line,Yt=k.lineStart,j=k.position,!Ne(k,_t,c,!1,!0))break;if(k.line===_e){ee=k.input.charCodeAt(k.position);while(V(ee))ee=k.input.charCodeAt(++k.position);if(ee===58){if(ee=k.input.charCodeAt(++k.position),!Z(ee))et(k,"a whitespace character is expected after the key-value separator within a block mapping");if(Zt)ie(k,Ft,Ot,zt,Nt,null,St,Yt,j),zt=Nt=Qt=null;Jt=!0,Zt=!1,Mt=!1,zt=k.tag,Nt=k.result}else if(Jt)et(k,"can not read an implicit mapping pair; a colon is missed");else return k.tag=xt,k.anchor=qt,!0}else if(Jt)et(k,"can not read a block mapping entry; a multiline key may not be an implicit key");else return k.tag=xt,k.anchor=qt,!0}if(k.line===_e||k.lineIndent>mt){if(Zt)St=k.line,Yt=k.lineStart,j=k.position;if(Ne(k,mt,f,!0,Mt))if(Zt)Nt=k.result;else Qt=k.result;if(!Zt)ie(k,Ft,Ot,zt,Nt,Qt,St,Yt,j),zt=Nt=Qt=null;le(k,!0,-1),ee=k.input.charCodeAt(k.position)}if((k.line===_e||k.lineIndent>mt)&&ee!==0)et(k,"bad indentation of a mapping entry");else if(k.lineIndent<mt)break}if(Zt)ie(k,Ft,Ot,zt,Nt,null,St,Yt,j);if(Jt)k.tag=xt,k.anchor=qt,k.kind="mapping",k.result=Ft;return Jt}t(we,"readBlockMapping");function ti(k){let mt=!1,_t=!1,Mt,St,Yt=k.input.charCodeAt(k.position);if(Yt!==33)return!1;if(k.tag!==null)et(k,"duplication of a tag property");if(Yt=k.input.charCodeAt(++k.position),Yt===60)mt=!0,Yt=k.input.charCodeAt(++k.position);else if(Yt===33)_t=!0,Mt="!!",Yt=k.input.charCodeAt(++k.position);else Mt="!";let j=k.position;if(mt){do Yt=k.input.charCodeAt(++k.position);while(Yt!==0&&Yt!==62);if(k.position<k.length)St=k.input.slice(j,k.position),Yt=k.input.charCodeAt(++k.position);else et(k,"unexpected end of the stream within a verbatim tag")}else{while(Yt!==0&&!Z(Yt)){if(Yt===33)if(!_t){if(Mt=k.input.slice(j-1,k.position+1),!_.test(Mt))et(k,"named tag handle cannot contain such characters");_t=!0,j=k.position+1}else et(k,"tag suffix cannot contain exclamation marks");Yt=k.input.charCodeAt(++k.position)}if(St=k.input.slice(j,k.position),T.test(St))et(k,"tag suffix cannot contain flow indicator characters")}if(St&&!v.test(St))et(k,"tag name cannot contain such characters: "+St);try{St=decodeURIComponent(St)}catch(xt){et(k,"tag name is malformed: "+St)}if(mt)k.tag=St;else if(s.call(k.tagMap,Mt))k.tag=k.tagMap[Mt]+St;else if(Mt==="!")k.tag="!"+St;else if(Mt==="!!")k.tag="tag:yaml.org,2002:"+St;else et(k,'undeclared tag handle "'+Mt+'"');return!0}t(ti,"readTagProperty");function Ve(k){let mt=k.input.charCodeAt(k.position);if(mt!==38)return!1;if(k.anchor!==null)et(k,"duplication of an anchor property");mt=k.input.charCodeAt(++k.position);let _t=k.position;while(mt!==0&&!Z(mt)&&!J(mt))mt=k.input.charCodeAt(++k.position);if(k.position===_t)et(k,"name of an anchor node must contain at least one character");return k.anchor=k.input.slice(_t,k.position),!0}t(Ve,"readAnchorProperty");function wr(k){let mt=k.input.charCodeAt(k.position);if(mt!==42)return!1;mt=k.input.charCodeAt(++k.position);let _t=k.position;while(mt!==0&&!Z(mt)&&!J(mt))mt=k.input.charCodeAt(++k.position);if(k.position===_t)et(k,"name of an alias node must contain at least one character");let Mt=k.input.slice(_t,k.position);if(!s.call(k.anchorMap,Mt))et(k,'unidentified alias "'+Mt+'"');return k.result=k.anchorMap[Mt],le(k,!0,-1),!0}t(wr,"readAlias");function Ai(k,mt,_t,Mt){let St=se(k);if(Vt(k),pe(k,mt),k.tag=null,k.anchor=null,k.kind=null,k.result=null,we(k,_t,Mt)&&k.kind==="mapping")return Xt(k),!0;return ae(k),pe(k,St),!1}t(Ai,"tryReadBlockMappingFromProperty");function Ne(k,mt,_t,Mt,St){let Yt,j,xt=1,qt=!1,Ft=!1,Ot=null,zt,Nt,Qt;if(k.depth>=k.maxDepth)et(k,"nesting exceeded maxDepth ("+k.maxDepth+")");if(k.depth+=1,k.listener!==null)k.listener("open",k);k.tag=null,k.anchor=null,k.kind=null,k.result=null;let Zt=Yt=j=f===_t||l===_t;if(Mt){if(le(k,!0,-1)){if(qt=!0,k.lineIndent>mt)xt=1;else if(k.lineIndent===mt)xt=0;else if(k.lineIndent<mt)xt=-1}}if(xt===1)while(!0){let Jt=k.input.charCodeAt(k.position),ee=se(k);if(qt&&(Jt===33&&k.tag!==null||Jt===38&&k.anchor!==null))break;if(!ti(k)&&!Ve(k))break;if(Ot===null)Ot=ee;if(le(k,!0,-1)){if(qt=!0,j=Zt,k.lineIndent>mt)xt=1;else if(k.lineIndent===mt)xt=0;else if(k.lineIndent<mt)xt=-1}else j=!1}if(j)j=qt||St;if(xt===1||f===_t){if(n===_t||c===_t)Nt=mt;else Nt=mt+1;if(Qt=k.position-k.lineStart,xt===1)if(j&&(nr(k,Qt)||we(k,Qt,Nt))||Fi(k,Nt))Ft=!0;else{let Jt=k.input.charCodeAt(k.position);if(Ot!==null&&Zt&&!j&&Jt!==124&&Jt!==62&&Ai(k,Ot,Ot.position-Ot.lineStart,Nt))Ft=!0;else if(Yt&&Te(k,Nt)||Qr(k,Nt)||kr(k,Nt))Ft=!0;else if(wr(k)){if(Ft=!0,k.tag!==null||k.anchor!==null)et(k,"alias node should not have any properties")}else if(Fr(k,Nt,n===_t)){if(Ft=!0,k.tag===null)k.tag="?"}if(k.anchor!==null)Lt(k,k.anchor,k.result)}else if(xt===0)Ft=j&&nr(k,Qt)}if(k.tag===null){if(k.anchor!==null)Lt(k,k.anchor,k.result)}else if(k.tag==="?"){if(k.result!==null&&k.kind!=="scalar")et(k,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+k.kind+'"');for(let Jt=0,ee=k.implicitTypes.length;Jt<ee;Jt+=1)if(zt=k.implicitTypes[Jt],zt.resolve(k.result)){if(k.result=zt.construct(k.result),k.tag=zt.tag,k.anchor!==null)Lt(k,k.anchor,k.result);break}}else if(k.tag!=="!"){if(s.call(k.typeMap[k.kind||"fallback"],k.tag))zt=k.typeMap[k.kind||"fallback"][k.tag];else{zt=null;let Jt=k.typeMap.multi[k.kind||"fallback"];for(let ee=0,ge=Jt.length;ee<ge;ee+=1)if(k.tag.slice(0,Jt[ee].tag.length)===Jt[ee].tag){zt=Jt[ee];break}}if(!zt)et(k,"unknown tag !<"+k.tag+">");if(k.result!==null&&zt.kind!==k.kind)et(k,"unacceptable node kind for !<"+k.tag+'> tag; it should be "'+zt.kind+'", not "'+k.kind+'"');if(!zt.resolve(k.result,k.tag))et(k,"cannot resolve a node with !<"+k.tag+"> explicit tag");else if(k.result=zt.construct(k.result,k.tag),k.anchor!==null)Lt(k,k.anchor,k.result)}if(k.listener!==null)k.listener("close",k);return k.depth-=1,k.tag!==null||k.anchor!==null||Ft}t(Ne,"composeNode");function Mi(k){let mt=k.position,_t=!1,Mt;k.version=null,k.checkLineBreaks=k.legacy,k.tagMap=Object.create(null),k.anchorMap=Object.create(null);while((Mt=k.input.charCodeAt(k.position))!==0){if(le(k,!0,-1),Mt=k.input.charCodeAt(k.position),k.lineIndent>0||Mt!==37)break;_t=!0,Mt=k.input.charCodeAt(++k.position);let St=k.position;while(Mt!==0&&!Z(Mt))Mt=k.input.charCodeAt(++k.position);let Yt=k.input.slice(St,k.position),j=[];if(Yt.length<1)et(k,"directive name must not be less than one character in length");while(Mt!==0){while(V(Mt))Mt=k.input.charCodeAt(++k.position);if(Mt===35){do Mt=k.input.charCodeAt(++k.position);while(Mt!==0&&!U(Mt));break}if(U(Mt))break;St=k.position;while(Mt!==0&&!Z(Mt))Mt=k.input.charCodeAt(++k.position);j.push(k.input.slice(St,k.position))}if(Mt!==0)ne(k);if(s.call(me,Yt))me[Yt](k,Yt,j);else wt(k,'unknown document directive "'+Yt+'"')}if(le(k,!0,-1),k.lineIndent===0&&k.input.charCodeAt(k.position)===45&&k.input.charCodeAt(k.position+1)===45&&k.input.charCodeAt(k.position+2)===45)k.position+=3,le(k,!0,-1);else if(_t)et(k,"directives end mark is expected");if(Ne(k,k.lineIndent-1,f,!1,!0),le(k,!0,-1),k.checkLineBreaks&&w.test(k.input.slice(mt,k.position)))wt(k,"non-ASCII line breaks are interpreted as content");if(k.documents.push(k.result),k.position===k.lineStart&&ve(k)){if(k.input.charCodeAt(k.position)===46)k.position+=3,le(k,!0,-1);return}if(k.position<k.length-1)et(k,"end of the stream or a document separator is expected")}t(Mi,"readDocument");function Rr(k,mt){if(k=String(k),mt=mt||{},k.length!==0){if(k.charCodeAt(k.length-1)!==10&&k.charCodeAt(k.length-1)!==13)k+=`
145
+ `;if(k.charCodeAt(0)===65279)k=k.slice(1)}let _t=new ot(k,mt),Mt=k.indexOf("\x00");if(Mt!==-1)_t.position=Mt,et(_t,"null byte is not allowed in input");_t.input+="\x00";while(_t.input.charCodeAt(_t.position)===32)_t.lineIndent+=1,_t.position+=1;while(_t.position<_t.length-1)Mi(_t);return _t.documents}t(Rr,"loadDocuments");function ei(k,mt,_t){if(mt!==null&&typeof mt==="object"&&typeof _t>"u")_t=mt,mt=null;let Mt=Rr(k,_t);if(typeof mt!=="function")return Mt;for(let St=0,Yt=Mt.length;St<Yt;St+=1)mt(Mt[St])}t(ei,"loadAll2");function yi(k,mt){let _t=Rr(k,mt);if(_t.length===0)return;else if(_t.length===1)return _t[0];throw new e("expected a single document in the stream, but found more")}return t(yi,"load2"),Qn.loadAll=ei,Qn.load=yi,Qn}t(Yg,"requireLoader");var qu={},Ng;function Ug(){if(Ng)return qu;Ng=1;let r=fs(),e=ds(),o=Jn(),a=Object.prototype.toString,s=Object.prototype.hasOwnProperty,n=65279,c=9,l=10,f=13,p=32,u=33,m=34,x=35,w=37,T=38,_=39,v=42,F=44,U=45,V=58,Z=61,J=62,lt=63,st=64,dt=91,Ct=93,Bt=96,kt=123,bt=124,it=125,ot={};ot[0]="\\0",ot[7]="\\a",ot[8]="\\b",ot[9]="\\t",ot[10]="\\n",ot[11]="\\v",ot[12]="\\f",ot[13]="\\r",ot[27]="\\e",ot[34]="\\\"",ot[92]="\\\\",ot[133]="\\N",ot[160]="\\_",ot[8232]="\\L",ot[8233]="\\P";let yt=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],et=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function wt(j,xt){if(xt===null)return{};let qt={},Ft=Object.keys(xt);for(let Ot=0,zt=Ft.length;Ot<zt;Ot+=1){let Nt=Ft[Ot],Qt=String(xt[Nt]);if(Nt.slice(0,2)==="!!")Nt="tag:yaml.org,2002:"+Nt.slice(2);let Zt=j.compiledTypeMap.fallback[Nt];if(Zt&&s.call(Zt.styleAliases,Qt))Qt=Zt.styleAliases[Qt];qt[Nt]=Qt}return qt}t(wt,"compileStyleMap");function Lt(j){let xt,qt,Ft=j.toString(16).toUpperCase();if(j<=255)xt="x",qt=2;else if(j<=65535)xt="u",qt=4;else if(j<=4294967295)xt="U",qt=8;else throw new e("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+xt+r.repeat("0",qt-Ft.length)+Ft}t(Lt,"encodeHex");let Vt=1,Xt=2;function ae(j){this.schema=j.schema||o,this.indent=Math.max(1,j.indent||2),this.noArrayIndent=j.noArrayIndent||!1,this.skipInvalid=j.skipInvalid||!1,this.flowLevel=r.isNothing(j.flowLevel)?-1:j.flowLevel,this.styleMap=wt(this.schema,j.styles||null),this.sortKeys=j.sortKeys||!1,this.lineWidth=j.lineWidth||80,this.noRefs=j.noRefs||!1,this.noCompatMode=j.noCompatMode||!1,this.condenseFlow=j.condenseFlow||!1,this.quotingType=j.quotingType==='"'?Xt:Vt,this.forceQuotes=j.forceQuotes||!1,this.replacer=typeof j.replacer==="function"?j.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}t(ae,"State");function se(j,xt){let qt=r.repeat(" ",xt),Ft=0,Ot="",zt=j.length;while(Ft<zt){let Nt,Qt=j.indexOf(`
146
+ `,Ft);if(Qt===-1)Nt=j.slice(Ft),Ft=zt;else Nt=j.slice(Ft,Qt+1),Ft=Qt+1;if(Nt.length&&Nt!==`
147
+ `)Ot+=qt;Ot+=Nt}return Ot}t(se,"indentString");function pe(j,xt){return`
148
+ `+r.repeat(" ",j.indent*xt)}t(pe,"generateNextLine");function me(j,xt){for(let qt=0,Ft=j.implicitTypes.length;qt<Ft;qt+=1)if(j.implicitTypes[qt].resolve(xt))return!0;return!1}t(me,"testImplicitResolving");function ue(j){return j===p||j===c}t(ue,"isWhitespace");function Gt(j){return j>=32&&j<=126||j>=161&&j<=55295&&j!==8232&&j!==8233||j>=57344&&j<=65533&&j!==n||j>=65536&&j<=1114111}t(Gt,"isPrintable");function ie(j){return Gt(j)&&j!==n&&j!==f&&j!==l}t(ie,"isNsCharOrWhitespace");function ne(j,xt,qt){let Ft=ie(j),Ot=Ft&&!ue(j);return(qt?Ft:Ft&&j!==F&&j!==dt&&j!==Ct&&j!==kt&&j!==it)&&j!==x&&!(xt===V&&!Ot)||ie(xt)&&!ue(xt)&&j===x||xt===V&&Ot}t(ne,"isPlainSafe");function le(j){return Gt(j)&&j!==n&&!ue(j)&&j!==U&&j!==lt&&j!==V&&j!==F&&j!==dt&&j!==Ct&&j!==kt&&j!==it&&j!==x&&j!==T&&j!==v&&j!==u&&j!==bt&&j!==Z&&j!==J&&j!==_&&j!==m&&j!==w&&j!==st&&j!==Bt}t(le,"isPlainSafeFirst");function ve(j){return!ue(j)&&j!==V}t(ve,"isPlainSafeLast");function Be(j,xt){let qt=j.charCodeAt(xt),Ft;if(qt>=55296&&qt<=56319&&xt+1<j.length){if(Ft=j.charCodeAt(xt+1),Ft>=56320&&Ft<=57343)return(qt-55296)*1024+Ft-56320+65536}return qt}t(Be,"codePointAt");function Fr(j){return/^\n* /.test(j)}t(Fr,"needIndentIndicator");let Qr=1,kr=2,Fi=3,Te=4,nr=5;function we(j,xt,qt,Ft,Ot,zt,Nt,Qt){let Zt,Jt=0,ee=null,ge=!1,_e=!1,_s=Ft!==-1,Ei=-1,Oi=le(Be(j,0))&&ve(Be(j,j.length-1));if(xt||Nt)for(Zt=0;Zt<j.length;Jt>=65536?Zt+=2:Zt++){if(Jt=Be(j,Zt),!Gt(Jt))return nr;Oi=Oi&&ne(Jt,ee,Qt),ee=Jt}else{for(Zt=0;Zt<j.length;Jt>=65536?Zt+=2:Zt++){if(Jt=Be(j,Zt),Jt===l){if(ge=!0,_s)_e=_e||Zt-Ei-1>Ft&&j[Ei+1]!==" ",Ei=Zt}else if(!Gt(Jt))return nr;Oi=Oi&&ne(Jt,ee,Qt),ee=Jt}_e=_e||_s&&(Zt-Ei-1>Ft&&j[Ei+1]!==" ")}if(!ge&&!_e){if(Oi&&!Nt&&!Ot(j))return Qr;return zt===Xt?nr:kr}if(qt>9&&Fr(j))return nr;if(!Nt)return _e?Te:Fi;return zt===Xt?nr:kr}t(we,"chooseScalarStyle");function ti(j,xt,qt,Ft,Ot){j.dump=function(){if(xt.length===0)return j.quotingType===Xt?'""':"''";if(!j.noCompatMode){if(yt.indexOf(xt)!==-1||et.test(xt))return j.quotingType===Xt?'"'+xt+'"':"'"+xt+"'"}let zt=j.indent*Math.max(1,qt),Nt=j.lineWidth===-1?-1:Math.max(Math.min(j.lineWidth,40),j.lineWidth-zt),Qt=Ft||j.flowLevel>-1&&qt>=j.flowLevel;function Zt(Jt){return me(j,Jt)}switch(t(Zt,"testAmbiguity"),we(xt,Qt,j.indent,Nt,Zt,j.quotingType,j.forceQuotes&&!Ft,Ot)){case Qr:return xt;case kr:return"'"+xt.replace(/'/g,"''")+"'";case Fi:return"|"+Ve(xt,j.indent)+wr(se(xt,zt));case Te:return">"+Ve(xt,j.indent)+wr(se(Ai(xt,Nt),zt));case nr:return'"'+Mi(xt)+'"';default:throw new e("impossible error: invalid scalar style")}}()}t(ti,"writeScalar");function Ve(j,xt){let qt=Fr(j)?String(xt):"",Ft=j[j.length-1]===`
149
+ `,zt=Ft&&(j[j.length-2]===`
150
+ `||j===`
151
+ `)?"+":Ft?"":"-";return qt+zt+`
152
+ `}t(Ve,"blockHeader");function wr(j){return j[j.length-1]===`
153
+ `?j.slice(0,-1):j}t(wr,"dropEndingNewline");function Ai(j,xt){let qt=/(\n+)([^\n]*)/g,Ft=function(){let Qt=j.indexOf(`
154
+ `);return Qt=Qt!==-1?Qt:j.length,qt.lastIndex=Qt,Ne(j.slice(0,Qt),xt)}(),Ot=j[0]===`
155
+ `||j[0]===" ",zt,Nt;while(Nt=qt.exec(j)){let Qt=Nt[1],Zt=Nt[2];zt=Zt[0]===" ",Ft+=Qt+(!Ot&&!zt&&Zt!==""?`
156
+ `:"")+Ne(Zt,xt),Ot=zt}return Ft}t(Ai,"foldString");function Ne(j,xt){if(j===""||j[0]===" ")return j;let qt=/ [^ ]/g,Ft,Ot=0,zt,Nt=0,Qt=0,Zt="";while(Ft=qt.exec(j)){if(Qt=Ft.index,Qt-Ot>xt)zt=Nt>Ot?Nt:Qt,Zt+=`
157
+ `+j.slice(Ot,zt),Ot=zt+1;Nt=Qt}if(Zt+=`
158
+ `,j.length-Ot>xt&&Nt>Ot)Zt+=j.slice(Ot,Nt)+`
159
+ `+j.slice(Nt+1);else Zt+=j.slice(Ot);return Zt.slice(1)}t(Ne,"foldLine");function Mi(j){let xt="",qt=0;for(let Ft=0;Ft<j.length;qt>=65536?Ft+=2:Ft++){qt=Be(j,Ft);let Ot=ot[qt];if(!Ot&&Gt(qt)){if(xt+=j[Ft],qt>=65536)xt+=j[Ft+1]}else xt+=Ot||Lt(qt)}return xt}t(Mi,"escapeString");function Rr(j,xt,qt){let Ft="",Ot=j.tag;for(let zt=0,Nt=qt.length;zt<Nt;zt+=1){let Qt=qt[zt];if(j.replacer)Qt=j.replacer.call(qt,String(zt),Qt);if(_t(j,xt,Qt,!1,!1)||typeof Qt>"u"&&_t(j,xt,null,!1,!1)){if(Ft!=="")Ft+=","+(!j.condenseFlow?" ":"");Ft+=j.dump}}j.tag=Ot,j.dump="["+Ft+"]"}t(Rr,"writeFlowSequence");function ei(j,xt,qt,Ft){let Ot="",zt=j.tag;for(let Nt=0,Qt=qt.length;Nt<Qt;Nt+=1){let Zt=qt[Nt];if(j.replacer)Zt=j.replacer.call(qt,String(Nt),Zt);if(_t(j,xt+1,Zt,!0,!0,!1,!0)||typeof Zt>"u"&&_t(j,xt+1,null,!0,!0,!1,!0)){if(!Ft||Ot!=="")Ot+=pe(j,xt);if(j.dump&&l===j.dump.charCodeAt(0))Ot+="-";else Ot+="- ";Ot+=j.dump}}j.tag=zt,j.dump=Ot||"[]"}t(ei,"writeBlockSequence");function yi(j,xt,qt){let Ft="",Ot=j.tag,zt=Object.keys(qt);for(let Nt=0,Qt=zt.length;Nt<Qt;Nt+=1){let Zt="";if(Ft!=="")Zt+=", ";if(j.condenseFlow)Zt+='"';let Jt=zt[Nt],ee=qt[Jt];if(j.replacer)ee=j.replacer.call(qt,Jt,ee);if(!_t(j,xt,Jt,!1,!1))continue;if(j.dump.length>1024)Zt+="? ";if(Zt+=j.dump+(j.condenseFlow?'"':"")+":"+(j.condenseFlow?"":" "),!_t(j,xt,ee,!1,!1))continue;Zt+=j.dump,Ft+=Zt}j.tag=Ot,j.dump="{"+Ft+"}"}t(yi,"writeFlowMapping");function k(j,xt,qt,Ft){let Ot="",zt=j.tag,Nt=Object.keys(qt);if(j.sortKeys===!0)Nt.sort();else if(typeof j.sortKeys==="function")Nt.sort(j.sortKeys);else if(j.sortKeys)throw new e("sortKeys must be a boolean or a function");for(let Qt=0,Zt=Nt.length;Qt<Zt;Qt+=1){let Jt="";if(!Ft||Ot!=="")Jt+=pe(j,xt);let ee=Nt[Qt],ge=qt[ee];if(j.replacer)ge=j.replacer.call(qt,ee,ge);if(!_t(j,xt+1,ee,!0,!0,!0))continue;let _e=j.tag!==null&&j.tag!=="?"||j.dump&&j.dump.length>1024;if(_e)if(j.dump&&l===j.dump.charCodeAt(0))Jt+="?";else Jt+="? ";if(Jt+=j.dump,_e)Jt+=pe(j,xt);if(!_t(j,xt+1,ge,!0,_e))continue;if(j.dump&&l===j.dump.charCodeAt(0))Jt+=":";else Jt+=": ";Jt+=j.dump,Ot+=Jt}j.tag=zt,j.dump=Ot||"{}"}t(k,"writeBlockMapping");function mt(j,xt,qt){let Ft=qt?j.explicitTypes:j.implicitTypes;for(let Ot=0,zt=Ft.length;Ot<zt;Ot+=1){let Nt=Ft[Ot];if((Nt.instanceOf||Nt.predicate)&&(!Nt.instanceOf||typeof xt==="object"&&xt instanceof Nt.instanceOf)&&(!Nt.predicate||Nt.predicate(xt))){if(qt)if(Nt.multi&&Nt.representName)j.tag=Nt.representName(xt);else j.tag=Nt.tag;else j.tag="?";if(Nt.represent){let Qt=j.styleMap[Nt.tag]||Nt.defaultStyle,Zt;if(a.call(Nt.represent)==="[object Function]")Zt=Nt.represent(xt,Qt);else if(s.call(Nt.represent,Qt))Zt=Nt.represent[Qt](xt,Qt);else throw new e("!<"+Nt.tag+'> tag resolver accepts not "'+Qt+'" style');j.dump=Zt}return!0}}return!1}t(mt,"detectType");function _t(j,xt,qt,Ft,Ot,zt,Nt){if(j.tag=null,j.dump=qt,!mt(j,qt,!1))mt(j,qt,!0);let Qt=a.call(j.dump),Zt=Ft;if(Ft)Ft=j.flowLevel<0||j.flowLevel>xt;let Jt=Qt==="[object Object]"||Qt==="[object Array]",ee,ge;if(Jt)ee=j.duplicates.indexOf(qt),ge=ee!==-1;if(j.tag!==null&&j.tag!=="?"||ge||j.indent!==2&&xt>0)Ot=!1;if(ge&&j.usedDuplicates[ee])j.dump="*ref_"+ee;else{if(Jt&&ge&&!j.usedDuplicates[ee])j.usedDuplicates[ee]=!0;if(Qt==="[object Object]"){if(Ft&&Object.keys(j.dump).length!==0){if(k(j,xt,j.dump,Ot),ge)j.dump="&ref_"+ee+j.dump}else if(yi(j,xt,j.dump),ge)j.dump="&ref_"+ee+" "+j.dump}else if(Qt==="[object Array]"){if(Ft&&j.dump.length!==0){if(j.noArrayIndent&&!Nt&&xt>0)ei(j,xt-1,j.dump,Ot);else ei(j,xt,j.dump,Ot);if(ge)j.dump="&ref_"+ee+j.dump}else if(Rr(j,xt,j.dump),ge)j.dump="&ref_"+ee+" "+j.dump}else if(Qt==="[object String]"){if(j.tag!=="?")ti(j,j.dump,xt,zt,Zt)}else if(Qt==="[object Undefined]")return!1;else{if(j.skipInvalid)return!1;throw new e("unacceptable kind of an object to dump "+Qt)}if(j.tag!==null&&j.tag!=="?"){let _e=encodeURI(j.tag[0]==="!"?j.tag.slice(1):j.tag).replace(/!/g,"%21");if(j.tag[0]==="!")_e="!"+_e;else if(_e.slice(0,18)==="tag:yaml.org,2002:")_e="!!"+_e.slice(18);else _e="!<"+_e+">";j.dump=_e+" "+j.dump}}return!0}t(_t,"writeNode");function Mt(j,xt){let qt=[],Ft=[];St(j,qt,Ft);let Ot=Ft.length;for(let zt=0;zt<Ot;zt+=1)xt.duplicates.push(qt[Ft[zt]]);xt.usedDuplicates=Array(Ot)}t(Mt,"getDuplicateReferences");function St(j,xt,qt){if(j!==null&&typeof j==="object"){let Ft=xt.indexOf(j);if(Ft!==-1){if(qt.indexOf(Ft)===-1)qt.push(Ft)}else if(xt.push(j),Array.isArray(j))for(let Ot=0,zt=j.length;Ot<zt;Ot+=1)St(j[Ot],xt,qt);else{let Ot=Object.keys(j);for(let zt=0,Nt=Ot.length;zt<Nt;zt+=1)St(j[Ot[zt]],xt,qt)}}}t(St,"inspectNode");function Yt(j,xt){xt=xt||{};let qt=new ae(xt);if(!qt.noRefs)Mt(j,qt);let Ft=j;if(qt.replacer)Ft=qt.replacer.call({"":Ft},"",Ft);if(_t(qt,0,Ft,!0,!0))return qt.dump+`
160
+ `;return""}return t(Yt,"dump2"),qu.dump=Yt,qu}t(Ug,"requireDumper");var Wg;function jg(){if(Wg)return tr;Wg=1;let r=Yg(),e=Ug();function o(a,s){return function(){throw Error("Function yaml."+a+" is removed in js-yaml 4. Use yaml."+s+" instead, which is now safe by default.")}}return t(o,"renamed"),tr.Type=er(),tr.Schema=Nu(),tr.FAILSAFE_SCHEMA=Yu(),tr.JSON_SCHEMA=Vu(),tr.CORE_SCHEMA=Ku(),tr.DEFAULT_SCHEMA=Jn(),tr.load=r.load,tr.loadAll=r.loadAll,tr.dump=e.dump,tr.YAMLException=ds(),tr.types={binary:Ju(),float:Xu(),map:Hu(),null:Uu(),pairs:ef(),set:rf(),timestamp:Zu(),bool:ju(),int:Gu(),merge:Qu(),omap:tf(),seq:zu(),str:Wu()},tr.safeLoad=o("safeLoad","load"),tr.safeLoadAll=o("safeLoadAll","loadAll"),tr.safeDump=o("safeDump","dump"),tr}t(jg,"requireJsYaml");var t2=jg(),e2=zg(t2),{Type:I3,Schema:$3,FAILSAFE_SCHEMA:D3,JSON_SCHEMA:en,CORE_SCHEMA:P3,DEFAULT_SCHEMA:R3,load:tn,loadAll:q3,dump:N3,YAMLException:W3,types:z3,safeLoad:H3,safeLoadAll:Y3,safeDump:U3}=e2;var Ho=t((r,e)=>{let{theme:o,themeVariables:a}=e,{useGradient:s,gradientStart:n,gradientStop:c}=a??{},l=r.attr("id"),f=o?.includes("dark")?"#FFFFFF":"#000000",p=t((m,x,w)=>r.append("defs").append("filter").attr("id",m).attr("height",x).attr("width",x).append("feDropShadow").attr("dx",w).attr("dy",w).attr("stdDeviation",0).attr("flood-opacity","0.06").attr("flood-color",f),"dropShadow");if(p(`${l}-drop-shadow`,"130%","4"),p(`${l}-drop-shadow-small`,"150%","2"),!s)return;let u=r.append("linearGradient").attr("id",`${l}-gradient`).attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");u.append("svg:stop").attr("offset","0%").attr("stop-color",n).attr("stop-opacity",1),u.append("svg:stop").attr("offset","100%").attr("stop-color",c).attr("stop-opacity",1)},"insertLookDefs");var Gg=t((r)=>{let{handDrawnSeed:e}=d();return{fill:r,hachureAngle:120,hachureGap:1.5,fillWeight:1.5,roughness:0.7,stroke:r,seed:e}},"solidStateFill"),r2=t((r)=>{if(Array.isArray(r))return r;if(!r)return[];return r.split(";").map((e)=>e.trim()).filter(Boolean)},"normalizeStyleList"),jr=t((r)=>{let e=i2([...r.cssCompiledStyles||[],...r.cssStyles||[],...r2(r.labelStyle)]);return{stylesMap:e,stylesArray:[...e]}},"compileStyles"),i2=t((r)=>{let e=new Map;return r.forEach((o)=>{let[a,s]=o.split(":");e.set(a.trim(),s?.trim())}),e},"styles2Map"),Gi=t((r)=>r==="color"||r==="font-size"||r==="font-family"||r==="font-weight"||r==="font-style"||r==="text-decoration"||r==="text-align"||r==="text-transform"||r==="line-height"||r==="letter-spacing"||r==="word-spacing"||r==="text-shadow"||r==="text-overflow"||r==="white-space"||r==="word-wrap"||r==="word-break"||r==="overflow-wrap"||r==="hyphens","isLabelStyle"),L=t((r)=>{let{stylesArray:e}=jr(r),o=[],a=[],s=[],n=[];return e.forEach((c)=>{let l=c[0];if(Gi(l))o.push(c.join(":")+" !important");else{if(a.push(c.join(":")+" !important"),l.includes("stroke"))s.push(c.join(":")+" !important");if(l==="fill")n.push(c.join(":")+" !important")}}),{labelStyles:o.join(";"),nodeStyles:a.join(";"),stylesArray:e,borderStyles:s,backgroundStyles:n}},"styles2String"),Kt=t((r,e)=>{let{themeVariables:o,handDrawnSeed:a}=d(),{nodeBorder:s,mainBkg:n}=o,{stylesMap:c}=jr(r);return Object.assign({roughness:0.7,fill:c.get("fill")||n,fillStyle:"hachure",fillWeight:1.5,hachureGap:1.5,stroke:c.get("stroke")||s,seed:a,strokeWidth:c.get("stroke-width")?.replace("px","")||1.3,fillLineDash:[0,0],strokeLineDash:o2(c.get("stroke-dasharray"))},e)},"userNodeOverrides"),o2=t((r)=>{if(!r)return[0,0];let e=r.trim().split(/\s+/).map(Number);if(e.length===1){let s=isNaN(e[0])?0:e[0];return[s,s]}let o=isNaN(e[0])?0:e[0],a=isNaN(e[1])?0:e[1];return[o,a]},"getStrokeDashArray");var of=(r,e,o,a="")=>{let s=r.split(":");if(r.slice(0,1)==="@"){if(s.length<2||s.length>3)return null;a=s.shift().slice(1)}if(s.length>3||!s.length)return null;if(s.length>1){let l=s.pop(),f=s.pop(),p={provider:s.length>0?s[0]:a,prefix:f,name:l};return e&&!tl(p)?null:p}let n=s[0],c=n.split("-");if(c.length>1){let l={provider:a,prefix:c.shift(),name:c.join("-")};return e&&!tl(l)?null:l}if(o&&a===""){let l={provider:a,prefix:"",name:n};return e&&!tl(l,o)?null:l}return null},tl=(r,e)=>{if(!r)return!1;return!!((e&&r.prefix===""||!!r.prefix)&&!!r.name)};var s2=Object.freeze({left:0,top:0,width:16,height:16}),gs=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),sf=Object.freeze({...s2,...gs}),Xg=Object.freeze({...sf,body:"",hidden:!1});function Vg(r,e){let o={};if(!r.hFlip!==!e.hFlip)o.hFlip=!0;if(!r.vFlip!==!e.vFlip)o.vFlip=!0;let a=((r.rotate||0)+(e.rotate||0))%4;if(a)o.rotate=a;return o}function af(r,e){let o=Vg(r,e);for(let a in Xg)if(a in gs){if(a in r&&!(a in o))o[a]=gs[a]}else if(a in e)o[a]=e[a];else if(a in r)o[a]=r[a];return o}function Kg(r,e){let o=r.icons,a=r.aliases||Object.create(null),s=Object.create(null);function n(c){if(o[c])return s[c]=[];if(!(c in s)){s[c]=null;let l=a[c]&&a[c].parent,f=l&&n(l);if(f)s[c]=[l].concat(f)}return s[c]}return(e||Object.keys(o).concat(Object.keys(a))).forEach(n),s}function Zg(r,e,o){let a=r.icons,s=r.aliases||Object.create(null),n={};function c(l){n=af(a[l]||s[l],n)}return c(e),o.forEach(c),af(r,n)}function nf(r,e){if(r.icons[e])return Zg(r,e,[]);let o=Kg(r,[e])[e];return o?Zg(r,e,o):null}var a2=Object.freeze({width:null,height:null}),Qg=Object.freeze({...a2,...gs});var n2=/(-?[0-9.]*[0-9]+[0-9.]*)/g,l2=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function lf(r,e,o){if(e===1)return r;if(o=o||100,typeof r==="number")return Math.ceil(r*e*o)/o;if(typeof r!=="string")return r;let a=r.split(n2);if(a===null||!a.length)return r;let s=[],n=a.shift(),c=l2.test(n);while(!0){if(c){let l=parseFloat(n);if(isNaN(l))s.push(n);else s.push(Math.ceil(l*e*o)/o)}else s.push(n);if(n=a.shift(),n===void 0)return s.join("");c=!c}}function h2(r,e="defs"){let o="",a=r.indexOf("<"+e);while(a>=0){let s=r.indexOf(">",a),n=r.indexOf("</"+e);if(s===-1||n===-1)break;let c=r.indexOf(">",n);if(c===-1)break;o+=r.slice(s+1,n).trim(),r=r.slice(0,a).trim()+r.slice(c+1)}return{defs:o,content:r}}function c2(r,e){return r?"<defs>"+r+"</defs>"+e:e}function Jg(r,e,o){let a=h2(r);return c2(a.defs,e+a.content+o)}var u2=(r)=>r==="unset"||r==="undefined"||r==="none";function hf(r,e){let o={...sf,...r},a={...Qg,...e},s={left:o.left,top:o.top,width:o.width,height:o.height},n=o.body;[o,a].forEach((_)=>{let v=[],{hFlip:F,vFlip:U,rotate:V}=_;if(F)if(U)V+=2;else v.push("translate("+(s.width+s.left).toString()+" "+(0-s.top).toString()+")"),v.push("scale(-1 1)"),s.top=s.left=0;else if(U)v.push("translate("+(0-s.left).toString()+" "+(s.height+s.top).toString()+")"),v.push("scale(1 -1)"),s.top=s.left=0;let Z;if(V<0)V-=Math.floor(V/4)*4;switch(V=V%4,V){case 1:Z=s.height/2+s.top,v.unshift("rotate(90 "+Z.toString()+" "+Z.toString()+")");break;case 2:v.unshift("rotate(180 "+(s.width/2+s.left).toString()+" "+(s.height/2+s.top).toString()+")");break;case 3:Z=s.width/2+s.left,v.unshift("rotate(-90 "+Z.toString()+" "+Z.toString()+")")}if(V%2===1){if(s.left!==s.top)Z=s.left,s.left=s.top,s.top=Z;if(s.width!==s.height)Z=s.width,s.width=s.height,s.height=Z}if(v.length)n=Jg(n,'<g transform="'+v.join(" ")+'">',"</g>")});let{width:c,height:l}=a,{width:f,height:p}=s,u,m;if(c===null)m=l===null?"1em":l==="auto"?p:l,u=lf(m,f/p);else u=c==="auto"?f:c,m=l===null?lf(u,p/f):l==="auto"?p:l;let x={},w=(_,v)=>{if(!u2(v))x[_]=v.toString()};w("width",u),w("height",m);let T=[s.left,s.top,f,p];return x.viewBox=T.join(" "),{attributes:x,viewBox:T,body:n}}var f2=/\sid="(\S+)"/g,tm=new Map;function d2(r){r=r.replace(/[0-9]+$/,"")||"a";let e=tm.get(r)||0;return tm.set(r,e+1),e?`${r}${e}`:r}function cf(r){let e=[],o;while(o=f2.exec(r))e.push(o[1]);if(!e.length)return r;let a="suffix"+(Math.random()*16777216|Date.now()).toString(16);return e.forEach((s)=>{let n=d2(s),c=s.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");r=r.replace(new RegExp('([#;"])('+c+')([")]|\\.[a-z])',"g"),"$1"+n+a+"$3")}),r=r.replace(new RegExp(a,"g"),""),r}function uf(r,e){let o=r.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(let a in e)o+=" "+a+'="'+e[a]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+o+">"+r+"</svg>"}var lc={body:'<g><rect width="80" height="80" style="fill: #087ebf; stroke-width: 0px;"/><text transform="translate(21.16 64.67)" style="fill: #fff; font-family: ArialMT, Arial; font-size: 67.75px;"><tspan x="0" y="0">?</tspan></text></g>',height:80,width:80},ff=new Map,em=new Map,aa=t((r)=>{for(let e of r){if(!e.name)throw Error('Invalid icon loader. Must have a "name" property with non-empty string value.');if(i.debug("Registering icon pack:",e.name),"loader"in e)em.set(e.name,e.loader);else if("icons"in e)ff.set(e.name,e.icons);else throw i.error("Invalid icon loader:",e),Error('Invalid icon loader. Must have either "icons" or "loader" property.')}},"registerIconPacks"),rm=t(async(r,e)=>{let o=of(r,!0,e!==void 0);if(!o)throw Error(`Invalid icon name: ${r}`);let a=o.prefix||e;if(!a)throw Error(`Icon name must contain a prefix: ${r}`);let s=ff.get(a);if(!s){let c=em.get(a);if(!c)throw Error(`Icon set not found: ${o.prefix}`);try{s={...await c(),prefix:a},ff.set(a,s)}catch(l){throw i.error(l),Error(`Failed to load icon set: ${o.prefix}`)}}let n=nf(s,o.name);if(!n)throw Error(`Icon not found: ${r}`);return n},"getRegisteredIconData"),el=t(async(r)=>{try{return await rm(r),!0}catch{return!1}},"isIconAvailable"),nn=t(async(r,e,o)=>{let a;try{a=await rm(r,e?.fallbackPrefix)}catch(c){i.error(c),a=lc}let s=hf(a,e),n=uf(cf(s.body),{...s.attributes,...o});return G(n,A())},"getIconSVG");var xm=rt(Ca(),1);function no(r,e){if(typeof r!=="function"||e!=null&&typeof e!=="function")throw TypeError("Expected a function");let o=function(...a){let s=e?e.apply(this,a):a[0],n=o.cache;if(n.has(s))return n.get(s);let c=r.apply(this,a);return o.cache=n.set(s,c)||n,c};return o.cache=new(no.Cache||Map),o}no.Cache=Map;function ia(r){return r==null||typeof r!=="object"&&typeof r!=="function"}function Er(r){if(r==null)return r===void 0?"[object Undefined]":"[object Null]";return Object.prototype.toString.call(r)}var Uo="[object RegExp]",ui="[object String]",di="[object Number]",mi="[object Boolean]",fi="[object Arguments]",jo="[object Symbol]",qo="[object Date]",Vo="[object Map]",Go="[object Set]",Wo="[object Array]";var Yo="[object ArrayBuffer]",Xo="[object Object]";var Ko="[object DataView]",Zo="[object Uint8Array]",Qo="[object Uint8ClampedArray]",Jo="[object Uint16Array]",es="[object Uint32Array]";var ts="[object Int8Array]",ns="[object Int16Array]",rs="[object Int32Array]";var as="[object Float32Array]",is="[object Float64Array]";function ms(r){return ArrayBuffer.isView(r)&&!(r instanceof DataView)}function Lr(r){return ms(r)}function lm(){}function hm(r){if(ia(r))return r;if(Array.isArray(r)||ms(r)||r instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&r instanceof SharedArrayBuffer)return r.slice(0);let e=Object.getPrototypeOf(r);if(e==null)return Object.assign(Object.create(e),r);let o=e.constructor;if(r instanceof Date||r instanceof Map||r instanceof Set)return new o(r);if(r instanceof RegExp){let a=new o(r);return a.lastIndex=r.lastIndex,a}if(r instanceof DataView)return new o(r.buffer.slice(0));if(r instanceof Error){let a;if(r instanceof AggregateError)a=new o(r.errors,r.message,{cause:r.cause});else a=new o(r.message,{cause:r.cause});return a.stack=r.stack,Object.assign(a,r),a}if(typeof File<"u"&&r instanceof File)return new o([r],r.name,{type:r.type,lastModified:r.lastModified});if(typeof r==="object")return Object.assign(Object.create(e),r);return r}function rl(r){return Object.getOwnPropertySymbols(r).filter((e)=>Object.prototype.propertyIsEnumerable.call(r,e))}var df=typeof globalThis==="object"&&globalThis||typeof window==="object"&&window||typeof self==="object"&&self||typeof global==="object"&&global||function(){return this}();function hi(r){return typeof df.Buffer<"u"&&df.Buffer.isBuffer(r)}function cm(r){return r==="__proto__"}function il(r){if(typeof r!=="object")return!1;if(r==null)return!1;if(Object.getPrototypeOf(r)===null)return!0;if(Object.prototype.toString.call(r)!=="[object Object]"){let o=r[Symbol.toStringTag];if(o==null)return!1;if(!Object.getOwnPropertyDescriptor(r,Symbol.toStringTag)?.writable)return!1;return r.toString()===`[object ${o}]`}let e=r;while(Object.getPrototypeOf(e)!==null)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(r)===e}function um(r,e){return ys(r,void 0,r,new Map,e)}function ys(r,e,o,a=new Map,s=void 0){let n=s?.(r,e,o,a);if(n!==void 0)return n;if(ia(r))return r;if(a.has(r))return a.get(r);if(Array.isArray(r)){let c=Array(r.length);a.set(r,c);for(let l=0;l<r.length;l++)c[l]=ys(r[l],l,o,a,s);if(Object.hasOwn(r,"index"))c.index=r.index;if(Object.hasOwn(r,"input"))c.input=r.input;return c}if(r instanceof Date)return new Date(r.getTime());if(r instanceof RegExp){let c=new RegExp(r.source,r.flags);return c.lastIndex=r.lastIndex,c}if(r instanceof Map){let c=new Map;a.set(r,c);for(let[l,f]of r)c.set(l,ys(f,l,o,a,s));return c}if(r instanceof Set){let c=new Set;a.set(r,c);for(let l of r)c.add(ys(l,void 0,o,a,s));return c}if(hi(r))return r.subarray();if(ms(r)){let c=new(Object.getPrototypeOf(r)).constructor(r.length);a.set(r,c);for(let l=0;l<r.length;l++)c[l]=ys(r[l],l,o,a,s);return c}if(r instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&r instanceof SharedArrayBuffer)return r.slice(0);if(r instanceof DataView){let c=new DataView(r.buffer.slice(0),r.byteOffset,r.byteLength);return a.set(r,c),vr(c,r,o,a,s),c}if(typeof File<"u"&&r instanceof File){let c=new File([r],r.name,{type:r.type});return a.set(r,c),vr(c,r,o,a,s),c}if(typeof Blob<"u"&&r instanceof Blob){let c=new Blob([r],{type:r.type});return a.set(r,c),vr(c,r,o,a,s),c}if(r instanceof Error){let c=structuredClone(r);return a.set(r,c),c.message=r.message,c.name=r.name,c.stack=r.stack,c.cause=r.cause,c.constructor=r.constructor,vr(c,r,o,a,s),c}if(r instanceof Boolean){let c=new Boolean(r.valueOf());return a.set(r,c),vr(c,r,o,a,s),c}if(r instanceof Number){let c=new Number(r.valueOf());return a.set(r,c),vr(c,r,o,a,s),c}if(r instanceof String){let c=new String(r.valueOf());return a.set(r,c),vr(c,r,o,a,s),c}if(typeof r==="object"&&B2(r)){let c=Object.create(Object.getPrototypeOf(r));return a.set(r,c),vr(c,r,o,a,s),c}return r}function vr(r,e,o=r,a,s){let n=[...Object.keys(e),...rl(e)];for(let c=0;c<n.length;c++){let l=n[c],f=Object.getOwnPropertyDescriptor(r,l);if(f==null||f.writable)r[l]=ys(e[l],l,o,a,s)}}function B2(r){switch(Er(r)){case fi:case Wo:case Yo:case Ko:case mi:case qo:case as:case is:case ts:case ns:case rs:case Vo:case di:case Xo:case Uo:case Go:case ui:case jo:case Zo:case Qo:case Jo:case es:return!0;default:return!1}}function fm(r,e){return um(r,(o,a,s,n)=>{let c=e?.(o,a,s,n);if(c!==void 0)return c;if(typeof r!=="object")return;if(Er(r)==="[object Object]"&&typeof r.constructor!=="function"){let l={};return n.set(r,l),vr(l,r,s,n),l}switch(Object.prototype.toString.call(r)){case di:case ui:case mi:{let l=new r.constructor(r?.valueOf());return vr(l,r),l}case fi:{let l={};return vr(l,r),l.length=r.length,l[Symbol.iterator]=r[Symbol.iterator],l}default:return}})}function pf(r){return fm(r)}function Wi(r){return r!==null&&typeof r==="object"&&Er(r)==="[object Arguments]"}function Ba(r){return typeof r==="object"&&r!==null}function dm(r){return Number.isSafeInteger(r)&&r>=0}function os(r){return r!=null&&typeof r!=="function"&&dm(r.length)}function pm(r){return Ba(r)&&os(r)}function gm(r,...e){let o=e.slice(0,-1),a=e[e.length-1],s=r;for(let n=0;n<o.length;n++){let c=o[n];s=ol(s,c,a,new Map)}return s}function ol(r,e,o,a){if(ia(r))r=Object(r);if(e==null||typeof e!=="object")return r;if(a.has(e))return hm(a.get(e));if(a.set(e,r),Array.isArray(e)){e=e.slice();for(let n=0;n<e.length;n++)if(!(n in e))e[n]=void 0}let s=[...Object.keys(e),...rl(e)];for(let n=0;n<s.length;n++){let c=s[n];if(cm(c))continue;let l=e[c],f=r[c];if(Wi(l))l={...l};if(Wi(f))f={...f};if(hi(l))l=pf(l);if(Array.isArray(l))if(Array.isArray(f)){let u=[],m=Reflect.ownKeys(f);for(let x=0;x<m.length;x++){let w=m[x];u[w]=f[w]}f=u}else if(pm(f)){let u=[];for(let m=0;m<f.length;m++)u[m]=f[m];f=u}else f=[];let p=o(f,l,c,r,e,a);if(p!==void 0)r[c]=p;else if(Array.isArray(l))r[c]=ol(f,l,o,a);else if(Ba(f)&&Ba(l)&&(il(f)||il(l)||Lr(f)||Lr(l)))r[c]=ol(f,l,o,a);else if(f==null&&il(l))r[c]=ol({},l,o,a);else if(f==null&&Lr(l))r[c]=pf(l);else if(f===void 0||l!==void 0)r[c]=l}return r}function gf(r,...e){return gm(r,...e,lm)}var pc="​",v2={curveBasis:ao,curveBasisClosed:zn,curveBasisOpen:Hn,curveBumpX:ka,curveBumpY:la,curveBundle:cu,curveCardinalClosed:uu,curveCardinalOpen:fu,curveCardinal:ca,curveCatmullRomClosed:du,curveCatmullRomOpen:pu,curveCatmullRom:fa,curveLinear:Ur,curveLinearClosed:Vn,curveMonotoneX:da,curveMonotoneY:pa,curveNatural:hs,curveStep:us,curveStepAfter:ma,curveStepBefore:ga},L2=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,F2=t(function(r,e){let o=Cm(r,/(?:init\b)|(?:initialize\b)/),a={};if(Array.isArray(o)){let c=o.map((l)=>l.args);Ps(c),a=Ee(a,[...c])}else a=o.args;if(!a)return;let s=ri(r,e),n="config";if(a[n]!==void 0){if(s==="flowchart-v2")s="flowchart";a[s]=a[n],delete a[n]}return a},"detectInit"),Cm=t(function(r,e=null){try{let o=new RegExp(`[%]{2}(?![{]${L2.source})(?=[}][%]{2}).*
161
+ `,"ig");r=r.trim().replace(o,"").replace(/'/gm,'"'),i.debug(`Detecting diagram directive${e!==null?" type:"+e:""} based on the text:${r}`);let a,s=[];while((a=ko.exec(r))!==null){if(a.index===ko.lastIndex)ko.lastIndex++;if(a&&!e||e&&a[1]?.match(e)||e&&a[2]?.match(e)){let n=a[1]?a[1]:a[2],c=a[3]?a[3].trim():a[4]?JSON.parse(a[4].trim()):null;s.push({type:n,args:c})}}if(s.length===0)return{type:r,args:null};return s.length===1?s[0]:s}catch(o){return i.error(`ERROR: ${o.message} - Unable to parse directive type: '${e}' based on the text: '${r}'`),{type:void 0,args:null}}},"detectDirective"),Hc=t(function(r){return r.replace(ko,"")},"removeDirectives"),A2=t(function(r,e){for(let[o,a]of e.entries())if(a.match(r))return o;return-1},"isSubstringInArray");function al(r,e){if(!r)return e;let o=`curve${r.charAt(0).toUpperCase()+r.slice(1)}`;return v2[o]??e}t(al,"interpolateToCurve");function bm(r,e){let o=r.trim();if(!o)return;if(e.securityLevel!=="loose")return xm.sanitizeUrl(o);return o}t(bm,"formatUrl");var M2=t((r,...e)=>{let o=r.split("."),a=o.length-1,s=o[a],n=window;for(let c=0;c<a;c++)if(n=n[o[c]],!n){i.error(`Function name: ${r} not found in window`);return}n[s](...e)},"runFunc");function mf(r,e){if(!r||!e)return 0;return Math.sqrt(Math.pow(e.x-r.x,2)+Math.pow(e.y-r.y,2))}t(mf,"distance");function km(r){let e,o=0;r.forEach((s)=>{o+=mf(s,e),e=s});let a=o/2;return yf(r,a)}t(km,"traverseEdge");function wm(r){if(r.length===1)return r[0];return km(r)}t(wm,"calcLabelPosition");var mm=t((r,e=2)=>{let o=Math.pow(10,e);return Math.round(r*o)/o},"roundNumber"),yf=t((r,e)=>{let o=void 0,a=e;for(let s of r){if(o){let n=mf(s,o);if(n===0)return o;if(n<a)a-=n;else{let c=a/n;if(c<=0)return o;if(c>=1)return{x:s.x,y:s.y};if(c>0&&c<1)return{x:mm((1-c)*o.x+c*s.x,5),y:mm((1-c)*o.y+c*s.y,5)}}}o=s}throw Error("Could not find a suitable point for the given distance")},"calculatePoint"),E2=t((r,e,o)=>{if(i.info(`our points ${JSON.stringify(e)}`),e[0]!==o)e=e.reverse();let s=yf(e,25),n=r?10:5,c=Math.atan2(e[0].y-s.y,e[0].x-s.x),l={x:0,y:0};return l.x=Math.sin(c)*n+(e[0].x+s.x)/2,l.y=-Math.cos(c)*n+(e[0].y+s.y)/2,l},"calcCardinalityPosition");function Sm(r,e,o){let a=structuredClone(o);if(i.info("our points",a),e!=="start_left"&&e!=="start_right")a.reverse();let s=25+r,n=yf(a,s),c=10+r*0.5,l=Math.atan2(a[0].y-n.y,a[0].x-n.x),f={x:0,y:0};if(e==="start_left")f.x=Math.sin(l+Math.PI)*c+(a[0].x+n.x)/2,f.y=-Math.cos(l+Math.PI)*c+(a[0].y+n.y)/2;else if(e==="end_right")f.x=Math.sin(l-Math.PI)*c+(a[0].x+n.x)/2,f.y=-Math.cos(l-Math.PI)*c+(a[0].y+n.y)/2;else if(e==="end_left")f.x=Math.sin(l)*c+(a[0].x+n.x)/2,f.y=-Math.cos(l)*c+(a[0].y+n.y)/2;else f.x=Math.sin(l)*c+(a[0].x+n.x)/2,f.y=-Math.cos(l)*c+(a[0].y+n.y)/2;return f}t(Sm,"calcTerminalLabelPosition");function ss(r){let e="",o="";for(let a of r)if(a!==void 0)if(a.startsWith("color:")||a.startsWith("text-align:"))o=o+a+";";else e=e+a+";";return{style:e,labelStyle:o}}t(ss,"getStylesFromArray");var ym=0,uc=t(()=>(ym++,"id-"+Math.random().toString(36).substr(2,12)+"-"+ym),"generateId");function Tm(r){let e="",o="0123456789abcdef",a=o.length;for(let s=0;s<r;s++)e+=o.charAt(Math.floor(Math.random()*a));return e}t(Tm,"makeRandomHex");var dc=t((r)=>Tm(r.length),"random"),O2=t(function(){return{x:0,y:0,fill:void 0,anchor:"start",style:"#666",width:100,height:100,textMargin:0,rx:0,ry:0,valign:void 0,text:""}},"getTextObj"),I2=t(function(r,e){let o=e.text.replace(C.lineBreakRegex," "),[,a]=It(e.fontSize),s=r.append("text");if(s.attr("x",e.x),s.attr("y",e.y),s.style("text-anchor",e.anchor),s.style("font-family",e.fontFamily),s.style("font-size",a),s.style("font-weight",e.fontWeight),s.attr("fill",e.fill),e.class!==void 0)s.attr("class",e.class);let n=s.append("tspan");return n.attr("x",e.x+e.textMargin*2),n.attr("fill",e.fill),n.text(o),s},"drawSimpleText"),oa=no((r,e,o)=>{if(!r)return r;if(o=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"<br/>"},o),C.hasBreaks(r))return r;let a=r.split(" ").filter(Boolean),s=[],n="";return a.forEach((c,l)=>{let f=Ht(`${c} `,o),p=Ht(n,o);if(f>e){let{hyphenatedStrings:x,remainingWord:w}=$2(c,e,"-",o);s.push(n,...x),n=w}else if(p+f>=e)s.push(n),n=c;else n=[n,c].filter(Boolean).join(" ");if(l+1===a.length)s.push(n)}),s.filter((c)=>c!=="").join(o.joinWith)},(r,e,o)=>`${r}${e}${o.fontSize}${o.fontWeight}${o.fontFamily}${o.joinWith}`),$2=no((r,e,o="-",a)=>{a=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},a);let s=[...r],n=[],c="";return s.forEach((l,f)=>{let p=`${c}${l}`;if(Ht(p,a)>=e){let m=f+1,x=s.length===m,w=`${p}${o}`;n.push(x?p:w),c=""}else c=p}),{hyphenatedStrings:n,remainingWord:c}},(r,e,o="-",a)=>`${r}${e}${o}${a.fontSize}${a.fontWeight}${a.fontFamily}`);function Yi(r,e){return Xi(r,e).height}t(Yi,"calculateTextHeight");function Ht(r,e){return Xi(r,e).width}t(Ht,"calculateTextWidth");var Xi=no((r,e)=>{let{fontSize:o=12,fontFamily:a="Arial",fontWeight:s=400}=e;if(!r)return{width:0,height:0};let[,n]=It(o),c=["sans-serif",a],l=r.split(C.lineBreakRegex),f=[],p=y("body");if(!p.remove)return{width:0,height:0,lineHeight:0};let u=p.append("svg");for(let x of c){let w=0,T={width:0,height:0,lineHeight:0};for(let _ of l){let v=O2();v.text=_||pc;let F=I2(u,v).style("font-size",n).style("font-weight",s).style("font-family",x),U=(F._groups||F)[0][0].getBBox();if(U.width===0&&U.height===0)throw Error("svg element not in render tree");T.width=Math.round(Math.max(T.width,U.width)),w=Math.round(U.height),T.height+=w,T.lineHeight=Math.round(Math.max(T.lineHeight,w))}f.push(T)}u.remove();let m=isNaN(f[1].height)||isNaN(f[1].width)||isNaN(f[1].lineHeight)||f[0].height>f[1].height&&f[0].width>f[1].width&&f[0].lineHeight>f[1].lineHeight?0:1;return f[m]},(r,e)=>`${r}${e.fontSize}${e.fontWeight}${e.fontFamily}`),D2=class{constructor(r=!1,e){this.count=0,this.count=e?e.length:0,this.next=r?()=>this.count++:()=>Date.now()}static{t(this,"InitIDGenerator")}},sl,P2=t(function(r){return sl=sl||document.createElement("div"),r=escape(r).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),sl.innerHTML=r,unescape(sl.textContent)},"entityDecode");function cs(r){return"str"in r}t(cs,"isDetailedError");function mc(r){if(r instanceof Error)return r.message;return String(r)}t(mc,"getErrorMessage");var R2=t((r,e,o,a)=>{if(!a)return;let s=r.node()?.getBBox();if(!s)return;r.append("text").text(a).attr("text-anchor","middle").attr("x",s.x+s.width/2).attr("y",-o).attr("class",e)},"insertTitle"),It=t((r)=>{if(typeof r==="number")return[r,r+"px"];let e=parseInt(r??"",10);if(Number.isNaN(e))return[void 0,void 0];else if(r===String(e))return[e,r+"px"];else return[e,r]},"parseFontSize");function Q(r,e){return gf({},r,e)}t(Q,"cleanAndMerge");var H={assignWithDepth:Ee,wrapLabel:oa,calculateTextHeight:Yi,calculateTextWidth:Ht,calculateTextDimensions:Xi,cleanAndMerge:Q,detectInit:F2,detectDirective:Cm,isSubstringInArray:A2,interpolateToCurve:al,calcLabelPosition:wm,calcCardinalityPosition:E2,calcTerminalLabelPosition:Sm,formatUrl:bm,getStylesFromArray:ss,generateId:uc,random:dc,runFunc:M2,entityDecode:P2,insertTitle:R2,isLabelCoordinateInPath:_m,parseFontSize:It,InitIDGenerator:D2},Uc=t(function(r){let e=r;return e=e.replace(/style.*:\S*#.*;/g,function(o){return o.substring(0,o.length-1)}),e=e.replace(/classDef.*:\S*#.*;/g,function(o){return o.substring(0,o.length-1)}),e=e.replace(/#\w+;/g,function(o){let a=o.substring(1,o.length-1);if(/^\+?\d+$/.test(a))return"fl°°"+a+"¶ß";else return"fl°"+a+"¶ß"}),e},"encodeEntities"),Xn=t(function(r){return r.replace(/fl°°/g,"&#").replace(/fl°/g,"&").replace(/¶ß/g,";")},"decodeEntities"),Et=t((r,e,{counter:o=0,prefix:a,suffix:s},n)=>{if(n)return n;return`${a?`${a}_`:""}${r}_${e}_${o}${s?`_${s}`:""}`},"getEdgeId");function Ae(r){return r??null}t(Ae,"handleUndefinedAttr");function _m(r,e){let o=Math.round(r.x),a=Math.round(r.y),s=e.replace(/(\d+\.\d+)/g,(n)=>Math.round(parseFloat(n)).toString());return s.includes(o.toString())||s.includes(a.toString())}t(_m,"isLabelCoordinateInPath");function Cf(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var ho=Cf();function Em(r){ho=r}var Ea={exec:()=>null};function be(r,e=""){let o=typeof r=="string"?r:r.source,a={replace:(s,n)=>{let c=typeof n=="string"?n:n.source;return c=c.replace(ar.caret,"$1"),o=o.replace(s,c),a},getRegex:()=>new RegExp(o,e)};return a}var q2=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch{return!1}})(),ar={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:(r)=>new RegExp(`^( {0,3}${r})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:(r)=>new RegExp(`^ {0,${Math.min(3,r-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:(r)=>new RegExp(`^ {0,${Math.min(3,r-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:(r)=>new RegExp(`^ {0,${Math.min(3,r-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:(r)=>new RegExp(`^ {0,${Math.min(3,r-1)}}#`),htmlBeginRegex:(r)=>new RegExp(`^ {0,${Math.min(3,r-1)}}<(?:[a-z].*>|!--)`,"i")},N2=/^(?:[ \t]*(?:\n|$))+/,W2=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,z2=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Oa=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,H2=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,bf=/(?:[*+-]|\d{1,9}[.)])/,Om=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Im=be(Om).replace(/bull/g,bf).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),Y2=be(Om).replace(/bull/g,bf).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),kf=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,U2=/^[^\n]+/,wf=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,j2=be(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",wf).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),G2=be(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,bf).getRegex(),ul="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Sf=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,X2=be("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$))","i").replace("comment",Sf).replace("tag",ul).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),$m=be(kf).replace("hr",Oa).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",ul).getRegex(),V2=be(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",$m).getRegex(),Tf={blockquote:V2,code:W2,def:j2,fences:z2,heading:H2,hr:Oa,html:X2,lheading:Im,list:G2,newline:N2,paragraph:$m,table:Ea,text:U2},Bm=be("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Oa).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3}\t)[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",ul).getRegex(),K2={...Tf,lheading:Y2,table:Bm,paragraph:be(kf).replace("hr",Oa).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Bm).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",ul).getRegex()},Z2={...Tf,html:be(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Sf).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Ea,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:be(kf).replace("hr",Oa).replace("heading",` *#{1,6} *[^
162
+ ]`).replace("lheading",Im).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},Q2=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,J2=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Dm=/^( {2,}|\\)\n(?!\s*$)/,tw=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,fl=/[\p{P}\p{S}]/u,_f=/[\s\p{P}\p{S}]/u,Pm=/[^\s\p{P}\p{S}]/u,ew=be(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,_f).getRegex(),Rm=/(?!~)[\p{P}\p{S}]/u,rw=/(?!~)[\s\p{P}\p{S}]/u,iw=/(?:[^\s\p{P}\p{S}]|~)/u,ow=be(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",q2?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),qm=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,sw=be(qm,"u").replace(/punct/g,fl).getRegex(),aw=be(qm,"u").replace(/punct/g,Rm).getRegex(),Nm="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",nw=be(Nm,"gu").replace(/notPunctSpace/g,Pm).replace(/punctSpace/g,_f).replace(/punct/g,fl).getRegex(),lw=be(Nm,"gu").replace(/notPunctSpace/g,iw).replace(/punctSpace/g,rw).replace(/punct/g,Rm).getRegex(),hw=be("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,Pm).replace(/punctSpace/g,_f).replace(/punct/g,fl).getRegex(),cw=be(/\\(punct)/,"gu").replace(/punct/g,fl).getRegex(),uw=be(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),fw=be(Sf).replace("(?:-->|$)","-->").getRegex(),dw=be("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",fw).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),ll=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,pw=be(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",ll).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Wm=be(/^!?\[(label)\]\[(ref)\]/).replace("label",ll).replace("ref",wf).getRegex(),zm=be(/^!?\[(ref)\](?:\[\])?/).replace("ref",wf).getRegex(),gw=be("reflink|nolink(?!\\()","g").replace("reflink",Wm).replace("nolink",zm).getRegex(),vm=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,Bf={_backpedal:Ea,anyPunctuation:cw,autolink:uw,blockSkip:ow,br:Dm,code:J2,del:Ea,emStrongLDelim:sw,emStrongRDelimAst:nw,emStrongRDelimUnd:hw,escape:Q2,link:pw,nolink:zm,punctuation:ew,reflink:Wm,reflinkSearch:gw,tag:dw,text:tw,url:Ea},mw={...Bf,link:be(/^!?\[(label)\]\((.*?)\)/).replace("label",ll).getRegex(),reflink:be(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",ll).getRegex()},xf={...Bf,emStrongRDelimAst:lw,emStrongLDelim:aw,url:be(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",vm).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:be(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",vm).getRegex()},yw={...xf,br:be(Dm).replace("{2,}","*").getRegex(),text:be(xf.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},nl={normal:Tf,gfm:K2,pedantic:Z2},La={normal:Bf,gfm:xf,breaks:yw,pedantic:mw},xw={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Lm=(r)=>xw[r];function Gr(r,e){if(e){if(ar.escapeTest.test(r))return r.replace(ar.escapeReplace,Lm)}else if(ar.escapeTestNoEncode.test(r))return r.replace(ar.escapeReplaceNoEncode,Lm);return r}function Fm(r){try{r=encodeURI(r).replace(ar.percentDecode,"%")}catch{return null}return r}function Am(r,e){let o=r.replace(ar.findPipe,(n,c,l)=>{let f=!1,p=c;for(;--p>=0&&l[p]==="\\";)f=!f;return f?"|":" |"}),a=o.split(ar.splitPipe),s=0;if(a[0].trim()||a.shift(),a.length>0&&!a.at(-1)?.trim()&&a.pop(),e)if(a.length>e)a.splice(e);else for(;a.length<e;)a.push("");for(;s<a.length;s++)a[s]=a[s].trim().replace(ar.slashPipe,"|");return a}function Fa(r,e,o){let a=r.length;if(a===0)return"";let s=0;for(;s<a;){let n=r.charAt(a-s-1);if(n===e&&!o)s++;else if(n!==e&&o)s++;else break}return r.slice(0,a-s)}function Cw(r,e){if(r.indexOf(e[1])===-1)return-1;let o=0;for(let a=0;a<r.length;a++)if(r[a]==="\\")a++;else if(r[a]===e[0])o++;else if(r[a]===e[1]&&(o--,o<0))return a;return o>0?-2:-1}function Mm(r,e,o,a,s){let n=e.href,c=e.title||null,l=r[1].replace(s.other.outputLinkReplace,"$1");a.state.inLink=!0;let f={type:r[0].charAt(0)==="!"?"image":"link",raw:o,href:n,title:c,text:l,tokens:a.inlineTokens(l)};return a.state.inLink=!1,f}function bw(r,e,o){let a=r.match(o.other.indentCodeCompensation);if(a===null)return e;let s=a[1];return e.split(`
163
+ `).map((n)=>{let c=n.match(o.other.beginningSpace);if(c===null)return n;let[l]=c;return l.length>=s.length?n.slice(s.length):n}).join(`
164
+ `)}var hl=class{options;rules;lexer;constructor(r){this.options=r||ho}space(r){let e=this.rules.block.newline.exec(r);if(e&&e[0].length>0)return{type:"space",raw:e[0]}}code(r){let e=this.rules.block.code.exec(r);if(e){let o=e[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:e[0],codeBlockStyle:"indented",text:this.options.pedantic?o:Fa(o,`
165
+ `)}}}fences(r){let e=this.rules.block.fences.exec(r);if(e){let o=e[0],a=bw(o,e[3]||"",this.rules);return{type:"code",raw:o,lang:e[2]?e[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):e[2],text:a}}}heading(r){let e=this.rules.block.heading.exec(r);if(e){let o=e[2].trim();if(this.rules.other.endingHash.test(o)){let a=Fa(o,"#");(this.options.pedantic||!a||this.rules.other.endingSpaceChar.test(a))&&(o=a.trim())}return{type:"heading",raw:e[0],depth:e[1].length,text:o,tokens:this.lexer.inline(o)}}}hr(r){let e=this.rules.block.hr.exec(r);if(e)return{type:"hr",raw:Fa(e[0],`
166
+ `)}}blockquote(r){let e=this.rules.block.blockquote.exec(r);if(e){let o=Fa(e[0],`
167
+ `).split(`
168
+ `),a="",s="",n=[];for(;o.length>0;){let c=!1,l=[],f;for(f=0;f<o.length;f++)if(this.rules.other.blockquoteStart.test(o[f]))l.push(o[f]),c=!0;else if(!c)l.push(o[f]);else break;o=o.slice(f);let p=l.join(`
169
+ `),u=p.replace(this.rules.other.blockquoteSetextReplace,`
170
+ $1`).replace(this.rules.other.blockquoteSetextReplace2,"");a=a?`${a}
171
+ ${p}`:p,s=s?`${s}
172
+ ${u}`:u;let m=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(u,n,!0),this.lexer.state.top=m,o.length===0)break;let x=n.at(-1);if(x?.type==="code")break;if(x?.type==="blockquote"){let w=x,T=w.raw+`
173
+ `+o.join(`
174
+ `),_=this.blockquote(T);n[n.length-1]=_,a=a.substring(0,a.length-w.raw.length)+_.raw,s=s.substring(0,s.length-w.text.length)+_.text;break}else if(x?.type==="list"){let w=x,T=w.raw+`
175
+ `+o.join(`
176
+ `),_=this.list(T);n[n.length-1]=_,a=a.substring(0,a.length-x.raw.length)+_.raw,s=s.substring(0,s.length-w.raw.length)+_.raw,o=T.substring(n.at(-1).raw.length).split(`
177
+ `);continue}}return{type:"blockquote",raw:a,tokens:n,text:s}}}list(r){let e=this.rules.block.list.exec(r);if(e){let o=e[1].trim(),a=o.length>1,s={type:"list",raw:"",ordered:a,start:a?+o.slice(0,-1):"",loose:!1,items:[]};o=a?`\\d{1,9}\\${o.slice(-1)}`:`\\${o}`,this.options.pedantic&&(o=a?o:"[*+-]");let n=this.rules.other.listItemRegex(o),c=!1;for(;r;){let f=!1,p="",u="";if(!(e=n.exec(r))||this.rules.block.hr.test(r))break;p=e[0],r=r.substring(p.length);let m=e[2].split(`
178
+ `,1)[0].replace(this.rules.other.listReplaceTabs,(F)=>" ".repeat(3*F.length)),x=r.split(`
179
+ `,1)[0],w=!m.trim(),T=0;if(this.options.pedantic?(T=2,u=m.trimStart()):w?T=e[1].length+1:(T=e[2].search(this.rules.other.nonSpaceChar),T=T>4?1:T,u=m.slice(T),T+=e[1].length),w&&this.rules.other.blankLine.test(x)&&(p+=x+`
180
+ `,r=r.substring(x.length+1),f=!0),!f){let F=this.rules.other.nextBulletRegex(T),U=this.rules.other.hrRegex(T),V=this.rules.other.fencesBeginRegex(T),Z=this.rules.other.headingBeginRegex(T),J=this.rules.other.htmlBeginRegex(T);for(;r;){let lt=r.split(`
181
+ `,1)[0],st;if(x=lt,this.options.pedantic?(x=x.replace(this.rules.other.listReplaceNesting," "),st=x):st=x.replace(this.rules.other.tabCharGlobal," "),V.test(x)||Z.test(x)||J.test(x)||F.test(x)||U.test(x))break;if(st.search(this.rules.other.nonSpaceChar)>=T||!x.trim())u+=`
182
+ `+st.slice(T);else{if(w||m.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||V.test(m)||Z.test(m)||U.test(m))break;u+=`
183
+ `+x}!w&&!x.trim()&&(w=!0),p+=lt+`
184
+ `,r=r.substring(lt.length+1),m=st.slice(T)}}s.loose||(c?s.loose=!0:this.rules.other.doubleBlankLine.test(p)&&(c=!0));let _=null,v;this.options.gfm&&(_=this.rules.other.listIsTask.exec(u),_&&(v=_[0]!=="[ ] ",u=u.replace(this.rules.other.listReplaceTask,""))),s.items.push({type:"list_item",raw:p,task:!!_,checked:v,loose:!1,text:u,tokens:[]}),s.raw+=p}let l=s.items.at(-1);if(l)l.raw=l.raw.trimEnd(),l.text=l.text.trimEnd();else return;s.raw=s.raw.trimEnd();for(let f=0;f<s.items.length;f++)if(this.lexer.state.top=!1,s.items[f].tokens=this.lexer.blockTokens(s.items[f].text,[]),!s.loose){let p=s.items[f].tokens.filter((m)=>m.type==="space"),u=p.length>0&&p.some((m)=>this.rules.other.anyLine.test(m.raw));s.loose=u}if(s.loose)for(let f=0;f<s.items.length;f++)s.items[f].loose=!0;return s}}html(r){let e=this.rules.block.html.exec(r);if(e)return{type:"html",block:!0,raw:e[0],pre:e[1]==="pre"||e[1]==="script"||e[1]==="style",text:e[0]}}def(r){let e=this.rules.block.def.exec(r);if(e){let o=e[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),a=e[2]?e[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",s=e[3]?e[3].substring(1,e[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):e[3];return{type:"def",tag:o,raw:e[0],href:a,title:s}}}table(r){let e=this.rules.block.table.exec(r);if(!e||!this.rules.other.tableDelimiter.test(e[2]))return;let o=Am(e[1]),a=e[2].replace(this.rules.other.tableAlignChars,"").split("|"),s=e[3]?.trim()?e[3].replace(this.rules.other.tableRowBlankLine,"").split(`
185
+ `):[],n={type:"table",raw:e[0],header:[],align:[],rows:[]};if(o.length===a.length){for(let c of a)this.rules.other.tableAlignRight.test(c)?n.align.push("right"):this.rules.other.tableAlignCenter.test(c)?n.align.push("center"):this.rules.other.tableAlignLeft.test(c)?n.align.push("left"):n.align.push(null);for(let c=0;c<o.length;c++)n.header.push({text:o[c],tokens:this.lexer.inline(o[c]),header:!0,align:n.align[c]});for(let c of s)n.rows.push(Am(c,n.header.length).map((l,f)=>({text:l,tokens:this.lexer.inline(l),header:!1,align:n.align[f]})));return n}}lheading(r){let e=this.rules.block.lheading.exec(r);if(e)return{type:"heading",raw:e[0],depth:e[2].charAt(0)==="="?1:2,text:e[1],tokens:this.lexer.inline(e[1])}}paragraph(r){let e=this.rules.block.paragraph.exec(r);if(e){let o=e[1].charAt(e[1].length-1)===`
186
+ `?e[1].slice(0,-1):e[1];return{type:"paragraph",raw:e[0],text:o,tokens:this.lexer.inline(o)}}}text(r){let e=this.rules.block.text.exec(r);if(e)return{type:"text",raw:e[0],text:e[0],tokens:this.lexer.inline(e[0])}}escape(r){let e=this.rules.inline.escape.exec(r);if(e)return{type:"escape",raw:e[0],text:e[1]}}tag(r){let e=this.rules.inline.tag.exec(r);if(e)return!this.lexer.state.inLink&&this.rules.other.startATag.test(e[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(e[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(e[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(e[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:e[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:e[0]}}link(r){let e=this.rules.inline.link.exec(r);if(e){let o=e[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(o)){if(!this.rules.other.endAngleBracket.test(o))return;let n=Fa(o.slice(0,-1),"\\");if((o.length-n.length)%2===0)return}else{let n=Cw(e[2],"()");if(n===-2)return;if(n>-1){let c=(e[0].indexOf("!")===0?5:4)+e[1].length+n;e[2]=e[2].substring(0,n),e[0]=e[0].substring(0,c).trim(),e[3]=""}}let a=e[2],s="";if(this.options.pedantic){let n=this.rules.other.pedanticHrefTitle.exec(a);n&&(a=n[1],s=n[3])}else s=e[3]?e[3].slice(1,-1):"";return a=a.trim(),this.rules.other.startAngleBracket.test(a)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(o)?a=a.slice(1):a=a.slice(1,-1)),Mm(e,{href:a&&a.replace(this.rules.inline.anyPunctuation,"$1"),title:s&&s.replace(this.rules.inline.anyPunctuation,"$1")},e[0],this.lexer,this.rules)}}reflink(r,e){let o;if((o=this.rules.inline.reflink.exec(r))||(o=this.rules.inline.nolink.exec(r))){let a=(o[2]||o[1]).replace(this.rules.other.multipleSpaceGlobal," "),s=e[a.toLowerCase()];if(!s){let n=o[0].charAt(0);return{type:"text",raw:n,text:n}}return Mm(o,s,o[0],this.lexer,this.rules)}}emStrong(r,e,o=""){let a=this.rules.inline.emStrongLDelim.exec(r);if(!a||a[3]&&o.match(this.rules.other.unicodeAlphaNumeric))return;if(!(a[1]||a[2])||!o||this.rules.inline.punctuation.exec(o)){let s=[...a[0]].length-1,n,c,l=s,f=0,p=a[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(p.lastIndex=0,e=e.slice(-1*r.length+s);(a=p.exec(e))!=null;){if(n=a[1]||a[2]||a[3]||a[4]||a[5]||a[6],!n)continue;if(c=[...n].length,a[3]||a[4]){l+=c;continue}else if((a[5]||a[6])&&s%3&&!((s+c)%3)){f+=c;continue}if(l-=c,l>0)continue;c=Math.min(c,c+l+f);let u=[...a[0]][0].length,m=r.slice(0,s+a.index+u+c);if(Math.min(s,c)%2){let w=m.slice(1,-1);return{type:"em",raw:m,text:w,tokens:this.lexer.inlineTokens(w)}}let x=m.slice(2,-2);return{type:"strong",raw:m,text:x,tokens:this.lexer.inlineTokens(x)}}}}codespan(r){let e=this.rules.inline.code.exec(r);if(e){let o=e[2].replace(this.rules.other.newLineCharGlobal," "),a=this.rules.other.nonSpaceChar.test(o),s=this.rules.other.startingSpaceChar.test(o)&&this.rules.other.endingSpaceChar.test(o);return a&&s&&(o=o.substring(1,o.length-1)),{type:"codespan",raw:e[0],text:o}}}br(r){let e=this.rules.inline.br.exec(r);if(e)return{type:"br",raw:e[0]}}del(r){let e=this.rules.inline.del.exec(r);if(e)return{type:"del",raw:e[0],text:e[2],tokens:this.lexer.inlineTokens(e[2])}}autolink(r){let e=this.rules.inline.autolink.exec(r);if(e){let o,a;return e[2]==="@"?(o=e[1],a="mailto:"+o):(o=e[1],a=o),{type:"link",raw:e[0],text:o,href:a,tokens:[{type:"text",raw:o,text:o}]}}}url(r){let e;if(e=this.rules.inline.url.exec(r)){let o,a;if(e[2]==="@")o=e[0],a="mailto:"+o;else{let s;do s=e[0],e[0]=this.rules.inline._backpedal.exec(e[0])?.[0]??"";while(s!==e[0]);o=e[0],e[1]==="www."?a="http://"+e[0]:a=e[0]}return{type:"link",raw:e[0],text:o,href:a,tokens:[{type:"text",raw:o,text:o}]}}}inlineText(r){let e=this.rules.inline.text.exec(r);if(e){let o=this.lexer.state.inRawBlock;return{type:"text",raw:e[0],text:e[0],escaped:o}}}},$r=class r{tokens;options;state;tokenizer;inlineQueue;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||ho,this.options.tokenizer=this.options.tokenizer||new hl,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let o={other:ar,block:nl.normal,inline:La.normal};this.options.pedantic?(o.block=nl.pedantic,o.inline=La.pedantic):this.options.gfm&&(o.block=nl.gfm,this.options.breaks?o.inline=La.breaks:o.inline=La.gfm),this.tokenizer.rules=o}static get rules(){return{block:nl,inline:La}}static lex(e,o){return new r(o).lex(e)}static lexInline(e,o){return new r(o).inlineTokens(e)}lex(e){e=e.replace(ar.carriageReturn,`
187
+ `),this.blockTokens(e,this.tokens);for(let o=0;o<this.inlineQueue.length;o++){let a=this.inlineQueue[o];this.inlineTokens(a.src,a.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,o=[],a=!1){for(this.options.pedantic&&(e=e.replace(ar.tabCharGlobal," ").replace(ar.spaceLine,""));e;){let s;if(this.options.extensions?.block?.some((c)=>(s=c.call({lexer:this},e,o))?(e=e.substring(s.raw.length),o.push(s),!0):!1))continue;if(s=this.tokenizer.space(e)){e=e.substring(s.raw.length);let c=o.at(-1);s.raw.length===1&&c!==void 0?c.raw+=`
188
+ `:o.push(s);continue}if(s=this.tokenizer.code(e)){e=e.substring(s.raw.length);let c=o.at(-1);c?.type==="paragraph"||c?.type==="text"?(c.raw+=(c.raw.endsWith(`
189
+ `)?"":`
190
+ `)+s.raw,c.text+=`
191
+ `+s.text,this.inlineQueue.at(-1).src=c.text):o.push(s);continue}if(s=this.tokenizer.fences(e)){e=e.substring(s.raw.length),o.push(s);continue}if(s=this.tokenizer.heading(e)){e=e.substring(s.raw.length),o.push(s);continue}if(s=this.tokenizer.hr(e)){e=e.substring(s.raw.length),o.push(s);continue}if(s=this.tokenizer.blockquote(e)){e=e.substring(s.raw.length),o.push(s);continue}if(s=this.tokenizer.list(e)){e=e.substring(s.raw.length),o.push(s);continue}if(s=this.tokenizer.html(e)){e=e.substring(s.raw.length),o.push(s);continue}if(s=this.tokenizer.def(e)){e=e.substring(s.raw.length);let c=o.at(-1);c?.type==="paragraph"||c?.type==="text"?(c.raw+=(c.raw.endsWith(`
192
+ `)?"":`
193
+ `)+s.raw,c.text+=`
194
+ `+s.raw,this.inlineQueue.at(-1).src=c.text):this.tokens.links[s.tag]||(this.tokens.links[s.tag]={href:s.href,title:s.title},o.push(s));continue}if(s=this.tokenizer.table(e)){e=e.substring(s.raw.length),o.push(s);continue}if(s=this.tokenizer.lheading(e)){e=e.substring(s.raw.length),o.push(s);continue}let n=e;if(this.options.extensions?.startBlock){let c=1/0,l=e.slice(1),f;this.options.extensions.startBlock.forEach((p)=>{f=p.call({lexer:this},l),typeof f=="number"&&f>=0&&(c=Math.min(c,f))}),c<1/0&&c>=0&&(n=e.substring(0,c+1))}if(this.state.top&&(s=this.tokenizer.paragraph(n))){let c=o.at(-1);a&&c?.type==="paragraph"?(c.raw+=(c.raw.endsWith(`
195
+ `)?"":`
196
+ `)+s.raw,c.text+=`
197
+ `+s.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=c.text):o.push(s),a=n.length!==e.length,e=e.substring(s.raw.length);continue}if(s=this.tokenizer.text(e)){e=e.substring(s.raw.length);let c=o.at(-1);c?.type==="text"?(c.raw+=(c.raw.endsWith(`
198
+ `)?"":`
199
+ `)+s.raw,c.text+=`
200
+ `+s.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=c.text):o.push(s);continue}if(e){let c="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(c);break}else throw Error(c)}}return this.state.top=!0,o}inline(e,o=[]){return this.inlineQueue.push({src:e,tokens:o}),o}inlineTokens(e,o=[]){let a=e,s=null;if(this.tokens.links){let f=Object.keys(this.tokens.links);if(f.length>0)for(;(s=this.tokenizer.rules.inline.reflinkSearch.exec(a))!=null;)f.includes(s[0].slice(s[0].lastIndexOf("[")+1,-1))&&(a=a.slice(0,s.index)+"["+"a".repeat(s[0].length-2)+"]"+a.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(s=this.tokenizer.rules.inline.anyPunctuation.exec(a))!=null;)a=a.slice(0,s.index)+"++"+a.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let n;for(;(s=this.tokenizer.rules.inline.blockSkip.exec(a))!=null;)n=s[2]?s[2].length:0,a=a.slice(0,s.index+n)+"["+"a".repeat(s[0].length-n-2)+"]"+a.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);a=this.options.hooks?.emStrongMask?.call({lexer:this},a)??a;let c=!1,l="";for(;e;){c||(l=""),c=!1;let f;if(this.options.extensions?.inline?.some((u)=>(f=u.call({lexer:this},e,o))?(e=e.substring(f.raw.length),o.push(f),!0):!1))continue;if(f=this.tokenizer.escape(e)){e=e.substring(f.raw.length),o.push(f);continue}if(f=this.tokenizer.tag(e)){e=e.substring(f.raw.length),o.push(f);continue}if(f=this.tokenizer.link(e)){e=e.substring(f.raw.length),o.push(f);continue}if(f=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(f.raw.length);let u=o.at(-1);f.type==="text"&&u?.type==="text"?(u.raw+=f.raw,u.text+=f.text):o.push(f);continue}if(f=this.tokenizer.emStrong(e,a,l)){e=e.substring(f.raw.length),o.push(f);continue}if(f=this.tokenizer.codespan(e)){e=e.substring(f.raw.length),o.push(f);continue}if(f=this.tokenizer.br(e)){e=e.substring(f.raw.length),o.push(f);continue}if(f=this.tokenizer.del(e)){e=e.substring(f.raw.length),o.push(f);continue}if(f=this.tokenizer.autolink(e)){e=e.substring(f.raw.length),o.push(f);continue}if(!this.state.inLink&&(f=this.tokenizer.url(e))){e=e.substring(f.raw.length),o.push(f);continue}let p=e;if(this.options.extensions?.startInline){let u=1/0,m=e.slice(1),x;this.options.extensions.startInline.forEach((w)=>{x=w.call({lexer:this},m),typeof x=="number"&&x>=0&&(u=Math.min(u,x))}),u<1/0&&u>=0&&(p=e.substring(0,u+1))}if(f=this.tokenizer.inlineText(p)){e=e.substring(f.raw.length),f.raw.slice(-1)!=="_"&&(l=f.raw.slice(-1)),c=!0;let u=o.at(-1);u?.type==="text"?(u.raw+=f.raw,u.text+=f.text):o.push(f);continue}if(e){let u="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(u);break}else throw Error(u)}}return o}},cl=class{options;parser;constructor(r){this.options=r||ho}space(r){return""}code({text:r,lang:e,escaped:o}){let a=(e||"").match(ar.notSpaceStart)?.[0],s=r.replace(ar.endingNewline,"")+`
201
+ `;return a?'<pre><code class="language-'+Gr(a)+'">'+(o?s:Gr(s,!0))+`</code></pre>
202
+ `:"<pre><code>"+(o?s:Gr(s,!0))+`</code></pre>
203
+ `}blockquote({tokens:r}){return`<blockquote>
204
+ ${this.parser.parse(r)}</blockquote>
205
+ `}html({text:r}){return r}def(r){return""}heading({tokens:r,depth:e}){return`<h${e}>${this.parser.parseInline(r)}</h${e}>
206
+ `}hr(r){return`<hr>
207
+ `}list(r){let{ordered:e,start:o}=r,a="";for(let c=0;c<r.items.length;c++){let l=r.items[c];a+=this.listitem(l)}let s=e?"ol":"ul",n=e&&o!==1?' start="'+o+'"':"";return"<"+s+n+`>
208
+ `+a+"</"+s+`>
209
+ `}listitem(r){let e="";if(r.task){let o=this.checkbox({checked:!!r.checked});r.loose?r.tokens[0]?.type==="paragraph"?(r.tokens[0].text=o+" "+r.tokens[0].text,r.tokens[0].tokens&&r.tokens[0].tokens.length>0&&r.tokens[0].tokens[0].type==="text"&&(r.tokens[0].tokens[0].text=o+" "+Gr(r.tokens[0].tokens[0].text),r.tokens[0].tokens[0].escaped=!0)):r.tokens.unshift({type:"text",raw:o+" ",text:o+" ",escaped:!0}):e+=o+" "}return e+=this.parser.parse(r.tokens,!!r.loose),`<li>${e}</li>
210
+ `}checkbox({checked:r}){return"<input "+(r?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:r}){return`<p>${this.parser.parseInline(r)}</p>
211
+ `}table(r){let e="",o="";for(let s=0;s<r.header.length;s++)o+=this.tablecell(r.header[s]);e+=this.tablerow({text:o});let a="";for(let s=0;s<r.rows.length;s++){let n=r.rows[s];o="";for(let c=0;c<n.length;c++)o+=this.tablecell(n[c]);a+=this.tablerow({text:o})}return a&&(a=`<tbody>${a}</tbody>`),`<table>
212
+ <thead>
213
+ `+e+`</thead>
214
+ `+a+`</table>
215
+ `}tablerow({text:r}){return`<tr>
216
+ ${r}</tr>
217
+ `}tablecell(r){let e=this.parser.parseInline(r.tokens),o=r.header?"th":"td";return(r.align?`<${o} align="${r.align}">`:`<${o}>`)+e+`</${o}>
218
+ `}strong({tokens:r}){return`<strong>${this.parser.parseInline(r)}</strong>`}em({tokens:r}){return`<em>${this.parser.parseInline(r)}</em>`}codespan({text:r}){return`<code>${Gr(r,!0)}</code>`}br(r){return"<br>"}del({tokens:r}){return`<del>${this.parser.parseInline(r)}</del>`}link({href:r,title:e,tokens:o}){let a=this.parser.parseInline(o),s=Fm(r);if(s===null)return a;r=s;let n='<a href="'+r+'"';return e&&(n+=' title="'+Gr(e)+'"'),n+=">"+a+"</a>",n}image({href:r,title:e,text:o,tokens:a}){a&&(o=this.parser.parseInline(a,this.parser.textRenderer));let s=Fm(r);if(s===null)return Gr(o);r=s;let n=`<img src="${r}" alt="${o}"`;return e&&(n+=` title="${Gr(e)}"`),n+=">",n}text(r){return"tokens"in r&&r.tokens?this.parser.parseInline(r.tokens):("escaped"in r)&&r.escaped?r.text:Gr(r.text)}},vf=class{strong({text:r}){return r}em({text:r}){return r}codespan({text:r}){return r}del({text:r}){return r}html({text:r}){return r}text({text:r}){return r}link({text:r}){return""+r}image({text:r}){return""+r}br(){return""}},Dr=class r{options;renderer;textRenderer;constructor(e){this.options=e||ho,this.options.renderer=this.options.renderer||new cl,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new vf}static parse(e,o){return new r(o).parse(e)}static parseInline(e,o){return new r(o).parseInline(e)}parse(e,o=!0){let a="";for(let s=0;s<e.length;s++){let n=e[s];if(this.options.extensions?.renderers?.[n.type]){let l=n,f=this.options.extensions.renderers[l.type].call({parser:this},l);if(f!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(l.type)){a+=f||"";continue}}let c=n;switch(c.type){case"space":{a+=this.renderer.space(c);continue}case"hr":{a+=this.renderer.hr(c);continue}case"heading":{a+=this.renderer.heading(c);continue}case"code":{a+=this.renderer.code(c);continue}case"table":{a+=this.renderer.table(c);continue}case"blockquote":{a+=this.renderer.blockquote(c);continue}case"list":{a+=this.renderer.list(c);continue}case"html":{a+=this.renderer.html(c);continue}case"def":{a+=this.renderer.def(c);continue}case"paragraph":{a+=this.renderer.paragraph(c);continue}case"text":{let l=c,f=this.renderer.text(l);for(;s+1<e.length&&e[s+1].type==="text";)l=e[++s],f+=`
219
+ `+this.renderer.text(l);o?a+=this.renderer.paragraph({type:"paragraph",raw:f,text:f,tokens:[{type:"text",raw:f,text:f,escaped:!0}]}):a+=f;continue}default:{let l='Token with "'+c.type+'" type was not found.';if(this.options.silent)return console.error(l),"";throw Error(l)}}}return a}parseInline(e,o=this.renderer){let a="";for(let s=0;s<e.length;s++){let n=e[s];if(this.options.extensions?.renderers?.[n.type]){let l=this.options.extensions.renderers[n.type].call({parser:this},n);if(l!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(n.type)){a+=l||"";continue}}let c=n;switch(c.type){case"escape":{a+=o.text(c);break}case"html":{a+=o.html(c);break}case"link":{a+=o.link(c);break}case"image":{a+=o.image(c);break}case"strong":{a+=o.strong(c);break}case"em":{a+=o.em(c);break}case"codespan":{a+=o.codespan(c);break}case"br":{a+=o.br(c);break}case"del":{a+=o.del(c);break}case"text":{a+=o.text(c);break}default:{let l='Token with "'+c.type+'" type was not found.';if(this.options.silent)return console.error(l),"";throw Error(l)}}}return a}},Ma=class{options;block;constructor(r){this.options=r||ho}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens","emStrongMask"]);static passThroughHooksRespectAsync=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(r){return r}postprocess(r){return r}processAllTokens(r){return r}emStrongMask(r){return r}provideLexer(){return this.block?$r.lex:$r.lexInline}provideParser(){return this.block?Dr.parse:Dr.parseInline}},kw=class{defaults=Cf();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=Dr;Renderer=cl;TextRenderer=vf;Lexer=$r;Tokenizer=hl;Hooks=Ma;constructor(...r){this.use(...r)}walkTokens(r,e){let o=[];for(let a of r)switch(o=o.concat(e.call(this,a)),a.type){case"table":{let s=a;for(let n of s.header)o=o.concat(this.walkTokens(n.tokens,e));for(let n of s.rows)for(let c of n)o=o.concat(this.walkTokens(c.tokens,e));break}case"list":{let s=a;o=o.concat(this.walkTokens(s.items,e));break}default:{let s=a;this.defaults.extensions?.childTokens?.[s.type]?this.defaults.extensions.childTokens[s.type].forEach((n)=>{let c=s[n].flat(1/0);o=o.concat(this.walkTokens(c,e))}):s.tokens&&(o=o.concat(this.walkTokens(s.tokens,e)))}}return o}use(...r){let e=this.defaults.extensions||{renderers:{},childTokens:{}};return r.forEach((o)=>{let a={...o};if(a.async=this.defaults.async||a.async||!1,o.extensions&&(o.extensions.forEach((s)=>{if(!s.name)throw Error("extension name required");if("renderer"in s){let n=e.renderers[s.name];n?e.renderers[s.name]=function(...c){let l=s.renderer.apply(this,c);return l===!1&&(l=n.apply(this,c)),l}:e.renderers[s.name]=s.renderer}if("tokenizer"in s){if(!s.level||s.level!=="block"&&s.level!=="inline")throw Error("extension level must be 'block' or 'inline'");let n=e[s.level];n?n.unshift(s.tokenizer):e[s.level]=[s.tokenizer],s.start&&(s.level==="block"?e.startBlock?e.startBlock.push(s.start):e.startBlock=[s.start]:s.level==="inline"&&(e.startInline?e.startInline.push(s.start):e.startInline=[s.start]))}"childTokens"in s&&s.childTokens&&(e.childTokens[s.name]=s.childTokens)}),a.extensions=e),o.renderer){let s=this.defaults.renderer||new cl(this.defaults);for(let n in o.renderer){if(!(n in s))throw Error(`renderer '${n}' does not exist`);if(["options","parser"].includes(n))continue;let c=n,l=o.renderer[c],f=s[c];s[c]=(...p)=>{let u=l.apply(s,p);return u===!1&&(u=f.apply(s,p)),u||""}}a.renderer=s}if(o.tokenizer){let s=this.defaults.tokenizer||new hl(this.defaults);for(let n in o.tokenizer){if(!(n in s))throw Error(`tokenizer '${n}' does not exist`);if(["options","rules","lexer"].includes(n))continue;let c=n,l=o.tokenizer[c],f=s[c];s[c]=(...p)=>{let u=l.apply(s,p);return u===!1&&(u=f.apply(s,p)),u}}a.tokenizer=s}if(o.hooks){let s=this.defaults.hooks||new Ma;for(let n in o.hooks){if(!(n in s))throw Error(`hook '${n}' does not exist`);if(["options","block"].includes(n))continue;let c=n,l=o.hooks[c],f=s[c];Ma.passThroughHooks.has(n)?s[c]=(p)=>{if(this.defaults.async&&Ma.passThroughHooksRespectAsync.has(n))return(async()=>{let m=await l.call(s,p);return f.call(s,m)})();let u=l.call(s,p);return f.call(s,u)}:s[c]=(...p)=>{if(this.defaults.async)return(async()=>{let m=await l.apply(s,p);return m===!1&&(m=await f.apply(s,p)),m})();let u=l.apply(s,p);return u===!1&&(u=f.apply(s,p)),u}}a.hooks=s}if(o.walkTokens){let s=this.defaults.walkTokens,n=o.walkTokens;a.walkTokens=function(c){let l=[];return l.push(n.call(this,c)),s&&(l=l.concat(s.call(this,c))),l}}this.defaults={...this.defaults,...a}}),this}setOptions(r){return this.defaults={...this.defaults,...r},this}lexer(r,e){return $r.lex(r,e??this.defaults)}parser(r,e){return Dr.parse(r,e??this.defaults)}parseMarkdown(r){return(e,o)=>{let a={...o},s={...this.defaults,...a},n=this.onError(!!s.silent,!!s.async);if(this.defaults.async===!0&&a.async===!1)return n(Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof e>"u"||e===null)return n(Error("marked(): input parameter is undefined or null"));if(typeof e!="string")return n(Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected"));if(s.hooks&&(s.hooks.options=s,s.hooks.block=r),s.async)return(async()=>{let c=s.hooks?await s.hooks.preprocess(e):e,l=await(s.hooks?await s.hooks.provideLexer():r?$r.lex:$r.lexInline)(c,s),f=s.hooks?await s.hooks.processAllTokens(l):l;s.walkTokens&&await Promise.all(this.walkTokens(f,s.walkTokens));let p=await(s.hooks?await s.hooks.provideParser():r?Dr.parse:Dr.parseInline)(f,s);return s.hooks?await s.hooks.postprocess(p):p})().catch(n);try{s.hooks&&(e=s.hooks.preprocess(e));let c=(s.hooks?s.hooks.provideLexer():r?$r.lex:$r.lexInline)(e,s);s.hooks&&(c=s.hooks.processAllTokens(c)),s.walkTokens&&this.walkTokens(c,s.walkTokens);let l=(s.hooks?s.hooks.provideParser():r?Dr.parse:Dr.parseInline)(c,s);return s.hooks&&(l=s.hooks.postprocess(l)),l}catch(c){return n(c)}}}onError(r,e){return(o)=>{if(o.message+=`
220
+ Please report this to https://github.com/markedjs/marked.`,r){let a="<p>An error occurred:</p><pre>"+Gr(o.message+"",!0)+"</pre>";return e?Promise.resolve(a):a}if(e)return Promise.reject(o);throw o}}},lo=new kw;function Se(r,e){return lo.parse(r,e)}Se.options=Se.setOptions=function(r){return lo.setOptions(r),Se.defaults=lo.defaults,Em(Se.defaults),Se};Se.getDefaults=Cf;Se.defaults=ho;Se.use=function(...r){return lo.use(...r),Se.defaults=lo.defaults,Em(Se.defaults),Se};Se.walkTokens=function(r,e){return lo.walkTokens(r,e)};Se.parseInline=lo.parseInline;Se.Parser=Dr;Se.parser=Dr.parse;Se.Renderer=cl;Se.TextRenderer=vf;Se.Lexer=$r;Se.lexer=$r.lex;Se.Tokenizer=hl;Se.Hooks=Ma;Se.parse=Se;var{options:jH,setOptions:GH,use:XH,walkTokens:VH,parseInline:KH}=Se;var ZH=Dr.parse,QH=$r.lex;function ls(r){var e=[];for(var o=1;o<arguments.length;o++)e[o-1]=arguments[o];var a=Array.from(typeof r==="string"?[r]:r);a[a.length-1]=a[a.length-1].replace(/\r?\n([\t ]*)$/,"");var s=a.reduce(function(l,f){var p=f.match(/\n([\t ]+|(?!\s).)/g);if(p)return l.concat(p.map(function(u){var m,x;return(x=(m=u.match(/[\t ]/g))===null||m===void 0?void 0:m.length)!==null&&x!==void 0?x:0}));return l},[]);if(s.length){var n=new RegExp(`
221
+ [ ]{`.concat(Math.min.apply(Math,s),"}"),"g");a=a.map(function(l){return l.replace(n,`
222
+ `)})}a[0]=a[0].replace(/^\r?\n/,"");var c=a[0];return e.forEach(function(l,f){var p=c.match(/(?:^|\n)( *)$/),u=p?p[1]:"",m=l;if(typeof l==="string"&&l.includes(`
223
+ `))m=String(l).split(`
224
+ `).map(function(x,w){return w===0?x:"".concat(u).concat(x)}).join(`
225
+ `);c+=m+a[f+1]}),c}var Ff=typeof performance<"u"&&typeof performance.now==="function",xs=t(()=>Ff?performance.now():0,"now"),Lf="\uD83E\uDDDC ",ww="Mermaid render",Sw="Mermaid",Tw={parse:"tertiary",prepare:"secondary",measure:"primary",layout:"primary-dark",layoutCore:"error",draw:"primary-light",paint:"secondary-dark",serialize:"tertiary-dark",render:"primary-light"},u9=class{constructor(){this.enabled=!1,this.autoPrint=!0,this.records=[],this.maxRecords=200,this.roots=[],this.stack=[],this.buckets={}}static{t(this,"Profiler")}enable(){return this.enabled=!0,this}disable(){return this.enabled=!1,this}start(r){if(!this.enabled)return;this.roots=[],this.stack=[],this.buckets={},this.begin(r)}tickSync(r,e){if(!this.enabled)return e();let o=xs();try{return e()}finally{this.buckets[r]=(this.buckets[r]??0)+(xs()-o)}}async tick(r,e){if(!this.enabled)return e();let o=xs();try{return await e()}finally{this.buckets[r]=(this.buckets[r]??0)+(xs()-o)}}stop(){if(!this.enabled)return;while(this.stack.length>0)this.end();let r=this.roots.at(-1),e=this.runLabel??r?.name;if(r){if(this.records.push({label:e??r.name,tree:r,buckets:{...this.buckets}}),this.records.length>this.maxRecords)this.records.splice(0,this.records.length-this.maxRecords);if(this.autoPrint)this.printSummary(r,e)}return this.runLabel=void 0,r}begin(r){if(!this.enabled)return;let e={name:r,start:xs(),duration:-1,children:[]},o=this.stack.at(-1);if(o)o.children.push(e);else this.roots.push(e);if(this.stack.push(e),Ff&&typeof performance.mark==="function")try{performance.mark(`${Lf}${r} ▶`)}catch{}}end(){if(!this.enabled)return;let r=this.stack.pop();if(!r)return;let e=xs();if(r.duration=e-r.start,Ff&&typeof performance.measure==="function")try{performance.measure(`${Lf}${r.name}`,{start:r.start,end:e,detail:{devtools:{dataType:"track-entry",track:ww,trackGroup:Sw,color:Tw[r.name]??"primary",tooltipText:`${r.name} — ${r.duration.toFixed(1)} ms`}}})}catch{}}async span(r,e){if(!this.enabled)return e();this.begin(r);try{return await e()}finally{this.end()}}report(){return this.records.at(-1)?.tree??this.roots.at(-1)}clear(){this.records.length=0,this.roots=[],this.stack=[],this.runLabel=void 0}reset(){this.roots=[],this.stack=[]}printSummary(r=this.report(),e){if(!r)return;let o=r.duration,a=e&&e!==r.name?`${r.name} [${e}]`:r.name,s=["ms % phase"],n=t((l,f)=>{let p=" ".repeat(f),u=l.duration.toFixed(1).padStart(8),m=o>0?`${(l.duration/o*100).toFixed(0).padStart(3)}%`:" -";s.push(`${u} ${m} ${p}${l.name}`);for(let x of l.children)n(x,f+1);if(l.children.length>0){let x=l.children.reduce((T,_)=>T+_.duration,0),w=l.duration-x;if(w>0.5){let T=w.toFixed(1).padStart(8);s.push(`${T} ${p} (self)`)}}},"walk");n(r,0);let c=Object.keys(this.buckets);if(c.length>0){s.push("—— buckets (summed) ——");for(let l of c)s.push(`${this.buckets[l].toFixed(1).padStart(8)} ${l}`)}console.log(`${Lf}mermaid render profile · ${a}
226
+ ${s.join(`
227
+ `)}`)}};globalThis.injected??={includeLargeFeatures:!0,profiling:!1,version:"0.0.0"};function Ym(r,{markdownAutoWrap:e}){let a=r.replace(/<br\/>/g,`
228
+ `).replace(/\n{2,}/g,`
229
+ `);return ls(a)}t(Ym,"preprocessMarkdown");function Um(r){return r.split(/\\n|\n|<br\s*\/?>/gi).map((e)=>e.trim().match(/<[^>]+>|[^\s<>]+/g)?.map((o)=>({content:o,type:"normal"}))??[])}t(Um,"nonMarkdownToLines");function ps(r,e={}){let o=Ym(r,e),a=Se.lexer(o),s=[[]],n=0;function c(l,f="normal"){if(l.type==="text")l.text.split(`
230
+ `).forEach((u,m)=>{if(m!==0)n++,s.push([]);u.split(" ").forEach((x)=>{if(x=x.replace(/&#39;/g,"'"),x)s[n].push({content:x,type:f})})});else if(l.type==="strong"||l.type==="em")l.tokens.forEach((p)=>{c(p,l.type)});else if(l.type==="html")s[n].push({content:l.text,type:"normal"})}return t(c,"processNode"),a.forEach((l)=>{if(l.type==="paragraph")l.tokens?.forEach((f)=>{c(f)});else if(l.type==="html")s[n].push({content:l.text,type:"normal"});else s[n].push({content:l.raw,type:"normal"})}),s}t(ps,"markdownToLines");function jm(r){if(!r)return"";return`<p>${r.replace(/\\n|\n/g,"<br />")}</p>`}t(jm,"nonMarkdownToHTML");function Gm(r,{markdownAutoWrap:e}={}){let o=Se.lexer(r);function a(s){if(s.type==="text"){if(e===!1)return s.text.replace(/\n */g,"<br/>").replace(/ /g,"&nbsp;");return s.text.replace(/\n */g,"<br/>")}else if(s.type==="strong")return`<strong>${s.tokens?.map(a).join("")}</strong>`;else if(s.type==="em")return`<em>${s.tokens?.map(a).join("")}</em>`;else if(s.type==="paragraph")return`<p>${s.tokens?.map(a).join("")}</p>`;else if(s.type==="space")return"";else if(s.type==="html")return`${s.text}`;else if(s.type==="escape")return s.text;return i.warn(`Unsupported markdown: ${s.type}`),s.raw}return t(a,"output"),o.map(a).join("")}t(Gm,"markdownToHTML");var _w=function(r){var e=function(){},o=r.requestAnimationFrame||r.webkitRequestAnimationFrame||r.mozRequestAnimationFrame||r.msRequestAnimationFrame||function(p){return setTimeout(p,16)};function a(){var p=this;p.reads=[],p.writes=[],p.raf=o.bind(r),e("initialized",p)}t(a,"FastDom"),a.prototype={constructor:a,runTasks:t(function(p){e("run tasks");var u;while(u=p.shift())u()},"runTasks"),measure:t(function(p,u){e("measure");var m=!u?p:p.bind(u);return this.reads.push(m),s(this),m},"measure"),mutate:t(function(p,u){e("mutate");var m=!u?p:p.bind(u);return this.writes.push(m),s(this),m},"mutate"),clear:t(function(p){return e("clear",p),c(this.reads,p)||c(this.writes,p)},"clear"),extend:t(function(p){if(e("extend",p),typeof p!="object")throw Error("expected object");var u=Object.create(this);if(l(u,p),u.fastdom=this,u.initialize)u.initialize();return u},"extend"),catch:null};function s(p){if(!p.scheduled)p.scheduled=!0,p.raf(n.bind(null,p)),e("flush scheduled")}t(s,"scheduleFlush");function n(p){e("flush");var{writes:u,reads:m}=p,x;try{e("flushing reads",m.length),p.runTasks(m),e("flushing writes",u.length),p.runTasks(u)}catch(w){x=w}if(p.scheduled=!1,m.length||u.length)s(p);if(x)if(e("task errored",x.message),p.catch)p.catch(x);else throw x}t(n,"flush");function c(p,u){var m=p.indexOf(u);return!!~m&&!!p.splice(m,1)}t(c,"remove");function l(p,u){for(var m in u)if(u.hasOwnProperty(m))p[m]=u[m]}t(l,"mixin");var f=r.fastdom=r.fastdom||new a;return f}(typeof window<"u"?window:globalThis),Xm={initialize:t(function(){this._tasks=new Map},"initialize"),mutate:t(function(r,e){return Af(this,"mutate",r,e)},"mutate"),measure:t(function(r,e){return Af(this,"measure",r,e)},"measure"),clear:t(function(r){var e=this._tasks,o=e.get(r);this.fastdom.clear(o),e.delete(r)},"clear")};function Af(r,e,o,a){var{_tasks:s,fastdom:n}=r,c,l=new Promise(function(f,p){c=n[e](function(){s.delete(l);try{f(a?o.call(a):o())}catch(u){p(u)}},a)});return s.set(l,c),l}t(Af,"create");var{initialize:p9,mutate:g9,measure:m9,clear:y9}=Xm,Bw=Xm,vw=_w.extend({raf(r){if(typeof queueMicrotask==="function")queueMicrotask(r);else setTimeout(r,0)}}).extend(Bw),Bi=vw;function Vm(r){if(Intl.Segmenter)return[...new Intl.Segmenter().segment(r)].map((e)=>e.segment);return[...r]}t(Vm,"splitTextToChars");function Km(r,e){let o=Vm(e.content);return Of(r,[],o,e.type)}t(Km,"splitWordToFitWidth");function Of(r,e,o,a){if(o.length===0)return[{content:e.join(""),type:a},{content:"",type:a}];let[s,...n]=o,c=[...e,s];if(r([{content:c.join(""),type:a}]))return Of(r,c,n,a);if(e.length===0&&s)e.push(s),o.shift();return[{content:e.join(""),type:a},{content:o.join(""),type:a}]}t(Of,"splitWordToFitWidthRecursion");function Zm(r,e){if(r.some(({content:o})=>o.includes(`
231
+ `)))throw Error("splitLineToFitWidth does not support newlines in the line");return dl(r,e)}t(Zm,"splitLineToFitWidth");function dl(r,e,o=[],a=[]){if(r.length===0){if(a.length>0)o.push(a);return o.length>0?o:[]}let s="";if(r[0].content===" ")s=" ",r.shift();let n=r.shift()??{content:" ",type:"normal"},c=[...a];if(s!=="")c.push({content:s,type:"normal"});if(c.push(n),e(c))return dl(r,e,o,c);if(a.length>0)o.push(a),r.unshift(n);else if(n.content){let[l,f]=Km(e,n);if(o.push([l]),f.content)r.unshift(f)}return dl(r,e,o)}t(dl,"splitLineToFitWidthRecursion");function Mf(r,e){if(e)r.attr("style",e)}t(Mf,"applyStyle");var Hm=16384;async function Qm(r,e,o,a,s=!1,n=A(),c=0){let l=r.append("foreignObject");l.attr("width",`${Math.min(10*o,Hm)}px`),l.attr("height",`${Math.min(10*o,Hm)}px`);let f=l.append("xhtml:div"),p=He(e.label)?await ii(e.label.replace(C.lineBreakRegex,`
232
+ `),n):G(e.label,n),u=e.isNode?"nodeLabel":"edgeLabel",m=f.append("span");if(m.html(p),Mf(m,e.labelStyle),m.attr("class",`${u} ${a}`),Mf(f,e.labelStyle),f.style("display","table-cell"),f.style("white-space","nowrap"),f.style("line-height","1.5"),o!==Number.POSITIVE_INFINITY)f.style("max-width",o+"px"),f.style("text-align","center");if(f.attr("xmlns","http://www.w3.org/1999/xhtml"),s)f.attr("class","labelBkg");let x=await Bi.measure(()=>f.node().getBoundingClientRect());if(x.width===o)f.style("display","table"),f.style("white-space","break-spaces"),f.style("width",o+"px");else if(x.width<c)f.style("display","table"),f.style("width",c+"px"),f.style("text-align","center");return l.node()}t(Qm,"addHtmlSpan");function pl(r,e,o,a=!1){let s=r.append("tspan").attr("class","text-outer-tspan").attr("x",0).attr("y",e*o-0.1+"em").attr("dy",o+"em");if(a)s.attr("text-anchor","middle");return s}t(pl,"createTspan");function Jm(r,e,o){let a=r.append("text"),s=pl(a,1,e);gl(s,o);let n=s.node().getComputedTextLength();return a.remove(),n}t(Jm,"computeWidthOfText");function fc(r,e,o){let a=r.append("text"),s=pl(a,1,e);gl(s,[{content:o,type:"normal"}]);let n=s.node()?.getBoundingClientRect();if(n)a.remove();return n}t(fc,"computeDimensionOfText");function ty(r,e,o,a=!1,s=!1){let c=e.append("g"),l=c.insert("rect").attr("class","background").attr("style","stroke: none"),f=c.append("text").attr("y","-10.1");if(s)f.attr("text-anchor","middle");let p=0;for(let u of o){let m=t((w)=>Jm(c,1.1,w)<=r,"checkWidth"),x=m(u)?[u]:Zm(u,m);for(let w of x){let T=pl(f,p,1.1,s);gl(T,w),p++}}if(a){let u=f.node().getBBox(),m=2;return l.attr("x",u.x-2).attr("y",u.y-2).attr("width",u.width+4).attr("height",u.height+4),c.node()}else return f.node()}t(ty,"createFormattedText");function Ef(r){let e=/&(amp|lt|gt);/g;return r.replace(e,(o,a)=>{switch(a){case"amp":return"&";case"lt":return"<";case"gt":return">";default:return o}})}t(Ef,"decodeHTMLEntities");function gl(r,e){r.text(""),e.forEach((o,a)=>{let s=r.append("tspan").attr("font-style",o.type==="em"?"italic":"normal").attr("class","text-inner-tspan").attr("font-weight",o.type==="strong"?"bold":"normal");if(a===0)s.text(Ef(o.content));else s.text(" "+Ef(o.content))})}t(gl,"updateTextContentAndStyles");async function ey(r,e={}){let o=[];r.replace(/(fa[bklrs]?):fa-([\w-]+)/g,(s,n,c)=>(o.push((async()=>{let l=`${n}:${c}`;if(await el(l))return await nn(l,void 0,{class:"label-icon"});else return`<i class='${G(s,e).replace(":"," ")}'></i>`})()),s));let a=await Promise.all(o);return r.replace(/(fa[bklrs]?):fa-([\w-]+)/g,()=>a.shift()??"")}t(ey,"replaceIconSubstring");var ut=t(async(r,e="",{style:o="",isTitle:a=!1,classes:s="",useHtmlLabels:n=!0,markdown:c=!0,isNode:l=!0,width:f=200,minWidth:p=0,addSvgBackground:u=!1}={},m)=>{if(i.debug("XYZ createText",e,o,a,s,n,l,"addSvgBackground: ",u),n){let x=c?Gm(e,m):jm(e),w=await ey(Xn(x),m),T=e.replace(/\\\\/g,"\\"),_={isNode:l,label:He(e)?T:w,labelStyle:o.replace("fill:","color:")};return await Qm(r,_,f,s,u,m,p)}else{let x=Xn(e.replace(/<br\s*\/?>/g,"<br/>")),w=c?ps(x.replace("<br>","<br/>"),m):Um(x),T=ty(f,r,w,e?u:!1,!l);if(l){if(/stroke:/.exec(o))o=o.replace("stroke:","lineColor:");let _=o.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");y(T).attr("style",_)}else{let _=o.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/background:/g,"fill:");y(T).select("rect").attr("style",_.replace(/background:/g,"fill:"));let v=o.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");y(T).select("text").attr("style",v)}if(a)y(T).selectAll("tspan.text-outer-tspan").classed("title-row",!0);else y(T).selectAll("tspan.text-outer-tspan").classed("row",!0);return T}},"createText");var Ki=new Set(["redux-color","redux-dark-color"]),Lw=12,Fw=64,$e=t((r)=>Array.isArray(r)&&r.length>0,"hasPalette"),Re=t((r,e)=>r!=null&&Ki.has(r)&&$e(e),"isColorTheme"),Aw=/^[\w-]+$/,Pe=t((r)=>{let e=typeof r==="string"||typeof r==="number"?String(r):"";return Aw.test(e)?e:"classic"},"safeLook"),yn=t((r)=>$e(r)?r.length:0,"paletteSlotCount"),Ut=t((r,e)=>{if($e(e))return yn(e);return typeof r==="number"&&Number.isInteger(r)&&r>0&&r<=Fw?r:Lw},"colorSlotCount"),jt=t((r,e,o,a)=>{if(e===void 0||!Re(o,a))return;let s=e%yn(a);r.attr("data-color-id",`color-${s}`)},"stampColorSlot");function If(r,e,o){if(r&&r.length){let[a,s]=e,n=Math.PI/180*o,c=Math.cos(n),l=Math.sin(n);for(let f of r){let[p,u]=f;f[0]=(p-a)*c-(u-s)*l+a,f[1]=(p-a)*l+(u-s)*c+s}}}function Mw(r,e){return r[0]===e[0]&&r[1]===e[1]}function Ew(r,e,o,a=1){let s=o,n=Math.max(e,0.1),c=r[0]&&r[0][0]&&typeof r[0][0]=="number"?[r]:r,l=[0,0];if(s)for(let p of c)If(p,l,s);let f=function(p,u,m){let x=[];for(let U of p){let V=[...U];Mw(V[0],V[V.length-1])||V.push([V[0][0],V[0][1]]),V.length>2&&x.push(V)}let w=[];u=Math.max(u,0.1);let T=[];for(let U of x)for(let V=0;V<U.length-1;V++){let Z=U[V],J=U[V+1];if(Z[1]!==J[1]){let lt=Math.min(Z[1],J[1]);T.push({ymin:lt,ymax:Math.max(Z[1],J[1]),x:lt===Z[1]?Z[0]:J[0],islope:(J[0]-Z[0])/(J[1]-Z[1])})}}if(T.sort((U,V)=>U.ymin<V.ymin?-1:U.ymin>V.ymin?1:U.x<V.x?-1:U.x>V.x?1:U.ymax===V.ymax?0:(U.ymax-V.ymax)/Math.abs(U.ymax-V.ymax)),!T.length)return w;let _=[],v=T[0].ymin,F=0;for(;_.length||T.length;){if(T.length){let U=-1;for(let V=0;V<T.length&&!(T[V].ymin>v);V++)U=V;T.splice(0,U+1).forEach((V)=>{_.push({s:v,edge:V})})}if(_=_.filter((U)=>!(U.edge.ymax<=v)),_.sort((U,V)=>U.edge.x===V.edge.x?0:(U.edge.x-V.edge.x)/Math.abs(U.edge.x-V.edge.x)),(m!==1||F%u==0)&&_.length>1)for(let U=0;U<_.length;U+=2){let V=U+1;if(V>=_.length)break;let Z=_[U].edge,J=_[V].edge;w.push([[Math.round(Z.x),v],[Math.round(J.x),v]])}v+=m,_.forEach((U)=>{U.edge.x=U.edge.x+m*U.edge.islope}),F++}return w}(c,n,a);if(s){for(let p of c)If(p,l,-s);(function(p,u,m){let x=[];p.forEach((w)=>x.push(...w)),If(x,u,m)})(f,l,-s)}return f}function Pa(r,e){var o;let a=e.hachureAngle+90,s=e.hachureGap;s<0&&(s=4*e.strokeWidth),s=Math.round(Math.max(s,0.1));let n=1;return e.roughness>=1&&(((o=e.randomizer)===null||o===void 0?void 0:o.next())||Math.random())>0.7&&(n=s),Ew(r,s,a,n||1)}class Tl{constructor(r){this.helper=r}fillPolygons(r,e){return this._fillPolygons(r,e)}_fillPolygons(r,e){let o=Pa(r,e);return{type:"fillSketch",ops:this.renderLines(o,e)}}renderLines(r,e){let o=[];for(let a of r)o.push(...this.helper.doubleLineOps(a[0][0],a[0][1],a[1][0],a[1][1],e));return o}}function _l(r){let e=r[0],o=r[1];return Math.sqrt(Math.pow(e[0]-o[0],2)+Math.pow(e[1]-o[1],2))}class cy extends Tl{fillPolygons(r,e){let o=e.hachureGap;o<0&&(o=4*e.strokeWidth),o=Math.max(o,0.1);let a=Pa(r,Object.assign({},e,{hachureGap:o})),s=Math.PI/180*e.hachureAngle,n=[],c=0.5*o*Math.cos(s),l=0.5*o*Math.sin(s);for(let[f,p]of a)_l([f,p])&&n.push([[f[0]-c,f[1]+l],[...p]],[[f[0]+c,f[1]-l],[...p]]);return{type:"fillSketch",ops:this.renderLines(n,e)}}}class uy extends Tl{fillPolygons(r,e){let o=this._fillPolygons(r,e),a=Object.assign({},e,{hachureAngle:e.hachureAngle+90}),s=this._fillPolygons(r,a);return o.ops=o.ops.concat(s.ops),o}}class fy{constructor(r){this.helper=r}fillPolygons(r,e){let o=Pa(r,e=Object.assign({},e,{hachureAngle:0}));return this.dotsOnLines(o,e)}dotsOnLines(r,e){let o=[],a=e.hachureGap;a<0&&(a=4*e.strokeWidth),a=Math.max(a,0.1);let s=e.fillWeight;s<0&&(s=e.strokeWidth/2);let n=a/4;for(let c of r){let l=_l(c),f=l/a,p=Math.ceil(f)-1,u=l-p*a,m=(c[0][0]+c[1][0])/2-a/4,x=Math.min(c[0][1],c[1][1]);for(let w=0;w<p;w++){let T=x+u+w*a,_=m-n+2*Math.random()*n,v=T-n+2*Math.random()*n,F=this.helper.ellipse(_,v,s,s,e);o.push(...F.ops)}}return{type:"fillSketch",ops:o}}}class dy{constructor(r){this.helper=r}fillPolygons(r,e){let o=Pa(r,e);return{type:"fillSketch",ops:this.dashedLine(o,e)}}dashedLine(r,e){let o=e.dashOffset<0?e.hachureGap<0?4*e.strokeWidth:e.hachureGap:e.dashOffset,a=e.dashGap<0?e.hachureGap<0?4*e.strokeWidth:e.hachureGap:e.dashGap,s=[];return r.forEach((n)=>{let c=_l(n),l=Math.floor(c/(o+a)),f=(c+a-l*(o+a))/2,p=n[0],u=n[1];p[0]>u[0]&&(p=n[1],u=n[0]);let m=Math.atan((u[1]-p[1])/(u[0]-p[0]));for(let x=0;x<l;x++){let w=x*(o+a),T=w+o,_=[p[0]+w*Math.cos(m)+f*Math.cos(m),p[1]+w*Math.sin(m)+f*Math.sin(m)],v=[p[0]+T*Math.cos(m)+f*Math.cos(m),p[1]+T*Math.sin(m)+f*Math.sin(m)];s.push(...this.helper.doubleLineOps(_[0],_[1],v[0],v[1],e))}}),s}}class py{constructor(r){this.helper=r}fillPolygons(r,e){let o=e.hachureGap<0?4*e.strokeWidth:e.hachureGap,a=e.zigzagOffset<0?o:e.zigzagOffset,s=Pa(r,e=Object.assign({},e,{hachureGap:o+a}));return{type:"fillSketch",ops:this.zigzagLines(s,a,e)}}zigzagLines(r,e,o){let a=[];return r.forEach((s)=>{let n=_l(s),c=Math.round(n/(2*e)),l=s[0],f=s[1];l[0]>f[0]&&(l=s[1],f=s[0]);let p=Math.atan((f[1]-l[1])/(f[0]-l[0]));for(let u=0;u<c;u++){let m=2*u*e,x=2*(u+1)*e,w=Math.sqrt(2*Math.pow(e,2)),T=[l[0]+m*Math.cos(p),l[1]+m*Math.sin(p)],_=[l[0]+x*Math.cos(p),l[1]+x*Math.sin(p)],v=[T[0]+w*Math.cos(p+Math.PI/4),T[1]+w*Math.sin(p+Math.PI/4)];a.push(...this.helper.doubleLineOps(T[0],T[1],v[0],v[1],o),...this.helper.doubleLineOps(v[0],v[1],_[0],_[1],o))}}),a}}var pr={};class gy{constructor(r){this.seed=r}next(){return this.seed?(2147483647&(this.seed=Math.imul(48271,this.seed)))/2147483648:Math.random()}}var Ow=0,$f=1,ry=2,ml={A:7,a:7,C:6,c:6,H:1,h:1,L:2,l:2,M:2,m:2,Q:4,q:4,S:4,s:4,T:2,t:2,V:1,v:1,Z:0,z:0};function Df(r,e){return r.type===e}function zf(r){let e=[],o=function(c){let l=[];for(;c!=="";)if(c.match(/^([ \t\r\n,]+)/))c=c.substr(RegExp.$1.length);else if(c.match(/^([aAcChHlLmMqQsStTvVzZ])/))l[l.length]={type:Ow,text:RegExp.$1},c=c.substr(RegExp.$1.length);else{if(!c.match(/^(([-+]?[0-9]+(\.[0-9]*)?|[-+]?\.[0-9]+)([eE][-+]?[0-9]+)?)/))return[];l[l.length]={type:$f,text:`${parseFloat(RegExp.$1)}`},c=c.substr(RegExp.$1.length)}return l[l.length]={type:ry,text:""},l}(r),a="BOD",s=0,n=o[s];for(;!Df(n,ry);){let c=0,l=[];if(a==="BOD"){if(n.text!=="M"&&n.text!=="m")return zf("M0,0"+r);s++,c=ml[n.text],a=n.text}else Df(n,$f)?c=ml[a]:(s++,c=ml[n.text],a=n.text);if(!(s+c<o.length))throw Error("Path data ended short");for(let f=s;f<s+c;f++){let p=o[f];if(!Df(p,$f))throw Error("Param not a number: "+a+","+p.text);l[l.length]=+p.text}if(typeof ml[a]!="number")throw Error("Bad segment: "+a);{let f={key:a,data:l};e.push(f),s+=c,n=o[s],a==="M"&&(a="L"),a==="m"&&(a="l")}}return e}function my(r){let e=0,o=0,a=0,s=0,n=[];for(let{key:c,data:l}of r)switch(c){case"M":n.push({key:"M",data:[...l]}),[e,o]=l,[a,s]=l;break;case"m":e+=l[0],o+=l[1],n.push({key:"M",data:[e,o]}),a=e,s=o;break;case"L":n.push({key:"L",data:[...l]}),[e,o]=l;break;case"l":e+=l[0],o+=l[1],n.push({key:"L",data:[e,o]});break;case"C":n.push({key:"C",data:[...l]}),e=l[4],o=l[5];break;case"c":{let f=l.map((p,u)=>u%2?p+o:p+e);n.push({key:"C",data:f}),e=f[4],o=f[5];break}case"Q":n.push({key:"Q",data:[...l]}),e=l[2],o=l[3];break;case"q":{let f=l.map((p,u)=>u%2?p+o:p+e);n.push({key:"Q",data:f}),e=f[2],o=f[3];break}case"A":n.push({key:"A",data:[...l]}),e=l[5],o=l[6];break;case"a":e+=l[5],o+=l[6],n.push({key:"A",data:[l[0],l[1],l[2],l[3],l[4],e,o]});break;case"H":n.push({key:"H",data:[...l]}),e=l[0];break;case"h":e+=l[0],n.push({key:"H",data:[e]});break;case"V":n.push({key:"V",data:[...l]}),o=l[0];break;case"v":o+=l[0],n.push({key:"V",data:[o]});break;case"S":n.push({key:"S",data:[...l]}),e=l[2],o=l[3];break;case"s":{let f=l.map((p,u)=>u%2?p+o:p+e);n.push({key:"S",data:f}),e=f[2],o=f[3];break}case"T":n.push({key:"T",data:[...l]}),e=l[0],o=l[1];break;case"t":e+=l[0],o+=l[1],n.push({key:"T",data:[e,o]});break;case"Z":case"z":n.push({key:"Z",data:[]}),e=a,o=s}return n}function yy(r){let e=[],o="",a=0,s=0,n=0,c=0,l=0,f=0;for(let{key:p,data:u}of r){switch(p){case"M":e.push({key:"M",data:[...u]}),[a,s]=u,[n,c]=u;break;case"C":e.push({key:"C",data:[...u]}),a=u[4],s=u[5],l=u[2],f=u[3];break;case"L":e.push({key:"L",data:[...u]}),[a,s]=u;break;case"H":a=u[0],e.push({key:"L",data:[a,s]});break;case"V":s=u[0],e.push({key:"L",data:[a,s]});break;case"S":{let m=0,x=0;o==="C"||o==="S"?(m=a+(a-l),x=s+(s-f)):(m=a,x=s),e.push({key:"C",data:[m,x,...u]}),l=u[0],f=u[1],a=u[2],s=u[3];break}case"T":{let[m,x]=u,w=0,T=0;o==="Q"||o==="T"?(w=a+(a-l),T=s+(s-f)):(w=a,T=s);let _=a+2*(w-a)/3,v=s+2*(T-s)/3,F=m+2*(w-m)/3,U=x+2*(T-x)/3;e.push({key:"C",data:[_,v,F,U,m,x]}),l=w,f=T,a=m,s=x;break}case"Q":{let[m,x,w,T]=u,_=a+2*(m-a)/3,v=s+2*(x-s)/3,F=w+2*(m-w)/3,U=T+2*(x-T)/3;e.push({key:"C",data:[_,v,F,U,w,T]}),l=m,f=x,a=w,s=T;break}case"A":{let m=Math.abs(u[0]),x=Math.abs(u[1]),w=u[2],T=u[3],_=u[4],v=u[5],F=u[6];if(m===0||x===0)e.push({key:"C",data:[a,s,v,F,v,F]}),a=v,s=F;else if(a!==v||s!==F)xy(a,s,v,F,m,x,w,T,_).forEach(function(U){e.push({key:"C",data:U})}),a=v,s=F;break}case"Z":e.push({key:"Z",data:[]}),a=n,s=c}o=p}return e}function Ia(r,e,o){return[r*Math.cos(o)-e*Math.sin(o),r*Math.sin(o)+e*Math.cos(o)]}function xy(r,e,o,a,s,n,c,l,f,p){let u=(m=c,Math.PI*m/180);var m;let x=[],w=0,T=0,_=0,v=0;if(p)[w,T,_,v]=p;else{[r,e]=Ia(r,e,-u),[o,a]=Ia(o,a,-u);let it=(r-o)/2,ot=(e-a)/2,yt=it*it/(s*s)+ot*ot/(n*n);yt>1&&(yt=Math.sqrt(yt),s*=yt,n*=yt);let et=s*s,wt=n*n,Lt=et*wt-et*ot*ot-wt*it*it,Vt=et*ot*ot+wt*it*it,Xt=(l===f?-1:1)*Math.sqrt(Math.abs(Lt/Vt));_=Xt*s*ot/n+(r+o)/2,v=Xt*-n*it/s+(e+a)/2,w=Math.asin(parseFloat(((e-v)/n).toFixed(9))),T=Math.asin(parseFloat(((a-v)/n).toFixed(9))),r<_&&(w=Math.PI-w),o<_&&(T=Math.PI-T),w<0&&(w=2*Math.PI+w),T<0&&(T=2*Math.PI+T),f&&w>T&&(w-=2*Math.PI),!f&&T>w&&(T-=2*Math.PI)}let F=T-w;if(Math.abs(F)>120*Math.PI/180){let it=T,ot=o,yt=a;T=f&&T>w?w+120*Math.PI/180*1:w+120*Math.PI/180*-1,x=xy(o=_+s*Math.cos(T),a=v+n*Math.sin(T),ot,yt,s,n,c,0,f,[T,it,_,v])}F=T-w;let U=Math.cos(w),V=Math.sin(w),Z=Math.cos(T),J=Math.sin(T),lt=Math.tan(F/4),st=1.3333333333333333*s*lt,dt=1.3333333333333333*n*lt,Ct=[r,e],Bt=[r+st*V,e-dt*U],kt=[o+st*J,a-dt*Z],bt=[o,a];if(Bt[0]=2*Ct[0]-Bt[0],Bt[1]=2*Ct[1]-Bt[1],p)return[Bt,kt,bt].concat(x);{x=[Bt,kt,bt].concat(x);let it=[];for(let ot=0;ot<x.length;ot+=3){let yt=Ia(x[ot][0],x[ot][1],u),et=Ia(x[ot+1][0],x[ot+1][1],u),wt=Ia(x[ot+2][0],x[ot+2][1],u);it.push([yt[0],yt[1],et[0],et[1],wt[0],wt[1]])}return it}}var Iw={randOffset:function(r,e){return ce(r,e)},randOffsetWithRange:function(r,e,o){return kl(r,e,o)},ellipse:function(r,e,o,a,s){let n=by(o,a,s);return qf(r,e,s,n).opset},doubleLineOps:function(r,e,o,a,s){return Ji(r,e,o,a,s,!0)}};function Cy(r,e,o,a,s){return{type:"path",ops:Ji(r,e,o,a,s)}}function Cl(r,e,o){let a=(r||[]).length;if(a>2){let s=[];for(let n=0;n<a-1;n++)s.push(...Ji(r[n][0],r[n][1],r[n+1][0],r[n+1][1],o));return e&&s.push(...Ji(r[a-1][0],r[a-1][1],r[0][0],r[0][1],o)),{type:"path",ops:s}}return a===2?Cy(r[0][0],r[0][1],r[1][0],r[1][1],o):{type:"path",ops:[]}}function $w(r,e,o,a,s){return function(n,c){return Cl(n,!0,c)}([[r,e],[r+o,e],[r+o,e+a],[r,e+a]],s)}function iy(r,e){if(r.length){let o=typeof r[0][0]=="number"?[r]:r,a=yl(o[0],1*(1+0.2*e.roughness),e),s=e.disableMultiStroke?[]:yl(o[0],1.5*(1+0.22*e.roughness),ay(e));for(let n=1;n<o.length;n++){let c=o[n];if(c.length){let l=yl(c,1*(1+0.2*e.roughness),e),f=e.disableMultiStroke?[]:yl(c,1.5*(1+0.22*e.roughness),ay(e));for(let p of l)p.op!=="move"&&a.push(p);for(let p of f)p.op!=="move"&&s.push(p)}}return{type:"path",ops:a.concat(s)}}return{type:"path",ops:[]}}function by(r,e,o){let a=Math.sqrt(2*Math.PI*Math.sqrt((Math.pow(r/2,2)+Math.pow(e/2,2))/2)),s=Math.ceil(Math.max(o.curveStepCount,o.curveStepCount/Math.sqrt(200)*a)),n=2*Math.PI/s,c=Math.abs(r/2),l=Math.abs(e/2),f=1-o.curveFitting;return c+=ce(c*f,o),l+=ce(l*f,o),{increment:n,rx:c,ry:l}}function qf(r,e,o,a){let[s,n]=ny(a.increment,r,e,a.rx,a.ry,1,a.increment*kl(0.1,kl(0.4,1,o),o),o),c=wl(s,null,o);if(!o.disableMultiStroke&&o.roughness!==0){let[l]=ny(a.increment,r,e,a.rx,a.ry,1.5,0,o),f=wl(l,null,o);c=c.concat(f)}return{estimatedPoints:n,opset:{type:"path",ops:c}}}function oy(r,e,o,a,s,n,c,l,f){let p=r,u=e,m=Math.abs(o/2),x=Math.abs(a/2);m+=ce(0.01*m,f),x+=ce(0.01*x,f);let w=s,T=n;for(;w<0;)w+=2*Math.PI,T+=2*Math.PI;T-w>2*Math.PI&&(w=0,T=2*Math.PI);let _=2*Math.PI/f.curveStepCount,v=Math.min(_/2,(T-w)/2),F=ly(v,p,u,m,x,w,T,1,f);if(!f.disableMultiStroke){let U=ly(v,p,u,m,x,w,T,1.5,f);F.push(...U)}return c&&(l?F.push(...Ji(p,u,p+m*Math.cos(w),u+x*Math.sin(w),f),...Ji(p,u,p+m*Math.cos(T),u+x*Math.sin(T),f)):F.push({op:"lineTo",data:[p,u]},{op:"lineTo",data:[p+m*Math.cos(w),u+x*Math.sin(w)]})),{type:"path",ops:F}}function sy(r,e){let o=yy(my(zf(r))),a=[],s=[0,0],n=[0,0];for(let{key:c,data:l}of o)switch(c){case"M":n=[l[0],l[1]],s=[l[0],l[1]];break;case"L":a.push(...Ji(n[0],n[1],l[0],l[1],e)),n=[l[0],l[1]];break;case"C":{let[f,p,u,m,x,w]=l;a.push(...Dw(f,p,u,m,x,w,n,e)),n=[x,w];break}case"Z":a.push(...Ji(n[0],n[1],s[0],s[1],e)),n=[s[0],s[1]]}return{type:"path",ops:a}}function Pf(r,e){let o=[];for(let a of r)if(a.length){let s=e.maxRandomnessOffset||0,n=a.length;if(n>2){o.push({op:"move",data:[a[0][0]+ce(s,e),a[0][1]+ce(s,e)]});for(let c=1;c<n;c++)o.push({op:"lineTo",data:[a[c][0]+ce(s,e),a[c][1]+ce(s,e)]})}}return{type:"fillPath",ops:o}}function Cs(r,e){return function(o,a){let s=o.fillStyle||"hachure";if(!pr[s])switch(s){case"zigzag":pr[s]||(pr[s]=new cy(a));break;case"cross-hatch":pr[s]||(pr[s]=new uy(a));break;case"dots":pr[s]||(pr[s]=new fy(a));break;case"dashed":pr[s]||(pr[s]=new dy(a));break;case"zigzag-line":pr[s]||(pr[s]=new py(a));break;default:s="hachure",pr[s]||(pr[s]=new Tl(a))}return pr[s]}(e,Iw).fillPolygons(r,e)}function ay(r){let e=Object.assign({},r);return e.randomizer=void 0,r.seed&&(e.seed=r.seed+1),e}function ky(r){return r.randomizer||(r.randomizer=new gy(r.seed||0)),r.randomizer.next()}function kl(r,e,o,a=1){return o.roughness*a*(ky(o)*(e-r)+r)}function ce(r,e,o=1){return kl(-r,r,e,o)}function Ji(r,e,o,a,s,n=!1){let c=n?s.disableMultiStrokeFill:s.disableMultiStroke,l=Nf(r,e,o,a,s,!0,!1);if(c)return l;let f=Nf(r,e,o,a,s,!0,!0);return l.concat(f)}function Nf(r,e,o,a,s,n,c){let l=Math.pow(r-o,2)+Math.pow(e-a,2),f=Math.sqrt(l),p=1;p=f<200?1:f>500?0.4:-0.0016668*f+1.233334;let u=s.maxRandomnessOffset||0;u*u*100>l&&(u=f/10);let m=u/2,x=0.2+0.2*ky(s),w=s.bowing*s.maxRandomnessOffset*(a-e)/200,T=s.bowing*s.maxRandomnessOffset*(r-o)/200;w=ce(w,s,p),T=ce(T,s,p);let _=[],v=()=>ce(m,s,p),F=()=>ce(u,s,p),U=s.preserveVertices;return n&&(c?_.push({op:"move",data:[r+(U?0:v()),e+(U?0:v())]}):_.push({op:"move",data:[r+(U?0:ce(u,s,p)),e+(U?0:ce(u,s,p))]})),c?_.push({op:"bcurveTo",data:[w+r+(o-r)*x+v(),T+e+(a-e)*x+v(),w+r+2*(o-r)*x+v(),T+e+2*(a-e)*x+v(),o+(U?0:v()),a+(U?0:v())]}):_.push({op:"bcurveTo",data:[w+r+(o-r)*x+F(),T+e+(a-e)*x+F(),w+r+2*(o-r)*x+F(),T+e+2*(a-e)*x+F(),o+(U?0:F()),a+(U?0:F())]}),_}function yl(r,e,o){if(!r.length)return[];let a=[];a.push([r[0][0]+ce(e,o),r[0][1]+ce(e,o)]),a.push([r[0][0]+ce(e,o),r[0][1]+ce(e,o)]);for(let s=1;s<r.length;s++)a.push([r[s][0]+ce(e,o),r[s][1]+ce(e,o)]),s===r.length-1&&a.push([r[s][0]+ce(e,o),r[s][1]+ce(e,o)]);return wl(a,null,o)}function wl(r,e,o){let a=r.length,s=[];if(a>3){let n=[],c=1-o.curveTightness;s.push({op:"move",data:[r[1][0],r[1][1]]});for(let l=1;l+2<a;l++){let f=r[l];n[0]=[f[0],f[1]],n[1]=[f[0]+(c*r[l+1][0]-c*r[l-1][0])/6,f[1]+(c*r[l+1][1]-c*r[l-1][1])/6],n[2]=[r[l+1][0]+(c*r[l][0]-c*r[l+2][0])/6,r[l+1][1]+(c*r[l][1]-c*r[l+2][1])/6],n[3]=[r[l+1][0],r[l+1][1]],s.push({op:"bcurveTo",data:[n[1][0],n[1][1],n[2][0],n[2][1],n[3][0],n[3][1]]})}if(e&&e.length===2){let l=o.maxRandomnessOffset;s.push({op:"lineTo",data:[e[0]+ce(l,o),e[1]+ce(l,o)]})}}else a===3?(s.push({op:"move",data:[r[1][0],r[1][1]]}),s.push({op:"bcurveTo",data:[r[1][0],r[1][1],r[2][0],r[2][1],r[2][0],r[2][1]]})):a===2&&s.push(...Nf(r[0][0],r[0][1],r[1][0],r[1][1],o,!0,!0));return s}function ny(r,e,o,a,s,n,c,l){let f=[],p=[];if(l.roughness===0){r/=4,p.push([e+a*Math.cos(-r),o+s*Math.sin(-r)]);for(let u=0;u<=2*Math.PI;u+=r){let m=[e+a*Math.cos(u),o+s*Math.sin(u)];f.push(m),p.push(m)}p.push([e+a*Math.cos(0),o+s*Math.sin(0)]),p.push([e+a*Math.cos(r),o+s*Math.sin(r)])}else{let u=ce(0.5,l)-Math.PI/2;p.push([ce(n,l)+e+0.9*a*Math.cos(u-r),ce(n,l)+o+0.9*s*Math.sin(u-r)]);let m=2*Math.PI+u-0.01;for(let x=u;x<m;x+=r){let w=[ce(n,l)+e+a*Math.cos(x),ce(n,l)+o+s*Math.sin(x)];f.push(w),p.push(w)}p.push([ce(n,l)+e+a*Math.cos(u+2*Math.PI+0.5*c),ce(n,l)+o+s*Math.sin(u+2*Math.PI+0.5*c)]),p.push([ce(n,l)+e+0.98*a*Math.cos(u+c),ce(n,l)+o+0.98*s*Math.sin(u+c)]),p.push([ce(n,l)+e+0.9*a*Math.cos(u+0.5*c),ce(n,l)+o+0.9*s*Math.sin(u+0.5*c)])}return[p,f]}function ly(r,e,o,a,s,n,c,l,f){let p=n+ce(0.1,f),u=[];u.push([ce(l,f)+e+0.9*a*Math.cos(p-r),ce(l,f)+o+0.9*s*Math.sin(p-r)]);for(let m=p;m<=c;m+=r)u.push([ce(l,f)+e+a*Math.cos(m),ce(l,f)+o+s*Math.sin(m)]);return u.push([e+a*Math.cos(c),o+s*Math.sin(c)]),u.push([e+a*Math.cos(c),o+s*Math.sin(c)]),wl(u,null,f)}function Dw(r,e,o,a,s,n,c,l){let f=[],p=[l.maxRandomnessOffset||1,(l.maxRandomnessOffset||1)+0.3],u=[0,0],m=l.disableMultiStroke?1:2,x=l.preserveVertices;for(let w=0;w<m;w++)w===0?f.push({op:"move",data:[c[0],c[1]]}):f.push({op:"move",data:[c[0]+(x?0:ce(p[0],l)),c[1]+(x?0:ce(p[0],l))]}),u=x?[s,n]:[s+ce(p[w],l),n+ce(p[w],l)],f.push({op:"bcurveTo",data:[r+ce(p[w],l),e+ce(p[w],l),o+ce(p[w],l),a+ce(p[w],l),u[0],u[1]]});return f}function $a(r){return[...r]}function hy(r,e=0){let o=r.length;if(o<3)throw Error("A curve must have at least three points.");let a=[];if(o===3)a.push($a(r[0]),$a(r[1]),$a(r[2]),$a(r[2]));else{let s=[];s.push(r[0],r[0]);for(let l=1;l<r.length;l++)s.push(r[l]),l===r.length-1&&s.push(r[l]);let n=[],c=1-e;a.push($a(s[0]));for(let l=1;l+2<s.length;l++){let f=s[l];n[0]=[f[0],f[1]],n[1]=[f[0]+(c*s[l+1][0]-c*s[l-1][0])/6,f[1]+(c*s[l+1][1]-c*s[l-1][1])/6],n[2]=[s[l+1][0]+(c*s[l][0]-c*s[l+2][0])/6,s[l+1][1]+(c*s[l][1]-c*s[l+2][1])/6],n[3]=[s[l+1][0],s[l+1][1]],a.push(n[1],n[2],n[3])}}return a}function bl(r,e){return Math.pow(r[0]-e[0],2)+Math.pow(r[1]-e[1],2)}function Pw(r,e,o){let a=bl(e,o);if(a===0)return bl(r,e);let s=((r[0]-e[0])*(o[0]-e[0])+(r[1]-e[1])*(o[1]-e[1]))/a;return s=Math.max(0,Math.min(1,s)),bl(r,co(e,o,s))}function co(r,e,o){return[r[0]+(e[0]-r[0])*o,r[1]+(e[1]-r[1])*o]}function Wf(r,e,o,a){let s=a||[];if(function(l,f){let p=l[f+0],u=l[f+1],m=l[f+2],x=l[f+3],w=3*u[0]-2*p[0]-x[0];w*=w;let T=3*u[1]-2*p[1]-x[1];T*=T;let _=3*m[0]-2*x[0]-p[0];_*=_;let v=3*m[1]-2*x[1]-p[1];return v*=v,w<_&&(w=_),T<v&&(T=v),w+T}(r,e)<o){let l=r[e+0];if(s.length)(n=s[s.length-1],c=l,Math.sqrt(bl(n,c)))>1&&s.push(l);else s.push(l);s.push(r[e+3])}else{let f=r[e+0],p=r[e+1],u=r[e+2],m=r[e+3],x=co(f,p,0.5),w=co(p,u,0.5),T=co(u,m,0.5),_=co(x,w,0.5),v=co(w,T,0.5),F=co(_,v,0.5);Wf([f,x,_,F],0,o,s),Wf([F,v,T,m],0,o,s)}var n,c;return s}function Rw(r,e){return Sl(r,0,r.length,e)}function Sl(r,e,o,a,s){let n=s||[],c=r[e],l=r[o-1],f=0,p=1;for(let u=e+1;u<o-1;++u){let m=Pw(r[u],c,l);m>f&&(f=m,p=u)}return Math.sqrt(f)>a?(Sl(r,e,p+1,a,n),Sl(r,p,o,a,n)):(n.length||n.push(c),n.push(l)),n}function Rf(r,e=0.15,o){let a=[],s=(r.length-1)/3;for(let n=0;n<s;n++)Wf(r,3*n,e,a);return o&&o>0?Sl(a,0,a.length,o):a}var br="none";class Da{constructor(r){this.defaultOptions={maxRandomnessOffset:2,roughness:1,bowing:1,stroke:"#000",strokeWidth:1,curveTightness:0,curveFitting:0.95,curveStepCount:9,fillStyle:"hachure",fillWeight:-1,hachureAngle:-41,hachureGap:-1,dashOffset:-1,dashGap:-1,zigzagOffset:-1,seed:0,disableMultiStroke:!1,disableMultiStrokeFill:!1,preserveVertices:!1,fillShapeRoughnessGain:0.8},this.config=r||{},this.config.options&&(this.defaultOptions=this._o(this.config.options))}static newSeed(){return Math.floor(Math.random()*2147483648)}_o(r){return r?Object.assign({},this.defaultOptions,r):this.defaultOptions}_d(r,e,o){return{shape:r,sets:e||[],options:o||this.defaultOptions}}line(r,e,o,a,s){let n=this._o(s);return this._d("line",[Cy(r,e,o,a,n)],n)}rectangle(r,e,o,a,s){let n=this._o(s),c=[],l=$w(r,e,o,a,n);if(n.fill){let f=[[r,e],[r+o,e],[r+o,e+a],[r,e+a]];n.fillStyle==="solid"?c.push(Pf([f],n)):c.push(Cs([f],n))}return n.stroke!==br&&c.push(l),this._d("rectangle",c,n)}ellipse(r,e,o,a,s){let n=this._o(s),c=[],l=by(o,a,n),f=qf(r,e,n,l);if(n.fill)if(n.fillStyle==="solid"){let p=qf(r,e,n,l).opset;p.type="fillPath",c.push(p)}else c.push(Cs([f.estimatedPoints],n));return n.stroke!==br&&c.push(f.opset),this._d("ellipse",c,n)}circle(r,e,o,a){let s=this.ellipse(r,e,o,o,a);return s.shape="circle",s}linearPath(r,e){let o=this._o(e);return this._d("linearPath",[Cl(r,!1,o)],o)}arc(r,e,o,a,s,n,c=!1,l){let f=this._o(l),p=[],u=oy(r,e,o,a,s,n,c,!0,f);if(c&&f.fill)if(f.fillStyle==="solid"){let m=Object.assign({},f);m.disableMultiStroke=!0;let x=oy(r,e,o,a,s,n,!0,!1,m);x.type="fillPath",p.push(x)}else p.push(function(m,x,w,T,_,v,F){let U=m,V=x,Z=Math.abs(w/2),J=Math.abs(T/2);Z+=ce(0.01*Z,F),J+=ce(0.01*J,F);let lt=_,st=v;for(;lt<0;)lt+=2*Math.PI,st+=2*Math.PI;st-lt>2*Math.PI&&(lt=0,st=2*Math.PI);let dt=(st-lt)/F.curveStepCount,Ct=[];for(let Bt=lt;Bt<=st;Bt+=dt)Ct.push([U+Z*Math.cos(Bt),V+J*Math.sin(Bt)]);return Ct.push([U+Z*Math.cos(st),V+J*Math.sin(st)]),Ct.push([U,V]),Cs([Ct],F)}(r,e,o,a,s,n,f));return f.stroke!==br&&p.push(u),this._d("arc",p,f)}curve(r,e){let o=this._o(e),a=[],s=iy(r,o);if(o.fill&&o.fill!==br)if(o.fillStyle==="solid"){let n=iy(r,Object.assign(Object.assign({},o),{disableMultiStroke:!0,roughness:o.roughness?o.roughness+o.fillShapeRoughnessGain:0}));a.push({type:"fillPath",ops:this._mergedShape(n.ops)})}else{let n=[],c=r;if(c.length){let l=typeof c[0][0]=="number"?[c]:c;for(let f of l)f.length<3?n.push(...f):f.length===3?n.push(...Rf(hy([f[0],f[0],f[1],f[2]]),10,(1+o.roughness)/2)):n.push(...Rf(hy(f),10,(1+o.roughness)/2))}n.length&&a.push(Cs([n],o))}return o.stroke!==br&&a.push(s),this._d("curve",a,o)}polygon(r,e){let o=this._o(e),a=[],s=Cl(r,!0,o);return o.fill&&(o.fillStyle==="solid"?a.push(Pf([r],o)):a.push(Cs([r],o))),o.stroke!==br&&a.push(s),this._d("polygon",a,o)}path(r,e){let o=this._o(e),a=[];if(!r)return this._d("path",a,o);r=(r||"").replace(/\n/g," ").replace(/(-\s)/g,"-").replace("/(ss)/g"," ");let s=o.fill&&o.fill!=="transparent"&&o.fill!==br,n=o.stroke!==br,c=!!(o.simplification&&o.simplification<1),l=function(p,u,m){let x=yy(my(zf(p))),w=[],T=[],_=[0,0],v=[],F=()=>{v.length>=4&&T.push(...Rf(v,u)),v=[]},U=()=>{F(),T.length&&(w.push(T),T=[])};for(let{key:Z,data:J}of x)switch(Z){case"M":U(),_=[J[0],J[1]],T.push(_);break;case"L":F(),T.push([J[0],J[1]]);break;case"C":if(!v.length){let lt=T.length?T[T.length-1]:_;v.push([lt[0],lt[1]])}v.push([J[0],J[1]]),v.push([J[2],J[3]]),v.push([J[4],J[5]]);break;case"Z":F(),T.push([_[0],_[1]])}if(U(),!m)return w;let V=[];for(let Z of w){let J=Rw(Z,m);J.length&&V.push(J)}return V}(r,1,c?4-4*(o.simplification||1):(1+o.roughness)/2),f=sy(r,o);if(s)if(o.fillStyle==="solid")if(l.length===1){let p=sy(r,Object.assign(Object.assign({},o),{disableMultiStroke:!0,roughness:o.roughness?o.roughness+o.fillShapeRoughnessGain:0}));a.push({type:"fillPath",ops:this._mergedShape(p.ops)})}else a.push(Pf(l,o));else a.push(Cs(l,o));return n&&(c?l.forEach((p)=>{a.push(Cl(p,!1,o))}):a.push(f)),this._d("path",a,o)}opsToPath(r,e){let o="";for(let a of r.ops){let s=typeof e=="number"&&e>=0?a.data.map((n)=>+n.toFixed(e)):a.data;switch(a.op){case"move":o+=`M${s[0]} ${s[1]} `;break;case"bcurveTo":o+=`C${s[0]} ${s[1]}, ${s[2]} ${s[3]}, ${s[4]} ${s[5]} `;break;case"lineTo":o+=`L${s[0]} ${s[1]} `}}return o.trim()}toPaths(r){let e=r.sets||[],o=r.options||this.defaultOptions,a=[];for(let s of e){let n=null;switch(s.type){case"path":n={d:this.opsToPath(s),stroke:o.stroke,strokeWidth:o.strokeWidth,fill:br};break;case"fillPath":n={d:this.opsToPath(s),stroke:br,strokeWidth:0,fill:o.fill||br};break;case"fillSketch":n=this.fillSketch(s,o)}n&&a.push(n)}return a}fillSketch(r,e){let o=e.fillWeight;return o<0&&(o=e.strokeWidth/2),{d:this.opsToPath(r),stroke:e.fill||br,strokeWidth:o,fill:br}}_mergedShape(r){return r.filter((e,o)=>o===0||e.op!=="move")}}class wy{constructor(r,e){this.canvas=r,this.ctx=this.canvas.getContext("2d"),this.gen=new Da(e)}draw(r){let e=r.sets||[],o=r.options||this.getDefaultOptions(),a=this.ctx,s=r.options.fixedDecimalPlaceDigits;for(let n of e)switch(n.type){case"path":a.save(),a.strokeStyle=o.stroke==="none"?"transparent":o.stroke,a.lineWidth=o.strokeWidth,o.strokeLineDash&&a.setLineDash(o.strokeLineDash),o.strokeLineDashOffset&&(a.lineDashOffset=o.strokeLineDashOffset),this._drawToContext(a,n,s),a.restore();break;case"fillPath":{a.save(),a.fillStyle=o.fill||"";let c=r.shape==="curve"||r.shape==="polygon"||r.shape==="path"?"evenodd":"nonzero";this._drawToContext(a,n,s,c),a.restore();break}case"fillSketch":this.fillSketch(a,n,o)}}fillSketch(r,e,o){let a=o.fillWeight;a<0&&(a=o.strokeWidth/2),r.save(),o.fillLineDash&&r.setLineDash(o.fillLineDash),o.fillLineDashOffset&&(r.lineDashOffset=o.fillLineDashOffset),r.strokeStyle=o.fill||"",r.lineWidth=a,this._drawToContext(r,e,o.fixedDecimalPlaceDigits),r.restore()}_drawToContext(r,e,o,a="nonzero"){r.beginPath();for(let s of e.ops){let n=typeof o=="number"&&o>=0?s.data.map((c)=>+c.toFixed(o)):s.data;switch(s.op){case"move":r.moveTo(n[0],n[1]);break;case"bcurveTo":r.bezierCurveTo(n[0],n[1],n[2],n[3],n[4],n[5]);break;case"lineTo":r.lineTo(n[0],n[1])}}e.type==="fillPath"?r.fill(a):r.stroke()}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}line(r,e,o,a,s){let n=this.gen.line(r,e,o,a,s);return this.draw(n),n}rectangle(r,e,o,a,s){let n=this.gen.rectangle(r,e,o,a,s);return this.draw(n),n}ellipse(r,e,o,a,s){let n=this.gen.ellipse(r,e,o,a,s);return this.draw(n),n}circle(r,e,o,a){let s=this.gen.circle(r,e,o,a);return this.draw(s),s}linearPath(r,e){let o=this.gen.linearPath(r,e);return this.draw(o),o}polygon(r,e){let o=this.gen.polygon(r,e);return this.draw(o),o}arc(r,e,o,a,s,n,c=!1,l){let f=this.gen.arc(r,e,o,a,s,n,c,l);return this.draw(f),f}curve(r,e){let o=this.gen.curve(r,e);return this.draw(o),o}path(r,e){let o=this.gen.path(r,e);return this.draw(o),o}}var xl="http://www.w3.org/2000/svg";class Sy{constructor(r,e){this.svg=r,this.gen=new Da(e)}draw(r){let e=r.sets||[],o=r.options||this.getDefaultOptions(),a=this.svg.ownerDocument||window.document,s=a.createElementNS(xl,"g"),n=r.options.fixedDecimalPlaceDigits;for(let c of e){let l=null;switch(c.type){case"path":l=a.createElementNS(xl,"path"),l.setAttribute("d",this.opsToPath(c,n)),l.setAttribute("stroke",o.stroke),l.setAttribute("stroke-width",o.strokeWidth+""),l.setAttribute("fill","none"),o.strokeLineDash&&l.setAttribute("stroke-dasharray",o.strokeLineDash.join(" ").trim()),o.strokeLineDashOffset&&l.setAttribute("stroke-dashoffset",`${o.strokeLineDashOffset}`);break;case"fillPath":l=a.createElementNS(xl,"path"),l.setAttribute("d",this.opsToPath(c,n)),l.setAttribute("stroke","none"),l.setAttribute("stroke-width","0"),l.setAttribute("fill",o.fill||""),r.shape!=="curve"&&r.shape!=="polygon"||l.setAttribute("fill-rule","evenodd");break;case"fillSketch":l=this.fillSketch(a,c,o)}l&&s.appendChild(l)}return s}fillSketch(r,e,o){let a=o.fillWeight;a<0&&(a=o.strokeWidth/2);let s=r.createElementNS(xl,"path");return s.setAttribute("d",this.opsToPath(e,o.fixedDecimalPlaceDigits)),s.setAttribute("stroke",o.fill||""),s.setAttribute("stroke-width",a+""),s.setAttribute("fill","none"),o.fillLineDash&&s.setAttribute("stroke-dasharray",o.fillLineDash.join(" ").trim()),o.fillLineDashOffset&&s.setAttribute("stroke-dashoffset",`${o.fillLineDashOffset}`),s}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}opsToPath(r,e){return this.gen.opsToPath(r,e)}line(r,e,o,a,s){let n=this.gen.line(r,e,o,a,s);return this.draw(n)}rectangle(r,e,o,a,s){let n=this.gen.rectangle(r,e,o,a,s);return this.draw(n)}ellipse(r,e,o,a,s){let n=this.gen.ellipse(r,e,o,a,s);return this.draw(n)}circle(r,e,o,a){let s=this.gen.circle(r,e,o,a);return this.draw(s)}linearPath(r,e){let o=this.gen.linearPath(r,e);return this.draw(o)}polygon(r,e){let o=this.gen.polygon(r,e);return this.draw(o)}arc(r,e,o,a,s,n,c=!1,l){let f=this.gen.arc(r,e,o,a,s,n,c,l);return this.draw(f)}curve(r,e){let o=this.gen.curve(r,e);return this.draw(o)}path(r,e){let o=this.gen.path(r,e);return this.draw(o)}}var b={canvas:(r,e)=>new wy(r,e),svg:(r,e)=>new Sy(r,e),generator:(r)=>new Da(r),newSeed:()=>Da.newSeed()};var qw=1,Nw=3;async function td(r){let e=r.getElementsByTagName("img");if(!e||e.length===0)return;let o=!ed(r);await Promise.all([...e].map((a)=>new Promise((s)=>{function n(){if(a.style.display="flex",a.style.flexDirection="column",o){let c=d().fontSize?d().fontSize:window.getComputedStyle(document.body).fontSize,l=5,[f=z.fontSize]=It(c),p=f*5+"px";a.style.minWidth=p,a.style.maxWidth=p}else a.style.width="100%";s(a)}t(n,"setupImage"),setTimeout(()=>{if(a.complete)n()}),a.addEventListener("error",n),a.addEventListener("load",n)})))}t(td,"configureLabelImages");function ed(r){if(r.nodeType===Nw)return r.textContent?.trim()!=="";if(r.nodeType!==qw)return!1;if(r.tagName.toLowerCase()==="img")return!1;return[...r.childNodes].some(ed)}t(ed,"hasTextBesidesImages");var Ty=3,Ww=32,zw=t(async(r,e,o)=>{let a=d(),s=r.insert("g").attr("class",o??"node default").attr("id",e.domId||e.id),n=s.insert("g").attr("class","label").attr("style",Ae(e.labelStyle)),l=[{text:typeof e.label==="string"?e.label:e.label?.[0]??"",cssClass:"c4-name"},{text:e.stereotype,cssClass:"c4-type"},...(e.description??[]).map((F)=>({text:F,cssClass:"c4-descr"}))].filter((F)=>F.text),f=e.width?Math.max(e.width-2*(e.padding??0),Ww):d().flowchart?.wrappingWidth??200,u=a.c4?.wrap??!0?f:Number.POSITIVE_INFINITY,m=await Promise.all(l.map(async(F)=>{let U=n.append("g").attr("class",F.cssClass),V=await ut(U,G(Xn(F.text??""),a),{useHtmlLabels:!1,markdown:!1,isNode:!0,width:u,style:e.labelStyle},a);return y(V).selectAll("tspan.text-outer-tspan").attr("text-anchor","middle"),y(V).selectAll("tspan.text-inner-tspan").attr("font-weight",null).attr("font-style",null),{el:U,box:U.node().getBBox()}})),x=Math.max(...m.map(({box:F})=>F.width),0),w=0;for(let{el:F,box:U}of m)F.attr("transform",`translate(${x/2-U.x-U.width/2}, ${w-U.y})`),w+=U.height+Ty;let T=m.length>0?w-Ty:0;n.insert("rect",":first-child"),n.attr("transform",`translate(${-x/2}, ${-T/2})`);let _=n.node().getBBox(),v=(e.padding??0)/2;return{shapeSvg:s,bbox:_,halfPadding:v,label:n}},"c4LabelHelper"),_y=t((r,e)=>{let{x:o,y:a,width:s,height:n}=r;if(s>=e)return r;if(!("left"in r))return{x:o-(e-s)/2,y:a,width:e,height:n};return{x:o,y:a,width:e,height:n,top:a,left:o,bottom:a+n,right:o+e,toJSON:t(()=>({}),"toJSON")}},"withMinWidth"),q=t(async(r,e,o,{ignoreMinWidth:a=!1}={})=>{if(e.stereotype!==void 0)return zw(r,e,o);let s,n=e.useHtmlLabels||gn(d()?.htmlLabels);if(!o)s="node default";else s=o;let c=r.insert("g").attr("class",s).attr("id",e.domId||e.id),l=c.insert("g").attr("class","label").attr("style",Ae(e.labelStyle)),f;if(e.label===void 0)f="";else f=typeof e.label==="string"?e.label:e.label[0];let p=!!e.icon||!!e.img,u=e.labelType==="markdown",m=f&&!e.width&&!a?e.minWidth??0:0,x=await ut(l,G(Xn(f),d()),{useHtmlLabels:n,width:e.width||e.wrappingWidth||d().flowchart?.wrappingWidth,minWidth:m,classes:u?"markdown-node-label":"",style:e.labelStyle,addSvgBackground:p,markdown:u},d()),w=(e?.padding??0)/2,T;if(n){let _=x.children[0],v=y(x);await td(_),T=await Bi.measure(()=>_.getBoundingClientRect()),T=_y(T,m),v.attr("width",T.width),v.attr("height",T.height)}else T=await Bi.measure(()=>x.getBBox()),T=_y(T,m);if(n)l.attr("transform","translate("+-T.width/2+", "+-T.height/2+")");else l.attr("transform","translate(0, "+-T.height/2+")");if(e.centerLabel)l.attr("transform","translate("+-T.width/2+", "+-T.height/2+")");return l.insert("rect",":first-child"),{shapeSvg:c,bbox:T,halfPadding:w,label:l}},"labelHelper"),fo=t(async(r,e,o)=>{let a=o.useHtmlLabels??nt(d()),s=r.insert("g").attr("class","label").attr("style",o.labelStyle||""),n=await ut(s,G(Xn(e),d()),{useHtmlLabels:a,width:o.width||d()?.flowchart?.wrappingWidth,style:o.labelStyle,addSvgBackground:!!o.icon||!!o.img}),c=o.padding/2,l;if(nt(d())){let f=n.children[0],p=y(n);l=await Bi.measure(()=>f.getBoundingClientRect()),p.attr("width",l.width),p.attr("height",l.height)}else l=await Bi.measure(()=>n.getBBox());if(a)s.attr("transform","translate("+-l.width/2+", "+-l.height/2+")");else s.attr("transform","translate(0, "+-l.height/2+")");if(o.centerLabel)s.attr("transform","translate("+-l.width/2+", "+-l.height/2+")");return s.insert("rect",":first-child"),{shapeSvg:r,bbox:l,halfPadding:c,label:s}},"insertLabel"),B=t((r,e,o)=>{if(o){r.width=o.width,r.height=o.height;return}let a=e.node().getBBox();r.width=a.width,r.height=a.height},"updateNodeBounds"),te=t((r,e)=>(r.look==="handDrawn"?"rough-node":"node")+" "+r.cssClasses+" "+(e||""),"getNodeClasses");function xe(r){let e=r.map((o,a)=>`${a===0?"M":"L"}${o.x},${o.y}`);return e.push("Z"),e.join(" ")}t(xe,"createPathFromPoints");function to(r,e,o,a,s,n){let c=[],l=50,f=o-r,p=a-e,u=f/n,m=2*Math.PI/u,x=e+p/2;for(let w=0;w<=50;w++){let T=w/50,_=r+T*f,v=x+s*Math.sin(m*(_-r));c.push({x:_,y:v})}return c}t(to,"generateFullSineWavePoints");function Vr(r,e,o,a,s,n){let c=[],l=s*Math.PI/180,u=(n*Math.PI/180-l)/(a-1);for(let m=0;m<a;m++){let x=l+m*u,w=r+o*Math.cos(x),T=e+o*Math.sin(x);c.push({x:-w,y:-T})}return c}t(Vr,"generateCirclePoints");function Kf(r){let e=Array.from(r.childNodes).filter((f)=>f.tagName==="path"),o=document.createElementNS("http://www.w3.org/2000/svg","path"),a=e.map((f)=>f.getAttribute("d")).filter((f)=>f!==null).join(" ");o.setAttribute("d",a);let s=e.find((f)=>f.getAttribute("fill")!=="none"),n=e.find((f)=>f.getAttribute("stroke")!=="none"),c=t((f,p)=>f?.getAttribute(p)??void 0,"getAttr");if(s){let f={fill:c(s,"fill"),"fill-opacity":c(s,"fill-opacity")??"1"};Object.entries(f).forEach(([p,u])=>{if(u)o.setAttribute(p,u)})}if(n){let f={stroke:c(n,"stroke"),"stroke-width":c(n,"stroke-width")??"1","stroke-opacity":c(n,"stroke-opacity")??"1"};Object.entries(f).forEach(([p,u])=>{if(u)o.setAttribute(p,u)})}let l=document.createElementNS("http://www.w3.org/2000/svg","g");return l.appendChild(o),l}t(Kf,"mergePaths");var Hw=t((r,e)=>{var{x:o,y:a}=r,s=e.x-o,n=e.y-a,c=r.width/2,l=r.height/2,f,p;if(Math.abs(n)*c>Math.abs(s)*l){if(n<0)l=-l;f=n===0?0:l*s/n,p=l}else{if(s<0)c=-c;f=c,p=s===0?0:c*n/s}return{x:o+f,y:a+p}},"intersectRect"),Kr=Hw;function Gy(r,e){return r.intersect(e)}t(Gy,"intersectNode");var Yw=Gy;function Xy(r,e,o,a){var{x:s,y:n}=r,c=s-a.x,l=n-a.y,f=Math.sqrt(e*e*l*l+o*o*c*c),p=Math.abs(e*o*c/f);if(a.x<s)p=-p;var u=Math.abs(e*o*l/f);if(a.y<n)u=-u;return{x:s+p,y:n+u}}t(Xy,"intersectEllipse");var Vy=Xy;function Ky(r,e,o){return Vy(r,e,e,o)}t(Ky,"intersectCircle");var Uw=Ky;function Zy(r,e,o,a){{let s=e.y-r.y,n=r.x-e.x,c=e.x*r.y-r.x*e.y,l=s*o.x+n*o.y+c,f=s*a.x+n*a.y+c,p=0.000001;if(l!==0&&f!==0&&Zf(l,f))return;let u=a.y-o.y,m=o.x-a.x,x=a.x*o.y-o.x*a.y,w=u*r.x+m*r.y+x,T=u*e.x+m*e.y+x;if(Math.abs(w)<0.000001&&Math.abs(T)<0.000001&&Zf(w,T))return;let _=s*m-u*n;if(_===0)return;let v=(n*x-m*c)/_,F=(u*c-s*x)/_;return{x:v,y:F}}}t(Zy,"intersectLine");function Zf(r,e){return r*e>0}t(Zf,"sameSign");var jw=Zy;function Qy(r,e,o){let{x:a,y:s}=r,n=[],{POSITIVE_INFINITY:c,POSITIVE_INFINITY:l}=Number;if(typeof e.forEach==="function")e.forEach(function(u){c=Math.min(c,u.x),l=Math.min(l,u.y)});else c=Math.min(c,e.x),l=Math.min(l,e.y);let f=a-r.width/2-c,p=s-r.height/2-l;for(let u=0;u<e.length;u++){let m=e[u],x=e[u<e.length-1?u+1:0],w=jw(r,o,{x:f+m.x,y:p+m.y},{x:f+x.x,y:p+x.y});if(w)n.push(w)}if(!n.length)return r;if(n.length>1)n.sort(function(u,m){let x=u.x-o.x,w=u.y-o.y,T=Math.sqrt(x*x+w*w),_=m.x-o.x,v=m.y-o.y,F=Math.sqrt(_*_+v*v);return T<F?-1:T===F?0:1});return n[0]}t(Qy,"intersectPolygon");var Gw=Qy,E={node:Yw,circle:Uw,ellipse:Vy,polygon:Gw,rect:Kr},yr=t((r,e,o,a,s)=>["M",r+s,e,"H",r+o-s,"A",s,s,0,0,1,r+o,e+s,"V",e+a-s,"A",s,s,0,0,1,r+o-s,e+a,"H",r+s,"A",s,s,0,0,1,r,e+a-s,"V",e+s,"A",s,s,0,0,1,r+s,e,"Z"].join(" "),"createRoundedRectPathD"),Xw=t(async(r,e,o,a=!1,s=!1)=>{let n=e||"";if(typeof n==="object")n=n[0];let c=d(),l=nt(c);return await ut(r,n,{style:o,isTitle:a,useHtmlLabels:l,markdown:!1,isNode:s,width:Number.POSITIVE_INFINITY},c)},"createLabel"),Pr=Xw;function Jy(r,e){let{labelStyles:o}=L(e);e.labelStyle=o;let a=te(e),s=a;if(!a)s="anchor";let n=r.insert("g").attr("class",s).attr("id",e.domId||e.id),c=1,{cssStyles:l}=e,f=b.svg(n),p=Kt(e,{fill:"black",stroke:"none",fillStyle:"solid"});if(e.look!=="handDrawn")p.roughness=0;let u=f.circle(0,0,c*2,p),m=n.insert(()=>u,":first-child");return m.attr("class","anchor").attr("style",Ae(l)),B(e,m),e.intersect=function(x){return i.info("Circle intersect",e,c,x),E.circle(e,c,x)},n}t(Jy,"anchor");function Qf(r,e,o,a,s,n,c){let f=(r+o)/2,p=(e+a)/2,u=Math.atan2(a-e,o-r),m=(o-r)/2,x=(a-e)/2,w=m/s,T=x/n,_=Math.sqrt(w**2+T**2);if(_>1)throw Error("The given radii are too small to create an arc between the points.");let v=Math.sqrt(1-_**2),F=f+v*n*Math.sin(u)*(c?-1:1),U=p-v*s*Math.cos(u)*(c?-1:1),V=Math.atan2((e-U)/n,(r-F)/s),J=Math.atan2((a-U)/n,(o-F)/s)-V;if(c&&J<0)J+=2*Math.PI;if(!c&&J>0)J-=2*Math.PI;let lt=[];for(let st=0;st<20;st++){let dt=st/19,Ct=V+dt*J,Bt=F+s*Math.cos(Ct),kt=U+n*Math.sin(Ct);lt.push({x:Bt,y:kt})}return lt}t(Qf,"generateArcPoints");function tx(r,e,o){let[a,s]=[e,o].sort((n,c)=>c-n);return s*(1-Math.sqrt(1-(r/a/2)**2))}t(tx,"calculateArcSagitta");async function ex(r,e){let{labelStyles:o,nodeStyles:a}=L(e);e.labelStyle=o;let s=e.padding??0,n=e.look==="neo"?16:s,c=e.look==="neo"?12:s,l=t((Ct)=>Ct+c,"calcTotalHeight"),f=t((Ct)=>{let Bt=Ct/2;return[Bt/(2.5+Ct/50),Bt]},"calcEllipseRadius"),{shapeSvg:p,bbox:u}=await q(r,e,te(e)),m=l(e?.height?e?.height:u.height),[x,w]=f(m),T=tx(m,x,w),v=(e?.width?e?.width:u.width)+n*2+T-T,F=m,{cssStyles:U}=e,V=[{x:v/2,y:-F/2},{x:-v/2,y:-F/2},...Qf(-v/2,-F/2,-v/2,F/2,x,w,!1),{x:v/2,y:F/2},...Qf(v/2,F/2,v/2,-F/2,x,w,!0)],Z=b.svg(p),J=Kt(e,{});if(e.look!=="handDrawn")J.roughness=0,J.fillStyle="solid";let lt=xe(V),st=Z.path(lt,J),dt=p.insert(()=>st,":first-child");if(dt.attr("class","basic label-container outer-path"),U&&e.look!=="handDrawn")dt.selectAll("path").attr("style",U);if(a&&e.look!=="handDrawn")dt.selectAll("path").attr("style",a);return dt.attr("transform",`translate(${x/2}, 0)`),B(e,dt),e.intersect=function(Ct){return E.polygon(e,V,Ct)},p}t(ex,"bowTieRect");async function rx(r,e,{config:{themeVariables:o}}){let{labelStyles:a,nodeStyles:s}=L(e);e.labelStyle=a;let{shapeSvg:n,bbox:c,label:l}=await q(r,e,te(e)),f=o?.nodeBorder??o?.lineColor??"currentColor",p=e.padding??12,u=Math.max(c.width+p*2,e.width??0,80),m=Math.max(Math.min(u*0.08,12),5),x=Math.max(c.height+p*2+m,e.height??0),w=-x/2+m,T=x/2,_=u*0.72,v=[`M${-u/2},${w}`,`L${-_/2},${T}`,`A${_/2},${m} 0 0 0 ${_/2},${T}`,`L${u/2},${w}`,`A${u/2},${m} 0 0 0 ${-u/2},${w}`,"Z"].join(" "),{cssStyles:F}=e,U=n.insert("g",":first-child").attr("class","basic label-container");if(e.look==="handDrawn"){let dt=b.svg(n).path(v,Kt(e,{}));if(U.node()?.appendChild(dt),F)U.attr("style",F)}else U.append("path").attr("d",v).attr("style",s);U.append("ellipse").attr("cx",0).attr("cy",w).attr("rx",u/2).attr("ry",m).attr("style",`fill:none;stroke:${f};stroke-width:1px`),B(e,U);let V=w+(T-w)/2;l.attr("transform",`translate(${-(c.width/2)-(c.x-(c.left??0))}, ${V-c.height/2-(c.y-(c.top??0))})`);let Z=12,J=t((st,dt,Ct)=>Array.from({length:Z+1},(Bt,kt)=>{let bt=Math.PI-kt*Math.PI/Z;return{x:st*Math.cos(bt),y:dt+Ct*m*Math.sin(bt)}}),"arc"),lt=[...J(u/2,w,-1),...J(_/2,T,1).reverse()];return e.intersect=function(st){return E.polygon(e,lt,st)},n}t(rx,"bucket");var Hf=20,Yf=8,Vw=80,Kw=8;function ix(r){let{themeVariables:e}=d(),{clusterBkg:o,clusterBorder:a}=e;switch(r){case"flow":return{rx:10,fill:"none",stroke:e.flowContainerStroke||e.secondaryBorderColor,strokeWidth:0.75,cssClass:"flow-collapsed"};default:return{rx:Kw,fill:o,stroke:a,cssClass:"collapsed-group"}}}t(ix,"getCollapsedStyle");async function ox(r,e){let o=ix(e.metadata?.containerType),{fill:a,stroke:s}=o,{nodeStyles:n}=L(e),{shapeSvg:c,bbox:l}=await q(r,e,te(e)),{theme:f,themeVariables:p}=d();jt(c,e.colorIndex,f,p.borderColorArray);let u=e.padding??8,m=l.height,x=Math.max(l.width+u*2,Vw,e?.width??0),w=Math.max(m+Yf+Hf+u*2,e?.height??0),T=-x/2,_=-w/2,v=-(Yf+Hf)/2,F=c.select(".label");if(F)if(e.useHtmlLabels??nt(d()))F.attr("transform",`translate(${-l.width/2}, ${-l.height/2+v})`);else F.attr("transform",`translate(0, ${-l.height/2+v})`);let U;if(e.look==="handDrawn"){let st=b.svg(c),dt=Kt(e,{fill:a,stroke:s,...o.strokeWidth===void 0?{}:{strokeWidth:o.strokeWidth},...a==="none"?{fillWeight:0}:{fillStyle:"solid"}}),Ct=st.path(yr(T,_,x,w,o.rx),dt);U=c.insert(()=>Ct,":first-child"),U.attr("class","basic label-container "+o.cssClass).attr("style",Ae(e.cssStyles))}else if(U=c.insert("rect",":first-child"),U.attr("class","basic label-container "+o.cssClass).attr("style",n).attr("rx",o.rx).attr("ry",o.rx).attr("x",T).attr("y",_).attr("width",x).attr("height",w).attr("fill",a).attr("stroke",s),o.strokeWidth!==void 0)U.attr("stroke-width",o.strokeWidth+"px");let V=_+u+m+Yf;c.append("line").attr("class","collapsed-separator").attr("x1",T+8).attr("y1",V).attr("x2",T+x-8).attr("y2",V).attr("stroke",s).attr("stroke-dasharray","3, 3");let Z=V+Hf/2,J=2.5,lt=10;for(let st=-1;st<=1;st++)c.append("circle").attr("class","collapsed-indicator").attr("cx",st*lt).attr("cy",Z).attr("r",J).attr("fill",s);return B(e,U),e.calcIntersect=function(st,dt){return E.rect(st,dt)},e.intersect=function(st){return E.rect(e,st)},c}t(ox,"collapsedGroup");function Zr(r,e,o,a){return r.insert("polygon",":first-child").attr("points",a.map(function(s){return s.x+","+s.y}).join(" ")).attr("class","label-container").attr("transform","translate("+-e/2+","+o/2+")")}t(Zr,"insertPolygonShape");var Zw=["right","left","up","down"],rd="point",Qw=t((r)=>{let e=new Set;for(let o of r)switch(o){case"x":e.add("right"),e.add("left");break;case"y":e.add("up"),e.add("down");break;default:e.add(o);break}return e},"expandAndDeduplicateDirections"),Jw=t((r)=>Zw.filter((e)=>r.has(e)).join("|")||rd,"getDirectionKey"),By={"right|left|up|down":t(({height:r,midpoint:e,padding:o,width:a})=>[{x:0,y:0},{x:e,y:0},{x:a/2,y:2*o},{x:a-e,y:0},{x:a,y:0},{x:a,y:-r/3},{x:a+2*o,y:-r/2},{x:a,y:-2*r/3},{x:a,y:-r},{x:a-e,y:-r},{x:a/2,y:-r-2*o},{x:e,y:-r},{x:0,y:-r},{x:0,y:-2*r/3},{x:-2*o,y:-r/2},{x:0,y:-r/3}],"right|left|up|down"),"right|left|up":t(({height:r,midpoint:e,width:o})=>[{x:e,y:0},{x:o-e,y:0},{x:o,y:-r/2},{x:o-e,y:-r},{x:e,y:-r},{x:0,y:-r/2}],"right|left|up"),"right|left|down":t(({height:r,midpoint:e,width:o})=>[{x:0,y:0},{x:e,y:-r},{x:o-e,y:-r},{x:o,y:0}],"right|left|down"),"right|up|down":t(({height:r,midpoint:e,width:o})=>[{x:0,y:0},{x:o,y:-e},{x:o,y:-r+e},{x:0,y:-r}],"right|up|down"),"left|up|down":t(({height:r,midpoint:e,width:o})=>[{x:o,y:0},{x:0,y:-e},{x:0,y:-r+e},{x:o,y:-r}],"left|up|down"),"right|left":t(({height:r,midpoint:e,padding:o,width:a})=>[{x:e,y:0},{x:e,y:-o},{x:a-e,y:-o},{x:a-e,y:0},{x:a,y:-r/2},{x:a-e,y:-r},{x:a-e,y:-r+o},{x:e,y:-r+o},{x:e,y:-r},{x:0,y:-r/2}],"right|left"),"up|down":t(({height:r,midpoint:e,padding:o,width:a})=>[{x:a/2,y:0},{x:0,y:-o},{x:e,y:-o},{x:e,y:-r+o},{x:0,y:-r+o},{x:a/2,y:-r},{x:a,y:-r+o},{x:a-e,y:-r+o},{x:a-e,y:-o},{x:a,y:-o}],"up|down"),"right|up":t(({height:r,midpoint:e,width:o})=>[{x:0,y:0},{x:o,y:-e},{x:0,y:-r}],"right|up"),"right|down":t(({height:r,width:e})=>[{x:0,y:0},{x:e,y:0},{x:0,y:-r}],"right|down"),"left|up":t(({height:r,midpoint:e,width:o})=>[{x:o,y:0},{x:0,y:-e},{x:o,y:-r}],"left|up"),"left|down":t(({height:r,width:e})=>[{x:e,y:0},{x:0,y:0},{x:e,y:-r}],"left|down"),right:t(({height:r,midpoint:e,padding:o,width:a})=>[{x:e,y:-o},{x:e,y:-o},{x:a-e,y:-o},{x:a-e,y:0},{x:a,y:-r/2},{x:a-e,y:-r},{x:a-e,y:-r+o},{x:e,y:-r+o},{x:e,y:-r+o}],"right"),left:t(({height:r,midpoint:e,padding:o,width:a})=>[{x:e,y:0},{x:e,y:-o},{x:a-e,y:-o},{x:a-e,y:-r+o},{x:e,y:-r+o},{x:e,y:-r},{x:0,y:-r/2}],"left"),up:t(({height:r,midpoint:e,padding:o,width:a})=>[{x:e,y:-o},{x:e,y:-r+o},{x:0,y:-r+o},{x:a/2,y:-r},{x:a,y:-r+o},{x:a-e,y:-r+o},{x:a-e,y:-o}],"up"),down:t(({height:r,midpoint:e,padding:o,width:a})=>[{x:a/2,y:0},{x:0,y:-o},{x:e,y:-o},{x:e,y:-r+o},{x:a-e,y:-r+o},{x:a-e,y:-o},{x:a,y:-o}],"down"),[rd]:()=>[{x:0,y:0}]},tS=t((r,e,o,a)=>{let s=Qw(r),n=(o.padding??0)/2,c=e.height+4*n,l=c/2,f=a??e.width+2*l+2*n,p=Jw(s);return(By[p]??By[rd])({height:c,midpoint:l,padding:n,width:f})},"getArrowPoints");async function sx(r,e){let o=e,{shapeSvg:a,bbox:s}=await q(r,o,te(o)),n=o.padding??0,c=s.height+2*n,l=c/2,f=s.width+2*l+n,p=o.width??0,m=o.positioned&&(o.widthInColumns??1)>1&&p>f?p:f,x=tS(o.directions??[],s,o,m),w=Zr(a,m,c,x);return w.attr("style",o.style??null),B(o,w),o.intersect=function(T){return E.polygon(o,x,T)},a}t(sx,"block_arrow");async function ax(r,e,{config:{themeVariables:o}}){let{labelStyles:a,nodeStyles:s}=L(e);e.labelStyle=a;let{shapeSvg:n,bbox:c,label:l}=await q(r,e,te(e)),f=o?.nodeBorder??o?.lineColor??"currentColor",p=e.padding??12,u=18,m=12,x=Math.max(c.width+p*2,e.width??0,90),w=Math.max(c.height+p*2+u,e.height??0),T=-w/2,{cssStyles:_}=e,v=n.insert("g",":first-child").attr("class","basic label-container");if(e.look==="handDrawn"){let V=b.svg(n).path(yr(-x/2,T,x,w,m),Kt(e,{}));if(v.node()?.appendChild(V),_)v.attr("style",_)}else v.append("rect").attr("x",-x/2).attr("y",T).attr("width",x).attr("height",w).attr("rx",m).attr("ry",m).attr("style",s);v.append("line").attr("x1",-x/2).attr("y1",T+u).attr("x2",x/2).attr("y2",T+u).attr("style",`stroke:${f};stroke-width:1px`);for(let U=0;U<3;U++)v.append("circle").attr("cx",-x/2+12+U*9).attr("cy",T+u/2).attr("r",2.5).attr("style",`fill:${f};stroke:none`);v.append("rect").attr("class","browser-address-bar").attr("x",-x/2+44).attr("y",T+4).attr("width",Math.max(x-56,10)).attr("height",u-8).attr("rx",3).attr("ry",3).attr("style",`fill:none;stroke:${f};stroke-width:1px;opacity:0.6`),B(e,v);let F=T+u+(w-u)/2;return l.attr("transform",`translate(${-(c.width/2)-(c.x-(c.left??0))}, ${F-c.height/2-(c.y-(c.top??0))})`),e.intersect=function(U){return E.rect(e,U)},n}t(ax,"browser");var Bl=12;async function nx(r,e){let{labelStyles:o,nodeStyles:a}=L(e);e.labelStyle=o;let s=e.padding??0,n=e.look==="neo"?28:s,c=e.look==="neo"?24:s,{shapeSvg:l,bbox:f}=await q(r,e,te(e)),p=(e?.width??f.width)+(e.look==="neo"?n*2:n+Bl),u=(e?.height??f.height)+(e.look==="neo"?c*2:c),m=0,x=p,w=-u,T=0,_=[{x:m+Bl,y:w},{x,y:w},{x,y:T},{x:m,y:T},{x:m,y:w+Bl},{x:m+Bl,y:w}],v,{cssStyles:F}=e;if(e.look==="handDrawn"){let U=b.svg(l),V=Kt(e,{}),Z=xe(_),J=U.path(Z,V);if(v=l.insert(()=>J,":first-child").attr("transform",`translate(${-p/2}, ${u/2})`),F)v.attr("style",F)}else v=Zr(l,p,u,_);if(a)v.attr("style",a);return B(e,v),e.intersect=function(U){return E.polygon(e,_,U)},l}t(nx,"card");function lx(r,e){let{nodeStyles:o}=L(e);e.label="";let a=r.insert("g").attr("class",te(e)).attr("id",e.domId??e.id),{cssStyles:s}=e,n=Math.max(28,e.width??0),c=[{x:0,y:n/2},{x:n/2,y:0},{x:0,y:-n/2},{x:-n/2,y:0}],l=b.svg(a),f=Kt(e,{});if(e.look!=="handDrawn")f.roughness=0,f.fillStyle="solid";let p=xe(c),u=l.path(p,f),m=a.insert(()=>u,":first-child");if(s&&e.look!=="handDrawn")m.selectAll("path").attr("style",s);if(o&&e.look!=="handDrawn")m.selectAll("path").attr("style",o);return e.width=28,e.height=28,e.intersect=function(x){return E.polygon(e,c,x)},a}t(lx,"choice");async function id(r,e,o){let{labelStyles:a,nodeStyles:s}=L(e);e.labelStyle=a;let{shapeSvg:n,bbox:c,halfPadding:l}=await q(r,e,te(e),{ignoreMinWidth:!0}),f=16,p=o?.padding??l,u=Math.sqrt(c.width**2+c.height**2)/2,m=e.look==="neo"?u+f:u+p,x,{cssStyles:w}=e;if(e.look==="handDrawn"){let T=b.svg(n),_=Kt(e,{}),v=T.circle(0,0,m*2,_);x=n.insert(()=>v,":first-child"),x.attr("class","basic label-container").attr("style",Ae(w))}else x=n.insert("circle",":first-child").attr("class","basic label-container").attr("style",s).attr("r",m).attr("cx",0).attr("cy",0);return B(e,x),e.calcIntersect=function(T,_){let v=T.width/2;return E.circle(T,v,_)},e.intersect=function(T){return i.info("Circle intersect",e,m,T),E.circle(e,m,T)},n}t(id,"circle");async function hx(r,e){let o=e,a=["node",o.cssClasses,o.class].filter(Boolean).join(" "),{shapeSvg:s,bbox:n,halfPadding:c}=await q(r,o,a),l=s.insert("rect",":first-child"),f=o.padding??0,p=o.positioned?o.width??0:n.width+f,u=o.positioned?o.height??0:n.height+f,m=o.positioned?-p/2:-n.width/2-c,x=o.positioned?-u/2:-n.height/2-c;return l.attr("class","basic cluster composite label-container").attr("style",o.style??null).attr("rx",o.rx??null).attr("ry",o.ry??null).attr("x",m).attr("y",x).attr("width",p).attr("height",u),B(o,l),o.intersect=function(w){return E.rect(o,w)},s}t(hx,"composite");async function cx(r,e,{config:{themeVariables:o}}){let{labelStyles:a,nodeStyles:s}=L(e);e.labelStyle=a;let{shapeSvg:n,bbox:c,label:l}=await q(r,e,te(e)),f=o?.nodeBorder??o?.lineColor??"currentColor",p=e.padding??12,u=20,m=12,x=Math.max(c.width+p*2,e.width??0,90),w=Math.max(c.height+p*2+u,e.height??0),T=-w/2,{cssStyles:_}=e,v=n.insert("g",":first-child").attr("class","basic label-container");if(e.look==="handDrawn"){let V=b.svg(n).path(yr(-x/2,T,x,w,m),Kt(e,{}));if(v.node()?.appendChild(V),_)v.attr("style",_)}else v.append("rect").attr("x",-x/2).attr("y",T).attr("width",x).attr("height",w).attr("rx",m).attr("ry",m).attr("style",s);v.append("text").attr("x",-x/2+12).attr("y",T+16).attr("class","console-glyph").attr("style",`font-family:monospace;font-weight:bold;font-size:14px;fill:${f}`).text(">_"),B(e,v);let F=T+u+(w-u)/2;return l.attr("transform",`translate(${-(c.width/2)-(c.x-(c.left??0))}, ${F-c.height/2-(c.y-(c.top??0))})`),e.intersect=function(U){return E.rect(e,U)},n}t(cx,"consoleWindow");function ux(r){let e=Math.cos(Math.PI/4),o=Math.sin(Math.PI/4),a=r*2,s={x:a/2*e,y:a/2*o},n={x:-(a/2)*e,y:a/2*o},c={x:-(a/2)*e,y:-(a/2)*o},l={x:a/2*e,y:-(a/2)*o};return`M ${n.x},${n.y} L ${l.x},${l.y}
233
+ M ${s.x},${s.y} L ${c.x},${c.y}`}t(ux,"createLine");function fx(r,e){let{labelStyles:o,nodeStyles:a}=L(e);e.labelStyle=o,e.label="";let s=r.insert("g").attr("class",te(e)).attr("id",e.domId??e.id),n=Math.max(30,e?.width??0),{cssStyles:c}=e,l=b.svg(s),f=Kt(e,{});if(e.look!=="handDrawn")f.roughness=0,f.fillStyle="solid";let p=l.circle(0,0,n*2,f),u=ux(n),m=l.path(u,f),x=s.insert(()=>p,":first-child");if(x.insert(()=>m),x.attr("class","outer-path"),c&&e.look!=="handDrawn")x.selectAll("path").attr("style",c);if(a&&e.look!=="handDrawn")x.selectAll("path").attr("style",a);return B(e,x),e.intersect=function(w){return i.info("crossedCircle intersect",e,{radius:n,point:w}),E.circle(e,n,w)},s}t(fx,"crossedCircle");function vi(r,e,o,a=100,s=0,n=180){let c=[],l=s*Math.PI/180,u=(n*Math.PI/180-l)/(a-1);for(let m=0;m<a;m++){let x=l+m*u,w=r+o*Math.cos(x),T=e+o*Math.sin(x);c.push({x:-w,y:-T})}return c}t(vi,"generateCirclePoints");async function dx(r,e){let{labelStyles:o,nodeStyles:a}=L(e);e.labelStyle=o;let{shapeSvg:s,bbox:n,label:c}=await q(r,e,te(e)),l=e.look==="neo"?18:e.padding??0,f=e.look==="neo"?12:e.padding??0,p=n.width+l,u=n.height+f,m=Math.max(5,u*0.1),{cssStyles:x}=e,w=[...vi(p/2,-u/2,m,30,-90,0),{x:-p/2-m,y:m},...vi(p/2+m*2,-m,m,20,-180,-270),...vi(p/2+m*2,m,m,20,-90,-180),{x:-p/2-m,y:-u/2},...vi(p/2,u/2,m,20,0,90)],T=[{x:p/2,y:-u/2-m},{x:-p/2,y:-u/2-m},...vi(p/2,-u/2,m,20,-90,0),{x:-p/2-m,y:-m},...vi(p/2+p*0.1,-m,m,20,-180,-270),...vi(p/2+p*0.1,m,m,20,-90,-180),{x:-p/2-m,y:u/2},...vi(p/2,u/2,m,20,0,90),{x:-p/2,y:u/2+m},{x:p/2,y:u/2+m}],_=b.svg(s),v=Kt(e,{fill:"none"});if(e.look!=="handDrawn")v.roughness=0,v.fillStyle="solid";let U=xe(w).replace("Z",""),V=_.path(U,v),Z=xe(T),J=_.path(Z,{...v}),lt=s.insert("g",":first-child");if(lt.insert(()=>J,":first-child").attr("stroke-opacity",0),lt.insert(()=>V,":first-child"),lt.attr("class","text"),x&&e.look!=="handDrawn")lt.selectAll("path").attr("style",x);if(a&&e.look!=="handDrawn")lt.selectAll("path").attr("style",a);return lt.attr("transform",`translate(${m}, 0)`),c.attr("transform",`translate(${-p/2+m-(n.x-(n.left??0))},${-u/2+(e.padding??0)/2-(n.y-(n.top??0))})`),B(e,lt),e.intersect=function(st){return E.polygon(e,T,st)},s}t(dx,"curlyBraceLeft");function Li(r,e,o,a=100,s=0,n=180){let c=[],l=s*Math.PI/180,u=(n*Math.PI/180-l)/(a-1);for(let m=0;m<a;m++){let x=l+m*u,w=r+o*Math.cos(x),T=e+o*Math.sin(x);c.push({x:w,y:T})}return c}t(Li,"generateCirclePoints");async function px(r,e){let{labelStyles:o,nodeStyles:a}=L(e);e.labelStyle=o;let{shapeSvg:s,bbox:n,label:c}=await q(r,e,te(e)),l=e.look==="neo"?18:e.padding??0,f=e.look==="neo"?12:e.padding??0,p=n.width+(e.look==="neo"?l*2:l),u=n.height+(e.look==="neo"?f*2:f),m=Math.max(5,u*0.1),{cssStyles:x}=e,w=[...Li(p/2,-u/2,m,20,-90,0),{x:p/2+m,y:-m},...Li(p/2+m*2,-m,m,20,-180,-270),...Li(p/2+m*2,m,m,20,-90,-180),{x:p/2+m,y:u/2},...Li(p/2,u/2,m,20,0,90)],T=[{x:-p/2,y:-u/2-m},{x:p/2,y:-u/2-m},...Li(p/2,-u/2,m,20,-90,0),{x:p/2+m,y:-m},...Li(p/2+m*2,-m,m,20,-180,-270),...Li(p/2+m*2,m,m,20,-90,-180),{x:p/2+m,y:u/2},...Li(p/2,u/2,m,20,0,90),{x:p/2,y:u/2+m},{x:-p/2,y:u/2+m}],_=b.svg(s),v=Kt(e,{fill:"none"});if(e.look!=="handDrawn")v.roughness=0,v.fillStyle="solid";let U=xe(w).replace("Z",""),V=_.path(U,v),Z=xe(T),J=_.path(Z,{...v}),lt=s.insert("g",":first-child");if(lt.insert(()=>J,":first-child").attr("stroke-opacity",0),lt.insert(()=>V,":first-child"),lt.attr("class","text"),x&&e.look!=="handDrawn")lt.selectAll("path").attr("style",x);if(a&&e.look!=="handDrawn")lt.selectAll("path").attr("style",a);return lt.attr("transform",`translate(${-m}, 0)`),c.attr("transform",`translate(${-p/2+(e.padding??0)/2-(n.x-(n.left??0))},${-u/2+(e.padding??0)/2-(n.y-(n.top??0))})`),B(e,lt),e.intersect=function(st){return E.polygon(e,T,st)},s}t(px,"curlyBraceRight");function Je(r,e,o,a=100,s=0,n=180){let c=[],l=s*Math.PI/180,u=(n*Math.PI/180-l)/(a-1);for(let m=0;m<a;m++){let x=l+m*u,w=r+o*Math.cos(x),T=e+o*Math.sin(x);c.push({x:-w,y:-T})}return c}t(Je,"generateCirclePoints");async function gx(r,e){let{labelStyles:o,nodeStyles:a}=L(e);e.labelStyle=o;let{shapeSvg:s,bbox:n,label:c}=await q(r,e,te(e)),l=e.look==="neo"?18:e.padding??0,f=e.look==="neo"?12:e.padding??0,p=n.width+(e.look==="neo"?l*2:l),u=n.height+(e.look==="neo"?f*2:f),m=Math.max(5,u*0.1),{cssStyles:x}=e,w=[...Je(p/2,-u/2,m,30,-90,0),{x:-p/2-m,y:m},...Je(p/2+m*2,-m,m,20,-180,-270),...Je(p/2+m*2,m,m,20,-90,-180),{x:-p/2-m,y:-u/2},...Je(p/2,u/2,m,20,0,90)],T=[...Je(-p/2+m+m/2,-u/2,m,20,-90,-180),{x:p/2-m/2,y:m},...Je(-p/2-m/2,-m,m,20,0,90),...Je(-p/2-m/2,m,m,20,-90,0),{x:p/2-m/2,y:-m},...Je(-p/2+m+m/2,u/2,m,30,-180,-270)],_=[{x:p/2,y:-u/2-m},{x:-p/2,y:-u/2-m},...Je(p/2,-u/2,m,20,-90,0),{x:-p/2-m,y:-m},...Je(p/2+m*2,-m,m,20,-180,-270),...Je(p/2+m*2,m,m,20,-90,-180),{x:-p/2-m,y:u/2},...Je(p/2,u/2,m,20,0,90),{x:-p/2,y:u/2+m},{x:p/2-m-m/2,y:u/2+m},...Je(-p/2+m+m/2,-u/2,m,20,-90,-180),{x:p/2-m/2,y:m},...Je(-p/2-m/2,-m,m,20,0,90),...Je(-p/2-m/2,m,m,20,-90,0),{x:p/2-m/2,y:-m},...Je(-p/2+m+m/2,u/2,m,30,-180,-270)],v=b.svg(s),F=Kt(e,{fill:"none"});if(e.look!=="handDrawn")F.roughness=0,F.fillStyle="solid";let V=xe(w).replace("Z",""),Z=v.path(V,F),lt=xe(T).replace("Z",""),st=v.path(lt,F),dt=xe(_),Ct=v.path(dt,{...F}),Bt=s.insert("g",":first-child");if(Bt.insert(()=>Ct,":first-child").attr("stroke-opacity",0),Bt.insert(()=>Z,":first-child"),Bt.insert(()=>st,":first-child"),Bt.attr("class","text"),x&&e.look!=="handDrawn")Bt.selectAll("path").attr("style",x);if(a&&e.look!=="handDrawn")Bt.selectAll("path").attr("style",a);return Bt.attr("transform",`translate(${m-m/4}, 0)`),c.attr("transform",`translate(${-p/2+(e.padding??0)/2-(n.x-(n.left??0))},${-u/2+(e.padding??0)/2-(n.y-(n.top??0))})`),B(e,Bt),e.intersect=function(kt){return E.polygon(e,_,kt)},s}t(gx,"curlyBraces");async function mx(r,e){let{labelStyles:o,nodeStyles:a}=L(e);e.labelStyle=o;let s=e.padding??0,n=e.look==="neo"?16:s,c=e.look==="neo"?12:s,l=20,f=5,{shapeSvg:p,bbox:u}=await q(r,e,te(e)),m=Math.max(f,u.height+c*2,e?.height??0),x=m/2,w=x-Math.sqrt(Math.max(0,x**2-(u.height/2)**2)),T=Math.max(m/4,w),_=Math.max(l,u.width+n*2+T*2,(u.width+n*2)*1.25,e?.width??0),{cssStyles:v}=e,F=b.svg(p),U=Kt(e,{});if(e.look!=="handDrawn")U.roughness=0,U.fillStyle="solid";let V=_,Z=m,J=V-x,lt=Z/4,st=[{x:J,y:0},{x:lt,y:0},{x:0,y:Z/2},{x:lt,y:Z},{x:J,y:Z},...Vr(-J,-Z/2,x,50,270,90)],dt=xe(st),Ct=F.path(dt,U),Bt=p.insert(()=>Ct,":first-child");if(Bt.attr("class","basic label-container outer-path"),v&&e.look!=="handDrawn")Bt.selectChildren("path").attr("style",v);if(a&&e.look!=="handDrawn")Bt.selectChildren("path").attr("style",a);return Bt.attr("transform",`translate(${-_/2}, ${-m/2})`),B(e,Bt),e.intersect=function(kt){return E.polygon(e,st,kt)},p}t(mx,"curvedTrapezoid");async function yx(r,e){let{labelStyles:o,nodeStyles:a}=L(e);e.labelStyle=o;let{shapeSvg:s,bbox:n,label:c}=await q(r,e,te(e)),l=e.padding??20,f=Math.max(n.width+l*2,e.width??0,100),p=Math.min(Math.max(f*0.23,16),56),u=p*0.27,m=Math.max(n.height+l*2,e.height?e.height-(2*p-u):0),x=Math.min(f*0.177,m*0.45),w=m+2*p-u,T=-w/2,_=T+2*p-u,v=s.insert("g",":first-child").attr("class","basic label-container"),{cssStyles:F}=e;if(e.look==="handDrawn"){let dt=b.svg(s),Ct=Kt(e,{}),Bt=dt.path(yr(-f/2,_,f,m,x),Ct),kt=dt.circle(0,T+p,p*2,Ct);if(v.insert(()=>kt,":first-child"),v.insert(()=>Bt,":first-child"),F)v.attr("style",F)}else v.append("rect").attr("x",-f/2).attr("y",_).attr("width",f).attr("height",m).attr("rx",x).attr("ry",x).attr("style",a),v.append("circle").attr("cx",0).attr("cy",T+p).attr("r",p).attr("style",a);B(e,v);let U=_+m/2;c.attr("transform",`translate(${-(n.width/2)-(n.x-(n.left??0))}, ${U-n.height/2-(n.y-(n.top??0))})`);let V=T+p,Z=Math.asin(Math.min(1,(_-V)/p))*180/Math.PI,J=24,st=[...Vr(0,-V,p,J,180+Z,-Z),...Vr(-(-f/2+x),-(_+x),x,12,90,0),...Vr(-(-f/2+x),-(w/2-x),x,12,360,270),...Vr(-(f/2-x),-(w/2-x),x,12,270,180),...Vr(-(f/2-x),-(_+x),x,12,180,90)];return e.intersect=function(dt){return E.polygon(e,st,dt)},s}t(yx,"person");var eS=t((r,e,o,a,s,n)=>[`M${r},${e+n}`,`a${s},${n} 0,0,0 ${o},0`,`a${s},${n} 0,0,0 ${-o},0`,`l0,${a}`,`a${s},${n} 0,0,0 ${o},0`,`l0,${-a}`].join(" "),"createCylinderPathD"),rS=t((r,e,o,a,s,n)=>[`M${r},${e+n}`,`M${r+o},${e+n}`,`a${s},${n} 0,0,0 ${-o},0`,`l0,${a}`,`a${s},${n} 0,0,0 ${o},0`,`l0,${-a}`].join(" "),"createOuterCylinderPathD"),iS=t((r,e,o,a,s,n)=>[`M${r-o/2},${-a/2}`,`a${s},${n} 0,0,0 ${o},0`].join(" "),"createInnerCylinderPathD"),vy=8,Ly=8;async function xx(r,e){let{labelStyles:o,nodeStyles:a}=L(e);e.labelStyle=o;let s=e.padding??0,n=e.look==="neo"?24:s,c=e.look==="neo"?24:s,l=e.width??0;if(e.width){if(e.width=e.width-c,e.width<Ly)e.width=Ly}if(e.height){let U=l/2/(2.5+l/50);if(e.height=e.height-n-U*3,e.height<vy)e.height=vy}let{shapeSvg:f,bbox:p,label:u}=await q(r,e,te(e)),m=Math.max(e.width??0,p.width)+c,x=m/2,w=x/(2.5+m/50),T=Math.max(e.height??0,p.height)+n+w,_,{cssStyles:v}=e;if(e.look==="handDrawn"){let F=b.svg(f),U=rS(0,0,m,T,x,w),V=iS(0,w,m,T,x,w),Z=Kt(e,{}),J=F.path(U,Z),lt=F.path(V,Kt(e,{fill:"none"}));if(_=f.insert(()=>lt,":first-child"),_=f.insert(()=>J,":first-child"),_.attr("class","basic label-container"),v)_.attr("style",v)}else{let F=eS(0,0,m,T,x,w);_=f.insert("path",":first-child").attr("d",F).attr("class","basic label-container outer-path").attr("style",Ae(v)).attr("style",a)}return _.attr("label-offset-y",w),_.attr("transform",`translate(${-m/2}, ${-(T/2+w)})`),B(e,_),u.attr("transform",`translate(${-(p.width/2)-(p.x-(p.left??0))}, ${-(p.height/2)+(e.padding??0)/1.5-(p.y-(p.top??0))})`),e.intersect=function(F){let U=E.rect(e,F),V=U.x-(e.x??0);if(x!=0&&(Math.abs(V)<(e.width??0)/2||Math.abs(V)==(e.width??0)/2&&Math.abs(U.y-(e.y??0))>(e.height??0)/2-w)){let Z=w*w*(1-V*V/(x*x));if(Z>0)Z=Math.sqrt(Z);if(Z=w-Z,F.y-(e.y??0)>0)Z=-Z;U.y+=Z}return U},f}t(xx,"cylinder");async function Ts(r,e,o){let{labelStyles:a,nodeStyles:s}=L(e);e.labelStyle=a;let{shapeSvg:n,bbox:c}=await q(r,e,te(e)),l=Math.max(c.width+o.labelPaddingX*2,e?.width||0),f=Math.max(c.height+o.labelPaddingY*2,e?.height||0),p=-l/2,u=-f/2,m,{rx:x,ry:w}=e,{cssStyles:T}=e;if(o?.rx&&o.ry)x=o.rx,w=o.ry;if(e.look==="handDrawn"){let _=b.svg(n),v=Kt(e,{}),F=x||w?_.path(yr(p,u,l,f,x||0),v):_.rectangle(p,u,l,f,v);m=n.insert(()=>F,":first-child"),m.attr("class","basic label-container").attr("style",Ae(T))}else m=n.insert("rect",":first-child"),m.attr("class","basic label-container").attr("style",s).attr("rx",Ae(x)).attr("ry",Ae(w)).attr("x",p).attr("y",u).attr("width",l).attr("height",f);return B(e,m,e.look==="handDrawn"?void 0:{width:l,height:f}),e.calcIntersect=function(_,v){return E.rect(_,v)},e.intersect=function(_){return E.rect(e,_)},n}t(Ts,"drawRect");async function Cx(r,e){let{cssClasses:o,labelPaddingX:a,labelPaddingY:s,padding:n,width:c,height:l}=e,f={rx:0,ry:0,classes:o??"",labelPaddingX:a??(n??0)*2,labelPaddingY:s??n??0},p=await Ts(r,e,f);if(e.look==="handDrawn"){let w=b.svg(p),T=Kt(e,{}),_=p.select(".basic.label-container > path:nth-child(2)"),v=_.node();if(!v)return p;let F=null;if(v instanceof SVGGraphicsElement)F=v.getBBox();else return p;return p.insert(()=>w.line(F.x,F.y,F.x+F.width,F.y,T),".basic.label-container g.label"),p.insert(()=>w.line(F.x,F.y+F.height,F.x+F.width,F.y+F.height,T),".basic.label-container g.label"),_.remove(),p}let u=p.select(".basic.label-container"),m=(Number(u.attr("width"))||c)??0,x=(Number(u.attr("height"))||l)??0;if(m>0&&x>0)u.attr("stroke-dasharray",`${m} ${x}`);return p}t(Cx,"datastore");async function bx(r,e){let{labelStyles:o,nodeStyles:a}=L(e);e.labelStyle=o;let s=e.look==="neo"?16:e.padding??0,n=e.look==="neo"?16:e.padding??0,{shapeSvg:c,bbox:l,label:f}=await q(r,e,te(e)),p=l.width+s,u=l.height+n,m=u*0.2,x=-p/2,w=-u/2-m/2,{cssStyles:T}=e,_=b.svg(c),v=Kt(e,{});if(e.look!=="handDrawn")v.roughness=0,v.fillStyle="solid";let F=[{x,y:w+m},{x:-x,y:w+m},{x:-x,y:-w},{x,y:-w},{x,y:w},{x:-x,y:w},{x:-x,y:w+m}],U=_.polygon(F.map((Z)=>[Z.x,Z.y]),v),V=c.insert(()=>U,":first-child");if(V.attr("class","basic label-container outer-path"),T&&e.look!=="handDrawn")V.selectAll("path").attr("style",T);if(a&&e.look!=="handDrawn")V.selectAll("path").attr("style",a);return f.attr("transform",`translate(${x+(e.padding??0)/2-(l.x-(l.left??0))}, ${w+m+(e.padding??0)/2-(l.y-(l.top??0))})`),B(e,V),e.intersect=function(Z){return E.rect(e,Z)},c}t(bx,"dividedRectangle");async function kx(r,e){let{labelStyles:o,nodeStyles:a}=L(e),s=e.look==="neo"?12:5;e.labelStyle=o;let n=e.padding??0,c=e.look==="neo"?16:n,{shapeSvg:l,bbox:f}=await q(r,e,te(e),{ignoreMinWidth:!0}),p=Math.sqrt(f.width**2+f.height**2)/2,u=(e?.width?e?.width/2:p)+(c??0),m=u+s,x,{cssStyles:w}=e;if(e.look==="handDrawn"){let T=b.svg(l),_=Kt(e,{roughness:0.2,strokeWidth:2.5}),v=Kt(e,{roughness:0.2,strokeWidth:1.5}),F=T.circle(0,0,m*2,_),U=T.circle(0,0,u*2,v);x=l.insert("g",":first-child"),x.attr("class",Ae(e.cssClasses)).attr("style",Ae(w)),x.node()?.appendChild(F),x.node()?.appendChild(U)}else{x=l.insert("g",":first-child");let T=x.insert("circle",":first-child"),_=x.insert("circle");x.attr("class","basic label-container").attr("style",a),T.attr("class","outer-circle").attr("style",a).attr("r",m).attr("cx",0).attr("cy",0),_.attr("class","inner-circle").attr("style",a).attr("r",u).attr("cx",0).attr("cy",0)}return B(e,x),e.intersect=function(T){return i.info("DoubleCircle intersect",e,m,T),E.circle(e,m,T)},l}t(kx,"doublecircle");async function wx(r,e){let{labelStyles:o,nodeStyles:a}=L(e);e.labelStyle=o;let{shapeSvg:s,bbox:n,halfPadding:c}=await q(r,e,te(e)),{theme:l,themeVariables:f}=d();jt(s,e.colorIndex,l,f.borderColorArray);let p=c??10,u=n.width/2+p*2,m=n.height/2+p*2,x,{cssStyles:w}=e;if(e.look==="handDrawn"){let T=b.svg(s),_=Kt(e,{}),v=T.ellipse(0,0,u*2,m*2,_);if(x=s.insert(()=>v,":first-child"),x.attr("class","basic label-container"),w)x.attr("style",w)}else x=s.insert("ellipse",":first-child").attr("class","basic label-container").attr("style",a).attr("rx",u).attr("ry",m).attr("cx",0).attr("cy",0);return e.width=u*2,e.height=m*2,B(e,x),e.calcIntersect=function(T,_){let v=T.width/2,F=T.height/2;return E.ellipse(T,v,F,_)},e.intersect=function(T){return E.ellipse(e,u,m,T)},s}t(wx,"usecaseEllipse");function Sx(r,e,{config:{themeVariables:o}}){let{labelStyles:a,nodeStyles:s}=L(e);e.label="",e.labelStyle=a;let n=r.insert("g").attr("class",te(e)).attr("id",e.domId??e.id),c=7,{cssStyles:l}=e,f=b.svg(n),{nodeBorder:p}=o,u=Kt(e,{fillStyle:"solid"});if(e.look!=="handDrawn")u.roughness=0;let m=f.circle(0,0,c*2,u),x=n.insert(()=>m,":first-child");if(x.selectAll("path").attr("style",`fill: ${p} !important;`),l&&l.length>0&&e.look!=="handDrawn")x.selectAll("path").attr("style",l);if(s&&e.look!=="handDrawn")x.selectAll("path").attr("style",s);return B(e,x),e.intersect=function(w){return i.info("filledCircle intersect",e,{radius:c,point:w}),E.circle(e,c,w)},n}t(Sx,"filledCircle");var Fy=10,Ay=10;async function Tx(r,e){let{labelStyles:o,nodeStyles:a}=L(e);e.labelStyle=o;let s=e.padding??0,n=e.look==="neo"?s*2:s;if(e.width||e.height){if(e.height=e?.height??0,e.height<Fy)e.height=Fy;if(e.width=(e?.width??0)-n-n/2,e.width<Ay)e.width=Ay}let{shapeSvg:c,bbox:l,label:f}=await q(r,e,te(e)),p=(e?.width?e?.width:l.width)+(n??0),u=e?.height?e?.height:p+l.height,m=u,x=[{x:0,y:-u},{x:m,y:-u},{x:m/2,y:0}],{cssStyles:w}=e,T=b.svg(c),_=Kt(e,{});if(e.look!=="handDrawn")_.roughness=0,_.fillStyle="solid";let v=xe(x),F=T.path(v,_),U=c.insert(()=>F,":first-child").attr("transform",`translate(${-u/2}, ${u/2})`).attr("class","outer-path");if(w&&e.look!=="handDrawn")U.selectChildren("path").attr("style",w);if(a&&e.look!=="handDrawn")U.selectChildren("path").attr("style",a);return e.width=p,e.height=u,B(e,U),f.attr("transform",`translate(${-l.width/2-(l.x-(l.left??0))}, ${-u/2+(e.padding??0)/2+(l.y-(l.top??0))})`),e.intersect=function(V){return i.info("Triangle intersect",e,x,V),E.polygon(e,x,V)},c}t(Tx,"flippedTriangle");async function _x(r,e){let{labelStyles:o,nodeStyles:a}=L(e);e.labelStyle=o;let{shapeSvg:s,bbox:n,label:c}=await q(r,e,te(e)),l=e.padding??12,f=Math.max(n.width+l*2,e.width??0,90),p=n.height+l*2,u=Math.max(Math.min(p*0.16,14),8),m=Math.max(p+u,e.height??0),x=m-u,w=Math.max(f*0.38,28),T=-m/2,_=[{x:-f/2,y:T},{x:-f/2+w,y:T},{x:-f/2+w,y:T+u},{x:f/2,y:T+u},{x:f/2,y:m/2},{x:-f/2,y:m/2}],v=[`M${_[0].x},${_[0].y}`,..._.slice(1).map((Z)=>`L${Z.x},${Z.y}`),"Z"].join(" "),{cssStyles:F}=e,U;if(e.look==="handDrawn"){let J=b.svg(s).path(v,Kt(e,{}));if(U=s.insert(()=>J,":first-child").attr("class","basic label-container"),F)U.attr("style",F)}else U=s.insert("path",":first-child").attr("d",v).attr("class","basic label-container").attr("style",a);if(e.look==="handDrawn")B(e,U);else B(e,U,{width:f,height:m});let V=T+u+x/2;return c.attr("transform",`translate(${-(n.width/2)-(n.x-(n.left??0))}, ${V-n.height/2-(n.y-(n.top??0))})`),e.intersect=function(Z){return E.polygon(e,_,Z)},s}t(_x,"folder");function Bx(r,e,{dir:o,config:{state:a,themeVariables:s}}){let{nodeStyles:n}=L(e);e.label="";let c=r.insert("g").attr("class",te(e)).attr("id",e.domId??e.id),{cssStyles:l}=e,f=Math.max(70,e?.width??0),p=Math.max(10,e?.height??0);if(o==="LR"||o==="RL")f=Math.max(10,e?.width??0),p=Math.max(70,e?.height??0);let u=-1*f/2,m=-1*p/2,x=b.svg(c),w=Kt(e,{stroke:s.lineColor,fill:s.lineColor});if(e.look!=="handDrawn")w.roughness=0,w.fillStyle="solid";let T=x.rectangle(u,m,f,p,w),_=c.insert(()=>T,":first-child");if(l&&e.look!=="handDrawn")_.selectAll("path").attr("style",l);if(n&&e.look!=="handDrawn")_.selectAll("path").attr("style",n);B(e,_);let v=a?.padding??0;if(e.width&&e.height)e.width+=v/2||0,e.height+=v/2||0;return e.intersect=function(F){return E.rect(e,F)},c}t(Bx,"forkJoin");async function vx(r,e){let{labelStyles:o,nodeStyles:a}=L(e);e.labelStyle=o;let s=15,n=10,c=e.look==="neo"?16:e.padding??0,l=e.look==="neo"?12:e.padding??0;if(e.width||e.height){if(e.height=(e?.height??0)-l*2,e.height<n)e.height=n;if(e.width=(e?.width??0)-c*2,e.width<s)e.width=s}let{shapeSvg:f,bbox:p}=await q(r,e,te(e)),u=(e?.height?e?.height:Math.max(n,p.height))+l*2,m=u/2,x=m-Math.sqrt(Math.max(0,m**2-(p.height/2)**2)),w=(e?.width?e?.width:Math.max(s,p.width)+x*2)+c*2,{cssStyles:T}=e,_=b.svg(f),v=Kt(e,{});if(e.look!=="handDrawn")v.roughness=0,v.fillStyle="solid";let F=[{x:-w/2,y:-u/2},{x:w/2-m,y:-u/2},...Vr(-w/2+m,0,m,50,90,270),{x:w/2-m,y:u/2},{x:-w/2,y:u/2}],U=xe(F),V=_.path(U,v),Z=f.insert(()=>V,":first-child");if(Z.attr("class","basic label-container outer-path"),T&&e.look!=="handDrawn")Z.selectChildren("path").attr("style",T);if(a&&e.look!=="handDrawn")Z.selectChildren("path").attr("style",a);return B(e,Z),e.intersect=function(J){return i.info("Pill intersect",e,{radius:m,point:J}),E.polygon(e,F,J)},f}t(vx,"halfRoundedRectangle");var oS=t((r,e,o,a,s)=>[`M${r+s},${e}`,`L${r+o-s},${e}`,`L${r+o},${e-a/2}`,`L${r+o-s},${e-a}`,`L${r+s},${e-a}`,`L${r},${e-a/2}`,"Z"].join(" "),"createHexagonPathD");async function Lx(r,e){let{labelStyles:o,nodeStyles:a}=L(e),s=e.look==="neo"?3.5:4;e.labelStyle=o;let n=e.padding??0,c=70,l=32,f=e.look==="neo"?c:n,p=e.look==="neo"?l:n;if(e.width||e.height){let V=(e.height??0)/s;e.width=(e?.width??0)-2*V-p,e.height=(e.height??0)-f}let{shapeSvg:u,bbox:m}=await q(r,e,te(e)),x=(e?.height?e?.height:m.height)+f,w=x/s,T=(e?.width?e?.width:m.width)+2*w+p,_=[{x:w,y:0},{x:T-w,y:0},{x:T,y:-x/2},{x:T-w,y:-x},{x:w,y:-x},{x:0,y:-x/2}],v,{cssStyles:F}=e;if(e.look==="handDrawn"){let U=b.svg(u),V=Kt(e,{}),Z=oS(0,0,T,x,w),J=U.path(Z,V);if(v=u.insert(()=>J,":first-child").attr("transform",`translate(${-T/2}, ${x/2})`),F)v.attr("style",F)}else v=Zr(u,T,x,_);if(a)v.attr("style",a);return e.width=T,e.height=x,B(e,v),e.intersect=function(U){return E.polygon(e,_,U)},u}t(Lx,"hexagon");async function Fx(r,e){let{labelStyles:o,nodeStyles:a}=L(e);e.label="",e.labelStyle=o;let{shapeSvg:s}=await q(r,e,te(e)),n=Math.max(30,e?.width??0),c=Math.max(30,e?.height??0),{cssStyles:l}=e,f=b.svg(s),p=Kt(e,{});if(e.look!=="handDrawn")p.roughness=0,p.fillStyle="solid";let u=[{x:0,y:0},{x:n,y:0},{x:0,y:c},{x:n,y:c}],m=xe(u),x=f.path(m,p),w=s.insert(()=>x,":first-child");if(w.attr("class","basic label-container outer-path"),l&&e.look!=="handDrawn")w.selectChildren("path").attr("style",l);if(a&&e.look!=="handDrawn")w.selectChildren("path").attr("style",a);return w.attr("transform",`translate(${-n/2}, ${-c/2})`),B(e,w),e.intersect=function(T){return i.info("Pill intersect",e,{points:u}),E.polygon(e,u,T)},s}t(Fx,"hourglass");async function Ax(r,e,{config:{themeVariables:o,flowchart:a}}){let{labelStyles:s}=L(e);e.labelStyle=s;let n=e.assetHeight??48,c=e.assetWidth??48,l=Math.max(n,c),f=a?.wrappingWidth;e.width=Math.max(l,f??0);let{shapeSvg:p,bbox:u,label:m}=await q(r,e,"icon-shape default"),x=e.pos==="t",w=l,T=l,{nodeBorder:_}=o,{stylesMap:v}=jr(e),F=-T/2,U=-w/2,V=e.label?8:0,Z=b.svg(p),J=Kt(e,{stroke:"none",fill:"none"});if(e.look!=="handDrawn")J.roughness=0,J.fillStyle="solid";let lt=Z.rectangle(F,U,T,w,J),st=Math.max(T,u.width),dt=w+u.height+V,Ct=Z.rectangle(-st/2,-dt/2,st,dt,{...J,fill:"transparent",stroke:"none"}),Bt=p.insert(()=>lt,":first-child"),kt=p.insert(()=>Ct);if(e.icon){let bt=p.append("g");bt.html(`<g>${await nn(e.icon,{height:l,width:l,fallbackPrefix:""})}</g>`);let it=bt.node().getBBox(),{width:ot,height:yt,x:et,y:wt}=it;bt.attr("transform",`translate(${-ot/2-et},${x?u.height/2+V/2-yt/2-wt:-u.height/2-V/2-yt/2-wt})`),bt.attr("style",`color: ${v.get("stroke")??_};`)}return m.attr("transform",`translate(${-u.width/2-(u.x-(u.left??0))},${x?-dt/2:dt/2-u.height})`),Bt.attr("transform",`translate(0,${x?u.height/2+V/2:-u.height/2-V/2})`),B(e,kt),e.intersect=function(bt){if(i.info("iconSquare intersect",e,bt),!e.label)return E.rect(e,bt);let it=e.x??0,ot=e.y??0,yt=e.height??0,et=[];if(x)et=[{x:it-u.width/2,y:ot-yt/2},{x:it+u.width/2,y:ot-yt/2},{x:it+u.width/2,y:ot-yt/2+u.height+V},{x:it+T/2,y:ot-yt/2+u.height+V},{x:it+T/2,y:ot+yt/2},{x:it-T/2,y:ot+yt/2},{x:it-T/2,y:ot-yt/2+u.height+V},{x:it-u.width/2,y:ot-yt/2+u.height+V}];else et=[{x:it-T/2,y:ot-yt/2},{x:it+T/2,y:ot-yt/2},{x:it+T/2,y:ot-yt/2+w},{x:it+u.width/2,y:ot-yt/2+w},{x:it+u.width/2/2,y:ot+yt/2},{x:it-u.width/2,y:ot+yt/2},{x:it-u.width/2,y:ot-yt/2+w},{x:it-T/2,y:ot-yt/2+w}];return E.polygon(e,et,bt)},p}t(Ax,"icon");async function Mx(r,e,{config:{themeVariables:o,flowchart:a}}){let{labelStyles:s}=L(e);e.labelStyle=s;let n=e.assetHeight??48,c=e.assetWidth??48,l=Math.max(n,c),f=a?.wrappingWidth;e.width=Math.max(l,f??0);let{shapeSvg:p,bbox:u,label:m}=await q(r,e,"icon-shape default"),x=20,w=e.label?8:0,T=e.pos==="t",{nodeBorder:_,mainBkg:v}=o,{stylesMap:F}=jr(e),U=b.svg(p),V=Kt(e,{});if(e.look!=="handDrawn")V.roughness=0,V.fillStyle="solid";let Z=F.get("fill");V.stroke=Z??v;let J=p.append("g");if(e.icon)J.html(`<g>${await nn(e.icon,{height:l,width:l,fallbackPrefix:""})}</g>`);let lt=J.node().getBBox(),{width:st,height:dt,x:Ct,y:Bt}=lt,kt=Math.max(st,dt)*Math.SQRT2+x*2,bt=U.circle(0,0,kt,V),it=Math.max(kt,u.width),ot=kt+u.height+w,yt=U.rectangle(-it/2,-ot/2,it,ot,{...V,fill:"transparent",stroke:"none"}),et=p.insert(()=>bt,":first-child"),wt=p.insert(()=>yt);return J.attr("transform",`translate(${-st/2-Ct},${T?u.height/2+w/2-dt/2-Bt:-u.height/2-w/2-dt/2-Bt})`),J.attr("style",`color: ${F.get("stroke")??_};`),m.attr("transform",`translate(${-u.width/2-(u.x-(u.left??0))},${T?-ot/2:ot/2-u.height})`),et.attr("transform",`translate(0,${T?u.height/2+w/2:-u.height/2-w/2})`),B(e,wt),e.intersect=function(Lt){return i.info("iconSquare intersect",e,Lt),E.rect(e,Lt)},p}t(Mx,"iconCircle");async function Ex(r,e,{config:{themeVariables:o,flowchart:a}}){let{labelStyles:s}=L(e);e.labelStyle=s;let n=e.assetHeight??48,c=e.assetWidth??48,l=Math.max(n,c),f=a?.wrappingWidth;e.width=Math.max(l,f??0);let{shapeSvg:p,bbox:u,halfPadding:m,label:x}=await q(r,e,"icon-shape default"),w=e.pos==="t",T=l+m*2,_=l+m*2,{nodeBorder:v,mainBkg:F}=o,{stylesMap:U}=jr(e),V=-_/2,Z=-T/2,J=e.label?8:0,lt=b.svg(p),st=Kt(e,{});if(e.look!=="handDrawn")st.roughness=0,st.fillStyle="solid";let dt=U.get("fill");st.stroke=dt??F;let Ct=lt.path(yr(V,Z,_,T,5),st),Bt=Math.max(_,u.width),kt=T+u.height+J,bt=lt.rectangle(-Bt/2,-kt/2,Bt,kt,{...st,fill:"transparent",stroke:"none"}),it=p.insert(()=>Ct,":first-child").attr("class","icon-shape2"),ot=p.insert(()=>bt);if(e.icon){let yt=p.append("g");yt.html(`<g>${await nn(e.icon,{height:l,width:l,fallbackPrefix:""})}</g>`);let et=yt.node().getBBox(),{width:wt,height:Lt,x:Vt,y:Xt}=et;yt.attr("transform",`translate(${-wt/2-Vt},${w?u.height/2+J/2-Lt/2-Xt:-u.height/2-J/2-Lt/2-Xt})`),yt.attr("style",`color: ${U.get("stroke")??v};`)}return x.attr("transform",`translate(${-u.width/2-(u.x-(u.left??0))},${w?-kt/2:kt/2-u.height})`),it.attr("transform",`translate(0,${w?u.height/2+J/2:-u.height/2-J/2})`),B(e,ot),e.intersect=function(yt){if(i.info("iconSquare intersect",e,yt),!e.label)return E.rect(e,yt);let et=e.x??0,wt=e.y??0,Lt=e.height??0,Vt=[];if(w)Vt=[{x:et-u.width/2,y:wt-Lt/2},{x:et+u.width/2,y:wt-Lt/2},{x:et+u.width/2,y:wt-Lt/2+u.height+J},{x:et+_/2,y:wt-Lt/2+u.height+J},{x:et+_/2,y:wt+Lt/2},{x:et-_/2,y:wt+Lt/2},{x:et-_/2,y:wt-Lt/2+u.height+J},{x:et-u.width/2,y:wt-Lt/2+u.height+J}];else Vt=[{x:et-_/2,y:wt-Lt/2},{x:et+_/2,y:wt-Lt/2},{x:et+_/2,y:wt-Lt/2+T},{x:et+u.width/2,y:wt-Lt/2+T},{x:et+u.width/2/2,y:wt+Lt/2},{x:et-u.width/2,y:wt+Lt/2},{x:et-u.width/2,y:wt-Lt/2+T},{x:et-_/2,y:wt-Lt/2+T}];return E.polygon(e,Vt,yt)},p}t(Ex,"iconRounded");async function Ox(r,e,{config:{themeVariables:o,flowchart:a}}){let{labelStyles:s}=L(e);e.labelStyle=s;let n=e.assetHeight??48,c=e.assetWidth??48,l=Math.max(n,c),f=a?.wrappingWidth;e.width=Math.max(l,f??0);let{shapeSvg:p,bbox:u,halfPadding:m,label:x}=await q(r,e,"icon-shape default"),w=e.pos==="t",T=l+m*2,_=l+m*2,{nodeBorder:v,mainBkg:F}=o,{stylesMap:U}=jr(e),V=-_/2,Z=-T/2,J=e.label?8:0,lt=b.svg(p),st=Kt(e,{});if(e.look!=="handDrawn")st.roughness=0,st.fillStyle="solid";let dt=U.get("fill");st.stroke=dt??F;let Ct=lt.path(yr(V,Z,_,T,0.1),st),Bt=Math.max(_,u.width),kt=T+u.height+J,bt=lt.rectangle(-Bt/2,-kt/2,Bt,kt,{...st,fill:"transparent",stroke:"none"}),it=p.insert(()=>Ct,":first-child"),ot=p.insert(()=>bt);if(e.icon){let yt=p.append("g");yt.html(`<g>${await nn(e.icon,{height:l,width:l,fallbackPrefix:""})}</g>`);let et=yt.node().getBBox(),{width:wt,height:Lt,x:Vt,y:Xt}=et;yt.attr("transform",`translate(${-wt/2-Vt},${w?u.height/2+J/2-Lt/2-Xt:-u.height/2-J/2-Lt/2-Xt})`),yt.attr("style",`color: ${U.get("stroke")??v};`)}return x.attr("transform",`translate(${-u.width/2-(u.x-(u.left??0))},${w?-kt/2:kt/2-u.height})`),it.attr("transform",`translate(0,${w?u.height/2+J/2:-u.height/2-J/2})`),B(e,ot),e.intersect=function(yt){if(i.info("iconSquare intersect",e,yt),!e.label)return E.rect(e,yt);let et=e.x??0,wt=e.y??0,Lt=e.height??0,Vt=[];if(w)Vt=[{x:et-u.width/2,y:wt-Lt/2},{x:et+u.width/2,y:wt-Lt/2},{x:et+u.width/2,y:wt-Lt/2+u.height+J},{x:et+_/2,y:wt-Lt/2+u.height+J},{x:et+_/2,y:wt+Lt/2},{x:et-_/2,y:wt+Lt/2},{x:et-_/2,y:wt-Lt/2+u.height+J},{x:et-u.width/2,y:wt-Lt/2+u.height+J}];else Vt=[{x:et-_/2,y:wt-Lt/2},{x:et+_/2,y:wt-Lt/2},{x:et+_/2,y:wt-Lt/2+T},{x:et+u.width/2,y:wt-Lt/2+T},{x:et+u.width/2/2,y:wt+Lt/2},{x:et-u.width/2,y:wt+Lt/2},{x:et-u.width/2,y:wt-Lt/2+T},{x:et-_/2,y:wt-Lt/2+T}];return E.polygon(e,Vt,yt)},p}t(Ox,"iconSquare");async function Ix(r,e,{config:{flowchart:o}}){let a=new Image;a.src=e?.img??"",await a.decode();let s=Number(a.naturalWidth.toString().replace("px","")),n=Number(a.naturalHeight.toString().replace("px",""));e.imageAspectRatio=s/n;let{labelStyles:c}=L(e);e.labelStyle=c;let l=o?.wrappingWidth;e.defaultWidth=o?.wrappingWidth;let f=Math.max(e.label?l??0:0,e?.assetWidth??s),p=e.constraint==="on"?e?.assetHeight?e.assetHeight*e.imageAspectRatio:f:f,u=e.constraint==="on"?p/e.imageAspectRatio:e?.assetHeight??n;e.width=Math.max(p,l??0);let{shapeSvg:m,bbox:x,label:w}=await q(r,e,"image-shape default"),T=e.pos==="t",_=-p/2,v=-u/2,F=e.label?8:0,U=b.svg(m),V=Kt(e,{});if(e.look!=="handDrawn")V.roughness=0,V.fillStyle="solid";let Z=U.rectangle(_,v,p,u,V),J=Math.max(p,x.width),lt=u+x.height+F,st=U.rectangle(-J/2,-lt/2,J,lt,{...V,fill:"none",stroke:"none"}),dt=m.insert(()=>Z,":first-child"),Ct=m.insert(()=>st);if(e.img){let Bt=m.append("image");Bt.attr("href",e.img),Bt.attr("width",p),Bt.attr("height",u),Bt.attr("preserveAspectRatio","none"),Bt.attr("transform",`translate(${-p/2},${T?lt/2-u:-lt/2})`)}return w.attr("transform",`translate(${-x.width/2-(x.x-(x.left??0))},${T?-u/2-x.height/2-F/2:u/2-x.height/2+F/2})`),dt.attr("transform",`translate(0,${T?x.height/2+F/2:-x.height/2-F/2})`),B(e,Ct),e.intersect=function(Bt){if(i.info("iconSquare intersect",e,Bt),!e.label)return E.rect(e,Bt);let kt=e.x??0,bt=e.y??0,it=e.height??0,ot=[];if(T)ot=[{x:kt-x.width/2,y:bt-it/2},{x:kt+x.width/2,y:bt-it/2},{x:kt+x.width/2,y:bt-it/2+x.height+F},{x:kt+p/2,y:bt-it/2+x.height+F},{x:kt+p/2,y:bt+it/2},{x:kt-p/2,y:bt+it/2},{x:kt-p/2,y:bt-it/2+x.height+F},{x:kt-x.width/2,y:bt-it/2+x.height+F}];else ot=[{x:kt-p/2,y:bt-it/2},{x:kt+p/2,y:bt-it/2},{x:kt+p/2,y:bt-it/2+u},{x:kt+x.width/2,y:bt-it/2+u},{x:kt+x.width/2/2,y:bt+it/2},{x:kt-x.width/2,y:bt+it/2},{x:kt-x.width/2,y:bt-it/2+u},{x:kt-p/2,y:bt-it/2+u}];return E.polygon(e,ot,Bt)},m}t(Ix,"imageSquare");async function $x(r,e){let{labelStyles:o,nodeStyles:a}=L(e);e.labelStyle=o;let s=e.padding??0,n=s,c=e.look==="neo"?s*2:s,{shapeSvg:l,bbox:f}=await q(r,e,te(e)),p=Math.max(f.height+n*2,e.height??0),u=Math.max(f.width+c*2,(e.width??0)-p),m=[{x:0,y:0},{x:u,y:0},{x:u+3*p/6,y:-p},{x:-3*p/6,y:-p}],x,{cssStyles:w}=e;if(e.look==="handDrawn"){let T=b.svg(l),_=Kt(e,{}),v=xe(m),F=T.path(v,_);if(x=l.insert(()=>F,":first-child").attr("transform",`translate(${-u/2}, ${p/2})`),w)x.attr("style",w)}else x=Zr(l,u,p,m);if(a)x.attr("style",a);return e.width=u,e.height=p,B(e,x),e.intersect=function(T){return E.polygon(e,m,T)},l}t($x,"inv_trapezoid");async function Dx(r,e){let{shapeSvg:o,bbox:a,label:s}=await q(r,e,"label"),n=o.insert("rect",":first-child"),c=0.1,l=0.1;return n.attr("width",0.1).attr("height",0.1),o.attr("class","label edgeLabel"),s.attr("transform",`translate(${-(a.width/2)-(a.x-(a.left??0))}, ${-(a.height/2)-(a.y-(a.top??0))})`),B(e,n),e.intersect=function(f){return E.rect(e,f)},o}t(Dx,"labelRect");async function Px(r,e){let{labelStyles:o,nodeStyles:a}=L(e);e.labelStyle=o;let s=e.padding??0,n=s,c=e.look==="neo"?s*2:s,{shapeSvg:l,bbox:f}=await q(r,e,te(e)),p=Math.max(f.height+n,e.height??0),u=Math.max(f.width+c,(e.width??0)-p),m=[{x:0,y:0},{x:u+3*p/6,y:0},{x:u,y:-p},{x:-(3*p)/6,y:-p}],x,{cssStyles:w}=e;if(e.look==="handDrawn"){let T=b.svg(l),_=Kt(e,{}),v=xe(m),F=T.path(v,_);if(x=l.insert(()=>F,":first-child").attr("transform",`translate(${-u/2}, ${p/2})`),w)x.attr("style",w)}else x=Zr(l,u,p,m);if(a)x.attr("style",a);return e.width=u,e.height=p,B(e,x),e.intersect=function(T){return E.polygon(e,m,T)},l}t(Px,"lean_left");async function Rx(r,e){let{labelStyles:o,nodeStyles:a}=L(e);e.labelStyle=o;let s=e.padding??0,n=s,c=e.look==="neo"?s*2:s,{shapeSvg:l,bbox:f}=await q(r,e,te(e)),p=Math.max(f.height+n,e.height??0),u=Math.max(f.width+c,(e.width??0)-p),m=[{x:-3*p/6,y:0},{x:u,y:0},{x:u+3*p/6,y:-p},{x:0,y:-p}],x,{cssStyles:w}=e;if(e.look==="handDrawn"){let T=b.svg(l),_=Kt(e,{}),v=xe(m),F=T.path(v,_);if(x=l.insert(()=>F,":first-child").attr("transform",`translate(${-u/2}, ${p/2})`),w)x.attr("style",w)}else x=Zr(l,u,p,m);if(a)x.attr("style",a);return e.width=u,e.height=p,B(e,x),e.intersect=function(T){return E.polygon(e,m,T)},l}t(Rx,"lean_right");function qx(r,e){let{labelStyles:o,nodeStyles:a}=L(e);e.label="",e.labelStyle=o;let s=r.insert("g").attr("class",te(e)).attr("id",e.domId??e.id),{cssStyles:n}=e,c=Math.max(35,e?.width??0),l=Math.max(35,e?.height??0),f=7,p=[{x:c,y:0},{x:0,y:l+f/2},{x:c-2*f,y:l+f/2},{x:0,y:2*l},{x:c,y:l-f/2},{x:2*f,y:l-f/2}],u=b.svg(s),m=Kt(e,{});if(e.look!=="handDrawn")m.roughness=0,m.fillStyle="solid";let x=xe(p),w=u.path(x,m),T=s.insert(()=>w,":first-child");if(T.attr("class","outer-path"),n&&e.look!=="handDrawn")T.selectAll("path").attr("style",n);if(a&&e.look!=="handDrawn")T.selectAll("path").attr("style",a);return T.attr("transform",`translate(-${c/2},${-l})`),B(e,T),e.intersect=function(_){return i.info("lightningBolt intersect",e,_),E.polygon(e,p,_)},s}t(qx,"lightningBolt");var sS=t((r,e,o,a,s,n,c)=>[`M${r},${e+n}`,`a${s},${n} 0,0,0 ${o},0`,`a${s},${n} 0,0,0 ${-o},0`,`l0,${a}`,`a${s},${n} 0,0,0 ${o},0`,`l0,${-a}`,`M${r},${e+n+c}`,`a${s},${n} 0,0,0 ${o},0`].join(" "),"createCylinderPathD"),aS=t((r,e,o,a,s,n,c)=>[`M${r},${e+n}`,`M${r+o},${e+n}`,`a${s},${n} 0,0,0 ${-o},0`,`l0,${a}`,`a${s},${n} 0,0,0 ${o},0`,`l0,${-a}`,`M${r},${e+n+c}`,`a${s},${n} 0,0,0 ${o},0`].join(" "),"createOuterCylinderPathD"),nS=t((r,e,o,a,s,n)=>[`M${r-o/2},${-a/2}`,`a${s},${n} 0,0,0 ${o},0`].join(" "),"createInnerCylinderPathD"),My=10,Ey=10;async function Nx(r,e){let{labelStyles:o,nodeStyles:a}=L(e);e.labelStyle=o;let s=e.padding??0,n=e.look==="neo"?16:s,c=e.look==="neo"?24:s;if(e.width||e.height){let F=e.width??0;if(e.width=(e.width??0)-n,e.width<Ey)e.width=Ey;let V=F/2/(2.5+F/50);if(e.height=(e.height??0)-c-V*3,e.height<My)e.height=My}let{shapeSvg:l,bbox:f,label:p}=await q(r,e,te(e)),u=(e?.width?e?.width:f.width)+n*2,m=u/2,x=m/(2.5+u/50),w=(e?.height?e?.height:f.height)+x+c*2,T=w*0.1,_,{cssStyles:v}=e;if(e.look==="handDrawn"){let F=b.svg(l),U=aS(0,0,u,w,m,x,T),V=nS(0,x,u,w,m,x),Z=Kt(e,{}),J=F.path(U,Z),lt=F.path(V,Z);if(l.insert(()=>lt,":first-child").attr("class","line"),_=l.insert(()=>J,":first-child"),_.attr("class","basic label-container"),v)_.attr("style",v)}else{let F=sS(0,0,u,w,m,x,T);_=l.insert("path",":first-child").attr("d",F).attr("class","basic label-container outer-path").attr("style",Ae(v)).attr("style",a)}return _.attr("label-offset-y",x),_.attr("transform",`translate(${-u/2}, ${-(w/2+x)})`),B(e,_),p.attr("transform",`translate(${-(f.width/2)-(f.x-(f.left??0))}, ${-(f.height/2)+x-(f.y-(f.top??0))})`),e.intersect=function(F){let U=E.rect(e,F),V=U.x-(e.x??0);if(m!=0&&(Math.abs(V)<(e.width??0)/2||Math.abs(V)==(e.width??0)/2&&Math.abs(U.y-(e.y??0))>(e.height??0)/2-x)){let Z=x*x*(1-V*V/(m*m));if(Z>0)Z=Math.sqrt(Z);if(Z=x-Z,F.y-(e.y??0)>0)Z=-Z;U.y+=Z}return U},l}t(Nx,"linedCylinder");async function Wx(r,e){let{labelStyles:o,nodeStyles:a}=L(e);e.labelStyle=o;let s=e.padding??0,n=e.look==="neo"?16:s,c=e.look==="neo"?12:s;if(e.width||e.height){let Z=e.width;if(e.width=(Z??0)*10/11-n*2,e.width<10)e.width=10;if(e.height=(e?.height??0)-c*2,e.height<10)e.height=10}let{shapeSvg:l,bbox:f,label:p}=await q(r,e,te(e)),u=(e?.width?e?.width:f.width)+(n??0)*2,m=(e?.height?e?.height:f.height)+(c??0)*2,x=e.look==="neo"?m/4:m/8,w=m+x,{cssStyles:T}=e,_=b.svg(l),v=Kt(e,{});if(e.look!=="handDrawn")v.roughness=0,v.fillStyle="solid";let F=[{x:-u/2-u/2*0.1,y:-w/2},{x:-u/2-u/2*0.1,y:w/2},...to(-u/2-u/2*0.1,w/2,u/2+u/2*0.1,w/2,x,0.8),{x:u/2+u/2*0.1,y:-w/2},{x:-u/2-u/2*0.1,y:-w/2},{x:-u/2,y:-w/2},{x:-u/2,y:w/2*1.1},{x:-u/2,y:-w/2}],U=_.polygon(F.map((Z)=>[Z.x,Z.y]),v),V=l.insert(()=>U,":first-child");if(V.attr("class","basic label-container outer-path"),T&&e.look!=="handDrawn")V.selectAll("path").attr("style",T);if(a&&e.look!=="handDrawn")V.selectAll("path").attr("style",a);return V.attr("transform",`translate(0,${-x/2})`),p.attr("transform",`translate(${-u/2+(e.padding??0)+u/2*0.1/2-(f.x-(f.left??0))},${-m/2+(e.padding??0)-x-(f.y-(f.top??0))})`),B(e,V),e.intersect=function(Z){return E.polygon(e,F,Z)},l}t(Wx,"linedWaveEdgedRect");var lS=56,Uf=72,Oy=8,Iy=2,hS=8,cS={normal:"usecase-actor-shape usecase-actor-normal",hollow:"usecase-actor-hollow",awesome:"usecase-actor-awesome",icon:"usecase-actor-icon"},$y=Math.PI/3,Dy=0.6,jf=t((r,e)=>{let o=e*Dy,a=e*Math.sqrt(1-Dy**2),s=Math.cos($y),n=-Math.sin($y),c=o*-n,l=r+o*s,f=a*s,p=a*n;return`M ${c-f} ${l-p} L ${c+f} ${l+p}`},"businessMarkerPathForCircle"),uS={normal:jf(-24,12),hollow:jf(-23,9),awesome:jf(-21,13),icon:"M 12 -8 L 26 -26"},Py=t((r,e,o)=>{let a=(e.x??0)-(e.left??0),s=(e.y??0)-(e.top??0);r.attr("transform",`translate(${-e.width/2-a},${o-e.height/2-s})`)},"positionLabel"),od=t((r,e,o,a,s=!1)=>{if(e.look==="handDrawn"){let l=b.svg(r).path(o,Kt(e,s?{fill:"none"}:{}));return r.insert(()=>l,":first-child").attr("class",a)}let n=r.append("path").attr("class",a).attr("d",o);if(s)n.attr("fill","none");return n},"appendActorPath"),fS=t((r,e,o,a,s,n,c=!1)=>{if(e.look==="handDrawn"){let p=b.svg(r).circle(o,a,s*2,Kt(e,c?{fill:"none"}:{}));return r.insert(()=>p,":first-child").attr("class",n)}let l=r.append("circle").attr("class",n).attr("cx",o).attr("cy",a).attr("r",s);if(c)l.attr("fill","none");return l},"appendActorCircle");var dS=t((r,e,o)=>{if(!e.business)return;r.append("path").attr("class","usecase-business-marker usecase-actor-business-marker").attr("d",uS[o]).attr("fill","none").attr("style","stroke: inherit !important; stroke-width: inherit !important")},"appendBusinessActorMarker");async function qa(r,e,o,a){let{labelStyles:s,nodeStyles:n}=L(e);e.labelStyle=s;let c=o==="icon"||e.stereotype!==void 0?{...e,icon:o==="icon"?void 0:e.icon,stereotype:void 0}:e,{shapeSvg:l,bbox:f,label:p}=await q(r,c,te(e,`usecase-actor-variant usecase-actor-${o}`)),u=e.accessibleName??e.label;if(u)l.attr("role","img").attr("aria-label",u);p.attr("class","label actor-label usecase-actor-label");let{theme:m,themeVariables:x}=d();jt(l,e.colorIndex,m,x.borderColorArray);let w,T;if(e.stereotype){let dt=await fo(l,`«${e.stereotype}»`,{labelStyle:s,useHtmlLabels:e.useHtmlLabels,padding:0,centerLabel:!0,width:e.wrappingWidth});w=dt.label.attr("class","label usecase-stereotype"),T=dt.bbox}let _=l.append("g").attr("class",`usecase-actor-glyph ${cS[o]}`).attr("style",n||null);await a(_,e),dS(_,e,o);let v=e.padding??hS,F=T?.height??0,U=Uf+Oy+f.height+(T?F+Iy:0),V=Math.max(lS,f.width,T?.width??0)+v*2,Z=U+v*2,J=-U/2;_.attr("transform",`translate(0,${J+Uf/2})`);let lt=J+Uf+Oy;if(w&&T)lt+=F/2,Py(w,T,lt),lt+=F/2+Iy;Py(p,f,lt+f.height/2);let st=l.insert("rect",":first-child").attr("class","usecase-actor-outline").attr("x",-V/2).attr("y",-Z/2).attr("width",V).attr("height",Z).attr("opacity",0).attr("aria-hidden","true");return B(e,st),e.intersect=(dt)=>E.rect(e,dt),l}t(qa,"renderUsecaseActor");var pS=["M 0 -12","C 6.627 -12 12 -17.373 12 -24","C 12 -30.627 6.627 -36 0 -36","C -6.627 -36 -12 -30.627 -12 -24","C -12 -17.373 -6.627 -12 0 -12 Z","M 0 -12 V 8","M -17 -5 H 17","M 0 8 L -15 28","M 0 8 L 15 28"].join(" ");async function zx(r,e){return qa(r,e,"normal",(o,a)=>{od(o,a,pS,"usecase-actor-stick")})}t(zx,"usecaseActor");var gS=["M 0 -34","C 7.18 -34 13 -28.18 13 -21","C 13 -13.82 7.18 -8 0 -8","C -7.18 -8 -13 -13.82 -13 -21","C -13 -28.18 -7.18 -34 0 -34 Z","M -24 25","C -24 7 -14 -3 0 -3","C 14 -3 24 7 24 25","C 24 28 21 30 18 30","H -18","C -21 30 -24 28 -24 25 Z"].join(" ");async function Hx(r,e){return qa(r,e,"awesome",(o,a)=>{od(o,a,gS,"usecase-actor-awesome-silhouette")})}t(Hx,"usecaseActorAwesome");var mS=["M -22 -10","H 22","V 0","H 6","L 22 17","L 13 28","L 0 13","L -13 28","L -22 17","L -6 0","H -22","Z"].join(" ");async function Yx(r,e){return qa(r,e,"hollow",(o,a)=>{fS(o,a,0,-23,9,"usecase-actor-hollow-head",!0),od(o,a,mS,"usecase-actor-hollow-body",!0)})}t(Yx,"usecaseActorHollow");var bs=52,Ry=42,qy=-2,yS=t(async(r,e)=>{let o=-bs/2,a=qy-bs/2;if(e.look==="handDrawn"){let u=b.svg(r).rectangle(o,a,bs,bs,Kt(e,{}));r.insert(()=>u,":first-child").attr("class","usecase-actor-icon-frame")}else r.append("rect").attr("class","usecase-actor-icon-frame").attr("x",o).attr("y",a).attr("width",bs).attr("height",bs).attr("rx",4).attr("ry",4);let s=e.icon??"",n=await el(s.includes(":")?s:`fa:${s}`),c=await nn(s,{height:Ry,width:Ry,fallbackPrefix:"fa"}),l=r.append("g").attr("class",`usecase-actor-icon-symbol${n?"":" usecase-actor-icon-fallback"}`).attr("aria-hidden","true").html(`<g>${c}</g>`),f=l.node()?.getBBox();if(f)l.attr("transform",`translate(${-f.width/2-f.x},${qy-f.height/2-f.y})`)},"drawIconActor");async function Ux(r,e){return qa(r,e,"icon",yS)}t(Ux,"usecaseActorIcon");var Ny=t((r,e,o)=>{let a=(e.x??0)-(e.left??0),s=(e.y??0)-(e.top??0);r.attr("transform",`translate(${-e.width/2-a},${o-e.height/2-s})`)},"positionLabel");async function jx(r,e){let o=e,{labelStyles:a,nodeStyles:s}=L(e);e.labelStyle=a;let n=o.stereotype?{...e,stereotype:void 0}:e,{shapeSvg:c,bbox:l,halfPadding:f,label:p}=await q(r,n,te(e,"usecase-business-shape"));p.attr("class","label usecase-label");let{theme:u,themeVariables:m}=d();jt(c,e.colorIndex,u,m.borderColorArray);let x,w;if(o.stereotype){let it=await fo(c,`«${o.stereotype}»`,{labelStyle:a,useHtmlLabels:e.useHtmlLabels,padding:0,centerLabel:!0,width:e.wrappingWidth});x=it.label.attr("class","label usecase-stereotype"),w=it.bbox}let T=w?2:0,_=l.height+(w?.height??0)+T,v=Math.max(l.width,w?.width??0),F=f??10,U=v/2+F*2,V=_/2+F*2,Z=Math.min(Math.max(F/5,1),F/2),J=v/2+Z,lt=U-Z,st=J/U,dt=lt/U,Ct=V*Math.sqrt(Math.max(0,1-st*st)),Bt=-V*Math.sqrt(Math.max(0,1-dt*dt));if(x&&w)Ny(x,w,-_/2+w.height/2);Ny(p,l,_/2-l.height/2);let kt;if(e.look==="handDrawn"){let ot=b.svg(c).ellipse(0,0,U*2,V*2,Kt(e,{}));kt=c.insert(()=>ot,":first-child").attr("class","basic label-container usecase-business-ellipse")}else kt=c.insert("ellipse",":first-child").attr("class","basic label-container usecase-business-ellipse").attr("style",s).attr("rx",U).attr("ry",V).attr("cx",0).attr("cy",0);c.append("path").attr("class","usecase-business-marker").attr("d",`M ${J} ${Ct} L ${lt} ${Bt}`).attr("fill","none").attr("style",s||null);let bt=o.accessibleName??o.label;if(bt)c.attr("role","img").attr("aria-label",bt);return B(e,kt),e.calcIntersect=(it,ot)=>E.ellipse(it,it.width/2,it.height/2,ot),e.intersect=(it)=>E.ellipse(e,U,V,it),c}t(jx,"usecaseBusiness");var Gf=8,Wy=4,xS=1,Xf=t((r,e,o,a)=>{let s=(e.x??0)-(e.left??0),n=(e.y??0)-(e.top??0);r.attr("transform",`translate(${o-e.width/2-s},${a-e.height/2-n})`)},"positionLabel"),CS=t((r)=>{let e=Number.parseFloat(r??"");return Number.isFinite(e)&&e>=0?e:xS},"numericStrokeWidth");async function Gx(r,e){let o=e,{labelStyles:a,nodeStyles:s}=L(e),{stylesMap:n}=jr(e);e.labelStyle=a;let{shapeSvg:c,bbox:l,label:f}=await q(r,e,te(e,"usecase-json-table"));if(c.attr("role","img"),o.accessibleName)c.attr("aria-label",o.accessibleName);f.attr("class","label usecase-json-title");let p=c.append("g").attr("class","usecase-json-table-grid"),u=[];for(let it of o.jsonRows??[]){let ot=await fo(p,it.key,{labelStyle:a,useHtmlLabels:e.useHtmlLabels,padding:0,centerLabel:!0}),yt=await fo(p,it.value,{labelStyle:a,useHtmlLabels:e.useHtmlLabels,padding:0,centerLabel:!0});u.push({key:{label:ot.label.attr("class","label usecase-json-key"),bbox:ot.bbox},value:{label:yt.label.attr("class","label usecase-json-value"),bbox:yt.bbox}})}let m=Math.max(0,...u.map(({key:it})=>it.bbox.width))+Gf*2,x=Math.max(0,...u.map(({value:it})=>it.bbox.width))+Gf*2,w=l.width+Gf*2,T=Math.max(w,m+x),_=x+Math.max(0,T-m-x),v=l.height+Wy*2,F=u.map(({key:it,value:ot})=>Math.max(it.bbox.height,ot.bbox.height)+Wy*2),U=v+F.reduce((it,ot)=>it+ot,0),V=CS(n.get("stroke-width")),Z=T+V*2,J=U+V*2,lt=-T/2,st=-U/2,dt=e.look==="handDrawn"?b.svg(c):void 0,Ct=dt?Kt(e,{}):void 0,Bt=t((it,ot,yt,et,wt,Lt)=>{if(dt&&Ct){let Vt=dt.rectangle(yt,et,wt,Lt,Ct);return it.insert(()=>Vt,":first-child").attr("class",ot)}return it.insert("rect",":first-child").attr("class",ot).attr("x",yt).attr("y",et).attr("width",wt).attr("height",Lt).attr("style",s)},"insertCell"),kt=Bt(c,"label-container usecase-json-border",-Z/2,-J/2,Z,J);Bt(p,"usecase-json-cell usecase-json-title-cell",lt,st,T,v),p.node()?.append(f.node()),Xf(f,l,0,st+v/2);let bt=st+v;return u.forEach(({key:it,value:ot},yt)=>{let et=F[yt],wt=p.append("g").attr("class","usecase-json-row").attr("data-row-index",yt).attr("transform",`translate(0,${bt})`);Bt(wt,"usecase-json-cell usecase-json-key-cell",lt,0,m,et),Bt(wt,"usecase-json-cell usecase-json-value-cell",lt+m,0,_,et),wt.node()?.append(it.label.node(),ot.label.node()),Xf(it.label,it.bbox,lt+m/2,et/2),Xf(ot.label,ot.bbox,lt+m+_/2,et/2),bt+=et}),B(e,kt),e.intersect=(it)=>E.rect(e,it),c}t(Gx,"usecaseJsonTable");async function Xx(r,e){let{labelStyles:o,nodeStyles:a}=L(e);e.labelStyle=o;let s=e.padding??0,n=e.look==="neo"?16:s,c=e.look==="neo"?12:s,l=e.look==="neo"?10:5;if(e.width||e.height)e.width=Math.max((e?.width??0)-n*2-2*l,10),e.height=Math.max((e?.height??0)-c*2-2*l,10);let{shapeSvg:f,bbox:p,label:u}=await q(r,e,te(e)),m=(e?.width?e?.width:p.width)+n*2+2*l,x=(e?.height?e?.height:p.height)+c*2+2*l,w=m-2*l,T=x-2*l,_=-w/2,v=-T/2,{cssStyles:F}=e,U=b.svg(f),V=Kt(e,{}),Z=[{x:_-l,y:v+l},{x:_-l,y:v+T+l},{x:_+w-l,y:v+T+l},{x:_+w-l,y:v+T},{x:_+w,y:v+T},{x:_+w,y:v+T-l},{x:_+w+l,y:v+T-l},{x:_+w+l,y:v-l},{x:_+l,y:v-l},{x:_+l,y:v},{x:_,y:v},{x:_,y:v+l}],J=[{x:_,y:v+l},{x:_+w-l,y:v+l},{x:_+w-l,y:v+T},{x:_+w,y:v+T},{x:_+w,y:v},{x:_,y:v}];if(e.look!=="handDrawn")V.roughness=0,V.fillStyle="solid";let lt=xe(Z),st=U.path(lt,V),dt=xe(J),Ct=U.path(dt,V);if(e.look!=="handDrawn")st=Kf(st),Ct=Kf(Ct);let Bt=f.insert("g",":first-child");if(Bt.insert(()=>st),Bt.insert(()=>Ct),Bt.attr("class","basic label-container outer-path"),F&&e.look!=="handDrawn")Bt.selectAll("path").attr("style",F);if(a&&e.look!=="handDrawn")Bt.selectAll("path").attr("style",a);return u.attr("transform",`translate(${-(p.width/2)-l-(p.x-(p.left??0))}, ${-(p.height/2)+l-(p.y-(p.top??0))})`),B(e,Bt),e.intersect=function(kt){return E.polygon(e,Z,kt)},f}t(Xx,"multiRect");async function Vx(r,e){let{labelStyles:o,nodeStyles:a}=L(e);e.labelStyle=o;let{shapeSvg:s,bbox:n,label:c}=await q(r,e,te(e)),l=e.padding??0,f=e.look==="neo"?16:l,p=e.look==="neo"?12:l,u=!0;if(e.width||e.height)u=!1,e.width=(e?.width??0)-f*2,e.height=(e?.height??0)-p*3;let m=Math.max(n.width,e?.width??0)+f*2,x=Math.max(n.height,e?.height??0)+p*3,w=e.look==="neo"?x/4:x/8,T=x+(u?w/2:-w/2),_=-m/2,v=-T/2,F=10,{cssStyles:U}=e,V=to(_-F,v+T+F,_+m-F,v+T+F,w,0.8),Z=V?.[V.length-1],J=[{x:_-F,y:v+F},{x:_-F,y:v+T+F},...V,{x:_+m-F,y:Z.y-F},{x:_+m,y:Z.y-F},{x:_+m,y:Z.y-2*F},{x:_+m+F,y:Z.y-2*F},{x:_+m+F,y:v-F},{x:_+F,y:v-F},{x:_+F,y:v},{x:_,y:v},{x:_,y:v+F}],lt=[{x:_,y:v+F},{x:_+m-F,y:v+F},{x:_+m-F,y:Z.y-F},{x:_+m,y:Z.y-F},{x:_+m,y:v},{x:_,y:v}],st=b.svg(s),dt=Kt(e,{});if(e.look!=="handDrawn")dt.roughness=0,dt.fillStyle="solid";let Ct=xe(J),Bt=st.path(Ct,dt),kt=xe(lt),bt=st.path(kt,dt),it=s.insert(()=>Bt,":first-child");if(it.insert(()=>bt),it.attr("class","basic label-container outer-path"),U&&e.look!=="handDrawn")it.selectAll("path").attr("style",U);if(a&&e.look!=="handDrawn")it.selectAll("path").attr("style",a);return it.attr("transform",`translate(0,${-w/2})`),c.attr("transform",`translate(${-(n.width/2)-F-(n.x-(n.left??0))}, ${-(n.height/2)+F-w-(n.y-(n.top??0))})`),B(e,it),e.intersect=function(ot){return E.polygon(e,J,ot)},s}t(Vx,"multiWaveEdgedRectangle");async function Kx(r,e,{config:{themeVariables:o}}){let{labelStyles:a,nodeStyles:s}=L(e);if(e.labelStyle=a,!(e.useHtmlLabels||nt(A())))e.centerLabel=!0;let{shapeSvg:c,bbox:l,label:f}=await q(r,e,te(e)),p=Math.max(l.width+(e.padding??0)*2,e?.width??0),u=Math.max(l.height+(e.padding??0)*2,e?.height??0),m=-p/2,x=-u/2,{cssStyles:w}=e,T=b.svg(c),_=Kt(e,{fill:o.noteBkgColor,stroke:o.noteBorderColor});if(e.look!=="handDrawn")_.roughness=0,_.fillStyle="solid";let v=T.rectangle(m,x,p,u,_),F=c.insert(()=>v,":first-child");if(F.attr("class","basic label-container outer-path"),f.attr("class","label noteLabel"),w&&e.look!=="handDrawn")F.selectAll("path").attr("style",w);if(s&&e.look!=="handDrawn")F.selectAll("path").attr("style",s);return f.attr("transform",`translate(${-l.width/2-(l.x-(l.left??0))}, ${-(l.height/2)-(l.y-(l.top??0))})`),B(e,F),e.intersect=function(U){return E.rect(e,U)},c}t(Kx,"note");var bS=t((r,e,o)=>[`M${r+o/2},${e}`,`L${r+o},${e-o/2}`,`L${r+o/2},${e-o}`,`L${r},${e-o/2}`,"Z"].join(" "),"createDecisionBoxPathD");async function Zx(r,e){let{labelStyles:o,nodeStyles:a}=L(e);e.labelStyle=o;let{shapeSvg:s,bbox:n}=await q(r,e,te(e)),c=n.width+(e.padding??0),l=n.height+(e.padding??0),f=c+l,p=0.5,u=[{x:f/2,y:0},{x:f,y:-f/2},{x:f/2,y:-f},{x:0,y:-f/2}],m,{cssStyles:x}=e;if(e.look==="handDrawn"){let w=b.svg(s),T=Kt(e,{}),_=bS(0,0,f),v=w.path(_,T);if(m=s.insert(()=>v,":first-child").attr("transform",`translate(${-f/2+p}, ${f/2})`),x)m.attr("style",x)}else m=Zr(s,f,f,u),m.attr("transform",`translate(${-f/2+p}, ${f/2})`);if(a)m.attr("style",a);return B(e,m),e.calcIntersect=function(w,T){let _=w.width,v=[{x:_/2,y:0},{x:_,y:-_/2},{x:_/2,y:-_},{x:0,y:-_/2}];return E.polygon(w,v,T)},e.intersect=function(w){return this.calcIntersect(e,w)},s}t(Zx,"question");async function Qx(r,e){let{labelStyles:o,nodeStyles:a}=L(e);e.labelStyle=o;let s=e.padding??0,n=e.look==="neo"?21:s??0,c=e.look==="neo"?12:s??0,{shapeSvg:l,bbox:f,label:p}=await q(r,e,te(e)),u=f.width+(e.look==="neo"?n*2:n),m=Math.max(f.height+(e.look==="neo"?c*2:c),e.height??0),x=m/4,T=-Math.max(u,(e.width??0)-x)/2,_=-m/2,v=_/2,F=[{x:T+v,y:_},{x:T,y:0},{x:T+v,y:-_},{x:-T,y:-_},{x:-T,y:_}],{cssStyles:U}=e,V=b.svg(l),Z=Kt(e,{});if(e.look!=="handDrawn")Z.roughness=0,Z.fillStyle="solid";let J=xe(F),lt=V.path(J,Z),st=l.insert(()=>lt,":first-child");if(st.attr("class","basic label-container outer-path"),U&&e.look!=="handDrawn")st.selectAll("path").attr("style",U);if(a&&e.look!=="handDrawn")st.selectAll("path").attr("style",a);return st.attr("transform",`translate(${-v/2},0)`),p.attr("transform",`translate(${-v/2-f.width/2-(f.x-(f.left??0))}, ${-(f.height/2)-(f.y-(f.top??0))})`),B(e,st),e.intersect=function(dt){return E.polygon(e,F,dt)},l}t(Qx,"rect_left_inv_arrow");async function Jx(r,e){let{labelStyles:o,nodeStyles:a}=L(e);e.labelStyle=o;let s;if(!e.cssClasses)s="node default";else s="node "+e.cssClasses;let n=r.insert("g").attr("class",s).attr("id",e.domId||e.id),c=n.insert("g"),l=n.insert("g").attr("class","label").attr("style",a),{description:f,label:p}=e,u=await Pr(l,p,e.labelStyle,!0,!0),m={width:0,height:0};if(nt(d())){let dt=u.children[0],Ct=y(u);m=dt.getBoundingClientRect(),Ct.attr("width",m.width),Ct.attr("height",m.height)}i.info("Text 2",f);let x=f||[],w=u.getBBox(),T=await Pr(l,Array.isArray(x)?x.join("<br/>"):x,e.labelStyle,!0,!0),_=T.children[0],v=y(T);m=_.getBoundingClientRect(),v.attr("width",m.width),v.attr("height",m.height);let F=(e.padding||0)/2;y(T).attr("transform","translate( "+(m.width>w.width?0:(w.width-m.width)/2)+", "+(w.height+F+5)+")"),y(u).attr("transform","translate( "+(m.width<w.width?0:-(w.width-m.width)/2)+", 0)"),m=l.node().getBBox(),l.attr("transform","translate("+-m.width/2+", "+(-m.height/2-F+3)+")");let U=m.width+(e.padding||0),V=m.height+(e.padding||0),Z=-m.width/2-F,J=-m.height/2-F,lt,st;if(e.look==="handDrawn"){let dt=b.svg(n),Ct=Kt(e,{}),Bt=dt.path(yr(Z,J,U,V,e.rx||0),Ct),kt=dt.line(-m.width/2-F,-m.height/2-F+w.height+F,m.width/2+F,-m.height/2-F+w.height+F,Ct);st=n.insert(()=>(i.debug("Rough node insert CXC",Bt),kt),":first-child"),lt=n.insert(()=>(i.debug("Rough node insert CXC",Bt),Bt),":first-child")}else lt=c.insert("rect",":first-child"),st=c.insert("line"),lt.attr("class","outer title-state").attr("style",a).attr("x",-m.width/2-F).attr("y",-m.height/2-F).attr("width",m.width+(e.padding||0)).attr("height",m.height+(e.padding||0)),st.attr("class","divider").attr("x1",-m.width/2-F).attr("x2",m.width/2+F).attr("y1",-m.height/2-F+w.height+F).attr("y2",-m.height/2-F+w.height+F);return B(e,lt),e.intersect=function(dt){return E.rect(e,dt)},n}t(Jx,"rectWithTitle");async function t0(r,e,{config:{themeVariables:o}}){let a=o?.radius??5,s={rx:a,ry:a,classes:"",labelPaddingX:(e?.padding??0)*1,labelPaddingY:(e?.padding??0)*1};return Ts(r,e,s)}t(t0,"roundedRect");var uo=8;async function e0(r,e){let{labelStyles:o,nodeStyles:a}=L(e);e.labelStyle=o;let s=e.look==="neo"?16:e.padding??0,n=e.look==="neo"?12:e.padding??0,{shapeSvg:c,bbox:l,label:f}=await q(r,e,te(e)),p=(e?.width??l.width)+s*2+(e.look==="neo"?uo:uo*2),u=(e?.height??l.height)+n*2,m=p-uo,x=u,w=uo-p/2,T=-u/2,{cssStyles:_}=e,v=b.svg(c),F=Kt(e,{});if(e.look!=="handDrawn")F.roughness=0,F.fillStyle="solid";let U=[{x:w,y:T},{x:w+m,y:T},{x:w+m,y:T+x},{x:w-uo,y:T+x},{x:w-uo,y:T},{x:w,y:T},{x:w,y:T+x}],V=v.polygon(U.map((J)=>[J.x,J.y]),F),Z=c.insert(()=>V,":first-child");if(Z.attr("class","basic label-container outer-path").attr("style",Ae(_)),a&&e.look!=="handDrawn")Z.selectAll("path").attr("style",a);if(_&&e.look!=="handDrawn")Z.selectAll("path").attr("style",a);return f.attr("transform",`translate(${uo/2-l.width/2-(l.x-(l.left??0))}, ${-(l.height/2)-(l.y-(l.top??0))})`),B(e,Z),e.intersect=function(J){return E.rect(e,J)},c}t(e0,"shadedProcess");async function r0(r,e){let{labelStyles:o,nodeStyles:a}=L(e);e.labelStyle=o;let s=e.padding??0,n=e.look==="neo"?16:s,c=e.look==="neo"?12:s;if(e.width||e.height)e.width=Math.max((e?.width??0)-n*2,10),e.height=Math.max((e?.height??0)/1.5-c*2,10);let{shapeSvg:l,bbox:f,label:p}=await q(r,e,te(e)),u=(e?.width?e?.width:f.width)+n*2,m=((e?.height?e?.height:f.height)+c*2)*1.5,x=u,w=m/1.5,T=-x/2,_=-w/2,{cssStyles:v}=e,F=b.svg(l),U=Kt(e,{});if(e.look!=="handDrawn")U.roughness=0,U.fillStyle="solid";let V=[{x:T,y:_},{x:T,y:_+w},{x:T+x,y:_+w},{x:T+x,y:_-w/2}],Z=xe(V),J=F.path(Z,U),lt=l.insert(()=>J,":first-child");if(lt.attr("class","basic label-container outer-path"),v&&e.look!=="handDrawn")lt.selectChildren("path").attr("style",v);if(a&&e.look!=="handDrawn")lt.selectChildren("path").attr("style",a);return lt.attr("transform",`translate(0, ${w/4})`),p.attr("transform",`translate(${-x/2+(e.padding??0)-(f.x-(f.left??0))}, ${-w/4+(e.padding??0)-(f.y-(f.top??0))})`),B(e,lt),e.intersect=function(st){return E.polygon(e,V,st)},l}t(r0,"slopedRect");async function i0(r,e){let o=e.padding??0,a=e.look==="neo"?16:o*2,s=e.look==="neo"?12:o,n={rx:0,ry:0,classes:"",labelPaddingX:e.labelPaddingX??a,labelPaddingY:s},c=await Ts(r,e,n);if(e.colorIndex!==void 0){let{theme:l,themeVariables:f}=d();jt(c,e.colorIndex,l,f.borderColorArray)}return c}t(i0,"squareRect");var Jf=50,kS=t((r,e,o)=>{let a=r.height+o,s=a*Math.cos(Math.PI/(2*(Jf-1))),n=Math.sqrt(Math.max(0,s**2-r.height**2));return{w:Math.max(r.width+a/4+e,1.5*a+(a-s),r.width+e+a-n),h:a}},"stadiumDimensions");async function o0(r,e){let{labelStyles:o,nodeStyles:a}=L(e);e.labelStyle=o;let s=e.padding??0,n=e.look==="neo"?40:s,c=e.look==="neo"?24:s,{shapeSvg:l,bbox:f}=await q(r,e,te(e)),{w:p,h:u}=kS(f,n,c),m=u/2,{cssStyles:x}=e,w=b.svg(l),T=Kt(e,{});if(e.look!=="handDrawn")T.roughness=0,T.fillStyle="solid";let _=[{x:-p/2+m,y:-u/2},{x:p/2-m,y:-u/2},...Vr(-p/2+m,0,m,Jf,90,270),{x:p/2-m,y:u/2},...Vr(p/2-m,0,m,Jf,270,450)],v=xe(_),F=w.path(v,T),U=l.insert(()=>F,":first-child");if(U.attr("class","basic label-container outer-path"),x&&e.look!=="handDrawn")U.selectChildren("path").attr("style",x);if(a&&e.look!=="handDrawn")U.selectChildren("path").attr("style",a);return B(e,U),e.intersect=function(V){return E.polygon(e,_,V)},l}t(o0,"stadium");async function s0(r,e){let o={rx:e.look==="neo"?3:5,ry:e.look==="neo"?3:5,classes:"flowchart-node"};return Ts(r,e,o)}t(s0,"state");function a0(r,e,{config:{themeVariables:o}}){let{labelStyles:a,nodeStyles:s}=L(e);e.labelStyle=a;let{cssStyles:n}=e,{lineColor:c,stateBorder:l,nodeBorder:f,nodeShadow:p}=o;if(e.width||e.height){if((e.width??0)<14)e.width=14;if((e.height??0)<14)e.height=14}if(!e.width)e.width=14;if(!e.height)e.height=14;let u=r.insert("g").attr("class","node default").attr("id",e.domId??e.id),m=b.svg(u),x=Kt(e,{});if(e.look!=="handDrawn")x.roughness=0,x.fillStyle="solid";let w=m.circle(0,0,e.width,{...x,stroke:c,strokeWidth:2}),T=l??f,_=(e.width??0)*5/14,v=m.circle(0,0,_,{...x,fill:T,stroke:T,strokeWidth:2,fillStyle:"solid"}),F=u.insert(()=>w,":first-child");if(F.insert(()=>v),e.look!=="handDrawn")F.attr("class","outer-path");if(n)F.selectAll("path").attr("style",n);if(s)F.selectAll("path").attr("style",s);if(e.width<25&&p&&e.look!=="handDrawn"){let U=r.node()?.ownerSVGElement?.id??"",V=U?`${U}-drop-shadow-small`:"drop-shadow-small";F.attr("style",`filter:url(#${V})`)}return B(e,F),e.intersect=function(U){return E.circle(e,(e.width??0)/2,U)},u}t(a0,"stateEnd");function n0(r,e,{config:{themeVariables:o}}){let{lineColor:a,nodeShadow:s}=o;if(e.width||e.height){if((e.width??0)<14)e.width=14;if((e.height??0)<14)e.height=14}if(!e.width)e.width=14;if(!e.height)e.height=14;let n=r.insert("g").attr("class","node default").attr("id",e.domId||e.id),c;if(e.look==="handDrawn"){let f=b.svg(n).circle(0,0,e.width,Gg(a));c=n.insert(()=>f),c.attr("class","state-start").attr("r",(e.width??7)/2).attr("width",e.width??14).attr("height",e.height??14)}else c=n.insert("circle",":first-child"),c.attr("class","state-start").attr("r",(e.width??7)/2).attr("width",e.width??14).attr("height",e.height??14);if(e.width<25&&s&&e.look!=="handDrawn"){let l=r.node()?.ownerSVGElement?.id??"",f=l?`${l}-drop-shadow-small`:"drop-shadow-small";c.attr("style",`filter:url(#${f})`)}return B(e,c),e.intersect=function(l){return E.circle(e,(e.width??7)/2,l)},n}t(n0,"stateStart");var ks=8;async function l0(r,e){let{labelStyles:o,nodeStyles:a}=L(e);e.labelStyle=o;let s=e?.padding??8,n=e.look==="neo"?28:s,c=e.look==="neo"?12:s,{shapeSvg:l,bbox:f}=await q(r,e,te(e)),p=Math.max(f.width+2*ks+n,e.width??0),u=Math.max(f.height+c,e.height??0),m=p-2*ks,x=u,w=-p/2,T=-u/2,_=[{x:0,y:0},{x:m,y:0},{x:m,y:-x},{x:0,y:-x},{x:0,y:0},{x:-8,y:0},{x:m+8,y:0},{x:m+8,y:-x},{x:-8,y:-x},{x:-8,y:0}];if(e.look==="handDrawn"){let v=b.svg(l),F=Kt(e,{}),U=v.rectangle(w,T,m+16,x,F),V=v.line(w+ks,T,w+ks,T+x,F),Z=v.line(w+ks+m,T,w+ks+m,T+x,F);l.insert(()=>V,":first-child"),l.insert(()=>Z,":first-child");let J=l.insert(()=>U,":first-child"),{cssStyles:lt}=e;J.attr("class","basic label-container").attr("style",Ae(lt)),B(e,J)}else{let v=Zr(l,m,x,_);if(a)v.attr("style",a);B(e,v)}return e.intersect=function(v){return E.polygon(e,_,v)},l}t(l0,"subroutine");var Vf=0.2;async function h0(r,e){let{labelStyles:o,nodeStyles:a}=L(e);e.labelStyle=o;let s=e.padding??0,n=e.look==="neo"?16:s,c=e.look==="neo"?12:s;if(e.width||e.height)e.height=Math.max((e?.height??0)-c*2,10),e.width=Math.max((e?.width??0)-n*2-Vf*(e.height+c*2),10);let{shapeSvg:l,bbox:f}=await q(r,e,te(e)),p=(e?.height?e?.height:f.height)+c*2,u=Vf*p,m=Vf*p,w=(e?.width?e?.width:f.width)+n*2+u-u,T=p,_=-w/2,v=-T/2,{cssStyles:F}=e,U=b.svg(l),V=Kt(e,{}),Z=[{x:_-u/2,y:v},{x:_+w+u/2,y:v},{x:_+w+u/2,y:v+T},{x:_-u/2,y:v+T}],J=[{x:_+w-u/2,y:v+T},{x:_+w+u/2,y:v+T},{x:_+w+u/2,y:v+T-m}];if(e.look!=="handDrawn")V.roughness=0,V.fillStyle="solid";let lt=xe(Z),st=U.path(lt,V),dt=xe(J),Ct=U.path(dt,{...V,fillStyle:"solid"}),Bt=l.insert(()=>Ct,":first-child");if(Bt.insert(()=>st,":first-child"),Bt.attr("class","basic label-container outer-path"),F&&e.look!=="handDrawn")Bt.selectAll("path").attr("style",F);if(a&&e.look!=="handDrawn")Bt.selectAll("path").attr("style",a);return B(e,Bt),e.intersect=function(kt){return E.polygon(e,Z,kt)},l}t(h0,"taggedRect");async function c0(r,e){let{labelStyles:o,nodeStyles:a}=L(e);e.labelStyle=o;let{shapeSvg:s,bbox:n,label:c}=await q(r,e,te(e)),l=Math.max(n.width+(e.padding??0)*2,e?.width??0),f=Math.max(n.height+(e.padding??0)*2,e?.height??0),p=f/8,u=0.2*l,m=0.2*f,x=f+p,{cssStyles:w}=e,T=b.svg(s),_=Kt(e,{});if(e.look!=="handDrawn")_.roughness=0,_.fillStyle="solid";let v=[{x:-l/2-l/2*0.1,y:x/2},...to(-l/2-l/2*0.1,x/2,l/2+l/2*0.1,x/2,p,0.8),{x:l/2+l/2*0.1,y:-x/2},{x:-l/2-l/2*0.1,y:-x/2}],F=-l/2+l/2*0.1,U=-x/2-m*0.4,V=[{x:F+l-u,y:(U+f)*1.3},{x:F+l,y:U+f-m},{x:F+l,y:(U+f)*0.9},...to(F+l,(U+f)*1.25,F+l-u,(U+f)*1.3,-f*0.02,0.5)],Z=xe(v),J=T.path(Z,_),lt=xe(V),st=T.path(lt,{..._,fillStyle:"solid"}),dt=s.insert(()=>st,":first-child");if(dt.insert(()=>J,":first-child"),dt.attr("class","basic label-container outer-path"),w&&e.look!=="handDrawn")dt.selectAll("path").attr("style",w);if(a&&e.look!=="handDrawn")dt.selectAll("path").attr("style",a);return dt.attr("transform",`translate(0,${-p/2})`),c.attr("transform",`translate(${-l/2+(e.padding??0)-(n.x-(n.left??0))},${-f/2+(e.padding??0)-p/2-(n.y-(n.top??0))})`),B(e,dt),e.intersect=function(Ct){return E.polygon(e,v,Ct)},s}t(c0,"taggedWaveEdgedRectangle");async function u0(r,e){let{labelStyles:o,nodeStyles:a}=L(e);e.labelStyle=o;let{shapeSvg:s,bbox:n}=await q(r,e,te(e)),c=Math.max(n.width+(e.padding??0),e?.width||0),l=Math.max(n.height+(e.padding??0),e?.height||0),f=-c/2,p=-l/2,u=s.insert("rect",":first-child");return u.attr("class","text").attr("style",a).attr("rx",0).attr("ry",0).attr("x",f).attr("y",p).attr("width",c).attr("height",l),B(e,u),e.intersect=function(m){return E.rect(e,m)},s}t(u0,"text");var wS=t((r,e,o,a,s,n)=>`M${r},${e}
234
+ a${s},${n} 0,0,1 0,${-a}
235
+ l${o},0
236
+ a${s},${n} 0,0,1 0,${a}
237
+ M${o},${-a}
238
+ a${s},${n} 0,0,0 0,${a}
239
+ l${-o},0`,"createCylinderPathD"),SS=t((r,e,o,a,s,n)=>[`M${r},${e}`,`M${r+o},${e}`,`a${s},${n} 0,0,0 0,${-a}`,`l${-o},0`,`a${s},${n} 0,0,0 0,${a}`,`l${o},0`].join(" "),"createOuterCylinderPathD"),TS=t((r,e,o,a,s,n)=>[`M${r+o/2},${-a/2}`,`a${s},${n} 0,0,0 0,${a}`].join(" "),"createInnerCylinderPathD"),zy=5,Hy=10;async function f0(r,e){let{labelStyles:o,nodeStyles:a}=L(e);e.labelStyle=o;let s=e.padding??0,n=e.look==="neo"?12:s/2,c=e.height??0;if(e.height){if(e.height=e.height-n,e.height<zy)e.height=zy}if(e.width){let F=c/2/(2.5+c/50);if(e.width=e.width-n-F*3,e.width<Hy)e.width=Hy}let{shapeSvg:l,bbox:f,label:p}=await q(r,e,te(e)),u=Math.max(e.height??0,f.height)+n,m=u/2,x=m/(2.5+u/50),w=Math.max(e.width??0,f.width)+x+n,{cssStyles:T}=e,_;if(e.look==="handDrawn"){let v=b.svg(l),F=SS(0,0,w,u,x,m),U=TS(0,0,w,u,x,m),V=v.path(F,Kt(e,{})),Z=v.path(U,Kt(e,{fill:"none"}));if(_=l.insert(()=>Z,":first-child"),_=l.insert(()=>V,":first-child"),_.attr("class","basic label-container"),T)_.attr("style",T)}else{let v=wS(0,0,w,u,x,m);if(_=l.insert("path",":first-child").attr("d",v).attr("class","basic label-container").attr("style",Ae(T)).attr("style",a),_.attr("class","basic label-container outer-path"),T)_.selectAll("path").attr("style",T);if(a)_.selectAll("path").attr("style",a)}return _.attr("label-offset-x",x),_.attr("transform",`translate(${-w/2}, ${u/2} )`),p.attr("transform",`translate(${-(f.width/2)-x-(f.x-(f.left??0))}, ${-(f.height/2)-(f.y-(f.top??0))})`),B(e,_),e.intersect=function(v){let F=E.rect(e,v),U=F.y-(e.y??0);if(m!=0&&(Math.abs(U)<(e.height??0)/2||Math.abs(U)==(e.height??0)/2&&Math.abs(F.x-(e.x??0))>(e.width??0)/2-x)){let V=x*x*(1-U*U/(m*m));if(V!=0)V=Math.sqrt(Math.abs(V));if(V=x-V,v.x-(e.x??0)>0)V=-V;F.x+=V}return F},l}t(f0,"tiltedCylinder");async function d0(r,e){let{labelStyles:o,nodeStyles:a}=L(e);e.labelStyle=o;let s=e.padding??0,n=e.look==="neo"?s:s,c=e.look==="neo"?s*2:s,{shapeSvg:l,bbox:f}=await q(r,e,te(e)),p=Math.max(f.height+n,e.height??0),u=Math.max(f.width+c,(e.width??0)-p),m=[{x:-3*p/6,y:0},{x:u+3*p/6,y:0},{x:u,y:-p},{x:0,y:-p}],x,{cssStyles:w}=e;if(e.look==="handDrawn"){let T=b.svg(l),_=Kt(e,{}),v=xe(m),F=T.path(v,_);if(x=l.insert(()=>F,":first-child").attr("transform",`translate(${-u/2}, ${p/2})`),w)x.attr("style",w)}else x=Zr(l,u,p,m);if(a)x.attr("style",a);return e.width=u,e.height=p,B(e,x),e.intersect=function(T){return E.polygon(e,m,T)},l}t(d0,"trapezoid");async function p0(r,e){let{labelStyles:o,nodeStyles:a}=L(e);e.labelStyle=o;let s=e.padding??0,n=e.look==="neo"?16:s,c=e.look==="neo"?12:s,l=15,f=5;if(e.width||e.height){if(e.height=(e.height??0)-c*2,e.height<f)e.height=f;if(e.width=(e.width??0)-n*2,e.width<l)e.width=l}let{shapeSvg:p,bbox:u}=await q(r,e,te(e)),m=(e?.width?e?.width:u.width)+n*2,x=(e?.height?e?.height:u.height)+c*2,{cssStyles:w}=e,T=b.svg(p),_=Kt(e,{});if(e.look!=="handDrawn")_.roughness=0,_.fillStyle="solid";let v=[{x:-m/2*0.8,y:-x/2},{x:m/2*0.8,y:-x/2},{x:m/2,y:-x/2*0.6},{x:m/2,y:x/2},{x:-m/2,y:x/2},{x:-m/2,y:-x/2*0.6}],F=xe(v),U=T.path(F,_),V=p.insert(()=>U,":first-child");if(V.attr("class","basic label-container outer-path"),w&&e.look!=="handDrawn")V.selectChildren("path").attr("style",w);if(a&&e.look!=="handDrawn")V.selectChildren("path").attr("style",a);return B(e,V),e.intersect=function(Z){return E.polygon(e,v,Z)},p}t(p0,"trapezoidalPentagon");var Yy=10,Uy=10;async function g0(r,e){let{labelStyles:o,nodeStyles:a}=L(e);e.labelStyle=o;let s=e.padding??0,n=e.look==="neo"?s*2:s;if(e.width||e.height){if(e.width=((e?.width??0)-n)/2,e.width<Uy)e.width=Uy;if(e.height=e?.height??0,e.height<Yy)e.height=Yy}let{shapeSvg:c,bbox:l,label:f}=await q(r,e,te(e)),p=gn(d().flowchart?.htmlLabels),u=(e?.width?e?.width:l.width)+n,m=e?.height?e?.height:u+l.height,x=m,w=[{x:0,y:0},{x,y:0},{x:x/2,y:-m}],{cssStyles:T}=e,_=b.svg(c),v=Kt(e,{});if(e.look!=="handDrawn")v.roughness=0,v.fillStyle="solid";let F=xe(w),U=_.path(F,v),V=c.insert(()=>U,":first-child").attr("transform",`translate(${-m/2}, ${m/2})`).attr("class","outer-path");if(T&&e.look!=="handDrawn")V.selectChildren("path").attr("style",T);if(a&&e.look!=="handDrawn")V.selectChildren("path").attr("style",a);return e.width=u,e.height=m,B(e,V),f.attr("transform",`translate(${-l.width/2-(l.x-(l.left??0))}, ${m/2-(l.height+(e.padding??0)/(p?2:1)-(l.y-(l.top??0)))})`),e.intersect=function(Z){return i.info("Triangle intersect",e,w,Z),E.polygon(e,w,Z)},c}t(g0,"triangle");async function m0(r,e){let{labelStyles:o,nodeStyles:a}=L(e);e.labelStyle=o;let s=e.padding??0,n=e.look==="neo"?16:s,c=e.look==="neo"?12:s,l=!0;if(e.width||e.height){if(l=!1,e.width=(e?.width??0)-n*2,e.width<10)e.width=10;if(e.height=(e?.height??0)-c*2,e.height<10)e.height=10}let{shapeSvg:f,bbox:p,label:u}=await q(r,e,te(e)),m=(e?.width?e?.width:p.width)+(n??0)*2,x=(e?.height?e?.height:p.height)+(c??0)*2,w=e.look==="neo"?x/4:x/8,T=x+(l?w:-w),{cssStyles:_}=e,F=14-m,U=F>0?F/2:0,V=b.svg(f),Z=Kt(e,{});if(e.look!=="handDrawn")Z.roughness=0,Z.fillStyle="solid";let J=[{x:-m/2-U,y:T/2},...to(-m/2-U,T/2,m/2+U,T/2,w,0.8),{x:m/2+U,y:-T/2},{x:-m/2-U,y:-T/2}],lt=xe(J),st=V.path(lt,Z),dt=f.insert(()=>st,":first-child");if(dt.attr("class","basic label-container outer-path"),_&&e.look!=="handDrawn")dt.selectAll("path").attr("style",_);if(a&&e.look!=="handDrawn")dt.selectAll("path").attr("style",a);return dt.attr("transform",`translate(0,${-w/2})`),u.attr("transform",`translate(${-m/2+(e.padding??0)-(p.x-(p.left??0))},${-x/2+(e.padding??0)-w-(p.y-(p.top??0))})`),B(e,dt),e.intersect=function(Ct){return E.polygon(e,J,Ct)},f}t(m0,"waveEdgedRectangle");async function y0(r,e){let{labelStyles:o,nodeStyles:a}=L(e);e.labelStyle=o;let s=e.padding??0,n=e.look==="neo"?16:s,c=e.look==="neo"?20:s;if(e.width||e.height){if(e.width=e?.width??0,e.width<20)e.width=20;if(e.height=e?.height??0,e.height<10)e.height=10;let Z=Math.min(e.height*0.2,e.height/4);e.height=Math.ceil(e.height-c-Z*2.2222222222222223),e.width=e.width-n*2}let{shapeSvg:l,bbox:f}=await q(r,e,te(e)),p=(e?.width?e?.width:f.width)+n*2,u=(e?.height?e?.height:f.height)+c,m=u/8,x=u+m*2,{cssStyles:w}=e,T=b.svg(l),_=Kt(e,{});if(e.look!=="handDrawn")_.roughness=0,_.fillStyle="solid";let v=[{x:-p/2,y:x/2},...to(-p/2,x/2,p/2,x/2,m,1),{x:p/2,y:-x/2},...to(p/2,-x/2,-p/2,-x/2,m,-1)],F=xe(v),U=T.path(F,_),V=l.insert(()=>U,":first-child");if(V.attr("class","basic label-container"),w&&e.look!=="handDrawn")V.selectAll("path").attr("style",w);if(a&&e.look!=="handDrawn")V.selectAll("path").attr("style",a);return B(e,V),e.intersect=function(Z){return E.polygon(e,v,Z)},l}t(y0,"waveRectangle");var Ie=10;async function x0(r,e){let{labelStyles:o,nodeStyles:a}=L(e);e.labelStyle=o;let s=e.look==="neo"?16:e.padding??0,n=e.look==="neo"?12:e.padding??0;if(e.width||e.height)e.width=Math.max((e?.width??0)-s*2-Ie,10),e.height=Math.max((e?.height??0)-n*2-Ie,10);let{shapeSvg:c,bbox:l,label:f}=await q(r,e,te(e)),p=(e?.width?e?.width:l.width)+s*2+Ie,u=(e?.height?e?.height:l.height)+n*2+Ie,m=p-Ie,x=u-Ie,w=-m/2,T=-x/2,{cssStyles:_}=e,v=b.svg(c),F=Kt(e,{}),U=[{x:w-Ie,y:T-Ie},{x:w-Ie,y:T+x},{x:w+m,y:T+x},{x:w+m,y:T-Ie}],V=`M${w-Ie},${T-Ie} L${w+m},${T-Ie} L${w+m},${T+x} L${w-Ie},${T+x} L${w-Ie},${T-Ie}
240
+ M${w-Ie},${T} L${w+m},${T}
241
+ M${w},${T-Ie} L${w},${T+x}`;if(e.look!=="handDrawn")F.roughness=0,F.fillStyle="solid";let Z=v.path(V,F),J=c.insert(()=>Z,":first-child");if(J.attr("transform",`translate(${Ie/2}, ${Ie/2})`),J.attr("class","basic label-container outer-path"),_&&e.look!=="handDrawn")J.selectAll("path").attr("style",_);if(a&&e.look!=="handDrawn")J.selectAll("path").attr("style",a);return f.attr("transform",`translate(${-(l.width/2)+Ie/2-(l.x-(l.left??0))}, ${-(l.height/2)+Ie/2-(l.y-(l.top??0))})`),B(e,J),e.intersect=function(lt){return E.polygon(e,U,lt)},c}t(x0,"windowPane");var jy=new Set(["redux-color","redux-dark-color"]),_S=new Set(["redux","redux-dark","redux-color","redux-dark-color"]);async function sd(r,e){let o=e;if(o.alias)e.label=o.alias;let{theme:a,themeVariables:s}=A(),{rowEven:n,rowOdd:c,nodeBorder:l,borderColorArray:f}=s;if(e.look==="handDrawn"){let{themeVariables:Gt}=A(),{background:ie}=Gt,ne={...e,id:e.id+"-background",domId:(e.domId||e.id)+"-background",look:"default",cssStyles:["stroke: none",`fill: ${ie}`]};await sd(r,ne)}let p=A();e.useHtmlLabels=p.htmlLabels;let u=p.er?.diagramPadding??10,m=p.er?.entityPadding??6,{cssStyles:x}=e,{labelStyles:w,nodeStyles:T}=L(e);if(o.attributes.length===0&&e.label){let Gt={rx:0,ry:0,labelPaddingX:u,labelPaddingY:u*1.5,classes:""};if(Ht(e.label,p)+Gt.labelPaddingX*2<p.er.minEntityWidth)e.width=p.er.minEntityWidth;let ie=await Ts(r,e,Gt);if(a!=null&&jy.has(a)){let ne=o.colorIndex??0;ie.attr("data-color-id",`color-${ne%f.length}`)}if(!gn(p.htmlLabels)){let ne=ie.select("text"),le=ne.node()?.getBBox();ne.attr("transform",`translate(${-le.width/2}, 0)`)}return ie}if(!p.htmlLabels)u*=1.25,m*=1.25;let _=te(e);if(!_)_="node default";let v=r.insert("g").attr("class",_).attr("id",e.domId||e.id),F=await ws(v,e.label??"",p,0,0,["name"],w);F.height+=m;let U=0,V=[],Z=[],J=0,lt=0,st=0,dt=0,Ct=!0,Bt=!0;for(let Gt of o.attributes){let ie=await ws(v,Gt.type,p,0,U,["attribute-type"],w);J=Math.max(J,ie.width+u);let ne=await ws(v,Gt.name,p,0,U,["attribute-name"],w);lt=Math.max(lt,ne.width+u);let le=await ws(v,Gt.keys.join(),p,0,U,["attribute-keys"],w);st=Math.max(st,le.width+u);let ve=await ws(v,Gt.comment,p,0,U,["attribute-comment"],w);dt=Math.max(dt,ve.width+u);let Be=Math.max(ie.height,ne.height,le.height,ve.height)+m;Z.push({yOffset:U,rowHeight:Be}),U+=Be}let kt=4;if(st<=u)Ct=!1,st=0,kt--;if(dt<=u)Bt=!1,dt=0,kt--;let bt=v.node().getBBox();if(F.width+u*2-(J+lt+st+dt)>0){let Gt=F.width+u*2-(J+lt+st+dt);if(J+=Gt/kt,lt+=Gt/kt,st>0)st+=Gt/kt;if(dt>0)dt+=Gt/kt}let it=J+lt+st+dt,ot=b.svg(v),yt=Kt(e,{});if(e.look!=="handDrawn")yt.roughness=0,yt.fillStyle="solid";let et=0;if(Z.length>0)et=Z.reduce((Gt,ie)=>Gt+(ie?.rowHeight??0),0);let wt=Math.max(bt.width+u*2,e?.width||0,it),Lt=Math.max((et??0)+F.height,e?.height||0),Vt=-wt/2,Xt=-Lt/2;if(v.selectAll("g:not(:first-child)").each((Gt,ie,ne)=>{let le=y(ne[ie]),ve=le.attr("transform"),Be=0,Fr=0;if(ve){let kr=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(ve);if(kr){if(Be=parseFloat(kr[1]),Fr=parseFloat(kr[2]),le.attr("class").includes("attribute-name"))Be+=J;else if(le.attr("class").includes("attribute-keys"))Be+=J+lt;else if(le.attr("class").includes("attribute-comment"))Be+=J+lt+st}}le.attr("transform",`translate(${Vt+u/2+Be}, ${Fr+Xt+F.height+m/2})`)}),v.select(".name").attr("transform","translate("+-F.width/2+", "+(Xt+m/2)+")"),a!=null&&jy.has(a)){let Gt=o.colorIndex??0;v.attr("data-color-id",`color-${Gt%f.length}`)}let ae=ot.rectangle(Vt,Xt,wt,Lt,yt),se=v.insert(()=>ae,":first-child").attr("class","outer-path").attr("style",x.join(""));V.push(0);for(let[Gt,ie]of Z.entries()){let le=(Gt+1)%2===0&&ie.yOffset!==0,ve=ot.rectangle(Vt,F.height+Xt+ie?.yOffset,wt,ie?.rowHeight,{...yt,fill:le?n:c,stroke:l});v.insert(()=>ve,"g.label").attr("style",x.join("")).attr("class",`row-rect-${le?"even":"odd"}`)}let pe=0.0001,me=Ss(Vt,F.height+Xt,wt+Vt,F.height+Xt,pe),ue=ot.polygon(me.map((Gt)=>[Gt.x,Gt.y]),yt);if(v.insert(()=>ue).attr("class","divider"),me=Ss(J+Vt,F.height+Xt,J+Vt,Lt+Xt,pe),ue=ot.polygon(me.map((Gt)=>[Gt.x,Gt.y]),yt),v.insert(()=>ue).attr("class","divider"),Ct){let Gt=J+lt+Vt;me=Ss(Gt,F.height+Xt,Gt,Lt+Xt,pe),ue=ot.polygon(me.map((ie)=>[ie.x,ie.y]),yt),v.insert(()=>ue).attr("class","divider")}if(Bt){let Gt=J+lt+st+Vt;me=Ss(Gt,F.height+Xt,Gt,Lt+Xt,pe),ue=ot.polygon(me.map((ie)=>[ie.x,ie.y]),yt),v.insert(()=>ue).attr("class","divider")}for(let Gt of V){let ie=F.height+Xt+Gt;me=Ss(Vt,ie,wt+Vt,ie,pe),ue=ot.polygon(me.map((ne)=>[ne.x,ne.y]),yt),v.insert(()=>ue).attr("class","divider")}if(B(e,se),T&&e.look!=="handDrawn")if(a!=null&&_S.has(a))v.selectAll("path").attr("style",T);else{let ie=T.split(";")?.filter((ne)=>ne.includes("stroke"))?.map((ne)=>`${ne}`).join("; ");v.selectAll("path").attr("style",ie??""),v.selectAll(".row-rect-even path").attr("style",T)}return e.intersect=function(Gt){return E.rect(e,Gt)},v}t(sd,"erBox");async function ws(r,e,o,a=0,s=0,n=[],c=""){let l=r.insert("g").attr("class",`label ${n.join(" ")}`).attr("transform",`translate(${a}, ${s})`).attr("style",c);if(e!==fr(e))e=fr(e),e=e.replaceAll("<","&lt;").replaceAll(">","&gt;");let f=l.node().appendChild(await ut(l,e,{width:Ht(e,o)+100,style:c,useHtmlLabels:o.htmlLabels},o));if(e.includes("&lt;")||e.includes("&gt;")){let u=f.children[0];u.textContent=u.textContent.replaceAll("&lt;","<").replaceAll("&gt;",">");while(u.childNodes[0])u=u.childNodes[0],u.textContent=u.textContent.replaceAll("&lt;","<").replaceAll("&gt;",">")}let p=f.getBBox();if(gn(o.htmlLabels)){let u=f.children[0];u.style.textAlign="start";let m=y(f);p=u.getBoundingClientRect(),m.attr("width",p.width),m.attr("height",p.height)}return p}t(ws,"addText");function Ss(r,e,o,a,s){if(r===o)return[{x:r-s/2,y:e},{x:r+s/2,y:e},{x:o+s/2,y:a},{x:o-s/2,y:a}];return[{x:r,y:e-s/2},{x:r,y:e+s/2},{x:o,y:a+s/2},{x:o,y:a-s/2}]}t(Ss,"lineToPolygon");async function C0(r,e,o,a,s=o.class.padding??12){let n=!a?3:0,c=r.insert("g").attr("class",te(e)).attr("id",e.domId||e.id),l=null,f=null,p=null,u=null,m=0,x=0,w=0;if(l=c.insert("g").attr("class","annotation-group text"),e.annotations.length>0){let U=e.annotations[0];await Ra(l,{text:`«${U}»`},0),m=l.node().getBBox().height}f=c.insert("g").attr("class","label-group text"),await Ra(f,e,0,["font-weight: bolder"]);let T=f.node().getBBox();x=T.height,p=c.insert("g").attr("class","members-group text");let _=0;for(let U of e.members){let V=await Ra(p,U,_,[U.parseClassifier()]);_+=V+n}if(w=p.node().getBBox().height,w<=0)w=s/2;u=c.insert("g").attr("class","methods-group text");let v=0;for(let U of e.methods){let V=await Ra(u,U,v,[U.parseClassifier()]);v+=V+n}let F=c.node().getBBox();if(l!==null){let U=l.node().getBBox();l.attr("transform",`translate(${-U.width/2})`)}return f.attr("transform",`translate(${-T.width/2}, ${m})`),F=c.node().getBBox(),p.attr("transform",`translate(0, ${m+x+s*2})`),F=c.node().getBBox(),u.attr("transform",`translate(0, ${m+x+(w?w+s*4:s*2)})`),F=c.node().getBBox(),{shapeSvg:c,bbox:F}}t(C0,"textHelper");async function Ra(r,e,o,a=[]){let s=r.insert("g").attr("class","label").attr("style",a.join("; ")),n=A(),c="useHtmlLabels"in e?e.useHtmlLabels:gn(n.htmlLabels)??!0,l="";if("text"in e)l=e.text;else l=e.label;if(!c&&l.startsWith("\\"))l=l.substring(1);if(He(l))c=!0;let f=await ut(s,pn(Xn(l)),{width:Ht(l,n)+50,classes:"markdown-node-label",useHtmlLabels:c},n),p,u=1;if(!c){if(a.includes("font-weight: bolder"))y(f).selectAll("tspan").attr("font-weight","");u=f.children.length;let m=f.children[0];if(f.textContent===""||f.textContent.includes("&gt")){if(m.textContent=l[0]+l.substring(1).replaceAll("&gt;",">").replaceAll("&lt;","<").trim(),l[1]===" ")m.textContent=m.textContent[0]+" "+m.textContent.substring(1)}if(m.textContent==="undefined")m.textContent="";p=f.getBBox()}else{let m=f.children[0],x=y(f);if(u=m.innerHTML.split("<br>").length,m.innerHTML.includes("</math>"))u+=m.innerHTML.split("<mrow>").length-1;await td(m),p=m.getBoundingClientRect(),x.attr("width",p.width),x.attr("height",p.height)}return s.attr("transform","translate(0,"+(-p.height/(2*u)+o)+")"),p.height}t(Ra,"addText");async function b0(r,e){let o=d(),{theme:a,themeVariables:s}=o,{useGradient:n,borderColorArray:c}=s,l=o.class.padding??12,f=l,p=e.useHtmlLabels??gn(o.htmlLabels)??!0,u=e;u.annotations=u.annotations??[],u.members=u.members??[],u.methods=u.methods??[];let{shapeSvg:m,bbox:x}=await C0(r,e,o,p,f);jt(m,e.colorIndex,a,c);let{labelStyles:w,nodeStyles:T}=L(e);e.labelStyle=w,e.cssStyles=u.styles||"";let _=u.styles?.join(";")||T||"";if(!e.cssStyles)e.cssStyles=_.replaceAll("!important","").split(";");let v=u.members.length===0&&u.methods.length===0&&!o.class?.hideEmptyMembersBox,F=b.svg(m),U=Kt(e,{});if(e.look!=="handDrawn")U.roughness=0,U.fillStyle="solid";let V=Math.max(e.width??0,x.width),Z=Math.max(e.height??0,x.height),J=(e.height??0)>x.height;if(u.members.length===0&&u.methods.length===0)Z+=f;else if(u.members.length>0&&u.methods.length===0)Z+=f*2;let lt=-V/2,st=-Z/2,dt=v?l*2:u.members.length===0&&u.methods.length===0?-l:0;if(J)dt=l*2;let Ct=F.rectangle(lt-l,st-l-(v?l:u.members.length===0&&u.methods.length===0?-l/2:0),V+2*l,Z+2*l+dt,U),Bt=m.insert(()=>Ct,":first-child");Bt.attr("class","basic label-container outer-path");let kt=Bt.node().getBBox(),bt=m.select(".annotation-group").node().getBBox().height-(v?l/2:0)||0,it=m.select(".label-group").node().getBBox().height-(v?l/2:0)||0,ot=m.select(".members-group").node().getBBox().height-(v?l/2:0)||0,yt=(bt+it+st+l-(st-l-(v?l:u.members.length===0&&u.methods.length===0?-l/2:0)))/2;if(m.selectAll(".text").each((et,wt,Lt)=>{let Vt=y(Lt[wt]),Xt=Vt.attr("transform"),ae=0;if(Xt){let ue=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(Xt);if(ue)ae=parseFloat(ue[2])}let se=ae+st+l-(v?l:u.members.length===0&&u.methods.length===0?-l/2:0);if(Vt.attr("class").includes("methods-group")){let me=Math.max(ot,f/2);if(J)se=Math.max(yt,bt+it+me+st+f*2+l)+f*2;else se=bt+it+me+st+f*4+l}if(u.members.length===0&&u.methods.length===0&&o.class?.hideEmptyMembersBox)if(u.annotations.length>0)se=ae-f;else se=ae;if(!p)se-=4;let pe=lt;if(Vt.attr("class").includes("label-group")||Vt.attr("class").includes("annotation-group"))pe=-Vt.node()?.getBBox().width/2||0,m.selectAll("text").each(function(me,ue,Gt){if(window.getComputedStyle(Gt[ue]).textAnchor==="middle")pe=0});Vt.attr("transform",`translate(${pe}, ${se})`)}),u.members.length>0||u.methods.length>0||v){let et=bt+it+st+l,wt=F.line(kt.x,et,kt.x+kt.width,et+0.001,U);m.insert(()=>wt).attr("class",`divider${e.look==="neo"&&!n?" neo-line":""}`).attr("style",_)}if(v||u.members.length>0||u.methods.length>0){let et=bt+it+ot+st+f*2+l,wt=F.line(kt.x,J?Math.max(yt,et):et,kt.x+kt.width,(J?Math.max(yt,et):et)+0.001,U);m.insert(()=>wt).attr("class",`divider${e.look==="neo"&&!n?" neo-line":""}`).attr("style",_)}if(u.look!=="handDrawn")m.selectAll("path").attr("style",_);if(Bt.select(":nth-child(2)").attr("style",_),m.selectAll(".divider").select("path").attr("style",_),e.labelStyle)m.selectAll("span").attr("style",e.labelStyle);else m.selectAll("span").attr("style",_);if(!p){let et=RegExp(/color\s*:\s*([^;]*)/),wt=et.exec(_);if(wt){let Lt=wt[0].replace("color","fill");m.selectAll("tspan").attr("style",Lt)}else if(w){let Lt=et.exec(w);if(Lt){let Vt=Lt[0].replace("color","fill");m.selectAll("tspan").attr("style",Vt)}}}return B(e,Bt),e.intersect=function(et){return E.rect(e,et)},m}t(b0,"classBox");async function k0(r,e){let{labelStyles:o,nodeStyles:a}=L(e);e.labelStyle=o;let s=e,n=e,c=20,l=20,f="verifyMethod"in e,p=te(e),u=d(),{themeVariables:m}=u,{borderColorArray:x,requirementEdgeLabelBackground:w}=m,T=u.layout==="elk"?"start":"center",_=r.insert("g").attr("class",p).attr("id",e.domId??e.id),v;if(f)v=await Xr(_,`&lt;&lt;${s.type}&gt;&gt;`,0,e.labelStyle);else v=await Xr(_,"&lt;&lt;Element&gt;&gt;",0,e.labelStyle);let F=v,U=await Xr(_,s.name,F,e.labelStyle+"; font-weight: bold;");if(F+=U+l,f){let kt=await Xr(_,`${s.requirementId?`ID: ${s.requirementId}`:""}`,F,e.labelStyle,T);F+=kt;let bt=await Xr(_,`${s.text?`Text: ${s.text}`:""}`,F,e.labelStyle,T);F+=bt;let it=await Xr(_,`${s.risk?`Risk: ${s.risk}`:""}`,F,e.labelStyle,T);F+=it,await Xr(_,`${s.verifyMethod?`Verification: ${s.verifyMethod}`:""}`,F,e.labelStyle,T)}else{let kt=await Xr(_,`${n.type?`Type: ${n.type}`:""}`,F,e.labelStyle,T);F+=kt,await Xr(_,`${n.docRef?`Doc Ref: ${n.docRef}`:""}`,F,e.labelStyle,T)}let V=(_.node()?.getBBox().width??200)+c,Z=(_.node()?.getBBox().height??200)+c,J=-V/2,lt=-Z/2,st=b.svg(_),dt=Kt(e,{});if(e.look!=="handDrawn")dt.roughness=0,dt.fillStyle="solid";let Ct=st.rectangle(J,lt,V,Z,dt),Bt=_.insert(()=>Ct,":first-child");if(Bt.attr("class","basic label-container outer-path").attr("style",a),x?.length){let kt=e.colorIndex??0;_.attr("data-color-id",`color-${kt%x.length}`)}if(_.selectAll(".label").each((kt,bt,it)=>{let ot=y(it[bt]),yt=ot.attr("transform"),et=0,wt=0;if(yt){let ae=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(yt);if(ae)et=parseFloat(ae[1]),wt=parseFloat(ae[2])}let Lt=wt-Z/2,Vt=J+c/2;if(bt===0||bt===1)Vt=et;ot.attr("transform",`translate(${Vt}, ${Lt+c})`)}),F>v+U+l){let kt=lt+v+U+l,bt;if(e.look==="neo"){let yt=[[J,kt],[J+V,kt],[J+V,kt+0.001],[J,kt+0.001]];bt=st.polygon(yt,dt)}else bt=st.line(J,kt,J+V,kt,dt);_.insert(()=>bt).attr("class","divider")}if(B(e,Bt),e.intersect=function(kt){return E.rect(e,kt)},a&&e.look!=="handDrawn"&&(w||x?.length))_.selectAll("path").attr("style",a);return _}t(k0,"requirementBox");async function Xr(r,e,o,a="",s="center"){if(e==="")return 0;let n=r.insert("g").attr("class","label").attr("style",a),c=d(),l=c.htmlLabels??!0,f=await ut(n,pn(Xn(e)),{width:Ht(e,c)+50,classes:"markdown-node-label",useHtmlLabels:l,style:a},c),p;if(!l){let u=f.children[0];for(let m of u.children)if(a)m.setAttribute("style",a);if(s==="start"){u.setAttribute("text-anchor","start");for(let m of u.children)m.setAttribute("text-anchor","start")}p=f.getBBox(),p.height+=6}else{let u=f.children[0],m=y(f);if(s==="start")y(u).style("text-align","left");p=u.getBoundingClientRect(),m.attr("width",p.width),m.attr("height",p.height)}return n.attr("transform",`translate(${-p.width/2},${-p.height/2+o})`),p.height}t(Xr,"addText");var BS=t((r)=>{switch(r){case"Very High":return"red";case"High":return"orange";case"Medium":return null;case"Low":return"blue";case"Very Low":return"lightblue"}},"colorFromPriority");async function w0(r,e,{config:o}){let{labelStyles:a,nodeStyles:s}=L(e);e.labelStyle=a||"";let n=10,c=e.width;e.width=(e.width??200)-10;let{shapeSvg:l,bbox:f,label:p}=await q(r,e,te(e)),u=e.padding||10,m="",x;if("ticket"in e&&e.ticket&&o?.kanban?.ticketBaseUrl)m=o?.kanban?.ticketBaseUrl.replace("#TICKET#",e.ticket),x=l.insert("svg:a",":first-child").attr("class","kanban-ticket-link").attr("xlink:href",m).attr("target","_blank");let w={useHtmlLabels:e.useHtmlLabels,labelStyle:e.labelStyle||"",width:e.width,img:e.img,padding:e.padding||8,centerLabel:!1},T,_;if(x)({label:T,bbox:_}=await fo(x,"ticket"in e&&e.ticket||"",w));else({label:T,bbox:_}=await fo(l,"ticket"in e&&e.ticket||"",w));let{label:v,bbox:F}=await fo(l,"assigned"in e&&e.assigned||"",w);e.width=c;let U=10,V=e?.width||0,Z=Math.max(_.height,F.height)/2,J=Math.max(f.height+U*2,e?.height||0)+Z,lt=-V/2,st=-J/2;p.attr("transform","translate("+(u-V/2)+", "+(-Z-f.height/2)+")"),T.attr("transform","translate("+(u-V/2)+", "+(-Z+f.height/2)+")"),v.attr("transform","translate("+(u+V/2-F.width-2*n)+", "+(-Z+f.height/2)+")");let dt,{rx:Ct,ry:Bt}=e,{cssStyles:kt}=e;if(e.look==="handDrawn"){let bt=b.svg(l),it=Kt(e,{}),ot=Ct||Bt?bt.path(yr(lt,st,V,J,Ct||0),it):bt.rectangle(lt,st,V,J,it);dt=l.insert(()=>ot,":first-child"),dt.attr("class","basic label-container").attr("style",kt?kt:null)}else{dt=l.insert("rect",":first-child"),dt.attr("class","basic label-container __APA__").attr("style",s).attr("rx",Ct??5).attr("ry",Bt??5).attr("x",lt).attr("y",st).attr("width",V).attr("height",J);let bt="priority"in e&&e.priority;if(bt){let it=l.append("line"),ot=lt+2,yt=st+Math.floor((Ct??0)/2),et=st+J-Math.floor((Ct??0)/2);it.attr("x1",ot).attr("y1",yt).attr("x2",ot).attr("y2",et).attr("stroke-width","4").attr("stroke",BS(bt))}}return B(e,dt),e.height=J,e.intersect=function(bt){return E.rect(e,bt)},l}t(w0,"kanbanItem");async function S0(r,e){let{labelStyles:o,nodeStyles:a}=L(e);e.labelStyle=o;let{shapeSvg:s,bbox:n,halfPadding:c,label:l}=await q(r,e,te(e)),f=n.width+10*c,p=n.height+8*c,u=0.15*f,{cssStyles:m}=e,x=n.width+20,w=n.height+20,T=Math.max(f,x),_=Math.max(p,w);l.attr("transform",`translate(${-n.width/2}, ${-n.height/2})`);let v,F=`M0 0
242
+ a${u},${u} 1 0,0 ${T*0.25},${-1*_*0.1}
243
+ a${u},${u} 1 0,0 ${T*0.25},0
244
+ a${u},${u} 1 0,0 ${T*0.25},0
245
+ a${u},${u} 1 0,0 ${T*0.25},${_*0.1}
246
+
247
+ a${u},${u} 1 0,0 ${T*0.15},${_*0.33}
248
+ a${u*0.8},${u*0.8} 1 0,0 0,${_*0.34}
249
+ a${u},${u} 1 0,0 ${-1*T*0.15},${_*0.33}
250
+
251
+ a${u},${u} 1 0,0 ${-1*T*0.25},${_*0.15}
252
+ a${u},${u} 1 0,0 ${-1*T*0.25},0
253
+ a${u},${u} 1 0,0 ${-1*T*0.25},0
254
+ a${u},${u} 1 0,0 ${-1*T*0.25},${-1*_*0.15}
255
+
256
+ a${u},${u} 1 0,0 ${-1*T*0.1},${-1*_*0.33}
257
+ a${u*0.8},${u*0.8} 1 0,0 0,${-1*_*0.34}
258
+ a${u},${u} 1 0,0 ${T*0.1},${-1*_*0.33}
259
+ H0 V0 Z`;if(e.look==="handDrawn"){let U=b.svg(s),V=Kt(e,{}),Z=U.path(F,V);v=s.insert(()=>Z,":first-child"),v.attr("class","basic label-container").attr("style",Ae(m))}else v=s.insert("path",":first-child").attr("class","basic label-container").attr("style",a).attr("d",F);return v.attr("transform",`translate(${-T/2}, ${-_/2})`),B(e,v),e.calcIntersect=function(U,V){return E.rect(U,V)},e.intersect=function(U){return i.info("Bang intersect",e,U),E.rect(e,U)},s}t(S0,"bang");async function T0(r,e){let{labelStyles:o,nodeStyles:a}=L(e);e.labelStyle=o;let{shapeSvg:s,bbox:n,halfPadding:c,label:l}=await q(r,e,te(e)),f=n.width+2*c,p=n.height+2*c,u=0.15*f,m=0.25*f,x=0.35*f,w=0.2*f,{cssStyles:T}=e,_,v=`M0 0
260
+ a${u},${u} 0 0,1 ${f*0.25},${-1*f*0.1}
261
+ a${x},${x} 1 0,1 ${f*0.4},${-1*f*0.1}
262
+ a${m},${m} 1 0,1 ${f*0.35},${f*0.2}
263
+
264
+ a${u},${u} 1 0,1 ${f*0.15},${p*0.35}
265
+ a${w},${w} 1 0,1 ${-1*f*0.15},${p*0.65}
266
+
267
+ a${m},${u} 1 0,1 ${-1*f*0.25},${f*0.15}
268
+ a${x},${x} 1 0,1 ${-1*f*0.5},0
269
+ a${u},${u} 1 0,1 ${-1*f*0.25},${-1*f*0.15}
270
+
271
+ a${u},${u} 1 0,1 ${-1*f*0.1},${-1*p*0.35}
272
+ a${w},${w} 1 0,1 ${f*0.1},${-1*p*0.65}
273
+ H0 V0 Z`;if(e.look==="handDrawn"){let F=b.svg(s),U=Kt(e,{}),V=F.path(v,U);_=s.insert(()=>V,":first-child"),_.attr("class","basic label-container").attr("style",Ae(T))}else _=s.insert("path",":first-child").attr("class","basic label-container").attr("style",a).attr("d",v);return l.attr("transform",`translate(${-n.width/2}, ${-n.height/2})`),_.attr("transform",`translate(${-f/2}, ${-p/2})`),B(e,_),e.calcIntersect=function(F,U){return E.rect(F,U)},e.intersect=function(F){return i.info("Cloud intersect",e,F),E.rect(e,F)},s}t(T0,"cloud");async function _0(r,e){let{labelStyles:o,nodeStyles:a}=L(e);e.labelStyle=o;let{shapeSvg:s,bbox:n,halfPadding:c,label:l}=await q(r,e,te(e)),f=n.width+8*c,p=n.height+2*c,u=5,m=e.look==="neo"?`
274
+ M${-f/2} ${p/2-u}
275
+ v${-p+2*u}
276
+ q0,-${u} ${u},-${u}
277
+ h${f-2*u}
278
+ q${u},0 ${u},${u}
279
+ v${p-u}
280
+ H${-f/2}
281
+ Z
282
+ `:`
283
+ M${-f/2} ${p/2-u}
284
+ v${-p+2*u}
285
+ q0,-${u} ${u},-${u}
286
+ h${f-2*u}
287
+ q${u},0 ${u},${u}
288
+ v${p-2*u}
289
+ q0,${u} ${-u},${u}
290
+ h${-(f-2*u)}
291
+ q${-u},0 ${-u},${-u}
292
+ Z
293
+ `;if(!e.domId)throw Error(`defaultMindmapNode: node "${e.id}" is missing a domId — was render.ts domId prefixing skipped?`);let x=s.append("path").attr("id",e.domId).attr("class","node-bkg node-"+e.type).attr("style",a).attr("d",m);return s.append("line").attr("class","node-line-").attr("x1",-f/2).attr("y1",p/2).attr("x2",f/2).attr("y2",p/2),l.attr("transform",`translate(${-n.width/2}, ${-n.height/2})`),s.append(()=>l.node()),B(e,x),e.calcIntersect=function(w,T){return E.rect(w,T)},e.intersect=function(w){return E.rect(e,w)},s}t(_0,"defaultMindmapNode");async function B0(r,e){let o={padding:e.padding??0};return id(r,e,o)}t(B0,"mindmapCircle");var vS=[{semanticName:"Process",name:"Rectangle",shortName:"rect",description:"Standard process shape",aliases:["proc","process","rectangle"],internalAliases:["squareRect"],handler:i0},{semanticName:"Event",name:"Rounded Rectangle",shortName:"rounded",description:"Represents an event",aliases:["event"],internalAliases:["roundedRect"],handler:t0},{semanticName:"Terminal Point",name:"Stadium",shortName:"stadium",description:"Terminal point",aliases:["terminal","pill"],handler:o0},{semanticName:"Subprocess",name:"Framed Rectangle",shortName:"fr-rect",description:"Subprocess",aliases:["subprocess","subproc","framed-rectangle","subroutine"],handler:l0},{semanticName:"Database",name:"Cylinder",shortName:"cyl",description:"Database storage",aliases:["db","database","cylinder"],handler:xx},{semanticName:"Data Store",name:"Data Store",shortName:"datastore",description:"Data flow diagram data store",aliases:["data-store"],handler:Cx},{semanticName:"Folder",name:"Folder",shortName:"folder",description:"Folder or directory",aliases:["directory"],handler:_x},{semanticName:"Bucket",name:"Bucket",shortName:"bucket",description:"Object storage bucket",handler:rx},{semanticName:"Console",name:"Console (terminal window)",shortName:"console",description:"Terminal or console window",handler:cx},{semanticName:"Browser",name:"Browser",shortName:"browser",description:"Browser window",handler:ax},{semanticName:"Person",name:"Person",shortName:"person",description:"Person (circular head above a rounded body)",handler:yx},{semanticName:"Start",name:"Circle",shortName:"circle",description:"Starting point",aliases:["circ"],handler:id},{semanticName:"Bang",name:"Bang",shortName:"bang",description:"Bang",aliases:["bang"],handler:S0},{semanticName:"Cloud",name:"Cloud",shortName:"cloud",description:"cloud",aliases:["cloud"],handler:T0},{semanticName:"Decision",name:"Diamond",shortName:"diam",description:"Decision-making step",aliases:["decision","diamond","question"],handler:Zx},{semanticName:"Prepare Conditional",name:"Hexagon",shortName:"hex",description:"Preparation or condition step",aliases:["hexagon","prepare"],handler:Lx},{semanticName:"Data Input/Output",name:"Lean Right",shortName:"lean-r",description:"Represents input or output",aliases:["lean-right","in-out"],internalAliases:["lean_right"],handler:Rx},{semanticName:"Data Input/Output",name:"Lean Left",shortName:"lean-l",description:"Represents output or input",aliases:["lean-left","out-in"],internalAliases:["lean_left"],handler:Px},{semanticName:"Priority Action",name:"Trapezoid Base Bottom",shortName:"trap-b",description:"Priority action",aliases:["priority","trapezoid-bottom","trapezoid"],handler:d0},{semanticName:"Manual Operation",name:"Trapezoid Base Top",shortName:"trap-t",description:"Represents a manual task",aliases:["manual","trapezoid-top","inv-trapezoid"],internalAliases:["inv_trapezoid"],handler:$x},{semanticName:"Stop",name:"Double Circle",shortName:"dbl-circ",description:"Represents a stop point",aliases:["double-circle"],internalAliases:["doublecircle"],handler:kx},{semanticName:"Text Block",name:"Text Block",shortName:"text",description:"Text block",handler:u0},{semanticName:"Card",name:"Notched Rectangle",shortName:"notch-rect",description:"Represents a card",aliases:["card","notched-rectangle"],handler:nx},{semanticName:"Lined/Shaded Process",name:"Lined Rectangle",shortName:"lin-rect",description:"Lined process shape",aliases:["lined-rectangle","lined-process","lin-proc","shaded-process"],handler:e0},{semanticName:"Start",name:"Small Circle",shortName:"sm-circ",description:"Small starting point",aliases:["start","small-circle"],internalAliases:["stateStart"],handler:n0},{semanticName:"Stop",name:"Framed Circle",shortName:"fr-circ",description:"Stop point",aliases:["stop","framed-circle"],internalAliases:["stateEnd"],handler:a0},{semanticName:"Fork/Join",name:"Filled Rectangle",shortName:"fork",description:"Fork or join in process flow",aliases:["join"],internalAliases:["forkJoin"],handler:Bx},{semanticName:"Collate",name:"Hourglass",shortName:"hourglass",description:"Represents a collate operation",aliases:["hourglass","collate"],handler:Fx},{semanticName:"Comment",name:"Curly Brace",shortName:"brace",description:"Adds a comment",aliases:["comment","brace-l"],handler:dx},{semanticName:"Comment Right",name:"Curly Brace",shortName:"brace-r",description:"Adds a comment",handler:px},{semanticName:"Comment with braces on both sides",name:"Curly Braces",shortName:"braces",description:"Adds a comment",handler:gx},{semanticName:"Com Link",name:"Lightning Bolt",shortName:"bolt",description:"Communication link",aliases:["com-link","lightning-bolt"],handler:qx},{semanticName:"Document",name:"Document",shortName:"doc",description:"Represents a document",aliases:["doc","document"],handler:m0},{semanticName:"Delay",name:"Half-Rounded Rectangle",shortName:"delay",description:"Represents a delay",aliases:["half-rounded-rectangle"],handler:vx},{semanticName:"Direct Access Storage",name:"Horizontal Cylinder",shortName:"h-cyl",description:"Direct access storage",aliases:["das","horizontal-cylinder"],handler:f0},{semanticName:"Disk Storage",name:"Lined Cylinder",shortName:"lin-cyl",description:"Disk storage",aliases:["disk","lined-cylinder"],handler:Nx},{semanticName:"Display",name:"Curved Trapezoid",shortName:"curv-trap",description:"Represents a display",aliases:["curved-trapezoid","display"],handler:mx},{semanticName:"Divided Process",name:"Divided Rectangle",shortName:"div-rect",description:"Divided process shape",aliases:["div-proc","divided-rectangle","divided-process"],handler:bx},{semanticName:"Extract",name:"Triangle",shortName:"tri",description:"Extraction process",aliases:["extract","triangle"],handler:g0},{semanticName:"Internal Storage",name:"Window Pane",shortName:"win-pane",description:"Internal storage",aliases:["internal-storage","window-pane"],handler:x0},{semanticName:"Junction",name:"Filled Circle",shortName:"f-circ",description:"Junction point",aliases:["junction","filled-circle"],handler:Sx},{semanticName:"Loop Limit",name:"Trapezoidal Pentagon",shortName:"notch-pent",description:"Loop limit step",aliases:["loop-limit","notched-pentagon"],handler:p0},{semanticName:"Manual File",name:"Flipped Triangle",shortName:"flip-tri",description:"Manual file operation",aliases:["manual-file","flipped-triangle"],handler:Tx},{semanticName:"Manual Input",name:"Sloped Rectangle",shortName:"sl-rect",description:"Manual input step",aliases:["manual-input","sloped-rectangle"],handler:r0},{semanticName:"Multi-Document",name:"Stacked Document",shortName:"docs",description:"Multiple documents",aliases:["documents","st-doc","stacked-document"],handler:Vx},{semanticName:"Multi-Process",name:"Stacked Rectangle",shortName:"st-rect",description:"Multiple processes",aliases:["procs","processes","stacked-rectangle"],handler:Xx},{semanticName:"Stored Data",name:"Bow Tie Rectangle",shortName:"bow-rect",description:"Stored data",aliases:["stored-data","bow-tie-rectangle"],handler:ex},{semanticName:"Summary",name:"Crossed Circle",shortName:"cross-circ",description:"Summary",aliases:["summary","crossed-circle"],handler:fx},{semanticName:"Tagged Document",name:"Tagged Document",shortName:"tag-doc",description:"Tagged document",aliases:["tag-doc","tagged-document"],handler:c0},{semanticName:"Tagged Process",name:"Tagged Rectangle",shortName:"tag-rect",description:"Tagged process",aliases:["tagged-rectangle","tag-proc","tagged-process"],handler:h0},{semanticName:"Paper Tape",name:"Flag",shortName:"flag",description:"Paper tape",aliases:["paper-tape"],handler:y0},{semanticName:"Odd",name:"Odd",shortName:"odd",description:"Odd shape",internalAliases:["rect_left_inv_arrow"],handler:Qx},{semanticName:"Lined Document",name:"Lined Document",shortName:"lin-doc",description:"Lined document",aliases:["lined-document"],handler:Wx}],LS=t(()=>{let e=[...Object.entries({state:s0,choice:lx,note:Kx,composite:hx,rectWithTitle:Jx,labelRect:Dx,block_arrow:sx,collapsedGroup:ox,iconSquare:Ox,iconCircle:Mx,icon:Ax,iconRounded:Ex,imageSquare:Ix,anchor:Jy,kanbanItem:w0,mindmapCircle:B0,defaultMindmapNode:_0,classBox:b0,erBox:sd,requirementBox:k0,usecaseActor:zx,usecaseActorHollow:Yx,usecaseActorAwesome:Hx,usecaseActorIcon:Ux,usecaseBusiness:jx,usecaseEllipse:wx,usecaseJsonTable:Gx}),...vS.flatMap((o)=>[o.shortName,..."aliases"in o?o.aliases:[],..."internalAliases"in o?o.internalAliases:[]].map((s)=>[s,o.handler]))];return Object.fromEntries(e)},"generateShapeMap"),Zi=LS();function gi(r){return r in Zi}t(gi,"isValidShape");var Mn=t(({flowchart:r})=>{let e=r?.subGraphTitleMargin?.top??0,o=r?.subGraphTitleMargin?.bottom??0,a=e+o;return{subGraphTitleTopMargin:e,subGraphTitleBottomMargin:o,subGraphTitleTotalMargin:a}},"getSubGraphTitleMargins"),vl=new Map;async function Rn(r,e,o){let a,s;if(e.shape==="rect")if(e.rx&&e.ry)e.shape="roundedRect";else e.shape="squareRect";let n=e.shape?Zi[e.shape]:void 0;if(!n)throw Error(`No such shape: ${e.shape}. Please check your syntax.`);if(e.link){let c;if(o.config.securityLevel==="sandbox")c="_top";else if(e.linkTarget)c=e.linkTarget||"_blank";a=r.insert("svg:a").attr("xlink:href",e.link).attr("target",c??null),s=await n(a,e,o)}else s=await n(r,e,o),a=s;if(a.attr("data-look",Ae(e.look)),e.tooltip)s.attr("title",e.tooltip);if(vl.set(e.id,a),e.haveCallback)a.attr("class",a.attr("class")+" clickable");return a}t(Rn,"insertNode");var jc=t((r,e)=>{vl.set(e.id,r)},"setNodeElem"),qc=t(()=>{vl.clear()},"clear"),bn=t((r)=>{let e=vl.get(r.id);i.trace("Transforming node",r.diff,r,"translate("+(r.x-r.width/2-5)+", "+r.width/2+")");let o=8,a=r.diff||0;if(r.clusterNode)e.attr("transform","translate("+(r.x+a-r.width/2)+", "+(r.y-r.height/2-o)+")");else e.attr("transform","translate("+r.x+", "+r.y+")");return a},"positionNode");var FS=t(async(r,e)=>{let o=d(),{theme:a,themeVariables:s,handDrawnSeed:n}=o,{clusterBkg:c,clusterBorder:l,borderColorArray:f}=s,p=l,{labelStyles:u,nodeStyles:m,borderStyles:x,backgroundStyles:w}=L(e),T=r.insert("g").attr("class","cluster swimlane "+(e.cssClasses||"")).attr("id",e.domId??e.id).attr("data-id",e.id).attr("data-et","cluster").attr("data-look",e.look);jt(T,e.colorIndex,a,f);let _=gn(o.flowchart.htmlLabels),v=e.direction==="LR",F=T.insert("g").attr("class","cluster-label swimlane-label"),U=await ut(F,e.label,{style:e.labelStyle,useHtmlLabels:_,isNode:!0,width:e.width}),V=U.getBBox();if(_){let yt=U.children[0],et=y(U);V=yt.getBoundingClientRect(),et.attr("width",V.width),et.attr("height",V.height)}let Z=e.padding??0,J=e.width<=V.width+Z?V.width+Z:e.width;if(e.width<=V.width+Z)e.diff=(J-e.width)/2-Z;else e.diff=-Z;let lt=e.height,st=e.y-lt/2,dt=e.y+lt/2,Ct=e.x-J/2,Bt=e.swimlaneContentTop!==void 0?e.swimlaneContentTop:st+lt/3,kt=v?4:0,bt=V.height+2*kt,it,ot;if(v){let yt=Math.max(bt,V.height+2*kt),et=Ct+yt,wt=Math.max(0,J-yt);if(e.look==="handDrawn"){let Xt=b.svg(T),ae=Kt(e,{roughness:0.7,fill:c,stroke:p,seed:n}),se=Kt(e,{roughness:0.7,fill:"none",stroke:p,seed:n}),pe=Xt.rectangle(Ct,st,yt,lt,ae);it=T.insert(()=>pe,":first-child").attr("class","swimlane-title");let me=Xt.rectangle(et,st,wt,lt,se);ot=T.insert(()=>me,":first-child").attr("class","swimlane-body"),it.select("path:nth-child(2)").attr("style",x.join(";")),it.select("path").attr("style",w.join(";").replace("fill","stroke"))}else it=T.insert("rect",":first-child"),ot=T.insert("rect",":first-child"),it.attr("class","swimlane-title").attr("style",m).attr("x",Ct).attr("y",st).attr("width",yt).attr("height",lt).attr("fill",c).attr("stroke",p),ot.attr("class","swimlane-body").attr("style",m).attr("x",et).attr("y",st).attr("width",wt).attr("height",lt).attr("fill","none").attr("stroke",p);let Lt=Ct+yt/2,Vt=e.y;F.attr("transform",`translate(${Lt}, ${Vt}) rotate(-90) translate(${-V.width/2}, ${-V.height/2})`)}else{let yt=Math.max(0,Bt-st),et=Math.min(bt,yt),wt=st+et,Lt=Math.max(0,dt-wt),Vt=e.x-J/2;if(e.look==="handDrawn"){let se=b.svg(T),pe=Kt(e,{roughness:0.7,fill:c,stroke:p,fillWeight:3,seed:n}),me=Kt(e,{roughness:0.7,fill:"none",stroke:p,seed:n}),ue=se.rectangle(Vt,st,J,et,pe);it=T.insert(()=>ue,":first-child").attr("class","swimlane-title");let Gt=se.rectangle(Vt,wt,J,Lt,me);ot=T.insert(()=>Gt,":first-child").attr("class","swimlane-body"),it.select("path:nth-child(2)").attr("style",x.join(";")),it.select("path").attr("style",w.join(";").replace("fill","stroke"))}else it=T.insert("rect",":first-child"),ot=T.insert("rect",":first-child"),it.attr("class","swimlane-title").attr("style",m).attr("x",Vt).attr("y",st).attr("width",J).attr("height",et).attr("fill",c).attr("stroke",p),ot.attr("class","swimlane-body").attr("style",m).attr("x",Vt).attr("y",wt).attr("width",J).attr("height",Lt).attr("fill","none").attr("stroke",p);let Xt=e.x-V.width/2,ae=st+(et-V.height)/2;F.attr("transform",`translate(${Xt}, ${ae})`)}if(i.trace("Swimlane data ",e,JSON.stringify(e)),u){let yt=F.select("span");if(yt)yt.attr("style",u)}return e.offsetX=0,e.width=J,e.height=lt,e.offsetY=V.height-Z/2,e.intersect=function(yt){return Kr(e,yt)},{cluster:T,labelBBox:V}},"swimlane"),v0=t(async(r,e)=>{i.info("Creating subgraph rect for ",e.id,e);let o=d(),{theme:a,themeVariables:s,handDrawnSeed:n}=o,{clusterBkg:c,clusterBorder:l,borderColorArray:f}=s,{labelStyles:p,nodeStyles:u,borderStyles:m,backgroundStyles:x}=L(e),w=r.insert("g").attr("class","cluster "+e.cssClasses).attr("id",e.domId).attr("data-look",e.look);jt(w,e.colorIndex,a,f);let T=nt(o),_=w.insert("g").attr("class","cluster-label "),v;if(e.labelType==="markdown")v=await ut(_,e.label,{style:e.labelStyle,useHtmlLabels:T,isNode:!0,width:e.width});else v=await Pr(_,e.label,e.labelStyle||"",!1,!0);let F=v.getBBox();if(nt(o)){let Ct=v.children[0],Bt=y(v);F=Ct.getBoundingClientRect(),Bt.attr("width",F.width),Bt.attr("height",F.height)}let U=e.width<=F.width+e.padding?F.width+e.padding:e.width;if(e.width<=F.width+e.padding)e.diff=(U-e.width)/2-e.padding;else e.diff=-e.padding;let V=e.height,Z=e.x-U/2,J=e.y-V/2;i.trace("Data ",e,JSON.stringify(e));let lt;if(e.look==="handDrawn"){let Ct=b.svg(w),Bt=Kt(e,{roughness:0.7,fill:c,stroke:l,fillWeight:3,seed:n}),kt=Ct.path(yr(Z,J,U,V,0),Bt);lt=w.insert(()=>(i.debug("Rough node insert CXC",kt),kt),":first-child"),lt.select("path:nth-child(2)").attr("style",m.join(";")),lt.select("path").attr("style",x.join(";").replace("fill","stroke"))}else lt=w.insert("rect",":first-child"),lt.attr("style",u).attr("rx",e.rx).attr("ry",e.ry).attr("x",Z).attr("y",J).attr("width",U).attr("height",V);let{subGraphTitleTopMargin:st}=Mn(o);if(_.attr("transform",`translate(${e.x-F.width/2}, ${e.y-e.height/2+st})`),p){let Ct=_.select("span");if(Ct)Ct.attr("style",p)}let dt=lt.node().getBBox();return e.offsetX=0,e.width=dt.width,e.height=dt.height,e.offsetY=F.height-e.padding/2,e.intersect=function(Ct){return Kr(e,Ct)},{cluster:w,labelBBox:F}},"rect"),AS=t((r,e)=>{let o=r.insert("g").attr("class","note-cluster").attr("id",e.domId),a=o.insert("rect",":first-child"),s=0*e.padding,n=s/2;a.attr("rx",e.rx).attr("ry",e.ry).attr("x",e.x-e.width/2-n).attr("y",e.y-e.height/2-n).attr("width",e.width+s).attr("height",e.height+s).attr("fill","none");let c=a.node().getBBox();return e.width=c.width,e.height=c.height,e.intersect=function(l){return Kr(e,l)},{cluster:o,labelBBox:{width:0,height:0}}},"noteGroup"),MS=t(async(r,e)=>{let o=d(),{theme:a,themeVariables:s,handDrawnSeed:n}=o,{altBackground:c,borderColorArray:l,compositeBackground:f,compositeTitleBackground:p,nodeBorder:u}=s,m=r.insert("g").attr("class",e.cssClasses).attr("id",e.domId).attr("data-id",e.id).attr("data-look",e.look);jt(m,e.colorIndex,a,l);let x=m.insert("g",":first-child"),w=m.insert("g").attr("class","cluster-label"),T=m.append("rect"),_=await Pr(w,e.label,e.labelStyle,void 0,!0),v=_.getBBox();if(nt(o)){let kt=_.children[0],bt=y(_);v=kt.getBoundingClientRect(),bt.attr("width",v.width),bt.attr("height",v.height)}let F=0*e.padding,U=F/2,V=(e.width<=v.width+e.padding?v.width+e.padding:e.width)+F;if(e.width<=v.width+e.padding)e.diff=(V-e.width)/2-e.padding;else e.diff=-e.padding;let Z=e.height+F,J=e.height+F-v.height-6,lt=e.x-V/2,st=e.y-Z/2;e.width=V;let dt=e.y-e.height/2-U+v.height+2,Ct;if(e.look==="handDrawn"){let kt=e.cssClasses.includes("statediagram-cluster-alt"),bt=b.svg(m),it=e.rx||e.ry?bt.path(yr(lt,st,V,Z,10),{roughness:0.7,fill:p,fillStyle:"solid",stroke:u,seed:n}):bt.rectangle(lt,st,V,Z,{seed:n});Ct=m.insert(()=>it,":first-child");let ot=bt.rectangle(lt,dt,V,J,{fill:kt?c:f,fillStyle:kt?"hachure":"solid",stroke:u,seed:n});Ct=m.insert(()=>it,":first-child"),T=m.insert(()=>ot),Ct.attr("class","outer"),T.attr("class","inner")}else{Ct=x.insert("rect",":first-child");let kt="outer";Ct.attr("class",kt).attr("x",lt).attr("y",st).attr("width",V).attr("height",Z).attr("data-look",e.look),T.attr("class","inner").attr("x",lt).attr("y",dt).attr("width",V).attr("height",J)}w.attr("transform",`translate(${e.x-v.width/2}, ${st+1-(nt(o)?0:3)})`);let Bt=Ct.node().getBBox();return e.height=Bt.height,e.offsetX=0,e.offsetY=v.height-e.padding/2,e.labelBBox=v,e.intersect=function(kt){return Kr(e,kt)},{cluster:m,labelBBox:v}},"roundedWithTitle"),ES=t(async(r,e)=>{i.info("Creating subgraph rect for ",e.id,e);let o=d(),{themeVariables:a,handDrawnSeed:s}=o,{clusterBkg:n,clusterBorder:c}=a,{labelStyles:l,nodeStyles:f,borderStyles:p,backgroundStyles:u}=L(e),m=r.insert("g").attr("class","cluster "+e.cssClasses).attr("id",e.domId).attr("data-look",e.look),x=nt(o),w=m.insert("g").attr("class","cluster-label "),T=await ut(w,e.label,{style:e.labelStyle,useHtmlLabels:x,isNode:!0,width:e.width}),_=T.getBBox();if(nt(o)){let st=T.children[0],dt=y(T);_=st.getBoundingClientRect(),dt.attr("width",_.width),dt.attr("height",_.height)}let v=e.width<=_.width+e.padding?_.width+e.padding:e.width;if(e.width<=_.width+e.padding)e.diff=(v-e.width)/2-e.padding;else e.diff=-e.padding;let F=e.height,U=e.x-v/2,V=e.y-F/2;i.trace("Data ",e,JSON.stringify(e));let Z;if(e.look==="handDrawn"){let st=b.svg(m),dt=Kt(e,{roughness:0.7,fill:n,stroke:c,fillWeight:4,seed:s}),Ct=st.path(yr(U,V,v,F,e.rx),dt);Z=m.insert(()=>(i.debug("Rough node insert CXC",Ct),Ct),":first-child"),Z.select("path:nth-child(2)").attr("style",p.join(";")),Z.select("path").attr("style",u.join(";").replace("fill","stroke"))}else Z=m.insert("rect",":first-child"),Z.attr("style",f).attr("rx",e.rx).attr("ry",e.ry).attr("x",U).attr("y",V).attr("width",v).attr("height",F);let{subGraphTitleTopMargin:J}=Mn(o);if(w.attr("transform",`translate(${e.x-_.width/2}, ${e.y-e.height/2+J})`),l){let st=w.select("span");if(st)st.attr("style",l)}let lt=Z.node().getBBox();return e.offsetX=0,e.width=lt.width,e.height=lt.height,e.offsetY=_.height-e.padding/2,e.intersect=function(st){return Kr(e,st)},{cluster:m,labelBBox:_}},"kanbanSection"),OS=t((r,e)=>{let o=d(),{theme:a,themeVariables:s,handDrawnSeed:n}=o,{altBackground:c,nodeBorder:l,borderColorArray:f}=s,p=r.insert("g").attr("class",e.cssClasses).attr("id",e.domId).attr("data-look",e.look);jt(p,e.colorIndex,a,f);let u=p.insert("g",":first-child"),m=0*e.padding,x=e.width+m;e.diff=-e.padding;let w=e.height+m,T=e.x-x/2,_=e.y-w/2;e.width=x;let v;if(e.look==="handDrawn"){let V=b.svg(p).rectangle(T,_,x,w,{fill:c??"#efefef",fillStyle:"solid",roughness:0.5,strokeLineDash:[5],stroke:l,seed:n});v=p.insert(()=>V,":first-child").attr("class","divider")}else{v=u.insert("rect",":first-child");let U="outer";if(e.look==="neo")U="divider";else U="divider";v.attr("class",U).attr("x",T).attr("y",_).attr("width",x).attr("height",w).attr("data-look",e.look)}let F=v.node().getBBox();return e.height=F.height,e.offsetX=0,e.offsetY=0,e.intersect=function(U){return Kr(e,U)},{cluster:p,labelBBox:{}}},"divider"),IS=t(async(r,e,o)=>{i.info(`Creating ${o.cssClass} for `,e.id,e);let a=d(),{theme:s,themeVariables:n,handDrawnSeed:c}=a,{borderColorArray:l}=n,{labelStyles:f,borderStyles:p}=L(e),u=r.insert("g").attr("class","cluster "+o.cssClass+" "+e.cssClasses).attr("id",e.domId??e.id).attr("data-look",e.look);jt(u,e.colorIndex,s,l);let m=nt(a),x=u.insert("g").attr("class","cluster-label"),w={width:0,height:0},T=e.label?.trim();if(T){let J;if(e.labelType==="markdown")J=await ut(x,e.label,{style:e.labelStyle,useHtmlLabels:m,isNode:!0,width:e.width});else J=await Pr(x,e.label,e.labelStyle||"",!1,!0);if(w=J.getBBox(),m){let lt=J.children[0],st=y(J);w=lt.getBoundingClientRect(),st.attr("width",w.width),st.attr("height",w.height)}}let _=e.width<=w.width+e.padding?w.width+e.padding:e.width;if(e.width<=w.width+e.padding)e.diff=(_-e.width)/2-e.padding;else e.diff=-e.padding;let v=e.height,F=e.x-_/2,U=e.y-v/2,V;if(e.look==="handDrawn"){let J=b.svg(u),lt=Kt(e,{roughness:o.roughness,fill:o.fill,stroke:o.stroke,strokeWidth:o.strokeWidth,seed:c,...o.fill==="none"?{fillWeight:0}:{fillStyle:"solid"},...o.strokeDash?{strokeLineDash:o.strokeDash}:{}}),st=J.path(yr(F,U,_,v,o.rx),lt);V=u.insert(()=>st,":first-child"),V.select("path:nth-child(2)").attr("style",p.join(";"))}else if(V=u.insert("rect",":first-child"),V.attr("rx",o.rx).attr("ry",o.rx).attr("x",F).attr("y",U).attr("width",_).attr("height",v).attr("fill",o.fill).attr("stroke",o.stroke).attr("stroke-width",o.strokeWidth+"px"),o.strokeDash)V.attr("stroke-dasharray",o.strokeDash.join(", "));if(T){let{subGraphTitleTopMargin:J}=Mn(a);if(x.attr("transform",`translate(${e.x-w.width/2}, ${e.y-e.height/2+J})`),f){let lt=x.select("span");if(lt)lt.attr("style",f)}}let Z=V.node().getBBox();return e.offsetX=0,e.width=Z.width,e.height=Z.height,e.offsetY=w.height-e.padding/2,e.intersect=function(J){return Kr(e,J)},{cluster:u,labelBBox:w}},"createContainerGroup"),$S=t(async(r,e)=>{let{themeVariables:o}=d(),a=o.flowContainerStroke||o.secondaryBorderColor;return IS(r,e,{cssClass:"flow-cluster",rx:10,fill:"none",stroke:a,strokeWidth:0.75,roughness:0.7})},"flowGroup"),DS=t((r,e)=>{let o=r.boundaryType||"rect",a=o==="package"?20:r.padding,s=o==="package"?e.height+10:0,n=Math.max(r.width,e.width+a),c=o==="package"?Math.max(r.height,s+r.padding*2):r.height,l=r.x-n/2,f=r.y-c/2;return{boundaryType:o,width:n,height:c,x:l,y:f,bodyY:f+s,bodyHeight:c-s,tabHeight:s,tabWidth:o==="package"?Math.min(n,Math.max(80,e.width+20)):0}},"getUsecaseSystemBoundaryGeometry"),PS=t(async(r,e)=>{i.info("Creating usecase system boundary for ",e.id,e);let o=d(),{theme:a,themeVariables:s,handDrawnSeed:n}=o,{clusterBkg:c,clusterBorder:l,borderColorArray:f}=s,{labelStyles:p,nodeStyles:u}=L(e),{stylesMap:m}=jr(e),x=e.boundaryType||"rect",w=r.insert("g").attr("class",`cluster usecase-system-boundary usecase-system-boundary-${x} ${e.cssClasses}`).attr("id",typeof e.domId==="string"?e.domId:e.id).attr("data-boundary-type",x).attr("data-look",e.look);jt(w,e.colorIndex,a,f);let T=nt(o),_=w.insert("g").attr("class","cluster-label system-boundary-title"),v=await ut(_,e.label,{style:p,useHtmlLabels:T,isNode:!0}),F=v.getBBox();if(T){let it=v.children[0],ot=y(v);F=it.getBoundingClientRect(),ot.attr("width",F.width),ot.attr("height",F.height)}let U=DS(e,F),{width:V,height:Z,x:J,y:lt,bodyY:st,bodyHeight:dt,tabHeight:Ct,tabWidth:Bt}=U;e.diff=e.width<=F.width+e.padding?(V-e.width)/2-e.padding:-e.padding;let kt=Kt(e,{fill:m.get("fill")||c,stroke:m.get("stroke")||l,strokeWidth:m.get("stroke-width")?.replace("px","")||1,seed:n});if(e.look==="handDrawn"){let it=b.svg(w),ot=it.rectangle(J,st,V,dt,kt);if(w.insert(()=>ot,":first-child").attr("class","boundary-body label-container"),x==="package"){let yt=it.rectangle(J,lt,Bt,Ct,kt);w.insert(()=>yt,":first-child").attr("class","boundary-tab system-boundary-package-tab label-container")}}else if(w.insert("rect",":first-child").attr("class","boundary-body label-container").attr("style",u).attr("x",J).attr("y",st).attr("width",V).attr("height",dt),x==="package")w.insert("rect",":first-child").attr("class","boundary-tab system-boundary-package-tab label-container").attr("style",u).attr("x",J).attr("y",lt).attr("width",Bt).attr("height",Ct);let{subGraphTitleTopMargin:bt}=Mn(o);if(x==="package")_.attr("transform",`translate(${J+(Bt-F.width)/2}, ${lt+(Ct-F.height)/2})`);else _.attr("transform",`translate(${e.x-F.width/2}, ${lt+bt})`);if(p)_.attr("style",p),_.select("span").attr("style",p);return e.offsetX=0,e.width=V,e.height=Z,e.offsetY=F.height-e.padding/2,e.labelBBox=F,e.intersect=function(it){return Kr(e,it)},{cluster:w,labelBBox:F}},"usecaseSystemBoundary"),RS=v0,qS={rect:v0,squareRect:RS,roundedWithTitle:MS,noteGroup:AS,divider:OS,kanbanSection:ES,flowGroup:$S,usecaseSystemBoundary:PS,swimlane:FS};var L0=new Map,hr=t(async(r,e)=>{let o=e.shape||"rect",a=await qS[o](r,e);return L0.set(e.id,a),a},"insertCluster"),Vc=t(()=>{L0=new Map},"clear");var Na=t((r,e)=>{if(e)return"translate("+-r.width/2+", "+-r.height/2+")";let o=r.x??0,a=r.y??0;return"translate("+-(o+r.width/2)+", "+-(a+r.height/2)+")"},"computeLabelTransform"),gt={aggregation:17.25,extension:17.25,composition:17.25,dependency:6,lollipop:13.5,arrow_point:4,arrow_barb:0,arrow_barb_neo:5.5},F0={arrow_point:4,arrow_cross:12.5,arrow_circle:12.5};function za(r,e){if(r===void 0||e===void 0)return{angle:0,deltaX:0,deltaY:0};r=Fe(r),e=Fe(e);let[o,a]=[r.x,r.y],[s,n]=[e.x,e.y],c=s-o,l=n-a;return{angle:Math.atan(l/c),deltaX:c,deltaY:l}}t(za,"calculateDeltaAndAngle");var Fe=t((r)=>{if(Array.isArray(r))return{x:r[0],y:r[1]};return r},"pointTransformer"),NS=t((r)=>({x:t(function(e,o,a){let s=0,n=Fe(a[0]).x<Fe(a[a.length-1]).x?"left":"right";if(o===0&&Object.hasOwn(gt,r.arrowTypeStart)){let{angle:w,deltaX:T}=za(a[0],a[1]);s=gt[r.arrowTypeStart]*Math.cos(w)*(T>=0?1:-1)}else if(o===a.length-1&&Object.hasOwn(gt,r.arrowTypeEnd)){let{angle:w,deltaX:T}=za(a[a.length-1],a[a.length-2]);s=gt[r.arrowTypeEnd]*Math.cos(w)*(T>=0?1:-1)}let c=Math.abs(Fe(e).x-Fe(a[a.length-1]).x),l=Math.abs(Fe(e).y-Fe(a[a.length-1]).y),f=Math.abs(Fe(e).x-Fe(a[0]).x),p=Math.abs(Fe(e).y-Fe(a[0]).y),u=gt[r.arrowTypeStart],m=gt[r.arrowTypeEnd],x=1;if(c<m&&c>0&&l<m){let w=m+x-c;w*=n==="right"?-1:1,s-=w}if(f<u&&f>0&&p<u){let w=u+x-f;w*=n==="right"?-1:1,s+=w}return Fe(e).x+s},"x"),y:t(function(e,o,a){let s=0,n=Fe(a[0]).y<Fe(a[a.length-1]).y?"down":"up";if(o===0&&Object.hasOwn(gt,r.arrowTypeStart)){let{angle:w,deltaY:T}=za(a[0],a[1]);s=gt[r.arrowTypeStart]*Math.abs(Math.sin(w))*(T>=0?1:-1)}else if(o===a.length-1&&Object.hasOwn(gt,r.arrowTypeEnd)){let{angle:w,deltaY:T}=za(a[a.length-1],a[a.length-2]);s=gt[r.arrowTypeEnd]*Math.abs(Math.sin(w))*(T>=0?1:-1)}let c=Math.abs(Fe(e).y-Fe(a[a.length-1]).y),l=Math.abs(Fe(e).x-Fe(a[a.length-1]).x),f=Math.abs(Fe(e).y-Fe(a[0]).y),p=Math.abs(Fe(e).x-Fe(a[0]).x),u=gt[r.arrowTypeStart],m=gt[r.arrowTypeEnd],x=1;if(c<m&&c>0&&l<m){let w=m+x-c;w*=n==="up"?-1:1,s-=w}if(f<u&&f>0&&p<u){let w=u+x-f;w*=n==="up"?-1:1,s+=w}return Fe(e).y+s},"y")}),"getLineFunctionsWithOffset"),WS=t((r,e,o,a,s,n=!1,c)=>{if(e.arrowTypeStart)A0(r,"start",e.arrowTypeStart,o,a,s,n,c);if(e.arrowTypeEnd)A0(r,"end",e.arrowTypeEnd,o,a,s,n,c)},"addEdgeMarkers"),zS={arrow_cross:{type:"cross",fill:!1},arrow_point:{type:"point",fill:!0},arrow_barb:{type:"barb",fill:!0},arrow_barb_neo:{type:"barb",fill:!0},arrow_circle:{type:"circle",fill:!1},arrow_hierarchy:{type:"hierarchy",fill:!1},aggregation:{type:"aggregation",fill:!1},extension:{type:"extension",fill:!1},composition:{type:"composition",fill:!0},dependency:{type:"dependency",fill:!0},lollipop:{type:"lollipop",fill:!1},only_one:{type:"onlyOne",fill:!1},zero_or_one:{type:"zeroOrOne",fill:!1},one_or_more:{type:"oneOrMore",fill:!1},zero_or_more:{type:"zeroOrMore",fill:!1},requirement_arrow:{type:"requirement_arrow",fill:!1},requirement_contains:{type:"requirement_contains",fill:!1}},HS=["cross","point","circle","lollipop","aggregation","extension","composition","dependency","barb"],A0=t((r,e,o,a,s,n,c=!1,l)=>{if(!o||o==="none")return;let f=zS[o],p=f&&HS.includes(f.type);if(!f){i.warn(`Unknown arrow type: ${o}`);return}let u=f.type,w=`${s}_${n}-${u}${e==="start"?"Start":"End"}${c&&p?"-margin":""}`;if(l&&l.trim()!==""){let T=l.replace(/[^\dA-Za-z]/g,"_"),_=`${w}_${T}`;if(!document.getElementById(_)){let v=document.getElementById(w);if(v){let F=v.cloneNode(!0);F.id=_,F.querySelectorAll("path, circle, line").forEach((V)=>{if(V.setAttribute("stroke",l),f.fill)V.setAttribute("fill",l)}),v.parentNode?.appendChild(F)}}r.attr(`marker-${e}`,`url(${a}#${_})`)}else r.attr(`marker-${e}`,`url(${a}#${w})`)},"addEdgeMarker"),YS=t((r)=>typeof r==="string"?r:d()?.flowchart?.curve,"resolveEdgeCurveType"),Sa=new Map,vt=new Map,Gc=t(()=>{Sa.clear(),vt.clear()},"clear"),hc=t((r)=>Boolean(r.label||r.startLabelLeft||r.startLabelRight||r.endLabelLeft||r.endLabelRight),"hasEdgeLabel"),Wa=t((r)=>{if(!r)return"";if(typeof r==="string")return r;return r.reduce((e,o)=>e+";"+o,"")},"getLabelStyles"),Pn=t(async(r,e)=>{let o=d(),a=nt(o),{labelStyles:s}=L(e);e.labelStyle=s;let n=r.insert("g").attr("class","edgeLabel"),c=n.insert("g").attr("class","label").attr("data-id",e.id),l=e.labelType==="markdown",f=void 0,p=await ut(r,e.label,{style:Wa(e.labelStyle),useHtmlLabels:a,addSvgBackground:!0,isNode:!1,markdown:l,width:l?f:void 0},o);c.node().appendChild(p),i.info("abc82",e,e.labelType);let u,m;if(a){let w=p.children[0],T=y(p);u=await Bi.measure(()=>w.getBoundingClientRect()),m=u,T.attr("width",u.width),T.attr("height",u.height)}else{let w=y(p).select("text").node();await Bi.measure(()=>{if(u=p.getBBox(),w&&typeof w.getBBox==="function")m=w.getBBox();else m=u})}c.attr("transform",Na(m,a)),Sa.set(e.id,n),e.width=u.width,e.height=u.height;let x;if(e.startLabelLeft){let w=r.insert("g").attr("class","edgeTerminals"),T=w.insert("g").attr("class","inner"),_=await Pr(T,e.startLabelLeft,Wa(e.labelStyle)||"",!1,!1);x=_;let v=_.getBBox();if(a){let F=_.children[0],U=y(_);v=F.getBoundingClientRect(),U.attr("width",v.width),U.attr("height",v.height)}if(T.attr("transform",Na(v,a)),!vt.get(e.id))vt.set(e.id,{});vt.get(e.id).startLeft=w,Ya(x,e.startLabelLeft,v),Ha(e,"startLeft",v)}if(e.startLabelRight){let w=r.insert("g").attr("class","edgeTerminals"),T=w.insert("g").attr("class","inner"),_=await Pr(T,e.startLabelRight,Wa(e.labelStyle)||"",!1,!1);x=_;let v=_.getBBox();if(a){let F=_.children[0],U=y(_);v=F.getBoundingClientRect(),U.attr("width",v.width),U.attr("height",v.height)}if(T.attr("transform",Na(v,a)),!vt.get(e.id))vt.set(e.id,{});vt.get(e.id).startRight=w,Ya(x,e.startLabelRight,v),Ha(e,"startRight",v)}if(e.endLabelLeft){let w=r.insert("g").attr("class","edgeTerminals"),T=w.insert("g").attr("class","inner"),_=await Pr(T,e.endLabelLeft,Wa(e.labelStyle)||"",!1,!1);x=_;let v=_.getBBox();if(a){let F=_.children[0],U=y(_);v=F.getBoundingClientRect(),U.attr("width",v.width),U.attr("height",v.height)}if(T.attr("transform",Na(v,a)),!vt.get(e.id))vt.set(e.id,{});vt.get(e.id).endLeft=w,Ya(x,e.endLabelLeft,v),Ha(e,"endLeft",v)}if(e.endLabelRight){let w=r.insert("g").attr("class","edgeTerminals"),T=w.insert("g").attr("class","inner"),_=await Pr(T,e.endLabelRight,Wa(e.labelStyle)||"",!1,!1);x=_;let v=_.getBBox();if(a){let F=_.children[0],U=y(_);v=F.getBoundingClientRect(),U.attr("width",v.width),U.attr("height",v.height)}if(T.attr("transform",Na(v,a)),!vt.get(e.id))vt.set(e.id,{});vt.get(e.id).endRight=w,Ya(x,e.endLabelRight,v),Ha(e,"endRight",v)}return p},"insertEdgeLabel");function Ha(r,e,o){r.terminalLabelSizes??={},r.terminalLabelSizes[e]={width:o.width,height:o.height}}t(Ha,"recordTerminalLabelSize");function Ya(r,e,o){if(nt(d())&&r)r.style.width=Math.max(e.length*9,o.width)+"px",r.style.height=o.height+"px"}t(Ya,"setTerminalWidth");var gc=t((r,e)=>{let{x:o,y:a}=r;if(e?.updatedPath){let s=H.calcLabelPosition(e.updatedPath);if(e.originalPath){let n=H.calcLabelPosition(e.originalPath);o=r.x+(s.x-n.x),a=r.y+(s.y-n.y)}else o=s.x,a=s.y}return{x:o,y:a}},"resolveEdgeLabelPosition"),Aa=t((r,e)=>{i.debug("Moving label abc88 ",r.id,r.label,Sa.get(r.id),e);let o=d(),{subGraphTitleTotalMargin:a}=Mn(o);if(r.label){let n=Sa.get(r.id),{x:c,y:l}=gc(r,e);i.debug("Moving label "+r.label+" from (",r.x,",",r.y,") to (",c,",",l,") abc88"),n.attr("transform",`translate(${c}, ${l+a/2})`)}let s=e.updatedPath?e.updatedPath:e.originalPath;if(r.startLabelLeft){let n=vt.get(r.id).startLeft,{x:c,y:l}=r;if(s){let f=H.calcTerminalLabelPosition(r.arrowTypeStart?10:0,"start_left",s);c=f.x,l=f.y}n.attr("transform",`translate(${c}, ${l})`)}if(r.startLabelRight){let n=vt.get(r.id).startRight,{x:c,y:l}=r;if(s){let f=H.calcTerminalLabelPosition(r.arrowTypeStart?10:0,"start_right",s);c=f.x,l=f.y}n.attr("transform",`translate(${c}, ${l})`)}if(r.endLabelLeft){let n=vt.get(r.id).endLeft,{x:c,y:l}=r;if(s){let f=H.calcTerminalLabelPosition(r.arrowTypeEnd?10:0,"end_left",s);c=f.x,l=f.y}n.attr("transform",`translate(${c}, ${l})`)}if(r.endLabelRight){let n=vt.get(r.id).endRight,{x:c,y:l}=r;if(s){let f=H.calcTerminalLabelPosition(r.arrowTypeEnd?10:0,"end_right",s);c=f.x,l=f.y}n.attr("transform",`translate(${c}, ${l})`)}},"positionEdgeLabel"),US=t((r,e)=>{if(!r?.isLabelEdge||!r?.id?.endsWith("-to-label")||!Array.isArray(e))return e;if(e.length!==2)return e;let[o,a]=e,s=Math.abs(a.x-o.x),n=Math.abs(a.y-o.y);if(s<0.001||n<0.001)return e;if(n>=s)return[o,{x:o.x,y:a.y},a];return[o,{x:a.x,y:o.y},a]},"orthogonalizeToLabelClippedPoints"),jS=t((r,e)=>{let{x:o,y:a}=r,s=Math.abs(e.x-o),n=Math.abs(e.y-a),c=r.width/2,l=r.height/2;return s>=c||n>=l},"outsideNode"),GS=t((r,e,o)=>{i.debug(`intersection calc abc89:
294
+ outsidePoint: ${JSON.stringify(e)}
295
+ insidePoint : ${JSON.stringify(o)}
296
+ node : x:${r.x} y:${r.y} w:${r.width} h:${r.height}`);let{x:a,y:s}=r,n=Math.abs(a-o.x),c=r.width/2,l=o.x<e.x?c-n:c+n,f=r.height/2,p=Math.abs(e.y-o.y),u=Math.abs(e.x-o.x);if(Math.abs(s-e.y)*c>Math.abs(a-e.x)*f){let m=o.y<e.y?e.y-f-s:s-f-e.y;l=u*m/p;let x={x:o.x<e.x?o.x+l:o.x-u+l,y:o.y<e.y?o.y+p-m:o.y-p+m};if(l===0)x.x=e.x,x.y=e.y;if(u===0)x.x=e.x;if(p===0)x.y=e.y;return i.debug(`abc89 top/bottom calc, Q ${p}, q ${m}, R ${u}, r ${l}`,x),x}else{if(o.x<e.x)l=e.x-c-a;else l=a-c-e.x;let m=p*l/u,x=o.x<e.x?o.x+u-l:o.x-u+l,w=o.y<e.y?o.y+m:o.y-m;if(i.debug(`sides calc abc89, Q ${p}, q ${m}, R ${u}, r ${l}`,{_x:x,_y:w}),l===0)x=e.x,w=e.y;if(u===0)x=e.x;if(p===0)w=e.y;return{x,y:w}}},"intersection"),M0=t((r,e)=>{i.warn("abc88 cutPathAtIntersect",r,e);let o=[],a=r[0],s=!1;return r.forEach((n)=>{if(i.info("abc88 checking point",n,e),!jS(e,n)&&!s){let c=GS(e,a,n);i.debug("abc88 inside",n,a,c),i.debug("abc88 intersection",c,e);let l=!1;if(o.forEach((f)=>{l=l||f.x===c.x&&f.y===c.y}),!o.some((f)=>f.x===c.x&&f.y===c.y))o.push(c);else i.warn("abc88 no intersect",c,o);s=!0}else if(i.warn("abc88 outside",n,a),a=n,!s)o.push(n)}),i.debug("returning points",o),o},"cutPathAtIntersect");function O0(r){let e=[],o=[];for(let a=1;a<r.length-1;a++){let s=r[a-1],n=r[a],c=r[a+1];if(s.x===n.x&&n.y===c.y&&Math.abs(n.x-c.x)>5&&Math.abs(n.y-s.y)>5)e.push(n),o.push(a);else if(s.y===n.y&&n.x===c.x&&Math.abs(n.x-s.x)>5&&Math.abs(n.y-c.y)>5)e.push(n),o.push(a)}return{cornerPoints:e,cornerPointPositions:o}}t(O0,"extractCornerPoints");var E0=t(function(r,e,o){let a=e.x-r.x,s=e.y-r.y,n=Math.sqrt(a*a+s*s),c=o/n;return{x:e.x-c*a,y:e.y-c*s}},"findAdjacentPoint"),XS=t(function(r){let{cornerPointPositions:e}=O0(r),o=[];for(let a=0;a<r.length;a++)if(e.includes(a)){let s=r[a-1],n=r[a+1],c=r[a],l=E0(s,c,5),f=E0(n,c,5),p=f.x-l.x,u=f.y-l.y;o.push(l);let m=Math.sqrt(2)*2,x={x:c.x,y:c.y};if(Math.abs(n.x-s.x)>10&&Math.abs(n.y-s.y)>=10){i.debug("Corner point fixing",Math.abs(n.x-s.x),Math.abs(n.y-s.y));let w=5;if(c.x===l.x)x={x:p<0?l.x-w+m:l.x+w-m,y:u<0?l.y-m:l.y+m};else x={x:p<0?l.x-m:l.x+m,y:u<0?l.y-w+m:l.y+w-m}}else i.debug("Corner point skipping fixing",Math.abs(n.x-s.x),Math.abs(n.y-s.y));o.push(x,f)}else o.push(r[a]);return o},"fixCorners"),VS=t((r,e,o)=>{let a=r-e-o,s=2,n=2,c=4,l=Math.floor(a/4),f=Number.isFinite(l)?Math.max(0,l):0,p=Array(f).fill("2 2").join(" ");return`0 ${e} ${p} ${o}`},"generateDashArray"),gr=t(function(r,e,o,a,s,n,c,l=!1,f=void 0){if(!c)throw Error(`insertEdge: missing diagramId for edge "${e.id}" — edge IDs require a diagram prefix for uniqueness`);let{handDrawnSeed:p,layout:u}=d(),m=f??u,x=e.points,w=!1,T=s;var _=n;let v=[];for(let Xt in e.cssCompiledStyles){if(Gi(Xt))continue;v.push(e.cssCompiledStyles[Xt])}if(m==="swimlane"){if(!l&&_.intersect&&T.intersect&&Array.isArray(x)&&x.length>=2)if(x.length===2)x=[T.intersect(x[0]),_.intersect(x[1])];else{let Xt=x.slice(1,-1),ae=Xt[0],se=Xt[Xt.length-1],pe=0.5,me=Math.abs(x[x.length-1].x-se.x)<0.5&&Math.abs(x[x.length-1].y-se.y)<0.5,ue=T.intersect(ae),Gt=me?se:_.intersect(se),ie=Math.abs(Gt.x-se.x)<0.5&&Math.abs(Gt.y-se.y)<0.5,le=Math.abs(ue.x-ae.x)<0.5&&Math.abs(ue.y-ae.y)<0.5?[]:[ue],ve=ie?[]:[Gt];x=[...le,...Xt,...ve]}x=US(e,x)}else if(_.intersect&&T.intersect&&!l)x=x.slice(1,e.points.length-1),x.unshift(T.intersect(x[0])),x.push(_.intersect(x[x.length-1]));let F=btoa(JSON.stringify(x));if(e.toCluster)i.info("to cluster abc88",o.get(e.toCluster)),x=M0(e.points,o.get(e.toCluster).node),w=!0;if(e.fromCluster)i.debug("from cluster abc88",o.get(e.fromCluster),JSON.stringify(x,null,2)),x=M0(x.reverse(),o.get(e.fromCluster).node).reverse(),w=!0;let U=x.filter((Xt)=>!Number.isNaN(Xt.y)),V=YS(e.curve);if(V!=="rounded")U=XS(U);let Z=Ur;switch(V){case"linear":Z=Ur;break;case"basis":Z=ao;break;case"cardinal":Z=ca;break;case"bumpX":Z=ka;break;case"bumpY":Z=la;break;case"catmullRom":Z=fa;break;case"monotoneX":Z=da;break;case"monotoneY":Z=pa;break;case"natural":Z=hs;break;case"step":Z=us;break;case"stepAfter":Z=ma;break;case"stepBefore":Z=ga;break;case"rounded":Z=Ur;break;default:Z=ao}let{x:J,y:lt}=NS(e),st=wa().x(J).y(lt).curve(Z),dt;switch(e.thickness){case"normal":dt="edge-thickness-normal";break;case"thick":dt="edge-thickness-thick";break;case"invisible":dt="edge-thickness-invisible";break;default:dt="edge-thickness-normal"}switch(e.pattern){case"solid":dt+=" edge-pattern-solid";break;case"dotted":dt+=" edge-pattern-dotted";break;case"dashed":dt+=" edge-pattern-dashed";break;default:dt+=" edge-pattern-solid"}let Ct,Bt=V==="rounded"?I0($0(U,e),5):st(U),kt=Array.isArray(e.style)?e.style:[e.style],bt=kt.find((Xt)=>Xt?.startsWith("stroke:")),it="";if(e.animate)it="edge-animation-fast";if(e.animation)it="edge-animation-"+e.animation;let ot=!1;if(e.look==="handDrawn"){let Xt=b.svg(r);Object.assign([],U);let ae=Xt.path(Bt,{roughness:0.3,seed:p});dt+=" transition",Ct=y(ae).select("path").attr("id",`${c}-${e.id}`).attr("class"," "+dt+(e.classes?" "+e.classes:"")+(it?" "+it:"")).attr("style",kt?kt.reduce((pe,me)=>pe+";"+me,""):"");let se=Ct.attr("d");Ct.attr("d",se),r.node().appendChild(Ct.node())}else{let Xt=v.join(";"),ae=kt?kt.reduce((ie,ne)=>ie+ne+";",""):"",se=(Xt?Xt+";"+ae+";":ae)+";"+(kt?kt.reduce((ie,ne)=>ie+";"+ne,""):"");Ct=r.append("path").attr("d",Bt).attr("id",`${c}-${e.id}`).attr("class"," "+dt+(e.classes?" "+e.classes:"")+(it?" "+it:"")).attr("style",se),bt=se.match(/stroke:([^;]+)/)?.[1],ot=e.animate===!0||!!e.animation||Xt.includes("animation");let pe=Ct.node(),me=typeof pe.getTotalLength==="function"?pe.getTotalLength():0,ue=F0[e.arrowTypeStart]||0,Gt=F0[e.arrowTypeEnd]||0;if(e.look==="neo"&&!ot){let ne=`stroke-dasharray: ${e.pattern==="dotted"||e.pattern==="dashed"?VS(me,ue,Gt):`0 ${ue} ${me-ue-Gt} ${Gt}`}; stroke-dashoffset: 0;`;Ct.attr("style",ne+Ct.attr("style"))}}if(Ct.attr("data-edge",!0),Ct.attr("data-et","edge"),Ct.attr("data-id",e.id),Ct.attr("data-points",F),Ct.attr("data-look",Ae(e.look)),e.showPoints)U.forEach((Xt)=>{r.append("circle").style("stroke","red").style("fill","red").attr("r",1).attr("cx",Xt.x).attr("cy",Xt.y)});let yt="";if(d().flowchart.arrowMarkerAbsolute||d().state.arrowMarkerAbsolute)yt=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,yt=yt.replace(/\(/g,"\\(").replace(/\)/g,"\\)");i.info("arrowTypeStart",e.arrowTypeStart),i.info("arrowTypeEnd",e.arrowTypeEnd);let et=!ot&&e?.look==="neo";WS(Ct,e,yt,c,a,et,bt);let wt=Math.floor(x.length/2),Lt=x[wt];if(!H.isLabelCoordinateInPath(Lt,Ct.attr("d")))w=!0;let Vt={};if(w)Vt.updatedPath=x;return Vt.originalPath=e.points,Vt},"insertEdge");function I0(r,e){if(r.length<2)return"";let o="",a=r.length,s=0.00001;for(let n=0;n<a;n++){let c=r[n],l=r[n-1],f=r[n+1];if(n===0)o+=`M${c.x},${c.y}`;else if(n===a-1)o+=`L${c.x},${c.y}`;else{let p=c.x-l.x,u=c.y-l.y,m=f.x-c.x,x=f.y-c.y,w=Math.hypot(p,u),T=Math.hypot(m,x);if(w<s||T<s){o+=`L${c.x},${c.y}`;continue}let _=p/w,v=u/w,F=m/T,U=x/T,V=_*F+v*U,Z=Math.max(-1,Math.min(1,V)),J=Math.acos(Z);if(J<s||Math.abs(Math.PI-J)<s){o+=`L${c.x},${c.y}`;continue}let lt=Math.min(e/Math.sin(J/2),w/2,T/2),st=c.x-_*lt,dt=c.y-v*lt,Ct=c.x+F*lt,Bt=c.y+U*lt;o+=`L${st},${dt}`,o+=`Q${c.x},${c.y} ${Ct},${Bt}`}}return o}t(I0,"generateRoundedPath");function ad(r,e){if(!r||!e)return{angle:0,deltaX:0,deltaY:0};let o=e.x-r.x,a=e.y-r.y;return{angle:Math.atan2(a,o),deltaX:o,deltaY:a}}t(ad,"calculateDeltaAndAngle");function $0(r,e){let o=r.map((s)=>({...s}));if(r.length>=2&&gt[e.arrowTypeStart]){let s=gt[e.arrowTypeStart],n=r[0],c=r[1],{angle:l}=ad(n,c),f=s*Math.cos(l),p=s*Math.sin(l);o[0].x=n.x+f,o[0].y=n.y+p}let a=r.length;if(a>=2&&gt[e.arrowTypeEnd]){let s=gt[e.arrowTypeEnd],n=r[a-1],c=r[a-2],{angle:l}=ad(c,n),f=s*Math.cos(l),p=s*Math.sin(l);o[a-1].x=n.x-f,o[a-1].y=n.y-p}return o}t($0,"applyMarkerOffsetsToPoints");var KS=t((r,e,o,a)=>{e.forEach((s)=>{bT[s](r,o,a)})},"insertMarkers"),ZS=t((r,e,o)=>{i.trace("Making markers for ",o),r.append("defs").append("marker").attr("id",o+"_"+e+"-extensionStart").attr("class","marker extension "+e).attr("refX",18).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 1,7 L18,13 V 1 Z"),r.append("defs").append("marker").attr("id",o+"_"+e+"-extensionEnd").attr("class","marker extension "+e).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 1,1 V 13 L18,7 Z"),r.append("marker").attr("id",o+"_"+e+"-extensionStart-margin").attr("class","marker extension "+e).attr("refX",18).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").attr("viewBox","0 0 20 14").append("polygon").attr("points","10,7 18,13 18,1").style("stroke-width",2).style("stroke-dasharray","0"),r.append("defs").append("marker").attr("id",o+"_"+e+"-extensionEnd-margin").attr("class","marker extension "+e).attr("refX",9).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").attr("viewBox","0 0 20 14").append("polygon").attr("points","10,1 10,13 18,7").style("stroke-width",2).style("stroke-dasharray","0")},"extension"),QS=t((r,e,o)=>{r.append("defs").append("marker").attr("id",o+"_"+e+"-compositionStart").attr("class","marker composition "+e).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),r.append("defs").append("marker").attr("id",o+"_"+e+"-compositionEnd").attr("class","marker composition "+e).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),r.append("defs").append("marker").attr("id",o+"_"+e+"-compositionStart-margin").attr("class","marker composition "+e).attr("refX",15).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("viewBox","0 0 15 15").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),r.append("defs").append("marker").attr("id",o+"_"+e+"-compositionEnd-margin").attr("class","marker composition "+e).attr("refX",3.5).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"composition"),JS=t((r,e,o)=>{r.append("defs").append("marker").attr("id",o+"_"+e+"-aggregationStart").attr("class","marker aggregation "+e).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),r.append("defs").append("marker").attr("id",o+"_"+e+"-aggregationEnd").attr("class","marker aggregation "+e).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),r.append("defs").append("marker").attr("id",o+"_"+e+"-aggregationStart-margin").attr("class","marker aggregation "+e).attr("refX",15).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",2).attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),r.append("defs").append("marker").attr("id",o+"_"+e+"-aggregationEnd-margin").attr("class","marker aggregation "+e).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",2).attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"aggregation"),tT=t((r,e,o)=>{r.append("defs").append("marker").attr("id",o+"_"+e+"-dependencyStart").attr("class","marker dependency "+e).attr("refX",6).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),r.append("defs").append("marker").attr("id",o+"_"+e+"-dependencyEnd").attr("class","marker dependency "+e).attr("refX",13).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z"),r.append("defs").append("marker").attr("id",o+"_"+e+"-dependencyStart-margin").attr("class","marker dependency "+e).attr("refX",4).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),r.append("defs").append("marker").attr("id",o+"_"+e+"-dependencyEnd-margin").attr("class","marker dependency "+e).attr("refX",16).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},"dependency"),eT=t((r,e,o)=>{r.append("defs").append("marker").attr("id",o+"_"+e+"-lollipopStart").attr("class","marker lollipop "+e).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),r.append("defs").append("marker").attr("id",o+"_"+e+"-lollipopEnd").attr("class","marker lollipop "+e).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),r.append("defs").append("marker").attr("id",o+"_"+e+"-lollipopStart-margin").attr("class","marker lollipop "+e).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6).attr("stroke-width",2),r.append("defs").append("marker").attr("id",o+"_"+e+"-lollipopEnd-margin").attr("class","marker lollipop "+e).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6).attr("stroke-width",2)},"lollipop"),rT=t((r,e,o)=>{r.append("marker").attr("id",o+"_"+e+"-pointEnd").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",8).attr("markerHeight",8).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),r.append("marker").attr("id",o+"_"+e+"-pointStart").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",4.5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",8).attr("markerHeight",8).attr("orient","auto").append("path").attr("d","M 0 5 L 10 10 L 10 0 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),r.append("marker").attr("id",o+"_"+e+"-pointEnd-margin").attr("class","marker "+e).attr("viewBox","0 0 11.5 14").attr("refX",11.5).attr("refY",7).attr("markerUnits","userSpaceOnUse").attr("markerWidth",10.5).attr("markerHeight",14).attr("orient","auto").append("path").attr("d","M 0 0 L 11.5 7 L 0 14 z").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0"),r.append("marker").attr("id",o+"_"+e+"-pointStart-margin").attr("class","marker "+e).attr("viewBox","0 0 11.5 14").attr("refX",1).attr("refY",7).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11.5).attr("markerHeight",14).attr("orient","auto").append("polygon").attr("points","0,7 11.5,14 11.5,0").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0")},"point"),iT=t((r,e,o)=>{r.append("marker").attr("id",o+"_"+e+"-circleEnd").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",11).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),r.append("marker").attr("id",o+"_"+e+"-circleStart").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",-1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),r.append("marker").attr("id",o+"_"+e+"-circleEnd-margin").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refY",5).attr("refX",12.25).attr("markerUnits","userSpaceOnUse").attr("markerWidth",14).attr("markerHeight",14).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0"),r.append("marker").attr("id",o+"_"+e+"-circleStart-margin").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",-2).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",14).attr("markerHeight",14).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0")},"circle"),oT=t((r,e,o)=>{r.append("marker").attr("id",o+"_"+e+"-crossEnd").attr("class","marker cross "+e).attr("viewBox","0 0 11 11").attr("refX",12).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),r.append("marker").attr("id",o+"_"+e+"-crossStart").attr("class","marker cross "+e).attr("viewBox","0 0 11 11").attr("refX",-1).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),r.append("marker").attr("id",o+"_"+e+"-crossEnd-margin").attr("class","marker cross "+e).attr("viewBox","0 0 15 15").attr("refX",17.7).attr("refY",7.5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 1,1 L 14,14 M 1,14 L 14,1").attr("class","arrowMarkerPath").style("stroke-width",2.5),r.append("marker").attr("id",o+"_"+e+"-crossStart-margin").attr("class","marker cross "+e).attr("viewBox","0 0 15 15").attr("refX",-3.5).attr("refY",7.5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 1,1 L 14,14 M 1,14 L 14,1").attr("class","arrowMarkerPath").style("stroke-width",2.5).style("stroke-dasharray","1,0")},"cross"),sT=t((r,e,o)=>{r.append("defs").append("marker").attr("id",o+"_"+e+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},"barb"),aT=t((r,e,o)=>{let a=A(),{themeVariables:s}=a,{transitionColor:n}=s;r.append("defs").append("marker").attr("id",o+"_"+e+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","strokeWidth").attr("orient","auto").append("path").attr("d","M 19,7 L11,14 L13,7 L11,0 Z"),r.append("defs").append("marker").attr("id",o+"_"+e+"-barbEnd-margin").attr("refX",17).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M 19,7 L11,14 L13,7 L11,0 Z").attr("fill",`${n}`)},"barbNeo"),nT=t((r,e,o)=>{r.append("defs").append("marker").attr("id",o+"_"+e+"-onlyOneStart").attr("class","marker onlyOne "+e).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("d","M9,0 L9,18 M15,0 L15,18"),r.append("defs").append("marker").attr("id",o+"_"+e+"-onlyOneEnd").attr("class","marker onlyOne "+e).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("d","M3,0 L3,18 M9,0 L9,18")},"only_one"),lT=t((r,e,o)=>{let a=r.append("defs").append("marker").attr("id",o+"_"+e+"-zeroOrOneStart").attr("class","marker zeroOrOne "+e).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto");a.append("circle").attr("fill","white").attr("cx",21).attr("cy",9).attr("r",6),a.append("path").attr("d","M9,0 L9,18");let s=r.append("defs").append("marker").attr("id",o+"_"+e+"-zeroOrOneEnd").attr("class","marker zeroOrOne "+e).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto");s.append("circle").attr("fill","white").attr("cx",9).attr("cy",9).attr("r",6),s.append("path").attr("d","M21,0 L21,18")},"zero_or_one"),hT=t((r,e,o)=>{r.append("defs").append("marker").attr("id",o+"_"+e+"-oneOrMoreStart").attr("class","marker oneOrMore "+e).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27"),r.append("defs").append("marker").attr("id",o+"_"+e+"-oneOrMoreEnd").attr("class","marker oneOrMore "+e).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18")},"one_or_more"),cT=t((r,e,o)=>{let a=r.append("defs").append("marker").attr("id",o+"_"+e+"-zeroOrMoreStart").attr("class","marker zeroOrMore "+e).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto");a.append("circle").attr("fill","white").attr("cx",48).attr("cy",18).attr("r",6),a.append("path").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18");let s=r.append("defs").append("marker").attr("id",o+"_"+e+"-zeroOrMoreEnd").attr("class","marker zeroOrMore "+e).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto");s.append("circle").attr("fill","white").attr("cx",9).attr("cy",18).attr("r",6),s.append("path").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18")},"zero_or_more"),uT=t((r,e,o)=>{let a=A(),{themeVariables:s}=a,{strokeWidth:n}=s;r.append("defs").append("marker").attr("id",o+"_"+e+"-onlyOneStart").attr("class","marker onlyOne "+e).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M9,0 L9,18 M15,0 L15,18").attr("stroke-width",`${n}`),r.append("defs").append("marker").attr("id",o+"_"+e+"-onlyOneEnd").attr("class","marker onlyOne "+e).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M3,0 L3,18 M9,0 L9,18").attr("stroke-width",`${n}`)},"only_one_neo"),fT=t((r,e,o)=>{let a=A(),{themeVariables:s}=a,{strokeWidth:n,mainBkg:c}=s,l=r.append("defs").append("marker").attr("id",o+"_"+e+"-zeroOrOneStart").attr("class","marker zeroOrOne "+e).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto").attr("markerUnits","userSpaceOnUse");l.append("circle").attr("fill",c??"white").attr("cx",21).attr("cy",9).attr("stroke-width",`${n}`).attr("r",6),l.append("path").attr("d","M9,0 L9,18").attr("stroke-width",`${n}`);let f=r.append("defs").append("marker").attr("id",o+"_"+e+"-zeroOrOneEnd").attr("class","marker zeroOrOne "+e).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("markerUnits","userSpaceOnUse").attr("orient","auto");f.append("circle").attr("fill",c??"white").attr("cx",9).attr("cy",9).attr("stroke-width",`${n}`).attr("r",6),f.append("path").attr("d","M21,0 L21,18").attr("stroke-width",`${n}`)},"zero_or_one_neo"),dT=t((r,e,o)=>{let a=A(),{themeVariables:s}=a,{strokeWidth:n}=s;r.append("defs").append("marker").attr("id",o+"_"+e+"-oneOrMoreStart").attr("class","marker oneOrMore "+e).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27").attr("stroke-width",`${n}`),r.append("defs").append("marker").attr("id",o+"_"+e+"-oneOrMoreEnd").attr("class","marker oneOrMore "+e).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18").attr("stroke-width",`${n}`)},"one_or_more_neo"),pT=t((r,e,o)=>{let a=A(),{themeVariables:s}=a,{strokeWidth:n,mainBkg:c}=s,l=r.append("defs").append("marker").attr("id",o+"_"+e+"-zeroOrMoreStart").attr("class","marker zeroOrMore "+e).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("markerUnits","userSpaceOnUse").attr("orient","auto");l.append("circle").attr("fill",c??"white").attr("cx",45.5).attr("cy",18).attr("r",6).attr("stroke-width",`${n}`),l.append("path").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18").attr("stroke-width",`${n}`);let f=r.append("defs").append("marker").attr("id",o+"_"+e+"-zeroOrMoreEnd").attr("class","marker zeroOrMore "+e).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto").attr("markerUnits","userSpaceOnUse");f.append("circle").attr("fill",c??"white").attr("cx",11).attr("cy",18).attr("r",6).attr("stroke-width",`${n}`),f.append("path").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18").attr("stroke-width",`${n}`)},"zero_or_more_neo"),gT=t((r,e,o)=>{r.append("defs").append("marker").attr("id",o+"_"+e+"-requirement_arrowEnd").attr("refX",20).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("path").attr("d",`M0,0
297
+ L20,10
298
+ M20,10
299
+ L0,20`)},"requirement_arrow"),mT=t((r,e,o)=>{let a=A(),{themeVariables:s}=a,{strokeWidth:n}=s;r.append("defs").append("marker").attr("id",o+"_"+e+"-requirement_arrowEnd").attr("refX",20).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").attr("markerUnits","userSpaceOnUse").attr("stroke-width",`${n}`).attr("viewBox","0 0 25 20").append("path").attr("d",`M0,0
300
+ L20,10
301
+ M20,10
302
+ L0,20`).attr("stroke-linejoin","miter")},"requirement_arrow_neo"),yT=t((r,e,o)=>{let a=r.append("defs").append("marker").attr("id",o+"_"+e+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("g");a.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),a.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),a.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10)},"requirement_contains"),xT=t((r,e,o)=>{let a=A(),{themeVariables:s}=a,{strokeWidth:n}=s,c=r.append("defs").append("marker").attr("id",o+"_"+e+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("g");c.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),c.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),c.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10),c.selectAll("*").attr("stroke-width",`${n}`)},"requirement_contains_neo"),CT=t((r,e,o)=>{r.append("marker").attr("id",o+"_"+e+"-hierarchyEnd").attr("class","marker hierarchy "+e).attr("viewBox","0 0 12 10").attr("refX",10).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",10).attr("orient","auto").append("path").attr("d","M 0 0 L 6 5 L 0 10 M 4 0 L 10 5 L 4 10").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0").style("fill","none"),r.append("marker").attr("id",o+"_"+e+"-hierarchyStart").attr("class","marker hierarchy "+e).attr("viewBox","0 0 12 10").attr("refX",2).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",10).attr("orient","auto").append("path").attr("d","M 12 0 L 6 5 L 12 10 M 8 0 L 2 5 L 8 10").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0").style("fill","none")},"hierarchy"),bT={extension:ZS,composition:QS,aggregation:JS,dependency:tT,lollipop:eT,point:rT,circle:iT,cross:oT,barb:sT,barbNeo:aT,hierarchy:CT,only_one:nT,zero_or_one:lT,one_or_more:hT,zero_or_more:cT,only_one_neo:uT,zero_or_one_neo:fT,one_or_more_neo:dT,zero_or_more_neo:pT,requirement_arrow:gT,requirement_contains:yT,requirement_arrow_neo:mT,requirement_contains_neo:xT},Ta=KS;var kT={common:C,getConfig:A,insertCluster:hr,insertEdge:gr,insertEdgeLabel:Pn,insertMarkers:Ta,insertNode:Rn,interpolateToCurve:al,labelHelper:q,log:i,positionEdgeLabel:Aa},wT=["elk.stress","elk.force","elk.mrtree","elk.sporeOverlap","elk.box","elk.rectpacking"],Ua=Object.create(null),vc=t((r)=>{for(let e of r)Ua[e.name]=e},"registerLayoutLoaders"),ST=t(()=>{let r=t(async()=>await (S("9wsz2j8n"),import("./chunk-9wsz2j8n.js")),"loader");return[{name:"elk",loader:r,algorithm:"elk.layered"},...wT.map((e)=>({name:e,loader:r,algorithm:e}))]},"elkLayoutLoaders"),TT=t(()=>{vc([{name:"dagre",loader:t(async()=>await (S("42ytz496"),import("./chunk-42ytz496.js")),"loader")},{name:"swimlane",loader:t(async()=>await (S("n22pg5xy"),import("./chunk-n22pg5xy.js")),"loader")},{name:"cose-bilkent",loader:t(async()=>await (S("z0m2d74w"),import("./chunk-z0m2d74w.js")),"loader")},...ST()])},"registerDefaultLayoutLoaders");TT();var Ge=t(async(r,e)=>{if(!Object.hasOwn(Ua,r.layoutAlgorithm))throw Error(`Unknown layout algorithm: ${r.layoutAlgorithm}`);if(r.diagramId)for(let s of r.nodes){let n=s.domId||s.id;s.domId=`${r.diagramId}-${n}`}let o=Ua[r.layoutAlgorithm],a=await o.loader();return Ho(e,r.config),a.render(r,e,kT,{algorithm:o.algorithm})},"render"),nd="dagre",We=t((r="",{fallback:e=nd}={})=>{if(Object.hasOwn(Ua,r))return r;for(let o of[e,nd])if(Object.hasOwn(Ua,o))return i.warn(`Layout algorithm ${r} is not registered. Using ${o} as fallback.`),o;throw Error(`Neither layout algorithm ${r}, ${e}, nor ${nd} is registered.`)},"getRegisteredLayoutAlgorithm");
303
+ export{t,dr,Ro,i,Hi,X,ht,Oe,he,ni,h,g,pt,ec,tc,Jr,ri,Po,Nc,Ee,tt,mr,z,nc,Sr,gn,Io,Mc,Rc,Pc,rc,ac,A,Ic,Ui,Dc,nt,va,G,ic,fr,He,ai,ii,C,Y,vn,Do,Oc,Oo,N,M,P,R,I,O,D,d,Ar,ea,oi,ji,$o,y,ta,si,na,Wn,oc,Rt,ci,$c,Tr,ya,At,li,ke,sc,Pt,ra,Bc,Bo,Yn,ba,Tt,pi,qi,xa,Fc,cc,_a,zc,Vi,Fo,zo,wa,ka,re,en,tn,Ho,Gi,L,lc,aa,nn,Ca,ia,Er,Uo,ui,di,mi,fi,jo,qo,Vo,Go,Wo,Yo,Xo,Ko,Zo,Qo,Jo,es,ts,ns,rs,as,is,Lr,hi,Wi,os,pc,Hc,ss,uc,dc,oa,Yi,Ht,Xi,cs,mc,It,Q,H,Uc,Xn,Et,ls,ps,fc,ut,Ki,$e,Re,Pe,yn,Ut,jt,b,q,B,E,Zi,gi,Mn,Rn,jc,qc,bn,hr,Vc,gt,Sa,vt,Gc,hc,Pn,gc,Aa,gr,Ta,vc,Ge,We};