@chaibuilder/pages 0.16.10 → 0.16.11

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 (762) hide show
  1. package/dist/{2AITGKQY-C0A7leVc.cjs → 2AITGKQY-AK2WgbeT.cjs} +1 -1
  2. package/dist/{2AITGKQY-LtoYzpXb.js → 2AITGKQY-D1mM4eEh.js} +2 -2
  3. package/dist/{NCMVHL6D-BqKNTZhH.js → NCMVHL6D-BeRsWdGV.js} +2 -2
  4. package/dist/{NCMVHL6D-BbCiXTDR.cjs → NCMVHL6D-DItDf9IY.cjs} +1 -1
  5. package/dist/{ZDWCUMSJ-DEjMuvHw.cjs → ZDWCUMSJ-COSBY-at.cjs} +1 -1
  6. package/dist/{ZDWCUMSJ-CudD-G3A.js → ZDWCUMSJ-D6caRaY7.js} +1 -1
  7. package/dist/{add-new-language-page-CTZglguY.cjs → add-new-language-page-CQcFi0Tp.cjs} +1 -1
  8. package/dist/{add-new-language-page-C3R8vwOA.js → add-new-language-page-nnaUe-qk.js} +2 -2
  9. package/dist/{add-new-page-Dn-jphFf.js → add-new-page-Ba1fq6LH.js} +1 -1
  10. package/dist/{add-new-page-ByCsABU-.cjs → add-new-page-DxObnvo_.cjs} +1 -1
  11. package/dist/{ai-panel-content-VYS5Bn3a.cjs → ai-panel-content-B2AgBWqo.cjs} +1 -1
  12. package/dist/{ai-panel-content-CF7-wrq0.js → ai-panel-content-M1UnzG_f.js} +2 -2
  13. package/dist/{ai-panel-default-lang-C_zJzkZ4.js → ai-panel-default-lang-CHOFEwmV.js} +2 -2
  14. package/dist/{ai-panel-default-lang-D5vpT3cL.cjs → ai-panel-default-lang-sy6vkQJh.cjs} +3 -3
  15. package/dist/{ai-panel-other-lang-5Hdkr4eJ.js → ai-panel-other-lang-B4euTuod.js} +2 -2
  16. package/dist/ai-panel-other-lang-BwjSDD3L.cjs +1 -0
  17. package/dist/ai-prompt-input-B_NRADBT.js +988 -0
  18. package/dist/ai-prompt-input-DcyVXcLG.cjs +1 -0
  19. package/dist/{ai-translation-prompt-E3TEDobP.js → ai-translation-prompt-CVuPbgXw.js} +1 -1
  20. package/dist/{ai-translation-prompt-BYubvAxO.cjs → ai-translation-prompt-Ip7w2_Ey.cjs} +1 -1
  21. package/dist/{delete-page-CecAr8Ev.cjs → delete-page-CbY8q5M3.cjs} +1 -1
  22. package/dist/{delete-page-BtWRzpTh.js → delete-page-SX9X35nA.js} +1 -1
  23. package/dist/{digital-asset-manager-Y8YMABE1.cjs → digital-asset-manager-CIMo79Di.cjs} +1 -1
  24. package/dist/{digital-asset-manager-CyBlpHrq.js → digital-asset-manager-SAFNO_mx.js} +1 -1
  25. package/dist/{duplicate-page-3Dv56tPR.js → duplicate-page-5SwLvmkX.js} +2 -2
  26. package/dist/{duplicate-page-nGQAYVQc.cjs → duplicate-page-CXK2HcxD.cjs} +1 -1
  27. package/dist/{dynamic-page-selector-B9XaZMxt.cjs → dynamic-page-selector-Crd3y4Hk.cjs} +1 -1
  28. package/dist/{dynamic-page-selector-BapENUmp.js → dynamic-page-selector-DfcuTqRN.js} +1 -1
  29. package/dist/{image-editor-EmBN_Nn_.cjs → image-editor-CnDnY97s.cjs} +1 -1
  30. package/dist/{index-C1bimRWu.cjs → index-Bz7smSC0.cjs} +2 -2
  31. package/dist/{index-C_34q9jG.js → index-EnM7J19_.js} +16 -16
  32. package/dist/index.cjs +1 -1
  33. package/dist/index.js +1 -1
  34. package/dist/{json-diff-viewer-D2tCblUU.js → json-diff-viewer-CDwpbuag.js} +1 -1
  35. package/dist/{json-diff-viewer-B9kQEwcr.cjs → json-diff-viewer-D34kDA_c.cjs} +2 -2
  36. package/dist/{lang-panel-CsA6jzez.js → lang-panel-CUIeO5bb.js} +2 -2
  37. package/dist/{lang-panel-ClCAoE4L.cjs → lang-panel-CaFrYllL.cjs} +1 -1
  38. package/dist/{mark-as-template-BsOhlLYx.js → mark-as-template-D0dLQaIB.js} +1 -1
  39. package/dist/{mark-as-template-DUeGBAgn.cjs → mark-as-template-v182tmN6.cjs} +1 -1
  40. package/dist/{no-language-page-content-KLiCVKWw.cjs → no-language-page-content-Bk4fEx_p.cjs} +1 -1
  41. package/dist/{no-language-page-content-DveHrqZF.js → no-language-page-content-ByRFD_qA.js} +1 -1
  42. package/dist/{page-creator-Du1tv5PL.js → page-creator-Bh0IUGR3.js} +2 -2
  43. package/dist/{page-creator-I5z6OA-y.cjs → page-creator-BnvaGZVI.cjs} +1 -1
  44. package/dist/{page-lock-request-DSCZ2b9Y.cjs → page-lock-request-C2b1kqyA.cjs} +1 -1
  45. package/dist/{page-lock-request-C_FjXr4-.js → page-lock-request-CaNqxfD6.js} +1 -1
  46. package/dist/{page-locked-by-dialog-DAJlxcUt.js → page-locked-by-dialog--WLDdkw9.js} +1 -1
  47. package/dist/{page-locked-by-dialog-Daefw0-2.cjs → page-locked-by-dialog-90ElC8aG.cjs} +1 -1
  48. package/dist/{page-manager-new-BNk_0XVK.js → page-manager-new-Bo4-zwfW.js} +2 -2
  49. package/dist/{page-manager-new-DmA0Ka0c.cjs → page-manager-new-SNRQn7Az.cjs} +1 -1
  50. package/dist/{page-manager-search-and-filter-heV_U9x0.js → page-manager-search-and-filter-BETHSa3y.js} +1 -1
  51. package/dist/{page-manager-search-and-filter-DkR8sFPh.cjs → page-manager-search-and-filter-hyUIHOD_.cjs} +1 -1
  52. package/dist/{page-revisions-content-BIhjzS21.cjs → page-revisions-content-BCMjvZRZ.cjs} +1 -1
  53. package/dist/{page-revisions-content-BVg59skx.js → page-revisions-content-VWthKL7O.js} +2 -2
  54. package/dist/pages.css +1 -1
  55. package/dist/{publish-pages-content-BhJ_uRxQ.js → publish-pages-content-6N7aEcM1.js} +2 -2
  56. package/dist/{publish-pages-content-CKydxoZ_.cjs → publish-pages-content-CaBwfekc.cjs} +1 -1
  57. package/dist/{save-to-lib-C3mx8iXu.cjs → save-to-lib-CtGpDkC6.cjs} +1 -1
  58. package/dist/{save-to-lib-Byfa7tCG.js → save-to-lib-YYBxY7MV.js} +1 -1
  59. package/dist/selected-block-display-BEbuJn0l.cjs +16 -0
  60. package/dist/selected-block-display-DdW-DWF1.js +394 -0
  61. package/dist/{seo-panel-DxaEiunO.cjs → seo-panel-B9P7fXjo.cjs} +1 -1
  62. package/dist/{seo-panel-CrpYigIp.js → seo-panel-CqJDhbj-.js} +1 -1
  63. package/dist/{shared-json-ld-CcUhox6j.cjs → shared-json-ld-CyxmC9y5.cjs} +1 -1
  64. package/dist/{shared-json-ld-DczSLaqw.js → shared-json-ld-DxEPILj_.js} +1 -1
  65. package/dist/{slug-input-CsniBgYf.cjs → slug-input-RNiSrU3p.cjs} +1 -1
  66. package/dist/{slug-input-CjagPxIn.js → slug-input-j5z5ZQn9.js} +1 -1
  67. package/dist/{theme-panel-footer-BYI0_a19.cjs → theme-panel-footer-CCsiDIVl.cjs} +1 -1
  68. package/dist/{theme-panel-footer-C-uSbeOf.js → theme-panel-footer-DD2yalfG.js} +1 -1
  69. package/dist/{unmark-as-template-CGKkAZPZ.js → unmark-as-template-B2hKhAHn.js} +1 -1
  70. package/dist/{unmark-as-template-GuUssCYI.cjs → unmark-as-template-DXjLbqOM.cjs} +1 -1
  71. package/dist/{unpublish-page-D67IrGmd.cjs → unpublish-page-BdJScWMX.cjs} +1 -1
  72. package/dist/{unpublish-page-ow8e1CXO.js → unpublish-page-BvB1PGSz.js} +1 -1
  73. package/dist/use-page-expand-manager-2KjeYfVS.cjs +1 -0
  74. package/dist/{web-preview-Dm8A9E8S.cjs → web-preview-BI4jd0O7.cjs} +1 -1
  75. package/dist/{web-preview-NCfHy3pB.js → web-preview-CwVpkcwU.js} +1 -1
  76. package/package.json +1 -1
  77. package/dist/_arrayEach-7nw56Qes.cjs +0 -1
  78. package/dist/_arrayEach-CBNlJl8q.js +0 -44
  79. package/dist/abap-DV7Q1lGP.cjs +0 -1
  80. package/dist/abap-Y8Dl9g_6.js +0 -6
  81. package/dist/actionscript-3-DXOxkRa2.cjs +0 -1
  82. package/dist/actionscript-3-DZzbMeqX.js +0 -6
  83. package/dist/ada-D46EKCNf.cjs +0 -1
  84. package/dist/ada-vP6ak0IW.js +0 -6
  85. package/dist/ai-panel-other-lang-BFnghH5Z.cjs +0 -1
  86. package/dist/ai-prompt-input-BXp7SxcJ.cjs +0 -45
  87. package/dist/ai-prompt-input-CrBweB8X.js +0 -4027
  88. package/dist/andromeeda-BIpZ7gaU.js +0 -4
  89. package/dist/andromeeda-DVDxRwp5.cjs +0 -1
  90. package/dist/angular-html-DPB4Rf0C.js +0 -32
  91. package/dist/angular-html-KMf2QdtP.cjs +0 -1
  92. package/dist/angular-ts-BxIbo3R1.cjs +0 -1
  93. package/dist/angular-ts-CTOR2ofC.js +0 -21
  94. package/dist/apache-BUjz-sD2.js +0 -6
  95. package/dist/apache-DL1xuH1f.cjs +0 -1
  96. package/dist/apex-CtcXmQ6V.js +0 -6
  97. package/dist/apex-UUd3Occv.cjs +0 -1
  98. package/dist/apl-CjNiDgad.js +0 -16
  99. package/dist/apl-Dj2G2M9w.cjs +0 -1
  100. package/dist/applescript-BPx7YFFu.js +0 -6
  101. package/dist/applescript-COilsSrZ.cjs +0 -1
  102. package/dist/ara-B6Lpq1YJ.cjs +0 -1
  103. package/dist/ara-Z2fSOxSw.js +0 -6
  104. package/dist/arc-CuYV2Z4i.js +0 -83
  105. package/dist/arc-Dzs-yn9V.cjs +0 -1
  106. package/dist/architecture-U656AL7Q-BFW69Rn1.js +0 -5
  107. package/dist/architecture-U656AL7Q-C1RBosC-.cjs +0 -1
  108. package/dist/architectureDiagram-VXUJARFQ-C7E-J7qp.js +0 -4669
  109. package/dist/architectureDiagram-VXUJARFQ-i1olysFf.cjs +0 -36
  110. package/dist/asciidoc-B-pCoB3G.js +0 -6
  111. package/dist/asciidoc-DcKqW72n.cjs +0 -1
  112. package/dist/asm-BTWLY5ym.js +0 -6
  113. package/dist/asm-DYMFy-sD.cjs +0 -1
  114. package/dist/astro-CFFExE8Q.js +0 -18
  115. package/dist/astro-DAOP_Xq6.cjs +0 -1
  116. package/dist/aurora-x-BwoVEUWZ.js +0 -4
  117. package/dist/aurora-x-C5IpmIOG.cjs +0 -1
  118. package/dist/awk-Fb0P9dkn.js +0 -6
  119. package/dist/awk-IEszImW6.cjs +0 -1
  120. package/dist/ayu-dark-Cv7nTiif.cjs +0 -1
  121. package/dist/ayu-dark-CxPZkpb2.js +0 -4
  122. package/dist/ballerina-Dr6dU4hP.cjs +0 -1
  123. package/dist/ballerina-oZK-YekG.js +0 -6
  124. package/dist/bat-0FvbqU9S.js +0 -6
  125. package/dist/bat-DGkUhhn2.cjs +0 -1
  126. package/dist/beancount-Bv1Sweoy.cjs +0 -1
  127. package/dist/beancount-DqJEb89h.js +0 -6
  128. package/dist/berry-DZkhZ7K3.cjs +0 -1
  129. package/dist/berry-PwsHPR_K.js +0 -6
  130. package/dist/bibtex-BgA36Z3k.cjs +0 -1
  131. package/dist/bibtex-EULQRLY5.js +0 -6
  132. package/dist/bicep-BorU73w0.js +0 -6
  133. package/dist/bicep-DL0zb-7W.cjs +0 -1
  134. package/dist/blade-BYkiyM-T.cjs +0 -1
  135. package/dist/blade-CRa6j5zS.js +0 -20
  136. package/dist/blockDiagram-VD42YOAC-8bGFphRU.js +0 -2368
  137. package/dist/blockDiagram-VD42YOAC-DG8nN7FI.cjs +0 -122
  138. package/dist/bsl-9bVgFeM9.cjs +0 -1
  139. package/dist/bsl-NkNNwerW.js +0 -8
  140. package/dist/c-CtlmKnPF.cjs +0 -1
  141. package/dist/c-eeMepfLm.js +0 -6
  142. package/dist/c4Diagram-YG6GDRKO-C5vTWKII.js +0 -1581
  143. package/dist/c4Diagram-YG6GDRKO-ojLwrHAZ.cjs +0 -10
  144. package/dist/cadence-02UX7mW8.js +0 -6
  145. package/dist/cadence-DcbmM5v3.cjs +0 -1
  146. package/dist/cairo-DM6WF2e3.js +0 -8
  147. package/dist/cairo-li7sQsxU.cjs +0 -1
  148. package/dist/catppuccin-frappe-Bn4lgmUk.cjs +0 -1
  149. package/dist/catppuccin-frappe-D3cH2rXe.js +0 -4
  150. package/dist/catppuccin-latte-BPtsb8jD.cjs +0 -1
  151. package/dist/catppuccin-latte-C0LRGUW4.js +0 -4
  152. package/dist/catppuccin-macchiato-BLfpQWhT.cjs +0 -1
  153. package/dist/catppuccin-macchiato-c5wQ11TT.js +0 -4
  154. package/dist/catppuccin-mocha-COMta283.cjs +0 -1
  155. package/dist/catppuccin-mocha-WMD6Qvya.js +0 -4
  156. package/dist/channel-Cdlcq82Q.js +0 -5
  157. package/dist/channel-D8SQrHOQ.cjs +0 -1
  158. package/dist/chunk-4BX2VUAB-D0Nkkvke.cjs +0 -1
  159. package/dist/chunk-4BX2VUAB-kRXCJxGQ.js +0 -9
  160. package/dist/chunk-55IACEB6-Ya_-e5Gj.cjs +0 -1
  161. package/dist/chunk-55IACEB6-xzVewFKl.js +0 -8
  162. package/dist/chunk-B4BG7PRW-C8Sj4Rta.cjs +0 -165
  163. package/dist/chunk-B4BG7PRW-DG5qX3ch.js +0 -1376
  164. package/dist/chunk-DI55MBZ5-C9He0Rku.cjs +0 -220
  165. package/dist/chunk-DI55MBZ5-CI_Ti_F2.js +0 -1382
  166. package/dist/chunk-FMBD7UC4-9Wx_99-Q.js +0 -19
  167. package/dist/chunk-FMBD7UC4-Be12B01Q.cjs +0 -15
  168. package/dist/chunk-QN33PNHL-B65aZfT8.cjs +0 -1
  169. package/dist/chunk-QN33PNHL-qSV2Zj2E.js +0 -20
  170. package/dist/chunk-QZHKN3VN-Dcw61eWf.js +0 -15
  171. package/dist/chunk-QZHKN3VN-V8GIXVhC.cjs +0 -1
  172. package/dist/chunk-TZMSLE5B-BUsuXR8P.cjs +0 -1
  173. package/dist/chunk-TZMSLE5B-De8BBIp6.js +0 -64
  174. package/dist/clarity-PKm5CwqM.js +0 -6
  175. package/dist/clarity-gPuvqtpF.cjs +0 -1
  176. package/dist/classDiagram-2ON5EDUG-DD8PWOat.cjs +0 -1
  177. package/dist/classDiagram-2ON5EDUG-DYXMSnp5.js +0 -16
  178. package/dist/classDiagram-v2-WZHVMYZB-DD8PWOat.cjs +0 -1
  179. package/dist/classDiagram-v2-WZHVMYZB-DYXMSnp5.js +0 -16
  180. package/dist/clojure-CXJfHrL3.js +0 -6
  181. package/dist/clojure-OUsr1SUl.cjs +0 -1
  182. package/dist/cmake-BJz8BOTU.js +0 -6
  183. package/dist/cmake-jM6P58qY.cjs +0 -1
  184. package/dist/cobol-CcrsCSUZ.cjs +0 -1
  185. package/dist/cobol-HihOMwht.js +0 -10
  186. package/dist/codeowners-Bt9yU6NX.js +0 -6
  187. package/dist/codeowners-QhPK6lIJ.cjs +0 -1
  188. package/dist/codeql-D9-TdUN8.cjs +0 -1
  189. package/dist/codeql-DHkodjjI.js +0 -6
  190. package/dist/coffee-DGBR_nr_.js +0 -8
  191. package/dist/coffee-DycxIFwY.cjs +0 -1
  192. package/dist/common-lisp-C77gR-8i.cjs +0 -1
  193. package/dist/common-lisp-EVqT9Zhp.js +0 -6
  194. package/dist/coq-B0L9upzn.js +0 -6
  195. package/dist/coq-vlPdR5hP.cjs +0 -1
  196. package/dist/cose-bilkent-S5V4N54A-BzynRFve.cjs +0 -1
  197. package/dist/cose-bilkent-S5V4N54A-C0LrMYq9.js +0 -2609
  198. package/dist/cpp-Cj177cuW.js +0 -18
  199. package/dist/cpp-DvI2Eoso.cjs +0 -1
  200. package/dist/crystal-B_WXhL2O.cjs +0 -1
  201. package/dist/crystal-CRJyc4G-.js +0 -18
  202. package/dist/csharp-C902_8Dy.cjs +0 -1
  203. package/dist/csharp-COJ2mCKr.js +0 -6
  204. package/dist/css-CECN5uSL.js +0 -6
  205. package/dist/css-Do0mp2lm.cjs +0 -1
  206. package/dist/csv-CmYOceLb.js +0 -6
  207. package/dist/csv-DiEdJzSJ.cjs +0 -1
  208. package/dist/cue-D1vJRJEx.cjs +0 -1
  209. package/dist/cue-ZzumE7IT.js +0 -6
  210. package/dist/cypher-atSM3NsM.cjs +0 -1
  211. package/dist/cypher-jpdmjtA6.js +0 -6
  212. package/dist/cytoscape.esm-DdQZKk9f.js +0 -18735
  213. package/dist/cytoscape.esm-DkGgpG6d.cjs +0 -331
  214. package/dist/d-2qe3NhmZ.cjs +0 -1
  215. package/dist/d-CBagWSwH.js +0 -6
  216. package/dist/dagre-6UL2VRFP-CJe6baLS.cjs +0 -4
  217. package/dist/dagre-6UL2VRFP-DK7rwVEg.js +0 -445
  218. package/dist/dark-plus-CRFsux2L.js +0 -4
  219. package/dist/dark-plus-DwC1RSst.cjs +0 -1
  220. package/dist/dart-6ObCrKr9.js +0 -6
  221. package/dist/dart-Ds0_0fwe.cjs +0 -1
  222. package/dist/dax-CcDT-8dH.js +0 -6
  223. package/dist/dax-DbkQa40E.cjs +0 -1
  224. package/dist/defaultLocale-D7EN2tov.js +0 -171
  225. package/dist/defaultLocale-DIVzfLaQ.cjs +0 -1
  226. package/dist/desktop-B93p9R9O.js +0 -6
  227. package/dist/desktop-tn3MFXCZ.cjs +0 -1
  228. package/dist/diagram-PSM6KHXK-C_A00ng9.js +0 -534
  229. package/dist/diagram-PSM6KHXK-X4v5dsQ4.cjs +0 -24
  230. package/dist/diagram-QEK2KX5R-rhfU6qwd.cjs +0 -43
  231. package/dist/diagram-QEK2KX5R-tTChUtDg.js +0 -221
  232. package/dist/diagram-S2PKOQOG-CJixlBq7.js +0 -143
  233. package/dist/diagram-S2PKOQOG-XyZUZk_b.cjs +0 -24
  234. package/dist/diff-BxzP2J8R.js +0 -6
  235. package/dist/diff-CA31fCOg.cjs +0 -1
  236. package/dist/docker-CsHqm9tx.js +0 -6
  237. package/dist/docker-zJpMwmYa.cjs +0 -1
  238. package/dist/dotenv-BMjVjUL1.js +0 -6
  239. package/dist/dotenv-DpcNCNek.cjs +0 -1
  240. package/dist/dracula-BNgwAJ-d.cjs +0 -1
  241. package/dist/dracula-BtZx2Kac.js +0 -4
  242. package/dist/dracula-soft-BHZ7sHFu.cjs +0 -1
  243. package/dist/dracula-soft-BKa-aqBv.js +0 -4
  244. package/dist/dream-maker-BkijXDkm.cjs +0 -1
  245. package/dist/dream-maker-PAx17jaB.js +0 -6
  246. package/dist/edge-BYQkOzbF.js +0 -12
  247. package/dist/edge-DaIYN5Mx.cjs +0 -1
  248. package/dist/elixir-BH_wmMK4.cjs +0 -1
  249. package/dist/elixir-Dh036GMp.js +0 -8
  250. package/dist/elm-BtNbw_Cd.js +0 -8
  251. package/dist/elm-Dc4sEBjc.cjs +0 -1
  252. package/dist/emacs-lisp-C1UCIjUO.cjs +0 -1
  253. package/dist/emacs-lisp-Cfxdx5D-.js +0 -6
  254. package/dist/erDiagram-Q2GNP2WA-B1QcX93p.js +0 -842
  255. package/dist/erDiagram-Q2GNP2WA-Up8_IT91.cjs +0 -60
  256. package/dist/erb-BqFQADjR.cjs +0 -1
  257. package/dist/erb-CS4zioBv.js +0 -10
  258. package/dist/erlang-CB2cfp6Z.cjs +0 -1
  259. package/dist/erlang-DNcDT8Hi.js +0 -8
  260. package/dist/everforest-dark-DMCBqXCK.js +0 -4
  261. package/dist/everforest-dark-_sBMomR1.cjs +0 -1
  262. package/dist/everforest-light-BbXl82Em.js +0 -4
  263. package/dist/everforest-light-H0xoYxl0.cjs +0 -1
  264. package/dist/fennel-Bz9-EMMc.cjs +0 -1
  265. package/dist/fennel-N4WcXuKx.js +0 -6
  266. package/dist/fish-BTDEUgqH.js +0 -6
  267. package/dist/fish-DwmQKRZi.cjs +0 -1
  268. package/dist/flowDiagram-NV44I4VS-BJffdKk6.cjs +0 -162
  269. package/dist/flowDiagram-NV44I4VS-Dq0-N_i3.js +0 -1627
  270. package/dist/fluent-BMXUxfv1.js +0 -6
  271. package/dist/fluent-CJtpNuaO.cjs +0 -1
  272. package/dist/fortran-fixed-form-DUsA-VGo.js +0 -8
  273. package/dist/fortran-fixed-form-rAbNFykM.cjs +0 -1
  274. package/dist/fortran-free-form-DPIT_jbP.js +0 -6
  275. package/dist/fortran-free-form-DRAcQkel.cjs +0 -1
  276. package/dist/fsharp-CYOiIVNx.js +0 -8
  277. package/dist/fsharp-DVcRF7k-.cjs +0 -1
  278. package/dist/ganttDiagram-LVOFAZNH-CndRZUwp.cjs +0 -267
  279. package/dist/ganttDiagram-LVOFAZNH-DCuouHg6.js +0 -2506
  280. package/dist/gdresource-BwtMIoBm.js +0 -10
  281. package/dist/gdresource-CcLusmd_.cjs +0 -1
  282. package/dist/gdscript-BifyeYhI.js +0 -6
  283. package/dist/gdscript-DSegQKMB.cjs +0 -1
  284. package/dist/gdshader-Bk8fF6yr.js +0 -6
  285. package/dist/gdshader-DsmqQl4t.cjs +0 -1
  286. package/dist/genie-Dy2rU8CF.cjs +0 -1
  287. package/dist/genie-DzUvd7U9.js +0 -6
  288. package/dist/gherkin-BmiEVBJ1.cjs +0 -1
  289. package/dist/gherkin-DHRaV0YP.js +0 -6
  290. package/dist/git-commit-Bd32YZ0K.js +0 -8
  291. package/dist/git-commit-DlVDzq9L.cjs +0 -1
  292. package/dist/git-rebase-Bn4RLd7u.cjs +0 -1
  293. package/dist/git-rebase-ZWUFO_T4.js +0 -8
  294. package/dist/gitGraph-F6HP7TQM-1lOuaCHS.cjs +0 -1
  295. package/dist/gitGraph-F6HP7TQM-Bwgh2Tgj.js +0 -5
  296. package/dist/gitGraphDiagram-NY62KEGX-BFpRv9B4.js +0 -712
  297. package/dist/gitGraphDiagram-NY62KEGX-Cc8RVspd.cjs +0 -65
  298. package/dist/github-dark-BKL9xNgN.cjs +0 -1
  299. package/dist/github-dark-DenFmJkN.js +0 -4
  300. package/dist/github-dark-default-BJPUVz4H.js +0 -4
  301. package/dist/github-dark-default-Dsv5MuSi.cjs +0 -1
  302. package/dist/github-dark-dimmed-CtB9hz8U.cjs +0 -1
  303. package/dist/github-dark-dimmed-DUshB20C.js +0 -4
  304. package/dist/github-dark-high-contrast-BqZVM-jF.cjs +0 -1
  305. package/dist/github-dark-high-contrast-D3aGCnF8.js +0 -4
  306. package/dist/github-light-BFTOhCbz.cjs +0 -1
  307. package/dist/github-light-JYsPkUQd.js +0 -4
  308. package/dist/github-light-default-BZoWH9dH.cjs +0 -1
  309. package/dist/github-light-default-D99KPAby.js +0 -4
  310. package/dist/github-light-high-contrast-BbmZE-Mp.js +0 -4
  311. package/dist/github-light-high-contrast-Ks3kPGJU.cjs +0 -1
  312. package/dist/gleam-Bv284lvN.js +0 -6
  313. package/dist/gleam-DHVuTCr7.cjs +0 -1
  314. package/dist/glimmer-js-CzmC7OX8.cjs +0 -1
  315. package/dist/glimmer-js-DkxNrfPT.js +0 -14
  316. package/dist/glimmer-ts-D6YZEmK_.js +0 -14
  317. package/dist/glimmer-ts-DLN2_wRt.cjs +0 -1
  318. package/dist/glsl-CQekZ3Zq.cjs +0 -1
  319. package/dist/glsl-CkUcVZNK.js +0 -8
  320. package/dist/gnuplot-CDPKvI9X.cjs +0 -1
  321. package/dist/gnuplot-yPG9-sE_.js +0 -6
  322. package/dist/go-ChxJuLYK.js +0 -6
  323. package/dist/go-epHseFUa.cjs +0 -1
  324. package/dist/graph-BJDrjORS.js +0 -244
  325. package/dist/graph-BLd2spTm.cjs +0 -1
  326. package/dist/graphql-BnP1YhXQ.cjs +0 -1
  327. package/dist/graphql-CBu2ehBn.js +0 -14
  328. package/dist/groovy-CJQTphOW.js +0 -6
  329. package/dist/groovy-D7VuDBXz.cjs +0 -1
  330. package/dist/gruvbox-dark-hard-C5HOtKIh.js +0 -4
  331. package/dist/gruvbox-dark-hard-CUGefKS6.cjs +0 -1
  332. package/dist/gruvbox-dark-medium-BoKPlKfz.cjs +0 -1
  333. package/dist/gruvbox-dark-medium-FVgwJHuz.js +0 -4
  334. package/dist/gruvbox-dark-soft-B46F314v.js +0 -4
  335. package/dist/gruvbox-dark-soft-DSrhOWeL.cjs +0 -1
  336. package/dist/gruvbox-light-hard-CJD38wDZ.js +0 -4
  337. package/dist/gruvbox-light-hard-De4IuseP.cjs +0 -1
  338. package/dist/gruvbox-light-medium-BlIhMYTA.js +0 -4
  339. package/dist/gruvbox-light-medium-CzMY3IEJ.cjs +0 -1
  340. package/dist/gruvbox-light-soft-DoPHyLVZ.js +0 -4
  341. package/dist/gruvbox-light-soft-U4iAIpWZ.cjs +0 -1
  342. package/dist/hack-BaDv2o40.cjs +0 -1
  343. package/dist/hack-ItRNKiEb.js +0 -10
  344. package/dist/haml-Bk21rGjP.cjs +0 -1
  345. package/dist/haml-NZLVzu_R.js +0 -10
  346. package/dist/handlebars-CJJi3lrU.cjs +0 -1
  347. package/dist/handlebars-mxStpSE7.js +0 -14
  348. package/dist/haskell-BShesV2P.cjs +0 -1
  349. package/dist/haskell-WeIwNIP6.js +0 -6
  350. package/dist/haxe-Bo5XuRS0.cjs +0 -1
  351. package/dist/haxe-TztHsm5T.js +0 -6
  352. package/dist/hcl-CrZnvm-1.cjs +0 -1
  353. package/dist/hcl-D438OF-I.js +0 -6
  354. package/dist/hjson-CEESwTUP.cjs +0 -1
  355. package/dist/hjson-DYBUbqOl.js +0 -6
  356. package/dist/hlsl-Bk8TCZNL.js +0 -6
  357. package/dist/hlsl-CyvYRIb9.cjs +0 -1
  358. package/dist/houston-BDYrDoDW.js +0 -4
  359. package/dist/houston-T57H3gQZ.cjs +0 -1
  360. package/dist/html-B50bmoVb.js +0 -10
  361. package/dist/html-C62Zf2h4.cjs +0 -1
  362. package/dist/html-derivative-C6bxFbFW.js +0 -8
  363. package/dist/html-derivative-NDb86jON.cjs +0 -1
  364. package/dist/http-BPlLI56k.cjs +0 -1
  365. package/dist/http-DLvAkeD-.js +0 -14
  366. package/dist/hurl-BQGBr8gH.cjs +0 -1
  367. package/dist/hurl-CgkFN90t.js +0 -12
  368. package/dist/hxml-GbqSQCLa.js +0 -8
  369. package/dist/hxml-vnw7fzrV.cjs +0 -1
  370. package/dist/hy-Brt5EZ7-.js +0 -6
  371. package/dist/hy-a1E2Ed6P.cjs +0 -1
  372. package/dist/imba-CR1Q6r17.cjs +0 -1
  373. package/dist/imba-CimUv-Uh.js +0 -6
  374. package/dist/info-NVLQJR56-C3piIB8L.cjs +0 -1
  375. package/dist/info-NVLQJR56-DxpWS9Ek.js +0 -5
  376. package/dist/infoDiagram-ER5ION4S-DqXS6eRb.cjs +0 -2
  377. package/dist/infoDiagram-ER5ION4S-iBX13SKY.js +0 -24
  378. package/dist/ini-BZIuRIvJ.js +0 -6
  379. package/dist/ini-Dpu3Xy2p.cjs +0 -1
  380. package/dist/init-CHZsXQcr.cjs +0 -1
  381. package/dist/init-DjUOC4st.js +0 -16
  382. package/dist/java--6gf61wy.cjs +0 -1
  383. package/dist/java-DY6VlHhP.js +0 -6
  384. package/dist/javascript-C25yR2R2.js +0 -6
  385. package/dist/javascript-DgmXW4Ha.cjs +0 -1
  386. package/dist/jinja-6NmewwV8.cjs +0 -1
  387. package/dist/jinja-CFW5uAwY.js +0 -11
  388. package/dist/jison-CD9Qsaj0.cjs +0 -1
  389. package/dist/jison-DdreslRX.js +0 -8
  390. package/dist/journeyDiagram-XKPGCS4Q-CIELmZlO.js +0 -836
  391. package/dist/journeyDiagram-XKPGCS4Q-CJX0XVNj.cjs +0 -139
  392. package/dist/json-DxJze_jm.js +0 -6
  393. package/dist/json-YkPizm35.cjs +0 -1
  394. package/dist/json5-BT4Fjg39.js +0 -6
  395. package/dist/json5-CCgFZiQn.cjs +0 -1
  396. package/dist/jsonc-CHjZD8gR.js +0 -6
  397. package/dist/jsonc-CKPHIcXW.cjs +0 -1
  398. package/dist/jsonl-BGuvDmy9.js +0 -6
  399. package/dist/jsonl-Dq56Hab-.cjs +0 -1
  400. package/dist/jsonnet-Bx2cfsXg.js +0 -6
  401. package/dist/jsonnet-Csh7E68F.cjs +0 -1
  402. package/dist/jssm-BcADi6EI.js +0 -6
  403. package/dist/jssm-D0M9iZPY.cjs +0 -1
  404. package/dist/jsx-BtKADgXT.js +0 -6
  405. package/dist/jsx-DLX6UGgg.cjs +0 -1
  406. package/dist/julia--2-efCjg.js +0 -16
  407. package/dist/julia-DimQn8rn.cjs +0 -1
  408. package/dist/kanagawa-dragon-BJZF7xDr.cjs +0 -1
  409. package/dist/kanagawa-dragon-CiKur4Hl.js +0 -4
  410. package/dist/kanagawa-lotus-BKu-smKu.js +0 -4
  411. package/dist/kanagawa-lotus-BhgzmRV4.cjs +0 -1
  412. package/dist/kanagawa-wave-BgJip59C.cjs +0 -1
  413. package/dist/kanagawa-wave-CQwozSzG.js +0 -4
  414. package/dist/kanban-definition-3W4ZIXB7-DnhdFt_Y.cjs +0 -89
  415. package/dist/kanban-definition-3W4ZIXB7-WK7l1gdb.js +0 -721
  416. package/dist/kdl-BNOv9TC3.js +0 -6
  417. package/dist/kdl-CDG1p2Qi.cjs +0 -1
  418. package/dist/kotlin-BHZjvNqT.cjs +0 -1
  419. package/dist/kotlin-ByBMgTeR.js +0 -6
  420. package/dist/kusto-BgZ0fOqg.cjs +0 -1
  421. package/dist/kusto-VWFLl2T0.js +0 -6
  422. package/dist/laserwave--izBLY1I.cjs +0 -1
  423. package/dist/laserwave-6a00oqik.js +0 -4
  424. package/dist/latex-CO8r39zT.js +0 -8
  425. package/dist/latex-Xma1qZep.cjs +0 -1
  426. package/dist/layout-AXx0t5i6.cjs +0 -1
  427. package/dist/layout-B6VyrpKo.js +0 -1223
  428. package/dist/lean-BCqiTZhG.cjs +0 -1
  429. package/dist/lean-k2QBx9cb.js +0 -6
  430. package/dist/less-B1GLI2Di.js +0 -6
  431. package/dist/less-Dtg8mm6P.cjs +0 -1
  432. package/dist/light-plus-B5D0le0o.cjs +0 -1
  433. package/dist/light-plus-CZuVqSLX.js +0 -4
  434. package/dist/linear-CdbmJ0kA.cjs +0 -1
  435. package/dist/linear-CebAae2s.js +0 -259
  436. package/dist/liquid-CHzkx3jT.js +0 -14
  437. package/dist/liquid-DjlCV7Vm.cjs +0 -1
  438. package/dist/llvm-DcRvQ_r8.cjs +0 -1
  439. package/dist/llvm-co1rIKs3.js +0 -6
  440. package/dist/log-Al8wyEFV.js +0 -6
  441. package/dist/log-CjTZ0gSB.cjs +0 -1
  442. package/dist/logo-BAktp_5i.cjs +0 -1
  443. package/dist/logo-DBa4JDzV.js +0 -6
  444. package/dist/lua-BfOnSJPp.cjs +0 -1
  445. package/dist/lua-kX5WP_P5.js +0 -8
  446. package/dist/luau-DTep-u3e.cjs +0 -1
  447. package/dist/luau-DtBSxLyz.js +0 -6
  448. package/dist/make-CsMclxtr.js +0 -6
  449. package/dist/make-NcdIe21U.cjs +0 -1
  450. package/dist/markdown-Byu9Sdmq.cjs +0 -1
  451. package/dist/markdown-CrScaQ96.js +0 -6
  452. package/dist/marko-Cvx4TamJ.cjs +0 -1
  453. package/dist/marko-ls0Jg2j8.js +0 -14
  454. package/dist/material-theme-D6KBX41T.js +0 -4
  455. package/dist/material-theme-Dj0-OyRN.cjs +0 -1
  456. package/dist/material-theme-darker-CkRroheE.js +0 -4
  457. package/dist/material-theme-darker-Dvfs29ir.cjs +0 -1
  458. package/dist/material-theme-lighter-BUBw43Yz.js +0 -4
  459. package/dist/material-theme-lighter-EU3ZGl_r.cjs +0 -1
  460. package/dist/material-theme-ocean-ClGX14Ja.js +0 -4
  461. package/dist/material-theme-ocean-px_3Pwqa.cjs +0 -1
  462. package/dist/material-theme-palenight-38jxvsGX.cjs +0 -1
  463. package/dist/material-theme-palenight-C1RVm8K1.js +0 -4
  464. package/dist/matlab-BOAaUVP0.js +0 -6
  465. package/dist/matlab-CHTOL9Kx.cjs +0 -1
  466. package/dist/mdc-DEPKJPdx.cjs +0 -1
  467. package/dist/mdc-uaivvctV.js +0 -12
  468. package/dist/mdx-BOhZZUJ8.js +0 -6
  469. package/dist/mdx-CjwI68TB.cjs +0 -1
  470. package/dist/mermaid-B0ixDHKN.js +0 -6
  471. package/dist/mermaid-XEfjk_VN.cjs +0 -1
  472. package/dist/mermaid-parser.core-DKJdj2_U.cjs +0 -128
  473. package/dist/mermaid-parser.core-GitSl6co.js +0 -13256
  474. package/dist/mermaid.core-3NhAXOzj.js +0 -14260
  475. package/dist/mermaid.core-Cop_RRH4.cjs +0 -196
  476. package/dist/min-dark-C7ak0t6c.js +0 -4
  477. package/dist/min-dark-tt5o_I5e.cjs +0 -1
  478. package/dist/min-light-CKFxVcPp.js +0 -4
  479. package/dist/min-light-tmTHl_CQ.cjs +0 -1
  480. package/dist/mindmap-definition-VGOIOE7T-BOk1rAbB.js +0 -787
  481. package/dist/mindmap-definition-VGOIOE7T-cJsasSc0.cjs +0 -68
  482. package/dist/mipsasm-BSlRcFIy.cjs +0 -1
  483. package/dist/mipsasm-CTx18fBl.js +0 -6
  484. package/dist/mojo-BD611d7o.js +0 -6
  485. package/dist/mojo-BQ8pQfYA.cjs +0 -1
  486. package/dist/monokai-C1KBYcO0.js +0 -4
  487. package/dist/monokai-DMIxv6MM.cjs +0 -1
  488. package/dist/move-Bm1vlCWg.cjs +0 -1
  489. package/dist/move-F-dICmj2.js +0 -6
  490. package/dist/narrat-CBeKHgTl.cjs +0 -1
  491. package/dist/narrat-DmhDCBs-.js +0 -6
  492. package/dist/nextflow-0_vzQJwQ.cjs +0 -1
  493. package/dist/nextflow-BAAEJxI_.js +0 -6
  494. package/dist/nginx-5vhPAEw3.js +0 -8
  495. package/dist/nginx-ByVOUyIE.cjs +0 -1
  496. package/dist/night-owl-BN78kThQ.cjs +0 -1
  497. package/dist/night-owl-Bm2rzalh.js +0 -4
  498. package/dist/nim-Bqmp5Of3.cjs +0 -1
  499. package/dist/nim-QAjRdh9w.js +0 -20
  500. package/dist/nix-B_7Vy2bT.js +0 -6
  501. package/dist/nix-BoOZl1xr.cjs +0 -1
  502. package/dist/nord-CC5OiUXg.js +0 -4
  503. package/dist/nord-Ca5AGUWc.cjs +0 -1
  504. package/dist/nushell-D8j3dhT-.js +0 -6
  505. package/dist/nushell-nGrB_wpI.cjs +0 -1
  506. package/dist/objective-c-Itk8tzmv.js +0 -6
  507. package/dist/objective-c-RjkWwFge.cjs +0 -1
  508. package/dist/objective-cpp-DGt5UKRO.js +0 -6
  509. package/dist/objective-cpp-HnfhWwRe.cjs +0 -1
  510. package/dist/ocaml-Cx8ewW_A.cjs +0 -1
  511. package/dist/ocaml-eSVK32Eg.js +0 -6
  512. package/dist/one-dark-pro-C09VQHwB.cjs +0 -1
  513. package/dist/one-dark-pro-DTA3VF0_.js +0 -4
  514. package/dist/one-light-020-h_lv.cjs +0 -1
  515. package/dist/one-light-D9sNaUtq.js +0 -4
  516. package/dist/ordinal-CagbB1m8.cjs +0 -1
  517. package/dist/ordinal-DfAQgscy.js +0 -61
  518. package/dist/packet-BFZMPI3H-B0uDu6gg.cjs +0 -1
  519. package/dist/packet-BFZMPI3H-tS-CKRal.js +0 -5
  520. package/dist/pascal-DBu9vQ2o.cjs +0 -1
  521. package/dist/pascal-xy8pJNns.js +0 -6
  522. package/dist/perl-CxWZPeDZ.cjs +0 -1
  523. package/dist/perl-DkVrgJBg.js +0 -16
  524. package/dist/php-BLXVJphD.cjs +0 -1
  525. package/dist/php-j2zCzTEz.js +0 -18
  526. package/dist/pie-7BOR55EZ-CcDzfu0_.js +0 -5
  527. package/dist/pie-7BOR55EZ-CqYqIXXG.cjs +0 -1
  528. package/dist/pieDiagram-ADFJNKIX-CFfE-HG7.js +0 -162
  529. package/dist/pieDiagram-ADFJNKIX-DWVdC3zW.cjs +0 -30
  530. package/dist/pkl-C-zSNmaA.js +0 -6
  531. package/dist/pkl-Dvyry4Rm.cjs +0 -1
  532. package/dist/plastic-CSTz3KZp.js +0 -4
  533. package/dist/plastic-r5piqq-S.cjs +0 -1
  534. package/dist/plsql-IJkoPJ9P.cjs +0 -1
  535. package/dist/plsql-pVbGZfOv.js +0 -6
  536. package/dist/po-BNfHvqmm.js +0 -6
  537. package/dist/po-Rhu6MvnX.cjs +0 -1
  538. package/dist/poimandres-BLP3NNjc.cjs +0 -1
  539. package/dist/poimandres-C-VADXHD.js +0 -4
  540. package/dist/polar-BtWqSUq2.cjs +0 -1
  541. package/dist/polar-CAZahv3u.js +0 -6
  542. package/dist/postcss-05aHdL-n.js +0 -6
  543. package/dist/postcss-Dh97DcaJ.cjs +0 -1
  544. package/dist/powerquery-BGL6VIw7.cjs +0 -1
  545. package/dist/powerquery-DI9HkTvs.js +0 -6
  546. package/dist/powershell-BiEPMjy-.cjs +0 -1
  547. package/dist/powershell-Clc4ydu-.js +0 -6
  548. package/dist/prisma-Dp473sn0.cjs +0 -1
  549. package/dist/prisma-FZjmVtSl.js +0 -6
  550. package/dist/prolog-C5-yg4TO.js +0 -6
  551. package/dist/prolog-N1U-3UeF.cjs +0 -1
  552. package/dist/proto-MmCPeFAD.js +0 -6
  553. package/dist/proto-kd7Vn2fe.cjs +0 -1
  554. package/dist/pug-DiGNE7sm.cjs +0 -1
  555. package/dist/pug-XOw9Q1Ho.js +0 -12
  556. package/dist/puppet-CUJHmnxV.js +0 -6
  557. package/dist/puppet-cDQP_ZC_.cjs +0 -1
  558. package/dist/purescript-DMxb59gF.cjs +0 -1
  559. package/dist/purescript-rUfGld-4.js +0 -6
  560. package/dist/python-BFNSHbwJ.js +0 -6
  561. package/dist/python-s9jfVbew.cjs +0 -1
  562. package/dist/qml-beorq0E4.cjs +0 -1
  563. package/dist/qml-rTNXsquU.js +0 -8
  564. package/dist/qmldir-BInDYbpo.js +0 -6
  565. package/dist/qmldir-DNF9H2ir.cjs +0 -1
  566. package/dist/qss-AeJTysr_.js +0 -6
  567. package/dist/qss-DwA_oiAM.cjs +0 -1
  568. package/dist/quadrantDiagram-AYHSOK5B-6xSOcCxL.js +0 -1024
  569. package/dist/quadrantDiagram-AYHSOK5B-J0R9fpox.cjs +0 -7
  570. package/dist/r-Bm0uF0U2.js +0 -6
  571. package/dist/r-ChIwckeM.cjs +0 -1
  572. package/dist/racket-B83wSAja.js +0 -6
  573. package/dist/racket-D4laxZit.cjs +0 -1
  574. package/dist/radar-NHE76QYJ-C4G7hzu6.js +0 -5
  575. package/dist/radar-NHE76QYJ-EznHmPEg.cjs +0 -1
  576. package/dist/raku-DHySPsLw.cjs +0 -1
  577. package/dist/raku-nEQ4ZJJ7.js +0 -6
  578. package/dist/razor-DgCbant-.cjs +0 -1
  579. package/dist/razor-Dh1wKTmh.js +0 -10
  580. package/dist/red-7y8PH7HH.js +0 -4
  581. package/dist/red-BQGOv1D5.cjs +0 -1
  582. package/dist/reg-CevkCKuZ.cjs +0 -1
  583. package/dist/reg-m_s_Kiip.js +0 -6
  584. package/dist/regexp-BazyLpPg.js +0 -6
  585. package/dist/regexp-DabTWNLE.cjs +0 -1
  586. package/dist/rel-BS5APza7.cjs +0 -1
  587. package/dist/rel-BcRfyd6Q.js +0 -6
  588. package/dist/requirementDiagram-UZGBJVZJ-DXq0f3Op.cjs +0 -64
  589. package/dist/requirementDiagram-UZGBJVZJ-p2d3AnQ8.js +0 -852
  590. package/dist/riscv-BnGFr6V7.cjs +0 -1
  591. package/dist/riscv-Ce8MAQLP.js +0 -6
  592. package/dist/rose-pine-Cr4kwgAY.js +0 -4
  593. package/dist/rose-pine-Dynd1SQq.cjs +0 -1
  594. package/dist/rose-pine-dawn-ClRRUdXX.js +0 -4
  595. package/dist/rose-pine-dawn-DwrpEjkh.cjs +0 -1
  596. package/dist/rose-pine-moon-8HmiewSG.cjs +0 -1
  597. package/dist/rose-pine-moon-ucNn3Gm8.js +0 -4
  598. package/dist/rosmsg-C7VSFzUC.cjs +0 -1
  599. package/dist/rosmsg-Cz0w1km8.js +0 -6
  600. package/dist/rst-CcbeA9zE.js +0 -22
  601. package/dist/rst-D08gsKw8.cjs +0 -1
  602. package/dist/ruby-B5H7kBtd.cjs +0 -1
  603. package/dist/ruby-DMPw6uKF.js +0 -30
  604. package/dist/rust-CLzF9zIN.js +0 -6
  605. package/dist/rust-CNeTMPbB.cjs +0 -1
  606. package/dist/sankeyDiagram-TZEHDZUN-CLBuuob-.cjs +0 -10
  607. package/dist/sankeyDiagram-TZEHDZUN-CbASga1e.js +0 -810
  608. package/dist/sas-D5Fn8Q38.cjs +0 -1
  609. package/dist/sas-fpEvgATw.js +0 -8
  610. package/dist/sass-DxHp5rTx.js +0 -6
  611. package/dist/sass-vyo-bUwh.cjs +0 -1
  612. package/dist/scala-D4grkFkl.js +0 -6
  613. package/dist/scala-ZSekD-8-.cjs +0 -1
  614. package/dist/scheme-BCRWuEm4.js +0 -6
  615. package/dist/scheme-vM0LdD-_.cjs +0 -1
  616. package/dist/scss-B1FaCqwR.js +0 -8
  617. package/dist/scss-CKlduTMv.cjs +0 -1
  618. package/dist/sdbl-B7T8abf4.js +0 -6
  619. package/dist/sdbl-DeWT5r4i.cjs +0 -1
  620. package/dist/selected-block-display-CZ3zwgqL.js +0 -43632
  621. package/dist/selected-block-display-GwQBADhp.cjs +0 -541
  622. package/dist/sequenceDiagram-WL72ISMW-3T2mzAhA.js +0 -2522
  623. package/dist/sequenceDiagram-WL72ISMW-DmS_WEPR.cjs +0 -145
  624. package/dist/shaderlab-Cr62-Wb4.js +0 -8
  625. package/dist/shaderlab-DGJjQHxC.cjs +0 -1
  626. package/dist/shellscript-DYWjN7qW.cjs +0 -1
  627. package/dist/shellscript-InADTalH.js +0 -6
  628. package/dist/shellsession-DMUSXX8m.cjs +0 -1
  629. package/dist/shellsession-DiDJNQdy.js +0 -8
  630. package/dist/slack-dark-akqwQ7ED.cjs +0 -1
  631. package/dist/slack-dark-i7wN4OET.js +0 -4
  632. package/dist/slack-ochin-BoQQWmTv.cjs +0 -1
  633. package/dist/slack-ochin-ndHf0LoP.js +0 -4
  634. package/dist/smalltalk-BNs6hxu4.cjs +0 -1
  635. package/dist/smalltalk-BlI1_OkM.js +0 -6
  636. package/dist/snazzy-light-BlSJXAu4.js +0 -4
  637. package/dist/snazzy-light-D_IwRieF.cjs +0 -1
  638. package/dist/solarized-dark-UTmkh7lw.js +0 -4
  639. package/dist/solarized-dark-gmm-WbDC.cjs +0 -1
  640. package/dist/solarized-light-BheCkDPT.js +0 -4
  641. package/dist/solarized-light-DzcxRSZP.cjs +0 -1
  642. package/dist/solidity-CYggdHYd.cjs +0 -1
  643. package/dist/solidity-CneOhxmR.js +0 -6
  644. package/dist/soy-C1-6njHa.js +0 -8
  645. package/dist/soy-CDFPDtGX.cjs +0 -1
  646. package/dist/sparql-6Cg9ppCl.cjs +0 -1
  647. package/dist/sparql-B0KWFEri.js +0 -8
  648. package/dist/splunk-CRXR8A9s.js +0 -6
  649. package/dist/splunk-CWPivao_.cjs +0 -1
  650. package/dist/sql-Cn_v3PB0.js +0 -6
  651. package/dist/sql-DhUUVgH1.cjs +0 -1
  652. package/dist/ssh-config-B93wBIBa.cjs +0 -1
  653. package/dist/ssh-config-DP-hNVbF.js +0 -6
  654. package/dist/stata-B8c5fTjX.js +0 -8
  655. package/dist/stata-DCWFCQQG.cjs +0 -1
  656. package/dist/stateDiagram-FKZM4ZOC-BmMX9umD.cjs +0 -1
  657. package/dist/stateDiagram-FKZM4ZOC-D9lkyJcL.js +0 -264
  658. package/dist/stateDiagram-v2-4FDKWEC3-BwQkMtRv.cjs +0 -1
  659. package/dist/stateDiagram-v2-4FDKWEC3-D0yq-_gB.js +0 -16
  660. package/dist/stylus-B64Bt0D4.cjs +0 -1
  661. package/dist/stylus-CyKEU1Ej.js +0 -6
  662. package/dist/svelte-5UasyOg7.js +0 -14
  663. package/dist/svelte-DFg_x5i4.cjs +0 -1
  664. package/dist/swift-9UzSvamq.js +0 -6
  665. package/dist/swift-BMbGdc3j.cjs +0 -1
  666. package/dist/synthwave-84-BBRLOmNT.cjs +0 -1
  667. package/dist/synthwave-84-NU3C_KFZ.js +0 -4
  668. package/dist/system-verilog-BCm7smPJ.js +0 -6
  669. package/dist/system-verilog-BFclLo9e.cjs +0 -1
  670. package/dist/systemd-C-4qm6XH.js +0 -6
  671. package/dist/systemd-Dtw7P4tb.cjs +0 -1
  672. package/dist/talonscript-CFF3LF_O.js +0 -6
  673. package/dist/talonscript-D8SvZJVc.cjs +0 -1
  674. package/dist/tasl--DC4oX-L.cjs +0 -1
  675. package/dist/tasl-Cg_WBUAe.js +0 -6
  676. package/dist/tcl-0Q0H86Yn.cjs +0 -1
  677. package/dist/tcl-DN7buRTF.js +0 -6
  678. package/dist/templ-BDNMUns0.cjs +0 -1
  679. package/dist/templ-peLZIM2D.js +0 -12
  680. package/dist/terraform-C0RDrmWi.cjs +0 -1
  681. package/dist/terraform-DGvcn9zM.js +0 -6
  682. package/dist/tex-BUUuwxQS.js +0 -8
  683. package/dist/tex-By7qnogv.cjs +0 -1
  684. package/dist/timeline-definition-IT6M3QCI-Bi9IiYMF.cjs +0 -61
  685. package/dist/timeline-definition-IT6M3QCI-LtkAohDp.js +0 -801
  686. package/dist/tokyo-night-DP4TmcQl.js +0 -4
  687. package/dist/tokyo-night-GOhjzM5y.cjs +0 -1
  688. package/dist/toml-DY62mUL_.js +0 -6
  689. package/dist/toml-Q64DoSvG.cjs +0 -1
  690. package/dist/treemap-KMMF4GRG-DAuFMsAI.cjs +0 -1
  691. package/dist/treemap-KMMF4GRG-vy1iI8-N.js +0 -5
  692. package/dist/ts-tags-DILCom6A.cjs +0 -1
  693. package/dist/ts-tags-ioVe2PKw.js +0 -41
  694. package/dist/tsv-BtvSkaG0.js +0 -6
  695. package/dist/tsv-DqNGnuVj.cjs +0 -1
  696. package/dist/tsx-B8rCNbgL.js +0 -6
  697. package/dist/tsx-DIpfUf9u.cjs +0 -1
  698. package/dist/turtle-DipIidr5.cjs +0 -1
  699. package/dist/turtle-_H59FV7D.js +0 -6
  700. package/dist/twig-B42NGISI.cjs +0 -1
  701. package/dist/twig-CcRLVyUg.js +0 -18
  702. package/dist/typescript-RycA9KXf.js +0 -6
  703. package/dist/typescript-b48wo4zk.cjs +0 -1
  704. package/dist/typespec-CLqB-2XS.cjs +0 -1
  705. package/dist/typespec-Djmco60m.js +0 -6
  706. package/dist/typst-Cqq4j4V-.cjs +0 -1
  707. package/dist/typst-D_1QKWns.js +0 -6
  708. package/dist/use-page-expand-manager-B5Y2KS1c.cjs +0 -1
  709. package/dist/v-81C2s01-.cjs +0 -1
  710. package/dist/v-BPCNiyYe.js +0 -6
  711. package/dist/vala-CsAYdCD2.cjs +0 -1
  712. package/dist/vala-uxaPR7d1.js +0 -6
  713. package/dist/vb-AiTMb16X.cjs +0 -1
  714. package/dist/vb-D8_c5-KN.js +0 -6
  715. package/dist/verilog-AMohXZcN.cjs +0 -1
  716. package/dist/verilog-B-bybjPF.js +0 -6
  717. package/dist/vesper-B59Iw4gV.cjs +0 -1
  718. package/dist/vesper-BckBta1U.js +0 -4
  719. package/dist/vhdl-CUlNa8ac.js +0 -6
  720. package/dist/vhdl-DIdR1NA5.cjs +0 -1
  721. package/dist/viml-D01eKeA4.cjs +0 -1
  722. package/dist/viml-DsfA-sWm.js +0 -6
  723. package/dist/vitesse-black-BoGvW84i.js +0 -4
  724. package/dist/vitesse-black-MF-1S1MG.cjs +0 -1
  725. package/dist/vitesse-dark-Cym-eLtO.js +0 -4
  726. package/dist/vitesse-dark-SIffJYSe.cjs +0 -1
  727. package/dist/vitesse-light-CcmG315c.js +0 -4
  728. package/dist/vitesse-light-U63SkYGT.cjs +0 -1
  729. package/dist/vue-DUYfTwgV.cjs +0 -1
  730. package/dist/vue-DrinnB8Y.js +0 -31
  731. package/dist/vue-html-B8T_zUQ-.cjs +0 -1
  732. package/dist/vue-html-CQOyCFnQ.js +0 -10
  733. package/dist/vue-vine-CAyeVfAj.js +0 -20
  734. package/dist/vue-vine-ClEtVpt5.cjs +0 -1
  735. package/dist/vyper-CPQuu50u.js +0 -6
  736. package/dist/vyper-DTzyzn3a.cjs +0 -1
  737. package/dist/wasm-BBXxrAl7.js +0 -6
  738. package/dist/wasm-DQxwEHae.js +0 -7
  739. package/dist/wasm-Dp-QrJpp.cjs +0 -1
  740. package/dist/wasm-Dw4u1m6u.cjs +0 -1
  741. package/dist/wenyan-CRNx8UP3.cjs +0 -1
  742. package/dist/wenyan-pbVjoM9_.js +0 -6
  743. package/dist/wgsl-DF5qc9dd.cjs +0 -1
  744. package/dist/wgsl-DY4iK1q1.js +0 -6
  745. package/dist/wikitext-D7uzEIfK.cjs +0 -1
  746. package/dist/wikitext-Z-MoUasO.js +0 -6
  747. package/dist/wit-BjWgLsJj.cjs +0 -1
  748. package/dist/wit-CQMQOlTg.js +0 -6
  749. package/dist/wolfram-BR4t3Ffc.cjs +0 -1
  750. package/dist/wolfram-Dz4KXISs.js +0 -6
  751. package/dist/xml-BpsKWkuV.cjs +0 -1
  752. package/dist/xml-C2J0sS9M.js +0 -8
  753. package/dist/xsl-BmSZphgC.js +0 -8
  754. package/dist/xsl-D-3VYix6.cjs +0 -1
  755. package/dist/xychartDiagram-PRI3JC2R-d5V8_6ka.cjs +0 -7
  756. package/dist/xychartDiagram-PRI3JC2R-ggiHJXU7.js +0 -1340
  757. package/dist/yaml-DaO7k5B1.js +0 -6
  758. package/dist/yaml-XVBmpKh-.cjs +0 -1
  759. package/dist/zenscript-CxBjpf9c.js +0 -6
  760. package/dist/zenscript-fNvwKexi.cjs +0 -1
  761. package/dist/zig-BAyIAcWK.cjs +0 -1
  762. package/dist/zig-Vm0PO9wB.js +0 -6
@@ -1,196 +0,0 @@
1
- "use strict";const go=require("./selected-block-display-GwQBADhp.cjs");var us={name:"mermaid",version:"11.12.1",description:"Markdown-ish syntax for generating flowcharts, mindmaps, sequence diagrams, class diagrams, gantt charts, git graphs and more.",type:"module",module:"./dist/mermaid.core.mjs",types:"./dist/mermaid.d.ts",exports:{".":{types:"./dist/mermaid.d.ts",import:"./dist/mermaid.core.mjs",default:"./dist/mermaid.core.mjs"},"./*":"./*"},keywords:["diagram","markdown","flowchart","sequence diagram","gantt","class diagram","git graph","mindmap","packet diagram","c4 diagram","er diagram","pie chart","pie diagram","quadrant chart","requirement diagram","graph"],scripts:{clean:"rimraf dist",dev:"pnpm -w dev","docs:code":"typedoc src/defaultConfig.ts src/config.ts src/mermaid.ts && prettier --write ./src/docs/config/setup","docs:build":"rimraf ../../docs && pnpm docs:code && pnpm docs:spellcheck && tsx scripts/docs.cli.mts","docs:verify":"pnpm docs:code && pnpm docs:spellcheck && tsx scripts/docs.cli.mts --verify","docs:pre:vitepress":"pnpm --filter ./src/docs prefetch && rimraf src/vitepress && pnpm docs:code && tsx scripts/docs.cli.mts --vitepress && pnpm --filter ./src/vitepress install --no-frozen-lockfile --ignore-scripts","docs:build:vitepress":"pnpm docs:pre:vitepress && (cd src/vitepress && pnpm run build) && cpy --flat src/docs/landing/ ./src/vitepress/.vitepress/dist/landing","docs:dev":'pnpm docs:pre:vitepress && concurrently "pnpm --filter ./src/vitepress dev" "tsx scripts/docs.cli.mts --watch --vitepress"',"docs:dev:docker":'pnpm docs:pre:vitepress && concurrently "pnpm --filter ./src/vitepress dev:docker" "tsx scripts/docs.cli.mts --watch --vitepress"',"docs:serve":"pnpm docs:build:vitepress && vitepress serve src/vitepress","docs:spellcheck":'cspell "src/docs/**/*.md"',"docs:release-version":"tsx scripts/update-release-version.mts","docs:verify-version":"tsx scripts/update-release-version.mts --verify","types:build-config":"tsx scripts/create-types-from-json-schema.mts","types:verify-config":"tsx scripts/create-types-from-json-schema.mts --verify",checkCircle:"npx madge --circular ./src",prepublishOnly:"pnpm docs:verify-version"},repository:{type:"git",url:"https://github.com/mermaid-js/mermaid"},author:"Knut Sveidqvist",license:"MIT",standard:{ignore:["**/parser/*.js","dist/**/*.js","cypress/**/*.js"],globals:["page"]},dependencies:{"@braintree/sanitize-url":"^7.1.1","@iconify/utils":"^3.0.1","@mermaid-js/parser":"workspace:^","@types/d3":"^7.4.3",cytoscape:"^3.29.3","cytoscape-cose-bilkent":"^4.1.0","cytoscape-fcose":"^2.2.0",d3:"^7.9.0","d3-sankey":"^0.12.3","dagre-d3-es":"7.0.13",dayjs:"^1.11.18",dompurify:"^3.2.5",katex:"^0.16.22",khroma:"^2.1.0","lodash-es":"^4.17.21",marked:"^16.2.1",roughjs:"^4.6.6",stylis:"^4.3.6","ts-dedent":"^2.2.0",uuid:"^11.1.0"},devDependencies:{"@adobe/jsonschema2md":"^8.0.5","@iconify/types":"^2.0.0","@types/cytoscape":"^3.21.9","@types/cytoscape-fcose":"^2.2.4","@types/d3-sankey":"^0.12.4","@types/d3-scale":"^4.0.9","@types/d3-scale-chromatic":"^3.1.0","@types/d3-selection":"^3.0.11","@types/d3-shape":"^3.1.7","@types/jsdom":"^21.1.7","@types/katex":"^0.16.7","@types/lodash-es":"^4.17.12","@types/micromatch":"^4.0.9","@types/stylis":"^4.2.7","@types/uuid":"^10.0.0",ajv:"^8.17.1",canvas:"^3.1.2",chokidar:"3.6.0",concurrently:"^9.1.2","csstree-validator":"^4.0.1",globby:"^14.1.0",jison:"^0.4.18","js-base64":"^3.7.8",jsdom:"^26.1.0","json-schema-to-typescript":"^15.0.4",micromatch:"^4.0.8","path-browserify":"^1.0.1",prettier:"^3.5.3",remark:"^15.0.1","remark-frontmatter":"^5.0.0","remark-gfm":"^4.0.1",rimraf:"^6.0.1","start-server-and-test":"^2.0.13","type-fest":"^4.35.0",typedoc:"^0.28.12","typedoc-plugin-markdown":"^4.8.1",typescript:"~5.7.3","unist-util-flatmap":"^1.0.0","unist-util-visit":"^5.0.0",vitepress:"^1.6.4","vitepress-plugin-search":"1.0.4-alpha.22"},files:["dist/","README.md"],publishConfig:{access:"public"}},pn={exports:{}},Km=pn.exports,Fl;function Zm(){return Fl||(Fl=1,function(e,t){(function(r,i){e.exports=i()})(Km,function(){var r=1e3,i=6e4,n=36e5,a="millisecond",o="second",s="minute",l="hour",c="day",h="week",u="month",f="quarter",d="year",g="date",m="Invalid Date",y=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,x=/\[([^\]]+)]|Y{1,4}|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,b={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"],B=A%100;return"["+A+(L[(B-20)%10]||L[B]||L[0])+"]"}},_=function(A,L,B){var F=String(A);return!F||F.length>=L?A:""+Array(L+1-F.length).join(B)+A},S={s:_,z:function(A){var L=-A.utcOffset(),B=Math.abs(L),F=Math.floor(B/60),M=B%60;return(L<=0?"+":"-")+_(F,2,"0")+":"+_(M,2,"0")},m:function A(L,B){if(L.date()<B.date())return-A(B,L);var F=12*(B.year()-L.year())+(B.month()-L.month()),M=L.clone().add(F,u),q=B-M<0,V=L.clone().add(F+(q?-1:1),u);return+(-(F+(B-M)/(q?M-V:V-M))||0)},a:function(A){return A<0?Math.ceil(A)||0:Math.floor(A)},p:function(A){return{M:u,y:d,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",C={};C[v]=b;var k="$isDayjsObject",D=function(A){return A instanceof W||!(!A||!A[k])},R=function A(L,B,F){var M;if(!L)return v;if(typeof L=="string"){var q=L.toLowerCase();C[q]&&(M=q),B&&(C[q]=B,M=q);var V=L.split("-");if(!M&&V.length>1)return A(V[0])}else{var j=L.name;C[j]=L,M=j}return!F&&M&&(v=M),M||!F&&v},I=function(A,L){if(D(A))return A.clone();var B=typeof L=="object"?L:{};return B.date=A,B.args=arguments,new W(B)},E=S;E.l=R,E.i=D,E.w=function(A,L){return I(A,{locale:L.$L,utc:L.$u,x:L.$x,$offset:L.$offset})};var W=function(){function A(B){this.$L=R(B.locale,null,!0),this.parse(B),this.$x=this.$x||B.x||{},this[k]=!0}var L=A.prototype;return L.parse=function(B){this.$d=function(F){var M=F.date,q=F.utc;if(M===null)return new Date(NaN);if(E.u(M))return new Date;if(M instanceof Date)return new Date(M);if(typeof M=="string"&&!/Z$/i.test(M)){var V=M.match(y);if(V){var j=V[2]-1||0,ut=(V[7]||"0").substring(0,3);return q?new Date(Date.UTC(V[1],j,V[3]||1,V[4]||0,V[5]||0,V[6]||0,ut)):new Date(V[1],j,V[3]||1,V[4]||0,V[5]||0,V[6]||0,ut)}}return new Date(M)}(B),this.init()},L.init=function(){var B=this.$d;this.$y=B.getFullYear(),this.$M=B.getMonth(),this.$D=B.getDate(),this.$W=B.getDay(),this.$H=B.getHours(),this.$m=B.getMinutes(),this.$s=B.getSeconds(),this.$ms=B.getMilliseconds()},L.$utils=function(){return E},L.isValid=function(){return this.$d.toString()!==m},L.isSame=function(B,F){var M=I(B);return this.startOf(F)<=M&&M<=this.endOf(F)},L.isAfter=function(B,F){return I(B)<this.startOf(F)},L.isBefore=function(B,F){return this.endOf(F)<I(B)},L.$g=function(B,F,M){return E.u(B)?this[F]:this.set(M,B)},L.unix=function(){return Math.floor(this.valueOf()/1e3)},L.valueOf=function(){return this.$d.getTime()},L.startOf=function(B,F){var M=this,q=!!E.u(F)||F,V=E.p(B),j=function(yt,gt){var _t=E.w(M.$u?Date.UTC(M.$y,gt,yt):new Date(M.$y,gt,yt),M);return q?_t:_t.endOf(c)},ut=function(yt,gt){return E.w(M.toDate()[yt].apply(M.toDate("s"),(q?[0,0,0,0]:[23,59,59,999]).slice(gt)),M)},nt=this.$W,dt=this.$M,st=this.$D,at="set"+(this.$u?"UTC":"");switch(V){case d:return q?j(1,0):j(31,11);case u:return q?j(1,dt):j(0,dt+1);case h:var ct=this.$locale().weekStart||0,pt=(nt<ct?nt+7:nt)-ct;return j(q?st-pt:st+(6-pt),dt);case c:case g:return ut(at+"Hours",0);case l:return ut(at+"Minutes",1);case s:return ut(at+"Seconds",2);case o:return ut(at+"Milliseconds",3);default:return this.clone()}},L.endOf=function(B){return this.startOf(B,!1)},L.$set=function(B,F){var M,q=E.p(B),V="set"+(this.$u?"UTC":""),j=(M={},M[c]=V+"Date",M[g]=V+"Date",M[u]=V+"Month",M[d]=V+"FullYear",M[l]=V+"Hours",M[s]=V+"Minutes",M[o]=V+"Seconds",M[a]=V+"Milliseconds",M)[q],ut=q===c?this.$D+(F-this.$W):F;if(q===u||q===d){var nt=this.clone().set(g,1);nt.$d[j](ut),nt.init(),this.$d=nt.set(g,Math.min(this.$D,nt.daysInMonth())).$d}else j&&this.$d[j](ut);return this.init(),this},L.set=function(B,F){return this.clone().$set(B,F)},L.get=function(B){return this[E.p(B)]()},L.add=function(B,F){var M,q=this;B=Number(B);var V=E.p(F),j=function(dt){var st=I(q);return E.w(st.date(st.date()+Math.round(dt*B)),q)};if(V===u)return this.set(u,this.$M+B);if(V===d)return this.set(d,this.$y+B);if(V===c)return j(1);if(V===h)return j(7);var ut=(M={},M[s]=i,M[l]=n,M[o]=r,M)[V]||1,nt=this.$d.getTime()+B*ut;return E.w(nt,this)},L.subtract=function(B,F){return this.add(-1*B,F)},L.format=function(B){var F=this,M=this.$locale();if(!this.isValid())return M.invalidDate||m;var q=B||"YYYY-MM-DDTHH:mm:ssZ",V=E.z(this),j=this.$H,ut=this.$m,nt=this.$M,dt=M.weekdays,st=M.months,at=M.meridiem,ct=function(gt,_t,ne,Jt){return gt&&(gt[_t]||gt(F,q))||ne[_t].slice(0,Jt)},pt=function(gt){return E.s(j%12||12,gt,"0")},yt=at||function(gt,_t,ne){var Jt=gt<12?"AM":"PM";return ne?Jt.toLowerCase():Jt};return q.replace(x,function(gt,_t){return _t||function(ne){switch(ne){case"YY":return String(F.$y).slice(-2);case"YYYY":return E.s(F.$y,4,"0");case"M":return nt+1;case"MM":return E.s(nt+1,2,"0");case"MMM":return ct(M.monthsShort,nt,st,3);case"MMMM":return ct(st,nt);case"D":return F.$D;case"DD":return E.s(F.$D,2,"0");case"d":return String(F.$W);case"dd":return ct(M.weekdaysMin,F.$W,dt,2);case"ddd":return ct(M.weekdaysShort,F.$W,dt,3);case"dddd":return dt[F.$W];case"H":return String(j);case"HH":return E.s(j,2,"0");case"h":return pt(1);case"hh":return pt(2);case"a":return yt(j,ut,!0);case"A":return yt(j,ut,!1);case"m":return String(ut);case"mm":return E.s(ut,2,"0");case"s":return String(F.$s);case"ss":return E.s(F.$s,2,"0");case"SSS":return E.s(F.$ms,3,"0");case"Z":return V}return null}(gt)||V.replace(":","")})},L.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},L.diff=function(B,F,M){var q,V=this,j=E.p(F),ut=I(B),nt=(ut.utcOffset()-this.utcOffset())*i,dt=this-ut,st=function(){return E.m(V,ut)};switch(j){case d:q=st()/12;break;case u:q=st();break;case f:q=st()/3;break;case h:q=(dt-nt)/6048e5;break;case c:q=(dt-nt)/864e5;break;case l:q=dt/n;break;case s:q=dt/i;break;case o:q=dt/r;break;default:q=dt}return M?q:E.a(q)},L.daysInMonth=function(){return this.endOf(u).$D},L.$locale=function(){return C[this.$L]},L.locale=function(B,F){if(!B)return this.$L;var M=this.clone(),q=R(B,F,!0);return q&&(M.$L=q),M},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=W.prototype;return I.prototype=O,[["$ms",a],["$s",o],["$m",s],["$H",l],["$W",c],["$M",u],["$y",d],["$D",g]].forEach(function(A){O[A[1]]=function(L){return this.$g(L,A[0],A[1])}}),I.extend=function(A,L){return A.$i||(A(L,W,I),A.$i=!0),I},I.locale=R,I.isDayjs=D,I.unix=function(A){return I(1e3*A)},I.en=C[v],I.Ls=C,I.p={},I})}(pn)),pn.exports}var Qm=Zm();const Jc=go.getDefaultExportFromCjs(Qm);var th=Object.defineProperty,p=(e,t)=>th(e,"name",{value:t,configurable:!0}),eh=(e,t)=>{for(var r in t)th(e,r,{get:t[r],enumerable:!0})},we={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},$={trace:p((...e)=>{},"trace"),debug:p((...e)=>{},"debug"),info:p((...e)=>{},"info"),warn:p((...e)=>{},"warn"),error:p((...e)=>{},"error"),fatal:p((...e)=>{},"fatal")},mo=p(function(e="fatal"){let t=we.fatal;typeof e=="string"?e.toLowerCase()in we&&(t=we[e]):typeof e=="number"&&(t=e),$.trace=()=>{},$.debug=()=>{},$.info=()=>{},$.warn=()=>{},$.error=()=>{},$.fatal=()=>{},t<=we.fatal&&($.fatal=console.error?console.error.bind(console,te("FATAL"),"color: orange"):console.log.bind(console,"\x1B[35m",te("FATAL"))),t<=we.error&&($.error=console.error?console.error.bind(console,te("ERROR"),"color: orange"):console.log.bind(console,"\x1B[31m",te("ERROR"))),t<=we.warn&&($.warn=console.warn?console.warn.bind(console,te("WARN"),"color: orange"):console.log.bind(console,"\x1B[33m",te("WARN"))),t<=we.info&&($.info=console.info?console.info.bind(console,te("INFO"),"color: lightblue"):console.log.bind(console,"\x1B[34m",te("INFO"))),t<=we.debug&&($.debug=console.debug?console.debug.bind(console,te("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",te("DEBUG"))),t<=we.trace&&($.trace=console.debug?console.debug.bind(console,te("TRACE"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",te("TRACE")))},"setLogLevel"),te=p(e=>`%c${Jc().format("ss.SSS")} : ${e} : `,"format");const gn={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 gn.hue2rgb(a,n,e+1/3)*255;case"g":return gn.hue2rgb(a,n,e)*255;case"b":return gn.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}}},Jm={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},t0={dec2hex:e=>{const t=Math.round(e).toString(16);return t.length>1?t:`0${t}`}},it={channel:gn,lang:Jm,unit:t0},Ie={};for(let e=0;e<=255;e++)Ie[e]=it.unit.dec2hex(e);const Dt={ALL:0,RGB:1,HSL:2};class e0{constructor(){this.type=Dt.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=Dt.ALL}is(t){return this.type===t}}class r0{constructor(t,r){this.color=r,this.changed=!1,this.data=t,this.type=new e0}set(t,r){return this.color=r,this.changed=!1,this.data=t,this.type.type=Dt.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(Dt.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(Dt.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(Dt.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(Dt.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(Dt.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(Dt.RGB)&&r!==void 0?r:(this._ensureRGB(),it.channel.rgb2hsl(t,"l"))}get a(){return this.data.a}set r(t){this.type.set(Dt.RGB),this.changed=!0,this.data.r=t}set g(t){this.type.set(Dt.RGB),this.changed=!0,this.data.g=t}set b(t){this.type.set(Dt.RGB),this.changed=!0,this.data.b=t}set h(t){this.type.set(Dt.HSL),this.changed=!0,this.data.h=t}set s(t){this.type.set(Dt.HSL),this.changed=!0,this.data.s=t}set l(t){this.type.set(Dt.HSL),this.changed=!0,this.data.l=t}set a(t){this.changed=!0,this.data.a=t}}const aa=new r0({r:0,g:0,b:0,a:0},"transparent"),Lr={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:e=>{if(e.charCodeAt(0)!==35)return;const t=e.match(Lr.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 aa.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?`#${Ie[Math.round(t)]}${Ie[Math.round(r)]}${Ie[Math.round(i)]}${Ie[Math.round(n*255)]}`:`#${Ie[Math.round(t)]}${Ie[Math.round(r)]}${Ie[Math.round(i)]}`}},Je={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(Je.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(Je.re);if(!r)return;const[,i,n,a,o,s]=r;return aa.set({h:Je._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)}%)`}},Si={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=Si.colors[e];if(t)return Lr.parse(t)},stringify:e=>{const t=Lr.stringify(e);for(const r in Si.colors)if(Si.colors[r]===t)return r}},mi={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(mi.re);if(!r)return;const[,i,n,a,o,s,l,c,h]=r;return aa.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)})`}},ce={format:{keyword:Si,hex:Lr,rgb:mi,rgba:mi,hsl:Je,hsla:Je},parse:e=>{if(typeof e!="string")return e;const t=Lr.parse(e)||mi.parse(e)||Je.parse(e)||Si.parse(e);if(t)return t;throw new Error(`Unsupported color format: "${e}"`)},stringify:e=>!e.changed&&e.color?e.color:e.type.is(Dt.HSL)||e.data.r===void 0?Je.stringify(e):e.a<1||!Number.isInteger(e.r)||!Number.isInteger(e.g)||!Number.isInteger(e.b)?mi.stringify(e):Lr.stringify(e)},rh=(e,t)=>{const r=ce.parse(e);for(const i in t)r[i]=it.channel.clamp[i](t[i]);return ce.stringify(r)},Mr=(e,t,r=0,i=1)=>{if(typeof e!="number")return rh(e,{a:t});const n=aa.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 ce.stringify(n)},i0=e=>{const{r:t,g:r,b:i}=ce.parse(e),n=.2126*it.channel.toLinear(t)+.7152*it.channel.toLinear(r)+.0722*it.channel.toLinear(i);return it.lang.round(n)},n0=e=>i0(e)>=.5,Vr=e=>!n0(e),ih=(e,t,r)=>{const i=ce.parse(e),n=i[t],a=it.channel.clamp[t](n+r);return n!==a&&(i[t]=a),ce.stringify(i)},H=(e,t)=>ih(e,"l",t),Q=(e,t)=>ih(e,"l",-t),T=(e,t)=>{const r=ce.parse(e),i={};for(const n in t)t[n]&&(i[n]=r[n]+t[n]);return rh(e,i)},a0=(e,t,r=50)=>{const{r:i,g:n,b:a,a:o}=ce.parse(e),{r:s,g:l,b:c,a:h}=ce.parse(t),u=r/100,f=u*2-1,d=o-h,m=((f*d===-1?f:(f+d)/(1+f*d))+1)/2,y=1-m,x=i*m+s*y,b=n*m+l*y,_=a*m+c*y,S=o*u+h*(1-u);return Mr(x,b,_,S)},N=(e,t=100)=>{const r=ce.parse(e);return r.r=255-r.r,r.g=255-r.g,r.b=255-r.b,a0(r,e,t)};/*! @license DOMPurify 3.3.0 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.3.0/LICENSE */const{entries:nh,setPrototypeOf:$l,isFrozen:s0,getPrototypeOf:o0,getOwnPropertyDescriptor:l0}=Object;let{freeze:Ht,seal:re,create:fs}=Object,{apply:ds,construct:ps}=typeof Reflect<"u"&&Reflect;Ht||(Ht=function(t){return t});re||(re=function(t){return t});ds||(ds=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)});ps||(ps=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 rn=jt(Array.prototype.forEach),c0=jt(Array.prototype.lastIndexOf),Dl=jt(Array.prototype.pop),si=jt(Array.prototype.push),h0=jt(Array.prototype.splice),mn=jt(String.prototype.toLowerCase),ja=jt(String.prototype.toString),Ya=jt(String.prototype.match),oi=jt(String.prototype.replace),u0=jt(String.prototype.indexOf),f0=jt(String.prototype.trim),ae=jt(Object.prototype.hasOwnProperty),Nt=jt(RegExp.prototype.test),li=d0(TypeError);function jt(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 ds(e,t,i)}}function d0(e){return function(){for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return ps(e,r)}}function ot(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:mn;$l&&$l(e,null);let i=t.length;for(;i--;){let n=t[i];if(typeof n=="string"){const a=r(n);a!==n&&(s0(t)||(t[i]=a),n=a)}e[n]=!0}return e}function p0(e){for(let t=0;t<e.length;t++)ae(e,t)||(e[t]=null);return e}function ke(e){const t=fs(null);for(const[r,i]of nh(e))ae(e,r)&&(Array.isArray(i)?t[r]=p0(i):i&&typeof i=="object"&&i.constructor===Object?t[r]=ke(i):t[r]=i);return t}function ci(e,t){for(;e!==null;){const i=l0(e,t);if(i){if(i.get)return jt(i.get);if(typeof i.value=="function")return jt(i.value)}e=o0(e)}function r(){return null}return r}const Ol=Ht(["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"]),Ua=Ht(["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"]),Ga=Ht(["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"]),g0=Ht(["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"]),Xa=Ht(["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"]),m0=Ht(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Il=Ht(["#text"]),Pl=Ht(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","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","slot"]),Va=Ht(["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","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","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-rendering","textlength","type","u1","u2","unicode","values","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"]),Rl=Ht(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","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"]),nn=Ht(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),y0=re(/\{\{[\w\W]*|[\w\W]*\}\}/gm),x0=re(/<%[\w\W]*|[\w\W]*%>/gm),b0=re(/\$\{[\w\W]*/gm),C0=re(/^data-[\-\w.\u00B7-\uFFFF]+$/),_0=re(/^aria-[\-\w]+$/),ah=re(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),v0=re(/^(?:\w+script|data):/i),w0=re(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),sh=re(/^html$/i),S0=re(/^[a-z][.\w]*(-[.\w]+)+$/i);var Nl=Object.freeze({__proto__:null,ARIA_ATTR:_0,ATTR_WHITESPACE:w0,CUSTOM_ELEMENT:S0,DATA_ATTR:C0,DOCTYPE_NAME:sh,ERB_EXPR:x0,IS_ALLOWED_URI:ah,IS_SCRIPT_OR_DATA:v0,MUSTACHE_EXPR:y0,TMPLIT_EXPR:b0});const hi={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},k0=function(){return typeof window>"u"?null:window},T0=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}},Wl=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function oh(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:k0();const t=J=>oh(J);if(t.version="3.3.0",t.removed=[],!e||!e.document||e.document.nodeType!==hi.document||!e.Element)return t.isSupported=!1,t;let{document:r}=e;const i=r,n=i.currentScript,{DocumentFragment:a,HTMLTemplateElement:o,Node:s,Element:l,NodeFilter:c,NamedNodeMap:h=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:u,DOMParser:f,trustedTypes:d}=e,g=l.prototype,m=ci(g,"cloneNode"),y=ci(g,"remove"),x=ci(g,"nextSibling"),b=ci(g,"childNodes"),_=ci(g,"parentNode");if(typeof o=="function"){const J=r.createElement("template");J.content&&J.content.ownerDocument&&(r=J.content.ownerDocument)}let S,v="";const{implementation:C,createNodeIterator:k,createDocumentFragment:D,getElementsByTagName:R}=r,{importNode:I}=i;let E=Wl();t.isSupported=typeof nh=="function"&&typeof _=="function"&&C&&C.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:W,ERB_EXPR:O,TMPLIT_EXPR:A,DATA_ATTR:L,ARIA_ATTR:B,IS_SCRIPT_OR_DATA:F,ATTR_WHITESPACE:M,CUSTOM_ELEMENT:q}=Nl;let{IS_ALLOWED_URI:V}=Nl,j=null;const ut=ot({},[...Ol,...Ua,...Ga,...Xa,...Il]);let nt=null;const dt=ot({},[...Pl,...Va,...Rl,...nn]);let st=Object.seal(fs(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}})),at=null,ct=null;const pt=Object.seal(fs(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let yt=!0,gt=!0,_t=!1,ne=!0,Jt=!1,Oe=!0,Ge=!1,Oa=!1,Ia=!1,xr=!1,Ki=!1,Zi=!1,pl=!0,gl=!1;const zm="user-content-";let Pa=!0,ni=!1,br={},Cr=null;const ml=ot({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let yl=null;const xl=ot({},["audio","video","img","source","image","track"]);let Ra=null;const bl=ot({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Qi="http://www.w3.org/1998/Math/MathML",Ji="http://www.w3.org/2000/svg",Ce="http://www.w3.org/1999/xhtml";let _r=Ce,Na=!1,Wa=null;const Hm=ot({},[Qi,Ji,Ce],ja);let tn=ot({},["mi","mo","mn","ms","mtext"]),en=ot({},["annotation-xml"]);const jm=ot({},["title","style","font","a","script"]);let ai=null;const Ym=["application/xhtml+xml","text/html"],Um="text/html";let Lt=null,vr=null;const Gm=r.createElement("form"),Cl=function(w){return w instanceof RegExp||w instanceof Function},qa=function(){let w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(vr&&vr===w)){if((!w||typeof w!="object")&&(w={}),w=ke(w),ai=Ym.indexOf(w.PARSER_MEDIA_TYPE)===-1?Um:w.PARSER_MEDIA_TYPE,Lt=ai==="application/xhtml+xml"?ja:mn,j=ae(w,"ALLOWED_TAGS")?ot({},w.ALLOWED_TAGS,Lt):ut,nt=ae(w,"ALLOWED_ATTR")?ot({},w.ALLOWED_ATTR,Lt):dt,Wa=ae(w,"ALLOWED_NAMESPACES")?ot({},w.ALLOWED_NAMESPACES,ja):Hm,Ra=ae(w,"ADD_URI_SAFE_ATTR")?ot(ke(bl),w.ADD_URI_SAFE_ATTR,Lt):bl,yl=ae(w,"ADD_DATA_URI_TAGS")?ot(ke(xl),w.ADD_DATA_URI_TAGS,Lt):xl,Cr=ae(w,"FORBID_CONTENTS")?ot({},w.FORBID_CONTENTS,Lt):ml,at=ae(w,"FORBID_TAGS")?ot({},w.FORBID_TAGS,Lt):ke({}),ct=ae(w,"FORBID_ATTR")?ot({},w.FORBID_ATTR,Lt):ke({}),br=ae(w,"USE_PROFILES")?w.USE_PROFILES:!1,yt=w.ALLOW_ARIA_ATTR!==!1,gt=w.ALLOW_DATA_ATTR!==!1,_t=w.ALLOW_UNKNOWN_PROTOCOLS||!1,ne=w.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Jt=w.SAFE_FOR_TEMPLATES||!1,Oe=w.SAFE_FOR_XML!==!1,Ge=w.WHOLE_DOCUMENT||!1,xr=w.RETURN_DOM||!1,Ki=w.RETURN_DOM_FRAGMENT||!1,Zi=w.RETURN_TRUSTED_TYPE||!1,Ia=w.FORCE_BODY||!1,pl=w.SANITIZE_DOM!==!1,gl=w.SANITIZE_NAMED_PROPS||!1,Pa=w.KEEP_CONTENT!==!1,ni=w.IN_PLACE||!1,V=w.ALLOWED_URI_REGEXP||ah,_r=w.NAMESPACE||Ce,tn=w.MATHML_TEXT_INTEGRATION_POINTS||tn,en=w.HTML_INTEGRATION_POINTS||en,st=w.CUSTOM_ELEMENT_HANDLING||{},w.CUSTOM_ELEMENT_HANDLING&&Cl(w.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(st.tagNameCheck=w.CUSTOM_ELEMENT_HANDLING.tagNameCheck),w.CUSTOM_ELEMENT_HANDLING&&Cl(w.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(st.attributeNameCheck=w.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),w.CUSTOM_ELEMENT_HANDLING&&typeof w.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(st.allowCustomizedBuiltInElements=w.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Jt&&(gt=!1),Ki&&(xr=!0),br&&(j=ot({},Il),nt=[],br.html===!0&&(ot(j,Ol),ot(nt,Pl)),br.svg===!0&&(ot(j,Ua),ot(nt,Va),ot(nt,nn)),br.svgFilters===!0&&(ot(j,Ga),ot(nt,Va),ot(nt,nn)),br.mathMl===!0&&(ot(j,Xa),ot(nt,Rl),ot(nt,nn))),w.ADD_TAGS&&(typeof w.ADD_TAGS=="function"?pt.tagCheck=w.ADD_TAGS:(j===ut&&(j=ke(j)),ot(j,w.ADD_TAGS,Lt))),w.ADD_ATTR&&(typeof w.ADD_ATTR=="function"?pt.attributeCheck=w.ADD_ATTR:(nt===dt&&(nt=ke(nt)),ot(nt,w.ADD_ATTR,Lt))),w.ADD_URI_SAFE_ATTR&&ot(Ra,w.ADD_URI_SAFE_ATTR,Lt),w.FORBID_CONTENTS&&(Cr===ml&&(Cr=ke(Cr)),ot(Cr,w.FORBID_CONTENTS,Lt)),Pa&&(j["#text"]=!0),Ge&&ot(j,["html","head","body"]),j.table&&(ot(j,["tbody"]),delete at.tbody),w.TRUSTED_TYPES_POLICY){if(typeof w.TRUSTED_TYPES_POLICY.createHTML!="function")throw li('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof w.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw li('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');S=w.TRUSTED_TYPES_POLICY,v=S.createHTML("")}else S===void 0&&(S=T0(d,n)),S!==null&&typeof v=="string"&&(v=S.createHTML(""));Ht&&Ht(w),vr=w}},_l=ot({},[...Ua,...Ga,...g0]),vl=ot({},[...Xa,...m0]),Xm=function(w){let P=_(w);(!P||!P.tagName)&&(P={namespaceURI:_r,tagName:"template"});const K=mn(w.tagName),xt=mn(P.tagName);return Wa[w.namespaceURI]?w.namespaceURI===Ji?P.namespaceURI===Ce?K==="svg":P.namespaceURI===Qi?K==="svg"&&(xt==="annotation-xml"||tn[xt]):!!_l[K]:w.namespaceURI===Qi?P.namespaceURI===Ce?K==="math":P.namespaceURI===Ji?K==="math"&&en[xt]:!!vl[K]:w.namespaceURI===Ce?P.namespaceURI===Ji&&!en[xt]||P.namespaceURI===Qi&&!tn[xt]?!1:!vl[K]&&(jm[K]||!_l[K]):!!(ai==="application/xhtml+xml"&&Wa[w.namespaceURI]):!1},ue=function(w){si(t.removed,{element:w});try{_(w).removeChild(w)}catch{y(w)}},Xe=function(w,P){try{si(t.removed,{attribute:P.getAttributeNode(w),from:P})}catch{si(t.removed,{attribute:null,from:P})}if(P.removeAttribute(w),w==="is")if(xr||Ki)try{ue(P)}catch{}else try{P.setAttribute(w,"")}catch{}},wl=function(w){let P=null,K=null;if(Ia)w="<remove></remove>"+w;else{const vt=Ya(w,/^[\r\n\t ]+/);K=vt&&vt[0]}ai==="application/xhtml+xml"&&_r===Ce&&(w='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+w+"</body></html>");const xt=S?S.createHTML(w):w;if(_r===Ce)try{P=new f().parseFromString(xt,ai)}catch{}if(!P||!P.documentElement){P=C.createDocument(_r,"template",null);try{P.documentElement.innerHTML=Na?v:xt}catch{}}const $t=P.body||P.documentElement;return w&&K&&$t.insertBefore(r.createTextNode(K),$t.childNodes[0]||null),_r===Ce?R.call(P,Ge?"html":"body")[0]:Ge?P.documentElement:$t},Sl=function(w){return k.call(w.ownerDocument||w,w,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},za=function(w){return w instanceof u&&(typeof w.nodeName!="string"||typeof w.textContent!="string"||typeof w.removeChild!="function"||!(w.attributes instanceof h)||typeof w.removeAttribute!="function"||typeof w.setAttribute!="function"||typeof w.namespaceURI!="string"||typeof w.insertBefore!="function"||typeof w.hasChildNodes!="function")},kl=function(w){return typeof s=="function"&&w instanceof s};function _e(J,w,P){rn(J,K=>{K.call(t,w,P,vr)})}const Tl=function(w){let P=null;if(_e(E.beforeSanitizeElements,w,null),za(w))return ue(w),!0;const K=Lt(w.nodeName);if(_e(E.uponSanitizeElement,w,{tagName:K,allowedTags:j}),Oe&&w.hasChildNodes()&&!kl(w.firstElementChild)&&Nt(/<[/\w!]/g,w.innerHTML)&&Nt(/<[/\w!]/g,w.textContent)||w.nodeType===hi.progressingInstruction||Oe&&w.nodeType===hi.comment&&Nt(/<[/\w]/g,w.data))return ue(w),!0;if(!(pt.tagCheck instanceof Function&&pt.tagCheck(K))&&(!j[K]||at[K])){if(!at[K]&&Ll(K)&&(st.tagNameCheck instanceof RegExp&&Nt(st.tagNameCheck,K)||st.tagNameCheck instanceof Function&&st.tagNameCheck(K)))return!1;if(Pa&&!Cr[K]){const xt=_(w)||w.parentNode,$t=b(w)||w.childNodes;if($t&&xt){const vt=$t.length;for(let Yt=vt-1;Yt>=0;--Yt){const ve=m($t[Yt],!0);ve.__removalCount=(w.__removalCount||0)+1,xt.insertBefore(ve,x(w))}}}return ue(w),!0}return w instanceof l&&!Xm(w)||(K==="noscript"||K==="noembed"||K==="noframes")&&Nt(/<\/no(script|embed|frames)/i,w.innerHTML)?(ue(w),!0):(Jt&&w.nodeType===hi.text&&(P=w.textContent,rn([W,O,A],xt=>{P=oi(P,xt," ")}),w.textContent!==P&&(si(t.removed,{element:w.cloneNode()}),w.textContent=P)),_e(E.afterSanitizeElements,w,null),!1)},Bl=function(w,P,K){if(pl&&(P==="id"||P==="name")&&(K in r||K in Gm))return!1;if(!(gt&&!ct[P]&&Nt(L,P))){if(!(yt&&Nt(B,P))){if(!(pt.attributeCheck instanceof Function&&pt.attributeCheck(P,w))){if(!nt[P]||ct[P]){if(!(Ll(w)&&(st.tagNameCheck instanceof RegExp&&Nt(st.tagNameCheck,w)||st.tagNameCheck instanceof Function&&st.tagNameCheck(w))&&(st.attributeNameCheck instanceof RegExp&&Nt(st.attributeNameCheck,P)||st.attributeNameCheck instanceof Function&&st.attributeNameCheck(P,w))||P==="is"&&st.allowCustomizedBuiltInElements&&(st.tagNameCheck instanceof RegExp&&Nt(st.tagNameCheck,K)||st.tagNameCheck instanceof Function&&st.tagNameCheck(K))))return!1}else if(!Ra[P]){if(!Nt(V,oi(K,M,""))){if(!((P==="src"||P==="xlink:href"||P==="href")&&w!=="script"&&u0(K,"data:")===0&&yl[w])){if(!(_t&&!Nt(F,oi(K,M,"")))){if(K)return!1}}}}}}}return!0},Ll=function(w){return w!=="annotation-xml"&&Ya(w,q)},Ml=function(w){_e(E.beforeSanitizeAttributes,w,null);const{attributes:P}=w;if(!P||za(w))return;const K={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:nt,forceKeepAttr:void 0};let xt=P.length;for(;xt--;){const $t=P[xt],{name:vt,namespaceURI:Yt,value:ve}=$t,wr=Lt(vt),Ha=ve;let Mt=vt==="value"?Ha:f0(Ha);if(K.attrName=wr,K.attrValue=Mt,K.keepAttr=!0,K.forceKeepAttr=void 0,_e(E.uponSanitizeAttribute,w,K),Mt=K.attrValue,gl&&(wr==="id"||wr==="name")&&(Xe(vt,w),Mt=zm+Mt),Oe&&Nt(/((--!?|])>)|<\/(style|title|textarea)/i,Mt)){Xe(vt,w);continue}if(wr==="attributename"&&Ya(Mt,"href")){Xe(vt,w);continue}if(K.forceKeepAttr)continue;if(!K.keepAttr){Xe(vt,w);continue}if(!ne&&Nt(/\/>/i,Mt)){Xe(vt,w);continue}Jt&&rn([W,O,A],El=>{Mt=oi(Mt,El," ")});const Al=Lt(w.nodeName);if(!Bl(Al,wr,Mt)){Xe(vt,w);continue}if(S&&typeof d=="object"&&typeof d.getAttributeType=="function"&&!Yt)switch(d.getAttributeType(Al,wr)){case"TrustedHTML":{Mt=S.createHTML(Mt);break}case"TrustedScriptURL":{Mt=S.createScriptURL(Mt);break}}if(Mt!==Ha)try{Yt?w.setAttributeNS(Yt,vt,Mt):w.setAttribute(vt,Mt),za(w)?ue(w):Dl(t.removed)}catch{Xe(vt,w)}}_e(E.afterSanitizeAttributes,w,null)},Vm=function J(w){let P=null;const K=Sl(w);for(_e(E.beforeSanitizeShadowDOM,w,null);P=K.nextNode();)_e(E.uponSanitizeShadowNode,P,null),Tl(P),Ml(P),P.content instanceof a&&J(P.content);_e(E.afterSanitizeShadowDOM,w,null)};return t.sanitize=function(J){let w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},P=null,K=null,xt=null,$t=null;if(Na=!J,Na&&(J="<!-->"),typeof J!="string"&&!kl(J))if(typeof J.toString=="function"){if(J=J.toString(),typeof J!="string")throw li("dirty is not a string, aborting")}else throw li("toString is not a function");if(!t.isSupported)return J;if(Oa||qa(w),t.removed=[],typeof J=="string"&&(ni=!1),ni){if(J.nodeName){const ve=Lt(J.nodeName);if(!j[ve]||at[ve])throw li("root node is forbidden and cannot be sanitized in-place")}}else if(J instanceof s)P=wl("<!---->"),K=P.ownerDocument.importNode(J,!0),K.nodeType===hi.element&&K.nodeName==="BODY"||K.nodeName==="HTML"?P=K:P.appendChild(K);else{if(!xr&&!Jt&&!Ge&&J.indexOf("<")===-1)return S&&Zi?S.createHTML(J):J;if(P=wl(J),!P)return xr?null:Zi?v:""}P&&Ia&&ue(P.firstChild);const vt=Sl(ni?J:P);for(;xt=vt.nextNode();)Tl(xt),Ml(xt),xt.content instanceof a&&Vm(xt.content);if(ni)return J;if(xr){if(Ki)for($t=D.call(P.ownerDocument);P.firstChild;)$t.appendChild(P.firstChild);else $t=P;return(nt.shadowroot||nt.shadowrootmode)&&($t=I.call(i,$t,!0)),$t}let Yt=Ge?P.outerHTML:P.innerHTML;return Ge&&j["!doctype"]&&P.ownerDocument&&P.ownerDocument.doctype&&P.ownerDocument.doctype.name&&Nt(sh,P.ownerDocument.doctype.name)&&(Yt="<!DOCTYPE "+P.ownerDocument.doctype.name+`>
2
- `+Yt),Jt&&rn([W,O,A],ve=>{Yt=oi(Yt,ve," ")}),S&&Zi?S.createHTML(Yt):Yt},t.setConfig=function(){let J=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};qa(J),Oa=!0},t.clearConfig=function(){vr=null,Oa=!1},t.isValidAttribute=function(J,w,P){vr||qa({});const K=Lt(J),xt=Lt(w);return Bl(K,xt,P)},t.addHook=function(J,w){typeof w=="function"&&si(E[J],w)},t.removeHook=function(J,w){if(w!==void 0){const P=c0(E[J],w);return P===-1?void 0:h0(E[J],P,1)[0]}return Dl(E[J])},t.removeHooks=function(J){E[J]=[]},t.removeAllHooks=function(){E=Wl()},t}var Wr=oh(),lh=/^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s,ki=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,B0=/\s*%%.*\n/gm,Fr,ch=(Fr=class extends Error{constructor(t){super(t),this.name="UnknownDiagramError"}},p(Fr,"UnknownDiagramError"),Fr),sr={},yo=p(function(e,t){e=e.replace(lh,"").replace(ki,"").replace(B0,`
3
- `);for(const[r,{detector:i}]of Object.entries(sr))if(i(e,t))return r;throw new ch(`No diagram type detected matching given configuration for text: ${e}`)},"detectType"),gs=p((...e)=>{for(const{id:t,detector:r,loader:i}of e)hh(t,r,i)},"registerLazyLoadedDiagrams"),hh=p((e,t,r)=>{sr[e]&&$.warn(`Detector with key ${e} already exists. Overwriting.`),sr[e]={detector:t,loader:r},$.debug(`Detector with key ${e} added${r?" with loader":""}`)},"addDetector"),L0=p(e=>sr[e].loader,"getDiagramLoader"),ms=p((e,t,{depth:r=2,clobber:i=!1}={})=>{const n={depth:r,clobber:i};return Array.isArray(t)&&!Array.isArray(e)?(t.forEach(a=>ms(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]=ms(e[a],t[a],{depth:r-1,clobber:i})):(i||typeof e[a]!="object"&&typeof t[a]!="object")&&(e[a]=t[a])}),e)},"assignWithDepth"),St=ms,sa="#ffffff",oa="#f2f2f2",Wt=p((e,t)=>t?T(e,{s:-40,l:10}):T(e,{s:-40,l:-10}),"mkBorder"),$r,M0=($r=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,d,g,m,y,x,b,_,S,v,C;if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||T(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||T(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||Wt(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||Wt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||Wt(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||Wt(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||N(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||N(this.tertiaryColor),this.lineColor=this.lineColor||N(this.background),this.arrowheadColor=this.arrowheadColor||N(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?Q(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||Q(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||N(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||H(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.vertLineColor=this.vertLineColor||"navy",this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.darkMode?(this.rowOdd=this.rowOdd||Q(this.mainBkg,5)||"#ffffff",this.rowEven=this.rowEven||Q(this.mainBkg,10)):(this.rowOdd=this.rowOdd||H(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||H(this.mainBkg,5)),this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||this.tertiaryColor,this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||T(this.primaryColor,{h:30}),this.cScale4=this.cScale4||T(this.primaryColor,{h:60}),this.cScale5=this.cScale5||T(this.primaryColor,{h:90}),this.cScale6=this.cScale6||T(this.primaryColor,{h:120}),this.cScale7=this.cScale7||T(this.primaryColor,{h:150}),this.cScale8=this.cScale8||T(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||T(this.primaryColor,{h:270}),this.cScale10=this.cScale10||T(this.primaryColor,{h:300}),this.cScale11=this.cScale11||T(this.primaryColor,{h:330}),this.darkMode)for(let k=0;k<this.THEME_COLOR_LIMIT;k++)this["cScale"+k]=Q(this["cScale"+k],75);else for(let k=0;k<this.THEME_COLOR_LIMIT;k++)this["cScale"+k]=Q(this["cScale"+k],25);for(let k=0;k<this.THEME_COLOR_LIMIT;k++)this["cScaleInv"+k]=this["cScaleInv"+k]||N(this["cScale"+k]);for(let k=0;k<this.THEME_COLOR_LIMIT;k++)this.darkMode?this["cScalePeer"+k]=this["cScalePeer"+k]||H(this["cScale"+k],10):this["cScalePeer"+k]=this["cScalePeer"+k]||Q(this["cScale"+k],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let k=0;k<this.THEME_COLOR_LIMIT;k++)this["cScaleLabel"+k]=this["cScaleLabel"+k]||this.scaleLabelColor;const t=this.darkMode?-4:-1;for(let k=0;k<5;k++)this["surface"+k]=this["surface"+k]||T(this.mainBkg,{h:180,s:-15,l:t*(5+k*3)}),this["surfacePeer"+k]=this["surfacePeer"+k]||T(this.mainBkg,{h:180,s:-15,l:t*(8+k*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||T(this.primaryColor,{h:64}),this.fillType3=this.fillType3||T(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||T(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||T(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||T(this.primaryColor,{h:128}),this.fillType7=this.fillType7||T(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||T(this.primaryColor,{l:-10}),this.pie5=this.pie5||T(this.secondaryColor,{l:-10}),this.pie6=this.pie6||T(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||T(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||T(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||T(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||T(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||T(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||T(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.radar={axisColor:((r=this.radar)==null?void 0:r.axisColor)||this.lineColor,axisStrokeWidth:((i=this.radar)==null?void 0:i.axisStrokeWidth)||2,axisLabelFontSize:((n=this.radar)==null?void 0:n.axisLabelFontSize)||12,curveOpacity:((a=this.radar)==null?void 0:a.curveOpacity)||.5,curveStrokeWidth:((o=this.radar)==null?void 0:o.curveStrokeWidth)||2,graticuleColor:((s=this.radar)==null?void 0:s.graticuleColor)||"#DEDEDE",graticuleStrokeWidth:((l=this.radar)==null?void 0:l.graticuleStrokeWidth)||1,graticuleOpacity:((c=this.radar)==null?void 0:c.graticuleOpacity)||.3,legendBoxSize:((h=this.radar)==null?void 0:h.legendBoxSize)||12,legendFontSize:((u=this.radar)==null?void 0:u.legendFontSize)||12},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||T(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||T(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||T(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||T(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||T(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||T(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Vr(this.quadrant1Fill)?H(this.quadrant1Fill):Q(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:((f=this.xyChart)==null?void 0:f.backgroundColor)||this.background,titleColor:((d=this.xyChart)==null?void 0:d.titleColor)||this.primaryTextColor,xAxisTitleColor:((g=this.xyChart)==null?void 0:g.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((m=this.xyChart)==null?void 0:m.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((y=this.xyChart)==null?void 0:y.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((x=this.xyChart)==null?void 0:x.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((b=this.xyChart)==null?void 0:b.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((_=this.xyChart)==null?void 0:_.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((S=this.xyChart)==null?void 0:S.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((v=this.xyChart)==null?void 0:v.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((C=this.xyChart)==null?void 0:C.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?Q(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||T(this.primaryColor,{h:-30}),this.git4=this.git4||T(this.primaryColor,{h:-60}),this.git5=this.git5||T(this.primaryColor,{h:-90}),this.git6=this.git6||T(this.primaryColor,{h:60}),this.git7=this.git7||T(this.primaryColor,{h:120}),this.darkMode?(this.git0=H(this.git0,25),this.git1=H(this.git1,25),this.git2=H(this.git2,25),this.git3=H(this.git3,25),this.git4=H(this.git4,25),this.git5=H(this.git5,25),this.git6=H(this.git6,25),this.git7=H(this.git7,25)):(this.git0=Q(this.git0,25),this.git1=Q(this.git1,25),this.git2=Q(this.git2,25),this.git3=Q(this.git3,25),this.git4=Q(this.git4,25),this.git5=Q(this.git5,25),this.git6=Q(this.git6,25),this.git7=Q(this.git7,25)),this.gitInv0=this.gitInv0||N(this.git0),this.gitInv1=this.gitInv1||N(this.git1),this.gitInv2=this.gitInv2||N(this.git2),this.gitInv3=this.gitInv3||N(this.git3),this.gitInv4=this.gitInv4||N(this.git4),this.gitInv5=this.gitInv5||N(this.git5),this.gitInv6=this.gitInv6||N(this.git6),this.gitInv7=this.gitInv7||N(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||sa,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||oa}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]})}},p($r,"Theme"),$r),A0=p(e=>{const t=new M0;return t.calculate(e),t},"getThemeVariables"),Dr,E0=(Dr=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=H(this.primaryColor,16),this.tertiaryColor=T(this.primaryColor,{h:-160}),this.primaryBorderColor=N(this.background),this.secondaryBorderColor=Wt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Wt(this.tertiaryColor,this.darkMode),this.primaryTextColor=N(this.primaryColor),this.secondaryTextColor=N(this.secondaryColor),this.tertiaryTextColor=N(this.tertiaryColor),this.lineColor=N(this.background),this.textColor=N(this.background),this.mainBkg="#1f2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=H(N("#323D47"),10),this.lineColor="calculated",this.border1="#ccc",this.border2=Mr(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=Q("#EAE8D9",30),this.altSectionBkgColor="calculated",this.sectionBkgColor2="#EAE8D9",this.excludeBkgColor=Q(this.sectionBkgColor,10),this.taskBorderColor=Mr(255,255,255,70),this.taskBkgColor="calculated",this.taskTextColor="calculated",this.taskTextLightColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor=Mr(255,255,255,50),this.activeTaskBkgColor="#81B1DB",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="grey",this.critBorderColor="#E83737",this.critBkgColor="#E83737",this.taskTextDarkColor="calculated",this.todayLineColor="#DB5757",this.vertLineColor="#00BFFF",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.rowOdd=this.rowOdd||H(this.mainBkg,5)||"#ffffff",this.rowEven=this.rowEven||Q(this.mainBkg,10),this.labelColor="calculated",this.errorBkgColor="#a44141",this.errorTextColor="#ddd"}updateColors(){var t,r,i,n,a,o,s,l,c,h,u,f,d,g,m,y,x,b,_,S,v;this.secondBkg=H(this.mainBkg,16),this.lineColor=this.mainContrastColor,this.arrowheadColor=this.mainContrastColor,this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.edgeLabelBackground=H(this.labelBackground,25),this.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=H(this.mainBkg,23),this.taskTextColor=this.darkTextColor,this.taskTextLightColor=this.mainContrastColor,this.taskTextOutsideColor=this.taskTextLightColor,this.gridColor=this.mainContrastColor,this.doneTaskBkgColor=this.mainContrastColor,this.taskTextDarkColor=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=T(this.primaryColor,{h:64}),this.fillType3=T(this.secondaryColor,{h:64}),this.fillType4=T(this.primaryColor,{h:-64}),this.fillType5=T(this.secondaryColor,{h:-64}),this.fillType6=T(this.primaryColor,{h:128}),this.fillType7=T(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||T(this.primaryColor,{h:30}),this.cScale4=this.cScale4||T(this.primaryColor,{h:60}),this.cScale5=this.cScale5||T(this.primaryColor,{h:90}),this.cScale6=this.cScale6||T(this.primaryColor,{h:120}),this.cScale7=this.cScale7||T(this.primaryColor,{h:150}),this.cScale8=this.cScale8||T(this.primaryColor,{h:210}),this.cScale9=this.cScale9||T(this.primaryColor,{h:270}),this.cScale10=this.cScale10||T(this.primaryColor,{h:300}),this.cScale11=this.cScale11||T(this.primaryColor,{h:330});for(let C=0;C<this.THEME_COLOR_LIMIT;C++)this["cScaleInv"+C]=this["cScaleInv"+C]||N(this["cScale"+C]);for(let C=0;C<this.THEME_COLOR_LIMIT;C++)this["cScalePeer"+C]=this["cScalePeer"+C]||H(this["cScale"+C],10);for(let C=0;C<5;C++)this["surface"+C]=this["surface"+C]||T(this.mainBkg,{h:30,s:-30,l:-(-10+C*4)}),this["surfacePeer"+C]=this["surfacePeer"+C]||T(this.mainBkg,{h:30,s:-30,l:-(-7+C*4)});this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor);for(let C=0;C<this.THEME_COLOR_LIMIT;C++)this["cScaleLabel"+C]=this["cScaleLabel"+C]||this.scaleLabelColor;for(let C=0;C<this.THEME_COLOR_LIMIT;C++)this["pie"+C]=this["cScale"+C];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||T(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||T(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||T(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||T(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||T(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||T(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Vr(this.quadrant1Fill)?H(this.quadrant1Fill):Q(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.radar={axisColor:((f=this.radar)==null?void 0:f.axisColor)||this.lineColor,axisStrokeWidth:((d=this.radar)==null?void 0:d.axisStrokeWidth)||2,axisLabelFontSize:((g=this.radar)==null?void 0:g.axisLabelFontSize)||12,curveOpacity:((m=this.radar)==null?void 0:m.curveOpacity)||.5,curveStrokeWidth:((y=this.radar)==null?void 0:y.curveStrokeWidth)||2,graticuleColor:((x=this.radar)==null?void 0:x.graticuleColor)||"#DEDEDE",graticuleStrokeWidth:((b=this.radar)==null?void 0:b.graticuleStrokeWidth)||1,graticuleOpacity:((_=this.radar)==null?void 0:_.graticuleOpacity)||.3,legendBoxSize:((S=this.radar)==null?void 0:S.legendBoxSize)||12,legendFontSize:((v=this.radar)==null?void 0:v.legendFontSize)||12},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?Q(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=H(this.secondaryColor,20),this.git1=H(this.pie2||this.secondaryColor,20),this.git2=H(this.pie3||this.tertiaryColor,20),this.git3=H(this.pie4||T(this.primaryColor,{h:-30}),20),this.git4=H(this.pie5||T(this.primaryColor,{h:-60}),20),this.git5=H(this.pie6||T(this.primaryColor,{h:-90}),10),this.git6=H(this.pie7||T(this.primaryColor,{h:60}),10),this.git7=H(this.pie8||T(this.primaryColor,{h:120}),20),this.gitInv0=this.gitInv0||N(this.git0),this.gitInv1=this.gitInv1||N(this.git1),this.gitInv2=this.gitInv2||N(this.git2),this.gitInv3=this.gitInv3||N(this.git3),this.gitInv4=this.gitInv4||N(this.git4),this.gitInv5=this.gitInv5||N(this.git5),this.gitInv6=this.gitInv6||N(this.git6),this.gitInv7=this.gitInv7||N(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||N(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||N(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||H(this.background,12),this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||H(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]})}},p(Dr,"Theme"),Dr),F0=p(e=>{const t=new E0;return t.calculate(e),t},"getThemeVariables"),Or,$0=(Or=class{constructor(){this.background="#f4f4f4",this.primaryColor="#ECECFF",this.secondaryColor=T(this.primaryColor,{h:120}),this.secondaryColor="#ffffde",this.tertiaryColor=T(this.primaryColor,{h:-160}),this.primaryBorderColor=Wt(this.primaryColor,this.darkMode),this.secondaryBorderColor=Wt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Wt(this.tertiaryColor,this.darkMode),this.primaryTextColor=N(this.primaryColor),this.secondaryTextColor=N(this.secondaryColor),this.tertiaryTextColor=N(this.tertiaryColor),this.lineColor=N(this.background),this.textColor=N(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.vertLineColor="calculated",this.sectionBkgColor=Mr(102,102,255,.49),this.altSectionBkgColor="white",this.sectionBkgColor2="#fff400",this.taskBorderColor="#534fbc",this.taskBkgColor="#8a90dd",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="#534fbc",this.activeTaskBkgColor="#bfc7ff",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.vertLineColor="navy",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.rowOdd="calculated",this.rowEven="calculated",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.updateColors()}updateColors(){var t,r,i,n,a,o,s,l,c,h,u,f,d,g,m,y,x,b,_,S,v;this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||T(this.primaryColor,{h:30}),this.cScale4=this.cScale4||T(this.primaryColor,{h:60}),this.cScale5=this.cScale5||T(this.primaryColor,{h:90}),this.cScale6=this.cScale6||T(this.primaryColor,{h:120}),this.cScale7=this.cScale7||T(this.primaryColor,{h:150}),this.cScale8=this.cScale8||T(this.primaryColor,{h:210}),this.cScale9=this.cScale9||T(this.primaryColor,{h:270}),this.cScale10=this.cScale10||T(this.primaryColor,{h:300}),this.cScale11=this.cScale11||T(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||Q(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||Q(this.tertiaryColor,40);for(let C=0;C<this.THEME_COLOR_LIMIT;C++)this["cScale"+C]=Q(this["cScale"+C],10),this["cScalePeer"+C]=this["cScalePeer"+C]||Q(this["cScale"+C],25);for(let C=0;C<this.THEME_COLOR_LIMIT;C++)this["cScaleInv"+C]=this["cScaleInv"+C]||T(this["cScale"+C],{h:180});for(let C=0;C<5;C++)this["surface"+C]=this["surface"+C]||T(this.mainBkg,{h:30,l:-(5+C*5)}),this["surfacePeer"+C]=this["surfacePeer"+C]||T(this.mainBkg,{h:30,l:-(7+C*5)});if(this.scaleLabelColor=this.scaleLabelColor!=="calculated"&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor,this.labelTextColor!=="calculated"){this.cScaleLabel0=this.cScaleLabel0||N(this.labelTextColor),this.cScaleLabel3=this.cScaleLabel3||N(this.labelTextColor);for(let C=0;C<this.THEME_COLOR_LIMIT;C++)this["cScaleLabel"+C]=this["cScaleLabel"+C]||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=H(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.rowOdd=this.rowOdd||H(this.primaryColor,75)||"#ffffff",this.rowEven=this.rowEven||H(this.primaryColor,1),this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.specialStateColor=this.lineColor,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=T(this.primaryColor,{h:64}),this.fillType3=T(this.secondaryColor,{h:64}),this.fillType4=T(this.primaryColor,{h:-64}),this.fillType5=T(this.secondaryColor,{h:-64}),this.fillType6=T(this.primaryColor,{h:128}),this.fillType7=T(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||T(this.tertiaryColor,{l:-40}),this.pie4=this.pie4||T(this.primaryColor,{l:-10}),this.pie5=this.pie5||T(this.secondaryColor,{l:-30}),this.pie6=this.pie6||T(this.tertiaryColor,{l:-20}),this.pie7=this.pie7||T(this.primaryColor,{h:60,l:-20}),this.pie8=this.pie8||T(this.primaryColor,{h:-60,l:-40}),this.pie9=this.pie9||T(this.primaryColor,{h:120,l:-40}),this.pie10=this.pie10||T(this.primaryColor,{h:60,l:-40}),this.pie11=this.pie11||T(this.primaryColor,{h:-90,l:-40}),this.pie12=this.pie12||T(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||T(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||T(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||T(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||T(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||T(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||T(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Vr(this.quadrant1Fill)?H(this.quadrant1Fill):Q(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.radar={axisColor:((t=this.radar)==null?void 0:t.axisColor)||this.lineColor,axisStrokeWidth:((r=this.radar)==null?void 0:r.axisStrokeWidth)||2,axisLabelFontSize:((i=this.radar)==null?void 0:i.axisLabelFontSize)||12,curveOpacity:((n=this.radar)==null?void 0:n.curveOpacity)||.5,curveStrokeWidth:((a=this.radar)==null?void 0:a.curveStrokeWidth)||2,graticuleColor:((o=this.radar)==null?void 0:o.graticuleColor)||"#DEDEDE",graticuleStrokeWidth:((s=this.radar)==null?void 0:s.graticuleStrokeWidth)||1,graticuleOpacity:((l=this.radar)==null?void 0:l.graticuleOpacity)||.3,legendBoxSize:((c=this.radar)==null?void 0:c.legendBoxSize)||12,legendFontSize:((h=this.radar)==null?void 0:h.legendFontSize)||12},this.xyChart={backgroundColor:((u=this.xyChart)==null?void 0:u.backgroundColor)||this.background,titleColor:((f=this.xyChart)==null?void 0:f.titleColor)||this.primaryTextColor,xAxisTitleColor:((d=this.xyChart)==null?void 0:d.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((g=this.xyChart)==null?void 0:g.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((m=this.xyChart)==null?void 0:m.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((y=this.xyChart)==null?void 0:y.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((x=this.xyChart)==null?void 0:x.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((b=this.xyChart)==null?void 0:b.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((_=this.xyChart)==null?void 0:_.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((S=this.xyChart)==null?void 0:S.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((v=this.xyChart)==null?void 0:v.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||T(this.primaryColor,{h:-30}),this.git4=this.git4||T(this.primaryColor,{h:-60}),this.git5=this.git5||T(this.primaryColor,{h:-90}),this.git6=this.git6||T(this.primaryColor,{h:60}),this.git7=this.git7||T(this.primaryColor,{h:120}),this.darkMode?(this.git0=H(this.git0,25),this.git1=H(this.git1,25),this.git2=H(this.git2,25),this.git3=H(this.git3,25),this.git4=H(this.git4,25),this.git5=H(this.git5,25),this.git6=H(this.git6,25),this.git7=H(this.git7,25)):(this.git0=Q(this.git0,25),this.git1=Q(this.git1,25),this.git2=Q(this.git2,25),this.git3=Q(this.git3,25),this.git4=Q(this.git4,25),this.git5=Q(this.git5,25),this.git6=Q(this.git6,25),this.git7=Q(this.git7,25)),this.gitInv0=this.gitInv0||Q(N(this.git0),25),this.gitInv1=this.gitInv1||N(this.git1),this.gitInv2=this.gitInv2||N(this.git2),this.gitInv3=this.gitInv3||N(this.git3),this.gitInv4=this.gitInv4||N(this.git4),this.gitInv5=this.gitInv5||N(this.git5),this.gitInv6=this.gitInv6||N(this.git6),this.gitInv7=this.gitInv7||N(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||N(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||N(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||sa,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||oa}calculate(t){if(Object.keys(this).forEach(i=>{this[i]==="calculated"&&(this[i]=void 0)}),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]})}},p(Or,"Theme"),Or),uh=p(e=>{const t=new $0;return t.calculate(e),t},"getThemeVariables"),Ir,D0=(Ir=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=H("#cde498",10),this.primaryBorderColor=Wt(this.primaryColor,this.darkMode),this.secondaryBorderColor=Wt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Wt(this.tertiaryColor,this.darkMode),this.primaryTextColor=N(this.primaryColor),this.secondaryTextColor=N(this.secondaryColor),this.tertiaryTextColor=N(this.primaryColor),this.lineColor=N(this.background),this.textColor=N(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.vertLineColor="#00BFFF",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){var t,r,i,n,a,o,s,l,c,h,u,f,d,g,m,y,x,b,_,S,v;this.actorBorder=Q(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||T(this.primaryColor,{h:30}),this.cScale4=this.cScale4||T(this.primaryColor,{h:60}),this.cScale5=this.cScale5||T(this.primaryColor,{h:90}),this.cScale6=this.cScale6||T(this.primaryColor,{h:120}),this.cScale7=this.cScale7||T(this.primaryColor,{h:150}),this.cScale8=this.cScale8||T(this.primaryColor,{h:210}),this.cScale9=this.cScale9||T(this.primaryColor,{h:270}),this.cScale10=this.cScale10||T(this.primaryColor,{h:300}),this.cScale11=this.cScale11||T(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||Q(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||Q(this.tertiaryColor,40);for(let C=0;C<this.THEME_COLOR_LIMIT;C++)this["cScale"+C]=Q(this["cScale"+C],10),this["cScalePeer"+C]=this["cScalePeer"+C]||Q(this["cScale"+C],25);for(let C=0;C<this.THEME_COLOR_LIMIT;C++)this["cScaleInv"+C]=this["cScaleInv"+C]||T(this["cScale"+C],{h:180});this.scaleLabelColor=this.scaleLabelColor!=="calculated"&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor;for(let C=0;C<this.THEME_COLOR_LIMIT;C++)this["cScaleLabel"+C]=this["cScaleLabel"+C]||this.scaleLabelColor;for(let C=0;C<5;C++)this["surface"+C]=this["surface"+C]||T(this.mainBkg,{h:30,s:-30,l:-(5+C*5)}),this["surfacePeer"+C]=this["surfacePeer"+C]||T(this.mainBkg,{h:30,s:-30,l:-(8+C*5)});this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.taskBorderColor=this.border1,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.activeTaskBorderColor=this.taskBorderColor,this.activeTaskBkgColor=this.mainBkg,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.rowOdd=this.rowOdd||H(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||H(this.mainBkg,20),this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor=this.lineColor,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=T(this.primaryColor,{h:64}),this.fillType3=T(this.secondaryColor,{h:64}),this.fillType4=T(this.primaryColor,{h:-64}),this.fillType5=T(this.secondaryColor,{h:-64}),this.fillType6=T(this.primaryColor,{h:128}),this.fillType7=T(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||T(this.primaryColor,{l:-30}),this.pie5=this.pie5||T(this.secondaryColor,{l:-30}),this.pie6=this.pie6||T(this.tertiaryColor,{h:40,l:-40}),this.pie7=this.pie7||T(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||T(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||T(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||T(this.primaryColor,{h:60,l:-50}),this.pie11=this.pie11||T(this.primaryColor,{h:-60,l:-50}),this.pie12=this.pie12||T(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||T(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||T(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||T(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||T(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||T(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||T(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Vr(this.quadrant1Fill)?H(this.quadrant1Fill):Q(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.packet={startByteColor:this.primaryTextColor,endByteColor:this.primaryTextColor,labelColor:this.primaryTextColor,titleColor:this.primaryTextColor,blockStrokeColor:this.primaryTextColor,blockFillColor:this.mainBkg},this.radar={axisColor:((t=this.radar)==null?void 0:t.axisColor)||this.lineColor,axisStrokeWidth:((r=this.radar)==null?void 0:r.axisStrokeWidth)||2,axisLabelFontSize:((i=this.radar)==null?void 0:i.axisLabelFontSize)||12,curveOpacity:((n=this.radar)==null?void 0:n.curveOpacity)||.5,curveStrokeWidth:((a=this.radar)==null?void 0:a.curveStrokeWidth)||2,graticuleColor:((o=this.radar)==null?void 0:o.graticuleColor)||"#DEDEDE",graticuleStrokeWidth:((s=this.radar)==null?void 0:s.graticuleStrokeWidth)||1,graticuleOpacity:((l=this.radar)==null?void 0:l.graticuleOpacity)||.3,legendBoxSize:((c=this.radar)==null?void 0:c.legendBoxSize)||12,legendFontSize:((h=this.radar)==null?void 0:h.legendFontSize)||12},this.xyChart={backgroundColor:((u=this.xyChart)==null?void 0:u.backgroundColor)||this.background,titleColor:((f=this.xyChart)==null?void 0:f.titleColor)||this.primaryTextColor,xAxisTitleColor:((d=this.xyChart)==null?void 0:d.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((g=this.xyChart)==null?void 0:g.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((m=this.xyChart)==null?void 0:m.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((y=this.xyChart)==null?void 0:y.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((x=this.xyChart)==null?void 0:x.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((b=this.xyChart)==null?void 0:b.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((_=this.xyChart)==null?void 0:_.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((S=this.xyChart)==null?void 0:S.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((v=this.xyChart)==null?void 0:v.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||T(this.primaryColor,{h:-30}),this.git4=this.git4||T(this.primaryColor,{h:-60}),this.git5=this.git5||T(this.primaryColor,{h:-90}),this.git6=this.git6||T(this.primaryColor,{h:60}),this.git7=this.git7||T(this.primaryColor,{h:120}),this.darkMode?(this.git0=H(this.git0,25),this.git1=H(this.git1,25),this.git2=H(this.git2,25),this.git3=H(this.git3,25),this.git4=H(this.git4,25),this.git5=H(this.git5,25),this.git6=H(this.git6,25),this.git7=H(this.git7,25)):(this.git0=Q(this.git0,25),this.git1=Q(this.git1,25),this.git2=Q(this.git2,25),this.git3=Q(this.git3,25),this.git4=Q(this.git4,25),this.git5=Q(this.git5,25),this.git6=Q(this.git6,25),this.git7=Q(this.git7,25)),this.gitInv0=this.gitInv0||N(this.git0),this.gitInv1=this.gitInv1||N(this.git1),this.gitInv2=this.gitInv2||N(this.git2),this.gitInv3=this.gitInv3||N(this.git3),this.gitInv4=this.gitInv4||N(this.git4),this.gitInv5=this.gitInv5||N(this.git5),this.gitInv6=this.gitInv6||N(this.git6),this.gitInv7=this.gitInv7||N(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||N(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||N(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||sa,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||oa}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]})}},p(Ir,"Theme"),Ir),O0=p(e=>{const t=new D0;return t.calculate(e),t},"getThemeVariables"),Pr,I0=(Pr=class{constructor(){this.primaryColor="#eee",this.contrast="#707070",this.secondaryColor=H(this.contrast,55),this.background="#ffffff",this.tertiaryColor=T(this.primaryColor,{h:-160}),this.primaryBorderColor=Wt(this.primaryColor,this.darkMode),this.secondaryBorderColor=Wt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Wt(this.tertiaryColor,this.darkMode),this.primaryTextColor=N(this.primaryColor),this.secondaryTextColor=N(this.secondaryColor),this.tertiaryTextColor=N(this.tertiaryColor),this.lineColor=N(this.background),this.textColor=N(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.vertLineColor="calculated",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.rowOdd=this.rowOdd||H(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||"#f4f4f4",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){var t,r,i,n,a,o,s,l,c,h,u,f,d,g,m,y,x,b,_,S,v;this.secondBkg=H(this.contrast,55),this.border2=this.contrast,this.actorBorder=H(this.border1,23),this.actorBkg=this.mainBkg,this.actorTextColor=this.text,this.actorLineColor=this.actorBorder,this.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 C=0;C<this.THEME_COLOR_LIMIT;C++)this["cScaleInv"+C]=this["cScaleInv"+C]||N(this["cScale"+C]);for(let C=0;C<this.THEME_COLOR_LIMIT;C++)this.darkMode?this["cScalePeer"+C]=this["cScalePeer"+C]||H(this["cScale"+C],10):this["cScalePeer"+C]=this["cScalePeer"+C]||Q(this["cScale"+C],10);this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor),this.cScaleLabel0=this.cScaleLabel0||this.cScale1,this.cScaleLabel2=this.cScaleLabel2||this.cScale1;for(let C=0;C<this.THEME_COLOR_LIMIT;C++)this["cScaleLabel"+C]=this["cScaleLabel"+C]||this.scaleLabelColor;for(let C=0;C<5;C++)this["surface"+C]=this["surface"+C]||T(this.mainBkg,{l:-(5+C*5)}),this["surfacePeer"+C]=this["surfacePeer"+C]||T(this.mainBkg,{l:-(8+C*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=H(this.contrast,30),this.sectionBkgColor2=H(this.contrast,30),this.taskBorderColor=Q(this.contrast,10),this.taskBkgColor=this.contrast,this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor=this.text,this.taskTextOutsideColor=this.taskTextDarkColor,this.activeTaskBorderColor=this.taskBorderColor,this.activeTaskBkgColor=this.mainBkg,this.gridColor=H(this.border1,30),this.doneTaskBkgColor=this.done,this.doneTaskBorderColor=this.lineColor,this.critBkgColor=this.critical,this.critBorderColor=Q(this.critBkgColor,10),this.todayLineColor=this.critBkgColor,this.vertLineColor=this.critBkgColor,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.transitionColor=this.transitionColor||"#000",this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f4f4f4",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.stateBorder=this.stateBorder||"#000",this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#222",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=T(this.primaryColor,{h:64}),this.fillType3=T(this.secondaryColor,{h:64}),this.fillType4=T(this.primaryColor,{h:-64}),this.fillType5=T(this.secondaryColor,{h:-64}),this.fillType6=T(this.primaryColor,{h:128}),this.fillType7=T(this.secondaryColor,{h:128});for(let C=0;C<this.THEME_COLOR_LIMIT;C++)this["pie"+C]=this["cScale"+C];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||T(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||T(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||T(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||T(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||T(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||T(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Vr(this.quadrant1Fill)?H(this.quadrant1Fill):Q(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.radar={axisColor:((f=this.radar)==null?void 0:f.axisColor)||this.lineColor,axisStrokeWidth:((d=this.radar)==null?void 0:d.axisStrokeWidth)||2,axisLabelFontSize:((g=this.radar)==null?void 0:g.axisLabelFontSize)||12,curveOpacity:((m=this.radar)==null?void 0:m.curveOpacity)||.5,curveStrokeWidth:((y=this.radar)==null?void 0:y.curveStrokeWidth)||2,graticuleColor:((x=this.radar)==null?void 0:x.graticuleColor)||"#DEDEDE",graticuleStrokeWidth:((b=this.radar)==null?void 0:b.graticuleStrokeWidth)||1,graticuleOpacity:((_=this.radar)==null?void 0:_.graticuleOpacity)||.3,legendBoxSize:((S=this.radar)==null?void 0:S.legendBoxSize)||12,legendFontSize:((v=this.radar)==null?void 0:v.legendFontSize)||12},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=Q(this.pie1,25)||this.primaryColor,this.git1=this.pie2||this.secondaryColor,this.git2=this.pie3||this.tertiaryColor,this.git3=this.pie4||T(this.primaryColor,{h:-30}),this.git4=this.pie5||T(this.primaryColor,{h:-60}),this.git5=this.pie6||T(this.primaryColor,{h:-90}),this.git6=this.pie7||T(this.primaryColor,{h:60}),this.git7=this.pie8||T(this.primaryColor,{h:120}),this.gitInv0=this.gitInv0||N(this.git0),this.gitInv1=this.gitInv1||N(this.git1),this.gitInv2=this.gitInv2||N(this.git2),this.gitInv3=this.gitInv3||N(this.git3),this.gitInv4=this.gitInv4||N(this.git4),this.gitInv5=this.gitInv5||N(this.git5),this.gitInv6=this.gitInv6||N(this.git6),this.gitInv7=this.gitInv7||N(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||sa,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||oa}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]})}},p(Pr,"Theme"),Pr),P0=p(e=>{const t=new I0;return t.calculate(e),t},"getThemeVariables"),Me={base:{getThemeVariables:A0},dark:{getThemeVariables:F0},default:{getThemeVariables:uh},forest:{getThemeVariables:O0},neutral:{getThemeVariables:P0}},fe={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,inheritDir:!1},sequence:{useMaxWidth:!0,hideUnusedParticipants:!1,activationWidth:10,diagramMarginX:50,diagramMarginY:10,actorMargin:50,width:150,height:65,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",mirrorActors:!0,forceMenus:!1,bottomMarginAdj:1,rightAngles:!1,showSequenceNumbers:!1,actorFontSize:14,actorFontFamily:'"Open Sans", sans-serif',actorFontWeight:400,noteFontSize:14,noteFontFamily:'"trebuchet ms", verdana, arial, sans-serif',noteFontWeight:400,noteAlign:"center",messageFontSize:16,messageFontFamily:'"trebuchet ms", verdana, arial, sans-serif',messageFontWeight:400,wrap:!1,wrapPadding:10,labelBoxWidth:50,labelBoxHeight:20},gantt:{useMaxWidth:!0,titleTopMargin:25,barHeight:20,barGap:4,topPadding:50,rightPadding:75,leftPadding:75,gridLineStartPadding:35,fontSize:11,sectionFontSize:11,numberSectionStyles:4,axisFormat:"%Y-%m-%d",topAxis:!1,displayMode:"",weekday:"sunday"},journey:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,maxLabelWidth:360,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"],titleColor:"",titleFontFamily:'"trebuchet ms", verdana, arial, sans-serif',titleFontSize:"4ex"},class:{useMaxWidth:!0,titleTopMargin:25,arrowMarkerAbsolute:!1,dividerMargin:10,padding:5,textHeight:10,defaultRenderer:"dagre-wrapper",htmlLabels:!1,hideEmptyMembersBox:!1},state:{useMaxWidth:!0,titleTopMargin:25,dividerMargin:10,sizeUnit:5,padding:8,textHeight:10,titleShift:-15,noteMargin:10,forkWidth:70,forkHeight:7,miniPadding:2,fontSizeFactor:5.02,fontSize:24,labelHeight:16,edgeLengthFactor:"20",compositTitleSize:35,radius:5,defaultRenderer:"dagre-wrapper"},er:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:20,layoutDirection:"TB",minEntityWidth:100,minEntityHeight:75,entityPadding:15,nodeSpacing:140,rankSpacing:80,stroke:"gray",fill:"honeydew",fontSize:12},pie:{useMaxWidth:!0,textPosition:.75},quadrantChart:{useMaxWidth:!0,chartWidth:500,chartHeight:500,titleFontSize:20,titlePadding:10,quadrantPadding:5,xAxisLabelPadding:5,yAxisLabelPadding:5,xAxisLabelFontSize:16,yAxisLabelFontSize:16,quadrantLabelFontSize:16,quadrantTextTopPadding:5,pointTextPadding:5,pointLabelFontSize:12,pointRadius:5,xAxisPosition:"top",yAxisPosition:"left",quadrantInternalBorderStrokeWidth:1,quadrantExternalBorderStrokeWidth:2},xyChart:{useMaxWidth:!0,width:700,height:500,titleFontSize:20,titlePadding:10,showDataLabel:!1,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,layoutAlgorithm:"cose-bilkent"},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},radar:{useMaxWidth:!0,width:600,height:600,marginTop:50,marginRight:50,marginBottom:50,marginLeft:50,axisScaleFactor:1,axisLabelFactor:1.05,curveTension:.17},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},fh={...fe,deterministicIDSeed:void 0,elk:{mergeEdges:!1,nodePlacementStrategy:"BRANDES_KOEPF",forceNodeModelOrder:!1,considerModelOrder:"NODES_AND_EDGES"},themeCSS:void 0,themeVariables:Me.default.getThemeVariables(),sequence:{...fe.sequence,messageFont:p(function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},"messageFont"),noteFont:p(function(){return{fontFamily:this.noteFontFamily,fontSize:this.noteFontSize,fontWeight:this.noteFontWeight}},"noteFont"),actorFont:p(function(){return{fontFamily:this.actorFontFamily,fontSize:this.actorFontSize,fontWeight:this.actorFontWeight}},"actorFont")},class:{hideEmptyMembersBox:!1},gantt:{...fe.gantt,tickInterval:void 0,useWidth:void 0},c4:{...fe.c4,useWidth:void 0,personFont:p(function(){return{fontFamily:this.personFontFamily,fontSize:this.personFontSize,fontWeight:this.personFontWeight}},"personFont"),flowchart:{...fe.flowchart,inheritDir:!1},external_personFont:p(function(){return{fontFamily:this.external_personFontFamily,fontSize:this.external_personFontSize,fontWeight:this.external_personFontWeight}},"external_personFont"),systemFont:p(function(){return{fontFamily:this.systemFontFamily,fontSize:this.systemFontSize,fontWeight:this.systemFontWeight}},"systemFont"),external_systemFont:p(function(){return{fontFamily:this.external_systemFontFamily,fontSize:this.external_systemFontSize,fontWeight:this.external_systemFontWeight}},"external_systemFont"),system_dbFont:p(function(){return{fontFamily:this.system_dbFontFamily,fontSize:this.system_dbFontSize,fontWeight:this.system_dbFontWeight}},"system_dbFont"),external_system_dbFont:p(function(){return{fontFamily:this.external_system_dbFontFamily,fontSize:this.external_system_dbFontSize,fontWeight:this.external_system_dbFontWeight}},"external_system_dbFont"),system_queueFont:p(function(){return{fontFamily:this.system_queueFontFamily,fontSize:this.system_queueFontSize,fontWeight:this.system_queueFontWeight}},"system_queueFont"),external_system_queueFont:p(function(){return{fontFamily:this.external_system_queueFontFamily,fontSize:this.external_system_queueFontSize,fontWeight:this.external_system_queueFontWeight}},"external_system_queueFont"),containerFont:p(function(){return{fontFamily:this.containerFontFamily,fontSize:this.containerFontSize,fontWeight:this.containerFontWeight}},"containerFont"),external_containerFont:p(function(){return{fontFamily:this.external_containerFontFamily,fontSize:this.external_containerFontSize,fontWeight:this.external_containerFontWeight}},"external_containerFont"),container_dbFont:p(function(){return{fontFamily:this.container_dbFontFamily,fontSize:this.container_dbFontSize,fontWeight:this.container_dbFontWeight}},"container_dbFont"),external_container_dbFont:p(function(){return{fontFamily:this.external_container_dbFontFamily,fontSize:this.external_container_dbFontSize,fontWeight:this.external_container_dbFontWeight}},"external_container_dbFont"),container_queueFont:p(function(){return{fontFamily:this.container_queueFontFamily,fontSize:this.container_queueFontSize,fontWeight:this.container_queueFontWeight}},"container_queueFont"),external_container_queueFont:p(function(){return{fontFamily:this.external_container_queueFontFamily,fontSize:this.external_container_queueFontSize,fontWeight:this.external_container_queueFontWeight}},"external_container_queueFont"),componentFont:p(function(){return{fontFamily:this.componentFontFamily,fontSize:this.componentFontSize,fontWeight:this.componentFontWeight}},"componentFont"),external_componentFont:p(function(){return{fontFamily:this.external_componentFontFamily,fontSize:this.external_componentFontSize,fontWeight:this.external_componentFontWeight}},"external_componentFont"),component_dbFont:p(function(){return{fontFamily:this.component_dbFontFamily,fontSize:this.component_dbFontSize,fontWeight:this.component_dbFontWeight}},"component_dbFont"),external_component_dbFont:p(function(){return{fontFamily:this.external_component_dbFontFamily,fontSize:this.external_component_dbFontSize,fontWeight:this.external_component_dbFontWeight}},"external_component_dbFont"),component_queueFont:p(function(){return{fontFamily:this.component_queueFontFamily,fontSize:this.component_queueFontSize,fontWeight:this.component_queueFontWeight}},"component_queueFont"),external_component_queueFont:p(function(){return{fontFamily:this.external_component_queueFontFamily,fontSize:this.external_component_queueFontSize,fontWeight:this.external_component_queueFontWeight}},"external_component_queueFont"),boundaryFont:p(function(){return{fontFamily:this.boundaryFontFamily,fontSize:this.boundaryFontSize,fontWeight:this.boundaryFontWeight}},"boundaryFont"),messageFont:p(function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},"messageFont")},pie:{...fe.pie,useWidth:984},xyChart:{...fe.xyChart,useWidth:void 0},requirement:{...fe.requirement,useWidth:void 0},packet:{...fe.packet},radar:{...fe.radar},treemap:{useMaxWidth:!0,padding:10,diagramPadding:8,showValues:!0,nodeWidth:100,nodeHeight:40,borderWidth:1,valueFontSize:12,labelFontSize:14,valueFormat:","}},dh=p((e,t="")=>Object.keys(e).reduce((r,i)=>Array.isArray(e[i])?r:typeof e[i]=="object"&&e[i]!==null?[...r,t+i,...dh(e[i],"")]:[...r,t+i],[]),"keyify"),R0=new Set(dh(fh,"")),xo=fh,Ln=p(e=>{if($.debug("sanitizeDirective called with",e),!(typeof e!="object"||e==null)){if(Array.isArray(e)){e.forEach(t=>Ln(t));return}for(const t of Object.keys(e)){if($.debug("Checking key",t),t.startsWith("__")||t.includes("proto")||t.includes("constr")||!R0.has(t)||e[t]==null){$.debug("sanitize deleting key: ",t),delete e[t];continue}if(typeof e[t]=="object"){$.debug("sanitizing object",t),Ln(e[t]);continue}const r=["themeCSS","fontFamily","altFontFamily"];for(const i of r)t.includes(i)&&($.debug("sanitizing css option",t),e[t]=N0(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]="")}$.debug("After sanitization",e)}},"sanitizeDirective"),N0=p(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"),qr=Object.freeze(xo),Gt=St({},qr),Mn,or=[],Ti=St({},qr),la=p((e,t)=>{let r=St({},e),i={};for(const n of t)mh(n),i=St(i,n);if(r=St(r,i),i.theme&&i.theme in Me){const n=St({},Mn),a=St(n.themeVariables||{},i.themeVariables);r.theme&&r.theme in Me&&(r.themeVariables=Me[r.theme].getThemeVariables(a))}return Ti=r,yh(Ti),Ti},"updateCurrentConfig"),W0=p(e=>(Gt=St({},qr),Gt=St(Gt,e),e.theme&&Me[e.theme]&&(Gt.themeVariables=Me[e.theme].getThemeVariables(e.themeVariables)),la(Gt,or),Gt),"setSiteConfig"),q0=p(e=>{Mn=St({},e)},"saveConfigFromInitialize"),z0=p(e=>(Gt=St(Gt,e),la(Gt,or),Gt),"updateSiteConfig"),ph=p(()=>St({},Gt),"getSiteConfig"),gh=p(e=>(yh(e),St(Ti,e),Ft()),"setConfig"),Ft=p(()=>St({},Ti),"getConfig"),mh=p(e=>{e&&(["secure",...Gt.secure??[]].forEach(t=>{Object.hasOwn(e,t)&&($.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"&&mh(e[t])}))},"sanitize"),H0=p(e=>{var t;Ln(e),e.fontFamily&&!((t=e.themeVariables)!=null&&t.fontFamily)&&(e.themeVariables={...e.themeVariables,fontFamily:e.fontFamily}),or.push(e),la(Gt,or)},"addDirective"),An=p((e=Gt)=>{or=[],la(e,or)},"reset"),j0={LAZY_LOAD_DEPRECATED:"The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead."},ql={},Y0=p(e=>{ql[e]||($.warn(j0[e]),ql[e]=!0)},"issueWarning"),yh=p(e=>{e&&(e.lazyLoadedDiagrams||e.loadExternalDiagramsAtStartup)&&Y0("LAZY_LOAD_DEPRECATED")},"checkConfig"),U0=p(()=>{let e={};Mn&&(e=St(e,Mn));for(const t of or)e=St(e,t);return e},"getUserDefinedConfig"),Kr=/<br\s*\/?>/gi,G0=p(e=>e?Ch(e).replace(/\\n/g,"#br#").split("#br#"):[""],"getRows"),X0=(()=>{let e=!1;return()=>{e||(xh(),e=!0)}})();function xh(){const e="data-temp-href-target";Wr.addHook("beforeSanitizeAttributes",t=>{t.tagName==="A"&&t.hasAttribute("target")&&t.setAttribute(e,t.getAttribute("target")??"")}),Wr.addHook("afterSanitizeAttributes",t=>{t.tagName==="A"&&t.hasAttribute(e)&&(t.setAttribute("target",t.getAttribute(e)??""),t.removeAttribute(e),t.getAttribute("target")==="_blank"&&t.setAttribute("rel","noopener"))})}p(xh,"setupDompurifyHooks");var bh=p(e=>(X0(),Wr.sanitize(e)),"removeScript"),zl=p((e,t)=>{var r;if(((r=t.flowchart)==null?void 0:r.htmlLabels)!==!1){const i=t.securityLevel;i==="antiscript"||i==="strict"?e=bh(e):i!=="loose"&&(e=Ch(e),e=e.replace(/</g,"&lt;").replace(/>/g,"&gt;"),e=e.replace(/=/g,"&equals;"),e=Q0(e))}return e},"sanitizeMore"),Zt=p((e,t)=>e&&(t.dompurifyConfig?e=Wr.sanitize(zl(e,t),t.dompurifyConfig).toString():e=Wr.sanitize(zl(e,t),{FORBID_TAGS:["style"]}).toString(),e),"sanitizeText"),V0=p((e,t)=>typeof e=="string"?Zt(e,t):e.flat().map(r=>Zt(r,t)),"sanitizeTextOrArray"),K0=p(e=>Kr.test(e),"hasBreaks"),Z0=p(e=>e.split(Kr),"splitBreaks"),Q0=p(e=>e.replace(/#br#/g,"<br/>"),"placeholderToBreak"),Ch=p(e=>e.replace(Kr,"#br#"),"breakToPlaceholder"),_h=p(e=>{let t="";return e&&(t=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,t=CSS.escape(t)),t},"getUrl"),kt=p(e=>!(e===!1||["false","null","0"].includes(String(e).trim().toLowerCase())),"evaluate"),J0=p(function(...e){const t=e.filter(r=>!isNaN(r));return Math.max(...t)},"getMax"),ty=p(function(...e){const t=e.filter(r=>!isNaN(r));return Math.min(...t)},"getMin"),ys=p(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];ey(a,o)&&(n=a+","+o,i++,r.pop())}r.push(ry(n))}return r.join("")},"parseGenericTypes"),xs=p((e,t)=>Math.max(0,e.split(t).length-1),"countOccurrence"),ey=p((e,t)=>{const r=xs(e,"~"),i=xs(t,"~");return r===1&&i===1},"shouldCombineSets"),ry=p(e=>{const t=xs(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"),Hl=p(()=>window.MathMLElement!==void 0,"isMathMLSupported"),bs=/\$\$(.*)\$\$/g,lr=p(e=>{var t;return(((t=e.match(bs))==null?void 0:t.length)??0)>0},"hasKatex"),iy=p(async(e,t)=>{const r=document.createElement("div");r.innerHTML=await ca(e,t),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"),ny=p(async(e,t)=>{if(!lr(e))return e;if(!(Hl()||t.legacyMathML||t.forceLegacyMathML))return e.replace(bs,"MathML is unsupported in this environment.");{const{default:r}=await Promise.resolve().then(()=>require("./selected-block-display-GwQBADhp.cjs")).then(n=>n.katex),i=t.forceLegacyMathML||!Hl()&&t.legacyMathML?"htmlAndMathml":"mathml";return e.split(Kr).map(n=>lr(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,""))}},"renderKatexUnsanitized"),ca=p(async(e,t)=>Zt(await ny(e,t),t),"renderKatexSanitized"),dr={getRows:G0,sanitizeText:Zt,sanitizeTextOrArray:V0,hasBreaks:K0,splitBreaks:Z0,lineBreakRegex:Kr,removeScript:bh,getUrl:_h,evaluate:kt,getMax:J0,getMin:ty},ay=p(function(e,t){for(let r of t)e.attr(r[0],r[1])},"d3Attrs"),sy=p(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"),bo=p(function(e,t,r,i){const n=sy(t,r,i);ay(e,n)},"configureSvgSize"),vh=p(function(e,t,r,i){const n=t.node().getBBox(),a=n.width,o=n.height;$.info(`SVG bounds: ${a}x${o}`,n);let s=0,l=0;$.info(`Graph bounds: ${s}x${l}`,e),s=a+r*2,l=o+r*2,$.info(`Calculated bounds: ${s}x${l}`),bo(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"),yn={},oy=p((e,t,r)=>{let i="";return e in yn&&yn[e]?i=yn[e](r):$.warn(`No theme found for ${e}`),` & {
4
- font-family: ${r.fontFamily};
5
- font-size: ${r.fontSize};
6
- fill: ${r.textColor}
7
- }
8
- @keyframes edge-animation-frame {
9
- from {
10
- stroke-dashoffset: 0;
11
- }
12
- }
13
- @keyframes dash {
14
- to {
15
- stroke-dashoffset: 0;
16
- }
17
- }
18
- & .edge-animation-slow {
19
- stroke-dasharray: 9,5 !important;
20
- stroke-dashoffset: 900;
21
- animation: dash 50s linear infinite;
22
- stroke-linecap: round;
23
- }
24
- & .edge-animation-fast {
25
- stroke-dasharray: 9,5 !important;
26
- stroke-dashoffset: 900;
27
- animation: dash 20s linear infinite;
28
- stroke-linecap: round;
29
- }
30
- /* Classes common for multiple diagrams */
31
-
32
- & .error-icon {
33
- fill: ${r.errorBkgColor};
34
- }
35
- & .error-text {
36
- fill: ${r.errorTextColor};
37
- stroke: ${r.errorTextColor};
38
- }
39
-
40
- & .edge-thickness-normal {
41
- stroke-width: 1px;
42
- }
43
- & .edge-thickness-thick {
44
- stroke-width: 3.5px
45
- }
46
- & .edge-pattern-solid {
47
- stroke-dasharray: 0;
48
- }
49
- & .edge-thickness-invisible {
50
- stroke-width: 0;
51
- fill: none;
52
- }
53
- & .edge-pattern-dashed{
54
- stroke-dasharray: 3;
55
- }
56
- .edge-pattern-dotted {
57
- stroke-dasharray: 2;
58
- }
59
-
60
- & .marker {
61
- fill: ${r.lineColor};
62
- stroke: ${r.lineColor};
63
- }
64
- & .marker.cross {
65
- stroke: ${r.lineColor};
66
- }
67
-
68
- & svg {
69
- font-family: ${r.fontFamily};
70
- font-size: ${r.fontSize};
71
- }
72
- & p {
73
- margin: 0
74
- }
75
-
76
- ${i}
77
-
78
- ${t}
79
- `},"getStyles"),ly=p((e,t)=>{t!==void 0&&(yn[e]=t)},"addStylesForDiagram"),cy=oy,Co={};eh(Co,{clear:()=>wh,getAccDescription:()=>Bh,getAccTitle:()=>kh,getDiagramTitle:()=>Mh,setAccDescription:()=>Th,setAccTitle:()=>Sh,setDiagramTitle:()=>Lh});var _o="",vo="",wo="",So=p(e=>Zt(e,Ft()),"sanitizeText"),wh=p(()=>{_o="",wo="",vo=""},"clear"),Sh=p(e=>{_o=So(e).replace(/^\s+/g,"")},"setAccTitle"),kh=p(()=>_o,"getAccTitle"),Th=p(e=>{wo=So(e).replace(/\n\s+/g,`
80
- `)},"setAccDescription"),Bh=p(()=>wo,"getAccDescription"),Lh=p(e=>{vo=So(e)},"setDiagramTitle"),Mh=p(()=>vo,"getDiagramTitle"),jl=$,hy=mo,ft=Ft,uy=gh,fy=qr,ko=p(e=>Zt(e,ft()),"sanitizeText"),Ah=vh,dy=p(()=>Co,"getCommonDb"),En={},Fn=p((e,t,r)=>{var i;En[e]&&jl.warn(`Diagram with id ${e} already registered. Overwriting.`),En[e]=t,r&&hh(e,r),ly(e,t.styles),(i=t.injectUtils)==null||i.call(t,jl,hy,ft,ko,Ah,dy(),()=>{})},"registerDiagram"),Cs=p(e=>{if(e in En)return En[e];throw new py(e)},"getDiagram"),Rr,py=(Rr=class extends Error{constructor(t){super(`Diagram ${t} not found.`)}},p(Rr,"DiagramNotFoundError"),Rr),gy={value:()=>{}};function Eh(){for(var e=0,t=arguments.length,r={},i;e<t;++e){if(!(i=arguments[e]+"")||i in r||/[\s.]/.test(i))throw new Error("illegal type: "+i);r[i]=[]}return new xn(r)}function xn(e){this._=e}function my(e,t){return e.trim().split(/^|\s+/).map(function(r){var i="",n=r.indexOf(".");if(n>=0&&(i=r.slice(n+1),r=r.slice(0,n)),r&&!t.hasOwnProperty(r))throw new Error("unknown type: "+r);return{type:r,name:i}})}xn.prototype=Eh.prototype={constructor:xn,on:function(e,t){var r=this._,i=my(e+"",r),n,a=-1,o=i.length;if(arguments.length<2){for(;++a<o;)if((n=(e=i[a]).type)&&(n=yy(r[n],e.name)))return n;return}if(t!=null&&typeof t!="function")throw new Error("invalid callback: "+t);for(;++a<o;)if(n=(e=i[a]).type)r[n]=Yl(r[n],e.name,t);else if(t==null)for(n in r)r[n]=Yl(r[n],e.name,null);return this},copy:function(){var e={},t=this._;for(var r in t)e[r]=t[r].slice();return new xn(e)},call:function(e,t){if((n=arguments.length-2)>0)for(var r=new Array(n),i=0,n,a;i<n;++i)r[i]=arguments[i+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(a=this._[e],i=0,n=a.length;i<n;++i)a[i].value.apply(t,r)},apply:function(e,t,r){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var i=this._[e],n=0,a=i.length;n<a;++n)i[n].value.apply(t,r)}};function yy(e,t){for(var r=0,i=e.length,n;r<i;++r)if((n=e[r]).name===t)return n.value}function Yl(e,t,r){for(var i=0,n=e.length;i<n;++i)if(e[i].name===t){e[i]=gy,e=e.slice(0,i).concat(e.slice(i+1));break}return r!=null&&e.push({name:t,value:r}),e}var _s="http://www.w3.org/1999/xhtml";const Ul={svg:"http://www.w3.org/2000/svg",xhtml:_s,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function ha(e){var t=e+="",r=t.indexOf(":");return r>=0&&(t=e.slice(0,r))!=="xmlns"&&(e=e.slice(r+1)),Ul.hasOwnProperty(t)?{space:Ul[t],local:e}:e}function xy(e){return function(){var t=this.ownerDocument,r=this.namespaceURI;return r===_s&&t.documentElement.namespaceURI===_s?t.createElement(e):t.createElementNS(r,e)}}function by(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function Fh(e){var t=ha(e);return(t.local?by:xy)(t)}function Cy(){}function To(e){return e==null?Cy:function(){return this.querySelector(e)}}function _y(e){typeof e!="function"&&(e=To(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 Qt(i,this._parents)}function vy(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function wy(){return[]}function $h(e){return e==null?wy:function(){return this.querySelectorAll(e)}}function Sy(e){return function(){return vy(e.apply(this,arguments))}}function ky(e){typeof e=="function"?e=Sy(e):e=$h(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 Qt(i,n)}function Dh(e){return function(){return this.matches(e)}}function Oh(e){return function(t){return t.matches(e)}}var Ty=Array.prototype.find;function By(e){return function(){return Ty.call(this.children,e)}}function Ly(){return this.firstElementChild}function My(e){return this.select(e==null?Ly:By(typeof e=="function"?e:Oh(e)))}var Ay=Array.prototype.filter;function Ey(){return Array.from(this.children)}function Fy(e){return function(){return Ay.call(this.children,e)}}function $y(e){return this.selectAll(e==null?Ey:Fy(typeof e=="function"?e:Oh(e)))}function Dy(e){typeof e!="function"&&(e=Dh(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 Qt(i,this._parents)}function Ih(e){return new Array(e.length)}function Oy(){return new Qt(this._enter||this._groups.map(Ih),this._parents)}function $n(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}$n.prototype={constructor:$n,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 Iy(e){return function(){return e}}function Py(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 $n(e,a[o]);for(;o<l;++o)(s=t[o])&&(n[o]=s)}function Ry(e,t,r,i,n,a,o){var s,l,c=new Map,h=t.length,u=a.length,f=new Array(h),d;for(s=0;s<h;++s)(l=t[s])&&(f[s]=d=o.call(l,l.__data__,s,t)+"",c.has(d)?n[s]=l:c.set(d,l));for(s=0;s<u;++s)d=o.call(e,a[s],s,a)+"",(l=c.get(d))?(i[s]=l,l.__data__=a[s],c.delete(d)):r[s]=new $n(e,a[s]);for(s=0;s<h;++s)(l=t[s])&&c.get(f[s])===l&&(n[s]=l)}function Ny(e){return e.__data__}function Wy(e,t){if(!arguments.length)return Array.from(this,Ny);var r=t?Ry:Py,i=this._parents,n=this._groups;typeof e!="function"&&(e=Iy(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,d=qy(e.call(h,h&&h.__data__,c,i)),g=d.length,m=s[c]=new Array(g),y=o[c]=new Array(g),x=l[c]=new Array(f);r(h,u,m,y,x,d,t);for(var b=0,_=0,S,v;b<g;++b)if(S=m[b]){for(b>=_&&(_=b+1);!(v=y[_])&&++_<g;);S._next=v||null}}return o=new Qt(o,i),o._enter=s,o._exit=l,o}function qy(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function zy(){return new Qt(this._exit||this._groups.map(Ih),this._parents)}function Hy(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 jy(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),d,g=0;g<u;++g)(d=c[g]||h[g])&&(f[g]=d);for(;l<n;++l)s[l]=r[l];return new Qt(s,this._parents)}function Yy(){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 Uy(e){e||(e=Gy);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 Qt(n,this._parents).order()}function Gy(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function Xy(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function Vy(){return Array.from(this)}function Ky(){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 Zy(){let e=0;for(const t of this)++e;return e}function Qy(){return!this.node()}function Jy(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 tx(e){return function(){this.removeAttribute(e)}}function ex(e){return function(){this.removeAttributeNS(e.space,e.local)}}function rx(e,t){return function(){this.setAttribute(e,t)}}function ix(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function nx(e,t){return function(){var r=t.apply(this,arguments);r==null?this.removeAttribute(e):this.setAttribute(e,r)}}function ax(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 sx(e,t){var r=ha(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?ex:tx:typeof t=="function"?r.local?ax:nx:r.local?ix:rx)(r,t))}function Ph(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function ox(e){return function(){this.style.removeProperty(e)}}function lx(e,t,r){return function(){this.style.setProperty(e,t,r)}}function cx(e,t,r){return function(){var i=t.apply(this,arguments);i==null?this.style.removeProperty(e):this.style.setProperty(e,i,r)}}function hx(e,t,r){return arguments.length>1?this.each((t==null?ox:typeof t=="function"?cx:lx)(e,t,r??"")):zr(this.node(),e)}function zr(e,t){return e.style.getPropertyValue(t)||Ph(e).getComputedStyle(e,null).getPropertyValue(t)}function ux(e){return function(){delete this[e]}}function fx(e,t){return function(){this[e]=t}}function dx(e,t){return function(){var r=t.apply(this,arguments);r==null?delete this[e]:this[e]=r}}function px(e,t){return arguments.length>1?this.each((t==null?ux:typeof t=="function"?dx:fx)(e,t)):this.node()[e]}function Rh(e){return e.trim().split(/^|\s+/)}function Bo(e){return e.classList||new Nh(e)}function Nh(e){this._node=e,this._names=Rh(e.getAttribute("class")||"")}Nh.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 Wh(e,t){for(var r=Bo(e),i=-1,n=t.length;++i<n;)r.add(t[i])}function qh(e,t){for(var r=Bo(e),i=-1,n=t.length;++i<n;)r.remove(t[i])}function gx(e){return function(){Wh(this,e)}}function mx(e){return function(){qh(this,e)}}function yx(e,t){return function(){(t.apply(this,arguments)?Wh:qh)(this,e)}}function xx(e,t){var r=Rh(e+"");if(arguments.length<2){for(var i=Bo(this.node()),n=-1,a=r.length;++n<a;)if(!i.contains(r[n]))return!1;return!0}return this.each((typeof t=="function"?yx:t?gx:mx)(r,t))}function bx(){this.textContent=""}function Cx(e){return function(){this.textContent=e}}function _x(e){return function(){var t=e.apply(this,arguments);this.textContent=t??""}}function vx(e){return arguments.length?this.each(e==null?bx:(typeof e=="function"?_x:Cx)(e)):this.node().textContent}function wx(){this.innerHTML=""}function Sx(e){return function(){this.innerHTML=e}}function kx(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??""}}function Tx(e){return arguments.length?this.each(e==null?wx:(typeof e=="function"?kx:Sx)(e)):this.node().innerHTML}function Bx(){this.nextSibling&&this.parentNode.appendChild(this)}function Lx(){return this.each(Bx)}function Mx(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Ax(){return this.each(Mx)}function Ex(e){var t=typeof e=="function"?e:Fh(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function Fx(){return null}function $x(e,t){var r=typeof e=="function"?e:Fh(e),i=t==null?Fx:typeof t=="function"?t:To(t);return this.select(function(){return this.insertBefore(r.apply(this,arguments),i.apply(this,arguments)||null)})}function Dx(){var e=this.parentNode;e&&e.removeChild(this)}function Ox(){return this.each(Dx)}function Ix(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Px(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Rx(e){return this.select(e?Px:Ix)}function Nx(e){return arguments.length?this.property("__data__",e):this.node().__data__}function Wx(e){return function(t){e.call(this,t,this.__data__)}}function qx(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 zx(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 Hx(e,t,r){return function(){var i=this.__on,n,a=Wx(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 jx(e,t,r){var i=qx(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?Hx:zx,n=0;n<a;++n)this.each(s(i[n],t,r));return this}function zh(e,t,r){var i=Ph(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 Yx(e,t){return function(){return zh(this,e,t)}}function Ux(e,t){return function(){return zh(this,e,t.apply(this,arguments))}}function Gx(e,t){return this.each((typeof t=="function"?Ux:Yx)(e,t))}function*Xx(){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 Hh=[null];function Qt(e,t){this._groups=e,this._parents=t}function ji(){return new Qt([[document.documentElement]],Hh)}function Vx(){return this}Qt.prototype=ji.prototype={constructor:Qt,select:_y,selectAll:ky,selectChild:My,selectChildren:$y,filter:Dy,data:Wy,enter:Oy,exit:zy,join:Hy,merge:jy,selection:Vx,order:Yy,sort:Uy,call:Xy,nodes:Vy,node:Ky,size:Zy,empty:Qy,each:Jy,attr:sx,style:hx,property:px,classed:xx,text:vx,html:Tx,raise:Lx,lower:Ax,append:Ex,insert:$x,remove:Ox,clone:Rx,datum:Nx,on:jx,dispatch:Gx,[Symbol.iterator]:Xx};function ht(e){return typeof e=="string"?new Qt([[document.querySelector(e)]],[document.documentElement]):new Qt([[e]],Hh)}function ua(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function Lo(e,t){var r=Object.create(e.prototype);for(var i in t)r[i]=t[i];return r}function Zr(){}var Mi=.7,Dn=1/Mi,Ar="\\s*([+-]?\\d+)\\s*",Ai="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",ge="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Kx=/^#([0-9a-f]{3,8})$/,Zx=new RegExp(`^rgb\\(${Ar},${Ar},${Ar}\\)$`),Qx=new RegExp(`^rgb\\(${ge},${ge},${ge}\\)$`),Jx=new RegExp(`^rgba\\(${Ar},${Ar},${Ar},${Ai}\\)$`),tb=new RegExp(`^rgba\\(${ge},${ge},${ge},${Ai}\\)$`),eb=new RegExp(`^hsl\\(${Ai},${ge},${ge}\\)$`),rb=new RegExp(`^hsla\\(${Ai},${ge},${ge},${Ai}\\)$`),Gl={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};ua(Zr,Hr,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Xl,formatHex:Xl,formatHex8:ib,formatHsl:nb,formatRgb:Vl,toString:Vl});function Xl(){return this.rgb().formatHex()}function ib(){return this.rgb().formatHex8()}function nb(){return Yh(this).formatHsl()}function Vl(){return this.rgb().formatRgb()}function Hr(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=Kx.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?Kl(t):r===3?new qt(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?an(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?an(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=Zx.exec(e))?new qt(t[1],t[2],t[3],1):(t=Qx.exec(e))?new qt(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=Jx.exec(e))?an(t[1],t[2],t[3],t[4]):(t=tb.exec(e))?an(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=eb.exec(e))?Jl(t[1],t[2]/100,t[3]/100,1):(t=rb.exec(e))?Jl(t[1],t[2]/100,t[3]/100,t[4]):Gl.hasOwnProperty(e)?Kl(Gl[e]):e==="transparent"?new qt(NaN,NaN,NaN,0):null}function Kl(e){return new qt(e>>16&255,e>>8&255,e&255,1)}function an(e,t,r,i){return i<=0&&(e=t=r=NaN),new qt(e,t,r,i)}function jh(e){return e instanceof Zr||(e=Hr(e)),e?(e=e.rgb(),new qt(e.r,e.g,e.b,e.opacity)):new qt}function vs(e,t,r,i){return arguments.length===1?jh(e):new qt(e,t,r,i??1)}function qt(e,t,r,i){this.r=+e,this.g=+t,this.b=+r,this.opacity=+i}ua(qt,vs,Lo(Zr,{brighter(e){return e=e==null?Dn:Math.pow(Dn,e),new qt(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Mi:Math.pow(Mi,e),new qt(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new qt(nr(this.r),nr(this.g),nr(this.b),On(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Zl,formatHex:Zl,formatHex8:ab,formatRgb:Ql,toString:Ql}));function Zl(){return`#${tr(this.r)}${tr(this.g)}${tr(this.b)}`}function ab(){return`#${tr(this.r)}${tr(this.g)}${tr(this.b)}${tr((isNaN(this.opacity)?1:this.opacity)*255)}`}function Ql(){const e=On(this.opacity);return`${e===1?"rgb(":"rgba("}${nr(this.r)}, ${nr(this.g)}, ${nr(this.b)}${e===1?")":`, ${e})`}`}function On(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function nr(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function tr(e){return e=nr(e),(e<16?"0":"")+e.toString(16)}function Jl(e,t,r,i){return i<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new se(e,t,r,i)}function Yh(e){if(e instanceof se)return new se(e.h,e.s,e.l,e.opacity);if(e instanceof Zr||(e=Hr(e)),!e)return new se;if(e instanceof se)return e;e=e.rgb();var t=e.r/255,r=e.g/255,i=e.b/255,n=Math.min(t,r,i),a=Math.max(t,r,i),o=NaN,s=a-n,l=(a+n)/2;return s?(t===a?o=(r-i)/s+(r<i)*6:r===a?o=(i-t)/s+2:o=(t-r)/s+4,s/=l<.5?a+n:2-a-n,o*=60):s=l>0&&l<1?0:o,new se(o,s,l,e.opacity)}function sb(e,t,r,i){return arguments.length===1?Yh(e):new se(e,t,r,i??1)}function se(e,t,r,i){this.h=+e,this.s=+t,this.l=+r,this.opacity=+i}ua(se,sb,Lo(Zr,{brighter(e){return e=e==null?Dn:Math.pow(Dn,e),new se(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Mi:Math.pow(Mi,e),new se(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,i=r+(r<.5?r:1-r)*t,n=2*r-i;return new qt(Ka(e>=240?e-240:e+120,n,i),Ka(e,n,i),Ka(e<120?e+240:e-120,n,i),this.opacity)},clamp(){return new se(tc(this.h),sn(this.s),sn(this.l),On(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=On(this.opacity);return`${e===1?"hsl(":"hsla("}${tc(this.h)}, ${sn(this.s)*100}%, ${sn(this.l)*100}%${e===1?")":`, ${e})`}`}}));function tc(e){return e=(e||0)%360,e<0?e+360:e}function sn(e){return Math.max(0,Math.min(1,e||0))}function Ka(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}const fa=e=>()=>e;function Uh(e,t){return function(r){return e+r*t}}function ob(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(i){return Math.pow(e+i*t,r)}}function lb(e,t){var r=t-e;return r?Uh(e,r>180||r<-180?r-360*Math.round(r/360):r):fa(isNaN(e)?t:e)}function cb(e){return(e=+e)==1?Mo:function(t,r){return r-t?ob(t,r,e):fa(isNaN(t)?r:t)}}function Mo(e,t){var r=t-e;return r?Uh(e,r):fa(isNaN(e)?t:e)}const ws=function e(t){var r=cb(t);function i(n,a){var o=r((n=vs(n)).r,(a=vs(a)).r),s=r(n.g,a.g),l=r(n.b,a.b),c=Mo(n.opacity,a.opacity);return function(h){return n.r=o(h),n.g=s(h),n.b=l(h),n.opacity=c(h),n+""}}return i.gamma=e,i}(1);function Le(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}var Ss=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Za=new RegExp(Ss.source,"g");function hb(e){return function(){return e}}function ub(e){return function(t){return e(t)+""}}function Gh(e,t){var r=Ss.lastIndex=Za.lastIndex=0,i,n,a,o=-1,s=[],l=[];for(e=e+"",t=t+"";(i=Ss.exec(e))&&(n=Za.exec(t));)(a=n.index)>r&&(a=t.slice(r,a),s[o]?s[o]+=a:s[++o]=a),(i=i[0])===(n=n[0])?s[o]?s[o]+=n:s[++o]=n:(s[++o]=null,l.push({i:o,x:Le(i,n)})),r=Za.lastIndex;return r<t.length&&(a=t.slice(r),s[o]?s[o]+=a:s[++o]=a),s.length<2?l[0]?ub(l[0].x):hb(t):(t=l.length,function(c){for(var h=0,u;h<t;++h)s[(u=l[h]).i]=u.x(c);return s.join("")})}var ec=180/Math.PI,ks={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Xh(e,t,r,i,n,a){var o,s,l;return(o=Math.sqrt(e*e+t*t))&&(e/=o,t/=o),(l=e*r+t*i)&&(r-=e*l,i-=t*l),(s=Math.sqrt(r*r+i*i))&&(r/=s,i/=s,l/=s),e*i<t*r&&(e=-e,t=-t,l=-l,o=-o),{translateX:n,translateY:a,rotate:Math.atan2(t,e)*ec,skewX:Math.atan(l)*ec,scaleX:o,scaleY:s}}var on;function fb(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?ks:Xh(t.a,t.b,t.c,t.d,t.e,t.f)}function db(e){return e==null||(on||(on=document.createElementNS("http://www.w3.org/2000/svg","g")),on.setAttribute("transform",e),!(e=on.transform.baseVal.consolidate()))?ks:(e=e.matrix,Xh(e.a,e.b,e.c,e.d,e.e,e.f))}function Vh(e,t,r,i){function n(c){return c.length?c.pop()+" ":""}function a(c,h,u,f,d,g){if(c!==u||h!==f){var m=d.push("translate(",null,t,null,r);g.push({i:m-4,x:Le(c,u)},{i:m-2,x:Le(h,f)})}else(u||f)&&d.push("translate("+u+t+f+r)}function o(c,h,u,f){c!==h?(c-h>180?h+=360:h-c>180&&(c+=360),f.push({i:u.push(n(u)+"rotate(",null,i)-2,x:Le(c,h)})):h&&u.push(n(u)+"rotate("+h+i)}function s(c,h,u,f){c!==h?f.push({i:u.push(n(u)+"skewX(",null,i)-2,x:Le(c,h)}):h&&u.push(n(u)+"skewX("+h+i)}function l(c,h,u,f,d,g){if(c!==u||h!==f){var m=d.push(n(d)+"scale(",null,",",null,")");g.push({i:m-4,x:Le(c,u)},{i:m-2,x:Le(h,f)})}else(u!==1||f!==1)&&d.push(n(d)+"scale("+u+","+f+")")}return function(c,h){var u=[],f=[];return c=e(c),h=e(h),a(c.translateX,c.translateY,h.translateX,h.translateY,u,f),o(c.rotate,h.rotate,u,f),s(c.skewX,h.skewX,u,f),l(c.scaleX,c.scaleY,h.scaleX,h.scaleY,u,f),c=h=null,function(d){for(var g=-1,m=f.length,y;++g<m;)u[(y=f[g]).i]=y.x(d);return u.join("")}}}var pb=Vh(fb,"px, ","px)","deg)"),gb=Vh(db,", ",")",")"),jr=0,yi=0,ui=0,Kh=1e3,In,xi,Pn=0,cr=0,da=0,Ei=typeof performance=="object"&&performance.now?performance:Date,Zh=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function Ao(){return cr||(Zh(mb),cr=Ei.now()+da)}function mb(){cr=0}function Rn(){this._call=this._time=this._next=null}Rn.prototype=Qh.prototype={constructor:Rn,restart:function(e,t,r){if(typeof e!="function")throw new TypeError("callback is not a function");r=(r==null?Ao():+r)+(t==null?0:+t),!this._next&&xi!==this&&(xi?xi._next=this:In=this,xi=this),this._call=e,this._time=r,Ts()},stop:function(){this._call&&(this._call=null,this._time=1/0,Ts())}};function Qh(e,t,r){var i=new Rn;return i.restart(e,t,r),i}function yb(){Ao(),++jr;for(var e=In,t;e;)(t=cr-e._time)>=0&&e._call.call(void 0,t),e=e._next;--jr}function rc(){cr=(Pn=Ei.now())+da,jr=yi=0;try{yb()}finally{jr=0,bb(),cr=0}}function xb(){var e=Ei.now(),t=e-Pn;t>Kh&&(da-=t,Pn=e)}function bb(){for(var e,t=In,r,i=1/0;t;)t._call?(i>t._time&&(i=t._time),e=t,t=t._next):(r=t._next,t._next=null,t=e?e._next=r:In=r);xi=e,Ts(i)}function Ts(e){if(!jr){yi&&(yi=clearTimeout(yi));var t=e-cr;t>24?(e<1/0&&(yi=setTimeout(rc,e-Ei.now()-da)),ui&&(ui=clearInterval(ui))):(ui||(Pn=Ei.now(),ui=setInterval(xb,Kh)),jr=1,Zh(rc))}}function ic(e,t,r){var i=new Rn;return t=t==null?0:+t,i.restart(n=>{i.stop(),e(n+t)},t,r),i}var Cb=Eh("start","end","cancel","interrupt"),_b=[],Jh=0,nc=1,Bs=2,bn=3,ac=4,Ls=5,Cn=6;function pa(e,t,r,i,n,a){var o=e.__transition;if(!o)e.__transition={};else if(r in o)return;vb(e,r,{name:t,index:i,group:n,on:Cb,tween:_b,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:Jh})}function Eo(e,t){var r=he(e,t);if(r.state>Jh)throw new Error("too late; already scheduled");return r}function xe(e,t){var r=he(e,t);if(r.state>bn)throw new Error("too late; already running");return r}function he(e,t){var r=e.__transition;if(!r||!(r=r[t]))throw new Error("transition not found");return r}function vb(e,t,r){var i=e.__transition,n;i[t]=r,r.timer=Qh(a,0,r.time);function a(c){r.state=nc,r.timer.restart(o,r.delay,r.time),r.delay<=c&&o(c-r.delay)}function o(c){var h,u,f,d;if(r.state!==nc)return l();for(h in i)if(d=i[h],d.name===r.name){if(d.state===bn)return ic(o);d.state===ac?(d.state=Cn,d.timer.stop(),d.on.call("interrupt",e,e.__data__,d.index,d.group),delete i[h]):+h<t&&(d.state=Cn,d.timer.stop(),d.on.call("cancel",e,e.__data__,d.index,d.group),delete i[h])}if(ic(function(){r.state===bn&&(r.state=ac,r.timer.restart(s,r.delay,r.time),s(c))}),r.state=Bs,r.on.call("start",e,e.__data__,r.index,r.group),r.state===Bs){for(r.state=bn,n=new Array(f=r.tween.length),h=0,u=-1;h<f;++h)(d=r.tween[h].value.call(e,e.__data__,r.index,r.group))&&(n[++u]=d);n.length=u+1}}function s(c){for(var h=c<r.duration?r.ease.call(null,c/r.duration):(r.timer.restart(l),r.state=Ls,1),u=-1,f=n.length;++u<f;)n[u].call(e,h);r.state===Ls&&(r.on.call("end",e,e.__data__,r.index,r.group),l())}function l(){r.state=Cn,r.timer.stop(),delete i[t];for(var c in i)return;delete e.__transition}}function wb(e,t){var r=e.__transition,i,n,a=!0,o;if(r){t=t==null?null:t+"";for(o in r){if((i=r[o]).name!==t){a=!1;continue}n=i.state>Bs&&i.state<Ls,i.state=Cn,i.timer.stop(),i.on.call(n?"interrupt":"cancel",e,e.__data__,i.index,i.group),delete r[o]}a&&delete e.__transition}}function Sb(e){return this.each(function(){wb(this,e)})}function kb(e,t){var r,i;return function(){var n=xe(this,e),a=n.tween;if(a!==r){i=r=a;for(var o=0,s=i.length;o<s;++o)if(i[o].name===t){i=i.slice(),i.splice(o,1);break}}n.tween=i}}function Tb(e,t,r){var i,n;if(typeof r!="function")throw new Error;return function(){var a=xe(this,e),o=a.tween;if(o!==i){n=(i=o).slice();for(var s={name:t,value:r},l=0,c=n.length;l<c;++l)if(n[l].name===t){n[l]=s;break}l===c&&n.push(s)}a.tween=n}}function Bb(e,t){var r=this._id;if(e+="",arguments.length<2){for(var i=he(this.node(),r).tween,n=0,a=i.length,o;n<a;++n)if((o=i[n]).name===e)return o.value;return null}return this.each((t==null?kb:Tb)(r,e,t))}function Fo(e,t,r){var i=e._id;return e.each(function(){var n=xe(this,i);(n.value||(n.value={}))[t]=r.apply(this,arguments)}),function(n){return he(n,i).value[t]}}function tu(e,t){var r;return(typeof t=="number"?Le:t instanceof Hr?ws:(r=Hr(t))?(t=r,ws):Gh)(e,t)}function Lb(e){return function(){this.removeAttribute(e)}}function Mb(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Ab(e,t,r){var i,n=r+"",a;return function(){var o=this.getAttribute(e);return o===n?null:o===i?a:a=t(i=o,r)}}function Eb(e,t,r){var i,n=r+"",a;return function(){var o=this.getAttributeNS(e.space,e.local);return o===n?null:o===i?a:a=t(i=o,r)}}function Fb(e,t,r){var i,n,a;return function(){var o,s=r(this),l;return s==null?void this.removeAttribute(e):(o=this.getAttribute(e),l=s+"",o===l?null:o===i&&l===n?a:(n=l,a=t(i=o,s)))}}function $b(e,t,r){var i,n,a;return function(){var o,s=r(this),l;return s==null?void this.removeAttributeNS(e.space,e.local):(o=this.getAttributeNS(e.space,e.local),l=s+"",o===l?null:o===i&&l===n?a:(n=l,a=t(i=o,s)))}}function Db(e,t){var r=ha(e),i=r==="transform"?gb:tu;return this.attrTween(e,typeof t=="function"?(r.local?$b:Fb)(r,i,Fo(this,"attr."+e,t)):t==null?(r.local?Mb:Lb)(r):(r.local?Eb:Ab)(r,i,t))}function Ob(e,t){return function(r){this.setAttribute(e,t.call(this,r))}}function Ib(e,t){return function(r){this.setAttributeNS(e.space,e.local,t.call(this,r))}}function Pb(e,t){var r,i;function n(){var a=t.apply(this,arguments);return a!==i&&(r=(i=a)&&Ib(e,a)),r}return n._value=t,n}function Rb(e,t){var r,i;function n(){var a=t.apply(this,arguments);return a!==i&&(r=(i=a)&&Ob(e,a)),r}return n._value=t,n}function Nb(e,t){var r="attr."+e;if(arguments.length<2)return(r=this.tween(r))&&r._value;if(t==null)return this.tween(r,null);if(typeof t!="function")throw new Error;var i=ha(e);return this.tween(r,(i.local?Pb:Rb)(i,t))}function Wb(e,t){return function(){Eo(this,e).delay=+t.apply(this,arguments)}}function qb(e,t){return t=+t,function(){Eo(this,e).delay=t}}function zb(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?Wb:qb)(t,e)):he(this.node(),t).delay}function Hb(e,t){return function(){xe(this,e).duration=+t.apply(this,arguments)}}function jb(e,t){return t=+t,function(){xe(this,e).duration=t}}function Yb(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?Hb:jb)(t,e)):he(this.node(),t).duration}function Ub(e,t){if(typeof t!="function")throw new Error;return function(){xe(this,e).ease=t}}function Gb(e){var t=this._id;return arguments.length?this.each(Ub(t,e)):he(this.node(),t).ease}function Xb(e,t){return function(){var r=t.apply(this,arguments);if(typeof r!="function")throw new Error;xe(this,e).ease=r}}function Vb(e){if(typeof e!="function")throw new Error;return this.each(Xb(this._id,e))}function Kb(e){typeof e!="function"&&(e=Dh(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 Ee(i,this._parents,this._name,this._id)}function Zb(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,r=e._groups,i=t.length,n=r.length,a=Math.min(i,n),o=new Array(i),s=0;s<a;++s)for(var l=t[s],c=r[s],h=l.length,u=o[s]=new Array(h),f,d=0;d<h;++d)(f=l[d]||c[d])&&(u[d]=f);for(;s<i;++s)o[s]=t[s];return new Ee(o,this._parents,this._name,this._id)}function Qb(e){return(e+"").trim().split(/^|\s+/).every(function(t){var r=t.indexOf(".");return r>=0&&(t=t.slice(0,r)),!t||t==="start"})}function Jb(e,t,r){var i,n,a=Qb(t)?Eo:xe;return function(){var o=a(this,e),s=o.on;s!==i&&(n=(i=s).copy()).on(t,r),o.on=n}}function t1(e,t){var r=this._id;return arguments.length<2?he(this.node(),r).on.on(e):this.each(Jb(r,e,t))}function e1(e){return function(){var t=this.parentNode;for(var r in this.__transition)if(+r!==e)return;t&&t.removeChild(this)}}function r1(){return this.on("end.remove",e1(this._id))}function i1(e){var t=this._name,r=this._id;typeof e!="function"&&(e=To(e));for(var i=this._groups,n=i.length,a=new Array(n),o=0;o<n;++o)for(var s=i[o],l=s.length,c=a[o]=new Array(l),h,u,f=0;f<l;++f)(h=s[f])&&(u=e.call(h,h.__data__,f,s))&&("__data__"in h&&(u.__data__=h.__data__),c[f]=u,pa(c[f],t,r,f,c,he(h,r)));return new Ee(a,this._parents,t,r)}function n1(e){var t=this._name,r=this._id;typeof e!="function"&&(e=$h(e));for(var i=this._groups,n=i.length,a=[],o=[],s=0;s<n;++s)for(var l=i[s],c=l.length,h,u=0;u<c;++u)if(h=l[u]){for(var f=e.call(h,h.__data__,u,l),d,g=he(h,r),m=0,y=f.length;m<y;++m)(d=f[m])&&pa(d,t,r,m,f,g);a.push(f),o.push(h)}return new Ee(a,o,t,r)}var a1=ji.prototype.constructor;function s1(){return new a1(this._groups,this._parents)}function o1(e,t){var r,i,n;return function(){var a=zr(this,e),o=(this.style.removeProperty(e),zr(this,e));return a===o?null:a===r&&o===i?n:n=t(r=a,i=o)}}function eu(e){return function(){this.style.removeProperty(e)}}function l1(e,t,r){var i,n=r+"",a;return function(){var o=zr(this,e);return o===n?null:o===i?a:a=t(i=o,r)}}function c1(e,t,r){var i,n,a;return function(){var o=zr(this,e),s=r(this),l=s+"";return s==null&&(l=s=(this.style.removeProperty(e),zr(this,e))),o===l?null:o===i&&l===n?a:(n=l,a=t(i=o,s))}}function h1(e,t){var r,i,n,a="style."+t,o="end."+a,s;return function(){var l=xe(this,e),c=l.on,h=l.value[a]==null?s||(s=eu(t)):void 0;(c!==r||n!==h)&&(i=(r=c).copy()).on(o,n=h),l.on=i}}function u1(e,t,r){var i=(e+="")=="transform"?pb:tu;return t==null?this.styleTween(e,o1(e,i)).on("end.style."+e,eu(e)):typeof t=="function"?this.styleTween(e,c1(e,i,Fo(this,"style."+e,t))).each(h1(this._id,e)):this.styleTween(e,l1(e,i,t),r).on("end.style."+e,null)}function f1(e,t,r){return function(i){this.style.setProperty(e,t.call(this,i),r)}}function d1(e,t,r){var i,n;function a(){var o=t.apply(this,arguments);return o!==n&&(i=(n=o)&&f1(e,o,r)),i}return a._value=t,a}function p1(e,t,r){var i="style."+(e+="");if(arguments.length<2)return(i=this.tween(i))&&i._value;if(t==null)return this.tween(i,null);if(typeof t!="function")throw new Error;return this.tween(i,d1(e,t,r??""))}function g1(e){return function(){this.textContent=e}}function m1(e){return function(){var t=e(this);this.textContent=t??""}}function y1(e){return this.tween("text",typeof e=="function"?m1(Fo(this,"text",e)):g1(e==null?"":e+""))}function x1(e){return function(t){this.textContent=e.call(this,t)}}function b1(e){var t,r;function i(){var n=e.apply(this,arguments);return n!==r&&(t=(r=n)&&x1(n)),t}return i._value=e,i}function C1(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(e==null)return this.tween(t,null);if(typeof e!="function")throw new Error;return this.tween(t,b1(e))}function _1(){for(var e=this._name,t=this._id,r=ru(),i=this._groups,n=i.length,a=0;a<n;++a)for(var o=i[a],s=o.length,l,c=0;c<s;++c)if(l=o[c]){var h=he(l,t);pa(l,e,r,c,o,{time:h.time+h.delay+h.duration,delay:0,duration:h.duration,ease:h.ease})}return new Ee(i,this._parents,e,r)}function v1(){var e,t,r=this,i=r._id,n=r.size();return new Promise(function(a,o){var s={value:o},l={value:function(){--n===0&&a()}};r.each(function(){var c=xe(this,i),h=c.on;h!==e&&(t=(e=h).copy(),t._.cancel.push(s),t._.interrupt.push(s),t._.end.push(l)),c.on=t}),n===0&&a()})}var w1=0;function Ee(e,t,r,i){this._groups=e,this._parents=t,this._name=r,this._id=i}function ru(){return++w1}var Se=ji.prototype;Ee.prototype={constructor:Ee,select:i1,selectAll:n1,selectChild:Se.selectChild,selectChildren:Se.selectChildren,filter:Kb,merge:Zb,selection:s1,transition:_1,call:Se.call,nodes:Se.nodes,node:Se.node,size:Se.size,empty:Se.empty,each:Se.each,on:t1,attr:Db,attrTween:Nb,style:u1,styleTween:p1,text:y1,textTween:C1,remove:r1,tween:Bb,delay:zb,duration:Yb,ease:Gb,easeVarying:Vb,end:v1,[Symbol.iterator]:Se[Symbol.iterator]};function S1(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var k1={time:null,delay:0,duration:250,ease:S1};function T1(e,t){for(var r;!(r=e.__transition)||!(r=r[t]);)if(!(e=e.parentNode))throw new Error(`transition ${t} not found`);return r}function B1(e){var t,r;e instanceof Ee?(t=e._id,e=e._name):(t=ru(),(r=k1).time=Ao(),e=e==null?null:e+"");for(var i=this._groups,n=i.length,a=0;a<n;++a)for(var o=i[a],s=o.length,l,c=0;c<s;++c)(l=o[c])&&pa(l,e,t,c,o,r||T1(l,t));return new Ee(i,this._parents,e,t)}ji.prototype.interrupt=Sb;ji.prototype.transition=B1;const Ms=Math.PI,As=2*Ms,Ke=1e-6,L1=As-Ke;function iu(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}function M1(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return iu;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]}}class A1{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?iu:M1(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>Ke)if(!(Math.abs(u*l-c*h)>Ke)||!a)this._append`L${this._x1=t},${this._y1=r}`;else{let d=i-o,g=n-s,m=l*l+c*c,y=d*d+g*g,x=Math.sqrt(m),b=Math.sqrt(f),_=a*Math.tan((Ms-Math.acos((m+f-y)/(2*x*b)))/2),S=_/b,v=_/x;Math.abs(S-1)>Ke&&this._append`L${t+S*h},${r+S*u}`,this._append`A${a},${a},0,0,${+(u*d>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;this._x1===null?this._append`M${c},${h}`:(Math.abs(this._x1-c)>Ke||Math.abs(this._y1-h)>Ke)&&this._append`L${c},${h}`,i&&(f<0&&(f=f%As+As),f>L1?this._append`A${i},${i},0,1,${u},${t-s},${r-l}A${i},${i},0,1,${u},${this._x1=c},${this._y1=h}`:f>Ke&&this._append`A${i},${i},0,${+(f>=Ms)},${u},${this._x1=t+i*Math.cos(a)},${this._y1=r+i*Math.sin(a)}`)}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 Ze(e){return function(){return e}}const E1=Math.abs,F1=Math.atan2,$1=Math.cos,D1=Math.max,O1=Math.min,I1=Math.sin,P1=Math.sqrt,Es=1e-12,ga=Math.PI,Fs=ga/2,R1=2*ga;function N1(e){return e>1?0:e<-1?ga:Math.acos(e)}function W1(e){return e>=1?Fs:e<=-1?-Fs:Math.asin(e)}function nu(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 au(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function su(e){this._context=e}su.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 Nn(e){return new su(e)}function q1(e){return e[0]}function z1(e){return e[1]}function ou(e,t){var r=Ze(!0),i=null,n=Nn,a=null,o=nu(s);e=typeof e=="function"?e:e===void 0?q1:Ze(e),t=typeof t=="function"?t:t===void 0?z1:Ze(t);function s(l){var c,h=(l=au(l)).length,u,f=!1,d;for(i==null&&(a=n(d=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(d)return a=null,d+""||null}return s.x=function(l){return arguments.length?(e=typeof l=="function"?l:Ze(+l),s):e},s.y=function(l){return arguments.length?(t=typeof l=="function"?l:Ze(+l),s):t},s.defined=function(l){return arguments.length?(r=typeof l=="function"?l:Ze(!!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}class lu{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 cu(e){return new lu(e,!0)}function hu(e){return new lu(e,!1)}function Ne(){}function Wn(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 ma(e){this._context=e}ma.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:Wn(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:Wn(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Bi(e){return new ma(e)}function uu(e){this._context=e}uu.prototype={areaStart:Ne,areaEnd:Ne,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:Wn(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function H1(e){return new uu(e)}function fu(e){this._context=e}fu.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:Wn(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function j1(e){return new fu(e)}function du(e,t){this._basis=new ma(e),this._beta=t}du.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)}};const Y1=function e(t){function r(i){return t===1?new ma(i):new du(i,t)}return r.beta=function(i){return e(+i)},r}(.85);function qn(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 $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(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:qn(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:qn(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const pu=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){this._context=e,this._k=(1-t)/6}Do.prototype={areaStart:Ne,areaEnd:Ne,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:qn(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const U1=function e(t){function r(i){return new Do(i,t)}return r.tension=function(i){return e(+i)},r}(0);function Oo(e,t){this._context=e,this._k=(1-t)/6}Oo.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:qn(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const G1=function e(t){function r(i){return new Oo(i,t)}return r.tension=function(i){return e(+i)},r}(0);function Io(e,t,r){var i=e._x1,n=e._y1,a=e._x2,o=e._y2;if(e._l01_a>Es){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>Es){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 gu(e,t){this._context=e,this._alpha=t}gu.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:Io(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const mu=function e(t){function r(i){return t?new gu(i,t):new $o(i,0)}return r.alpha=function(i){return e(+i)},r}(.5);function yu(e,t){this._context=e,this._alpha=t}yu.prototype={areaStart:Ne,areaEnd:Ne,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:Io(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const X1=function e(t){function r(i){return t?new yu(i,t):new Do(i,0)}return r.alpha=function(i){return e(+i)},r}(.5);function xu(e,t){this._context=e,this._alpha=t}xu.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:Io(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const V1=function e(t){function r(i){return t?new xu(i,t):new Oo(i,0)}return r.alpha=function(i){return e(+i)},r}(.5);function bu(e){this._context=e}bu.prototype={areaStart:Ne,areaEnd:Ne,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 K1(e){return new bu(e)}function sc(e){return e<0?-1:1}function oc(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(sc(a)+sc(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function lc(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function Qa(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 zn(e){this._context=e}zn.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:Qa(this,this._t0,lc(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,Qa(this,lc(this,r=oc(this,e,t)),r);break;default:Qa(this,this._t0,r=oc(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function Cu(e){this._context=new _u(e)}(Cu.prototype=Object.create(zn.prototype)).point=function(e,t){zn.prototype.point.call(this,t,e)};function _u(e){this._context=e}_u.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 vu(e){return new zn(e)}function wu(e){return new Cu(e)}function Su(e){this._context=e}Su.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=cc(e),n=cc(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 cc(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 ku(e){return new Su(e)}function ya(e,t){this._context=e,this._t=t}ya.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 Tu(e){return new ya(e,.5)}function Bu(e){return new ya(e,0)}function Lu(e){return new ya(e,1)}function bi(e,t,r){this.k=e,this.x=t,this.y=r}bi.prototype={constructor:bi,scale:function(e){return e===1?this:new bi(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new bi(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};bi.prototype;var Mu=p(e=>{var n;const{securityLevel:t}=ft();let r=ht("body");if(t==="sandbox"){const o=((n=ht(`#i${e}`).node())==null?void 0:n.contentDocument)??document;r=ht(o.body)}return r.select(`#${e}`)},"selectSvgElement");function Po(e){return typeof e>"u"||e===null}p(Po,"isNothing");function Au(e){return typeof e=="object"&&e!==null}p(Au,"isObject");function Eu(e){return Array.isArray(e)?e:Po(e)?[]:[e]}p(Eu,"toArray");function Fu(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}p(Fu,"extend");function $u(e,t){var r="",i;for(i=0;i<t;i+=1)r+=e;return r}p($u,"repeat");function Du(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}p(Du,"isNegativeZero");var Z1=Po,Q1=Au,J1=Eu,t2=$u,e2=Du,r2=Fu,Bt={isNothing:Z1,isObject:Q1,toArray:J1,repeat:t2,isNegativeZero:e2,extend:r2};function Ro(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+=`
81
-
82
- `+e.mark.snippet),i+" "+r):i}p(Ro,"formatError");function Yr(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=Ro(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}p(Yr,"YAMLException$1");Yr.prototype=Object.create(Error.prototype);Yr.prototype.constructor=Yr;Yr.prototype.toString=p(function(t){return this.name+": "+Ro(this,t)},"toString");var Xt=Yr;function _n(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}}p(_n,"getLine");function vn(e,t){return Bt.repeat(" ",t-e.length)+e}p(vn,"padStart");function Ou(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=_n(e.buffer,i[o-l],n[o-l],e.position-(i[o]-i[o-l]),u),s=Bt.repeat(" ",t.indent)+vn((e.line-l+1).toString(),h)+" | "+c.str+`
83
- `+s;for(c=_n(e.buffer,i[o],n[o],e.position,u),s+=Bt.repeat(" ",t.indent)+vn((e.line+1).toString(),h)+" | "+c.str+`
84
- `,s+=Bt.repeat("-",t.indent+h+3+c.pos)+`^
85
- `,l=1;l<=t.linesAfter&&!(o+l>=n.length);l++)c=_n(e.buffer,i[o+l],n[o+l],e.position-(i[o]-i[o+l]),u),s+=Bt.repeat(" ",t.indent)+vn((e.line+l+1).toString(),h)+" | "+c.str+`
86
- `;return s.replace(/\n$/,"")}p(Ou,"makeSnippet");var i2=Ou,n2=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],a2=["scalar","sequence","mapping"];function Iu(e){var t={};return e!==null&&Object.keys(e).forEach(function(r){e[r].forEach(function(i){t[String(i)]=r})}),t}p(Iu,"compileStyleAliases");function Pu(e,t){if(t=t||{},Object.keys(t).forEach(function(r){if(n2.indexOf(r)===-1)throw new Xt('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=Iu(t.styleAliases||null),a2.indexOf(this.kind)===-1)throw new Xt('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}p(Pu,"Type$1");var It=Pu;function $s(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}p($s,"compileList");function Ru(){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(p(i,"collectType"),t=0,r=arguments.length;t<r;t+=1)arguments[t].forEach(i);return e}p(Ru,"compileMap");function Hn(e){return this.extend(e)}p(Hn,"Schema$1");Hn.prototype.extend=p(function(t){var r=[],i=[];if(t instanceof It)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 Xt("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");r.forEach(function(a){if(!(a instanceof It))throw new Xt("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(a.loadKind&&a.loadKind!=="scalar")throw new Xt("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 Xt("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 It))throw new Xt("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var n=Object.create(Hn.prototype);return n.implicit=(this.implicit||[]).concat(r),n.explicit=(this.explicit||[]).concat(i),n.compiledImplicit=$s(n,"implicit"),n.compiledExplicit=$s(n,"explicit"),n.compiledTypeMap=Ru(n.compiledImplicit,n.compiledExplicit),n},"extend");var s2=Hn,o2=new It("tag:yaml.org,2002:str",{kind:"scalar",construct:p(function(e){return e!==null?e:""},"construct")}),l2=new It("tag:yaml.org,2002:seq",{kind:"sequence",construct:p(function(e){return e!==null?e:[]},"construct")}),c2=new It("tag:yaml.org,2002:map",{kind:"mapping",construct:p(function(e){return e!==null?e:{}},"construct")}),h2=new s2({explicit:[o2,l2,c2]});function Nu(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}p(Nu,"resolveYamlNull");function Wu(){return null}p(Wu,"constructYamlNull");function qu(e){return e===null}p(qu,"isNull");var u2=new It("tag:yaml.org,2002:null",{kind:"scalar",resolve:Nu,construct:Wu,predicate:qu,represent:{canonical:p(function(){return"~"},"canonical"),lowercase:p(function(){return"null"},"lowercase"),uppercase:p(function(){return"NULL"},"uppercase"),camelcase:p(function(){return"Null"},"camelcase"),empty:p(function(){return""},"empty")},defaultStyle:"lowercase"});function zu(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")}p(zu,"resolveYamlBoolean");function Hu(e){return e==="true"||e==="True"||e==="TRUE"}p(Hu,"constructYamlBoolean");function ju(e){return Object.prototype.toString.call(e)==="[object Boolean]"}p(ju,"isBoolean");var f2=new It("tag:yaml.org,2002:bool",{kind:"scalar",resolve:zu,construct:Hu,predicate:ju,represent:{lowercase:p(function(e){return e?"true":"false"},"lowercase"),uppercase:p(function(e){return e?"TRUE":"FALSE"},"uppercase"),camelcase:p(function(e){return e?"True":"False"},"camelcase")},defaultStyle:"lowercase"});function Yu(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}p(Yu,"isHexCode");function Uu(e){return 48<=e&&e<=55}p(Uu,"isOctCode");function Gu(e){return 48<=e&&e<=57}p(Gu,"isDecCode");function Xu(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(!Yu(e.charCodeAt(r)))return!1;i=!0}return i&&n!=="_"}if(n==="o"){for(r++;r<t;r++)if(n=e[r],n!=="_"){if(!Uu(e.charCodeAt(r)))return!1;i=!0}return i&&n!=="_"}}if(n==="_")return!1;for(;r<t;r++)if(n=e[r],n!=="_"){if(!Gu(e.charCodeAt(r)))return!1;i=!0}return!(!i||n==="_")}p(Xu,"resolveYamlInteger");function Vu(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)}p(Vu,"constructYamlInteger");function Ku(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!Bt.isNegativeZero(e)}p(Ku,"isInteger");var d2=new It("tag:yaml.org,2002:int",{kind:"scalar",resolve:Xu,construct:Vu,predicate:Ku,represent:{binary:p(function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},"binary"),octal:p(function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},"octal"),decimal:p(function(e){return e.toString(10)},"decimal"),hexadecimal:p(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"]}}),p2=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function Zu(e){return!(e===null||!p2.test(e)||e[e.length-1]==="_")}p(Zu,"resolveYamlFloat");function Qu(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)}p(Qu,"constructYamlFloat");var g2=/^[-+]?[0-9]+e/;function Ju(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(Bt.isNegativeZero(e))return"-0.0";return r=e.toString(10),g2.test(r)?r.replace("e",".e"):r}p(Ju,"representYamlFloat");function tf(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||Bt.isNegativeZero(e))}p(tf,"isFloat");var m2=new It("tag:yaml.org,2002:float",{kind:"scalar",resolve:Zu,construct:Qu,predicate:tf,represent:Ju,defaultStyle:"lowercase"}),ef=h2.extend({implicit:[u2,f2,d2,m2]}),y2=ef,rf=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),nf=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 af(e){return e===null?!1:rf.exec(e)!==null||nf.exec(e)!==null}p(af,"resolveYamlTimestamp");function sf(e){var t,r,i,n,a,o,s,l=0,c=null,h,u,f;if(t=rf.exec(e),t===null&&(t=nf.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}p(sf,"constructYamlTimestamp");function of(e){return e.toISOString()}p(of,"representYamlTimestamp");var x2=new It("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:af,construct:sf,instanceOf:Date,represent:of});function lf(e){return e==="<<"||e===null}p(lf,"resolveYamlMerge");var b2=new It("tag:yaml.org,2002:merge",{kind:"scalar",resolve:lf}),No=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
87
- \r`;function cf(e){if(e===null)return!1;var t,r,i=0,n=e.length,a=No;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}p(cf,"resolveYamlBinary");function hf(e){var t,r,i=e.replace(/[\r\n=]/g,""),n=i.length,a=No,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)}p(hf,"constructYamlBinary");function uf(e){var t="",r=0,i,n,a=e.length,o=No;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}p(uf,"representYamlBinary");function ff(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}p(ff,"isBinary");var C2=new It("tag:yaml.org,2002:binary",{kind:"scalar",resolve:cf,construct:hf,predicate:ff,represent:uf}),_2=Object.prototype.hasOwnProperty,v2=Object.prototype.toString;function df(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,v2.call(n)!=="[object Object]")return!1;for(a in n)if(_2.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}p(df,"resolveYamlOmap");function pf(e){return e!==null?e:[]}p(pf,"constructYamlOmap");var w2=new It("tag:yaml.org,2002:omap",{kind:"sequence",resolve:df,construct:pf}),S2=Object.prototype.toString;function gf(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],S2.call(i)!=="[object Object]"||(n=Object.keys(i),n.length!==1))return!1;a[t]=[n[0],i[n[0]]]}return!0}p(gf,"resolveYamlPairs");function mf(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}p(mf,"constructYamlPairs");var k2=new It("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:gf,construct:mf}),T2=Object.prototype.hasOwnProperty;function yf(e){if(e===null)return!0;var t,r=e;for(t in r)if(T2.call(r,t)&&r[t]!==null)return!1;return!0}p(yf,"resolveYamlSet");function xf(e){return e!==null?e:{}}p(xf,"constructYamlSet");var B2=new It("tag:yaml.org,2002:set",{kind:"mapping",resolve:yf,construct:xf}),bf=y2.extend({implicit:[x2,b2],explicit:[C2,w2,k2,B2]}),We=Object.prototype.hasOwnProperty,jn=1,Cf=2,_f=3,Yn=4,Ja=1,L2=2,hc=3,M2=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,A2=/[\x85\u2028\u2029]/,E2=/[,\[\]\{\}]/,vf=/^(?:!|!!|![a-z\-]+!)$/i,wf=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function Ds(e){return Object.prototype.toString.call(e)}p(Ds,"_class");function oe(e){return e===10||e===13}p(oe,"is_EOL");function Re(e){return e===9||e===32}p(Re,"is_WHITE_SPACE");function zt(e){return e===9||e===32||e===10||e===13}p(zt,"is_WS_OR_EOL");function er(e){return e===44||e===91||e===93||e===123||e===125}p(er,"is_FLOW_INDICATOR");function Sf(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}p(Sf,"fromHexCode");function kf(e){return e===120?2:e===117?4:e===85?8:0}p(kf,"escapedHexLen");function Tf(e){return 48<=e&&e<=57?e-48:-1}p(Tf,"fromDecimalCode");function Os(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
88
- `: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":""}p(Os,"simpleEscapeSequence");function Bf(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}p(Bf,"charFromCodepoint");var Lf=new Array(256),Mf=new Array(256);for(Ve=0;Ve<256;Ve++)Lf[Ve]=Os(Ve)?1:0,Mf[Ve]=Os(Ve);var Ve;function Af(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||bf,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=[]}p(Af,"State$1");function Wo(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=i2(r),new Xt(t,r)}p(Wo,"generateError");function Z(e,t){throw Wo(e,t)}p(Z,"throwError");function Fi(e,t){e.onWarning&&e.onWarning.call(null,Wo(e,t))}p(Fi,"throwWarning");var uc={YAML:p(function(t,r,i){var n,a,o;t.version!==null&&Z(t,"duplication of %YAML directive"),i.length!==1&&Z(t,"YAML directive accepts exactly one argument"),n=/^([0-9]+)\.([0-9]+)$/.exec(i[0]),n===null&&Z(t,"ill-formed argument of the YAML directive"),a=parseInt(n[1],10),o=parseInt(n[2],10),a!==1&&Z(t,"unacceptable YAML version of the document"),t.version=i[0],t.checkLineBreaks=o<2,o!==1&&o!==2&&Fi(t,"unsupported YAML version of the document")},"handleYamlDirective"),TAG:p(function(t,r,i){var n,a;i.length!==2&&Z(t,"TAG directive accepts exactly two arguments"),n=i[0],a=i[1],vf.test(n)||Z(t,"ill-formed tag handle (first argument) of the TAG directive"),We.call(t.tagMap,n)&&Z(t,'there is a previously declared suffix for "'+n+'" tag handle'),wf.test(a)||Z(t,"ill-formed tag prefix (second argument) of the TAG directive");try{a=decodeURIComponent(a)}catch{Z(t,"tag prefix is malformed: "+a)}t.tagMap[n]=a},"handleTagDirective")};function Ae(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||Z(e,"expected valid JSON character");else M2.test(s)&&Z(e,"the stream contains non-printable characters");e.result+=s}}p(Ae,"captureSegment");function Is(e,t,r,i){var n,a,o,s;for(Bt.isObject(r)||Z(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],We.call(t,a)||(t[a]=r[a],i[a]=!0)}p(Is,"mergeMappings");function rr(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])&&Z(e,"nested arrays are not supported inside keys"),typeof n=="object"&&Ds(n[c])==="[object Object]"&&(n[c]="[object Object]");if(typeof n=="object"&&Ds(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)Is(e,t,a[c],r);else Is(e,t,a,r);else!e.json&&!We.call(r,n)&&We.call(t,n)&&(e.line=o||e.line,e.lineStart=s||e.lineStart,e.position=l||e.position,Z(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}p(rr,"storeMappingPair");function xa(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++):Z(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}p(xa,"readLineBreak");function Ct(e,t,r){for(var i=0,n=e.input.charCodeAt(e.position);n!==0;){for(;Re(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(oe(n))for(xa(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&&Fi(e,"deficient indentation"),i}p(Ct,"skipSeparationSpace");function Yi(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)))}p(Yi,"testDocumentSeparator");function ba(e,t){t===1?e.result+=" ":t>1&&(e.result+=Bt.repeat(`
89
- `,t-1))}p(ba,"writeFoldedLines");function Ef(e,t,r){var i,n,a,o,s,l,c,h,u=e.kind,f=e.result,d;if(d=e.input.charCodeAt(e.position),zt(d)||er(d)||d===35||d===38||d===42||d===33||d===124||d===62||d===39||d===34||d===37||d===64||d===96||(d===63||d===45)&&(n=e.input.charCodeAt(e.position+1),zt(n)||r&&er(n)))return!1;for(e.kind="scalar",e.result="",a=o=e.position,s=!1;d!==0;){if(d===58){if(n=e.input.charCodeAt(e.position+1),zt(n)||r&&er(n))break}else if(d===35){if(i=e.input.charCodeAt(e.position-1),zt(i))break}else{if(e.position===e.lineStart&&Yi(e)||r&&er(d))break;if(oe(d))if(l=e.line,c=e.lineStart,h=e.lineIndent,Ct(e,!1,-1),e.lineIndent>=t){s=!0,d=e.input.charCodeAt(e.position);continue}else{e.position=o,e.line=l,e.lineStart=c,e.lineIndent=h;break}}s&&(Ae(e,a,o,!1),ba(e,e.line-l),a=o=e.position,s=!1),Re(d)||(o=e.position+1),d=e.input.charCodeAt(++e.position)}return Ae(e,a,o,!1),e.result?!0:(e.kind=u,e.result=f,!1)}p(Ef,"readPlainScalar");function Ff(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(Ae(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 oe(r)?(Ae(e,i,n,!0),ba(e,Ct(e,!1,t)),i=n=e.position):e.position===e.lineStart&&Yi(e)?Z(e,"unexpected end of the document within a single quoted scalar"):(e.position++,n=e.position);Z(e,"unexpected end of the stream within a single quoted scalar")}p(Ff,"readSingleQuotedScalar");function $f(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 Ae(e,r,e.position,!0),e.position++,!0;if(s===92){if(Ae(e,r,e.position,!0),s=e.input.charCodeAt(++e.position),oe(s))Ct(e,!1,t);else if(s<256&&Lf[s])e.result+=Mf[s],e.position++;else if((o=kf(s))>0){for(n=o,a=0;n>0;n--)s=e.input.charCodeAt(++e.position),(o=Sf(s))>=0?a=(a<<4)+o:Z(e,"expected hexadecimal character");e.result+=Bf(a),e.position++}else Z(e,"unknown escape sequence");r=i=e.position}else oe(s)?(Ae(e,r,i,!0),ba(e,Ct(e,!1,t)),r=i=e.position):e.position===e.lineStart&&Yi(e)?Z(e,"unexpected end of the document within a double quoted scalar"):(e.position++,i=e.position)}Z(e,"unexpected end of the stream within a double quoted scalar")}p($f,"readDoubleQuotedScalar");function Df(e,t){var r=!0,i,n,a,o=e.tag,s,l=e.anchor,c,h,u,f,d,g=Object.create(null),m,y,x,b;if(b=e.input.charCodeAt(e.position),b===91)h=93,d=!1,s=[];else if(b===123)h=125,d=!0,s={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=s),b=e.input.charCodeAt(++e.position);b!==0;){if(Ct(e,!0,t),b=e.input.charCodeAt(e.position),b===h)return e.position++,e.tag=o,e.anchor=l,e.kind=d?"mapping":"sequence",e.result=s,!0;r?b===44&&Z(e,"expected the node content, but found ','"):Z(e,"missed comma between flow collection entries"),y=m=x=null,u=f=!1,b===63&&(c=e.input.charCodeAt(e.position+1),zt(c)&&(u=f=!0,e.position++,Ct(e,!0,t))),i=e.line,n=e.lineStart,a=e.position,hr(e,t,jn,!1,!0),y=e.tag,m=e.result,Ct(e,!0,t),b=e.input.charCodeAt(e.position),(f||e.line===i)&&b===58&&(u=!0,b=e.input.charCodeAt(++e.position),Ct(e,!0,t),hr(e,t,jn,!1,!0),x=e.result),d?rr(e,s,g,y,m,x,i,n,a):u?s.push(rr(e,null,g,y,m,x,i,n,a)):s.push(m),Ct(e,!0,t),b=e.input.charCodeAt(e.position),b===44?(r=!0,b=e.input.charCodeAt(++e.position)):r=!1}Z(e,"unexpected end of the stream within a flow collection")}p(Df,"readFlowCollection");function Of(e,t){var r,i,n=Ja,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)Ja===n?n=u===43?hc:L2:Z(e,"repeat of a chomping mode identifier");else if((h=Tf(u))>=0)h===0?Z(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):o?Z(e,"repeat of an indentation width identifier"):(s=t+h-1,o=!0);else break;if(Re(u)){do u=e.input.charCodeAt(++e.position);while(Re(u));if(u===35)do u=e.input.charCodeAt(++e.position);while(!oe(u)&&u!==0)}for(;u!==0;){for(xa(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),oe(u)){l++;continue}if(e.lineIndent<s){n===hc?e.result+=Bt.repeat(`
90
- `,a?1+l:l):n===Ja&&a&&(e.result+=`
91
- `);break}for(i?Re(u)?(c=!0,e.result+=Bt.repeat(`
92
- `,a?1+l:l)):c?(c=!1,e.result+=Bt.repeat(`
93
- `,l+1)):l===0?a&&(e.result+=" "):e.result+=Bt.repeat(`
94
- `,l):e.result+=Bt.repeat(`
95
- `,a?1+l:l),a=!0,o=!0,l=0,r=e.position;!oe(u)&&u!==0;)u=e.input.charCodeAt(++e.position);Ae(e,r,e.position,!1)}return!0}p(Of,"readBlockScalar");function Ps(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,Z(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++,Ct(e,!0,-1)&&e.lineIndent<=t){a.push(null),l=e.input.charCodeAt(e.position);continue}if(r=e.line,hr(e,t,_f,!1,!0),a.push(e.result),Ct(e,!0,-1),l=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&l!==0)Z(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}p(Ps,"readBlockSequence");function If(e,t,r){var i,n,a,o,s,l,c=e.tag,h=e.anchor,u={},f=Object.create(null),d=null,g=null,m=null,y=!1,x=!1,b;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=u),b=e.input.charCodeAt(e.position);b!==0;){if(!y&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,Z(e,"tab characters must not be used in indentation")),i=e.input.charCodeAt(e.position+1),a=e.line,(b===63||b===58)&&zt(i))b===63?(y&&(rr(e,u,f,d,g,null,o,s,l),d=g=m=null),x=!0,y=!0,n=!0):y?(y=!1,n=!0):Z(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,b=i;else{if(o=e.line,s=e.lineStart,l=e.position,!hr(e,r,Cf,!1,!0))break;if(e.line===a){for(b=e.input.charCodeAt(e.position);Re(b);)b=e.input.charCodeAt(++e.position);if(b===58)b=e.input.charCodeAt(++e.position),zt(b)||Z(e,"a whitespace character is expected after the key-value separator within a block mapping"),y&&(rr(e,u,f,d,g,null,o,s,l),d=g=m=null),x=!0,y=!1,n=!1,d=e.tag,g=e.result;else if(x)Z(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=c,e.anchor=h,!0}else if(x)Z(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)&&(y&&(o=e.line,s=e.lineStart,l=e.position),hr(e,t,Yn,!0,n)&&(y?g=e.result:m=e.result),y||(rr(e,u,f,d,g,m,o,s,l),d=g=m=null),Ct(e,!0,-1),b=e.input.charCodeAt(e.position)),(e.line===a||e.lineIndent>t)&&b!==0)Z(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return y&&rr(e,u,f,d,g,null,o,s,l),x&&(e.tag=c,e.anchor=h,e.kind="mapping",e.result=u),x}p(If,"readBlockMapping");function Pf(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&&Z(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)):Z(e,"unexpected end of the stream within a verbatim tag")}else{for(;o!==0&&!zt(o);)o===33&&(i?Z(e,"tag suffix cannot contain exclamation marks"):(n=e.input.slice(t-1,e.position+1),vf.test(n)||Z(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),E2.test(a)&&Z(e,"tag suffix cannot contain flow indicator characters")}a&&!wf.test(a)&&Z(e,"tag name cannot contain such characters: "+a);try{a=decodeURIComponent(a)}catch{Z(e,"tag name is malformed: "+a)}return r?e.tag=a:We.call(e.tagMap,n)?e.tag=e.tagMap[n]+a:n==="!"?e.tag="!"+a:n==="!!"?e.tag="tag:yaml.org,2002:"+a:Z(e,'undeclared tag handle "'+n+'"'),!0}p(Pf,"readTagProperty");function Rf(e){var t,r;if(r=e.input.charCodeAt(e.position),r!==38)return!1;for(e.anchor!==null&&Z(e,"duplication of an anchor property"),r=e.input.charCodeAt(++e.position),t=e.position;r!==0&&!zt(r)&&!er(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&Z(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}p(Rf,"readAnchorProperty");function Nf(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)&&!er(i);)i=e.input.charCodeAt(++e.position);return e.position===t&&Z(e,"name of an alias node must contain at least one character"),r=e.input.slice(t,e.position),We.call(e.anchorMap,r)||Z(e,'unidentified alias "'+r+'"'),e.result=e.anchorMap[r],Ct(e,!0,-1),!0}p(Nf,"readAlias");function hr(e,t,r,i,n){var a,o,s,l=1,c=!1,h=!1,u,f,d,g,m,y;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,a=o=s=Yn===r||_f===r,i&&Ct(e,!0,-1)&&(c=!0,e.lineIndent>t?l=1:e.lineIndent===t?l=0:e.lineIndent<t&&(l=-1)),l===1)for(;Pf(e)||Rf(e);)Ct(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||Yn===r)&&(jn===r||Cf===r?m=t:m=t+1,y=e.position-e.lineStart,l===1?s&&(Ps(e,y)||If(e,y,m))||Df(e,m)?h=!0:(o&&Of(e,m)||Ff(e,m)||$f(e,m)?h=!0:Nf(e)?(h=!0,(e.tag!==null||e.anchor!==null)&&Z(e,"alias node should not have any properties")):Ef(e,m,jn===r)&&(h=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):l===0&&(h=s&&Ps(e,y))),e.tag===null)e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);else if(e.tag==="?"){for(e.result!==null&&e.kind!=="scalar"&&Z(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(We.call(e.typeMap[e.kind||"fallback"],e.tag))g=e.typeMap[e.kind||"fallback"][e.tag];else for(g=null,d=e.typeMap.multi[e.kind||"fallback"],u=0,f=d.length;u<f;u+=1)if(e.tag.slice(0,d[u].tag.length)===d[u].tag){g=d[u];break}g||Z(e,"unknown tag !<"+e.tag+">"),e.result!==null&&g.kind!==e.kind&&Z(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)):Z(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}p(hr,"composeNode");function Wf(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&&(Ct(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&&Z(e,"directive name must not be less than one character in length");o!==0;){for(;Re(o);)o=e.input.charCodeAt(++e.position);if(o===35){do o=e.input.charCodeAt(++e.position);while(o!==0&&!oe(o));break}if(oe(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&&xa(e),We.call(uc,i)?uc[i](e,i,n):Fi(e,'unknown document directive "'+i+'"')}if(Ct(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,Ct(e,!0,-1)):a&&Z(e,"directives end mark is expected"),hr(e,e.lineIndent-1,Yn,!1,!0),Ct(e,!0,-1),e.checkLineBreaks&&A2.test(e.input.slice(t,e.position))&&Fi(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&Yi(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,Ct(e,!0,-1));return}if(e.position<e.length-1)Z(e,"end of the stream or a document separator is expected");else return}p(Wf,"readDocument");function qo(e,t){e=String(e),t=t||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
96
- `),e.charCodeAt(0)===65279&&(e=e.slice(1)));var r=new Af(e,t),i=e.indexOf("\0");for(i!==-1&&(r.position=i,Z(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;)Wf(r);return r.documents}p(qo,"loadDocuments");function qf(e,t,r){t!==null&&typeof t=="object"&&typeof r>"u"&&(r=t,t=null);var i=qo(e,r);if(typeof t!="function")return i;for(var n=0,a=i.length;n<a;n+=1)t(i[n])}p(qf,"loadAll$1");function zf(e,t){var r=qo(e,t);if(r.length!==0){if(r.length===1)return r[0];throw new Xt("expected a single document in the stream, but found more")}}p(zf,"load$1");var F2=qf,$2=zf,D2={loadAll:F2,load:$2},Hf=Object.prototype.toString,jf=Object.prototype.hasOwnProperty,zo=65279,O2=9,$i=10,I2=13,P2=32,R2=33,N2=34,Rs=35,W2=37,q2=38,z2=39,H2=42,Yf=44,j2=45,Un=58,Y2=61,U2=62,G2=63,X2=64,Uf=91,Gf=93,V2=96,Xf=123,K2=124,Vf=125,Rt={};Rt[0]="\\0";Rt[7]="\\a";Rt[8]="\\b";Rt[9]="\\t";Rt[10]="\\n";Rt[11]="\\v";Rt[12]="\\f";Rt[13]="\\r";Rt[27]="\\e";Rt[34]='\\"';Rt[92]="\\\\";Rt[133]="\\N";Rt[160]="\\_";Rt[8232]="\\L";Rt[8233]="\\P";var Z2=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],Q2=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function Kf(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&&jf.call(l.styleAliases,s)&&(s=l.styleAliases[s]),r[o]=s;return r}p(Kf,"compileStyleMap");function Zf(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 Xt("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+Bt.repeat("0",i-t.length)+t}p(Zf,"encodeHex");var J2=1,Di=2;function Qf(e){this.schema=e.schema||bf,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=Bt.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=Kf(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==='"'?Di:J2,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}p(Qf,"State");function Ns(e,t){for(var r=Bt.repeat(" ",t),i=0,n=-1,a="",o,s=e.length;i<s;)n=e.indexOf(`
97
- `,i),n===-1?(o=e.slice(i),i=s):(o=e.slice(i,n+1),i=n+1),o.length&&o!==`
98
- `&&(a+=r),a+=o;return a}p(Ns,"indentString");function Gn(e,t){return`
99
- `+Bt.repeat(" ",e.indent*t)}p(Gn,"generateNextLine");function Jf(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}p(Jf,"testImplicitResolving");function Oi(e){return e===P2||e===O2}p(Oi,"isWhitespace");function Ur(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==zo||65536<=e&&e<=1114111}p(Ur,"isPrintable");function Ws(e){return Ur(e)&&e!==zo&&e!==I2&&e!==$i}p(Ws,"isNsCharOrWhitespace");function qs(e,t,r){var i=Ws(e),n=i&&!Oi(e);return(r?i:i&&e!==Yf&&e!==Uf&&e!==Gf&&e!==Xf&&e!==Vf)&&e!==Rs&&!(t===Un&&!n)||Ws(t)&&!Oi(t)&&e===Rs||t===Un&&n}p(qs,"isPlainSafe");function td(e){return Ur(e)&&e!==zo&&!Oi(e)&&e!==j2&&e!==G2&&e!==Un&&e!==Yf&&e!==Uf&&e!==Gf&&e!==Xf&&e!==Vf&&e!==Rs&&e!==q2&&e!==H2&&e!==R2&&e!==K2&&e!==Y2&&e!==U2&&e!==z2&&e!==N2&&e!==W2&&e!==X2&&e!==V2}p(td,"isPlainSafeFirst");function ed(e){return!Oi(e)&&e!==Un}p(ed,"isPlainSafeLast");function Br(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}p(Br,"codePointAt");function Ho(e){var t=/^\n* /;return t.test(e)}p(Ho,"needIndentIndicator");var rd=1,zs=2,id=3,nd=4,kr=5;function ad(e,t,r,i,n,a,o,s){var l,c=0,h=null,u=!1,f=!1,d=i!==-1,g=-1,m=td(Br(e,0))&&ed(Br(e,e.length-1));if(t||o)for(l=0;l<e.length;c>=65536?l+=2:l++){if(c=Br(e,l),!Ur(c))return kr;m=m&&qs(c,h,s),h=c}else{for(l=0;l<e.length;c>=65536?l+=2:l++){if(c=Br(e,l),c===$i)u=!0,d&&(f=f||l-g-1>i&&e[g+1]!==" ",g=l);else if(!Ur(c))return kr;m=m&&qs(c,h,s),h=c}f=f||d&&l-g-1>i&&e[g+1]!==" "}return!u&&!f?m&&!o&&!n(e)?rd:a===Di?kr:zs:r>9&&Ho(e)?kr:o?a===Di?kr:zs:f?nd:id}p(ad,"chooseScalarStyle");function sd(e,t,r,i,n){e.dump=function(){if(t.length===0)return e.quotingType===Di?'""':"''";if(!e.noCompatMode&&(Z2.indexOf(t)!==-1||Q2.test(t)))return e.quotingType===Di?'"'+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 Jf(e,c)}switch(p(l,"testAmbiguity"),ad(t,s,e.indent,o,l,e.quotingType,e.forceQuotes&&!i,n)){case rd:return t;case zs:return"'"+t.replace(/'/g,"''")+"'";case id:return"|"+Hs(t,e.indent)+js(Ns(t,a));case nd:return">"+Hs(t,e.indent)+js(Ns(od(t,o),a));case kr:return'"'+ld(t)+'"';default:throw new Xt("impossible error: invalid scalar style")}}()}p(sd,"writeScalar");function Hs(e,t){var r=Ho(e)?String(t):"",i=e[e.length-1]===`
100
- `,n=i&&(e[e.length-2]===`
101
- `||e===`
102
- `),a=n?"+":i?"":"-";return r+a+`
103
- `}p(Hs,"blockHeader");function js(e){return e[e.length-1]===`
104
- `?e.slice(0,-1):e}p(js,"dropEndingNewline");function od(e,t){for(var r=/(\n+)([^\n]*)/g,i=function(){var c=e.indexOf(`
105
- `);return c=c!==-1?c:e.length,r.lastIndex=c,Ys(e.slice(0,c),t)}(),n=e[0]===`
106
- `||e[0]===" ",a,o;o=r.exec(e);){var s=o[1],l=o[2];a=l[0]===" ",i+=s+(!n&&!a&&l!==""?`
107
- `:"")+Ys(l,t),n=a}return i}p(od,"foldString");function Ys(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+=`
108
- `+e.slice(n,a),n=a+1),o=s;return l+=`
109
- `,e.length-n>t&&o>n?l+=e.slice(n,o)+`
110
- `+e.slice(o+1):l+=e.slice(n),l.slice(1)}p(Ys,"foldLine");function ld(e){for(var t="",r=0,i,n=0;n<e.length;r>=65536?n+=2:n++)r=Br(e,n),i=Rt[r],!i&&Ur(r)?(t+=e[n],r>=65536&&(t+=e[n+1])):t+=i||Zf(r);return t}p(ld,"escapeString");function cd(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+"]"}p(cd,"writeFlowSequence");function Us(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+=Gn(e,t)),e.dump&&$i===e.dump.charCodeAt(0)?n+="-":n+="- ",n+=e.dump);e.tag=a,e.dump=n||"[]"}p(Us,"writeBlockSequence");function hd(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+"}"}p(hd,"writeFlowMapping");function ud(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 Xt("sortKeys must be a boolean or a function");for(s=0,l=o.length;s<l;s+=1)f="",(!i||n!=="")&&(f+=Gn(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&&$i===e.dump.charCodeAt(0)?f+="?":f+="? "),f+=e.dump,u&&(f+=Gn(e,t)),me(e,t+1,h,!0,u)&&(e.dump&&$i===e.dump.charCodeAt(0)?f+=":":f+=": ",f+=e.dump,n+=f));e.tag=a,e.dump=n||"{}"}p(ud,"writeBlockMapping");function Gs(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,Hf.call(s.represent)==="[object Function]")i=s.represent(t,l);else if(jf.call(s.represent,l))i=s.represent[l](t,l);else throw new Xt("!<"+s.tag+'> tag resolver accepts not "'+l+'" style');e.dump=i}return!0}return!1}p(Gs,"detectType");function me(e,t,r,i,n,a,o){e.tag=null,e.dump=r,Gs(e,r,!1)||Gs(e,r,!0);var s=Hf.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?(ud(e,t,e.dump,n),f&&(e.dump="&ref_"+u+e.dump)):(hd(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?Us(e,t-1,e.dump,n):Us(e,t,e.dump,n),f&&(e.dump="&ref_"+u+e.dump)):(cd(e,t,e.dump),f&&(e.dump="&ref_"+u+" "+e.dump));else if(s==="[object String]")e.tag!=="?"&&sd(e,e.dump,t,a,l);else{if(s==="[object Undefined]")return!1;if(e.skipInvalid)return!1;throw new Xt("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}p(me,"writeNode");function fd(e,t){var r=[],i=[],n,a;for(Xn(e,r,i),n=0,a=i.length;n<a;n+=1)t.duplicates.push(r[i[n]]);t.usedDuplicates=new Array(a)}p(fd,"getDuplicateReferences");function Xn(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)Xn(e[n],t,r);else for(i=Object.keys(e),n=0,a=i.length;n<a;n+=1)Xn(e[i[n]],t,r)}p(Xn,"inspectNode");function tC(e,t){t=t||{};var r=new Qf(t);r.noRefs||fd(e,r);var i=e;return r.replacer&&(i=r.replacer.call({"":i},"",i)),me(r,0,i,!0,!0)?r.dump+`
111
- `:""}p(tC,"dump$1");function eC(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.")}}p(eC,"renamed");var dd=ef,pd=D2.load;/*! Bundled license information:
112
-
113
- js-yaml/dist/js-yaml.mjs:
114
- (*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT *)
115
- */var Ot={aggregation:17.25,extension:17.25,composition:17.25,dependency:6,lollipop:13.5,arrow_point:4},fc={arrow_point:9,arrow_cross:12.5,arrow_circle:12.5};function Ci(e,t){if(e===void 0||t===void 0)return{angle:0,deltaX:0,deltaY:0};e=bt(e),t=bt(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}}p(Ci,"calculateDeltaAndAngle");var bt=p(e=>Array.isArray(e)?{x:e[0],y:e[1]}:e,"pointTransformer"),gd=p(e=>({x:p(function(t,r,i){let n=0;const a=bt(i[0]).x<bt(i[i.length-1]).x?"left":"right";if(r===0&&Object.hasOwn(Ot,e.arrowTypeStart)){const{angle:d,deltaX:g}=Ci(i[0],i[1]);n=Ot[e.arrowTypeStart]*Math.cos(d)*(g>=0?1:-1)}else if(r===i.length-1&&Object.hasOwn(Ot,e.arrowTypeEnd)){const{angle:d,deltaX:g}=Ci(i[i.length-1],i[i.length-2]);n=Ot[e.arrowTypeEnd]*Math.cos(d)*(g>=0?1:-1)}const o=Math.abs(bt(t).x-bt(i[i.length-1]).x),s=Math.abs(bt(t).y-bt(i[i.length-1]).y),l=Math.abs(bt(t).x-bt(i[0]).x),c=Math.abs(bt(t).y-bt(i[0]).y),h=Ot[e.arrowTypeStart],u=Ot[e.arrowTypeEnd],f=1;if(o<u&&o>0&&s<u){let d=u+f-o;d*=a==="right"?-1:1,n-=d}if(l<h&&l>0&&c<h){let d=h+f-l;d*=a==="right"?-1:1,n+=d}return bt(t).x+n},"x"),y:p(function(t,r,i){let n=0;const a=bt(i[0]).y<bt(i[i.length-1]).y?"down":"up";if(r===0&&Object.hasOwn(Ot,e.arrowTypeStart)){const{angle:d,deltaY:g}=Ci(i[0],i[1]);n=Ot[e.arrowTypeStart]*Math.abs(Math.sin(d))*(g>=0?1:-1)}else if(r===i.length-1&&Object.hasOwn(Ot,e.arrowTypeEnd)){const{angle:d,deltaY:g}=Ci(i[i.length-1],i[i.length-2]);n=Ot[e.arrowTypeEnd]*Math.abs(Math.sin(d))*(g>=0?1:-1)}const o=Math.abs(bt(t).y-bt(i[i.length-1]).y),s=Math.abs(bt(t).x-bt(i[i.length-1]).x),l=Math.abs(bt(t).y-bt(i[0]).y),c=Math.abs(bt(t).x-bt(i[0]).x),h=Ot[e.arrowTypeStart],u=Ot[e.arrowTypeEnd],f=1;if(o<u&&o>0&&s<u){let d=u+f-o;d*=a==="up"?-1:1,n-=d}if(l<h&&l>0&&c<h){let d=h+f-l;d*=a==="up"?-1:1,n+=d}return bt(t).y+n},"y")}),"getLineFunctionsWithOffset"),Ca=p(({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"),rC=p(e=>{const{handDrawnSeed:t}=ft();return{fill:e,hachureAngle:120,hachureGap:4,fillWeight:2,roughness:.7,stroke:e,seed:t}},"solidStateFill"),Qr=p(e=>{const t=iC([...e.cssCompiledStyles||[],...e.cssStyles||[],...e.labelStyle||[]]);return{stylesMap:t,stylesArray:[...t]}},"compileStyles"),iC=p(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"),jo=p(e=>e==="color"||e==="font-size"||e==="font-family"||e==="font-weight"||e==="font-style"||e==="text-decoration"||e==="text-align"||e==="text-transform"||e==="line-height"||e==="letter-spacing"||e==="word-spacing"||e==="text-shadow"||e==="text-overflow"||e==="white-space"||e==="word-wrap"||e==="word-break"||e==="overflow-wrap"||e==="hyphens","isLabelStyle"),Y=p(e=>{const{stylesArray:t}=Qr(e),r=[],i=[],n=[],a=[];return t.forEach(o=>{const s=o[0];jo(s)?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"),G=p((e,t)=>{var l;const{themeVariables:r,handDrawnSeed:i}=ft(),{nodeBorder:n,mainBkg:a}=r,{stylesMap:o}=Qr(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],strokeLineDash:nC(o.get("stroke-dasharray"))},t)},"userNodeOverrides"),nC=p(e=>{if(!e)return[0,0];const t=e.trim().split(/\s+/).map(Number);if(t.length===1){const n=isNaN(t[0])?0:t[0];return[n,n]}const r=isNaN(t[0])?0:t[0],i=isNaN(t[1])?0:t[1];return[r,i]},"getStrokeDashArray"),fi={},Tt={},dc;function aC(){return dc||(dc=1,Object.defineProperty(Tt,"__esModule",{value:!0}),Tt.BLANK_URL=Tt.relativeFirstCharacters=Tt.whitespaceEscapeCharsRegex=Tt.urlSchemeRegex=Tt.ctrlCharactersRegex=Tt.htmlCtrlEntityRegex=Tt.htmlEntitiesRegex=Tt.invalidProtocolRegex=void 0,Tt.invalidProtocolRegex=/^([^\w]*)(javascript|data|vbscript)/im,Tt.htmlEntitiesRegex=/&#(\w+)(^\w|;)?/g,Tt.htmlCtrlEntityRegex=/&(newline|tab);/gi,Tt.ctrlCharactersRegex=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,Tt.urlSchemeRegex=/^.+(:|&colon;)/gim,Tt.whitespaceEscapeCharsRegex=/(\\|%5[cC])((%(6[eE]|72|74))|[nrt])/g,Tt.relativeFirstCharacters=[".","/"],Tt.BLANK_URL="about:blank"),Tt}var pc;function sC(){if(pc)return fi;pc=1,Object.defineProperty(fi,"__esModule",{value:!0}),fi.sanitizeUrl=void 0;var e=aC();function t(o){return e.relativeFirstCharacters.indexOf(o[0])>-1}function r(o){var s=o.replace(e.ctrlCharactersRegex,"");return s.replace(e.htmlEntitiesRegex,function(l,c){return String.fromCharCode(c)})}function i(o){return URL.canParse(o)}function n(o){try{return decodeURIComponent(o)}catch{return o}}function a(o){if(!o)return e.BLANK_URL;var s,l=n(o.trim());do l=r(l).replace(e.htmlCtrlEntityRegex,"").replace(e.ctrlCharactersRegex,"").replace(e.whitespaceEscapeCharsRegex,"").trim(),l=n(l),s=l.match(e.ctrlCharactersRegex)||l.match(e.htmlEntitiesRegex)||l.match(e.htmlCtrlEntityRegex)||l.match(e.whitespaceEscapeCharsRegex);while(s&&s.length>0);var c=l;if(!c)return e.BLANK_URL;if(t(c))return c;var h=c.trimStart(),u=h.match(e.urlSchemeRegex);if(!u)return c;var f=u[0].toLowerCase().trim();if(e.invalidProtocolRegex.test(f))return e.BLANK_URL;var d=h.replace(/\\/g,"/");if(f==="mailto:"||f.includes("://"))return d;if(f==="http:"||f==="https:"){if(!i(d))return e.BLANK_URL;var g=new URL(d);return g.protocol=g.protocol.toLowerCase(),g.hostname=g.hostname.toLowerCase(),g.toString()}return d}return fi.sanitizeUrl=a,fi}var md=sC(),yd=typeof global=="object"&&global&&global.Object===Object&&global,oC=typeof self=="object"&&self&&self.Object===Object&&self,be=yd||oC||Function("return this")(),Ii=be.Symbol,xd=Object.prototype,lC=xd.hasOwnProperty,cC=xd.toString,di=Ii?Ii.toStringTag:void 0;function hC(e){var t=lC.call(e,di),r=e[di];try{e[di]=void 0;var i=!0}catch{}var n=cC.call(e);return i&&(t?e[di]=r:delete e[di]),n}var uC=Object.prototype,fC=uC.toString;function dC(e){return fC.call(e)}var pC="[object Null]",gC="[object Undefined]",gc=Ii?Ii.toStringTag:void 0;function pr(e){return e==null?e===void 0?gC:pC:gc&&gc in Object(e)?hC(e):dC(e)}function He(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var mC="[object AsyncFunction]",yC="[object Function]",xC="[object GeneratorFunction]",bC="[object Proxy]";function Yo(e){if(!He(e))return!1;var t=pr(e);return t==yC||t==xC||t==mC||t==bC}var ts=be["__core-js_shared__"],mc=function(){var e=/[^.]+$/.exec(ts&&ts.keys&&ts.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function CC(e){return!!mc&&mc in e}var _C=Function.prototype,vC=_C.toString;function gr(e){if(e!=null){try{return vC.call(e)}catch{}try{return e+""}catch{}}return""}var wC=/[\\^$.*+?()[\]{}|]/g,SC=/^\[object .+?Constructor\]$/,kC=Function.prototype,TC=Object.prototype,BC=kC.toString,LC=TC.hasOwnProperty,MC=RegExp("^"+BC.call(LC).replace(wC,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function AC(e){if(!He(e)||CC(e))return!1;var t=Yo(e)?MC:SC;return t.test(gr(e))}function EC(e,t){return e==null?void 0:e[t]}function mr(e,t){var r=EC(e,t);return AC(r)?r:void 0}var Pi=mr(Object,"create");function FC(){this.__data__=Pi?Pi(null):{},this.size=0}function $C(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var DC="__lodash_hash_undefined__",OC=Object.prototype,IC=OC.hasOwnProperty;function PC(e){var t=this.__data__;if(Pi){var r=t[e];return r===DC?void 0:r}return IC.call(t,e)?t[e]:void 0}var RC=Object.prototype,NC=RC.hasOwnProperty;function WC(e){var t=this.__data__;return Pi?t[e]!==void 0:NC.call(t,e)}var qC="__lodash_hash_undefined__";function zC(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Pi&&t===void 0?qC:t,this}function ur(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])}}ur.prototype.clear=FC;ur.prototype.delete=$C;ur.prototype.get=PC;ur.prototype.has=WC;ur.prototype.set=zC;function HC(){this.__data__=[],this.size=0}function Ui(e,t){return e===t||e!==e&&t!==t}function _a(e,t){for(var r=e.length;r--;)if(Ui(e[r][0],t))return r;return-1}var jC=Array.prototype,YC=jC.splice;function UC(e){var t=this.__data__,r=_a(t,e);if(r<0)return!1;var i=t.length-1;return r==i?t.pop():YC.call(t,r,1),--this.size,!0}function GC(e){var t=this.__data__,r=_a(t,e);return r<0?void 0:t[r][1]}function XC(e){return _a(this.__data__,e)>-1}function VC(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 Fe(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])}}Fe.prototype.clear=HC;Fe.prototype.delete=UC;Fe.prototype.get=GC;Fe.prototype.has=XC;Fe.prototype.set=VC;var Ri=mr(be,"Map");function KC(){this.size=0,this.__data__={hash:new ur,map:new(Ri||Fe),string:new ur}}function ZC(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function va(e,t){var r=e.__data__;return ZC(t)?r[typeof t=="string"?"string":"hash"]:r.map}function QC(e){var t=va(this,e).delete(e);return this.size-=t?1:0,t}function JC(e){return va(this,e).get(e)}function t_(e){return va(this,e).has(e)}function e_(e,t){var r=va(this,e),i=r.size;return r.set(e,t),this.size+=r.size==i?0:1,this}function $e(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])}}$e.prototype.clear=KC;$e.prototype.delete=QC;$e.prototype.get=JC;$e.prototype.has=t_;$e.prototype.set=e_;var r_="Expected a function";function Jr(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(r_);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(Jr.Cache||$e),r}Jr.Cache=$e;function i_(){this.__data__=new Fe,this.size=0}function n_(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function a_(e){return this.__data__.get(e)}function s_(e){return this.__data__.has(e)}var o_=200;function l_(e,t){var r=this.__data__;if(r instanceof Fe){var i=r.__data__;if(!Ri||i.length<o_-1)return i.push([e,t]),this.size=++r.size,this;r=this.__data__=new $e(i)}return r.set(e,t),this.size=r.size,this}function yr(e){var t=this.__data__=new Fe(e);this.size=t.size}yr.prototype.clear=i_;yr.prototype.delete=n_;yr.prototype.get=a_;yr.prototype.has=s_;yr.prototype.set=l_;var Vn=function(){try{var e=mr(Object,"defineProperty");return e({},"",{}),e}catch{}}();function Uo(e,t,r){t=="__proto__"&&Vn?Vn(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function Xs(e,t,r){(r!==void 0&&!Ui(e[t],r)||r===void 0&&!(t in e))&&Uo(e,t,r)}function c_(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 bd=c_(),Cd=typeof exports=="object"&&exports&&!exports.nodeType&&exports,yc=Cd&&typeof module=="object"&&module&&!module.nodeType&&module,h_=yc&&yc.exports===Cd,xc=h_?be.Buffer:void 0,bc=xc?xc.allocUnsafe:void 0;function _d(e,t){if(t)return e.slice();var r=e.length,i=bc?bc(r):new e.constructor(r);return e.copy(i),i}var Vs=be.Uint8Array;function vd(e){var t=new e.constructor(e.byteLength);return new Vs(t).set(new Vs(e)),t}function wd(e,t){var r=t?vd(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function Sd(e,t){var r=-1,i=e.length;for(t||(t=Array(i));++r<i;)t[r]=e[r];return t}var Cc=Object.create,u_=function(){function e(){}return function(t){if(!He(t))return{};if(Cc)return Cc(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();function kd(e,t){return function(r){return e(t(r))}}var Td=kd(Object.getPrototypeOf,Object),f_=Object.prototype;function wa(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||f_;return e===r}function Bd(e){return typeof e.constructor=="function"&&!wa(e)?u_(Td(e)):{}}function ti(e){return e!=null&&typeof e=="object"}var d_="[object Arguments]";function _c(e){return ti(e)&&pr(e)==d_}var Ld=Object.prototype,p_=Ld.hasOwnProperty,g_=Ld.propertyIsEnumerable,Ni=_c(function(){return arguments}())?_c:function(e){return ti(e)&&p_.call(e,"callee")&&!g_.call(e,"callee")},Wi=Array.isArray,m_=9007199254740991;function Go(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=m_}function Gi(e){return e!=null&&Go(e.length)&&!Yo(e)}function y_(e){return ti(e)&&Gi(e)}function x_(){return!1}var Md=typeof exports=="object"&&exports&&!exports.nodeType&&exports,vc=Md&&typeof module=="object"&&module&&!module.nodeType&&module,b_=vc&&vc.exports===Md,wc=b_?be.Buffer:void 0,C_=wc?wc.isBuffer:void 0,Sa=C_||x_,__="[object Object]",v_=Function.prototype,w_=Object.prototype,Ad=v_.toString,S_=w_.hasOwnProperty,k_=Ad.call(Object);function T_(e){if(!ti(e)||pr(e)!=__)return!1;var t=Td(e);if(t===null)return!0;var r=S_.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&Ad.call(r)==k_}var B_="[object Arguments]",L_="[object Array]",M_="[object Boolean]",A_="[object Date]",E_="[object Error]",F_="[object Function]",$_="[object Map]",D_="[object Number]",O_="[object Object]",I_="[object RegExp]",P_="[object Set]",R_="[object String]",N_="[object WeakMap]",W_="[object ArrayBuffer]",q_="[object DataView]",z_="[object Float32Array]",H_="[object Float64Array]",j_="[object Int8Array]",Y_="[object Int16Array]",U_="[object Int32Array]",G_="[object Uint8Array]",X_="[object Uint8ClampedArray]",V_="[object Uint16Array]",K_="[object Uint32Array]",mt={};mt[z_]=mt[H_]=mt[j_]=mt[Y_]=mt[U_]=mt[G_]=mt[X_]=mt[V_]=mt[K_]=!0;mt[B_]=mt[L_]=mt[W_]=mt[M_]=mt[q_]=mt[A_]=mt[E_]=mt[F_]=mt[$_]=mt[D_]=mt[O_]=mt[I_]=mt[P_]=mt[R_]=mt[N_]=!1;function Z_(e){return ti(e)&&Go(e.length)&&!!mt[pr(e)]}function Ed(e){return function(t){return e(t)}}var Fd=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Li=Fd&&typeof module=="object"&&module&&!module.nodeType&&module,Q_=Li&&Li.exports===Fd,es=Q_&&yd.process,Ks=function(){try{var e=Li&&Li.require&&Li.require("util").types;return e||es&&es.binding&&es.binding("util")}catch{}}(),Sc=Ks&&Ks.isTypedArray,ka=Sc?Ed(Sc):Z_;function Zs(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var J_=Object.prototype,tv=J_.hasOwnProperty;function $d(e,t,r){var i=e[t];(!(tv.call(e,t)&&Ui(i,r))||r===void 0&&!(t in e))&&Uo(e,t,r)}function Dd(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?Uo(r,s,l):$d(r,s,l)}return r}function ev(e,t){for(var r=-1,i=Array(e);++r<e;)i[r]=t(r);return i}var rv=9007199254740991,iv=/^(?:0|[1-9]\d*)$/;function Xo(e,t){var r=typeof e;return t=t??rv,!!t&&(r=="number"||r!="symbol"&&iv.test(e))&&e>-1&&e%1==0&&e<t}var nv=Object.prototype,av=nv.hasOwnProperty;function Od(e,t){var r=Wi(e),i=!r&&Ni(e),n=!r&&!i&&Sa(e),a=!r&&!i&&!n&&ka(e),o=r||i||n||a,s=o?ev(e.length,String):[],l=s.length;for(var c in e)(t||av.call(e,c))&&!(o&&(c=="length"||n&&(c=="offset"||c=="parent")||a&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||Xo(c,l)))&&s.push(c);return s}function sv(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var ov=Object.prototype,lv=ov.hasOwnProperty;function cv(e){if(!He(e))return sv(e);var t=wa(e),r=[];for(var i in e)i=="constructor"&&(t||!lv.call(e,i))||r.push(i);return r}function Id(e){return Gi(e)?Od(e,!0):cv(e)}function hv(e){return Dd(e,Id(e))}function uv(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=Wi(l),d=!f&&Sa(l),g=!f&&!d&&ka(l);h=l,f||d||g?Wi(s)?h=s:y_(s)?h=Sd(s):d?(u=!1,h=_d(l,!0)):g?(u=!1,h=wd(l,!0)):h=[]:T_(l)||Ni(l)?(h=s,Ni(s)?h=hv(s):(!He(s)||Yo(s))&&(h=Bd(l))):u=!1}u&&(o.set(l,h),n(h,l,i,a,o),o.delete(l)),Xs(e,r,h)}function Pd(e,t,r,i,n){e!==t&&bd(t,function(a,o){if(n||(n=new yr),He(a))uv(e,t,o,r,Pd,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)}},Id)}function Vo(e){return e}function fv(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 kc=Math.max;function dv(e,t,r){return t=kc(t===void 0?e.length-1:t,0),function(){for(var i=arguments,n=-1,a=kc(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),fv(e,this,s)}}function pv(e){return function(){return e}}var gv=Vn?function(e,t){return Vn(e,"toString",{configurable:!0,enumerable:!1,value:pv(t),writable:!0})}:Vo,mv=800,yv=16,xv=Date.now;function bv(e){var t=0,r=0;return function(){var i=xv(),n=yv-(i-r);if(r=i,n>0){if(++t>=mv)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var Cv=bv(gv);function _v(e,t){return Cv(dv(e,t,Vo),e+"")}function vv(e,t,r){if(!He(r))return!1;var i=typeof t;return(i=="number"?Gi(r)&&Xo(t,r.length):i=="string"&&t in r)?Ui(r[t],e):!1}function wv(e){return _v(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&&vv(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 Sv=wv(function(e,t,r){Pd(e,t,r)}),Rd="​",kv={curveBasis:Bi,curveBasisClosed:H1,curveBasisOpen:j1,curveBumpX:cu,curveBumpY:hu,curveBundle:Y1,curveCardinalClosed:U1,curveCardinalOpen:G1,curveCardinal:pu,curveCatmullRomClosed:X1,curveCatmullRomOpen:V1,curveCatmullRom:mu,curveLinear:Nn,curveLinearClosed:K1,curveMonotoneX:vu,curveMonotoneY:wu,curveNatural:ku,curveStep:Tu,curveStepAfter:Lu,curveStepBefore:Bu},Tv=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,Bv=p(function(e,t){const r=Nd(e,/(?:init\b)|(?:initialize\b)/);let i={};if(Array.isArray(r)){const o=r.map(s=>s.args);Ln(o),i=St(i,[...o])}else i=r.args;if(!i)return;let n=yo(e,t);const a="config";return i[a]!==void 0&&(n==="flowchart-v2"&&(n="flowchart"),i[n]=i[a],delete i[a]),i},"detectInit"),Nd=p(function(e,t=null){var r,i;try{const n=new RegExp(`[%]{2}(?![{]${Tv.source})(?=[}][%]{2}).*
116
- `,"ig");e=e.trim().replace(n,"").replace(/'/gm,'"'),$.debug(`Detecting diagram directive${t!==null?" type:"+t:""} based on the text:${e}`);let a;const o=[];for(;(a=ki.exec(e))!==null;)if(a.index===ki.lastIndex&&ki.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 $.error(`ERROR: ${n.message} - Unable to parse directive type: '${t}' based on the text: '${e}'`),{type:void 0,args:null}}},"detectDirective"),Lv=p(function(e){return e.replace(ki,"")},"removeDirectives"),Mv=p(function(e,t){for(const[r,i]of t.entries())if(i.match(e))return r;return-1},"isSubstringInArray");function Ko(e,t){if(!e)return t;const r=`curve${e.charAt(0).toUpperCase()+e.slice(1)}`;return kv[r]??t}p(Ko,"interpolateToCurve");function Wd(e,t){const r=e.trim();if(r)return t.securityLevel!=="loose"?md.sanitizeUrl(r):r}p(Wd,"formatUrl");var Av=p((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){$.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))}p(Zo,"distance");function qd(e){let t,r=0;e.forEach(n=>{r+=Zo(n,t),t=n});const i=r/2;return Qo(e,i)}p(qd,"traverseEdge");function zd(e){return e.length===1?e[0]:qd(e)}p(zd,"calcLabelPosition");var Tc=p((e,t=2)=>{const r=Math.pow(10,t);return Math.round(e*r)/r},"roundNumber"),Qo=p((e,t)=>{let r,i=t;for(const n of e){if(r){const a=Zo(n,r);if(a===0)return 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:Tc((1-o)*r.x+o*n.x,5),y:Tc((1-o)*r.y+o*n.y,5)}}}r=n}throw new Error("Could not find a suitable point for the given distance")},"calculatePoint"),Ev=p((e,t,r)=>{$.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 Hd(e,t,r){const i=structuredClone(r);$.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}p(Hd,"calcTerminalLabelPosition");function Jo(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}}p(Jo,"getStylesFromArray");var Bc=0,jd=p(()=>(Bc++,"id-"+Math.random().toString(36).substr(2,12)+"-"+Bc),"generateId");function Yd(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}p(Yd,"makeRandomHex");var Ud=p(e=>Yd(e.length),"random"),Fv=p(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"),$v=p(function(e,t){const r=t.text.replace(dr.lineBreakRegex," "),[,i]=Xi(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"),Gd=Jr((e,t,r)=>{if(!e||(r=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"<br/>"},r),dr.lineBreakRegex.test(e)))return e;const i=e.split(" ").filter(Boolean),n=[];let a="";return i.forEach((o,s)=>{const l=ye(`${o} `,r),c=ye(a,r);if(l>t){const{hyphenatedStrings:f,remainingWord:d}=Dv(o,t,"-",r);n.push(a,...f),a=d}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}`),Dv=Jr((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(ye(c,i)>=t){const u=l+1,f=n.length===u,d=`${c}${r}`;a.push(f?c:d),o=""}else o=c}),{hyphenatedStrings:a,remainingWord:o}},(e,t,r="-",i)=>`${e}${t}${r}${i.fontSize}${i.fontWeight}${i.fontFamily}`);function tl(e,t){return el(e,t).height}p(tl,"calculateTextHeight");function ye(e,t){return el(e,t).width}p(ye,"calculateTextWidth");var el=Jr((e,t)=>{const{fontSize:r=12,fontFamily:i="Arial",fontWeight:n=400}=t;if(!e)return{width:0,height:0};const[,a]=Xi(r),o=["sans-serif",i],s=e.split(dr.lineBreakRegex),l=[],c=ht("body");if(!c.remove)return{width:0,height:0,lineHeight:0};const h=c.append("svg");for(const f of o){let d=0;const g={width:0,height:0,lineHeight:0};for(const m of s){const y=Fv();y.text=m||Rd;const x=$v(h,y).style("font-size",a).style("font-weight",n).style("font-family",f),b=(x._groups||x)[0][0].getBBox();if(b.width===0&&b.height===0)throw new Error("svg element not in render tree");g.width=Math.round(Math.max(g.width,b.width)),d=Math.round(b.height),g.height+=d,g.lineHeight=Math.round(Math.max(g.lineHeight,d))}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}`),Nr,Ov=(Nr=class{constructor(t=!1,r){this.count=0,this.count=r?r.length:0,this.next=t?()=>this.count++:()=>Date.now()}},p(Nr,"InitIDGenerator"),Nr),ln,Iv=p(function(e){return ln=ln||document.createElement("div"),e=escape(e).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),ln.innerHTML=e,unescape(ln.textContent)},"entityDecode");function rl(e){return"str"in e}p(rl,"isDetailedError");var Pv=p((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"),Xi=p(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 Ta(e,t){return Sv({},e,t)}p(Ta,"cleanAndMerge");var ee={assignWithDepth:St,wrapLabel:Gd,calculateTextHeight:tl,calculateTextWidth:ye,calculateTextDimensions:el,cleanAndMerge:Ta,detectInit:Bv,detectDirective:Nd,isSubstringInArray:Mv,interpolateToCurve:Ko,calcLabelPosition:zd,calcCardinalityPosition:Ev,calcTerminalLabelPosition:Hd,formatUrl:Wd,getStylesFromArray:Jo,generateId:jd,random:Ud,runFunc:Av,entityDecode:Iv,insertTitle:Pv,isLabelCoordinateInPath:Xd,parseFontSize:Xi,InitIDGenerator:Ov},Rv=p(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"),je=p(function(e){return e.replace(/fl°°/g,"&#").replace(/fl°/g,"&").replace(/¶ß/g,";")},"decodeEntities"),Nv=p((e,t,{counter:r=0,prefix:i,suffix:n},a)=>a||`${i?`${i}_`:""}${e}_${t}_${r}${n?`_${n}`:""}`,"getEdgeId");function Pt(e){return e??null}p(Pt,"handleUndefinedAttr");function Xd(e,t){const r=Math.round(e.x),i=Math.round(e.y),n=t.replace(/(\d+\.\d+)/g,a=>Math.round(parseFloat(a)).toString());return n.includes(r.toString())||n.includes(i.toString())}p(Xd,"isLabelCoordinateInPath");const Wv=Object.freeze({left:0,top:0,width:16,height:16}),Kn=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),Vd=Object.freeze({...Wv,...Kn}),qv=Object.freeze({...Vd,body:"",hidden:!1}),zv=Object.freeze({width:null,height:null}),Hv=Object.freeze({...zv,...Kn}),jv=(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 rs(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 rs(s)?s:null}if(r&&i===""){const s={provider:i,prefix:"",name:a};return rs(s,r)?s:null}return null},rs=(e,t)=>e?!!((t&&e.prefix===""||e.prefix)&&e.name):!1;function Yv(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 Lc(e,t){const r=Yv(e,t);for(const i in qv)i in Kn?i in e&&!(i in r)&&(r[i]=Kn[i]):i in t?r[i]=t[i]:i in e&&(r[i]=e[i]);return r}function Uv(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.forEach(a),n}function Mc(e,t,r){const i=e.icons,n=e.aliases||Object.create(null);let a={};function o(s){a=Lc(i[s]||n[s],a)}return o(t),r.forEach(o),Lc(e,a)}function Gv(e,t){if(e.icons[t])return Mc(e,t,[]);const r=Uv(e,[t])[t];return r?Mc(e,t,r):null}const Xv=/(-?[0-9.]*[0-9]+[0-9.]*)/g,Vv=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function Ac(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(Xv);if(i===null||!i.length)return e;const n=[];let a=i.shift(),o=Vv.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 Kv(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 Zv(e,t){return e?"<defs>"+e+"</defs>"+t:t}function Qv(e,t,r){const i=Kv(e);return Zv(i.defs,t+i.content+r)}const Jv=e=>e==="unset"||e==="undefined"||e==="none";function tw(e,t){const r={...Vd,...e},i={...Hv,...t},n={left:r.left,top:r.top,width:r.width,height:r.height};let a=r.body;[r,i].forEach(m=>{const y=[],x=m.hFlip,b=m.vFlip;let _=m.rotate;x?b?_+=2:(y.push("translate("+(n.width+n.left).toString()+" "+(0-n.top).toString()+")"),y.push("scale(-1 1)"),n.top=n.left=0):b&&(y.push("translate("+(0-n.left).toString()+" "+(n.height+n.top).toString()+")"),y.push("scale(1 -1)"),n.top=n.left=0);let S;switch(_<0&&(_-=Math.floor(_/4)*4),_=_%4,_){case 1:S=n.height/2+n.top,y.unshift("rotate(90 "+S.toString()+" "+S.toString()+")");break;case 2:y.unshift("rotate(180 "+(n.width/2+n.left).toString()+" "+(n.height/2+n.top).toString()+")");break;case 3:S=n.width/2+n.left,y.unshift("rotate(-90 "+S.toString()+" "+S.toString()+")");break}_%2===1&&(n.left!==n.top&&(S=n.left,n.left=n.top,n.top=S),n.width!==n.height&&(S=n.width,n.width=n.height,n.height=S)),y.length&&(a=Qv(a,'<g transform="'+y.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=Ac(u,l/c)):(h=o==="auto"?l:o,u=s===null?Ac(h,c/l):s==="auto"?c:s);const f={},d=(m,y)=>{Jv(y)||(f[m]=y.toString())};d("width",h),d("height",u);const g=[n.left,n.top,l,c];return f.viewBox=g.join(" "),{attributes:f,viewBox:g,body:a}}const ew=/\sid="(\S+)"/g,rw="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let iw=0;function nw(e,t=rw){const r=[];let i;for(;i=ew.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+(iw++).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 aw(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>"}function Kd(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(`
117
- [ ]{`+Math.min.apply(Math,n)+"}","g");i=i.map(function(s){return s.replace(a,`
118
- `)})}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(`
119
- `)&&(u=String(s).split(`
120
- `).map(function(f,d){return d===0?f:""+h+f}).join(`
121
- `)),o+=u+i[l+1]}),o}var Zd={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},Qs=new Map,Qd=new Map,Jd=p(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($.debug("Registering icon pack:",t.name),"loader"in t)Qd.set(t.name,t.loader);else if("icons"in t)Qs.set(t.name,t.icons);else throw $.error("Invalid icon loader:",t),new Error('Invalid icon loader. Must have either "icons" or "loader" property.')}},"registerIconPacks"),tp=p(async(e,t)=>{const r=jv(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=Qs.get(i);if(!n){const o=Qd.get(i);if(!o)throw new Error(`Icon set not found: ${r.prefix}`);try{n={...await o(),prefix:i},Qs.set(i,n)}catch(s){throw $.error(s),new Error(`Failed to load icon set: ${r.prefix}`)}}const a=Gv(n,r.name);if(!a)throw new Error(`Icon not found: ${e}`);return a},"getRegisteredIconData"),sw=p(async e=>{try{return await tp(e),!0}catch{return!1}},"isIconAvailable"),ei=p(async(e,t,r)=>{let i;try{i=await tp(e,t==null?void 0:t.fallbackPrefix)}catch(o){$.error(o),i=Zd}const n=tw(i,t),a=aw(nw(n.body),{...n.attributes,...r});return Zt(a,Ft())},"getIconSVG");function ep(e,{markdownAutoWrap:t}){const i=e.replace(/<br\/>/g,`
122
- `).replace(/\n{2,}/g,`
123
- `),n=Kd(i);return t===!1?n.replace(/ /g,"&nbsp;"):n}p(ep,"preprocessMarkdown");function rp(e,t={}){const r=ep(e,t),i=go.k.lexer(r),n=[[]];let a=0;function o(s,l="normal"){s.type==="text"?s.text.split(`
124
- `).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 p(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[a].push({content:s.raw,type:"normal"})}),n}p(rp,"markdownToLines");function ip(e,{markdownAutoWrap:t}={}){const r=go.k.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:($.warn(`Unsupported markdown: ${n.type}`),n.raw)}return p(i,"output"),r.map(i).join("")}p(ip,"markdownToHTML");function np(e){return Intl.Segmenter?[...new Intl.Segmenter().segment(e)].map(t=>t.segment):[...e]}p(np,"splitTextToChars");function ap(e,t){const r=np(t.content);return il(e,[],r,t.type)}p(ap,"splitWordToFitWidth");function il(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}])?il(e,o,a,i):(t.length===0&&n&&(t.push(n),r.shift()),[{content:t.join(""),type:i},{content:r.join(""),type:i}])}p(il,"splitWordToFitWidthRecursion");function sp(e,t){if(e.some(({content:r})=>r.includes(`
125
- `)))throw new Error("splitLineToFitWidth does not support newlines in the line");return Zn(e,t)}p(sp,"splitLineToFitWidth");function Zn(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 Zn(e,t,r,o);if(i.length>0)r.push(i),e.unshift(a);else if(a.content){const[s,l]=ap(t,a);r.push([s]),l.content&&e.unshift(l)}return Zn(e,t,r)}p(Zn,"splitLineToFitWidthRecursion");function Js(e,t){t&&e.attr("style",t)}p(Js,"applyStyle");async function op(e,t,r,i,n=!1,a=Ft()){const o=e.append("foreignObject");o.attr("width",`${10*r}px`),o.attr("height",`${10*r}px`);const s=o.append("xhtml:div"),l=lr(t.label)?await ca(t.label.replace(dr.lineBreakRegex,`
126
- `),a):Zt(t.label,a),c=t.isNode?"nodeLabel":"edgeLabel",h=s.append("span");h.html(l),Js(h,t.labelStyle),h.attr("class",`${c} ${i}`),Js(s,t.labelStyle),s.style("display","table-cell"),s.style("white-space","nowrap"),s.style("line-height","1.5"),s.style("max-width",r+"px"),s.style("text-align","center"),s.attr("xmlns","http://www.w3.org/1999/xhtml"),n&&s.attr("class","labelBkg");let u=s.node().getBoundingClientRect();return u.width===r&&(s.style("display","table"),s.style("white-space","break-spaces"),s.style("width",r+"px"),u=s.node().getBoundingClientRect()),o.node()}p(op,"addHtmlSpan");function Ba(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")}p(Ba,"createTspan");function lp(e,t,r){const i=e.append("text"),n=Ba(i,1,t);La(n,r);const a=n.node().getComputedTextLength();return i.remove(),a}p(lp,"computeWidthOfText");function cp(e,t,r){var o;const i=e.append("text"),n=Ba(i,1,t);La(n,[{content:r,type:"normal"}]);const a=(o=n.node())==null?void 0:o.getBoundingClientRect();return a&&i.remove(),a}p(cp,"computeDimensionOfText");function hp(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=p(f=>lp(a,1.1,f)<=e,"checkWidth"),u=h(c)?[c]:sp(c,h);for(const f of u){const d=Ba(s,l,1.1);La(d,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()}p(hp,"createFormattedText");function La(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)})}p(La,"updateTextContentAndStyles");async function nl(e,t={}){const r=[];e.replace(/(fa[bklrs]?):fa-([\w-]+)/g,(n,a,o)=>(r.push((async()=>{const s=`${a}:${o}`;return await sw(s)?await ei(s,void 0,{class:"label-icon"}):`<i class='${Zt(n,t).replace(":"," ")}'></i>`})()),n));const i=await Promise.all(r);return e.replace(/(fa[bklrs]?):fa-([\w-]+)/g,()=>i.shift()??"")}p(nl,"replaceIconSubstring");var De=p(async(e,t="",{style:r="",isTitle:i=!1,classes:n="",useHtmlLabels:a=!0,isNode:o=!0,width:s=200,addSvgBackground:l=!1}={},c)=>{if($.debug("XYZ createText",t,r,i,n,a,o,"addSvgBackground: ",l),a){const h=ip(t,c),u=await nl(je(h),c),f=t.replace(/\\\\/g,"\\"),d={isNode:o,label:lr(t)?f:u,labelStyle:r.replace("fill:","color:")};return await op(e,d,s,n,l,c)}else{const h=t.replace(/<br\s*\/?>/g,"<br/>"),u=rp(h.replace("<br>","<br/>"),c),f=hp(s,e,u,t?l:!1);if(o){/stroke:/.exec(r)&&(r=r.replace("stroke:","lineColor:"));const d=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");ht(f).attr("style",d)}else{const d=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/background:/g,"fill:");ht(f).select("rect").attr("style",d.replace(/background:/g,"fill:"));const g=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");ht(f).select("text").attr("style",g)}return f}},"createText");function is(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 ow(e,t){return e[0]===t[0]&&e[1]===t[1]}function lw(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)is(c,s,n);const l=function(c,h,u){const f=[];for(const b of c){const _=[...b];ow(_[0],_[_.length-1])||_.push([_[0][0],_[0][1]]),_.length>2&&f.push(_)}const d=[];h=Math.max(h,.1);const g=[];for(const b of f)for(let _=0;_<b.length-1;_++){const S=b[_],v=b[_+1];if(S[1]!==v[1]){const C=Math.min(S[1],v[1]);g.push({ymin:C,ymax:Math.max(S[1],v[1]),x:C===S[1]?S[0]:v[0],islope:(v[0]-S[0])/(v[1]-S[1])})}}if(g.sort((b,_)=>b.ymin<_.ymin?-1:b.ymin>_.ymin?1:b.x<_.x?-1:b.x>_.x?1:b.ymax===_.ymax?0:(b.ymax-_.ymax)/Math.abs(b.ymax-_.ymax)),!g.length)return d;let m=[],y=g[0].ymin,x=0;for(;m.length||g.length;){if(g.length){let b=-1;for(let _=0;_<g.length&&!(g[_].ymin>y);_++)b=_;g.splice(0,b+1).forEach(_=>{m.push({s:y,edge:_})})}if(m=m.filter(b=>!(b.edge.ymax<=y)),m.sort((b,_)=>b.edge.x===_.edge.x?0:(b.edge.x-_.edge.x)/Math.abs(b.edge.x-_.edge.x)),(u!==1||x%h==0)&&m.length>1)for(let b=0;b<m.length;b+=2){const _=b+1;if(_>=m.length)break;const S=m[b].edge,v=m[_].edge;d.push([[Math.round(S.x),y],[Math.round(v.x),y]])}y+=u,m.forEach(b=>{b.edge.x=b.edge.x+u*b.edge.islope}),x++}return d}(o,a,i);if(n){for(const c of o)is(c,s,-n);(function(c,h,u){const f=[];c.forEach(d=>f.push(...d)),is(f,h,u)})(l,s,-n)}return l}function Vi(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),lw(e,n,i,a||1)}class al{constructor(t){this.helper=t}fillPolygons(t,r){return this._fillPolygons(t,r)}_fillPolygons(t,r){const i=Vi(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 Ma(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 cw extends al{fillPolygons(t,r){let i=r.hachureGap;i<0&&(i=4*r.strokeWidth),i=Math.max(i,.1);const n=Vi(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)Ma([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 hw extends al{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 uw{constructor(t){this.helper=t}fillPolygons(t,r){const i=Vi(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=Ma(s),c=l/n,h=Math.ceil(c)-1,u=l-h*n,f=(s[0][0]+s[1][0])/2-n/4,d=Math.min(s[0][1],s[1][1]);for(let g=0;g<h;g++){const m=d+u+g*n,y=f-o+2*Math.random()*o,x=m-o+2*Math.random()*o,b=this.helper.ellipse(y,x,a,a,r);i.push(...b.ops)}}return{type:"fillSketch",ops:i}}}class fw{constructor(t){this.helper=t}fillPolygons(t,r){const i=Vi(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=Ma(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 d=0;d<l;d++){const g=d*(i+n),m=g+i,y=[h[0]+g*Math.cos(f)+c*Math.cos(f),h[1]+g*Math.sin(f)+c*Math.sin(f)],x=[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(y[0],y[1],x[0],x[1],r))}}),a}}class dw{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=Vi(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=Ma(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,d=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)],y=[l[0]+d*Math.cos(h),l[1]+d*Math.sin(h)],x=[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],x[0],x[1],i),...this.helper.doubleLineOps(x[0],x[1],y[0],y[1],i))}}),n}}const Ut={};class pw{constructor(t){this.seed=t}next(){return this.seed?(2**31-1&(this.seed=Math.imul(48271,this.seed)))/2**31:Math.random()}}const gw=0,ns=1,Ec=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 as(e,t){return e.type===t}function sl(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:gw,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:ns,text:`${parseFloat(RegExp.$1)}`},o=o.substr(RegExp.$1.length)}return s[s.length]={type:Ec,text:""},s}(e);let i="BOD",n=0,a=r[n];for(;!as(a,Ec);){let o=0;const s=[];if(i==="BOD"){if(a.text!=="M"&&a.text!=="m")return sl("M0,0"+e);n++,o=cn[a.text],i=a.text}else as(a,ns)?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(!as(c,ns))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 up(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 fp(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 d=0,g=0;r==="Q"||r==="T"?(d=i+(i-s),g=n+(n-l)):(d=i,g=n);const m=i+2*(d-i)/3,y=n+2*(g-n)/3,x=u+2*(d-u)/3,b=f+2*(g-f)/3;t.push({key:"C",data:[m,y,x,b,u,f]}),s=d,l=g,i=u,n=f;break}case"Q":{const[u,f,d,g]=h,m=i+2*(u-i)/3,y=n+2*(f-n)/3,x=d+2*(u-d)/3,b=g+2*(f-g)/3;t.push({key:"C",data:[m,y,x,b,d,g]}),s=u,l=f,i=d,n=g;break}case"A":{const u=Math.abs(h[0]),f=Math.abs(h[1]),d=h[2],g=h[3],m=h[4],y=h[5],x=h[6];u===0||f===0?(t.push({key:"C",data:[i,n,y,x,y,x]}),i=y,n=x):(i!==y||n!==x)&&(dp(i,n,y,x,u,f,d,g,m).forEach(function(b){t.push({key:"C",data:b})}),i=y,n=x);break}case"Z":t.push({key:"Z",data:[]}),i=a,n=o}r=c}return t}function pi(e,t,r){return[e*Math.cos(r)-t*Math.sin(r),e*Math.sin(r)+t*Math.cos(r)]}function dp(e,t,r,i,n,a,o,s,l,c){const h=(u=o,Math.PI*u/180);var u;let f=[],d=0,g=0,m=0,y=0;if(c)[d,g,m,y]=c;else{[e,t]=pi(e,t,-h),[r,i]=pi(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 B=n*n,F=a*a,M=B*F-B*A*A-F*O*O,q=B*A*A+F*O*O,V=(s===l?-1:1)*Math.sqrt(Math.abs(M/q));m=V*n*A/a+(e+r)/2,y=V*-a*O/n+(t+i)/2,d=Math.asin(parseFloat(((t-y)/a).toFixed(9))),g=Math.asin(parseFloat(((i-y)/a).toFixed(9))),e<m&&(d=Math.PI-d),r<m&&(g=Math.PI-g),d<0&&(d=2*Math.PI+d),g<0&&(g=2*Math.PI+g),l&&d>g&&(d-=2*Math.PI),!l&&g>d&&(g-=2*Math.PI)}let x=g-d;if(Math.abs(x)>120*Math.PI/180){const O=g,A=r,L=i;g=l&&g>d?d+120*Math.PI/180*1:d+120*Math.PI/180*-1,f=dp(r=m+n*Math.cos(g),i=y+a*Math.sin(g),A,L,n,a,o,0,l,[g,O,m,y])}x=g-d;const b=Math.cos(d),_=Math.sin(d),S=Math.cos(g),v=Math.sin(g),C=Math.tan(x/4),k=4/3*n*C,D=4/3*a*C,R=[e,t],I=[e+k*_,t-D*b],E=[r+k*v,i-D*S],W=[r,i];if(I[0]=2*R[0]-I[0],I[1]=2*R[1]-I[1],c)return[I,E,W].concat(f);{f=[I,E,W].concat(f);const O=[];for(let A=0;A<f.length;A+=3){const L=pi(f[A][0],f[A][1],h),B=pi(f[A+1][0],f[A+1][1],h),F=pi(f[A+2][0],f[A+2][1],h);O.push([L[0],L[1],B[0],B[1],F[0],F[1]])}return O}}const mw={randOffset:function(e,t){return rt(e,t)},randOffsetWithRange:function(e,t,r){return Qn(e,t,r)},ellipse:function(e,t,r,i,n){const a=gp(r,i,n);return to(e,t,n,a).opset},doubleLineOps:function(e,t,r,i,n){return qe(e,t,r,i,n,!0)}};function pp(e,t,r,i,n){return{type:"path",ops:qe(e,t,r,i,n)}}function wn(e,t,r){const i=(e||[]).length;if(i>2){const n=[];for(let a=0;a<i-1;a++)n.push(...qe(e[a][0],e[a][1],e[a+1][0],e[a+1][1],r));return t&&n.push(...qe(e[i-1][0],e[i-1][1],e[0][0],e[0][1],r)),{type:"path",ops:n}}return i===2?pp(e[0][0],e[0][1],e[1][0],e[1][1],r):{type:"path",ops:[]}}function yw(e,t,r,i,n){return function(a,o){return wn(a,!0,o)}([[e,t],[e+r,t],[e+r,t+i],[e,t+i]],n)}function Fc(e,t){if(e.length){const r=typeof e[0][0]=="number"?[e]:e,i=hn(r[0],1*(1+.2*t.roughness),t),n=t.disableMultiStroke?[]:hn(r[0],1.5*(1+.22*t.roughness),Oc(t));for(let a=1;a<r.length;a++){const o=r[a];if(o.length){const s=hn(o,1*(1+.2*t.roughness),t),l=t.disableMultiStroke?[]:hn(o,1.5*(1+.22*t.roughness),Oc(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 gp(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+=rt(o*l,r),s+=rt(s*l,r),{increment:a,rx:o,ry:s}}function to(e,t,r,i){const[n,a]=Ic(i.increment,e,t,i.rx,i.ry,1,i.increment*Qn(.1,Qn(.4,1,r),r),r);let o=Jn(n,null,r);if(!r.disableMultiStroke&&r.roughness!==0){const[s]=Ic(i.increment,e,t,i.rx,i.ry,1.5,0,r),l=Jn(s,null,r);o=o.concat(l)}return{estimatedPoints:a,opset:{type:"path",ops:o}}}function $c(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+=rt(.01*u,l),f+=rt(.01*f,l);let d=n,g=a;for(;d<0;)d+=2*Math.PI,g+=2*Math.PI;g-d>2*Math.PI&&(d=0,g=2*Math.PI);const m=2*Math.PI/l.curveStepCount,y=Math.min(m/2,(g-d)/2),x=Pc(y,c,h,u,f,d,g,1,l);if(!l.disableMultiStroke){const b=Pc(y,c,h,u,f,d,g,1.5,l);x.push(...b)}return o&&(s?x.push(...qe(c,h,c+u*Math.cos(d),h+f*Math.sin(d),l),...qe(c,h,c+u*Math.cos(g),h+f*Math.sin(g),l)):x.push({op:"lineTo",data:[c,h]},{op:"lineTo",data:[c+u*Math.cos(d),h+f*Math.sin(d)]})),{type:"path",ops:x}}function Dc(e,t){const r=fp(up(sl(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(...qe(a[0],a[1],s[0],s[1],t)),a=[s[0],s[1]];break;case"C":{const[l,c,h,u,f,d]=s;i.push(...xw(l,c,h,u,f,d,a,t)),a=[f,d];break}case"Z":i.push(...qe(a[0],a[1],n[0],n[1],t)),a=[n[0],n[1]]}return{type:"path",ops:i}}function ss(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]+rt(n,t),i[0][1]+rt(n,t)]});for(let o=1;o<a;o++)r.push({op:"lineTo",data:[i[o][0]+rt(n,t),i[o][1]+rt(n,t)]})}}return{type:"fillPath",ops:r}}function Sr(e,t){return function(r,i){let n=r.fillStyle||"hachure";if(!Ut[n])switch(n){case"zigzag":Ut[n]||(Ut[n]=new cw(i));break;case"cross-hatch":Ut[n]||(Ut[n]=new hw(i));break;case"dots":Ut[n]||(Ut[n]=new uw(i));break;case"dashed":Ut[n]||(Ut[n]=new fw(i));break;case"zigzag-line":Ut[n]||(Ut[n]=new dw(i));break;default:n="hachure",Ut[n]||(Ut[n]=new al(i))}return Ut[n]}(t,mw).fillPolygons(e,t)}function Oc(e){const t=Object.assign({},e);return t.randomizer=void 0,e.seed&&(t.seed=e.seed+1),t}function mp(e){return e.randomizer||(e.randomizer=new pw(e.seed||0)),e.randomizer.next()}function Qn(e,t,r,i=1){return r.roughness*i*(mp(r)*(t-e)+e)}function rt(e,t,r=1){return Qn(-e,e,t,r)}function qe(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*mp(n);let d=n.bowing*n.maxRandomnessOffset*(i-t)/200,g=n.bowing*n.maxRandomnessOffset*(e-r)/200;d=rt(d,n,c),g=rt(g,n,c);const m=[],y=()=>rt(u,n,c),x=()=>rt(h,n,c),b=n.preserveVertices;return o?m.push({op:"move",data:[e+(b?0:y()),t+(b?0:y())]}):m.push({op:"move",data:[e+(b?0:rt(h,n,c)),t+(b?0:rt(h,n,c))]}),o?m.push({op:"bcurveTo",data:[d+e+(r-e)*f+y(),g+t+(i-t)*f+y(),d+e+2*(r-e)*f+y(),g+t+2*(i-t)*f+y(),r+(b?0:y()),i+(b?0:y())]}):m.push({op:"bcurveTo",data:[d+e+(r-e)*f+x(),g+t+(i-t)*f+x(),d+e+2*(r-e)*f+x(),g+t+2*(i-t)*f+x(),r+(b?0:x()),i+(b?0:x())]}),m}function hn(e,t,r){if(!e.length)return[];const i=[];i.push([e[0][0]+rt(t,r),e[0][1]+rt(t,r)]),i.push([e[0][0]+rt(t,r),e[0][1]+rt(t,r)]);for(let n=1;n<e.length;n++)i.push([e[n][0]+rt(t,r),e[n][1]+rt(t,r)]),n===e.length-1&&i.push([e[n][0]+rt(t,r),e[n][1]+rt(t,r)]);return Jn(i,null,r)}function Jn(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 Ic(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=rt(.5,s)-Math.PI/2;c.push([rt(a,s)+t+.9*i*Math.cos(h-e),rt(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 d=[rt(a,s)+t+i*Math.cos(f),rt(a,s)+r+n*Math.sin(f)];l.push(d),c.push(d)}c.push([rt(a,s)+t+i*Math.cos(h+2*Math.PI+.5*o),rt(a,s)+r+n*Math.sin(h+2*Math.PI+.5*o)]),c.push([rt(a,s)+t+.98*i*Math.cos(h+o),rt(a,s)+r+.98*n*Math.sin(h+o)]),c.push([rt(a,s)+t+.9*i*Math.cos(h+.5*o),rt(a,s)+r+.9*n*Math.sin(h+.5*o)])}return[c,l]}function Pc(e,t,r,i,n,a,o,s,l){const c=a+rt(.1,l),h=[];h.push([rt(s,l)+t+.9*i*Math.cos(c-e),rt(s,l)+r+.9*n*Math.sin(c-e)]);for(let u=c;u<=o;u+=e)h.push([rt(s,l)+t+i*Math.cos(u),rt(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)]),Jn(h,null,l)}function xw(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 d=0;d<u;d++)d===0?l.push({op:"move",data:[o[0],o[1]]}):l.push({op:"move",data:[o[0]+(f?0:rt(c[0],s)),o[1]+(f?0:rt(c[0],s))]}),h=f?[n,a]:[n+rt(c[d],s),a+rt(c[d],s)],l.push({op:"bcurveTo",data:[e+rt(c[d],s),t+rt(c[d],s),r+rt(c[d],s),i+rt(c[d],s),h[0],h[1]]});return l}function gi(e){return[...e]}function Rc(e,t=0){const r=e.length;if(r<3)throw new Error("A curve must have at least three points.");const i=[];if(r===3)i.push(gi(e[0]),gi(e[1]),gi(e[2]),gi(e[2]));else{const 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(gi(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 Sn(e,t){return Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2)}function bw(e,t,r){const i=Sn(t,r);if(i===0)return Sn(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)),Sn(e,Qe(t,r,n))}function Qe(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 d=3*h[0]-2*c[0]-f[0];d*=d;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 y=3*u[1]-2*f[1]-c[1];return y*=y,d<m&&(d=m),g<y&&(g=y),d+g}(e,t)<r){const s=e[t+0];n.length?(a=n[n.length-1],o=s,Math.sqrt(Sn(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=Qe(l,c,.5),d=Qe(c,h,.5),g=Qe(h,u,.5),m=Qe(f,d,.5),y=Qe(d,g,.5),x=Qe(m,y,.5);ro([l,f,m,x],0,r,n),ro([x,y,g,u],0,r,n)}var a,o;return n}function Cw(e,t){return ta(e,0,e.length,t)}function ta(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=bw(e[h],o,s);u>l&&(l=u,c=h)}return Math.sqrt(l)>i?(ta(e,t,c+1,i,a),ta(e,c,r,i,a)):(a.length||a.push(o),a.push(s)),a}function os(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?ta(i,0,i.length,r):i}const Vt="none";class ea{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",[pp(t,r,i,n,o)],o)}rectangle(t,r,i,n,a){const o=this._o(a),s=[],l=yw(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(ss([c],o)):s.push(Sr([c],o))}return o.stroke!==Vt&&s.push(l),this._d("rectangle",s,o)}ellipse(t,r,i,n,a){const o=this._o(a),s=[],l=gp(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(Sr([c.estimatedPoints],o));return o.stroke!==Vt&&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",[wn(t,!1,i)],i)}arc(t,r,i,n,a,o,s=!1,l){const c=this._o(l),h=[],u=$c(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 d=$c(t,r,i,n,a,o,!0,!1,f);d.type="fillPath",h.push(d)}else h.push(function(f,d,g,m,y,x,b){const _=f,S=d;let v=Math.abs(g/2),C=Math.abs(m/2);v+=rt(.01*v,b),C+=rt(.01*C,b);let k=y,D=x;for(;k<0;)k+=2*Math.PI,D+=2*Math.PI;D-k>2*Math.PI&&(k=0,D=2*Math.PI);const R=(D-k)/b.curveStepCount,I=[];for(let E=k;E<=D;E+=R)I.push([_+v*Math.cos(E),S+C*Math.sin(E)]);return I.push([_+v*Math.cos(D),S+C*Math.sin(D)]),I.push([_,S]),Sr([I],b)}(t,r,i,n,a,o,c));return c.stroke!==Vt&&h.push(u),this._d("arc",h,c)}curve(t,r){const i=this._o(r),n=[],a=Fc(t,i);if(i.fill&&i.fill!==Vt)if(i.fillStyle==="solid"){const o=Fc(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(...os(Rc([c[0],c[0],c[1],c[2]]),10,(1+i.roughness)/2)):o.push(...os(Rc(c),10,(1+i.roughness)/2))}o.length&&n.push(Sr([o],i))}return i.stroke!==Vt&&n.push(a),this._d("curve",n,i)}polygon(t,r){const i=this._o(r),n=[],a=wn(t,!0,i);return i.fill&&(i.fillStyle==="solid"?n.push(ss([t],i)):n.push(Sr([t],i))),i.stroke!==Vt&&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!==Vt,o=i.stroke!==Vt,s=!!(i.simplification&&i.simplification<1),l=function(h,u,f){const d=fp(up(sl(h))),g=[];let m=[],y=[0,0],x=[];const b=()=>{x.length>=4&&m.push(...os(x,u)),x=[]},_=()=>{b(),m.length&&(g.push(m),m=[])};for(const{key:v,data:C}of d)switch(v){case"M":_(),y=[C[0],C[1]],m.push(y);break;case"L":b(),m.push([C[0],C[1]]);break;case"C":if(!x.length){const k=m.length?m[m.length-1]:y;x.push([k[0],k[1]])}x.push([C[0],C[1]]),x.push([C[2],C[3]]),x.push([C[4],C[5]]);break;case"Z":b(),m.push([y[0],y[1]])}if(_(),!f)return g;const S=[];for(const v of g){const C=Cw(v,f);C.length&&S.push(C)}return S}(t,1,s?4-4*(i.simplification||1):(1+i.roughness)/2),c=Dc(t,i);if(a)if(i.fillStyle==="solid")if(l.length===1){const h=Dc(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(ss(l,i));else n.push(Sr(l,i));return o&&(s?l.forEach(h=>{n.push(wn(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:Vt};break;case"fillPath":o={d:this.opsToPath(a),stroke:Vt,strokeWidth:0,fill:i.fill||Vt};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||Vt,strokeWidth:i,fill:Vt}}_mergedShape(t){return t.filter((r,i)=>i===0||r.op!=="move")}}class _w{constructor(t,r){this.canvas=t,this.ctx=this.canvas.getContext("2d"),this.gen=new ea(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 un="http://www.w3.org/2000/svg";class vw{constructor(t,r){this.svg=t,this.gen=new ea(r)}draw(t){const r=t.sets||[],i=t.options||this.getDefaultOptions(),n=this.svg.ownerDocument||window.document,a=n.createElementNS(un,"g"),o=t.options.fixedDecimalPlaceDigits;for(const s of r){let l=null;switch(s.type){case"path":l=n.createElementNS(un,"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(un,"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(un,"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 U={canvas:(e,t)=>new _w(e,t),svg:(e,t)=>new vw(e,t),generator:e=>new ea(e),newSeed:()=>ea.newSeed()},et=p(async(e,t,r)=>{var u,f;let i;const n=t.useHtmlLabels||kt((u=ft())==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",Pt(t.labelStyle));let s;t.label===void 0?s="":s=typeof t.label=="string"?t.label:t.label[0];const l=await De(o,Zt(je(s),ft()),{useHtmlLabels:n,width:t.width||((f=ft().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 d=l.children[0],g=ht(l),m=d.getElementsByTagName("img");if(m){const y=s.replace(/<img[^>]*>/g,"").trim()==="";await Promise.all([...m].map(x=>new Promise(b=>{function _(){if(x.style.display="flex",x.style.flexDirection="column",y){const S=ft().fontSize?ft().fontSize:window.getComputedStyle(document.body).fontSize,v=5,[C=xo.fontSize]=Xi(S),k=C*v+"px";x.style.minWidth=k,x.style.maxWidth=k}else x.style.width="100%";b(x)}p(_,"setupImage"),setTimeout(()=>{x.complete&&_()}),x.addEventListener("error",_),x.addEventListener("load",_)})))}c=d.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"),ls=p(async(e,t,r)=>{var l,c,h,u,f,d;const i=r.useHtmlLabels||kt((c=(l=ft())==null?void 0:l.flowchart)==null?void 0:c.htmlLabels),n=e.insert("g").attr("class","label").attr("style",r.labelStyle||""),a=await De(n,Zt(je(t),ft()),{useHtmlLabels:i,width:r.width||((u=(h=ft())==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(kt((d=(f=ft())==null?void 0:f.flowchart)==null?void 0:d.htmlLabels)){const g=a.children[0],m=ht(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"),X=p((e,t)=>{const r=t.node().getBBox();e.width=r.width,e.height=r.height},"updateNodeBounds"),tt=p((e,t)=>(e.look==="handDrawn"?"rough-node":"node")+" "+e.cssClasses+" "+(t||""),"getNodeClasses");function lt(e){const t=e.map((r,i)=>`${i===0?"M":"L"}${r.x},${r.y}`);return t.push("Z"),t.join(" ")}p(lt,"createPathFromPoints");function ze(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 d=0;d<=50;d++){const g=d/50,m=e+g*l,y=f+n*Math.sin(u*(m-e));o.push({x:m,y})}return o}p(ze,"generateFullSineWavePoints");function qi(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,d=e+r*Math.cos(f),g=t+r*Math.sin(f);o.push({x:-d,y:-g})}return o}p(qi,"generateCirclePoints");var ww=p((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"),ri=ww;function yp(e,t){t&&e.attr("style",t)}p(yp,"applyStyle");async function xp(e){const t=ht(document.createElementNS("http://www.w3.org/2000/svg","foreignObject")),r=t.append("xhtml:div"),i=ft();let n=e.label;e.label&&lr(e.label)&&(n=await ca(e.label.replace(dr.lineBreakRegex,`
127
- `),i));const o='<span class="'+(e.isNode?"nodeLabel":"edgeLabel")+'" '+(e.labelStyle?'style="'+e.labelStyle+'"':"")+">"+n+"</span>";return r.html(Zt(o,i)),yp(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()}p(xp,"addHtmlLabel");var Sw=p(async(e,t,r,i)=>{let n=e||"";if(typeof n=="object"&&(n=n[0]),kt(ft().flowchart.htmlLabels)){n=n.replace(/\\n|\n/g,"<br />"),$.info("vertexText"+n);const a={isNode:i,label:je(n).replace(/fa[blrs]?:fa-[\w-]+/g,s=>`<i class='${s.replace(":"," ")}'></i>`),labelStyle:t&&t.replace("fill:","color:")};return await xp(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"),ir=Sw,Ye=p((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"),bp=p(async(e,t)=>{$.info("Creating subgraph rect for ",t.id,t);const r=ft(),{themeVariables:i,handDrawnSeed:n}=r,{clusterBkg:a,clusterBorder:o}=i,{labelStyles:s,nodeStyles:l,borderStyles:c,backgroundStyles:h}=Y(t),u=e.insert("g").attr("class","cluster "+t.cssClasses).attr("id",t.id).attr("data-look",t.look),f=kt(r.flowchart.htmlLabels),d=u.insert("g").attr("class","cluster-label "),g=await De(d,t.label,{style:t.labelStyle,useHtmlLabels:f,isNode:!0});let m=g.getBBox();if(kt(r.flowchart.htmlLabels)){const k=g.children[0],D=ht(g);m=k.getBoundingClientRect(),D.attr("width",m.width),D.attr("height",m.height)}const y=t.width<=m.width+t.padding?m.width+t.padding:t.width;t.width<=m.width+t.padding?t.diff=(y-t.width)/2-t.padding:t.diff=-t.padding;const x=t.height,b=t.x-y/2,_=t.y-x/2;$.trace("Data ",t,JSON.stringify(t));let S;if(t.look==="handDrawn"){const k=U.svg(u),D=G(t,{roughness:.7,fill:a,stroke:o,fillWeight:3,seed:n}),R=k.path(Ye(b,_,y,x,0),D);S=u.insert(()=>($.debug("Rough node insert CXC",R),R),":first-child"),S.select("path:nth-child(2)").attr("style",c.join(";")),S.select("path").attr("style",h.join(";").replace("fill","stroke"))}else S=u.insert("rect",":first-child"),S.attr("style",l).attr("rx",t.rx).attr("ry",t.ry).attr("x",b).attr("y",_).attr("width",y).attr("height",x);const{subGraphTitleTopMargin:v}=Ca(r);if(d.attr("transform",`translate(${t.x-m.width/2}, ${t.y-t.height/2+v})`),s){const k=d.select("span");k&&k.attr("style",s)}const C=S.node().getBBox();return t.offsetX=0,t.width=C.width,t.height=C.height,t.offsetY=m.height-t.padding/2,t.intersect=function(k){return ri(t,k)},{cluster:u,labelBBox:m}},"rect"),kw=p((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 ri(t,s)},{cluster:r,labelBBox:{width:0,height:0}}},"noteGroup"),Tw=p(async(e,t)=>{const r=ft(),{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 d=u.node().appendChild(await ir(t.label,t.labelStyle,void 0,!0));let g=d.getBBox();if(kt(r.flowchart.htmlLabels)){const R=d.children[0],I=ht(d);g=R.getBoundingClientRect(),I.attr("width",g.width),I.attr("height",g.height)}const m=0*t.padding,y=m/2,x=(t.width<=g.width+t.padding?g.width+t.padding:t.width)+m;t.width<=g.width+t.padding?t.diff=(x-t.width)/2-t.padding:t.diff=-t.padding;const b=t.height+m,_=t.height+m-g.height-6,S=t.x-x/2,v=t.y-b/2;t.width=x;const C=t.y-t.height/2-y+g.height+2;let k;if(t.look==="handDrawn"){const R=t.cssClasses.includes("statediagram-cluster-alt"),I=U.svg(c),E=t.rx||t.ry?I.path(Ye(S,v,x,b,10),{roughness:.7,fill:s,fillStyle:"solid",stroke:l,seed:n}):I.rectangle(S,v,x,b,{seed:n});k=c.insert(()=>E,":first-child");const W=I.rectangle(S,C,x,_,{fill:R?a:o,fillStyle:R?"hachure":"solid",stroke:l,seed:n});k=c.insert(()=>E,":first-child"),f=c.insert(()=>W)}else k=h.insert("rect",":first-child"),k.attr("class","outer").attr("x",S).attr("y",v).attr("width",x).attr("height",b).attr("data-look",t.look),f.attr("class","inner").attr("x",S).attr("y",C).attr("width",x).attr("height",_);u.attr("transform",`translate(${t.x-g.width/2}, ${v+1-(kt(r.flowchart.htmlLabels)?0:3)})`);const D=k.node().getBBox();return t.height=D.height,t.offsetX=0,t.offsetY=g.height-t.padding/2,t.labelBBox=g,t.intersect=function(R){return ri(t,R)},{cluster:c,labelBBox:g}},"roundedWithTitle"),Bw=p(async(e,t)=>{$.info("Creating subgraph rect for ",t.id,t);const r=ft(),{themeVariables:i,handDrawnSeed:n}=r,{clusterBkg:a,clusterBorder:o}=i,{labelStyles:s,nodeStyles:l,borderStyles:c,backgroundStyles:h}=Y(t),u=e.insert("g").attr("class","cluster "+t.cssClasses).attr("id",t.id).attr("data-look",t.look),f=kt(r.flowchart.htmlLabels),d=u.insert("g").attr("class","cluster-label "),g=await De(d,t.label,{style:t.labelStyle,useHtmlLabels:f,isNode:!0,width:t.width});let m=g.getBBox();if(kt(r.flowchart.htmlLabels)){const k=g.children[0],D=ht(g);m=k.getBoundingClientRect(),D.attr("width",m.width),D.attr("height",m.height)}const y=t.width<=m.width+t.padding?m.width+t.padding:t.width;t.width<=m.width+t.padding?t.diff=(y-t.width)/2-t.padding:t.diff=-t.padding;const x=t.height,b=t.x-y/2,_=t.y-x/2;$.trace("Data ",t,JSON.stringify(t));let S;if(t.look==="handDrawn"){const k=U.svg(u),D=G(t,{roughness:.7,fill:a,stroke:o,fillWeight:4,seed:n}),R=k.path(Ye(b,_,y,x,t.rx),D);S=u.insert(()=>($.debug("Rough node insert CXC",R),R),":first-child"),S.select("path:nth-child(2)").attr("style",c.join(";")),S.select("path").attr("style",h.join(";").replace("fill","stroke"))}else S=u.insert("rect",":first-child"),S.attr("style",l).attr("rx",t.rx).attr("ry",t.ry).attr("x",b).attr("y",_).attr("width",y).attr("height",x);const{subGraphTitleTopMargin:v}=Ca(r);if(d.attr("transform",`translate(${t.x-m.width/2}, ${t.y-t.height/2+v})`),s){const k=d.select("span");k&&k.attr("style",s)}const C=S.node().getBBox();return t.offsetX=0,t.width=C.width,t.height=C.height,t.offsetY=m.height-t.padding/2,t.intersect=function(k){return ri(t,k)},{cluster:u,labelBBox:m}},"kanbanSection"),Lw=p((e,t)=>{const r=ft(),{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 d;if(t.look==="handDrawn"){const y=U.svg(o).rectangle(u,f,c,h,{fill:"lightgrey",roughness:.5,strokeLineDash:[5],stroke:a,seed:n});d=o.insert(()=>y,":first-child")}else d=s.insert("rect",":first-child"),d.attr("class","divider").attr("x",u).attr("y",f).attr("width",c).attr("height",h).attr("data-look",t.look);const g=d.node().getBBox();return t.height=g.height,t.offsetX=0,t.offsetY=0,t.intersect=function(m){return ri(t,m)},{cluster:o,labelBBox:{}}},"divider"),Mw=bp,Aw={rect:bp,squareRect:Mw,roundedWithTitle:Tw,noteGroup:kw,divider:Lw,kanbanSection:Bw},Cp=new Map,_p=p(async(e,t)=>{const r=t.shape||"rect",i=await Aw[r](e,t);return Cp.set(t.id,i),i},"insertCluster"),Ew=p(()=>{Cp=new Map},"clear");function vp(e,t){return e.intersect(t)}p(vp,"intersectNode");var Fw=vp;function wp(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}}p(wp,"intersectEllipse");var Sp=wp;function kp(e,t,r){return Sp(e,t,t,r)}p(kp,"intersectCircle");var $w=kp;function Tp(e,t,r,i){{const n=t.y-e.y,a=e.x-t.x,o=t.x*e.y-e.x*t.y,s=n*r.x+a*r.y+o,l=n*i.x+a*i.y+o,c=1e-6;if(s!==0&&l!==0&&io(s,l))return;const h=i.y-r.y,u=r.x-i.x,f=i.x*r.y-r.x*i.y,d=h*e.x+u*e.y+f,g=h*t.x+u*t.y+f;if(Math.abs(d)<c&&Math.abs(g)<c&&io(d,g))return;const m=n*u-h*a;if(m===0)return;const y=Math.abs(m/2);let x=a*f-u*o;const b=x<0?(x-y)/m:(x+y)/m;x=h*o-n*f;const _=x<0?(x-y)/m:(x+y)/m;return{x:b,y:_}}}p(Tp,"intersectLine");function io(e,t){return e*t>0}p(io,"sameSign");var Dw=Tp;function Bp(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],d=Dw(e,r,{x:l+u.x,y:c+u.y},{x:l+f.x,y:c+f.y});d&&a.push(d)}return a.length?(a.length>1&&a.sort(function(h,u){let f=h.x-r.x,d=h.y-r.y,g=Math.sqrt(f*f+d*d),m=u.x-r.x,y=u.y-r.y,x=Math.sqrt(m*m+y*y);return g<x?-1:g===x?0:1}),a[0]):e}p(Bp,"intersectPolygon");var Ow=Bp,z={node:Fw,circle:$w,ellipse:Sp,polygon:Ow,rect:ri};function Lp(e,t){const{labelStyles:r}=Y(t);t.labelStyle=r;const i=tt(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=U.svg(a),c=G(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",Pt(s)),X(t,u),t.intersect=function(f){return $.info("Circle intersect",t,o,f),z.circle(t,o,f)},a}p(Lp,"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,d=u/n,g=f/a,m=Math.sqrt(d**2+g**2);if(m>1)throw new Error("The given radii are too small to create an arc between the points.");const y=Math.sqrt(1-m**2),x=l+y*a*Math.sin(h)*(o?-1:1),b=c-y*n*Math.cos(h)*(o?-1:1),_=Math.atan2((t-b)/a,(e-x)/n);let v=Math.atan2((i-b)/a,(r-x)/n)-_;o&&v<0&&(v+=2*Math.PI),!o&&v>0&&(v-=2*Math.PI);const C=[];for(let k=0;k<20;k++){const D=k/19,R=_+D*v,I=x+n*Math.cos(R),E=b+a*Math.sin(R);C.push({x:I,y:E})}return C}p(no,"generateArcPoints");async function Mp(e,t){const{labelStyles:r,nodeStyles:i}=Y(t);t.labelStyle=r;const{shapeSvg:n,bbox:a}=await et(e,t,tt(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=U.svg(n),d=G(t,{});t.look!=="handDrawn"&&(d.roughness=0,d.fillStyle="solid");const g=lt(u),m=f.path(g,d),y=n.insert(()=>m,":first-child");return y.attr("class","basic label-container"),h&&t.look!=="handDrawn"&&y.selectAll("path").attr("style",h),i&&t.look!=="handDrawn"&&y.selectAll("path").attr("style",i),y.attr("transform",`translate(${c/2}, 0)`),X(t,y),t.intersect=function(x){return z.polygon(t,u,x)},n}p(Mp,"bowTieRect");function Ue(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+")")}p(Ue,"insertPolygonShape");async function Ap(e,t){const{labelStyles:r,nodeStyles:i}=Y(t);t.labelStyle=r;const{shapeSvg:n,bbox:a}=await et(e,t,tt(t)),o=a.height+t.padding,s=12,l=a.width+t.padding+s,c=0,h=l,u=-o,f=0,d=[{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 y=U.svg(n),x=G(t,{}),b=lt(d),_=y.path(b,x);g=n.insert(()=>_,":first-child").attr("transform",`translate(${-l/2}, ${o/2})`),m&&g.attr("style",m)}else g=Ue(n,l,o,d);return i&&g.attr("style",i),X(t,g),t.intersect=function(y){return z.polygon(t,d,y)},n}p(Ap,"card");function Ep(e,t){const{nodeStyles:r}=Y(t);t.label="";const i=e.insert("g").attr("class",tt(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=U.svg(i),l=G(t,{});t.look!=="handDrawn"&&(l.roughness=0,l.fillStyle="solid");const c=lt(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 z.polygon(t,o,f)},i}p(Ep,"choice");async function ol(e,t,r){const{labelStyles:i,nodeStyles:n}=Y(t);t.labelStyle=i;const{shapeSvg:a,bbox:o,halfPadding:s}=await et(e,t,tt(t)),l=(r==null?void 0:r.padding)??s,c=o.width/2+l;let h;const{cssStyles:u}=t;if(t.look==="handDrawn"){const f=U.svg(a),d=G(t,{}),g=f.circle(0,0,c*2,d);h=a.insert(()=>g,":first-child"),h.attr("class","basic label-container").attr("style",Pt(u))}else h=a.insert("circle",":first-child").attr("class","basic label-container").attr("style",n).attr("r",c).attr("cx",0).attr("cy",0);return X(t,h),t.calcIntersect=function(f,d){const g=f.width/2;return z.circle(f,g,d)},t.intersect=function(f){return $.info("Circle intersect",t,c,f),z.circle(t,c,f)},a}p(ol,"circle");function Fp(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}
128
- M ${n.x},${n.y} L ${o.x},${o.y}`}p(Fp,"createLine");function $p(e,t){const{labelStyles:r,nodeStyles:i}=Y(t);t.labelStyle=r,t.label="";const n=e.insert("g").attr("class",tt(t)).attr("id",t.domId??t.id),a=Math.max(30,(t==null?void 0:t.width)??0),{cssStyles:o}=t,s=U.svg(n),l=G(t,{});t.look!=="handDrawn"&&(l.roughness=0,l.fillStyle="solid");const c=s.circle(0,0,a*2,l),h=Fp(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),X(t,f),t.intersect=function(d){return $.info("crossedCircle intersect",t,{radius:a,point:d}),z.circle(t,a,d)},n}p($p,"crossedCircle");function Te(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,d=e+r*Math.cos(f),g=t+r*Math.sin(f);o.push({x:-d,y:-g})}return o}p(Te,"generateCirclePoints");async function Dp(e,t){const{labelStyles:r,nodeStyles:i}=Y(t);t.labelStyle=r;const{shapeSvg:n,bbox:a,label:o}=await et(e,t,tt(t)),s=a.width+(t.padding??0),l=a.height+(t.padding??0),c=Math.max(5,l*.1),{cssStyles:h}=t,u=[...Te(s/2,-l/2,c,30,-90,0),{x:-s/2-c,y:c},...Te(s/2+c*2,-c,c,20,-180,-270),...Te(s/2+c*2,c,c,20,-90,-180),{x:-s/2-c,y:-l/2},...Te(s/2,l/2,c,20,0,90)],f=[{x:s/2,y:-l/2-c},{x:-s/2,y:-l/2-c},...Te(s/2,-l/2,c,20,-90,0),{x:-s/2-c,y:-c},...Te(s/2+s*.1,-c,c,20,-180,-270),...Te(s/2+s*.1,c,c,20,-90,-180),{x:-s/2-c,y:l/2},...Te(s/2,l/2,c,20,0,90),{x:-s/2,y:l/2+c},{x:s/2,y:l/2+c}],d=U.svg(n),g=G(t,{fill:"none"});t.look!=="handDrawn"&&(g.roughness=0,g.fillStyle="solid");const y=lt(u).replace("Z",""),x=d.path(y,g),b=lt(f),_=d.path(b,{...g}),S=n.insert("g",":first-child");return S.insert(()=>_,":first-child").attr("stroke-opacity",0),S.insert(()=>x,":first-child"),S.attr("class","text"),h&&t.look!=="handDrawn"&&S.selectAll("path").attr("style",h),i&&t.look!=="handDrawn"&&S.selectAll("path").attr("style",i),S.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))})`),X(t,S),t.intersect=function(v){return z.polygon(t,f,v)},n}p(Dp,"curlyBraceLeft");function Be(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,d=e+r*Math.cos(f),g=t+r*Math.sin(f);o.push({x:d,y:g})}return o}p(Be,"generateCirclePoints");async function Op(e,t){const{labelStyles:r,nodeStyles:i}=Y(t);t.labelStyle=r;const{shapeSvg:n,bbox:a,label:o}=await et(e,t,tt(t)),s=a.width+(t.padding??0),l=a.height+(t.padding??0),c=Math.max(5,l*.1),{cssStyles:h}=t,u=[...Be(s/2,-l/2,c,20,-90,0),{x:s/2+c,y:-c},...Be(s/2+c*2,-c,c,20,-180,-270),...Be(s/2+c*2,c,c,20,-90,-180),{x:s/2+c,y:l/2},...Be(s/2,l/2,c,20,0,90)],f=[{x:-s/2,y:-l/2-c},{x:s/2,y:-l/2-c},...Be(s/2,-l/2,c,20,-90,0),{x:s/2+c,y:-c},...Be(s/2+c*2,-c,c,20,-180,-270),...Be(s/2+c*2,c,c,20,-90,-180),{x:s/2+c,y:l/2},...Be(s/2,l/2,c,20,0,90),{x:s/2,y:l/2+c},{x:-s/2,y:l/2+c}],d=U.svg(n),g=G(t,{fill:"none"});t.look!=="handDrawn"&&(g.roughness=0,g.fillStyle="solid");const y=lt(u).replace("Z",""),x=d.path(y,g),b=lt(f),_=d.path(b,{...g}),S=n.insert("g",":first-child");return S.insert(()=>_,":first-child").attr("stroke-opacity",0),S.insert(()=>x,":first-child"),S.attr("class","text"),h&&t.look!=="handDrawn"&&S.selectAll("path").attr("style",h),i&&t.look!=="handDrawn"&&S.selectAll("path").attr("style",i),S.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))})`),X(t,S),t.intersect=function(v){return z.polygon(t,f,v)},n}p(Op,"curlyBraceRight");function At(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,d=e+r*Math.cos(f),g=t+r*Math.sin(f);o.push({x:-d,y:-g})}return o}p(At,"generateCirclePoints");async function Ip(e,t){const{labelStyles:r,nodeStyles:i}=Y(t);t.labelStyle=r;const{shapeSvg:n,bbox:a,label:o}=await et(e,t,tt(t)),s=a.width+(t.padding??0),l=a.height+(t.padding??0),c=Math.max(5,l*.1),{cssStyles:h}=t,u=[...At(s/2,-l/2,c,30,-90,0),{x:-s/2-c,y:c},...At(s/2+c*2,-c,c,20,-180,-270),...At(s/2+c*2,c,c,20,-90,-180),{x:-s/2-c,y:-l/2},...At(s/2,l/2,c,20,0,90)],f=[...At(-s/2+c+c/2,-l/2,c,20,-90,-180),{x:s/2-c/2,y:c},...At(-s/2-c/2,-c,c,20,0,90),...At(-s/2-c/2,c,c,20,-90,0),{x:s/2-c/2,y:-c},...At(-s/2+c+c/2,l/2,c,30,-180,-270)],d=[{x:s/2,y:-l/2-c},{x:-s/2,y:-l/2-c},...At(s/2,-l/2,c,20,-90,0),{x:-s/2-c,y:-c},...At(s/2+c*2,-c,c,20,-180,-270),...At(s/2+c*2,c,c,20,-90,-180),{x:-s/2-c,y:l/2},...At(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},...At(-s/2+c+c/2,-l/2,c,20,-90,-180),{x:s/2-c/2,y:c},...At(-s/2-c/2,-c,c,20,0,90),...At(-s/2-c/2,c,c,20,-90,0),{x:s/2-c/2,y:-c},...At(-s/2+c+c/2,l/2,c,30,-180,-270)],g=U.svg(n),m=G(t,{fill:"none"});t.look!=="handDrawn"&&(m.roughness=0,m.fillStyle="solid");const x=lt(u).replace("Z",""),b=g.path(x,m),S=lt(f).replace("Z",""),v=g.path(S,m),C=lt(d),k=g.path(C,{...m}),D=n.insert("g",":first-child");return D.insert(()=>k,":first-child").attr("stroke-opacity",0),D.insert(()=>b,":first-child"),D.insert(()=>v,":first-child"),D.attr("class","text"),h&&t.look!=="handDrawn"&&D.selectAll("path").attr("style",h),i&&t.look!=="handDrawn"&&D.selectAll("path").attr("style",i),D.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))})`),X(t,D),t.intersect=function(R){return z.polygon(t,d,R)},n}p(Ip,"curlyBraces");async function Pp(e,t){const{labelStyles:r,nodeStyles:i}=Y(t);t.labelStyle=r;const{shapeSvg:n,bbox:a}=await et(e,t,tt(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=U.svg(n),d=G(t,{});t.look!=="handDrawn"&&(d.roughness=0,d.fillStyle="solid");const g=l,m=c,y=g-h,x=m/4,b=[{x:y,y:0},{x,y:0},{x:0,y:m/2},{x,y:m},{x:y,y:m},...qi(-y,-m/2,h,50,270,90)],_=lt(b),S=f.path(_,d),v=n.insert(()=>S,":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})`),X(t,v),t.intersect=function(C){return z.polygon(t,b,C)},n}p(Pp,"curvedTrapezoid");var Iw=p((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"),Pw=p((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"),Rw=p((e,t,r,i,n,a)=>[`M${e-r/2},${-i/2}`,`a${n},${a} 0,0,0 ${r},0`].join(" "),"createInnerCylinderPathD");async function Rp(e,t){const{labelStyles:r,nodeStyles:i}=Y(t);t.labelStyle=r;const{shapeSvg:n,bbox:a,label:o}=await et(e,t,tt(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 d=U.svg(n),g=Pw(0,0,s,h,l,c),m=Rw(0,c,s,h,l,c),y=d.path(g,G(t,{})),x=d.path(m,G(t,{fill:"none"}));u=n.insert(()=>x,":first-child"),u=n.insert(()=>y,":first-child"),u.attr("class","basic label-container"),f&&u.attr("style",f)}else{const d=Iw(0,0,s,h,l,c);u=n.insert("path",":first-child").attr("d",d).attr("class","basic label-container").attr("style",Pt(f)).attr("style",i)}return u.attr("label-offset-y",c),u.attr("transform",`translate(${-s/2}, ${-(h/2+c)})`),X(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(d){const g=z.rect(t,d),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 y=c*c*(1-m*m/(l*l));y>0&&(y=Math.sqrt(y)),y=c-y,d.y-(t.y??0)>0&&(y=-y),g.y+=y}return g},n}p(Rp,"cylinder");async function Np(e,t){const{labelStyles:r,nodeStyles:i}=Y(t);t.labelStyle=r;const{shapeSvg:n,bbox:a,label:o}=await et(e,t,tt(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,d=U.svg(n),g=G(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}],y=d.polygon(m.map(b=>[b.x,b.y]),g),x=n.insert(()=>y,":first-child");return x.attr("class","basic label-container"),f&&t.look!=="handDrawn"&&x.selectAll("path").attr("style",f),i&&t.look!=="handDrawn"&&x.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))})`),X(t,x),t.intersect=function(b){return z.rect(t,b)},n}p(Np,"dividedRectangle");async function Wp(e,t){var f,d;const{labelStyles:r,nodeStyles:i}=Y(t);t.labelStyle=r;const{shapeSvg:n,bbox:a,halfPadding:o}=await et(e,t,tt(t)),l=a.width/2+o+5,c=a.width/2+o;let h;const{cssStyles:u}=t;if(t.look==="handDrawn"){const g=U.svg(n),m=G(t,{roughness:.2,strokeWidth:2.5}),y=G(t,{roughness:.2,strokeWidth:1.5}),x=g.circle(0,0,l*2,m),b=g.circle(0,0,c*2,y);h=n.insert("g",":first-child"),h.attr("class",Pt(t.cssClasses)).attr("style",Pt(u)),(f=h.node())==null||f.appendChild(x),(d=h.node())==null||d.appendChild(b)}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 X(t,h),t.intersect=function(g){return $.info("DoubleCircle intersect",t,l,g),z.circle(t,l,g)},n}p(Wp,"doublecircle");function qp(e,t,{config:{themeVariables:r}}){const{labelStyles:i,nodeStyles:n}=Y(t);t.label="",t.labelStyle=i;const a=e.insert("g").attr("class",tt(t)).attr("id",t.domId??t.id),o=7,{cssStyles:s}=t,l=U.svg(a),{nodeBorder:c}=r,h=G(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),X(t,f),t.intersect=function(d){return $.info("filledCircle intersect",t,{radius:o,point:d}),z.circle(t,o,d)},a}p(qp,"filledCircle");async function zp(e,t){const{labelStyles:r,nodeStyles:i}=Y(t);t.labelStyle=r;const{shapeSvg:n,bbox:a,label:o}=await et(e,t,tt(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=U.svg(n),d=G(t,{});t.look!=="handDrawn"&&(d.roughness=0,d.fillStyle="solid");const g=lt(h),m=f.path(g,d),y=n.insert(()=>m,":first-child").attr("transform",`translate(${-l/2}, ${l/2})`);return u&&t.look!=="handDrawn"&&y.selectChildren("path").attr("style",u),i&&t.look!=="handDrawn"&&y.selectChildren("path").attr("style",i),t.width=s,t.height=l,X(t,y),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(x){return $.info("Triangle intersect",t,h,x),z.polygon(t,h,x)},n}p(zp,"flippedTriangle");function Hp(e,t,{dir:r,config:{state:i,themeVariables:n}}){const{nodeStyles:a}=Y(t);t.label="";const o=e.insert("g").attr("class",tt(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=U.svg(o),d=G(t,{stroke:n.lineColor,fill:n.lineColor});t.look!=="handDrawn"&&(d.roughness=0,d.fillStyle="solid");const g=f.rectangle(h,u,l,c,d),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),X(t,m);const y=(i==null?void 0:i.padding)??0;return t.width&&t.height&&(t.width+=y/2||0,t.height+=y/2||0),t.intersect=function(x){return z.rect(t,x)},o}p(Hp,"forkJoin");async function jp(e,t){const{labelStyles:r,nodeStyles:i}=Y(t);t.labelStyle=r;const n=80,a=50,{shapeSvg:o,bbox:s}=await et(e,t,tt(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=U.svg(o),d=G(t,{});t.look!=="handDrawn"&&(d.roughness=0,d.fillStyle="solid");const g=[{x:-l/2,y:-c/2},{x:l/2-h,y:-c/2},...qi(-l/2+h,0,h,50,90,270),{x:l/2-h,y:c/2},{x:-l/2,y:c/2}],m=lt(g),y=f.path(m,d),x=o.insert(()=>y,":first-child");return x.attr("class","basic label-container"),u&&t.look!=="handDrawn"&&x.selectChildren("path").attr("style",u),i&&t.look!=="handDrawn"&&x.selectChildren("path").attr("style",i),X(t,x),t.intersect=function(b){return $.info("Pill intersect",t,{radius:h,point:b}),z.polygon(t,g,b)},o}p(jp,"halfRoundedRectangle");async function Yp(e,t){const{labelStyles:r,nodeStyles:i}=Y(t);t.labelStyle=r;const{shapeSvg:n,bbox:a}=await et(e,t,tt(t)),o=a.height+(t.padding??0),s=a.width+(t.padding??0)*2.5,{cssStyles:l}=t,c=U.svg(n),h=G(t,{});t.look!=="handDrawn"&&(h.roughness=0,h.fillStyle="solid");let u=s/2;const f=u/6;u=u+f;const d=o/2,g=d/2,m=u-g,y=[{x:-m,y:-d},{x:0,y:-d},{x:m,y:-d},{x:u,y:0},{x:m,y:d},{x:0,y:d},{x:-m,y:d},{x:-u,y:0}],x=lt(y),b=c.path(x,h),_=n.insert(()=>b,":first-child");return _.attr("class","basic label-container"),l&&t.look!=="handDrawn"&&_.selectChildren("path").attr("style",l),i&&t.look!=="handDrawn"&&_.selectChildren("path").attr("style",i),t.width=s,t.height=o,X(t,_),t.intersect=function(S){return z.polygon(t,y,S)},n}p(Yp,"hexagon");async function Up(e,t){const{labelStyles:r,nodeStyles:i}=Y(t);t.label="",t.labelStyle=r;const{shapeSvg:n}=await et(e,t,tt(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=U.svg(n),c=G(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=lt(h),f=l.path(u,c),d=n.insert(()=>f,":first-child");return d.attr("class","basic label-container"),s&&t.look!=="handDrawn"&&d.selectChildren("path").attr("style",s),i&&t.look!=="handDrawn"&&d.selectChildren("path").attr("style",i),d.attr("transform",`translate(${-a/2}, ${-o/2})`),X(t,d),t.intersect=function(g){return $.info("Pill intersect",t,{points:h}),z.polygon(t,h,g)},n}p(Up,"hourglass");async function Gp(e,t,{config:{themeVariables:r,flowchart:i}}){const{labelStyles:n}=Y(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 et(e,t,"icon-shape default"),f=t.pos==="t",d=s,g=s,{nodeBorder:m}=r,{stylesMap:y}=Qr(t),x=-g/2,b=-d/2,_=t.label?8:0,S=U.svg(c),v=G(t,{stroke:"none",fill:"none"});t.look!=="handDrawn"&&(v.roughness=0,v.fillStyle="solid");const C=S.rectangle(x,b,g,d,v),k=Math.max(g,h.width),D=d+h.height+_,R=S.rectangle(-k/2,-D/2,k,D,{...v,fill:"transparent",stroke:"none"}),I=c.insert(()=>C,":first-child"),E=c.insert(()=>R);if(t.icon){const W=c.append("g");W.html(`<g>${await ei(t.icon,{height:s,width:s,fallbackPrefix:""})}</g>`);const O=W.node().getBBox(),A=O.width,L=O.height,B=O.x,F=O.y;W.attr("transform",`translate(${-A/2-B},${f?h.height/2+_/2-L/2-F:-h.height/2-_/2-L/2-F})`),W.attr("style",`color: ${y.get("stroke")??m};`)}return u.attr("transform",`translate(${-h.width/2-(h.x-(h.left??0))},${f?-D/2:D/2-h.height})`),I.attr("transform",`translate(0,${f?h.height/2+_/2:-h.height/2-_/2})`),X(t,E),t.intersect=function(W){if($.info("iconSquare intersect",t,W),!t.label)return z.rect(t,W);const O=t.x??0,A=t.y??0,L=t.height??0;let B=[];return f?B=[{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+_},{x:O+g/2,y:A-L/2+h.height+_},{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+_},{x:O-h.width/2,y:A-L/2+h.height+_}]:B=[{x:O-g/2,y:A-L/2},{x:O+g/2,y:A-L/2},{x:O+g/2,y:A-L/2+d},{x:O+h.width/2,y:A-L/2+d},{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+d},{x:O-g/2,y:A-L/2+d}],z.polygon(t,B,W)},c}p(Gp,"icon");async function Xp(e,t,{config:{themeVariables:r,flowchart:i}}){const{labelStyles:n}=Y(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 et(e,t,"icon-shape default"),f=20,d=t.label?8:0,g=t.pos==="t",{nodeBorder:m,mainBkg:y}=r,{stylesMap:x}=Qr(t),b=U.svg(c),_=G(t,{});t.look!=="handDrawn"&&(_.roughness=0,_.fillStyle="solid");const S=x.get("fill");_.stroke=S??y;const v=c.append("g");t.icon&&v.html(`<g>${await ei(t.icon,{height:s,width:s,fallbackPrefix:""})}</g>`);const C=v.node().getBBox(),k=C.width,D=C.height,R=C.x,I=C.y,E=Math.max(k,D)*Math.SQRT2+f*2,W=b.circle(0,0,E,_),O=Math.max(E,h.width),A=E+h.height+d,L=b.rectangle(-O/2,-A/2,O,A,{..._,fill:"transparent",stroke:"none"}),B=c.insert(()=>W,":first-child"),F=c.insert(()=>L);return v.attr("transform",`translate(${-k/2-R},${g?h.height/2+d/2-D/2-I:-h.height/2-d/2-D/2-I})`),v.attr("style",`color: ${x.get("stroke")??m};`),u.attr("transform",`translate(${-h.width/2-(h.x-(h.left??0))},${g?-A/2:A/2-h.height})`),B.attr("transform",`translate(0,${g?h.height/2+d/2:-h.height/2-d/2})`),X(t,F),t.intersect=function(M){return $.info("iconSquare intersect",t,M),z.rect(t,M)},c}p(Xp,"iconCircle");async function Vp(e,t,{config:{themeVariables:r,flowchart:i}}){const{labelStyles:n}=Y(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 et(e,t,"icon-shape default"),d=t.pos==="t",g=s+u*2,m=s+u*2,{nodeBorder:y,mainBkg:x}=r,{stylesMap:b}=Qr(t),_=-m/2,S=-g/2,v=t.label?8:0,C=U.svg(c),k=G(t,{});t.look!=="handDrawn"&&(k.roughness=0,k.fillStyle="solid");const D=b.get("fill");k.stroke=D??x;const R=C.path(Ye(_,S,m,g,5),k),I=Math.max(m,h.width),E=g+h.height+v,W=C.rectangle(-I/2,-E/2,I,E,{...k,fill:"transparent",stroke:"none"}),O=c.insert(()=>R,":first-child").attr("class","icon-shape2"),A=c.insert(()=>W);if(t.icon){const L=c.append("g");L.html(`<g>${await ei(t.icon,{height:s,width:s,fallbackPrefix:""})}</g>`);const B=L.node().getBBox(),F=B.width,M=B.height,q=B.x,V=B.y;L.attr("transform",`translate(${-F/2-q},${d?h.height/2+v/2-M/2-V:-h.height/2-v/2-M/2-V})`),L.attr("style",`color: ${b.get("stroke")??y};`)}return f.attr("transform",`translate(${-h.width/2-(h.x-(h.left??0))},${d?-E/2:E/2-h.height})`),O.attr("transform",`translate(0,${d?h.height/2+v/2:-h.height/2-v/2})`),X(t,A),t.intersect=function(L){if($.info("iconSquare intersect",t,L),!t.label)return z.rect(t,L);const B=t.x??0,F=t.y??0,M=t.height??0;let q=[];return d?q=[{x:B-h.width/2,y:F-M/2},{x:B+h.width/2,y:F-M/2},{x:B+h.width/2,y:F-M/2+h.height+v},{x:B+m/2,y:F-M/2+h.height+v},{x:B+m/2,y:F+M/2},{x:B-m/2,y:F+M/2},{x:B-m/2,y:F-M/2+h.height+v},{x:B-h.width/2,y:F-M/2+h.height+v}]:q=[{x:B-m/2,y:F-M/2},{x:B+m/2,y:F-M/2},{x:B+m/2,y:F-M/2+g},{x:B+h.width/2,y:F-M/2+g},{x:B+h.width/2/2,y:F+M/2},{x:B-h.width/2,y:F+M/2},{x:B-h.width/2,y:F-M/2+g},{x:B-m/2,y:F-M/2+g}],z.polygon(t,q,L)},c}p(Vp,"iconRounded");async function Kp(e,t,{config:{themeVariables:r,flowchart:i}}){const{labelStyles:n}=Y(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 et(e,t,"icon-shape default"),d=t.pos==="t",g=s+u*2,m=s+u*2,{nodeBorder:y,mainBkg:x}=r,{stylesMap:b}=Qr(t),_=-m/2,S=-g/2,v=t.label?8:0,C=U.svg(c),k=G(t,{});t.look!=="handDrawn"&&(k.roughness=0,k.fillStyle="solid");const D=b.get("fill");k.stroke=D??x;const R=C.path(Ye(_,S,m,g,.1),k),I=Math.max(m,h.width),E=g+h.height+v,W=C.rectangle(-I/2,-E/2,I,E,{...k,fill:"transparent",stroke:"none"}),O=c.insert(()=>R,":first-child"),A=c.insert(()=>W);if(t.icon){const L=c.append("g");L.html(`<g>${await ei(t.icon,{height:s,width:s,fallbackPrefix:""})}</g>`);const B=L.node().getBBox(),F=B.width,M=B.height,q=B.x,V=B.y;L.attr("transform",`translate(${-F/2-q},${d?h.height/2+v/2-M/2-V:-h.height/2-v/2-M/2-V})`),L.attr("style",`color: ${b.get("stroke")??y};`)}return f.attr("transform",`translate(${-h.width/2-(h.x-(h.left??0))},${d?-E/2:E/2-h.height})`),O.attr("transform",`translate(0,${d?h.height/2+v/2:-h.height/2-v/2})`),X(t,A),t.intersect=function(L){if($.info("iconSquare intersect",t,L),!t.label)return z.rect(t,L);const B=t.x??0,F=t.y??0,M=t.height??0;let q=[];return d?q=[{x:B-h.width/2,y:F-M/2},{x:B+h.width/2,y:F-M/2},{x:B+h.width/2,y:F-M/2+h.height+v},{x:B+m/2,y:F-M/2+h.height+v},{x:B+m/2,y:F+M/2},{x:B-m/2,y:F+M/2},{x:B-m/2,y:F-M/2+h.height+v},{x:B-h.width/2,y:F-M/2+h.height+v}]:q=[{x:B-m/2,y:F-M/2},{x:B+m/2,y:F-M/2},{x:B+m/2,y:F-M/2+g},{x:B+h.width/2,y:F-M/2+g},{x:B+h.width/2/2,y:F+M/2},{x:B-h.width/2,y:F+M/2},{x:B-h.width/2,y:F-M/2+g},{x:B-m/2,y:F-M/2+g}],z.polygon(t,q,L)},c}p(Kp,"iconSquare");async function Zp(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}=Y(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:d}=await et(e,t,"image-shape default"),g=t.pos==="t",m=-c/2,y=-h/2,x=t.label?8:0,b=U.svg(u),_=G(t,{});t.look!=="handDrawn"&&(_.roughness=0,_.fillStyle="solid");const S=b.rectangle(m,y,c,h,_),v=Math.max(c,f.width),C=h+f.height+x,k=b.rectangle(-v/2,-C/2,v,C,{..._,fill:"none",stroke:"none"}),D=u.insert(()=>S,":first-child"),R=u.insert(()=>k);if(t.img){const I=u.append("image");I.attr("href",t.img),I.attr("width",c),I.attr("height",h),I.attr("preserveAspectRatio","none"),I.attr("transform",`translate(${-c/2},${g?C/2-h:-C/2})`)}return d.attr("transform",`translate(${-f.width/2-(f.x-(f.left??0))},${g?-h/2-f.height/2-x/2:h/2-f.height/2+x/2})`),D.attr("transform",`translate(0,${g?f.height/2+x/2:-f.height/2-x/2})`),X(t,R),t.intersect=function(I){if($.info("iconSquare intersect",t,I),!t.label)return z.rect(t,I);const E=t.x??0,W=t.y??0,O=t.height??0;let A=[];return g?A=[{x:E-f.width/2,y:W-O/2},{x:E+f.width/2,y:W-O/2},{x:E+f.width/2,y:W-O/2+f.height+x},{x:E+c/2,y:W-O/2+f.height+x},{x:E+c/2,y:W+O/2},{x:E-c/2,y:W+O/2},{x:E-c/2,y:W-O/2+f.height+x},{x:E-f.width/2,y:W-O/2+f.height+x}]:A=[{x:E-c/2,y:W-O/2},{x:E+c/2,y:W-O/2},{x:E+c/2,y:W-O/2+h},{x:E+f.width/2,y:W-O/2+h},{x:E+f.width/2/2,y:W+O/2},{x:E-f.width/2,y:W+O/2},{x:E-f.width/2,y:W-O/2+h},{x:E-c/2,y:W-O/2+h}],z.polygon(t,A,I)},u}p(Zp,"imageSquare");async function Qp(e,t){const{labelStyles:r,nodeStyles:i}=Y(t);t.labelStyle=r;const{shapeSvg:n,bbox:a}=await et(e,t,tt(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=U.svg(n),f=G(t,{}),d=lt(l),g=u.path(d,f);c=n.insert(()=>g,":first-child").attr("transform",`translate(${-o/2}, ${s/2})`),h&&c.attr("style",h)}else c=Ue(n,o,s,l);return i&&c.attr("style",i),t.width=o,t.height=s,X(t,c),t.intersect=function(u){return z.polygon(t,l,u)},n}p(Qp,"inv_trapezoid");async function Aa(e,t,r){const{labelStyles:i,nodeStyles:n}=Y(t);t.labelStyle=i;const{shapeSvg:a,bbox:o}=await et(e,t,tt(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:d}=t;const{cssStyles:g}=t;if(r!=null&&r.rx&&r.ry&&(f=r.rx,d=r.ry),t.look==="handDrawn"){const m=U.svg(a),y=G(t,{}),x=f||d?m.path(Ye(c,h,s,l,f||0),y):m.rectangle(c,h,s,l,y);u=a.insert(()=>x,":first-child"),u.attr("class","basic label-container").attr("style",Pt(g))}else u=a.insert("rect",":first-child"),u.attr("class","basic label-container").attr("style",n).attr("rx",Pt(f)).attr("ry",Pt(d)).attr("x",c).attr("y",h).attr("width",s).attr("height",l);return X(t,u),t.calcIntersect=function(m,y){return z.rect(m,y)},t.intersect=function(m){return z.rect(t,m)},a}p(Aa,"drawRect");async function Jp(e,t){const{shapeSvg:r,bbox:i,label:n}=await et(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))})`),X(t,a),t.intersect=function(l){return z.rect(t,l)},r}p(Jp,"labelRect");async function tg(e,t){const{labelStyles:r,nodeStyles:i}=Y(t);t.labelStyle=r;const{shapeSvg:n,bbox:a}=await et(e,t,tt(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=U.svg(n),f=G(t,{}),d=lt(l),g=u.path(d,f);c=n.insert(()=>g,":first-child").attr("transform",`translate(${-o/2}, ${s/2})`),h&&c.attr("style",h)}else c=Ue(n,o,s,l);return i&&c.attr("style",i),t.width=o,t.height=s,X(t,c),t.intersect=function(u){return z.polygon(t,l,u)},n}p(tg,"lean_left");async function eg(e,t){const{labelStyles:r,nodeStyles:i}=Y(t);t.labelStyle=r;const{shapeSvg:n,bbox:a}=await et(e,t,tt(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=U.svg(n),f=G(t,{}),d=lt(l),g=u.path(d,f);c=n.insert(()=>g,":first-child").attr("transform",`translate(${-o/2}, ${s/2})`),h&&c.attr("style",h)}else c=Ue(n,o,s,l);return i&&c.attr("style",i),t.width=o,t.height=s,X(t,c),t.intersect=function(u){return z.polygon(t,l,u)},n}p(eg,"lean_right");function rg(e,t){const{labelStyles:r,nodeStyles:i}=Y(t);t.label="",t.labelStyle=r;const n=e.insert("g").attr("class",tt(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=U.svg(n),u=G(t,{});t.look!=="handDrawn"&&(u.roughness=0,u.fillStyle="solid");const f=lt(c),d=h.path(f,u),g=n.insert(()=>d,":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})`),X(t,g),t.intersect=function(m){return $.info("lightningBolt intersect",t,m),z.polygon(t,c,m)},n}p(rg,"lightningBolt");var Nw=p((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"),Ww=p((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"),qw=p((e,t,r,i,n,a)=>[`M${e-r/2},${-i/2}`,`a${n},${a} 0,0,0 ${r},0`].join(" "),"createInnerCylinderPathD");async function ig(e,t){const{labelStyles:r,nodeStyles:i}=Y(t);t.labelStyle=r;const{shapeSvg:n,bbox:a,label:o}=await et(e,t,tt(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:d}=t;if(t.look==="handDrawn"){const g=U.svg(n),m=Ww(0,0,s,h,l,c,u),y=qw(0,c,s,h,l,c),x=G(t,{}),b=g.path(m,x),_=g.path(y,x);n.insert(()=>_,":first-child").attr("class","line"),f=n.insert(()=>b,":first-child"),f.attr("class","basic label-container"),d&&f.attr("style",d)}else{const g=Nw(0,0,s,h,l,c,u);f=n.insert("path",":first-child").attr("d",g).attr("class","basic label-container").attr("style",Pt(d)).attr("style",i)}return f.attr("label-offset-y",c),f.attr("transform",`translate(${-s/2}, ${-(h/2+c)})`),X(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=z.rect(t,g),y=m.x-(t.x??0);if(l!=0&&(Math.abs(y)<(t.width??0)/2||Math.abs(y)==(t.width??0)/2&&Math.abs(m.y-(t.y??0))>(t.height??0)/2-c)){let x=c*c*(1-y*y/(l*l));x>0&&(x=Math.sqrt(x)),x=c-x,g.y-(t.y??0)>0&&(x=-x),m.y+=x}return m},n}p(ig,"linedCylinder");async function ng(e,t){const{labelStyles:r,nodeStyles:i}=Y(t);t.labelStyle=r;const{shapeSvg:n,bbox:a,label:o}=await et(e,t,tt(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=U.svg(n),d=G(t,{});t.look!=="handDrawn"&&(d.roughness=0,d.fillStyle="solid");const g=[{x:-s/2-s/2*.1,y:-h/2},{x:-s/2-s/2*.1,y:h/2},...ze(-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(x=>[x.x,x.y]),d),y=n.insert(()=>m,":first-child");return y.attr("class","basic label-container"),u&&t.look!=="handDrawn"&&y.selectAll("path").attr("style",u),i&&t.look!=="handDrawn"&&y.selectAll("path").attr("style",i),y.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))})`),X(t,y),t.intersect=function(x){return z.polygon(t,g,x)},n}p(ng,"linedWaveEdgedRect");async function ag(e,t){const{labelStyles:r,nodeStyles:i}=Y(t);t.labelStyle=r;const{shapeSvg:n,bbox:a,label:o}=await et(e,t,tt(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,d=U.svg(n),g=G(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}],y=[{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 x=lt(m),b=d.path(x,g),_=lt(y),S=d.path(_,{...g,fill:"none"}),v=n.insert(()=>S,":first-child");return v.insert(()=>b,":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))})`),X(t,v),t.intersect=function(C){return z.polygon(t,m,C)},n}p(ag,"multiRect");async function sg(e,t){const{labelStyles:r,nodeStyles:i}=Y(t);t.labelStyle=r;const{shapeSvg:n,bbox:a,label:o}=await et(e,t,tt(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,d=5,{cssStyles:g}=t,m=ze(u-d,f+h+d,u+s-d,f+h+d,c,.8),y=m==null?void 0:m[m.length-1],x=[{x:u-d,y:f+d},{x:u-d,y:f+h+d},...m,{x:u+s-d,y:y.y-d},{x:u+s,y:y.y-d},{x:u+s,y:y.y-2*d},{x:u+s+d,y:y.y-2*d},{x:u+s+d,y:f-d},{x:u+d,y:f-d},{x:u+d,y:f},{x:u,y:f},{x:u,y:f+d}],b=[{x:u,y:f+d},{x:u+s-d,y:f+d},{x:u+s-d,y:y.y-d},{x:u+s,y:y.y-d},{x:u+s,y:f},{x:u,y:f}],_=U.svg(n),S=G(t,{});t.look!=="handDrawn"&&(S.roughness=0,S.fillStyle="solid");const v=lt(x),C=_.path(v,S),k=lt(b),D=_.path(k,S),R=n.insert(()=>C,":first-child");return R.insert(()=>D),R.attr("class","basic label-container"),g&&t.look!=="handDrawn"&&R.selectAll("path").attr("style",g),i&&t.look!=="handDrawn"&&R.selectAll("path").attr("style",i),R.attr("transform",`translate(0,${-c/2})`),o.attr("transform",`translate(${-(a.width/2)-d-(a.x-(a.left??0))}, ${-(a.height/2)+d-c/2-(a.y-(a.top??0))})`),X(t,R),t.intersect=function(I){return z.polygon(t,x,I)},n}p(sg,"multiWaveEdgedRectangle");async function og(e,t,{config:{themeVariables:r}}){var b;const{labelStyles:i,nodeStyles:n}=Y(t);t.labelStyle=i,t.useHtmlLabels||((b=Ft().flowchart)==null?void 0:b.htmlLabels)!==!1||(t.centerLabel=!0);const{shapeSvg:o,bbox:s,label:l}=await et(e,t,tt(t)),c=Math.max(s.width+(t.padding??0)*2,(t==null?void 0:t.width)??0),h=Math.max(s.height+(t.padding??0)*2,(t==null?void 0:t.height)??0),u=-c/2,f=-h/2,{cssStyles:d}=t,g=U.svg(o),m=G(t,{fill:r.noteBkgColor,stroke:r.noteBorderColor});t.look!=="handDrawn"&&(m.roughness=0,m.fillStyle="solid");const y=g.rectangle(u,f,c,h,m),x=o.insert(()=>y,":first-child");return x.attr("class","basic label-container"),d&&t.look!=="handDrawn"&&x.selectAll("path").attr("style",d),n&&t.look!=="handDrawn"&&x.selectAll("path").attr("style",n),l.attr("transform",`translate(${-s.width/2-(s.x-(s.left??0))}, ${-(s.height/2)-(s.y-(s.top??0))})`),X(t,x),t.intersect=function(_){return z.rect(t,_)},o}p(og,"note");var zw=p((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 lg(e,t){const{labelStyles:r,nodeStyles:i}=Y(t);t.labelStyle=r;const{shapeSvg:n,bbox:a}=await et(e,t,tt(t)),o=a.width+t.padding,s=a.height+t.padding,l=o+s,c=.5,h=[{x:l/2,y:0},{x:l,y:-l/2},{x:l/2,y:-l},{x:0,y:-l/2}];let u;const{cssStyles:f}=t;if(t.look==="handDrawn"){const d=U.svg(n),g=G(t,{}),m=zw(0,0,l),y=d.path(m,g);u=n.insert(()=>y,":first-child").attr("transform",`translate(${-l/2+c}, ${l/2})`),f&&u.attr("style",f)}else u=Ue(n,l,l,h),u.attr("transform",`translate(${-l/2+c}, ${l/2})`);return i&&u.attr("style",i),X(t,u),t.calcIntersect=function(d,g){const m=d.width,y=[{x:m/2,y:0},{x:m,y:-m/2},{x:m/2,y:-m},{x:0,y:-m/2}],x=z.polygon(d,y,g);return{x:x.x-.5,y:x.y-.5}},t.intersect=function(d){return this.calcIntersect(t,d)},n}p(lg,"question");async function cg(e,t){const{labelStyles:r,nodeStyles:i}=Y(t);t.labelStyle=r;const{shapeSvg:n,bbox:a,label:o}=await et(e,t,tt(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:d}=t,g=U.svg(n),m=G(t,{});t.look!=="handDrawn"&&(m.roughness=0,m.fillStyle="solid");const y=lt(f),x=g.path(y,m),b=n.insert(()=>x,":first-child");return b.attr("class","basic label-container"),d&&t.look!=="handDrawn"&&b.selectAll("path").attr("style",d),i&&t.look!=="handDrawn"&&b.selectAll("path").attr("style",i),b.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))})`),X(t,b),t.intersect=function(_){return z.polygon(t,f,_)},n}p(cg,"rect_left_inv_arrow");async function hg(e,t){var D,R;const{labelStyles:r,nodeStyles:i}=Y(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 ir(c,t.labelStyle,!0,!0));let u={width:0,height:0};if(kt((R=(D=ft())==null?void 0:D.flowchart)==null?void 0:R.htmlLabels)){const I=h.children[0],E=ht(h);u=I.getBoundingClientRect(),E.attr("width",u.width),E.attr("height",u.height)}$.info("Text 2",l);const f=l||[],d=h.getBBox(),g=s.node().appendChild(await ir(f.join?f.join("<br/>"):f,t.labelStyle,!0,!0)),m=g.children[0],y=ht(g);u=m.getBoundingClientRect(),y.attr("width",u.width),y.attr("height",u.height);const x=(t.padding||0)/2;ht(g).attr("transform","translate( "+(u.width>d.width?0:(d.width-u.width)/2)+", "+(d.height+x+5)+")"),ht(h).attr("transform","translate( "+(u.width<d.width?0:-(d.width-u.width)/2)+", 0)"),u=s.node().getBBox(),s.attr("transform","translate("+-u.width/2+", "+(-u.height/2-x+3)+")");const b=u.width+(t.padding||0),_=u.height+(t.padding||0),S=-u.width/2-x,v=-u.height/2-x;let C,k;if(t.look==="handDrawn"){const I=U.svg(a),E=G(t,{}),W=I.path(Ye(S,v,b,_,t.rx||0),E),O=I.line(-u.width/2-x,-u.height/2-x+d.height+x,u.width/2+x,-u.height/2-x+d.height+x,E);k=a.insert(()=>($.debug("Rough node insert CXC",W),O),":first-child"),C=a.insert(()=>($.debug("Rough node insert CXC",W),W),":first-child")}else C=o.insert("rect",":first-child"),k=o.insert("line"),C.attr("class","outer title-state").attr("style",i).attr("x",-u.width/2-x).attr("y",-u.height/2-x).attr("width",u.width+(t.padding||0)).attr("height",u.height+(t.padding||0)),k.attr("class","divider").attr("x1",-u.width/2-x).attr("x2",u.width/2+x).attr("y1",-u.height/2-x+d.height+x).attr("y2",-u.height/2-x+d.height+x);return X(t,C),t.intersect=function(I){return z.rect(t,I)},a}p(hg,"rectWithTitle");function _i(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,d=u/n,g=f/a,m=Math.sqrt(d**2+g**2);if(m>1)throw new Error("The given radii are too small to create an arc between the points.");const y=Math.sqrt(1-m**2),x=l+y*a*Math.sin(h)*(o?-1:1),b=c-y*n*Math.cos(h)*(o?-1:1),_=Math.atan2((t-b)/a,(e-x)/n);let v=Math.atan2((i-b)/a,(r-x)/n)-_;o&&v<0&&(v+=2*Math.PI),!o&&v>0&&(v-=2*Math.PI);const C=[];for(let k=0;k<20;k++){const D=k/19,R=_+D*v,I=x+n*Math.cos(R),E=b+a*Math.sin(R);C.push({x:I,y:E})}return C}p(_i,"generateArcPoints");async function ug(e,t){const{labelStyles:r,nodeStyles:i}=Y(t);t.labelStyle=r;const{shapeSvg:n,bbox:a}=await et(e,t,tt(t)),o=(t==null?void 0:t.padding)??0,s=(t==null?void 0:t.padding)??0,l=(t!=null&&t.width?t==null?void 0:t.width:a.width)+o*2,c=(t!=null&&t.height?t==null?void 0:t.height:a.height)+s*2,h=t.radius||5,u=t.taper||5,{cssStyles:f}=t,d=U.svg(n),g=G(t,{});t.stroke&&(g.stroke=t.stroke),t.look!=="handDrawn"&&(g.roughness=0,g.fillStyle="solid");const m=[{x:-l/2+u,y:-c/2},{x:l/2-u,y:-c/2},..._i(l/2-u,-c/2,l/2,-c/2+u,h,h,!0),{x:l/2,y:-c/2+u},{x:l/2,y:c/2-u},..._i(l/2,c/2-u,l/2-u,c/2,h,h,!0),{x:l/2-u,y:c/2},{x:-l/2+u,y:c/2},..._i(-l/2+u,c/2,-l/2,c/2-u,h,h,!0),{x:-l/2,y:c/2-u},{x:-l/2,y:-c/2+u},..._i(-l/2,-c/2+u,-l/2+u,-c/2,h,h,!0)],y=lt(m),x=d.path(y,g),b=n.insert(()=>x,":first-child");return b.attr("class","basic label-container outer-path"),f&&t.look!=="handDrawn"&&b.selectChildren("path").attr("style",f),i&&t.look!=="handDrawn"&&b.selectChildren("path").attr("style",i),X(t,b),t.intersect=function(_){return z.polygon(t,m,_)},n}p(ug,"roundedRect");async function fg(e,t){const{labelStyles:r,nodeStyles:i}=Y(t);t.labelStyle=r;const{shapeSvg:n,bbox:a,label:o}=await et(e,t,tt(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,d=U.svg(n),g=G(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}],y=d.polygon(m.map(b=>[b.x,b.y]),g),x=n.insert(()=>y,":first-child");return x.attr("class","basic label-container").attr("style",Pt(f)),i&&t.look!=="handDrawn"&&x.selectAll("path").attr("style",i),f&&t.look!=="handDrawn"&&x.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))})`),X(t,x),t.intersect=function(b){return z.rect(t,b)},n}p(fg,"shadedProcess");async function dg(e,t){const{labelStyles:r,nodeStyles:i}=Y(t);t.labelStyle=r;const{shapeSvg:n,bbox:a,label:o}=await et(e,t,tt(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=U.svg(n),d=G(t,{});t.look!=="handDrawn"&&(d.roughness=0,d.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=lt(g),y=f.path(m,d),x=n.insert(()=>y,":first-child");return x.attr("class","basic label-container"),u&&t.look!=="handDrawn"&&x.selectChildren("path").attr("style",u),i&&t.look!=="handDrawn"&&x.selectChildren("path").attr("style",i),x.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))})`),X(t,x),t.intersect=function(b){return z.polygon(t,g,b)},n}p(dg,"slopedRect");async function pg(e,t){const r={rx:0,ry:0,classes:"",labelPaddingX:t.labelPaddingX??((t==null?void 0:t.padding)||0)*2,labelPaddingY:((t==null?void 0:t.padding)||0)*1};return Aa(e,t,r)}p(pg,"squareRect");async function gg(e,t){const{labelStyles:r,nodeStyles:i}=Y(t);t.labelStyle=r;const{shapeSvg:n,bbox:a}=await et(e,t,tt(t)),o=a.height+t.padding,s=a.width+o/4+t.padding,l=o/2,{cssStyles:c}=t,h=U.svg(n),u=G(t,{});t.look!=="handDrawn"&&(u.roughness=0,u.fillStyle="solid");const f=[{x:-s/2+l,y:-o/2},{x:s/2-l,y:-o/2},...qi(-s/2+l,0,l,50,90,270),{x:s/2-l,y:o/2},...qi(s/2-l,0,l,50,270,450)],d=lt(f),g=h.path(d,u),m=n.insert(()=>g,":first-child");return m.attr("class","basic label-container outer-path"),c&&t.look!=="handDrawn"&&m.selectChildren("path").attr("style",c),i&&t.look!=="handDrawn"&&m.selectChildren("path").attr("style",i),X(t,m),t.intersect=function(y){return z.polygon(t,f,y)},n}p(gg,"stadium");async function mg(e,t){return Aa(e,t,{rx:5,ry:5,classes:"flowchart-node"})}p(mg,"state");function yg(e,t,{config:{themeVariables:r}}){const{labelStyles:i,nodeStyles:n}=Y(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=U.svg(c),u=G(t,{});t.look!=="handDrawn"&&(u.roughness=0,u.fillStyle="solid");const f=h.circle(0,0,14,{...u,stroke:o,strokeWidth:2}),d=s??l,g=h.circle(0,0,5,{...u,fill:d,stroke:d,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),X(t,m),t.intersect=function(y){return z.circle(t,7,y)},c}p(yg,"stateEnd");function xg(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=U.svg(n).circle(0,0,14,rC(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 X(t,a),t.intersect=function(o){return z.circle(t,7,o)},n}p(xg,"stateStart");async function bg(e,t){const{labelStyles:r,nodeStyles:i}=Y(t);t.labelStyle=r;const{shapeSvg:n,bbox:a}=await et(e,t,tt(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=U.svg(n),d=G(t,{}),g=f.rectangle(c-8,h,s+16,l,d),m=f.line(c,h,c,h+l,d),y=f.line(c+s,h,c+s,h+l,d);n.insert(()=>m,":first-child"),n.insert(()=>y,":first-child");const x=n.insert(()=>g,":first-child"),{cssStyles:b}=t;x.attr("class","basic label-container").attr("style",Pt(b)),X(t,x)}else{const f=Ue(n,s,l,u);i&&f.attr("style",i),X(t,f)}return t.intersect=function(f){return z.polygon(t,u,f)},n}p(bg,"subroutine");async function Cg(e,t){const{labelStyles:r,nodeStyles:i}=Y(t);t.labelStyle=r;const{shapeSvg:n,bbox:a}=await et(e,t,tt(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,d=U.svg(n),g=G(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}],y=[{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 x=lt(m),b=d.path(x,g),_=lt(y),S=d.path(_,{...g,fillStyle:"solid"}),v=n.insert(()=>S,":first-child");return v.insert(()=>b,":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),X(t,v),t.intersect=function(C){return z.polygon(t,m,C)},n}p(Cg,"taggedRect");async function _g(e,t){const{labelStyles:r,nodeStyles:i}=Y(t);t.labelStyle=r;const{shapeSvg:n,bbox:a,label:o}=await et(e,t,tt(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:d}=t,g=U.svg(n),m=G(t,{});t.look!=="handDrawn"&&(m.roughness=0,m.fillStyle="solid");const y=[{x:-s/2-s/2*.1,y:f/2},...ze(-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}],x=-s/2+s/2*.1,b=-f/2-u*.4,_=[{x:x+s-h,y:(b+l)*1.4},{x:x+s,y:b+l-u},{x:x+s,y:(b+l)*.9},...ze(x+s,(b+l)*1.3,x+s-h,(b+l)*1.5,-l*.03,.5)],S=lt(y),v=g.path(S,m),C=lt(_),k=g.path(C,{...m,fillStyle:"solid"}),D=n.insert(()=>k,":first-child");return D.insert(()=>v,":first-child"),D.attr("class","basic label-container"),d&&t.look!=="handDrawn"&&D.selectAll("path").attr("style",d),i&&t.look!=="handDrawn"&&D.selectAll("path").attr("style",i),D.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))})`),X(t,D),t.intersect=function(R){return z.polygon(t,y,R)},n}p(_g,"taggedWaveEdgedRectangle");async function vg(e,t){const{labelStyles:r,nodeStyles:i}=Y(t);t.labelStyle=r;const{shapeSvg:n,bbox:a}=await et(e,t,tt(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),X(t,h),t.intersect=function(u){return z.rect(t,u)},n}p(vg,"text");var Hw=p((e,t,r,i,n,a)=>`M${e},${t}
129
- a${n},${a} 0,0,1 0,${-i}
130
- l${r},0
131
- a${n},${a} 0,0,1 0,${i}
132
- M${r},${-i}
133
- a${n},${a} 0,0,0 0,${i}
134
- l${-r},0`,"createCylinderPathD"),jw=p((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"),Yw=p((e,t,r,i,n,a)=>[`M${e+r/2},${-i/2}`,`a${n},${a} 0,0,0 0,${i}`].join(" "),"createInnerCylinderPathD");async function wg(e,t){const{labelStyles:r,nodeStyles:i}=Y(t);t.labelStyle=r;const{shapeSvg:n,bbox:a,label:o,halfPadding:s}=await et(e,t,tt(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:d}=t;let g;if(t.look==="handDrawn"){const m=U.svg(n),y=jw(0,0,f,c,u,h),x=Yw(0,0,f,c,u,h),b=m.path(y,G(t,{})),_=m.path(x,G(t,{fill:"none"}));g=n.insert(()=>_,":first-child"),g=n.insert(()=>b,":first-child"),g.attr("class","basic label-container"),d&&g.attr("style",d)}else{const m=Hw(0,0,f,c,u,h);g=n.insert("path",":first-child").attr("d",m).attr("class","basic label-container").attr("style",Pt(d)).attr("style",i),g.attr("class","basic label-container"),d&&g.selectAll("path").attr("style",d),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))})`),X(t,g),t.intersect=function(m){const y=z.rect(t,m),x=y.y-(t.y??0);if(h!=0&&(Math.abs(x)<(t.height??0)/2||Math.abs(x)==(t.height??0)/2&&Math.abs(y.x-(t.x??0))>(t.width??0)/2-u)){let b=u*u*(1-x*x/(h*h));b!=0&&(b=Math.sqrt(Math.abs(b))),b=u-b,m.x-(t.x??0)>0&&(b=-b),y.x+=b}return y},n}p(wg,"tiltedCylinder");async function Sg(e,t){const{labelStyles:r,nodeStyles:i}=Y(t);t.labelStyle=r;const{shapeSvg:n,bbox:a}=await et(e,t,tt(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=U.svg(n),f=G(t,{}),d=lt(l),g=u.path(d,f);c=n.insert(()=>g,":first-child").attr("transform",`translate(${-o/2}, ${s/2})`),h&&c.attr("style",h)}else c=Ue(n,o,s,l);return i&&c.attr("style",i),t.width=o,t.height=s,X(t,c),t.intersect=function(u){return z.polygon(t,l,u)},n}p(Sg,"trapezoid");async function kg(e,t){const{labelStyles:r,nodeStyles:i}=Y(t);t.labelStyle=r;const{shapeSvg:n,bbox:a}=await et(e,t,tt(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=U.svg(n),f=G(t,{});t.look!=="handDrawn"&&(f.roughness=0,f.fillStyle="solid");const d=[{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=lt(d),m=u.path(g,f),y=n.insert(()=>m,":first-child");return y.attr("class","basic label-container"),h&&t.look!=="handDrawn"&&y.selectChildren("path").attr("style",h),i&&t.look!=="handDrawn"&&y.selectChildren("path").attr("style",i),X(t,y),t.intersect=function(x){return z.polygon(t,d,x)},n}p(kg,"trapezoidalPentagon");async function Tg(e,t){var b;const{labelStyles:r,nodeStyles:i}=Y(t);t.labelStyle=r;const{shapeSvg:n,bbox:a,label:o}=await et(e,t,tt(t)),s=kt((b=ft().flowchart)==null?void 0:b.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,d=U.svg(n),g=G(t,{});t.look!=="handDrawn"&&(g.roughness=0,g.fillStyle="solid");const m=lt(u),y=d.path(m,g),x=n.insert(()=>y,":first-child").attr("transform",`translate(${-c/2}, ${c/2})`);return f&&t.look!=="handDrawn"&&x.selectChildren("path").attr("style",f),i&&t.look!=="handDrawn"&&x.selectChildren("path").attr("style",i),t.width=l,t.height=c,X(t,x),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(_){return $.info("Triangle intersect",t,u,_),z.polygon(t,u,_)},n}p(Tg,"triangle");async function Bg(e,t){const{labelStyles:r,nodeStyles:i}=Y(t);t.labelStyle=r;const{shapeSvg:n,bbox:a,label:o}=await et(e,t,tt(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,d=70-s,g=d>0?d/2:0,m=U.svg(n),y=G(t,{});t.look!=="handDrawn"&&(y.roughness=0,y.fillStyle="solid");const x=[{x:-s/2-g,y:h/2},...ze(-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}],b=lt(x),_=m.path(b,y),S=n.insert(()=>_,":first-child");return S.attr("class","basic label-container"),u&&t.look!=="handDrawn"&&S.selectAll("path").attr("style",u),i&&t.look!=="handDrawn"&&S.selectAll("path").attr("style",i),S.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))})`),X(t,S),t.intersect=function(v){return z.polygon(t,x,v)},n}p(Bg,"waveEdgedRectangle");async function Lg(e,t){const{labelStyles:r,nodeStyles:i}=Y(t);t.labelStyle=r;const{shapeSvg:n,bbox:a}=await et(e,t,tt(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 d=Math.min(f*.2,f/4),g=f+d*2,{cssStyles:m}=t,y=U.svg(n),x=G(t,{});t.look!=="handDrawn"&&(x.roughness=0,x.fillStyle="solid");const b=[{x:-u/2,y:g/2},...ze(-u/2,g/2,u/2,g/2,d,1),{x:u/2,y:-g/2},...ze(u/2,-g/2,-u/2,-g/2,d,-1)],_=lt(b),S=y.path(_,x),v=n.insert(()=>S,":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),X(t,v),t.intersect=function(C){return z.polygon(t,b,C)},n}p(Lg,"waveRectangle");async function Mg(e,t){const{labelStyles:r,nodeStyles:i}=Y(t);t.labelStyle=r;const{shapeSvg:n,bbox:a,label:o}=await et(e,t,tt(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,d=U.svg(n),g=G(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}],y=`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}
135
- M${h-c},${u} L${h+s},${u}
136
- M${h},${u-c} L${h},${u+l}`;t.look!=="handDrawn"&&(g.roughness=0,g.fillStyle="solid");const x=d.path(y,g),b=n.insert(()=>x,":first-child");return b.attr("transform",`translate(${c/2}, ${c/2})`),b.attr("class","basic label-container"),f&&t.look!=="handDrawn"&&b.selectAll("path").attr("style",f),i&&t.look!=="handDrawn"&&b.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))})`),X(t,b),t.intersect=function(_){return z.polygon(t,m,_)},n}p(Mg,"windowPane");async function ll(e,t){var ut,nt,dt,st;const r=t;if(r.alias&&(t.label=r.alias),t.look==="handDrawn"){const{themeVariables:at}=Ft(),{background:ct}=at,pt={...t,id:t.id+"-background",look:"default",cssStyles:["stroke: none",`fill: ${ct}`]};await ll(e,pt)}const i=Ft();t.useHtmlLabels=i.htmlLabels;let n=((ut=i.er)==null?void 0:ut.diagramPadding)??10,a=((nt=i.er)==null?void 0:nt.entityPadding)??6;const{cssStyles:o}=t,{labelStyles:s,nodeStyles:l}=Y(t);if(r.attributes.length===0&&t.label){const at={rx:0,ry:0,labelPaddingX:n,labelPaddingY:n*1.5,classes:""};ye(t.label,i)+at.labelPaddingX*2<i.er.minEntityWidth&&(t.width=i.er.minEntityWidth);const ct=await Aa(e,t,at);if(!kt(i.htmlLabels)){const pt=ct.select("text"),yt=(dt=pt.node())==null?void 0:dt.getBBox();pt.attr("transform",`translate(${-yt.width/2}, 0)`)}return ct}i.htmlLabels||(n*=1.25,a*=1.25);let c=tt(t);c||(c="node default");const h=e.insert("g").attr("class",c).attr("id",t.domId||t.id),u=await Tr(h,t.label??"",i,0,0,["name"],s);u.height+=a;let f=0;const d=[],g=[];let m=0,y=0,x=0,b=0,_=!0,S=!0;for(const at of r.attributes){const ct=await Tr(h,at.type,i,0,f,["attribute-type"],s);m=Math.max(m,ct.width+n);const pt=await Tr(h,at.name,i,0,f,["attribute-name"],s);y=Math.max(y,pt.width+n);const yt=await Tr(h,at.keys.join(),i,0,f,["attribute-keys"],s);x=Math.max(x,yt.width+n);const gt=await Tr(h,at.comment,i,0,f,["attribute-comment"],s);b=Math.max(b,gt.width+n);const _t=Math.max(ct.height,pt.height,yt.height,gt.height)+a;g.push({yOffset:f,rowHeight:_t}),f+=_t}let v=4;x<=n&&(_=!1,x=0,v--),b<=n&&(S=!1,b=0,v--);const C=h.node().getBBox();if(u.width+n*2-(m+y+x+b)>0){const at=u.width+n*2-(m+y+x+b);m+=at/v,y+=at/v,x>0&&(x+=at/v),b>0&&(b+=at/v)}const k=m+y+x+b,D=U.svg(h),R=G(t,{});t.look!=="handDrawn"&&(R.roughness=0,R.fillStyle="solid");let I=0;g.length>0&&(I=g.reduce((at,ct)=>at+((ct==null?void 0:ct.rowHeight)??0),0));const E=Math.max(C.width+n*2,(t==null?void 0:t.width)||0,k),W=Math.max((I??0)+u.height,(t==null?void 0:t.height)||0),O=-E/2,A=-W/2;h.selectAll("g:not(:first-child)").each((at,ct,pt)=>{const yt=ht(pt[ct]),gt=yt.attr("transform");let _t=0,ne=0;if(gt){const Oe=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(gt);Oe&&(_t=parseFloat(Oe[1]),ne=parseFloat(Oe[2]),yt.attr("class").includes("attribute-name")?_t+=m:yt.attr("class").includes("attribute-keys")?_t+=m+y:yt.attr("class").includes("attribute-comment")&&(_t+=m+y+x))}yt.attr("transform",`translate(${O+n/2+_t}, ${ne+A+u.height+a/2})`)}),h.select(".name").attr("transform","translate("+-u.width/2+", "+(A+a/2)+")");const L=D.rectangle(O,A,E,W,R),B=h.insert(()=>L,":first-child").attr("style",o.join("")),{themeVariables:F}=Ft(),{rowEven:M,rowOdd:q,nodeBorder:V}=F;d.push(0);for(const[at,ct]of g.entries()){const yt=(at+1)%2===0&&ct.yOffset!==0,gt=D.rectangle(O,u.height+A+(ct==null?void 0:ct.yOffset),E,ct==null?void 0:ct.rowHeight,{...R,fill:yt?M:q,stroke:V});h.insert(()=>gt,"g.label").attr("style",o.join("")).attr("class",`row-rect-${yt?"even":"odd"}`)}let j=D.line(O,u.height+A,E+O,u.height+A,R);h.insert(()=>j).attr("class","divider"),j=D.line(m+O,u.height+A,m+O,W+A,R),h.insert(()=>j).attr("class","divider"),_&&(j=D.line(m+y+O,u.height+A,m+y+O,W+A,R),h.insert(()=>j).attr("class","divider")),S&&(j=D.line(m+y+x+O,u.height+A,m+y+x+O,W+A,R),h.insert(()=>j).attr("class","divider"));for(const at of d)j=D.line(O,u.height+A+at,E+O,u.height+A+at,R),h.insert(()=>j).attr("class","divider");if(X(t,B),l&&t.look!=="handDrawn"){const at=l.split(";"),ct=(st=at==null?void 0:at.filter(pt=>pt.includes("stroke")))==null?void 0:st.map(pt=>`${pt}`).join("; ");h.selectAll("path").attr("style",ct??""),h.selectAll(".row-rect-even path").attr("style",l)}return t.intersect=function(at){return z.rect(t,at)},h}p(ll,"erBox");async function Tr(e,t,r,i=0,n=0,a=[],o=""){const s=e.insert("g").attr("class",`label ${a.join(" ")}`).attr("transform",`translate(${i}, ${n})`).attr("style",o);t!==ys(t)&&(t=ys(t),t=t.replaceAll("<","&lt;").replaceAll(">","&gt;"));const l=s.node().appendChild(await De(s,t,{width:ye(t,r)+100,style:o,useHtmlLabels:r.htmlLabels},r));if(t.includes("&lt;")||t.includes("&gt;")){let h=l.children[0];for(h.textContent=h.textContent.replaceAll("&lt;","<").replaceAll("&gt;",">");h.childNodes[0];)h=h.childNodes[0],h.textContent=h.textContent.replaceAll("&lt;","<").replaceAll("&gt;",">")}let c=l.getBBox();if(kt(r.htmlLabels)){const h=l.children[0];h.style.textAlign="start";const u=ht(l);c=h.getBoundingClientRect(),u.attr("width",c.width),u.attr("height",c.height)}return c}p(Tr,"addText");async function Ag(e,t,r,i,n=r.class.padding??12){const a=i?0:3,o=e.insert("g").attr("class",tt(t)).attr("id",t.domId||t.id);let s=null,l=null,c=null,h=null,u=0,f=0,d=0;if(s=o.insert("g").attr("class","annotation-group text"),t.annotations.length>0){const b=t.annotations[0];await vi(s,{text:`«${b}»`},0),u=s.node().getBBox().height}l=o.insert("g").attr("class","label-group text"),await vi(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 b of t.members){const _=await vi(c,b,m,[b.parseClassifier()]);m+=_+a}d=c.node().getBBox().height,d<=0&&(d=n/2),h=o.insert("g").attr("class","methods-group text");let y=0;for(const b of t.methods){const _=await vi(h,b,y,[b.parseClassifier()]);y+=_+a}let x=o.node().getBBox();if(s!==null){const b=s.node().getBBox();s.attr("transform",`translate(${-b.width/2})`)}return l.attr("transform",`translate(${-g.width/2}, ${u})`),x=o.node().getBBox(),c.attr("transform",`translate(0, ${u+f+n*2})`),x=o.node().getBBox(),h.attr("transform",`translate(0, ${u+f+(d?d+n*4:n*2)})`),x=o.node().getBBox(),{shapeSvg:o,bbox:x}}p(Ag,"textHelper");async function vi(e,t,r,i=[]){const n=e.insert("g").attr("class","label").attr("style",i.join("; ")),a=Ft();let o="useHtmlLabels"in t?t.useHtmlLabels:kt(a.htmlLabels)??!0,s="";"text"in t?s=t.text:s=t.label,!o&&s.startsWith("\\")&&(s=s.substring(1)),lr(s)&&(o=!0);const l=await De(n,ko(je(s)),{width:ye(s,a)+50,classes:"markdown-node-label",useHtmlLabels:o},a);let c,h=1;if(o){const u=l.children[0],f=ht(l);h=u.innerHTML.split("<br>").length,u.innerHTML.includes("</math>")&&(h+=u.innerHTML.split("<mrow>").length-1);const d=u.getElementsByTagName("img");if(d){const g=s.replace(/<img[^>]*>/g,"").trim()==="";await Promise.all([...d].map(m=>new Promise(y=>{function x(){var b;if(m.style.display="flex",m.style.flexDirection="column",g){const _=((b=a.fontSize)==null?void 0:b.toString())??window.getComputedStyle(document.body).fontSize,v=parseInt(_,10)*5+"px";m.style.minWidth=v,m.style.maxWidth=v}else m.style.width="100%";y(m)}p(x,"setupImage"),setTimeout(()=>{m.complete&&x()}),m.addEventListener("error",x),m.addEventListener("load",x)})))}c=u.getBoundingClientRect(),f.attr("width",c.width),f.attr("height",c.height)}else{i.includes("font-weight: bolder")&&ht(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}p(vi,"addText");async function Eg(e,t){var R,I;const r=ft(),i=r.class.padding??12,n=i,a=t.useHtmlLabels??kt(r.htmlLabels)??!0,o=t;o.annotations=o.annotations??[],o.members=o.members??[],o.methods=o.methods??[];const{shapeSvg:s,bbox:l}=await Ag(e,t,r,a,n),{labelStyles:c,nodeStyles:h}=Y(t);t.labelStyle=c,t.cssStyles=o.styles||"";const u=((R=o.styles)==null?void 0:R.join(";"))||h||"";t.cssStyles||(t.cssStyles=u.replaceAll("!important","").split(";"));const f=o.members.length===0&&o.methods.length===0&&!((I=r.class)!=null&&I.hideEmptyMembersBox),d=U.svg(s),g=G(t,{});t.look!=="handDrawn"&&(g.roughness=0,g.fillStyle="solid");const m=l.width;let y=l.height;o.members.length===0&&o.methods.length===0?y+=n:o.members.length>0&&o.methods.length===0&&(y+=n*2);const x=-m/2,b=-y/2,_=d.rectangle(x-i,b-i-(f?i:o.members.length===0&&o.methods.length===0?-i/2:0),m+2*i,y+2*i+(f?i*2:o.members.length===0&&o.methods.length===0?-i:0),g),S=s.insert(()=>_,":first-child");S.attr("class","basic label-container");const v=S.node().getBBox();s.selectAll(".text").each((E,W,O)=>{var q;const A=ht(O[W]),L=A.attr("transform");let B=0;if(L){const j=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(L);j&&(B=parseFloat(j[2]))}let F=B+b+i-(f?i:o.members.length===0&&o.methods.length===0?-i/2:0);a||(F-=4);let M=x;(A.attr("class").includes("label-group")||A.attr("class").includes("annotation-group"))&&(M=-((q=A.node())==null?void 0:q.getBBox().width)/2||0,s.selectAll("text").each(function(V,j,ut){window.getComputedStyle(ut[j]).textAnchor==="middle"&&(M=0)})),A.attr("transform",`translate(${M}, ${F})`)});const C=s.select(".annotation-group").node().getBBox().height-(f?i/2:0)||0,k=s.select(".label-group").node().getBBox().height-(f?i/2:0)||0,D=s.select(".members-group").node().getBBox().height-(f?i/2:0)||0;if(o.members.length>0||o.methods.length>0||f){const E=d.line(v.x,C+k+b+i,v.x+v.width,C+k+b+i,g);s.insert(()=>E).attr("class","divider").attr("style",u)}if(f||o.members.length>0||o.methods.length>0){const E=d.line(v.x,C+k+D+b+n*2+i,v.x+v.width,C+k+D+b+i+n*2,g);s.insert(()=>E).attr("class","divider").attr("style",u)}if(o.look!=="handDrawn"&&s.selectAll("path").attr("style",u),S.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*([^;]*)/),W=E.exec(u);if(W){const O=W[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 X(t,S),t.intersect=function(E){return z.rect(t,E)},s}p(Eg,"classBox");async function Fg(e,t){var C,k;const{labelStyles:r,nodeStyles:i}=Y(t);t.labelStyle=r;const n=t,a=t,o=20,s=20,l="verifyMethod"in t,c=tt(t),h=e.insert("g").attr("class",c).attr("id",t.domId??t.id);let u;l?u=await de(h,`&lt;&lt;${n.type}&gt;&gt;`,0,t.labelStyle):u=await de(h,"&lt;&lt;Element&gt;&gt;",0,t.labelStyle);let f=u;const d=await de(h,n.name,f,t.labelStyle+"; font-weight: bold;");if(f+=d+s,l){const D=await de(h,`${n.requirementId?`ID: ${n.requirementId}`:""}`,f,t.labelStyle);f+=D;const R=await de(h,`${n.text?`Text: ${n.text}`:""}`,f,t.labelStyle);f+=R;const I=await de(h,`${n.risk?`Risk: ${n.risk}`:""}`,f,t.labelStyle);f+=I,await de(h,`${n.verifyMethod?`Verification: ${n.verifyMethod}`:""}`,f,t.labelStyle)}else{const D=await de(h,`${a.type?`Type: ${a.type}`:""}`,f,t.labelStyle);f+=D,await de(h,`${a.docRef?`Doc Ref: ${a.docRef}`:""}`,f,t.labelStyle)}const g=(((C=h.node())==null?void 0:C.getBBox().width)??200)+o,m=(((k=h.node())==null?void 0:k.getBBox().height)??200)+o,y=-g/2,x=-m/2,b=U.svg(h),_=G(t,{});t.look!=="handDrawn"&&(_.roughness=0,_.fillStyle="solid");const S=b.rectangle(y,x,g,m,_),v=h.insert(()=>S,":first-child");if(v.attr("class","basic label-container").attr("style",i),h.selectAll(".label").each((D,R,I)=>{const E=ht(I[R]),W=E.attr("transform");let O=0,A=0;if(W){const M=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(W);M&&(O=parseFloat(M[1]),A=parseFloat(M[2]))}const L=A-m/2;let B=y+o/2;(R===0||R===1)&&(B=O),E.attr("transform",`translate(${B}, ${L+o})`)}),f>u+d+s){const D=b.line(y,x+u+d+s,y+g,x+u+d+s,_);h.insert(()=>D).attr("style",i)}return X(t,v),t.intersect=function(D){return z.rect(t,D)},h}p(Fg,"requirementBox");async function de(e,t,r,i=""){if(t==="")return 0;const n=e.insert("g").attr("class","label").attr("style",i),a=ft(),o=a.htmlLabels??!0,s=await De(n,ko(je(t)),{width:ye(t,a)+50,classes:"markdown-node-label",useHtmlLabels:o,style:i},a);let l;if(o){const c=s.children[0],h=ht(s);l=c.getBoundingClientRect(),h.attr("width",l.width),h.attr("height",l.height)}else{const c=s.children[0];for(const h of c.children)h.textContent=h.textContent.replaceAll("&gt;",">").replaceAll("&lt;","<"),i&&h.setAttribute("style",i);l=s.getBBox(),l.height+=6}return n.attr("transform",`translate(${-l.width/2},${-l.height/2+r})`),l.height}p(de,"addText");var Uw=p(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 $g(e,t,{config:r}){var W,O;const{labelStyles:i,nodeStyles:n}=Y(t);t.labelStyle=i||"";const a=10,o=t.width;t.width=(t.width??200)-10;const{shapeSvg:s,bbox:l,label:c}=await et(e,t,tt(t)),h=t.padding||10;let u="",f;"ticket"in t&&t.ticket&&((W=r==null?void 0:r.kanban)!=null&&W.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 d={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 ls(f,"ticket"in t&&t.ticket||"",d):{label:g,bbox:m}=await ls(s,"ticket"in t&&t.ticket||"",d);const{label:y,bbox:x}=await ls(s,"assigned"in t&&t.assigned||"",d);t.width=o;const b=10,_=(t==null?void 0:t.width)||0,S=Math.max(m.height,x.height)/2,v=Math.max(l.height+b*2,(t==null?void 0:t.height)||0)+S,C=-_/2,k=-v/2;c.attr("transform","translate("+(h-_/2)+", "+(-S-l.height/2)+")"),g.attr("transform","translate("+(h-_/2)+", "+(-S+l.height/2)+")"),y.attr("transform","translate("+(h+_/2-x.width-2*a)+", "+(-S+l.height/2)+")");let D;const{rx:R,ry:I}=t,{cssStyles:E}=t;if(t.look==="handDrawn"){const A=U.svg(s),L=G(t,{}),B=R||I?A.path(Ye(C,k,_,v,R||0),L):A.rectangle(C,k,_,v,L);D=s.insert(()=>B,":first-child"),D.attr("class","basic label-container").attr("style",E||null)}else{D=s.insert("rect",":first-child"),D.attr("class","basic label-container __APA__").attr("style",n).attr("rx",R??5).attr("ry",I??5).attr("x",C).attr("y",k).attr("width",_).attr("height",v);const A="priority"in t&&t.priority;if(A){const L=s.append("line"),B=C+2,F=k+Math.floor((R??0)/2),M=k+v-Math.floor((R??0)/2);L.attr("x1",B).attr("y1",F).attr("x2",B).attr("y2",M).attr("stroke-width","4").attr("stroke",Uw(A))}}return X(t,D),t.height=v,t.intersect=function(A){return z.rect(t,A)},s}p($g,"kanbanItem");async function Dg(e,t){const{labelStyles:r,nodeStyles:i}=Y(t);t.labelStyle=r;const{shapeSvg:n,bbox:a,halfPadding:o,label:s}=await et(e,t,tt(t)),l=a.width+10*o,c=a.height+8*o,h=.15*l,{cssStyles:u}=t,f=a.width+20,d=a.height+20,g=Math.max(l,f),m=Math.max(c,d);s.attr("transform",`translate(${-a.width/2}, ${-a.height/2})`);let y;const x=`M0 0
137
- a${h},${h} 1 0,0 ${g*.25},${-1*m*.1}
138
- a${h},${h} 1 0,0 ${g*.25},0
139
- a${h},${h} 1 0,0 ${g*.25},0
140
- a${h},${h} 1 0,0 ${g*.25},${m*.1}
141
-
142
- a${h},${h} 1 0,0 ${g*.15},${m*.33}
143
- a${h*.8},${h*.8} 1 0,0 0,${m*.34}
144
- a${h},${h} 1 0,0 ${-1*g*.15},${m*.33}
145
-
146
- a${h},${h} 1 0,0 ${-1*g*.25},${m*.15}
147
- a${h},${h} 1 0,0 ${-1*g*.25},0
148
- a${h},${h} 1 0,0 ${-1*g*.25},0
149
- a${h},${h} 1 0,0 ${-1*g*.25},${-1*m*.15}
150
-
151
- a${h},${h} 1 0,0 ${-1*g*.1},${-1*m*.33}
152
- a${h*.8},${h*.8} 1 0,0 0,${-1*m*.34}
153
- a${h},${h} 1 0,0 ${g*.1},${-1*m*.33}
154
- H0 V0 Z`;if(t.look==="handDrawn"){const b=U.svg(n),_=G(t,{}),S=b.path(x,_);y=n.insert(()=>S,":first-child"),y.attr("class","basic label-container").attr("style",Pt(u))}else y=n.insert("path",":first-child").attr("class","basic label-container").attr("style",i).attr("d",x);return y.attr("transform",`translate(${-g/2}, ${-m/2})`),X(t,y),t.calcIntersect=function(b,_){return z.rect(b,_)},t.intersect=function(b){return $.info("Bang intersect",t,b),z.rect(t,b)},n}p(Dg,"bang");async function Og(e,t){const{labelStyles:r,nodeStyles:i}=Y(t);t.labelStyle=r;const{shapeSvg:n,bbox:a,halfPadding:o,label:s}=await et(e,t,tt(t)),l=a.width+2*o,c=a.height+2*o,h=.15*l,u=.25*l,f=.35*l,d=.2*l,{cssStyles:g}=t;let m;const y=`M0 0
155
- a${h},${h} 0 0,1 ${l*.25},${-1*l*.1}
156
- a${f},${f} 1 0,1 ${l*.4},${-1*l*.1}
157
- a${u},${u} 1 0,1 ${l*.35},${l*.2}
158
-
159
- a${h},${h} 1 0,1 ${l*.15},${c*.35}
160
- a${d},${d} 1 0,1 ${-1*l*.15},${c*.65}
161
-
162
- a${u},${h} 1 0,1 ${-1*l*.25},${l*.15}
163
- a${f},${f} 1 0,1 ${-1*l*.5},0
164
- a${h},${h} 1 0,1 ${-1*l*.25},${-1*l*.15}
165
-
166
- a${h},${h} 1 0,1 ${-1*l*.1},${-1*c*.35}
167
- a${d},${d} 1 0,1 ${l*.1},${-1*c*.65}
168
- H0 V0 Z`;if(t.look==="handDrawn"){const x=U.svg(n),b=G(t,{}),_=x.path(y,b);m=n.insert(()=>_,":first-child"),m.attr("class","basic label-container").attr("style",Pt(g))}else m=n.insert("path",":first-child").attr("class","basic label-container").attr("style",i).attr("d",y);return s.attr("transform",`translate(${-a.width/2}, ${-a.height/2})`),m.attr("transform",`translate(${-l/2}, ${-c/2})`),X(t,m),t.calcIntersect=function(x,b){return z.rect(x,b)},t.intersect=function(x){return $.info("Cloud intersect",t,x),z.rect(t,x)},n}p(Og,"cloud");async function Ig(e,t){const{labelStyles:r,nodeStyles:i}=Y(t);t.labelStyle=r;const{shapeSvg:n,bbox:a,halfPadding:o,label:s}=await et(e,t,tt(t)),l=a.width+8*o,c=a.height+2*o,h=5,u=`
169
- M${-l/2} ${c/2-h}
170
- v${-c+2*h}
171
- q0,-${h} ${h},-${h}
172
- h${l-2*h}
173
- q${h},0 ${h},${h}
174
- v${c-2*h}
175
- q0,${h} -${h},${h}
176
- h${-l+2*h}
177
- q-${h},0 -${h},-${h}
178
- Z
179
- `,f=n.append("path").attr("id","node-"+t.id).attr("class","node-bkg node-"+t.type).attr("style",i).attr("d",u);return n.append("line").attr("class","node-line-").attr("x1",-l/2).attr("y1",c/2).attr("x2",l/2).attr("y2",c/2),s.attr("transform",`translate(${-a.width/2}, ${-a.height/2})`),n.append(()=>s.node()),X(t,f),t.calcIntersect=function(d,g){return z.rect(d,g)},t.intersect=function(d){return z.rect(t,d)},n}p(Ig,"defaultMindmapNode");async function Pg(e,t){const r={padding:t.padding??0};return ol(e,t,r)}p(Pg,"mindmapCircle");var Gw=[{semanticName:"Process",name:"Rectangle",shortName:"rect",description:"Standard process shape",aliases:["proc","process","rectangle"],internalAliases:["squareRect"],handler:pg},{semanticName:"Event",name:"Rounded Rectangle",shortName:"rounded",description:"Represents an event",aliases:["event"],internalAliases:["roundedRect"],handler:ug},{semanticName:"Terminal Point",name:"Stadium",shortName:"stadium",description:"Terminal point",aliases:["terminal","pill"],handler:gg},{semanticName:"Subprocess",name:"Framed Rectangle",shortName:"fr-rect",description:"Subprocess",aliases:["subprocess","subproc","framed-rectangle","subroutine"],handler:bg},{semanticName:"Database",name:"Cylinder",shortName:"cyl",description:"Database storage",aliases:["db","database","cylinder"],handler:Rp},{semanticName:"Start",name:"Circle",shortName:"circle",description:"Starting point",aliases:["circ"],handler:ol},{semanticName:"Bang",name:"Bang",shortName:"bang",description:"Bang",aliases:["bang"],handler:Dg},{semanticName:"Cloud",name:"Cloud",shortName:"cloud",description:"cloud",aliases:["cloud"],handler:Og},{semanticName:"Decision",name:"Diamond",shortName:"diam",description:"Decision-making step",aliases:["decision","diamond","question"],handler:lg},{semanticName:"Prepare Conditional",name:"Hexagon",shortName:"hex",description:"Preparation or condition step",aliases:["hexagon","prepare"],handler:Yp},{semanticName:"Data Input/Output",name:"Lean Right",shortName:"lean-r",description:"Represents input or output",aliases:["lean-right","in-out"],internalAliases:["lean_right"],handler:eg},{semanticName:"Data Input/Output",name:"Lean Left",shortName:"lean-l",description:"Represents output or input",aliases:["lean-left","out-in"],internalAliases:["lean_left"],handler:tg},{semanticName:"Priority Action",name:"Trapezoid Base Bottom",shortName:"trap-b",description:"Priority action",aliases:["priority","trapezoid-bottom","trapezoid"],handler:Sg},{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:Qp},{semanticName:"Stop",name:"Double Circle",shortName:"dbl-circ",description:"Represents a stop point",aliases:["double-circle"],internalAliases:["doublecircle"],handler:Wp},{semanticName:"Text Block",name:"Text Block",shortName:"text",description:"Text block",handler:vg},{semanticName:"Card",name:"Notched Rectangle",shortName:"notch-rect",description:"Represents a card",aliases:["card","notched-rectangle"],handler:Ap},{semanticName:"Lined/Shaded Process",name:"Lined Rectangle",shortName:"lin-rect",description:"Lined process shape",aliases:["lined-rectangle","lined-process","lin-proc","shaded-process"],handler:fg},{semanticName:"Start",name:"Small Circle",shortName:"sm-circ",description:"Small starting point",aliases:["start","small-circle"],internalAliases:["stateStart"],handler:xg},{semanticName:"Stop",name:"Framed Circle",shortName:"fr-circ",description:"Stop point",aliases:["stop","framed-circle"],internalAliases:["stateEnd"],handler:yg},{semanticName:"Fork/Join",name:"Filled Rectangle",shortName:"fork",description:"Fork or join in process flow",aliases:["join"],internalAliases:["forkJoin"],handler:Hp},{semanticName:"Collate",name:"Hourglass",shortName:"hourglass",description:"Represents a collate operation",aliases:["hourglass","collate"],handler:Up},{semanticName:"Comment",name:"Curly Brace",shortName:"brace",description:"Adds a comment",aliases:["comment","brace-l"],handler:Dp},{semanticName:"Comment Right",name:"Curly Brace",shortName:"brace-r",description:"Adds a comment",handler:Op},{semanticName:"Comment with braces on both sides",name:"Curly Braces",shortName:"braces",description:"Adds a comment",handler:Ip},{semanticName:"Com Link",name:"Lightning Bolt",shortName:"bolt",description:"Communication link",aliases:["com-link","lightning-bolt"],handler:rg},{semanticName:"Document",name:"Document",shortName:"doc",description:"Represents a document",aliases:["doc","document"],handler:Bg},{semanticName:"Delay",name:"Half-Rounded Rectangle",shortName:"delay",description:"Represents a delay",aliases:["half-rounded-rectangle"],handler:jp},{semanticName:"Direct Access Storage",name:"Horizontal Cylinder",shortName:"h-cyl",description:"Direct access storage",aliases:["das","horizontal-cylinder"],handler:wg},{semanticName:"Disk Storage",name:"Lined Cylinder",shortName:"lin-cyl",description:"Disk storage",aliases:["disk","lined-cylinder"],handler:ig},{semanticName:"Display",name:"Curved Trapezoid",shortName:"curv-trap",description:"Represents a display",aliases:["curved-trapezoid","display"],handler:Pp},{semanticName:"Divided Process",name:"Divided Rectangle",shortName:"div-rect",description:"Divided process shape",aliases:["div-proc","divided-rectangle","divided-process"],handler:Np},{semanticName:"Extract",name:"Triangle",shortName:"tri",description:"Extraction process",aliases:["extract","triangle"],handler:Tg},{semanticName:"Internal Storage",name:"Window Pane",shortName:"win-pane",description:"Internal storage",aliases:["internal-storage","window-pane"],handler:Mg},{semanticName:"Junction",name:"Filled Circle",shortName:"f-circ",description:"Junction point",aliases:["junction","filled-circle"],handler:qp},{semanticName:"Loop Limit",name:"Trapezoidal Pentagon",shortName:"notch-pent",description:"Loop limit step",aliases:["loop-limit","notched-pentagon"],handler:kg},{semanticName:"Manual File",name:"Flipped Triangle",shortName:"flip-tri",description:"Manual file operation",aliases:["manual-file","flipped-triangle"],handler:zp},{semanticName:"Manual Input",name:"Sloped Rectangle",shortName:"sl-rect",description:"Manual input step",aliases:["manual-input","sloped-rectangle"],handler:dg},{semanticName:"Multi-Document",name:"Stacked Document",shortName:"docs",description:"Multiple documents",aliases:["documents","st-doc","stacked-document"],handler:sg},{semanticName:"Multi-Process",name:"Stacked Rectangle",shortName:"st-rect",description:"Multiple processes",aliases:["procs","processes","stacked-rectangle"],handler:ag},{semanticName:"Stored Data",name:"Bow Tie Rectangle",shortName:"bow-rect",description:"Stored data",aliases:["stored-data","bow-tie-rectangle"],handler:Mp},{semanticName:"Summary",name:"Crossed Circle",shortName:"cross-circ",description:"Summary",aliases:["summary","crossed-circle"],handler:$p},{semanticName:"Tagged Document",name:"Tagged Document",shortName:"tag-doc",description:"Tagged document",aliases:["tag-doc","tagged-document"],handler:_g},{semanticName:"Tagged Process",name:"Tagged Rectangle",shortName:"tag-rect",description:"Tagged process",aliases:["tagged-rectangle","tag-proc","tagged-process"],handler:Cg},{semanticName:"Paper Tape",name:"Flag",shortName:"flag",description:"Paper tape",aliases:["paper-tape"],handler:Lg},{semanticName:"Odd",name:"Odd",shortName:"odd",description:"Odd shape",internalAliases:["rect_left_inv_arrow"],handler:cg},{semanticName:"Lined Document",name:"Lined Document",shortName:"lin-doc",description:"Lined document",aliases:["lined-document"],handler:ng}],Xw=p(()=>{const t=[...Object.entries({state:mg,choice:Ep,note:og,rectWithTitle:hg,labelRect:Jp,iconSquare:Kp,iconCircle:Xp,icon:Gp,iconRounded:Vp,imageSquare:Zp,anchor:Lp,kanbanItem:$g,mindmapCircle:Pg,defaultMindmapNode:Ig,classBox:Eg,erBox:ll,requirementBox:Fg}),...Gw.flatMap(r=>[r.shortName,..."aliases"in r?r.aliases:[],..."internalAliases"in r?r.internalAliases:[]].map(n=>[n,r.handler]))];return Object.fromEntries(t)},"generateShapeMap"),Rg=Xw();function Ng(e){return e in Rg}p(Ng,"isValidShape");var Ea=new Map;async function cl(e,t,r){let i,n;t.shape==="rect"&&(t.rx&&t.ry?t.shape="roundedRect":t.shape="squareRect");const a=t.shape?Rg[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),Ea.set(t.id,i),t.haveCallback&&i.attr("class",i.attr("class")+" clickable"),i}p(cl,"insertNode");var Vw=p((e,t)=>{Ea.set(t.id,e)},"setNodeElem"),Kw=p(()=>{Ea.clear()},"clear"),Zw=p(e=>{const t=Ea.get(e.id);$.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"),Qw=p((e,t,r,i,n,a)=>{t.arrowTypeStart&&Nc(e,"start",t.arrowTypeStart,r,i,n,a),t.arrowTypeEnd&&Nc(e,"end",t.arrowTypeEnd,r,i,n,a)},"addEdgeMarkers"),Jw={arrow_cross:{type:"cross",fill:!1},arrow_point:{type:"point",fill:!0},arrow_barb:{type:"barb",fill:!0},arrow_circle:{type:"circle",fill:!1},aggregation:{type:"aggregation",fill:!1},extension:{type:"extension",fill:!1},composition:{type:"composition",fill:!0},dependency:{type:"dependency",fill:!0},lollipop:{type:"lollipop",fill:!1},only_one:{type:"onlyOne",fill:!1},zero_or_one:{type:"zeroOrOne",fill:!1},one_or_more:{type:"oneOrMore",fill:!1},zero_or_more:{type:"zeroOrMore",fill:!1},requirement_arrow:{type:"requirement_arrow",fill:!1},requirement_contains:{type:"requirement_contains",fill:!1}},Nc=p((e,t,r,i,n,a,o)=>{var u;const s=Jw[r];if(!s){$.warn(`Unknown arrow type: ${r}`);return}const l=s.type,h=`${n}_${a}-${l}${t==="start"?"Start":"End"}`;if(o&&o.trim()!==""){const f=o.replace(/[^\dA-Za-z]/g,"_"),d=`${h}_${f}`;if(!document.getElementById(d)){const g=document.getElementById(h);if(g){const m=g.cloneNode(!0);m.id=d,m.querySelectorAll("path, circle, line").forEach(x=>{x.setAttribute("stroke",o),s.fill&&x.setAttribute("fill",o)}),(u=g.parentNode)==null||u.appendChild(m)}}e.attr(`marker-${t}`,`url(${i}#${d})`)}else e.attr(`marker-${t}`,`url(${i}#${h})`)},"addEdgeMarker"),ra=new Map,Et=new Map,tS=p(()=>{ra.clear(),Et.clear()},"clear"),fn=p(e=>e?e.reduce((r,i)=>r+";"+i,""):"","getLabelStyles"),Wg=p(async(e,t)=>{let r=kt(ft().flowchart.htmlLabels);const{labelStyles:i}=Y(t);t.labelStyle=i;const n=await De(e,t.label,{style:t.labelStyle,useHtmlLabels:r,addSvgBackground:!0,isNode:!1});$.info("abc82",t,t.labelType);const a=e.insert("g").attr("class","edgeLabel"),o=a.insert("g").attr("class","label").attr("data-id",t.id);o.node().appendChild(n);let s=n.getBBox();if(r){const c=n.children[0],h=ht(n);s=c.getBoundingClientRect(),h.attr("width",s.width),h.attr("height",s.height)}o.attr("transform","translate("+-s.width/2+", "+-s.height/2+")"),ra.set(t.id,a),t.width=s.width,t.height=s.height;let l;if(t.startLabelLeft){const c=await ir(t.startLabelLeft,fn(t.labelStyle)),h=e.insert("g").attr("class","edgeTerminals"),u=h.insert("g").attr("class","inner");l=u.node().appendChild(c);const f=c.getBBox();u.attr("transform","translate("+-f.width/2+", "+-f.height/2+")"),Et.get(t.id)||Et.set(t.id,{}),Et.get(t.id).startLeft=h,wi(l,t.startLabelLeft)}if(t.startLabelRight){const c=await ir(t.startLabelRight,fn(t.labelStyle)),h=e.insert("g").attr("class","edgeTerminals"),u=h.insert("g").attr("class","inner");l=h.node().appendChild(c),u.node().appendChild(c);const f=c.getBBox();u.attr("transform","translate("+-f.width/2+", "+-f.height/2+")"),Et.get(t.id)||Et.set(t.id,{}),Et.get(t.id).startRight=h,wi(l,t.startLabelRight)}if(t.endLabelLeft){const c=await ir(t.endLabelLeft,fn(t.labelStyle)),h=e.insert("g").attr("class","edgeTerminals"),u=h.insert("g").attr("class","inner");l=u.node().appendChild(c);const f=c.getBBox();u.attr("transform","translate("+-f.width/2+", "+-f.height/2+")"),h.node().appendChild(c),Et.get(t.id)||Et.set(t.id,{}),Et.get(t.id).endLeft=h,wi(l,t.endLabelLeft)}if(t.endLabelRight){const c=await ir(t.endLabelRight,fn(t.labelStyle)),h=e.insert("g").attr("class","edgeTerminals"),u=h.insert("g").attr("class","inner");l=u.node().appendChild(c);const f=c.getBBox();u.attr("transform","translate("+-f.width/2+", "+-f.height/2+")"),h.node().appendChild(c),Et.get(t.id)||Et.set(t.id,{}),Et.get(t.id).endRight=h,wi(l,t.endLabelRight)}return n},"insertEdgeLabel");function wi(e,t){ft().flowchart.htmlLabels&&e&&(e.style.width=t.length*9+"px",e.style.height="12px")}p(wi,"setTerminalWidth");var qg=p((e,t)=>{$.debug("Moving label abc88 ",e.id,e.label,ra.get(e.id),t);let r=t.updatedPath?t.updatedPath:t.originalPath;const i=ft(),{subGraphTitleTotalMargin:n}=Ca(i);if(e.label){const a=ra.get(e.id);let o=e.x,s=e.y;if(r){const l=ee.calcLabelPosition(r);$.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=Et.get(e.id).startLeft;let o=e.x,s=e.y;if(r){const l=ee.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=Et.get(e.id).startRight;let o=e.x,s=e.y;if(r){const l=ee.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=Et.get(e.id).endLeft;let o=e.x,s=e.y;if(r){const l=ee.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=Et.get(e.id).endRight;let o=e.x,s=e.y;if(r){const l=ee.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,"end_right",r);o=l.x,s=l.y}a.attr("transform",`translate(${o}, ${s})`)}},"positionEdgeLabel"),eS=p((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"),rS=p((e,t,r)=>{$.debug(`intersection calc abc89:
180
- outsidePoint: ${JSON.stringify(t)}
181
- insidePoint : ${JSON.stringify(r)}
182
- 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),$.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,d=r.y<t.y?r.y+u:r.y-u;return $.debug(`sides calc abc89, Q ${c}, q ${u}, R ${h}, r ${s}`,{_x:f,_y:d}),s===0&&(f=t.x,d=t.y),h===0&&(f=t.x),c===0&&(d=t.y),{x:f,y:d}}},"intersection"),Wc=p((e,t)=>{$.warn("abc88 cutPathAtIntersect",e,t);let r=[],i=e[0],n=!1;return e.forEach(a=>{if($.info("abc88 checking point",a,t),!eS(t,a)&&!n){const o=rS(t,i,a);$.debug("abc88 inside",a,i,o),$.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)?$.warn("abc88 no intersect",o,r):r.push(o),n=!0}else $.warn("abc88 outside",a,i),i=a,n||r.push(a)}),$.debug("returning points",r),r},"cutPathAtIntersect");function zg(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}}p(zg,"extractCornerPoints");var qc=p(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"),iS=p(function(e){const{cornerPointPositions:t}=zg(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=qc(n,o,5),l=qc(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){$.debug("Corner point fixing",Math.abs(a.x-n.x),Math.abs(a.y-n.y));const d=5;o.x===s.x?f={x:c<0?s.x-d+u:s.x+d-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-d+u:s.y+d-u}}else $.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"),nS=p((e,t,r)=>{const i=e-t-r,n=2,a=2,o=n+a,s=Math.floor(i/o),l=Array(s).fill(`${n} ${a}`).join(" ");return`0 ${t} ${l} ${r}`},"generateDashArray"),Hg=p(function(e,t,r,i,n,a,o,s=!1){var A;const{handDrawnSeed:l}=ft();let c=t.points,h=!1;const u=n;var f=a;const d=[];for(const L in t.cssCompiledStyles)jo(L)||d.push(t.cssCompiledStyles[L]);$.debug("UIO intersect check",t.points,f.x,u.x),f.intersect&&u.intersect&&!s&&(c=c.slice(1,t.points.length-1),c.unshift(u.intersect(c[0])),$.debug("Last point UIO",t.start,"-->",t.end,c[c.length-1],f,f.intersect(c[c.length-1])),c.push(f.intersect(c[c.length-1])));const g=btoa(JSON.stringify(c));t.toCluster&&($.info("to cluster abc88",r.get(t.toCluster)),c=Wc(t.points,r.get(t.toCluster).node),h=!0),t.fromCluster&&($.debug("from cluster abc88",r.get(t.fromCluster),JSON.stringify(c,null,2)),c=Wc(c.reverse(),r.get(t.fromCluster).node).reverse(),h=!0);let m=c.filter(L=>!Number.isNaN(L.y));m=iS(m);let y=Bi;switch(y=Nn,t.curve){case"linear":y=Nn;break;case"basis":y=Bi;break;case"cardinal":y=pu;break;case"bumpX":y=cu;break;case"bumpY":y=hu;break;case"catmullRom":y=mu;break;case"monotoneX":y=vu;break;case"monotoneY":y=wu;break;case"natural":y=ku;break;case"step":y=Tu;break;case"stepAfter":y=Lu;break;case"stepBefore":y=Bu;break;default:y=Bi}const{x,y:b}=gd(t),_=ou().x(x).y(b).curve(y);let S;switch(t.thickness){case"normal":S="edge-thickness-normal";break;case"thick":S="edge-thickness-thick";break;case"invisible":S="edge-thickness-invisible";break;default:S="edge-thickness-normal"}switch(t.pattern){case"solid":S+=" edge-pattern-solid";break;case"dotted":S+=" edge-pattern-dotted";break;case"dashed":S+=" edge-pattern-dashed";break;default:S+=" edge-pattern-solid"}let v,C=t.curve==="rounded"?jg(Yg(m,t),5):_(m);const k=Array.isArray(t.style)?t.style:[t.style];let D=k.find(L=>L==null?void 0:L.startsWith("stroke:")),R=!1;if(t.look==="handDrawn"){const L=U.svg(e);Object.assign([],m);const B=L.path(C,{roughness:.3,seed:l});S+=" transition",v=ht(B).select("path").attr("id",t.id).attr("class"," "+S+(t.classes?" "+t.classes:"")).attr("style",k?k.reduce((M,q)=>M+";"+q,""):"");let F=v.attr("d");v.attr("d",F),e.node().appendChild(v.node())}else{const L=d.join(";"),B=k?k.reduce((nt,dt)=>nt+dt+";",""):"";let F="";t.animate&&(F=" edge-animation-fast"),t.animation&&(F=" edge-animation-"+t.animation);const M=(L?L+";"+B+";":B)+";"+(k?k.reduce((nt,dt)=>nt+";"+dt,""):"");v=e.append("path").attr("d",C).attr("id",t.id).attr("class"," "+S+(t.classes?" "+t.classes:"")+(F??"")).attr("style",M),D=(A=M.match(/stroke:([^;]+)/))==null?void 0:A[1],R=t.animate===!0||!!t.animation||L.includes("animation");const q=v.node(),V=typeof q.getTotalLength=="function"?q.getTotalLength():0,j=fc[t.arrowTypeStart]||0,ut=fc[t.arrowTypeEnd]||0;if(t.look==="neo"&&!R){const dt=`stroke-dasharray: ${t.pattern==="dotted"||t.pattern==="dashed"?nS(V,j,ut):`0 ${j} ${V-j-ut} ${ut}`}; stroke-dashoffset: 0;`;v.attr("style",dt+v.attr("style"))}}v.attr("data-edge",!0),v.attr("data-et","edge"),v.attr("data-id",t.id),v.attr("data-points",g),t.showPoints&&m.forEach(L=>{e.append("circle").style("stroke","red").style("fill","red").attr("r",1).attr("cx",L.x).attr("cy",L.y)});let I="";(ft().flowchart.arrowMarkerAbsolute||ft().state.arrowMarkerAbsolute)&&(I=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,I=I.replace(/\(/g,"\\(").replace(/\)/g,"\\)")),$.info("arrowTypeStart",t.arrowTypeStart),$.info("arrowTypeEnd",t.arrowTypeEnd),Qw(v,t,I,o,i,D);const E=Math.floor(c.length/2),W=c[E];ee.isLabelCoordinateInPath(W,v.attr("d"))||(h=!0);let O={};return h&&(O.updatedPath=c),O.originalPath=t.points,O},"insertEdge");function jg(e,t){if(e.length<2)return"";let r="";const i=e.length,n=1e-5;for(let a=0;a<i;a++){const o=e[a],s=e[a-1],l=e[a+1];if(a===0)r+=`M${o.x},${o.y}`;else if(a===i-1)r+=`L${o.x},${o.y}`;else{const c=o.x-s.x,h=o.y-s.y,u=l.x-o.x,f=l.y-o.y,d=Math.hypot(c,h),g=Math.hypot(u,f);if(d<n||g<n){r+=`L${o.x},${o.y}`;continue}const m=c/d,y=h/d,x=u/g,b=f/g,_=m*x+y*b,S=Math.max(-1,Math.min(1,_)),v=Math.acos(S);if(v<n||Math.abs(Math.PI-v)<n){r+=`L${o.x},${o.y}`;continue}const C=Math.min(t/Math.sin(v/2),d/2,g/2),k=o.x-m*C,D=o.y-y*C,R=o.x+x*C,I=o.y+b*C;r+=`L${k},${D}`,r+=`Q${o.x},${o.y} ${R},${I}`}}return r}p(jg,"generateRoundedPath");function ao(e,t){if(!e||!t)return{angle:0,deltaX:0,deltaY:0};const r=t.x-e.x,i=t.y-e.y;return{angle:Math.atan2(i,r),deltaX:r,deltaY:i}}p(ao,"calculateDeltaAndAngle");function Yg(e,t){const r=e.map(n=>({...n}));if(e.length>=2&&Ot[t.arrowTypeStart]){const n=Ot[t.arrowTypeStart],a=e[0],o=e[1],{angle:s}=ao(a,o),l=n*Math.cos(s),c=n*Math.sin(s);r[0].x=a.x+l,r[0].y=a.y+c}const i=e.length;if(i>=2&&Ot[t.arrowTypeEnd]){const n=Ot[t.arrowTypeEnd],a=e[i-1],o=e[i-2],{angle:s}=ao(o,a),l=n*Math.cos(s),c=n*Math.sin(s);r[i-1].x=a.x-l,r[i-1].y=a.y-c}return r}p(Yg,"applyMarkerOffsetsToPoints");var aS=p((e,t,r,i)=>{t.forEach(n=>{_S[n](e,r,i)})},"insertMarkers"),sS=p((e,t,r)=>{$.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"),oS=p((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"),lS=p((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"),cS=p((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"),hS=p((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"),uS=p((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"),fS=p((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"),dS=p((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"),pS=p((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"),gS=p((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-onlyOneStart").attr("class","marker onlyOne "+t).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("d","M9,0 L9,18 M15,0 L15,18"),e.append("defs").append("marker").attr("id",r+"_"+t+"-onlyOneEnd").attr("class","marker onlyOne "+t).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("d","M3,0 L3,18 M9,0 L9,18")},"only_one"),mS=p((e,t,r)=>{const i=e.append("defs").append("marker").attr("id",r+"_"+t+"-zeroOrOneStart").attr("class","marker zeroOrOne "+t).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto");i.append("circle").attr("fill","white").attr("cx",21).attr("cy",9).attr("r",6),i.append("path").attr("d","M9,0 L9,18");const n=e.append("defs").append("marker").attr("id",r+"_"+t+"-zeroOrOneEnd").attr("class","marker zeroOrOne "+t).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto");n.append("circle").attr("fill","white").attr("cx",9).attr("cy",9).attr("r",6),n.append("path").attr("d","M21,0 L21,18")},"zero_or_one"),yS=p((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-oneOrMoreStart").attr("class","marker oneOrMore "+t).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27"),e.append("defs").append("marker").attr("id",r+"_"+t+"-oneOrMoreEnd").attr("class","marker oneOrMore "+t).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18")},"one_or_more"),xS=p((e,t,r)=>{const i=e.append("defs").append("marker").attr("id",r+"_"+t+"-zeroOrMoreStart").attr("class","marker zeroOrMore "+t).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto");i.append("circle").attr("fill","white").attr("cx",48).attr("cy",18).attr("r",6),i.append("path").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18");const n=e.append("defs").append("marker").attr("id",r+"_"+t+"-zeroOrMoreEnd").attr("class","marker zeroOrMore "+t).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto");n.append("circle").attr("fill","white").attr("cx",9).attr("cy",18).attr("r",6),n.append("path").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18")},"zero_or_more"),bS=p((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-requirement_arrowEnd").attr("refX",20).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("path").attr("d",`M0,0
183
- L20,10
184
- M20,10
185
- L0,20`)},"requirement_arrow"),CS=p((e,t,r)=>{const i=e.append("defs").append("marker").attr("id",r+"_"+t+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("g");i.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),i.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),i.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10)},"requirement_contains"),_S={extension:sS,composition:oS,aggregation:lS,dependency:cS,lollipop:hS,point:uS,circle:fS,cross:dS,barb:pS,only_one:gS,zero_or_one:mS,one_or_more:yS,zero_or_more:xS,requirement_arrow:bS,requirement_contains:CS},Ug=aS,vS={common:dr,getConfig:Ft,insertCluster:_p,insertEdge:Hg,insertEdgeLabel:Wg,insertMarkers:Ug,insertNode:cl,interpolateToCurve:Ko,labelHelper:et,log:$,positionEdgeLabel:qg},zi={},Gg=p(e=>{for(const t of e)zi[t.name]=t},"registerLayoutLoaders"),wS=p(()=>{Gg([{name:"dagre",loader:p(async()=>await Promise.resolve().then(()=>require("./dagre-6UL2VRFP-CJe6baLS.cjs")),"loader")},{name:"cose-bilkent",loader:p(async()=>await Promise.resolve().then(()=>require("./cose-bilkent-S5V4N54A-BzynRFve.cjs")),"loader")}])},"registerDefaultLayoutLoaders");wS();var SS=p(async(e,t)=>{if(!(e.layoutAlgorithm in zi))throw new Error(`Unknown layout algorithm: ${e.layoutAlgorithm}`);const r=zi[e.layoutAlgorithm];return(await r.loader()).render(e,t,vS,{algorithm:r.algorithm})},"render"),kS=p((e="",{fallback:t="dagre"}={})=>{if(e in zi)return e;if(t in zi)return $.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"),Xg="comm",Vg="rule",Kg="decl",TS="@import",BS="@namespace",LS="@keyframes",MS="@layer",Zg=Math.abs,hl=String.fromCharCode;function Qg(e){return e.trim()}function kn(e,t,r){return e.replace(t,r)}function AS(e,t,r){return e.indexOf(t,r)}function Er(e,t){return e.charCodeAt(t)|0}function Gr(e,t,r){return e.slice(t,r)}function pe(e){return e.length}function ES(e){return e.length}function dn(e,t){return t.push(e),e}var Fa=1,Xr=1,Jg=0,ie=0,wt=0,ii="";function ul(e,t,r,i,n,a,o,s){return{value:e,root:t,parent:r,type:i,props:n,children:a,line:Fa,column:Xr,length:o,return:"",siblings:s}}function FS(){return wt}function $S(){return wt=ie>0?Er(ii,--ie):0,Xr--,wt===10&&(Xr=1,Fa--),wt}function le(){return wt=ie<Jg?Er(ii,ie++):0,Xr++,wt===10&&(Xr=1,Fa++),wt}function Pe(){return Er(ii,ie)}function Tn(){return ie}function $a(e,t){return Gr(ii,e,t)}function Hi(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 DS(e){return Fa=Xr=1,Jg=pe(ii=e),ie=0,[]}function OS(e){return ii="",e}function cs(e){return Qg($a(ie-1,so(e===91?e+2:e===40?e+1:e)))}function IS(e){for(;(wt=Pe())&&wt<33;)le();return Hi(e)>2||Hi(wt)>3?"":" "}function PS(e,t){for(;--t&&le()&&!(wt<48||wt>102||wt>57&&wt<65||wt>70&&wt<97););return $a(e,Tn()+(t<6&&Pe()==32&&le()==32))}function so(e){for(;le();)switch(wt){case e:return ie;case 34:case 39:e!==34&&e!==39&&so(wt);break;case 40:e===41&&so(e);break;case 92:le();break}return ie}function RS(e,t){for(;le()&&e+wt!==57;)if(e+wt===84&&Pe()===47)break;return"/*"+$a(t,ie-1)+"*"+hl(e===47?e:le())}function NS(e){for(;!Hi(Pe());)le();return $a(e,ie)}function WS(e){return OS(Bn("",null,null,null,[""],e=DS(e),0,[0],e))}function Bn(e,t,r,i,n,a,o,s,l){for(var c=0,h=0,u=o,f=0,d=0,g=0,m=1,y=1,x=1,b=0,_="",S=n,v=a,C=i,k=_;y;)switch(g=b,b=le()){case 40:if(g!=108&&Er(k,u-1)==58){AS(k+=kn(cs(b),"&","&\f"),"&\f",Zg(c?s[c-1]:0))!=-1&&(x=-1);break}case 34:case 39:case 91:k+=cs(b);break;case 9:case 10:case 13:case 32:k+=IS(g);break;case 92:k+=PS(Tn()-1,7);continue;case 47:switch(Pe()){case 42:case 47:dn(qS(RS(le(),Tn()),t,r,l),l),(Hi(g||1)==5||Hi(Pe()||1)==5)&&pe(k)&&Gr(k,-1,void 0)!==" "&&(k+=" ");break;default:k+="/"}break;case 123*m:s[c++]=pe(k)*x;case 125*m:case 59:case 0:switch(b){case 0:case 125:y=0;case 59+h:x==-1&&(k=kn(k,/\f/g,"")),d>0&&(pe(k)-u||m===0&&g===47)&&dn(d>32?Hc(k+";",i,r,u-1,l):Hc(kn(k," ","")+";",i,r,u-2,l),l);break;case 59:k+=";";default:if(dn(C=zc(k,t,r,c,h,n,s,_,S=[],v=[],u,a),a),b===123)if(h===0)Bn(k,t,C,C,S,a,u,s,v);else{switch(f){case 99:if(Er(k,3)===110)break;case 108:if(Er(k,2)===97)break;default:h=0;case 100:case 109:case 115:}h?Bn(e,C,C,i&&dn(zc(e,C,C,0,0,n,s,_,n,S=[],u,v),v),n,v,u,s,i?S:v):Bn(k,C,C,C,[""],v,0,s,v)}}c=h=d=0,m=x=1,_=k="",u=o;break;case 58:u=1+pe(k),d=g;default:if(m<1){if(b==123)--m;else if(b==125&&m++==0&&$S()==125)continue}switch(k+=hl(b),b*m){case 38:x=h>0?1:(k+="\f",-1);break;case 44:s[c++]=(pe(k)-1)*x,x=1;break;case 64:Pe()===45&&(k+=cs(le())),f=Pe(),h=u=pe(_=k+=NS(Tn())),b++;break;case 45:g===45&&pe(k)==2&&(m=0)}}return a}function zc(e,t,r,i,n,a,o,s,l,c,h,u){for(var f=n-1,d=n===0?a:[""],g=ES(d),m=0,y=0,x=0;m<i;++m)for(var b=0,_=Gr(e,f+1,f=Zg(y=o[m])),S=e;b<g;++b)(S=Qg(y>0?d[b]+" "+_:kn(_,/&\f/g,d[b])))&&(l[x++]=S);return ul(e,t,r,n===0?Vg:s,l,c,h,u)}function qS(e,t,r,i){return ul(e,t,r,Xg,hl(FS()),Gr(e,2,-2),0,i)}function Hc(e,t,r,i,n){return ul(e,t,r,Kg,Gr(e,0,i),Gr(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 zS(e,t,r,i){switch(e.type){case MS:if(e.children.length)break;case TS:case BS:case Kg:return e.return=e.return||e.value;case Xg:return"";case LS:return e.return=e.value+"{"+oo(e.children,i)+"}";case Vg:if(!pe(e.value=e.props.join(",")))return""}return pe(r=oo(e.children,i))?e.return=e.value+"{"+r+"}":""}var HS=kd(Object.keys,Object),jS=Object.prototype,YS=jS.hasOwnProperty;function tm(e){if(!wa(e))return HS(e);var t=[];for(var r in Object(e))YS.call(e,r)&&r!="constructor"&&t.push(r);return t}var lo=mr(be,"DataView"),co=mr(be,"Promise"),ia=mr(be,"Set"),ho=mr(be,"WeakMap"),jc="[object Map]",US="[object Object]",Yc="[object Promise]",Uc="[object Set]",Gc="[object WeakMap]",Xc="[object DataView]",GS=gr(lo),XS=gr(Ri),VS=gr(co),KS=gr(ia),ZS=gr(ho);exports.getTag=pr;(lo&&exports.getTag(new lo(new ArrayBuffer(1)))!=Xc||Ri&&exports.getTag(new Ri)!=jc||co&&exports.getTag(co.resolve())!=Yc||ia&&exports.getTag(new ia)!=Uc||ho&&exports.getTag(new ho)!=Gc)&&(exports.getTag=function(e){var t=pr(e),r=t==US?e.constructor:void 0,i=r?gr(r):"";if(i)switch(i){case GS:return Xc;case XS:return jc;case VS:return Yc;case KS:return Uc;case ZS:return Gc}return t});var QS="[object Map]",JS="[object Set]",tk=Object.prototype,ek=tk.hasOwnProperty;function uo(e){if(e==null)return!0;if(Gi(e)&&(Wi(e)||typeof e=="string"||typeof e.splice=="function"||Sa(e)||ka(e)||Ni(e)))return!e.length;var t=exports.getTag(e);if(t==QS||t==JS)return!e.size;if(wa(e))return!tm(e).length;for(var r in e)if(ek.call(e,r))return!1;return!0}var em="c4",rk=p(e=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(e),"detector"),ik=p(async()=>{const{diagram:e}=await Promise.resolve().then(()=>require("./c4Diagram-YG6GDRKO-ojLwrHAZ.cjs"));return{id:em,diagram:e}},"loader"),nk={id:em,detector:rk,loader:ik},ak=nk,rm="flowchart",sk=p((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"),ok=p(async()=>{const{diagram:e}=await Promise.resolve().then(()=>require("./flowDiagram-NV44I4VS-BJffdKk6.cjs"));return{id:rm,diagram:e}},"loader"),lk={id:rm,detector:sk,loader:ok},ck=lk,im="flowchart-v2",hk=p((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"),uk=p(async()=>{const{diagram:e}=await Promise.resolve().then(()=>require("./flowDiagram-NV44I4VS-BJffdKk6.cjs"));return{id:im,diagram:e}},"loader"),fk={id:im,detector:hk,loader:uk},dk=fk,nm="er",pk=p(e=>/^\s*erDiagram/.test(e),"detector"),gk=p(async()=>{const{diagram:e}=await Promise.resolve().then(()=>require("./erDiagram-Q2GNP2WA-Up8_IT91.cjs"));return{id:nm,diagram:e}},"loader"),mk={id:nm,detector:pk,loader:gk},yk=mk,am="gitGraph",xk=p(e=>/^\s*gitGraph/.test(e),"detector"),bk=p(async()=>{const{diagram:e}=await Promise.resolve().then(()=>require("./gitGraphDiagram-NY62KEGX-Cc8RVspd.cjs"));return{id:am,diagram:e}},"loader"),Ck={id:am,detector:xk,loader:bk},_k=Ck,sm="gantt",vk=p(e=>/^\s*gantt/.test(e),"detector"),wk=p(async()=>{const{diagram:e}=await Promise.resolve().then(()=>require("./ganttDiagram-LVOFAZNH-CndRZUwp.cjs"));return{id:sm,diagram:e}},"loader"),Sk={id:sm,detector:vk,loader:wk},kk=Sk,om="info",Tk=p(e=>/^\s*info/.test(e),"detector"),Bk=p(async()=>{const{diagram:e}=await Promise.resolve().then(()=>require("./infoDiagram-ER5ION4S-DqXS6eRb.cjs"));return{id:om,diagram:e}},"loader"),Lk={id:om,detector:Tk,loader:Bk},lm="pie",Mk=p(e=>/^\s*pie/.test(e),"detector"),Ak=p(async()=>{const{diagram:e}=await Promise.resolve().then(()=>require("./pieDiagram-ADFJNKIX-DWVdC3zW.cjs"));return{id:lm,diagram:e}},"loader"),Ek={id:lm,detector:Mk,loader:Ak},cm="quadrantChart",Fk=p(e=>/^\s*quadrantChart/.test(e),"detector"),$k=p(async()=>{const{diagram:e}=await Promise.resolve().then(()=>require("./quadrantDiagram-AYHSOK5B-J0R9fpox.cjs"));return{id:cm,diagram:e}},"loader"),Dk={id:cm,detector:Fk,loader:$k},Ok=Dk,hm="xychart",Ik=p(e=>/^\s*xychart(-beta)?/.test(e),"detector"),Pk=p(async()=>{const{diagram:e}=await Promise.resolve().then(()=>require("./xychartDiagram-PRI3JC2R-d5V8_6ka.cjs"));return{id:hm,diagram:e}},"loader"),Rk={id:hm,detector:Ik,loader:Pk},Nk=Rk,um="requirement",Wk=p(e=>/^\s*requirement(Diagram)?/.test(e),"detector"),qk=p(async()=>{const{diagram:e}=await Promise.resolve().then(()=>require("./requirementDiagram-UZGBJVZJ-DXq0f3Op.cjs"));return{id:um,diagram:e}},"loader"),zk={id:um,detector:Wk,loader:qk},Hk=zk,fm="sequence",jk=p(e=>/^\s*sequenceDiagram/.test(e),"detector"),Yk=p(async()=>{const{diagram:e}=await Promise.resolve().then(()=>require("./sequenceDiagram-WL72ISMW-DmS_WEPR.cjs"));return{id:fm,diagram:e}},"loader"),Uk={id:fm,detector:jk,loader:Yk},Gk=Uk,dm="class",Xk=p((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"),Vk=p(async()=>{const{diagram:e}=await Promise.resolve().then(()=>require("./classDiagram-2ON5EDUG-DD8PWOat.cjs"));return{id:dm,diagram:e}},"loader"),Kk={id:dm,detector:Xk,loader:Vk},Zk=Kk,pm="classDiagram",Qk=p((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"),Jk=p(async()=>{const{diagram:e}=await Promise.resolve().then(()=>require("./classDiagram-v2-WZHVMYZB-DD8PWOat.cjs"));return{id:pm,diagram:e}},"loader"),tT={id:pm,detector:Qk,loader:Jk},eT=tT,gm="state",rT=p((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"),iT=p(async()=>{const{diagram:e}=await Promise.resolve().then(()=>require("./stateDiagram-FKZM4ZOC-BmMX9umD.cjs"));return{id:gm,diagram:e}},"loader"),nT={id:gm,detector:rT,loader:iT},aT=nT,mm="stateDiagram",sT=p((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"),oT=p(async()=>{const{diagram:e}=await Promise.resolve().then(()=>require("./stateDiagram-v2-4FDKWEC3-BwQkMtRv.cjs"));return{id:mm,diagram:e}},"loader"),lT={id:mm,detector:sT,loader:oT},cT=lT,ym="journey",hT=p(e=>/^\s*journey/.test(e),"detector"),uT=p(async()=>{const{diagram:e}=await Promise.resolve().then(()=>require("./journeyDiagram-XKPGCS4Q-CJX0XVNj.cjs"));return{id:ym,diagram:e}},"loader"),fT={id:ym,detector:hT,loader:uT},dT=fT,pT=p((e,t,r)=>{$.debug(`rendering svg for syntax error
186
- `);const i=Mu(t),n=i.append("g");i.attr("viewBox","0 0 2412 512"),bo(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"),xm={draw:pT},gT=xm,mT={db:{},renderer:xm,parser:{parse:p(()=>{},"parse")}},yT=mT,bm="flowchart-elk",xT=p((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"),bT=p(async()=>{const{diagram:e}=await Promise.resolve().then(()=>require("./flowDiagram-NV44I4VS-BJffdKk6.cjs"));return{id:bm,diagram:e}},"loader"),CT={id:bm,detector:xT,loader:bT},_T=CT,Cm="timeline",vT=p(e=>/^\s*timeline/.test(e),"detector"),wT=p(async()=>{const{diagram:e}=await Promise.resolve().then(()=>require("./timeline-definition-IT6M3QCI-Bi9IiYMF.cjs"));return{id:Cm,diagram:e}},"loader"),ST={id:Cm,detector:vT,loader:wT},kT=ST,_m="mindmap",TT=p(e=>/^\s*mindmap/.test(e),"detector"),BT=p(async()=>{const{diagram:e}=await Promise.resolve().then(()=>require("./mindmap-definition-VGOIOE7T-cJsasSc0.cjs"));return{id:_m,diagram:e}},"loader"),LT={id:_m,detector:TT,loader:BT},MT=LT,vm="kanban",AT=p(e=>/^\s*kanban/.test(e),"detector"),ET=p(async()=>{const{diagram:e}=await Promise.resolve().then(()=>require("./kanban-definition-3W4ZIXB7-DnhdFt_Y.cjs"));return{id:vm,diagram:e}},"loader"),FT={id:vm,detector:AT,loader:ET},$T=FT,wm="sankey",DT=p(e=>/^\s*sankey(-beta)?/.test(e),"detector"),OT=p(async()=>{const{diagram:e}=await Promise.resolve().then(()=>require("./sankeyDiagram-TZEHDZUN-CLBuuob-.cjs"));return{id:wm,diagram:e}},"loader"),IT={id:wm,detector:DT,loader:OT},PT=IT,Sm="packet",RT=p(e=>/^\s*packet(-beta)?/.test(e),"detector"),NT=p(async()=>{const{diagram:e}=await Promise.resolve().then(()=>require("./diagram-S2PKOQOG-XyZUZk_b.cjs"));return{id:Sm,diagram:e}},"loader"),WT={id:Sm,detector:RT,loader:NT},km="radar",qT=p(e=>/^\s*radar-beta/.test(e),"detector"),zT=p(async()=>{const{diagram:e}=await Promise.resolve().then(()=>require("./diagram-QEK2KX5R-rhfU6qwd.cjs"));return{id:km,diagram:e}},"loader"),HT={id:km,detector:qT,loader:zT},Tm="block",jT=p(e=>/^\s*block(-beta)?/.test(e),"detector"),YT=p(async()=>{const{diagram:e}=await Promise.resolve().then(()=>require("./blockDiagram-VD42YOAC-DG8nN7FI.cjs"));return{id:Tm,diagram:e}},"loader"),UT={id:Tm,detector:jT,loader:YT},GT=UT,Bm="architecture",XT=p(e=>/^\s*architecture/.test(e),"detector"),VT=p(async()=>{const{diagram:e}=await Promise.resolve().then(()=>require("./architectureDiagram-VXUJARFQ-i1olysFf.cjs"));return{id:Bm,diagram:e}},"loader"),KT={id:Bm,detector:XT,loader:VT},ZT=KT,Lm="treemap",QT=p(e=>/^\s*treemap/.test(e),"detector"),JT=p(async()=>{const{diagram:e}=await Promise.resolve().then(()=>require("./diagram-PSM6KHXK-X4v5dsQ4.cjs"));return{id:Lm,diagram:e}},"loader"),tB={id:Lm,detector:QT,loader:JT},Vc=!1,Da=p(()=>{Vc||(Vc=!0,Fn("error",yT,e=>e.toLowerCase().trim()==="error"),Fn("---",{db:{clear:p(()=>{},"clear")},styles:{},renderer:{draw:p(()=>{},"draw")},parser:{parse:p(()=>{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:p(()=>null,"init")},e=>e.toLowerCase().trimStart().startsWith("---")),gs(_T,MT,ZT),gs(ak,$T,eT,Zk,yk,kk,Lk,Ek,Hk,Gk,dk,ck,kT,_k,cT,aT,dT,Ok,PT,WT,Nk,GT,HT,tB))},"addDiagrams"),eB=p(async()=>{$.debug("Loading registered diagrams");const t=(await Promise.allSettled(Object.entries(sr).map(async([r,{detector:i,loader:n}])=>{if(n)try{Cs(r)}catch{try{const{diagram:a,id:o}=await n();Fn(o,a,i)}catch(a){throw $.error(`Failed to load external diagram with key ${r}. Removing from detectors.`),delete sr[r],a}}}))).filter(r=>r.status==="rejected");if(t.length>0){$.error(`Failed to load ${t.length} external diagrams`);for(const r of t)$.error(r);throw new Error(`Failed to load ${t.length} external diagrams`)}},"loadRegisteredDiagrams"),rB="graphics-document document";function Mm(e,t){e.attr("role",rB),t!==""&&e.attr("aria-roledescription",t)}p(Mm,"setA11yDiagramInfo");function Am(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)}}}p(Am,"addSVGa11yTitleDescription");var ar,fo=(ar=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=Ft(),n=yo(t,i);t=Rv(t)+`
187
- `;try{Cs(n)}catch{const u=L0(n);if(!u)throw new ch(`Diagram ${n} not found.`);const{id:f,diagram:d}=await u();Fn(f,d)}const{db:a,parser:o,renderer:s,init:l}=Cs(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 ar(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}},p(ar,"Diagram"),ar),Kc=[],iB=p(()=>{Kc.forEach(e=>{e()}),Kc=[]},"attachFunctions"),nB=p(e=>e.replace(/^\s*%%(?!{)[^\n]+\n?/gm,"").trimStart(),"cleanupComments");function Em(e){const t=e.match(lh);if(!t)return{text:e,metadata:{}};let r=pd(t[1],{schema:dd})??{};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}}p(Em,"extractFrontMatter");var aB=p(e=>e.replace(/\r\n?/g,`
188
- `).replace(/<(\w+)([^>]*)>/g,(t,r,i)=>"<"+r+i.replace(/="([^"]*)"/g,"='$1'")+">"),"cleanupText"),sB=p(e=>{const{text:t,metadata:r}=Em(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"),oB=p(e=>{const t=ee.detectInit(e)??{},r=ee.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:Lv(e),directive:t}},"processDirectives");function fl(e){const t=aB(e),r=sB(t),i=oB(r.text),n=Ta(r.config,i.directive);return e=nB(i.text),{code:e,title:r.title,config:n}}p(fl,"preprocessDiagram");function Fm(e){const t=new TextEncoder().encode(e),r=Array.from(t,i=>String.fromCodePoint(i)).join("");return btoa(r)}p(Fm,"toBase64");var lB=5e4,cB="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa",hB="sandbox",uB="loose",fB="http://www.w3.org/2000/svg",dB="http://www.w3.org/1999/xlink",pB="http://www.w3.org/1999/xhtml",gB="100%",mB="100%",yB="border:0;margin:0;",xB="margin:0",bB="allow-top-navigation-by-user-activation allow-popups",CB='The "iframe" tag is not supported by your browser.',_B=["foreignobject"],vB=["dominant-baseline"];function dl(e){const t=fl(e);return An(),H0(t.config??{}),t}p(dl,"processAndSetConfigs");async function $m(e,t){Da();try{const{code:r,config:i}=dl(e);return{diagramType:(await Om(r)).type,config:i}}catch(r){if(t!=null&&t.suppressErrors)return!1;throw r}}p($m,"parse");var Zc=p((e,t,r=[])=>`
189
- .${e} ${t} { ${r.join(" !important; ")} !important; }`,"cssImportantStyles"),wB=p((e,t=new Map)=>{var i;let r="";if(e.themeCSS!==void 0&&(r+=`
190
- ${e.themeCSS}`),e.fontFamily!==void 0&&(r+=`
191
- :root { --mermaid-font-family: ${e.fontFamily}}`),e.altFontFamily!==void 0&&(r+=`
192
- :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=>{uo(l.styles)||s.forEach(c=>{r+=Zc(l.id,c,l.styles)}),uo(l.textStyles)||(r+=Zc(l.id,"tspan",((l==null?void 0:l.textStyles)||[]).map(c=>c.replace("color","fill"))))})}return r},"createCssStyles"),SB=p((e,t,r,i)=>{const n=wB(e,r),a=cy(t,n,e.themeVariables);return oo(WS(`${i}{${a}}`),zS)},"createUserStyles"),kB=p((e="",t,r)=>{let i=e;return!r&&!t&&(i=i.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g,'marker-end="url(#')),i=je(i),i=i.replace(/<br>/g,"<br/>"),i},"cleanUpSvgCode"),TB=p((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":mB,i=Fm(`<body style="${xB}">${e}</body>`);return`<iframe style="width:${gB};height:${r};${yB}" src="data:text/html;charset=UTF-8;base64,${i}" sandbox="${bB}">
193
- ${CB}
194
- </iframe>`},"putIntoIFrame"),Qc=p((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",fB);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","")}p(po,"sandboxedIframe");var BB=p((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"),LB=p(async function(e,t,r){var W,O,A,L,B,F;Da();const i=dl(t);t=i.code;const n=Ft();$.debug(n),t.length>((n==null?void 0:n.maxTextSize)??lB)&&(t=cB);const a="#"+e,o="i"+e,s="#"+o,l="d"+e,c="#"+l,h=p(()=>{const q=ht(f?s:c).node();q&&"remove"in q&&q.remove()},"removeTempElements");let u=ht("body");const f=n.securityLevel===hB,d=n.securityLevel===uB,g=n.fontFamily;if(r!==void 0){if(r&&(r.innerHTML=""),f){const M=po(ht(r),o);u=ht(M.nodes()[0].contentDocument.body),u.node().style.margin=0}else u=ht(r);Qc(u,e,l,`font-family: ${g}`,dB)}else{if(BB(document,e,l,o),f){const M=po(ht("body"),o);u=ht(M.nodes()[0].contentDocument.body),u.node().style.margin=0}else u=ht("body");Qc(u,e,l)}let m,y;try{m=await fo.fromText(t,{title:i.title})}catch(M){if(n.suppressErrorRendering)throw h(),M;m=await fo.fromText("error"),y=M}const x=u.select(c).node(),b=m.type,_=x.firstChild,S=_.firstChild,v=(O=(W=m.renderer).getClasses)==null?void 0:O.call(W,t,m),C=SB(n,b,v,a),k=document.createElement("style");k.innerHTML=C,_.insertBefore(k,S);try{await m.renderer.draw(t,e,us.version,m)}catch(M){throw n.suppressErrorRendering?h():gT.draw(t,e,us.version),M}const D=u.select(`${c} svg`),R=(L=(A=m.db).getAccTitle)==null?void 0:L.call(A),I=(F=(B=m.db).getAccDescription)==null?void 0:F.call(B);Im(b,D,R,I),u.select(`[id="${e}"]`).selectAll("foreignobject > *").attr("xmlns",pB);let E=u.select(c).node().innerHTML;if($.debug("config.arrowMarkerAbsolute",n.arrowMarkerAbsolute),E=kB(E,f,kt(n.arrowMarkerAbsolute)),f){const M=u.select(c+" svg").node();E=TB(E,M)}else d||(E=Wr.sanitize(E,{ADD_TAGS:_B,ADD_ATTR:vB,HTML_INTEGRATION_POINTS:{foreignobject:!0}}));if(iB(),y)throw y;return h(),{diagramType:b,svg:E,bindFunctions:m.db.bindFunctions}},"render");function Dm(e={}){var i;const t=St({},e);t!=null&&t.fontFamily&&!((i=t.themeVariables)!=null&&i.fontFamily)&&(t.themeVariables||(t.themeVariables={}),t.themeVariables.fontFamily=t.fontFamily),q0(t),t!=null&&t.theme&&t.theme in Me?t.themeVariables=Me[t.theme].getThemeVariables(t.themeVariables):t&&(t.themeVariables=Me.default.getThemeVariables(t.themeVariables));const r=typeof t=="object"?W0(t):ph();mo(r.logLevel),Da()}p(Dm,"initialize");var Om=p((e,t={})=>{const{code:r}=fl(e);return fo.fromText(r,t)},"getDiagramFromText");function Im(e,t,r,i){Mm(t,e),Am(t,r,i,t.attr("id"))}p(Im,"addA11yInfo");var fr=Object.freeze({render:LB,parse:$m,getDiagramFromText:Om,initialize:Dm,getConfig:Ft,setConfig:gh,getSiteConfig:ph,updateSiteConfig:z0,reset:p(()=>{An()},"reset"),globalReset:p(()=>{An(qr)},"globalReset"),defaultConfig:qr});mo(Ft().logLevel);An(Ft());var MB=p((e,t,r)=>{$.warn(e),rl(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"),Pm=p(async function(e={querySelector:".mermaid"}){try{await AB(e)}catch(t){if(rl(t)&&$.error(t.str),Kt.parseError&&Kt.parseError(t),!e.suppressErrors)throw $.error("Use the suppressErrors option to suppress these errors"),t}},"run"),AB=p(async function({postRenderCallback:e,querySelector:t,nodes:r}={querySelector:".mermaid"}){const i=fr.getConfig();$.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");$.debug(`Found ${n.length} diagrams`),(i==null?void 0:i.startOnLoad)!==void 0&&($.debug("Start On Load: "+(i==null?void 0:i.startOnLoad)),fr.updateSiteConfig({startOnLoad:i==null?void 0:i.startOnLoad}));const a=new ee.InitIDGenerator(i.deterministicIds,i.deterministicIDSeed);let o;const s=[];for(const l of Array.from(n)){if($.info("Rendering diagram: "+l.id),l.getAttribute("data-processed"))continue;l.setAttribute("data-processed","true");const c=`mermaid-${a.next()}`;o=l.innerHTML,o=Kd(ee.entityDecode(o)).trim().replace(/<br\s*\/?>/gi,"<br/>");const h=ee.detectInit(o);h&&$.debug("Detected early reinit: ",h);try{const{svg:u,bindFunctions:f}=await qm(c,o,l);l.innerHTML=u,e&&await e(c),f&&f(l)}catch(u){MB(u,s,Kt.parseError)}}if(s.length>0)throw s[0]},"runThrowsErrors"),Rm=p(function(e){fr.initialize(e)},"initialize"),EB=p(async function(e,t,r){$.warn("mermaid.init is deprecated. Please use run instead."),e&&Rm(e);const i={postRenderCallback:r,querySelector:".mermaid"};typeof t=="string"?i.querySelector=t:t&&(t instanceof HTMLElement?i.nodes=[t]:i.nodes=t),await Pm(i)},"init"),FB=p(async(e,{lazyLoad:t=!0}={})=>{Da(),gs(...e),t===!1&&await eB()},"registerExternalDiagrams"),Nm=p(function(){if(Kt.startOnLoad){const{startOnLoad:e}=fr.getConfig();e&&Kt.run().catch(t=>$.error("Mermaid failed to initialize",t))}},"contentLoaded");typeof document<"u"&&window.addEventListener("load",Nm,!1);var $B=p(function(e){Kt.parseError=e},"setParseErrorHandler"),na=[],hs=!1,Wm=p(async()=>{if(!hs){for(hs=!0;na.length>0;){const e=na.shift();if(e)try{await e()}catch(t){$.error("Error executing queue",t)}}hs=!1}},"executeQueue"),DB=p(async(e,t)=>new Promise((r,i)=>{const n=p(()=>new Promise((a,o)=>{fr.parse(e,t).then(s=>{a(s),r(s)},s=>{var l;$.error("Error parsing",s),(l=Kt.parseError)==null||l.call(Kt,s),o(s),i(s)})}),"performCall");na.push(n),Wm().catch(i)}),"parse"),qm=p((e,t,r)=>new Promise((i,n)=>{const a=p(()=>new Promise((o,s)=>{fr.render(e,t,r).then(l=>{o(l),i(l)},l=>{var c;$.error("Error parsing",l),(c=Kt.parseError)==null||c.call(Kt,l),s(l),n(l)})}),"performCall");na.push(a),Wm().catch(n)}),"render"),OB=p(()=>Object.keys(sr).map(e=>({id:e})),"getRegisteredDiagramsMetadata"),Kt={startOnLoad:!0,mermaidAPI:fr,parse:DB,render:qm,init:EB,run:Pm,registerExternalDiagrams:FB,registerLayoutLoaders:Gg,initialize:Rm,parseError:void 0,contentLoaded:Nm,setParseErrorHandler:$B,detectType:yo,registerIconPacks:Jd,getRegisteredDiagramsMetadata:OB},IB=Kt;/*! Check if previously processed *//*!
195
- * Wait for document loaded before starting the execution
196
- */const PB=Object.freeze(Object.defineProperty({__proto__:null,default:IB},Symbol.toStringTag,{value:"Module"}));exports.Color=ce;exports.Color$1=Zr;exports.JSON_SCHEMA=dd;exports.MapCache=$e;exports.Rgb=qt;exports.Set=ia;exports.Stack=yr;exports.Symbol=Ii;exports.Uint8Array=Vs;exports.Utils=it;exports.ZERO_WIDTH_SPACE=Rd;exports.__export=eh;exports.__name=p;exports.abs=E1;exports.acos=N1;exports.array=au;exports.arrayLikeKeys=Od;exports.asin=W1;exports.assignValue=$d;exports.assignWithDepth_default=St;exports.atan2=F1;exports.baseFor=bd;exports.baseGetTag=pr;exports.baseKeys=tm;exports.baseUnary=Ed;exports.calculateMathMLDimensions=iy;exports.calculateTextHeight=tl;exports.calculateTextWidth=ye;exports.cleanAndMerge=Ta;exports.clear=wh;exports.clear$1=tS;exports.clear$2=Ew;exports.clear2=Kw;exports.cloneArrayBuffer=vd;exports.cloneBuffer=_d;exports.cloneTypedArray=wd;exports.color=Hr;exports.commonDb_exports=Co;exports.common_default=dr;exports.computeDimensionOfText=cp;exports.configureSvgSize=bo;exports.constant=Ze;exports.constant$1=fa;exports.copyArray=Sd;exports.copyObject=Dd;exports.cos=$1;exports.createText=De;exports.curveBasis=Bi;exports.darken=Q;exports.dayjs2=Jc;exports.decodeEntities=je;exports.defaultConfig2=fy;exports.defaultConfig_default=xo;exports.define=ua;exports.distExports=md;exports.epsilon=Es;exports.eq=Ui;exports.evaluate=kt;exports.extend=Lo;exports.generateId=jd;exports.getAccDescription=Bh;exports.getAccTitle=kh;exports.getConfig=Ft;exports.getConfig2=ft;exports.getDiagramTitle=Mh;exports.getEdgeId=Nv;exports.getIconSVG=ei;exports.getLineFunctionsWithOffset=gd;exports.getRegisteredLayoutAlgorithm=kS;exports.getStylesFromArray=Jo;exports.getSubGraphTitleMargins=Ca;exports.getThemeVariables3=uh;exports.getUrl=_h;exports.getUserDefinedConfig=U0;exports.halfPi=Fs;exports.hasKatex=lr;exports.hue=lb;exports.identity=Vo;exports.initCloneObject=Bd;exports.insertCluster=_p;exports.insertEdge=Hg;exports.insertEdgeLabel=Wg;exports.insertNode=cl;exports.interpolateNumber=Le;exports.interpolateRgb=ws;exports.interpolateString=Gh;exports.isArguments=Ni;exports.isArray=Wi;exports.isArrayLike=Gi;exports.isBuffer=Sa;exports.isDark=Vr;exports.isEmpty=uo;exports.isIndex=Xo;exports.isLabelStyle=jo;exports.isLength=Go;exports.isObject=He;exports.isObjectLike=ti;exports.isTypedArray=ka;exports.isValidShape=Ng;exports.lighten=H;exports.line=ou;exports.lineBreakRegex=Kr;exports.load=pd;exports.log=$;exports.markers_default=Ug;exports.max=D1;exports.memoize=Jr;exports.mermaid_core=PB;exports.min=O1;exports.nodeUtil=Ks;exports.nogamma=Mo;exports.package_default=us;exports.parseFontSize=Xi;exports.parseGenericTypes=ys;exports.pi=ga;exports.positionEdgeLabel=qg;exports.positionNode=Zw;exports.random=Ud;exports.registerIconPacks=Jd;exports.render=SS;exports.renderKatexSanitized=ca;exports.replaceIconSubstring=nl;exports.rgbConvert=jh;exports.rgba=Mr;exports.sanitizeText=Zt;exports.select=ht;exports.selectSvgElement=Mu;exports.setAccDescription=Th;exports.setAccTitle=Sh;exports.setConfig2=uy;exports.setDiagramTitle=Lh;exports.setNodeElem=Vw;exports.setupGraphViewbox=vh;exports.setupGraphViewbox2=Ah;exports.sin=I1;exports.sqrt=P1;exports.styles2String=Y;exports.tau=R1;exports.unknownIcon=Zd;exports.updateNodeBounds=X;exports.utils_default=ee;exports.withPath=nu;exports.wrapLabel=Gd;