@sme.up/ketchup2 2.0.0 → 2.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (460) hide show
  1. package/dist/arc-CqG9Hxdf.cjs +1 -0
  2. package/dist/arc-Klgb378K.js +80 -0
  3. package/dist/architecture-YZFGNWBL-BRqToLcm.js +3 -0
  4. package/dist/architecture-YZFGNWBL-BTOWQWD9.cjs +1 -0
  5. package/dist/architectureDiagram-Q4EWVU46-CX_6DnSJ.cjs +36 -0
  6. package/dist/architectureDiagram-Q4EWVU46-CnzjcVBn.js +4057 -0
  7. package/dist/array-D8NZ46Ht.js +6 -0
  8. package/dist/array-Dxz0O8Q3.cjs +1 -0
  9. package/dist/assets/buttonListAssets.d.ts +8 -0
  10. package/dist/assets/buttonListAssets.d.ts.map +1 -1
  11. package/dist/assets/imageListAssets.d.ts +3 -1
  12. package/dist/assets/imageListAssets.d.ts.map +1 -1
  13. package/dist/basic-components/autocomplete/autocomplete.d.ts.map +1 -1
  14. package/dist/basic-components/button/button-types.d.ts +4 -0
  15. package/dist/basic-components/button/button-types.d.ts.map +1 -1
  16. package/dist/basic-components/button-dropdown/button-dropdown-types.d.ts +16 -0
  17. package/dist/basic-components/button-dropdown/button-dropdown-types.d.ts.map +1 -0
  18. package/dist/basic-components/button-dropdown/button-dropdown.d.ts +4 -0
  19. package/dist/basic-components/button-dropdown/button-dropdown.d.ts.map +1 -0
  20. package/dist/basic-components/button-list/button-list-types.d.ts +6 -0
  21. package/dist/basic-components/button-list/button-list-types.d.ts.map +1 -1
  22. package/dist/basic-components/button-list/button-list.d.ts.map +1 -1
  23. package/dist/basic-components/cell/cell-utils.d.ts +11 -4
  24. package/dist/basic-components/cell/cell-utils.d.ts.map +1 -1
  25. package/dist/basic-components/cell/cell.d.ts.map +1 -1
  26. package/dist/basic-components/image/image.d.ts.map +1 -1
  27. package/dist/basic-components/image-cell/image-cell-types.d.ts +12 -3
  28. package/dist/basic-components/image-cell/image-cell-types.d.ts.map +1 -1
  29. package/dist/basic-components/image-cell/image-cell.d.ts.map +1 -1
  30. package/dist/basic-components/list/list-types.d.ts +0 -1
  31. package/dist/basic-components/list/list-types.d.ts.map +1 -1
  32. package/dist/basic-components/list/list.d.ts.map +1 -1
  33. package/dist/basic-components/notification/notification.assets.d.ts.map +1 -1
  34. package/dist/basic-components/select/select.d.ts.map +1 -1
  35. package/dist/basic-components/text/text.d.ts.map +1 -1
  36. package/dist/basic-components/text-editor/text-editor-utils.d.ts.map +1 -1
  37. package/dist/basic-components/textfield/textfield.d.ts.map +1 -1
  38. package/dist/blockDiagram-DXYQGD6D-B0NvV2Ph.js +3033 -0
  39. package/dist/blockDiagram-DXYQGD6D-D6DypQdM.cjs +132 -0
  40. package/dist/c4Diagram-AHTNJAMY-DPijI3_r.js +2961 -0
  41. package/dist/c4Diagram-AHTNJAMY-Dgwv-e5O.cjs +10 -0
  42. package/dist/channel-CRWct3-i.js +5 -0
  43. package/dist/channel-DkTvdPpU.cjs +1 -0
  44. package/dist/chunk-2KRD3SAO-Ca3zDQyj.js +23 -0
  45. package/dist/chunk-2KRD3SAO-oZrIWZvV.cjs +1 -0
  46. package/dist/chunk-336JU56O-DQhIGd25.cjs +1 -0
  47. package/dist/chunk-336JU56O-DkZvWJVe.js +49 -0
  48. package/dist/chunk-426QAEUC-CDXJVpQr.js +9 -0
  49. package/dist/chunk-426QAEUC-CqN26l3E.cjs +1 -0
  50. package/dist/chunk-4BX2VUAB-BW54-JWg.js +8 -0
  51. package/dist/chunk-4BX2VUAB-Qba52sxc.cjs +1 -0
  52. package/dist/chunk-4TB4RGXK-B0SIkKDf.cjs +206 -0
  53. package/dist/chunk-4TB4RGXK-D2LRzcEP.js +3253 -0
  54. package/dist/chunk-55IACEB6-Bu3k0Yz5.js +8 -0
  55. package/dist/chunk-55IACEB6-DPatBzu7.cjs +1 -0
  56. package/dist/chunk-5FUZZQ4R-Cj5KbGC7.cjs +62 -0
  57. package/dist/chunk-5FUZZQ4R-D3C0F0Tr.js +3638 -0
  58. package/dist/chunk-5PVQY5BW-DEPZKGvb.cjs +2 -0
  59. package/dist/chunk-5PVQY5BW-Dn8n6moB.js +1299 -0
  60. package/dist/chunk-67CJDMHE-2Qg7i1xJ.cjs +1 -0
  61. package/dist/chunk-67CJDMHE-YMBkJcAO.js +23 -0
  62. package/dist/chunk-7N4EOEYR-C-GuhRgW.js +35 -0
  63. package/dist/chunk-7N4EOEYR-jNBQwvHx.cjs +1 -0
  64. package/dist/chunk-AA7GKIK3-B_ZB6dou.js +30 -0
  65. package/dist/chunk-AA7GKIK3-dqnTmnvO.cjs +1 -0
  66. package/dist/chunk-BSJP7CBP-CFzYPvgr.cjs +1 -0
  67. package/dist/chunk-BSJP7CBP-oNTXVRA7.js +82 -0
  68. package/dist/chunk-CIAEETIT-ClHUj0Su.cjs +1 -0
  69. package/dist/chunk-CIAEETIT-XlxsAz-4.js +23 -0
  70. package/dist/chunk-D-IZpNpi.cjs +1 -0
  71. package/dist/chunk-EDXVE4YY-1dwNWzc7.cjs +1 -0
  72. package/dist/chunk-EDXVE4YY-CGNVB686.js +25 -0
  73. package/dist/chunk-ENJZ2VHE-BAWfx0nA.cjs +10 -0
  74. package/dist/chunk-ENJZ2VHE-CZ7BvL2h.js +560 -0
  75. package/dist/{chunk-FMBD7UC4-C1wIcaJH.js → chunk-FMBD7UC4-CS9_r76V.cjs} +2 -6
  76. package/dist/chunk-FMBD7UC4-RRSc9jqt.js +5 -0
  77. package/dist/chunk-FOC6F5B3-DcZs851j.cjs +1 -0
  78. package/dist/chunk-FOC6F5B3-E9n6-juB.js +23 -0
  79. package/dist/chunk-ICPOFSXX-fQJ5ufMR.js +3320 -0
  80. package/dist/chunk-ICPOFSXX-hY6BIZ4Y.cjs +122 -0
  81. package/dist/chunk-K5T4RW27-BzDQkjC7.cjs +94 -0
  82. package/dist/chunk-K5T4RW27-DY7TOEqa.js +16070 -0
  83. package/dist/chunk-KGLVRYIC-5OJpfQCj.js +23 -0
  84. package/dist/chunk-KGLVRYIC-DnbIkai8.cjs +1 -0
  85. package/dist/chunk-LIHQZDEY-59I4-LWb.js +64 -0
  86. package/dist/chunk-LIHQZDEY-CrogR3nT.cjs +1 -0
  87. package/dist/chunk-ORNJ4GCN-CcrEtiCn.cjs +1 -0
  88. package/dist/chunk-ORNJ4GCN-CwkOSFbS.js +31 -0
  89. package/dist/chunk-OYMX7WX6-CrK-lehh.cjs +231 -0
  90. package/dist/chunk-OYMX7WX6-DJkGVCqi.js +2014 -0
  91. package/dist/chunk-QZHKN3VN-Bx8I6l3c.js +15 -0
  92. package/dist/chunk-QZHKN3VN-CSMKL2rB.cjs +1 -0
  93. package/dist/chunk-U2HBQHQK-CJ77uizk.cjs +70 -0
  94. package/dist/chunk-U2HBQHQK-Ceyeq0IV.js +1879 -0
  95. package/dist/chunk-WQLz0Won.js +20 -0
  96. package/dist/chunk-X2U36JSP-CtXjVqek.cjs +1 -0
  97. package/dist/chunk-X2U36JSP-VxRY65ea.js +67 -0
  98. package/dist/chunk-XPW4576I-BcWkx-AL.js +1146 -0
  99. package/dist/chunk-XPW4576I-D8Pp6a3j.cjs +32 -0
  100. package/dist/chunk-YZCP3GAM-D6P3SWmL.js +60 -0
  101. package/dist/chunk-YZCP3GAM-qxaNo0r8.cjs +1 -0
  102. package/dist/chunk-ZZ45TVLE-BfSqZnT4.cjs +1 -0
  103. package/dist/chunk-ZZ45TVLE-X2jolXSO.js +32 -0
  104. package/dist/classDiagram-6PBFFD2Q-BT4_JTnP.cjs +1 -0
  105. package/dist/classDiagram-6PBFFD2Q-Dgaxt4wI.js +29 -0
  106. package/dist/classDiagram-v2-HSJHXN6E-CWhiK6nm.js +29 -0
  107. package/dist/classDiagram-v2-HSJHXN6E-DkBLzgTv.cjs +1 -0
  108. package/dist/clone-CQQwPjME.cjs +1 -0
  109. package/dist/clone-Dwbh_blD.js +8 -0
  110. package/dist/components/drawer/drawer-types.d.ts +4 -0
  111. package/dist/components/drawer/drawer-types.d.ts.map +1 -1
  112. package/dist/components/image-list/components/image-list-command-panel.d.ts +15 -0
  113. package/dist/components/image-list/components/image-list-command-panel.d.ts.map +1 -0
  114. package/dist/components/image-list/components/image-list-command-trigger.d.ts +16 -0
  115. package/dist/components/image-list/components/image-list-command-trigger.d.ts.map +1 -0
  116. package/dist/components/image-list/components/image-list-filter-picker.d.ts +14 -0
  117. package/dist/components/image-list/components/image-list-filter-picker.d.ts.map +1 -0
  118. package/dist/components/image-list/components/image-list-h-strip.d.ts.map +1 -1
  119. package/dist/components/image-list/components/image-list-json-viewer.d.ts +11 -0
  120. package/dist/components/image-list/components/image-list-json-viewer.d.ts.map +1 -0
  121. package/dist/components/image-list/components/image-list-menu.d.ts.map +1 -1
  122. package/dist/components/image-list/components/image-list-navigation-picker.d.ts +6 -2
  123. package/dist/components/image-list/components/image-list-navigation-picker.d.ts.map +1 -1
  124. package/dist/components/image-list/components/image-list-sort-picker.d.ts +14 -0
  125. package/dist/components/image-list/components/image-list-sort-picker.d.ts.map +1 -0
  126. package/dist/components/image-list/components/image-list-v-strip.d.ts.map +1 -1
  127. package/dist/components/image-list/components/items/image-list-card-item.d.ts +5 -0
  128. package/dist/components/image-list/components/items/image-list-card-item.d.ts.map +1 -0
  129. package/dist/components/image-list/components/items/image-list-folder-item.d.ts.map +1 -1
  130. package/dist/components/image-list/components/items/image-list-item.d.ts.map +1 -1
  131. package/dist/components/image-list/components/menu-nav-item.d.ts.map +1 -1
  132. package/dist/components/image-list/components/navigation-modes/image-list-catalog.d.ts.map +1 -1
  133. package/dist/components/image-list/components/navigation-modes/image-list-explorer.d.ts.map +1 -1
  134. package/dist/components/image-list/components/navigation-modes/image-list-tree.d.ts.map +1 -1
  135. package/dist/components/image-list/components/strip-item.d.ts.map +1 -1
  136. package/dist/components/image-list/hooks/useCommandPickers.d.ts +13 -0
  137. package/dist/components/image-list/hooks/useCommandPickers.d.ts.map +1 -0
  138. package/dist/components/image-list/image-list-column-utils.d.ts +9 -0
  139. package/dist/components/image-list/image-list-column-utils.d.ts.map +1 -0
  140. package/dist/components/image-list/image-list-context.d.ts +5 -2
  141. package/dist/components/image-list/image-list-context.d.ts.map +1 -1
  142. package/dist/components/image-list/image-list-debug-utils.d.ts +13 -0
  143. package/dist/components/image-list/image-list-debug-utils.d.ts.map +1 -0
  144. package/dist/components/image-list/image-list-filter-context.d.ts +9 -0
  145. package/dist/components/image-list/image-list-filter-context.d.ts.map +1 -0
  146. package/dist/components/image-list/image-list-filter-utils.d.ts +12 -0
  147. package/dist/components/image-list/image-list-filter-utils.d.ts.map +1 -0
  148. package/dist/components/image-list/image-list-sort-context.d.ts +9 -0
  149. package/dist/components/image-list/image-list-sort-context.d.ts.map +1 -0
  150. package/dist/components/image-list/image-list-sort-utils.d.ts +13 -0
  151. package/dist/components/image-list/image-list-sort-utils.d.ts.map +1 -0
  152. package/dist/components/image-list/image-list-state-context.d.ts +5 -0
  153. package/dist/components/image-list/image-list-state-context.d.ts.map +1 -0
  154. package/dist/components/image-list/image-list-types.d.ts +45 -2
  155. package/dist/components/image-list/image-list-types.d.ts.map +1 -1
  156. package/dist/components/image-list/image-list-utils.d.ts +24 -1
  157. package/dist/components/image-list/image-list-utils.d.ts.map +1 -1
  158. package/dist/components/image-list/image-list.d.ts +1 -1
  159. package/dist/components/image-list/image-list.d.ts.map +1 -1
  160. package/dist/components/planner/planner-assets.d.ts +1 -1
  161. package/dist/components/planner/planner-assets.d.ts.map +1 -1
  162. package/dist/components/planner/planner-types.d.ts +1 -1
  163. package/dist/components/planner/planner-types.d.ts.map +1 -1
  164. package/dist/components/planner/planner-utils.d.ts +6 -5
  165. package/dist/components/planner/planner-utils.d.ts.map +1 -1
  166. package/dist/components/planner/planner.d.ts.map +1 -1
  167. package/dist/components/scaffold/context/scaffold-provider.d.ts.map +1 -1
  168. package/dist/components/scaffold/scaffold-types.d.ts +1 -0
  169. package/dist/components/scaffold/scaffold-types.d.ts.map +1 -1
  170. package/dist/components/timeline/timeline-types.d.ts +6 -2
  171. package/dist/components/timeline/timeline-types.d.ts.map +1 -1
  172. package/dist/components/timeline/timeline.d.ts.map +1 -1
  173. package/dist/components/toolbar/toolbar.d.ts.map +1 -1
  174. package/dist/components/tooltip/tooltip.d.ts.map +1 -1
  175. package/dist/cose-bilkent-S5V4N54A-B30Rh9DR.js +2250 -0
  176. package/dist/cose-bilkent-S5V4N54A-Bhdp-wcb.cjs +1 -0
  177. package/dist/cytoscape.esm-CPjF_mSK.js +18100 -0
  178. package/dist/cytoscape.esm-CrBwLFXE.cjs +321 -0
  179. package/dist/dagre-BcwvU6ZF.cjs +1 -0
  180. package/dist/dagre-D17h-Z-U.js +1606 -0
  181. package/dist/dagre-KV5264BT-BnEKAAAn.js +293 -0
  182. package/dist/dagre-KV5264BT-DRbiLA37.cjs +4 -0
  183. package/dist/defaultLocale-Dcyuaxxg.js +201 -0
  184. package/dist/defaultLocale-DtzyZW63.cjs +1 -0
  185. package/dist/diagram-5BDNPKRD-B_Fa4dpl.js +101 -0
  186. package/dist/diagram-5BDNPKRD-CPN8m2Hl.cjs +10 -0
  187. package/dist/diagram-G4DWMVQ6-VpXkNb67.cjs +24 -0
  188. package/dist/diagram-G4DWMVQ6-iYV58Drq.js +524 -0
  189. package/dist/diagram-MMDJMWI5-DGk_PUo9.cjs +43 -0
  190. package/dist/diagram-MMDJMWI5-DUpEI5ug.js +213 -0
  191. package/dist/diagram-TYMM5635-BH_-vSv9.cjs +24 -0
  192. package/dist/diagram-TYMM5635-DHHPZ5ZJ.js +133 -0
  193. package/dist/dist-BgvMZbfo.cjs +1 -0
  194. package/dist/dist-DL30VIBI.js +60 -0
  195. package/dist/erDiagram-SMLLAGMA-C8FM7wbJ.js +1700 -0
  196. package/dist/erDiagram-SMLLAGMA-vuYEmfFA.cjs +85 -0
  197. package/dist/flatten-BE1bWL-7.js +40 -0
  198. package/dist/flatten-DxvYSoR8.cjs +1 -0
  199. package/dist/flowDiagram-DWJPFMVM-BGtX2gw0.js +4145 -0
  200. package/dist/flowDiagram-DWJPFMVM-DWuKiJeo.cjs +162 -0
  201. package/dist/functional-components/action/action-types.d.ts +32 -2
  202. package/dist/functional-components/action/action-types.d.ts.map +1 -1
  203. package/dist/functional-components/action/action-utils.d.ts +13 -1
  204. package/dist/functional-components/action/action-utils.d.ts.map +1 -1
  205. package/dist/functional-components/action/action.d.ts.map +1 -1
  206. package/dist/functional-components/action-list/action-list.d.ts.map +1 -1
  207. package/dist/functional-components/action-list/dual-list/dual-list.d.ts.map +1 -1
  208. package/dist/functional-components/timeline-engine/components/gantt/bar/gantt-bar.d.ts +18 -0
  209. package/dist/functional-components/timeline-engine/components/gantt/bar/gantt-bar.d.ts.map +1 -0
  210. package/dist/functional-components/{gantt → timeline-engine/components/gantt}/gantt-assets.d.ts +2 -0
  211. package/dist/functional-components/timeline-engine/components/gantt/gantt-assets.d.ts.map +1 -0
  212. package/dist/functional-components/{gantt → timeline-engine/components/gantt}/gantt.d.ts +3 -3
  213. package/dist/functional-components/timeline-engine/components/gantt/gantt.d.ts.map +1 -0
  214. package/dist/functional-components/{gantt → timeline-engine/components/gantt}/grid/gantt-grid.d.ts +3 -5
  215. package/dist/functional-components/timeline-engine/components/gantt/grid/gantt-grid.d.ts.map +1 -0
  216. package/dist/functional-components/timeline-engine/components/gantt/header/gantt-header.d.ts.map +1 -0
  217. package/dist/functional-components/timeline-engine/components/gantt/today-indicator/gantt-today-indicator.d.ts.map +1 -0
  218. package/dist/functional-components/{gantt → timeline-engine/components/gantt}/types/gantt-types.d.ts +27 -6
  219. package/dist/functional-components/timeline-engine/components/gantt/types/gantt-types.d.ts.map +1 -0
  220. package/dist/functional-components/timeline-engine/components/task-list/task-list-types.d.ts +27 -0
  221. package/dist/functional-components/timeline-engine/components/task-list/task-list-types.d.ts.map +1 -0
  222. package/dist/functional-components/{task-list → timeline-engine/components/task-list}/task-list-utils.d.ts +4 -4
  223. package/dist/functional-components/timeline-engine/components/task-list/task-list-utils.d.ts.map +1 -0
  224. package/dist/functional-components/timeline-engine/components/task-list/task-list.d.ts.map +1 -0
  225. package/dist/functional-components/timeline-engine/timeline-engine-types.d.ts +24 -0
  226. package/dist/functional-components/timeline-engine/timeline-engine-types.d.ts.map +1 -0
  227. package/dist/functional-components/timeline-engine/timeline-engine-utils.d.ts +119 -0
  228. package/dist/functional-components/timeline-engine/timeline-engine-utils.d.ts.map +1 -0
  229. package/dist/functional-components/timeline-engine/timeline-engine-utils.test.d.ts +2 -0
  230. package/dist/functional-components/timeline-engine/timeline-engine-utils.test.d.ts.map +1 -0
  231. package/dist/functional-components/timeline-engine/timeline-engine.d.ts +8 -0
  232. package/dist/functional-components/timeline-engine/timeline-engine.d.ts.map +1 -0
  233. package/dist/ganttDiagram-T4ZO3ILL-C25CnBTv.cjs +292 -0
  234. package/dist/ganttDiagram-T4ZO3ILL-PY1BUp5b.js +3077 -0
  235. package/dist/gitGraph-7Q5UKJZL-DZea3ltD.cjs +1 -0
  236. package/dist/gitGraph-7Q5UKJZL-sjlqDwJ_.js +3 -0
  237. package/dist/gitGraphDiagram-UUTBAWPF-0lCBo9nK.cjs +106 -0
  238. package/dist/gitGraphDiagram-UUTBAWPF-CDIW9-sX.js +728 -0
  239. package/dist/graphlib-CdgJ32J_.cjs +1 -0
  240. package/dist/graphlib-DbQkSsC8.js +373 -0
  241. package/dist/hooks/useClickOutside.d.ts.map +1 -1
  242. package/dist/hooks/useFocusTrap.d.ts.map +1 -1
  243. package/dist/hooks/useGanttMath.d.ts +1 -1
  244. package/dist/hooks/useGanttMath.d.ts.map +1 -1
  245. package/dist/hooks/useVirtualListScroll.d.ts.map +1 -1
  246. package/dist/identity-KQSjemTb.cjs +1 -0
  247. package/dist/identity-g0dsMjx7.js +393 -0
  248. package/dist/info-OMHHGYJF-Bk0VWVNW.js +3 -0
  249. package/dist/info-OMHHGYJF-C8QtwF0k.cjs +1 -0
  250. package/dist/infoDiagram-42DDH7IO-CQLxpytS.js +19 -0
  251. package/dist/infoDiagram-42DDH7IO-Da__a_a_.cjs +2 -0
  252. package/dist/init-B2MubQrj.cjs +1 -0
  253. package/dist/init-BO60vQHJ.js +15 -0
  254. package/dist/isEmpty-CA3kJuev.cjs +1 -0
  255. package/dist/isEmpty-RwX-oIQS.js +35 -0
  256. package/dist/ishikawaDiagram-UXIWVN3A-BblrAmns.js +718 -0
  257. package/dist/ishikawaDiagram-UXIWVN3A-BfkF39Xv.cjs +70 -0
  258. package/dist/journeyDiagram-VCZTEJTY-CCOZ1XFK.js +883 -0
  259. package/dist/journeyDiagram-VCZTEJTY-UwcVOFtb.cjs +139 -0
  260. package/dist/kanban-definition-6JOO6SKY-BWwfbdd6.js +973 -0
  261. package/dist/kanban-definition-6JOO6SKY-Coxpi43B.cjs +89 -0
  262. package/dist/katex-Du5WiYIy.js +22000 -0
  263. package/dist/katex-SAH56fvc.cjs +257 -0
  264. package/dist/ketchup2.cjs.js +197 -1
  265. package/dist/ketchup2.css +2 -1
  266. package/dist/ketchup2.es.js +132798 -52
  267. package/dist/line-C7oijaT4.cjs +1 -0
  268. package/dist/line-CrxZdHmO.js +34 -0
  269. package/dist/linear-BsPvNLJv.js +289 -0
  270. package/dist/linear-CxHa1DsM.cjs +1 -0
  271. package/dist/mermaid-parser.core-CERDf-UG.js +69 -0
  272. package/dist/mermaid-parser.core-DHpvGOZR.cjs +3 -0
  273. package/dist/mindmap-definition-QFDTVHPH--xULjpFZ.cjs +96 -0
  274. package/dist/mindmap-definition-QFDTVHPH-dYQoMeA6.js +978 -0
  275. package/dist/ordinal-C-VoL0XF.js +65 -0
  276. package/dist/ordinal-Civr0hZL.cjs +1 -0
  277. package/dist/packet-4T2RLAQJ-X0BMsNFj.js +3 -0
  278. package/dist/packet-4T2RLAQJ-lvmQnXPI.cjs +1 -0
  279. package/dist/path-Civic7PQ.cjs +1 -0
  280. package/dist/path-CvfwEr8y.js +85 -0
  281. package/dist/pie-ZZUOXDRM-CJ_fU5k1.js +3 -0
  282. package/dist/pie-ZZUOXDRM-Dp4APKqR.cjs +1 -0
  283. package/dist/pieDiagram-DEJITSTG-7we8s9eC.cjs +30 -0
  284. package/dist/pieDiagram-DEJITSTG-Dj5pX4fC.js +165 -0
  285. package/dist/quadrantDiagram-34T5L4WZ-B3BFuPYQ.cjs +7 -0
  286. package/dist/quadrantDiagram-34T5L4WZ-BKNOJBiR.js +1974 -0
  287. package/dist/radar-PYXPWWZC-BHWJy_E1.cjs +1 -0
  288. package/dist/radar-PYXPWWZC-DgZIW9Ah.js +3 -0
  289. package/dist/reduce-B7WW9rkU.cjs +1 -0
  290. package/dist/reduce-DNnkcf3M.js +532 -0
  291. package/dist/requirementDiagram-MS252O5E-BemsEy3Y.cjs +84 -0
  292. package/dist/requirementDiagram-MS252O5E-r3eZu57d.js +2221 -0
  293. package/dist/rough.esm-1mqTSjCt.js +1352 -0
  294. package/dist/rough.esm-BLKo1fIQ.cjs +1 -0
  295. package/dist/sankeyDiagram-XADWPNL6-B9YCkPHh.cjs +10 -0
  296. package/dist/sankeyDiagram-XADWPNL6-ErTVVewH.js +920 -0
  297. package/dist/sequenceDiagram-FGHM5R23-BmqbzzHY.js +4157 -0
  298. package/dist/sequenceDiagram-FGHM5R23-CBpQL6X2.cjs +157 -0
  299. package/dist/src-BQiFKP24.js +2146 -0
  300. package/dist/src-DFxq-N5I.cjs +1 -0
  301. package/dist/stateDiagram-FHFEXIEX-CL9LE-W1.js +217 -0
  302. package/dist/stateDiagram-FHFEXIEX-Cju5Z2VS.cjs +1 -0
  303. package/dist/stateDiagram-v2-QKLJ7IA2-BHoytfGp.js +27 -0
  304. package/dist/stateDiagram-v2-QKLJ7IA2-DO1H6Vqa.cjs +1 -0
  305. package/dist/timeline-definition-GMOUNBTQ-BeTHmikc.cjs +120 -0
  306. package/dist/timeline-definition-GMOUNBTQ-DgcI7XnE.js +1068 -0
  307. package/dist/treeView-SZITEDCU-CT5vX0q9.cjs +1 -0
  308. package/dist/treeView-SZITEDCU-Df3xzFtO.js +3 -0
  309. package/dist/treemap-W4RFUUIX-Bk_jVZ7D.cjs +1 -0
  310. package/dist/treemap-W4RFUUIX-ClUtdSdn.js +3 -0
  311. package/dist/types/data-structures.d.ts +9 -1
  312. package/dist/types/data-structures.d.ts.map +1 -1
  313. package/dist/utils/data-structures.d.ts +2 -0
  314. package/dist/utils/data-structures.d.ts.map +1 -1
  315. package/dist/utils/style.d.ts +13 -2
  316. package/dist/utils/style.d.ts.map +1 -1
  317. package/dist/utils/translation.d.ts.map +1 -1
  318. package/dist/v4-6yr83DbP.cjs +1 -0
  319. package/dist/v4-BR71w5_q.js +33 -0
  320. package/dist/vennDiagram-DHZGUBPP-7tx3VVDU.js +1858 -0
  321. package/dist/vennDiagram-DHZGUBPP-C16dnMoe.cjs +34 -0
  322. package/dist/wardley-RL74JXVD-BtHQbnUy.js +3 -0
  323. package/dist/wardley-RL74JXVD-y8RO5Iqv.cjs +1 -0
  324. package/dist/wardleyDiagram-NUSXRM2D-DGKU7A2U.js +578 -0
  325. package/dist/wardleyDiagram-NUSXRM2D-DY51LHBa.cjs +20 -0
  326. package/dist/xychartDiagram-5P7HB3ND--7RYyckP.js +2044 -0
  327. package/dist/xychartDiagram-5P7HB3ND-Cj0HUNew.cjs +7 -0
  328. package/package.json +31 -31
  329. package/dist/_basePickBy-CPekwY_Z.js +0 -151
  330. package/dist/_basePickBy-DDhgLyLp.cjs +0 -1
  331. package/dist/_baseUniq-CAhfZr5S.js +0 -614
  332. package/dist/_baseUniq-bLb2QO_4.cjs +0 -1
  333. package/dist/arc-CnmUepZA.cjs +0 -1
  334. package/dist/arc-Md6Ds0JZ.js +0 -83
  335. package/dist/architecture-7HQA4BMR-DLImbuCr.js +0 -6
  336. package/dist/architecture-7HQA4BMR-zD1jCFXs.cjs +0 -1
  337. package/dist/architectureDiagram-VXUJARFQ-BkTy7RJA.js +0 -4661
  338. package/dist/architectureDiagram-VXUJARFQ-Vl-ya9R6.cjs +0 -36
  339. package/dist/blockDiagram-VD42YOAC-C9AJNM79.js +0 -2256
  340. package/dist/blockDiagram-VD42YOAC-D_EmYywD.cjs +0 -122
  341. package/dist/c4Diagram-YG6GDRKO-BfwBYulK.cjs +0 -10
  342. package/dist/c4Diagram-YG6GDRKO-YW-l-SYp.js +0 -1580
  343. package/dist/channel-BGeX_R6w.cjs +0 -1
  344. package/dist/channel-lqmaHMPZ.js +0 -5
  345. package/dist/chunk-4BX2VUAB-C6nahV0u.cjs +0 -1
  346. package/dist/chunk-4BX2VUAB-UMbIiF-V.js +0 -8
  347. package/dist/chunk-55IACEB6-CH_wWg2p.js +0 -8
  348. package/dist/chunk-55IACEB6-Cxt8uWHb.cjs +0 -1
  349. package/dist/chunk-B4BG7PRW-CTNZzNh0.js +0 -1375
  350. package/dist/chunk-B4BG7PRW-ekpXKNa3.cjs +0 -165
  351. package/dist/chunk-DI55MBZ5-BrLh6Fue.js +0 -1370
  352. package/dist/chunk-DI55MBZ5-TYqUGYGr.cjs +0 -220
  353. package/dist/chunk-FMBD7UC4-D0Nmh8EL.cjs +0 -15
  354. package/dist/chunk-QN33PNHL-B91UelWj.js +0 -19
  355. package/dist/chunk-QN33PNHL-KGNgU1-8.cjs +0 -1
  356. package/dist/chunk-QZHKN3VN-IV7jnz-R.js +0 -15
  357. package/dist/chunk-QZHKN3VN-ajuovO9B.cjs +0 -1
  358. package/dist/chunk-TZMSLE5B-Bkf7U79o.cjs +0 -1
  359. package/dist/chunk-TZMSLE5B-DArsm2Pn.js +0 -64
  360. package/dist/classDiagram-2ON5EDUG-C0_Gqd5k.js +0 -16
  361. package/dist/classDiagram-2ON5EDUG-Cnous8-m.cjs +0 -1
  362. package/dist/classDiagram-v2-WZHVMYZB-C0_Gqd5k.js +0 -16
  363. package/dist/classDiagram-v2-WZHVMYZB-Cnous8-m.cjs +0 -1
  364. package/dist/clone-B_MxWhab.js +0 -8
  365. package/dist/clone-D6gFD6F-.cjs +0 -1
  366. package/dist/cose-bilkent-S5V4N54A-DHZ_jZYH.js +0 -2608
  367. package/dist/cose-bilkent-S5V4N54A-Da7jSuau.cjs +0 -1
  368. package/dist/cytoscape.esm-CNUX3VTg.cjs +0 -321
  369. package/dist/cytoscape.esm-Cvf3sx9F.js +0 -18704
  370. package/dist/dagre-6UL2VRFP-CI2ww-SU.js +0 -444
  371. package/dist/dagre-6UL2VRFP-qOR4yAIQ.cjs +0 -4
  372. package/dist/defaultLocale-D7EN2tov.js +0 -171
  373. package/dist/defaultLocale-DIVzfLaQ.cjs +0 -1
  374. package/dist/diagram-PSM6KHXK-1g8345m3.js +0 -531
  375. package/dist/diagram-PSM6KHXK-DHWL3g5V.cjs +0 -24
  376. package/dist/diagram-QEK2KX5R-B-VP4dVY.js +0 -217
  377. package/dist/diagram-QEK2KX5R-DDWbMmAv.cjs +0 -43
  378. package/dist/diagram-S2PKOQOG-BbSGqLET.js +0 -142
  379. package/dist/diagram-S2PKOQOG-Djw9RGNh.cjs +0 -24
  380. package/dist/erDiagram-Q2GNP2WA-CxY1P4hJ.js +0 -841
  381. package/dist/erDiagram-Q2GNP2WA-Pw9i-eBN.cjs +0 -60
  382. package/dist/flowDiagram-NV44I4VS-BOr3T0H8.js +0 -1620
  383. package/dist/flowDiagram-NV44I4VS-D9VKU1cV.cjs +0 -162
  384. package/dist/functional-components/gantt/bar/gantt-bar.d.ts +0 -17
  385. package/dist/functional-components/gantt/bar/gantt-bar.d.ts.map +0 -1
  386. package/dist/functional-components/gantt/gantt-assets.d.ts.map +0 -1
  387. package/dist/functional-components/gantt/gantt.d.ts.map +0 -1
  388. package/dist/functional-components/gantt/grid/gantt-grid.d.ts.map +0 -1
  389. package/dist/functional-components/gantt/header/gantt-header.d.ts.map +0 -1
  390. package/dist/functional-components/gantt/today-indicator/gantt-today-indicator.d.ts.map +0 -1
  391. package/dist/functional-components/gantt/types/gantt-types.d.ts.map +0 -1
  392. package/dist/functional-components/task-list/task-list-types.d.ts +0 -22
  393. package/dist/functional-components/task-list/task-list-types.d.ts.map +0 -1
  394. package/dist/functional-components/task-list/task-list-utils.d.ts.map +0 -1
  395. package/dist/functional-components/task-list/task-list.d.ts.map +0 -1
  396. package/dist/ganttDiagram-JELNMOA3-B4T6J11z.js +0 -2670
  397. package/dist/ganttDiagram-JELNMOA3-C4Y4VT0h.cjs +0 -267
  398. package/dist/gitGraph-G5XIXVHT-C5QaeLIs.cjs +0 -1
  399. package/dist/gitGraph-G5XIXVHT-bOZ2ppp1.js +0 -6
  400. package/dist/gitGraphDiagram-V2S2FVAM-CteUW9ML.js +0 -699
  401. package/dist/gitGraphDiagram-V2S2FVAM-D_v6ae_z.cjs +0 -65
  402. package/dist/graph-BBPk5jyk.cjs +0 -1
  403. package/dist/graph-h6vsxKyr.js +0 -247
  404. package/dist/hooks/usePlannerSync.d.ts +0 -11
  405. package/dist/hooks/usePlannerSync.d.ts.map +0 -1
  406. package/dist/index-CYQM-t1d.cjs +0 -390
  407. package/dist/index-FiV1b00w.js +0 -133122
  408. package/dist/info-VBDWY6EO-BEIYBsnB.cjs +0 -1
  409. package/dist/info-VBDWY6EO-BQAW_660.js +0 -6
  410. package/dist/infoDiagram-HS3SLOUP-DMalb3kC.js +0 -24
  411. package/dist/infoDiagram-HS3SLOUP-Tepm6ygN.cjs +0 -2
  412. package/dist/init-CHZsXQcr.cjs +0 -1
  413. package/dist/init-DjUOC4st.js +0 -16
  414. package/dist/journeyDiagram-XKPGCS4Q-CzePcKne.cjs +0 -139
  415. package/dist/journeyDiagram-XKPGCS4Q-D0u-RLFV.js +0 -834
  416. package/dist/kanban-definition-3W4ZIXB7-BSCzAsMJ.js +0 -719
  417. package/dist/kanban-definition-3W4ZIXB7-DdbH9sci.cjs +0 -89
  418. package/dist/katex-C2g-EhzP.cjs +0 -261
  419. package/dist/katex-CUSbq6rG.js +0 -11692
  420. package/dist/layout-6z7-eUnZ.js +0 -1335
  421. package/dist/layout-DbcrMh5B.cjs +0 -1
  422. package/dist/linear-BKevCbhh.js +0 -259
  423. package/dist/linear-C7uVEtWW.cjs +0 -1
  424. package/dist/mermaid-parser.core-Cwy51n_e.js +0 -17907
  425. package/dist/mermaid-parser.core-DQ2yhapR.cjs +0 -160
  426. package/dist/mindmap-definition-VGOIOE7T-CcEisj0R.cjs +0 -68
  427. package/dist/mindmap-definition-VGOIOE7T-xp6GmSIx.js +0 -758
  428. package/dist/ordinal-B6-f3MAq.js +0 -61
  429. package/dist/ordinal-CagbB1m8.cjs +0 -1
  430. package/dist/packet-DYOGHKS2-BGgwnMhM.js +0 -6
  431. package/dist/packet-DYOGHKS2-BWg8qxI8.cjs +0 -1
  432. package/dist/pie-VRWISCQL-DhM8CUW4.cjs +0 -1
  433. package/dist/pie-VRWISCQL-DrWIWm7W.js +0 -6
  434. package/dist/pieDiagram-ADFJNKIX-BdvacM-Z.cjs +0 -30
  435. package/dist/pieDiagram-ADFJNKIX-D6Fa7W_r.js +0 -161
  436. package/dist/quadrantDiagram-AYHSOK5B-CHMoSBvg.js +0 -1022
  437. package/dist/quadrantDiagram-AYHSOK5B-ddq5zZEg.cjs +0 -7
  438. package/dist/radar-ZZBFDIW7-CPvW4Njh.js +0 -6
  439. package/dist/radar-ZZBFDIW7-YJK72BlV.cjs +0 -1
  440. package/dist/requirementDiagram-UZGBJVZJ-Cr9HnGVO.js +0 -850
  441. package/dist/requirementDiagram-UZGBJVZJ-NdpzVbnf.cjs +0 -64
  442. package/dist/sankeyDiagram-TZEHDZUN-3f19WwKd.js +0 -810
  443. package/dist/sankeyDiagram-TZEHDZUN-D2Hzq4Kr.cjs +0 -10
  444. package/dist/sequenceDiagram-WL72ISMW-Cu-7V--6.js +0 -2511
  445. package/dist/sequenceDiagram-WL72ISMW-Nk6vhSK9.cjs +0 -145
  446. package/dist/stateDiagram-FKZM4ZOC-BSnDKUaW.cjs +0 -1
  447. package/dist/stateDiagram-FKZM4ZOC-BleTIniP.js +0 -263
  448. package/dist/stateDiagram-v2-4FDKWEC3-7EjW078x.js +0 -16
  449. package/dist/stateDiagram-v2-4FDKWEC3-BJPzO53y.cjs +0 -1
  450. package/dist/timeline-definition-IT6M3QCI-CFTjPpKy.js +0 -795
  451. package/dist/timeline-definition-IT6M3QCI-CfaGtuF2.cjs +0 -61
  452. package/dist/treemap-GDKQZRPO-CtDdEOaj.cjs +0 -1
  453. package/dist/treemap-GDKQZRPO-DlODAdQ2.js +0 -6
  454. package/dist/utils/wbs-utils.d.ts +0 -143
  455. package/dist/utils/wbs-utils.d.ts.map +0 -1
  456. package/dist/xychartDiagram-PRI3JC2R-mShGv2CD.cjs +0 -7
  457. package/dist/xychartDiagram-PRI3JC2R-vEJER5zT.js +0 -1340
  458. /package/dist/functional-components/{gantt → timeline-engine/components/gantt}/header/gantt-header.d.ts +0 -0
  459. /package/dist/functional-components/{gantt → timeline-engine/components/gantt}/today-indicator/gantt-today-indicator.d.ts +0 -0
  460. /package/dist/functional-components/{task-list → timeline-engine/components/task-list}/task-list.d.ts +0 -0
@@ -0,0 +1,3320 @@
1
+ import { _ as e, g as t, h as n, m as r } from "./src-BQiFKP24.js";
2
+ //#region node_modules/dompurify/dist/purify.es.mjs
3
+ var { entries: i, setPrototypeOf: a, isFrozen: o, getPrototypeOf: s, getOwnPropertyDescriptor: c } = Object, { freeze: l, seal: u, create: d } = Object, { apply: f, construct: ee } = typeof Reflect < "u" && Reflect;
4
+ l ||= function(e) {
5
+ return e;
6
+ }, u ||= function(e) {
7
+ return e;
8
+ }, f ||= function(e, t) {
9
+ var n = [...arguments].slice(2);
10
+ return e.apply(t, n);
11
+ }, ee ||= function(e) {
12
+ return new e(...[...arguments].slice(1));
13
+ };
14
+ var p = g(Array.prototype.forEach), te = g(Array.prototype.lastIndexOf), ne = g(Array.prototype.pop), re = g(Array.prototype.push), ie = g(Array.prototype.splice), ae = g(String.prototype.toLowerCase), oe = g(String.prototype.toString), se = g(String.prototype.match), ce = g(String.prototype.replace), le = g(String.prototype.indexOf), ue = g(String.prototype.trim), m = g(Object.prototype.hasOwnProperty), h = g(RegExp.prototype.test), de = fe(TypeError);
15
+ function g(e) {
16
+ return function(t) {
17
+ t instanceof RegExp && (t.lastIndex = 0);
18
+ var n = [...arguments].slice(1);
19
+ return f(e, t, n);
20
+ };
21
+ }
22
+ function fe(e) {
23
+ return function() {
24
+ return ee(e, [...arguments]);
25
+ };
26
+ }
27
+ function _(e, t) {
28
+ let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : ae;
29
+ a && a(e, null);
30
+ let r = t.length;
31
+ for (; r--;) {
32
+ let i = t[r];
33
+ if (typeof i == "string") {
34
+ let e = n(i);
35
+ e !== i && (o(t) || (t[r] = e), i = e);
36
+ }
37
+ e[i] = !0;
38
+ }
39
+ return e;
40
+ }
41
+ function pe(e) {
42
+ for (let t = 0; t < e.length; t++) m(e, t) || (e[t] = null);
43
+ return e;
44
+ }
45
+ function v(e) {
46
+ let t = d(null);
47
+ for (let [n, r] of i(e)) m(e, n) && (Array.isArray(r) ? t[n] = pe(r) : r && typeof r == "object" && r.constructor === Object ? t[n] = v(r) : t[n] = r);
48
+ return t;
49
+ }
50
+ function me(e, t) {
51
+ for (; e !== null;) {
52
+ let n = c(e, t);
53
+ if (n) {
54
+ if (n.get) return g(n.get);
55
+ if (typeof n.value == "function") return g(n.value);
56
+ }
57
+ e = s(e);
58
+ }
59
+ function n() {
60
+ return null;
61
+ }
62
+ return n;
63
+ }
64
+ var he = l(/* @__PURE__ */ "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".split(".")), ge = l(/* @__PURE__ */ "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".split(".")), _e = l([
65
+ "feBlend",
66
+ "feColorMatrix",
67
+ "feComponentTransfer",
68
+ "feComposite",
69
+ "feConvolveMatrix",
70
+ "feDiffuseLighting",
71
+ "feDisplacementMap",
72
+ "feDistantLight",
73
+ "feDropShadow",
74
+ "feFlood",
75
+ "feFuncA",
76
+ "feFuncB",
77
+ "feFuncG",
78
+ "feFuncR",
79
+ "feGaussianBlur",
80
+ "feImage",
81
+ "feMerge",
82
+ "feMergeNode",
83
+ "feMorphology",
84
+ "feOffset",
85
+ "fePointLight",
86
+ "feSpecularLighting",
87
+ "feSpotLight",
88
+ "feTile",
89
+ "feTurbulence"
90
+ ]), ve = l([
91
+ "animate",
92
+ "color-profile",
93
+ "cursor",
94
+ "discard",
95
+ "font-face",
96
+ "font-face-format",
97
+ "font-face-name",
98
+ "font-face-src",
99
+ "font-face-uri",
100
+ "foreignobject",
101
+ "hatch",
102
+ "hatchpath",
103
+ "mesh",
104
+ "meshgradient",
105
+ "meshpatch",
106
+ "meshrow",
107
+ "missing-glyph",
108
+ "script",
109
+ "set",
110
+ "solidcolor",
111
+ "unknown",
112
+ "use"
113
+ ]), ye = l(/* @__PURE__ */ "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".split(".")), be = l([
114
+ "maction",
115
+ "maligngroup",
116
+ "malignmark",
117
+ "mlongdiv",
118
+ "mscarries",
119
+ "mscarry",
120
+ "msgroup",
121
+ "mstack",
122
+ "msline",
123
+ "msrow",
124
+ "semantics",
125
+ "annotation",
126
+ "annotation-xml",
127
+ "mprescripts",
128
+ "none"
129
+ ]), xe = l(["#text"]), Se = l(/* @__PURE__ */ "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".split(".")), Ce = l(/* @__PURE__ */ "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".split(".")), we = l(/* @__PURE__ */ "accent.accentunder.align.bevelled.close.columnalign.columnlines.columnspacing.columnspan.denomalign.depth.dir.display.displaystyle.encoding.fence.frame.height.href.id.largeop.length.linethickness.lquote.lspace.mathbackground.mathcolor.mathsize.mathvariant.maxsize.minsize.movablelimits.notation.numalign.open.rowalign.rowlines.rowspacing.rowspan.rspace.rquote.scriptlevel.scriptminsize.scriptsizemultiplier.selection.separator.separators.stretchy.subscriptshift.supscriptshift.symmetric.voffset.width.xmlns".split(".")), Te = l([
130
+ "xlink:href",
131
+ "xml:id",
132
+ "xlink:title",
133
+ "xml:space",
134
+ "xmlns:xlink"
135
+ ]), Ee = u(/\{\{[\w\W]*|[\w\W]*\}\}/gm), De = u(/<%[\w\W]*|[\w\W]*%>/gm), Oe = u(/\$\{[\w\W]*/gm), ke = u(/^data-[\-\w.\u00B7-\uFFFF]+$/), Ae = u(/^aria-[\-\w]+$/), je = u(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i), Me = u(/^(?:\w+script|data):/i), y = u(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g), Ne = u(/^html$/i), Pe = u(/^[a-z][.\w]*(-[.\w]+)+$/i), Fe = /* @__PURE__ */ Object.freeze({
136
+ __proto__: null,
137
+ ARIA_ATTR: Ae,
138
+ ATTR_WHITESPACE: y,
139
+ CUSTOM_ELEMENT: Pe,
140
+ DATA_ATTR: ke,
141
+ DOCTYPE_NAME: Ne,
142
+ ERB_EXPR: De,
143
+ IS_ALLOWED_URI: je,
144
+ IS_SCRIPT_OR_DATA: Me,
145
+ MUSTACHE_EXPR: Ee,
146
+ TMPLIT_EXPR: Oe
147
+ }), Ie = {
148
+ element: 1,
149
+ text: 3,
150
+ progressingInstruction: 7,
151
+ comment: 8,
152
+ document: 9
153
+ }, Le = function() {
154
+ return typeof window > "u" ? null : window;
155
+ }, Re = function(e, t) {
156
+ if (typeof e != "object" || typeof e.createPolicy != "function") return null;
157
+ let n = null, r = "data-tt-policy-suffix";
158
+ t && t.hasAttribute(r) && (n = t.getAttribute(r));
159
+ let i = "dompurify" + (n ? "#" + n : "");
160
+ try {
161
+ return e.createPolicy(i, {
162
+ createHTML(e) {
163
+ return e;
164
+ },
165
+ createScriptURL(e) {
166
+ return e;
167
+ }
168
+ });
169
+ } catch {
170
+ return console.warn("TrustedTypes policy " + i + " could not be created."), null;
171
+ }
172
+ }, ze = function() {
173
+ return {
174
+ afterSanitizeAttributes: [],
175
+ afterSanitizeElements: [],
176
+ afterSanitizeShadowDOM: [],
177
+ beforeSanitizeAttributes: [],
178
+ beforeSanitizeElements: [],
179
+ beforeSanitizeShadowDOM: [],
180
+ uponSanitizeAttribute: [],
181
+ uponSanitizeElement: [],
182
+ uponSanitizeShadowNode: []
183
+ };
184
+ };
185
+ function Be() {
186
+ let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Le(), t = (e) => Be(e);
187
+ if (t.version = "3.4.0", t.removed = [], !e || !e.document || e.document.nodeType !== Ie.document || !e.Element) return t.isSupported = !1, t;
188
+ let { document: n } = e, r = n, a = r.currentScript, { DocumentFragment: o, HTMLTemplateElement: s, Node: c, Element: u, NodeFilter: f, NamedNodeMap: ee = e.NamedNodeMap || e.MozNamedAttrMap, HTMLFormElement: g, DOMParser: fe, trustedTypes: pe } = e, Ee = u.prototype, De = me(Ee, "cloneNode"), Oe = me(Ee, "remove"), ke = me(Ee, "nextSibling"), Ae = me(Ee, "childNodes"), Me = me(Ee, "parentNode");
189
+ if (typeof s == "function") {
190
+ let e = n.createElement("template");
191
+ e.content && e.content.ownerDocument && (n = e.content.ownerDocument);
192
+ }
193
+ let y, Pe = "", { implementation: b, createNodeIterator: Ve, createDocumentFragment: x, getElementsByTagName: S } = n, { importNode: C } = r, w = ze();
194
+ t.isSupported = typeof i == "function" && typeof Me == "function" && b && b.createHTMLDocument !== void 0;
195
+ let { MUSTACHE_EXPR: T, ERB_EXPR: E, TMPLIT_EXPR: D, DATA_ATTR: He, ARIA_ATTR: Ue, IS_SCRIPT_OR_DATA: O, ATTR_WHITESPACE: We, CUSTOM_ELEMENT: k } = Fe, { IS_ALLOWED_URI: Ge } = Fe, A = null, j = _({}, [
196
+ ...he,
197
+ ...ge,
198
+ ..._e,
199
+ ...ye,
200
+ ...xe
201
+ ]), M = null, N = _({}, [
202
+ ...Se,
203
+ ...Ce,
204
+ ...we,
205
+ ...Te
206
+ ]), P = Object.seal(d(null, {
207
+ tagNameCheck: {
208
+ writable: !0,
209
+ configurable: !1,
210
+ enumerable: !0,
211
+ value: null
212
+ },
213
+ attributeNameCheck: {
214
+ writable: !0,
215
+ configurable: !1,
216
+ enumerable: !0,
217
+ value: null
218
+ },
219
+ allowCustomizedBuiltInElements: {
220
+ writable: !0,
221
+ configurable: !1,
222
+ enumerable: !0,
223
+ value: !1
224
+ }
225
+ })), F = null, Ke = null, I = Object.seal(d(null, {
226
+ tagCheck: {
227
+ writable: !0,
228
+ configurable: !1,
229
+ enumerable: !0,
230
+ value: null
231
+ },
232
+ attributeCheck: {
233
+ writable: !0,
234
+ configurable: !1,
235
+ enumerable: !0,
236
+ value: null
237
+ }
238
+ })), qe = !0, Je = !0, Ye = !1, Xe = !0, L = !1, Ze = !0, R = !1, Qe = !1, $e = !1, z = !1, B = !1, V = !1, H = !0, U = !1, et = !0, tt = !1, nt = {}, W = null, rt = _({}, [
239
+ "annotation-xml",
240
+ "audio",
241
+ "colgroup",
242
+ "desc",
243
+ "foreignobject",
244
+ "head",
245
+ "iframe",
246
+ "math",
247
+ "mi",
248
+ "mn",
249
+ "mo",
250
+ "ms",
251
+ "mtext",
252
+ "noembed",
253
+ "noframes",
254
+ "noscript",
255
+ "plaintext",
256
+ "script",
257
+ "style",
258
+ "svg",
259
+ "template",
260
+ "thead",
261
+ "title",
262
+ "video",
263
+ "xmp"
264
+ ]), it = null, at = _({}, [
265
+ "audio",
266
+ "video",
267
+ "img",
268
+ "source",
269
+ "image",
270
+ "track"
271
+ ]), ot = null, st = _({}, [
272
+ "alt",
273
+ "class",
274
+ "for",
275
+ "id",
276
+ "label",
277
+ "name",
278
+ "pattern",
279
+ "placeholder",
280
+ "role",
281
+ "summary",
282
+ "title",
283
+ "value",
284
+ "style",
285
+ "xmlns"
286
+ ]), ct = "http://www.w3.org/1998/Math/MathML", lt = "http://www.w3.org/2000/svg", G = "http://www.w3.org/1999/xhtml", ut = G, dt = !1, ft = null, pt = _({}, [
287
+ ct,
288
+ lt,
289
+ G
290
+ ], oe), mt = _({}, [
291
+ "mi",
292
+ "mo",
293
+ "mn",
294
+ "ms",
295
+ "mtext"
296
+ ]), ht = _({}, ["annotation-xml"]), gt = _({}, [
297
+ "title",
298
+ "style",
299
+ "font",
300
+ "a",
301
+ "script"
302
+ ]), _t = null, vt = ["application/xhtml+xml", "text/html"], K = null, q = null, yt = n.createElement("form"), bt = function(e) {
303
+ return e instanceof RegExp || e instanceof Function;
304
+ }, xt = function() {
305
+ let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
306
+ if (!(q && q === e)) {
307
+ if ((!e || typeof e != "object") && (e = {}), e = v(e), _t = vt.indexOf(e.PARSER_MEDIA_TYPE) === -1 ? "text/html" : e.PARSER_MEDIA_TYPE, K = _t === "application/xhtml+xml" ? oe : ae, A = m(e, "ALLOWED_TAGS") ? _({}, e.ALLOWED_TAGS, K) : j, M = m(e, "ALLOWED_ATTR") ? _({}, e.ALLOWED_ATTR, K) : N, ft = m(e, "ALLOWED_NAMESPACES") ? _({}, e.ALLOWED_NAMESPACES, oe) : pt, ot = m(e, "ADD_URI_SAFE_ATTR") ? _(v(st), e.ADD_URI_SAFE_ATTR, K) : st, it = m(e, "ADD_DATA_URI_TAGS") ? _(v(at), e.ADD_DATA_URI_TAGS, K) : at, W = m(e, "FORBID_CONTENTS") ? _({}, e.FORBID_CONTENTS, K) : rt, F = m(e, "FORBID_TAGS") ? _({}, e.FORBID_TAGS, K) : v({}), Ke = m(e, "FORBID_ATTR") ? _({}, e.FORBID_ATTR, K) : v({}), nt = m(e, "USE_PROFILES") ? e.USE_PROFILES : !1, qe = e.ALLOW_ARIA_ATTR !== !1, Je = e.ALLOW_DATA_ATTR !== !1, Ye = e.ALLOW_UNKNOWN_PROTOCOLS || !1, Xe = e.ALLOW_SELF_CLOSE_IN_ATTR !== !1, L = e.SAFE_FOR_TEMPLATES || !1, Ze = e.SAFE_FOR_XML !== !1, R = e.WHOLE_DOCUMENT || !1, z = e.RETURN_DOM || !1, B = e.RETURN_DOM_FRAGMENT || !1, V = e.RETURN_TRUSTED_TYPE || !1, $e = e.FORCE_BODY || !1, H = e.SANITIZE_DOM !== !1, U = e.SANITIZE_NAMED_PROPS || !1, et = e.KEEP_CONTENT !== !1, tt = e.IN_PLACE || !1, Ge = e.ALLOWED_URI_REGEXP || je, ut = e.NAMESPACE || G, mt = e.MATHML_TEXT_INTEGRATION_POINTS || mt, ht = e.HTML_INTEGRATION_POINTS || ht, P = e.CUSTOM_ELEMENT_HANDLING || d(null), e.CUSTOM_ELEMENT_HANDLING && bt(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (P.tagNameCheck = e.CUSTOM_ELEMENT_HANDLING.tagNameCheck), e.CUSTOM_ELEMENT_HANDLING && bt(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (P.attributeNameCheck = e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), e.CUSTOM_ELEMENT_HANDLING && typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (P.allowCustomizedBuiltInElements = e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), L && (Je = !1), B && (z = !0), nt && (A = _({}, xe), M = d(null), nt.html === !0 && (_(A, he), _(M, Se)), nt.svg === !0 && (_(A, ge), _(M, Ce), _(M, Te)), nt.svgFilters === !0 && (_(A, _e), _(M, Ce), _(M, Te)), nt.mathMl === !0 && (_(A, ye), _(M, we), _(M, Te))), I.tagCheck = null, I.attributeCheck = null, e.ADD_TAGS && (typeof e.ADD_TAGS == "function" ? I.tagCheck = e.ADD_TAGS : (A === j && (A = v(A)), _(A, e.ADD_TAGS, K))), e.ADD_ATTR && (typeof e.ADD_ATTR == "function" ? I.attributeCheck = e.ADD_ATTR : (M === N && (M = v(M)), _(M, e.ADD_ATTR, K))), e.ADD_URI_SAFE_ATTR && _(ot, e.ADD_URI_SAFE_ATTR, K), e.FORBID_CONTENTS && (W === rt && (W = v(W)), _(W, e.FORBID_CONTENTS, K)), e.ADD_FORBID_CONTENTS && (W === rt && (W = v(W)), _(W, e.ADD_FORBID_CONTENTS, K)), et && (A["#text"] = !0), R && _(A, [
308
+ "html",
309
+ "head",
310
+ "body"
311
+ ]), A.table && (_(A, ["tbody"]), delete F.tbody), e.TRUSTED_TYPES_POLICY) {
312
+ if (typeof e.TRUSTED_TYPES_POLICY.createHTML != "function") throw de("TRUSTED_TYPES_POLICY configuration option must provide a \"createHTML\" hook.");
313
+ if (typeof e.TRUSTED_TYPES_POLICY.createScriptURL != "function") throw de("TRUSTED_TYPES_POLICY configuration option must provide a \"createScriptURL\" hook.");
314
+ y = e.TRUSTED_TYPES_POLICY, Pe = y.createHTML("");
315
+ } else y === void 0 && (y = Re(pe, a)), y !== null && typeof Pe == "string" && (Pe = y.createHTML(""));
316
+ l && l(e), q = e;
317
+ }
318
+ }, St = _({}, [
319
+ ...ge,
320
+ ..._e,
321
+ ...ve
322
+ ]), Ct = _({}, [...ye, ...be]), wt = function(e) {
323
+ let t = Me(e);
324
+ (!t || !t.tagName) && (t = {
325
+ namespaceURI: ut,
326
+ tagName: "template"
327
+ });
328
+ let n = ae(e.tagName), r = ae(t.tagName);
329
+ return ft[e.namespaceURI] ? e.namespaceURI === lt ? t.namespaceURI === G ? n === "svg" : t.namespaceURI === ct ? n === "svg" && (r === "annotation-xml" || mt[r]) : !!St[n] : e.namespaceURI === ct ? t.namespaceURI === G ? n === "math" : t.namespaceURI === lt ? n === "math" && ht[r] : !!Ct[n] : e.namespaceURI === G ? t.namespaceURI === lt && !ht[r] || t.namespaceURI === ct && !mt[r] ? !1 : !Ct[n] && (gt[n] || !St[n]) : !!(_t === "application/xhtml+xml" && ft[e.namespaceURI]) : !1;
330
+ }, J = function(e) {
331
+ re(t.removed, { element: e });
332
+ try {
333
+ Me(e).removeChild(e);
334
+ } catch {
335
+ Oe(e);
336
+ }
337
+ }, Y = function(e, n) {
338
+ try {
339
+ re(t.removed, {
340
+ attribute: n.getAttributeNode(e),
341
+ from: n
342
+ });
343
+ } catch {
344
+ re(t.removed, {
345
+ attribute: null,
346
+ from: n
347
+ });
348
+ }
349
+ if (n.removeAttribute(e), e === "is") if (z || B) try {
350
+ J(n);
351
+ } catch {}
352
+ else try {
353
+ n.setAttribute(e, "");
354
+ } catch {}
355
+ }, X = function(e) {
356
+ let t = null, r = null;
357
+ if ($e) e = "<remove></remove>" + e;
358
+ else {
359
+ let t = se(e, /^[\r\n\t ]+/);
360
+ r = t && t[0];
361
+ }
362
+ _t === "application/xhtml+xml" && ut === G && (e = "<html xmlns=\"http://www.w3.org/1999/xhtml\"><head></head><body>" + e + "</body></html>");
363
+ let i = y ? y.createHTML(e) : e;
364
+ if (ut === G) try {
365
+ t = new fe().parseFromString(i, _t);
366
+ } catch {}
367
+ if (!t || !t.documentElement) {
368
+ t = b.createDocument(ut, "template", null);
369
+ try {
370
+ t.documentElement.innerHTML = dt ? Pe : i;
371
+ } catch {}
372
+ }
373
+ let a = t.body || t.documentElement;
374
+ return e && r && a.insertBefore(n.createTextNode(r), a.childNodes[0] || null), ut === G ? S.call(t, R ? "html" : "body")[0] : R ? t.documentElement : a;
375
+ }, Tt = function(e) {
376
+ return Ve.call(e.ownerDocument || e, e, f.SHOW_ELEMENT | f.SHOW_COMMENT | f.SHOW_TEXT | f.SHOW_PROCESSING_INSTRUCTION | f.SHOW_CDATA_SECTION, null);
377
+ }, Z = function(e) {
378
+ return e instanceof g && (typeof e.nodeName != "string" || typeof e.textContent != "string" || typeof e.removeChild != "function" || !(e.attributes instanceof ee) || typeof e.removeAttribute != "function" || typeof e.setAttribute != "function" || typeof e.namespaceURI != "string" || typeof e.insertBefore != "function" || typeof e.hasChildNodes != "function");
379
+ }, Q = function(e) {
380
+ return typeof c == "function" && e instanceof c;
381
+ };
382
+ function $(e, n, r) {
383
+ p(e, (e) => {
384
+ e.call(t, n, r, q);
385
+ });
386
+ }
387
+ let Et = function(e) {
388
+ let n = null;
389
+ if ($(w.beforeSanitizeElements, e, null), Z(e)) return J(e), !0;
390
+ let r = K(e.nodeName);
391
+ if ($(w.uponSanitizeElement, e, {
392
+ tagName: r,
393
+ allowedTags: A
394
+ }), Ze && e.hasChildNodes() && !Q(e.firstElementChild) && h(/<[/\w!]/g, e.innerHTML) && h(/<[/\w!]/g, e.textContent) || Ze && e.namespaceURI === G && r === "style" && Q(e.firstElementChild) || e.nodeType === Ie.progressingInstruction || Ze && e.nodeType === Ie.comment && h(/<[/\w]/g, e.data)) return J(e), !0;
395
+ if (F[r] || !(I.tagCheck instanceof Function && I.tagCheck(r)) && !A[r]) {
396
+ if (!F[r] && Ot(r) && (P.tagNameCheck instanceof RegExp && h(P.tagNameCheck, r) || P.tagNameCheck instanceof Function && P.tagNameCheck(r))) return !1;
397
+ if (et && !W[r]) {
398
+ let t = Me(e) || e.parentNode, n = Ae(e) || e.childNodes;
399
+ if (n && t) {
400
+ let r = n.length;
401
+ for (let i = r - 1; i >= 0; --i) {
402
+ let r = De(n[i], !0);
403
+ r.__removalCount = (e.__removalCount || 0) + 1, t.insertBefore(r, ke(e));
404
+ }
405
+ }
406
+ }
407
+ return J(e), !0;
408
+ }
409
+ return e instanceof u && !wt(e) || (r === "noscript" || r === "noembed" || r === "noframes") && h(/<\/no(script|embed|frames)/i, e.innerHTML) ? (J(e), !0) : (L && e.nodeType === Ie.text && (n = e.textContent, p([
410
+ T,
411
+ E,
412
+ D
413
+ ], (e) => {
414
+ n = ce(n, e, " ");
415
+ }), e.textContent !== n && (re(t.removed, { element: e.cloneNode() }), e.textContent = n)), $(w.afterSanitizeElements, e, null), !1);
416
+ }, Dt = function(e, t, r) {
417
+ if (Ke[t] || H && (t === "id" || t === "name") && (r in n || r in yt)) return !1;
418
+ if (!(Je && !Ke[t] && h(He, t)) && !(qe && h(Ue, t)) && !(I.attributeCheck instanceof Function && I.attributeCheck(t, e))) {
419
+ if (!M[t] || Ke[t]) {
420
+ if (!(Ot(e) && (P.tagNameCheck instanceof RegExp && h(P.tagNameCheck, e) || P.tagNameCheck instanceof Function && P.tagNameCheck(e)) && (P.attributeNameCheck instanceof RegExp && h(P.attributeNameCheck, t) || P.attributeNameCheck instanceof Function && P.attributeNameCheck(t, e)) || t === "is" && P.allowCustomizedBuiltInElements && (P.tagNameCheck instanceof RegExp && h(P.tagNameCheck, r) || P.tagNameCheck instanceof Function && P.tagNameCheck(r)))) return !1;
421
+ } else if (!ot[t] && !h(Ge, ce(r, We, "")) && !((t === "src" || t === "xlink:href" || t === "href") && e !== "script" && le(r, "data:") === 0 && it[e]) && !(Ye && !h(O, ce(r, We, ""))) && r) return !1;
422
+ }
423
+ return !0;
424
+ }, Ot = function(e) {
425
+ return e !== "annotation-xml" && se(e, k);
426
+ }, kt = function(e) {
427
+ $(w.beforeSanitizeAttributes, e, null);
428
+ let { attributes: n } = e;
429
+ if (!n || Z(e)) return;
430
+ let r = {
431
+ attrName: "",
432
+ attrValue: "",
433
+ keepAttr: !0,
434
+ allowedAttributes: M,
435
+ forceKeepAttr: void 0
436
+ }, i = n.length;
437
+ for (; i--;) {
438
+ let { name: a, namespaceURI: o, value: s } = n[i], c = K(a), l = s, u = a === "value" ? l : ue(l);
439
+ if (r.attrName = c, r.attrValue = u, r.keepAttr = !0, r.forceKeepAttr = void 0, $(w.uponSanitizeAttribute, e, r), u = r.attrValue, U && (c === "id" || c === "name") && (Y(a, e), u = "user-content-" + u), Ze && h(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, u)) {
440
+ Y(a, e);
441
+ continue;
442
+ }
443
+ if (c === "attributename" && se(u, "href")) {
444
+ Y(a, e);
445
+ continue;
446
+ }
447
+ if (r.forceKeepAttr) continue;
448
+ if (!r.keepAttr) {
449
+ Y(a, e);
450
+ continue;
451
+ }
452
+ if (!Xe && h(/\/>/i, u)) {
453
+ Y(a, e);
454
+ continue;
455
+ }
456
+ L && p([
457
+ T,
458
+ E,
459
+ D
460
+ ], (e) => {
461
+ u = ce(u, e, " ");
462
+ });
463
+ let d = K(e.nodeName);
464
+ if (!Dt(d, c, u)) {
465
+ Y(a, e);
466
+ continue;
467
+ }
468
+ if (y && typeof pe == "object" && typeof pe.getAttributeType == "function" && !o) switch (pe.getAttributeType(d, c)) {
469
+ case "TrustedHTML":
470
+ u = y.createHTML(u);
471
+ break;
472
+ case "TrustedScriptURL":
473
+ u = y.createScriptURL(u);
474
+ break;
475
+ }
476
+ if (u !== l) try {
477
+ o ? e.setAttributeNS(o, a, u) : e.setAttribute(a, u), Z(e) ? J(e) : ne(t.removed);
478
+ } catch {
479
+ Y(a, e);
480
+ }
481
+ }
482
+ $(w.afterSanitizeAttributes, e, null);
483
+ }, At = function(e) {
484
+ let t = null, n = Tt(e);
485
+ for ($(w.beforeSanitizeShadowDOM, e, null); t = n.nextNode();) $(w.uponSanitizeShadowNode, t, null), Et(t), kt(t), t.content instanceof o && At(t.content);
486
+ $(w.afterSanitizeShadowDOM, e, null);
487
+ };
488
+ return t.sanitize = function(e) {
489
+ let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, i = null, a = null, s = null, l = null;
490
+ if (dt = !e, dt && (e = "<!-->"), typeof e != "string" && !Q(e)) if (typeof e.toString == "function") {
491
+ if (e = e.toString(), typeof e != "string") throw de("dirty is not a string, aborting");
492
+ } else throw de("toString is not a function");
493
+ if (!t.isSupported) return e;
494
+ if (Qe || xt(n), t.removed = [], typeof e == "string" && (tt = !1), tt) {
495
+ if (e.nodeName) {
496
+ let t = K(e.nodeName);
497
+ if (!A[t] || F[t]) throw de("root node is forbidden and cannot be sanitized in-place");
498
+ }
499
+ } else if (e instanceof c) i = X("<!---->"), a = i.ownerDocument.importNode(e, !0), a.nodeType === Ie.element && a.nodeName === "BODY" || a.nodeName === "HTML" ? i = a : i.appendChild(a);
500
+ else {
501
+ if (!z && !L && !R && e.indexOf("<") === -1) return y && V ? y.createHTML(e) : e;
502
+ if (i = X(e), !i) return z ? null : V ? Pe : "";
503
+ }
504
+ i && $e && J(i.firstChild);
505
+ let u = Tt(tt ? e : i);
506
+ for (; s = u.nextNode();) Et(s), kt(s), s.content instanceof o && At(s.content);
507
+ if (tt) return e;
508
+ if (z) {
509
+ if (L) {
510
+ i.normalize();
511
+ let e = i.innerHTML;
512
+ p([
513
+ T,
514
+ E,
515
+ D
516
+ ], (t) => {
517
+ e = ce(e, t, " ");
518
+ }), i.innerHTML = e;
519
+ }
520
+ if (B) for (l = x.call(i.ownerDocument); i.firstChild;) l.appendChild(i.firstChild);
521
+ else l = i;
522
+ return (M.shadowroot || M.shadowrootmode) && (l = C.call(r, l, !0)), l;
523
+ }
524
+ let d = R ? i.outerHTML : i.innerHTML;
525
+ return R && A["!doctype"] && i.ownerDocument && i.ownerDocument.doctype && i.ownerDocument.doctype.name && h(Ne, i.ownerDocument.doctype.name) && (d = "<!DOCTYPE " + i.ownerDocument.doctype.name + ">\n" + d), L && p([
526
+ T,
527
+ E,
528
+ D
529
+ ], (e) => {
530
+ d = ce(d, e, " ");
531
+ }), y && V ? y.createHTML(d) : d;
532
+ }, t.setConfig = function() {
533
+ xt(arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}), Qe = !0;
534
+ }, t.clearConfig = function() {
535
+ q = null, Qe = !1;
536
+ }, t.isValidAttribute = function(e, t, n) {
537
+ return q || xt({}), Dt(K(e), K(t), n);
538
+ }, t.addHook = function(e, t) {
539
+ typeof t == "function" && re(w[e], t);
540
+ }, t.removeHook = function(e, t) {
541
+ if (t !== void 0) {
542
+ let n = te(w[e], t);
543
+ return n === -1 ? void 0 : ie(w[e], n, 1)[0];
544
+ }
545
+ return ne(w[e]);
546
+ }, t.removeHooks = function(e) {
547
+ w[e] = [];
548
+ }, t.removeAllHooks = function() {
549
+ w = ze();
550
+ }, t;
551
+ }
552
+ var b = Be(), Ve = {
553
+ min: {
554
+ r: 0,
555
+ g: 0,
556
+ b: 0,
557
+ s: 0,
558
+ l: 0,
559
+ a: 0
560
+ },
561
+ max: {
562
+ r: 255,
563
+ g: 255,
564
+ b: 255,
565
+ h: 360,
566
+ s: 100,
567
+ l: 100,
568
+ a: 1
569
+ },
570
+ clamp: {
571
+ r: (e) => e >= 255 ? 255 : e < 0 ? 0 : e,
572
+ g: (e) => e >= 255 ? 255 : e < 0 ? 0 : e,
573
+ b: (e) => e >= 255 ? 255 : e < 0 ? 0 : e,
574
+ h: (e) => e % 360,
575
+ s: (e) => e >= 100 ? 100 : e < 0 ? 0 : e,
576
+ l: (e) => e >= 100 ? 100 : e < 0 ? 0 : e,
577
+ a: (e) => e >= 1 ? 1 : e < 0 ? 0 : e
578
+ },
579
+ toLinear: (e) => {
580
+ let t = e / 255;
581
+ return e > .03928 ? ((t + .055) / 1.055) ** 2.4 : t / 12.92;
582
+ },
583
+ hue2rgb: (e, t, n) => (n < 0 && (n += 1), n > 1 && --n, n < 1 / 6 ? e + (t - e) * 6 * n : n < 1 / 2 ? t : n < 2 / 3 ? e + (t - e) * (2 / 3 - n) * 6 : e),
584
+ hsl2rgb: ({ h: e, s: t, l: n }, r) => {
585
+ if (!t) return n * 2.55;
586
+ e /= 360, t /= 100, n /= 100;
587
+ let i = n < .5 ? n * (1 + t) : n + t - n * t, a = 2 * n - i;
588
+ switch (r) {
589
+ case "r": return Ve.hue2rgb(a, i, e + 1 / 3) * 255;
590
+ case "g": return Ve.hue2rgb(a, i, e) * 255;
591
+ case "b": return Ve.hue2rgb(a, i, e - 1 / 3) * 255;
592
+ }
593
+ },
594
+ rgb2hsl: ({ r: e, g: t, b: n }, r) => {
595
+ e /= 255, t /= 255, n /= 255;
596
+ let i = Math.max(e, t, n), a = Math.min(e, t, n), o = (i + a) / 2;
597
+ if (r === "l") return o * 100;
598
+ if (i === a) return 0;
599
+ let s = i - a, c = o > .5 ? s / (2 - i - a) : s / (i + a);
600
+ if (r === "s") return c * 100;
601
+ switch (i) {
602
+ case e: return ((t - n) / s + (t < n ? 6 : 0)) * 60;
603
+ case t: return ((n - e) / s + 2) * 60;
604
+ case n: return ((e - t) / s + 4) * 60;
605
+ default: return -1;
606
+ }
607
+ }
608
+ }, x = {
609
+ channel: Ve,
610
+ lang: {
611
+ clamp: (e, t, n) => t > n ? Math.min(t, Math.max(n, e)) : Math.min(n, Math.max(t, e)),
612
+ round: (e) => Math.round(e * 1e10) / 1e10
613
+ },
614
+ unit: { dec2hex: (e) => {
615
+ let t = Math.round(e).toString(16);
616
+ return t.length > 1 ? t : `0${t}`;
617
+ } }
618
+ }, S = {};
619
+ for (let e = 0; e <= 255; e++) S[e] = x.unit.dec2hex(e);
620
+ var C = {
621
+ ALL: 0,
622
+ RGB: 1,
623
+ HSL: 2
624
+ }, w = class {
625
+ constructor() {
626
+ this.type = C.ALL;
627
+ }
628
+ get() {
629
+ return this.type;
630
+ }
631
+ set(e) {
632
+ if (this.type && this.type !== e) throw Error("Cannot change both RGB and HSL channels at the same time");
633
+ this.type = e;
634
+ }
635
+ reset() {
636
+ this.type = C.ALL;
637
+ }
638
+ is(e) {
639
+ return this.type === e;
640
+ }
641
+ }, T = new class {
642
+ constructor(e, t) {
643
+ this.color = t, this.changed = !1, this.data = e, this.type = new w();
644
+ }
645
+ set(e, t) {
646
+ return this.color = t, this.changed = !1, this.data = e, this.type.type = C.ALL, this;
647
+ }
648
+ _ensureHSL() {
649
+ let e = this.data, { h: t, s: n, l: r } = e;
650
+ t === void 0 && (e.h = x.channel.rgb2hsl(e, "h")), n === void 0 && (e.s = x.channel.rgb2hsl(e, "s")), r === void 0 && (e.l = x.channel.rgb2hsl(e, "l"));
651
+ }
652
+ _ensureRGB() {
653
+ let e = this.data, { r: t, g: n, b: r } = e;
654
+ t === void 0 && (e.r = x.channel.hsl2rgb(e, "r")), n === void 0 && (e.g = x.channel.hsl2rgb(e, "g")), r === void 0 && (e.b = x.channel.hsl2rgb(e, "b"));
655
+ }
656
+ get r() {
657
+ let e = this.data, t = e.r;
658
+ return !this.type.is(C.HSL) && t !== void 0 ? t : (this._ensureHSL(), x.channel.hsl2rgb(e, "r"));
659
+ }
660
+ get g() {
661
+ let e = this.data, t = e.g;
662
+ return !this.type.is(C.HSL) && t !== void 0 ? t : (this._ensureHSL(), x.channel.hsl2rgb(e, "g"));
663
+ }
664
+ get b() {
665
+ let e = this.data, t = e.b;
666
+ return !this.type.is(C.HSL) && t !== void 0 ? t : (this._ensureHSL(), x.channel.hsl2rgb(e, "b"));
667
+ }
668
+ get h() {
669
+ let e = this.data, t = e.h;
670
+ return !this.type.is(C.RGB) && t !== void 0 ? t : (this._ensureRGB(), x.channel.rgb2hsl(e, "h"));
671
+ }
672
+ get s() {
673
+ let e = this.data, t = e.s;
674
+ return !this.type.is(C.RGB) && t !== void 0 ? t : (this._ensureRGB(), x.channel.rgb2hsl(e, "s"));
675
+ }
676
+ get l() {
677
+ let e = this.data, t = e.l;
678
+ return !this.type.is(C.RGB) && t !== void 0 ? t : (this._ensureRGB(), x.channel.rgb2hsl(e, "l"));
679
+ }
680
+ get a() {
681
+ return this.data.a;
682
+ }
683
+ set r(e) {
684
+ this.type.set(C.RGB), this.changed = !0, this.data.r = e;
685
+ }
686
+ set g(e) {
687
+ this.type.set(C.RGB), this.changed = !0, this.data.g = e;
688
+ }
689
+ set b(e) {
690
+ this.type.set(C.RGB), this.changed = !0, this.data.b = e;
691
+ }
692
+ set h(e) {
693
+ this.type.set(C.HSL), this.changed = !0, this.data.h = e;
694
+ }
695
+ set s(e) {
696
+ this.type.set(C.HSL), this.changed = !0, this.data.s = e;
697
+ }
698
+ set l(e) {
699
+ this.type.set(C.HSL), this.changed = !0, this.data.l = e;
700
+ }
701
+ set a(e) {
702
+ this.changed = !0, this.data.a = e;
703
+ }
704
+ }({
705
+ r: 0,
706
+ g: 0,
707
+ b: 0,
708
+ a: 0
709
+ }, "transparent"), E = {
710
+ re: /^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,
711
+ parse: (e) => {
712
+ if (e.charCodeAt(0) !== 35) return;
713
+ let t = e.match(E.re);
714
+ if (!t) return;
715
+ let n = t[1], r = parseInt(n, 16), i = n.length, a = i % 4 == 0, o = i > 4, s = o ? 1 : 17, c = o ? 8 : 4, l = a ? 0 : -1, u = o ? 255 : 15;
716
+ return T.set({
717
+ r: (r >> c * (l + 3) & u) * s,
718
+ g: (r >> c * (l + 2) & u) * s,
719
+ b: (r >> c * (l + 1) & u) * s,
720
+ a: a ? (r & u) * s / 255 : 1
721
+ }, e);
722
+ },
723
+ stringify: (e) => {
724
+ let { r: t, g: n, b: r, a: i } = e;
725
+ return i < 1 ? `#${S[Math.round(t)]}${S[Math.round(n)]}${S[Math.round(r)]}${S[Math.round(i * 255)]}` : `#${S[Math.round(t)]}${S[Math.round(n)]}${S[Math.round(r)]}`;
726
+ }
727
+ }, D = {
728
+ 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,
729
+ hueRe: /^(.+?)(deg|grad|rad|turn)$/i,
730
+ _hue2deg: (e) => {
731
+ let t = e.match(D.hueRe);
732
+ if (t) {
733
+ let [, e, n] = t;
734
+ switch (n) {
735
+ case "grad": return x.channel.clamp.h(parseFloat(e) * .9);
736
+ case "rad": return x.channel.clamp.h(parseFloat(e) * 180 / Math.PI);
737
+ case "turn": return x.channel.clamp.h(parseFloat(e) * 360);
738
+ }
739
+ }
740
+ return x.channel.clamp.h(parseFloat(e));
741
+ },
742
+ parse: (e) => {
743
+ let t = e.charCodeAt(0);
744
+ if (t !== 104 && t !== 72) return;
745
+ let n = e.match(D.re);
746
+ if (!n) return;
747
+ let [, r, i, a, o, s] = n;
748
+ return T.set({
749
+ h: D._hue2deg(r),
750
+ s: x.channel.clamp.s(parseFloat(i)),
751
+ l: x.channel.clamp.l(parseFloat(a)),
752
+ a: o ? x.channel.clamp.a(s ? parseFloat(o) / 100 : parseFloat(o)) : 1
753
+ }, e);
754
+ },
755
+ stringify: (e) => {
756
+ let { h: t, s: n, l: r, a: i } = e;
757
+ return i < 1 ? `hsla(${x.lang.round(t)}, ${x.lang.round(n)}%, ${x.lang.round(r)}%, ${i})` : `hsl(${x.lang.round(t)}, ${x.lang.round(n)}%, ${x.lang.round(r)}%)`;
758
+ }
759
+ }, He = {
760
+ colors: {
761
+ aliceblue: "#f0f8ff",
762
+ antiquewhite: "#faebd7",
763
+ aqua: "#00ffff",
764
+ aquamarine: "#7fffd4",
765
+ azure: "#f0ffff",
766
+ beige: "#f5f5dc",
767
+ bisque: "#ffe4c4",
768
+ black: "#000000",
769
+ blanchedalmond: "#ffebcd",
770
+ blue: "#0000ff",
771
+ blueviolet: "#8a2be2",
772
+ brown: "#a52a2a",
773
+ burlywood: "#deb887",
774
+ cadetblue: "#5f9ea0",
775
+ chartreuse: "#7fff00",
776
+ chocolate: "#d2691e",
777
+ coral: "#ff7f50",
778
+ cornflowerblue: "#6495ed",
779
+ cornsilk: "#fff8dc",
780
+ crimson: "#dc143c",
781
+ cyanaqua: "#00ffff",
782
+ darkblue: "#00008b",
783
+ darkcyan: "#008b8b",
784
+ darkgoldenrod: "#b8860b",
785
+ darkgray: "#a9a9a9",
786
+ darkgreen: "#006400",
787
+ darkgrey: "#a9a9a9",
788
+ darkkhaki: "#bdb76b",
789
+ darkmagenta: "#8b008b",
790
+ darkolivegreen: "#556b2f",
791
+ darkorange: "#ff8c00",
792
+ darkorchid: "#9932cc",
793
+ darkred: "#8b0000",
794
+ darksalmon: "#e9967a",
795
+ darkseagreen: "#8fbc8f",
796
+ darkslateblue: "#483d8b",
797
+ darkslategray: "#2f4f4f",
798
+ darkslategrey: "#2f4f4f",
799
+ darkturquoise: "#00ced1",
800
+ darkviolet: "#9400d3",
801
+ deeppink: "#ff1493",
802
+ deepskyblue: "#00bfff",
803
+ dimgray: "#696969",
804
+ dimgrey: "#696969",
805
+ dodgerblue: "#1e90ff",
806
+ firebrick: "#b22222",
807
+ floralwhite: "#fffaf0",
808
+ forestgreen: "#228b22",
809
+ fuchsia: "#ff00ff",
810
+ gainsboro: "#dcdcdc",
811
+ ghostwhite: "#f8f8ff",
812
+ gold: "#ffd700",
813
+ goldenrod: "#daa520",
814
+ gray: "#808080",
815
+ green: "#008000",
816
+ greenyellow: "#adff2f",
817
+ grey: "#808080",
818
+ honeydew: "#f0fff0",
819
+ hotpink: "#ff69b4",
820
+ indianred: "#cd5c5c",
821
+ indigo: "#4b0082",
822
+ ivory: "#fffff0",
823
+ khaki: "#f0e68c",
824
+ lavender: "#e6e6fa",
825
+ lavenderblush: "#fff0f5",
826
+ lawngreen: "#7cfc00",
827
+ lemonchiffon: "#fffacd",
828
+ lightblue: "#add8e6",
829
+ lightcoral: "#f08080",
830
+ lightcyan: "#e0ffff",
831
+ lightgoldenrodyellow: "#fafad2",
832
+ lightgray: "#d3d3d3",
833
+ lightgreen: "#90ee90",
834
+ lightgrey: "#d3d3d3",
835
+ lightpink: "#ffb6c1",
836
+ lightsalmon: "#ffa07a",
837
+ lightseagreen: "#20b2aa",
838
+ lightskyblue: "#87cefa",
839
+ lightslategray: "#778899",
840
+ lightslategrey: "#778899",
841
+ lightsteelblue: "#b0c4de",
842
+ lightyellow: "#ffffe0",
843
+ lime: "#00ff00",
844
+ limegreen: "#32cd32",
845
+ linen: "#faf0e6",
846
+ magenta: "#ff00ff",
847
+ maroon: "#800000",
848
+ mediumaquamarine: "#66cdaa",
849
+ mediumblue: "#0000cd",
850
+ mediumorchid: "#ba55d3",
851
+ mediumpurple: "#9370db",
852
+ mediumseagreen: "#3cb371",
853
+ mediumslateblue: "#7b68ee",
854
+ mediumspringgreen: "#00fa9a",
855
+ mediumturquoise: "#48d1cc",
856
+ mediumvioletred: "#c71585",
857
+ midnightblue: "#191970",
858
+ mintcream: "#f5fffa",
859
+ mistyrose: "#ffe4e1",
860
+ moccasin: "#ffe4b5",
861
+ navajowhite: "#ffdead",
862
+ navy: "#000080",
863
+ oldlace: "#fdf5e6",
864
+ olive: "#808000",
865
+ olivedrab: "#6b8e23",
866
+ orange: "#ffa500",
867
+ orangered: "#ff4500",
868
+ orchid: "#da70d6",
869
+ palegoldenrod: "#eee8aa",
870
+ palegreen: "#98fb98",
871
+ paleturquoise: "#afeeee",
872
+ palevioletred: "#db7093",
873
+ papayawhip: "#ffefd5",
874
+ peachpuff: "#ffdab9",
875
+ peru: "#cd853f",
876
+ pink: "#ffc0cb",
877
+ plum: "#dda0dd",
878
+ powderblue: "#b0e0e6",
879
+ purple: "#800080",
880
+ rebeccapurple: "#663399",
881
+ red: "#ff0000",
882
+ rosybrown: "#bc8f8f",
883
+ royalblue: "#4169e1",
884
+ saddlebrown: "#8b4513",
885
+ salmon: "#fa8072",
886
+ sandybrown: "#f4a460",
887
+ seagreen: "#2e8b57",
888
+ seashell: "#fff5ee",
889
+ sienna: "#a0522d",
890
+ silver: "#c0c0c0",
891
+ skyblue: "#87ceeb",
892
+ slateblue: "#6a5acd",
893
+ slategray: "#708090",
894
+ slategrey: "#708090",
895
+ snow: "#fffafa",
896
+ springgreen: "#00ff7f",
897
+ tan: "#d2b48c",
898
+ teal: "#008080",
899
+ thistle: "#d8bfd8",
900
+ transparent: "#00000000",
901
+ turquoise: "#40e0d0",
902
+ violet: "#ee82ee",
903
+ wheat: "#f5deb3",
904
+ white: "#ffffff",
905
+ whitesmoke: "#f5f5f5",
906
+ yellow: "#ffff00",
907
+ yellowgreen: "#9acd32"
908
+ },
909
+ parse: (e) => {
910
+ e = e.toLowerCase();
911
+ let t = He.colors[e];
912
+ if (t) return E.parse(t);
913
+ },
914
+ stringify: (e) => {
915
+ let t = E.stringify(e);
916
+ for (let e in He.colors) if (He.colors[e] === t) return e;
917
+ }
918
+ }, Ue = {
919
+ 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,
920
+ parse: (e) => {
921
+ let t = e.charCodeAt(0);
922
+ if (t !== 114 && t !== 82) return;
923
+ let n = e.match(Ue.re);
924
+ if (!n) return;
925
+ let [, r, i, a, o, s, c, l, u] = n;
926
+ return T.set({
927
+ r: x.channel.clamp.r(i ? parseFloat(r) * 2.55 : parseFloat(r)),
928
+ g: x.channel.clamp.g(o ? parseFloat(a) * 2.55 : parseFloat(a)),
929
+ b: x.channel.clamp.b(c ? parseFloat(s) * 2.55 : parseFloat(s)),
930
+ a: l ? x.channel.clamp.a(u ? parseFloat(l) / 100 : parseFloat(l)) : 1
931
+ }, e);
932
+ },
933
+ stringify: (e) => {
934
+ let { r: t, g: n, b: r, a: i } = e;
935
+ return i < 1 ? `rgba(${x.lang.round(t)}, ${x.lang.round(n)}, ${x.lang.round(r)}, ${x.lang.round(i)})` : `rgb(${x.lang.round(t)}, ${x.lang.round(n)}, ${x.lang.round(r)})`;
936
+ }
937
+ }, O = {
938
+ format: {
939
+ keyword: He,
940
+ hex: E,
941
+ rgb: Ue,
942
+ rgba: Ue,
943
+ hsl: D,
944
+ hsla: D
945
+ },
946
+ parse: (e) => {
947
+ if (typeof e != "string") return e;
948
+ let t = E.parse(e) || Ue.parse(e) || D.parse(e) || He.parse(e);
949
+ if (t) return t;
950
+ throw Error(`Unsupported color format: "${e}"`);
951
+ },
952
+ stringify: (e) => !e.changed && e.color ? e.color : e.type.is(C.HSL) || e.data.r === void 0 ? D.stringify(e) : e.a < 1 || !Number.isInteger(e.r) || !Number.isInteger(e.g) || !Number.isInteger(e.b) ? Ue.stringify(e) : E.stringify(e)
953
+ }, We = (e, t) => {
954
+ let n = O.parse(e);
955
+ for (let e in t) n[e] = x.channel.clamp[e](t[e]);
956
+ return O.stringify(n);
957
+ }, k = (e, t, n = 0, r = 1) => {
958
+ if (typeof e != "number") return We(e, { a: t });
959
+ let i = T.set({
960
+ r: x.channel.clamp.r(e),
961
+ g: x.channel.clamp.g(t),
962
+ b: x.channel.clamp.b(n),
963
+ a: x.channel.clamp.a(r)
964
+ });
965
+ return O.stringify(i);
966
+ }, Ge = (e) => {
967
+ let { r: t, g: n, b: r } = O.parse(e), i = .2126 * x.channel.toLinear(t) + .7152 * x.channel.toLinear(n) + .0722 * x.channel.toLinear(r);
968
+ return x.lang.round(i);
969
+ }, A = (e) => Ge(e) >= .5, j = (e) => !A(e), M = (e, t, n) => {
970
+ let r = O.parse(e), i = r[t], a = x.channel.clamp[t](i + n);
971
+ return i !== a && (r[t] = a), O.stringify(r);
972
+ }, N = (e, t) => M(e, "l", t), P = (e, t) => M(e, "l", -t), F = (e, t) => {
973
+ let n = O.parse(e), r = {};
974
+ for (let e in t) t[e] && (r[e] = n[e] + t[e]);
975
+ return We(e, r);
976
+ }, Ke = (e, t, n = 50) => {
977
+ let { r, g: i, b: a, a: o } = O.parse(e), { r: s, g: c, b: l, a: u } = O.parse(t), d = n / 100, f = d * 2 - 1, ee = o - u, p = ((f * ee === -1 ? f : (f + ee) / (1 + f * ee)) + 1) / 2, te = 1 - p;
978
+ return k(r * p + s * te, i * p + c * te, a * p + l * te, o * d + u * (1 - d));
979
+ }, I = (e, t = 100) => {
980
+ let n = O.parse(e);
981
+ return n.r = 255 - n.r, n.g = 255 - n.g, n.b = 255 - n.b, Ke(n, e, t);
982
+ }, qe = /^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s, Je = /%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi, Ye = /\s*%%.*\n/gm, Xe = class extends Error {
983
+ static {
984
+ n(this, "UnknownDiagramError");
985
+ }
986
+ constructor(e) {
987
+ super(e), this.name = "UnknownDiagramError";
988
+ }
989
+ }, L = {}, Ze = /* @__PURE__ */ n(function(e, t) {
990
+ e = e.replace(qe, "").replace(Je, "").replace(Ye, "\n");
991
+ for (let [n, { detector: r }] of Object.entries(L)) if (r(e, t)) return n;
992
+ throw new Xe(`No diagram type detected matching given configuration for text: ${e}`);
993
+ }, "detectType"), R = /* @__PURE__ */ n((...e) => {
994
+ for (let { id: t, detector: n, loader: r } of e) Qe(t, n, r);
995
+ }, "registerLazyLoadedDiagrams"), Qe = /* @__PURE__ */ n((e, n, r) => {
996
+ L[e] && t.warn(`Detector with key ${e} already exists. Overwriting.`), L[e] = {
997
+ detector: n,
998
+ loader: r
999
+ }, t.debug(`Detector with key ${e} added${r ? " with loader" : ""}`);
1000
+ }, "addDetector"), $e = /* @__PURE__ */ n((e) => L[e].loader, "getDiagramLoader"), z = /* @__PURE__ */ n((e, t, { depth: n = 2, clobber: r = !1 } = {}) => {
1001
+ let i = {
1002
+ depth: n,
1003
+ clobber: r
1004
+ };
1005
+ return Array.isArray(t) && !Array.isArray(e) ? (t.forEach((t) => z(e, t, i)), e) : Array.isArray(t) && Array.isArray(e) ? (t.forEach((t) => {
1006
+ e.includes(t) || e.push(t);
1007
+ }), e) : e === void 0 || n <= 0 ? typeof e == "object" && e && typeof t == "object" ? Object.assign(e, t) : t : (t !== void 0 && typeof e == "object" && typeof t == "object" && Object.keys(t).forEach((i) => {
1008
+ typeof t[i] == "object" && t[i] !== null && (e[i] === void 0 || typeof e[i] == "object") ? (e[i] === void 0 && (e[i] = Array.isArray(t[i]) ? [] : {}), e[i] = z(e[i], t[i], {
1009
+ depth: n - 1,
1010
+ clobber: r
1011
+ })) : (r || typeof e[i] != "object" && typeof t[i] != "object") && (e[i] = t[i]);
1012
+ }), e);
1013
+ }, "assignWithDepth"), B = z, V = "#ffffff", H = "#f2f2f2", U = /* @__PURE__ */ n((e, t) => t ? F(e, {
1014
+ s: -40,
1015
+ l: 10
1016
+ }) : F(e, {
1017
+ s: -40,
1018
+ l: -10
1019
+ }), "mkBorder"), et = class {
1020
+ static {
1021
+ n(this, "Theme");
1022
+ }
1023
+ constructor() {
1024
+ this.background = "#f4f4f4", this.primaryColor = "#fff4dd", this.noteBkgColor = "#fff5ad", this.noteTextColor = "#333", this.THEME_COLOR_LIMIT = 12, this.radius = 5, this.strokeWidth = 1, this.fontFamily = "\"trebuchet ms\", verdana, arial, sans-serif", this.fontSize = "16px", this.useGradient = !0, this.dropShadow = "drop-shadow( 1px 2px 2px rgba(185,185,185,1))";
1025
+ }
1026
+ updateColors() {
1027
+ if (this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#333"), this.secondaryColor = this.secondaryColor || F(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || F(this.primaryColor, {
1028
+ h: 180,
1029
+ l: 5
1030
+ }), this.primaryBorderColor = this.primaryBorderColor || U(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || U(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || U(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || U(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#333", this.secondaryTextColor = this.secondaryTextColor || I(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || I(this.tertiaryColor), this.lineColor = this.lineColor || I(this.background), this.arrowheadColor = this.arrowheadColor || I(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 ? P(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 || P(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || I(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 || N(this.primaryColor, 23), this.gridColor = this.gridColor || "lightgrey", this.doneTaskBkgColor = this.doneTaskBkgColor || "lightgrey", this.doneTaskBorderColor = this.doneTaskBorderColor || "grey", this.critBorderColor = this.critBorderColor || "#ff8888", this.critBkgColor = this.critBkgColor || "red", this.todayLineColor = this.todayLineColor || "red", this.vertLineColor = this.vertLineColor || "navy", this.taskTextColor = this.taskTextColor || this.textColor, this.taskTextOutsideColor = this.taskTextOutsideColor || this.textColor, this.taskTextLightColor = this.taskTextLightColor || this.textColor, this.taskTextColor = this.taskTextColor || this.primaryTextColor, this.taskTextDarkColor = this.taskTextDarkColor || this.textColor, this.taskTextClickableColor = this.taskTextClickableColor || "#003163", this.noteFontWeight = this.noteFontWeight || "normal", this.fontWeight = this.fontWeight || "normal", this.personBorder = this.personBorder || this.primaryBorderColor, this.personBkg = this.personBkg || this.mainBkg, this.darkMode ? (this.rowOdd = this.rowOdd || P(this.mainBkg, 5) || "#ffffff", this.rowEven = this.rowEven || P(this.mainBkg, 10)) : (this.rowOdd = this.rowOdd || N(this.mainBkg, 75) || "#ffffff", this.rowEven = this.rowEven || N(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 || F(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || F(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || F(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || F(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || F(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || F(this.primaryColor, {
1031
+ h: 210,
1032
+ l: 150
1033
+ }), this.cScale9 = this.cScale9 || F(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || F(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || F(this.primaryColor, { h: 330 }), this.darkMode) for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = P(this["cScale" + e], 75);
1034
+ else for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = P(this["cScale" + e], 25);
1035
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || I(this["cScale" + e]);
1036
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] || N(this["cScale" + e], 10) : this["cScalePeer" + e] = this["cScalePeer" + e] || P(this["cScale" + e], 10);
1037
+ this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
1038
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
1039
+ let e = this.darkMode ? -4 : -1;
1040
+ for (let t = 0; t < 5; t++) this["surface" + t] = this["surface" + t] || F(this.mainBkg, {
1041
+ h: 180,
1042
+ s: -15,
1043
+ l: e * (5 + t * 3)
1044
+ }), this["surfacePeer" + t] = this["surfacePeer" + t] || F(this.mainBkg, {
1045
+ h: 180,
1046
+ s: -15,
1047
+ l: e * (8 + t * 3)
1048
+ });
1049
+ this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || this.primaryColor, this.fillType1 = this.fillType1 || this.secondaryColor, this.fillType2 = this.fillType2 || F(this.primaryColor, { h: 64 }), this.fillType3 = this.fillType3 || F(this.secondaryColor, { h: 64 }), this.fillType4 = this.fillType4 || F(this.primaryColor, { h: -64 }), this.fillType5 = this.fillType5 || F(this.secondaryColor, { h: -64 }), this.fillType6 = this.fillType6 || F(this.primaryColor, { h: 128 }), this.fillType7 = this.fillType7 || F(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 || F(this.primaryColor, { l: -10 }), this.pie5 = this.pie5 || F(this.secondaryColor, { l: -10 }), this.pie6 = this.pie6 || F(this.tertiaryColor, { l: -10 }), this.pie7 = this.pie7 || F(this.primaryColor, {
1050
+ h: 60,
1051
+ l: -10
1052
+ }), this.pie8 = this.pie8 || F(this.primaryColor, {
1053
+ h: -60,
1054
+ l: -10
1055
+ }), this.pie9 = this.pie9 || F(this.primaryColor, {
1056
+ h: 120,
1057
+ l: 0
1058
+ }), this.pie10 = this.pie10 || F(this.primaryColor, {
1059
+ h: 60,
1060
+ l: -20
1061
+ }), this.pie11 = this.pie11 || F(this.primaryColor, {
1062
+ h: -60,
1063
+ l: -20
1064
+ }), this.pie12 = this.pie12 || F(this.primaryColor, {
1065
+ h: 120,
1066
+ l: -10
1067
+ }), this.pieTitleTextSize = this.pieTitleTextSize || "25px", this.pieTitleTextColor = this.pieTitleTextColor || this.taskTextDarkColor, this.pieSectionTextSize = this.pieSectionTextSize || "17px", this.pieSectionTextColor = this.pieSectionTextColor || this.textColor, this.pieLegendTextSize = this.pieLegendTextSize || "17px", this.pieLegendTextColor = this.pieLegendTextColor || this.taskTextDarkColor, this.pieStrokeColor = this.pieStrokeColor || "black", this.pieStrokeWidth = this.pieStrokeWidth || "2px", this.pieOuterStrokeWidth = this.pieOuterStrokeWidth || "2px", this.pieOuterStrokeColor = this.pieOuterStrokeColor || "black", this.pieOpacity = this.pieOpacity || "0.7", this.venn1 = this.venn1 ?? F(this.primaryColor, { l: -30 }), this.venn2 = this.venn2 ?? F(this.secondaryColor, { l: -30 }), this.venn3 = this.venn3 ?? F(this.tertiaryColor, { l: -30 }), this.venn4 = this.venn4 ?? F(this.primaryColor, {
1068
+ h: 60,
1069
+ l: -30
1070
+ }), this.venn5 = this.venn5 ?? F(this.primaryColor, {
1071
+ h: -60,
1072
+ l: -30
1073
+ }), this.venn6 = this.venn6 ?? F(this.secondaryColor, {
1074
+ h: 60,
1075
+ l: -30
1076
+ }), this.venn7 = this.venn7 ?? F(this.primaryColor, {
1077
+ h: 120,
1078
+ l: -30
1079
+ }), this.venn8 = this.venn8 ?? F(this.secondaryColor, {
1080
+ h: 120,
1081
+ l: -30
1082
+ }), this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.radar = {
1083
+ axisColor: this.radar?.axisColor || this.lineColor,
1084
+ axisStrokeWidth: this.radar?.axisStrokeWidth || 2,
1085
+ axisLabelFontSize: this.radar?.axisLabelFontSize || 12,
1086
+ curveOpacity: this.radar?.curveOpacity || .5,
1087
+ curveStrokeWidth: this.radar?.curveStrokeWidth || 2,
1088
+ graticuleColor: this.radar?.graticuleColor || "#DEDEDE",
1089
+ graticuleStrokeWidth: this.radar?.graticuleStrokeWidth || 1,
1090
+ graticuleOpacity: this.radar?.graticuleOpacity || .3,
1091
+ legendBoxSize: this.radar?.legendBoxSize || 12,
1092
+ legendFontSize: this.radar?.legendFontSize || 12
1093
+ }, 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 || F(this.primaryColor, {
1094
+ r: 5,
1095
+ g: 5,
1096
+ b: 5
1097
+ }), this.quadrant3Fill = this.quadrant3Fill || F(this.primaryColor, {
1098
+ r: 10,
1099
+ g: 10,
1100
+ b: 10
1101
+ }), this.quadrant4Fill = this.quadrant4Fill || F(this.primaryColor, {
1102
+ r: 15,
1103
+ g: 15,
1104
+ b: 15
1105
+ }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || F(this.primaryTextColor, {
1106
+ r: -5,
1107
+ g: -5,
1108
+ b: -5
1109
+ }), this.quadrant3TextFill = this.quadrant3TextFill || F(this.primaryTextColor, {
1110
+ r: -10,
1111
+ g: -10,
1112
+ b: -10
1113
+ }), this.quadrant4TextFill = this.quadrant4TextFill || F(this.primaryTextColor, {
1114
+ r: -15,
1115
+ g: -15,
1116
+ b: -15
1117
+ }), this.quadrantPointFill = this.quadrantPointFill || j(this.quadrant1Fill) ? N(this.quadrant1Fill) : P(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 = {
1118
+ backgroundColor: this.xyChart?.backgroundColor || this.background,
1119
+ titleColor: this.xyChart?.titleColor || this.primaryTextColor,
1120
+ dataLabelColor: this.xyChart?.dataLabelColor || this.primaryTextColor,
1121
+ xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
1122
+ xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
1123
+ xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
1124
+ xAxisLineColor: this.xyChart?.xAxisLineColor || this.primaryTextColor,
1125
+ yAxisTitleColor: this.xyChart?.yAxisTitleColor || this.primaryTextColor,
1126
+ yAxisLabelColor: this.xyChart?.yAxisLabelColor || this.primaryTextColor,
1127
+ yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
1128
+ yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
1129
+ plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
1130
+ }, 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 ? P(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 || F(this.primaryColor, { h: -30 }), this.git4 = this.git4 || F(this.primaryColor, { h: -60 }), this.git5 = this.git5 || F(this.primaryColor, { h: -90 }), this.git6 = this.git6 || F(this.primaryColor, { h: 60 }), this.git7 = this.git7 || F(this.primaryColor, { h: 120 }), this.darkMode ? (this.git0 = N(this.git0, 25), this.git1 = N(this.git1, 25), this.git2 = N(this.git2, 25), this.git3 = N(this.git3, 25), this.git4 = N(this.git4, 25), this.git5 = N(this.git5, 25), this.git6 = N(this.git6, 25), this.git7 = N(this.git7, 25)) : (this.git0 = P(this.git0, 25), this.git1 = P(this.git1, 25), this.git2 = P(this.git2, 25), this.git3 = P(this.git3, 25), this.git4 = P(this.git4, 25), this.git5 = P(this.git5, 25), this.git6 = P(this.git6, 25), this.git7 = P(this.git7, 25)), this.gitInv0 = this.gitInv0 || I(this.git0), this.gitInv1 = this.gitInv1 || I(this.git1), this.gitInv2 = this.gitInv2 || I(this.git2), this.gitInv3 = this.gitInv3 || I(this.git3), this.gitInv4 = this.gitInv4 || I(this.git4), this.gitInv5 = this.gitInv5 || I(this.git5), this.gitInv6 = this.gitInv6 || I(this.git6), this.gitInv7 = this.gitInv7 || I(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 || V, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || H, this.gradientStart = this.primaryBorderColor, this.gradientStop = this.secondaryBorderColor;
1131
+ }
1132
+ calculate(e) {
1133
+ if (typeof e != "object") {
1134
+ this.updateColors();
1135
+ return;
1136
+ }
1137
+ let t = Object.keys(e);
1138
+ t.forEach((t) => {
1139
+ this[t] = e[t];
1140
+ }), this.updateColors(), t.forEach((t) => {
1141
+ this[t] = e[t];
1142
+ });
1143
+ }
1144
+ }, tt = /* @__PURE__ */ n((e) => {
1145
+ let t = new et();
1146
+ return t.calculate(e), t;
1147
+ }, "getThemeVariables"), nt = class {
1148
+ static {
1149
+ n(this, "Theme");
1150
+ }
1151
+ constructor() {
1152
+ this.background = "#333", this.primaryColor = "#1f2020", this.secondaryColor = N(this.primaryColor, 16), this.tertiaryColor = F(this.primaryColor, { h: -160 }), this.primaryBorderColor = I(this.background), this.secondaryBorderColor = U(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = U(this.tertiaryColor, this.darkMode), this.primaryTextColor = I(this.primaryColor), this.secondaryTextColor = I(this.secondaryColor), this.tertiaryTextColor = I(this.tertiaryColor), this.lineColor = I(this.background), this.textColor = I(this.background), this.mainBkg = "#1f2020", this.secondBkg = "calculated", this.mainContrastColor = "lightgrey", this.darkTextColor = N(I("#323D47"), 10), this.lineColor = "calculated", this.border1 = "#ccc", this.border2 = k(255, 255, 255, .25), this.arrowheadColor = "calculated", this.fontFamily = "\"trebuchet ms\", verdana, arial, sans-serif", this.fontSize = "16px", this.labelBackground = "#181818", this.textColor = "#ccc", this.THEME_COLOR_LIMIT = 12, this.radius = 5, this.strokeWidth = 1, this.nodeBkg = "calculated", this.nodeBorder = "calculated", this.clusterBkg = "calculated", this.clusterBorder = "calculated", this.defaultLinkColor = "calculated", this.titleColor = "#F9FFFE", this.edgeLabelBackground = "calculated", this.actorBorder = "calculated", this.actorBkg = "calculated", this.actorTextColor = "calculated", this.actorLineColor = "calculated", this.signalColor = "calculated", this.signalTextColor = "calculated", this.labelBoxBkgColor = "calculated", this.labelBoxBorderColor = "calculated", this.labelTextColor = "calculated", this.loopTextColor = "calculated", this.noteBorderColor = "calculated", this.noteBkgColor = "#fff5ad", this.noteTextColor = "calculated", this.activationBorderColor = "calculated", this.activationBkgColor = "calculated", this.sequenceNumberColor = "black", this.clusterBkg = "#302F3D", this.sectionBkgColor = P("#EAE8D9", 30), this.altSectionBkgColor = "calculated", this.sectionBkgColor2 = "#EAE8D9", this.excludeBkgColor = P(this.sectionBkgColor, 10), this.taskBorderColor = k(255, 255, 255, 70), this.taskBkgColor = "calculated", this.taskTextColor = "calculated", this.taskTextLightColor = "calculated", this.taskTextOutsideColor = "calculated", this.taskTextClickableColor = "#003163", this.activeTaskBorderColor = k(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 || N(this.mainBkg, 5) || "#ffffff", this.rowEven = this.rowEven || P(this.mainBkg, 10), this.labelColor = "calculated", this.errorBkgColor = "#a44141", this.errorTextColor = "#ddd", this.useGradient = !0, this.gradientStart = this.primaryBorderColor, this.gradientStop = this.secondaryBorderColor, this.dropShadow = "drop-shadow( 1px 2px 2px rgba(185,185,185,1))", this.noteFontWeight = this.noteFontWeight || "normal", this.fontWeight = this.fontWeight || "normal";
1153
+ }
1154
+ updateColors() {
1155
+ this.secondBkg = N(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 = N(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 = N(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 = I(this.doneTaskBkgColor), this.archEdgeColor = this.lineColor, this.archEdgeArrowColor = this.lineColor, this.transitionColor = this.transitionColor || this.lineColor, this.transitionLabelColor = this.transitionLabelColor || this.textColor, this.stateLabelColor = this.stateLabelColor || this.stateBkg || this.primaryTextColor, this.stateBkg = this.stateBkg || this.mainBkg, this.labelBackgroundColor = this.labelBackgroundColor || this.stateBkg, this.compositeBackground = this.compositeBackground || this.background || this.tertiaryColor, this.altBackground = this.altBackground || "#555", this.compositeTitleBackground = this.compositeTitleBackground || this.mainBkg, this.compositeBorder = this.compositeBorder || this.nodeBorder, this.innerEndBackground = this.primaryBorderColor, this.specialStateColor = "#f4f4f4", this.errorBkgColor = this.errorBkgColor || this.tertiaryColor, this.errorTextColor = this.errorTextColor || this.tertiaryTextColor, this.fillType0 = this.primaryColor, this.fillType1 = this.secondaryColor, this.fillType2 = F(this.primaryColor, { h: 64 }), this.fillType3 = F(this.secondaryColor, { h: 64 }), this.fillType4 = F(this.primaryColor, { h: -64 }), this.fillType5 = F(this.secondaryColor, { h: -64 }), this.fillType6 = F(this.primaryColor, { h: 128 }), this.fillType7 = F(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 || F(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || F(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || F(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || F(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || F(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || F(this.primaryColor, { h: 210 }), this.cScale9 = this.cScale9 || F(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || F(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || F(this.primaryColor, { h: 330 });
1156
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || I(this["cScale" + e]);
1157
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScalePeer" + e] = this["cScalePeer" + e] || N(this["cScale" + e], 10);
1158
+ for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || F(this.mainBkg, {
1159
+ h: 30,
1160
+ s: -30,
1161
+ l: -(-10 + e * 4)
1162
+ }), this["surfacePeer" + e] = this["surfacePeer" + e] || F(this.mainBkg, {
1163
+ h: 30,
1164
+ s: -30,
1165
+ l: -(-7 + e * 4)
1166
+ });
1167
+ this.scaleLabelColor = this.scaleLabelColor || (this.darkMode ? "black" : this.labelTextColor);
1168
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
1169
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["pie" + e] = this["cScale" + e];
1170
+ this.pieTitleTextSize = this.pieTitleTextSize || "25px", this.pieTitleTextColor = this.pieTitleTextColor || this.mainContrastColor, this.pieSectionTextSize = this.pieSectionTextSize || "17px", this.pieSectionTextColor = this.pieSectionTextColor || this.textColor, this.pieLegendTextSize = this.pieLegendTextSize || "17px", this.pieLegendTextColor = this.pieLegendTextColor || this.mainContrastColor, this.pieStrokeColor = this.pieStrokeColor || "black", this.pieStrokeWidth = this.pieStrokeWidth || "2px", this.pieOuterStrokeWidth = this.pieOuterStrokeWidth || "2px", this.pieOuterStrokeColor = this.pieOuterStrokeColor || "black", this.pieOpacity = this.pieOpacity || "0.7";
1171
+ for (let e = 0; e < 8; e++) this["venn" + (e + 1)] = this["venn" + (e + 1)] ?? N(this["cScale" + e], 30);
1172
+ this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || F(this.primaryColor, {
1173
+ r: 5,
1174
+ g: 5,
1175
+ b: 5
1176
+ }), this.quadrant3Fill = this.quadrant3Fill || F(this.primaryColor, {
1177
+ r: 10,
1178
+ g: 10,
1179
+ b: 10
1180
+ }), this.quadrant4Fill = this.quadrant4Fill || F(this.primaryColor, {
1181
+ r: 15,
1182
+ g: 15,
1183
+ b: 15
1184
+ }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || F(this.primaryTextColor, {
1185
+ r: -5,
1186
+ g: -5,
1187
+ b: -5
1188
+ }), this.quadrant3TextFill = this.quadrant3TextFill || F(this.primaryTextColor, {
1189
+ r: -10,
1190
+ g: -10,
1191
+ b: -10
1192
+ }), this.quadrant4TextFill = this.quadrant4TextFill || F(this.primaryTextColor, {
1193
+ r: -15,
1194
+ g: -15,
1195
+ b: -15
1196
+ }), this.quadrantPointFill = this.quadrantPointFill || j(this.quadrant1Fill) ? N(this.quadrant1Fill) : P(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 = {
1197
+ backgroundColor: this.xyChart?.backgroundColor || this.background,
1198
+ titleColor: this.xyChart?.titleColor || this.primaryTextColor,
1199
+ dataLabelColor: this.xyChart?.dataLabelColor || this.primaryTextColor,
1200
+ xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
1201
+ xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
1202
+ xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
1203
+ xAxisLineColor: this.xyChart?.xAxisLineColor || this.primaryTextColor,
1204
+ yAxisTitleColor: this.xyChart?.yAxisTitleColor || this.primaryTextColor,
1205
+ yAxisLabelColor: this.xyChart?.yAxisLabelColor || this.primaryTextColor,
1206
+ yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
1207
+ yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
1208
+ plotColorPalette: this.xyChart?.plotColorPalette || "#3498db,#2ecc71,#e74c3c,#f1c40f,#bdc3c7,#ffffff,#34495e,#9b59b6,#1abc9c,#e67e22"
1209
+ }, this.packet = {
1210
+ startByteColor: this.primaryTextColor,
1211
+ endByteColor: this.primaryTextColor,
1212
+ labelColor: this.primaryTextColor,
1213
+ titleColor: this.primaryTextColor,
1214
+ blockStrokeColor: this.primaryTextColor,
1215
+ blockFillColor: this.background
1216
+ }, this.radar = {
1217
+ axisColor: this.radar?.axisColor || this.lineColor,
1218
+ axisStrokeWidth: this.radar?.axisStrokeWidth || 2,
1219
+ axisLabelFontSize: this.radar?.axisLabelFontSize || 12,
1220
+ curveOpacity: this.radar?.curveOpacity || .5,
1221
+ curveStrokeWidth: this.radar?.curveStrokeWidth || 2,
1222
+ graticuleColor: this.radar?.graticuleColor || "#DEDEDE",
1223
+ graticuleStrokeWidth: this.radar?.graticuleStrokeWidth || 1,
1224
+ graticuleOpacity: this.radar?.graticuleOpacity || .3,
1225
+ legendBoxSize: this.radar?.legendBoxSize || 12,
1226
+ legendFontSize: this.radar?.legendFontSize || 12
1227
+ }, 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 ? P(this.secondaryColor, 30) : this.secondaryColor), this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.git0 = N(this.secondaryColor, 20), this.git1 = N(this.pie2 || this.secondaryColor, 20), this.git2 = N(this.pie3 || this.tertiaryColor, 20), this.git3 = N(this.pie4 || F(this.primaryColor, { h: -30 }), 20), this.git4 = N(this.pie5 || F(this.primaryColor, { h: -60 }), 20), this.git5 = N(this.pie6 || F(this.primaryColor, { h: -90 }), 10), this.git6 = N(this.pie7 || F(this.primaryColor, { h: 60 }), 10), this.git7 = N(this.pie8 || F(this.primaryColor, { h: 120 }), 20), this.gitInv0 = this.gitInv0 || I(this.git0), this.gitInv1 = this.gitInv1 || I(this.git1), this.gitInv2 = this.gitInv2 || I(this.git2), this.gitInv3 = this.gitInv3 || I(this.git3), this.gitInv4 = this.gitInv4 || I(this.git4), this.gitInv5 = this.gitInv5 || I(this.git5), this.gitInv6 = this.gitInv6 || I(this.git6), this.gitInv7 = this.gitInv7 || I(this.git7), this.gitBranchLabel0 = this.gitBranchLabel0 || I(this.labelTextColor), this.gitBranchLabel1 = this.gitBranchLabel1 || this.labelTextColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.labelTextColor, this.gitBranchLabel3 = this.gitBranchLabel3 || I(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 || N(this.background, 12), this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || N(this.background, 2), this.nodeBorder = this.nodeBorder || "#999";
1228
+ }
1229
+ calculate(e) {
1230
+ if (typeof e != "object") {
1231
+ this.updateColors();
1232
+ return;
1233
+ }
1234
+ let t = Object.keys(e);
1235
+ t.forEach((t) => {
1236
+ this[t] = e[t];
1237
+ }), this.updateColors(), t.forEach((t) => {
1238
+ this[t] = e[t];
1239
+ });
1240
+ }
1241
+ }, W = /* @__PURE__ */ n((e) => {
1242
+ let t = new nt();
1243
+ return t.calculate(e), t;
1244
+ }, "getThemeVariables"), rt = class {
1245
+ static {
1246
+ n(this, "Theme");
1247
+ }
1248
+ constructor() {
1249
+ this.background = "#f4f4f4", this.primaryColor = "#ECECFF", this.secondaryColor = F(this.primaryColor, { h: 120 }), this.secondaryColor = "#ffffde", this.tertiaryColor = F(this.primaryColor, { h: -160 }), this.primaryBorderColor = U(this.primaryColor, this.darkMode), this.secondaryBorderColor = U(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = U(this.tertiaryColor, this.darkMode), this.primaryTextColor = I(this.primaryColor), this.secondaryTextColor = I(this.secondaryColor), this.tertiaryTextColor = I(this.tertiaryColor), this.lineColor = I(this.background), this.textColor = I(this.background), this.background = "white", this.mainBkg = "#ECECFF", this.secondBkg = "#ffffde", this.lineColor = "#333333", this.border1 = "#9370DB", this.primaryBorderColor = U(this.primaryColor, this.darkMode), this.border2 = "#aaaa33", this.arrowheadColor = "#333333", this.fontFamily = "\"trebuchet ms\", verdana, arial, sans-serif", this.fontSize = "16px", this.labelBackground = "rgba(232,232,232, 0.8)", this.textColor = "#333", this.THEME_COLOR_LIMIT = 12, this.radius = 5, this.strokeWidth = 1, this.nodeBkg = "calculated", this.nodeBorder = "calculated", this.clusterBkg = "calculated", this.clusterBorder = "calculated", this.defaultLinkColor = "calculated", this.titleColor = "calculated", this.edgeLabelBackground = "calculated", this.actorBorder = "calculated", this.actorBkg = "calculated", this.actorTextColor = "black", this.actorLineColor = "calculated", this.signalColor = "calculated", this.signalTextColor = "calculated", this.labelBoxBkgColor = "calculated", this.labelBoxBorderColor = "calculated", this.labelTextColor = "calculated", this.loopTextColor = "calculated", this.noteBorderColor = "calculated", this.noteBkgColor = "#fff5ad", this.noteTextColor = "calculated", this.activationBorderColor = "#666", this.activationBkgColor = "#f4f4f4", this.sequenceNumberColor = "white", this.clusterBkg = "#FBFBFF", this.sectionBkgColor = "calculated", this.altSectionBkgColor = "calculated", this.sectionBkgColor2 = "calculated", this.excludeBkgColor = "#eeeeee", this.taskBorderColor = "calculated", this.taskBkgColor = "calculated", this.taskTextLightColor = "calculated", this.taskTextColor = this.taskTextLightColor, this.taskTextDarkColor = "calculated", this.taskTextOutsideColor = this.taskTextDarkColor, this.taskTextClickableColor = "calculated", this.activeTaskBorderColor = "calculated", this.activeTaskBkgColor = "calculated", this.gridColor = "calculated", this.doneTaskBkgColor = "calculated", this.doneTaskBorderColor = "calculated", this.critBorderColor = "calculated", this.critBkgColor = "calculated", this.todayLineColor = "calculated", this.vertLineColor = "calculated", this.sectionBkgColor = k(102, 102, 255, .49), this.altSectionBkgColor = "white", this.sectionBkgColor2 = "#fff400", this.taskBorderColor = "#534fbc", this.taskBkgColor = "#8a90dd", this.taskTextLightColor = "white", this.taskTextColor = "calculated", this.taskTextDarkColor = "black", this.taskTextOutsideColor = "calculated", this.taskTextClickableColor = "#003163", this.activeTaskBorderColor = "#534fbc", this.activeTaskBkgColor = "#bfc7ff", this.gridColor = "lightgrey", this.doneTaskBkgColor = "lightgrey", this.doneTaskBorderColor = "grey", this.critBorderColor = "#ff8888", this.critBkgColor = "red", this.todayLineColor = "red", this.vertLineColor = "navy", this.noteFontWeight = this.noteFontWeight || "normal", this.fontWeight = this.fontWeight || "normal", this.personBorder = this.primaryBorderColor, this.personBkg = this.mainBkg, this.archEdgeColor = "calculated", this.archEdgeArrowColor = "calculated", this.archEdgeWidth = "3", this.archGroupBorderColor = this.primaryBorderColor, this.archGroupBorderWidth = "2px", this.rowOdd = "calculated", this.rowEven = "calculated", this.labelColor = "black", this.errorBkgColor = "#552222", this.errorTextColor = "#552222", this.useGradient = !1, this.gradientStart = this.primaryBorderColor, this.gradientStop = this.secondaryBorderColor, this.dropShadow = "drop-shadow(1px 2px 2px rgba(185, 185, 185, 1))", this.updateColors();
1250
+ }
1251
+ updateColors() {
1252
+ this.cScale0 = this.cScale0 || this.primaryColor, this.cScale1 = this.cScale1 || this.secondaryColor, this.cScale2 = this.cScale2 || this.tertiaryColor, this.cScale3 = this.cScale3 || F(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || F(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || F(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || F(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || F(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || F(this.primaryColor, { h: 210 }), this.cScale9 = this.cScale9 || F(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || F(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || F(this.primaryColor, { h: 330 }), this.cScalePeer1 = this.cScalePeer1 || P(this.secondaryColor, 45), this.cScalePeer2 = this.cScalePeer2 || P(this.tertiaryColor, 40);
1253
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = P(this["cScale" + e], 10), this["cScalePeer" + e] = this["cScalePeer" + e] || P(this["cScale" + e], 25);
1254
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || F(this["cScale" + e], { h: 180 });
1255
+ for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || F(this.mainBkg, {
1256
+ h: 30,
1257
+ l: -(5 + e * 5)
1258
+ }), this["surfacePeer" + e] = this["surfacePeer" + e] || F(this.mainBkg, {
1259
+ h: 30,
1260
+ l: -(7 + e * 5)
1261
+ });
1262
+ if (this.scaleLabelColor = this.scaleLabelColor !== "calculated" && this.scaleLabelColor ? this.scaleLabelColor : this.labelTextColor, this.labelTextColor !== "calculated") {
1263
+ this.cScaleLabel0 = this.cScaleLabel0 || I(this.labelTextColor), this.cScaleLabel3 = this.cScaleLabel3 || I(this.labelTextColor);
1264
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.labelTextColor;
1265
+ }
1266
+ this.nodeBkg = this.mainBkg, this.nodeBorder = this.border1, this.clusterBkg = this.secondBkg, this.clusterBorder = this.border2, this.defaultLinkColor = this.lineColor, this.titleColor = this.textColor, this.edgeLabelBackground = this.labelBackground, this.actorBorder = this.border1, this.actorBkg = this.mainBkg, this.labelBoxBkgColor = this.actorBkg, this.signalColor = this.textColor, this.signalTextColor = this.textColor, this.labelBoxBorderColor = this.actorBorder, this.labelTextColor = this.actorTextColor, this.loopTextColor = this.actorTextColor, this.noteBorderColor = this.border2, this.noteTextColor = this.actorTextColor, this.actorLineColor = this.actorBorder, this.taskTextColor = this.taskTextLightColor, this.taskTextOutsideColor = this.taskTextDarkColor, this.archEdgeColor = this.lineColor, this.archEdgeArrowColor = this.lineColor, this.rowOdd = this.rowOdd || N(this.primaryColor, 75) || "#ffffff", this.rowEven = this.rowEven || N(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 = F(this.primaryColor, { h: 64 }), this.fillType3 = F(this.secondaryColor, { h: 64 }), this.fillType4 = F(this.primaryColor, { h: -64 }), this.fillType5 = F(this.secondaryColor, { h: -64 }), this.fillType6 = F(this.primaryColor, { h: 128 }), this.fillType7 = F(this.secondaryColor, { h: 128 }), this.pie1 = this.pie1 || this.primaryColor, this.pie2 = this.pie2 || this.secondaryColor, this.pie3 = this.pie3 || F(this.tertiaryColor, { l: -40 }), this.pie4 = this.pie4 || F(this.primaryColor, { l: -10 }), this.pie5 = this.pie5 || F(this.secondaryColor, { l: -30 }), this.pie6 = this.pie6 || F(this.tertiaryColor, { l: -20 }), this.pie7 = this.pie7 || F(this.primaryColor, {
1267
+ h: 60,
1268
+ l: -20
1269
+ }), this.pie8 = this.pie8 || F(this.primaryColor, {
1270
+ h: -60,
1271
+ l: -40
1272
+ }), this.pie9 = this.pie9 || F(this.primaryColor, {
1273
+ h: 120,
1274
+ l: -40
1275
+ }), this.pie10 = this.pie10 || F(this.primaryColor, {
1276
+ h: 60,
1277
+ l: -40
1278
+ }), this.pie11 = this.pie11 || F(this.primaryColor, {
1279
+ h: -90,
1280
+ l: -40
1281
+ }), this.pie12 = this.pie12 || F(this.primaryColor, {
1282
+ h: 120,
1283
+ l: -30
1284
+ }), this.pieTitleTextSize = this.pieTitleTextSize || "25px", this.pieTitleTextColor = this.pieTitleTextColor || this.taskTextDarkColor, this.pieSectionTextSize = this.pieSectionTextSize || "17px", this.pieSectionTextColor = this.pieSectionTextColor || this.textColor, this.pieLegendTextSize = this.pieLegendTextSize || "17px", this.pieLegendTextColor = this.pieLegendTextColor || this.taskTextDarkColor, this.pieStrokeColor = this.pieStrokeColor || "black", this.pieStrokeWidth = this.pieStrokeWidth || "2px", this.pieOuterStrokeWidth = this.pieOuterStrokeWidth || "2px", this.pieOuterStrokeColor = this.pieOuterStrokeColor || "black", this.pieOpacity = this.pieOpacity || "0.7", this.venn1 = this.venn1 ?? F(this.primaryColor, { l: -30 }), this.venn2 = this.venn2 ?? F(this.secondaryColor, { l: -30 }), this.venn3 = this.venn3 ?? F(this.tertiaryColor, { l: -40 }), this.venn4 = this.venn4 ?? F(this.primaryColor, {
1285
+ h: 60,
1286
+ l: -30
1287
+ }), this.venn5 = this.venn5 ?? F(this.primaryColor, {
1288
+ h: -60,
1289
+ l: -30
1290
+ }), this.venn6 = this.venn6 ?? F(this.secondaryColor, {
1291
+ h: 60,
1292
+ l: -30
1293
+ }), this.venn7 = this.venn7 ?? F(this.primaryColor, {
1294
+ h: 120,
1295
+ l: -30
1296
+ }), this.venn8 = this.venn8 ?? F(this.secondaryColor, {
1297
+ h: 120,
1298
+ l: -30
1299
+ }), this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || F(this.primaryColor, {
1300
+ r: 5,
1301
+ g: 5,
1302
+ b: 5
1303
+ }), this.quadrant3Fill = this.quadrant3Fill || F(this.primaryColor, {
1304
+ r: 10,
1305
+ g: 10,
1306
+ b: 10
1307
+ }), this.quadrant4Fill = this.quadrant4Fill || F(this.primaryColor, {
1308
+ r: 15,
1309
+ g: 15,
1310
+ b: 15
1311
+ }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || F(this.primaryTextColor, {
1312
+ r: -5,
1313
+ g: -5,
1314
+ b: -5
1315
+ }), this.quadrant3TextFill = this.quadrant3TextFill || F(this.primaryTextColor, {
1316
+ r: -10,
1317
+ g: -10,
1318
+ b: -10
1319
+ }), this.quadrant4TextFill = this.quadrant4TextFill || F(this.primaryTextColor, {
1320
+ r: -15,
1321
+ g: -15,
1322
+ b: -15
1323
+ }), this.quadrantPointFill = this.quadrantPointFill || j(this.quadrant1Fill) ? N(this.quadrant1Fill) : P(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 = {
1324
+ axisColor: this.radar?.axisColor || this.lineColor,
1325
+ axisStrokeWidth: this.radar?.axisStrokeWidth || 2,
1326
+ axisLabelFontSize: this.radar?.axisLabelFontSize || 12,
1327
+ curveOpacity: this.radar?.curveOpacity || .5,
1328
+ curveStrokeWidth: this.radar?.curveStrokeWidth || 2,
1329
+ graticuleColor: this.radar?.graticuleColor || "#DEDEDE",
1330
+ graticuleStrokeWidth: this.radar?.graticuleStrokeWidth || 1,
1331
+ graticuleOpacity: this.radar?.graticuleOpacity || .3,
1332
+ legendBoxSize: this.radar?.legendBoxSize || 12,
1333
+ legendFontSize: this.radar?.legendFontSize || 12
1334
+ }, this.xyChart = {
1335
+ backgroundColor: this.xyChart?.backgroundColor || this.background,
1336
+ titleColor: this.xyChart?.titleColor || this.primaryTextColor,
1337
+ dataLabelColor: this.xyChart?.dataLabelColor || this.primaryTextColor,
1338
+ xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
1339
+ xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
1340
+ xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
1341
+ xAxisLineColor: this.xyChart?.xAxisLineColor || this.primaryTextColor,
1342
+ yAxisTitleColor: this.xyChart?.yAxisTitleColor || this.primaryTextColor,
1343
+ yAxisLabelColor: this.xyChart?.yAxisLabelColor || this.primaryTextColor,
1344
+ yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
1345
+ yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
1346
+ plotColorPalette: this.xyChart?.plotColorPalette || "#ECECFF,#8493A6,#FFC3A0,#DCDDE1,#B8E994,#D1A36F,#C3CDE6,#FFB6C1,#496078,#F8F3E3"
1347
+ }, 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 || F(this.primaryColor, { h: -30 }), this.git4 = this.git4 || F(this.primaryColor, { h: -60 }), this.git5 = this.git5 || F(this.primaryColor, { h: -90 }), this.git6 = this.git6 || F(this.primaryColor, { h: 60 }), this.git7 = this.git7 || F(this.primaryColor, { h: 120 }), this.darkMode ? (this.git0 = N(this.git0, 25), this.git1 = N(this.git1, 25), this.git2 = N(this.git2, 25), this.git3 = N(this.git3, 25), this.git4 = N(this.git4, 25), this.git5 = N(this.git5, 25), this.git6 = N(this.git6, 25), this.git7 = N(this.git7, 25)) : (this.git0 = P(this.git0, 25), this.git1 = P(this.git1, 25), this.git2 = P(this.git2, 25), this.git3 = P(this.git3, 25), this.git4 = P(this.git4, 25), this.git5 = P(this.git5, 25), this.git6 = P(this.git6, 25), this.git7 = P(this.git7, 25)), this.gitInv0 = this.gitInv0 || P(I(this.git0), 25), this.gitInv1 = this.gitInv1 || I(this.git1), this.gitInv2 = this.gitInv2 || I(this.git2), this.gitInv3 = this.gitInv3 || I(this.git3), this.gitInv4 = this.gitInv4 || I(this.git4), this.gitInv5 = this.gitInv5 || I(this.git5), this.gitInv6 = this.gitInv6 || I(this.git6), this.gitInv7 = this.gitInv7 || I(this.git7), this.gitBranchLabel0 = this.gitBranchLabel0 || I(this.labelTextColor), this.gitBranchLabel1 = this.gitBranchLabel1 || this.labelTextColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.labelTextColor, this.gitBranchLabel3 = this.gitBranchLabel3 || I(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 || V, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || H;
1348
+ }
1349
+ calculate(e) {
1350
+ if (Object.keys(this).forEach((e) => {
1351
+ this[e] === "calculated" && (this[e] = void 0);
1352
+ }), typeof e != "object") {
1353
+ this.updateColors();
1354
+ return;
1355
+ }
1356
+ let t = Object.keys(e);
1357
+ t.forEach((t) => {
1358
+ this[t] = e[t];
1359
+ }), this.updateColors(), t.forEach((t) => {
1360
+ this[t] = e[t];
1361
+ });
1362
+ }
1363
+ }, it = /* @__PURE__ */ n((e) => {
1364
+ let t = new rt();
1365
+ return t.calculate(e), t;
1366
+ }, "getThemeVariables"), at = class {
1367
+ static {
1368
+ n(this, "Theme");
1369
+ }
1370
+ constructor() {
1371
+ 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 = N("#cde498", 10), this.primaryBorderColor = U(this.primaryColor, this.darkMode), this.secondaryBorderColor = U(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = U(this.tertiaryColor, this.darkMode), this.primaryTextColor = I(this.primaryColor), this.secondaryTextColor = I(this.secondaryColor), this.tertiaryTextColor = I(this.primaryColor), this.lineColor = I(this.background), this.textColor = I(this.background), this.THEME_COLOR_LIMIT = 12, this.radius = 5, this.strokeWidth = 1, this.nodeBkg = "calculated", this.nodeBorder = "calculated", this.clusterBkg = "calculated", this.clusterBorder = "calculated", this.defaultLinkColor = "calculated", this.titleColor = "#333", this.edgeLabelBackground = "#e8e8e8", this.actorBorder = "calculated", this.actorBkg = "calculated", this.actorTextColor = "black", this.actorLineColor = "calculated", this.signalColor = "#333", this.signalTextColor = "#333", this.labelBoxBkgColor = "calculated", this.labelBoxBorderColor = "#326932", this.labelTextColor = "calculated", this.loopTextColor = "calculated", this.noteBorderColor = "calculated", this.noteBkgColor = "#fff5ad", this.noteTextColor = "calculated", this.activationBorderColor = "#666", this.activationBkgColor = "#f4f4f4", this.sequenceNumberColor = "white", this.sectionBkgColor = "#6eaa49", this.altSectionBkgColor = "white", this.sectionBkgColor2 = "#6eaa49", this.excludeBkgColor = "#eeeeee", this.taskBorderColor = "calculated", this.taskBkgColor = "#487e3a", this.taskTextLightColor = "white", this.taskTextColor = "calculated", this.taskTextDarkColor = "black", this.taskTextOutsideColor = "calculated", this.taskTextClickableColor = "#003163", this.activeTaskBorderColor = "calculated", this.activeTaskBkgColor = "calculated", this.gridColor = "lightgrey", this.doneTaskBkgColor = "lightgrey", this.doneTaskBorderColor = "grey", this.critBorderColor = "#ff8888", this.critBkgColor = "red", this.todayLineColor = "red", this.vertLineColor = "#00BFFF", this.personBorder = this.primaryBorderColor, this.personBkg = this.mainBkg, this.archEdgeColor = "calculated", this.archEdgeArrowColor = "calculated", this.archEdgeWidth = "3", this.archGroupBorderColor = this.primaryBorderColor, this.archGroupBorderWidth = "2px", this.noteFontWeight = "normal", this.fontWeight = "normal", this.labelColor = "black", this.errorBkgColor = "#552222", this.errorTextColor = "#552222", this.useGradient = !0, this.gradientStart = this.primaryBorderColor, this.gradientStop = this.secondaryBorderColor, this.dropShadow = "drop-shadow( 1px 2px 2px rgba(185,185,185,0.5))";
1372
+ }
1373
+ updateColors() {
1374
+ this.actorBorder = P(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 || F(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || F(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || F(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || F(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || F(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || F(this.primaryColor, { h: 210 }), this.cScale9 = this.cScale9 || F(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || F(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || F(this.primaryColor, { h: 330 }), this.cScalePeer1 = this.cScalePeer1 || P(this.secondaryColor, 45), this.cScalePeer2 = this.cScalePeer2 || P(this.tertiaryColor, 40);
1375
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = P(this["cScale" + e], 10), this["cScalePeer" + e] = this["cScalePeer" + e] || P(this["cScale" + e], 25);
1376
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || F(this["cScale" + e], { h: 180 });
1377
+ this.scaleLabelColor = this.scaleLabelColor !== "calculated" && this.scaleLabelColor ? this.scaleLabelColor : this.labelTextColor;
1378
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
1379
+ for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || F(this.mainBkg, {
1380
+ h: 30,
1381
+ s: -30,
1382
+ l: -(5 + e * 5)
1383
+ }), this["surfacePeer" + e] = this["surfacePeer" + e] || F(this.mainBkg, {
1384
+ h: 30,
1385
+ s: -30,
1386
+ l: -(8 + e * 5)
1387
+ });
1388
+ 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 || N(this.mainBkg, 75) || "#ffffff", this.rowEven = this.rowEven || N(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 = F(this.primaryColor, { h: 64 }), this.fillType3 = F(this.secondaryColor, { h: 64 }), this.fillType4 = F(this.primaryColor, { h: -64 }), this.fillType5 = F(this.secondaryColor, { h: -64 }), this.fillType6 = F(this.primaryColor, { h: 128 }), this.fillType7 = F(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 || F(this.primaryColor, { l: -30 }), this.pie5 = this.pie5 || F(this.secondaryColor, { l: -30 }), this.pie6 = this.pie6 || F(this.tertiaryColor, {
1389
+ h: 40,
1390
+ l: -40
1391
+ }), this.pie7 = this.pie7 || F(this.primaryColor, {
1392
+ h: 60,
1393
+ l: -10
1394
+ }), this.pie8 = this.pie8 || F(this.primaryColor, {
1395
+ h: -60,
1396
+ l: -10
1397
+ }), this.pie9 = this.pie9 || F(this.primaryColor, {
1398
+ h: 120,
1399
+ l: 0
1400
+ }), this.pie10 = this.pie10 || F(this.primaryColor, {
1401
+ h: 60,
1402
+ l: -50
1403
+ }), this.pie11 = this.pie11 || F(this.primaryColor, {
1404
+ h: -60,
1405
+ l: -50
1406
+ }), this.pie12 = this.pie12 || F(this.primaryColor, {
1407
+ h: 120,
1408
+ l: -50
1409
+ }), this.pieTitleTextSize = this.pieTitleTextSize || "25px", this.pieTitleTextColor = this.pieTitleTextColor || this.taskTextDarkColor, this.pieSectionTextSize = this.pieSectionTextSize || "17px", this.pieSectionTextColor = this.pieSectionTextColor || this.textColor, this.pieLegendTextSize = this.pieLegendTextSize || "17px", this.pieLegendTextColor = this.pieLegendTextColor || this.taskTextDarkColor, this.pieStrokeColor = this.pieStrokeColor || "black", this.pieStrokeWidth = this.pieStrokeWidth || "2px", this.pieOuterStrokeWidth = this.pieOuterStrokeWidth || "2px", this.pieOuterStrokeColor = this.pieOuterStrokeColor || "black", this.pieOpacity = this.pieOpacity || "0.7", this.venn1 = this.venn1 ?? F(this.primaryColor, { l: -30 }), this.venn2 = this.venn2 ?? F(this.secondaryColor, { l: -30 }), this.venn3 = this.venn3 ?? F(this.tertiaryColor, { l: -30 }), this.venn4 = this.venn4 ?? F(this.primaryColor, {
1410
+ h: 60,
1411
+ l: -30
1412
+ }), this.venn5 = this.venn5 ?? F(this.primaryColor, {
1413
+ h: -60,
1414
+ l: -30
1415
+ }), this.venn6 = this.venn6 ?? F(this.secondaryColor, {
1416
+ h: 60,
1417
+ l: -30
1418
+ }), this.venn7 = this.venn7 ?? F(this.primaryColor, {
1419
+ h: 120,
1420
+ l: -30
1421
+ }), this.venn8 = this.venn8 ?? F(this.secondaryColor, {
1422
+ h: 120,
1423
+ l: -30
1424
+ }), this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || F(this.primaryColor, {
1425
+ r: 5,
1426
+ g: 5,
1427
+ b: 5
1428
+ }), this.quadrant3Fill = this.quadrant3Fill || F(this.primaryColor, {
1429
+ r: 10,
1430
+ g: 10,
1431
+ b: 10
1432
+ }), this.quadrant4Fill = this.quadrant4Fill || F(this.primaryColor, {
1433
+ r: 15,
1434
+ g: 15,
1435
+ b: 15
1436
+ }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || F(this.primaryTextColor, {
1437
+ r: -5,
1438
+ g: -5,
1439
+ b: -5
1440
+ }), this.quadrant3TextFill = this.quadrant3TextFill || F(this.primaryTextColor, {
1441
+ r: -10,
1442
+ g: -10,
1443
+ b: -10
1444
+ }), this.quadrant4TextFill = this.quadrant4TextFill || F(this.primaryTextColor, {
1445
+ r: -15,
1446
+ g: -15,
1447
+ b: -15
1448
+ }), this.quadrantPointFill = this.quadrantPointFill || j(this.quadrant1Fill) ? N(this.quadrant1Fill) : P(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 = {
1449
+ startByteColor: this.primaryTextColor,
1450
+ endByteColor: this.primaryTextColor,
1451
+ labelColor: this.primaryTextColor,
1452
+ titleColor: this.primaryTextColor,
1453
+ blockStrokeColor: this.primaryTextColor,
1454
+ blockFillColor: this.mainBkg
1455
+ }, this.radar = {
1456
+ axisColor: this.radar?.axisColor || this.lineColor,
1457
+ axisStrokeWidth: this.radar?.axisStrokeWidth || 2,
1458
+ axisLabelFontSize: this.radar?.axisLabelFontSize || 12,
1459
+ curveOpacity: this.radar?.curveOpacity || .5,
1460
+ curveStrokeWidth: this.radar?.curveStrokeWidth || 2,
1461
+ graticuleColor: this.radar?.graticuleColor || "#DEDEDE",
1462
+ graticuleStrokeWidth: this.radar?.graticuleStrokeWidth || 1,
1463
+ graticuleOpacity: this.radar?.graticuleOpacity || .3,
1464
+ legendBoxSize: this.radar?.legendBoxSize || 12,
1465
+ legendFontSize: this.radar?.legendFontSize || 12
1466
+ }, this.xyChart = {
1467
+ backgroundColor: this.xyChart?.backgroundColor || this.background,
1468
+ titleColor: this.xyChart?.titleColor || this.primaryTextColor,
1469
+ dataLabelColor: this.xyChart?.dataLabelColor || this.primaryTextColor,
1470
+ xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
1471
+ xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
1472
+ xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
1473
+ xAxisLineColor: this.xyChart?.xAxisLineColor || this.primaryTextColor,
1474
+ yAxisTitleColor: this.xyChart?.yAxisTitleColor || this.primaryTextColor,
1475
+ yAxisLabelColor: this.xyChart?.yAxisLabelColor || this.primaryTextColor,
1476
+ yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
1477
+ yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
1478
+ plotColorPalette: this.xyChart?.plotColorPalette || "#CDE498,#FF6B6B,#A0D2DB,#D7BDE2,#F0F0F0,#FFC3A0,#7FD8BE,#FF9A8B,#FAF3E0,#FFF176"
1479
+ }, 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 || F(this.primaryColor, { h: -30 }), this.git4 = this.git4 || F(this.primaryColor, { h: -60 }), this.git5 = this.git5 || F(this.primaryColor, { h: -90 }), this.git6 = this.git6 || F(this.primaryColor, { h: 60 }), this.git7 = this.git7 || F(this.primaryColor, { h: 120 }), this.darkMode ? (this.git0 = N(this.git0, 25), this.git1 = N(this.git1, 25), this.git2 = N(this.git2, 25), this.git3 = N(this.git3, 25), this.git4 = N(this.git4, 25), this.git5 = N(this.git5, 25), this.git6 = N(this.git6, 25), this.git7 = N(this.git7, 25)) : (this.git0 = P(this.git0, 25), this.git1 = P(this.git1, 25), this.git2 = P(this.git2, 25), this.git3 = P(this.git3, 25), this.git4 = P(this.git4, 25), this.git5 = P(this.git5, 25), this.git6 = P(this.git6, 25), this.git7 = P(this.git7, 25)), this.gitInv0 = this.gitInv0 || I(this.git0), this.gitInv1 = this.gitInv1 || I(this.git1), this.gitInv2 = this.gitInv2 || I(this.git2), this.gitInv3 = this.gitInv3 || I(this.git3), this.gitInv4 = this.gitInv4 || I(this.git4), this.gitInv5 = this.gitInv5 || I(this.git5), this.gitInv6 = this.gitInv6 || I(this.git6), this.gitInv7 = this.gitInv7 || I(this.git7), this.gitBranchLabel0 = this.gitBranchLabel0 || I(this.labelTextColor), this.gitBranchLabel1 = this.gitBranchLabel1 || this.labelTextColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.labelTextColor, this.gitBranchLabel3 = this.gitBranchLabel3 || I(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 || V, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || H;
1480
+ }
1481
+ calculate(e) {
1482
+ if (typeof e != "object") {
1483
+ this.updateColors();
1484
+ return;
1485
+ }
1486
+ let t = Object.keys(e);
1487
+ t.forEach((t) => {
1488
+ this[t] = e[t];
1489
+ }), this.updateColors(), t.forEach((t) => {
1490
+ this[t] = e[t];
1491
+ });
1492
+ }
1493
+ }, ot = /* @__PURE__ */ n((e) => {
1494
+ let t = new at();
1495
+ return t.calculate(e), t;
1496
+ }, "getThemeVariables"), st = class {
1497
+ static {
1498
+ n(this, "Theme");
1499
+ }
1500
+ constructor() {
1501
+ this.primaryColor = "#eee", this.contrast = "#707070", this.secondaryColor = N(this.contrast, 55), this.background = "#ffffff", this.tertiaryColor = F(this.primaryColor, { h: -160 }), this.primaryBorderColor = U(this.primaryColor, this.darkMode), this.secondaryBorderColor = U(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = U(this.tertiaryColor, this.darkMode), this.primaryTextColor = I(this.primaryColor), this.secondaryTextColor = I(this.secondaryColor), this.tertiaryTextColor = I(this.tertiaryColor), this.lineColor = I(this.background), this.textColor = I(this.background), this.mainBkg = "#eee", this.secondBkg = "calculated", this.lineColor = "#666", this.border1 = "#999", this.border2 = "calculated", this.note = "#ffa", this.text = "#333", this.critical = "#d42", this.done = "#bbb", this.arrowheadColor = "#333333", this.fontFamily = "\"trebuchet ms\", verdana, arial, sans-serif", this.fontSize = "16px", this.THEME_COLOR_LIMIT = 12, this.radius = 5, this.strokeWidth = 1, this.nodeBkg = "calculated", this.nodeBorder = "calculated", this.clusterBkg = "calculated", this.clusterBorder = "calculated", this.defaultLinkColor = "calculated", this.titleColor = "calculated", this.edgeLabelBackground = "white", this.actorBorder = "calculated", this.actorBkg = "calculated", this.actorTextColor = "calculated", this.actorLineColor = this.actorBorder, this.signalColor = "calculated", this.signalTextColor = "calculated", this.labelBoxBkgColor = "calculated", this.labelBoxBorderColor = "calculated", this.labelTextColor = "calculated", this.loopTextColor = "calculated", this.noteBorderColor = "calculated", this.noteBkgColor = "calculated", this.noteTextColor = "calculated", this.activationBorderColor = "#666", this.activationBkgColor = "#f4f4f4", this.sequenceNumberColor = "white", this.sectionBkgColor = "calculated", this.altSectionBkgColor = "white", this.sectionBkgColor2 = "calculated", this.excludeBkgColor = "#eeeeee", this.taskBorderColor = "calculated", this.taskBkgColor = "calculated", this.taskTextLightColor = "white", this.taskTextColor = "calculated", this.taskTextDarkColor = "calculated", this.taskTextOutsideColor = "calculated", this.taskTextClickableColor = "#003163", this.activeTaskBorderColor = "calculated", this.activeTaskBkgColor = "calculated", this.gridColor = "calculated", this.doneTaskBkgColor = "calculated", this.doneTaskBorderColor = "calculated", this.critBkgColor = "calculated", this.critBorderColor = "calculated", this.todayLineColor = "calculated", this.vertLineColor = "calculated", this.personBorder = this.primaryBorderColor, this.personBkg = this.mainBkg, this.archEdgeColor = "calculated", this.archEdgeArrowColor = "calculated", this.archEdgeWidth = "3", this.archGroupBorderColor = this.primaryBorderColor, this.archGroupBorderWidth = "2px", this.noteFontWeight = "normal", this.fontWeight = "normal", this.rowOdd = this.rowOdd || N(this.mainBkg, 75) || "#ffffff", this.rowEven = this.rowEven || "#f4f4f4", this.labelColor = "black", this.errorBkgColor = "#552222", this.errorTextColor = "#552222", this.useGradient = !0, this.gradientStart = this.primaryBorderColor, this.gradientStop = this.secondaryBorderColor, this.dropShadow = "drop-shadow( 1px 2px 2px rgba(185,185,185,1))";
1502
+ }
1503
+ updateColors() {
1504
+ this.secondBkg = N(this.contrast, 55), this.border2 = this.contrast, this.actorBorder = N(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";
1505
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || I(this["cScale" + e]);
1506
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] || N(this["cScale" + e], 10) : this["cScalePeer" + e] = this["cScalePeer" + e] || P(this["cScale" + e], 10);
1507
+ this.scaleLabelColor = this.scaleLabelColor || (this.darkMode ? "black" : this.labelTextColor), this.cScaleLabel0 = this.cScaleLabel0 || this.cScale1, this.cScaleLabel2 = this.cScaleLabel2 || this.cScale1;
1508
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
1509
+ for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || F(this.mainBkg, { l: -(5 + e * 5) }), this["surfacePeer" + e] = this["surfacePeer" + e] || F(this.mainBkg, { l: -(8 + e * 5) });
1510
+ 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 = N(this.contrast, 30), this.sectionBkgColor2 = N(this.contrast, 30), this.taskBorderColor = P(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 = N(this.border1, 30), this.doneTaskBkgColor = this.done, this.doneTaskBorderColor = this.lineColor, this.critBkgColor = this.critical, this.critBorderColor = P(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 = F(this.primaryColor, { h: 64 }), this.fillType3 = F(this.secondaryColor, { h: 64 }), this.fillType4 = F(this.primaryColor, { h: -64 }), this.fillType5 = F(this.secondaryColor, { h: -64 }), this.fillType6 = F(this.primaryColor, { h: 128 }), this.fillType7 = F(this.secondaryColor, { h: 128 });
1511
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["pie" + e] = this["cScale" + e];
1512
+ 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";
1513
+ for (let e = 0; e < 8; e++) this["venn" + (e + 1)] = this["venn" + (e + 1)] ?? this["cScale" + e];
1514
+ this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || F(this.primaryColor, {
1515
+ r: 5,
1516
+ g: 5,
1517
+ b: 5
1518
+ }), this.quadrant3Fill = this.quadrant3Fill || F(this.primaryColor, {
1519
+ r: 10,
1520
+ g: 10,
1521
+ b: 10
1522
+ }), this.quadrant4Fill = this.quadrant4Fill || F(this.primaryColor, {
1523
+ r: 15,
1524
+ g: 15,
1525
+ b: 15
1526
+ }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || F(this.primaryTextColor, {
1527
+ r: -5,
1528
+ g: -5,
1529
+ b: -5
1530
+ }), this.quadrant3TextFill = this.quadrant3TextFill || F(this.primaryTextColor, {
1531
+ r: -10,
1532
+ g: -10,
1533
+ b: -10
1534
+ }), this.quadrant4TextFill = this.quadrant4TextFill || F(this.primaryTextColor, {
1535
+ r: -15,
1536
+ g: -15,
1537
+ b: -15
1538
+ }), this.quadrantPointFill = this.quadrantPointFill || j(this.quadrant1Fill) ? N(this.quadrant1Fill) : P(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 = {
1539
+ backgroundColor: this.xyChart?.backgroundColor || this.background,
1540
+ titleColor: this.xyChart?.titleColor || this.primaryTextColor,
1541
+ dataLabelColor: this.xyChart?.dataLabelColor || this.primaryTextColor,
1542
+ xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
1543
+ xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
1544
+ xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
1545
+ xAxisLineColor: this.xyChart?.xAxisLineColor || this.primaryTextColor,
1546
+ yAxisTitleColor: this.xyChart?.yAxisTitleColor || this.primaryTextColor,
1547
+ yAxisLabelColor: this.xyChart?.yAxisLabelColor || this.primaryTextColor,
1548
+ yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
1549
+ yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
1550
+ plotColorPalette: this.xyChart?.plotColorPalette || "#EEE,#6BB8E4,#8ACB88,#C7ACD6,#E8DCC2,#FFB2A8,#FFF380,#7E8D91,#FFD8B1,#FAF3E0"
1551
+ }, this.radar = {
1552
+ axisColor: this.radar?.axisColor || this.lineColor,
1553
+ axisStrokeWidth: this.radar?.axisStrokeWidth || 2,
1554
+ axisLabelFontSize: this.radar?.axisLabelFontSize || 12,
1555
+ curveOpacity: this.radar?.curveOpacity || .5,
1556
+ curveStrokeWidth: this.radar?.curveStrokeWidth || 2,
1557
+ graticuleColor: this.radar?.graticuleColor || "#DEDEDE",
1558
+ graticuleStrokeWidth: this.radar?.graticuleStrokeWidth || 1,
1559
+ graticuleOpacity: this.radar?.graticuleOpacity || .3,
1560
+ legendBoxSize: this.radar?.legendBoxSize || 12,
1561
+ legendFontSize: this.radar?.legendFontSize || 12
1562
+ }, 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 = P(this.pie1, 25) || this.primaryColor, this.git1 = this.pie2 || this.secondaryColor, this.git2 = this.pie3 || this.tertiaryColor, this.git3 = this.pie4 || F(this.primaryColor, { h: -30 }), this.git4 = this.pie5 || F(this.primaryColor, { h: -60 }), this.git5 = this.pie6 || F(this.primaryColor, { h: -90 }), this.git6 = this.pie7 || F(this.primaryColor, { h: 60 }), this.git7 = this.pie8 || F(this.primaryColor, { h: 120 }), this.gitInv0 = this.gitInv0 || I(this.git0), this.gitInv1 = this.gitInv1 || I(this.git1), this.gitInv2 = this.gitInv2 || I(this.git2), this.gitInv3 = this.gitInv3 || I(this.git3), this.gitInv4 = this.gitInv4 || I(this.git4), this.gitInv5 = this.gitInv5 || I(this.git5), this.gitInv6 = this.gitInv6 || I(this.git6), this.gitInv7 = this.gitInv7 || I(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 || V, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || H;
1563
+ }
1564
+ calculate(e) {
1565
+ if (typeof e != "object") {
1566
+ this.updateColors();
1567
+ return;
1568
+ }
1569
+ let t = Object.keys(e);
1570
+ t.forEach((t) => {
1571
+ this[t] = e[t];
1572
+ }), this.updateColors(), t.forEach((t) => {
1573
+ this[t] = e[t];
1574
+ });
1575
+ }
1576
+ }, ct = /* @__PURE__ */ n((e) => {
1577
+ let t = new st();
1578
+ return t.calculate(e), t;
1579
+ }, "getThemeVariables"), lt = class {
1580
+ static {
1581
+ n(this, "Theme");
1582
+ }
1583
+ constructor() {
1584
+ this.background = "#ffffff", this.primaryColor = "#cccccc", this.mainBkg = "#ffffff", this.noteBkgColor = "#fff5ad", this.noteTextColor = "#333", this.THEME_COLOR_LIMIT = 12, this.radius = 3, this.strokeWidth = 2, this.primaryBorderColor = U(this.primaryColor, this.darkMode), this.fontFamily = "arial, sans-serif", this.fontSize = "14px", this.nodeBorder = "#000000", this.stateBorder = "#000000", this.useGradient = !0, this.gradientStart = "#0042eb", this.gradientStop = "#eb0042", this.dropShadow = "drop-shadow( 0px 1px 2px rgba(0, 0, 0, 0.25));", this.tertiaryColor = "#ffffff", this.archEdgeColor = "calculated", this.archEdgeArrowColor = "calculated", this.archEdgeWidth = "3", this.archGroupBorderColor = this.primaryBorderColor, this.archGroupBorderWidth = "2px", this.noteFontWeight = "normal", this.fontWeight = "normal";
1585
+ }
1586
+ updateColors() {
1587
+ this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#333"), this.secondaryColor = this.secondaryColor || F(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || F(this.primaryColor, {
1588
+ h: 180,
1589
+ l: 5
1590
+ }), this.primaryBorderColor = this.primaryBorderColor || U(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || U(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || U(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || U(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#333", this.secondaryTextColor = this.secondaryTextColor || I(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || I(this.tertiaryColor), this.lineColor = this.lineColor || I(this.background), this.arrowheadColor = this.arrowheadColor || I(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 ? P(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 || P(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || I(this.lineColor);
1591
+ let e = "#ECECFE", t = "#E9E9F1", n = F(e, {
1592
+ h: 180,
1593
+ l: 5
1594
+ });
1595
+ if (this.sectionBkgColor = this.sectionBkgColor || n, this.altSectionBkgColor = this.altSectionBkgColor || "white", this.sectionBkgColor = this.sectionBkgColor || t, this.sectionBkgColor2 = this.sectionBkgColor2 || e, this.excludeBkgColor = this.excludeBkgColor || "#eeeeee", this.taskBorderColor = this.taskBorderColor || this.primaryBorderColor, this.taskBkgColor = this.taskBkgColor || e, this.activeTaskBorderColor = this.activeTaskBorderColor || e, this.activeTaskBkgColor = this.activeTaskBkgColor || N(e, 23), this.gridColor = this.gridColor || "lightgrey", this.doneTaskBkgColor = this.doneTaskBkgColor || "lightgrey", this.doneTaskBorderColor = this.doneTaskBorderColor || "grey", this.critBorderColor = this.critBorderColor || "#ff8888", this.critBkgColor = this.critBkgColor || "red", this.todayLineColor = this.todayLineColor || "red", this.taskTextColor = this.taskTextColor || this.textColor, this.taskTextOutsideColor = this.taskTextOutsideColor || this.textColor, this.vertLineColor = this.vertLineColor || this.primaryBorderColor, this.taskTextLightColor = this.taskTextLightColor || this.textColor, this.taskTextColor = this.taskTextColor || this.primaryTextColor, this.taskTextDarkColor = this.taskTextDarkColor || this.textColor, this.taskTextClickableColor = this.taskTextClickableColor || "#003163", this.archEdgeColor = this.lineColor, this.archEdgeArrowColor = this.lineColor, this.personBorder = this.personBorder || this.primaryBorderColor, this.personBkg = this.personBkg || this.mainBkg, this.transitionColor = this.transitionColor || this.lineColor, this.transitionLabelColor = this.transitionLabelColor || this.textColor, this.stateLabelColor = this.stateLabelColor || this.stateBkg || this.primaryTextColor, this.stateBkg = this.stateBkg || this.mainBkg, this.labelBackgroundColor = this.labelBackgroundColor || this.stateBkg, this.compositeBackground = this.compositeBackground || this.background || this.tertiaryColor, this.altBackground = this.altBackground || "#f0f0f0", this.compositeTitleBackground = this.compositeTitleBackground || this.mainBkg, this.compositeBorder = this.compositeBorder || this.nodeBorder, this.innerEndBackground = this.nodeBorder, this.errorBkgColor = this.errorBkgColor || this.tertiaryColor, this.errorTextColor = this.errorTextColor || this.tertiaryTextColor, this.transitionColor = this.transitionColor || this.lineColor, this.specialStateColor = this.lineColor, this.cScale0 = this.cScale0 || e, this.cScale1 = this.cScale1 || t, this.cScale2 = this.cScale2 || n, this.cScale3 = this.cScale3 || F(e, { h: 30 }), this.cScale4 = this.cScale4 || F(e, { h: 60 }), this.cScale5 = this.cScale5 || F(e, { h: 90 }), this.cScale6 = this.cScale6 || F(e, { h: 120 }), this.cScale7 = this.cScale7 || F(e, { h: 150 }), this.cScale8 = this.cScale8 || F(e, {
1596
+ h: 210,
1597
+ l: 150
1598
+ }), this.cScale9 = this.cScale9 || F(e, { h: 270 }), this.cScale10 = this.cScale10 || F(e, { h: 300 }), this.cScale11 = this.cScale11 || F(e, { h: 330 }), this.darkMode) for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = P(this["cScale" + e], 75);
1599
+ else for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = P(this["cScale" + e], 25);
1600
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || I(this["cScale" + e]);
1601
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] || N(this["cScale" + e], 10) : this["cScalePeer" + e] = this["cScalePeer" + e] || P(this["cScale" + e], 10);
1602
+ this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
1603
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
1604
+ let r = this.darkMode ? -4 : -1;
1605
+ for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || F(this.mainBkg, {
1606
+ h: 180,
1607
+ s: -15,
1608
+ l: r * (5 + e * 3)
1609
+ }), this["surfacePeer" + e] = this["surfacePeer" + e] || F(this.mainBkg, {
1610
+ h: 180,
1611
+ s: -15,
1612
+ l: r * (8 + e * 3)
1613
+ });
1614
+ this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || e, this.fillType1 = this.fillType1 || t, this.fillType2 = this.fillType2 || F(e, { h: 64 }), this.fillType3 = this.fillType3 || F(t, { h: 64 }), this.fillType4 = this.fillType4 || F(e, { h: -64 }), this.fillType5 = this.fillType5 || F(t, { h: -64 }), this.fillType6 = this.fillType6 || F(e, { h: 128 }), this.fillType7 = this.fillType7 || F(t, { h: 128 }), this.pie1 = this.pie1 || e, this.pie2 = this.pie2 || t, this.pie3 = this.pie3 || n, this.pie4 = this.pie4 || F(e, { l: -10 }), this.pie5 = this.pie5 || F(t, { l: -10 }), this.pie6 = this.pie6 || F(n, { l: -10 }), this.pie7 = this.pie7 || F(e, {
1615
+ h: 60,
1616
+ l: -10
1617
+ }), this.pie8 = this.pie8 || F(e, {
1618
+ h: -60,
1619
+ l: -10
1620
+ }), this.pie9 = this.pie9 || F(e, {
1621
+ h: 120,
1622
+ l: 0
1623
+ }), this.pie10 = this.pie10 || F(e, {
1624
+ h: 60,
1625
+ l: -20
1626
+ }), this.pie11 = this.pie11 || F(e, {
1627
+ h: -60,
1628
+ l: -20
1629
+ }), this.pie12 = this.pie12 || F(e, {
1630
+ h: 120,
1631
+ l: -10
1632
+ }), this.pieTitleTextSize = this.pieTitleTextSize || "25px", this.pieTitleTextColor = this.pieTitleTextColor || this.taskTextDarkColor, this.pieSectionTextSize = this.pieSectionTextSize || "17px", this.pieSectionTextColor = this.pieSectionTextColor || this.textColor, this.pieLegendTextSize = this.pieLegendTextSize || "17px", this.pieLegendTextColor = this.pieLegendTextColor || this.taskTextDarkColor, this.pieStrokeColor = this.pieStrokeColor || "black", this.pieStrokeWidth = this.pieStrokeWidth || "2px", this.pieOuterStrokeWidth = this.pieOuterStrokeWidth || "2px", this.pieOuterStrokeColor = this.pieOuterStrokeColor || "black", this.pieOpacity = this.pieOpacity || "0.7", this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.quadrant1Fill = this.quadrant1Fill || e, this.quadrant2Fill = this.quadrant2Fill || F(e, {
1633
+ r: 5,
1634
+ g: 5,
1635
+ b: 5
1636
+ }), this.quadrant3Fill = this.quadrant3Fill || F(e, {
1637
+ r: 10,
1638
+ g: 10,
1639
+ b: 10
1640
+ }), this.quadrant4Fill = this.quadrant4Fill || F(e, {
1641
+ r: 15,
1642
+ g: 15,
1643
+ b: 15
1644
+ }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || F(this.primaryTextColor, {
1645
+ r: -5,
1646
+ g: -5,
1647
+ b: -5
1648
+ }), this.quadrant3TextFill = this.quadrant3TextFill || F(this.primaryTextColor, {
1649
+ r: -10,
1650
+ g: -10,
1651
+ b: -10
1652
+ }), this.quadrant4TextFill = this.quadrant4TextFill || F(this.primaryTextColor, {
1653
+ r: -15,
1654
+ g: -15,
1655
+ b: -15
1656
+ }), this.quadrantPointFill = this.quadrantPointFill || j(this.quadrant1Fill) ? N(this.quadrant1Fill) : P(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 = {
1657
+ backgroundColor: this.xyChart?.backgroundColor || this.background,
1658
+ titleColor: this.xyChart?.titleColor || this.primaryTextColor,
1659
+ xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
1660
+ xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
1661
+ xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
1662
+ xAxisLineColor: this.xyChart?.xAxisLineColor || this.primaryTextColor,
1663
+ yAxisTitleColor: this.xyChart?.yAxisTitleColor || this.primaryTextColor,
1664
+ yAxisLabelColor: this.xyChart?.yAxisLabelColor || this.primaryTextColor,
1665
+ yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
1666
+ yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
1667
+ plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
1668
+ }, this.requirementBackground = this.requirementBackground || e, this.requirementBorderColor = this.requirementBorderColor || this.primaryBorderColor, this.requirementBorderSize = this.requirementBorderSize || "1", this.requirementTextColor = this.requirementTextColor || this.primaryTextColor, this.relationColor = this.relationColor || this.lineColor, this.relationLabelBackground = this.relationLabelBackground || (this.darkMode ? P(this.secondaryColor, 30) : this.secondaryColor), this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.git0 = this.git0 || e, this.git1 = this.git1 || t, this.git2 = this.git2 || n, this.git3 = this.git3 || F(e, { h: -30 }), this.git4 = this.git4 || F(e, { h: -60 }), this.git5 = this.git5 || F(e, { h: -90 }), this.git6 = this.git6 || F(e, { h: 60 }), this.git7 = this.git7 || F(e, { h: 120 }), this.darkMode ? (this.git0 = N(this.git0, 25), this.git1 = N(this.git1, 25), this.git2 = N(this.git2, 25), this.git3 = N(this.git3, 25), this.git4 = N(this.git4, 25), this.git5 = N(this.git5, 25), this.git6 = N(this.git6, 25), this.git7 = N(this.git7, 25)) : (this.git0 = P(this.git0, 25), this.git1 = P(this.git1, 25), this.git2 = P(this.git2, 25), this.git3 = P(this.git3, 25), this.git4 = P(this.git4, 25), this.git5 = P(this.git5, 25), this.git6 = P(this.git6, 25), this.git7 = P(this.git7, 25)), this.gitInv0 = this.gitInv0 || I(this.git0), this.gitInv1 = this.gitInv1 || I(this.git1), this.gitInv2 = this.gitInv2 || I(this.git2), this.gitInv3 = this.gitInv3 || I(this.git3), this.gitInv4 = this.gitInv4 || I(this.git4), this.gitInv5 = this.gitInv5 || I(this.git5), this.gitInv6 = this.gitInv6 || I(this.git6), this.gitInv7 = this.gitInv7 || I(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 || V, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || H;
1669
+ }
1670
+ calculate(e) {
1671
+ if (typeof e != "object") {
1672
+ this.updateColors();
1673
+ return;
1674
+ }
1675
+ let t = Object.keys(e);
1676
+ t.forEach((t) => {
1677
+ this[t] = e[t];
1678
+ }), this.updateColors(), t.forEach((t) => {
1679
+ this[t] = e[t];
1680
+ });
1681
+ }
1682
+ }, G = /* @__PURE__ */ n((e) => {
1683
+ let t = new lt();
1684
+ return t.calculate(e), t;
1685
+ }, "getThemeVariables"), ut = class {
1686
+ static {
1687
+ n(this, "Theme");
1688
+ }
1689
+ constructor() {
1690
+ this.background = "#333", this.primaryColor = "#1f2020", this.secondaryColor = N(this.primaryColor, 16), this.tertiaryColor = F(this.primaryColor, { h: -160 }), this.primaryBorderColor = I(this.background), this.secondaryBorderColor = U(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = U(this.tertiaryColor, this.darkMode), this.primaryTextColor = I(this.primaryColor), this.secondaryTextColor = I(this.secondaryColor), this.tertiaryTextColor = I(this.tertiaryColor), this.mainBkg = "#2a2020", this.secondBkg = "calculated", this.mainContrastColor = "lightgrey", this.darkTextColor = N(I("#323D47"), 10), this.border1 = "#ccc", this.border2 = k(255, 255, 255, .25), this.arrowheadColor = I(this.background), this.fontFamily = "arial, sans-serif", this.fontSize = "14px", this.labelBackground = "#181818", this.textColor = "#ccc", this.THEME_COLOR_LIMIT = 12, this.radius = 3, this.strokeWidth = 1, this.noteBkgColor = "#fff5ad", this.noteTextColor = "#333", this.THEME_COLOR_LIMIT = 12, this.fontFamily = "arial, sans-serif", this.fontSize = "14px", this.useGradient = !0, this.gradientStart = "#0042eb", this.gradientStop = "#eb0042", this.dropShadow = "drop-shadow( 1px 2px 2px rgba(185,185,185,0.2))", this.archEdgeColor = "calculated", this.archEdgeArrowColor = "calculated", this.archEdgeWidth = "3", this.archGroupBorderColor = this.primaryBorderColor, this.archGroupBorderWidth = "2px", this.noteFontWeight = "normal", this.fontWeight = "normal";
1691
+ }
1692
+ updateColors() {
1693
+ if (this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#333"), this.secondaryColor = this.secondaryColor || F(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || F(this.primaryColor, {
1694
+ h: 180,
1695
+ l: 5
1696
+ }), this.primaryBorderColor = this.primaryBorderColor || U(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || U(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || U(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || U(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#333", this.secondaryTextColor = this.secondaryTextColor || I(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || I(this.tertiaryColor), this.lineColor = this.lineColor || I(this.background), this.arrowheadColor = this.arrowheadColor || I(this.background), this.textColor = this.textColor || this.primaryTextColor, this.border2 = this.border2 || this.tertiaryBorderColor, this.nodeBkg = this.nodeBkg || this.primaryColor, this.mainBkg = this.mainBkg || this.primaryColor, this.nodeBorder = this.nodeBorder || this.border1, this.clusterBkg = this.clusterBkg || this.tertiaryColor, this.clusterBorder = this.clusterBorder || this.tertiaryBorderColor, this.defaultLinkColor = this.defaultLinkColor || this.lineColor, this.titleColor = this.titleColor || this.tertiaryTextColor, this.edgeLabelBackground = this.edgeLabelBackground || (this.darkMode ? P(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 || P(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || I(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 || N(this.primaryColor, 23), this.gridColor = this.gridColor || "lightgrey", this.doneTaskBkgColor = this.doneTaskBkgColor || "lightgrey", this.doneTaskBorderColor = this.doneTaskBorderColor || "grey", this.critBorderColor = this.critBorderColor || "#ff8888", this.critBkgColor = this.critBkgColor || "red", this.todayLineColor = this.todayLineColor || "red", this.vertLineColor = this.vertLineColor || this.primaryBorderColor, this.taskTextColor = this.taskTextColor || this.textColor, this.taskTextOutsideColor = this.taskTextOutsideColor || this.textColor, this.taskTextLightColor = this.taskTextLightColor || this.textColor, this.taskTextColor = this.taskTextColor || this.primaryTextColor, this.taskTextDarkColor = this.taskTextDarkColor || this.textColor, this.taskTextClickableColor = this.taskTextClickableColor || "#003163", this.archEdgeColor = this.lineColor, this.archEdgeArrowColor = this.lineColor, this.personBorder = this.personBorder || this.primaryBorderColor, this.personBkg = this.personBkg || this.mainBkg, this.transitionColor = this.transitionColor || this.lineColor, this.transitionLabelColor = this.transitionLabelColor || this.textColor, this.stateLabelColor = this.stateLabelColor || this.stateBkg || this.primaryTextColor, this.stateBkg = this.stateBkg || this.mainBkg, this.labelBackgroundColor = this.labelBackgroundColor || this.stateBkg, this.compositeBackground = this.compositeBackground || this.background || this.tertiaryColor, this.altBackground = this.altBackground || "#f0f0f0", this.compositeTitleBackground = this.compositeTitleBackground || this.mainBkg, this.compositeBorder = this.compositeBorder || this.nodeBorder, this.innerEndBackground = this.nodeBorder, this.errorBkgColor = this.errorBkgColor || this.tertiaryColor, this.errorTextColor = this.errorTextColor || this.tertiaryTextColor, this.transitionColor = this.transitionColor || this.lineColor, this.specialStateColor = this.lineColor, this.cScale0 = this.cScale0 || this.primaryColor, this.cScale1 = this.cScale1 || this.secondaryColor, this.cScale2 = this.cScale2 || this.tertiaryColor, this.cScale3 = this.cScale3 || F(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || F(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || F(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || F(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || F(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || F(this.primaryColor, {
1697
+ h: 210,
1698
+ l: 150
1699
+ }), this.cScale9 = this.cScale9 || F(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || F(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || F(this.primaryColor, { h: 330 }), this.darkMode) for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = P(this["cScale" + e], 75);
1700
+ else for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = P(this["cScale" + e], 25);
1701
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || I(this["cScale" + e]);
1702
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] || N(this["cScale" + e], 10) : this["cScalePeer" + e] = this["cScalePeer" + e] || P(this["cScale" + e], 10);
1703
+ this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
1704
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
1705
+ let e = this.darkMode ? -4 : -1;
1706
+ for (let t = 0; t < 5; t++) this["surface" + t] = this["surface" + t] || F(this.mainBkg, {
1707
+ h: 180,
1708
+ s: -15,
1709
+ l: e * (5 + t * 3)
1710
+ }), this["surfacePeer" + t] = this["surfacePeer" + t] || F(this.mainBkg, {
1711
+ h: 180,
1712
+ s: -15,
1713
+ l: e * (8 + t * 3)
1714
+ });
1715
+ this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || this.primaryColor, this.fillType1 = this.fillType1 || this.secondaryColor, this.fillType2 = this.fillType2 || F(this.primaryColor, { h: 64 }), this.fillType3 = this.fillType3 || F(this.secondaryColor, { h: 64 }), this.fillType4 = this.fillType4 || F(this.primaryColor, { h: -64 }), this.fillType5 = this.fillType5 || F(this.secondaryColor, { h: -64 }), this.fillType6 = this.fillType6 || F(this.primaryColor, { h: 128 }), this.fillType7 = this.fillType7 || F(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 || F(this.primaryColor, { l: -10 }), this.pie5 = this.pie5 || F(this.secondaryColor, { l: -10 }), this.pie6 = this.pie6 || F(this.tertiaryColor, { l: -10 }), this.pie7 = this.pie7 || F(this.primaryColor, {
1716
+ h: 60,
1717
+ l: -10
1718
+ }), this.pie8 = this.pie8 || F(this.primaryColor, {
1719
+ h: -60,
1720
+ l: -10
1721
+ }), this.pie9 = this.pie9 || F(this.primaryColor, {
1722
+ h: 120,
1723
+ l: 0
1724
+ }), this.pie10 = this.pie10 || F(this.primaryColor, {
1725
+ h: 60,
1726
+ l: -20
1727
+ }), this.pie11 = this.pie11 || F(this.primaryColor, {
1728
+ h: -60,
1729
+ l: -20
1730
+ }), this.pie12 = this.pie12 || F(this.primaryColor, {
1731
+ h: 120,
1732
+ l: -10
1733
+ }), this.pieTitleTextSize = this.pieTitleTextSize || "25px", this.pieTitleTextColor = this.pieTitleTextColor || this.taskTextDarkColor, this.pieSectionTextSize = this.pieSectionTextSize || "17px", this.pieSectionTextColor = this.pieSectionTextColor || this.textColor, this.pieLegendTextSize = this.pieLegendTextSize || "17px", this.pieLegendTextColor = this.pieLegendTextColor || this.taskTextDarkColor, this.pieStrokeColor = this.pieStrokeColor || "black", this.pieStrokeWidth = this.pieStrokeWidth || "2px", this.pieOuterStrokeWidth = this.pieOuterStrokeWidth || "2px", this.pieOuterStrokeColor = this.pieOuterStrokeColor || "black", this.pieOpacity = this.pieOpacity || "0.7", this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || F(this.primaryColor, {
1734
+ r: 5,
1735
+ g: 5,
1736
+ b: 5
1737
+ }), this.quadrant3Fill = this.quadrant3Fill || F(this.primaryColor, {
1738
+ r: 10,
1739
+ g: 10,
1740
+ b: 10
1741
+ }), this.quadrant4Fill = this.quadrant4Fill || F(this.primaryColor, {
1742
+ r: 15,
1743
+ g: 15,
1744
+ b: 15
1745
+ }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || F(this.primaryTextColor, {
1746
+ r: -5,
1747
+ g: -5,
1748
+ b: -5
1749
+ }), this.quadrant3TextFill = this.quadrant3TextFill || F(this.primaryTextColor, {
1750
+ r: -10,
1751
+ g: -10,
1752
+ b: -10
1753
+ }), this.quadrant4TextFill = this.quadrant4TextFill || F(this.primaryTextColor, {
1754
+ r: -15,
1755
+ g: -15,
1756
+ b: -15
1757
+ }), this.quadrantPointFill = this.quadrantPointFill || j(this.quadrant1Fill) ? N(this.quadrant1Fill) : P(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 = {
1758
+ backgroundColor: this.xyChart?.backgroundColor || this.background,
1759
+ titleColor: this.xyChart?.titleColor || this.primaryTextColor,
1760
+ xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
1761
+ xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
1762
+ xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
1763
+ xAxisLineColor: this.xyChart?.xAxisLineColor || this.primaryTextColor,
1764
+ yAxisTitleColor: this.xyChart?.yAxisTitleColor || this.primaryTextColor,
1765
+ yAxisLabelColor: this.xyChart?.yAxisLabelColor || this.primaryTextColor,
1766
+ yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
1767
+ yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
1768
+ plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
1769
+ }, 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 ? P(this.secondaryColor, 30) : this.secondaryColor), this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.git0 = this.git0 || "#0b0000", this.git1 = this.git1 || "#4d1037", this.git2 = this.git2 || "#3f5258", this.git3 = this.git3 || "#4f2f1b", this.git4 = this.git4 || "#6e0a0a", this.git5 = this.git5 || "#3b0048", this.git6 = this.git6 || "#995a01", this.git7 = this.git7 || "#154706", this.gitDarkMode = !0, this.gitDarkMode ? (this.git0 = N(this.git0, 25), this.git1 = N(this.git1, 25), this.git2 = N(this.git2, 25), this.git3 = N(this.git3, 25), this.git4 = N(this.git4, 25), this.git5 = N(this.git5, 25), this.git6 = N(this.git6, 25), this.git7 = N(this.git7, 25)) : (this.git0 = P(this.git0, 25), this.git1 = P(this.git1, 25), this.git2 = P(this.git2, 25), this.git3 = P(this.git3, 25), this.git4 = P(this.git4, 25), this.git5 = P(this.git5, 25), this.git6 = P(this.git6, 25), this.git7 = P(this.git7, 25)), this.gitInv0 = this.gitInv0 || I(this.git0), this.gitInv1 = this.gitInv1 || I(this.git1), this.gitInv2 = this.gitInv2 || I(this.git2), this.gitInv3 = this.gitInv3 || I(this.git3), this.gitInv4 = this.gitInv4 || I(this.git4), this.gitInv5 = this.gitInv5 || I(this.git5), this.gitInv6 = this.gitInv6 || I(this.git6), this.gitInv7 = this.gitInv7 || I(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 || V, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || H;
1770
+ }
1771
+ calculate(e) {
1772
+ if (typeof e != "object") {
1773
+ this.updateColors();
1774
+ return;
1775
+ }
1776
+ let t = Object.keys(e);
1777
+ t.forEach((t) => {
1778
+ this[t] = e[t];
1779
+ }), this.updateColors(), t.forEach((t) => {
1780
+ this[t] = e[t];
1781
+ });
1782
+ }
1783
+ }, dt = /* @__PURE__ */ n((e) => {
1784
+ let t = new ut();
1785
+ return t.calculate(e), t;
1786
+ }, "getThemeVariables"), ft = class {
1787
+ static {
1788
+ n(this, "Theme");
1789
+ }
1790
+ constructor() {
1791
+ this.background = "#ffffff", this.primaryColor = "#cccccc", this.mainBkg = "#ffffff", this.noteBkgColor = "#fff5ad", this.noteTextColor = "#28253D", this.THEME_COLOR_LIMIT = 12, this.radius = 12, this.strokeWidth = 2, this.primaryBorderColor = U("#28253D", this.darkMode), this.fontFamily = "\"Recursive Variable\", arial, sans-serif", this.fontSize = "14px", this.nodeBorder = "#28253D", this.stateBorder = "#28253D", this.useGradient = !1, this.gradientStart = "#0042eb", this.gradientStop = "#eb0042", this.dropShadow = "url(#drop-shadow)", this.nodeShadow = !0, this.tertiaryColor = "#ffffff", this.clusterBkg = "#F9F9FB", this.clusterBorder = "#BDBCCC", this.noteBorderColor = "#FACC15", this.archEdgeColor = "calculated", this.archEdgeArrowColor = "calculated", this.archEdgeWidth = "3", this.archGroupBorderColor = this.primaryBorderColor, this.archGroupBorderWidth = "2px", this.actorBorder = "#28253D", this.filterColor = "#000000";
1792
+ }
1793
+ updateColors() {
1794
+ this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#28253D"), this.secondaryColor = this.secondaryColor || F(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || F(this.primaryColor, {
1795
+ h: 180,
1796
+ l: 5
1797
+ }), this.primaryBorderColor = this.primaryBorderColor || U(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || U(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || U(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || U(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#FEF9C3", this.noteTextColor = this.noteTextColor || "#28253D", this.secondaryTextColor = this.secondaryTextColor || I(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || I(this.tertiaryColor), this.lineColor = this.lineColor || I(this.background), this.arrowheadColor = this.arrowheadColor || I(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 ? P(this.secondaryColor, 30) : this.secondaryColor), this.nodeTextColor = this.nodeTextColor || this.primaryTextColor, this.noteFontWeight = 600, this.actorBorder = this.actorBorder || this.primaryBorderColor, this.actorBkg = this.actorBkg || this.mainBkg, this.actorTextColor = this.actorTextColor || this.primaryTextColor, this.actorLineColor = this.actorLineColor || this.actorBorder, this.labelBoxBkgColor = this.labelBoxBkgColor || this.actorBkg, this.signalColor = this.signalColor || this.textColor, this.signalTextColor = this.signalTextColor || this.textColor, this.labelBoxBorderColor = this.labelBoxBorderColor || this.actorBorder, this.labelTextColor = this.labelTextColor || this.actorTextColor, this.loopTextColor = this.loopTextColor || this.actorTextColor, this.activationBorderColor = this.activationBorderColor || P(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || I(this.lineColor);
1798
+ let e = "#ECECFE", t = "#E9E9F1", n = F(e, {
1799
+ h: 180,
1800
+ l: 5
1801
+ });
1802
+ this.sectionBkgColor = this.sectionBkgColor || n, this.altSectionBkgColor = this.altSectionBkgColor || "white", this.sectionBkgColor = this.sectionBkgColor || t, this.sectionBkgColor2 = this.sectionBkgColor2 || e, this.excludeBkgColor = this.excludeBkgColor || "#eeeeee", this.taskBorderColor = this.taskBorderColor || this.primaryBorderColor, this.taskBkgColor = this.taskBkgColor || e, this.activeTaskBorderColor = this.activeTaskBorderColor || e, this.activeTaskBkgColor = this.activeTaskBkgColor || N(e, 23), this.gridColor = this.gridColor || "lightgrey", this.doneTaskBkgColor = this.doneTaskBkgColor || "lightgrey", this.doneTaskBorderColor = this.doneTaskBorderColor || "grey", this.critBorderColor = this.critBorderColor || "#ff8888", this.critBkgColor = this.critBkgColor || "red", this.todayLineColor = this.todayLineColor || "red", this.taskTextColor = this.taskTextColor || this.textColor, this.vertLineColor = this.vertLineColor || this.primaryBorderColor, this.taskTextOutsideColor = this.taskTextOutsideColor || this.textColor, this.taskTextLightColor = this.taskTextLightColor || this.textColor, this.taskTextColor = this.taskTextColor || this.primaryTextColor, this.taskTextDarkColor = this.taskTextDarkColor || this.textColor, this.taskTextClickableColor = this.taskTextClickableColor || "#003163", this.archEdgeColor = this.lineColor, this.archEdgeArrowColor = this.lineColor, this.personBorder = this.personBorder || this.primaryBorderColor, this.personBkg = this.personBkg || this.mainBkg, this.transitionColor = this.transitionColor || this.lineColor, this.transitionLabelColor = this.transitionLabelColor || this.textColor, this.stateLabelColor = this.stateLabelColor || this.stateBkg || this.primaryTextColor, this.compositeTitleBackground = "#F9F9FB", this.altBackground = "#F9F9FB", this.stateEdgeLabelBackground = "#FFFFFF", this.fontWeight = 600, this.stateBkg = this.stateBkg || this.mainBkg, this.labelBackgroundColor = this.labelBackgroundColor || this.stateBkg, this.compositeBackground = this.compositeBackground || this.background || this.tertiaryColor, this.altBackground = this.altBackground || "#f0f0f0", this.compositeTitleBackground = this.compositeTitleBackground || this.mainBkg, this.compositeBorder = this.compositeBorder || this.nodeBorder, this.innerEndBackground = this.nodeBorder, this.errorBkgColor = this.errorBkgColor || this.tertiaryColor, this.errorTextColor = this.errorTextColor || this.tertiaryTextColor, this.transitionColor = this.transitionColor || this.lineColor, this.specialStateColor = this.lineColor;
1803
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = this.mainBkg;
1804
+ if (this.darkMode) for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = P(this["cScale" + e], 75);
1805
+ else for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = P(this["cScale" + e], 25);
1806
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || I(this["cScale" + e]);
1807
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] || N(this["cScale" + e], 10) : this["cScalePeer" + e] = this["cScalePeer" + e] || P(this["cScale" + e], 10);
1808
+ this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
1809
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
1810
+ let r = this.darkMode ? -4 : -1;
1811
+ for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || F(this.mainBkg, {
1812
+ h: 180,
1813
+ s: -15,
1814
+ l: r * (5 + e * 3)
1815
+ }), this["surfacePeer" + e] = this["surfacePeer" + e] || F(this.mainBkg, {
1816
+ h: 180,
1817
+ s: -15,
1818
+ l: r * (8 + e * 3)
1819
+ });
1820
+ this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || e, this.fillType1 = this.fillType1 || t, this.fillType2 = this.fillType2 || F(e, { h: 64 }), this.fillType3 = this.fillType3 || F(t, { h: 64 }), this.fillType4 = this.fillType4 || F(e, { h: -64 }), this.fillType5 = this.fillType5 || F(t, { h: -64 }), this.fillType6 = this.fillType6 || F(e, { h: 128 }), this.fillType7 = this.fillType7 || F(t, { h: 128 }), this.pie1 = this.pie1 || e, this.pie2 = this.pie2 || t, this.pie3 = this.pie3 || n, this.pie4 = this.pie4 || F(e, { l: -10 }), this.pie5 = this.pie5 || F(t, { l: -10 }), this.pie6 = this.pie6 || F(n, { l: -10 }), this.pie7 = this.pie7 || F(e, {
1821
+ h: 60,
1822
+ l: -10
1823
+ }), this.pie8 = this.pie8 || F(e, {
1824
+ h: -60,
1825
+ l: -10
1826
+ }), this.pie9 = this.pie9 || F(e, {
1827
+ h: 120,
1828
+ l: 0
1829
+ }), this.pie10 = this.pie10 || F(e, {
1830
+ h: 60,
1831
+ l: -20
1832
+ }), this.pie11 = this.pie11 || F(e, {
1833
+ h: -60,
1834
+ l: -20
1835
+ }), this.pie12 = this.pie12 || F(e, {
1836
+ h: 120,
1837
+ l: -10
1838
+ }), this.pieTitleTextSize = this.pieTitleTextSize || "25px", this.pieTitleTextColor = this.pieTitleTextColor || this.taskTextDarkColor, this.pieSectionTextSize = this.pieSectionTextSize || "17px", this.pieSectionTextColor = this.pieSectionTextColor || this.textColor, this.pieLegendTextSize = this.pieLegendTextSize || "17px", this.pieLegendTextColor = this.pieLegendTextColor || this.taskTextDarkColor, this.pieStrokeColor = this.pieStrokeColor || "black", this.pieStrokeWidth = this.pieStrokeWidth || "2px", this.pieOuterStrokeWidth = this.pieOuterStrokeWidth || "2px", this.pieOuterStrokeColor = this.pieOuterStrokeColor || "black", this.pieOpacity = this.pieOpacity || "0.7", this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.quadrant1Fill = this.quadrant1Fill || e, this.quadrant2Fill = this.quadrant2Fill || F(e, {
1839
+ r: 5,
1840
+ g: 5,
1841
+ b: 5
1842
+ }), this.quadrant3Fill = this.quadrant3Fill || F(e, {
1843
+ r: 10,
1844
+ g: 10,
1845
+ b: 10
1846
+ }), this.quadrant4Fill = this.quadrant4Fill || F(e, {
1847
+ r: 15,
1848
+ g: 15,
1849
+ b: 15
1850
+ }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || F(this.primaryTextColor, {
1851
+ r: -5,
1852
+ g: -5,
1853
+ b: -5
1854
+ }), this.quadrant3TextFill = this.quadrant3TextFill || F(this.primaryTextColor, {
1855
+ r: -10,
1856
+ g: -10,
1857
+ b: -10
1858
+ }), this.quadrant4TextFill = this.quadrant4TextFill || F(this.primaryTextColor, {
1859
+ r: -15,
1860
+ g: -15,
1861
+ b: -15
1862
+ }), this.quadrantPointFill = this.quadrantPointFill || j(this.quadrant1Fill) ? N(this.quadrant1Fill) : P(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 = {
1863
+ backgroundColor: this.xyChart?.backgroundColor || this.background,
1864
+ titleColor: this.xyChart?.titleColor || this.primaryTextColor,
1865
+ xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
1866
+ xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
1867
+ xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
1868
+ xAxisLineColor: this.xyChart?.xAxisLineColor || this.primaryTextColor,
1869
+ yAxisTitleColor: this.xyChart?.yAxisTitleColor || this.primaryTextColor,
1870
+ yAxisLabelColor: this.xyChart?.yAxisLabelColor || this.primaryTextColor,
1871
+ yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
1872
+ yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
1873
+ plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
1874
+ }, this.requirementBackground = this.requirementBackground || e, this.requirementBorderColor = this.requirementBorderColor || this.primaryBorderColor, this.requirementBorderSize = this.requirementBorderSize || "1", this.requirementTextColor = this.requirementTextColor || this.primaryTextColor, this.relationColor = this.relationColor || this.lineColor, this.relationLabelBackground = this.relationLabelBackground || (this.darkMode ? P(this.secondaryColor, 30) : this.secondaryColor), this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.requirementEdgeLabelBackground = "#FFFFFF", this.git0 = this.git0 || e, this.git1 = this.git1 || t, this.git2 = this.git2 || n, this.git3 = this.git3 || F(e, { h: -30 }), this.git4 = this.git4 || F(e, { h: -60 }), this.git5 = this.git5 || F(e, { h: -90 }), this.git6 = this.git6 || F(e, { h: 60 }), this.git7 = this.git7 || F(e, { h: 120 }), this.darkMode ? (this.git0 = N(this.git0, 25), this.git1 = N(this.git1, 25), this.git2 = N(this.git2, 25), this.git3 = N(this.git3, 25), this.git4 = N(this.git4, 25), this.git5 = N(this.git5, 25), this.git6 = N(this.git6, 25), this.git7 = N(this.git7, 25)) : (this.git0 = P(this.git0, 25), this.git1 = P(this.git1, 25), this.git2 = P(this.git2, 25), this.git3 = P(this.git3, 25), this.git4 = P(this.git4, 25), this.git5 = P(this.git5, 25), this.git6 = P(this.git6, 25), this.git7 = P(this.git7, 25)), this.gitInv0 = this.gitInv0 || I(this.git0), this.gitInv1 = this.gitInv1 || I(this.git1), this.gitInv2 = this.gitInv2 || I(this.git2), this.gitInv3 = this.gitInv3 || I(this.git3), this.gitInv4 = this.gitInv4 || I(this.git4), this.gitInv5 = this.gitInv5 || I(this.git5), this.gitInv6 = this.gitInv6 || I(this.git6), this.gitInv7 = this.gitInv7 || I(this.git7), this.branchLabelColor = this.branchLabelColor || (this.darkMode ? "black" : this.labelTextColor), this.gitBranchLabel0 = this.gitBranchLabel0 || this.branchLabelColor, this.gitBranchLabel1 = this.gitBranchLabel1 || this.branchLabelColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.branchLabelColor, this.gitBranchLabel3 = this.gitBranchLabel3 || this.branchLabelColor, this.gitBranchLabel4 = this.gitBranchLabel4 || this.branchLabelColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.branchLabelColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.branchLabelColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.branchLabelColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.commitLineColor = this.commitLineColor ?? "#BDBCCC", this.erEdgeLabelBackground = "#FFFFFF", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || V, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || H;
1875
+ }
1876
+ calculate(e) {
1877
+ if (typeof e != "object") {
1878
+ this.updateColors();
1879
+ return;
1880
+ }
1881
+ let t = Object.keys(e);
1882
+ t.forEach((t) => {
1883
+ this[t] = e[t];
1884
+ }), this.updateColors(), t.forEach((t) => {
1885
+ this[t] = e[t];
1886
+ });
1887
+ }
1888
+ }, pt = /* @__PURE__ */ n((e) => {
1889
+ let t = new ft();
1890
+ return t.calculate(e), t;
1891
+ }, "getThemeVariables"), mt = class {
1892
+ static {
1893
+ n(this, "Theme");
1894
+ }
1895
+ constructor() {
1896
+ this.background = "#333", this.primaryColor = "#1f2020", this.secondaryColor = N(this.primaryColor, 16), this.tertiaryColor = F(this.primaryColor, { h: -160 }), this.primaryBorderColor = I(this.background), this.secondaryBorderColor = U(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = U(this.tertiaryColor, this.darkMode), this.primaryTextColor = I(this.primaryColor), this.secondaryTextColor = I(this.secondaryColor), this.tertiaryTextColor = I(this.tertiaryColor), this.mainBkg = "#111113", this.secondBkg = "calculated", this.mainContrastColor = "lightgrey", this.darkTextColor = N(I("#323D47"), 10), this.border1 = "#ccc", this.border2 = k(255, 255, 255, .25), this.arrowheadColor = I(this.background), this.fontFamily = "\"Recursive Variable\", arial, sans-serif", this.fontSize = "14px", this.labelBackground = "#111113", this.textColor = "#ccc", this.THEME_COLOR_LIMIT = 12, this.radius = 12, this.strokeWidth = 2, this.noteBkgColor = this.noteBkgColor ?? "#FEF9C3", this.noteTextColor = this.noteTextColor ?? "#28253D", this.THEME_COLOR_LIMIT = 12, this.fontFamily = "\"Recursive Variable\", arial, sans-serif", this.fontSize = "14px", this.nodeBorder = "#FFFFFF", this.stateBorder = "#FFFFFF", this.useGradient = !1, this.gradientStart = "#0042eb", this.gradientStop = "#eb0042", this.dropShadow = "url(#drop-shadow)", this.nodeShadow = !0, this.archEdgeColor = "calculated", this.archEdgeArrowColor = "calculated", this.archEdgeWidth = "3", this.archGroupBorderColor = this.primaryBorderColor, this.archGroupBorderWidth = "2px", this.clusterBkg = "#1E1A2E", this.clusterBorder = "#BDBCCC", this.noteBorderColor = "#FACC15", this.noteFontWeight = 600, this.filterColor = "#FFFFFF";
1897
+ }
1898
+ updateColors() {
1899
+ if (this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#FFFFFF"), this.secondaryColor = this.secondaryColor || F(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || F(this.primaryColor, {
1900
+ h: 180,
1901
+ l: 5
1902
+ }), this.primaryBorderColor = this.primaryBorderColor || U(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || U(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || U(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || U(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#FFFFFF", this.secondaryTextColor = this.secondaryTextColor || I(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || I(this.tertiaryColor), this.lineColor = this.lineColor || I(this.background), this.arrowheadColor = this.arrowheadColor || I(this.background), this.textColor = this.textColor || this.primaryTextColor, this.border2 = this.border2 || this.tertiaryBorderColor, this.nodeBkg = this.nodeBkg || this.primaryColor, this.mainBkg = this.mainBkg || this.primaryColor, this.nodeBorder = this.nodeBorder || this.border1, this.clusterBkg = this.clusterBkg || this.tertiaryColor, this.clusterBorder = this.clusterBorder || this.tertiaryBorderColor, this.defaultLinkColor = this.defaultLinkColor || this.lineColor, this.titleColor = this.titleColor || this.tertiaryTextColor, this.edgeLabelBackground = this.edgeLabelBackground || (this.darkMode ? P(this.secondaryColor, 30) : this.secondaryColor), this.nodeTextColor = this.nodeTextColor || this.primaryTextColor, this.actorBorder = "#FFFFFF", this.signalColor = "#FFFFFF", this.labelBoxBorderColor = "#BDBCCC", this.actorBorder = this.actorBorder || this.primaryBorderColor, this.actorBkg = this.actorBkg || this.mainBkg, this.actorTextColor = this.actorTextColor || this.primaryTextColor, this.actorLineColor = this.actorLineColor || this.actorBorder, this.labelBoxBkgColor = this.labelBoxBkgColor || this.actorBkg, this.signalColor = this.signalColor || this.textColor, this.signalTextColor = this.signalTextColor || this.textColor, this.labelBoxBorderColor = this.labelBoxBorderColor || this.actorBorder, this.labelTextColor = this.labelTextColor || this.actorTextColor, this.loopTextColor = this.loopTextColor || this.actorTextColor, this.activationBorderColor = this.activationBorderColor || P(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || I(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 || N(this.primaryColor, 23), this.gridColor = this.gridColor || "lightgrey", this.doneTaskBkgColor = this.doneTaskBkgColor || "lightgrey", this.doneTaskBorderColor = this.doneTaskBorderColor || "grey", this.critBorderColor = this.critBorderColor || "#ff8888", this.critBkgColor = this.critBkgColor || "red", this.todayLineColor = this.todayLineColor || "red", this.taskTextColor = this.taskTextColor || this.textColor, this.taskTextOutsideColor = this.taskTextOutsideColor || this.textColor, this.taskTextLightColor = this.taskTextLightColor || this.textColor, this.taskTextColor = this.taskTextColor || this.primaryTextColor, this.taskTextDarkColor = this.taskTextDarkColor || this.textColor, this.taskTextClickableColor = this.taskTextClickableColor || "#003163", this.archEdgeColor = this.lineColor, this.archEdgeArrowColor = this.lineColor, this.personBorder = this.personBorder || this.primaryBorderColor, this.personBkg = this.personBkg || this.mainBkg, this.transitionColor = this.transitionColor || this.lineColor, this.transitionLabelColor = this.transitionLabelColor || this.textColor, this.stateLabelColor = this.stateLabelColor || this.stateBkg || this.primaryTextColor, this.vertLineColor = this.vertLineColor || this.primaryBorderColor, this.compositeBackground = "#16141F", this.altBackground = "#16141F", this.compositeTitleBackground = "#16141F", this.stateEdgeLabelBackground = "#16141F", this.fontWeight = 600, this.stateBkg = this.stateBkg || this.mainBkg, this.labelBackgroundColor = this.labelBackgroundColor || this.stateBkg, this.compositeBackground = this.compositeBackground || this.background || this.tertiaryColor, this.altBackground = this.altBackground || "#f0f0f0", this.compositeTitleBackground = this.compositeTitleBackground || this.mainBkg, this.compositeBorder = this.compositeBorder || this.nodeBorder, this.innerEndBackground = this.nodeBorder, this.errorBkgColor = this.errorBkgColor || this.tertiaryColor, this.errorTextColor = this.errorTextColor || this.tertiaryTextColor, this.transitionColor = this.transitionColor || this.lineColor, this.specialStateColor = this.lineColor, this.cScale0 = this.cScale0 || this.primaryColor, this.cScale1 = this.cScale1 || this.secondaryColor, this.cScale2 = this.cScale2 || this.tertiaryColor, this.cScale3 = this.cScale3 || F(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || F(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || F(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || F(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || F(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || F(this.primaryColor, {
1903
+ h: 210,
1904
+ l: 150
1905
+ }), this.cScale9 = this.cScale9 || F(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || F(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || F(this.primaryColor, { h: 330 }), this.darkMode) for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = P(this["cScale" + e], 75);
1906
+ else for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = P(this["cScale" + e], 25);
1907
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || I(this["cScale" + e]);
1908
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] || N(this["cScale" + e], 10) : this["cScalePeer" + e] = this["cScalePeer" + e] || P(this["cScale" + e], 10);
1909
+ this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
1910
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
1911
+ let e = this.darkMode ? -4 : -1;
1912
+ for (let t = 0; t < 5; t++) this["surface" + t] = this["surface" + t] || F(this.mainBkg, {
1913
+ h: 180,
1914
+ s: -15,
1915
+ l: e * (5 + t * 3)
1916
+ }), this["surfacePeer" + t] = this["surfacePeer" + t] || F(this.mainBkg, {
1917
+ h: 180,
1918
+ s: -15,
1919
+ l: e * (8 + t * 3)
1920
+ });
1921
+ this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || this.primaryColor, this.fillType1 = this.fillType1 || this.secondaryColor, this.fillType2 = this.fillType2 || F(this.primaryColor, { h: 64 }), this.fillType3 = this.fillType3 || F(this.secondaryColor, { h: 64 }), this.fillType4 = this.fillType4 || F(this.primaryColor, { h: -64 }), this.fillType5 = this.fillType5 || F(this.secondaryColor, { h: -64 }), this.fillType6 = this.fillType6 || F(this.primaryColor, { h: 128 }), this.fillType7 = this.fillType7 || F(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 || F(this.primaryColor, { l: -10 }), this.pie5 = this.pie5 || F(this.secondaryColor, { l: -10 }), this.pie6 = this.pie6 || F(this.tertiaryColor, { l: -10 }), this.pie7 = this.pie7 || F(this.primaryColor, {
1922
+ h: 60,
1923
+ l: -10
1924
+ }), this.pie8 = this.pie8 || F(this.primaryColor, {
1925
+ h: -60,
1926
+ l: -10
1927
+ }), this.pie9 = this.pie9 || F(this.primaryColor, {
1928
+ h: 120,
1929
+ l: 0
1930
+ }), this.pie10 = this.pie10 || F(this.primaryColor, {
1931
+ h: 60,
1932
+ l: -20
1933
+ }), this.pie11 = this.pie11 || F(this.primaryColor, {
1934
+ h: -60,
1935
+ l: -20
1936
+ }), this.pie12 = this.pie12 || F(this.primaryColor, {
1937
+ h: 120,
1938
+ l: -10
1939
+ }), this.pieTitleTextSize = this.pieTitleTextSize || "25px", this.pieTitleTextColor = this.pieTitleTextColor || this.taskTextDarkColor, this.pieSectionTextSize = this.pieSectionTextSize || "17px", this.pieSectionTextColor = this.pieSectionTextColor || this.textColor, this.pieLegendTextSize = this.pieLegendTextSize || "17px", this.pieLegendTextColor = this.pieLegendTextColor || this.taskTextDarkColor, this.pieStrokeColor = this.pieStrokeColor || "black", this.pieStrokeWidth = this.pieStrokeWidth || "2px", this.pieOuterStrokeWidth = this.pieOuterStrokeWidth || "2px", this.pieOuterStrokeColor = this.pieOuterStrokeColor || "black", this.pieOpacity = this.pieOpacity || "0.7", this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || F(this.primaryColor, {
1940
+ r: 5,
1941
+ g: 5,
1942
+ b: 5
1943
+ }), this.quadrant3Fill = this.quadrant3Fill || F(this.primaryColor, {
1944
+ r: 10,
1945
+ g: 10,
1946
+ b: 10
1947
+ }), this.quadrant4Fill = this.quadrant4Fill || F(this.primaryColor, {
1948
+ r: 15,
1949
+ g: 15,
1950
+ b: 15
1951
+ }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || F(this.primaryTextColor, {
1952
+ r: -5,
1953
+ g: -5,
1954
+ b: -5
1955
+ }), this.quadrant3TextFill = this.quadrant3TextFill || F(this.primaryTextColor, {
1956
+ r: -10,
1957
+ g: -10,
1958
+ b: -10
1959
+ }), this.quadrant4TextFill = this.quadrant4TextFill || F(this.primaryTextColor, {
1960
+ r: -15,
1961
+ g: -15,
1962
+ b: -15
1963
+ }), this.quadrantPointFill = this.quadrantPointFill || j(this.quadrant1Fill) ? N(this.quadrant1Fill) : P(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 = {
1964
+ backgroundColor: this.xyChart?.backgroundColor || this.background,
1965
+ titleColor: this.xyChart?.titleColor || this.primaryTextColor,
1966
+ xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
1967
+ xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
1968
+ xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
1969
+ xAxisLineColor: this.xyChart?.xAxisLineColor || this.primaryTextColor,
1970
+ yAxisTitleColor: this.xyChart?.yAxisTitleColor || this.primaryTextColor,
1971
+ yAxisLabelColor: this.xyChart?.yAxisLabelColor || this.primaryTextColor,
1972
+ yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
1973
+ yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
1974
+ plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
1975
+ }, 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 ? P(this.secondaryColor, 30) : this.secondaryColor), this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.requirementEdgeLabelBackground = "#16141F", this.git0 = this.git0 || this.primaryColor, this.git1 = this.git1 || this.secondaryColor, this.git2 = this.git2 || this.tertiaryColor, this.git3 = this.git3 || F(this.primaryColor, { h: -30 }), this.git4 = this.git4 || F(this.primaryColor, { h: -60 }), this.git5 = this.git5 || F(this.primaryColor, { h: -90 }), this.git6 = this.git6 || F(this.primaryColor, { h: 60 }), this.git7 = this.git7 || F(this.primaryColor, { h: 120 }), this.darkMode ? (this.git0 = N(this.git0, 25), this.git1 = N(this.git1, 25), this.git2 = N(this.git2, 25), this.git3 = N(this.git3, 25), this.git4 = N(this.git4, 25), this.git5 = N(this.git5, 25), this.git6 = N(this.git6, 25), this.git7 = N(this.git7, 25)) : (this.git0 = P(this.git0, 25), this.git1 = P(this.git1, 25), this.git2 = P(this.git2, 25), this.git3 = P(this.git3, 25), this.git4 = P(this.git4, 25), this.git5 = P(this.git5, 25), this.git6 = P(this.git6, 25), this.git7 = P(this.git7, 25)), this.gitInv0 = this.gitInv0 || I(this.git0), this.gitInv1 = this.gitInv1 || I(this.git1), this.gitInv2 = this.gitInv2 || I(this.git2), this.gitInv3 = this.gitInv3 || I(this.git3), this.gitInv4 = this.gitInv4 || I(this.git4), this.gitInv5 = this.gitInv5 || I(this.git5), this.gitInv6 = this.gitInv6 || I(this.git6), this.gitInv7 = this.gitInv7 || I(this.git7), this.branchLabelColor = this.branchLabelColor || (this.darkMode ? "black" : this.labelTextColor), this.gitBranchLabel0 = this.gitBranchLabel0 || this.branchLabelColor, this.gitBranchLabel1 = this.gitBranchLabel1 || this.branchLabelColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.branchLabelColor, this.gitBranchLabel3 = this.gitBranchLabel3 || this.branchLabelColor, this.gitBranchLabel4 = this.gitBranchLabel4 || this.branchLabelColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.branchLabelColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.branchLabelColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.branchLabelColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.commitLineColor = this.commitLineColor ?? "#BDBCCC", this.erEdgeLabelBackground = "#16141F", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || V, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || H;
1976
+ }
1977
+ calculate(e) {
1978
+ if (typeof e != "object") {
1979
+ this.updateColors();
1980
+ return;
1981
+ }
1982
+ let t = Object.keys(e);
1983
+ t.forEach((t) => {
1984
+ this[t] = e[t];
1985
+ }), this.updateColors(), t.forEach((t) => {
1986
+ this[t] = e[t];
1987
+ });
1988
+ }
1989
+ }, ht = /* @__PURE__ */ n((e) => {
1990
+ let t = new mt();
1991
+ return t.calculate(e), t;
1992
+ }, "getThemeVariables"), gt = class {
1993
+ static {
1994
+ n(this, "Theme");
1995
+ }
1996
+ constructor() {
1997
+ this.background = "#ffffff", this.primaryColor = "#cccccc", this.mainBkg = "#ffffff", this.noteBkgColor = "#fff5ad", this.noteTextColor = "#28253D", this.THEME_COLOR_LIMIT = 12, this.radius = 12, this.strokeWidth = 2, this.primaryBorderColor = U(this.primaryColor, this.darkMode), this.fontFamily = "\"Recursive Variable\", arial, sans-serif", this.fontSize = "14px", this.nodeBorder = "#28253D", this.stateBorder = "#28253D", this.useGradient = !1, this.gradientStart = "#0042eb", this.gradientStop = "#eb0042", this.dropShadow = "url(#drop-shadow)", this.nodeShadow = !0, this.tertiaryColor = "#ffffff", this.archEdgeColor = "calculated", this.archEdgeArrowColor = "calculated", this.archEdgeWidth = "3", this.archGroupBorderColor = this.primaryBorderColor, this.archGroupBorderWidth = "2px", this.actorBorder = "#28253D", this.noteBorderColor = "#FACC15", this.noteFontWeight = 600, this.borderColorArray = [
1998
+ "#E879F9",
1999
+ "#2DD4BF",
2000
+ "#FB923C",
2001
+ "#22D3EE",
2002
+ "#4ADE80",
2003
+ "#A78BFA",
2004
+ "#F87171",
2005
+ "#FACC15",
2006
+ "#818CF8",
2007
+ "#A3E635 ",
2008
+ "#38BDF8",
2009
+ "#FB7185"
2010
+ ], this.bkgColorArray = [
2011
+ "#FDF4FF",
2012
+ "#F0FDFA",
2013
+ "#FFF7ED",
2014
+ "#ECFEFF",
2015
+ "#F0FDF4",
2016
+ "#F5F3FF",
2017
+ "#FEF2F2",
2018
+ "#FEFCE8",
2019
+ "#EEF2FF",
2020
+ "#F7FEE7",
2021
+ "#F0F9FF",
2022
+ "#FFF1F2"
2023
+ ], this.filterColor = "#000000";
2024
+ }
2025
+ updateColors() {
2026
+ this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#28253D"), this.secondaryColor = this.secondaryColor || F(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || F(this.primaryColor, {
2027
+ h: 180,
2028
+ l: 5
2029
+ }), this.primaryBorderColor = this.primaryBorderColor || U(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || U(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || U(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || U(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#28253D", this.secondaryTextColor = this.secondaryTextColor || I(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || I(this.tertiaryColor), this.lineColor = this.lineColor || I(this.background), this.arrowheadColor = this.arrowheadColor || I(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 ? P(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 || P(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || I(this.lineColor);
2030
+ let e = "#ECECFE", t = "#E9E9F1", n = F(e, {
2031
+ h: 180,
2032
+ l: 5
2033
+ });
2034
+ this.sectionBkgColor = this.sectionBkgColor || n, this.altSectionBkgColor = this.altSectionBkgColor || "white", this.sectionBkgColor = this.sectionBkgColor || t, this.sectionBkgColor2 = this.sectionBkgColor2 || e, this.excludeBkgColor = this.excludeBkgColor || "#eeeeee", this.taskBorderColor = this.taskBorderColor || this.primaryBorderColor, this.taskBkgColor = this.taskBkgColor || e, this.activeTaskBorderColor = this.activeTaskBorderColor || e, this.activeTaskBkgColor = this.activeTaskBkgColor || N(e, 23), this.gridColor = this.gridColor || "lightgrey", this.doneTaskBkgColor = this.doneTaskBkgColor || "lightgrey", this.doneTaskBorderColor = this.doneTaskBorderColor || "grey", this.critBorderColor = this.critBorderColor || "#ff8888", this.critBkgColor = this.critBkgColor || "red", this.todayLineColor = this.todayLineColor || "red", this.taskTextColor = this.taskTextColor || this.textColor, this.vertLineColor = this.vertLineColor || this.primaryBorderColor, this.taskTextOutsideColor = this.taskTextOutsideColor || this.textColor, this.taskTextLightColor = this.taskTextLightColor || this.textColor, this.taskTextColor = this.taskTextColor || this.primaryTextColor, this.taskTextDarkColor = this.taskTextDarkColor || this.textColor, this.taskTextClickableColor = this.taskTextClickableColor || "#003163", this.archEdgeColor = this.lineColor, this.archEdgeArrowColor = this.lineColor, this.personBorder = this.personBorder || this.primaryBorderColor, this.personBkg = this.personBkg || this.mainBkg, this.transitionColor = this.transitionColor || this.lineColor, this.transitionLabelColor = this.transitionLabelColor || this.textColor, this.stateLabelColor = this.stateLabelColor || this.stateBkg || this.primaryTextColor, this.stateBkg = this.stateBkg || this.mainBkg, this.labelBackgroundColor = this.labelBackgroundColor || this.stateBkg, this.compositeBackground = this.compositeBackground || this.background || this.tertiaryColor, this.altBackground = this.altBackground || "#f0f0f0", this.compositeTitleBackground = this.compositeTitleBackground || this.mainBkg, this.compositeBorder = this.compositeBorder || this.nodeBorder, this.innerEndBackground = this.nodeBorder, this.errorBkgColor = this.errorBkgColor || this.tertiaryColor, this.errorTextColor = this.errorTextColor || this.tertiaryTextColor, this.transitionColor = this.transitionColor || this.lineColor, this.specialStateColor = this.lineColor, this.cScale0 = this.cScale0 || "#f4a8ff", this.cScale1 = this.cScale1 || "#46ecd5", this.cScale2 = this.cScale2 || "#ffb86a", this.cScale3 = this.cScale3 || "#dab2ff", this.cScale4 = this.cScale4 || "#7bf1a8", this.cScale5 = this.cScale5 || "#c4b4ff", this.cScale6 = this.cScale6 || "#ffa2a2", this.cScale7 = this.cScale7 || "#ffdf20", this.cScale8 = this.cScale8 || "#a3b3ff", this.cScale9 = this.cScale9 || "#bbf451", this.cScale10 = this.cScale10 || "#74d4ff", this.cScale11 = this.cScale11 || "#ffa1ad";
2035
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || I(this["cScale" + e]);
2036
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] || N(this["cScale" + e], 10) : this["cScalePeer" + e] = this["cScalePeer" + e] || P(this["cScale" + e], 10);
2037
+ this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
2038
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
2039
+ let r = this.darkMode ? -4 : -1;
2040
+ for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || F(this.mainBkg, {
2041
+ h: 180,
2042
+ s: -15,
2043
+ l: r * (5 + e * 3)
2044
+ }), this["surfacePeer" + e] = this["surfacePeer" + e] || F(this.mainBkg, {
2045
+ h: 180,
2046
+ s: -15,
2047
+ l: r * (8 + e * 3)
2048
+ });
2049
+ this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || e, this.fillType1 = this.fillType1 || t, this.fillType2 = this.fillType2 || F(e, { h: 64 }), this.fillType3 = this.fillType3 || F(t, { h: 64 }), this.fillType4 = this.fillType4 || F(e, { h: -64 }), this.fillType5 = this.fillType5 || F(t, { h: -64 }), this.fillType6 = this.fillType6 || F(e, { h: 128 }), this.fillType7 = this.fillType7 || F(t, { h: 128 }), this.pie1 = this.pie1 || e, this.pie2 = this.pie2 || t, this.pie3 = this.pie3 || n, this.pie4 = this.pie4 || F(e, { l: -10 }), this.pie5 = this.pie5 || F(t, { l: -10 }), this.pie6 = this.pie6 || F(n, { l: -10 }), this.pie7 = this.pie7 || F(e, {
2050
+ h: 60,
2051
+ l: -10
2052
+ }), this.pie8 = this.pie8 || F(e, {
2053
+ h: -60,
2054
+ l: -10
2055
+ }), this.pie9 = this.pie9 || F(e, {
2056
+ h: 120,
2057
+ l: 0
2058
+ }), this.pie10 = this.pie10 || F(e, {
2059
+ h: 60,
2060
+ l: -20
2061
+ }), this.pie11 = this.pie11 || F(e, {
2062
+ h: -60,
2063
+ l: -20
2064
+ }), this.pie12 = this.pie12 || F(e, {
2065
+ h: 120,
2066
+ l: -10
2067
+ }), this.pieTitleTextSize = this.pieTitleTextSize || "25px", this.pieTitleTextColor = this.pieTitleTextColor || this.taskTextDarkColor, this.pieSectionTextSize = this.pieSectionTextSize || "17px", this.pieSectionTextColor = this.pieSectionTextColor || this.textColor, this.pieLegendTextSize = this.pieLegendTextSize || "17px", this.pieLegendTextColor = this.pieLegendTextColor || this.taskTextDarkColor, this.pieStrokeColor = this.pieStrokeColor || "black", this.pieStrokeWidth = this.pieStrokeWidth || "2px", this.pieOuterStrokeWidth = this.pieOuterStrokeWidth || "2px", this.pieOuterStrokeColor = this.pieOuterStrokeColor || "black", this.pieOpacity = this.pieOpacity || "0.7", this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.quadrant1Fill = this.quadrant1Fill || e, this.quadrant2Fill = this.quadrant2Fill || F(e, {
2068
+ r: 5,
2069
+ g: 5,
2070
+ b: 5
2071
+ }), this.quadrant3Fill = this.quadrant3Fill || F(e, {
2072
+ r: 10,
2073
+ g: 10,
2074
+ b: 10
2075
+ }), this.quadrant4Fill = this.quadrant4Fill || F(e, {
2076
+ r: 15,
2077
+ g: 15,
2078
+ b: 15
2079
+ }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || F(this.primaryTextColor, {
2080
+ r: -5,
2081
+ g: -5,
2082
+ b: -5
2083
+ }), this.quadrant3TextFill = this.quadrant3TextFill || F(this.primaryTextColor, {
2084
+ r: -10,
2085
+ g: -10,
2086
+ b: -10
2087
+ }), this.quadrant4TextFill = this.quadrant4TextFill || F(this.primaryTextColor, {
2088
+ r: -15,
2089
+ g: -15,
2090
+ b: -15
2091
+ }), this.quadrantPointFill = this.quadrantPointFill || j(this.quadrant1Fill) ? N(this.quadrant1Fill) : P(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 = {
2092
+ backgroundColor: this.xyChart?.backgroundColor || this.background,
2093
+ titleColor: this.xyChart?.titleColor || this.primaryTextColor,
2094
+ xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
2095
+ xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
2096
+ xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
2097
+ xAxisLineColor: this.xyChart?.xAxisLineColor || this.primaryTextColor,
2098
+ yAxisTitleColor: this.xyChart?.yAxisTitleColor || this.primaryTextColor,
2099
+ yAxisLabelColor: this.xyChart?.yAxisLabelColor || this.primaryTextColor,
2100
+ yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
2101
+ yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
2102
+ plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
2103
+ }, this.requirementBackground = this.requirementBackground || e, this.requirementBorderColor = this.requirementBorderColor || this.primaryBorderColor, this.requirementBorderSize = this.requirementBorderSize || "1", this.requirementTextColor = this.requirementTextColor || this.primaryTextColor, this.relationColor = this.relationColor || this.lineColor, this.relationLabelBackground = this.relationLabelBackground || (this.darkMode ? P(this.secondaryColor, 30) : this.secondaryColor), this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.git0 = this.git0 || e, this.git1 = this.git1 || t, this.git2 = this.git2 || n, this.git3 = this.git3 || F(e, { h: -30 }), this.git4 = this.git4 || F(e, { h: -60 }), this.git5 = this.git5 || F(e, { h: -90 }), this.git6 = this.git6 || F(e, { h: 60 }), this.git7 = this.git7 || F(e, { h: 120 }), this.darkMode ? (this.git0 = N(this.git0, 25), this.git1 = N(this.git1, 25), this.git2 = N(this.git2, 25), this.git3 = N(this.git3, 25), this.git4 = N(this.git4, 25), this.git5 = N(this.git5, 25), this.git6 = N(this.git6, 25), this.git7 = N(this.git7, 25)) : (this.git0 = P(this.git0, 25), this.git1 = P(this.git1, 25), this.git2 = P(this.git2, 25), this.git3 = P(this.git3, 25), this.git4 = P(this.git4, 25), this.git5 = P(this.git5, 25), this.git6 = P(this.git6, 25), this.git7 = P(this.git7, 25)), this.gitInv0 = this.gitInv0 || I(this.git0), this.gitInv1 = this.gitInv1 || I(this.git1), this.gitInv2 = this.gitInv2 || I(this.git2), this.gitInv3 = this.gitInv3 || I(this.git3), this.gitInv4 = this.gitInv4 || I(this.git4), this.gitInv5 = this.gitInv5 || I(this.git5), this.gitInv6 = this.gitInv6 || I(this.git6), this.gitInv7 = this.gitInv7 || I(this.git7), this.branchLabelColor = this.branchLabelColor || (this.darkMode ? "black" : this.labelTextColor), this.gitBranchLabel0 = this.gitBranchLabel0 || this.branchLabelColor, this.gitBranchLabel1 = this.gitBranchLabel1 || this.branchLabelColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.branchLabelColor, this.gitBranchLabel3 = this.gitBranchLabel3 || this.branchLabelColor, this.gitBranchLabel4 = this.gitBranchLabel4 || this.branchLabelColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.branchLabelColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.branchLabelColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.branchLabelColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLineColor = this.commitLineColor ?? "#BDBCCC", this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.fontWeight = 600, this.erEdgeLabelBackground = "#FFFFFF", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || V, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || H;
2104
+ }
2105
+ calculate(e) {
2106
+ if (typeof e != "object") {
2107
+ this.updateColors();
2108
+ return;
2109
+ }
2110
+ let t = Object.keys(e);
2111
+ t.forEach((t) => {
2112
+ this[t] = e[t];
2113
+ }), this.updateColors(), t.forEach((t) => {
2114
+ this[t] = e[t];
2115
+ });
2116
+ }
2117
+ }, _t = /* @__PURE__ */ n((e) => {
2118
+ let t = new gt();
2119
+ return t.calculate(e), t;
2120
+ }, "getThemeVariables"), vt = class {
2121
+ static {
2122
+ n(this, "Theme");
2123
+ }
2124
+ constructor() {
2125
+ this.background = "#333", this.primaryColor = "#1f2020", this.secondaryColor = N(this.primaryColor, 16), this.tertiaryColor = F(this.primaryColor, { h: -160 }), this.primaryBorderColor = I(this.background), this.secondaryBorderColor = U(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = U(this.tertiaryColor, this.darkMode), this.primaryTextColor = I(this.primaryColor), this.secondaryTextColor = I(this.secondaryColor), this.tertiaryTextColor = I(this.tertiaryColor), this.mainBkg = "#111113", this.secondBkg = "calculated", this.mainContrastColor = "lightgrey", this.darkTextColor = N(I("#323D47"), 10), this.border1 = "#ccc", this.border2 = k(255, 255, 255, .25), this.arrowheadColor = I(this.background), this.fontFamily = "\"Recursive Variable\", arial, sans-serif", this.fontSize = "14px", this.labelBackground = "#111113", this.textColor = "#ccc", this.THEME_COLOR_LIMIT = 12, this.radius = 12, this.strokeWidth = 2, this.noteBkgColor = this.noteBkgColor ?? "#FEF9C3", this.noteTextColor = this.noteTextColor ?? "#28253D", this.THEME_COLOR_LIMIT = 12, this.fontFamily = "\"Recursive Variable\", arial, sans-serif", this.fontSize = "14px", this.nodeBorder = "#FFFFFF", this.stateBorder = "#FFFFFF", this.useGradient = !1, this.gradientStart = "#0042eb", this.gradientStop = "#eb0042", this.dropShadow = "url(#drop-shadow)", this.nodeShadow = !0, this.archEdgeColor = "calculated", this.archEdgeArrowColor = "calculated", this.archEdgeWidth = "3", this.archGroupBorderColor = this.primaryBorderColor, this.archGroupBorderWidth = "2px", this.clusterBkg = "#1E1A2E", this.clusterBorder = "#BDBCCC", this.noteBorderColor = "#FACC15", this.noteFontWeight = 600, this.borderColorArray = [
2126
+ "#E879F9",
2127
+ "#2DD4BF",
2128
+ "#FB923C",
2129
+ "#22D3EE",
2130
+ "#4ADE80",
2131
+ "#A78BFA",
2132
+ "#F87171",
2133
+ "#FACC15",
2134
+ "#818CF8",
2135
+ "#A3E635 ",
2136
+ "#38BDF8",
2137
+ "#FB7185"
2138
+ ], this.bkgColorArray = [], this.filterColor = "#FFFFFF";
2139
+ }
2140
+ updateColors() {
2141
+ this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#FFFFFF"), this.secondaryColor = this.secondaryColor || F(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || F(this.primaryColor, {
2142
+ h: 180,
2143
+ l: 5
2144
+ }), this.primaryBorderColor = this.primaryBorderColor || U(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || U(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || U(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || U(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#FFFFFF", this.secondaryTextColor = this.secondaryTextColor || I(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || I(this.tertiaryColor), this.lineColor = this.lineColor || I(this.background), this.arrowheadColor = this.arrowheadColor || I(this.background), this.textColor = this.textColor || this.primaryTextColor, this.border2 = this.border2 || this.tertiaryBorderColor, this.nodeBkg = this.nodeBkg || this.primaryColor, this.mainBkg = this.mainBkg || this.primaryColor, this.nodeBorder = this.nodeBorder || this.border1, this.clusterBkg = this.clusterBkg || this.tertiaryColor, this.clusterBorder = this.clusterBorder || this.tertiaryBorderColor, this.defaultLinkColor = this.defaultLinkColor || this.lineColor, this.titleColor = this.titleColor || this.tertiaryTextColor, this.edgeLabelBackground = this.edgeLabelBackground || (this.darkMode ? P(this.secondaryColor, 30) : this.secondaryColor), this.nodeTextColor = this.nodeTextColor || this.primaryTextColor, this.actorBorder = "#FFFFFF", this.signalColor = "#FFFFFF", this.labelBoxBorderColor = "#BDBCCC", this.actorBorder = this.actorBorder || this.primaryBorderColor, this.actorBkg = this.actorBkg || this.mainBkg, this.actorTextColor = this.actorTextColor || this.primaryTextColor, this.actorLineColor = this.actorLineColor || this.actorBorder, this.labelBoxBkgColor = this.labelBoxBkgColor || this.actorBkg, this.signalColor = this.signalColor || this.textColor, this.signalTextColor = this.signalTextColor || this.textColor, this.labelBoxBorderColor = this.labelBoxBorderColor || this.actorBorder, this.labelTextColor = this.labelTextColor || this.actorTextColor, this.loopTextColor = this.loopTextColor || this.actorTextColor, this.activationBorderColor = this.activationBorderColor || P(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || I(this.lineColor), this.rootLabelColor = "#FFFFFF", this.sectionBkgColor = this.sectionBkgColor || this.tertiaryColor, this.altSectionBkgColor = this.altSectionBkgColor || "white", this.sectionBkgColor = this.sectionBkgColor || this.secondaryColor, this.sectionBkgColor2 = this.sectionBkgColor2 || this.primaryColor, this.excludeBkgColor = this.excludeBkgColor || "#eeeeee", this.taskBorderColor = this.taskBorderColor || this.primaryBorderColor, this.taskBkgColor = this.taskBkgColor || this.primaryColor, this.activeTaskBorderColor = this.activeTaskBorderColor || this.primaryColor, this.activeTaskBkgColor = this.activeTaskBkgColor || N(this.primaryColor, 23), this.gridColor = this.gridColor || "lightgrey", this.doneTaskBkgColor = this.doneTaskBkgColor || "lightgrey", this.doneTaskBorderColor = this.doneTaskBorderColor || "grey", this.critBorderColor = this.critBorderColor || "#ff8888", this.critBkgColor = this.critBkgColor || "red", this.todayLineColor = this.todayLineColor || "red", this.taskTextColor = this.taskTextColor || this.textColor, this.vertLineColor = this.vertLineColor || this.primaryBorderColor, this.taskTextOutsideColor = this.taskTextOutsideColor || this.textColor, this.taskTextLightColor = this.taskTextLightColor || this.textColor, this.taskTextColor = this.taskTextColor || this.primaryTextColor, this.taskTextDarkColor = this.taskTextDarkColor || this.textColor, this.taskTextClickableColor = this.taskTextClickableColor || "#003163", this.archEdgeColor = this.lineColor, this.archEdgeArrowColor = this.lineColor, this.personBorder = this.personBorder || this.primaryBorderColor, this.personBkg = this.personBkg || this.mainBkg, this.transitionColor = this.transitionColor || this.lineColor, this.transitionLabelColor = this.transitionLabelColor || this.textColor, this.stateLabelColor = this.stateLabelColor || this.stateBkg || this.primaryTextColor, this.stateBkg = this.stateBkg || this.mainBkg, this.labelBackgroundColor = this.labelBackgroundColor || this.stateBkg, this.compositeBackground = this.compositeBackground || this.background || this.tertiaryColor, this.altBackground = this.altBackground || "#f0f0f0", this.compositeTitleBackground = this.compositeTitleBackground || this.mainBkg, this.compositeBorder = this.compositeBorder || this.nodeBorder, this.innerEndBackground = this.nodeBorder, this.errorBkgColor = this.errorBkgColor || this.tertiaryColor, this.errorTextColor = this.errorTextColor || this.tertiaryTextColor, this.transitionColor = this.transitionColor || this.lineColor, this.specialStateColor = this.lineColor, this.cScale0 = this.cScale0 || "#f4a8ff", this.cScale1 = this.cScale1 || "#46ecd5", this.cScale2 = this.cScale2 || "#ffb86a", this.cScale3 = this.cScale3 || "#dab2ff", this.cScale4 = this.cScale4 || "#7bf1a8", this.cScale5 = this.cScale5 || "#c4b4ff", this.cScale6 = this.cScale6 || "#ffa2a2", this.cScale7 = this.cScale7 || "#ffdf20", this.cScale8 = this.cScale8 || "#a3b3ff", this.cScale9 = this.cScale9 || "#bbf451", this.cScale10 = this.cScale10 || "#74d4ff", this.cScale11 = this.cScale11 || "#ffa1ad";
2145
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || I(this["cScale" + e]);
2146
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] || N(this["cScale" + e], 10) : this["cScalePeer" + e] = this["cScalePeer" + e] || P(this["cScale" + e], 10);
2147
+ this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
2148
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = P(this["cScale" + e], 75);
2149
+ let e = this.darkMode ? -4 : -1;
2150
+ for (let t = 0; t < 5; t++) this["surface" + t] = this["surface" + t] || F(this.mainBkg, {
2151
+ h: 180,
2152
+ s: -15,
2153
+ l: e * (5 + t * 3)
2154
+ }), this["surfacePeer" + t] = this["surfacePeer" + t] || F(this.mainBkg, {
2155
+ h: 180,
2156
+ s: -15,
2157
+ l: e * (8 + t * 3)
2158
+ });
2159
+ this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || this.primaryColor, this.fillType1 = this.fillType1 || this.secondaryColor, this.fillType2 = this.fillType2 || F(this.primaryColor, { h: 64 }), this.fillType3 = this.fillType3 || F(this.secondaryColor, { h: 64 }), this.fillType4 = this.fillType4 || F(this.primaryColor, { h: -64 }), this.fillType5 = this.fillType5 || F(this.secondaryColor, { h: -64 }), this.fillType6 = this.fillType6 || F(this.primaryColor, { h: 128 }), this.fillType7 = this.fillType7 || F(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 || F(this.primaryColor, { l: -10 }), this.pie5 = this.pie5 || F(this.secondaryColor, { l: -10 }), this.pie6 = this.pie6 || F(this.tertiaryColor, { l: -10 }), this.pie7 = this.pie7 || F(this.primaryColor, {
2160
+ h: 60,
2161
+ l: -10
2162
+ }), this.pie8 = this.pie8 || F(this.primaryColor, {
2163
+ h: -60,
2164
+ l: -10
2165
+ }), this.pie9 = this.pie9 || F(this.primaryColor, {
2166
+ h: 120,
2167
+ l: 0
2168
+ }), this.pie10 = this.pie10 || F(this.primaryColor, {
2169
+ h: 60,
2170
+ l: -20
2171
+ }), this.pie11 = this.pie11 || F(this.primaryColor, {
2172
+ h: -60,
2173
+ l: -20
2174
+ }), this.pie12 = this.pie12 || F(this.primaryColor, {
2175
+ h: 120,
2176
+ l: -10
2177
+ }), this.pieTitleTextSize = this.pieTitleTextSize || "25px", this.pieTitleTextColor = this.pieTitleTextColor || this.taskTextDarkColor, this.pieSectionTextSize = this.pieSectionTextSize || "17px", this.pieSectionTextColor = this.pieSectionTextColor || this.textColor, this.pieLegendTextSize = this.pieLegendTextSize || "17px", this.pieLegendTextColor = this.pieLegendTextColor || this.taskTextDarkColor, this.pieStrokeColor = this.pieStrokeColor || "black", this.pieStrokeWidth = this.pieStrokeWidth || "2px", this.pieOuterStrokeWidth = this.pieOuterStrokeWidth || "2px", this.pieOuterStrokeColor = this.pieOuterStrokeColor || "black", this.pieOpacity = this.pieOpacity || "0.7", this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || F(this.primaryColor, {
2178
+ r: 5,
2179
+ g: 5,
2180
+ b: 5
2181
+ }), this.quadrant3Fill = this.quadrant3Fill || F(this.primaryColor, {
2182
+ r: 10,
2183
+ g: 10,
2184
+ b: 10
2185
+ }), this.quadrant4Fill = this.quadrant4Fill || F(this.primaryColor, {
2186
+ r: 15,
2187
+ g: 15,
2188
+ b: 15
2189
+ }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || F(this.primaryTextColor, {
2190
+ r: -5,
2191
+ g: -5,
2192
+ b: -5
2193
+ }), this.quadrant3TextFill = this.quadrant3TextFill || F(this.primaryTextColor, {
2194
+ r: -10,
2195
+ g: -10,
2196
+ b: -10
2197
+ }), this.quadrant4TextFill = this.quadrant4TextFill || F(this.primaryTextColor, {
2198
+ r: -15,
2199
+ g: -15,
2200
+ b: -15
2201
+ }), this.quadrantPointFill = this.quadrantPointFill || j(this.quadrant1Fill) ? N(this.quadrant1Fill) : P(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 = {
2202
+ backgroundColor: this.xyChart?.backgroundColor || this.background,
2203
+ titleColor: this.xyChart?.titleColor || this.primaryTextColor,
2204
+ xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
2205
+ xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
2206
+ xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
2207
+ xAxisLineColor: this.xyChart?.xAxisLineColor || this.primaryTextColor,
2208
+ yAxisTitleColor: this.xyChart?.yAxisTitleColor || this.primaryTextColor,
2209
+ yAxisLabelColor: this.xyChart?.yAxisLabelColor || this.primaryTextColor,
2210
+ yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
2211
+ yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
2212
+ plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
2213
+ }, 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 ? P(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 || F(this.primaryColor, { h: -30 }), this.git4 = this.git4 || F(this.primaryColor, { h: -60 }), this.git5 = this.git5 || F(this.primaryColor, { h: -90 }), this.git6 = this.git6 || F(this.primaryColor, { h: 60 }), this.git7 = this.git7 || F(this.primaryColor, { h: 120 }), this.darkMode ? (this.git0 = N(this.git0, 25), this.git1 = N(this.git1, 25), this.git2 = N(this.git2, 25), this.git3 = N(this.git3, 25), this.git4 = N(this.git4, 25), this.git5 = N(this.git5, 25), this.git6 = N(this.git6, 25), this.git7 = N(this.git7, 25)) : (this.git0 = P(this.git0, 25), this.git1 = P(this.git1, 25), this.git2 = P(this.git2, 25), this.git3 = P(this.git3, 25), this.git4 = P(this.git4, 25), this.git5 = P(this.git5, 25), this.git6 = P(this.git6, 25), this.git7 = P(this.git7, 25)), this.gitInv0 = this.gitInv0 || I(this.git0), this.gitInv1 = this.gitInv1 || I(this.git1), this.gitInv2 = this.gitInv2 || I(this.git2), this.gitInv3 = this.gitInv3 || I(this.git3), this.gitInv4 = this.gitInv4 || I(this.git4), this.gitInv5 = this.gitInv5 || I(this.git5), this.gitInv6 = this.gitInv6 || I(this.git6), this.gitInv7 = this.gitInv7 || I(this.git7), this.branchLabelColor = this.branchLabelColor || (this.darkMode ? "black" : this.labelTextColor), this.gitBranchLabel0 = this.gitBranchLabel0 || this.branchLabelColor, this.gitBranchLabel1 = this.gitBranchLabel1 || this.branchLabelColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.branchLabelColor, this.gitBranchLabel3 = this.gitBranchLabel3 || this.branchLabelColor, this.gitBranchLabel4 = this.gitBranchLabel4 || this.branchLabelColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.branchLabelColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.branchLabelColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.branchLabelColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.commitLineColor = this.commitLineColor ?? "#BDBCCC", this.fontWeight = 600, this.erEdgeLabelBackground = "#16141F", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || V, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || H;
2214
+ }
2215
+ calculate(e) {
2216
+ if (typeof e != "object") {
2217
+ this.updateColors();
2218
+ return;
2219
+ }
2220
+ let t = Object.keys(e);
2221
+ t.forEach((t) => {
2222
+ this[t] = e[t];
2223
+ }), this.updateColors(), t.forEach((t) => {
2224
+ this[t] = e[t];
2225
+ });
2226
+ }
2227
+ }, K = {
2228
+ base: { getThemeVariables: tt },
2229
+ dark: { getThemeVariables: W },
2230
+ default: { getThemeVariables: it },
2231
+ forest: { getThemeVariables: ot },
2232
+ neutral: { getThemeVariables: ct },
2233
+ neo: { getThemeVariables: G },
2234
+ "neo-dark": { getThemeVariables: dt },
2235
+ redux: { getThemeVariables: pt },
2236
+ "redux-dark": { getThemeVariables: ht },
2237
+ "redux-color": { getThemeVariables: _t },
2238
+ "redux-dark-color": { getThemeVariables: /* @__PURE__ */ n((e) => {
2239
+ let t = new vt();
2240
+ return t.calculate(e), t;
2241
+ }, "getThemeVariables") }
2242
+ }, q = {
2243
+ flowchart: {
2244
+ useMaxWidth: !0,
2245
+ titleTopMargin: 25,
2246
+ subGraphTitleMargin: {
2247
+ top: 0,
2248
+ bottom: 0
2249
+ },
2250
+ diagramPadding: 8,
2251
+ htmlLabels: null,
2252
+ nodeSpacing: 50,
2253
+ rankSpacing: 50,
2254
+ curve: "basis",
2255
+ padding: 15,
2256
+ defaultRenderer: "dagre-wrapper",
2257
+ wrappingWidth: 200,
2258
+ inheritDir: !1
2259
+ },
2260
+ sequence: {
2261
+ useMaxWidth: !0,
2262
+ hideUnusedParticipants: !1,
2263
+ activationWidth: 10,
2264
+ diagramMarginX: 50,
2265
+ diagramMarginY: 10,
2266
+ actorMargin: 50,
2267
+ width: 150,
2268
+ height: 65,
2269
+ boxMargin: 10,
2270
+ boxTextMargin: 5,
2271
+ noteMargin: 10,
2272
+ messageMargin: 35,
2273
+ messageAlign: "center",
2274
+ mirrorActors: !0,
2275
+ forceMenus: !1,
2276
+ bottomMarginAdj: 1,
2277
+ rightAngles: !1,
2278
+ showSequenceNumbers: !1,
2279
+ actorFontSize: 14,
2280
+ actorFontFamily: "\"Open Sans\", sans-serif",
2281
+ actorFontWeight: 400,
2282
+ noteFontSize: 14,
2283
+ noteFontFamily: "\"trebuchet ms\", verdana, arial, sans-serif",
2284
+ noteFontWeight: 400,
2285
+ noteAlign: "center",
2286
+ messageFontSize: 16,
2287
+ messageFontFamily: "\"trebuchet ms\", verdana, arial, sans-serif",
2288
+ messageFontWeight: 400,
2289
+ wrap: !1,
2290
+ wrapPadding: 10,
2291
+ labelBoxWidth: 50,
2292
+ labelBoxHeight: 20
2293
+ },
2294
+ gantt: {
2295
+ useMaxWidth: !0,
2296
+ titleTopMargin: 25,
2297
+ barHeight: 20,
2298
+ barGap: 4,
2299
+ topPadding: 50,
2300
+ rightPadding: 75,
2301
+ leftPadding: 75,
2302
+ gridLineStartPadding: 35,
2303
+ fontSize: 11,
2304
+ sectionFontSize: 11,
2305
+ numberSectionStyles: 4,
2306
+ axisFormat: "%Y-%m-%d",
2307
+ topAxis: !1,
2308
+ displayMode: "",
2309
+ weekday: "sunday"
2310
+ },
2311
+ journey: {
2312
+ useMaxWidth: !0,
2313
+ diagramMarginX: 50,
2314
+ diagramMarginY: 10,
2315
+ leftMargin: 150,
2316
+ maxLabelWidth: 360,
2317
+ width: 150,
2318
+ height: 50,
2319
+ boxMargin: 10,
2320
+ boxTextMargin: 5,
2321
+ noteMargin: 10,
2322
+ messageMargin: 35,
2323
+ messageAlign: "center",
2324
+ bottomMarginAdj: 1,
2325
+ rightAngles: !1,
2326
+ taskFontSize: 14,
2327
+ taskFontFamily: "\"Open Sans\", sans-serif",
2328
+ taskMargin: 50,
2329
+ activationWidth: 10,
2330
+ textPlacement: "fo",
2331
+ actorColours: [
2332
+ "#8FBC8F",
2333
+ "#7CFC00",
2334
+ "#00FFFF",
2335
+ "#20B2AA",
2336
+ "#B0E0E6",
2337
+ "#FFFFE0"
2338
+ ],
2339
+ sectionFills: [
2340
+ "#191970",
2341
+ "#8B008B",
2342
+ "#4B0082",
2343
+ "#2F4F4F",
2344
+ "#800000",
2345
+ "#8B4513",
2346
+ "#00008B"
2347
+ ],
2348
+ sectionColours: ["#fff"],
2349
+ titleColor: "",
2350
+ titleFontFamily: "\"trebuchet ms\", verdana, arial, sans-serif",
2351
+ titleFontSize: "4ex"
2352
+ },
2353
+ class: {
2354
+ useMaxWidth: !0,
2355
+ titleTopMargin: 25,
2356
+ arrowMarkerAbsolute: !1,
2357
+ dividerMargin: 10,
2358
+ padding: 5,
2359
+ textHeight: 10,
2360
+ defaultRenderer: "dagre-wrapper",
2361
+ htmlLabels: !1,
2362
+ hideEmptyMembersBox: !1
2363
+ },
2364
+ state: {
2365
+ useMaxWidth: !0,
2366
+ titleTopMargin: 25,
2367
+ dividerMargin: 10,
2368
+ sizeUnit: 5,
2369
+ padding: 8,
2370
+ textHeight: 10,
2371
+ titleShift: -15,
2372
+ noteMargin: 10,
2373
+ forkWidth: 70,
2374
+ forkHeight: 7,
2375
+ miniPadding: 2,
2376
+ fontSizeFactor: 5.02,
2377
+ fontSize: 24,
2378
+ labelHeight: 16,
2379
+ edgeLengthFactor: "20",
2380
+ compositTitleSize: 35,
2381
+ radius: 5,
2382
+ defaultRenderer: "dagre-wrapper"
2383
+ },
2384
+ er: {
2385
+ useMaxWidth: !0,
2386
+ titleTopMargin: 25,
2387
+ diagramPadding: 20,
2388
+ layoutDirection: "TB",
2389
+ minEntityWidth: 100,
2390
+ minEntityHeight: 75,
2391
+ entityPadding: 15,
2392
+ nodeSpacing: 140,
2393
+ rankSpacing: 80,
2394
+ stroke: "gray",
2395
+ fill: "honeydew",
2396
+ fontSize: 12
2397
+ },
2398
+ pie: {
2399
+ useMaxWidth: !0,
2400
+ textPosition: .75
2401
+ },
2402
+ quadrantChart: {
2403
+ useMaxWidth: !0,
2404
+ chartWidth: 500,
2405
+ chartHeight: 500,
2406
+ titleFontSize: 20,
2407
+ titlePadding: 10,
2408
+ quadrantPadding: 5,
2409
+ xAxisLabelPadding: 5,
2410
+ yAxisLabelPadding: 5,
2411
+ xAxisLabelFontSize: 16,
2412
+ yAxisLabelFontSize: 16,
2413
+ quadrantLabelFontSize: 16,
2414
+ quadrantTextTopPadding: 5,
2415
+ pointTextPadding: 5,
2416
+ pointLabelFontSize: 12,
2417
+ pointRadius: 5,
2418
+ xAxisPosition: "top",
2419
+ yAxisPosition: "left",
2420
+ quadrantInternalBorderStrokeWidth: 1,
2421
+ quadrantExternalBorderStrokeWidth: 2
2422
+ },
2423
+ xyChart: {
2424
+ useMaxWidth: !0,
2425
+ width: 700,
2426
+ height: 500,
2427
+ titleFontSize: 20,
2428
+ titlePadding: 10,
2429
+ showDataLabel: !1,
2430
+ showDataLabelOutsideBar: !1,
2431
+ showTitle: !0,
2432
+ xAxis: {
2433
+ $ref: "#/$defs/XYChartAxisConfig",
2434
+ showLabel: !0,
2435
+ labelFontSize: 14,
2436
+ labelPadding: 5,
2437
+ showTitle: !0,
2438
+ titleFontSize: 16,
2439
+ titlePadding: 5,
2440
+ showTick: !0,
2441
+ tickLength: 5,
2442
+ tickWidth: 2,
2443
+ showAxisLine: !0,
2444
+ axisLineWidth: 2
2445
+ },
2446
+ yAxis: {
2447
+ $ref: "#/$defs/XYChartAxisConfig",
2448
+ showLabel: !0,
2449
+ labelFontSize: 14,
2450
+ labelPadding: 5,
2451
+ showTitle: !0,
2452
+ titleFontSize: 16,
2453
+ titlePadding: 5,
2454
+ showTick: !0,
2455
+ tickLength: 5,
2456
+ tickWidth: 2,
2457
+ showAxisLine: !0,
2458
+ axisLineWidth: 2
2459
+ },
2460
+ chartOrientation: "vertical",
2461
+ plotReservedSpacePercent: 50
2462
+ },
2463
+ requirement: {
2464
+ useMaxWidth: !0,
2465
+ rect_fill: "#f9f9f9",
2466
+ text_color: "#333",
2467
+ rect_border_size: "0.5px",
2468
+ rect_border_color: "#bbb",
2469
+ rect_min_width: 200,
2470
+ rect_min_height: 200,
2471
+ fontSize: 14,
2472
+ rect_padding: 10,
2473
+ line_height: 20
2474
+ },
2475
+ mindmap: {
2476
+ useMaxWidth: !0,
2477
+ padding: 10,
2478
+ maxNodeWidth: 200,
2479
+ layoutAlgorithm: "cose-bilkent"
2480
+ },
2481
+ ishikawa: {
2482
+ useMaxWidth: !0,
2483
+ diagramPadding: 20
2484
+ },
2485
+ kanban: {
2486
+ useMaxWidth: !0,
2487
+ padding: 8,
2488
+ sectionWidth: 200,
2489
+ ticketBaseUrl: ""
2490
+ },
2491
+ timeline: {
2492
+ useMaxWidth: !0,
2493
+ diagramMarginX: 50,
2494
+ diagramMarginY: 10,
2495
+ leftMargin: 150,
2496
+ width: 150,
2497
+ height: 50,
2498
+ boxMargin: 10,
2499
+ boxTextMargin: 5,
2500
+ noteMargin: 10,
2501
+ messageMargin: 35,
2502
+ messageAlign: "center",
2503
+ bottomMarginAdj: 1,
2504
+ rightAngles: !1,
2505
+ taskFontSize: 14,
2506
+ taskFontFamily: "\"Open Sans\", sans-serif",
2507
+ taskMargin: 50,
2508
+ activationWidth: 10,
2509
+ textPlacement: "fo",
2510
+ actorColours: [
2511
+ "#8FBC8F",
2512
+ "#7CFC00",
2513
+ "#00FFFF",
2514
+ "#20B2AA",
2515
+ "#B0E0E6",
2516
+ "#FFFFE0"
2517
+ ],
2518
+ sectionFills: [
2519
+ "#191970",
2520
+ "#8B008B",
2521
+ "#4B0082",
2522
+ "#2F4F4F",
2523
+ "#800000",
2524
+ "#8B4513",
2525
+ "#00008B"
2526
+ ],
2527
+ sectionColours: ["#fff"],
2528
+ disableMulticolor: !1
2529
+ },
2530
+ gitGraph: {
2531
+ useMaxWidth: !0,
2532
+ titleTopMargin: 25,
2533
+ diagramPadding: 8,
2534
+ nodeLabel: {
2535
+ width: 75,
2536
+ height: 100,
2537
+ x: -25,
2538
+ y: 0
2539
+ },
2540
+ mainBranchName: "main",
2541
+ mainBranchOrder: 0,
2542
+ showCommitLabel: !0,
2543
+ showBranches: !0,
2544
+ rotateCommitLabel: !0,
2545
+ parallelCommits: !1,
2546
+ arrowMarkerAbsolute: !1
2547
+ },
2548
+ c4: {
2549
+ useMaxWidth: !0,
2550
+ diagramMarginX: 50,
2551
+ diagramMarginY: 10,
2552
+ c4ShapeMargin: 50,
2553
+ c4ShapePadding: 20,
2554
+ width: 216,
2555
+ height: 60,
2556
+ boxMargin: 10,
2557
+ c4ShapeInRow: 4,
2558
+ nextLinePaddingX: 0,
2559
+ c4BoundaryInRow: 2,
2560
+ personFontSize: 14,
2561
+ personFontFamily: "\"Open Sans\", sans-serif",
2562
+ personFontWeight: "normal",
2563
+ external_personFontSize: 14,
2564
+ external_personFontFamily: "\"Open Sans\", sans-serif",
2565
+ external_personFontWeight: "normal",
2566
+ systemFontSize: 14,
2567
+ systemFontFamily: "\"Open Sans\", sans-serif",
2568
+ systemFontWeight: "normal",
2569
+ external_systemFontSize: 14,
2570
+ external_systemFontFamily: "\"Open Sans\", sans-serif",
2571
+ external_systemFontWeight: "normal",
2572
+ system_dbFontSize: 14,
2573
+ system_dbFontFamily: "\"Open Sans\", sans-serif",
2574
+ system_dbFontWeight: "normal",
2575
+ external_system_dbFontSize: 14,
2576
+ external_system_dbFontFamily: "\"Open Sans\", sans-serif",
2577
+ external_system_dbFontWeight: "normal",
2578
+ system_queueFontSize: 14,
2579
+ system_queueFontFamily: "\"Open Sans\", sans-serif",
2580
+ system_queueFontWeight: "normal",
2581
+ external_system_queueFontSize: 14,
2582
+ external_system_queueFontFamily: "\"Open Sans\", sans-serif",
2583
+ external_system_queueFontWeight: "normal",
2584
+ boundaryFontSize: 14,
2585
+ boundaryFontFamily: "\"Open Sans\", sans-serif",
2586
+ boundaryFontWeight: "normal",
2587
+ messageFontSize: 12,
2588
+ messageFontFamily: "\"Open Sans\", sans-serif",
2589
+ messageFontWeight: "normal",
2590
+ containerFontSize: 14,
2591
+ containerFontFamily: "\"Open Sans\", sans-serif",
2592
+ containerFontWeight: "normal",
2593
+ external_containerFontSize: 14,
2594
+ external_containerFontFamily: "\"Open Sans\", sans-serif",
2595
+ external_containerFontWeight: "normal",
2596
+ container_dbFontSize: 14,
2597
+ container_dbFontFamily: "\"Open Sans\", sans-serif",
2598
+ container_dbFontWeight: "normal",
2599
+ external_container_dbFontSize: 14,
2600
+ external_container_dbFontFamily: "\"Open Sans\", sans-serif",
2601
+ external_container_dbFontWeight: "normal",
2602
+ container_queueFontSize: 14,
2603
+ container_queueFontFamily: "\"Open Sans\", sans-serif",
2604
+ container_queueFontWeight: "normal",
2605
+ external_container_queueFontSize: 14,
2606
+ external_container_queueFontFamily: "\"Open Sans\", sans-serif",
2607
+ external_container_queueFontWeight: "normal",
2608
+ componentFontSize: 14,
2609
+ componentFontFamily: "\"Open Sans\", sans-serif",
2610
+ componentFontWeight: "normal",
2611
+ external_componentFontSize: 14,
2612
+ external_componentFontFamily: "\"Open Sans\", sans-serif",
2613
+ external_componentFontWeight: "normal",
2614
+ component_dbFontSize: 14,
2615
+ component_dbFontFamily: "\"Open Sans\", sans-serif",
2616
+ component_dbFontWeight: "normal",
2617
+ external_component_dbFontSize: 14,
2618
+ external_component_dbFontFamily: "\"Open Sans\", sans-serif",
2619
+ external_component_dbFontWeight: "normal",
2620
+ component_queueFontSize: 14,
2621
+ component_queueFontFamily: "\"Open Sans\", sans-serif",
2622
+ component_queueFontWeight: "normal",
2623
+ external_component_queueFontSize: 14,
2624
+ external_component_queueFontFamily: "\"Open Sans\", sans-serif",
2625
+ external_component_queueFontWeight: "normal",
2626
+ wrap: !0,
2627
+ wrapPadding: 10,
2628
+ person_bg_color: "#08427B",
2629
+ person_border_color: "#073B6F",
2630
+ external_person_bg_color: "#686868",
2631
+ external_person_border_color: "#8A8A8A",
2632
+ system_bg_color: "#1168BD",
2633
+ system_border_color: "#3C7FC0",
2634
+ system_db_bg_color: "#1168BD",
2635
+ system_db_border_color: "#3C7FC0",
2636
+ system_queue_bg_color: "#1168BD",
2637
+ system_queue_border_color: "#3C7FC0",
2638
+ external_system_bg_color: "#999999",
2639
+ external_system_border_color: "#8A8A8A",
2640
+ external_system_db_bg_color: "#999999",
2641
+ external_system_db_border_color: "#8A8A8A",
2642
+ external_system_queue_bg_color: "#999999",
2643
+ external_system_queue_border_color: "#8A8A8A",
2644
+ container_bg_color: "#438DD5",
2645
+ container_border_color: "#3C7FC0",
2646
+ container_db_bg_color: "#438DD5",
2647
+ container_db_border_color: "#3C7FC0",
2648
+ container_queue_bg_color: "#438DD5",
2649
+ container_queue_border_color: "#3C7FC0",
2650
+ external_container_bg_color: "#B3B3B3",
2651
+ external_container_border_color: "#A6A6A6",
2652
+ external_container_db_bg_color: "#B3B3B3",
2653
+ external_container_db_border_color: "#A6A6A6",
2654
+ external_container_queue_bg_color: "#B3B3B3",
2655
+ external_container_queue_border_color: "#A6A6A6",
2656
+ component_bg_color: "#85BBF0",
2657
+ component_border_color: "#78A8D8",
2658
+ component_db_bg_color: "#85BBF0",
2659
+ component_db_border_color: "#78A8D8",
2660
+ component_queue_bg_color: "#85BBF0",
2661
+ component_queue_border_color: "#78A8D8",
2662
+ external_component_bg_color: "#CCCCCC",
2663
+ external_component_border_color: "#BFBFBF",
2664
+ external_component_db_bg_color: "#CCCCCC",
2665
+ external_component_db_border_color: "#BFBFBF",
2666
+ external_component_queue_bg_color: "#CCCCCC",
2667
+ external_component_queue_border_color: "#BFBFBF"
2668
+ },
2669
+ sankey: {
2670
+ useMaxWidth: !0,
2671
+ width: 600,
2672
+ height: 400,
2673
+ linkColor: "gradient",
2674
+ nodeAlignment: "justify",
2675
+ showValues: !0,
2676
+ prefix: "",
2677
+ suffix: ""
2678
+ },
2679
+ block: {
2680
+ useMaxWidth: !0,
2681
+ padding: 8
2682
+ },
2683
+ packet: {
2684
+ useMaxWidth: !0,
2685
+ rowHeight: 32,
2686
+ bitWidth: 32,
2687
+ bitsPerRow: 32,
2688
+ showBits: !0,
2689
+ paddingX: 5,
2690
+ paddingY: 5
2691
+ },
2692
+ treeView: {
2693
+ useMaxWidth: !0,
2694
+ rowIndent: 10,
2695
+ paddingX: 5,
2696
+ paddingY: 5,
2697
+ lineThickness: 1
2698
+ },
2699
+ architecture: {
2700
+ useMaxWidth: !0,
2701
+ padding: 40,
2702
+ iconSize: 80,
2703
+ fontSize: 16,
2704
+ randomize: !1
2705
+ },
2706
+ radar: {
2707
+ useMaxWidth: !0,
2708
+ width: 600,
2709
+ height: 600,
2710
+ marginTop: 50,
2711
+ marginRight: 50,
2712
+ marginBottom: 50,
2713
+ marginLeft: 50,
2714
+ axisScaleFactor: 1,
2715
+ axisLabelFactor: 1.05,
2716
+ curveTension: .17
2717
+ },
2718
+ venn: {
2719
+ useMaxWidth: !0,
2720
+ width: 800,
2721
+ height: 450,
2722
+ padding: 8,
2723
+ useDebugLayout: !1
2724
+ },
2725
+ theme: "default",
2726
+ look: "classic",
2727
+ handDrawnSeed: 0,
2728
+ layout: "dagre",
2729
+ maxTextSize: 5e4,
2730
+ maxEdges: 500,
2731
+ darkMode: !1,
2732
+ fontFamily: "\"trebuchet ms\", verdana, arial, sans-serif;",
2733
+ logLevel: 5,
2734
+ securityLevel: "strict",
2735
+ startOnLoad: !0,
2736
+ arrowMarkerAbsolute: !1,
2737
+ secure: [
2738
+ "secure",
2739
+ "securityLevel",
2740
+ "startOnLoad",
2741
+ "maxTextSize",
2742
+ "suppressErrorRendering",
2743
+ "maxEdges"
2744
+ ],
2745
+ legacyMathML: !1,
2746
+ forceLegacyMathML: !1,
2747
+ deterministicIds: !1,
2748
+ fontSize: 16,
2749
+ markdownAutoWrap: !0,
2750
+ suppressErrorRendering: !1
2751
+ }, yt = {
2752
+ ...q,
2753
+ deterministicIDSeed: void 0,
2754
+ elk: {
2755
+ mergeEdges: !1,
2756
+ nodePlacementStrategy: "BRANDES_KOEPF",
2757
+ forceNodeModelOrder: !1,
2758
+ considerModelOrder: "NODES_AND_EDGES"
2759
+ },
2760
+ themeCSS: void 0,
2761
+ themeVariables: K.default.getThemeVariables(),
2762
+ sequence: {
2763
+ ...q.sequence,
2764
+ messageFont: /* @__PURE__ */ n(function() {
2765
+ return {
2766
+ fontFamily: this.messageFontFamily,
2767
+ fontSize: this.messageFontSize,
2768
+ fontWeight: this.messageFontWeight
2769
+ };
2770
+ }, "messageFont"),
2771
+ noteFont: /* @__PURE__ */ n(function() {
2772
+ return {
2773
+ fontFamily: this.noteFontFamily,
2774
+ fontSize: this.noteFontSize,
2775
+ fontWeight: this.noteFontWeight
2776
+ };
2777
+ }, "noteFont"),
2778
+ actorFont: /* @__PURE__ */ n(function() {
2779
+ return {
2780
+ fontFamily: this.actorFontFamily,
2781
+ fontSize: this.actorFontSize,
2782
+ fontWeight: this.actorFontWeight
2783
+ };
2784
+ }, "actorFont")
2785
+ },
2786
+ class: { hideEmptyMembersBox: !1 },
2787
+ gantt: {
2788
+ ...q.gantt,
2789
+ tickInterval: void 0,
2790
+ useWidth: void 0
2791
+ },
2792
+ c4: {
2793
+ ...q.c4,
2794
+ useWidth: void 0,
2795
+ personFont: /* @__PURE__ */ n(function() {
2796
+ return {
2797
+ fontFamily: this.personFontFamily,
2798
+ fontSize: this.personFontSize,
2799
+ fontWeight: this.personFontWeight
2800
+ };
2801
+ }, "personFont"),
2802
+ flowchart: {
2803
+ ...q.flowchart,
2804
+ inheritDir: !1
2805
+ },
2806
+ external_personFont: /* @__PURE__ */ n(function() {
2807
+ return {
2808
+ fontFamily: this.external_personFontFamily,
2809
+ fontSize: this.external_personFontSize,
2810
+ fontWeight: this.external_personFontWeight
2811
+ };
2812
+ }, "external_personFont"),
2813
+ systemFont: /* @__PURE__ */ n(function() {
2814
+ return {
2815
+ fontFamily: this.systemFontFamily,
2816
+ fontSize: this.systemFontSize,
2817
+ fontWeight: this.systemFontWeight
2818
+ };
2819
+ }, "systemFont"),
2820
+ external_systemFont: /* @__PURE__ */ n(function() {
2821
+ return {
2822
+ fontFamily: this.external_systemFontFamily,
2823
+ fontSize: this.external_systemFontSize,
2824
+ fontWeight: this.external_systemFontWeight
2825
+ };
2826
+ }, "external_systemFont"),
2827
+ system_dbFont: /* @__PURE__ */ n(function() {
2828
+ return {
2829
+ fontFamily: this.system_dbFontFamily,
2830
+ fontSize: this.system_dbFontSize,
2831
+ fontWeight: this.system_dbFontWeight
2832
+ };
2833
+ }, "system_dbFont"),
2834
+ external_system_dbFont: /* @__PURE__ */ n(function() {
2835
+ return {
2836
+ fontFamily: this.external_system_dbFontFamily,
2837
+ fontSize: this.external_system_dbFontSize,
2838
+ fontWeight: this.external_system_dbFontWeight
2839
+ };
2840
+ }, "external_system_dbFont"),
2841
+ system_queueFont: /* @__PURE__ */ n(function() {
2842
+ return {
2843
+ fontFamily: this.system_queueFontFamily,
2844
+ fontSize: this.system_queueFontSize,
2845
+ fontWeight: this.system_queueFontWeight
2846
+ };
2847
+ }, "system_queueFont"),
2848
+ external_system_queueFont: /* @__PURE__ */ n(function() {
2849
+ return {
2850
+ fontFamily: this.external_system_queueFontFamily,
2851
+ fontSize: this.external_system_queueFontSize,
2852
+ fontWeight: this.external_system_queueFontWeight
2853
+ };
2854
+ }, "external_system_queueFont"),
2855
+ containerFont: /* @__PURE__ */ n(function() {
2856
+ return {
2857
+ fontFamily: this.containerFontFamily,
2858
+ fontSize: this.containerFontSize,
2859
+ fontWeight: this.containerFontWeight
2860
+ };
2861
+ }, "containerFont"),
2862
+ external_containerFont: /* @__PURE__ */ n(function() {
2863
+ return {
2864
+ fontFamily: this.external_containerFontFamily,
2865
+ fontSize: this.external_containerFontSize,
2866
+ fontWeight: this.external_containerFontWeight
2867
+ };
2868
+ }, "external_containerFont"),
2869
+ container_dbFont: /* @__PURE__ */ n(function() {
2870
+ return {
2871
+ fontFamily: this.container_dbFontFamily,
2872
+ fontSize: this.container_dbFontSize,
2873
+ fontWeight: this.container_dbFontWeight
2874
+ };
2875
+ }, "container_dbFont"),
2876
+ external_container_dbFont: /* @__PURE__ */ n(function() {
2877
+ return {
2878
+ fontFamily: this.external_container_dbFontFamily,
2879
+ fontSize: this.external_container_dbFontSize,
2880
+ fontWeight: this.external_container_dbFontWeight
2881
+ };
2882
+ }, "external_container_dbFont"),
2883
+ container_queueFont: /* @__PURE__ */ n(function() {
2884
+ return {
2885
+ fontFamily: this.container_queueFontFamily,
2886
+ fontSize: this.container_queueFontSize,
2887
+ fontWeight: this.container_queueFontWeight
2888
+ };
2889
+ }, "container_queueFont"),
2890
+ external_container_queueFont: /* @__PURE__ */ n(function() {
2891
+ return {
2892
+ fontFamily: this.external_container_queueFontFamily,
2893
+ fontSize: this.external_container_queueFontSize,
2894
+ fontWeight: this.external_container_queueFontWeight
2895
+ };
2896
+ }, "external_container_queueFont"),
2897
+ componentFont: /* @__PURE__ */ n(function() {
2898
+ return {
2899
+ fontFamily: this.componentFontFamily,
2900
+ fontSize: this.componentFontSize,
2901
+ fontWeight: this.componentFontWeight
2902
+ };
2903
+ }, "componentFont"),
2904
+ external_componentFont: /* @__PURE__ */ n(function() {
2905
+ return {
2906
+ fontFamily: this.external_componentFontFamily,
2907
+ fontSize: this.external_componentFontSize,
2908
+ fontWeight: this.external_componentFontWeight
2909
+ };
2910
+ }, "external_componentFont"),
2911
+ component_dbFont: /* @__PURE__ */ n(function() {
2912
+ return {
2913
+ fontFamily: this.component_dbFontFamily,
2914
+ fontSize: this.component_dbFontSize,
2915
+ fontWeight: this.component_dbFontWeight
2916
+ };
2917
+ }, "component_dbFont"),
2918
+ external_component_dbFont: /* @__PURE__ */ n(function() {
2919
+ return {
2920
+ fontFamily: this.external_component_dbFontFamily,
2921
+ fontSize: this.external_component_dbFontSize,
2922
+ fontWeight: this.external_component_dbFontWeight
2923
+ };
2924
+ }, "external_component_dbFont"),
2925
+ component_queueFont: /* @__PURE__ */ n(function() {
2926
+ return {
2927
+ fontFamily: this.component_queueFontFamily,
2928
+ fontSize: this.component_queueFontSize,
2929
+ fontWeight: this.component_queueFontWeight
2930
+ };
2931
+ }, "component_queueFont"),
2932
+ external_component_queueFont: /* @__PURE__ */ n(function() {
2933
+ return {
2934
+ fontFamily: this.external_component_queueFontFamily,
2935
+ fontSize: this.external_component_queueFontSize,
2936
+ fontWeight: this.external_component_queueFontWeight
2937
+ };
2938
+ }, "external_component_queueFont"),
2939
+ boundaryFont: /* @__PURE__ */ n(function() {
2940
+ return {
2941
+ fontFamily: this.boundaryFontFamily,
2942
+ fontSize: this.boundaryFontSize,
2943
+ fontWeight: this.boundaryFontWeight
2944
+ };
2945
+ }, "boundaryFont"),
2946
+ messageFont: /* @__PURE__ */ n(function() {
2947
+ return {
2948
+ fontFamily: this.messageFontFamily,
2949
+ fontSize: this.messageFontSize,
2950
+ fontWeight: this.messageFontWeight
2951
+ };
2952
+ }, "messageFont")
2953
+ },
2954
+ pie: {
2955
+ ...q.pie,
2956
+ useWidth: 984
2957
+ },
2958
+ xyChart: {
2959
+ ...q.xyChart,
2960
+ useWidth: void 0
2961
+ },
2962
+ requirement: {
2963
+ ...q.requirement,
2964
+ useWidth: void 0
2965
+ },
2966
+ packet: { ...q.packet },
2967
+ treeView: {
2968
+ ...q.treeView,
2969
+ useWidth: void 0
2970
+ },
2971
+ radar: { ...q.radar },
2972
+ ishikawa: { ...q.ishikawa },
2973
+ treemap: {
2974
+ useMaxWidth: !0,
2975
+ padding: 10,
2976
+ diagramPadding: 8,
2977
+ showValues: !0,
2978
+ nodeWidth: 100,
2979
+ nodeHeight: 40,
2980
+ borderWidth: 1,
2981
+ valueFontSize: 12,
2982
+ labelFontSize: 14,
2983
+ valueFormat: ","
2984
+ },
2985
+ venn: { ...q.venn }
2986
+ }, bt = /* @__PURE__ */ n((e, t = "") => Object.keys(e).reduce((n, r) => Array.isArray(e[r]) ? n : typeof e[r] == "object" && e[r] !== null ? [
2987
+ ...n,
2988
+ t + r,
2989
+ ...bt(e[r], "")
2990
+ ] : [...n, t + r], []), "keyify"), xt = new Set(bt(yt, "")), St = yt, Ct = /* @__PURE__ */ n((e) => {
2991
+ if (t.debug("sanitizeDirective called with", e), !(typeof e != "object" || !e)) {
2992
+ if (Array.isArray(e)) {
2993
+ e.forEach((e) => Ct(e));
2994
+ return;
2995
+ }
2996
+ for (let n of Object.keys(e)) {
2997
+ if (t.debug("Checking key", n), n.startsWith("__") || n.includes("proto") || n.includes("constr") || !xt.has(n) || e[n] == null) {
2998
+ t.debug("sanitize deleting key: ", n), delete e[n];
2999
+ continue;
3000
+ }
3001
+ if (typeof e[n] == "object") {
3002
+ t.debug("sanitizing object", n), Ct(e[n]);
3003
+ continue;
3004
+ }
3005
+ for (let r of [
3006
+ "themeCSS",
3007
+ "fontFamily",
3008
+ "altFontFamily"
3009
+ ]) n.includes(r) && (t.debug("sanitizing css option", n), e[n] = wt(e[n]));
3010
+ }
3011
+ if (e.themeVariables) for (let t of Object.keys(e.themeVariables)) {
3012
+ let n = e.themeVariables[t];
3013
+ n?.match && !n.match(/^[\d "#%(),.;A-Za-z]+$/) && (e.themeVariables[t] = "");
3014
+ }
3015
+ t.debug("After sanitization", e);
3016
+ }
3017
+ }, "sanitizeDirective"), wt = /* @__PURE__ */ n((e) => {
3018
+ let t = 0, n = 0;
3019
+ for (let r of e) {
3020
+ if (t < n) return "{ /* ERROR: Unbalanced CSS */ }";
3021
+ r === "{" ? t++ : r === "}" && n++;
3022
+ }
3023
+ return t === n ? e : "{ /* ERROR: Unbalanced CSS */ }";
3024
+ }, "sanitizeCss"), J = Object.freeze(St), Y = /* @__PURE__ */ n((e) => !(e === !1 || [
3025
+ "false",
3026
+ "null",
3027
+ "0"
3028
+ ].includes(String(e).trim().toLowerCase())), "evaluate"), X = B({}, J), Tt, Z = [], Q = B({}, J), $ = /* @__PURE__ */ n((e, t) => {
3029
+ let n = B({}, e), r = {};
3030
+ for (let e of t) Mt(e), r = B(r, e);
3031
+ if (n = B(n, r), r.theme && r.theme in K) {
3032
+ let e = B(B({}, Tt).themeVariables || {}, r.themeVariables);
3033
+ n.theme && n.theme in K && (n.themeVariables = K[n.theme].getThemeVariables(e));
3034
+ }
3035
+ return Q = n, Rt(Q), Q;
3036
+ }, "updateCurrentConfig"), Et = /* @__PURE__ */ n((e) => (X = B({}, J), X = B(X, e), e.theme && K[e.theme] && (X.themeVariables = K[e.theme].getThemeVariables(e.themeVariables)), $(X, Z), X), "setSiteConfig"), Dt = /* @__PURE__ */ n((e) => {
3037
+ Tt = B({}, e);
3038
+ }, "saveConfigFromInitialize"), Ot = /* @__PURE__ */ n((e) => (X = B(X, e), $(X, Z), X), "updateSiteConfig"), kt = /* @__PURE__ */ n(() => B({}, X), "getSiteConfig"), At = /* @__PURE__ */ n((e) => (Rt(e), B(Q, e), jt()), "setConfig"), jt = /* @__PURE__ */ n(() => B({}, Q), "getConfig"), Mt = /* @__PURE__ */ n((e) => {
3039
+ e && (["secure", ...X.secure ?? []].forEach((n) => {
3040
+ Object.hasOwn(e, n) && (t.debug(`Denied attempt to modify a secure key ${n}`, e[n]), delete e[n]);
3041
+ }), Object.keys(e).forEach((t) => {
3042
+ t.startsWith("__") && delete e[t];
3043
+ }), Object.keys(e).forEach((t) => {
3044
+ typeof e[t] == "string" && (e[t].includes("<") || e[t].includes(">") || e[t].includes("url(data:")) && delete e[t], typeof e[t] == "object" && Mt(e[t]);
3045
+ }));
3046
+ }, "sanitize"), Nt = /* @__PURE__ */ n((e) => {
3047
+ Ct(e), e.fontFamily && !e.themeVariables?.fontFamily && (e.themeVariables = {
3048
+ ...e.themeVariables,
3049
+ fontFamily: e.fontFamily
3050
+ }), Z.push(e), $(X, Z);
3051
+ }, "addDirective"), Pt = /* @__PURE__ */ n((e = X) => {
3052
+ Z = [], $(e, Z);
3053
+ }, "reset"), Ft = {
3054
+ LAZY_LOAD_DEPRECATED: "The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead.",
3055
+ FLOWCHART_HTML_LABELS_DEPRECATED: "flowchart.htmlLabels is deprecated. Please use global htmlLabels instead."
3056
+ }, It = {}, Lt = /* @__PURE__ */ n((e) => {
3057
+ It[e] || (t.warn(Ft[e]), It[e] = !0);
3058
+ }, "issueWarning"), Rt = /* @__PURE__ */ n((e) => {
3059
+ e && (e.lazyLoadedDiagrams || e.loadExternalDiagramsAtStartup) && Lt("LAZY_LOAD_DEPRECATED");
3060
+ }, "checkConfig"), zt = /* @__PURE__ */ n(() => {
3061
+ let e = {};
3062
+ Tt && (e = B(e, Tt));
3063
+ for (let t of Z) e = B(e, t);
3064
+ return e;
3065
+ }, "getUserDefinedConfig"), Bt = /* @__PURE__ */ n((e) => (e.flowchart?.htmlLabels != null && Lt("FLOWCHART_HTML_LABELS_DEPRECATED"), Y(e.htmlLabels ?? e.flowchart?.htmlLabels ?? !0)), "getEffectiveHtmlLabels"), Vt = /<br\s*\/?>/gi, Ht = /* @__PURE__ */ n((e) => e ? Qt(e).replace(/\\n/g, "#br#").split("#br#") : [""], "getRows"), Ut = /* @__PURE__ */ (() => {
3066
+ let e = !1;
3067
+ return () => {
3068
+ e ||= (Wt(), !0);
3069
+ };
3070
+ })();
3071
+ function Wt() {
3072
+ let e = "data-temp-href-target";
3073
+ b.addHook("beforeSanitizeAttributes", (t) => {
3074
+ t.tagName === "A" && t.hasAttribute("target") && t.setAttribute(e, t.getAttribute("target") ?? "");
3075
+ }), b.addHook("afterSanitizeAttributes", (t) => {
3076
+ t.tagName === "A" && t.hasAttribute(e) && (t.setAttribute("target", t.getAttribute(e) ?? ""), t.removeAttribute(e), t.getAttribute("target") === "_blank" && t.setAttribute("rel", "noopener"));
3077
+ });
3078
+ }
3079
+ n(Wt, "setupDompurifyHooks");
3080
+ var Gt = /* @__PURE__ */ n((e) => (Ut(), b.sanitize(e)), "removeScript"), Kt = /* @__PURE__ */ n((e, t) => {
3081
+ if (Bt(t)) {
3082
+ let n = t.securityLevel;
3083
+ n === "antiscript" || n === "strict" || n === "sandbox" ? e = Gt(e) : n !== "loose" && (e = Qt(e), e = e.replace(/</g, "&lt;").replace(/>/g, "&gt;"), e = e.replace(/=/g, "&equals;"), e = Zt(e));
3084
+ }
3085
+ return e;
3086
+ }, "sanitizeMore"), qt = /* @__PURE__ */ n((e, t) => e && (e = t.dompurifyConfig ? b.sanitize(Kt(e, t), t.dompurifyConfig).toString() : b.sanitize(Kt(e, t), { FORBID_TAGS: ["style"] }).toString(), e), "sanitizeText"), Jt = /* @__PURE__ */ n((e, t) => typeof e == "string" ? qt(e, t) : e.flat().map((e) => qt(e, t)), "sanitizeTextOrArray"), Yt = /* @__PURE__ */ n((e) => Vt.test(e), "hasBreaks"), Xt = /* @__PURE__ */ n((e) => e.split(Vt), "splitBreaks"), Zt = /* @__PURE__ */ n((e) => e.replace(/#br#/g, "<br/>"), "placeholderToBreak"), Qt = /* @__PURE__ */ n((e) => e.replace(Vt, "#br#"), "breakToPlaceholder"), $t = /* @__PURE__ */ n((e) => {
3087
+ let t = "";
3088
+ return e && (t = window.location.protocol + "//" + window.location.host + window.location.pathname + window.location.search, t = CSS.escape(t)), t;
3089
+ }, "getUrl"), en = /* @__PURE__ */ n(function(...e) {
3090
+ let t = e.filter((e) => !isNaN(e));
3091
+ return Math.max(...t);
3092
+ }, "getMax"), tn = /* @__PURE__ */ n(function(...e) {
3093
+ let t = e.filter((e) => !isNaN(e));
3094
+ return Math.min(...t);
3095
+ }, "getMin"), nn = /* @__PURE__ */ n(function(e) {
3096
+ let t = e.split(/(,)/), n = [];
3097
+ for (let e = 0; e < t.length; e++) {
3098
+ let r = t[e];
3099
+ if (r === "," && e > 0 && e + 1 < t.length) {
3100
+ let i = t[e - 1], a = t[e + 1];
3101
+ an(i, a) && (r = i + "," + a, e++, n.pop());
3102
+ }
3103
+ n.push(on(r));
3104
+ }
3105
+ return n.join("");
3106
+ }, "parseGenericTypes"), rn = /* @__PURE__ */ n((e, t) => Math.max(0, e.split(t).length - 1), "countOccurrence"), an = /* @__PURE__ */ n((e, t) => {
3107
+ let n = rn(e, "~"), r = rn(t, "~");
3108
+ return n === 1 && r === 1;
3109
+ }, "shouldCombineSets"), on = /* @__PURE__ */ n((e) => {
3110
+ let t = rn(e, "~"), n = !1;
3111
+ if (t <= 1) return e;
3112
+ t % 2 != 0 && e.startsWith("~") && (e = e.substring(1), n = !0);
3113
+ let r = [...e], i = r.indexOf("~"), a = r.lastIndexOf("~");
3114
+ for (; i !== -1 && a !== -1 && i !== a;) r[i] = "<", r[a] = ">", i = r.indexOf("~"), a = r.lastIndexOf("~");
3115
+ return n && r.unshift("~"), r.join("");
3116
+ }, "processSet"), sn = /* @__PURE__ */ n(() => window.MathMLElement !== void 0, "isMathMLSupported"), cn = /\$\$(.*)\$\$/g, ln = /* @__PURE__ */ n((e) => (e.match(cn)?.length ?? 0) > 0, "hasKatex"), un = /* @__PURE__ */ n(async (e, t) => {
3117
+ let n = document.createElement("div");
3118
+ n.innerHTML = await fn(e, t), n.id = "katex-temp", n.style.visibility = "hidden", n.style.position = "absolute", n.style.top = "0", document.querySelector("body")?.insertAdjacentElement("beforeend", n);
3119
+ let r = {
3120
+ width: n.clientWidth,
3121
+ height: n.clientHeight
3122
+ };
3123
+ return n.remove(), r;
3124
+ }, "calculateMathMLDimensions"), dn = /* @__PURE__ */ n(async (e, t) => {
3125
+ if (!ln(e)) return e;
3126
+ if (!(sn() || t.legacyMathML || t.forceLegacyMathML)) return e.replace(cn, "MathML is unsupported in this environment.");
3127
+ {
3128
+ let { default: n } = await import("./katex-Du5WiYIy.js"), r = t.forceLegacyMathML || !sn() && t.legacyMathML ? "htmlAndMathml" : "mathml";
3129
+ return e.split(Vt).map((e) => ln(e) ? `<div style="display: flex; align-items: center; justify-content: center; white-space: nowrap;">${e}</div>` : `<div>${e}</div>`).join("").replace(cn, (e, t) => n.renderToString(t, {
3130
+ throwOnError: !0,
3131
+ displayMode: !0,
3132
+ output: r
3133
+ }).replace(/\n/g, " ").replace(/<annotation.*<\/annotation>/g, ""));
3134
+ }
3135
+ return e.replace(cn, "Katex is not supported in @mermaid-js/tiny. Please use the full mermaid library.");
3136
+ }, "renderKatexUnsanitized"), fn = /* @__PURE__ */ n(async (e, t) => qt(await dn(e, t), t), "renderKatexSanitized"), pn = {
3137
+ getRows: Ht,
3138
+ sanitizeText: qt,
3139
+ sanitizeTextOrArray: Jt,
3140
+ hasBreaks: Yt,
3141
+ splitBreaks: Xt,
3142
+ lineBreakRegex: Vt,
3143
+ removeScript: Gt,
3144
+ getUrl: $t,
3145
+ evaluate: Y,
3146
+ getMax: en,
3147
+ getMin: tn
3148
+ }, mn = /* @__PURE__ */ n(function(e, t) {
3149
+ for (let n of t) e.attr(n[0], n[1]);
3150
+ }, "d3Attrs"), hn = /* @__PURE__ */ n(function(e, t, n) {
3151
+ let r = /* @__PURE__ */ new Map();
3152
+ return n ? (r.set("width", "100%"), r.set("style", `max-width: ${t}px;`)) : (r.set("height", e), r.set("width", t)), r;
3153
+ }, "calculateSvgSizeAttrs"), gn = /* @__PURE__ */ n(function(e, t, n, r) {
3154
+ mn(e, hn(t, n, r));
3155
+ }, "configureSvgSize"), _n = /* @__PURE__ */ n(function(e, n, r, i) {
3156
+ let a = n.node().getBBox(), o = a.width, s = a.height;
3157
+ t.info(`SVG bounds: ${o}x${s}`, a);
3158
+ let c = 0, l = 0;
3159
+ t.info(`Graph bounds: ${c}x${l}`, e), c = o + r * 2, l = s + r * 2, t.info(`Calculated bounds: ${c}x${l}`), gn(n, l, c, i);
3160
+ let u = `${a.x - r} ${a.y - r} ${a.width + 2 * r} ${a.height + 2 * r}`;
3161
+ n.attr("viewBox", u);
3162
+ }, "setupGraphViewbox"), vn = {}, yn = /* @__PURE__ */ n((e, n, r, i) => {
3163
+ let a = "";
3164
+ return e in vn && vn[e] ? a = vn[e]({
3165
+ ...r,
3166
+ svgId: i
3167
+ }) : t.warn(`No theme found for ${e}`), ` & {
3168
+ font-family: ${r.fontFamily};
3169
+ font-size: ${r.fontSize};
3170
+ fill: ${r.textColor}
3171
+ }
3172
+ @keyframes edge-animation-frame {
3173
+ from {
3174
+ stroke-dashoffset: 0;
3175
+ }
3176
+ }
3177
+ @keyframes dash {
3178
+ to {
3179
+ stroke-dashoffset: 0;
3180
+ }
3181
+ }
3182
+ & .edge-animation-slow {
3183
+ stroke-dasharray: 9,5 !important;
3184
+ stroke-dashoffset: 900;
3185
+ animation: dash 50s linear infinite;
3186
+ stroke-linecap: round;
3187
+ }
3188
+ & .edge-animation-fast {
3189
+ stroke-dasharray: 9,5 !important;
3190
+ stroke-dashoffset: 900;
3191
+ animation: dash 20s linear infinite;
3192
+ stroke-linecap: round;
3193
+ }
3194
+ /* Classes common for multiple diagrams */
3195
+
3196
+ & .error-icon {
3197
+ fill: ${r.errorBkgColor};
3198
+ }
3199
+ & .error-text {
3200
+ fill: ${r.errorTextColor};
3201
+ stroke: ${r.errorTextColor};
3202
+ }
3203
+
3204
+ & .edge-thickness-normal {
3205
+ stroke-width: ${r.strokeWidth ?? 1}px;
3206
+ }
3207
+ & .edge-thickness-thick {
3208
+ stroke-width: 3.5px
3209
+ }
3210
+ & .edge-pattern-solid {
3211
+ stroke-dasharray: 0;
3212
+ }
3213
+ & .edge-thickness-invisible {
3214
+ stroke-width: 0;
3215
+ fill: none;
3216
+ }
3217
+ & .edge-pattern-dashed{
3218
+ stroke-dasharray: 3;
3219
+ }
3220
+ .edge-pattern-dotted {
3221
+ stroke-dasharray: 2;
3222
+ }
3223
+
3224
+ & .marker {
3225
+ fill: ${r.lineColor};
3226
+ stroke: ${r.lineColor};
3227
+ }
3228
+ & .marker.cross {
3229
+ stroke: ${r.lineColor};
3230
+ }
3231
+
3232
+ & svg {
3233
+ font-family: ${r.fontFamily};
3234
+ font-size: ${r.fontSize};
3235
+ }
3236
+ & p {
3237
+ margin: 0
3238
+ }
3239
+
3240
+ ${a}
3241
+ .node .neo-node {
3242
+ stroke: ${r.nodeBorder};
3243
+ }
3244
+
3245
+ [data-look="neo"].node rect, [data-look="neo"].cluster rect, [data-look="neo"].node polygon {
3246
+ stroke: ${r.useGradient ? "url(" + i + "-gradient)" : r.nodeBorder};
3247
+ filter: ${r.dropShadow ? r.dropShadow.replace("url(#drop-shadow)", `url(${i}-drop-shadow)`) : "none"};
3248
+ }
3249
+
3250
+
3251
+ [data-look="neo"].node path {
3252
+ stroke: ${r.useGradient ? "url(" + i + "-gradient)" : r.nodeBorder};
3253
+ stroke-width: ${r.strokeWidth ?? 1}px;
3254
+ }
3255
+
3256
+ [data-look="neo"].node .outer-path {
3257
+ filter: ${r.dropShadow ? r.dropShadow.replace("url(#drop-shadow)", `url(${i}-drop-shadow)`) : "none"};
3258
+ }
3259
+
3260
+ [data-look="neo"].node .neo-line path {
3261
+ stroke: ${r.nodeBorder};
3262
+ filter: none;
3263
+ }
3264
+
3265
+ [data-look="neo"].node circle{
3266
+ stroke: ${r.useGradient ? "url(" + i + "-gradient)" : r.nodeBorder};
3267
+ filter: ${r.dropShadow ? r.dropShadow.replace("url(#drop-shadow)", `url(${i}-drop-shadow)`) : "none"};
3268
+ }
3269
+
3270
+ [data-look="neo"].node circle .state-start{
3271
+ fill: #000000;
3272
+ }
3273
+
3274
+ [data-look="neo"].icon-shape .icon {
3275
+ fill: ${r.useGradient ? "url(" + i + "-gradient)" : r.nodeBorder};
3276
+ filter: ${r.dropShadow ? r.dropShadow.replace("url(#drop-shadow)", `url(${i}-drop-shadow)`) : "none"};
3277
+ }
3278
+
3279
+ [data-look="neo"].icon-shape .icon-neo path {
3280
+ stroke: ${r.useGradient ? "url(" + i + "-gradient)" : r.nodeBorder};
3281
+ filter: ${r.dropShadow ? r.dropShadow.replace("url(#drop-shadow)", `url(${i}-drop-shadow)`) : "none"};
3282
+ }
3283
+
3284
+ ${n}
3285
+ `;
3286
+ }, "getStyles"), bn = /* @__PURE__ */ n((e, t) => {
3287
+ t !== void 0 && (vn[e] = t);
3288
+ }, "addStylesForDiagram"), xn = yn, Sn = {};
3289
+ r(Sn, {
3290
+ clear: () => Dn,
3291
+ getAccDescription: () => jn,
3292
+ getAccTitle: () => kn,
3293
+ getDiagramTitle: () => Nn,
3294
+ setAccDescription: () => An,
3295
+ setAccTitle: () => On,
3296
+ setDiagramTitle: () => Mn
3297
+ });
3298
+ var Cn = "", wn = "", Tn = "", En = /* @__PURE__ */ n((e) => qt(e, jt()), "sanitizeText"), Dn = /* @__PURE__ */ n(() => {
3299
+ Cn = "", Tn = "", wn = "";
3300
+ }, "clear"), On = /* @__PURE__ */ n((e) => {
3301
+ Cn = En(e).replace(/^\s+/g, "");
3302
+ }, "setAccTitle"), kn = /* @__PURE__ */ n(() => Cn, "getAccTitle"), An = /* @__PURE__ */ n((e) => {
3303
+ Tn = En(e).replace(/\n\s+/g, "\n");
3304
+ }, "setAccDescription"), jn = /* @__PURE__ */ n(() => Tn, "getAccDescription"), Mn = /* @__PURE__ */ n((e) => {
3305
+ wn = En(e);
3306
+ }, "setDiagramTitle"), Nn = /* @__PURE__ */ n(() => wn, "getDiagramTitle"), Pn = t, Fn = e, In = jt, Ln = At, Rn = J, zn = /* @__PURE__ */ n((e) => qt(e, In()), "sanitizeText"), Bn = _n, Vn = /* @__PURE__ */ n(() => Sn, "getCommonDb"), Hn = {}, Un = /* @__PURE__ */ n((e, t, n) => {
3307
+ Hn[e] && Pn.warn(`Diagram with id ${e} already registered. Overwriting.`), Hn[e] = t, n && Qe(e, n), bn(e, t.styles), t.injectUtils?.(Pn, Fn, In, zn, Bn, Vn(), () => {});
3308
+ }, "registerDiagram"), Wn = /* @__PURE__ */ n((e) => {
3309
+ if (e in Hn) return Hn[e];
3310
+ throw new Gn(e);
3311
+ }, "getDiagram"), Gn = class extends Error {
3312
+ static {
3313
+ n(this, "DiagramNotFoundError");
3314
+ }
3315
+ constructor(e) {
3316
+ super(`Diagram ${e} not found.`);
3317
+ }
3318
+ };
3319
+ //#endregion
3320
+ export { M as $, Vt as A, An as B, Nn as C, $t as D, it as E, Pt as F, Et as G, At as H, Ct as I, xn as J, _n as K, qt as L, Un as M, R as N, zt as O, fn as P, N as Q, zn as R, $e as S, kt as T, Ln as U, On as V, Mn as W, Ot as X, K as Y, P as Z, jn as _, Dn as a, In as b, gn as c, St as d, j as et, Ze as f, qe as g, Y as h, un as i, b as it, nn as j, ln as k, J as l, Je as m, Nt as n, O as nt, Sn as o, L as p, Bn as q, B as r, x as rt, pn as s, Xe as t, k as tt, Rn as u, kn as v, Bt as w, Wn as x, jt as y, Dt as z };