file-viewer3 1.0.26 → 2.0.1

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 (359) hide show
  1. package/README.en.md +7 -377
  2. package/README.md +8 -352
  3. package/dist/file-viewer3.css +1 -2
  4. package/dist/index.d.ts +2 -0
  5. package/dist/index.js +2 -0
  6. package/package.json +27 -129
  7. package/dist/components/3MFLoader.js +0 -527
  8. package/dist/components/AMFLoader.js +0 -188
  9. package/dist/components/ArchiveViewer.js +0 -526
  10. package/dist/components/AudioViewer.js +0 -66
  11. package/dist/components/CadViewer.js +0 -9040
  12. package/dist/components/CodeViewer.js +0 -151
  13. package/dist/components/ColladaLoader.js +0 -2282
  14. package/dist/components/DrawingViewer.js +0 -295
  15. package/dist/components/EdaViewer.js +0 -630
  16. package/dist/components/EmailViewer.js +0 -276
  17. package/dist/components/EpubViewer.js +0 -172
  18. package/dist/components/FBXLoader.js +0 -1574
  19. package/dist/components/GLTFLoader.js +0 -1383
  20. package/dist/components/ImageViewer.js +0 -1519
  21. package/dist/components/KMZLoader.js +0 -45
  22. package/dist/components/MarkdownViewer.js +0 -1476
  23. package/dist/components/ModelViewer.js +0 -797
  24. package/dist/components/OBJLoader.js +0 -287
  25. package/dist/components/OfdViewer.js +0 -133
  26. package/dist/components/PCDLoader.js +0 -141
  27. package/dist/components/PLYLoader.js +0 -305
  28. package/dist/components/PdfView.js +0 -27667
  29. package/dist/components/PptxRender.js +0 -11217
  30. package/dist/components/STLLoader.js +0 -83
  31. package/dist/components/TDSLoader.js +0 -228
  32. package/dist/components/TypstViewer.js +0 -1697
  33. package/dist/components/USDLoader.js +0 -2526
  34. package/dist/components/UmdViewer.js +0 -1873
  35. package/dist/components/VRMLLoader.js +0 -6422
  36. package/dist/components/VTKLoader.js +0 -337
  37. package/dist/components/XYZLoader.js +0 -30
  38. package/dist/components/XlsxTable.js +0 -7879
  39. package/dist/components/__vite-browser-external.js +0 -7
  40. package/dist/components/_plugin-vue_export-helper.js +0 -8
  41. package/dist/components/ar-SA-G6X2FPQ2.js +0 -523
  42. package/dist/components/arc.js +0 -79
  43. package/dist/components/architecture-7EHR7CIX.js +0 -3
  44. package/dist/components/architectureDiagram-3BPJPVTR.js +0 -4096
  45. package/dist/components/archive.js +0 -24
  46. package/dist/components/asyncToGenerator.js +0 -29
  47. package/dist/components/audio.js +0 -19
  48. package/dist/components/az-AZ-76LH7QW2.js +0 -523
  49. package/dist/components/bash.js +0 -169
  50. package/dist/components/bg-BG-XCXSNQG7.js +0 -523
  51. package/dist/components/blockDiagram-GPEHLZMM.js +0 -3357
  52. package/dist/components/bn-BD-2XOGV67Q.js +0 -523
  53. package/dist/components/c4Diagram-AAUBKEIU.js +0 -2957
  54. package/dist/components/ca-ES-6MX7JW3Y.js +0 -523
  55. package/dist/components/cad.js +0 -23
  56. package/dist/components/cfb.js +0 -1174
  57. package/dist/components/channel.js +0 -5
  58. package/dist/components/chunk-2J33WTMH.js +0 -26
  59. package/dist/components/chunk-3OPIFGDE.js +0 -4167
  60. package/dist/components/chunk-4BX2VUAB.js +0 -19
  61. package/dist/components/chunk-55IACEB6.js +0 -9
  62. package/dist/components/chunk-5ZQYHXKU.js +0 -669
  63. package/dist/components/chunk-6U3AYISY.js +0 -624
  64. package/dist/components/chunk-727SXJPM.js +0 -3356
  65. package/dist/components/chunk-AGHRB4JF.js +0 -324
  66. package/dist/components/chunk-AQP2D5EJ.js +0 -2055
  67. package/dist/components/chunk-BSJP7CBP.js +0 -83
  68. package/dist/components/chunk-CSCIHK7Q.js +0 -3500
  69. package/dist/components/chunk-EIO257PC.js +0 -1836
  70. package/dist/components/chunk-FMBD7UC4.js +0 -5
  71. package/dist/components/chunk-K2UTITRG.js +0 -17627
  72. package/dist/components/chunk-KSCS5N6A.js +0 -572
  73. package/dist/components/chunk-L5ZTLDWV.js +0 -40
  74. package/dist/components/chunk-LZXEDZCA.js +0 -60
  75. package/dist/components/chunk-ND2GUHAM.js +0 -61
  76. package/dist/components/chunk-NNHCCRGN.js +0 -20425
  77. package/dist/components/chunk-NZK2D7GU.js +0 -68
  78. package/dist/components/chunk-O5CBEL6O.js +0 -1894
  79. package/dist/components/chunk-QZHKN3VN.js +0 -12
  80. package/dist/components/chunk-SRAX5OIU.js +0 -22
  81. package/dist/components/chunk-WU5MYG2G.js +0 -14
  82. package/dist/components/chunk-XPW4576I.js +0 -1146
  83. package/dist/components/chunk-Z3N5DIM6.js +0 -59
  84. package/dist/components/chunk-ZUYEQ4TG.js +0 -22
  85. package/dist/components/chunk.js +0 -23
  86. package/dist/components/classDiagram-4FO5ZUOK.js +0 -29
  87. package/dist/components/classDiagram-v2-Q7XG4LA2.js +0 -29
  88. package/dist/components/compiler.js +0 -2
  89. package/dist/components/core.js +0 -845
  90. package/dist/components/cose-bilkent-S5V4N54A.js +0 -2268
  91. package/dist/components/cpp.js +0 -225
  92. package/dist/components/cs-CZ-2BRQDIVT.js +0 -523
  93. package/dist/components/csharp.js +0 -260
  94. package/dist/components/css.js +0 -140
  95. package/dist/components/cytoscape.esm.js +0 -18114
  96. package/dist/components/da-DK-5WZEPLOC.js +0 -523
  97. package/dist/components/dagre-BM42HDAG.js +0 -325
  98. package/dist/components/dagre.js +0 -1936
  99. package/dist/components/de-DE-XR44H4JA.js +0 -523
  100. package/dist/components/defaultLocale.js +0 -201
  101. package/dist/components/defineProperty.js +0 -50
  102. package/dist/components/diagram-2AECGRRQ.js +0 -229
  103. package/dist/components/diagram-5GNKFQAL.js +0 -108
  104. package/dist/components/diagram-KO2AKTUF.js +0 -443
  105. package/dist/components/diagram-LMA3HP47.js +0 -139
  106. package/dist/components/diagram-OG6HWLK6.js +0 -541
  107. package/dist/components/diff.js +0 -39
  108. package/dist/components/directory-open-01563666.js +0 -26
  109. package/dist/components/directory-open-4ed118d0.js +0 -83
  110. package/dist/components/dist.js +0 -50
  111. package/dist/components/dist2.js +0 -3291
  112. package/dist/components/dist3.js +0 -1593
  113. package/dist/components/documentSearch.js +0 -378
  114. package/dist/components/docx-preview.js +0 -3113
  115. package/dist/components/drawing.js +0 -19
  116. package/dist/components/ebook.js +0 -16
  117. package/dist/components/eda.js +0 -20
  118. package/dist/components/el-GR-BZB4AONW.js +0 -523
  119. package/dist/components/email.js +0 -21
  120. package/dist/components/en-B4ZKOASM.js +0 -3
  121. package/dist/components/erDiagram-TEJ5UH35.js +0 -1719
  122. package/dist/components/es-ES-U4NZUMDT.js +0 -523
  123. package/dist/components/eu-ES-A7QVB2H4.js +0 -523
  124. package/dist/components/eventmodeling-FCH6USID.js +0 -3
  125. package/dist/components/fa-IR-HGAKTJCU.js +0 -523
  126. package/dist/components/fflate.module.js +0 -323
  127. package/dist/components/fi-FI-Z5N7JZ37.js +0 -523
  128. package/dist/components/file-open-002ab408.js +0 -38
  129. package/dist/components/file-open-7c801643.js +0 -24
  130. package/dist/components/file-save-3189631c.js +0 -40
  131. package/dist/components/file-save-745eba88.js +0 -36
  132. package/dist/components/flowDiagram-I6XJVG4X.js +0 -4181
  133. package/dist/components/fr-FR-RHASNOE6.js +0 -523
  134. package/dist/components/ganttDiagram-6RSMTGT7.js +0 -2182
  135. package/dist/components/gitGraph-WXDBUCRP.js +0 -3
  136. package/dist/components/gitGraphDiagram-PVQCEYII.js +0 -788
  137. package/dist/components/gl-ES-HMX3MZ6V.js +0 -523
  138. package/dist/components/global-compiler.js +0 -23
  139. package/dist/components/global-renderer.js +0 -23
  140. package/dist/components/go.js +0 -140
  141. package/dist/components/graphlib.js +0 -1267
  142. package/dist/components/he-IL-6SHJWFNN.js +0 -523
  143. package/dist/components/hi-IN-IWLTKZ5I.js +0 -523
  144. package/dist/components/hu-HU-A5ZG7DT2.js +0 -523
  145. package/dist/components/id-ID-SAP4L64H.js +0 -523
  146. package/dist/components/image-GAAHSSAO.js +0 -3
  147. package/dist/components/image-blob-reduce.esm.js +0 -1429
  148. package/dist/components/image.js +0 -17
  149. package/dist/components/info-J43DQDTF.js +0 -3
  150. package/dist/components/infoDiagram-5YYISTIA.js +0 -26
  151. package/dist/components/ini.js +0 -88
  152. package/dist/components/init.js +0 -15
  153. package/dist/components/ishikawaDiagram-YF4QCWOH.js +0 -718
  154. package/dist/components/it-IT-JPQ66NNP.js +0 -523
  155. package/dist/components/ja-JP-DBVTYXUO.js +0 -523
  156. package/dist/components/java.js +0 -169
  157. package/dist/components/javascript.js +0 -436
  158. package/dist/components/journeyDiagram-JHISSGLW.js +0 -885
  159. package/dist/components/json.js +0 -36
  160. package/dist/components/jszip.min.js +0 -3033
  161. package/dist/components/kaa-6HZHGXH3.js +0 -523
  162. package/dist/components/kab-KAB-ZGHBKWFO.js +0 -523
  163. package/dist/components/kanban-definition-UN3LZRKU.js +0 -986
  164. package/dist/components/katex.js +0 -21979
  165. package/dist/components/kk-KZ-P5N5QNE5.js +0 -523
  166. package/dist/components/km-KH-HSX4SM5Z.js +0 -523
  167. package/dist/components/ko-KR-MTYHY66A.js +0 -523
  168. package/dist/components/ku-TR-6OUDTVRD.js +0 -523
  169. package/dist/components/lib.js +0 -4877
  170. package/dist/components/libarchive.js +0 -360
  171. package/dist/components/linear.js +0 -289
  172. package/dist/components/lt-LT-XHIRWOB4.js +0 -523
  173. package/dist/components/lv-LV-5QDEKY6T.js +0 -523
  174. package/dist/components/markdown.js +0 -181
  175. package/dist/components/md.js +0 -17
  176. package/dist/components/mermaid-parser.core.js +0 -328
  177. package/dist/components/mindmap-definition-RKZ34NQL.js +0 -1016
  178. package/dist/components/model.js +0 -21
  179. package/dist/components/mp4.js +0 -12
  180. package/dist/components/mr-IN-CRQNXWMA.js +0 -523
  181. package/dist/components/my-MM-5M5IBNSE.js +0 -523
  182. package/dist/components/nb-NO-T6EIAALU.js +0 -523
  183. package/dist/components/nestedRender.js +0 -158
  184. package/dist/components/nl-NL-IS3SIHDZ.js +0 -523
  185. package/dist/components/nn-NO-6E72VCQL.js +0 -523
  186. package/dist/components/objectSpread2.js +0 -29
  187. package/dist/components/objectWithoutProperties.js +0 -28
  188. package/dist/components/oc-FR-POXYY2M6.js +0 -523
  189. package/dist/components/ofd.js +0 -5261
  190. package/dist/components/ofd2.js +0 -16
  191. package/dist/components/ordinal.js +0 -65
  192. package/dist/components/pa-IN-N4M65BXN.js +0 -523
  193. package/dist/components/packet-YPE3B663.js +0 -3
  194. package/dist/components/pdf.js +0 -24
  195. package/dist/components/percentages-BXMCSKIN.js +0 -3
  196. package/dist/components/php.js +0 -294
  197. package/dist/components/pica.js +0 -1009
  198. package/dist/components/pie-LRSECV5Y.js +0 -3
  199. package/dist/components/pie.js +0 -47
  200. package/dist/components/pieDiagram-4H26LBE5.js +0 -130
  201. package/dist/components/pl-PL-T2D74RX3.js +0 -523
  202. package/dist/components/postal-mime.js +0 -3146
  203. package/dist/components/pptx.js +0 -15
  204. package/dist/components/printLayout.js +0 -42
  205. package/dist/components/prod.js +0 -21770
  206. package/dist/components/pt-BR-5N22H2LF.js +0 -523
  207. package/dist/components/pt-PT-UZXXM6DQ.js +0 -523
  208. package/dist/components/python.js +0 -238
  209. package/dist/components/quadrantDiagram-W4KKPZXB.js +0 -1988
  210. package/dist/components/radar-GUYGQ44K.js +0 -3
  211. package/dist/components/renderer.js +0 -2
  212. package/dist/components/requirementDiagram-4Y6WPE33.js +0 -2230
  213. package/dist/components/ro-RO-JPDTUUEW.js +0 -523
  214. package/dist/components/rough.esm.js +0 -1355
  215. package/dist/components/roundRect.js +0 -90
  216. package/dist/components/ru-RU-B4JR7IUQ.js +0 -523
  217. package/dist/components/rust.js +0 -169
  218. package/dist/components/sankeyDiagram-5OEKKPKP.js +0 -972
  219. package/dist/components/sequenceDiagram-3UESZ5HK.js +0 -4255
  220. package/dist/components/shared.js +0 -175
  221. package/dist/components/shared2.js +0 -4
  222. package/dist/components/si-LK-N5RQ5JYF.js +0 -523
  223. package/dist/components/sk-SK-C5VTKIMK.js +0 -523
  224. package/dist/components/sl-SI-NN7IZMDC.js +0 -523
  225. package/dist/components/sourceLoading.js +0 -134
  226. package/dist/components/sql.js +0 -118
  227. package/dist/components/src.js +0 -2664
  228. package/dist/components/src2.js +0 -10722
  229. package/dist/components/stateDiagram-AJRCARHV.js +0 -217
  230. package/dist/components/stateDiagram-v2-BHNVJYJU.js +0 -27
  231. package/dist/components/subset-shared.chunk.js +0 -3
  232. package/dist/components/subset-worker.chunk.js +0 -21
  233. package/dist/components/sv-SE-XGPEYMSR.js +0 -523
  234. package/dist/components/ta-IN-2NMHFXQM.js +0 -523
  235. package/dist/components/text.js +0 -20
  236. package/dist/components/th-TH-HPSO5L25.js +0 -523
  237. package/dist/components/three.module.js +0 -13134
  238. package/dist/components/time.js +0 -910
  239. package/dist/components/timeline-definition-PNZ67QCA.js +0 -1084
  240. package/dist/components/tr-TR-DEFEU3FU.js +0 -523
  241. package/dist/components/treeView-BLDUP644.js +0 -3
  242. package/dist/components/treemap-LRROVOQU.js +0 -3
  243. package/dist/components/typescript.js +0 -521
  244. package/dist/components/typst.js +0 -25
  245. package/dist/components/uk-UA-QMV73CPH.js +0 -523
  246. package/dist/components/umd.js +0 -16
  247. package/dist/components/use.js +0 -422
  248. package/dist/components/util.js +0 -49
  249. package/dist/components/vennDiagram-CIIHVFJN.js +0 -1880
  250. package/dist/components/vi-VN-M7AON7JQ.js +0 -523
  251. package/dist/components/viewerZoom.js +0 -92
  252. package/dist/components/wardley-L42UT6IY.js +0 -3
  253. package/dist/components/wardleyDiagram-YWT4CUSO.js +0 -656
  254. package/dist/components/wasm-pack-shim.js +0 -1711
  255. package/dist/components/wasm-pack-shim2.js +0 -934
  256. package/dist/components/wasm.js +0 -97
  257. package/dist/components/word.js +0 -3055
  258. package/dist/components/worker-ref.js +0 -16
  259. package/dist/components/xlsx.js +0 -21
  260. package/dist/components/xml.js +0 -166
  261. package/dist/components/xychartDiagram-2RQKCTM6.js +0 -2015
  262. package/dist/components/yaml.js +0 -144
  263. package/dist/components/zh-CN-LNUGB5OW.js +0 -523
  264. package/dist/components/zh-HK-E62DVLB3.js +0 -523
  265. package/dist/components/zh-TW-RAJ6MFWO.js +0 -523
  266. package/dist/index.mjs +0 -3293
  267. package/dist/src/App.vue.d.ts +0 -3
  268. package/dist/src/compare/CompareApp.vue.d.ts +0 -3
  269. package/dist/src/compare/main.d.ts +0 -0
  270. package/dist/src/compare/useSynchronizedScroll.d.ts +0 -7
  271. package/dist/src/components/HelloWorld.vue.d.ts +0 -3
  272. package/dist/src/components/utils.d.ts +0 -4
  273. package/dist/src/main.d.ts +0 -0
  274. package/dist/src/package/common/printCapability.d.ts +0 -27
  275. package/dist/src/package/common/printLayout.d.ts +0 -16
  276. package/dist/src/package/common/sourceLoading.d.ts +0 -10
  277. package/dist/src/package/common/type.d.ts +0 -544
  278. package/dist/src/package/common/util.d.ts +0 -5
  279. package/dist/src/package/common/worker-ref.d.ts +0 -12
  280. package/dist/src/package/components/FileViewer/FileViewer.vue.d.ts +0 -75
  281. package/dist/src/package/components/FileViewer/exportDocumentTemplate.d.ts +0 -9
  282. package/dist/src/package/components/FileViewer/hooks/useViewerDocumentFeatures.d.ts +0 -29
  283. package/dist/src/package/components/FileViewer/hooks/useViewerExport.d.ts +0 -21
  284. package/dist/src/package/components/FileViewer/hooks/useViewerWatermark.d.ts +0 -8
  285. package/dist/src/package/components/FileViewer/hooks/useViewerZoom.d.ts +0 -34
  286. package/dist/src/package/components/FileViewer/index.d.ts +0 -2
  287. package/dist/src/package/components/FileViewer/util.d.ts +0 -3
  288. package/dist/src/package/index.d.ts +0 -22
  289. package/dist/src/package/use/documentLocation.d.ts +0 -15
  290. package/dist/src/package/use/documentSearch.d.ts +0 -234
  291. package/dist/src/package/use/index.d.ts +0 -5
  292. package/dist/src/package/use/loading.d.ts +0 -33
  293. package/dist/src/package/use/viewerZoom.d.ts +0 -42
  294. package/dist/src/package/use/worker.d.ts +0 -24
  295. package/dist/src/package/vendors/archive/ArchiveViewer.vue.d.ts +0 -9
  296. package/dist/src/package/vendors/archive/cache.d.ts +0 -10
  297. package/dist/src/package/vendors/archive/fallback.d.ts +0 -9
  298. package/dist/src/package/vendors/archive/index.d.ts +0 -3
  299. package/dist/src/package/vendors/archive/shared.d.ts +0 -24
  300. package/dist/src/package/vendors/audio/AudioViewer.vue.d.ts +0 -7
  301. package/dist/src/package/vendors/audio/index.d.ts +0 -7
  302. package/dist/src/package/vendors/cad/CadViewer.vue.d.ts +0 -9
  303. package/dist/src/package/vendors/cad/index.d.ts +0 -8
  304. package/dist/src/package/vendors/drawing/DrawingViewer.vue.d.ts +0 -15
  305. package/dist/src/package/vendors/drawing/index.d.ts +0 -7
  306. package/dist/src/package/vendors/ebook/EpubViewer.vue.d.ts +0 -6
  307. package/dist/src/package/vendors/ebook/index.d.ts +0 -7
  308. package/dist/src/package/vendors/eda/EdaViewer.vue.d.ts +0 -8
  309. package/dist/src/package/vendors/eda/index.d.ts +0 -2
  310. package/dist/src/package/vendors/eda/parser.d.ts +0 -77
  311. package/dist/src/package/vendors/email/EmailViewer.vue.d.ts +0 -10
  312. package/dist/src/package/vendors/email/index.d.ts +0 -2
  313. package/dist/src/package/vendors/image/ImageViewer.vue.d.ts +0 -6
  314. package/dist/src/package/vendors/image/index.d.ts +0 -4
  315. package/dist/src/package/vendors/md/MarkdownViewer.vue.d.ts +0 -6
  316. package/dist/src/package/vendors/md/index.d.ts +0 -4
  317. package/dist/src/package/vendors/model/ModelViewer.vue.d.ts +0 -8
  318. package/dist/src/package/vendors/model/index.d.ts +0 -3
  319. package/dist/src/package/vendors/model/shared.d.ts +0 -1
  320. package/dist/src/package/vendors/mp4/index.d.ts +0 -4
  321. package/dist/src/package/vendors/nestedRender.d.ts +0 -10
  322. package/dist/src/package/vendors/ofd/OfdViewer.vue.d.ts +0 -6
  323. package/dist/src/package/vendors/ofd/index.d.ts +0 -7
  324. package/dist/src/package/vendors/pdf/PdfView.vue.d.ts +0 -10
  325. package/dist/src/package/vendors/pdf/index.d.ts +0 -2
  326. package/dist/src/package/vendors/pdf/worker/index.d.ts +0 -4
  327. package/dist/src/package/vendors/pdf/worker/pdf.worker.d.ts +0 -0
  328. package/dist/src/package/vendors/pptx/PptxRender.vue.d.ts +0 -9
  329. package/dist/src/package/vendors/pptx/index.d.ts +0 -6
  330. package/dist/src/package/vendors/pptx/options.d.ts +0 -39
  331. package/dist/src/package/vendors/pptx/support/chart.d.ts +0 -4
  332. package/dist/src/package/vendors/pptx/worker/index.d.ts +0 -4
  333. package/dist/src/package/vendors/renders.d.ts +0 -3
  334. package/dist/src/package/vendors/text/CodeViewer.vue.d.ts +0 -7
  335. package/dist/src/package/vendors/text/index.d.ts +0 -10
  336. package/dist/src/package/vendors/typst/TypstViewer.vue.d.ts +0 -15
  337. package/dist/src/package/vendors/typst/index.d.ts +0 -8
  338. package/dist/src/package/vendors/umd/UmdViewer.vue.d.ts +0 -6
  339. package/dist/src/package/vendors/umd/index.d.ts +0 -7
  340. package/dist/src/package/vendors/umd/parser.d.ts +0 -30
  341. package/dist/src/package/vendors/word/doc.d.ts +0 -5
  342. package/dist/src/package/vendors/word/docx.d.ts +0 -5
  343. package/dist/src/package/vendors/word/docx.worker.d.ts +0 -1
  344. package/dist/src/package/vendors/word/index.d.ts +0 -3
  345. package/dist/src/package/vendors/xlsx/XlsxTable.state.d.ts +0 -80
  346. package/dist/src/package/vendors/xlsx/XlsxTable.view.d.ts +0 -25
  347. package/dist/src/package/vendors/xlsx/XlsxTable.vue.d.ts +0 -6
  348. package/dist/src/package/vendors/xlsx/index.d.ts +0 -6
  349. package/dist/src/package/vendors/xlsx/util.d.ts +0 -3
  350. package/dist/src/package/vendors/xlsx/worker/index.d.ts +0 -4
  351. package/dist/src/package/vendors/xlsx/worker/sheetjs/SheetJsModel.d.ts +0 -73
  352. package/dist/src/package/vendors/xlsx/worker/sheetjs/color.d.ts +0 -2
  353. package/dist/src/package/vendors/xlsx/worker/sheetjs/index.d.ts +0 -4
  354. package/dist/src/package/vendors/xlsx/worker/sheetjs/sheet.worker.d.ts +0 -1
  355. package/dist/style.css +0 -1
  356. package/dist/wasm/cad/dwfv-render.wasm +0 -0
  357. package/dist/wasm/cad/dwg-worker.js +0 -24
  358. package/dist/wasm/cad/libredwg-web.js +0 -15
  359. package/dist/wasm/cad/libredwg-web.wasm +0 -0
@@ -1,3500 +0,0 @@
1
- import { n as e, t } from "./objectSpread2.js";
2
- import { n, t as r } from "./asyncToGenerator.js";
3
- import { i, n as a, r as o, t as s } from "./chunk-AGHRB4JF.js";
4
- //#region node_modules/.pnpm/khroma@2.1.0/node_modules/khroma/dist/utils/channel.js
5
- var c = {
6
- min: {
7
- r: 0,
8
- g: 0,
9
- b: 0,
10
- s: 0,
11
- l: 0,
12
- a: 0
13
- },
14
- max: {
15
- r: 255,
16
- g: 255,
17
- b: 255,
18
- h: 360,
19
- s: 100,
20
- l: 100,
21
- a: 1
22
- },
23
- clamp: {
24
- r: (e) => e >= 255 ? 255 : e < 0 ? 0 : e,
25
- g: (e) => e >= 255 ? 255 : e < 0 ? 0 : e,
26
- b: (e) => e >= 255 ? 255 : e < 0 ? 0 : e,
27
- h: (e) => e % 360,
28
- s: (e) => e >= 100 ? 100 : e < 0 ? 0 : e,
29
- l: (e) => e >= 100 ? 100 : e < 0 ? 0 : e,
30
- a: (e) => e >= 1 ? 1 : e < 0 ? 0 : e
31
- },
32
- toLinear: (e) => {
33
- let t = e / 255;
34
- return e > .03928 ? Math.pow((t + .055) / 1.055, 2.4) : t / 12.92;
35
- },
36
- 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),
37
- hsl2rgb: ({ h: e, s: t, l: n }, r) => {
38
- if (!t) return n * 2.55;
39
- e /= 360, t /= 100, n /= 100;
40
- let i = n < .5 ? n * (1 + t) : n + t - n * t, a = 2 * n - i;
41
- switch (r) {
42
- case "r": return c.hue2rgb(a, i, e + 1 / 3) * 255;
43
- case "g": return c.hue2rgb(a, i, e) * 255;
44
- case "b": return c.hue2rgb(a, i, e - 1 / 3) * 255;
45
- }
46
- },
47
- rgb2hsl: ({ r: e, g: t, b: n }, r) => {
48
- e /= 255, t /= 255, n /= 255;
49
- let i = Math.max(e, t, n), a = Math.min(e, t, n), o = (i + a) / 2;
50
- if (r === "l") return o * 100;
51
- if (i === a) return 0;
52
- let s = i - a, c = o > .5 ? s / (2 - i - a) : s / (i + a);
53
- if (r === "s") return c * 100;
54
- switch (i) {
55
- case e: return ((t - n) / s + (t < n ? 6 : 0)) * 60;
56
- case t: return ((n - e) / s + 2) * 60;
57
- case n: return ((e - t) / s + 4) * 60;
58
- default: return -1;
59
- }
60
- }
61
- }, l = {
62
- channel: c,
63
- lang: {
64
- clamp: (e, t, n) => t > n ? Math.min(t, Math.max(n, e)) : Math.min(n, Math.max(t, e)),
65
- round: (e) => Math.round(e * 1e10) / 1e10
66
- },
67
- unit: { dec2hex: (e) => {
68
- let t = Math.round(e).toString(16);
69
- return t.length > 1 ? t : `0${t}`;
70
- } }
71
- }, u = {};
72
- for (let e = 0; e <= 255; e++) u[e] = l.unit.dec2hex(e);
73
- var d = {
74
- ALL: 0,
75
- RGB: 1,
76
- HSL: 2
77
- }, f = class {
78
- constructor() {
79
- this.type = d.ALL;
80
- }
81
- get() {
82
- return this.type;
83
- }
84
- set(e) {
85
- if (this.type && this.type !== e) throw Error("Cannot change both RGB and HSL channels at the same time");
86
- this.type = e;
87
- }
88
- reset() {
89
- this.type = d.ALL;
90
- }
91
- is(e) {
92
- return this.type === e;
93
- }
94
- }, p = new class {
95
- constructor(e, t) {
96
- this.color = t, this.changed = !1, this.data = e, this.type = new f();
97
- }
98
- set(e, t) {
99
- return this.color = t, this.changed = !1, this.data = e, this.type.type = d.ALL, this;
100
- }
101
- _ensureHSL() {
102
- let e = this.data, { h: t, s: n, l: r } = e;
103
- t === void 0 && (e.h = l.channel.rgb2hsl(e, "h")), n === void 0 && (e.s = l.channel.rgb2hsl(e, "s")), r === void 0 && (e.l = l.channel.rgb2hsl(e, "l"));
104
- }
105
- _ensureRGB() {
106
- let e = this.data, { r: t, g: n, b: r } = e;
107
- t === void 0 && (e.r = l.channel.hsl2rgb(e, "r")), n === void 0 && (e.g = l.channel.hsl2rgb(e, "g")), r === void 0 && (e.b = l.channel.hsl2rgb(e, "b"));
108
- }
109
- get r() {
110
- let e = this.data, t = e.r;
111
- return !this.type.is(d.HSL) && t !== void 0 ? t : (this._ensureHSL(), l.channel.hsl2rgb(e, "r"));
112
- }
113
- get g() {
114
- let e = this.data, t = e.g;
115
- return !this.type.is(d.HSL) && t !== void 0 ? t : (this._ensureHSL(), l.channel.hsl2rgb(e, "g"));
116
- }
117
- get b() {
118
- let e = this.data, t = e.b;
119
- return !this.type.is(d.HSL) && t !== void 0 ? t : (this._ensureHSL(), l.channel.hsl2rgb(e, "b"));
120
- }
121
- get h() {
122
- let e = this.data, t = e.h;
123
- return !this.type.is(d.RGB) && t !== void 0 ? t : (this._ensureRGB(), l.channel.rgb2hsl(e, "h"));
124
- }
125
- get s() {
126
- let e = this.data, t = e.s;
127
- return !this.type.is(d.RGB) && t !== void 0 ? t : (this._ensureRGB(), l.channel.rgb2hsl(e, "s"));
128
- }
129
- get l() {
130
- let e = this.data, t = e.l;
131
- return !this.type.is(d.RGB) && t !== void 0 ? t : (this._ensureRGB(), l.channel.rgb2hsl(e, "l"));
132
- }
133
- get a() {
134
- return this.data.a;
135
- }
136
- set r(e) {
137
- this.type.set(d.RGB), this.changed = !0, this.data.r = e;
138
- }
139
- set g(e) {
140
- this.type.set(d.RGB), this.changed = !0, this.data.g = e;
141
- }
142
- set b(e) {
143
- this.type.set(d.RGB), this.changed = !0, this.data.b = e;
144
- }
145
- set h(e) {
146
- this.type.set(d.HSL), this.changed = !0, this.data.h = e;
147
- }
148
- set s(e) {
149
- this.type.set(d.HSL), this.changed = !0, this.data.s = e;
150
- }
151
- set l(e) {
152
- this.type.set(d.HSL), this.changed = !0, this.data.l = e;
153
- }
154
- set a(e) {
155
- this.changed = !0, this.data.a = e;
156
- }
157
- }({
158
- r: 0,
159
- g: 0,
160
- b: 0,
161
- a: 0
162
- }, "transparent"), m = {
163
- re: /^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,
164
- parse: (e) => {
165
- if (e.charCodeAt(0) !== 35) return;
166
- let t = e.match(m.re);
167
- if (!t) return;
168
- 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;
169
- return p.set({
170
- r: (r >> c * (l + 3) & u) * s,
171
- g: (r >> c * (l + 2) & u) * s,
172
- b: (r >> c * (l + 1) & u) * s,
173
- a: a ? (r & u) * s / 255 : 1
174
- }, e);
175
- },
176
- stringify: (e) => {
177
- let { r: t, g: n, b: r, a: i } = e;
178
- return i < 1 ? `#${u[Math.round(t)]}${u[Math.round(n)]}${u[Math.round(r)]}${u[Math.round(i * 255)]}` : `#${u[Math.round(t)]}${u[Math.round(n)]}${u[Math.round(r)]}`;
179
- }
180
- }, h = {
181
- 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,
182
- hueRe: /^(.+?)(deg|grad|rad|turn)$/i,
183
- _hue2deg: (e) => {
184
- let t = e.match(h.hueRe);
185
- if (t) {
186
- let [, e, n] = t;
187
- switch (n) {
188
- case "grad": return l.channel.clamp.h(parseFloat(e) * .9);
189
- case "rad": return l.channel.clamp.h(parseFloat(e) * 180 / Math.PI);
190
- case "turn": return l.channel.clamp.h(parseFloat(e) * 360);
191
- }
192
- }
193
- return l.channel.clamp.h(parseFloat(e));
194
- },
195
- parse: (e) => {
196
- let t = e.charCodeAt(0);
197
- if (t !== 104 && t !== 72) return;
198
- let n = e.match(h.re);
199
- if (!n) return;
200
- let [, r, i, a, o, s] = n;
201
- return p.set({
202
- h: h._hue2deg(r),
203
- s: l.channel.clamp.s(parseFloat(i)),
204
- l: l.channel.clamp.l(parseFloat(a)),
205
- a: o ? l.channel.clamp.a(s ? parseFloat(o) / 100 : parseFloat(o)) : 1
206
- }, e);
207
- },
208
- stringify: (e) => {
209
- let { h: t, s: n, l: r, a: i } = e;
210
- return i < 1 ? `hsla(${l.lang.round(t)}, ${l.lang.round(n)}%, ${l.lang.round(r)}%, ${i})` : `hsl(${l.lang.round(t)}, ${l.lang.round(n)}%, ${l.lang.round(r)}%)`;
211
- }
212
- }, g = {
213
- colors: {
214
- aliceblue: "#f0f8ff",
215
- antiquewhite: "#faebd7",
216
- aqua: "#00ffff",
217
- aquamarine: "#7fffd4",
218
- azure: "#f0ffff",
219
- beige: "#f5f5dc",
220
- bisque: "#ffe4c4",
221
- black: "#000000",
222
- blanchedalmond: "#ffebcd",
223
- blue: "#0000ff",
224
- blueviolet: "#8a2be2",
225
- brown: "#a52a2a",
226
- burlywood: "#deb887",
227
- cadetblue: "#5f9ea0",
228
- chartreuse: "#7fff00",
229
- chocolate: "#d2691e",
230
- coral: "#ff7f50",
231
- cornflowerblue: "#6495ed",
232
- cornsilk: "#fff8dc",
233
- crimson: "#dc143c",
234
- cyanaqua: "#00ffff",
235
- darkblue: "#00008b",
236
- darkcyan: "#008b8b",
237
- darkgoldenrod: "#b8860b",
238
- darkgray: "#a9a9a9",
239
- darkgreen: "#006400",
240
- darkgrey: "#a9a9a9",
241
- darkkhaki: "#bdb76b",
242
- darkmagenta: "#8b008b",
243
- darkolivegreen: "#556b2f",
244
- darkorange: "#ff8c00",
245
- darkorchid: "#9932cc",
246
- darkred: "#8b0000",
247
- darksalmon: "#e9967a",
248
- darkseagreen: "#8fbc8f",
249
- darkslateblue: "#483d8b",
250
- darkslategray: "#2f4f4f",
251
- darkslategrey: "#2f4f4f",
252
- darkturquoise: "#00ced1",
253
- darkviolet: "#9400d3",
254
- deeppink: "#ff1493",
255
- deepskyblue: "#00bfff",
256
- dimgray: "#696969",
257
- dimgrey: "#696969",
258
- dodgerblue: "#1e90ff",
259
- firebrick: "#b22222",
260
- floralwhite: "#fffaf0",
261
- forestgreen: "#228b22",
262
- fuchsia: "#ff00ff",
263
- gainsboro: "#dcdcdc",
264
- ghostwhite: "#f8f8ff",
265
- gold: "#ffd700",
266
- goldenrod: "#daa520",
267
- gray: "#808080",
268
- green: "#008000",
269
- greenyellow: "#adff2f",
270
- grey: "#808080",
271
- honeydew: "#f0fff0",
272
- hotpink: "#ff69b4",
273
- indianred: "#cd5c5c",
274
- indigo: "#4b0082",
275
- ivory: "#fffff0",
276
- khaki: "#f0e68c",
277
- lavender: "#e6e6fa",
278
- lavenderblush: "#fff0f5",
279
- lawngreen: "#7cfc00",
280
- lemonchiffon: "#fffacd",
281
- lightblue: "#add8e6",
282
- lightcoral: "#f08080",
283
- lightcyan: "#e0ffff",
284
- lightgoldenrodyellow: "#fafad2",
285
- lightgray: "#d3d3d3",
286
- lightgreen: "#90ee90",
287
- lightgrey: "#d3d3d3",
288
- lightpink: "#ffb6c1",
289
- lightsalmon: "#ffa07a",
290
- lightseagreen: "#20b2aa",
291
- lightskyblue: "#87cefa",
292
- lightslategray: "#778899",
293
- lightslategrey: "#778899",
294
- lightsteelblue: "#b0c4de",
295
- lightyellow: "#ffffe0",
296
- lime: "#00ff00",
297
- limegreen: "#32cd32",
298
- linen: "#faf0e6",
299
- magenta: "#ff00ff",
300
- maroon: "#800000",
301
- mediumaquamarine: "#66cdaa",
302
- mediumblue: "#0000cd",
303
- mediumorchid: "#ba55d3",
304
- mediumpurple: "#9370db",
305
- mediumseagreen: "#3cb371",
306
- mediumslateblue: "#7b68ee",
307
- mediumspringgreen: "#00fa9a",
308
- mediumturquoise: "#48d1cc",
309
- mediumvioletred: "#c71585",
310
- midnightblue: "#191970",
311
- mintcream: "#f5fffa",
312
- mistyrose: "#ffe4e1",
313
- moccasin: "#ffe4b5",
314
- navajowhite: "#ffdead",
315
- navy: "#000080",
316
- oldlace: "#fdf5e6",
317
- olive: "#808000",
318
- olivedrab: "#6b8e23",
319
- orange: "#ffa500",
320
- orangered: "#ff4500",
321
- orchid: "#da70d6",
322
- palegoldenrod: "#eee8aa",
323
- palegreen: "#98fb98",
324
- paleturquoise: "#afeeee",
325
- palevioletred: "#db7093",
326
- papayawhip: "#ffefd5",
327
- peachpuff: "#ffdab9",
328
- peru: "#cd853f",
329
- pink: "#ffc0cb",
330
- plum: "#dda0dd",
331
- powderblue: "#b0e0e6",
332
- purple: "#800080",
333
- rebeccapurple: "#663399",
334
- red: "#ff0000",
335
- rosybrown: "#bc8f8f",
336
- royalblue: "#4169e1",
337
- saddlebrown: "#8b4513",
338
- salmon: "#fa8072",
339
- sandybrown: "#f4a460",
340
- seagreen: "#2e8b57",
341
- seashell: "#fff5ee",
342
- sienna: "#a0522d",
343
- silver: "#c0c0c0",
344
- skyblue: "#87ceeb",
345
- slateblue: "#6a5acd",
346
- slategray: "#708090",
347
- slategrey: "#708090",
348
- snow: "#fffafa",
349
- springgreen: "#00ff7f",
350
- tan: "#d2b48c",
351
- teal: "#008080",
352
- thistle: "#d8bfd8",
353
- transparent: "#00000000",
354
- turquoise: "#40e0d0",
355
- violet: "#ee82ee",
356
- wheat: "#f5deb3",
357
- white: "#ffffff",
358
- whitesmoke: "#f5f5f5",
359
- yellow: "#ffff00",
360
- yellowgreen: "#9acd32"
361
- },
362
- parse: (e) => {
363
- e = e.toLowerCase();
364
- let t = g.colors[e];
365
- if (t) return m.parse(t);
366
- },
367
- stringify: (e) => {
368
- let t = m.stringify(e);
369
- for (let e in g.colors) if (g.colors[e] === t) return e;
370
- }
371
- }, _ = {
372
- 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,
373
- parse: (e) => {
374
- let t = e.charCodeAt(0);
375
- if (t !== 114 && t !== 82) return;
376
- let n = e.match(_.re);
377
- if (!n) return;
378
- let [, r, i, a, o, s, c, u, d] = n;
379
- return p.set({
380
- r: l.channel.clamp.r(i ? parseFloat(r) * 2.55 : parseFloat(r)),
381
- g: l.channel.clamp.g(o ? parseFloat(a) * 2.55 : parseFloat(a)),
382
- b: l.channel.clamp.b(c ? parseFloat(s) * 2.55 : parseFloat(s)),
383
- a: u ? l.channel.clamp.a(d ? parseFloat(u) / 100 : parseFloat(u)) : 1
384
- }, e);
385
- },
386
- stringify: (e) => {
387
- let { r: t, g: n, b: r, a: i } = e;
388
- return i < 1 ? `rgba(${l.lang.round(t)}, ${l.lang.round(n)}, ${l.lang.round(r)}, ${l.lang.round(i)})` : `rgb(${l.lang.round(t)}, ${l.lang.round(n)}, ${l.lang.round(r)})`;
389
- }
390
- }, v = {
391
- format: {
392
- keyword: g,
393
- hex: m,
394
- rgb: _,
395
- rgba: _,
396
- hsl: h,
397
- hsla: h
398
- },
399
- parse: (e) => {
400
- if (typeof e != "string") return e;
401
- let t = m.parse(e) || _.parse(e) || h.parse(e) || g.parse(e);
402
- if (t) return t;
403
- throw Error(`Unsupported color format: "${e}"`);
404
- },
405
- stringify: (e) => !e.changed && e.color ? e.color : e.type.is(d.HSL) || e.data.r === void 0 ? h.stringify(e) : e.a < 1 || !Number.isInteger(e.r) || !Number.isInteger(e.g) || !Number.isInteger(e.b) ? _.stringify(e) : m.stringify(e)
406
- }, y = (e, t) => {
407
- let n = v.parse(e);
408
- for (let e in t) n[e] = l.channel.clamp[e](t[e]);
409
- return v.stringify(n);
410
- }, b = (e, t, n = 0, r = 1) => {
411
- if (typeof e != "number") return y(e, { a: t });
412
- let i = p.set({
413
- r: l.channel.clamp.r(e),
414
- g: l.channel.clamp.g(t),
415
- b: l.channel.clamp.b(n),
416
- a: l.channel.clamp.a(r)
417
- });
418
- return v.stringify(i);
419
- }, x = (e) => {
420
- let { r: t, g: n, b: r } = v.parse(e), i = .2126 * l.channel.toLinear(t) + .7152 * l.channel.toLinear(n) + .0722 * l.channel.toLinear(r);
421
- return l.lang.round(i);
422
- }, S = (e) => x(e) >= .5, C = (e) => !S(e), w = (e, t, n) => {
423
- let r = v.parse(e), i = r[t], a = l.channel.clamp[t](i + n);
424
- return i !== a && (r[t] = a), v.stringify(r);
425
- }, T = (e, t) => w(e, "l", t), E = (e, t) => w(e, "l", -t), D = (e, t) => {
426
- let n = v.parse(e), r = {};
427
- for (let e in t) t[e] && (r[e] = n[e] + t[e]);
428
- return y(e, r);
429
- }, ee = (e, t, n = 50) => {
430
- let { r, g: i, b: a, a: o } = v.parse(e), { r: s, g: c, b: l, a: u } = v.parse(t), d = n / 100, f = d * 2 - 1, p = o - u, m = ((f * p === -1 ? f : (f + p) / (1 + f * p)) + 1) / 2, h = 1 - m;
431
- return b(r * m + s * h, i * m + c * h, a * m + l * h, o * d + u * (1 - d));
432
- }, O = (e, t = 100) => {
433
- let n = v.parse(e);
434
- return n.r = 255 - n.r, n.g = 255 - n.g, n.b = 255 - n.b, ee(n, e, t);
435
- };
436
- e(), n();
437
- function k(e, t) {
438
- (t == null || t > e.length) && (t = e.length);
439
- for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
440
- return r;
441
- }
442
- function A(e) {
443
- if (Array.isArray(e)) return e;
444
- }
445
- function j(e, t) {
446
- var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
447
- if (n != null) {
448
- var r, i, a, o, s = [], c = !0, l = !1;
449
- try {
450
- if (a = (n = n.call(e)).next, t !== 0) for (; !(c = (r = a.call(n)).done) && (s.push(r.value), s.length !== t); c = !0);
451
- } catch (e) {
452
- l = !0, i = e;
453
- } finally {
454
- try {
455
- if (!c && n.return != null && (o = n.return(), Object(o) !== o)) return;
456
- } finally {
457
- if (l) throw i;
458
- }
459
- }
460
- return s;
461
- }
462
- }
463
- function M() {
464
- throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
465
- }
466
- function te(e, t) {
467
- return A(e) || j(e, t) || ne(e, t) || M();
468
- }
469
- function ne(e, t) {
470
- if (e) {
471
- if (typeof e == "string") return k(e, t);
472
- var n = {}.toString.call(e).slice(8, -1);
473
- return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? k(e, t) : void 0;
474
- }
475
- }
476
- var re = Object.entries, N = Object.setPrototypeOf, P = Object.isFrozen, ie = Object.getPrototypeOf, F = Object.getOwnPropertyDescriptor, I = Object.freeze, L = Object.seal, ae = Object.create, oe = typeof Reflect < "u" && Reflect, R = oe.apply, se = oe.construct;
477
- I || (I = function(e) {
478
- return e;
479
- }), L || (L = function(e) {
480
- return e;
481
- }), R || (R = function(e, t) {
482
- var n = [...arguments].slice(2);
483
- return e.apply(t, n);
484
- }), se || (se = function(e) {
485
- return new e(...[...arguments].slice(1));
486
- });
487
- var z = W(Array.prototype.forEach), ce = W(Array.prototype.lastIndexOf), le = W(Array.prototype.pop), ue = W(Array.prototype.push), de = W(Array.prototype.splice), B = Array.isArray, fe = W(String.prototype.toLowerCase), pe = W(String.prototype.toString), me = W(String.prototype.match), he = W(String.prototype.replace), ge = W(String.prototype.indexOf), _e = W(String.prototype.trim), V = W(Number.prototype.toString), ve = W(Boolean.prototype.toString), ye = typeof BigInt > "u" ? null : W(BigInt.prototype.toString), be = typeof Symbol > "u" ? null : W(Symbol.prototype.toString), H = W(Object.prototype.hasOwnProperty), xe = W(Object.prototype.toString), U = W(RegExp.prototype.test), Se = Ce(TypeError);
488
- function W(e) {
489
- return function(t) {
490
- t instanceof RegExp && (t.lastIndex = 0);
491
- var n = [...arguments].slice(1);
492
- return R(e, t, n);
493
- };
494
- }
495
- function Ce(e) {
496
- return function() {
497
- return se(e, [...arguments]);
498
- };
499
- }
500
- function G(e, t) {
501
- let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : fe;
502
- if (N && N(e, null), !B(t)) return e;
503
- let r = t.length;
504
- for (; r--;) {
505
- let i = t[r];
506
- if (typeof i == "string") {
507
- let e = n(i);
508
- e !== i && (P(t) || (t[r] = e), i = e);
509
- }
510
- e[i] = !0;
511
- }
512
- return e;
513
- }
514
- function we(e) {
515
- for (let t = 0; t < e.length; t++) H(e, t) || (e[t] = null);
516
- return e;
517
- }
518
- function K(e) {
519
- let t = ae(null);
520
- for (let r of re(e)) {
521
- var n = te(r, 2);
522
- let i = n[0], a = n[1];
523
- H(e, i) && (B(a) ? t[i] = we(a) : a && typeof a == "object" && a.constructor === Object ? t[i] = K(a) : t[i] = a);
524
- }
525
- return t;
526
- }
527
- function Te(e) {
528
- switch (typeof e) {
529
- case "string": return e;
530
- case "number": return V(e);
531
- case "boolean": return ve(e);
532
- case "bigint": return ye ? ye(e) : "0";
533
- case "symbol": return be ? be(e) : "Symbol()";
534
- case "undefined": return xe(e);
535
- case "function":
536
- case "object": {
537
- if (e === null) return xe(e);
538
- let t = e, n = Ee(t, "toString");
539
- if (typeof n == "function") {
540
- let e = n(t);
541
- return typeof e == "string" ? e : xe(e);
542
- }
543
- return xe(e);
544
- }
545
- default: return xe(e);
546
- }
547
- }
548
- function Ee(e, t) {
549
- for (; e !== null;) {
550
- let n = F(e, t);
551
- if (n) {
552
- if (n.get) return W(n.get);
553
- if (typeof n.value == "function") return W(n.value);
554
- }
555
- e = ie(e);
556
- }
557
- function n() {
558
- return null;
559
- }
560
- return n;
561
- }
562
- function De(e) {
563
- try {
564
- return U(e, ""), !0;
565
- } catch (e) {
566
- return !1;
567
- }
568
- }
569
- var Oe = I(/* @__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(".")), ke = I(/* @__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(".")), Ae = I([
570
- "feBlend",
571
- "feColorMatrix",
572
- "feComponentTransfer",
573
- "feComposite",
574
- "feConvolveMatrix",
575
- "feDiffuseLighting",
576
- "feDisplacementMap",
577
- "feDistantLight",
578
- "feDropShadow",
579
- "feFlood",
580
- "feFuncA",
581
- "feFuncB",
582
- "feFuncG",
583
- "feFuncR",
584
- "feGaussianBlur",
585
- "feImage",
586
- "feMerge",
587
- "feMergeNode",
588
- "feMorphology",
589
- "feOffset",
590
- "fePointLight",
591
- "feSpecularLighting",
592
- "feSpotLight",
593
- "feTile",
594
- "feTurbulence"
595
- ]), je = I([
596
- "animate",
597
- "color-profile",
598
- "cursor",
599
- "discard",
600
- "font-face",
601
- "font-face-format",
602
- "font-face-name",
603
- "font-face-src",
604
- "font-face-uri",
605
- "foreignobject",
606
- "hatch",
607
- "hatchpath",
608
- "mesh",
609
- "meshgradient",
610
- "meshpatch",
611
- "meshrow",
612
- "missing-glyph",
613
- "script",
614
- "set",
615
- "solidcolor",
616
- "unknown",
617
- "use"
618
- ]), Me = I(/* @__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(".")), Ne = I([
619
- "maction",
620
- "maligngroup",
621
- "malignmark",
622
- "mlongdiv",
623
- "mscarries",
624
- "mscarry",
625
- "msgroup",
626
- "mstack",
627
- "msline",
628
- "msrow",
629
- "semantics",
630
- "annotation",
631
- "annotation-xml",
632
- "mprescripts",
633
- "none"
634
- ]), Pe = I(["#text"]), Fe = I(/* @__PURE__ */ "accept.action.align.alt.autocapitalize.autocomplete.autopictureinpicture.autoplay.background.bgcolor.border.capture.cellpadding.cellspacing.checked.cite.class.clear.color.cols.colspan.command.commandfor.controls.controlslist.coords.crossorigin.datetime.decoding.default.dir.disabled.disablepictureinpicture.disableremoteplayback.download.draggable.enctype.enterkeyhint.exportparts.face.for.headers.height.hidden.high.href.hreflang.id.inert.inputmode.integrity.ismap.kind.label.lang.list.loading.loop.low.max.maxlength.media.method.min.minlength.multiple.muted.name.nonce.noshade.novalidate.nowrap.open.optimum.part.pattern.placeholder.playsinline.popover.popovertarget.popovertargetaction.poster.preload.pubdate.radiogroup.readonly.rel.required.rev.reversed.role.rows.rowspan.spellcheck.scope.selected.shape.size.sizes.slot.span.srclang.start.src.srcset.step.style.summary.tabindex.title.translate.type.usemap.valign.value.width.wrap.xmlns".split(".")), Ie = I(/* @__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(".")), Le = I(/* @__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(".")), Re = I([
635
- "xlink:href",
636
- "xml:id",
637
- "xlink:title",
638
- "xml:space",
639
- "xmlns:xlink"
640
- ]), ze = L(/{{[\w\W]*|^[\w\W]*}}/g), Be = L(/<%[\w\W]*|^[\w\W]*%>/g), Ve = L(/\${[\w\W]*/g), He = L(/^data-[\-\w.\u00B7-\uFFFF]+$/), Ue = L(/^aria-[\-\w]+$/), We = L(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i), Ge = L(/^(?:\w+script|data):/i), Ke = L(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g), qe = L(/^html$/i), Je = L(/^[a-z][.\w]*(-[.\w]+)+$/i), Ye = {
641
- element: 1,
642
- text: 3,
643
- progressingInstruction: 7,
644
- comment: 8,
645
- document: 9
646
- }, Xe = function() {
647
- return typeof window > "u" ? null : window;
648
- }, Ze = function(e, t) {
649
- if (typeof e != "object" || typeof e.createPolicy != "function") return null;
650
- let n = null, r = "data-tt-policy-suffix";
651
- t && t.hasAttribute(r) && (n = t.getAttribute(r));
652
- let i = "dompurify" + (n ? "#" + n : "");
653
- try {
654
- return e.createPolicy(i, {
655
- createHTML(e) {
656
- return e;
657
- },
658
- createScriptURL(e) {
659
- return e;
660
- }
661
- });
662
- } catch (e) {
663
- return console.warn("TrustedTypes policy " + i + " could not be created."), null;
664
- }
665
- }, Qe = function() {
666
- return {
667
- afterSanitizeAttributes: [],
668
- afterSanitizeElements: [],
669
- afterSanitizeShadowDOM: [],
670
- beforeSanitizeAttributes: [],
671
- beforeSanitizeElements: [],
672
- beforeSanitizeShadowDOM: [],
673
- uponSanitizeAttribute: [],
674
- uponSanitizeElement: [],
675
- uponSanitizeShadowNode: []
676
- };
677
- };
678
- function $e() {
679
- let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Xe(), t = (e) => $e(e);
680
- if (t.version = "3.4.5", t.removed = [], !e || !e.document || e.document.nodeType !== Ye.document || !e.Element) return t.isSupported = !1, t;
681
- let n = e.document, r = n, i = r.currentScript, a = e.DocumentFragment, o = e.HTMLTemplateElement, s = e.Node, c = e.Element, l = e.NodeFilter, u = e.NamedNodeMap, d = u === void 0 ? e.NamedNodeMap || e.MozNamedAttrMap : u, f = e.HTMLFormElement, p = e.DOMParser, m = e.trustedTypes, h = c.prototype, g = Ee(h, "cloneNode"), _ = Ee(h, "remove"), v = Ee(h, "nextSibling"), y = Ee(h, "childNodes"), b = Ee(h, "parentNode"), x = s && s.prototype ? Ee(s.prototype, "nodeType") : null;
682
- if (typeof o == "function") {
683
- let e = n.createElement("template");
684
- e.content && e.content.ownerDocument && (n = e.content.ownerDocument);
685
- }
686
- let S, C = "", w = n, T = w.implementation, E = w.createNodeIterator, D = w.createDocumentFragment, ee = w.getElementsByTagName, O = r.importNode, k = Qe();
687
- t.isSupported = typeof re == "function" && typeof b == "function" && T && T.createHTMLDocument !== void 0;
688
- let A = ze, j = Be, M = Ve, te = He, ne = Ue, N = Ge, P = Ke, ie = Je, F = We, L = null, oe = G({}, [
689
- ...Oe,
690
- ...ke,
691
- ...Ae,
692
- ...Me,
693
- ...Pe
694
- ]), R = null, se = G({}, [
695
- ...Fe,
696
- ...Ie,
697
- ...Le,
698
- ...Re
699
- ]), V = Object.seal(ae(null, {
700
- tagNameCheck: {
701
- writable: !0,
702
- configurable: !1,
703
- enumerable: !0,
704
- value: null
705
- },
706
- attributeNameCheck: {
707
- writable: !0,
708
- configurable: !1,
709
- enumerable: !0,
710
- value: null
711
- },
712
- allowCustomizedBuiltInElements: {
713
- writable: !0,
714
- configurable: !1,
715
- enumerable: !0,
716
- value: !1
717
- }
718
- })), ve = null, ye = null, be = Object.seal(ae(null, {
719
- tagCheck: {
720
- writable: !0,
721
- configurable: !1,
722
- enumerable: !0,
723
- value: null
724
- },
725
- attributeCheck: {
726
- writable: !0,
727
- configurable: !1,
728
- enumerable: !0,
729
- value: null
730
- }
731
- })), xe = !0, W = !0, Ce = !1, we = !0, q = !1, et = !0, tt = !1, nt = !1, rt = !1, it = !1, at = !1, ot = !1, st = !0, ct = !1, lt = "user-content-", ut = !0, dt = !1, ft = {}, pt = null, mt = G({}, [
732
- "annotation-xml",
733
- "audio",
734
- "colgroup",
735
- "desc",
736
- "foreignobject",
737
- "head",
738
- "iframe",
739
- "math",
740
- "mi",
741
- "mn",
742
- "mo",
743
- "ms",
744
- "mtext",
745
- "noembed",
746
- "noframes",
747
- "noscript",
748
- "plaintext",
749
- "script",
750
- "style",
751
- "svg",
752
- "template",
753
- "thead",
754
- "title",
755
- "video",
756
- "xmp"
757
- ]), ht = null, gt = G({}, [
758
- "audio",
759
- "video",
760
- "img",
761
- "source",
762
- "image",
763
- "track"
764
- ]), _t = null, vt = G({}, [
765
- "alt",
766
- "class",
767
- "for",
768
- "id",
769
- "label",
770
- "name",
771
- "pattern",
772
- "placeholder",
773
- "role",
774
- "summary",
775
- "title",
776
- "value",
777
- "style",
778
- "xmlns"
779
- ]), yt = "http://www.w3.org/1998/Math/MathML", bt = "http://www.w3.org/2000/svg", xt = "http://www.w3.org/1999/xhtml", St = xt, J = !1, Y = null, Ct = G({}, [
780
- yt,
781
- bt,
782
- xt
783
- ], pe), X = G({}, [
784
- "mi",
785
- "mo",
786
- "mn",
787
- "ms",
788
- "mtext"
789
- ]), wt = G({}, ["annotation-xml"]), Tt = G({}, [
790
- "title",
791
- "style",
792
- "font",
793
- "a",
794
- "script"
795
- ]), Et = null, Dt = ["application/xhtml+xml", "text/html"], Z = null, Ot = null, kt = n.createElement("form"), At = function(e) {
796
- return e instanceof RegExp || e instanceof Function;
797
- }, jt = function() {
798
- let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
799
- if (Ot && Ot === e) return;
800
- (!e || typeof e != "object") && (e = {}), e = K(e), Et = Dt.indexOf(e.PARSER_MEDIA_TYPE) === -1 ? "text/html" : e.PARSER_MEDIA_TYPE, Z = Et === "application/xhtml+xml" ? pe : fe, L = H(e, "ALLOWED_TAGS") && B(e.ALLOWED_TAGS) ? G({}, e.ALLOWED_TAGS, Z) : oe, R = H(e, "ALLOWED_ATTR") && B(e.ALLOWED_ATTR) ? G({}, e.ALLOWED_ATTR, Z) : se, Y = H(e, "ALLOWED_NAMESPACES") && B(e.ALLOWED_NAMESPACES) ? G({}, e.ALLOWED_NAMESPACES, pe) : Ct, _t = H(e, "ADD_URI_SAFE_ATTR") && B(e.ADD_URI_SAFE_ATTR) ? G(K(vt), e.ADD_URI_SAFE_ATTR, Z) : vt, ht = H(e, "ADD_DATA_URI_TAGS") && B(e.ADD_DATA_URI_TAGS) ? G(K(gt), e.ADD_DATA_URI_TAGS, Z) : gt, pt = H(e, "FORBID_CONTENTS") && B(e.FORBID_CONTENTS) ? G({}, e.FORBID_CONTENTS, Z) : mt, ve = H(e, "FORBID_TAGS") && B(e.FORBID_TAGS) ? G({}, e.FORBID_TAGS, Z) : K({}), ye = H(e, "FORBID_ATTR") && B(e.FORBID_ATTR) ? G({}, e.FORBID_ATTR, Z) : K({}), ft = H(e, "USE_PROFILES") ? e.USE_PROFILES && typeof e.USE_PROFILES == "object" ? K(e.USE_PROFILES) : e.USE_PROFILES : !1, xe = e.ALLOW_ARIA_ATTR !== !1, W = e.ALLOW_DATA_ATTR !== !1, Ce = e.ALLOW_UNKNOWN_PROTOCOLS || !1, we = e.ALLOW_SELF_CLOSE_IN_ATTR !== !1, q = e.SAFE_FOR_TEMPLATES || !1, et = e.SAFE_FOR_XML !== !1, tt = e.WHOLE_DOCUMENT || !1, it = e.RETURN_DOM || !1, at = e.RETURN_DOM_FRAGMENT || !1, ot = e.RETURN_TRUSTED_TYPE || !1, rt = e.FORCE_BODY || !1, st = e.SANITIZE_DOM !== !1, ct = e.SANITIZE_NAMED_PROPS || !1, ut = e.KEEP_CONTENT !== !1, dt = e.IN_PLACE || !1, F = De(e.ALLOWED_URI_REGEXP) ? e.ALLOWED_URI_REGEXP : We, St = typeof e.NAMESPACE == "string" ? e.NAMESPACE : xt, X = H(e, "MATHML_TEXT_INTEGRATION_POINTS") && e.MATHML_TEXT_INTEGRATION_POINTS && typeof e.MATHML_TEXT_INTEGRATION_POINTS == "object" ? K(e.MATHML_TEXT_INTEGRATION_POINTS) : G({}, [
801
- "mi",
802
- "mo",
803
- "mn",
804
- "ms",
805
- "mtext"
806
- ]), wt = H(e, "HTML_INTEGRATION_POINTS") && e.HTML_INTEGRATION_POINTS && typeof e.HTML_INTEGRATION_POINTS == "object" ? K(e.HTML_INTEGRATION_POINTS) : G({}, ["annotation-xml"]);
807
- let t = H(e, "CUSTOM_ELEMENT_HANDLING") && e.CUSTOM_ELEMENT_HANDLING && typeof e.CUSTOM_ELEMENT_HANDLING == "object" ? K(e.CUSTOM_ELEMENT_HANDLING) : ae(null);
808
- if (V = ae(null), H(t, "tagNameCheck") && At(t.tagNameCheck) && (V.tagNameCheck = t.tagNameCheck), H(t, "attributeNameCheck") && At(t.attributeNameCheck) && (V.attributeNameCheck = t.attributeNameCheck), H(t, "allowCustomizedBuiltInElements") && typeof t.allowCustomizedBuiltInElements == "boolean" && (V.allowCustomizedBuiltInElements = t.allowCustomizedBuiltInElements), q && (W = !1), at && (it = !0), ft && (L = G({}, Pe), R = ae(null), ft.html === !0 && (G(L, Oe), G(R, Fe)), ft.svg === !0 && (G(L, ke), G(R, Ie), G(R, Re)), ft.svgFilters === !0 && (G(L, Ae), G(R, Ie), G(R, Re)), ft.mathMl === !0 && (G(L, Me), G(R, Le), G(R, Re))), be.tagCheck = null, be.attributeCheck = null, H(e, "ADD_TAGS") && (typeof e.ADD_TAGS == "function" ? be.tagCheck = e.ADD_TAGS : B(e.ADD_TAGS) && (L === oe && (L = K(L)), G(L, e.ADD_TAGS, Z))), H(e, "ADD_ATTR") && (typeof e.ADD_ATTR == "function" ? be.attributeCheck = e.ADD_ATTR : B(e.ADD_ATTR) && (R === se && (R = K(R)), G(R, e.ADD_ATTR, Z))), H(e, "ADD_URI_SAFE_ATTR") && B(e.ADD_URI_SAFE_ATTR) && G(_t, e.ADD_URI_SAFE_ATTR, Z), H(e, "FORBID_CONTENTS") && B(e.FORBID_CONTENTS) && (pt === mt && (pt = K(pt)), G(pt, e.FORBID_CONTENTS, Z)), H(e, "ADD_FORBID_CONTENTS") && B(e.ADD_FORBID_CONTENTS) && (pt === mt && (pt = K(pt)), G(pt, e.ADD_FORBID_CONTENTS, Z)), ut && (L["#text"] = !0), tt && G(L, [
809
- "html",
810
- "head",
811
- "body"
812
- ]), L.table && (G(L, ["tbody"]), delete ve.tbody), e.TRUSTED_TYPES_POLICY) {
813
- if (typeof e.TRUSTED_TYPES_POLICY.createHTML != "function") throw Se("TRUSTED_TYPES_POLICY configuration option must provide a \"createHTML\" hook.");
814
- if (typeof e.TRUSTED_TYPES_POLICY.createScriptURL != "function") throw Se("TRUSTED_TYPES_POLICY configuration option must provide a \"createScriptURL\" hook.");
815
- S = e.TRUSTED_TYPES_POLICY, C = S.createHTML("");
816
- } else S === void 0 && (S = Ze(m, i)), S !== null && typeof C == "string" && (C = S.createHTML(""));
817
- I && I(e), Ot = e;
818
- }, Mt = G({}, [
819
- ...ke,
820
- ...Ae,
821
- ...je
822
- ]), Nt = G({}, [...Me, ...Ne]), Pt = function(e) {
823
- let t = b(e);
824
- (!t || !t.tagName) && (t = {
825
- namespaceURI: St,
826
- tagName: "template"
827
- });
828
- let n = fe(e.tagName), r = fe(t.tagName);
829
- return Y[e.namespaceURI] ? e.namespaceURI === bt ? t.namespaceURI === xt ? n === "svg" : t.namespaceURI === yt ? n === "svg" && (r === "annotation-xml" || X[r]) : !!Mt[n] : e.namespaceURI === yt ? t.namespaceURI === xt ? n === "math" : t.namespaceURI === bt ? n === "math" && wt[r] : !!Nt[n] : e.namespaceURI === xt ? t.namespaceURI === bt && !wt[r] || t.namespaceURI === yt && !X[r] ? !1 : !Nt[n] && (Tt[n] || !Mt[n]) : !!(Et === "application/xhtml+xml" && Y[e.namespaceURI]) : !1;
830
- }, Ft = function(e) {
831
- ue(t.removed, { element: e });
832
- try {
833
- b(e).removeChild(e);
834
- } catch (t) {
835
- _(e);
836
- }
837
- }, It = function(e, n) {
838
- try {
839
- ue(t.removed, {
840
- attribute: n.getAttributeNode(e),
841
- from: n
842
- });
843
- } catch (e) {
844
- ue(t.removed, {
845
- attribute: null,
846
- from: n
847
- });
848
- }
849
- if (n.removeAttribute(e), e === "is") if (it || at) try {
850
- Ft(n);
851
- } catch (e) {}
852
- else try {
853
- n.setAttribute(e, "");
854
- } catch (e) {}
855
- }, Lt = function(e) {
856
- let t = null, r = null;
857
- if (rt) e = "<remove></remove>" + e;
858
- else {
859
- let t = me(e, /^[\r\n\t ]+/);
860
- r = t && t[0];
861
- }
862
- Et === "application/xhtml+xml" && St === xt && (e = "<html xmlns=\"http://www.w3.org/1999/xhtml\"><head></head><body>" + e + "</body></html>");
863
- let i = S ? S.createHTML(e) : e;
864
- if (St === xt) try {
865
- t = new p().parseFromString(i, Et);
866
- } catch (e) {}
867
- if (!t || !t.documentElement) {
868
- t = T.createDocument(St, "template", null);
869
- try {
870
- t.documentElement.innerHTML = J ? C : i;
871
- } catch (e) {}
872
- }
873
- let a = t.body || t.documentElement;
874
- return e && r && a.insertBefore(n.createTextNode(r), a.childNodes[0] || null), St === xt ? ee.call(t, tt ? "html" : "body")[0] : tt ? t.documentElement : a;
875
- }, Rt = function(e) {
876
- return E.call(e.ownerDocument || e, e, l.SHOW_ELEMENT | l.SHOW_COMMENT | l.SHOW_TEXT | l.SHOW_PROCESSING_INSTRUCTION | l.SHOW_CDATA_SECTION, null);
877
- }, zt = function(e) {
878
- e.normalize();
879
- let t = E.call(e.ownerDocument || e, e, l.SHOW_TEXT | l.SHOW_COMMENT | l.SHOW_CDATA_SECTION | l.SHOW_PROCESSING_INSTRUCTION, null), n = t.nextNode();
880
- for (; n;) {
881
- let e = n.data;
882
- z([
883
- A,
884
- j,
885
- M
886
- ], (t) => {
887
- e = he(e, t, " ");
888
- }), n.data = e, n = t.nextNode();
889
- }
890
- }, Bt = function(e) {
891
- return e instanceof f && (typeof e.nodeName != "string" || typeof e.textContent != "string" || typeof e.removeChild != "function" || !(e.attributes instanceof d) || typeof e.removeAttribute != "function" || typeof e.setAttribute != "function" || typeof e.namespaceURI != "string" || typeof e.insertBefore != "function" || typeof e.hasChildNodes != "function");
892
- }, Vt = function(e) {
893
- if (!x || typeof e != "object" || !e) return !1;
894
- try {
895
- return typeof x(e) == "number";
896
- } catch (e) {
897
- return !1;
898
- }
899
- };
900
- function Ht(e, n, r) {
901
- z(e, (e) => {
902
- e.call(t, n, r, Ot);
903
- });
904
- }
905
- let Ut = function(e) {
906
- let n = null;
907
- if (Ht(k.beforeSanitizeElements, e, null), Bt(e)) return Ft(e), !0;
908
- let r = Z(e.nodeName);
909
- if (Ht(k.uponSanitizeElement, e, {
910
- tagName: r,
911
- allowedTags: L
912
- }), et && e.hasChildNodes() && !Vt(e.firstElementChild) && U(/<[/\w!]/g, e.innerHTML) && U(/<[/\w!]/g, e.textContent) || et && e.namespaceURI === xt && r === "style" && Vt(e.firstElementChild) || e.nodeType === Ye.progressingInstruction || et && e.nodeType === Ye.comment && U(/<[/\w]/g, e.data)) return Ft(e), !0;
913
- if (ve[r] || !(be.tagCheck instanceof Function && be.tagCheck(r)) && !L[r]) {
914
- if (!ve[r] && Gt(r) && (V.tagNameCheck instanceof RegExp && U(V.tagNameCheck, r) || V.tagNameCheck instanceof Function && V.tagNameCheck(r))) return !1;
915
- if (ut && !pt[r]) {
916
- let t = b(e) || e.parentNode, n = y(e) || e.childNodes;
917
- if (n && t) {
918
- let r = n.length;
919
- for (let i = r - 1; i >= 0; --i) {
920
- let r = g(n[i], !0);
921
- t.insertBefore(r, v(e));
922
- }
923
- }
924
- }
925
- return Ft(e), !0;
926
- }
927
- return e instanceof c && !Pt(e) || (r === "noscript" || r === "noembed" || r === "noframes") && U(/<\/no(script|embed|frames)/i, e.innerHTML) ? (Ft(e), !0) : (q && e.nodeType === Ye.text && (n = e.textContent, z([
928
- A,
929
- j,
930
- M
931
- ], (e) => {
932
- n = he(n, e, " ");
933
- }), e.textContent !== n && (ue(t.removed, { element: e.cloneNode() }), e.textContent = n)), Ht(k.afterSanitizeElements, e, null), !1);
934
- }, Wt = function(e, t, r) {
935
- if (ye[t] || st && (t === "id" || t === "name") && (r in n || r in kt)) return !1;
936
- let i = R[t] || be.attributeCheck instanceof Function && be.attributeCheck(t, e);
937
- if (!(W && !ye[t] && U(te, t)) && !(xe && U(ne, t))) {
938
- if (!i || ye[t]) {
939
- if (!(Gt(e) && (V.tagNameCheck instanceof RegExp && U(V.tagNameCheck, e) || V.tagNameCheck instanceof Function && V.tagNameCheck(e)) && (V.attributeNameCheck instanceof RegExp && U(V.attributeNameCheck, t) || V.attributeNameCheck instanceof Function && V.attributeNameCheck(t, e)) || t === "is" && V.allowCustomizedBuiltInElements && (V.tagNameCheck instanceof RegExp && U(V.tagNameCheck, r) || V.tagNameCheck instanceof Function && V.tagNameCheck(r)))) return !1;
940
- } else if (!_t[t] && !U(F, he(r, P, "")) && !((t === "src" || t === "xlink:href" || t === "href") && e !== "script" && ge(r, "data:") === 0 && ht[e]) && !(Ce && !U(N, he(r, P, ""))) && r) return !1;
941
- }
942
- return !0;
943
- }, Q = G({}, [
944
- "annotation-xml",
945
- "color-profile",
946
- "font-face",
947
- "font-face-format",
948
- "font-face-name",
949
- "font-face-src",
950
- "font-face-uri",
951
- "missing-glyph"
952
- ]), Gt = function(e) {
953
- return !Q[fe(e)] && U(ie, e);
954
- }, Kt = function(e) {
955
- Ht(k.beforeSanitizeAttributes, e, null);
956
- let n = e.attributes;
957
- if (!n || Bt(e)) return;
958
- let r = {
959
- attrName: "",
960
- attrValue: "",
961
- keepAttr: !0,
962
- allowedAttributes: R,
963
- forceKeepAttr: void 0
964
- }, i = n.length;
965
- for (; i--;) {
966
- let a = n[i], o = a.name, s = a.namespaceURI, c = a.value, l = Z(o), u = c, d = o === "value" ? u : _e(u);
967
- if (r.attrName = l, r.attrValue = d, r.keepAttr = !0, r.forceKeepAttr = void 0, Ht(k.uponSanitizeAttribute, e, r), d = r.attrValue, ct && (l === "id" || l === "name") && ge(d, lt) !== 0 && (It(o, e), d = lt + d), et && U(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, d)) {
968
- It(o, e);
969
- continue;
970
- }
971
- if (l === "attributename" && me(d, "href")) {
972
- It(o, e);
973
- continue;
974
- }
975
- if (r.forceKeepAttr) continue;
976
- if (!r.keepAttr) {
977
- It(o, e);
978
- continue;
979
- }
980
- if (!we && U(/\/>/i, d)) {
981
- It(o, e);
982
- continue;
983
- }
984
- q && z([
985
- A,
986
- j,
987
- M
988
- ], (e) => {
989
- d = he(d, e, " ");
990
- });
991
- let f = Z(e.nodeName);
992
- if (!Wt(f, l, d)) {
993
- It(o, e);
994
- continue;
995
- }
996
- if (S && typeof m == "object" && typeof m.getAttributeType == "function" && !s) switch (m.getAttributeType(f, l)) {
997
- case "TrustedHTML":
998
- d = S.createHTML(d);
999
- break;
1000
- case "TrustedScriptURL":
1001
- d = S.createScriptURL(d);
1002
- break;
1003
- }
1004
- if (d !== u) try {
1005
- s ? e.setAttributeNS(s, o, d) : e.setAttribute(o, d), Bt(e) ? Ft(e) : le(t.removed);
1006
- } catch (t) {
1007
- It(o, e);
1008
- }
1009
- }
1010
- Ht(k.afterSanitizeAttributes, e, null);
1011
- }, qt = function(e) {
1012
- let t = null, n = Rt(e);
1013
- for (Ht(k.beforeSanitizeShadowDOM, e, null); t = n.nextNode();) Ht(k.uponSanitizeShadowNode, t, null), Ut(t), Kt(t), t.content instanceof a && qt(t.content);
1014
- Ht(k.afterSanitizeShadowDOM, e, null);
1015
- }, Jt = function(e) {
1016
- if (e.nodeType === Ye.element && e.shadowRoot instanceof a) {
1017
- let t = e.shadowRoot;
1018
- Jt(t), qt(t);
1019
- }
1020
- let t = e.childNodes;
1021
- if (!t) return;
1022
- let n = [];
1023
- z(t, (e) => {
1024
- ue(n, e);
1025
- });
1026
- for (let e of n) Jt(e);
1027
- };
1028
- return t.sanitize = function(e) {
1029
- let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, i = null, o = null, s = null, c = null;
1030
- if (J = !e, J && (e = "<!-->"), typeof e != "string" && !Vt(e) && (e = Te(e), typeof e != "string")) throw Se("dirty is not a string, aborting");
1031
- if (!t.isSupported) return e;
1032
- if (nt || jt(n), t.removed = [], typeof e == "string" && (dt = !1), dt) {
1033
- let t = e.nodeName;
1034
- if (typeof t == "string") {
1035
- let e = Z(t);
1036
- if (!L[e] || ve[e]) throw Se("root node is forbidden and cannot be sanitized in-place");
1037
- }
1038
- Jt(e);
1039
- } else if (Vt(e)) i = Lt("<!---->"), o = i.ownerDocument.importNode(e, !0), o.nodeType === Ye.element && o.nodeName === "BODY" || o.nodeName === "HTML" ? i = o : i.appendChild(o), Jt(o);
1040
- else {
1041
- if (!it && !q && !tt && e.indexOf("<") === -1) return S && ot ? S.createHTML(e) : e;
1042
- if (i = Lt(e), !i) return it ? null : ot ? C : "";
1043
- }
1044
- i && rt && Ft(i.firstChild);
1045
- let l = Rt(dt ? e : i);
1046
- for (; s = l.nextNode();) Ut(s), Kt(s), s.content instanceof a && qt(s.content);
1047
- if (dt) return q && zt(e), e;
1048
- if (it) {
1049
- if (q && zt(i), at) for (c = D.call(i.ownerDocument); i.firstChild;) c.appendChild(i.firstChild);
1050
- else c = i;
1051
- return (R.shadowroot || R.shadowrootmode) && (c = O.call(r, c, !0)), c;
1052
- }
1053
- let u = tt ? i.outerHTML : i.innerHTML;
1054
- return tt && L["!doctype"] && i.ownerDocument && i.ownerDocument.doctype && i.ownerDocument.doctype.name && U(qe, i.ownerDocument.doctype.name) && (u = "<!DOCTYPE " + i.ownerDocument.doctype.name + ">\n" + u), q && z([
1055
- A,
1056
- j,
1057
- M
1058
- ], (e) => {
1059
- u = he(u, e, " ");
1060
- }), S && ot ? S.createHTML(u) : u;
1061
- }, t.setConfig = function() {
1062
- jt(arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}), nt = !0;
1063
- }, t.clearConfig = function() {
1064
- Ot = null, nt = !1;
1065
- }, t.isValidAttribute = function(e, t, n) {
1066
- return Ot || jt({}), Wt(Z(e), Z(t), n);
1067
- }, t.addHook = function(e, t) {
1068
- typeof t == "function" && ue(k[e], t);
1069
- }, t.removeHook = function(e, t) {
1070
- if (t !== void 0) {
1071
- let n = ce(k[e], t);
1072
- return n === -1 ? void 0 : de(k[e], n, 1)[0];
1073
- }
1074
- return le(k[e]);
1075
- }, t.removeHooks = function(e) {
1076
- k[e] = [];
1077
- }, t.removeAllHooks = function() {
1078
- k = Qe();
1079
- }, t;
1080
- }
1081
- var q = $e(), et, tt, nt, rt, it, at, ot, st, ct, lt, ut, dt, ft, pt = /* @__PURE__ */ RegExp("^-{3}\\s*[\\n\\r](.*?)[\\n\\r]-{3}\\s*[\\n\\r]+", "s"), mt = /%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi, ht = /\s*%%.*\n/gm, gt = (et = class extends Error {
1082
- constructor(e) {
1083
- super(e), this.name = "UnknownDiagramError";
1084
- }
1085
- }, a(et, "UnknownDiagramError"), et), _t = {}, vt = /* @__PURE__ */ a(function(e, t) {
1086
- e = e.replace(pt, "").replace(mt, "").replace(ht, "\n");
1087
- for (let [n, { detector: r }] of Object.entries(_t)) if (r(e, t)) return n;
1088
- throw new gt(`No diagram type detected matching given configuration for text: ${e}`);
1089
- }, "detectType"), yt = /* @__PURE__ */ a((...e) => {
1090
- for (let { id: t, detector: n, loader: r } of e) bt(t, n, r);
1091
- }, "registerLazyLoadedDiagrams"), bt = /* @__PURE__ */ a((e, t, n) => {
1092
- _t[e] && o.warn(`Detector with key ${e} already exists. Overwriting.`), _t[e] = {
1093
- detector: t,
1094
- loader: n
1095
- }, o.debug(`Detector with key ${e} added${n ? " with loader" : ""}`);
1096
- }, "addDetector"), xt = /* @__PURE__ */ a((e) => _t[e].loader, "getDiagramLoader"), St = /* @__PURE__ */ a((e, t, { depth: n = 2, clobber: r = !1 } = {}) => {
1097
- let i = {
1098
- depth: n,
1099
- clobber: r
1100
- };
1101
- return Array.isArray(t) && !Array.isArray(e) ? (t.forEach((t) => St(e, t, i)), e) : Array.isArray(t) && Array.isArray(e) ? (t.forEach((t) => {
1102
- e.includes(t) || e.push(t);
1103
- }), 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) => {
1104
- 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] = St(e[i], t[i], {
1105
- depth: n - 1,
1106
- clobber: r
1107
- })) : (r || typeof e[i] != "object" && typeof t[i] != "object") && (e[i] = t[i]);
1108
- }), e);
1109
- }, "assignWithDepth"), J = St, Y = "#ffffff", Ct = "#f2f2f2", X = /* @__PURE__ */ a((e, t) => t ? D(e, {
1110
- s: -40,
1111
- l: 10
1112
- }) : D(e, {
1113
- s: -40,
1114
- l: -10
1115
- }), "mkBorder"), wt = (tt = class {
1116
- constructor() {
1117
- 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))";
1118
- }
1119
- updateColors() {
1120
- var e, t, n, r, i, a, o, s, c, l, u, d, f, p, m, h, g, _, v, y, b, x, S, w, ee, k, A, j, M, te, ne, re, N, P, ie, F, I, L, ae, oe, R, se, z, ce;
1121
- if (this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#333"), this.secondaryColor = this.secondaryColor || D(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || D(this.primaryColor, {
1122
- h: 180,
1123
- l: 5
1124
- }), this.primaryBorderColor = this.primaryBorderColor || X(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || X(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || X(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || X(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#333", this.secondaryTextColor = this.secondaryTextColor || O(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || O(this.tertiaryColor), this.lineColor = this.lineColor || O(this.background), this.arrowheadColor = this.arrowheadColor || O(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 ? E(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 || E(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || O(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 || T(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 || E(this.mainBkg, 5) || "#ffffff", this.rowEven = this.rowEven || E(this.mainBkg, 10)) : (this.rowOdd = this.rowOdd || T(this.mainBkg, 75) || "#ffffff", this.rowEven = this.rowEven || T(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 || D(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || D(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || D(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || D(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || D(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || D(this.primaryColor, {
1125
- h: 210,
1126
- l: 150
1127
- }), this.cScale9 = this.cScale9 || D(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || D(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || D(this.primaryColor, { h: 330 }), this.darkMode) for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = E(this["cScale" + e], 75);
1128
- else for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = E(this["cScale" + e], 25);
1129
- for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || O(this["cScale" + e]);
1130
- for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] || T(this["cScale" + e], 10) : this["cScalePeer" + e] = this["cScalePeer" + e] || E(this["cScale" + e], 10);
1131
- this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
1132
- for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
1133
- let le = this.darkMode ? -4 : -1;
1134
- for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || D(this.mainBkg, {
1135
- h: 180,
1136
- s: -15,
1137
- l: le * (5 + e * 3)
1138
- }), this["surfacePeer" + e] = this["surfacePeer" + e] || D(this.mainBkg, {
1139
- h: 180,
1140
- s: -15,
1141
- l: le * (8 + e * 3)
1142
- });
1143
- this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || this.primaryColor, this.fillType1 = this.fillType1 || this.secondaryColor, this.fillType2 = this.fillType2 || D(this.primaryColor, { h: 64 }), this.fillType3 = this.fillType3 || D(this.secondaryColor, { h: 64 }), this.fillType4 = this.fillType4 || D(this.primaryColor, { h: -64 }), this.fillType5 = this.fillType5 || D(this.secondaryColor, { h: -64 }), this.fillType6 = this.fillType6 || D(this.primaryColor, { h: 128 }), this.fillType7 = this.fillType7 || D(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 || D(this.primaryColor, { l: -10 }), this.pie5 = this.pie5 || D(this.secondaryColor, { l: -10 }), this.pie6 = this.pie6 || D(this.tertiaryColor, { l: -10 }), this.pie7 = this.pie7 || D(this.primaryColor, {
1144
- h: 60,
1145
- l: -10
1146
- }), this.pie8 = this.pie8 || D(this.primaryColor, {
1147
- h: -60,
1148
- l: -10
1149
- }), this.pie9 = this.pie9 || D(this.primaryColor, {
1150
- h: 120,
1151
- l: 0
1152
- }), this.pie10 = this.pie10 || D(this.primaryColor, {
1153
- h: 60,
1154
- l: -20
1155
- }), this.pie11 = this.pie11 || D(this.primaryColor, {
1156
- h: -60,
1157
- l: -20
1158
- }), this.pie12 = this.pie12 || D(this.primaryColor, {
1159
- h: 120,
1160
- l: -10
1161
- }), 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 = (e = this.venn1) == null ? D(this.primaryColor, { l: -30 }) : e, this.venn2 = (t = this.venn2) == null ? D(this.secondaryColor, { l: -30 }) : t, this.venn3 = (n = this.venn3) == null ? D(this.tertiaryColor, { l: -30 }) : n, this.venn4 = (r = this.venn4) == null ? D(this.primaryColor, {
1162
- h: 60,
1163
- l: -30
1164
- }) : r, this.venn5 = (i = this.venn5) == null ? D(this.primaryColor, {
1165
- h: -60,
1166
- l: -30
1167
- }) : i, this.venn6 = (a = this.venn6) == null ? D(this.secondaryColor, {
1168
- h: 60,
1169
- l: -30
1170
- }) : a, this.venn7 = (o = this.venn7) == null ? D(this.primaryColor, {
1171
- h: 120,
1172
- l: -30
1173
- }) : o, this.venn8 = (s = this.venn8) == null ? D(this.secondaryColor, {
1174
- h: 120,
1175
- l: -30
1176
- }) : s, this.vennTitleTextColor = (c = this.vennTitleTextColor) == null ? this.titleColor : c, this.vennSetTextColor = (l = this.vennSetTextColor) == null ? this.textColor : l, this.radar = {
1177
- axisColor: ((u = this.radar) == null ? void 0 : u.axisColor) || this.lineColor,
1178
- axisStrokeWidth: ((d = this.radar) == null ? void 0 : d.axisStrokeWidth) || 2,
1179
- axisLabelFontSize: ((f = this.radar) == null ? void 0 : f.axisLabelFontSize) || 12,
1180
- curveOpacity: ((p = this.radar) == null ? void 0 : p.curveOpacity) || .5,
1181
- curveStrokeWidth: ((m = this.radar) == null ? void 0 : m.curveStrokeWidth) || 2,
1182
- graticuleColor: ((h = this.radar) == null ? void 0 : h.graticuleColor) || "#DEDEDE",
1183
- graticuleStrokeWidth: ((g = this.radar) == null ? void 0 : g.graticuleStrokeWidth) || 1,
1184
- graticuleOpacity: ((_ = this.radar) == null ? void 0 : _.graticuleOpacity) || .3,
1185
- legendBoxSize: ((v = this.radar) == null ? void 0 : v.legendBoxSize) || 12,
1186
- legendFontSize: ((y = this.radar) == null ? void 0 : y.legendFontSize) || 12
1187
- }, this.wardleyEvolutionColor = this.wardleyEvolutionColor || "#dc3545", this.wardley = {
1188
- backgroundColor: ((b = this.wardley) == null ? void 0 : b.backgroundColor) || this.background,
1189
- axisColor: ((x = this.wardley) == null ? void 0 : x.axisColor) || this.lineColor,
1190
- axisTextColor: ((S = this.wardley) == null ? void 0 : S.axisTextColor) || this.primaryTextColor,
1191
- gridColor: ((w = this.wardley) == null ? void 0 : w.gridColor) || this.gridColor,
1192
- componentFill: ((ee = this.wardley) == null ? void 0 : ee.componentFill) || this.background,
1193
- componentStroke: ((k = this.wardley) == null ? void 0 : k.componentStroke) || this.lineColor,
1194
- componentLabelColor: ((A = this.wardley) == null ? void 0 : A.componentLabelColor) || this.primaryTextColor,
1195
- linkStroke: ((j = this.wardley) == null ? void 0 : j.linkStroke) || this.lineColor,
1196
- evolutionStroke: ((M = this.wardley) == null ? void 0 : M.evolutionStroke) || this.wardleyEvolutionColor,
1197
- annotationStroke: ((te = this.wardley) == null ? void 0 : te.annotationStroke) || this.lineColor,
1198
- annotationTextColor: ((ne = this.wardley) == null ? void 0 : ne.annotationTextColor) || this.primaryTextColor,
1199
- annotationFill: ((re = this.wardley) == null ? void 0 : re.annotationFill) || this.background
1200
- }, 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 || D(this.primaryColor, {
1201
- r: 5,
1202
- g: 5,
1203
- b: 5
1204
- }), this.quadrant3Fill = this.quadrant3Fill || D(this.primaryColor, {
1205
- r: 10,
1206
- g: 10,
1207
- b: 10
1208
- }), this.quadrant4Fill = this.quadrant4Fill || D(this.primaryColor, {
1209
- r: 15,
1210
- g: 15,
1211
- b: 15
1212
- }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || D(this.primaryTextColor, {
1213
- r: -5,
1214
- g: -5,
1215
- b: -5
1216
- }), this.quadrant3TextFill = this.quadrant3TextFill || D(this.primaryTextColor, {
1217
- r: -10,
1218
- g: -10,
1219
- b: -10
1220
- }), this.quadrant4TextFill = this.quadrant4TextFill || D(this.primaryTextColor, {
1221
- r: -15,
1222
- g: -15,
1223
- b: -15
1224
- }), this.quadrantPointFill = this.quadrantPointFill || C(this.quadrant1Fill) ? T(this.quadrant1Fill) : E(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 = {
1225
- backgroundColor: ((N = this.xyChart) == null ? void 0 : N.backgroundColor) || this.background,
1226
- titleColor: ((P = this.xyChart) == null ? void 0 : P.titleColor) || this.primaryTextColor,
1227
- dataLabelColor: ((ie = this.xyChart) == null ? void 0 : ie.dataLabelColor) || this.primaryTextColor,
1228
- xAxisTitleColor: ((F = this.xyChart) == null ? void 0 : F.xAxisTitleColor) || this.primaryTextColor,
1229
- xAxisLabelColor: ((I = this.xyChart) == null ? void 0 : I.xAxisLabelColor) || this.primaryTextColor,
1230
- xAxisTickColor: ((L = this.xyChart) == null ? void 0 : L.xAxisTickColor) || this.primaryTextColor,
1231
- xAxisLineColor: ((ae = this.xyChart) == null ? void 0 : ae.xAxisLineColor) || this.primaryTextColor,
1232
- yAxisTitleColor: ((oe = this.xyChart) == null ? void 0 : oe.yAxisTitleColor) || this.primaryTextColor,
1233
- yAxisLabelColor: ((R = this.xyChart) == null ? void 0 : R.yAxisLabelColor) || this.primaryTextColor,
1234
- yAxisTickColor: ((se = this.xyChart) == null ? void 0 : se.yAxisTickColor) || this.primaryTextColor,
1235
- yAxisLineColor: ((z = this.xyChart) == null ? void 0 : z.yAxisLineColor) || this.primaryTextColor,
1236
- plotColorPalette: ((ce = this.xyChart) == null ? void 0 : ce.plotColorPalette) || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
1237
- }, 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 ? E(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 || D(this.primaryColor, { h: -30 }), this.git4 = this.git4 || D(this.primaryColor, { h: -60 }), this.git5 = this.git5 || D(this.primaryColor, { h: -90 }), this.git6 = this.git6 || D(this.primaryColor, { h: 60 }), this.git7 = this.git7 || D(this.primaryColor, { h: 120 }), this.darkMode ? (this.git0 = T(this.git0, 25), this.git1 = T(this.git1, 25), this.git2 = T(this.git2, 25), this.git3 = T(this.git3, 25), this.git4 = T(this.git4, 25), this.git5 = T(this.git5, 25), this.git6 = T(this.git6, 25), this.git7 = T(this.git7, 25)) : (this.git0 = E(this.git0, 25), this.git1 = E(this.git1, 25), this.git2 = E(this.git2, 25), this.git3 = E(this.git3, 25), this.git4 = E(this.git4, 25), this.git5 = E(this.git5, 25), this.git6 = E(this.git6, 25), this.git7 = E(this.git7, 25)), this.gitInv0 = this.gitInv0 || O(this.git0), this.gitInv1 = this.gitInv1 || O(this.git1), this.gitInv2 = this.gitInv2 || O(this.git2), this.gitInv3 = this.gitInv3 || O(this.git3), this.gitInv4 = this.gitInv4 || O(this.git4), this.gitInv5 = this.gitInv5 || O(this.git5), this.gitInv6 = this.gitInv6 || O(this.git6), this.gitInv7 = this.gitInv7 || O(this.git7), this.branchLabelColor = this.branchLabelColor || (this.darkMode ? "black" : this.labelTextColor), this.gitBranchLabel0 = this.gitBranchLabel0 || this.branchLabelColor, this.gitBranchLabel1 = this.gitBranchLabel1 || this.branchLabelColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.branchLabelColor, this.gitBranchLabel3 = this.gitBranchLabel3 || this.branchLabelColor, this.gitBranchLabel4 = this.gitBranchLabel4 || this.branchLabelColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.branchLabelColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.branchLabelColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.branchLabelColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.emUiFill = this.emUiFill || "white", this.emUiStroke = this.emUiStroke || "#dbdada", this.emProcessorFill = this.emProcessorFill || "#edb3f6", this.emProcessorStroke = this.emProcessorStroke || "#b88cbf", this.emReadModelFill = this.emReadModelFill || "#d3f1a2", this.emReadModelStroke = this.emReadModelStroke || "#a3b732", this.emCommandFill = this.emCommandFill || "#bcd6fe", this.emCommandStroke = this.emCommandStroke || "#679ac3", this.emEventFill = this.emEventFill || "#ffb778", this.emEventStroke = this.emEventStroke || "#c19a0f", this.emSwimlaneBackgroundOdd = this.emSwimlaneBackgroundOdd || "rgb(250,250,250)", this.emSwimlaneBackgroundStroke = this.emSwimlaneBackgroundStroke || "rgb(240,240,240)", this.emArrowhead = this.emArrowhead || this.lineColor, this.emRelationStroke = this.emRelationStroke || this.lineColor, this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || Y, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || Ct, this.gradientStart = this.primaryBorderColor, this.gradientStop = this.secondaryBorderColor;
1238
- }
1239
- calculate(e) {
1240
- if (typeof e != "object") {
1241
- this.updateColors();
1242
- return;
1243
- }
1244
- let t = Object.keys(e);
1245
- t.forEach((t) => {
1246
- this[t] = e[t];
1247
- }), this.updateColors(), t.forEach((t) => {
1248
- this[t] = e[t];
1249
- });
1250
- }
1251
- }, a(tt, "Theme"), tt), Tt = /* @__PURE__ */ a((e) => {
1252
- let t = new wt();
1253
- return t.calculate(e), t;
1254
- }, "getThemeVariables"), Et = (nt = class {
1255
- constructor() {
1256
- this.background = "#333", this.primaryColor = "#1f2020", this.secondaryColor = T(this.primaryColor, 16), this.tertiaryColor = D(this.primaryColor, { h: -160 }), this.primaryBorderColor = O(this.background), this.secondaryBorderColor = X(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = X(this.tertiaryColor, this.darkMode), this.primaryTextColor = O(this.primaryColor), this.secondaryTextColor = O(this.secondaryColor), this.tertiaryTextColor = O(this.tertiaryColor), this.lineColor = O(this.background), this.textColor = O(this.background), this.mainBkg = "#1f2020", this.secondBkg = "calculated", this.mainContrastColor = "lightgrey", this.darkTextColor = T(O("#323D47"), 10), this.lineColor = "calculated", this.border1 = "#ccc", this.border2 = b(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 = E("#EAE8D9", 30), this.altSectionBkgColor = "calculated", this.sectionBkgColor2 = "#EAE8D9", this.excludeBkgColor = E(this.sectionBkgColor, 10), this.taskBorderColor = b(255, 255, 255, 70), this.taskBkgColor = "calculated", this.taskTextColor = "calculated", this.taskTextLightColor = "calculated", this.taskTextOutsideColor = "calculated", this.taskTextClickableColor = "#003163", this.activeTaskBorderColor = b(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 || T(this.mainBkg, 5) || "#ffffff", this.rowEven = this.rowEven || E(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";
1257
- }
1258
- updateColors() {
1259
- var e, t, n, r, i, a, o, s, c, l, u, d, f, p, m, h, g, _, v, y, b, x, S, w, ee, k, A, j, M, te, ne, re, N, P, ie, F;
1260
- this.secondBkg = T(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 = T(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 = T(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 = O(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 = D(this.primaryColor, { h: 64 }), this.fillType3 = D(this.secondaryColor, { h: 64 }), this.fillType4 = D(this.primaryColor, { h: -64 }), this.fillType5 = D(this.secondaryColor, { h: -64 }), this.fillType6 = D(this.primaryColor, { h: 128 }), this.fillType7 = D(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 || D(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || D(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || D(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || D(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || D(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || D(this.primaryColor, { h: 210 }), this.cScale9 = this.cScale9 || D(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || D(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || D(this.primaryColor, { h: 330 });
1261
- for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || O(this["cScale" + e]);
1262
- for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScalePeer" + e] = this["cScalePeer" + e] || T(this["cScale" + e], 10);
1263
- for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || D(this.mainBkg, {
1264
- h: 30,
1265
- s: -30,
1266
- l: -(-10 + e * 4)
1267
- }), this["surfacePeer" + e] = this["surfacePeer" + e] || D(this.mainBkg, {
1268
- h: 30,
1269
- s: -30,
1270
- l: -(-7 + e * 4)
1271
- });
1272
- this.scaleLabelColor = this.scaleLabelColor || (this.darkMode ? "black" : this.labelTextColor);
1273
- for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
1274
- for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["pie" + e] = this["cScale" + e];
1275
- 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";
1276
- for (let e = 0; e < 8; e++) {
1277
- var I;
1278
- this["venn" + (e + 1)] = (I = this["venn" + (e + 1)]) == null ? T(this["cScale" + e], 30) : I;
1279
- }
1280
- this.vennTitleTextColor = (e = this.vennTitleTextColor) == null ? this.titleColor : e, this.vennSetTextColor = (t = this.vennSetTextColor) == null ? this.textColor : t, this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || D(this.primaryColor, {
1281
- r: 5,
1282
- g: 5,
1283
- b: 5
1284
- }), this.quadrant3Fill = this.quadrant3Fill || D(this.primaryColor, {
1285
- r: 10,
1286
- g: 10,
1287
- b: 10
1288
- }), this.quadrant4Fill = this.quadrant4Fill || D(this.primaryColor, {
1289
- r: 15,
1290
- g: 15,
1291
- b: 15
1292
- }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || D(this.primaryTextColor, {
1293
- r: -5,
1294
- g: -5,
1295
- b: -5
1296
- }), this.quadrant3TextFill = this.quadrant3TextFill || D(this.primaryTextColor, {
1297
- r: -10,
1298
- g: -10,
1299
- b: -10
1300
- }), this.quadrant4TextFill = this.quadrant4TextFill || D(this.primaryTextColor, {
1301
- r: -15,
1302
- g: -15,
1303
- b: -15
1304
- }), this.quadrantPointFill = this.quadrantPointFill || C(this.quadrant1Fill) ? T(this.quadrant1Fill) : E(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 = {
1305
- backgroundColor: ((n = this.xyChart) == null ? void 0 : n.backgroundColor) || this.background,
1306
- titleColor: ((r = this.xyChart) == null ? void 0 : r.titleColor) || this.primaryTextColor,
1307
- dataLabelColor: ((i = this.xyChart) == null ? void 0 : i.dataLabelColor) || this.primaryTextColor,
1308
- xAxisTitleColor: ((a = this.xyChart) == null ? void 0 : a.xAxisTitleColor) || this.primaryTextColor,
1309
- xAxisLabelColor: ((o = this.xyChart) == null ? void 0 : o.xAxisLabelColor) || this.primaryTextColor,
1310
- xAxisTickColor: ((s = this.xyChart) == null ? void 0 : s.xAxisTickColor) || this.primaryTextColor,
1311
- xAxisLineColor: ((c = this.xyChart) == null ? void 0 : c.xAxisLineColor) || this.primaryTextColor,
1312
- yAxisTitleColor: ((l = this.xyChart) == null ? void 0 : l.yAxisTitleColor) || this.primaryTextColor,
1313
- yAxisLabelColor: ((u = this.xyChart) == null ? void 0 : u.yAxisLabelColor) || this.primaryTextColor,
1314
- yAxisTickColor: ((d = this.xyChart) == null ? void 0 : d.yAxisTickColor) || this.primaryTextColor,
1315
- yAxisLineColor: ((f = this.xyChart) == null ? void 0 : f.yAxisLineColor) || this.primaryTextColor,
1316
- plotColorPalette: ((p = this.xyChart) == null ? void 0 : p.plotColorPalette) || "#3498db,#2ecc71,#e74c3c,#f1c40f,#bdc3c7,#ffffff,#34495e,#9b59b6,#1abc9c,#e67e22"
1317
- }, this.packet = {
1318
- startByteColor: this.primaryTextColor,
1319
- endByteColor: this.primaryTextColor,
1320
- labelColor: this.primaryTextColor,
1321
- titleColor: this.primaryTextColor,
1322
- blockStrokeColor: this.primaryTextColor,
1323
- blockFillColor: this.background
1324
- }, this.radar = {
1325
- axisColor: ((m = this.radar) == null ? void 0 : m.axisColor) || this.lineColor,
1326
- axisStrokeWidth: ((h = this.radar) == null ? void 0 : h.axisStrokeWidth) || 2,
1327
- axisLabelFontSize: ((g = this.radar) == null ? void 0 : g.axisLabelFontSize) || 12,
1328
- curveOpacity: ((_ = this.radar) == null ? void 0 : _.curveOpacity) || .5,
1329
- curveStrokeWidth: ((v = this.radar) == null ? void 0 : v.curveStrokeWidth) || 2,
1330
- graticuleColor: ((y = this.radar) == null ? void 0 : y.graticuleColor) || "#DEDEDE",
1331
- graticuleStrokeWidth: ((b = this.radar) == null ? void 0 : b.graticuleStrokeWidth) || 1,
1332
- graticuleOpacity: ((x = this.radar) == null ? void 0 : x.graticuleOpacity) || .3,
1333
- legendBoxSize: ((S = this.radar) == null ? void 0 : S.legendBoxSize) || 12,
1334
- legendFontSize: ((w = this.radar) == null ? void 0 : w.legendFontSize) || 12
1335
- }, this.wardleyEvolutionColor = this.wardleyEvolutionColor || "#ff6b6b", this.wardley = {
1336
- backgroundColor: ((ee = this.wardley) == null ? void 0 : ee.backgroundColor) || this.background,
1337
- axisColor: ((k = this.wardley) == null ? void 0 : k.axisColor) || this.lineColor,
1338
- axisTextColor: ((A = this.wardley) == null ? void 0 : A.axisTextColor) || this.primaryTextColor,
1339
- gridColor: ((j = this.wardley) == null ? void 0 : j.gridColor) || this.gridColor,
1340
- componentFill: ((M = this.wardley) == null ? void 0 : M.componentFill) || this.mainBkg,
1341
- componentStroke: ((te = this.wardley) == null ? void 0 : te.componentStroke) || this.lineColor,
1342
- componentLabelColor: ((ne = this.wardley) == null ? void 0 : ne.componentLabelColor) || this.primaryTextColor,
1343
- linkStroke: ((re = this.wardley) == null ? void 0 : re.linkStroke) || this.lineColor,
1344
- evolutionStroke: ((N = this.wardley) == null ? void 0 : N.evolutionStroke) || this.wardleyEvolutionColor,
1345
- annotationStroke: ((P = this.wardley) == null ? void 0 : P.annotationStroke) || this.lineColor,
1346
- annotationTextColor: ((ie = this.wardley) == null ? void 0 : ie.annotationTextColor) || this.primaryTextColor,
1347
- annotationFill: ((F = this.wardley) == null ? void 0 : F.annotationFill) || this.mainBkg
1348
- }, 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 ? E(this.secondaryColor, 30) : this.secondaryColor), this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.git0 = T(this.secondaryColor, 20), this.git1 = T(this.pie2 || this.secondaryColor, 20), this.git2 = T(this.pie3 || this.tertiaryColor, 20), this.git3 = T(this.pie4 || D(this.primaryColor, { h: -30 }), 20), this.git4 = T(this.pie5 || D(this.primaryColor, { h: -60 }), 20), this.git5 = T(this.pie6 || D(this.primaryColor, { h: -90 }), 10), this.git6 = T(this.pie7 || D(this.primaryColor, { h: 60 }), 10), this.git7 = T(this.pie8 || D(this.primaryColor, { h: 120 }), 20), this.gitInv0 = this.gitInv0 || O(this.git0), this.gitInv1 = this.gitInv1 || O(this.git1), this.gitInv2 = this.gitInv2 || O(this.git2), this.gitInv3 = this.gitInv3 || O(this.git3), this.gitInv4 = this.gitInv4 || O(this.git4), this.gitInv5 = this.gitInv5 || O(this.git5), this.gitInv6 = this.gitInv6 || O(this.git6), this.gitInv7 = this.gitInv7 || O(this.git7), this.gitBranchLabel0 = this.gitBranchLabel0 || O(this.labelTextColor), this.gitBranchLabel1 = this.gitBranchLabel1 || this.labelTextColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.labelTextColor, this.gitBranchLabel3 = this.gitBranchLabel3 || O(this.labelTextColor), this.gitBranchLabel4 = this.gitBranchLabel4 || this.labelTextColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.labelTextColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.labelTextColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.labelTextColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.emUiFill = this.emUiFill || "#2d2d2d", this.emUiStroke = this.emUiStroke || "#555", this.emProcessorFill = this.emProcessorFill || T("#5a3d5c", 10), this.emProcessorStroke = this.emProcessorStroke || "#8a6d8c", this.emReadModelFill = this.emReadModelFill || T("#3d5a2d", 10), this.emReadModelStroke = this.emReadModelStroke || "#6d8c5c", this.emCommandFill = this.emCommandFill || T("#2d3d5a", 10), this.emCommandStroke = this.emCommandStroke || "#5c6d8c", this.emEventFill = this.emEventFill || T("#5a452d", 10), this.emEventStroke = this.emEventStroke || "#8c755c", this.emSwimlaneBackgroundOdd = this.emSwimlaneBackgroundOdd || T(this.background, 5), this.emSwimlaneBackgroundStroke = this.emSwimlaneBackgroundStroke || T(this.background, 12), this.emArrowhead = this.emArrowhead || this.lineColor, this.emRelationStroke = this.emRelationStroke || this.lineColor, this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || T(this.background, 12), this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || T(this.background, 2), this.nodeBorder = this.nodeBorder || "#999";
1349
- }
1350
- calculate(e) {
1351
- if (typeof e != "object") {
1352
- this.updateColors();
1353
- return;
1354
- }
1355
- let t = Object.keys(e);
1356
- t.forEach((t) => {
1357
- this[t] = e[t];
1358
- }), this.updateColors(), t.forEach((t) => {
1359
- this[t] = e[t];
1360
- });
1361
- }
1362
- }, a(nt, "Theme"), nt), Dt = /* @__PURE__ */ a((e) => {
1363
- let t = new Et();
1364
- return t.calculate(e), t;
1365
- }, "getThemeVariables"), Z = (rt = class {
1366
- constructor() {
1367
- this.background = "#f4f4f4", this.primaryColor = "#ECECFF", this.secondaryColor = D(this.primaryColor, { h: 120 }), this.secondaryColor = "#ffffde", this.tertiaryColor = D(this.primaryColor, { h: -160 }), this.primaryBorderColor = X(this.primaryColor, this.darkMode), this.secondaryBorderColor = X(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = X(this.tertiaryColor, this.darkMode), this.primaryTextColor = O(this.primaryColor), this.secondaryTextColor = O(this.secondaryColor), this.tertiaryTextColor = O(this.tertiaryColor), this.lineColor = O(this.background), this.textColor = O(this.background), this.background = "white", this.mainBkg = "#ECECFF", this.secondBkg = "#ffffde", this.lineColor = "#333333", this.border1 = "#9370DB", this.primaryBorderColor = X(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 = b(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();
1368
- }
1369
- updateColors() {
1370
- var e, t, n, r, i, a, o, s, c, l, u, d, f, p, m, h, g, _, v, y, b, x, S, w, ee, k, A, j, M, te, ne, re, N, P, ie, F, I, L, ae, oe, R, se, z, ce;
1371
- this.cScale0 = this.cScale0 || this.primaryColor, this.cScale1 = this.cScale1 || this.secondaryColor, this.cScale2 = this.cScale2 || this.tertiaryColor, this.cScale3 = this.cScale3 || D(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || D(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || D(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || D(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || D(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || D(this.primaryColor, { h: 210 }), this.cScale9 = this.cScale9 || D(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || D(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || D(this.primaryColor, { h: 330 }), this.cScalePeer1 = this.cScalePeer1 || E(this.secondaryColor, 45), this.cScalePeer2 = this.cScalePeer2 || E(this.tertiaryColor, 40);
1372
- for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = E(this["cScale" + e], 10), this["cScalePeer" + e] = this["cScalePeer" + e] || E(this["cScale" + e], 25);
1373
- for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || D(this["cScale" + e], { h: 180 });
1374
- for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || D(this.mainBkg, {
1375
- h: 30,
1376
- l: -(5 + e * 5)
1377
- }), this["surfacePeer" + e] = this["surfacePeer" + e] || D(this.mainBkg, {
1378
- h: 30,
1379
- l: -(7 + e * 5)
1380
- });
1381
- if (this.scaleLabelColor = this.scaleLabelColor !== "calculated" && this.scaleLabelColor ? this.scaleLabelColor : this.labelTextColor, this.labelTextColor !== "calculated") {
1382
- this.cScaleLabel0 = this.cScaleLabel0 || O(this.labelTextColor), this.cScaleLabel3 = this.cScaleLabel3 || O(this.labelTextColor);
1383
- for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.labelTextColor;
1384
- }
1385
- 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 || T(this.primaryColor, 75) || "#ffffff", this.rowEven = this.rowEven || T(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 = D(this.primaryColor, { h: 64 }), this.fillType3 = D(this.secondaryColor, { h: 64 }), this.fillType4 = D(this.primaryColor, { h: -64 }), this.fillType5 = D(this.secondaryColor, { h: -64 }), this.fillType6 = D(this.primaryColor, { h: 128 }), this.fillType7 = D(this.secondaryColor, { h: 128 }), this.pie1 = this.pie1 || this.primaryColor, this.pie2 = this.pie2 || this.secondaryColor, this.pie3 = this.pie3 || D(this.tertiaryColor, { l: -40 }), this.pie4 = this.pie4 || D(this.primaryColor, { l: -10 }), this.pie5 = this.pie5 || D(this.secondaryColor, { l: -30 }), this.pie6 = this.pie6 || D(this.tertiaryColor, { l: -20 }), this.pie7 = this.pie7 || D(this.primaryColor, {
1386
- h: 60,
1387
- l: -20
1388
- }), this.pie8 = this.pie8 || D(this.primaryColor, {
1389
- h: -60,
1390
- l: -40
1391
- }), this.pie9 = this.pie9 || D(this.primaryColor, {
1392
- h: 120,
1393
- l: -40
1394
- }), this.pie10 = this.pie10 || D(this.primaryColor, {
1395
- h: 60,
1396
- l: -40
1397
- }), this.pie11 = this.pie11 || D(this.primaryColor, {
1398
- h: -90,
1399
- l: -40
1400
- }), this.pie12 = this.pie12 || D(this.primaryColor, {
1401
- h: 120,
1402
- l: -30
1403
- }), 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 = (e = this.venn1) == null ? D(this.primaryColor, { l: -30 }) : e, this.venn2 = (t = this.venn2) == null ? D(this.secondaryColor, { l: -30 }) : t, this.venn3 = (n = this.venn3) == null ? D(this.tertiaryColor, { l: -40 }) : n, this.venn4 = (r = this.venn4) == null ? D(this.primaryColor, {
1404
- h: 60,
1405
- l: -30
1406
- }) : r, this.venn5 = (i = this.venn5) == null ? D(this.primaryColor, {
1407
- h: -60,
1408
- l: -30
1409
- }) : i, this.venn6 = (a = this.venn6) == null ? D(this.secondaryColor, {
1410
- h: 60,
1411
- l: -30
1412
- }) : a, this.venn7 = (o = this.venn7) == null ? D(this.primaryColor, {
1413
- h: 120,
1414
- l: -30
1415
- }) : o, this.venn8 = (s = this.venn8) == null ? D(this.secondaryColor, {
1416
- h: 120,
1417
- l: -30
1418
- }) : s, this.vennTitleTextColor = (c = this.vennTitleTextColor) == null ? this.titleColor : c, this.vennSetTextColor = (l = this.vennSetTextColor) == null ? this.textColor : l, this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || D(this.primaryColor, {
1419
- r: 5,
1420
- g: 5,
1421
- b: 5
1422
- }), this.quadrant3Fill = this.quadrant3Fill || D(this.primaryColor, {
1423
- r: 10,
1424
- g: 10,
1425
- b: 10
1426
- }), this.quadrant4Fill = this.quadrant4Fill || D(this.primaryColor, {
1427
- r: 15,
1428
- g: 15,
1429
- b: 15
1430
- }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || D(this.primaryTextColor, {
1431
- r: -5,
1432
- g: -5,
1433
- b: -5
1434
- }), this.quadrant3TextFill = this.quadrant3TextFill || D(this.primaryTextColor, {
1435
- r: -10,
1436
- g: -10,
1437
- b: -10
1438
- }), this.quadrant4TextFill = this.quadrant4TextFill || D(this.primaryTextColor, {
1439
- r: -15,
1440
- g: -15,
1441
- b: -15
1442
- }), this.quadrantPointFill = this.quadrantPointFill || C(this.quadrant1Fill) ? T(this.quadrant1Fill) : E(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 = {
1443
- axisColor: ((u = this.radar) == null ? void 0 : u.axisColor) || this.lineColor,
1444
- axisStrokeWidth: ((d = this.radar) == null ? void 0 : d.axisStrokeWidth) || 2,
1445
- axisLabelFontSize: ((f = this.radar) == null ? void 0 : f.axisLabelFontSize) || 12,
1446
- curveOpacity: ((p = this.radar) == null ? void 0 : p.curveOpacity) || .5,
1447
- curveStrokeWidth: ((m = this.radar) == null ? void 0 : m.curveStrokeWidth) || 2,
1448
- graticuleColor: ((h = this.radar) == null ? void 0 : h.graticuleColor) || "#DEDEDE",
1449
- graticuleStrokeWidth: ((g = this.radar) == null ? void 0 : g.graticuleStrokeWidth) || 1,
1450
- graticuleOpacity: ((_ = this.radar) == null ? void 0 : _.graticuleOpacity) || .3,
1451
- legendBoxSize: ((v = this.radar) == null ? void 0 : v.legendBoxSize) || 12,
1452
- legendFontSize: ((y = this.radar) == null ? void 0 : y.legendFontSize) || 12
1453
- }, this.wardleyEvolutionColor = this.wardleyEvolutionColor || "#dc3545", this.wardley = {
1454
- backgroundColor: ((b = this.wardley) == null ? void 0 : b.backgroundColor) || this.background,
1455
- axisColor: ((x = this.wardley) == null ? void 0 : x.axisColor) || this.lineColor,
1456
- axisTextColor: ((S = this.wardley) == null ? void 0 : S.axisTextColor) || this.primaryTextColor,
1457
- gridColor: ((w = this.wardley) == null ? void 0 : w.gridColor) || this.gridColor,
1458
- componentFill: ((ee = this.wardley) == null ? void 0 : ee.componentFill) || this.background,
1459
- componentStroke: ((k = this.wardley) == null ? void 0 : k.componentStroke) || this.lineColor,
1460
- componentLabelColor: ((A = this.wardley) == null ? void 0 : A.componentLabelColor) || this.primaryTextColor,
1461
- linkStroke: ((j = this.wardley) == null ? void 0 : j.linkStroke) || this.lineColor,
1462
- evolutionStroke: ((M = this.wardley) == null ? void 0 : M.evolutionStroke) || this.wardleyEvolutionColor,
1463
- annotationStroke: ((te = this.wardley) == null ? void 0 : te.annotationStroke) || this.lineColor,
1464
- annotationTextColor: ((ne = this.wardley) == null ? void 0 : ne.annotationTextColor) || this.primaryTextColor,
1465
- annotationFill: ((re = this.wardley) == null ? void 0 : re.annotationFill) || this.background
1466
- }, this.xyChart = {
1467
- backgroundColor: ((N = this.xyChart) == null ? void 0 : N.backgroundColor) || this.background,
1468
- titleColor: ((P = this.xyChart) == null ? void 0 : P.titleColor) || this.primaryTextColor,
1469
- dataLabelColor: ((ie = this.xyChart) == null ? void 0 : ie.dataLabelColor) || this.primaryTextColor,
1470
- xAxisTitleColor: ((F = this.xyChart) == null ? void 0 : F.xAxisTitleColor) || this.primaryTextColor,
1471
- xAxisLabelColor: ((I = this.xyChart) == null ? void 0 : I.xAxisLabelColor) || this.primaryTextColor,
1472
- xAxisTickColor: ((L = this.xyChart) == null ? void 0 : L.xAxisTickColor) || this.primaryTextColor,
1473
- xAxisLineColor: ((ae = this.xyChart) == null ? void 0 : ae.xAxisLineColor) || this.primaryTextColor,
1474
- yAxisTitleColor: ((oe = this.xyChart) == null ? void 0 : oe.yAxisTitleColor) || this.primaryTextColor,
1475
- yAxisLabelColor: ((R = this.xyChart) == null ? void 0 : R.yAxisLabelColor) || this.primaryTextColor,
1476
- yAxisTickColor: ((se = this.xyChart) == null ? void 0 : se.yAxisTickColor) || this.primaryTextColor,
1477
- yAxisLineColor: ((z = this.xyChart) == null ? void 0 : z.yAxisLineColor) || this.primaryTextColor,
1478
- plotColorPalette: ((ce = this.xyChart) == null ? void 0 : ce.plotColorPalette) || "#ECECFF,#8493A6,#FFC3A0,#DCDDE1,#B8E994,#D1A36F,#C3CDE6,#FFB6C1,#496078,#F8F3E3"
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.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 || D(this.primaryColor, { h: -30 }), this.git4 = this.git4 || D(this.primaryColor, { h: -60 }), this.git5 = this.git5 || D(this.primaryColor, { h: -90 }), this.git6 = this.git6 || D(this.primaryColor, { h: 60 }), this.git7 = this.git7 || D(this.primaryColor, { h: 120 }), this.darkMode ? (this.git0 = T(this.git0, 25), this.git1 = T(this.git1, 25), this.git2 = T(this.git2, 25), this.git3 = T(this.git3, 25), this.git4 = T(this.git4, 25), this.git5 = T(this.git5, 25), this.git6 = T(this.git6, 25), this.git7 = T(this.git7, 25)) : (this.git0 = E(this.git0, 25), this.git1 = E(this.git1, 25), this.git2 = E(this.git2, 25), this.git3 = E(this.git3, 25), this.git4 = E(this.git4, 25), this.git5 = E(this.git5, 25), this.git6 = E(this.git6, 25), this.git7 = E(this.git7, 25)), this.gitInv0 = this.gitInv0 || E(O(this.git0), 25), this.gitInv1 = this.gitInv1 || O(this.git1), this.gitInv2 = this.gitInv2 || O(this.git2), this.gitInv3 = this.gitInv3 || O(this.git3), this.gitInv4 = this.gitInv4 || O(this.git4), this.gitInv5 = this.gitInv5 || O(this.git5), this.gitInv6 = this.gitInv6 || O(this.git6), this.gitInv7 = this.gitInv7 || O(this.git7), this.gitBranchLabel0 = this.gitBranchLabel0 || O(this.labelTextColor), this.gitBranchLabel1 = this.gitBranchLabel1 || this.labelTextColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.labelTextColor, this.gitBranchLabel3 = this.gitBranchLabel3 || O(this.labelTextColor), this.gitBranchLabel4 = this.gitBranchLabel4 || this.labelTextColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.labelTextColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.labelTextColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.labelTextColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.emUiFill = this.emUiFill || "white", this.emUiStroke = this.emUiStroke || "#dbdada", this.emProcessorFill = this.emProcessorFill || "#edb3f6", this.emProcessorStroke = this.emProcessorStroke || "#b88cbf", this.emReadModelFill = this.emReadModelFill || "#d3f1a2", this.emReadModelStroke = this.emReadModelStroke || "#a3b732", this.emCommandFill = this.emCommandFill || "#bcd6fe", this.emCommandStroke = this.emCommandStroke || "#679ac3", this.emEventFill = this.emEventFill || "#ffb778", this.emEventStroke = this.emEventStroke || "#c19a0f", this.emSwimlaneBackgroundOdd = this.emSwimlaneBackgroundOdd || "rgb(250,250,250)", this.emSwimlaneBackgroundStroke = this.emSwimlaneBackgroundStroke || "rgb(240,240,240)", this.emArrowhead = this.emArrowhead || this.lineColor, this.emRelationStroke = this.emRelationStroke || this.lineColor, this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || Y, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || Ct;
1480
- }
1481
- calculate(e) {
1482
- if (Object.keys(this).forEach((e) => {
1483
- this[e] === "calculated" && (this[e] = void 0);
1484
- }), typeof e != "object") {
1485
- this.updateColors();
1486
- return;
1487
- }
1488
- let t = Object.keys(e);
1489
- t.forEach((t) => {
1490
- this[t] = e[t];
1491
- }), this.updateColors(), t.forEach((t) => {
1492
- this[t] = e[t];
1493
- });
1494
- }
1495
- }, a(rt, "Theme"), rt), Ot = /* @__PURE__ */ a((e) => {
1496
- let t = new Z();
1497
- return t.calculate(e), t;
1498
- }, "getThemeVariables"), kt = (it = class {
1499
- constructor() {
1500
- 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 = T("#cde498", 10), this.primaryBorderColor = X(this.primaryColor, this.darkMode), this.secondaryBorderColor = X(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = X(this.tertiaryColor, this.darkMode), this.primaryTextColor = O(this.primaryColor), this.secondaryTextColor = O(this.secondaryColor), this.tertiaryTextColor = O(this.primaryColor), this.lineColor = O(this.background), this.textColor = O(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))";
1501
- }
1502
- updateColors() {
1503
- var e, t, n, r, i, a, o, s, c, l, u, d, f, p, m, h, g, _, v, y, b, x, S, w, ee, k, A, j, M, te, ne, re, N, P, ie, F, I, L, ae, oe, R, se, z, ce;
1504
- this.actorBorder = E(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 || D(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || D(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || D(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || D(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || D(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || D(this.primaryColor, { h: 210 }), this.cScale9 = this.cScale9 || D(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || D(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || D(this.primaryColor, { h: 330 }), this.cScalePeer1 = this.cScalePeer1 || E(this.secondaryColor, 45), this.cScalePeer2 = this.cScalePeer2 || E(this.tertiaryColor, 40);
1505
- for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = E(this["cScale" + e], 10), this["cScalePeer" + e] = this["cScalePeer" + e] || E(this["cScale" + e], 25);
1506
- for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || D(this["cScale" + e], { h: 180 });
1507
- this.scaleLabelColor = this.scaleLabelColor !== "calculated" && this.scaleLabelColor ? this.scaleLabelColor : this.labelTextColor;
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] || D(this.mainBkg, {
1510
- h: 30,
1511
- s: -30,
1512
- l: -(5 + e * 5)
1513
- }), this["surfacePeer" + e] = this["surfacePeer" + e] || D(this.mainBkg, {
1514
- h: 30,
1515
- s: -30,
1516
- l: -(8 + e * 5)
1517
- });
1518
- 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 || T(this.mainBkg, 75) || "#ffffff", this.rowEven = this.rowEven || T(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 = D(this.primaryColor, { h: 64 }), this.fillType3 = D(this.secondaryColor, { h: 64 }), this.fillType4 = D(this.primaryColor, { h: -64 }), this.fillType5 = D(this.secondaryColor, { h: -64 }), this.fillType6 = D(this.primaryColor, { h: 128 }), this.fillType7 = D(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 || D(this.primaryColor, { l: -30 }), this.pie5 = this.pie5 || D(this.secondaryColor, { l: -30 }), this.pie6 = this.pie6 || D(this.tertiaryColor, {
1519
- h: 40,
1520
- l: -40
1521
- }), this.pie7 = this.pie7 || D(this.primaryColor, {
1522
- h: 60,
1523
- l: -10
1524
- }), this.pie8 = this.pie8 || D(this.primaryColor, {
1525
- h: -60,
1526
- l: -10
1527
- }), this.pie9 = this.pie9 || D(this.primaryColor, {
1528
- h: 120,
1529
- l: 0
1530
- }), this.pie10 = this.pie10 || D(this.primaryColor, {
1531
- h: 60,
1532
- l: -50
1533
- }), this.pie11 = this.pie11 || D(this.primaryColor, {
1534
- h: -60,
1535
- l: -50
1536
- }), this.pie12 = this.pie12 || D(this.primaryColor, {
1537
- h: 120,
1538
- l: -50
1539
- }), 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 = (e = this.venn1) == null ? D(this.primaryColor, { l: -30 }) : e, this.venn2 = (t = this.venn2) == null ? D(this.secondaryColor, { l: -30 }) : t, this.venn3 = (n = this.venn3) == null ? D(this.tertiaryColor, { l: -30 }) : n, this.venn4 = (r = this.venn4) == null ? D(this.primaryColor, {
1540
- h: 60,
1541
- l: -30
1542
- }) : r, this.venn5 = (i = this.venn5) == null ? D(this.primaryColor, {
1543
- h: -60,
1544
- l: -30
1545
- }) : i, this.venn6 = (a = this.venn6) == null ? D(this.secondaryColor, {
1546
- h: 60,
1547
- l: -30
1548
- }) : a, this.venn7 = (o = this.venn7) == null ? D(this.primaryColor, {
1549
- h: 120,
1550
- l: -30
1551
- }) : o, this.venn8 = (s = this.venn8) == null ? D(this.secondaryColor, {
1552
- h: 120,
1553
- l: -30
1554
- }) : s, this.vennTitleTextColor = (c = this.vennTitleTextColor) == null ? this.titleColor : c, this.vennSetTextColor = (l = this.vennSetTextColor) == null ? this.textColor : l, this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || D(this.primaryColor, {
1555
- r: 5,
1556
- g: 5,
1557
- b: 5
1558
- }), this.quadrant3Fill = this.quadrant3Fill || D(this.primaryColor, {
1559
- r: 10,
1560
- g: 10,
1561
- b: 10
1562
- }), this.quadrant4Fill = this.quadrant4Fill || D(this.primaryColor, {
1563
- r: 15,
1564
- g: 15,
1565
- b: 15
1566
- }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || D(this.primaryTextColor, {
1567
- r: -5,
1568
- g: -5,
1569
- b: -5
1570
- }), this.quadrant3TextFill = this.quadrant3TextFill || D(this.primaryTextColor, {
1571
- r: -10,
1572
- g: -10,
1573
- b: -10
1574
- }), this.quadrant4TextFill = this.quadrant4TextFill || D(this.primaryTextColor, {
1575
- r: -15,
1576
- g: -15,
1577
- b: -15
1578
- }), this.quadrantPointFill = this.quadrantPointFill || C(this.quadrant1Fill) ? T(this.quadrant1Fill) : E(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 = {
1579
- startByteColor: this.primaryTextColor,
1580
- endByteColor: this.primaryTextColor,
1581
- labelColor: this.primaryTextColor,
1582
- titleColor: this.primaryTextColor,
1583
- blockStrokeColor: this.primaryTextColor,
1584
- blockFillColor: this.mainBkg
1585
- }, this.radar = {
1586
- axisColor: ((u = this.radar) == null ? void 0 : u.axisColor) || this.lineColor,
1587
- axisStrokeWidth: ((d = this.radar) == null ? void 0 : d.axisStrokeWidth) || 2,
1588
- axisLabelFontSize: ((f = this.radar) == null ? void 0 : f.axisLabelFontSize) || 12,
1589
- curveOpacity: ((p = this.radar) == null ? void 0 : p.curveOpacity) || .5,
1590
- curveStrokeWidth: ((m = this.radar) == null ? void 0 : m.curveStrokeWidth) || 2,
1591
- graticuleColor: ((h = this.radar) == null ? void 0 : h.graticuleColor) || "#DEDEDE",
1592
- graticuleStrokeWidth: ((g = this.radar) == null ? void 0 : g.graticuleStrokeWidth) || 1,
1593
- graticuleOpacity: ((_ = this.radar) == null ? void 0 : _.graticuleOpacity) || .3,
1594
- legendBoxSize: ((v = this.radar) == null ? void 0 : v.legendBoxSize) || 12,
1595
- legendFontSize: ((y = this.radar) == null ? void 0 : y.legendFontSize) || 12
1596
- }, this.wardleyEvolutionColor = this.wardleyEvolutionColor || "#dc3545", this.wardley = {
1597
- backgroundColor: ((b = this.wardley) == null ? void 0 : b.backgroundColor) || this.background,
1598
- axisColor: ((x = this.wardley) == null ? void 0 : x.axisColor) || this.lineColor,
1599
- axisTextColor: ((S = this.wardley) == null ? void 0 : S.axisTextColor) || this.primaryTextColor,
1600
- gridColor: ((w = this.wardley) == null ? void 0 : w.gridColor) || this.gridColor,
1601
- componentFill: ((ee = this.wardley) == null ? void 0 : ee.componentFill) || this.background,
1602
- componentStroke: ((k = this.wardley) == null ? void 0 : k.componentStroke) || this.lineColor,
1603
- componentLabelColor: ((A = this.wardley) == null ? void 0 : A.componentLabelColor) || this.primaryTextColor,
1604
- linkStroke: ((j = this.wardley) == null ? void 0 : j.linkStroke) || this.lineColor,
1605
- evolutionStroke: ((M = this.wardley) == null ? void 0 : M.evolutionStroke) || this.wardleyEvolutionColor,
1606
- annotationStroke: ((te = this.wardley) == null ? void 0 : te.annotationStroke) || this.lineColor,
1607
- annotationTextColor: ((ne = this.wardley) == null ? void 0 : ne.annotationTextColor) || this.primaryTextColor,
1608
- annotationFill: ((re = this.wardley) == null ? void 0 : re.annotationFill) || this.background
1609
- }, this.xyChart = {
1610
- backgroundColor: ((N = this.xyChart) == null ? void 0 : N.backgroundColor) || this.background,
1611
- titleColor: ((P = this.xyChart) == null ? void 0 : P.titleColor) || this.primaryTextColor,
1612
- dataLabelColor: ((ie = this.xyChart) == null ? void 0 : ie.dataLabelColor) || this.primaryTextColor,
1613
- xAxisTitleColor: ((F = this.xyChart) == null ? void 0 : F.xAxisTitleColor) || this.primaryTextColor,
1614
- xAxisLabelColor: ((I = this.xyChart) == null ? void 0 : I.xAxisLabelColor) || this.primaryTextColor,
1615
- xAxisTickColor: ((L = this.xyChart) == null ? void 0 : L.xAxisTickColor) || this.primaryTextColor,
1616
- xAxisLineColor: ((ae = this.xyChart) == null ? void 0 : ae.xAxisLineColor) || this.primaryTextColor,
1617
- yAxisTitleColor: ((oe = this.xyChart) == null ? void 0 : oe.yAxisTitleColor) || this.primaryTextColor,
1618
- yAxisLabelColor: ((R = this.xyChart) == null ? void 0 : R.yAxisLabelColor) || this.primaryTextColor,
1619
- yAxisTickColor: ((se = this.xyChart) == null ? void 0 : se.yAxisTickColor) || this.primaryTextColor,
1620
- yAxisLineColor: ((z = this.xyChart) == null ? void 0 : z.yAxisLineColor) || this.primaryTextColor,
1621
- plotColorPalette: ((ce = this.xyChart) == null ? void 0 : ce.plotColorPalette) || "#CDE498,#FF6B6B,#A0D2DB,#D7BDE2,#F0F0F0,#FFC3A0,#7FD8BE,#FF9A8B,#FAF3E0,#FFF176"
1622
- }, 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 || D(this.primaryColor, { h: -30 }), this.git4 = this.git4 || D(this.primaryColor, { h: -60 }), this.git5 = this.git5 || D(this.primaryColor, { h: -90 }), this.git6 = this.git6 || D(this.primaryColor, { h: 60 }), this.git7 = this.git7 || D(this.primaryColor, { h: 120 }), this.darkMode ? (this.git0 = T(this.git0, 25), this.git1 = T(this.git1, 25), this.git2 = T(this.git2, 25), this.git3 = T(this.git3, 25), this.git4 = T(this.git4, 25), this.git5 = T(this.git5, 25), this.git6 = T(this.git6, 25), this.git7 = T(this.git7, 25)) : (this.git0 = E(this.git0, 25), this.git1 = E(this.git1, 25), this.git2 = E(this.git2, 25), this.git3 = E(this.git3, 25), this.git4 = E(this.git4, 25), this.git5 = E(this.git5, 25), this.git6 = E(this.git6, 25), this.git7 = E(this.git7, 25)), this.gitInv0 = this.gitInv0 || O(this.git0), this.gitInv1 = this.gitInv1 || O(this.git1), this.gitInv2 = this.gitInv2 || O(this.git2), this.gitInv3 = this.gitInv3 || O(this.git3), this.gitInv4 = this.gitInv4 || O(this.git4), this.gitInv5 = this.gitInv5 || O(this.git5), this.gitInv6 = this.gitInv6 || O(this.git6), this.gitInv7 = this.gitInv7 || O(this.git7), this.gitBranchLabel0 = this.gitBranchLabel0 || O(this.labelTextColor), this.gitBranchLabel1 = this.gitBranchLabel1 || this.labelTextColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.labelTextColor, this.gitBranchLabel3 = this.gitBranchLabel3 || O(this.labelTextColor), this.gitBranchLabel4 = this.gitBranchLabel4 || this.labelTextColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.labelTextColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.labelTextColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.labelTextColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.emUiFill = this.emUiFill || "white", this.emUiStroke = this.emUiStroke || "#dbdada", this.emProcessorFill = this.emProcessorFill || "#edb3f6", this.emProcessorStroke = this.emProcessorStroke || "#b88cbf", this.emReadModelFill = this.emReadModelFill || "#d3f1a2", this.emReadModelStroke = this.emReadModelStroke || "#a3b732", this.emCommandFill = this.emCommandFill || "#bcd6fe", this.emCommandStroke = this.emCommandStroke || "#679ac3", this.emEventFill = this.emEventFill || "#ffb778", this.emEventStroke = this.emEventStroke || "#c19a0f", this.emSwimlaneBackgroundOdd = this.emSwimlaneBackgroundOdd || "rgb(250,250,250)", this.emSwimlaneBackgroundStroke = this.emSwimlaneBackgroundStroke || "rgb(240,240,240)", this.emArrowhead = this.emArrowhead || this.lineColor, this.emRelationStroke = this.emRelationStroke || this.lineColor, this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || Y, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || Ct;
1623
- }
1624
- calculate(e) {
1625
- if (typeof e != "object") {
1626
- this.updateColors();
1627
- return;
1628
- }
1629
- let t = Object.keys(e);
1630
- t.forEach((t) => {
1631
- this[t] = e[t];
1632
- }), this.updateColors(), t.forEach((t) => {
1633
- this[t] = e[t];
1634
- });
1635
- }
1636
- }, a(it, "Theme"), it), At = /* @__PURE__ */ a((e) => {
1637
- let t = new kt();
1638
- return t.calculate(e), t;
1639
- }, "getThemeVariables"), jt = (at = class {
1640
- constructor() {
1641
- this.primaryColor = "#eee", this.contrast = "#707070", this.secondaryColor = T(this.contrast, 55), this.background = "#ffffff", this.tertiaryColor = D(this.primaryColor, { h: -160 }), this.primaryBorderColor = X(this.primaryColor, this.darkMode), this.secondaryBorderColor = X(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = X(this.tertiaryColor, this.darkMode), this.primaryTextColor = O(this.primaryColor), this.secondaryTextColor = O(this.secondaryColor), this.tertiaryTextColor = O(this.tertiaryColor), this.lineColor = O(this.background), this.textColor = O(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 || T(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))";
1642
- }
1643
- updateColors() {
1644
- var e, t, n, r, i, a, o, s, c, l, u, d, f, p, m, h, g, _, v, y, b, x, S, w, ee, k, A, j, M, te, ne, re, N, P, ie, F;
1645
- this.secondBkg = T(this.contrast, 55), this.border2 = this.contrast, this.actorBorder = T(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";
1646
- for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || O(this["cScale" + e]);
1647
- for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] || T(this["cScale" + e], 10) : this["cScalePeer" + e] = this["cScalePeer" + e] || E(this["cScale" + e], 10);
1648
- this.scaleLabelColor = this.scaleLabelColor || (this.darkMode ? "black" : this.labelTextColor), this.cScaleLabel0 = this.cScaleLabel0 || this.cScale1, this.cScaleLabel2 = this.cScaleLabel2 || this.cScale1;
1649
- for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
1650
- for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || D(this.mainBkg, { l: -(5 + e * 5) }), this["surfacePeer" + e] = this["surfacePeer" + e] || D(this.mainBkg, { l: -(8 + e * 5) });
1651
- 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 = T(this.contrast, 30), this.sectionBkgColor2 = T(this.contrast, 30), this.taskBorderColor = E(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 = T(this.border1, 30), this.doneTaskBkgColor = this.done, this.doneTaskBorderColor = this.lineColor, this.critBkgColor = this.critical, this.critBorderColor = E(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 = D(this.primaryColor, { h: 64 }), this.fillType3 = D(this.secondaryColor, { h: 64 }), this.fillType4 = D(this.primaryColor, { h: -64 }), this.fillType5 = D(this.secondaryColor, { h: -64 }), this.fillType6 = D(this.primaryColor, { h: 128 }), this.fillType7 = D(this.secondaryColor, { h: 128 });
1652
- for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["pie" + e] = this["cScale" + e];
1653
- 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";
1654
- for (let e = 0; e < 8; e++) {
1655
- var I;
1656
- this["venn" + (e + 1)] = (I = this["venn" + (e + 1)]) == null ? this["cScale" + e] : I;
1657
- }
1658
- this.vennTitleTextColor = (e = this.vennTitleTextColor) == null ? this.titleColor : e, this.vennSetTextColor = (t = this.vennSetTextColor) == null ? this.textColor : t, this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || D(this.primaryColor, {
1659
- r: 5,
1660
- g: 5,
1661
- b: 5
1662
- }), this.quadrant3Fill = this.quadrant3Fill || D(this.primaryColor, {
1663
- r: 10,
1664
- g: 10,
1665
- b: 10
1666
- }), this.quadrant4Fill = this.quadrant4Fill || D(this.primaryColor, {
1667
- r: 15,
1668
- g: 15,
1669
- b: 15
1670
- }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || D(this.primaryTextColor, {
1671
- r: -5,
1672
- g: -5,
1673
- b: -5
1674
- }), this.quadrant3TextFill = this.quadrant3TextFill || D(this.primaryTextColor, {
1675
- r: -10,
1676
- g: -10,
1677
- b: -10
1678
- }), this.quadrant4TextFill = this.quadrant4TextFill || D(this.primaryTextColor, {
1679
- r: -15,
1680
- g: -15,
1681
- b: -15
1682
- }), this.quadrantPointFill = this.quadrantPointFill || C(this.quadrant1Fill) ? T(this.quadrant1Fill) : E(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 = {
1683
- backgroundColor: ((n = this.xyChart) == null ? void 0 : n.backgroundColor) || this.background,
1684
- titleColor: ((r = this.xyChart) == null ? void 0 : r.titleColor) || this.primaryTextColor,
1685
- dataLabelColor: ((i = this.xyChart) == null ? void 0 : i.dataLabelColor) || this.primaryTextColor,
1686
- xAxisTitleColor: ((a = this.xyChart) == null ? void 0 : a.xAxisTitleColor) || this.primaryTextColor,
1687
- xAxisLabelColor: ((o = this.xyChart) == null ? void 0 : o.xAxisLabelColor) || this.primaryTextColor,
1688
- xAxisTickColor: ((s = this.xyChart) == null ? void 0 : s.xAxisTickColor) || this.primaryTextColor,
1689
- xAxisLineColor: ((c = this.xyChart) == null ? void 0 : c.xAxisLineColor) || this.primaryTextColor,
1690
- yAxisTitleColor: ((l = this.xyChart) == null ? void 0 : l.yAxisTitleColor) || this.primaryTextColor,
1691
- yAxisLabelColor: ((u = this.xyChart) == null ? void 0 : u.yAxisLabelColor) || this.primaryTextColor,
1692
- yAxisTickColor: ((d = this.xyChart) == null ? void 0 : d.yAxisTickColor) || this.primaryTextColor,
1693
- yAxisLineColor: ((f = this.xyChart) == null ? void 0 : f.yAxisLineColor) || this.primaryTextColor,
1694
- plotColorPalette: ((p = this.xyChart) == null ? void 0 : p.plotColorPalette) || "#EEE,#6BB8E4,#8ACB88,#C7ACD6,#E8DCC2,#FFB2A8,#FFF380,#7E8D91,#FFD8B1,#FAF3E0"
1695
- }, this.radar = {
1696
- axisColor: ((m = this.radar) == null ? void 0 : m.axisColor) || this.lineColor,
1697
- axisStrokeWidth: ((h = this.radar) == null ? void 0 : h.axisStrokeWidth) || 2,
1698
- axisLabelFontSize: ((g = this.radar) == null ? void 0 : g.axisLabelFontSize) || 12,
1699
- curveOpacity: ((_ = this.radar) == null ? void 0 : _.curveOpacity) || .5,
1700
- curveStrokeWidth: ((v = this.radar) == null ? void 0 : v.curveStrokeWidth) || 2,
1701
- graticuleColor: ((y = this.radar) == null ? void 0 : y.graticuleColor) || "#DEDEDE",
1702
- graticuleStrokeWidth: ((b = this.radar) == null ? void 0 : b.graticuleStrokeWidth) || 1,
1703
- graticuleOpacity: ((x = this.radar) == null ? void 0 : x.graticuleOpacity) || .3,
1704
- legendBoxSize: ((S = this.radar) == null ? void 0 : S.legendBoxSize) || 12,
1705
- legendFontSize: ((w = this.radar) == null ? void 0 : w.legendFontSize) || 12
1706
- }, this.wardleyEvolutionColor = this.wardleyEvolutionColor || "#dc3545", this.wardley = {
1707
- backgroundColor: ((ee = this.wardley) == null ? void 0 : ee.backgroundColor) || this.background,
1708
- axisColor: ((k = this.wardley) == null ? void 0 : k.axisColor) || this.lineColor,
1709
- axisTextColor: ((A = this.wardley) == null ? void 0 : A.axisTextColor) || this.primaryTextColor,
1710
- gridColor: ((j = this.wardley) == null ? void 0 : j.gridColor) || this.gridColor,
1711
- componentFill: ((M = this.wardley) == null ? void 0 : M.componentFill) || this.background,
1712
- componentStroke: ((te = this.wardley) == null ? void 0 : te.componentStroke) || this.lineColor,
1713
- componentLabelColor: ((ne = this.wardley) == null ? void 0 : ne.componentLabelColor) || this.primaryTextColor,
1714
- linkStroke: ((re = this.wardley) == null ? void 0 : re.linkStroke) || this.lineColor,
1715
- evolutionStroke: ((N = this.wardley) == null ? void 0 : N.evolutionStroke) || this.wardleyEvolutionColor,
1716
- annotationStroke: ((P = this.wardley) == null ? void 0 : P.annotationStroke) || this.lineColor,
1717
- annotationTextColor: ((ie = this.wardley) == null ? void 0 : ie.annotationTextColor) || this.primaryTextColor,
1718
- annotationFill: ((F = this.wardley) == null ? void 0 : F.annotationFill) || this.background
1719
- }, 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 = E(this.pie1, 25) || this.primaryColor, this.git1 = this.pie2 || this.secondaryColor, this.git2 = this.pie3 || this.tertiaryColor, this.git3 = this.pie4 || D(this.primaryColor, { h: -30 }), this.git4 = this.pie5 || D(this.primaryColor, { h: -60 }), this.git5 = this.pie6 || D(this.primaryColor, { h: -90 }), this.git6 = this.pie7 || D(this.primaryColor, { h: 60 }), this.git7 = this.pie8 || D(this.primaryColor, { h: 120 }), this.gitInv0 = this.gitInv0 || O(this.git0), this.gitInv1 = this.gitInv1 || O(this.git1), this.gitInv2 = this.gitInv2 || O(this.git2), this.gitInv3 = this.gitInv3 || O(this.git3), this.gitInv4 = this.gitInv4 || O(this.git4), this.gitInv5 = this.gitInv5 || O(this.git5), this.gitInv6 = this.gitInv6 || O(this.git6), this.gitInv7 = this.gitInv7 || O(this.git7), this.branchLabelColor = this.branchLabelColor || this.labelTextColor, this.gitBranchLabel0 = this.branchLabelColor, this.gitBranchLabel1 = "white", this.gitBranchLabel2 = this.branchLabelColor, this.gitBranchLabel3 = "white", this.gitBranchLabel4 = this.branchLabelColor, this.gitBranchLabel5 = this.branchLabelColor, this.gitBranchLabel6 = this.branchLabelColor, this.gitBranchLabel7 = this.branchLabelColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.emUiFill = this.emUiFill || "white", this.emUiStroke = this.emUiStroke || "#dbdada", this.emProcessorFill = this.emProcessorFill || "#edb3f6", this.emProcessorStroke = this.emProcessorStroke || "#b88cbf", this.emReadModelFill = this.emReadModelFill || "#d3f1a2", this.emReadModelStroke = this.emReadModelStroke || "#a3b732", this.emCommandFill = this.emCommandFill || "#bcd6fe", this.emCommandStroke = this.emCommandStroke || "#679ac3", this.emEventFill = this.emEventFill || "#ffb778", this.emEventStroke = this.emEventStroke || "#c19a0f", this.emSwimlaneBackgroundOdd = this.emSwimlaneBackgroundOdd || "rgb(250,250,250)", this.emSwimlaneBackgroundStroke = this.emSwimlaneBackgroundStroke || "rgb(240,240,240)", this.emArrowhead = this.emArrowhead || this.lineColor, this.emRelationStroke = this.emRelationStroke || this.lineColor, this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || Y, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || Ct;
1720
- }
1721
- calculate(e) {
1722
- if (typeof e != "object") {
1723
- this.updateColors();
1724
- return;
1725
- }
1726
- let t = Object.keys(e);
1727
- t.forEach((t) => {
1728
- this[t] = e[t];
1729
- }), this.updateColors(), t.forEach((t) => {
1730
- this[t] = e[t];
1731
- });
1732
- }
1733
- }, a(at, "Theme"), at), Mt = /* @__PURE__ */ a((e) => {
1734
- let t = new jt();
1735
- return t.calculate(e), t;
1736
- }, "getThemeVariables"), Nt = (ot = class {
1737
- constructor() {
1738
- 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 = X(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";
1739
- }
1740
- updateColors() {
1741
- var e, t, n, r, i, a, o, s, c, l, u, d, f;
1742
- this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#333"), this.secondaryColor = this.secondaryColor || D(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || D(this.primaryColor, {
1743
- h: 180,
1744
- l: 5
1745
- }), this.primaryBorderColor = this.primaryBorderColor || X(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || X(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || X(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || X(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#333", this.secondaryTextColor = this.secondaryTextColor || O(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || O(this.tertiaryColor), this.lineColor = this.lineColor || O(this.background), this.arrowheadColor = this.arrowheadColor || O(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 ? E(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 || E(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || O(this.lineColor);
1746
- let p = "#ECECFE", m = "#E9E9F1", h = D(p, {
1747
- h: 180,
1748
- l: 5
1749
- });
1750
- if (this.sectionBkgColor = this.sectionBkgColor || h, this.altSectionBkgColor = this.altSectionBkgColor || "white", this.sectionBkgColor = this.sectionBkgColor || m, this.sectionBkgColor2 = this.sectionBkgColor2 || p, this.excludeBkgColor = this.excludeBkgColor || "#eeeeee", this.taskBorderColor = this.taskBorderColor || this.primaryBorderColor, this.taskBkgColor = this.taskBkgColor || p, this.activeTaskBorderColor = this.activeTaskBorderColor || p, this.activeTaskBkgColor = this.activeTaskBkgColor || T(p, 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 || p, this.cScale1 = this.cScale1 || m, this.cScale2 = this.cScale2 || h, this.cScale3 = this.cScale3 || D(p, { h: 30 }), this.cScale4 = this.cScale4 || D(p, { h: 60 }), this.cScale5 = this.cScale5 || D(p, { h: 90 }), this.cScale6 = this.cScale6 || D(p, { h: 120 }), this.cScale7 = this.cScale7 || D(p, { h: 150 }), this.cScale8 = this.cScale8 || D(p, {
1751
- h: 210,
1752
- l: 150
1753
- }), this.cScale9 = this.cScale9 || D(p, { h: 270 }), this.cScale10 = this.cScale10 || D(p, { h: 300 }), this.cScale11 = this.cScale11 || D(p, { h: 330 }), this.darkMode) for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = E(this["cScale" + e], 75);
1754
- else for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = E(this["cScale" + e], 25);
1755
- for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || O(this["cScale" + e]);
1756
- for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] || T(this["cScale" + e], 10) : this["cScalePeer" + e] = this["cScalePeer" + e] || E(this["cScale" + e], 10);
1757
- this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
1758
- for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
1759
- let g = this.darkMode ? -4 : -1;
1760
- for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || D(this.mainBkg, {
1761
- h: 180,
1762
- s: -15,
1763
- l: g * (5 + e * 3)
1764
- }), this["surfacePeer" + e] = this["surfacePeer" + e] || D(this.mainBkg, {
1765
- h: 180,
1766
- s: -15,
1767
- l: g * (8 + e * 3)
1768
- });
1769
- this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || p, this.fillType1 = this.fillType1 || m, this.fillType2 = this.fillType2 || D(p, { h: 64 }), this.fillType3 = this.fillType3 || D(m, { h: 64 }), this.fillType4 = this.fillType4 || D(p, { h: -64 }), this.fillType5 = this.fillType5 || D(m, { h: -64 }), this.fillType6 = this.fillType6 || D(p, { h: 128 }), this.fillType7 = this.fillType7 || D(m, { h: 128 }), this.pie1 = this.pie1 || p, this.pie2 = this.pie2 || m, this.pie3 = this.pie3 || h, this.pie4 = this.pie4 || D(p, { l: -10 }), this.pie5 = this.pie5 || D(m, { l: -10 }), this.pie6 = this.pie6 || D(h, { l: -10 }), this.pie7 = this.pie7 || D(p, {
1770
- h: 60,
1771
- l: -10
1772
- }), this.pie8 = this.pie8 || D(p, {
1773
- h: -60,
1774
- l: -10
1775
- }), this.pie9 = this.pie9 || D(p, {
1776
- h: 120,
1777
- l: 0
1778
- }), this.pie10 = this.pie10 || D(p, {
1779
- h: 60,
1780
- l: -20
1781
- }), this.pie11 = this.pie11 || D(p, {
1782
- h: -60,
1783
- l: -20
1784
- }), this.pie12 = this.pie12 || D(p, {
1785
- h: 120,
1786
- l: -10
1787
- }), 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 = (e = this.vennTitleTextColor) == null ? this.titleColor : e, this.vennSetTextColor = (t = this.vennSetTextColor) == null ? this.textColor : t, this.quadrant1Fill = this.quadrant1Fill || p, this.quadrant2Fill = this.quadrant2Fill || D(p, {
1788
- r: 5,
1789
- g: 5,
1790
- b: 5
1791
- }), this.quadrant3Fill = this.quadrant3Fill || D(p, {
1792
- r: 10,
1793
- g: 10,
1794
- b: 10
1795
- }), this.quadrant4Fill = this.quadrant4Fill || D(p, {
1796
- r: 15,
1797
- g: 15,
1798
- b: 15
1799
- }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || D(this.primaryTextColor, {
1800
- r: -5,
1801
- g: -5,
1802
- b: -5
1803
- }), this.quadrant3TextFill = this.quadrant3TextFill || D(this.primaryTextColor, {
1804
- r: -10,
1805
- g: -10,
1806
- b: -10
1807
- }), this.quadrant4TextFill = this.quadrant4TextFill || D(this.primaryTextColor, {
1808
- r: -15,
1809
- g: -15,
1810
- b: -15
1811
- }), this.quadrantPointFill = this.quadrantPointFill || C(this.quadrant1Fill) ? T(this.quadrant1Fill) : E(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 = {
1812
- backgroundColor: ((n = this.xyChart) == null ? void 0 : n.backgroundColor) || this.background,
1813
- titleColor: ((r = this.xyChart) == null ? void 0 : r.titleColor) || this.primaryTextColor,
1814
- xAxisTitleColor: ((i = this.xyChart) == null ? void 0 : i.xAxisTitleColor) || this.primaryTextColor,
1815
- xAxisLabelColor: ((a = this.xyChart) == null ? void 0 : a.xAxisLabelColor) || this.primaryTextColor,
1816
- xAxisTickColor: ((o = this.xyChart) == null ? void 0 : o.xAxisTickColor) || this.primaryTextColor,
1817
- xAxisLineColor: ((s = this.xyChart) == null ? void 0 : s.xAxisLineColor) || this.primaryTextColor,
1818
- yAxisTitleColor: ((c = this.xyChart) == null ? void 0 : c.yAxisTitleColor) || this.primaryTextColor,
1819
- yAxisLabelColor: ((l = this.xyChart) == null ? void 0 : l.yAxisLabelColor) || this.primaryTextColor,
1820
- yAxisTickColor: ((u = this.xyChart) == null ? void 0 : u.yAxisTickColor) || this.primaryTextColor,
1821
- yAxisLineColor: ((d = this.xyChart) == null ? void 0 : d.yAxisLineColor) || this.primaryTextColor,
1822
- plotColorPalette: ((f = this.xyChart) == null ? void 0 : f.plotColorPalette) || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
1823
- }, this.requirementBackground = this.requirementBackground || p, 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 ? E(this.secondaryColor, 30) : this.secondaryColor), this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.git0 = this.git0 || p, this.git1 = this.git1 || m, this.git2 = this.git2 || h, this.git3 = this.git3 || D(p, { h: -30 }), this.git4 = this.git4 || D(p, { h: -60 }), this.git5 = this.git5 || D(p, { h: -90 }), this.git6 = this.git6 || D(p, { h: 60 }), this.git7 = this.git7 || D(p, { h: 120 }), this.darkMode ? (this.git0 = T(this.git0, 25), this.git1 = T(this.git1, 25), this.git2 = T(this.git2, 25), this.git3 = T(this.git3, 25), this.git4 = T(this.git4, 25), this.git5 = T(this.git5, 25), this.git6 = T(this.git6, 25), this.git7 = T(this.git7, 25)) : (this.git0 = E(this.git0, 25), this.git1 = E(this.git1, 25), this.git2 = E(this.git2, 25), this.git3 = E(this.git3, 25), this.git4 = E(this.git4, 25), this.git5 = E(this.git5, 25), this.git6 = E(this.git6, 25), this.git7 = E(this.git7, 25)), this.gitInv0 = this.gitInv0 || O(this.git0), this.gitInv1 = this.gitInv1 || O(this.git1), this.gitInv2 = this.gitInv2 || O(this.git2), this.gitInv3 = this.gitInv3 || O(this.git3), this.gitInv4 = this.gitInv4 || O(this.git4), this.gitInv5 = this.gitInv5 || O(this.git5), this.gitInv6 = this.gitInv6 || O(this.git6), this.gitInv7 = this.gitInv7 || O(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 || Y, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || Ct;
1824
- }
1825
- calculate(e) {
1826
- if (typeof e != "object") {
1827
- this.updateColors();
1828
- return;
1829
- }
1830
- let t = Object.keys(e);
1831
- t.forEach((t) => {
1832
- this[t] = e[t];
1833
- }), this.updateColors(), t.forEach((t) => {
1834
- this[t] = e[t];
1835
- });
1836
- }
1837
- }, a(ot, "Theme"), ot), Pt = /* @__PURE__ */ a((e) => {
1838
- let t = new Nt();
1839
- return t.calculate(e), t;
1840
- }, "getThemeVariables"), Ft = (st = class {
1841
- constructor() {
1842
- this.background = "#333", this.primaryColor = "#1f2020", this.secondaryColor = T(this.primaryColor, 16), this.tertiaryColor = D(this.primaryColor, { h: -160 }), this.primaryBorderColor = O(this.background), this.secondaryBorderColor = X(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = X(this.tertiaryColor, this.darkMode), this.primaryTextColor = O(this.primaryColor), this.secondaryTextColor = O(this.secondaryColor), this.tertiaryTextColor = O(this.tertiaryColor), this.mainBkg = "#2a2020", this.secondBkg = "calculated", this.mainContrastColor = "lightgrey", this.darkTextColor = T(O("#323D47"), 10), this.border1 = "#ccc", this.border2 = b(255, 255, 255, .25), this.arrowheadColor = O(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";
1843
- }
1844
- updateColors() {
1845
- var e, t, n, r, i, a, o, s, c, l, u, d, f;
1846
- if (this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#333"), this.secondaryColor = this.secondaryColor || D(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || D(this.primaryColor, {
1847
- h: 180,
1848
- l: 5
1849
- }), this.primaryBorderColor = this.primaryBorderColor || X(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || X(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || X(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || X(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#333", this.secondaryTextColor = this.secondaryTextColor || O(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || O(this.tertiaryColor), this.lineColor = this.lineColor || O(this.background), this.arrowheadColor = this.arrowheadColor || O(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 ? E(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 || E(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || O(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 || T(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 || D(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || D(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || D(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || D(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || D(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || D(this.primaryColor, {
1850
- h: 210,
1851
- l: 150
1852
- }), this.cScale9 = this.cScale9 || D(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || D(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || D(this.primaryColor, { h: 330 }), this.darkMode) for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = E(this["cScale" + e], 75);
1853
- else for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = E(this["cScale" + e], 25);
1854
- for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || O(this["cScale" + e]);
1855
- for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] || T(this["cScale" + e], 10) : this["cScalePeer" + e] = this["cScalePeer" + e] || E(this["cScale" + e], 10);
1856
- this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
1857
- for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
1858
- let p = this.darkMode ? -4 : -1;
1859
- for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || D(this.mainBkg, {
1860
- h: 180,
1861
- s: -15,
1862
- l: p * (5 + e * 3)
1863
- }), this["surfacePeer" + e] = this["surfacePeer" + e] || D(this.mainBkg, {
1864
- h: 180,
1865
- s: -15,
1866
- l: p * (8 + e * 3)
1867
- });
1868
- this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || this.primaryColor, this.fillType1 = this.fillType1 || this.secondaryColor, this.fillType2 = this.fillType2 || D(this.primaryColor, { h: 64 }), this.fillType3 = this.fillType3 || D(this.secondaryColor, { h: 64 }), this.fillType4 = this.fillType4 || D(this.primaryColor, { h: -64 }), this.fillType5 = this.fillType5 || D(this.secondaryColor, { h: -64 }), this.fillType6 = this.fillType6 || D(this.primaryColor, { h: 128 }), this.fillType7 = this.fillType7 || D(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 || D(this.primaryColor, { l: -10 }), this.pie5 = this.pie5 || D(this.secondaryColor, { l: -10 }), this.pie6 = this.pie6 || D(this.tertiaryColor, { l: -10 }), this.pie7 = this.pie7 || D(this.primaryColor, {
1869
- h: 60,
1870
- l: -10
1871
- }), this.pie8 = this.pie8 || D(this.primaryColor, {
1872
- h: -60,
1873
- l: -10
1874
- }), this.pie9 = this.pie9 || D(this.primaryColor, {
1875
- h: 120,
1876
- l: 0
1877
- }), this.pie10 = this.pie10 || D(this.primaryColor, {
1878
- h: 60,
1879
- l: -20
1880
- }), this.pie11 = this.pie11 || D(this.primaryColor, {
1881
- h: -60,
1882
- l: -20
1883
- }), this.pie12 = this.pie12 || D(this.primaryColor, {
1884
- h: 120,
1885
- l: -10
1886
- }), 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 = (e = this.vennTitleTextColor) == null ? this.titleColor : e, this.vennSetTextColor = (t = this.vennSetTextColor) == null ? this.textColor : t, this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || D(this.primaryColor, {
1887
- r: 5,
1888
- g: 5,
1889
- b: 5
1890
- }), this.quadrant3Fill = this.quadrant3Fill || D(this.primaryColor, {
1891
- r: 10,
1892
- g: 10,
1893
- b: 10
1894
- }), this.quadrant4Fill = this.quadrant4Fill || D(this.primaryColor, {
1895
- r: 15,
1896
- g: 15,
1897
- b: 15
1898
- }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || D(this.primaryTextColor, {
1899
- r: -5,
1900
- g: -5,
1901
- b: -5
1902
- }), this.quadrant3TextFill = this.quadrant3TextFill || D(this.primaryTextColor, {
1903
- r: -10,
1904
- g: -10,
1905
- b: -10
1906
- }), this.quadrant4TextFill = this.quadrant4TextFill || D(this.primaryTextColor, {
1907
- r: -15,
1908
- g: -15,
1909
- b: -15
1910
- }), this.quadrantPointFill = this.quadrantPointFill || C(this.quadrant1Fill) ? T(this.quadrant1Fill) : E(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 = {
1911
- backgroundColor: ((n = this.xyChart) == null ? void 0 : n.backgroundColor) || this.background,
1912
- titleColor: ((r = this.xyChart) == null ? void 0 : r.titleColor) || this.primaryTextColor,
1913
- xAxisTitleColor: ((i = this.xyChart) == null ? void 0 : i.xAxisTitleColor) || this.primaryTextColor,
1914
- xAxisLabelColor: ((a = this.xyChart) == null ? void 0 : a.xAxisLabelColor) || this.primaryTextColor,
1915
- xAxisTickColor: ((o = this.xyChart) == null ? void 0 : o.xAxisTickColor) || this.primaryTextColor,
1916
- xAxisLineColor: ((s = this.xyChart) == null ? void 0 : s.xAxisLineColor) || this.primaryTextColor,
1917
- yAxisTitleColor: ((c = this.xyChart) == null ? void 0 : c.yAxisTitleColor) || this.primaryTextColor,
1918
- yAxisLabelColor: ((l = this.xyChart) == null ? void 0 : l.yAxisLabelColor) || this.primaryTextColor,
1919
- yAxisTickColor: ((u = this.xyChart) == null ? void 0 : u.yAxisTickColor) || this.primaryTextColor,
1920
- yAxisLineColor: ((d = this.xyChart) == null ? void 0 : d.yAxisLineColor) || this.primaryTextColor,
1921
- plotColorPalette: ((f = this.xyChart) == null ? void 0 : f.plotColorPalette) || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
1922
- }, 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 ? E(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 = T(this.git0, 25), this.git1 = T(this.git1, 25), this.git2 = T(this.git2, 25), this.git3 = T(this.git3, 25), this.git4 = T(this.git4, 25), this.git5 = T(this.git5, 25), this.git6 = T(this.git6, 25), this.git7 = T(this.git7, 25)) : (this.git0 = E(this.git0, 25), this.git1 = E(this.git1, 25), this.git2 = E(this.git2, 25), this.git3 = E(this.git3, 25), this.git4 = E(this.git4, 25), this.git5 = E(this.git5, 25), this.git6 = E(this.git6, 25), this.git7 = E(this.git7, 25)), this.gitInv0 = this.gitInv0 || O(this.git0), this.gitInv1 = this.gitInv1 || O(this.git1), this.gitInv2 = this.gitInv2 || O(this.git2), this.gitInv3 = this.gitInv3 || O(this.git3), this.gitInv4 = this.gitInv4 || O(this.git4), this.gitInv5 = this.gitInv5 || O(this.git5), this.gitInv6 = this.gitInv6 || O(this.git6), this.gitInv7 = this.gitInv7 || O(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 || Y, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || Ct;
1923
- }
1924
- calculate(e) {
1925
- if (typeof e != "object") {
1926
- this.updateColors();
1927
- return;
1928
- }
1929
- let t = Object.keys(e);
1930
- t.forEach((t) => {
1931
- this[t] = e[t];
1932
- }), this.updateColors(), t.forEach((t) => {
1933
- this[t] = e[t];
1934
- });
1935
- }
1936
- }, a(st, "Theme"), st), It = /* @__PURE__ */ a((e) => {
1937
- let t = new Ft();
1938
- return t.calculate(e), t;
1939
- }, "getThemeVariables"), Lt = (ct = class {
1940
- constructor() {
1941
- 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 = X("#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";
1942
- }
1943
- updateColors() {
1944
- var e, t, n, r, i, a, o, s, c, l, u, d, f, p;
1945
- this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#28253D"), this.secondaryColor = this.secondaryColor || D(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || D(this.primaryColor, {
1946
- h: 180,
1947
- l: 5
1948
- }), this.primaryBorderColor = this.primaryBorderColor || X(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || X(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || X(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || X(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#FEF9C3", this.noteTextColor = this.noteTextColor || "#28253D", this.secondaryTextColor = this.secondaryTextColor || O(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || O(this.tertiaryColor), this.lineColor = this.lineColor || O(this.background), this.arrowheadColor = this.arrowheadColor || O(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 ? E(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 || E(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || O(this.lineColor);
1949
- let m = "#ECECFE", h = "#E9E9F1", g = D(m, {
1950
- h: 180,
1951
- l: 5
1952
- });
1953
- this.sectionBkgColor = this.sectionBkgColor || g, this.altSectionBkgColor = this.altSectionBkgColor || "white", this.sectionBkgColor = this.sectionBkgColor || h, this.sectionBkgColor2 = this.sectionBkgColor2 || m, this.excludeBkgColor = this.excludeBkgColor || "#eeeeee", this.taskBorderColor = this.taskBorderColor || this.primaryBorderColor, this.taskBkgColor = this.taskBkgColor || m, this.activeTaskBorderColor = this.activeTaskBorderColor || m, this.activeTaskBkgColor = this.activeTaskBkgColor || T(m, 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;
1954
- for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = this.mainBkg;
1955
- if (this.darkMode) for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = E(this["cScale" + e], 75);
1956
- else for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = E(this["cScale" + e], 25);
1957
- for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || O(this["cScale" + e]);
1958
- for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] || T(this["cScale" + e], 10) : this["cScalePeer" + e] = this["cScalePeer" + e] || E(this["cScale" + e], 10);
1959
- this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
1960
- for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
1961
- let _ = this.darkMode ? -4 : -1;
1962
- for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || D(this.mainBkg, {
1963
- h: 180,
1964
- s: -15,
1965
- l: _ * (5 + e * 3)
1966
- }), this["surfacePeer" + e] = this["surfacePeer" + e] || D(this.mainBkg, {
1967
- h: 180,
1968
- s: -15,
1969
- l: _ * (8 + e * 3)
1970
- });
1971
- this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || m, this.fillType1 = this.fillType1 || h, this.fillType2 = this.fillType2 || D(m, { h: 64 }), this.fillType3 = this.fillType3 || D(h, { h: 64 }), this.fillType4 = this.fillType4 || D(m, { h: -64 }), this.fillType5 = this.fillType5 || D(h, { h: -64 }), this.fillType6 = this.fillType6 || D(m, { h: 128 }), this.fillType7 = this.fillType7 || D(h, { h: 128 }), this.pie1 = this.pie1 || m, this.pie2 = this.pie2 || h, this.pie3 = this.pie3 || g, this.pie4 = this.pie4 || D(m, { l: -10 }), this.pie5 = this.pie5 || D(h, { l: -10 }), this.pie6 = this.pie6 || D(g, { l: -10 }), this.pie7 = this.pie7 || D(m, {
1972
- h: 60,
1973
- l: -10
1974
- }), this.pie8 = this.pie8 || D(m, {
1975
- h: -60,
1976
- l: -10
1977
- }), this.pie9 = this.pie9 || D(m, {
1978
- h: 120,
1979
- l: 0
1980
- }), this.pie10 = this.pie10 || D(m, {
1981
- h: 60,
1982
- l: -20
1983
- }), this.pie11 = this.pie11 || D(m, {
1984
- h: -60,
1985
- l: -20
1986
- }), this.pie12 = this.pie12 || D(m, {
1987
- h: 120,
1988
- l: -10
1989
- }), 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 = (e = this.vennTitleTextColor) == null ? this.titleColor : e, this.vennSetTextColor = (t = this.vennSetTextColor) == null ? this.textColor : t, this.quadrant1Fill = this.quadrant1Fill || m, this.quadrant2Fill = this.quadrant2Fill || D(m, {
1990
- r: 5,
1991
- g: 5,
1992
- b: 5
1993
- }), this.quadrant3Fill = this.quadrant3Fill || D(m, {
1994
- r: 10,
1995
- g: 10,
1996
- b: 10
1997
- }), this.quadrant4Fill = this.quadrant4Fill || D(m, {
1998
- r: 15,
1999
- g: 15,
2000
- b: 15
2001
- }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || D(this.primaryTextColor, {
2002
- r: -5,
2003
- g: -5,
2004
- b: -5
2005
- }), this.quadrant3TextFill = this.quadrant3TextFill || D(this.primaryTextColor, {
2006
- r: -10,
2007
- g: -10,
2008
- b: -10
2009
- }), this.quadrant4TextFill = this.quadrant4TextFill || D(this.primaryTextColor, {
2010
- r: -15,
2011
- g: -15,
2012
- b: -15
2013
- }), this.quadrantPointFill = this.quadrantPointFill || C(this.quadrant1Fill) ? T(this.quadrant1Fill) : E(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 = {
2014
- backgroundColor: ((n = this.xyChart) == null ? void 0 : n.backgroundColor) || this.background,
2015
- titleColor: ((r = this.xyChart) == null ? void 0 : r.titleColor) || this.primaryTextColor,
2016
- xAxisTitleColor: ((i = this.xyChart) == null ? void 0 : i.xAxisTitleColor) || this.primaryTextColor,
2017
- xAxisLabelColor: ((a = this.xyChart) == null ? void 0 : a.xAxisLabelColor) || this.primaryTextColor,
2018
- xAxisTickColor: ((o = this.xyChart) == null ? void 0 : o.xAxisTickColor) || this.primaryTextColor,
2019
- xAxisLineColor: ((s = this.xyChart) == null ? void 0 : s.xAxisLineColor) || this.primaryTextColor,
2020
- yAxisTitleColor: ((c = this.xyChart) == null ? void 0 : c.yAxisTitleColor) || this.primaryTextColor,
2021
- yAxisLabelColor: ((l = this.xyChart) == null ? void 0 : l.yAxisLabelColor) || this.primaryTextColor,
2022
- yAxisTickColor: ((u = this.xyChart) == null ? void 0 : u.yAxisTickColor) || this.primaryTextColor,
2023
- yAxisLineColor: ((d = this.xyChart) == null ? void 0 : d.yAxisLineColor) || this.primaryTextColor,
2024
- plotColorPalette: ((f = this.xyChart) == null ? void 0 : f.plotColorPalette) || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
2025
- }, this.requirementBackground = this.requirementBackground || m, 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 ? E(this.secondaryColor, 30) : this.secondaryColor), this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.requirementEdgeLabelBackground = "#FFFFFF", this.git0 = this.git0 || m, this.git1 = this.git1 || h, this.git2 = this.git2 || g, this.git3 = this.git3 || D(m, { h: -30 }), this.git4 = this.git4 || D(m, { h: -60 }), this.git5 = this.git5 || D(m, { h: -90 }), this.git6 = this.git6 || D(m, { h: 60 }), this.git7 = this.git7 || D(m, { h: 120 }), this.darkMode ? (this.git0 = T(this.git0, 25), this.git1 = T(this.git1, 25), this.git2 = T(this.git2, 25), this.git3 = T(this.git3, 25), this.git4 = T(this.git4, 25), this.git5 = T(this.git5, 25), this.git6 = T(this.git6, 25), this.git7 = T(this.git7, 25)) : (this.git0 = E(this.git0, 25), this.git1 = E(this.git1, 25), this.git2 = E(this.git2, 25), this.git3 = E(this.git3, 25), this.git4 = E(this.git4, 25), this.git5 = E(this.git5, 25), this.git6 = E(this.git6, 25), this.git7 = E(this.git7, 25)), this.gitInv0 = this.gitInv0 || O(this.git0), this.gitInv1 = this.gitInv1 || O(this.git1), this.gitInv2 = this.gitInv2 || O(this.git2), this.gitInv3 = this.gitInv3 || O(this.git3), this.gitInv4 = this.gitInv4 || O(this.git4), this.gitInv5 = this.gitInv5 || O(this.git5), this.gitInv6 = this.gitInv6 || O(this.git6), this.gitInv7 = this.gitInv7 || O(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 = (p = this.commitLineColor) == null ? "#BDBCCC" : p, this.erEdgeLabelBackground = "#FFFFFF", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || Y, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || Ct;
2026
- }
2027
- calculate(e) {
2028
- if (typeof e != "object") {
2029
- this.updateColors();
2030
- return;
2031
- }
2032
- let t = Object.keys(e);
2033
- t.forEach((t) => {
2034
- this[t] = e[t];
2035
- }), this.updateColors(), t.forEach((t) => {
2036
- this[t] = e[t];
2037
- });
2038
- }
2039
- }, a(ct, "Theme"), ct), Rt = /* @__PURE__ */ a((e) => {
2040
- let t = new Lt();
2041
- return t.calculate(e), t;
2042
- }, "getThemeVariables"), zt = (lt = class {
2043
- constructor() {
2044
- var e, t;
2045
- this.background = "#333", this.primaryColor = "#1f2020", this.secondaryColor = T(this.primaryColor, 16), this.tertiaryColor = D(this.primaryColor, { h: -160 }), this.primaryBorderColor = O(this.background), this.secondaryBorderColor = X(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = X(this.tertiaryColor, this.darkMode), this.primaryTextColor = O(this.primaryColor), this.secondaryTextColor = O(this.secondaryColor), this.tertiaryTextColor = O(this.tertiaryColor), this.mainBkg = "#111113", this.secondBkg = "calculated", this.mainContrastColor = "lightgrey", this.darkTextColor = T(O("#323D47"), 10), this.border1 = "#ccc", this.border2 = b(255, 255, 255, .25), this.arrowheadColor = O(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 = (e = this.noteBkgColor) == null ? "#FEF9C3" : e, this.noteTextColor = (t = this.noteTextColor) == null ? "#28253D" : t, 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";
2046
- }
2047
- updateColors() {
2048
- var e, t, n, r, i, a, o, s, c, l, u, d, f, p;
2049
- if (this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#FFFFFF"), this.secondaryColor = this.secondaryColor || D(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || D(this.primaryColor, {
2050
- h: 180,
2051
- l: 5
2052
- }), this.primaryBorderColor = this.primaryBorderColor || X(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || X(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || X(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || X(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#FFFFFF", this.secondaryTextColor = this.secondaryTextColor || O(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || O(this.tertiaryColor), this.lineColor = this.lineColor || O(this.background), this.arrowheadColor = this.arrowheadColor || O(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 ? E(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 || E(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || O(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 || T(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 || D(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || D(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || D(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || D(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || D(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || D(this.primaryColor, {
2053
- h: 210,
2054
- l: 150
2055
- }), this.cScale9 = this.cScale9 || D(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || D(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || D(this.primaryColor, { h: 330 }), this.darkMode) for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = E(this["cScale" + e], 75);
2056
- else for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = E(this["cScale" + e], 25);
2057
- for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || O(this["cScale" + e]);
2058
- for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] || T(this["cScale" + e], 10) : this["cScalePeer" + e] = this["cScalePeer" + e] || E(this["cScale" + e], 10);
2059
- this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
2060
- for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
2061
- let m = this.darkMode ? -4 : -1;
2062
- for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || D(this.mainBkg, {
2063
- h: 180,
2064
- s: -15,
2065
- l: m * (5 + e * 3)
2066
- }), this["surfacePeer" + e] = this["surfacePeer" + e] || D(this.mainBkg, {
2067
- h: 180,
2068
- s: -15,
2069
- l: m * (8 + e * 3)
2070
- });
2071
- this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || this.primaryColor, this.fillType1 = this.fillType1 || this.secondaryColor, this.fillType2 = this.fillType2 || D(this.primaryColor, { h: 64 }), this.fillType3 = this.fillType3 || D(this.secondaryColor, { h: 64 }), this.fillType4 = this.fillType4 || D(this.primaryColor, { h: -64 }), this.fillType5 = this.fillType5 || D(this.secondaryColor, { h: -64 }), this.fillType6 = this.fillType6 || D(this.primaryColor, { h: 128 }), this.fillType7 = this.fillType7 || D(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 || D(this.primaryColor, { l: -10 }), this.pie5 = this.pie5 || D(this.secondaryColor, { l: -10 }), this.pie6 = this.pie6 || D(this.tertiaryColor, { l: -10 }), this.pie7 = this.pie7 || D(this.primaryColor, {
2072
- h: 60,
2073
- l: -10
2074
- }), this.pie8 = this.pie8 || D(this.primaryColor, {
2075
- h: -60,
2076
- l: -10
2077
- }), this.pie9 = this.pie9 || D(this.primaryColor, {
2078
- h: 120,
2079
- l: 0
2080
- }), this.pie10 = this.pie10 || D(this.primaryColor, {
2081
- h: 60,
2082
- l: -20
2083
- }), this.pie11 = this.pie11 || D(this.primaryColor, {
2084
- h: -60,
2085
- l: -20
2086
- }), this.pie12 = this.pie12 || D(this.primaryColor, {
2087
- h: 120,
2088
- l: -10
2089
- }), 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 = (e = this.vennTitleTextColor) == null ? this.titleColor : e, this.vennSetTextColor = (t = this.vennSetTextColor) == null ? this.textColor : t, this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || D(this.primaryColor, {
2090
- r: 5,
2091
- g: 5,
2092
- b: 5
2093
- }), this.quadrant3Fill = this.quadrant3Fill || D(this.primaryColor, {
2094
- r: 10,
2095
- g: 10,
2096
- b: 10
2097
- }), this.quadrant4Fill = this.quadrant4Fill || D(this.primaryColor, {
2098
- r: 15,
2099
- g: 15,
2100
- b: 15
2101
- }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || D(this.primaryTextColor, {
2102
- r: -5,
2103
- g: -5,
2104
- b: -5
2105
- }), this.quadrant3TextFill = this.quadrant3TextFill || D(this.primaryTextColor, {
2106
- r: -10,
2107
- g: -10,
2108
- b: -10
2109
- }), this.quadrant4TextFill = this.quadrant4TextFill || D(this.primaryTextColor, {
2110
- r: -15,
2111
- g: -15,
2112
- b: -15
2113
- }), this.quadrantPointFill = this.quadrantPointFill || C(this.quadrant1Fill) ? T(this.quadrant1Fill) : E(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 = {
2114
- backgroundColor: ((n = this.xyChart) == null ? void 0 : n.backgroundColor) || this.background,
2115
- titleColor: ((r = this.xyChart) == null ? void 0 : r.titleColor) || this.primaryTextColor,
2116
- xAxisTitleColor: ((i = this.xyChart) == null ? void 0 : i.xAxisTitleColor) || this.primaryTextColor,
2117
- xAxisLabelColor: ((a = this.xyChart) == null ? void 0 : a.xAxisLabelColor) || this.primaryTextColor,
2118
- xAxisTickColor: ((o = this.xyChart) == null ? void 0 : o.xAxisTickColor) || this.primaryTextColor,
2119
- xAxisLineColor: ((s = this.xyChart) == null ? void 0 : s.xAxisLineColor) || this.primaryTextColor,
2120
- yAxisTitleColor: ((c = this.xyChart) == null ? void 0 : c.yAxisTitleColor) || this.primaryTextColor,
2121
- yAxisLabelColor: ((l = this.xyChart) == null ? void 0 : l.yAxisLabelColor) || this.primaryTextColor,
2122
- yAxisTickColor: ((u = this.xyChart) == null ? void 0 : u.yAxisTickColor) || this.primaryTextColor,
2123
- yAxisLineColor: ((d = this.xyChart) == null ? void 0 : d.yAxisLineColor) || this.primaryTextColor,
2124
- plotColorPalette: ((f = this.xyChart) == null ? void 0 : f.plotColorPalette) || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
2125
- }, 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 ? E(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 || D(this.primaryColor, { h: -30 }), this.git4 = this.git4 || D(this.primaryColor, { h: -60 }), this.git5 = this.git5 || D(this.primaryColor, { h: -90 }), this.git6 = this.git6 || D(this.primaryColor, { h: 60 }), this.git7 = this.git7 || D(this.primaryColor, { h: 120 }), this.darkMode ? (this.git0 = T(this.git0, 25), this.git1 = T(this.git1, 25), this.git2 = T(this.git2, 25), this.git3 = T(this.git3, 25), this.git4 = T(this.git4, 25), this.git5 = T(this.git5, 25), this.git6 = T(this.git6, 25), this.git7 = T(this.git7, 25)) : (this.git0 = E(this.git0, 25), this.git1 = E(this.git1, 25), this.git2 = E(this.git2, 25), this.git3 = E(this.git3, 25), this.git4 = E(this.git4, 25), this.git5 = E(this.git5, 25), this.git6 = E(this.git6, 25), this.git7 = E(this.git7, 25)), this.gitInv0 = this.gitInv0 || O(this.git0), this.gitInv1 = this.gitInv1 || O(this.git1), this.gitInv2 = this.gitInv2 || O(this.git2), this.gitInv3 = this.gitInv3 || O(this.git3), this.gitInv4 = this.gitInv4 || O(this.git4), this.gitInv5 = this.gitInv5 || O(this.git5), this.gitInv6 = this.gitInv6 || O(this.git6), this.gitInv7 = this.gitInv7 || O(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 = (p = this.commitLineColor) == null ? "#BDBCCC" : p, this.erEdgeLabelBackground = "#16141F", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || Y, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || Ct;
2126
- }
2127
- calculate(e) {
2128
- if (typeof e != "object") {
2129
- this.updateColors();
2130
- return;
2131
- }
2132
- let t = Object.keys(e);
2133
- t.forEach((t) => {
2134
- this[t] = e[t];
2135
- }), this.updateColors(), t.forEach((t) => {
2136
- this[t] = e[t];
2137
- });
2138
- }
2139
- }, a(lt, "Theme"), lt), Bt = /* @__PURE__ */ a((e) => {
2140
- let t = new zt();
2141
- return t.calculate(e), t;
2142
- }, "getThemeVariables"), Vt = (ut = class {
2143
- constructor() {
2144
- 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 = X(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 = [
2145
- "#E879F9",
2146
- "#2DD4BF",
2147
- "#FB923C",
2148
- "#22D3EE",
2149
- "#4ADE80",
2150
- "#A78BFA",
2151
- "#F87171",
2152
- "#FACC15",
2153
- "#818CF8",
2154
- "#A3E635 ",
2155
- "#38BDF8",
2156
- "#FB7185"
2157
- ], this.bkgColorArray = [
2158
- "#FDF4FF",
2159
- "#F0FDFA",
2160
- "#FFF7ED",
2161
- "#ECFEFF",
2162
- "#F0FDF4",
2163
- "#F5F3FF",
2164
- "#FEF2F2",
2165
- "#FEFCE8",
2166
- "#EEF2FF",
2167
- "#F7FEE7",
2168
- "#F0F9FF",
2169
- "#FFF1F2"
2170
- ], this.filterColor = "#000000";
2171
- }
2172
- updateColors() {
2173
- var e, t, n, r, i, a, o, s, c, l, u, d, f, p;
2174
- this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#28253D"), this.secondaryColor = this.secondaryColor || D(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || D(this.primaryColor, {
2175
- h: 180,
2176
- l: 5
2177
- }), this.primaryBorderColor = this.primaryBorderColor || X(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || X(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || X(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || X(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#28253D", this.secondaryTextColor = this.secondaryTextColor || O(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || O(this.tertiaryColor), this.lineColor = this.lineColor || O(this.background), this.arrowheadColor = this.arrowheadColor || O(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 ? E(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 || E(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || O(this.lineColor);
2178
- let m = "#ECECFE", h = "#E9E9F1", g = D(m, {
2179
- h: 180,
2180
- l: 5
2181
- });
2182
- this.sectionBkgColor = this.sectionBkgColor || g, this.altSectionBkgColor = this.altSectionBkgColor || "white", this.sectionBkgColor = this.sectionBkgColor || h, this.sectionBkgColor2 = this.sectionBkgColor2 || m, this.excludeBkgColor = this.excludeBkgColor || "#eeeeee", this.taskBorderColor = this.taskBorderColor || this.primaryBorderColor, this.taskBkgColor = this.taskBkgColor || m, this.activeTaskBorderColor = this.activeTaskBorderColor || m, this.activeTaskBkgColor = this.activeTaskBkgColor || T(m, 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";
2183
- for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || O(this["cScale" + e]);
2184
- for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] || T(this["cScale" + e], 10) : this["cScalePeer" + e] = this["cScalePeer" + e] || E(this["cScale" + e], 10);
2185
- this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
2186
- for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
2187
- let _ = this.darkMode ? -4 : -1;
2188
- for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || D(this.mainBkg, {
2189
- h: 180,
2190
- s: -15,
2191
- l: _ * (5 + e * 3)
2192
- }), this["surfacePeer" + e] = this["surfacePeer" + e] || D(this.mainBkg, {
2193
- h: 180,
2194
- s: -15,
2195
- l: _ * (8 + e * 3)
2196
- });
2197
- this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || m, this.fillType1 = this.fillType1 || h, this.fillType2 = this.fillType2 || D(m, { h: 64 }), this.fillType3 = this.fillType3 || D(h, { h: 64 }), this.fillType4 = this.fillType4 || D(m, { h: -64 }), this.fillType5 = this.fillType5 || D(h, { h: -64 }), this.fillType6 = this.fillType6 || D(m, { h: 128 }), this.fillType7 = this.fillType7 || D(h, { h: 128 }), this.pie1 = this.pie1 || m, this.pie2 = this.pie2 || h, this.pie3 = this.pie3 || g, this.pie4 = this.pie4 || D(m, { l: -10 }), this.pie5 = this.pie5 || D(h, { l: -10 }), this.pie6 = this.pie6 || D(g, { l: -10 }), this.pie7 = this.pie7 || D(m, {
2198
- h: 60,
2199
- l: -10
2200
- }), this.pie8 = this.pie8 || D(m, {
2201
- h: -60,
2202
- l: -10
2203
- }), this.pie9 = this.pie9 || D(m, {
2204
- h: 120,
2205
- l: 0
2206
- }), this.pie10 = this.pie10 || D(m, {
2207
- h: 60,
2208
- l: -20
2209
- }), this.pie11 = this.pie11 || D(m, {
2210
- h: -60,
2211
- l: -20
2212
- }), this.pie12 = this.pie12 || D(m, {
2213
- h: 120,
2214
- l: -10
2215
- }), 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 = (e = this.vennTitleTextColor) == null ? this.titleColor : e, this.vennSetTextColor = (t = this.vennSetTextColor) == null ? this.textColor : t, this.quadrant1Fill = this.quadrant1Fill || m, this.quadrant2Fill = this.quadrant2Fill || D(m, {
2216
- r: 5,
2217
- g: 5,
2218
- b: 5
2219
- }), this.quadrant3Fill = this.quadrant3Fill || D(m, {
2220
- r: 10,
2221
- g: 10,
2222
- b: 10
2223
- }), this.quadrant4Fill = this.quadrant4Fill || D(m, {
2224
- r: 15,
2225
- g: 15,
2226
- b: 15
2227
- }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || D(this.primaryTextColor, {
2228
- r: -5,
2229
- g: -5,
2230
- b: -5
2231
- }), this.quadrant3TextFill = this.quadrant3TextFill || D(this.primaryTextColor, {
2232
- r: -10,
2233
- g: -10,
2234
- b: -10
2235
- }), this.quadrant4TextFill = this.quadrant4TextFill || D(this.primaryTextColor, {
2236
- r: -15,
2237
- g: -15,
2238
- b: -15
2239
- }), this.quadrantPointFill = this.quadrantPointFill || C(this.quadrant1Fill) ? T(this.quadrant1Fill) : E(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 = {
2240
- backgroundColor: ((n = this.xyChart) == null ? void 0 : n.backgroundColor) || this.background,
2241
- titleColor: ((r = this.xyChart) == null ? void 0 : r.titleColor) || this.primaryTextColor,
2242
- xAxisTitleColor: ((i = this.xyChart) == null ? void 0 : i.xAxisTitleColor) || this.primaryTextColor,
2243
- xAxisLabelColor: ((a = this.xyChart) == null ? void 0 : a.xAxisLabelColor) || this.primaryTextColor,
2244
- xAxisTickColor: ((o = this.xyChart) == null ? void 0 : o.xAxisTickColor) || this.primaryTextColor,
2245
- xAxisLineColor: ((s = this.xyChart) == null ? void 0 : s.xAxisLineColor) || this.primaryTextColor,
2246
- yAxisTitleColor: ((c = this.xyChart) == null ? void 0 : c.yAxisTitleColor) || this.primaryTextColor,
2247
- yAxisLabelColor: ((l = this.xyChart) == null ? void 0 : l.yAxisLabelColor) || this.primaryTextColor,
2248
- yAxisTickColor: ((u = this.xyChart) == null ? void 0 : u.yAxisTickColor) || this.primaryTextColor,
2249
- yAxisLineColor: ((d = this.xyChart) == null ? void 0 : d.yAxisLineColor) || this.primaryTextColor,
2250
- plotColorPalette: ((f = this.xyChart) == null ? void 0 : f.plotColorPalette) || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
2251
- }, this.requirementBackground = this.requirementBackground || m, 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 ? E(this.secondaryColor, 30) : this.secondaryColor), this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.git0 = this.git0 || m, this.git1 = this.git1 || h, this.git2 = this.git2 || g, this.git3 = this.git3 || D(m, { h: -30 }), this.git4 = this.git4 || D(m, { h: -60 }), this.git5 = this.git5 || D(m, { h: -90 }), this.git6 = this.git6 || D(m, { h: 60 }), this.git7 = this.git7 || D(m, { h: 120 }), this.darkMode ? (this.git0 = T(this.git0, 25), this.git1 = T(this.git1, 25), this.git2 = T(this.git2, 25), this.git3 = T(this.git3, 25), this.git4 = T(this.git4, 25), this.git5 = T(this.git5, 25), this.git6 = T(this.git6, 25), this.git7 = T(this.git7, 25)) : (this.git0 = E(this.git0, 25), this.git1 = E(this.git1, 25), this.git2 = E(this.git2, 25), this.git3 = E(this.git3, 25), this.git4 = E(this.git4, 25), this.git5 = E(this.git5, 25), this.git6 = E(this.git6, 25), this.git7 = E(this.git7, 25)), this.gitInv0 = this.gitInv0 || O(this.git0), this.gitInv1 = this.gitInv1 || O(this.git1), this.gitInv2 = this.gitInv2 || O(this.git2), this.gitInv3 = this.gitInv3 || O(this.git3), this.gitInv4 = this.gitInv4 || O(this.git4), this.gitInv5 = this.gitInv5 || O(this.git5), this.gitInv6 = this.gitInv6 || O(this.git6), this.gitInv7 = this.gitInv7 || O(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 = (p = this.commitLineColor) == null ? "#BDBCCC" : p, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.fontWeight = 600, this.erEdgeLabelBackground = "#FFFFFF", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || Y, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || Ct;
2252
- }
2253
- calculate(e) {
2254
- if (typeof e != "object") {
2255
- this.updateColors();
2256
- return;
2257
- }
2258
- let t = Object.keys(e);
2259
- t.forEach((t) => {
2260
- this[t] = e[t];
2261
- }), this.updateColors(), t.forEach((t) => {
2262
- this[t] = e[t];
2263
- });
2264
- }
2265
- }, a(ut, "Theme"), ut), Ht = /* @__PURE__ */ a((e) => {
2266
- let t = new Vt();
2267
- return t.calculate(e), t;
2268
- }, "getThemeVariables"), Ut = (dt = class {
2269
- constructor() {
2270
- var e, t;
2271
- this.background = "#333", this.primaryColor = "#1f2020", this.secondaryColor = T(this.primaryColor, 16), this.tertiaryColor = D(this.primaryColor, { h: -160 }), this.primaryBorderColor = O(this.background), this.secondaryBorderColor = X(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = X(this.tertiaryColor, this.darkMode), this.primaryTextColor = O(this.primaryColor), this.secondaryTextColor = O(this.secondaryColor), this.tertiaryTextColor = O(this.tertiaryColor), this.mainBkg = "#111113", this.secondBkg = "calculated", this.mainContrastColor = "lightgrey", this.darkTextColor = T(O("#323D47"), 10), this.border1 = "#ccc", this.border2 = b(255, 255, 255, .25), this.arrowheadColor = O(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 = (e = this.noteBkgColor) == null ? "#FEF9C3" : e, this.noteTextColor = (t = this.noteTextColor) == null ? "#28253D" : t, 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 = [
2272
- "#E879F9",
2273
- "#2DD4BF",
2274
- "#FB923C",
2275
- "#22D3EE",
2276
- "#4ADE80",
2277
- "#A78BFA",
2278
- "#F87171",
2279
- "#FACC15",
2280
- "#818CF8",
2281
- "#A3E635 ",
2282
- "#38BDF8",
2283
- "#FB7185"
2284
- ], this.bkgColorArray = [], this.filterColor = "#FFFFFF";
2285
- }
2286
- updateColors() {
2287
- var e, t, n, r, i, a, o, s, c, l, u, d, f, p;
2288
- this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#FFFFFF"), this.secondaryColor = this.secondaryColor || D(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || D(this.primaryColor, {
2289
- h: 180,
2290
- l: 5
2291
- }), this.primaryBorderColor = this.primaryBorderColor || X(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || X(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || X(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || X(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#FFFFFF", this.secondaryTextColor = this.secondaryTextColor || O(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || O(this.tertiaryColor), this.lineColor = this.lineColor || O(this.background), this.arrowheadColor = this.arrowheadColor || O(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 ? E(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 || E(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || O(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 || T(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";
2292
- for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || O(this["cScale" + e]);
2293
- for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] || T(this["cScale" + e], 10) : this["cScalePeer" + e] = this["cScalePeer" + e] || E(this["cScale" + e], 10);
2294
- this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
2295
- for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = E(this["cScale" + e], 75);
2296
- let m = this.darkMode ? -4 : -1;
2297
- for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || D(this.mainBkg, {
2298
- h: 180,
2299
- s: -15,
2300
- l: m * (5 + e * 3)
2301
- }), this["surfacePeer" + e] = this["surfacePeer" + e] || D(this.mainBkg, {
2302
- h: 180,
2303
- s: -15,
2304
- l: m * (8 + e * 3)
2305
- });
2306
- this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || this.primaryColor, this.fillType1 = this.fillType1 || this.secondaryColor, this.fillType2 = this.fillType2 || D(this.primaryColor, { h: 64 }), this.fillType3 = this.fillType3 || D(this.secondaryColor, { h: 64 }), this.fillType4 = this.fillType4 || D(this.primaryColor, { h: -64 }), this.fillType5 = this.fillType5 || D(this.secondaryColor, { h: -64 }), this.fillType6 = this.fillType6 || D(this.primaryColor, { h: 128 }), this.fillType7 = this.fillType7 || D(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 || D(this.primaryColor, { l: -10 }), this.pie5 = this.pie5 || D(this.secondaryColor, { l: -10 }), this.pie6 = this.pie6 || D(this.tertiaryColor, { l: -10 }), this.pie7 = this.pie7 || D(this.primaryColor, {
2307
- h: 60,
2308
- l: -10
2309
- }), this.pie8 = this.pie8 || D(this.primaryColor, {
2310
- h: -60,
2311
- l: -10
2312
- }), this.pie9 = this.pie9 || D(this.primaryColor, {
2313
- h: 120,
2314
- l: 0
2315
- }), this.pie10 = this.pie10 || D(this.primaryColor, {
2316
- h: 60,
2317
- l: -20
2318
- }), this.pie11 = this.pie11 || D(this.primaryColor, {
2319
- h: -60,
2320
- l: -20
2321
- }), this.pie12 = this.pie12 || D(this.primaryColor, {
2322
- h: 120,
2323
- l: -10
2324
- }), 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 = (e = this.vennTitleTextColor) == null ? this.titleColor : e, this.vennSetTextColor = (t = this.vennSetTextColor) == null ? this.textColor : t, this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || D(this.primaryColor, {
2325
- r: 5,
2326
- g: 5,
2327
- b: 5
2328
- }), this.quadrant3Fill = this.quadrant3Fill || D(this.primaryColor, {
2329
- r: 10,
2330
- g: 10,
2331
- b: 10
2332
- }), this.quadrant4Fill = this.quadrant4Fill || D(this.primaryColor, {
2333
- r: 15,
2334
- g: 15,
2335
- b: 15
2336
- }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || D(this.primaryTextColor, {
2337
- r: -5,
2338
- g: -5,
2339
- b: -5
2340
- }), this.quadrant3TextFill = this.quadrant3TextFill || D(this.primaryTextColor, {
2341
- r: -10,
2342
- g: -10,
2343
- b: -10
2344
- }), this.quadrant4TextFill = this.quadrant4TextFill || D(this.primaryTextColor, {
2345
- r: -15,
2346
- g: -15,
2347
- b: -15
2348
- }), this.quadrantPointFill = this.quadrantPointFill || C(this.quadrant1Fill) ? T(this.quadrant1Fill) : E(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 = {
2349
- backgroundColor: ((n = this.xyChart) == null ? void 0 : n.backgroundColor) || this.background,
2350
- titleColor: ((r = this.xyChart) == null ? void 0 : r.titleColor) || this.primaryTextColor,
2351
- xAxisTitleColor: ((i = this.xyChart) == null ? void 0 : i.xAxisTitleColor) || this.primaryTextColor,
2352
- xAxisLabelColor: ((a = this.xyChart) == null ? void 0 : a.xAxisLabelColor) || this.primaryTextColor,
2353
- xAxisTickColor: ((o = this.xyChart) == null ? void 0 : o.xAxisTickColor) || this.primaryTextColor,
2354
- xAxisLineColor: ((s = this.xyChart) == null ? void 0 : s.xAxisLineColor) || this.primaryTextColor,
2355
- yAxisTitleColor: ((c = this.xyChart) == null ? void 0 : c.yAxisTitleColor) || this.primaryTextColor,
2356
- yAxisLabelColor: ((l = this.xyChart) == null ? void 0 : l.yAxisLabelColor) || this.primaryTextColor,
2357
- yAxisTickColor: ((u = this.xyChart) == null ? void 0 : u.yAxisTickColor) || this.primaryTextColor,
2358
- yAxisLineColor: ((d = this.xyChart) == null ? void 0 : d.yAxisLineColor) || this.primaryTextColor,
2359
- plotColorPalette: ((f = this.xyChart) == null ? void 0 : f.plotColorPalette) || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
2360
- }, 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 ? E(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 || D(this.primaryColor, { h: -30 }), this.git4 = this.git4 || D(this.primaryColor, { h: -60 }), this.git5 = this.git5 || D(this.primaryColor, { h: -90 }), this.git6 = this.git6 || D(this.primaryColor, { h: 60 }), this.git7 = this.git7 || D(this.primaryColor, { h: 120 }), this.darkMode ? (this.git0 = T(this.git0, 25), this.git1 = T(this.git1, 25), this.git2 = T(this.git2, 25), this.git3 = T(this.git3, 25), this.git4 = T(this.git4, 25), this.git5 = T(this.git5, 25), this.git6 = T(this.git6, 25), this.git7 = T(this.git7, 25)) : (this.git0 = E(this.git0, 25), this.git1 = E(this.git1, 25), this.git2 = E(this.git2, 25), this.git3 = E(this.git3, 25), this.git4 = E(this.git4, 25), this.git5 = E(this.git5, 25), this.git6 = E(this.git6, 25), this.git7 = E(this.git7, 25)), this.gitInv0 = this.gitInv0 || O(this.git0), this.gitInv1 = this.gitInv1 || O(this.git1), this.gitInv2 = this.gitInv2 || O(this.git2), this.gitInv3 = this.gitInv3 || O(this.git3), this.gitInv4 = this.gitInv4 || O(this.git4), this.gitInv5 = this.gitInv5 || O(this.git5), this.gitInv6 = this.gitInv6 || O(this.git6), this.gitInv7 = this.gitInv7 || O(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 = (p = this.commitLineColor) == null ? "#BDBCCC" : p, this.fontWeight = 600, this.erEdgeLabelBackground = "#16141F", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || Y, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || Ct;
2361
- }
2362
- calculate(e) {
2363
- if (typeof e != "object") {
2364
- this.updateColors();
2365
- return;
2366
- }
2367
- let t = Object.keys(e);
2368
- t.forEach((t) => {
2369
- this[t] = e[t];
2370
- }), this.updateColors(), t.forEach((t) => {
2371
- this[t] = e[t];
2372
- });
2373
- }
2374
- }, a(dt, "Theme"), dt), Wt = {
2375
- base: { getThemeVariables: Tt },
2376
- dark: { getThemeVariables: Dt },
2377
- default: { getThemeVariables: Ot },
2378
- forest: { getThemeVariables: At },
2379
- neutral: { getThemeVariables: Mt },
2380
- neo: { getThemeVariables: Pt },
2381
- "neo-dark": { getThemeVariables: It },
2382
- redux: { getThemeVariables: Rt },
2383
- "redux-dark": { getThemeVariables: Bt },
2384
- "redux-color": { getThemeVariables: Ht },
2385
- "redux-dark-color": { getThemeVariables: /* @__PURE__ */ a((e) => {
2386
- let t = new Ut();
2387
- return t.calculate(e), t;
2388
- }, "getThemeVariables") }
2389
- }, Q = {
2390
- flowchart: {
2391
- useMaxWidth: !0,
2392
- titleTopMargin: 25,
2393
- subGraphTitleMargin: {
2394
- top: 0,
2395
- bottom: 0
2396
- },
2397
- diagramPadding: 8,
2398
- htmlLabels: null,
2399
- nodeSpacing: 50,
2400
- rankSpacing: 50,
2401
- curve: "basis",
2402
- padding: 15,
2403
- defaultRenderer: "dagre-wrapper",
2404
- wrappingWidth: 200,
2405
- inheritDir: !1
2406
- },
2407
- sequence: {
2408
- useMaxWidth: !0,
2409
- hideUnusedParticipants: !1,
2410
- activationWidth: 10,
2411
- diagramMarginX: 50,
2412
- diagramMarginY: 10,
2413
- actorMargin: 50,
2414
- width: 150,
2415
- height: 65,
2416
- boxMargin: 10,
2417
- boxTextMargin: 5,
2418
- noteMargin: 10,
2419
- messageMargin: 35,
2420
- messageAlign: "center",
2421
- mirrorActors: !0,
2422
- forceMenus: !1,
2423
- bottomMarginAdj: 1,
2424
- rightAngles: !1,
2425
- showSequenceNumbers: !1,
2426
- actorFontSize: 14,
2427
- actorFontFamily: "\"Open Sans\", sans-serif",
2428
- actorFontWeight: 400,
2429
- noteFontSize: 14,
2430
- noteFontFamily: "\"trebuchet ms\", verdana, arial, sans-serif",
2431
- noteFontWeight: 400,
2432
- noteAlign: "center",
2433
- messageFontSize: 16,
2434
- messageFontFamily: "\"trebuchet ms\", verdana, arial, sans-serif",
2435
- messageFontWeight: 400,
2436
- wrap: !1,
2437
- wrapPadding: 10,
2438
- labelBoxWidth: 50,
2439
- labelBoxHeight: 20
2440
- },
2441
- gantt: {
2442
- useMaxWidth: !0,
2443
- titleTopMargin: 25,
2444
- barHeight: 20,
2445
- barGap: 4,
2446
- topPadding: 50,
2447
- rightPadding: 75,
2448
- leftPadding: 75,
2449
- gridLineStartPadding: 35,
2450
- fontSize: 11,
2451
- sectionFontSize: 11,
2452
- numberSectionStyles: 4,
2453
- axisFormat: "%Y-%m-%d",
2454
- topAxis: !1,
2455
- displayMode: "",
2456
- weekday: "sunday"
2457
- },
2458
- journey: {
2459
- useMaxWidth: !0,
2460
- diagramMarginX: 50,
2461
- diagramMarginY: 10,
2462
- leftMargin: 150,
2463
- maxLabelWidth: 360,
2464
- width: 150,
2465
- height: 50,
2466
- boxMargin: 10,
2467
- boxTextMargin: 5,
2468
- noteMargin: 10,
2469
- messageMargin: 35,
2470
- messageAlign: "center",
2471
- bottomMarginAdj: 1,
2472
- rightAngles: !1,
2473
- taskFontSize: 14,
2474
- taskFontFamily: "\"Open Sans\", sans-serif",
2475
- taskMargin: 50,
2476
- activationWidth: 10,
2477
- textPlacement: "fo",
2478
- actorColours: [
2479
- "#8FBC8F",
2480
- "#7CFC00",
2481
- "#00FFFF",
2482
- "#20B2AA",
2483
- "#B0E0E6",
2484
- "#FFFFE0"
2485
- ],
2486
- sectionFills: [
2487
- "#191970",
2488
- "#8B008B",
2489
- "#4B0082",
2490
- "#2F4F4F",
2491
- "#800000",
2492
- "#8B4513",
2493
- "#00008B"
2494
- ],
2495
- sectionColours: ["#fff"],
2496
- titleColor: "",
2497
- titleFontFamily: "\"trebuchet ms\", verdana, arial, sans-serif",
2498
- titleFontSize: "4ex"
2499
- },
2500
- class: {
2501
- useMaxWidth: !0,
2502
- titleTopMargin: 25,
2503
- arrowMarkerAbsolute: !1,
2504
- dividerMargin: 10,
2505
- padding: 5,
2506
- textHeight: 10,
2507
- defaultRenderer: "dagre-wrapper",
2508
- htmlLabels: !1,
2509
- hideEmptyMembersBox: !1,
2510
- hierarchicalNamespaces: !0
2511
- },
2512
- state: {
2513
- useMaxWidth: !0,
2514
- titleTopMargin: 25,
2515
- dividerMargin: 10,
2516
- sizeUnit: 5,
2517
- padding: 8,
2518
- textHeight: 10,
2519
- titleShift: -15,
2520
- noteMargin: 10,
2521
- forkWidth: 70,
2522
- forkHeight: 7,
2523
- miniPadding: 2,
2524
- fontSizeFactor: 5.02,
2525
- fontSize: 24,
2526
- labelHeight: 16,
2527
- edgeLengthFactor: "20",
2528
- compositTitleSize: 35,
2529
- radius: 5,
2530
- defaultRenderer: "dagre-wrapper"
2531
- },
2532
- er: {
2533
- useMaxWidth: !0,
2534
- titleTopMargin: 25,
2535
- diagramPadding: 20,
2536
- layoutDirection: "TB",
2537
- minEntityWidth: 100,
2538
- minEntityHeight: 75,
2539
- entityPadding: 15,
2540
- nodeSpacing: 140,
2541
- rankSpacing: 80,
2542
- stroke: "gray",
2543
- fill: "honeydew",
2544
- fontSize: 12
2545
- },
2546
- pie: {
2547
- useMaxWidth: !0,
2548
- textPosition: .75
2549
- },
2550
- quadrantChart: {
2551
- useMaxWidth: !0,
2552
- chartWidth: 500,
2553
- chartHeight: 500,
2554
- titleFontSize: 20,
2555
- titlePadding: 10,
2556
- quadrantPadding: 5,
2557
- xAxisLabelPadding: 5,
2558
- yAxisLabelPadding: 5,
2559
- xAxisLabelFontSize: 16,
2560
- yAxisLabelFontSize: 16,
2561
- quadrantLabelFontSize: 16,
2562
- quadrantTextTopPadding: 5,
2563
- pointTextPadding: 5,
2564
- pointLabelFontSize: 12,
2565
- pointRadius: 5,
2566
- xAxisPosition: "top",
2567
- yAxisPosition: "left",
2568
- quadrantInternalBorderStrokeWidth: 1,
2569
- quadrantExternalBorderStrokeWidth: 2
2570
- },
2571
- xyChart: {
2572
- useMaxWidth: !0,
2573
- width: 700,
2574
- height: 500,
2575
- titleFontSize: 20,
2576
- titlePadding: 10,
2577
- showDataLabel: !1,
2578
- showDataLabelOutsideBar: !1,
2579
- showTitle: !0,
2580
- xAxis: {
2581
- $ref: "#/$defs/XYChartAxisConfig",
2582
- showLabel: !0,
2583
- labelFontSize: 14,
2584
- labelPadding: 5,
2585
- showTitle: !0,
2586
- titleFontSize: 16,
2587
- titlePadding: 5,
2588
- showTick: !0,
2589
- tickLength: 5,
2590
- tickWidth: 2,
2591
- showAxisLine: !0,
2592
- axisLineWidth: 2
2593
- },
2594
- yAxis: {
2595
- $ref: "#/$defs/XYChartAxisConfig",
2596
- showLabel: !0,
2597
- labelFontSize: 14,
2598
- labelPadding: 5,
2599
- showTitle: !0,
2600
- titleFontSize: 16,
2601
- titlePadding: 5,
2602
- showTick: !0,
2603
- tickLength: 5,
2604
- tickWidth: 2,
2605
- showAxisLine: !0,
2606
- axisLineWidth: 2
2607
- },
2608
- chartOrientation: "vertical",
2609
- plotReservedSpacePercent: 50
2610
- },
2611
- requirement: {
2612
- useMaxWidth: !0,
2613
- rect_fill: "#f9f9f9",
2614
- text_color: "#333",
2615
- rect_border_size: "0.5px",
2616
- rect_border_color: "#bbb",
2617
- rect_min_width: 200,
2618
- rect_min_height: 200,
2619
- fontSize: 14,
2620
- rect_padding: 10,
2621
- line_height: 20
2622
- },
2623
- mindmap: {
2624
- useMaxWidth: !0,
2625
- padding: 10,
2626
- maxNodeWidth: 200,
2627
- layoutAlgorithm: "cose-bilkent"
2628
- },
2629
- ishikawa: {
2630
- useMaxWidth: !0,
2631
- diagramPadding: 20
2632
- },
2633
- kanban: {
2634
- useMaxWidth: !0,
2635
- padding: 8,
2636
- sectionWidth: 200,
2637
- ticketBaseUrl: ""
2638
- },
2639
- timeline: {
2640
- useMaxWidth: !0,
2641
- diagramMarginX: 50,
2642
- diagramMarginY: 10,
2643
- leftMargin: 150,
2644
- width: 150,
2645
- height: 50,
2646
- boxMargin: 10,
2647
- boxTextMargin: 5,
2648
- noteMargin: 10,
2649
- messageMargin: 35,
2650
- messageAlign: "center",
2651
- bottomMarginAdj: 1,
2652
- rightAngles: !1,
2653
- taskFontSize: 14,
2654
- taskFontFamily: "\"Open Sans\", sans-serif",
2655
- taskMargin: 50,
2656
- activationWidth: 10,
2657
- textPlacement: "fo",
2658
- actorColours: [
2659
- "#8FBC8F",
2660
- "#7CFC00",
2661
- "#00FFFF",
2662
- "#20B2AA",
2663
- "#B0E0E6",
2664
- "#FFFFE0"
2665
- ],
2666
- sectionFills: [
2667
- "#191970",
2668
- "#8B008B",
2669
- "#4B0082",
2670
- "#2F4F4F",
2671
- "#800000",
2672
- "#8B4513",
2673
- "#00008B"
2674
- ],
2675
- sectionColours: ["#fff"],
2676
- disableMulticolor: !1
2677
- },
2678
- gitGraph: {
2679
- useMaxWidth: !0,
2680
- titleTopMargin: 25,
2681
- diagramPadding: 8,
2682
- nodeLabel: {
2683
- width: 75,
2684
- height: 100,
2685
- x: -25,
2686
- y: 0
2687
- },
2688
- mainBranchName: "main",
2689
- mainBranchOrder: 0,
2690
- showCommitLabel: !0,
2691
- showBranches: !0,
2692
- rotateCommitLabel: !0,
2693
- parallelCommits: !1,
2694
- arrowMarkerAbsolute: !1
2695
- },
2696
- c4: {
2697
- useMaxWidth: !0,
2698
- diagramMarginX: 50,
2699
- diagramMarginY: 10,
2700
- c4ShapeMargin: 50,
2701
- c4ShapePadding: 20,
2702
- width: 216,
2703
- height: 60,
2704
- boxMargin: 10,
2705
- c4ShapeInRow: 4,
2706
- nextLinePaddingX: 0,
2707
- c4BoundaryInRow: 2,
2708
- personFontSize: 14,
2709
- personFontFamily: "\"Open Sans\", sans-serif",
2710
- personFontWeight: "normal",
2711
- external_personFontSize: 14,
2712
- external_personFontFamily: "\"Open Sans\", sans-serif",
2713
- external_personFontWeight: "normal",
2714
- systemFontSize: 14,
2715
- systemFontFamily: "\"Open Sans\", sans-serif",
2716
- systemFontWeight: "normal",
2717
- external_systemFontSize: 14,
2718
- external_systemFontFamily: "\"Open Sans\", sans-serif",
2719
- external_systemFontWeight: "normal",
2720
- system_dbFontSize: 14,
2721
- system_dbFontFamily: "\"Open Sans\", sans-serif",
2722
- system_dbFontWeight: "normal",
2723
- external_system_dbFontSize: 14,
2724
- external_system_dbFontFamily: "\"Open Sans\", sans-serif",
2725
- external_system_dbFontWeight: "normal",
2726
- system_queueFontSize: 14,
2727
- system_queueFontFamily: "\"Open Sans\", sans-serif",
2728
- system_queueFontWeight: "normal",
2729
- external_system_queueFontSize: 14,
2730
- external_system_queueFontFamily: "\"Open Sans\", sans-serif",
2731
- external_system_queueFontWeight: "normal",
2732
- boundaryFontSize: 14,
2733
- boundaryFontFamily: "\"Open Sans\", sans-serif",
2734
- boundaryFontWeight: "normal",
2735
- messageFontSize: 12,
2736
- messageFontFamily: "\"Open Sans\", sans-serif",
2737
- messageFontWeight: "normal",
2738
- containerFontSize: 14,
2739
- containerFontFamily: "\"Open Sans\", sans-serif",
2740
- containerFontWeight: "normal",
2741
- external_containerFontSize: 14,
2742
- external_containerFontFamily: "\"Open Sans\", sans-serif",
2743
- external_containerFontWeight: "normal",
2744
- container_dbFontSize: 14,
2745
- container_dbFontFamily: "\"Open Sans\", sans-serif",
2746
- container_dbFontWeight: "normal",
2747
- external_container_dbFontSize: 14,
2748
- external_container_dbFontFamily: "\"Open Sans\", sans-serif",
2749
- external_container_dbFontWeight: "normal",
2750
- container_queueFontSize: 14,
2751
- container_queueFontFamily: "\"Open Sans\", sans-serif",
2752
- container_queueFontWeight: "normal",
2753
- external_container_queueFontSize: 14,
2754
- external_container_queueFontFamily: "\"Open Sans\", sans-serif",
2755
- external_container_queueFontWeight: "normal",
2756
- componentFontSize: 14,
2757
- componentFontFamily: "\"Open Sans\", sans-serif",
2758
- componentFontWeight: "normal",
2759
- external_componentFontSize: 14,
2760
- external_componentFontFamily: "\"Open Sans\", sans-serif",
2761
- external_componentFontWeight: "normal",
2762
- component_dbFontSize: 14,
2763
- component_dbFontFamily: "\"Open Sans\", sans-serif",
2764
- component_dbFontWeight: "normal",
2765
- external_component_dbFontSize: 14,
2766
- external_component_dbFontFamily: "\"Open Sans\", sans-serif",
2767
- external_component_dbFontWeight: "normal",
2768
- component_queueFontSize: 14,
2769
- component_queueFontFamily: "\"Open Sans\", sans-serif",
2770
- component_queueFontWeight: "normal",
2771
- external_component_queueFontSize: 14,
2772
- external_component_queueFontFamily: "\"Open Sans\", sans-serif",
2773
- external_component_queueFontWeight: "normal",
2774
- wrap: !0,
2775
- wrapPadding: 10,
2776
- person_bg_color: "#08427B",
2777
- person_border_color: "#073B6F",
2778
- external_person_bg_color: "#686868",
2779
- external_person_border_color: "#8A8A8A",
2780
- system_bg_color: "#1168BD",
2781
- system_border_color: "#3C7FC0",
2782
- system_db_bg_color: "#1168BD",
2783
- system_db_border_color: "#3C7FC0",
2784
- system_queue_bg_color: "#1168BD",
2785
- system_queue_border_color: "#3C7FC0",
2786
- external_system_bg_color: "#999999",
2787
- external_system_border_color: "#8A8A8A",
2788
- external_system_db_bg_color: "#999999",
2789
- external_system_db_border_color: "#8A8A8A",
2790
- external_system_queue_bg_color: "#999999",
2791
- external_system_queue_border_color: "#8A8A8A",
2792
- container_bg_color: "#438DD5",
2793
- container_border_color: "#3C7FC0",
2794
- container_db_bg_color: "#438DD5",
2795
- container_db_border_color: "#3C7FC0",
2796
- container_queue_bg_color: "#438DD5",
2797
- container_queue_border_color: "#3C7FC0",
2798
- external_container_bg_color: "#B3B3B3",
2799
- external_container_border_color: "#A6A6A6",
2800
- external_container_db_bg_color: "#B3B3B3",
2801
- external_container_db_border_color: "#A6A6A6",
2802
- external_container_queue_bg_color: "#B3B3B3",
2803
- external_container_queue_border_color: "#A6A6A6",
2804
- component_bg_color: "#85BBF0",
2805
- component_border_color: "#78A8D8",
2806
- component_db_bg_color: "#85BBF0",
2807
- component_db_border_color: "#78A8D8",
2808
- component_queue_bg_color: "#85BBF0",
2809
- component_queue_border_color: "#78A8D8",
2810
- external_component_bg_color: "#CCCCCC",
2811
- external_component_border_color: "#BFBFBF",
2812
- external_component_db_bg_color: "#CCCCCC",
2813
- external_component_db_border_color: "#BFBFBF",
2814
- external_component_queue_bg_color: "#CCCCCC",
2815
- external_component_queue_border_color: "#BFBFBF"
2816
- },
2817
- sankey: {
2818
- useMaxWidth: !0,
2819
- width: 600,
2820
- height: 400,
2821
- linkColor: "gradient",
2822
- nodeAlignment: "justify",
2823
- showValues: !0,
2824
- prefix: "",
2825
- suffix: "",
2826
- nodeWidth: 10,
2827
- nodePadding: 12,
2828
- labelStyle: "legacy"
2829
- },
2830
- block: {
2831
- useMaxWidth: !0,
2832
- padding: 8
2833
- },
2834
- packet: {
2835
- useMaxWidth: !0,
2836
- rowHeight: 32,
2837
- bitWidth: 32,
2838
- bitsPerRow: 32,
2839
- showBits: !0,
2840
- paddingX: 5,
2841
- paddingY: 5
2842
- },
2843
- treeView: {
2844
- useMaxWidth: !0,
2845
- rowIndent: 10,
2846
- paddingX: 5,
2847
- paddingY: 5,
2848
- lineThickness: 1
2849
- },
2850
- architecture: {
2851
- useMaxWidth: !0,
2852
- padding: 40,
2853
- iconSize: 80,
2854
- fontSize: 16,
2855
- randomize: !1,
2856
- nodeSeparation: 75,
2857
- idealEdgeLengthMultiplier: 1.5,
2858
- edgeElasticity: .45,
2859
- numIter: 2500
2860
- },
2861
- eventmodeling: {
2862
- useMaxWidth: !0,
2863
- padding: 30,
2864
- rowHeight: 32
2865
- },
2866
- radar: {
2867
- useMaxWidth: !0,
2868
- width: 600,
2869
- height: 600,
2870
- marginTop: 50,
2871
- marginRight: 50,
2872
- marginBottom: 50,
2873
- marginLeft: 50,
2874
- axisScaleFactor: 1,
2875
- axisLabelFactor: 1.05,
2876
- curveTension: .17
2877
- },
2878
- venn: {
2879
- useMaxWidth: !0,
2880
- width: 800,
2881
- height: 450,
2882
- padding: 8,
2883
- useDebugLayout: !1
2884
- },
2885
- theme: "default",
2886
- look: "classic",
2887
- handDrawnSeed: 0,
2888
- layout: "dagre",
2889
- maxTextSize: 5e4,
2890
- maxEdges: 500,
2891
- darkMode: !1,
2892
- fontFamily: "\"trebuchet ms\", verdana, arial, sans-serif;",
2893
- logLevel: 5,
2894
- securityLevel: "strict",
2895
- startOnLoad: !0,
2896
- arrowMarkerAbsolute: !1,
2897
- secure: [
2898
- "secure",
2899
- "securityLevel",
2900
- "startOnLoad",
2901
- "maxTextSize",
2902
- "suppressErrorRendering",
2903
- "maxEdges"
2904
- ],
2905
- legacyMathML: !1,
2906
- forceLegacyMathML: !1,
2907
- deterministicIds: !1,
2908
- fontSize: 16,
2909
- markdownAutoWrap: !0,
2910
- suppressErrorRendering: !1
2911
- }, Gt = t(t({}, Q), {}, {
2912
- deterministicIDSeed: void 0,
2913
- elk: {
2914
- mergeEdges: !1,
2915
- nodePlacementStrategy: "BRANDES_KOEPF",
2916
- forceNodeModelOrder: !1,
2917
- considerModelOrder: "NODES_AND_EDGES"
2918
- },
2919
- themeCSS: void 0,
2920
- themeVariables: Wt.default.getThemeVariables(),
2921
- sequence: t(t({}, Q.sequence), {}, {
2922
- messageFont: /* @__PURE__ */ a(function() {
2923
- return {
2924
- fontFamily: this.messageFontFamily,
2925
- fontSize: this.messageFontSize,
2926
- fontWeight: this.messageFontWeight
2927
- };
2928
- }, "messageFont"),
2929
- noteFont: /* @__PURE__ */ a(function() {
2930
- return {
2931
- fontFamily: this.noteFontFamily,
2932
- fontSize: this.noteFontSize,
2933
- fontWeight: this.noteFontWeight
2934
- };
2935
- }, "noteFont"),
2936
- actorFont: /* @__PURE__ */ a(function() {
2937
- return {
2938
- fontFamily: this.actorFontFamily,
2939
- fontSize: this.actorFontSize,
2940
- fontWeight: this.actorFontWeight
2941
- };
2942
- }, "actorFont")
2943
- }),
2944
- class: {
2945
- hideEmptyMembersBox: !1,
2946
- hierarchicalNamespaces: !0
2947
- },
2948
- gantt: t(t({}, Q.gantt), {}, {
2949
- tickInterval: void 0,
2950
- useWidth: void 0
2951
- }),
2952
- c4: t(t({}, Q.c4), {}, {
2953
- useWidth: void 0,
2954
- personFont: /* @__PURE__ */ a(function() {
2955
- return {
2956
- fontFamily: this.personFontFamily,
2957
- fontSize: this.personFontSize,
2958
- fontWeight: this.personFontWeight
2959
- };
2960
- }, "personFont"),
2961
- flowchart: t(t({}, Q.flowchart), {}, { inheritDir: !1 }),
2962
- external_personFont: /* @__PURE__ */ a(function() {
2963
- return {
2964
- fontFamily: this.external_personFontFamily,
2965
- fontSize: this.external_personFontSize,
2966
- fontWeight: this.external_personFontWeight
2967
- };
2968
- }, "external_personFont"),
2969
- systemFont: /* @__PURE__ */ a(function() {
2970
- return {
2971
- fontFamily: this.systemFontFamily,
2972
- fontSize: this.systemFontSize,
2973
- fontWeight: this.systemFontWeight
2974
- };
2975
- }, "systemFont"),
2976
- external_systemFont: /* @__PURE__ */ a(function() {
2977
- return {
2978
- fontFamily: this.external_systemFontFamily,
2979
- fontSize: this.external_systemFontSize,
2980
- fontWeight: this.external_systemFontWeight
2981
- };
2982
- }, "external_systemFont"),
2983
- system_dbFont: /* @__PURE__ */ a(function() {
2984
- return {
2985
- fontFamily: this.system_dbFontFamily,
2986
- fontSize: this.system_dbFontSize,
2987
- fontWeight: this.system_dbFontWeight
2988
- };
2989
- }, "system_dbFont"),
2990
- external_system_dbFont: /* @__PURE__ */ a(function() {
2991
- return {
2992
- fontFamily: this.external_system_dbFontFamily,
2993
- fontSize: this.external_system_dbFontSize,
2994
- fontWeight: this.external_system_dbFontWeight
2995
- };
2996
- }, "external_system_dbFont"),
2997
- system_queueFont: /* @__PURE__ */ a(function() {
2998
- return {
2999
- fontFamily: this.system_queueFontFamily,
3000
- fontSize: this.system_queueFontSize,
3001
- fontWeight: this.system_queueFontWeight
3002
- };
3003
- }, "system_queueFont"),
3004
- external_system_queueFont: /* @__PURE__ */ a(function() {
3005
- return {
3006
- fontFamily: this.external_system_queueFontFamily,
3007
- fontSize: this.external_system_queueFontSize,
3008
- fontWeight: this.external_system_queueFontWeight
3009
- };
3010
- }, "external_system_queueFont"),
3011
- containerFont: /* @__PURE__ */ a(function() {
3012
- return {
3013
- fontFamily: this.containerFontFamily,
3014
- fontSize: this.containerFontSize,
3015
- fontWeight: this.containerFontWeight
3016
- };
3017
- }, "containerFont"),
3018
- external_containerFont: /* @__PURE__ */ a(function() {
3019
- return {
3020
- fontFamily: this.external_containerFontFamily,
3021
- fontSize: this.external_containerFontSize,
3022
- fontWeight: this.external_containerFontWeight
3023
- };
3024
- }, "external_containerFont"),
3025
- container_dbFont: /* @__PURE__ */ a(function() {
3026
- return {
3027
- fontFamily: this.container_dbFontFamily,
3028
- fontSize: this.container_dbFontSize,
3029
- fontWeight: this.container_dbFontWeight
3030
- };
3031
- }, "container_dbFont"),
3032
- external_container_dbFont: /* @__PURE__ */ a(function() {
3033
- return {
3034
- fontFamily: this.external_container_dbFontFamily,
3035
- fontSize: this.external_container_dbFontSize,
3036
- fontWeight: this.external_container_dbFontWeight
3037
- };
3038
- }, "external_container_dbFont"),
3039
- container_queueFont: /* @__PURE__ */ a(function() {
3040
- return {
3041
- fontFamily: this.container_queueFontFamily,
3042
- fontSize: this.container_queueFontSize,
3043
- fontWeight: this.container_queueFontWeight
3044
- };
3045
- }, "container_queueFont"),
3046
- external_container_queueFont: /* @__PURE__ */ a(function() {
3047
- return {
3048
- fontFamily: this.external_container_queueFontFamily,
3049
- fontSize: this.external_container_queueFontSize,
3050
- fontWeight: this.external_container_queueFontWeight
3051
- };
3052
- }, "external_container_queueFont"),
3053
- componentFont: /* @__PURE__ */ a(function() {
3054
- return {
3055
- fontFamily: this.componentFontFamily,
3056
- fontSize: this.componentFontSize,
3057
- fontWeight: this.componentFontWeight
3058
- };
3059
- }, "componentFont"),
3060
- external_componentFont: /* @__PURE__ */ a(function() {
3061
- return {
3062
- fontFamily: this.external_componentFontFamily,
3063
- fontSize: this.external_componentFontSize,
3064
- fontWeight: this.external_componentFontWeight
3065
- };
3066
- }, "external_componentFont"),
3067
- component_dbFont: /* @__PURE__ */ a(function() {
3068
- return {
3069
- fontFamily: this.component_dbFontFamily,
3070
- fontSize: this.component_dbFontSize,
3071
- fontWeight: this.component_dbFontWeight
3072
- };
3073
- }, "component_dbFont"),
3074
- external_component_dbFont: /* @__PURE__ */ a(function() {
3075
- return {
3076
- fontFamily: this.external_component_dbFontFamily,
3077
- fontSize: this.external_component_dbFontSize,
3078
- fontWeight: this.external_component_dbFontWeight
3079
- };
3080
- }, "external_component_dbFont"),
3081
- component_queueFont: /* @__PURE__ */ a(function() {
3082
- return {
3083
- fontFamily: this.component_queueFontFamily,
3084
- fontSize: this.component_queueFontSize,
3085
- fontWeight: this.component_queueFontWeight
3086
- };
3087
- }, "component_queueFont"),
3088
- external_component_queueFont: /* @__PURE__ */ a(function() {
3089
- return {
3090
- fontFamily: this.external_component_queueFontFamily,
3091
- fontSize: this.external_component_queueFontSize,
3092
- fontWeight: this.external_component_queueFontWeight
3093
- };
3094
- }, "external_component_queueFont"),
3095
- boundaryFont: /* @__PURE__ */ a(function() {
3096
- return {
3097
- fontFamily: this.boundaryFontFamily,
3098
- fontSize: this.boundaryFontSize,
3099
- fontWeight: this.boundaryFontWeight
3100
- };
3101
- }, "boundaryFont"),
3102
- messageFont: /* @__PURE__ */ a(function() {
3103
- return {
3104
- fontFamily: this.messageFontFamily,
3105
- fontSize: this.messageFontSize,
3106
- fontWeight: this.messageFontWeight
3107
- };
3108
- }, "messageFont")
3109
- }),
3110
- pie: t(t({}, Q.pie), {}, { useWidth: 984 }),
3111
- xyChart: t(t({}, Q.xyChart), {}, { useWidth: void 0 }),
3112
- requirement: t(t({}, Q.requirement), {}, { useWidth: void 0 }),
3113
- packet: t({}, Q.packet),
3114
- eventmodeling: t({}, Q.eventmodeling),
3115
- treeView: t(t({}, Q.treeView), {}, { useWidth: void 0 }),
3116
- radar: t({}, Q.radar),
3117
- ishikawa: t({}, Q.ishikawa),
3118
- sankey: t(t({}, Q.sankey), {}, { nodeColors: void 0 }),
3119
- treemap: {
3120
- useMaxWidth: !0,
3121
- padding: 10,
3122
- diagramPadding: 8,
3123
- showValues: !0,
3124
- nodeWidth: 100,
3125
- nodeHeight: 40,
3126
- borderWidth: 1,
3127
- valueFontSize: 12,
3128
- labelFontSize: 14,
3129
- valueFormat: ","
3130
- },
3131
- venn: t({}, Q.venn)
3132
- }), Kt = /* @__PURE__ */ a((e, t = "") => Object.keys(e).reduce((n, r) => Array.isArray(e[r]) ? n : typeof e[r] == "object" && e[r] !== null ? [
3133
- ...n,
3134
- t + r,
3135
- ...Kt(e[r], "")
3136
- ] : [...n, t + r], []), "keyify"), qt = new Set(Kt(Gt, "")), Jt = Gt, Yt = /* @__PURE__ */ a((e) => {
3137
- if (o.debug("sanitizeDirective called with", e), !(typeof e != "object" || !e)) {
3138
- if (Array.isArray(e)) {
3139
- e.forEach((e) => Yt(e));
3140
- return;
3141
- }
3142
- for (let t of Object.keys(e)) {
3143
- if (o.debug("Checking key", t), t.startsWith("__") || t.includes("proto") || t.includes("constr") || !qt.has(t) || e[t] == null) {
3144
- o.debug("sanitize deleting key: ", t), delete e[t];
3145
- continue;
3146
- }
3147
- if (typeof e[t] == "object") {
3148
- if (t === "nodeColors") {
3149
- let n = /^#[\da-f]{3,8}$|^rgb\([\d\s%,.]+\)$|^hsl\([\d\s%,.]+\)$|^[a-z]+$/i;
3150
- for (let r of Object.keys(e[t])) (typeof e[t][r] != "string" || !n.test(e[t][r])) && (o.debug("sanitize deleting invalid color:", r, e[t][r]), delete e[t][r]);
3151
- } else o.debug("sanitizing object", t), Yt(e[t]);
3152
- continue;
3153
- }
3154
- for (let n of [
3155
- "themeCSS",
3156
- "fontFamily",
3157
- "altFontFamily"
3158
- ]) t.includes(n) && (o.debug("sanitizing css option", t), e[t] = Xt(e[t]));
3159
- }
3160
- if (e.themeVariables) for (let t of Object.keys(e.themeVariables)) {
3161
- let n = e.themeVariables[t];
3162
- n != null && n.match && !n.match(/^[\d "#%(),.;A-Za-z]+$/) && (e.themeVariables[t] = "");
3163
- }
3164
- o.debug("After sanitization", e);
3165
- }
3166
- }, "sanitizeDirective"), Xt = /* @__PURE__ */ a((e) => {
3167
- let t = 0, n = 0;
3168
- for (let r of e) {
3169
- if (t < n) return "{ /* ERROR: Unbalanced CSS */ }";
3170
- r === "{" ? t++ : r === "}" && n++;
3171
- }
3172
- return t === n ? e : "{ /* ERROR: Unbalanced CSS */ }";
3173
- }, "sanitizeCss"), Zt = Object.freeze(Jt), Qt = /* @__PURE__ */ a((e) => !(e === !1 || [
3174
- "false",
3175
- "null",
3176
- "0"
3177
- ].includes(String(e).trim().toLowerCase())), "evaluate"), $ = J({}, Zt), $t, en = [], tn = J({}, Zt), nn = /* @__PURE__ */ a((e, t) => {
3178
- let n = J({}, e), r = {};
3179
- for (let e of t) un(e), r = J(r, e);
3180
- if (n = J(n, r), r.theme && r.theme in Wt) {
3181
- let e = J(J({}, $t).themeVariables || {}, r.themeVariables);
3182
- n.theme && n.theme in Wt && (n.themeVariables = Wt[n.theme].getThemeVariables(e));
3183
- }
3184
- return tn = n, gn(tn), tn;
3185
- }, "updateCurrentConfig"), rn = /* @__PURE__ */ a((e) => ($ = J({}, Zt), $ = J($, e), e.theme && Wt[e.theme] && ($.themeVariables = Wt[e.theme].getThemeVariables(e.themeVariables)), nn($, en), $), "setSiteConfig"), an = /* @__PURE__ */ a((e) => {
3186
- $t = J({}, e);
3187
- }, "saveConfigFromInitialize"), on = /* @__PURE__ */ a((e) => ($ = J($, e), nn($, en), $), "updateSiteConfig"), sn = /* @__PURE__ */ a(() => J({}, $), "getSiteConfig"), cn = /* @__PURE__ */ a((e) => (gn(e), J(tn, e), ln()), "setConfig"), ln = /* @__PURE__ */ a(() => J({}, tn), "getConfig"), un = /* @__PURE__ */ a((e) => {
3188
- var t;
3189
- e && (["secure", ...(t = $.secure) == null ? [] : t].forEach((t) => {
3190
- Object.hasOwn(e, t) && (o.debug(`Denied attempt to modify a secure key ${t}`, e[t]), delete e[t]);
3191
- }), Object.keys(e).forEach((t) => {
3192
- t.startsWith("__") && delete e[t];
3193
- }), Object.keys(e).forEach((t) => {
3194
- typeof e[t] == "string" && (e[t].includes("<") || e[t].includes(">") || e[t].includes("url(data:")) && delete e[t], typeof e[t] == "object" && un(e[t]);
3195
- }));
3196
- }, "sanitize"), dn = /* @__PURE__ */ a((e) => {
3197
- var n;
3198
- Yt(e), e.fontFamily && !((n = e.themeVariables) != null && n.fontFamily) && (e.themeVariables = t(t({}, e.themeVariables), {}, { fontFamily: e.fontFamily })), en.push(e), nn($, en);
3199
- }, "addDirective"), fn = /* @__PURE__ */ a((e = $) => {
3200
- en = [], nn(e, en);
3201
- }, "reset"), pn = {
3202
- LAZY_LOAD_DEPRECATED: "The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead.",
3203
- FLOWCHART_HTML_LABELS_DEPRECATED: "flowchart.htmlLabels is deprecated. Please use global htmlLabels instead."
3204
- }, mn = {}, hn = /* @__PURE__ */ a((e) => {
3205
- mn[e] || (o.warn(pn[e]), mn[e] = !0);
3206
- }, "issueWarning"), gn = /* @__PURE__ */ a((e) => {
3207
- e && (e.lazyLoadedDiagrams || e.loadExternalDiagramsAtStartup) && hn("LAZY_LOAD_DEPRECATED");
3208
- }, "checkConfig"), _n = /* @__PURE__ */ a(() => {
3209
- let e = {};
3210
- $t && (e = J(e, $t));
3211
- for (let t of en) e = J(e, t);
3212
- return e;
3213
- }, "getUserDefinedConfig"), vn = /* @__PURE__ */ a((e) => {
3214
- var t, n, r, i;
3215
- return ((t = e.flowchart) == null ? void 0 : t.htmlLabels) != null && hn("FLOWCHART_HTML_LABELS_DEPRECATED"), Qt((n = (r = e.htmlLabels) == null ? (i = e.flowchart) == null ? void 0 : i.htmlLabels : r) == null ? !0 : n);
3216
- }, "getEffectiveHtmlLabels"), yn = /<br\s*\/?>/gi, bn = /* @__PURE__ */ a((e) => e ? An(e).replace(/\\n/g, "#br#").split("#br#") : [""], "getRows"), xn = /* @__PURE__ */ (() => {
3217
- let e = !1;
3218
- return () => {
3219
- e || (Sn(), e = !0);
3220
- };
3221
- })();
3222
- function Sn() {
3223
- let e = "data-temp-href-target";
3224
- q.addHook("beforeSanitizeAttributes", (t) => {
3225
- if (t.tagName === "A" && t.hasAttribute("target")) {
3226
- var n;
3227
- t.setAttribute(e, (n = t.getAttribute("target")) == null ? "" : n);
3228
- }
3229
- }), q.addHook("afterSanitizeAttributes", (t) => {
3230
- if (t.tagName === "A" && t.hasAttribute(e)) {
3231
- var n;
3232
- t.setAttribute("target", (n = t.getAttribute(e)) == null ? "" : n), t.removeAttribute(e), t.getAttribute("target") === "_blank" && t.setAttribute("rel", "noopener");
3233
- }
3234
- });
3235
- }
3236
- a(Sn, "setupDompurifyHooks");
3237
- var Cn = /* @__PURE__ */ a((e) => (xn(), q.sanitize(e)), "removeScript"), wn = /* @__PURE__ */ a((e, t) => {
3238
- if (vn(t)) {
3239
- let n = t.securityLevel;
3240
- n === "antiscript" || n === "strict" || n === "sandbox" ? e = Cn(e) : n !== "loose" && (e = An(e), e = e.replace(/</g, "&lt;").replace(/>/g, "&gt;"), e = e.replace(/=/g, "&equals;"), e = kn(e));
3241
- }
3242
- return e;
3243
- }, "sanitizeMore"), Tn = /* @__PURE__ */ a((e, t) => e && (e = t.dompurifyConfig ? q.sanitize(wn(e, t), t.dompurifyConfig).toString() : q.sanitize(wn(e, t), { FORBID_TAGS: ["style"] }).toString(), e), "sanitizeText"), En = /* @__PURE__ */ a((e, t) => typeof e == "string" ? Tn(e, t) : e.flat().map((e) => Tn(e, t)), "sanitizeTextOrArray"), Dn = /* @__PURE__ */ a((e) => yn.test(e), "hasBreaks"), On = /* @__PURE__ */ a((e) => e.split(yn), "splitBreaks"), kn = /* @__PURE__ */ a((e) => e.replace(/#br#/g, "<br/>"), "placeholderToBreak"), An = /* @__PURE__ */ a((e) => e.replace(yn, "#br#"), "breakToPlaceholder"), jn = /* @__PURE__ */ a((e) => {
3244
- let t = "";
3245
- return e && (t = window.location.protocol + "//" + window.location.host + window.location.pathname + window.location.search, t = CSS.escape(t)), t;
3246
- }, "getUrl"), Mn = /* @__PURE__ */ a(function(...e) {
3247
- let t = e.filter((e) => !isNaN(e));
3248
- return Math.max(...t);
3249
- }, "getMax"), Nn = /* @__PURE__ */ a(function(...e) {
3250
- let t = e.filter((e) => !isNaN(e));
3251
- return Math.min(...t);
3252
- }, "getMin"), Pn = /* @__PURE__ */ a(function(e) {
3253
- let t = e.split(/(,)/), n = [];
3254
- for (let e = 0; e < t.length; e++) {
3255
- let r = t[e];
3256
- if (r === "," && e > 0 && e + 1 < t.length) {
3257
- let i = t[e - 1], a = t[e + 1];
3258
- In(i, a) && (r = i + "," + a, e++, n.pop());
3259
- }
3260
- n.push(Ln(r));
3261
- }
3262
- return n.join("");
3263
- }, "parseGenericTypes"), Fn = /* @__PURE__ */ a((e, t) => Math.max(0, e.split(t).length - 1), "countOccurrence"), In = /* @__PURE__ */ a((e, t) => {
3264
- let n = Fn(e, "~"), r = Fn(t, "~");
3265
- return n === 1 && r === 1;
3266
- }, "shouldCombineSets"), Ln = /* @__PURE__ */ a((e) => {
3267
- let t = Fn(e, "~"), n = !1;
3268
- if (t <= 1) return e;
3269
- t % 2 != 0 && e.startsWith("~") && (e = e.substring(1), n = !0);
3270
- let r = [...e], i = r.indexOf("~"), a = r.lastIndexOf("~");
3271
- for (; i !== -1 && a !== -1 && i !== a;) r[i] = "<", r[a] = ">", i = r.indexOf("~"), a = r.lastIndexOf("~");
3272
- return n && r.unshift("~"), r.join("");
3273
- }, "processSet"), Rn = /* @__PURE__ */ a(() => window.MathMLElement !== void 0, "isMathMLSupported"), zn = /\$\$(.*)\$\$/g, Bn = /* @__PURE__ */ a((e) => {
3274
- var t, n;
3275
- return ((t = (n = e.match(zn)) == null ? void 0 : n.length) == null ? 0 : t) > 0;
3276
- }, "hasKatex"), Vn = /* @__PURE__ */ a(function() {
3277
- var e = r(function* (e, t) {
3278
- let n = document.createElement("div");
3279
- n.innerHTML = yield Un(e, t), n.id = "katex-temp", n.style.visibility = "hidden", n.style.position = "absolute", n.style.top = "0";
3280
- let r = document.querySelector("body");
3281
- r == null || r.insertAdjacentElement("beforeend", n);
3282
- let i = {
3283
- width: n.clientWidth,
3284
- height: n.clientHeight
3285
- };
3286
- return n.remove(), i;
3287
- });
3288
- return function(t, n) {
3289
- return e.apply(this, arguments);
3290
- };
3291
- }(), "calculateMathMLDimensions"), Hn = /* @__PURE__ */ a(function() {
3292
- var e = r(function* (e, t) {
3293
- if (!Bn(e)) return e;
3294
- if (!(Rn() || t.legacyMathML || t.forceLegacyMathML)) return e.replace(zn, "MathML is unsupported in this environment.");
3295
- {
3296
- let { default: n } = yield import("./katex.js"), r = t.forceLegacyMathML || !Rn() && t.legacyMathML ? "htmlAndMathml" : "mathml";
3297
- return e.split(yn).map((e) => Bn(e) ? `<div style="display: flex; align-items: center; justify-content: center; white-space: nowrap;">${e}</div>` : `<div>${e}</div>`).join("").replace(zn, (e, t) => n.renderToString(t, {
3298
- throwOnError: !0,
3299
- displayMode: !0,
3300
- output: r
3301
- }).replace(/\n/g, " ").replace(/<annotation.*<\/annotation>/g, ""));
3302
- }
3303
- return e.replace(zn, "Katex is not supported in @mermaid-js/tiny. Please use the full mermaid library.");
3304
- });
3305
- return function(t, n) {
3306
- return e.apply(this, arguments);
3307
- };
3308
- }(), "renderKatexUnsanitized"), Un = /* @__PURE__ */ a(function() {
3309
- var e = r(function* (e, t) {
3310
- return Tn(yield Hn(e, t), t);
3311
- });
3312
- return function(t, n) {
3313
- return e.apply(this, arguments);
3314
- };
3315
- }(), "renderKatexSanitized"), Wn = {
3316
- getRows: bn,
3317
- sanitizeText: Tn,
3318
- sanitizeTextOrArray: En,
3319
- hasBreaks: Dn,
3320
- splitBreaks: On,
3321
- lineBreakRegex: yn,
3322
- removeScript: Cn,
3323
- getUrl: jn,
3324
- evaluate: Qt,
3325
- getMax: Mn,
3326
- getMin: Nn
3327
- }, Gn = /* @__PURE__ */ a(function(e, t) {
3328
- for (let n of t) e.attr(n[0], n[1]);
3329
- }, "d3Attrs"), Kn = /* @__PURE__ */ a(function(e, t, n) {
3330
- let r = /* @__PURE__ */ new Map();
3331
- return n ? (r.set("width", "100%"), r.set("style", `max-width: ${t}px;`)) : (r.set("height", e), r.set("width", t)), r;
3332
- }, "calculateSvgSizeAttrs"), qn = /* @__PURE__ */ a(function(e, t, n, r) {
3333
- Gn(e, Kn(t, n, r));
3334
- }, "configureSvgSize"), Jn = /* @__PURE__ */ a(function(e, t, n, r) {
3335
- let i = t.node().getBBox(), a = i.width, s = i.height;
3336
- o.info(`SVG bounds: ${a}x${s}`, i);
3337
- let c = 0, l = 0;
3338
- o.info(`Graph bounds: ${c}x${l}`, e), c = a + n * 2, l = s + n * 2, o.info(`Calculated bounds: ${c}x${l}`), qn(t, l, c, r);
3339
- let u = `${i.x - n} ${i.y - n} ${i.width + 2 * n} ${i.height + 2 * n}`;
3340
- t.attr("viewBox", u);
3341
- }, "setupGraphViewbox"), Yn = {};
3342
- function Xn(e) {
3343
- return [...e.cssRules].map((e) => e.cssText).join("\n");
3344
- }
3345
- a(Xn, "cssStyleSheetToString");
3346
- var Zn = /* @__PURE__ */ a((e, n, r, i) => {
3347
- var a, s;
3348
- let c = "";
3349
- return e in Yn && Yn[e] ? c = Yn[e](t(t({}, r), {}, { svgId: i })) : o.warn(`No theme found for ${e}`), ` & {
3350
- font-family: ${r.fontFamily};
3351
- font-size: ${r.fontSize};
3352
- fill: ${r.textColor}
3353
- }
3354
- @keyframes edge-animation-frame {
3355
- from {
3356
- stroke-dashoffset: 0;
3357
- }
3358
- }
3359
- @keyframes dash {
3360
- to {
3361
- stroke-dashoffset: 0;
3362
- }
3363
- }
3364
- & .edge-animation-slow {
3365
- stroke-dasharray: 9,5 !important;
3366
- stroke-dashoffset: 900;
3367
- animation: dash 50s linear infinite;
3368
- stroke-linecap: round;
3369
- }
3370
- & .edge-animation-fast {
3371
- stroke-dasharray: 9,5 !important;
3372
- stroke-dashoffset: 900;
3373
- animation: dash 20s linear infinite;
3374
- stroke-linecap: round;
3375
- }
3376
- /* Classes common for multiple diagrams */
3377
-
3378
- & .error-icon {
3379
- fill: ${r.errorBkgColor};
3380
- }
3381
- & .error-text {
3382
- fill: ${r.errorTextColor};
3383
- stroke: ${r.errorTextColor};
3384
- }
3385
-
3386
- & .edge-thickness-normal {
3387
- stroke-width: ${(a = r.strokeWidth) == null ? 1 : a}px;
3388
- }
3389
- & .edge-thickness-thick {
3390
- stroke-width: 3.5px
3391
- }
3392
- & .edge-pattern-solid {
3393
- stroke-dasharray: 0;
3394
- }
3395
- & .edge-thickness-invisible {
3396
- stroke-width: 0;
3397
- fill: none;
3398
- }
3399
- & .edge-pattern-dashed{
3400
- stroke-dasharray: 3;
3401
- }
3402
- .edge-pattern-dotted {
3403
- stroke-dasharray: 2;
3404
- }
3405
-
3406
- & .marker {
3407
- fill: ${r.lineColor};
3408
- stroke: ${r.lineColor};
3409
- }
3410
- & .marker.cross {
3411
- stroke: ${r.lineColor};
3412
- }
3413
-
3414
- & svg {
3415
- font-family: ${r.fontFamily};
3416
- font-size: ${r.fontSize};
3417
- }
3418
- & p {
3419
- margin: 0
3420
- }
3421
-
3422
- ${c}
3423
- .node .neo-node {
3424
- stroke: ${r.nodeBorder};
3425
- }
3426
-
3427
- [data-look="neo"].node rect, [data-look="neo"].cluster rect, [data-look="neo"].node polygon {
3428
- stroke: ${r.useGradient ? "url(" + i + "-gradient)" : r.nodeBorder};
3429
- filter: ${r.dropShadow ? r.dropShadow.replace("url(#drop-shadow)", `url(${i}-drop-shadow)`) : "none"};
3430
- }
3431
-
3432
-
3433
- [data-look="neo"].node path {
3434
- stroke: ${r.useGradient ? "url(" + i + "-gradient)" : r.nodeBorder};
3435
- stroke-width: ${(s = r.strokeWidth) == null ? 1 : s}px;
3436
- }
3437
-
3438
- [data-look="neo"].node .outer-path {
3439
- filter: ${r.dropShadow ? r.dropShadow.replace("url(#drop-shadow)", `url(${i}-drop-shadow)`) : "none"};
3440
- }
3441
-
3442
- [data-look="neo"].node .neo-line path {
3443
- stroke: ${r.nodeBorder};
3444
- filter: none;
3445
- }
3446
-
3447
- [data-look="neo"].node circle{
3448
- stroke: ${r.useGradient ? "url(" + i + "-gradient)" : r.nodeBorder};
3449
- filter: ${r.dropShadow ? r.dropShadow.replace("url(#drop-shadow)", `url(${i}-drop-shadow)`) : "none"};
3450
- }
3451
-
3452
- [data-look="neo"].node circle .state-start{
3453
- fill: #000000;
3454
- }
3455
-
3456
- [data-look="neo"].icon-shape .icon {
3457
- fill: ${r.useGradient ? "url(" + i + "-gradient)" : r.nodeBorder};
3458
- filter: ${r.dropShadow ? r.dropShadow.replace("url(#drop-shadow)", `url(${i}-drop-shadow)`) : "none"};
3459
- }
3460
-
3461
- [data-look="neo"].icon-shape .icon-neo path {
3462
- stroke: ${r.useGradient ? "url(" + i + "-gradient)" : r.nodeBorder};
3463
- filter: ${r.dropShadow ? r.dropShadow.replace("url(#drop-shadow)", `url(${i}-drop-shadow)`) : "none"};
3464
- }
3465
-
3466
- ${n}
3467
- `;
3468
- }, "getStyles"), Qn = /* @__PURE__ */ a((e, t) => {
3469
- t !== void 0 && (Yn[e] = t);
3470
- }, "addStylesForDiagram"), $n = Zn, er = {};
3471
- s(er, {
3472
- clear: () => ar,
3473
- getAccDescription: () => lr,
3474
- getAccTitle: () => sr,
3475
- getDiagramTitle: () => dr,
3476
- setAccDescription: () => cr,
3477
- setAccTitle: () => or,
3478
- setDiagramTitle: () => ur
3479
- });
3480
- var tr = "", nr = "", rr = "", ir = /* @__PURE__ */ a((e) => Tn(e, ln()), "sanitizeText"), ar = /* @__PURE__ */ a(() => {
3481
- tr = "", rr = "", nr = "";
3482
- }, "clear"), or = /* @__PURE__ */ a((e) => {
3483
- tr = ir(e).replace(/^\s+/g, "");
3484
- }, "setAccTitle"), sr = /* @__PURE__ */ a(() => tr, "getAccTitle"), cr = /* @__PURE__ */ a((e) => {
3485
- rr = ir(e).replace(/\n\s+/g, "\n");
3486
- }, "setAccDescription"), lr = /* @__PURE__ */ a(() => rr, "getAccDescription"), ur = /* @__PURE__ */ a((e) => {
3487
- nr = ir(e);
3488
- }, "setDiagramTitle"), dr = /* @__PURE__ */ a(() => nr, "getDiagramTitle"), fr = o, pr = i, mr = ln, hr = cn, gr = Zt, _r = /* @__PURE__ */ a((e) => Tn(e, mr()), "sanitizeText"), vr = Jn, yr = /* @__PURE__ */ a(() => er, "getCommonDb"), br = {}, xr = /* @__PURE__ */ a((e, t, n) => {
3489
- var r;
3490
- br[e] && fr.warn(`Diagram with id ${e} already registered. Overwriting.`), br[e] = t, n && bt(e, n), Qn(e, t.styles), (r = t.injectUtils) == null || r.call(t, fr, pr, mr, _r, vr, yr(), () => {});
3491
- }, "registerDiagram"), Sr = /* @__PURE__ */ a((e) => {
3492
- if (e in br) return br[e];
3493
- throw new Cr(e);
3494
- }, "getDiagram"), Cr = (ft = class extends Error {
3495
- constructor(e) {
3496
- super(`Diagram ${e} not found.`);
3497
- }
3498
- }, a(ft, "DiagramNotFoundError"), ft);
3499
- //#endregion
3500
- export { q as $, Bn as A, _r as B, xt as C, Ot as D, sn as E, Un as F, hr as G, cr as H, fn as I, Jn as J, ur as K, Xt as L, Pn as M, xr as N, jn as O, yt as P, on as Q, Yt as R, Sr as S, vn as T, or as U, an as V, cn as W, $n as X, vr as Y, Wt as Z, pt as _, ar as a, v as at, ln as b, qn as c, gr as d, E as et, Jt as f, Qt as g, mt as h, Vn as i, b as it, yn as j, _n as k, Xn as l, _t as m, dn as n, w as nt, er as o, l as ot, vt as p, rn as q, J as r, C as rt, Wn as s, gt as t, T as tt, Zt as u, lr as v, dr as w, mr as x, sr as y, Tn as z };