@rohansguliani/mux-chat-ui 0.3.0 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (802) hide show
  1. package/README.md +47 -55
  2. package/dist/testing.d.ts +17 -13
  3. package/dist/testing.js +72 -58
  4. package/kit/THIRD_PARTY_NOTICES.txt +3696 -0
  5. package/kit/assets/KaTeX_AMS-Regular-BQhdFMY1.woff2 +0 -0
  6. package/kit/assets/KaTeX_AMS-Regular-DMm9YOAa.woff +0 -0
  7. package/kit/assets/KaTeX_AMS-Regular-DRggAlZN.ttf +0 -0
  8. package/kit/assets/KaTeX_Caligraphic-Bold-ATXxdsX0.ttf +0 -0
  9. package/kit/assets/KaTeX_Caligraphic-Bold-BEiXGLvX.woff +0 -0
  10. package/kit/assets/KaTeX_Caligraphic-Bold-Dq_IR9rO.woff2 +0 -0
  11. package/kit/assets/KaTeX_Caligraphic-Regular-CTRA-rTL.woff +0 -0
  12. package/kit/assets/KaTeX_Caligraphic-Regular-Di6jR-x-.woff2 +0 -0
  13. package/kit/assets/KaTeX_Caligraphic-Regular-wX97UBjC.ttf +0 -0
  14. package/kit/assets/KaTeX_Fraktur-Bold-BdnERNNW.ttf +0 -0
  15. package/kit/assets/KaTeX_Fraktur-Bold-BsDP51OF.woff +0 -0
  16. package/kit/assets/KaTeX_Fraktur-Bold-CL6g_b3V.woff2 +0 -0
  17. package/kit/assets/KaTeX_Fraktur-Regular-CB_wures.ttf +0 -0
  18. package/kit/assets/KaTeX_Fraktur-Regular-CTYiF6lA.woff2 +0 -0
  19. package/kit/assets/KaTeX_Fraktur-Regular-Dxdc4cR9.woff +0 -0
  20. package/kit/assets/KaTeX_Main-Bold-Cx986IdX.woff2 +0 -0
  21. package/kit/assets/KaTeX_Main-Bold-Jm3AIy58.woff +0 -0
  22. package/kit/assets/KaTeX_Main-Bold-waoOVXN0.ttf +0 -0
  23. package/kit/assets/KaTeX_Main-BoldItalic-DxDJ3AOS.woff2 +0 -0
  24. package/kit/assets/KaTeX_Main-BoldItalic-DzxPMmG6.ttf +0 -0
  25. package/kit/assets/KaTeX_Main-BoldItalic-SpSLRI95.woff +0 -0
  26. package/kit/assets/KaTeX_Main-Italic-3WenGoN9.ttf +0 -0
  27. package/kit/assets/KaTeX_Main-Italic-BMLOBm91.woff +0 -0
  28. package/kit/assets/KaTeX_Main-Italic-NWA7e6Wa.woff2 +0 -0
  29. package/kit/assets/KaTeX_Main-Regular-B22Nviop.woff2 +0 -0
  30. package/kit/assets/KaTeX_Main-Regular-Dr94JaBh.woff +0 -0
  31. package/kit/assets/KaTeX_Main-Regular-ypZvNtVU.ttf +0 -0
  32. package/kit/assets/KaTeX_Math-BoldItalic-B3XSjfu4.ttf +0 -0
  33. package/kit/assets/KaTeX_Math-BoldItalic-CZnvNsCZ.woff2 +0 -0
  34. package/kit/assets/KaTeX_Math-BoldItalic-iY-2wyZ7.woff +0 -0
  35. package/kit/assets/KaTeX_Math-Italic-DA0__PXp.woff +0 -0
  36. package/kit/assets/KaTeX_Math-Italic-flOr_0UB.ttf +0 -0
  37. package/kit/assets/KaTeX_Math-Italic-t53AETM-.woff2 +0 -0
  38. package/kit/assets/KaTeX_SansSerif-Bold-CFMepnvq.ttf +0 -0
  39. package/kit/assets/KaTeX_SansSerif-Bold-D1sUS0GD.woff2 +0 -0
  40. package/kit/assets/KaTeX_SansSerif-Bold-DbIhKOiC.woff +0 -0
  41. package/kit/assets/KaTeX_SansSerif-Italic-C3H0VqGB.woff2 +0 -0
  42. package/kit/assets/KaTeX_SansSerif-Italic-DN2j7dab.woff +0 -0
  43. package/kit/assets/KaTeX_SansSerif-Italic-YYjJ1zSn.ttf +0 -0
  44. package/kit/assets/KaTeX_SansSerif-Regular-BNo7hRIc.ttf +0 -0
  45. package/kit/assets/KaTeX_SansSerif-Regular-CS6fqUqJ.woff +0 -0
  46. package/kit/assets/KaTeX_SansSerif-Regular-DDBCnlJ7.woff2 +0 -0
  47. package/kit/assets/KaTeX_Script-Regular-C5JkGWo-.ttf +0 -0
  48. package/kit/assets/KaTeX_Script-Regular-D3wIWfF6.woff2 +0 -0
  49. package/kit/assets/KaTeX_Script-Regular-D5yQViql.woff +0 -0
  50. package/kit/assets/KaTeX_Size1-Regular-C195tn64.woff +0 -0
  51. package/kit/assets/KaTeX_Size1-Regular-Dbsnue_I.ttf +0 -0
  52. package/kit/assets/KaTeX_Size1-Regular-mCD8mA8B.woff2 +0 -0
  53. package/kit/assets/KaTeX_Size2-Regular-B7gKUWhC.ttf +0 -0
  54. package/kit/assets/KaTeX_Size2-Regular-Dy4dx90m.woff2 +0 -0
  55. package/kit/assets/KaTeX_Size2-Regular-oD1tc_U0.woff +0 -0
  56. package/kit/assets/KaTeX_Size3-Regular-CTq5MqoE.woff +0 -0
  57. package/kit/assets/KaTeX_Size3-Regular-DgpXs0kz.ttf +0 -0
  58. package/kit/assets/KaTeX_Size4-Regular-BF-4gkZK.woff +0 -0
  59. package/kit/assets/KaTeX_Size4-Regular-DWFBv043.ttf +0 -0
  60. package/kit/assets/KaTeX_Size4-Regular-Dl5lxZxV.woff2 +0 -0
  61. package/kit/assets/KaTeX_Typewriter-Regular-C0xS9mPB.woff +0 -0
  62. package/kit/assets/KaTeX_Typewriter-Regular-CO6r4hn1.woff2 +0 -0
  63. package/kit/assets/KaTeX_Typewriter-Regular-D3Ib7_Hf.ttf +0 -0
  64. package/kit/assets/abap-Dg923wIy.js +1 -0
  65. package/kit/assets/actionscript-3-CqOcUQ0w.js +1 -0
  66. package/kit/assets/ada-CTi7YQtL.js +1 -0
  67. package/kit/assets/ahk-BJYYIeOs.js +1 -0
  68. package/kit/assets/ahk2-BLfzmBxo.js +1 -0
  69. package/kit/assets/andromeeda-CT0vplkN.js +1 -0
  70. package/kit/assets/angular-html-DX9ZP5JV.js +1 -0
  71. package/kit/assets/angular-ts-1O2hJJmY.js +1 -0
  72. package/kit/assets/apache-PcO-DBxQ.js +1 -0
  73. package/kit/assets/apex-B4ts4Pdn.js +1 -0
  74. package/kit/assets/apl-Dz5ncP8G.js +1 -0
  75. package/kit/assets/applescript-Ds_W2jPS.js +1 -0
  76. package/kit/assets/ara-C1--7J61.js +1 -0
  77. package/kit/assets/asciidoc-DaaWi4fn.js +1 -0
  78. package/kit/assets/asm-CTFRnVOM.js +1 -0
  79. package/kit/assets/astro-BWgTGUF8.js +1 -0
  80. package/kit/assets/aurora-x-C0VKFdlO.js +1 -0
  81. package/kit/assets/awk-CrWgQKhV.js +1 -0
  82. package/kit/assets/ayu-dark-wZ6ORhBL.js +1 -0
  83. package/kit/assets/ayu-light-xXLJ_Ch1.js +1 -0
  84. package/kit/assets/ayu-mirage-CQckA_sP.js +1 -0
  85. package/kit/assets/ballerina-a0yOSyc5.js +1 -0
  86. package/kit/assets/bat-C1qk1Jq1.js +1 -0
  87. package/kit/assets/beancount-dPJi_gci.js +1 -0
  88. package/kit/assets/berry-CVKoklHx.js +1 -0
  89. package/kit/assets/bibtex-DRcCXNgM.js +1 -0
  90. package/kit/assets/bicep-jWz-hQ8I.js +1 -0
  91. package/kit/assets/bird2-wc5D5_X9.js +1 -0
  92. package/kit/assets/blade-DFktsHST.js +1 -0
  93. package/kit/assets/bsl-BtUDvyR4.js +1 -0
  94. package/kit/assets/c-BG-tZi7o.js +1 -0
  95. package/kit/assets/c3-R-USHpyF.js +1 -0
  96. package/kit/assets/cadence-BuaeHeSu.js +1 -0
  97. package/kit/assets/cairo-BYiDgOF2.js +1 -0
  98. package/kit/assets/catppuccin-frappe-CquLvoVK.js +1 -0
  99. package/kit/assets/catppuccin-latte-G5tdnGFo.js +1 -0
  100. package/kit/assets/catppuccin-macchiato-BZRq1pKO.js +1 -0
  101. package/kit/assets/catppuccin-mocha-Bbf5uIw6.js +1 -0
  102. package/kit/assets/chapel-D6IdCptL.js +1 -0
  103. package/kit/assets/clarity-BJ-KISir.js +1 -0
  104. package/kit/assets/clojure-KnfDkB_V.js +1 -0
  105. package/kit/assets/cmake-bh2MLnkv.js +1 -0
  106. package/kit/assets/cobol-DbURsbuN.js +1 -0
  107. package/kit/assets/codeowners-CtwIM3TN.js +1 -0
  108. package/kit/assets/codeql-D164juXQ.js +1 -0
  109. package/kit/assets/coffee-Bk-z6oI_.js +1 -0
  110. package/kit/assets/common-lisp-DXc9XcIM.js +1 -0
  111. package/kit/assets/coq-BIZj6HM_.js +1 -0
  112. package/kit/assets/cpp-C-tF_bWl.js +1 -0
  113. package/kit/assets/crystal-Dvqzbpz8.js +1 -0
  114. package/kit/assets/csharp-CFxe5pRo.js +1 -0
  115. package/kit/assets/css-Br67jR8j.js +1 -0
  116. package/kit/assets/csv-D5aBhKLr.js +1 -0
  117. package/kit/assets/cue-WCin6O4e.js +1 -0
  118. package/kit/assets/cypher-DYQk2G82.js +1 -0
  119. package/kit/assets/d-DVc-yF-l.js +1 -0
  120. package/kit/assets/dark-plus-DLU5INA3.js +1 -0
  121. package/kit/assets/dart-ByalkS20.js +1 -0
  122. package/kit/assets/dax-oldcCaJg.js +1 -0
  123. package/kit/assets/desktop-DZfyBMgF.js +1 -0
  124. package/kit/assets/diff-jW5kmiru.js +1 -0
  125. package/kit/assets/docker-DG9neUKd.js +1 -0
  126. package/kit/assets/dotenv-Bea-FkXq.js +1 -0
  127. package/kit/assets/dracula-XcYHBZy6.js +1 -0
  128. package/kit/assets/dracula-soft-BPeX9gxW.js +1 -0
  129. package/kit/assets/dream-maker-DAHQwpwp.js +1 -0
  130. package/kit/assets/edge-DTiORMU5.js +1 -0
  131. package/kit/assets/elixir-DnIH90qd.js +1 -0
  132. package/kit/assets/elm-BjIDgKzz.js +1 -0
  133. package/kit/assets/emacs-lisp-Ckw2FTkV.js +1 -0
  134. package/kit/assets/erb-CazEJMPD.js +1 -0
  135. package/kit/assets/erlang-DNeY46SW.js +1 -0
  136. package/kit/assets/everforest-dark-WOub3wle.js +1 -0
  137. package/kit/assets/everforest-light-DCUg8VH8.js +1 -0
  138. package/kit/assets/fennel-DBMsxtrh.js +1 -0
  139. package/kit/assets/fish-BxskpYPN.js +1 -0
  140. package/kit/assets/fluent-Bwo2XpEt.js +1 -0
  141. package/kit/assets/fortran-fixed-form-DFFnVrrY.js +1 -0
  142. package/kit/assets/fortran-free-form-DB5N_DgY.js +1 -0
  143. package/kit/assets/fsharp-DRAF1jsN.js +1 -0
  144. package/kit/assets/gdresource-B0Kp4-ms.js +1 -0
  145. package/kit/assets/gdscript-DKyjuXKv.js +1 -0
  146. package/kit/assets/gdshader-G7X6ysY3.js +1 -0
  147. package/kit/assets/genie-DSsjfZMX.js +1 -0
  148. package/kit/assets/gherkin-Cl2Fw-_0.js +1 -0
  149. package/kit/assets/git-commit-CJPsQObV.js +1 -0
  150. package/kit/assets/git-rebase-DeZqv4fp.js +1 -0
  151. package/kit/assets/github-dark-BQV5ugrc.js +1 -0
  152. package/kit/assets/github-dark-default-DLWDM7FH.js +1 -0
  153. package/kit/assets/github-dark-dimmed-D1FmiR_p.js +1 -0
  154. package/kit/assets/github-dark-high-contrast-BilLoi0o.js +1 -0
  155. package/kit/assets/github-light-Rcb2q3L5.js +1 -0
  156. package/kit/assets/github-light-default-CQ75esMw.js +1 -0
  157. package/kit/assets/github-light-high-contrast-CRF1wyLy.js +1 -0
  158. package/kit/assets/gleam-BeBqoPwE.js +1 -0
  159. package/kit/assets/glimmer-js-F_qk9EQT.js +1 -0
  160. package/kit/assets/glimmer-ts-Dhzi-GJU.js +1 -0
  161. package/kit/assets/glsl-BOG9l2nV.js +1 -0
  162. package/kit/assets/gn-Dxr0sSUf.js +1 -0
  163. package/kit/assets/gnuplot-CtW3R_Hz.js +1 -0
  164. package/kit/assets/go-B7VTfpnm.js +1 -0
  165. package/kit/assets/graphql-B6XHM4uj.js +1 -0
  166. package/kit/assets/groovy-DFxE31Qs.js +1 -0
  167. package/kit/assets/gruvbox-dark-hard-C37G1gbc.js +1 -0
  168. package/kit/assets/gruvbox-dark-medium-C3G9m3TV.js +1 -0
  169. package/kit/assets/gruvbox-dark-soft-eZmcmZ9I.js +1 -0
  170. package/kit/assets/gruvbox-light-hard-BYj-vz_3.js +1 -0
  171. package/kit/assets/gruvbox-light-medium-BdQlDiiF.js +1 -0
  172. package/kit/assets/gruvbox-light-soft-BGNwjiRh.js +1 -0
  173. package/kit/assets/hack-jRhjsWHJ.js +1 -0
  174. package/kit/assets/haml-C4vGXCDX.js +1 -0
  175. package/kit/assets/handlebars-BsldGL5W.js +1 -0
  176. package/kit/assets/haskell-BfdhR_WN.js +1 -0
  177. package/kit/assets/haxe-wmAaY_mP.js +1 -0
  178. package/kit/assets/hcl-B6OePqme.js +1 -0
  179. package/kit/assets/hjson-D2jn7IRw.js +1 -0
  180. package/kit/assets/hlsl-MKeth5V9.js +1 -0
  181. package/kit/assets/horizon-bright-BVMyA0so.js +1 -0
  182. package/kit/assets/horizon-cslQss18.js +1 -0
  183. package/kit/assets/houston-RHIKkNfR.js +1 -0
  184. package/kit/assets/html-BW_6VhB7.js +1 -0
  185. package/kit/assets/html-derivative-BxANmYVz.js +1 -0
  186. package/kit/assets/http-CG3jvXcS.js +1 -0
  187. package/kit/assets/hurl-CxQrh4RI.js +1 -0
  188. package/kit/assets/hxml-In6F2XHE.js +1 -0
  189. package/kit/assets/hy-DI6mCUnw.js +1 -0
  190. package/kit/assets/imba-D-Pk5S0X.js +1 -0
  191. package/kit/assets/index-CN35FGBT.js +2 -0
  192. package/kit/assets/index-CvcU6KJI.js +2 -0
  193. package/kit/assets/index-DKDjvsnq.js +12 -0
  194. package/kit/assets/ini-Dix3pTmg.js +1 -0
  195. package/kit/assets/java-BTDmaRNO.js +1 -0
  196. package/kit/assets/javascript-WyGyM1wV.js +1 -0
  197. package/kit/assets/jinja-CGKoJZuT.js +1 -0
  198. package/kit/assets/jison-B9XHrcYJ.js +1 -0
  199. package/kit/assets/json-B8JryHcM.js +1 -0
  200. package/kit/assets/json5-Cdatmj9n.js +1 -0
  201. package/kit/assets/jsonc-CvUCa1o5.js +1 -0
  202. package/kit/assets/jsonl-9I_GBd5L.js +1 -0
  203. package/kit/assets/jsonnet-XoenQ2oc.js +1 -0
  204. package/kit/assets/jssm-CWE2S0Z5.js +1 -0
  205. package/kit/assets/jsx-8cLv2Six.js +1 -0
  206. package/kit/assets/julia-CHsXSRRi.js +1 -0
  207. package/kit/assets/just-BhMjiL1x.js +1 -0
  208. package/kit/assets/kanagawa-dragon-elpLL9d7.js +1 -0
  209. package/kit/assets/kanagawa-lotus-qwxsXd6N.js +1 -0
  210. package/kit/assets/kanagawa-wave-CmHwPSUq.js +1 -0
  211. package/kit/assets/katex-HP8lGamR.js +257 -0
  212. package/kit/assets/kdl-CMbyIXjQ.js +1 -0
  213. package/kit/assets/kotlin-BQy537ds.js +1 -0
  214. package/kit/assets/kusto-Bh6esMjd.js +1 -0
  215. package/kit/assets/laserwave-si7wuSrt.js +1 -0
  216. package/kit/assets/latex-l4EWm08Q.js +1 -0
  217. package/kit/assets/lean-C4RHkN41.js +1 -0
  218. package/kit/assets/less-XNfgnZC7.js +1 -0
  219. package/kit/assets/light-plus-g_Fi9vkG.js +1 -0
  220. package/kit/assets/liquid-VEiCTF4k.js +1 -0
  221. package/kit/assets/llvm-CQZjIlnZ.js +1 -0
  222. package/kit/assets/log-CcaF_xNv.js +1 -0
  223. package/kit/assets/logo-D9WQLoKQ.js +1 -0
  224. package/kit/assets/lua-8Av-h-ns.js +1 -0
  225. package/kit/assets/luau-CmQFRJk_.js +1 -0
  226. package/kit/assets/make-DXVx14cr.js +1 -0
  227. package/kit/assets/markdown-DX-TNHnc.js +1 -0
  228. package/kit/assets/markdown-parse.worker-D0WrtDJ7.js +59 -0
  229. package/kit/assets/markdown.worker-DQJC0QHv.js +83 -0
  230. package/kit/assets/marko-6XzqJfhW.js +1 -0
  231. package/kit/assets/material-theme-CIJ3cGaW.js +1 -0
  232. package/kit/assets/material-theme-darker-BWg3m1GB.js +1 -0
  233. package/kit/assets/material-theme-lighter-DR8HWMN7.js +1 -0
  234. package/kit/assets/material-theme-ocean-CZf9pk28.js +1 -0
  235. package/kit/assets/material-theme-palenight-BF01YeZy.js +1 -0
  236. package/kit/assets/matlab-DzreyMvm.js +1 -0
  237. package/kit/assets/mdc-DRPSCe6f.js +1 -0
  238. package/kit/assets/mdx-C2fqO2XY.js +1 -0
  239. package/kit/assets/mermaid-B3PwCbv_.js +1 -0
  240. package/kit/assets/min-dark-DhfaepVE.js +1 -0
  241. package/kit/assets/min-light-6xx0uMgm.js +1 -0
  242. package/kit/assets/mipsasm-yE_Aqo9y.js +1 -0
  243. package/kit/assets/mojo-DoyaMtMQ.js +1 -0
  244. package/kit/assets/monokai-CfflZzqd.js +1 -0
  245. package/kit/assets/moonbit-GUn1DCOq.js +1 -0
  246. package/kit/assets/move-DgW29s8x.js +1 -0
  247. package/kit/assets/narrat-DXUZ_ZkW.js +1 -0
  248. package/kit/assets/nextflow-D9i3Mg89.js +1 -0
  249. package/kit/assets/nextflow-groovy-BtKenbWl.js +1 -0
  250. package/kit/assets/nginx-DSXkacNc.js +1 -0
  251. package/kit/assets/night-owl-EdP2Hztp.js +1 -0
  252. package/kit/assets/night-owl-light-Bk-lYVyk.js +1 -0
  253. package/kit/assets/nim-D9lokC5T.js +1 -0
  254. package/kit/assets/nix-Ckjrpg0r.js +1 -0
  255. package/kit/assets/nord-BAu0wM6c.js +1 -0
  256. package/kit/assets/nsis-C1FUr9r5.js +1 -0
  257. package/kit/assets/nushell-D7aJuCS6.js +1 -0
  258. package/kit/assets/objective-c-BoaBTdtz.js +1 -0
  259. package/kit/assets/objective-cpp-DstR8hNy.js +1 -0
  260. package/kit/assets/ocaml-DTbn2Hv7.js +1 -0
  261. package/kit/assets/odin-Bxc4S6Xn.js +1 -0
  262. package/kit/assets/one-dark-pro-utPxbBbJ.js +1 -0
  263. package/kit/assets/one-light-BuCQ22aO.js +1 -0
  264. package/kit/assets/openscad-CXHpNBsb.js +1 -0
  265. package/kit/assets/org-DcqggXXW.js +1 -0
  266. package/kit/assets/pascal-Sr-XLSE6.js +1 -0
  267. package/kit/assets/perl-CP_GSK0L.js +1 -0
  268. package/kit/assets/php-CNeTOyEV.js +1 -0
  269. package/kit/assets/pkl-CRusufhw.js +1 -0
  270. package/kit/assets/plastic-CXnNNlFZ.js +1 -0
  271. package/kit/assets/plsql-Dbm3tV2N.js +1 -0
  272. package/kit/assets/po-LG0lFwH4.js +1 -0
  273. package/kit/assets/poimandres-BrOVMvuE.js +1 -0
  274. package/kit/assets/polar-DjOs3GWb.js +1 -0
  275. package/kit/assets/postcss-GRRkWn2F.js +1 -0
  276. package/kit/assets/powerquery-DHf-dtTS.js +1 -0
  277. package/kit/assets/powershell-CUnxWBRw.js +1 -0
  278. package/kit/assets/prisma-HKDfktb8.js +1 -0
  279. package/kit/assets/prolog-9JcfiY6I.js +1 -0
  280. package/kit/assets/proto-dqx_Sj2i.js +1 -0
  281. package/kit/assets/pug-kUpeg2wB.js +1 -0
  282. package/kit/assets/puppet-Di57VbSS.js +1 -0
  283. package/kit/assets/purescript-BgpM7rDH.js +1 -0
  284. package/kit/assets/python-B6Ihcp-E.js +1 -0
  285. package/kit/assets/qml-DmGQGbca.js +1 -0
  286. package/kit/assets/qmldir-DXd9s5XC.js +1 -0
  287. package/kit/assets/qss-B7NnhfIi.js +1 -0
  288. package/kit/assets/r-C2sK8mqY.js +1 -0
  289. package/kit/assets/racket-CeDx7KO2.js +1 -0
  290. package/kit/assets/raku-BMJwmrCS.js +1 -0
  291. package/kit/assets/razor-C2a5o_rD.js +1 -0
  292. package/kit/assets/rbs-BNdQsBCU.js +1 -0
  293. package/kit/assets/red-D0qvOrrt.js +1 -0
  294. package/kit/assets/reg-Cvyu2Gnx.js +1 -0
  295. package/kit/assets/regexp-DK-WlHNu.js +1 -0
  296. package/kit/assets/rel-BlqNHz8k.js +1 -0
  297. package/kit/assets/riscv-C5dpdlr7.js +1 -0
  298. package/kit/assets/ron-j5NfrB3z.js +1 -0
  299. package/kit/assets/rose-pine-B13eftVv.js +1 -0
  300. package/kit/assets/rose-pine-dawn-BcSoidev.js +1 -0
  301. package/kit/assets/rose-pine-moon-QhZovmiB.js +1 -0
  302. package/kit/assets/rosmsg-ZkSIzPhc.js +1 -0
  303. package/kit/assets/rst-CgFL6KOR.js +1 -0
  304. package/kit/assets/ruby-CoSFdlpl.js +1 -0
  305. package/kit/assets/rust-CxuBE0J8.js +1 -0
  306. package/kit/assets/sas-DPMpzP9X.js +1 -0
  307. package/kit/assets/sass-bfEVHPJ8.js +1 -0
  308. package/kit/assets/scala-DT3kbCHL.js +1 -0
  309. package/kit/assets/scheme-OJppFQF3.js +1 -0
  310. package/kit/assets/scss-n48HZsmL.js +1 -0
  311. package/kit/assets/sdbl-CvZs3G9c.js +1 -0
  312. package/kit/assets/shaderlab-CEJedz68.js +1 -0
  313. package/kit/assets/shellscript-DgJyDXW6.js +1 -0
  314. package/kit/assets/shellsession-DSlzxnCM.js +1 -0
  315. package/kit/assets/slack-dark-CWRQmTmo.js +1 -0
  316. package/kit/assets/slack-ochin-DO_ok7XK.js +1 -0
  317. package/kit/assets/smalltalk-De6KzMWc.js +1 -0
  318. package/kit/assets/smithy-BVTkKWO9.js +1 -0
  319. package/kit/assets/snazzy-light-B5llO_gK.js +1 -0
  320. package/kit/assets/solarized-dark-BWFpDpV1.js +1 -0
  321. package/kit/assets/solarized-light-eZCMDrWD.js +1 -0
  322. package/kit/assets/solidity-SYSxO-p1.js +1 -0
  323. package/kit/assets/soy-DEV4yxgM.js +1 -0
  324. package/kit/assets/sparql-BJh4JEw-.js +1 -0
  325. package/kit/assets/splunk-h-bNAnbk.js +1 -0
  326. package/kit/assets/sprite-Fb-TFjRY.svg +11707 -0
  327. package/kit/assets/sql-Dq2MiB0T.js +1 -0
  328. package/kit/assets/ssh-config-CywOjoXH.js +1 -0
  329. package/kit/assets/stata-BcICKvEt.js +1 -0
  330. package/kit/assets/stylus-CIg617SB.js +1 -0
  331. package/kit/assets/surrealql-CWlK9SzL.js +1 -0
  332. package/kit/assets/svelte-B-Z8GLL9.js +1 -0
  333. package/kit/assets/swift-CGD9CJBj.js +1 -0
  334. package/kit/assets/synthwave-84-DRVv-_m_.js +1 -0
  335. package/kit/assets/system-verilog-CG_VWOG3.js +1 -0
  336. package/kit/assets/systemd-DKMPPZjB.js +1 -0
  337. package/kit/assets/talonscript-eRuyeYHl.js +1 -0
  338. package/kit/assets/tasl-B9CVvjfG.js +1 -0
  339. package/kit/assets/tcl-Bq9dbVAF.js +1 -0
  340. package/kit/assets/templ-W185oS4p.js +1 -0
  341. package/kit/assets/terraform-CAp711iT.js +1 -0
  342. package/kit/assets/tex-DNkCctwf.js +1 -0
  343. package/kit/assets/tokyo-night-BvwC8l2v.js +1 -0
  344. package/kit/assets/toml-Ms459DBw.js +1 -0
  345. package/kit/assets/ts-tags-xUT7JH_c.js +1 -0
  346. package/kit/assets/tsv-BFtm7NXx.js +1 -0
  347. package/kit/assets/tsx-D6116Ycy.js +1 -0
  348. package/kit/assets/turtle-DpRhbQZY.js +1 -0
  349. package/kit/assets/twig-k5g5DPXm.js +1 -0
  350. package/kit/assets/typescript-BqvgUolh.js +1 -0
  351. package/kit/assets/typespec-B09nCZui.js +1 -0
  352. package/kit/assets/typst-Dfd71gQj.js +1 -0
  353. package/kit/assets/v-DUsAht2M.js +1 -0
  354. package/kit/assets/vala-z59IxkFd.js +1 -0
  355. package/kit/assets/vb-A7jYO8Gn.js +1 -0
  356. package/kit/assets/verilog-jqltjd44.js +1 -0
  357. package/kit/assets/vesper-DxfWgk_t.js +1 -0
  358. package/kit/assets/vhdl-DJCsFYgn.js +1 -0
  359. package/kit/assets/viml-pbKHW3Ia.js +1 -0
  360. package/kit/assets/vitesse-black-B_BYPdvp.js +1 -0
  361. package/kit/assets/vitesse-dark-DOSOf2Sz.js +1 -0
  362. package/kit/assets/vitesse-light-gUX51GpB.js +1 -0
  363. package/kit/assets/vue-D2T8AFdP.js +1 -0
  364. package/kit/assets/vue-html-zEfNEgpj.js +1 -0
  365. package/kit/assets/vue-vine-DQRWX4iy.js +1 -0
  366. package/kit/assets/vyper-DpazWNpx.js +1 -0
  367. package/kit/assets/wasm-CFi-k9--.js +1 -0
  368. package/kit/assets/wasm-CG6Dc4jp.js +1 -0
  369. package/kit/assets/wenyan-CYFFG9DK.js +1 -0
  370. package/kit/assets/wgsl-CxjTZs-b.js +1 -0
  371. package/kit/assets/wikitext-Bx2qct8O.js +1 -0
  372. package/kit/assets/wit-DDW3hD69.js +1 -0
  373. package/kit/assets/wolfram-pu21K997.js +1 -0
  374. package/kit/assets/worker-DPHDIlCt.js +156 -0
  375. package/kit/assets/xml-BkAJuBCc.js +1 -0
  376. package/kit/assets/xsl-C6UUWSil.js +1 -0
  377. package/kit/assets/yaml-Bopit2L3.js +1 -0
  378. package/kit/assets/zenscript-BIAKq-aR.js +1 -0
  379. package/kit/assets/zig-bSFrHQ7n.js +1 -0
  380. package/kit/build.json +3 -0
  381. package/kit/chunks/abap-BdImnpbu.js +1 -0
  382. package/kit/chunks/abnfDiagram-VCTEODGH-Ekbmv6AY.js +1 -0
  383. package/kit/chunks/actionscript-3-B3316cI-.js +1 -0
  384. package/kit/chunks/ada-bCR0ucgS.js +1 -0
  385. package/kit/chunks/ahk-CsyLZFj1.js +1 -0
  386. package/kit/chunks/ahk2-8Zs4aa1G.js +1 -0
  387. package/kit/chunks/andromeeda-C4gqWexZ.js +1 -0
  388. package/kit/chunks/angular-html-DA-rfuFy.js +1 -0
  389. package/kit/chunks/angular-ts-BrjP3tb8.js +1 -0
  390. package/kit/chunks/apache-Pmp26Uib.js +1 -0
  391. package/kit/chunks/apex-DhZFqWV2.js +1 -0
  392. package/kit/chunks/apl-CORt7UWP.js +1 -0
  393. package/kit/chunks/app-chat-kit-CmncbKE7.js +885 -0
  394. package/kit/chunks/applescript-Co6uUVPk.js +1 -0
  395. package/kit/chunks/ara-BRHolxvo.js +1 -0
  396. package/kit/chunks/arc-CTvemvxA.js +1 -0
  397. package/kit/chunks/architecture-7GRP2DOG-Ek37_97Z.js +1 -0
  398. package/kit/chunks/architectureDiagram-5GKGNRK7-Dfo6x88c.js +36 -0
  399. package/kit/chunks/asciidoc-CSVQ5wI8.js +1 -0
  400. package/kit/chunks/asm-D_Q5rh1f.js +1 -0
  401. package/kit/chunks/astro-HNnZUWAn.js +1 -0
  402. package/kit/chunks/aurora-x-D-2ljcwZ.js +1 -0
  403. package/kit/chunks/awk-DMzUqQB5.js +1 -0
  404. package/kit/chunks/ayu-dark-DYE7WIF3.js +1 -0
  405. package/kit/chunks/ayu-light-BA47KaF1.js +1 -0
  406. package/kit/chunks/ayu-mirage-32ctXXKs.js +1 -0
  407. package/kit/chunks/ballerina-BFfxhgS-.js +1 -0
  408. package/kit/chunks/bat-CickPsom.js +1 -0
  409. package/kit/chunks/beancount-k_qm7-4y.js +1 -0
  410. package/kit/chunks/berry-uYugtg8r.js +1 -0
  411. package/kit/chunks/bibtex-CHM0blh-.js +1 -0
  412. package/kit/chunks/bicep-Bmn6On1c.js +1 -0
  413. package/kit/chunks/bird2-Bx8U0n9b.js +1 -0
  414. package/kit/chunks/blade-2xfisSek.js +1 -0
  415. package/kit/chunks/blockDiagram-NRAW4CY4-BREhUg_n.js +129 -0
  416. package/kit/chunks/bsl-DlhNcFeZ.js +1 -0
  417. package/kit/chunks/c-BIGW1oBm.js +1 -0
  418. package/kit/chunks/c3-Dp5svz6Z.js +1 -0
  419. package/kit/chunks/c4Diagram-UCG6FXSJ-CAoiRqwq.js +38 -0
  420. package/kit/chunks/cadence-Bv_4Rxtq.js +1 -0
  421. package/kit/chunks/cairo-KRGpt6FW.js +1 -0
  422. package/kit/chunks/catppuccin-frappe-CZL1YF0i.js +1 -0
  423. package/kit/chunks/catppuccin-latte-DH-8KZSZ.js +1 -0
  424. package/kit/chunks/catppuccin-macchiato-B7yYVSCf.js +1 -0
  425. package/kit/chunks/catppuccin-mocha-Ct7hS0mc.js +1 -0
  426. package/kit/chunks/channel-BCuymVz7.js +1 -0
  427. package/kit/chunks/chapel-DTp_pixX.js +1 -0
  428. package/kit/chunks/chunk-2Q5K7J3B-Dfj9NWMK.js +1 -0
  429. package/kit/chunks/chunk-5VM5RSS4-DDPHEz3o.js +15 -0
  430. package/kit/chunks/chunk-F27PBJKO-DjjkcfXV.js +1 -0
  431. package/kit/chunks/chunk-G27WJ6UU-BbKnleUj.js +231 -0
  432. package/kit/chunks/chunk-JWPE2WC7-CTyE03Ky.js +1 -0
  433. package/kit/chunks/chunk-LCL6LL3I-DLCIPv63.js +206 -0
  434. package/kit/chunks/chunk-POPQ4Y6H-vHDe0Ab2.js +1 -0
  435. package/kit/chunks/chunk-RHFEMEQ7-MYjE_XE-.js +168 -0
  436. package/kit/chunks/chunk-SVP7TREG-B-Z53M0l.js +88 -0
  437. package/kit/chunks/chunk-XXDRQBXY-Byur0hqD.js +1 -0
  438. package/kit/chunks/clarity-Dn5IMItf.js +1 -0
  439. package/kit/chunks/classDiagram-DTDB5LWJ-RWAJ513G.js +1 -0
  440. package/kit/chunks/classDiagram-v2-JRS7N3AN-RWAJ513G.js +1 -0
  441. package/kit/chunks/clojure-P80f7IUj.js +1 -0
  442. package/kit/chunks/cmake-D1j8_8rp.js +1 -0
  443. package/kit/chunks/cobol-nBiQ_Alo.js +1 -0
  444. package/kit/chunks/codeowners-Bp6g37R7.js +1 -0
  445. package/kit/chunks/codeql-DsOJ9woJ.js +1 -0
  446. package/kit/chunks/coffee-Ch7k5sss.js +1 -0
  447. package/kit/chunks/common-lisp-Cg-RD9OK.js +1 -0
  448. package/kit/chunks/coq-C7JzOVbR.js +1 -0
  449. package/kit/chunks/cose-bilkent-JH36ORCC-BJBTUpzs.js +1 -0
  450. package/kit/chunks/cpp-BMRokrvK.js +1 -0
  451. package/kit/chunks/crystal-DGywbUpC.js +1 -0
  452. package/kit/chunks/csharp-DSvCPggb.js +1 -0
  453. package/kit/chunks/css-CLj8gQPS.js +1 -0
  454. package/kit/chunks/csv-fuZLfV_i.js +1 -0
  455. package/kit/chunks/cue-D82EKSYY.js +1 -0
  456. package/kit/chunks/cynefin-OW5HDTMX-DximYq9_.js +1 -0
  457. package/kit/chunks/cynefinDiagram-5FMLGOSQ-C_H0NP3V.js +62 -0
  458. package/kit/chunks/cypher-COkxafJQ.js +1 -0
  459. package/kit/chunks/cytoscape.esm-CNiYdHpY.js +331 -0
  460. package/kit/chunks/d-85-TOEBH.js +1 -0
  461. package/kit/chunks/dagre-3AP2YEHR-B40iBpXe.js +4 -0
  462. package/kit/chunks/dark-plus-C3mMm8J8.js +1 -0
  463. package/kit/chunks/dart-bE4Kk8sk.js +1 -0
  464. package/kit/chunks/dax-CEL-wOlO.js +1 -0
  465. package/kit/chunks/defaultLocale-DX6XiGOO.js +1 -0
  466. package/kit/chunks/desktop-BmXAJ9_W.js +1 -0
  467. package/kit/chunks/diagram-S7CK7UJ4-B2xIXmUw.js +30 -0
  468. package/kit/chunks/diagram-UQ7AKVKN-DLWlOhvf.js +41 -0
  469. package/kit/chunks/diagram-VSXAHHWV-CtxWAwpJ.js +3 -0
  470. package/kit/chunks/diagram-VX7I27RA-C0oOsr2R.js +24 -0
  471. package/kit/chunks/diagram-Z3DM3KII-DguGhB-N.js +24 -0
  472. package/kit/chunks/diff-D97Zzqfu.js +1 -0
  473. package/kit/chunks/docker-BcOcwvcX.js +1 -0
  474. package/kit/chunks/dotenv-Da5cRb03.js +1 -0
  475. package/kit/chunks/dracula-BzJJZx-M.js +1 -0
  476. package/kit/chunks/dracula-soft-BXkSAIEj.js +1 -0
  477. package/kit/chunks/dream-maker-BtqSS_iP.js +1 -0
  478. package/kit/chunks/ebnfDiagram-PWID7BFC-CM2jytSc.js +1 -0
  479. package/kit/chunks/edge-FbVlp4U3.js +1 -0
  480. package/kit/chunks/elixir-CkH2-t6x.js +1 -0
  481. package/kit/chunks/elm-DbKCFpqz.js +1 -0
  482. package/kit/chunks/emacs-lisp-C_m_b--Z.js +1 -0
  483. package/kit/chunks/engine-compile-BrcillB_.js +152 -0
  484. package/kit/chunks/erDiagram-SSCWMZ5O-6AVzexk8.js +99 -0
  485. package/kit/chunks/erb-DXfck5VN.js +1 -0
  486. package/kit/chunks/erlang-DsQrWhSR.js +1 -0
  487. package/kit/chunks/eventmodeling-NTZA5JFV-i5VApXqj.js +1 -0
  488. package/kit/chunks/everforest-dark-BgDCqdQA.js +1 -0
  489. package/kit/chunks/everforest-light-C8M2exoo.js +1 -0
  490. package/kit/chunks/fennel-BYunw83y.js +1 -0
  491. package/kit/chunks/file-p1zS5m55.js +1524 -0
  492. package/kit/chunks/fish-BvzEVeQv.js +1 -0
  493. package/kit/chunks/flowDiagram-A5DVABFB-BXMY48By.js +1 -0
  494. package/kit/chunks/fluent-C4IJs8-o.js +1 -0
  495. package/kit/chunks/fortran-fixed-form-CkoXwp7k.js +1 -0
  496. package/kit/chunks/fortran-free-form-BxgE0vQu.js +1 -0
  497. package/kit/chunks/fsharp-CXgrBDvD.js +1 -0
  498. package/kit/chunks/ganttDiagram-EL5Y4UJY-CV7SNBW7.js +292 -0
  499. package/kit/chunks/gdresource-TyuKm33G.js +1 -0
  500. package/kit/chunks/gdscript-DqcFQ5yU.js +1 -0
  501. package/kit/chunks/gdshader-DkwncUOv.js +1 -0
  502. package/kit/chunks/genie-D0YGMca9.js +1 -0
  503. package/kit/chunks/gherkin-DyxjwDmM.js +1 -0
  504. package/kit/chunks/git-commit-F4YmCXRG.js +1 -0
  505. package/kit/chunks/git-rebase-r7XF79zn.js +1 -0
  506. package/kit/chunks/gitGraph-4MIJSDKK-J1V9VTkA.js +1 -0
  507. package/kit/chunks/gitGraphDiagram-WWUBYQGX-BCHc9w_M.js +106 -0
  508. package/kit/chunks/github-dark-DHJKELXO.js +1 -0
  509. package/kit/chunks/github-dark-default-Cuk6v7N8.js +1 -0
  510. package/kit/chunks/github-dark-dimmed-DH5Ifo-i.js +1 -0
  511. package/kit/chunks/github-dark-high-contrast-E3gJ1_iC.js +1 -0
  512. package/kit/chunks/github-light-DAi9KRSo.js +1 -0
  513. package/kit/chunks/github-light-default-D7oLnXFd.js +1 -0
  514. package/kit/chunks/github-light-high-contrast-BfjtVDDH.js +1 -0
  515. package/kit/chunks/gleam-BspZqrRM.js +1 -0
  516. package/kit/chunks/glimmer-js-ByusRIyA.js +1 -0
  517. package/kit/chunks/glimmer-ts-BfAWNZQY.js +1 -0
  518. package/kit/chunks/glsl-DplSGwfg.js +1 -0
  519. package/kit/chunks/gn-n2N0HUVH.js +1 -0
  520. package/kit/chunks/gnuplot-DdkO51Og.js +1 -0
  521. package/kit/chunks/go-C27-OAKa.js +1 -0
  522. package/kit/chunks/graphql-ChdNCCLP.js +1 -0
  523. package/kit/chunks/groovy-gcz8RCvz.js +1 -0
  524. package/kit/chunks/gruvbox-dark-hard-CFHQjOhq.js +1 -0
  525. package/kit/chunks/gruvbox-dark-medium-GsRaNv29.js +1 -0
  526. package/kit/chunks/gruvbox-dark-soft-CVdnzihN.js +1 -0
  527. package/kit/chunks/gruvbox-light-hard-CH1njM8p.js +1 -0
  528. package/kit/chunks/gruvbox-light-medium-DRw_LuNl.js +1 -0
  529. package/kit/chunks/gruvbox-light-soft-hJgmCMqR.js +1 -0
  530. package/kit/chunks/hack-BWmVpMyf.js +1 -0
  531. package/kit/chunks/haml-D5jkg6IW.js +1 -0
  532. package/kit/chunks/handlebars-BpdQsYii.js +1 -0
  533. package/kit/chunks/haskell-Df6bDoY_.js +1 -0
  534. package/kit/chunks/haxe-CfZj7gIn.js +1 -0
  535. package/kit/chunks/hcl-BWvSN4gD.js +1 -0
  536. package/kit/chunks/hjson-D5-asLiD.js +1 -0
  537. package/kit/chunks/hlsl-D3lLCCz7.js +1 -0
  538. package/kit/chunks/horizon-BUw7H-hv.js +1 -0
  539. package/kit/chunks/horizon-bright-CUuTKBJd.js +1 -0
  540. package/kit/chunks/houston-DnULxvSX.js +1 -0
  541. package/kit/chunks/html-derivative-DlHx6ybY.js +1 -0
  542. package/kit/chunks/html-pp8916En.js +1 -0
  543. package/kit/chunks/http-jrhK8wxY.js +1 -0
  544. package/kit/chunks/hurl-irOxFIW8.js +1 -0
  545. package/kit/chunks/hxml-2-FPmUDs.js +1 -0
  546. package/kit/chunks/hy-DFXneXwc.js +1 -0
  547. package/kit/chunks/imba-DGztddWO.js +1 -0
  548. package/kit/chunks/index-CN35FGBT.js +2 -0
  549. package/kit/chunks/index-CvcU6KJI.js +2 -0
  550. package/kit/chunks/index-CzdAxbXm.js +1 -0
  551. package/kit/chunks/index-D-Q6ihx1.js +518 -0
  552. package/kit/chunks/info-A6RAGUB7-Df1RDY9x.js +1 -0
  553. package/kit/chunks/infoDiagram-RXCK75RN-DkViDaAy.js +2 -0
  554. package/kit/chunks/ini-BEwlwnbL.js +1 -0
  555. package/kit/chunks/init-Gi6I4Gst.js +1 -0
  556. package/kit/chunks/ishikawaDiagram-5VMMS53U-DxEqVVmG.js +70 -0
  557. package/kit/chunks/java-CylS5w8V.js +1 -0
  558. package/kit/chunks/javascript-wDzz0qaB.js +1 -0
  559. package/kit/chunks/jinja-f2NsQr07.js +1 -0
  560. package/kit/chunks/jison-wvAkD_A8.js +1 -0
  561. package/kit/chunks/journeyDiagram-EYS64GPL-C6PuEAZM.js +139 -0
  562. package/kit/chunks/json-Cp-IABpG.js +1 -0
  563. package/kit/chunks/json5-C9tS-k6U.js +1 -0
  564. package/kit/chunks/jsonc-Des-eS-w.js +1 -0
  565. package/kit/chunks/jsonl-DcaNXYhu.js +1 -0
  566. package/kit/chunks/jsonnet-DFQXde-d.js +1 -0
  567. package/kit/chunks/jssm-C2t-YnRu.js +1 -0
  568. package/kit/chunks/jsx-g9-lgVsj.js +1 -0
  569. package/kit/chunks/julia-5Bft2YPA.js +1 -0
  570. package/kit/chunks/just-Cwhn7H3k.js +1 -0
  571. package/kit/chunks/kanagawa-dragon-BuwD2xS4.js +1 -0
  572. package/kit/chunks/kanagawa-lotus-C3DzagqV.js +1 -0
  573. package/kit/chunks/kanagawa-wave-DFGoQZhC.js +1 -0
  574. package/kit/chunks/kanban-definition-3QL26DDD-DOTf6YFB.js +89 -0
  575. package/kit/chunks/katex-HP8lGamR.js +257 -0
  576. package/kit/chunks/kdl-DV7GczEv.js +1 -0
  577. package/kit/chunks/kotlin-BdnUsdx6.js +1 -0
  578. package/kit/chunks/kusto-wEQ09or8.js +1 -0
  579. package/kit/chunks/laserwave-DUszq2jm.js +1 -0
  580. package/kit/chunks/latex-D5pSuvFb.js +1 -0
  581. package/kit/chunks/layout-CdSidOqg.js +1 -0
  582. package/kit/chunks/lean-BZvkOJ9d.js +1 -0
  583. package/kit/chunks/less-B1dDrJ26.js +1 -0
  584. package/kit/chunks/light-plus-B7mTdjB0.js +1 -0
  585. package/kit/chunks/linear-2B_RRiLc.js +1 -0
  586. package/kit/chunks/liquid-C0sCDyMI.js +1 -0
  587. package/kit/chunks/llvm-BZoOZj88.js +1 -0
  588. package/kit/chunks/log-2UxHyX5q.js +1 -0
  589. package/kit/chunks/logo-BtOb2qkB.js +1 -0
  590. package/kit/chunks/lua-BaeVxFsk.js +1 -0
  591. package/kit/chunks/luau-BnpPk5vE.js +1 -0
  592. package/kit/chunks/make-CHLpvVh8.js +1 -0
  593. package/kit/chunks/markdown-Cvjx9yec.js +1 -0
  594. package/kit/chunks/markdown-PrvsCtkO.js +7 -0
  595. package/kit/chunks/markdown-code-BP4ED3mK.js +1 -0
  596. package/kit/chunks/markdown-mermaid-C7inlIvD.js +2 -0
  597. package/kit/chunks/marked-parser-ucXGUtxA.js +1 -0
  598. package/kit/chunks/marko-DjSrsDqO.js +1 -0
  599. package/kit/chunks/material-theme-D5KoaKCx.js +1 -0
  600. package/kit/chunks/material-theme-darker-BfHTSMKl.js +1 -0
  601. package/kit/chunks/material-theme-lighter-B0m2ddpp.js +1 -0
  602. package/kit/chunks/material-theme-ocean-CyktbL80.js +1 -0
  603. package/kit/chunks/material-theme-palenight-Csfq5Kiy.js +1 -0
  604. package/kit/chunks/matlab-D7o27uSR.js +1 -0
  605. package/kit/chunks/mdc-D1_yUvq7.js +1 -0
  606. package/kit/chunks/mdx-Cmh6b_Ma.js +1 -0
  607. package/kit/chunks/mermaid-CQcHuHx7.js +1 -0
  608. package/kit/chunks/mermaid-parser.core-mF5sU-Xg.js +178 -0
  609. package/kit/chunks/mermaid.core-xKeJvOaV.js +309 -0
  610. package/kit/chunks/min-dark-CafNBF8u.js +1 -0
  611. package/kit/chunks/min-light-CTRr51gU.js +1 -0
  612. package/kit/chunks/mindmap-definition-FBJOCRG2-YJlqhJDe.js +96 -0
  613. package/kit/chunks/mipsasm-CKIfxQSi.js +1 -0
  614. package/kit/chunks/mojo-Blby8dQK.js +1 -0
  615. package/kit/chunks/monokai-BRVnQi9A.js +1 -0
  616. package/kit/chunks/moonbit-CHtswR0a.js +1 -0
  617. package/kit/chunks/move-el3G9tDJ.js +1 -0
  618. package/kit/chunks/narrat-DRg8JJMk.js +1 -0
  619. package/kit/chunks/nextflow-C-mBbutL.js +1 -0
  620. package/kit/chunks/nextflow-groovy-vE_lwT2v.js +1 -0
  621. package/kit/chunks/nginx-BpAMiNFr.js +1 -0
  622. package/kit/chunks/night-owl-C39BiMTA.js +1 -0
  623. package/kit/chunks/night-owl-light-CMTm3GFP.js +1 -0
  624. package/kit/chunks/nim-BIad80T-.js +1 -0
  625. package/kit/chunks/nix-CwoSXNpI.js +1 -0
  626. package/kit/chunks/nord-Ddv68eIx.js +1 -0
  627. package/kit/chunks/nsis-BlV79W_Q.js +1 -0
  628. package/kit/chunks/nushell-D3jzshHO.js +1 -0
  629. package/kit/chunks/objective-c-DXmwc3jG.js +1 -0
  630. package/kit/chunks/objective-cpp-CLxacb5B.js +1 -0
  631. package/kit/chunks/ocaml-C0hk2d4L.js +1 -0
  632. package/kit/chunks/odin-BBf5iR-q.js +1 -0
  633. package/kit/chunks/one-dark-pro-DVMEJ2y_.js +1 -0
  634. package/kit/chunks/one-light-C3Wv6jpd.js +1 -0
  635. package/kit/chunks/openscad-C4EeE6gA.js +1 -0
  636. package/kit/chunks/ordinal-Cboi1Yqb.js +1 -0
  637. package/kit/chunks/org-DM6o9KBp.js +1 -0
  638. package/kit/chunks/packet-AYTQ26CC-BVWhELL0.js +1 -0
  639. package/kit/chunks/pascal-D93ZcfNL.js +1 -0
  640. package/kit/chunks/pegDiagram-XKGWAZYB-C4MT3RNK.js +1 -0
  641. package/kit/chunks/perl-B9cMNwum.js +1 -0
  642. package/kit/chunks/php-Csjmro_R.js +1 -0
  643. package/kit/chunks/pie-WAS4IAKB-DOImHQUJ.js +1 -0
  644. package/kit/chunks/pieDiagram-E7YTZNPT-Hm0WPgzn.js +39 -0
  645. package/kit/chunks/pierre-dark-CyvmCCZW.js +1 -0
  646. package/kit/chunks/pierre-dark-protanopia-deuteranopia-Rgc0TwpF.js +1 -0
  647. package/kit/chunks/pierre-dark-soft-BHGpRqa4.js +1 -0
  648. package/kit/chunks/pierre-dark-tritanopia-Beq2gCRQ.js +1 -0
  649. package/kit/chunks/pierre-dark-vibrant-BWBVywrn.js +1 -0
  650. package/kit/chunks/pierre-light-480U9XYS.js +1 -0
  651. package/kit/chunks/pierre-light-protanopia-deuteranopia-CaVOBURG.js +1 -0
  652. package/kit/chunks/pierre-light-soft-CVdyfjmI.js +1 -0
  653. package/kit/chunks/pierre-light-tritanopia-B4_gpKOM.js +1 -0
  654. package/kit/chunks/pierre-light-vibrant-DdTDNdfJ.js +1 -0
  655. package/kit/chunks/pkl-u5AG7uiY.js +1 -0
  656. package/kit/chunks/plastic-3e1v2bzS.js +1 -0
  657. package/kit/chunks/plsql-ChMvpjG-.js +1 -0
  658. package/kit/chunks/po-BTJTHyun.js +1 -0
  659. package/kit/chunks/poimandres-CS3Unz2-.js +1 -0
  660. package/kit/chunks/polar-C0HS_06l.js +1 -0
  661. package/kit/chunks/postcss-CXtECtnM.js +1 -0
  662. package/kit/chunks/powerquery-CEu0bR-o.js +1 -0
  663. package/kit/chunks/powershell-BmBUJMz7.js +1 -0
  664. package/kit/chunks/prisma-Vru482bI.js +1 -0
  665. package/kit/chunks/prolog-CbFg5uaA.js +1 -0
  666. package/kit/chunks/proto-C7zT0LnQ.js +1 -0
  667. package/kit/chunks/pug-DKIMFp6K.js +1 -0
  668. package/kit/chunks/puppet-BMWR74SV.js +1 -0
  669. package/kit/chunks/purescript-CklMAg4u.js +1 -0
  670. package/kit/chunks/python-B6aJPvgy.js +1 -0
  671. package/kit/chunks/qml-3beO22l8.js +1 -0
  672. package/kit/chunks/qmldir-C8lEn-DE.js +1 -0
  673. package/kit/chunks/qss-IeuSbFQv.js +1 -0
  674. package/kit/chunks/quadrantDiagram-AXDQQJYC-BZTp7tGN.js +7 -0
  675. package/kit/chunks/r-Cf5RLm7j.js +1 -0
  676. package/kit/chunks/racket-BqYA7rlc.js +1 -0
  677. package/kit/chunks/radar-RG4KPBEZ-KbpEH3G6.js +1 -0
  678. package/kit/chunks/railroad-74A4TZTK-Cy0CCThT.js +1 -0
  679. package/kit/chunks/railroad-abnf-HS5TGJTU-CvknKf9w.js +1 -0
  680. package/kit/chunks/railroad-ebnf-LZEXJU2U-DPsJAhot.js +1 -0
  681. package/kit/chunks/railroad-peg-WCYAUIDC-CAZC7-ro.js +1 -0
  682. package/kit/chunks/railroadDiagram-O6MQD6OU-Cslq_ZZh.js +1 -0
  683. package/kit/chunks/raku-DXvB9xmW.js +1 -0
  684. package/kit/chunks/razor-BjBPvh-w.js +1 -0
  685. package/kit/chunks/rbs-CpoqiR4B.js +1 -0
  686. package/kit/chunks/red-hvxz__6c.js +1 -0
  687. package/kit/chunks/reg-C-SQnVFl.js +1 -0
  688. package/kit/chunks/regexp-CDVJQ6XC.js +1 -0
  689. package/kit/chunks/rel-C3B-1QV4.js +1 -0
  690. package/kit/chunks/requirementDiagram-EFPCY7ZU-CvFiO4QY.js +84 -0
  691. package/kit/chunks/riscv-BM1_JUlF.js +1 -0
  692. package/kit/chunks/ron-D8l8udqQ.js +1 -0
  693. package/kit/chunks/rose-pine-5qJOZa0Y.js +1 -0
  694. package/kit/chunks/rose-pine-dawn-zx0QlTCp.js +1 -0
  695. package/kit/chunks/rose-pine-moon-C9pEdX9L.js +1 -0
  696. package/kit/chunks/rosmsg-BJDFO7_C.js +1 -0
  697. package/kit/chunks/rst-bs7f0vWN.js +1 -0
  698. package/kit/chunks/ruby-C0TQ7zu5.js +1 -0
  699. package/kit/chunks/rust-B1yitclQ.js +1 -0
  700. package/kit/chunks/sankeyDiagram-P5KCCOFB-Da1DpNmD.js +40 -0
  701. package/kit/chunks/sas-DEy46yEz.js +1 -0
  702. package/kit/chunks/sass-Cj5Yp3dK.js +1 -0
  703. package/kit/chunks/scala-CqE71os6.js +1 -0
  704. package/kit/chunks/scheme-C98Dy4si.js +1 -0
  705. package/kit/chunks/scss-D5BDwBP9.js +1 -0
  706. package/kit/chunks/sdbl-DVxCFoDh.js +1 -0
  707. package/kit/chunks/sequenceDiagram-WJ2MYXX4-DxoNyZwj.js +162 -0
  708. package/kit/chunks/shaderlab-Dg9Lc6iA.js +1 -0
  709. package/kit/chunks/shellscript-Yzrsuije.js +1 -0
  710. package/kit/chunks/shellsession-BADoaaVG.js +1 -0
  711. package/kit/chunks/sizeCapture-X5ZJPWSS-BYc4ks_u.js +1 -0
  712. package/kit/chunks/slack-dark-BthQWCQV.js +1 -0
  713. package/kit/chunks/slack-ochin-DqwNpetd.js +1 -0
  714. package/kit/chunks/smalltalk-BOQMe2GC.js +1 -0
  715. package/kit/chunks/smithy-cds9vsN8.js +1 -0
  716. package/kit/chunks/snazzy-light-Bw305WKR.js +1 -0
  717. package/kit/chunks/solarized-dark-CpvCGNkr.js +1 -0
  718. package/kit/chunks/solarized-light-Dlz6yCKv.js +1 -0
  719. package/kit/chunks/solidity-DijEV5ha.js +1 -0
  720. package/kit/chunks/soy-8wufbnw4.js +1 -0
  721. package/kit/chunks/sparql-rVzFXLq3.js +1 -0
  722. package/kit/chunks/splunk-BtCnVYZw.js +1 -0
  723. package/kit/chunks/sql-CRqJ_cUM.js +1 -0
  724. package/kit/chunks/ssh-config-_ykCGR6B.js +1 -0
  725. package/kit/chunks/stata-DI20mbqo.js +1 -0
  726. package/kit/chunks/stateDiagram-HBIQ2CUA-pcNSv_wf.js +1 -0
  727. package/kit/chunks/stateDiagram-v2-4QOOHH4V-BdB1HxLL.js +1 -0
  728. package/kit/chunks/stylus-BEDo0Tqx.js +1 -0
  729. package/kit/chunks/surrealql-Cjom0U5J.js +1 -0
  730. package/kit/chunks/svelte-Cy7k_4gC.js +1 -0
  731. package/kit/chunks/swift-C2oV4EkX.js +1 -0
  732. package/kit/chunks/swimlanes-XN3QIQJK-D7wXTch1.js +1 -0
  733. package/kit/chunks/swimlanesDiagram-VK2B7HYN-BmYbYnek.js +8 -0
  734. package/kit/chunks/synthwave-84-CbfX1IO0.js +1 -0
  735. package/kit/chunks/system-verilog-0hqHdDBg.js +1 -0
  736. package/kit/chunks/systemd-4A_iFExJ.js +1 -0
  737. package/kit/chunks/talonscript-CkByrt1z.js +1 -0
  738. package/kit/chunks/tasl-QIJgUcNo.js +1 -0
  739. package/kit/chunks/tcl-dwOrl1Do.js +1 -0
  740. package/kit/chunks/templ-DhtptRzy.js +1 -0
  741. package/kit/chunks/terraform-BETggiCN.js +1 -0
  742. package/kit/chunks/tex-D96PA37w.js +1 -0
  743. package/kit/chunks/timeline-definition-24CTP7MA-BrPc1tMu.js +120 -0
  744. package/kit/chunks/tokyo-night-hegEt444.js +1 -0
  745. package/kit/chunks/toml-vGWfd6FD.js +1 -0
  746. package/kit/chunks/treeView-Q6P3EWNA-hcKZ8Aqa.js +1 -0
  747. package/kit/chunks/treemap-WGGIJYW6-VledEerh.js +1 -0
  748. package/kit/chunks/ts-tags-D351s5mN.js +1 -0
  749. package/kit/chunks/tsv-B_m7g4N7.js +1 -0
  750. package/kit/chunks/tsx-COt5Ahok.js +1 -0
  751. package/kit/chunks/turtle-BsS91CYL.js +1 -0
  752. package/kit/chunks/twig-27uCiNez.js +1 -0
  753. package/kit/chunks/typescript-BPQ3VLAy.js +1 -0
  754. package/kit/chunks/typespec-CAFt9gP4.js +1 -0
  755. package/kit/chunks/typst-DHCkPAjA.js +1 -0
  756. package/kit/chunks/v-BGw2Nkan.js +1 -0
  757. package/kit/chunks/vala-CsfeWuGM.js +1 -0
  758. package/kit/chunks/vb-Cu-pLBUe.js +1 -0
  759. package/kit/chunks/vennDiagram-4TSXK5OY-CMfntOoF.js +34 -0
  760. package/kit/chunks/verilog-nZwndyjY.js +1 -0
  761. package/kit/chunks/vesper-DRje8inN.js +1 -0
  762. package/kit/chunks/vhdl-CeAyd5Ju.js +1 -0
  763. package/kit/chunks/viml-CJc9bBzg.js +1 -0
  764. package/kit/chunks/vitesse-black-Bkuqu6BP.js +1 -0
  765. package/kit/chunks/vitesse-dark-D0r3Knsf.js +1 -0
  766. package/kit/chunks/vitesse-light-CVO1_9PV.js +1 -0
  767. package/kit/chunks/vue-BqiEGhQt.js +1 -0
  768. package/kit/chunks/vue-html-AaS7Mt5G.js +1 -0
  769. package/kit/chunks/vue-vine-BoDAl6tE.js +1 -0
  770. package/kit/chunks/vyper-CDx5xZoG.js +1 -0
  771. package/kit/chunks/wardley-WFR3VGLG-Bx5FYIM5.js +1 -0
  772. package/kit/chunks/wardleyDiagram-VM6X3IG4-C9foyd_h.js +78 -0
  773. package/kit/chunks/wasm-CG6Dc4jp.js +1 -0
  774. package/kit/chunks/wasm-MzD3tlZU.js +1 -0
  775. package/kit/chunks/wenyan-BV7otONQ.js +1 -0
  776. package/kit/chunks/wgsl-Dx-B1_4e.js +1 -0
  777. package/kit/chunks/wikitext-BhOHFoWU.js +1 -0
  778. package/kit/chunks/wit-5i3qLPDT.js +1 -0
  779. package/kit/chunks/wolfram-lXgVvXCa.js +1 -0
  780. package/kit/chunks/xml-sdJ4AIDG.js +1 -0
  781. package/kit/chunks/xsl-CtQFsRM5.js +1 -0
  782. package/kit/chunks/xychartDiagram-S5SC5T6Z-Bp0MWYj-.js +7 -0
  783. package/kit/chunks/yaml-Buea-lGh.js +1 -0
  784. package/kit/chunks/zenscript-DVFEvuxE.js +1 -0
  785. package/kit/chunks/zig-VOosw3JB.js +1 -0
  786. package/kit/index.d.ts +95 -0
  787. package/kit/index.js +1 -0
  788. package/kit/mux-build.json +1 -0
  789. package/kit/style.css +1 -0
  790. package/package.json +9 -15
  791. package/dist/controller.d.ts +0 -66
  792. package/dist/index.d.ts +0 -2
  793. package/dist/index.js +0 -1237
  794. package/dist/index.js.map +0 -1
  795. package/dist/markdown.d.ts +0 -2
  796. package/dist/model.d.ts +0 -33
  797. package/dist/mount.d.ts +0 -56
  798. package/dist/styles.d.ts +0 -2
  799. package/dist/testing.js.map +0 -1
  800. package/dist/view/Chat.d.ts +0 -26
  801. package/dist/view/parts.d.ts +0 -19
  802. package/dist/view/primitives.d.ts +0 -10
@@ -0,0 +1,309 @@
1
+ import{g as an,_ as _t}from"./app-chat-kit-CmncbKE7.js";import{p as Hr}from"./markdown-PrvsCtkO.js";var cu=Object.defineProperty,g=(e,t)=>cu(e,"name",{value:t,configurable:!0}),Qy=(e,t)=>{for(var r in t)cu(e,r,{get:t[r],enumerable:!0})},ps={exports:{}},Jy=ps.exports,Dl;function tm(){return Dl||(Dl=1,(function(e,t){(function(r,i){e.exports=i()})(Jy,(function(){var r=1e3,i=6e4,s=36e5,o="millisecond",a="second",n="minute",l="hour",c="day",h="week",u="month",d="quarter",f="year",y="date",m="Invalid Date",x=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,C=/\[([^\]]+)]|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,k={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(E){var O=["th","st","nd","rd"],B=E%100;return"["+E+(O[(B-20)%10]||O[B]||O[0])+"]"}},S=function(E,O,B){var R=String(E);return!R||R.length>=O?E:""+Array(O+1-R.length).join(B)+E},T={s:S,z:function(E){var O=-E.utcOffset(),B=Math.abs(O),R=Math.floor(B/60),$=B%60;return(O<=0?"+":"-")+S(R,2,"0")+":"+S($,2,"0")},m:function E(O,B){if(O.date()<B.date())return-E(B,O);var R=12*(B.year()-O.year())+(B.month()-O.month()),$=O.clone().add(R,u),J=B-$<0,Z=O.clone().add(R+(J?-1:1),u);return+(-(R+(B-$)/(J?$-Z:Z-$))||0)},a:function(E){return E<0?Math.ceil(E)||0:Math.floor(E)},p:function(E){return{M:u,y:f,w:h,d:c,D:y,h:l,m:n,s:a,ms:o,Q:d}[E]||String(E||"").toLowerCase().replace(/s$/,"")},u:function(E){return E===void 0}},_="en",L={};L[_]=k;var M="$isDayjsObject",v=function(E){return E instanceof et||!(!E||!E[M])},X=function E(O,B,R){var $;if(!O)return _;if(typeof O=="string"){var J=O.toLowerCase();L[J]&&($=J),B&&(L[J]=B,$=J);var Z=O.split("-");if(!$&&Z.length>1)return E(Z[0])}else{var dt=O.name;L[dt]=O,$=dt}return!R&&$&&(_=$),$||!R&&_},z=function(E,O){if(v(E))return E.clone();var B=typeof O=="object"?O:{};return B.date=E,B.args=arguments,new et(B)},I=T;I.l=X,I.i=v,I.w=function(E,O){return z(E,{locale:O.$L,utc:O.$u,x:O.$x,$offset:O.$offset})};var et=(function(){function E(B){this.$L=X(B.locale,null,!0),this.parse(B),this.$x=this.$x||B.x||{},this[M]=!0}var O=E.prototype;return O.parse=function(B){this.$d=(function(R){var $=R.date,J=R.utc;if($===null)return new Date(NaN);if(I.u($))return new Date;if($ instanceof Date)return new Date($);if(typeof $=="string"&&!/Z$/i.test($)){var Z=$.match(x);if(Z){var dt=Z[2]-1||0,Ct=(Z[7]||"0").substring(0,3);return J?new Date(Date.UTC(Z[1],dt,Z[3]||1,Z[4]||0,Z[5]||0,Z[6]||0,Ct)):new Date(Z[1],dt,Z[3]||1,Z[4]||0,Z[5]||0,Z[6]||0,Ct)}}return new Date($)})(B),this.init()},O.init=function(){var B=this.$d;this.$y=B.getFullYear(),this.$M=B.getMonth(),this.$D=B.getDate(),this.$W=B.getDay(),this.$H=B.getHours(),this.$m=B.getMinutes(),this.$s=B.getSeconds(),this.$ms=B.getMilliseconds()},O.$utils=function(){return I},O.isValid=function(){return this.$d.toString()!==m},O.isSame=function(B,R){var $=z(B);return this.startOf(R)<=$&&$<=this.endOf(R)},O.isAfter=function(B,R){return z(B)<this.startOf(R)},O.isBefore=function(B,R){return this.endOf(R)<z(B)},O.$g=function(B,R,$){return I.u(B)?this[R]:this.set($,B)},O.unix=function(){return Math.floor(this.valueOf()/1e3)},O.valueOf=function(){return this.$d.getTime()},O.startOf=function(B,R){var $=this,J=!!I.u(R)||R,Z=I.p(B),dt=function(kt,Et){var Ot=I.w($.$u?Date.UTC($.$y,Et,kt):new Date($.$y,Et,kt),$);return J?Ot:Ot.endOf(c)},Ct=function(kt,Et){return I.w($.toDate()[kt].apply($.toDate("s"),(J?[0,0,0,0]:[23,59,59,999]).slice(Et)),$)},xt=this.$W,St=this.$M,wt=this.$D,ht="set"+(this.$u?"UTC":"");switch(Z){case f:return J?dt(1,0):dt(31,11);case u:return J?dt(1,St):dt(0,St+1);case h:var pt=this.$locale().weekStart||0,vt=(xt<pt?xt+7:xt)-pt;return dt(J?wt-vt:wt+(6-vt),St);case c:case y:return Ct(ht+"Hours",0);case l:return Ct(ht+"Minutes",1);case n:return Ct(ht+"Seconds",2);case a:return Ct(ht+"Milliseconds",3);default:return this.clone()}},O.endOf=function(B){return this.startOf(B,!1)},O.$set=function(B,R){var $,J=I.p(B),Z="set"+(this.$u?"UTC":""),dt=($={},$[c]=Z+"Date",$[y]=Z+"Date",$[u]=Z+"Month",$[f]=Z+"FullYear",$[l]=Z+"Hours",$[n]=Z+"Minutes",$[a]=Z+"Seconds",$[o]=Z+"Milliseconds",$)[J],Ct=J===c?this.$D+(R-this.$W):R;if(J===u||J===f){var xt=this.clone().set(y,1);xt.$d[dt](Ct),xt.init(),this.$d=xt.set(y,Math.min(this.$D,xt.daysInMonth())).$d}else dt&&this.$d[dt](Ct);return this.init(),this},O.set=function(B,R){return this.clone().$set(B,R)},O.get=function(B){return this[I.p(B)]()},O.add=function(B,R){var $,J=this;B=Number(B);var Z=I.p(R),dt=function(St){var wt=z(J);return I.w(wt.date(wt.date()+Math.round(St*B)),J)};if(Z===u)return this.set(u,this.$M+B);if(Z===f)return this.set(f,this.$y+B);if(Z===c)return dt(1);if(Z===h)return dt(7);var Ct=($={},$[n]=i,$[l]=s,$[a]=r,$)[Z]||1,xt=this.$d.getTime()+B*Ct;return I.w(xt,this)},O.subtract=function(B,R){return this.add(-1*B,R)},O.format=function(B){var R=this,$=this.$locale();if(!this.isValid())return $.invalidDate||m;var J=B||"YYYY-MM-DDTHH:mm:ssZ",Z=I.z(this),dt=this.$H,Ct=this.$m,xt=this.$M,St=$.weekdays,wt=$.months,ht=$.meridiem,pt=function(Et,Ot,Jt,ue){return Et&&(Et[Ot]||Et(R,J))||Jt[Ot].slice(0,ue)},vt=function(Et){return I.s(dt%12||12,Et,"0")},kt=ht||function(Et,Ot,Jt){var ue=Et<12?"AM":"PM";return Jt?ue.toLowerCase():ue};return J.replace(C,(function(Et,Ot){return Ot||(function(Jt){switch(Jt){case"YY":return String(R.$y).slice(-2);case"YYYY":return I.s(R.$y,4,"0");case"M":return xt+1;case"MM":return I.s(xt+1,2,"0");case"MMM":return pt($.monthsShort,xt,wt,3);case"MMMM":return pt(wt,xt);case"D":return R.$D;case"DD":return I.s(R.$D,2,"0");case"d":return String(R.$W);case"dd":return pt($.weekdaysMin,R.$W,St,2);case"ddd":return pt($.weekdaysShort,R.$W,St,3);case"dddd":return St[R.$W];case"H":return String(dt);case"HH":return I.s(dt,2,"0");case"h":return vt(1);case"hh":return vt(2);case"a":return kt(dt,Ct,!0);case"A":return kt(dt,Ct,!1);case"m":return String(Ct);case"mm":return I.s(Ct,2,"0");case"s":return String(R.$s);case"ss":return I.s(R.$s,2,"0");case"SSS":return I.s(R.$ms,3,"0");case"Z":return Z}return null})(Et)||Z.replace(":","")}))},O.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},O.diff=function(B,R,$){var J,Z=this,dt=I.p(R),Ct=z(B),xt=(Ct.utcOffset()-this.utcOffset())*i,St=this-Ct,wt=function(){return I.m(Z,Ct)};switch(dt){case f:J=wt()/12;break;case u:J=wt();break;case d:J=wt()/3;break;case h:J=(St-xt)/6048e5;break;case c:J=(St-xt)/864e5;break;case l:J=St/s;break;case n:J=St/i;break;case a:J=St/r;break;default:J=St}return $?J:I.a(J)},O.daysInMonth=function(){return this.endOf(u).$D},O.$locale=function(){return L[this.$L]},O.locale=function(B,R){if(!B)return this.$L;var $=this.clone(),J=X(B,R,!0);return J&&($.$L=J),$},O.clone=function(){return I.w(this.$d,this)},O.toDate=function(){return new Date(this.valueOf())},O.toJSON=function(){return this.isValid()?this.toISOString():null},O.toISOString=function(){return this.$d.toISOString()},O.toString=function(){return this.$d.toUTCString()},E})(),H=et.prototype;return z.prototype=H,[["$ms",o],["$s",a],["$m",n],["$H",l],["$W",c],["$M",u],["$y",f],["$D",y]].forEach((function(E){H[E[1]]=function(O){return this.$g(O,E[0],E[1])}})),z.extend=function(E,O){return E.$i||(E(O,et,z),E.$i=!0),z},z.locale=X,z.isDayjs=v,z.unix=function(E){return z(1e3*E)},z.en=L[_],z.Ls=L,z.p={},z}))})(ps)),ps.exports}var em=tm();const rm=an(em);var Pe={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},P={trace:g((...e)=>{},"trace"),debug:g((...e)=>{},"debug"),info:g((...e)=>{},"info"),warn:g((...e)=>{},"warn"),error:g((...e)=>{},"error"),fatal:g((...e)=>{},"fatal")},nn=g(function(e="fatal"){let t=Pe.fatal;typeof e=="string"?e.toLowerCase()in Pe&&(t=Pe[e]):typeof e=="number"&&(t=e),P.trace=()=>{},P.debug=()=>{},P.info=()=>{},P.warn=()=>{},P.error=()=>{},P.fatal=()=>{},t<=Pe.fatal&&(P.fatal=console.error?console.error.bind(console,ne("FATAL"),"color: orange"):console.log.bind(console,"\x1B[35m",ne("FATAL"))),t<=Pe.error&&(P.error=console.error?console.error.bind(console,ne("ERROR"),"color: orange"):console.log.bind(console,"\x1B[31m",ne("ERROR"))),t<=Pe.warn&&(P.warn=console.warn?console.warn.bind(console,ne("WARN"),"color: orange"):console.log.bind(console,"\x1B[33m",ne("WARN"))),t<=Pe.info&&(P.info=console.info?console.info.bind(console,ne("INFO"),"color: lightblue"):console.log.bind(console,"\x1B[34m",ne("INFO"))),t<=Pe.debug&&(P.debug=console.debug?console.debug.bind(console,ne("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",ne("DEBUG"))),t<=Pe.trace&&(P.trace=console.debug?console.debug.bind(console,ne("TRACE"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",ne("TRACE")))},"setLogLevel"),ne=g(e=>`%c${rm().format("ss.SSS")} : ${e} : `,"format");const ys={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:e=>e>=255?255:e<0?0:e,g:e=>e>=255?255:e<0?0:e,b:e=>e>=255?255:e<0?0:e,h:e=>e%360,s:e=>e>=100?100:e<0?0:e,l:e=>e>=100?100:e<0?0:e,a:e=>e>=1?1:e<0?0:e},toLinear:e=>{const t=e/255;return e>.03928?Math.pow((t+.055)/1.055,2.4):t/12.92},hue2rgb:(e,t,r)=>(r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*6*r:r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e),hsl2rgb:({h:e,s:t,l:r},i)=>{if(!t)return r*2.55;e/=360,t/=100,r/=100;const s=r<.5?r*(1+t):r+t-r*t,o=2*r-s;switch(i){case"r":return ys.hue2rgb(o,s,e+1/3)*255;case"g":return ys.hue2rgb(o,s,e)*255;case"b":return ys.hue2rgb(o,s,e-1/3)*255}},rgb2hsl:({r:e,g:t,b:r},i)=>{e/=255,t/=255,r/=255;const s=Math.max(e,t,r),o=Math.min(e,t,r),a=(s+o)/2;if(i==="l")return a*100;if(s===o)return 0;const n=s-o,l=a>.5?n/(2-s-o):n/(s+o);if(i==="s")return l*100;switch(s){case e:return((t-r)/n+(t<r?6:0))*60;case t:return((r-e)/n+2)*60;case r:return((e-t)/n+4)*60;default:return-1}}},im={clamp:(e,t,r)=>t>r?Math.min(t,Math.max(r,e)):Math.min(r,Math.max(t,e)),round:e=>Math.round(e*1e10)/1e10},sm={dec2hex:e=>{const t=Math.round(e).toString(16);return t.length>1?t:`0${t}`}},bt={channel:ys,lang:im,unit:sm},Ze={};for(let e=0;e<=255;e++)Ze[e]=bt.unit.dec2hex(e);const Xt={ALL:0,RGB:1,HSL:2};let om=class{constructor(){this.type=Xt.ALL}get(){return this.type}set(t){if(this.type&&this.type!==t)throw new Error("Cannot change both RGB and HSL channels at the same time");this.type=t}reset(){this.type=Xt.ALL}is(t){return this.type===t}};class am{constructor(t,r){this.color=r,this.changed=!1,this.data=t,this.type=new om}set(t,r){return this.color=r,this.changed=!1,this.data=t,this.type.type=Xt.ALL,this}_ensureHSL(){const t=this.data,{h:r,s:i,l:s}=t;r===void 0&&(t.h=bt.channel.rgb2hsl(t,"h")),i===void 0&&(t.s=bt.channel.rgb2hsl(t,"s")),s===void 0&&(t.l=bt.channel.rgb2hsl(t,"l"))}_ensureRGB(){const t=this.data,{r,g:i,b:s}=t;r===void 0&&(t.r=bt.channel.hsl2rgb(t,"r")),i===void 0&&(t.g=bt.channel.hsl2rgb(t,"g")),s===void 0&&(t.b=bt.channel.hsl2rgb(t,"b"))}get r(){const t=this.data,r=t.r;return!this.type.is(Xt.HSL)&&r!==void 0?r:(this._ensureHSL(),bt.channel.hsl2rgb(t,"r"))}get g(){const t=this.data,r=t.g;return!this.type.is(Xt.HSL)&&r!==void 0?r:(this._ensureHSL(),bt.channel.hsl2rgb(t,"g"))}get b(){const t=this.data,r=t.b;return!this.type.is(Xt.HSL)&&r!==void 0?r:(this._ensureHSL(),bt.channel.hsl2rgb(t,"b"))}get h(){const t=this.data,r=t.h;return!this.type.is(Xt.RGB)&&r!==void 0?r:(this._ensureRGB(),bt.channel.rgb2hsl(t,"h"))}get s(){const t=this.data,r=t.s;return!this.type.is(Xt.RGB)&&r!==void 0?r:(this._ensureRGB(),bt.channel.rgb2hsl(t,"s"))}get l(){const t=this.data,r=t.l;return!this.type.is(Xt.RGB)&&r!==void 0?r:(this._ensureRGB(),bt.channel.rgb2hsl(t,"l"))}get a(){return this.data.a}set r(t){this.type.set(Xt.RGB),this.changed=!0,this.data.r=t}set g(t){this.type.set(Xt.RGB),this.changed=!0,this.data.g=t}set b(t){this.type.set(Xt.RGB),this.changed=!0,this.data.b=t}set h(t){this.type.set(Xt.HSL),this.changed=!0,this.data.h=t}set s(t){this.type.set(Xt.HSL),this.changed=!0,this.data.s=t}set l(t){this.type.set(Xt.HSL),this.changed=!0,this.data.l=t}set a(t){this.changed=!0,this.data.a=t}}const eo=new am({r:0,g:0,b:0,a:0},"transparent"),qr={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:e=>{if(e.charCodeAt(0)!==35)return;const t=e.match(qr.re);if(!t)return;const r=t[1],i=parseInt(r,16),s=r.length,o=s%4===0,a=s>4,n=a?1:17,l=a?8:4,c=o?0:-1,h=a?255:15;return eo.set({r:(i>>l*(c+3)&h)*n,g:(i>>l*(c+2)&h)*n,b:(i>>l*(c+1)&h)*n,a:o?(i&h)*n/255:1},e)},stringify:e=>{const{r:t,g:r,b:i,a:s}=e;return s<1?`#${Ze[Math.round(t)]}${Ze[Math.round(r)]}${Ze[Math.round(i)]}${Ze[Math.round(s*255)]}`:`#${Ze[Math.round(t)]}${Ze[Math.round(r)]}${Ze[Math.round(i)]}`}},cr={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:e=>{const t=e.match(cr.hueRe);if(t){const[,r,i]=t;switch(i){case"grad":return bt.channel.clamp.h(parseFloat(r)*.9);case"rad":return bt.channel.clamp.h(parseFloat(r)*180/Math.PI);case"turn":return bt.channel.clamp.h(parseFloat(r)*360)}}return bt.channel.clamp.h(parseFloat(e))},parse:e=>{const t=e.charCodeAt(0);if(t!==104&&t!==72)return;const r=e.match(cr.re);if(!r)return;const[,i,s,o,a,n]=r;return eo.set({h:cr._hue2deg(i),s:bt.channel.clamp.s(parseFloat(s)),l:bt.channel.clamp.l(parseFloat(o)),a:a?bt.channel.clamp.a(n?parseFloat(a)/100:parseFloat(a)):1},e)},stringify:e=>{const{h:t,s:r,l:i,a:s}=e;return s<1?`hsla(${bt.lang.round(t)}, ${bt.lang.round(r)}%, ${bt.lang.round(i)}%, ${s})`:`hsl(${bt.lang.round(t)}, ${bt.lang.round(r)}%, ${bt.lang.round(i)}%)`}},Li={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:e=>{e=e.toLowerCase();const t=Li.colors[e];if(t)return qr.parse(t)},stringify:e=>{const t=qr.stringify(e);for(const r in Li.colors)if(Li.colors[r]===t)return r}},xi={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:e=>{const t=e.charCodeAt(0);if(t!==114&&t!==82)return;const r=e.match(xi.re);if(!r)return;const[,i,s,o,a,n,l,c,h]=r;return eo.set({r:bt.channel.clamp.r(s?parseFloat(i)*2.55:parseFloat(i)),g:bt.channel.clamp.g(a?parseFloat(o)*2.55:parseFloat(o)),b:bt.channel.clamp.b(l?parseFloat(n)*2.55:parseFloat(n)),a:c?bt.channel.clamp.a(h?parseFloat(c)/100:parseFloat(c)):1},e)},stringify:e=>{const{r:t,g:r,b:i,a:s}=e;return s<1?`rgba(${bt.lang.round(t)}, ${bt.lang.round(r)}, ${bt.lang.round(i)}, ${bt.lang.round(s)})`:`rgb(${bt.lang.round(t)}, ${bt.lang.round(r)}, ${bt.lang.round(i)})`}},Fe={format:{keyword:Li,hex:qr,rgb:xi,rgba:xi,hsl:cr,hsla:cr},parse:e=>{if(typeof e!="string")return e;const t=qr.parse(e)||xi.parse(e)||cr.parse(e)||Li.parse(e);if(t)return t;throw new Error(`Unsupported color format: "${e}"`)},stringify:e=>!e.changed&&e.color?e.color:e.type.is(Xt.HSL)||e.data.r===void 0?cr.stringify(e):e.a<1||!Number.isInteger(e.r)||!Number.isInteger(e.g)||!Number.isInteger(e.b)?xi.stringify(e):qr.stringify(e)},uu=(e,t)=>{const r=Fe.parse(e);for(const i in t)r[i]=bt.channel.clamp[i](t[i]);return Fe.stringify(r)},tr=(e,t,r=0,i=1)=>{if(typeof e!="number")return uu(e,{a:t});const s=eo.set({r:bt.channel.clamp.r(e),g:bt.channel.clamp.g(t),b:bt.channel.clamp.b(r),a:bt.channel.clamp.a(i)});return Fe.stringify(s)},nm=e=>{const{r:t,g:r,b:i}=Fe.parse(e),s=.2126*bt.channel.toLinear(t)+.7152*bt.channel.toLinear(r)+.0722*bt.channel.toLinear(i);return bt.lang.round(s)},lm=e=>nm(e)>=.5,xe=e=>!lm(e),du=(e,t,r)=>{const i=Fe.parse(e),s=i[t],o=bt.channel.clamp[t](s+r);return s!==o&&(i[t]=o),Fe.stringify(i)},q=(e,t)=>du(e,"l",t),N=(e,t)=>du(e,"l",-t),b=(e,t)=>{const r=Fe.parse(e),i={};for(const s in t)t[s]&&(i[s]=r[s]+t[s]);return uu(e,i)},hm=(e,t,r=50)=>{const{r:i,g:s,b:o,a}=Fe.parse(e),{r:n,g:l,b:c,a:h}=Fe.parse(t),u=r/100,d=u*2-1,f=a-h,m=((d*f===-1?d:(d+f)/(1+d*f))+1)/2,x=1-m,C=i*m+n*x,k=s*m+l*x,S=o*m+c*x,T=a*u+h*(1-u);return tr(C,k,S,T)},F=(e,t=100)=>{const r=Fe.parse(e);return r.r=255-r.r,r.g=255-r.g,r.b=255-r.b,hm(r,e,t)};var ma=g((e,t,{depth:r=2}={})=>{const i={depth:r};if(Array.isArray(t)&&!Array.isArray(e))return t.forEach(s=>ma(e,s,i)),e;if(Array.isArray(t)&&Array.isArray(e))return t.forEach(s=>{e.includes(s)||e.push(s)}),e;if(e==null||r<=0)return e!=null&&typeof e=="object"&&typeof t=="object"?Object.assign(e,t):t;if(t!=null&&typeof e=="object"&&typeof t=="object"){const s=e;Object.entries(t).forEach(([o,a])=>{if(typeof a=="object"){if(a===null)return;Object.hasOwn(e,o)||Object.defineProperty(e,o,{value:void 0,writable:!0,enumerable:!0,configurable:!0}),s[o]===void 0&&(s[o]=Array.isArray(a)?[]:{}),typeof s[o]=="object"&&(s[o]=ma(s[o],a,{depth:r-1}))}else typeof s[o]!="object"&&(Object.hasOwn(e,o)?s[o]=a:Object.defineProperty(e,o,{value:a,writable:!0,enumerable:!0,configurable:!0}))})}return e},"assignWithDepth"),Yt=ma,Ae="#ffffff",Ee="#f2f2f2",mt=g((e,t)=>t?b(e,{s:-40,l:10}):b(e,{s:-40,l:-10}),"mkBorder"),cm=class{static{g(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||b(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||b(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||mt(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||mt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||mt(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||mt(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||F(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||F(this.tertiaryColor),this.lineColor=this.lineColor||F(this.background),this.arrowheadColor=this.arrowheadColor||F(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?N(this.secondaryColor,30):this.secondaryColor),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||N(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||F(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||q(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||N(this.mainBkg,5)||"#ffffff",this.rowEven=this.rowEven||N(this.mainBkg,10)):(this.rowOdd=this.rowOdd||q(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||q(this.mainBkg,5)),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||b(this.primaryColor,{h:30}),this.cScale4=this.cScale4||b(this.primaryColor,{h:60}),this.cScale5=this.cScale5||b(this.primaryColor,{h:90}),this.cScale6=this.cScale6||b(this.primaryColor,{h:120}),this.cScale7=this.cScale7||b(this.primaryColor,{h:150}),this.cScale8=this.cScale8||b(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||b(this.primaryColor,{h:270}),this.cScale10=this.cScale10||b(this.primaryColor,{h:300}),this.cScale11=this.cScale11||b(this.primaryColor,{h:330}),this.darkMode)for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScale"+t]=N(this["cScale"+t],75);else for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScale"+t]=N(this["cScale"+t],25);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleInv"+t]=this["cScaleInv"+t]||F(this["cScale"+t]);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this.darkMode?this["cScalePeer"+t]=this["cScalePeer"+t]||q(this["cScale"+t],10):this["cScalePeer"+t]=this["cScalePeer"+t]||N(this["cScale"+t],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleLabel"+t]=this["cScaleLabel"+t]||this.scaleLabelColor;const e=this.darkMode?-4:-1;for(let t=0;t<5;t++)this["surface"+t]=this["surface"+t]||b(this.mainBkg,{h:180,s:-15,l:e*(5+t*3)}),this["surfacePeer"+t]=this["surfacePeer"+t]||b(this.mainBkg,{h:180,s:-15,l:e*(8+t*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||b(this.primaryColor,{h:64}),this.fillType3=this.fillType3||b(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||b(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||b(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||b(this.primaryColor,{h:128}),this.fillType7=this.fillType7||b(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||b(this.primaryColor,{l:-10}),this.pie5=this.pie5||b(this.secondaryColor,{l:-10}),this.pie6=this.pie6||b(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||b(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||b(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||b(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||b(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||b(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||b(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??b(this.primaryColor,{l:-30}),this.venn2=this.venn2??b(this.secondaryColor,{l:-30}),this.venn3=this.venn3??b(this.tertiaryColor,{l:-30}),this.venn4=this.venn4??b(this.primaryColor,{h:60,l:-30}),this.venn5=this.venn5??b(this.primaryColor,{h:-60,l:-30}),this.venn6=this.venn6??b(this.secondaryColor,{h:60,l:-30}),this.venn7=this.venn7??b(this.primaryColor,{h:120,l:-30}),this.venn8=this.venn8??b(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||.5,curveStrokeWidth:this.radar?.curveStrokeWidth||2,graticuleColor:this.radar?.graticuleColor||"#DEDEDE",graticuleStrokeWidth:this.radar?.graticuleStrokeWidth||1,graticuleOpacity:this.radar?.graticuleOpacity||.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||b(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||b(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||b(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||b(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||b(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||b(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||xe(this.quadrant1Fill)?q(this.quadrant1Fill):N(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?N(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||b(this.primaryColor,{h:-30}),this.git4=this.git4||b(this.primaryColor,{h:-60}),this.git5=this.git5||b(this.primaryColor,{h:-90}),this.git6=this.git6||b(this.primaryColor,{h:60}),this.git7=this.git7||b(this.primaryColor,{h:120}),this.darkMode?(this.git0=q(this.git0,25),this.git1=q(this.git1,25),this.git2=q(this.git2,25),this.git3=q(this.git3,25),this.git4=q(this.git4,25),this.git5=q(this.git5,25),this.git6=q(this.git6,25),this.git7=q(this.git7,25)):(this.git0=N(this.git0,25),this.git1=N(this.git1,25),this.git2=N(this.git2,25),this.git3=N(this.git3,25),this.git4=N(this.git4,25),this.git5=N(this.git5,25),this.git6=N(this.git6,25),this.git7=N(this.git7,25)),this.gitInv0=this.gitInv0||F(this.git0),this.gitInv1=this.gitInv1||F(this.git1),this.gitInv2=this.gitInv2||F(this.git2),this.gitInv3=this.gitInv3||F(this.git3),this.gitInv4=this.gitInv4||F(this.git4),this.gitInv5=this.gitInv5||F(this.git5),this.gitInv6=this.gitInv6||F(this.git6),this.gitInv7=this.gitInv7||F(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||Ae,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Ee,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor}calculate(e){if(typeof e!="object"){this.updateColors();return}const t=Object.keys(e);t.forEach(r=>{this[r]=e[r]}),this.updateColors(),t.forEach(r=>{this[r]=e[r]})}},um=g(e=>{const t=new cm;return t.calculate(e),t},"getThemeVariables"),dm=class{static{g(this,"Theme")}constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=q(this.primaryColor,16),this.tertiaryColor=b(this.primaryColor,{h:-160}),this.primaryBorderColor=F(this.background),this.secondaryBorderColor=mt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=mt(this.tertiaryColor,this.darkMode),this.primaryTextColor=F(this.primaryColor),this.secondaryTextColor=F(this.secondaryColor),this.tertiaryTextColor=F(this.tertiaryColor),this.lineColor=F(this.background),this.textColor=F(this.background),this.mainBkg="#1f2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=q(F("#323D47"),10),this.lineColor="calculated",this.border1="#ccc",this.border2=tr(255,255,255,.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=N("#EAE8D9",30),this.altSectionBkgColor="calculated",this.sectionBkgColor2="#EAE8D9",this.excludeBkgColor=N(this.sectionBkgColor,10),this.taskBorderColor=tr(255,255,255,70),this.taskBkgColor="calculated",this.taskTextColor="calculated",this.taskTextLightColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor=tr(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||q(this.mainBkg,5)||"#ffffff",this.rowEven=this.rowEven||N(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=q(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=q(this.labelBackground,25),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=q(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=F(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=b(this.primaryColor,{h:64}),this.fillType3=b(this.secondaryColor,{h:64}),this.fillType4=b(this.primaryColor,{h:-64}),this.fillType5=b(this.secondaryColor,{h:-64}),this.fillType6=b(this.primaryColor,{h:128}),this.fillType7=b(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||b(this.primaryColor,{h:30}),this.cScale4=this.cScale4||b(this.primaryColor,{h:60}),this.cScale5=this.cScale5||b(this.primaryColor,{h:90}),this.cScale6=this.cScale6||b(this.primaryColor,{h:120}),this.cScale7=this.cScale7||b(this.primaryColor,{h:150}),this.cScale8=this.cScale8||b(this.primaryColor,{h:210}),this.cScale9=this.cScale9||b(this.primaryColor,{h:270}),this.cScale10=this.cScale10||b(this.primaryColor,{h:300}),this.cScale11=this.cScale11||b(this.primaryColor,{h:330});for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScaleInv"+e]=this["cScaleInv"+e]||F(this["cScale"+e]);for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScalePeer"+e]=this["cScalePeer"+e]||q(this["cScale"+e],10);for(let e=0;e<5;e++)this["surface"+e]=this["surface"+e]||b(this.mainBkg,{h:30,s:-30,l:-(-10+e*4)}),this["surfacePeer"+e]=this["surfacePeer"+e]||b(this.mainBkg,{h:30,s:-30,l:-(-7+e*4)});this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor);for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScaleLabel"+e]=this["cScaleLabel"+e]||this.scaleLabelColor;for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["pie"+e]=this["cScale"+e];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 e=0;e<8;e++)this["venn"+(e+1)]=this["venn"+(e+1)]??q(this["cScale"+e],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||b(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||b(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||b(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||b(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||b(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||b(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||xe(this.quadrant1Fill)?q(this.quadrant1Fill):N(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||.5,curveStrokeWidth:this.radar?.curveStrokeWidth||2,graticuleColor:this.radar?.graticuleColor||"#DEDEDE",graticuleStrokeWidth:this.radar?.graticuleStrokeWidth||1,graticuleOpacity:this.radar?.graticuleOpacity||.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?N(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=q(this.secondaryColor,20),this.git1=q(this.pie2||this.secondaryColor,20),this.git2=q(this.pie3||this.tertiaryColor,20),this.git3=q(this.pie4||b(this.primaryColor,{h:-30}),20),this.git4=q(this.pie5||b(this.primaryColor,{h:-60}),20),this.git5=q(this.pie6||b(this.primaryColor,{h:-90}),10),this.git6=q(this.pie7||b(this.primaryColor,{h:60}),10),this.git7=q(this.pie8||b(this.primaryColor,{h:120}),20),this.gitInv0=this.gitInv0||F(this.git0),this.gitInv1=this.gitInv1||F(this.git1),this.gitInv2=this.gitInv2||F(this.git2),this.gitInv3=this.gitInv3||F(this.git3),this.gitInv4=this.gitInv4||F(this.git4),this.gitInv5=this.gitInv5||F(this.git5),this.gitInv6=this.gitInv6||F(this.git6),this.gitInv7=this.gitInv7||F(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||F(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||F(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||q("#5a3d5c",10),this.emProcessorStroke=this.emProcessorStroke||"#8a6d8c",this.emReadModelFill=this.emReadModelFill||q("#3d5a2d",10),this.emReadModelStroke=this.emReadModelStroke||"#6d8c5c",this.emCommandFill=this.emCommandFill||q("#2d3d5a",10),this.emCommandStroke=this.emCommandStroke||"#5c6d8c",this.emEventFill=this.emEventFill||q("#5a452d",10),this.emEventStroke=this.emEventStroke||"#8c755c",this.emSwimlaneBackgroundOdd=this.emSwimlaneBackgroundOdd||q(this.background,5),this.emSwimlaneBackgroundStroke=this.emSwimlaneBackgroundStroke||q(this.background,12),this.emArrowhead=this.emArrowhead||this.lineColor,this.emRelationStroke=this.emRelationStroke||this.lineColor,this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||q(this.background,12),this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||q(this.background,2),this.nodeBorder=this.nodeBorder||"#999"}calculate(e){if(typeof e!="object"){this.updateColors();return}const t=Object.keys(e);t.forEach(r=>{this[r]=e[r]}),this.updateColors(),t.forEach(r=>{this[r]=e[r]})}},fm=g(e=>{const t=new dm;return t.calculate(e),t},"getThemeVariables"),gm=class{static{g(this,"Theme")}constructor(){this.background="#f4f4f4",this.primaryColor="#ECECFF",this.secondaryColor=b(this.primaryColor,{h:120}),this.secondaryColor="#ffffde",this.tertiaryColor=b(this.primaryColor,{h:-160}),this.primaryBorderColor=mt(this.primaryColor,this.darkMode),this.secondaryBorderColor=mt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=mt(this.tertiaryColor,this.darkMode),this.primaryTextColor=F(this.primaryColor),this.secondaryTextColor=F(this.secondaryColor),this.tertiaryTextColor=F(this.tertiaryColor),this.lineColor=F(this.background),this.textColor=F(this.background),this.background="white",this.mainBkg="#ECECFF",this.secondBkg="#ffffde",this.lineColor="#333333",this.border1="#9370DB",this.primaryBorderColor=mt(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=tr(102,102,255,.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||b(this.primaryColor,{h:30}),this.cScale4=this.cScale4||b(this.primaryColor,{h:60}),this.cScale5=this.cScale5||b(this.primaryColor,{h:90}),this.cScale6=this.cScale6||b(this.primaryColor,{h:120}),this.cScale7=this.cScale7||b(this.primaryColor,{h:150}),this.cScale8=this.cScale8||b(this.primaryColor,{h:210}),this.cScale9=this.cScale9||b(this.primaryColor,{h:270}),this.cScale10=this.cScale10||b(this.primaryColor,{h:300}),this.cScale11=this.cScale11||b(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||N(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||N(this.tertiaryColor,40);for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScale"+e]=N(this["cScale"+e],10),this["cScalePeer"+e]=this["cScalePeer"+e]||N(this["cScale"+e],25);for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScaleInv"+e]=this["cScaleInv"+e]||b(this["cScale"+e],{h:180});for(let e=0;e<5;e++)this["surface"+e]=this["surface"+e]||b(this.mainBkg,{h:30,l:-(5+e*5)}),this["surfacePeer"+e]=this["surfacePeer"+e]||b(this.mainBkg,{h:30,l:-(7+e*5)});if(this.scaleLabelColor=this.scaleLabelColor!=="calculated"&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor,this.labelTextColor!=="calculated"){this.cScaleLabel0=this.cScaleLabel0||F(this.labelTextColor),this.cScaleLabel3=this.cScaleLabel3||F(this.labelTextColor);for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScaleLabel"+e]=this["cScaleLabel"+e]||this.labelTextColor}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.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||q(this.primaryColor,75)||"#ffffff",this.rowEven=this.rowEven||q(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=b(this.primaryColor,{h:64}),this.fillType3=b(this.secondaryColor,{h:64}),this.fillType4=b(this.primaryColor,{h:-64}),this.fillType5=b(this.secondaryColor,{h:-64}),this.fillType6=b(this.primaryColor,{h:128}),this.fillType7=b(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||b(this.tertiaryColor,{l:-40}),this.pie4=this.pie4||b(this.primaryColor,{l:-10}),this.pie5=this.pie5||b(this.secondaryColor,{l:-30}),this.pie6=this.pie6||b(this.tertiaryColor,{l:-20}),this.pie7=this.pie7||b(this.primaryColor,{h:60,l:-20}),this.pie8=this.pie8||b(this.primaryColor,{h:-60,l:-40}),this.pie9=this.pie9||b(this.primaryColor,{h:120,l:-40}),this.pie10=this.pie10||b(this.primaryColor,{h:60,l:-40}),this.pie11=this.pie11||b(this.primaryColor,{h:-90,l:-40}),this.pie12=this.pie12||b(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??b(this.primaryColor,{l:-30}),this.venn2=this.venn2??b(this.secondaryColor,{l:-30}),this.venn3=this.venn3??b(this.tertiaryColor,{l:-40}),this.venn4=this.venn4??b(this.primaryColor,{h:60,l:-30}),this.venn5=this.venn5??b(this.primaryColor,{h:-60,l:-30}),this.venn6=this.venn6??b(this.secondaryColor,{h:60,l:-30}),this.venn7=this.venn7??b(this.primaryColor,{h:120,l:-30}),this.venn8=this.venn8??b(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||b(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||b(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||b(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||b(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||b(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||b(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||xe(this.quadrant1Fill)?q(this.quadrant1Fill):N(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||.5,curveStrokeWidth:this.radar?.curveStrokeWidth||2,graticuleColor:this.radar?.graticuleColor||"#DEDEDE",graticuleStrokeWidth:this.radar?.graticuleStrokeWidth||1,graticuleOpacity:this.radar?.graticuleOpacity||.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||b(this.primaryColor,{h:-30}),this.git4=this.git4||b(this.primaryColor,{h:-60}),this.git5=this.git5||b(this.primaryColor,{h:-90}),this.git6=this.git6||b(this.primaryColor,{h:60}),this.git7=this.git7||b(this.primaryColor,{h:120}),this.darkMode?(this.git0=q(this.git0,25),this.git1=q(this.git1,25),this.git2=q(this.git2,25),this.git3=q(this.git3,25),this.git4=q(this.git4,25),this.git5=q(this.git5,25),this.git6=q(this.git6,25),this.git7=q(this.git7,25)):(this.git0=N(this.git0,25),this.git1=N(this.git1,25),this.git2=N(this.git2,25),this.git3=N(this.git3,25),this.git4=N(this.git4,25),this.git5=N(this.git5,25),this.git6=N(this.git6,25),this.git7=N(this.git7,25)),this.gitInv0=this.gitInv0||N(F(this.git0),25),this.gitInv1=this.gitInv1||F(this.git1),this.gitInv2=this.gitInv2||F(this.git2),this.gitInv3=this.gitInv3||F(this.git3),this.gitInv4=this.gitInv4||F(this.git4),this.gitInv5=this.gitInv5||F(this.git5),this.gitInv6=this.gitInv6||F(this.git6),this.gitInv7=this.gitInv7||F(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||F(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||F(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||Ae,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Ee}calculate(e){if(Object.keys(this).forEach(r=>{this[r]==="calculated"&&(this[r]=void 0)}),typeof e!="object"){this.updateColors();return}const t=Object.keys(e);t.forEach(r=>{this[r]=e[r]}),this.updateColors(),t.forEach(r=>{this[r]=e[r]})}},pm=g(e=>{const t=new gm;return t.calculate(e),t},"getThemeVariables"),ym=class{static{g(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=q("#cde498",10),this.primaryBorderColor=mt(this.primaryColor,this.darkMode),this.secondaryBorderColor=mt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=mt(this.tertiaryColor,this.darkMode),this.primaryTextColor=F(this.primaryColor),this.secondaryTextColor=F(this.secondaryColor),this.tertiaryTextColor=F(this.primaryColor),this.lineColor=F(this.background),this.textColor=F(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=N(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||b(this.primaryColor,{h:30}),this.cScale4=this.cScale4||b(this.primaryColor,{h:60}),this.cScale5=this.cScale5||b(this.primaryColor,{h:90}),this.cScale6=this.cScale6||b(this.primaryColor,{h:120}),this.cScale7=this.cScale7||b(this.primaryColor,{h:150}),this.cScale8=this.cScale8||b(this.primaryColor,{h:210}),this.cScale9=this.cScale9||b(this.primaryColor,{h:270}),this.cScale10=this.cScale10||b(this.primaryColor,{h:300}),this.cScale11=this.cScale11||b(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||N(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||N(this.tertiaryColor,40);for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScale"+e]=N(this["cScale"+e],10),this["cScalePeer"+e]=this["cScalePeer"+e]||N(this["cScale"+e],25);for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScaleInv"+e]=this["cScaleInv"+e]||b(this["cScale"+e],{h:180});this.scaleLabelColor=this.scaleLabelColor!=="calculated"&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor;for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScaleLabel"+e]=this["cScaleLabel"+e]||this.scaleLabelColor;for(let e=0;e<5;e++)this["surface"+e]=this["surface"+e]||b(this.mainBkg,{h:30,s:-30,l:-(5+e*5)}),this["surfacePeer"+e]=this["surfacePeer"+e]||b(this.mainBkg,{h:30,s:-30,l:-(8+e*5)});this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,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||q(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||q(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=b(this.primaryColor,{h:64}),this.fillType3=b(this.secondaryColor,{h:64}),this.fillType4=b(this.primaryColor,{h:-64}),this.fillType5=b(this.secondaryColor,{h:-64}),this.fillType6=b(this.primaryColor,{h:128}),this.fillType7=b(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||b(this.primaryColor,{l:-30}),this.pie5=this.pie5||b(this.secondaryColor,{l:-30}),this.pie6=this.pie6||b(this.tertiaryColor,{h:40,l:-40}),this.pie7=this.pie7||b(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||b(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||b(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||b(this.primaryColor,{h:60,l:-50}),this.pie11=this.pie11||b(this.primaryColor,{h:-60,l:-50}),this.pie12=this.pie12||b(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??b(this.primaryColor,{l:-30}),this.venn2=this.venn2??b(this.secondaryColor,{l:-30}),this.venn3=this.venn3??b(this.tertiaryColor,{l:-30}),this.venn4=this.venn4??b(this.primaryColor,{h:60,l:-30}),this.venn5=this.venn5??b(this.primaryColor,{h:-60,l:-30}),this.venn6=this.venn6??b(this.secondaryColor,{h:60,l:-30}),this.venn7=this.venn7??b(this.primaryColor,{h:120,l:-30}),this.venn8=this.venn8??b(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||b(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||b(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||b(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||b(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||b(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||b(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||xe(this.quadrant1Fill)?q(this.quadrant1Fill):N(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||.5,curveStrokeWidth:this.radar?.curveStrokeWidth||2,graticuleColor:this.radar?.graticuleColor||"#DEDEDE",graticuleStrokeWidth:this.radar?.graticuleStrokeWidth||1,graticuleOpacity:this.radar?.graticuleOpacity||.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||b(this.primaryColor,{h:-30}),this.git4=this.git4||b(this.primaryColor,{h:-60}),this.git5=this.git5||b(this.primaryColor,{h:-90}),this.git6=this.git6||b(this.primaryColor,{h:60}),this.git7=this.git7||b(this.primaryColor,{h:120}),this.darkMode?(this.git0=q(this.git0,25),this.git1=q(this.git1,25),this.git2=q(this.git2,25),this.git3=q(this.git3,25),this.git4=q(this.git4,25),this.git5=q(this.git5,25),this.git6=q(this.git6,25),this.git7=q(this.git7,25)):(this.git0=N(this.git0,25),this.git1=N(this.git1,25),this.git2=N(this.git2,25),this.git3=N(this.git3,25),this.git4=N(this.git4,25),this.git5=N(this.git5,25),this.git6=N(this.git6,25),this.git7=N(this.git7,25)),this.gitInv0=this.gitInv0||F(this.git0),this.gitInv1=this.gitInv1||F(this.git1),this.gitInv2=this.gitInv2||F(this.git2),this.gitInv3=this.gitInv3||F(this.git3),this.gitInv4=this.gitInv4||F(this.git4),this.gitInv5=this.gitInv5||F(this.git5),this.gitInv6=this.gitInv6||F(this.git6),this.gitInv7=this.gitInv7||F(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||F(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||F(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||Ae,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Ee}calculate(e){if(typeof e!="object"){this.updateColors();return}const t=Object.keys(e);t.forEach(r=>{this[r]=e[r]}),this.updateColors(),t.forEach(r=>{this[r]=e[r]})}},mm=g(e=>{const t=new ym;return t.calculate(e),t},"getThemeVariables"),xm=class{static{g(this,"Theme")}constructor(){this.primaryColor="#eee",this.contrast="#707070",this.secondaryColor=q(this.contrast,55),this.background="#ffffff",this.tertiaryColor=b(this.primaryColor,{h:-160}),this.primaryBorderColor=mt(this.primaryColor,this.darkMode),this.secondaryBorderColor=mt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=mt(this.tertiaryColor,this.darkMode),this.primaryTextColor=F(this.primaryColor),this.secondaryTextColor=F(this.secondaryColor),this.tertiaryTextColor=F(this.tertiaryColor),this.lineColor=F(this.background),this.textColor=F(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||q(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=q(this.contrast,55),this.border2=this.contrast,this.actorBorder=q(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 e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScaleInv"+e]=this["cScaleInv"+e]||F(this["cScale"+e]);for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this.darkMode?this["cScalePeer"+e]=this["cScalePeer"+e]||q(this["cScale"+e],10):this["cScalePeer"+e]=this["cScalePeer"+e]||N(this["cScale"+e],10);this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor),this.cScaleLabel0=this.cScaleLabel0||this.cScale1,this.cScaleLabel2=this.cScaleLabel2||this.cScale1;for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScaleLabel"+e]=this["cScaleLabel"+e]||this.scaleLabelColor;for(let e=0;e<5;e++)this["surface"+e]=this["surface"+e]||b(this.mainBkg,{l:-(5+e*5)}),this["surfacePeer"+e]=this["surfacePeer"+e]||b(this.mainBkg,{l:-(8+e*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.sectionBkgColor=q(this.contrast,30),this.sectionBkgColor2=q(this.contrast,30),this.taskBorderColor=N(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=q(this.border1,30),this.doneTaskBkgColor=this.done,this.doneTaskBorderColor=this.lineColor,this.critBkgColor=this.critical,this.critBorderColor=N(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=b(this.primaryColor,{h:64}),this.fillType3=b(this.secondaryColor,{h:64}),this.fillType4=b(this.primaryColor,{h:-64}),this.fillType5=b(this.secondaryColor,{h:-64}),this.fillType6=b(this.primaryColor,{h:128}),this.fillType7=b(this.secondaryColor,{h:128});for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["pie"+e]=this["cScale"+e];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 e=0;e<8;e++)this["venn"+(e+1)]=this["venn"+(e+1)]??this["cScale"+e];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||b(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||b(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||b(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||b(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||b(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||b(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||xe(this.quadrant1Fill)?q(this.quadrant1Fill):N(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||.5,curveStrokeWidth:this.radar?.curveStrokeWidth||2,graticuleColor:this.radar?.graticuleColor||"#DEDEDE",graticuleStrokeWidth:this.radar?.graticuleStrokeWidth||1,graticuleOpacity:this.radar?.graticuleOpacity||.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=N(this.pie1,25)||this.primaryColor,this.git1=this.pie2||this.secondaryColor,this.git2=this.pie3||this.tertiaryColor,this.git3=this.pie4||b(this.primaryColor,{h:-30}),this.git4=this.pie5||b(this.primaryColor,{h:-60}),this.git5=this.pie6||b(this.primaryColor,{h:-90}),this.git6=this.pie7||b(this.primaryColor,{h:60}),this.git7=this.pie8||b(this.primaryColor,{h:120}),this.gitInv0=this.gitInv0||F(this.git0),this.gitInv1=this.gitInv1||F(this.git1),this.gitInv2=this.gitInv2||F(this.git2),this.gitInv3=this.gitInv3||F(this.git3),this.gitInv4=this.gitInv4||F(this.git4),this.gitInv5=this.gitInv5||F(this.git5),this.gitInv6=this.gitInv6||F(this.git6),this.gitInv7=this.gitInv7||F(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||Ae,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Ee}calculate(e){if(typeof e!="object"){this.updateColors();return}const t=Object.keys(e);t.forEach(r=>{this[r]=e[r]}),this.updateColors(),t.forEach(r=>{this[r]=e[r]})}},Cm=g(e=>{const t=new xm;return t.calculate(e),t},"getThemeVariables"),bm=class{static{g(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=mt(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||b(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||b(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||mt(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||mt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||mt(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||mt(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||F(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||F(this.tertiaryColor),this.lineColor=this.lineColor||F(this.background),this.arrowheadColor=this.arrowheadColor||F(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?N(this.secondaryColor,30):this.secondaryColor),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||N(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||F(this.lineColor),this.rectBkgColor=this.rectBkgColor||this.tertiaryColor;const e="#ECECFE",t="#E9E9F1",r=b(e,{h:180,l:5});if(this.sectionBkgColor=this.sectionBkgColor||r,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||t,this.sectionBkgColor2=this.sectionBkgColor2||e,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||e,this.activeTaskBorderColor=this.activeTaskBorderColor||e,this.activeTaskBkgColor=this.activeTaskBkgColor||q(e,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||e,this.cScale1=this.cScale1||t,this.cScale2=this.cScale2||r,this.cScale3=this.cScale3||b(e,{h:30}),this.cScale4=this.cScale4||b(e,{h:60}),this.cScale5=this.cScale5||b(e,{h:90}),this.cScale6=this.cScale6||b(e,{h:120}),this.cScale7=this.cScale7||b(e,{h:150}),this.cScale8=this.cScale8||b(e,{h:210,l:150}),this.cScale9=this.cScale9||b(e,{h:270}),this.cScale10=this.cScale10||b(e,{h:300}),this.cScale11=this.cScale11||b(e,{h:330}),this.darkMode)for(let s=0;s<this.THEME_COLOR_LIMIT;s++)this["cScale"+s]=N(this["cScale"+s],75);else for(let s=0;s<this.THEME_COLOR_LIMIT;s++)this["cScale"+s]=N(this["cScale"+s],25);for(let s=0;s<this.THEME_COLOR_LIMIT;s++)this["cScaleInv"+s]=this["cScaleInv"+s]||F(this["cScale"+s]);for(let s=0;s<this.THEME_COLOR_LIMIT;s++)this.darkMode?this["cScalePeer"+s]=this["cScalePeer"+s]||q(this["cScale"+s],10):this["cScalePeer"+s]=this["cScalePeer"+s]||N(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;const i=this.darkMode?-4:-1;for(let s=0;s<5;s++)this["surface"+s]=this["surface"+s]||b(this.mainBkg,{h:180,s:-15,l:i*(5+s*3)}),this["surfacePeer"+s]=this["surfacePeer"+s]||b(this.mainBkg,{h:180,s:-15,l:i*(8+s*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||e,this.fillType1=this.fillType1||t,this.fillType2=this.fillType2||b(e,{h:64}),this.fillType3=this.fillType3||b(t,{h:64}),this.fillType4=this.fillType4||b(e,{h:-64}),this.fillType5=this.fillType5||b(t,{h:-64}),this.fillType6=this.fillType6||b(e,{h:128}),this.fillType7=this.fillType7||b(t,{h:128}),this.pie1=this.pie1||e,this.pie2=this.pie2||t,this.pie3=this.pie3||r,this.pie4=this.pie4||b(e,{l:-10}),this.pie5=this.pie5||b(t,{l:-10}),this.pie6=this.pie6||b(r,{l:-10}),this.pie7=this.pie7||b(e,{h:60,l:-10}),this.pie8=this.pie8||b(e,{h:-60,l:-10}),this.pie9=this.pie9||b(e,{h:120,l:0}),this.pie10=this.pie10||b(e,{h:60,l:-20}),this.pie11=this.pie11||b(e,{h:-60,l:-20}),this.pie12=this.pie12||b(e,{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||e,this.quadrant2Fill=this.quadrant2Fill||b(e,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||b(e,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||b(e,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||b(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||b(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||b(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||xe(this.quadrant1Fill)?q(this.quadrant1Fill):N(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||e,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?N(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||e,this.git1=this.git1||t,this.git2=this.git2||r,this.git3=this.git3||b(e,{h:-30}),this.git4=this.git4||b(e,{h:-60}),this.git5=this.git5||b(e,{h:-90}),this.git6=this.git6||b(e,{h:60}),this.git7=this.git7||b(e,{h:120}),this.darkMode?(this.git0=q(this.git0,25),this.git1=q(this.git1,25),this.git2=q(this.git2,25),this.git3=q(this.git3,25),this.git4=q(this.git4,25),this.git5=q(this.git5,25),this.git6=q(this.git6,25),this.git7=q(this.git7,25)):(this.git0=N(this.git0,25),this.git1=N(this.git1,25),this.git2=N(this.git2,25),this.git3=N(this.git3,25),this.git4=N(this.git4,25),this.git5=N(this.git5,25),this.git6=N(this.git6,25),this.git7=N(this.git7,25)),this.gitInv0=this.gitInv0||F(this.git0),this.gitInv1=this.gitInv1||F(this.git1),this.gitInv2=this.gitInv2||F(this.git2),this.gitInv3=this.gitInv3||F(this.git3),this.gitInv4=this.gitInv4||F(this.git4),this.gitInv5=this.gitInv5||F(this.git5),this.gitInv6=this.gitInv6||F(this.git6),this.gitInv7=this.gitInv7||F(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||Ae,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Ee}calculate(e){if(typeof e!="object"){this.updateColors();return}const t=Object.keys(e);t.forEach(r=>{this[r]=e[r]}),this.updateColors(),t.forEach(r=>{this[r]=e[r]})}},km=g(e=>{const t=new bm;return t.calculate(e),t},"getThemeVariables"),wm=class{static{g(this,"Theme")}constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=q(this.primaryColor,16),this.tertiaryColor=b(this.primaryColor,{h:-160}),this.primaryBorderColor=F(this.background),this.secondaryBorderColor=mt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=mt(this.tertiaryColor,this.darkMode),this.primaryTextColor=F(this.primaryColor),this.secondaryTextColor=F(this.secondaryColor),this.tertiaryTextColor=F(this.tertiaryColor),this.mainBkg="#2a2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=q(F("#323D47"),10),this.border1="#ccc",this.border2=tr(255,255,255,.25),this.arrowheadColor=F(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||b(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||b(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||mt(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||mt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||mt(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||mt(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||F(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||F(this.tertiaryColor),this.lineColor=this.lineColor||F(this.background),this.arrowheadColor=this.arrowheadColor||F(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.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?N(this.secondaryColor,30):this.secondaryColor),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||N(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||F(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||q(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||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||b(this.primaryColor,{h:30}),this.cScale4=this.cScale4||b(this.primaryColor,{h:60}),this.cScale5=this.cScale5||b(this.primaryColor,{h:90}),this.cScale6=this.cScale6||b(this.primaryColor,{h:120}),this.cScale7=this.cScale7||b(this.primaryColor,{h:150}),this.cScale8=this.cScale8||b(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||b(this.primaryColor,{h:270}),this.cScale10=this.cScale10||b(this.primaryColor,{h:300}),this.cScale11=this.cScale11||b(this.primaryColor,{h:330}),this.darkMode)for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScale"+t]=N(this["cScale"+t],75);else for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScale"+t]=N(this["cScale"+t],25);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleInv"+t]=this["cScaleInv"+t]||F(this["cScale"+t]);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this.darkMode?this["cScalePeer"+t]=this["cScalePeer"+t]||q(this["cScale"+t],10):this["cScalePeer"+t]=this["cScalePeer"+t]||N(this["cScale"+t],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleLabel"+t]=this["cScaleLabel"+t]||this.scaleLabelColor;const e=this.darkMode?-4:-1;for(let t=0;t<5;t++)this["surface"+t]=this["surface"+t]||b(this.mainBkg,{h:180,s:-15,l:e*(5+t*3)}),this["surfacePeer"+t]=this["surfacePeer"+t]||b(this.mainBkg,{h:180,s:-15,l:e*(8+t*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||b(this.primaryColor,{h:64}),this.fillType3=this.fillType3||b(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||b(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||b(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||b(this.primaryColor,{h:128}),this.fillType7=this.fillType7||b(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||b(this.primaryColor,{l:-10}),this.pie5=this.pie5||b(this.secondaryColor,{l:-10}),this.pie6=this.pie6||b(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||b(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||b(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||b(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||b(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||b(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||b(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||b(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||b(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||b(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||b(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||b(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||b(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||xe(this.quadrant1Fill)?q(this.quadrant1Fill):N(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?N(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=q(this.git0,25),this.git1=q(this.git1,25),this.git2=q(this.git2,25),this.git3=q(this.git3,25),this.git4=q(this.git4,25),this.git5=q(this.git5,25),this.git6=q(this.git6,25),this.git7=q(this.git7,25)):(this.git0=N(this.git0,25),this.git1=N(this.git1,25),this.git2=N(this.git2,25),this.git3=N(this.git3,25),this.git4=N(this.git4,25),this.git5=N(this.git5,25),this.git6=N(this.git6,25),this.git7=N(this.git7,25)),this.gitInv0=this.gitInv0||F(this.git0),this.gitInv1=this.gitInv1||F(this.git1),this.gitInv2=this.gitInv2||F(this.git2),this.gitInv3=this.gitInv3||F(this.git3),this.gitInv4=this.gitInv4||F(this.git4),this.gitInv5=this.gitInv5||F(this.git5),this.gitInv6=this.gitInv6||F(this.git6),this.gitInv7=this.gitInv7||F(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||Ae,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Ee}calculate(e){if(typeof e!="object"){this.updateColors();return}const t=Object.keys(e);t.forEach(r=>{this[r]=e[r]}),this.updateColors(),t.forEach(r=>{this[r]=e[r]})}},Sm=g(e=>{const t=new wm;return t.calculate(e),t},"getThemeVariables"),Tm=class{static{g(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=mt("#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||b(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||b(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||mt(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||mt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||mt(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||mt(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#FEF9C3",this.noteTextColor=this.noteTextColor||"#28253D",this.secondaryTextColor=this.secondaryTextColor||F(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||F(this.tertiaryColor),this.lineColor=this.lineColor||F(this.background),this.arrowheadColor=this.arrowheadColor||F(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?N(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,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||N(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||F(this.lineColor),this.rectBkgColor=this.rectBkgColor||this.tertiaryColor;const e="#ECECFE",t="#E9E9F1",r=b(e,{h:180,l:5});this.sectionBkgColor=this.sectionBkgColor||r,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||t,this.sectionBkgColor2=this.sectionBkgColor2||e,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||e,this.activeTaskBorderColor=this.activeTaskBorderColor||e,this.activeTaskBkgColor=this.activeTaskBkgColor||q(e,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]=N(this["cScale"+s],75);else for(let s=0;s<this.THEME_COLOR_LIMIT;s++)this["cScale"+s]=N(this["cScale"+s],25);for(let s=0;s<this.THEME_COLOR_LIMIT;s++)this["cScaleInv"+s]=this["cScaleInv"+s]||F(this["cScale"+s]);for(let s=0;s<this.THEME_COLOR_LIMIT;s++)this.darkMode?this["cScalePeer"+s]=this["cScalePeer"+s]||q(this["cScale"+s],10):this["cScalePeer"+s]=this["cScalePeer"+s]||N(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;const i=this.darkMode?-4:-1;for(let s=0;s<5;s++)this["surface"+s]=this["surface"+s]||b(this.mainBkg,{h:180,s:-15,l:i*(5+s*3)}),this["surfacePeer"+s]=this["surfacePeer"+s]||b(this.mainBkg,{h:180,s:-15,l:i*(8+s*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||e,this.fillType1=this.fillType1||t,this.fillType2=this.fillType2||b(e,{h:64}),this.fillType3=this.fillType3||b(t,{h:64}),this.fillType4=this.fillType4||b(e,{h:-64}),this.fillType5=this.fillType5||b(t,{h:-64}),this.fillType6=this.fillType6||b(e,{h:128}),this.fillType7=this.fillType7||b(t,{h:128}),this.pie1=this.pie1||e,this.pie2=this.pie2||t,this.pie3=this.pie3||r,this.pie4=this.pie4||b(e,{l:-10}),this.pie5=this.pie5||b(t,{l:-10}),this.pie6=this.pie6||b(r,{l:-10}),this.pie7=this.pie7||b(e,{h:60,l:-10}),this.pie8=this.pie8||b(e,{h:-60,l:-10}),this.pie9=this.pie9||b(e,{h:120,l:0}),this.pie10=this.pie10||b(e,{h:60,l:-20}),this.pie11=this.pie11||b(e,{h:-60,l:-20}),this.pie12=this.pie12||b(e,{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||e,this.quadrant2Fill=this.quadrant2Fill||b(e,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||b(e,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||b(e,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||b(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||b(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||b(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||xe(this.quadrant1Fill)?q(this.quadrant1Fill):N(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||e,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?N(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.requirementEdgeLabelBackground="#FFFFFF",this.git0=this.git0||e,this.git1=this.git1||t,this.git2=this.git2||r,this.git3=this.git3||b(e,{h:-30}),this.git4=this.git4||b(e,{h:-60}),this.git5=this.git5||b(e,{h:-90}),this.git6=this.git6||b(e,{h:60}),this.git7=this.git7||b(e,{h:120}),this.darkMode?(this.git0=q(this.git0,25),this.git1=q(this.git1,25),this.git2=q(this.git2,25),this.git3=q(this.git3,25),this.git4=q(this.git4,25),this.git5=q(this.git5,25),this.git6=q(this.git6,25),this.git7=q(this.git7,25)):(this.git0=N(this.git0,25),this.git1=N(this.git1,25),this.git2=N(this.git2,25),this.git3=N(this.git3,25),this.git4=N(this.git4,25),this.git5=N(this.git5,25),this.git6=N(this.git6,25),this.git7=N(this.git7,25)),this.gitInv0=this.gitInv0||F(this.git0),this.gitInv1=this.gitInv1||F(this.git1),this.gitInv2=this.gitInv2||F(this.git2),this.gitInv3=this.gitInv3||F(this.git3),this.gitInv4=this.gitInv4||F(this.git4),this.gitInv5=this.gitInv5||F(this.git5),this.gitInv6=this.gitInv6||F(this.git6),this.gitInv7=this.gitInv7||F(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||Ae,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Ee}calculate(e){if(typeof e!="object"){this.updateColors();return}const t=Object.keys(e);t.forEach(r=>{this[r]=e[r]}),this.updateColors(),t.forEach(r=>{this[r]=e[r]})}},_m=g(e=>{const t=new Tm;return t.calculate(e),t},"getThemeVariables"),Bm=class{static{g(this,"Theme")}constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=q(this.primaryColor,16),this.tertiaryColor=b(this.primaryColor,{h:-160}),this.primaryBorderColor=F(this.background),this.secondaryBorderColor=mt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=mt(this.tertiaryColor,this.darkMode),this.primaryTextColor=F(this.primaryColor),this.secondaryTextColor=F(this.secondaryColor),this.tertiaryTextColor=F(this.tertiaryColor),this.mainBkg="#111113",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=q(F("#323D47"),10),this.border1="#ccc",this.border2=tr(255,255,255,.25),this.arrowheadColor=F(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||b(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||b(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||mt(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||mt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||mt(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||mt(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#FFFFFF",this.secondaryTextColor=this.secondaryTextColor||F(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||F(this.tertiaryColor),this.lineColor=this.lineColor||F(this.background),this.arrowheadColor=this.arrowheadColor||F(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.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?N(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,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||N(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||F(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||q(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.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||b(this.primaryColor,{h:30}),this.cScale4=this.cScale4||b(this.primaryColor,{h:60}),this.cScale5=this.cScale5||b(this.primaryColor,{h:90}),this.cScale6=this.cScale6||b(this.primaryColor,{h:120}),this.cScale7=this.cScale7||b(this.primaryColor,{h:150}),this.cScale8=this.cScale8||b(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||b(this.primaryColor,{h:270}),this.cScale10=this.cScale10||b(this.primaryColor,{h:300}),this.cScale11=this.cScale11||b(this.primaryColor,{h:330}),this.darkMode)for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScale"+t]=N(this["cScale"+t],75);else for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScale"+t]=N(this["cScale"+t],25);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleInv"+t]=this["cScaleInv"+t]||F(this["cScale"+t]);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this.darkMode?this["cScalePeer"+t]=this["cScalePeer"+t]||q(this["cScale"+t],10):this["cScalePeer"+t]=this["cScalePeer"+t]||N(this["cScale"+t],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleLabel"+t]=this["cScaleLabel"+t]||this.scaleLabelColor;const e=this.darkMode?-4:-1;for(let t=0;t<5;t++)this["surface"+t]=this["surface"+t]||b(this.mainBkg,{h:180,s:-15,l:e*(5+t*3)}),this["surfacePeer"+t]=this["surfacePeer"+t]||b(this.mainBkg,{h:180,s:-15,l:e*(8+t*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||b(this.primaryColor,{h:64}),this.fillType3=this.fillType3||b(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||b(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||b(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||b(this.primaryColor,{h:128}),this.fillType7=this.fillType7||b(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||b(this.primaryColor,{l:-10}),this.pie5=this.pie5||b(this.secondaryColor,{l:-10}),this.pie6=this.pie6||b(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||b(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||b(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||b(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||b(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||b(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||b(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||b(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||b(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||b(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||b(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||b(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||b(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||xe(this.quadrant1Fill)?q(this.quadrant1Fill):N(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?N(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||b(this.primaryColor,{h:-30}),this.git4=this.git4||b(this.primaryColor,{h:-60}),this.git5=this.git5||b(this.primaryColor,{h:-90}),this.git6=this.git6||b(this.primaryColor,{h:60}),this.git7=this.git7||b(this.primaryColor,{h:120}),this.darkMode?(this.git0=q(this.git0,25),this.git1=q(this.git1,25),this.git2=q(this.git2,25),this.git3=q(this.git3,25),this.git4=q(this.git4,25),this.git5=q(this.git5,25),this.git6=q(this.git6,25),this.git7=q(this.git7,25)):(this.git0=N(this.git0,25),this.git1=N(this.git1,25),this.git2=N(this.git2,25),this.git3=N(this.git3,25),this.git4=N(this.git4,25),this.git5=N(this.git5,25),this.git6=N(this.git6,25),this.git7=N(this.git7,25)),this.gitInv0=this.gitInv0||F(this.git0),this.gitInv1=this.gitInv1||F(this.git1),this.gitInv2=this.gitInv2||F(this.git2),this.gitInv3=this.gitInv3||F(this.git3),this.gitInv4=this.gitInv4||F(this.git4),this.gitInv5=this.gitInv5||F(this.git5),this.gitInv6=this.gitInv6||F(this.git6),this.gitInv7=this.gitInv7||F(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||Ae,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Ee}calculate(e){if(typeof e!="object"){this.updateColors();return}const t=Object.keys(e);t.forEach(r=>{this[r]=e[r]}),this.updateColors(),t.forEach(r=>{this[r]=e[r]})}},vm=g(e=>{const t=new Bm;return t.calculate(e),t},"getThemeVariables"),Lm=class{static{g(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=mt(this.primaryColor,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.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.filterColor="#000000"}updateColors(){this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#28253D"),this.secondaryColor=this.secondaryColor||b(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||b(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||mt(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||mt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||mt(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||mt(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#28253D",this.secondaryTextColor=this.secondaryTextColor||F(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||F(this.tertiaryColor),this.lineColor=this.lineColor||F(this.background),this.arrowheadColor=this.arrowheadColor||F(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?N(this.secondaryColor,30):this.secondaryColor),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||N(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||F(this.lineColor),this.rectBkgColor=this.rectBkgColor||this.tertiaryColor;const e="#ECECFE",t="#E9E9F1",r=b(e,{h:180,l:5});this.sectionBkgColor=this.sectionBkgColor||r,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||t,this.sectionBkgColor2=this.sectionBkgColor2||e,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||e,this.activeTaskBorderColor=this.activeTaskBorderColor||e,this.activeTaskBkgColor=this.activeTaskBkgColor||q(e,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.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||"#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";for(let s=0;s<this.THEME_COLOR_LIMIT;s++)this["cScaleInv"+s]=this["cScaleInv"+s]||F(this["cScale"+s]);for(let s=0;s<this.THEME_COLOR_LIMIT;s++)this.darkMode?this["cScalePeer"+s]=this["cScalePeer"+s]||q(this["cScale"+s],10):this["cScalePeer"+s]=this["cScalePeer"+s]||N(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;const i=this.darkMode?-4:-1;for(let s=0;s<5;s++)this["surface"+s]=this["surface"+s]||b(this.mainBkg,{h:180,s:-15,l:i*(5+s*3)}),this["surfacePeer"+s]=this["surfacePeer"+s]||b(this.mainBkg,{h:180,s:-15,l:i*(8+s*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||e,this.fillType1=this.fillType1||t,this.fillType2=this.fillType2||b(e,{h:64}),this.fillType3=this.fillType3||b(t,{h:64}),this.fillType4=this.fillType4||b(e,{h:-64}),this.fillType5=this.fillType5||b(t,{h:-64}),this.fillType6=this.fillType6||b(e,{h:128}),this.fillType7=this.fillType7||b(t,{h:128}),this.pie1=this.pie1||e,this.pie2=this.pie2||t,this.pie3=this.pie3||r,this.pie4=this.pie4||b(e,{l:-10}),this.pie5=this.pie5||b(t,{l:-10}),this.pie6=this.pie6||b(r,{l:-10}),this.pie7=this.pie7||b(e,{h:60,l:-10}),this.pie8=this.pie8||b(e,{h:-60,l:-10}),this.pie9=this.pie9||b(e,{h:120,l:0}),this.pie10=this.pie10||b(e,{h:60,l:-20}),this.pie11=this.pie11||b(e,{h:-60,l:-20}),this.pie12=this.pie12||b(e,{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||e,this.quadrant2Fill=this.quadrant2Fill||b(e,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||b(e,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||b(e,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||b(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||b(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||b(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||xe(this.quadrant1Fill)?q(this.quadrant1Fill):N(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||e,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?N(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||e,this.git1=this.git1||t,this.git2=this.git2||r,this.git3=this.git3||b(e,{h:-30}),this.git4=this.git4||b(e,{h:-60}),this.git5=this.git5||b(e,{h:-90}),this.git6=this.git6||b(e,{h:60}),this.git7=this.git7||b(e,{h:120}),this.darkMode?(this.git0=q(this.git0,25),this.git1=q(this.git1,25),this.git2=q(this.git2,25),this.git3=q(this.git3,25),this.git4=q(this.git4,25),this.git5=q(this.git5,25),this.git6=q(this.git6,25),this.git7=q(this.git7,25)):(this.git0=N(this.git0,25),this.git1=N(this.git1,25),this.git2=N(this.git2,25),this.git3=N(this.git3,25),this.git4=N(this.git4,25),this.git5=N(this.git5,25),this.git6=N(this.git6,25),this.git7=N(this.git7,25)),this.gitInv0=this.gitInv0||F(this.git0),this.gitInv1=this.gitInv1||F(this.git1),this.gitInv2=this.gitInv2||F(this.git2),this.gitInv3=this.gitInv3||F(this.git3),this.gitInv4=this.gitInv4||F(this.git4),this.gitInv5=this.gitInv5||F(this.git5),this.gitInv6=this.gitInv6||F(this.git6),this.gitInv7=this.gitInv7||F(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||Ae,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Ee}calculate(e){if(typeof e!="object"){this.updateColors();return}const t=Object.keys(e);t.forEach(r=>{this[r]=e[r]}),this.updateColors(),t.forEach(r=>{this[r]=e[r]})}},Fm=g(e=>{const t=new Lm;return t.calculate(e),t},"getThemeVariables"),Mm=class{static{g(this,"Theme")}constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=q(this.primaryColor,16),this.tertiaryColor=b(this.primaryColor,{h:-160}),this.primaryBorderColor=F(this.background),this.secondaryBorderColor=mt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=mt(this.tertiaryColor,this.darkMode),this.primaryTextColor=F(this.primaryColor),this.secondaryTextColor=F(this.secondaryColor),this.tertiaryTextColor=F(this.tertiaryColor),this.mainBkg="#111113",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=q(F("#323D47"),10),this.border1="#ccc",this.border2=tr(255,255,255,.25),this.arrowheadColor=F(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.filterColor="#FFFFFF"}updateColors(){this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#FFFFFF"),this.secondaryColor=this.secondaryColor||b(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||b(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||mt(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||mt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||mt(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||mt(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#FFFFFF",this.secondaryTextColor=this.secondaryTextColor||F(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||F(this.tertiaryColor),this.lineColor=this.lineColor||F(this.background),this.arrowheadColor=this.arrowheadColor||F(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.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?N(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,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||N(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||F(this.lineColor),this.rectBkgColor=this.rectBkgColor||this.tertiaryColor,this.rootLabelColor="#FFFFFF",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||q(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.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.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||"#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";for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleInv"+t]=this["cScaleInv"+t]||F(this["cScale"+t]);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this.darkMode?this["cScalePeer"+t]=this["cScalePeer"+t]||q(this["cScale"+t],10):this["cScalePeer"+t]=this["cScalePeer"+t]||N(this["cScale"+t],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleLabel"+t]=N(this["cScale"+t],75);const e=this.darkMode?-4:-1;for(let t=0;t<5;t++)this["surface"+t]=this["surface"+t]||b(this.mainBkg,{h:180,s:-15,l:e*(5+t*3)}),this["surfacePeer"+t]=this["surfacePeer"+t]||b(this.mainBkg,{h:180,s:-15,l:e*(8+t*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||b(this.primaryColor,{h:64}),this.fillType3=this.fillType3||b(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||b(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||b(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||b(this.primaryColor,{h:128}),this.fillType7=this.fillType7||b(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||b(this.primaryColor,{l:-10}),this.pie5=this.pie5||b(this.secondaryColor,{l:-10}),this.pie6=this.pie6||b(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||b(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||b(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||b(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||b(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||b(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||b(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||b(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||b(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||b(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||b(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||b(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||b(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||xe(this.quadrant1Fill)?q(this.quadrant1Fill):N(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?N(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||b(this.primaryColor,{h:-30}),this.git4=this.git4||b(this.primaryColor,{h:-60}),this.git5=this.git5||b(this.primaryColor,{h:-90}),this.git6=this.git6||b(this.primaryColor,{h:60}),this.git7=this.git7||b(this.primaryColor,{h:120}),this.darkMode?(this.git0=q(this.git0,25),this.git1=q(this.git1,25),this.git2=q(this.git2,25),this.git3=q(this.git3,25),this.git4=q(this.git4,25),this.git5=q(this.git5,25),this.git6=q(this.git6,25),this.git7=q(this.git7,25)):(this.git0=N(this.git0,25),this.git1=N(this.git1,25),this.git2=N(this.git2,25),this.git3=N(this.git3,25),this.git4=N(this.git4,25),this.git5=N(this.git5,25),this.git6=N(this.git6,25),this.git7=N(this.git7,25)),this.gitInv0=this.gitInv0||F(this.git0),this.gitInv1=this.gitInv1||F(this.git1),this.gitInv2=this.gitInv2||F(this.git2),this.gitInv3=this.gitInv3||F(this.git3),this.gitInv4=this.gitInv4||F(this.git4),this.gitInv5=this.gitInv5||F(this.git5),this.gitInv6=this.gitInv6||F(this.git6),this.gitInv7=this.gitInv7||F(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||Ae,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Ee}calculate(e){if(typeof e!="object"){this.updateColors();return}const t=Object.keys(e);t.forEach(r=>{this[r]=e[r]}),this.updateColors(),t.forEach(r=>{this[r]=e[r]})}},Am=g(e=>{const t=new Mm;return t.calculate(e),t},"getThemeVariables"),We={base:{getThemeVariables:um},dark:{getThemeVariables:fm},default:{getThemeVariables:pm},forest:{getThemeVariables:mm},neutral:{getThemeVariables:Cm},neo:{getThemeVariables:km},"neo-dark":{getThemeVariables:Sm},redux:{getThemeVariables:_m},"redux-dark":{getThemeVariables:vm},"redux-color":{getThemeVariables:Fm},"redux-dark-color":{getThemeVariables:Am}},jt={flowchart:{useMaxWidth:!0,titleTopMargin:25,subGraphTitleMargin:{top:0,bottom:0},diagramPadding:8,htmlLabels:null,nodeSpacing:50,rankSpacing:50,curve:"basis",padding:15,defaultRenderer:"dagre-wrapper",wrappingWidth:200,inheritDir:!1},swimlane:{useMaxWidth:!0,lineHops:"arc",ignoreCrossLaneEdges:!0,optimizeRanksByCrossings:!0,automaticLaneOrdering:!1},sequence:{useMaxWidth:!0,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,titleTopMargin:25,arrowMarkerAbsolute:!1,dividerMargin:10,padding:5,textHeight:10,defaultRenderer:"dagre-wrapper",htmlLabels:!1,hideEmptyMembersBox:!1,hierarchicalNamespaces:!0},state:{useMaxWidth:!0,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,defaultRenderer:"dagre-wrapper"},er:{useMaxWidth:!0,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:.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,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,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,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:.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:.17},venn:{useMaxWidth:!0,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:"dagre",maxTextSize:5e4,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},fu={...jt,deterministicIDSeed:void 0,elk:{mergeEdges:!1,nodePlacementStrategy:"BRANDES_KOEPF",nodePlacementAlignment:"NONE",forceNodeModelOrder:!1,considerModelOrder:"NODES_AND_EDGES",keepEntryNodeOnTop:!1},themeCSS:void 0,themeVariables:We.default.getThemeVariables(),sequence:{...jt.sequence,messageFont:g(function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},"messageFont"),noteFont:g(function(){return{fontFamily:this.noteFontFamily,fontSize:this.noteFontSize,fontWeight:this.noteFontWeight}},"noteFont"),actorFont:g(function(){return{fontFamily:this.actorFontFamily,fontSize:this.actorFontSize,fontWeight:this.actorFontWeight}},"actorFont")},class:{defaultRenderer:"dagre-wrapper",hideEmptyMembersBox:!1,hierarchicalNamespaces:!0},gantt:{...jt.gantt,tickInterval:void 0,useWidth:void 0},c4:{...jt.c4,useWidth:void 0,personFont:g(function(){return{fontFamily:this.personFontFamily,fontSize:this.personFontSize,fontWeight:this.personFontWeight}},"personFont"),flowchart:{...jt.flowchart,inheritDir:!1},external_personFont:g(function(){return{fontFamily:this.external_personFontFamily,fontSize:this.external_personFontSize,fontWeight:this.external_personFontWeight}},"external_personFont"),systemFont:g(function(){return{fontFamily:this.systemFontFamily,fontSize:this.systemFontSize,fontWeight:this.systemFontWeight}},"systemFont"),external_systemFont:g(function(){return{fontFamily:this.external_systemFontFamily,fontSize:this.external_systemFontSize,fontWeight:this.external_systemFontWeight}},"external_systemFont"),system_dbFont:g(function(){return{fontFamily:this.system_dbFontFamily,fontSize:this.system_dbFontSize,fontWeight:this.system_dbFontWeight}},"system_dbFont"),external_system_dbFont:g(function(){return{fontFamily:this.external_system_dbFontFamily,fontSize:this.external_system_dbFontSize,fontWeight:this.external_system_dbFontWeight}},"external_system_dbFont"),system_queueFont:g(function(){return{fontFamily:this.system_queueFontFamily,fontSize:this.system_queueFontSize,fontWeight:this.system_queueFontWeight}},"system_queueFont"),external_system_queueFont:g(function(){return{fontFamily:this.external_system_queueFontFamily,fontSize:this.external_system_queueFontSize,fontWeight:this.external_system_queueFontWeight}},"external_system_queueFont"),containerFont:g(function(){return{fontFamily:this.containerFontFamily,fontSize:this.containerFontSize,fontWeight:this.containerFontWeight}},"containerFont"),external_containerFont:g(function(){return{fontFamily:this.external_containerFontFamily,fontSize:this.external_containerFontSize,fontWeight:this.external_containerFontWeight}},"external_containerFont"),container_dbFont:g(function(){return{fontFamily:this.container_dbFontFamily,fontSize:this.container_dbFontSize,fontWeight:this.container_dbFontWeight}},"container_dbFont"),external_container_dbFont:g(function(){return{fontFamily:this.external_container_dbFontFamily,fontSize:this.external_container_dbFontSize,fontWeight:this.external_container_dbFontWeight}},"external_container_dbFont"),container_queueFont:g(function(){return{fontFamily:this.container_queueFontFamily,fontSize:this.container_queueFontSize,fontWeight:this.container_queueFontWeight}},"container_queueFont"),external_container_queueFont:g(function(){return{fontFamily:this.external_container_queueFontFamily,fontSize:this.external_container_queueFontSize,fontWeight:this.external_container_queueFontWeight}},"external_container_queueFont"),componentFont:g(function(){return{fontFamily:this.componentFontFamily,fontSize:this.componentFontSize,fontWeight:this.componentFontWeight}},"componentFont"),external_componentFont:g(function(){return{fontFamily:this.external_componentFontFamily,fontSize:this.external_componentFontSize,fontWeight:this.external_componentFontWeight}},"external_componentFont"),component_dbFont:g(function(){return{fontFamily:this.component_dbFontFamily,fontSize:this.component_dbFontSize,fontWeight:this.component_dbFontWeight}},"component_dbFont"),external_component_dbFont:g(function(){return{fontFamily:this.external_component_dbFontFamily,fontSize:this.external_component_dbFontSize,fontWeight:this.external_component_dbFontWeight}},"external_component_dbFont"),component_queueFont:g(function(){return{fontFamily:this.component_queueFontFamily,fontSize:this.component_queueFontSize,fontWeight:this.component_queueFontWeight}},"component_queueFont"),external_component_queueFont:g(function(){return{fontFamily:this.external_component_queueFontFamily,fontSize:this.external_component_queueFontSize,fontWeight:this.external_component_queueFontWeight}},"external_component_queueFont"),boundaryFont:g(function(){return{fontFamily:this.boundaryFontFamily,fontSize:this.boundaryFontSize,fontWeight:this.boundaryFontWeight}},"boundaryFont"),messageFont:g(function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},"messageFont")},pie:{...jt.pie,useWidth:984},xyChart:{...jt.xyChart,useWidth:void 0},requirement:{...jt.requirement,useWidth:void 0},packet:{...jt.packet},eventmodeling:{...jt.eventmodeling},treeView:{...jt.treeView,useWidth:void 0},radar:{...jt.radar},railroad:{...jt.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:{...jt.ishikawa},sankey:{...jt.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:{...jt.venn},cynefin:{...jt.cynefin}},gu=g((e,t="")=>Object.keys(e).reduce((r,i)=>Array.isArray(e[i])?r:typeof e[i]=="object"&&e[i]!==null?[...r,t+i,...gu(e[i],"")]:[...r,t+i],[]),"keyify"),Em=new Set(gu(fu,"")),pu=fu,$m={nodeColors:/^#[\da-f]{3,8}$|^rgb\([\d\s%,.]+\)$|^hsl\([\d\s%,.]+\)$|^[a-z]+$/i,filenameIcons:/^[\w-]+(?::[\w-]+)?$/,extensionIcons:/^[\w-]+(?::[\w-]+)?$/},Om=g((e,t)=>{for(const r of Object.keys(e)){const i=e[r];(r.startsWith("__")||r.includes("proto")||r.includes("constr")||typeof i!="string"||!t.test(i))&&(P.debug("sanitize deleting dictionary entry:",r,i),delete e[r])}},"sanitizeDictionaryConfig"),Ls=g(e=>{if(P.debug("sanitizeDirective called with",e),!(typeof e!="object"||e==null)){if(Array.isArray(e)){e.forEach(t=>Ls(t));return}for(const t of Object.keys(e)){if(P.debug("Checking key",t),t.startsWith("__")||t.includes("proto")||t.includes("constr")||!Em.has(t)||e[t]==null){P.debug("sanitize deleting key: ",t),delete e[t];continue}if(typeof e[t]=="object"){const i=$m[t];i?Om(e[t],i):(P.debug("sanitizing object",t),Ls(e[t]));continue}const r=["themeCSS","fontFamily","altFontFamily"];for(const i of r)t.includes(i)&&(P.debug("sanitizing css option",t),e[t]=yu(e[t]))}if(e.themeVariables)for(const t of Object.keys(e.themeVariables)){const r=e.themeVariables[t];r?.match&&!r.match(/^[\d "#%(),.;A-Za-z]+$/)&&(e.themeVariables[t]="")}P.debug("After sanitization",e)}},"sanitizeDirective"),yu=g(e=>{let t=0,r=0;for(const i of e){if(t<r)return"{ /* ERROR: Unbalanced CSS */ }";i==="{"?t++:i==="}"&&r++}return t!==r?"{ /* ERROR: Unbalanced CSS */ }":e},"sanitizeCss"),Yr=Object.freeze(pu),$e=g(e=>!(e===!1||["false","null","0"].includes(String(e).trim().toLowerCase())),"evaluate"),re=Yt({},Yr),Fs,gr=[],Fi=Yt({},Yr),Ui=g((e,t)=>{let r=Yt({},e),i={};for(const s of t)Cu(s),i=Yt(i,s);if(r=Yt(r,i),i.theme&&i.theme in We){const s=Yt({},Fs),o=Yt(s.themeVariables||{},i.themeVariables);r.theme&&r.theme in We&&(r.themeVariables=We[r.theme].getThemeVariables(o))}return Fi=r,Nm(Fi),Fi},"updateCurrentConfig"),Dm=g(e=>(re=Yt({},Yr),re=Yt(re,e),e.theme&&We[e.theme]&&(re.themeVariables=We[e.theme].getThemeVariables(e.themeVariables)),Ui(re,gr),re),"setSiteConfig"),Pm=g(e=>{Fs=Yt({},e)},"saveConfigFromInitialize"),Im=g(e=>(re=Yt(re,e),Ui(re,gr),re),"updateSiteConfig"),mu=g(()=>Yt({},re),"getSiteConfig"),xu=g(e=>(Ui(Fi,[e]),Rt()),"setConfig"),Rt=g(()=>Yt({},Fi),"getConfig"),Cu=g(e=>{e&&(["secure",...re.secure??[]].forEach(t=>{Object.hasOwn(e,t)&&(P.debug(`Denied attempt to modify a secure key ${t}`,e[t]),delete e[t])}),Object.keys(e).forEach(t=>{t.startsWith("__")&&delete e[t]}),Object.keys(e).forEach(t=>{typeof e[t]=="string"&&(e[t].includes("<")||e[t].includes(">")||e[t].includes("url(data:"))&&delete e[t],typeof e[t]=="object"&&Cu(e[t])}))},"sanitize"),Rm=g(e=>{Ls(e),e.fontFamily&&!e.themeVariables?.fontFamily&&(e.themeVariables={...e.themeVariables,fontFamily:e.fontFamily}),gr.push(e),Ui(re,gr)},"addDirective"),Ms=g((e=re)=>{gr=[],Ui(e,gr)},"reset"),qm={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."},Pl={},bu=g(e=>{Pl[e]||(P.warn(qm[e]),Pl[e]=!0)},"issueWarning"),Nm=g(e=>{e&&(e.lazyLoadedDiagrams||e.loadExternalDiagramsAtStartup)&&bu("LAZY_LOAD_DEPRECATED")},"checkConfig"),O5=g(()=>{let e={};Fs&&(e=Yt(e,Fs));for(const t of gr)e=Yt(e,t);return e},"getUserDefinedConfig"),Kt=g(e=>(e.flowchart?.htmlLabels!=null&&bu("FLOWCHART_HTML_LABELS_DEPRECATED"),$e(e.htmlLabels??e.flowchart?.htmlLabels??!0)),"getEffectiveHtmlLabels"),ku=/^([^\S\n\r]*)-{3}\s*[\n\r](.*?)[\n\r]\1-{3}\s*[\n\r]+/s,Mi=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,Wm=/\s*%%.*\n/gm,wu=class extends Error{static{g(this,"UnknownDiagramError")}constructor(e){super(e),this.name="UnknownDiagramError"}},pr={},ln=g(function(e,t){e=e.replace(ku,"").replace(Mi,"").replace(Wm,`
2
+ `);for(const[r,{detector:i}]of Object.entries(pr))if(i(e,t))return r;throw new wu(`No diagram type detected matching given configuration for text: ${e}`)},"detectType"),xa=g((...e)=>{for(const{id:t,detector:r,loader:i}of e)Su(t,r,i)},"registerLazyLoadedDiagrams"),Su=g((e,t,r)=>{pr[e]&&P.warn(`Detector with key ${e} already exists. Overwriting.`),pr[e]={detector:t,loader:r},P.debug(`Detector with key ${e} added${r?" with loader":""}`)},"addDetector"),zm=g(e=>pr[e].loader,"getDiagramLoader"),Gi=/<br\s*\/?>/gi,Hm=g(e=>e?Bu(e).replace(/\\n/g,"#br#").split("#br#"):[""],"getRows"),Ym=(()=>{let e=!1;return()=>{e||(Tu(),e=!0)}})();function Tu(){const e="data-temp-href-target";Hr.addHook("beforeSanitizeAttributes",t=>{t.tagName==="A"&&t.hasAttribute("target")&&t.setAttribute(e,t.getAttribute("target")??"")}),Hr.addHook("afterSanitizeAttributes",t=>{t.tagName==="A"&&t.hasAttribute(e)&&(t.setAttribute("target",t.getAttribute(e)??""),t.removeAttribute(e),t.getAttribute("target")==="_blank"&&t.setAttribute("rel","noopener"))})}g(Tu,"setupDompurifyHooks");var _u=g(e=>(Ym(),Hr.sanitize(e)),"removeScript"),Il=g((e,t)=>{if(Kt(t)){const r=t.securityLevel;r==="antiscript"||r==="strict"||r==="sandbox"?e=_u(e):r!=="loose"&&(e=Bu(e),e=e.replace(/</g,"&lt;").replace(/>/g,"&gt;"),e=e.replace(/=/g,"&equals;"),e=Xm(e))}return e},"sanitizeMore"),le=g((e,t)=>e&&(t.dompurifyConfig?e=Hr.sanitize(Il(e,t),t.dompurifyConfig).toString():e=Hr.sanitize(Il(e,t),{FORBID_TAGS:["style"]}).toString(),e),"sanitizeText"),jm=g((e,t)=>typeof e=="string"?le(e,t):e.flat().map(r=>le(r,t)),"sanitizeTextOrArray"),Um=g(e=>Gi.test(e),"hasBreaks"),Gm=g(e=>e.split(Gi),"splitBreaks"),Xm=g(e=>e.replace(/#br#/g,"<br/>"),"placeholderToBreak"),Bu=g(e=>e.replace(Gi,"#br#"),"breakToPlaceholder"),Vm=g(e=>{let t="";return e&&(t=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,t=CSS.escape(t)),t},"getUrl"),Zm=g(function(...e){const t=e.filter(r=>!isNaN(r));return Math.max(...t)},"getMax"),Km=g(function(...e){const t=e.filter(r=>!isNaN(r));return Math.min(...t)},"getMin"),Rl=g(function(e){const t=e.split(/(,)/),r=[];for(let i=0;i<t.length;i++){let s=t[i];if(s===","&&i>0&&i+1<t.length){const o=t[i-1],a=t[i+1];Qm(o,a)&&(s=o+","+a,i++,r.pop())}r.push(Jm(s))}return r.join("")},"parseGenericTypes"),Ca=g((e,t)=>Math.max(0,e.split(t).length-1),"countOccurrence"),Qm=g((e,t)=>{const r=Ca(e,"~"),i=Ca(t,"~");return r===1&&i===1},"shouldCombineSets"),Jm=g(e=>{const t=Ca(e,"~");let r=!1;if(t<=1)return e;t%2!==0&&e.startsWith("~")&&(e=e.substring(1),r=!0);const i=[...e];let s=i.indexOf("~"),o=i.lastIndexOf("~");for(;s!==-1&&o!==-1&&s!==o;)i[s]="<",i[o]=">",s=i.indexOf("~"),o=i.lastIndexOf("~");return r&&i.unshift("~"),i.join("")},"processSet"),ql=g(()=>window.MathMLElement!==void 0,"isMathMLSupported"),ba=/\$\$(.*?)\$\$/g,Di=g(e=>(e.match(ba)?.length??0)>0,"hasKatex"),D5=g(async(e,t)=>{const r=document.createElement("div");r.innerHTML=await vu(e,t),r.id="katex-temp",r.style.visibility="hidden",r.style.position="absolute",r.style.top="0",document.querySelector("body")?.insertAdjacentElement("beforeend",r);const s={width:r.clientWidth,height:r.clientHeight};return r.remove(),s},"calculateMathMLDimensions"),t0=g(async(e,t)=>{if(!Di(e))return e;if(!(ql()||t.legacyMathML||t.forceLegacyMathML))return e.replace(ba,"MathML is unsupported in this environment.");{const{default:r}=await _t(async()=>{const{default:s}=await import("./katex-HP8lGamR.js");return{default:s}},[],import.meta.url),i=t.forceLegacyMathML||!ql()&&t.legacyMathML?"htmlAndMathml":"mathml";return e.split(Gi).map(s=>Di(s)?`<div style="display: flex; align-items: center; justify-content: center; white-space: nowrap;">${s}</div>`:`<div>${s}</div>`).join("").replace(ba,(s,o)=>r.renderToString(o,{throwOnError:!0,displayMode:!0,output:i}).replace(/\n/g," ").replace(/<annotation.*<\/annotation>/g,""))}},"renderKatexUnsanitized"),vu=g(async(e,t)=>le(await t0(e,t),t),"renderKatexSanitized"),Xi={getRows:Hm,sanitizeText:le,sanitizeTextOrArray:jm,hasBreaks:Um,splitBreaks:Gm,lineBreakRegex:Gi,removeScript:_u,getUrl:Vm,evaluate:$e,getMax:Zm,getMin:Km},e0=g(function(e,t){for(let r of t)e.attr(r[0],r[1])},"d3Attrs"),r0=g(function(e,t,r){let i=new Map;return r?(i.set("width","100%"),i.set("style",`max-width: ${t}px;`)):(i.set("height",e),i.set("width",t)),i},"calculateSvgSizeAttrs"),Lu=g(function(e,t,r,i){const s=r0(t,r,i);e0(e,s)},"configureSvgSize"),i0=g(function(e,t,r,i){const s=t.node().getBBox(),o=s.width,a=s.height;P.info(`SVG bounds: ${o}x${a}`,s);let n=0,l=0;P.info(`Graph bounds: ${n}x${l}`,e),n=o+r*2,l=a+r*2,P.info(`Calculated bounds: ${n}x${l}`),Lu(t,l,n,i);const c=`${s.x-r} ${s.y-r} ${s.width+2*r} ${s.height+2*r}`;t.attr("viewBox",c)},"setupGraphViewbox"),ms={};function ka(e){return[...e.cssRules].map(t=>t.cssText).join(`
3
+ `)}g(ka,"cssStyleSheetToString");var s0=g((e,t,r,i)=>{let s="";return e in ms&&ms[e]?s=ms[e]({...r,svgId:i}):P.warn(`No theme found for ${e}`),`& {
4
+ font-family: ${r.fontFamily};
5
+ font-size: ${r.fontSize};
6
+ fill: ${r.textColor}
7
+ }
8
+ @keyframes edge-animation-frame {
9
+ from {
10
+ stroke-dashoffset: 0;
11
+ }
12
+ }
13
+ @keyframes dash {
14
+ to {
15
+ stroke-dashoffset: 0;
16
+ }
17
+ }
18
+ & .edge-animation-slow {
19
+ stroke-dasharray: 9,5 !important;
20
+ stroke-dashoffset: 900;
21
+ animation: dash 50s linear infinite;
22
+ stroke-linecap: round;
23
+ }
24
+ & .edge-animation-fast {
25
+ stroke-dasharray: 9,5 !important;
26
+ stroke-dashoffset: 900;
27
+ animation: dash 20s linear infinite;
28
+ stroke-linecap: round;
29
+ }
30
+ /* Classes common for multiple diagrams */
31
+
32
+ & .error-icon {
33
+ fill: ${r.errorBkgColor};
34
+ }
35
+ & .error-text {
36
+ fill: ${r.errorTextColor};
37
+ stroke: ${r.errorTextColor};
38
+ }
39
+
40
+ & .edge-thickness-normal {
41
+ stroke-width: ${r.strokeWidth??1}px;
42
+ }
43
+ & .edge-thickness-thick {
44
+ stroke-width: 3.5px
45
+ }
46
+ & .edge-pattern-solid {
47
+ stroke-dasharray: 0;
48
+ }
49
+ & .edge-thickness-invisible {
50
+ stroke-width: 0;
51
+ fill: none;
52
+ }
53
+ & .edge-pattern-dashed{
54
+ stroke-dasharray: 3;
55
+ }
56
+ .edge-pattern-dotted {
57
+ stroke-dasharray: 2;
58
+ }
59
+
60
+ & .marker {
61
+ fill: ${r.lineColor};
62
+ stroke: ${r.lineColor};
63
+ }
64
+ & .marker.cross {
65
+ stroke: ${r.lineColor};
66
+ }
67
+
68
+ & svg {
69
+ font-family: ${r.fontFamily};
70
+ font-size: ${r.fontSize};
71
+ }
72
+ & p {
73
+ margin: 0
74
+ }
75
+
76
+ ${s}
77
+ .node .neo-node {
78
+ stroke: ${r.nodeBorder};
79
+ }
80
+
81
+ [data-look="neo"].node rect, [data-look="neo"].cluster rect, [data-look="neo"].node polygon {
82
+ stroke: ${r.useGradient?"url("+i+"-gradient)":r.nodeBorder};
83
+ filter: ${r.dropShadow?r.dropShadow.replace("url(#drop-shadow)",`url(${i}-drop-shadow)`):"none"};
84
+ }
85
+ [data-look="neo"].swimlane.cluster rect {
86
+ filter: none;
87
+ }
88
+
89
+
90
+ [data-look="neo"].node path {
91
+ stroke: ${r.useGradient?"url("+i+"-gradient)":r.nodeBorder};
92
+ stroke-width: ${r.strokeWidth??1}px;
93
+ }
94
+
95
+ [data-look="neo"].node .outer-path {
96
+ filter: ${r.dropShadow?r.dropShadow.replace("url(#drop-shadow)",`url(${i}-drop-shadow)`):"none"};
97
+ }
98
+
99
+ [data-look="neo"].node .neo-line path {
100
+ stroke: ${r.nodeBorder};
101
+ filter: none;
102
+ }
103
+
104
+ [data-look="neo"].node circle{
105
+ stroke: ${r.useGradient?"url("+i+"-gradient)":r.nodeBorder};
106
+ filter: ${r.dropShadow?r.dropShadow.replace("url(#drop-shadow)",`url(${i}-drop-shadow)`):"none"};
107
+ }
108
+
109
+ [data-look="neo"].node circle .state-start{
110
+ fill: #000000;
111
+ }
112
+
113
+ [data-look="neo"].icon-shape .icon {
114
+ fill: ${r.useGradient?"url("+i+"-gradient)":r.nodeBorder};
115
+ filter: ${r.dropShadow?r.dropShadow.replace("url(#drop-shadow)",`url(${i}-drop-shadow)`):"none"};
116
+ }
117
+
118
+ [data-look="neo"].icon-shape .icon-neo path {
119
+ stroke: ${r.useGradient?"url("+i+"-gradient)":r.nodeBorder};
120
+ filter: ${r.dropShadow?r.dropShadow.replace("url(#drop-shadow)",`url(${i}-drop-shadow)`):"none"};
121
+ }
122
+
123
+ ${t}
124
+ `},"getStyles"),o0=g((e,t)=>{t!==void 0&&(ms[e]=t)},"addStylesForDiagram"),a0=s0,Fu={};Qy(Fu,{clear:()=>n0,getAccDescription:()=>u0,getAccTitle:()=>h0,getDiagramTitle:()=>f0,setAccDescription:()=>c0,setAccTitle:()=>l0,setDiagramTitle:()=>d0});var hn="",cn="",un="",dn=g(e=>le(e,Rt()),"sanitizeText"),n0=g(()=>{hn="",un="",cn=""},"clear"),l0=g(e=>{hn=dn(e).replace(/^\s+/g,"")},"setAccTitle"),h0=g(()=>hn,"getAccTitle"),c0=g(e=>{un=dn(e).replace(/\n\s+/g,`
125
+ `)},"setAccDescription"),u0=g(()=>un,"getAccDescription"),d0=g(e=>{cn=dn(e)},"setDiagramTitle"),f0=g(()=>cn,"getDiagramTitle"),Nl=P,g0=nn,Bt=Rt,P5=xu,I5=Yr,fn=g(e=>le(e,Bt()),"sanitizeText"),p0=i0,y0=g(()=>Fu,"getCommonDb"),As={},Es=g((e,t,r)=>{As[e]&&Nl.warn(`Diagram with id ${e} already registered. Overwriting.`),As[e]=t,r&&Su(e,r),o0(e,t.styles),t.injectUtils?.(Nl,g0,Bt,fn,p0,y0(),()=>{})},"registerDiagram"),wa=g(e=>{if(e in As)return As[e];throw new m0(e)},"getDiagram"),m0=class extends Error{static{g(this,"DiagramNotFoundError")}constructor(e){super(`Diagram ${e} not found.`)}},x0={value:()=>{}};function Mu(){for(var e=0,t=arguments.length,r={},i;e<t;++e){if(!(i=arguments[e]+"")||i in r||/[\s.]/.test(i))throw new Error("illegal type: "+i);r[i]=[]}return new xs(r)}function xs(e){this._=e}function C0(e,t){return e.trim().split(/^|\s+/).map(function(r){var i="",s=r.indexOf(".");if(s>=0&&(i=r.slice(s+1),r=r.slice(0,s)),r&&!t.hasOwnProperty(r))throw new Error("unknown type: "+r);return{type:r,name:i}})}xs.prototype=Mu.prototype={constructor:xs,on:function(e,t){var r=this._,i=C0(e+"",r),s,o=-1,a=i.length;if(arguments.length<2){for(;++o<a;)if((s=(e=i[o]).type)&&(s=b0(r[s],e.name)))return s;return}if(t!=null&&typeof t!="function")throw new Error("invalid callback: "+t);for(;++o<a;)if(s=(e=i[o]).type)r[s]=Wl(r[s],e.name,t);else if(t==null)for(s in r)r[s]=Wl(r[s],e.name,null);return this},copy:function(){var e={},t=this._;for(var r in t)e[r]=t[r].slice();return new xs(e)},call:function(e,t){if((s=arguments.length-2)>0)for(var r=new Array(s),i=0,s,o;i<s;++i)r[i]=arguments[i+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(o=this._[e],i=0,s=o.length;i<s;++i)o[i].value.apply(t,r)},apply:function(e,t,r){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var i=this._[e],s=0,o=i.length;s<o;++s)i[s].value.apply(t,r)}};function b0(e,t){for(var r=0,i=e.length,s;r<i;++r)if((s=e[r]).name===t)return s.value}function Wl(e,t,r){for(var i=0,s=e.length;i<s;++i)if(e[i].name===t){e[i]=x0,e=e.slice(0,i).concat(e.slice(i+1));break}return r!=null&&e.push({name:t,value:r}),e}var Sa="http://www.w3.org/1999/xhtml";const zl={svg:"http://www.w3.org/2000/svg",xhtml:Sa,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function ro(e){var t=e+="",r=t.indexOf(":");return r>=0&&(t=e.slice(0,r))!=="xmlns"&&(e=e.slice(r+1)),zl.hasOwnProperty(t)?{space:zl[t],local:e}:e}function k0(e){return function(){var t=this.ownerDocument,r=this.namespaceURI;return r===Sa&&t.documentElement.namespaceURI===Sa?t.createElement(e):t.createElementNS(r,e)}}function w0(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function Au(e){var t=ro(e);return(t.local?w0:k0)(t)}function S0(){}function gn(e){return e==null?S0:function(){return this.querySelector(e)}}function T0(e){typeof e!="function"&&(e=gn(e));for(var t=this._groups,r=t.length,i=new Array(r),s=0;s<r;++s)for(var o=t[s],a=o.length,n=i[s]=new Array(a),l,c,h=0;h<a;++h)(l=o[h])&&(c=e.call(l,l.__data__,h,o))&&("__data__"in l&&(c.__data__=l.__data__),n[h]=c);return new ae(i,this._parents)}function _0(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function B0(){return[]}function Eu(e){return e==null?B0:function(){return this.querySelectorAll(e)}}function v0(e){return function(){return _0(e.apply(this,arguments))}}function L0(e){typeof e=="function"?e=v0(e):e=Eu(e);for(var t=this._groups,r=t.length,i=[],s=[],o=0;o<r;++o)for(var a=t[o],n=a.length,l,c=0;c<n;++c)(l=a[c])&&(i.push(e.call(l,l.__data__,c,a)),s.push(l));return new ae(i,s)}function $u(e){return function(){return this.matches(e)}}function Ou(e){return function(t){return t.matches(e)}}var F0=Array.prototype.find;function M0(e){return function(){return F0.call(this.children,e)}}function A0(){return this.firstElementChild}function E0(e){return this.select(e==null?A0:M0(typeof e=="function"?e:Ou(e)))}var $0=Array.prototype.filter;function O0(){return Array.from(this.children)}function D0(e){return function(){return $0.call(this.children,e)}}function P0(e){return this.selectAll(e==null?O0:D0(typeof e=="function"?e:Ou(e)))}function I0(e){typeof e!="function"&&(e=$u(e));for(var t=this._groups,r=t.length,i=new Array(r),s=0;s<r;++s)for(var o=t[s],a=o.length,n=i[s]=[],l,c=0;c<a;++c)(l=o[c])&&e.call(l,l.__data__,c,o)&&n.push(l);return new ae(i,this._parents)}function Du(e){return new Array(e.length)}function R0(){return new ae(this._enter||this._groups.map(Du),this._parents)}function $s(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}$s.prototype={constructor:$s,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function q0(e){return function(){return e}}function N0(e,t,r,i,s,o){for(var a=0,n,l=t.length,c=o.length;a<c;++a)(n=t[a])?(n.__data__=o[a],i[a]=n):r[a]=new $s(e,o[a]);for(;a<l;++a)(n=t[a])&&(s[a]=n)}function W0(e,t,r,i,s,o,a){var n,l,c=new Map,h=t.length,u=o.length,d=new Array(h),f;for(n=0;n<h;++n)(l=t[n])&&(d[n]=f=a.call(l,l.__data__,n,t)+"",c.has(f)?s[n]=l:c.set(f,l));for(n=0;n<u;++n)f=a.call(e,o[n],n,o)+"",(l=c.get(f))?(i[n]=l,l.__data__=o[n],c.delete(f)):r[n]=new $s(e,o[n]);for(n=0;n<h;++n)(l=t[n])&&c.get(d[n])===l&&(s[n]=l)}function z0(e){return e.__data__}function H0(e,t){if(!arguments.length)return Array.from(this,z0);var r=t?W0:N0,i=this._parents,s=this._groups;typeof e!="function"&&(e=q0(e));for(var o=s.length,a=new Array(o),n=new Array(o),l=new Array(o),c=0;c<o;++c){var h=i[c],u=s[c],d=u.length,f=Y0(e.call(h,h&&h.__data__,c,i)),y=f.length,m=n[c]=new Array(y),x=a[c]=new Array(y),C=l[c]=new Array(d);r(h,u,m,x,C,f,t);for(var k=0,S=0,T,_;k<y;++k)if(T=m[k]){for(k>=S&&(S=k+1);!(_=x[S])&&++S<y;);T._next=_||null}}return a=new ae(a,i),a._enter=n,a._exit=l,a}function Y0(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function j0(){return new ae(this._exit||this._groups.map(Du),this._parents)}function U0(e,t,r){var i=this.enter(),s=this,o=this.exit();return typeof e=="function"?(i=e(i),i&&(i=i.selection())):i=i.append(e+""),t!=null&&(s=t(s),s&&(s=s.selection())),r==null?o.remove():r(o),i&&s?i.merge(s).order():s}function G0(e){for(var t=e.selection?e.selection():e,r=this._groups,i=t._groups,s=r.length,o=i.length,a=Math.min(s,o),n=new Array(s),l=0;l<a;++l)for(var c=r[l],h=i[l],u=c.length,d=n[l]=new Array(u),f,y=0;y<u;++y)(f=c[y]||h[y])&&(d[y]=f);for(;l<s;++l)n[l]=r[l];return new ae(n,this._parents)}function X0(){for(var e=this._groups,t=-1,r=e.length;++t<r;)for(var i=e[t],s=i.length-1,o=i[s],a;--s>=0;)(a=i[s])&&(o&&a.compareDocumentPosition(o)^4&&o.parentNode.insertBefore(a,o),o=a);return this}function V0(e){e||(e=Z0);function t(u,d){return u&&d?e(u.__data__,d.__data__):!u-!d}for(var r=this._groups,i=r.length,s=new Array(i),o=0;o<i;++o){for(var a=r[o],n=a.length,l=s[o]=new Array(n),c,h=0;h<n;++h)(c=a[h])&&(l[h]=c);l.sort(t)}return new ae(s,this._parents).order()}function Z0(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function K0(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function Q0(){return Array.from(this)}function J0(){for(var e=this._groups,t=0,r=e.length;t<r;++t)for(var i=e[t],s=0,o=i.length;s<o;++s){var a=i[s];if(a)return a}return null}function tx(){let e=0;for(const t of this)++e;return e}function ex(){return!this.node()}function rx(e){for(var t=this._groups,r=0,i=t.length;r<i;++r)for(var s=t[r],o=0,a=s.length,n;o<a;++o)(n=s[o])&&e.call(n,n.__data__,o,s);return this}function ix(e){return function(){this.removeAttribute(e)}}function sx(e){return function(){this.removeAttributeNS(e.space,e.local)}}function ox(e,t){return function(){this.setAttribute(e,t)}}function ax(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function nx(e,t){return function(){var r=t.apply(this,arguments);r==null?this.removeAttribute(e):this.setAttribute(e,r)}}function lx(e,t){return function(){var r=t.apply(this,arguments);r==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,r)}}function hx(e,t){var r=ro(e);if(arguments.length<2){var i=this.node();return r.local?i.getAttributeNS(r.space,r.local):i.getAttribute(r)}return this.each((t==null?r.local?sx:ix:typeof t=="function"?r.local?lx:nx:r.local?ax:ox)(r,t))}function Pu(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function cx(e){return function(){this.style.removeProperty(e)}}function ux(e,t,r){return function(){this.style.setProperty(e,t,r)}}function dx(e,t,r){return function(){var i=t.apply(this,arguments);i==null?this.style.removeProperty(e):this.style.setProperty(e,i,r)}}function fx(e,t,r){return arguments.length>1?this.each((t==null?cx:typeof t=="function"?dx:ux)(e,t,r??"")):jr(this.node(),e)}function jr(e,t){return e.style.getPropertyValue(t)||Pu(e).getComputedStyle(e,null).getPropertyValue(t)}function gx(e){return function(){delete this[e]}}function px(e,t){return function(){this[e]=t}}function yx(e,t){return function(){var r=t.apply(this,arguments);r==null?delete this[e]:this[e]=r}}function mx(e,t){return arguments.length>1?this.each((t==null?gx:typeof t=="function"?yx:px)(e,t)):this.node()[e]}function Iu(e){return e.trim().split(/^|\s+/)}function pn(e){return e.classList||new Ru(e)}function Ru(e){this._node=e,this._names=Iu(e.getAttribute("class")||"")}Ru.prototype={add:function(e){var t=this._names.indexOf(e);t<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function qu(e,t){for(var r=pn(e),i=-1,s=t.length;++i<s;)r.add(t[i])}function Nu(e,t){for(var r=pn(e),i=-1,s=t.length;++i<s;)r.remove(t[i])}function xx(e){return function(){qu(this,e)}}function Cx(e){return function(){Nu(this,e)}}function bx(e,t){return function(){(t.apply(this,arguments)?qu:Nu)(this,e)}}function kx(e,t){var r=Iu(e+"");if(arguments.length<2){for(var i=pn(this.node()),s=-1,o=r.length;++s<o;)if(!i.contains(r[s]))return!1;return!0}return this.each((typeof t=="function"?bx:t?xx:Cx)(r,t))}function wx(){this.textContent=""}function Sx(e){return function(){this.textContent=e}}function Tx(e){return function(){var t=e.apply(this,arguments);this.textContent=t??""}}function _x(e){return arguments.length?this.each(e==null?wx:(typeof e=="function"?Tx:Sx)(e)):this.node().textContent}function Bx(){this.innerHTML=""}function vx(e){return function(){this.innerHTML=e}}function Lx(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??""}}function Fx(e){return arguments.length?this.each(e==null?Bx:(typeof e=="function"?Lx:vx)(e)):this.node().innerHTML}function Mx(){this.nextSibling&&this.parentNode.appendChild(this)}function Ax(){return this.each(Mx)}function Ex(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function $x(){return this.each(Ex)}function Ox(e){var t=typeof e=="function"?e:Au(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function Dx(){return null}function Px(e,t){var r=typeof e=="function"?e:Au(e),i=t==null?Dx:typeof t=="function"?t:gn(t);return this.select(function(){return this.insertBefore(r.apply(this,arguments),i.apply(this,arguments)||null)})}function Ix(){var e=this.parentNode;e&&e.removeChild(this)}function Rx(){return this.each(Ix)}function qx(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Nx(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Wx(e){return this.select(e?Nx:qx)}function zx(e){return arguments.length?this.property("__data__",e):this.node().__data__}function Hx(e){return function(t){e.call(this,t,this.__data__)}}function Yx(e){return e.trim().split(/^|\s+/).map(function(t){var r="",i=t.indexOf(".");return i>=0&&(r=t.slice(i+1),t=t.slice(0,i)),{type:t,name:r}})}function jx(e){return function(){var t=this.__on;if(t){for(var r=0,i=-1,s=t.length,o;r<s;++r)o=t[r],(!e.type||o.type===e.type)&&o.name===e.name?this.removeEventListener(o.type,o.listener,o.options):t[++i]=o;++i?t.length=i:delete this.__on}}}function Ux(e,t,r){return function(){var i=this.__on,s,o=Hx(t);if(i){for(var a=0,n=i.length;a<n;++a)if((s=i[a]).type===e.type&&s.name===e.name){this.removeEventListener(s.type,s.listener,s.options),this.addEventListener(s.type,s.listener=o,s.options=r),s.value=t;return}}this.addEventListener(e.type,o,r),s={type:e.type,name:e.name,value:t,listener:o,options:r},i?i.push(s):this.__on=[s]}}function Gx(e,t,r){var i=Yx(e+""),s,o=i.length,a;if(arguments.length<2){var n=this.node().__on;if(n){for(var l=0,c=n.length,h;l<c;++l)for(s=0,h=n[l];s<o;++s)if((a=i[s]).type===h.type&&a.name===h.name)return h.value}return}for(n=t?Ux:jx,s=0;s<o;++s)this.each(n(i[s],t,r));return this}function Wu(e,t,r){var i=Pu(e),s=i.CustomEvent;typeof s=="function"?s=new s(t,r):(s=i.document.createEvent("Event"),r?(s.initEvent(t,r.bubbles,r.cancelable),s.detail=r.detail):s.initEvent(t,!1,!1)),e.dispatchEvent(s)}function Xx(e,t){return function(){return Wu(this,e,t)}}function Vx(e,t){return function(){return Wu(this,e,t.apply(this,arguments))}}function Zx(e,t){return this.each((typeof t=="function"?Vx:Xx)(e,t))}function*Kx(){for(var e=this._groups,t=0,r=e.length;t<r;++t)for(var i=e[t],s=0,o=i.length,a;s<o;++s)(a=i[s])&&(yield a)}var zu=[null];function ae(e,t){this._groups=e,this._parents=t}function Vi(){return new ae([[document.documentElement]],zu)}function Qx(){return this}ae.prototype=Vi.prototype={constructor:ae,select:T0,selectAll:L0,selectChild:E0,selectChildren:P0,filter:I0,data:H0,enter:R0,exit:j0,join:U0,merge:G0,selection:Qx,order:X0,sort:V0,call:K0,nodes:Q0,node:J0,size:tx,empty:ex,each:rx,attr:hx,style:fx,property:mx,classed:kx,text:_x,html:Fx,raise:Ax,lower:$x,append:Ox,insert:Px,remove:Rx,clone:Wx,datum:zx,on:Gx,dispatch:Zx,[Symbol.iterator]:Kx};function Tt(e){return typeof e=="string"?new ae([[document.querySelector(e)]],[document.documentElement]):new ae([[e]],zu)}function yn(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function Hu(e,t){var r=Object.create(e.prototype);for(var i in t)r[i]=t[i];return r}function Zi(){}var Pi=.7,Os=1/Pi,Nr="\\s*([+-]?\\d+)\\s*",Ii="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Le="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Jx=/^#([0-9a-f]{3,8})$/,tC=new RegExp(`^rgb\\(${Nr},${Nr},${Nr}\\)$`),eC=new RegExp(`^rgb\\(${Le},${Le},${Le}\\)$`),rC=new RegExp(`^rgba\\(${Nr},${Nr},${Nr},${Ii}\\)$`),iC=new RegExp(`^rgba\\(${Le},${Le},${Le},${Ii}\\)$`),sC=new RegExp(`^hsl\\(${Ii},${Le},${Le}\\)$`),oC=new RegExp(`^hsla\\(${Ii},${Le},${Le},${Ii}\\)$`),Hl={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};yn(Zi,Ri,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Yl,formatHex:Yl,formatHex8:aC,formatHsl:nC,formatRgb:jl,toString:jl});function Yl(){return this.rgb().formatHex()}function aC(){return this.rgb().formatHex8()}function nC(){return Yu(this).formatHsl()}function jl(){return this.rgb().formatRgb()}function Ri(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=Jx.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?Ul(t):r===3?new ie(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?es(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?es(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=tC.exec(e))?new ie(t[1],t[2],t[3],1):(t=eC.exec(e))?new ie(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=rC.exec(e))?es(t[1],t[2],t[3],t[4]):(t=iC.exec(e))?es(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=sC.exec(e))?Vl(t[1],t[2]/100,t[3]/100,1):(t=oC.exec(e))?Vl(t[1],t[2]/100,t[3]/100,t[4]):Hl.hasOwnProperty(e)?Ul(Hl[e]):e==="transparent"?new ie(NaN,NaN,NaN,0):null}function Ul(e){return new ie(e>>16&255,e>>8&255,e&255,1)}function es(e,t,r,i){return i<=0&&(e=t=r=NaN),new ie(e,t,r,i)}function lC(e){return e instanceof Zi||(e=Ri(e)),e?(e=e.rgb(),new ie(e.r,e.g,e.b,e.opacity)):new ie}function Ta(e,t,r,i){return arguments.length===1?lC(e):new ie(e,t,r,i??1)}function ie(e,t,r,i){this.r=+e,this.g=+t,this.b=+r,this.opacity=+i}yn(ie,Ta,Hu(Zi,{brighter(e){return e=e==null?Os:Math.pow(Os,e),new ie(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Pi:Math.pow(Pi,e),new ie(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new ie(fr(this.r),fr(this.g),fr(this.b),Ds(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Gl,formatHex:Gl,formatHex8:hC,formatRgb:Xl,toString:Xl}));function Gl(){return`#${ur(this.r)}${ur(this.g)}${ur(this.b)}`}function hC(){return`#${ur(this.r)}${ur(this.g)}${ur(this.b)}${ur((isNaN(this.opacity)?1:this.opacity)*255)}`}function Xl(){const e=Ds(this.opacity);return`${e===1?"rgb(":"rgba("}${fr(this.r)}, ${fr(this.g)}, ${fr(this.b)}${e===1?")":`, ${e})`}`}function Ds(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function fr(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function ur(e){return e=fr(e),(e<16?"0":"")+e.toString(16)}function Vl(e,t,r,i){return i<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new ye(e,t,r,i)}function Yu(e){if(e instanceof ye)return new ye(e.h,e.s,e.l,e.opacity);if(e instanceof Zi||(e=Ri(e)),!e)return new ye;if(e instanceof ye)return e;e=e.rgb();var t=e.r/255,r=e.g/255,i=e.b/255,s=Math.min(t,r,i),o=Math.max(t,r,i),a=NaN,n=o-s,l=(o+s)/2;return n?(t===o?a=(r-i)/n+(r<i)*6:r===o?a=(i-t)/n+2:a=(t-r)/n+4,n/=l<.5?o+s:2-o-s,a*=60):n=l>0&&l<1?0:a,new ye(a,n,l,e.opacity)}function cC(e,t,r,i){return arguments.length===1?Yu(e):new ye(e,t,r,i??1)}function ye(e,t,r,i){this.h=+e,this.s=+t,this.l=+r,this.opacity=+i}yn(ye,cC,Hu(Zi,{brighter(e){return e=e==null?Os:Math.pow(Os,e),new ye(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Pi:Math.pow(Pi,e),new ye(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,i=r+(r<.5?r:1-r)*t,s=2*r-i;return new ie(vo(e>=240?e-240:e+120,s,i),vo(e,s,i),vo(e<120?e+240:e-120,s,i),this.opacity)},clamp(){return new ye(Zl(this.h),rs(this.s),rs(this.l),Ds(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(){const e=Ds(this.opacity);return`${e===1?"hsl(":"hsla("}${Zl(this.h)}, ${rs(this.s)*100}%, ${rs(this.l)*100}%${e===1?")":`, ${e})`}`}}));function Zl(e){return e=(e||0)%360,e<0?e+360:e}function rs(e){return Math.max(0,Math.min(1,e||0))}function vo(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}const mn=e=>()=>e;function ju(e,t){return function(r){return e+r*t}}function uC(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(i){return Math.pow(e+i*t,r)}}function R5(e,t){var r=t-e;return r?ju(e,r>180||r<-180?r-360*Math.round(r/360):r):mn(isNaN(e)?t:e)}function dC(e){return(e=+e)==1?Uu:function(t,r){return r-t?uC(t,r,e):mn(isNaN(t)?r:t)}}function Uu(e,t){var r=t-e;return r?ju(e,r):mn(isNaN(e)?t:e)}const Kl=(function e(t){var r=dC(t);function i(s,o){var a=r((s=Ta(s)).r,(o=Ta(o)).r),n=r(s.g,o.g),l=r(s.b,o.b),c=Uu(s.opacity,o.opacity);return function(h){return s.r=a(h),s.g=n(h),s.b=l(h),s.opacity=c(h),s+""}}return i.gamma=e,i})(1);function Ke(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}var _a=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Lo=new RegExp(_a.source,"g");function fC(e){return function(){return e}}function gC(e){return function(t){return e(t)+""}}function pC(e,t){var r=_a.lastIndex=Lo.lastIndex=0,i,s,o,a=-1,n=[],l=[];for(e=e+"",t=t+"";(i=_a.exec(e))&&(s=Lo.exec(t));)(o=s.index)>r&&(o=t.slice(r,o),n[a]?n[a]+=o:n[++a]=o),(i=i[0])===(s=s[0])?n[a]?n[a]+=s:n[++a]=s:(n[++a]=null,l.push({i:a,x:Ke(i,s)})),r=Lo.lastIndex;return r<t.length&&(o=t.slice(r),n[a]?n[a]+=o:n[++a]=o),n.length<2?l[0]?gC(l[0].x):fC(t):(t=l.length,function(c){for(var h=0,u;h<t;++h)n[(u=l[h]).i]=u.x(c);return n.join("")})}var Ql=180/Math.PI,Ba={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Gu(e,t,r,i,s,o){var a,n,l;return(a=Math.sqrt(e*e+t*t))&&(e/=a,t/=a),(l=e*r+t*i)&&(r-=e*l,i-=t*l),(n=Math.sqrt(r*r+i*i))&&(r/=n,i/=n,l/=n),e*i<t*r&&(e=-e,t=-t,l=-l,a=-a),{translateX:s,translateY:o,rotate:Math.atan2(t,e)*Ql,skewX:Math.atan(l)*Ql,scaleX:a,scaleY:n}}var is;function yC(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?Ba:Gu(t.a,t.b,t.c,t.d,t.e,t.f)}function mC(e){return e==null||(is||(is=document.createElementNS("http://www.w3.org/2000/svg","g")),is.setAttribute("transform",e),!(e=is.transform.baseVal.consolidate()))?Ba:(e=e.matrix,Gu(e.a,e.b,e.c,e.d,e.e,e.f))}function Xu(e,t,r,i){function s(c){return c.length?c.pop()+" ":""}function o(c,h,u,d,f,y){if(c!==u||h!==d){var m=f.push("translate(",null,t,null,r);y.push({i:m-4,x:Ke(c,u)},{i:m-2,x:Ke(h,d)})}else(u||d)&&f.push("translate("+u+t+d+r)}function a(c,h,u,d){c!==h?(c-h>180?h+=360:h-c>180&&(c+=360),d.push({i:u.push(s(u)+"rotate(",null,i)-2,x:Ke(c,h)})):h&&u.push(s(u)+"rotate("+h+i)}function n(c,h,u,d){c!==h?d.push({i:u.push(s(u)+"skewX(",null,i)-2,x:Ke(c,h)}):h&&u.push(s(u)+"skewX("+h+i)}function l(c,h,u,d,f,y){if(c!==u||h!==d){var m=f.push(s(f)+"scale(",null,",",null,")");y.push({i:m-4,x:Ke(c,u)},{i:m-2,x:Ke(h,d)})}else(u!==1||d!==1)&&f.push(s(f)+"scale("+u+","+d+")")}return function(c,h){var u=[],d=[];return c=e(c),h=e(h),o(c.translateX,c.translateY,h.translateX,h.translateY,u,d),a(c.rotate,h.rotate,u,d),n(c.skewX,h.skewX,u,d),l(c.scaleX,c.scaleY,h.scaleX,h.scaleY,u,d),c=h=null,function(f){for(var y=-1,m=d.length,x;++y<m;)u[(x=d[y]).i]=x.x(f);return u.join("")}}}var xC=Xu(yC,"px, ","px)","deg)"),CC=Xu(mC,", ",")",")"),Ur=0,Ci=0,ci=0,Vu=1e3,Ps,bi,Is=0,yr=0,io=0,qi=typeof performance=="object"&&performance.now?performance:Date,Zu=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function xn(){return yr||(Zu(bC),yr=qi.now()+io)}function bC(){yr=0}function Rs(){this._call=this._time=this._next=null}Rs.prototype=Ku.prototype={constructor:Rs,restart:function(e,t,r){if(typeof e!="function")throw new TypeError("callback is not a function");r=(r==null?xn():+r)+(t==null?0:+t),!this._next&&bi!==this&&(bi?bi._next=this:Ps=this,bi=this),this._call=e,this._time=r,va()},stop:function(){this._call&&(this._call=null,this._time=1/0,va())}};function Ku(e,t,r){var i=new Rs;return i.restart(e,t,r),i}function kC(){xn(),++Ur;for(var e=Ps,t;e;)(t=yr-e._time)>=0&&e._call.call(void 0,t),e=e._next;--Ur}function Jl(){yr=(Is=qi.now())+io,Ur=Ci=0;try{kC()}finally{Ur=0,SC(),yr=0}}function wC(){var e=qi.now(),t=e-Is;t>Vu&&(io-=t,Is=e)}function SC(){for(var e,t=Ps,r,i=1/0;t;)t._call?(i>t._time&&(i=t._time),e=t,t=t._next):(r=t._next,t._next=null,t=e?e._next=r:Ps=r);bi=e,va(i)}function va(e){if(!Ur){Ci&&(Ci=clearTimeout(Ci));var t=e-yr;t>24?(e<1/0&&(Ci=setTimeout(Jl,e-qi.now()-io)),ci&&(ci=clearInterval(ci))):(ci||(Is=qi.now(),ci=setInterval(wC,Vu)),Ur=1,Zu(Jl))}}function th(e,t,r){var i=new Rs;return t=t==null?0:+t,i.restart(s=>{i.stop(),e(s+t)},t,r),i}var TC=Mu("start","end","cancel","interrupt"),_C=[],Qu=0,eh=1,La=2,Cs=3,rh=4,Fa=5,bs=6;function so(e,t,r,i,s,o){var a=e.__transition;if(!a)e.__transition={};else if(r in a)return;BC(e,r,{name:t,index:i,group:s,on:TC,tween:_C,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:Qu})}function Cn(e,t){var r=Ce(e,t);if(r.state>Qu)throw new Error("too late; already scheduled");return r}function Oe(e,t){var r=Ce(e,t);if(r.state>Cs)throw new Error("too late; already running");return r}function Ce(e,t){var r=e.__transition;if(!r||!(r=r[t]))throw new Error("transition not found");return r}function BC(e,t,r){var i=e.__transition,s;i[t]=r,r.timer=Ku(o,0,r.time);function o(c){r.state=eh,r.timer.restart(a,r.delay,r.time),r.delay<=c&&a(c-r.delay)}function a(c){var h,u,d,f;if(r.state!==eh)return l();for(h in i)if(f=i[h],f.name===r.name){if(f.state===Cs)return th(a);f.state===rh?(f.state=bs,f.timer.stop(),f.on.call("interrupt",e,e.__data__,f.index,f.group),delete i[h]):+h<t&&(f.state=bs,f.timer.stop(),f.on.call("cancel",e,e.__data__,f.index,f.group),delete i[h])}if(th(function(){r.state===Cs&&(r.state=rh,r.timer.restart(n,r.delay,r.time),n(c))}),r.state=La,r.on.call("start",e,e.__data__,r.index,r.group),r.state===La){for(r.state=Cs,s=new Array(d=r.tween.length),h=0,u=-1;h<d;++h)(f=r.tween[h].value.call(e,e.__data__,r.index,r.group))&&(s[++u]=f);s.length=u+1}}function n(c){for(var h=c<r.duration?r.ease.call(null,c/r.duration):(r.timer.restart(l),r.state=Fa,1),u=-1,d=s.length;++u<d;)s[u].call(e,h);r.state===Fa&&(r.on.call("end",e,e.__data__,r.index,r.group),l())}function l(){r.state=bs,r.timer.stop(),delete i[t];for(var c in i)return;delete e.__transition}}function vC(e,t){var r=e.__transition,i,s,o=!0,a;if(r){t=t==null?null:t+"";for(a in r){if((i=r[a]).name!==t){o=!1;continue}s=i.state>La&&i.state<Fa,i.state=bs,i.timer.stop(),i.on.call(s?"interrupt":"cancel",e,e.__data__,i.index,i.group),delete r[a]}o&&delete e.__transition}}function LC(e){return this.each(function(){vC(this,e)})}function FC(e,t){var r,i;return function(){var s=Oe(this,e),o=s.tween;if(o!==r){i=r=o;for(var a=0,n=i.length;a<n;++a)if(i[a].name===t){i=i.slice(),i.splice(a,1);break}}s.tween=i}}function MC(e,t,r){var i,s;if(typeof r!="function")throw new Error;return function(){var o=Oe(this,e),a=o.tween;if(a!==i){s=(i=a).slice();for(var n={name:t,value:r},l=0,c=s.length;l<c;++l)if(s[l].name===t){s[l]=n;break}l===c&&s.push(n)}o.tween=s}}function AC(e,t){var r=this._id;if(e+="",arguments.length<2){for(var i=Ce(this.node(),r).tween,s=0,o=i.length,a;s<o;++s)if((a=i[s]).name===e)return a.value;return null}return this.each((t==null?FC:MC)(r,e,t))}function bn(e,t,r){var i=e._id;return e.each(function(){var s=Oe(this,i);(s.value||(s.value={}))[t]=r.apply(this,arguments)}),function(s){return Ce(s,i).value[t]}}function Ju(e,t){var r;return(typeof t=="number"?Ke:t instanceof Ri?Kl:(r=Ri(t))?(t=r,Kl):pC)(e,t)}function EC(e){return function(){this.removeAttribute(e)}}function $C(e){return function(){this.removeAttributeNS(e.space,e.local)}}function OC(e,t,r){var i,s=r+"",o;return function(){var a=this.getAttribute(e);return a===s?null:a===i?o:o=t(i=a,r)}}function DC(e,t,r){var i,s=r+"",o;return function(){var a=this.getAttributeNS(e.space,e.local);return a===s?null:a===i?o:o=t(i=a,r)}}function PC(e,t,r){var i,s,o;return function(){var a,n=r(this),l;return n==null?void this.removeAttribute(e):(a=this.getAttribute(e),l=n+"",a===l?null:a===i&&l===s?o:(s=l,o=t(i=a,n)))}}function IC(e,t,r){var i,s,o;return function(){var a,n=r(this),l;return n==null?void this.removeAttributeNS(e.space,e.local):(a=this.getAttributeNS(e.space,e.local),l=n+"",a===l?null:a===i&&l===s?o:(s=l,o=t(i=a,n)))}}function RC(e,t){var r=ro(e),i=r==="transform"?CC:Ju;return this.attrTween(e,typeof t=="function"?(r.local?IC:PC)(r,i,bn(this,"attr."+e,t)):t==null?(r.local?$C:EC)(r):(r.local?DC:OC)(r,i,t))}function qC(e,t){return function(r){this.setAttribute(e,t.call(this,r))}}function NC(e,t){return function(r){this.setAttributeNS(e.space,e.local,t.call(this,r))}}function WC(e,t){var r,i;function s(){var o=t.apply(this,arguments);return o!==i&&(r=(i=o)&&NC(e,o)),r}return s._value=t,s}function zC(e,t){var r,i;function s(){var o=t.apply(this,arguments);return o!==i&&(r=(i=o)&&qC(e,o)),r}return s._value=t,s}function HC(e,t){var r="attr."+e;if(arguments.length<2)return(r=this.tween(r))&&r._value;if(t==null)return this.tween(r,null);if(typeof t!="function")throw new Error;var i=ro(e);return this.tween(r,(i.local?WC:zC)(i,t))}function YC(e,t){return function(){Cn(this,e).delay=+t.apply(this,arguments)}}function jC(e,t){return t=+t,function(){Cn(this,e).delay=t}}function UC(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?YC:jC)(t,e)):Ce(this.node(),t).delay}function GC(e,t){return function(){Oe(this,e).duration=+t.apply(this,arguments)}}function XC(e,t){return t=+t,function(){Oe(this,e).duration=t}}function VC(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?GC:XC)(t,e)):Ce(this.node(),t).duration}function ZC(e,t){if(typeof t!="function")throw new Error;return function(){Oe(this,e).ease=t}}function KC(e){var t=this._id;return arguments.length?this.each(ZC(t,e)):Ce(this.node(),t).ease}function QC(e,t){return function(){var r=t.apply(this,arguments);if(typeof r!="function")throw new Error;Oe(this,e).ease=r}}function JC(e){if(typeof e!="function")throw new Error;return this.each(QC(this._id,e))}function tb(e){typeof e!="function"&&(e=$u(e));for(var t=this._groups,r=t.length,i=new Array(r),s=0;s<r;++s)for(var o=t[s],a=o.length,n=i[s]=[],l,c=0;c<a;++c)(l=o[c])&&e.call(l,l.__data__,c,o)&&n.push(l);return new He(i,this._parents,this._name,this._id)}function eb(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,r=e._groups,i=t.length,s=r.length,o=Math.min(i,s),a=new Array(i),n=0;n<o;++n)for(var l=t[n],c=r[n],h=l.length,u=a[n]=new Array(h),d,f=0;f<h;++f)(d=l[f]||c[f])&&(u[f]=d);for(;n<i;++n)a[n]=t[n];return new He(a,this._parents,this._name,this._id)}function rb(e){return(e+"").trim().split(/^|\s+/).every(function(t){var r=t.indexOf(".");return r>=0&&(t=t.slice(0,r)),!t||t==="start"})}function ib(e,t,r){var i,s,o=rb(t)?Cn:Oe;return function(){var a=o(this,e),n=a.on;n!==i&&(s=(i=n).copy()).on(t,r),a.on=s}}function sb(e,t){var r=this._id;return arguments.length<2?Ce(this.node(),r).on.on(e):this.each(ib(r,e,t))}function ob(e){return function(){var t=this.parentNode;for(var r in this.__transition)if(+r!==e)return;t&&t.removeChild(this)}}function ab(){return this.on("end.remove",ob(this._id))}function nb(e){var t=this._name,r=this._id;typeof e!="function"&&(e=gn(e));for(var i=this._groups,s=i.length,o=new Array(s),a=0;a<s;++a)for(var n=i[a],l=n.length,c=o[a]=new Array(l),h,u,d=0;d<l;++d)(h=n[d])&&(u=e.call(h,h.__data__,d,n))&&("__data__"in h&&(u.__data__=h.__data__),c[d]=u,so(c[d],t,r,d,c,Ce(h,r)));return new He(o,this._parents,t,r)}function lb(e){var t=this._name,r=this._id;typeof e!="function"&&(e=Eu(e));for(var i=this._groups,s=i.length,o=[],a=[],n=0;n<s;++n)for(var l=i[n],c=l.length,h,u=0;u<c;++u)if(h=l[u]){for(var d=e.call(h,h.__data__,u,l),f,y=Ce(h,r),m=0,x=d.length;m<x;++m)(f=d[m])&&so(f,t,r,m,d,y);o.push(d),a.push(h)}return new He(o,a,t,r)}var hb=Vi.prototype.constructor;function cb(){return new hb(this._groups,this._parents)}function ub(e,t){var r,i,s;return function(){var o=jr(this,e),a=(this.style.removeProperty(e),jr(this,e));return o===a?null:o===r&&a===i?s:s=t(r=o,i=a)}}function td(e){return function(){this.style.removeProperty(e)}}function db(e,t,r){var i,s=r+"",o;return function(){var a=jr(this,e);return a===s?null:a===i?o:o=t(i=a,r)}}function fb(e,t,r){var i,s,o;return function(){var a=jr(this,e),n=r(this),l=n+"";return n==null&&(l=n=(this.style.removeProperty(e),jr(this,e))),a===l?null:a===i&&l===s?o:(s=l,o=t(i=a,n))}}function gb(e,t){var r,i,s,o="style."+t,a="end."+o,n;return function(){var l=Oe(this,e),c=l.on,h=l.value[o]==null?n||(n=td(t)):void 0;(c!==r||s!==h)&&(i=(r=c).copy()).on(a,s=h),l.on=i}}function pb(e,t,r){var i=(e+="")=="transform"?xC:Ju;return t==null?this.styleTween(e,ub(e,i)).on("end.style."+e,td(e)):typeof t=="function"?this.styleTween(e,fb(e,i,bn(this,"style."+e,t))).each(gb(this._id,e)):this.styleTween(e,db(e,i,t),r).on("end.style."+e,null)}function yb(e,t,r){return function(i){this.style.setProperty(e,t.call(this,i),r)}}function mb(e,t,r){var i,s;function o(){var a=t.apply(this,arguments);return a!==s&&(i=(s=a)&&yb(e,a,r)),i}return o._value=t,o}function xb(e,t,r){var i="style."+(e+="");if(arguments.length<2)return(i=this.tween(i))&&i._value;if(t==null)return this.tween(i,null);if(typeof t!="function")throw new Error;return this.tween(i,mb(e,t,r??""))}function Cb(e){return function(){this.textContent=e}}function bb(e){return function(){var t=e(this);this.textContent=t??""}}function kb(e){return this.tween("text",typeof e=="function"?bb(bn(this,"text",e)):Cb(e==null?"":e+""))}function wb(e){return function(t){this.textContent=e.call(this,t)}}function Sb(e){var t,r;function i(){var s=e.apply(this,arguments);return s!==r&&(t=(r=s)&&wb(s)),t}return i._value=e,i}function Tb(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(e==null)return this.tween(t,null);if(typeof e!="function")throw new Error;return this.tween(t,Sb(e))}function _b(){for(var e=this._name,t=this._id,r=ed(),i=this._groups,s=i.length,o=0;o<s;++o)for(var a=i[o],n=a.length,l,c=0;c<n;++c)if(l=a[c]){var h=Ce(l,t);so(l,e,r,c,a,{time:h.time+h.delay+h.duration,delay:0,duration:h.duration,ease:h.ease})}return new He(i,this._parents,e,r)}function Bb(){var e,t,r=this,i=r._id,s=r.size();return new Promise(function(o,a){var n={value:a},l={value:function(){--s===0&&o()}};r.each(function(){var c=Oe(this,i),h=c.on;h!==e&&(t=(e=h).copy(),t._.cancel.push(n),t._.interrupt.push(n),t._.end.push(l)),c.on=t}),s===0&&o()})}var vb=0;function He(e,t,r,i){this._groups=e,this._parents=t,this._name=r,this._id=i}function ed(){return++vb}var Ie=Vi.prototype;He.prototype={constructor:He,select:nb,selectAll:lb,selectChild:Ie.selectChild,selectChildren:Ie.selectChildren,filter:tb,merge:eb,selection:cb,transition:_b,call:Ie.call,nodes:Ie.nodes,node:Ie.node,size:Ie.size,empty:Ie.empty,each:Ie.each,on:sb,attr:RC,attrTween:HC,style:pb,styleTween:xb,text:kb,textTween:Tb,remove:ab,tween:AC,delay:UC,duration:VC,ease:KC,easeVarying:JC,end:Bb,[Symbol.iterator]:Ie[Symbol.iterator]};function Lb(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var Fb={time:null,delay:0,duration:250,ease:Lb};function Mb(e,t){for(var r;!(r=e.__transition)||!(r=r[t]);)if(!(e=e.parentNode))throw new Error(`transition ${t} not found`);return r}function Ab(e){var t,r;e instanceof He?(t=e._id,e=e._name):(t=ed(),(r=Fb).time=xn(),e=e==null?null:e+"");for(var i=this._groups,s=i.length,o=0;o<s;++o)for(var a=i[o],n=a.length,l,c=0;c<n;++c)(l=a[c])&&so(l,e,t,c,a,r||Mb(l,t));return new He(i,this._parents,e,t)}Vi.prototype.interrupt=LC;Vi.prototype.transition=Ab;const Ma=Math.PI,Aa=2*Ma,lr=1e-6,Eb=Aa-lr;function rd(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}function $b(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return rd;const r=10**t;return function(i){this._+=i[0];for(let s=1,o=i.length;s<o;++s)this._+=Math.round(arguments[s]*r)/r+i[s]}}class Ob{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?rd:$b(t)}moveTo(t,r){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,r){this._append`L${this._x1=+t},${this._y1=+r}`}quadraticCurveTo(t,r,i,s){this._append`Q${+t},${+r},${this._x1=+i},${this._y1=+s}`}bezierCurveTo(t,r,i,s,o,a){this._append`C${+t},${+r},${+i},${+s},${this._x1=+o},${this._y1=+a}`}arcTo(t,r,i,s,o){if(t=+t,r=+r,i=+i,s=+s,o=+o,o<0)throw new Error(`negative radius: ${o}`);let a=this._x1,n=this._y1,l=i-t,c=s-r,h=a-t,u=n-r,d=h*h+u*u;if(this._x1===null)this._append`M${this._x1=t},${this._y1=r}`;else if(d>lr)if(!(Math.abs(u*l-c*h)>lr)||!o)this._append`L${this._x1=t},${this._y1=r}`;else{let f=i-a,y=s-n,m=l*l+c*c,x=f*f+y*y,C=Math.sqrt(m),k=Math.sqrt(d),S=o*Math.tan((Ma-Math.acos((m+d-x)/(2*C*k)))/2),T=S/k,_=S/C;Math.abs(T-1)>lr&&this._append`L${t+T*h},${r+T*u}`,this._append`A${o},${o},0,0,${+(u*f>h*y)},${this._x1=t+_*l},${this._y1=r+_*c}`}}arc(t,r,i,s,o,a){if(t=+t,r=+r,i=+i,a=!!a,i<0)throw new Error(`negative radius: ${i}`);let n=i*Math.cos(s),l=i*Math.sin(s),c=t+n,h=r+l,u=1^a,d=a?s-o:o-s;this._x1===null?this._append`M${c},${h}`:(Math.abs(this._x1-c)>lr||Math.abs(this._y1-h)>lr)&&this._append`L${c},${h}`,i&&(d<0&&(d=d%Aa+Aa),d>Eb?this._append`A${i},${i},0,1,${u},${t-n},${r-l}A${i},${i},0,1,${u},${this._x1=c},${this._y1=h}`:d>lr&&this._append`A${i},${i},0,${+(d>=Ma)},${u},${this._x1=t+i*Math.cos(o)},${this._y1=r+i*Math.sin(o)}`)}rect(t,r,i,s){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}h${i=+i}v${+s}h${-i}Z`}toString(){return this._}}function Ar(e){return function(){return e}}const q5=Math.abs,N5=Math.atan2,W5=Math.cos,z5=Math.max,H5=Math.min,Y5=Math.sin,j5=Math.sqrt,ih=1e-12,kn=Math.PI,sh=kn/2,U5=2*kn;function G5(e){return e>1?0:e<-1?kn:Math.acos(e)}function X5(e){return e>=1?sh:e<=-1?-sh:Math.asin(e)}function Db(e){let t=3;return e.digits=function(r){if(!arguments.length)return t;if(r==null)t=null;else{const i=Math.floor(r);if(!(i>=0))throw new RangeError(`invalid digits: ${r}`);t=i}return e},()=>new Ob(t)}function Pb(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function id(e){this._context=e}id.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function Ai(e){return new id(e)}function Ib(e){return e[0]}function Rb(e){return e[1]}function qb(e,t){var r=Ar(!0),i=null,s=Ai,o=null,a=Db(n);e=typeof e=="function"?e:e===void 0?Ib:Ar(e),t=typeof t=="function"?t:t===void 0?Rb:Ar(t);function n(l){var c,h=(l=Pb(l)).length,u,d=!1,f;for(i==null&&(o=s(f=a())),c=0;c<=h;++c)!(c<h&&r(u=l[c],c,l))===d&&((d=!d)?o.lineStart():o.lineEnd()),d&&o.point(+e(u,c,l),+t(u,c,l));if(f)return o=null,f+""||null}return n.x=function(l){return arguments.length?(e=typeof l=="function"?l:Ar(+l),n):e},n.y=function(l){return arguments.length?(t=typeof l=="function"?l:Ar(+l),n):t},n.defined=function(l){return arguments.length?(r=typeof l=="function"?l:Ar(!!l),n):r},n.curve=function(l){return arguments.length?(s=l,i!=null&&(o=s(i)),n):s},n.context=function(l){return arguments.length?(l==null?i=o=null:o=s(i=l),n):i},n}class sd{constructor(t,r){this._context=t,this._x=r}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,r){switch(t=+t,r=+r,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,r):this._context.moveTo(t,r);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,r,t,r):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+r)/2,t,this._y0,t,r);break}}this._x0=t,this._y0=r}}function od(e){return new sd(e,!0)}function ad(e){return new sd(e,!1)}function er(){}function qs(e,t,r){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+r)/6)}function oo(e){this._context=e}oo.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:qs(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);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:qs(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Ea(e){return new oo(e)}function nd(e){this._context=e}nd.prototype={areaStart:er,areaEnd:er,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(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:qs(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Nb(e){return new nd(e)}function ld(e){this._context=e}ld.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+e)/6,i=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(r,i):this._context.moveTo(r,i);break;case 3:this._point=4;default:qs(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Wb(e){return new ld(e)}function hd(e,t){this._basis=new oo(e),this._beta=t}hd.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,r=e.length-1;if(r>0)for(var i=e[0],s=t[0],o=e[r]-i,a=t[r]-s,n=-1,l;++n<=r;)l=n/r,this._basis.point(this._beta*e[n]+(1-this._beta)*(i+l*o),this._beta*t[n]+(1-this._beta)*(s+l*a));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};const zb=(function e(t){function r(i){return t===1?new oo(i):new hd(i,t)}return r.beta=function(i){return e(+i)},r})(.85);function Ns(e,t,r){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-r),e._x2,e._y2)}function wn(e,t){this._context=e,this._k=(1-t)/6}wn.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:Ns(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:Ns(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const cd=(function e(t){function r(i){return new wn(i,t)}return r.tension=function(i){return e(+i)},r})(0);function Sn(e,t){this._context=e,this._k=(1-t)/6}Sn.prototype={areaStart:er,areaEnd:er,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(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:Ns(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const Hb=(function e(t){function r(i){return new Sn(i,t)}return r.tension=function(i){return e(+i)},r})(0);function Tn(e,t){this._context=e,this._k=(1-t)/6}Tn.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,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:Ns(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const Yb=(function e(t){function r(i){return new Tn(i,t)}return r.tension=function(i){return e(+i)},r})(0);function _n(e,t,r){var i=e._x1,s=e._y1,o=e._x2,a=e._y2;if(e._l01_a>ih){var n=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,l=3*e._l01_a*(e._l01_a+e._l12_a);i=(i*n-e._x0*e._l12_2a+e._x2*e._l01_2a)/l,s=(s*n-e._y0*e._l12_2a+e._y2*e._l01_2a)/l}if(e._l23_a>ih){var c=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,h=3*e._l23_a*(e._l23_a+e._l12_a);o=(o*c+e._x1*e._l23_2a-t*e._l12_2a)/h,a=(a*c+e._y1*e._l23_2a-r*e._l12_2a)/h}e._context.bezierCurveTo(i,s,o,a,e._x2,e._y2)}function ud(e,t){this._context=e,this._alpha=t}ud.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}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var r=this._x2-e,i=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+i*i,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:_n(this,e,t);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=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const dd=(function e(t){function r(i){return t?new ud(i,t):new wn(i,0)}return r.alpha=function(i){return e(+i)},r})(.5);function fd(e,t){this._context=e,this._alpha=t}fd.prototype={areaStart:er,areaEnd:er,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(e,t){if(e=+e,t=+t,this._point){var r=this._x2-e,i=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+i*i,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:_n(this,e,t);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=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const jb=(function e(t){function r(i){return t?new fd(i,t):new Sn(i,0)}return r.alpha=function(i){return e(+i)},r})(.5);function gd(e,t){this._context=e,this._alpha=t}gd.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var r=this._x2-e,i=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+i*i,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:_n(this,e,t);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=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const Ub=(function e(t){function r(i){return t?new gd(i,t):new Tn(i,0)}return r.alpha=function(i){return e(+i)},r})(.5);function pd(e){this._context=e}pd.prototype={areaStart:er,areaEnd:er,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function Gb(e){return new pd(e)}function oh(e){return e<0?-1:1}function ah(e,t,r){var i=e._x1-e._x0,s=t-e._x1,o=(e._y1-e._y0)/(i||s<0&&-0),a=(r-e._y1)/(s||i<0&&-0),n=(o*s+a*i)/(i+s);return(oh(o)+oh(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(n))||0}function nh(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function Fo(e,t,r){var i=e._x0,s=e._y0,o=e._x1,a=e._y1,n=(o-i)/3;e._context.bezierCurveTo(i+n,s+n*t,o-n,a-n*r,o,a)}function Ws(e){this._context=e}Ws.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:Fo(this,this._t0,nh(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var r=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,Fo(this,nh(this,r=ah(this,e,t)),r);break;default:Fo(this,this._t0,r=ah(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function yd(e){this._context=new md(e)}(yd.prototype=Object.create(Ws.prototype)).point=function(e,t){Ws.prototype.point.call(this,t,e)};function md(e){this._context=e}md.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,r,i,s,o){this._context.bezierCurveTo(t,e,i,r,o,s)}};function xd(e){return new Ws(e)}function Cd(e){return new yd(e)}function bd(e){this._context=e}bd.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,r=e.length;if(r)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),r===2)this._context.lineTo(e[1],t[1]);else for(var i=lh(e),s=lh(t),o=0,a=1;a<r;++o,++a)this._context.bezierCurveTo(i[0][o],s[0][o],i[1][o],s[1][o],e[a],t[a]);(this._line||this._line!==0&&r===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function lh(e){var t,r=e.length-1,i,s=new Array(r),o=new Array(r),a=new Array(r);for(s[0]=0,o[0]=2,a[0]=e[0]+2*e[1],t=1;t<r-1;++t)s[t]=1,o[t]=4,a[t]=4*e[t]+2*e[t+1];for(s[r-1]=2,o[r-1]=7,a[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)i=s[t]/o[t-1],o[t]-=i,a[t]-=i*a[t-1];for(s[r-1]=a[r-1]/o[r-1],t=r-2;t>=0;--t)s[t]=(a[t]-s[t+1])/o[t];for(o[r-1]=(e[r]+s[r-1])/2,t=0;t<r-1;++t)o[t]=2*e[t+1]-s[t+1];return[s,o]}function kd(e){return new bd(e)}function ao(e,t){this._context=e,this._t=t}ao.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var r=this._x*(1-this._t)+e*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,t)}break}}this._x=e,this._y=t}};function wd(e){return new ao(e,.5)}function Sd(e){return new ao(e,0)}function Td(e){return new ao(e,1)}function ki(e,t,r){this.k=e,this.x=t,this.y=r}ki.prototype={constructor:ki,scale:function(e){return e===1?this:new ki(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new ki(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};ki.prototype;var Xb=g(e=>{const{securityLevel:t}=Bt();let r=Tt("body");if(t==="sandbox"){const o=Tt(`#i${e}`).node()?.contentDocument??document;r=Tt(o.body)}return r.select(`#${e}`)},"selectSvgElement"),Vb=g(e=>{const{handDrawnSeed:t}=Bt();return{fill:e,hachureAngle:120,hachureGap:4,fillWeight:2,roughness:.7,stroke:e,seed:t}},"solidStateFill"),Zb=g(e=>Array.isArray(e)?e:e?e.split(";").map(t=>t.trim()).filter(Boolean):[],"normalizeStyleList"),Zr=g(e=>{const t=Kb([...e.cssCompiledStyles||[],...e.cssStyles||[],...Zb(e.labelStyle)]);return{stylesMap:t,stylesArray:[...t]}},"compileStyles"),Kb=g(e=>{const t=new Map;return e.forEach(r=>{const[i,s]=r.split(":");t.set(i.trim(),s?.trim())}),t},"styles2Map"),_d=g(e=>e==="color"||e==="font-size"||e==="font-family"||e==="font-weight"||e==="font-style"||e==="text-decoration"||e==="text-align"||e==="text-transform"||e==="line-height"||e==="letter-spacing"||e==="word-spacing"||e==="text-shadow"||e==="text-overflow"||e==="white-space"||e==="word-wrap"||e==="word-break"||e==="overflow-wrap"||e==="hyphens","isLabelStyle"),nt=g(e=>{const{stylesArray:t}=Zr(e),r=[],i=[],s=[],o=[];return t.forEach(a=>{const n=a[0];_d(n)?r.push(a.join(":")+" !important"):(i.push(a.join(":")+" !important"),n.includes("stroke")&&s.push(a.join(":")+" !important"),n==="fill"&&o.push(a.join(":")+" !important"))}),{labelStyles:r.join(";"),nodeStyles:i.join(";"),stylesArray:t,borderStyles:s,backgroundStyles:o}},"styles2String"),it=g((e,t)=>{const{themeVariables:r,handDrawnSeed:i}=Bt(),{nodeBorder:s,mainBkg:o}=r,{stylesMap:a}=Zr(e);return Object.assign({roughness:.7,fill:a.get("fill")||o,fillStyle:"hachure",fillWeight:4,hachureGap:5.2,stroke:a.get("stroke")||s,seed:i,strokeWidth:a.get("stroke-width")?.replace("px","")||1.3,fillLineDash:[0,0],strokeLineDash:Qb(a.get("stroke-dasharray"))},t)},"userNodeOverrides"),Qb=g(e=>{if(!e)return[0,0];const t=e.trim().split(/\s+/).map(Number);if(t.length===1){const s=isNaN(t[0])?0:t[0];return[s,s]}const r=isNaN(t[0])?0:t[0],i=isNaN(t[1])?0:t[1];return[r,i]},"getStrokeDashArray");const Jb=Object.freeze({left:0,top:0,width:16,height:16}),zs=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),Bd=Object.freeze({...Jb,...zs}),t1=Object.freeze({...Bd,body:"",hidden:!1}),e1=Object.freeze({width:null,height:null}),r1=Object.freeze({...e1,...zs}),i1=(e,t,r,i="")=>{const s=e.split(":");if(e.slice(0,1)==="@"){if(s.length<2||s.length>3)return null;i=s.shift().slice(1)}if(s.length>3||!s.length)return null;if(s.length>1){const n=s.pop(),l=s.pop(),c={provider:s.length>0?s[0]:i,prefix:l,name:n};return Mo(c)?c:null}const o=s[0],a=o.split("-");if(a.length>1){const n={provider:i,prefix:a.shift(),name:a.join("-")};return Mo(n)?n:null}if(r&&i===""){const n={provider:i,prefix:"",name:o};return Mo(n,r)?n:null}return null},Mo=(e,t)=>e?!!((t&&e.prefix===""||e.prefix)&&e.name):!1;function s1(e,t){const r={};!e.hFlip!=!t.hFlip&&(r.hFlip=!0),!e.vFlip!=!t.vFlip&&(r.vFlip=!0);const i=((e.rotate||0)+(t.rotate||0))%4;return i&&(r.rotate=i),r}function hh(e,t){const r=s1(e,t);for(const i in t1)i in zs?i in e&&!(i in r)&&(r[i]=zs[i]):i in t?r[i]=t[i]:i in e&&(r[i]=e[i]);return r}function o1(e,t){const r=e.icons,i=e.aliases||Object.create(null),s=Object.create(null);function o(a){if(r[a])return s[a]=[];if(!(a in s)){s[a]=null;const n=i[a]&&i[a].parent,l=n&&o(n);l&&(s[a]=[n].concat(l))}return s[a]}return(t||Object.keys(r).concat(Object.keys(i))).forEach(o),s}function ch(e,t,r){const i=e.icons,s=e.aliases||Object.create(null);let o={};function a(n){o=hh(i[n]||s[n],o)}return a(t),r.forEach(a),hh(e,o)}function a1(e,t){if(e.icons[t])return ch(e,t,[]);const r=o1(e,[t])[t];return r?ch(e,t,r):null}const n1=/(-?[0-9.]*[0-9]+[0-9.]*)/g,l1=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function uh(e,t,r){if(t===1)return e;if(r=r||100,typeof e=="number")return Math.ceil(e*t*r)/r;if(typeof e!="string")return e;const i=e.split(n1);if(i===null||!i.length)return e;const s=[];let o=i.shift(),a=l1.test(o);for(;;){if(a){const n=parseFloat(o);isNaN(n)?s.push(o):s.push(Math.ceil(n*t*r)/r)}else s.push(o);if(o=i.shift(),o===void 0)return s.join("");a=!a}}function h1(e,t="defs"){let r="";const i=e.indexOf("<"+t);for(;i>=0;){const s=e.indexOf(">",i),o=e.indexOf("</"+t);if(s===-1||o===-1)break;const a=e.indexOf(">",o);if(a===-1)break;r+=e.slice(s+1,o).trim(),e=e.slice(0,i).trim()+e.slice(a+1)}return{defs:r,content:e}}function c1(e,t){return e?"<defs>"+e+"</defs>"+t:t}function u1(e,t,r){const i=h1(e);return c1(i.defs,t+i.content+r)}const d1=e=>e==="unset"||e==="undefined"||e==="none";function f1(e,t){const r={...Bd,...e},i={...r1,...t},s={left:r.left,top:r.top,width:r.width,height:r.height};let o=r.body;[r,i].forEach(m=>{const x=[],C=m.hFlip,k=m.vFlip;let S=m.rotate;C?k?S+=2:(x.push("translate("+(s.width+s.left).toString()+" "+(0-s.top).toString()+")"),x.push("scale(-1 1)"),s.top=s.left=0):k&&(x.push("translate("+(0-s.left).toString()+" "+(s.height+s.top).toString()+")"),x.push("scale(1 -1)"),s.top=s.left=0);let T;switch(S<0&&(S-=Math.floor(S/4)*4),S=S%4,S){case 1:T=s.height/2+s.top,x.unshift("rotate(90 "+T.toString()+" "+T.toString()+")");break;case 2:x.unshift("rotate(180 "+(s.width/2+s.left).toString()+" "+(s.height/2+s.top).toString()+")");break;case 3:T=s.width/2+s.left,x.unshift("rotate(-90 "+T.toString()+" "+T.toString()+")");break}S%2===1&&(s.left!==s.top&&(T=s.left,s.left=s.top,s.top=T),s.width!==s.height&&(T=s.width,s.width=s.height,s.height=T)),x.length&&(o=u1(o,'<g transform="'+x.join(" ")+'">',"</g>"))});const a=i.width,n=i.height,l=s.width,c=s.height;let h,u;a===null?(u=n===null?"1em":n==="auto"?c:n,h=uh(u,l/c)):(h=a==="auto"?l:a,u=n===null?uh(h,c/l):n==="auto"?c:n);const d={},f=(m,x)=>{d1(x)||(d[m]=x.toString())};f("width",h),f("height",u);const y=[s.left,s.top,l,c];return d.viewBox=y.join(" "),{attributes:d,viewBox:y,body:o}}const g1=/\sid="(\S+)"/g,dh=new Map;function p1(e){e=e.replace(/[0-9]+$/,"")||"a";const t=dh.get(e)||0;return dh.set(e,t+1),t?`${e}${t}`:e}function y1(e){const t=[];let r;for(;r=g1.exec(e);)t.push(r[1]);if(!t.length)return e;const i="suffix"+(Math.random()*16777216|Date.now()).toString(16);return t.forEach(s=>{const o=p1(s),a=s.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+a+')([")]|\\.[a-z])',"g"),"$1"+o+i+"$3")}),e=e.replace(new RegExp(i,"g"),""),e}function m1(e,t){let r=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const i in t)r+=" "+i+'="'+t[i]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+r+">"+e+"</svg>"}var x1={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},$a=new Map,vd=new Map,C1=g(e=>{for(const t of e){if(!t.name)throw new Error('Invalid icon loader. Must have a "name" property with non-empty string value.');if(P.debug("Registering icon pack:",t.name),"loader"in t)vd.set(t.name,t.loader);else if("icons"in t)$a.set(t.name,t.icons);else throw P.error("Invalid icon loader:",t),new Error('Invalid icon loader. Must have either "icons" or "loader" property.')}},"registerIconPacks"),Ld=g(async(e,t)=>{const r=i1(e,!0,t!==void 0);if(!r)throw new Error(`Invalid icon name: ${e}`);const i=r.prefix||t;if(!i)throw new Error(`Icon name must contain a prefix: ${e}`);let s=$a.get(i);if(!s){const a=vd.get(i);if(!a)throw new Error(`Icon set not found: ${r.prefix}`);try{s={...await a(),prefix:i},$a.set(i,s)}catch(n){throw P.error(n),new Error(`Failed to load icon set: ${r.prefix}`)}}const o=a1(s,r.name);if(!o)throw new Error(`Icon not found: ${e}`);return o},"getRegisteredIconData"),b1=g(async e=>{try{return await Ld(e),!0}catch{return!1}},"isIconAvailable"),Ki=g(async(e,t,r)=>{let i;try{i=await Ld(e,t?.fallbackPrefix)}catch(a){P.error(a),i=x1}const s=f1(i,t),o=m1(y1(s.body),{...s.attributes,...r});return le(o,Rt())},"getIconSVG"),ss={},Ht={},fh;function k1(){return fh||(fh=1,Object.defineProperty(Ht,"__esModule",{value:!0}),Ht.BLANK_URL=Ht.relativeFirstCharacters=Ht.whitespaceEscapeCharsRegex=Ht.urlSchemeRegex=Ht.ctrlCharactersRegex=Ht.htmlCtrlEntityRegex=Ht.htmlEntitiesRegex=Ht.invalidProtocolRegex=void 0,Ht.invalidProtocolRegex=/^([^\w]*)(javascript|data|vbscript)/im,Ht.htmlEntitiesRegex=/&#(\w+)(^\w|;)?/g,Ht.htmlCtrlEntityRegex=/&(newline|tab);/gi,Ht.ctrlCharactersRegex=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,Ht.urlSchemeRegex=/^.+(:|&colon;)/gim,Ht.whitespaceEscapeCharsRegex=/(\\|%5[cC])((%(6[eE]|72|74))|[nrt])/g,Ht.relativeFirstCharacters=[".","/"],Ht.BLANK_URL="about:blank"),Ht}var gh;function w1(){if(gh)return ss;gh=1,Object.defineProperty(ss,"__esModule",{value:!0}),ss.sanitizeUrl=o;var e=k1();function t(a){return e.relativeFirstCharacters.indexOf(a[0])>-1}function r(a){var n=a.replace(e.ctrlCharactersRegex,"");return n.replace(e.htmlEntitiesRegex,function(l,c){return String.fromCharCode(c)})}function i(a){return URL.canParse(a)}function s(a){try{return decodeURIComponent(a)}catch{return a}}function o(a){if(!a)return e.BLANK_URL;var n,l=s(a.trim());do l=r(l).replace(e.htmlCtrlEntityRegex,"").replace(e.ctrlCharactersRegex,"").replace(e.whitespaceEscapeCharsRegex,"").trim(),l=s(l),n=l.match(e.ctrlCharactersRegex)||l.match(e.htmlEntitiesRegex)||l.match(e.htmlCtrlEntityRegex)||l.match(e.whitespaceEscapeCharsRegex);while(n&&n.length>0);var c=l;if(!c)return e.BLANK_URL;if(t(c))return c;var h=c.trimStart(),u=h.match(e.urlSchemeRegex);if(!u)return c;var d=u[0].toLowerCase().trim();if(e.invalidProtocolRegex.test(d))return e.BLANK_URL;var f=h.replace(/\\/g,"/");if(d==="mailto:"||d.includes("://"))return f;if(d==="http:"||d==="https:"){if(!i(f))return e.BLANK_URL;var y=new URL(f);return y.protocol=y.protocol.toLowerCase(),y.hostname=y.hostname.toLowerCase(),y.toString()}return f}return ss}var S1=w1();function Ao(e){if(typeof e!="object"||e==null)return!1;if(Object.getPrototypeOf(e)===null)return!0;if(Object.prototype.toString.call(e)!=="[object Object]"){const r=e[Symbol.toStringTag];return r==null||!Object.getOwnPropertyDescriptor(e,Symbol.toStringTag)?.writable?!1:e.toString()===`[object ${r}]`}let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function T1(){}function Fd(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t))}function Bn(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}const _1="[object RegExp]",Md="[object String]",Ad="[object Number]",Ed="[object Boolean]",$d="[object Arguments]",B1="[object Symbol]",v1="[object Date]",L1="[object Map]",F1="[object Set]",M1="[object Array]",A1="[object ArrayBuffer]",E1="[object Object]",$1="[object DataView]",O1="[object Uint8Array]",D1="[object Uint8ClampedArray]",P1="[object Uint16Array]",I1="[object Uint32Array]",R1="[object Int8Array]",q1="[object Int16Array]",N1="[object Int32Array]",W1="[object Float32Array]",z1="[object Float64Array]",ph=typeof globalThis=="object"&&globalThis||typeof window=="object"&&window||typeof self=="object"&&self||typeof global=="object"&&global||(function(){return this})();function vn(e){return typeof ph.Buffer<"u"&&ph.Buffer.isBuffer(e)}function H1(e){return Number.isSafeInteger(e)&&e>=0}function Od(e){return e!=null&&typeof e!="function"&&H1(e.length)}function Y1(e){return e==="__proto__"}function Ln(e){return e==null||typeof e!="object"&&typeof e!="function"}function Fn(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function j1(e,t){return Rr(e,void 0,e,new Map,t)}function Rr(e,t,r,i=new Map,s=void 0){const o=s?.(e,t,r,i);if(o!==void 0)return o;if(Ln(e))return e;if(i.has(e))return i.get(e);if(Array.isArray(e)){const a=new Array(e.length);i.set(e,a);for(let n=0;n<e.length;n++)a[n]=Rr(e[n],n,r,i,s);return Object.hasOwn(e,"index")&&(a.index=e.index),Object.hasOwn(e,"input")&&(a.input=e.input),a}if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp){const a=new RegExp(e.source,e.flags);return a.lastIndex=e.lastIndex,a}if(e instanceof Map){const a=new Map;i.set(e,a);for(const[n,l]of e)a.set(n,Rr(l,n,r,i,s));return a}if(e instanceof Set){const a=new Set;i.set(e,a);for(const n of e)a.add(Rr(n,void 0,r,i,s));return a}if(vn(e))return e.subarray();if(Fn(e)){const a=new(Object.getPrototypeOf(e)).constructor(e.length);i.set(e,a);for(let n=0;n<e.length;n++)a[n]=Rr(e[n],n,r,i,s);return a}if(e instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&e instanceof SharedArrayBuffer)return e.slice(0);if(e instanceof DataView){const a=new DataView(e.buffer.slice(0),e.byteOffset,e.byteLength);return i.set(e,a),fe(a,e,r,i,s),a}if(typeof File<"u"&&e instanceof File){const a=new File([e],e.name,{type:e.type});return i.set(e,a),fe(a,e,r,i,s),a}if(typeof Blob<"u"&&e instanceof Blob){const a=new Blob([e],{type:e.type});return i.set(e,a),fe(a,e,r,i,s),a}if(e instanceof Error){const a=structuredClone(e);return i.set(e,a),a.message=e.message,a.name=e.name,a.stack=e.stack,a.cause=e.cause,a.constructor=e.constructor,fe(a,e,r,i,s),a}if(e instanceof Boolean){const a=new Boolean(e.valueOf());return i.set(e,a),fe(a,e,r,i,s),a}if(e instanceof Number){const a=new Number(e.valueOf());return i.set(e,a),fe(a,e,r,i,s),a}if(e instanceof String){const a=new String(e.valueOf());return i.set(e,a),fe(a,e,r,i,s),a}if(typeof e=="object"&&U1(e)){const a=Object.create(Object.getPrototypeOf(e));return i.set(e,a),fe(a,e,r,i,s),a}return e}function fe(e,t,r=e,i,s){const o=[...Object.keys(t),...Fd(t)];for(let a=0;a<o.length;a++){const n=o[a],l=Object.getOwnPropertyDescriptor(e,n);(l==null||l.writable)&&(e[n]=Rr(t[n],n,r,i,s))}}function U1(e){switch(Bn(e)){case $d:case M1:case A1:case $1:case Ed:case v1:case W1:case z1:case R1:case q1:case N1:case L1:case Ad:case E1:case _1:case F1:case Md:case B1:case O1:case D1:case P1:case I1:return!0;default:return!1}}function G1(e,t){return j1(e,(r,i,s,o)=>{if(typeof e=="object"){if(Bn(e)==="[object Object]"&&typeof e.constructor!="function"){const a={};return o.set(e,a),fe(a,e,s,o),a}switch(Object.prototype.toString.call(e)){case Ad:case Md:case Ed:{const a=new e.constructor(e?.valueOf());return fe(a,e),a}case $d:{const a={};return fe(a,e),a.length=e.length,a[Symbol.iterator]=e[Symbol.iterator],a}default:return}}})}function yh(e){return G1(e)}function Oa(e){return e!==null&&typeof e=="object"&&Bn(e)==="[object Arguments]"}function Da(e){return typeof e=="object"&&e!==null}function X1(e){return Da(e)&&Od(e)}function ks(e){return Fn(e)}function V1(e){const t=e?.constructor;return e===(typeof t=="function"?t.prototype:Object.prototype)}function Qi(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError("Expected a function");const r=function(...i){const s=t?t.apply(this,i):i[0],o=r.cache;if(o.has(s))return o.get(s);const a=e.apply(this,i);return r.cache=o.set(s,a)||o,a};return r.cache=new(Qi.Cache||Map),r}Qi.Cache=Map;function Z1(e){if(Ln(e))return e;if(Array.isArray(e)||Fn(e)||e instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&e instanceof SharedArrayBuffer)return e.slice(0);const t=Object.getPrototypeOf(e);if(t==null)return Object.assign(Object.create(t),e);const r=t.constructor;if(e instanceof Date||e instanceof Map||e instanceof Set)return new r(e);if(e instanceof RegExp){const i=new r(e);return i.lastIndex=e.lastIndex,i}if(e instanceof DataView)return new r(e.buffer.slice(0));if(e instanceof Error){let i;return e instanceof AggregateError?i=new r(e.errors,e.message,{cause:e.cause}):i=new r(e.message,{cause:e.cause}),i.stack=e.stack,Object.assign(i,e),i}return typeof File<"u"&&e instanceof File?new r([e],e.name,{type:e.type,lastModified:e.lastModified}):typeof e=="object"?Object.assign(Object.create(t),e):e}function K1(e,...t){const r=t.slice(0,-1),i=t[t.length-1];let s=e;for(let o=0;o<r.length;o++){const a=r[o];s=ws(s,a,i,new Map)}return s}function ws(e,t,r,i){if(Ln(e)&&(e=Object(e)),t==null||typeof t!="object")return e;if(i.has(t))return Z1(i.get(t));if(i.set(t,e),Array.isArray(t)){t=t.slice();for(let o=0;o<t.length;o++)t[o]=t[o]??void 0}const s=[...Object.keys(t),...Fd(t)];for(let o=0;o<s.length;o++){const a=s[o];if(Y1(a))continue;let n=t[a],l=e[a];if(Oa(n)&&(n={...n}),Oa(l)&&(l={...l}),vn(n)&&(n=yh(n)),Array.isArray(n))if(Array.isArray(l)){const h=[],u=Reflect.ownKeys(l);for(let d=0;d<u.length;d++){const f=u[d];h[f]=l[f]}l=h}else if(X1(l)){const h=[];for(let u=0;u<l.length;u++)h[u]=l[u];l=h}else l=[];const c=r(l,n,a,e,t,i);c!==void 0?e[a]=c:Array.isArray(n)||Da(l)&&Da(n)&&(Ao(l)||Ao(n)||ks(l)||ks(n))?e[a]=ws(l,n,r,i):l==null&&Ao(n)?e[a]=ws({},n,r,i):l==null&&ks(n)?e[a]=yh(n):(l===void 0||n!==void 0)&&(e[a]=n)}return e}function Q1(e,...t){return K1(e,...t,T1)}function mh(e){if(e==null)return!0;if(Od(e))return typeof e.splice!="function"&&typeof e!="string"&&!vn(e)&&!ks(e)&&!Oa(e)?!1:e.length===0;if(typeof e=="object"||typeof e=="function"){if(e instanceof Map||e instanceof Set)return e.size===0;const t=Object.keys(e);return V1(e)?t.filter(r=>r!=="constructor").length===0:t.length===0}return!0}var J1="​",tk={curveBasis:Ea,curveBasisClosed:Nb,curveBasisOpen:Wb,curveBumpX:od,curveBumpY:ad,curveBundle:zb,curveCardinalClosed:Hb,curveCardinalOpen:Yb,curveCardinal:cd,curveCatmullRomClosed:jb,curveCatmullRomOpen:Ub,curveCatmullRom:dd,curveLinear:Ai,curveLinearClosed:Gb,curveMonotoneX:xd,curveMonotoneY:Cd,curveNatural:kd,curveStep:wd,curveStepAfter:Td,curveStepBefore:Sd},ek=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,rk=g(function(e,t){const r=Dd(e,/(?:init\b)|(?:initialize\b)/);let i={};if(Array.isArray(r)){const a=r.map(n=>n.args);Ls(a),i=Yt(i,[...a])}else i=r.args;if(!i)return;let s=ln(e,t);const o="config";return i[o]!==void 0&&(s==="flowchart-v2"&&(s="flowchart"),i[s]=i[o],delete i[o]),i},"detectInit"),Dd=g(function(e,t=null){try{const r=new RegExp(`[%]{2}(?![{]${ek.source})(?=[}][%]{2}).*
126
+ `,"ig");e=e.trim().replace(r,"").replace(/'/gm,'"'),P.debug(`Detecting diagram directive${t!==null?" type:"+t:""} based on the text:${e}`);let i;const s=[];for(;(i=Mi.exec(e))!==null;)if(i.index===Mi.lastIndex&&Mi.lastIndex++,i&&!t||t&&i[1]?.match(t)||t&&i[2]?.match(t)){const o=i[1]?i[1]:i[2],a=i[3]?i[3].trim():i[4]?JSON.parse(i[4].trim()):null;s.push({type:o,args:a})}return s.length===0?{type:e,args:null}:s.length===1?s[0]:s}catch(r){return P.error(`ERROR: ${r.message} - Unable to parse directive type: '${t}' based on the text: '${e}'`),{type:void 0,args:null}}},"detectDirective"),ik=g(function(e){return e.replace(Mi,"")},"removeDirectives"),sk=g(function(e,t){for(const[r,i]of t.entries())if(i.match(e))return r;return-1},"isSubstringInArray");function Mn(e,t){if(!e)return t;const r=`curve${e.charAt(0).toUpperCase()+e.slice(1)}`;return tk[r]??t}g(Mn,"interpolateToCurve");function Pd(e,t){const r=e.trim();if(r)return t.securityLevel!=="loose"?S1.sanitizeUrl(r):r}g(Pd,"formatUrl");var ok=g((e,...t)=>{const r=e.split("."),i=r.length-1,s=r[i];let o=window;for(let a=0;a<i;a++)if(o=o[r[a]],!o){P.error(`Function name: ${e} not found in window`);return}o[s](...t)},"runFunc");function An(e,t){return!e||!t?0:Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}g(An,"distance");function Id(e){let t,r=0;e.forEach(s=>{r+=An(s,t),t=s});const i=r/2;return En(e,i)}g(Id,"traverseEdge");function Rd(e){return e.length===1?e[0]:Id(e)}g(Rd,"calcLabelPosition");var xh=g((e,t=2)=>{const r=Math.pow(10,t);return Math.round(e*r)/r},"roundNumber"),En=g((e,t)=>{let r,i=t;for(const s of e){if(r){const o=An(s,r);if(o===0)return r;if(o<i)i-=o;else{const a=i/o;if(a<=0)return r;if(a>=1)return{x:s.x,y:s.y};if(a>0&&a<1)return{x:xh((1-a)*r.x+a*s.x,5),y:xh((1-a)*r.y+a*s.y,5)}}}r=s}throw new Error("Could not find a suitable point for the given distance")},"calculatePoint"),ak=g((e,t,r)=>{P.info(`our points ${JSON.stringify(t)}`),t[0]!==r&&(t=t.reverse());const s=En(t,25),o=e?10:5,a=Math.atan2(t[0].y-s.y,t[0].x-s.x),n={x:0,y:0};return n.x=Math.sin(a)*o+(t[0].x+s.x)/2,n.y=-Math.cos(a)*o+(t[0].y+s.y)/2,n},"calcCardinalityPosition");function qd(e,t,r){const i=structuredClone(r);P.info("our points",i),t!=="start_left"&&t!=="start_right"&&i.reverse();const s=25+e,o=En(i,s),a=10+e*.5,n=Math.atan2(i[0].y-o.y,i[0].x-o.x),l={x:0,y:0};return t==="start_left"?(l.x=Math.sin(n+Math.PI)*a+(i[0].x+o.x)/2,l.y=-Math.cos(n+Math.PI)*a+(i[0].y+o.y)/2):t==="end_right"?(l.x=Math.sin(n-Math.PI)*a+(i[0].x+o.x)/2-5,l.y=-Math.cos(n-Math.PI)*a+(i[0].y+o.y)/2-5):t==="end_left"?(l.x=Math.sin(n)*a+(i[0].x+o.x)/2-5,l.y=-Math.cos(n)*a+(i[0].y+o.y)/2-5):(l.x=Math.sin(n)*a+(i[0].x+o.x)/2,l.y=-Math.cos(n)*a+(i[0].y+o.y)/2),l}g(qd,"calcTerminalLabelPosition");function Nd(e){let t="",r="";for(const i of e)i!==void 0&&(i.startsWith("color:")||i.startsWith("text-align:")?r=r+i+";":t=t+i+";");return{style:t,labelStyle:r}}g(Nd,"getStylesFromArray");var Ch=0,nk=g(()=>(Ch++,"id-"+Math.random().toString(36).substr(2,12)+"-"+Ch),"generateId");function Wd(e){let t="";const r="0123456789abcdef",i=r.length;for(let s=0;s<e;s++)t+=r.charAt(Math.floor(Math.random()*i));return t}g(Wd,"makeRandomHex");var lk=g(e=>Wd(e.length),"random"),hk=g(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"),ck=g(function(e,t){const r=t.text.replace(Xi.lineBreakRegex," "),[,i]=no(t.fontSize),s=e.append("text");s.attr("x",t.x),s.attr("y",t.y),s.style("text-anchor",t.anchor),s.style("font-family",t.fontFamily),s.style("font-size",i),s.style("font-weight",t.fontWeight),s.attr("fill",t.fill),t.class!==void 0&&s.attr("class",t.class);const o=s.append("tspan");return o.attr("x",t.x+t.textMargin*2),o.attr("fill",t.fill),o.text(r),s},"drawSimpleText"),uk=Qi((e,t,r)=>{if(!e||(r=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"<br/>"},r),Xi.lineBreakRegex.test(e)))return e;const i=e.split(" ").filter(Boolean),s=[];let o="";return i.forEach((a,n)=>{const l=Ye(`${a} `,r),c=Ye(o,r);if(l>t){const{hyphenatedStrings:d,remainingWord:f}=dk(a,t,"-",r);s.push(o,...d),o=f}else c+l>=t?(s.push(o),o=a):o=[o,a].filter(Boolean).join(" ");n+1===i.length&&s.push(o)}),s.filter(a=>a!=="").join(r.joinWith)},(e,t,r)=>`${e}${t}${r.fontSize}${r.fontWeight}${r.fontFamily}${r.joinWith}`),dk=Qi((e,t,r="-",i)=>{i=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},i);const s=[...e],o=[];let a="";return s.forEach((n,l)=>{const c=`${a}${n}`;if(Ye(c,i)>=t){const u=l+1,d=s.length===u,f=`${c}${r}`;o.push(d?c:f),a=""}else a=c}),{hyphenatedStrings:o,remainingWord:a}},(e,t,r="-",i)=>`${e}${t}${r}${i.fontSize}${i.fontWeight}${i.fontFamily}`);function zd(e,t){return $n(e,t).height}g(zd,"calculateTextHeight");function Ye(e,t){return $n(e,t).width}g(Ye,"calculateTextWidth");var $n=Qi((e,t)=>{const{fontSize:r=12,fontFamily:i="Arial",fontWeight:s=400}=t;if(!e)return{width:0,height:0};const[,o]=no(r),a=["sans-serif",i],n=e.split(Xi.lineBreakRegex),l=[],c=Tt("body");if(!c.remove)return{width:0,height:0,lineHeight:0};const h=c.append("svg");for(const d of a){let f=0;const y={width:0,height:0,lineHeight:0};for(const m of n){const x=hk();x.text=m||J1;const C=ck(h,x).style("font-size",o).style("font-weight",s).style("font-family",d),k=(C._groups||C)[0][0].getBBox();if(k.width===0&&k.height===0)throw new Error("svg element not in render tree");y.width=Math.round(Math.max(y.width,k.width)),f=Math.round(k.height),y.height+=f,y.lineHeight=Math.round(Math.max(y.lineHeight,f))}l.push(y)}h.remove();const u=isNaN(l[1].height)||isNaN(l[1].width)||isNaN(l[1].lineHeight)||l[0].height>l[1].height&&l[0].width>l[1].width&&l[0].lineHeight>l[1].lineHeight?0:1;return l[u]},(e,t)=>`${e}${t.fontSize}${t.fontWeight}${t.fontFamily}`),fk=class{constructor(e=!1,t){this.count=0,this.count=t?t.length:0,this.next=e?()=>this.count++:()=>Date.now()}static{g(this,"InitIDGenerator")}},os,gk=g(function(e){return os=os||document.createElement("div"),e=escape(e).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),os.innerHTML=e,unescape(os.textContent)},"entityDecode");function On(e){return"str"in e}g(On,"isDetailedError");var pk=g((e,t,r,i)=>{if(!i)return;const s=e.node()?.getBBox();s&&e.append("text").text(i).attr("text-anchor","middle").attr("x",s.x+s.width/2).attr("y",-r).attr("class",t)},"insertTitle"),no=g(e=>{if(typeof e=="number")return[e,e+"px"];const t=parseInt(e??"",10);return Number.isNaN(t)?[void 0,void 0]:e===String(t)?[t,e+"px"]:[t,e]},"parseFontSize");function Dn(e,t){return Q1({},e,t)}g(Dn,"cleanAndMerge");var Zt={assignWithDepth:Yt,wrapLabel:uk,calculateTextHeight:zd,calculateTextWidth:Ye,calculateTextDimensions:$n,cleanAndMerge:Dn,detectInit:rk,detectDirective:Dd,isSubstringInArray:sk,interpolateToCurve:Mn,calcLabelPosition:Rd,calcCardinalityPosition:ak,calcTerminalLabelPosition:qd,formatUrl:Pd,getStylesFromArray:Nd,generateId:nk,random:lk,runFunc:ok,entityDecode:gk,insertTitle:pk,isLabelCoordinateInPath:Hd,parseFontSize:no,InitIDGenerator:fk},yk=g(function(e){let t=e;return t=t.replace(/style.*:\S*#.*;/g,function(r){return r.substring(0,r.length-1)}),t=t.replace(/classDef.*:\S*#.*;/g,function(r){return r.substring(0,r.length-1)}),t=t.replace(/#\w+;/g,function(r){const i=r.substring(1,r.length-1);return/^\+?\d+$/.test(i)?"fl°°"+i+"¶ß":"fl°"+i+"¶ß"}),t},"encodeEntities"),rr=g(function(e){return e.replace(/fl°°/g,"&#").replace(/fl°/g,"&").replace(/¶ß/g,";")},"decodeEntities"),V5=g((e,t,{counter:r=0,prefix:i,suffix:s},o)=>o||`${i?`${i}_`:""}${e}_${t}_${r}${s?`_${s}`:""}`,"getEdgeId");function zt(e){return e??null}g(zt,"handleUndefinedAttr");function Hd(e,t){const r=Math.round(e.x),i=Math.round(e.y),s=t.replace(/(\d+\.\d+)/g,o=>Math.round(parseFloat(o)).toString());return s.includes(r.toString())||s.includes(i.toString())}g(Hd,"isLabelCoordinateInPath");var Ss={exports:{}},bh=Ss.exports,kh;function mk(){return kh||(kh=1,(function(e){(function(t){var r=function(){},i=t.requestAnimationFrame||t.webkitRequestAnimationFrame||t.mozRequestAnimationFrame||t.msRequestAnimationFrame||function(h){return setTimeout(h,16)};function s(){var h=this;h.reads=[],h.writes=[],h.raf=i.bind(t)}s.prototype={constructor:s,runTasks:function(h){for(var u;u=h.shift();)u()},measure:function(h,u){var d=u?h.bind(u):h;return this.reads.push(d),o(this),d},mutate:function(h,u){var d=u?h.bind(u):h;return this.writes.push(d),o(this),d},clear:function(h){return n(this.reads,h)||n(this.writes,h)},extend:function(h){if(typeof h!="object")throw new Error("expected object");var u=Object.create(this);return l(u,h),u.fastdom=this,u.initialize&&u.initialize(),u},catch:null};function o(h){h.scheduled||(h.scheduled=!0,h.raf(a.bind(null,h)))}function a(h){var u=h.writes,d=h.reads,f;try{r("flushing reads",d.length),h.runTasks(d),r("flushing writes",u.length),h.runTasks(u)}catch(y){f=y}if(h.scheduled=!1,(d.length||u.length)&&o(h),f)if(r("task errored",f.message),h.catch)h.catch(f);else throw f}function n(h,u){var d=h.indexOf(u);return!!~d&&!!h.splice(d,1)}function l(h,u){for(var d in u)u.hasOwnProperty(d)&&(h[d]=u[d])}var c=t.fastdom=t.fastdom||new s;e.exports=c})(typeof window<"u"?window:typeof bh<"u"?bh:globalThis)})(Ss)),Ss.exports}var xk=mk();const Ck=an(xk);var Eo={exports:{}},wh;function bk(){return wh||(wh=1,(function(e){(function(){var t={initialize:function(){this._tasks=new Map},mutate:function(i,s){return r(this,"mutate",i,s)},measure:function(i,s){return r(this,"measure",i,s)},clear:function(i){var s=this._tasks,o=s.get(i);this.fastdom.clear(o),s.delete(i)}};function r(i,s,o,a){var n=i._tasks,l=i.fastdom,c,h=new Promise(function(u,d){c=l[s](function(){n.delete(h);try{u(a?o.call(a):o())}catch(f){d(f)}},a)});return n.set(h,c),h}e.exports=t})()})(Eo)),Eo.exports}var kk=bk();const wk=an(kk);function Pn(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var wr=Pn();function Yd(e){wr=e}var Ei={exec:()=>null};function At(e,t=""){let r=typeof e=="string"?e:e.source,i={replace:(s,o)=>{let a=typeof o=="string"?o:o.source;return a=a.replace(te.caret,"$1"),r=r.replace(s,a),i},getRegex:()=>new RegExp(r,t)};return i}var Sk=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch{return!1}})(),te={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:e=>new RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i")},Tk=/^(?:[ \t]*(?:\n|$))+/,_k=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,Bk=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Ji=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,vk=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,In=/(?:[*+-]|\d{1,9}[.)])/,jd=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Ud=At(jd).replace(/bull/g,In).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(),Lk=At(jd).replace(/bull/g,In).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(),Rn=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,Fk=/^[^\n]+/,qn=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,Mk=At(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",qn).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Ak=At(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,In).getRegex(),lo="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",Nn=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Ek=At("^ {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[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",Nn).replace("tag",lo).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Gd=At(Rn).replace("hr",Ji).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",lo).getRegex(),$k=At(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Gd).getRegex(),Wn={blockquote:$k,code:_k,def:Mk,fences:Bk,heading:vk,hr:Ji,html:Ek,lheading:Ud,list:Ak,newline:Tk,paragraph:Gd,table:Ei,text:Fk},Sh=At("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Ji).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\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",lo).getRegex(),Ok={...Wn,lheading:Lk,table:Sh,paragraph:At(Rn).replace("hr",Ji).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Sh).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",lo).getRegex()},Dk={...Wn,html:At(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Nn).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:Ei,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:At(Rn).replace("hr",Ji).replace("heading",` *#{1,6} *[^
127
+ ]`).replace("lheading",Ud).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},Pk=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Ik=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Xd=/^( {2,}|\\)\n(?!\s*$)/,Rk=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,ho=/[\p{P}\p{S}]/u,zn=/[\s\p{P}\p{S}]/u,Vd=/[^\s\p{P}\p{S}]/u,qk=At(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,zn).getRegex(),Zd=/(?!~)[\p{P}\p{S}]/u,Nk=/(?!~)[\s\p{P}\p{S}]/u,Wk=/(?:[^\s\p{P}\p{S}]|~)/u,zk=At(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",Sk?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),Kd=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,Hk=At(Kd,"u").replace(/punct/g,ho).getRegex(),Yk=At(Kd,"u").replace(/punct/g,Zd).getRegex(),Qd="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",jk=At(Qd,"gu").replace(/notPunctSpace/g,Vd).replace(/punctSpace/g,zn).replace(/punct/g,ho).getRegex(),Uk=At(Qd,"gu").replace(/notPunctSpace/g,Wk).replace(/punctSpace/g,Nk).replace(/punct/g,Zd).getRegex(),Gk=At("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,Vd).replace(/punctSpace/g,zn).replace(/punct/g,ho).getRegex(),Xk=At(/\\(punct)/,"gu").replace(/punct/g,ho).getRegex(),Vk=At(/^<(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(),Zk=At(Nn).replace("(?:-->|$)","-->").getRegex(),Kk=At("^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",Zk).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Hs=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,Qk=At(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",Hs).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Jd=At(/^!?\[(label)\]\[(ref)\]/).replace("label",Hs).replace("ref",qn).getRegex(),tf=At(/^!?\[(ref)\](?:\[\])?/).replace("ref",qn).getRegex(),Jk=At("reflink|nolink(?!\\()","g").replace("reflink",Jd).replace("nolink",tf).getRegex(),Th=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,Hn={_backpedal:Ei,anyPunctuation:Xk,autolink:Vk,blockSkip:zk,br:Xd,code:Ik,del:Ei,emStrongLDelim:Hk,emStrongRDelimAst:jk,emStrongRDelimUnd:Gk,escape:Pk,link:Qk,nolink:tf,punctuation:qk,reflink:Jd,reflinkSearch:Jk,tag:Kk,text:Rk,url:Ei},t2={...Hn,link:At(/^!?\[(label)\]\((.*?)\)/).replace("label",Hs).getRegex(),reflink:At(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Hs).getRegex()},Pa={...Hn,emStrongRDelimAst:Uk,emStrongLDelim:Yk,url:At(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",Th).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:At(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",Th).getRegex()},e2={...Pa,br:At(Xd).replace("{2,}","*").getRegex(),text:At(Pa.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},as={normal:Wn,gfm:Ok,pedantic:Dk},ui={normal:Hn,gfm:Pa,breaks:e2,pedantic:t2},r2={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},_h=e=>r2[e];function Se(e,t){if(t){if(te.escapeTest.test(e))return e.replace(te.escapeReplace,_h)}else if(te.escapeTestNoEncode.test(e))return e.replace(te.escapeReplaceNoEncode,_h);return e}function Bh(e){try{e=encodeURI(e).replace(te.percentDecode,"%")}catch{return null}return e}function vh(e,t){let r=e.replace(te.findPipe,(o,a,n)=>{let l=!1,c=a;for(;--c>=0&&n[c]==="\\";)l=!l;return l?"|":" |"}),i=r.split(te.splitPipe),s=0;if(i[0].trim()||i.shift(),i.length>0&&!i.at(-1)?.trim()&&i.pop(),t)if(i.length>t)i.splice(t);else for(;i.length<t;)i.push("");for(;s<i.length;s++)i[s]=i[s].trim().replace(te.slashPipe,"|");return i}function di(e,t,r){let i=e.length;if(i===0)return"";let s=0;for(;s<i&&e.charAt(i-s-1)===t;)s++;return e.slice(0,i-s)}function i2(e,t){if(e.indexOf(t[1])===-1)return-1;let r=0;for(let i=0;i<e.length;i++)if(e[i]==="\\")i++;else if(e[i]===t[0])r++;else if(e[i]===t[1]&&(r--,r<0))return i;return r>0?-2:-1}function Lh(e,t,r,i,s){let o=t.href,a=t.title||null,n=e[1].replace(s.other.outputLinkReplace,"$1");i.state.inLink=!0;let l={type:e[0].charAt(0)==="!"?"image":"link",raw:r,href:o,title:a,text:n,tokens:i.inlineTokens(n)};return i.state.inLink=!1,l}function s2(e,t,r){let i=e.match(r.other.indentCodeCompensation);if(i===null)return t;let s=i[1];return t.split(`
128
+ `).map(o=>{let a=o.match(r.other.beginningSpace);if(a===null)return o;let[n]=a;return n.length>=s.length?o.slice(s.length):o}).join(`
129
+ `)}var Ys=class{options;rules;lexer;constructor(t){this.options=t||wr}space(t){let r=this.rules.block.newline.exec(t);if(r&&r[0].length>0)return{type:"space",raw:r[0]}}code(t){let r=this.rules.block.code.exec(t);if(r){let i=r[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:r[0],codeBlockStyle:"indented",text:this.options.pedantic?i:di(i,`
130
+ `)}}}fences(t){let r=this.rules.block.fences.exec(t);if(r){let i=r[0],s=s2(i,r[3]||"",this.rules);return{type:"code",raw:i,lang:r[2]?r[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):r[2],text:s}}}heading(t){let r=this.rules.block.heading.exec(t);if(r){let i=r[2].trim();if(this.rules.other.endingHash.test(i)){let s=di(i,"#");(this.options.pedantic||!s||this.rules.other.endingSpaceChar.test(s))&&(i=s.trim())}return{type:"heading",raw:r[0],depth:r[1].length,text:i,tokens:this.lexer.inline(i)}}}hr(t){let r=this.rules.block.hr.exec(t);if(r)return{type:"hr",raw:di(r[0],`
131
+ `)}}blockquote(t){let r=this.rules.block.blockquote.exec(t);if(r){let i=di(r[0],`
132
+ `).split(`
133
+ `),s="",o="",a=[];for(;i.length>0;){let n=!1,l=[],c;for(c=0;c<i.length;c++)if(this.rules.other.blockquoteStart.test(i[c]))l.push(i[c]),n=!0;else if(!n)l.push(i[c]);else break;i=i.slice(c);let h=l.join(`
134
+ `),u=h.replace(this.rules.other.blockquoteSetextReplace,`
135
+ $1`).replace(this.rules.other.blockquoteSetextReplace2,"");s=s?`${s}
136
+ ${h}`:h,o=o?`${o}
137
+ ${u}`:u;let d=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(u,a,!0),this.lexer.state.top=d,i.length===0)break;let f=a.at(-1);if(f?.type==="code")break;if(f?.type==="blockquote"){let y=f,m=y.raw+`
138
+ `+i.join(`
139
+ `),x=this.blockquote(m);a[a.length-1]=x,s=s.substring(0,s.length-y.raw.length)+x.raw,o=o.substring(0,o.length-y.text.length)+x.text;break}else if(f?.type==="list"){let y=f,m=y.raw+`
140
+ `+i.join(`
141
+ `),x=this.list(m);a[a.length-1]=x,s=s.substring(0,s.length-f.raw.length)+x.raw,o=o.substring(0,o.length-y.raw.length)+x.raw,i=m.substring(a.at(-1).raw.length).split(`
142
+ `);continue}}return{type:"blockquote",raw:s,tokens:a,text:o}}}list(t){let r=this.rules.block.list.exec(t);if(r){let i=r[1].trim(),s=i.length>1,o={type:"list",raw:"",ordered:s,start:s?+i.slice(0,-1):"",loose:!1,items:[]};i=s?`\\d{1,9}\\${i.slice(-1)}`:`\\${i}`,this.options.pedantic&&(i=s?i:"[*+-]");let a=this.rules.other.listItemRegex(i),n=!1;for(;t;){let c=!1,h="",u="";if(!(r=a.exec(t))||this.rules.block.hr.test(t))break;h=r[0],t=t.substring(h.length);let d=r[2].split(`
143
+ `,1)[0].replace(this.rules.other.listReplaceTabs,k=>" ".repeat(3*k.length)),f=t.split(`
144
+ `,1)[0],y=!d.trim(),m=0;if(this.options.pedantic?(m=2,u=d.trimStart()):y?m=r[1].length+1:(m=r[2].search(this.rules.other.nonSpaceChar),m=m>4?1:m,u=d.slice(m),m+=r[1].length),y&&this.rules.other.blankLine.test(f)&&(h+=f+`
145
+ `,t=t.substring(f.length+1),c=!0),!c){let k=this.rules.other.nextBulletRegex(m),S=this.rules.other.hrRegex(m),T=this.rules.other.fencesBeginRegex(m),_=this.rules.other.headingBeginRegex(m),L=this.rules.other.htmlBeginRegex(m);for(;t;){let M=t.split(`
146
+ `,1)[0],v;if(f=M,this.options.pedantic?(f=f.replace(this.rules.other.listReplaceNesting," "),v=f):v=f.replace(this.rules.other.tabCharGlobal," "),T.test(f)||_.test(f)||L.test(f)||k.test(f)||S.test(f))break;if(v.search(this.rules.other.nonSpaceChar)>=m||!f.trim())u+=`
147
+ `+v.slice(m);else{if(y||d.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||T.test(d)||_.test(d)||S.test(d))break;u+=`
148
+ `+f}!y&&!f.trim()&&(y=!0),h+=M+`
149
+ `,t=t.substring(M.length+1),d=v.slice(m)}}o.loose||(n?o.loose=!0:this.rules.other.doubleBlankLine.test(h)&&(n=!0));let x=null,C;this.options.gfm&&(x=this.rules.other.listIsTask.exec(u),x&&(C=x[0]!=="[ ] ",u=u.replace(this.rules.other.listReplaceTask,""))),o.items.push({type:"list_item",raw:h,task:!!x,checked:C,loose:!1,text:u,tokens:[]}),o.raw+=h}let l=o.items.at(-1);if(l)l.raw=l.raw.trimEnd(),l.text=l.text.trimEnd();else return;o.raw=o.raw.trimEnd();for(let c=0;c<o.items.length;c++)if(this.lexer.state.top=!1,o.items[c].tokens=this.lexer.blockTokens(o.items[c].text,[]),!o.loose){let h=o.items[c].tokens.filter(d=>d.type==="space"),u=h.length>0&&h.some(d=>this.rules.other.anyLine.test(d.raw));o.loose=u}if(o.loose)for(let c=0;c<o.items.length;c++)o.items[c].loose=!0;return o}}html(t){let r=this.rules.block.html.exec(t);if(r)return{type:"html",block:!0,raw:r[0],pre:r[1]==="pre"||r[1]==="script"||r[1]==="style",text:r[0]}}def(t){let r=this.rules.block.def.exec(t);if(r){let i=r[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),s=r[2]?r[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",o=r[3]?r[3].substring(1,r[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):r[3];return{type:"def",tag:i,raw:r[0],href:s,title:o}}}table(t){let r=this.rules.block.table.exec(t);if(!r||!this.rules.other.tableDelimiter.test(r[2]))return;let i=vh(r[1]),s=r[2].replace(this.rules.other.tableAlignChars,"").split("|"),o=r[3]?.trim()?r[3].replace(this.rules.other.tableRowBlankLine,"").split(`
150
+ `):[],a={type:"table",raw:r[0],header:[],align:[],rows:[]};if(i.length===s.length){for(let n of s)this.rules.other.tableAlignRight.test(n)?a.align.push("right"):this.rules.other.tableAlignCenter.test(n)?a.align.push("center"):this.rules.other.tableAlignLeft.test(n)?a.align.push("left"):a.align.push(null);for(let n=0;n<i.length;n++)a.header.push({text:i[n],tokens:this.lexer.inline(i[n]),header:!0,align:a.align[n]});for(let n of o)a.rows.push(vh(n,a.header.length).map((l,c)=>({text:l,tokens:this.lexer.inline(l),header:!1,align:a.align[c]})));return a}}lheading(t){let r=this.rules.block.lheading.exec(t);if(r)return{type:"heading",raw:r[0],depth:r[2].charAt(0)==="="?1:2,text:r[1],tokens:this.lexer.inline(r[1])}}paragraph(t){let r=this.rules.block.paragraph.exec(t);if(r){let i=r[1].charAt(r[1].length-1)===`
151
+ `?r[1].slice(0,-1):r[1];return{type:"paragraph",raw:r[0],text:i,tokens:this.lexer.inline(i)}}}text(t){let r=this.rules.block.text.exec(t);if(r)return{type:"text",raw:r[0],text:r[0],tokens:this.lexer.inline(r[0])}}escape(t){let r=this.rules.inline.escape.exec(t);if(r)return{type:"escape",raw:r[0],text:r[1]}}tag(t){let r=this.rules.inline.tag.exec(t);if(r)return!this.lexer.state.inLink&&this.rules.other.startATag.test(r[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(r[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(r[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(r[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:r[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:r[0]}}link(t){let r=this.rules.inline.link.exec(t);if(r){let i=r[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(i)){if(!this.rules.other.endAngleBracket.test(i))return;let a=di(i.slice(0,-1),"\\");if((i.length-a.length)%2===0)return}else{let a=i2(r[2],"()");if(a===-2)return;if(a>-1){let n=(r[0].indexOf("!")===0?5:4)+r[1].length+a;r[2]=r[2].substring(0,a),r[0]=r[0].substring(0,n).trim(),r[3]=""}}let s=r[2],o="";if(this.options.pedantic){let a=this.rules.other.pedanticHrefTitle.exec(s);a&&(s=a[1],o=a[3])}else o=r[3]?r[3].slice(1,-1):"";return s=s.trim(),this.rules.other.startAngleBracket.test(s)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(i)?s=s.slice(1):s=s.slice(1,-1)),Lh(r,{href:s&&s.replace(this.rules.inline.anyPunctuation,"$1"),title:o&&o.replace(this.rules.inline.anyPunctuation,"$1")},r[0],this.lexer,this.rules)}}reflink(t,r){let i;if((i=this.rules.inline.reflink.exec(t))||(i=this.rules.inline.nolink.exec(t))){let s=(i[2]||i[1]).replace(this.rules.other.multipleSpaceGlobal," "),o=r[s.toLowerCase()];if(!o){let a=i[0].charAt(0);return{type:"text",raw:a,text:a}}return Lh(i,o,i[0],this.lexer,this.rules)}}emStrong(t,r,i=""){let s=this.rules.inline.emStrongLDelim.exec(t);if(!(!s||s[3]&&i.match(this.rules.other.unicodeAlphaNumeric))&&(!(s[1]||s[2])||!i||this.rules.inline.punctuation.exec(i))){let o=[...s[0]].length-1,a,n,l=o,c=0,h=s[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(h.lastIndex=0,r=r.slice(-1*t.length+o);(s=h.exec(r))!=null;){if(a=s[1]||s[2]||s[3]||s[4]||s[5]||s[6],!a)continue;if(n=[...a].length,s[3]||s[4]){l+=n;continue}else if((s[5]||s[6])&&o%3&&!((o+n)%3)){c+=n;continue}if(l-=n,l>0)continue;n=Math.min(n,n+l+c);let u=[...s[0]][0].length,d=t.slice(0,o+s.index+u+n);if(Math.min(o,n)%2){let y=d.slice(1,-1);return{type:"em",raw:d,text:y,tokens:this.lexer.inlineTokens(y)}}let f=d.slice(2,-2);return{type:"strong",raw:d,text:f,tokens:this.lexer.inlineTokens(f)}}}}codespan(t){let r=this.rules.inline.code.exec(t);if(r){let i=r[2].replace(this.rules.other.newLineCharGlobal," "),s=this.rules.other.nonSpaceChar.test(i),o=this.rules.other.startingSpaceChar.test(i)&&this.rules.other.endingSpaceChar.test(i);return s&&o&&(i=i.substring(1,i.length-1)),{type:"codespan",raw:r[0],text:i}}}br(t){let r=this.rules.inline.br.exec(t);if(r)return{type:"br",raw:r[0]}}del(t){let r=this.rules.inline.del.exec(t);if(r)return{type:"del",raw:r[0],text:r[2],tokens:this.lexer.inlineTokens(r[2])}}autolink(t){let r=this.rules.inline.autolink.exec(t);if(r){let i,s;return r[2]==="@"?(i=r[1],s="mailto:"+i):(i=r[1],s=i),{type:"link",raw:r[0],text:i,href:s,tokens:[{type:"text",raw:i,text:i}]}}}url(t){let r;if(r=this.rules.inline.url.exec(t)){let i,s;if(r[2]==="@")i=r[0],s="mailto:"+i;else{let o;do o=r[0],r[0]=this.rules.inline._backpedal.exec(r[0])?.[0]??"";while(o!==r[0]);i=r[0],r[1]==="www."?s="http://"+r[0]:s=r[0]}return{type:"link",raw:r[0],text:i,href:s,tokens:[{type:"text",raw:i,text:i}]}}}inlineText(t){let r=this.rules.inline.text.exec(t);if(r){let i=this.lexer.state.inRawBlock;return{type:"text",raw:r[0],text:r[0],escaped:i}}}},ge=class Ia{tokens;options;state;tokenizer;inlineQueue;constructor(t){this.tokens=[],this.tokens.links=Object.create(null),this.options=t||wr,this.options.tokenizer=this.options.tokenizer||new Ys,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 r={other:te,block:as.normal,inline:ui.normal};this.options.pedantic?(r.block=as.pedantic,r.inline=ui.pedantic):this.options.gfm&&(r.block=as.gfm,this.options.breaks?r.inline=ui.breaks:r.inline=ui.gfm),this.tokenizer.rules=r}static get rules(){return{block:as,inline:ui}}static lex(t,r){return new Ia(r).lex(t)}static lexInline(t,r){return new Ia(r).inlineTokens(t)}lex(t){t=t.replace(te.carriageReturn,`
152
+ `),this.blockTokens(t,this.tokens);for(let r=0;r<this.inlineQueue.length;r++){let i=this.inlineQueue[r];this.inlineTokens(i.src,i.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,r=[],i=!1){for(this.options.pedantic&&(t=t.replace(te.tabCharGlobal," ").replace(te.spaceLine,""));t;){let s;if(this.options.extensions?.block?.some(a=>(s=a.call({lexer:this},t,r))?(t=t.substring(s.raw.length),r.push(s),!0):!1))continue;if(s=this.tokenizer.space(t)){t=t.substring(s.raw.length);let a=r.at(-1);s.raw.length===1&&a!==void 0?a.raw+=`
153
+ `:r.push(s);continue}if(s=this.tokenizer.code(t)){t=t.substring(s.raw.length);let a=r.at(-1);a?.type==="paragraph"||a?.type==="text"?(a.raw+=(a.raw.endsWith(`
154
+ `)?"":`
155
+ `)+s.raw,a.text+=`
156
+ `+s.text,this.inlineQueue.at(-1).src=a.text):r.push(s);continue}if(s=this.tokenizer.fences(t)){t=t.substring(s.raw.length),r.push(s);continue}if(s=this.tokenizer.heading(t)){t=t.substring(s.raw.length),r.push(s);continue}if(s=this.tokenizer.hr(t)){t=t.substring(s.raw.length),r.push(s);continue}if(s=this.tokenizer.blockquote(t)){t=t.substring(s.raw.length),r.push(s);continue}if(s=this.tokenizer.list(t)){t=t.substring(s.raw.length),r.push(s);continue}if(s=this.tokenizer.html(t)){t=t.substring(s.raw.length),r.push(s);continue}if(s=this.tokenizer.def(t)){t=t.substring(s.raw.length);let a=r.at(-1);a?.type==="paragraph"||a?.type==="text"?(a.raw+=(a.raw.endsWith(`
157
+ `)?"":`
158
+ `)+s.raw,a.text+=`
159
+ `+s.raw,this.inlineQueue.at(-1).src=a.text):this.tokens.links[s.tag]||(this.tokens.links[s.tag]={href:s.href,title:s.title},r.push(s));continue}if(s=this.tokenizer.table(t)){t=t.substring(s.raw.length),r.push(s);continue}if(s=this.tokenizer.lheading(t)){t=t.substring(s.raw.length),r.push(s);continue}let o=t;if(this.options.extensions?.startBlock){let a=1/0,n=t.slice(1),l;this.options.extensions.startBlock.forEach(c=>{l=c.call({lexer:this},n),typeof l=="number"&&l>=0&&(a=Math.min(a,l))}),a<1/0&&a>=0&&(o=t.substring(0,a+1))}if(this.state.top&&(s=this.tokenizer.paragraph(o))){let a=r.at(-1);i&&a?.type==="paragraph"?(a.raw+=(a.raw.endsWith(`
160
+ `)?"":`
161
+ `)+s.raw,a.text+=`
162
+ `+s.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=a.text):r.push(s),i=o.length!==t.length,t=t.substring(s.raw.length);continue}if(s=this.tokenizer.text(t)){t=t.substring(s.raw.length);let a=r.at(-1);a?.type==="text"?(a.raw+=(a.raw.endsWith(`
163
+ `)?"":`
164
+ `)+s.raw,a.text+=`
165
+ `+s.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=a.text):r.push(s);continue}if(t){let a="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(a);break}else throw new Error(a)}}return this.state.top=!0,r}inline(t,r=[]){return this.inlineQueue.push({src:t,tokens:r}),r}inlineTokens(t,r=[]){let i=t,s=null;if(this.tokens.links){let l=Object.keys(this.tokens.links);if(l.length>0)for(;(s=this.tokenizer.rules.inline.reflinkSearch.exec(i))!=null;)l.includes(s[0].slice(s[0].lastIndexOf("[")+1,-1))&&(i=i.slice(0,s.index)+"["+"a".repeat(s[0].length-2)+"]"+i.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(s=this.tokenizer.rules.inline.anyPunctuation.exec(i))!=null;)i=i.slice(0,s.index)+"++"+i.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let o;for(;(s=this.tokenizer.rules.inline.blockSkip.exec(i))!=null;)o=s[2]?s[2].length:0,i=i.slice(0,s.index+o)+"["+"a".repeat(s[0].length-o-2)+"]"+i.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);i=this.options.hooks?.emStrongMask?.call({lexer:this},i)??i;let a=!1,n="";for(;t;){a||(n=""),a=!1;let l;if(this.options.extensions?.inline?.some(h=>(l=h.call({lexer:this},t,r))?(t=t.substring(l.raw.length),r.push(l),!0):!1))continue;if(l=this.tokenizer.escape(t)){t=t.substring(l.raw.length),r.push(l);continue}if(l=this.tokenizer.tag(t)){t=t.substring(l.raw.length),r.push(l);continue}if(l=this.tokenizer.link(t)){t=t.substring(l.raw.length),r.push(l);continue}if(l=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(l.raw.length);let h=r.at(-1);l.type==="text"&&h?.type==="text"?(h.raw+=l.raw,h.text+=l.text):r.push(l);continue}if(l=this.tokenizer.emStrong(t,i,n)){t=t.substring(l.raw.length),r.push(l);continue}if(l=this.tokenizer.codespan(t)){t=t.substring(l.raw.length),r.push(l);continue}if(l=this.tokenizer.br(t)){t=t.substring(l.raw.length),r.push(l);continue}if(l=this.tokenizer.del(t)){t=t.substring(l.raw.length),r.push(l);continue}if(l=this.tokenizer.autolink(t)){t=t.substring(l.raw.length),r.push(l);continue}if(!this.state.inLink&&(l=this.tokenizer.url(t))){t=t.substring(l.raw.length),r.push(l);continue}let c=t;if(this.options.extensions?.startInline){let h=1/0,u=t.slice(1),d;this.options.extensions.startInline.forEach(f=>{d=f.call({lexer:this},u),typeof d=="number"&&d>=0&&(h=Math.min(h,d))}),h<1/0&&h>=0&&(c=t.substring(0,h+1))}if(l=this.tokenizer.inlineText(c)){t=t.substring(l.raw.length),l.raw.slice(-1)!=="_"&&(n=l.raw.slice(-1)),a=!0;let h=r.at(-1);h?.type==="text"?(h.raw+=l.raw,h.text+=l.text):r.push(l);continue}if(t){let h="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(h);break}else throw new Error(h)}}return r}},js=class{options;parser;constructor(t){this.options=t||wr}space(t){return""}code({text:t,lang:r,escaped:i}){let s=(r||"").match(te.notSpaceStart)?.[0],o=t.replace(te.endingNewline,"")+`
166
+ `;return s?'<pre><code class="language-'+Se(s)+'">'+(i?o:Se(o,!0))+`</code></pre>
167
+ `:"<pre><code>"+(i?o:Se(o,!0))+`</code></pre>
168
+ `}blockquote({tokens:t}){return`<blockquote>
169
+ ${this.parser.parse(t)}</blockquote>
170
+ `}html({text:t}){return t}def(t){return""}heading({tokens:t,depth:r}){return`<h${r}>${this.parser.parseInline(t)}</h${r}>
171
+ `}hr(t){return`<hr>
172
+ `}list(t){let r=t.ordered,i=t.start,s="";for(let n=0;n<t.items.length;n++){let l=t.items[n];s+=this.listitem(l)}let o=r?"ol":"ul",a=r&&i!==1?' start="'+i+'"':"";return"<"+o+a+`>
173
+ `+s+"</"+o+`>
174
+ `}listitem(t){let r="";if(t.task){let i=this.checkbox({checked:!!t.checked});t.loose?t.tokens[0]?.type==="paragraph"?(t.tokens[0].text=i+" "+t.tokens[0].text,t.tokens[0].tokens&&t.tokens[0].tokens.length>0&&t.tokens[0].tokens[0].type==="text"&&(t.tokens[0].tokens[0].text=i+" "+Se(t.tokens[0].tokens[0].text),t.tokens[0].tokens[0].escaped=!0)):t.tokens.unshift({type:"text",raw:i+" ",text:i+" ",escaped:!0}):r+=i+" "}return r+=this.parser.parse(t.tokens,!!t.loose),`<li>${r}</li>
175
+ `}checkbox({checked:t}){return"<input "+(t?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:t}){return`<p>${this.parser.parseInline(t)}</p>
176
+ `}table(t){let r="",i="";for(let o=0;o<t.header.length;o++)i+=this.tablecell(t.header[o]);r+=this.tablerow({text:i});let s="";for(let o=0;o<t.rows.length;o++){let a=t.rows[o];i="";for(let n=0;n<a.length;n++)i+=this.tablecell(a[n]);s+=this.tablerow({text:i})}return s&&(s=`<tbody>${s}</tbody>`),`<table>
177
+ <thead>
178
+ `+r+`</thead>
179
+ `+s+`</table>
180
+ `}tablerow({text:t}){return`<tr>
181
+ ${t}</tr>
182
+ `}tablecell(t){let r=this.parser.parseInline(t.tokens),i=t.header?"th":"td";return(t.align?`<${i} align="${t.align}">`:`<${i}>`)+r+`</${i}>
183
+ `}strong({tokens:t}){return`<strong>${this.parser.parseInline(t)}</strong>`}em({tokens:t}){return`<em>${this.parser.parseInline(t)}</em>`}codespan({text:t}){return`<code>${Se(t,!0)}</code>`}br(t){return"<br>"}del({tokens:t}){return`<del>${this.parser.parseInline(t)}</del>`}link({href:t,title:r,tokens:i}){let s=this.parser.parseInline(i),o=Bh(t);if(o===null)return s;t=o;let a='<a href="'+t+'"';return r&&(a+=' title="'+Se(r)+'"'),a+=">"+s+"</a>",a}image({href:t,title:r,text:i,tokens:s}){s&&(i=this.parser.parseInline(s,this.parser.textRenderer));let o=Bh(t);if(o===null)return Se(i);t=o;let a=`<img src="${t}" alt="${i}"`;return r&&(a+=` title="${Se(r)}"`),a+=">",a}text(t){return"tokens"in t&&t.tokens?this.parser.parseInline(t.tokens):"escaped"in t&&t.escaped?t.text:Se(t.text)}},Yn=class{strong({text:t}){return t}em({text:t}){return t}codespan({text:t}){return t}del({text:t}){return t}html({text:t}){return t}text({text:t}){return t}link({text:t}){return""+t}image({text:t}){return""+t}br(){return""}},pe=class Ra{options;renderer;textRenderer;constructor(t){this.options=t||wr,this.options.renderer=this.options.renderer||new js,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Yn}static parse(t,r){return new Ra(r).parse(t)}static parseInline(t,r){return new Ra(r).parseInline(t)}parse(t,r=!0){let i="";for(let s=0;s<t.length;s++){let o=t[s];if(this.options.extensions?.renderers?.[o.type]){let n=o,l=this.options.extensions.renderers[n.type].call({parser:this},n);if(l!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(n.type)){i+=l||"";continue}}let a=o;switch(a.type){case"space":{i+=this.renderer.space(a);continue}case"hr":{i+=this.renderer.hr(a);continue}case"heading":{i+=this.renderer.heading(a);continue}case"code":{i+=this.renderer.code(a);continue}case"table":{i+=this.renderer.table(a);continue}case"blockquote":{i+=this.renderer.blockquote(a);continue}case"list":{i+=this.renderer.list(a);continue}case"html":{i+=this.renderer.html(a);continue}case"def":{i+=this.renderer.def(a);continue}case"paragraph":{i+=this.renderer.paragraph(a);continue}case"text":{let n=a,l=this.renderer.text(n);for(;s+1<t.length&&t[s+1].type==="text";)n=t[++s],l+=`
184
+ `+this.renderer.text(n);r?i+=this.renderer.paragraph({type:"paragraph",raw:l,text:l,tokens:[{type:"text",raw:l,text:l,escaped:!0}]}):i+=l;continue}default:{let n='Token with "'+a.type+'" type was not found.';if(this.options.silent)return console.error(n),"";throw new Error(n)}}}return i}parseInline(t,r=this.renderer){let i="";for(let s=0;s<t.length;s++){let o=t[s];if(this.options.extensions?.renderers?.[o.type]){let n=this.options.extensions.renderers[o.type].call({parser:this},o);if(n!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(o.type)){i+=n||"";continue}}let a=o;switch(a.type){case"escape":{i+=r.text(a);break}case"html":{i+=r.html(a);break}case"link":{i+=r.link(a);break}case"image":{i+=r.image(a);break}case"strong":{i+=r.strong(a);break}case"em":{i+=r.em(a);break}case"codespan":{i+=r.codespan(a);break}case"br":{i+=r.br(a);break}case"del":{i+=r.del(a);break}case"text":{i+=r.text(a);break}default:{let n='Token with "'+a.type+'" type was not found.';if(this.options.silent)return console.error(n),"";throw new Error(n)}}}return i}},wi=class{options;block;constructor(t){this.options=t||wr}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens","emStrongMask"]);static passThroughHooksRespectAsync=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(t){return t}postprocess(t){return t}processAllTokens(t){return t}emStrongMask(t){return t}provideLexer(){return this.block?ge.lex:ge.lexInline}provideParser(){return this.block?pe.parse:pe.parseInline}},o2=class{defaults=Pn();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=pe;Renderer=js;TextRenderer=Yn;Lexer=ge;Tokenizer=Ys;Hooks=wi;constructor(...t){this.use(...t)}walkTokens(t,r){let i=[];for(let s of t)switch(i=i.concat(r.call(this,s)),s.type){case"table":{let o=s;for(let a of o.header)i=i.concat(this.walkTokens(a.tokens,r));for(let a of o.rows)for(let n of a)i=i.concat(this.walkTokens(n.tokens,r));break}case"list":{let o=s;i=i.concat(this.walkTokens(o.items,r));break}default:{let o=s;this.defaults.extensions?.childTokens?.[o.type]?this.defaults.extensions.childTokens[o.type].forEach(a=>{let n=o[a].flat(1/0);i=i.concat(this.walkTokens(n,r))}):o.tokens&&(i=i.concat(this.walkTokens(o.tokens,r)))}}return i}use(...t){let r=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(i=>{let s={...i};if(s.async=this.defaults.async||s.async||!1,i.extensions&&(i.extensions.forEach(o=>{if(!o.name)throw new Error("extension name required");if("renderer"in o){let a=r.renderers[o.name];a?r.renderers[o.name]=function(...n){let l=o.renderer.apply(this,n);return l===!1&&(l=a.apply(this,n)),l}:r.renderers[o.name]=o.renderer}if("tokenizer"in o){if(!o.level||o.level!=="block"&&o.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let a=r[o.level];a?a.unshift(o.tokenizer):r[o.level]=[o.tokenizer],o.start&&(o.level==="block"?r.startBlock?r.startBlock.push(o.start):r.startBlock=[o.start]:o.level==="inline"&&(r.startInline?r.startInline.push(o.start):r.startInline=[o.start]))}"childTokens"in o&&o.childTokens&&(r.childTokens[o.name]=o.childTokens)}),s.extensions=r),i.renderer){let o=this.defaults.renderer||new js(this.defaults);for(let a in i.renderer){if(!(a in o))throw new Error(`renderer '${a}' does not exist`);if(["options","parser"].includes(a))continue;let n=a,l=i.renderer[n],c=o[n];o[n]=(...h)=>{let u=l.apply(o,h);return u===!1&&(u=c.apply(o,h)),u||""}}s.renderer=o}if(i.tokenizer){let o=this.defaults.tokenizer||new Ys(this.defaults);for(let a in i.tokenizer){if(!(a in o))throw new Error(`tokenizer '${a}' does not exist`);if(["options","rules","lexer"].includes(a))continue;let n=a,l=i.tokenizer[n],c=o[n];o[n]=(...h)=>{let u=l.apply(o,h);return u===!1&&(u=c.apply(o,h)),u}}s.tokenizer=o}if(i.hooks){let o=this.defaults.hooks||new wi;for(let a in i.hooks){if(!(a in o))throw new Error(`hook '${a}' does not exist`);if(["options","block"].includes(a))continue;let n=a,l=i.hooks[n],c=o[n];wi.passThroughHooks.has(a)?o[n]=h=>{if(this.defaults.async&&wi.passThroughHooksRespectAsync.has(a))return(async()=>{let d=await l.call(o,h);return c.call(o,d)})();let u=l.call(o,h);return c.call(o,u)}:o[n]=(...h)=>{if(this.defaults.async)return(async()=>{let d=await l.apply(o,h);return d===!1&&(d=await c.apply(o,h)),d})();let u=l.apply(o,h);return u===!1&&(u=c.apply(o,h)),u}}s.hooks=o}if(i.walkTokens){let o=this.defaults.walkTokens,a=i.walkTokens;s.walkTokens=function(n){let l=[];return l.push(a.call(this,n)),o&&(l=l.concat(o.call(this,n))),l}}this.defaults={...this.defaults,...s}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,r){return ge.lex(t,r??this.defaults)}parser(t,r){return pe.parse(t,r??this.defaults)}parseMarkdown(t){return(r,i)=>{let s={...i},o={...this.defaults,...s},a=this.onError(!!o.silent,!!o.async);if(this.defaults.async===!0&&s.async===!1)return a(new 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 r>"u"||r===null)return a(new Error("marked(): input parameter is undefined or null"));if(typeof r!="string")return a(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(r)+", string expected"));if(o.hooks&&(o.hooks.options=o,o.hooks.block=t),o.async)return(async()=>{let n=o.hooks?await o.hooks.preprocess(r):r,l=await(o.hooks?await o.hooks.provideLexer():t?ge.lex:ge.lexInline)(n,o),c=o.hooks?await o.hooks.processAllTokens(l):l;o.walkTokens&&await Promise.all(this.walkTokens(c,o.walkTokens));let h=await(o.hooks?await o.hooks.provideParser():t?pe.parse:pe.parseInline)(c,o);return o.hooks?await o.hooks.postprocess(h):h})().catch(a);try{o.hooks&&(r=o.hooks.preprocess(r));let n=(o.hooks?o.hooks.provideLexer():t?ge.lex:ge.lexInline)(r,o);o.hooks&&(n=o.hooks.processAllTokens(n)),o.walkTokens&&this.walkTokens(n,o.walkTokens);let l=(o.hooks?o.hooks.provideParser():t?pe.parse:pe.parseInline)(n,o);return o.hooks&&(l=o.hooks.postprocess(l)),l}catch(n){return a(n)}}}onError(t,r){return i=>{if(i.message+=`
185
+ Please report this to https://github.com/markedjs/marked.`,t){let s="<p>An error occurred:</p><pre>"+Se(i.message+"",!0)+"</pre>";return r?Promise.resolve(s):s}if(r)return Promise.reject(i);throw i}}},mr=new o2;function $t(e,t){return mr.parse(e,t)}$t.options=$t.setOptions=function(e){return mr.setOptions(e),$t.defaults=mr.defaults,Yd($t.defaults),$t};$t.getDefaults=Pn;$t.defaults=wr;$t.use=function(...e){return mr.use(...e),$t.defaults=mr.defaults,Yd($t.defaults),$t};$t.walkTokens=function(e,t){return mr.walkTokens(e,t)};$t.parseInline=mr.parseInline;$t.Parser=pe;$t.parser=pe.parse;$t.Renderer=js;$t.TextRenderer=Yn;$t.Lexer=ge;$t.lexer=ge.lex;$t.Tokenizer=Ys;$t.Hooks=wi;$t.parse=$t;$t.options;$t.setOptions;$t.use;$t.walkTokens;$t.parseInline;pe.parse;ge.lex;function ef(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var i=Array.from(typeof e=="string"?[e]:e);i[i.length-1]=i[i.length-1].replace(/\r?\n([\t ]*)$/,"");var s=i.reduce(function(n,l){var c=l.match(/\n([\t ]+|(?!\s).)/g);return c?n.concat(c.map(function(h){var u,d;return(d=(u=h.match(/[\t ]/g))===null||u===void 0?void 0:u.length)!==null&&d!==void 0?d:0})):n},[]);if(s.length){var o=new RegExp(`
186
+ [ ]{`.concat(Math.min.apply(Math,s),"}"),"g");i=i.map(function(n){return n.replace(o,`
187
+ `)})}i[0]=i[0].replace(/^\r?\n/,"");var a=i[0];return t.forEach(function(n,l){var c=a.match(/(?:^|\n)( *)$/),h=c?c[1]:"",u=n;typeof n=="string"&&n.includes(`
188
+ `)&&(u=String(n).split(`
189
+ `).map(function(d,f){return f===0?d:"".concat(h).concat(d)}).join(`
190
+ `)),a+=u+i[l+1]}),a}var qa=typeof performance<"u"&&typeof performance.now=="function",Er=g(()=>qa?performance.now():0,"now"),$o="🧜 ",a2="Mermaid render",n2="Mermaid",l2={parse:"tertiary",prepare:"secondary",measure:"primary",layout:"primary-dark",layoutCore:"error",draw:"primary-light",paint:"secondary-dark",serialize:"tertiary-dark",render:"primary-light"};(class{constructor(){this.enabled=!1,this.autoPrint=!0,this.records=[],this.maxRecords=200,this.roots=[],this.stack=[],this.buckets={}}static{g(this,"Profiler")}enable(){return this.enabled=!0,this}disable(){return this.enabled=!1,this}start(e){this.enabled&&(this.roots=[],this.stack=[],this.buckets={},this.begin(e))}tickSync(e,t){if(!this.enabled)return t();const r=Er();try{return t()}finally{this.buckets[e]=(this.buckets[e]??0)+(Er()-r)}}async tick(e,t){if(!this.enabled)return t();const r=Er();try{return await t()}finally{this.buckets[e]=(this.buckets[e]??0)+(Er()-r)}}stop(){if(!this.enabled)return;for(;this.stack.length>0;)this.end();const e=this.roots.at(-1),t=this.runLabel??e?.name;return e&&(this.records.push({label:t??e.name,tree:e,buckets:{...this.buckets}}),this.records.length>this.maxRecords&&this.records.splice(0,this.records.length-this.maxRecords),this.autoPrint&&this.printSummary(e,t)),this.runLabel=void 0,e}begin(e){if(!this.enabled)return;const t={name:e,start:Er(),duration:-1,children:[]},r=this.stack.at(-1);if(r?r.children.push(t):this.roots.push(t),this.stack.push(t),qa&&typeof performance.mark=="function")try{performance.mark(`${$o}${e} ▶`)}catch{}}end(){if(!this.enabled)return;const e=this.stack.pop();if(!e)return;const t=Er();if(e.duration=t-e.start,qa&&typeof performance.measure=="function")try{performance.measure(`${$o}${e.name}`,{start:e.start,end:t,detail:{devtools:{dataType:"track-entry",track:a2,trackGroup:n2,color:l2[e.name]??"primary",tooltipText:`${e.name} — ${e.duration.toFixed(1)} ms`}}})}catch{}}async span(e,t){if(!this.enabled)return t();this.begin(e);try{return await t()}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(e=this.report(),t){if(!e)return;const r=e.duration,i=t&&t!==e.name?`${e.name} [${t}]`:e.name,s=["ms % phase"],o=g((n,l)=>{const c=" ".repeat(l),h=n.duration.toFixed(1).padStart(8),u=r>0?`${(n.duration/r*100).toFixed(0).padStart(3)}%`:" -";s.push(`${h} ${u} ${c}${n.name}`);for(const d of n.children)o(d,l+1);if(n.children.length>0){const d=n.children.reduce((y,m)=>y+m.duration,0),f=n.duration-d;if(f>.5){const y=f.toFixed(1).padStart(8);s.push(`${y} ${c} (self)`)}}},"walk");o(e,0);const a=Object.keys(this.buckets);if(a.length>0){s.push("—— buckets (summed) ——");for(const n of a)s.push(`${this.buckets[n].toFixed(1).padStart(8)} ${n}`)}console.log(`${$o}mermaid render profile · ${i}
191
+ ${s.join(`
192
+ `)}`)}});globalThis.injected??={includeLargeFeatures:!0,profiling:!1,version:"0.0.0"};var h2=Ck.extend({raf(e){typeof queueMicrotask=="function"?queueMicrotask(e):setTimeout(e,0)}}).extend(wk),xr=h2;function rf(e,{markdownAutoWrap:t}){const i=e.replace(/<br\/>/g,`
193
+ `).replace(/\n{2,}/g,`
194
+ `);return ef(i)}g(rf,"preprocessMarkdown");function sf(e){return e.split(/\\n|\n|<br\s*\/?>/gi).map(t=>t.trim().match(/<[^>]+>|[^\s<>]+/g)?.map(r=>({content:r,type:"normal"}))??[])}g(sf,"nonMarkdownToLines");function of(e,t={}){const r=rf(e,t),i=$t.lexer(r),s=[[]];let o=0;function a(n,l="normal"){n.type==="text"?n.text.split(`
195
+ `).forEach((h,u)=>{u!==0&&(o++,s.push([])),h.split(" ").forEach(d=>{d=d.replace(/&#39;/g,"'"),d&&s[o].push({content:d,type:l})})}):n.type==="strong"||n.type==="em"?n.tokens.forEach(c=>{a(c,n.type)}):n.type==="html"&&s[o].push({content:n.text,type:"normal"})}return g(a,"processNode"),i.forEach(n=>{n.type==="paragraph"?n.tokens?.forEach(l=>{a(l)}):n.type==="html"?s[o].push({content:n.text,type:"normal"}):s[o].push({content:n.raw,type:"normal"})}),s}g(of,"markdownToLines");function af(e){return e?`<p>${e.replace(/\\n|\n/g,"<br />")}</p>`:""}g(af,"nonMarkdownToHTML");function nf(e,{markdownAutoWrap:t}={}){const r=$t.lexer(e);function i(s){return s.type==="text"?t===!1?s.text.replace(/\n */g,"<br/>").replace(/ /g,"&nbsp;"):s.text.replace(/\n */g,"<br/>"):s.type==="strong"?`<strong>${s.tokens?.map(i).join("")}</strong>`:s.type==="em"?`<em>${s.tokens?.map(i).join("")}</em>`:s.type==="paragraph"?`<p>${s.tokens?.map(i).join("")}</p>`:s.type==="space"?"":s.type==="html"?`${s.text}`:s.type==="escape"?s.text:(P.warn(`Unsupported markdown: ${s.type}`),s.raw)}return g(i,"output"),r.map(i).join("")}g(nf,"markdownToHTML");function lf(e){return Intl.Segmenter?[...new Intl.Segmenter().segment(e)].map(t=>t.segment):[...e]}g(lf,"splitTextToChars");function hf(e,t){const r=lf(t.content);return jn(e,[],r,t.type)}g(hf,"splitWordToFitWidth");function jn(e,t,r,i){if(r.length===0)return[{content:t.join(""),type:i},{content:"",type:i}];const[s,...o]=r,a=[...t,s];return e([{content:a.join(""),type:i}])?jn(e,a,o,i):(t.length===0&&s&&(t.push(s),r.shift()),[{content:t.join(""),type:i},{content:r.join(""),type:i}])}g(jn,"splitWordToFitWidthRecursion");function cf(e,t){if(e.some(({content:r})=>r.includes(`
196
+ `)))throw new Error("splitLineToFitWidth does not support newlines in the line");return Us(e,t)}g(cf,"splitLineToFitWidth");function Us(e,t,r=[],i=[]){if(e.length===0)return i.length>0&&r.push(i),r.length>0?r:[];let s="";e[0].content===" "&&(s=" ",e.shift());const o=e.shift()??{content:" ",type:"normal"},a=[...i];if(s!==""&&a.push({content:s,type:"normal"}),a.push(o),t(a))return Us(e,t,r,a);if(i.length>0)r.push(i),e.unshift(o);else if(o.content){const[n,l]=hf(t,o);r.push([n]),l.content&&e.unshift(l)}return Us(e,t,r)}g(Us,"splitLineToFitWidthRecursion");function Na(e,t){t&&e.attr("style",t)}g(Na,"applyStyle");var Fh=16384;async function uf(e,t,r,i,s=!1,o=Rt()){const a=e.append("foreignObject");a.attr("width",`${Math.min(10*r,Fh)}px`),a.attr("height",`${Math.min(10*r,Fh)}px`);const n=a.append("xhtml:div"),l=Di(t.label)?await vu(t.label.replace(Xi.lineBreakRegex,`
197
+ `),o):le(t.label,o),c=t.isNode?"nodeLabel":"edgeLabel",h=n.append("span");return h.html(l),Na(h,t.labelStyle),h.attr("class",`${c} ${i}`),Na(n,t.labelStyle),n.style("display","table-cell"),n.style("white-space","nowrap"),n.style("line-height","1.5"),r!==Number.POSITIVE_INFINITY&&(n.style("max-width",r+"px"),n.style("text-align","center")),n.attr("xmlns","http://www.w3.org/1999/xhtml"),s&&n.attr("class","labelBkg"),(await xr.measure(()=>n.node().getBoundingClientRect())).width===r&&(n.style("display","table"),n.style("white-space","break-spaces"),n.style("width",r+"px")),a.node()}g(uf,"addHtmlSpan");function co(e,t,r,i=!1){const s=e.append("tspan").attr("class","text-outer-tspan").attr("x",0).attr("y",t*r-.1+"em").attr("dy",r+"em");return i&&s.attr("text-anchor","middle"),s}g(co,"createTspan");function df(e,t,r){const i=e.append("text"),s=co(i,1,t);uo(s,r);const o=s.node().getComputedTextLength();return i.remove(),o}g(df,"computeWidthOfText");function c2(e,t,r){const i=e.append("text"),s=co(i,1,t);uo(s,[{content:r,type:"normal"}]);const o=s.node()?.getBoundingClientRect();return o&&i.remove(),o}g(c2,"computeDimensionOfText");function ff(e,t,r,i=!1,s=!1){const a=t.append("g"),n=a.insert("rect").attr("class","background").attr("style","stroke: none"),l=a.append("text").attr("y","-10.1");s&&l.attr("text-anchor","middle");let c=0;for(const h of r){const u=g(f=>df(a,1.1,f)<=e,"checkWidth"),d=u(h)?[h]:cf(h,u);for(const f of d){const y=co(l,c,1.1,s);uo(y,f),c++}}if(i){const h=l.node().getBBox(),u=2;return n.attr("x",h.x-u).attr("y",h.y-u).attr("width",h.width+2*u).attr("height",h.height+2*u),a.node()}else return l.node()}g(ff,"createFormattedText");function Wa(e){const t=/&(amp|lt|gt);/g;return e.replace(t,(r,i)=>{switch(i){case"amp":return"&";case"lt":return"<";case"gt":return">";default:return r}})}g(Wa,"decodeHTMLEntities");function uo(e,t){e.text(""),t.forEach((r,i)=>{const s=e.append("tspan").attr("font-style",r.type==="em"?"italic":"normal").attr("class","text-inner-tspan").attr("font-weight",r.type==="strong"?"bold":"normal");i===0?s.text(Wa(r.content)):s.text(" "+Wa(r.content))})}g(uo,"updateTextContentAndStyles");async function gf(e,t={}){const r=[];e.replace(/(fa[bklrs]?):fa-([\w-]+)/g,(s,o,a)=>(r.push((async()=>{const n=`${o}:${a}`;return await b1(n)?await Ki(n,void 0,{class:"label-icon"}):`<i class='${le(s,t).replace(":"," ")}'></i>`})()),s));const i=await Promise.all(r);return e.replace(/(fa[bklrs]?):fa-([\w-]+)/g,()=>i.shift()??"")}g(gf,"replaceIconSubstring");var be=g(async(e,t="",{style:r="",isTitle:i=!1,classes:s="",useHtmlLabels:o=!0,markdown:a=!0,isNode:n=!0,width:l=200,addSvgBackground:c=!1}={},h)=>{if(P.debug("XYZ createText",t,r,i,s,o,n,"addSvgBackground: ",c),o){const u=a?nf(t,h):af(t),d=await gf(rr(u),h),f=t.replace(/\\\\/g,"\\"),y={isNode:n,label:Di(t)?f:d,labelStyle:r.replace("fill:","color:")};return await uf(e,y,l,s,c,h)}else{const u=rr(t.replace(/<br\s*\/?>/g,"<br/>")),d=a?of(u.replace("<br>","<br/>"),h):sf(u),f=ff(l,e,d,t?c:!1,!n);if(n){/stroke:/.exec(r)&&(r=r.replace("stroke:","lineColor:"));const y=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");Tt(f).attr("style",y)}else{const y=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/background:/g,"fill:");Tt(f).select("rect").attr("style",y.replace(/background:/g,"fill:"));const m=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");Tt(f).select("text").attr("style",m)}return i?Tt(f).selectAll("tspan.text-outer-tspan").classed("title-row",!0):Tt(f).selectAll("tspan.text-outer-tspan").classed("row",!0),f}},"createText");function Oo(e,t,r){if(e&&e.length){const[i,s]=t,o=Math.PI/180*r,a=Math.cos(o),n=Math.sin(o);for(const l of e){const[c,h]=l;l[0]=(c-i)*a-(h-s)*n+i,l[1]=(c-i)*n+(h-s)*a+s}}}function u2(e,t){return e[0]===t[0]&&e[1]===t[1]}function d2(e,t,r,i=1){const s=r,o=Math.max(t,.1),a=e[0]&&e[0][0]&&typeof e[0][0]=="number"?[e]:e,n=[0,0];if(s)for(const c of a)Oo(c,n,s);const l=(function(c,h,u){const d=[];for(const k of c){const S=[...k];u2(S[0],S[S.length-1])||S.push([S[0][0],S[0][1]]),S.length>2&&d.push(S)}const f=[];h=Math.max(h,.1);const y=[];for(const k of d)for(let S=0;S<k.length-1;S++){const T=k[S],_=k[S+1];if(T[1]!==_[1]){const L=Math.min(T[1],_[1]);y.push({ymin:L,ymax:Math.max(T[1],_[1]),x:L===T[1]?T[0]:_[0],islope:(_[0]-T[0])/(_[1]-T[1])})}}if(y.sort(((k,S)=>k.ymin<S.ymin?-1:k.ymin>S.ymin?1:k.x<S.x?-1:k.x>S.x?1:k.ymax===S.ymax?0:(k.ymax-S.ymax)/Math.abs(k.ymax-S.ymax))),!y.length)return f;let m=[],x=y[0].ymin,C=0;for(;m.length||y.length;){if(y.length){let k=-1;for(let S=0;S<y.length&&!(y[S].ymin>x);S++)k=S;y.splice(0,k+1).forEach((S=>{m.push({s:x,edge:S})}))}if(m=m.filter((k=>!(k.edge.ymax<=x))),m.sort(((k,S)=>k.edge.x===S.edge.x?0:(k.edge.x-S.edge.x)/Math.abs(k.edge.x-S.edge.x))),(u!==1||C%h==0)&&m.length>1)for(let k=0;k<m.length;k+=2){const S=k+1;if(S>=m.length)break;const T=m[k].edge,_=m[S].edge;f.push([[Math.round(T.x),x],[Math.round(_.x),x]])}x+=u,m.forEach((k=>{k.edge.x=k.edge.x+u*k.edge.islope})),C++}return f})(a,o,i);if(s){for(const c of a)Oo(c,n,-s);(function(c,h,u){const d=[];c.forEach((f=>d.push(...f))),Oo(d,h,u)})(l,n,-s)}return l}function ts(e,t){var r;const i=t.hachureAngle+90;let s=t.hachureGap;s<0&&(s=4*t.strokeWidth),s=Math.round(Math.max(s,.1));let o=1;return t.roughness>=1&&(((r=t.randomizer)===null||r===void 0?void 0:r.next())||Math.random())>.7&&(o=s),d2(e,s,i,o||1)}class Un{constructor(t){this.helper=t}fillPolygons(t,r){return this._fillPolygons(t,r)}_fillPolygons(t,r){const i=ts(t,r);return{type:"fillSketch",ops:this.renderLines(i,r)}}renderLines(t,r){const i=[];for(const s of t)i.push(...this.helper.doubleLineOps(s[0][0],s[0][1],s[1][0],s[1][1],r));return i}}function fo(e){const t=e[0],r=e[1];return Math.sqrt(Math.pow(t[0]-r[0],2)+Math.pow(t[1]-r[1],2))}class f2 extends Un{fillPolygons(t,r){let i=r.hachureGap;i<0&&(i=4*r.strokeWidth),i=Math.max(i,.1);const s=ts(t,Object.assign({},r,{hachureGap:i})),o=Math.PI/180*r.hachureAngle,a=[],n=.5*i*Math.cos(o),l=.5*i*Math.sin(o);for(const[c,h]of s)fo([c,h])&&a.push([[c[0]-n,c[1]+l],[...h]],[[c[0]+n,c[1]-l],[...h]]);return{type:"fillSketch",ops:this.renderLines(a,r)}}}class g2 extends Un{fillPolygons(t,r){const i=this._fillPolygons(t,r),s=Object.assign({},r,{hachureAngle:r.hachureAngle+90}),o=this._fillPolygons(t,s);return i.ops=i.ops.concat(o.ops),i}}class p2{constructor(t){this.helper=t}fillPolygons(t,r){const i=ts(t,r=Object.assign({},r,{hachureAngle:0}));return this.dotsOnLines(i,r)}dotsOnLines(t,r){const i=[];let s=r.hachureGap;s<0&&(s=4*r.strokeWidth),s=Math.max(s,.1);let o=r.fillWeight;o<0&&(o=r.strokeWidth/2);const a=s/4;for(const n of t){const l=fo(n),c=l/s,h=Math.ceil(c)-1,u=l-h*s,d=(n[0][0]+n[1][0])/2-s/4,f=Math.min(n[0][1],n[1][1]);for(let y=0;y<h;y++){const m=f+u+y*s,x=d-a+2*Math.random()*a,C=m-a+2*Math.random()*a,k=this.helper.ellipse(x,C,o,o,r);i.push(...k.ops)}}return{type:"fillSketch",ops:i}}}class y2{constructor(t){this.helper=t}fillPolygons(t,r){const i=ts(t,r);return{type:"fillSketch",ops:this.dashedLine(i,r)}}dashedLine(t,r){const i=r.dashOffset<0?r.hachureGap<0?4*r.strokeWidth:r.hachureGap:r.dashOffset,s=r.dashGap<0?r.hachureGap<0?4*r.strokeWidth:r.hachureGap:r.dashGap,o=[];return t.forEach((a=>{const n=fo(a),l=Math.floor(n/(i+s)),c=(n+s-l*(i+s))/2;let h=a[0],u=a[1];h[0]>u[0]&&(h=a[1],u=a[0]);const d=Math.atan((u[1]-h[1])/(u[0]-h[0]));for(let f=0;f<l;f++){const y=f*(i+s),m=y+i,x=[h[0]+y*Math.cos(d)+c*Math.cos(d),h[1]+y*Math.sin(d)+c*Math.sin(d)],C=[h[0]+m*Math.cos(d)+c*Math.cos(d),h[1]+m*Math.sin(d)+c*Math.sin(d)];o.push(...this.helper.doubleLineOps(x[0],x[1],C[0],C[1],r))}})),o}}class m2{constructor(t){this.helper=t}fillPolygons(t,r){const i=r.hachureGap<0?4*r.strokeWidth:r.hachureGap,s=r.zigzagOffset<0?i:r.zigzagOffset,o=ts(t,r=Object.assign({},r,{hachureGap:i+s}));return{type:"fillSketch",ops:this.zigzagLines(o,s,r)}}zigzagLines(t,r,i){const s=[];return t.forEach((o=>{const a=fo(o),n=Math.round(a/(2*r));let l=o[0],c=o[1];l[0]>c[0]&&(l=o[1],c=o[0]);const h=Math.atan((c[1]-l[1])/(c[0]-l[0]));for(let u=0;u<n;u++){const d=2*u*r,f=2*(u+1)*r,y=Math.sqrt(2*Math.pow(r,2)),m=[l[0]+d*Math.cos(h),l[1]+d*Math.sin(h)],x=[l[0]+f*Math.cos(h),l[1]+f*Math.sin(h)],C=[m[0]+y*Math.cos(h+Math.PI/4),m[1]+y*Math.sin(h+Math.PI/4)];s.push(...this.helper.doubleLineOps(m[0],m[1],C[0],C[1],i),...this.helper.doubleLineOps(C[0],C[1],x[0],x[1],i))}})),s}}const ee={};class x2{constructor(t){this.seed=t}next(){return this.seed?(2**31-1&(this.seed=Math.imul(48271,this.seed)))/2**31:Math.random()}}const C2=0,Do=1,Mh=2,ns={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 Po(e,t){return e.type===t}function Gn(e){const t=[],r=(function(a){const n=new Array;for(;a!=="";)if(a.match(/^([ \t\r\n,]+)/))a=a.substr(RegExp.$1.length);else if(a.match(/^([aAcChHlLmMqQsStTvVzZ])/))n[n.length]={type:C2,text:RegExp.$1},a=a.substr(RegExp.$1.length);else{if(!a.match(/^(([-+]?[0-9]+(\.[0-9]*)?|[-+]?\.[0-9]+)([eE][-+]?[0-9]+)?)/))return[];n[n.length]={type:Do,text:`${parseFloat(RegExp.$1)}`},a=a.substr(RegExp.$1.length)}return n[n.length]={type:Mh,text:""},n})(e);let i="BOD",s=0,o=r[s];for(;!Po(o,Mh);){let a=0;const n=[];if(i==="BOD"){if(o.text!=="M"&&o.text!=="m")return Gn("M0,0"+e);s++,a=ns[o.text],i=o.text}else Po(o,Do)?a=ns[i]:(s++,a=ns[o.text],i=o.text);if(!(s+a<r.length))throw new Error("Path data ended short");for(let l=s;l<s+a;l++){const c=r[l];if(!Po(c,Do))throw new Error("Param not a number: "+i+","+c.text);n[n.length]=+c.text}if(typeof ns[i]!="number")throw new Error("Bad segment: "+i);{const l={key:i,data:n};t.push(l),s+=a,o=r[s],i==="M"&&(i="L"),i==="m"&&(i="l")}}return t}function pf(e){let t=0,r=0,i=0,s=0;const o=[];for(const{key:a,data:n}of e)switch(a){case"M":o.push({key:"M",data:[...n]}),[t,r]=n,[i,s]=n;break;case"m":t+=n[0],r+=n[1],o.push({key:"M",data:[t,r]}),i=t,s=r;break;case"L":o.push({key:"L",data:[...n]}),[t,r]=n;break;case"l":t+=n[0],r+=n[1],o.push({key:"L",data:[t,r]});break;case"C":o.push({key:"C",data:[...n]}),t=n[4],r=n[5];break;case"c":{const l=n.map(((c,h)=>h%2?c+r:c+t));o.push({key:"C",data:l}),t=l[4],r=l[5];break}case"Q":o.push({key:"Q",data:[...n]}),t=n[2],r=n[3];break;case"q":{const l=n.map(((c,h)=>h%2?c+r:c+t));o.push({key:"Q",data:l}),t=l[2],r=l[3];break}case"A":o.push({key:"A",data:[...n]}),t=n[5],r=n[6];break;case"a":t+=n[5],r+=n[6],o.push({key:"A",data:[n[0],n[1],n[2],n[3],n[4],t,r]});break;case"H":o.push({key:"H",data:[...n]}),t=n[0];break;case"h":t+=n[0],o.push({key:"H",data:[t]});break;case"V":o.push({key:"V",data:[...n]}),r=n[0];break;case"v":r+=n[0],o.push({key:"V",data:[r]});break;case"S":o.push({key:"S",data:[...n]}),t=n[2],r=n[3];break;case"s":{const l=n.map(((c,h)=>h%2?c+r:c+t));o.push({key:"S",data:l}),t=l[2],r=l[3];break}case"T":o.push({key:"T",data:[...n]}),t=n[0],r=n[1];break;case"t":t+=n[0],r+=n[1],o.push({key:"T",data:[t,r]});break;case"Z":case"z":o.push({key:"Z",data:[]}),t=i,r=s}return o}function yf(e){const t=[];let r="",i=0,s=0,o=0,a=0,n=0,l=0;for(const{key:c,data:h}of e){switch(c){case"M":t.push({key:"M",data:[...h]}),[i,s]=h,[o,a]=h;break;case"C":t.push({key:"C",data:[...h]}),i=h[4],s=h[5],n=h[2],l=h[3];break;case"L":t.push({key:"L",data:[...h]}),[i,s]=h;break;case"H":i=h[0],t.push({key:"L",data:[i,s]});break;case"V":s=h[0],t.push({key:"L",data:[i,s]});break;case"S":{let u=0,d=0;r==="C"||r==="S"?(u=i+(i-n),d=s+(s-l)):(u=i,d=s),t.push({key:"C",data:[u,d,...h]}),n=h[0],l=h[1],i=h[2],s=h[3];break}case"T":{const[u,d]=h;let f=0,y=0;r==="Q"||r==="T"?(f=i+(i-n),y=s+(s-l)):(f=i,y=s);const m=i+2*(f-i)/3,x=s+2*(y-s)/3,C=u+2*(f-u)/3,k=d+2*(y-d)/3;t.push({key:"C",data:[m,x,C,k,u,d]}),n=f,l=y,i=u,s=d;break}case"Q":{const[u,d,f,y]=h,m=i+2*(u-i)/3,x=s+2*(d-s)/3,C=f+2*(u-f)/3,k=y+2*(d-y)/3;t.push({key:"C",data:[m,x,C,k,f,y]}),n=u,l=d,i=f,s=y;break}case"A":{const u=Math.abs(h[0]),d=Math.abs(h[1]),f=h[2],y=h[3],m=h[4],x=h[5],C=h[6];u===0||d===0?(t.push({key:"C",data:[i,s,x,C,x,C]}),i=x,s=C):(i!==x||s!==C)&&(mf(i,s,x,C,u,d,f,y,m).forEach((function(k){t.push({key:"C",data:k})})),i=x,s=C);break}case"Z":t.push({key:"Z",data:[]}),i=o,s=a}r=c}return t}function fi(e,t,r){return[e*Math.cos(r)-t*Math.sin(r),e*Math.sin(r)+t*Math.cos(r)]}function mf(e,t,r,i,s,o,a,n,l,c){const h=(u=a,Math.PI*u/180);var u;let d=[],f=0,y=0,m=0,x=0;if(c)[f,y,m,x]=c;else{[e,t]=fi(e,t,-h),[r,i]=fi(r,i,-h);const H=(e-r)/2,E=(t-i)/2;let O=H*H/(s*s)+E*E/(o*o);O>1&&(O=Math.sqrt(O),s*=O,o*=O);const B=s*s,R=o*o,$=B*R-B*E*E-R*H*H,J=B*E*E+R*H*H,Z=(n===l?-1:1)*Math.sqrt(Math.abs($/J));m=Z*s*E/o+(e+r)/2,x=Z*-o*H/s+(t+i)/2,f=Math.asin(parseFloat(((t-x)/o).toFixed(9))),y=Math.asin(parseFloat(((i-x)/o).toFixed(9))),e<m&&(f=Math.PI-f),r<m&&(y=Math.PI-y),f<0&&(f=2*Math.PI+f),y<0&&(y=2*Math.PI+y),l&&f>y&&(f-=2*Math.PI),!l&&y>f&&(y-=2*Math.PI)}let C=y-f;if(Math.abs(C)>120*Math.PI/180){const H=y,E=r,O=i;y=l&&y>f?f+120*Math.PI/180*1:f+120*Math.PI/180*-1,d=mf(r=m+s*Math.cos(y),i=x+o*Math.sin(y),E,O,s,o,a,0,l,[y,H,m,x])}C=y-f;const k=Math.cos(f),S=Math.sin(f),T=Math.cos(y),_=Math.sin(y),L=Math.tan(C/4),M=4/3*s*L,v=4/3*o*L,X=[e,t],z=[e+M*S,t-v*k],I=[r+M*_,i-v*T],et=[r,i];if(z[0]=2*X[0]-z[0],z[1]=2*X[1]-z[1],c)return[z,I,et].concat(d);{d=[z,I,et].concat(d);const H=[];for(let E=0;E<d.length;E+=3){const O=fi(d[E][0],d[E][1],h),B=fi(d[E+1][0],d[E+1][1],h),R=fi(d[E+2][0],d[E+2][1],h);H.push([O[0],O[1],B[0],B[1],R[0],R[1]])}return H}}const b2={randOffset:function(e,t){return yt(e,t)},randOffsetWithRange:function(e,t,r){return Gs(e,t,r)},ellipse:function(e,t,r,i,s){const o=Cf(r,i,s);return za(e,t,s,o).opset},doubleLineOps:function(e,t,r,i,s){return ir(e,t,r,i,s,!0)}};function xf(e,t,r,i,s){return{type:"path",ops:ir(e,t,r,i,s)}}function Ts(e,t,r){const i=(e||[]).length;if(i>2){const s=[];for(let o=0;o<i-1;o++)s.push(...ir(e[o][0],e[o][1],e[o+1][0],e[o+1][1],r));return t&&s.push(...ir(e[i-1][0],e[i-1][1],e[0][0],e[0][1],r)),{type:"path",ops:s}}return i===2?xf(e[0][0],e[0][1],e[1][0],e[1][1],r):{type:"path",ops:[]}}function k2(e,t,r,i,s){return(function(o,a){return Ts(o,!0,a)})([[e,t],[e+r,t],[e+r,t+i],[e,t+i]],s)}function Ah(e,t){if(e.length){const r=typeof e[0][0]=="number"?[e]:e,i=ls(r[0],1*(1+.2*t.roughness),t),s=t.disableMultiStroke?[]:ls(r[0],1.5*(1+.22*t.roughness),Oh(t));for(let o=1;o<r.length;o++){const a=r[o];if(a.length){const n=ls(a,1*(1+.2*t.roughness),t),l=t.disableMultiStroke?[]:ls(a,1.5*(1+.22*t.roughness),Oh(t));for(const c of n)c.op!=="move"&&i.push(c);for(const c of l)c.op!=="move"&&s.push(c)}}return{type:"path",ops:i.concat(s)}}return{type:"path",ops:[]}}function Cf(e,t,r){const i=Math.sqrt(2*Math.PI*Math.sqrt((Math.pow(e/2,2)+Math.pow(t/2,2))/2)),s=Math.ceil(Math.max(r.curveStepCount,r.curveStepCount/Math.sqrt(200)*i)),o=2*Math.PI/s;let a=Math.abs(e/2),n=Math.abs(t/2);const l=1-r.curveFitting;return a+=yt(a*l,r),n+=yt(n*l,r),{increment:o,rx:a,ry:n}}function za(e,t,r,i){const[s,o]=Dh(i.increment,e,t,i.rx,i.ry,1,i.increment*Gs(.1,Gs(.4,1,r),r),r);let a=Xs(s,null,r);if(!r.disableMultiStroke&&r.roughness!==0){const[n]=Dh(i.increment,e,t,i.rx,i.ry,1.5,0,r),l=Xs(n,null,r);a=a.concat(l)}return{estimatedPoints:o,opset:{type:"path",ops:a}}}function Eh(e,t,r,i,s,o,a,n,l){const c=e,h=t;let u=Math.abs(r/2),d=Math.abs(i/2);u+=yt(.01*u,l),d+=yt(.01*d,l);let f=s,y=o;for(;f<0;)f+=2*Math.PI,y+=2*Math.PI;y-f>2*Math.PI&&(f=0,y=2*Math.PI);const m=2*Math.PI/l.curveStepCount,x=Math.min(m/2,(y-f)/2),C=Ph(x,c,h,u,d,f,y,1,l);if(!l.disableMultiStroke){const k=Ph(x,c,h,u,d,f,y,1.5,l);C.push(...k)}return a&&(n?C.push(...ir(c,h,c+u*Math.cos(f),h+d*Math.sin(f),l),...ir(c,h,c+u*Math.cos(y),h+d*Math.sin(y),l)):C.push({op:"lineTo",data:[c,h]},{op:"lineTo",data:[c+u*Math.cos(f),h+d*Math.sin(f)]})),{type:"path",ops:C}}function $h(e,t){const r=yf(pf(Gn(e))),i=[];let s=[0,0],o=[0,0];for(const{key:a,data:n}of r)switch(a){case"M":o=[n[0],n[1]],s=[n[0],n[1]];break;case"L":i.push(...ir(o[0],o[1],n[0],n[1],t)),o=[n[0],n[1]];break;case"C":{const[l,c,h,u,d,f]=n;i.push(...w2(l,c,h,u,d,f,o,t)),o=[d,f];break}case"Z":i.push(...ir(o[0],o[1],s[0],s[1],t)),o=[s[0],s[1]]}return{type:"path",ops:i}}function Io(e,t){const r=[];for(const i of e)if(i.length){const s=t.maxRandomnessOffset||0,o=i.length;if(o>2){r.push({op:"move",data:[i[0][0]+yt(s,t),i[0][1]+yt(s,t)]});for(let a=1;a<o;a++)r.push({op:"lineTo",data:[i[a][0]+yt(s,t),i[a][1]+yt(s,t)]})}}return{type:"fillPath",ops:r}}function $r(e,t){return(function(r,i){let s=r.fillStyle||"hachure";if(!ee[s])switch(s){case"zigzag":ee[s]||(ee[s]=new f2(i));break;case"cross-hatch":ee[s]||(ee[s]=new g2(i));break;case"dots":ee[s]||(ee[s]=new p2(i));break;case"dashed":ee[s]||(ee[s]=new y2(i));break;case"zigzag-line":ee[s]||(ee[s]=new m2(i));break;default:s="hachure",ee[s]||(ee[s]=new Un(i))}return ee[s]})(t,b2).fillPolygons(e,t)}function Oh(e){const t=Object.assign({},e);return t.randomizer=void 0,e.seed&&(t.seed=e.seed+1),t}function bf(e){return e.randomizer||(e.randomizer=new x2(e.seed||0)),e.randomizer.next()}function Gs(e,t,r,i=1){return r.roughness*i*(bf(r)*(t-e)+e)}function yt(e,t,r=1){return Gs(-e,e,t,r)}function ir(e,t,r,i,s,o=!1){const a=o?s.disableMultiStrokeFill:s.disableMultiStroke,n=Ha(e,t,r,i,s,!0,!1);if(a)return n;const l=Ha(e,t,r,i,s,!0,!0);return n.concat(l)}function Ha(e,t,r,i,s,o,a){const n=Math.pow(e-r,2)+Math.pow(t-i,2),l=Math.sqrt(n);let c=1;c=l<200?1:l>500?.4:-.0016668*l+1.233334;let h=s.maxRandomnessOffset||0;h*h*100>n&&(h=l/10);const u=h/2,d=.2+.2*bf(s);let f=s.bowing*s.maxRandomnessOffset*(i-t)/200,y=s.bowing*s.maxRandomnessOffset*(e-r)/200;f=yt(f,s,c),y=yt(y,s,c);const m=[],x=()=>yt(u,s,c),C=()=>yt(h,s,c),k=s.preserveVertices;return a?m.push({op:"move",data:[e+(k?0:x()),t+(k?0:x())]}):m.push({op:"move",data:[e+(k?0:yt(h,s,c)),t+(k?0:yt(h,s,c))]}),a?m.push({op:"bcurveTo",data:[f+e+(r-e)*d+x(),y+t+(i-t)*d+x(),f+e+2*(r-e)*d+x(),y+t+2*(i-t)*d+x(),r+(k?0:x()),i+(k?0:x())]}):m.push({op:"bcurveTo",data:[f+e+(r-e)*d+C(),y+t+(i-t)*d+C(),f+e+2*(r-e)*d+C(),y+t+2*(i-t)*d+C(),r+(k?0:C()),i+(k?0:C())]}),m}function ls(e,t,r){if(!e.length)return[];const i=[];i.push([e[0][0]+yt(t,r),e[0][1]+yt(t,r)]),i.push([e[0][0]+yt(t,r),e[0][1]+yt(t,r)]);for(let s=1;s<e.length;s++)i.push([e[s][0]+yt(t,r),e[s][1]+yt(t,r)]),s===e.length-1&&i.push([e[s][0]+yt(t,r),e[s][1]+yt(t,r)]);return Xs(i,null,r)}function Xs(e,t,r){const i=e.length,s=[];if(i>3){const o=[],a=1-r.curveTightness;s.push({op:"move",data:[e[1][0],e[1][1]]});for(let n=1;n+2<i;n++){const l=e[n];o[0]=[l[0],l[1]],o[1]=[l[0]+(a*e[n+1][0]-a*e[n-1][0])/6,l[1]+(a*e[n+1][1]-a*e[n-1][1])/6],o[2]=[e[n+1][0]+(a*e[n][0]-a*e[n+2][0])/6,e[n+1][1]+(a*e[n][1]-a*e[n+2][1])/6],o[3]=[e[n+1][0],e[n+1][1]],s.push({op:"bcurveTo",data:[o[1][0],o[1][1],o[2][0],o[2][1],o[3][0],o[3][1]]})}}else i===3?(s.push({op:"move",data:[e[1][0],e[1][1]]}),s.push({op:"bcurveTo",data:[e[1][0],e[1][1],e[2][0],e[2][1],e[2][0],e[2][1]]})):i===2&&s.push(...Ha(e[0][0],e[0][1],e[1][0],e[1][1],r,!0,!0));return s}function Dh(e,t,r,i,s,o,a,n){const l=[],c=[];if(n.roughness===0){e/=4,c.push([t+i*Math.cos(-e),r+s*Math.sin(-e)]);for(let h=0;h<=2*Math.PI;h+=e){const u=[t+i*Math.cos(h),r+s*Math.sin(h)];l.push(u),c.push(u)}c.push([t+i*Math.cos(0),r+s*Math.sin(0)]),c.push([t+i*Math.cos(e),r+s*Math.sin(e)])}else{const h=yt(.5,n)-Math.PI/2;c.push([yt(o,n)+t+.9*i*Math.cos(h-e),yt(o,n)+r+.9*s*Math.sin(h-e)]);const u=2*Math.PI+h-.01;for(let d=h;d<u;d+=e){const f=[yt(o,n)+t+i*Math.cos(d),yt(o,n)+r+s*Math.sin(d)];l.push(f),c.push(f)}c.push([yt(o,n)+t+i*Math.cos(h+2*Math.PI+.5*a),yt(o,n)+r+s*Math.sin(h+2*Math.PI+.5*a)]),c.push([yt(o,n)+t+.98*i*Math.cos(h+a),yt(o,n)+r+.98*s*Math.sin(h+a)]),c.push([yt(o,n)+t+.9*i*Math.cos(h+.5*a),yt(o,n)+r+.9*s*Math.sin(h+.5*a)])}return[c,l]}function Ph(e,t,r,i,s,o,a,n,l){const c=o+yt(.1,l),h=[];h.push([yt(n,l)+t+.9*i*Math.cos(c-e),yt(n,l)+r+.9*s*Math.sin(c-e)]);for(let u=c;u<=a;u+=e)h.push([yt(n,l)+t+i*Math.cos(u),yt(n,l)+r+s*Math.sin(u)]);return h.push([t+i*Math.cos(a),r+s*Math.sin(a)]),h.push([t+i*Math.cos(a),r+s*Math.sin(a)]),Xs(h,null,l)}function w2(e,t,r,i,s,o,a,n){const l=[],c=[n.maxRandomnessOffset||1,(n.maxRandomnessOffset||1)+.3];let h=[0,0];const u=n.disableMultiStroke?1:2,d=n.preserveVertices;for(let f=0;f<u;f++)f===0?l.push({op:"move",data:[a[0],a[1]]}):l.push({op:"move",data:[a[0]+(d?0:yt(c[0],n)),a[1]+(d?0:yt(c[0],n))]}),h=d?[s,o]:[s+yt(c[f],n),o+yt(c[f],n)],l.push({op:"bcurveTo",data:[e+yt(c[f],n),t+yt(c[f],n),r+yt(c[f],n),i+yt(c[f],n),h[0],h[1]]});return l}function gi(e){return[...e]}function Ih(e,t=0){const r=e.length;if(r<3)throw new Error("A curve must have at least three points.");const i=[];if(r===3)i.push(gi(e[0]),gi(e[1]),gi(e[2]),gi(e[2]));else{const s=[];s.push(e[0],e[0]);for(let n=1;n<e.length;n++)s.push(e[n]),n===e.length-1&&s.push(e[n]);const o=[],a=1-t;i.push(gi(s[0]));for(let n=1;n+2<s.length;n++){const l=s[n];o[0]=[l[0],l[1]],o[1]=[l[0]+(a*s[n+1][0]-a*s[n-1][0])/6,l[1]+(a*s[n+1][1]-a*s[n-1][1])/6],o[2]=[s[n+1][0]+(a*s[n][0]-a*s[n+2][0])/6,s[n+1][1]+(a*s[n][1]-a*s[n+2][1])/6],o[3]=[s[n+1][0],s[n+1][1]],i.push(o[1],o[2],o[3])}}return i}function _s(e,t){return Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2)}function S2(e,t,r){const i=_s(t,r);if(i===0)return _s(e,t);let s=((e[0]-t[0])*(r[0]-t[0])+(e[1]-t[1])*(r[1]-t[1]))/i;return s=Math.max(0,Math.min(1,s)),_s(e,hr(t,r,s))}function hr(e,t,r){return[e[0]+(t[0]-e[0])*r,e[1]+(t[1]-e[1])*r]}function Ya(e,t,r,i){const s=i||[];if((function(n,l){const c=n[l+0],h=n[l+1],u=n[l+2],d=n[l+3];let f=3*h[0]-2*c[0]-d[0];f*=f;let y=3*h[1]-2*c[1]-d[1];y*=y;let m=3*u[0]-2*d[0]-c[0];m*=m;let x=3*u[1]-2*d[1]-c[1];return x*=x,f<m&&(f=m),y<x&&(y=x),f+y})(e,t)<r){const n=e[t+0];s.length?(o=s[s.length-1],a=n,Math.sqrt(_s(o,a))>1&&s.push(n)):s.push(n),s.push(e[t+3])}else{const l=e[t+0],c=e[t+1],h=e[t+2],u=e[t+3],d=hr(l,c,.5),f=hr(c,h,.5),y=hr(h,u,.5),m=hr(d,f,.5),x=hr(f,y,.5),C=hr(m,x,.5);Ya([l,d,m,C],0,r,s),Ya([C,x,y,u],0,r,s)}var o,a;return s}function T2(e,t){return Vs(e,0,e.length,t)}function Vs(e,t,r,i,s){const o=s||[],a=e[t],n=e[r-1];let l=0,c=1;for(let h=t+1;h<r-1;++h){const u=S2(e[h],a,n);u>l&&(l=u,c=h)}return Math.sqrt(l)>i?(Vs(e,t,c+1,i,o),Vs(e,c,r,i,o)):(o.length||o.push(a),o.push(n)),o}function Ro(e,t=.15,r){const i=[],s=(e.length-1)/3;for(let o=0;o<s;o++)Ya(e,3*o,t,i);return r&&r>0?Vs(i,0,i.length,r):i}const oe="none";class Zs{constructor(t){this.defaultOptions={maxRandomnessOffset:2,roughness:1,bowing:1,stroke:"#000",strokeWidth:1,curveTightness:0,curveFitting:.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:.8},this.config=t||{},this.config.options&&(this.defaultOptions=this._o(this.config.options))}static newSeed(){return Math.floor(Math.random()*2**31)}_o(t){return t?Object.assign({},this.defaultOptions,t):this.defaultOptions}_d(t,r,i){return{shape:t,sets:r||[],options:i||this.defaultOptions}}line(t,r,i,s,o){const a=this._o(o);return this._d("line",[xf(t,r,i,s,a)],a)}rectangle(t,r,i,s,o){const a=this._o(o),n=[],l=k2(t,r,i,s,a);if(a.fill){const c=[[t,r],[t+i,r],[t+i,r+s],[t,r+s]];a.fillStyle==="solid"?n.push(Io([c],a)):n.push($r([c],a))}return a.stroke!==oe&&n.push(l),this._d("rectangle",n,a)}ellipse(t,r,i,s,o){const a=this._o(o),n=[],l=Cf(i,s,a),c=za(t,r,a,l);if(a.fill)if(a.fillStyle==="solid"){const h=za(t,r,a,l).opset;h.type="fillPath",n.push(h)}else n.push($r([c.estimatedPoints],a));return a.stroke!==oe&&n.push(c.opset),this._d("ellipse",n,a)}circle(t,r,i,s){const o=this.ellipse(t,r,i,i,s);return o.shape="circle",o}linearPath(t,r){const i=this._o(r);return this._d("linearPath",[Ts(t,!1,i)],i)}arc(t,r,i,s,o,a,n=!1,l){const c=this._o(l),h=[],u=Eh(t,r,i,s,o,a,n,!0,c);if(n&&c.fill)if(c.fillStyle==="solid"){const d=Object.assign({},c);d.disableMultiStroke=!0;const f=Eh(t,r,i,s,o,a,!0,!1,d);f.type="fillPath",h.push(f)}else h.push((function(d,f,y,m,x,C,k){const S=d,T=f;let _=Math.abs(y/2),L=Math.abs(m/2);_+=yt(.01*_,k),L+=yt(.01*L,k);let M=x,v=C;for(;M<0;)M+=2*Math.PI,v+=2*Math.PI;v-M>2*Math.PI&&(M=0,v=2*Math.PI);const X=(v-M)/k.curveStepCount,z=[];for(let I=M;I<=v;I+=X)z.push([S+_*Math.cos(I),T+L*Math.sin(I)]);return z.push([S+_*Math.cos(v),T+L*Math.sin(v)]),z.push([S,T]),$r([z],k)})(t,r,i,s,o,a,c));return c.stroke!==oe&&h.push(u),this._d("arc",h,c)}curve(t,r){const i=this._o(r),s=[],o=Ah(t,i);if(i.fill&&i.fill!==oe)if(i.fillStyle==="solid"){const a=Ah(t,Object.assign(Object.assign({},i),{disableMultiStroke:!0,roughness:i.roughness?i.roughness+i.fillShapeRoughnessGain:0}));s.push({type:"fillPath",ops:this._mergedShape(a.ops)})}else{const a=[],n=t;if(n.length){const l=typeof n[0][0]=="number"?[n]:n;for(const c of l)c.length<3?a.push(...c):c.length===3?a.push(...Ro(Ih([c[0],c[0],c[1],c[2]]),10,(1+i.roughness)/2)):a.push(...Ro(Ih(c),10,(1+i.roughness)/2))}a.length&&s.push($r([a],i))}return i.stroke!==oe&&s.push(o),this._d("curve",s,i)}polygon(t,r){const i=this._o(r),s=[],o=Ts(t,!0,i);return i.fill&&(i.fillStyle==="solid"?s.push(Io([t],i)):s.push($r([t],i))),i.stroke!==oe&&s.push(o),this._d("polygon",s,i)}path(t,r){const i=this._o(r),s=[];if(!t)return this._d("path",s,i);t=(t||"").replace(/\n/g," ").replace(/(-\s)/g,"-").replace("/(ss)/g"," ");const o=i.fill&&i.fill!=="transparent"&&i.fill!==oe,a=i.stroke!==oe,n=!!(i.simplification&&i.simplification<1),l=(function(h,u,d){const f=yf(pf(Gn(h))),y=[];let m=[],x=[0,0],C=[];const k=()=>{C.length>=4&&m.push(...Ro(C,u)),C=[]},S=()=>{k(),m.length&&(y.push(m),m=[])};for(const{key:_,data:L}of f)switch(_){case"M":S(),x=[L[0],L[1]],m.push(x);break;case"L":k(),m.push([L[0],L[1]]);break;case"C":if(!C.length){const M=m.length?m[m.length-1]:x;C.push([M[0],M[1]])}C.push([L[0],L[1]]),C.push([L[2],L[3]]),C.push([L[4],L[5]]);break;case"Z":k(),m.push([x[0],x[1]])}if(S(),!d)return y;const T=[];for(const _ of y){const L=T2(_,d);L.length&&T.push(L)}return T})(t,1,n?4-4*(i.simplification||1):(1+i.roughness)/2),c=$h(t,i);if(o)if(i.fillStyle==="solid")if(l.length===1){const h=$h(t,Object.assign(Object.assign({},i),{disableMultiStroke:!0,roughness:i.roughness?i.roughness+i.fillShapeRoughnessGain:0}));s.push({type:"fillPath",ops:this._mergedShape(h.ops)})}else s.push(Io(l,i));else s.push($r(l,i));return a&&(n?l.forEach((h=>{s.push(Ts(h,!1,i))})):s.push(c)),this._d("path",s,i)}opsToPath(t,r){let i="";for(const s of t.ops){const o=typeof r=="number"&&r>=0?s.data.map((a=>+a.toFixed(r))):s.data;switch(s.op){case"move":i+=`M${o[0]} ${o[1]} `;break;case"bcurveTo":i+=`C${o[0]} ${o[1]}, ${o[2]} ${o[3]}, ${o[4]} ${o[5]} `;break;case"lineTo":i+=`L${o[0]} ${o[1]} `}}return i.trim()}toPaths(t){const r=t.sets||[],i=t.options||this.defaultOptions,s=[];for(const o of r){let a=null;switch(o.type){case"path":a={d:this.opsToPath(o),stroke:i.stroke,strokeWidth:i.strokeWidth,fill:oe};break;case"fillPath":a={d:this.opsToPath(o),stroke:oe,strokeWidth:0,fill:i.fill||oe};break;case"fillSketch":a=this.fillSketch(o,i)}a&&s.push(a)}return s}fillSketch(t,r){let i=r.fillWeight;return i<0&&(i=r.strokeWidth/2),{d:this.opsToPath(t),stroke:r.fill||oe,strokeWidth:i,fill:oe}}_mergedShape(t){return t.filter(((r,i)=>i===0||r.op!=="move"))}}class _2{constructor(t,r){this.canvas=t,this.ctx=this.canvas.getContext("2d"),this.gen=new Zs(r)}draw(t){const r=t.sets||[],i=t.options||this.getDefaultOptions(),s=this.ctx,o=t.options.fixedDecimalPlaceDigits;for(const a of r)switch(a.type){case"path":s.save(),s.strokeStyle=i.stroke==="none"?"transparent":i.stroke,s.lineWidth=i.strokeWidth,i.strokeLineDash&&s.setLineDash(i.strokeLineDash),i.strokeLineDashOffset&&(s.lineDashOffset=i.strokeLineDashOffset),this._drawToContext(s,a,o),s.restore();break;case"fillPath":{s.save(),s.fillStyle=i.fill||"";const n=t.shape==="curve"||t.shape==="polygon"||t.shape==="path"?"evenodd":"nonzero";this._drawToContext(s,a,o,n),s.restore();break}case"fillSketch":this.fillSketch(s,a,i)}}fillSketch(t,r,i){let s=i.fillWeight;s<0&&(s=i.strokeWidth/2),t.save(),i.fillLineDash&&t.setLineDash(i.fillLineDash),i.fillLineDashOffset&&(t.lineDashOffset=i.fillLineDashOffset),t.strokeStyle=i.fill||"",t.lineWidth=s,this._drawToContext(t,r,i.fixedDecimalPlaceDigits),t.restore()}_drawToContext(t,r,i,s="nonzero"){t.beginPath();for(const o of r.ops){const a=typeof i=="number"&&i>=0?o.data.map((n=>+n.toFixed(i))):o.data;switch(o.op){case"move":t.moveTo(a[0],a[1]);break;case"bcurveTo":t.bezierCurveTo(a[0],a[1],a[2],a[3],a[4],a[5]);break;case"lineTo":t.lineTo(a[0],a[1])}}r.type==="fillPath"?t.fill(s):t.stroke()}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}line(t,r,i,s,o){const a=this.gen.line(t,r,i,s,o);return this.draw(a),a}rectangle(t,r,i,s,o){const a=this.gen.rectangle(t,r,i,s,o);return this.draw(a),a}ellipse(t,r,i,s,o){const a=this.gen.ellipse(t,r,i,s,o);return this.draw(a),a}circle(t,r,i,s){const o=this.gen.circle(t,r,i,s);return this.draw(o),o}linearPath(t,r){const i=this.gen.linearPath(t,r);return this.draw(i),i}polygon(t,r){const i=this.gen.polygon(t,r);return this.draw(i),i}arc(t,r,i,s,o,a,n=!1,l){const c=this.gen.arc(t,r,i,s,o,a,n,l);return this.draw(c),c}curve(t,r){const i=this.gen.curve(t,r);return this.draw(i),i}path(t,r){const i=this.gen.path(t,r);return this.draw(i),i}}const hs="http://www.w3.org/2000/svg";class B2{constructor(t,r){this.svg=t,this.gen=new Zs(r)}draw(t){const r=t.sets||[],i=t.options||this.getDefaultOptions(),s=this.svg.ownerDocument||window.document,o=s.createElementNS(hs,"g"),a=t.options.fixedDecimalPlaceDigits;for(const n of r){let l=null;switch(n.type){case"path":l=s.createElementNS(hs,"path"),l.setAttribute("d",this.opsToPath(n,a)),l.setAttribute("stroke",i.stroke),l.setAttribute("stroke-width",i.strokeWidth+""),l.setAttribute("fill","none"),i.strokeLineDash&&l.setAttribute("stroke-dasharray",i.strokeLineDash.join(" ").trim()),i.strokeLineDashOffset&&l.setAttribute("stroke-dashoffset",`${i.strokeLineDashOffset}`);break;case"fillPath":l=s.createElementNS(hs,"path"),l.setAttribute("d",this.opsToPath(n,a)),l.setAttribute("stroke","none"),l.setAttribute("stroke-width","0"),l.setAttribute("fill",i.fill||""),t.shape!=="curve"&&t.shape!=="polygon"||l.setAttribute("fill-rule","evenodd");break;case"fillSketch":l=this.fillSketch(s,n,i)}l&&o.appendChild(l)}return o}fillSketch(t,r,i){let s=i.fillWeight;s<0&&(s=i.strokeWidth/2);const o=t.createElementNS(hs,"path");return o.setAttribute("d",this.opsToPath(r,i.fixedDecimalPlaceDigits)),o.setAttribute("stroke",i.fill||""),o.setAttribute("stroke-width",s+""),o.setAttribute("fill","none"),i.fillLineDash&&o.setAttribute("stroke-dasharray",i.fillLineDash.join(" ").trim()),i.fillLineDashOffset&&o.setAttribute("stroke-dashoffset",`${i.fillLineDashOffset}`),o}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}opsToPath(t,r){return this.gen.opsToPath(t,r)}line(t,r,i,s,o){const a=this.gen.line(t,r,i,s,o);return this.draw(a)}rectangle(t,r,i,s,o){const a=this.gen.rectangle(t,r,i,s,o);return this.draw(a)}ellipse(t,r,i,s,o){const a=this.gen.ellipse(t,r,i,s,o);return this.draw(a)}circle(t,r,i,s){const o=this.gen.circle(t,r,i,s);return this.draw(o)}linearPath(t,r){const i=this.gen.linearPath(t,r);return this.draw(i)}polygon(t,r){const i=this.gen.polygon(t,r);return this.draw(i)}arc(t,r,i,s,o,a,n=!1,l){const c=this.gen.arc(t,r,i,s,o,a,n,l);return this.draw(c)}curve(t,r){const i=this.gen.curve(t,r);return this.draw(i)}path(t,r){const i=this.gen.path(t,r);return this.draw(i)}}var st={canvas:(e,t)=>new _2(e,t),svg:(e,t)=>new B2(e,t),generator:e=>new Zs(e),newSeed:()=>Zs.newSeed()},v2=1,L2=3;async function Xn(e){const t=e.getElementsByTagName("img");if(!t||t.length===0)return;const r=!Vn(e);await Promise.all([...t].map(i=>new Promise(s=>{function o(){if(i.style.display="flex",i.style.flexDirection="column",r){const a=Bt().fontSize?Bt().fontSize:window.getComputedStyle(document.body).fontSize,n=5,[l=pu.fontSize]=no(a),c=l*n+"px";i.style.minWidth=c,i.style.maxWidth=c}else i.style.width="100%";s(i)}g(o,"setupImage"),setTimeout(()=>{i.complete&&o()}),i.addEventListener("error",o),i.addEventListener("load",o)})))}g(Xn,"configureLabelImages");function Vn(e){return e.nodeType===L2?e.textContent?.trim()!=="":e.nodeType!==v2||e.tagName.toLowerCase()==="img"?!1:[...e.childNodes].some(Vn)}g(Vn,"hasTextBesidesImages");var Rh=3,F2=32,M2=g(async(e,t,r)=>{const i=Bt(),s=e.insert("g").attr("class",r??"node default").attr("id",t.domId||t.id),o=s.insert("g").attr("class","label").attr("style",zt(t.labelStyle)),n=[{text:typeof t.label=="string"?t.label:t.label?.[0]??"",cssClass:"c4-name"},{text:t.stereotype,cssClass:"c4-type"},...(t.description??[]).map(x=>({text:x,cssClass:"c4-descr"}))].filter(x=>x.text),l=t.width?Math.max(t.width-2*(t.padding??0),F2):Bt().flowchart?.wrappingWidth??200,c=i.wrap?l:Number.POSITIVE_INFINITY,h=await Promise.all(n.map(async x=>{const C=o.append("g").attr("class",x.cssClass),k=await be(C,le(rr(x.text??""),i),{useHtmlLabels:!1,markdown:!1,isNode:!0,width:c,style:t.labelStyle},i);return Tt(k).selectAll("tspan.text-outer-tspan").attr("text-anchor","middle"),Tt(k).selectAll("tspan.text-inner-tspan").attr("font-weight",null).attr("font-style",null),{el:C,box:C.node().getBBox()}})),u=Math.max(...h.map(({box:x})=>x.width),0);let d=0;for(const{el:x,box:C}of h)x.attr("transform",`translate(${u/2-C.x-C.width/2}, ${d-C.y})`),d+=C.height+Rh;const f=h.length>0?d-Rh:0;o.insert("rect",":first-child"),o.attr("transform",`translate(${-u/2}, ${-f/2})`);const y=o.node().getBBox(),m=(t.padding??0)/2;return{shapeSvg:s,bbox:y,halfPadding:m,label:o}},"c4LabelHelper"),ct=g(async(e,t,r)=>{if(t.stereotype!==void 0)return M2(e,t,r);let i;const s=t.useHtmlLabels||$e(Bt()?.htmlLabels);r?i=r:i="node default";const o=e.insert("g").attr("class",i).attr("id",t.domId||t.id),a=o.insert("g").attr("class","label").attr("style",zt(t.labelStyle));let n;t.label===void 0?n="":n=typeof t.label=="string"?t.label:t.label[0];const l=!!t.icon||!!t.img,c=t.labelType==="markdown",h=await be(a,le(rr(n),Bt()),{useHtmlLabels:s,width:t.width||t.wrappingWidth||Bt().flowchart?.wrappingWidth,classes:c?"markdown-node-label":"",style:t.labelStyle,addSvgBackground:l,markdown:c},Bt()),u=(t?.padding??0)/2;let d;if(s){const f=h.children[0],y=Tt(h);await Xn(f),d=await xr.measure(()=>f.getBoundingClientRect()),y.attr("width",d.width),y.attr("height",d.height)}else d=await xr.measure(()=>h.getBBox());return s?a.attr("transform","translate("+-d.width/2+", "+-d.height/2+")"):a.attr("transform","translate(0, "+-d.height/2+")"),t.centerLabel&&a.attr("transform","translate("+-d.width/2+", "+-d.height/2+")"),a.insert("rect",":first-child"),{shapeSvg:o,bbox:d,halfPadding:u,label:a}},"labelHelper"),qo=g(async(e,t,r)=>{const i=r.useHtmlLabels??Kt(Bt()),s=e.insert("g").attr("class","label").attr("style",r.labelStyle||""),o=await be(s,le(rr(t),Bt()),{useHtmlLabels:i,width:r.width||Bt()?.flowchart?.wrappingWidth,style:r.labelStyle,addSvgBackground:!!r.icon||!!r.img}),a=r.padding/2;let n;if(Kt(Bt())){const l=o.children[0],c=Tt(o);n=await xr.measure(()=>l.getBoundingClientRect()),c.attr("width",n.width),c.attr("height",n.height)}else n=await xr.measure(()=>o.getBBox());return i?s.attr("transform","translate("+-n.width/2+", "+-n.height/2+")"):s.attr("transform","translate(0, "+-n.height/2+")"),r.centerLabel&&s.attr("transform","translate("+-n.width/2+", "+-n.height/2+")"),s.insert("rect",":first-child"),{shapeSvg:e,bbox:n,halfPadding:a,label:s}},"insertLabel"),at=g((e,t,r)=>{if(r){e.width=r.width,e.height=r.height;return}const i=t.node().getBBox();e.width=i.width,e.height=i.height},"updateNodeBounds"),ut=g((e,t)=>(e.look==="handDrawn"?"rough-node":"node")+" "+e.cssClasses+" "+(t||""),"getNodeClasses");function Mt(e){const t=e.map((r,i)=>`${i===0?"M":"L"}${r.x},${r.y}`);return t.push("Z"),t.join(" ")}g(Mt,"createPathFromPoints");function sr(e,t,r,i,s,o){const a=[],l=r-e,c=i-t,h=l/o,u=2*Math.PI/h,d=t+c/2;for(let f=0;f<=50;f++){const y=f/50,m=e+y*l,x=d+s*Math.sin(u*(m-e));a.push({x:m,y:x})}return a}g(sr,"generateFullSineWavePoints");function ve(e,t,r,i,s,o){const a=[],n=s*Math.PI/180,h=(o*Math.PI/180-n)/(i-1);for(let u=0;u<i;u++){const d=n+u*h,f=e+r*Math.cos(d),y=t+r*Math.sin(d);a.push({x:-f,y:-y})}return a}g(ve,"generateCirclePoints");function ja(e){const t=Array.from(e.childNodes).filter(l=>l.tagName==="path"),r=document.createElementNS("http://www.w3.org/2000/svg","path"),i=t.map(l=>l.getAttribute("d")).filter(l=>l!==null).join(" ");r.setAttribute("d",i);const s=t.find(l=>l.getAttribute("fill")!=="none"),o=t.find(l=>l.getAttribute("stroke")!=="none"),a=g((l,c)=>l?.getAttribute(c)??void 0,"getAttr");if(s){const l={fill:a(s,"fill"),"fill-opacity":a(s,"fill-opacity")??"1"};Object.entries(l).forEach(([c,h])=>{h&&r.setAttribute(c,h)})}if(o){const l={stroke:a(o,"stroke"),"stroke-width":a(o,"stroke-width")??"1","stroke-opacity":a(o,"stroke-opacity")??"1"};Object.entries(l).forEach(([c,h])=>{h&&r.setAttribute(c,h)})}const n=document.createElementNS("http://www.w3.org/2000/svg","g");return n.appendChild(r),n}g(ja,"mergePaths");var A2=g((e,t)=>{var r=e.x,i=e.y,s=t.x-r,o=t.y-i,a=e.width/2,n=e.height/2,l,c;return Math.abs(o)*a>Math.abs(s)*n?(o<0&&(n=-n),l=o===0?0:n*s/o,c=n):(s<0&&(a=-a),l=a,c=s===0?0:a*o/s),{x:r+l,y:i+c}},"intersectRect"),Sr=A2,ce=g((e,t,r,i,s)=>["M",e+s,t,"H",e+r-s,"A",s,s,0,0,1,e+r,t+s,"V",t+i-s,"A",s,s,0,0,1,e+r-s,t+i,"H",e+s,"A",s,s,0,0,1,e,t+i-s,"V",t+s,"A",s,s,0,0,1,e+s,t,"Z"].join(" "),"createRoundedRectPathD"),E2=g(async(e,t,r,i=!1,s=!1)=>{let o=t||"";typeof o=="object"&&(o=o[0]);const a=Bt(),n=Kt(a);return await be(e,o,{style:r,isTitle:i,useHtmlLabels:n,markdown:!1,isNode:s,width:Number.POSITIVE_INFINITY},a)},"createLabel"),Qe=E2;function kf(e,t){return e.intersect(t)}g(kf,"intersectNode");var $2=kf;function wf(e,t,r,i){var s=e.x,o=e.y,a=s-i.x,n=o-i.y,l=Math.sqrt(t*t*n*n+r*r*a*a),c=Math.abs(t*r*a/l);i.x<s&&(c=-c);var h=Math.abs(t*r*n/l);return i.y<o&&(h=-h),{x:s+c,y:o+h}}g(wf,"intersectEllipse");var Sf=wf;function Tf(e,t,r){return Sf(e,t,t,r)}g(Tf,"intersectCircle");var O2=Tf;function _f(e,t,r,i){{const s=t.y-e.y,o=e.x-t.x,a=t.x*e.y-e.x*t.y,n=s*r.x+o*r.y+a,l=s*i.x+o*i.y+a,c=1e-6;if(n!==0&&l!==0&&Ua(n,l))return;const h=i.y-r.y,u=r.x-i.x,d=i.x*r.y-r.x*i.y,f=h*e.x+u*e.y+d,y=h*t.x+u*t.y+d;if(Math.abs(f)<c&&Math.abs(y)<c&&Ua(f,y))return;const m=s*u-h*o;if(m===0)return;const x=Math.abs(m/2);let C=o*d-u*a;const k=C<0?(C-x)/m:(C+x)/m;C=h*a-s*d;const S=C<0?(C-x)/m:(C+x)/m;return{x:k,y:S}}}g(_f,"intersectLine");function Ua(e,t){return e*t>0}g(Ua,"sameSign");var D2=_f;function Bf(e,t,r){let i=e.x,s=e.y,o=[],a=Number.POSITIVE_INFINITY,n=Number.POSITIVE_INFINITY;typeof t.forEach=="function"?t.forEach(function(h){a=Math.min(a,h.x),n=Math.min(n,h.y)}):(a=Math.min(a,t.x),n=Math.min(n,t.y));let l=i-e.width/2-a,c=s-e.height/2-n;for(let h=0;h<t.length;h++){let u=t[h],d=t[h<t.length-1?h+1:0],f=D2(e,r,{x:l+u.x,y:c+u.y},{x:l+d.x,y:c+d.y});f&&o.push(f)}return o.length?(o.length>1&&o.sort(function(h,u){let d=h.x-r.x,f=h.y-r.y,y=Math.sqrt(d*d+f*f),m=u.x-r.x,x=u.y-r.y,C=Math.sqrt(m*m+x*x);return y<C?-1:y===C?0:1}),o[0]):e}g(Bf,"intersectPolygon");var P2=Bf,rt={node:$2,circle:O2,ellipse:Sf,polygon:P2,rect:Sr};function vf(e,t){const{labelStyles:r}=nt(t);t.labelStyle=r;const i=ut(t);let s=i;i||(s="anchor");const o=e.insert("g").attr("class",s).attr("id",t.domId||t.id),a=1,{cssStyles:n}=t,l=st.svg(o),c=it(t,{fill:"black",stroke:"none",fillStyle:"solid"});t.look!=="handDrawn"&&(c.roughness=0);const h=l.circle(0,0,a*2,c),u=o.insert(()=>h,":first-child");return u.attr("class","anchor").attr("style",zt(n)),at(t,u),t.intersect=function(d){return P.info("Circle intersect",t,a,d),rt.circle(t,a,d)},o}g(vf,"anchor");function Ga(e,t,r,i,s,o,a){const l=(e+r)/2,c=(t+i)/2,h=Math.atan2(i-t,r-e),u=(r-e)/2,d=(i-t)/2,f=u/s,y=d/o,m=Math.sqrt(f**2+y**2);if(m>1)throw new Error("The given radii are too small to create an arc between the points.");const x=Math.sqrt(1-m**2),C=l+x*o*Math.sin(h)*(a?-1:1),k=c-x*s*Math.cos(h)*(a?-1:1),S=Math.atan2((t-k)/o,(e-C)/s);let _=Math.atan2((i-k)/o,(r-C)/s)-S;a&&_<0&&(_+=2*Math.PI),!a&&_>0&&(_-=2*Math.PI);const L=[];for(let M=0;M<20;M++){const v=M/19,X=S+v*_,z=C+s*Math.cos(X),I=k+o*Math.sin(X);L.push({x:z,y:I})}return L}g(Ga,"generateArcPoints");function Lf(e,t,r){const[i,s]=[t,r].sort((o,a)=>a-o);return s*(1-Math.sqrt(1-(e/i/2)**2))}g(Lf,"calculateArcSagitta");async function Ff(e,t){const{labelStyles:r,nodeStyles:i}=nt(t);t.labelStyle=r;const s=t.padding??0,o=t.look==="neo"?16:s,a=t.look==="neo"?12:s,n=g(X=>X+a,"calcTotalHeight"),l=g(X=>{const z=X/2;return[z/(2.5+X/50),z]},"calcEllipseRadius"),{shapeSvg:c,bbox:h}=await ct(e,t,ut(t)),u=n(t?.height?t?.height:h.height),[d,f]=l(u),y=Lf(u,d,f),x=(t?.width?t?.width:h.width)+o*2+y-y,C=u,{cssStyles:k}=t,S=[{x:x/2,y:-C/2},{x:-x/2,y:-C/2},...Ga(-x/2,-C/2,-x/2,C/2,d,f,!1),{x:x/2,y:C/2},...Ga(x/2,C/2,x/2,-C/2,d,f,!0)],T=st.svg(c),_=it(t,{});t.look!=="handDrawn"&&(_.roughness=0,_.fillStyle="solid");const L=Mt(S),M=T.path(L,_),v=c.insert(()=>M,":first-child");return v.attr("class","basic label-container outer-path"),k&&t.look!=="handDrawn"&&v.selectAll("path").attr("style",k),i&&t.look!=="handDrawn"&&v.selectAll("path").attr("style",i),v.attr("transform",`translate(${d/2}, 0)`),at(t,v),t.intersect=function(X){return rt.polygon(t,S,X)},c}g(Ff,"bowTieRect");async function Mf(e,t,{config:{themeVariables:r}}){const{labelStyles:i,nodeStyles:s}=nt(t);t.labelStyle=i;const{shapeSvg:o,bbox:a,label:n}=await ct(e,t,ut(t)),l=r?.nodeBorder??r?.lineColor??"currentColor",c=t.padding??12,h=Math.max(a.width+c*2,t.width??0,80),u=Math.max(Math.min(h*.08,12),5),d=Math.max(a.height+c*2+u,t.height??0),f=-d/2+u,y=d/2,m=h*.72,x=[`M${-h/2},${f}`,`L${-m/2},${y}`,`A${m/2},${u} 0 0 0 ${m/2},${y}`,`L${h/2},${f}`,`A${h/2},${u} 0 0 0 ${-h/2},${f}`,"Z"].join(" "),{cssStyles:C}=t,k=o.insert("g",":first-child").attr("class","basic label-container");if(t.look==="handDrawn"){const v=st.svg(o).path(x,it(t,{}));k.node()?.appendChild(v),C&&k.attr("style",C)}else k.append("path").attr("d",x).attr("style",s);k.append("ellipse").attr("cx",0).attr("cy",f).attr("rx",h/2).attr("ry",u).attr("style",`fill:none;stroke:${l};stroke-width:1px`),at(t,k);const S=f+(y-f)/2;n.attr("transform",`translate(${-(a.width/2)-(a.x-(a.left??0))}, ${S-a.height/2-(a.y-(a.top??0))})`);const T=12,_=g((M,v,X)=>Array.from({length:T+1},(z,I)=>{const et=Math.PI-I*Math.PI/T;return{x:M*Math.cos(et),y:v+X*u*Math.sin(et)}}),"arc"),L=[..._(h/2,f,-1),..._(m/2,y,1).reverse()];return t.intersect=function(M){return rt.polygon(t,L,M)},o}g(Mf,"bucket");var qh=20,Nh=8,I2=80,No=8;async function Af(e,t){const{themeVariables:r}=Bt(),i=r.clusterBkg,s=r.clusterBorder,{nodeStyles:o}=nt(t),{shapeSvg:a,bbox:n}=await ct(e,t,ut(t)),l=t.padding??8,c=n.height,h=Math.max(n.width+l*2,I2,t?.width??0),u=Math.max(c+Nh+qh+l*2,t?.height??0),d=-h/2,f=-u/2,y=-28/2,m=a.select(".label");m&&(t.useHtmlLabels??Kt(Bt())?m.attr("transform",`translate(${-n.width/2}, ${-n.height/2+y})`):m.attr("transform",`translate(0, ${-n.height/2+y})`));let x;if(t.look==="handDrawn"){const _=st.svg(a),L=it(t,{fill:i,stroke:s,fillStyle:"solid"}),M=_.path(ce(d,f,h,u,No),L);x=a.insert(()=>M,":first-child"),x.attr("class","basic label-container collapsed-group").attr("style",zt(t.cssStyles))}else x=a.insert("rect",":first-child"),x.attr("class","basic label-container collapsed-group").attr("style",o).attr("rx",No).attr("ry",No).attr("x",d).attr("y",f).attr("width",h).attr("height",u).attr("fill",i).attr("stroke",s);const C=f+l+c+Nh;a.append("line").attr("class","collapsed-separator").attr("x1",d+8).attr("y1",C).attr("x2",d+h-8).attr("y2",C).attr("stroke",s).attr("stroke-dasharray","3, 3");const k=C+qh/2,S=2.5,T=10;for(let _=-1;_<=1;_++)a.append("circle").attr("class","collapsed-indicator").attr("cx",_*T).attr("cy",k).attr("r",S).attr("fill",s);return at(t,x),t.calcIntersect=function(_,L){return rt.rect(_,L)},t.intersect=function(_){return rt.rect(t,_)},a}g(Af,"collapsedGroup");function De(e,t,r,i){return e.insert("polygon",":first-child").attr("points",i.map(function(s){return s.x+","+s.y}).join(" ")).attr("class","label-container").attr("transform","translate("+-t/2+","+r/2+")")}g(De,"insertPolygonShape");var R2=["right","left","up","down"],Zn="point",q2=g(e=>{const t=new Set;for(const r of e)switch(r){case"x":t.add("right"),t.add("left");break;case"y":t.add("up"),t.add("down");break;default:t.add(r);break}return t},"expandAndDeduplicateDirections"),N2=g(e=>R2.filter(t=>e.has(t)).join("|")||Zn,"getDirectionKey"),Wh={"right|left|up|down":g(({height:e,midpoint:t,padding:r,width:i})=>[{x:0,y:0},{x:t,y:0},{x:i/2,y:2*r},{x:i-t,y:0},{x:i,y:0},{x:i,y:-e/3},{x:i+2*r,y:-e/2},{x:i,y:-2*e/3},{x:i,y:-e},{x:i-t,y:-e},{x:i/2,y:-e-2*r},{x:t,y:-e},{x:0,y:-e},{x:0,y:-2*e/3},{x:-2*r,y:-e/2},{x:0,y:-e/3}],"right|left|up|down"),"right|left|up":g(({height:e,midpoint:t,width:r})=>[{x:t,y:0},{x:r-t,y:0},{x:r,y:-e/2},{x:r-t,y:-e},{x:t,y:-e},{x:0,y:-e/2}],"right|left|up"),"right|left|down":g(({height:e,midpoint:t,width:r})=>[{x:0,y:0},{x:t,y:-e},{x:r-t,y:-e},{x:r,y:0}],"right|left|down"),"right|up|down":g(({height:e,midpoint:t,width:r})=>[{x:0,y:0},{x:r,y:-t},{x:r,y:-e+t},{x:0,y:-e}],"right|up|down"),"left|up|down":g(({height:e,midpoint:t,width:r})=>[{x:r,y:0},{x:0,y:-t},{x:0,y:-e+t},{x:r,y:-e}],"left|up|down"),"right|left":g(({height:e,midpoint:t,padding:r,width:i})=>[{x:t,y:0},{x:t,y:-r},{x:i-t,y:-r},{x:i-t,y:0},{x:i,y:-e/2},{x:i-t,y:-e},{x:i-t,y:-e+r},{x:t,y:-e+r},{x:t,y:-e},{x:0,y:-e/2}],"right|left"),"up|down":g(({height:e,midpoint:t,padding:r,width:i})=>[{x:i/2,y:0},{x:0,y:-r},{x:t,y:-r},{x:t,y:-e+r},{x:0,y:-e+r},{x:i/2,y:-e},{x:i,y:-e+r},{x:i-t,y:-e+r},{x:i-t,y:-r},{x:i,y:-r}],"up|down"),"right|up":g(({height:e,midpoint:t,width:r})=>[{x:0,y:0},{x:r,y:-t},{x:0,y:-e}],"right|up"),"right|down":g(({height:e,width:t})=>[{x:0,y:0},{x:t,y:0},{x:0,y:-e}],"right|down"),"left|up":g(({height:e,midpoint:t,width:r})=>[{x:r,y:0},{x:0,y:-t},{x:r,y:-e}],"left|up"),"left|down":g(({height:e,width:t})=>[{x:t,y:0},{x:0,y:0},{x:t,y:-e}],"left|down"),right:g(({height:e,midpoint:t,padding:r,width:i})=>[{x:t,y:-r},{x:t,y:-r},{x:i-t,y:-r},{x:i-t,y:0},{x:i,y:-e/2},{x:i-t,y:-e},{x:i-t,y:-e+r},{x:t,y:-e+r},{x:t,y:-e+r}],"right"),left:g(({height:e,midpoint:t,padding:r,width:i})=>[{x:t,y:0},{x:t,y:-r},{x:i-t,y:-r},{x:i-t,y:-e+r},{x:t,y:-e+r},{x:t,y:-e},{x:0,y:-e/2}],"left"),up:g(({height:e,midpoint:t,padding:r,width:i})=>[{x:t,y:-r},{x:t,y:-e+r},{x:0,y:-e+r},{x:i/2,y:-e},{x:i,y:-e+r},{x:i-t,y:-e+r},{x:i-t,y:-r}],"up"),down:g(({height:e,midpoint:t,padding:r,width:i})=>[{x:i/2,y:0},{x:0,y:-r},{x:t,y:-r},{x:t,y:-e+r},{x:i-t,y:-e+r},{x:i-t,y:-r},{x:i,y:-r}],"down"),[Zn]:()=>[{x:0,y:0}]},W2=g((e,t,r,i)=>{const s=q2(e),o=(r.padding??0)/2,a=t.height+4*o,n=a/2,l=i??t.width+2*n+2*o,c=N2(s);return(Wh[c]??Wh[Zn])({height:a,midpoint:n,padding:o,width:l})},"getArrowPoints");async function Ef(e,t){const r=t,{shapeSvg:i,bbox:s}=await ct(e,r,ut(r)),o=r.padding??0,a=s.height+2*o,n=a/2,l=s.width+2*n+o,c=r.width??0,u=r.positioned&&(r.widthInColumns??1)>1&&c>l?c:l,d=W2(r.directions??[],s,r,u),f=De(i,u,a,d);return f.attr("style",r.style??null),at(r,f),r.intersect=function(y){return rt.polygon(r,d,y)},i}g(Ef,"block_arrow");async function $f(e,t,{config:{themeVariables:r}}){const{labelStyles:i,nodeStyles:s}=nt(t);t.labelStyle=i;const{shapeSvg:o,bbox:a,label:n}=await ct(e,t,ut(t)),l=r?.nodeBorder??r?.lineColor??"currentColor",c=t.padding??12,h=18,u=12,d=Math.max(a.width+c*2,t.width??0,90),f=Math.max(a.height+c*2+h,t.height??0),y=-f/2,{cssStyles:m}=t,x=o.insert("g",":first-child").attr("class","basic label-container");if(t.look==="handDrawn"){const S=st.svg(o).path(ce(-d/2,y,d,f,u),it(t,{}));x.node()?.appendChild(S),m&&x.attr("style",m)}else x.append("rect").attr("x",-d/2).attr("y",y).attr("width",d).attr("height",f).attr("rx",u).attr("ry",u).attr("style",s);x.append("line").attr("x1",-d/2).attr("y1",y+h).attr("x2",d/2).attr("y2",y+h).attr("style",`stroke:${l};stroke-width:1px`);for(let k=0;k<3;k++)x.append("circle").attr("cx",-d/2+12+k*9).attr("cy",y+h/2).attr("r",2.5).attr("style",`fill:${l};stroke:none`);x.append("rect").attr("class","browser-address-bar").attr("x",-d/2+44).attr("y",y+4).attr("width",Math.max(d-56,10)).attr("height",h-8).attr("rx",3).attr("ry",3).attr("style",`fill:none;stroke:${l};stroke-width:1px;opacity:0.6`),at(t,x);const C=y+h+(f-h)/2;return n.attr("transform",`translate(${-(a.width/2)-(a.x-(a.left??0))}, ${C-a.height/2-(a.y-(a.top??0))})`),t.intersect=function(k){return rt.rect(t,k)},o}g($f,"browser");var cs=12;async function Of(e,t){const{labelStyles:r,nodeStyles:i}=nt(t);t.labelStyle=r;const s=t.padding??0,o=t.look==="neo"?28:s,a=t.look==="neo"?24:s,{shapeSvg:n,bbox:l}=await ct(e,t,ut(t)),c=(t?.width??l.width)+(t.look==="neo"?o*2:o+cs),h=(t?.height??l.height)+(t.look==="neo"?a*2:a),u=0,d=c,f=-h,y=0,m=[{x:u+cs,y:f},{x:d,y:f},{x:d,y},{x:u,y},{x:u,y:f+cs},{x:u+cs,y:f}];let x;const{cssStyles:C}=t;if(t.look==="handDrawn"){const k=st.svg(n),S=it(t,{}),T=Mt(m),_=k.path(T,S);x=n.insert(()=>_,":first-child").attr("transform",`translate(${-c/2}, ${h/2})`),C&&x.attr("style",C)}else x=De(n,c,h,m);return i&&x.attr("style",i),at(t,x),t.intersect=function(k){return rt.polygon(t,m,k)},n}g(Of,"card");function Df(e,t){const{nodeStyles:r}=nt(t);t.label="";const i=e.insert("g").attr("class",ut(t)).attr("id",t.domId??t.id),{cssStyles:s}=t,o=Math.max(28,t.width??0),a=[{x:0,y:o/2},{x:o/2,y:0},{x:0,y:-o/2},{x:-o/2,y:0}],n=st.svg(i),l=it(t,{});t.look!=="handDrawn"&&(l.roughness=0,l.fillStyle="solid");const c=Mt(a),h=n.path(c,l),u=i.insert(()=>h,":first-child");return s&&t.look!=="handDrawn"&&u.selectAll("path").attr("style",s),r&&t.look!=="handDrawn"&&u.selectAll("path").attr("style",r),t.width=28,t.height=28,t.intersect=function(d){return rt.polygon(t,a,d)},i}g(Df,"choice");async function Kn(e,t,r){const{labelStyles:i,nodeStyles:s}=nt(t);t.labelStyle=i;const{shapeSvg:o,bbox:a,halfPadding:n}=await ct(e,t,ut(t)),l=16,c=r?.padding??n,h=t.look==="neo"?a.width/2+l*2:a.width/2+c;let u;const{cssStyles:d}=t;if(t.look==="handDrawn"){const f=st.svg(o),y=it(t,{}),m=f.circle(0,0,h*2,y);u=o.insert(()=>m,":first-child"),u.attr("class","basic label-container").attr("style",zt(d))}else u=o.insert("circle",":first-child").attr("class","basic label-container").attr("style",s).attr("r",h).attr("cx",0).attr("cy",0);return at(t,u),t.calcIntersect=function(f,y){const m=f.width/2;return rt.circle(f,m,y)},t.intersect=function(f){return P.info("Circle intersect",t,h,f),rt.circle(t,h,f)},o}g(Kn,"circle");async function Pf(e,t){const r=t,i=["node",r.cssClasses,r.class].filter(Boolean).join(" "),{shapeSvg:s,bbox:o,halfPadding:a}=await ct(e,r,i),n=s.insert("rect",":first-child"),l=r.padding??0,c=r.positioned?r.width??0:o.width+l,h=r.positioned?r.height??0:o.height+l,u=r.positioned?-c/2:-o.width/2-a,d=r.positioned?-h/2:-o.height/2-a;return n.attr("class","basic cluster composite label-container").attr("style",r.style??null).attr("rx",r.rx??null).attr("ry",r.ry??null).attr("x",u).attr("y",d).attr("width",c).attr("height",h),at(r,n),r.intersect=function(f){return rt.rect(r,f)},s}g(Pf,"composite");async function If(e,t,{config:{themeVariables:r}}){const{labelStyles:i,nodeStyles:s}=nt(t);t.labelStyle=i;const{shapeSvg:o,bbox:a,label:n}=await ct(e,t,ut(t)),l=r?.nodeBorder??r?.lineColor??"currentColor",c=t.padding??12,h=20,u=12,d=Math.max(a.width+c*2,t.width??0,90),f=Math.max(a.height+c*2+h,t.height??0),y=-f/2,{cssStyles:m}=t,x=o.insert("g",":first-child").attr("class","basic label-container");if(t.look==="handDrawn"){const S=st.svg(o).path(ce(-d/2,y,d,f,u),it(t,{}));x.node()?.appendChild(S),m&&x.attr("style",m)}else x.append("rect").attr("x",-d/2).attr("y",y).attr("width",d).attr("height",f).attr("rx",u).attr("ry",u).attr("style",s);x.append("text").attr("x",-d/2+12).attr("y",y+16).attr("class","console-glyph").attr("style",`font-family:monospace;font-weight:bold;font-size:14px;fill:${l}`).text(">_"),at(t,x);const C=y+h+(f-h)/2;return n.attr("transform",`translate(${-(a.width/2)-(a.x-(a.left??0))}, ${C-a.height/2-(a.y-(a.top??0))})`),t.intersect=function(k){return rt.rect(t,k)},o}g(If,"consoleWindow");function Rf(e){const t=Math.cos(Math.PI/4),r=Math.sin(Math.PI/4),i=e*2,s={x:i/2*t,y:i/2*r},o={x:-(i/2)*t,y:i/2*r},a={x:-(i/2)*t,y:-(i/2)*r},n={x:i/2*t,y:-(i/2)*r};return`M ${o.x},${o.y} L ${n.x},${n.y}
198
+ M ${s.x},${s.y} L ${a.x},${a.y}`}g(Rf,"createLine");function qf(e,t){const{labelStyles:r,nodeStyles:i}=nt(t);t.labelStyle=r,t.label="";const s=e.insert("g").attr("class",ut(t)).attr("id",t.domId??t.id),o=Math.max(30,t?.width??0),{cssStyles:a}=t,n=st.svg(s),l=it(t,{});t.look!=="handDrawn"&&(l.roughness=0,l.fillStyle="solid");const c=n.circle(0,0,o*2,l),h=Rf(o),u=n.path(h,l),d=s.insert(()=>c,":first-child");return d.insert(()=>u),d.attr("class","outer-path"),a&&t.look!=="handDrawn"&&d.selectAll("path").attr("style",a),i&&t.look!=="handDrawn"&&d.selectAll("path").attr("style",i),at(t,d),t.intersect=function(f){return P.info("crossedCircle intersect",t,{radius:o,point:f}),rt.circle(t,o,f)},s}g(qf,"crossedCircle");function Re(e,t,r,i=100,s=0,o=180){const a=[],n=s*Math.PI/180,h=(o*Math.PI/180-n)/(i-1);for(let u=0;u<i;u++){const d=n+u*h,f=e+r*Math.cos(d),y=t+r*Math.sin(d);a.push({x:-f,y:-y})}return a}g(Re,"generateCirclePoints");async function Nf(e,t){const{labelStyles:r,nodeStyles:i}=nt(t);t.labelStyle=r;const{shapeSvg:s,bbox:o,label:a}=await ct(e,t,ut(t)),n=t.look==="neo"?18:t.padding??0,l=t.look==="neo"?12:t.padding??0,c=o.width+n,h=o.height+l,u=Math.max(5,h*.1),{cssStyles:d}=t,f=[...Re(c/2,-h/2,u,30,-90,0),{x:-c/2-u,y:u},...Re(c/2+u*2,-u,u,20,-180,-270),...Re(c/2+u*2,u,u,20,-90,-180),{x:-c/2-u,y:-h/2},...Re(c/2,h/2,u,20,0,90)],y=[{x:c/2,y:-h/2-u},{x:-c/2,y:-h/2-u},...Re(c/2,-h/2,u,20,-90,0),{x:-c/2-u,y:-u},...Re(c/2+c*.1,-u,u,20,-180,-270),...Re(c/2+c*.1,u,u,20,-90,-180),{x:-c/2-u,y:h/2},...Re(c/2,h/2,u,20,0,90),{x:-c/2,y:h/2+u},{x:c/2,y:h/2+u}],m=st.svg(s),x=it(t,{fill:"none"});t.look!=="handDrawn"&&(x.roughness=0,x.fillStyle="solid");const k=Mt(f).replace("Z",""),S=m.path(k,x),T=Mt(y),_=m.path(T,{...x}),L=s.insert("g",":first-child");return L.insert(()=>_,":first-child").attr("stroke-opacity",0),L.insert(()=>S,":first-child"),L.attr("class","text"),d&&t.look!=="handDrawn"&&L.selectAll("path").attr("style",d),i&&t.look!=="handDrawn"&&L.selectAll("path").attr("style",i),L.attr("transform",`translate(${u}, 0)`),a.attr("transform",`translate(${-c/2+u-(o.x-(o.left??0))},${-h/2+(t.padding??0)/2-(o.y-(o.top??0))})`),at(t,L),t.intersect=function(M){return rt.polygon(t,y,M)},s}g(Nf,"curlyBraceLeft");function qe(e,t,r,i=100,s=0,o=180){const a=[],n=s*Math.PI/180,h=(o*Math.PI/180-n)/(i-1);for(let u=0;u<i;u++){const d=n+u*h,f=e+r*Math.cos(d),y=t+r*Math.sin(d);a.push({x:f,y})}return a}g(qe,"generateCirclePoints");async function Wf(e,t){const{labelStyles:r,nodeStyles:i}=nt(t);t.labelStyle=r;const{shapeSvg:s,bbox:o,label:a}=await ct(e,t,ut(t)),n=t.look==="neo"?18:t.padding??0,l=t.look==="neo"?12:t.padding??0,c=o.width+(t.look==="neo"?n*2:n),h=o.height+(t.look==="neo"?l*2:l),u=Math.max(5,h*.1),{cssStyles:d}=t,f=[...qe(c/2,-h/2,u,20,-90,0),{x:c/2+u,y:-u},...qe(c/2+u*2,-u,u,20,-180,-270),...qe(c/2+u*2,u,u,20,-90,-180),{x:c/2+u,y:h/2},...qe(c/2,h/2,u,20,0,90)],y=[{x:-c/2,y:-h/2-u},{x:c/2,y:-h/2-u},...qe(c/2,-h/2,u,20,-90,0),{x:c/2+u,y:-u},...qe(c/2+u*2,-u,u,20,-180,-270),...qe(c/2+u*2,u,u,20,-90,-180),{x:c/2+u,y:h/2},...qe(c/2,h/2,u,20,0,90),{x:c/2,y:h/2+u},{x:-c/2,y:h/2+u}],m=st.svg(s),x=it(t,{fill:"none"});t.look!=="handDrawn"&&(x.roughness=0,x.fillStyle="solid");const k=Mt(f).replace("Z",""),S=m.path(k,x),T=Mt(y),_=m.path(T,{...x}),L=s.insert("g",":first-child");return L.insert(()=>_,":first-child").attr("stroke-opacity",0),L.insert(()=>S,":first-child"),L.attr("class","text"),d&&t.look!=="handDrawn"&&L.selectAll("path").attr("style",d),i&&t.look!=="handDrawn"&&L.selectAll("path").attr("style",i),L.attr("transform",`translate(${-u}, 0)`),a.attr("transform",`translate(${-c/2+(t.padding??0)/2-(o.x-(o.left??0))},${-h/2+(t.padding??0)/2-(o.y-(o.top??0))})`),at(t,L),t.intersect=function(M){return rt.polygon(t,y,M)},s}g(Wf,"curlyBraceRight");function Ut(e,t,r,i=100,s=0,o=180){const a=[],n=s*Math.PI/180,h=(o*Math.PI/180-n)/(i-1);for(let u=0;u<i;u++){const d=n+u*h,f=e+r*Math.cos(d),y=t+r*Math.sin(d);a.push({x:-f,y:-y})}return a}g(Ut,"generateCirclePoints");async function zf(e,t){const{labelStyles:r,nodeStyles:i}=nt(t);t.labelStyle=r;const{shapeSvg:s,bbox:o,label:a}=await ct(e,t,ut(t)),n=t.look==="neo"?18:t.padding??0,l=t.look==="neo"?12:t.padding??0,c=o.width+(t.look==="neo"?n*2:n),h=o.height+(t.look==="neo"?l*2:l),u=Math.max(5,h*.1),{cssStyles:d}=t,f=[...Ut(c/2,-h/2,u,30,-90,0),{x:-c/2-u,y:u},...Ut(c/2+u*2,-u,u,20,-180,-270),...Ut(c/2+u*2,u,u,20,-90,-180),{x:-c/2-u,y:-h/2},...Ut(c/2,h/2,u,20,0,90)],y=[...Ut(-c/2+u+u/2,-h/2,u,20,-90,-180),{x:c/2-u/2,y:u},...Ut(-c/2-u/2,-u,u,20,0,90),...Ut(-c/2-u/2,u,u,20,-90,0),{x:c/2-u/2,y:-u},...Ut(-c/2+u+u/2,h/2,u,30,-180,-270)],m=[{x:c/2,y:-h/2-u},{x:-c/2,y:-h/2-u},...Ut(c/2,-h/2,u,20,-90,0),{x:-c/2-u,y:-u},...Ut(c/2+u*2,-u,u,20,-180,-270),...Ut(c/2+u*2,u,u,20,-90,-180),{x:-c/2-u,y:h/2},...Ut(c/2,h/2,u,20,0,90),{x:-c/2,y:h/2+u},{x:c/2-u-u/2,y:h/2+u},...Ut(-c/2+u+u/2,-h/2,u,20,-90,-180),{x:c/2-u/2,y:u},...Ut(-c/2-u/2,-u,u,20,0,90),...Ut(-c/2-u/2,u,u,20,-90,0),{x:c/2-u/2,y:-u},...Ut(-c/2+u+u/2,h/2,u,30,-180,-270)],x=st.svg(s),C=it(t,{fill:"none"});t.look!=="handDrawn"&&(C.roughness=0,C.fillStyle="solid");const S=Mt(f).replace("Z",""),T=x.path(S,C),L=Mt(y).replace("Z",""),M=x.path(L,C),v=Mt(m),X=x.path(v,{...C}),z=s.insert("g",":first-child");return z.insert(()=>X,":first-child").attr("stroke-opacity",0),z.insert(()=>T,":first-child"),z.insert(()=>M,":first-child"),z.attr("class","text"),d&&t.look!=="handDrawn"&&z.selectAll("path").attr("style",d),i&&t.look!=="handDrawn"&&z.selectAll("path").attr("style",i),z.attr("transform",`translate(${u-u/4}, 0)`),a.attr("transform",`translate(${-c/2+(t.padding??0)/2-(o.x-(o.left??0))},${-h/2+(t.padding??0)/2-(o.y-(o.top??0))})`),at(t,z),t.intersect=function(I){return rt.polygon(t,m,I)},s}g(zf,"curlyBraces");async function Hf(e,t){const{labelStyles:r,nodeStyles:i}=nt(t);t.labelStyle=r;const s=t.padding??0,o=t.look==="neo"?16:s,a=t.look==="neo"?12:s,n=20,l=5,{shapeSvg:c,bbox:h}=await ct(e,t,ut(t)),u=Math.max(n,(h.width+o*2)*1.25,t?.width??0),d=Math.max(l,h.height+a*2,t?.height??0),f=d/2,{cssStyles:y}=t,m=st.svg(c),x=it(t,{});t.look!=="handDrawn"&&(x.roughness=0,x.fillStyle="solid");const C=u,k=d,S=C-f,T=k/4,_=[{x:S,y:0},{x:T,y:0},{x:0,y:k/2},{x:T,y:k},{x:S,y:k},...ve(-S,-k/2,f,50,270,90)],L=Mt(_),M=m.path(L,x),v=c.insert(()=>M,":first-child");return v.attr("class","basic label-container outer-path"),y&&t.look!=="handDrawn"&&v.selectChildren("path").attr("style",y),i&&t.look!=="handDrawn"&&v.selectChildren("path").attr("style",i),v.attr("transform",`translate(${-u/2}, ${-d/2})`),at(t,v),t.intersect=function(X){return rt.polygon(t,_,X)},c}g(Hf,"curvedTrapezoid");async function Yf(e,t){const{labelStyles:r,nodeStyles:i}=nt(t);t.labelStyle=r;const{shapeSvg:s,bbox:o,label:a}=await ct(e,t,ut(t)),n=t.padding??20,l=Math.max(o.width+n*2,t.width??0,100),c=Math.min(Math.max(l*.23,16),56),h=c*.27,u=Math.max(o.height+n*2,t.height?t.height-(2*c-h):0),d=Math.min(l*.177,u*.45),f=u+2*c-h,y=-f/2,m=y+2*c-h,x=s.insert("g",":first-child").attr("class","basic label-container"),{cssStyles:C}=t;if(t.look==="handDrawn"){const v=st.svg(s),X=it(t,{}),z=v.path(ce(-l/2,m,l,u,d),X),I=v.circle(0,y+c,c*2,X);x.insert(()=>I,":first-child"),x.insert(()=>z,":first-child"),C&&x.attr("style",C)}else x.append("rect").attr("x",-l/2).attr("y",m).attr("width",l).attr("height",u).attr("rx",d).attr("ry",d).attr("style",i),x.append("circle").attr("cx",0).attr("cy",y+c).attr("r",c).attr("style",i);at(t,x);const k=m+u/2;a.attr("transform",`translate(${-(o.width/2)-(o.x-(o.left??0))}, ${k-o.height/2-(o.y-(o.top??0))})`);const S=y+c,T=Math.asin(Math.min(1,(m-S)/c))*180/Math.PI,M=[...ve(0,-S,c,24,180+T,-T),...ve(-(-l/2+d),-(m+d),d,12,90,0),...ve(-(-l/2+d),-(f/2-d),d,12,360,270),...ve(-(l/2-d),-(f/2-d),d,12,270,180),...ve(-(l/2-d),-(m+d),d,12,180,90)];return t.intersect=function(v){return rt.polygon(t,M,v)},s}g(Yf,"person");var z2=g((e,t,r,i,s,o)=>[`M${e},${t+o}`,`a${s},${o} 0,0,0 ${r},0`,`a${s},${o} 0,0,0 ${-r},0`,`l0,${i}`,`a${s},${o} 0,0,0 ${r},0`,`l0,${-i}`].join(" "),"createCylinderPathD"),H2=g((e,t,r,i,s,o)=>[`M${e},${t+o}`,`M${e+r},${t+o}`,`a${s},${o} 0,0,0 ${-r},0`,`l0,${i}`,`a${s},${o} 0,0,0 ${r},0`,`l0,${-i}`].join(" "),"createOuterCylinderPathD"),Y2=g((e,t,r,i,s,o)=>[`M${e-r/2},${-i/2}`,`a${s},${o} 0,0,0 ${r},0`].join(" "),"createInnerCylinderPathD"),zh=8,Hh=8;async function jf(e,t){const{labelStyles:r,nodeStyles:i}=nt(t);t.labelStyle=r;const s=t.padding??0,o=t.look==="neo"?24:s,a=t.look==="neo"?24:s,n=t.width??0;if(t.width&&(t.width=t.width-a,t.width<Hh&&(t.width=Hh)),t.height){const k=n/2/(2.5+n/50);t.height=t.height-o-k*3,t.height<zh&&(t.height=zh)}const{shapeSvg:l,bbox:c,label:h}=await ct(e,t,ut(t)),u=Math.max(t.width??0,c.width)+a,d=u/2,f=d/(2.5+u/50),y=Math.max(t.height??0,c.height)+o+f;let m;const{cssStyles:x}=t;if(t.look==="handDrawn"){const C=st.svg(l),k=H2(0,0,u,y,d,f),S=Y2(0,f,u,y,d,f),T=it(t,{}),_=C.path(k,T),L=C.path(S,it(t,{fill:"none"}));m=l.insert(()=>L,":first-child"),m=l.insert(()=>_,":first-child"),m.attr("class","basic label-container"),x&&m.attr("style",x)}else{const C=z2(0,0,u,y,d,f);m=l.insert("path",":first-child").attr("d",C).attr("class","basic label-container outer-path").attr("style",zt(x)).attr("style",i)}return m.attr("label-offset-y",f),m.attr("transform",`translate(${-u/2}, ${-(y/2+f)})`),at(t,m),h.attr("transform",`translate(${-(c.width/2)-(c.x-(c.left??0))}, ${-(c.height/2)+(t.padding??0)/1.5-(c.y-(c.top??0))})`),t.intersect=function(C){const k=rt.rect(t,C),S=k.x-(t.x??0);if(d!=0&&(Math.abs(S)<(t.width??0)/2||Math.abs(S)==(t.width??0)/2&&Math.abs(k.y-(t.y??0))>(t.height??0)/2-f)){let T=f*f*(1-S*S/(d*d));T>0&&(T=Math.sqrt(T)),T=f-T,C.y-(t.y??0)>0&&(T=-T),k.y+=T}return k},l}g(jf,"cylinder");async function Kr(e,t,r){const{labelStyles:i,nodeStyles:s}=nt(t);t.labelStyle=i;const{shapeSvg:o,bbox:a}=await ct(e,t,ut(t)),n=Math.max(a.width+r.labelPaddingX*2,t?.width||0),l=Math.max(a.height+r.labelPaddingY*2,t?.height||0),c=-n/2,h=-l/2;let u,{rx:d,ry:f}=t;const{cssStyles:y}=t;if(r?.rx&&r.ry&&(d=r.rx,f=r.ry),t.look==="handDrawn"){const m=st.svg(o),x=it(t,{}),C=d||f?m.path(ce(c,h,n,l,d||0),x):m.rectangle(c,h,n,l,x);u=o.insert(()=>C,":first-child"),u.attr("class","basic label-container").attr("style",zt(y))}else u=o.insert("rect",":first-child"),u.attr("class","basic label-container").attr("style",s).attr("rx",zt(d)).attr("ry",zt(f)).attr("x",c).attr("y",h).attr("width",n).attr("height",l);return at(t,u,t.look==="handDrawn"?void 0:{width:n,height:l}),t.calcIntersect=function(m,x){return rt.rect(m,x)},t.intersect=function(m){return rt.rect(t,m)},o}g(Kr,"drawRect");async function Uf(e,t){const{cssClasses:r,labelPaddingX:i,labelPaddingY:s,padding:o,width:a,height:n}=t,l={rx:0,ry:0,labelPaddingX:i??(o??0)*2,labelPaddingY:s??o??0},c=await Kr(e,t,l);if(t.look==="handDrawn"){const f=st.svg(c),y=it(t,{}),m=c.select(".basic.label-container > path:nth-child(2)"),x=m.node();if(!x)return c;let C=null;if(x instanceof SVGGraphicsElement)C=x.getBBox();else return c;return c.insert(()=>f.line(C.x,C.y,C.x+C.width,C.y,y),".basic.label-container g.label"),c.insert(()=>f.line(C.x,C.y+C.height,C.x+C.width,C.y+C.height,y),".basic.label-container g.label"),m.remove(),c}const h=c.select(".basic.label-container"),u=(Number(h.attr("width"))||a)??0,d=(Number(h.attr("height"))||n)??0;return u>0&&d>0&&h.attr("stroke-dasharray",`${u} ${d}`),c}g(Uf,"datastore");async function Gf(e,t){const{labelStyles:r,nodeStyles:i}=nt(t);t.labelStyle=r;const s=t.look==="neo"?16:t.padding??0,o=t.look==="neo"?16:t.padding??0,{shapeSvg:a,bbox:n,label:l}=await ct(e,t,ut(t)),c=n.width+s,h=n.height+o,u=h*.2,d=-c/2,f=-h/2-u/2,{cssStyles:y}=t,m=st.svg(a),x=it(t,{});t.look!=="handDrawn"&&(x.roughness=0,x.fillStyle="solid");const C=[{x:d,y:f+u},{x:-d,y:f+u},{x:-d,y:-f},{x:d,y:-f},{x:d,y:f},{x:-d,y:f},{x:-d,y:f+u}],k=m.polygon(C.map(T=>[T.x,T.y]),x),S=a.insert(()=>k,":first-child");return S.attr("class","basic label-container outer-path"),y&&t.look!=="handDrawn"&&S.selectAll("path").attr("style",y),i&&t.look!=="handDrawn"&&S.selectAll("path").attr("style",i),l.attr("transform",`translate(${d+(t.padding??0)/2-(n.x-(n.left??0))}, ${f+u+(t.padding??0)/2-(n.y-(n.top??0))})`),at(t,S),t.intersect=function(T){return rt.rect(t,T)},a}g(Gf,"dividedRectangle");async function Xf(e,t){const{labelStyles:r,nodeStyles:i}=nt(t),s=t.look==="neo"?12:5;t.labelStyle=r;const o=t.padding??0,a=t.look==="neo"?16:o,{shapeSvg:n,bbox:l}=await ct(e,t,ut(t)),c=(t?.width?t?.width/2:l.width/2)+(a??0),h=c-s;let u;const{cssStyles:d}=t;if(t.look==="handDrawn"){const f=st.svg(n),y=it(t,{roughness:.2,strokeWidth:2.5}),m=it(t,{roughness:.2,strokeWidth:1.5}),x=f.circle(0,0,c*2,y),C=f.circle(0,0,h*2,m);u=n.insert("g",":first-child"),u.attr("class",zt(t.cssClasses)).attr("style",zt(d)),u.node()?.appendChild(x),u.node()?.appendChild(C)}else{u=n.insert("g",":first-child");const f=u.insert("circle",":first-child"),y=u.insert("circle");u.attr("class","basic label-container").attr("style",i),f.attr("class","outer-circle").attr("style",i).attr("r",c).attr("cx",0).attr("cy",0),y.attr("class","inner-circle").attr("style",i).attr("r",h).attr("cx",0).attr("cy",0)}return at(t,u),t.intersect=function(f){return P.info("DoubleCircle intersect",t,c,f),rt.circle(t,c,f)},n}g(Xf,"doublecircle");function Vf(e,t,{config:{themeVariables:r}}){const{labelStyles:i,nodeStyles:s}=nt(t);t.label="",t.labelStyle=i;const o=e.insert("g").attr("class",ut(t)).attr("id",t.domId??t.id),a=7,{cssStyles:n}=t,l=st.svg(o),{nodeBorder:c}=r,h=it(t,{fillStyle:"solid"});t.look!=="handDrawn"&&(h.roughness=0);const u=l.circle(0,0,a*2,h),d=o.insert(()=>u,":first-child");return d.selectAll("path").attr("style",`fill: ${c} !important;`),n&&n.length>0&&t.look!=="handDrawn"&&d.selectAll("path").attr("style",n),s&&t.look!=="handDrawn"&&d.selectAll("path").attr("style",s),at(t,d),t.intersect=function(f){return P.info("filledCircle intersect",t,{radius:a,point:f}),rt.circle(t,a,f)},o}g(Vf,"filledCircle");var Yh=10,jh=10;async function Zf(e,t){const{labelStyles:r,nodeStyles:i}=nt(t);t.labelStyle=r;const s=t.padding??0,o=t.look==="neo"?s*2:s;(t.width||t.height)&&(t.height=t?.height??0,t.height<Yh&&(t.height=Yh),t.width=(t?.width??0)-o-o/2,t.width<jh&&(t.width=jh));const{shapeSvg:a,bbox:n,label:l}=await ct(e,t,ut(t)),c=(t?.width?t?.width:n.width)+(o??0),h=t?.height?t?.height:c+n.height,u=h,d=[{x:0,y:-h},{x:u,y:-h},{x:u/2,y:0}],{cssStyles:f}=t,y=st.svg(a),m=it(t,{});t.look!=="handDrawn"&&(m.roughness=0,m.fillStyle="solid");const x=Mt(d),C=y.path(x,m),k=a.insert(()=>C,":first-child").attr("transform",`translate(${-h/2}, ${h/2})`).attr("class","outer-path");return f&&t.look!=="handDrawn"&&k.selectChildren("path").attr("style",f),i&&t.look!=="handDrawn"&&k.selectChildren("path").attr("style",i),t.width=c,t.height=h,at(t,k),l.attr("transform",`translate(${-n.width/2-(n.x-(n.left??0))}, ${-h/2+(t.padding??0)/2+(n.y-(n.top??0))})`),t.intersect=function(S){return P.info("Triangle intersect",t,d,S),rt.polygon(t,d,S)},a}g(Zf,"flippedTriangle");async function Kf(e,t){const{labelStyles:r,nodeStyles:i}=nt(t);t.labelStyle=r;const{shapeSvg:s,bbox:o,label:a}=await ct(e,t,ut(t)),n=t.padding??12,l=Math.max(o.width+n*2,t.width??0,90),c=o.height+n*2,h=Math.max(Math.min(c*.16,14),8),u=Math.max(c+h,t.height??0),d=u-h,f=Math.max(l*.38,28),y=-u/2,m=[{x:-l/2,y},{x:-l/2+f,y},{x:-l/2+f,y:y+h},{x:l/2,y:y+h},{x:l/2,y:u/2},{x:-l/2,y:u/2}],x=[`M${m[0].x},${m[0].y}`,...m.slice(1).map(T=>`L${T.x},${T.y}`),"Z"].join(" "),{cssStyles:C}=t;let k;if(t.look==="handDrawn"){const _=st.svg(s).path(x,it(t,{}));k=s.insert(()=>_,":first-child").attr("class","basic label-container"),C&&k.attr("style",C)}else k=s.insert("path",":first-child").attr("d",x).attr("class","basic label-container").attr("style",i);t.look==="handDrawn"?at(t,k):at(t,k,{width:l,height:u});const S=y+h+d/2;return a.attr("transform",`translate(${-(o.width/2)-(o.x-(o.left??0))}, ${S-o.height/2-(o.y-(o.top??0))})`),t.intersect=function(T){return rt.polygon(t,m,T)},s}g(Kf,"folder");function Qf(e,t,{dir:r,config:{state:i,themeVariables:s}}){const{nodeStyles:o}=nt(t);t.label="";const a=e.insert("g").attr("class",ut(t)).attr("id",t.domId??t.id),{cssStyles:n}=t;let l=Math.max(70,t?.width??0),c=Math.max(10,t?.height??0);r==="LR"&&(l=Math.max(10,t?.width??0),c=Math.max(70,t?.height??0));const h=-1*l/2,u=-1*c/2,d=st.svg(a),f=it(t,{stroke:s.lineColor,fill:s.lineColor});t.look!=="handDrawn"&&(f.roughness=0,f.fillStyle="solid");const y=d.rectangle(h,u,l,c,f),m=a.insert(()=>y,":first-child");n&&t.look!=="handDrawn"&&m.selectAll("path").attr("style",n),o&&t.look!=="handDrawn"&&m.selectAll("path").attr("style",o),at(t,m);const x=i?.padding??0;return t.width&&t.height&&(t.width+=x/2||0,t.height+=x/2||0),t.intersect=function(C){return rt.rect(t,C)},a}g(Qf,"forkJoin");async function Jf(e,t){const{labelStyles:r,nodeStyles:i}=nt(t);t.labelStyle=r;const s=15,o=10,a=t.look==="neo"?16:t.padding??0,n=t.look==="neo"?12:t.padding??0;(t.width||t.height)&&(t.height=(t?.height??0)-n*2,t.height<o&&(t.height=o),t.width=(t?.width??0)-a*2,t.width<s&&(t.width=s));const{shapeSvg:l,bbox:c}=await ct(e,t,ut(t)),h=(t?.width?t?.width:Math.max(s,c.width))+a*2,u=(t?.height?t?.height:Math.max(o,c.height))+n*2,d=u/2,{cssStyles:f}=t,y=st.svg(l),m=it(t,{});t.look!=="handDrawn"&&(m.roughness=0,m.fillStyle="solid");const x=[{x:-h/2,y:-u/2},{x:h/2-d,y:-u/2},...ve(-h/2+d,0,d,50,90,270),{x:h/2-d,y:u/2},{x:-h/2,y:u/2}],C=Mt(x),k=y.path(C,m),S=l.insert(()=>k,":first-child");return S.attr("class","basic label-container outer-path"),f&&t.look!=="handDrawn"&&S.selectChildren("path").attr("style",f),i&&t.look!=="handDrawn"&&S.selectChildren("path").attr("style",i),at(t,S),t.intersect=function(T){return P.info("Pill intersect",t,{radius:d,point:T}),rt.polygon(t,x,T)},l}g(Jf,"halfRoundedRectangle");var j2=g((e,t,r,i,s)=>[`M${e+s},${t}`,`L${e+r-s},${t}`,`L${e+r},${t-i/2}`,`L${e+r-s},${t-i}`,`L${e+s},${t-i}`,`L${e},${t-i/2}`,"Z"].join(" "),"createHexagonPathD");async function tg(e,t){const{labelStyles:r,nodeStyles:i}=nt(t),s=t.look==="neo"?3.5:4;t.labelStyle=r;const o=t.padding??0,a=70,n=32,l=t.look==="neo"?a:o,c=t.look==="neo"?n:o;if(t.width||t.height){const S=(t.height??0)/s;t.width=(t?.width??0)-2*S-c,t.height=(t.height??0)-l}const{shapeSvg:h,bbox:u}=await ct(e,t,ut(t)),d=(t?.height?t?.height:u.height)+l,f=d/s,y=(t?.width?t?.width:u.width)+2*f+c,m=[{x:f,y:0},{x:y-f,y:0},{x:y,y:-d/2},{x:y-f,y:-d},{x:f,y:-d},{x:0,y:-d/2}];let x;const{cssStyles:C}=t;if(t.look==="handDrawn"){const k=st.svg(h),S=it(t,{}),T=j2(0,0,y,d,f),_=k.path(T,S);x=h.insert(()=>_,":first-child").attr("transform",`translate(${-y/2}, ${d/2})`),C&&x.attr("style",C)}else x=De(h,y,d,m);return i&&x.attr("style",i),t.width=y,t.height=d,at(t,x),t.intersect=function(k){return rt.polygon(t,m,k)},h}g(tg,"hexagon");async function eg(e,t){const{labelStyles:r,nodeStyles:i}=nt(t);t.label="",t.labelStyle=r;const{shapeSvg:s}=await ct(e,t,ut(t)),o=Math.max(30,t?.width??0),a=Math.max(30,t?.height??0),{cssStyles:n}=t,l=st.svg(s),c=it(t,{});t.look!=="handDrawn"&&(c.roughness=0,c.fillStyle="solid");const h=[{x:0,y:0},{x:o,y:0},{x:0,y:a},{x:o,y:a}],u=Mt(h),d=l.path(u,c),f=s.insert(()=>d,":first-child");return f.attr("class","basic label-container outer-path"),n&&t.look!=="handDrawn"&&f.selectChildren("path").attr("style",n),i&&t.look!=="handDrawn"&&f.selectChildren("path").attr("style",i),f.attr("transform",`translate(${-o/2}, ${-a/2})`),at(t,f),t.intersect=function(y){return P.info("Pill intersect",t,{points:h}),rt.polygon(t,h,y)},s}g(eg,"hourglass");async function rg(e,t,{config:{themeVariables:r,flowchart:i}}){const{labelStyles:s}=nt(t);t.labelStyle=s;const o=t.assetHeight??48,a=t.assetWidth??48,n=Math.max(o,a),l=i?.wrappingWidth;t.width=Math.max(n,l??0);const{shapeSvg:c,bbox:h,label:u}=await ct(e,t,"icon-shape default"),d=t.pos==="t",f=n,y=n,{nodeBorder:m}=r,{stylesMap:x}=Zr(t),C=-y/2,k=-f/2,S=t.label?8:0,T=st.svg(c),_=it(t,{stroke:"none",fill:"none"});t.look!=="handDrawn"&&(_.roughness=0,_.fillStyle="solid");const L=T.rectangle(C,k,y,f,_),M=Math.max(y,h.width),v=f+h.height+S,X=T.rectangle(-M/2,-v/2,M,v,{..._,fill:"transparent",stroke:"none"}),z=c.insert(()=>L,":first-child"),I=c.insert(()=>X);if(t.icon){const et=c.append("g");et.html(`<g>${await Ki(t.icon,{height:n,width:n,fallbackPrefix:""})}</g>`);const H=et.node().getBBox(),E=H.width,O=H.height,B=H.x,R=H.y;et.attr("transform",`translate(${-E/2-B},${d?h.height/2+S/2-O/2-R:-h.height/2-S/2-O/2-R})`),et.attr("style",`color: ${x.get("stroke")??m};`)}return u.attr("transform",`translate(${-h.width/2-(h.x-(h.left??0))},${d?-v/2:v/2-h.height})`),z.attr("transform",`translate(0,${d?h.height/2+S/2:-h.height/2-S/2})`),at(t,I),t.intersect=function(et){if(P.info("iconSquare intersect",t,et),!t.label)return rt.rect(t,et);const H=t.x??0,E=t.y??0,O=t.height??0;let B=[];return d?B=[{x:H-h.width/2,y:E-O/2},{x:H+h.width/2,y:E-O/2},{x:H+h.width/2,y:E-O/2+h.height+S},{x:H+y/2,y:E-O/2+h.height+S},{x:H+y/2,y:E+O/2},{x:H-y/2,y:E+O/2},{x:H-y/2,y:E-O/2+h.height+S},{x:H-h.width/2,y:E-O/2+h.height+S}]:B=[{x:H-y/2,y:E-O/2},{x:H+y/2,y:E-O/2},{x:H+y/2,y:E-O/2+f},{x:H+h.width/2,y:E-O/2+f},{x:H+h.width/2/2,y:E+O/2},{x:H-h.width/2,y:E+O/2},{x:H-h.width/2,y:E-O/2+f},{x:H-y/2,y:E-O/2+f}],rt.polygon(t,B,et)},c}g(rg,"icon");async function ig(e,t,{config:{themeVariables:r,flowchart:i}}){const{labelStyles:s}=nt(t);t.labelStyle=s;const o=t.assetHeight??48,a=t.assetWidth??48,n=Math.max(o,a),l=i?.wrappingWidth;t.width=Math.max(n,l??0);const{shapeSvg:c,bbox:h,label:u}=await ct(e,t,"icon-shape default"),d=20,f=t.label?8:0,y=t.pos==="t",{nodeBorder:m,mainBkg:x}=r,{stylesMap:C}=Zr(t),k=st.svg(c),S=it(t,{});t.look!=="handDrawn"&&(S.roughness=0,S.fillStyle="solid");const T=C.get("fill");S.stroke=T??x;const _=c.append("g");t.icon&&_.html(`<g>${await Ki(t.icon,{height:n,width:n,fallbackPrefix:""})}</g>`);const L=_.node().getBBox(),M=L.width,v=L.height,X=L.x,z=L.y,I=Math.max(M,v)*Math.SQRT2+d*2,et=k.circle(0,0,I,S),H=Math.max(I,h.width),E=I+h.height+f,O=k.rectangle(-H/2,-E/2,H,E,{...S,fill:"transparent",stroke:"none"}),B=c.insert(()=>et,":first-child"),R=c.insert(()=>O);return _.attr("transform",`translate(${-M/2-X},${y?h.height/2+f/2-v/2-z:-h.height/2-f/2-v/2-z})`),_.attr("style",`color: ${C.get("stroke")??m};`),u.attr("transform",`translate(${-h.width/2-(h.x-(h.left??0))},${y?-E/2:E/2-h.height})`),B.attr("transform",`translate(0,${y?h.height/2+f/2:-h.height/2-f/2})`),at(t,R),t.intersect=function($){return P.info("iconSquare intersect",t,$),rt.rect(t,$)},c}g(ig,"iconCircle");async function sg(e,t,{config:{themeVariables:r,flowchart:i}}){const{labelStyles:s}=nt(t);t.labelStyle=s;const o=t.assetHeight??48,a=t.assetWidth??48,n=Math.max(o,a),l=i?.wrappingWidth;t.width=Math.max(n,l??0);const{shapeSvg:c,bbox:h,halfPadding:u,label:d}=await ct(e,t,"icon-shape default"),f=t.pos==="t",y=n+u*2,m=n+u*2,{nodeBorder:x,mainBkg:C}=r,{stylesMap:k}=Zr(t),S=-m/2,T=-y/2,_=t.label?8:0,L=st.svg(c),M=it(t,{});t.look!=="handDrawn"&&(M.roughness=0,M.fillStyle="solid");const v=k.get("fill");M.stroke=v??C;const X=L.path(ce(S,T,m,y,5),M),z=Math.max(m,h.width),I=y+h.height+_,et=L.rectangle(-z/2,-I/2,z,I,{...M,fill:"transparent",stroke:"none"}),H=c.insert(()=>X,":first-child").attr("class","icon-shape2"),E=c.insert(()=>et);if(t.icon){const O=c.append("g");O.html(`<g>${await Ki(t.icon,{height:n,width:n,fallbackPrefix:""})}</g>`);const B=O.node().getBBox(),R=B.width,$=B.height,J=B.x,Z=B.y;O.attr("transform",`translate(${-R/2-J},${f?h.height/2+_/2-$/2-Z:-h.height/2-_/2-$/2-Z})`),O.attr("style",`color: ${k.get("stroke")??x};`)}return d.attr("transform",`translate(${-h.width/2-(h.x-(h.left??0))},${f?-I/2:I/2-h.height})`),H.attr("transform",`translate(0,${f?h.height/2+_/2:-h.height/2-_/2})`),at(t,E),t.intersect=function(O){if(P.info("iconSquare intersect",t,O),!t.label)return rt.rect(t,O);const B=t.x??0,R=t.y??0,$=t.height??0;let J=[];return f?J=[{x:B-h.width/2,y:R-$/2},{x:B+h.width/2,y:R-$/2},{x:B+h.width/2,y:R-$/2+h.height+_},{x:B+m/2,y:R-$/2+h.height+_},{x:B+m/2,y:R+$/2},{x:B-m/2,y:R+$/2},{x:B-m/2,y:R-$/2+h.height+_},{x:B-h.width/2,y:R-$/2+h.height+_}]:J=[{x:B-m/2,y:R-$/2},{x:B+m/2,y:R-$/2},{x:B+m/2,y:R-$/2+y},{x:B+h.width/2,y:R-$/2+y},{x:B+h.width/2/2,y:R+$/2},{x:B-h.width/2,y:R+$/2},{x:B-h.width/2,y:R-$/2+y},{x:B-m/2,y:R-$/2+y}],rt.polygon(t,J,O)},c}g(sg,"iconRounded");async function og(e,t,{config:{themeVariables:r,flowchart:i}}){const{labelStyles:s}=nt(t);t.labelStyle=s;const o=t.assetHeight??48,a=t.assetWidth??48,n=Math.max(o,a),l=i?.wrappingWidth;t.width=Math.max(n,l??0);const{shapeSvg:c,bbox:h,halfPadding:u,label:d}=await ct(e,t,"icon-shape default"),f=t.pos==="t",y=n+u*2,m=n+u*2,{nodeBorder:x,mainBkg:C}=r,{stylesMap:k}=Zr(t),S=-m/2,T=-y/2,_=t.label?8:0,L=st.svg(c),M=it(t,{});t.look!=="handDrawn"&&(M.roughness=0,M.fillStyle="solid");const v=k.get("fill");M.stroke=v??C;const X=L.path(ce(S,T,m,y,.1),M),z=Math.max(m,h.width),I=y+h.height+_,et=L.rectangle(-z/2,-I/2,z,I,{...M,fill:"transparent",stroke:"none"}),H=c.insert(()=>X,":first-child"),E=c.insert(()=>et);if(t.icon){const O=c.append("g");O.html(`<g>${await Ki(t.icon,{height:n,width:n,fallbackPrefix:""})}</g>`);const B=O.node().getBBox(),R=B.width,$=B.height,J=B.x,Z=B.y;O.attr("transform",`translate(${-R/2-J},${f?h.height/2+_/2-$/2-Z:-h.height/2-_/2-$/2-Z})`),O.attr("style",`color: ${k.get("stroke")??x};`)}return d.attr("transform",`translate(${-h.width/2-(h.x-(h.left??0))},${f?-I/2:I/2-h.height})`),H.attr("transform",`translate(0,${f?h.height/2+_/2:-h.height/2-_/2})`),at(t,E),t.intersect=function(O){if(P.info("iconSquare intersect",t,O),!t.label)return rt.rect(t,O);const B=t.x??0,R=t.y??0,$=t.height??0;let J=[];return f?J=[{x:B-h.width/2,y:R-$/2},{x:B+h.width/2,y:R-$/2},{x:B+h.width/2,y:R-$/2+h.height+_},{x:B+m/2,y:R-$/2+h.height+_},{x:B+m/2,y:R+$/2},{x:B-m/2,y:R+$/2},{x:B-m/2,y:R-$/2+h.height+_},{x:B-h.width/2,y:R-$/2+h.height+_}]:J=[{x:B-m/2,y:R-$/2},{x:B+m/2,y:R-$/2},{x:B+m/2,y:R-$/2+y},{x:B+h.width/2,y:R-$/2+y},{x:B+h.width/2/2,y:R+$/2},{x:B-h.width/2,y:R+$/2},{x:B-h.width/2,y:R-$/2+y},{x:B-m/2,y:R-$/2+y}],rt.polygon(t,J,O)},c}g(og,"iconSquare");async function ag(e,t,{config:{flowchart:r}}){const i=new Image;i.src=t?.img??"",await i.decode();const s=Number(i.naturalWidth.toString().replace("px","")),o=Number(i.naturalHeight.toString().replace("px",""));t.imageAspectRatio=s/o;const{labelStyles:a}=nt(t);t.labelStyle=a;const n=r?.wrappingWidth;t.defaultWidth=r?.wrappingWidth;const l=Math.max(t.label?n??0:0,t?.assetWidth??s),c=t.constraint==="on"&&t?.assetHeight?t.assetHeight*t.imageAspectRatio:l,h=t.constraint==="on"?c/t.imageAspectRatio:t?.assetHeight??o;t.width=Math.max(c,n??0);const{shapeSvg:u,bbox:d,label:f}=await ct(e,t,"image-shape default"),y=t.pos==="t",m=-c/2,x=-h/2,C=t.label?8:0,k=st.svg(u),S=it(t,{});t.look!=="handDrawn"&&(S.roughness=0,S.fillStyle="solid");const T=k.rectangle(m,x,c,h,S),_=Math.max(c,d.width),L=h+d.height+C,M=k.rectangle(-_/2,-L/2,_,L,{...S,fill:"none",stroke:"none"}),v=u.insert(()=>T,":first-child"),X=u.insert(()=>M);if(t.img){const z=u.append("image");z.attr("href",t.img),z.attr("width",c),z.attr("height",h),z.attr("preserveAspectRatio","none"),z.attr("transform",`translate(${-c/2},${y?L/2-h:-L/2})`)}return f.attr("transform",`translate(${-d.width/2-(d.x-(d.left??0))},${y?-h/2-d.height/2-C/2:h/2-d.height/2+C/2})`),v.attr("transform",`translate(0,${y?d.height/2+C/2:-d.height/2-C/2})`),at(t,X),t.intersect=function(z){if(P.info("iconSquare intersect",t,z),!t.label)return rt.rect(t,z);const I=t.x??0,et=t.y??0,H=t.height??0;let E=[];return y?E=[{x:I-d.width/2,y:et-H/2},{x:I+d.width/2,y:et-H/2},{x:I+d.width/2,y:et-H/2+d.height+C},{x:I+c/2,y:et-H/2+d.height+C},{x:I+c/2,y:et+H/2},{x:I-c/2,y:et+H/2},{x:I-c/2,y:et-H/2+d.height+C},{x:I-d.width/2,y:et-H/2+d.height+C}]:E=[{x:I-c/2,y:et-H/2},{x:I+c/2,y:et-H/2},{x:I+c/2,y:et-H/2+h},{x:I+d.width/2,y:et-H/2+h},{x:I+d.width/2/2,y:et+H/2},{x:I-d.width/2,y:et+H/2},{x:I-d.width/2,y:et-H/2+h},{x:I-c/2,y:et-H/2+h}],rt.polygon(t,E,z)},u}g(ag,"imageSquare");async function ng(e,t){const{labelStyles:r,nodeStyles:i}=nt(t);t.labelStyle=r;const s=t.padding??0,o=s,a=t.look==="neo"?s*2:s,{shapeSvg:n,bbox:l}=await ct(e,t,ut(t)),c=Math.max(l.height+o*2,t.height??0),h=Math.max(l.width+a*2,(t.width??0)-c),u=[{x:0,y:0},{x:h,y:0},{x:h+3*c/6,y:-c},{x:-3*c/6,y:-c}];let d;const{cssStyles:f}=t;if(t.look==="handDrawn"){const y=st.svg(n),m=it(t,{}),x=Mt(u),C=y.path(x,m);d=n.insert(()=>C,":first-child").attr("transform",`translate(${-h/2}, ${c/2})`),f&&d.attr("style",f)}else d=De(n,h,c,u);return i&&d.attr("style",i),t.width=h,t.height=c,at(t,d),t.intersect=function(y){return rt.polygon(t,u,y)},n}g(ng,"inv_trapezoid");async function lg(e,t){const{shapeSvg:r,bbox:i,label:s}=await ct(e,t,"label"),o=r.insert("rect",":first-child");return o.attr("width",.1).attr("height",.1),r.attr("class","label edgeLabel"),s.attr("transform",`translate(${-(i.width/2)-(i.x-(i.left??0))}, ${-(i.height/2)-(i.y-(i.top??0))})`),at(t,o),t.intersect=function(l){return rt.rect(t,l)},r}g(lg,"labelRect");async function hg(e,t){const{labelStyles:r,nodeStyles:i}=nt(t);t.labelStyle=r;const s=t.padding??0,o=s,a=t.look==="neo"?s*2:s,{shapeSvg:n,bbox:l}=await ct(e,t,ut(t)),c=Math.max(l.height+o,t.height??0),h=Math.max(l.width+a,(t.width??0)-c),u=[{x:0,y:0},{x:h+3*c/6,y:0},{x:h,y:-c},{x:-(3*c)/6,y:-c}];let d;const{cssStyles:f}=t;if(t.look==="handDrawn"){const y=st.svg(n),m=it(t,{}),x=Mt(u),C=y.path(x,m);d=n.insert(()=>C,":first-child").attr("transform",`translate(${-h/2}, ${c/2})`),f&&d.attr("style",f)}else d=De(n,h,c,u);return i&&d.attr("style",i),t.width=h,t.height=c,at(t,d),t.intersect=function(y){return rt.polygon(t,u,y)},n}g(hg,"lean_left");async function cg(e,t){const{labelStyles:r,nodeStyles:i}=nt(t);t.labelStyle=r;const s=t.padding??0,o=s,a=t.look==="neo"?s*2:s,{shapeSvg:n,bbox:l}=await ct(e,t,ut(t)),c=Math.max(l.height+o,t.height??0),h=Math.max(l.width+a,(t.width??0)-c),u=[{x:-3*c/6,y:0},{x:h,y:0},{x:h+3*c/6,y:-c},{x:0,y:-c}];let d;const{cssStyles:f}=t;if(t.look==="handDrawn"){const y=st.svg(n),m=it(t,{}),x=Mt(u),C=y.path(x,m);d=n.insert(()=>C,":first-child").attr("transform",`translate(${-h/2}, ${c/2})`),f&&d.attr("style",f)}else d=De(n,h,c,u);return i&&d.attr("style",i),t.width=h,t.height=c,at(t,d),t.intersect=function(y){return rt.polygon(t,u,y)},n}g(cg,"lean_right");function ug(e,t){const{labelStyles:r,nodeStyles:i}=nt(t);t.label="",t.labelStyle=r;const s=e.insert("g").attr("class",ut(t)).attr("id",t.domId??t.id),{cssStyles:o}=t,a=Math.max(35,t?.width??0),n=Math.max(35,t?.height??0),l=7,c=[{x:a,y:0},{x:0,y:n+l/2},{x:a-2*l,y:n+l/2},{x:0,y:2*n},{x:a,y:n-l/2},{x:2*l,y:n-l/2}],h=st.svg(s),u=it(t,{});t.look!=="handDrawn"&&(u.roughness=0,u.fillStyle="solid");const d=Mt(c),f=h.path(d,u),y=s.insert(()=>f,":first-child");return y.attr("class","outer-path"),o&&t.look!=="handDrawn"&&y.selectAll("path").attr("style",o),i&&t.look!=="handDrawn"&&y.selectAll("path").attr("style",i),y.attr("transform",`translate(-${a/2},${-n})`),at(t,y),t.intersect=function(m){return P.info("lightningBolt intersect",t,m),rt.polygon(t,c,m)},s}g(ug,"lightningBolt");var U2=g((e,t,r,i,s,o,a)=>[`M${e},${t+o}`,`a${s},${o} 0,0,0 ${r},0`,`a${s},${o} 0,0,0 ${-r},0`,`l0,${i}`,`a${s},${o} 0,0,0 ${r},0`,`l0,${-i}`,`M${e},${t+o+a}`,`a${s},${o} 0,0,0 ${r},0`].join(" "),"createCylinderPathD"),G2=g((e,t,r,i,s,o,a)=>[`M${e},${t+o}`,`M${e+r},${t+o}`,`a${s},${o} 0,0,0 ${-r},0`,`l0,${i}`,`a${s},${o} 0,0,0 ${r},0`,`l0,${-i}`,`M${e},${t+o+a}`,`a${s},${o} 0,0,0 ${r},0`].join(" "),"createOuterCylinderPathD"),X2=g((e,t,r,i,s,o)=>[`M${e-r/2},${-i/2}`,`a${s},${o} 0,0,0 ${r},0`].join(" "),"createInnerCylinderPathD"),Uh=10,Gh=10;async function dg(e,t){const{labelStyles:r,nodeStyles:i}=nt(t);t.labelStyle=r;const s=t.padding??0,o=t.look==="neo"?16:s,a=t.look==="neo"?24:s;if(t.width||t.height){const C=t.width??0;t.width=(t.width??0)-o,t.width<Gh&&(t.width=Gh);const S=C/2/(2.5+C/50);t.height=(t.height??0)-a-S*3,t.height<Uh&&(t.height=Uh)}const{shapeSvg:n,bbox:l,label:c}=await ct(e,t,ut(t)),h=(t?.width?t?.width:l.width)+o*2,u=h/2,d=u/(2.5+h/50),f=(t?.height?t?.height:l.height)+d+a*2,y=f*.1;let m;const{cssStyles:x}=t;if(t.look==="handDrawn"){const C=st.svg(n),k=G2(0,0,h,f,u,d,y),S=X2(0,d,h,f,u,d),T=it(t,{}),_=C.path(k,T),L=C.path(S,T);n.insert(()=>L,":first-child").attr("class","line"),m=n.insert(()=>_,":first-child"),m.attr("class","basic label-container"),x&&m.attr("style",x)}else{const C=U2(0,0,h,f,u,d,y);m=n.insert("path",":first-child").attr("d",C).attr("class","basic label-container outer-path").attr("style",zt(x)).attr("style",i)}return m.attr("label-offset-y",d),m.attr("transform",`translate(${-h/2}, ${-(f/2+d)})`),at(t,m),c.attr("transform",`translate(${-(l.width/2)-(l.x-(l.left??0))}, ${-(l.height/2)+d-(l.y-(l.top??0))})`),t.intersect=function(C){const k=rt.rect(t,C),S=k.x-(t.x??0);if(u!=0&&(Math.abs(S)<(t.width??0)/2||Math.abs(S)==(t.width??0)/2&&Math.abs(k.y-(t.y??0))>(t.height??0)/2-d)){let T=d*d*(1-S*S/(u*u));T>0&&(T=Math.sqrt(T)),T=d-T,C.y-(t.y??0)>0&&(T=-T),k.y+=T}return k},n}g(dg,"linedCylinder");async function fg(e,t){const{labelStyles:r,nodeStyles:i}=nt(t);t.labelStyle=r;const s=t.padding??0,o=t.look==="neo"?16:s,a=t.look==="neo"?12:s;if(t.width||t.height){const T=t.width;t.width=(T??0)*10/11-o*2,t.width<10&&(t.width=10),t.height=(t?.height??0)-a*2,t.height<10&&(t.height=10)}const{shapeSvg:n,bbox:l,label:c}=await ct(e,t,ut(t)),h=(t?.width?t?.width:l.width)+(o??0)*2,u=(t?.height?t?.height:l.height)+(a??0)*2,d=t.look==="neo"?u/4:u/8,f=u+d,{cssStyles:y}=t,m=st.svg(n),x=it(t,{});t.look!=="handDrawn"&&(x.roughness=0,x.fillStyle="solid");const C=[{x:-h/2-h/2*.1,y:-f/2},{x:-h/2-h/2*.1,y:f/2},...sr(-h/2-h/2*.1,f/2,h/2+h/2*.1,f/2,d,.8),{x:h/2+h/2*.1,y:-f/2},{x:-h/2-h/2*.1,y:-f/2},{x:-h/2,y:-f/2},{x:-h/2,y:f/2*1.1},{x:-h/2,y:-f/2}],k=m.polygon(C.map(T=>[T.x,T.y]),x),S=n.insert(()=>k,":first-child");return S.attr("class","basic label-container outer-path"),y&&t.look!=="handDrawn"&&S.selectAll("path").attr("style",y),i&&t.look!=="handDrawn"&&S.selectAll("path").attr("style",i),S.attr("transform",`translate(0,${-d/2})`),c.attr("transform",`translate(${-h/2+(t.padding??0)+h/2*.1/2-(l.x-(l.left??0))},${-u/2+(t.padding??0)-d/2-(l.y-(l.top??0))})`),at(t,S),t.intersect=function(T){return rt.polygon(t,C,T)},n}g(fg,"linedWaveEdgedRect");async function gg(e,t){const{labelStyles:r,nodeStyles:i}=nt(t);t.labelStyle=r;const s=t.padding??0,o=t.look==="neo"?16:s,a=t.look==="neo"?12:s,n=t.look==="neo"?10:5;(t.width||t.height)&&(t.width=Math.max((t?.width??0)-o*2-2*n,10),t.height=Math.max((t?.height??0)-a*2-2*n,10));const{shapeSvg:l,bbox:c,label:h}=await ct(e,t,ut(t)),u=(t?.width?t?.width:c.width)+o*2+2*n,d=(t?.height?t?.height:c.height)+a*2+2*n,f=u-2*n,y=d-2*n,m=-f/2,x=-y/2,{cssStyles:C}=t,k=st.svg(l),S=it(t,{}),T=[{x:m-n,y:x+n},{x:m-n,y:x+y+n},{x:m+f-n,y:x+y+n},{x:m+f-n,y:x+y},{x:m+f,y:x+y},{x:m+f,y:x+y-n},{x:m+f+n,y:x+y-n},{x:m+f+n,y:x-n},{x:m+n,y:x-n},{x:m+n,y:x},{x:m,y:x},{x:m,y:x+n}],_=[{x:m,y:x+n},{x:m+f-n,y:x+n},{x:m+f-n,y:x+y},{x:m+f,y:x+y},{x:m+f,y:x},{x:m,y:x}];t.look!=="handDrawn"&&(S.roughness=0,S.fillStyle="solid");const L=Mt(T);let M=k.path(L,S);const v=Mt(_);let X=k.path(v,S);t.look!=="handDrawn"&&(M=ja(M),X=ja(X));const z=l.insert("g",":first-child");return z.insert(()=>M),z.insert(()=>X),z.attr("class","basic label-container outer-path"),C&&t.look!=="handDrawn"&&z.selectAll("path").attr("style",C),i&&t.look!=="handDrawn"&&z.selectAll("path").attr("style",i),h.attr("transform",`translate(${-(c.width/2)-n-(c.x-(c.left??0))}, ${-(c.height/2)+n-(c.y-(c.top??0))})`),at(t,z),t.intersect=function(I){return rt.polygon(t,T,I)},l}g(gg,"multiRect");async function pg(e,t){const{labelStyles:r,nodeStyles:i}=nt(t);t.labelStyle=r;const{shapeSvg:s,bbox:o,label:a}=await ct(e,t,ut(t)),n=t.padding??0,l=t.look==="neo"?16:n,c=t.look==="neo"?12:n;let h=!0;(t.width||t.height)&&(h=!1,t.width=(t?.width??0)-l*2,t.height=(t?.height??0)-c*3);const u=Math.max(o.width,t?.width??0)+l*2,d=Math.max(o.height,t?.height??0)+c*3,f=t.look==="neo"?d/4:d/8,y=d+(h?f/2:-f/2),m=-u/2,x=-y/2,C=10,{cssStyles:k}=t,S=sr(m-C,x+y+C,m+u-C,x+y+C,f,.8),T=S?.[S.length-1],_=[{x:m-C,y:x+C},{x:m-C,y:x+y+C},...S,{x:m+u-C,y:T.y-C},{x:m+u,y:T.y-C},{x:m+u,y:T.y-2*C},{x:m+u+C,y:T.y-2*C},{x:m+u+C,y:x-C},{x:m+C,y:x-C},{x:m+C,y:x},{x:m,y:x},{x:m,y:x+C}],L=[{x:m,y:x+C},{x:m+u-C,y:x+C},{x:m+u-C,y:T.y-C},{x:m+u,y:T.y-C},{x:m+u,y:x},{x:m,y:x}],M=st.svg(s),v=it(t,{});t.look!=="handDrawn"&&(v.roughness=0,v.fillStyle="solid");const X=Mt(_),z=M.path(X,v),I=Mt(L),et=M.path(I,v),H=s.insert(()=>z,":first-child");return H.insert(()=>et),H.attr("class","basic label-container outer-path"),k&&t.look!=="handDrawn"&&H.selectAll("path").attr("style",k),i&&t.look!=="handDrawn"&&H.selectAll("path").attr("style",i),H.attr("transform",`translate(0,${-f/2})`),a.attr("transform",`translate(${-(o.width/2)-C-(o.x-(o.left??0))}, ${-(o.height/2)+C-f/2-(o.y-(o.top??0))})`),at(t,H),t.intersect=function(E){return rt.polygon(t,_,E)},s}g(pg,"multiWaveEdgedRectangle");async function yg(e,t,{config:{themeVariables:r}}){const{labelStyles:i,nodeStyles:s}=nt(t);t.labelStyle=i,t.useHtmlLabels||Kt(Rt())||(t.centerLabel=!0);const{shapeSvg:a,bbox:n,label:l}=await ct(e,t,ut(t)),c=Math.max(n.width+(t.padding??0)*2,t?.width??0),h=Math.max(n.height+(t.padding??0)*2,t?.height??0),u=-c/2,d=-h/2,{cssStyles:f}=t,y=st.svg(a),m=it(t,{fill:r.noteBkgColor,stroke:r.noteBorderColor});t.look!=="handDrawn"&&(m.roughness=0,m.fillStyle="solid");const x=y.rectangle(u,d,c,h,m),C=a.insert(()=>x,":first-child");return C.attr("class","basic label-container outer-path"),l.attr("class","label noteLabel"),f&&t.look!=="handDrawn"&&C.selectAll("path").attr("style",f),s&&t.look!=="handDrawn"&&C.selectAll("path").attr("style",s),l.attr("transform",`translate(${-n.width/2-(n.x-(n.left??0))}, ${-(n.height/2)-(n.y-(n.top??0))})`),at(t,C),t.intersect=function(k){return rt.rect(t,k)},a}g(yg,"note");var V2=g((e,t,r)=>[`M${e+r/2},${t}`,`L${e+r},${t-r/2}`,`L${e+r/2},${t-r}`,`L${e},${t-r/2}`,"Z"].join(" "),"createDecisionBoxPathD");async function mg(e,t){const{labelStyles:r,nodeStyles:i}=nt(t);t.labelStyle=r;const{shapeSvg:s,bbox:o}=await ct(e,t,ut(t)),a=o.width+(t.padding??0),n=o.height+(t.padding??0),l=a+n,c=.5,h=[{x:l/2,y:0},{x:l,y:-l/2},{x:l/2,y:-l},{x:0,y:-l/2}];let u;const{cssStyles:d}=t;if(t.look==="handDrawn"){const f=st.svg(s),y=it(t,{}),m=V2(0,0,l),x=f.path(m,y);u=s.insert(()=>x,":first-child").attr("transform",`translate(${-l/2+c}, ${l/2})`),d&&u.attr("style",d)}else u=De(s,l,l,h),u.attr("transform",`translate(${-l/2+c}, ${l/2})`);return i&&u.attr("style",i),at(t,u),t.calcIntersect=function(f,y){const m=f.width,x=[{x:m/2,y:0},{x:m,y:-m/2},{x:m/2,y:-m},{x:0,y:-m/2}],C=rt.polygon(f,x,y);return{x:C.x-.5,y:C.y-.5}},t.intersect=function(f){return this.calcIntersect(t,f)},s}g(mg,"question");async function xg(e,t){const{labelStyles:r,nodeStyles:i}=nt(t);t.labelStyle=r;const s=t.padding??0,o=t.look==="neo"?21:s??0,a=t.look==="neo"?12:s??0,{shapeSvg:n,bbox:l,label:c}=await ct(e,t,ut(t)),h=l.width+(t.look==="neo"?o*2:o),u=Math.max(l.height+(t.look==="neo"?a*2:a),t.height??0),d=u/4,y=-Math.max(h,(t.width??0)-d)/2,m=-u/2,x=m/2,C=[{x:y+x,y:m},{x:y,y:0},{x:y+x,y:-m},{x:-y,y:-m},{x:-y,y:m}],{cssStyles:k}=t,S=st.svg(n),T=it(t,{});t.look!=="handDrawn"&&(T.roughness=0,T.fillStyle="solid");const _=Mt(C),L=S.path(_,T),M=n.insert(()=>L,":first-child");return M.attr("class","basic label-container outer-path"),k&&t.look!=="handDrawn"&&M.selectAll("path").attr("style",k),i&&t.look!=="handDrawn"&&M.selectAll("path").attr("style",i),M.attr("transform",`translate(${-x/2},0)`),c.attr("transform",`translate(${-x/2-l.width/2-(l.x-(l.left??0))}, ${-(l.height/2)-(l.y-(l.top??0))})`),at(t,M),t.intersect=function(v){return rt.polygon(t,C,v)},n}g(xg,"rect_left_inv_arrow");async function Cg(e,t){const{labelStyles:r,nodeStyles:i}=nt(t);t.labelStyle=r;let s;t.cssClasses?s="node "+t.cssClasses:s="node default";const o=e.insert("g").attr("class",s).attr("id",t.domId||t.id),a=o.insert("g"),n=o.insert("g").attr("class","label").attr("style",i),l=t.description,c=t.label,h=await Qe(n,c,t.labelStyle,!0,!0);let u={width:0,height:0};if(Kt(Bt())){const v=h.children[0],X=Tt(h);u=v.getBoundingClientRect(),X.attr("width",u.width),X.attr("height",u.height)}P.info("Text 2",l);const d=l||[],f=h.getBBox(),y=await Qe(n,Array.isArray(d)?d.join("<br/>"):d,t.labelStyle,!0,!0),m=y.children[0],x=Tt(y);u=m.getBoundingClientRect(),x.attr("width",u.width),x.attr("height",u.height);const C=(t.padding||0)/2;Tt(y).attr("transform","translate( "+(u.width>f.width?0:(f.width-u.width)/2)+", "+(f.height+C+5)+")"),Tt(h).attr("transform","translate( "+(u.width<f.width?0:-(f.width-u.width)/2)+", 0)"),u=n.node().getBBox(),n.attr("transform","translate("+-u.width/2+", "+(-u.height/2-C+3)+")");const k=u.width+(t.padding||0),S=u.height+(t.padding||0),T=-u.width/2-C,_=-u.height/2-C;let L,M;if(t.look==="handDrawn"){const v=st.svg(o),X=it(t,{}),z=v.path(ce(T,_,k,S,t.rx||0),X),I=v.line(-u.width/2-C,-u.height/2-C+f.height+C,u.width/2+C,-u.height/2-C+f.height+C,X);M=o.insert(()=>(P.debug("Rough node insert CXC",z),I),":first-child"),L=o.insert(()=>(P.debug("Rough node insert CXC",z),z),":first-child")}else L=a.insert("rect",":first-child"),M=a.insert("line"),L.attr("class","outer title-state").attr("style",i).attr("x",-u.width/2-C).attr("y",-u.height/2-C).attr("width",u.width+(t.padding||0)).attr("height",u.height+(t.padding||0)),M.attr("class","divider").attr("x1",-u.width/2-C).attr("x2",u.width/2+C).attr("y1",-u.height/2-C+f.height+C).attr("y2",-u.height/2-C+f.height+C);return at(t,L),t.intersect=function(v){return rt.rect(t,v)},o}g(Cg,"rectWithTitle");async function bg(e,t,{config:{themeVariables:r}}){const i=r?.radius??5,s={rx:i,ry:i,labelPaddingX:(t?.padding??0)*1,labelPaddingY:(t?.padding??0)*1};return Kr(e,t,s)}g(bg,"roundedRect");var or=8;async function kg(e,t){const{labelStyles:r,nodeStyles:i}=nt(t);t.labelStyle=r;const s=t.look==="neo"?16:t.padding??0,o=t.look==="neo"?12:t.padding??0,{shapeSvg:a,bbox:n,label:l}=await ct(e,t,ut(t)),c=(t?.width??n.width)+s*2+(t.look==="neo"?or:or*2),h=(t?.height??n.height)+o*2,u=c-or,d=h,f=or-c/2,y=-h/2,{cssStyles:m}=t,x=st.svg(a),C=it(t,{});t.look!=="handDrawn"&&(C.roughness=0,C.fillStyle="solid");const k=[{x:f,y},{x:f+u,y},{x:f+u,y:y+d},{x:f-or,y:y+d},{x:f-or,y},{x:f,y},{x:f,y:y+d}],S=x.polygon(k.map(_=>[_.x,_.y]),C),T=a.insert(()=>S,":first-child");return T.attr("class","basic label-container outer-path").attr("style",zt(m)),i&&t.look!=="handDrawn"&&T.selectAll("path").attr("style",i),m&&t.look!=="handDrawn"&&T.selectAll("path").attr("style",i),l.attr("transform",`translate(${or/2-n.width/2-(n.x-(n.left??0))}, ${-(n.height/2)-(n.y-(n.top??0))})`),at(t,T),t.intersect=function(_){return rt.rect(t,_)},a}g(kg,"shadedProcess");async function wg(e,t){const{labelStyles:r,nodeStyles:i}=nt(t);t.labelStyle=r;const s=t.padding??0,o=t.look==="neo"?16:s,a=t.look==="neo"?12:s;(t.width||t.height)&&(t.width=Math.max((t?.width??0)-o*2,10),t.height=Math.max((t?.height??0)/1.5-a*2,10));const{shapeSvg:n,bbox:l,label:c}=await ct(e,t,ut(t)),h=(t?.width?t?.width:l.width)+o*2,u=((t?.height?t?.height:l.height)+a*2)*1.5,d=h,f=u/1.5,y=-d/2,m=-f/2,{cssStyles:x}=t,C=st.svg(n),k=it(t,{});t.look!=="handDrawn"&&(k.roughness=0,k.fillStyle="solid");const S=[{x:y,y:m},{x:y,y:m+f},{x:y+d,y:m+f},{x:y+d,y:m-f/2}],T=Mt(S),_=C.path(T,k),L=n.insert(()=>_,":first-child");return L.attr("class","basic label-container outer-path"),x&&t.look!=="handDrawn"&&L.selectChildren("path").attr("style",x),i&&t.look!=="handDrawn"&&L.selectChildren("path").attr("style",i),L.attr("transform",`translate(0, ${f/4})`),c.attr("transform",`translate(${-d/2+(t.padding??0)-(l.x-(l.left??0))}, ${-f/4+(t.padding??0)-(l.y-(l.top??0))})`),at(t,L),t.intersect=function(M){return rt.polygon(t,S,M)},n}g(wg,"slopedRect");async function Sg(e,t){const r=t.padding??0,i=t.look==="neo"?16:r*2,s=t.look==="neo"?12:r,o={rx:0,ry:0,labelPaddingX:t.labelPaddingX??i,labelPaddingY:s};return Kr(e,t,o)}g(Sg,"squareRect");async function Tg(e,t){const{labelStyles:r,nodeStyles:i}=nt(t);t.labelStyle=r;const s=t.padding??0,o=t.look==="neo"?20:s,a=t.look==="neo"?12:s,{shapeSvg:n,bbox:l}=await ct(e,t,ut(t)),c=l.height+(t.look==="neo"?a*2:a),h=l.width+c/4+(t.look==="neo"?o*2:o),u=c/2,{cssStyles:d}=t,f=st.svg(n),y=it(t,{});t.look!=="handDrawn"&&(y.roughness=0,y.fillStyle="solid");const m=[{x:-h/2+u,y:-c/2},{x:h/2-u,y:-c/2},...ve(-h/2+u,0,u,50,90,270),{x:h/2-u,y:c/2},...ve(h/2-u,0,u,50,270,450)],x=Mt(m),C=f.path(x,y),k=n.insert(()=>C,":first-child");return k.attr("class","basic label-container outer-path"),d&&t.look!=="handDrawn"&&k.selectChildren("path").attr("style",d),i&&t.look!=="handDrawn"&&k.selectChildren("path").attr("style",i),at(t,k),t.intersect=function(S){return rt.polygon(t,m,S)},n}g(Tg,"stadium");async function _g(e,t){const r={rx:t.look==="neo"?3:5,ry:t.look==="neo"?3:5};return Kr(e,t,r)}g(_g,"state");function Bg(e,t,{config:{themeVariables:r}}){const{labelStyles:i,nodeStyles:s}=nt(t);t.labelStyle=i;const{cssStyles:o}=t,{lineColor:a,stateBorder:n,nodeBorder:l,nodeShadow:c}=r;(t.width||t.height)&&((t.width??0)<14&&(t.width=14),(t.height??0)<14&&(t.height=14)),t.width||(t.width=14),t.height||(t.height=14);const h=e.insert("g").attr("class","node default").attr("id",t.domId??t.id),u=st.svg(h),d=it(t,{});t.look!=="handDrawn"&&(d.roughness=0,d.fillStyle="solid");const f=u.circle(0,0,t.width,{...d,stroke:a,strokeWidth:2}),y=n??l,m=(t.width??0)*5/14,x=u.circle(0,0,m,{...d,fill:y,stroke:y,strokeWidth:2,fillStyle:"solid"}),C=h.insert(()=>f,":first-child");if(C.insert(()=>x),t.look!=="handDrawn"&&C.attr("class","outer-path"),o&&C.selectAll("path").attr("style",o),s&&C.selectAll("path").attr("style",s),t.width<25&&c&&t.look!=="handDrawn"){const k=e.node()?.ownerSVGElement?.id??"",S=k?`${k}-drop-shadow-small`:"drop-shadow-small";C.attr("style",`filter:url(#${S})`)}return at(t,C),t.intersect=function(k){return rt.circle(t,(t.width??0)/2,k)},h}g(Bg,"stateEnd");function vg(e,t,{config:{themeVariables:r}}){const{lineColor:i,nodeShadow:s}=r;(t.width||t.height)&&((t.width??0)<14&&(t.width=14),(t.height??0)<14&&(t.height=14)),t.width||(t.width=14),t.height||(t.height=14);const o=e.insert("g").attr("class","node default").attr("id",t.domId||t.id);let a;if(t.look==="handDrawn"){const l=st.svg(o).circle(0,0,t.width,Vb(i));a=o.insert(()=>l),a.attr("class","state-start").attr("r",(t.width??7)/2).attr("width",t.width??14).attr("height",t.height??14)}else a=o.insert("circle",":first-child"),a.attr("class","state-start").attr("r",(t.width??7)/2).attr("width",t.width??14).attr("height",t.height??14);if(t.width<25&&s&&t.look!=="handDrawn"){const n=e.node()?.ownerSVGElement?.id??"",l=n?`${n}-drop-shadow-small`:"drop-shadow-small";a.attr("style",`filter:url(#${l})`)}return at(t,a),t.intersect=function(n){return rt.circle(t,(t.width??7)/2,n)},o}g(vg,"stateStart");var Or=8;async function Lg(e,t){const{labelStyles:r,nodeStyles:i}=nt(t);t.labelStyle=r;const s=t?.padding??8,o=t.look==="neo"?28:s,a=t.look==="neo"?12:s,{shapeSvg:n,bbox:l}=await ct(e,t,ut(t)),c=Math.max(l.width+2*Or+o,t.width??0),h=Math.max(l.height+a,t.height??0),u=c-2*Or,d=h,f=-c/2,y=-h/2,m=[{x:0,y:0},{x:u,y:0},{x:u,y:-d},{x:0,y:-d},{x:0,y:0},{x:-8,y:0},{x:u+8,y:0},{x:u+8,y:-d},{x:-8,y:-d},{x:-8,y:0}];if(t.look==="handDrawn"){const x=st.svg(n),C=it(t,{}),k=x.rectangle(f,y,u+16,d,C),S=x.line(f+Or,y,f+Or,y+d,C),T=x.line(f+Or+u,y,f+Or+u,y+d,C);n.insert(()=>S,":first-child"),n.insert(()=>T,":first-child");const _=n.insert(()=>k,":first-child"),{cssStyles:L}=t;_.attr("class","basic label-container").attr("style",zt(L)),at(t,_)}else{const x=De(n,u,d,m);i&&x.attr("style",i),at(t,x)}return t.intersect=function(x){return rt.polygon(t,m,x)},n}g(Lg,"subroutine");var Wo=.2;async function Fg(e,t){const{labelStyles:r,nodeStyles:i}=nt(t);t.labelStyle=r;const s=t.padding??0,o=t.look==="neo"?16:s,a=t.look==="neo"?12:s;(t.width||t.height)&&(t.height=Math.max((t?.height??0)-a*2,10),t.width=Math.max((t?.width??0)-o*2-Wo*(t.height+a*2),10));const{shapeSvg:n,bbox:l}=await ct(e,t,ut(t)),c=(t?.height?t?.height:l.height)+a*2,h=Wo*c,u=Wo*c,f=(t?.width?t?.width:l.width)+o*2+h-h,y=c,m=-f/2,x=-y/2,{cssStyles:C}=t,k=st.svg(n),S=it(t,{}),T=[{x:m-h/2,y:x},{x:m+f+h/2,y:x},{x:m+f+h/2,y:x+y},{x:m-h/2,y:x+y}],_=[{x:m+f-h/2,y:x+y},{x:m+f+h/2,y:x+y},{x:m+f+h/2,y:x+y-u}];t.look!=="handDrawn"&&(S.roughness=0,S.fillStyle="solid");const L=Mt(T),M=k.path(L,S),v=Mt(_),X=k.path(v,{...S,fillStyle:"solid"}),z=n.insert(()=>X,":first-child");return z.insert(()=>M,":first-child"),z.attr("class","basic label-container outer-path"),C&&t.look!=="handDrawn"&&z.selectAll("path").attr("style",C),i&&t.look!=="handDrawn"&&z.selectAll("path").attr("style",i),at(t,z),t.intersect=function(I){return rt.polygon(t,T,I)},n}g(Fg,"taggedRect");async function Mg(e,t){const{labelStyles:r,nodeStyles:i}=nt(t);t.labelStyle=r;const{shapeSvg:s,bbox:o,label:a}=await ct(e,t,ut(t)),n=Math.max(o.width+(t.padding??0)*2,t?.width??0),l=Math.max(o.height+(t.padding??0)*2,t?.height??0),c=l/8,h=.2*n,u=.2*l,d=l+c,{cssStyles:f}=t,y=st.svg(s),m=it(t,{});t.look!=="handDrawn"&&(m.roughness=0,m.fillStyle="solid");const x=[{x:-n/2-n/2*.1,y:d/2},...sr(-n/2-n/2*.1,d/2,n/2+n/2*.1,d/2,c,.8),{x:n/2+n/2*.1,y:-d/2},{x:-n/2-n/2*.1,y:-d/2}],C=-n/2+n/2*.1,k=-d/2-u*.4,S=[{x:C+n-h,y:(k+l)*1.3},{x:C+n,y:k+l-u},{x:C+n,y:(k+l)*.9},...sr(C+n,(k+l)*1.25,C+n-h,(k+l)*1.3,-l*.02,.5)],T=Mt(x),_=y.path(T,m),L=Mt(S),M=y.path(L,{...m,fillStyle:"solid"}),v=s.insert(()=>M,":first-child");return v.insert(()=>_,":first-child"),v.attr("class","basic label-container outer-path"),f&&t.look!=="handDrawn"&&v.selectAll("path").attr("style",f),i&&t.look!=="handDrawn"&&v.selectAll("path").attr("style",i),v.attr("transform",`translate(0,${-c/2})`),a.attr("transform",`translate(${-n/2+(t.padding??0)-(o.x-(o.left??0))},${-l/2+(t.padding??0)-c/2-(o.y-(o.top??0))})`),at(t,v),t.intersect=function(X){return rt.polygon(t,x,X)},s}g(Mg,"taggedWaveEdgedRectangle");async function Ag(e,t){const{labelStyles:r,nodeStyles:i}=nt(t);t.labelStyle=r;const{shapeSvg:s,bbox:o}=await ct(e,t,ut(t)),a=Math.max(o.width+(t.padding??0),t?.width||0),n=Math.max(o.height+(t.padding??0),t?.height||0),l=-a/2,c=-n/2,h=s.insert("rect",":first-child");return h.attr("class","text").attr("style",i).attr("rx",0).attr("ry",0).attr("x",l).attr("y",c).attr("width",a).attr("height",n),at(t,h),t.intersect=function(u){return rt.rect(t,u)},s}g(Ag,"text");var Z2=g((e,t,r,i,s,o)=>`M${e},${t}
199
+ a${s},${o} 0,0,1 0,${-i}
200
+ l${r},0
201
+ a${s},${o} 0,0,1 0,${i}
202
+ M${r},${-i}
203
+ a${s},${o} 0,0,0 0,${i}
204
+ l${-r},0`,"createCylinderPathD"),K2=g((e,t,r,i,s,o)=>[`M${e},${t}`,`M${e+r},${t}`,`a${s},${o} 0,0,0 0,${-i}`,`l${-r},0`,`a${s},${o} 0,0,0 0,${i}`,`l${r},0`].join(" "),"createOuterCylinderPathD"),Q2=g((e,t,r,i,s,o)=>[`M${e+r/2},${-i/2}`,`a${s},${o} 0,0,0 0,${i}`].join(" "),"createInnerCylinderPathD"),Xh=5,Vh=10;async function Eg(e,t){const{labelStyles:r,nodeStyles:i}=nt(t);t.labelStyle=r;const s=t.padding??0,o=t.look==="neo"?12:s/2,a=t.height??0;if(t.height&&(t.height=t.height-o,t.height<Xh&&(t.height=Xh)),t.width){const C=a/2/(2.5+a/50);t.width=t.width-o-C*3,t.width<Vh&&(t.width=Vh)}const{shapeSvg:n,bbox:l,label:c}=await ct(e,t,ut(t)),h=Math.max(t.height??0,l.height)+o,u=h/2,d=u/(2.5+h/50),f=Math.max(t.width??0,l.width)+d+o,{cssStyles:y}=t;let m;if(t.look==="handDrawn"){const x=st.svg(n),C=K2(0,0,f,h,d,u),k=Q2(0,0,f,h,d,u),S=x.path(C,it(t,{})),T=x.path(k,it(t,{fill:"none"}));m=n.insert(()=>T,":first-child"),m=n.insert(()=>S,":first-child"),m.attr("class","basic label-container"),y&&m.attr("style",y)}else{const x=Z2(0,0,f,h,d,u);m=n.insert("path",":first-child").attr("d",x).attr("class","basic label-container").attr("style",zt(y)).attr("style",i),m.attr("class","basic label-container outer-path"),y&&m.selectAll("path").attr("style",y),i&&m.selectAll("path").attr("style",i)}return m.attr("label-offset-x",d),m.attr("transform",`translate(${-f/2}, ${h/2} )`),c.attr("transform",`translate(${-(l.width/2)-d-(l.x-(l.left??0))}, ${-(l.height/2)-(l.y-(l.top??0))})`),at(t,m),t.intersect=function(x){const C=rt.rect(t,x),k=C.y-(t.y??0);if(u!=0&&(Math.abs(k)<(t.height??0)/2||Math.abs(k)==(t.height??0)/2&&Math.abs(C.x-(t.x??0))>(t.width??0)/2-d)){let S=d*d*(1-k*k/(u*u));S!=0&&(S=Math.sqrt(Math.abs(S))),S=d-S,x.x-(t.x??0)>0&&(S=-S),C.x+=S}return C},n}g(Eg,"tiltedCylinder");async function $g(e,t){const{labelStyles:r,nodeStyles:i}=nt(t);t.labelStyle=r;const s=t.padding??0,o=(t.look==="neo",s),a=t.look==="neo"?s*2:s,{shapeSvg:n,bbox:l}=await ct(e,t,ut(t)),c=Math.max(l.height+o,t.height??0),h=Math.max(l.width+a,(t.width??0)-c),u=[{x:-3*c/6,y:0},{x:h+3*c/6,y:0},{x:h,y:-c},{x:0,y:-c}];let d;const{cssStyles:f}=t;if(t.look==="handDrawn"){const y=st.svg(n),m=it(t,{}),x=Mt(u),C=y.path(x,m);d=n.insert(()=>C,":first-child").attr("transform",`translate(${-h/2}, ${c/2})`),f&&d.attr("style",f)}else d=De(n,h,c,u);return i&&d.attr("style",i),t.width=h,t.height=c,at(t,d),t.intersect=function(y){return rt.polygon(t,u,y)},n}g($g,"trapezoid");async function Og(e,t){const{labelStyles:r,nodeStyles:i}=nt(t);t.labelStyle=r;const s=t.padding??0,o=t.look==="neo"?16:s,a=t.look==="neo"?12:s,n=15,l=5;(t.width||t.height)&&(t.height=(t.height??0)-a*2,t.height<l&&(t.height=l),t.width=(t.width??0)-o*2,t.width<n&&(t.width=n));const{shapeSvg:c,bbox:h}=await ct(e,t,ut(t)),u=(t?.width?t?.width:h.width)+o*2,d=(t?.height?t?.height:h.height)+a*2,{cssStyles:f}=t,y=st.svg(c),m=it(t,{});t.look!=="handDrawn"&&(m.roughness=0,m.fillStyle="solid");const x=[{x:-u/2*.8,y:-d/2},{x:u/2*.8,y:-d/2},{x:u/2,y:-d/2*.6},{x:u/2,y:d/2},{x:-u/2,y:d/2},{x:-u/2,y:-d/2*.6}],C=Mt(x),k=y.path(C,m),S=c.insert(()=>k,":first-child");return S.attr("class","basic label-container outer-path"),f&&t.look!=="handDrawn"&&S.selectChildren("path").attr("style",f),i&&t.look!=="handDrawn"&&S.selectChildren("path").attr("style",i),at(t,S),t.intersect=function(T){return rt.polygon(t,x,T)},c}g(Og,"trapezoidalPentagon");var Zh=10,Kh=10;async function Dg(e,t){const{labelStyles:r,nodeStyles:i}=nt(t);t.labelStyle=r;const s=t.padding??0,o=t.look==="neo"?s*2:s;(t.width||t.height)&&(t.width=((t?.width??0)-o)/2,t.width<Kh&&(t.width=Kh),t.height=t?.height??0,t.height<Zh&&(t.height=Zh));const{shapeSvg:a,bbox:n,label:l}=await ct(e,t,ut(t)),c=$e(Bt().flowchart?.htmlLabels),h=(t?.width?t?.width:n.width)+o,u=t?.height?t?.height:h+n.height,d=u,f=[{x:0,y:0},{x:d,y:0},{x:d/2,y:-u}],{cssStyles:y}=t,m=st.svg(a),x=it(t,{});t.look!=="handDrawn"&&(x.roughness=0,x.fillStyle="solid");const C=Mt(f),k=m.path(C,x),S=a.insert(()=>k,":first-child").attr("transform",`translate(${-u/2}, ${u/2})`).attr("class","outer-path");return y&&t.look!=="handDrawn"&&S.selectChildren("path").attr("style",y),i&&t.look!=="handDrawn"&&S.selectChildren("path").attr("style",i),t.width=h,t.height=u,at(t,S),l.attr("transform",`translate(${-n.width/2-(n.x-(n.left??0))}, ${u/2-(n.height+(t.padding??0)/(c?2:1)-(n.y-(n.top??0)))})`),t.intersect=function(T){return P.info("Triangle intersect",t,f,T),rt.polygon(t,f,T)},a}g(Dg,"triangle");async function Pg(e,t){const{labelStyles:r,nodeStyles:i}=nt(t);t.labelStyle=r;const s=t.padding??0,o=t.look==="neo"?16:s,a=t.look==="neo"?12:s;let n=!0;(t.width||t.height)&&(n=!1,t.width=(t?.width??0)-o*2,t.width<10&&(t.width=10),t.height=(t?.height??0)-a*2,t.height<10&&(t.height=10));const{shapeSvg:l,bbox:c,label:h}=await ct(e,t,ut(t)),u=(t?.width?t?.width:c.width)+(o??0)*2,d=(t?.height?t?.height:c.height)+(a??0)*2,f=t.look==="neo"?d/4:d/8,y=d+(n?f:-f),{cssStyles:m}=t,C=14-u,k=C>0?C/2:0,S=st.svg(l),T=it(t,{});t.look!=="handDrawn"&&(T.roughness=0,T.fillStyle="solid");const _=[{x:-u/2-k,y:y/2},...sr(-u/2-k,y/2,u/2+k,y/2,f,.8),{x:u/2+k,y:-y/2},{x:-u/2-k,y:-y/2}],L=Mt(_),M=S.path(L,T),v=l.insert(()=>M,":first-child");return v.attr("class","basic label-container outer-path"),m&&t.look!=="handDrawn"&&v.selectAll("path").attr("style",m),i&&t.look!=="handDrawn"&&v.selectAll("path").attr("style",i),v.attr("transform",`translate(0,${-f/2})`),h.attr("transform",`translate(${-u/2+(t.padding??0)-(c.x-(c.left??0))},${-d/2+(t.padding??0)-f-(c.y-(c.top??0))})`),at(t,v),t.intersect=function(X){return rt.polygon(t,_,X)},l}g(Pg,"waveEdgedRectangle");async function Ig(e,t){const{labelStyles:r,nodeStyles:i}=nt(t);t.labelStyle=r;const s=t.padding??0,o=t.look==="neo"?16:s,a=t.look==="neo"?20:s;if(t.width||t.height){t.width=t?.width??0,t.width<20&&(t.width=20),t.height=t?.height??0,t.height<10&&(t.height=10);const T=Math.min(t.height*.2,t.height/4);t.height=Math.ceil(t.height-a-T*(20/9)),t.width=t.width-o*2}const{shapeSvg:n,bbox:l}=await ct(e,t,ut(t)),c=(t?.width?t?.width:l.width)+o*2,h=(t?.height?t?.height:l.height)+a,u=h/8,d=h+u*2,{cssStyles:f}=t,y=st.svg(n),m=it(t,{});t.look!=="handDrawn"&&(m.roughness=0,m.fillStyle="solid");const x=[{x:-c/2,y:d/2},...sr(-c/2,d/2,c/2,d/2,u,1),{x:c/2,y:-d/2},...sr(c/2,-d/2,-c/2,-d/2,u,-1)],C=Mt(x),k=y.path(C,m),S=n.insert(()=>k,":first-child");return S.attr("class","basic label-container"),f&&t.look!=="handDrawn"&&S.selectAll("path").attr("style",f),i&&t.look!=="handDrawn"&&S.selectAll("path").attr("style",i),at(t,S),t.intersect=function(T){return rt.polygon(t,x,T)},n}g(Ig,"waveRectangle");var qt=10;async function Rg(e,t){const{labelStyles:r,nodeStyles:i}=nt(t);t.labelStyle=r;const s=t.look==="neo"?16:t.padding??0,o=t.look==="neo"?12:t.padding??0;(t.width||t.height)&&(t.width=Math.max((t?.width??0)-s*2-qt,10),t.height=Math.max((t?.height??0)-o*2-qt,10));const{shapeSvg:a,bbox:n,label:l}=await ct(e,t,ut(t)),c=(t?.width?t?.width:n.width)+s*2+qt,h=(t?.height?t?.height:n.height)+o*2+qt,u=c-qt,d=h-qt,f=-u/2,y=-d/2,{cssStyles:m}=t,x=st.svg(a),C=it(t,{}),k=[{x:f-qt,y:y-qt},{x:f-qt,y:y+d},{x:f+u,y:y+d},{x:f+u,y:y-qt}],S=`M${f-qt},${y-qt} L${f+u},${y-qt} L${f+u},${y+d} L${f-qt},${y+d} L${f-qt},${y-qt}
205
+ M${f-qt},${y} L${f+u},${y}
206
+ M${f},${y-qt} L${f},${y+d}`;t.look!=="handDrawn"&&(C.roughness=0,C.fillStyle="solid");const T=x.path(S,C),_=a.insert(()=>T,":first-child");return _.attr("transform",`translate(${qt/2}, ${qt/2})`),_.attr("class","basic label-container outer-path"),m&&t.look!=="handDrawn"&&_.selectAll("path").attr("style",m),i&&t.look!=="handDrawn"&&_.selectAll("path").attr("style",i),l.attr("transform",`translate(${-(n.width/2)+qt/2-(n.x-(n.left??0))}, ${-(n.height/2)+qt/2-(n.y-(n.top??0))})`),at(t,_),t.intersect=function(L){return rt.polygon(t,k,L)},a}g(Rg,"windowPane");var Qh=new Set(["redux-color","redux-dark-color"]),J2=new Set(["redux","redux-dark","redux-color","redux-dark-color"]);async function Qn(e,t){const r=t;r.alias&&(t.label=r.alias);const{theme:i,themeVariables:s}=Rt(),{rowEven:o,rowOdd:a,nodeBorder:n,borderColorArray:l}=s;if(t.look==="handDrawn"){const{themeVariables:ht}=Rt(),{background:pt}=ht,vt={...t,id:t.id+"-background",domId:(t.domId||t.id)+"-background",look:"default",cssStyles:["stroke: none",`fill: ${pt}`]};await Qn(e,vt)}const c=Rt();t.useHtmlLabels=c.htmlLabels;let h=c.er?.diagramPadding??10,u=c.er?.entityPadding??6;const{cssStyles:d}=t,{labelStyles:f,nodeStyles:y}=nt(t);if(r.attributes.length===0&&t.label){const ht={rx:0,ry:0,labelPaddingX:h,labelPaddingY:h*1.5};Ye(t.label,c)+ht.labelPaddingX*2<c.er.minEntityWidth&&(t.width=c.er.minEntityWidth);const pt=await Kr(e,t,ht);if(i!=null&&Qh.has(i)){const vt=r.colorIndex??0;pt.attr("data-color-id",`color-${vt%l.length}`)}if(!$e(c.htmlLabels)){const vt=pt.select("text"),kt=vt.node()?.getBBox();vt.attr("transform",`translate(${-kt.width/2}, 0)`)}return pt}c.htmlLabels||(h*=1.25,u*=1.25);let m=ut(t);m||(m="node default");const x=e.insert("g").attr("class",m).attr("id",t.domId||t.id),C=await Dr(x,t.label??"",c,0,0,["name"],f);C.height+=u;let k=0;const S=[],T=[];let _=0,L=0,M=0,v=0,X=!0,z=!0;for(const ht of r.attributes){const pt=await Dr(x,ht.type,c,0,k,["attribute-type"],f);_=Math.max(_,pt.width+h);const vt=await Dr(x,ht.name,c,0,k,["attribute-name"],f);L=Math.max(L,vt.width+h);const kt=await Dr(x,ht.keys.join(),c,0,k,["attribute-keys"],f);M=Math.max(M,kt.width+h);const Et=await Dr(x,ht.comment,c,0,k,["attribute-comment"],f);v=Math.max(v,Et.width+h);const Ot=Math.max(pt.height,vt.height,kt.height,Et.height)+u;T.push({yOffset:k,rowHeight:Ot}),k+=Ot}let I=4;M<=h&&(X=!1,M=0,I--),v<=h&&(z=!1,v=0,I--);const et=x.node().getBBox();if(C.width+h*2-(_+L+M+v)>0){const ht=C.width+h*2-(_+L+M+v);_+=ht/I,L+=ht/I,M>0&&(M+=ht/I),v>0&&(v+=ht/I)}const H=_+L+M+v,E=st.svg(x),O=it(t,{});t.look!=="handDrawn"&&(O.roughness=0,O.fillStyle="solid");let B=0;T.length>0&&(B=T.reduce((ht,pt)=>ht+(pt?.rowHeight??0),0));const R=Math.max(et.width+h*2,t?.width||0,H),$=Math.max((B??0)+C.height,t?.height||0),J=-R/2,Z=-$/2;if(x.selectAll("g:not(:first-child)").each((ht,pt,vt)=>{const kt=Tt(vt[pt]),Et=kt.attr("transform");let Ot=0,Jt=0;if(Et){const ke=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(Et);ke&&(Ot=parseFloat(ke[1]),Jt=parseFloat(ke[2]),kt.attr("class").includes("attribute-name")?Ot+=_:kt.attr("class").includes("attribute-keys")?Ot+=_+L:kt.attr("class").includes("attribute-comment")&&(Ot+=_+L+M))}kt.attr("transform",`translate(${J+h/2+Ot}, ${Jt+Z+C.height+u/2})`)}),x.select(".name").attr("transform","translate("+-C.width/2+", "+(Z+u/2)+")"),i!=null&&Qh.has(i)){const ht=r.colorIndex??0;x.attr("data-color-id",`color-${ht%l.length}`)}const dt=E.rectangle(J,Z,R,$,O),Ct=x.insert(()=>dt,":first-child").attr("class","outer-path").attr("style",d.join(""));S.push(0);for(const[ht,pt]of T.entries()){const kt=(ht+1)%2===0&&pt.yOffset!==0,Et=E.rectangle(J,C.height+Z+pt?.yOffset,R,pt?.rowHeight,{...O,fill:kt?o:a,stroke:n});x.insert(()=>Et,"g.label").attr("style",d.join("")).attr("class",`row-rect-${kt?"even":"odd"}`)}const xt=1e-4;let St=Pr(J,C.height+Z,R+J,C.height+Z,xt),wt=E.polygon(St.map(ht=>[ht.x,ht.y]),O);if(x.insert(()=>wt).attr("class","divider"),St=Pr(_+J,C.height+Z,_+J,$+Z,xt),wt=E.polygon(St.map(ht=>[ht.x,ht.y]),O),x.insert(()=>wt).attr("class","divider"),X){const ht=_+L+J;St=Pr(ht,C.height+Z,ht,$+Z,xt),wt=E.polygon(St.map(pt=>[pt.x,pt.y]),O),x.insert(()=>wt).attr("class","divider")}if(z){const ht=_+L+M+J;St=Pr(ht,C.height+Z,ht,$+Z,xt),wt=E.polygon(St.map(pt=>[pt.x,pt.y]),O),x.insert(()=>wt).attr("class","divider")}for(const ht of S){const pt=C.height+Z+ht;St=Pr(J,pt,R+J,pt,xt),wt=E.polygon(St.map(vt=>[vt.x,vt.y]),O),x.insert(()=>wt).attr("class","divider")}if(at(t,Ct),y&&t.look!=="handDrawn")if(i!=null&&J2.has(i))x.selectAll("path").attr("style",y);else{const pt=y.split(";")?.filter(vt=>vt.includes("stroke"))?.map(vt=>`${vt}`).join("; ");x.selectAll("path").attr("style",pt??""),x.selectAll(".row-rect-even path").attr("style",y)}return t.intersect=function(ht){return rt.rect(t,ht)},x}g(Qn,"erBox");async function Dr(e,t,r,i=0,s=0,o=[],a=""){const n=e.insert("g").attr("class",`label ${o.join(" ")}`).attr("transform",`translate(${i}, ${s})`).attr("style",a);t!==Rl(t)&&(t=Rl(t),t=t.replaceAll("<","&lt;").replaceAll(">","&gt;"));const l=n.node().appendChild(await be(n,t,{width:Ye(t,r)+100,style:a,useHtmlLabels:r.htmlLabels},r));if(t.includes("&lt;")||t.includes("&gt;")){let h=l.children[0];for(h.textContent=h.textContent.replaceAll("&lt;","<").replaceAll("&gt;",">");h.childNodes[0];)h=h.childNodes[0],h.textContent=h.textContent.replaceAll("&lt;","<").replaceAll("&gt;",">")}let c=l.getBBox();if($e(r.htmlLabels)){const h=l.children[0];h.style.textAlign="start";const u=Tt(l);c=h.getBoundingClientRect(),u.attr("width",c.width),u.attr("height",c.height)}return c}g(Dr,"addText");function Pr(e,t,r,i,s){return e===r?[{x:e-s/2,y:t},{x:e+s/2,y:t},{x:r+s/2,y:i},{x:r-s/2,y:i}]:[{x:e,y:t-s/2},{x:e,y:t+s/2},{x:r,y:i+s/2},{x:r,y:i-s/2}]}g(Pr,"lineToPolygon");async function qg(e,t,r,i,s=r.class.padding??12){const o=i?0:3,a=e.insert("g").attr("class",ut(t)).attr("id",t.domId||t.id);let n=null,l=null,c=null,h=null,u=0,d=0,f=0;if(n=a.insert("g").attr("class","annotation-group text"),t.annotations.length>0){const k=t.annotations[0];await Si(n,{text:`«${k}»`},0),u=n.node().getBBox().height}l=a.insert("g").attr("class","label-group text"),await Si(l,t,0,["font-weight: bolder"]);const y=l.node().getBBox();d=y.height,c=a.insert("g").attr("class","members-group text");let m=0;for(const k of t.members){const S=await Si(c,k,m,[k.parseClassifier()]);m+=S+o}f=c.node().getBBox().height,f<=0&&(f=s/2),h=a.insert("g").attr("class","methods-group text");let x=0;for(const k of t.methods){const S=await Si(h,k,x,[k.parseClassifier()]);x+=S+o}let C=a.node().getBBox();if(n!==null){const k=n.node().getBBox();n.attr("transform",`translate(${-k.width/2})`)}return l.attr("transform",`translate(${-y.width/2}, ${u})`),C=a.node().getBBox(),c.attr("transform",`translate(0, ${u+d+s*2})`),C=a.node().getBBox(),h.attr("transform",`translate(0, ${u+d+(f?f+s*4:s*2)})`),C=a.node().getBBox(),{shapeSvg:a,bbox:C}}g(qg,"textHelper");async function Si(e,t,r,i=[]){const s=e.insert("g").attr("class","label").attr("style",i.join("; ")),o=Rt();let a="useHtmlLabels"in t?t.useHtmlLabels:$e(o.htmlLabels)??!0,n="";"text"in t?n=t.text:n=t.label,!a&&n.startsWith("\\")&&(n=n.substring(1)),Di(n)&&(a=!0);const l=await be(s,fn(rr(n)),{width:Ye(n,o)+50,classes:"markdown-node-label",useHtmlLabels:a},o);let c,h=1;if(a){const u=l.children[0],d=Tt(l);h=u.innerHTML.split("<br>").length,u.innerHTML.includes("</math>")&&(h+=u.innerHTML.split("<mrow>").length-1),await Xn(u),c=u.getBoundingClientRect(),d.attr("width",c.width),d.attr("height",c.height)}else{i.includes("font-weight: bolder")&&Tt(l).selectAll("tspan").attr("font-weight",""),h=l.children.length;const u=l.children[0];(l.textContent===""||l.textContent.includes("&gt"))&&(u.textContent=n[0]+n.substring(1).replaceAll("&gt;",">").replaceAll("&lt;","<").trim(),n[1]===" "&&(u.textContent=u.textContent[0]+" "+u.textContent.substring(1))),u.textContent==="undefined"&&(u.textContent=""),c=l.getBBox()}return s.attr("transform","translate(0,"+(-c.height/(2*h)+r)+")"),c.height}g(Si,"addText");async function Ng(e,t){const r=Bt(),{themeVariables:i}=r,{useGradient:s}=i,o=r.class.padding??12,a=o,n=t.useHtmlLabels??$e(r.htmlLabels)??!0,l=t;l.annotations=l.annotations??[],l.members=l.members??[],l.methods=l.methods??[];const{shapeSvg:c,bbox:h}=await qg(e,t,r,n,a),{labelStyles:u,nodeStyles:d}=nt(t);t.labelStyle=u,t.cssStyles=l.styles||"";const f=l.styles?.join(";")||d||"";t.cssStyles||(t.cssStyles=f.replaceAll("!important","").split(";"));const y=l.members.length===0&&l.methods.length===0&&!r.class?.hideEmptyMembersBox,m=st.svg(c),x=it(t,{});t.look!=="handDrawn"&&(x.roughness=0,x.fillStyle="solid");const C=Math.max(t.width??0,h.width);let k=Math.max(t.height??0,h.height);const S=(t.height??0)>h.height;l.members.length===0&&l.methods.length===0?k+=a:l.members.length>0&&l.methods.length===0&&(k+=a*2);const T=-C/2,_=-k/2;let L=y?o*2:l.members.length===0&&l.methods.length===0?-o:0;S&&(L=o*2);const M=m.rectangle(T-o,_-o-(y?o:l.members.length===0&&l.methods.length===0?-o/2:0),C+2*o,k+2*o+L,x),v=c.insert(()=>M,":first-child");v.attr("class","basic label-container outer-path");const X=v.node().getBBox(),z=c.select(".annotation-group").node().getBBox().height-(y?o/2:0)||0,I=c.select(".label-group").node().getBBox().height-(y?o/2:0)||0,et=c.select(".members-group").node().getBBox().height-(y?o/2:0)||0,H=(z+I+_+o-(_-o-(y?o:l.members.length===0&&l.methods.length===0?-o/2:0)))/2;if(c.selectAll(".text").each((E,O,B)=>{const R=Tt(B[O]),$=R.attr("transform");let J=0;if($){const xt=RegExp(/translate\(([^,]+),([^)]+)\)/).exec($);xt&&(J=parseFloat(xt[2]))}let Z=J+_+o-(y?o:l.members.length===0&&l.methods.length===0?-o/2:0);if(R.attr("class").includes("methods-group")){const Ct=Math.max(et,a/2);S?Z=Math.max(H,z+I+Ct+_+a*2+o)+a*2:Z=z+I+Ct+_+a*4+o}l.members.length===0&&l.methods.length===0&&r.class?.hideEmptyMembersBox&&(l.annotations.length>0?Z=J-a:Z=J),n||(Z-=4);let dt=T;(R.attr("class").includes("label-group")||R.attr("class").includes("annotation-group"))&&(dt=-R.node()?.getBBox().width/2||0,c.selectAll("text").each(function(Ct,xt,St){window.getComputedStyle(St[xt]).textAnchor==="middle"&&(dt=0)})),R.attr("transform",`translate(${dt}, ${Z})`)}),l.members.length>0||l.methods.length>0||y){const E=z+I+_+o,O=m.line(X.x,E,X.x+X.width,E+.001,x);c.insert(()=>O).attr("class",`divider${t.look==="neo"&&!s?" neo-line":""}`).attr("style",f)}if(y||l.members.length>0||l.methods.length>0){const E=z+I+et+_+a*2+o,O=m.line(X.x,S?Math.max(H,E):E,X.x+X.width,(S?Math.max(H,E):E)+.001,x);c.insert(()=>O).attr("class",`divider${t.look==="neo"&&!s?" neo-line":""}`).attr("style",f)}if(l.look!=="handDrawn"&&c.selectAll("path").attr("style",f),v.select(":nth-child(2)").attr("style",f),c.selectAll(".divider").select("path").attr("style",f),t.labelStyle?c.selectAll("span").attr("style",t.labelStyle):c.selectAll("span").attr("style",f),!n){const E=RegExp(/color\s*:\s*([^;]*)/),O=E.exec(f);if(O){const B=O[0].replace("color","fill");c.selectAll("tspan").attr("style",B)}else if(u){const B=E.exec(u);if(B){const R=B[0].replace("color","fill");c.selectAll("tspan").attr("style",R)}}}return at(t,v),t.intersect=function(E){return rt.rect(t,E)},c}g(Ng,"classBox");async function Wg(e,t){const{labelStyles:r,nodeStyles:i}=nt(t);t.labelStyle=r;const s=t,o=t,a=20,n=20,l="verifyMethod"in t,c=ut(t),h=Bt(),{themeVariables:u}=h,{borderColorArray:d,requirementEdgeLabelBackground:f}=u,y=h.layout==="elk"?"start":"center",m=e.insert("g").attr("class",c).attr("id",t.domId??t.id);let x;l?x=await Te(m,`&lt;&lt;${s.type}&gt;&gt;`,0,t.labelStyle):x=await Te(m,"&lt;&lt;Element&gt;&gt;",0,t.labelStyle);let C=x;const k=await Te(m,s.name,C,t.labelStyle+"; font-weight: bold;");if(C+=k+n,l){const I=await Te(m,`${s.requirementId?`ID: ${s.requirementId}`:""}`,C,t.labelStyle,y);C+=I;const et=await Te(m,`${s.text?`Text: ${s.text}`:""}`,C,t.labelStyle,y);C+=et;const H=await Te(m,`${s.risk?`Risk: ${s.risk}`:""}`,C,t.labelStyle,y);C+=H,await Te(m,`${s.verifyMethod?`Verification: ${s.verifyMethod}`:""}`,C,t.labelStyle,y)}else{const I=await Te(m,`${o.type?`Type: ${o.type}`:""}`,C,t.labelStyle,y);C+=I,await Te(m,`${o.docRef?`Doc Ref: ${o.docRef}`:""}`,C,t.labelStyle,y)}const S=(m.node()?.getBBox().width??200)+a,T=(m.node()?.getBBox().height??200)+a,_=-S/2,L=-T/2,M=st.svg(m),v=it(t,{});t.look!=="handDrawn"&&(v.roughness=0,v.fillStyle="solid");const X=M.rectangle(_,L,S,T,v),z=m.insert(()=>X,":first-child");if(z.attr("class","basic label-container outer-path").attr("style",i),d?.length){const I=t.colorIndex??0;m.attr("data-color-id",`color-${I%d.length}`)}if(m.selectAll(".label").each((I,et,H)=>{const E=Tt(H[et]),O=E.attr("transform");let B=0,R=0;if(O){const dt=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(O);dt&&(B=parseFloat(dt[1]),R=parseFloat(dt[2]))}const $=R-T/2;let J=_+a/2;(et===0||et===1)&&(J=B),E.attr("transform",`translate(${J}, ${$+a})`)}),C>x+k+n){const I=L+x+k+n;let et;if(t.look==="neo"){const O=[[_,I],[_+S,I],[_+S,I+.001],[_,I+.001]];et=M.polygon(O,v)}else et=M.line(_,I,_+S,I,v);m.insert(()=>et).attr("class","divider")}return at(t,z),t.intersect=function(I){return rt.rect(t,I)},i&&t.look!=="handDrawn"&&(f||d?.length)&&m.selectAll("path").attr("style",i),m}g(Wg,"requirementBox");async function Te(e,t,r,i="",s="center"){if(t==="")return 0;const o=e.insert("g").attr("class","label").attr("style",i),a=Bt(),n=a.htmlLabels??!0,l=await be(o,fn(rr(t)),{width:Ye(t,a)+50,classes:"markdown-node-label",useHtmlLabels:n,style:i},a);let c;if(n){const h=l.children[0],u=Tt(l);s==="start"&&Tt(h).style("text-align","left"),c=h.getBoundingClientRect(),u.attr("width",c.width),u.attr("height",c.height)}else{const h=l.children[0];for(const u of h.children)i&&u.setAttribute("style",i);if(s==="start"){h.setAttribute("text-anchor","start");for(const u of h.children)u.setAttribute("text-anchor","start")}c=l.getBBox(),c.height+=6}return o.attr("transform",`translate(${-c.width/2},${-c.height/2+r})`),c.height}g(Te,"addText");var tw=g(e=>{switch(e){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 zg(e,t,{config:r}){const{labelStyles:i,nodeStyles:s}=nt(t);t.labelStyle=i||"";const o=10,a=t.width;t.width=(t.width??200)-10;const{shapeSvg:n,bbox:l,label:c}=await ct(e,t,ut(t)),h=t.padding||10;let u="",d;"ticket"in t&&t.ticket&&r?.kanban?.ticketBaseUrl&&(u=r?.kanban?.ticketBaseUrl.replace("#TICKET#",t.ticket),d=n.insert("svg:a",":first-child").attr("class","kanban-ticket-link").attr("xlink:href",u).attr("target","_blank"));const f={useHtmlLabels:t.useHtmlLabels,labelStyle:t.labelStyle||"",width:t.width,img:t.img,padding:t.padding||8,centerLabel:!1};let y,m;d?{label:y,bbox:m}=await qo(d,"ticket"in t&&t.ticket||"",f):{label:y,bbox:m}=await qo(n,"ticket"in t&&t.ticket||"",f);const{label:x,bbox:C}=await qo(n,"assigned"in t&&t.assigned||"",f);t.width=a;const k=10,S=t?.width||0,T=Math.max(m.height,C.height)/2,_=Math.max(l.height+k*2,t?.height||0)+T,L=-S/2,M=-_/2;c.attr("transform","translate("+(h-S/2)+", "+(-T-l.height/2)+")"),y.attr("transform","translate("+(h-S/2)+", "+(-T+l.height/2)+")"),x.attr("transform","translate("+(h+S/2-C.width-2*o)+", "+(-T+l.height/2)+")");let v;const{rx:X,ry:z}=t,{cssStyles:I}=t;if(t.look==="handDrawn"){const et=st.svg(n),H=it(t,{}),E=X||z?et.path(ce(L,M,S,_,X||0),H):et.rectangle(L,M,S,_,H);v=n.insert(()=>E,":first-child"),v.attr("class","basic label-container").attr("style",I||null)}else{v=n.insert("rect",":first-child"),v.attr("class","basic label-container __APA__").attr("style",s).attr("rx",X??5).attr("ry",z??5).attr("x",L).attr("y",M).attr("width",S).attr("height",_);const et="priority"in t&&t.priority;if(et){const H=n.append("line"),E=L+2,O=M+Math.floor((X??0)/2),B=M+_-Math.floor((X??0)/2);H.attr("x1",E).attr("y1",O).attr("x2",E).attr("y2",B).attr("stroke-width","4").attr("stroke",tw(et))}}return at(t,v),t.height=_,t.intersect=function(et){return rt.rect(t,et)},n}g(zg,"kanbanItem");async function Hg(e,t){const{labelStyles:r,nodeStyles:i}=nt(t);t.labelStyle=r;const{shapeSvg:s,bbox:o,halfPadding:a,label:n}=await ct(e,t,ut(t)),l=o.width+10*a,c=o.height+8*a,h=.15*l,{cssStyles:u}=t,d=o.width+20,f=o.height+20,y=Math.max(l,d),m=Math.max(c,f);n.attr("transform",`translate(${-o.width/2}, ${-o.height/2})`);let x;const C=`M0 0
207
+ a${h},${h} 1 0,0 ${y*.25},${-1*m*.1}
208
+ a${h},${h} 1 0,0 ${y*.25},0
209
+ a${h},${h} 1 0,0 ${y*.25},0
210
+ a${h},${h} 1 0,0 ${y*.25},${m*.1}
211
+
212
+ a${h},${h} 1 0,0 ${y*.15},${m*.33}
213
+ a${h*.8},${h*.8} 1 0,0 0,${m*.34}
214
+ a${h},${h} 1 0,0 ${-1*y*.15},${m*.33}
215
+
216
+ a${h},${h} 1 0,0 ${-1*y*.25},${m*.15}
217
+ a${h},${h} 1 0,0 ${-1*y*.25},0
218
+ a${h},${h} 1 0,0 ${-1*y*.25},0
219
+ a${h},${h} 1 0,0 ${-1*y*.25},${-1*m*.15}
220
+
221
+ a${h},${h} 1 0,0 ${-1*y*.1},${-1*m*.33}
222
+ a${h*.8},${h*.8} 1 0,0 0,${-1*m*.34}
223
+ a${h},${h} 1 0,0 ${y*.1},${-1*m*.33}
224
+ H0 V0 Z`;if(t.look==="handDrawn"){const k=st.svg(s),S=it(t,{}),T=k.path(C,S);x=s.insert(()=>T,":first-child"),x.attr("class","basic label-container").attr("style",zt(u))}else x=s.insert("path",":first-child").attr("class","basic label-container").attr("style",i).attr("d",C);return x.attr("transform",`translate(${-y/2}, ${-m/2})`),at(t,x),t.calcIntersect=function(k,S){return rt.rect(k,S)},t.intersect=function(k){return P.info("Bang intersect",t,k),rt.rect(t,k)},s}g(Hg,"bang");async function Yg(e,t){const{labelStyles:r,nodeStyles:i}=nt(t);t.labelStyle=r;const{shapeSvg:s,bbox:o,halfPadding:a,label:n}=await ct(e,t,ut(t)),l=o.width+2*a,c=o.height+2*a,h=.15*l,u=.25*l,d=.35*l,f=.2*l,{cssStyles:y}=t;let m;const x=`M0 0
225
+ a${h},${h} 0 0,1 ${l*.25},${-1*l*.1}
226
+ a${d},${d} 1 0,1 ${l*.4},${-1*l*.1}
227
+ a${u},${u} 1 0,1 ${l*.35},${l*.2}
228
+
229
+ a${h},${h} 1 0,1 ${l*.15},${c*.35}
230
+ a${f},${f} 1 0,1 ${-1*l*.15},${c*.65}
231
+
232
+ a${u},${h} 1 0,1 ${-1*l*.25},${l*.15}
233
+ a${d},${d} 1 0,1 ${-1*l*.5},0
234
+ a${h},${h} 1 0,1 ${-1*l*.25},${-1*l*.15}
235
+
236
+ a${h},${h} 1 0,1 ${-1*l*.1},${-1*c*.35}
237
+ a${f},${f} 1 0,1 ${l*.1},${-1*c*.65}
238
+ H0 V0 Z`;if(t.look==="handDrawn"){const C=st.svg(s),k=it(t,{}),S=C.path(x,k);m=s.insert(()=>S,":first-child"),m.attr("class","basic label-container").attr("style",zt(y))}else m=s.insert("path",":first-child").attr("class","basic label-container").attr("style",i).attr("d",x);return n.attr("transform",`translate(${-o.width/2}, ${-o.height/2})`),m.attr("transform",`translate(${-l/2}, ${-c/2})`),at(t,m),t.calcIntersect=function(C,k){return rt.rect(C,k)},t.intersect=function(C){return P.info("Cloud intersect",t,C),rt.rect(t,C)},s}g(Yg,"cloud");async function jg(e,t){const{labelStyles:r,nodeStyles:i}=nt(t);t.labelStyle=r;const{shapeSvg:s,bbox:o,halfPadding:a,label:n}=await ct(e,t,ut(t)),l=o.width+8*a,c=o.height+2*a,h=5,u=t.look==="neo"?`
239
+ M${-l/2} ${c/2-h}
240
+ v${-c+2*h}
241
+ q0,-${h} ${h},-${h}
242
+ h${l-2*h}
243
+ q${h},0 ${h},${h}
244
+ v${c-h}
245
+ H${-l/2}
246
+ Z
247
+ `:`
248
+ M${-l/2} ${c/2-h}
249
+ v${-c+2*h}
250
+ q0,-${h} ${h},-${h}
251
+ h${l-2*h}
252
+ q${h},0 ${h},${h}
253
+ v${c-2*h}
254
+ q0,${h} ${-h},${h}
255
+ h${-(l-2*h)}
256
+ q${-h},0 ${-h},${-h}
257
+ Z
258
+ `;if(!t.domId)throw new Error(`defaultMindmapNode: node "${t.id}" is missing a domId — was render.ts domId prefixing skipped?`);const d=s.append("path").attr("id",t.domId).attr("class","node-bkg node-"+t.type).attr("style",i).attr("d",u);return s.append("line").attr("class","node-line-").attr("x1",-l/2).attr("y1",c/2).attr("x2",l/2).attr("y2",c/2),n.attr("transform",`translate(${-o.width/2}, ${-o.height/2})`),s.append(()=>n.node()),at(t,d),t.calcIntersect=function(f,y){return rt.rect(f,y)},t.intersect=function(f){return rt.rect(t,f)},s}g(jg,"defaultMindmapNode");async function Ug(e,t){const r={padding:t.padding??0};return Kn(e,t,r)}g(Ug,"mindmapCircle");var ew=[{semanticName:"Process",name:"Rectangle",shortName:"rect",description:"Standard process shape",aliases:["proc","process","rectangle"],internalAliases:["squareRect"],handler:Sg},{semanticName:"Event",name:"Rounded Rectangle",shortName:"rounded",description:"Represents an event",aliases:["event"],internalAliases:["roundedRect"],handler:bg},{semanticName:"Terminal Point",name:"Stadium",shortName:"stadium",description:"Terminal point",aliases:["terminal","pill"],handler:Tg},{semanticName:"Subprocess",name:"Framed Rectangle",shortName:"fr-rect",description:"Subprocess",aliases:["subprocess","subproc","framed-rectangle","subroutine"],handler:Lg},{semanticName:"Database",name:"Cylinder",shortName:"cyl",description:"Database storage",aliases:["db","database","cylinder"],handler:jf},{semanticName:"Data Store",name:"Data Store",shortName:"datastore",description:"Data flow diagram data store",aliases:["data-store"],handler:Uf},{semanticName:"Folder",name:"Folder",shortName:"folder",description:"Folder or directory",aliases:["directory"],handler:Kf},{semanticName:"Bucket",name:"Bucket",shortName:"bucket",description:"Object storage bucket",handler:Mf},{semanticName:"Console",name:"Console (terminal window)",shortName:"console",description:"Terminal or console window",handler:If},{semanticName:"Browser",name:"Browser",shortName:"browser",description:"Browser window",handler:$f},{semanticName:"Person",name:"Person",shortName:"person",description:"Person (circular head above a rounded body)",handler:Yf},{semanticName:"Start",name:"Circle",shortName:"circle",description:"Starting point",aliases:["circ"],handler:Kn},{semanticName:"Bang",name:"Bang",shortName:"bang",description:"Bang",aliases:["bang"],handler:Hg},{semanticName:"Cloud",name:"Cloud",shortName:"cloud",description:"cloud",aliases:["cloud"],handler:Yg},{semanticName:"Decision",name:"Diamond",shortName:"diam",description:"Decision-making step",aliases:["decision","diamond","question"],handler:mg},{semanticName:"Prepare Conditional",name:"Hexagon",shortName:"hex",description:"Preparation or condition step",aliases:["hexagon","prepare"],handler:tg},{semanticName:"Data Input/Output",name:"Lean Right",shortName:"lean-r",description:"Represents input or output",aliases:["lean-right","in-out"],internalAliases:["lean_right"],handler:cg},{semanticName:"Data Input/Output",name:"Lean Left",shortName:"lean-l",description:"Represents output or input",aliases:["lean-left","out-in"],internalAliases:["lean_left"],handler:hg},{semanticName:"Priority Action",name:"Trapezoid Base Bottom",shortName:"trap-b",description:"Priority action",aliases:["priority","trapezoid-bottom","trapezoid"],handler:$g},{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:ng},{semanticName:"Stop",name:"Double Circle",shortName:"dbl-circ",description:"Represents a stop point",aliases:["double-circle"],internalAliases:["doublecircle"],handler:Xf},{semanticName:"Text Block",name:"Text Block",shortName:"text",description:"Text block",handler:Ag},{semanticName:"Card",name:"Notched Rectangle",shortName:"notch-rect",description:"Represents a card",aliases:["card","notched-rectangle"],handler:Of},{semanticName:"Lined/Shaded Process",name:"Lined Rectangle",shortName:"lin-rect",description:"Lined process shape",aliases:["lined-rectangle","lined-process","lin-proc","shaded-process"],handler:kg},{semanticName:"Start",name:"Small Circle",shortName:"sm-circ",description:"Small starting point",aliases:["start","small-circle"],internalAliases:["stateStart"],handler:vg},{semanticName:"Stop",name:"Framed Circle",shortName:"fr-circ",description:"Stop point",aliases:["stop","framed-circle"],internalAliases:["stateEnd"],handler:Bg},{semanticName:"Fork/Join",name:"Filled Rectangle",shortName:"fork",description:"Fork or join in process flow",aliases:["join"],internalAliases:["forkJoin"],handler:Qf},{semanticName:"Collate",name:"Hourglass",shortName:"hourglass",description:"Represents a collate operation",aliases:["hourglass","collate"],handler:eg},{semanticName:"Comment",name:"Curly Brace",shortName:"brace",description:"Adds a comment",aliases:["comment","brace-l"],handler:Nf},{semanticName:"Comment Right",name:"Curly Brace",shortName:"brace-r",description:"Adds a comment",handler:Wf},{semanticName:"Comment with braces on both sides",name:"Curly Braces",shortName:"braces",description:"Adds a comment",handler:zf},{semanticName:"Com Link",name:"Lightning Bolt",shortName:"bolt",description:"Communication link",aliases:["com-link","lightning-bolt"],handler:ug},{semanticName:"Document",name:"Document",shortName:"doc",description:"Represents a document",aliases:["doc","document"],handler:Pg},{semanticName:"Delay",name:"Half-Rounded Rectangle",shortName:"delay",description:"Represents a delay",aliases:["half-rounded-rectangle"],handler:Jf},{semanticName:"Direct Access Storage",name:"Horizontal Cylinder",shortName:"h-cyl",description:"Direct access storage",aliases:["das","horizontal-cylinder"],handler:Eg},{semanticName:"Disk Storage",name:"Lined Cylinder",shortName:"lin-cyl",description:"Disk storage",aliases:["disk","lined-cylinder"],handler:dg},{semanticName:"Display",name:"Curved Trapezoid",shortName:"curv-trap",description:"Represents a display",aliases:["curved-trapezoid","display"],handler:Hf},{semanticName:"Divided Process",name:"Divided Rectangle",shortName:"div-rect",description:"Divided process shape",aliases:["div-proc","divided-rectangle","divided-process"],handler:Gf},{semanticName:"Extract",name:"Triangle",shortName:"tri",description:"Extraction process",aliases:["extract","triangle"],handler:Dg},{semanticName:"Internal Storage",name:"Window Pane",shortName:"win-pane",description:"Internal storage",aliases:["internal-storage","window-pane"],handler:Rg},{semanticName:"Junction",name:"Filled Circle",shortName:"f-circ",description:"Junction point",aliases:["junction","filled-circle"],handler:Vf},{semanticName:"Loop Limit",name:"Trapezoidal Pentagon",shortName:"notch-pent",description:"Loop limit step",aliases:["loop-limit","notched-pentagon"],handler:Og},{semanticName:"Manual File",name:"Flipped Triangle",shortName:"flip-tri",description:"Manual file operation",aliases:["manual-file","flipped-triangle"],handler:Zf},{semanticName:"Manual Input",name:"Sloped Rectangle",shortName:"sl-rect",description:"Manual input step",aliases:["manual-input","sloped-rectangle"],handler:wg},{semanticName:"Multi-Document",name:"Stacked Document",shortName:"docs",description:"Multiple documents",aliases:["documents","st-doc","stacked-document"],handler:pg},{semanticName:"Multi-Process",name:"Stacked Rectangle",shortName:"st-rect",description:"Multiple processes",aliases:["procs","processes","stacked-rectangle"],handler:gg},{semanticName:"Stored Data",name:"Bow Tie Rectangle",shortName:"bow-rect",description:"Stored data",aliases:["stored-data","bow-tie-rectangle"],handler:Ff},{semanticName:"Summary",name:"Crossed Circle",shortName:"cross-circ",description:"Summary",aliases:["summary","crossed-circle"],handler:qf},{semanticName:"Tagged Document",name:"Tagged Document",shortName:"tag-doc",description:"Tagged document",aliases:["tag-doc","tagged-document"],handler:Mg},{semanticName:"Tagged Process",name:"Tagged Rectangle",shortName:"tag-rect",description:"Tagged process",aliases:["tagged-rectangle","tag-proc","tagged-process"],handler:Fg},{semanticName:"Paper Tape",name:"Flag",shortName:"flag",description:"Paper tape",aliases:["paper-tape"],handler:Ig},{semanticName:"Odd",name:"Odd",shortName:"odd",description:"Odd shape",internalAliases:["rect_left_inv_arrow"],handler:xg},{semanticName:"Lined Document",name:"Lined Document",shortName:"lin-doc",description:"Lined document",aliases:["lined-document"],handler:fg}],rw=g(()=>{const t=[...Object.entries({state:_g,choice:Df,note:yg,composite:Pf,rectWithTitle:Cg,labelRect:lg,block_arrow:Ef,collapsedGroup:Af,iconSquare:og,iconCircle:ig,icon:rg,iconRounded:sg,imageSquare:ag,anchor:vf,kanbanItem:zg,mindmapCircle:Ug,defaultMindmapNode:jg,classBox:Ng,erBox:Qn,requirementBox:Wg}),...ew.flatMap(r=>[r.shortName,..."aliases"in r?r.aliases:[],..."internalAliases"in r?r.internalAliases:[]].map(s=>[s,r.handler]))];return Object.fromEntries(t)},"generateShapeMap"),Gg=rw();function iw(e){return e in Gg}g(iw,"isValidShape");var go=g(({flowchart:e})=>{const t=e?.subGraphTitleMargin?.top??0,r=e?.subGraphTitleMargin?.bottom??0,i=t+r;return{subGraphTitleTopMargin:t,subGraphTitleBottomMargin:r,subGraphTitleTotalMargin:i}},"getSubGraphTitleMargins"),po=new Map;async function Jn(e,t,r){let i,s;t.shape==="rect"&&(t.rx&&t.ry?t.shape="roundedRect":t.shape="squareRect");const o=t.shape?Gg[t.shape]:void 0;if(!o)throw new Error(`No such shape: ${t.shape}. Please check your syntax.`);if(t.link){let a;r.config.securityLevel==="sandbox"?a="_top":t.linkTarget&&(a=t.linkTarget||"_blank"),i=e.insert("svg:a").attr("xlink:href",t.link).attr("target",a??null),s=await o(i,t,r)}else s=await o(e,t,r),i=s;return i.attr("data-look",zt(t.look)),t.tooltip&&s.attr("title",t.tooltip),po.set(t.id,i),t.haveCallback&&i.attr("class",i.attr("class")+" clickable"),i}g(Jn,"insertNode");var eM=g((e,t)=>{po.set(t.id,e)},"setNodeElem"),sw=g(()=>{po.clear()},"clear"),Jh=g(e=>{const t=po.get(e.id);P.trace("Transforming node",e.diff,e,"translate("+(e.x-e.width/2-5)+", "+e.width/2+")");const r=8,i=e.diff||0;return e.clusterNode?t.attr("transform","translate("+(e.x+i-e.width/2)+", "+(e.y-e.height/2-r)+")"):t.attr("transform","translate("+e.x+", "+e.y+")"),i},"positionNode"),ow=g(async(e,t)=>{const r=Bt(),{themeVariables:i,handDrawnSeed:s}=r,{clusterBkg:o,clusterBorder:a}=i,n=a,{labelStyles:l,nodeStyles:c,borderStyles:h,backgroundStyles:u}=nt(t),d=e.insert("g").attr("class","cluster swimlane "+(t.cssClasses||"")).attr("id",t.id).attr("data-id",t.id).attr("data-et","cluster").attr("data-look",t.look),f=$e(r.flowchart.htmlLabels),y=t.direction==="LR",m=d.insert("g").attr("class","cluster-label swimlane-label"),x=await be(m,t.label,{style:t.labelStyle,useHtmlLabels:f,isNode:!0,width:t.width});let C=x.getBBox();if(f){const H=x.children[0],E=Tt(x);C=H.getBoundingClientRect(),E.attr("width",C.width),E.attr("height",C.height)}const k=t.padding??0,S=t.width<=C.width+k?C.width+k:t.width;t.width<=C.width+k?t.diff=(S-t.width)/2-k:t.diff=-k;const T=t.height,_=t.y-T/2,L=t.y+T/2,M=t.x-S/2,v=t.swimlaneContentTop!==void 0?t.swimlaneContentTop:_+T/3,X=y?4:0,z=C.height+2*X;let I,et;if(y){const H=Math.max(z,C.height+2*X),E=M+H,O=Math.max(0,S-H);if(t.look==="handDrawn"){const $=st.svg(d),J=it(t,{roughness:.7,fill:o,stroke:n,fillWeight:3,seed:s}),Z=it(t,{roughness:.7,fill:"none",stroke:n,seed:s}),dt=$.rectangle(M,_,H,T,J);I=d.insert(()=>dt,":first-child");const Ct=$.rectangle(E,_,O,T,Z);et=d.insert(()=>Ct,":first-child"),I.select("path:nth-child(2)").attr("style",h.join(";")),I.select("path").attr("style",u.join(";").replace("fill","stroke"))}else I=d.insert("rect",":first-child"),et=d.insert("rect",":first-child"),I.attr("class","swimlane-title").attr("style",c).attr("x",M).attr("y",_).attr("width",H).attr("height",T).attr("fill",o).attr("stroke",n),et.attr("class","swimlane-body").attr("style",c).attr("x",E).attr("y",_).attr("width",O).attr("height",T).attr("fill","none").attr("stroke",n);const B=M+H/2,R=t.y;m.attr("transform",`translate(${B}, ${R}) rotate(-90) translate(${-C.width/2}, ${-C.height/2})`)}else{const H=Math.max(0,v-_),E=Math.min(z,H),O=_+E,B=Math.max(0,L-O),R=t.x-S/2;if(t.look==="handDrawn"){const Z=st.svg(d),dt=it(t,{roughness:.7,fill:o,stroke:n,fillWeight:3,seed:s}),Ct=it(t,{roughness:.7,fill:"none",stroke:n,seed:s}),xt=Z.rectangle(R,_,S,E,dt);I=d.insert(()=>xt,":first-child");const St=Z.rectangle(R,O,S,B,Ct);et=d.insert(()=>St,":first-child"),I.select("path:nth-child(2)").attr("style",h.join(";")),I.select("path").attr("style",u.join(";").replace("fill","stroke"))}else I=d.insert("rect",":first-child"),et=d.insert("rect",":first-child"),I.attr("class","swimlane-title").attr("style",c).attr("x",R).attr("y",_).attr("width",S).attr("height",E).attr("fill",o).attr("stroke",n),et.attr("class","swimlane-body").attr("style",c).attr("x",R).attr("y",O).attr("width",S).attr("height",B).attr("fill","none").attr("stroke",n);const $=t.x-C.width/2,J=_+(E-C.height)/2;m.attr("transform",`translate(${$}, ${J})`)}if(P.trace("Swimlane data ",t,JSON.stringify(t)),l){const H=m.select("span");H&&H.attr("style",l)}return t.offsetX=0,t.width=S,t.height=T,t.offsetY=C.height-k/2,t.intersect=function(H){return Sr(t,H)},{cluster:d,labelBBox:C}},"swimlane"),Xg=g(async(e,t)=>{P.info("Creating subgraph rect for ",t.id,t);const r=Bt(),{themeVariables:i,handDrawnSeed:s}=r,{clusterBkg:o,clusterBorder:a}=i,{labelStyles:n,nodeStyles:l,borderStyles:c,backgroundStyles:h}=nt(t),u=e.insert("g").attr("class","cluster "+t.cssClasses).attr("id",t.domId).attr("data-look",t.look),d=Kt(r),f=u.insert("g").attr("class","cluster-label ");let y;t.labelType==="markdown"?y=await be(f,t.label,{style:t.labelStyle,useHtmlLabels:d,isNode:!0,width:t.width}):y=await Qe(f,t.label,t.labelStyle||"",!1,!0);let m=y.getBBox();if(Kt(r)){const M=y.children[0],v=Tt(y);m=M.getBoundingClientRect(),v.attr("width",m.width),v.attr("height",m.height)}const x=t.width<=m.width+t.padding?m.width+t.padding:t.width;t.width<=m.width+t.padding?t.diff=(x-t.width)/2-t.padding:t.diff=-t.padding;const C=t.height,k=t.x-x/2,S=t.y-C/2;P.trace("Data ",t,JSON.stringify(t));let T;if(t.look==="handDrawn"){const M=st.svg(u),v=it(t,{roughness:.7,fill:o,stroke:a,fillWeight:3,seed:s}),X=M.path(ce(k,S,x,C,0),v);T=u.insert(()=>(P.debug("Rough node insert CXC",X),X),":first-child"),T.select("path:nth-child(2)").attr("style",c.join(";")),T.select("path").attr("style",h.join(";").replace("fill","stroke"))}else T=u.insert("rect",":first-child"),T.attr("style",l).attr("rx",t.rx).attr("ry",t.ry).attr("x",k).attr("y",S).attr("width",x).attr("height",C);const{subGraphTitleTopMargin:_}=go(r);if(f.attr("transform",`translate(${t.x-m.width/2}, ${t.y-t.height/2+_})`),n){const M=f.select("span");M&&M.attr("style",n)}const L=T.node().getBBox();return t.offsetX=0,t.width=L.width,t.height=L.height,t.offsetY=m.height-t.padding/2,t.intersect=function(M){return Sr(t,M)},{cluster:u,labelBBox:m}},"rect"),aw=g((e,t)=>{const r=e.insert("g").attr("class","note-cluster").attr("id",t.domId),i=r.insert("rect",":first-child"),s=0*t.padding,o=s/2;i.attr("rx",t.rx).attr("ry",t.ry).attr("x",t.x-t.width/2-o).attr("y",t.y-t.height/2-o).attr("width",t.width+s).attr("height",t.height+s).attr("fill","none");const a=i.node().getBBox();return t.width=a.width,t.height=a.height,t.intersect=function(n){return Sr(t,n)},{cluster:r,labelBBox:{width:0,height:0}}},"noteGroup"),nw=g(async(e,t)=>{const r=Bt(),{themeVariables:i,handDrawnSeed:s}=r,{altBackground:o,compositeBackground:a,compositeTitleBackground:n,nodeBorder:l}=i,c=e.insert("g").attr("class",t.cssClasses).attr("id",t.domId).attr("data-id",t.id).attr("data-look",t.look),h=c.insert("g",":first-child"),u=c.insert("g").attr("class","cluster-label");let d=c.append("rect");const f=await Qe(u,t.label,t.labelStyle,void 0,!0);let y=f.getBBox();if(Kt(r)){const X=f.children[0],z=Tt(f);y=X.getBoundingClientRect(),z.attr("width",y.width),z.attr("height",y.height)}const m=0*t.padding,x=m/2,C=(t.width<=y.width+t.padding?y.width+t.padding:t.width)+m;t.width<=y.width+t.padding?t.diff=(C-t.width)/2-t.padding:t.diff=-t.padding;const k=t.height+m,S=t.height+m-y.height-6,T=t.x-C/2,_=t.y-k/2;t.width=C;const L=t.y-t.height/2-x+y.height+2;let M;if(t.look==="handDrawn"){const X=t.cssClasses.includes("statediagram-cluster-alt"),z=st.svg(c),I=t.rx||t.ry?z.path(ce(T,_,C,k,10),{roughness:.7,fill:n,fillStyle:"solid",stroke:l,seed:s}):z.rectangle(T,_,C,k,{seed:s});M=c.insert(()=>I,":first-child");const et=z.rectangle(T,L,C,S,{fill:X?o:a,fillStyle:X?"hachure":"solid",stroke:l,seed:s});M=c.insert(()=>I,":first-child"),d=c.insert(()=>et)}else M=h.insert("rect",":first-child"),M.attr("class","outer").attr("x",T).attr("y",_).attr("width",C).attr("height",k).attr("data-look",t.look),d.attr("class","inner").attr("x",T).attr("y",L).attr("width",C).attr("height",S);u.attr("transform",`translate(${t.x-y.width/2}, ${_+1-(Kt(r)?0:3)})`);const v=M.node().getBBox();return t.height=v.height,t.offsetX=0,t.offsetY=y.height-t.padding/2,t.labelBBox=y,t.intersect=function(X){return Sr(t,X)},{cluster:c,labelBBox:y}},"roundedWithTitle"),lw=g(async(e,t)=>{P.info("Creating subgraph rect for ",t.id,t);const r=Bt(),{themeVariables:i,handDrawnSeed:s}=r,{clusterBkg:o,clusterBorder:a}=i,{labelStyles:n,nodeStyles:l,borderStyles:c,backgroundStyles:h}=nt(t),u=e.insert("g").attr("class","cluster "+t.cssClasses).attr("id",t.domId).attr("data-look",t.look),d=Kt(r),f=u.insert("g").attr("class","cluster-label "),y=await be(f,t.label,{style:t.labelStyle,useHtmlLabels:d,isNode:!0,width:t.width});let m=y.getBBox();if(Kt(r)){const M=y.children[0],v=Tt(y);m=M.getBoundingClientRect(),v.attr("width",m.width),v.attr("height",m.height)}const x=t.width<=m.width+t.padding?m.width+t.padding:t.width;t.width<=m.width+t.padding?t.diff=(x-t.width)/2-t.padding:t.diff=-t.padding;const C=t.height,k=t.x-x/2,S=t.y-C/2;P.trace("Data ",t,JSON.stringify(t));let T;if(t.look==="handDrawn"){const M=st.svg(u),v=it(t,{roughness:.7,fill:o,stroke:a,fillWeight:4,seed:s}),X=M.path(ce(k,S,x,C,t.rx),v);T=u.insert(()=>(P.debug("Rough node insert CXC",X),X),":first-child"),T.select("path:nth-child(2)").attr("style",c.join(";")),T.select("path").attr("style",h.join(";").replace("fill","stroke"))}else T=u.insert("rect",":first-child"),T.attr("style",l).attr("rx",t.rx).attr("ry",t.ry).attr("x",k).attr("y",S).attr("width",x).attr("height",C);const{subGraphTitleTopMargin:_}=go(r);if(f.attr("transform",`translate(${t.x-m.width/2}, ${t.y-t.height/2+_})`),n){const M=f.select("span");M&&M.attr("style",n)}const L=T.node().getBBox();return t.offsetX=0,t.width=L.width,t.height=L.height,t.offsetY=m.height-t.padding/2,t.intersect=function(M){return Sr(t,M)},{cluster:u,labelBBox:m}},"kanbanSection"),hw=g((e,t)=>{const r=Bt(),{themeVariables:i,handDrawnSeed:s}=r,{nodeBorder:o}=i,a=e.insert("g").attr("class",t.cssClasses).attr("id",t.domId).attr("data-look",t.look),n=a.insert("g",":first-child"),l=0*t.padding,c=t.width+l;t.diff=-t.padding;const h=t.height+l,u=t.x-c/2,d=t.y-h/2;t.width=c;let f;if(t.look==="handDrawn"){const x=st.svg(a).rectangle(u,d,c,h,{fill:"lightgrey",roughness:.5,strokeLineDash:[5],stroke:o,seed:s});f=a.insert(()=>x,":first-child")}else{f=n.insert("rect",":first-child");let m="outer";t.look,m="divider",f.attr("class",m).attr("x",u).attr("y",d).attr("width",c).attr("height",h).attr("data-look",t.look)}const y=f.node().getBBox();return t.height=y.height,t.offsetX=0,t.offsetY=0,t.intersect=function(m){return Sr(t,m)},{cluster:a,labelBBox:{}}},"divider"),cw=Xg,uw={rect:Xg,squareRect:cw,roundedWithTitle:nw,noteGroup:aw,divider:hw,kanbanSection:lw,swimlane:ow},Vg=new Map,Zg=g(async(e,t)=>{const r=t.shape||"rect",i=await uw[r](e,t);return Vg.set(t.id,i),i},"insertCluster"),dw=g(()=>{Vg=new Map},"clear"),pi=g((e,t)=>{if(t)return"translate("+-e.width/2+", "+-e.height/2+")";const r=e.x??0,i=e.y??0;return"translate("+-(r+e.width/2)+", "+-(i+e.height/2)+")"},"computeLabelTransform"),Vt={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},tc={arrow_point:4,arrow_cross:12.5,arrow_circle:12.5};function Ti(e,t){if(e===void 0||t===void 0)return{angle:0,deltaX:0,deltaY:0};e=It(e),t=It(t);const[r,i]=[e.x,e.y],[s,o]=[t.x,t.y],a=s-r,n=o-i;return{angle:Math.atan(n/a),deltaX:a,deltaY:n}}g(Ti,"calculateDeltaAndAngle");var It=g(e=>Array.isArray(e)?{x:e[0],y:e[1]}:e,"pointTransformer"),fw=g(e=>({x:g(function(t,r,i){let s=0;const o=It(i[0]).x<It(i[i.length-1]).x?"left":"right";if(r===0&&Object.hasOwn(Vt,e.arrowTypeStart)){const{angle:f,deltaX:y}=Ti(i[0],i[1]);s=Vt[e.arrowTypeStart]*Math.cos(f)*(y>=0?1:-1)}else if(r===i.length-1&&Object.hasOwn(Vt,e.arrowTypeEnd)){const{angle:f,deltaX:y}=Ti(i[i.length-1],i[i.length-2]);s=Vt[e.arrowTypeEnd]*Math.cos(f)*(y>=0?1:-1)}const a=Math.abs(It(t).x-It(i[i.length-1]).x),n=Math.abs(It(t).y-It(i[i.length-1]).y),l=Math.abs(It(t).x-It(i[0]).x),c=Math.abs(It(t).y-It(i[0]).y),h=Vt[e.arrowTypeStart],u=Vt[e.arrowTypeEnd],d=1;if(a<u&&a>0&&n<u){let f=u+d-a;f*=o==="right"?-1:1,s-=f}if(l<h&&l>0&&c<h){let f=h+d-l;f*=o==="right"?-1:1,s+=f}return It(t).x+s},"x"),y:g(function(t,r,i){let s=0;const o=It(i[0]).y<It(i[i.length-1]).y?"down":"up";if(r===0&&Object.hasOwn(Vt,e.arrowTypeStart)){const{angle:f,deltaY:y}=Ti(i[0],i[1]);s=Vt[e.arrowTypeStart]*Math.abs(Math.sin(f))*(y>=0?1:-1)}else if(r===i.length-1&&Object.hasOwn(Vt,e.arrowTypeEnd)){const{angle:f,deltaY:y}=Ti(i[i.length-1],i[i.length-2]);s=Vt[e.arrowTypeEnd]*Math.abs(Math.sin(f))*(y>=0?1:-1)}const a=Math.abs(It(t).y-It(i[i.length-1]).y),n=Math.abs(It(t).x-It(i[i.length-1]).x),l=Math.abs(It(t).y-It(i[0]).y),c=Math.abs(It(t).x-It(i[0]).x),h=Vt[e.arrowTypeStart],u=Vt[e.arrowTypeEnd],d=1;if(a<u&&a>0&&n<u){let f=u+d-a;f*=o==="up"?-1:1,s-=f}if(l<h&&l>0&&c<h){let f=h+d-l;f*=o==="up"?-1:1,s+=f}return It(t).y+s},"y")}),"getLineFunctionsWithOffset"),gw=g((e,t,r,i,s,o=!1,a)=>{t.arrowTypeStart&&ec(e,"start",t.arrowTypeStart,r,i,s,o,a),t.arrowTypeEnd&&ec(e,"end",t.arrowTypeEnd,r,i,s,o,a)},"addEdgeMarkers"),pw={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},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}},yw=["cross","point","circle","lollipop","aggregation","extension","composition","dependency","barb"],ec=g((e,t,r,i,s,o,a=!1,n)=>{if(!r||r==="none")return;const l=pw[r],c=l&&yw.includes(l.type);if(!l){P.warn(`Unknown arrow type: ${r}`);return}const h=l.type,f=`${s}_${o}-${h}${t==="start"?"Start":"End"}${a&&c?"-margin":""}`;if(n&&n.trim()!==""){const y=n.replace(/[^\dA-Za-z]/g,"_"),m=`${f}_${y}`;if(!document.getElementById(m)){const x=document.getElementById(f);if(x){const C=x.cloneNode(!0);C.id=m,C.querySelectorAll("path, circle, line").forEach(S=>{S.setAttribute("stroke",n),l.fill&&S.setAttribute("fill",n)}),x.parentNode?.appendChild(C)}}e.attr(`marker-${t}`,`url(${i}#${m})`)}else e.attr(`marker-${t}`,`url(${i}#${f})`)},"addEdgeMarker"),mw=g(e=>typeof e=="string"?e:Bt()?.flowchart?.curve,"resolveEdgeCurveType"),Gr=new Map,Nt=new Map,xw=g(()=>{Gr.clear(),Nt.clear()},"clear"),Kg=g(e=>!!(e.label||e.startLabelLeft||e.startLabelRight||e.endLabelLeft||e.endLabelRight),"hasEdgeLabel"),yi=g(e=>e?typeof e=="string"?e:e.reduce((t,r)=>t+";"+r,""):"","getLabelStyles"),tl=g(async(e,t)=>{const r=Bt();let i=Kt(r);const{labelStyles:s}=nt(t);t.labelStyle=s;const o=e.insert("g").attr("class","edgeLabel"),a=o.insert("g").attr("class","label").attr("data-id",t.id),n=t.labelType==="markdown",c=await be(e,t.label,{style:yi(t.labelStyle),useHtmlLabels:i,addSvgBackground:!0,isNode:!1,markdown:n,width:n?void 0:void 0},r);a.node().appendChild(c),P.info("abc82",t,t.labelType);let h,u;if(i){const f=c.children[0],y=Tt(c);h=await xr.measure(()=>f.getBoundingClientRect()),u=h,y.attr("width",h.width),y.attr("height",h.height)}else{const f=Tt(c).select("text").node();await xr.measure(()=>{h=c.getBBox(),f&&typeof f.getBBox=="function"?u=f.getBBox():u=h})}a.attr("transform",pi(u,i)),Gr.set(t.id,o),t.width=h.width,t.height=h.height;let d;if(t.startLabelLeft){const f=e.insert("g").attr("class","edgeTerminals"),y=f.insert("g").attr("class","inner"),m=await Qe(y,t.startLabelLeft,yi(t.labelStyle)||"",!1,!1);d=m;let x=m.getBBox();if(i){const C=m.children[0],k=Tt(m);x=C.getBoundingClientRect(),k.attr("width",x.width),k.attr("height",x.height)}y.attr("transform",pi(x,i)),Nt.get(t.id)||Nt.set(t.id,{}),Nt.get(t.id).startLeft=f,_i(d,t.startLabelLeft)}if(t.startLabelRight){const f=e.insert("g").attr("class","edgeTerminals"),y=f.insert("g").attr("class","inner"),m=await Qe(y,t.startLabelRight,yi(t.labelStyle)||"",!1,!1);d=m;let x=m.getBBox();if(i){const C=m.children[0],k=Tt(m);x=C.getBoundingClientRect(),k.attr("width",x.width),k.attr("height",x.height)}y.attr("transform",pi(x,i)),Nt.get(t.id)||Nt.set(t.id,{}),Nt.get(t.id).startRight=f,_i(d,t.startLabelRight)}if(t.endLabelLeft){const f=e.insert("g").attr("class","edgeTerminals"),y=f.insert("g").attr("class","inner"),m=await Qe(f,t.endLabelLeft,yi(t.labelStyle)||"",!1,!1);d=m;let x=m.getBBox();if(i){const C=m.children[0],k=Tt(m);x=C.getBoundingClientRect(),k.attr("width",x.width),k.attr("height",x.height)}y.attr("transform",pi(x,i)),Nt.get(t.id)||Nt.set(t.id,{}),Nt.get(t.id).endLeft=f,_i(d,t.endLabelLeft)}if(t.endLabelRight){const f=e.insert("g").attr("class","edgeTerminals"),y=f.insert("g").attr("class","inner"),m=await Qe(f,t.endLabelRight,yi(t.labelStyle)||"",!1,!1);d=m;let x=m.getBBox();if(i){const C=m.children[0],k=Tt(m);x=C.getBoundingClientRect(),k.attr("width",x.width),k.attr("height",x.height)}y.attr("transform",pi(x,i)),Nt.get(t.id)||Nt.set(t.id,{}),Nt.get(t.id).endRight=f,_i(d,t.endLabelRight)}return c},"insertEdgeLabel");function _i(e,t){Kt(Bt())&&e&&(e.style.width=t.length*9+"px",e.style.height="12px")}g(_i,"setTerminalWidth");var Cw=g((e,t)=>{P.debug("Moving label abc88 ",e.id,e.label,Gr.get(e.id),t);let r=t.updatedPath?t.updatedPath:t.originalPath;const i=Bt(),{subGraphTitleTotalMargin:s}=go(i);if(e.label){const o=Gr.get(e.id);let a=e.x,n=e.y;if(r){const l=Zt.calcLabelPosition(r);P.debug("Moving label "+e.label+" from (",a,",",n,") to (",l.x,",",l.y,") abc88"),t.updatedPath&&(a=l.x,n=l.y)}o.attr("transform",`translate(${a}, ${n+s/2})`)}if(e.startLabelLeft){const o=Nt.get(e.id).startLeft;let a=e.x,n=e.y;if(r){const l=Zt.calcTerminalLabelPosition(e.arrowTypeStart?10:0,"start_left",r);a=l.x,n=l.y}o.attr("transform",`translate(${a}, ${n})`)}if(e.startLabelRight){const o=Nt.get(e.id).startRight;let a=e.x,n=e.y;if(r){const l=Zt.calcTerminalLabelPosition(e.arrowTypeStart?10:0,"start_right",r);a=l.x,n=l.y}o.attr("transform",`translate(${a}, ${n})`)}if(e.endLabelLeft){const o=Nt.get(e.id).endLeft;let a=e.x,n=e.y;if(r){const l=Zt.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,"end_left",r);a=l.x,n=l.y}o.attr("transform",`translate(${a}, ${n})`)}if(e.endLabelRight){const o=Nt.get(e.id).endRight;let a=e.x,n=e.y;if(r){const l=Zt.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,"end_right",r);a=l.x,n=l.y}o.attr("transform",`translate(${a}, ${n})`)}},"positionEdgeLabel"),bw=g((e,t)=>{if(!e?.isLabelEdge||!e?.id?.endsWith("-to-label")||!Array.isArray(t)||t.length!==2)return t;const[r,i]=t,s=Math.abs(i.x-r.x),o=Math.abs(i.y-r.y);return s<.001||o<.001?t:o>=s?[r,{x:r.x,y:i.y},i]:[r,{x:i.x,y:r.y},i]},"orthogonalizeToLabelClippedPoints"),kw=g((e,t)=>{const r=e.x,i=e.y,s=Math.abs(t.x-r),o=Math.abs(t.y-i),a=e.width/2,n=e.height/2;return s>=a||o>=n},"outsideNode"),ww=g((e,t,r)=>{P.debug(`intersection calc abc89:
259
+ outsidePoint: ${JSON.stringify(t)}
260
+ insidePoint : ${JSON.stringify(r)}
261
+ node : x:${e.x} y:${e.y} w:${e.width} h:${e.height}`);const i=e.x,s=e.y,o=Math.abs(i-r.x),a=e.width/2;let n=r.x<t.x?a-o:a+o;const l=e.height/2,c=Math.abs(t.y-r.y),h=Math.abs(t.x-r.x);if(Math.abs(s-t.y)*a>Math.abs(i-t.x)*l){let u=r.y<t.y?t.y-l-s:s-l-t.y;n=h*u/c;const d={x:r.x<t.x?r.x+n:r.x-h+n,y:r.y<t.y?r.y+c-u:r.y-c+u};return n===0&&(d.x=t.x,d.y=t.y),h===0&&(d.x=t.x),c===0&&(d.y=t.y),P.debug(`abc89 top/bottom calc, Q ${c}, q ${u}, R ${h}, r ${n}`,d),d}else{r.x<t.x?n=t.x-a-i:n=i-a-t.x;let u=c*n/h,d=r.x<t.x?r.x+h-n:r.x-h+n,f=r.y<t.y?r.y+u:r.y-u;return P.debug(`sides calc abc89, Q ${c}, q ${u}, R ${h}, r ${n}`,{_x:d,_y:f}),n===0&&(d=t.x,f=t.y),h===0&&(d=t.x),c===0&&(f=t.y),{x:d,y:f}}},"intersection"),rc=g((e,t)=>{P.warn("abc88 cutPathAtIntersect",e,t);let r=[],i=e[0],s=!1;return e.forEach(o=>{if(P.info("abc88 checking point",o,t),!kw(t,o)&&!s){const a=ww(t,i,o);P.debug("abc88 inside",o,i,a),P.debug("abc88 intersection",a,t);let n=!1;r.forEach(l=>{n=n||l.x===a.x&&l.y===a.y}),r.some(l=>l.x===a.x&&l.y===a.y)?P.warn("abc88 no intersect",a,r):r.push(a),s=!0}else P.warn("abc88 outside",o,i),i=o,s||r.push(o)}),P.debug("returning points",r),r},"cutPathAtIntersect");function Qg(e){const t=[],r=[];for(let i=1;i<e.length-1;i++){const s=e[i-1],o=e[i],a=e[i+1];(s.x===o.x&&o.y===a.y&&Math.abs(o.x-a.x)>5&&Math.abs(o.y-s.y)>5||s.y===o.y&&o.x===a.x&&Math.abs(o.x-s.x)>5&&Math.abs(o.y-a.y)>5)&&(t.push(o),r.push(i))}return{cornerPoints:t,cornerPointPositions:r}}g(Qg,"extractCornerPoints");var ic=g(function(e,t,r){const i=t.x-e.x,s=t.y-e.y,o=Math.sqrt(i*i+s*s),a=r/o;return{x:t.x-a*i,y:t.y-a*s}},"findAdjacentPoint"),Sw=g(function(e){const{cornerPointPositions:t}=Qg(e),r=[];for(let i=0;i<e.length;i++)if(t.includes(i)){const s=e[i-1],o=e[i+1],a=e[i],n=ic(s,a,5),l=ic(o,a,5),c=l.x-n.x,h=l.y-n.y;r.push(n);const u=Math.sqrt(2)*2;let d={x:a.x,y:a.y};if(Math.abs(o.x-s.x)>10&&Math.abs(o.y-s.y)>=10){P.debug("Corner point fixing",Math.abs(o.x-s.x),Math.abs(o.y-s.y));const f=5;a.x===n.x?d={x:c<0?n.x-f+u:n.x+f-u,y:h<0?n.y-u:n.y+u}:d={x:c<0?n.x-u:n.x+u,y:h<0?n.y-f+u:n.y+f-u}}else P.debug("Corner point skipping fixing",Math.abs(o.x-s.x),Math.abs(o.y-s.y));r.push(d,l)}else r.push(e[i]);return r},"fixCorners"),Tw=g((e,t,r)=>{const i=e-t-r,s=2,o=2,a=s+o,n=Math.floor(i/a),l=Number.isFinite(n)?Math.max(0,n):0,c=Array(l).fill(`${s} ${o}`).join(" ");return`0 ${t} ${c} ${r}`},"generateDashArray"),Jg=g(function(e,t,r,i,s,o,a,n=!1){if(!a)throw new Error(`insertEdge: missing diagramId for edge "${t.id}" — edge IDs require a diagram prefix for uniqueness`);const{handDrawnSeed:l,layout:c}=Bt();let h=t.points,u=!1;const d=s;var f=o;const y=[];for(const $ in t.cssCompiledStyles)_d($)||y.push(t.cssCompiledStyles[$]);if(c==="swimlane"){if(f.intersect&&d.intersect&&Array.isArray(h)&&h.length>=2)if(h.length===2)h=[d.intersect(h[0]),f.intersect(h[1])];else{const $=h.slice(1,-1),J=$[0],Z=$[$.length-1],dt=.5,Ct=Math.abs(h[h.length-1].x-Z.x)<dt&&Math.abs(h[h.length-1].y-Z.y)<dt,xt=d.intersect(J),St=Ct?Z:f.intersect(Z),wt=Math.abs(St.x-Z.x)<dt&&Math.abs(St.y-Z.y)<dt,pt=Math.abs(xt.x-J.x)<dt&&Math.abs(xt.y-J.y)<dt?[]:[xt],vt=wt?[]:[St];h=[...pt,...$,...vt]}h=bw(t,h)}else f.intersect&&d.intersect&&!n&&(h=h.slice(1,t.points.length-1),h.unshift(d.intersect(h[0])),h.push(f.intersect(h[h.length-1])));const m=btoa(JSON.stringify(h));t.toCluster&&(P.info("to cluster abc88",r.get(t.toCluster)),h=rc(t.points,r.get(t.toCluster).node),u=!0),t.fromCluster&&(P.debug("from cluster abc88",r.get(t.fromCluster),JSON.stringify(h,null,2)),h=rc(h.reverse(),r.get(t.fromCluster).node).reverse(),u=!0);let x=h.filter($=>!Number.isNaN($.y));const C=mw(t.curve);C!=="rounded"&&(x=Sw(x));let k=Ai;switch(C){case"linear":k=Ai;break;case"basis":k=Ea;break;case"cardinal":k=cd;break;case"bumpX":k=od;break;case"bumpY":k=ad;break;case"catmullRom":k=dd;break;case"monotoneX":k=xd;break;case"monotoneY":k=Cd;break;case"natural":k=kd;break;case"step":k=wd;break;case"stepAfter":k=Td;break;case"stepBefore":k=Sd;break;case"rounded":k=Ai;break;default:k=Ea}const{x:S,y:T}=fw(t),_=qb().x(S).y(T).curve(k);let L;switch(t.thickness){case"normal":L="edge-thickness-normal";break;case"thick":L="edge-thickness-thick";break;case"invisible":L="edge-thickness-invisible";break;default:L="edge-thickness-normal"}switch(t.pattern){case"solid":L+=" edge-pattern-solid";break;case"dotted":L+=" edge-pattern-dotted";break;case"dashed":L+=" edge-pattern-dashed";break;default:L+=" edge-pattern-solid"}let M,v=C==="rounded"?tp(ep(x,t),5):_(x);const X=Array.isArray(t.style)?t.style:[t.style];let z=X.find($=>$?.startsWith("stroke:")),I="";t.animate&&(I="edge-animation-fast"),t.animation&&(I="edge-animation-"+t.animation);let et=!1;if(t.look==="handDrawn"){const $=st.svg(e);Object.assign([],x);const J=$.path(v,{roughness:.3,seed:l});L+=" transition",M=Tt(J).select("path").attr("id",`${a}-${t.id}`).attr("class"," "+L+(t.classes?" "+t.classes:"")+(I?" "+I:"")).attr("style",X?X.reduce((dt,Ct)=>dt+";"+Ct,""):"");let Z=M.attr("d");M.attr("d",Z),e.node().appendChild(M.node())}else{const $=y.join(";"),J=X?X.reduce((wt,ht)=>wt+ht+";",""):"",Z=($?$+";"+J+";":J)+";"+(X?X.reduce((wt,ht)=>wt+";"+ht,""):"");M=e.append("path").attr("d",v).attr("id",`${a}-${t.id}`).attr("class"," "+L+(t.classes?" "+t.classes:"")+(I?" "+I:"")).attr("style",Z),z=Z.match(/stroke:([^;]+)/)?.[1],et=t.animate===!0||!!t.animation||$.includes("animation");const dt=M.node(),Ct=typeof dt.getTotalLength=="function"?dt.getTotalLength():0,xt=tc[t.arrowTypeStart]||0,St=tc[t.arrowTypeEnd]||0;if(t.look==="neo"&&!et){const ht=`stroke-dasharray: ${t.pattern==="dotted"||t.pattern==="dashed"?Tw(Ct,xt,St):`0 ${xt} ${Ct-xt-St} ${St}`}; stroke-dashoffset: 0;`;M.attr("style",ht+M.attr("style"))}}M.attr("data-edge",!0),M.attr("data-et","edge"),M.attr("data-id",t.id),M.attr("data-points",m),M.attr("data-look",zt(t.look)),t.showPoints&&x.forEach($=>{e.append("circle").style("stroke","red").style("fill","red").attr("r",1).attr("cx",$.x).attr("cy",$.y)});let H="";(Bt().flowchart.arrowMarkerAbsolute||Bt().state.arrowMarkerAbsolute)&&(H=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,H=H.replace(/\(/g,"\\(").replace(/\)/g,"\\)")),P.info("arrowTypeStart",t.arrowTypeStart),P.info("arrowTypeEnd",t.arrowTypeEnd);const E=!et&&t?.look==="neo";gw(M,t,H,a,i,E,z);const O=Math.floor(h.length/2),B=h[O];Zt.isLabelCoordinateInPath(B,M.attr("d"))||(u=!0);let R={};return u&&(R.updatedPath=h),R.originalPath=t.points,R},"insertEdge");function tp(e,t){if(e.length<2)return"";let r="";const i=e.length,s=1e-5;for(let o=0;o<i;o++){const a=e[o],n=e[o-1],l=e[o+1];if(o===0)r+=`M${a.x},${a.y}`;else if(o===i-1)r+=`L${a.x},${a.y}`;else{const c=a.x-n.x,h=a.y-n.y,u=l.x-a.x,d=l.y-a.y,f=Math.hypot(c,h),y=Math.hypot(u,d);if(f<s||y<s){r+=`L${a.x},${a.y}`;continue}const m=c/f,x=h/f,C=u/y,k=d/y,S=m*C+x*k,T=Math.max(-1,Math.min(1,S)),_=Math.acos(T);if(_<s||Math.abs(Math.PI-_)<s){r+=`L${a.x},${a.y}`;continue}const L=Math.min(t/Math.sin(_/2),f/2,y/2),M=a.x-m*L,v=a.y-x*L,X=a.x+C*L,z=a.y+k*L;r+=`L${M},${v}`,r+=`Q${a.x},${a.y} ${X},${z}`}}return r}g(tp,"generateRoundedPath");function Xa(e,t){if(!e||!t)return{angle:0,deltaX:0,deltaY:0};const r=t.x-e.x,i=t.y-e.y;return{angle:Math.atan2(i,r),deltaX:r,deltaY:i}}g(Xa,"calculateDeltaAndAngle");function ep(e,t){const r=e.map(s=>({...s}));if(e.length>=2&&Vt[t.arrowTypeStart]){const s=Vt[t.arrowTypeStart],o=e[0],a=e[1],{angle:n}=Xa(o,a),l=s*Math.cos(n),c=s*Math.sin(n);r[0].x=o.x+l,r[0].y=o.y+c}const i=e.length;if(i>=2&&Vt[t.arrowTypeEnd]){const s=Vt[t.arrowTypeEnd],o=e[i-1],a=e[i-2],{angle:n}=Xa(a,o),l=s*Math.cos(n),c=s*Math.sin(n);r[i-1].x=o.x-l,r[i-1].y=o.y-c}return r}g(ep,"applyMarkerOffsetsToPoints");var _w=g((e,t,r,i)=>{t.forEach(s=>{Xw[s](e,r,i)})},"insertMarkers"),Bw=g((e,t,r)=>{P.trace("Making markers for ",r),e.append("defs").append("marker").attr("id",r+"_"+t+"-extensionStart").attr("class","marker extension "+t).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"),e.append("defs").append("marker").attr("id",r+"_"+t+"-extensionEnd").attr("class","marker extension "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z"),e.append("marker").attr("id",r+"_"+t+"-extensionStart-margin").attr("class","marker extension "+t).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"),e.append("defs").append("marker").attr("id",r+"_"+t+"-extensionEnd-margin").attr("class","marker extension "+t).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"),vw=g((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-compositionStart").attr("class","marker composition "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-compositionEnd").attr("class","marker composition "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-compositionStart-margin").attr("class","marker composition "+t).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"),e.append("defs").append("marker").attr("id",r+"_"+t+"-compositionEnd-margin").attr("class","marker composition "+t).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"),Lw=g((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-aggregationStart").attr("class","marker aggregation "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-aggregationEnd").attr("class","marker aggregation "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-aggregationStart-margin").attr("class","marker aggregation "+t).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"),e.append("defs").append("marker").attr("id",r+"_"+t+"-aggregationEnd-margin").attr("class","marker aggregation "+t).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"),Fw=g((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-dependencyStart").attr("class","marker dependency "+t).attr("refX",6).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-dependencyEnd").attr("class","marker dependency "+t).attr("refX",13).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-dependencyStart-margin").attr("class","marker dependency "+t).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"),e.append("defs").append("marker").attr("id",r+"_"+t+"-dependencyEnd-margin").attr("class","marker dependency "+t).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"),Mw=g((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-lollipopStart").attr("class","marker lollipop "+t).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),e.append("defs").append("marker").attr("id",r+"_"+t+"-lollipopEnd").attr("class","marker lollipop "+t).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),e.append("defs").append("marker").attr("id",r+"_"+t+"-lollipopStart-margin").attr("class","marker lollipop "+t).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),e.append("defs").append("marker").attr("id",r+"_"+t+"-lollipopEnd-margin").attr("class","marker lollipop "+t).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"),Aw=g((e,t,r)=>{e.append("marker").attr("id",r+"_"+t+"-pointEnd").attr("class","marker "+t).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"),e.append("marker").attr("id",r+"_"+t+"-pointStart").attr("class","marker "+t).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"),e.append("marker").attr("id",r+"_"+t+"-pointEnd-margin").attr("class","marker "+t).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"),e.append("marker").attr("id",r+"_"+t+"-pointStart-margin").attr("class","marker "+t).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"),Ew=g((e,t,r)=>{e.append("marker").attr("id",r+"_"+t+"-circleEnd").attr("class","marker "+t).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"),e.append("marker").attr("id",r+"_"+t+"-circleStart").attr("class","marker "+t).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"),e.append("marker").attr("id",r+"_"+t+"-circleEnd-margin").attr("class","marker "+t).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"),e.append("marker").attr("id",r+"_"+t+"-circleStart-margin").attr("class","marker "+t).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"),$w=g((e,t,r)=>{e.append("marker").attr("id",r+"_"+t+"-crossEnd").attr("class","marker cross "+t).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"),e.append("marker").attr("id",r+"_"+t+"-crossStart").attr("class","marker cross "+t).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"),e.append("marker").attr("id",r+"_"+t+"-crossEnd-margin").attr("class","marker cross "+t).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),e.append("marker").attr("id",r+"_"+t+"-crossStart-margin").attr("class","marker cross "+t).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"),Ow=g((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-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"),Dw=g((e,t,r)=>{const i=Rt(),{themeVariables:s}=i,{transitionColor:o}=s;e.append("defs").append("marker").attr("id",r+"_"+t+"-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"),e.append("defs").append("marker").attr("id",r+"_"+t+"-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",`${o}`)},"barbNeo"),Pw=g((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-onlyOneStart").attr("class","marker onlyOne "+t).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"),e.append("defs").append("marker").attr("id",r+"_"+t+"-onlyOneEnd").attr("class","marker onlyOne "+t).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"),Iw=g((e,t,r)=>{const i=e.append("defs").append("marker").attr("id",r+"_"+t+"-zeroOrOneStart").attr("class","marker zeroOrOne "+t).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto");i.append("circle").attr("fill","white").attr("cx",21).attr("cy",9).attr("r",6),i.append("path").attr("d","M9,0 L9,18");const s=e.append("defs").append("marker").attr("id",r+"_"+t+"-zeroOrOneEnd").attr("class","marker zeroOrOne "+t).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"),Rw=g((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-oneOrMoreStart").attr("class","marker oneOrMore "+t).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"),e.append("defs").append("marker").attr("id",r+"_"+t+"-oneOrMoreEnd").attr("class","marker oneOrMore "+t).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"),qw=g((e,t,r)=>{const i=e.append("defs").append("marker").attr("id",r+"_"+t+"-zeroOrMoreStart").attr("class","marker zeroOrMore "+t).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto");i.append("circle").attr("fill","white").attr("cx",48).attr("cy",18).attr("r",6),i.append("path").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18");const s=e.append("defs").append("marker").attr("id",r+"_"+t+"-zeroOrMoreEnd").attr("class","marker zeroOrMore "+t).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"),Nw=g((e,t,r)=>{const i=Rt(),{themeVariables:s}=i,{strokeWidth:o}=s;e.append("defs").append("marker").attr("id",r+"_"+t+"-onlyOneStart").attr("class","marker onlyOne "+t).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",`${o}`),e.append("defs").append("marker").attr("id",r+"_"+t+"-onlyOneEnd").attr("class","marker onlyOne "+t).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",`${o}`)},"only_one_neo"),Ww=g((e,t,r)=>{const i=Rt(),{themeVariables:s}=i,{strokeWidth:o,mainBkg:a}=s,n=e.append("defs").append("marker").attr("id",r+"_"+t+"-zeroOrOneStart").attr("class","marker zeroOrOne "+t).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto").attr("markerUnits","userSpaceOnUse");n.append("circle").attr("fill",a??"white").attr("cx",21).attr("cy",9).attr("stroke-width",`${o}`).attr("r",6),n.append("path").attr("d","M9,0 L9,18").attr("stroke-width",`${o}`);const l=e.append("defs").append("marker").attr("id",r+"_"+t+"-zeroOrOneEnd").attr("class","marker zeroOrOne "+t).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("markerUnits","userSpaceOnUse").attr("orient","auto");l.append("circle").attr("fill",a??"white").attr("cx",9).attr("cy",9).attr("stroke-width",`${o}`).attr("r",6),l.append("path").attr("d","M21,0 L21,18").attr("stroke-width",`${o}`)},"zero_or_one_neo"),zw=g((e,t,r)=>{const i=Rt(),{themeVariables:s}=i,{strokeWidth:o}=s;e.append("defs").append("marker").attr("id",r+"_"+t+"-oneOrMoreStart").attr("class","marker oneOrMore "+t).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",`${o}`),e.append("defs").append("marker").attr("id",r+"_"+t+"-oneOrMoreEnd").attr("class","marker oneOrMore "+t).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",`${o}`)},"one_or_more_neo"),Hw=g((e,t,r)=>{const i=Rt(),{themeVariables:s}=i,{strokeWidth:o,mainBkg:a}=s,n=e.append("defs").append("marker").attr("id",r+"_"+t+"-zeroOrMoreStart").attr("class","marker zeroOrMore "+t).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("markerUnits","userSpaceOnUse").attr("orient","auto");n.append("circle").attr("fill",a??"white").attr("cx",45.5).attr("cy",18).attr("r",6).attr("stroke-width",`${o}`),n.append("path").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18").attr("stroke-width",`${o}`);const l=e.append("defs").append("marker").attr("id",r+"_"+t+"-zeroOrMoreEnd").attr("class","marker zeroOrMore "+t).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto").attr("markerUnits","userSpaceOnUse");l.append("circle").attr("fill",a??"white").attr("cx",11).attr("cy",18).attr("r",6).attr("stroke-width",`${o}`),l.append("path").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18").attr("stroke-width",`${o}`)},"zero_or_more_neo"),Yw=g((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-requirement_arrowEnd").attr("refX",20).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("path").attr("d",`M0,0
262
+ L20,10
263
+ M20,10
264
+ L0,20`)},"requirement_arrow"),jw=g((e,t,r)=>{const i=Rt(),{themeVariables:s}=i,{strokeWidth:o}=s;e.append("defs").append("marker").attr("id",r+"_"+t+"-requirement_arrowEnd").attr("refX",20).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").attr("markerUnits","userSpaceOnUse").attr("stroke-width",`${o}`).attr("viewBox","0 0 25 20").append("path").attr("d",`M0,0
265
+ L20,10
266
+ M20,10
267
+ L0,20`).attr("stroke-linejoin","miter")},"requirement_arrow_neo"),Uw=g((e,t,r)=>{const i=e.append("defs").append("marker").attr("id",r+"_"+t+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("g");i.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),i.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),i.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10)},"requirement_contains"),Gw=g((e,t,r)=>{const i=Rt(),{themeVariables:s}=i,{strokeWidth:o}=s,a=e.append("defs").append("marker").attr("id",r+"_"+t+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").attr("markerUnits","userSpaceOnUse").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),a.selectAll("*").attr("stroke-width",`${o}`)},"requirement_contains_neo"),Xw={extension:Bw,composition:vw,aggregation:Lw,dependency:Fw,lollipop:Mw,point:Aw,circle:Ew,cross:$w,barb:Ow,barbNeo:Dw,only_one:Pw,zero_or_one:Iw,one_or_more:Rw,zero_or_more:qw,only_one_neo:Nw,zero_or_one_neo:Ww,one_or_more_neo:zw,zero_or_more_neo:Hw,requirement_arrow:Yw,requirement_contains:Uw,requirement_arrow_neo:jw,requirement_contains_neo:Gw},rp=_w,ip=typeof global=="object"&&global&&global.Object===Object&&global,Vw=typeof self=="object"&&self&&self.Object===Object&&self,Ue=ip||Vw||Function("return this")(),Me=Ue.Symbol,sp=Object.prototype,Zw=sp.hasOwnProperty,Kw=sp.toString,mi=Me?Me.toStringTag:void 0;function Qw(e){var t=Zw.call(e,mi),r=e[mi];try{e[mi]=void 0;var i=!0}catch{}var s=Kw.call(e);return i&&(t?e[mi]=r:delete e[mi]),s}var Jw=Object.prototype,tS=Jw.toString;function eS(e){return tS.call(e)}var rS="[object Null]",iS="[object Undefined]",sc=Me?Me.toStringTag:void 0;function Qr(e){return e==null?e===void 0?iS:rS:sc&&sc in Object(e)?Qw(e):eS(e)}function Cr(e){return e!=null&&typeof e=="object"}var sS="[object Symbol]";function el(e){return typeof e=="symbol"||Cr(e)&&Qr(e)==sS}function op(e,t){for(var r=-1,i=e==null?0:e.length,s=Array(i);++r<i;)s[r]=t(e[r],r,e);return s}var se=Array.isArray,oc=Me?Me.prototype:void 0,ac=oc?oc.toString:void 0;function ap(e){if(typeof e=="string")return e;if(se(e))return op(e,ap)+"";if(el(e))return ac?ac.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function rl(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function yo(e){return e}var oS="[object AsyncFunction]",aS="[object Function]",nS="[object GeneratorFunction]",lS="[object Proxy]";function Ks(e){if(!rl(e))return!1;var t=Qr(e);return t==aS||t==nS||t==oS||t==lS}var zo=Ue["__core-js_shared__"],nc=(function(){var e=/[^.]+$/.exec(zo&&zo.keys&&zo.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})();function hS(e){return!!nc&&nc in e}var cS=Function.prototype,uS=cS.toString;function Tr(e){if(e!=null){try{return uS.call(e)}catch{}try{return e+""}catch{}}return""}var dS=/[\\^$.*+?()[\]{}|]/g,fS=/^\[object .+?Constructor\]$/,gS=Function.prototype,pS=Object.prototype,yS=gS.toString,mS=pS.hasOwnProperty,xS=RegExp("^"+yS.call(mS).replace(dS,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function CS(e){if(!rl(e)||hS(e))return!1;var t=Ks(e)?xS:fS;return t.test(Tr(e))}function bS(e,t){return e?.[t]}function _r(e,t){var r=bS(e,t);return CS(r)?r:void 0}var Va=_r(Ue,"WeakMap");function kS(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function wS(){}var SS=800,TS=16,_S=Date.now;function BS(e){var t=0,r=0;return function(){var i=_S(),s=TS-(i-r);if(r=i,s>0){if(++t>=SS)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function Bi(e){return function(){return e}}var lc=(function(){try{var e=_r(Object,"defineProperty");return e({},"",{}),e}catch{}})(),vS=lc?function(e,t){return lc(e,"toString",{configurable:!0,enumerable:!1,value:Bi(t),writable:!0})}:yo,LS=BS(vS);function FS(e,t){for(var r=-1,i=e==null?0:e.length;++r<i&&t(e[r],r,e)!==!1;);return e}function MS(e,t,r,i){for(var s=e.length,o=r+-1;++o<s;)if(t(e[o],o,e))return o;return-1}function AS(e){return e!==e}function ES(e,t,r){for(var i=r-1,s=e.length;++i<s;)if(e[i]===t)return i;return-1}function $S(e,t,r){return t===t?ES(e,t,r):MS(e,AS,r)}function OS(e,t){var r=e==null?0:e.length;return!!r&&$S(e,t,0)>-1}var DS=9007199254740991,PS=/^(?:0|[1-9]\d*)$/;function np(e,t){var r=typeof e;return t=t??DS,!!t&&(r=="number"||r!="symbol"&&PS.test(e))&&e>-1&&e%1==0&&e<t}function lp(e,t){return e===t||e!==e&&t!==t}var hc=Math.max;function IS(e,t,r){return t=hc(t===void 0?e.length-1:t,0),function(){for(var i=arguments,s=-1,o=hc(i.length-t,0),a=Array(o);++s<o;)a[s]=i[t+s];s=-1;for(var n=Array(t+1);++s<t;)n[s]=i[s];return n[t]=r(a),kS(e,this,n)}}function RS(e,t){return LS(IS(e,t,yo),e+"")}var qS=9007199254740991;function il(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=qS}function mo(e){return e!=null&&il(e.length)&&!Ks(e)}var NS=Object.prototype;function hp(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||NS;return e===r}function WS(e,t){for(var r=-1,i=Array(e);++r<e;)i[r]=t(r);return i}var zS="[object Arguments]";function cc(e){return Cr(e)&&Qr(e)==zS}var cp=Object.prototype,HS=cp.hasOwnProperty,YS=cp.propertyIsEnumerable,xo=cc((function(){return arguments})())?cc:function(e){return Cr(e)&&HS.call(e,"callee")&&!YS.call(e,"callee")};function jS(){return!1}var up=typeof exports=="object"&&exports&&!exports.nodeType&&exports,uc=up&&typeof module=="object"&&module&&!module.nodeType&&module,US=uc&&uc.exports===up,dc=US?Ue.Buffer:void 0,GS=dc?dc.isBuffer:void 0,Qs=GS||jS,XS="[object Arguments]",VS="[object Array]",ZS="[object Boolean]",KS="[object Date]",QS="[object Error]",JS="[object Function]",tT="[object Map]",eT="[object Number]",rT="[object Object]",iT="[object RegExp]",sT="[object Set]",oT="[object String]",aT="[object WeakMap]",nT="[object ArrayBuffer]",lT="[object DataView]",hT="[object Float32Array]",cT="[object Float64Array]",uT="[object Int8Array]",dT="[object Int16Array]",fT="[object Int32Array]",gT="[object Uint8Array]",pT="[object Uint8ClampedArray]",yT="[object Uint16Array]",mT="[object Uint32Array]",Pt={};Pt[hT]=Pt[cT]=Pt[uT]=Pt[dT]=Pt[fT]=Pt[gT]=Pt[pT]=Pt[yT]=Pt[mT]=!0;Pt[XS]=Pt[VS]=Pt[nT]=Pt[ZS]=Pt[lT]=Pt[KS]=Pt[QS]=Pt[JS]=Pt[tT]=Pt[eT]=Pt[rT]=Pt[iT]=Pt[sT]=Pt[oT]=Pt[aT]=!1;function xT(e){return Cr(e)&&il(e.length)&&!!Pt[Qr(e)]}function CT(e){return function(t){return e(t)}}var dp=typeof exports=="object"&&exports&&!exports.nodeType&&exports,$i=dp&&typeof module=="object"&&module&&!module.nodeType&&module,bT=$i&&$i.exports===dp,Ho=bT&&ip.process,fc=(function(){try{var e=$i&&$i.require&&$i.require("util").types;return e||Ho&&Ho.binding&&Ho.binding("util")}catch{}})(),gc=fc&&fc.isTypedArray,sl=gc?CT(gc):xT,kT=Object.prototype,wT=kT.hasOwnProperty;function ST(e,t){var r=se(e),i=!r&&xo(e),s=!r&&!i&&Qs(e),o=!r&&!i&&!s&&sl(e),a=r||i||s||o,n=a?WS(e.length,String):[],l=n.length;for(var c in e)(t||wT.call(e,c))&&!(a&&(c=="length"||s&&(c=="offset"||c=="parent")||o&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||np(c,l)))&&n.push(c);return n}function TT(e,t){return function(r){return e(t(r))}}var _T=TT(Object.keys,Object),BT=Object.prototype,vT=BT.hasOwnProperty;function fp(e){if(!hp(e))return _T(e);var t=[];for(var r in Object(e))vT.call(e,r)&&r!="constructor"&&t.push(r);return t}function Be(e){return mo(e)?ST(e):fp(e)}var LT=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,FT=/^\w*$/;function ol(e,t){if(se(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||el(e)?!0:FT.test(e)||!LT.test(e)||t!=null&&e in Object(t)}var Ni=_r(Object,"create");function MT(){this.__data__=Ni?Ni(null):{},this.size=0}function AT(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var ET="__lodash_hash_undefined__",$T=Object.prototype,OT=$T.hasOwnProperty;function DT(e){var t=this.__data__;if(Ni){var r=t[e];return r===ET?void 0:r}return OT.call(t,e)?t[e]:void 0}var PT=Object.prototype,IT=PT.hasOwnProperty;function RT(e){var t=this.__data__;return Ni?t[e]!==void 0:IT.call(t,e)}var qT="__lodash_hash_undefined__";function NT(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Ni&&t===void 0?qT:t,this}function br(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}br.prototype.clear=MT;br.prototype.delete=AT;br.prototype.get=DT;br.prototype.has=RT;br.prototype.set=NT;function WT(){this.__data__=[],this.size=0}function Co(e,t){for(var r=e.length;r--;)if(lp(e[r][0],t))return r;return-1}var zT=Array.prototype,HT=zT.splice;function YT(e){var t=this.__data__,r=Co(t,e);if(r<0)return!1;var i=t.length-1;return r==i?t.pop():HT.call(t,r,1),--this.size,!0}function jT(e){var t=this.__data__,r=Co(t,e);return r<0?void 0:t[r][1]}function UT(e){return Co(this.__data__,e)>-1}function GT(e,t){var r=this.__data__,i=Co(r,e);return i<0?(++this.size,r.push([e,t])):r[i][1]=t,this}function Ge(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}Ge.prototype.clear=WT;Ge.prototype.delete=YT;Ge.prototype.get=jT;Ge.prototype.has=UT;Ge.prototype.set=GT;var Wi=_r(Ue,"Map");function XT(){this.size=0,this.__data__={hash:new br,map:new(Wi||Ge),string:new br}}function VT(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function bo(e,t){var r=e.__data__;return VT(t)?r[typeof t=="string"?"string":"hash"]:r.map}function ZT(e){var t=bo(this,e).delete(e);return this.size-=t?1:0,t}function KT(e){return bo(this,e).get(e)}function QT(e){return bo(this,e).has(e)}function JT(e,t){var r=bo(this,e),i=r.size;return r.set(e,t),this.size+=r.size==i?0:1,this}function Xe(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}Xe.prototype.clear=XT;Xe.prototype.delete=ZT;Xe.prototype.get=KT;Xe.prototype.has=QT;Xe.prototype.set=JT;var t_="Expected a function";function al(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(t_);var r=function(){var i=arguments,s=t?t.apply(this,i):i[0],o=r.cache;if(o.has(s))return o.get(s);var a=e.apply(this,i);return r.cache=o.set(s,a)||o,a};return r.cache=new(al.Cache||Xe),r}al.Cache=Xe;var e_=500;function r_(e){var t=al(e,function(i){return r.size===e_&&r.clear(),i}),r=t.cache;return t}var i_=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,s_=/\\(\\)?/g,o_=r_(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(i_,function(r,i,s,o){t.push(s?o.replace(s_,"$1"):i||r)}),t});function a_(e){return e==null?"":ap(e)}function gp(e,t){return se(e)?e:ol(e,t)?[e]:o_(a_(e))}function ko(e){if(typeof e=="string"||el(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function pp(e,t){t=gp(t,e);for(var r=0,i=t.length;e!=null&&r<i;)e=e[ko(t[r++])];return r&&r==i?e:void 0}function n_(e,t,r){var i=e==null?void 0:pp(e,t);return i===void 0?r:i}function yp(e,t){for(var r=-1,i=t.length,s=e.length;++r<i;)e[s+r]=t[r];return e}var pc=Me?Me.isConcatSpreadable:void 0;function l_(e){return se(e)||xo(e)||!!(pc&&e&&e[pc])}function h_(e,t,r,i,s){var o=-1,a=e.length;for(r||(r=l_),s||(s=[]);++o<a;){var n=e[o];r(n)?yp(s,n):i||(s[s.length]=n)}return s}function c_(e,t,r,i){var s=-1,o=e==null?0:e.length;for(i&&o&&(r=e[++s]);++s<o;)r=t(r,e[s],s,e);return r}function u_(){this.__data__=new Ge,this.size=0}function d_(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function f_(e){return this.__data__.get(e)}function g_(e){return this.__data__.has(e)}var p_=200;function y_(e,t){var r=this.__data__;if(r instanceof Ge){var i=r.__data__;if(!Wi||i.length<p_-1)return i.push([e,t]),this.size=++r.size,this;r=this.__data__=new Xe(i)}return r.set(e,t),this.size=r.size,this}function ze(e){var t=this.__data__=new Ge(e);this.size=t.size}ze.prototype.clear=u_;ze.prototype.delete=d_;ze.prototype.get=f_;ze.prototype.has=g_;ze.prototype.set=y_;function mp(e,t){for(var r=-1,i=e==null?0:e.length,s=0,o=[];++r<i;){var a=e[r];t(a,r,e)&&(o[s++]=a)}return o}function m_(){return[]}var x_=Object.prototype,C_=x_.propertyIsEnumerable,yc=Object.getOwnPropertySymbols,b_=yc?function(e){return e==null?[]:(e=Object(e),mp(yc(e),function(t){return C_.call(e,t)}))}:m_;function k_(e,t,r){var i=t(e);return se(e)?i:yp(i,r(e))}function mc(e){return k_(e,Be,b_)}var Za=_r(Ue,"DataView"),Ka=_r(Ue,"Promise"),Wr=_r(Ue,"Set"),xc="[object Map]",w_="[object Object]",Cc="[object Promise]",bc="[object Set]",kc="[object WeakMap]",wc="[object DataView]",S_=Tr(Za),T_=Tr(Wi),__=Tr(Ka),B_=Tr(Wr),v_=Tr(Va),Ne=Qr;(Za&&Ne(new Za(new ArrayBuffer(1)))!=wc||Wi&&Ne(new Wi)!=xc||Ka&&Ne(Ka.resolve())!=Cc||Wr&&Ne(new Wr)!=bc||Va&&Ne(new Va)!=kc)&&(Ne=function(e){var t=Qr(e),r=t==w_?e.constructor:void 0,i=r?Tr(r):"";if(i)switch(i){case S_:return wc;case T_:return xc;case __:return Cc;case B_:return bc;case v_:return kc}return t});var Sc=Ue.Uint8Array,L_="__lodash_hash_undefined__";function F_(e){return this.__data__.set(e,L_),this}function M_(e){return this.__data__.has(e)}function zi(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new Xe;++t<r;)this.add(e[t])}zi.prototype.add=zi.prototype.push=F_;zi.prototype.has=M_;function A_(e,t){for(var r=-1,i=e==null?0:e.length;++r<i;)if(t(e[r],r,e))return!0;return!1}function xp(e,t){return e.has(t)}var E_=1,$_=2;function Cp(e,t,r,i,s,o){var a=r&E_,n=e.length,l=t.length;if(n!=l&&!(a&&l>n))return!1;var c=o.get(e),h=o.get(t);if(c&&h)return c==t&&h==e;var u=-1,d=!0,f=r&$_?new zi:void 0;for(o.set(e,t),o.set(t,e);++u<n;){var y=e[u],m=t[u];if(i)var x=a?i(m,y,u,t,e,o):i(y,m,u,e,t,o);if(x!==void 0){if(x)continue;d=!1;break}if(f){if(!A_(t,function(C,k){if(!xp(f,k)&&(y===C||s(y,C,r,i,o)))return f.push(k)})){d=!1;break}}else if(!(y===m||s(y,m,r,i,o))){d=!1;break}}return o.delete(e),o.delete(t),d}function O_(e){var t=-1,r=Array(e.size);return e.forEach(function(i,s){r[++t]=[s,i]}),r}function nl(e){var t=-1,r=Array(e.size);return e.forEach(function(i){r[++t]=i}),r}var D_=1,P_=2,I_="[object Boolean]",R_="[object Date]",q_="[object Error]",N_="[object Map]",W_="[object Number]",z_="[object RegExp]",H_="[object Set]",Y_="[object String]",j_="[object Symbol]",U_="[object ArrayBuffer]",G_="[object DataView]",Tc=Me?Me.prototype:void 0,Yo=Tc?Tc.valueOf:void 0;function X_(e,t,r,i,s,o,a){switch(r){case G_:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case U_:return!(e.byteLength!=t.byteLength||!o(new Sc(e),new Sc(t)));case I_:case R_:case W_:return lp(+e,+t);case q_:return e.name==t.name&&e.message==t.message;case z_:case Y_:return e==t+"";case N_:var n=O_;case H_:var l=i&D_;if(n||(n=nl),e.size!=t.size&&!l)return!1;var c=a.get(e);if(c)return c==t;i|=P_,a.set(e,t);var h=Cp(n(e),n(t),i,s,o,a);return a.delete(e),h;case j_:if(Yo)return Yo.call(e)==Yo.call(t)}return!1}var V_=1,Z_=Object.prototype,K_=Z_.hasOwnProperty;function Q_(e,t,r,i,s,o){var a=r&V_,n=mc(e),l=n.length,c=mc(t),h=c.length;if(l!=h&&!a)return!1;for(var u=l;u--;){var d=n[u];if(!(a?d in t:K_.call(t,d)))return!1}var f=o.get(e),y=o.get(t);if(f&&y)return f==t&&y==e;var m=!0;o.set(e,t),o.set(t,e);for(var x=a;++u<l;){d=n[u];var C=e[d],k=t[d];if(i)var S=a?i(k,C,d,t,e,o):i(C,k,d,e,t,o);if(!(S===void 0?C===k||s(C,k,r,i,o):S)){m=!1;break}x||(x=d=="constructor")}if(m&&!x){var T=e.constructor,_=t.constructor;T!=_&&"constructor"in e&&"constructor"in t&&!(typeof T=="function"&&T instanceof T&&typeof _=="function"&&_ instanceof _)&&(m=!1)}return o.delete(e),o.delete(t),m}var J_=1,_c="[object Arguments]",Bc="[object Array]",us="[object Object]",tB=Object.prototype,vc=tB.hasOwnProperty;function eB(e,t,r,i,s,o){var a=se(e),n=se(t),l=a?Bc:Ne(e),c=n?Bc:Ne(t);l=l==_c?us:l,c=c==_c?us:c;var h=l==us,u=c==us,d=l==c;if(d&&Qs(e)){if(!Qs(t))return!1;a=!0,h=!1}if(d&&!h)return o||(o=new ze),a||sl(e)?Cp(e,t,r,i,s,o):X_(e,t,l,r,i,s,o);if(!(r&J_)){var f=h&&vc.call(e,"__wrapped__"),y=u&&vc.call(t,"__wrapped__");if(f||y){var m=f?e.value():e,x=y?t.value():t;return o||(o=new ze),s(m,x,r,i,o)}}return d?(o||(o=new ze),Q_(e,t,r,i,s,o)):!1}function ll(e,t,r,i,s){return e===t?!0:e==null||t==null||!Cr(e)&&!Cr(t)?e!==e&&t!==t:eB(e,t,r,i,ll,s)}var rB=1,iB=2;function sB(e,t,r,i){var s=r.length,o=s;if(e==null)return!o;for(e=Object(e);s--;){var a=r[s];if(a[2]?a[1]!==e[a[0]]:!(a[0]in e))return!1}for(;++s<o;){a=r[s];var n=a[0],l=e[n],c=a[1];if(a[2]){if(l===void 0&&!(n in e))return!1}else{var h=new ze,u;if(!(u===void 0?ll(c,l,rB|iB,i,h):u))return!1}}return!0}function bp(e){return e===e&&!rl(e)}function oB(e){for(var t=Be(e),r=t.length;r--;){var i=t[r],s=e[i];t[r]=[i,s,bp(s)]}return t}function kp(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}function aB(e){var t=oB(e);return t.length==1&&t[0][2]?kp(t[0][0],t[0][1]):function(r){return r===e||sB(r,e,t)}}function nB(e,t){return e!=null&&t in Object(e)}function lB(e,t,r){t=gp(t,e);for(var i=-1,s=t.length,o=!1;++i<s;){var a=ko(t[i]);if(!(o=e!=null&&r(e,a)))break;e=e[a]}return o||++i!=s?o:(s=e==null?0:e.length,!!s&&il(s)&&np(a,s)&&(se(e)||xo(e)))}function hB(e,t){return e!=null&&lB(e,t,nB)}var cB=1,uB=2;function dB(e,t){return ol(e)&&bp(t)?kp(ko(e),t):function(r){var i=n_(r,e);return i===void 0&&i===t?hB(r,e):ll(t,i,cB|uB)}}function fB(e){return function(t){return t?.[e]}}function gB(e){return function(t){return pp(t,e)}}function pB(e){return ol(e)?fB(ko(e)):gB(e)}function wp(e){return typeof e=="function"?e:e==null?yo:typeof e=="object"?se(e)?dB(e[0],e[1]):aB(e):pB(e)}function yB(e){return function(t,r,i){for(var s=-1,o=Object(t),a=i(t),n=a.length;n--;){var l=a[++s];if(r(o[l],l,o)===!1)break}return t}}var mB=yB();function xB(e,t){return e&&mB(e,t,Be)}function CB(e,t){return function(r,i){if(r==null)return r;if(!mo(r))return e(r,i);for(var s=r.length,o=-1,a=Object(r);++o<s&&i(a[o],o,a)!==!1;);return r}}var hl=CB(xB);function bB(e){return Cr(e)&&mo(e)}function kB(e){return typeof e=="function"?e:yo}function ar(e,t){var r=se(e)?FS:hl;return r(e,kB(t))}function wB(e,t){var r=[];return hl(e,function(i,s,o){t(i,s,o)&&r.push(i)}),r}function ds(e,t){var r=se(e)?mp:wB;return r(e,wp(t))}function SB(e,t){return op(t,function(r){return e[r]})}function jo(e){return e==null?[]:SB(e,Be(e))}var TB="[object Map]",_B="[object Set]",BB=Object.prototype,vB=BB.hasOwnProperty;function Lc(e){if(e==null)return!0;if(mo(e)&&(se(e)||typeof e=="string"||typeof e.splice=="function"||Qs(e)||sl(e)||xo(e)))return!e.length;var t=Ne(e);if(t==TB||t==_B)return!e.size;if(hp(e))return!fp(e).length;for(var r in e)if(vB.call(e,r))return!1;return!0}function Ir(e){return e===void 0}function LB(e,t,r,i,s){return s(e,function(o,a,n){r=i?(i=!1,o):t(r,o,a,n)}),r}function FB(e,t,r){var i=se(e)?c_:LB,s=arguments.length<3;return i(e,wp(t),r,s,hl)}var MB=1/0,AB=Wr&&1/nl(new Wr([,-0]))[1]==MB?function(e){return new Wr(e)}:wS,EB=200;function $B(e,t,r){var i=-1,s=OS,o=e.length,a=!0,n=[],l=n;if(o>=EB){var c=AB(e);if(c)return nl(c);a=!1,s=xp,l=new zi}else l=n;t:for(;++i<o;){var h=e[i],u=h;if(h=h!==0?h:0,a&&u===u){for(var d=l.length;d--;)if(l[d]===u)continue t;n.push(h)}else s(l,u,r)||(l!==n&&l.push(u),n.push(h))}return n}var OB=RS(function(e){return $B(h_(e,1,bB,!0))}),DB="\0",nr="\0",Fc="";class wo{constructor(t={}){this._isDirected=Object.prototype.hasOwnProperty.call(t,"directed")?t.directed:!0,this._isMultigraph=Object.prototype.hasOwnProperty.call(t,"multigraph")?t.multigraph:!1,this._isCompound=Object.prototype.hasOwnProperty.call(t,"compound")?t.compound:!1,this._label=void 0,this._defaultNodeLabelFn=Bi(void 0),this._defaultEdgeLabelFn=Bi(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[nr]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}isDirected(){return this._isDirected}isMultigraph(){return this._isMultigraph}isCompound(){return this._isCompound}setGraph(t){return this._label=t,this}graph(){return this._label}setDefaultNodeLabel(t){return Ks(t)||(t=Bi(t)),this._defaultNodeLabelFn=t,this}nodeCount(){return this._nodeCount}nodes(){return Be(this._nodes)}sources(){var t=this;return ds(this.nodes(),function(r){return Lc(t._in[r])})}sinks(){var t=this;return ds(this.nodes(),function(r){return Lc(t._out[r])})}setNodes(t,r){var i=arguments,s=this;return ar(t,function(o){i.length>1?s.setNode(o,r):s.setNode(o)}),this}setNode(t,r){return Object.prototype.hasOwnProperty.call(this._nodes,t)?(arguments.length>1&&(this._nodes[t]=r),this):(this._nodes[t]=arguments.length>1?r:this._defaultNodeLabelFn(t),this._isCompound&&(this._parent[t]=nr,this._children[t]={},this._children[nr][t]=!0),this._in[t]={},this._preds[t]={},this._out[t]={},this._sucs[t]={},++this._nodeCount,this)}node(t){return this._nodes[t]}hasNode(t){return Object.prototype.hasOwnProperty.call(this._nodes,t)}removeNode(t){if(Object.prototype.hasOwnProperty.call(this._nodes,t)){var r=i=>this.removeEdge(this._edgeObjs[i]);delete this._nodes[t],this._isCompound&&(this._removeFromParentsChildList(t),delete this._parent[t],ar(this.children(t),i=>{this.setParent(i)}),delete this._children[t]),ar(Be(this._in[t]),r),delete this._in[t],delete this._preds[t],ar(Be(this._out[t]),r),delete this._out[t],delete this._sucs[t],--this._nodeCount}return this}setParent(t,r){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(Ir(r))r=nr;else{r+="";for(var i=r;!Ir(i);i=this.parent(i))if(i===t)throw new Error("Setting "+r+" as parent of "+t+" would create a cycle");this.setNode(r)}return this.setNode(t),this._removeFromParentsChildList(t),this._parent[t]=r,this._children[r][t]=!0,this}_removeFromParentsChildList(t){delete this._children[this._parent[t]][t]}parent(t){if(this._isCompound){var r=this._parent[t];if(r!==nr)return r}}children(t){if(Ir(t)&&(t=nr),this._isCompound){var r=this._children[t];if(r)return Be(r)}else{if(t===nr)return this.nodes();if(this.hasNode(t))return[]}}predecessors(t){var r=this._preds[t];if(r)return Be(r)}successors(t){var r=this._sucs[t];if(r)return Be(r)}neighbors(t){var r=this.predecessors(t);if(r)return OB(r,this.successors(t))}isLeaf(t){var r;return this.isDirected()?r=this.successors(t):r=this.neighbors(t),r.length===0}filterNodes(t){var r=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});r.setGraph(this.graph());var i=this;ar(this._nodes,function(a,n){t(n)&&r.setNode(n,a)}),ar(this._edgeObjs,function(a){r.hasNode(a.v)&&r.hasNode(a.w)&&r.setEdge(a,i.edge(a))});var s={};function o(a){var n=i.parent(a);return n===void 0||r.hasNode(n)?(s[a]=n,n):n in s?s[n]:o(n)}return this._isCompound&&ar(r.nodes(),function(a){r.setParent(a,o(a))}),r}setDefaultEdgeLabel(t){return Ks(t)||(t=Bi(t)),this._defaultEdgeLabelFn=t,this}edgeCount(){return this._edgeCount}edges(){return jo(this._edgeObjs)}setPath(t,r){var i=this,s=arguments;return FB(t,function(o,a){return s.length>1?i.setEdge(o,a,r):i.setEdge(o,a),a}),this}setEdge(){var t,r,i,s,o=!1,a=arguments[0];typeof a=="object"&&a!==null&&"v"in a?(t=a.v,r=a.w,i=a.name,arguments.length===2&&(s=arguments[1],o=!0)):(t=a,r=arguments[1],i=arguments[3],arguments.length>2&&(s=arguments[2],o=!0)),t=""+t,r=""+r,Ir(i)||(i=""+i);var n=vi(this._isDirected,t,r,i);if(Object.prototype.hasOwnProperty.call(this._edgeLabels,n))return o&&(this._edgeLabels[n]=s),this;if(!Ir(i)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(t),this.setNode(r),this._edgeLabels[n]=o?s:this._defaultEdgeLabelFn(t,r,i);var l=PB(this._isDirected,t,r,i);return t=l.v,r=l.w,Object.freeze(l),this._edgeObjs[n]=l,Mc(this._preds[r],t),Mc(this._sucs[t],r),this._in[r][n]=l,this._out[t][n]=l,this._edgeCount++,this}edge(t,r,i){var s=arguments.length===1?Uo(this._isDirected,arguments[0]):vi(this._isDirected,t,r,i);return this._edgeLabels[s]}hasEdge(t,r,i){var s=arguments.length===1?Uo(this._isDirected,arguments[0]):vi(this._isDirected,t,r,i);return Object.prototype.hasOwnProperty.call(this._edgeLabels,s)}removeEdge(t,r,i){var s=arguments.length===1?Uo(this._isDirected,arguments[0]):vi(this._isDirected,t,r,i),o=this._edgeObjs[s];return o&&(t=o.v,r=o.w,delete this._edgeLabels[s],delete this._edgeObjs[s],Ac(this._preds[r],t),Ac(this._sucs[t],r),delete this._in[r][s],delete this._out[t][s],this._edgeCount--),this}inEdges(t,r){var i=this._in[t];if(i){var s=jo(i);return r?ds(s,function(o){return o.v===r}):s}}outEdges(t,r){var i=this._out[t];if(i){var s=jo(i);return r?ds(s,function(o){return o.w===r}):s}}nodeEdges(t,r){var i=this.inEdges(t,r);if(i)return i.concat(this.outEdges(t,r))}}wo.prototype._nodeCount=0;wo.prototype._edgeCount=0;function Mc(e,t){e[t]?e[t]++:e[t]=1}function Ac(e,t){--e[t]||delete e[t]}function vi(e,t,r,i){var s=""+t,o=""+r;if(!e&&s>o){var a=s;s=o,o=a}return s+Fc+o+Fc+(Ir(i)?DB:i)}function PB(e,t,r,i){var s=""+t,o=""+r;if(!e&&s>o){var a=s;s=o,o=a}var n={v:s,w:o};return i&&(n.name=i),n}function Uo(e,t){return vi(e,t.v,t.w,t.name)}function Sp(e,{edgePathsClass:t="edges edgePath"}={}){const r=e.insert("g").attr("class","root"),i=r.insert("g").attr("class","clusters"),s=r.insert("g").attr("class",t),o=r.insert("g").attr("class","edgeLabels"),a=r.insert("g").attr("class","nodes");return{clusters:i,edgePaths:s,edgeLabels:o,nodes:a,rootGroups:r}}g(Sp,"createLayoutElementGroups");async function Tp(e,t){if(t.label){const{shapeSvg:r,bbox:i}=await ct(e,t);t.labelBBox={width:i.width,height:i.height},r.remove()}else t.labelBBox={width:0,height:0}}g(Tp,"measureGroupLabel");async function _p(e,t,r){const i=await Jn(e,t,r),s=i.node()?.getBBox()??{width:0,height:0};return t.width=s.width,t.height=s.height,i}g(_p,"insertMeasuredNode");async function Bp(e,t){const r=new wo({multigraph:!0,compound:!0}),i=[...t.edges],s=Bt(),o=Sp(e),{edgeLabels:a,nodes:n}=o,l=new Map,c=e.node()!=null;await Promise.all(t.nodes.map(async h=>{if(h.isGroup)c&&await Tp(n,h),r.setNode(h.id,{...h});else{if(c){const u=await _p(n,h,{config:s,dir:h.dir});l.set(h.id,u)}r.setNode(h.id,{...h})}}));for(const h of i)c&&Kg(h)&&await tl(a,h),r.setEdge(h.start,h.end,{...h},h.id),t.edges.some(d=>d.id===h.id)||t.edges.push(h);if(globalThis.mermaidCaptureSizes){const{captureNodeSizes:h}=await _t(async()=>{const{captureNodeSizes:u}=await import("./sizeCapture-X5ZJPWSS-BYc4ks_u.js");return{captureNodeSizes:u}},[],import.meta.url);h(e,t)}return{graph:r,groups:o,nodeElements:l}}g(Bp,"createGraphWithElements");var Ft=new Map,dr=new Map,vp=new Map,IB=g(()=>{dr.clear(),vp.clear(),Ft.clear()},"clear"),Hi=g((e,t)=>{const r=dr.get(t)||[];return P.trace("In isDescendant",t," ",e," = ",r.includes(e)),r.includes(e)},"isDescendant"),RB=g((e,t)=>{const r=dr.get(t)||[];return P.info("Descendants of ",t," is ",r),P.info("Edge is ",e),e.v===t||e.w===t?!1:r?r.includes(e.v)||Hi(e.v,t)||Hi(e.w,t)||r.includes(e.w):(P.debug("Tilt, ",t,",not in descendants"),!1)},"edgeInCluster"),Lp=g((e,t,r,i)=>{P.debug("Copying children of ",e,"root",i,"data",t.node(e),i);const s=t.children(e)||[];e!==i&&s.push(e),P.debug("Copying (nodes) clusterId",e,"nodes",s),s.forEach(o=>{if(t.children(o).length>0)Lp(o,t,r,i);else{const a=t.node(o);P.info("cp ",o," to ",i," with parent ",e),r.setNode(o,a),i!==t.parent(o)&&(P.debug("Setting parent",o,t.parent(o)),r.setParent(o,t.parent(o))),e!==i&&o!==e?(P.debug("Setting parent",o,e),r.setParent(o,e)):(P.info("In copy ",e,"root",i,"data",t.node(e),i),P.debug("Not Setting parent for node=",o,"cluster!==rootId",e!==i,"node!==clusterId",o!==e));const n=t.edges(o);P.debug("Copying Edges",n),n.forEach(l=>{P.info("Edge",l);const c=t.edge(l.v,l.w,l.name);P.info("Edge data",c,i);try{RB(l,i)?(P.info("Copying as ",l.v,l.w,c,l.name),r.setEdge(l.v,l.w,c,l.name),P.info("newGraph edges ",r.edges(),r.edge(r.edges()[0]))):P.info("Skipping copy of edge ",l.v,"-->",l.w," rootId: ",i," clusterId:",e)}catch(h){P.error(h)}})}P.debug("Removing node",o),t.removeNode(o)})},"copy"),Fp=g((e,t)=>{const r=t.children(e);let i=[...r];for(const s of r)vp.set(s,e),i=[...i,...Fp(s,t)];return i},"extractDescendants"),qB=g((e,t,r)=>{const i=e.edges().filter(l=>l.v===t||l.w===t),s=e.edges().filter(l=>l.v===r||l.w===r),o=i.map(l=>({v:l.v===t?r:l.v,w:l.w===t?t:l.w})),a=s.map(l=>({v:l.v,w:l.w}));return o.filter(l=>a.some(c=>l.v===c.v&&l.w===c.w))},"findCommonEdges"),Js=g((e,t,r)=>{const i=t.children(e);if(P.trace("Searching children of id ",e,i),i.length<1)return e;let s;for(const o of i){const a=Js(o,t,r),n=qB(t,r,a);if(a)if(n.length>0)s=a;else return a}return s},"findNonClusterChild"),Ec=g(e=>!Ft.has(e)||!Ft.get(e).externalConnections?e:Ft.has(e)?Ft.get(e).id:e,"getAnchorId"),rM=g((e,t)=>{if(!e||t>10){P.debug("Opting out, no graph ");return}else P.debug("Opting in, graph ");e.nodes().forEach(function(r){e.children(r).length>0&&(P.debug("Cluster identified",r," Replacement id in edges: ",Js(r,e,r)),dr.set(r,Fp(r,e)),Ft.set(r,{id:Js(r,e,r),clusterData:e.node(r)}))}),e.nodes().forEach(function(r){const i=e.children(r),s=e.edges();i.length>0?(P.debug("Cluster identified",r,dr),s.forEach(o=>{const a=Hi(o.v,r),n=Hi(o.w,r);a^n&&(P.debug("Edge: ",o," leaves cluster ",r),P.debug("Descendants of XXX ",r,": ",dr.get(r)),Ft.get(r).externalConnections=!0)})):P.debug("Not a cluster ",r,dr)});for(let r of Ft.keys()){const i=Ft.get(r).id,s=e.parent(i);s!==r&&Ft.has(s)&&!Ft.get(s).externalConnections&&(Ft.get(r).id=s);const o=e.edges().some(a=>a.v===r);if(i&&Ft.get(r)?.externalConnections&&o&&Ep(e,i,r)){const a=NB(e,r,e.parent(i));a&&(Ft.get(r).id=a)}}e.edges().forEach(function(r){const i=e.edge(r);P.debug("Edge "+r.v+" -> "+r.w+": "+JSON.stringify(r)),P.debug("Edge "+r.v+" -> "+r.w+": "+JSON.stringify(e.edge(r)));let s=r.v,o=r.w;if(P.debug("Fix XXX",Ft,"ids:",r.v,r.w,"Translating: ",Ft.get(r.v)," --- ",Ft.get(r.w)),Ft.get(r.v)||Ft.get(r.w)){if(P.debug("Fixing and trying - removing XXX",r.v,r.w,r.name),s=Ec(r.v),o=Ec(r.w),e.removeEdge(r.v,r.w,r.name),s!==r.v){const a=e.parent(s);Ft.get(a).externalConnections=!0,i.fromCluster=r.v}if(o!==r.w){const a=e.parent(o);Ft.get(a).externalConnections=!0,i.toCluster=r.w}P.debug("Fix Replacing with XXX",s,o,r.name),e.setEdge(s,o,i,r.name)}}),Mp(e,0),P.trace(Ft)},"adjustClustersAndEdges"),Mp=g((e,t)=>{if(t>10){P.error("Bailing out");return}let r=e.nodes(),i=!1;for(const s of r){const o=e.children(s);i=i||o.length>0}if(!i){P.debug("Done, no node has children",e.nodes());return}P.debug("Nodes = ",r,t);for(const s of r)if(P.debug("Extracting node",s,Ft,Ft.has(s)&&!Ft.get(s).externalConnections,!e.parent(s),e.node(s),e.children("D")," Depth ",t),!Ft.has(s))P.debug("Not a cluster",s,t);else if(!Ft.get(s).externalConnections&&e.children(s)&&e.children(s).length>0){P.debug("Cluster without external connections, without a parent and with children",s,t);let a=e.graph().rankdir==="TB"?"LR":"TB";Ft.get(s)?.clusterData?.dir&&(a=Ft.get(s).clusterData.dir,P.debug("Fixing dir",Ft.get(s).clusterData.dir,a));const n=new wo({multigraph:!0,compound:!0}).setGraph({rankdir:a,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});Lp(s,e,n,s),e.setNode(s,{clusterNode:!0,id:s,clusterData:Ft.get(s).clusterData,label:Ft.get(s).label,graph:n})}else P.debug("Cluster ** ",s," **not meeting the criteria !externalConnections:",!Ft.get(s).externalConnections," no parent: ",!e.parent(s)," children ",e.children(s)&&e.children(s).length>0,e.children("D"),t),P.debug(Ft);r=e.nodes(),P.debug("New list of nodes",r);for(const s of r){const o=e.node(s);P.debug(" Now next level",s,o),o?.clusterNode&&Mp(o.graph,t+1)}},"extractor"),Ap=g((e,t)=>{if(t.length===0)return[];let r=Object.assign([],t);return t.forEach(i=>{const s=e.children(i),o=Ap(e,s);r=[...r,...o]}),r},"sorter"),iM=g(e=>Ap(e,e.children()),"sortNodesByHierarchy"),Ep=g((e,t,r)=>{let i=e.parent(t);for(;i&&i!==r;){const s=Ft.get(i);if(s&&!s.externalConnections)return!0;i=e.parent(i)}return!1},"isNodeInExtractableCluster"),NB=g((e,t,r)=>{const i=e.children(t)??[];for(const s of i){if(s===r||Hi(s,r))continue;const o=Js(s,e,t);if(o&&!Ep(e,o,t))return o}return null},"findSafeAnchorNode");function $p({prepareLayout:e,measureLayout:t,runLayoutCore:r,paintLayout:i,afterPaint:s,paintOptions:o}){const a=t??ul;return g(async function(l,c,h,u){const d=c.select("g");rp(d,l.markers,l.type,l.diagramId),cl();const f={element:d,helpers:h,options:u};f.preparedLayout=await e?.(l,f);const y=await a(l,f),m=await r(l,f),x={...f,measure:y};i?await i(l,x,m):await dl(l,x,o),await s?.(l,x,m)},"render")}g($p,"createCommonLayoutRenderer");function cl(){sw(),xw(),dw(),IB()}g(cl,"clearLayoutRenderState");async function ul(e,{element:t}){return await Bp(t,e)}g(ul,"defaultMeasureLayout");async function dl(e,t,r={}){const{measure:i}=t,{groups:s}=i;for(const a of r.getNodes?.(e,t)??e.nodes)r.skipNode?.(a,t)||await Op(s,a,t,r);const o=Pp(e.nodes);for(const a of e.edges)Ip(a,r)||await Rp(s,a,o,e,r,t)}g(dl,"paintLayoutData");async function Op(e,t,r,i){t.clusterNode?Jh(t):Dp(t,r,i)?await Zg(e.clusters,t):Jh(t)}g(Op,"paintLayoutNode");function Dp(e,t,r){return e.isGroup===!0&&(r.isCluster?.(e,t)??!0)}g(Dp,"shouldPaintAsCluster");function Pp(e){const t=new Map;for(const r of e)r?.id&&t.set(r.id,r);return t}g(Pp,"buildNodeLookup");function Ip(e,t){return e.isLayoutOnly||!!t.skipEdge?.(e)}g(Ip,"shouldSkipPaintEdge");async function Rp(e,t,r,i,s,o){const a=Jg(e.edgePaths,{...t},s.clusterDb??new Map,i.type,Qa(t.start,t,r,o,s),Qa(t.end,t,r,o,s),i.diagramId,qp(t,s));Kg(t)&&(Gr.has(t.id)||await tl(e.edgeLabels,t),Np(t,a))}g(Rp,"paintLayoutEdge");function Qa(e,t,r,i,s){return s.getEdgeNode?.(e,t,i)??(e?r.get(e)??{}:{})}g(Qa,"getRenderedNode");function qp(e,t){return typeof t.skipIntersect=="function"?t.skipIntersect(e):t.skipIntersect??!1}g(qp,"shouldSkipIntersect");function Np(e,t){const r=t?.updatedPath??t?.originalPath,i=Rt(),{subGraphTitleTotalMargin:s}=go({flowchart:i.flowchart??{}});if(e.label){const o=Gr.get(e.id);let a=e.x,n=e.y;if(r){const l=Zt.calcLabelPosition(r);P.debug("Moving label "+e.label+" from (",a,",",n,") to (",l.x,",",l.y,") abc88"),t?.updatedPath&&(a=l.x,n=l.y)}o.attr("transform",`translate(${a}, ${n+s/2})`)}if(e?.startLabelLeft){const o=Nt.get(e.id).startLeft;let a=e?.x,n=e?.y;if(r){const l=Zt.calcTerminalLabelPosition(e.arrowTypeStart?10:0,"start_left",r);a=l.x,n=l.y}o.attr("transform",`translate(${a}, ${n})`)}if(e.startLabelRight){const o=Nt.get(e.id).startRight;let a=e.x,n=e.y;if(r){const l=Zt.calcTerminalLabelPosition(e.arrowTypeStart?10:0,"start_right",r);a=l.x,n=l.y}o.attr("transform",`translate(${a}, ${n})`)}if(e.endLabelLeft){const o=Nt.get(e.id).endLeft;let a=e.x,n=e.y;if(r){const l=Zt.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,"end_left",r);a=l.x,n=l.y}o.attr("transform",`translate(${a}, ${n})`)}if(e.endLabelRight){const o=Nt.get(e.id).endRight;let a=e.x,n=e.y;if(r){const l=Zt.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,"end_right",r);a=l.x,n=l.y}o.attr("transform",`translate(${a}, ${n})`)}}g(Np,"positionRenderedEdgeLabel");function Wp(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}g(Wp,"getDefaultExportFromCjs");var Gt={},fs={},Ve={},$c;function Jr(){if($c)return Ve;$c=1;function e(a){return typeof a>"u"||a===null}g(e,"isNothing");function t(a){return typeof a=="object"&&a!==null}g(t,"isObject");function r(a){return Array.isArray(a)?a:e(a)?[]:[a]}g(r,"toArray");function i(a,n){if(n){const l=Object.keys(n);for(let c=0,h=l.length;c<h;c+=1){const u=l[c];a[u]=n[u]}}return a}g(i,"extend");function s(a,n){let l="";for(let c=0;c<n;c+=1)l+=a;return l}g(s,"repeat");function o(a){return a===0&&Number.NEGATIVE_INFINITY===1/a}return g(o,"isNegativeZero"),Ve.isNothing=e,Ve.isObject=t,Ve.toArray=r,Ve.repeat=s,Ve.isNegativeZero=o,Ve.extend=i,Ve}g(Jr,"requireCommon");var Go,Oc;function ti(){if(Oc)return Go;Oc=1;function e(r,i){let s="";const o=r.reason||"(unknown reason)";return r.mark?(r.mark.name&&(s+='in "'+r.mark.name+'" '),s+="("+(r.mark.line+1)+":"+(r.mark.column+1)+")",!i&&r.mark.snippet&&(s+=`
268
+
269
+ `+r.mark.snippet),o+" "+s):o}g(e,"formatError");function t(r,i){Error.call(this),this.name="YAMLException",this.reason=r,this.mark=i,this.message=e(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}return g(t,"YAMLException2"),t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t.prototype.toString=g(function(i){return this.name+": "+e(this,i)},"toString"),Go=t,Go}g(ti,"requireException");var Xo,Dc;function zp(){if(Dc)return Xo;Dc=1;const e=Jr();function t(s,o,a,n,l){let c="",h="";const u=Math.floor(l/2)-1;return n-o>u&&(c=" ... ",o=n-u+c.length),a-n>u&&(h=" ...",a=n+u-h.length),{str:c+s.slice(o,a).replace(/\t/g,"→")+h,pos:n-o+c.length}}g(t,"getLine");function r(s,o){return e.repeat(" ",o-s.length)+s}g(r,"padStart");function i(s,o){if(o=Object.create(o||null),!s.buffer)return null;o.maxLength||(o.maxLength=79),typeof o.indent!="number"&&(o.indent=1),typeof o.linesBefore!="number"&&(o.linesBefore=3),typeof o.linesAfter!="number"&&(o.linesAfter=2);const a=/\r?\n|\r|\0/g,n=[0],l=[];let c,h=-1;for(;c=a.exec(s.buffer);)l.push(c.index),n.push(c.index+c[0].length),s.position<=c.index&&h<0&&(h=n.length-2);h<0&&(h=n.length-1);let u="";const d=Math.min(s.line+o.linesAfter,l.length).toString().length,f=o.maxLength-(o.indent+d+3);for(let m=1;m<=o.linesBefore&&!(h-m<0);m++){const x=t(s.buffer,n[h-m],l[h-m],s.position-(n[h]-n[h-m]),f);u=e.repeat(" ",o.indent)+r((s.line-m+1).toString(),d)+" | "+x.str+`
270
+ `+u}const y=t(s.buffer,n[h],l[h],s.position,f);u+=e.repeat(" ",o.indent)+r((s.line+1).toString(),d)+" | "+y.str+`
271
+ `,u+=e.repeat("-",o.indent+d+3+y.pos)+`^
272
+ `;for(let m=1;m<=o.linesAfter&&!(h+m>=l.length);m++){const x=t(s.buffer,n[h+m],l[h+m],s.position-(n[h]-n[h+m]),f);u+=e.repeat(" ",o.indent)+r((s.line+m+1).toString(),d)+" | "+x.str+`
273
+ `}return u.replace(/\n$/,"")}return g(i,"makeSnippet"),Xo=i,Xo}g(zp,"requireSnippet");var Vo,Pc;function Qt(){if(Pc)return Vo;Pc=1;const e=ti(),t=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],r=["scalar","sequence","mapping"];function i(o){const a={};return o!==null&&Object.keys(o).forEach(function(n){o[n].forEach(function(l){a[String(l)]=n})}),a}g(i,"compileStyleAliases");function s(o,a){if(a=a||{},Object.keys(a).forEach(function(n){if(t.indexOf(n)===-1)throw new e('Unknown option "'+n+'" is met in definition of "'+o+'" YAML type.')}),this.options=a,this.tag=o,this.kind=a.kind||null,this.resolve=a.resolve||function(){return!0},this.construct=a.construct||function(n){return n},this.instanceOf=a.instanceOf||null,this.predicate=a.predicate||null,this.represent=a.represent||null,this.representName=a.representName||null,this.defaultStyle=a.defaultStyle||null,this.multi=a.multi||!1,this.styleAliases=i(a.styleAliases||null),r.indexOf(this.kind)===-1)throw new e('Unknown kind "'+this.kind+'" is specified for "'+o+'" YAML type.')}return g(s,"Type2"),Vo=s,Vo}g(Qt,"requireType");var Zo,Ic;function fl(){if(Ic)return Zo;Ic=1;const e=ti(),t=Qt();function r(o,a){const n=[];return o[a].forEach(function(l){let c=n.length;n.forEach(function(h,u){h.tag===l.tag&&h.kind===l.kind&&h.multi===l.multi&&(c=u)}),n[c]=l}),n}g(r,"compileList");function i(){const o={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function a(n){n.multi?(o.multi[n.kind].push(n),o.multi.fallback.push(n)):o[n.kind][n.tag]=o.fallback[n.tag]=n}g(a,"collectType");for(let n=0,l=arguments.length;n<l;n+=1)arguments[n].forEach(a);return o}g(i,"compileMap");function s(o){return this.extend(o)}return g(s,"Schema2"),s.prototype.extend=g(function(a){let n=[],l=[];if(a instanceof t)l.push(a);else if(Array.isArray(a))l=l.concat(a);else if(a&&(Array.isArray(a.implicit)||Array.isArray(a.explicit)))a.implicit&&(n=n.concat(a.implicit)),a.explicit&&(l=l.concat(a.explicit));else throw new e("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");n.forEach(function(h){if(!(h instanceof t))throw new e("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(h.loadKind&&h.loadKind!=="scalar")throw new e("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(h.multi)throw new e("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),l.forEach(function(h){if(!(h instanceof t))throw new e("Specified list of YAML types (or a single Type object) contains a non-Type object.")});const c=Object.create(s.prototype);return c.implicit=(this.implicit||[]).concat(n),c.explicit=(this.explicit||[]).concat(l),c.compiledImplicit=r(c,"implicit"),c.compiledExplicit=r(c,"explicit"),c.compiledTypeMap=i(c.compiledImplicit,c.compiledExplicit),c},"extend"),Zo=s,Zo}g(fl,"requireSchema");var Ko,Rc;function gl(){if(Rc)return Ko;Rc=1;const e=Qt();return Ko=new e("tag:yaml.org,2002:str",{kind:"scalar",construct:g(function(t){return t!==null?t:""},"construct")}),Ko}g(gl,"requireStr");var Qo,qc;function pl(){if(qc)return Qo;qc=1;const e=Qt();return Qo=new e("tag:yaml.org,2002:seq",{kind:"sequence",construct:g(function(t){return t!==null?t:[]},"construct")}),Qo}g(pl,"requireSeq");var Jo,Nc;function yl(){if(Nc)return Jo;Nc=1;const e=Qt();return Jo=new e("tag:yaml.org,2002:map",{kind:"mapping",construct:g(function(t){return t!==null?t:{}},"construct")}),Jo}g(yl,"requireMap");var ta,Wc;function ml(){if(Wc)return ta;Wc=1;const e=fl();return ta=new e({explicit:[gl(),pl(),yl()]}),ta}g(ml,"requireFailsafe");var ea,zc;function xl(){if(zc)return ea;zc=1;const e=Qt();function t(s){if(s===null)return!0;const o=s.length;return o===1&&s==="~"||o===4&&(s==="null"||s==="Null"||s==="NULL")}g(t,"resolveYamlNull");function r(){return null}g(r,"constructYamlNull");function i(s){return s===null}return g(i,"isNull"),ea=new e("tag:yaml.org,2002:null",{kind:"scalar",resolve:t,construct:r,predicate:i,represent:{canonical:g(function(){return"~"},"canonical"),lowercase:g(function(){return"null"},"lowercase"),uppercase:g(function(){return"NULL"},"uppercase"),camelcase:g(function(){return"Null"},"camelcase"),empty:g(function(){return""},"empty")},defaultStyle:"lowercase"}),ea}g(xl,"require_null");var ra,Hc;function Cl(){if(Hc)return ra;Hc=1;const e=Qt();function t(s){if(s===null)return!1;const o=s.length;return o===4&&(s==="true"||s==="True"||s==="TRUE")||o===5&&(s==="false"||s==="False"||s==="FALSE")}g(t,"resolveYamlBoolean");function r(s){return s==="true"||s==="True"||s==="TRUE"}g(r,"constructYamlBoolean");function i(s){return Object.prototype.toString.call(s)==="[object Boolean]"}return g(i,"isBoolean"),ra=new e("tag:yaml.org,2002:bool",{kind:"scalar",resolve:t,construct:r,predicate:i,represent:{lowercase:g(function(s){return s?"true":"false"},"lowercase"),uppercase:g(function(s){return s?"TRUE":"FALSE"},"uppercase"),camelcase:g(function(s){return s?"True":"False"},"camelcase")},defaultStyle:"lowercase"}),ra}g(Cl,"requireBool");var ia,Yc;function bl(){if(Yc)return ia;Yc=1;const e=Jr(),t=Qt();function r(c){return c>=48&&c<=57||c>=65&&c<=70||c>=97&&c<=102}g(r,"isHexCode");function i(c){return c>=48&&c<=55}g(i,"isOctCode");function s(c){return c>=48&&c<=57}g(s,"isDecCode");function o(c){if(c===null)return!1;const h=c.length;let u=0,d=!1;if(!h)return!1;let f=c[u];if((f==="-"||f==="+")&&(f=c[++u]),f==="0"){if(u+1===h)return!0;if(f=c[++u],f==="b"){for(u++;u<h;u++){if(f=c[u],f!=="0"&&f!=="1")return!1;d=!0}return d&&isFinite(a(c))}if(f==="x"){for(u++;u<h;u++){if(!r(c.charCodeAt(u)))return!1;d=!0}return d&&isFinite(a(c))}if(f==="o"){for(u++;u<h;u++){if(!i(c.charCodeAt(u)))return!1;d=!0}return d&&isFinite(a(c))}}for(;u<h;u++){if(!s(c.charCodeAt(u)))return!1;d=!0}return d?isFinite(a(c)):!1}g(o,"resolveYamlInteger");function a(c){let h=c,u=1,d=h[0];if((d==="-"||d==="+")&&(d==="-"&&(u=-1),h=h.slice(1),d=h[0]),h==="0")return 0;if(d==="0"){if(h[1]==="b")return u*parseInt(h.slice(2),2);if(h[1]==="x")return u*parseInt(h.slice(2),16);if(h[1]==="o")return u*parseInt(h.slice(2),8)}return u*parseInt(h,10)}g(a,"parseYamlInteger");function n(c){return a(c)}g(n,"constructYamlInteger");function l(c){return Object.prototype.toString.call(c)==="[object Number]"&&c%1===0&&!e.isNegativeZero(c)}return g(l,"isInteger"),ia=new t("tag:yaml.org,2002:int",{kind:"scalar",resolve:o,construct:n,predicate:l,represent:{binary:g(function(c){return c>=0?"0b"+c.toString(2):"-0b"+c.toString(2).slice(1)},"binary"),octal:g(function(c){return c>=0?"0o"+c.toString(8):"-0o"+c.toString(8).slice(1)},"octal"),decimal:g(function(c){return c.toString(10)},"decimal"),hexadecimal:g(function(c){return c>=0?"0x"+c.toString(16).toUpperCase():"-0x"+c.toString(16).toUpperCase().slice(1)},"hexadecimal")},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),ia}g(bl,"requireInt");var sa,jc;function kl(){if(jc)return sa;jc=1;const e=Jr(),t=Qt(),r=new RegExp("^(?:[-+]?(?:[0-9]+)(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),i=new RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function s(c){return c===null||!r.test(c)?!1:isFinite(parseFloat(c,10))?!0:i.test(c)}g(s,"resolveYamlFloat");function o(c){let h=c.toLowerCase();const u=h[0]==="-"?-1:1;return"+-".indexOf(h[0])>=0&&(h=h.slice(1)),h===".inf"?u===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:h===".nan"?NaN:u*parseFloat(h,10)}g(o,"constructYamlFloat");const a=/^[-+]?[0-9]+e/;function n(c,h){if(isNaN(c))switch(h){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===c)switch(h){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===c)switch(h){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(e.isNegativeZero(c))return"-0.0";const u=c.toString(10);return a.test(u)?u.replace("e",".e"):u}g(n,"representYamlFloat");function l(c){return Object.prototype.toString.call(c)==="[object Number]"&&(c%1!==0||e.isNegativeZero(c))}return g(l,"isFloat"),sa=new t("tag:yaml.org,2002:float",{kind:"scalar",resolve:s,construct:o,predicate:l,represent:n,defaultStyle:"lowercase"}),sa}g(kl,"requireFloat");var oa,Uc;function wl(){return Uc||(Uc=1,oa=ml().extend({implicit:[xl(),Cl(),bl(),kl()]})),oa}g(wl,"requireJson");var aa,Gc;function Sl(){return Gc||(Gc=1,aa=wl()),aa}g(Sl,"requireCore");var na,Xc;function Tl(){if(Xc)return na;Xc=1;const e=Qt(),t=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),r=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 i(a){return a===null?!1:t.exec(a)!==null||r.exec(a)!==null}g(i,"resolveYamlTimestamp");function s(a){let n=0,l=null,c=t.exec(a);if(c===null&&(c=r.exec(a)),c===null)throw new Error("Date resolve error");const h=+c[1],u=+c[2]-1,d=+c[3];if(!c[4])return new Date(Date.UTC(h,u,d));const f=+c[4],y=+c[5],m=+c[6];if(c[7]){for(n=c[7].slice(0,3);n.length<3;)n+="0";n=+n}if(c[9]){const C=+c[10],k=+(c[11]||0);l=(C*60+k)*6e4,c[9]==="-"&&(l=-l)}const x=new Date(Date.UTC(h,u,d,f,y,m,n));return l&&x.setTime(x.getTime()-l),x}g(s,"constructYamlTimestamp");function o(a){return a.toISOString()}return g(o,"representYamlTimestamp"),na=new e("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:i,construct:s,instanceOf:Date,represent:o}),na}g(Tl,"requireTimestamp");var la,Vc;function _l(){if(Vc)return la;Vc=1;const e=Qt();function t(r){return r==="<<"||r===null}return g(t,"resolveYamlMerge"),la=new e("tag:yaml.org,2002:merge",{kind:"scalar",resolve:t}),la}g(_l,"requireMerge");var ha,Zc;function Bl(){if(Zc)return ha;Zc=1;const e=Qt(),t=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
274
+ \r`;function r(a){if(a===null)return!1;let n=0;const l=a.length,c=t;for(let h=0;h<l;h++){const u=c.indexOf(a.charAt(h));if(!(u>64)){if(u<0)return!1;n+=6}}return n%8===0}g(r,"resolveYamlBinary");function i(a){const n=a.replace(/[\r\n=]/g,""),l=n.length,c=t;let h=0;const u=[];for(let f=0;f<l;f++)f%4===0&&f&&(u.push(h>>16&255),u.push(h>>8&255),u.push(h&255)),h=h<<6|c.indexOf(n.charAt(f));const d=l%4*6;return d===0?(u.push(h>>16&255),u.push(h>>8&255),u.push(h&255)):d===18?(u.push(h>>10&255),u.push(h>>2&255)):d===12&&u.push(h>>4&255),new Uint8Array(u)}g(i,"constructYamlBinary");function s(a){let n="",l=0;const c=a.length,h=t;for(let d=0;d<c;d++)d%3===0&&d&&(n+=h[l>>18&63],n+=h[l>>12&63],n+=h[l>>6&63],n+=h[l&63]),l=(l<<8)+a[d];const u=c%3;return u===0?(n+=h[l>>18&63],n+=h[l>>12&63],n+=h[l>>6&63],n+=h[l&63]):u===2?(n+=h[l>>10&63],n+=h[l>>4&63],n+=h[l<<2&63],n+=h[64]):u===1&&(n+=h[l>>2&63],n+=h[l<<4&63],n+=h[64],n+=h[64]),n}g(s,"representYamlBinary");function o(a){return Object.prototype.toString.call(a)==="[object Uint8Array]"}return g(o,"isBinary"),ha=new e("tag:yaml.org,2002:binary",{kind:"scalar",resolve:r,construct:i,predicate:o,represent:s}),ha}g(Bl,"requireBinary");var ca,Kc;function vl(){if(Kc)return ca;Kc=1;const e=Qt(),t=Object.prototype.hasOwnProperty,r=Object.prototype.toString;function i(o){if(o===null)return!0;const a=[],n=o;for(let l=0,c=n.length;l<c;l+=1){const h=n[l];let u=!1;if(r.call(h)!=="[object Object]")return!1;let d;for(d in h)if(t.call(h,d))if(!u)u=!0;else return!1;if(!u)return!1;if(a.indexOf(d)===-1)a.push(d);else return!1}return!0}g(i,"resolveYamlOmap");function s(o){return o!==null?o:[]}return g(s,"constructYamlOmap"),ca=new e("tag:yaml.org,2002:omap",{kind:"sequence",resolve:i,construct:s}),ca}g(vl,"requireOmap");var ua,Qc;function Ll(){if(Qc)return ua;Qc=1;const e=Qt(),t=Object.prototype.toString;function r(s){if(s===null)return!0;const o=s,a=new Array(o.length);for(let n=0,l=o.length;n<l;n+=1){const c=o[n];if(t.call(c)!=="[object Object]")return!1;const h=Object.keys(c);if(h.length!==1)return!1;a[n]=[h[0],c[h[0]]]}return!0}g(r,"resolveYamlPairs");function i(s){if(s===null)return[];const o=s,a=new Array(o.length);for(let n=0,l=o.length;n<l;n+=1){const c=o[n],h=Object.keys(c);a[n]=[h[0],c[h[0]]]}return a}return g(i,"constructYamlPairs"),ua=new e("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:r,construct:i}),ua}g(Ll,"requirePairs");var da,Jc;function Fl(){if(Jc)return da;Jc=1;const e=Qt(),t=Object.prototype.hasOwnProperty;function r(s){if(s===null)return!0;const o=s;for(const a in o)if(t.call(o,a)&&o[a]!==null)return!1;return!0}g(r,"resolveYamlSet");function i(s){return s!==null?s:{}}return g(i,"constructYamlSet"),da=new e("tag:yaml.org,2002:set",{kind:"mapping",resolve:r,construct:i}),da}g(Fl,"requireSet");var fa,tu;function So(){return tu||(tu=1,fa=Sl().extend({implicit:[Tl(),_l()],explicit:[Bl(),vl(),Ll(),Fl()]})),fa}g(So,"require_default");var eu;function Hp(){if(eu)return fs;eu=1;const e=Jr(),t=ti(),r=zp(),i=So(),s=Object.prototype.hasOwnProperty,o=1,a=2,n=3,l=4,c=1,h=2,u=3,d=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,f=/[\x85\u2028\u2029]/,y=/[,\[\]{}]/,m=/^(?:!|!!|![0-9A-Za-z-]+!)$/,x=/^(?:!|[^,\[\]{}])(?:%[0-9a-f]{2}|[0-9a-z\-#;/?:@&=+$,_.!~*'()\[\]])*$/i;function C(p){return Object.prototype.toString.call(p)}g(C,"_class");function k(p){return p===10||p===13}g(k,"isEol");function S(p){return p===9||p===32}g(S,"isWhiteSpace");function T(p){return p===9||p===32||p===10||p===13}g(T,"isWsOrEol");function _(p){return p===44||p===91||p===93||p===123||p===125}g(_,"isFlowIndicator");function L(p){if(p>=48&&p<=57)return p-48;const A=p|32;return A>=97&&A<=102?A-97+10:-1}g(L,"fromHexCode");function M(p){return p===120?2:p===117?4:p===85?8:0}g(M,"escapedHexLen");function v(p){return p>=48&&p<=57?p-48:-1}g(v,"fromDecimalCode");function X(p){switch(p){case 48:return"\0";case 97:return"\x07";case 98:return"\b";case 116:return" ";case 9:return" ";case 110:return`
275
+ `;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""}}g(X,"simpleEscapeSequence");function z(p){return p<=65535?String.fromCharCode(p):String.fromCharCode((p-65536>>10)+55296,(p-65536&1023)+56320)}g(z,"charFromCodepoint");function I(p,A,Y){A==="__proto__"?Object.defineProperty(p,A,{configurable:!0,enumerable:!0,writable:!0,value:Y}):p[A]=Y}g(I,"setProperty");const et=new Array(256),H=new Array(256);for(let p=0;p<256;p++)et[p]=X(p)?1:0,H[p]=X(p);function E(p,A){this.input=p,this.filename=A.filename||null,this.schema=A.schema||i,this.onWarning=A.onWarning||null,this.legacy=A.legacy||!1,this.json=A.json||!1,this.listener=A.listener||null,this.maxDepth=typeof A.maxDepth=="number"?A.maxDepth:100,this.maxTotalMergeKeys=typeof A.maxTotalMergeKeys=="number"?A.maxTotalMergeKeys:1e4,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=p.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=[]}g(E,"State");function O(p,A){const Y={name:p.filename,buffer:p.input.slice(0,-1),position:p.position,line:p.line,column:p.position-p.lineStart};return Y.snippet=r(Y),new t(A,Y)}g(O,"generateError");function B(p,A){throw O(p,A)}g(B,"throwError");function R(p,A){p.onWarning&&p.onWarning.call(null,O(p,A))}g(R,"throwWarning");function $(p,A,Y){const G=p.anchorMapTransactions;if(G.length!==0){const W=G[G.length-1];s.call(W,A)||(W[A]={existed:s.call(p.anchorMap,A),value:p.anchorMap[A]})}p.anchorMap[A]=Y}g($,"storeAnchor");function J(p){p.anchorMapTransactions.push(Object.create(null))}g(J,"beginAnchorTransaction");function Z(p){const A=p.anchorMapTransactions.pop(),Y=p.anchorMapTransactions;if(Y.length===0)return;const G=Y[Y.length-1],W=Object.keys(A);for(let tt=0,w=W.length;tt<w;tt+=1){const D=W[tt];s.call(G,D)||(G[D]=A[D])}}g(Z,"commitAnchorTransaction");function dt(p){const A=p.anchorMapTransactions.pop(),Y=Object.keys(A);for(let G=Y.length-1;G>=0;G-=1){const W=A[Y[G]];W.existed?p.anchorMap[Y[G]]=W.value:delete p.anchorMap[Y[G]]}}g(dt,"rollbackAnchorTransaction");function Ct(p){return{position:p.position,line:p.line,lineStart:p.lineStart,lineIndent:p.lineIndent,firstTabInLine:p.firstTabInLine,tag:p.tag,anchor:p.anchor,kind:p.kind,result:p.result}}g(Ct,"snapshotState");function xt(p,A){p.position=A.position,p.line=A.line,p.lineStart=A.lineStart,p.lineIndent=A.lineIndent,p.firstTabInLine=A.firstTabInLine,p.tag=A.tag,p.anchor=A.anchor,p.kind=A.kind,p.result=A.result}g(xt,"restoreState");const St={YAML:g(function(A,Y,G){A.version!==null&&B(A,"duplication of %YAML directive"),G.length!==1&&B(A,"YAML directive accepts exactly one argument");const W=/^([0-9]+)\.([0-9]+)$/.exec(G[0]);W===null&&B(A,"ill-formed argument of the YAML directive");const tt=parseInt(W[1],10),w=parseInt(W[2],10);tt!==1&&B(A,"unacceptable YAML version of the document"),A.version=G[0],A.checkLineBreaks=w<2,w!==1&&w!==2&&R(A,"unsupported YAML version of the document")},"handleYamlDirective"),TAG:g(function(A,Y,G){let W;G.length!==2&&B(A,"TAG directive accepts exactly two arguments");const tt=G[0];W=G[1],m.test(tt)||B(A,"ill-formed tag handle (first argument) of the TAG directive"),s.call(A.tagMap,tt)&&B(A,'there is a previously declared suffix for "'+tt+'" tag handle'),x.test(W)||B(A,"ill-formed tag prefix (second argument) of the TAG directive");try{W=decodeURIComponent(W)}catch{B(A,"tag prefix is malformed: "+W)}A.tagMap[tt]=W},"handleTagDirective")};function wt(p,A,Y,G){if(A<Y){const W=p.input.slice(A,Y);if(G)for(let tt=0,w=W.length;tt<w;tt+=1){const D=W.charCodeAt(tt);D===9||D>=32&&D<=1114111||B(p,"expected valid JSON character")}else d.test(W)&&B(p,"the stream contains non-printable characters");p.result+=W}}g(wt,"captureSegment");function ht(p,A,Y,G){e.isObject(Y)||B(p,"cannot merge mappings; the provided source object is unacceptable");const W=Object.keys(Y);for(let tt=0,w=W.length;tt<w;tt+=1){const D=W[tt];p.maxTotalMergeKeys!==-1&&++p.totalMergeKeys>p.maxTotalMergeKeys&&B(p,"merge keys exceeded maxTotalMergeKeys ("+p.maxTotalMergeKeys+")"),s.call(A,D)||(I(A,D,Y[D]),G[D]=!0)}}g(ht,"mergeMappings");function pt(p,A,Y,G,W,tt,w,D,K){if(Array.isArray(W)){W=Array.prototype.slice.call(W);for(let j=0,U=W.length;j<U;j+=1)Array.isArray(W[j])&&B(p,"nested arrays are not supported inside keys"),typeof W=="object"&&C(W[j])==="[object Object]"&&(W[j]="[object Object]")}if(typeof W=="object"&&C(W)==="[object Object]"&&(W="[object Object]"),W=String(W),A===null&&(A={}),G==="tag:yaml.org,2002:merge")if(Array.isArray(tt))for(let j=0,U=tt.length;j<U;j+=1)ht(p,A,tt[j],Y);else ht(p,A,tt,Y);else!p.json&&!s.call(Y,W)&&s.call(A,W)&&(p.line=w||p.line,p.lineStart=D||p.lineStart,p.position=K||p.position,B(p,"duplicated mapping key")),I(A,W,tt),delete Y[W];return A}g(pt,"storeMappingPair");function vt(p){const A=p.input.charCodeAt(p.position);A===10?p.position++:A===13?(p.position++,p.input.charCodeAt(p.position)===10&&p.position++):B(p,"a line break is expected"),p.line+=1,p.lineStart=p.position,p.firstTabInLine=-1}g(vt,"readLineBreak");function kt(p,A,Y){let G=0,W=p.input.charCodeAt(p.position);for(;W!==0;){for(;S(W);)W===9&&p.firstTabInLine===-1&&(p.firstTabInLine=p.position),W=p.input.charCodeAt(++p.position);if(A&&W===35)do W=p.input.charCodeAt(++p.position);while(W!==10&&W!==13&&W!==0);if(k(W))for(vt(p),W=p.input.charCodeAt(p.position),G++,p.lineIndent=0;W===32;)p.lineIndent++,W=p.input.charCodeAt(++p.position);else break}return Y!==-1&&G!==0&&p.lineIndent<Y&&R(p,"deficient indentation"),G}g(kt,"skipSeparationSpace");function Et(p){let A=p.position,Y=p.input.charCodeAt(A);return!!((Y===45||Y===46)&&Y===p.input.charCodeAt(A+1)&&Y===p.input.charCodeAt(A+2)&&(A+=3,Y=p.input.charCodeAt(A),Y===0||T(Y)))}g(Et,"testDocumentSeparator");function Ot(p,A){A===1?p.result+=" ":A>1&&(p.result+=e.repeat(`
276
+ `,A-1))}g(Ot,"writeFoldedLines");function Jt(p,A,Y){let G,W,tt,w,D,K;const j=p.kind,U=p.result;let Q=p.input.charCodeAt(p.position);if(T(Q)||_(Q)||Q===35||Q===38||Q===42||Q===33||Q===124||Q===62||Q===39||Q===34||Q===37||Q===64||Q===96)return!1;if(Q===63||Q===45){const V=p.input.charCodeAt(p.position+1);if(T(V)||Y&&_(V))return!1}for(p.kind="scalar",p.result="",G=W=p.position,tt=!1;Q!==0;){if(Q===58){const V=p.input.charCodeAt(p.position+1);if(T(V)||Y&&_(V))break}else if(Q===35){const V=p.input.charCodeAt(p.position-1);if(T(V))break}else{if(p.position===p.lineStart&&Et(p)||Y&&_(Q))break;if(k(Q))if(w=p.line,D=p.lineStart,K=p.lineIndent,kt(p,!1,-1),p.lineIndent>=A){tt=!0,Q=p.input.charCodeAt(p.position);continue}else{p.position=W,p.line=w,p.lineStart=D,p.lineIndent=K;break}}tt&&(wt(p,G,W,!1),Ot(p,p.line-w),G=W=p.position,tt=!1),S(Q)||(W=p.position+1),Q=p.input.charCodeAt(++p.position)}return wt(p,G,W,!1),p.result?!0:(p.kind=j,p.result=U,!1)}g(Jt,"readPlainScalar");function ue(p,A){let Y,G,W=p.input.charCodeAt(p.position);if(W!==39)return!1;for(p.kind="scalar",p.result="",p.position++,Y=G=p.position;(W=p.input.charCodeAt(p.position))!==0;)if(W===39)if(wt(p,Y,p.position,!0),W=p.input.charCodeAt(++p.position),W===39)Y=p.position,p.position++,G=p.position;else return!0;else k(W)?(wt(p,Y,G,!0),Ot(p,kt(p,!1,A)),Y=G=p.position):p.position===p.lineStart&&Et(p)?B(p,"unexpected end of the document within a single quoted scalar"):(p.position++,S(W)||(G=p.position));B(p,"unexpected end of the stream within a single quoted scalar")}g(ue,"readSingleQuotedScalar");function ke(p,A){let Y,G,W,tt=p.input.charCodeAt(p.position);if(tt!==34)return!1;for(p.kind="scalar",p.result="",p.position++,Y=G=p.position;(tt=p.input.charCodeAt(p.position))!==0;){if(tt===34)return wt(p,Y,p.position,!0),p.position++,!0;if(tt===92){if(wt(p,Y,p.position,!0),tt=p.input.charCodeAt(++p.position),k(tt))kt(p,!1,A);else if(tt<256&&et[tt])p.result+=H[tt],p.position++;else if((W=M(tt))>0){let w=W,D=0;for(;w>0;w--)tt=p.input.charCodeAt(++p.position),(W=L(tt))>=0?D=(D<<4)+W:B(p,"expected hexadecimal character");p.result+=z(D),p.position++}else B(p,"unknown escape sequence");Y=G=p.position}else k(tt)?(wt(p,Y,G,!0),Ot(p,kt(p,!1,A)),Y=G=p.position):p.position===p.lineStart&&Et(p)?B(p,"unexpected end of the document within a double quoted scalar"):(p.position++,S(tt)||(G=p.position))}B(p,"unexpected end of the stream within a double quoted scalar")}g(ke,"readDoubleQuotedScalar");function ri(p,A){let Y=!0,G,W,tt;const w=p.tag;let D;const K=p.anchor;let j,U,Q,V;const lt=Object.create(null);let ot,ft,gt,Lt=p.input.charCodeAt(p.position);if(Lt===91)j=93,V=!1,D=[];else if(Lt===123)j=125,V=!0,D={};else return!1;for(p.anchor!==null&&$(p,p.anchor,D),Lt=p.input.charCodeAt(++p.position);Lt!==0;){if(kt(p,!0,A),Lt=p.input.charCodeAt(p.position),Lt===j)return p.position++,p.tag=w,p.anchor=K,p.kind=V?"mapping":"sequence",p.result=D,!0;if(Y?Lt===44&&B(p,"expected the node content, but found ','"):B(p,"missed comma between flow collection entries"),ft=ot=gt=null,U=Q=!1,Lt===63){const Dt=p.input.charCodeAt(p.position+1);T(Dt)&&(U=Q=!0,p.position++,kt(p,!0,A))}G=p.line,W=p.lineStart,tt=p.position,de(p,A,o,!1,!0),ft=p.tag,ot=p.result,kt(p,!0,A),Lt=p.input.charCodeAt(p.position),(Q||p.line===G)&&Lt===58&&(U=!0,Lt=p.input.charCodeAt(++p.position),kt(p,!0,A),de(p,A,o,!1,!0),gt=p.result),V?pt(p,D,lt,ft,ot,gt,G,W,tt):U?D.push(pt(p,null,lt,ft,ot,gt,G,W,tt)):D.push(ot),kt(p,!0,A),Lt=p.input.charCodeAt(p.position),Lt===44?(Y=!0,Lt=p.input.charCodeAt(++p.position)):Y=!1}B(p,"unexpected end of the stream within a flow collection")}g(ri,"readFlowCollection");function ii(p,A){let Y,G=c,W=!1,tt=!1,w=A,D=0,K=!1,j,U=p.input.charCodeAt(p.position);if(U===124)Y=!1;else if(U===62)Y=!0;else return!1;for(p.kind="scalar",p.result="";U!==0;)if(U=p.input.charCodeAt(++p.position),U===43||U===45)c===G?G=U===43?u:h:B(p,"repeat of a chomping mode identifier");else if((j=v(U))>=0)j===0?B(p,"bad explicit indentation width of a block scalar; it cannot be less than one"):tt?B(p,"repeat of an indentation width identifier"):(w=A+j-1,tt=!0);else break;if(S(U)){do U=p.input.charCodeAt(++p.position);while(S(U));if(U===35)do U=p.input.charCodeAt(++p.position);while(!k(U)&&U!==0)}for(;U!==0;){for(vt(p),p.lineIndent=0,U=p.input.charCodeAt(p.position);(!tt||p.lineIndent<w)&&U===32;)p.lineIndent++,U=p.input.charCodeAt(++p.position);if(!tt&&p.lineIndent>w&&(w=p.lineIndent),k(U)){D++;continue}if(!tt&&w===0&&B(p,"missing indentation for block scalar"),p.lineIndent<w){G===u?p.result+=e.repeat(`
277
+ `,W?1+D:D):G===c&&W&&(p.result+=`
278
+ `);break}Y?S(U)?(K=!0,p.result+=e.repeat(`
279
+ `,W?1+D:D)):K?(K=!1,p.result+=e.repeat(`
280
+ `,D+1)):D===0?W&&(p.result+=" "):p.result+=e.repeat(`
281
+ `,D):p.result+=e.repeat(`
282
+ `,W?1+D:D),W=!0,tt=!0,D=0;const Q=p.position;for(;!k(U)&&U!==0;)U=p.input.charCodeAt(++p.position);wt(p,Q,p.position,!1)}return!0}g(ii,"readBlockScalar");function we(p,A){const Y=p.tag,G=p.anchor,W=[];let tt=!1;if(p.firstTabInLine!==-1)return!1;p.anchor!==null&&$(p,p.anchor,W);let w=p.input.charCodeAt(p.position);for(;w!==0&&(p.firstTabInLine!==-1&&(p.position=p.firstTabInLine,B(p,"tab characters must not be used in indentation")),w===45);){const D=p.input.charCodeAt(p.position+1);if(!T(D))break;if(tt=!0,p.position++,kt(p,!0,-1)&&p.lineIndent<=A){W.push(null),w=p.input.charCodeAt(p.position);continue}const K=p.line;if(de(p,A,n,!1,!0),W.push(p.result),kt(p,!0,-1),w=p.input.charCodeAt(p.position),(p.line===K||p.lineIndent>A)&&w!==0)B(p,"bad indentation of a sequence entry");else if(p.lineIndent<A)break}return tt?(p.tag=Y,p.anchor=G,p.kind="sequence",p.result=W,!0):!1}g(we,"readBlockSequence");function Br(p,A,Y){let G,W,tt,w;const D=p.tag,K=p.anchor,j={},U=Object.create(null);let Q=null,V=null,lt=null,ot=!1,ft=!1;if(p.firstTabInLine!==-1)return!1;p.anchor!==null&&$(p,p.anchor,j);let gt=p.input.charCodeAt(p.position);for(;gt!==0;){!ot&&p.firstTabInLine!==-1&&(p.position=p.firstTabInLine,B(p,"tab characters must not be used in indentation"));const Lt=p.input.charCodeAt(p.position+1),Dt=p.line;if((gt===63||gt===58)&&T(Lt))gt===63?(ot&&(pt(p,j,U,Q,V,null,W,tt,w),Q=V=lt=null),ft=!0,ot=!0,G=!0):ot?(ot=!1,G=!0):B(p,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),p.position+=1,gt=Lt;else{if(W=p.line,tt=p.lineStart,w=p.position,!de(p,Y,a,!1,!0))break;if(p.line===Dt){for(gt=p.input.charCodeAt(p.position);S(gt);)gt=p.input.charCodeAt(++p.position);if(gt===58)gt=p.input.charCodeAt(++p.position),T(gt)||B(p,"a whitespace character is expected after the key-value separator within a block mapping"),ot&&(pt(p,j,U,Q,V,null,W,tt,w),Q=V=lt=null),ft=!0,ot=!1,G=!1,Q=p.tag,V=p.result;else if(ft)B(p,"can not read an implicit mapping pair; a colon is missed");else return p.tag=D,p.anchor=K,!0}else if(ft)B(p,"can not read a block mapping entry; a multiline key may not be an implicit key");else return p.tag=D,p.anchor=K,!0}if((p.line===Dt||p.lineIndent>A)&&(ot&&(W=p.line,tt=p.lineStart,w=p.position),de(p,A,l,!0,G)&&(ot?V=p.result:lt=p.result),ot||(pt(p,j,U,Q,V,lt,W,tt,w),Q=V=lt=null),kt(p,!0,-1),gt=p.input.charCodeAt(p.position)),(p.line===Dt||p.lineIndent>A)&&gt!==0)B(p,"bad indentation of a mapping entry");else if(p.lineIndent<A)break}return ot&&pt(p,j,U,Q,V,null,W,tt,w),ft&&(p.tag=D,p.anchor=K,p.kind="mapping",p.result=j),ft}g(Br,"readBlockMapping");function si(p){let A=!1,Y=!1,G,W,tt=p.input.charCodeAt(p.position);if(tt!==33)return!1;p.tag!==null&&B(p,"duplication of a tag property"),tt=p.input.charCodeAt(++p.position),tt===60?(A=!0,tt=p.input.charCodeAt(++p.position)):tt===33?(Y=!0,G="!!",tt=p.input.charCodeAt(++p.position)):G="!";let w=p.position;if(A){do tt=p.input.charCodeAt(++p.position);while(tt!==0&&tt!==62);p.position<p.length?(W=p.input.slice(w,p.position),tt=p.input.charCodeAt(++p.position)):B(p,"unexpected end of the stream within a verbatim tag")}else{for(;tt!==0&&!T(tt);)tt===33&&(Y?B(p,"tag suffix cannot contain exclamation marks"):(G=p.input.slice(w-1,p.position+1),m.test(G)||B(p,"named tag handle cannot contain such characters"),Y=!0,w=p.position+1)),tt=p.input.charCodeAt(++p.position);W=p.input.slice(w,p.position),y.test(W)&&B(p,"tag suffix cannot contain flow indicator characters")}W&&!x.test(W)&&B(p,"tag name cannot contain such characters: "+W);try{W=decodeURIComponent(W)}catch{B(p,"tag name is malformed: "+W)}return A?p.tag=W:s.call(p.tagMap,G)?p.tag=p.tagMap[G]+W:G==="!"?p.tag="!"+W:G==="!!"?p.tag="tag:yaml.org,2002:"+W:B(p,'undeclared tag handle "'+G+'"'),!0}g(si,"readTagProperty");function vr(p){let A=p.input.charCodeAt(p.position);if(A!==38)return!1;p.anchor!==null&&B(p,"duplication of an anchor property"),A=p.input.charCodeAt(++p.position);const Y=p.position;for(;A!==0&&!T(A)&&!_(A);)A=p.input.charCodeAt(++p.position);return p.position===Y&&B(p,"name of an anchor node must contain at least one character"),p.anchor=p.input.slice(Y,p.position),!0}g(vr,"readAnchorProperty");function Lr(p){let A=p.input.charCodeAt(p.position);if(A!==42)return!1;A=p.input.charCodeAt(++p.position);const Y=p.position;for(;A!==0&&!T(A)&&!_(A);)A=p.input.charCodeAt(++p.position);p.position===Y&&B(p,"name of an alias node must contain at least one character");const G=p.input.slice(Y,p.position);return s.call(p.anchorMap,G)||B(p,'unidentified alias "'+G+'"'),p.result=p.anchorMap[G],kt(p,!0,-1),!0}g(Lr,"readAlias");function oi(p,A,Y,G){const W=Ct(p);return J(p),xt(p,A),p.tag=null,p.anchor=null,p.kind=null,p.result=null,Br(p,Y,G)&&p.kind==="mapping"?(Z(p),!0):(dt(p),xt(p,W),!1)}g(oi,"tryReadBlockMappingFromProperty");function de(p,A,Y,G,W){let tt,w,D=1,K=!1,j=!1,U=null,Q,V,lt;p.depth>=p.maxDepth&&B(p,"nesting exceeded maxDepth ("+p.maxDepth+")"),p.depth+=1,p.listener!==null&&p.listener("open",p),p.tag=null,p.anchor=null,p.kind=null,p.result=null;const ot=tt=w=l===Y||n===Y;if(G&&kt(p,!0,-1)&&(K=!0,p.lineIndent>A?D=1:p.lineIndent===A?D=0:p.lineIndent<A&&(D=-1)),D===1)for(;;){const ft=p.input.charCodeAt(p.position),gt=Ct(p);if(K&&(ft===33&&p.tag!==null||ft===38&&p.anchor!==null)||!si(p)&&!vr(p))break;U===null&&(U=gt),kt(p,!0,-1)?(K=!0,w=ot,p.lineIndent>A?D=1:p.lineIndent===A?D=0:p.lineIndent<A&&(D=-1)):w=!1}if(w&&(w=K||W),D===1||l===Y)if(o===Y||a===Y?V=A:V=A+1,lt=p.position-p.lineStart,D===1)if(w&&(we(p,lt)||Br(p,lt,V))||ri(p,V))j=!0;else{const ft=p.input.charCodeAt(p.position);U!==null&&ot&&!w&&ft!==124&&ft!==62&&oi(p,U,U.position-U.lineStart,V)||tt&&ii(p,V)||ue(p,V)||ke(p,V)?j=!0:Lr(p)?(j=!0,(p.tag!==null||p.anchor!==null)&&B(p,"alias node should not have any properties")):Jt(p,V,o===Y)&&(j=!0,p.tag===null&&(p.tag="?")),p.anchor!==null&&$(p,p.anchor,p.result)}else D===0&&(j=w&&we(p,lt));if(p.tag===null)p.anchor!==null&&$(p,p.anchor,p.result);else if(p.tag==="?"){p.result!==null&&p.kind!=="scalar"&&B(p,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+p.kind+'"');for(let ft=0,gt=p.implicitTypes.length;ft<gt;ft+=1)if(Q=p.implicitTypes[ft],Q.resolve(p.result)){p.result=Q.construct(p.result),p.tag=Q.tag,p.anchor!==null&&$(p,p.anchor,p.result);break}}else if(p.tag!=="!"){if(s.call(p.typeMap[p.kind||"fallback"],p.tag))Q=p.typeMap[p.kind||"fallback"][p.tag];else{Q=null;const ft=p.typeMap.multi[p.kind||"fallback"];for(let gt=0,Lt=ft.length;gt<Lt;gt+=1)if(p.tag.slice(0,ft[gt].tag.length)===ft[gt].tag){Q=ft[gt];break}}Q||B(p,"unknown tag !<"+p.tag+">"),p.result!==null&&Q.kind!==p.kind&&B(p,"unacceptable node kind for !<"+p.tag+'> tag; it should be "'+Q.kind+'", not "'+p.kind+'"'),Q.resolve(p.result,p.tag)?(p.result=Q.construct(p.result,p.tag),p.anchor!==null&&$(p,p.anchor,p.result)):B(p,"cannot resolve a node with !<"+p.tag+"> explicit tag")}return p.listener!==null&&p.listener("close",p),p.depth-=1,p.tag!==null||p.anchor!==null||j}g(de,"composeNode");function ai(p){const A=p.position;let Y=!1,G;for(p.version=null,p.checkLineBreaks=p.legacy,p.tagMap=Object.create(null),p.anchorMap=Object.create(null);(G=p.input.charCodeAt(p.position))!==0&&(kt(p,!0,-1),G=p.input.charCodeAt(p.position),!(p.lineIndent>0||G!==37));){Y=!0,G=p.input.charCodeAt(++p.position);let W=p.position;for(;G!==0&&!T(G);)G=p.input.charCodeAt(++p.position);const tt=p.input.slice(W,p.position),w=[];for(tt.length<1&&B(p,"directive name must not be less than one character in length");G!==0;){for(;S(G);)G=p.input.charCodeAt(++p.position);if(G===35){do G=p.input.charCodeAt(++p.position);while(G!==0&&!k(G));break}if(k(G))break;for(W=p.position;G!==0&&!T(G);)G=p.input.charCodeAt(++p.position);w.push(p.input.slice(W,p.position))}G!==0&&vt(p),s.call(St,tt)?St[tt](p,tt,w):R(p,'unknown document directive "'+tt+'"')}if(kt(p,!0,-1),p.lineIndent===0&&p.input.charCodeAt(p.position)===45&&p.input.charCodeAt(p.position+1)===45&&p.input.charCodeAt(p.position+2)===45?(p.position+=3,kt(p,!0,-1)):Y&&B(p,"directives end mark is expected"),de(p,p.lineIndent-1,l,!1,!0),kt(p,!0,-1),p.checkLineBreaks&&f.test(p.input.slice(A,p.position))&&R(p,"non-ASCII line breaks are interpreted as content"),p.documents.push(p.result),p.position===p.lineStart&&Et(p)){p.input.charCodeAt(p.position)===46&&(p.position+=3,kt(p,!0,-1));return}p.position<p.length-1&&B(p,"end of the stream or a document separator is expected")}g(ai,"readDocument");function Fr(p,A){p=String(p),A=A||{},p.length!==0&&(p.charCodeAt(p.length-1)!==10&&p.charCodeAt(p.length-1)!==13&&(p+=`
283
+ `),p.charCodeAt(0)===65279&&(p=p.slice(1)));const Y=new E(p,A),G=p.indexOf("\0");for(G!==-1&&(Y.position=G,B(Y,"null byte is not allowed in input")),Y.input+="\0";Y.input.charCodeAt(Y.position)===32;)Y.lineIndent+=1,Y.position+=1;for(;Y.position<Y.length-1;)ai(Y);return Y.documents}g(Fr,"loadDocuments");function Mr(p,A,Y){A!==null&&typeof A=="object"&&typeof Y>"u"&&(Y=A,A=null);const G=Fr(p,Y);if(typeof A!="function")return G;for(let W=0,tt=G.length;W<tt;W+=1)A(G[W])}g(Mr,"loadAll2");function ni(p,A){const Y=Fr(p,A);if(Y.length!==0){if(Y.length===1)return Y[0];throw new t("expected a single document in the stream, but found more")}}return g(ni,"load2"),fs.loadAll=Mr,fs.load=ni,fs}g(Hp,"requireLoader");var ga={},ru;function Yp(){if(ru)return ga;ru=1;const e=Jr(),t=ti(),r=So(),i=Object.prototype.toString,s=Object.prototype.hasOwnProperty,o=65279,a=9,n=10,l=13,c=32,h=33,u=34,d=35,f=37,y=38,m=39,x=42,C=44,k=45,S=58,T=61,_=62,L=63,M=64,v=91,X=93,z=96,I=123,et=124,H=125,E={};E[0]="\\0",E[7]="\\a",E[8]="\\b",E[9]="\\t",E[10]="\\n",E[11]="\\v",E[12]="\\f",E[13]="\\r",E[27]="\\e",E[34]='\\"',E[92]="\\\\",E[133]="\\N",E[160]="\\_",E[8232]="\\L",E[8233]="\\P";const O=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],B=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function R(w,D){if(D===null)return{};const K={},j=Object.keys(D);for(let U=0,Q=j.length;U<Q;U+=1){let V=j[U],lt=String(D[V]);V.slice(0,2)==="!!"&&(V="tag:yaml.org,2002:"+V.slice(2));const ot=w.compiledTypeMap.fallback[V];ot&&s.call(ot.styleAliases,lt)&&(lt=ot.styleAliases[lt]),K[V]=lt}return K}g(R,"compileStyleMap");function $(w){let D,K;const j=w.toString(16).toUpperCase();if(w<=255)D="x",K=2;else if(w<=65535)D="u",K=4;else if(w<=4294967295)D="U",K=8;else throw new t("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+D+e.repeat("0",K-j.length)+j}g($,"encodeHex");const J=1,Z=2;function dt(w){this.schema=w.schema||r,this.indent=Math.max(1,w.indent||2),this.noArrayIndent=w.noArrayIndent||!1,this.skipInvalid=w.skipInvalid||!1,this.flowLevel=e.isNothing(w.flowLevel)?-1:w.flowLevel,this.styleMap=R(this.schema,w.styles||null),this.sortKeys=w.sortKeys||!1,this.lineWidth=w.lineWidth||80,this.noRefs=w.noRefs||!1,this.noCompatMode=w.noCompatMode||!1,this.condenseFlow=w.condenseFlow||!1,this.quotingType=w.quotingType==='"'?Z:J,this.forceQuotes=w.forceQuotes||!1,this.replacer=typeof w.replacer=="function"?w.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}g(dt,"State");function Ct(w,D){const K=e.repeat(" ",D);let j=0,U="";const Q=w.length;for(;j<Q;){let V;const lt=w.indexOf(`
284
+ `,j);lt===-1?(V=w.slice(j),j=Q):(V=w.slice(j,lt+1),j=lt+1),V.length&&V!==`
285
+ `&&(U+=K),U+=V}return U}g(Ct,"indentString");function xt(w,D){return`
286
+ `+e.repeat(" ",w.indent*D)}g(xt,"generateNextLine");function St(w,D){for(let K=0,j=w.implicitTypes.length;K<j;K+=1)if(w.implicitTypes[K].resolve(D))return!0;return!1}g(St,"testImplicitResolving");function wt(w){return w===c||w===a}g(wt,"isWhitespace");function ht(w){return w>=32&&w<=126||w>=161&&w<=55295&&w!==8232&&w!==8233||w>=57344&&w<=65533&&w!==o||w>=65536&&w<=1114111}g(ht,"isPrintable");function pt(w){return ht(w)&&w!==o&&w!==l&&w!==n}g(pt,"isNsCharOrWhitespace");function vt(w,D,K){const j=pt(w),U=j&&!wt(w);return(K?j:j&&w!==C&&w!==v&&w!==X&&w!==I&&w!==H)&&w!==d&&!(D===S&&!U)||pt(D)&&!wt(D)&&w===d||D===S&&U}g(vt,"isPlainSafe");function kt(w){return ht(w)&&w!==o&&!wt(w)&&w!==k&&w!==L&&w!==S&&w!==C&&w!==v&&w!==X&&w!==I&&w!==H&&w!==d&&w!==y&&w!==x&&w!==h&&w!==et&&w!==T&&w!==_&&w!==m&&w!==u&&w!==f&&w!==M&&w!==z}g(kt,"isPlainSafeFirst");function Et(w){return!wt(w)&&w!==S}g(Et,"isPlainSafeLast");function Ot(w,D){const K=w.charCodeAt(D);let j;return K>=55296&&K<=56319&&D+1<w.length&&(j=w.charCodeAt(D+1),j>=56320&&j<=57343)?(K-55296)*1024+j-56320+65536:K}g(Ot,"codePointAt");function Jt(w){return/^\n* /.test(w)}g(Jt,"needIndentIndicator");const ue=1,ke=2,ri=3,ii=4,we=5;function Br(w,D,K,j,U,Q,V,lt){let ot,ft=0,gt=null,Lt=!1,Dt=!1;const Ol=j!==-1;let li=-1,hi=kt(Ot(w,0))&&Et(Ot(w,w.length-1));if(D||V)for(ot=0;ot<w.length;ft>=65536?ot+=2:ot++){if(ft=Ot(w,ot),!ht(ft))return we;hi=hi&&vt(ft,gt,lt),gt=ft}else{for(ot=0;ot<w.length;ft>=65536?ot+=2:ot++){if(ft=Ot(w,ot),ft===n)Lt=!0,Ol&&(Dt=Dt||ot-li-1>j&&w[li+1]!==" ",li=ot);else if(!ht(ft))return we;hi=hi&&vt(ft,gt,lt),gt=ft}Dt=Dt||Ol&&ot-li-1>j&&w[li+1]!==" "}return!Lt&&!Dt?hi&&!V&&!U(w)?ue:Q===Z?we:ke:K>9&&Jt(w)?we:V?Q===Z?we:ke:Dt?ii:ri}g(Br,"chooseScalarStyle");function si(w,D,K,j,U){w.dump=(function(){if(D.length===0)return w.quotingType===Z?'""':"''";if(!w.noCompatMode&&(O.indexOf(D)!==-1||B.test(D)))return w.quotingType===Z?'"'+D+'"':"'"+D+"'";const Q=w.indent*Math.max(1,K),V=w.lineWidth===-1?-1:Math.max(Math.min(w.lineWidth,40),w.lineWidth-Q),lt=j||w.flowLevel>-1&&K>=w.flowLevel;function ot(ft){return St(w,ft)}switch(g(ot,"testAmbiguity"),Br(D,lt,w.indent,V,ot,w.quotingType,w.forceQuotes&&!j,U)){case ue:return D;case ke:return"'"+D.replace(/'/g,"''")+"'";case ri:return"|"+vr(D,w.indent)+Lr(Ct(D,Q));case ii:return">"+vr(D,w.indent)+Lr(Ct(oi(D,V),Q));case we:return'"'+ai(D)+'"';default:throw new t("impossible error: invalid scalar style")}})()}g(si,"writeScalar");function vr(w,D){const K=Jt(w)?String(D):"",j=w[w.length-1]===`
287
+ `,Q=j&&(w[w.length-2]===`
288
+ `||w===`
289
+ `)?"+":j?"":"-";return K+Q+`
290
+ `}g(vr,"blockHeader");function Lr(w){return w[w.length-1]===`
291
+ `?w.slice(0,-1):w}g(Lr,"dropEndingNewline");function oi(w,D){const K=/(\n+)([^\n]*)/g;let j=(function(){let lt=w.indexOf(`
292
+ `);return lt=lt!==-1?lt:w.length,K.lastIndex=lt,de(w.slice(0,lt),D)})(),U=w[0]===`
293
+ `||w[0]===" ",Q,V;for(;V=K.exec(w);){const lt=V[1],ot=V[2];Q=ot[0]===" ",j+=lt+(!U&&!Q&&ot!==""?`
294
+ `:"")+de(ot,D),U=Q}return j}g(oi,"foldString");function de(w,D){if(w===""||w[0]===" ")return w;const K=/ [^ ]/g;let j,U=0,Q,V=0,lt=0,ot="";for(;j=K.exec(w);)lt=j.index,lt-U>D&&(Q=V>U?V:lt,ot+=`
295
+ `+w.slice(U,Q),U=Q+1),V=lt;return ot+=`
296
+ `,w.length-U>D&&V>U?ot+=w.slice(U,V)+`
297
+ `+w.slice(V+1):ot+=w.slice(U),ot.slice(1)}g(de,"foldLine");function ai(w){let D="",K=0;for(let j=0;j<w.length;K>=65536?j+=2:j++){K=Ot(w,j);const U=E[K];!U&&ht(K)?(D+=w[j],K>=65536&&(D+=w[j+1])):D+=U||$(K)}return D}g(ai,"escapeString");function Fr(w,D,K){let j="";const U=w.tag;for(let Q=0,V=K.length;Q<V;Q+=1){let lt=K[Q];w.replacer&&(lt=w.replacer.call(K,String(Q),lt)),(Y(w,D,lt,!1,!1)||typeof lt>"u"&&Y(w,D,null,!1,!1))&&(j!==""&&(j+=","+(w.condenseFlow?"":" ")),j+=w.dump)}w.tag=U,w.dump="["+j+"]"}g(Fr,"writeFlowSequence");function Mr(w,D,K,j){let U="";const Q=w.tag;for(let V=0,lt=K.length;V<lt;V+=1){let ot=K[V];w.replacer&&(ot=w.replacer.call(K,String(V),ot)),(Y(w,D+1,ot,!0,!0,!1,!0)||typeof ot>"u"&&Y(w,D+1,null,!0,!0,!1,!0))&&((!j||U!=="")&&(U+=xt(w,D)),w.dump&&n===w.dump.charCodeAt(0)?U+="-":U+="- ",U+=w.dump)}w.tag=Q,w.dump=U||"[]"}g(Mr,"writeBlockSequence");function ni(w,D,K){let j="";const U=w.tag,Q=Object.keys(K);for(let V=0,lt=Q.length;V<lt;V+=1){let ot="";j!==""&&(ot+=", "),w.condenseFlow&&(ot+='"');const ft=Q[V];let gt=K[ft];w.replacer&&(gt=w.replacer.call(K,ft,gt)),Y(w,D,ft,!1,!1)&&(w.dump.length>1024&&(ot+="? "),ot+=w.dump+(w.condenseFlow?'"':"")+":"+(w.condenseFlow?"":" "),Y(w,D,gt,!1,!1)&&(ot+=w.dump,j+=ot))}w.tag=U,w.dump="{"+j+"}"}g(ni,"writeFlowMapping");function p(w,D,K,j){let U="";const Q=w.tag,V=Object.keys(K);if(w.sortKeys===!0)V.sort();else if(typeof w.sortKeys=="function")V.sort(w.sortKeys);else if(w.sortKeys)throw new t("sortKeys must be a boolean or a function");for(let lt=0,ot=V.length;lt<ot;lt+=1){let ft="";(!j||U!=="")&&(ft+=xt(w,D));const gt=V[lt];let Lt=K[gt];if(w.replacer&&(Lt=w.replacer.call(K,gt,Lt)),!Y(w,D+1,gt,!0,!0,!0))continue;const Dt=w.tag!==null&&w.tag!=="?"||w.dump&&w.dump.length>1024;Dt&&(w.dump&&n===w.dump.charCodeAt(0)?ft+="?":ft+="? "),ft+=w.dump,Dt&&(ft+=xt(w,D)),Y(w,D+1,Lt,!0,Dt)&&(w.dump&&n===w.dump.charCodeAt(0)?ft+=":":ft+=": ",ft+=w.dump,U+=ft)}w.tag=Q,w.dump=U||"{}"}g(p,"writeBlockMapping");function A(w,D,K){const j=K?w.explicitTypes:w.implicitTypes;for(let U=0,Q=j.length;U<Q;U+=1){const V=j[U];if((V.instanceOf||V.predicate)&&(!V.instanceOf||typeof D=="object"&&D instanceof V.instanceOf)&&(!V.predicate||V.predicate(D))){if(K?V.multi&&V.representName?w.tag=V.representName(D):w.tag=V.tag:w.tag="?",V.represent){const lt=w.styleMap[V.tag]||V.defaultStyle;let ot;if(i.call(V.represent)==="[object Function]")ot=V.represent(D,lt);else if(s.call(V.represent,lt))ot=V.represent[lt](D,lt);else throw new t("!<"+V.tag+'> tag resolver accepts not "'+lt+'" style');w.dump=ot}return!0}}return!1}g(A,"detectType");function Y(w,D,K,j,U,Q,V){w.tag=null,w.dump=K,A(w,K,!1)||A(w,K,!0);const lt=i.call(w.dump),ot=j;j&&(j=w.flowLevel<0||w.flowLevel>D);const ft=lt==="[object Object]"||lt==="[object Array]";let gt,Lt;if(ft&&(gt=w.duplicates.indexOf(K),Lt=gt!==-1),(w.tag!==null&&w.tag!=="?"||Lt||w.indent!==2&&D>0)&&(U=!1),Lt&&w.usedDuplicates[gt])w.dump="*ref_"+gt;else{if(ft&&Lt&&!w.usedDuplicates[gt]&&(w.usedDuplicates[gt]=!0),lt==="[object Object]")j&&Object.keys(w.dump).length!==0?(p(w,D,w.dump,U),Lt&&(w.dump="&ref_"+gt+w.dump)):(ni(w,D,w.dump),Lt&&(w.dump="&ref_"+gt+" "+w.dump));else if(lt==="[object Array]")j&&w.dump.length!==0?(w.noArrayIndent&&!V&&D>0?Mr(w,D-1,w.dump,U):Mr(w,D,w.dump,U),Lt&&(w.dump="&ref_"+gt+w.dump)):(Fr(w,D,w.dump),Lt&&(w.dump="&ref_"+gt+" "+w.dump));else if(lt==="[object String]")w.tag!=="?"&&si(w,w.dump,D,Q,ot);else{if(lt==="[object Undefined]")return!1;if(w.skipInvalid)return!1;throw new t("unacceptable kind of an object to dump "+lt)}if(w.tag!==null&&w.tag!=="?"){let Dt=encodeURI(w.tag[0]==="!"?w.tag.slice(1):w.tag).replace(/!/g,"%21");w.tag[0]==="!"?Dt="!"+Dt:Dt.slice(0,18)==="tag:yaml.org,2002:"?Dt="!!"+Dt.slice(18):Dt="!<"+Dt+">",w.dump=Dt+" "+w.dump}}return!0}g(Y,"writeNode");function G(w,D){const K=[],j=[];W(w,K,j);const U=j.length;for(let Q=0;Q<U;Q+=1)D.duplicates.push(K[j[Q]]);D.usedDuplicates=new Array(U)}g(G,"getDuplicateReferences");function W(w,D,K){if(w!==null&&typeof w=="object"){const j=D.indexOf(w);if(j!==-1)K.indexOf(j)===-1&&K.push(j);else if(D.push(w),Array.isArray(w))for(let U=0,Q=w.length;U<Q;U+=1)W(w[U],D,K);else{const U=Object.keys(w);for(let Q=0,V=U.length;Q<V;Q+=1)W(w[U[Q]],D,K)}}}g(W,"inspectNode");function tt(w,D){D=D||{};const K=new dt(D);K.noRefs||G(w,K);let j=w;return K.replacer&&(j=K.replacer.call({"":j},"",j)),Y(K,0,j,!0,!0)?K.dump+`
298
+ `:""}return g(tt,"dump2"),ga.dump=tt,ga}g(Yp,"requireDumper");var iu;function jp(){if(iu)return Gt;iu=1;const e=Hp(),t=Yp();function r(i,s){return function(){throw new Error("Function yaml."+i+" is removed in js-yaml 4. Use yaml."+s+" instead, which is now safe by default.")}}return g(r,"renamed"),Gt.Type=Qt(),Gt.Schema=fl(),Gt.FAILSAFE_SCHEMA=ml(),Gt.JSON_SCHEMA=wl(),Gt.CORE_SCHEMA=Sl(),Gt.DEFAULT_SCHEMA=So(),Gt.load=e.load,Gt.loadAll=e.loadAll,Gt.dump=t.dump,Gt.YAMLException=ti(),Gt.types={binary:Bl(),float:kl(),map:yl(),null:xl(),pairs:Ll(),set:Fl(),timestamp:Tl(),bool:Cl(),int:bl(),merge:_l(),omap:vl(),seq:pl(),str:gl()},Gt.safeLoad=r("safeLoad","load"),Gt.safeLoadAll=r("safeLoadAll","loadAll"),Gt.safeDump=r("safeDump","dump"),Gt}g(jp,"requireJsYaml");var WB=jp(),zB=Wp(WB),{Type:sM,Schema:oM,FAILSAFE_SCHEMA:aM,JSON_SCHEMA:HB,CORE_SCHEMA:nM,DEFAULT_SCHEMA:lM,load:YB,loadAll:hM,dump:cM,YAMLException:uM,types:dM,safeLoad:fM,safeLoadAll:gM,safeDump:pM}=zB,jB={common:Xi,getConfig:Rt,insertCluster:Zg,insertEdge:Jg,insertEdgeLabel:tl,insertMarkers:rp,insertNode:Jn,interpolateToCurve:Mn,labelHelper:ct,log:P,positionEdgeLabel:Cw},Yi={},Up=g(e=>{for(const t of e)Yi[t.name]=t},"registerLayoutLoaders"),UB=g(()=>{Up([{name:"dagre",loader:g(async()=>await _t(()=>import("./dagre-3AP2YEHR-B40iBpXe.js"),[],import.meta.url),"loader")},{name:"swimlane",loader:g(async()=>await _t(()=>import("./swimlanes-XN3QIQJK-D7wXTch1.js"),[],import.meta.url),"loader")},{name:"cose-bilkent",loader:g(async()=>await _t(()=>import("./cose-bilkent-JH36ORCC-BJBTUpzs.js"),[],import.meta.url),"loader")}])},"registerDefaultLayoutLoaders");UB();var yM=g(async(e,t)=>{if(!(e.layoutAlgorithm in Yi))throw new Error(`Unknown layout algorithm: ${e.layoutAlgorithm}`);if(e.diagramId)for(const h of e.nodes){const u=h.domId||h.id;h.domId=`${e.diagramId}-${u}`}const r=Yi[e.layoutAlgorithm],i=await r.loader(),{theme:s,themeVariables:o}=e.config,{useGradient:a,gradientStart:n,gradientStop:l}=o,c=t.attr("id");if(t.append("defs").append("filter").attr("id",`${c}-drop-shadow`).attr("height","130%").attr("width","130%").append("feDropShadow").attr("dx","4").attr("dy","4").attr("stdDeviation",0).attr("flood-opacity","0.06").attr("flood-color",`${s?.includes("dark")?"#FFFFFF":"#000000"}`),t.append("defs").append("filter").attr("id",`${c}-drop-shadow-small`).attr("height","150%").attr("width","150%").append("feDropShadow").attr("dx","2").attr("dy","2").attr("stdDeviation",0).attr("flood-opacity","0.06").attr("flood-color",`${s?.includes("dark")?"#FFFFFF":"#000000"}`),a){const h=t.append("linearGradient").attr("id",t.attr("id")+"-gradient").attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");h.append("svg:stop").attr("offset","0%").attr("stop-color",n).attr("stop-opacity",1),h.append("svg:stop").attr("offset","100%").attr("stop-color",l).attr("stop-opacity",1)}return i.render(e,t,jB,{algorithm:r.algorithm})},"render"),mM=g((e="",{fallback:t="dagre"}={})=>{if(e in Yi)return e;if(t in Yi)return P.warn(`Layout algorithm ${e} is not registered. Using ${t} as fallback.`),t;throw new Error(`Both layout algorithms ${e} and ${t} are not registered.`)},"getRegisteredLayoutAlgorithm"),Ml="comm",Gp="rule",Xp="decl",GB="@media",XB="@import",VB="@supports",ZB="@namespace",Ja="@keyframes",Vp="@layer",KB="@scope",QB=Math.abs,Oi=String.fromCharCode;function Zp(e){return e.trim()}function tn(e,t,r){return e.replace(t,r)}function zr(e,t){return e.charCodeAt(t)|0}function Xr(e,t,r){return e.slice(t,r)}function _e(e){return e.length}function Kp(e){return e.length}function gs(e,t){return t.push(e),e}var To=1,Vr=1,Qp=0,he=0,Wt=0,ei="";function Al(e,t,r,i,s,o,a,n){return{value:e,root:t,parent:r,type:i,props:s,children:o,line:To,column:Vr,length:a,return:"",siblings:n}}function JB(){return Wt}function tv(){return Wt=he>0?zr(ei,--he):0,Vr--,Wt===10&&(Vr=1,To--),Wt}function me(){return Wt=he<Qp?zr(ei,he++):0,Vr++,Wt===10&&(Vr=1,To++),Wt}function Je(){return zr(ei,he)}function Bs(){return he}function _o(e,t){return Xr(ei,e,t)}function ji(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function ev(e){return To=Vr=1,Qp=_e(ei=e),he=0,[]}function rv(e){return ei="",e}function pa(e){return Zp(_o(he-1,en(e===91?e+2:e===40?e+1:e)))}function iv(e){for(;(Wt=Je())&&Wt<33;)me();return ji(e)>2||ji(Wt)>3?"":" "}function sv(e,t){for(;--t&&me()&&!(Wt<48||Wt>102||Wt>57&&Wt<65||Wt>70&&Wt<97););return _o(e,Bs()+(t<6&&Je()==32&&me()==32))}function en(e){for(;me();)switch(Wt){case e:return he;case 34:case 39:e!==34&&e!==39&&en(Wt);break;case 40:e===41&&en(e);break;case 92:me();break}return he}function ov(e,t){for(;me()&&e+Wt!==57;)if(e+Wt===84&&Je()===47)break;return"/*"+_o(t,he-1)+"*"+Oi(e===47?e:me())}function av(e){for(;!ji(Je());)me();return _o(e,he)}function nv(e){return rv(vs("",null,null,null,[""],e=ev(e),0,[0],e))}function vs(e,t,r,i,s,o,a,n,l){for(var c=0,h=0,u=a,d=0,f=0,y=0,m=1,x=1,C=1,k=0,S=0,T="",_=s,L=o,M=i,v=T;x;)switch(y=S,S=me()){case 40:y!=108&&zr(v,u-1)==58?(k++,v+="("):v+=pa(S);break;case 41:k--,v+=")";break;case 34:case 39:case 91:v+=pa(S);break;case 9:case 10:case 13:case 32:if(k>0){v+=Oi(S);break}v+=iv(y);break;case 92:v+=sv(Bs()-1,7);continue;case 47:switch(Je()){case 42:case 47:gs(lv(ov(me(),Bs()),t,r,l),l),(ji(y||1)==5||ji(Je()||1)==5)&&_e(v)&&Xr(v,-1,void 0)!==" "&&(v+=" ");break;default:v+="/"}break;case 123*m:n[c++]=_e(v)*C;case 125*m:case 59:case 0:if(k>0&&S){v+=Oi(S);break}switch(S){case 0:case 125:x=0;case 59+h:C==-1&&(v=tn(v,/\f/g,"")),f>0&&(_e(v)-u||m===0)&&gs(f>32?ou(v+";",i,r,u-1,l):ou(tn(v," ","")+";",i,r,u-2,l),l);break;case 59:v+=";";default:if(gs(M=su(v,t,r,c,h,s,n,T,_=[],L=[],u,o),o),S===123)if(h===0)vs(v,t,M,M,_,o,u,n,L);else{switch(d){case 99:if(zr(v,3)===110)break;case 108:if(zr(v,2)===97)break;default:h=0;case 100:case 109:case 115:}h?vs(e,M,M,i&&gs(su(e,M,M,0,0,s,n,T,s,_=[],u,L),L),s,L,u,n,i?_:L):vs(v,M,M,M,[""],L,0,n,L)}}c=h=f=0,m=C=1,T=v="",u=a;break;case 58:u=1+_e(v),f=y;default:if(m<1){if(S==123)--m;else if(S==125&&m++==0&&tv()==125)continue}switch(v+=Oi(S),S*m){case 38:C=h>0?1:(v+="\f",-1);break;case 44:if(k>0)break;n[c++]=(_e(v)-1)*C,C=1;break;case 64:Je()===45&&(v+=pa(me())),d=Je(),h=u=_e(T=v+=av(Bs())),S++;break;case 45:y===45&&_e(v)==2&&(m=0)}}return o}function su(e,t,r,i,s,o,a,n,l,c,h,u){for(var d=s-1,f=s===0?o:[""],y=Kp(f),m=0,x=0,C=0;m<i;++m)for(var k=0,S=Xr(e,d+1,d=QB(x=a[m])),T=e;k<y;++k)(T=Zp(x>0?f[k]+" "+S:tn(S,/&\f/g,f[k])))&&(l[C++]=T);return Al(e,t,r,s===0?Gp:n,l,c,h,u)}function lv(e,t,r,i){return Al(e,t,r,Ml,Oi(JB()),Xr(e,2,-2),0,i)}function ou(e,t,r,i,s){return Al(e,t,r,Xp,Xr(e,0,i),Xr(e,i+1,-1),i,s)}function rn(e,t){for(var r="",i=0;i<e.length;i++)r+=t(e[i],i,e,t)||"";return r}function hv(e,t,r,i){switch(e.type){case Vp:if(e.children.length)break;case XB:case ZB:case Xp:return e.return=e.return||e.value;case Ml:return"";case Ja:return e.return=e.value+"{"+rn(e.children,i)+"}";case Gp:if(!_e(e.value=e.props.join(",")))return""}return _e(r=rn(e.children,i))?e.return=e.value+"{"+r+"}":""}function cv(e){var t=Kp(e);return function(r,i,s,o){for(var a="",n=0;n<t;n++)a+=e[n](r,i,s,o)||"";return a}}var Jp="c4",uv=g(e=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(e),"detector"),dv=g(async()=>{const{diagram:e}=await _t(async()=>{const{diagram:t}=await import("./c4Diagram-UCG6FXSJ-CAoiRqwq.js");return{diagram:t}},[],import.meta.url);return{id:Jp,diagram:e}},"loader"),fv={id:Jp,detector:uv,loader:dv},gv=fv,ty="flowchart",pv=g((e,t)=>t?.flowchart?.defaultRenderer==="dagre-wrapper"||t?.flowchart?.defaultRenderer==="elk"?!1:/^\s*graph/.test(e),"detector"),yv=g(async()=>{const{diagram:e}=await _t(async()=>{const{diagram:t}=await import("./flowDiagram-A5DVABFB-BXMY48By.js");return{diagram:t}},[],import.meta.url);return{id:ty,diagram:e}},"loader"),mv={id:ty,detector:pv,loader:yv},xv=mv,ey="flowchart-v2",Cv=g((e,t)=>t?.flowchart?.defaultRenderer==="dagre-d3"?!1:(t?.flowchart?.defaultRenderer==="elk"&&(t.layout="elk"),/^\s*graph/.test(e)&&t?.flowchart?.defaultRenderer==="dagre-wrapper"?!0:/^\s*flowchart/.test(e)),"detector"),bv=g(async()=>{const{diagram:e}=await _t(async()=>{const{diagram:t}=await import("./flowDiagram-A5DVABFB-BXMY48By.js");return{diagram:t}},[],import.meta.url);return{id:ey,diagram:e}},"loader"),kv={id:ey,detector:Cv,loader:bv},wv=kv,ry="swimlane",Sv=g(e=>/^\s*swimlane-beta\b/.test(e),"detector"),Tv=g(async()=>{const{diagram:e}=await _t(async()=>{const{diagram:t}=await import("./swimlanesDiagram-VK2B7HYN-BmYbYnek.js");return{diagram:t}},[],import.meta.url);return{id:ry,diagram:e}},"loader"),_v={id:ry,detector:Sv,loader:Tv},Bv=_v,iy="er",vv=g(e=>/^\s*erDiagram/.test(e),"detector"),Lv=g(async()=>{const{diagram:e}=await _t(async()=>{const{diagram:t}=await import("./erDiagram-SSCWMZ5O-6AVzexk8.js");return{diagram:t}},[],import.meta.url);return{id:iy,diagram:e}},"loader"),Fv={id:iy,detector:vv,loader:Lv},Mv=Fv,sy="gitGraph",Av=g(e=>/^\s*gitGraph/.test(e),"detector"),Ev=g(async()=>{const{diagram:e}=await _t(async()=>{const{diagram:t}=await import("./gitGraphDiagram-WWUBYQGX-BCHc9w_M.js");return{diagram:t}},[],import.meta.url);return{id:sy,diagram:e}},"loader"),$v={id:sy,detector:Av,loader:Ev},Ov=$v,oy="gantt",Dv=g(e=>/^\s*gantt/.test(e),"detector"),Pv=g(async()=>{const{diagram:e}=await _t(async()=>{const{diagram:t}=await import("./ganttDiagram-EL5Y4UJY-CV7SNBW7.js");return{diagram:t}},[],import.meta.url);return{id:oy,diagram:e}},"loader"),Iv={id:oy,detector:Dv,loader:Pv},Rv=Iv,ay="info",qv=g(e=>/^\s*info/.test(e),"detector"),Nv=g(async()=>{const{diagram:e}=await _t(async()=>{const{diagram:t}=await import("./infoDiagram-RXCK75RN-DkViDaAy.js");return{diagram:t}},[],import.meta.url);return{id:ay,diagram:e}},"loader"),Wv={id:ay,detector:qv,loader:Nv},ny="pie",zv=g(e=>/^\s*pie/.test(e),"detector"),Hv=g(async()=>{const{diagram:e}=await _t(async()=>{const{diagram:t}=await import("./pieDiagram-E7YTZNPT-Hm0WPgzn.js");return{diagram:t}},[],import.meta.url);return{id:ny,diagram:e}},"loader"),Yv={id:ny,detector:zv,loader:Hv},ly="quadrantChart",jv=g(e=>/^\s*quadrantChart/.test(e),"detector"),Uv=g(async()=>{const{diagram:e}=await _t(async()=>{const{diagram:t}=await import("./quadrantDiagram-AXDQQJYC-BZTp7tGN.js");return{diagram:t}},[],import.meta.url);return{id:ly,diagram:e}},"loader"),Gv={id:ly,detector:jv,loader:Uv},Xv=Gv,hy="xychart",Vv=g(e=>/^\s*xychart(-beta)?/.test(e),"detector"),Zv=g(async()=>{const{diagram:e}=await _t(async()=>{const{diagram:t}=await import("./xychartDiagram-S5SC5T6Z-Bp0MWYj-.js");return{diagram:t}},[],import.meta.url);return{id:hy,diagram:e}},"loader"),Kv={id:hy,detector:Vv,loader:Zv},Qv=Kv,cy="requirement",Jv=g(e=>/^\s*requirement(Diagram)?/.test(e),"detector"),tL=g(async()=>{const{diagram:e}=await _t(async()=>{const{diagram:t}=await import("./requirementDiagram-EFPCY7ZU-CvFiO4QY.js");return{diagram:t}},[],import.meta.url);return{id:cy,diagram:e}},"loader"),eL={id:cy,detector:Jv,loader:tL},rL=eL,uy="sequence",iL=g(e=>/^\s*sequenceDiagram/.test(e),"detector"),sL=g(async()=>{const{diagram:e}=await _t(async()=>{const{diagram:t}=await import("./sequenceDiagram-WJ2MYXX4-DxoNyZwj.js");return{diagram:t}},[],import.meta.url);return{id:uy,diagram:e}},"loader"),oL={id:uy,detector:iL,loader:sL},aL=oL,dy="class",nL=g((e,t)=>t?.class?.defaultRenderer==="dagre-wrapper"?!1:/^\s*classDiagram/.test(e),"detector"),lL=g(async()=>{const{diagram:e}=await _t(async()=>{const{diagram:t}=await import("./classDiagram-DTDB5LWJ-RWAJ513G.js");return{diagram:t}},[],import.meta.url);return{id:dy,diagram:e}},"loader"),hL={id:dy,detector:nL,loader:lL},cL=hL,fy="classDiagram",uL=g((e,t)=>/^\s*classDiagram/.test(e)&&t?.class?.defaultRenderer==="dagre-wrapper"?!0:/^\s*classDiagram-v2/.test(e),"detector"),dL=g(async()=>{const{diagram:e}=await _t(async()=>{const{diagram:t}=await import("./classDiagram-v2-JRS7N3AN-RWAJ513G.js");return{diagram:t}},[],import.meta.url);return{id:fy,diagram:e}},"loader"),fL={id:fy,detector:uL,loader:dL},gL=fL,gy="state",pL=g((e,t)=>t?.state?.defaultRenderer==="dagre-wrapper"?!1:/^\s*stateDiagram/.test(e),"detector"),yL=g(async()=>{const{diagram:e}=await _t(async()=>{const{diagram:t}=await import("./stateDiagram-HBIQ2CUA-pcNSv_wf.js");return{diagram:t}},[],import.meta.url);return{id:gy,diagram:e}},"loader"),mL={id:gy,detector:pL,loader:yL},xL=mL,py="stateDiagram",CL=g((e,t)=>!!(/^\s*stateDiagram-v2/.test(e)||/^\s*stateDiagram/.test(e)&&t?.state?.defaultRenderer==="dagre-wrapper"),"detector"),bL=g(async()=>{const{diagram:e}=await _t(async()=>{const{diagram:t}=await import("./stateDiagram-v2-4QOOHH4V-BdB1HxLL.js");return{diagram:t}},[],import.meta.url);return{id:py,diagram:e}},"loader"),kL={id:py,detector:CL,loader:bL},wL=kL,yy="journey",SL=g(e=>/^\s*journey/.test(e),"detector"),TL=g(async()=>{const{diagram:e}=await _t(async()=>{const{diagram:t}=await import("./journeyDiagram-EYS64GPL-C6PuEAZM.js");return{diagram:t}},[],import.meta.url);return{id:yy,diagram:e}},"loader"),_L={id:yy,detector:SL,loader:TL},BL=_L,vL=g((e,t,r)=>{P.debug(`rendering svg for syntax error
299
+ `);const i=Xb(t),s=i.append("g");i.attr("viewBox","0 0 2412 512"),Lu(i,100,512,!0),s.append("path").attr("class","error-icon").attr("d","m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"),s.append("path").attr("class","error-icon").attr("d","m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"),s.append("path").attr("class","error-icon").attr("d","m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"),s.append("path").attr("class","error-icon").attr("d","m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z"),s.append("path").attr("class","error-icon").attr("d","m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"),s.append("path").attr("class","error-icon").attr("d","m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"),s.append("text").attr("class","error-text").attr("x",1440).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in text"),s.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text(`mermaid version ${r}`)},"draw"),my={draw:vL},LL=my,FL={db:{},renderer:my,parser:{parse:g(()=>{},"parse")}},ML=FL,xy="flowchart-elk",AL=g((e,t={})=>/^\s*flowchart-elk/.test(e)||/^\s*(flowchart|graph)/.test(e)&&t?.flowchart?.defaultRenderer==="elk"?(t.layout="elk",!0):!1,"detector"),EL=g(async()=>{const{diagram:e}=await _t(async()=>{const{diagram:t}=await import("./flowDiagram-A5DVABFB-BXMY48By.js");return{diagram:t}},[],import.meta.url);return{id:xy,diagram:e}},"loader"),$L={id:xy,detector:AL,loader:EL},OL=$L,Cy="timeline",DL=g(e=>/^\s*timeline/.test(e),"detector"),PL=g(async()=>{const{diagram:e}=await _t(async()=>{const{diagram:t}=await import("./timeline-definition-24CTP7MA-BrPc1tMu.js");return{diagram:t}},[],import.meta.url);return{id:Cy,diagram:e}},"loader"),IL={id:Cy,detector:DL,loader:PL},RL=IL,by="mindmap",qL=g(e=>/^\s*mindmap/.test(e),"detector"),NL=g(async()=>{const{diagram:e}=await _t(async()=>{const{diagram:t}=await import("./mindmap-definition-FBJOCRG2-YJlqhJDe.js");return{diagram:t}},[],import.meta.url);return{id:by,diagram:e}},"loader"),WL={id:by,detector:qL,loader:NL},zL=WL,ky="kanban",HL=g(e=>/^\s*kanban/.test(e),"detector"),YL=g(async()=>{const{diagram:e}=await _t(async()=>{const{diagram:t}=await import("./kanban-definition-3QL26DDD-DOTf6YFB.js");return{diagram:t}},[],import.meta.url);return{id:ky,diagram:e}},"loader"),jL={id:ky,detector:HL,loader:YL},UL=jL,wy="sankey",GL=g(e=>/^\s*sankey(-beta)?/.test(e),"detector"),XL=g(async()=>{const{diagram:e}=await _t(async()=>{const{diagram:t}=await import("./sankeyDiagram-P5KCCOFB-Da1DpNmD.js");return{diagram:t}},[],import.meta.url);return{id:wy,diagram:e}},"loader"),VL={id:wy,detector:GL,loader:XL},ZL=VL,Sy="packet",KL=g(e=>/^\s*packet(-beta)?/.test(e),"detector"),QL=g(async()=>{const{diagram:e}=await _t(async()=>{const{diagram:t}=await import("./diagram-Z3DM3KII-DguGhB-N.js");return{diagram:t}},[],import.meta.url);return{id:Sy,diagram:e}},"loader"),JL={id:Sy,detector:KL,loader:QL},Ty="radar",tF=g(e=>/^\s*radar-beta/.test(e),"detector"),eF=g(async()=>{const{diagram:e}=await _t(async()=>{const{diagram:t}=await import("./diagram-UQ7AKVKN-DLWlOhvf.js");return{diagram:t}},[],import.meta.url);return{id:Ty,diagram:e}},"loader"),rF={id:Ty,detector:tF,loader:eF},_y="block",iF=g(e=>/^\s*block(-beta)?/.test(e),"detector"),sF=g(async()=>{const{diagram:e}=await _t(async()=>{const{diagram:t}=await import("./blockDiagram-NRAW4CY4-BREhUg_n.js");return{diagram:t}},[],import.meta.url);return{id:_y,diagram:e}},"loader"),oF={id:_y,detector:iF,loader:sF},aF=oF,By="treeView",nF=g(e=>/^\s*treeView-beta/.test(e),"detector"),lF=g(async()=>{const{diagram:e}=await _t(async()=>{const{diagram:t}=await import("./diagram-S7CK7UJ4-B2xIXmUw.js");return{diagram:t}},[],import.meta.url);return{id:By,diagram:e}},"loader"),hF={id:By,detector:nF,loader:lF},cF=hF,vy="architecture",uF=g(e=>/^\s*architecture/.test(e),"detector"),dF=g(async()=>{const{diagram:e}=await _t(async()=>{const{diagram:t}=await import("./architectureDiagram-5GKGNRK7-Dfo6x88c.js");return{diagram:t}},[],import.meta.url);return{id:vy,diagram:e}},"loader"),fF={id:vy,detector:uF,loader:dF},gF=fF,Ly="eventmodeling",pF=g(e=>/^\s*eventmodeling/.test(e),"detector"),yF=g(async()=>{const{diagram:e}=await _t(async()=>{const{diagram:t}=await import("./diagram-VSXAHHWV-CtxWAwpJ.js");return{diagram:t}},[],import.meta.url);return{id:Ly,diagram:e}},"loader"),mF={id:Ly,detector:pF,loader:yF},xF=mF,Fy="ishikawa",CF=g(e=>/^\s*ishikawa(-beta)?\b/i.test(e),"detector"),bF=g(async()=>{const{diagram:e}=await _t(async()=>{const{diagram:t}=await import("./ishikawaDiagram-5VMMS53U-DxEqVVmG.js");return{diagram:t}},[],import.meta.url);return{id:Fy,diagram:e}},"loader"),kF={id:Fy,detector:CF,loader:bF},My="venn",wF=g(e=>/^\s*venn-beta/.test(e),"detector"),SF=g(async()=>{const{diagram:e}=await _t(async()=>{const{diagram:t}=await import("./vennDiagram-4TSXK5OY-CMfntOoF.js");return{diagram:t}},[],import.meta.url);return{id:My,diagram:e}},"loader"),TF={id:My,detector:wF,loader:SF},_F=TF,Ay="treemap",BF=g(e=>/^\s*treemap/.test(e),"detector"),vF=g(async()=>{const{diagram:e}=await _t(async()=>{const{diagram:t}=await import("./diagram-VX7I27RA-C0oOsr2R.js");return{diagram:t}},[],import.meta.url);return{id:Ay,diagram:e}},"loader"),LF={id:Ay,detector:BF,loader:vF},Ey="wardley",FF=g(e=>/^\s*wardley-beta/i.test(e),"detector"),MF=g(async()=>{const{diagram:e}=await _t(async()=>{const{diagram:t}=await import("./wardleyDiagram-VM6X3IG4-C9foyd_h.js");return{diagram:t}},[],import.meta.url);return{id:Ey,diagram:e}},"loader"),AF={id:Ey,detector:FF,loader:MF},EF=AF,$y="cynefin",$F=g(e=>/^\s*cynefin-beta(?:[\s:]|$)/.test(e),"detector"),OF=g(async()=>{const{diagram:e}=await _t(async()=>{const{diagram:t}=await import("./cynefinDiagram-5FMLGOSQ-C_H0NP3V.js");return{diagram:t}},[],import.meta.url);return{id:$y,diagram:e}},"loader"),DF={id:$y,detector:$F,loader:OF},Oy="railroad",PF=g(e=>/^\s*railroad-beta/i.test(e),"detector"),IF=g(async()=>{const{diagram:e}=await _t(async()=>{const{diagram:t}=await import("./railroadDiagram-O6MQD6OU-Cslq_ZZh.js");return{diagram:t}},[],import.meta.url);return{id:Oy,diagram:e}},"loader"),RF={id:Oy,detector:PF,loader:IF},Dy="railroadEbnf",qF=g(e=>/^\s*railroad-ebnf-beta/i.test(e),"detector"),NF=g(async()=>{const{diagram:e}=await _t(async()=>{const{diagram:t}=await import("./ebnfDiagram-PWID7BFC-CM2jytSc.js");return{diagram:t}},[],import.meta.url);return{id:Dy,diagram:e}},"loader"),WF={id:Dy,detector:qF,loader:NF},Py="railroadAbnf",zF=g(e=>/^\s*railroad-abnf-beta/i.test(e),"detector"),HF=g(async()=>{const{diagram:e}=await _t(async()=>{const{diagram:t}=await import("./abnfDiagram-VCTEODGH-Ekbmv6AY.js");return{diagram:t}},[],import.meta.url);return{id:Py,diagram:e}},"loader"),YF={id:Py,detector:zF,loader:HF},Iy="railroadPeg",jF=g(e=>/^\s*railroad-peg-beta/i.test(e),"detector"),UF=g(async()=>{const{diagram:e}=await _t(async()=>{const{diagram:t}=await import("./pegDiagram-XKGWAZYB-C4MT3RNK.js");return{diagram:t}},[],import.meta.url);return{id:Iy,diagram:e}},"loader"),GF={id:Iy,detector:jF,loader:UF},au=!1,Bo=g(()=>{au||(au=!0,Es("error",ML,e=>e.toLowerCase().trim()==="error"),Es("---",{db:{clear:g(()=>{},"clear")},styles:{},renderer:{draw:g(()=>{},"draw")},parser:{parse:g(()=>{throw new Error("Diagrams beginning with --- are not valid. If you were trying to use a YAML front-matter, please ensure that you've correctly opened and closed the YAML front-matter with un-indented `---` blocks")},"parse")},init:g(()=>null,"init")},e=>e.toLowerCase().trimStart().startsWith("---")),xa(OL,zL,gF),xa(gv,UL,gL,cL,Mv,Rv,Wv,Yv,rL,aL,Bv,wv,xv,RL,Ov,wL,xL,BL,Xv,ZL,JL,Qv,aF,xF,cF,rF,kF,LF,RF,WF,YF,GF,_F,EF,DF))},"addDiagrams"),XF=g(async()=>{P.debug("Loading registered diagrams");const t=(await Promise.allSettled(Object.entries(pr).map(async([r,{detector:i,loader:s}])=>{if(s)try{wa(r)}catch{try{const{diagram:o,id:a}=await s();Es(a,o,i)}catch(o){throw P.error(`Failed to load external diagram with key ${r}. Removing from detectors.`),delete pr[r],o}}}))).filter(r=>r.status==="rejected");if(t.length>0){P.error(`Failed to load ${t.length} external diagrams`);for(const r of t)P.error(r);throw new Error(`Failed to load ${t.length} external diagrams`)}},"loadRegisteredDiagrams"),VF="graphics-document document";function Ry(e,t){e.attr("role",VF),t!==""&&e.attr("aria-roledescription",t)}g(Ry,"setA11yDiagramInfo");function qy(e,t,r,i){if(e.insert!==void 0){if(r){const s=`chart-desc-${i}`;e.attr("aria-describedby",s),e.insert("desc",":first-child").attr("id",s).text(r)}if(t){const s=`chart-title-${i}`;e.attr("aria-labelledby",s),e.insert("title",":first-child").attr("id",s).text(t)}}}g(qy,"addSVGa11yTitleDescription");var sn=class Ny{constructor(t,r,i,s,o){this.type=t,this.text=r,this.db=i,this.parser=s,this.renderer=o}static{g(this,"Diagram")}static async fromText(t,r={}){const i=Rt(),s=ln(t,i);t=yk(t)+`
300
+ `;try{wa(s)}catch{const c=zm(s);if(!c)throw new wu(`Diagram ${s} not found.`);const{id:h,diagram:u}=await c();Es(h,u)}const{db:o,parser:a,renderer:n,init:l}=wa(s);return a.parser&&(a.parser.yy=o),o.clear?.(),l?.(i),r.title&&o.setDiagramTitle?.(r.title),await a.parse(t),new Ny(s,t,o,a,n)}async render(t,r){await this.renderer.draw(this.text,t,r,this)}getParser(){return this.parser}getType(){return this.type}},nu=[],ZF=g(()=>{nu.forEach(e=>{e()}),nu=[]},"attachFunctions"),KF=g(e=>e.replace(/^\s*%%(?!{)[^\n]+\n?/gm,"").trimStart(),"cleanupComments");function Wy(e){const t=e.match(ku);if(!t)return{text:e,metadata:{}};const r=t[1],i=r?t[2].split(`
301
+ `).map(a=>a.startsWith(r)?a.slice(r.length):a).join(`
302
+ `):t[2];let s=YB(i,{schema:HB})??{};s=typeof s=="object"&&!Array.isArray(s)?s:{};const o={};return s.displayMode&&(o.displayMode=s.displayMode.toString()),s.title&&(o.title=s.title.toString()),s.config&&(o.config=s.config),{text:e.slice(t[0].length),metadata:o}}g(Wy,"extractFrontMatter");var QF=g(e=>e.replace(/\r\n?/g,`
303
+ `).replace(/<(\w+)([^>]*)>/g,(t,r,i)=>"<"+r+i.replace(/="([^"]*)"/g,"='$1'")+">"),"cleanupText"),JF=g(e=>{const{text:t,metadata:r}=Wy(e),{displayMode:i,title:s,config:o={}}=r;return i&&(o.gantt||(o.gantt={}),o.gantt.displayMode=i),{title:s,config:o,text:t}},"processFrontmatter"),t5=g(e=>{const t=Zt.detectInit(e)??{},r=Zt.detectDirective(e,"wrap");return Array.isArray(r)?t.wrap=r.some(({type:i})=>i==="wrap"):r?.type==="wrap"&&(t.wrap=!0),{text:ik(e),directive:t}},"processDirectives");function El(e){const t=QF(e),r=JF(t),i=t5(r.text),s=Dn(r.config,i.directive);return e=KF(i.text),{code:e,title:r.title,config:s}}g(El,"preprocessDiagram");function zy(e){const t=new TextEncoder().encode(e),r=Array.from(t,i=>String.fromCodePoint(i)).join("");return btoa(r)}g(zy,"toBase64");var e5=5e4,r5="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa",i5="sandbox",s5="loose",o5="http://www.w3.org/2000/svg",a5="http://www.w3.org/1999/xlink",n5="http://www.w3.org/1999/xhtml",l5="100%",h5="100%",c5="border:0;margin:0;",u5="margin:0",d5="allow-top-navigation-by-user-activation allow-popups",f5='The "iframe" tag is not supported by your browser.',g5=["foreignobject"],p5=["dominant-baseline"];function $l(e){const t=El(e);return Ms(),Rm(t.config??{}),t}g($l,"processAndSetConfigs");async function Hy(e,t){Bo();try{const{code:r,config:i}=$l(e);return{diagramType:(await jy(r)).type,config:i}}catch(r){if(t?.suppressErrors)return!1;throw r}}g(Hy,"parse");var lu=g((e,t,r=[])=>{const i=yu(`{ ${r.join(" !important; ")} !important; }`);return`.${e} ${t} ${i}`},"cssImportantStyles"),y5=g((e,t=new Map)=>{const r=new CSSStyleSheet;if(e.fontFamily!==void 0&&r.insertRule(`:root { --mermaid-font-family: ${e.fontFamily}}`,r.cssRules.length),e.altFontFamily!==void 0&&r.insertRule(`:root { --mermaid-alt-font-family: ${e.altFontFamily}}`,r.cssRules.length),t instanceof Map){const n=Kt(e)?["> *","span"]:["rect","polygon","ellipse","circle","path"];t.forEach(l=>{mh(l.styles)||n.forEach(c=>{r.insertRule(lu(l.id,c,l.styles),r.cssRules.length)}),mh(l.textStyles)||r.insertRule(lu(l.id,"tspan",(l?.textStyles||[]).map(c=>c.replace("color","fill"))),r.cssRules.length)})}let i="";if(e.themeCSS!==void 0)if(typeof r.replaceSync=="function"){const s=new CSSStyleSheet;s.replaceSync(e.themeCSS),i=ka(s)+`
304
+ `}else i+=`${e.themeCSS}
305
+ `;return i+ka(r)},"createCssStyles"),m5=g((e,t)=>rn(nv(`${e}{${t}}`),cv([g(function(i,s,o,a){if(i.type==="rule"&&Array.isArray(i.props)){if(i.parent&&i.parent.type===Ja)return;i.props=i.props.map(n=>n===e&&Array.isArray(i.children)&&i.children.every(c=>c.type!=="decl"?!1:new Set(["font-family","font-size","fill"]).has(c.props))||(n.startsWith(`${e} `)||n.startsWith(`${e}>`))&&!n.startsWith(`${e} ||`)?n:`${e} ${n}`)}else i.type.startsWith("@")&&([...[GB,VB,Vp,KB,"@container","@starting-style"],Ja].includes(i.type)||(P.warn(`Removing unsupported at-rule ${i.type} from CSS`),i.type=Ml))},"addNamespace"),hv])),"compileCSS"),x5=g((e,t,r,i)=>{const s=y5(e,r),o=a0(t,s,{...e.themeVariables,theme:e.theme,look:e.look},i);return m5(i,o)},"createUserStyles"),C5=g((e="",t,r)=>{let i=e;return!r&&!t&&(i=i.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g,'marker-end="url(#')),i=rr(i),i=i.replace(/<br>/g,"<br/>"),i},"cleanUpSvgCode"),b5=g((e="",t)=>{const r=t?.viewBox?.baseVal?.height?t.viewBox.baseVal.height+"px":h5,i=zy(`<body style="${u5}">${e}</body>`);return`<iframe style="width:${l5};height:${r};${c5}" src="data:text/html;charset=UTF-8;base64,${i}" sandbox="${d5}">
306
+ ${f5}
307
+ </iframe>`},"putIntoIFrame"),hu=g((e,t,r,i,s)=>{const o=e.append("div");o.attr("id",r),i&&o.attr("style",i);const a=o.append("svg").attr("id",t).attr("width","100%").attr("xmlns",o5);return s&&a.attr("xmlns:xlink",s),a.append("g"),e},"appendDivSvgG");function on(e,t){return e.append("iframe").attr("id",t).attr("style","width: 100%; height: 100%;").attr("sandbox","")}g(on,"sandboxedIframe");var k5=g((e,t,r,i)=>{e.getElementById(t)?.remove(),e.getElementById(r)?.remove(),e.getElementById(i)?.remove()},"removeExistingElements"),w5=g(async function(e,t,r){Bo();const i=$l(t);t=i.code;const s=Rt();P.debug(s),t.length>(s?.maxTextSize??e5)&&(t=r5);const o=`#${e}`,a="i"+e,n="#"+a,l="d"+e,c="#"+l,h=g(()=>{const E=Tt(d?n:c).node();E&&"remove"in E&&E.remove()},"removeTempElements");let u=Tt(document.body);const d=s.securityLevel===i5,f=s.securityLevel===s5,y=s.fontFamily;if(r!==void 0){if(r&&(r.innerHTML=""),d){const H=on(Tt(r),a);u=Tt(H.nodes()[0].contentDocument.body),u.node().style.margin="0"}else u=Tt(r);hu(u,e,l,`font-family: ${y}`,a5)}else{if(k5(document,e,l,a),d){const H=on(Tt(document.body),a);u=Tt(H.nodes()[0].contentDocument.body),u.node().style.margin="0"}else u=Tt("body");hu(u,e,l)}let m,x;try{m=await sn.fromText(t,{title:i.title})}catch(H){if(s.suppressErrorRendering)throw h(),H;m=await sn.fromText("error"),x=H}const C=u.select(c).node(),k=m.type,S=C.firstChild,T=S.firstChild,_=m.renderer.getClasses?.(t,m),L=x5(s,k,_,o),M=document.createElement("style");M.innerHTML=L,S.insertBefore(M,T);try{await m.renderer.draw(t,e,"11.17.0",m)}catch(H){throw s.suppressErrorRendering?h():LL.draw(t,e,"11.17.0"),H}const v=u.select(`${c} svg`),X=m.db.getAccTitle?.(),z=m.db.getAccDescription?.();Uy(k,v,X,z);const et=g(()=>{u.select(`[id="${e}"]`).selectAll("foreignobject > *").attr("xmlns",n5);let H=u.select(c).node().innerHTML;if(P.debug("config.arrowMarkerAbsolute",s.arrowMarkerAbsolute),H=C5(H,d,$e(s.arrowMarkerAbsolute)),d){const E=u.select(c+" svg").node();H=b5(H,E)}else f||(H=Hr.sanitize(H,{ADD_TAGS:g5,ADD_ATTR:p5,HTML_INTEGRATION_POINTS:{foreignobject:!0}}));return ZF(),H},"serializeSvg")();if(x)throw x;return h(),{diagramType:k,svg:et,bindFunctions:m.db.bindFunctions}},"render");function Yy(e={}){const t=Yt({},e);t?.fontFamily&&!t.themeVariables?.fontFamily&&(t.themeVariables||(t.themeVariables={}),t.themeVariables.fontFamily=t.fontFamily),Pm(t),t?.theme&&t.theme in We?t.themeVariables=We[t.theme].getThemeVariables(t.themeVariables):t&&(t.themeVariables=We.default.getThemeVariables(t.themeVariables));const r=typeof t=="object"?Dm(t):mu();nn(r.logLevel),Bo()}g(Yy,"initialize");var jy=g((e,t={})=>{const{code:r}=El(e);return sn.fromText(r,t)},"getDiagramFromText");function Uy(e,t,r,i){Ry(t,e),qy(t,r,i,t.attr("id"))}g(Uy,"addA11yInfo");var kr=Object.freeze({render:w5,parse:Hy,getDiagramFromText:jy,initialize:Yy,getConfig:Rt,setConfig:xu,getSiteConfig:mu,updateSiteConfig:Im,reset:g(()=>{Ms()},"reset"),globalReset:g(()=>{Ms(Yr)},"globalReset"),defaultConfig:Yr});nn(Rt().logLevel);Ms(Rt());var S5=g((e,t,r)=>{P.warn(e),On(e)?(r&&r(e.str,e.hash),t.push({...e,message:e.str,error:e})):(r&&r(e),e instanceof Error&&t.push({str:e.message,message:e.message,hash:e.name,error:e}))},"handleError"),Gy=g(async function(e={querySelector:".mermaid"}){try{await T5(e)}catch(t){if(On(t)&&P.error(t.str),je.parseError&&je.parseError(t),!e.suppressErrors)throw P.error("Use the suppressErrors option to suppress these errors"),t}},"run"),T5=g(async function({postRenderCallback:e,querySelector:t,nodes:r}={querySelector:".mermaid"}){const i=kr.getConfig();P.debug(`${e?"":"No "}Callback function found`);let s;if(r)s=r;else if(t)s=document.querySelectorAll(t);else throw new Error("Nodes and querySelector are both undefined");P.debug(`Found ${s.length} diagrams`),i?.startOnLoad!==void 0&&(P.debug("Start On Load: "+i?.startOnLoad),kr.updateSiteConfig({startOnLoad:i?.startOnLoad}));const o=new Zt.InitIDGenerator(i.deterministicIds,i.deterministicIDSeed);let a;const n=[];for(const l of Array.from(s)){if(P.info("Rendering diagram: "+l.id),l.getAttribute("data-processed"))continue;l.setAttribute("data-processed","true");const c=`mermaid-${o.next()}`;a=l.innerHTML,a=ef(Zt.entityDecode(a)).trim().replace(/<br\s*\/?>/gi,"<br/>");const h=Zt.detectInit(a);h&&P.debug("Detected early reinit: ",h);try{const{svg:u,bindFunctions:d}=await Ky(c,a,l);l.innerHTML=u,e&&await e(c),d&&d(l)}catch(u){S5(u,n,je.parseError)}}if(n.length>0)throw n[0]},"runThrowsErrors"),Xy=g(function(e){kr.initialize(e)},"initialize"),_5=g(async function(e,t,r){P.warn("mermaid.init is deprecated. Please use run instead."),e&&Xy(e);const i={postRenderCallback:r,querySelector:".mermaid"};typeof t=="string"?i.querySelector=t:t&&(t instanceof HTMLElement?i.nodes=[t]:i.nodes=t),await Gy(i)},"init"),B5=g(async(e,{lazyLoad:t=!0}={})=>{Bo(),xa(...e),t===!1&&await XF()},"registerExternalDiagrams"),Vy=g(function(){if(je.startOnLoad){const{startOnLoad:e}=kr.getConfig();e&&je.run().catch(t=>P.error("Mermaid failed to initialize",t))}},"contentLoaded");typeof document<"u"&&window.addEventListener("load",Vy,!1);var v5=g(function(e){je.parseError=e},"setParseErrorHandler"),to=[],ya=!1,Zy=g(async()=>{if(!ya){for(ya=!0;to.length>0;){const e=to.shift();if(e)try{await e()}catch(t){P.error("Error executing queue",t)}}ya=!1}},"executeQueue"),L5=g(async(e,t)=>new Promise((r,i)=>{const s=g(()=>new Promise((o,a)=>{kr.parse(e,t).then(n=>{o(n),r(n)},n=>{P.error("Error parsing",n),je.parseError?.(n),a(n),i(n)})}),"performCall");to.push(s),Zy().catch(i)}),"parse"),Ky=g((e,t,r)=>new Promise((i,s)=>{const o=g(()=>new Promise((a,n)=>{kr.render(e,t,r).then(l=>{a(l),i(l)},l=>{P.error("Error parsing",l),je.parseError?.(l),n(l),s(l)})}),"performCall");to.push(o),Zy().catch(s)}),"render"),F5=g(()=>Object.keys(pr).map(e=>({id:e})),"getRegisteredDiagramsMetadata"),je={startOnLoad:!0,mermaidAPI:kr,parse:L5,render:Ky,init:_5,run:Gy,registerExternalDiagrams:B5,registerLayoutLoaders:Up,initialize:Xy,parseError:void 0,contentLoaded:Vy,setParseErrorHandler:v5,detectType:ln,registerIconPacks:C1,getRegisteredDiagramsMetadata:F5},M5=je;/*! Check if previously processed *//*!
308
+ * Wait for document loaded before starting the execution
309
+ */const xM=Object.freeze(Object.defineProperty({__proto__:null,clearLayoutRenderState:cl,createCommonLayoutRenderer:$p,default:M5,defaultMeasureLayout:ul,paintLayoutData:dl},Symbol.toStringTag,{value:"Module"}));export{z5 as $,V5 as A,n0 as B,I5 as C,tr as D,Fe as E,Qy as F,Rt as G,p0 as H,Dn as I,HB as J,pu as K,lk as L,Xb as M,Db as N,kn as O,W5 as P,Y5 as Q,Ar as R,sh as S,ih as T,bt as U,U5 as V,j5 as W,H5 as X,q5 as Y,N5 as Z,g as _,h0 as a,A1 as a$,X5 as a0,G5 as a1,pm as a2,Di as a3,D5 as a4,no as a5,J1 as a6,Vm as a7,vu as a8,Rl as a9,tl as aA,Jg as aB,Cw as aC,Vt as aD,c2 as aE,Ln as aF,Bn as aG,ks as aH,I1 as aI,P1 as aJ,D1 as aK,O1 as aL,B1 as aM,Md as aN,F1 as aO,_1 as aP,E1 as aQ,Ad as aR,L1 as aS,N1 as aT,q1 as aU,R1 as aV,z1 as aW,W1 as aX,v1 as aY,Ed as aZ,$1 as a_,wo as aa,qb as ab,Ea as ac,nk as ad,xe as ae,q as af,N as ag,i0 as ah,Fu as ai,Zg as aj,Jn as ak,Jh as al,Ki as am,C1 as an,$n as ao,st as ap,iM as aq,rM as ar,$p as as,Ft as at,Sp as au,at as av,eM as aw,Js as ax,_p as ay,go as az,l0 as b,gp as b$,M1 as b0,$d as b1,rp as b2,Nd as b3,du as b4,Pb as b5,be as b6,x1 as b7,mn as b8,Ke as b9,Cr as bA,Qr as bB,Ue as bC,Sc as bD,Me as bE,Ne as bF,CT as bG,fc as bH,Qs as bI,ze as bJ,FS as bK,se as bL,mc as bM,sl as bN,bB as bO,xo as bP,Ks as bQ,mB as bR,wp as bS,Be as bT,MS as bU,hl as bV,op as bW,kB as bX,xB as bY,lB as bZ,yo as b_,Ri as ba,Kl as bb,pC as bc,nt as bd,_d as be,ie as bf,lC as bg,yn as bh,Hu as bi,Zi as bj,Uu as bk,R5 as bl,rm as bm,el as bn,rl as bo,lc as bp,lp as bq,mo as br,np as bs,RS as bt,hp as bu,ST as bv,h_ as bw,LS as bx,IS as by,TT as bz,Bt as c,ko as c0,pp as c1,hB as c2,a_ as c3,ar as c4,Bi as c5,Ir as c6,ds as c7,jo as c8,FB as c9,xM as ca,Lu as d,Yt as e,Ye as f,u0 as g,Gg as h,le as i,Tt as j,Xi as k,P as l,zd as m,Gi as n,S1 as o,O5 as p,P5 as q,mM as r,c0 as s,yM as t,Zt as u,d0 as v,uk as w,f0 as x,YB as y,iw as z};