learnforge 0.0.0-stage → 0.2.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 (464) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/LICENSE +21 -0
  3. package/README.md +142 -2
  4. package/demo/sample/README.md +8 -0
  5. package/demo/sample/src/backoff.ts +6 -0
  6. package/demo/sample/src/index.ts +12 -0
  7. package/demo/sample/src/queue.ts +58 -0
  8. package/demo/sample/src/worker.ts +20 -0
  9. package/dist/cli.js +3549 -0
  10. package/dist/web/assets/Map-CWWYq8VB.js +1 -0
  11. package/dist/web/assets/Practice-BrxN0TfX.js +25 -0
  12. package/dist/web/assets/_baseUniq-D3A4Knms.js +1 -0
  13. package/dist/web/assets/abap-DsBKuouk.js +1 -0
  14. package/dist/web/assets/actionscript-3-D_z4Izcz.js +1 -0
  15. package/dist/web/assets/ada-727ZlQH0.js +1 -0
  16. package/dist/web/assets/andromeeda-C3khCPGq.js +1 -0
  17. package/dist/web/assets/angular-html-LfdN0zeE.js +1 -0
  18. package/dist/web/assets/angular-ts-CKsD7JZE.js +1 -0
  19. package/dist/web/assets/apache-Dn00JSTd.js +1 -0
  20. package/dist/web/assets/apex-COJ4H7py.js +1 -0
  21. package/dist/web/assets/apl-B4CMkyY2.js +1 -0
  22. package/dist/web/assets/apl-BBq3IX1j.js +1 -0
  23. package/dist/web/assets/applescript-Bu5BbsvL.js +1 -0
  24. package/dist/web/assets/ara-7O62HKoU.js +1 -0
  25. package/dist/web/assets/architectureDiagram-UYN6MBPD-CtGxP8ms.js +36 -0
  26. package/dist/web/assets/asciiarmor-Df11BRmG.js +1 -0
  27. package/dist/web/assets/asciidoc-BPT9niGB.js +1 -0
  28. package/dist/web/assets/asm-Dhn9LcZ4.js +1 -0
  29. package/dist/web/assets/asn1-EdZsLKOL.js +1 -0
  30. package/dist/web/assets/asterisk-B-8jnY81.js +1 -0
  31. package/dist/web/assets/astro-CqkE3fuf.js +1 -0
  32. package/dist/web/assets/aurora-x-D-2ljcwZ.js +1 -0
  33. package/dist/web/assets/awk-eg146-Ew.js +1 -0
  34. package/dist/web/assets/ayu-dark-Cv9koXgw.js +1 -0
  35. package/dist/web/assets/ballerina-Du268qiB.js +1 -0
  36. package/dist/web/assets/bat-fje9CFhw.js +1 -0
  37. package/dist/web/assets/beancount-BwXTMy5W.js +1 -0
  38. package/dist/web/assets/berry-3xVqZejG.js +1 -0
  39. package/dist/web/assets/bibtex-xW4inM5L.js +1 -0
  40. package/dist/web/assets/bicep-DHo0CJ0O.js +1 -0
  41. package/dist/web/assets/blade-a8OxSdnT.js +1 -0
  42. package/dist/web/assets/blockDiagram-ZHA2E4KO-CQ2sgLCo.js +121 -0
  43. package/dist/web/assets/brainfuck-C4LP7Hcl.js +1 -0
  44. package/dist/web/assets/bsl-Dgyn0ogV.js +1 -0
  45. package/dist/web/assets/c-C3t2pwGQ.js +1 -0
  46. package/dist/web/assets/c4Diagram-6F5ED5ID-CWKXGBe-.js +10 -0
  47. package/dist/web/assets/cadence-DNquZEk8.js +1 -0
  48. package/dist/web/assets/cairo--RitsXJZ.js +1 -0
  49. package/dist/web/assets/catppuccin-frappe-CD_QflpE.js +1 -0
  50. package/dist/web/assets/catppuccin-latte-DRW-0cLl.js +1 -0
  51. package/dist/web/assets/catppuccin-macchiato-C-_shW-Y.js +1 -0
  52. package/dist/web/assets/catppuccin-mocha-LGGdnPYs.js +1 -0
  53. package/dist/web/assets/channel-Dh2DBgYr.js +1 -0
  54. package/dist/web/assets/chunk-5HRBRIJM-DFVbwlkG.js +1 -0
  55. package/dist/web/assets/chunk-7U56Z5CX-gak83OWB.js +220 -0
  56. package/dist/web/assets/chunk-ASOPGD6M-cNXbP4zQ.js +1 -0
  57. package/dist/web/assets/chunk-KFBOBJHC-yO5uhU2i.js +1 -0
  58. package/dist/web/assets/chunk-T2TOU4HS-BbXMDtlZ.js +164 -0
  59. package/dist/web/assets/chunk-TMUBEWPD-CxPE7zW_.js +1 -0
  60. package/dist/web/assets/clarity-BHOwM8T6.js +1 -0
  61. package/dist/web/assets/classDiagram-LNE6IOMH-BiiTLJy-.js +1 -0
  62. package/dist/web/assets/classDiagram-v2-MQ7JQ4JX-BiiTLJy-.js +1 -0
  63. package/dist/web/assets/clike-B9uivgTg.js +1 -0
  64. package/dist/web/assets/clojure-BMjYHr_A.js +1 -0
  65. package/dist/web/assets/clojure-DxSadP1t.js +1 -0
  66. package/dist/web/assets/clone-XVPeJFtd.js +1 -0
  67. package/dist/web/assets/cmake-BQqOBYOt.js +1 -0
  68. package/dist/web/assets/cmake-DbXoA79R.js +1 -0
  69. package/dist/web/assets/cobol-CWcv1MsR.js +1 -0
  70. package/dist/web/assets/cobol-PTqiYgYu.js +1 -0
  71. package/dist/web/assets/codeowners-Bp6g37R7.js +1 -0
  72. package/dist/web/assets/codeql-sacFqUAJ.js +1 -0
  73. package/dist/web/assets/coffee-dyiR41kL.js +1 -0
  74. package/dist/web/assets/coffeescript-S37ZYGWr.js +1 -0
  75. package/dist/web/assets/common-lisp-C7gG9l05.js +1 -0
  76. package/dist/web/assets/commonlisp-DBKNyK5s.js +1 -0
  77. package/dist/web/assets/coq-Dsg_Bt_b.js +1 -0
  78. package/dist/web/assets/cpp-BksuvNSY.js +1 -0
  79. package/dist/web/assets/crystal-DtDmRg-F.js +1 -0
  80. package/dist/web/assets/crystal-SjHAIU92.js +1 -0
  81. package/dist/web/assets/csharp-D9R-vmeu.js +1 -0
  82. package/dist/web/assets/css-BPhBrDlE.js +1 -0
  83. package/dist/web/assets/css-BnMrqG3P.js +1 -0
  84. package/dist/web/assets/csv-B0qRVHPH.js +1 -0
  85. package/dist/web/assets/cue-DtFQj3wx.js +1 -0
  86. package/dist/web/assets/cypher-C_CwsFkJ.js +1 -0
  87. package/dist/web/assets/cypher-m2LEI-9-.js +1 -0
  88. package/dist/web/assets/cytoscape.esm-DgFJg4rT.js +331 -0
  89. package/dist/web/assets/d-BoXegm-a.js +1 -0
  90. package/dist/web/assets/d-pRatUO7H.js +1 -0
  91. package/dist/web/assets/d3-scale-35hnzshu.js +1 -0
  92. package/dist/web/assets/dagre-4EVJKHTY-CBDUYbRw.js +4 -0
  93. package/dist/web/assets/dark-plus-C3mMm8J8.js +1 -0
  94. package/dist/web/assets/dart-B9wLZaAG.js +1 -0
  95. package/dist/web/assets/dax-ClGRhx96.js +1 -0
  96. package/dist/web/assets/desktop-DEIpsLCJ.js +1 -0
  97. package/dist/web/assets/diagram-QW4FP2JN-C7TmMevO.js +24 -0
  98. package/dist/web/assets/diff-BgYniUM_.js +1 -0
  99. package/dist/web/assets/diff-DbItnlRl.js +1 -0
  100. package/dist/web/assets/docker-COcR7UxN.js +1 -0
  101. package/dist/web/assets/dockerfile-BKs6k2Af.js +1 -0
  102. package/dist/web/assets/dotenv-BjQB5zDj.js +1 -0
  103. package/dist/web/assets/dracula-BzJJZx-M.js +1 -0
  104. package/dist/web/assets/dracula-soft-BXkSAIEj.js +1 -0
  105. package/dist/web/assets/dream-maker-C-nORZOA.js +1 -0
  106. package/dist/web/assets/dtd-DF_7sFjM.js +1 -0
  107. package/dist/web/assets/dylan-DwRh75JA.js +1 -0
  108. package/dist/web/assets/ebnf-CDyGwa7X.js +1 -0
  109. package/dist/web/assets/ecl-Cabwm37j.js +1 -0
  110. package/dist/web/assets/edge-D5gP-w-T.js +1 -0
  111. package/dist/web/assets/eiffel-CnydiIhH.js +1 -0
  112. package/dist/web/assets/elixir-CLiX3zqd.js +1 -0
  113. package/dist/web/assets/elm-CmHSxxaM.js +1 -0
  114. package/dist/web/assets/elm-vLlmbW-K.js +1 -0
  115. package/dist/web/assets/emacs-lisp-BX77sIaO.js +1 -0
  116. package/dist/web/assets/erDiagram-6RL3IURR-BrIhLTf-.js +51 -0
  117. package/dist/web/assets/erb-BYTLMnw6.js +1 -0
  118. package/dist/web/assets/erlang-B-DoSBHF.js +1 -0
  119. package/dist/web/assets/erlang-BNw1qcRV.js +1 -0
  120. package/dist/web/assets/everforest-dark-BgDCqdQA.js +1 -0
  121. package/dist/web/assets/everforest-light-C8M2exoo.js +1 -0
  122. package/dist/web/assets/factor-kuTfRLto.js +1 -0
  123. package/dist/web/assets/fcl-Kvtd6kyn.js +1 -0
  124. package/dist/web/assets/fennel-bCA53EVm.js +1 -0
  125. package/dist/web/assets/fish-w-ucz2PV.js +1 -0
  126. package/dist/web/assets/flowDiagram-7ASYPVHJ-xplSH1V5.js +160 -0
  127. package/dist/web/assets/fluent-Dayu4EKP.js +1 -0
  128. package/dist/web/assets/forth-Ffai-XNe.js +1 -0
  129. package/dist/web/assets/fortran-DYz_wnZ1.js +1 -0
  130. package/dist/web/assets/fortran-fixed-form-TqA4NnZg.js +1 -0
  131. package/dist/web/assets/fortran-free-form-DKXYxT9g.js +1 -0
  132. package/dist/web/assets/fsharp-XplgxFYe.js +1 -0
  133. package/dist/web/assets/ganttDiagram-NTVNEXSI-CTjkBoVW.js +257 -0
  134. package/dist/web/assets/gas-Bneqetm1.js +1 -0
  135. package/dist/web/assets/gdresource-BHYsBjWJ.js +1 -0
  136. package/dist/web/assets/gdscript-DfxzS6Rs.js +1 -0
  137. package/dist/web/assets/gdshader-SKMF96pI.js +1 -0
  138. package/dist/web/assets/genie-ajMbGru0.js +1 -0
  139. package/dist/web/assets/gherkin--30QC5Em.js +1 -0
  140. package/dist/web/assets/gherkin-heZmZLOM.js +1 -0
  141. package/dist/web/assets/git-commit-i4q6IMui.js +1 -0
  142. package/dist/web/assets/git-rebase-B-v9cOL2.js +1 -0
  143. package/dist/web/assets/gitGraph-YCYPL57B-CMCcQH9Z.js +127 -0
  144. package/dist/web/assets/gitGraphDiagram-NRZ2UAAF-I2RXCZiV.js +65 -0
  145. package/dist/web/assets/github-dark-DHJKELXO.js +1 -0
  146. package/dist/web/assets/github-dark-default-Cuk6v7N8.js +1 -0
  147. package/dist/web/assets/github-dark-dimmed-DH5Ifo-i.js +1 -0
  148. package/dist/web/assets/github-dark-high-contrast-E3gJ1_iC.js +1 -0
  149. package/dist/web/assets/github-light-DAi9KRSo.js +1 -0
  150. package/dist/web/assets/github-light-default-D7oLnXFd.js +1 -0
  151. package/dist/web/assets/github-light-high-contrast-BfjtVDDH.js +1 -0
  152. package/dist/web/assets/gleam-B430Bg39.js +1 -0
  153. package/dist/web/assets/glimmer-js-D-cwc0-E.js +1 -0
  154. package/dist/web/assets/glimmer-ts-pgjy16dm.js +1 -0
  155. package/dist/web/assets/glsl-DBO2IWDn.js +1 -0
  156. package/dist/web/assets/gnuplot-CM8KxXT1.js +1 -0
  157. package/dist/web/assets/go-B1SYOhNW.js +1 -0
  158. package/dist/web/assets/graph-DfxUDGeH.js +1 -0
  159. package/dist/web/assets/graphql-cDcHW_If.js +1 -0
  160. package/dist/web/assets/groovy-D9Dt4D0W.js +1 -0
  161. package/dist/web/assets/groovy-DkBy-JyN.js +1 -0
  162. package/dist/web/assets/hack-D1yCygmZ.js +1 -0
  163. package/dist/web/assets/haml-B2EZWmdv.js +1 -0
  164. package/dist/web/assets/handlebars-BQGss363.js +1 -0
  165. package/dist/web/assets/haskell-BILxekzW.js +1 -0
  166. package/dist/web/assets/haskell-BWDZoCOh.js +1 -0
  167. package/dist/web/assets/haxe-C5wWYbrZ.js +1 -0
  168. package/dist/web/assets/haxe-H-WmDvRZ.js +1 -0
  169. package/dist/web/assets/hcl-HzYwdGDm.js +1 -0
  170. package/dist/web/assets/hjson-T-Tgc4AT.js +1 -0
  171. package/dist/web/assets/hlsl-ifBTmRxC.js +1 -0
  172. package/dist/web/assets/houston-DnULxvSX.js +1 -0
  173. package/dist/web/assets/html-C2L_23MC.js +1 -0
  174. package/dist/web/assets/html-derivative-CSfWNPLT.js +1 -0
  175. package/dist/web/assets/http-DBlCnlav.js +1 -0
  176. package/dist/web/assets/http-FRrOvY1W.js +1 -0
  177. package/dist/web/assets/hxml-TIA70rKU.js +1 -0
  178. package/dist/web/assets/hy-BMj5Y0dO.js +1 -0
  179. package/dist/web/assets/idl-BEugSyMb.js +1 -0
  180. package/dist/web/assets/imba-bv_oIlVt.js +1 -0
  181. package/dist/web/assets/index-4dQXSykb.js +1 -0
  182. package/dist/web/assets/index-BCcuEbgc.js +1 -0
  183. package/dist/web/assets/index-BN9_IkPV.js +1 -0
  184. package/dist/web/assets/index-BbAVe1TP.js +6 -0
  185. package/dist/web/assets/index-Bi0iU3Po.js +3 -0
  186. package/dist/web/assets/index-Biw9rLAa.css +1 -0
  187. package/dist/web/assets/index-BoyLgAJJ.js +13 -0
  188. package/dist/web/assets/index-BqXQJR28.js +1 -0
  189. package/dist/web/assets/index-BwoEv7R1.js +493 -0
  190. package/dist/web/assets/index-BzKIqhZn.js +1 -0
  191. package/dist/web/assets/index-C2PIUqbt.js +1 -0
  192. package/dist/web/assets/index-C7DbozeE.js +7 -0
  193. package/dist/web/assets/index-CDpPKe18.js +1 -0
  194. package/dist/web/assets/index-CTkcLj9F.js +1 -0
  195. package/dist/web/assets/index-CWD7Tiz8.js +1 -0
  196. package/dist/web/assets/index-Cm8ah4T0.js +1 -0
  197. package/dist/web/assets/index-D-vErHI8.js +1 -0
  198. package/dist/web/assets/index-D3sNRgEi.js +1 -0
  199. package/dist/web/assets/index-D91ZBf2I.js +1 -0
  200. package/dist/web/assets/index-D94n50FM.js +2 -0
  201. package/dist/web/assets/index-D9KG0kJs.js +1 -0
  202. package/dist/web/assets/index-DdahRhN3.js +1 -0
  203. package/dist/web/assets/index-Dl9E7_vZ.js +1 -0
  204. package/dist/web/assets/index-DnmHf2in.js +149 -0
  205. package/dist/web/assets/infoDiagram-A4XQUW5V-BcjfRCXi.js +2 -0
  206. package/dist/web/assets/ini-BjABl1g7.js +1 -0
  207. package/dist/web/assets/java-xI-RfyKK.js +1 -0
  208. package/dist/web/assets/javascript-qCveANmP.js +1 -0
  209. package/dist/web/assets/javascript-ySlJ1b_l.js +1 -0
  210. package/dist/web/assets/jetbrains-mono-cyrillic-wght-normal-BptiBwAt.woff2 +0 -0
  211. package/dist/web/assets/jetbrains-mono-greek-wght-normal-BW1JPxja.woff2 +0 -0
  212. package/dist/web/assets/jetbrains-mono-latin-ext-wght-normal-Com2F4yK.woff2 +0 -0
  213. package/dist/web/assets/jetbrains-mono-latin-wght-normal-Ajscav9D.woff2 +0 -0
  214. package/dist/web/assets/jetbrains-mono-vietnamese-wght-normal-By-yputv.woff2 +0 -0
  215. package/dist/web/assets/jinja-DGy0s7-h.js +1 -0
  216. package/dist/web/assets/jinja2-C4DGRd-O.js +1 -0
  217. package/dist/web/assets/jison-BqZprYcd.js +1 -0
  218. package/dist/web/assets/journeyDiagram-G5WM74LC-BrvwR6gO.js +139 -0
  219. package/dist/web/assets/json-BQoSv7ci.js +1 -0
  220. package/dist/web/assets/json5-w8dY5SsB.js +1 -0
  221. package/dist/web/assets/jsonc-TU54ms6u.js +1 -0
  222. package/dist/web/assets/jsonl-DREVFZK8.js +1 -0
  223. package/dist/web/assets/jsonnet-BfivnA6A.js +1 -0
  224. package/dist/web/assets/jssm-P4WzXJd0.js +1 -0
  225. package/dist/web/assets/jsx-BAng5TT0.js +1 -0
  226. package/dist/web/assets/julia-BBuGR-5E.js +1 -0
  227. package/dist/web/assets/julia-DuME0IfC.js +1 -0
  228. package/dist/web/assets/kanagawa-dragon-CkXjmgJE.js +1 -0
  229. package/dist/web/assets/kanagawa-lotus-CfQXZHmo.js +1 -0
  230. package/dist/web/assets/kanagawa-wave-DWedfzmr.js +1 -0
  231. package/dist/web/assets/kanban-definition-QRCXZQQD-Ds9WLUQu.js +88 -0
  232. package/dist/web/assets/katex-C5jXJg4s.js +257 -0
  233. package/dist/web/assets/kotlin-B5lbUyaz.js +1 -0
  234. package/dist/web/assets/kusto-mebxcVVE.js +1 -0
  235. package/dist/web/assets/laserwave-DUszq2jm.js +1 -0
  236. package/dist/web/assets/latex-C-cWTeAZ.js +1 -0
  237. package/dist/web/assets/layout-ktpd0Z4b.js +1 -0
  238. package/dist/web/assets/lean-XBlWyCtg.js +1 -0
  239. package/dist/web/assets/less-BfCpw3nA.js +1 -0
  240. package/dist/web/assets/light-plus-B7mTdjB0.js +1 -0
  241. package/dist/web/assets/liquid-D3W5UaiH.js +1 -0
  242. package/dist/web/assets/livescript-BwQOo05w.js +1 -0
  243. package/dist/web/assets/log-Cc5clBb7.js +1 -0
  244. package/dist/web/assets/logo-IuBKFhSY.js +1 -0
  245. package/dist/web/assets/lua-CvWAzNxB.js +1 -0
  246. package/dist/web/assets/lua-VAEuO923.js +1 -0
  247. package/dist/web/assets/luau-Du5NY7AG.js +1 -0
  248. package/dist/web/assets/make-Bvotw-X0.js +1 -0
  249. package/dist/web/assets/markdown-UIAJJxZW.js +1 -0
  250. package/dist/web/assets/marko-z0MBrx5-.js +1 -0
  251. package/dist/web/assets/material-theme-D5KoaKCx.js +1 -0
  252. package/dist/web/assets/material-theme-darker-BfHTSMKl.js +1 -0
  253. package/dist/web/assets/material-theme-lighter-B0m2ddpp.js +1 -0
  254. package/dist/web/assets/material-theme-ocean-CyktbL80.js +1 -0
  255. package/dist/web/assets/material-theme-palenight-Csfq5Kiy.js +1 -0
  256. package/dist/web/assets/mathematica-DTrFuWx2.js +1 -0
  257. package/dist/web/assets/matlab-D9-PGadD.js +1 -0
  258. package/dist/web/assets/mbox-CNhZ1qSd.js +1 -0
  259. package/dist/web/assets/mdc-DB_EDNY_.js +1 -0
  260. package/dist/web/assets/mdx-sdHcTMYB.js +1 -0
  261. package/dist/web/assets/mermaid-Ci6OQyBP.js +1 -0
  262. package/dist/web/assets/mermaid.core-BGuQYGS_.js +190 -0
  263. package/dist/web/assets/min-C7naItsZ.js +1 -0
  264. package/dist/web/assets/min-dark-CafNBF8u.js +1 -0
  265. package/dist/web/assets/min-light-CTRr51gU.js +1 -0
  266. package/dist/web/assets/mindmap-definition-GWI6TPTV-BwBiBSTc.js +95 -0
  267. package/dist/web/assets/mipsasm-BC5c_5Pe.js +1 -0
  268. package/dist/web/assets/mirc-CjQqDB4T.js +1 -0
  269. package/dist/web/assets/mllike-CXdrOF99.js +1 -0
  270. package/dist/web/assets/modelica-Dc1JOy9r.js +1 -0
  271. package/dist/web/assets/mojo-Tz6hzZYG.js +1 -0
  272. package/dist/web/assets/monokai-D4h5O-jR.js +1 -0
  273. package/dist/web/assets/move-DB_GagMm.js +1 -0
  274. package/dist/web/assets/mscgen-BA5vi2Kp.js +1 -0
  275. package/dist/web/assets/mumps-BT43cFF4.js +1 -0
  276. package/dist/web/assets/narrat-DLbgOhZU.js +1 -0
  277. package/dist/web/assets/nextflow-B0XVJmRM.js +1 -0
  278. package/dist/web/assets/nginx-D_VnBJ67.js +1 -0
  279. package/dist/web/assets/nginx-DdIZxoE0.js +1 -0
  280. package/dist/web/assets/night-owl-C39BiMTA.js +1 -0
  281. package/dist/web/assets/nim-ZlGxZxc3.js +1 -0
  282. package/dist/web/assets/nix-shcSOmrb.js +1 -0
  283. package/dist/web/assets/nord-Ddv68eIx.js +1 -0
  284. package/dist/web/assets/nsis-LY0VT_u5.js +1 -0
  285. package/dist/web/assets/ntriples-BfvgReVJ.js +1 -0
  286. package/dist/web/assets/nushell-D4Tzg5kh.js +1 -0
  287. package/dist/web/assets/objective-c-Deuh7S70.js +1 -0
  288. package/dist/web/assets/objective-cpp-BUEGK8hf.js +1 -0
  289. package/dist/web/assets/ocaml-BNioltXt.js +1 -0
  290. package/dist/web/assets/octave-Ck1zUtKM.js +1 -0
  291. package/dist/web/assets/one-dark-pro-GBQ2dnAY.js +1 -0
  292. package/dist/web/assets/one-light-PoHY5YXO.js +1 -0
  293. package/dist/web/assets/oz-BzwKVEFT.js +1 -0
  294. package/dist/web/assets/pascal--L3eBynH.js +1 -0
  295. package/dist/web/assets/pascal-JqZropPD.js +1 -0
  296. package/dist/web/assets/perl-CHQXSrWU.js +1 -0
  297. package/dist/web/assets/perl-CdXCOZ3F.js +1 -0
  298. package/dist/web/assets/php-B5ebYQev.js +1 -0
  299. package/dist/web/assets/pieDiagram-YF2LJOPJ-DeXhe8wW.js +30 -0
  300. package/dist/web/assets/pig-CevX1Tat.js +1 -0
  301. package/dist/web/assets/plastic-3e1v2bzS.js +1 -0
  302. package/dist/web/assets/plsql-LKU2TuZ1.js +1 -0
  303. package/dist/web/assets/po-BFLt1xDp.js +1 -0
  304. package/dist/web/assets/poimandres-CS3Unz2-.js +1 -0
  305. package/dist/web/assets/polar-DKykz6zU.js +1 -0
  306. package/dist/web/assets/postcss-B3ZDOciz.js +1 -0
  307. package/dist/web/assets/powerquery-CSHBycmS.js +1 -0
  308. package/dist/web/assets/powershell-BIEUsx6d.js +1 -0
  309. package/dist/web/assets/powershell-CFHJl5sT.js +1 -0
  310. package/dist/web/assets/prisma-B48N-Iqd.js +1 -0
  311. package/dist/web/assets/prolog-BY-TUvya.js +1 -0
  312. package/dist/web/assets/properties-C78fOPTZ.js +1 -0
  313. package/dist/web/assets/proto-zocC4JxJ.js +1 -0
  314. package/dist/web/assets/protobuf-ChK-085T.js +1 -0
  315. package/dist/web/assets/pug-CM9l7STV.js +1 -0
  316. package/dist/web/assets/pug-DukmZTjD.js +1 -0
  317. package/dist/web/assets/puppet-Cza_XSSt.js +1 -0
  318. package/dist/web/assets/puppet-DMA9R1ak.js +1 -0
  319. package/dist/web/assets/purescript-Bg-kzb6g.js +1 -0
  320. package/dist/web/assets/python-BuPzkPfP.js +1 -0
  321. package/dist/web/assets/python-DhUJRlN_.js +1 -0
  322. package/dist/web/assets/q-pXgVlZs6.js +1 -0
  323. package/dist/web/assets/qml-D8XfuvdV.js +1 -0
  324. package/dist/web/assets/qmldir-C8lEn-DE.js +1 -0
  325. package/dist/web/assets/qss-DhMKtDLN.js +1 -0
  326. package/dist/web/assets/quadrantDiagram-OS5C2QUG-qIwp82jR.js +7 -0
  327. package/dist/web/assets/r-CwjWoCRV.js +1 -0
  328. package/dist/web/assets/r-DUYO_cvP.js +1 -0
  329. package/dist/web/assets/racket-CzouJOBO.js +1 -0
  330. package/dist/web/assets/raku-B1bQXN8T.js +1 -0
  331. package/dist/web/assets/razor-CNLDkMZG.js +1 -0
  332. package/dist/web/assets/red-bN70gL4F.js +1 -0
  333. package/dist/web/assets/reg-5LuOXUq_.js +1 -0
  334. package/dist/web/assets/regexp-DWJ3fJO_.js +1 -0
  335. package/dist/web/assets/rel-DJlmqQ1C.js +1 -0
  336. package/dist/web/assets/requirementDiagram-MIRIMTAZ-BMNoO9OJ.js +52 -0
  337. package/dist/web/assets/riscv-QhoSD0DR.js +1 -0
  338. package/dist/web/assets/rose-pine-CmCqftbK.js +1 -0
  339. package/dist/web/assets/rose-pine-dawn-Ds-gbosJ.js +1 -0
  340. package/dist/web/assets/rose-pine-moon-CjDtw9vr.js +1 -0
  341. package/dist/web/assets/rpm-CTu-6PCP.js +1 -0
  342. package/dist/web/assets/rst-4NLicBqY.js +1 -0
  343. package/dist/web/assets/ruby-BK5aLJev.js +1 -0
  344. package/dist/web/assets/ruby-DeZ3UC14.js +1 -0
  345. package/dist/web/assets/rust-Be6lgOlo.js +1 -0
  346. package/dist/web/assets/sankeyDiagram-Y46BX6SQ-BcWhv667.js +8 -0
  347. package/dist/web/assets/sas-B4kiWyti.js +1 -0
  348. package/dist/web/assets/sas-BmTFh92c.js +1 -0
  349. package/dist/web/assets/sass-BJ4Li9vH.js +1 -0
  350. package/dist/web/assets/scala-DQVVAn-B.js +1 -0
  351. package/dist/web/assets/scheme-BJGe-b2p.js +1 -0
  352. package/dist/web/assets/scheme-C41bIUwD.js +1 -0
  353. package/dist/web/assets/scss-C31hgJw-.js +1 -0
  354. package/dist/web/assets/sdbl-BLhTXw86.js +1 -0
  355. package/dist/web/assets/sequenceDiagram-G6AWOVSC-C4AgKjJQ.js +122 -0
  356. package/dist/web/assets/shaderlab-B7qAK45m.js +1 -0
  357. package/dist/web/assets/shell-CjFT_Tl9.js +1 -0
  358. package/dist/web/assets/shellscript-atvbtKCR.js +1 -0
  359. package/dist/web/assets/shellsession-C_rIy8kc.js +1 -0
  360. package/dist/web/assets/sieve-C3Gn_uJK.js +1 -0
  361. package/dist/web/assets/simple-mode-GW_nhZxv.js +1 -0
  362. package/dist/web/assets/slack-dark-BthQWCQV.js +1 -0
  363. package/dist/web/assets/slack-ochin-DqwNpetd.js +1 -0
  364. package/dist/web/assets/smalltalk-CnHTOXQT.js +1 -0
  365. package/dist/web/assets/smalltalk-DkLiglaE.js +1 -0
  366. package/dist/web/assets/snazzy-light-Bw305WKR.js +1 -0
  367. package/dist/web/assets/solarized-dark-DXbdFlpD.js +1 -0
  368. package/dist/web/assets/solarized-light-L9t79GZl.js +1 -0
  369. package/dist/web/assets/solidity-C1w2a3ep.js +1 -0
  370. package/dist/web/assets/solr-DehyRSwq.js +1 -0
  371. package/dist/web/assets/source-serif-4-cyrillic-ext-opsz-italic-Bl6DJqma.woff2 +0 -0
  372. package/dist/web/assets/source-serif-4-cyrillic-ext-opsz-normal-DIwfbPUE.woff2 +0 -0
  373. package/dist/web/assets/source-serif-4-cyrillic-opsz-italic-Dibx14aP.woff2 +0 -0
  374. package/dist/web/assets/source-serif-4-cyrillic-opsz-normal-C0olyEE-.woff2 +0 -0
  375. package/dist/web/assets/source-serif-4-greek-opsz-italic-CMW9dfKg.woff2 +0 -0
  376. package/dist/web/assets/source-serif-4-greek-opsz-normal-DrHU7SY7.woff2 +0 -0
  377. package/dist/web/assets/source-serif-4-latin-ext-opsz-italic-BhUEwDRF.woff2 +0 -0
  378. package/dist/web/assets/source-serif-4-latin-ext-opsz-normal-HoL-AExg.woff2 +0 -0
  379. package/dist/web/assets/source-serif-4-latin-opsz-italic-BOLXpvkj.woff2 +0 -0
  380. package/dist/web/assets/source-serif-4-latin-opsz-normal-BpEBLj1O.woff2 +0 -0
  381. package/dist/web/assets/source-serif-4-vietnamese-opsz-italic-C-k5pZlm.woff2 +0 -0
  382. package/dist/web/assets/source-serif-4-vietnamese-opsz-normal-BOyYyU_V.woff2 +0 -0
  383. package/dist/web/assets/soy-C-lX7w71.js +1 -0
  384. package/dist/web/assets/sparql-DkYu6x3z.js +1 -0
  385. package/dist/web/assets/sparql-bYkjHRlG.js +1 -0
  386. package/dist/web/assets/splunk-Cf8iN4DR.js +1 -0
  387. package/dist/web/assets/spreadsheet-BCZA_wO0.js +1 -0
  388. package/dist/web/assets/sql-COK4E0Yg.js +1 -0
  389. package/dist/web/assets/sql-D0XecflT.js +1 -0
  390. package/dist/web/assets/ssh-config-BknIz3MU.js +1 -0
  391. package/dist/web/assets/stata-DorPZHa4.js +1 -0
  392. package/dist/web/assets/stateDiagram-MAYHULR4-D13_SEW-.js +1 -0
  393. package/dist/web/assets/stateDiagram-v2-4JROLMXI-B54Ohb2s.js +1 -0
  394. package/dist/web/assets/stex-C3f8Ysf7.js +1 -0
  395. package/dist/web/assets/stylus-B533Al4x.js +1 -0
  396. package/dist/web/assets/stylus-BeQkCIfX.js +1 -0
  397. package/dist/web/assets/svelte-MSaWC3Je.js +1 -0
  398. package/dist/web/assets/swift-BSxZ-RaX.js +1 -0
  399. package/dist/web/assets/swift-BzpIVaGY.js +1 -0
  400. package/dist/web/assets/synthwave-84-CbfX1IO0.js +1 -0
  401. package/dist/web/assets/system-verilog-C7L56vO4.js +1 -0
  402. package/dist/web/assets/systemd-CUnW07Te.js +1 -0
  403. package/dist/web/assets/talonscript-C1XDQQGZ.js +1 -0
  404. package/dist/web/assets/tasl-CQjiPCtT.js +1 -0
  405. package/dist/web/assets/tcl-DQ1-QYvQ.js +1 -0
  406. package/dist/web/assets/tcl-DVfN8rqt.js +1 -0
  407. package/dist/web/assets/templ-dwX3ZSMB.js +1 -0
  408. package/dist/web/assets/terraform-BbSNqyBO.js +1 -0
  409. package/dist/web/assets/tex-rYs2v40G.js +1 -0
  410. package/dist/web/assets/textile-CnDTJFAw.js +1 -0
  411. package/dist/web/assets/tiddlywiki-DO-Gjzrf.js +1 -0
  412. package/dist/web/assets/tiki-DGYXhP31.js +1 -0
  413. package/dist/web/assets/timeline-definition-U7ZMHBDA-D1EAZC5t.js +61 -0
  414. package/dist/web/assets/tokyo-night-DBQeEorK.js +1 -0
  415. package/dist/web/assets/toml-Bm5Em-hy.js +1 -0
  416. package/dist/web/assets/toml-CB2ApiWb.js +1 -0
  417. package/dist/web/assets/troff-wAsdV37c.js +1 -0
  418. package/dist/web/assets/ts-tags-CipyTH0X.js +1 -0
  419. package/dist/web/assets/tsv-B_m7g4N7.js +1 -0
  420. package/dist/web/assets/tsx-B6W0miNI.js +1 -0
  421. package/dist/web/assets/ttcn-CfJYG6tj.js +1 -0
  422. package/dist/web/assets/ttcn-cfg-B9xdYoR4.js +1 -0
  423. package/dist/web/assets/turtle-B1tBg_DP.js +1 -0
  424. package/dist/web/assets/turtle-BMR_PYu6.js +1 -0
  425. package/dist/web/assets/twig-NC5TFiHP.js +1 -0
  426. package/dist/web/assets/typescript-Dj6nwHGl.js +1 -0
  427. package/dist/web/assets/typespec-BpWG_bgh.js +1 -0
  428. package/dist/web/assets/typst-BVUVsWT6.js +1 -0
  429. package/dist/web/assets/v-CAQ2eGtk.js +1 -0
  430. package/dist/web/assets/vala-BFOHcciG.js +1 -0
  431. package/dist/web/assets/vb-CdO5JTpU.js +1 -0
  432. package/dist/web/assets/vb-CmGdzxic.js +1 -0
  433. package/dist/web/assets/vbscript-BuJXcnF6.js +1 -0
  434. package/dist/web/assets/velocity-D8B20fx6.js +1 -0
  435. package/dist/web/assets/verilog-C6RDOZhf.js +1 -0
  436. package/dist/web/assets/verilog-CJaU5se_.js +1 -0
  437. package/dist/web/assets/vesper-BEBZ7ncR.js +1 -0
  438. package/dist/web/assets/vhdl-DYoNaHQp.js +1 -0
  439. package/dist/web/assets/vhdl-lSbBsy5d.js +1 -0
  440. package/dist/web/assets/viml-m4uW47V2.js +1 -0
  441. package/dist/web/assets/vitesse-black-Bkuqu6BP.js +1 -0
  442. package/dist/web/assets/vitesse-dark-D0r3Knsf.js +1 -0
  443. package/dist/web/assets/vitesse-light-CVO1_9PV.js +1 -0
  444. package/dist/web/assets/vue-BuYVFjOK.js +1 -0
  445. package/dist/web/assets/vue-html-xdeiXROB.js +1 -0
  446. package/dist/web/assets/vyper-nyqBNV6O.js +1 -0
  447. package/dist/web/assets/wasm-C6j12Q_x.js +1 -0
  448. package/dist/web/assets/wasm-CG6Dc4jp.js +1 -0
  449. package/dist/web/assets/webidl-ZXfAyPTL.js +1 -0
  450. package/dist/web/assets/wenyan-7A4Fjokl.js +1 -0
  451. package/dist/web/assets/wgsl-CB0Krxn9.js +1 -0
  452. package/dist/web/assets/wikitext-DCE3LsBG.js +1 -0
  453. package/dist/web/assets/wolfram-C3FkfJm5.js +1 -0
  454. package/dist/web/assets/xml-e3z08dGr.js +1 -0
  455. package/dist/web/assets/xquery-CQfU5ijd.js +1 -0
  456. package/dist/web/assets/xsl-Dd0NUgwM.js +1 -0
  457. package/dist/web/assets/xychartDiagram-6QU3TZC5-9fhTIPRM.js +7 -0
  458. package/dist/web/assets/yacas-BJ4BC0dw.js +1 -0
  459. package/dist/web/assets/yaml-CVw76BM1.js +1 -0
  460. package/dist/web/assets/z80-Hz9HOZM7.js +1 -0
  461. package/dist/web/assets/zenscript-HnGAYVZD.js +1 -0
  462. package/dist/web/assets/zig-BVz_zdnA.js +1 -0
  463. package/dist/web/index.html +22 -0
  464. package/package.json +80 -4
@@ -0,0 +1,190 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/dagre-4EVJKHTY-CBDUYbRw.js","assets/graph-DfxUDGeH.js","assets/_baseUniq-D3A4Knms.js","assets/layout-ktpd0Z4b.js","assets/min-C7naItsZ.js","assets/clone-XVPeJFtd.js","assets/index-BwoEv7R1.js","assets/index-Biw9rLAa.css","assets/c4Diagram-6F5ED5ID-CWKXGBe-.js","assets/chunk-ASOPGD6M-cNXbP4zQ.js","assets/flowDiagram-7ASYPVHJ-xplSH1V5.js","assets/chunk-5HRBRIJM-DFVbwlkG.js","assets/channel-Dh2DBgYr.js","assets/erDiagram-6RL3IURR-BrIhLTf-.js","assets/gitGraphDiagram-NRZ2UAAF-I2RXCZiV.js","assets/chunk-TMUBEWPD-CxPE7zW_.js","assets/chunk-KFBOBJHC-yO5uhU2i.js","assets/gitGraph-YCYPL57B-CMCcQH9Z.js","assets/ganttDiagram-NTVNEXSI-CTjkBoVW.js","assets/d3-scale-35hnzshu.js","assets/infoDiagram-A4XQUW5V-BcjfRCXi.js","assets/pieDiagram-YF2LJOPJ-DeXhe8wW.js","assets/quadrantDiagram-OS5C2QUG-qIwp82jR.js","assets/xychartDiagram-6QU3TZC5-9fhTIPRM.js","assets/requirementDiagram-MIRIMTAZ-BMNoO9OJ.js","assets/sequenceDiagram-G6AWOVSC-C4AgKjJQ.js","assets/classDiagram-LNE6IOMH-BiiTLJy-.js","assets/chunk-T2TOU4HS-BbXMDtlZ.js","assets/classDiagram-v2-MQ7JQ4JX-BiiTLJy-.js","assets/stateDiagram-MAYHULR4-D13_SEW-.js","assets/chunk-7U56Z5CX-gak83OWB.js","assets/stateDiagram-v2-4JROLMXI-B54Ohb2s.js","assets/journeyDiagram-G5WM74LC-BrvwR6gO.js","assets/timeline-definition-U7ZMHBDA-D1EAZC5t.js","assets/mindmap-definition-GWI6TPTV-BwBiBSTc.js","assets/cytoscape.esm-DgFJg4rT.js","assets/kanban-definition-QRCXZQQD-Ds9WLUQu.js","assets/sankeyDiagram-Y46BX6SQ-BcWhv667.js","assets/diagram-QW4FP2JN-C7TmMevO.js","assets/blockDiagram-ZHA2E4KO-CQ2sgLCo.js","assets/architectureDiagram-UYN6MBPD-CtGxP8ms.js"])))=>i.map(i=>d[i]);
2
+ var _m=Object.defineProperty;var $l=e=>{throw TypeError(e)};var Cm=(e,t,r)=>t in e?_m(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var yt=(e,t,r)=>Cm(e,typeof t!="symbol"?t+"":t,r),wm=(e,t,r)=>t.has(e)||$l("Cannot "+r);var Dl=(e,t,r)=>t.has(e)?$l("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r);var _i=(e,t,r)=>(wm(e,t,"access private method"),r);import{g as km,c as vm,_ as mt}from"./index-BwoEv7R1.js";var nh={exports:{}};(function(e,t){(function(r,i){e.exports=i()})(vm,function(){var r=1e3,i=6e4,n=36e5,a="millisecond",o="second",s="minute",l="hour",c="day",h="week",u="month",f="quarter",p="year",g="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+)?$/,y=/\[([^\]]+)]|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,_={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(A){var L=["th","st","nd","rd"],T=A%100;return"["+A+(L[(T-20)%10]||L[T]||L[0])+"]"}},C=function(A,L,T){var D=String(A);return!D||D.length>=L?A:""+Array(L+1-D.length).join(T)+A},k={s:C,z:function(A){var L=-A.utcOffset(),T=Math.abs(L),D=Math.floor(T/60),B=T%60;return(L<=0?"+":"-")+C(D,2,"0")+":"+C(B,2,"0")},m:function A(L,T){if(L.date()<T.date())return-A(T,L);var D=12*(T.year()-L.year())+(T.month()-L.month()),B=L.clone().add(D,u),j=T-B<0,U=L.clone().add(D+(j?-1:1),u);return+(-(D+(T-B)/(j?B-U:U-B))||0)},a:function(A){return A<0?Math.ceil(A)||0:Math.floor(A)},p:function(A){return{M:u,y:p,w:h,d:c,D:g,h:l,m:s,s:o,ms:a,Q:f}[A]||String(A||"").toLowerCase().replace(/s$/,"")},u:function(A){return A===void 0}},v="en",F={};F[v]=_;var M="$isDayjsObject",$=function(A){return A instanceof q||!(!A||!A[M])},H=function A(L,T,D){var B;if(!L)return v;if(typeof L=="string"){var j=L.toLowerCase();F[j]&&(B=j),T&&(F[j]=T,B=j);var U=L.split("-");if(!B&&U.length>1)return A(U[0])}else{var st=L.name;F[st]=L,B=st}return!D&&B&&(v=B),B||!D&&v},z=function(A,L){if($(A))return A.clone();var T=typeof L=="object"?L:{};return T.date=A,T.args=arguments,new q(T)},E=k;E.l=H,E.i=$,E.w=function(A,L){return z(A,{locale:L.$L,utc:L.$u,x:L.$x,$offset:L.$offset})};var q=function(){function A(T){this.$L=H(T.locale,null,!0),this.parse(T),this.$x=this.$x||T.x||{},this[M]=!0}var L=A.prototype;return L.parse=function(T){this.$d=function(D){var B=D.date,j=D.utc;if(B===null)return new Date(NaN);if(E.u(B))return new Date;if(B instanceof Date)return new Date(B);if(typeof B=="string"&&!/Z$/i.test(B)){var U=B.match(x);if(U){var st=U[2]-1||0,ut=(U[7]||"0").substring(0,3);return j?new Date(Date.UTC(U[1],st,U[3]||1,U[4]||0,U[5]||0,U[6]||0,ut)):new Date(U[1],st,U[3]||1,U[4]||0,U[5]||0,U[6]||0,ut)}}return new Date(B)}(T),this.init()},L.init=function(){var T=this.$d;this.$y=T.getFullYear(),this.$M=T.getMonth(),this.$D=T.getDate(),this.$W=T.getDay(),this.$H=T.getHours(),this.$m=T.getMinutes(),this.$s=T.getSeconds(),this.$ms=T.getMilliseconds()},L.$utils=function(){return E},L.isValid=function(){return this.$d.toString()!==m},L.isSame=function(T,D){var B=z(T);return this.startOf(D)<=B&&B<=this.endOf(D)},L.isAfter=function(T,D){return z(T)<this.startOf(D)},L.isBefore=function(T,D){return this.endOf(D)<z(T)},L.$g=function(T,D,B){return E.u(T)?this[D]:this.set(B,T)},L.unix=function(){return Math.floor(this.valueOf()/1e3)},L.valueOf=function(){return this.$d.getTime()},L.startOf=function(T,D){var B=this,j=!!E.u(D)||D,U=E.p(T),st=function(ae,Et){var se=E.w(B.$u?Date.UTC(B.$y,Et,ae):new Date(B.$y,Et,ae),B);return j?se:se.endOf(c)},ut=function(ae,Et){return E.w(B.toDate()[ae].apply(B.toDate("s"),(j?[0,0,0,0]:[23,59,59,999]).slice(Et)),B)},bt=this.$W,St=this.$M,_t=this.$D,lt="set"+(this.$u?"UTC":"");switch(U){case p:return j?st(1,0):st(31,11);case u:return j?st(1,St):st(0,St+1);case h:var ne=this.$locale().weekStart||0,me=(bt<ne?bt+7:bt)-ne;return st(j?_t-me:_t+(6-me),St);case c:case g:return ut(lt+"Hours",0);case l:return ut(lt+"Minutes",1);case s:return ut(lt+"Seconds",2);case o:return ut(lt+"Milliseconds",3);default:return this.clone()}},L.endOf=function(T){return this.startOf(T,!1)},L.$set=function(T,D){var B,j=E.p(T),U="set"+(this.$u?"UTC":""),st=(B={},B[c]=U+"Date",B[g]=U+"Date",B[u]=U+"Month",B[p]=U+"FullYear",B[l]=U+"Hours",B[s]=U+"Minutes",B[o]=U+"Seconds",B[a]=U+"Milliseconds",B)[j],ut=j===c?this.$D+(D-this.$W):D;if(j===u||j===p){var bt=this.clone().set(g,1);bt.$d[st](ut),bt.init(),this.$d=bt.set(g,Math.min(this.$D,bt.daysInMonth())).$d}else st&&this.$d[st](ut);return this.init(),this},L.set=function(T,D){return this.clone().$set(T,D)},L.get=function(T){return this[E.p(T)]()},L.add=function(T,D){var B,j=this;T=Number(T);var U=E.p(D),st=function(St){var _t=z(j);return E.w(_t.date(_t.date()+Math.round(St*T)),j)};if(U===u)return this.set(u,this.$M+T);if(U===p)return this.set(p,this.$y+T);if(U===c)return st(1);if(U===h)return st(7);var ut=(B={},B[s]=i,B[l]=n,B[o]=r,B)[U]||1,bt=this.$d.getTime()+T*ut;return E.w(bt,this)},L.subtract=function(T,D){return this.add(-1*T,D)},L.format=function(T){var D=this,B=this.$locale();if(!this.isValid())return B.invalidDate||m;var j=T||"YYYY-MM-DDTHH:mm:ssZ",U=E.z(this),st=this.$H,ut=this.$m,bt=this.$M,St=B.weekdays,_t=B.months,lt=B.meridiem,ne=function(Et,se,ir,nr){return Et&&(Et[se]||Et(D,j))||ir[se].slice(0,nr)},me=function(Et){return E.s(st%12||12,Et,"0")},ae=lt||function(Et,se,ir){var nr=Et<12?"AM":"PM";return ir?nr.toLowerCase():nr};return j.replace(y,function(Et,se){return se||function(ir){switch(ir){case"YY":return String(D.$y).slice(-2);case"YYYY":return E.s(D.$y,4,"0");case"M":return bt+1;case"MM":return E.s(bt+1,2,"0");case"MMM":return ne(B.monthsShort,bt,_t,3);case"MMMM":return ne(_t,bt);case"D":return D.$D;case"DD":return E.s(D.$D,2,"0");case"d":return String(D.$W);case"dd":return ne(B.weekdaysMin,D.$W,St,2);case"ddd":return ne(B.weekdaysShort,D.$W,St,3);case"dddd":return St[D.$W];case"H":return String(st);case"HH":return E.s(st,2,"0");case"h":return me(1);case"hh":return me(2);case"a":return ae(st,ut,!0);case"A":return ae(st,ut,!1);case"m":return String(ut);case"mm":return E.s(ut,2,"0");case"s":return String(D.$s);case"ss":return E.s(D.$s,2,"0");case"SSS":return E.s(D.$ms,3,"0");case"Z":return U}return null}(Et)||U.replace(":","")})},L.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},L.diff=function(T,D,B){var j,U=this,st=E.p(D),ut=z(T),bt=(ut.utcOffset()-this.utcOffset())*i,St=this-ut,_t=function(){return E.m(U,ut)};switch(st){case p:j=_t()/12;break;case u:j=_t();break;case f:j=_t()/3;break;case h:j=(St-bt)/6048e5;break;case c:j=(St-bt)/864e5;break;case l:j=St/n;break;case s:j=St/i;break;case o:j=St/r;break;default:j=St}return B?j:E.a(j)},L.daysInMonth=function(){return this.endOf(u).$D},L.$locale=function(){return F[this.$L]},L.locale=function(T,D){if(!T)return this.$L;var B=this.clone(),j=H(T,D,!0);return j&&(B.$L=j),B},L.clone=function(){return E.w(this.$d,this)},L.toDate=function(){return new Date(this.valueOf())},L.toJSON=function(){return this.isValid()?this.toISOString():null},L.toISOString=function(){return this.$d.toISOString()},L.toString=function(){return this.$d.toUTCString()},A}(),O=q.prototype;return z.prototype=O,[["$ms",a],["$s",o],["$m",s],["$H",l],["$W",c],["$M",u],["$y",p],["$D",g]].forEach(function(A){O[A[1]]=function(L){return this.$g(L,A[0],A[1])}}),z.extend=function(A,L){return A.$i||(A(L,q,z),A.$i=!0),z},z.locale=H,z.isDayjs=$,z.unix=function(A){return z(1e3*A)},z.en=F[v],z.Ls=F,z.p={},z})})(nh);var Sm=nh.exports;const Tm=km(Sm),Sn={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 n=r<.5?r*(1+t):r+t-r*t,a=2*r-n;switch(i){case"r":return Sn.hue2rgb(a,n,e+1/3)*255;case"g":return Sn.hue2rgb(a,n,e)*255;case"b":return Sn.hue2rgb(a,n,e-1/3)*255}},rgb2hsl:({r:e,g:t,b:r},i)=>{e/=255,t/=255,r/=255;const n=Math.max(e,t,r),a=Math.min(e,t,r),o=(n+a)/2;if(i==="l")return o*100;if(n===a)return 0;const s=n-a,l=o>.5?s/(2-n-a):s/(n+a);if(i==="s")return l*100;switch(n){case e:return((t-r)/s+(t<r?6:0))*60;case t:return((r-e)/s+2)*60;case r:return((e-t)/s+4)*60;default:return-1}}},Am={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},Lm={dec2hex:e=>{const t=Math.round(e).toString(16);return t.length>1?t:`0${t}`}},it={channel:Sn,lang:Am,unit:Lm},Xe={};for(let e=0;e<=255;e++)Xe[e]=it.unit.dec2hex(e);const Ht={ALL:0,RGB:1,HSL:2};class Bm{constructor(){this.type=Ht.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=Ht.ALL}is(t){return this.type===t}}class Mm{constructor(t,r){this.color=r,this.changed=!1,this.data=t,this.type=new Bm}set(t,r){return this.color=r,this.changed=!1,this.data=t,this.type.type=Ht.ALL,this}_ensureHSL(){const t=this.data,{h:r,s:i,l:n}=t;r===void 0&&(t.h=it.channel.rgb2hsl(t,"h")),i===void 0&&(t.s=it.channel.rgb2hsl(t,"s")),n===void 0&&(t.l=it.channel.rgb2hsl(t,"l"))}_ensureRGB(){const t=this.data,{r,g:i,b:n}=t;r===void 0&&(t.r=it.channel.hsl2rgb(t,"r")),i===void 0&&(t.g=it.channel.hsl2rgb(t,"g")),n===void 0&&(t.b=it.channel.hsl2rgb(t,"b"))}get r(){const t=this.data,r=t.r;return!this.type.is(Ht.HSL)&&r!==void 0?r:(this._ensureHSL(),it.channel.hsl2rgb(t,"r"))}get g(){const t=this.data,r=t.g;return!this.type.is(Ht.HSL)&&r!==void 0?r:(this._ensureHSL(),it.channel.hsl2rgb(t,"g"))}get b(){const t=this.data,r=t.b;return!this.type.is(Ht.HSL)&&r!==void 0?r:(this._ensureHSL(),it.channel.hsl2rgb(t,"b"))}get h(){const t=this.data,r=t.h;return!this.type.is(Ht.RGB)&&r!==void 0?r:(this._ensureRGB(),it.channel.rgb2hsl(t,"h"))}get s(){const t=this.data,r=t.s;return!this.type.is(Ht.RGB)&&r!==void 0?r:(this._ensureRGB(),it.channel.rgb2hsl(t,"s"))}get l(){const t=this.data,r=t.l;return!this.type.is(Ht.RGB)&&r!==void 0?r:(this._ensureRGB(),it.channel.rgb2hsl(t,"l"))}get a(){return this.data.a}set r(t){this.type.set(Ht.RGB),this.changed=!0,this.data.r=t}set g(t){this.type.set(Ht.RGB),this.changed=!0,this.data.g=t}set b(t){this.type.set(Ht.RGB),this.changed=!0,this.data.b=t}set h(t){this.type.set(Ht.HSL),this.changed=!0,this.data.h=t}set s(t){this.type.set(Ht.HSL),this.changed=!0,this.data.s=t}set l(t){this.type.set(Ht.HSL),this.changed=!0,this.data.l=t}set a(t){this.changed=!0,this.data.a=t}}const ha=new Mm({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),n=r.length,a=n%4===0,o=n>4,s=o?1:17,l=o?8:4,c=a?0:-1,h=o?255:15;return ha.set({r:(i>>l*(c+3)&h)*s,g:(i>>l*(c+2)&h)*s,b:(i>>l*(c+1)&h)*s,a:a?(i&h)*s/255:1},e)},stringify:e=>{const{r:t,g:r,b:i,a:n}=e;return n<1?`#${Xe[Math.round(t)]}${Xe[Math.round(r)]}${Xe[Math.round(i)]}${Xe[Math.round(n*255)]}`:`#${Xe[Math.round(t)]}${Xe[Math.round(r)]}${Xe[Math.round(i)]}`}},gr={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(gr.hueRe);if(t){const[,r,i]=t;switch(i){case"grad":return it.channel.clamp.h(parseFloat(r)*.9);case"rad":return it.channel.clamp.h(parseFloat(r)*180/Math.PI);case"turn":return it.channel.clamp.h(parseFloat(r)*360)}}return it.channel.clamp.h(parseFloat(e))},parse:e=>{const t=e.charCodeAt(0);if(t!==104&&t!==72)return;const r=e.match(gr.re);if(!r)return;const[,i,n,a,o,s]=r;return ha.set({h:gr._hue2deg(i),s:it.channel.clamp.s(parseFloat(n)),l:it.channel.clamp.l(parseFloat(a)),a:o?it.channel.clamp.a(s?parseFloat(o)/100:parseFloat(o)):1},e)},stringify:e=>{const{h:t,s:r,l:i,a:n}=e;return n<1?`hsla(${it.lang.round(t)}, ${it.lang.round(r)}%, ${it.lang.round(i)}%, ${n})`:`hsl(${it.lang.round(t)}, ${it.lang.round(r)}%, ${it.lang.round(i)}%)`}},Ri={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=Ri.colors[e];if(t)return qr.parse(t)},stringify:e=>{const t=qr.stringify(e);for(const r in Ri.colors)if(Ri.colors[r]===t)return r}},Ei={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(Ei.re);if(!r)return;const[,i,n,a,o,s,l,c,h]=r;return ha.set({r:it.channel.clamp.r(n?parseFloat(i)*2.55:parseFloat(i)),g:it.channel.clamp.g(o?parseFloat(a)*2.55:parseFloat(a)),b:it.channel.clamp.b(l?parseFloat(s)*2.55:parseFloat(s)),a:c?it.channel.clamp.a(h?parseFloat(c)/100:parseFloat(c)):1},e)},stringify:e=>{const{r:t,g:r,b:i,a:n}=e;return n<1?`rgba(${it.lang.round(t)}, ${it.lang.round(r)}, ${it.lang.round(i)}, ${it.lang.round(n)})`:`rgb(${it.lang.round(t)}, ${it.lang.round(r)}, ${it.lang.round(i)})`}},Be={format:{keyword:Ri,hex:qr,rgb:Ei,rgba:Ei,hsl:gr,hsla:gr},parse:e=>{if(typeof e!="string")return e;const t=qr.parse(e)||Ei.parse(e)||gr.parse(e)||Ri.parse(e);if(t)return t;throw new Error(`Unsupported color format: "${e}"`)},stringify:e=>!e.changed&&e.color?e.color:e.type.is(Ht.HSL)||e.data.r===void 0?gr.stringify(e):e.a<1||!Number.isInteger(e.r)||!Number.isInteger(e.g)||!Number.isInteger(e.b)?Ei.stringify(e):qr.stringify(e)},ah=(e,t)=>{const r=Be.parse(e);for(const i in t)r[i]=it.channel.clamp[i](t[i]);return Be.stringify(r)},Ii=(e,t,r=0,i=1)=>{if(typeof e!="number")return ah(e,{a:t});const n=ha.set({r:it.channel.clamp.r(e),g:it.channel.clamp.g(t),b:it.channel.clamp.b(r),a:it.channel.clamp.a(i)});return Be.stringify(n)},Em=e=>{const{r:t,g:r,b:i}=Be.parse(e),n=.2126*it.channel.toLinear(t)+.7152*it.channel.toLinear(r)+.0722*it.channel.toLinear(i);return it.lang.round(n)},Fm=e=>Em(e)>=.5,Ji=e=>!Fm(e),sh=(e,t,r)=>{const i=Be.parse(e),n=i[t],a=it.channel.clamp[t](n+r);return n!==a&&(i[t]=a),Be.stringify(i)},K=(e,t)=>sh(e,"l",t),tt=(e,t)=>sh(e,"l",-t),S=(e,t)=>{const r=Be.parse(e),i={};for(const n in t)t[n]&&(i[n]=r[n]+t[n]);return ah(e,i)},$m=(e,t,r=50)=>{const{r:i,g:n,b:a,a:o}=Be.parse(e),{r:s,g:l,b:c,a:h}=Be.parse(t),u=r/100,f=u*2-1,p=o-h,m=((f*p===-1?f:(f+p)/(1+f*p))+1)/2,x=1-m,y=i*m+s*x,_=n*m+l*x,C=a*m+c*x,k=o*u+h*(1-u);return Ii(y,_,C,k)},W=(e,t=100)=>{const r=Be.parse(e);return r.r=255-r.r,r.g=255-r.g,r.b=255-r.b,$m(r,e,t)};/*! @license DOMPurify 3.4.17 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.17/LICENSE */function Ol(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,i=Array(t);r<t;r++)i[r]=e[r];return i}function Dm(e){if(Array.isArray(e))return e}function Om(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var i,n,a,o,s=[],l=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(i=a.call(r)).done)&&(s.push(i.value),s.length!==t);l=!0);}catch(h){c=!0,n=h}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw n}}return s}}function Rm(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
3
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */function Im(e,t){return Dm(e)||Om(e,t)||Pm(e,t)||Rm()}function Pm(e,t){if(e){if(typeof e=="string")return Ol(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ol(e,t):void 0}}const oh=Object.entries,Rl=Object.setPrototypeOf,Nm=Object.isFrozen,lh=Object.getPrototypeOf,ch=Object.getOwnPropertyDescriptor;let Ot=Object.freeze,zt=Object.seal,Ir=Object.create,hh=typeof Reflect<"u"&&Reflect,Ss=hh.apply,Ts=hh.construct;Ot||(Ot=function(t){return t});zt||(zt=function(t){return t});Ss||(Ss=function(t,r){for(var i=arguments.length,n=new Array(i>2?i-2:0),a=2;a<i;a++)n[a-2]=arguments[a];return t.apply(r,n)});Ts||(Ts=function(t){for(var r=arguments.length,i=new Array(r>1?r-1:0),n=1;n<r;n++)i[n-1]=arguments[n];return new t(...i)});const $e=vt(Array.prototype.forEach),zm=vt(Array.prototype.lastIndexOf),Il=vt(Array.prototype.pop),Ci=vt(Array.prototype.push),qm=vt(Array.prototype.slice),Wm=vt(Array.prototype.splice),Wr=Array.isArray,rs=uh(Set),is=vt(Set.prototype.add),wi=vt(Set.prototype.has),ur=vt(String.prototype.toLowerCase),ns=vt(String.prototype.toString),Pl=vt(String.prototype.match),ki=vt(String.prototype.replace),Nl=vt(String.prototype.indexOf),Hm=vt(String.prototype.trim),jm=vt(Number.prototype.toString),Um=vt(Boolean.prototype.toString),zl=typeof BigInt>"u"?null:vt(BigInt.prototype.toString),ql=typeof Symbol>"u"?null:vt(Symbol.prototype.toString),ee=vt(Object.prototype.hasOwnProperty),vi=vt(Object.prototype.toString),Rt=vt(RegExp.prototype.test),De=uh(TypeError);function vt(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var r=arguments.length,i=new Array(r>1?r-1:0),n=1;n<r;n++)i[n-1]=arguments[n];return Ss(e,t,i)}}function uh(e){return function(){for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return Ts(e,r)}}function ht(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ur;if(Rl&&Rl(e,null),!Wr(t))return e;let i=t.length;for(;i--;){let n=t[i];if(typeof n=="string"){const a=r(n);a!==n&&(Nm(t)||(t[i]=a),n=a)}e[n]=!0}return e}function Ym(e){for(let t=0;t<e.length;t++)ee(e,t)||(e[t]=null);return e}function le(e){const t=Ir(null);for(const i of oh(e)){var r=Im(i,2);const n=r[0],a=r[1];ee(e,n)&&(Wr(a)?t[n]=Ym(a):a&&typeof a=="object"&&a.constructor===Object?t[n]=le(a):t[n]=a)}return t}function Gm(e){switch(typeof e){case"string":return e;case"number":return jm(e);case"boolean":return Um(e);case"bigint":return zl?zl(e):"0";case"symbol":return ql?ql(e):"Symbol()";case"undefined":return vi(e);case"function":case"object":{if(e===null)return vi(e);const t=e,r=pe(t,"toString");if(typeof r=="function"){const i=r(t);return typeof i=="string"?i:vi(i)}return vi(e)}default:return vi(e)}}function pe(e,t){for(;e!==null;){const i=ch(e,t);if(i){if(i.get)return vt(i.get);if(typeof i.value=="function")return vt(i.value)}e=lh(e)}function r(){return null}return r}function Vm(e,t){for(;e!==null;){const r=ch(e,t);if(r)return r.get?vt(r.get):null;e=lh(e)}return null}function Xm(e){try{return Rt(e,""),!0}catch{return!1}}const Wl=Ot(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),as=Ot(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),ss=Ot(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Zm=Ot(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),os=Ot(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),Km=Ot(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Hl=Ot(["#text"]),jl=Ot(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),ls=Ot(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dominant-baseline","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","pointer-events","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-orientation","text-rendering","textlength","type","u1","u2","unicode","values","vector-effect","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Ul=Ot(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),yn=Ot(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Qm=zt(/{{[\w\W]*|^[\w\W]*}}/g),Jm=zt(/<%[\w\W]*|^[\w\W]*%>/g),ty=zt(/\${[\w\W]*/g),ey=zt(/^data-[\-\w.\u00B7-\uFFFF]+$/),ry=zt(/^aria-[\-\w]+$/),Yl=zt(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),iy=zt(/^(?:\w+script|data):/i),ny=zt(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ay=zt(/^html$/i),sy=zt(/^[a-z][.\w]*(-[.\w]+)+$/i),cs=zt(/<[/\w!]/g),Gl=zt(/<[/\w]/g),oy=zt(/<\/no(script|embed|frames)/i),Vl=zt(/\/>/i),Bt={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},ly=Ot(ht({},["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"])),cy=function(){return typeof window>"u"?null:window},hy=function(t,r){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let i=null;const n="data-tt-policy-suffix";r&&r.hasAttribute(n)&&(i=r.getAttribute(n));const a="dompurify"+(i?"#"+i:"");try{return t.createPolicy(a,{createHTML(o){return o},createScriptURL(o){return o}})}catch{return console.warn("TrustedTypes policy "+a+" could not be created."),null}},Xl=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},Ge=function(t,r,i,n){return ee(t,r)&&Wr(t[r])?ht(n.base?le(n.base):{},t[r],n.transform):i},hs=function(t,r,i){const n=ee(t,r)?t[r]:void 0;return n&&typeof n=="object"?le(n):i()};function fh(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:cy();const t=N=>fh(N);if(t.version="3.4.17",t.removed=[],!e||!e.document||e.document.nodeType!==Bt.document||!e.Element)return t.isSupported=!1,t;let r=e.document;const i=r,n=i.currentScript;e.DocumentFragment;const a=e.HTMLTemplateElement,o=e.Node,s=e.Element,l=e.NodeFilter;e.NamedNodeMap===void 0&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;const c=e.DOMParser,h=e.trustedTypes,u=s.prototype,f=pe(u,"cloneNode"),p=pe(u,"remove"),g=pe(u,"removeAttributeNode"),m=pe(u,"nextSibling"),x=pe(u,"childNodes"),y=pe(u,"parentNode"),_=pe(u,"shadowRoot"),C=pe(u,"attributes"),k=o&&o.prototype?pe(o.prototype,"nodeType"):null,v=o&&o.prototype?pe(o.prototype,"nodeName"):null,F=o&&o.prototype?pe(o.prototype,"ownerDocument"):null,M=function(b){return k?k(b):b.nodeType},$=function(b){return v?v(b):b.nodeName},H=Vm(u,"namespaceURI"),z=function(b){return H?H(b):b.namespaceURI};if(typeof a=="function"){const N=r.createElement("template");N.content&&N.content.ownerDocument&&(r=N.content.ownerDocument)}let E,q="",O,A=!1,L=0;const T=function(){if(L>0)throw De('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},D=function(b){T(),L++;try{return E.createHTML(b)}finally{L--}},B=function(b){T(),L++;try{return E.createScriptURL(b)}finally{L--}},j=function(){return A||(O=hy(h,n),A=!0),O},U=r,st=U.implementation,ut=U.createNodeIterator,bt=U.createDocumentFragment,St=U.getElementsByTagName,_t=i.importNode;let lt=Xl();t.isSupported=typeof oh=="function"&&typeof y=="function"&&st&&st.createHTMLDocument!==void 0;const ne=Qm,me=Jm,ae=ty,Et=ey,se=ry,ir=iy,nr=ny,Jg=sy;let al=Yl,Ct=null;const Da=ht({},[...Wl,...as,...ss,...os,...Hl]);let wt=null;const Oa=ht({},[...jl,...ls,...Ul,...yn]);let Ce=Object.seal(Ir(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),mi=null,sl=null;const je=Object.seal(Ir(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let ol=!0,Ra=!0,ll=!1,Ia=!0,Fe=!1,ar=!0,sr=!1,Pa=!1,ln=null,cn=null,Na=!1,Br=!1,hn=!1,un=!1,cl=!0,hl=!1;const ul="user-content-";let za=!0,qa=!1,or=null,Mr={},lr=null;const fl=ht({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]);let pl=null;const dl=ht({},["audio","video","img","source","image","track"]);let gl=null;const ml=ht({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),fn="http://www.w3.org/1998/Math/MathML",pn="http://www.w3.org/2000/svg",we="http://www.w3.org/1999/xhtml";let Er=we,Wa=!1,Ha=null;const tm=ht({},[fn,pn,we],ns),yl=Ot(["mi","mo","mn","ms","mtext"]);let ja=ht({},yl);const xl=Ot(["annotation-xml"]);let Ua=ht({},xl);const em=ht({},["title","style","font","a","script"]);let yi=null;const rm=["application/xhtml+xml","text/html"],im="text/html";let Tt=null,Fr=null;const nm=r.createElement("form"),bl=function(b){return b instanceof RegExp||b instanceof Function},Ya=function(){let b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(Fr&&Fr===b)return;(!b||typeof b!="object")&&(b={}),b=le(b),yi=rm.indexOf(b.PARSER_MEDIA_TYPE)===-1?im:b.PARSER_MEDIA_TYPE,Tt=yi==="application/xhtml+xml"?ns:ur,Ct=Ge(b,"ALLOWED_TAGS",Da,{transform:Tt}),wt=Ge(b,"ALLOWED_ATTR",Oa,{transform:Tt}),Ha=Ge(b,"ALLOWED_NAMESPACES",tm,{transform:ns}),gl=Ge(b,"ADD_URI_SAFE_ATTR",ml,{transform:Tt,base:ml}),pl=Ge(b,"ADD_DATA_URI_TAGS",dl,{transform:Tt,base:dl}),lr=Ge(b,"FORBID_CONTENTS",fl,{transform:Tt}),mi=Ge(b,"FORBID_TAGS",le({}),{transform:Tt}),sl=Ge(b,"FORBID_ATTR",le({}),{transform:Tt}),Mr=ee(b,"USE_PROFILES")?b.USE_PROFILES&&typeof b.USE_PROFILES=="object"?le(b.USE_PROFILES):b.USE_PROFILES:!1,ol=b.ALLOW_ARIA_ATTR!==!1,Ra=b.ALLOW_DATA_ATTR!==!1,ll=b.ALLOW_UNKNOWN_PROTOCOLS||!1,Ia=b.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Fe=b.SAFE_FOR_TEMPLATES||!1,ar=b.SAFE_FOR_XML!==!1,sr=b.WHOLE_DOCUMENT||!1,Br=b.RETURN_DOM||!1,hn=b.RETURN_DOM_FRAGMENT||!1,un=b.RETURN_TRUSTED_TYPE||!1,Na=b.FORCE_BODY||!1,cl=b.SANITIZE_DOM!==!1,hl=b.SANITIZE_NAMED_PROPS||!1,za=b.KEEP_CONTENT!==!1,qa=b.IN_PLACE||!1,al=Xm(b.ALLOWED_URI_REGEXP)?b.ALLOWED_URI_REGEXP:Yl,Er=typeof b.NAMESPACE=="string"?b.NAMESPACE:we,ja=hs(b,"MATHML_TEXT_INTEGRATION_POINTS",()=>ht({},yl)),Ua=hs(b,"HTML_INTEGRATION_POINTS",()=>ht({},xl));const w=hs(b,"CUSTOM_ELEMENT_HANDLING",()=>Ir(null));if(Ce=Ir(null),ee(w,"tagNameCheck")&&bl(w.tagNameCheck)&&(Ce.tagNameCheck=w.tagNameCheck),ee(w,"attributeNameCheck")&&bl(w.attributeNameCheck)&&(Ce.attributeNameCheck=w.attributeNameCheck),ee(w,"allowCustomizedBuiltInElements")&&typeof w.allowCustomizedBuiltInElements=="boolean"&&(Ce.allowCustomizedBuiltInElements=w.allowCustomizedBuiltInElements),zt(Ce),Fe&&(Ra=!1),hn&&(Br=!0),Mr&&(Ct=ht({},Hl),wt=Ir(null),Mr.html===!0&&(ht(Ct,Wl),ht(wt,jl)),Mr.svg===!0&&(ht(Ct,as),ht(wt,ls),ht(wt,yn)),Mr.svgFilters===!0&&(ht(Ct,ss),ht(wt,ls),ht(wt,yn)),Mr.mathMl===!0&&(ht(Ct,os),ht(wt,Ul),ht(wt,yn))),je.tagCheck=null,je.attributeCheck=null,ee(b,"ADD_TAGS")&&(typeof b.ADD_TAGS=="function"?je.tagCheck=b.ADD_TAGS:Wr(b.ADD_TAGS)&&(Ct===Da&&(Ct=le(Ct)),ht(Ct,b.ADD_TAGS,Tt))),ee(b,"ADD_ATTR")&&(typeof b.ADD_ATTR=="function"?je.attributeCheck=b.ADD_ATTR:Wr(b.ADD_ATTR)&&(wt===Oa&&(wt=le(wt)),ht(wt,b.ADD_ATTR,Tt))),ee(b,"ADD_FORBID_CONTENTS")&&Wr(b.ADD_FORBID_CONTENTS)&&(lr===fl&&(lr=le(lr)),ht(lr,b.ADD_FORBID_CONTENTS,Tt)),za&&(Ct["#text"]=!0),sr&&ht(Ct,["html","head","body"]),Ct.table&&(ht(Ct,["tbody"]),delete mi.tbody),b.TRUSTED_TYPES_POLICY){if(typeof b.TRUSTED_TYPES_POLICY.createHTML!="function")throw De('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof b.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw De('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const R=E;E=b.TRUSTED_TYPES_POLICY;try{q=D("")}catch(I){throw E=R,I}}else b.TRUSTED_TYPES_POLICY===null?(E=void 0,q=""):(E===void 0&&(E=j()),E&&typeof q=="string"&&(q=D("")));Ot&&Ot(b),Fr=b},_l=ht({},[...as,...ss,...Zm]),Cl=ht({},[...os,...Km]),am=function(b,w,R){return w.namespaceURI===we?b==="svg":w.namespaceURI===fn?b==="svg"&&(R==="annotation-xml"||ja[R]):!!_l[b]},sm=function(b,w,R){return w.namespaceURI===we?b==="math":w.namespaceURI===pn?b==="math"&&Ua[R]:!!Cl[b]},om=function(b,w,R){return w.namespaceURI===pn&&!Ua[R]||w.namespaceURI===fn&&!ja[R]?!1:!Cl[b]&&(em[b]||!_l[b])},lm=function(b){const w=z(b),R=ur($(b)),I=y(b);let Z,rt;return I&&M(I)===Bt.element?(Z={namespaceURI:z(I)},rt=ur($(I))):(Z={namespaceURI:Er},rt="template"),Ha[w]?w===pn?am(R,Z,rt):w===fn?sm(R,Z,rt):w===we?om(R,Z,rt):!!(yi==="application/xhtml+xml"&&Ha[w]):!1},Ue=function(b){Ci(t.removed,{element:b});try{y(b).removeChild(b)}catch{if(p(b),!y(b))throw De("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},wl=function(b,w,R){try{g(b,w)}catch{try{b.removeAttribute(R)}catch{}}},Ga=function(b){Xa(b);const w=x(b);w&&$e(qm(w),I=>{try{p(I)}catch{}});const R=M(b)===Bt.element?C(b):null;if(R)for(let I=R.length-1;I>=0;--I){const Z=R[I],rt=Z&&Z.name;typeof rt=="string"&&wl(b,Z,rt)}},$r=function(b,w,R){if(!R)try{R=w.getAttributeNode(b)}catch{R=null}Ci(t.removed,{attribute:R||null,from:w});try{R?g(w,R):w.removeAttribute(b)}catch{try{w.removeAttribute(b)}catch{}}if(b==="is")if(Br||hn)try{Ue(w)}catch{}else try{w.setAttribute(b,"")}catch{}},kl=function(b){const w=C(b);if(w)for(let R=w.length-1;R>=0;--R){const I=w[R],Z=I&&I.name;typeof Z!="string"||wt[Tt(Z)]||wl(b,I,Z)}},Va=function(b,w){let R=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const I=[b];for(;I.length>0;){const Z=I.pop();if(w(Z)===!1)continue;if(R&&M(Z)===Bt.element){const ot=_(Z);Ye(ot)&&I.push(ot)}const rt=x(Z);if(rt)for(let ot=rt.length-1;ot>=0;--ot)I.push(rt[ot])}},Xa=function(b){Va(b,w=>{M(w)===Bt.element&&kl(w)})},Za=function(b){const w=[];return Va(b,R=>{w.push(R)},!0),w},cm=function(b,w){const R=rs();$e(Za(b),I=>{M(I)===Bt.element&&is(R,I)}),$e(w,I=>{M(I)===Bt.element&&!wi(R,I)&&kl(I)})},vl=function(b,w){let R=!1;return $e(t.removed,I=>{I.element&&(R=R||I.element===b,Xa(I.element))}),cm(b,w),R},hm=8,um=function(b,w){const R=or;let I=null;const Z=()=>(I||(I=rs(),$e(w,rt=>{is(I,rt)})),I);for(let rt=0;;rt++){const ot=Za(b),Ft=[b];let ke=!1;if($e(ot,Vt=>{M(Vt)===Bt.documentFragment?Ci(Ft,Vt):!ke&&!wi(R,Vt)&&(ke=wi(Z(),Vt))}),!ke)return;if(rt>=hm)throw De("the tree kept changing during in-place sanitization; refusing to return it");$e(Ft,(Vt,Qt)=>{fm(Vt,Qt>0,b,Z())})}},fm=function(b,w,R,I){const Z=Ka(b);let rt;for(;rt=Z.nextNode();)!wi(I,rt)||wi(or,rt)||(w&&ye(lt.uponSanitizeShadowNode,rt,null),Ja(rt,R),ts(rt,R),Ye(rt.content)&&bi(rt.content))},pm=function(b){or&&is(or,b)},Sl=function(b,w){return ar?b==="patchsrc"?!0:b==="for"&&w!=="label"&&w!=="output":!1},dm=function(b){ar&&Va(b,w=>{const R=M(w);if(R===Bt.processingInstruction||R===Bt.comment&&Rt(Gl,w.data)){try{p(w)}catch{}return!1}if(R===Bt.element){const I=w,Z=Tt($(w));try{I.hasAttribute&&I.hasAttribute("patchsrc")&&I.removeAttribute("patchsrc"),I.hasAttribute&&I.hasAttribute("for")&&Sl("for",Z)&&I.removeAttribute("for")}catch{}}return!0})},Tl=function(b){let w=null,R=null;if(Na)b="<remove></remove>"+b;else{const rt=Pl(b,/^[\r\n\t ]+/);R=rt&&rt[0]}yi==="application/xhtml+xml"&&Er===we&&(b='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+b+"</body></html>");const I=E?D(b):b;if(Er===we)try{w=new c().parseFromString(I,yi)}catch{}if(!w||!w.documentElement){w=st.createDocument(Er,"template",null);try{w.documentElement.innerHTML=Wa?q:I}catch{}}const Z=w.body||w.documentElement;return b&&R&&Z.insertBefore(r.createTextNode(R),Z.childNodes[0]||null),Er===we?St.call(w,sr?"html":"body")[0]:sr?w.documentElement:Z},Ka=function(b){const w=F?F(b):b.ownerDocument;return ut.call(w||b,b,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT|l.SHOW_PROCESSING_INSTRUCTION|l.SHOW_CDATA_SECTION,null)},dn=function(b){return b=ki(b,ne," "),b=ki(b,me," "),b=ki(b,ae," "),b},Qa=function(b){var w;Al(b);const R=(w=b.querySelectorAll)===null||w===void 0?void 0:w.call(b,"template");R&&$e(R,I=>{Ye(I.content)&&Qa(I.content)})},Al=function(b){b.normalize();const w=F?F(b):b.ownerDocument,R=ut.call(w||b,b,l.SHOW_TEXT|l.SHOW_COMMENT|l.SHOW_CDATA_SECTION|l.SHOW_PROCESSING_INSTRUCTION,null);let I=R.nextNode();for(;I;)I.data=dn(I.data),I=R.nextNode()},gn=function(b){const w=v?v(b):null;return typeof w!="string"||Tt(w)!=="form"?!1:typeof b.nodeName!="string"||typeof b.textContent!="string"||typeof b.removeChild!="function"||b.attributes!==C(b)||typeof b.removeAttribute!="function"||typeof b.removeAttributeNode!="function"||typeof b.getAttributeNode!="function"||typeof b.setAttribute!="function"||typeof b.namespaceURI!="string"||typeof b.insertBefore!="function"||typeof b.hasChildNodes!="function"||b.nodeType!==k(b)||b.childNodes!==x(b)},Ye=function(b){if(!k||typeof b!="object"||b===null)return!1;try{return k(b)===Bt.documentFragment}catch{return!1}},xi=function(b){if(!k||typeof b!="object"||b===null)return!1;try{return typeof k(b)=="number"}catch{return!1}};function ye(N,b,w){N.length!==0&&$e(N,R=>{R.call(t,b,w,Fr)})}const gm=function(b,w){return!!(ar&&b.hasChildNodes()&&!xi(b.firstElementChild)&&Rt(cs,b.textContent)&&Rt(cs,b.innerHTML)||ar&&ly[w]&&M(b)===Bt.element&&z(b)===we&&(xi(b.firstElementChild)||typeof b.textContent=="string"&&Rt(cs,b.textContent))||b.nodeType===Bt.processingInstruction||ar&&b.nodeType===Bt.comment&&Rt(Gl,b.data))},mn=function(b,w){if(b instanceof RegExp)return Rt(b,w);if(b instanceof Function){for(var R=arguments.length,I=new Array(R>2?R-2:0),Z=2;Z<R;Z++)I[Z-2]=arguments[Z];return!!b(w,...I)}return!1},mm=function(b,w,R){if(!mi[w]&&Ml(w)&&mn(Ce.tagNameCheck,w))return!1;if(za&&!lr[w]&&!lr[ur(w)]){const I=y(b),Z=x(b);if(Z&&I){const rt=Z.length;for(let ot=rt-1;ot>=0;--ot){const Ft=b===R?f(Z[ot],!0):Z[ot];I.insertBefore(Ft,m(b))}}}return Ue(b),!0},Ll=function(b,w,R,I){return b.length===0?w:w===R||w===I?le(w):w},Dr=function(b,w){return b===w||y(b)!==null?!1:(qa&&Xa(b),!0)},Ja=function(b,w){if(pm(b),ye(lt.beforeSanitizeElements,b,null),Dr(b,w))return!0;if(gn(b))return Ue(b),!0;const R=Tt($(b));if(Ct=Ll(lt.uponSanitizeElement,Ct,Da,ln),ye(lt.uponSanitizeElement,b,{tagName:R,allowedTags:Ct}),Dr(b,w))return!0;if(gm(b,R))return Ue(b),!0;if(mi[R]||!(je.tagCheck instanceof Function&&je.tagCheck(R))&&!Ct[R]){const I=mm(b,R,w);return I===!1&&(ye(lt.afterSanitizeElements,b,null),Dr(b,w))?!0:I}if(M(b)===Bt.element&&!lm(b)||(R==="noscript"||R==="noembed"||R==="noframes")&&Rt(oy,b.innerHTML))return Ue(b),!0;if(Fe&&b.nodeType===Bt.text){const I=dn(b.textContent);b.textContent!==I&&(Ci(t.removed,{element:b.cloneNode()}),b.textContent=I)}return ye(lt.afterSanitizeElements,b,null),Dr(b,w)},Bl=function(b,w,R){if(sl[w]||Sl(w,b)||cl&&(w==="id"||w==="name")&&(R in r||R in nm))return!1;const I=wt[w]||je.attributeCheck instanceof Function&&je.attributeCheck(w,b);return Ra&&Rt(Et,w)||ol&&Rt(se,w)?!0:I?gl[w]||Rt(al,ki(R,nr,""))||(w==="src"||w==="xlink:href"||w==="href")&&b!=="script"&&Nl(R,"data:")===0&&pl[b]||ll&&!Rt(ir,ki(R,nr,""))?!0:!R:Ml(b)&&mn(Ce.tagNameCheck,b)&&mn(Ce.attributeNameCheck,w,b)||w==="is"&&Ce.allowCustomizedBuiltInElements&&mn(Ce.tagNameCheck,R)},ym=ht({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),Ml=function(b){return!ym[ur(b)]&&Rt(Jg,b)},xm=function(b,w,R,I){if(E&&typeof h=="object"&&typeof h.getAttributeType=="function"&&!R)switch(h.getAttributeType(b,w)){case"TrustedHTML":return D(I);case"TrustedScriptURL":return B(I)}return I},bm=function(b,w,R,I){try{return R?b.setAttributeNS(R,w,I):b.setAttribute(w,I),gn(b)?(Ue(b),!1):!0}catch{return $r(w,b),!1}},El=function(b,w){return ar&&Rt(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,w)?!0:ur(b)==="attributename"&&Pl(w,"href")!==null},ts=function(b,w){if(ye(lt.beforeSanitizeAttributes,b,null),Dr(b,w))return;const R=b.attributes;if(!R||gn(b))return;wt=Ll(lt.uponSanitizeAttribute,wt,Oa,cn);const I={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:wt,forceKeepAttr:void 0};let Z=R.length;const rt=Tt(b.nodeName);for(;Z--;){const ot=R[Z],Ft=ot.name,ke=ot.namespaceURI,Vt=ot.value,Qt=Tt(Ft),Or=Vt;let Jt=Ft==="value"?Or:Hm(Or),Fl=!1;if(I.attrName=Qt,I.attrValue=Jt,I.keepAttr=!0,I.forceKeepAttr=void 0,ye(lt.uponSanitizeAttribute,b,I),Jt=I.attrValue,hl&&(Qt==="id"||Qt==="name")&&Nl(Jt,ul)!==0&&($r(Ft,b,ot),Jt=ul+Jt,Fl=!0),El(Ft,Jt)){$r(Ft,b,ot);continue}if(!I.forceKeepAttr){if(!I.keepAttr){$r(Ft,b,ot);continue}if(!Ia&&Rt(Vl,Jt)){$r(Ft,b,ot);continue}if(Fe&&(Jt=dn(Jt)),!Bl(rt,Qt,Jt)){$r(Ft,b,ot);continue}Jt=xm(rt,Qt,ke,Jt),Jt!==Or&&bm(b,Ft,ke,Jt)&&Fl&&Il(t.removed)}}ye(lt.afterSanitizeAttributes,b,null),Dr(b,w)},bi=function(b){let w=null;const R=Ka(b);for(ye(lt.beforeSanitizeShadowDOM,b,null);w=R.nextNode();)if(ye(lt.uponSanitizeShadowNode,w,null),Ja(w,b),ts(w,b),Ye(w.content)&&bi(w.content),M(w)===Bt.element){const I=_(w);Ye(I)&&(es(I),bi(I))}Fe&&Al(b),ye(lt.afterSanitizeShadowDOM,b,null)},es=function(b){const w=[{node:b,shadow:null}];for(;w.length>0;){const R=w.pop();if(R.shadow){bi(R.shadow);continue}const I=R.node,Z=M(I)===Bt.element,rt=x(I);if(rt)for(let ot=rt.length-1;ot>=0;--ot)w.push({node:rt[ot],shadow:null});if(Z){const ot=v?v(I):null;if(typeof ot=="string"&&Tt(ot)==="template"){const Ft=I.content;Ye(Ft)&&w.push({node:Ft,shadow:null})}}if(Z){const ot=_(I);Ye(ot)&&w.push({node:null,shadow:ot},{node:ot,shadow:null})}}};return t.sanitize=function(N){let b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},w=null,R=null,I=null,Z=null;if(Wa=!N,Wa&&(N="<!-->"),typeof N!="string"&&!xi(N)&&(N=Gm(N),typeof N!="string"))throw De("dirty is not a string, aborting");if(!t.isSupported)return N;Pa?(Ct=ln,wt=cn):Ya(b),(lt.uponSanitizeElement.length>0||lt.uponSanitizeAttribute.length>0)&&(Ct=le(Ct)),lt.uponSanitizeAttribute.length>0&&(wt=le(wt)),t.removed=[];const rt=qa&&typeof N!="string"&&xi(N);let ot=[];const Ft=or;if(rt){dm(N);const Qt=$(N);if(typeof Qt=="string"){const Or=Tt(Qt);if(!Ct[Or]||mi[Or])throw Ga(N),De("root node is forbidden and cannot be sanitized in-place")}if(gn(N))throw Ga(N),De("root node is clobbered and cannot be sanitized in-place");ot=Za(N),or=rs()}else if(xi(N))w=Tl("<!---->"),R=w.ownerDocument.importNode(N,!0),R.nodeType===Bt.element&&R.nodeName==="BODY"||R.nodeName==="HTML"?w=R:w.appendChild(R),es(w);else{if(!Br&&!Fe&&!sr&&N.indexOf("<")===-1)return E&&un?D(N):N;if(w=Tl(N),!w)return Br?null:un?q:""}w&&Na&&Ue(w.firstChild);const ke=rt?N:w;try{rt&&es(N);const Qt=Ka(ke);for(;I=Qt.nextNode();)Ja(I,ke),ts(I,ke),Ye(I.content)&&bi(I.content);rt&&um(N,ot)}catch(Qt){throw rt&&(Ga(N),vl(N,ot)),Qt}finally{or=Ft}if(rt){if(vl(N,ot))throw De("a node selected for removal could not be safely returned; refusing to sanitize in place");return Fe&&Qa(N),N}if(Br){if(Fe&&Qa(w),hn)for(Z=bt.call(w.ownerDocument);w.firstChild;)Z.appendChild(w.firstChild);else Z=w;return(wt.shadowroot||wt.shadowrootmode)&&(Z=_t.call(i,Z,!0)),Z}let Vt=sr?w.outerHTML:w.innerHTML;return sr&&Ct["!doctype"]&&w.ownerDocument&&w.ownerDocument.doctype&&w.ownerDocument.doctype.name&&Rt(ay,w.ownerDocument.doctype.name)&&(Vt="<!DOCTYPE "+w.ownerDocument.doctype.name+`>
4
+ `+Vt),Fe&&(Vt=dn(Vt)),E&&un?D(Vt):Vt},t.setConfig=function(){let N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Ya(N),Pa=!0,ln=Ct,cn=wt},t.clearConfig=function(){Fr=null,Pa=!1,ln=null,cn=null,E=O,q=""},t.isValidAttribute=function(N,b,w){Fr||Ya({});const R=Tt(N),I=Tt(b);return typeof w=="string"&&(El(b,w)||!Ia&&Rt(Vl,w))?!1:Bl(R,I,w)},t.addHook=function(N,b){typeof b=="function"&&ee(lt,N)&&Ci(lt[N],b)},t.removeHook=function(N,b){if(ee(lt,N)){if(b!==void 0){const w=zm(lt[N],b);return w===-1?void 0:Wm(lt[N],w,1)[0]}return Il(lt[N])}},t.removeHooks=function(N){ee(lt,N)&&(lt[N]=[])},t.removeAllHooks=function(){lt=Xl()},t}var Qr=fh(),ph=Object.defineProperty,d=(e,t)=>ph(e,"name",{value:t,configurable:!0}),uy=(e,t)=>{for(var r in t)ph(e,r,{get:t[r],enumerable:!0})},Oe={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},P={trace:d((...e)=>{},"trace"),debug:d((...e)=>{},"debug"),info:d((...e)=>{},"info"),warn:d((...e)=>{},"warn"),error:d((...e)=>{},"error"),fatal:d((...e)=>{},"fatal")},go=d(function(e="fatal"){let t=Oe.fatal;typeof e=="string"?e.toLowerCase()in Oe&&(t=Oe[e]):typeof e=="number"&&(t=e),P.trace=()=>{},P.debug=()=>{},P.info=()=>{},P.warn=()=>{},P.error=()=>{},P.fatal=()=>{},t<=Oe.fatal&&(P.fatal=console.error?console.error.bind(console,ue("FATAL"),"color: orange"):console.log.bind(console,"\x1B[35m",ue("FATAL"))),t<=Oe.error&&(P.error=console.error?console.error.bind(console,ue("ERROR"),"color: orange"):console.log.bind(console,"\x1B[31m",ue("ERROR"))),t<=Oe.warn&&(P.warn=console.warn?console.warn.bind(console,ue("WARN"),"color: orange"):console.log.bind(console,"\x1B[33m",ue("WARN"))),t<=Oe.info&&(P.info=console.info?console.info.bind(console,ue("INFO"),"color: lightblue"):console.log.bind(console,"\x1B[34m",ue("INFO"))),t<=Oe.debug&&(P.debug=console.debug?console.debug.bind(console,ue("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",ue("DEBUG"))),t<=Oe.trace&&(P.trace=console.debug?console.debug.bind(console,ue("TRACE"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",ue("TRACE")))},"setLogLevel"),ue=d(e=>`%c${Tm().format("ss.SSS")} : ${e} : `,"format"),dh=/^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s,Pi=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,fy=/\s*%%.*\n/gm,jr,gh=(jr=class extends Error{constructor(t){super(t),this.name="UnknownDiagramError"}},d(jr,"UnknownDiagramError"),jr),Jr={},mo=d(function(e,t){e=e.replace(dh,"").replace(Pi,"").replace(fy,`
5
+ `);for(const[r,{detector:i}]of Object.entries(Jr))if(i(e,t))return r;throw new gh(`No diagram type detected matching given configuration for text: ${e}`)},"detectType"),mh=d((...e)=>{for(const{id:t,detector:r,loader:i}of e)yh(t,r,i)},"registerLazyLoadedDiagrams"),yh=d((e,t,r)=>{Jr[e]&&P.warn(`Detector with key ${e} already exists. Overwriting.`),Jr[e]={detector:t,loader:r},P.debug(`Detector with key ${e} added${r?" with loader":""}`)},"addDetector"),py=d(e=>Jr[e].loader,"getDiagramLoader"),As=d((e,t,{depth:r=2,clobber:i=!1}={})=>{const n={depth:r,clobber:i};return Array.isArray(t)&&!Array.isArray(e)?(t.forEach(a=>As(e,a,n)),e):Array.isArray(t)&&Array.isArray(e)?(t.forEach(a=>{e.includes(a)||e.push(a)}),e):e===void 0||r<=0?e!=null&&typeof e=="object"&&typeof t=="object"?Object.assign(e,t):t:(t!==void 0&&typeof e=="object"&&typeof t=="object"&&Object.keys(t).forEach(a=>{typeof t[a]=="object"&&(e[a]===void 0||typeof e[a]=="object")?(e[a]===void 0&&(e[a]=Array.isArray(t[a])?[]:{}),e[a]=As(e[a],t[a],{depth:r-1,clobber:i})):(i||typeof e[a]!="object"&&typeof t[a]!="object")&&(e[a]=t[a])}),e)},"assignWithDepth"),Nt=As,ua="#ffffff",fa="#f2f2f2",Xt=d((e,t)=>t?S(e,{s:-40,l:10}):S(e,{s:-40,l:-10}),"mkBorder"),Ur,dy=(Ur=class{constructor(){this.background="#f4f4f4",this.primaryColor="#fff4dd",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px"}updateColors(){var r,i,n,a,o,s,l,c,h,u,f;if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||S(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||S(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||Xt(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||Xt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||Xt(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||Xt(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||W(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||W(this.tertiaryColor),this.lineColor=this.lineColor||W(this.background),this.arrowheadColor=this.arrowheadColor||W(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?tt(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||tt(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||W(this.lineColor),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||K(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.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||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||S(this.primaryColor,{h:30}),this.cScale4=this.cScale4||S(this.primaryColor,{h:60}),this.cScale5=this.cScale5||S(this.primaryColor,{h:90}),this.cScale6=this.cScale6||S(this.primaryColor,{h:120}),this.cScale7=this.cScale7||S(this.primaryColor,{h:150}),this.cScale8=this.cScale8||S(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||S(this.primaryColor,{h:270}),this.cScale10=this.cScale10||S(this.primaryColor,{h:300}),this.cScale11=this.cScale11||S(this.primaryColor,{h:330}),this.darkMode)for(let p=0;p<this.THEME_COLOR_LIMIT;p++)this["cScale"+p]=tt(this["cScale"+p],75);else for(let p=0;p<this.THEME_COLOR_LIMIT;p++)this["cScale"+p]=tt(this["cScale"+p],25);for(let p=0;p<this.THEME_COLOR_LIMIT;p++)this["cScaleInv"+p]=this["cScaleInv"+p]||W(this["cScale"+p]);for(let p=0;p<this.THEME_COLOR_LIMIT;p++)this.darkMode?this["cScalePeer"+p]=this["cScalePeer"+p]||K(this["cScale"+p],10):this["cScalePeer"+p]=this["cScalePeer"+p]||tt(this["cScale"+p],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let p=0;p<this.THEME_COLOR_LIMIT;p++)this["cScaleLabel"+p]=this["cScaleLabel"+p]||this.scaleLabelColor;const t=this.darkMode?-4:-1;for(let p=0;p<5;p++)this["surface"+p]=this["surface"+p]||S(this.mainBkg,{h:180,s:-15,l:t*(5+p*3)}),this["surfacePeer"+p]=this["surfacePeer"+p]||S(this.mainBkg,{h:180,s:-15,l:t*(8+p*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||S(this.primaryColor,{h:64}),this.fillType3=this.fillType3||S(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||S(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||S(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||S(this.primaryColor,{h:128}),this.fillType7=this.fillType7||S(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||S(this.primaryColor,{l:-10}),this.pie5=this.pie5||S(this.secondaryColor,{l:-10}),this.pie6=this.pie6||S(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||S(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||S(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||S(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||S(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||S(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||S(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.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||S(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||S(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||S(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||S(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||S(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||S(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Ji(this.quadrant1Fill)?K(this.quadrant1Fill):tt(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:((r=this.xyChart)==null?void 0:r.backgroundColor)||this.background,titleColor:((i=this.xyChart)==null?void 0:i.titleColor)||this.primaryTextColor,xAxisTitleColor:((n=this.xyChart)==null?void 0:n.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((a=this.xyChart)==null?void 0:a.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((o=this.xyChart)==null?void 0:o.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((s=this.xyChart)==null?void 0:s.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((l=this.xyChart)==null?void 0:l.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((c=this.xyChart)==null?void 0:c.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((h=this.xyChart)==null?void 0:h.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((u=this.xyChart)==null?void 0:u.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((f=this.xyChart)==null?void 0:f.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?tt(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||S(this.primaryColor,{h:-30}),this.git4=this.git4||S(this.primaryColor,{h:-60}),this.git5=this.git5||S(this.primaryColor,{h:-90}),this.git6=this.git6||S(this.primaryColor,{h:60}),this.git7=this.git7||S(this.primaryColor,{h:120}),this.darkMode?(this.git0=K(this.git0,25),this.git1=K(this.git1,25),this.git2=K(this.git2,25),this.git3=K(this.git3,25),this.git4=K(this.git4,25),this.git5=K(this.git5,25),this.git6=K(this.git6,25),this.git7=K(this.git7,25)):(this.git0=tt(this.git0,25),this.git1=tt(this.git1,25),this.git2=tt(this.git2,25),this.git3=tt(this.git3,25),this.git4=tt(this.git4,25),this.git5=tt(this.git5,25),this.git6=tt(this.git6,25),this.git7=tt(this.git7,25)),this.gitInv0=this.gitInv0||W(this.git0),this.gitInv1=this.gitInv1||W(this.git1),this.gitInv2=this.gitInv2||W(this.git2),this.gitInv3=this.gitInv3||W(this.git3),this.gitInv4=this.gitInv4||W(this.git4),this.gitInv5=this.gitInv5||W(this.git5),this.gitInv6=this.gitInv6||W(this.git6),this.gitInv7=this.gitInv7||W(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||ua,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||fa}calculate(t){if(typeof t!="object"){this.updateColors();return}const r=Object.keys(t);r.forEach(i=>{this[i]=t[i]}),this.updateColors(),r.forEach(i=>{this[i]=t[i]})}},d(Ur,"Theme"),Ur),gy=d(e=>{const t=new dy;return t.calculate(e),t},"getThemeVariables"),Yr,my=(Yr=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=K(this.primaryColor,16),this.tertiaryColor=S(this.primaryColor,{h:-160}),this.primaryBorderColor=W(this.background),this.secondaryBorderColor=Xt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Xt(this.tertiaryColor,this.darkMode),this.primaryTextColor=W(this.primaryColor),this.secondaryTextColor=W(this.secondaryColor),this.tertiaryTextColor=W(this.tertiaryColor),this.lineColor=W(this.background),this.textColor=W(this.background),this.mainBkg="#1f2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=K(W("#323D47"),10),this.lineColor="calculated",this.border1="#ccc",this.border2=Ii(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.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.sectionBkgColor=tt("#EAE8D9",30),this.altSectionBkgColor="calculated",this.sectionBkgColor2="#EAE8D9",this.excludeBkgColor=tt(this.sectionBkgColor,10),this.taskBorderColor=Ii(255,255,255,70),this.taskBkgColor="calculated",this.taskTextColor="calculated",this.taskTextLightColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor=Ii(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.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.labelColor="calculated",this.errorBkgColor="#a44141",this.errorTextColor="#ddd"}updateColors(){var t,r,i,n,a,o,s,l,c,h,u;this.secondBkg=K(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=K(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.altSectionBkgColor=this.background,this.taskBkgColor=K(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=this.darkTextColor,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=S(this.primaryColor,{h:64}),this.fillType3=S(this.secondaryColor,{h:64}),this.fillType4=S(this.primaryColor,{h:-64}),this.fillType5=S(this.secondaryColor,{h:-64}),this.fillType6=S(this.primaryColor,{h:128}),this.fillType7=S(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||S(this.primaryColor,{h:30}),this.cScale4=this.cScale4||S(this.primaryColor,{h:60}),this.cScale5=this.cScale5||S(this.primaryColor,{h:90}),this.cScale6=this.cScale6||S(this.primaryColor,{h:120}),this.cScale7=this.cScale7||S(this.primaryColor,{h:150}),this.cScale8=this.cScale8||S(this.primaryColor,{h:210}),this.cScale9=this.cScale9||S(this.primaryColor,{h:270}),this.cScale10=this.cScale10||S(this.primaryColor,{h:300}),this.cScale11=this.cScale11||S(this.primaryColor,{h:330});for(let f=0;f<this.THEME_COLOR_LIMIT;f++)this["cScaleInv"+f]=this["cScaleInv"+f]||W(this["cScale"+f]);for(let f=0;f<this.THEME_COLOR_LIMIT;f++)this["cScalePeer"+f]=this["cScalePeer"+f]||K(this["cScale"+f],10);for(let f=0;f<5;f++)this["surface"+f]=this["surface"+f]||S(this.mainBkg,{h:30,s:-30,l:-(-10+f*4)}),this["surfacePeer"+f]=this["surfacePeer"+f]||S(this.mainBkg,{h:30,s:-30,l:-(-7+f*4)});this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor);for(let f=0;f<this.THEME_COLOR_LIMIT;f++)this["cScaleLabel"+f]=this["cScaleLabel"+f]||this.scaleLabelColor;for(let f=0;f<this.THEME_COLOR_LIMIT;f++)this["pie"+f]=this["cScale"+f];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.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||S(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||S(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||S(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||S(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||S(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||S(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Ji(this.quadrant1Fill)?K(this.quadrant1Fill):tt(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:((t=this.xyChart)==null?void 0:t.backgroundColor)||this.background,titleColor:((r=this.xyChart)==null?void 0:r.titleColor)||this.primaryTextColor,xAxisTitleColor:((i=this.xyChart)==null?void 0:i.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((n=this.xyChart)==null?void 0:n.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((a=this.xyChart)==null?void 0:a.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((o=this.xyChart)==null?void 0:o.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((s=this.xyChart)==null?void 0:s.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((l=this.xyChart)==null?void 0:l.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((c=this.xyChart)==null?void 0:c.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((h=this.xyChart)==null?void 0:h.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((u=this.xyChart)==null?void 0:u.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.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?tt(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=K(this.secondaryColor,20),this.git1=K(this.pie2||this.secondaryColor,20),this.git2=K(this.pie3||this.tertiaryColor,20),this.git3=K(this.pie4||S(this.primaryColor,{h:-30}),20),this.git4=K(this.pie5||S(this.primaryColor,{h:-60}),20),this.git5=K(this.pie6||S(this.primaryColor,{h:-90}),10),this.git6=K(this.pie7||S(this.primaryColor,{h:60}),10),this.git7=K(this.pie8||S(this.primaryColor,{h:120}),20),this.gitInv0=this.gitInv0||W(this.git0),this.gitInv1=this.gitInv1||W(this.git1),this.gitInv2=this.gitInv2||W(this.git2),this.gitInv3=this.gitInv3||W(this.git3),this.gitInv4=this.gitInv4||W(this.git4),this.gitInv5=this.gitInv5||W(this.git5),this.gitInv6=this.gitInv6||W(this.git6),this.gitInv7=this.gitInv7||W(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||W(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||W(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.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||K(this.background,12),this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||K(this.background,2),this.nodeBorder=this.nodeBorder||"#999"}calculate(t){if(typeof t!="object"){this.updateColors();return}const r=Object.keys(t);r.forEach(i=>{this[i]=t[i]}),this.updateColors(),r.forEach(i=>{this[i]=t[i]})}},d(Yr,"Theme"),Yr),yy=d(e=>{const t=new my;return t.calculate(e),t},"getThemeVariables"),Gr,xy=(Gr=class{constructor(){this.background="#f4f4f4",this.primaryColor="#ECECFF",this.secondaryColor=S(this.primaryColor,{h:120}),this.secondaryColor="#ffffde",this.tertiaryColor=S(this.primaryColor,{h:-160}),this.primaryBorderColor=Xt(this.primaryColor,this.darkMode),this.secondaryBorderColor=Xt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Xt(this.tertiaryColor,this.darkMode),this.primaryTextColor=W(this.primaryColor),this.secondaryTextColor=W(this.secondaryColor),this.tertiaryTextColor=W(this.tertiaryColor),this.lineColor=W(this.background),this.textColor=W(this.background),this.background="white",this.mainBkg="#ECECFF",this.secondBkg="#ffffde",this.lineColor="#333333",this.border1="#9370DB",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.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.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.sectionBkgColor=Ii(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.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.updateColors()}updateColors(){var t,r,i,n,a,o,s,l,c,h,u;this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||S(this.primaryColor,{h:30}),this.cScale4=this.cScale4||S(this.primaryColor,{h:60}),this.cScale5=this.cScale5||S(this.primaryColor,{h:90}),this.cScale6=this.cScale6||S(this.primaryColor,{h:120}),this.cScale7=this.cScale7||S(this.primaryColor,{h:150}),this.cScale8=this.cScale8||S(this.primaryColor,{h:210}),this.cScale9=this.cScale9||S(this.primaryColor,{h:270}),this.cScale10=this.cScale10||S(this.primaryColor,{h:300}),this.cScale11=this.cScale11||S(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||tt(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||tt(this.tertiaryColor,40);for(let f=0;f<this.THEME_COLOR_LIMIT;f++)this["cScale"+f]=tt(this["cScale"+f],10),this["cScalePeer"+f]=this["cScalePeer"+f]||tt(this["cScale"+f],25);for(let f=0;f<this.THEME_COLOR_LIMIT;f++)this["cScaleInv"+f]=this["cScaleInv"+f]||S(this["cScale"+f],{h:180});for(let f=0;f<5;f++)this["surface"+f]=this["surface"+f]||S(this.mainBkg,{h:30,l:-(5+f*5)}),this["surfacePeer"+f]=this["surfacePeer"+f]||S(this.mainBkg,{h:30,l:-(7+f*5)});if(this.scaleLabelColor=this.scaleLabelColor!=="calculated"&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor,this.labelTextColor!=="calculated"){this.cScaleLabel0=this.cScaleLabel0||W(this.labelTextColor),this.cScaleLabel3=this.cScaleLabel3||W(this.labelTextColor);for(let f=0;f<this.THEME_COLOR_LIMIT;f++)this["cScaleLabel"+f]=this["cScaleLabel"+f]||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=K(this.border1,23),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.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,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||"#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=S(this.primaryColor,{h:64}),this.fillType3=S(this.secondaryColor,{h:64}),this.fillType4=S(this.primaryColor,{h:-64}),this.fillType5=S(this.secondaryColor,{h:-64}),this.fillType6=S(this.primaryColor,{h:128}),this.fillType7=S(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||S(this.tertiaryColor,{l:-40}),this.pie4=this.pie4||S(this.primaryColor,{l:-10}),this.pie5=this.pie5||S(this.secondaryColor,{l:-30}),this.pie6=this.pie6||S(this.tertiaryColor,{l:-20}),this.pie7=this.pie7||S(this.primaryColor,{h:60,l:-20}),this.pie8=this.pie8||S(this.primaryColor,{h:-60,l:-40}),this.pie9=this.pie9||S(this.primaryColor,{h:120,l:-40}),this.pie10=this.pie10||S(this.primaryColor,{h:60,l:-40}),this.pie11=this.pie11||S(this.primaryColor,{h:-90,l:-40}),this.pie12=this.pie12||S(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.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||S(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||S(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||S(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||S(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||S(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||S(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Ji(this.quadrant1Fill)?K(this.quadrant1Fill):tt(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:((t=this.xyChart)==null?void 0:t.backgroundColor)||this.background,titleColor:((r=this.xyChart)==null?void 0:r.titleColor)||this.primaryTextColor,xAxisTitleColor:((i=this.xyChart)==null?void 0:i.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((n=this.xyChart)==null?void 0:n.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((a=this.xyChart)==null?void 0:a.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((o=this.xyChart)==null?void 0:o.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((s=this.xyChart)==null?void 0:s.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((l=this.xyChart)==null?void 0:l.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((c=this.xyChart)==null?void 0:c.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((h=this.xyChart)==null?void 0:h.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((u=this.xyChart)==null?void 0:u.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||S(this.primaryColor,{h:-30}),this.git4=this.git4||S(this.primaryColor,{h:-60}),this.git5=this.git5||S(this.primaryColor,{h:-90}),this.git6=this.git6||S(this.primaryColor,{h:60}),this.git7=this.git7||S(this.primaryColor,{h:120}),this.darkMode?(this.git0=K(this.git0,25),this.git1=K(this.git1,25),this.git2=K(this.git2,25),this.git3=K(this.git3,25),this.git4=K(this.git4,25),this.git5=K(this.git5,25),this.git6=K(this.git6,25),this.git7=K(this.git7,25)):(this.git0=tt(this.git0,25),this.git1=tt(this.git1,25),this.git2=tt(this.git2,25),this.git3=tt(this.git3,25),this.git4=tt(this.git4,25),this.git5=tt(this.git5,25),this.git6=tt(this.git6,25),this.git7=tt(this.git7,25)),this.gitInv0=this.gitInv0||tt(W(this.git0),25),this.gitInv1=this.gitInv1||W(this.git1),this.gitInv2=this.gitInv2||W(this.git2),this.gitInv3=this.gitInv3||W(this.git3),this.gitInv4=this.gitInv4||W(this.git4),this.gitInv5=this.gitInv5||W(this.git5),this.gitInv6=this.gitInv6||W(this.git6),this.gitInv7=this.gitInv7||W(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||W(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||W(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.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||ua,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||fa}calculate(t){if(typeof t!="object"){this.updateColors();return}const r=Object.keys(t);r.forEach(i=>{this[i]=t[i]}),this.updateColors(),r.forEach(i=>{this[i]=t[i]})}},d(Gr,"Theme"),Gr),by=d(e=>{const t=new xy;return t.calculate(e),t},"getThemeVariables"),Vr,_y=(Vr=class{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=K("#cde498",10),this.primaryBorderColor=Xt(this.primaryColor,this.darkMode),this.secondaryBorderColor=Xt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Xt(this.tertiaryColor,this.darkMode),this.primaryTextColor=W(this.primaryColor),this.secondaryTextColor=W(this.secondaryColor),this.tertiaryTextColor=W(this.primaryColor),this.lineColor=W(this.background),this.textColor=W(this.background),this.THEME_COLOR_LIMIT=12,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.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){var t,r,i,n,a,o,s,l,c,h,u;this.actorBorder=tt(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.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||S(this.primaryColor,{h:30}),this.cScale4=this.cScale4||S(this.primaryColor,{h:60}),this.cScale5=this.cScale5||S(this.primaryColor,{h:90}),this.cScale6=this.cScale6||S(this.primaryColor,{h:120}),this.cScale7=this.cScale7||S(this.primaryColor,{h:150}),this.cScale8=this.cScale8||S(this.primaryColor,{h:210}),this.cScale9=this.cScale9||S(this.primaryColor,{h:270}),this.cScale10=this.cScale10||S(this.primaryColor,{h:300}),this.cScale11=this.cScale11||S(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||tt(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||tt(this.tertiaryColor,40);for(let f=0;f<this.THEME_COLOR_LIMIT;f++)this["cScale"+f]=tt(this["cScale"+f],10),this["cScalePeer"+f]=this["cScalePeer"+f]||tt(this["cScale"+f],25);for(let f=0;f<this.THEME_COLOR_LIMIT;f++)this["cScaleInv"+f]=this["cScaleInv"+f]||S(this["cScale"+f],{h:180});this.scaleLabelColor=this.scaleLabelColor!=="calculated"&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor;for(let f=0;f<this.THEME_COLOR_LIMIT;f++)this["cScaleLabel"+f]=this["cScaleLabel"+f]||this.scaleLabelColor;for(let f=0;f<5;f++)this["surface"+f]=this["surface"+f]||S(this.mainBkg,{h:30,s:-30,l:-(5+f*5)}),this["surfacePeer"+f]=this["surfacePeer"+f]||S(this.mainBkg,{h:30,s:-30,l:-(8+f*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.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=S(this.primaryColor,{h:64}),this.fillType3=S(this.secondaryColor,{h:64}),this.fillType4=S(this.primaryColor,{h:-64}),this.fillType5=S(this.secondaryColor,{h:-64}),this.fillType6=S(this.primaryColor,{h:128}),this.fillType7=S(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||S(this.primaryColor,{l:-30}),this.pie5=this.pie5||S(this.secondaryColor,{l:-30}),this.pie6=this.pie6||S(this.tertiaryColor,{h:40,l:-40}),this.pie7=this.pie7||S(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||S(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||S(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||S(this.primaryColor,{h:60,l:-50}),this.pie11=this.pie11||S(this.primaryColor,{h:-60,l:-50}),this.pie12=this.pie12||S(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.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||S(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||S(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||S(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||S(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||S(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||S(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Ji(this.quadrant1Fill)?K(this.quadrant1Fill):tt(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.xyChart={backgroundColor:((t=this.xyChart)==null?void 0:t.backgroundColor)||this.background,titleColor:((r=this.xyChart)==null?void 0:r.titleColor)||this.primaryTextColor,xAxisTitleColor:((i=this.xyChart)==null?void 0:i.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((n=this.xyChart)==null?void 0:n.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((a=this.xyChart)==null?void 0:a.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((o=this.xyChart)==null?void 0:o.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((s=this.xyChart)==null?void 0:s.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((l=this.xyChart)==null?void 0:l.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((c=this.xyChart)==null?void 0:c.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((h=this.xyChart)==null?void 0:h.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((u=this.xyChart)==null?void 0:u.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||S(this.primaryColor,{h:-30}),this.git4=this.git4||S(this.primaryColor,{h:-60}),this.git5=this.git5||S(this.primaryColor,{h:-90}),this.git6=this.git6||S(this.primaryColor,{h:60}),this.git7=this.git7||S(this.primaryColor,{h:120}),this.darkMode?(this.git0=K(this.git0,25),this.git1=K(this.git1,25),this.git2=K(this.git2,25),this.git3=K(this.git3,25),this.git4=K(this.git4,25),this.git5=K(this.git5,25),this.git6=K(this.git6,25),this.git7=K(this.git7,25)):(this.git0=tt(this.git0,25),this.git1=tt(this.git1,25),this.git2=tt(this.git2,25),this.git3=tt(this.git3,25),this.git4=tt(this.git4,25),this.git5=tt(this.git5,25),this.git6=tt(this.git6,25),this.git7=tt(this.git7,25)),this.gitInv0=this.gitInv0||W(this.git0),this.gitInv1=this.gitInv1||W(this.git1),this.gitInv2=this.gitInv2||W(this.git2),this.gitInv3=this.gitInv3||W(this.git3),this.gitInv4=this.gitInv4||W(this.git4),this.gitInv5=this.gitInv5||W(this.git5),this.gitInv6=this.gitInv6||W(this.git6),this.gitInv7=this.gitInv7||W(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||W(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||W(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.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||ua,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||fa}calculate(t){if(typeof t!="object"){this.updateColors();return}const r=Object.keys(t);r.forEach(i=>{this[i]=t[i]}),this.updateColors(),r.forEach(i=>{this[i]=t[i]})}},d(Vr,"Theme"),Vr),Cy=d(e=>{const t=new _y;return t.calculate(e),t},"getThemeVariables"),Xr,wy=(Xr=class{constructor(){this.primaryColor="#eee",this.contrast="#707070",this.secondaryColor=K(this.contrast,55),this.background="#ffffff",this.tertiaryColor=S(this.primaryColor,{h:-160}),this.primaryBorderColor=Xt(this.primaryColor,this.darkMode),this.secondaryBorderColor=Xt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Xt(this.tertiaryColor,this.darkMode),this.primaryTextColor=W(this.primaryColor),this.secondaryTextColor=W(this.secondaryColor),this.tertiaryTextColor=W(this.tertiaryColor),this.lineColor=W(this.background),this.textColor=W(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.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.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){var t,r,i,n,a,o,s,l,c,h,u;this.secondBkg=K(this.contrast,55),this.border2=this.contrast,this.actorBorder=K(this.border1,23),this.actorBkg=this.mainBkg,this.actorTextColor=this.text,this.actorLineColor=this.actorBorder,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 f=0;f<this.THEME_COLOR_LIMIT;f++)this["cScaleInv"+f]=this["cScaleInv"+f]||W(this["cScale"+f]);for(let f=0;f<this.THEME_COLOR_LIMIT;f++)this.darkMode?this["cScalePeer"+f]=this["cScalePeer"+f]||K(this["cScale"+f],10):this["cScalePeer"+f]=this["cScalePeer"+f]||tt(this["cScale"+f],10);this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor),this.cScaleLabel0=this.cScaleLabel0||this.cScale1,this.cScaleLabel2=this.cScaleLabel2||this.cScale1;for(let f=0;f<this.THEME_COLOR_LIMIT;f++)this["cScaleLabel"+f]=this["cScaleLabel"+f]||this.scaleLabelColor;for(let f=0;f<5;f++)this["surface"+f]=this["surface"+f]||S(this.mainBkg,{l:-(5+f*5)}),this["surfacePeer"+f]=this["surfacePeer"+f]||S(this.mainBkg,{l:-(8+f*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=K(this.contrast,30),this.sectionBkgColor2=K(this.contrast,30),this.taskBorderColor=tt(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=K(this.border1,30),this.doneTaskBkgColor=this.done,this.doneTaskBorderColor=this.lineColor,this.critBkgColor=this.critical,this.critBorderColor=tt(this.critBkgColor,10),this.todayLineColor=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=S(this.primaryColor,{h:64}),this.fillType3=S(this.secondaryColor,{h:64}),this.fillType4=S(this.primaryColor,{h:-64}),this.fillType5=S(this.secondaryColor,{h:-64}),this.fillType6=S(this.primaryColor,{h:128}),this.fillType7=S(this.secondaryColor,{h:128});for(let f=0;f<this.THEME_COLOR_LIMIT;f++)this["pie"+f]=this["cScale"+f];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",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||S(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||S(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||S(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||S(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||S(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||S(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Ji(this.quadrant1Fill)?K(this.quadrant1Fill):tt(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:((t=this.xyChart)==null?void 0:t.backgroundColor)||this.background,titleColor:((r=this.xyChart)==null?void 0:r.titleColor)||this.primaryTextColor,xAxisTitleColor:((i=this.xyChart)==null?void 0:i.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((n=this.xyChart)==null?void 0:n.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((a=this.xyChart)==null?void 0:a.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((o=this.xyChart)==null?void 0:o.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((s=this.xyChart)==null?void 0:s.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((l=this.xyChart)==null?void 0:l.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((c=this.xyChart)==null?void 0:c.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((h=this.xyChart)==null?void 0:h.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((u=this.xyChart)==null?void 0:u.plotColorPalette)||"#EEE,#6BB8E4,#8ACB88,#C7ACD6,#E8DCC2,#FFB2A8,#FFF380,#7E8D91,#FFD8B1,#FAF3E0"},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=tt(this.pie1,25)||this.primaryColor,this.git1=this.pie2||this.secondaryColor,this.git2=this.pie3||this.tertiaryColor,this.git3=this.pie4||S(this.primaryColor,{h:-30}),this.git4=this.pie5||S(this.primaryColor,{h:-60}),this.git5=this.pie6||S(this.primaryColor,{h:-90}),this.git6=this.pie7||S(this.primaryColor,{h:60}),this.git7=this.pie8||S(this.primaryColor,{h:120}),this.gitInv0=this.gitInv0||W(this.git0),this.gitInv1=this.gitInv1||W(this.git1),this.gitInv2=this.gitInv2||W(this.git2),this.gitInv3=this.gitInv3||W(this.git3),this.gitInv4=this.gitInv4||W(this.git4),this.gitInv5=this.gitInv5||W(this.git5),this.gitInv6=this.gitInv6||W(this.git6),this.gitInv7=this.gitInv7||W(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.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||ua,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||fa}calculate(t){if(typeof t!="object"){this.updateColors();return}const r=Object.keys(t);r.forEach(i=>{this[i]=t[i]}),this.updateColors(),r.forEach(i=>{this[i]=t[i]})}},d(Xr,"Theme"),Xr),ky=d(e=>{const t=new wy;return t.calculate(e),t},"getThemeVariables"),Pe={base:{getThemeVariables:gy},dark:{getThemeVariables:yy},default:{getThemeVariables:by},forest:{getThemeVariables:Cy},neutral:{getThemeVariables:ky}},Ve={flowchart:{useMaxWidth:!0,titleTopMargin:25,subGraphTitleMargin:{top:0,bottom:0},diagramPadding:8,htmlLabels:!0,nodeSpacing:50,rankSpacing:50,curve:"basis",padding:15,defaultRenderer:"dagre-wrapper",wrappingWidth:200},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,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"]},class:{useMaxWidth:!0,titleTopMargin:25,arrowMarkerAbsolute:!1,dividerMargin:10,padding:5,textHeight:10,defaultRenderer:"dagre-wrapper",htmlLabels:!1,hideEmptyMembersBox:!1},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,stroke:"gray",fill:"honeydew",fontSize:12},pie:{useMaxWidth:!0,textPosition:.75},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,showTitle:!0,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},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},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},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:""},block:{useMaxWidth:!0,padding:8},packet:{useMaxWidth:!0,rowHeight:32,bitWidth:32,bitsPerRow:32,showBits:!0,paddingX:5,paddingY:5},architecture:{useMaxWidth:!0,padding:40,iconSize:80,fontSize:16},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},xh={...Ve,deterministicIDSeed:void 0,elk:{mergeEdges:!1,nodePlacementStrategy:"BRANDES_KOEPF"},themeCSS:void 0,themeVariables:Pe.default.getThemeVariables(),sequence:{...Ve.sequence,messageFont:d(function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},"messageFont"),noteFont:d(function(){return{fontFamily:this.noteFontFamily,fontSize:this.noteFontSize,fontWeight:this.noteFontWeight}},"noteFont"),actorFont:d(function(){return{fontFamily:this.actorFontFamily,fontSize:this.actorFontSize,fontWeight:this.actorFontWeight}},"actorFont")},class:{hideEmptyMembersBox:!1},gantt:{...Ve.gantt,tickInterval:void 0,useWidth:void 0},c4:{...Ve.c4,useWidth:void 0,personFont:d(function(){return{fontFamily:this.personFontFamily,fontSize:this.personFontSize,fontWeight:this.personFontWeight}},"personFont"),external_personFont:d(function(){return{fontFamily:this.external_personFontFamily,fontSize:this.external_personFontSize,fontWeight:this.external_personFontWeight}},"external_personFont"),systemFont:d(function(){return{fontFamily:this.systemFontFamily,fontSize:this.systemFontSize,fontWeight:this.systemFontWeight}},"systemFont"),external_systemFont:d(function(){return{fontFamily:this.external_systemFontFamily,fontSize:this.external_systemFontSize,fontWeight:this.external_systemFontWeight}},"external_systemFont"),system_dbFont:d(function(){return{fontFamily:this.system_dbFontFamily,fontSize:this.system_dbFontSize,fontWeight:this.system_dbFontWeight}},"system_dbFont"),external_system_dbFont:d(function(){return{fontFamily:this.external_system_dbFontFamily,fontSize:this.external_system_dbFontSize,fontWeight:this.external_system_dbFontWeight}},"external_system_dbFont"),system_queueFont:d(function(){return{fontFamily:this.system_queueFontFamily,fontSize:this.system_queueFontSize,fontWeight:this.system_queueFontWeight}},"system_queueFont"),external_system_queueFont:d(function(){return{fontFamily:this.external_system_queueFontFamily,fontSize:this.external_system_queueFontSize,fontWeight:this.external_system_queueFontWeight}},"external_system_queueFont"),containerFont:d(function(){return{fontFamily:this.containerFontFamily,fontSize:this.containerFontSize,fontWeight:this.containerFontWeight}},"containerFont"),external_containerFont:d(function(){return{fontFamily:this.external_containerFontFamily,fontSize:this.external_containerFontSize,fontWeight:this.external_containerFontWeight}},"external_containerFont"),container_dbFont:d(function(){return{fontFamily:this.container_dbFontFamily,fontSize:this.container_dbFontSize,fontWeight:this.container_dbFontWeight}},"container_dbFont"),external_container_dbFont:d(function(){return{fontFamily:this.external_container_dbFontFamily,fontSize:this.external_container_dbFontSize,fontWeight:this.external_container_dbFontWeight}},"external_container_dbFont"),container_queueFont:d(function(){return{fontFamily:this.container_queueFontFamily,fontSize:this.container_queueFontSize,fontWeight:this.container_queueFontWeight}},"container_queueFont"),external_container_queueFont:d(function(){return{fontFamily:this.external_container_queueFontFamily,fontSize:this.external_container_queueFontSize,fontWeight:this.external_container_queueFontWeight}},"external_container_queueFont"),componentFont:d(function(){return{fontFamily:this.componentFontFamily,fontSize:this.componentFontSize,fontWeight:this.componentFontWeight}},"componentFont"),external_componentFont:d(function(){return{fontFamily:this.external_componentFontFamily,fontSize:this.external_componentFontSize,fontWeight:this.external_componentFontWeight}},"external_componentFont"),component_dbFont:d(function(){return{fontFamily:this.component_dbFontFamily,fontSize:this.component_dbFontSize,fontWeight:this.component_dbFontWeight}},"component_dbFont"),external_component_dbFont:d(function(){return{fontFamily:this.external_component_dbFontFamily,fontSize:this.external_component_dbFontSize,fontWeight:this.external_component_dbFontWeight}},"external_component_dbFont"),component_queueFont:d(function(){return{fontFamily:this.component_queueFontFamily,fontSize:this.component_queueFontSize,fontWeight:this.component_queueFontWeight}},"component_queueFont"),external_component_queueFont:d(function(){return{fontFamily:this.external_component_queueFontFamily,fontSize:this.external_component_queueFontSize,fontWeight:this.external_component_queueFontWeight}},"external_component_queueFont"),boundaryFont:d(function(){return{fontFamily:this.boundaryFontFamily,fontSize:this.boundaryFontSize,fontWeight:this.boundaryFontWeight}},"boundaryFont"),messageFont:d(function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},"messageFont")},pie:{...Ve.pie,useWidth:984},xyChart:{...Ve.xyChart,useWidth:void 0},requirement:{...Ve.requirement,useWidth:void 0},packet:{...Ve.packet}},bh=d((e,t="")=>Object.keys(e).reduce((r,i)=>Array.isArray(e[i])?r:typeof e[i]=="object"&&e[i]!==null?[...r,t+i,...bh(e[i],"")]:[...r,t+i],[]),"keyify"),vy=new Set(bh(xh,"")),_h=xh,Dn=d(e=>{if(P.debug("sanitizeDirective called with",e),!(typeof e!="object"||e==null)){if(Array.isArray(e)){e.forEach(t=>Dn(t));return}for(const t of Object.keys(e)){if(P.debug("Checking key",t),t.startsWith("__")||t.includes("proto")||t.includes("constr")||!vy.has(t)||e[t]==null){P.debug("sanitize deleting key: ",t),delete e[t];continue}if(typeof e[t]=="object"){P.debug("sanitizing object",t),Dn(e[t]);continue}const r=["themeCSS","fontFamily","altFontFamily"];for(const i of r)t.includes(i)&&(P.debug("sanitizing css option",t),e[t]=Sy(e[t]))}if(e.themeVariables)for(const t of Object.keys(e.themeVariables)){const r=e.themeVariables[t];r!=null&&r.match&&!r.match(/^[\d "#%(),.;A-Za-z]+$/)&&(e.themeVariables[t]="")}P.debug("After sanitization",e)}},"sanitizeDirective"),Sy=d(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"),ti=Object.freeze(_h),re=Nt({},ti),Ch,ei=[],Ni=Nt({},ti),pa=d((e,t)=>{let r=Nt({},e),i={};for(const n of t)vh(n),i=Nt(i,n);if(r=Nt(r,i),i.theme&&i.theme in Pe){const n=Nt({},Ch),a=Nt(n.themeVariables||{},i.themeVariables);r.theme&&r.theme in Pe&&(r.themeVariables=Pe[r.theme].getThemeVariables(a))}return Ni=r,Sh(Ni),Ni},"updateCurrentConfig"),Ty=d(e=>(re=Nt({},ti),re=Nt(re,e),e.theme&&Pe[e.theme]&&(re.themeVariables=Pe[e.theme].getThemeVariables(e.themeVariables)),pa(re,ei),re),"setSiteConfig"),Ay=d(e=>{Ch=Nt({},e)},"saveConfigFromInitialize"),Ly=d(e=>(re=Nt(re,e),pa(re,ei),re),"updateSiteConfig"),wh=d(()=>Nt({},re),"getSiteConfig"),kh=d(e=>(Sh(e),Nt(Ni,e),_e()),"setConfig"),_e=d(()=>Nt({},Ni),"getConfig"),vh=d(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"&&vh(e[t])}))},"sanitize"),By=d(e=>{var t;Dn(e),e.fontFamily&&!((t=e.themeVariables)!=null&&t.fontFamily)&&(e.themeVariables={...e.themeVariables,fontFamily:e.fontFamily}),ei.push(e),pa(re,ei)},"addDirective"),On=d((e=re)=>{ei=[],pa(e,ei)},"reset"),My={LAZY_LOAD_DEPRECATED:"The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead."},Zl={},Ey=d(e=>{Zl[e]||(P.warn(My[e]),Zl[e]=!0)},"issueWarning"),Sh=d(e=>{e&&(e.lazyLoadedDiagrams||e.loadExternalDiagramsAtStartup)&&Ey("LAZY_LOAD_DEPRECATED")},"checkConfig"),tn=/<br\s*\/?>/gi,Fy=d(e=>e?Lh(e).replace(/\\n/g,"#br#").split("#br#"):[""],"getRows"),$y=(()=>{let e=!1;return()=>{e||(Th(),e=!0)}})();function Th(){const e="data-temp-href-target";Qr.addHook("beforeSanitizeAttributes",t=>{t instanceof Element&&t.tagName==="A"&&t.hasAttribute("target")&&t.setAttribute(e,t.getAttribute("target")??"")}),Qr.addHook("afterSanitizeAttributes",t=>{t instanceof Element&&t.tagName==="A"&&t.hasAttribute(e)&&(t.setAttribute("target",t.getAttribute(e)??""),t.removeAttribute(e),t.getAttribute("target")==="_blank"&&t.setAttribute("rel","noopener"))})}d(Th,"setupDompurifyHooks");var Ah=d(e=>($y(),Qr.sanitize(e)),"removeScript"),Kl=d((e,t)=>{var r;if(((r=t.flowchart)==null?void 0:r.htmlLabels)!==!1){const i=t.securityLevel;i==="antiscript"||i==="strict"?e=Ah(e):i!=="loose"&&(e=Lh(e),e=e.replace(/</g,"&lt;").replace(/>/g,"&gt;"),e=e.replace(/=/g,"&equals;"),e=Iy(e))}return e},"sanitizeMore"),_r=d((e,t)=>e&&(t.dompurifyConfig?e=Qr.sanitize(Kl(e,t),t.dompurifyConfig).toString():e=Qr.sanitize(Kl(e,t),{FORBID_TAGS:["style"]}).toString(),e),"sanitizeText"),Dy=d((e,t)=>typeof e=="string"?_r(e,t):e.flat().map(r=>_r(r,t)),"sanitizeTextOrArray"),Oy=d(e=>tn.test(e),"hasBreaks"),Ry=d(e=>e.split(tn),"splitBreaks"),Iy=d(e=>e.replace(/#br#/g,"<br/>"),"placeholderToBreak"),Lh=d(e=>e.replace(tn,"#br#"),"breakToPlaceholder"),Py=d(e=>{let t="";return e&&(t=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,t=t.replaceAll(/\(/g,"\\("),t=t.replaceAll(/\)/g,"\\)")),t},"getUrl"),qt=d(e=>!(e===!1||["false","null","0"].includes(String(e).trim().toLowerCase())),"evaluate"),Ny=d(function(...e){const t=e.filter(r=>!isNaN(r));return Math.max(...t)},"getMax"),zy=d(function(...e){const t=e.filter(r=>!isNaN(r));return Math.min(...t)},"getMin"),rA=d(function(e){const t=e.split(/(,)/),r=[];for(let i=0;i<t.length;i++){let n=t[i];if(n===","&&i>0&&i+1<t.length){const a=t[i-1],o=t[i+1];qy(a,o)&&(n=a+","+o,i++,r.pop())}r.push(Wy(n))}return r.join("")},"parseGenericTypes"),Ls=d((e,t)=>Math.max(0,e.split(t).length-1),"countOccurrence"),qy=d((e,t)=>{const r=Ls(e,"~"),i=Ls(t,"~");return r===1&&i===1},"shouldCombineSets"),Wy=d(e=>{const t=Ls(e,"~");let r=!1;if(t<=1)return e;t%2!==0&&e.startsWith("~")&&(e=e.substring(1),r=!0);const i=[...e];let n=i.indexOf("~"),a=i.lastIndexOf("~");for(;n!==-1&&a!==-1&&n!==a;)i[n]="<",i[a]=">",n=i.indexOf("~"),a=i.lastIndexOf("~");return r&&i.unshift("~"),i.join("")},"processSet"),Ql=d(()=>window.MathMLElement!==void 0,"isMathMLSupported"),Bs=/\$\$(.*)\$\$/g,ri=d(e=>{var t;return(((t=e.match(Bs))==null?void 0:t.length)??0)>0},"hasKatex"),iA=d(async(e,t)=>{e=await yo(e,t);const r=document.createElement("div");r.innerHTML=e,r.id="katex-temp",r.style.visibility="hidden",r.style.position="absolute",r.style.top="0";const i=document.querySelector("body");i==null||i.insertAdjacentElement("beforeend",r);const n={width:r.clientWidth,height:r.clientHeight};return r.remove(),n},"calculateMathMLDimensions"),yo=d(async(e,t)=>{if(!ri(e))return e;if(!(Ql()||t.legacyMathML||t.forceLegacyMathML))return e.replace(Bs,"MathML is unsupported in this environment.");const{default:r}=await mt(async()=>{const{default:n}=await import("./katex-C5jXJg4s.js");return{default:n}},[]),i=t.forceLegacyMathML||!Ql()&&t.legacyMathML?"htmlAndMathml":"mathml";return e.split(tn).map(n=>ri(n)?`<div style="display: flex; align-items: center; justify-content: center; white-space: nowrap;">${n}</div>`:`<div>${n}</div>`).join("").replace(Bs,(n,a)=>r.renderToString(a,{throwOnError:!0,displayMode:!0,output:i}).replace(/\n/g," ").replace(/<annotation.*<\/annotation>/g,""))},"renderKatex"),li={getRows:Fy,sanitizeText:_r,sanitizeTextOrArray:Dy,hasBreaks:Oy,splitBreaks:Ry,lineBreakRegex:tn,removeScript:Ah,getUrl:Py,evaluate:qt,getMax:Ny,getMin:zy},Hy=d(function(e,t){for(let r of t)e.attr(r[0],r[1])},"d3Attrs"),jy=d(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"),Bh=d(function(e,t,r,i){const n=jy(t,r,i);Hy(e,n)},"configureSvgSize"),Uy=d(function(e,t,r,i){const n=t.node().getBBox(),a=n.width,o=n.height;P.info(`SVG bounds: ${a}x${o}`,n);let s=0,l=0;P.info(`Graph bounds: ${s}x${l}`,e),s=a+r*2,l=o+r*2,P.info(`Calculated bounds: ${s}x${l}`),Bh(t,l,s,i);const c=`${n.x-r} ${n.y-r} ${n.width+2*r} ${n.height+2*r}`;t.attr("viewBox",c)},"setupGraphViewbox"),Tn={},Yy=d((e,t,r)=>{let i="";return e in Tn&&Tn[e]?i=Tn[e](r):P.warn(`No theme found for ${e}`),` & {
6
+ font-family: ${r.fontFamily};
7
+ font-size: ${r.fontSize};
8
+ fill: ${r.textColor}
9
+ }
10
+
11
+ /* Classes common for multiple diagrams */
12
+
13
+ & .error-icon {
14
+ fill: ${r.errorBkgColor};
15
+ }
16
+ & .error-text {
17
+ fill: ${r.errorTextColor};
18
+ stroke: ${r.errorTextColor};
19
+ }
20
+
21
+ & .edge-thickness-normal {
22
+ stroke-width: 1px;
23
+ }
24
+ & .edge-thickness-thick {
25
+ stroke-width: 3.5px
26
+ }
27
+ & .edge-pattern-solid {
28
+ stroke-dasharray: 0;
29
+ }
30
+ & .edge-thickness-invisible {
31
+ stroke-width: 0;
32
+ fill: none;
33
+ }
34
+ & .edge-pattern-dashed{
35
+ stroke-dasharray: 3;
36
+ }
37
+ .edge-pattern-dotted {
38
+ stroke-dasharray: 2;
39
+ }
40
+
41
+ & .marker {
42
+ fill: ${r.lineColor};
43
+ stroke: ${r.lineColor};
44
+ }
45
+ & .marker.cross {
46
+ stroke: ${r.lineColor};
47
+ }
48
+
49
+ & svg {
50
+ font-family: ${r.fontFamily};
51
+ font-size: ${r.fontSize};
52
+ }
53
+ & p {
54
+ margin: 0
55
+ }
56
+
57
+ ${i}
58
+
59
+ ${t}
60
+ `},"getStyles"),Gy=d((e,t)=>{t!==void 0&&(Tn[e]=t)},"addStylesForDiagram"),Vy=Yy,Mh={};uy(Mh,{clear:()=>Xy,getAccDescription:()=>Jy,getAccTitle:()=>Ky,getDiagramTitle:()=>e0,setAccDescription:()=>Qy,setAccTitle:()=>Zy,setDiagramTitle:()=>t0});var xo="",bo="",_o="",Co=d(e=>_r(e,_e()),"sanitizeText"),Xy=d(()=>{xo="",_o="",bo=""},"clear"),Zy=d(e=>{xo=Co(e).replace(/^\s+/g,"")},"setAccTitle"),Ky=d(()=>xo,"getAccTitle"),Qy=d(e=>{_o=Co(e).replace(/\n\s+/g,`
61
+ `)},"setAccDescription"),Jy=d(()=>_o,"getAccDescription"),t0=d(e=>{bo=Co(e)},"setDiagramTitle"),e0=d(()=>bo,"getDiagramTitle"),Jl=P,r0=go,pt=_e,nA=kh,aA=ti,Eh=d(e=>_r(e,pt()),"sanitizeText"),i0=Uy,n0=d(()=>Mh,"getCommonDb"),Rn={},In=d((e,t,r)=>{var i;Rn[e]&&Jl.warn(`Diagram with id ${e} already registered. Overwriting.`),Rn[e]=t,r&&yh(e,r),Gy(e,t.styles),(i=t.injectUtils)==null||i.call(t,Jl,r0,pt,Eh,i0,n0(),()=>{})},"registerDiagram"),Ms=d(e=>{if(e in Rn)return Rn[e];throw new a0(e)},"getDiagram"),Zr,a0=(Zr=class extends Error{constructor(t){super(`Diagram ${t} not found.`)}},d(Zr,"DiagramNotFoundError"),Zr);function wo(e){return typeof e>"u"||e===null}d(wo,"isNothing");function Fh(e){return typeof e=="object"&&e!==null}d(Fh,"isObject");function $h(e){return Array.isArray(e)?e:wo(e)?[]:[e]}d($h,"toArray");function Dh(e,t){var r,i,n,a;if(t)for(a=Object.keys(t),r=0,i=a.length;r<i;r+=1)n=a[r],e[n]=t[n];return e}d(Dh,"extend");function Oh(e,t){var r="",i;for(i=0;i<t;i+=1)r+=e;return r}d(Oh,"repeat");function Rh(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}d(Rh,"isNegativeZero");var s0=wo,o0=Fh,l0=$h,c0=Oh,h0=Rh,u0=Dh,$t={isNothing:s0,isObject:o0,toArray:l0,repeat:c0,isNegativeZero:h0,extend:u0};function ko(e,t){var r="",i=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(r+='in "'+e.mark.name+'" '),r+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!t&&e.mark.snippet&&(r+=`
62
+
63
+ `+e.mark.snippet),i+" "+r):i}d(ko,"formatError");function ii(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=ko(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}d(ii,"YAMLException$1");ii.prototype=Object.create(Error.prototype);ii.prototype.constructor=ii;ii.prototype.toString=d(function(t){return this.name+": "+ko(this,t)},"toString");var ie=ii;function An(e,t,r,i,n){var a="",o="",s=Math.floor(n/2)-1;return i-t>s&&(a=" ... ",t=i-s+a.length),r-i>s&&(o=" ...",r=i+s-o.length),{str:a+e.slice(t,r).replace(/\t/g,"→")+o,pos:i-t+a.length}}d(An,"getLine");function Ln(e,t){return $t.repeat(" ",t-e.length)+e}d(Ln,"padStart");function Ih(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),typeof t.indent!="number"&&(t.indent=1),typeof t.linesBefore!="number"&&(t.linesBefore=3),typeof t.linesAfter!="number"&&(t.linesAfter=2);for(var r=/\r?\n|\r|\0/g,i=[0],n=[],a,o=-1;a=r.exec(e.buffer);)n.push(a.index),i.push(a.index+a[0].length),e.position<=a.index&&o<0&&(o=i.length-2);o<0&&(o=i.length-1);var s="",l,c,h=Math.min(e.line+t.linesAfter,n.length).toString().length,u=t.maxLength-(t.indent+h+3);for(l=1;l<=t.linesBefore&&!(o-l<0);l++)c=An(e.buffer,i[o-l],n[o-l],e.position-(i[o]-i[o-l]),u),s=$t.repeat(" ",t.indent)+Ln((e.line-l+1).toString(),h)+" | "+c.str+`
64
+ `+s;for(c=An(e.buffer,i[o],n[o],e.position,u),s+=$t.repeat(" ",t.indent)+Ln((e.line+1).toString(),h)+" | "+c.str+`
65
+ `,s+=$t.repeat("-",t.indent+h+3+c.pos)+`^
66
+ `,l=1;l<=t.linesAfter&&!(o+l>=n.length);l++)c=An(e.buffer,i[o+l],n[o+l],e.position-(i[o]-i[o+l]),u),s+=$t.repeat(" ",t.indent)+Ln((e.line+l+1).toString(),h)+" | "+c.str+`
67
+ `;return s.replace(/\n$/,"")}d(Ih,"makeSnippet");var f0=Ih,p0=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],d0=["scalar","sequence","mapping"];function Ph(e){var t={};return e!==null&&Object.keys(e).forEach(function(r){e[r].forEach(function(i){t[String(i)]=r})}),t}d(Ph,"compileStyleAliases");function Nh(e,t){if(t=t||{},Object.keys(t).forEach(function(r){if(p0.indexOf(r)===-1)throw new ie('Unknown option "'+r+'" is met in definition of "'+e+'" YAML type.')}),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(r){return r},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=Ph(t.styleAliases||null),d0.indexOf(this.kind)===-1)throw new ie('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}d(Nh,"Type$1");var Yt=Nh;function Es(e,t){var r=[];return e[t].forEach(function(i){var n=r.length;r.forEach(function(a,o){a.tag===i.tag&&a.kind===i.kind&&a.multi===i.multi&&(n=o)}),r[n]=i}),r}d(Es,"compileList");function zh(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},t,r;function i(n){n.multi?(e.multi[n.kind].push(n),e.multi.fallback.push(n)):e[n.kind][n.tag]=e.fallback[n.tag]=n}for(d(i,"collectType"),t=0,r=arguments.length;t<r;t+=1)arguments[t].forEach(i);return e}d(zh,"compileMap");function Pn(e){return this.extend(e)}d(Pn,"Schema$1");Pn.prototype.extend=d(function(t){var r=[],i=[];if(t instanceof Yt)i.push(t);else if(Array.isArray(t))i=i.concat(t);else if(t&&(Array.isArray(t.implicit)||Array.isArray(t.explicit)))t.implicit&&(r=r.concat(t.implicit)),t.explicit&&(i=i.concat(t.explicit));else throw new ie("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");r.forEach(function(a){if(!(a instanceof Yt))throw new ie("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(a.loadKind&&a.loadKind!=="scalar")throw new ie("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(a.multi)throw new ie("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),i.forEach(function(a){if(!(a instanceof Yt))throw new ie("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var n=Object.create(Pn.prototype);return n.implicit=(this.implicit||[]).concat(r),n.explicit=(this.explicit||[]).concat(i),n.compiledImplicit=Es(n,"implicit"),n.compiledExplicit=Es(n,"explicit"),n.compiledTypeMap=zh(n.compiledImplicit,n.compiledExplicit),n},"extend");var g0=Pn,m0=new Yt("tag:yaml.org,2002:str",{kind:"scalar",construct:d(function(e){return e!==null?e:""},"construct")}),y0=new Yt("tag:yaml.org,2002:seq",{kind:"sequence",construct:d(function(e){return e!==null?e:[]},"construct")}),x0=new Yt("tag:yaml.org,2002:map",{kind:"mapping",construct:d(function(e){return e!==null?e:{}},"construct")}),b0=new g0({explicit:[m0,y0,x0]});function qh(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}d(qh,"resolveYamlNull");function Wh(){return null}d(Wh,"constructYamlNull");function Hh(e){return e===null}d(Hh,"isNull");var _0=new Yt("tag:yaml.org,2002:null",{kind:"scalar",resolve:qh,construct:Wh,predicate:Hh,represent:{canonical:d(function(){return"~"},"canonical"),lowercase:d(function(){return"null"},"lowercase"),uppercase:d(function(){return"NULL"},"uppercase"),camelcase:d(function(){return"Null"},"camelcase"),empty:d(function(){return""},"empty")},defaultStyle:"lowercase"});function jh(e){if(e===null)return!1;var t=e.length;return t===4&&(e==="true"||e==="True"||e==="TRUE")||t===5&&(e==="false"||e==="False"||e==="FALSE")}d(jh,"resolveYamlBoolean");function Uh(e){return e==="true"||e==="True"||e==="TRUE"}d(Uh,"constructYamlBoolean");function Yh(e){return Object.prototype.toString.call(e)==="[object Boolean]"}d(Yh,"isBoolean");var C0=new Yt("tag:yaml.org,2002:bool",{kind:"scalar",resolve:jh,construct:Uh,predicate:Yh,represent:{lowercase:d(function(e){return e?"true":"false"},"lowercase"),uppercase:d(function(e){return e?"TRUE":"FALSE"},"uppercase"),camelcase:d(function(e){return e?"True":"False"},"camelcase")},defaultStyle:"lowercase"});function Gh(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}d(Gh,"isHexCode");function Vh(e){return 48<=e&&e<=55}d(Vh,"isOctCode");function Xh(e){return 48<=e&&e<=57}d(Xh,"isDecCode");function Zh(e){if(e===null)return!1;var t=e.length,r=0,i=!1,n;if(!t)return!1;if(n=e[r],(n==="-"||n==="+")&&(n=e[++r]),n==="0"){if(r+1===t)return!0;if(n=e[++r],n==="b"){for(r++;r<t;r++)if(n=e[r],n!=="_"){if(n!=="0"&&n!=="1")return!1;i=!0}return i&&n!=="_"}if(n==="x"){for(r++;r<t;r++)if(n=e[r],n!=="_"){if(!Gh(e.charCodeAt(r)))return!1;i=!0}return i&&n!=="_"}if(n==="o"){for(r++;r<t;r++)if(n=e[r],n!=="_"){if(!Vh(e.charCodeAt(r)))return!1;i=!0}return i&&n!=="_"}}if(n==="_")return!1;for(;r<t;r++)if(n=e[r],n!=="_"){if(!Xh(e.charCodeAt(r)))return!1;i=!0}return!(!i||n==="_")}d(Zh,"resolveYamlInteger");function Kh(e){var t=e,r=1,i;if(t.indexOf("_")!==-1&&(t=t.replace(/_/g,"")),i=t[0],(i==="-"||i==="+")&&(i==="-"&&(r=-1),t=t.slice(1),i=t[0]),t==="0")return 0;if(i==="0"){if(t[1]==="b")return r*parseInt(t.slice(2),2);if(t[1]==="x")return r*parseInt(t.slice(2),16);if(t[1]==="o")return r*parseInt(t.slice(2),8)}return r*parseInt(t,10)}d(Kh,"constructYamlInteger");function Qh(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!$t.isNegativeZero(e)}d(Qh,"isInteger");var w0=new Yt("tag:yaml.org,2002:int",{kind:"scalar",resolve:Zh,construct:Kh,predicate:Qh,represent:{binary:d(function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},"binary"),octal:d(function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},"octal"),decimal:d(function(e){return e.toString(10)},"decimal"),hexadecimal:d(function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)},"hexadecimal")},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),k0=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function Jh(e){return!(e===null||!k0.test(e)||e[e.length-1]==="_")}d(Jh,"resolveYamlFloat");function tu(e){var t,r;return t=e.replace(/_/g,"").toLowerCase(),r=t[0]==="-"?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),t===".inf"?r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:t===".nan"?NaN:r*parseFloat(t,10)}d(tu,"constructYamlFloat");var v0=/^[-+]?[0-9]+e/;function eu(e,t){var r;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if($t.isNegativeZero(e))return"-0.0";return r=e.toString(10),v0.test(r)?r.replace("e",".e"):r}d(eu,"representYamlFloat");function ru(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||$t.isNegativeZero(e))}d(ru,"isFloat");var S0=new Yt("tag:yaml.org,2002:float",{kind:"scalar",resolve:Jh,construct:tu,predicate:ru,represent:eu,defaultStyle:"lowercase"}),iu=b0.extend({implicit:[_0,C0,w0,S0]}),T0=iu,nu=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),au=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 su(e){return e===null?!1:nu.exec(e)!==null||au.exec(e)!==null}d(su,"resolveYamlTimestamp");function ou(e){var t,r,i,n,a,o,s,l=0,c=null,h,u,f;if(t=nu.exec(e),t===null&&(t=au.exec(e)),t===null)throw new Error("Date resolve error");if(r=+t[1],i=+t[2]-1,n=+t[3],!t[4])return new Date(Date.UTC(r,i,n));if(a=+t[4],o=+t[5],s=+t[6],t[7]){for(l=t[7].slice(0,3);l.length<3;)l+="0";l=+l}return t[9]&&(h=+t[10],u=+(t[11]||0),c=(h*60+u)*6e4,t[9]==="-"&&(c=-c)),f=new Date(Date.UTC(r,i,n,a,o,s,l)),c&&f.setTime(f.getTime()-c),f}d(ou,"constructYamlTimestamp");function lu(e){return e.toISOString()}d(lu,"representYamlTimestamp");var A0=new Yt("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:su,construct:ou,instanceOf:Date,represent:lu});function cu(e){return e==="<<"||e===null}d(cu,"resolveYamlMerge");var L0=new Yt("tag:yaml.org,2002:merge",{kind:"scalar",resolve:cu}),vo=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
68
+ \r`;function hu(e){if(e===null)return!1;var t,r,i=0,n=e.length,a=vo;for(r=0;r<n;r++)if(t=a.indexOf(e.charAt(r)),!(t>64)){if(t<0)return!1;i+=6}return i%8===0}d(hu,"resolveYamlBinary");function uu(e){var t,r,i=e.replace(/[\r\n=]/g,""),n=i.length,a=vo,o=0,s=[];for(t=0;t<n;t++)t%4===0&&t&&(s.push(o>>16&255),s.push(o>>8&255),s.push(o&255)),o=o<<6|a.indexOf(i.charAt(t));return r=n%4*6,r===0?(s.push(o>>16&255),s.push(o>>8&255),s.push(o&255)):r===18?(s.push(o>>10&255),s.push(o>>2&255)):r===12&&s.push(o>>4&255),new Uint8Array(s)}d(uu,"constructYamlBinary");function fu(e){var t="",r=0,i,n,a=e.length,o=vo;for(i=0;i<a;i++)i%3===0&&i&&(t+=o[r>>18&63],t+=o[r>>12&63],t+=o[r>>6&63],t+=o[r&63]),r=(r<<8)+e[i];return n=a%3,n===0?(t+=o[r>>18&63],t+=o[r>>12&63],t+=o[r>>6&63],t+=o[r&63]):n===2?(t+=o[r>>10&63],t+=o[r>>4&63],t+=o[r<<2&63],t+=o[64]):n===1&&(t+=o[r>>2&63],t+=o[r<<4&63],t+=o[64],t+=o[64]),t}d(fu,"representYamlBinary");function pu(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}d(pu,"isBinary");var B0=new Yt("tag:yaml.org,2002:binary",{kind:"scalar",resolve:hu,construct:uu,predicate:pu,represent:fu}),M0=Object.prototype.hasOwnProperty,E0=Object.prototype.toString;function du(e){if(e===null)return!0;var t=[],r,i,n,a,o,s=e;for(r=0,i=s.length;r<i;r+=1){if(n=s[r],o=!1,E0.call(n)!=="[object Object]")return!1;for(a in n)if(M0.call(n,a))if(!o)o=!0;else return!1;if(!o)return!1;if(t.indexOf(a)===-1)t.push(a);else return!1}return!0}d(du,"resolveYamlOmap");function gu(e){return e!==null?e:[]}d(gu,"constructYamlOmap");var F0=new Yt("tag:yaml.org,2002:omap",{kind:"sequence",resolve:du,construct:gu}),$0=Object.prototype.toString;function mu(e){if(e===null)return!0;var t,r,i,n,a,o=e;for(a=new Array(o.length),t=0,r=o.length;t<r;t+=1){if(i=o[t],$0.call(i)!=="[object Object]"||(n=Object.keys(i),n.length!==1))return!1;a[t]=[n[0],i[n[0]]]}return!0}d(mu,"resolveYamlPairs");function yu(e){if(e===null)return[];var t,r,i,n,a,o=e;for(a=new Array(o.length),t=0,r=o.length;t<r;t+=1)i=o[t],n=Object.keys(i),a[t]=[n[0],i[n[0]]];return a}d(yu,"constructYamlPairs");var D0=new Yt("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:mu,construct:yu}),O0=Object.prototype.hasOwnProperty;function xu(e){if(e===null)return!0;var t,r=e;for(t in r)if(O0.call(r,t)&&r[t]!==null)return!1;return!0}d(xu,"resolveYamlSet");function bu(e){return e!==null?e:{}}d(bu,"constructYamlSet");var R0=new Yt("tag:yaml.org,2002:set",{kind:"mapping",resolve:xu,construct:bu}),_u=T0.extend({implicit:[A0,L0],explicit:[B0,F0,D0,R0]}),Qe=Object.prototype.hasOwnProperty,Nn=1,Cu=2,wu=3,zn=4,us=1,I0=2,tc=3,P0=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,N0=/[\x85\u2028\u2029]/,z0=/[,\[\]\{\}]/,ku=/^(?:!|!!|![a-z\-]+!)$/i,vu=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function Fs(e){return Object.prototype.toString.call(e)}d(Fs,"_class");function xe(e){return e===10||e===13}d(xe,"is_EOL");function Ke(e){return e===9||e===32}d(Ke,"is_WHITE_SPACE");function Zt(e){return e===9||e===32||e===10||e===13}d(Zt,"is_WS_OR_EOL");function mr(e){return e===44||e===91||e===93||e===123||e===125}d(mr,"is_FLOW_INDICATOR");function Su(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}d(Su,"fromHexCode");function Tu(e){return e===120?2:e===117?4:e===85?8:0}d(Tu,"escapedHexLen");function Au(e){return 48<=e&&e<=57?e-48:-1}d(Au,"fromDecimalCode");function $s(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
69
+ `:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"…":e===95?" ":e===76?"\u2028":e===80?"\u2029":""}d($s,"simpleEscapeSequence");function Lu(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}d(Lu,"charFromCodepoint");var Bu=new Array(256),Mu=new Array(256);for(cr=0;cr<256;cr++)Bu[cr]=$s(cr)?1:0,Mu[cr]=$s(cr);var cr;function Eu(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||_u,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}d(Eu,"State$1");function So(e,t){var r={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return r.snippet=f0(r),new ie(t,r)}d(So,"generateError");function X(e,t){throw So(e,t)}d(X,"throwError");function ji(e,t){e.onWarning&&e.onWarning.call(null,So(e,t))}d(ji,"throwWarning");var ec={YAML:d(function(t,r,i){var n,a,o;t.version!==null&&X(t,"duplication of %YAML directive"),i.length!==1&&X(t,"YAML directive accepts exactly one argument"),n=/^([0-9]+)\.([0-9]+)$/.exec(i[0]),n===null&&X(t,"ill-formed argument of the YAML directive"),a=parseInt(n[1],10),o=parseInt(n[2],10),a!==1&&X(t,"unacceptable YAML version of the document"),t.version=i[0],t.checkLineBreaks=o<2,o!==1&&o!==2&&ji(t,"unsupported YAML version of the document")},"handleYamlDirective"),TAG:d(function(t,r,i){var n,a;i.length!==2&&X(t,"TAG directive accepts exactly two arguments"),n=i[0],a=i[1],ku.test(n)||X(t,"ill-formed tag handle (first argument) of the TAG directive"),Qe.call(t.tagMap,n)&&X(t,'there is a previously declared suffix for "'+n+'" tag handle'),vu.test(a)||X(t,"ill-formed tag prefix (second argument) of the TAG directive");try{a=decodeURIComponent(a)}catch{X(t,"tag prefix is malformed: "+a)}t.tagMap[n]=a},"handleTagDirective")};function Ne(e,t,r,i){var n,a,o,s;if(t<r){if(s=e.input.slice(t,r),i)for(n=0,a=s.length;n<a;n+=1)o=s.charCodeAt(n),o===9||32<=o&&o<=1114111||X(e,"expected valid JSON character");else P0.test(s)&&X(e,"the stream contains non-printable characters");e.result+=s}}d(Ne,"captureSegment");function Ds(e,t,r,i){var n,a,o,s;for($t.isObject(r)||X(e,"cannot merge mappings; the provided source object is unacceptable"),n=Object.keys(r),o=0,s=n.length;o<s;o+=1)a=n[o],Qe.call(t,a)||(t[a]=r[a],i[a]=!0)}d(Ds,"mergeMappings");function yr(e,t,r,i,n,a,o,s,l){var c,h;if(Array.isArray(n))for(n=Array.prototype.slice.call(n),c=0,h=n.length;c<h;c+=1)Array.isArray(n[c])&&X(e,"nested arrays are not supported inside keys"),typeof n=="object"&&Fs(n[c])==="[object Object]"&&(n[c]="[object Object]");if(typeof n=="object"&&Fs(n)==="[object Object]"&&(n="[object Object]"),n=String(n),t===null&&(t={}),i==="tag:yaml.org,2002:merge")if(Array.isArray(a))for(c=0,h=a.length;c<h;c+=1)Ds(e,t,a[c],r);else Ds(e,t,a,r);else!e.json&&!Qe.call(r,n)&&Qe.call(t,n)&&(e.line=o||e.line,e.lineStart=s||e.lineStart,e.position=l||e.position,X(e,"duplicated mapping key")),n==="__proto__"?Object.defineProperty(t,n,{configurable:!0,enumerable:!0,writable:!0,value:a}):t[n]=a,delete r[n];return t}d(yr,"storeMappingPair");function da(e){var t;t=e.input.charCodeAt(e.position),t===10?e.position++:t===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):X(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}d(da,"readLineBreak");function Lt(e,t,r){for(var i=0,n=e.input.charCodeAt(e.position);n!==0;){for(;Ke(n);)n===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),n=e.input.charCodeAt(++e.position);if(t&&n===35)do n=e.input.charCodeAt(++e.position);while(n!==10&&n!==13&&n!==0);if(xe(n))for(da(e),n=e.input.charCodeAt(e.position),i++,e.lineIndent=0;n===32;)e.lineIndent++,n=e.input.charCodeAt(++e.position);else break}return r!==-1&&i!==0&&e.lineIndent<r&&ji(e,"deficient indentation"),i}d(Lt,"skipSeparationSpace");function en(e){var t=e.position,r;return r=e.input.charCodeAt(t),!!((r===45||r===46)&&r===e.input.charCodeAt(t+1)&&r===e.input.charCodeAt(t+2)&&(t+=3,r=e.input.charCodeAt(t),r===0||Zt(r)))}d(en,"testDocumentSeparator");function ga(e,t){t===1?e.result+=" ":t>1&&(e.result+=$t.repeat(`
70
+ `,t-1))}d(ga,"writeFoldedLines");function Fu(e,t,r){var i,n,a,o,s,l,c,h,u=e.kind,f=e.result,p;if(p=e.input.charCodeAt(e.position),Zt(p)||mr(p)||p===35||p===38||p===42||p===33||p===124||p===62||p===39||p===34||p===37||p===64||p===96||(p===63||p===45)&&(n=e.input.charCodeAt(e.position+1),Zt(n)||r&&mr(n)))return!1;for(e.kind="scalar",e.result="",a=o=e.position,s=!1;p!==0;){if(p===58){if(n=e.input.charCodeAt(e.position+1),Zt(n)||r&&mr(n))break}else if(p===35){if(i=e.input.charCodeAt(e.position-1),Zt(i))break}else{if(e.position===e.lineStart&&en(e)||r&&mr(p))break;if(xe(p))if(l=e.line,c=e.lineStart,h=e.lineIndent,Lt(e,!1,-1),e.lineIndent>=t){s=!0,p=e.input.charCodeAt(e.position);continue}else{e.position=o,e.line=l,e.lineStart=c,e.lineIndent=h;break}}s&&(Ne(e,a,o,!1),ga(e,e.line-l),a=o=e.position,s=!1),Ke(p)||(o=e.position+1),p=e.input.charCodeAt(++e.position)}return Ne(e,a,o,!1),e.result?!0:(e.kind=u,e.result=f,!1)}d(Fu,"readPlainScalar");function $u(e,t){var r,i,n;if(r=e.input.charCodeAt(e.position),r!==39)return!1;for(e.kind="scalar",e.result="",e.position++,i=n=e.position;(r=e.input.charCodeAt(e.position))!==0;)if(r===39)if(Ne(e,i,e.position,!0),r=e.input.charCodeAt(++e.position),r===39)i=e.position,e.position++,n=e.position;else return!0;else xe(r)?(Ne(e,i,n,!0),ga(e,Lt(e,!1,t)),i=n=e.position):e.position===e.lineStart&&en(e)?X(e,"unexpected end of the document within a single quoted scalar"):(e.position++,n=e.position);X(e,"unexpected end of the stream within a single quoted scalar")}d($u,"readSingleQuotedScalar");function Du(e,t){var r,i,n,a,o,s;if(s=e.input.charCodeAt(e.position),s!==34)return!1;for(e.kind="scalar",e.result="",e.position++,r=i=e.position;(s=e.input.charCodeAt(e.position))!==0;){if(s===34)return Ne(e,r,e.position,!0),e.position++,!0;if(s===92){if(Ne(e,r,e.position,!0),s=e.input.charCodeAt(++e.position),xe(s))Lt(e,!1,t);else if(s<256&&Bu[s])e.result+=Mu[s],e.position++;else if((o=Tu(s))>0){for(n=o,a=0;n>0;n--)s=e.input.charCodeAt(++e.position),(o=Su(s))>=0?a=(a<<4)+o:X(e,"expected hexadecimal character");e.result+=Lu(a),e.position++}else X(e,"unknown escape sequence");r=i=e.position}else xe(s)?(Ne(e,r,i,!0),ga(e,Lt(e,!1,t)),r=i=e.position):e.position===e.lineStart&&en(e)?X(e,"unexpected end of the document within a double quoted scalar"):(e.position++,i=e.position)}X(e,"unexpected end of the stream within a double quoted scalar")}d(Du,"readDoubleQuotedScalar");function Ou(e,t){var r=!0,i,n,a,o=e.tag,s,l=e.anchor,c,h,u,f,p,g=Object.create(null),m,x,y,_;if(_=e.input.charCodeAt(e.position),_===91)h=93,p=!1,s=[];else if(_===123)h=125,p=!0,s={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=s),_=e.input.charCodeAt(++e.position);_!==0;){if(Lt(e,!0,t),_=e.input.charCodeAt(e.position),_===h)return e.position++,e.tag=o,e.anchor=l,e.kind=p?"mapping":"sequence",e.result=s,!0;r?_===44&&X(e,"expected the node content, but found ','"):X(e,"missed comma between flow collection entries"),x=m=y=null,u=f=!1,_===63&&(c=e.input.charCodeAt(e.position+1),Zt(c)&&(u=f=!0,e.position++,Lt(e,!0,t))),i=e.line,n=e.lineStart,a=e.position,Cr(e,t,Nn,!1,!0),x=e.tag,m=e.result,Lt(e,!0,t),_=e.input.charCodeAt(e.position),(f||e.line===i)&&_===58&&(u=!0,_=e.input.charCodeAt(++e.position),Lt(e,!0,t),Cr(e,t,Nn,!1,!0),y=e.result),p?yr(e,s,g,x,m,y,i,n,a):u?s.push(yr(e,null,g,x,m,y,i,n,a)):s.push(m),Lt(e,!0,t),_=e.input.charCodeAt(e.position),_===44?(r=!0,_=e.input.charCodeAt(++e.position)):r=!1}X(e,"unexpected end of the stream within a flow collection")}d(Ou,"readFlowCollection");function Ru(e,t){var r,i,n=us,a=!1,o=!1,s=t,l=0,c=!1,h,u;if(u=e.input.charCodeAt(e.position),u===124)i=!1;else if(u===62)i=!0;else return!1;for(e.kind="scalar",e.result="";u!==0;)if(u=e.input.charCodeAt(++e.position),u===43||u===45)us===n?n=u===43?tc:I0:X(e,"repeat of a chomping mode identifier");else if((h=Au(u))>=0)h===0?X(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):o?X(e,"repeat of an indentation width identifier"):(s=t+h-1,o=!0);else break;if(Ke(u)){do u=e.input.charCodeAt(++e.position);while(Ke(u));if(u===35)do u=e.input.charCodeAt(++e.position);while(!xe(u)&&u!==0)}for(;u!==0;){for(da(e),e.lineIndent=0,u=e.input.charCodeAt(e.position);(!o||e.lineIndent<s)&&u===32;)e.lineIndent++,u=e.input.charCodeAt(++e.position);if(!o&&e.lineIndent>s&&(s=e.lineIndent),xe(u)){l++;continue}if(e.lineIndent<s){n===tc?e.result+=$t.repeat(`
71
+ `,a?1+l:l):n===us&&a&&(e.result+=`
72
+ `);break}for(i?Ke(u)?(c=!0,e.result+=$t.repeat(`
73
+ `,a?1+l:l)):c?(c=!1,e.result+=$t.repeat(`
74
+ `,l+1)):l===0?a&&(e.result+=" "):e.result+=$t.repeat(`
75
+ `,l):e.result+=$t.repeat(`
76
+ `,a?1+l:l),a=!0,o=!0,l=0,r=e.position;!xe(u)&&u!==0;)u=e.input.charCodeAt(++e.position);Ne(e,r,e.position,!1)}return!0}d(Ru,"readBlockScalar");function Os(e,t){var r,i=e.tag,n=e.anchor,a=[],o,s=!1,l;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=a),l=e.input.charCodeAt(e.position);l!==0&&(e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,X(e,"tab characters must not be used in indentation")),!(l!==45||(o=e.input.charCodeAt(e.position+1),!Zt(o))));){if(s=!0,e.position++,Lt(e,!0,-1)&&e.lineIndent<=t){a.push(null),l=e.input.charCodeAt(e.position);continue}if(r=e.line,Cr(e,t,wu,!1,!0),a.push(e.result),Lt(e,!0,-1),l=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&l!==0)X(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}return s?(e.tag=i,e.anchor=n,e.kind="sequence",e.result=a,!0):!1}d(Os,"readBlockSequence");function Iu(e,t,r){var i,n,a,o,s,l,c=e.tag,h=e.anchor,u={},f=Object.create(null),p=null,g=null,m=null,x=!1,y=!1,_;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=u),_=e.input.charCodeAt(e.position);_!==0;){if(!x&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,X(e,"tab characters must not be used in indentation")),i=e.input.charCodeAt(e.position+1),a=e.line,(_===63||_===58)&&Zt(i))_===63?(x&&(yr(e,u,f,p,g,null,o,s,l),p=g=m=null),y=!0,x=!0,n=!0):x?(x=!1,n=!0):X(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,_=i;else{if(o=e.line,s=e.lineStart,l=e.position,!Cr(e,r,Cu,!1,!0))break;if(e.line===a){for(_=e.input.charCodeAt(e.position);Ke(_);)_=e.input.charCodeAt(++e.position);if(_===58)_=e.input.charCodeAt(++e.position),Zt(_)||X(e,"a whitespace character is expected after the key-value separator within a block mapping"),x&&(yr(e,u,f,p,g,null,o,s,l),p=g=m=null),y=!0,x=!1,n=!1,p=e.tag,g=e.result;else if(y)X(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=c,e.anchor=h,!0}else if(y)X(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=c,e.anchor=h,!0}if((e.line===a||e.lineIndent>t)&&(x&&(o=e.line,s=e.lineStart,l=e.position),Cr(e,t,zn,!0,n)&&(x?g=e.result:m=e.result),x||(yr(e,u,f,p,g,m,o,s,l),p=g=m=null),Lt(e,!0,-1),_=e.input.charCodeAt(e.position)),(e.line===a||e.lineIndent>t)&&_!==0)X(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return x&&yr(e,u,f,p,g,null,o,s,l),y&&(e.tag=c,e.anchor=h,e.kind="mapping",e.result=u),y}d(Iu,"readBlockMapping");function Pu(e){var t,r=!1,i=!1,n,a,o;if(o=e.input.charCodeAt(e.position),o!==33)return!1;if(e.tag!==null&&X(e,"duplication of a tag property"),o=e.input.charCodeAt(++e.position),o===60?(r=!0,o=e.input.charCodeAt(++e.position)):o===33?(i=!0,n="!!",o=e.input.charCodeAt(++e.position)):n="!",t=e.position,r){do o=e.input.charCodeAt(++e.position);while(o!==0&&o!==62);e.position<e.length?(a=e.input.slice(t,e.position),o=e.input.charCodeAt(++e.position)):X(e,"unexpected end of the stream within a verbatim tag")}else{for(;o!==0&&!Zt(o);)o===33&&(i?X(e,"tag suffix cannot contain exclamation marks"):(n=e.input.slice(t-1,e.position+1),ku.test(n)||X(e,"named tag handle cannot contain such characters"),i=!0,t=e.position+1)),o=e.input.charCodeAt(++e.position);a=e.input.slice(t,e.position),z0.test(a)&&X(e,"tag suffix cannot contain flow indicator characters")}a&&!vu.test(a)&&X(e,"tag name cannot contain such characters: "+a);try{a=decodeURIComponent(a)}catch{X(e,"tag name is malformed: "+a)}return r?e.tag=a:Qe.call(e.tagMap,n)?e.tag=e.tagMap[n]+a:n==="!"?e.tag="!"+a:n==="!!"?e.tag="tag:yaml.org,2002:"+a:X(e,'undeclared tag handle "'+n+'"'),!0}d(Pu,"readTagProperty");function Nu(e){var t,r;if(r=e.input.charCodeAt(e.position),r!==38)return!1;for(e.anchor!==null&&X(e,"duplication of an anchor property"),r=e.input.charCodeAt(++e.position),t=e.position;r!==0&&!Zt(r)&&!mr(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&X(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}d(Nu,"readAnchorProperty");function zu(e){var t,r,i;if(i=e.input.charCodeAt(e.position),i!==42)return!1;for(i=e.input.charCodeAt(++e.position),t=e.position;i!==0&&!Zt(i)&&!mr(i);)i=e.input.charCodeAt(++e.position);return e.position===t&&X(e,"name of an alias node must contain at least one character"),r=e.input.slice(t,e.position),Qe.call(e.anchorMap,r)||X(e,'unidentified alias "'+r+'"'),e.result=e.anchorMap[r],Lt(e,!0,-1),!0}d(zu,"readAlias");function Cr(e,t,r,i,n){var a,o,s,l=1,c=!1,h=!1,u,f,p,g,m,x;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,a=o=s=zn===r||wu===r,i&&Lt(e,!0,-1)&&(c=!0,e.lineIndent>t?l=1:e.lineIndent===t?l=0:e.lineIndent<t&&(l=-1)),l===1)for(;Pu(e)||Nu(e);)Lt(e,!0,-1)?(c=!0,s=a,e.lineIndent>t?l=1:e.lineIndent===t?l=0:e.lineIndent<t&&(l=-1)):s=!1;if(s&&(s=c||n),(l===1||zn===r)&&(Nn===r||Cu===r?m=t:m=t+1,x=e.position-e.lineStart,l===1?s&&(Os(e,x)||Iu(e,x,m))||Ou(e,m)?h=!0:(o&&Ru(e,m)||$u(e,m)||Du(e,m)?h=!0:zu(e)?(h=!0,(e.tag!==null||e.anchor!==null)&&X(e,"alias node should not have any properties")):Fu(e,m,Nn===r)&&(h=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):l===0&&(h=s&&Os(e,x))),e.tag===null)e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);else if(e.tag==="?"){for(e.result!==null&&e.kind!=="scalar"&&X(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),u=0,f=e.implicitTypes.length;u<f;u+=1)if(g=e.implicitTypes[u],g.resolve(e.result)){e.result=g.construct(e.result),e.tag=g.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else if(e.tag!=="!"){if(Qe.call(e.typeMap[e.kind||"fallback"],e.tag))g=e.typeMap[e.kind||"fallback"][e.tag];else for(g=null,p=e.typeMap.multi[e.kind||"fallback"],u=0,f=p.length;u<f;u+=1)if(e.tag.slice(0,p[u].tag.length)===p[u].tag){g=p[u];break}g||X(e,"unknown tag !<"+e.tag+">"),e.result!==null&&g.kind!==e.kind&&X(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+g.kind+'", not "'+e.kind+'"'),g.resolve(e.result,e.tag)?(e.result=g.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):X(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||h}d(Cr,"composeNode");function qu(e){var t=e.position,r,i,n,a=!1,o;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(o=e.input.charCodeAt(e.position))!==0&&(Lt(e,!0,-1),o=e.input.charCodeAt(e.position),!(e.lineIndent>0||o!==37));){for(a=!0,o=e.input.charCodeAt(++e.position),r=e.position;o!==0&&!Zt(o);)o=e.input.charCodeAt(++e.position);for(i=e.input.slice(r,e.position),n=[],i.length<1&&X(e,"directive name must not be less than one character in length");o!==0;){for(;Ke(o);)o=e.input.charCodeAt(++e.position);if(o===35){do o=e.input.charCodeAt(++e.position);while(o!==0&&!xe(o));break}if(xe(o))break;for(r=e.position;o!==0&&!Zt(o);)o=e.input.charCodeAt(++e.position);n.push(e.input.slice(r,e.position))}o!==0&&da(e),Qe.call(ec,i)?ec[i](e,i,n):ji(e,'unknown document directive "'+i+'"')}if(Lt(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,Lt(e,!0,-1)):a&&X(e,"directives end mark is expected"),Cr(e,e.lineIndent-1,zn,!1,!0),Lt(e,!0,-1),e.checkLineBreaks&&N0.test(e.input.slice(t,e.position))&&ji(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&en(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,Lt(e,!0,-1));return}if(e.position<e.length-1)X(e,"end of the stream or a document separator is expected");else return}d(qu,"readDocument");function To(e,t){e=String(e),t=t||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
77
+ `),e.charCodeAt(0)===65279&&(e=e.slice(1)));var r=new Eu(e,t),i=e.indexOf("\0");for(i!==-1&&(r.position=i,X(r,"null byte is not allowed in input")),r.input+="\0";r.input.charCodeAt(r.position)===32;)r.lineIndent+=1,r.position+=1;for(;r.position<r.length-1;)qu(r);return r.documents}d(To,"loadDocuments");function q0(e,t,r){t!==null&&typeof t=="object"&&typeof r>"u"&&(r=t,t=null);var i=To(e,r);if(typeof t!="function")return i;for(var n=0,a=i.length;n<a;n+=1)t(i[n])}d(q0,"loadAll$1");function Wu(e,t){var r=To(e,t);if(r.length!==0){if(r.length===1)return r[0];throw new ie("expected a single document in the stream, but found more")}}d(Wu,"load$1");var W0=Wu,H0={load:W0},Hu=Object.prototype.toString,ju=Object.prototype.hasOwnProperty,Ao=65279,j0=9,Ui=10,U0=13,Y0=32,G0=33,V0=34,Rs=35,X0=37,Z0=38,K0=39,Q0=42,Uu=44,J0=45,qn=58,tx=61,ex=62,rx=63,ix=64,Yu=91,Gu=93,nx=96,Vu=123,ax=124,Xu=125,Gt={};Gt[0]="\\0";Gt[7]="\\a";Gt[8]="\\b";Gt[9]="\\t";Gt[10]="\\n";Gt[11]="\\v";Gt[12]="\\f";Gt[13]="\\r";Gt[27]="\\e";Gt[34]='\\"';Gt[92]="\\\\";Gt[133]="\\N";Gt[160]="\\_";Gt[8232]="\\L";Gt[8233]="\\P";var sx=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],ox=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function Zu(e,t){var r,i,n,a,o,s,l;if(t===null)return{};for(r={},i=Object.keys(t),n=0,a=i.length;n<a;n+=1)o=i[n],s=String(t[o]),o.slice(0,2)==="!!"&&(o="tag:yaml.org,2002:"+o.slice(2)),l=e.compiledTypeMap.fallback[o],l&&ju.call(l.styleAliases,s)&&(s=l.styleAliases[s]),r[o]=s;return r}d(Zu,"compileStyleMap");function Ku(e){var t,r,i;if(t=e.toString(16).toUpperCase(),e<=255)r="x",i=2;else if(e<=65535)r="u",i=4;else if(e<=4294967295)r="U",i=8;else throw new ie("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+$t.repeat("0",i-t.length)+t}d(Ku,"encodeHex");var lx=1,Yi=2;function Qu(e){this.schema=e.schema||_u,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=$t.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=Zu(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.quotingType=e.quotingType==='"'?Yi:lx,this.forceQuotes=e.forceQuotes||!1,this.replacer=typeof e.replacer=="function"?e.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}d(Qu,"State");function Is(e,t){for(var r=$t.repeat(" ",t),i=0,n=-1,a="",o,s=e.length;i<s;)n=e.indexOf(`
78
+ `,i),n===-1?(o=e.slice(i),i=s):(o=e.slice(i,n+1),i=n+1),o.length&&o!==`
79
+ `&&(a+=r),a+=o;return a}d(Is,"indentString");function Wn(e,t){return`
80
+ `+$t.repeat(" ",e.indent*t)}d(Wn,"generateNextLine");function Ju(e,t){var r,i,n;for(r=0,i=e.implicitTypes.length;r<i;r+=1)if(n=e.implicitTypes[r],n.resolve(t))return!0;return!1}d(Ju,"testImplicitResolving");function Gi(e){return e===Y0||e===j0}d(Gi,"isWhitespace");function ni(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==Ao||65536<=e&&e<=1114111}d(ni,"isPrintable");function Ps(e){return ni(e)&&e!==Ao&&e!==U0&&e!==Ui}d(Ps,"isNsCharOrWhitespace");function Ns(e,t,r){var i=Ps(e),n=i&&!Gi(e);return(r?i:i&&e!==Uu&&e!==Yu&&e!==Gu&&e!==Vu&&e!==Xu)&&e!==Rs&&!(t===qn&&!n)||Ps(t)&&!Gi(t)&&e===Rs||t===qn&&n}d(Ns,"isPlainSafe");function tf(e){return ni(e)&&e!==Ao&&!Gi(e)&&e!==J0&&e!==rx&&e!==qn&&e!==Uu&&e!==Yu&&e!==Gu&&e!==Vu&&e!==Xu&&e!==Rs&&e!==Z0&&e!==Q0&&e!==G0&&e!==ax&&e!==tx&&e!==ex&&e!==K0&&e!==V0&&e!==X0&&e!==ix&&e!==nx}d(tf,"isPlainSafeFirst");function ef(e){return!Gi(e)&&e!==qn}d(ef,"isPlainSafeLast");function Nr(e,t){var r=e.charCodeAt(t),i;return r>=55296&&r<=56319&&t+1<e.length&&(i=e.charCodeAt(t+1),i>=56320&&i<=57343)?(r-55296)*1024+i-56320+65536:r}d(Nr,"codePointAt");function Lo(e){var t=/^\n* /;return t.test(e)}d(Lo,"needIndentIndicator");var rf=1,zs=2,nf=3,af=4,Pr=5;function sf(e,t,r,i,n,a,o,s){var l,c=0,h=null,u=!1,f=!1,p=i!==-1,g=-1,m=tf(Nr(e,0))&&ef(Nr(e,e.length-1));if(t||o)for(l=0;l<e.length;c>=65536?l+=2:l++){if(c=Nr(e,l),!ni(c))return Pr;m=m&&Ns(c,h,s),h=c}else{for(l=0;l<e.length;c>=65536?l+=2:l++){if(c=Nr(e,l),c===Ui)u=!0,p&&(f=f||l-g-1>i&&e[g+1]!==" ",g=l);else if(!ni(c))return Pr;m=m&&Ns(c,h,s),h=c}f=f||p&&l-g-1>i&&e[g+1]!==" "}return!u&&!f?m&&!o&&!n(e)?rf:a===Yi?Pr:zs:r>9&&Lo(e)?Pr:o?a===Yi?Pr:zs:f?af:nf}d(sf,"chooseScalarStyle");function of(e,t,r,i,n){e.dump=function(){if(t.length===0)return e.quotingType===Yi?'""':"''";if(!e.noCompatMode&&(sx.indexOf(t)!==-1||ox.test(t)))return e.quotingType===Yi?'"'+t+'"':"'"+t+"'";var a=e.indent*Math.max(1,r),o=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-a),s=i||e.flowLevel>-1&&r>=e.flowLevel;function l(c){return Ju(e,c)}switch(d(l,"testAmbiguity"),sf(t,s,e.indent,o,l,e.quotingType,e.forceQuotes&&!i,n)){case rf:return t;case zs:return"'"+t.replace(/'/g,"''")+"'";case nf:return"|"+qs(t,e.indent)+Ws(Is(t,a));case af:return">"+qs(t,e.indent)+Ws(Is(lf(t,o),a));case Pr:return'"'+cf(t)+'"';default:throw new ie("impossible error: invalid scalar style")}}()}d(of,"writeScalar");function qs(e,t){var r=Lo(e)?String(t):"",i=e[e.length-1]===`
81
+ `,n=i&&(e[e.length-2]===`
82
+ `||e===`
83
+ `),a=n?"+":i?"":"-";return r+a+`
84
+ `}d(qs,"blockHeader");function Ws(e){return e[e.length-1]===`
85
+ `?e.slice(0,-1):e}d(Ws,"dropEndingNewline");function lf(e,t){for(var r=/(\n+)([^\n]*)/g,i=function(){var c=e.indexOf(`
86
+ `);return c=c!==-1?c:e.length,r.lastIndex=c,Hs(e.slice(0,c),t)}(),n=e[0]===`
87
+ `||e[0]===" ",a,o;o=r.exec(e);){var s=o[1],l=o[2];a=l[0]===" ",i+=s+(!n&&!a&&l!==""?`
88
+ `:"")+Hs(l,t),n=a}return i}d(lf,"foldString");function Hs(e,t){if(e===""||e[0]===" ")return e;for(var r=/ [^ ]/g,i,n=0,a,o=0,s=0,l="";i=r.exec(e);)s=i.index,s-n>t&&(a=o>n?o:s,l+=`
89
+ `+e.slice(n,a),n=a+1),o=s;return l+=`
90
+ `,e.length-n>t&&o>n?l+=e.slice(n,o)+`
91
+ `+e.slice(o+1):l+=e.slice(n),l.slice(1)}d(Hs,"foldLine");function cf(e){for(var t="",r=0,i,n=0;n<e.length;r>=65536?n+=2:n++)r=Nr(e,n),i=Gt[r],!i&&ni(r)?(t+=e[n],r>=65536&&(t+=e[n+1])):t+=i||Ku(r);return t}d(cf,"escapeString");function hf(e,t,r){var i="",n=e.tag,a,o,s;for(a=0,o=r.length;a<o;a+=1)s=r[a],e.replacer&&(s=e.replacer.call(r,String(a),s)),(Me(e,t,s,!1,!1)||typeof s>"u"&&Me(e,t,null,!1,!1))&&(i!==""&&(i+=","+(e.condenseFlow?"":" ")),i+=e.dump);e.tag=n,e.dump="["+i+"]"}d(hf,"writeFlowSequence");function js(e,t,r,i){var n="",a=e.tag,o,s,l;for(o=0,s=r.length;o<s;o+=1)l=r[o],e.replacer&&(l=e.replacer.call(r,String(o),l)),(Me(e,t+1,l,!0,!0,!1,!0)||typeof l>"u"&&Me(e,t+1,null,!0,!0,!1,!0))&&((!i||n!=="")&&(n+=Wn(e,t)),e.dump&&Ui===e.dump.charCodeAt(0)?n+="-":n+="- ",n+=e.dump);e.tag=a,e.dump=n||"[]"}d(js,"writeBlockSequence");function uf(e,t,r){var i="",n=e.tag,a=Object.keys(r),o,s,l,c,h;for(o=0,s=a.length;o<s;o+=1)h="",i!==""&&(h+=", "),e.condenseFlow&&(h+='"'),l=a[o],c=r[l],e.replacer&&(c=e.replacer.call(r,l,c)),Me(e,t,l,!1,!1)&&(e.dump.length>1024&&(h+="? "),h+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),Me(e,t,c,!1,!1)&&(h+=e.dump,i+=h));e.tag=n,e.dump="{"+i+"}"}d(uf,"writeFlowMapping");function ff(e,t,r,i){var n="",a=e.tag,o=Object.keys(r),s,l,c,h,u,f;if(e.sortKeys===!0)o.sort();else if(typeof e.sortKeys=="function")o.sort(e.sortKeys);else if(e.sortKeys)throw new ie("sortKeys must be a boolean or a function");for(s=0,l=o.length;s<l;s+=1)f="",(!i||n!=="")&&(f+=Wn(e,t)),c=o[s],h=r[c],e.replacer&&(h=e.replacer.call(r,c,h)),Me(e,t+1,c,!0,!0,!0)&&(u=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,u&&(e.dump&&Ui===e.dump.charCodeAt(0)?f+="?":f+="? "),f+=e.dump,u&&(f+=Wn(e,t)),Me(e,t+1,h,!0,u)&&(e.dump&&Ui===e.dump.charCodeAt(0)?f+=":":f+=": ",f+=e.dump,n+=f));e.tag=a,e.dump=n||"{}"}d(ff,"writeBlockMapping");function Us(e,t,r){var i,n,a,o,s,l;for(n=r?e.explicitTypes:e.implicitTypes,a=0,o=n.length;a<o;a+=1)if(s=n[a],(s.instanceOf||s.predicate)&&(!s.instanceOf||typeof t=="object"&&t instanceof s.instanceOf)&&(!s.predicate||s.predicate(t))){if(r?s.multi&&s.representName?e.tag=s.representName(t):e.tag=s.tag:e.tag="?",s.represent){if(l=e.styleMap[s.tag]||s.defaultStyle,Hu.call(s.represent)==="[object Function]")i=s.represent(t,l);else if(ju.call(s.represent,l))i=s.represent[l](t,l);else throw new ie("!<"+s.tag+'> tag resolver accepts not "'+l+'" style');e.dump=i}return!0}return!1}d(Us,"detectType");function Me(e,t,r,i,n,a,o){e.tag=null,e.dump=r,Us(e,r,!1)||Us(e,r,!0);var s=Hu.call(e.dump),l=i,c;i&&(i=e.flowLevel<0||e.flowLevel>t);var h=s==="[object Object]"||s==="[object Array]",u,f;if(h&&(u=e.duplicates.indexOf(r),f=u!==-1),(e.tag!==null&&e.tag!=="?"||f||e.indent!==2&&t>0)&&(n=!1),f&&e.usedDuplicates[u])e.dump="*ref_"+u;else{if(h&&f&&!e.usedDuplicates[u]&&(e.usedDuplicates[u]=!0),s==="[object Object]")i&&Object.keys(e.dump).length!==0?(ff(e,t,e.dump,n),f&&(e.dump="&ref_"+u+e.dump)):(uf(e,t,e.dump),f&&(e.dump="&ref_"+u+" "+e.dump));else if(s==="[object Array]")i&&e.dump.length!==0?(e.noArrayIndent&&!o&&t>0?js(e,t-1,e.dump,n):js(e,t,e.dump,n),f&&(e.dump="&ref_"+u+e.dump)):(hf(e,t,e.dump),f&&(e.dump="&ref_"+u+" "+e.dump));else if(s==="[object String]")e.tag!=="?"&&of(e,e.dump,t,a,l);else{if(s==="[object Undefined]")return!1;if(e.skipInvalid)return!1;throw new ie("unacceptable kind of an object to dump "+s)}e.tag!==null&&e.tag!=="?"&&(c=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21"),e.tag[0]==="!"?c="!"+c:c.slice(0,18)==="tag:yaml.org,2002:"?c="!!"+c.slice(18):c="!<"+c+">",e.dump=c+" "+e.dump)}return!0}d(Me,"writeNode");function pf(e,t){var r=[],i=[],n,a;for(Hn(e,r,i),n=0,a=i.length;n<a;n+=1)t.duplicates.push(r[i[n]]);t.usedDuplicates=new Array(a)}d(pf,"getDuplicateReferences");function Hn(e,t,r){var i,n,a;if(e!==null&&typeof e=="object")if(n=t.indexOf(e),n!==-1)r.indexOf(n)===-1&&r.push(n);else if(t.push(e),Array.isArray(e))for(n=0,a=e.length;n<a;n+=1)Hn(e[n],t,r);else for(i=Object.keys(e),n=0,a=i.length;n<a;n+=1)Hn(e[i[n]],t,r)}d(Hn,"inspectNode");function cx(e,t){t=t||{};var r=new Qu(t);r.noRefs||pf(e,r);var i=e;return r.replacer&&(i=r.replacer.call({"":i},"",i)),Me(r,0,i,!0,!0)?r.dump+`
92
+ `:""}d(cx,"dump$1");function hx(e,t){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+t+" instead, which is now safe by default.")}}d(hx,"renamed");var ux=iu,fx=H0.load;/*! Bundled license information:
93
+
94
+ js-yaml/dist/js-yaml.mjs:
95
+ (*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT *)
96
+ */const px=Object.freeze({left:0,top:0,width:16,height:16}),jn=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),df=Object.freeze({...px,...jn}),dx=Object.freeze({...df,body:"",hidden:!1}),gx=Object.freeze({width:null,height:null}),mx=Object.freeze({...gx,...jn}),yx=(e,t,r,i="")=>{const n=e.split(":");if(e.slice(0,1)==="@"){if(n.length<2||n.length>3)return null;i=n.shift().slice(1)}if(n.length>3||!n.length)return null;if(n.length>1){const s=n.pop(),l=n.pop(),c={provider:n.length>0?n[0]:i,prefix:l,name:s};return fs(c)?c:null}const a=n[0],o=a.split("-");if(o.length>1){const s={provider:i,prefix:o.shift(),name:o.join("-")};return fs(s)?s:null}if(r&&i===""){const s={provider:i,prefix:"",name:a};return fs(s,r)?s:null}return null},fs=(e,t)=>e?!!((t&&e.prefix===""||e.prefix)&&e.name):!1;function xx(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 rc(e,t){const r=xx(e,t);for(const i in dx)i in jn?i in e&&!(i in r)&&(r[i]=jn[i]):i in t?r[i]=t[i]:i in e&&(r[i]=e[i]);return r}function bx(e,t){const r=e.icons,i=e.aliases||Object.create(null),n=Object.create(null);function a(o){if(r[o])return n[o]=[];if(!(o in n)){n[o]=null;const s=i[o]&&i[o].parent,l=s&&a(s);l&&(n[o]=[s].concat(l))}return n[o]}return(t||Object.keys(r).concat(Object.keys(i))).forEach(a),n}function ic(e,t,r){const i=e.icons,n=e.aliases||Object.create(null);let a={};function o(s){a=rc(i[s]||n[s],a)}return o(t),r.forEach(o),rc(e,a)}function _x(e,t){if(e.icons[t])return ic(e,t,[]);const r=bx(e,[t])[t];return r?ic(e,t,r):null}const Cx=/(-?[0-9.]*[0-9]+[0-9.]*)/g,wx=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function nc(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(Cx);if(i===null||!i.length)return e;const n=[];let a=i.shift(),o=wx.test(a);for(;;){if(o){const s=parseFloat(a);isNaN(s)?n.push(a):n.push(Math.ceil(s*t*r)/r)}else n.push(a);if(a=i.shift(),a===void 0)return n.join("");o=!o}}function kx(e,t="defs"){let r="";const i=e.indexOf("<"+t);for(;i>=0;){const n=e.indexOf(">",i),a=e.indexOf("</"+t);if(n===-1||a===-1)break;const o=e.indexOf(">",a);if(o===-1)break;r+=e.slice(n+1,a).trim(),e=e.slice(0,i).trim()+e.slice(o+1)}return{defs:r,content:e}}function vx(e,t){return e?"<defs>"+e+"</defs>"+t:t}function Sx(e,t,r){const i=kx(e);return vx(i.defs,t+i.content+r)}const Tx=e=>e==="unset"||e==="undefined"||e==="none";function Ax(e,t){const r={...df,...e},i={...mx,...t},n={left:r.left,top:r.top,width:r.width,height:r.height};let a=r.body;[r,i].forEach(m=>{const x=[],y=m.hFlip,_=m.vFlip;let C=m.rotate;y?_?C+=2:(x.push("translate("+(n.width+n.left).toString()+" "+(0-n.top).toString()+")"),x.push("scale(-1 1)"),n.top=n.left=0):_&&(x.push("translate("+(0-n.left).toString()+" "+(n.height+n.top).toString()+")"),x.push("scale(1 -1)"),n.top=n.left=0);let k;switch(C<0&&(C-=Math.floor(C/4)*4),C=C%4,C){case 1:k=n.height/2+n.top,x.unshift("rotate(90 "+k.toString()+" "+k.toString()+")");break;case 2:x.unshift("rotate(180 "+(n.width/2+n.left).toString()+" "+(n.height/2+n.top).toString()+")");break;case 3:k=n.width/2+n.left,x.unshift("rotate(-90 "+k.toString()+" "+k.toString()+")");break}C%2===1&&(n.left!==n.top&&(k=n.left,n.left=n.top,n.top=k),n.width!==n.height&&(k=n.width,n.width=n.height,n.height=k)),x.length&&(a=Sx(a,'<g transform="'+x.join(" ")+'">',"</g>"))});const o=i.width,s=i.height,l=n.width,c=n.height;let h,u;o===null?(u=s===null?"1em":s==="auto"?c:s,h=nc(u,l/c)):(h=o==="auto"?l:o,u=s===null?nc(h,c/l):s==="auto"?c:s);const f={},p=(m,x)=>{Tx(x)||(f[m]=x.toString())};p("width",h),p("height",u);const g=[n.left,n.top,l,c];return f.viewBox=g.join(" "),{attributes:f,viewBox:g,body:a}}const Lx=/\sid="(\S+)"/g,Bx="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let Mx=0;function Ex(e,t=Bx){const r=[];let i;for(;i=Lx.exec(e);)r.push(i[1]);if(!r.length)return e;const n="suffix"+(Math.random()*16777216|Date.now()).toString(16);return r.forEach(a=>{const o=typeof t=="function"?t(a):t+(Mx++).toString(),s=a.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+s+')([")]|\\.[a-z])',"g"),"$1"+o+n+"$3")}),e=e.replace(new RegExp(n,"g"),""),e}function Fx(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 $x={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},Ys=new Map,gf=new Map,Dx=d(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)gf.set(t.name,t.loader);else if("icons"in t)Ys.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"),Ox=d(async(e,t)=>{const r=yx(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 n=Ys.get(i);if(!n){const o=gf.get(i);if(!o)throw new Error(`Icon set not found: ${r.prefix}`);try{n={...await o(),prefix:i},Ys.set(i,n)}catch(s){throw P.error(s),new Error(`Failed to load icon set: ${r.prefix}`)}}const a=_x(n,r.name);if(!a)throw new Error(`Icon not found: ${e}`);return a},"getRegisteredIconData"),ma=d(async(e,t)=>{let r;try{r=await Ox(e,t==null?void 0:t.fallbackPrefix)}catch(a){P.error(a),r=$x}const i=Ax(r,t);return Fx(Ex(i.body),i.attributes)},"getIconSVG"),Bo=d(({flowchart:e})=>{var n,a;const t=((n=e==null?void 0:e.subGraphTitleMargin)==null?void 0:n.top)??0,r=((a=e==null?void 0:e.subGraphTitleMargin)==null?void 0:a.bottom)??0,i=t+r;return{subGraphTitleTopMargin:t,subGraphTitleBottomMargin:r,subGraphTitleTotalMargin:i}},"getSubGraphTitleMargins"),mf={},Dt={};Object.defineProperty(Dt,"__esModule",{value:!0});Dt.BLANK_URL=Dt.relativeFirstCharacters=Dt.whitespaceEscapeCharsRegex=Dt.urlSchemeRegex=Dt.ctrlCharactersRegex=Dt.htmlCtrlEntityRegex=Dt.htmlEntitiesRegex=Dt.invalidProtocolRegex=void 0;Dt.invalidProtocolRegex=/^([^\w]*)(javascript|data|vbscript)/im;Dt.htmlEntitiesRegex=/&#(\w+)(^\w|;)?/g;Dt.htmlCtrlEntityRegex=/&(newline|tab);/gi;Dt.ctrlCharactersRegex=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim;Dt.urlSchemeRegex=/^.+(:|&colon;)/gim;Dt.whitespaceEscapeCharsRegex=/(\\|%5[cC])((%(6[eE]|72|74))|[nrt])/g;Dt.relativeFirstCharacters=[".","/"];Dt.BLANK_URL="about:blank";Object.defineProperty(mf,"__esModule",{value:!0});var Rx=mf.sanitizeUrl=zx,jt=Dt;function Ix(e){return jt.relativeFirstCharacters.indexOf(e[0])>-1}function Px(e){var t=e.replace(jt.ctrlCharactersRegex,"");return t.replace(jt.htmlEntitiesRegex,function(r,i){return String.fromCharCode(i)})}function Nx(e){return URL.canParse(e)}function ac(e){try{return decodeURIComponent(e)}catch{return e}}function zx(e){if(!e)return jt.BLANK_URL;var t,r=ac(e.trim());do r=Px(r).replace(jt.htmlCtrlEntityRegex,"").replace(jt.ctrlCharactersRegex,"").replace(jt.whitespaceEscapeCharsRegex,"").trim(),r=ac(r),t=r.match(jt.ctrlCharactersRegex)||r.match(jt.htmlEntitiesRegex)||r.match(jt.htmlCtrlEntityRegex)||r.match(jt.whitespaceEscapeCharsRegex);while(t&&t.length>0);var i=r;if(!i)return jt.BLANK_URL;if(Ix(i))return i;var n=i.trimStart(),a=n.match(jt.urlSchemeRegex);if(!a)return i;var o=a[0].toLowerCase().trim();if(jt.invalidProtocolRegex.test(o))return jt.BLANK_URL;var s=n.replace(/\\/g,"/");if(o==="mailto:"||o.includes("://"))return s;if(o==="http:"||o==="https:"){if(!Nx(s))return jt.BLANK_URL;var l=new URL(s);return l.protocol=l.protocol.toLowerCase(),l.hostname=l.hostname.toLowerCase(),l.toString()}return s}var Gs="http://www.w3.org/1999/xhtml",sc={svg:"http://www.w3.org/2000/svg",xhtml:Gs,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function yf(e){var t=e+="",r=t.indexOf(":");return r>=0&&(t=e.slice(0,r))!=="xmlns"&&(e=e.slice(r+1)),sc.hasOwnProperty(t)?{space:sc[t],local:e}:e}function qx(e){return function(){var t=this.ownerDocument,r=this.namespaceURI;return r===Gs&&t.documentElement.namespaceURI===Gs?t.createElement(e):t.createElementNS(r,e)}}function Wx(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function xf(e){var t=yf(e);return(t.local?Wx:qx)(t)}function Hx(){}function bf(e){return e==null?Hx:function(){return this.querySelector(e)}}function jx(e){typeof e!="function"&&(e=bf(e));for(var t=this._groups,r=t.length,i=new Array(r),n=0;n<r;++n)for(var a=t[n],o=a.length,s=i[n]=new Array(o),l,c,h=0;h<o;++h)(l=a[h])&&(c=e.call(l,l.__data__,h,a))&&("__data__"in l&&(c.__data__=l.__data__),s[h]=c);return new de(i,this._parents)}function Ux(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function Yx(){return[]}function Gx(e){return e==null?Yx:function(){return this.querySelectorAll(e)}}function Vx(e){return function(){return Ux(e.apply(this,arguments))}}function Xx(e){typeof e=="function"?e=Vx(e):e=Gx(e);for(var t=this._groups,r=t.length,i=[],n=[],a=0;a<r;++a)for(var o=t[a],s=o.length,l,c=0;c<s;++c)(l=o[c])&&(i.push(e.call(l,l.__data__,c,o)),n.push(l));return new de(i,n)}function Zx(e){return function(){return this.matches(e)}}function _f(e){return function(t){return t.matches(e)}}var Kx=Array.prototype.find;function Qx(e){return function(){return Kx.call(this.children,e)}}function Jx(){return this.firstElementChild}function tb(e){return this.select(e==null?Jx:Qx(typeof e=="function"?e:_f(e)))}var eb=Array.prototype.filter;function rb(){return Array.from(this.children)}function ib(e){return function(){return eb.call(this.children,e)}}function nb(e){return this.selectAll(e==null?rb:ib(typeof e=="function"?e:_f(e)))}function ab(e){typeof e!="function"&&(e=Zx(e));for(var t=this._groups,r=t.length,i=new Array(r),n=0;n<r;++n)for(var a=t[n],o=a.length,s=i[n]=[],l,c=0;c<o;++c)(l=a[c])&&e.call(l,l.__data__,c,a)&&s.push(l);return new de(i,this._parents)}function Cf(e){return new Array(e.length)}function sb(){return new de(this._enter||this._groups.map(Cf),this._parents)}function Un(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}Un.prototype={constructor:Un,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 ob(e){return function(){return e}}function lb(e,t,r,i,n,a){for(var o=0,s,l=t.length,c=a.length;o<c;++o)(s=t[o])?(s.__data__=a[o],i[o]=s):r[o]=new Un(e,a[o]);for(;o<l;++o)(s=t[o])&&(n[o]=s)}function cb(e,t,r,i,n,a,o){var s,l,c=new Map,h=t.length,u=a.length,f=new Array(h),p;for(s=0;s<h;++s)(l=t[s])&&(f[s]=p=o.call(l,l.__data__,s,t)+"",c.has(p)?n[s]=l:c.set(p,l));for(s=0;s<u;++s)p=o.call(e,a[s],s,a)+"",(l=c.get(p))?(i[s]=l,l.__data__=a[s],c.delete(p)):r[s]=new Un(e,a[s]);for(s=0;s<h;++s)(l=t[s])&&c.get(f[s])===l&&(n[s]=l)}function hb(e){return e.__data__}function ub(e,t){if(!arguments.length)return Array.from(this,hb);var r=t?cb:lb,i=this._parents,n=this._groups;typeof e!="function"&&(e=ob(e));for(var a=n.length,o=new Array(a),s=new Array(a),l=new Array(a),c=0;c<a;++c){var h=i[c],u=n[c],f=u.length,p=fb(e.call(h,h&&h.__data__,c,i)),g=p.length,m=s[c]=new Array(g),x=o[c]=new Array(g),y=l[c]=new Array(f);r(h,u,m,x,y,p,t);for(var _=0,C=0,k,v;_<g;++_)if(k=m[_]){for(_>=C&&(C=_+1);!(v=x[C])&&++C<g;);k._next=v||null}}return o=new de(o,i),o._enter=s,o._exit=l,o}function fb(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function pb(){return new de(this._exit||this._groups.map(Cf),this._parents)}function db(e,t,r){var i=this.enter(),n=this,a=this.exit();return typeof e=="function"?(i=e(i),i&&(i=i.selection())):i=i.append(e+""),t!=null&&(n=t(n),n&&(n=n.selection())),r==null?a.remove():r(a),i&&n?i.merge(n).order():n}function gb(e){for(var t=e.selection?e.selection():e,r=this._groups,i=t._groups,n=r.length,a=i.length,o=Math.min(n,a),s=new Array(n),l=0;l<o;++l)for(var c=r[l],h=i[l],u=c.length,f=s[l]=new Array(u),p,g=0;g<u;++g)(p=c[g]||h[g])&&(f[g]=p);for(;l<n;++l)s[l]=r[l];return new de(s,this._parents)}function mb(){for(var e=this._groups,t=-1,r=e.length;++t<r;)for(var i=e[t],n=i.length-1,a=i[n],o;--n>=0;)(o=i[n])&&(a&&o.compareDocumentPosition(a)^4&&a.parentNode.insertBefore(o,a),a=o);return this}function yb(e){e||(e=xb);function t(u,f){return u&&f?e(u.__data__,f.__data__):!u-!f}for(var r=this._groups,i=r.length,n=new Array(i),a=0;a<i;++a){for(var o=r[a],s=o.length,l=n[a]=new Array(s),c,h=0;h<s;++h)(c=o[h])&&(l[h]=c);l.sort(t)}return new de(n,this._parents).order()}function xb(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function bb(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function _b(){return Array.from(this)}function Cb(){for(var e=this._groups,t=0,r=e.length;t<r;++t)for(var i=e[t],n=0,a=i.length;n<a;++n){var o=i[n];if(o)return o}return null}function wb(){let e=0;for(const t of this)++e;return e}function kb(){return!this.node()}function vb(e){for(var t=this._groups,r=0,i=t.length;r<i;++r)for(var n=t[r],a=0,o=n.length,s;a<o;++a)(s=n[a])&&e.call(s,s.__data__,a,n);return this}function Sb(e){return function(){this.removeAttribute(e)}}function Tb(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Ab(e,t){return function(){this.setAttribute(e,t)}}function Lb(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function Bb(e,t){return function(){var r=t.apply(this,arguments);r==null?this.removeAttribute(e):this.setAttribute(e,r)}}function Mb(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 Eb(e,t){var r=yf(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?Tb:Sb:typeof t=="function"?r.local?Mb:Bb:r.local?Lb:Ab)(r,t))}function wf(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function Fb(e){return function(){this.style.removeProperty(e)}}function $b(e,t,r){return function(){this.style.setProperty(e,t,r)}}function Db(e,t,r){return function(){var i=t.apply(this,arguments);i==null?this.style.removeProperty(e):this.style.setProperty(e,i,r)}}function Ob(e,t,r){return arguments.length>1?this.each((t==null?Fb:typeof t=="function"?Db:$b)(e,t,r??"")):Rb(this.node(),e)}function Rb(e,t){return e.style.getPropertyValue(t)||wf(e).getComputedStyle(e,null).getPropertyValue(t)}function Ib(e){return function(){delete this[e]}}function Pb(e,t){return function(){this[e]=t}}function Nb(e,t){return function(){var r=t.apply(this,arguments);r==null?delete this[e]:this[e]=r}}function zb(e,t){return arguments.length>1?this.each((t==null?Ib:typeof t=="function"?Nb:Pb)(e,t)):this.node()[e]}function kf(e){return e.trim().split(/^|\s+/)}function Mo(e){return e.classList||new vf(e)}function vf(e){this._node=e,this._names=kf(e.getAttribute("class")||"")}vf.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 Sf(e,t){for(var r=Mo(e),i=-1,n=t.length;++i<n;)r.add(t[i])}function Tf(e,t){for(var r=Mo(e),i=-1,n=t.length;++i<n;)r.remove(t[i])}function qb(e){return function(){Sf(this,e)}}function Wb(e){return function(){Tf(this,e)}}function Hb(e,t){return function(){(t.apply(this,arguments)?Sf:Tf)(this,e)}}function jb(e,t){var r=kf(e+"");if(arguments.length<2){for(var i=Mo(this.node()),n=-1,a=r.length;++n<a;)if(!i.contains(r[n]))return!1;return!0}return this.each((typeof t=="function"?Hb:t?qb:Wb)(r,t))}function Ub(){this.textContent=""}function Yb(e){return function(){this.textContent=e}}function Gb(e){return function(){var t=e.apply(this,arguments);this.textContent=t??""}}function Vb(e){return arguments.length?this.each(e==null?Ub:(typeof e=="function"?Gb:Yb)(e)):this.node().textContent}function Xb(){this.innerHTML=""}function Zb(e){return function(){this.innerHTML=e}}function Kb(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??""}}function Qb(e){return arguments.length?this.each(e==null?Xb:(typeof e=="function"?Kb:Zb)(e)):this.node().innerHTML}function Jb(){this.nextSibling&&this.parentNode.appendChild(this)}function t1(){return this.each(Jb)}function e1(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function r1(){return this.each(e1)}function i1(e){var t=typeof e=="function"?e:xf(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function n1(){return null}function a1(e,t){var r=typeof e=="function"?e:xf(e),i=t==null?n1:typeof t=="function"?t:bf(t);return this.select(function(){return this.insertBefore(r.apply(this,arguments),i.apply(this,arguments)||null)})}function s1(){var e=this.parentNode;e&&e.removeChild(this)}function o1(){return this.each(s1)}function l1(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function c1(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function h1(e){return this.select(e?c1:l1)}function u1(e){return arguments.length?this.property("__data__",e):this.node().__data__}function f1(e){return function(t){e.call(this,t,this.__data__)}}function p1(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 d1(e){return function(){var t=this.__on;if(t){for(var r=0,i=-1,n=t.length,a;r<n;++r)a=t[r],(!e.type||a.type===e.type)&&a.name===e.name?this.removeEventListener(a.type,a.listener,a.options):t[++i]=a;++i?t.length=i:delete this.__on}}}function g1(e,t,r){return function(){var i=this.__on,n,a=f1(t);if(i){for(var o=0,s=i.length;o<s;++o)if((n=i[o]).type===e.type&&n.name===e.name){this.removeEventListener(n.type,n.listener,n.options),this.addEventListener(n.type,n.listener=a,n.options=r),n.value=t;return}}this.addEventListener(e.type,a,r),n={type:e.type,name:e.name,value:t,listener:a,options:r},i?i.push(n):this.__on=[n]}}function m1(e,t,r){var i=p1(e+""),n,a=i.length,o;if(arguments.length<2){var s=this.node().__on;if(s){for(var l=0,c=s.length,h;l<c;++l)for(n=0,h=s[l];n<a;++n)if((o=i[n]).type===h.type&&o.name===h.name)return h.value}return}for(s=t?g1:d1,n=0;n<a;++n)this.each(s(i[n],t,r));return this}function Af(e,t,r){var i=wf(e),n=i.CustomEvent;typeof n=="function"?n=new n(t,r):(n=i.document.createEvent("Event"),r?(n.initEvent(t,r.bubbles,r.cancelable),n.detail=r.detail):n.initEvent(t,!1,!1)),e.dispatchEvent(n)}function y1(e,t){return function(){return Af(this,e,t)}}function x1(e,t){return function(){return Af(this,e,t.apply(this,arguments))}}function b1(e,t){return this.each((typeof t=="function"?x1:y1)(e,t))}function*_1(){for(var e=this._groups,t=0,r=e.length;t<r;++t)for(var i=e[t],n=0,a=i.length,o;n<a;++n)(o=i[n])&&(yield o)}var C1=[null];function de(e,t){this._groups=e,this._parents=t}function w1(){return this}de.prototype={constructor:de,select:jx,selectAll:Xx,selectChild:tb,selectChildren:nb,filter:ab,data:ub,enter:sb,exit:pb,join:db,merge:gb,selection:w1,order:mb,sort:yb,call:bb,nodes:_b,node:Cb,size:wb,empty:kb,each:vb,attr:Eb,style:Ob,property:zb,classed:jb,text:Vb,html:Qb,raise:t1,lower:r1,append:i1,insert:a1,remove:o1,clone:h1,datum:u1,on:m1,dispatch:b1,[Symbol.iterator]:_1};function ft(e){return typeof e=="string"?new de([[document.querySelector(e)]],[document.documentElement]):new de([[e]],C1)}var k1=0;function oc(){this._="@"+(++k1).toString(36)}oc.prototype={constructor:oc,get:function(e){for(var t=this._;!(t in e);)if(!(e=e.parentNode))return;return e[t]},set:function(e,t){return e[this._]=t},remove:function(e){return this._ in e&&delete e[this._]},toString:function(){return this._}};const Fi=Math.PI,Vs=2*Fi,fr=1e-6,v1=Vs-fr;function Lf(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}function S1(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return Lf;const r=10**t;return function(i){this._+=i[0];for(let n=1,a=i.length;n<a;++n)this._+=Math.round(arguments[n]*r)/r+i[n]}}function Bf(e,t,r,i){return e===r&&t===i}function T1(e){const t=Math.floor(e);if(!(t<=15))return Bf;const r=10**t,i=function(n){return Math.round(n*r)};return function(n,a,o,s){return i(n)===i(o)&&i(a)===i(s)}}class A1{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?Lf:S1(t),this._equal=t==null?Bf:T1(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,n){this._append`Q${+t},${+r},${this._x1=+i},${this._y1=+n}`}bezierCurveTo(t,r,i,n,a,o){this._append`C${+t},${+r},${+i},${+n},${this._x1=+a},${this._y1=+o}`}arcTo(t,r,i,n,a){if(t=+t,r=+r,i=+i,n=+n,a=+a,a<0)throw new Error(`negative radius: ${a}`);let o=this._x1,s=this._y1,l=i-t,c=n-r,h=o-t,u=s-r,f=h*h+u*u;if(this._x1===null)this._append`M${this._x1=t},${this._y1=r}`;else if(f>fr)if(!(Math.abs(u*l-c*h)>fr)||!a)this._append`L${this._x1=t},${this._y1=r}`;else{let p=i-o,g=n-s,m=l*l+c*c,x=p*p+g*g,y=Math.sqrt(m),_=Math.sqrt(f),C=a*Math.tan((Fi-Math.acos((m+f-x)/(2*y*_)))/2),k=C/_,v=C/y;Math.abs(k-1)>fr&&this._append`L${t+k*h},${r+k*u}`,this._append`A${a},${a},0,0,${+(u*p>h*g)},${this._x1=t+v*l},${this._y1=r+v*c}`}}arc(t,r,i,n,a,o){if(t=+t,r=+r,i=+i,o=!!o,i<0)throw new Error(`negative radius: ${i}`);let s=i*Math.cos(n),l=i*Math.sin(n),c=t+s,h=r+l,u=1^o,f=o?n-a:a-n;if(this._x1===null?this._append`M${c},${h}`:(Math.abs(this._x1-c)>fr||Math.abs(this._y1-h)>fr)&&this._append`L${c},${h}`,!!i){if(f<0&&(f=f%Vs+Vs),f>v1)this._append`A${i},${i},0,1,${u},${t-s},${r-l}A${i},${i},0,1,${u},${this._x1=c},${this._y1=h}`;else if(f>fr){const p=t+i*Math.cos(a),g=r+i*Math.sin(a);if(f>=Fi&&this._equal(c,h,p,g)){f/=2;let m=n+f;this._append`A${i},${i},0,${+(f>=Fi)},${u},${t+i*Math.cos(m)},${r+i*Math.sin(m)}`}this._append`A${i},${i},0,${+(f>=Fi)},${u},${this._x1=p},${this._y1=g}`}}}rect(t,r,i,n){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}h${i=+i}v${+n}h${-i}Z`}toString(){return this._}}function At(e){return function(){return e}}const lc=Math.abs,Wt=Math.atan2,hr=Math.cos,L1=Math.max,ps=Math.min,ve=Math.sin,zr=Math.sqrt,Ut=1e-12,Vi=Math.PI,Yn=Vi/2,Bn=2*Vi;function B1(e){return e>1?0:e<-1?Vi:Math.acos(e)}function cc(e){return e>=1?Yn:e<=-1?-Yn:Math.asin(e)}function Mf(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 A1(t)}function M1(e){return e.innerRadius}function E1(e){return e.outerRadius}function F1(e){return e.startAngle}function $1(e){return e.endAngle}function D1(e){return e&&e.padAngle}function O1(e,t,r,i,n,a,o,s){var l=r-e,c=i-t,h=o-n,u=s-a,f=u*l-h*c;if(!(f*f<Ut))return f=(h*(t-a)-u*(e-n))/f,[e+f*l,t+f*c]}function xn(e,t,r,i,n,a,o){var s=e-r,l=t-i,c=(o?a:-a)/zr(s*s+l*l),h=c*l,u=-c*s,f=e+h,p=t+u,g=r+h,m=i+u,x=(f+g)/2,y=(p+m)/2,_=g-f,C=m-p,k=_*_+C*C,v=n-a,F=f*m-g*p,M=(C<0?-1:1)*zr(L1(0,v*v*k-F*F)),$=(F*C-_*M)/k,H=(-F*_-C*M)/k,z=(F*C+_*M)/k,E=(-F*_+C*M)/k,q=$-x,O=H-y,A=z-x,L=E-y;return q*q+O*O>A*A+L*L&&($=z,H=E),{cx:$,cy:H,x01:-h,y01:-u,x11:$*(n/v-1),y11:H*(n/v-1)}}function sA(){var e=M1,t=E1,r=At(0),i=null,n=F1,a=$1,o=D1,s=null,l=Mf(c);function c(){var h,u,f=+e.apply(this,arguments),p=+t.apply(this,arguments),g=n.apply(this,arguments)-Yn,m=a.apply(this,arguments)-Yn,x=lc(m-g),y=m>g;if(s||(s=h=l()),p<f&&(u=p,p=f,f=u),!(p>Ut))s.moveTo(0,0);else if(x>Bn-Ut)s.moveTo(p*hr(g),p*ve(g)),s.arc(0,0,p,g,m,!y),f>Ut&&(s.moveTo(f*hr(m),f*ve(m)),s.arc(0,0,f,m,g,y));else{var _=g,C=m,k=g,v=m,F=x,M=x,$=o.apply(this,arguments)/2,H=$>Ut&&(i?+i.apply(this,arguments):zr(f*f+p*p)),z=ps(lc(p-f)/2,+r.apply(this,arguments)),E=z,q=z,O,A;if(H>Ut){var L=cc(H/f*ve($)),T=cc(H/p*ve($));(F-=L*2)>Ut?(L*=y?1:-1,k+=L,v-=L):(F=0,k=v=(g+m)/2),(M-=T*2)>Ut?(T*=y?1:-1,_+=T,C-=T):(M=0,_=C=(g+m)/2)}var D=p*hr(_),B=p*ve(_),j=f*hr(v),U=f*ve(v);if(z>Ut){var st=p*hr(C),ut=p*ve(C),bt=f*hr(k),St=f*ve(k),_t;if(x<Vi)if(_t=O1(D,B,bt,St,st,ut,j,U)){var lt=D-_t[0],ne=B-_t[1],me=st-_t[0],ae=ut-_t[1],Et=1/ve(B1((lt*me+ne*ae)/(zr(lt*lt+ne*ne)*zr(me*me+ae*ae)))/2),se=zr(_t[0]*_t[0]+_t[1]*_t[1]);E=ps(z,(f-se)/(Et-1)),q=ps(z,(p-se)/(Et+1))}else E=q=0}M>Ut?q>Ut?(O=xn(bt,St,D,B,p,q,y),A=xn(st,ut,j,U,p,q,y),s.moveTo(O.cx+O.x01,O.cy+O.y01),q<z?s.arc(O.cx,O.cy,q,Wt(O.y01,O.x01),Wt(A.y01,A.x01),!y):(s.arc(O.cx,O.cy,q,Wt(O.y01,O.x01),Wt(O.y11,O.x11),!y),s.arc(0,0,p,Wt(O.cy+O.y11,O.cx+O.x11),Wt(A.cy+A.y11,A.cx+A.x11),!y),s.arc(A.cx,A.cy,q,Wt(A.y11,A.x11),Wt(A.y01,A.x01),!y))):(s.moveTo(D,B),s.arc(0,0,p,_,C,!y)):s.moveTo(D,B),!(f>Ut)||!(F>Ut)?s.lineTo(j,U):E>Ut?(O=xn(j,U,st,ut,f,-E,y),A=xn(D,B,bt,St,f,-E,y),s.lineTo(O.cx+O.x01,O.cy+O.y01),E<z?s.arc(O.cx,O.cy,E,Wt(O.y01,O.x01),Wt(A.y01,A.x01),!y):(s.arc(O.cx,O.cy,E,Wt(O.y01,O.x01),Wt(O.y11,O.x11),!y),s.arc(0,0,f,Wt(O.cy+O.y11,O.cx+O.x11),Wt(A.cy+A.y11,A.cx+A.x11),y),s.arc(A.cx,A.cy,E,Wt(A.y11,A.x11),Wt(A.y01,A.x01),!y))):s.arc(0,0,f,v,k,y)}if(s.closePath(),h)return s=null,h+""||null}return c.centroid=function(){var h=(+e.apply(this,arguments)+ +t.apply(this,arguments))/2,u=(+n.apply(this,arguments)+ +a.apply(this,arguments))/2-Vi/2;return[hr(u)*h,ve(u)*h]},c.innerRadius=function(h){return arguments.length?(e=typeof h=="function"?h:At(+h),c):e},c.outerRadius=function(h){return arguments.length?(t=typeof h=="function"?h:At(+h),c):t},c.cornerRadius=function(h){return arguments.length?(r=typeof h=="function"?h:At(+h),c):r},c.padRadius=function(h){return arguments.length?(i=h==null?null:typeof h=="function"?h:At(+h),c):i},c.startAngle=function(h){return arguments.length?(n=typeof h=="function"?h:At(+h),c):n},c.endAngle=function(h){return arguments.length?(a=typeof h=="function"?h:At(+h),c):a},c.padAngle=function(h){return arguments.length?(o=typeof h=="function"?h:At(+h),c):o},c.context=function(h){return arguments.length?(s=h??null,c):s},c}function Ef(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function Ff(e){this._context=e}Ff.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 $f(e){return new Ff(e)}function R1(e){return e[0]}function I1(e){return e[1]}function P1(e,t){var r=At(!0),i=null,n=$f,a=null,o=Mf(s);e=typeof e=="function"?e:e===void 0?R1:At(e),t=typeof t=="function"?t:t===void 0?I1:At(t);function s(l){var c,h=(l=Ef(l)).length,u,f=!1,p;for(i==null&&(a=n(p=o())),c=0;c<=h;++c)!(c<h&&r(u=l[c],c,l))===f&&((f=!f)?a.lineStart():a.lineEnd()),f&&a.point(+e(u,c,l),+t(u,c,l));if(p)return a=null,p+""||null}return s.x=function(l){return arguments.length?(e=typeof l=="function"?l:At(+l),s):e},s.y=function(l){return arguments.length?(t=typeof l=="function"?l:At(+l),s):t},s.defined=function(l){return arguments.length?(r=typeof l=="function"?l:At(!!l),s):r},s.curve=function(l){return arguments.length?(n=l,i!=null&&(a=n(i)),s):n},s.context=function(l){return arguments.length?(l==null?i=a=null:a=n(i=l),s):i},s}function N1(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function z1(e){return e}function oA(){var e=z1,t=N1,r=null,i=At(0),n=At(Bn),a=At(0);function o(s){var l,c=(s=Ef(s)).length,h,u,f=0,p=new Array(c),g=new Array(c),m=+i.apply(this,arguments),x=Math.min(Bn,Math.max(-Bn,n.apply(this,arguments)-m)),y,_=Math.min(Math.abs(x)/c,a.apply(this,arguments)),C=_*(x<0?-1:1),k;for(l=0;l<c;++l)(k=g[p[l]=l]=+e(s[l],l,s))>0&&(f+=k);for(t!=null?p.sort(function(v,F){return t(g[v],g[F])}):r!=null&&p.sort(function(v,F){return r(s[v],s[F])}),l=0,u=f?(x-c*C)/f:0;l<c;++l,m=y)h=p[l],k=g[h],y=m+(k>0?k*u:0)+C,g[h]={data:s[h],index:l,value:k,startAngle:m,endAngle:y,padAngle:_};return g}return o.value=function(s){return arguments.length?(e=typeof s=="function"?s:At(+s),o):e},o.sortValues=function(s){return arguments.length?(t=s,r=null,o):t},o.sort=function(s){return arguments.length?(r=s,t=null,o):r},o.startAngle=function(s){return arguments.length?(i=typeof s=="function"?s:At(+s),o):i},o.endAngle=function(s){return arguments.length?(n=typeof s=="function"?s:At(+s),o):n},o.padAngle=function(s){return arguments.length?(a=typeof s=="function"?s:At(+s),o):a},o}class Df{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 q1(e){return new Df(e,!0)}function W1(e){return new Df(e,!1)}function Je(){}function Gn(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 ya(e){this._context=e}ya.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:Gn(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:Gn(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Of(e){return new ya(e)}function Rf(e){this._context=e}Rf.prototype={areaStart:Je,areaEnd:Je,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:Gn(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function H1(e){return new Rf(e)}function If(e){this._context=e}If.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:Gn(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function j1(e){return new If(e)}function Pf(e,t){this._basis=new ya(e),this._beta=t}Pf.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],n=t[0],a=e[r]-i,o=t[r]-n,s=-1,l;++s<=r;)l=s/r,this._basis.point(this._beta*e[s]+(1-this._beta)*(i+l*a),this._beta*t[s]+(1-this._beta)*(n+l*o));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};var U1=function e(t){function r(i){return t===1?new ya(i):new Pf(i,t)}return r.beta=function(i){return e(+i)},r}(.85);function Vn(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 Eo(e,t){this._context=e,this._k=(1-t)/6}Eo.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:Vn(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:Vn(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}};var Y1=function e(t){function r(i){return new Eo(i,t)}return r.tension=function(i){return e(+i)},r}(0);function Fo(e,t){this._context=e,this._k=(1-t)/6}Fo.prototype={areaStart:Je,areaEnd:Je,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:Vn(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}};var G1=function e(t){function r(i){return new Fo(i,t)}return r.tension=function(i){return e(+i)},r}(0);function $o(e,t){this._context=e,this._k=(1-t)/6}$o.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:Vn(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}};var V1=function e(t){function r(i){return new $o(i,t)}return r.tension=function(i){return e(+i)},r}(0);function Do(e,t,r){var i=e._x1,n=e._y1,a=e._x2,o=e._y2;if(e._l01_a>Ut){var s=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*s-e._x0*e._l12_2a+e._x2*e._l01_2a)/l,n=(n*s-e._y0*e._l12_2a+e._y2*e._l01_2a)/l}if(e._l23_a>Ut){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);a=(a*c+e._x1*e._l23_2a-t*e._l12_2a)/h,o=(o*c+e._y1*e._l23_2a-r*e._l12_2a)/h}e._context.bezierCurveTo(i,n,a,o,e._x2,e._y2)}function Nf(e,t){this._context=e,this._alpha=t}Nf.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:Do(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}};var X1=function e(t){function r(i){return t?new Nf(i,t):new Eo(i,0)}return r.alpha=function(i){return e(+i)},r}(.5);function zf(e,t){this._context=e,this._alpha=t}zf.prototype={areaStart:Je,areaEnd:Je,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:Do(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}};var Z1=function e(t){function r(i){return t?new zf(i,t):new Fo(i,0)}return r.alpha=function(i){return e(+i)},r}(.5);function qf(e,t){this._context=e,this._alpha=t}qf.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:Do(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}};var K1=function e(t){function r(i){return t?new qf(i,t):new $o(i,0)}return r.alpha=function(i){return e(+i)},r}(.5);function Wf(e){this._context=e}Wf.prototype={areaStart:Je,areaEnd:Je,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 Q1(e){return new Wf(e)}function hc(e){return e<0?-1:1}function uc(e,t,r){var i=e._x1-e._x0,n=t-e._x1,a=(e._y1-e._y0)/(i||n<0&&-0),o=(r-e._y1)/(n||i<0&&-0),s=(a*n+o*i)/(i+n);return(hc(a)+hc(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function fc(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function ds(e,t,r){var i=e._x0,n=e._y0,a=e._x1,o=e._y1,s=(a-i)/3;e._context.bezierCurveTo(i+s,n+s*t,a-s,o-s*r,a,o)}function Xn(e){this._context=e}Xn.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:ds(this,this._t0,fc(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,ds(this,fc(this,r=uc(this,e,t)),r);break;default:ds(this,this._t0,r=uc(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function Hf(e){this._context=new jf(e)}(Hf.prototype=Object.create(Xn.prototype)).point=function(e,t){Xn.prototype.point.call(this,t,e)};function jf(e){this._context=e}jf.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,n,a){this._context.bezierCurveTo(t,e,i,r,a,n)}};function J1(e){return new Xn(e)}function t_(e){return new Hf(e)}function Uf(e){this._context=e}Uf.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=pc(e),n=pc(t),a=0,o=1;o<r;++a,++o)this._context.bezierCurveTo(i[0][a],n[0][a],i[1][a],n[1][a],e[o],t[o]);(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 pc(e){var t,r=e.length-1,i,n=new Array(r),a=new Array(r),o=new Array(r);for(n[0]=0,a[0]=2,o[0]=e[0]+2*e[1],t=1;t<r-1;++t)n[t]=1,a[t]=4,o[t]=4*e[t]+2*e[t+1];for(n[r-1]=2,a[r-1]=7,o[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)i=n[t]/a[t-1],a[t]-=i,o[t]-=i*o[t-1];for(n[r-1]=o[r-1]/a[r-1],t=r-2;t>=0;--t)n[t]=(o[t]-n[t+1])/a[t];for(a[r-1]=(e[r]+n[r-1])/2,t=0;t<r-1;++t)a[t]=2*e[t+1]-n[t+1];return[n,a]}function e_(e){return new Uf(e)}function xa(e,t){this._context=e,this._t=t}xa.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 r_(e){return new xa(e,.5)}function i_(e){return new xa(e,0)}function n_(e){return new xa(e,1)}var Yf=typeof global=="object"&&global&&global.Object===Object&&global,a_=typeof self=="object"&&self&&self.Object===Object&&self,Ee=Yf||a_||Function("return this")(),Zn=Ee.Symbol,Gf=Object.prototype,s_=Gf.hasOwnProperty,o_=Gf.toString,Si=Zn?Zn.toStringTag:void 0;function l_(e){var t=s_.call(e,Si),r=e[Si];try{e[Si]=void 0;var i=!0}catch{}var n=o_.call(e);return i&&(t?e[Si]=r:delete e[Si]),n}var c_=Object.prototype,h_=c_.toString;function u_(e){return h_.call(e)}var f_="[object Null]",p_="[object Undefined]",dc=Zn?Zn.toStringTag:void 0;function ci(e){return e==null?e===void 0?p_:f_:dc&&dc in Object(e)?l_(e):u_(e)}function Sr(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var d_="[object AsyncFunction]",g_="[object Function]",m_="[object GeneratorFunction]",y_="[object Proxy]";function Oo(e){if(!Sr(e))return!1;var t=ci(e);return t==g_||t==m_||t==d_||t==y_}var gs=Ee["__core-js_shared__"],gc=function(){var e=/[^.]+$/.exec(gs&&gs.keys&&gs.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function x_(e){return!!gc&&gc in e}var b_=Function.prototype,__=b_.toString;function Tr(e){if(e!=null){try{return __.call(e)}catch{}try{return e+""}catch{}}return""}var C_=/[\\^$.*+?()[\]{}|]/g,w_=/^\[object .+?Constructor\]$/,k_=Function.prototype,v_=Object.prototype,S_=k_.toString,T_=v_.hasOwnProperty,A_=RegExp("^"+S_.call(T_).replace(C_,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function L_(e){if(!Sr(e)||x_(e))return!1;var t=Oo(e)?A_:w_;return t.test(Tr(e))}function B_(e,t){return e==null?void 0:e[t]}function Ar(e,t){var r=B_(e,t);return L_(r)?r:void 0}var Xi=Ar(Object,"create");function M_(){this.__data__=Xi?Xi(null):{},this.size=0}function E_(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var F_="__lodash_hash_undefined__",$_=Object.prototype,D_=$_.hasOwnProperty;function O_(e){var t=this.__data__;if(Xi){var r=t[e];return r===F_?void 0:r}return D_.call(t,e)?t[e]:void 0}var R_=Object.prototype,I_=R_.hasOwnProperty;function P_(e){var t=this.__data__;return Xi?t[e]!==void 0:I_.call(t,e)}var N_="__lodash_hash_undefined__";function z_(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Xi&&t===void 0?N_:t,this}function wr(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])}}wr.prototype.clear=M_;wr.prototype.delete=E_;wr.prototype.get=O_;wr.prototype.has=P_;wr.prototype.set=z_;function q_(){this.__data__=[],this.size=0}function ba(e,t){return e===t||e!==e&&t!==t}function _a(e,t){for(var r=e.length;r--;)if(ba(e[r][0],t))return r;return-1}var W_=Array.prototype,H_=W_.splice;function j_(e){var t=this.__data__,r=_a(t,e);if(r<0)return!1;var i=t.length-1;return r==i?t.pop():H_.call(t,r,1),--this.size,!0}function U_(e){var t=this.__data__,r=_a(t,e);return r<0?void 0:t[r][1]}function Y_(e){return _a(this.__data__,e)>-1}function G_(e,t){var r=this.__data__,i=_a(r,e);return i<0?(++this.size,r.push([e,t])):r[i][1]=t,this}function qe(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])}}qe.prototype.clear=q_;qe.prototype.delete=j_;qe.prototype.get=U_;qe.prototype.has=Y_;qe.prototype.set=G_;var Zi=Ar(Ee,"Map");function V_(){this.size=0,this.__data__={hash:new wr,map:new(Zi||qe),string:new wr}}function X_(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Ca(e,t){var r=e.__data__;return X_(t)?r[typeof t=="string"?"string":"hash"]:r.map}function Z_(e){var t=Ca(this,e).delete(e);return this.size-=t?1:0,t}function K_(e){return Ca(this,e).get(e)}function Q_(e){return Ca(this,e).has(e)}function J_(e,t){var r=Ca(this,e),i=r.size;return r.set(e,t),this.size+=r.size==i?0:1,this}function rr(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])}}rr.prototype.clear=V_;rr.prototype.delete=Z_;rr.prototype.get=K_;rr.prototype.has=Q_;rr.prototype.set=J_;var t2="Expected a function";function rn(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(t2);var r=function(){var i=arguments,n=t?t.apply(this,i):i[0],a=r.cache;if(a.has(n))return a.get(n);var o=e.apply(this,i);return r.cache=a.set(n,o)||a,o};return r.cache=new(rn.Cache||rr),r}rn.Cache=rr;function e2(){this.__data__=new qe,this.size=0}function r2(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function i2(e){return this.__data__.get(e)}function n2(e){return this.__data__.has(e)}var a2=200;function s2(e,t){var r=this.__data__;if(r instanceof qe){var i=r.__data__;if(!Zi||i.length<a2-1)return i.push([e,t]),this.size=++r.size,this;r=this.__data__=new rr(i)}return r.set(e,t),this.size=r.size,this}function hi(e){var t=this.__data__=new qe(e);this.size=t.size}hi.prototype.clear=e2;hi.prototype.delete=r2;hi.prototype.get=i2;hi.prototype.has=n2;hi.prototype.set=s2;var Kn=function(){try{var e=Ar(Object,"defineProperty");return e({},"",{}),e}catch{}}();function Ro(e,t,r){t=="__proto__"&&Kn?Kn(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function Xs(e,t,r){(r!==void 0&&!ba(e[t],r)||r===void 0&&!(t in e))&&Ro(e,t,r)}function o2(e){return function(t,r,i){for(var n=-1,a=Object(t),o=i(t),s=o.length;s--;){var l=o[++n];if(r(a[l],l,a)===!1)break}return t}}var l2=o2(),Vf=typeof exports=="object"&&exports&&!exports.nodeType&&exports,mc=Vf&&typeof module=="object"&&module&&!module.nodeType&&module,c2=mc&&mc.exports===Vf,yc=c2?Ee.Buffer:void 0,xc=yc?yc.allocUnsafe:void 0;function h2(e,t){if(t)return e.slice();var r=e.length,i=xc?xc(r):new e.constructor(r);return e.copy(i),i}var bc=Ee.Uint8Array;function u2(e){var t=new e.constructor(e.byteLength);return new bc(t).set(new bc(e)),t}function f2(e,t){var r=t?u2(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function p2(e,t){var r=-1,i=e.length;for(t||(t=Array(i));++r<i;)t[r]=e[r];return t}var _c=Object.create,d2=function(){function e(){}return function(t){if(!Sr(t))return{};if(_c)return _c(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();function Xf(e,t){return function(r){return e(t(r))}}var Zf=Xf(Object.getPrototypeOf,Object),g2=Object.prototype;function wa(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||g2;return e===r}function m2(e){return typeof e.constructor=="function"&&!wa(e)?d2(Zf(e)):{}}function nn(e){return e!=null&&typeof e=="object"}var y2="[object Arguments]";function Cc(e){return nn(e)&&ci(e)==y2}var Kf=Object.prototype,x2=Kf.hasOwnProperty,b2=Kf.propertyIsEnumerable,Qn=Cc(function(){return arguments}())?Cc:function(e){return nn(e)&&x2.call(e,"callee")&&!b2.call(e,"callee")},Jn=Array.isArray,_2=9007199254740991;function Qf(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=_2}function ka(e){return e!=null&&Qf(e.length)&&!Oo(e)}function C2(e){return nn(e)&&ka(e)}function w2(){return!1}var Jf=typeof exports=="object"&&exports&&!exports.nodeType&&exports,wc=Jf&&typeof module=="object"&&module&&!module.nodeType&&module,k2=wc&&wc.exports===Jf,kc=k2?Ee.Buffer:void 0,v2=kc?kc.isBuffer:void 0,Io=v2||w2,S2="[object Object]",T2=Function.prototype,A2=Object.prototype,tp=T2.toString,L2=A2.hasOwnProperty,B2=tp.call(Object);function M2(e){if(!nn(e)||ci(e)!=S2)return!1;var t=Zf(e);if(t===null)return!0;var r=L2.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&tp.call(r)==B2}var E2="[object Arguments]",F2="[object Array]",$2="[object Boolean]",D2="[object Date]",O2="[object Error]",R2="[object Function]",I2="[object Map]",P2="[object Number]",N2="[object Object]",z2="[object RegExp]",q2="[object Set]",W2="[object String]",H2="[object WeakMap]",j2="[object ArrayBuffer]",U2="[object DataView]",Y2="[object Float32Array]",G2="[object Float64Array]",V2="[object Int8Array]",X2="[object Int16Array]",Z2="[object Int32Array]",K2="[object Uint8Array]",Q2="[object Uint8ClampedArray]",J2="[object Uint16Array]",tC="[object Uint32Array]",xt={};xt[Y2]=xt[G2]=xt[V2]=xt[X2]=xt[Z2]=xt[K2]=xt[Q2]=xt[J2]=xt[tC]=!0;xt[E2]=xt[F2]=xt[j2]=xt[$2]=xt[U2]=xt[D2]=xt[O2]=xt[R2]=xt[I2]=xt[P2]=xt[N2]=xt[z2]=xt[q2]=xt[W2]=xt[H2]=!1;function eC(e){return nn(e)&&Qf(e.length)&&!!xt[ci(e)]}function rC(e){return function(t){return e(t)}}var ep=typeof exports=="object"&&exports&&!exports.nodeType&&exports,zi=ep&&typeof module=="object"&&module&&!module.nodeType&&module,iC=zi&&zi.exports===ep,ms=iC&&Yf.process,vc=function(){try{var e=zi&&zi.require&&zi.require("util").types;return e||ms&&ms.binding&&ms.binding("util")}catch{}}(),Sc=vc&&vc.isTypedArray,Po=Sc?rC(Sc):eC;function Zs(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var nC=Object.prototype,aC=nC.hasOwnProperty;function sC(e,t,r){var i=e[t];(!(aC.call(e,t)&&ba(i,r))||r===void 0&&!(t in e))&&Ro(e,t,r)}function oC(e,t,r,i){var n=!r;r||(r={});for(var a=-1,o=t.length;++a<o;){var s=t[a],l=void 0;l===void 0&&(l=e[s]),n?Ro(r,s,l):sC(r,s,l)}return r}function lC(e,t){for(var r=-1,i=Array(e);++r<e;)i[r]=t(r);return i}var cC=9007199254740991,hC=/^(?:0|[1-9]\d*)$/;function rp(e,t){var r=typeof e;return t=t??cC,!!t&&(r=="number"||r!="symbol"&&hC.test(e))&&e>-1&&e%1==0&&e<t}var uC=Object.prototype,fC=uC.hasOwnProperty;function pC(e,t){var r=Jn(e),i=!r&&Qn(e),n=!r&&!i&&Io(e),a=!r&&!i&&!n&&Po(e),o=r||i||n||a,s=o?lC(e.length,String):[],l=s.length;for(var c in e)(t||fC.call(e,c))&&!(o&&(c=="length"||n&&(c=="offset"||c=="parent")||a&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||rp(c,l)))&&s.push(c);return s}function dC(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var gC=Object.prototype,mC=gC.hasOwnProperty;function yC(e){if(!Sr(e))return dC(e);var t=wa(e),r=[];for(var i in e)i=="constructor"&&(t||!mC.call(e,i))||r.push(i);return r}function ip(e){return ka(e)?pC(e,!0):yC(e)}function xC(e){return oC(e,ip(e))}function bC(e,t,r,i,n,a,o){var s=Zs(e,r),l=Zs(t,r),c=o.get(l);if(c){Xs(e,r,c);return}var h=a?a(s,l,r+"",e,t,o):void 0,u=h===void 0;if(u){var f=Jn(l),p=!f&&Io(l),g=!f&&!p&&Po(l);h=l,f||p||g?Jn(s)?h=s:C2(s)?h=p2(s):p?(u=!1,h=h2(l,!0)):g?(u=!1,h=f2(l,!0)):h=[]:M2(l)||Qn(l)?(h=s,Qn(s)?h=xC(s):(!Sr(s)||Oo(s))&&(h=m2(l))):u=!1}u&&(o.set(l,h),n(h,l,i,a,o),o.delete(l)),Xs(e,r,h)}function np(e,t,r,i,n){e!==t&&l2(t,function(a,o){if(n||(n=new hi),Sr(a))bC(e,t,o,r,np,i,n);else{var s=i?i(Zs(e,o),a,o+"",e,t,n):void 0;s===void 0&&(s=a),Xs(e,o,s)}},ip)}function ap(e){return e}function _C(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)}var Tc=Math.max;function CC(e,t,r){return t=Tc(t===void 0?e.length-1:t,0),function(){for(var i=arguments,n=-1,a=Tc(i.length-t,0),o=Array(a);++n<a;)o[n]=i[t+n];n=-1;for(var s=Array(t+1);++n<t;)s[n]=i[n];return s[t]=r(o),_C(e,this,s)}}function wC(e){return function(){return e}}var kC=Kn?function(e,t){return Kn(e,"toString",{configurable:!0,enumerable:!1,value:wC(t),writable:!0})}:ap,vC=800,SC=16,TC=Date.now;function AC(e){var t=0,r=0;return function(){var i=TC(),n=SC-(i-r);if(r=i,n>0){if(++t>=vC)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var LC=AC(kC);function BC(e,t){return LC(CC(e,t,ap),e+"")}function MC(e,t,r){if(!Sr(r))return!1;var i=typeof t;return(i=="number"?ka(r)&&rp(t,r.length):i=="string"&&t in r)?ba(r[t],e):!1}function EC(e){return BC(function(t,r){var i=-1,n=r.length,a=n>1?r[n-1]:void 0,o=n>2?r[2]:void 0;for(a=e.length>3&&typeof a=="function"?(n--,a):void 0,o&&MC(r[0],r[1],o)&&(a=n<3?void 0:a,n=1),t=Object(t);++i<n;){var s=r[i];s&&e(t,s,i,a)}return t})}var FC=EC(function(e,t,r){np(e,t,r)}),$C="​",DC={curveBasis:Of,curveBasisClosed:H1,curveBasisOpen:j1,curveBumpX:q1,curveBumpY:W1,curveBundle:U1,curveCardinalClosed:G1,curveCardinalOpen:V1,curveCardinal:Y1,curveCatmullRomClosed:Z1,curveCatmullRomOpen:K1,curveCatmullRom:X1,curveLinear:$f,curveLinearClosed:Q1,curveMonotoneX:J1,curveMonotoneY:t_,curveNatural:e_,curveStep:r_,curveStepAfter:n_,curveStepBefore:i_},OC=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,RC=d(function(e,t){const r=sp(e,/(?:init\b)|(?:initialize\b)/);let i={};if(Array.isArray(r)){const o=r.map(s=>s.args);Dn(o),i=Nt(i,[...o])}else i=r.args;if(!i)return;let n=mo(e,t);const a="config";return i[a]!==void 0&&(n==="flowchart-v2"&&(n="flowchart"),i[n]=i[a],delete i[a]),i},"detectInit"),sp=d(function(e,t=null){var r,i;try{const n=new RegExp(`[%]{2}(?![{]${OC.source})(?=[}][%]{2}).*
97
+ `,"ig");e=e.trim().replace(n,"").replace(/'/gm,'"'),P.debug(`Detecting diagram directive${t!==null?" type:"+t:""} based on the text:${e}`);let a;const o=[];for(;(a=Pi.exec(e))!==null;)if(a.index===Pi.lastIndex&&Pi.lastIndex++,a&&!t||t&&((r=a[1])!=null&&r.match(t))||t&&((i=a[2])!=null&&i.match(t))){const s=a[1]?a[1]:a[2],l=a[3]?a[3].trim():a[4]?JSON.parse(a[4].trim()):null;o.push({type:s,args:l})}return o.length===0?{type:e,args:null}:o.length===1?o[0]:o}catch(n){return P.error(`ERROR: ${n.message} - Unable to parse directive type: '${t}' based on the text: '${e}'`),{type:void 0,args:null}}},"detectDirective"),IC=d(function(e){return e.replace(Pi,"")},"removeDirectives"),PC=d(function(e,t){for(const[r,i]of t.entries())if(i.match(e))return r;return-1},"isSubstringInArray");function No(e,t){if(!e)return t;const r=`curve${e.charAt(0).toUpperCase()+e.slice(1)}`;return DC[r]??t}d(No,"interpolateToCurve");function op(e,t){const r=e.trim();if(r)return t.securityLevel!=="loose"?Rx(r):r}d(op,"formatUrl");var NC=d((e,...t)=>{const r=e.split("."),i=r.length-1,n=r[i];let a=window;for(let o=0;o<i;o++)if(a=a[r[o]],!a){P.error(`Function name: ${e} not found in window`);return}a[n](...t)},"runFunc");function zo(e,t){return!e||!t?0:Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}d(zo,"distance");function lp(e){let t,r=0;e.forEach(n=>{r+=zo(n,t),t=n});const i=r/2;return qo(e,i)}d(lp,"traverseEdge");function cp(e){return e.length===1?e[0]:lp(e)}d(cp,"calcLabelPosition");var Ac=d((e,t=2)=>{const r=Math.pow(10,t);return Math.round(e*r)/r},"roundNumber"),qo=d((e,t)=>{let r,i=t;for(const n of e){if(r){const a=zo(n,r);if(a<i)i-=a;else{const o=i/a;if(o<=0)return r;if(o>=1)return{x:n.x,y:n.y};if(o>0&&o<1)return{x:Ac((1-o)*r.x+o*n.x,5),y:Ac((1-o)*r.y+o*n.y,5)}}}r=n}throw new Error("Could not find a suitable point for the given distance")},"calculatePoint"),zC=d((e,t,r)=>{P.info(`our points ${JSON.stringify(t)}`),t[0]!==r&&(t=t.reverse());const n=qo(t,25),a=e?10:5,o=Math.atan2(t[0].y-n.y,t[0].x-n.x),s={x:0,y:0};return s.x=Math.sin(o)*a+(t[0].x+n.x)/2,s.y=-Math.cos(o)*a+(t[0].y+n.y)/2,s},"calcCardinalityPosition");function hp(e,t,r){const i=structuredClone(r);P.info("our points",i),t!=="start_left"&&t!=="start_right"&&i.reverse();const n=25+e,a=qo(i,n),o=10+e*.5,s=Math.atan2(i[0].y-a.y,i[0].x-a.x),l={x:0,y:0};return t==="start_left"?(l.x=Math.sin(s+Math.PI)*o+(i[0].x+a.x)/2,l.y=-Math.cos(s+Math.PI)*o+(i[0].y+a.y)/2):t==="end_right"?(l.x=Math.sin(s-Math.PI)*o+(i[0].x+a.x)/2-5,l.y=-Math.cos(s-Math.PI)*o+(i[0].y+a.y)/2-5):t==="end_left"?(l.x=Math.sin(s)*o+(i[0].x+a.x)/2-5,l.y=-Math.cos(s)*o+(i[0].y+a.y)/2-5):(l.x=Math.sin(s)*o+(i[0].x+a.x)/2,l.y=-Math.cos(s)*o+(i[0].y+a.y)/2),l}d(hp,"calcTerminalLabelPosition");function up(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}}d(up,"getStylesFromArray");var Lc=0,qC=d(()=>(Lc++,"id-"+Math.random().toString(36).substr(2,12)+"-"+Lc),"generateId");function fp(e){let t="";const r="0123456789abcdef",i=r.length;for(let n=0;n<e;n++)t+=r.charAt(Math.floor(Math.random()*i));return t}d(fp,"makeRandomHex");var WC=d(e=>fp(e.length),"random"),HC=d(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"),jC=d(function(e,t){const r=t.text.replace(li.lineBreakRegex," "),[,i]=va(t.fontSize),n=e.append("text");n.attr("x",t.x),n.attr("y",t.y),n.style("text-anchor",t.anchor),n.style("font-family",t.fontFamily),n.style("font-size",i),n.style("font-weight",t.fontWeight),n.attr("fill",t.fill),t.class!==void 0&&n.attr("class",t.class);const a=n.append("tspan");return a.attr("x",t.x+t.textMargin*2),a.attr("fill",t.fill),a.text(r),n},"drawSimpleText"),UC=rn((e,t,r)=>{if(!e||(r=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"<br/>"},r),li.lineBreakRegex.test(e)))return e;const i=e.split(" ").filter(Boolean),n=[];let a="";return i.forEach((o,s)=>{const l=ai(`${o} `,r),c=ai(a,r);if(l>t){const{hyphenatedStrings:f,remainingWord:p}=YC(o,t,"-",r);n.push(a,...f),a=p}else c+l>=t?(n.push(a),a=o):a=[a,o].filter(Boolean).join(" ");s+1===i.length&&n.push(a)}),n.filter(o=>o!=="").join(r.joinWith)},(e,t,r)=>`${e}${t}${r.fontSize}${r.fontWeight}${r.fontFamily}${r.joinWith}`),YC=rn((e,t,r="-",i)=>{i=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},i);const n=[...e],a=[];let o="";return n.forEach((s,l)=>{const c=`${o}${s}`;if(ai(c,i)>=t){const u=l+1,f=n.length===u,p=`${c}${r}`;a.push(f?c:p),o=""}else o=c}),{hyphenatedStrings:a,remainingWord:o}},(e,t,r="-",i)=>`${e}${t}${r}${i.fontSize}${i.fontWeight}${i.fontFamily}`);function pp(e,t){return Wo(e,t).height}d(pp,"calculateTextHeight");function ai(e,t){return Wo(e,t).width}d(ai,"calculateTextWidth");var Wo=rn((e,t)=>{const{fontSize:r=12,fontFamily:i="Arial",fontWeight:n=400}=t;if(!e)return{width:0,height:0};const[,a]=va(r),o=["sans-serif",i],s=e.split(li.lineBreakRegex),l=[],c=ft("body");if(!c.remove)return{width:0,height:0,lineHeight:0};const h=c.append("svg");for(const f of o){let p=0;const g={width:0,height:0,lineHeight:0};for(const m of s){const x=HC();x.text=m||$C;const y=jC(h,x).style("font-size",a).style("font-weight",n).style("font-family",f),_=(y._groups||y)[0][0].getBBox();if(_.width===0&&_.height===0)throw new Error("svg element not in render tree");g.width=Math.round(Math.max(g.width,_.width)),p=Math.round(_.height),g.height+=p,g.lineHeight=Math.round(Math.max(g.lineHeight,p))}l.push(g)}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}`),Kr,GC=(Kr=class{constructor(t=!1,r){this.count=0,this.count=r?r.length:0,this.next=t?()=>this.count++:()=>Date.now()}},d(Kr,"InitIDGenerator"),Kr),bn,VC=d(function(e){return bn=bn||document.createElement("div"),e=escape(e).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),bn.innerHTML=e,unescape(bn.textContent)},"entityDecode");function Ho(e){return"str"in e}d(Ho,"isDetailedError");var XC=d((e,t,r,i)=>{var a;if(!i)return;const n=(a=e.node())==null?void 0:a.getBBox();n&&e.append("text").text(i).attr("text-anchor","middle").attr("x",n.x+n.width/2).attr("y",-r).attr("class",t)},"insertTitle"),va=d(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 jo(e,t){return FC({},e,t)}d(jo,"cleanAndMerge");var Te={assignWithDepth:Nt,wrapLabel:UC,calculateTextHeight:pp,calculateTextWidth:ai,calculateTextDimensions:Wo,cleanAndMerge:jo,detectInit:RC,detectDirective:sp,isSubstringInArray:PC,interpolateToCurve:No,calcLabelPosition:cp,calcCardinalityPosition:zC,calcTerminalLabelPosition:hp,formatUrl:op,getStylesFromArray:up,generateId:qC,random:WC,runFunc:NC,entityDecode:VC,insertTitle:XC,parseFontSize:va,InitIDGenerator:GC},ZC=d(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"),ui=d(function(e){return e.replace(/fl°°/g,"&#").replace(/fl°/g,"&").replace(/¶ß/g,";")},"decodeEntities"),lA=d((e,t,{counter:r=0,prefix:i,suffix:n})=>`${i?`${i}_`:""}${e}_${t}_${r}${n?`_${n}`:""}`,"getEdgeId");function Kt(e){return e??null}d(Kt,"handleUndefinedAttr");function Uo(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}let Lr=Uo();function dp(e){Lr=e}const gp=/[&<>"']/,KC=new RegExp(gp.source,"g"),mp=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,QC=new RegExp(mp.source,"g"),JC={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Bc=e=>JC[e];function ce(e,t){if(t){if(gp.test(e))return e.replace(KC,Bc)}else if(mp.test(e))return e.replace(QC,Bc);return e}const tw=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function ew(e){return e.replace(tw,(t,r)=>(r=r.toLowerCase(),r==="colon"?":":r.charAt(0)==="#"?r.charAt(1)==="x"?String.fromCharCode(parseInt(r.substring(2),16)):String.fromCharCode(+r.substring(1)):""))}const rw=/(^|[^\[])\^/g;function gt(e,t){let r=typeof e=="string"?e:e.source;t=t||"";const i={replace:(n,a)=>{let o=typeof a=="string"?a:a.source;return o=o.replace(rw,"$1"),r=r.replace(n,o),i},getRegex:()=>new RegExp(r,t)};return i}function Mc(e){try{e=encodeURI(e).replace(/%25/g,"%")}catch{return null}return e}const qi={exec:()=>null};function Ec(e,t){const r=e.replace(/\|/g,(a,o,s)=>{let l=!1,c=o;for(;--c>=0&&s[c]==="\\";)l=!l;return l?"|":" |"}),i=r.split(/ \|/);let n=0;if(i[0].trim()||i.shift(),i.length>0&&!i[i.length-1].trim()&&i.pop(),t)if(i.length>t)i.splice(t);else for(;i.length<t;)i.push("");for(;n<i.length;n++)i[n]=i[n].trim().replace(/\\\|/g,"|");return i}function Ti(e,t,r){const i=e.length;if(i===0)return"";let n=0;for(;n<i&&e.charAt(i-n-1)===t;)n++;return e.slice(0,i-n)}function iw(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-1}function Fc(e,t,r,i){const n=t.href,a=t.title?ce(t.title):null,o=e[1].replace(/\\([\[\]])/g,"$1");if(e[0].charAt(0)!=="!"){i.state.inLink=!0;const s={type:"link",raw:r,href:n,title:a,text:o,tokens:i.inlineTokens(o)};return i.state.inLink=!1,s}return{type:"image",raw:r,href:n,title:a,text:ce(o)}}function nw(e,t){const r=e.match(/^(\s+)(?:```)/);if(r===null)return t;const i=r[1];return t.split(`
98
+ `).map(n=>{const a=n.match(/^\s+/);if(a===null)return n;const[o]=a;return o.length>=i.length?n.slice(i.length):n}).join(`
99
+ `)}class ta{constructor(t){yt(this,"options");yt(this,"rules");yt(this,"lexer");this.options=t||Lr}space(t){const r=this.rules.block.newline.exec(t);if(r&&r[0].length>0)return{type:"space",raw:r[0]}}code(t){const r=this.rules.block.code.exec(t);if(r){const i=r[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:r[0],codeBlockStyle:"indented",text:this.options.pedantic?i:Ti(i,`
100
+ `)}}}fences(t){const r=this.rules.block.fences.exec(t);if(r){const i=r[0],n=nw(i,r[3]||"");return{type:"code",raw:i,lang:r[2]?r[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):r[2],text:n}}}heading(t){const r=this.rules.block.heading.exec(t);if(r){let i=r[2].trim();if(/#$/.test(i)){const n=Ti(i,"#");(this.options.pedantic||!n||/ $/.test(n))&&(i=n.trim())}return{type:"heading",raw:r[0],depth:r[1].length,text:i,tokens:this.lexer.inline(i)}}}hr(t){const r=this.rules.block.hr.exec(t);if(r)return{type:"hr",raw:Ti(r[0],`
101
+ `)}}blockquote(t){const r=this.rules.block.blockquote.exec(t);if(r){let i=Ti(r[0],`
102
+ `).split(`
103
+ `),n="",a="";const o=[];for(;i.length>0;){let s=!1;const l=[];let c;for(c=0;c<i.length;c++)if(/^ {0,3}>/.test(i[c]))l.push(i[c]),s=!0;else if(!s)l.push(i[c]);else break;i=i.slice(c);const h=l.join(`
104
+ `),u=h.replace(/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,`
105
+ $1`).replace(/^ {0,3}>[ \t]?/gm,"");n=n?`${n}
106
+ ${h}`:h,a=a?`${a}
107
+ ${u}`:u;const f=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(u,o,!0),this.lexer.state.top=f,i.length===0)break;const p=o[o.length-1];if((p==null?void 0:p.type)==="code")break;if((p==null?void 0:p.type)==="blockquote"){const g=p,m=g.raw+`
108
+ `+i.join(`
109
+ `),x=this.blockquote(m);o[o.length-1]=x,n=n.substring(0,n.length-g.raw.length)+x.raw,a=a.substring(0,a.length-g.text.length)+x.text;break}else if((p==null?void 0:p.type)==="list"){const g=p,m=g.raw+`
110
+ `+i.join(`
111
+ `),x=this.list(m);o[o.length-1]=x,n=n.substring(0,n.length-p.raw.length)+x.raw,a=a.substring(0,a.length-g.raw.length)+x.raw,i=m.substring(o[o.length-1].raw.length).split(`
112
+ `);continue}}return{type:"blockquote",raw:n,tokens:o,text:a}}}list(t){let r=this.rules.block.list.exec(t);if(r){let i=r[1].trim();const n=i.length>1,a={type:"list",raw:"",ordered:n,start:n?+i.slice(0,-1):"",loose:!1,items:[]};i=n?`\\d{1,9}\\${i.slice(-1)}`:`\\${i}`,this.options.pedantic&&(i=n?i:"[*+-]");const o=new RegExp(`^( {0,3}${i})((?:[ ][^\\n]*)?(?:\\n|$))`);let s=!1;for(;t;){let l=!1,c="",h="";if(!(r=o.exec(t))||this.rules.block.hr.test(t))break;c=r[0],t=t.substring(c.length);let u=r[2].split(`
113
+ `,1)[0].replace(/^\t+/,y=>" ".repeat(3*y.length)),f=t.split(`
114
+ `,1)[0],p=!u.trim(),g=0;if(this.options.pedantic?(g=2,h=u.trimStart()):p?g=r[1].length+1:(g=r[2].search(/[^ ]/),g=g>4?1:g,h=u.slice(g),g+=r[1].length),p&&/^ *$/.test(f)&&(c+=f+`
115
+ `,t=t.substring(f.length+1),l=!0),!l){const y=new RegExp(`^ {0,${Math.min(3,g-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),_=new RegExp(`^ {0,${Math.min(3,g-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),C=new RegExp(`^ {0,${Math.min(3,g-1)}}(?:\`\`\`|~~~)`),k=new RegExp(`^ {0,${Math.min(3,g-1)}}#`);for(;t;){const v=t.split(`
116
+ `,1)[0];if(f=v,this.options.pedantic&&(f=f.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),C.test(f)||k.test(f)||y.test(f)||_.test(t))break;if(f.search(/[^ ]/)>=g||!f.trim())h+=`
117
+ `+f.slice(g);else{if(p||u.search(/[^ ]/)>=4||C.test(u)||k.test(u)||_.test(u))break;h+=`
118
+ `+f}!p&&!f.trim()&&(p=!0),c+=v+`
119
+ `,t=t.substring(v.length+1),u=f.slice(g)}}a.loose||(s?a.loose=!0:/\n *\n *$/.test(c)&&(s=!0));let m=null,x;this.options.gfm&&(m=/^\[[ xX]\] /.exec(h),m&&(x=m[0]!=="[ ] ",h=h.replace(/^\[[ xX]\] +/,""))),a.items.push({type:"list_item",raw:c,task:!!m,checked:x,loose:!1,text:h,tokens:[]}),a.raw+=c}a.items[a.items.length-1].raw=a.items[a.items.length-1].raw.trimEnd(),a.items[a.items.length-1].text=a.items[a.items.length-1].text.trimEnd(),a.raw=a.raw.trimEnd();for(let l=0;l<a.items.length;l++)if(this.lexer.state.top=!1,a.items[l].tokens=this.lexer.blockTokens(a.items[l].text,[]),!a.loose){const c=a.items[l].tokens.filter(u=>u.type==="space"),h=c.length>0&&c.some(u=>/\n.*\n/.test(u.raw));a.loose=h}if(a.loose)for(let l=0;l<a.items.length;l++)a.items[l].loose=!0;return a}}html(t){const 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){const r=this.rules.block.def.exec(t);if(r){const i=r[1].toLowerCase().replace(/\s+/g," "),n=r[2]?r[2].replace(/^<(.*)>$/,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",a=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:n,title:a}}}table(t){const r=this.rules.block.table.exec(t);if(!r||!/[:|]/.test(r[2]))return;const i=Ec(r[1]),n=r[2].replace(/^\||\| *$/g,"").split("|"),a=r[3]&&r[3].trim()?r[3].replace(/\n[ \t]*$/,"").split(`
120
+ `):[],o={type:"table",raw:r[0],header:[],align:[],rows:[]};if(i.length===n.length){for(const s of n)/^ *-+: *$/.test(s)?o.align.push("right"):/^ *:-+: *$/.test(s)?o.align.push("center"):/^ *:-+ *$/.test(s)?o.align.push("left"):o.align.push(null);for(let s=0;s<i.length;s++)o.header.push({text:i[s],tokens:this.lexer.inline(i[s]),header:!0,align:o.align[s]});for(const s of a)o.rows.push(Ec(s,o.header.length).map((l,c)=>({text:l,tokens:this.lexer.inline(l),header:!1,align:o.align[c]})));return o}}lheading(t){const 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){const r=this.rules.block.paragraph.exec(t);if(r){const i=r[1].charAt(r[1].length-1)===`
121
+ `?r[1].slice(0,-1):r[1];return{type:"paragraph",raw:r[0],text:i,tokens:this.lexer.inline(i)}}}text(t){const 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){const r=this.rules.inline.escape.exec(t);if(r)return{type:"escape",raw:r[0],text:ce(r[1])}}tag(t){const r=this.rules.inline.tag.exec(t);if(r)return!this.lexer.state.inLink&&/^<a /i.test(r[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(r[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(r[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.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){const r=this.rules.inline.link.exec(t);if(r){const i=r[2].trim();if(!this.options.pedantic&&/^</.test(i)){if(!/>$/.test(i))return;const o=Ti(i.slice(0,-1),"\\");if((i.length-o.length)%2===0)return}else{const o=iw(r[2],"()");if(o>-1){const l=(r[0].indexOf("!")===0?5:4)+r[1].length+o;r[2]=r[2].substring(0,o),r[0]=r[0].substring(0,l).trim(),r[3]=""}}let n=r[2],a="";if(this.options.pedantic){const o=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(n);o&&(n=o[1],a=o[3])}else a=r[3]?r[3].slice(1,-1):"";return n=n.trim(),/^</.test(n)&&(this.options.pedantic&&!/>$/.test(i)?n=n.slice(1):n=n.slice(1,-1)),Fc(r,{href:n&&n.replace(this.rules.inline.anyPunctuation,"$1"),title:a&&a.replace(this.rules.inline.anyPunctuation,"$1")},r[0],this.lexer)}}reflink(t,r){let i;if((i=this.rules.inline.reflink.exec(t))||(i=this.rules.inline.nolink.exec(t))){const n=(i[2]||i[1]).replace(/\s+/g," "),a=r[n.toLowerCase()];if(!a){const o=i[0].charAt(0);return{type:"text",raw:o,text:o}}return Fc(i,a,i[0],this.lexer)}}emStrong(t,r,i=""){let n=this.rules.inline.emStrongLDelim.exec(t);if(!n||n[3]&&i.match(/[\p{L}\p{N}]/u))return;if(!(n[1]||n[2]||"")||!i||this.rules.inline.punctuation.exec(i)){const o=[...n[0]].length-1;let s,l,c=o,h=0;const u=n[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(u.lastIndex=0,r=r.slice(-1*t.length+o);(n=u.exec(r))!=null;){if(s=n[1]||n[2]||n[3]||n[4]||n[5]||n[6],!s)continue;if(l=[...s].length,n[3]||n[4]){c+=l;continue}else if((n[5]||n[6])&&o%3&&!((o+l)%3)){h+=l;continue}if(c-=l,c>0)continue;l=Math.min(l,l+c+h);const f=[...n[0]][0].length,p=t.slice(0,o+n.index+f+l);if(Math.min(o,l)%2){const m=p.slice(1,-1);return{type:"em",raw:p,text:m,tokens:this.lexer.inlineTokens(m)}}const g=p.slice(2,-2);return{type:"strong",raw:p,text:g,tokens:this.lexer.inlineTokens(g)}}}}codespan(t){const r=this.rules.inline.code.exec(t);if(r){let i=r[2].replace(/\n/g," ");const n=/[^ ]/.test(i),a=/^ /.test(i)&&/ $/.test(i);return n&&a&&(i=i.substring(1,i.length-1)),i=ce(i,!0),{type:"codespan",raw:r[0],text:i}}}br(t){const r=this.rules.inline.br.exec(t);if(r)return{type:"br",raw:r[0]}}del(t){const 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){const r=this.rules.inline.autolink.exec(t);if(r){let i,n;return r[2]==="@"?(i=ce(r[1]),n="mailto:"+i):(i=ce(r[1]),n=i),{type:"link",raw:r[0],text:i,href:n,tokens:[{type:"text",raw:i,text:i}]}}}url(t){var i;let r;if(r=this.rules.inline.url.exec(t)){let n,a;if(r[2]==="@")n=ce(r[0]),a="mailto:"+n;else{let o;do o=r[0],r[0]=((i=this.rules.inline._backpedal.exec(r[0]))==null?void 0:i[0])??"";while(o!==r[0]);n=ce(r[0]),r[1]==="www."?a="http://"+r[0]:a=r[0]}return{type:"link",raw:r[0],text:n,href:a,tokens:[{type:"text",raw:n,text:n}]}}}inlineText(t){const r=this.rules.inline.text.exec(t);if(r){let i;return this.lexer.state.inRawBlock?i=r[0]:i=ce(r[0]),{type:"text",raw:r[0],text:i}}}}const aw=/^(?: *(?:\n|$))+/,sw=/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,ow=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,an=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,lw=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,yp=/(?:[*+-]|\d{1,9}[.)])/,xp=gt(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g,yp).replace(/blockCode/g,/ {4}/).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/).getRegex(),Yo=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,cw=/^[^\n]+/,Go=/(?!\s*\])(?:\\.|[^\[\]\\])+/,hw=gt(/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/).replace("label",Go).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),uw=gt(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,yp).getRegex(),Sa="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",Vo=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,fw=gt("^ {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",Vo).replace("tag",Sa).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),bp=gt(Yo).replace("hr",an).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",Sa).getRegex(),pw=gt(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",bp).getRegex(),Xo={blockquote:pw,code:sw,def:hw,fences:ow,heading:lw,hr:an,html:fw,lheading:xp,list:uw,newline:aw,paragraph:bp,table:qi,text:cw},$c=gt("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",an).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\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",Sa).getRegex(),dw={...Xo,table:$c,paragraph:gt(Yo).replace("hr",an).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",$c).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",Sa).getRegex()},gw={...Xo,html:gt(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Vo).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:qi,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:gt(Yo).replace("hr",an).replace("heading",` *#{1,6} *[^
122
+ ]`).replace("lheading",xp).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},_p=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,mw=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Cp=/^( {2,}|\\)\n(?!\s*$)/,yw=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,sn="\\p{P}\\p{S}",xw=gt(/^((?![*_])[\spunctuation])/,"u").replace(/punctuation/g,sn).getRegex(),bw=/\[[^[\]]*?\]\([^\(\)]*?\)|`[^`]*?`|<[^<>]*?>/g,_w=gt(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/,"u").replace(/punct/g,sn).getRegex(),Cw=gt("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])","gu").replace(/punct/g,sn).getRegex(),ww=gt("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])","gu").replace(/punct/g,sn).getRegex(),kw=gt(/\\([punct])/,"gu").replace(/punct/g,sn).getRegex(),vw=gt(/^<(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(),Sw=gt(Vo).replace("(?:-->|$)","-->").getRegex(),Tw=gt("^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",Sw).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),ea=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,Aw=gt(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",ea).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),wp=gt(/^!?\[(label)\]\[(ref)\]/).replace("label",ea).replace("ref",Go).getRegex(),kp=gt(/^!?\[(ref)\](?:\[\])?/).replace("ref",Go).getRegex(),Lw=gt("reflink|nolink(?!\\()","g").replace("reflink",wp).replace("nolink",kp).getRegex(),Zo={_backpedal:qi,anyPunctuation:kw,autolink:vw,blockSkip:bw,br:Cp,code:mw,del:qi,emStrongLDelim:_w,emStrongRDelimAst:Cw,emStrongRDelimUnd:ww,escape:_p,link:Aw,nolink:kp,punctuation:xw,reflink:wp,reflinkSearch:Lw,tag:Tw,text:yw,url:qi},Bw={...Zo,link:gt(/^!?\[(label)\]\((.*?)\)/).replace("label",ea).getRegex(),reflink:gt(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",ea).getRegex()},Ks={...Zo,escape:gt(_p).replace("])","~|])").getRegex(),url:gt(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").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~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},Mw={...Ks,br:gt(Cp).replace("{2,}","*").getRegex(),text:gt(Ks.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},_n={normal:Xo,gfm:dw,pedantic:gw},Ai={normal:Zo,gfm:Ks,breaks:Mw,pedantic:Bw};class Ae{constructor(t){yt(this,"tokens");yt(this,"options");yt(this,"state");yt(this,"tokenizer");yt(this,"inlineQueue");this.tokens=[],this.tokens.links=Object.create(null),this.options=t||Lr,this.options.tokenizer=this.options.tokenizer||new ta,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const r={block:_n.normal,inline:Ai.normal};this.options.pedantic?(r.block=_n.pedantic,r.inline=Ai.pedantic):this.options.gfm&&(r.block=_n.gfm,this.options.breaks?r.inline=Ai.breaks:r.inline=Ai.gfm),this.tokenizer.rules=r}static get rules(){return{block:_n,inline:Ai}}static lex(t,r){return new Ae(r).lex(t)}static lexInline(t,r){return new Ae(r).inlineTokens(t)}lex(t){t=t.replace(/\r\n|\r/g,`
123
+ `),this.blockTokens(t,this.tokens);for(let r=0;r<this.inlineQueue.length;r++){const i=this.inlineQueue[r];this.inlineTokens(i.src,i.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,r=[],i=!1){this.options.pedantic?t=t.replace(/\t/g," ").replace(/^ +$/gm,""):t=t.replace(/^( *)(\t+)/gm,(s,l,c)=>l+" ".repeat(c.length));let n,a,o;for(;t;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(s=>(n=s.call({lexer:this},t,r))?(t=t.substring(n.raw.length),r.push(n),!0):!1))){if(n=this.tokenizer.space(t)){t=t.substring(n.raw.length),n.raw.length===1&&r.length>0?r[r.length-1].raw+=`
124
+ `:r.push(n);continue}if(n=this.tokenizer.code(t)){t=t.substring(n.raw.length),a=r[r.length-1],a&&(a.type==="paragraph"||a.type==="text")?(a.raw+=`
125
+ `+n.raw,a.text+=`
126
+ `+n.text,this.inlineQueue[this.inlineQueue.length-1].src=a.text):r.push(n);continue}if(n=this.tokenizer.fences(t)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.heading(t)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.hr(t)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.blockquote(t)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.list(t)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.html(t)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.def(t)){t=t.substring(n.raw.length),a=r[r.length-1],a&&(a.type==="paragraph"||a.type==="text")?(a.raw+=`
127
+ `+n.raw,a.text+=`
128
+ `+n.raw,this.inlineQueue[this.inlineQueue.length-1].src=a.text):this.tokens.links[n.tag]||(this.tokens.links[n.tag]={href:n.href,title:n.title});continue}if(n=this.tokenizer.table(t)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.lheading(t)){t=t.substring(n.raw.length),r.push(n);continue}if(o=t,this.options.extensions&&this.options.extensions.startBlock){let s=1/0;const l=t.slice(1);let c;this.options.extensions.startBlock.forEach(h=>{c=h.call({lexer:this},l),typeof c=="number"&&c>=0&&(s=Math.min(s,c))}),s<1/0&&s>=0&&(o=t.substring(0,s+1))}if(this.state.top&&(n=this.tokenizer.paragraph(o))){a=r[r.length-1],i&&(a==null?void 0:a.type)==="paragraph"?(a.raw+=`
129
+ `+n.raw,a.text+=`
130
+ `+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=a.text):r.push(n),i=o.length!==t.length,t=t.substring(n.raw.length);continue}if(n=this.tokenizer.text(t)){t=t.substring(n.raw.length),a=r[r.length-1],a&&a.type==="text"?(a.raw+=`
131
+ `+n.raw,a.text+=`
132
+ `+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=a.text):r.push(n);continue}if(t){const s="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(s);break}else throw new Error(s)}}return this.state.top=!0,r}inline(t,r=[]){return this.inlineQueue.push({src:t,tokens:r}),r}inlineTokens(t,r=[]){let i,n,a,o=t,s,l,c;if(this.tokens.links){const h=Object.keys(this.tokens.links);if(h.length>0)for(;(s=this.tokenizer.rules.inline.reflinkSearch.exec(o))!=null;)h.includes(s[0].slice(s[0].lastIndexOf("[")+1,-1))&&(o=o.slice(0,s.index)+"["+"a".repeat(s[0].length-2)+"]"+o.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(s=this.tokenizer.rules.inline.blockSkip.exec(o))!=null;)o=o.slice(0,s.index)+"["+"a".repeat(s[0].length-2)+"]"+o.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(s=this.tokenizer.rules.inline.anyPunctuation.exec(o))!=null;)o=o.slice(0,s.index)+"++"+o.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;t;)if(l||(c=""),l=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(h=>(i=h.call({lexer:this},t,r))?(t=t.substring(i.raw.length),r.push(i),!0):!1))){if(i=this.tokenizer.escape(t)){t=t.substring(i.raw.length),r.push(i);continue}if(i=this.tokenizer.tag(t)){t=t.substring(i.raw.length),n=r[r.length-1],n&&i.type==="text"&&n.type==="text"?(n.raw+=i.raw,n.text+=i.text):r.push(i);continue}if(i=this.tokenizer.link(t)){t=t.substring(i.raw.length),r.push(i);continue}if(i=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(i.raw.length),n=r[r.length-1],n&&i.type==="text"&&n.type==="text"?(n.raw+=i.raw,n.text+=i.text):r.push(i);continue}if(i=this.tokenizer.emStrong(t,o,c)){t=t.substring(i.raw.length),r.push(i);continue}if(i=this.tokenizer.codespan(t)){t=t.substring(i.raw.length),r.push(i);continue}if(i=this.tokenizer.br(t)){t=t.substring(i.raw.length),r.push(i);continue}if(i=this.tokenizer.del(t)){t=t.substring(i.raw.length),r.push(i);continue}if(i=this.tokenizer.autolink(t)){t=t.substring(i.raw.length),r.push(i);continue}if(!this.state.inLink&&(i=this.tokenizer.url(t))){t=t.substring(i.raw.length),r.push(i);continue}if(a=t,this.options.extensions&&this.options.extensions.startInline){let h=1/0;const u=t.slice(1);let f;this.options.extensions.startInline.forEach(p=>{f=p.call({lexer:this},u),typeof f=="number"&&f>=0&&(h=Math.min(h,f))}),h<1/0&&h>=0&&(a=t.substring(0,h+1))}if(i=this.tokenizer.inlineText(a)){t=t.substring(i.raw.length),i.raw.slice(-1)!=="_"&&(c=i.raw.slice(-1)),l=!0,n=r[r.length-1],n&&n.type==="text"?(n.raw+=i.raw,n.text+=i.text):r.push(i);continue}if(t){const h="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(h);break}else throw new Error(h)}}return r}}class ra{constructor(t){yt(this,"options");yt(this,"parser");this.options=t||Lr}space(t){return""}code({text:t,lang:r,escaped:i}){var o;const n=(o=(r||"").match(/^\S*/))==null?void 0:o[0],a=t.replace(/\n$/,"")+`
133
+ `;return n?'<pre><code class="language-'+ce(n)+'">'+(i?a:ce(a,!0))+`</code></pre>
134
+ `:"<pre><code>"+(i?a:ce(a,!0))+`</code></pre>
135
+ `}blockquote({tokens:t}){return`<blockquote>
136
+ ${this.parser.parse(t)}</blockquote>
137
+ `}html({text:t}){return t}heading({tokens:t,depth:r}){return`<h${r}>${this.parser.parseInline(t)}</h${r}>
138
+ `}hr(t){return`<hr>
139
+ `}list(t){const r=t.ordered,i=t.start;let n="";for(let s=0;s<t.items.length;s++){const l=t.items[s];n+=this.listitem(l)}const a=r?"ol":"ul",o=r&&i!==1?' start="'+i+'"':"";return"<"+a+o+`>
140
+ `+n+"</"+a+`>
141
+ `}listitem(t){let r="";if(t.task){const i=this.checkbox({checked:!!t.checked});t.loose?t.tokens.length>0&&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+" "+t.tokens[0].tokens[0].text)):t.tokens.unshift({type:"text",raw:i+" ",text:i+" "}):r+=i+" "}return r+=this.parser.parse(t.tokens,!!t.loose),`<li>${r}</li>
142
+ `}checkbox({checked:t}){return"<input "+(t?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:t}){return`<p>${this.parser.parseInline(t)}</p>
143
+ `}table(t){let r="",i="";for(let a=0;a<t.header.length;a++)i+=this.tablecell(t.header[a]);r+=this.tablerow({text:i});let n="";for(let a=0;a<t.rows.length;a++){const o=t.rows[a];i="";for(let s=0;s<o.length;s++)i+=this.tablecell(o[s]);n+=this.tablerow({text:i})}return n&&(n=`<tbody>${n}</tbody>`),`<table>
144
+ <thead>
145
+ `+r+`</thead>
146
+ `+n+`</table>
147
+ `}tablerow({text:t}){return`<tr>
148
+ ${t}</tr>
149
+ `}tablecell(t){const r=this.parser.parseInline(t.tokens),i=t.header?"th":"td";return(t.align?`<${i} align="${t.align}">`:`<${i}>`)+r+`</${i}>
150
+ `}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>${t}</code>`}br(t){return"<br>"}del({tokens:t}){return`<del>${this.parser.parseInline(t)}</del>`}link({href:t,title:r,tokens:i}){const n=this.parser.parseInline(i),a=Mc(t);if(a===null)return n;t=a;let o='<a href="'+t+'"';return r&&(o+=' title="'+r+'"'),o+=">"+n+"</a>",o}image({href:t,title:r,text:i}){const n=Mc(t);if(n===null)return i;t=n;let a=`<img src="${t}" alt="${i}"`;return r&&(a+=` title="${r}"`),a+=">",a}text(t){return"tokens"in t&&t.tokens?this.parser.parseInline(t.tokens):t.text}}class Ko{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""}}class Le{constructor(t){yt(this,"options");yt(this,"renderer");yt(this,"textRenderer");this.options=t||Lr,this.options.renderer=this.options.renderer||new ra,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Ko}static parse(t,r){return new Le(r).parse(t)}static parseInline(t,r){return new Le(r).parseInline(t)}parse(t,r=!0){let i="";for(let n=0;n<t.length;n++){const a=t[n];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[a.type]){const s=a,l=this.options.extensions.renderers[s.type].call({parser:this},s);if(l!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(s.type)){i+=l||"";continue}}const o=a;switch(o.type){case"space":{i+=this.renderer.space(o);continue}case"hr":{i+=this.renderer.hr(o);continue}case"heading":{i+=this.renderer.heading(o);continue}case"code":{i+=this.renderer.code(o);continue}case"table":{i+=this.renderer.table(o);continue}case"blockquote":{i+=this.renderer.blockquote(o);continue}case"list":{i+=this.renderer.list(o);continue}case"html":{i+=this.renderer.html(o);continue}case"paragraph":{i+=this.renderer.paragraph(o);continue}case"text":{let s=o,l=this.renderer.text(s);for(;n+1<t.length&&t[n+1].type==="text";)s=t[++n],l+=`
151
+ `+this.renderer.text(s);r?i+=this.renderer.paragraph({type:"paragraph",raw:l,text:l,tokens:[{type:"text",raw:l,text:l}]}):i+=l;continue}default:{const s='Token with "'+o.type+'" type was not found.';if(this.options.silent)return console.error(s),"";throw new Error(s)}}}return i}parseInline(t,r){r=r||this.renderer;let i="";for(let n=0;n<t.length;n++){const a=t[n];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[a.type]){const s=this.options.extensions.renderers[a.type].call({parser:this},a);if(s!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(a.type)){i+=s||"";continue}}const o=a;switch(o.type){case"escape":{i+=r.text(o);break}case"html":{i+=r.html(o);break}case"link":{i+=r.link(o);break}case"image":{i+=r.image(o);break}case"strong":{i+=r.strong(o);break}case"em":{i+=r.em(o);break}case"codespan":{i+=r.codespan(o);break}case"br":{i+=r.br(o);break}case"del":{i+=r.del(o);break}case"text":{i+=r.text(o);break}default:{const s='Token with "'+o.type+'" type was not found.';if(this.options.silent)return console.error(s),"";throw new Error(s)}}}return i}}class Wi{constructor(t){yt(this,"options");this.options=t||Lr}preprocess(t){return t}postprocess(t){return t}processAllTokens(t){return t}}yt(Wi,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens"]));var ze,vp,Qs,Sp;class Ew{constructor(...t){Dl(this,ze);yt(this,"defaults",Uo());yt(this,"options",this.setOptions);yt(this,"parse",_i(this,ze,Qs).call(this,Ae.lex,Le.parse));yt(this,"parseInline",_i(this,ze,Qs).call(this,Ae.lexInline,Le.parseInline));yt(this,"Parser",Le);yt(this,"Renderer",ra);yt(this,"TextRenderer",Ko);yt(this,"Lexer",Ae);yt(this,"Tokenizer",ta);yt(this,"Hooks",Wi);this.use(...t)}walkTokens(t,r){var n,a;let i=[];for(const o of t)switch(i=i.concat(r.call(this,o)),o.type){case"table":{const s=o;for(const l of s.header)i=i.concat(this.walkTokens(l.tokens,r));for(const l of s.rows)for(const c of l)i=i.concat(this.walkTokens(c.tokens,r));break}case"list":{const s=o;i=i.concat(this.walkTokens(s.items,r));break}default:{const s=o;(a=(n=this.defaults.extensions)==null?void 0:n.childTokens)!=null&&a[s.type]?this.defaults.extensions.childTokens[s.type].forEach(l=>{const c=s[l].flat(1/0);i=i.concat(this.walkTokens(c,r))}):s.tokens&&(i=i.concat(this.walkTokens(s.tokens,r)))}}return i}use(...t){const r=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(i=>{const n={...i};if(n.async=this.defaults.async||n.async||!1,i.extensions&&(i.extensions.forEach(a=>{if(!a.name)throw new Error("extension name required");if("renderer"in a){const o=r.renderers[a.name];o?r.renderers[a.name]=function(...s){let l=a.renderer.apply(this,s);return l===!1&&(l=o.apply(this,s)),l}:r.renderers[a.name]=a.renderer}if("tokenizer"in a){if(!a.level||a.level!=="block"&&a.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");const o=r[a.level];o?o.unshift(a.tokenizer):r[a.level]=[a.tokenizer],a.start&&(a.level==="block"?r.startBlock?r.startBlock.push(a.start):r.startBlock=[a.start]:a.level==="inline"&&(r.startInline?r.startInline.push(a.start):r.startInline=[a.start]))}"childTokens"in a&&a.childTokens&&(r.childTokens[a.name]=a.childTokens)}),n.extensions=r),i.renderer){const a=this.defaults.renderer||new ra(this.defaults);for(const o in i.renderer){if(!(o in a))throw new Error(`renderer '${o}' does not exist`);if(["options","parser"].includes(o))continue;const s=o;let l=i.renderer[s];i.useNewRenderer||(l=_i(this,ze,vp).call(this,l,s,a));const c=a[s];a[s]=(...h)=>{let u=l.apply(a,h);return u===!1&&(u=c.apply(a,h)),u||""}}n.renderer=a}if(i.tokenizer){const a=this.defaults.tokenizer||new ta(this.defaults);for(const o in i.tokenizer){if(!(o in a))throw new Error(`tokenizer '${o}' does not exist`);if(["options","rules","lexer"].includes(o))continue;const s=o,l=i.tokenizer[s],c=a[s];a[s]=(...h)=>{let u=l.apply(a,h);return u===!1&&(u=c.apply(a,h)),u}}n.tokenizer=a}if(i.hooks){const a=this.defaults.hooks||new Wi;for(const o in i.hooks){if(!(o in a))throw new Error(`hook '${o}' does not exist`);if(o==="options")continue;const s=o,l=i.hooks[s],c=a[s];Wi.passThroughHooks.has(o)?a[s]=h=>{if(this.defaults.async)return Promise.resolve(l.call(a,h)).then(f=>c.call(a,f));const u=l.call(a,h);return c.call(a,u)}:a[s]=(...h)=>{let u=l.apply(a,h);return u===!1&&(u=c.apply(a,h)),u}}n.hooks=a}if(i.walkTokens){const a=this.defaults.walkTokens,o=i.walkTokens;n.walkTokens=function(s){let l=[];return l.push(o.call(this,s)),a&&(l=l.concat(a.call(this,s))),l}}this.defaults={...this.defaults,...n}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,r){return Ae.lex(t,r??this.defaults)}parser(t,r){return Le.parse(t,r??this.defaults)}}ze=new WeakSet,vp=function(t,r,i){switch(r){case"heading":return function(n){return!n.type||n.type!==r?t.apply(this,arguments):t.call(this,i.parser.parseInline(n.tokens),n.depth,ew(i.parser.parseInline(n.tokens,i.parser.textRenderer)))};case"code":return function(n){return!n.type||n.type!==r?t.apply(this,arguments):t.call(this,n.text,n.lang,!!n.escaped)};case"table":return function(n){if(!n.type||n.type!==r)return t.apply(this,arguments);let a="",o="";for(let l=0;l<n.header.length;l++)o+=this.tablecell({text:n.header[l].text,tokens:n.header[l].tokens,header:!0,align:n.align[l]});a+=this.tablerow({text:o});let s="";for(let l=0;l<n.rows.length;l++){const c=n.rows[l];o="";for(let h=0;h<c.length;h++)o+=this.tablecell({text:c[h].text,tokens:c[h].tokens,header:!1,align:n.align[h]});s+=this.tablerow({text:o})}return t.call(this,a,s)};case"blockquote":return function(n){if(!n.type||n.type!==r)return t.apply(this,arguments);const a=this.parser.parse(n.tokens);return t.call(this,a)};case"list":return function(n){if(!n.type||n.type!==r)return t.apply(this,arguments);const a=n.ordered,o=n.start,s=n.loose;let l="";for(let c=0;c<n.items.length;c++){const h=n.items[c],u=h.checked,f=h.task;let p="";if(h.task){const g=this.checkbox({checked:!!u});s?h.tokens.length>0&&h.tokens[0].type==="paragraph"?(h.tokens[0].text=g+" "+h.tokens[0].text,h.tokens[0].tokens&&h.tokens[0].tokens.length>0&&h.tokens[0].tokens[0].type==="text"&&(h.tokens[0].tokens[0].text=g+" "+h.tokens[0].tokens[0].text)):h.tokens.unshift({type:"text",text:g+" "}):p+=g+" "}p+=this.parser.parse(h.tokens,s),l+=this.listitem({type:"list_item",raw:p,text:p,task:f,checked:!!u,loose:s,tokens:h.tokens})}return t.call(this,l,a,o)};case"html":return function(n){return!n.type||n.type!==r?t.apply(this,arguments):t.call(this,n.text,n.block)};case"paragraph":return function(n){return!n.type||n.type!==r?t.apply(this,arguments):t.call(this,this.parser.parseInline(n.tokens))};case"escape":return function(n){return!n.type||n.type!==r?t.apply(this,arguments):t.call(this,n.text)};case"link":return function(n){return!n.type||n.type!==r?t.apply(this,arguments):t.call(this,n.href,n.title,this.parser.parseInline(n.tokens))};case"image":return function(n){return!n.type||n.type!==r?t.apply(this,arguments):t.call(this,n.href,n.title,n.text)};case"strong":return function(n){return!n.type||n.type!==r?t.apply(this,arguments):t.call(this,this.parser.parseInline(n.tokens))};case"em":return function(n){return!n.type||n.type!==r?t.apply(this,arguments):t.call(this,this.parser.parseInline(n.tokens))};case"codespan":return function(n){return!n.type||n.type!==r?t.apply(this,arguments):t.call(this,n.text)};case"del":return function(n){return!n.type||n.type!==r?t.apply(this,arguments):t.call(this,this.parser.parseInline(n.tokens))};case"text":return function(n){return!n.type||n.type!==r?t.apply(this,arguments):t.call(this,n.text)}}return t},Qs=function(t,r){return(i,n)=>{const a={...n},o={...this.defaults,...a};this.defaults.async===!0&&a.async===!1&&(o.silent||console.warn("marked(): The async option was set to true by an extension. The async: false option sent to parse will be ignored."),o.async=!0);const s=_i(this,ze,Sp).call(this,!!o.silent,!!o.async);if(typeof i>"u"||i===null)return s(new Error("marked(): input parameter is undefined or null"));if(typeof i!="string")return s(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(i)+", string expected"));if(o.hooks&&(o.hooks.options=o),o.async)return Promise.resolve(o.hooks?o.hooks.preprocess(i):i).then(l=>t(l,o)).then(l=>o.hooks?o.hooks.processAllTokens(l):l).then(l=>o.walkTokens?Promise.all(this.walkTokens(l,o.walkTokens)).then(()=>l):l).then(l=>r(l,o)).then(l=>o.hooks?o.hooks.postprocess(l):l).catch(s);try{o.hooks&&(i=o.hooks.preprocess(i));let l=t(i,o);o.hooks&&(l=o.hooks.processAllTokens(l)),o.walkTokens&&this.walkTokens(l,o.walkTokens);let c=r(l,o);return o.hooks&&(c=o.hooks.postprocess(c)),c}catch(l){return s(l)}}},Sp=function(t,r){return i=>{if(i.message+=`
152
+ Please report this to https://github.com/markedjs/marked.`,t){const n="<p>An error occurred:</p><pre>"+ce(i.message+"",!0)+"</pre>";return r?Promise.resolve(n):n}if(r)return Promise.reject(i);throw i}};const kr=new Ew;function dt(e,t){return kr.parse(e,t)}dt.options=dt.setOptions=function(e){return kr.setOptions(e),dt.defaults=kr.defaults,dp(dt.defaults),dt};dt.getDefaults=Uo;dt.defaults=Lr;dt.use=function(...e){return kr.use(...e),dt.defaults=kr.defaults,dp(dt.defaults),dt};dt.walkTokens=function(e,t){return kr.walkTokens(e,t)};dt.parseInline=kr.parseInline;dt.Parser=Le;dt.parser=Le.parse;dt.Renderer=ra;dt.TextRenderer=Ko;dt.Lexer=Ae;dt.lexer=Ae.lex;dt.Tokenizer=ta;dt.Hooks=Wi;dt.parse=dt;dt.options;dt.setOptions;dt.use;dt.walkTokens;dt.parseInline;Le.parse;Ae.lex;function Tp(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 n=i.reduce(function(s,l){var c=l.match(/\n([\t ]+|(?!\s).)/g);return c?s.concat(c.map(function(h){var u,f;return(f=(u=h.match(/[\t ]/g))===null||u===void 0?void 0:u.length)!==null&&f!==void 0?f:0})):s},[]);if(n.length){var a=new RegExp(`
153
+ [ ]{`.concat(Math.min.apply(Math,n),"}"),"g");i=i.map(function(s){return s.replace(a,`
154
+ `)})}i[0]=i[0].replace(/^\r?\n/,"");var o=i[0];return t.forEach(function(s,l){var c=o.match(/(?:^|\n)( *)$/),h=c?c[1]:"",u=s;typeof s=="string"&&s.includes(`
155
+ `)&&(u=String(s).split(`
156
+ `).map(function(f,p){return p===0?f:"".concat(h).concat(f)}).join(`
157
+ `)),o+=u+i[l+1]}),o}function Ap(e,{markdownAutoWrap:t}){const i=e.replace(/<br\/>/g,`
158
+ `).replace(/\n{2,}/g,`
159
+ `),n=Tp(i);return t===!1?n.replace(/ /g,"&nbsp;"):n}d(Ap,"preprocessMarkdown");function Lp(e,t={}){const r=Ap(e,t),i=dt.lexer(r),n=[[]];let a=0;function o(s,l="normal"){s.type==="text"?s.text.split(`
160
+ `).forEach((h,u)=>{u!==0&&(a++,n.push([])),h.split(" ").forEach(f=>{f=f.replace(/&#39;/g,"'"),f&&n[a].push({content:f,type:l})})}):s.type==="strong"||s.type==="em"?s.tokens.forEach(c=>{o(c,s.type)}):s.type==="html"&&n[a].push({content:s.text,type:"normal"})}return d(o,"processNode"),i.forEach(s=>{var l;s.type==="paragraph"?(l=s.tokens)==null||l.forEach(c=>{o(c)}):s.type==="html"&&n[a].push({content:s.text,type:"normal"})}),n}d(Lp,"markdownToLines");function Bp(e,{markdownAutoWrap:t}={}){const r=dt.lexer(e);function i(n){var a,o,s;return n.type==="text"?t===!1?n.text.replace(/\n */g,"<br/>").replace(/ /g,"&nbsp;"):n.text.replace(/\n */g,"<br/>"):n.type==="strong"?`<strong>${(a=n.tokens)==null?void 0:a.map(i).join("")}</strong>`:n.type==="em"?`<em>${(o=n.tokens)==null?void 0:o.map(i).join("")}</em>`:n.type==="paragraph"?`<p>${(s=n.tokens)==null?void 0:s.map(i).join("")}</p>`:n.type==="space"?"":n.type==="html"?`${n.text}`:n.type==="escape"?n.text:`Unsupported markdown: ${n.type}`}return d(i,"output"),r.map(i).join("")}d(Bp,"markdownToHTML");function Mp(e){return Intl.Segmenter?[...new Intl.Segmenter().segment(e)].map(t=>t.segment):[...e]}d(Mp,"splitTextToChars");function Ep(e,t){const r=Mp(t.content);return Qo(e,[],r,t.type)}d(Ep,"splitWordToFitWidth");function Qo(e,t,r,i){if(r.length===0)return[{content:t.join(""),type:i},{content:"",type:i}];const[n,...a]=r,o=[...t,n];return e([{content:o.join(""),type:i}])?Qo(e,o,a,i):(t.length===0&&n&&(t.push(n),r.shift()),[{content:t.join(""),type:i},{content:r.join(""),type:i}])}d(Qo,"splitWordToFitWidthRecursion");function Fp(e,t){if(e.some(({content:r})=>r.includes(`
161
+ `)))throw new Error("splitLineToFitWidth does not support newlines in the line");return ia(e,t)}d(Fp,"splitLineToFitWidth");function ia(e,t,r=[],i=[]){if(e.length===0)return i.length>0&&r.push(i),r.length>0?r:[];let n="";e[0].content===" "&&(n=" ",e.shift());const a=e.shift()??{content:" ",type:"normal"},o=[...i];if(n!==""&&o.push({content:n,type:"normal"}),o.push(a),t(o))return ia(e,t,r,o);if(i.length>0)r.push(i),e.unshift(a);else if(a.content){const[s,l]=Ep(t,a);r.push([s]),l.content&&e.unshift(l)}return ia(e,t,r)}d(ia,"splitLineToFitWidthRecursion");function Js(e,t){t&&e.attr("style",t)}d(Js,"applyStyle");async function $p(e,t,r,i,n=!1){const a=e.append("foreignObject");a.attr("width",`${10*r}px`),a.attr("height",`${10*r}px`);const o=a.append("xhtml:div");let s=t.label;t.label&&ri(t.label)&&(s=await yo(t.label.replace(li.lineBreakRegex,`
162
+ `),pt()));const l=t.isNode?"nodeLabel":"edgeLabel",c=o.append("span");c.html(s),Js(c,t.labelStyle),c.attr("class",`${l} ${i}`),Js(o,t.labelStyle),o.style("display","table-cell"),o.style("white-space","nowrap"),o.style("line-height","1.5"),o.style("max-width",r+"px"),o.style("text-align","center"),o.attr("xmlns","http://www.w3.org/1999/xhtml"),n&&o.attr("class","labelBkg");let h=o.node().getBoundingClientRect();return h.width===r&&(o.style("display","table"),o.style("white-space","break-spaces"),o.style("width",r+"px"),h=o.node().getBoundingClientRect()),a.node()}d($p,"addHtmlSpan");function Ta(e,t,r){return e.append("tspan").attr("class","text-outer-tspan").attr("x",0).attr("y",t*r-.1+"em").attr("dy",r+"em")}d(Ta,"createTspan");function Dp(e,t,r){const i=e.append("text"),n=Ta(i,1,t);Aa(n,r);const a=n.node().getComputedTextLength();return i.remove(),a}d(Dp,"computeWidthOfText");function Fw(e,t,r){var o;const i=e.append("text"),n=Ta(i,1,t);Aa(n,[{content:r,type:"normal"}]);const a=(o=n.node())==null?void 0:o.getBoundingClientRect();return a&&i.remove(),a}d(Fw,"computeDimensionOfText");function Op(e,t,r,i=!1){const a=t.append("g"),o=a.insert("rect").attr("class","background").attr("style","stroke: none"),s=a.append("text").attr("y","-10.1");let l=0;for(const c of r){const h=d(f=>Dp(a,1.1,f)<=e,"checkWidth"),u=h(c)?[c]:Fp(c,h);for(const f of u){const p=Ta(s,l,1.1);Aa(p,f),l++}}if(i){const c=s.node().getBBox(),h=2;return o.attr("x",c.x-h).attr("y",c.y-h).attr("width",c.width+2*h).attr("height",c.height+2*h),a.node()}else return s.node()}d(Op,"createFormattedText");function Aa(e,t){e.text(""),t.forEach((r,i)=>{const n=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?n.text(r.content):n.text(" "+r.content)})}d(Aa,"updateTextContentAndStyles");function Rp(e){return e.replace(/fa[bklrs]?:fa-[\w-]+/g,t=>`<i class='${t.replace(":"," ")}'></i>`)}d(Rp,"replaceIconSubstring");var fi=d(async(e,t="",{style:r="",isTitle:i=!1,classes:n="",useHtmlLabels:a=!0,isNode:o=!0,width:s=200,addSvgBackground:l=!1}={},c)=>{if(P.debug("XYZ createText",t,r,i,n,a,o,"addSvgBackground: ",l),a){const h=Bp(t,c),u=Rp(ui(h)),f=t.replace(/\\\\/g,"\\"),p={isNode:o,label:ri(t)?f:u,labelStyle:r.replace("fill:","color:")};return await $p(e,p,s,n,l)}else{const h=t.replace(/<br\s*\/?>/g,"<br/>"),u=Lp(h.replace("<br>","<br/>"),c),f=Op(s,e,u,t?l:!1);if(o){/stroke:/.exec(r)&&(r=r.replace("stroke:","lineColor:"));const p=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");ft(f).attr("style",p)}else{const p=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/background:/g,"fill:");ft(f).select("rect").attr("style",p.replace(/background:/g,"fill:"));const g=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");ft(f).select("text").attr("style",g)}return f}},"createText");function ys(e,t,r){if(e&&e.length){const[i,n]=t,a=Math.PI/180*r,o=Math.cos(a),s=Math.sin(a);for(const l of e){const[c,h]=l;l[0]=(c-i)*o-(h-n)*s+i,l[1]=(c-i)*s+(h-n)*o+n}}}function $w(e,t){return e[0]===t[0]&&e[1]===t[1]}function Dw(e,t,r,i=1){const n=r,a=Math.max(t,.1),o=e[0]&&e[0][0]&&typeof e[0][0]=="number"?[e]:e,s=[0,0];if(n)for(const c of o)ys(c,s,n);const l=function(c,h,u){const f=[];for(const _ of c){const C=[..._];$w(C[0],C[C.length-1])||C.push([C[0][0],C[0][1]]),C.length>2&&f.push(C)}const p=[];h=Math.max(h,.1);const g=[];for(const _ of f)for(let C=0;C<_.length-1;C++){const k=_[C],v=_[C+1];if(k[1]!==v[1]){const F=Math.min(k[1],v[1]);g.push({ymin:F,ymax:Math.max(k[1],v[1]),x:F===k[1]?k[0]:v[0],islope:(v[0]-k[0])/(v[1]-k[1])})}}if(g.sort((_,C)=>_.ymin<C.ymin?-1:_.ymin>C.ymin?1:_.x<C.x?-1:_.x>C.x?1:_.ymax===C.ymax?0:(_.ymax-C.ymax)/Math.abs(_.ymax-C.ymax)),!g.length)return p;let m=[],x=g[0].ymin,y=0;for(;m.length||g.length;){if(g.length){let _=-1;for(let C=0;C<g.length&&!(g[C].ymin>x);C++)_=C;g.splice(0,_+1).forEach(C=>{m.push({s:x,edge:C})})}if(m=m.filter(_=>!(_.edge.ymax<=x)),m.sort((_,C)=>_.edge.x===C.edge.x?0:(_.edge.x-C.edge.x)/Math.abs(_.edge.x-C.edge.x)),(u!==1||y%h==0)&&m.length>1)for(let _=0;_<m.length;_+=2){const C=_+1;if(C>=m.length)break;const k=m[_].edge,v=m[C].edge;p.push([[Math.round(k.x),x],[Math.round(v.x),x]])}x+=u,m.forEach(_=>{_.edge.x=_.edge.x+u*_.edge.islope}),y++}return p}(o,a,i);if(n){for(const c of o)ys(c,s,-n);(function(c,h,u){const f=[];c.forEach(p=>f.push(...p)),ys(f,h,u)})(l,s,-n)}return l}function on(e,t){var r;const i=t.hachureAngle+90;let n=t.hachureGap;n<0&&(n=4*t.strokeWidth),n=Math.round(Math.max(n,.1));let a=1;return t.roughness>=1&&(((r=t.randomizer)===null||r===void 0?void 0:r.next())||Math.random())>.7&&(a=n),Dw(e,n,i,a||1)}class Jo{constructor(t){this.helper=t}fillPolygons(t,r){return this._fillPolygons(t,r)}_fillPolygons(t,r){const i=on(t,r);return{type:"fillSketch",ops:this.renderLines(i,r)}}renderLines(t,r){const i=[];for(const n of t)i.push(...this.helper.doubleLineOps(n[0][0],n[0][1],n[1][0],n[1][1],r));return i}}function La(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 Ow extends Jo{fillPolygons(t,r){let i=r.hachureGap;i<0&&(i=4*r.strokeWidth),i=Math.max(i,.1);const n=on(t,Object.assign({},r,{hachureGap:i})),a=Math.PI/180*r.hachureAngle,o=[],s=.5*i*Math.cos(a),l=.5*i*Math.sin(a);for(const[c,h]of n)La([c,h])&&o.push([[c[0]-s,c[1]+l],[...h]],[[c[0]+s,c[1]-l],[...h]]);return{type:"fillSketch",ops:this.renderLines(o,r)}}}class Rw extends Jo{fillPolygons(t,r){const i=this._fillPolygons(t,r),n=Object.assign({},r,{hachureAngle:r.hachureAngle+90}),a=this._fillPolygons(t,n);return i.ops=i.ops.concat(a.ops),i}}class Iw{constructor(t){this.helper=t}fillPolygons(t,r){const i=on(t,r=Object.assign({},r,{hachureAngle:0}));return this.dotsOnLines(i,r)}dotsOnLines(t,r){const i=[];let n=r.hachureGap;n<0&&(n=4*r.strokeWidth),n=Math.max(n,.1);let a=r.fillWeight;a<0&&(a=r.strokeWidth/2);const o=n/4;for(const s of t){const l=La(s),c=l/n,h=Math.ceil(c)-1,u=l-h*n,f=(s[0][0]+s[1][0])/2-n/4,p=Math.min(s[0][1],s[1][1]);for(let g=0;g<h;g++){const m=p+u+g*n,x=f-o+2*Math.random()*o,y=m-o+2*Math.random()*o,_=this.helper.ellipse(x,y,a,a,r);i.push(..._.ops)}}return{type:"fillSketch",ops:i}}}class Pw{constructor(t){this.helper=t}fillPolygons(t,r){const i=on(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,n=r.dashGap<0?r.hachureGap<0?4*r.strokeWidth:r.hachureGap:r.dashGap,a=[];return t.forEach(o=>{const s=La(o),l=Math.floor(s/(i+n)),c=(s+n-l*(i+n))/2;let h=o[0],u=o[1];h[0]>u[0]&&(h=o[1],u=o[0]);const f=Math.atan((u[1]-h[1])/(u[0]-h[0]));for(let p=0;p<l;p++){const g=p*(i+n),m=g+i,x=[h[0]+g*Math.cos(f)+c*Math.cos(f),h[1]+g*Math.sin(f)+c*Math.sin(f)],y=[h[0]+m*Math.cos(f)+c*Math.cos(f),h[1]+m*Math.sin(f)+c*Math.sin(f)];a.push(...this.helper.doubleLineOps(x[0],x[1],y[0],y[1],r))}}),a}}class Nw{constructor(t){this.helper=t}fillPolygons(t,r){const i=r.hachureGap<0?4*r.strokeWidth:r.hachureGap,n=r.zigzagOffset<0?i:r.zigzagOffset,a=on(t,r=Object.assign({},r,{hachureGap:i+n}));return{type:"fillSketch",ops:this.zigzagLines(a,n,r)}}zigzagLines(t,r,i){const n=[];return t.forEach(a=>{const o=La(a),s=Math.round(o/(2*r));let l=a[0],c=a[1];l[0]>c[0]&&(l=a[1],c=a[0]);const h=Math.atan((c[1]-l[1])/(c[0]-l[0]));for(let u=0;u<s;u++){const f=2*u*r,p=2*(u+1)*r,g=Math.sqrt(2*Math.pow(r,2)),m=[l[0]+f*Math.cos(h),l[1]+f*Math.sin(h)],x=[l[0]+p*Math.cos(h),l[1]+p*Math.sin(h)],y=[m[0]+g*Math.cos(h+Math.PI/4),m[1]+g*Math.sin(h+Math.PI/4)];n.push(...this.helper.doubleLineOps(m[0],m[1],y[0],y[1],i),...this.helper.doubleLineOps(y[0],y[1],x[0],x[1],i))}}),n}}const te={};class zw{constructor(t){this.seed=t}next(){return this.seed?(2**31-1&(this.seed=Math.imul(48271,this.seed)))/2**31:Math.random()}}const qw=0,xs=1,Dc=2,Cn={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 bs(e,t){return e.type===t}function tl(e){const t=[],r=function(o){const s=new Array;for(;o!=="";)if(o.match(/^([ \t\r\n,]+)/))o=o.substr(RegExp.$1.length);else if(o.match(/^([aAcChHlLmMqQsStTvVzZ])/))s[s.length]={type:qw,text:RegExp.$1},o=o.substr(RegExp.$1.length);else{if(!o.match(/^(([-+]?[0-9]+(\.[0-9]*)?|[-+]?\.[0-9]+)([eE][-+]?[0-9]+)?)/))return[];s[s.length]={type:xs,text:`${parseFloat(RegExp.$1)}`},o=o.substr(RegExp.$1.length)}return s[s.length]={type:Dc,text:""},s}(e);let i="BOD",n=0,a=r[n];for(;!bs(a,Dc);){let o=0;const s=[];if(i==="BOD"){if(a.text!=="M"&&a.text!=="m")return tl("M0,0"+e);n++,o=Cn[a.text],i=a.text}else bs(a,xs)?o=Cn[i]:(n++,o=Cn[a.text],i=a.text);if(!(n+o<r.length))throw new Error("Path data ended short");for(let l=n;l<n+o;l++){const c=r[l];if(!bs(c,xs))throw new Error("Param not a number: "+i+","+c.text);s[s.length]=+c.text}if(typeof Cn[i]!="number")throw new Error("Bad segment: "+i);{const l={key:i,data:s};t.push(l),n+=o,a=r[n],i==="M"&&(i="L"),i==="m"&&(i="l")}}return t}function Ip(e){let t=0,r=0,i=0,n=0;const a=[];for(const{key:o,data:s}of e)switch(o){case"M":a.push({key:"M",data:[...s]}),[t,r]=s,[i,n]=s;break;case"m":t+=s[0],r+=s[1],a.push({key:"M",data:[t,r]}),i=t,n=r;break;case"L":a.push({key:"L",data:[...s]}),[t,r]=s;break;case"l":t+=s[0],r+=s[1],a.push({key:"L",data:[t,r]});break;case"C":a.push({key:"C",data:[...s]}),t=s[4],r=s[5];break;case"c":{const l=s.map((c,h)=>h%2?c+r:c+t);a.push({key:"C",data:l}),t=l[4],r=l[5];break}case"Q":a.push({key:"Q",data:[...s]}),t=s[2],r=s[3];break;case"q":{const l=s.map((c,h)=>h%2?c+r:c+t);a.push({key:"Q",data:l}),t=l[2],r=l[3];break}case"A":a.push({key:"A",data:[...s]}),t=s[5],r=s[6];break;case"a":t+=s[5],r+=s[6],a.push({key:"A",data:[s[0],s[1],s[2],s[3],s[4],t,r]});break;case"H":a.push({key:"H",data:[...s]}),t=s[0];break;case"h":t+=s[0],a.push({key:"H",data:[t]});break;case"V":a.push({key:"V",data:[...s]}),r=s[0];break;case"v":r+=s[0],a.push({key:"V",data:[r]});break;case"S":a.push({key:"S",data:[...s]}),t=s[2],r=s[3];break;case"s":{const l=s.map((c,h)=>h%2?c+r:c+t);a.push({key:"S",data:l}),t=l[2],r=l[3];break}case"T":a.push({key:"T",data:[...s]}),t=s[0],r=s[1];break;case"t":t+=s[0],r+=s[1],a.push({key:"T",data:[t,r]});break;case"Z":case"z":a.push({key:"Z",data:[]}),t=i,r=n}return a}function Pp(e){const t=[];let r="",i=0,n=0,a=0,o=0,s=0,l=0;for(const{key:c,data:h}of e){switch(c){case"M":t.push({key:"M",data:[...h]}),[i,n]=h,[a,o]=h;break;case"C":t.push({key:"C",data:[...h]}),i=h[4],n=h[5],s=h[2],l=h[3];break;case"L":t.push({key:"L",data:[...h]}),[i,n]=h;break;case"H":i=h[0],t.push({key:"L",data:[i,n]});break;case"V":n=h[0],t.push({key:"L",data:[i,n]});break;case"S":{let u=0,f=0;r==="C"||r==="S"?(u=i+(i-s),f=n+(n-l)):(u=i,f=n),t.push({key:"C",data:[u,f,...h]}),s=h[0],l=h[1],i=h[2],n=h[3];break}case"T":{const[u,f]=h;let p=0,g=0;r==="Q"||r==="T"?(p=i+(i-s),g=n+(n-l)):(p=i,g=n);const m=i+2*(p-i)/3,x=n+2*(g-n)/3,y=u+2*(p-u)/3,_=f+2*(g-f)/3;t.push({key:"C",data:[m,x,y,_,u,f]}),s=p,l=g,i=u,n=f;break}case"Q":{const[u,f,p,g]=h,m=i+2*(u-i)/3,x=n+2*(f-n)/3,y=p+2*(u-p)/3,_=g+2*(f-g)/3;t.push({key:"C",data:[m,x,y,_,p,g]}),s=u,l=f,i=p,n=g;break}case"A":{const u=Math.abs(h[0]),f=Math.abs(h[1]),p=h[2],g=h[3],m=h[4],x=h[5],y=h[6];u===0||f===0?(t.push({key:"C",data:[i,n,x,y,x,y]}),i=x,n=y):(i!==x||n!==y)&&(Np(i,n,x,y,u,f,p,g,m).forEach(function(_){t.push({key:"C",data:_})}),i=x,n=y);break}case"Z":t.push({key:"Z",data:[]}),i=a,n=o}r=c}return t}function Li(e,t,r){return[e*Math.cos(r)-t*Math.sin(r),e*Math.sin(r)+t*Math.cos(r)]}function Np(e,t,r,i,n,a,o,s,l,c){const h=(u=o,Math.PI*u/180);var u;let f=[],p=0,g=0,m=0,x=0;if(c)[p,g,m,x]=c;else{[e,t]=Li(e,t,-h),[r,i]=Li(r,i,-h);const O=(e-r)/2,A=(t-i)/2;let L=O*O/(n*n)+A*A/(a*a);L>1&&(L=Math.sqrt(L),n*=L,a*=L);const T=n*n,D=a*a,B=T*D-T*A*A-D*O*O,j=T*A*A+D*O*O,U=(s===l?-1:1)*Math.sqrt(Math.abs(B/j));m=U*n*A/a+(e+r)/2,x=U*-a*O/n+(t+i)/2,p=Math.asin(parseFloat(((t-x)/a).toFixed(9))),g=Math.asin(parseFloat(((i-x)/a).toFixed(9))),e<m&&(p=Math.PI-p),r<m&&(g=Math.PI-g),p<0&&(p=2*Math.PI+p),g<0&&(g=2*Math.PI+g),l&&p>g&&(p-=2*Math.PI),!l&&g>p&&(g-=2*Math.PI)}let y=g-p;if(Math.abs(y)>120*Math.PI/180){const O=g,A=r,L=i;g=l&&g>p?p+120*Math.PI/180*1:p+120*Math.PI/180*-1,f=Np(r=m+n*Math.cos(g),i=x+a*Math.sin(g),A,L,n,a,o,0,l,[g,O,m,x])}y=g-p;const _=Math.cos(p),C=Math.sin(p),k=Math.cos(g),v=Math.sin(g),F=Math.tan(y/4),M=4/3*n*F,$=4/3*a*F,H=[e,t],z=[e+M*C,t-$*_],E=[r+M*v,i-$*k],q=[r,i];if(z[0]=2*H[0]-z[0],z[1]=2*H[1]-z[1],c)return[z,E,q].concat(f);{f=[z,E,q].concat(f);const O=[];for(let A=0;A<f.length;A+=3){const L=Li(f[A][0],f[A][1],h),T=Li(f[A+1][0],f[A+1][1],h),D=Li(f[A+2][0],f[A+2][1],h);O.push([L[0],L[1],T[0],T[1],D[0],D[1]])}return O}}const Ww={randOffset:function(e,t){return et(e,t)},randOffsetWithRange:function(e,t,r){return na(e,t,r)},ellipse:function(e,t,r,i,n){const a=qp(r,i,n);return to(e,t,n,a).opset},doubleLineOps:function(e,t,r,i,n){return tr(e,t,r,i,n,!0)}};function zp(e,t,r,i,n){return{type:"path",ops:tr(e,t,r,i,n)}}function Mn(e,t,r){const i=(e||[]).length;if(i>2){const n=[];for(let a=0;a<i-1;a++)n.push(...tr(e[a][0],e[a][1],e[a+1][0],e[a+1][1],r));return t&&n.push(...tr(e[i-1][0],e[i-1][1],e[0][0],e[0][1],r)),{type:"path",ops:n}}return i===2?zp(e[0][0],e[0][1],e[1][0],e[1][1],r):{type:"path",ops:[]}}function Hw(e,t,r,i,n){return function(a,o){return Mn(a,!0,o)}([[e,t],[e+r,t],[e+r,t+i],[e,t+i]],n)}function Oc(e,t){if(e.length){const r=typeof e[0][0]=="number"?[e]:e,i=wn(r[0],1*(1+.2*t.roughness),t),n=t.disableMultiStroke?[]:wn(r[0],1.5*(1+.22*t.roughness),Pc(t));for(let a=1;a<r.length;a++){const o=r[a];if(o.length){const s=wn(o,1*(1+.2*t.roughness),t),l=t.disableMultiStroke?[]:wn(o,1.5*(1+.22*t.roughness),Pc(t));for(const c of s)c.op!=="move"&&i.push(c);for(const c of l)c.op!=="move"&&n.push(c)}}return{type:"path",ops:i.concat(n)}}return{type:"path",ops:[]}}function qp(e,t,r){const i=Math.sqrt(2*Math.PI*Math.sqrt((Math.pow(e/2,2)+Math.pow(t/2,2))/2)),n=Math.ceil(Math.max(r.curveStepCount,r.curveStepCount/Math.sqrt(200)*i)),a=2*Math.PI/n;let o=Math.abs(e/2),s=Math.abs(t/2);const l=1-r.curveFitting;return o+=et(o*l,r),s+=et(s*l,r),{increment:a,rx:o,ry:s}}function to(e,t,r,i){const[n,a]=Nc(i.increment,e,t,i.rx,i.ry,1,i.increment*na(.1,na(.4,1,r),r),r);let o=aa(n,null,r);if(!r.disableMultiStroke&&r.roughness!==0){const[s]=Nc(i.increment,e,t,i.rx,i.ry,1.5,0,r),l=aa(s,null,r);o=o.concat(l)}return{estimatedPoints:a,opset:{type:"path",ops:o}}}function Rc(e,t,r,i,n,a,o,s,l){const c=e,h=t;let u=Math.abs(r/2),f=Math.abs(i/2);u+=et(.01*u,l),f+=et(.01*f,l);let p=n,g=a;for(;p<0;)p+=2*Math.PI,g+=2*Math.PI;g-p>2*Math.PI&&(p=0,g=2*Math.PI);const m=2*Math.PI/l.curveStepCount,x=Math.min(m/2,(g-p)/2),y=zc(x,c,h,u,f,p,g,1,l);if(!l.disableMultiStroke){const _=zc(x,c,h,u,f,p,g,1.5,l);y.push(..._)}return o&&(s?y.push(...tr(c,h,c+u*Math.cos(p),h+f*Math.sin(p),l),...tr(c,h,c+u*Math.cos(g),h+f*Math.sin(g),l)):y.push({op:"lineTo",data:[c,h]},{op:"lineTo",data:[c+u*Math.cos(p),h+f*Math.sin(p)]})),{type:"path",ops:y}}function Ic(e,t){const r=Pp(Ip(tl(e))),i=[];let n=[0,0],a=[0,0];for(const{key:o,data:s}of r)switch(o){case"M":a=[s[0],s[1]],n=[s[0],s[1]];break;case"L":i.push(...tr(a[0],a[1],s[0],s[1],t)),a=[s[0],s[1]];break;case"C":{const[l,c,h,u,f,p]=s;i.push(...jw(l,c,h,u,f,p,a,t)),a=[f,p];break}case"Z":i.push(...tr(a[0],a[1],n[0],n[1],t)),a=[n[0],n[1]]}return{type:"path",ops:i}}function _s(e,t){const r=[];for(const i of e)if(i.length){const n=t.maxRandomnessOffset||0,a=i.length;if(a>2){r.push({op:"move",data:[i[0][0]+et(n,t),i[0][1]+et(n,t)]});for(let o=1;o<a;o++)r.push({op:"lineTo",data:[i[o][0]+et(n,t),i[o][1]+et(n,t)]})}}return{type:"fillPath",ops:r}}function Rr(e,t){return function(r,i){let n=r.fillStyle||"hachure";if(!te[n])switch(n){case"zigzag":te[n]||(te[n]=new Ow(i));break;case"cross-hatch":te[n]||(te[n]=new Rw(i));break;case"dots":te[n]||(te[n]=new Iw(i));break;case"dashed":te[n]||(te[n]=new Pw(i));break;case"zigzag-line":te[n]||(te[n]=new Nw(i));break;default:n="hachure",te[n]||(te[n]=new Jo(i))}return te[n]}(t,Ww).fillPolygons(e,t)}function Pc(e){const t=Object.assign({},e);return t.randomizer=void 0,e.seed&&(t.seed=e.seed+1),t}function Wp(e){return e.randomizer||(e.randomizer=new zw(e.seed||0)),e.randomizer.next()}function na(e,t,r,i=1){return r.roughness*i*(Wp(r)*(t-e)+e)}function et(e,t,r=1){return na(-e,e,t,r)}function tr(e,t,r,i,n,a=!1){const o=a?n.disableMultiStrokeFill:n.disableMultiStroke,s=eo(e,t,r,i,n,!0,!1);if(o)return s;const l=eo(e,t,r,i,n,!0,!0);return s.concat(l)}function eo(e,t,r,i,n,a,o){const s=Math.pow(e-r,2)+Math.pow(t-i,2),l=Math.sqrt(s);let c=1;c=l<200?1:l>500?.4:-.0016668*l+1.233334;let h=n.maxRandomnessOffset||0;h*h*100>s&&(h=l/10);const u=h/2,f=.2+.2*Wp(n);let p=n.bowing*n.maxRandomnessOffset*(i-t)/200,g=n.bowing*n.maxRandomnessOffset*(e-r)/200;p=et(p,n,c),g=et(g,n,c);const m=[],x=()=>et(u,n,c),y=()=>et(h,n,c),_=n.preserveVertices;return o?m.push({op:"move",data:[e+(_?0:x()),t+(_?0:x())]}):m.push({op:"move",data:[e+(_?0:et(h,n,c)),t+(_?0:et(h,n,c))]}),o?m.push({op:"bcurveTo",data:[p+e+(r-e)*f+x(),g+t+(i-t)*f+x(),p+e+2*(r-e)*f+x(),g+t+2*(i-t)*f+x(),r+(_?0:x()),i+(_?0:x())]}):m.push({op:"bcurveTo",data:[p+e+(r-e)*f+y(),g+t+(i-t)*f+y(),p+e+2*(r-e)*f+y(),g+t+2*(i-t)*f+y(),r+(_?0:y()),i+(_?0:y())]}),m}function wn(e,t,r){if(!e.length)return[];const i=[];i.push([e[0][0]+et(t,r),e[0][1]+et(t,r)]),i.push([e[0][0]+et(t,r),e[0][1]+et(t,r)]);for(let n=1;n<e.length;n++)i.push([e[n][0]+et(t,r),e[n][1]+et(t,r)]),n===e.length-1&&i.push([e[n][0]+et(t,r),e[n][1]+et(t,r)]);return aa(i,null,r)}function aa(e,t,r){const i=e.length,n=[];if(i>3){const a=[],o=1-r.curveTightness;n.push({op:"move",data:[e[1][0],e[1][1]]});for(let s=1;s+2<i;s++){const l=e[s];a[0]=[l[0],l[1]],a[1]=[l[0]+(o*e[s+1][0]-o*e[s-1][0])/6,l[1]+(o*e[s+1][1]-o*e[s-1][1])/6],a[2]=[e[s+1][0]+(o*e[s][0]-o*e[s+2][0])/6,e[s+1][1]+(o*e[s][1]-o*e[s+2][1])/6],a[3]=[e[s+1][0],e[s+1][1]],n.push({op:"bcurveTo",data:[a[1][0],a[1][1],a[2][0],a[2][1],a[3][0],a[3][1]]})}}else i===3?(n.push({op:"move",data:[e[1][0],e[1][1]]}),n.push({op:"bcurveTo",data:[e[1][0],e[1][1],e[2][0],e[2][1],e[2][0],e[2][1]]})):i===2&&n.push(...eo(e[0][0],e[0][1],e[1][0],e[1][1],r,!0,!0));return n}function Nc(e,t,r,i,n,a,o,s){const l=[],c=[];if(s.roughness===0){e/=4,c.push([t+i*Math.cos(-e),r+n*Math.sin(-e)]);for(let h=0;h<=2*Math.PI;h+=e){const u=[t+i*Math.cos(h),r+n*Math.sin(h)];l.push(u),c.push(u)}c.push([t+i*Math.cos(0),r+n*Math.sin(0)]),c.push([t+i*Math.cos(e),r+n*Math.sin(e)])}else{const h=et(.5,s)-Math.PI/2;c.push([et(a,s)+t+.9*i*Math.cos(h-e),et(a,s)+r+.9*n*Math.sin(h-e)]);const u=2*Math.PI+h-.01;for(let f=h;f<u;f+=e){const p=[et(a,s)+t+i*Math.cos(f),et(a,s)+r+n*Math.sin(f)];l.push(p),c.push(p)}c.push([et(a,s)+t+i*Math.cos(h+2*Math.PI+.5*o),et(a,s)+r+n*Math.sin(h+2*Math.PI+.5*o)]),c.push([et(a,s)+t+.98*i*Math.cos(h+o),et(a,s)+r+.98*n*Math.sin(h+o)]),c.push([et(a,s)+t+.9*i*Math.cos(h+.5*o),et(a,s)+r+.9*n*Math.sin(h+.5*o)])}return[c,l]}function zc(e,t,r,i,n,a,o,s,l){const c=a+et(.1,l),h=[];h.push([et(s,l)+t+.9*i*Math.cos(c-e),et(s,l)+r+.9*n*Math.sin(c-e)]);for(let u=c;u<=o;u+=e)h.push([et(s,l)+t+i*Math.cos(u),et(s,l)+r+n*Math.sin(u)]);return h.push([t+i*Math.cos(o),r+n*Math.sin(o)]),h.push([t+i*Math.cos(o),r+n*Math.sin(o)]),aa(h,null,l)}function jw(e,t,r,i,n,a,o,s){const l=[],c=[s.maxRandomnessOffset||1,(s.maxRandomnessOffset||1)+.3];let h=[0,0];const u=s.disableMultiStroke?1:2,f=s.preserveVertices;for(let p=0;p<u;p++)p===0?l.push({op:"move",data:[o[0],o[1]]}):l.push({op:"move",data:[o[0]+(f?0:et(c[0],s)),o[1]+(f?0:et(c[0],s))]}),h=f?[n,a]:[n+et(c[p],s),a+et(c[p],s)],l.push({op:"bcurveTo",data:[e+et(c[p],s),t+et(c[p],s),r+et(c[p],s),i+et(c[p],s),h[0],h[1]]});return l}function Bi(e){return[...e]}function qc(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(Bi(e[0]),Bi(e[1]),Bi(e[2]),Bi(e[2]));else{const n=[];n.push(e[0],e[0]);for(let s=1;s<e.length;s++)n.push(e[s]),s===e.length-1&&n.push(e[s]);const a=[],o=1-t;i.push(Bi(n[0]));for(let s=1;s+2<n.length;s++){const l=n[s];a[0]=[l[0],l[1]],a[1]=[l[0]+(o*n[s+1][0]-o*n[s-1][0])/6,l[1]+(o*n[s+1][1]-o*n[s-1][1])/6],a[2]=[n[s+1][0]+(o*n[s][0]-o*n[s+2][0])/6,n[s+1][1]+(o*n[s][1]-o*n[s+2][1])/6],a[3]=[n[s+1][0],n[s+1][1]],i.push(a[1],a[2],a[3])}}return i}function En(e,t){return Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2)}function Uw(e,t,r){const i=En(t,r);if(i===0)return En(e,t);let n=((e[0]-t[0])*(r[0]-t[0])+(e[1]-t[1])*(r[1]-t[1]))/i;return n=Math.max(0,Math.min(1,n)),En(e,pr(t,r,n))}function pr(e,t,r){return[e[0]+(t[0]-e[0])*r,e[1]+(t[1]-e[1])*r]}function ro(e,t,r,i){const n=i||[];if(function(s,l){const c=s[l+0],h=s[l+1],u=s[l+2],f=s[l+3];let p=3*h[0]-2*c[0]-f[0];p*=p;let g=3*h[1]-2*c[1]-f[1];g*=g;let m=3*u[0]-2*f[0]-c[0];m*=m;let x=3*u[1]-2*f[1]-c[1];return x*=x,p<m&&(p=m),g<x&&(g=x),p+g}(e,t)<r){const s=e[t+0];n.length?(a=n[n.length-1],o=s,Math.sqrt(En(a,o))>1&&n.push(s)):n.push(s),n.push(e[t+3])}else{const l=e[t+0],c=e[t+1],h=e[t+2],u=e[t+3],f=pr(l,c,.5),p=pr(c,h,.5),g=pr(h,u,.5),m=pr(f,p,.5),x=pr(p,g,.5),y=pr(m,x,.5);ro([l,f,m,y],0,r,n),ro([y,x,g,u],0,r,n)}var a,o;return n}function Yw(e,t){return sa(e,0,e.length,t)}function sa(e,t,r,i,n){const a=n||[],o=e[t],s=e[r-1];let l=0,c=1;for(let h=t+1;h<r-1;++h){const u=Uw(e[h],o,s);u>l&&(l=u,c=h)}return Math.sqrt(l)>i?(sa(e,t,c+1,i,a),sa(e,c,r,i,a)):(a.length||a.push(o),a.push(s)),a}function Cs(e,t=.15,r){const i=[],n=(e.length-1)/3;for(let a=0;a<n;a++)ro(e,3*a,t,i);return r&&r>0?sa(i,0,i.length,r):i}const oe="none";class oa{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,n,a){const o=this._o(a);return this._d("line",[zp(t,r,i,n,o)],o)}rectangle(t,r,i,n,a){const o=this._o(a),s=[],l=Hw(t,r,i,n,o);if(o.fill){const c=[[t,r],[t+i,r],[t+i,r+n],[t,r+n]];o.fillStyle==="solid"?s.push(_s([c],o)):s.push(Rr([c],o))}return o.stroke!==oe&&s.push(l),this._d("rectangle",s,o)}ellipse(t,r,i,n,a){const o=this._o(a),s=[],l=qp(i,n,o),c=to(t,r,o,l);if(o.fill)if(o.fillStyle==="solid"){const h=to(t,r,o,l).opset;h.type="fillPath",s.push(h)}else s.push(Rr([c.estimatedPoints],o));return o.stroke!==oe&&s.push(c.opset),this._d("ellipse",s,o)}circle(t,r,i,n){const a=this.ellipse(t,r,i,i,n);return a.shape="circle",a}linearPath(t,r){const i=this._o(r);return this._d("linearPath",[Mn(t,!1,i)],i)}arc(t,r,i,n,a,o,s=!1,l){const c=this._o(l),h=[],u=Rc(t,r,i,n,a,o,s,!0,c);if(s&&c.fill)if(c.fillStyle==="solid"){const f=Object.assign({},c);f.disableMultiStroke=!0;const p=Rc(t,r,i,n,a,o,!0,!1,f);p.type="fillPath",h.push(p)}else h.push(function(f,p,g,m,x,y,_){const C=f,k=p;let v=Math.abs(g/2),F=Math.abs(m/2);v+=et(.01*v,_),F+=et(.01*F,_);let M=x,$=y;for(;M<0;)M+=2*Math.PI,$+=2*Math.PI;$-M>2*Math.PI&&(M=0,$=2*Math.PI);const H=($-M)/_.curveStepCount,z=[];for(let E=M;E<=$;E+=H)z.push([C+v*Math.cos(E),k+F*Math.sin(E)]);return z.push([C+v*Math.cos($),k+F*Math.sin($)]),z.push([C,k]),Rr([z],_)}(t,r,i,n,a,o,c));return c.stroke!==oe&&h.push(u),this._d("arc",h,c)}curve(t,r){const i=this._o(r),n=[],a=Oc(t,i);if(i.fill&&i.fill!==oe)if(i.fillStyle==="solid"){const o=Oc(t,Object.assign(Object.assign({},i),{disableMultiStroke:!0,roughness:i.roughness?i.roughness+i.fillShapeRoughnessGain:0}));n.push({type:"fillPath",ops:this._mergedShape(o.ops)})}else{const o=[],s=t;if(s.length){const l=typeof s[0][0]=="number"?[s]:s;for(const c of l)c.length<3?o.push(...c):c.length===3?o.push(...Cs(qc([c[0],c[0],c[1],c[2]]),10,(1+i.roughness)/2)):o.push(...Cs(qc(c),10,(1+i.roughness)/2))}o.length&&n.push(Rr([o],i))}return i.stroke!==oe&&n.push(a),this._d("curve",n,i)}polygon(t,r){const i=this._o(r),n=[],a=Mn(t,!0,i);return i.fill&&(i.fillStyle==="solid"?n.push(_s([t],i)):n.push(Rr([t],i))),i.stroke!==oe&&n.push(a),this._d("polygon",n,i)}path(t,r){const i=this._o(r),n=[];if(!t)return this._d("path",n,i);t=(t||"").replace(/\n/g," ").replace(/(-\s)/g,"-").replace("/(ss)/g"," ");const a=i.fill&&i.fill!=="transparent"&&i.fill!==oe,o=i.stroke!==oe,s=!!(i.simplification&&i.simplification<1),l=function(h,u,f){const p=Pp(Ip(tl(h))),g=[];let m=[],x=[0,0],y=[];const _=()=>{y.length>=4&&m.push(...Cs(y,u)),y=[]},C=()=>{_(),m.length&&(g.push(m),m=[])};for(const{key:v,data:F}of p)switch(v){case"M":C(),x=[F[0],F[1]],m.push(x);break;case"L":_(),m.push([F[0],F[1]]);break;case"C":if(!y.length){const M=m.length?m[m.length-1]:x;y.push([M[0],M[1]])}y.push([F[0],F[1]]),y.push([F[2],F[3]]),y.push([F[4],F[5]]);break;case"Z":_(),m.push([x[0],x[1]])}if(C(),!f)return g;const k=[];for(const v of g){const F=Yw(v,f);F.length&&k.push(F)}return k}(t,1,s?4-4*(i.simplification||1):(1+i.roughness)/2),c=Ic(t,i);if(a)if(i.fillStyle==="solid")if(l.length===1){const h=Ic(t,Object.assign(Object.assign({},i),{disableMultiStroke:!0,roughness:i.roughness?i.roughness+i.fillShapeRoughnessGain:0}));n.push({type:"fillPath",ops:this._mergedShape(h.ops)})}else n.push(_s(l,i));else n.push(Rr(l,i));return o&&(s?l.forEach(h=>{n.push(Mn(h,!1,i))}):n.push(c)),this._d("path",n,i)}opsToPath(t,r){let i="";for(const n of t.ops){const a=typeof r=="number"&&r>=0?n.data.map(o=>+o.toFixed(r)):n.data;switch(n.op){case"move":i+=`M${a[0]} ${a[1]} `;break;case"bcurveTo":i+=`C${a[0]} ${a[1]}, ${a[2]} ${a[3]}, ${a[4]} ${a[5]} `;break;case"lineTo":i+=`L${a[0]} ${a[1]} `}}return i.trim()}toPaths(t){const r=t.sets||[],i=t.options||this.defaultOptions,n=[];for(const a of r){let o=null;switch(a.type){case"path":o={d:this.opsToPath(a),stroke:i.stroke,strokeWidth:i.strokeWidth,fill:oe};break;case"fillPath":o={d:this.opsToPath(a),stroke:oe,strokeWidth:0,fill:i.fill||oe};break;case"fillSketch":o=this.fillSketch(a,i)}o&&n.push(o)}return n}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 Gw{constructor(t,r){this.canvas=t,this.ctx=this.canvas.getContext("2d"),this.gen=new oa(r)}draw(t){const r=t.sets||[],i=t.options||this.getDefaultOptions(),n=this.ctx,a=t.options.fixedDecimalPlaceDigits;for(const o of r)switch(o.type){case"path":n.save(),n.strokeStyle=i.stroke==="none"?"transparent":i.stroke,n.lineWidth=i.strokeWidth,i.strokeLineDash&&n.setLineDash(i.strokeLineDash),i.strokeLineDashOffset&&(n.lineDashOffset=i.strokeLineDashOffset),this._drawToContext(n,o,a),n.restore();break;case"fillPath":{n.save(),n.fillStyle=i.fill||"";const s=t.shape==="curve"||t.shape==="polygon"||t.shape==="path"?"evenodd":"nonzero";this._drawToContext(n,o,a,s),n.restore();break}case"fillSketch":this.fillSketch(n,o,i)}}fillSketch(t,r,i){let n=i.fillWeight;n<0&&(n=i.strokeWidth/2),t.save(),i.fillLineDash&&t.setLineDash(i.fillLineDash),i.fillLineDashOffset&&(t.lineDashOffset=i.fillLineDashOffset),t.strokeStyle=i.fill||"",t.lineWidth=n,this._drawToContext(t,r,i.fixedDecimalPlaceDigits),t.restore()}_drawToContext(t,r,i,n="nonzero"){t.beginPath();for(const a of r.ops){const o=typeof i=="number"&&i>=0?a.data.map(s=>+s.toFixed(i)):a.data;switch(a.op){case"move":t.moveTo(o[0],o[1]);break;case"bcurveTo":t.bezierCurveTo(o[0],o[1],o[2],o[3],o[4],o[5]);break;case"lineTo":t.lineTo(o[0],o[1])}}r.type==="fillPath"?t.fill(n):t.stroke()}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}line(t,r,i,n,a){const o=this.gen.line(t,r,i,n,a);return this.draw(o),o}rectangle(t,r,i,n,a){const o=this.gen.rectangle(t,r,i,n,a);return this.draw(o),o}ellipse(t,r,i,n,a){const o=this.gen.ellipse(t,r,i,n,a);return this.draw(o),o}circle(t,r,i,n){const a=this.gen.circle(t,r,i,n);return this.draw(a),a}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,n,a,o,s=!1,l){const c=this.gen.arc(t,r,i,n,a,o,s,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 kn="http://www.w3.org/2000/svg";class Vw{constructor(t,r){this.svg=t,this.gen=new oa(r)}draw(t){const r=t.sets||[],i=t.options||this.getDefaultOptions(),n=this.svg.ownerDocument||window.document,a=n.createElementNS(kn,"g"),o=t.options.fixedDecimalPlaceDigits;for(const s of r){let l=null;switch(s.type){case"path":l=n.createElementNS(kn,"path"),l.setAttribute("d",this.opsToPath(s,o)),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=n.createElementNS(kn,"path"),l.setAttribute("d",this.opsToPath(s,o)),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(n,s,i)}l&&a.appendChild(l)}return a}fillSketch(t,r,i){let n=i.fillWeight;n<0&&(n=i.strokeWidth/2);const a=t.createElementNS(kn,"path");return a.setAttribute("d",this.opsToPath(r,i.fixedDecimalPlaceDigits)),a.setAttribute("stroke",i.fill||""),a.setAttribute("stroke-width",n+""),a.setAttribute("fill","none"),i.fillLineDash&&a.setAttribute("stroke-dasharray",i.fillLineDash.join(" ").trim()),i.fillLineDashOffset&&a.setAttribute("stroke-dashoffset",`${i.fillLineDashOffset}`),a}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}opsToPath(t,r){return this.gen.opsToPath(t,r)}line(t,r,i,n,a){const o=this.gen.line(t,r,i,n,a);return this.draw(o)}rectangle(t,r,i,n,a){const o=this.gen.rectangle(t,r,i,n,a);return this.draw(o)}ellipse(t,r,i,n,a){const o=this.gen.ellipse(t,r,i,n,a);return this.draw(o)}circle(t,r,i,n){const a=this.gen.circle(t,r,i,n);return this.draw(a)}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,n,a,o,s=!1,l){const c=this.gen.arc(t,r,i,n,a,o,s,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 G={canvas:(e,t)=>new Gw(e,t),svg:(e,t)=>new Vw(e,t),generator:e=>new oa(e),newSeed:()=>oa.newSeed()},nt=d(async(e,t,r)=>{var u,f;let i;const n=t.useHtmlLabels||qt((u=pt())==null?void 0:u.htmlLabels);r?i=r:i="node default";const a=e.insert("g").attr("class",i).attr("id",t.domId||t.id),o=a.insert("g").attr("class","label").attr("style",Kt(t.labelStyle));let s;t.label===void 0?s="":s=typeof t.label=="string"?t.label:t.label[0];const l=await fi(o,_r(ui(s),pt()),{useHtmlLabels:n,width:t.width||((f=pt().flowchart)==null?void 0:f.wrappingWidth),cssClasses:"markdown-node-label",style:t.labelStyle,addSvgBackground:!!t.icon||!!t.img});let c=l.getBBox();const h=((t==null?void 0:t.padding)??0)/2;if(n){const p=l.children[0],g=ft(l),m=p.getElementsByTagName("img");if(m){const x=s.replace(/<img[^>]*>/g,"").trim()==="";await Promise.all([...m].map(y=>new Promise(_=>{function C(){if(y.style.display="flex",y.style.flexDirection="column",x){const k=pt().fontSize?pt().fontSize:window.getComputedStyle(document.body).fontSize,v=5,[F=_h.fontSize]=va(k),M=F*v+"px";y.style.minWidth=M,y.style.maxWidth=M}else y.style.width="100%";_(y)}d(C,"setupImage"),setTimeout(()=>{y.complete&&C()}),y.addEventListener("error",C),y.addEventListener("load",C)})))}c=p.getBoundingClientRect(),g.attr("width",c.width),g.attr("height",c.height)}return n?o.attr("transform","translate("+-c.width/2+", "+-c.height/2+")"):o.attr("transform","translate(0, "+-c.height/2+")"),t.centerLabel&&o.attr("transform","translate("+-c.width/2+", "+-c.height/2+")"),o.insert("rect",":first-child"),{shapeSvg:a,bbox:c,halfPadding:h,label:o}},"labelHelper"),ws=d(async(e,t,r)=>{var l,c,h,u,f,p;const i=r.useHtmlLabels||qt((c=(l=pt())==null?void 0:l.flowchart)==null?void 0:c.htmlLabels),n=e.insert("g").attr("class","label").attr("style",r.labelStyle||""),a=await fi(n,_r(ui(t),pt()),{useHtmlLabels:i,width:r.width||((u=(h=pt())==null?void 0:h.flowchart)==null?void 0:u.wrappingWidth),style:r.labelStyle,addSvgBackground:!!r.icon||!!r.img});let o=a.getBBox();const s=r.padding/2;if(qt((p=(f=pt())==null?void 0:f.flowchart)==null?void 0:p.htmlLabels)){const g=a.children[0],m=ft(a);o=g.getBoundingClientRect(),m.attr("width",o.width),m.attr("height",o.height)}return i?n.attr("transform","translate("+-o.width/2+", "+-o.height/2+")"):n.attr("transform","translate(0, "+-o.height/2+")"),r.centerLabel&&n.attr("transform","translate("+-o.width/2+", "+-o.height/2+")"),n.insert("rect",":first-child"),{shapeSvg:e,bbox:o,halfPadding:s,label:n}},"insertLabel"),Q=d((e,t)=>{const r=t.node().getBBox();e.width=r.width,e.height=r.height},"updateNodeBounds"),at=d((e,t)=>(e.look==="handDrawn"?"rough-node":"node")+" "+e.cssClasses+" "+(t||""),"getNodeClasses");function ct(e){const t=e.map((r,i)=>`${i===0?"M":"L"}${r.x},${r.y}`);return t.push("Z"),t.join(" ")}d(ct,"createPathFromPoints");function er(e,t,r,i,n,a){const o=[],l=r-e,c=i-t,h=l/a,u=2*Math.PI/h,f=t+c/2;for(let p=0;p<=50;p++){const g=p/50,m=e+g*l,x=f+n*Math.sin(u*(m-e));o.push({x:m,y:x})}return o}d(er,"generateFullSineWavePoints");function el(e,t,r,i,n,a){const o=[],s=n*Math.PI/180,h=(a*Math.PI/180-s)/(i-1);for(let u=0;u<i;u++){const f=s+u*h,p=e+r*Math.cos(f),g=t+r*Math.sin(f);o.push({x:-p,y:-g})}return o}d(el,"generateCirclePoints");var Xw=d((e,t)=>{var r=e.x,i=e.y,n=t.x-r,a=t.y-i,o=e.width/2,s=e.height/2,l,c;return Math.abs(a)*o>Math.abs(n)*s?(a<0&&(s=-s),l=a===0?0:s*n/a,c=s):(n<0&&(o=-o),l=o,c=n===0?0:o*a/n),{x:r+l,y:i+c}},"intersectRect"),pi=Xw;function Hp(e,t){t&&e.attr("style",t)}d(Hp,"applyStyle");async function jp(e){const t=ft(document.createElementNS("http://www.w3.org/2000/svg","foreignObject")),r=t.append("xhtml:div");let i=e.label;e.label&&ri(e.label)&&(i=await yo(e.label.replace(li.lineBreakRegex,`
163
+ `),pt()));const n=e.isNode?"nodeLabel":"edgeLabel";return r.html('<span class="'+n+'" '+(e.labelStyle?'style="'+e.labelStyle+'"':"")+">"+i+"</span>"),Hp(r,e.labelStyle),r.style("display","inline-block"),r.style("padding-right","1px"),r.style("white-space","nowrap"),r.attr("xmlns","http://www.w3.org/1999/xhtml"),t.node()}d(jp,"addHtmlLabel");var Zw=d(async(e,t,r,i)=>{let n=e||"";if(typeof n=="object"&&(n=n[0]),qt(pt().flowchart.htmlLabels)){n=n.replace(/\\n|\n/g,"<br />"),P.info("vertexText"+n);const a={isNode:i,label:ui(n).replace(/fa[blrs]?:fa-[\w-]+/g,s=>`<i class='${s.replace(":"," ")}'></i>`),labelStyle:t&&t.replace("fill:","color:")};return await jp(a)}else{const a=document.createElementNS("http://www.w3.org/2000/svg","text");a.setAttribute("style",t.replace("color:","fill:"));let o=[];typeof n=="string"?o=n.split(/\\n|\n|<br\s*\/?>/gi):Array.isArray(n)?o=n:o=[];for(const s of o){const l=document.createElementNS("http://www.w3.org/2000/svg","tspan");l.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),l.setAttribute("dy","1em"),l.setAttribute("x","0"),r?l.setAttribute("class","title-row"):l.setAttribute("class","row"),l.textContent=s.trim(),a.appendChild(l)}return a}},"createLabel"),xr=Zw,We=d((e,t,r,i,n)=>["M",e+n,t,"H",e+r-n,"A",n,n,0,0,1,e+r,t+n,"V",t+i-n,"A",n,n,0,0,1,e+r-n,t+i,"H",e+n,"A",n,n,0,0,1,e,t+i-n,"V",t+n,"A",n,n,0,0,1,e+n,t,"Z"].join(" "),"createRoundedRectPathD"),Kw=d(e=>{const{handDrawnSeed:t}=pt();return{fill:e,hachureAngle:120,hachureGap:4,fillWeight:2,roughness:.7,stroke:e,seed:t}},"solidStateFill"),di=d(e=>{const t=Qw([...e.cssCompiledStyles||[],...e.cssStyles||[]]);return{stylesMap:t,stylesArray:[...t]}},"compileStyles"),Qw=d(e=>{const t=new Map;return e.forEach(r=>{const[i,n]=r.split(":");t.set(i.trim(),n==null?void 0:n.trim())}),t},"styles2Map"),J=d(e=>{const{stylesArray:t}=di(e),r=[],i=[],n=[],a=[];return t.forEach(o=>{const s=o[0];s==="color"||s==="font-size"||s==="font-family"||s==="font-weight"||s==="font-style"||s==="text-decoration"||s==="text-align"||s==="text-transform"||s==="line-height"||s==="letter-spacing"||s==="word-spacing"||s==="text-shadow"||s==="text-overflow"||s==="white-space"||s==="word-wrap"||s==="word-break"||s==="overflow-wrap"||s==="hyphens"?r.push(o.join(":")+" !important"):(i.push(o.join(":")+" !important"),s.includes("stroke")&&n.push(o.join(":")+" !important"),s==="fill"&&a.push(o.join(":")+" !important"))}),{labelStyles:r.join(";"),nodeStyles:i.join(";"),stylesArray:t,borderStyles:n,backgroundStyles:a}},"styles2String"),V=d((e,t)=>{var l;const{themeVariables:r,handDrawnSeed:i}=pt(),{nodeBorder:n,mainBkg:a}=r,{stylesMap:o}=di(e);return Object.assign({roughness:.7,fill:o.get("fill")||a,fillStyle:"hachure",fillWeight:4,hachureGap:5.2,stroke:o.get("stroke")||n,seed:i,strokeWidth:((l=o.get("stroke-width"))==null?void 0:l.replace("px",""))||1.3,fillLineDash:[0,0]},t)},"userNodeOverrides"),Up=d(async(e,t)=>{P.info("Creating subgraph rect for ",t.id,t);const r=pt(),{themeVariables:i,handDrawnSeed:n}=r,{clusterBkg:a,clusterBorder:o}=i,{labelStyles:s,nodeStyles:l,borderStyles:c,backgroundStyles:h}=J(t),u=e.insert("g").attr("class","cluster "+t.cssClasses).attr("id",t.id).attr("data-look",t.look),f=qt(r.flowchart.htmlLabels),p=u.insert("g").attr("class","cluster-label "),g=await fi(p,t.label,{style:t.labelStyle,useHtmlLabels:f,isNode:!0});let m=g.getBBox();if(qt(r.flowchart.htmlLabels)){const M=g.children[0],$=ft(g);m=M.getBoundingClientRect(),$.attr("width",m.width),$.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 y=t.height,_=t.x-x/2,C=t.y-y/2;P.trace("Data ",t,JSON.stringify(t));let k;if(t.look==="handDrawn"){const M=G.svg(u),$=V(t,{roughness:.7,fill:a,stroke:o,fillWeight:3,seed:n}),H=M.path(We(_,C,x,y,0),$);k=u.insert(()=>(P.debug("Rough node insert CXC",H),H),":first-child"),k.select("path:nth-child(2)").attr("style",c.join(";")),k.select("path").attr("style",h.join(";").replace("fill","stroke"))}else k=u.insert("rect",":first-child"),k.attr("style",l).attr("rx",t.rx).attr("ry",t.ry).attr("x",_).attr("y",C).attr("width",x).attr("height",y);const{subGraphTitleTopMargin:v}=Bo(r);if(p.attr("transform",`translate(${t.x-m.width/2}, ${t.y-t.height/2+v})`),s){const M=p.select("span");M&&M.attr("style",s)}const F=k.node().getBBox();return t.offsetX=0,t.width=F.width,t.height=F.height,t.offsetY=m.height-t.padding/2,t.intersect=function(M){return pi(t,M)},{cluster:u,labelBBox:m}},"rect"),Jw=d((e,t)=>{const r=e.insert("g").attr("class","note-cluster").attr("id",t.id),i=r.insert("rect",":first-child"),n=0*t.padding,a=n/2;i.attr("rx",t.rx).attr("ry",t.ry).attr("x",t.x-t.width/2-a).attr("y",t.y-t.height/2-a).attr("width",t.width+n).attr("height",t.height+n).attr("fill","none");const o=i.node().getBBox();return t.width=o.width,t.height=o.height,t.intersect=function(s){return pi(t,s)},{cluster:r,labelBBox:{width:0,height:0}}},"noteGroup"),tk=d(async(e,t)=>{const r=pt(),{themeVariables:i,handDrawnSeed:n}=r,{altBackground:a,compositeBackground:o,compositeTitleBackground:s,nodeBorder:l}=i,c=e.insert("g").attr("class",t.cssClasses).attr("id",t.id).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 f=c.append("rect");const p=u.node().appendChild(await xr(t.label,t.labelStyle,void 0,!0));let g=p.getBBox();if(qt(r.flowchart.htmlLabels)){const H=p.children[0],z=ft(p);g=H.getBoundingClientRect(),z.attr("width",g.width),z.attr("height",g.height)}const m=0*t.padding,x=m/2,y=(t.width<=g.width+t.padding?g.width+t.padding:t.width)+m;t.width<=g.width+t.padding?t.diff=(y-t.width)/2-t.padding:t.diff=-t.padding;const _=t.height+m,C=t.height+m-g.height-6,k=t.x-y/2,v=t.y-_/2;t.width=y;const F=t.y-t.height/2-x+g.height+2;let M;if(t.look==="handDrawn"){const H=t.cssClasses.includes("statediagram-cluster-alt"),z=G.svg(c),E=t.rx||t.ry?z.path(We(k,v,y,_,10),{roughness:.7,fill:s,fillStyle:"solid",stroke:l,seed:n}):z.rectangle(k,v,y,_,{seed:n});M=c.insert(()=>E,":first-child");const q=z.rectangle(k,F,y,C,{fill:H?a:o,fillStyle:H?"hachure":"solid",stroke:l,seed:n});M=c.insert(()=>E,":first-child"),f=c.insert(()=>q)}else M=h.insert("rect",":first-child"),M.attr("class","outer").attr("x",k).attr("y",v).attr("width",y).attr("height",_).attr("data-look",t.look),f.attr("class","inner").attr("x",k).attr("y",F).attr("width",y).attr("height",C);u.attr("transform",`translate(${t.x-g.width/2}, ${v+1-(qt(r.flowchart.htmlLabels)?0:3)})`);const $=M.node().getBBox();return t.height=$.height,t.offsetX=0,t.offsetY=g.height-t.padding/2,t.labelBBox=g,t.intersect=function(H){return pi(t,H)},{cluster:c,labelBBox:g}},"roundedWithTitle"),ek=d(async(e,t)=>{P.info("Creating subgraph rect for ",t.id,t);const r=pt(),{themeVariables:i,handDrawnSeed:n}=r,{clusterBkg:a,clusterBorder:o}=i,{labelStyles:s,nodeStyles:l,borderStyles:c,backgroundStyles:h}=J(t),u=e.insert("g").attr("class","cluster "+t.cssClasses).attr("id",t.id).attr("data-look",t.look),f=qt(r.flowchart.htmlLabels),p=u.insert("g").attr("class","cluster-label "),g=await fi(p,t.label,{style:t.labelStyle,useHtmlLabels:f,isNode:!0,width:t.width});let m=g.getBBox();if(qt(r.flowchart.htmlLabels)){const M=g.children[0],$=ft(g);m=M.getBoundingClientRect(),$.attr("width",m.width),$.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 y=t.height,_=t.x-x/2,C=t.y-y/2;P.trace("Data ",t,JSON.stringify(t));let k;if(t.look==="handDrawn"){const M=G.svg(u),$=V(t,{roughness:.7,fill:a,stroke:o,fillWeight:4,seed:n}),H=M.path(We(_,C,x,y,t.rx),$);k=u.insert(()=>(P.debug("Rough node insert CXC",H),H),":first-child"),k.select("path:nth-child(2)").attr("style",c.join(";")),k.select("path").attr("style",h.join(";").replace("fill","stroke"))}else k=u.insert("rect",":first-child"),k.attr("style",l).attr("rx",t.rx).attr("ry",t.ry).attr("x",_).attr("y",C).attr("width",x).attr("height",y);const{subGraphTitleTopMargin:v}=Bo(r);if(p.attr("transform",`translate(${t.x-m.width/2}, ${t.y-t.height/2+v})`),s){const M=p.select("span");M&&M.attr("style",s)}const F=k.node().getBBox();return t.offsetX=0,t.width=F.width,t.height=F.height,t.offsetY=m.height-t.padding/2,t.intersect=function(M){return pi(t,M)},{cluster:u,labelBBox:m}},"kanbanSection"),rk=d((e,t)=>{const r=pt(),{themeVariables:i,handDrawnSeed:n}=r,{nodeBorder:a}=i,o=e.insert("g").attr("class",t.cssClasses).attr("id",t.id).attr("data-look",t.look),s=o.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,f=t.y-h/2;t.width=c;let p;if(t.look==="handDrawn"){const x=G.svg(o).rectangle(u,f,c,h,{fill:"lightgrey",roughness:.5,strokeLineDash:[5],stroke:a,seed:n});p=o.insert(()=>x,":first-child")}else p=s.insert("rect",":first-child"),p.attr("class","divider").attr("x",u).attr("y",f).attr("width",c).attr("height",h).attr("data-look",t.look);const g=p.node().getBBox();return t.height=g.height,t.offsetX=0,t.offsetY=0,t.intersect=function(m){return pi(t,m)},{cluster:o,labelBBox:{}}},"divider"),ik=Up,nk={rect:Up,squareRect:ik,roundedWithTitle:tk,noteGroup:Jw,divider:rk,kanbanSection:ek},Yp=new Map,ak=d(async(e,t)=>{const r=t.shape||"rect",i=await nk[r](e,t);return Yp.set(t.id,i),i},"insertCluster"),cA=d(()=>{Yp=new Map},"clear");function Gp(e,t){return e.intersect(t)}d(Gp,"intersectNode");var sk=Gp;function Vp(e,t,r,i){var n=e.x,a=e.y,o=n-i.x,s=a-i.y,l=Math.sqrt(t*t*s*s+r*r*o*o),c=Math.abs(t*r*o/l);i.x<n&&(c=-c);var h=Math.abs(t*r*s/l);return i.y<a&&(h=-h),{x:n+c,y:a+h}}d(Vp,"intersectEllipse");var Xp=Vp;function Zp(e,t,r){return Xp(e,t,t,r)}d(Zp,"intersectCircle");var ok=Zp;function Kp(e,t,r,i){var n,a,o,s,l,c,h,u,f,p,g,m,x,y,_;if(n=t.y-e.y,o=e.x-t.x,l=t.x*e.y-e.x*t.y,f=n*r.x+o*r.y+l,p=n*i.x+o*i.y+l,!(f!==0&&p!==0&&io(f,p))&&(a=i.y-r.y,s=r.x-i.x,c=i.x*r.y-r.x*i.y,h=a*e.x+s*e.y+c,u=a*t.x+s*t.y+c,!(h!==0&&u!==0&&io(h,u))&&(g=n*s-a*o,g!==0)))return m=Math.abs(g/2),x=o*c-s*l,y=x<0?(x-m)/g:(x+m)/g,x=a*l-n*c,_=x<0?(x-m)/g:(x+m)/g,{x:y,y:_}}d(Kp,"intersectLine");function io(e,t){return e*t>0}d(io,"sameSign");var lk=Kp;function Qp(e,t,r){let i=e.x,n=e.y,a=[],o=Number.POSITIVE_INFINITY,s=Number.POSITIVE_INFINITY;typeof t.forEach=="function"?t.forEach(function(h){o=Math.min(o,h.x),s=Math.min(s,h.y)}):(o=Math.min(o,t.x),s=Math.min(s,t.y));let l=i-e.width/2-o,c=n-e.height/2-s;for(let h=0;h<t.length;h++){let u=t[h],f=t[h<t.length-1?h+1:0],p=lk(e,r,{x:l+u.x,y:c+u.y},{x:l+f.x,y:c+f.y});p&&a.push(p)}return a.length?(a.length>1&&a.sort(function(h,u){let f=h.x-r.x,p=h.y-r.y,g=Math.sqrt(f*f+p*p),m=u.x-r.x,x=u.y-r.y,y=Math.sqrt(m*m+x*x);return g<y?-1:g===y?0:1}),a[0]):e}d(Qp,"intersectPolygon");var ck=Qp,Y={node:sk,circle:ok,ellipse:Xp,polygon:ck,rect:pi};function Jp(e,t){const{labelStyles:r}=J(t);t.labelStyle=r;const i=at(t);let n=i;i||(n="anchor");const a=e.insert("g").attr("class",n).attr("id",t.domId||t.id),o=1,{cssStyles:s}=t,l=G.svg(a),c=V(t,{fill:"black",stroke:"none",fillStyle:"solid"});t.look!=="handDrawn"&&(c.roughness=0);const h=l.circle(0,0,o*2,c),u=a.insert(()=>h,":first-child");return u.attr("class","anchor").attr("style",Kt(s)),Q(t,u),t.intersect=function(f){return P.info("Circle intersect",t,o,f),Y.circle(t,o,f)},a}d(Jp,"anchor");function no(e,t,r,i,n,a,o){const l=(e+r)/2,c=(t+i)/2,h=Math.atan2(i-t,r-e),u=(r-e)/2,f=(i-t)/2,p=u/n,g=f/a,m=Math.sqrt(p**2+g**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),y=l+x*a*Math.sin(h)*(o?-1:1),_=c-x*n*Math.cos(h)*(o?-1:1),C=Math.atan2((t-_)/a,(e-y)/n);let v=Math.atan2((i-_)/a,(r-y)/n)-C;o&&v<0&&(v+=2*Math.PI),!o&&v>0&&(v-=2*Math.PI);const F=[];for(let M=0;M<20;M++){const $=M/19,H=C+$*v,z=y+n*Math.cos(H),E=_+a*Math.sin(H);F.push({x:z,y:E})}return F}d(no,"generateArcPoints");async function td(e,t){const{labelStyles:r,nodeStyles:i}=J(t);t.labelStyle=r;const{shapeSvg:n,bbox:a}=await nt(e,t,at(t)),o=a.width+t.padding+20,s=a.height+t.padding,l=s/2,c=l/(2.5+s/50),{cssStyles:h}=t,u=[{x:o/2,y:-s/2},{x:-o/2,y:-s/2},...no(-o/2,-s/2,-o/2,s/2,c,l,!1),{x:o/2,y:s/2},...no(o/2,s/2,o/2,-s/2,c,l,!0)],f=G.svg(n),p=V(t,{});t.look!=="handDrawn"&&(p.roughness=0,p.fillStyle="solid");const g=ct(u),m=f.path(g,p),x=n.insert(()=>m,":first-child");return x.attr("class","basic label-container"),h&&t.look!=="handDrawn"&&x.selectAll("path").attr("style",h),i&&t.look!=="handDrawn"&&x.selectAll("path").attr("style",i),x.attr("transform",`translate(${c/2}, 0)`),Q(t,x),t.intersect=function(y){return Y.polygon(t,u,y)},n}d(td,"bowTieRect");function He(e,t,r,i){return e.insert("polygon",":first-child").attr("points",i.map(function(n){return n.x+","+n.y}).join(" ")).attr("class","label-container").attr("transform","translate("+-t/2+","+r/2+")")}d(He,"insertPolygonShape");async function ed(e,t){const{labelStyles:r,nodeStyles:i}=J(t);t.labelStyle=r;const{shapeSvg:n,bbox:a}=await nt(e,t,at(t)),o=a.height+t.padding,s=12,l=a.width+t.padding+s,c=0,h=l,u=-o,f=0,p=[{x:c+s,y:u},{x:h,y:u},{x:h,y:f},{x:c,y:f},{x:c,y:u+s},{x:c+s,y:u}];let g;const{cssStyles:m}=t;if(t.look==="handDrawn"){const x=G.svg(n),y=V(t,{}),_=ct(p),C=x.path(_,y);g=n.insert(()=>C,":first-child").attr("transform",`translate(${-l/2}, ${o/2})`),m&&g.attr("style",m)}else g=He(n,l,o,p);return i&&g.attr("style",i),Q(t,g),t.intersect=function(x){return Y.polygon(t,p,x)},n}d(ed,"card");function rd(e,t){const{nodeStyles:r}=J(t);t.label="";const i=e.insert("g").attr("class",at(t)).attr("id",t.domId??t.id),{cssStyles:n}=t,a=Math.max(28,t.width??0),o=[{x:0,y:a/2},{x:a/2,y:0},{x:0,y:-a/2},{x:-a/2,y:0}],s=G.svg(i),l=V(t,{});t.look!=="handDrawn"&&(l.roughness=0,l.fillStyle="solid");const c=ct(o),h=s.path(c,l),u=i.insert(()=>h,":first-child");return n&&t.look!=="handDrawn"&&u.selectAll("path").attr("style",n),r&&t.look!=="handDrawn"&&u.selectAll("path").attr("style",r),t.width=28,t.height=28,t.intersect=function(f){return Y.polygon(t,o,f)},i}d(rd,"choice");async function id(e,t){const{labelStyles:r,nodeStyles:i}=J(t);t.labelStyle=r;const{shapeSvg:n,bbox:a,halfPadding:o}=await nt(e,t,at(t)),s=a.width/2+o;let l;const{cssStyles:c}=t;if(t.look==="handDrawn"){const h=G.svg(n),u=V(t,{}),f=h.circle(0,0,s*2,u);l=n.insert(()=>f,":first-child"),l.attr("class","basic label-container").attr("style",Kt(c))}else l=n.insert("circle",":first-child").attr("class","basic label-container").attr("style",i).attr("r",s).attr("cx",0).attr("cy",0);return Q(t,l),t.intersect=function(h){return P.info("Circle intersect",t,s,h),Y.circle(t,s,h)},n}d(id,"circle");function nd(e){const t=Math.cos(Math.PI/4),r=Math.sin(Math.PI/4),i=e*2,n={x:i/2*t,y:i/2*r},a={x:-(i/2)*t,y:i/2*r},o={x:-(i/2)*t,y:-(i/2)*r},s={x:i/2*t,y:-(i/2)*r};return`M ${a.x},${a.y} L ${s.x},${s.y}
164
+ M ${n.x},${n.y} L ${o.x},${o.y}`}d(nd,"createLine");function ad(e,t){const{labelStyles:r,nodeStyles:i}=J(t);t.labelStyle=r,t.label="";const n=e.insert("g").attr("class",at(t)).attr("id",t.domId??t.id),a=Math.max(30,(t==null?void 0:t.width)??0),{cssStyles:o}=t,s=G.svg(n),l=V(t,{});t.look!=="handDrawn"&&(l.roughness=0,l.fillStyle="solid");const c=s.circle(0,0,a*2,l),h=nd(a),u=s.path(h,l),f=n.insert(()=>c,":first-child");return f.insert(()=>u),o&&t.look!=="handDrawn"&&f.selectAll("path").attr("style",o),i&&t.look!=="handDrawn"&&f.selectAll("path").attr("style",i),Q(t,f),t.intersect=function(p){return P.info("crossedCircle intersect",t,{radius:a,point:p}),Y.circle(t,a,p)},n}d(ad,"crossedCircle");function Re(e,t,r,i=100,n=0,a=180){const o=[],s=n*Math.PI/180,h=(a*Math.PI/180-s)/(i-1);for(let u=0;u<i;u++){const f=s+u*h,p=e+r*Math.cos(f),g=t+r*Math.sin(f);o.push({x:-p,y:-g})}return o}d(Re,"generateCirclePoints");async function sd(e,t){const{labelStyles:r,nodeStyles:i}=J(t);t.labelStyle=r;const{shapeSvg:n,bbox:a,label:o}=await nt(e,t,at(t)),s=a.width+(t.padding??0),l=a.height+(t.padding??0),c=Math.max(5,l*.1),{cssStyles:h}=t,u=[...Re(s/2,-l/2,c,30,-90,0),{x:-s/2-c,y:c},...Re(s/2+c*2,-c,c,20,-180,-270),...Re(s/2+c*2,c,c,20,-90,-180),{x:-s/2-c,y:-l/2},...Re(s/2,l/2,c,20,0,90)],f=[{x:s/2,y:-l/2-c},{x:-s/2,y:-l/2-c},...Re(s/2,-l/2,c,20,-90,0),{x:-s/2-c,y:-c},...Re(s/2+s*.1,-c,c,20,-180,-270),...Re(s/2+s*.1,c,c,20,-90,-180),{x:-s/2-c,y:l/2},...Re(s/2,l/2,c,20,0,90),{x:-s/2,y:l/2+c},{x:s/2,y:l/2+c}],p=G.svg(n),g=V(t,{fill:"none"});t.look!=="handDrawn"&&(g.roughness=0,g.fillStyle="solid");const x=ct(u).replace("Z",""),y=p.path(x,g),_=ct(f),C=p.path(_,{...g}),k=n.insert("g",":first-child");return k.insert(()=>C,":first-child").attr("stroke-opacity",0),k.insert(()=>y,":first-child"),k.attr("class","text"),h&&t.look!=="handDrawn"&&k.selectAll("path").attr("style",h),i&&t.look!=="handDrawn"&&k.selectAll("path").attr("style",i),k.attr("transform",`translate(${c}, 0)`),o.attr("transform",`translate(${-s/2+c-(a.x-(a.left??0))},${-l/2+(t.padding??0)/2-(a.y-(a.top??0))})`),Q(t,k),t.intersect=function(v){return Y.polygon(t,f,v)},n}d(sd,"curlyBraceLeft");function Ie(e,t,r,i=100,n=0,a=180){const o=[],s=n*Math.PI/180,h=(a*Math.PI/180-s)/(i-1);for(let u=0;u<i;u++){const f=s+u*h,p=e+r*Math.cos(f),g=t+r*Math.sin(f);o.push({x:p,y:g})}return o}d(Ie,"generateCirclePoints");async function od(e,t){const{labelStyles:r,nodeStyles:i}=J(t);t.labelStyle=r;const{shapeSvg:n,bbox:a,label:o}=await nt(e,t,at(t)),s=a.width+(t.padding??0),l=a.height+(t.padding??0),c=Math.max(5,l*.1),{cssStyles:h}=t,u=[...Ie(s/2,-l/2,c,20,-90,0),{x:s/2+c,y:-c},...Ie(s/2+c*2,-c,c,20,-180,-270),...Ie(s/2+c*2,c,c,20,-90,-180),{x:s/2+c,y:l/2},...Ie(s/2,l/2,c,20,0,90)],f=[{x:-s/2,y:-l/2-c},{x:s/2,y:-l/2-c},...Ie(s/2,-l/2,c,20,-90,0),{x:s/2+c,y:-c},...Ie(s/2+c*2,-c,c,20,-180,-270),...Ie(s/2+c*2,c,c,20,-90,-180),{x:s/2+c,y:l/2},...Ie(s/2,l/2,c,20,0,90),{x:s/2,y:l/2+c},{x:-s/2,y:l/2+c}],p=G.svg(n),g=V(t,{fill:"none"});t.look!=="handDrawn"&&(g.roughness=0,g.fillStyle="solid");const x=ct(u).replace("Z",""),y=p.path(x,g),_=ct(f),C=p.path(_,{...g}),k=n.insert("g",":first-child");return k.insert(()=>C,":first-child").attr("stroke-opacity",0),k.insert(()=>y,":first-child"),k.attr("class","text"),h&&t.look!=="handDrawn"&&k.selectAll("path").attr("style",h),i&&t.look!=="handDrawn"&&k.selectAll("path").attr("style",i),k.attr("transform",`translate(${-c}, 0)`),o.attr("transform",`translate(${-s/2+(t.padding??0)/2-(a.x-(a.left??0))},${-l/2+(t.padding??0)/2-(a.y-(a.top??0))})`),Q(t,k),t.intersect=function(v){return Y.polygon(t,f,v)},n}d(od,"curlyBraceRight");function It(e,t,r,i=100,n=0,a=180){const o=[],s=n*Math.PI/180,h=(a*Math.PI/180-s)/(i-1);for(let u=0;u<i;u++){const f=s+u*h,p=e+r*Math.cos(f),g=t+r*Math.sin(f);o.push({x:-p,y:-g})}return o}d(It,"generateCirclePoints");async function ld(e,t){const{labelStyles:r,nodeStyles:i}=J(t);t.labelStyle=r;const{shapeSvg:n,bbox:a,label:o}=await nt(e,t,at(t)),s=a.width+(t.padding??0),l=a.height+(t.padding??0),c=Math.max(5,l*.1),{cssStyles:h}=t,u=[...It(s/2,-l/2,c,30,-90,0),{x:-s/2-c,y:c},...It(s/2+c*2,-c,c,20,-180,-270),...It(s/2+c*2,c,c,20,-90,-180),{x:-s/2-c,y:-l/2},...It(s/2,l/2,c,20,0,90)],f=[...It(-s/2+c+c/2,-l/2,c,20,-90,-180),{x:s/2-c/2,y:c},...It(-s/2-c/2,-c,c,20,0,90),...It(-s/2-c/2,c,c,20,-90,0),{x:s/2-c/2,y:-c},...It(-s/2+c+c/2,l/2,c,30,-180,-270)],p=[{x:s/2,y:-l/2-c},{x:-s/2,y:-l/2-c},...It(s/2,-l/2,c,20,-90,0),{x:-s/2-c,y:-c},...It(s/2+c*2,-c,c,20,-180,-270),...It(s/2+c*2,c,c,20,-90,-180),{x:-s/2-c,y:l/2},...It(s/2,l/2,c,20,0,90),{x:-s/2,y:l/2+c},{x:s/2-c-c/2,y:l/2+c},...It(-s/2+c+c/2,-l/2,c,20,-90,-180),{x:s/2-c/2,y:c},...It(-s/2-c/2,-c,c,20,0,90),...It(-s/2-c/2,c,c,20,-90,0),{x:s/2-c/2,y:-c},...It(-s/2+c+c/2,l/2,c,30,-180,-270)],g=G.svg(n),m=V(t,{fill:"none"});t.look!=="handDrawn"&&(m.roughness=0,m.fillStyle="solid");const y=ct(u).replace("Z",""),_=g.path(y,m),k=ct(f).replace("Z",""),v=g.path(k,m),F=ct(p),M=g.path(F,{...m}),$=n.insert("g",":first-child");return $.insert(()=>M,":first-child").attr("stroke-opacity",0),$.insert(()=>_,":first-child"),$.insert(()=>v,":first-child"),$.attr("class","text"),h&&t.look!=="handDrawn"&&$.selectAll("path").attr("style",h),i&&t.look!=="handDrawn"&&$.selectAll("path").attr("style",i),$.attr("transform",`translate(${c-c/4}, 0)`),o.attr("transform",`translate(${-s/2+(t.padding??0)/2-(a.x-(a.left??0))},${-l/2+(t.padding??0)/2-(a.y-(a.top??0))})`),Q(t,$),t.intersect=function(H){return Y.polygon(t,p,H)},n}d(ld,"curlyBraces");async function cd(e,t){const{labelStyles:r,nodeStyles:i}=J(t);t.labelStyle=r;const{shapeSvg:n,bbox:a}=await nt(e,t,at(t)),o=80,s=20,l=Math.max(o,(a.width+(t.padding??0)*2)*1.25,(t==null?void 0:t.width)??0),c=Math.max(s,a.height+(t.padding??0)*2,(t==null?void 0:t.height)??0),h=c/2,{cssStyles:u}=t,f=G.svg(n),p=V(t,{});t.look!=="handDrawn"&&(p.roughness=0,p.fillStyle="solid");const g=l,m=c,x=g-h,y=m/4,_=[{x,y:0},{x:y,y:0},{x:0,y:m/2},{x:y,y:m},{x,y:m},...el(-x,-m/2,h,50,270,90)],C=ct(_),k=f.path(C,p),v=n.insert(()=>k,":first-child");return v.attr("class","basic label-container"),u&&t.look!=="handDrawn"&&v.selectChildren("path").attr("style",u),i&&t.look!=="handDrawn"&&v.selectChildren("path").attr("style",i),v.attr("transform",`translate(${-l/2}, ${-c/2})`),Q(t,v),t.intersect=function(F){return Y.polygon(t,_,F)},n}d(cd,"curvedTrapezoid");var hk=d((e,t,r,i,n,a)=>[`M${e},${t+a}`,`a${n},${a} 0,0,0 ${r},0`,`a${n},${a} 0,0,0 ${-r},0`,`l0,${i}`,`a${n},${a} 0,0,0 ${r},0`,`l0,${-i}`].join(" "),"createCylinderPathD"),uk=d((e,t,r,i,n,a)=>[`M${e},${t+a}`,`M${e+r},${t+a}`,`a${n},${a} 0,0,0 ${-r},0`,`l0,${i}`,`a${n},${a} 0,0,0 ${r},0`,`l0,${-i}`].join(" "),"createOuterCylinderPathD"),fk=d((e,t,r,i,n,a)=>[`M${e-r/2},${-i/2}`,`a${n},${a} 0,0,0 ${r},0`].join(" "),"createInnerCylinderPathD");async function hd(e,t){const{labelStyles:r,nodeStyles:i}=J(t);t.labelStyle=r;const{shapeSvg:n,bbox:a,label:o}=await nt(e,t,at(t)),s=Math.max(a.width+t.padding,t.width??0),l=s/2,c=l/(2.5+s/50),h=Math.max(a.height+c+t.padding,t.height??0);let u;const{cssStyles:f}=t;if(t.look==="handDrawn"){const p=G.svg(n),g=uk(0,0,s,h,l,c),m=fk(0,c,s,h,l,c),x=p.path(g,V(t,{})),y=p.path(m,V(t,{fill:"none"}));u=n.insert(()=>y,":first-child"),u=n.insert(()=>x,":first-child"),u.attr("class","basic label-container"),f&&u.attr("style",f)}else{const p=hk(0,0,s,h,l,c);u=n.insert("path",":first-child").attr("d",p).attr("class","basic label-container").attr("style",Kt(f)).attr("style",i)}return u.attr("label-offset-y",c),u.attr("transform",`translate(${-s/2}, ${-(h/2+c)})`),Q(t,u),o.attr("transform",`translate(${-(a.width/2)-(a.x-(a.left??0))}, ${-(a.height/2)+(t.padding??0)/1.5-(a.y-(a.top??0))})`),t.intersect=function(p){const g=Y.rect(t,p),m=g.x-(t.x??0);if(l!=0&&(Math.abs(m)<(t.width??0)/2||Math.abs(m)==(t.width??0)/2&&Math.abs(g.y-(t.y??0))>(t.height??0)/2-c)){let x=c*c*(1-m*m/(l*l));x>0&&(x=Math.sqrt(x)),x=c-x,p.y-(t.y??0)>0&&(x=-x),g.y+=x}return g},n}d(hd,"cylinder");async function ud(e,t){const{labelStyles:r,nodeStyles:i}=J(t);t.labelStyle=r;const{shapeSvg:n,bbox:a,label:o}=await nt(e,t,at(t)),s=a.width+t.padding,l=a.height+t.padding,c=l*.2,h=-s/2,u=-l/2-c/2,{cssStyles:f}=t,p=G.svg(n),g=V(t,{});t.look!=="handDrawn"&&(g.roughness=0,g.fillStyle="solid");const m=[{x:h,y:u+c},{x:-h,y:u+c},{x:-h,y:-u},{x:h,y:-u},{x:h,y:u},{x:-h,y:u},{x:-h,y:u+c}],x=p.polygon(m.map(_=>[_.x,_.y]),g),y=n.insert(()=>x,":first-child");return y.attr("class","basic label-container"),f&&t.look!=="handDrawn"&&y.selectAll("path").attr("style",f),i&&t.look!=="handDrawn"&&y.selectAll("path").attr("style",i),o.attr("transform",`translate(${h+(t.padding??0)/2-(a.x-(a.left??0))}, ${u+c+(t.padding??0)/2-(a.y-(a.top??0))})`),Q(t,y),t.intersect=function(_){return Y.rect(t,_)},n}d(ud,"dividedRectangle");async function fd(e,t){var f,p;const{labelStyles:r,nodeStyles:i}=J(t);t.labelStyle=r;const{shapeSvg:n,bbox:a,halfPadding:o}=await nt(e,t,at(t)),l=a.width/2+o+5,c=a.width/2+o;let h;const{cssStyles:u}=t;if(t.look==="handDrawn"){const g=G.svg(n),m=V(t,{roughness:.2,strokeWidth:2.5}),x=V(t,{roughness:.2,strokeWidth:1.5}),y=g.circle(0,0,l*2,m),_=g.circle(0,0,c*2,x);h=n.insert("g",":first-child"),h.attr("class",Kt(t.cssClasses)).attr("style",Kt(u)),(f=h.node())==null||f.appendChild(y),(p=h.node())==null||p.appendChild(_)}else{h=n.insert("g",":first-child");const g=h.insert("circle",":first-child"),m=h.insert("circle");h.attr("class","basic label-container").attr("style",i),g.attr("class","outer-circle").attr("style",i).attr("r",l).attr("cx",0).attr("cy",0),m.attr("class","inner-circle").attr("style",i).attr("r",c).attr("cx",0).attr("cy",0)}return Q(t,h),t.intersect=function(g){return P.info("DoubleCircle intersect",t,l,g),Y.circle(t,l,g)},n}d(fd,"doublecircle");function pd(e,t,{config:{themeVariables:r}}){const{labelStyles:i,nodeStyles:n}=J(t);t.label="",t.labelStyle=i;const a=e.insert("g").attr("class",at(t)).attr("id",t.domId??t.id),o=7,{cssStyles:s}=t,l=G.svg(a),{nodeBorder:c}=r,h=V(t,{fillStyle:"solid"});t.look!=="handDrawn"&&(h.roughness=0);const u=l.circle(0,0,o*2,h),f=a.insert(()=>u,":first-child");return f.selectAll("path").attr("style",`fill: ${c} !important;`),s&&s.length>0&&t.look!=="handDrawn"&&f.selectAll("path").attr("style",s),n&&t.look!=="handDrawn"&&f.selectAll("path").attr("style",n),Q(t,f),t.intersect=function(p){return P.info("filledCircle intersect",t,{radius:o,point:p}),Y.circle(t,o,p)},a}d(pd,"filledCircle");async function dd(e,t){const{labelStyles:r,nodeStyles:i}=J(t);t.labelStyle=r;const{shapeSvg:n,bbox:a,label:o}=await nt(e,t,at(t)),s=a.width+(t.padding??0),l=s+a.height,c=s+a.height,h=[{x:0,y:-l},{x:c,y:-l},{x:c/2,y:0}],{cssStyles:u}=t,f=G.svg(n),p=V(t,{});t.look!=="handDrawn"&&(p.roughness=0,p.fillStyle="solid");const g=ct(h),m=f.path(g,p),x=n.insert(()=>m,":first-child").attr("transform",`translate(${-l/2}, ${l/2})`);return u&&t.look!=="handDrawn"&&x.selectChildren("path").attr("style",u),i&&t.look!=="handDrawn"&&x.selectChildren("path").attr("style",i),t.width=s,t.height=l,Q(t,x),o.attr("transform",`translate(${-a.width/2-(a.x-(a.left??0))}, ${-l/2+(t.padding??0)/2+(a.y-(a.top??0))})`),t.intersect=function(y){return P.info("Triangle intersect",t,h,y),Y.polygon(t,h,y)},n}d(dd,"flippedTriangle");function gd(e,t,{dir:r,config:{state:i,themeVariables:n}}){const{nodeStyles:a}=J(t);t.label="";const o=e.insert("g").attr("class",at(t)).attr("id",t.domId??t.id),{cssStyles:s}=t;let l=Math.max(70,(t==null?void 0:t.width)??0),c=Math.max(10,(t==null?void 0:t.height)??0);r==="LR"&&(l=Math.max(10,(t==null?void 0:t.width)??0),c=Math.max(70,(t==null?void 0:t.height)??0));const h=-1*l/2,u=-1*c/2,f=G.svg(o),p=V(t,{stroke:n.lineColor,fill:n.lineColor});t.look!=="handDrawn"&&(p.roughness=0,p.fillStyle="solid");const g=f.rectangle(h,u,l,c,p),m=o.insert(()=>g,":first-child");s&&t.look!=="handDrawn"&&m.selectAll("path").attr("style",s),a&&t.look!=="handDrawn"&&m.selectAll("path").attr("style",a),Q(t,m);const x=(i==null?void 0:i.padding)??0;return t.width&&t.height&&(t.width+=x/2||0,t.height+=x/2||0),t.intersect=function(y){return Y.rect(t,y)},o}d(gd,"forkJoin");async function md(e,t){const{labelStyles:r,nodeStyles:i}=J(t);t.labelStyle=r;const n=80,a=50,{shapeSvg:o,bbox:s}=await nt(e,t,at(t)),l=Math.max(n,s.width+(t.padding??0)*2,(t==null?void 0:t.width)??0),c=Math.max(a,s.height+(t.padding??0)*2,(t==null?void 0:t.height)??0),h=c/2,{cssStyles:u}=t,f=G.svg(o),p=V(t,{});t.look!=="handDrawn"&&(p.roughness=0,p.fillStyle="solid");const g=[{x:-l/2,y:-c/2},{x:l/2-h,y:-c/2},...el(-l/2+h,0,h,50,90,270),{x:l/2-h,y:c/2},{x:-l/2,y:c/2}],m=ct(g),x=f.path(m,p),y=o.insert(()=>x,":first-child");return y.attr("class","basic label-container"),u&&t.look!=="handDrawn"&&y.selectChildren("path").attr("style",u),i&&t.look!=="handDrawn"&&y.selectChildren("path").attr("style",i),Q(t,y),t.intersect=function(_){return P.info("Pill intersect",t,{radius:h,point:_}),Y.polygon(t,g,_)},o}d(md,"halfRoundedRectangle");var pk=d((e,t,r,i,n)=>[`M${e+n},${t}`,`L${e+r-n},${t}`,`L${e+r},${t-i/2}`,`L${e+r-n},${t-i}`,`L${e+n},${t-i}`,`L${e},${t-i/2}`,"Z"].join(" "),"createHexagonPathD");async function yd(e,t){const{labelStyles:r,nodeStyles:i}=J(t);t.labelStyle=r;const{shapeSvg:n,bbox:a}=await nt(e,t,at(t)),o=4,s=a.height+t.padding,l=s/o,c=a.width+2*l+t.padding,h=[{x:l,y:0},{x:c-l,y:0},{x:c,y:-s/2},{x:c-l,y:-s},{x:l,y:-s},{x:0,y:-s/2}];let u;const{cssStyles:f}=t;if(t.look==="handDrawn"){const p=G.svg(n),g=V(t,{}),m=pk(0,0,c,s,l),x=p.path(m,g);u=n.insert(()=>x,":first-child").attr("transform",`translate(${-c/2}, ${s/2})`),f&&u.attr("style",f)}else u=He(n,c,s,h);return i&&u.attr("style",i),t.width=c,t.height=s,Q(t,u),t.intersect=function(p){return Y.polygon(t,h,p)},n}d(yd,"hexagon");async function xd(e,t){const{labelStyles:r,nodeStyles:i}=J(t);t.label="",t.labelStyle=r;const{shapeSvg:n}=await nt(e,t,at(t)),a=Math.max(30,(t==null?void 0:t.width)??0),o=Math.max(30,(t==null?void 0:t.height)??0),{cssStyles:s}=t,l=G.svg(n),c=V(t,{});t.look!=="handDrawn"&&(c.roughness=0,c.fillStyle="solid");const h=[{x:0,y:0},{x:a,y:0},{x:0,y:o},{x:a,y:o}],u=ct(h),f=l.path(u,c),p=n.insert(()=>f,":first-child");return p.attr("class","basic label-container"),s&&t.look!=="handDrawn"&&p.selectChildren("path").attr("style",s),i&&t.look!=="handDrawn"&&p.selectChildren("path").attr("style",i),p.attr("transform",`translate(${-a/2}, ${-o/2})`),Q(t,p),t.intersect=function(g){return P.info("Pill intersect",t,{points:h}),Y.polygon(t,h,g)},n}d(xd,"hourglass");async function bd(e,t,{config:{themeVariables:r,flowchart:i}}){const{labelStyles:n}=J(t);t.labelStyle=n;const a=t.assetHeight??48,o=t.assetWidth??48,s=Math.max(a,o),l=i==null?void 0:i.wrappingWidth;t.width=Math.max(s,l??0);const{shapeSvg:c,bbox:h,label:u}=await nt(e,t,"icon-shape default"),f=t.pos==="t",p=s,g=s,{nodeBorder:m}=r,{stylesMap:x}=di(t),y=-g/2,_=-p/2,C=t.label?8:0,k=G.svg(c),v=V(t,{stroke:"none",fill:"none"});t.look!=="handDrawn"&&(v.roughness=0,v.fillStyle="solid");const F=k.rectangle(y,_,g,p,v),M=Math.max(g,h.width),$=p+h.height+C,H=k.rectangle(-M/2,-$/2,M,$,{...v,fill:"transparent",stroke:"none"}),z=c.insert(()=>F,":first-child"),E=c.insert(()=>H);if(t.icon){const q=c.append("g");q.html(`<g>${await ma(t.icon,{height:s,width:s,fallbackPrefix:""})}</g>`);const O=q.node().getBBox(),A=O.width,L=O.height,T=O.x,D=O.y;q.attr("transform",`translate(${-A/2-T},${f?h.height/2+C/2-L/2-D:-h.height/2-C/2-L/2-D})`),q.attr("style",`color: ${x.get("stroke")??m};`)}return u.attr("transform",`translate(${-h.width/2-(h.x-(h.left??0))},${f?-$/2:$/2-h.height})`),z.attr("transform",`translate(0,${f?h.height/2+C/2:-h.height/2-C/2})`),Q(t,E),t.intersect=function(q){if(P.info("iconSquare intersect",t,q),!t.label)return Y.rect(t,q);const O=t.x??0,A=t.y??0,L=t.height??0;let T=[];return f?T=[{x:O-h.width/2,y:A-L/2},{x:O+h.width/2,y:A-L/2},{x:O+h.width/2,y:A-L/2+h.height+C},{x:O+g/2,y:A-L/2+h.height+C},{x:O+g/2,y:A+L/2},{x:O-g/2,y:A+L/2},{x:O-g/2,y:A-L/2+h.height+C},{x:O-h.width/2,y:A-L/2+h.height+C}]:T=[{x:O-g/2,y:A-L/2},{x:O+g/2,y:A-L/2},{x:O+g/2,y:A-L/2+p},{x:O+h.width/2,y:A-L/2+p},{x:O+h.width/2/2,y:A+L/2},{x:O-h.width/2,y:A+L/2},{x:O-h.width/2,y:A-L/2+p},{x:O-g/2,y:A-L/2+p}],Y.polygon(t,T,q)},c}d(bd,"icon");async function _d(e,t,{config:{themeVariables:r,flowchart:i}}){const{labelStyles:n}=J(t);t.labelStyle=n;const a=t.assetHeight??48,o=t.assetWidth??48,s=Math.max(a,o),l=i==null?void 0:i.wrappingWidth;t.width=Math.max(s,l??0);const{shapeSvg:c,bbox:h,label:u}=await nt(e,t,"icon-shape default"),f=20,p=t.label?8:0,g=t.pos==="t",{nodeBorder:m,mainBkg:x}=r,{stylesMap:y}=di(t),_=G.svg(c),C=V(t,{});t.look!=="handDrawn"&&(C.roughness=0,C.fillStyle="solid");const k=y.get("fill");C.stroke=k??x;const v=c.append("g");t.icon&&v.html(`<g>${await ma(t.icon,{height:s,width:s,fallbackPrefix:""})}</g>`);const F=v.node().getBBox(),M=F.width,$=F.height,H=F.x,z=F.y,E=Math.max(M,$)*Math.SQRT2+f*2,q=_.circle(0,0,E,C),O=Math.max(E,h.width),A=E+h.height+p,L=_.rectangle(-O/2,-A/2,O,A,{...C,fill:"transparent",stroke:"none"}),T=c.insert(()=>q,":first-child"),D=c.insert(()=>L);return v.attr("transform",`translate(${-M/2-H},${g?h.height/2+p/2-$/2-z:-h.height/2-p/2-$/2-z})`),v.attr("style",`color: ${y.get("stroke")??m};`),u.attr("transform",`translate(${-h.width/2-(h.x-(h.left??0))},${g?-A/2:A/2-h.height})`),T.attr("transform",`translate(0,${g?h.height/2+p/2:-h.height/2-p/2})`),Q(t,D),t.intersect=function(B){return P.info("iconSquare intersect",t,B),Y.rect(t,B)},c}d(_d,"iconCircle");async function Cd(e,t,{config:{themeVariables:r,flowchart:i}}){const{labelStyles:n}=J(t);t.labelStyle=n;const a=t.assetHeight??48,o=t.assetWidth??48,s=Math.max(a,o),l=i==null?void 0:i.wrappingWidth;t.width=Math.max(s,l??0);const{shapeSvg:c,bbox:h,halfPadding:u,label:f}=await nt(e,t,"icon-shape default"),p=t.pos==="t",g=s+u*2,m=s+u*2,{nodeBorder:x,mainBkg:y}=r,{stylesMap:_}=di(t),C=-m/2,k=-g/2,v=t.label?8:0,F=G.svg(c),M=V(t,{});t.look!=="handDrawn"&&(M.roughness=0,M.fillStyle="solid");const $=_.get("fill");M.stroke=$??y;const H=F.path(We(C,k,m,g,5),M),z=Math.max(m,h.width),E=g+h.height+v,q=F.rectangle(-z/2,-E/2,z,E,{...M,fill:"transparent",stroke:"none"}),O=c.insert(()=>H,":first-child").attr("class","icon-shape2"),A=c.insert(()=>q);if(t.icon){const L=c.append("g");L.html(`<g>${await ma(t.icon,{height:s,width:s,fallbackPrefix:""})}</g>`);const T=L.node().getBBox(),D=T.width,B=T.height,j=T.x,U=T.y;L.attr("transform",`translate(${-D/2-j},${p?h.height/2+v/2-B/2-U:-h.height/2-v/2-B/2-U})`),L.attr("style",`color: ${_.get("stroke")??x};`)}return f.attr("transform",`translate(${-h.width/2-(h.x-(h.left??0))},${p?-E/2:E/2-h.height})`),O.attr("transform",`translate(0,${p?h.height/2+v/2:-h.height/2-v/2})`),Q(t,A),t.intersect=function(L){if(P.info("iconSquare intersect",t,L),!t.label)return Y.rect(t,L);const T=t.x??0,D=t.y??0,B=t.height??0;let j=[];return p?j=[{x:T-h.width/2,y:D-B/2},{x:T+h.width/2,y:D-B/2},{x:T+h.width/2,y:D-B/2+h.height+v},{x:T+m/2,y:D-B/2+h.height+v},{x:T+m/2,y:D+B/2},{x:T-m/2,y:D+B/2},{x:T-m/2,y:D-B/2+h.height+v},{x:T-h.width/2,y:D-B/2+h.height+v}]:j=[{x:T-m/2,y:D-B/2},{x:T+m/2,y:D-B/2},{x:T+m/2,y:D-B/2+g},{x:T+h.width/2,y:D-B/2+g},{x:T+h.width/2/2,y:D+B/2},{x:T-h.width/2,y:D+B/2},{x:T-h.width/2,y:D-B/2+g},{x:T-m/2,y:D-B/2+g}],Y.polygon(t,j,L)},c}d(Cd,"iconRounded");async function wd(e,t,{config:{themeVariables:r,flowchart:i}}){const{labelStyles:n}=J(t);t.labelStyle=n;const a=t.assetHeight??48,o=t.assetWidth??48,s=Math.max(a,o),l=i==null?void 0:i.wrappingWidth;t.width=Math.max(s,l??0);const{shapeSvg:c,bbox:h,halfPadding:u,label:f}=await nt(e,t,"icon-shape default"),p=t.pos==="t",g=s+u*2,m=s+u*2,{nodeBorder:x,mainBkg:y}=r,{stylesMap:_}=di(t),C=-m/2,k=-g/2,v=t.label?8:0,F=G.svg(c),M=V(t,{});t.look!=="handDrawn"&&(M.roughness=0,M.fillStyle="solid");const $=_.get("fill");M.stroke=$??y;const H=F.path(We(C,k,m,g,.1),M),z=Math.max(m,h.width),E=g+h.height+v,q=F.rectangle(-z/2,-E/2,z,E,{...M,fill:"transparent",stroke:"none"}),O=c.insert(()=>H,":first-child"),A=c.insert(()=>q);if(t.icon){const L=c.append("g");L.html(`<g>${await ma(t.icon,{height:s,width:s,fallbackPrefix:""})}</g>`);const T=L.node().getBBox(),D=T.width,B=T.height,j=T.x,U=T.y;L.attr("transform",`translate(${-D/2-j},${p?h.height/2+v/2-B/2-U:-h.height/2-v/2-B/2-U})`),L.attr("style",`color: ${_.get("stroke")??x};`)}return f.attr("transform",`translate(${-h.width/2-(h.x-(h.left??0))},${p?-E/2:E/2-h.height})`),O.attr("transform",`translate(0,${p?h.height/2+v/2:-h.height/2-v/2})`),Q(t,A),t.intersect=function(L){if(P.info("iconSquare intersect",t,L),!t.label)return Y.rect(t,L);const T=t.x??0,D=t.y??0,B=t.height??0;let j=[];return p?j=[{x:T-h.width/2,y:D-B/2},{x:T+h.width/2,y:D-B/2},{x:T+h.width/2,y:D-B/2+h.height+v},{x:T+m/2,y:D-B/2+h.height+v},{x:T+m/2,y:D+B/2},{x:T-m/2,y:D+B/2},{x:T-m/2,y:D-B/2+h.height+v},{x:T-h.width/2,y:D-B/2+h.height+v}]:j=[{x:T-m/2,y:D-B/2},{x:T+m/2,y:D-B/2},{x:T+m/2,y:D-B/2+g},{x:T+h.width/2,y:D-B/2+g},{x:T+h.width/2/2,y:D+B/2},{x:T-h.width/2,y:D+B/2},{x:T-h.width/2,y:D-B/2+g},{x:T-m/2,y:D-B/2+g}],Y.polygon(t,j,L)},c}d(wd,"iconSquare");async function kd(e,t,{config:{flowchart:r}}){const i=new Image;i.src=(t==null?void 0:t.img)??"",await i.decode();const n=Number(i.naturalWidth.toString().replace("px","")),a=Number(i.naturalHeight.toString().replace("px",""));t.imageAspectRatio=n/a;const{labelStyles:o}=J(t);t.labelStyle=o;const s=r==null?void 0:r.wrappingWidth;t.defaultWidth=r==null?void 0:r.wrappingWidth;const l=Math.max(t.label?s??0:0,(t==null?void 0:t.assetWidth)??n),c=t.constraint==="on"&&t!=null&&t.assetHeight?t.assetHeight*t.imageAspectRatio:l,h=t.constraint==="on"?c/t.imageAspectRatio:(t==null?void 0:t.assetHeight)??a;t.width=Math.max(c,s??0);const{shapeSvg:u,bbox:f,label:p}=await nt(e,t,"image-shape default"),g=t.pos==="t",m=-c/2,x=-h/2,y=t.label?8:0,_=G.svg(u),C=V(t,{});t.look!=="handDrawn"&&(C.roughness=0,C.fillStyle="solid");const k=_.rectangle(m,x,c,h,C),v=Math.max(c,f.width),F=h+f.height+y,M=_.rectangle(-v/2,-F/2,v,F,{...C,fill:"none",stroke:"none"}),$=u.insert(()=>k,":first-child"),H=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},${g?F/2-h:-F/2})`)}return p.attr("transform",`translate(${-f.width/2-(f.x-(f.left??0))},${g?-h/2-f.height/2-y/2:h/2-f.height/2+y/2})`),$.attr("transform",`translate(0,${g?f.height/2+y/2:-f.height/2-y/2})`),Q(t,H),t.intersect=function(z){if(P.info("iconSquare intersect",t,z),!t.label)return Y.rect(t,z);const E=t.x??0,q=t.y??0,O=t.height??0;let A=[];return g?A=[{x:E-f.width/2,y:q-O/2},{x:E+f.width/2,y:q-O/2},{x:E+f.width/2,y:q-O/2+f.height+y},{x:E+c/2,y:q-O/2+f.height+y},{x:E+c/2,y:q+O/2},{x:E-c/2,y:q+O/2},{x:E-c/2,y:q-O/2+f.height+y},{x:E-f.width/2,y:q-O/2+f.height+y}]:A=[{x:E-c/2,y:q-O/2},{x:E+c/2,y:q-O/2},{x:E+c/2,y:q-O/2+h},{x:E+f.width/2,y:q-O/2+h},{x:E+f.width/2/2,y:q+O/2},{x:E-f.width/2,y:q+O/2},{x:E-f.width/2,y:q-O/2+h},{x:E-c/2,y:q-O/2+h}],Y.polygon(t,A,z)},u}d(kd,"imageSquare");async function vd(e,t){const{labelStyles:r,nodeStyles:i}=J(t);t.labelStyle=r;const{shapeSvg:n,bbox:a}=await nt(e,t,at(t)),o=Math.max(a.width+(t.padding??0)*2,(t==null?void 0:t.width)??0),s=Math.max(a.height+(t.padding??0)*2,(t==null?void 0:t.height)??0),l=[{x:0,y:0},{x:o,y:0},{x:o+3*s/6,y:-s},{x:-3*s/6,y:-s}];let c;const{cssStyles:h}=t;if(t.look==="handDrawn"){const u=G.svg(n),f=V(t,{}),p=ct(l),g=u.path(p,f);c=n.insert(()=>g,":first-child").attr("transform",`translate(${-o/2}, ${s/2})`),h&&c.attr("style",h)}else c=He(n,o,s,l);return i&&c.attr("style",i),t.width=o,t.height=s,Q(t,c),t.intersect=function(u){return Y.polygon(t,l,u)},n}d(vd,"inv_trapezoid");async function Ba(e,t,r){const{labelStyles:i,nodeStyles:n}=J(t);t.labelStyle=i;const{shapeSvg:a,bbox:o}=await nt(e,t,at(t)),s=Math.max(o.width+r.labelPaddingX*2,(t==null?void 0:t.width)||0),l=Math.max(o.height+r.labelPaddingY*2,(t==null?void 0:t.height)||0),c=-s/2,h=-l/2;let u,{rx:f,ry:p}=t;const{cssStyles:g}=t;if(r!=null&&r.rx&&r.ry&&(f=r.rx,p=r.ry),t.look==="handDrawn"){const m=G.svg(a),x=V(t,{}),y=f||p?m.path(We(c,h,s,l,f||0),x):m.rectangle(c,h,s,l,x);u=a.insert(()=>y,":first-child"),u.attr("class","basic label-container").attr("style",Kt(g))}else u=a.insert("rect",":first-child"),u.attr("class","basic label-container").attr("style",n).attr("rx",Kt(f)).attr("ry",Kt(p)).attr("x",c).attr("y",h).attr("width",s).attr("height",l);return Q(t,u),t.intersect=function(m){return Y.rect(t,m)},a}d(Ba,"drawRect");async function Sd(e,t){const{shapeSvg:r,bbox:i,label:n}=await nt(e,t,"label"),a=r.insert("rect",":first-child");return a.attr("width",.1).attr("height",.1),r.attr("class","label edgeLabel"),n.attr("transform",`translate(${-(i.width/2)-(i.x-(i.left??0))}, ${-(i.height/2)-(i.y-(i.top??0))})`),Q(t,a),t.intersect=function(l){return Y.rect(t,l)},r}d(Sd,"labelRect");async function Td(e,t){const{labelStyles:r,nodeStyles:i}=J(t);t.labelStyle=r;const{shapeSvg:n,bbox:a}=await nt(e,t,at(t)),o=Math.max(a.width+(t.padding??0),(t==null?void 0:t.width)??0),s=Math.max(a.height+(t.padding??0),(t==null?void 0:t.height)??0),l=[{x:0,y:0},{x:o+3*s/6,y:0},{x:o,y:-s},{x:-(3*s)/6,y:-s}];let c;const{cssStyles:h}=t;if(t.look==="handDrawn"){const u=G.svg(n),f=V(t,{}),p=ct(l),g=u.path(p,f);c=n.insert(()=>g,":first-child").attr("transform",`translate(${-o/2}, ${s/2})`),h&&c.attr("style",h)}else c=He(n,o,s,l);return i&&c.attr("style",i),t.width=o,t.height=s,Q(t,c),t.intersect=function(u){return Y.polygon(t,l,u)},n}d(Td,"lean_left");async function Ad(e,t){const{labelStyles:r,nodeStyles:i}=J(t);t.labelStyle=r;const{shapeSvg:n,bbox:a}=await nt(e,t,at(t)),o=Math.max(a.width+(t.padding??0),(t==null?void 0:t.width)??0),s=Math.max(a.height+(t.padding??0),(t==null?void 0:t.height)??0),l=[{x:-3*s/6,y:0},{x:o,y:0},{x:o+3*s/6,y:-s},{x:0,y:-s}];let c;const{cssStyles:h}=t;if(t.look==="handDrawn"){const u=G.svg(n),f=V(t,{}),p=ct(l),g=u.path(p,f);c=n.insert(()=>g,":first-child").attr("transform",`translate(${-o/2}, ${s/2})`),h&&c.attr("style",h)}else c=He(n,o,s,l);return i&&c.attr("style",i),t.width=o,t.height=s,Q(t,c),t.intersect=function(u){return Y.polygon(t,l,u)},n}d(Ad,"lean_right");function Ld(e,t){const{labelStyles:r,nodeStyles:i}=J(t);t.label="",t.labelStyle=r;const n=e.insert("g").attr("class",at(t)).attr("id",t.domId??t.id),{cssStyles:a}=t,o=Math.max(35,(t==null?void 0:t.width)??0),s=Math.max(35,(t==null?void 0:t.height)??0),l=7,c=[{x:o,y:0},{x:0,y:s+l/2},{x:o-2*l,y:s+l/2},{x:0,y:2*s},{x:o,y:s-l/2},{x:2*l,y:s-l/2}],h=G.svg(n),u=V(t,{});t.look!=="handDrawn"&&(u.roughness=0,u.fillStyle="solid");const f=ct(c),p=h.path(f,u),g=n.insert(()=>p,":first-child");return a&&t.look!=="handDrawn"&&g.selectAll("path").attr("style",a),i&&t.look!=="handDrawn"&&g.selectAll("path").attr("style",i),g.attr("transform",`translate(-${o/2},${-s})`),Q(t,g),t.intersect=function(m){return P.info("lightningBolt intersect",t,m),Y.polygon(t,c,m)},n}d(Ld,"lightningBolt");var dk=d((e,t,r,i,n,a,o)=>[`M${e},${t+a}`,`a${n},${a} 0,0,0 ${r},0`,`a${n},${a} 0,0,0 ${-r},0`,`l0,${i}`,`a${n},${a} 0,0,0 ${r},0`,`l0,${-i}`,`M${e},${t+a+o}`,`a${n},${a} 0,0,0 ${r},0`].join(" "),"createCylinderPathD"),gk=d((e,t,r,i,n,a,o)=>[`M${e},${t+a}`,`M${e+r},${t+a}`,`a${n},${a} 0,0,0 ${-r},0`,`l0,${i}`,`a${n},${a} 0,0,0 ${r},0`,`l0,${-i}`,`M${e},${t+a+o}`,`a${n},${a} 0,0,0 ${r},0`].join(" "),"createOuterCylinderPathD"),mk=d((e,t,r,i,n,a)=>[`M${e-r/2},${-i/2}`,`a${n},${a} 0,0,0 ${r},0`].join(" "),"createInnerCylinderPathD");async function Bd(e,t){const{labelStyles:r,nodeStyles:i}=J(t);t.labelStyle=r;const{shapeSvg:n,bbox:a,label:o}=await nt(e,t,at(t)),s=Math.max(a.width+(t.padding??0),t.width??0),l=s/2,c=l/(2.5+s/50),h=Math.max(a.height+c+(t.padding??0),t.height??0),u=h*.1;let f;const{cssStyles:p}=t;if(t.look==="handDrawn"){const g=G.svg(n),m=gk(0,0,s,h,l,c,u),x=mk(0,c,s,h,l,c),y=V(t,{}),_=g.path(m,y),C=g.path(x,y);n.insert(()=>C,":first-child").attr("class","line"),f=n.insert(()=>_,":first-child"),f.attr("class","basic label-container"),p&&f.attr("style",p)}else{const g=dk(0,0,s,h,l,c,u);f=n.insert("path",":first-child").attr("d",g).attr("class","basic label-container").attr("style",Kt(p)).attr("style",i)}return f.attr("label-offset-y",c),f.attr("transform",`translate(${-s/2}, ${-(h/2+c)})`),Q(t,f),o.attr("transform",`translate(${-(a.width/2)-(a.x-(a.left??0))}, ${-(a.height/2)+c-(a.y-(a.top??0))})`),t.intersect=function(g){const m=Y.rect(t,g),x=m.x-(t.x??0);if(l!=0&&(Math.abs(x)<(t.width??0)/2||Math.abs(x)==(t.width??0)/2&&Math.abs(m.y-(t.y??0))>(t.height??0)/2-c)){let y=c*c*(1-x*x/(l*l));y>0&&(y=Math.sqrt(y)),y=c-y,g.y-(t.y??0)>0&&(y=-y),m.y+=y}return m},n}d(Bd,"linedCylinder");async function Md(e,t){const{labelStyles:r,nodeStyles:i}=J(t);t.labelStyle=r;const{shapeSvg:n,bbox:a,label:o}=await nt(e,t,at(t)),s=Math.max(a.width+(t.padding??0)*2,(t==null?void 0:t.width)??0),l=Math.max(a.height+(t.padding??0)*2,(t==null?void 0:t.height)??0),c=l/4,h=l+c,{cssStyles:u}=t,f=G.svg(n),p=V(t,{});t.look!=="handDrawn"&&(p.roughness=0,p.fillStyle="solid");const g=[{x:-s/2-s/2*.1,y:-h/2},{x:-s/2-s/2*.1,y:h/2},...er(-s/2-s/2*.1,h/2,s/2+s/2*.1,h/2,c,.8),{x:s/2+s/2*.1,y:-h/2},{x:-s/2-s/2*.1,y:-h/2},{x:-s/2,y:-h/2},{x:-s/2,y:h/2*1.1},{x:-s/2,y:-h/2}],m=f.polygon(g.map(y=>[y.x,y.y]),p),x=n.insert(()=>m,":first-child");return x.attr("class","basic label-container"),u&&t.look!=="handDrawn"&&x.selectAll("path").attr("style",u),i&&t.look!=="handDrawn"&&x.selectAll("path").attr("style",i),x.attr("transform",`translate(0,${-c/2})`),o.attr("transform",`translate(${-s/2+(t.padding??0)+s/2*.1/2-(a.x-(a.left??0))},${-l/2+(t.padding??0)-c/2-(a.y-(a.top??0))})`),Q(t,x),t.intersect=function(y){return Y.polygon(t,g,y)},n}d(Md,"linedWaveEdgedRect");async function Ed(e,t){const{labelStyles:r,nodeStyles:i}=J(t);t.labelStyle=r;const{shapeSvg:n,bbox:a,label:o}=await nt(e,t,at(t)),s=Math.max(a.width+(t.padding??0)*2,(t==null?void 0:t.width)??0),l=Math.max(a.height+(t.padding??0)*2,(t==null?void 0:t.height)??0),c=5,h=-s/2,u=-l/2,{cssStyles:f}=t,p=G.svg(n),g=V(t,{}),m=[{x:h-c,y:u+c},{x:h-c,y:u+l+c},{x:h+s-c,y:u+l+c},{x:h+s-c,y:u+l},{x:h+s,y:u+l},{x:h+s,y:u+l-c},{x:h+s+c,y:u+l-c},{x:h+s+c,y:u-c},{x:h+c,y:u-c},{x:h+c,y:u},{x:h,y:u},{x:h,y:u+c}],x=[{x:h,y:u+c},{x:h+s-c,y:u+c},{x:h+s-c,y:u+l},{x:h+s,y:u+l},{x:h+s,y:u},{x:h,y:u}];t.look!=="handDrawn"&&(g.roughness=0,g.fillStyle="solid");const y=ct(m),_=p.path(y,g),C=ct(x),k=p.path(C,{...g,fill:"none"}),v=n.insert(()=>k,":first-child");return v.insert(()=>_,":first-child"),v.attr("class","basic label-container"),f&&t.look!=="handDrawn"&&v.selectAll("path").attr("style",f),i&&t.look!=="handDrawn"&&v.selectAll("path").attr("style",i),o.attr("transform",`translate(${-(a.width/2)-c-(a.x-(a.left??0))}, ${-(a.height/2)+c-(a.y-(a.top??0))})`),Q(t,v),t.intersect=function(F){return Y.polygon(t,m,F)},n}d(Ed,"multiRect");async function Fd(e,t){const{labelStyles:r,nodeStyles:i}=J(t);t.labelStyle=r;const{shapeSvg:n,bbox:a,label:o}=await nt(e,t,at(t)),s=Math.max(a.width+(t.padding??0)*2,(t==null?void 0:t.width)??0),l=Math.max(a.height+(t.padding??0)*2,(t==null?void 0:t.height)??0),c=l/4,h=l+c,u=-s/2,f=-h/2,p=5,{cssStyles:g}=t,m=er(u-p,f+h+p,u+s-p,f+h+p,c,.8),x=m==null?void 0:m[m.length-1],y=[{x:u-p,y:f+p},{x:u-p,y:f+h+p},...m,{x:u+s-p,y:x.y-p},{x:u+s,y:x.y-p},{x:u+s,y:x.y-2*p},{x:u+s+p,y:x.y-2*p},{x:u+s+p,y:f-p},{x:u+p,y:f-p},{x:u+p,y:f},{x:u,y:f},{x:u,y:f+p}],_=[{x:u,y:f+p},{x:u+s-p,y:f+p},{x:u+s-p,y:x.y-p},{x:u+s,y:x.y-p},{x:u+s,y:f},{x:u,y:f}],C=G.svg(n),k=V(t,{});t.look!=="handDrawn"&&(k.roughness=0,k.fillStyle="solid");const v=ct(y),F=C.path(v,k),M=ct(_),$=C.path(M,k),H=n.insert(()=>F,":first-child");return H.insert(()=>$),H.attr("class","basic label-container"),g&&t.look!=="handDrawn"&&H.selectAll("path").attr("style",g),i&&t.look!=="handDrawn"&&H.selectAll("path").attr("style",i),H.attr("transform",`translate(0,${-c/2})`),o.attr("transform",`translate(${-(a.width/2)-p-(a.x-(a.left??0))}, ${-(a.height/2)+p-c/2-(a.y-(a.top??0))})`),Q(t,H),t.intersect=function(z){return Y.polygon(t,y,z)},n}d(Fd,"multiWaveEdgedRectangle");async function $d(e,t,{config:{themeVariables:r}}){var y;const{labelStyles:i,nodeStyles:n}=J(t);t.labelStyle=i,t.useHtmlLabels||((y=_e().flowchart)==null?void 0:y.htmlLabels)!==!1||(t.centerLabel=!0);const{shapeSvg:o,bbox:s}=await nt(e,t,at(t)),l=Math.max(s.width+(t.padding??0)*2,(t==null?void 0:t.width)??0),c=Math.max(s.height+(t.padding??0)*2,(t==null?void 0:t.height)??0),h=-l/2,u=-c/2,{cssStyles:f}=t,p=G.svg(o),g=V(t,{fill:r.noteBkgColor,stroke:r.noteBorderColor});t.look!=="handDrawn"&&(g.roughness=0,g.fillStyle="solid");const m=p.rectangle(h,u,l,c,g),x=o.insert(()=>m,":first-child");return x.attr("class","basic label-container"),f&&t.look!=="handDrawn"&&x.selectAll("path").attr("style",f),n&&t.look!=="handDrawn"&&x.selectAll("path").attr("style",n),Q(t,x),t.intersect=function(_){return Y.rect(t,_)},o}d($d,"note");var yk=d((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 Dd(e,t){const{labelStyles:r,nodeStyles:i}=J(t);t.labelStyle=r;const{shapeSvg:n,bbox:a}=await nt(e,t,at(t)),o=a.width+t.padding,s=a.height+t.padding,l=o+s,c=[{x:l/2,y:0},{x:l,y:-l/2},{x:l/2,y:-l},{x:0,y:-l/2}];let h;const{cssStyles:u}=t;if(t.look==="handDrawn"){const f=G.svg(n),p=V(t,{}),g=yk(0,0,l),m=f.path(g,p);h=n.insert(()=>m,":first-child").attr("transform",`translate(${-l/2}, ${l/2})`),u&&h.attr("style",u)}else h=He(n,l,l,c);return i&&h.attr("style",i),Q(t,h),t.intersect=function(f){return P.debug(`APA12 Intersect called SPLIT
165
+ point:`,f,`
166
+ node:
167
+ `,t,`
168
+ res:`,Y.polygon(t,c,f)),Y.polygon(t,c,f)},n}d(Dd,"question");async function Od(e,t){const{labelStyles:r,nodeStyles:i}=J(t);t.labelStyle=r;const{shapeSvg:n,bbox:a,label:o}=await nt(e,t,at(t)),s=Math.max(a.width+(t.padding??0),(t==null?void 0:t.width)??0),l=Math.max(a.height+(t.padding??0),(t==null?void 0:t.height)??0),c=-s/2,h=-l/2,u=h/2,f=[{x:c+u,y:h},{x:c,y:0},{x:c+u,y:-h},{x:-c,y:-h},{x:-c,y:h}],{cssStyles:p}=t,g=G.svg(n),m=V(t,{});t.look!=="handDrawn"&&(m.roughness=0,m.fillStyle="solid");const x=ct(f),y=g.path(x,m),_=n.insert(()=>y,":first-child");return _.attr("class","basic label-container"),p&&t.look!=="handDrawn"&&_.selectAll("path").attr("style",p),i&&t.look!=="handDrawn"&&_.selectAll("path").attr("style",i),_.attr("transform",`translate(${-u/2},0)`),o.attr("transform",`translate(${-u/2-a.width/2-(a.x-(a.left??0))}, ${-(a.height/2)-(a.y-(a.top??0))})`),Q(t,_),t.intersect=function(C){return Y.polygon(t,f,C)},n}d(Od,"rect_left_inv_arrow");async function Rd(e,t){var $,H;const{labelStyles:r,nodeStyles:i}=J(t);t.labelStyle=r;let n;t.cssClasses?n="node "+t.cssClasses:n="node default";const a=e.insert("g").attr("class",n).attr("id",t.domId||t.id),o=a.insert("g"),s=a.insert("g").attr("class","label").attr("style",i),l=t.description,c=t.label,h=s.node().appendChild(await xr(c,t.labelStyle,!0,!0));let u={width:0,height:0};if(qt((H=($=pt())==null?void 0:$.flowchart)==null?void 0:H.htmlLabels)){const z=h.children[0],E=ft(h);u=z.getBoundingClientRect(),E.attr("width",u.width),E.attr("height",u.height)}P.info("Text 2",l);const f=l||[],p=h.getBBox(),g=s.node().appendChild(await xr(f.join?f.join("<br/>"):f,t.labelStyle,!0,!0)),m=g.children[0],x=ft(g);u=m.getBoundingClientRect(),x.attr("width",u.width),x.attr("height",u.height);const y=(t.padding||0)/2;ft(g).attr("transform","translate( "+(u.width>p.width?0:(p.width-u.width)/2)+", "+(p.height+y+5)+")"),ft(h).attr("transform","translate( "+(u.width<p.width?0:-(p.width-u.width)/2)+", 0)"),u=s.node().getBBox(),s.attr("transform","translate("+-u.width/2+", "+(-u.height/2-y+3)+")");const _=u.width+(t.padding||0),C=u.height+(t.padding||0),k=-u.width/2-y,v=-u.height/2-y;let F,M;if(t.look==="handDrawn"){const z=G.svg(a),E=V(t,{}),q=z.path(We(k,v,_,C,t.rx||0),E),O=z.line(-u.width/2-y,-u.height/2-y+p.height+y,u.width/2+y,-u.height/2-y+p.height+y,E);M=a.insert(()=>(P.debug("Rough node insert CXC",q),O),":first-child"),F=a.insert(()=>(P.debug("Rough node insert CXC",q),q),":first-child")}else F=o.insert("rect",":first-child"),M=o.insert("line"),F.attr("class","outer title-state").attr("style",i).attr("x",-u.width/2-y).attr("y",-u.height/2-y).attr("width",u.width+(t.padding||0)).attr("height",u.height+(t.padding||0)),M.attr("class","divider").attr("x1",-u.width/2-y).attr("x2",u.width/2+y).attr("y1",-u.height/2-y+p.height+y).attr("y2",-u.height/2-y+p.height+y);return Q(t,F),t.intersect=function(z){return Y.rect(t,z)},a}d(Rd,"rectWithTitle");async function Id(e,t){const r={rx:5,ry:5,labelPaddingX:((t==null?void 0:t.padding)||0)*1,labelPaddingY:((t==null?void 0:t.padding)||0)*1};return Ba(e,t,r)}d(Id,"roundedRect");async function Pd(e,t){const{labelStyles:r,nodeStyles:i}=J(t);t.labelStyle=r;const{shapeSvg:n,bbox:a,label:o}=await nt(e,t,at(t)),s=(t==null?void 0:t.padding)??0,l=Math.max(a.width+(t.padding??0)*2,(t==null?void 0:t.width)??0),c=Math.max(a.height+(t.padding??0)*2,(t==null?void 0:t.height)??0),h=-a.width/2-s,u=-a.height/2-s,{cssStyles:f}=t,p=G.svg(n),g=V(t,{});t.look!=="handDrawn"&&(g.roughness=0,g.fillStyle="solid");const m=[{x:h,y:u},{x:h+l+8,y:u},{x:h+l+8,y:u+c},{x:h-8,y:u+c},{x:h-8,y:u},{x:h,y:u},{x:h,y:u+c}],x=p.polygon(m.map(_=>[_.x,_.y]),g),y=n.insert(()=>x,":first-child");return y.attr("class","basic label-container").attr("style",Kt(f)),i&&t.look!=="handDrawn"&&y.selectAll("path").attr("style",i),f&&t.look!=="handDrawn"&&y.selectAll("path").attr("style",i),o.attr("transform",`translate(${-l/2+4+(t.padding??0)-(a.x-(a.left??0))},${-c/2+(t.padding??0)-(a.y-(a.top??0))})`),Q(t,y),t.intersect=function(_){return Y.rect(t,_)},n}d(Pd,"shadedProcess");async function Nd(e,t){const{labelStyles:r,nodeStyles:i}=J(t);t.labelStyle=r;const{shapeSvg:n,bbox:a,label:o}=await nt(e,t,at(t)),s=Math.max(a.width+(t.padding??0)*2,(t==null?void 0:t.width)??0),l=Math.max(a.height+(t.padding??0)*2,(t==null?void 0:t.height)??0),c=-s/2,h=-l/2,{cssStyles:u}=t,f=G.svg(n),p=V(t,{});t.look!=="handDrawn"&&(p.roughness=0,p.fillStyle="solid");const g=[{x:c,y:h},{x:c,y:h+l},{x:c+s,y:h+l},{x:c+s,y:h-l/2}],m=ct(g),x=f.path(m,p),y=n.insert(()=>x,":first-child");return y.attr("class","basic label-container"),u&&t.look!=="handDrawn"&&y.selectChildren("path").attr("style",u),i&&t.look!=="handDrawn"&&y.selectChildren("path").attr("style",i),y.attr("transform",`translate(0, ${l/4})`),o.attr("transform",`translate(${-s/2+(t.padding??0)-(a.x-(a.left??0))}, ${-l/4+(t.padding??0)-(a.y-(a.top??0))})`),Q(t,y),t.intersect=function(_){return Y.polygon(t,g,_)},n}d(Nd,"slopedRect");async function zd(e,t){const r={rx:0,ry:0,labelPaddingX:((t==null?void 0:t.padding)||0)*2,labelPaddingY:((t==null?void 0:t.padding)||0)*1};return Ba(e,t,r)}d(zd,"squareRect");async function qd(e,t){const{labelStyles:r,nodeStyles:i}=J(t);t.labelStyle=r;const{shapeSvg:n,bbox:a}=await nt(e,t,at(t)),o=a.height+t.padding,s=a.width+o/4+t.padding;let l;const{cssStyles:c}=t;if(t.look==="handDrawn"){const h=G.svg(n),u=V(t,{}),f=We(-s/2,-o/2,s,o,o/2),p=h.path(f,u);l=n.insert(()=>p,":first-child"),l.attr("class","basic label-container").attr("style",Kt(c))}else l=n.insert("rect",":first-child"),l.attr("class","basic label-container").attr("style",i).attr("rx",o/2).attr("ry",o/2).attr("x",-s/2).attr("y",-o/2).attr("width",s).attr("height",o);return Q(t,l),t.intersect=function(h){return Y.rect(t,h)},n}d(qd,"stadium");async function Wd(e,t){return Ba(e,t,{rx:5,ry:5})}d(Wd,"state");function Hd(e,t,{config:{themeVariables:r}}){const{labelStyles:i,nodeStyles:n}=J(t);t.labelStyle=i;const{cssStyles:a}=t,{lineColor:o,stateBorder:s,nodeBorder:l}=r,c=e.insert("g").attr("class","node default").attr("id",t.domId||t.id),h=G.svg(c),u=V(t,{});t.look!=="handDrawn"&&(u.roughness=0,u.fillStyle="solid");const f=h.circle(0,0,14,{...u,stroke:o,strokeWidth:2}),p=s??l,g=h.circle(0,0,5,{...u,fill:p,stroke:p,strokeWidth:2,fillStyle:"solid"}),m=c.insert(()=>f,":first-child");return m.insert(()=>g),a&&m.selectAll("path").attr("style",a),n&&m.selectAll("path").attr("style",n),Q(t,m),t.intersect=function(x){return Y.circle(t,7,x)},c}d(Hd,"stateEnd");function jd(e,t,{config:{themeVariables:r}}){const{lineColor:i}=r,n=e.insert("g").attr("class","node default").attr("id",t.domId||t.id);let a;if(t.look==="handDrawn"){const s=G.svg(n).circle(0,0,14,Kw(i));a=n.insert(()=>s),a.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14)}else a=n.insert("circle",":first-child"),a.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14);return Q(t,a),t.intersect=function(o){return Y.circle(t,7,o)},n}d(jd,"stateStart");async function Ud(e,t){const{labelStyles:r,nodeStyles:i}=J(t);t.labelStyle=r;const{shapeSvg:n,bbox:a}=await nt(e,t,at(t)),o=((t==null?void 0:t.padding)||0)/2,s=a.width+t.padding,l=a.height+t.padding,c=-a.width/2-o,h=-a.height/2-o,u=[{x:0,y:0},{x:s,y:0},{x:s,y:-l},{x:0,y:-l},{x:0,y:0},{x:-8,y:0},{x:s+8,y:0},{x:s+8,y:-l},{x:-8,y:-l},{x:-8,y:0}];if(t.look==="handDrawn"){const f=G.svg(n),p=V(t,{}),g=f.rectangle(c-8,h,s+16,l,p),m=f.line(c,h,c,h+l,p),x=f.line(c+s,h,c+s,h+l,p);n.insert(()=>m,":first-child"),n.insert(()=>x,":first-child");const y=n.insert(()=>g,":first-child"),{cssStyles:_}=t;y.attr("class","basic label-container").attr("style",Kt(_)),Q(t,y)}else{const f=He(n,s,l,u);i&&f.attr("style",i),Q(t,f)}return t.intersect=function(f){return Y.polygon(t,u,f)},n}d(Ud,"subroutine");async function Yd(e,t){const{labelStyles:r,nodeStyles:i}=J(t);t.labelStyle=r;const{shapeSvg:n,bbox:a}=await nt(e,t,at(t)),o=Math.max(a.width+(t.padding??0)*2,(t==null?void 0:t.width)??0),s=Math.max(a.height+(t.padding??0)*2,(t==null?void 0:t.height)??0),l=-o/2,c=-s/2,h=.2*s,u=.2*s,{cssStyles:f}=t,p=G.svg(n),g=V(t,{}),m=[{x:l-h/2,y:c},{x:l+o+h/2,y:c},{x:l+o+h/2,y:c+s},{x:l-h/2,y:c+s}],x=[{x:l+o-h/2,y:c+s},{x:l+o+h/2,y:c+s},{x:l+o+h/2,y:c+s-u}];t.look!=="handDrawn"&&(g.roughness=0,g.fillStyle="solid");const y=ct(m),_=p.path(y,g),C=ct(x),k=p.path(C,{...g,fillStyle:"solid"}),v=n.insert(()=>k,":first-child");return v.insert(()=>_,":first-child"),v.attr("class","basic label-container"),f&&t.look!=="handDrawn"&&v.selectAll("path").attr("style",f),i&&t.look!=="handDrawn"&&v.selectAll("path").attr("style",i),Q(t,v),t.intersect=function(F){return Y.polygon(t,m,F)},n}d(Yd,"taggedRect");async function Gd(e,t){const{labelStyles:r,nodeStyles:i}=J(t);t.labelStyle=r;const{shapeSvg:n,bbox:a,label:o}=await nt(e,t,at(t)),s=Math.max(a.width+(t.padding??0)*2,(t==null?void 0:t.width)??0),l=Math.max(a.height+(t.padding??0)*2,(t==null?void 0:t.height)??0),c=l/4,h=.2*s,u=.2*l,f=l+c,{cssStyles:p}=t,g=G.svg(n),m=V(t,{});t.look!=="handDrawn"&&(m.roughness=0,m.fillStyle="solid");const x=[{x:-s/2-s/2*.1,y:f/2},...er(-s/2-s/2*.1,f/2,s/2+s/2*.1,f/2,c,.8),{x:s/2+s/2*.1,y:-f/2},{x:-s/2-s/2*.1,y:-f/2}],y=-s/2+s/2*.1,_=-f/2-u*.4,C=[{x:y+s-h,y:(_+l)*1.4},{x:y+s,y:_+l-u},{x:y+s,y:(_+l)*.9},...er(y+s,(_+l)*1.3,y+s-h,(_+l)*1.5,-l*.03,.5)],k=ct(x),v=g.path(k,m),F=ct(C),M=g.path(F,{...m,fillStyle:"solid"}),$=n.insert(()=>M,":first-child");return $.insert(()=>v,":first-child"),$.attr("class","basic label-container"),p&&t.look!=="handDrawn"&&$.selectAll("path").attr("style",p),i&&t.look!=="handDrawn"&&$.selectAll("path").attr("style",i),$.attr("transform",`translate(0,${-c/2})`),o.attr("transform",`translate(${-s/2+(t.padding??0)-(a.x-(a.left??0))},${-l/2+(t.padding??0)-c/2-(a.y-(a.top??0))})`),Q(t,$),t.intersect=function(H){return Y.polygon(t,x,H)},n}d(Gd,"taggedWaveEdgedRectangle");async function Vd(e,t){const{labelStyles:r,nodeStyles:i}=J(t);t.labelStyle=r;const{shapeSvg:n,bbox:a}=await nt(e,t,at(t)),o=Math.max(a.width+t.padding,(t==null?void 0:t.width)||0),s=Math.max(a.height+t.padding,(t==null?void 0:t.height)||0),l=-o/2,c=-s/2,h=n.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",o).attr("height",s),Q(t,h),t.intersect=function(u){return Y.rect(t,u)},n}d(Vd,"text");var xk=d((e,t,r,i,n,a)=>`M${e},${t}
169
+ a${n},${a} 0,0,1 0,${-i}
170
+ l${r},0
171
+ a${n},${a} 0,0,1 0,${i}
172
+ M${r},${-i}
173
+ a${n},${a} 0,0,0 0,${i}
174
+ l${-r},0`,"createCylinderPathD"),bk=d((e,t,r,i,n,a)=>[`M${e},${t}`,`M${e+r},${t}`,`a${n},${a} 0,0,0 0,${-i}`,`l${-r},0`,`a${n},${a} 0,0,0 0,${i}`,`l${r},0`].join(" "),"createOuterCylinderPathD"),_k=d((e,t,r,i,n,a)=>[`M${e+r/2},${-i/2}`,`a${n},${a} 0,0,0 0,${i}`].join(" "),"createInnerCylinderPathD");async function Xd(e,t){const{labelStyles:r,nodeStyles:i}=J(t);t.labelStyle=r;const{shapeSvg:n,bbox:a,label:o,halfPadding:s}=await nt(e,t,at(t)),l=t.look==="neo"?s*2:s,c=a.height+l,h=c/2,u=h/(2.5+c/50),f=a.width+u+l,{cssStyles:p}=t;let g;if(t.look==="handDrawn"){const m=G.svg(n),x=bk(0,0,f,c,u,h),y=_k(0,0,f,c,u,h),_=m.path(x,V(t,{})),C=m.path(y,V(t,{fill:"none"}));g=n.insert(()=>C,":first-child"),g=n.insert(()=>_,":first-child"),g.attr("class","basic label-container"),p&&g.attr("style",p)}else{const m=xk(0,0,f,c,u,h);g=n.insert("path",":first-child").attr("d",m).attr("class","basic label-container").attr("style",Kt(p)).attr("style",i),g.attr("class","basic label-container"),p&&g.selectAll("path").attr("style",p),i&&g.selectAll("path").attr("style",i)}return g.attr("label-offset-x",u),g.attr("transform",`translate(${-f/2}, ${c/2} )`),o.attr("transform",`translate(${-(a.width/2)-u-(a.x-(a.left??0))}, ${-(a.height/2)-(a.y-(a.top??0))})`),Q(t,g),t.intersect=function(m){const x=Y.rect(t,m),y=x.y-(t.y??0);if(h!=0&&(Math.abs(y)<(t.height??0)/2||Math.abs(y)==(t.height??0)/2&&Math.abs(x.x-(t.x??0))>(t.width??0)/2-u)){let _=u*u*(1-y*y/(h*h));_!=0&&(_=Math.sqrt(Math.abs(_))),_=u-_,m.x-(t.x??0)>0&&(_=-_),x.x+=_}return x},n}d(Xd,"tiltedCylinder");async function Zd(e,t){const{labelStyles:r,nodeStyles:i}=J(t);t.labelStyle=r;const{shapeSvg:n,bbox:a}=await nt(e,t,at(t)),o=a.width+t.padding,s=a.height+t.padding,l=[{x:-3*s/6,y:0},{x:o+3*s/6,y:0},{x:o,y:-s},{x:0,y:-s}];let c;const{cssStyles:h}=t;if(t.look==="handDrawn"){const u=G.svg(n),f=V(t,{}),p=ct(l),g=u.path(p,f);c=n.insert(()=>g,":first-child").attr("transform",`translate(${-o/2}, ${s/2})`),h&&c.attr("style",h)}else c=He(n,o,s,l);return i&&c.attr("style",i),t.width=o,t.height=s,Q(t,c),t.intersect=function(u){return Y.polygon(t,l,u)},n}d(Zd,"trapezoid");async function Kd(e,t){const{labelStyles:r,nodeStyles:i}=J(t);t.labelStyle=r;const{shapeSvg:n,bbox:a}=await nt(e,t,at(t)),o=60,s=20,l=Math.max(o,a.width+(t.padding??0)*2,(t==null?void 0:t.width)??0),c=Math.max(s,a.height+(t.padding??0)*2,(t==null?void 0:t.height)??0),{cssStyles:h}=t,u=G.svg(n),f=V(t,{});t.look!=="handDrawn"&&(f.roughness=0,f.fillStyle="solid");const p=[{x:-l/2*.8,y:-c/2},{x:l/2*.8,y:-c/2},{x:l/2,y:-c/2*.6},{x:l/2,y:c/2},{x:-l/2,y:c/2},{x:-l/2,y:-c/2*.6}],g=ct(p),m=u.path(g,f),x=n.insert(()=>m,":first-child");return x.attr("class","basic label-container"),h&&t.look!=="handDrawn"&&x.selectChildren("path").attr("style",h),i&&t.look!=="handDrawn"&&x.selectChildren("path").attr("style",i),Q(t,x),t.intersect=function(y){return Y.polygon(t,p,y)},n}d(Kd,"trapezoidalPentagon");async function Qd(e,t){var _;const{labelStyles:r,nodeStyles:i}=J(t);t.labelStyle=r;const{shapeSvg:n,bbox:a,label:o}=await nt(e,t,at(t)),s=qt((_=pt().flowchart)==null?void 0:_.htmlLabels),l=a.width+(t.padding??0),c=l+a.height,h=l+a.height,u=[{x:0,y:0},{x:h,y:0},{x:h/2,y:-c}],{cssStyles:f}=t,p=G.svg(n),g=V(t,{});t.look!=="handDrawn"&&(g.roughness=0,g.fillStyle="solid");const m=ct(u),x=p.path(m,g),y=n.insert(()=>x,":first-child").attr("transform",`translate(${-c/2}, ${c/2})`);return f&&t.look!=="handDrawn"&&y.selectChildren("path").attr("style",f),i&&t.look!=="handDrawn"&&y.selectChildren("path").attr("style",i),t.width=l,t.height=c,Q(t,y),o.attr("transform",`translate(${-a.width/2-(a.x-(a.left??0))}, ${c/2-(a.height+(t.padding??0)/(s?2:1)-(a.y-(a.top??0)))})`),t.intersect=function(C){return P.info("Triangle intersect",t,u,C),Y.polygon(t,u,C)},n}d(Qd,"triangle");async function Jd(e,t){const{labelStyles:r,nodeStyles:i}=J(t);t.labelStyle=r;const{shapeSvg:n,bbox:a,label:o}=await nt(e,t,at(t)),s=Math.max(a.width+(t.padding??0)*2,(t==null?void 0:t.width)??0),l=Math.max(a.height+(t.padding??0)*2,(t==null?void 0:t.height)??0),c=l/8,h=l+c,{cssStyles:u}=t,p=70-s,g=p>0?p/2:0,m=G.svg(n),x=V(t,{});t.look!=="handDrawn"&&(x.roughness=0,x.fillStyle="solid");const y=[{x:-s/2-g,y:h/2},...er(-s/2-g,h/2,s/2+g,h/2,c,.8),{x:s/2+g,y:-h/2},{x:-s/2-g,y:-h/2}],_=ct(y),C=m.path(_,x),k=n.insert(()=>C,":first-child");return k.attr("class","basic label-container"),u&&t.look!=="handDrawn"&&k.selectAll("path").attr("style",u),i&&t.look!=="handDrawn"&&k.selectAll("path").attr("style",i),k.attr("transform",`translate(0,${-c/2})`),o.attr("transform",`translate(${-s/2+(t.padding??0)-(a.x-(a.left??0))},${-l/2+(t.padding??0)-c-(a.y-(a.top??0))})`),Q(t,k),t.intersect=function(v){return Y.polygon(t,y,v)},n}d(Jd,"waveEdgedRectangle");async function tg(e,t){const{labelStyles:r,nodeStyles:i}=J(t);t.labelStyle=r;const{shapeSvg:n,bbox:a}=await nt(e,t,at(t)),o=100,s=50,l=Math.max(a.width+(t.padding??0)*2,(t==null?void 0:t.width)??0),c=Math.max(a.height+(t.padding??0)*2,(t==null?void 0:t.height)??0),h=l/c;let u=l,f=c;u>f*h?f=u/h:u=f*h,u=Math.max(u,o),f=Math.max(f,s);const p=Math.min(f*.2,f/4),g=f+p*2,{cssStyles:m}=t,x=G.svg(n),y=V(t,{});t.look!=="handDrawn"&&(y.roughness=0,y.fillStyle="solid");const _=[{x:-u/2,y:g/2},...er(-u/2,g/2,u/2,g/2,p,1),{x:u/2,y:-g/2},...er(u/2,-g/2,-u/2,-g/2,p,-1)],C=ct(_),k=x.path(C,y),v=n.insert(()=>k,":first-child");return v.attr("class","basic label-container"),m&&t.look!=="handDrawn"&&v.selectAll("path").attr("style",m),i&&t.look!=="handDrawn"&&v.selectAll("path").attr("style",i),Q(t,v),t.intersect=function(F){return Y.polygon(t,_,F)},n}d(tg,"waveRectangle");async function eg(e,t){const{labelStyles:r,nodeStyles:i}=J(t);t.labelStyle=r;const{shapeSvg:n,bbox:a,label:o}=await nt(e,t,at(t)),s=Math.max(a.width+(t.padding??0)*2,(t==null?void 0:t.width)??0),l=Math.max(a.height+(t.padding??0)*2,(t==null?void 0:t.height)??0),c=5,h=-s/2,u=-l/2,{cssStyles:f}=t,p=G.svg(n),g=V(t,{}),m=[{x:h-c,y:u-c},{x:h-c,y:u+l},{x:h+s,y:u+l},{x:h+s,y:u-c}],x=`M${h-c},${u-c} L${h+s},${u-c} L${h+s},${u+l} L${h-c},${u+l} L${h-c},${u-c}
175
+ M${h-c},${u} L${h+s},${u}
176
+ M${h},${u-c} L${h},${u+l}`;t.look!=="handDrawn"&&(g.roughness=0,g.fillStyle="solid");const y=p.path(x,g),_=n.insert(()=>y,":first-child");return _.attr("transform",`translate(${c/2}, ${c/2})`),_.attr("class","basic label-container"),f&&t.look!=="handDrawn"&&_.selectAll("path").attr("style",f),i&&t.look!=="handDrawn"&&_.selectAll("path").attr("style",i),o.attr("transform",`translate(${-(a.width/2)+c/2-(a.x-(a.left??0))}, ${-(a.height/2)+c/2-(a.y-(a.top??0))})`),Q(t,_),t.intersect=function(C){return Y.polygon(t,m,C)},n}d(eg,"windowPane");async function rg(e,t,r,i,n=r.class.padding??12){const a=i?0:3,o=e.insert("g").attr("class",at(t)).attr("id",t.domId||t.id);let s=null,l=null,c=null,h=null,u=0,f=0,p=0;if(s=o.insert("g").attr("class","annotation-group text"),t.annotations.length>0){const _=t.annotations[0];await $i(s,{text:`«${_}»`},0),u=s.node().getBBox().height}l=o.insert("g").attr("class","label-group text"),await $i(l,t,0,["font-weight: bolder"]);const g=l.node().getBBox();f=g.height,c=o.insert("g").attr("class","members-group text");let m=0;for(const _ of t.members){const C=await $i(c,_,m,[_.parseClassifier()]);m+=C+a}p=c.node().getBBox().height,p<=0&&(p=n/2),h=o.insert("g").attr("class","methods-group text");let x=0;for(const _ of t.methods){const C=await $i(h,_,x,[_.parseClassifier()]);x+=C+a}let y=o.node().getBBox();if(s!==null){const _=s.node().getBBox();s.attr("transform",`translate(${-_.width/2})`)}return l.attr("transform",`translate(${-g.width/2}, ${u})`),y=o.node().getBBox(),c.attr("transform",`translate(0, ${u+f+n*2})`),y=o.node().getBBox(),h.attr("transform",`translate(0, ${u+f+(p?p+n*4:n*2)})`),y=o.node().getBBox(),{shapeSvg:o,bbox:y}}d(rg,"textHelper");async function $i(e,t,r,i=[]){const n=e.insert("g").attr("class","label").attr("style",i.join("; ")),a=_e();let o="useHtmlLabels"in t?t.useHtmlLabels:qt(a.htmlLabels)??!0,s="";"text"in t?s=t.text:s=t.label,!o&&s.startsWith("\\")&&(s=s.substring(1)),ri(s)&&(o=!0);const l=await fi(n,Eh(ui(s)),{width:ai(s,a)+50,classes:"markdown-node-label",useHtmlLabels:o},a);let c,h=1;if(o){const u=l.children[0],f=ft(l);h=u.innerHTML.split("<br>").length,u.innerHTML.includes("</math>")&&(h+=u.innerHTML.split("<mrow>").length-1);const p=u.getElementsByTagName("img");if(p){const g=s.replace(/<img[^>]*>/g,"").trim()==="";await Promise.all([...p].map(m=>new Promise(x=>{function y(){var _;if(m.style.display="flex",m.style.flexDirection="column",g){const C=((_=a.fontSize)==null?void 0:_.toString())??window.getComputedStyle(document.body).fontSize,v=parseInt(C,10)*5+"px";m.style.minWidth=v,m.style.maxWidth=v}else m.style.width="100%";x(m)}d(y,"setupImage"),setTimeout(()=>{m.complete&&y()}),m.addEventListener("error",y),m.addEventListener("load",y)})))}c=u.getBoundingClientRect(),f.attr("width",c.width),f.attr("height",c.height)}else{i.includes("font-weight: bolder")&&ft(l).selectAll("tspan").attr("font-weight",""),h=l.children.length;const u=l.children[0];(l.textContent===""||l.textContent.includes("&gt"))&&(u.textContent=s[0]+s.substring(1).replaceAll("&gt;",">").replaceAll("&lt;","<").trim(),s[1]===" "&&(u.textContent=u.textContent[0]+" "+u.textContent.substring(1))),u.textContent==="undefined"&&(u.textContent=""),c=l.getBBox()}return n.attr("transform","translate(0,"+(-c.height/(2*h)+r)+")"),c.height}d($i,"addText");async function ig(e,t){var H,z;const r=pt(),i=r.class.padding??12,n=i,a=t.useHtmlLabels??qt(r.htmlLabels)??!0,o=t;o.annotations=o.annotations??[],o.members=o.members??[],o.methods=o.methods??[];const{shapeSvg:s,bbox:l}=await rg(e,t,r,a,n),{labelStyles:c,nodeStyles:h}=J(t);t.labelStyle=c,t.cssStyles=o.styles||"";const u=((H=o.styles)==null?void 0:H.join(";"))||h||"";t.cssStyles||(t.cssStyles=u.replaceAll("!important","").split(";"));const f=o.members.length===0&&o.methods.length===0&&!((z=r.class)!=null&&z.hideEmptyMembersBox),p=G.svg(s),g=V(t,{});t.look!=="handDrawn"&&(g.roughness=0,g.fillStyle="solid");const m=l.width;let x=l.height;o.members.length===0&&o.methods.length===0?x+=n:o.members.length>0&&o.methods.length===0&&(x+=n*2);const y=-m/2,_=-x/2,C=p.rectangle(y-i,_-i-(f?i:o.members.length===0&&o.methods.length===0?-i/2:0),m+2*i,x+2*i+(f?i*2:o.members.length===0&&o.methods.length===0?-i:0),g),k=s.insert(()=>C,":first-child");k.attr("class","basic label-container");const v=k.node().getBBox();s.selectAll(".text").each((E,q,O)=>{var j;const A=ft(O[q]),L=A.attr("transform");let T=0;if(L){const st=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(L);st&&(T=parseFloat(st[2]))}let D=T+_+i-(f?i:o.members.length===0&&o.methods.length===0?-i/2:0);a||(D-=4);let B=y;(A.attr("class").includes("label-group")||A.attr("class").includes("annotation-group"))&&(B=-((j=A.node())==null?void 0:j.getBBox().width)/2||0,s.selectAll("text").each(function(U,st,ut){window.getComputedStyle(ut[st]).textAnchor==="middle"&&(B=0)})),A.attr("transform",`translate(${B}, ${D})`)});const F=s.select(".annotation-group").node().getBBox().height-(f?i/2:0)||0,M=s.select(".label-group").node().getBBox().height-(f?i/2:0)||0,$=s.select(".members-group").node().getBBox().height-(f?i/2:0)||0;if(o.members.length>0||o.methods.length>0||f){const E=p.line(v.x,F+M+_+i,v.x+v.width,F+M+_+i,g);s.insert(()=>E).attr("class","divider").attr("style",u)}if(f||o.members.length>0||o.methods.length>0){const E=p.line(v.x,F+M+$+_+n*2+i,v.x+v.width,F+M+$+_+i+n*2,g);s.insert(()=>E).attr("class","divider").attr("style",u)}if(o.look!=="handDrawn"&&s.selectAll("path").attr("style",u),k.select(":nth-child(2)").attr("style",u),s.selectAll(".divider").select("path").attr("style",u),t.labelStyle?s.selectAll("span").attr("style",t.labelStyle):s.selectAll("span").attr("style",u),!a){const E=RegExp(/color\s*:\s*([^;]*)/),q=E.exec(u);if(q){const O=q[0].replace("color","fill");s.selectAll("tspan").attr("style",O)}else if(c){const O=E.exec(c);if(O){const A=O[0].replace("color","fill");s.selectAll("tspan").attr("style",A)}}}return Q(t,k),t.intersect=function(E){return Y.rect(t,E)},s}d(ig,"classBox");var Ck=d(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 ng(e,t,{config:r}){var q,O;const{labelStyles:i,nodeStyles:n}=J(t);t.labelStyle=i||"";const a=10,o=t.width;t.width=(t.width??200)-10;const{shapeSvg:s,bbox:l,label:c}=await nt(e,t,at(t)),h=t.padding||10;let u="",f;"ticket"in t&&t.ticket&&((q=r==null?void 0:r.kanban)!=null&&q.ticketBaseUrl)&&(u=(O=r==null?void 0:r.kanban)==null?void 0:O.ticketBaseUrl.replace("#TICKET#",t.ticket),f=s.insert("svg:a",":first-child").attr("class","kanban-ticket-link").attr("xlink:href",u).attr("target","_blank"));const p={useHtmlLabels:t.useHtmlLabels,labelStyle:t.labelStyle||"",width:t.width,img:t.img,padding:t.padding||8,centerLabel:!1};let g,m;f?{label:g,bbox:m}=await ws(f,"ticket"in t&&t.ticket||"",p):{label:g,bbox:m}=await ws(s,"ticket"in t&&t.ticket||"",p);const{label:x,bbox:y}=await ws(s,"assigned"in t&&t.assigned||"",p);t.width=o;const _=10,C=(t==null?void 0:t.width)||0,k=Math.max(m.height,y.height)/2,v=Math.max(l.height+_*2,(t==null?void 0:t.height)||0)+k,F=-C/2,M=-v/2;c.attr("transform","translate("+(h-C/2)+", "+(-k-l.height/2)+")"),g.attr("transform","translate("+(h-C/2)+", "+(-k+l.height/2)+")"),x.attr("transform","translate("+(h+C/2-y.width-2*a)+", "+(-k+l.height/2)+")");let $;const{rx:H,ry:z}=t,{cssStyles:E}=t;if(t.look==="handDrawn"){const A=G.svg(s),L=V(t,{}),T=H||z?A.path(We(F,M,C,v,H||0),L):A.rectangle(F,M,C,v,L);$=s.insert(()=>T,":first-child"),$.attr("class","basic label-container").attr("style",E||null)}else{$=s.insert("rect",":first-child"),$.attr("class","basic label-container __APA__").attr("style",n).attr("rx",H??5).attr("ry",z??5).attr("x",F).attr("y",M).attr("width",C).attr("height",v);const A="priority"in t&&t.priority;if(A){const L=s.append("line"),T=F+2,D=M+Math.floor((H??0)/2),B=M+v-Math.floor((H??0)/2);L.attr("x1",T).attr("y1",D).attr("x2",T).attr("y2",B).attr("stroke-width","4").attr("stroke",Ck(A))}}return Q(t,$),t.height=v,t.intersect=function(A){return Y.rect(t,A)},s}d(ng,"kanbanItem");var wk=[{semanticName:"Process",name:"Rectangle",shortName:"rect",description:"Standard process shape",aliases:["proc","process","rectangle"],internalAliases:["squareRect"],handler:zd},{semanticName:"Event",name:"Rounded Rectangle",shortName:"rounded",description:"Represents an event",aliases:["event"],internalAliases:["roundedRect"],handler:Id},{semanticName:"Terminal Point",name:"Stadium",shortName:"stadium",description:"Terminal point",aliases:["terminal","pill"],handler:qd},{semanticName:"Subprocess",name:"Framed Rectangle",shortName:"fr-rect",description:"Subprocess",aliases:["subprocess","subproc","framed-rectangle","subroutine"],handler:Ud},{semanticName:"Database",name:"Cylinder",shortName:"cyl",description:"Database storage",aliases:["db","database","cylinder"],handler:hd},{semanticName:"Start",name:"Circle",shortName:"circle",description:"Starting point",aliases:["circ"],handler:id},{semanticName:"Decision",name:"Diamond",shortName:"diam",description:"Decision-making step",aliases:["decision","diamond","question"],handler:Dd},{semanticName:"Prepare Conditional",name:"Hexagon",shortName:"hex",description:"Preparation or condition step",aliases:["hexagon","prepare"],handler:yd},{semanticName:"Data Input/Output",name:"Lean Right",shortName:"lean-r",description:"Represents input or output",aliases:["lean-right","in-out"],internalAliases:["lean_right"],handler:Ad},{semanticName:"Data Input/Output",name:"Lean Left",shortName:"lean-l",description:"Represents output or input",aliases:["lean-left","out-in"],internalAliases:["lean_left"],handler:Td},{semanticName:"Priority Action",name:"Trapezoid Base Bottom",shortName:"trap-b",description:"Priority action",aliases:["priority","trapezoid-bottom","trapezoid"],handler:Zd},{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:vd},{semanticName:"Stop",name:"Double Circle",shortName:"dbl-circ",description:"Represents a stop point",aliases:["double-circle"],internalAliases:["doublecircle"],handler:fd},{semanticName:"Text Block",name:"Text Block",shortName:"text",description:"Text block",handler:Vd},{semanticName:"Card",name:"Notched Rectangle",shortName:"notch-rect",description:"Represents a card",aliases:["card","notched-rectangle"],handler:ed},{semanticName:"Lined/Shaded Process",name:"Lined Rectangle",shortName:"lin-rect",description:"Lined process shape",aliases:["lined-rectangle","lined-process","lin-proc","shaded-process"],handler:Pd},{semanticName:"Start",name:"Small Circle",shortName:"sm-circ",description:"Small starting point",aliases:["start","small-circle"],internalAliases:["stateStart"],handler:jd},{semanticName:"Stop",name:"Framed Circle",shortName:"fr-circ",description:"Stop point",aliases:["stop","framed-circle"],internalAliases:["stateEnd"],handler:Hd},{semanticName:"Fork/Join",name:"Filled Rectangle",shortName:"fork",description:"Fork or join in process flow",aliases:["join"],internalAliases:["forkJoin"],handler:gd},{semanticName:"Collate",name:"Hourglass",shortName:"hourglass",description:"Represents a collate operation",aliases:["hourglass","collate"],handler:xd},{semanticName:"Comment",name:"Curly Brace",shortName:"brace",description:"Adds a comment",aliases:["comment","brace-l"],handler:sd},{semanticName:"Comment Right",name:"Curly Brace",shortName:"brace-r",description:"Adds a comment",handler:od},{semanticName:"Comment with braces on both sides",name:"Curly Braces",shortName:"braces",description:"Adds a comment",handler:ld},{semanticName:"Com Link",name:"Lightning Bolt",shortName:"bolt",description:"Communication link",aliases:["com-link","lightning-bolt"],handler:Ld},{semanticName:"Document",name:"Document",shortName:"doc",description:"Represents a document",aliases:["doc","document"],handler:Jd},{semanticName:"Delay",name:"Half-Rounded Rectangle",shortName:"delay",description:"Represents a delay",aliases:["half-rounded-rectangle"],handler:md},{semanticName:"Direct Access Storage",name:"Horizontal Cylinder",shortName:"h-cyl",description:"Direct access storage",aliases:["das","horizontal-cylinder"],handler:Xd},{semanticName:"Disk Storage",name:"Lined Cylinder",shortName:"lin-cyl",description:"Disk storage",aliases:["disk","lined-cylinder"],handler:Bd},{semanticName:"Display",name:"Curved Trapezoid",shortName:"curv-trap",description:"Represents a display",aliases:["curved-trapezoid","display"],handler:cd},{semanticName:"Divided Process",name:"Divided Rectangle",shortName:"div-rect",description:"Divided process shape",aliases:["div-proc","divided-rectangle","divided-process"],handler:ud},{semanticName:"Extract",name:"Triangle",shortName:"tri",description:"Extraction process",aliases:["extract","triangle"],handler:Qd},{semanticName:"Internal Storage",name:"Window Pane",shortName:"win-pane",description:"Internal storage",aliases:["internal-storage","window-pane"],handler:eg},{semanticName:"Junction",name:"Filled Circle",shortName:"f-circ",description:"Junction point",aliases:["junction","filled-circle"],handler:pd},{semanticName:"Loop Limit",name:"Trapezoidal Pentagon",shortName:"notch-pent",description:"Loop limit step",aliases:["loop-limit","notched-pentagon"],handler:Kd},{semanticName:"Manual File",name:"Flipped Triangle",shortName:"flip-tri",description:"Manual file operation",aliases:["manual-file","flipped-triangle"],handler:dd},{semanticName:"Manual Input",name:"Sloped Rectangle",shortName:"sl-rect",description:"Manual input step",aliases:["manual-input","sloped-rectangle"],handler:Nd},{semanticName:"Multi-Document",name:"Stacked Document",shortName:"docs",description:"Multiple documents",aliases:["documents","st-doc","stacked-document"],handler:Fd},{semanticName:"Multi-Process",name:"Stacked Rectangle",shortName:"st-rect",description:"Multiple processes",aliases:["procs","processes","stacked-rectangle"],handler:Ed},{semanticName:"Stored Data",name:"Bow Tie Rectangle",shortName:"bow-rect",description:"Stored data",aliases:["stored-data","bow-tie-rectangle"],handler:td},{semanticName:"Summary",name:"Crossed Circle",shortName:"cross-circ",description:"Summary",aliases:["summary","crossed-circle"],handler:ad},{semanticName:"Tagged Document",name:"Tagged Document",shortName:"tag-doc",description:"Tagged document",aliases:["tag-doc","tagged-document"],handler:Gd},{semanticName:"Tagged Process",name:"Tagged Rectangle",shortName:"tag-rect",description:"Tagged process",aliases:["tagged-rectangle","tag-proc","tagged-process"],handler:Yd},{semanticName:"Paper Tape",name:"Flag",shortName:"flag",description:"Paper tape",aliases:["paper-tape"],handler:tg},{semanticName:"Odd",name:"Odd",shortName:"odd",description:"Odd shape",internalAliases:["rect_left_inv_arrow"],handler:Od},{semanticName:"Lined Document",name:"Lined Document",shortName:"lin-doc",description:"Lined document",aliases:["lined-document"],handler:Md}],kk=d(()=>{const t=[...Object.entries({state:Wd,choice:rd,note:$d,rectWithTitle:Rd,labelRect:Sd,iconSquare:wd,iconCircle:_d,icon:bd,iconRounded:Cd,imageSquare:kd,anchor:Jp,kanbanItem:ng,classBox:ig}),...wk.flatMap(r=>[r.shortName,..."aliases"in r?r.aliases:[],..."internalAliases"in r?r.internalAliases:[]].map(n=>[n,r.handler]))];return Object.fromEntries(t)},"generateShapeMap"),ag=kk();function vk(e){return e in ag}d(vk,"isValidShape");var Ma=new Map;async function sg(e,t,r){let i,n;t.shape==="rect"&&(t.rx&&t.ry?t.shape="roundedRect":t.shape="squareRect");const a=t.shape?ag[t.shape]:void 0;if(!a)throw new Error(`No such shape: ${t.shape}. Please check your syntax.`);if(t.link){let o;r.config.securityLevel==="sandbox"?o="_top":t.linkTarget&&(o=t.linkTarget||"_blank"),i=e.insert("svg:a").attr("xlink:href",t.link).attr("target",o??null),n=await a(i,t,r)}else n=await a(e,t,r),i=n;return t.tooltip&&n.attr("title",t.tooltip),Ma.set(t.id,i),t.haveCallback&&i.attr("class",i.attr("class")+" clickable"),i}d(sg,"insertNode");var hA=d((e,t)=>{Ma.set(t.id,e)},"setNodeElem"),uA=d(()=>{Ma.clear()},"clear"),fA=d(e=>{const t=Ma.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"),fe={aggregation:18,extension:18,composition:18,dependency:6,lollipop:13.5,arrow_point:4};function Di(e,t){if(e===void 0||t===void 0)return{angle:0,deltaX:0,deltaY:0};e=kt(e),t=kt(t);const[r,i]=[e.x,e.y],[n,a]=[t.x,t.y],o=n-r,s=a-i;return{angle:Math.atan(s/o),deltaX:o,deltaY:s}}d(Di,"calculateDeltaAndAngle");var kt=d(e=>Array.isArray(e)?{x:e[0],y:e[1]}:e,"pointTransformer"),Sk=d(e=>({x:d(function(t,r,i){let n=0;const a=kt(i[0]).x<kt(i[i.length-1]).x?"left":"right";if(r===0&&Object.hasOwn(fe,e.arrowTypeStart)){const{angle:p,deltaX:g}=Di(i[0],i[1]);n=fe[e.arrowTypeStart]*Math.cos(p)*(g>=0?1:-1)}else if(r===i.length-1&&Object.hasOwn(fe,e.arrowTypeEnd)){const{angle:p,deltaX:g}=Di(i[i.length-1],i[i.length-2]);n=fe[e.arrowTypeEnd]*Math.cos(p)*(g>=0?1:-1)}const o=Math.abs(kt(t).x-kt(i[i.length-1]).x),s=Math.abs(kt(t).y-kt(i[i.length-1]).y),l=Math.abs(kt(t).x-kt(i[0]).x),c=Math.abs(kt(t).y-kt(i[0]).y),h=fe[e.arrowTypeStart],u=fe[e.arrowTypeEnd],f=1;if(o<u&&o>0&&s<u){let p=u+f-o;p*=a==="right"?-1:1,n-=p}if(l<h&&l>0&&c<h){let p=h+f-l;p*=a==="right"?-1:1,n+=p}return kt(t).x+n},"x"),y:d(function(t,r,i){let n=0;const a=kt(i[0]).y<kt(i[i.length-1]).y?"down":"up";if(r===0&&Object.hasOwn(fe,e.arrowTypeStart)){const{angle:p,deltaY:g}=Di(i[0],i[1]);n=fe[e.arrowTypeStart]*Math.abs(Math.sin(p))*(g>=0?1:-1)}else if(r===i.length-1&&Object.hasOwn(fe,e.arrowTypeEnd)){const{angle:p,deltaY:g}=Di(i[i.length-1],i[i.length-2]);n=fe[e.arrowTypeEnd]*Math.abs(Math.sin(p))*(g>=0?1:-1)}const o=Math.abs(kt(t).y-kt(i[i.length-1]).y),s=Math.abs(kt(t).x-kt(i[i.length-1]).x),l=Math.abs(kt(t).y-kt(i[0]).y),c=Math.abs(kt(t).x-kt(i[0]).x),h=fe[e.arrowTypeStart],u=fe[e.arrowTypeEnd],f=1;if(o<u&&o>0&&s<u){let p=u+f-o;p*=a==="up"?-1:1,n-=p}if(l<h&&l>0&&c<h){let p=h+f-l;p*=a==="up"?-1:1,n+=p}return kt(t).y+n},"y")}),"getLineFunctionsWithOffset"),Tk=d((e,t,r,i,n)=>{t.arrowTypeStart&&Wc(e,"start",t.arrowTypeStart,r,i,n),t.arrowTypeEnd&&Wc(e,"end",t.arrowTypeEnd,r,i,n)},"addEdgeMarkers"),Ak={arrow_cross:"cross",arrow_point:"point",arrow_barb:"barb",arrow_circle:"circle",aggregation:"aggregation",extension:"extension",composition:"composition",dependency:"dependency",lollipop:"lollipop"},Wc=d((e,t,r,i,n,a)=>{const o=Ak[r];if(!o){P.warn(`Unknown arrow type: ${r}`);return}const s=t==="start"?"Start":"End";e.attr(`marker-${t}`,`url(${i}#${n}_${a}-${o}${s})`)},"addEdgeMarker"),la=new Map,Pt=new Map,pA=d(()=>{la.clear(),Pt.clear()},"clear"),Mi=d(e=>e?e.reduce((r,i)=>r+";"+i,""):"","getLabelStyles"),Lk=d(async(e,t)=>{let r=qt(pt().flowchart.htmlLabels);const i=await fi(e,t.label,{style:Mi(t.labelStyle),useHtmlLabels:r,addSvgBackground:!0,isNode:!1});P.info("abc82",t,t.labelType);const n=e.insert("g").attr("class","edgeLabel"),a=n.insert("g").attr("class","label");a.node().appendChild(i);let o=i.getBBox();if(r){const l=i.children[0],c=ft(i);o=l.getBoundingClientRect(),c.attr("width",o.width),c.attr("height",o.height)}a.attr("transform","translate("+-o.width/2+", "+-o.height/2+")"),la.set(t.id,n),t.width=o.width,t.height=o.height;let s;if(t.startLabelLeft){const l=await xr(t.startLabelLeft,Mi(t.labelStyle)),c=e.insert("g").attr("class","edgeTerminals"),h=c.insert("g").attr("class","inner");s=h.node().appendChild(l);const u=l.getBBox();h.attr("transform","translate("+-u.width/2+", "+-u.height/2+")"),Pt.get(t.id)||Pt.set(t.id,{}),Pt.get(t.id).startLeft=c,Oi(s,t.startLabelLeft)}if(t.startLabelRight){const l=await xr(t.startLabelRight,Mi(t.labelStyle)),c=e.insert("g").attr("class","edgeTerminals"),h=c.insert("g").attr("class","inner");s=c.node().appendChild(l),h.node().appendChild(l);const u=l.getBBox();h.attr("transform","translate("+-u.width/2+", "+-u.height/2+")"),Pt.get(t.id)||Pt.set(t.id,{}),Pt.get(t.id).startRight=c,Oi(s,t.startLabelRight)}if(t.endLabelLeft){const l=await xr(t.endLabelLeft,Mi(t.labelStyle)),c=e.insert("g").attr("class","edgeTerminals"),h=c.insert("g").attr("class","inner");s=h.node().appendChild(l);const u=l.getBBox();h.attr("transform","translate("+-u.width/2+", "+-u.height/2+")"),c.node().appendChild(l),Pt.get(t.id)||Pt.set(t.id,{}),Pt.get(t.id).endLeft=c,Oi(s,t.endLabelLeft)}if(t.endLabelRight){const l=await xr(t.endLabelRight,Mi(t.labelStyle)),c=e.insert("g").attr("class","edgeTerminals"),h=c.insert("g").attr("class","inner");s=h.node().appendChild(l);const u=l.getBBox();h.attr("transform","translate("+-u.width/2+", "+-u.height/2+")"),c.node().appendChild(l),Pt.get(t.id)||Pt.set(t.id,{}),Pt.get(t.id).endRight=c,Oi(s,t.endLabelRight)}return i},"insertEdgeLabel");function Oi(e,t){pt().flowchart.htmlLabels&&e&&(e.style.width=t.length*9+"px",e.style.height="12px")}d(Oi,"setTerminalWidth");var Bk=d((e,t)=>{P.debug("Moving label abc88 ",e.id,e.label,la.get(e.id),t);let r=t.updatedPath?t.updatedPath:t.originalPath;const i=pt(),{subGraphTitleTotalMargin:n}=Bo(i);if(e.label){const a=la.get(e.id);let o=e.x,s=e.y;if(r){const l=Te.calcLabelPosition(r);P.debug("Moving label "+e.label+" from (",o,",",s,") to (",l.x,",",l.y,") abc88"),t.updatedPath&&(o=l.x,s=l.y)}a.attr("transform",`translate(${o}, ${s+n/2})`)}if(e.startLabelLeft){const a=Pt.get(e.id).startLeft;let o=e.x,s=e.y;if(r){const l=Te.calcTerminalLabelPosition(e.arrowTypeStart?10:0,"start_left",r);o=l.x,s=l.y}a.attr("transform",`translate(${o}, ${s})`)}if(e.startLabelRight){const a=Pt.get(e.id).startRight;let o=e.x,s=e.y;if(r){const l=Te.calcTerminalLabelPosition(e.arrowTypeStart?10:0,"start_right",r);o=l.x,s=l.y}a.attr("transform",`translate(${o}, ${s})`)}if(e.endLabelLeft){const a=Pt.get(e.id).endLeft;let o=e.x,s=e.y;if(r){const l=Te.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,"end_left",r);o=l.x,s=l.y}a.attr("transform",`translate(${o}, ${s})`)}if(e.endLabelRight){const a=Pt.get(e.id).endRight;let o=e.x,s=e.y;if(r){const l=Te.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,"end_right",r);o=l.x,s=l.y}a.attr("transform",`translate(${o}, ${s})`)}},"positionEdgeLabel"),Mk=d((e,t)=>{const r=e.x,i=e.y,n=Math.abs(t.x-r),a=Math.abs(t.y-i),o=e.width/2,s=e.height/2;return n>=o||a>=s},"outsideNode"),Ek=d((e,t,r)=>{P.debug(`intersection calc abc89:
177
+ outsidePoint: ${JSON.stringify(t)}
178
+ insidePoint : ${JSON.stringify(r)}
179
+ node : x:${e.x} y:${e.y} w:${e.width} h:${e.height}`);const i=e.x,n=e.y,a=Math.abs(i-r.x),o=e.width/2;let s=r.x<t.x?o-a:o+a;const l=e.height/2,c=Math.abs(t.y-r.y),h=Math.abs(t.x-r.x);if(Math.abs(n-t.y)*o>Math.abs(i-t.x)*l){let u=r.y<t.y?t.y-l-n:n-l-t.y;s=h*u/c;const f={x:r.x<t.x?r.x+s:r.x-h+s,y:r.y<t.y?r.y+c-u:r.y-c+u};return s===0&&(f.x=t.x,f.y=t.y),h===0&&(f.x=t.x),c===0&&(f.y=t.y),P.debug(`abc89 top/bottom calc, Q ${c}, q ${u}, R ${h}, r ${s}`,f),f}else{r.x<t.x?s=t.x-o-i:s=i-o-t.x;let u=c*s/h,f=r.x<t.x?r.x+h-s:r.x-h+s,p=r.y<t.y?r.y+u:r.y-u;return P.debug(`sides calc abc89, Q ${c}, q ${u}, R ${h}, r ${s}`,{_x:f,_y:p}),s===0&&(f=t.x,p=t.y),h===0&&(f=t.x),c===0&&(p=t.y),{x:f,y:p}}},"intersection"),Hc=d((e,t)=>{P.warn("abc88 cutPathAtIntersect",e,t);let r=[],i=e[0],n=!1;return e.forEach(a=>{if(P.info("abc88 checking point",a,t),!Mk(t,a)&&!n){const o=Ek(t,i,a);P.debug("abc88 inside",a,i,o),P.debug("abc88 intersection",o,t);let s=!1;r.forEach(l=>{s=s||l.x===o.x&&l.y===o.y}),r.some(l=>l.x===o.x&&l.y===o.y)?P.warn("abc88 no intersect",o,r):r.push(o),n=!0}else P.warn("abc88 outside",a,i),i=a,n||r.push(a)}),P.debug("returning points",r),r},"cutPathAtIntersect");function og(e){const t=[],r=[];for(let i=1;i<e.length-1;i++){const n=e[i-1],a=e[i],o=e[i+1];(n.x===a.x&&a.y===o.y&&Math.abs(a.x-o.x)>5&&Math.abs(a.y-n.y)>5||n.y===a.y&&a.x===o.x&&Math.abs(a.x-n.x)>5&&Math.abs(a.y-o.y)>5)&&(t.push(a),r.push(i))}return{cornerPoints:t,cornerPointPositions:r}}d(og,"extractCornerPoints");var jc=d(function(e,t,r){const i=t.x-e.x,n=t.y-e.y,a=Math.sqrt(i*i+n*n),o=r/a;return{x:t.x-o*i,y:t.y-o*n}},"findAdjacentPoint"),Fk=d(function(e){const{cornerPointPositions:t}=og(e),r=[];for(let i=0;i<e.length;i++)if(t.includes(i)){const n=e[i-1],a=e[i+1],o=e[i],s=jc(n,o,5),l=jc(a,o,5),c=l.x-s.x,h=l.y-s.y;r.push(s);const u=Math.sqrt(2)*2;let f={x:o.x,y:o.y};if(Math.abs(a.x-n.x)>10&&Math.abs(a.y-n.y)>=10){P.debug("Corner point fixing",Math.abs(a.x-n.x),Math.abs(a.y-n.y));const p=5;o.x===s.x?f={x:c<0?s.x-p+u:s.x+p-u,y:h<0?s.y-u:s.y+u}:f={x:c<0?s.x-u:s.x+u,y:h<0?s.y-p+u:s.y+p-u}}else P.debug("Corner point skipping fixing",Math.abs(a.x-n.x),Math.abs(a.y-n.y));r.push(f,l)}else r.push(e[i]);return r},"fixCorners"),$k=d(function(e,t,r,i,n,a,o){const{handDrawnSeed:s}=pt();let l=t.points,c=!1;const h=n;var u=a;u.intersect&&h.intersect&&(l=l.slice(1,t.points.length-1),l.unshift(h.intersect(l[0])),P.debug("Last point APA12",t.start,"-->",t.end,l[l.length-1],u,u.intersect(l[l.length-1])),l.push(u.intersect(l[l.length-1]))),t.toCluster&&(P.info("to cluster abc88",r.get(t.toCluster)),l=Hc(t.points,r.get(t.toCluster).node),c=!0),t.fromCluster&&(P.debug("from cluster abc88",r.get(t.fromCluster),JSON.stringify(l,null,2)),l=Hc(l.reverse(),r.get(t.fromCluster).node).reverse(),c=!0);let f=l.filter(M=>!Number.isNaN(M.y));f=Fk(f);let p=Of;t.curve&&(p=t.curve);const{x:g,y:m}=Sk(t),x=P1().x(g).y(m).curve(p);let y;switch(t.thickness){case"normal":y="edge-thickness-normal";break;case"thick":y="edge-thickness-thick";break;case"invisible":y="edge-thickness-invisible";break;default:y="edge-thickness-normal"}switch(t.pattern){case"solid":y+=" edge-pattern-solid";break;case"dotted":y+=" edge-pattern-dotted";break;case"dashed":y+=" edge-pattern-dashed";break;default:y+=" edge-pattern-solid"}let _,C=x(f);const k=Array.isArray(t.style)?t.style:[t.style];if(t.look==="handDrawn"){const M=G.svg(e);Object.assign([],f);const $=M.path(C,{roughness:.3,seed:s});y+=" transition",_=ft($).select("path").attr("id",t.id).attr("class"," "+y+(t.classes?" "+t.classes:"")).attr("style",k?k.reduce((z,E)=>z+";"+E,""):"");let H=_.attr("d");_.attr("d",H),e.node().appendChild(_.node())}else _=e.append("path").attr("d",C).attr("id",t.id).attr("class"," "+y+(t.classes?" "+t.classes:"")).attr("style",k?k.reduce((M,$)=>M+";"+$,""):"");let v="";(pt().flowchart.arrowMarkerAbsolute||pt().state.arrowMarkerAbsolute)&&(v=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,v=v.replace(/\(/g,"\\(").replace(/\)/g,"\\)")),P.info("arrowTypeStart",t.arrowTypeStart),P.info("arrowTypeEnd",t.arrowTypeEnd),Tk(_,t,v,o,i);let F={};return c&&(F.updatedPath=l),F.originalPath=t.points,F},"insertEdge"),Dk=d((e,t,r,i)=>{t.forEach(n=>{jk[n](e,r,i)})},"insertMarkers"),Ok=d((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",190).attr("markerHeight",240).attr("orient","auto").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")},"extension"),Rk=d((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")},"composition"),Ik=d((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")},"aggregation"),Pk=d((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")},"dependency"),Nk=d((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("stroke","black").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("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6)},"lollipop"),zk=d((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")},"point"),qk=d((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")},"circle"),Wk=d((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")},"cross"),Hk=d((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"),jk={extension:Ok,composition:Rk,aggregation:Ik,dependency:Pk,lollipop:Nk,point:zk,circle:qk,cross:Wk,barb:Hk},Uk=Dk,Yk={common:li,getConfig:_e,insertCluster:ak,insertEdge:$k,insertEdgeLabel:Lk,insertMarkers:Uk,insertNode:sg,interpolateToCurve:No,labelHelper:nt,log:P,positionEdgeLabel:Bk},Ki={},lg=d(e=>{for(const t of e)Ki[t.name]=t},"registerLayoutLoaders"),Gk=d(()=>{lg([{name:"dagre",loader:d(async()=>await mt(()=>import("./dagre-4EVJKHTY-CBDUYbRw.js"),__vite__mapDeps([0,1,2,3,4,5,6,7])),"loader")}])},"registerDefaultLayoutLoaders");Gk();var dA=d(async(e,t)=>{if(!(e.layoutAlgorithm in Ki))throw new Error(`Unknown layout algorithm: ${e.layoutAlgorithm}`);const r=Ki[e.layoutAlgorithm];return(await r.loader()).render(e,t,Yk,{algorithm:r.algorithm})},"render"),gA=d((e="",{fallback:t="dagre"}={})=>{if(e in Ki)return e;if(t in Ki)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"),Uc="11.4.1",Vk=d(e=>{var n;const{securityLevel:t}=pt();let r=ft("body");if(t==="sandbox"){const o=((n=ft(`#i${e}`).node())==null?void 0:n.contentDocument)??document;r=ft(o.body)}return r.select(`#${e}`)},"selectSvgElement"),cg="comm",hg="rule",ug="decl",Xk="@import",Zk="@namespace",Kk="@keyframes",Qk="@layer",Jk=Math.abs,Hi=String.fromCharCode;function fg(e){return e.trim()}function ao(e,t,r){return e.replace(t,r)}function Hr(e,t){return e.charCodeAt(t)|0}function si(e,t,r){return e.slice(t,r)}function Se(e){return e.length}function tv(e){return e.length}function vn(e,t){return t.push(e),e}var Ea=1,oi=1,pg=0,ge=0,Mt=0,gi="";function rl(e,t,r,i,n,a,o,s){return{value:e,root:t,parent:r,type:i,props:n,children:a,line:Ea,column:oi,length:o,return:"",siblings:s}}function ev(){return Mt}function rv(){return Mt=ge>0?Hr(gi,--ge):0,oi--,Mt===10&&(oi=1,Ea--),Mt}function be(){return Mt=ge<pg?Hr(gi,ge++):0,oi++,Mt===10&&(oi=1,Ea++),Mt}function Ze(){return Hr(gi,ge)}function Fn(){return ge}function Fa(e,t){return si(gi,e,t)}function Qi(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 iv(e){return Ea=oi=1,pg=Se(gi=e),ge=0,[]}function nv(e){return gi="",e}function ks(e){return fg(Fa(ge-1,so(e===91?e+2:e===40?e+1:e)))}function av(e){for(;(Mt=Ze())&&Mt<33;)be();return Qi(e)>2||Qi(Mt)>3?"":" "}function sv(e,t){for(;--t&&be()&&!(Mt<48||Mt>102||Mt>57&&Mt<65||Mt>70&&Mt<97););return Fa(e,Fn()+(t<6&&Ze()==32&&be()==32))}function so(e){for(;be();)switch(Mt){case e:return ge;case 34:case 39:e!==34&&e!==39&&so(Mt);break;case 40:e===41&&so(e);break;case 92:be();break}return ge}function ov(e,t){for(;be()&&e+Mt!==57;)if(e+Mt===84&&Ze()===47)break;return"/*"+Fa(t,ge-1)+"*"+Hi(e===47?e:be())}function lv(e){for(;!Qi(Ze());)be();return Fa(e,ge)}function cv(e){return nv($n("",null,null,null,[""],e=iv(e),0,[0],e))}function $n(e,t,r,i,n,a,o,s,l){for(var c=0,h=0,u=o,f=0,p=0,g=0,m=1,x=1,y=1,_=0,C=0,k="",v=n,F=a,M=i,$=k;x;)switch(g=C,C=be()){case 40:g!=108&&Hr($,u-1)==58?(_++,$+="("):$+=ks(C);break;case 41:_--,$+=")";break;case 34:case 39:case 91:$+=ks(C);break;case 9:case 10:case 13:case 32:if(_>0){$+=Hi(C);break}$+=av(g);break;case 92:$+=sv(Fn()-1,7);continue;case 47:switch(Ze()){case 42:case 47:vn(hv(ov(be(),Fn()),t,r,l),l),(Qi(g||1)==5||Qi(Ze()||1)==5)&&Se($)&&si($,-1,void 0)!==" "&&($+=" ");break;default:$+="/"}break;case 123*m:s[c++]=Se($)*y;case 125*m:case 59:case 0:if(_>0&&C){$+=Hi(C);break}switch(C){case 0:case 125:x=0;case 59+h:y==-1&&($=ao($,/\f/g,"")),p>0&&(Se($)-u||m===0)&&vn(p>32?Gc($+";",i,r,u-1,l):Gc(ao($," ","")+";",i,r,u-2,l),l);break;case 59:$+=";";default:if(vn(M=Yc($,t,r,c,h,n,s,k,v=[],F=[],u,a),a),C===123)if(h===0)$n($,t,M,M,v,a,u,s,F);else{switch(f){case 99:if(Hr($,3)===110)break;case 108:if(Hr($,2)===97)break;default:h=0;case 100:case 109:case 115:}h?$n(e,M,M,i&&vn(Yc(e,M,M,0,0,n,s,k,n,v=[],u,F),F),n,F,u,s,i?v:F):$n($,M,M,M,[""],F,0,s,F)}}c=h=p=0,m=y=1,k=$="",u=o;break;case 58:u=1+Se($),p=g;default:if(m<1){if(C==123)--m;else if(C==125&&m++==0&&rv()==125)continue}switch($+=Hi(C),C*m){case 38:y=h>0?1:($+="\f",-1);break;case 44:if(_>0)break;s[c++]=(Se($)-1)*y,y=1;break;case 64:Ze()===45&&($+=ks(be())),f=Ze(),h=u=Se(k=$+=lv(Fn())),C++;break;case 45:g===45&&Se($)==2&&(m=0)}}return a}function Yc(e,t,r,i,n,a,o,s,l,c,h,u){for(var f=n-1,p=n===0?a:[""],g=tv(p),m=0,x=0,y=0;m<i;++m)for(var _=0,C=si(e,f+1,f=Jk(x=o[m])),k=e;_<g;++_)(k=fg(x>0?p[_]+" "+C:ao(C,/&\f/g,p[_])))&&(l[y++]=k);return rl(e,t,r,n===0?hg:s,l,c,h,u)}function hv(e,t,r,i){return rl(e,t,r,cg,Hi(ev()),si(e,2,-2),0,i)}function Gc(e,t,r,i,n){return rl(e,t,r,ug,si(e,0,i),si(e,i+1,-1),i,n)}function oo(e,t){for(var r="",i=0;i<e.length;i++)r+=t(e[i],i,e,t)||"";return r}function uv(e,t,r,i){switch(e.type){case Qk:if(e.children.length)break;case Xk:case Zk:case ug:return e.return=e.return||e.value;case cg:return"";case Kk:return e.return=e.value+"{"+oo(e.children,i)+"}";case hg:if(!Se(e.value=e.props.join(",")))return""}return Se(r=oo(e.children,i))?e.return=e.value+"{"+r+"}":""}var fv=Xf(Object.keys,Object),pv=Object.prototype,dv=pv.hasOwnProperty;function gv(e){if(!wa(e))return fv(e);var t=[];for(var r in Object(e))dv.call(e,r)&&r!="constructor"&&t.push(r);return t}var lo=Ar(Ee,"DataView"),co=Ar(Ee,"Promise"),ho=Ar(Ee,"Set"),uo=Ar(Ee,"WeakMap"),Vc="[object Map]",mv="[object Object]",Xc="[object Promise]",Zc="[object Set]",Kc="[object WeakMap]",Qc="[object DataView]",yv=Tr(lo),xv=Tr(Zi),bv=Tr(co),_v=Tr(ho),Cv=Tr(uo),dr=ci;(lo&&dr(new lo(new ArrayBuffer(1)))!=Qc||Zi&&dr(new Zi)!=Vc||co&&dr(co.resolve())!=Xc||ho&&dr(new ho)!=Zc||uo&&dr(new uo)!=Kc)&&(dr=function(e){var t=ci(e),r=t==mv?e.constructor:void 0,i=r?Tr(r):"";if(i)switch(i){case yv:return Qc;case xv:return Vc;case bv:return Xc;case _v:return Zc;case Cv:return Kc}return t});var wv="[object Map]",kv="[object Set]",vv=Object.prototype,Sv=vv.hasOwnProperty;function Jc(e){if(e==null)return!0;if(ka(e)&&(Jn(e)||typeof e=="string"||typeof e.splice=="function"||Io(e)||Po(e)||Qn(e)))return!e.length;var t=dr(e);if(t==wv||t==kv)return!e.size;if(wa(e))return!gv(e).length;for(var r in e)if(Sv.call(e,r))return!1;return!0}var dg="c4",Tv=d(e=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(e),"detector"),Av=d(async()=>{const{diagram:e}=await mt(async()=>{const{diagram:t}=await import("./c4Diagram-6F5ED5ID-CWKXGBe-.js");return{diagram:t}},__vite__mapDeps([8,9,6,7]));return{id:dg,diagram:e}},"loader"),Lv={id:dg,detector:Tv,loader:Av},Bv=Lv,gg="flowchart",Mv=d((e,t)=>{var r,i;return((r=t==null?void 0:t.flowchart)==null?void 0:r.defaultRenderer)==="dagre-wrapper"||((i=t==null?void 0:t.flowchart)==null?void 0:i.defaultRenderer)==="elk"?!1:/^\s*graph/.test(e)},"detector"),Ev=d(async()=>{const{diagram:e}=await mt(async()=>{const{diagram:t}=await import("./flowDiagram-7ASYPVHJ-xplSH1V5.js");return{diagram:t}},__vite__mapDeps([10,11,12,6,7]));return{id:gg,diagram:e}},"loader"),Fv={id:gg,detector:Mv,loader:Ev},$v=Fv,mg="flowchart-v2",Dv=d((e,t)=>{var r,i,n;return((r=t==null?void 0:t.flowchart)==null?void 0:r.defaultRenderer)==="dagre-d3"?!1:(((i=t==null?void 0:t.flowchart)==null?void 0:i.defaultRenderer)==="elk"&&(t.layout="elk"),/^\s*graph/.test(e)&&((n=t==null?void 0:t.flowchart)==null?void 0:n.defaultRenderer)==="dagre-wrapper"?!0:/^\s*flowchart/.test(e))},"detector"),Ov=d(async()=>{const{diagram:e}=await mt(async()=>{const{diagram:t}=await import("./flowDiagram-7ASYPVHJ-xplSH1V5.js");return{diagram:t}},__vite__mapDeps([10,11,12,6,7]));return{id:mg,diagram:e}},"loader"),Rv={id:mg,detector:Dv,loader:Ov},Iv=Rv,yg="er",Pv=d(e=>/^\s*erDiagram/.test(e),"detector"),Nv=d(async()=>{const{diagram:e}=await mt(async()=>{const{diagram:t}=await import("./erDiagram-6RL3IURR-BrIhLTf-.js");return{diagram:t}},__vite__mapDeps([13,1,2,3,4,6,7]));return{id:yg,diagram:e}},"loader"),zv={id:yg,detector:Pv,loader:Nv},qv=zv,xg="gitGraph",Wv=d(e=>/^\s*gitGraph/.test(e),"detector"),Hv=d(async()=>{const{diagram:e}=await mt(async()=>{const{diagram:t}=await import("./gitGraphDiagram-NRZ2UAAF-I2RXCZiV.js");return{diagram:t}},__vite__mapDeps([14,15,16,17,6,7,4,2]));return{id:xg,diagram:e}},"loader"),jv={id:xg,detector:Wv,loader:Hv},Uv=jv,bg="gantt",Yv=d(e=>/^\s*gantt/.test(e),"detector"),Gv=d(async()=>{const{diagram:e}=await mt(async()=>{const{diagram:t}=await import("./ganttDiagram-NTVNEXSI-CTjkBoVW.js");return{diagram:t}},__vite__mapDeps([18,6,7,19]));return{id:bg,diagram:e}},"loader"),Vv={id:bg,detector:Yv,loader:Gv},Xv=Vv,_g="info",Zv=d(e=>/^\s*info/.test(e),"detector"),Kv=d(async()=>{const{diagram:e}=await mt(async()=>{const{diagram:t}=await import("./infoDiagram-A4XQUW5V-BcjfRCXi.js");return{diagram:t}},__vite__mapDeps([20,17,6,7,4,2]));return{id:_g,diagram:e}},"loader"),Qv={id:_g,detector:Zv,loader:Kv},Cg="pie",Jv=d(e=>/^\s*pie/.test(e),"detector"),tS=d(async()=>{const{diagram:e}=await mt(async()=>{const{diagram:t}=await import("./pieDiagram-YF2LJOPJ-DeXhe8wW.js");return{diagram:t}},__vite__mapDeps([21,15,17,6,7,4,2,19]));return{id:Cg,diagram:e}},"loader"),eS={id:Cg,detector:Jv,loader:tS},wg="quadrantChart",rS=d(e=>/^\s*quadrantChart/.test(e),"detector"),iS=d(async()=>{const{diagram:e}=await mt(async()=>{const{diagram:t}=await import("./quadrantDiagram-OS5C2QUG-qIwp82jR.js");return{diagram:t}},__vite__mapDeps([22,19,6,7]));return{id:wg,diagram:e}},"loader"),nS={id:wg,detector:rS,loader:iS},aS=nS,kg="xychart",sS=d(e=>/^\s*xychart-beta/.test(e),"detector"),oS=d(async()=>{const{diagram:e}=await mt(async()=>{const{diagram:t}=await import("./xychartDiagram-6QU3TZC5-9fhTIPRM.js");return{diagram:t}},__vite__mapDeps([23,19,6,7]));return{id:kg,diagram:e}},"loader"),lS={id:kg,detector:sS,loader:oS},cS=lS,vg="requirement",hS=d(e=>/^\s*requirement(Diagram)?/.test(e),"detector"),uS=d(async()=>{const{diagram:e}=await mt(async()=>{const{diagram:t}=await import("./requirementDiagram-MIRIMTAZ-BMNoO9OJ.js");return{diagram:t}},__vite__mapDeps([24,1,2,3,4,6,7]));return{id:vg,diagram:e}},"loader"),fS={id:vg,detector:hS,loader:uS},pS=fS,Sg="sequence",dS=d(e=>/^\s*sequenceDiagram/.test(e),"detector"),gS=d(async()=>{const{diagram:e}=await mt(async()=>{const{diagram:t}=await import("./sequenceDiagram-G6AWOVSC-C4AgKjJQ.js");return{diagram:t}},__vite__mapDeps([25,9,16,6,7]));return{id:Sg,diagram:e}},"loader"),mS={id:Sg,detector:dS,loader:gS},yS=mS,Tg="class",xS=d((e,t)=>{var r;return((r=t==null?void 0:t.class)==null?void 0:r.defaultRenderer)==="dagre-wrapper"?!1:/^\s*classDiagram/.test(e)},"detector"),bS=d(async()=>{const{diagram:e}=await mt(async()=>{const{diagram:t}=await import("./classDiagram-LNE6IOMH-BiiTLJy-.js");return{diagram:t}},__vite__mapDeps([26,27,11,6,7]));return{id:Tg,diagram:e}},"loader"),_S={id:Tg,detector:xS,loader:bS},CS=_S,Ag="classDiagram",wS=d((e,t)=>{var r;return/^\s*classDiagram/.test(e)&&((r=t==null?void 0:t.class)==null?void 0:r.defaultRenderer)==="dagre-wrapper"?!0:/^\s*classDiagram-v2/.test(e)},"detector"),kS=d(async()=>{const{diagram:e}=await mt(async()=>{const{diagram:t}=await import("./classDiagram-v2-MQ7JQ4JX-BiiTLJy-.js");return{diagram:t}},__vite__mapDeps([28,27,11,6,7]));return{id:Ag,diagram:e}},"loader"),vS={id:Ag,detector:wS,loader:kS},SS=vS,Lg="state",TS=d((e,t)=>{var r;return((r=t==null?void 0:t.state)==null?void 0:r.defaultRenderer)==="dagre-wrapper"?!1:/^\s*stateDiagram/.test(e)},"detector"),AS=d(async()=>{const{diagram:e}=await mt(async()=>{const{diagram:t}=await import("./stateDiagram-MAYHULR4-D13_SEW-.js");return{diagram:t}},__vite__mapDeps([29,30,11,1,2,3,4,6,7]));return{id:Lg,diagram:e}},"loader"),LS={id:Lg,detector:TS,loader:AS},BS=LS,Bg="stateDiagram",MS=d((e,t)=>{var r;return!!(/^\s*stateDiagram-v2/.test(e)||/^\s*stateDiagram/.test(e)&&((r=t==null?void 0:t.state)==null?void 0:r.defaultRenderer)==="dagre-wrapper")},"detector"),ES=d(async()=>{const{diagram:e}=await mt(async()=>{const{diagram:t}=await import("./stateDiagram-v2-4JROLMXI-B54Ohb2s.js");return{diagram:t}},__vite__mapDeps([31,30,11,6,7]));return{id:Bg,diagram:e}},"loader"),FS={id:Bg,detector:MS,loader:ES},$S=FS,Mg="journey",DS=d(e=>/^\s*journey/.test(e),"detector"),OS=d(async()=>{const{diagram:e}=await mt(async()=>{const{diagram:t}=await import("./journeyDiagram-G5WM74LC-BrvwR6gO.js");return{diagram:t}},__vite__mapDeps([32,9,6,7]));return{id:Mg,diagram:e}},"loader"),RS={id:Mg,detector:DS,loader:OS},IS=RS,PS=d((e,t,r)=>{P.debug(`rendering svg for syntax error
180
+ `);const i=Vk(t),n=i.append("g");i.attr("viewBox","0 0 2412 512"),Bh(i,100,512,!0),n.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"),n.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"),n.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"),n.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"),n.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"),n.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"),n.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"),n.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"),Eg={draw:PS},NS=Eg,zS={db:{},renderer:Eg,parser:{parse:d(()=>{},"parse")}},qS=zS,Fg="flowchart-elk",WS=d((e,t={})=>{var r;return/^\s*flowchart-elk/.test(e)||/^\s*flowchart|graph/.test(e)&&((r=t==null?void 0:t.flowchart)==null?void 0:r.defaultRenderer)==="elk"?(t.layout="elk",!0):!1},"detector"),HS=d(async()=>{const{diagram:e}=await mt(async()=>{const{diagram:t}=await import("./flowDiagram-7ASYPVHJ-xplSH1V5.js");return{diagram:t}},__vite__mapDeps([10,11,12,6,7]));return{id:Fg,diagram:e}},"loader"),jS={id:Fg,detector:WS,loader:HS},US=jS,$g="timeline",YS=d(e=>/^\s*timeline/.test(e),"detector"),GS=d(async()=>{const{diagram:e}=await mt(async()=>{const{diagram:t}=await import("./timeline-definition-U7ZMHBDA-D1EAZC5t.js");return{diagram:t}},__vite__mapDeps([33,6,7]));return{id:$g,diagram:e}},"loader"),VS={id:$g,detector:YS,loader:GS},XS=VS,Dg="mindmap",ZS=d(e=>/^\s*mindmap/.test(e),"detector"),KS=d(async()=>{const{diagram:e}=await mt(async()=>{const{diagram:t}=await import("./mindmap-definition-GWI6TPTV-BwBiBSTc.js");return{diagram:t}},__vite__mapDeps([34,35,6,7]));return{id:Dg,diagram:e}},"loader"),QS={id:Dg,detector:ZS,loader:KS},JS=QS,Og="kanban",tT=d(e=>/^\s*kanban/.test(e),"detector"),eT=d(async()=>{const{diagram:e}=await mt(async()=>{const{diagram:t}=await import("./kanban-definition-QRCXZQQD-Ds9WLUQu.js");return{diagram:t}},__vite__mapDeps([36,6,7]));return{id:Og,diagram:e}},"loader"),rT={id:Og,detector:tT,loader:eT},iT=rT,Rg="sankey",nT=d(e=>/^\s*sankey-beta/.test(e),"detector"),aT=d(async()=>{const{diagram:e}=await mt(async()=>{const{diagram:t}=await import("./sankeyDiagram-Y46BX6SQ-BcWhv667.js");return{diagram:t}},__vite__mapDeps([37,19,6,7]));return{id:Rg,diagram:e}},"loader"),sT={id:Rg,detector:nT,loader:aT},oT=sT,Ig="packet",lT=d(e=>/^\s*packet-beta/.test(e),"detector"),cT=d(async()=>{const{diagram:e}=await mt(async()=>{const{diagram:t}=await import("./diagram-QW4FP2JN-C7TmMevO.js");return{diagram:t}},__vite__mapDeps([38,15,17,6,7,4,2]));return{id:Ig,diagram:e}},"loader"),hT={id:Ig,detector:lT,loader:cT},Pg="block",uT=d(e=>/^\s*block-beta/.test(e),"detector"),fT=d(async()=>{const{diagram:e}=await mt(async()=>{const{diagram:t}=await import("./blockDiagram-ZHA2E4KO-CQ2sgLCo.js");return{diagram:t}},__vite__mapDeps([39,5,1,2,12,6,7]));return{id:Pg,diagram:e}},"loader"),pT={id:Pg,detector:uT,loader:fT},dT=pT,Ng="architecture",gT=d(e=>/^\s*architecture/.test(e),"detector"),mT=d(async()=>{const{diagram:e}=await mt(async()=>{const{diagram:t}=await import("./architectureDiagram-UYN6MBPD-CtGxP8ms.js");return{diagram:t}},__vite__mapDeps([40,15,16,17,6,7,4,2,35]));return{id:Ng,diagram:e}},"loader"),yT={id:Ng,detector:gT,loader:mT},xT=yT,th=!1,$a=d(()=>{th||(th=!0,In("error",qS,e=>e.toLowerCase().trim()==="error"),In("---",{db:{clear:d(()=>{},"clear")},styles:{},renderer:{draw:d(()=>{},"draw")},parser:{parse:d(()=>{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:d(()=>null,"init")},e=>e.toLowerCase().trimStart().startsWith("---")),mh(Bv,iT,SS,CS,qv,Xv,Qv,eS,pS,yS,US,Iv,$v,JS,XS,Uv,$S,BS,IS,aS,oT,hT,cS,dT,xT))},"addDiagrams"),bT=d(async()=>{P.debug("Loading registered diagrams");const t=(await Promise.allSettled(Object.entries(Jr).map(async([r,{detector:i,loader:n}])=>{if(n)try{Ms(r)}catch{try{const{diagram:a,id:o}=await n();In(o,a,i)}catch(a){throw P.error(`Failed to load external diagram with key ${r}. Removing from detectors.`),delete Jr[r],a}}}))).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"),_T="graphics-document document";function zg(e,t){e.attr("role",_T),t!==""&&e.attr("aria-roledescription",t)}d(zg,"setA11yDiagramInfo");function qg(e,t,r,i){if(e.insert!==void 0){if(r){const n=`chart-desc-${i}`;e.attr("aria-describedby",n),e.insert("desc",":first-child").attr("id",n).text(r)}if(t){const n=`chart-title-${i}`;e.attr("aria-labelledby",n),e.insert("title",":first-child").attr("id",n).text(t)}}}d(qg,"addSVGa11yTitleDescription");var br,fo=(br=class{constructor(t,r,i,n,a){this.type=t,this.text=r,this.db=i,this.parser=n,this.renderer=a}static async fromText(t,r={}){var c,h;const i=_e(),n=mo(t,i);t=ZC(t)+`
181
+ `;try{Ms(n)}catch{const u=py(n);if(!u)throw new gh(`Diagram ${n} not found.`);const{id:f,diagram:p}=await u();In(f,p)}const{db:a,parser:o,renderer:s,init:l}=Ms(n);return o.parser&&(o.parser.yy=a),(c=a.clear)==null||c.call(a),l==null||l(i),r.title&&((h=a.setDiagramTitle)==null||h.call(a,r.title)),await o.parse(t),new br(n,t,a,o,s)}async render(t,r){await this.renderer.draw(this.text,t,r,this)}getParser(){return this.parser}getType(){return this.type}},d(br,"Diagram"),br),eh=[],CT=d(()=>{eh.forEach(e=>{e()}),eh=[]},"attachFunctions"),wT=d(e=>e.replace(/^\s*%%(?!{)[^\n]+\n?/gm,"").trimStart(),"cleanupComments");function Wg(e){const t=e.match(dh);if(!t)return{text:e,metadata:{}};let r=fx(t[1],{schema:ux})??{};r=typeof r=="object"&&!Array.isArray(r)?r:{};const i={};return r.displayMode&&(i.displayMode=r.displayMode.toString()),r.title&&(i.title=r.title.toString()),r.config&&(i.config=r.config),{text:e.slice(t[0].length),metadata:i}}d(Wg,"extractFrontMatter");var kT=d(e=>e.replace(/\r\n?/g,`
182
+ `).replace(/<(\w+)([^>]*)>/g,(t,r,i)=>"<"+r+i.replace(/="([^"]*)"/g,"='$1'")+">"),"cleanupText"),vT=d(e=>{const{text:t,metadata:r}=Wg(e),{displayMode:i,title:n,config:a={}}=r;return i&&(a.gantt||(a.gantt={}),a.gantt.displayMode=i),{title:n,config:a,text:t}},"processFrontmatter"),ST=d(e=>{const t=Te.detectInit(e)??{},r=Te.detectDirective(e,"wrap");return Array.isArray(r)?t.wrap=r.some(({type:i})=>i==="wrap"):(r==null?void 0:r.type)==="wrap"&&(t.wrap=!0),{text:IC(e),directive:t}},"processDirectives");function il(e){const t=kT(e),r=vT(t),i=ST(r.text),n=jo(r.config,i.directive);return e=wT(i.text),{code:e,title:r.title,config:n}}d(il,"preprocessDiagram");function Hg(e){const t=new TextEncoder().encode(e),r=Array.from(t,i=>String.fromCodePoint(i)).join("");return btoa(r)}d(Hg,"toBase64");var TT=5e4,AT="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa",LT="sandbox",BT="loose",MT="http://www.w3.org/2000/svg",ET="http://www.w3.org/1999/xlink",FT="http://www.w3.org/1999/xhtml",$T="100%",DT="100%",OT="border:0;margin:0;",RT="margin:0",IT="allow-top-navigation-by-user-activation allow-popups",PT='The "iframe" tag is not supported by your browser.',NT=["foreignobject"],zT=["dominant-baseline"];function nl(e){const t=il(e);return On(),By(t.config??{}),t}d(nl,"processAndSetConfigs");async function jg(e,t){$a();try{const{code:r,config:i}=nl(e);return{diagramType:(await Yg(r)).type,config:i}}catch(r){if(t!=null&&t.suppressErrors)return!1;throw r}}d(jg,"parse");var rh=d((e,t,r=[])=>`
183
+ .${e} ${t} { ${r.join(" !important; ")} !important; }`,"cssImportantStyles"),qT=d((e,t=new Map)=>{var i;let r="";if(e.themeCSS!==void 0&&(r+=`
184
+ ${e.themeCSS}`),e.fontFamily!==void 0&&(r+=`
185
+ :root { --mermaid-font-family: ${e.fontFamily}}`),e.altFontFamily!==void 0&&(r+=`
186
+ :root { --mermaid-alt-font-family: ${e.altFontFamily}}`),t instanceof Map){const s=e.htmlLabels??((i=e.flowchart)==null?void 0:i.htmlLabels)?["> *","span"]:["rect","polygon","ellipse","circle","path"];t.forEach(l=>{Jc(l.styles)||s.forEach(c=>{r+=rh(l.id,c,l.styles)}),Jc(l.textStyles)||(r+=rh(l.id,"tspan",((l==null?void 0:l.textStyles)||[]).map(c=>c.replace("color","fill"))))})}return r},"createCssStyles"),WT=d((e,t,r,i)=>{const n=qT(e,r),a=Vy(t,n,e.themeVariables);return oo(cv(`${i}{${a}}`),uv)},"createUserStyles"),HT=d((e="",t,r)=>{let i=e;return!r&&!t&&(i=i.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g,'marker-end="url(#')),i=ui(i),i=i.replace(/<br>/g,"<br/>"),i},"cleanUpSvgCode"),jT=d((e="",t)=>{var n,a;const r=(a=(n=t==null?void 0:t.viewBox)==null?void 0:n.baseVal)!=null&&a.height?t.viewBox.baseVal.height+"px":DT,i=Hg(`<body style="${RT}">${e}</body>`);return`<iframe style="width:${$T};height:${r};${OT}" src="data:text/html;charset=UTF-8;base64,${i}" sandbox="${IT}">
187
+ ${PT}
188
+ </iframe>`},"putIntoIFrame"),ih=d((e,t,r,i,n)=>{const a=e.append("div");a.attr("id",r),i&&a.attr("style",i);const o=a.append("svg").attr("id",t).attr("width","100%").attr("xmlns",MT);return n&&o.attr("xmlns:xlink",n),o.append("g"),e},"appendDivSvgG");function po(e,t){return e.append("iframe").attr("id",t).attr("style","width: 100%; height: 100%;").attr("sandbox","")}d(po,"sandboxedIframe");var UT=d((e,t,r,i)=>{var n,a,o;(n=e.getElementById(t))==null||n.remove(),(a=e.getElementById(r))==null||a.remove(),(o=e.getElementById(i))==null||o.remove()},"removeExistingElements"),YT=d(async function(e,t,r){var q,O,A,L,T,D;$a();const i=nl(t);t=i.code;const n=_e();P.debug(n),t.length>((n==null?void 0:n.maxTextSize)??TT)&&(t=AT);const a="#"+e,o="i"+e,s="#"+o,l="d"+e,c="#"+l,h=d(()=>{const j=ft(f?s:c).node();j&&"remove"in j&&j.remove()},"removeTempElements");let u=ft("body");const f=n.securityLevel===LT,p=n.securityLevel===BT,g=n.fontFamily;if(r!==void 0){if(r&&(r.innerHTML=""),f){const B=po(ft(r),o);u=ft(B.nodes()[0].contentDocument.body),u.node().style.margin=0}else u=ft(r);ih(u,e,l,`font-family: ${g}`,ET)}else{if(UT(document,e,l,o),f){const B=po(ft("body"),o);u=ft(B.nodes()[0].contentDocument.body),u.node().style.margin=0}else u=ft("body");ih(u,e,l)}let m,x;try{m=await fo.fromText(t,{title:i.title})}catch(B){if(n.suppressErrorRendering)throw h(),B;m=await fo.fromText("error"),x=B}const y=u.select(c).node(),_=m.type,C=y.firstChild,k=C.firstChild,v=(O=(q=m.renderer).getClasses)==null?void 0:O.call(q,t,m),F=WT(n,_,v,a),M=document.createElement("style");M.innerHTML=F,C.insertBefore(M,k);try{await m.renderer.draw(t,e,Uc,m)}catch(B){throw n.suppressErrorRendering?h():NS.draw(t,e,Uc),B}const $=u.select(`${c} svg`),H=(L=(A=m.db).getAccTitle)==null?void 0:L.call(A),z=(D=(T=m.db).getAccDescription)==null?void 0:D.call(T);Gg(_,$,H,z),u.select(`[id="${e}"]`).selectAll("foreignobject > *").attr("xmlns",FT);let E=u.select(c).node().innerHTML;if(P.debug("config.arrowMarkerAbsolute",n.arrowMarkerAbsolute),E=HT(E,f,qt(n.arrowMarkerAbsolute)),f){const B=u.select(c+" svg").node();E=jT(E,B)}else p||(E=Qr.sanitize(E,{ADD_TAGS:NT,ADD_ATTR:zT,HTML_INTEGRATION_POINTS:{foreignobject:!0}}));if(CT(),x)throw x;return h(),{diagramType:_,svg:E,bindFunctions:m.db.bindFunctions}},"render");function Ug(e={}){var i;const t=Nt({},e);t!=null&&t.fontFamily&&!((i=t.themeVariables)!=null&&i.fontFamily)&&(t.themeVariables||(t.themeVariables={}),t.themeVariables.fontFamily=t.fontFamily),Ay(t),t!=null&&t.theme&&t.theme in Pe?t.themeVariables=Pe[t.theme].getThemeVariables(t.themeVariables):t&&(t.themeVariables=Pe.default.getThemeVariables(t.themeVariables));const r=typeof t=="object"?Ty(t):wh();go(r.logLevel),$a()}d(Ug,"initialize");var Yg=d((e,t={})=>{const{code:r}=il(e);return fo.fromText(r,t)},"getDiagramFromText");function Gg(e,t,r,i){zg(t,e),qg(t,r,i,t.attr("id"))}d(Gg,"addA11yInfo");var vr=Object.freeze({render:YT,parse:jg,getDiagramFromText:Yg,initialize:Ug,getConfig:_e,setConfig:kh,getSiteConfig:wh,updateSiteConfig:Ly,reset:d(()=>{On()},"reset"),globalReset:d(()=>{On(ti)},"globalReset"),defaultConfig:ti});go(_e().logLevel);On(_e());var GT=d((e,t,r)=>{P.warn(e),Ho(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"),Vg=d(async function(e={querySelector:".mermaid"}){try{await VT(e)}catch(t){if(Ho(t)&&P.error(t.str),he.parseError&&he.parseError(t),!e.suppressErrors)throw P.error("Use the suppressErrors option to suppress these errors"),t}},"run"),VT=d(async function({postRenderCallback:e,querySelector:t,nodes:r}={querySelector:".mermaid"}){const i=vr.getConfig();P.debug(`${e?"":"No "}Callback function found`);let n;if(r)n=r;else if(t)n=document.querySelectorAll(t);else throw new Error("Nodes and querySelector are both undefined");P.debug(`Found ${n.length} diagrams`),(i==null?void 0:i.startOnLoad)!==void 0&&(P.debug("Start On Load: "+(i==null?void 0:i.startOnLoad)),vr.updateSiteConfig({startOnLoad:i==null?void 0:i.startOnLoad}));const a=new Te.InitIDGenerator(i.deterministicIds,i.deterministicIDSeed);let o;const s=[];for(const l of Array.from(n)){if(P.info("Rendering diagram: "+l.id),l.getAttribute("data-processed"))continue;l.setAttribute("data-processed","true");const c=`mermaid-${a.next()}`;o=l.innerHTML,o=Tp(Te.entityDecode(o)).trim().replace(/<br\s*\/?>/gi,"<br/>");const h=Te.detectInit(o);h&&P.debug("Detected early reinit: ",h);try{const{svg:u,bindFunctions:f}=await Qg(c,o,l);l.innerHTML=u,e&&await e(c),f&&f(l)}catch(u){GT(u,s,he.parseError)}}if(s.length>0)throw s[0]},"runThrowsErrors"),Xg=d(function(e){vr.initialize(e)},"initialize"),XT=d(async function(e,t,r){P.warn("mermaid.init is deprecated. Please use run instead."),e&&Xg(e);const i={postRenderCallback:r,querySelector:".mermaid"};typeof t=="string"?i.querySelector=t:t&&(t instanceof HTMLElement?i.nodes=[t]:i.nodes=t),await Vg(i)},"init"),ZT=d(async(e,{lazyLoad:t=!0}={})=>{$a(),mh(...e),t===!1&&await bT()},"registerExternalDiagrams"),Zg=d(function(){if(he.startOnLoad){const{startOnLoad:e}=vr.getConfig();e&&he.run().catch(t=>P.error("Mermaid failed to initialize",t))}},"contentLoaded");typeof document<"u"&&window.addEventListener("load",Zg,!1);var KT=d(function(e){he.parseError=e},"setParseErrorHandler"),ca=[],vs=!1,Kg=d(async()=>{if(!vs){for(vs=!0;ca.length>0;){const e=ca.shift();if(e)try{await e()}catch(t){P.error("Error executing queue",t)}}vs=!1}},"executeQueue"),QT=d(async(e,t)=>new Promise((r,i)=>{const n=d(()=>new Promise((a,o)=>{vr.parse(e,t).then(s=>{a(s),r(s)},s=>{var l;P.error("Error parsing",s),(l=he.parseError)==null||l.call(he,s),o(s),i(s)})}),"performCall");ca.push(n),Kg().catch(i)}),"parse"),Qg=d((e,t,r)=>new Promise((i,n)=>{const a=d(()=>new Promise((o,s)=>{vr.render(e,t,r).then(l=>{o(l),i(l)},l=>{var c;P.error("Error parsing",l),(c=he.parseError)==null||c.call(he,l),s(l),n(l)})}),"performCall");ca.push(a),Kg().catch(n)}),"render"),he={startOnLoad:!0,mermaidAPI:vr,parse:QT,render:Qg,init:XT,run:Vg,registerExternalDiagrams:ZT,registerLayoutLoaders:lg,initialize:Xg,parseError:void 0,contentLoaded:Zg,setParseErrorHandler:KT,detectType:mo,registerIconPacks:Dx},JT=he;/*! Check if previously processed *//*!
189
+ * Wait for document loaded before starting the execution
190
+ */const mA=Object.freeze(Object.defineProperty({__proto__:null,default:JT},Symbol.toStringTag,{value:"Module"}));export{Ji as $,lA as A,Ii as B,Be as C,i0 as D,jo as E,_h as F,_e as G,WC as H,Vk as I,ux as J,Uc as K,va as L,sA as M,oA as N,by as O,Fw as P,P1 as Q,ri as R,iA as S,yo as T,it as U,rA as V,Of as W,qC as X,Uy as Y,$C as Z,d as _,Ky as a,rn as a$,K as a0,tt as a1,uy as a2,Mh as a3,ak as a4,sg as a5,fA as a6,Sk as a7,qt as a8,fi as a9,nn as aA,dr as aB,rC as aC,vc as aD,Sr as aE,p2 as aF,Io as aG,h2 as aH,m2 as aI,hi as aJ,sC as aK,BC as aL,C2 as aM,wC as aN,Oo as aO,Jc as aP,LC as aQ,CC as aR,MC as aS,ba as aT,l2 as aU,Ro as aV,rp as aW,FC as aX,ci as aY,pC as aZ,gv as a_,Bo as aa,Rp as ab,ui as ac,up as ad,Uk as ae,uA as af,pA as ag,cA as ah,Q as ai,hA as aj,$k as ak,Bk as al,Lk as am,ka as an,Jn as ao,ap,ma as aq,Dx as ar,$x as as,Tm as at,oC as au,ip as av,Zf as aw,u2 as ax,Zn as ay,f2 as az,Zy as b,Qn as b0,rr as b1,bc as b2,Po as b3,Qf as b4,ho as b5,mA as b6,pt as c,ft as d,Bh as e,Nt as f,Jy as g,ai as h,_r as i,Rx as j,li as k,P as l,pp as m,tn as n,e0 as o,t0 as p,nA as q,gA as r,Qy as s,dA as t,Te as u,aA as v,UC as w,Xy as x,fx as y,vk as z};