@smarter.sh/ui-chat 0.9.0 → 0.9.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 (128) hide show
  1. package/README.md +7 -7
  2. package/dist/embed/mermaid/{abnfDiagram-VCTEODGH-1SbERmPs.js → abnfDiagram-VCTEODGH-CGtrctwA.js} +8 -8
  3. package/dist/embed/mermaid/{arc-VicTtbbz.js → arc-DlzgcAgU.js} +3 -3
  4. package/dist/embed/mermaid/architecture-7GRP2DOG-D66ObL4C.js +3 -0
  5. package/dist/embed/mermaid/{architectureDiagram-5GKGNRK7-CQABdiy9.js → architectureDiagram-5GKGNRK7-CgMNWdVn.js} +50 -40
  6. package/dist/embed/mermaid/{blockDiagram-I7D4REHJ-CtjOz0Jt.js → blockDiagram-I7D4REHJ-Q2YOF2Nl.js} +44 -33
  7. package/dist/embed/mermaid/{c4Diagram-7LVT6UL2-_qBudB6C.js → c4Diagram-7LVT6UL2-DI7_cX7n.js} +10 -10
  8. package/dist/embed/mermaid/channel-CxRe6Ync.js +5 -0
  9. package/dist/embed/mermaid/{chunk-2E4U76K2-CBll2dEU.js → chunk-2E4U76K2-DPc-jkQd.js} +83 -81
  10. package/dist/embed/mermaid/{chunk-2Q5K7J3B-kzxEEeTu.js → chunk-2Q5K7J3B-C1pX24ft.js} +2 -2
  11. package/dist/embed/mermaid/{chunk-4HAMMTFA-Dhz0SVnN.js → chunk-4HAMMTFA-DY_JmJA2.js} +9 -9
  12. package/dist/embed/mermaid/{chunk-5VM5RSS4-Cr17nBXp.js → chunk-5VM5RSS4-BFskf6Qk.js} +2 -2
  13. package/dist/embed/mermaid/{chunk-75Z2AOVW-BsWtLgfj.js → chunk-75Z2AOVW-BugNeXEB.js} +57 -57
  14. package/dist/embed/mermaid/{chunk-CLGD4ZFX-Bkjwlxy9.js → chunk-CLGD4ZFX-BOKCMNQY.js} +4 -4
  15. package/dist/embed/mermaid/{chunk-DU6HZSFF-1zIarP1Q.js → chunk-DU6HZSFF-C09wkxIu.js} +580 -583
  16. package/dist/embed/mermaid/{chunk-F27PBJKO-CiOL12VY.js → chunk-F27PBJKO-C69L38at.js} +5 -5
  17. package/dist/embed/mermaid/{chunk-FOHPRMQF-DS9zEyR5.js → chunk-FOHPRMQF-CLLDWcGe.js} +50 -39
  18. package/dist/embed/mermaid/{chunk-GMAD6QVW-Dc0gE_3Q.js → chunk-GMAD6QVW-NxqJJwNT.js} +76 -17
  19. package/dist/embed/mermaid/{chunk-GVQU2GXP-CWFtOgtb.js → chunk-GVQU2GXP-D4WoQcNg.js} +5 -5
  20. package/dist/embed/mermaid/{chunk-IMKFNOWR-CLyTlLwx.js → chunk-IMKFNOWR-DE94S7XC.js} +9 -9
  21. package/dist/embed/mermaid/{chunk-JWPE2WC7-Ccb0QaC8.js → chunk-JWPE2WC7-BGVSGRTC.js} +2 -2
  22. package/dist/embed/mermaid/{chunk-L3NEJ4N5-DnkSrVO8.js → chunk-L3NEJ4N5-CqdtyK-9.js} +9 -9
  23. package/dist/embed/mermaid/{chunk-LNGE3PJU-ByFTjlja.js → chunk-LNGE3PJU-DqC_0r8u.js} +20 -16
  24. package/dist/embed/mermaid/{chunk-OSK3NFVY-B57tZZIG.js → chunk-OSK3NFVY-B1KjtHOy.js} +11 -11
  25. package/dist/embed/mermaid/{chunk-P2QGCYS3-BUVAOFF-.js → chunk-P2QGCYS3-CP_jp-eQ.js} +3 -3
  26. package/dist/embed/mermaid/{chunk-POPQ4Y6H-BsUdeJ_J.js → chunk-POPQ4Y6H-CSwFrYKY.js} +4 -4
  27. package/dist/embed/mermaid/{chunk-PWAF6VOD-Cb-w19aO.js → chunk-PWAF6VOD-qhXJD1mO.js} +14 -14
  28. package/dist/embed/mermaid/{chunk-SHT3W25Y-znBBpcIu.js → chunk-SHT3W25Y-a5ik03bR.js} +13 -13
  29. package/dist/embed/mermaid/{chunk-SVP7TREG-DrHUM-6R.js → chunk-SVP7TREG-67QXjHHx.js} +5 -5
  30. package/dist/embed/mermaid/{chunk-TICWLB2K-xlGqZZYJ.js → chunk-TICWLB2K-DHg0COuy.js} +10 -10
  31. package/dist/embed/mermaid/{chunk-TLUHSLCS-COwDpXBa.js → chunk-TLUHSLCS-BwEhuf5d.js} +12 -12
  32. package/dist/embed/mermaid/{chunk-XXDRQBXY-pOp8MAr9.js → chunk-XXDRQBXY-BJjzBm4h.js} +3 -3
  33. package/dist/embed/mermaid/{chunk-Y2CYZVJY-i11wjrBe.js → chunk-Y2CYZVJY-BAad7w_K.js} +1 -1
  34. package/dist/embed/mermaid/classDiagram-ZZMXUADV-BlIPVBOk.js +30 -0
  35. package/dist/embed/mermaid/classDiagram-v2-VYDZK3BY-BavoJkSK.js +30 -0
  36. package/dist/embed/mermaid/{cose-bilkent-JH36ORCC-DFvJxZ7v.js → cose-bilkent-JH36ORCC-Cx3-7Rca.js} +58 -50
  37. package/dist/embed/mermaid/cynefin-OW5HDTMX-Cfa1-YuM.js +3 -0
  38. package/dist/embed/mermaid/{cynefinDiagram-5FMLGOSQ-CCm5IQBE.js → cynefinDiagram-5FMLGOSQ-CsV1I6A_.js} +8 -8
  39. package/dist/embed/mermaid/{cytoscape.esm-BstmGtAB.js → cytoscape.esm-CLcfvFJ6.js} +484 -386
  40. package/dist/embed/mermaid/{dagre-BwzzJJA_.js → dagre-COnXXJRS.js} +137 -135
  41. package/dist/embed/mermaid/{dagre-GXQ25YYZ-B3d3iNF-.js → dagre-GXQ25YYZ-BzZWpDkI.js} +18 -16
  42. package/dist/embed/mermaid/{defaultLocale-N-0uLSyg.js → defaultLocale-CQ4Nl88y.js} +12 -12
  43. package/dist/embed/mermaid/{diagram-S7CK7UJ4-BeA5UJrt.js → diagram-S7CK7UJ4-CShsH_ul.js} +19 -11
  44. package/dist/embed/mermaid/{diagram-UQ7AKVKN-DK0uHb-2.js → diagram-UQ7AKVKN-Bb0mFpt2.js} +8 -8
  45. package/dist/embed/mermaid/{diagram-VSXAHHWV-D5JXip1B.js → diagram-VSXAHHWV-DUq5PKM1.js} +8 -8
  46. package/dist/embed/mermaid/{diagram-VX7I27RA-B1VysvG9.js → diagram-VX7I27RA-Co2uyrw2.js} +33 -33
  47. package/dist/embed/mermaid/{diagram-Z3DM3KII-ZGUJaFq-.js → diagram-Z3DM3KII-CTdPPkZs.js} +8 -8
  48. package/dist/embed/mermaid/{dist-DRRwZ4Yi.js → dist-CjR2JtV-.js} +3 -3
  49. package/dist/embed/mermaid/{ebnfDiagram-PWID7BFC-BOahZhWx.js → ebnfDiagram-PWID7BFC-CAQNT7Vt.js} +8 -8
  50. package/dist/embed/mermaid/{erDiagram-RLTQ6QDP-7cGpGRQo.js → erDiagram-RLTQ6QDP-DluYOFtk.js} +16 -16
  51. package/dist/embed/mermaid/eventmodeling-NTZA5JFV-DFSPvGS4.js +3 -0
  52. package/dist/embed/mermaid/flowDiagram-HODETNUW-BKXSV8xL.js +17 -0
  53. package/dist/embed/mermaid/{ganttDiagram-EL5Y4UJY-s6Kx4KlU.js → ganttDiagram-EL5Y4UJY-D2BBzcpY.js} +36 -36
  54. package/dist/embed/mermaid/gitGraph-4MIJSDKK-BTHPY7Tg.js +3 -0
  55. package/dist/embed/mermaid/{gitGraphDiagram-WWUBYQGX-Blwdy0b7.js → gitGraphDiagram-WWUBYQGX-BzZ3sE3s.js} +8 -8
  56. package/dist/embed/mermaid/{graphlib-XW-Jr8pF.js → graphlib-D8JS7ydf.js} +135 -135
  57. package/dist/embed/mermaid/info-A6RAGUB7-4Mm0OyB8.js +3 -0
  58. package/dist/embed/mermaid/{infoDiagram-27XIBGKW-CstzbQPb.js → infoDiagram-27XIBGKW-DcbKIVvy.js} +6 -6
  59. package/dist/embed/mermaid/{init-CsQUQz36.js → init-CFNf60QB.js} +1 -1
  60. package/dist/embed/mermaid/{ishikawaDiagram-5VMMS53U-C6y_w0kd.js → ishikawaDiagram-5VMMS53U-B6q3rvke.js} +10 -8
  61. package/dist/embed/mermaid/{journeyDiagram-3NMN7TZE-BHVux_z1.js → journeyDiagram-3NMN7TZE-CDDY2Xma.js} +7 -7
  62. package/dist/embed/mermaid/{kanban-definition-UXKFOSKX-Cgj-7IHi.js → kanban-definition-UXKFOSKX-w7v22sq3.js} +14 -14
  63. package/dist/embed/mermaid/{katex-DmPOayaq.js → katex-BqirFtOb.js} +21 -12
  64. package/dist/embed/mermaid/{line-brkWVSn0.js → line-DoUHpRzu.js} +4 -4
  65. package/dist/embed/mermaid/{linear-CiZWLcTr.js → linear-CLS335Sc.js} +23 -23
  66. package/dist/embed/mermaid/{mermaid-parser.core-BjLg_By9.js → mermaid-parser.core-BoI6HFCg.js} +41 -35
  67. package/dist/embed/mermaid/mermaid.js +61 -61
  68. package/dist/embed/mermaid/{mindmap-definition-YA3MSWOX-DRc-FzI_.js → mindmap-definition-YA3MSWOX-1bs_tKMD.js} +18 -18
  69. package/dist/embed/mermaid/{ordinal-BubEveRk.js → ordinal-Da0rnhxr.js} +3 -3
  70. package/dist/embed/mermaid/packet-AYTQ26CC-BAodtDR3.js +3 -0
  71. package/dist/embed/mermaid/{path-CnWkkRiY.js → path-hN9ktzbr.js} +3 -3
  72. package/dist/embed/mermaid/{pegDiagram-XKGWAZYB-Cw-aYwaF.js → pegDiagram-XKGWAZYB-DsrQs7Qo.js} +8 -8
  73. package/dist/embed/mermaid/pie-WAS4IAKB-Yw-9-2EN.js +3 -0
  74. package/dist/embed/mermaid/{pieDiagram-E7YTZNPT-DoguGyzq.js → pieDiagram-E7YTZNPT-BvkRs6Xl.js} +15 -15
  75. package/dist/embed/mermaid/{quadrantDiagram-AXDQQJYC-Cu4dMFZL.js → quadrantDiagram-AXDQQJYC-DDSDkbcq.js} +5 -5
  76. package/dist/embed/mermaid/radar-RG4KPBEZ-BtjjaEPe.js +3 -0
  77. package/dist/embed/mermaid/railroad-74A4TZTK-Du7TjeaO.js +3 -0
  78. package/dist/embed/mermaid/railroad-abnf-HS5TGJTU-D3flpty6.js +3 -0
  79. package/dist/embed/mermaid/railroad-ebnf-LZEXJU2U-DWpeYHWC.js +3 -0
  80. package/dist/embed/mermaid/railroad-peg-WCYAUIDC-DKiyz9fh.js +3 -0
  81. package/dist/embed/mermaid/{railroadDiagram-O6MQD6OU-DDX-9GRQ.js → railroadDiagram-O6MQD6OU-T__Cw3ez.js} +8 -8
  82. package/dist/embed/mermaid/{requirementDiagram-BXWQKSXE-z8PPo06M.js → requirementDiagram-BXWQKSXE-ADir8pgL.js} +15 -15
  83. package/dist/embed/mermaid/{rough.esm-DXYGHN3m.js → rough.esm-XhrPyaQA.js} +1 -1
  84. package/dist/embed/mermaid/{sankeyDiagram-P5KCCOFB-CeD0II3M.js → sankeyDiagram-P5KCCOFB-YTgoqhmd.js} +19 -19
  85. package/dist/embed/mermaid/{sequenceDiagram-WJ2MYXX4-Cs-Wxyvw.js → sequenceDiagram-WJ2MYXX4-Dpn6ph0n.js} +9 -9
  86. package/dist/embed/mermaid/{sizeCapture-INFHLROL-DujrpAYz.js → sizeCapture-INFHLROL-C2wlw8KF.js} +2 -2
  87. package/dist/embed/mermaid/{src-DbyMbLVK.js → src-CH4XuqUv.js} +104 -98
  88. package/dist/embed/mermaid/{stateDiagram-D77RDMKH-CqWtgHSc.js → stateDiagram-D77RDMKH-V_8TbftV.js} +20 -20
  89. package/dist/embed/mermaid/stateDiagram-v2-MP3YSRHH-us7SNDcU.js +30 -0
  90. package/dist/embed/mermaid/{swimlanes-42K2YHIH-MutR4uV4.js → swimlanes-42K2YHIH-wzihXC1V.js} +46 -24
  91. package/dist/embed/mermaid/swimlanesDiagram-VR7AAH4N-BML-4Vp0.js +31 -0
  92. package/dist/embed/mermaid/{timeline-definition-24CTP7MA-rZfNRFiT.js → timeline-definition-24CTP7MA-C3BzP6RA.js} +7 -7
  93. package/dist/embed/mermaid/treeView-Q6P3EWNA-Ba1dLcIR.js +3 -0
  94. package/dist/embed/mermaid/treemap-WGGIJYW6-D9G3ZsOW.js +3 -0
  95. package/dist/embed/mermaid/{vennDiagram-4TSXK5OY-KwMHebDQ.js → vennDiagram-4TSXK5OY-Cq1JumSe.js} +8 -8
  96. package/dist/embed/mermaid/wardley-WFR3VGLG-gAtip5-G.js +3 -0
  97. package/dist/embed/mermaid/{wardleyDiagram-VM6X3IG4-C-Fm7GGB.js → wardleyDiagram-VM6X3IG4-HtzestuU.js} +8 -8
  98. package/dist/embed/mermaid/{xychartDiagram-S5SC5T6Z-DZX43ay9.js → xychartDiagram-S5SC5T6Z-BE-W0B_D.js} +14 -14
  99. package/dist/embed.js +59 -59
  100. package/dist/embed.js.map +1 -1
  101. package/dist/smarter-chat-library.es.js +2732 -2640
  102. package/dist/smarter-chat-library.es.js.map +1 -1
  103. package/dist/smarter-chat-library.umd.js +56 -56
  104. package/dist/smarter-chat-library.umd.js.map +1 -1
  105. package/dist/types/src/contract.gen.d.ts +41 -26
  106. package/dist/ui-chat.css +1 -1
  107. package/package.json +1 -1
  108. package/dist/embed/mermaid/architecture-7GRP2DOG-D0nnNZ3B.js +0 -2
  109. package/dist/embed/mermaid/channel-BXMcYHk2.js +0 -5
  110. package/dist/embed/mermaid/classDiagram-ZZMXUADV-C8BeuQnA.js +0 -30
  111. package/dist/embed/mermaid/classDiagram-v2-VYDZK3BY-B3jylZLr.js +0 -30
  112. package/dist/embed/mermaid/cynefin-OW5HDTMX-B6YJOAMM.js +0 -2
  113. package/dist/embed/mermaid/eventmodeling-NTZA5JFV-C3kU50Cz.js +0 -2
  114. package/dist/embed/mermaid/flowDiagram-HODETNUW-D-eJN2AO.js +0 -16
  115. package/dist/embed/mermaid/gitGraph-4MIJSDKK-CqdlGRFk.js +0 -2
  116. package/dist/embed/mermaid/info-A6RAGUB7-2pwra5F3.js +0 -2
  117. package/dist/embed/mermaid/packet-AYTQ26CC-C3h9OoFk.js +0 -2
  118. package/dist/embed/mermaid/pie-WAS4IAKB-CaECYpHT.js +0 -2
  119. package/dist/embed/mermaid/radar-RG4KPBEZ-CoS7pnd_.js +0 -2
  120. package/dist/embed/mermaid/railroad-74A4TZTK-BjHa6MAk.js +0 -2
  121. package/dist/embed/mermaid/railroad-abnf-HS5TGJTU-Bm2YWqjG.js +0 -2
  122. package/dist/embed/mermaid/railroad-ebnf-LZEXJU2U-C7mPpgM3.js +0 -2
  123. package/dist/embed/mermaid/railroad-peg-WCYAUIDC-Cyp07M5x.js +0 -2
  124. package/dist/embed/mermaid/stateDiagram-v2-MP3YSRHH-CPideWIU.js +0 -30
  125. package/dist/embed/mermaid/swimlanesDiagram-VR7AAH4N-BC_o7pti.js +0 -31
  126. package/dist/embed/mermaid/treeView-Q6P3EWNA-C94eS7gV.js +0 -2
  127. package/dist/embed/mermaid/treemap-WGGIJYW6-DnrVJ1h3.js +0 -2
  128. package/dist/embed/mermaid/wardley-WFR3VGLG-DRDACyIN.js +0 -2
@@ -1,6 +1,6 @@
1
- import { h as e, m as t } from "./src-DbyMbLVK.js";
2
- import { n, t as r } from "./chunk-Y2CYZVJY-i11wjrBe.js";
3
- //#region node_modules/khroma/dist/utils/channel.js
1
+ import { h as e, m as t } from "./src-CH4XuqUv.js";
2
+ import { n, t as r } from "./chunk-Y2CYZVJY-BAad7w_K.js";
3
+ //#region ../../node_modules/khroma/dist/utils/channel.js
4
4
  var i = {
5
5
  min: {
6
6
  r: 0,
@@ -433,11 +433,11 @@ var s = {
433
433
  return n.r = 255 - n.r, n.g = 255 - n.g, n.b = 255 - n.b, ne(n, e, t);
434
434
  };
435
435
  //#endregion
436
- //#region node_modules/dompurify/dist/purify.es.mjs
437
- function re(e, t) {
436
+ //#region ../../node_modules/mermaid/node_modules/dompurify/dist/purify.es.mjs
437
+ function C(e, t) {
438
438
  this.v = e, this.k = t;
439
439
  }
440
- function C(e, t) {
440
+ function re(e, t) {
441
441
  (t == null || t > e.length) && (t = e.length);
442
442
  for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
443
443
  return r;
@@ -474,16 +474,16 @@ function se(e, t) {
474
474
  }
475
475
  function ce(e, t) {
476
476
  if (e) {
477
- if (typeof e == "string") return C(e, t);
477
+ if (typeof e == "string") return re(e, t);
478
478
  var n = {}.toString.call(e).slice(8, -1);
479
- 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) ? C(e, t) : void 0;
479
+ 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) ? re(e, t) : void 0;
480
480
  }
481
481
  }
482
- function w(e) {
482
+ function le(e) {
483
483
  var t, n;
484
484
  function r(t, n) {
485
485
  try {
486
- var a = e[t](n), o = a.value, s = o instanceof re;
486
+ var a = e[t](n), o = a.value, s = o instanceof C;
487
487
  Promise.resolve(s ? o.v : o).then(function(n) {
488
488
  if (s) {
489
489
  var c = t === "return" && o.k ? t : "next";
@@ -517,119 +517,113 @@ function w(e) {
517
517
  });
518
518
  }, typeof e.return != "function" && (this.return = void 0);
519
519
  }
520
- w.prototype[typeof Symbol == "function" && Symbol.asyncIterator || "@@asyncIterator"] = function() {
520
+ le.prototype[typeof Symbol == "function" && Symbol.asyncIterator || "@@asyncIterator"] = function() {
521
521
  return this;
522
- }, w.prototype.next = function(e) {
522
+ }, le.prototype.next = function(e) {
523
523
  return this._invoke("next", e);
524
- }, w.prototype.throw = function(e) {
524
+ }, le.prototype.throw = function(e) {
525
525
  return this._invoke("throw", e);
526
- }, w.prototype.return = function(e) {
526
+ }, le.prototype.return = function(e) {
527
527
  return this._invoke("return", e);
528
528
  };
529
- var le = Object.entries, ue = Object.setPrototypeOf, de = Object.isFrozen, fe = Object.getPrototypeOf, pe = Object.getOwnPropertyDescriptor, T = Object.freeze, E = Object.seal, me = Object.create, he = typeof Reflect < "u" && Reflect, ge = he.apply, _e = he.construct;
530
- T ||= function(e) {
529
+ var ue = Object.entries, de = Object.setPrototypeOf, fe = Object.isFrozen, pe = Object.getPrototypeOf, me = Object.getOwnPropertyDescriptor, w = Object.freeze, T = Object.seal, he = Object.create, ge = typeof Reflect < "u" && Reflect, _e = ge.apply, E = ge.construct;
530
+ w ||= function(e) {
531
531
  return e;
532
- }, E ||= function(e) {
532
+ }, T ||= function(e) {
533
533
  return e;
534
- }, ge ||= function(e, t) {
534
+ }, _e ||= function(e, t) {
535
535
  var n = [...arguments].slice(2);
536
536
  return e.apply(t, n);
537
- }, _e ||= function(e) {
537
+ }, E ||= function(e) {
538
538
  return new e(...[...arguments].slice(1));
539
539
  };
540
- var D = j(Array.prototype.forEach);
540
+ var ve = k(Array.prototype.forEach);
541
541
  Array.prototype.indexOf;
542
- var ve = j(Array.prototype.lastIndexOf), ye = j(Array.prototype.pop), be = j(Array.prototype.push), xe = j(Array.prototype.slice), Se = j(Array.prototype.splice), Ce = Array.isArray, we = Re(Set), Te = j(Set.prototype.add), Ee = j(Set.prototype.has), De = j(String.prototype.toLowerCase), Oe = j(String.prototype.toString), ke = j(String.prototype.match), Ae = j(String.prototype.replace), je = j(String.prototype.indexOf), Me = j(String.prototype.trim), Ne = j(Number.prototype.toString), O = j(Boolean.prototype.toString), Pe = typeof BigInt > "u" ? null : j(BigInt.prototype.toString), Fe = typeof Symbol > "u" ? null : j(Symbol.prototype.toString), k = j(Object.prototype.hasOwnProperty), Ie = j(Object.prototype.toString), A = j(RegExp.prototype.test), Le = Re(TypeError);
543
- function j(e) {
542
+ var ye = k(Array.prototype.lastIndexOf), be = k(Array.prototype.pop), xe = k(Array.prototype.push);
543
+ Array.prototype.slice;
544
+ var Se = k(Array.prototype.splice), Ce = Array.isArray, we = k(String.prototype.toLowerCase), Te = k(String.prototype.toString), Ee = k(String.prototype.match), De = k(String.prototype.replace), Oe = k(String.prototype.indexOf), ke = k(String.prototype.trim), Ae = k(Number.prototype.toString), je = k(Boolean.prototype.toString), Me = typeof BigInt > "u" ? null : k(BigInt.prototype.toString), Ne = typeof Symbol > "u" ? null : k(Symbol.prototype.toString), D = k(Object.prototype.hasOwnProperty), Pe = k(Object.prototype.toString), O = k(RegExp.prototype.test), Fe = Ie(TypeError);
545
+ function k(e) {
544
546
  return function(t) {
545
547
  t instanceof RegExp && (t.lastIndex = 0);
546
548
  var n = [...arguments].slice(1);
547
- return ge(e, t, n);
549
+ return _e(e, t, n);
548
550
  };
549
551
  }
550
- function Re(e) {
552
+ function Ie(e) {
551
553
  return function() {
552
- return _e(e, [...arguments]);
554
+ return E(e, [...arguments]);
553
555
  };
554
556
  }
555
- function M(e, t) {
556
- let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : De;
557
- if (ue && ue(e, null), !Ce(t)) return e;
557
+ function A(e, t) {
558
+ let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : we;
559
+ if (de && de(e, null), !Ce(t)) return e;
558
560
  let r = t.length;
559
561
  for (; r--;) {
560
562
  let i = t[r];
561
563
  if (typeof i == "string") {
562
564
  let e = n(i);
563
- e !== i && (de(t) || (t[r] = e), i = e);
565
+ e !== i && (fe(t) || (t[r] = e), i = e);
564
566
  }
565
567
  e[i] = !0;
566
568
  }
567
569
  return e;
568
570
  }
569
- function ze(e) {
570
- for (let t = 0; t < e.length; t++) k(e, t) || (e[t] = null);
571
+ function Le(e) {
572
+ for (let t = 0; t < e.length; t++) D(e, t) || (e[t] = null);
571
573
  return e;
572
574
  }
573
- function N(e) {
574
- let t = me(null);
575
- for (let r of le(e)) {
575
+ function j(e) {
576
+ let t = he(null);
577
+ for (let r of ue(e)) {
576
578
  var n = se(r, 2);
577
579
  let i = n[0], a = n[1];
578
- k(e, i) && (t[i] = Ce(a) ? ze(a) : a && typeof a == "object" && a.constructor === Object ? N(a) : a);
580
+ D(e, i) && (t[i] = Ce(a) ? Le(a) : a && typeof a == "object" && a.constructor === Object ? j(a) : a);
579
581
  }
580
582
  return t;
581
583
  }
582
- function Be(e) {
584
+ function Re(e) {
583
585
  switch (typeof e) {
584
586
  case "string": return e;
585
- case "number": return Ne(e);
586
- case "boolean": return O(e);
587
- case "bigint": return Pe ? Pe(e) : "0";
588
- case "symbol": return Fe ? Fe(e) : "Symbol()";
589
- case "undefined": return Ie(e);
587
+ case "number": return Ae(e);
588
+ case "boolean": return je(e);
589
+ case "bigint": return Me ? Me(e) : "0";
590
+ case "symbol": return Ne ? Ne(e) : "Symbol()";
591
+ case "undefined": return Pe(e);
590
592
  case "function":
591
593
  case "object": {
592
- if (e === null) return Ie(e);
593
- let t = e, n = P(t, "toString");
594
+ if (e === null) return Pe(e);
595
+ let t = e, n = M(t, "toString");
594
596
  if (typeof n == "function") {
595
597
  let e = n(t);
596
- return typeof e == "string" ? e : Ie(e);
598
+ return typeof e == "string" ? e : Pe(e);
597
599
  }
598
- return Ie(e);
600
+ return Pe(e);
599
601
  }
600
- default: return Ie(e);
602
+ default: return Pe(e);
601
603
  }
602
604
  }
603
- function P(e, t) {
605
+ function M(e, t) {
604
606
  for (; e !== null;) {
605
- let n = pe(e, t);
607
+ let n = me(e, t);
606
608
  if (n) {
607
- if (n.get) return j(n.get);
608
- if (typeof n.value == "function") return j(n.value);
609
+ if (n.get) return k(n.get);
610
+ if (typeof n.value == "function") return k(n.value);
609
611
  }
610
- e = fe(e);
612
+ e = pe(e);
611
613
  }
612
614
  function n() {
613
615
  return null;
614
616
  }
615
617
  return n;
616
618
  }
617
- function Ve(e, t) {
618
- for (; e !== null;) {
619
- let n = pe(e, t);
620
- if (n) return n.get ? j(n.get) : null;
621
- e = fe(e);
622
- }
623
- return null;
624
- }
625
- function He(e) {
619
+ function ze(e) {
626
620
  try {
627
- return A(e, ""), !0;
621
+ return O(e, ""), !0;
628
622
  } catch {
629
623
  return !1;
630
624
  }
631
625
  }
632
- var Ue = T(/* @__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(".")), We = T(/* @__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(".")), Ge = T([
626
+ var Be = w(/* @__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(".")), Ve = w(/* @__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(".")), He = w([
633
627
  "feBlend",
634
628
  "feColorMatrix",
635
629
  "feComponentTransfer",
@@ -655,7 +649,7 @@ var Ue = T(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
655
649
  "feSpotLight",
656
650
  "feTile",
657
651
  "feTurbulence"
658
- ]), Ke = T([
652
+ ]), Ue = w([
659
653
  "animate",
660
654
  "color-profile",
661
655
  "cursor",
@@ -678,7 +672,7 @@ var Ue = T(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
678
672
  "solidcolor",
679
673
  "unknown",
680
674
  "use"
681
- ]), qe = T(/* @__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(".")), Je = T([
675
+ ]), We = w(/* @__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(".")), Ge = w([
682
676
  "maction",
683
677
  "maligngroup",
684
678
  "malignmark",
@@ -694,13 +688,13 @@ var Ue = T(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
694
688
  "annotation-xml",
695
689
  "mprescripts",
696
690
  "none"
697
- ]), Ye = T(["#text"]), Xe = T(/* @__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(".")), Ze = T(/* @__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.dominant-baseline.dur.edgemode.elevation.end.exponent.fill.fill-opacity.fill-rule.filter.filterunits.flood-color.flood-opacity.font-family.font-size.font-size-adjust.font-stretch.font-style.font-variant.font-weight.fx.fy.g1.g2.glyph-name.glyphref.gradientunits.gradienttransform.height.href.id.image-rendering.in.in2.intercept.k.k1.k2.k3.k4.kerning.keypoints.keysplines.keytimes.lang.lengthadjust.letter-spacing.kernelmatrix.kernelunitlength.lighting-color.local.marker-end.marker-mid.marker-start.markerheight.markerunits.markerwidth.maskcontentunits.maskunits.max.mask.mask-type.media.method.mode.min.name.numoctaves.offset.operator.opacity.order.orient.orientation.origin.overflow.paint-order.path.pathlength.patterncontentunits.patterntransform.patternunits.pointer-events.points.preservealpha.preserveaspectratio.primitiveunits.r.rx.ry.radius.refx.refy.repeatcount.repeatdur.restart.result.rotate.scale.seed.shape-rendering.slope.specularconstant.specularexponent.spreadmethod.startoffset.stddeviation.stitchtiles.stop-color.stop-opacity.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke.stroke-width.style.surfacescale.systemlanguage.tabindex.tablevalues.targetx.targety.transform.transform-origin.text-anchor.text-decoration.text-orientation.text-rendering.textlength.type.u1.u2.unicode.values.vector-effect.viewbox.visibility.version.vert-adv-y.vert-origin-x.vert-origin-y.width.word-spacing.wrap.writing-mode.xchannelselector.ychannelselector.x.x1.x2.xmlns.y.y1.y2.z.zoomandpan".split(".")), Qe = T(/* @__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(".")), $e = T([
691
+ ]), Ke = w(["#text"]), qe = w(/* @__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(".")), Je = w(/* @__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.dominant-baseline.dur.edgemode.elevation.end.exponent.fill.fill-opacity.fill-rule.filter.filterunits.flood-color.flood-opacity.font-family.font-size.font-size-adjust.font-stretch.font-style.font-variant.font-weight.fx.fy.g1.g2.glyph-name.glyphref.gradientunits.gradienttransform.height.href.id.image-rendering.in.in2.intercept.k.k1.k2.k3.k4.kerning.keypoints.keysplines.keytimes.lang.lengthadjust.letter-spacing.kernelmatrix.kernelunitlength.lighting-color.local.marker-end.marker-mid.marker-start.markerheight.markerunits.markerwidth.maskcontentunits.maskunits.max.mask.mask-type.media.method.mode.min.name.numoctaves.offset.operator.opacity.order.orient.orientation.origin.overflow.paint-order.path.pathlength.patterncontentunits.patterntransform.patternunits.pointer-events.points.preservealpha.preserveaspectratio.primitiveunits.r.rx.ry.radius.refx.refy.repeatcount.repeatdur.restart.result.rotate.scale.seed.shape-rendering.slope.specularconstant.specularexponent.spreadmethod.startoffset.stddeviation.stitchtiles.stop-color.stop-opacity.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke.stroke-width.style.surfacescale.systemlanguage.tabindex.tablevalues.targetx.targety.transform.transform-origin.text-anchor.text-decoration.text-orientation.text-rendering.textlength.type.u1.u2.unicode.values.vector-effect.viewbox.visibility.version.vert-adv-y.vert-origin-x.vert-origin-y.width.word-spacing.wrap.writing-mode.xchannelselector.ychannelselector.x.x1.x2.xmlns.y.y1.y2.z.zoomandpan".split(".")), Ye = w(/* @__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(".")), Xe = w([
698
692
  "xlink:href",
699
693
  "xml:id",
700
694
  "xlink:title",
701
695
  "xml:space",
702
696
  "xmlns:xlink"
703
- ]), et = E(/{{[\w\W]*|^[\w\W]*}}/g), tt = E(/<%[\w\W]*|^[\w\W]*%>/g), nt = E(/\${[\w\W]*/g), rt = E(/^data-[\-\w.\u00B7-\uFFFF]+$/), it = E(/^aria-[\-\w]+$/), at = E(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i), ot = E(/^(?:\w+script|data):/i), st = E(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g), ct = E(/^html$/i), lt = E(/^[a-z][.\w]*(-[.\w]+)+$/i), ut = E(/<[/\w!]/g), dt = E(/<[/\w]/g), ft = E(/<\/no(script|embed|frames)/i), pt = E(/\/>/i), F = {
697
+ ]), Ze = T(/{{[\w\W]*|^[\w\W]*}}/g), Qe = T(/<%[\w\W]*|^[\w\W]*%>/g), $e = T(/\${[\w\W]*/g), et = T(/^data-[\-\w.\u00B7-\uFFFF]+$/), tt = T(/^aria-[\-\w]+$/), nt = T(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i), rt = T(/^(?:\w+script|data):/i), it = T(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g), at = T(/^html$/i), ot = T(/^[a-z][.\w]*(-[.\w]+)+$/i), st = T(/<[/\w!]/g), ct = T(/<[/\w]/g), lt = T(/<\/no(script|embed|frames)/i), ut = T(/\/>/i), N = {
704
698
  element: 1,
705
699
  attribute: 2,
706
700
  text: 3,
@@ -713,7 +707,7 @@ var Ue = T(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
713
707
  documentType: 10,
714
708
  documentFragment: 11,
715
709
  notation: 12
716
- }, mt = T(M({}, [
710
+ }, dt = [
717
711
  "style",
718
712
  "script",
719
713
  "xmp",
@@ -722,9 +716,14 @@ var Ue = T(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
722
716
  "noframes",
723
717
  "plaintext",
724
718
  "noscript"
725
- ])), ht = function() {
719
+ ], ft = w(A({}, dt)), pt = function() {
720
+ let e = {};
721
+ return ve(dt, (t) => {
722
+ e[t] = T(RegExp("</" + t + "(?=[\\t\\n\\f\\r />])", "i"));
723
+ }), w(e);
724
+ }(), mt = function() {
726
725
  return typeof window > "u" ? null : window;
727
- }, gt = function(e, t) {
726
+ }, ht = function(e, t) {
728
727
  if (typeof e != "object" || typeof e.createPolicy != "function") return null;
729
728
  let n = null, r = "data-tt-policy-suffix";
730
729
  t && t.hasAttribute(r) && (n = t.getAttribute(r));
@@ -741,7 +740,7 @@ var Ue = T(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
741
740
  } catch {
742
741
  return console.warn("TrustedTypes policy " + i + " could not be created."), null;
743
742
  }
744
- }, _t = function() {
743
+ }, gt = function() {
745
744
  return {
746
745
  afterSanitizeAttributes: [],
747
746
  afterSanitizeElements: [],
@@ -753,62 +752,60 @@ var Ue = T(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
753
752
  uponSanitizeElement: [],
754
753
  uponSanitizeShadowNode: []
755
754
  };
756
- }, vt = function(e, t, n, r) {
757
- return k(e, t) && Ce(e[t]) ? M(r.base ? N(r.base) : {}, e[t], r.transform) : n;
758
- }, yt = function(e, t, n) {
759
- let r = k(e, t) ? e[t] : void 0;
760
- return r && typeof r == "object" ? N(r) : n();
755
+ }, _t = function(e, t, n, r) {
756
+ return D(e, t) && Ce(e[t]) ? A(r.base ? j(r.base) : {}, e[t], r.transform) : n;
757
+ }, vt = function(e, t, n) {
758
+ let r = D(e, t) ? e[t] : void 0;
759
+ return r && typeof r == "object" ? j(r) : n();
761
760
  };
762
- function bt() {
763
- let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : ht(), t = (e) => bt(e);
764
- if (t.version = "3.4.17", t.removed = [], !e || !e.document || e.document.nodeType !== F.document || !e.Element) return t.isSupported = !1, t;
761
+ function yt() {
762
+ let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : mt(), t = (e) => yt(e);
763
+ if (t.version = "3.4.16", t.removed = [], !e || !e.document || e.document.nodeType !== N.document || !e.Element) return t.isSupported = !1, t;
765
764
  let n = e.document, r = n, i = r.currentScript;
766
765
  e.DocumentFragment;
767
766
  let a = e.HTMLTemplateElement, o = e.Node, s = e.Element, c = e.NodeFilter;
768
767
  e.NamedNodeMap === void 0 && (e.NamedNodeMap || e.MozNamedAttrMap), e.HTMLFormElement;
769
- let l = e.DOMParser, u = e.trustedTypes, d = s.prototype, f = P(d, "cloneNode"), p = P(d, "remove"), m = P(d, "removeAttributeNode"), ee = P(d, "nextSibling"), h = P(d, "childNodes"), g = P(d, "parentNode"), te = P(d, "shadowRoot"), _ = P(d, "attributes"), v = o && o.prototype ? P(o.prototype, "nodeType") : null, y = o && o.prototype ? P(o.prototype, "nodeName") : null, b = o && o.prototype ? P(o.prototype, "ownerDocument") : null, x = function(e) {
768
+ let l = e.DOMParser, u = e.trustedTypes, d = s.prototype, f = M(d, "cloneNode"), p = M(d, "remove"), m = M(d, "removeAttributeNode"), ee = M(d, "nextSibling"), h = M(d, "childNodes"), g = M(d, "parentNode"), te = M(d, "shadowRoot"), _ = M(d, "attributes"), v = o && o.prototype ? M(o.prototype, "nodeType") : null, y = o && o.prototype ? M(o.prototype, "nodeName") : null, b = o && o.prototype ? M(o.prototype, "ownerDocument") : null, x = function(e) {
770
769
  return v ? v(e) : e.nodeType;
771
770
  }, ne = function(e) {
772
771
  return y ? y(e) : e.nodeName;
773
- }, S = Ve(d, "namespaceURI"), re = function(e) {
774
- return S ? S(e) : e.namespaceURI;
775
772
  };
776
773
  if (typeof a == "function") {
777
774
  let e = n.createElement("template");
778
775
  e.content && e.content.ownerDocument && (n = e.content.ownerDocument);
779
776
  }
780
- let C, ie = "", ae, oe = !1, se = 0, ce = function() {
781
- if (se > 0) throw Le("A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the \"DOMPurify and Trusted Types\" section of the README.");
782
- }, w = function(e) {
783
- ce(), se++;
777
+ let S, C = "", re, ie = !1, ae = 0, oe = function() {
778
+ if (ae > 0) throw Fe("A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the \"DOMPurify and Trusted Types\" section of the README.");
779
+ }, se = function(e) {
780
+ oe(), ae++;
784
781
  try {
785
- return C.createHTML(e);
782
+ return S.createHTML(e);
786
783
  } finally {
787
- se--;
784
+ ae--;
788
785
  }
789
- }, ue = function(e) {
790
- ce(), se++;
786
+ }, ce = function(e) {
787
+ oe(), ae++;
791
788
  try {
792
- return C.createScriptURL(e);
789
+ return S.createScriptURL(e);
793
790
  } finally {
794
- se--;
791
+ ae--;
795
792
  }
796
- }, de = function() {
797
- return oe ||= (ae = gt(u, i), !0), ae;
798
- }, fe = n, pe = fe.implementation, he = fe.createNodeIterator, ge = fe.createDocumentFragment, _e = fe.getElementsByTagName, Ne = r.importNode, O = _t();
799
- t.isSupported = typeof le == "function" && typeof g == "function" && pe && pe.createHTMLDocument !== void 0;
800
- let Pe = et, Fe = tt, Ie = nt, j = rt, Re = it, ze = ot, xt = st, St = lt, I = at, L = null, R = M({}, [
801
- ...Ue,
793
+ }, le = function() {
794
+ return ie ||= (re = ht(u, i), !0), re;
795
+ }, de = n, fe = de.implementation, pe = de.createNodeIterator, me = de.createDocumentFragment, ge = de.getElementsByTagName, _e = r.importNode, E = gt();
796
+ t.isSupported = typeof ue == "function" && typeof g == "function" && fe && fe.createHTMLDocument !== void 0;
797
+ let Ae = Ze, je = Qe, Me = $e, Ne = et, Pe = tt, k = rt, Ie = it, Le = ot, dt = nt, P = null, bt = A({}, [
798
+ ...Be,
799
+ ...Ve,
800
+ ...He,
802
801
  ...We,
803
- ...Ge,
802
+ ...Ke
803
+ ]), F = null, I = A({}, [
804
804
  ...qe,
805
- ...Ye
806
- ]), z = null, Ct = M({}, [
807
- ...Xe,
808
- ...Ze,
809
- ...Qe,
810
- ...$e
811
- ]), B = Object.seal(me(null, {
805
+ ...Je,
806
+ ...Ye,
807
+ ...Xe
808
+ ]), L = Object.seal(he(null, {
812
809
  tagNameCheck: {
813
810
  writable: !0,
814
811
  configurable: !1,
@@ -827,7 +824,7 @@ function bt() {
827
824
  enumerable: !0,
828
825
  value: !1
829
826
  }
830
- })), wt = null, Tt = null, V = Object.seal(me(null, {
827
+ })), R = null, xt = null, z = Object.seal(he(null, {
831
828
  tagCheck: {
832
829
  writable: !0,
833
830
  configurable: !1,
@@ -840,14 +837,14 @@ function bt() {
840
837
  enumerable: !0,
841
838
  value: null
842
839
  }
843
- })), Et = !0, Dt = !0, Ot = !1, kt = !0, H = !1, At = !0, jt = !1, Mt = !1, Nt = null, Pt = null, Ft = !1, It = !1, Lt = !1, Rt = !1, zt = !0, Bt = !1, U = "user-content-", W = !0, Vt = !1, G = null, Ht = {}, K = null, Ut = M({}, /* @__PURE__ */ "annotation-xml.audio.colgroup.desc.foreignobject.head.iframe.math.mi.mn.mo.ms.mtext.noembed.noframes.noscript.plaintext.script.selectedcontent.style.svg.template.thead.title.video.xmp".split(".")), Wt = null, Gt = M({}, [
840
+ })), St = !0, Ct = !0, wt = !1, Tt = !0, B = !1, V = !0, Et = !1, Dt = !1, Ot = null, kt = null, At = !1, jt = !1, Mt = !1, Nt = !1, Pt = !0, Ft = !1, It = "user-content-", Lt = !0, Rt = !1, H = {}, U = null, zt = A({}, /* @__PURE__ */ "annotation-xml.audio.colgroup.desc.foreignobject.head.iframe.math.mi.mn.mo.ms.mtext.noembed.noframes.noscript.plaintext.script.selectedcontent.style.svg.template.thead.title.video.xmp".split(".")), Bt = null, Vt = A({}, [
844
841
  "audio",
845
842
  "video",
846
843
  "img",
847
844
  "source",
848
845
  "image",
849
846
  "track"
850
- ]), Kt = null, qt = M({}, [
847
+ ]), Ht = null, Ut = A({}, [
851
848
  "alt",
852
849
  "class",
853
850
  "for",
@@ -862,72 +859,77 @@ function bt() {
862
859
  "value",
863
860
  "style",
864
861
  "xmlns"
865
- ]), Jt = "http://www.w3.org/1998/Math/MathML", q = "http://www.w3.org/2000/svg", J = "http://www.w3.org/1999/xhtml", Y = J, Yt = !1, Xt = null, Zt = M({}, [
866
- Jt,
867
- q,
868
- J
869
- ], Oe), Qt = T([
862
+ ]), Wt = "http://www.w3.org/1998/Math/MathML", Gt = "http://www.w3.org/2000/svg", W = "http://www.w3.org/1999/xhtml", G = W, Kt = !1, K = null, qt = A({}, [
863
+ Wt,
864
+ Gt,
865
+ W
866
+ ], Te), q = w([
870
867
  "mi",
871
868
  "mo",
872
869
  "mn",
873
870
  "ms",
874
871
  "mtext"
875
- ]), $t = M({}, Qt), en = T(["annotation-xml"]), tn = M({}, en), nn = M({}, [
872
+ ]), Jt = A({}, q), Yt = w(["annotation-xml"]), Xt = A({}, Yt), Zt = A({}, [
876
873
  "title",
877
874
  "style",
878
875
  "font",
879
876
  "a",
880
877
  "script"
881
- ]), rn = null, an = ["application/xhtml+xml", "text/html"], X = null, on = null, sn = n.createElement("form"), cn = function(e) {
878
+ ]), Qt = null, $t = ["application/xhtml+xml", "text/html"], J = null, Y = null, en = n.createElement("form"), tn = function(e) {
882
879
  return e instanceof RegExp || e instanceof Function;
883
- }, ln = function() {
880
+ }, nn = function() {
884
881
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
885
- if (on && on === e) return;
886
- (!e || typeof e != "object") && (e = {}), e = N(e), rn = an.indexOf(e.PARSER_MEDIA_TYPE) === -1 ? "text/html" : e.PARSER_MEDIA_TYPE, X = rn === "application/xhtml+xml" ? Oe : De, L = vt(e, "ALLOWED_TAGS", R, { transform: X }), z = vt(e, "ALLOWED_ATTR", Ct, { transform: X }), Xt = vt(e, "ALLOWED_NAMESPACES", Zt, { transform: Oe }), Kt = vt(e, "ADD_URI_SAFE_ATTR", qt, {
887
- transform: X,
888
- base: qt
889
- }), Wt = vt(e, "ADD_DATA_URI_TAGS", Gt, {
890
- transform: X,
891
- base: Gt
892
- }), K = vt(e, "FORBID_CONTENTS", Ut, { transform: X }), wt = vt(e, "FORBID_TAGS", N({}), { transform: X }), Tt = vt(e, "FORBID_ATTR", N({}), { transform: X }), Ht = k(e, "USE_PROFILES") ? e.USE_PROFILES && typeof e.USE_PROFILES == "object" ? N(e.USE_PROFILES) : e.USE_PROFILES : !1, Et = e.ALLOW_ARIA_ATTR !== !1, Dt = e.ALLOW_DATA_ATTR !== !1, Ot = e.ALLOW_UNKNOWN_PROTOCOLS || !1, kt = e.ALLOW_SELF_CLOSE_IN_ATTR !== !1, H = e.SAFE_FOR_TEMPLATES || !1, At = e.SAFE_FOR_XML !== !1, jt = e.WHOLE_DOCUMENT || !1, It = e.RETURN_DOM || !1, Lt = e.RETURN_DOM_FRAGMENT || !1, Rt = e.RETURN_TRUSTED_TYPE || !1, Ft = e.FORCE_BODY || !1, zt = e.SANITIZE_DOM !== !1, Bt = e.SANITIZE_NAMED_PROPS || !1, W = e.KEEP_CONTENT !== !1, Vt = e.IN_PLACE || !1, I = He(e.ALLOWED_URI_REGEXP) ? e.ALLOWED_URI_REGEXP : at, Y = typeof e.NAMESPACE == "string" ? e.NAMESPACE : J, $t = yt(e, "MATHML_TEXT_INTEGRATION_POINTS", () => M({}, Qt)), tn = yt(e, "HTML_INTEGRATION_POINTS", () => M({}, en));
893
- let t = yt(e, "CUSTOM_ELEMENT_HANDLING", () => me(null));
894
- if (B = me(null), k(t, "tagNameCheck") && cn(t.tagNameCheck) && (B.tagNameCheck = t.tagNameCheck), k(t, "attributeNameCheck") && cn(t.attributeNameCheck) && (B.attributeNameCheck = t.attributeNameCheck), k(t, "allowCustomizedBuiltInElements") && typeof t.allowCustomizedBuiltInElements == "boolean" && (B.allowCustomizedBuiltInElements = t.allowCustomizedBuiltInElements), E(B), H && (Dt = !1), Lt && (It = !0), Ht && (L = M({}, Ye), z = me(null), Ht.html === !0 && (M(L, Ue), M(z, Xe)), Ht.svg === !0 && (M(L, We), M(z, Ze), M(z, $e)), Ht.svgFilters === !0 && (M(L, Ge), M(z, Ze), M(z, $e)), Ht.mathMl === !0 && (M(L, qe), M(z, Qe), M(z, $e))), V.tagCheck = null, V.attributeCheck = null, k(e, "ADD_TAGS") && (typeof e.ADD_TAGS == "function" ? V.tagCheck = e.ADD_TAGS : Ce(e.ADD_TAGS) && (L === R && (L = N(L)), M(L, e.ADD_TAGS, X))), k(e, "ADD_ATTR") && (typeof e.ADD_ATTR == "function" ? V.attributeCheck = e.ADD_ATTR : Ce(e.ADD_ATTR) && (z === Ct && (z = N(z)), M(z, e.ADD_ATTR, X))), k(e, "ADD_FORBID_CONTENTS") && Ce(e.ADD_FORBID_CONTENTS) && (K === Ut && (K = N(K)), M(K, e.ADD_FORBID_CONTENTS, X)), W && (L["#text"] = !0), jt && M(L, [
882
+ if (Y && Y === e) return;
883
+ (!e || typeof e != "object") && (e = {}), e = j(e), Qt = $t.indexOf(e.PARSER_MEDIA_TYPE) === -1 ? "text/html" : e.PARSER_MEDIA_TYPE, J = Qt === "application/xhtml+xml" ? Te : we, P = _t(e, "ALLOWED_TAGS", bt, { transform: J }), F = _t(e, "ALLOWED_ATTR", I, { transform: J }), K = _t(e, "ALLOWED_NAMESPACES", qt, { transform: Te }), Ht = _t(e, "ADD_URI_SAFE_ATTR", Ut, {
884
+ transform: J,
885
+ base: Ut
886
+ }), Bt = _t(e, "ADD_DATA_URI_TAGS", Vt, {
887
+ transform: J,
888
+ base: Vt
889
+ }), U = _t(e, "FORBID_CONTENTS", zt, { transform: J }), R = _t(e, "FORBID_TAGS", j({}), { transform: J }), xt = _t(e, "FORBID_ATTR", j({}), { transform: J }), H = D(e, "USE_PROFILES") ? e.USE_PROFILES && typeof e.USE_PROFILES == "object" ? j(e.USE_PROFILES) : e.USE_PROFILES : !1, St = e.ALLOW_ARIA_ATTR !== !1, Ct = e.ALLOW_DATA_ATTR !== !1, wt = e.ALLOW_UNKNOWN_PROTOCOLS || !1, Tt = e.ALLOW_SELF_CLOSE_IN_ATTR !== !1, B = e.SAFE_FOR_TEMPLATES || !1, V = e.SAFE_FOR_XML !== !1, Et = e.WHOLE_DOCUMENT || !1, jt = e.RETURN_DOM || !1, Mt = e.RETURN_DOM_FRAGMENT || !1, Nt = e.RETURN_TRUSTED_TYPE || !1, At = e.FORCE_BODY || !1, Pt = e.SANITIZE_DOM !== !1, Ft = e.SANITIZE_NAMED_PROPS || !1, Lt = e.KEEP_CONTENT !== !1, Rt = e.IN_PLACE || !1, dt = ze(e.ALLOWED_URI_REGEXP) ? e.ALLOWED_URI_REGEXP : nt, G = typeof e.NAMESPACE == "string" ? e.NAMESPACE : W, Jt = vt(e, "MATHML_TEXT_INTEGRATION_POINTS", () => A({}, q)), Xt = vt(e, "HTML_INTEGRATION_POINTS", () => A({}, Yt));
890
+ let t = vt(e, "CUSTOM_ELEMENT_HANDLING", () => he(null));
891
+ if (L = he(null), D(t, "tagNameCheck") && tn(t.tagNameCheck) && (L.tagNameCheck = t.tagNameCheck), D(t, "attributeNameCheck") && tn(t.attributeNameCheck) && (L.attributeNameCheck = t.attributeNameCheck), D(t, "allowCustomizedBuiltInElements") && typeof t.allowCustomizedBuiltInElements == "boolean" && (L.allowCustomizedBuiltInElements = t.allowCustomizedBuiltInElements), T(L), B && (Ct = !1), Mt && (jt = !0), H && (P = A({}, Ke), F = he(null), H.html === !0 && (A(P, Be), A(F, qe)), H.svg === !0 && (A(P, Ve), A(F, Je), A(F, Xe)), H.svgFilters === !0 && (A(P, He), A(F, Je), A(F, Xe)), H.mathMl === !0 && (A(P, We), A(F, Ye), A(F, Xe))), z.tagCheck = null, z.attributeCheck = null, D(e, "ADD_TAGS") && (typeof e.ADD_TAGS == "function" ? z.tagCheck = e.ADD_TAGS : Ce(e.ADD_TAGS) && (P === bt && (P = j(P)), A(P, e.ADD_TAGS, J))), D(e, "ADD_ATTR") && (typeof e.ADD_ATTR == "function" ? z.attributeCheck = e.ADD_ATTR : Ce(e.ADD_ATTR) && (F === I && (F = j(F)), A(F, e.ADD_ATTR, J))), D(e, "ADD_FORBID_CONTENTS") && Ce(e.ADD_FORBID_CONTENTS) && (U === zt && (U = j(U)), A(U, e.ADD_FORBID_CONTENTS, J)), Lt && (P["#text"] = !0), Et && A(P, [
895
892
  "html",
896
893
  "head",
897
894
  "body"
898
- ]), L.table && (M(L, ["tbody"]), delete wt.tbody), e.TRUSTED_TYPES_POLICY) {
899
- if (typeof e.TRUSTED_TYPES_POLICY.createHTML != "function") throw Le("TRUSTED_TYPES_POLICY configuration option must provide a \"createHTML\" hook.");
900
- if (typeof e.TRUSTED_TYPES_POLICY.createScriptURL != "function") throw Le("TRUSTED_TYPES_POLICY configuration option must provide a \"createScriptURL\" hook.");
901
- let t = C;
902
- C = e.TRUSTED_TYPES_POLICY;
895
+ ]), P.table && (A(P, ["tbody"]), delete R.tbody), e.TRUSTED_TYPES_POLICY) {
896
+ if (typeof e.TRUSTED_TYPES_POLICY.createHTML != "function") throw Fe("TRUSTED_TYPES_POLICY configuration option must provide a \"createHTML\" hook.");
897
+ if (typeof e.TRUSTED_TYPES_POLICY.createScriptURL != "function") throw Fe("TRUSTED_TYPES_POLICY configuration option must provide a \"createScriptURL\" hook.");
898
+ let t = S;
899
+ S = e.TRUSTED_TYPES_POLICY;
903
900
  try {
904
- ie = w("");
901
+ C = se("");
905
902
  } catch (e) {
906
- throw C = t, e;
903
+ throw S = t, e;
907
904
  }
908
- } else e.TRUSTED_TYPES_POLICY === null ? (C = void 0, ie = "") : (C === void 0 && (C = de()), C && typeof ie == "string" && (ie = w("")));
909
- T && T(e), on = e;
910
- }, un = M({}, [
911
- ...We,
912
- ...Ge,
913
- ...Ke
914
- ]), dn = M({}, [...qe, ...Je]), fn = function(e, t, n) {
915
- return t.namespaceURI === J ? e === "svg" : t.namespaceURI === Jt ? e === "svg" && (n === "annotation-xml" || $t[n]) : !!un[e];
916
- }, pn = function(e, t, n) {
917
- return t.namespaceURI === J ? e === "math" : t.namespaceURI === q ? e === "math" && tn[n] : !!dn[e];
918
- }, mn = function(e, t, n) {
919
- return t.namespaceURI === q && !tn[n] || t.namespaceURI === Jt && !$t[n] ? !1 : !dn[e] && (nn[e] || !un[e]);
920
- }, hn = function(e) {
921
- let t = re(e), n = De(ne(e)), r = g(e), i, a;
922
- return r && x(r) === F.element ? (i = { namespaceURI: re(r) }, a = De(ne(r))) : (i = { namespaceURI: Y }, a = "template"), Xt[t] ? t === q ? fn(n, i, a) : t === Jt ? pn(n, i, a) : t === J ? mn(n, i, a) : !!(rn === "application/xhtml+xml" && Xt[t]) : !1;
923
- }, Z = function(e) {
924
- be(t.removed, { element: e });
905
+ } else e.TRUSTED_TYPES_POLICY === null ? (S = void 0, C = "") : (S === void 0 && (S = le()), S && typeof C == "string" && (C = se("")));
906
+ w && w(e), Y = e;
907
+ }, rn = A({}, [
908
+ ...Ve,
909
+ ...He,
910
+ ...Ue
911
+ ]), an = A({}, [...We, ...Ge]), on = function(e, t, n) {
912
+ return t.namespaceURI === W ? e === "svg" : t.namespaceURI === Wt ? e === "svg" && (n === "annotation-xml" || Jt[n]) : !!rn[e];
913
+ }, sn = function(e, t, n) {
914
+ return t.namespaceURI === W ? e === "math" : t.namespaceURI === Gt ? e === "math" && Xt[n] : !!an[e];
915
+ }, cn = function(e, t, n) {
916
+ return t.namespaceURI === Gt && !Xt[n] || t.namespaceURI === Wt && !Jt[n] ? !1 : !an[e] && (Zt[e] || !rn[e]);
917
+ }, ln = function(e) {
918
+ let t = g(e);
919
+ (!t || !t.tagName) && (t = {
920
+ namespaceURI: G,
921
+ tagName: "template"
922
+ });
923
+ let n = we(e.tagName), r = we(t.tagName);
924
+ return K[e.namespaceURI] ? e.namespaceURI === Gt ? on(n, t, r) : e.namespaceURI === Wt ? sn(n, t, r) : e.namespaceURI === W ? cn(n, t, r) : !!(Qt === "application/xhtml+xml" && K[e.namespaceURI]) : !1;
925
+ }, X = function(e) {
926
+ xe(t.removed, { element: e });
925
927
  try {
926
928
  g(e).removeChild(e);
927
929
  } catch {
928
- if (p(e), !g(e)) throw Le("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place");
930
+ if (p(e), !g(e)) throw Fe("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place");
929
931
  }
930
- }, gn = function(e, t, n) {
932
+ }, un = function(e, t, n) {
931
933
  try {
932
934
  m(e, t);
933
935
  } catch {
@@ -935,26 +937,31 @@ function bt() {
935
937
  e.removeAttribute(n);
936
938
  } catch {}
937
939
  }
938
- }, _n = function(e) {
939
- xn(e);
940
+ }, dn = function(e) {
941
+ pn(e);
940
942
  let t = h(e);
941
- t && D(xe(t), (e) => {
942
- try {
943
- p(e);
944
- } catch {}
945
- });
946
- let n = x(e) === F.element ? _(e) : null;
943
+ if (t) {
944
+ let e = [];
945
+ ve(t, (t) => {
946
+ xe(e, t);
947
+ }), ve(e, (e) => {
948
+ try {
949
+ p(e);
950
+ } catch {}
951
+ });
952
+ }
953
+ let n = _(e);
947
954
  if (n) for (let t = n.length - 1; t >= 0; --t) {
948
955
  let r = n[t], i = r && r.name;
949
- typeof i == "string" && gn(e, r, i);
956
+ typeof i == "string" && un(e, r, i);
950
957
  }
951
- }, vn = function(e, n, r) {
958
+ }, Z = function(e, n, r) {
952
959
  if (!r) try {
953
960
  r = n.getAttributeNode(e);
954
961
  } catch {
955
962
  r = null;
956
963
  }
957
- be(t.removed, {
964
+ xe(t.removed, {
958
965
  attribute: r || null,
959
966
  from: n
960
967
  });
@@ -966,136 +973,93 @@ function bt() {
966
973
  } catch {}
967
974
  }
968
975
  if (e === "is") {
969
- if (It || Lt) try {
970
- Z(n);
976
+ if (jt || Mt) try {
977
+ X(n);
971
978
  } catch {}
972
979
  else try {
973
980
  n.setAttribute(e, "");
974
981
  } catch {}
975
982
  }
976
- }, yn = function(e) {
983
+ }, fn = function(e) {
977
984
  let t = _(e);
978
985
  if (t) for (let n = t.length - 1; n >= 0; --n) {
979
986
  let r = t[n], i = r && r.name;
980
- typeof i != "string" || z[X(i)] || gn(e, r, i);
981
- }
982
- }, bn = function(e, t) {
983
- let n = arguments.length > 2 && arguments[2] !== void 0 && arguments[2], r = [e];
984
- for (; r.length > 0;) {
985
- let e = r.pop();
986
- if (t(e) === !1) continue;
987
- if (n && x(e) === F.element) {
988
- let t = te(e);
989
- Q(t) && r.push(t);
990
- }
991
- let i = h(e);
992
- if (i) for (let e = i.length - 1; e >= 0; --e) r.push(i[e]);
987
+ typeof i != "string" || F[J(i)] || un(e, r, i);
993
988
  }
994
- }, xn = function(e) {
995
- bn(e, (e) => {
996
- x(e) === F.element && yn(e);
997
- });
998
- }, Sn = function(e) {
999
- let t = [];
1000
- return bn(e, (e) => {
1001
- t.push(e);
1002
- }, !0), t;
1003
- }, Cn = function(e, t) {
1004
- let n = we();
1005
- D(Sn(e), (e) => {
1006
- x(e) === F.element && Te(n, e);
1007
- }), D(t, (e) => {
1008
- x(e) === F.element && !Ee(n, e) && yn(e);
1009
- });
1010
- }, wn = function(e, n) {
1011
- let r = !1;
1012
- return D(t.removed, (t) => {
1013
- t.element && (r ||= t.element === e, xn(t.element));
1014
- }), Cn(e, n), r;
1015
- }, Tn = function(e, t) {
1016
- let n = G, r = null, i = () => (r || (r = we(), D(t, (e) => {
1017
- Te(r, e);
1018
- })), r);
1019
- for (let t = 0;; t++) {
1020
- let r = Sn(e), a = [e], o = !1;
1021
- if (D(r, (e) => {
1022
- x(e) === F.documentFragment ? be(a, e) : !o && !Ee(n, e) && (o = Ee(i(), e));
1023
- }), !o) return;
1024
- if (t >= 8) throw Le("the tree kept changing during in-place sanitization; refusing to return it");
1025
- D(a, (t, n) => {
1026
- En(t, n > 0, e, i());
1027
- });
989
+ }, pn = function(e) {
990
+ let t = [e];
991
+ for (; t.length > 0;) {
992
+ let e = t.pop();
993
+ x(e) === N.element && fn(e);
994
+ let n = h(e);
995
+ if (n) for (let e = n.length - 1; e >= 0; --e) t.push(n[e]);
1028
996
  }
1029
- }, En = function(e, t, n, r) {
1030
- let i = jn(e), a;
1031
- for (; a = i.nextNode();) Ee(r, a) && !Ee(G, a) && (t && $(O.uponSanitizeShadowNode, a, null), Hn(a, n), Yn(a, n), Q(a.content) && Xn(a.content));
1032
- }, Dn = function(e) {
1033
- G && Te(G, e);
1034
- }, On = function(e, t) {
1035
- return At ? e === "patchsrc" || e === "for" && t !== "label" && t !== "output" : !1;
1036
- }, kn = function(e) {
1037
- At && bn(e, (e) => {
1038
- let t = x(e);
1039
- if (t === F.processingInstruction || t === F.comment && A(dt, e.data)) {
997
+ }, mn = function(e, t) {
998
+ return V ? e === "patchsrc" || e === "for" && t !== "label" && t !== "output" : !1;
999
+ }, hn = function(e) {
1000
+ if (!V) return;
1001
+ let t = [e];
1002
+ for (; t.length > 0;) {
1003
+ let e = t.pop(), n = x(e);
1004
+ if (n === N.processingInstruction || n === N.comment && O(ct, e.data)) {
1040
1005
  try {
1041
1006
  p(e);
1042
1007
  } catch {}
1043
- return !1;
1008
+ continue;
1044
1009
  }
1045
- if (t === F.element) {
1046
- let t = e, n = X(ne(e));
1010
+ if (n === N.element) {
1011
+ let t = e, n = J(ne(e));
1047
1012
  try {
1048
- t.hasAttribute && t.hasAttribute("patchsrc") && t.removeAttribute("patchsrc"), t.hasAttribute && t.hasAttribute("for") && On("for", n) && t.removeAttribute("for");
1013
+ t.hasAttribute && t.hasAttribute("patchsrc") && t.removeAttribute("patchsrc"), t.hasAttribute && t.hasAttribute("for") && mn("for", n) && t.removeAttribute("for");
1049
1014
  } catch {}
1050
1015
  }
1051
- return !0;
1052
- });
1053
- }, An = function(e) {
1016
+ let r = h(e);
1017
+ if (r) for (let e = r.length - 1; e >= 0; --e) t.push(r[e]);
1018
+ }
1019
+ }, gn = function(e) {
1054
1020
  let t = null, r = null;
1055
- if (Ft) e = "<remove></remove>" + e;
1021
+ if (At) e = "<remove></remove>" + e;
1056
1022
  else {
1057
- let t = ke(e, /^[\r\n\t ]+/);
1023
+ let t = Ee(e, /^[\r\n\t ]+/);
1058
1024
  r = t && t[0];
1059
1025
  }
1060
- rn === "application/xhtml+xml" && Y === J && (e = "<html xmlns=\"http://www.w3.org/1999/xhtml\"><head></head><body>" + e + "</body></html>");
1061
- let i = C ? w(e) : e;
1062
- if (Y === J) try {
1063
- t = new l().parseFromString(i, rn);
1026
+ Qt === "application/xhtml+xml" && G === W && (e = "<html xmlns=\"http://www.w3.org/1999/xhtml\"><head></head><body>" + e + "</body></html>");
1027
+ let i = S ? se(e) : e;
1028
+ if (G === W) try {
1029
+ t = new l().parseFromString(i, Qt);
1064
1030
  } catch {}
1065
1031
  if (!t || !t.documentElement) {
1066
- t = pe.createDocument(Y, "template", null);
1032
+ t = fe.createDocument(G, "template", null);
1067
1033
  try {
1068
- t.documentElement.innerHTML = Yt ? ie : i;
1034
+ t.documentElement.innerHTML = Kt ? C : i;
1069
1035
  } catch {}
1070
1036
  }
1071
1037
  let a = t.body || t.documentElement;
1072
- return e && r && a.insertBefore(n.createTextNode(r), a.childNodes[0] || null), Y === J ? _e.call(t, jt ? "html" : "body")[0] : jt ? t.documentElement : a;
1073
- }, jn = function(e) {
1038
+ return e && r && a.insertBefore(n.createTextNode(r), a.childNodes[0] || null), G === W ? ge.call(t, Et ? "html" : "body")[0] : Et ? t.documentElement : a;
1039
+ }, Q = function(e) {
1074
1040
  let t = b ? b(e) : e.ownerDocument;
1075
- return he.call(t || e, e, c.SHOW_ELEMENT | c.SHOW_COMMENT | c.SHOW_TEXT | c.SHOW_PROCESSING_INSTRUCTION | c.SHOW_CDATA_SECTION, null);
1076
- }, Mn = function(e) {
1077
- return e = Ae(e, Pe, " "), e = Ae(e, Fe, " "), e = Ae(e, Ie, " "), e;
1078
- }, Nn = function(e) {
1079
- Pn(e);
1080
- let t = e.querySelectorAll?.call(e, "template");
1081
- t && D(t, (e) => {
1082
- Q(e.content) && Nn(e.content);
1083
- });
1084
- }, Pn = function(e) {
1041
+ return pe.call(t || e, e, c.SHOW_ELEMENT | c.SHOW_COMMENT | c.SHOW_TEXT | c.SHOW_PROCESSING_INSTRUCTION | c.SHOW_CDATA_SECTION, null);
1042
+ }, _n = function(e) {
1043
+ return e = De(e, Ae, " "), e = De(e, je, " "), e = De(e, Me, " "), e;
1044
+ }, vn = function(e) {
1085
1045
  e.normalize();
1086
- let t = b ? b(e) : e.ownerDocument, n = he.call(t || e, e, c.SHOW_TEXT | c.SHOW_COMMENT | c.SHOW_CDATA_SECTION | c.SHOW_PROCESSING_INSTRUCTION, null), r = n.nextNode();
1087
- for (; r;) r.data = Mn(r.data), r = n.nextNode();
1088
- }, Fn = function(e) {
1046
+ let t = b ? b(e) : e.ownerDocument, n = pe.call(t || e, e, c.SHOW_TEXT | c.SHOW_COMMENT | c.SHOW_CDATA_SECTION | c.SHOW_PROCESSING_INSTRUCTION, null), r = n.nextNode();
1047
+ for (; r;) r.data = _n(r.data), r = n.nextNode();
1048
+ let i = e.querySelectorAll?.call(e, "template");
1049
+ i && ve(i, (e) => {
1050
+ bn(e.content) && vn(e.content);
1051
+ });
1052
+ }, yn = function(e) {
1089
1053
  let t = y ? y(e) : null;
1090
- return typeof t != "string" || X(t) !== "form" ? !1 : typeof e.nodeName != "string" || typeof e.textContent != "string" || typeof e.removeChild != "function" || e.attributes !== _(e) || typeof e.removeAttribute != "function" || typeof e.removeAttributeNode != "function" || typeof e.getAttributeNode != "function" || typeof e.setAttribute != "function" || typeof e.namespaceURI != "string" || typeof e.insertBefore != "function" || typeof e.hasChildNodes != "function" || e.nodeType !== v(e) || e.childNodes !== h(e);
1091
- }, Q = function(e) {
1054
+ return typeof t != "string" || J(t) !== "form" ? !1 : typeof e.nodeName != "string" || typeof e.textContent != "string" || typeof e.removeChild != "function" || e.attributes !== _(e) || typeof e.removeAttribute != "function" || typeof e.removeAttributeNode != "function" || typeof e.getAttributeNode != "function" || typeof e.setAttribute != "function" || typeof e.namespaceURI != "string" || typeof e.insertBefore != "function" || typeof e.hasChildNodes != "function" || e.nodeType !== v(e) || e.childNodes !== h(e);
1055
+ }, bn = function(e) {
1092
1056
  if (!v || typeof e != "object" || !e) return !1;
1093
1057
  try {
1094
- return v(e) === F.documentFragment;
1058
+ return v(e) === N.documentFragment;
1095
1059
  } catch {
1096
1060
  return !1;
1097
1061
  }
1098
- }, In = function(e) {
1062
+ }, xn = function(e) {
1099
1063
  if (!v || typeof e != "object" || !e) return !1;
1100
1064
  try {
1101
1065
  return typeof v(e) == "number";
@@ -1104,17 +1068,17 @@ function bt() {
1104
1068
  }
1105
1069
  };
1106
1070
  function $(e, n, r) {
1107
- e.length !== 0 && D(e, (e) => {
1108
- e.call(t, n, r, on);
1071
+ e.length !== 0 && ve(e, (e) => {
1072
+ e.call(t, n, r, Y);
1109
1073
  });
1110
1074
  }
1111
- let Ln = function(e, t) {
1112
- return !!(At && e.hasChildNodes() && !In(e.firstElementChild) && A(ut, e.textContent) && A(ut, e.innerHTML) || At && mt[t] && x(e) === F.element && re(e) === J && (In(e.firstElementChild) || typeof e.textContent == "string" && A(ut, e.textContent)) || e.nodeType === F.processingInstruction || At && e.nodeType === F.comment && A(dt, e.data));
1113
- }, Rn = function(e, t) {
1114
- return e instanceof RegExp ? A(e, t) : e instanceof Function && !!e(t, ...[...arguments].slice(2));
1115
- }, zn = function(e, t, n) {
1116
- if (!wt[t] && Gn(t) && Rn(B.tagNameCheck, t)) return !1;
1117
- if (W && !K[t] && !K[De(t)]) {
1075
+ let Sn = function(e, t) {
1076
+ return !!(V && e.hasChildNodes() && !xn(e.firstElementChild) && O(st, e.textContent) && O(st, e.innerHTML) || V && e.namespaceURI === W && ft[t] && (xn(e.firstElementChild) || typeof e.textContent == "string" && O(pt[t], e.textContent)) || e.nodeType === N.processingInstruction || V && e.nodeType === N.comment && O(ct, e.data));
1077
+ }, Cn = function(e, t) {
1078
+ return e instanceof RegExp ? O(e, t) : e instanceof Function && !!e(t, ...[...arguments].slice(2));
1079
+ }, wn = function(e, t, n) {
1080
+ if (!R[t] && An(t) && Cn(L.tagNameCheck, t)) return !1;
1081
+ if (Lt && !U[t]) {
1118
1082
  let t = g(e), r = h(e);
1119
1083
  if (r && t) {
1120
1084
  let i = r.length;
@@ -1124,35 +1088,35 @@ function bt() {
1124
1088
  }
1125
1089
  }
1126
1090
  }
1127
- return Z(e), !0;
1128
- }, Bn = function(e, t, n, r) {
1129
- return e.length === 0 ? t : t === n || t === r ? N(t) : t;
1130
- }, Vn = function(e, t) {
1131
- return e === t || g(e) !== null ? !1 : (Vt && xn(e), !0);
1132
- }, Hn = function(e, n) {
1133
- if (Dn(e), $(O.beforeSanitizeElements, e, null), Vn(e, n)) return !0;
1134
- if (Fn(e)) return Z(e), !0;
1135
- let r = X(ne(e));
1136
- if (L = Bn(O.uponSanitizeElement, L, R, Nt), $(O.uponSanitizeElement, e, {
1091
+ return X(e), !0;
1092
+ }, Tn = function(e, t, n, r) {
1093
+ return e.length === 0 ? t : t === n || t === r ? j(t) : t;
1094
+ }, En = function(e, t) {
1095
+ return e === t || g(e) !== null ? !1 : (Rt && pn(e), !0);
1096
+ }, Dn = function(e, n) {
1097
+ if ($(E.beforeSanitizeElements, e, null), En(e, n)) return !0;
1098
+ if (yn(e)) return X(e), !0;
1099
+ let r = J(ne(e));
1100
+ if (P = Tn(E.uponSanitizeElement, P, bt, Ot), $(E.uponSanitizeElement, e, {
1137
1101
  tagName: r,
1138
- allowedTags: L
1139
- }), Vn(e, n)) return !0;
1140
- if (Ln(e, r)) return Z(e), !0;
1141
- if (wt[r] || !(V.tagCheck instanceof Function && V.tagCheck(r)) && !L[r]) {
1142
- let t = zn(e, r, n);
1143
- return t === !1 && ($(O.afterSanitizeElements, e, null), Vn(e, n)) ? !0 : t;
1102
+ allowedTags: P
1103
+ }), En(e, n)) return !0;
1104
+ if (Sn(e, r)) return X(e), !0;
1105
+ if (R[r] || !(z.tagCheck instanceof Function && z.tagCheck(r)) && !P[r]) {
1106
+ let t = wn(e, r, n);
1107
+ return t === !1 && ($(E.afterSanitizeElements, e, null), En(e, n)) ? !0 : t;
1144
1108
  }
1145
- if (x(e) === F.element && !hn(e) || (r === "noscript" || r === "noembed" || r === "noframes") && A(ft, e.innerHTML)) return Z(e), !0;
1146
- if (H && e.nodeType === F.text) {
1147
- let n = Mn(e.textContent);
1148
- e.textContent !== n && (be(t.removed, { element: e.cloneNode() }), e.textContent = n);
1109
+ if (x(e) === N.element && !ln(e) || (r === "noscript" || r === "noembed" || r === "noframes") && O(lt, e.innerHTML)) return X(e), !0;
1110
+ if (B && e.nodeType === N.text) {
1111
+ let n = _n(e.textContent);
1112
+ e.textContent !== n && (xe(t.removed, { element: e.cloneNode() }), e.textContent = n);
1149
1113
  }
1150
- return $(O.afterSanitizeElements, e, null), Vn(e, n);
1151
- }, Un = function(e, t, r) {
1152
- if (Tt[t] || On(t, e) || zt && (t === "id" || t === "name") && (r in n || r in sn)) return !1;
1153
- let i = z[t] || V.attributeCheck instanceof Function && V.attributeCheck(t, e);
1154
- return Dt && A(j, t) || Et && A(Re, t) ? !0 : i ? Kt[t] || A(I, Ae(r, xt, "")) || (t === "src" || t === "xlink:href" || t === "href") && e !== "script" && je(r, "data:") === 0 && Wt[e] || Ot && !A(ze, Ae(r, xt, "")) ? !0 : !r : Gn(e) && Rn(B.tagNameCheck, e) && Rn(B.attributeNameCheck, t, e) || t === "is" && B.allowCustomizedBuiltInElements && Rn(B.tagNameCheck, r);
1155
- }, Wn = M({}, [
1114
+ return $(E.afterSanitizeElements, e, null), En(e, n);
1115
+ }, On = function(e, t, r) {
1116
+ if (xt[t] || mn(t, e) || Pt && (t === "id" || t === "name") && (r in n || r in en)) return !1;
1117
+ let i = F[t] || z.attributeCheck instanceof Function && z.attributeCheck(t, e);
1118
+ return Ct && O(Ne, t) || St && O(Pe, t) ? !0 : i ? Ht[t] || O(dt, De(r, Ie, "")) || (t === "src" || t === "xlink:href" || t === "href") && e !== "script" && Oe(r, "data:") === 0 && Bt[e] || wt && !O(k, De(r, Ie, "")) ? !0 : !r : An(e) && Cn(L.tagNameCheck, e) && Cn(L.attributeNameCheck, t, e) || t === "is" && L.allowCustomizedBuiltInElements && Cn(L.tagNameCheck, r);
1119
+ }, kn = A({}, [
1156
1120
  "annotation-xml",
1157
1121
  "color-profile",
1158
1122
  "font-face",
@@ -1161,47 +1125,67 @@ function bt() {
1161
1125
  "font-face-src",
1162
1126
  "font-face-uri",
1163
1127
  "missing-glyph"
1164
- ]), Gn = function(e) {
1165
- return !Wn[De(e)] && A(St, e);
1166
- }, Kn = function(e, t, n, r) {
1167
- if (C && typeof u == "object" && typeof u.getAttributeType == "function" && !n) switch (u.getAttributeType(e, t)) {
1168
- case "TrustedHTML": return w(r);
1169
- case "TrustedScriptURL": return ue(r);
1128
+ ]), An = function(e) {
1129
+ return !kn[we(e)] && O(Le, e);
1130
+ }, jn = function(e, t, n, r) {
1131
+ if (S && typeof u == "object" && typeof u.getAttributeType == "function" && !n) switch (u.getAttributeType(e, t)) {
1132
+ case "TrustedHTML": return se(r);
1133
+ case "TrustedScriptURL": return ce(r);
1170
1134
  }
1171
1135
  return r;
1172
- }, qn = function(e, t, n, r) {
1136
+ }, Mn = function(e, t, n, r) {
1173
1137
  try {
1174
- return n ? e.setAttributeNS(n, t, r) : e.setAttribute(t, r), !Fn(e) || (Z(e), !1);
1138
+ return n ? e.setAttributeNS(n, t, r) : e.setAttribute(t, r), !yn(e) || (X(e), !1);
1175
1139
  } catch {
1176
- return vn(t, e), !1;
1140
+ return Z(t, e), !1;
1177
1141
  }
1178
- }, Jn = function(e, t) {
1179
- return At && A(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, t) ? !0 : De(e) === "attributename" && ke(t, "href") !== null;
1180
- }, Yn = function(e, n) {
1181
- if ($(O.beforeSanitizeAttributes, e, null), Vn(e, n)) return;
1142
+ }, Nn = function(e, n) {
1143
+ if ($(E.beforeSanitizeAttributes, e, null), En(e, n)) return;
1182
1144
  let r = e.attributes;
1183
- if (!r || Fn(e)) return;
1184
- z = Bn(O.uponSanitizeAttribute, z, Ct, Pt);
1145
+ if (!r || yn(e)) return;
1146
+ F = Tn(E.uponSanitizeAttribute, F, I, kt);
1185
1147
  let i = {
1186
1148
  attrName: "",
1187
1149
  attrValue: "",
1188
1150
  keepAttr: !0,
1189
- allowedAttributes: z,
1151
+ allowedAttributes: F,
1190
1152
  forceKeepAttr: void 0
1191
- }, a = r.length, o = X(e.nodeName);
1153
+ }, a = r.length, o = J(e.nodeName);
1192
1154
  for (; a--;) {
1193
- let n = r[a], s = n.name, c = n.namespaceURI, l = n.value, u = X(s), d = l, f = s === "value" ? d : Me(d), p = !1;
1194
- i.attrName = u, i.attrValue = f, i.keepAttr = !0, i.forceKeepAttr = void 0, $(O.uponSanitizeAttribute, e, i), f = i.attrValue, Bt && (u === "id" || u === "name") && je(f, U) !== 0 && (vn(s, e, n), f = U + f, p = !0), Jn(s, f) ? vn(s, e, n) : i.forceKeepAttr || (i.keepAttr ? !kt && A(pt, f) ? vn(s, e, n) : (H && (f = Mn(f)), Un(o, u, f) ? (f = Kn(o, u, c, f), f !== d && qn(e, s, c, f) && p && ye(t.removed)) : vn(s, e, n)) : vn(s, e, n));
1155
+ let n = r[a], s = n.name, c = n.namespaceURI, l = n.value, u = J(s), d = l, f = s === "value" ? d : ke(d), p = !1;
1156
+ if (i.attrName = u, i.attrValue = f, i.keepAttr = !0, i.forceKeepAttr = void 0, $(E.uponSanitizeAttribute, e, i), f = i.attrValue, Ft && (u === "id" || u === "name") && Oe(f, It) !== 0 && (Z(s, e, n), f = It + f, p = !0), V && O(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, f)) {
1157
+ Z(s, e, n);
1158
+ continue;
1159
+ }
1160
+ if (u === "attributename" && Ee(f, "href")) {
1161
+ Z(s, e, n);
1162
+ continue;
1163
+ }
1164
+ if (!i.forceKeepAttr) {
1165
+ if (!i.keepAttr) {
1166
+ Z(s, e, n);
1167
+ continue;
1168
+ }
1169
+ if (!Tt && O(ut, f)) {
1170
+ Z(s, e, n);
1171
+ continue;
1172
+ }
1173
+ if (B && (f = _n(f)), !On(o, u, f)) {
1174
+ Z(s, e, n);
1175
+ continue;
1176
+ }
1177
+ f = jn(o, u, c, f), f !== d && Mn(e, s, c, f) && p && be(t.removed);
1178
+ }
1195
1179
  }
1196
- $(O.afterSanitizeAttributes, e, null), Vn(e, n);
1197
- }, Xn = function(e) {
1198
- let t = null, n = jn(e);
1199
- for ($(O.beforeSanitizeShadowDOM, e, null); t = n.nextNode();) if ($(O.uponSanitizeShadowNode, t, null), Hn(t, e), Yn(t, e), Q(t.content) && Xn(t.content), x(t) === F.element) {
1180
+ $(E.afterSanitizeAttributes, e, null), En(e, n);
1181
+ }, Pn = function(e) {
1182
+ let t = null, n = Q(e);
1183
+ for ($(E.beforeSanitizeShadowDOM, e, null); t = n.nextNode();) if ($(E.uponSanitizeShadowNode, t, null), Dn(t, e), Nn(t, e), bn(t.content) && Pn(t.content), x(t) === N.element) {
1200
1184
  let e = te(t);
1201
- Q(e) && (Zn(e), Xn(e));
1185
+ bn(e) && (Fn(e), Pn(e));
1202
1186
  }
1203
- H && Pn(e), $(O.afterSanitizeShadowDOM, e, null);
1204
- }, Zn = function(e) {
1187
+ $(E.afterSanitizeShadowDOM, e, null);
1188
+ }, Fn = function(e) {
1205
1189
  let t = [{
1206
1190
  node: e,
1207
1191
  shadow: null
@@ -1209,19 +1193,19 @@ function bt() {
1209
1193
  for (; t.length > 0;) {
1210
1194
  let e = t.pop();
1211
1195
  if (e.shadow) {
1212
- Xn(e.shadow);
1196
+ Pn(e.shadow);
1213
1197
  continue;
1214
1198
  }
1215
- let n = e.node, r = x(n) === F.element, i = h(n);
1199
+ let n = e.node, r = x(n) === N.element, i = h(n);
1216
1200
  if (i) for (let e = i.length - 1; e >= 0; --e) t.push({
1217
1201
  node: i[e],
1218
1202
  shadow: null
1219
1203
  });
1220
1204
  if (r) {
1221
1205
  let e = y ? y(n) : null;
1222
- if (typeof e == "string" && X(e) === "template") {
1206
+ if (typeof e == "string" && J(e) === "template") {
1223
1207
  let e = n.content;
1224
- Q(e) && t.push({
1208
+ bn(e) && t.push({
1225
1209
  node: e,
1226
1210
  shadow: null
1227
1211
  });
@@ -1229,7 +1213,7 @@ function bt() {
1229
1213
  }
1230
1214
  if (r) {
1231
1215
  let e = te(n);
1232
- Q(e) && t.push({
1216
+ bn(e) && t.push({
1233
1217
  node: null,
1234
1218
  shadow: e
1235
1219
  }, {
@@ -1241,75 +1225,80 @@ function bt() {
1241
1225
  };
1242
1226
  return t.sanitize = function(e) {
1243
1227
  let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, i = null, a = null, o = null, s = null;
1244
- if (Yt = !e, Yt && (e = "<!-->"), typeof e != "string" && !In(e) && (e = Be(e), typeof e != "string")) throw Le("dirty is not a string, aborting");
1228
+ if (Kt = !e, Kt && (e = "<!-->"), typeof e != "string" && !xn(e) && (e = Re(e), typeof e != "string")) throw Fe("dirty is not a string, aborting");
1245
1229
  if (!t.isSupported) return e;
1246
- Mt ? (L = Nt, z = Pt) : ln(n), (O.uponSanitizeElement.length > 0 || O.uponSanitizeAttribute.length > 0) && (L = N(L)), O.uponSanitizeAttribute.length > 0 && (z = N(z)), t.removed = [];
1247
- let c = Vt && typeof e != "string" && In(e), l = [], u = G;
1230
+ Dt ? (P = Ot, F = kt) : nn(n), (E.uponSanitizeElement.length > 0 || E.uponSanitizeAttribute.length > 0) && (P = j(P)), E.uponSanitizeAttribute.length > 0 && (F = j(F)), t.removed = [];
1231
+ let c = Rt && typeof e != "string" && xn(e);
1248
1232
  if (c) {
1249
- kn(e);
1233
+ hn(e);
1250
1234
  let t = ne(e);
1251
1235
  if (typeof t == "string") {
1252
- let n = X(t);
1253
- if (!L[n] || wt[n]) throw _n(e), Le("root node is forbidden and cannot be sanitized in-place");
1236
+ let n = J(t);
1237
+ if (!P[n] || R[n]) throw dn(e), Fe("root node is forbidden and cannot be sanitized in-place");
1254
1238
  }
1255
- if (Fn(e)) throw _n(e), Le("root node is clobbered and cannot be sanitized in-place");
1256
- l = Sn(e), G = we();
1257
- } else if (In(e)) i = An("<!---->"), a = i.ownerDocument.importNode(e, !0), a.nodeType === F.element && a.nodeName === "BODY" || a.nodeName === "HTML" ? i = a : i.appendChild(a), Zn(i);
1239
+ if (yn(e)) throw dn(e), Fe("root node is clobbered and cannot be sanitized in-place");
1240
+ try {
1241
+ Fn(e);
1242
+ } catch (t) {
1243
+ throw dn(e), t;
1244
+ }
1245
+ } else if (xn(e)) i = gn("<!---->"), a = i.ownerDocument.importNode(e, !0), a.nodeType === N.element && a.nodeName === "BODY" || a.nodeName === "HTML" ? i = a : i.appendChild(a), Fn(i);
1258
1246
  else {
1259
- if (!It && !H && !jt && e.indexOf("<") === -1) return C && Rt ? w(e) : e;
1260
- if (i = An(e), !i) return It ? null : Rt ? ie : "";
1247
+ if (!jt && !B && !Et && e.indexOf("<") === -1) return S && Nt ? se(e) : e;
1248
+ if (i = gn(e), !i) return jt ? null : Nt ? C : "";
1261
1249
  }
1262
- i && Ft && Z(i.firstChild);
1263
- let d = c ? e : i;
1250
+ i && At && X(i.firstChild);
1251
+ let l = c ? e : i;
1264
1252
  try {
1265
- c && Zn(e);
1266
- let t = jn(d);
1267
- for (; o = t.nextNode();) Hn(o, d), Yn(o, d), Q(o.content) && Xn(o.content);
1268
- c && Tn(e, l);
1269
- } catch (t) {
1270
- throw c && (_n(e), wn(e, l)), t;
1271
- } finally {
1272
- G = u;
1253
+ let e = Q(l);
1254
+ for (; o = e.nextNode();) Dn(o, l), Nn(o, l), bn(o.content) && Pn(o.content);
1255
+ } catch (n) {
1256
+ throw c && (dn(e), ve(t.removed, (e) => {
1257
+ e.element && pn(e.element);
1258
+ })), n;
1273
1259
  }
1274
1260
  if (c) {
1275
- if (wn(e, l)) throw Le("a node selected for removal could not be safely returned; refusing to sanitize in place");
1276
- return H && Nn(e), e;
1261
+ let n = !1;
1262
+ if (ve(t.removed, (t) => {
1263
+ t.element && (t.element === e && (n = !0), pn(t.element));
1264
+ }), n) throw Fe("a node selected for removal could not be safely returned; refusing to sanitize in place");
1265
+ return B && vn(e), e;
1277
1266
  }
1278
- if (It) {
1279
- if (H && Nn(i), Lt) for (s = ge.call(i.ownerDocument); i.firstChild;) s.appendChild(i.firstChild);
1267
+ if (jt) {
1268
+ if (B && vn(i), Mt) for (s = me.call(i.ownerDocument); i.firstChild;) s.appendChild(i.firstChild);
1280
1269
  else s = i;
1281
- return (z.shadowroot || z.shadowrootmode) && (s = Ne.call(r, s, !0)), s;
1270
+ return (F.shadowroot || F.shadowrootmode) && (s = _e.call(r, s, !0)), s;
1282
1271
  }
1283
- let f = jt ? i.outerHTML : i.innerHTML;
1284
- return jt && L["!doctype"] && i.ownerDocument && i.ownerDocument.doctype && i.ownerDocument.doctype.name && A(ct, i.ownerDocument.doctype.name) && (f = "<!DOCTYPE " + i.ownerDocument.doctype.name + ">\n" + f), H && (f = Mn(f)), C && Rt ? w(f) : f;
1272
+ let u = Et ? i.outerHTML : i.innerHTML;
1273
+ return Et && P["!doctype"] && i.ownerDocument && i.ownerDocument.doctype && i.ownerDocument.doctype.name && O(at, i.ownerDocument.doctype.name) && (u = "<!DOCTYPE " + i.ownerDocument.doctype.name + ">\n" + u), B && (u = _n(u)), S && Nt ? se(u) : u;
1285
1274
  }, t.setConfig = function() {
1286
1275
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
1287
- ln(e), Mt = !0, Nt = L, Pt = z;
1276
+ nn(e), Dt = !0, Ot = P, kt = F;
1288
1277
  }, t.clearConfig = function() {
1289
- on = null, Mt = !1, Nt = null, Pt = null, C = ae, ie = "";
1278
+ Y = null, Dt = !1, Ot = null, kt = null, S = re, C = "";
1290
1279
  }, t.isValidAttribute = function(e, t, n) {
1291
- on || ln({});
1292
- let r = X(e), i = X(t);
1293
- return typeof n == "string" && (Jn(t, n) || !kt && A(pt, n)) ? !1 : Un(r, i, n);
1280
+ Y || nn({});
1281
+ let r = J(e), i = J(t);
1282
+ return On(r, i, n);
1294
1283
  }, t.addHook = function(e, t) {
1295
- typeof t == "function" && k(O, e) && be(O[e], t);
1284
+ typeof t == "function" && D(E, e) && xe(E[e], t);
1296
1285
  }, t.removeHook = function(e, t) {
1297
- if (k(O, e)) {
1286
+ if (D(E, e)) {
1298
1287
  if (t !== void 0) {
1299
- let n = ve(O[e], t);
1300
- return n === -1 ? void 0 : Se(O[e], n, 1)[0];
1288
+ let n = ye(E[e], t);
1289
+ return n === -1 ? void 0 : Se(E[e], n, 1)[0];
1301
1290
  }
1302
- return ye(O[e]);
1291
+ return be(E[e]);
1303
1292
  }
1304
1293
  }, t.removeHooks = function(e) {
1305
- k(O, e) && (O[e] = []);
1294
+ D(E, e) && (E[e] = []);
1306
1295
  }, t.removeAllHooks = function() {
1307
- O = _t();
1296
+ E = gt();
1308
1297
  }, t;
1309
1298
  }
1310
- var xt = bt(), St = /* @__PURE__ */ n((e, t, { depth: n = 2 } = {}) => {
1299
+ var P = yt(), bt = /* @__PURE__ */ n((e, t, { depth: n = 2 } = {}) => {
1311
1300
  let r = { depth: n };
1312
- if (Array.isArray(t) && !Array.isArray(e)) return t.forEach((t) => St(e, t, r)), e;
1301
+ if (Array.isArray(t) && !Array.isArray(e)) return t.forEach((t) => bt(e, t, r)), e;
1313
1302
  if (Array.isArray(t) && Array.isArray(e)) return t.forEach((t) => {
1314
1303
  e.includes(t) || e.push(t);
1315
1304
  }), e;
@@ -1324,7 +1313,7 @@ var xt = bt(), St = /* @__PURE__ */ n((e, t, { depth: n = 2 } = {}) => {
1324
1313
  writable: !0,
1325
1314
  enumerable: !0,
1326
1315
  configurable: !0
1327
- }), r[t] === void 0 && (r[t] = Array.isArray(i) ? [] : {}), typeof r[t] == "object" && (r[t] = St(r[t], i, { depth: n - 1 }));
1316
+ }), r[t] === void 0 && (r[t] = Array.isArray(i) ? [] : {}), typeof r[t] == "object" && (r[t] = bt(r[t], i, { depth: n - 1 }));
1328
1317
  } else typeof r[t] != "object" && (Object.hasOwn(e, t) ? r[t] = i : Object.defineProperty(e, t, {
1329
1318
  value: i,
1330
1319
  writable: !0,
@@ -1334,13 +1323,13 @@ var xt = bt(), St = /* @__PURE__ */ n((e, t, { depth: n = 2 } = {}) => {
1334
1323
  });
1335
1324
  }
1336
1325
  return e;
1337
- }, "assignWithDepth"), I = St, L = "#ffffff", R = "#f2f2f2", z = /* @__PURE__ */ n((e, t) => t ? x(e, {
1326
+ }, "assignWithDepth"), F = bt, I = "#ffffff", L = "#f2f2f2", R = /* @__PURE__ */ n((e, t) => t ? x(e, {
1338
1327
  s: -40,
1339
1328
  l: 10
1340
1329
  }) : x(e, {
1341
1330
  s: -40,
1342
1331
  l: -10
1343
- }), "mkBorder"), Ct = class {
1332
+ }), "mkBorder"), xt = class {
1344
1333
  static {
1345
1334
  n(this, "Theme");
1346
1335
  }
@@ -1351,7 +1340,7 @@ var xt = bt(), St = /* @__PURE__ */ n((e, t, { depth: n = 2 } = {}) => {
1351
1340
  if (this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#333"), this.secondaryColor = this.secondaryColor || x(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || x(this.primaryColor, {
1352
1341
  h: 180,
1353
1342
  l: 5
1354
- }), this.primaryBorderColor = this.primaryBorderColor || z(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || z(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || z(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || z(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#333", this.secondaryTextColor = this.secondaryTextColor || S(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || S(this.tertiaryColor), this.lineColor = this.lineColor || S(this.background), this.arrowheadColor = this.arrowheadColor || S(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 ? b(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 || b(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || S(this.lineColor), this.rectBkgColor = this.rectBkgColor || this.tertiaryColor, this.sectionBkgColor = this.sectionBkgColor || this.tertiaryColor, this.altSectionBkgColor = this.altSectionBkgColor || "white", this.sectionBkgColor = this.sectionBkgColor || this.secondaryColor, this.sectionBkgColor2 = this.sectionBkgColor2 || this.primaryColor, this.excludeBkgColor = this.excludeBkgColor || "#eeeeee", this.taskBorderColor = this.taskBorderColor || this.primaryBorderColor, this.taskBkgColor = this.taskBkgColor || this.primaryColor, this.activeTaskBorderColor = this.activeTaskBorderColor || this.primaryColor, this.activeTaskBkgColor = this.activeTaskBkgColor || y(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 || b(this.mainBkg, 5) || "#ffffff", this.rowEven = this.rowEven || b(this.mainBkg, 10)) : (this.rowOdd = this.rowOdd || y(this.mainBkg, 75) || "#ffffff", this.rowEven = this.rowEven || y(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 || x(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || x(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || x(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || x(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || x(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || x(this.primaryColor, {
1343
+ }), this.primaryBorderColor = this.primaryBorderColor || R(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || R(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || R(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || R(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#333", this.secondaryTextColor = this.secondaryTextColor || S(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || S(this.tertiaryColor), this.lineColor = this.lineColor || S(this.background), this.arrowheadColor = this.arrowheadColor || S(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 ? b(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 || b(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || S(this.lineColor), this.rectBkgColor = this.rectBkgColor || this.tertiaryColor, this.sectionBkgColor = this.sectionBkgColor || this.tertiaryColor, this.altSectionBkgColor = this.altSectionBkgColor || "white", this.sectionBkgColor = this.sectionBkgColor || this.secondaryColor, this.sectionBkgColor2 = this.sectionBkgColor2 || this.primaryColor, this.excludeBkgColor = this.excludeBkgColor || "#eeeeee", this.taskBorderColor = this.taskBorderColor || this.primaryBorderColor, this.taskBkgColor = this.taskBkgColor || this.primaryColor, this.activeTaskBorderColor = this.activeTaskBorderColor || this.primaryColor, this.activeTaskBkgColor = this.activeTaskBkgColor || y(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 || b(this.mainBkg, 5) || "#ffffff", this.rowEven = this.rowEven || b(this.mainBkg, 10)) : (this.rowOdd = this.rowOdd || y(this.mainBkg, 75) || "#ffffff", this.rowEven = this.rowEven || y(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 || x(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || x(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || x(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || x(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || x(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || x(this.primaryColor, {
1355
1344
  h: 210,
1356
1345
  l: 150
1357
1346
  }), this.cScale9 = this.cScale9 || x(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || x(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || x(this.primaryColor, { h: 330 }), this.darkMode) for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = b(this["cScale" + e], 75);
@@ -1481,7 +1470,7 @@ var xt = bt(), St = /* @__PURE__ */ n((e, t, { depth: n = 2 } = {}) => {
1481
1470
  yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
1482
1471
  yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
1483
1472
  plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
1484
- }, 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 ? b(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 || x(this.primaryColor, { h: -30 }), this.git4 = this.git4 || x(this.primaryColor, { h: -60 }), this.git5 = this.git5 || x(this.primaryColor, { h: -90 }), this.git6 = this.git6 || x(this.primaryColor, { h: 60 }), this.git7 = this.git7 || x(this.primaryColor, { h: 120 }), this.darkMode ? (this.git0 = y(this.git0, 25), this.git1 = y(this.git1, 25), this.git2 = y(this.git2, 25), this.git3 = y(this.git3, 25), this.git4 = y(this.git4, 25), this.git5 = y(this.git5, 25), this.git6 = y(this.git6, 25), this.git7 = y(this.git7, 25)) : (this.git0 = b(this.git0, 25), this.git1 = b(this.git1, 25), this.git2 = b(this.git2, 25), this.git3 = b(this.git3, 25), this.git4 = b(this.git4, 25), this.git5 = b(this.git5, 25), this.git6 = b(this.git6, 25), this.git7 = b(this.git7, 25)), this.gitInv0 = this.gitInv0 || S(this.git0), this.gitInv1 = this.gitInv1 || S(this.git1), this.gitInv2 = this.gitInv2 || S(this.git2), this.gitInv3 = this.gitInv3 || S(this.git3), this.gitInv4 = this.gitInv4 || S(this.git4), this.gitInv5 = this.gitInv5 || S(this.git5), this.gitInv6 = this.gitInv6 || S(this.git6), this.gitInv7 = this.gitInv7 || S(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 || L, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || R, this.gradientStart = this.primaryBorderColor, this.gradientStop = this.secondaryBorderColor;
1473
+ }, 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 ? b(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 || x(this.primaryColor, { h: -30 }), this.git4 = this.git4 || x(this.primaryColor, { h: -60 }), this.git5 = this.git5 || x(this.primaryColor, { h: -90 }), this.git6 = this.git6 || x(this.primaryColor, { h: 60 }), this.git7 = this.git7 || x(this.primaryColor, { h: 120 }), this.darkMode ? (this.git0 = y(this.git0, 25), this.git1 = y(this.git1, 25), this.git2 = y(this.git2, 25), this.git3 = y(this.git3, 25), this.git4 = y(this.git4, 25), this.git5 = y(this.git5, 25), this.git6 = y(this.git6, 25), this.git7 = y(this.git7, 25)) : (this.git0 = b(this.git0, 25), this.git1 = b(this.git1, 25), this.git2 = b(this.git2, 25), this.git3 = b(this.git3, 25), this.git4 = b(this.git4, 25), this.git5 = b(this.git5, 25), this.git6 = b(this.git6, 25), this.git7 = b(this.git7, 25)), this.gitInv0 = this.gitInv0 || S(this.git0), this.gitInv1 = this.gitInv1 || S(this.git1), this.gitInv2 = this.gitInv2 || S(this.git2), this.gitInv3 = this.gitInv3 || S(this.git3), this.gitInv4 = this.gitInv4 || S(this.git4), this.gitInv5 = this.gitInv5 || S(this.git5), this.gitInv6 = this.gitInv6 || S(this.git6), this.gitInv7 = this.gitInv7 || S(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 || I, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || L, this.gradientStart = this.primaryBorderColor, this.gradientStop = this.secondaryBorderColor;
1485
1474
  }
1486
1475
  calculate(e) {
1487
1476
  if (typeof e != "object") {
@@ -1495,15 +1484,15 @@ var xt = bt(), St = /* @__PURE__ */ n((e, t, { depth: n = 2 } = {}) => {
1495
1484
  this[t] = e[t];
1496
1485
  });
1497
1486
  }
1498
- }, B = /* @__PURE__ */ n((e) => {
1499
- let t = new Ct();
1487
+ }, z = /* @__PURE__ */ n((e) => {
1488
+ let t = new xt();
1500
1489
  return t.calculate(e), t;
1501
- }, "getThemeVariables"), wt = class {
1490
+ }, "getThemeVariables"), St = class {
1502
1491
  static {
1503
1492
  n(this, "Theme");
1504
1493
  }
1505
1494
  constructor() {
1506
- this.background = "#333", this.primaryColor = "#1f2020", this.secondaryColor = y(this.primaryColor, 16), this.tertiaryColor = x(this.primaryColor, { h: -160 }), this.primaryBorderColor = S(this.background), this.secondaryBorderColor = z(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = z(this.tertiaryColor, this.darkMode), this.primaryTextColor = S(this.primaryColor), this.secondaryTextColor = S(this.secondaryColor), this.tertiaryTextColor = S(this.tertiaryColor), this.lineColor = S(this.background), this.textColor = S(this.background), this.mainBkg = "#1f2020", this.secondBkg = "calculated", this.mainContrastColor = "lightgrey", this.darkTextColor = y(S("#323D47"), 10), this.lineColor = "calculated", this.border1 = "#ccc", this.border2 = h(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 = b("#EAE8D9", 30), this.altSectionBkgColor = "calculated", this.sectionBkgColor2 = "#EAE8D9", this.excludeBkgColor = b(this.sectionBkgColor, 10), this.taskBorderColor = h(255, 255, 255, 70), this.taskBkgColor = "calculated", this.taskTextColor = "calculated", this.taskTextLightColor = "calculated", this.taskTextOutsideColor = "calculated", this.taskTextClickableColor = "#003163", this.activeTaskBorderColor = h(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 || y(this.mainBkg, 5) || "#ffffff", this.rowEven = this.rowEven || b(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";
1495
+ this.background = "#333", this.primaryColor = "#1f2020", this.secondaryColor = y(this.primaryColor, 16), this.tertiaryColor = x(this.primaryColor, { h: -160 }), this.primaryBorderColor = S(this.background), this.secondaryBorderColor = R(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = R(this.tertiaryColor, this.darkMode), this.primaryTextColor = S(this.primaryColor), this.secondaryTextColor = S(this.secondaryColor), this.tertiaryTextColor = S(this.tertiaryColor), this.lineColor = S(this.background), this.textColor = S(this.background), this.mainBkg = "#1f2020", this.secondBkg = "calculated", this.mainContrastColor = "lightgrey", this.darkTextColor = y(S("#323D47"), 10), this.lineColor = "calculated", this.border1 = "#ccc", this.border2 = h(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 = b("#EAE8D9", 30), this.altSectionBkgColor = "calculated", this.sectionBkgColor2 = "#EAE8D9", this.excludeBkgColor = b(this.sectionBkgColor, 10), this.taskBorderColor = h(255, 255, 255, 70), this.taskBkgColor = "calculated", this.taskTextColor = "calculated", this.taskTextLightColor = "calculated", this.taskTextOutsideColor = "calculated", this.taskTextClickableColor = "#003163", this.activeTaskBorderColor = h(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 || y(this.mainBkg, 5) || "#ffffff", this.rowEven = this.rowEven || b(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";
1507
1496
  }
1508
1497
  updateColors() {
1509
1498
  this.secondBkg = y(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 = y(this.labelBackground, 25), this.actorBorder = this.border1, this.actorBkg = this.mainBkg, this.actorTextColor = this.mainContrastColor, this.actorLineColor = this.actorBorder, this.signalColor = this.mainContrastColor, this.signalTextColor = this.mainContrastColor, this.labelBoxBkgColor = this.actorBkg, this.labelBoxBorderColor = this.actorBorder, this.labelTextColor = this.mainContrastColor, this.loopTextColor = this.mainContrastColor, this.noteBorderColor = this.secondaryBorderColor, this.noteBkgColor = this.secondBkg, this.noteTextColor = this.secondaryTextColor, this.activationBorderColor = this.border1, this.activationBkgColor = this.secondBkg, this.rectBkgColor = this.rectBkgColor || this.tertiaryColor, this.altSectionBkgColor = this.background, this.taskBkgColor = y(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 = S(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 = x(this.primaryColor, { h: 64 }), this.fillType3 = x(this.secondaryColor, { h: 64 }), this.fillType4 = x(this.primaryColor, { h: -64 }), this.fillType5 = x(this.secondaryColor, { h: -64 }), this.fillType6 = x(this.primaryColor, { h: 128 }), this.fillType7 = x(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 || x(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || x(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || x(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || x(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || x(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || x(this.primaryColor, { h: 210 }), this.cScale9 = this.cScale9 || x(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || x(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || x(this.primaryColor, { h: 330 });
@@ -1622,15 +1611,15 @@ var xt = bt(), St = /* @__PURE__ */ n((e, t, { depth: n = 2 } = {}) => {
1622
1611
  this[t] = e[t];
1623
1612
  });
1624
1613
  }
1625
- }, Tt = /* @__PURE__ */ n((e) => {
1626
- let t = new wt();
1614
+ }, Ct = /* @__PURE__ */ n((e) => {
1615
+ let t = new St();
1627
1616
  return t.calculate(e), t;
1628
- }, "getThemeVariables"), V = class {
1617
+ }, "getThemeVariables"), wt = class {
1629
1618
  static {
1630
1619
  n(this, "Theme");
1631
1620
  }
1632
1621
  constructor() {
1633
- this.background = "#f4f4f4", this.primaryColor = "#ECECFF", this.secondaryColor = x(this.primaryColor, { h: 120 }), this.secondaryColor = "#ffffde", this.tertiaryColor = x(this.primaryColor, { h: -160 }), this.primaryBorderColor = z(this.primaryColor, this.darkMode), this.secondaryBorderColor = z(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = z(this.tertiaryColor, this.darkMode), this.primaryTextColor = S(this.primaryColor), this.secondaryTextColor = S(this.secondaryColor), this.tertiaryTextColor = S(this.tertiaryColor), this.lineColor = S(this.background), this.textColor = S(this.background), this.background = "white", this.mainBkg = "#ECECFF", this.secondBkg = "#ffffde", this.lineColor = "#333333", this.border1 = "#9370DB", this.primaryBorderColor = z(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 = h(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();
1622
+ this.background = "#f4f4f4", this.primaryColor = "#ECECFF", this.secondaryColor = x(this.primaryColor, { h: 120 }), this.secondaryColor = "#ffffde", this.tertiaryColor = x(this.primaryColor, { h: -160 }), this.primaryBorderColor = R(this.primaryColor, this.darkMode), this.secondaryBorderColor = R(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = R(this.tertiaryColor, this.darkMode), this.primaryTextColor = S(this.primaryColor), this.secondaryTextColor = S(this.secondaryColor), this.tertiaryTextColor = S(this.tertiaryColor), this.lineColor = S(this.background), this.textColor = S(this.background), this.background = "white", this.mainBkg = "#ECECFF", this.secondBkg = "#ffffde", this.lineColor = "#333333", this.border1 = "#9370DB", this.primaryBorderColor = R(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 = h(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();
1634
1623
  }
1635
1624
  updateColors() {
1636
1625
  this.cScale0 = this.cScale0 || this.primaryColor, this.cScale1 = this.cScale1 || this.secondaryColor, this.cScale2 = this.cScale2 || this.tertiaryColor, this.cScale3 = this.cScale3 || x(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || x(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || x(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || x(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || x(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || x(this.primaryColor, { h: 210 }), this.cScale9 = this.cScale9 || x(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || x(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || x(this.primaryColor, { h: 330 }), this.cScalePeer1 = this.cScalePeer1 || b(this.secondaryColor, 45), this.cScalePeer2 = this.cScalePeer2 || b(this.tertiaryColor, 40);
@@ -1758,7 +1747,7 @@ var xt = bt(), St = /* @__PURE__ */ n((e, t, { depth: n = 2 } = {}) => {
1758
1747
  yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
1759
1748
  yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
1760
1749
  plotColorPalette: this.xyChart?.plotColorPalette || "#ECECFF,#8493A6,#FFC3A0,#DCDDE1,#B8E994,#D1A36F,#C3CDE6,#FFB6C1,#496078,#F8F3E3"
1761
- }, 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 || x(this.primaryColor, { h: -30 }), this.git4 = this.git4 || x(this.primaryColor, { h: -60 }), this.git5 = this.git5 || x(this.primaryColor, { h: -90 }), this.git6 = this.git6 || x(this.primaryColor, { h: 60 }), this.git7 = this.git7 || x(this.primaryColor, { h: 120 }), this.darkMode ? (this.git0 = y(this.git0, 25), this.git1 = y(this.git1, 25), this.git2 = y(this.git2, 25), this.git3 = y(this.git3, 25), this.git4 = y(this.git4, 25), this.git5 = y(this.git5, 25), this.git6 = y(this.git6, 25), this.git7 = y(this.git7, 25)) : (this.git0 = b(this.git0, 25), this.git1 = b(this.git1, 25), this.git2 = b(this.git2, 25), this.git3 = b(this.git3, 25), this.git4 = b(this.git4, 25), this.git5 = b(this.git5, 25), this.git6 = b(this.git6, 25), this.git7 = b(this.git7, 25)), this.gitInv0 = this.gitInv0 || b(S(this.git0), 25), this.gitInv1 = this.gitInv1 || S(this.git1), this.gitInv2 = this.gitInv2 || S(this.git2), this.gitInv3 = this.gitInv3 || S(this.git3), this.gitInv4 = this.gitInv4 || S(this.git4), this.gitInv5 = this.gitInv5 || S(this.git5), this.gitInv6 = this.gitInv6 || S(this.git6), this.gitInv7 = this.gitInv7 || S(this.git7), this.gitBranchLabel0 = this.gitBranchLabel0 || S(this.labelTextColor), this.gitBranchLabel1 = this.gitBranchLabel1 || this.labelTextColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.labelTextColor, this.gitBranchLabel3 = this.gitBranchLabel3 || S(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 || L, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || R;
1750
+ }, 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 || x(this.primaryColor, { h: -30 }), this.git4 = this.git4 || x(this.primaryColor, { h: -60 }), this.git5 = this.git5 || x(this.primaryColor, { h: -90 }), this.git6 = this.git6 || x(this.primaryColor, { h: 60 }), this.git7 = this.git7 || x(this.primaryColor, { h: 120 }), this.darkMode ? (this.git0 = y(this.git0, 25), this.git1 = y(this.git1, 25), this.git2 = y(this.git2, 25), this.git3 = y(this.git3, 25), this.git4 = y(this.git4, 25), this.git5 = y(this.git5, 25), this.git6 = y(this.git6, 25), this.git7 = y(this.git7, 25)) : (this.git0 = b(this.git0, 25), this.git1 = b(this.git1, 25), this.git2 = b(this.git2, 25), this.git3 = b(this.git3, 25), this.git4 = b(this.git4, 25), this.git5 = b(this.git5, 25), this.git6 = b(this.git6, 25), this.git7 = b(this.git7, 25)), this.gitInv0 = this.gitInv0 || b(S(this.git0), 25), this.gitInv1 = this.gitInv1 || S(this.git1), this.gitInv2 = this.gitInv2 || S(this.git2), this.gitInv3 = this.gitInv3 || S(this.git3), this.gitInv4 = this.gitInv4 || S(this.git4), this.gitInv5 = this.gitInv5 || S(this.git5), this.gitInv6 = this.gitInv6 || S(this.git6), this.gitInv7 = this.gitInv7 || S(this.git7), this.gitBranchLabel0 = this.gitBranchLabel0 || S(this.labelTextColor), this.gitBranchLabel1 = this.gitBranchLabel1 || this.labelTextColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.labelTextColor, this.gitBranchLabel3 = this.gitBranchLabel3 || S(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 || I, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || L;
1762
1751
  }
1763
1752
  calculate(e) {
1764
1753
  if (Object.keys(this).forEach((e) => {
@@ -1774,15 +1763,15 @@ var xt = bt(), St = /* @__PURE__ */ n((e, t, { depth: n = 2 } = {}) => {
1774
1763
  this[t] = e[t];
1775
1764
  });
1776
1765
  }
1777
- }, Et = /* @__PURE__ */ n((e) => {
1778
- let t = new V();
1766
+ }, Tt = /* @__PURE__ */ n((e) => {
1767
+ let t = new wt();
1779
1768
  return t.calculate(e), t;
1780
- }, "getThemeVariables"), Dt = class {
1769
+ }, "getThemeVariables"), B = class {
1781
1770
  static {
1782
1771
  n(this, "Theme");
1783
1772
  }
1784
1773
  constructor() {
1785
- 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 = y("#cde498", 10), this.primaryBorderColor = z(this.primaryColor, this.darkMode), this.secondaryBorderColor = z(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = z(this.tertiaryColor, this.darkMode), this.primaryTextColor = S(this.primaryColor), this.secondaryTextColor = S(this.secondaryColor), this.tertiaryTextColor = S(this.primaryColor), this.lineColor = S(this.background), this.textColor = S(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))";
1774
+ 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 = y("#cde498", 10), this.primaryBorderColor = R(this.primaryColor, this.darkMode), this.secondaryBorderColor = R(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = R(this.tertiaryColor, this.darkMode), this.primaryTextColor = S(this.primaryColor), this.secondaryTextColor = S(this.secondaryColor), this.tertiaryTextColor = S(this.primaryColor), this.lineColor = S(this.background), this.textColor = S(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))";
1786
1775
  }
1787
1776
  updateColors() {
1788
1777
  this.actorBorder = b(this.mainBkg, 20), this.actorBkg = this.mainBkg, this.labelBoxBkgColor = this.actorBkg, this.labelTextColor = this.actorTextColor, this.loopTextColor = this.actorTextColor, this.noteBorderColor = this.border2, this.noteTextColor = this.actorTextColor, this.actorLineColor = this.actorBorder, this.rectBkgColor = this.rectBkgColor || this.tertiaryColor, this.cScale0 = this.cScale0 || this.primaryColor, this.cScale1 = this.cScale1 || this.secondaryColor, this.cScale2 = this.cScale2 || this.tertiaryColor, this.cScale3 = this.cScale3 || x(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || x(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || x(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || x(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || x(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || x(this.primaryColor, { h: 210 }), this.cScale9 = this.cScale9 || x(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || x(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || x(this.primaryColor, { h: 330 }), this.cScalePeer1 = this.cScalePeer1 || b(this.secondaryColor, 45), this.cScalePeer2 = this.cScalePeer2 || b(this.tertiaryColor, 40);
@@ -1920,7 +1909,7 @@ var xt = bt(), St = /* @__PURE__ */ n((e, t, { depth: n = 2 } = {}) => {
1920
1909
  yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
1921
1910
  yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
1922
1911
  plotColorPalette: this.xyChart?.plotColorPalette || "#CDE498,#FF6B6B,#A0D2DB,#D7BDE2,#F0F0F0,#FFC3A0,#7FD8BE,#FF9A8B,#FAF3E0,#FFF176"
1923
- }, 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 || x(this.primaryColor, { h: -30 }), this.git4 = this.git4 || x(this.primaryColor, { h: -60 }), this.git5 = this.git5 || x(this.primaryColor, { h: -90 }), this.git6 = this.git6 || x(this.primaryColor, { h: 60 }), this.git7 = this.git7 || x(this.primaryColor, { h: 120 }), this.darkMode ? (this.git0 = y(this.git0, 25), this.git1 = y(this.git1, 25), this.git2 = y(this.git2, 25), this.git3 = y(this.git3, 25), this.git4 = y(this.git4, 25), this.git5 = y(this.git5, 25), this.git6 = y(this.git6, 25), this.git7 = y(this.git7, 25)) : (this.git0 = b(this.git0, 25), this.git1 = b(this.git1, 25), this.git2 = b(this.git2, 25), this.git3 = b(this.git3, 25), this.git4 = b(this.git4, 25), this.git5 = b(this.git5, 25), this.git6 = b(this.git6, 25), this.git7 = b(this.git7, 25)), this.gitInv0 = this.gitInv0 || S(this.git0), this.gitInv1 = this.gitInv1 || S(this.git1), this.gitInv2 = this.gitInv2 || S(this.git2), this.gitInv3 = this.gitInv3 || S(this.git3), this.gitInv4 = this.gitInv4 || S(this.git4), this.gitInv5 = this.gitInv5 || S(this.git5), this.gitInv6 = this.gitInv6 || S(this.git6), this.gitInv7 = this.gitInv7 || S(this.git7), this.gitBranchLabel0 = this.gitBranchLabel0 || S(this.labelTextColor), this.gitBranchLabel1 = this.gitBranchLabel1 || this.labelTextColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.labelTextColor, this.gitBranchLabel3 = this.gitBranchLabel3 || S(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 || L, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || R;
1912
+ }, 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 || x(this.primaryColor, { h: -30 }), this.git4 = this.git4 || x(this.primaryColor, { h: -60 }), this.git5 = this.git5 || x(this.primaryColor, { h: -90 }), this.git6 = this.git6 || x(this.primaryColor, { h: 60 }), this.git7 = this.git7 || x(this.primaryColor, { h: 120 }), this.darkMode ? (this.git0 = y(this.git0, 25), this.git1 = y(this.git1, 25), this.git2 = y(this.git2, 25), this.git3 = y(this.git3, 25), this.git4 = y(this.git4, 25), this.git5 = y(this.git5, 25), this.git6 = y(this.git6, 25), this.git7 = y(this.git7, 25)) : (this.git0 = b(this.git0, 25), this.git1 = b(this.git1, 25), this.git2 = b(this.git2, 25), this.git3 = b(this.git3, 25), this.git4 = b(this.git4, 25), this.git5 = b(this.git5, 25), this.git6 = b(this.git6, 25), this.git7 = b(this.git7, 25)), this.gitInv0 = this.gitInv0 || S(this.git0), this.gitInv1 = this.gitInv1 || S(this.git1), this.gitInv2 = this.gitInv2 || S(this.git2), this.gitInv3 = this.gitInv3 || S(this.git3), this.gitInv4 = this.gitInv4 || S(this.git4), this.gitInv5 = this.gitInv5 || S(this.git5), this.gitInv6 = this.gitInv6 || S(this.git6), this.gitInv7 = this.gitInv7 || S(this.git7), this.gitBranchLabel0 = this.gitBranchLabel0 || S(this.labelTextColor), this.gitBranchLabel1 = this.gitBranchLabel1 || this.labelTextColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.labelTextColor, this.gitBranchLabel3 = this.gitBranchLabel3 || S(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 || I, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || L;
1924
1913
  }
1925
1914
  calculate(e) {
1926
1915
  if (typeof e != "object") {
@@ -1934,15 +1923,15 @@ var xt = bt(), St = /* @__PURE__ */ n((e, t, { depth: n = 2 } = {}) => {
1934
1923
  this[t] = e[t];
1935
1924
  });
1936
1925
  }
1937
- }, Ot = /* @__PURE__ */ n((e) => {
1938
- let t = new Dt();
1926
+ }, V = /* @__PURE__ */ n((e) => {
1927
+ let t = new B();
1939
1928
  return t.calculate(e), t;
1940
- }, "getThemeVariables"), kt = class {
1929
+ }, "getThemeVariables"), Et = class {
1941
1930
  static {
1942
1931
  n(this, "Theme");
1943
1932
  }
1944
1933
  constructor() {
1945
- this.primaryColor = "#eee", this.contrast = "#707070", this.secondaryColor = y(this.contrast, 55), this.background = "#ffffff", this.tertiaryColor = x(this.primaryColor, { h: -160 }), this.primaryBorderColor = z(this.primaryColor, this.darkMode), this.secondaryBorderColor = z(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = z(this.tertiaryColor, this.darkMode), this.primaryTextColor = S(this.primaryColor), this.secondaryTextColor = S(this.secondaryColor), this.tertiaryTextColor = S(this.tertiaryColor), this.lineColor = S(this.background), this.textColor = S(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 || y(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))";
1934
+ this.primaryColor = "#eee", this.contrast = "#707070", this.secondaryColor = y(this.contrast, 55), this.background = "#ffffff", this.tertiaryColor = x(this.primaryColor, { h: -160 }), this.primaryBorderColor = R(this.primaryColor, this.darkMode), this.secondaryBorderColor = R(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = R(this.tertiaryColor, this.darkMode), this.primaryTextColor = S(this.primaryColor), this.secondaryTextColor = S(this.secondaryColor), this.tertiaryTextColor = S(this.tertiaryColor), this.lineColor = S(this.background), this.textColor = S(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 || y(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))";
1946
1935
  }
1947
1936
  updateColors() {
1948
1937
  this.secondBkg = y(this.contrast, 55), this.border2 = this.contrast, this.actorBorder = y(this.border1, 23), this.actorBkg = this.mainBkg, this.actorTextColor = this.text, this.actorLineColor = this.actorBorder, this.rectBkgColor = this.rectBkgColor || this.tertiaryColor, this.signalColor = this.text, this.signalTextColor = this.text, this.labelBoxBkgColor = this.actorBkg, this.labelBoxBorderColor = this.actorBorder, this.labelTextColor = this.text, this.loopTextColor = this.text, this.noteBorderColor = "#999", this.noteBkgColor = "#666", this.noteTextColor = "#fff", this.cScale0 = this.cScale0 || "#555", this.cScale1 = this.cScale1 || "#F4F4F4", this.cScale2 = this.cScale2 || "#555", this.cScale3 = this.cScale3 || "#BBB", this.cScale4 = this.cScale4 || "#777", this.cScale5 = this.cScale5 || "#999", this.cScale6 = this.cScale6 || "#DDD", this.cScale7 = this.cScale7 || "#FFF", this.cScale8 = this.cScale8 || "#DDD", this.cScale9 = this.cScale9 || "#BBB", this.cScale10 = this.cScale10 || "#999", this.cScale11 = this.cScale11 || "#777";
@@ -2033,7 +2022,7 @@ var xt = bt(), St = /* @__PURE__ */ n((e, t, { depth: n = 2 } = {}) => {
2033
2022
  annotationStroke: this.wardley?.annotationStroke || this.lineColor,
2034
2023
  annotationTextColor: this.wardley?.annotationTextColor || this.primaryTextColor,
2035
2024
  annotationFill: this.wardley?.annotationFill || this.background
2036
- }, 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 = b(this.pie1, 25) || this.primaryColor, this.git1 = this.pie2 || this.secondaryColor, this.git2 = this.pie3 || this.tertiaryColor, this.git3 = this.pie4 || x(this.primaryColor, { h: -30 }), this.git4 = this.pie5 || x(this.primaryColor, { h: -60 }), this.git5 = this.pie6 || x(this.primaryColor, { h: -90 }), this.git6 = this.pie7 || x(this.primaryColor, { h: 60 }), this.git7 = this.pie8 || x(this.primaryColor, { h: 120 }), this.gitInv0 = this.gitInv0 || S(this.git0), this.gitInv1 = this.gitInv1 || S(this.git1), this.gitInv2 = this.gitInv2 || S(this.git2), this.gitInv3 = this.gitInv3 || S(this.git3), this.gitInv4 = this.gitInv4 || S(this.git4), this.gitInv5 = this.gitInv5 || S(this.git5), this.gitInv6 = this.gitInv6 || S(this.git6), this.gitInv7 = this.gitInv7 || S(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 || L, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || R;
2025
+ }, 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 = b(this.pie1, 25) || this.primaryColor, this.git1 = this.pie2 || this.secondaryColor, this.git2 = this.pie3 || this.tertiaryColor, this.git3 = this.pie4 || x(this.primaryColor, { h: -30 }), this.git4 = this.pie5 || x(this.primaryColor, { h: -60 }), this.git5 = this.pie6 || x(this.primaryColor, { h: -90 }), this.git6 = this.pie7 || x(this.primaryColor, { h: 60 }), this.git7 = this.pie8 || x(this.primaryColor, { h: 120 }), this.gitInv0 = this.gitInv0 || S(this.git0), this.gitInv1 = this.gitInv1 || S(this.git1), this.gitInv2 = this.gitInv2 || S(this.git2), this.gitInv3 = this.gitInv3 || S(this.git3), this.gitInv4 = this.gitInv4 || S(this.git4), this.gitInv5 = this.gitInv5 || S(this.git5), this.gitInv6 = this.gitInv6 || S(this.git6), this.gitInv7 = this.gitInv7 || S(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 || I, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || L;
2037
2026
  }
2038
2027
  calculate(e) {
2039
2028
  if (typeof e != "object") {
@@ -2047,21 +2036,21 @@ var xt = bt(), St = /* @__PURE__ */ n((e, t, { depth: n = 2 } = {}) => {
2047
2036
  this[t] = e[t];
2048
2037
  });
2049
2038
  }
2050
- }, H = /* @__PURE__ */ n((e) => {
2051
- let t = new kt();
2039
+ }, Dt = /* @__PURE__ */ n((e) => {
2040
+ let t = new Et();
2052
2041
  return t.calculate(e), t;
2053
- }, "getThemeVariables"), At = class {
2042
+ }, "getThemeVariables"), Ot = class {
2054
2043
  static {
2055
2044
  n(this, "Theme");
2056
2045
  }
2057
2046
  constructor() {
2058
- 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 = z(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";
2047
+ 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 = R(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";
2059
2048
  }
2060
2049
  updateColors() {
2061
2050
  this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#333"), this.secondaryColor = this.secondaryColor || x(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || x(this.primaryColor, {
2062
2051
  h: 180,
2063
2052
  l: 5
2064
- }), this.primaryBorderColor = this.primaryBorderColor || z(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || z(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || z(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || z(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#333", this.secondaryTextColor = this.secondaryTextColor || S(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || S(this.tertiaryColor), this.lineColor = this.lineColor || S(this.background), this.arrowheadColor = this.arrowheadColor || S(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 ? b(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 || b(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || S(this.lineColor), this.rectBkgColor = this.rectBkgColor || this.tertiaryColor;
2053
+ }), this.primaryBorderColor = this.primaryBorderColor || R(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || R(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || R(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || R(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#333", this.secondaryTextColor = this.secondaryTextColor || S(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || S(this.tertiaryColor), this.lineColor = this.lineColor || S(this.background), this.arrowheadColor = this.arrowheadColor || S(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 ? b(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 || b(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || S(this.lineColor), this.rectBkgColor = this.rectBkgColor || this.tertiaryColor;
2065
2054
  let e = "#ECECFE", t = "#E9E9F1", n = x(e, {
2066
2055
  h: 180,
2067
2056
  l: 5
@@ -2140,7 +2129,7 @@ var xt = bt(), St = /* @__PURE__ */ n((e, t, { depth: n = 2 } = {}) => {
2140
2129
  yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
2141
2130
  yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
2142
2131
  plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
2143
- }, this.requirementBackground = this.requirementBackground || e, this.requirementBorderColor = this.requirementBorderColor || this.primaryBorderColor, this.requirementBorderSize = this.requirementBorderSize || "1", this.requirementTextColor = this.requirementTextColor || this.primaryTextColor, this.relationColor = this.relationColor || this.lineColor, this.relationLabelBackground = this.relationLabelBackground || (this.darkMode ? b(this.secondaryColor, 30) : this.secondaryColor), this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.git0 = this.git0 || e, this.git1 = this.git1 || t, this.git2 = this.git2 || n, this.git3 = this.git3 || x(e, { h: -30 }), this.git4 = this.git4 || x(e, { h: -60 }), this.git5 = this.git5 || x(e, { h: -90 }), this.git6 = this.git6 || x(e, { h: 60 }), this.git7 = this.git7 || x(e, { h: 120 }), this.darkMode ? (this.git0 = y(this.git0, 25), this.git1 = y(this.git1, 25), this.git2 = y(this.git2, 25), this.git3 = y(this.git3, 25), this.git4 = y(this.git4, 25), this.git5 = y(this.git5, 25), this.git6 = y(this.git6, 25), this.git7 = y(this.git7, 25)) : (this.git0 = b(this.git0, 25), this.git1 = b(this.git1, 25), this.git2 = b(this.git2, 25), this.git3 = b(this.git3, 25), this.git4 = b(this.git4, 25), this.git5 = b(this.git5, 25), this.git6 = b(this.git6, 25), this.git7 = b(this.git7, 25)), this.gitInv0 = this.gitInv0 || S(this.git0), this.gitInv1 = this.gitInv1 || S(this.git1), this.gitInv2 = this.gitInv2 || S(this.git2), this.gitInv3 = this.gitInv3 || S(this.git3), this.gitInv4 = this.gitInv4 || S(this.git4), this.gitInv5 = this.gitInv5 || S(this.git5), this.gitInv6 = this.gitInv6 || S(this.git6), this.gitInv7 = this.gitInv7 || S(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 || L, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || R;
2132
+ }, this.requirementBackground = this.requirementBackground || e, this.requirementBorderColor = this.requirementBorderColor || this.primaryBorderColor, this.requirementBorderSize = this.requirementBorderSize || "1", this.requirementTextColor = this.requirementTextColor || this.primaryTextColor, this.relationColor = this.relationColor || this.lineColor, this.relationLabelBackground = this.relationLabelBackground || (this.darkMode ? b(this.secondaryColor, 30) : this.secondaryColor), this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.git0 = this.git0 || e, this.git1 = this.git1 || t, this.git2 = this.git2 || n, this.git3 = this.git3 || x(e, { h: -30 }), this.git4 = this.git4 || x(e, { h: -60 }), this.git5 = this.git5 || x(e, { h: -90 }), this.git6 = this.git6 || x(e, { h: 60 }), this.git7 = this.git7 || x(e, { h: 120 }), this.darkMode ? (this.git0 = y(this.git0, 25), this.git1 = y(this.git1, 25), this.git2 = y(this.git2, 25), this.git3 = y(this.git3, 25), this.git4 = y(this.git4, 25), this.git5 = y(this.git5, 25), this.git6 = y(this.git6, 25), this.git7 = y(this.git7, 25)) : (this.git0 = b(this.git0, 25), this.git1 = b(this.git1, 25), this.git2 = b(this.git2, 25), this.git3 = b(this.git3, 25), this.git4 = b(this.git4, 25), this.git5 = b(this.git5, 25), this.git6 = b(this.git6, 25), this.git7 = b(this.git7, 25)), this.gitInv0 = this.gitInv0 || S(this.git0), this.gitInv1 = this.gitInv1 || S(this.git1), this.gitInv2 = this.gitInv2 || S(this.git2), this.gitInv3 = this.gitInv3 || S(this.git3), this.gitInv4 = this.gitInv4 || S(this.git4), this.gitInv5 = this.gitInv5 || S(this.git5), this.gitInv6 = this.gitInv6 || S(this.git6), this.gitInv7 = this.gitInv7 || S(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 || I, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || L;
2144
2133
  }
2145
2134
  calculate(e) {
2146
2135
  if (typeof e != "object") {
@@ -2154,21 +2143,21 @@ var xt = bt(), St = /* @__PURE__ */ n((e, t, { depth: n = 2 } = {}) => {
2154
2143
  this[t] = e[t];
2155
2144
  });
2156
2145
  }
2157
- }, jt = /* @__PURE__ */ n((e) => {
2158
- let t = new At();
2146
+ }, kt = /* @__PURE__ */ n((e) => {
2147
+ let t = new Ot();
2159
2148
  return t.calculate(e), t;
2160
- }, "getThemeVariables"), Mt = class {
2149
+ }, "getThemeVariables"), At = class {
2161
2150
  static {
2162
2151
  n(this, "Theme");
2163
2152
  }
2164
2153
  constructor() {
2165
- this.background = "#333", this.primaryColor = "#1f2020", this.secondaryColor = y(this.primaryColor, 16), this.tertiaryColor = x(this.primaryColor, { h: -160 }), this.primaryBorderColor = S(this.background), this.secondaryBorderColor = z(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = z(this.tertiaryColor, this.darkMode), this.primaryTextColor = S(this.primaryColor), this.secondaryTextColor = S(this.secondaryColor), this.tertiaryTextColor = S(this.tertiaryColor), this.mainBkg = "#2a2020", this.secondBkg = "calculated", this.mainContrastColor = "lightgrey", this.darkTextColor = y(S("#323D47"), 10), this.border1 = "#ccc", this.border2 = h(255, 255, 255, .25), this.arrowheadColor = S(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";
2154
+ this.background = "#333", this.primaryColor = "#1f2020", this.secondaryColor = y(this.primaryColor, 16), this.tertiaryColor = x(this.primaryColor, { h: -160 }), this.primaryBorderColor = S(this.background), this.secondaryBorderColor = R(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = R(this.tertiaryColor, this.darkMode), this.primaryTextColor = S(this.primaryColor), this.secondaryTextColor = S(this.secondaryColor), this.tertiaryTextColor = S(this.tertiaryColor), this.mainBkg = "#2a2020", this.secondBkg = "calculated", this.mainContrastColor = "lightgrey", this.darkTextColor = y(S("#323D47"), 10), this.border1 = "#ccc", this.border2 = h(255, 255, 255, .25), this.arrowheadColor = S(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";
2166
2155
  }
2167
2156
  updateColors() {
2168
2157
  if (this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#333"), this.secondaryColor = this.secondaryColor || x(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || x(this.primaryColor, {
2169
2158
  h: 180,
2170
2159
  l: 5
2171
- }), this.primaryBorderColor = this.primaryBorderColor || z(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || z(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || z(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || z(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#333", this.secondaryTextColor = this.secondaryTextColor || S(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || S(this.tertiaryColor), this.lineColor = this.lineColor || S(this.background), this.arrowheadColor = this.arrowheadColor || S(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 ? b(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 || b(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || S(this.lineColor), this.rectBkgColor = this.rectBkgColor || this.tertiaryColor, this.sectionBkgColor = this.sectionBkgColor || this.tertiaryColor, this.altSectionBkgColor = this.altSectionBkgColor || "white", this.sectionBkgColor = this.sectionBkgColor || this.secondaryColor, this.sectionBkgColor2 = this.sectionBkgColor2 || this.primaryColor, this.excludeBkgColor = this.excludeBkgColor || "#eeeeee", this.taskBorderColor = this.taskBorderColor || this.primaryBorderColor, this.taskBkgColor = this.taskBkgColor || this.primaryColor, this.activeTaskBorderColor = this.activeTaskBorderColor || this.primaryColor, this.activeTaskBkgColor = this.activeTaskBkgColor || y(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 || x(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || x(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || x(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || x(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || x(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || x(this.primaryColor, {
2160
+ }), this.primaryBorderColor = this.primaryBorderColor || R(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || R(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || R(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || R(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#333", this.secondaryTextColor = this.secondaryTextColor || S(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || S(this.tertiaryColor), this.lineColor = this.lineColor || S(this.background), this.arrowheadColor = this.arrowheadColor || S(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 ? b(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 || b(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || S(this.lineColor), this.rectBkgColor = this.rectBkgColor || this.tertiaryColor, this.sectionBkgColor = this.sectionBkgColor || this.tertiaryColor, this.altSectionBkgColor = this.altSectionBkgColor || "white", this.sectionBkgColor = this.sectionBkgColor || this.secondaryColor, this.sectionBkgColor2 = this.sectionBkgColor2 || this.primaryColor, this.excludeBkgColor = this.excludeBkgColor || "#eeeeee", this.taskBorderColor = this.taskBorderColor || this.primaryBorderColor, this.taskBkgColor = this.taskBkgColor || this.primaryColor, this.activeTaskBorderColor = this.activeTaskBorderColor || this.primaryColor, this.activeTaskBkgColor = this.activeTaskBkgColor || y(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 || x(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || x(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || x(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || x(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || x(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || x(this.primaryColor, {
2172
2161
  h: 210,
2173
2162
  l: 150
2174
2163
  }), this.cScale9 = this.cScale9 || x(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || x(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || x(this.primaryColor, { h: 330 }), this.darkMode) for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = b(this["cScale" + e], 75);
@@ -2242,7 +2231,7 @@ var xt = bt(), St = /* @__PURE__ */ n((e, t, { depth: n = 2 } = {}) => {
2242
2231
  yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
2243
2232
  yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
2244
2233
  plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
2245
- }, 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 ? b(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 = y(this.git0, 25), this.git1 = y(this.git1, 25), this.git2 = y(this.git2, 25), this.git3 = y(this.git3, 25), this.git4 = y(this.git4, 25), this.git5 = y(this.git5, 25), this.git6 = y(this.git6, 25), this.git7 = y(this.git7, 25)) : (this.git0 = b(this.git0, 25), this.git1 = b(this.git1, 25), this.git2 = b(this.git2, 25), this.git3 = b(this.git3, 25), this.git4 = b(this.git4, 25), this.git5 = b(this.git5, 25), this.git6 = b(this.git6, 25), this.git7 = b(this.git7, 25)), this.gitInv0 = this.gitInv0 || S(this.git0), this.gitInv1 = this.gitInv1 || S(this.git1), this.gitInv2 = this.gitInv2 || S(this.git2), this.gitInv3 = this.gitInv3 || S(this.git3), this.gitInv4 = this.gitInv4 || S(this.git4), this.gitInv5 = this.gitInv5 || S(this.git5), this.gitInv6 = this.gitInv6 || S(this.git6), this.gitInv7 = this.gitInv7 || S(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 || L, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || R;
2234
+ }, 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 ? b(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 = y(this.git0, 25), this.git1 = y(this.git1, 25), this.git2 = y(this.git2, 25), this.git3 = y(this.git3, 25), this.git4 = y(this.git4, 25), this.git5 = y(this.git5, 25), this.git6 = y(this.git6, 25), this.git7 = y(this.git7, 25)) : (this.git0 = b(this.git0, 25), this.git1 = b(this.git1, 25), this.git2 = b(this.git2, 25), this.git3 = b(this.git3, 25), this.git4 = b(this.git4, 25), this.git5 = b(this.git5, 25), this.git6 = b(this.git6, 25), this.git7 = b(this.git7, 25)), this.gitInv0 = this.gitInv0 || S(this.git0), this.gitInv1 = this.gitInv1 || S(this.git1), this.gitInv2 = this.gitInv2 || S(this.git2), this.gitInv3 = this.gitInv3 || S(this.git3), this.gitInv4 = this.gitInv4 || S(this.git4), this.gitInv5 = this.gitInv5 || S(this.git5), this.gitInv6 = this.gitInv6 || S(this.git6), this.gitInv7 = this.gitInv7 || S(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 || I, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || L;
2246
2235
  }
2247
2236
  calculate(e) {
2248
2237
  if (typeof e != "object") {
@@ -2256,21 +2245,21 @@ var xt = bt(), St = /* @__PURE__ */ n((e, t, { depth: n = 2 } = {}) => {
2256
2245
  this[t] = e[t];
2257
2246
  });
2258
2247
  }
2259
- }, Nt = /* @__PURE__ */ n((e) => {
2260
- let t = new Mt();
2248
+ }, jt = /* @__PURE__ */ n((e) => {
2249
+ let t = new At();
2261
2250
  return t.calculate(e), t;
2262
- }, "getThemeVariables"), Pt = class {
2251
+ }, "getThemeVariables"), Mt = class {
2263
2252
  static {
2264
2253
  n(this, "Theme");
2265
2254
  }
2266
2255
  constructor() {
2267
- 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 = z("#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";
2256
+ 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 = R("#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";
2268
2257
  }
2269
2258
  updateColors() {
2270
2259
  this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#28253D"), this.secondaryColor = this.secondaryColor || x(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || x(this.primaryColor, {
2271
2260
  h: 180,
2272
2261
  l: 5
2273
- }), this.primaryBorderColor = this.primaryBorderColor || z(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || z(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || z(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || z(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#FEF9C3", this.noteTextColor = this.noteTextColor || "#28253D", this.secondaryTextColor = this.secondaryTextColor || S(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || S(this.tertiaryColor), this.lineColor = this.lineColor || S(this.background), this.arrowheadColor = this.arrowheadColor || S(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 ? b(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 || b(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || S(this.lineColor), this.rectBkgColor = this.rectBkgColor || this.tertiaryColor;
2262
+ }), this.primaryBorderColor = this.primaryBorderColor || R(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || R(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || R(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || R(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#FEF9C3", this.noteTextColor = this.noteTextColor || "#28253D", this.secondaryTextColor = this.secondaryTextColor || S(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || S(this.tertiaryColor), this.lineColor = this.lineColor || S(this.background), this.arrowheadColor = this.arrowheadColor || S(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 ? b(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 || b(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || S(this.lineColor), this.rectBkgColor = this.rectBkgColor || this.tertiaryColor;
2274
2263
  let e = "#ECECFE", t = "#E9E9F1", n = x(e, {
2275
2264
  h: 180,
2276
2265
  l: 5
@@ -2348,7 +2337,7 @@ var xt = bt(), St = /* @__PURE__ */ n((e, t, { depth: n = 2 } = {}) => {
2348
2337
  yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
2349
2338
  yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
2350
2339
  plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
2351
- }, this.requirementBackground = this.requirementBackground || e, this.requirementBorderColor = this.requirementBorderColor || this.primaryBorderColor, this.requirementBorderSize = this.requirementBorderSize || "1", this.requirementTextColor = this.requirementTextColor || this.primaryTextColor, this.relationColor = this.relationColor || this.lineColor, this.relationLabelBackground = this.relationLabelBackground || (this.darkMode ? b(this.secondaryColor, 30) : this.secondaryColor), this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.requirementEdgeLabelBackground = "#FFFFFF", this.git0 = this.git0 || e, this.git1 = this.git1 || t, this.git2 = this.git2 || n, this.git3 = this.git3 || x(e, { h: -30 }), this.git4 = this.git4 || x(e, { h: -60 }), this.git5 = this.git5 || x(e, { h: -90 }), this.git6 = this.git6 || x(e, { h: 60 }), this.git7 = this.git7 || x(e, { h: 120 }), this.darkMode ? (this.git0 = y(this.git0, 25), this.git1 = y(this.git1, 25), this.git2 = y(this.git2, 25), this.git3 = y(this.git3, 25), this.git4 = y(this.git4, 25), this.git5 = y(this.git5, 25), this.git6 = y(this.git6, 25), this.git7 = y(this.git7, 25)) : (this.git0 = b(this.git0, 25), this.git1 = b(this.git1, 25), this.git2 = b(this.git2, 25), this.git3 = b(this.git3, 25), this.git4 = b(this.git4, 25), this.git5 = b(this.git5, 25), this.git6 = b(this.git6, 25), this.git7 = b(this.git7, 25)), this.gitInv0 = this.gitInv0 || S(this.git0), this.gitInv1 = this.gitInv1 || S(this.git1), this.gitInv2 = this.gitInv2 || S(this.git2), this.gitInv3 = this.gitInv3 || S(this.git3), this.gitInv4 = this.gitInv4 || S(this.git4), this.gitInv5 = this.gitInv5 || S(this.git5), this.gitInv6 = this.gitInv6 || S(this.git6), this.gitInv7 = this.gitInv7 || S(this.git7), this.branchLabelColor = this.branchLabelColor || (this.darkMode ? "black" : this.labelTextColor), this.gitBranchLabel0 = this.gitBranchLabel0 || this.branchLabelColor, this.gitBranchLabel1 = this.gitBranchLabel1 || this.branchLabelColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.branchLabelColor, this.gitBranchLabel3 = this.gitBranchLabel3 || this.branchLabelColor, this.gitBranchLabel4 = this.gitBranchLabel4 || this.branchLabelColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.branchLabelColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.branchLabelColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.branchLabelColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.commitLineColor = this.commitLineColor ?? "#BDBCCC", this.erEdgeLabelBackground = "#FFFFFF", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || L, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || R;
2340
+ }, this.requirementBackground = this.requirementBackground || e, this.requirementBorderColor = this.requirementBorderColor || this.primaryBorderColor, this.requirementBorderSize = this.requirementBorderSize || "1", this.requirementTextColor = this.requirementTextColor || this.primaryTextColor, this.relationColor = this.relationColor || this.lineColor, this.relationLabelBackground = this.relationLabelBackground || (this.darkMode ? b(this.secondaryColor, 30) : this.secondaryColor), this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.requirementEdgeLabelBackground = "#FFFFFF", this.git0 = this.git0 || e, this.git1 = this.git1 || t, this.git2 = this.git2 || n, this.git3 = this.git3 || x(e, { h: -30 }), this.git4 = this.git4 || x(e, { h: -60 }), this.git5 = this.git5 || x(e, { h: -90 }), this.git6 = this.git6 || x(e, { h: 60 }), this.git7 = this.git7 || x(e, { h: 120 }), this.darkMode ? (this.git0 = y(this.git0, 25), this.git1 = y(this.git1, 25), this.git2 = y(this.git2, 25), this.git3 = y(this.git3, 25), this.git4 = y(this.git4, 25), this.git5 = y(this.git5, 25), this.git6 = y(this.git6, 25), this.git7 = y(this.git7, 25)) : (this.git0 = b(this.git0, 25), this.git1 = b(this.git1, 25), this.git2 = b(this.git2, 25), this.git3 = b(this.git3, 25), this.git4 = b(this.git4, 25), this.git5 = b(this.git5, 25), this.git6 = b(this.git6, 25), this.git7 = b(this.git7, 25)), this.gitInv0 = this.gitInv0 || S(this.git0), this.gitInv1 = this.gitInv1 || S(this.git1), this.gitInv2 = this.gitInv2 || S(this.git2), this.gitInv3 = this.gitInv3 || S(this.git3), this.gitInv4 = this.gitInv4 || S(this.git4), this.gitInv5 = this.gitInv5 || S(this.git5), this.gitInv6 = this.gitInv6 || S(this.git6), this.gitInv7 = this.gitInv7 || S(this.git7), this.branchLabelColor = this.branchLabelColor || (this.darkMode ? "black" : this.labelTextColor), this.gitBranchLabel0 = this.gitBranchLabel0 || this.branchLabelColor, this.gitBranchLabel1 = this.gitBranchLabel1 || this.branchLabelColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.branchLabelColor, this.gitBranchLabel3 = this.gitBranchLabel3 || this.branchLabelColor, this.gitBranchLabel4 = this.gitBranchLabel4 || this.branchLabelColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.branchLabelColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.branchLabelColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.branchLabelColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.commitLineColor = this.commitLineColor ?? "#BDBCCC", this.erEdgeLabelBackground = "#FFFFFF", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || I, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || L;
2352
2341
  }
2353
2342
  calculate(e) {
2354
2343
  if (typeof e != "object") {
@@ -2362,21 +2351,21 @@ var xt = bt(), St = /* @__PURE__ */ n((e, t, { depth: n = 2 } = {}) => {
2362
2351
  this[t] = e[t];
2363
2352
  });
2364
2353
  }
2365
- }, Ft = /* @__PURE__ */ n((e) => {
2366
- let t = new Pt();
2354
+ }, Nt = /* @__PURE__ */ n((e) => {
2355
+ let t = new Mt();
2367
2356
  return t.calculate(e), t;
2368
- }, "getThemeVariables"), It = class {
2357
+ }, "getThemeVariables"), Pt = class {
2369
2358
  static {
2370
2359
  n(this, "Theme");
2371
2360
  }
2372
2361
  constructor() {
2373
- this.background = "#333", this.primaryColor = "#1f2020", this.secondaryColor = y(this.primaryColor, 16), this.tertiaryColor = x(this.primaryColor, { h: -160 }), this.primaryBorderColor = S(this.background), this.secondaryBorderColor = z(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = z(this.tertiaryColor, this.darkMode), this.primaryTextColor = S(this.primaryColor), this.secondaryTextColor = S(this.secondaryColor), this.tertiaryTextColor = S(this.tertiaryColor), this.mainBkg = "#111113", this.secondBkg = "calculated", this.mainContrastColor = "lightgrey", this.darkTextColor = y(S("#323D47"), 10), this.border1 = "#ccc", this.border2 = h(255, 255, 255, .25), this.arrowheadColor = S(this.background), this.fontFamily = "\"Recursive Variable\", arial, sans-serif", this.fontSize = "14px", this.labelBackground = "#111113", this.textColor = "#ccc", this.THEME_COLOR_LIMIT = 12, this.radius = 12, this.strokeWidth = 2, this.noteBkgColor = this.noteBkgColor ?? "#FEF9C3", this.noteTextColor = this.noteTextColor ?? "#28253D", this.THEME_COLOR_LIMIT = 12, this.fontFamily = "\"Recursive Variable\", arial, sans-serif", this.fontSize = "14px", this.nodeBorder = "#FFFFFF", this.stateBorder = "#FFFFFF", this.useGradient = !1, this.gradientStart = "#0042eb", this.gradientStop = "#eb0042", this.dropShadow = "url(#drop-shadow)", this.nodeShadow = !0, this.archEdgeColor = "calculated", this.archEdgeArrowColor = "calculated", this.archEdgeWidth = "3", this.archGroupBorderColor = this.primaryBorderColor, this.archGroupBorderWidth = "2px", this.clusterBkg = "#1E1A2E", this.clusterBorder = "#BDBCCC", this.noteBorderColor = "#FACC15", this.noteFontWeight = 600, this.filterColor = "#FFFFFF";
2362
+ this.background = "#333", this.primaryColor = "#1f2020", this.secondaryColor = y(this.primaryColor, 16), this.tertiaryColor = x(this.primaryColor, { h: -160 }), this.primaryBorderColor = S(this.background), this.secondaryBorderColor = R(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = R(this.tertiaryColor, this.darkMode), this.primaryTextColor = S(this.primaryColor), this.secondaryTextColor = S(this.secondaryColor), this.tertiaryTextColor = S(this.tertiaryColor), this.mainBkg = "#111113", this.secondBkg = "calculated", this.mainContrastColor = "lightgrey", this.darkTextColor = y(S("#323D47"), 10), this.border1 = "#ccc", this.border2 = h(255, 255, 255, .25), this.arrowheadColor = S(this.background), this.fontFamily = "\"Recursive Variable\", arial, sans-serif", this.fontSize = "14px", this.labelBackground = "#111113", this.textColor = "#ccc", this.THEME_COLOR_LIMIT = 12, this.radius = 12, this.strokeWidth = 2, this.noteBkgColor = this.noteBkgColor ?? "#FEF9C3", this.noteTextColor = this.noteTextColor ?? "#28253D", this.THEME_COLOR_LIMIT = 12, this.fontFamily = "\"Recursive Variable\", arial, sans-serif", this.fontSize = "14px", this.nodeBorder = "#FFFFFF", this.stateBorder = "#FFFFFF", this.useGradient = !1, this.gradientStart = "#0042eb", this.gradientStop = "#eb0042", this.dropShadow = "url(#drop-shadow)", this.nodeShadow = !0, this.archEdgeColor = "calculated", this.archEdgeArrowColor = "calculated", this.archEdgeWidth = "3", this.archGroupBorderColor = this.primaryBorderColor, this.archGroupBorderWidth = "2px", this.clusterBkg = "#1E1A2E", this.clusterBorder = "#BDBCCC", this.noteBorderColor = "#FACC15", this.noteFontWeight = 600, this.filterColor = "#FFFFFF";
2374
2363
  }
2375
2364
  updateColors() {
2376
2365
  if (this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#FFFFFF"), this.secondaryColor = this.secondaryColor || x(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || x(this.primaryColor, {
2377
2366
  h: 180,
2378
2367
  l: 5
2379
- }), this.primaryBorderColor = this.primaryBorderColor || z(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || z(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || z(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || z(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#FFFFFF", this.secondaryTextColor = this.secondaryTextColor || S(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || S(this.tertiaryColor), this.lineColor = this.lineColor || S(this.background), this.arrowheadColor = this.arrowheadColor || S(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 ? b(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 || b(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || S(this.lineColor), this.rectBkgColor = this.rectBkgColor || this.tertiaryColor, this.sectionBkgColor = this.sectionBkgColor || this.tertiaryColor, this.altSectionBkgColor = this.altSectionBkgColor || "white", this.sectionBkgColor = this.sectionBkgColor || this.secondaryColor, this.sectionBkgColor2 = this.sectionBkgColor2 || this.primaryColor, this.excludeBkgColor = this.excludeBkgColor || "#eeeeee", this.taskBorderColor = this.taskBorderColor || this.primaryBorderColor, this.taskBkgColor = this.taskBkgColor || this.primaryColor, this.activeTaskBorderColor = this.activeTaskBorderColor || this.primaryColor, this.activeTaskBkgColor = this.activeTaskBkgColor || y(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 || x(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || x(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || x(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || x(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || x(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || x(this.primaryColor, {
2368
+ }), this.primaryBorderColor = this.primaryBorderColor || R(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || R(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || R(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || R(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#FFFFFF", this.secondaryTextColor = this.secondaryTextColor || S(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || S(this.tertiaryColor), this.lineColor = this.lineColor || S(this.background), this.arrowheadColor = this.arrowheadColor || S(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 ? b(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 || b(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || S(this.lineColor), this.rectBkgColor = this.rectBkgColor || this.tertiaryColor, this.sectionBkgColor = this.sectionBkgColor || this.tertiaryColor, this.altSectionBkgColor = this.altSectionBkgColor || "white", this.sectionBkgColor = this.sectionBkgColor || this.secondaryColor, this.sectionBkgColor2 = this.sectionBkgColor2 || this.primaryColor, this.excludeBkgColor = this.excludeBkgColor || "#eeeeee", this.taskBorderColor = this.taskBorderColor || this.primaryBorderColor, this.taskBkgColor = this.taskBkgColor || this.primaryColor, this.activeTaskBorderColor = this.activeTaskBorderColor || this.primaryColor, this.activeTaskBkgColor = this.activeTaskBkgColor || y(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 || x(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || x(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || x(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || x(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || x(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || x(this.primaryColor, {
2380
2369
  h: 210,
2381
2370
  l: 150
2382
2371
  }), this.cScale9 = this.cScale9 || x(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || x(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || x(this.primaryColor, { h: 330 }), this.darkMode) for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = b(this["cScale" + e], 75);
@@ -2450,7 +2439,7 @@ var xt = bt(), St = /* @__PURE__ */ n((e, t, { depth: n = 2 } = {}) => {
2450
2439
  yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
2451
2440
  yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
2452
2441
  plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
2453
- }, 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 ? b(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 || x(this.primaryColor, { h: -30 }), this.git4 = this.git4 || x(this.primaryColor, { h: -60 }), this.git5 = this.git5 || x(this.primaryColor, { h: -90 }), this.git6 = this.git6 || x(this.primaryColor, { h: 60 }), this.git7 = this.git7 || x(this.primaryColor, { h: 120 }), this.darkMode ? (this.git0 = y(this.git0, 25), this.git1 = y(this.git1, 25), this.git2 = y(this.git2, 25), this.git3 = y(this.git3, 25), this.git4 = y(this.git4, 25), this.git5 = y(this.git5, 25), this.git6 = y(this.git6, 25), this.git7 = y(this.git7, 25)) : (this.git0 = b(this.git0, 25), this.git1 = b(this.git1, 25), this.git2 = b(this.git2, 25), this.git3 = b(this.git3, 25), this.git4 = b(this.git4, 25), this.git5 = b(this.git5, 25), this.git6 = b(this.git6, 25), this.git7 = b(this.git7, 25)), this.gitInv0 = this.gitInv0 || S(this.git0), this.gitInv1 = this.gitInv1 || S(this.git1), this.gitInv2 = this.gitInv2 || S(this.git2), this.gitInv3 = this.gitInv3 || S(this.git3), this.gitInv4 = this.gitInv4 || S(this.git4), this.gitInv5 = this.gitInv5 || S(this.git5), this.gitInv6 = this.gitInv6 || S(this.git6), this.gitInv7 = this.gitInv7 || S(this.git7), this.branchLabelColor = this.branchLabelColor || (this.darkMode ? "black" : this.labelTextColor), this.gitBranchLabel0 = this.gitBranchLabel0 || this.branchLabelColor, this.gitBranchLabel1 = this.gitBranchLabel1 || this.branchLabelColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.branchLabelColor, this.gitBranchLabel3 = this.gitBranchLabel3 || this.branchLabelColor, this.gitBranchLabel4 = this.gitBranchLabel4 || this.branchLabelColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.branchLabelColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.branchLabelColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.branchLabelColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.commitLineColor = this.commitLineColor ?? "#BDBCCC", this.erEdgeLabelBackground = "#16141F", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || L, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || R;
2442
+ }, 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 ? b(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 || x(this.primaryColor, { h: -30 }), this.git4 = this.git4 || x(this.primaryColor, { h: -60 }), this.git5 = this.git5 || x(this.primaryColor, { h: -90 }), this.git6 = this.git6 || x(this.primaryColor, { h: 60 }), this.git7 = this.git7 || x(this.primaryColor, { h: 120 }), this.darkMode ? (this.git0 = y(this.git0, 25), this.git1 = y(this.git1, 25), this.git2 = y(this.git2, 25), this.git3 = y(this.git3, 25), this.git4 = y(this.git4, 25), this.git5 = y(this.git5, 25), this.git6 = y(this.git6, 25), this.git7 = y(this.git7, 25)) : (this.git0 = b(this.git0, 25), this.git1 = b(this.git1, 25), this.git2 = b(this.git2, 25), this.git3 = b(this.git3, 25), this.git4 = b(this.git4, 25), this.git5 = b(this.git5, 25), this.git6 = b(this.git6, 25), this.git7 = b(this.git7, 25)), this.gitInv0 = this.gitInv0 || S(this.git0), this.gitInv1 = this.gitInv1 || S(this.git1), this.gitInv2 = this.gitInv2 || S(this.git2), this.gitInv3 = this.gitInv3 || S(this.git3), this.gitInv4 = this.gitInv4 || S(this.git4), this.gitInv5 = this.gitInv5 || S(this.git5), this.gitInv6 = this.gitInv6 || S(this.git6), this.gitInv7 = this.gitInv7 || S(this.git7), this.branchLabelColor = this.branchLabelColor || (this.darkMode ? "black" : this.labelTextColor), this.gitBranchLabel0 = this.gitBranchLabel0 || this.branchLabelColor, this.gitBranchLabel1 = this.gitBranchLabel1 || this.branchLabelColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.branchLabelColor, this.gitBranchLabel3 = this.gitBranchLabel3 || this.branchLabelColor, this.gitBranchLabel4 = this.gitBranchLabel4 || this.branchLabelColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.branchLabelColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.branchLabelColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.branchLabelColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.commitLineColor = this.commitLineColor ?? "#BDBCCC", this.erEdgeLabelBackground = "#16141F", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || I, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || L;
2454
2443
  }
2455
2444
  calculate(e) {
2456
2445
  if (typeof e != "object") {
@@ -2464,15 +2453,15 @@ var xt = bt(), St = /* @__PURE__ */ n((e, t, { depth: n = 2 } = {}) => {
2464
2453
  this[t] = e[t];
2465
2454
  });
2466
2455
  }
2467
- }, Lt = /* @__PURE__ */ n((e) => {
2468
- let t = new It();
2456
+ }, Ft = /* @__PURE__ */ n((e) => {
2457
+ let t = new Pt();
2469
2458
  return t.calculate(e), t;
2470
- }, "getThemeVariables"), Rt = class {
2459
+ }, "getThemeVariables"), It = class {
2471
2460
  static {
2472
2461
  n(this, "Theme");
2473
2462
  }
2474
2463
  constructor() {
2475
- 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 = z(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 = [
2464
+ 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 = R(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 = [
2476
2465
  "#E879F9",
2477
2466
  "#2DD4BF",
2478
2467
  "#FB923C",
@@ -2504,7 +2493,7 @@ var xt = bt(), St = /* @__PURE__ */ n((e, t, { depth: n = 2 } = {}) => {
2504
2493
  this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#28253D"), this.secondaryColor = this.secondaryColor || x(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || x(this.primaryColor, {
2505
2494
  h: 180,
2506
2495
  l: 5
2507
- }), this.primaryBorderColor = this.primaryBorderColor || z(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || z(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || z(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || z(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#28253D", this.secondaryTextColor = this.secondaryTextColor || S(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || S(this.tertiaryColor), this.lineColor = this.lineColor || S(this.background), this.arrowheadColor = this.arrowheadColor || S(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 ? b(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 || b(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || S(this.lineColor), this.rectBkgColor = this.rectBkgColor || this.tertiaryColor;
2496
+ }), this.primaryBorderColor = this.primaryBorderColor || R(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || R(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || R(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || R(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#28253D", this.secondaryTextColor = this.secondaryTextColor || S(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || S(this.tertiaryColor), this.lineColor = this.lineColor || S(this.background), this.arrowheadColor = this.arrowheadColor || S(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 ? b(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 || b(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || S(this.lineColor), this.rectBkgColor = this.rectBkgColor || this.tertiaryColor;
2508
2497
  let e = "#ECECFE", t = "#E9E9F1", n = x(e, {
2509
2498
  h: 180,
2510
2499
  l: 5
@@ -2579,7 +2568,7 @@ var xt = bt(), St = /* @__PURE__ */ n((e, t, { depth: n = 2 } = {}) => {
2579
2568
  yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
2580
2569
  yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
2581
2570
  plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
2582
- }, this.requirementBackground = this.requirementBackground || e, this.requirementBorderColor = this.requirementBorderColor || this.primaryBorderColor, this.requirementBorderSize = this.requirementBorderSize || "1", this.requirementTextColor = this.requirementTextColor || this.primaryTextColor, this.relationColor = this.relationColor || this.lineColor, this.relationLabelBackground = this.relationLabelBackground || (this.darkMode ? b(this.secondaryColor, 30) : this.secondaryColor), this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.git0 = this.git0 || e, this.git1 = this.git1 || t, this.git2 = this.git2 || n, this.git3 = this.git3 || x(e, { h: -30 }), this.git4 = this.git4 || x(e, { h: -60 }), this.git5 = this.git5 || x(e, { h: -90 }), this.git6 = this.git6 || x(e, { h: 60 }), this.git7 = this.git7 || x(e, { h: 120 }), this.darkMode ? (this.git0 = y(this.git0, 25), this.git1 = y(this.git1, 25), this.git2 = y(this.git2, 25), this.git3 = y(this.git3, 25), this.git4 = y(this.git4, 25), this.git5 = y(this.git5, 25), this.git6 = y(this.git6, 25), this.git7 = y(this.git7, 25)) : (this.git0 = b(this.git0, 25), this.git1 = b(this.git1, 25), this.git2 = b(this.git2, 25), this.git3 = b(this.git3, 25), this.git4 = b(this.git4, 25), this.git5 = b(this.git5, 25), this.git6 = b(this.git6, 25), this.git7 = b(this.git7, 25)), this.gitInv0 = this.gitInv0 || S(this.git0), this.gitInv1 = this.gitInv1 || S(this.git1), this.gitInv2 = this.gitInv2 || S(this.git2), this.gitInv3 = this.gitInv3 || S(this.git3), this.gitInv4 = this.gitInv4 || S(this.git4), this.gitInv5 = this.gitInv5 || S(this.git5), this.gitInv6 = this.gitInv6 || S(this.git6), this.gitInv7 = this.gitInv7 || S(this.git7), this.branchLabelColor = this.branchLabelColor || (this.darkMode ? "black" : this.labelTextColor), this.gitBranchLabel0 = this.gitBranchLabel0 || this.branchLabelColor, this.gitBranchLabel1 = this.gitBranchLabel1 || this.branchLabelColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.branchLabelColor, this.gitBranchLabel3 = this.gitBranchLabel3 || this.branchLabelColor, this.gitBranchLabel4 = this.gitBranchLabel4 || this.branchLabelColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.branchLabelColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.branchLabelColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.branchLabelColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLineColor = this.commitLineColor ?? "#BDBCCC", this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.fontWeight = 600, this.erEdgeLabelBackground = "#FFFFFF", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || L, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || R;
2571
+ }, this.requirementBackground = this.requirementBackground || e, this.requirementBorderColor = this.requirementBorderColor || this.primaryBorderColor, this.requirementBorderSize = this.requirementBorderSize || "1", this.requirementTextColor = this.requirementTextColor || this.primaryTextColor, this.relationColor = this.relationColor || this.lineColor, this.relationLabelBackground = this.relationLabelBackground || (this.darkMode ? b(this.secondaryColor, 30) : this.secondaryColor), this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.git0 = this.git0 || e, this.git1 = this.git1 || t, this.git2 = this.git2 || n, this.git3 = this.git3 || x(e, { h: -30 }), this.git4 = this.git4 || x(e, { h: -60 }), this.git5 = this.git5 || x(e, { h: -90 }), this.git6 = this.git6 || x(e, { h: 60 }), this.git7 = this.git7 || x(e, { h: 120 }), this.darkMode ? (this.git0 = y(this.git0, 25), this.git1 = y(this.git1, 25), this.git2 = y(this.git2, 25), this.git3 = y(this.git3, 25), this.git4 = y(this.git4, 25), this.git5 = y(this.git5, 25), this.git6 = y(this.git6, 25), this.git7 = y(this.git7, 25)) : (this.git0 = b(this.git0, 25), this.git1 = b(this.git1, 25), this.git2 = b(this.git2, 25), this.git3 = b(this.git3, 25), this.git4 = b(this.git4, 25), this.git5 = b(this.git5, 25), this.git6 = b(this.git6, 25), this.git7 = b(this.git7, 25)), this.gitInv0 = this.gitInv0 || S(this.git0), this.gitInv1 = this.gitInv1 || S(this.git1), this.gitInv2 = this.gitInv2 || S(this.git2), this.gitInv3 = this.gitInv3 || S(this.git3), this.gitInv4 = this.gitInv4 || S(this.git4), this.gitInv5 = this.gitInv5 || S(this.git5), this.gitInv6 = this.gitInv6 || S(this.git6), this.gitInv7 = this.gitInv7 || S(this.git7), this.branchLabelColor = this.branchLabelColor || (this.darkMode ? "black" : this.labelTextColor), this.gitBranchLabel0 = this.gitBranchLabel0 || this.branchLabelColor, this.gitBranchLabel1 = this.gitBranchLabel1 || this.branchLabelColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.branchLabelColor, this.gitBranchLabel3 = this.gitBranchLabel3 || this.branchLabelColor, this.gitBranchLabel4 = this.gitBranchLabel4 || this.branchLabelColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.branchLabelColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.branchLabelColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.branchLabelColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLineColor = this.commitLineColor ?? "#BDBCCC", this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.fontWeight = 600, this.erEdgeLabelBackground = "#FFFFFF", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || I, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || L;
2583
2572
  }
2584
2573
  calculate(e) {
2585
2574
  if (typeof e != "object") {
@@ -2593,15 +2582,15 @@ var xt = bt(), St = /* @__PURE__ */ n((e, t, { depth: n = 2 } = {}) => {
2593
2582
  this[t] = e[t];
2594
2583
  });
2595
2584
  }
2596
- }, zt = /* @__PURE__ */ n((e) => {
2597
- let t = new Rt();
2585
+ }, Lt = /* @__PURE__ */ n((e) => {
2586
+ let t = new It();
2598
2587
  return t.calculate(e), t;
2599
- }, "getThemeVariables"), Bt = class {
2588
+ }, "getThemeVariables"), Rt = class {
2600
2589
  static {
2601
2590
  n(this, "Theme");
2602
2591
  }
2603
2592
  constructor() {
2604
- this.background = "#333", this.primaryColor = "#1f2020", this.secondaryColor = y(this.primaryColor, 16), this.tertiaryColor = x(this.primaryColor, { h: -160 }), this.primaryBorderColor = S(this.background), this.secondaryBorderColor = z(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = z(this.tertiaryColor, this.darkMode), this.primaryTextColor = S(this.primaryColor), this.secondaryTextColor = S(this.secondaryColor), this.tertiaryTextColor = S(this.tertiaryColor), this.mainBkg = "#111113", this.secondBkg = "calculated", this.mainContrastColor = "lightgrey", this.darkTextColor = y(S("#323D47"), 10), this.border1 = "#ccc", this.border2 = h(255, 255, 255, .25), this.arrowheadColor = S(this.background), this.fontFamily = "\"Recursive Variable\", arial, sans-serif", this.fontSize = "14px", this.labelBackground = "#111113", this.textColor = "#ccc", this.THEME_COLOR_LIMIT = 12, this.radius = 12, this.strokeWidth = 2, this.noteBkgColor = this.noteBkgColor ?? "#FEF9C3", this.noteTextColor = this.noteTextColor ?? "#28253D", this.THEME_COLOR_LIMIT = 12, this.fontFamily = "\"Recursive Variable\", arial, sans-serif", this.fontSize = "14px", this.nodeBorder = "#FFFFFF", this.stateBorder = "#FFFFFF", this.useGradient = !1, this.gradientStart = "#0042eb", this.gradientStop = "#eb0042", this.dropShadow = "url(#drop-shadow)", this.nodeShadow = !0, this.archEdgeColor = "calculated", this.archEdgeArrowColor = "calculated", this.archEdgeWidth = "3", this.archGroupBorderColor = this.primaryBorderColor, this.archGroupBorderWidth = "2px", this.clusterBkg = "#1E1A2E", this.clusterBorder = "#BDBCCC", this.noteBorderColor = "#FACC15", this.noteFontWeight = 600, this.borderColorArray = [
2593
+ this.background = "#333", this.primaryColor = "#1f2020", this.secondaryColor = y(this.primaryColor, 16), this.tertiaryColor = x(this.primaryColor, { h: -160 }), this.primaryBorderColor = S(this.background), this.secondaryBorderColor = R(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = R(this.tertiaryColor, this.darkMode), this.primaryTextColor = S(this.primaryColor), this.secondaryTextColor = S(this.secondaryColor), this.tertiaryTextColor = S(this.tertiaryColor), this.mainBkg = "#111113", this.secondBkg = "calculated", this.mainContrastColor = "lightgrey", this.darkTextColor = y(S("#323D47"), 10), this.border1 = "#ccc", this.border2 = h(255, 255, 255, .25), this.arrowheadColor = S(this.background), this.fontFamily = "\"Recursive Variable\", arial, sans-serif", this.fontSize = "14px", this.labelBackground = "#111113", this.textColor = "#ccc", this.THEME_COLOR_LIMIT = 12, this.radius = 12, this.strokeWidth = 2, this.noteBkgColor = this.noteBkgColor ?? "#FEF9C3", this.noteTextColor = this.noteTextColor ?? "#28253D", this.THEME_COLOR_LIMIT = 12, this.fontFamily = "\"Recursive Variable\", arial, sans-serif", this.fontSize = "14px", this.nodeBorder = "#FFFFFF", this.stateBorder = "#FFFFFF", this.useGradient = !1, this.gradientStart = "#0042eb", this.gradientStop = "#eb0042", this.dropShadow = "url(#drop-shadow)", this.nodeShadow = !0, this.archEdgeColor = "calculated", this.archEdgeArrowColor = "calculated", this.archEdgeWidth = "3", this.archGroupBorderColor = this.primaryBorderColor, this.archGroupBorderWidth = "2px", this.clusterBkg = "#1E1A2E", this.clusterBorder = "#BDBCCC", this.noteBorderColor = "#FACC15", this.noteFontWeight = 600, this.borderColorArray = [
2605
2594
  "#E879F9",
2606
2595
  "#2DD4BF",
2607
2596
  "#FB923C",
@@ -2620,7 +2609,7 @@ var xt = bt(), St = /* @__PURE__ */ n((e, t, { depth: n = 2 } = {}) => {
2620
2609
  this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#FFFFFF"), this.secondaryColor = this.secondaryColor || x(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || x(this.primaryColor, {
2621
2610
  h: 180,
2622
2611
  l: 5
2623
- }), this.primaryBorderColor = this.primaryBorderColor || z(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || z(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || z(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || z(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#FFFFFF", this.secondaryTextColor = this.secondaryTextColor || S(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || S(this.tertiaryColor), this.lineColor = this.lineColor || S(this.background), this.arrowheadColor = this.arrowheadColor || S(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 ? b(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 || b(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || S(this.lineColor), this.rectBkgColor = this.rectBkgColor || this.tertiaryColor, this.rootLabelColor = "#FFFFFF", this.sectionBkgColor = this.sectionBkgColor || this.tertiaryColor, this.altSectionBkgColor = this.altSectionBkgColor || "white", this.sectionBkgColor = this.sectionBkgColor || this.secondaryColor, this.sectionBkgColor2 = this.sectionBkgColor2 || this.primaryColor, this.excludeBkgColor = this.excludeBkgColor || "#eeeeee", this.taskBorderColor = this.taskBorderColor || this.primaryBorderColor, this.taskBkgColor = this.taskBkgColor || this.primaryColor, this.activeTaskBorderColor = this.activeTaskBorderColor || this.primaryColor, this.activeTaskBkgColor = this.activeTaskBkgColor || y(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";
2612
+ }), this.primaryBorderColor = this.primaryBorderColor || R(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || R(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || R(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || R(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#FFFFFF", this.secondaryTextColor = this.secondaryTextColor || S(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || S(this.tertiaryColor), this.lineColor = this.lineColor || S(this.background), this.arrowheadColor = this.arrowheadColor || S(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 ? b(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 || b(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || S(this.lineColor), this.rectBkgColor = this.rectBkgColor || this.tertiaryColor, this.rootLabelColor = "#FFFFFF", this.sectionBkgColor = this.sectionBkgColor || this.tertiaryColor, this.altSectionBkgColor = this.altSectionBkgColor || "white", this.sectionBkgColor = this.sectionBkgColor || this.secondaryColor, this.sectionBkgColor2 = this.sectionBkgColor2 || this.primaryColor, this.excludeBkgColor = this.excludeBkgColor || "#eeeeee", this.taskBorderColor = this.taskBorderColor || this.primaryBorderColor, this.taskBkgColor = this.taskBkgColor || this.primaryColor, this.activeTaskBorderColor = this.activeTaskBorderColor || this.primaryColor, this.activeTaskBkgColor = this.activeTaskBkgColor || y(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";
2624
2613
  for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || S(this["cScale" + e]);
2625
2614
  for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] || y(this["cScale" + e], 10) : this["cScalePeer" + e] = this["cScalePeer" + e] || b(this["cScale" + e], 10);
2626
2615
  this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
@@ -2690,7 +2679,7 @@ var xt = bt(), St = /* @__PURE__ */ n((e, t, { depth: n = 2 } = {}) => {
2690
2679
  yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
2691
2680
  yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
2692
2681
  plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
2693
- }, 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 ? b(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 || x(this.primaryColor, { h: -30 }), this.git4 = this.git4 || x(this.primaryColor, { h: -60 }), this.git5 = this.git5 || x(this.primaryColor, { h: -90 }), this.git6 = this.git6 || x(this.primaryColor, { h: 60 }), this.git7 = this.git7 || x(this.primaryColor, { h: 120 }), this.darkMode ? (this.git0 = y(this.git0, 25), this.git1 = y(this.git1, 25), this.git2 = y(this.git2, 25), this.git3 = y(this.git3, 25), this.git4 = y(this.git4, 25), this.git5 = y(this.git5, 25), this.git6 = y(this.git6, 25), this.git7 = y(this.git7, 25)) : (this.git0 = b(this.git0, 25), this.git1 = b(this.git1, 25), this.git2 = b(this.git2, 25), this.git3 = b(this.git3, 25), this.git4 = b(this.git4, 25), this.git5 = b(this.git5, 25), this.git6 = b(this.git6, 25), this.git7 = b(this.git7, 25)), this.gitInv0 = this.gitInv0 || S(this.git0), this.gitInv1 = this.gitInv1 || S(this.git1), this.gitInv2 = this.gitInv2 || S(this.git2), this.gitInv3 = this.gitInv3 || S(this.git3), this.gitInv4 = this.gitInv4 || S(this.git4), this.gitInv5 = this.gitInv5 || S(this.git5), this.gitInv6 = this.gitInv6 || S(this.git6), this.gitInv7 = this.gitInv7 || S(this.git7), this.branchLabelColor = this.branchLabelColor || (this.darkMode ? "black" : this.labelTextColor), this.gitBranchLabel0 = this.gitBranchLabel0 || this.branchLabelColor, this.gitBranchLabel1 = this.gitBranchLabel1 || this.branchLabelColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.branchLabelColor, this.gitBranchLabel3 = this.gitBranchLabel3 || this.branchLabelColor, this.gitBranchLabel4 = this.gitBranchLabel4 || this.branchLabelColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.branchLabelColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.branchLabelColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.branchLabelColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.commitLineColor = this.commitLineColor ?? "#BDBCCC", this.fontWeight = 600, this.erEdgeLabelBackground = "#16141F", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || L, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || R;
2682
+ }, 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 ? b(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 || x(this.primaryColor, { h: -30 }), this.git4 = this.git4 || x(this.primaryColor, { h: -60 }), this.git5 = this.git5 || x(this.primaryColor, { h: -90 }), this.git6 = this.git6 || x(this.primaryColor, { h: 60 }), this.git7 = this.git7 || x(this.primaryColor, { h: 120 }), this.darkMode ? (this.git0 = y(this.git0, 25), this.git1 = y(this.git1, 25), this.git2 = y(this.git2, 25), this.git3 = y(this.git3, 25), this.git4 = y(this.git4, 25), this.git5 = y(this.git5, 25), this.git6 = y(this.git6, 25), this.git7 = y(this.git7, 25)) : (this.git0 = b(this.git0, 25), this.git1 = b(this.git1, 25), this.git2 = b(this.git2, 25), this.git3 = b(this.git3, 25), this.git4 = b(this.git4, 25), this.git5 = b(this.git5, 25), this.git6 = b(this.git6, 25), this.git7 = b(this.git7, 25)), this.gitInv0 = this.gitInv0 || S(this.git0), this.gitInv1 = this.gitInv1 || S(this.git1), this.gitInv2 = this.gitInv2 || S(this.git2), this.gitInv3 = this.gitInv3 || S(this.git3), this.gitInv4 = this.gitInv4 || S(this.git4), this.gitInv5 = this.gitInv5 || S(this.git5), this.gitInv6 = this.gitInv6 || S(this.git6), this.gitInv7 = this.gitInv7 || S(this.git7), this.branchLabelColor = this.branchLabelColor || (this.darkMode ? "black" : this.labelTextColor), this.gitBranchLabel0 = this.gitBranchLabel0 || this.branchLabelColor, this.gitBranchLabel1 = this.gitBranchLabel1 || this.branchLabelColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.branchLabelColor, this.gitBranchLabel3 = this.gitBranchLabel3 || this.branchLabelColor, this.gitBranchLabel4 = this.gitBranchLabel4 || this.branchLabelColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.branchLabelColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.branchLabelColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.branchLabelColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.commitLineColor = this.commitLineColor ?? "#BDBCCC", this.fontWeight = 600, this.erEdgeLabelBackground = "#16141F", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || I, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || L;
2694
2683
  }
2695
2684
  calculate(e) {
2696
2685
  if (typeof e != "object") {
@@ -2704,22 +2693,22 @@ var xt = bt(), St = /* @__PURE__ */ n((e, t, { depth: n = 2 } = {}) => {
2704
2693
  this[t] = e[t];
2705
2694
  });
2706
2695
  }
2707
- }, U = {
2708
- base: { getThemeVariables: B },
2709
- dark: { getThemeVariables: Tt },
2710
- default: { getThemeVariables: Et },
2711
- forest: { getThemeVariables: Ot },
2712
- neutral: { getThemeVariables: H },
2713
- neo: { getThemeVariables: jt },
2714
- "neo-dark": { getThemeVariables: Nt },
2715
- redux: { getThemeVariables: Ft },
2716
- "redux-dark": { getThemeVariables: Lt },
2717
- "redux-color": { getThemeVariables: zt },
2696
+ }, H = {
2697
+ base: { getThemeVariables: z },
2698
+ dark: { getThemeVariables: Ct },
2699
+ default: { getThemeVariables: Tt },
2700
+ forest: { getThemeVariables: V },
2701
+ neutral: { getThemeVariables: Dt },
2702
+ neo: { getThemeVariables: kt },
2703
+ "neo-dark": { getThemeVariables: jt },
2704
+ redux: { getThemeVariables: Nt },
2705
+ "redux-dark": { getThemeVariables: Ft },
2706
+ "redux-color": { getThemeVariables: Lt },
2718
2707
  "redux-dark-color": { getThemeVariables: /* @__PURE__ */ n((e) => {
2719
- let t = new Bt();
2708
+ let t = new Rt();
2720
2709
  return t.calculate(e), t;
2721
2710
  }, "getThemeVariables") }
2722
- }, W = {
2711
+ }, U = {
2723
2712
  flowchart: {
2724
2713
  useMaxWidth: !0,
2725
2714
  titleTopMargin: 25,
@@ -3270,8 +3259,8 @@ var xt = bt(), St = /* @__PURE__ */ n((e, t, { depth: n = 2 } = {}) => {
3270
3259
  fontSize: 16,
3271
3260
  markdownAutoWrap: !0,
3272
3261
  suppressErrorRendering: !1
3273
- }, Vt = {
3274
- ...W,
3262
+ }, zt = {
3263
+ ...U,
3275
3264
  deterministicIDSeed: void 0,
3276
3265
  elk: {
3277
3266
  mergeEdges: !1,
@@ -3282,9 +3271,9 @@ var xt = bt(), St = /* @__PURE__ */ n((e, t, { depth: n = 2 } = {}) => {
3282
3271
  keepEntryNodeOnTop: !1
3283
3272
  },
3284
3273
  themeCSS: void 0,
3285
- themeVariables: U.default.getThemeVariables(),
3274
+ themeVariables: H.default.getThemeVariables(),
3286
3275
  sequence: {
3287
- ...W.sequence,
3276
+ ...U.sequence,
3288
3277
  messageFont: /* @__PURE__ */ n(function() {
3289
3278
  return {
3290
3279
  fontFamily: this.messageFontFamily,
@@ -3313,12 +3302,12 @@ var xt = bt(), St = /* @__PURE__ */ n((e, t, { depth: n = 2 } = {}) => {
3313
3302
  hierarchicalNamespaces: !0
3314
3303
  },
3315
3304
  gantt: {
3316
- ...W.gantt,
3305
+ ...U.gantt,
3317
3306
  tickInterval: void 0,
3318
3307
  useWidth: void 0
3319
3308
  },
3320
3309
  c4: {
3321
- ...W.c4,
3310
+ ...U.c4,
3322
3311
  useWidth: void 0,
3323
3312
  personFont: /* @__PURE__ */ n(function() {
3324
3313
  return {
@@ -3328,7 +3317,7 @@ var xt = bt(), St = /* @__PURE__ */ n((e, t, { depth: n = 2 } = {}) => {
3328
3317
  };
3329
3318
  }, "personFont"),
3330
3319
  flowchart: {
3331
- ...W.flowchart,
3320
+ ...U.flowchart,
3332
3321
  inheritDir: !1
3333
3322
  },
3334
3323
  external_personFont: /* @__PURE__ */ n(function() {
@@ -3480,26 +3469,26 @@ var xt = bt(), St = /* @__PURE__ */ n((e, t, { depth: n = 2 } = {}) => {
3480
3469
  }, "messageFont")
3481
3470
  },
3482
3471
  pie: {
3483
- ...W.pie,
3472
+ ...U.pie,
3484
3473
  useWidth: 984
3485
3474
  },
3486
3475
  xyChart: {
3487
- ...W.xyChart,
3476
+ ...U.xyChart,
3488
3477
  useWidth: void 0
3489
3478
  },
3490
3479
  requirement: {
3491
- ...W.requirement,
3480
+ ...U.requirement,
3492
3481
  useWidth: void 0
3493
3482
  },
3494
- packet: { ...W.packet },
3495
- eventmodeling: { ...W.eventmodeling },
3483
+ packet: { ...U.packet },
3484
+ eventmodeling: { ...U.eventmodeling },
3496
3485
  treeView: {
3497
- ...W.treeView,
3486
+ ...U.treeView,
3498
3487
  useWidth: void 0
3499
3488
  },
3500
- radar: { ...W.radar },
3489
+ radar: { ...U.radar },
3501
3490
  railroad: {
3502
- ...W.railroad,
3491
+ ...U.railroad,
3503
3492
  fontSize: void 0,
3504
3493
  fontFamily: void 0,
3505
3494
  terminalFill: void 0,
@@ -3517,9 +3506,9 @@ var xt = bt(), St = /* @__PURE__ */ n((e, t, { depth: n = 2 } = {}) => {
3517
3506
  specialStroke: void 0,
3518
3507
  ruleNameColor: void 0
3519
3508
  },
3520
- ishikawa: { ...W.ishikawa },
3509
+ ishikawa: { ...U.ishikawa },
3521
3510
  sankey: {
3522
- ...W.sankey,
3511
+ ...U.sankey,
3523
3512
  nodeColors: void 0
3524
3513
  },
3525
3514
  treemap: {
@@ -3534,13 +3523,13 @@ var xt = bt(), St = /* @__PURE__ */ n((e, t, { depth: n = 2 } = {}) => {
3534
3523
  labelFontSize: 14,
3535
3524
  valueFormat: ","
3536
3525
  },
3537
- venn: { ...W.venn },
3538
- cynefin: { ...W.cynefin }
3539
- }, G = /* @__PURE__ */ n((e, t = "") => Object.keys(e).reduce((n, r) => Array.isArray(e[r]) ? n : typeof e[r] == "object" && e[r] !== null ? [
3526
+ venn: { ...U.venn },
3527
+ cynefin: { ...U.cynefin }
3528
+ }, Bt = /* @__PURE__ */ n((e, t = "") => Object.keys(e).reduce((n, r) => Array.isArray(e[r]) ? n : typeof e[r] == "object" && e[r] !== null ? [
3540
3529
  ...n,
3541
3530
  t + r,
3542
- ...G(e[r], "")
3543
- ] : [...n, t + r], []), "keyify"), Ht = new Set(G(Vt, "")), K = Vt, Ut = {
3531
+ ...Bt(e[r], "")
3532
+ ] : [...n, t + r], []), "keyify"), Vt = new Set(Bt(zt, "")), Ht = zt, Ut = {
3544
3533
  nodeColors: /^#[\da-f]{3,8}$|^rgb\([\d\s%,.]+\)$|^hsl\([\d\s%,.]+\)$|^[a-z]+$/i,
3545
3534
  filenameIcons: /^[\w-]+(?::[\w-]+)?$/,
3546
3535
  extensionIcons: /^[\w-]+(?::[\w-]+)?$/
@@ -3551,194 +3540,202 @@ var xt = bt(), St = /* @__PURE__ */ n((e, t, { depth: n = 2 } = {}) => {
3551
3540
  }
3552
3541
  }, "sanitizeDictionaryConfig"), Gt = /* @__PURE__ */ n((e) => {
3553
3542
  if (t.debug("sanitizeDirective called with", e), typeof e == "object" && e) {
3554
- if (Array.isArray(e)) e.forEach((e) => Gt(e));
3555
- else {
3556
- for (let n of Object.keys(e)) if (t.debug("Checking key", n), n.startsWith("__") || n.includes("proto") || n.includes("constr") || !Ht.has(n) || e[n] == null) t.debug("sanitize deleting key: ", n), delete e[n];
3557
- else if (typeof e[n] == "object") {
3543
+ if (Array.isArray(e)) {
3544
+ e.forEach((e) => Gt(e));
3545
+ return;
3546
+ }
3547
+ for (let n of Object.keys(e)) {
3548
+ if (t.debug("Checking key", n), n.startsWith("__") || n.includes("proto") || n.includes("constr") || !Vt.has(n) || e[n] == null) {
3549
+ t.debug("sanitize deleting key: ", n), delete e[n];
3550
+ continue;
3551
+ }
3552
+ if (typeof e[n] == "object") {
3558
3553
  let r = Ut[n];
3559
3554
  r ? Wt(e[n], r) : (t.debug("sanitizing object", n), Gt(e[n]));
3560
- } else for (let r of [
3555
+ continue;
3556
+ }
3557
+ for (let r of [
3561
3558
  "themeCSS",
3562
3559
  "fontFamily",
3563
3560
  "altFontFamily"
3564
- ]) n.includes(r) && (t.debug("sanitizing css option", n), e[n] = Kt(e[n]));
3565
- if (e.themeVariables) for (let t of Object.keys(e.themeVariables)) {
3566
- let n = e.themeVariables[t];
3567
- n?.match && !n.match(/^[\d "#%(),.;A-Za-z]+$/) && (e.themeVariables[t] = "");
3568
- }
3569
- t.debug("After sanitization", e);
3561
+ ]) n.includes(r) && (t.debug("sanitizing css option", n), e[n] = W(e[n]));
3562
+ }
3563
+ if (e.themeVariables) for (let t of Object.keys(e.themeVariables)) {
3564
+ let n = e.themeVariables[t];
3565
+ n?.match && !n.match(/^[\d "#%(),.;A-Za-z]+$/) && (e.themeVariables[t] = "");
3570
3566
  }
3567
+ t.debug("After sanitization", e);
3571
3568
  }
3572
- }, "sanitizeDirective"), Kt = /* @__PURE__ */ n((e) => {
3569
+ }, "sanitizeDirective"), W = /* @__PURE__ */ n((e) => {
3573
3570
  let t = 0, n = 0;
3574
3571
  for (let r of e) {
3575
3572
  if (t < n) return "{ /* ERROR: Unbalanced CSS */ }";
3576
3573
  r === "{" ? t++ : r === "}" && n++;
3577
3574
  }
3578
3575
  return t === n ? e : "{ /* ERROR: Unbalanced CSS */ }";
3579
- }, "sanitizeCss"), qt = Object.freeze(K), Jt = /* @__PURE__ */ n((e) => !(e === !1 || [
3576
+ }, "sanitizeCss"), G = Object.freeze(Ht), Kt = /* @__PURE__ */ n((e) => !(e === !1 || [
3580
3577
  "false",
3581
3578
  "null",
3582
3579
  "0"
3583
- ].includes(String(e).trim().toLowerCase())), "evaluate"), q = I({}, qt), J, Y = [], Yt = I({}, qt), Xt = /* @__PURE__ */ n((e, t) => {
3584
- let n = I({}, e), r = {};
3585
- for (let e of t) rn(e), r = I(r, e);
3586
- if (n = I(n, r), r.theme && r.theme in U) {
3587
- let e = I(I({}, J).themeVariables || {}, r.themeVariables);
3588
- n.theme && n.theme in U && (n.themeVariables = U[n.theme].getThemeVariables(e));
3589
- }
3590
- return Yt = n, ln(Yt), Yt;
3591
- }, "updateCurrentConfig"), Zt = /* @__PURE__ */ n((e) => (q = I({}, qt), q = I(q, e), e.theme && U[e.theme] && (q.themeVariables = U[e.theme].getThemeVariables(e.themeVariables)), Xt(q, Y), q), "setSiteConfig"), Qt = /* @__PURE__ */ n((e) => {
3592
- J = I({}, e);
3593
- }, "saveConfigFromInitialize"), $t = /* @__PURE__ */ n((e) => (q = I(q, e), Xt(q, Y), q), "updateSiteConfig"), en = /* @__PURE__ */ n(() => I({}, q), "getSiteConfig"), tn = /* @__PURE__ */ n((e) => (Xt(Yt, [e]), nn()), "setConfig"), nn = /* @__PURE__ */ n(() => I({}, Yt), "getConfig"), rn = /* @__PURE__ */ n((e) => {
3594
- e && (["secure", ...q.secure ?? []].forEach((n) => {
3580
+ ].includes(String(e).trim().toLowerCase())), "evaluate"), K = F({}, G), qt, q = [], Jt = F({}, G), Yt = /* @__PURE__ */ n((e, t) => {
3581
+ let n = F({}, e), r = {};
3582
+ for (let e of t) en(e), r = F(r, e);
3583
+ if (n = F(n, r), r.theme && r.theme in H) {
3584
+ let e = F(F({}, qt).themeVariables || {}, r.themeVariables);
3585
+ n.theme && n.theme in H && (n.themeVariables = H[n.theme].getThemeVariables(e));
3586
+ }
3587
+ return Jt = n, sn(Jt), Jt;
3588
+ }, "updateCurrentConfig"), Xt = /* @__PURE__ */ n((e) => (K = F({}, G), K = F(K, e), e.theme && H[e.theme] && (K.themeVariables = H[e.theme].getThemeVariables(e.themeVariables)), Yt(K, q), K), "setSiteConfig"), Zt = /* @__PURE__ */ n((e) => {
3589
+ qt = F({}, e);
3590
+ }, "saveConfigFromInitialize"), Qt = /* @__PURE__ */ n((e) => (K = F(K, e), Yt(K, q), K), "updateSiteConfig"), $t = /* @__PURE__ */ n(() => F({}, K), "getSiteConfig"), J = /* @__PURE__ */ n((e) => (Yt(Jt, [e]), Y()), "setConfig"), Y = /* @__PURE__ */ n(() => F({}, Jt), "getConfig"), en = /* @__PURE__ */ n((e) => {
3591
+ e && (["secure", ...K.secure ?? []].forEach((n) => {
3595
3592
  Object.hasOwn(e, n) && (t.debug(`Denied attempt to modify a secure key ${n}`, e[n]), delete e[n]);
3596
3593
  }), Object.keys(e).forEach((t) => {
3597
3594
  t.startsWith("__") && delete e[t];
3598
3595
  }), Object.keys(e).forEach((t) => {
3599
- typeof e[t] == "string" && (e[t].includes("<") || e[t].includes(">") || e[t].includes("url(data:")) && delete e[t], typeof e[t] == "object" && rn(e[t]);
3596
+ typeof e[t] == "string" && (e[t].includes("<") || e[t].includes(">") || e[t].includes("url(data:")) && delete e[t], typeof e[t] == "object" && en(e[t]);
3600
3597
  }));
3601
- }, "sanitize"), an = /* @__PURE__ */ n((e) => {
3598
+ }, "sanitize"), tn = /* @__PURE__ */ n((e) => {
3602
3599
  Gt(e), e.fontFamily && !e.themeVariables?.fontFamily && (e.themeVariables = {
3603
3600
  ...e.themeVariables,
3604
3601
  fontFamily: e.fontFamily
3605
- }), Y.push(e), Xt(q, Y);
3606
- }, "addDirective"), X = /* @__PURE__ */ n((e = q) => {
3607
- Y = [], Xt(e, Y);
3608
- }, "reset"), on = {
3602
+ }), q.push(e), Yt(K, q);
3603
+ }, "addDirective"), nn = /* @__PURE__ */ n((e = K) => {
3604
+ q = [], Yt(e, q);
3605
+ }, "reset"), rn = {
3609
3606
  LAZY_LOAD_DEPRECATED: "The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead.",
3610
3607
  FLOWCHART_HTML_LABELS_DEPRECATED: "flowchart.htmlLabels is deprecated. Please use global htmlLabels instead."
3611
- }, sn = {}, cn = /* @__PURE__ */ n((e) => {
3612
- sn[e] || (t.warn(on[e]), sn[e] = !0);
3613
- }, "issueWarning"), ln = /* @__PURE__ */ n((e) => {
3614
- e && (e.lazyLoadedDiagrams || e.loadExternalDiagramsAtStartup) && cn("LAZY_LOAD_DEPRECATED");
3615
- }, "checkConfig"), un = /* @__PURE__ */ n(() => {
3608
+ }, an = {}, on = /* @__PURE__ */ n((e) => {
3609
+ an[e] || (t.warn(rn[e]), an[e] = !0);
3610
+ }, "issueWarning"), sn = /* @__PURE__ */ n((e) => {
3611
+ e && (e.lazyLoadedDiagrams || e.loadExternalDiagramsAtStartup) && on("LAZY_LOAD_DEPRECATED");
3612
+ }, "checkConfig"), cn = /* @__PURE__ */ n(() => {
3616
3613
  let e = {};
3617
- J && (e = I(e, J));
3618
- for (let t of Y) e = I(e, t);
3614
+ qt && (e = F(e, qt));
3615
+ for (let t of q) e = F(e, t);
3619
3616
  return e;
3620
- }, "getUserDefinedConfig"), dn = /* @__PURE__ */ n((e) => (e.flowchart?.htmlLabels != null && cn("FLOWCHART_HTML_LABELS_DEPRECATED"), Jt(e.htmlLabels ?? e.flowchart?.htmlLabels ?? !0)), "getEffectiveHtmlLabels"), fn = /^([^\S\n\r]*)-{3}\s*[\n\r](.*?)[\n\r]\1-{3}\s*[\n\r]+/s, pn = /%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi, mn = /\s*%%.*\n/gm, hn = class extends Error {
3617
+ }, "getUserDefinedConfig"), ln = /* @__PURE__ */ n((e) => (e.flowchart?.htmlLabels != null && on("FLOWCHART_HTML_LABELS_DEPRECATED"), Kt(e.htmlLabels ?? e.flowchart?.htmlLabels ?? !0)), "getEffectiveHtmlLabels"), X = /^([^\S\n\r]*)-{3}\s*[\n\r](.*?)[\n\r]\1-{3}\s*[\n\r]+/s, un = /%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi, dn = /\s*%%.*\n/gm, Z = class extends Error {
3621
3618
  static {
3622
3619
  n(this, "UnknownDiagramError");
3623
3620
  }
3624
3621
  constructor(e) {
3625
3622
  super(e), this.name = "UnknownDiagramError";
3626
3623
  }
3627
- }, Z = {}, gn = /* @__PURE__ */ n(function(e, t) {
3628
- e = e.replace(fn, "").replace(pn, "").replace(mn, "\n");
3629
- for (let [n, { detector: r }] of Object.entries(Z)) if (r(e, t)) return n;
3630
- throw new hn(`No diagram type detected matching given configuration for text: ${e}`);
3631
- }, "detectType"), _n = /* @__PURE__ */ n((...e) => {
3632
- for (let { id: t, detector: n, loader: r } of e) vn(t, n, r);
3633
- }, "registerLazyLoadedDiagrams"), vn = /* @__PURE__ */ n((e, n, r) => {
3634
- Z[e] && t.warn(`Detector with key ${e} already exists. Overwriting.`), Z[e] = {
3624
+ }, fn = {}, pn = /* @__PURE__ */ n(function(e, t) {
3625
+ e = e.replace(X, "").replace(un, "").replace(dn, "\n");
3626
+ for (let [n, { detector: r }] of Object.entries(fn)) if (r(e, t)) return n;
3627
+ throw new Z(`No diagram type detected matching given configuration for text: ${e}`);
3628
+ }, "detectType"), mn = /* @__PURE__ */ n((...e) => {
3629
+ for (let { id: t, detector: n, loader: r } of e) hn(t, n, r);
3630
+ }, "registerLazyLoadedDiagrams"), hn = /* @__PURE__ */ n((e, n, r) => {
3631
+ fn[e] && t.warn(`Detector with key ${e} already exists. Overwriting.`), fn[e] = {
3635
3632
  detector: n,
3636
3633
  loader: r
3637
3634
  }, t.debug(`Detector with key ${e} added${r ? " with loader" : ""}`);
3638
- }, "addDetector"), yn = /* @__PURE__ */ n((e) => Z[e].loader, "getDiagramLoader"), bn = /<br\s*\/?>/gi, xn = /* @__PURE__ */ n((e) => e ? jn(e).replace(/\\n/g, "#br#").split("#br#") : [""], "getRows"), Sn = /* @__PURE__ */ (() => {
3635
+ }, "addDetector"), gn = /* @__PURE__ */ n((e) => fn[e].loader, "getDiagramLoader"), Q = /<br\s*\/?>/gi, _n = /* @__PURE__ */ n((e) => e ? En(e).replace(/\\n/g, "#br#").split("#br#") : [""], "getRows"), vn = /* @__PURE__ */ (() => {
3639
3636
  let e = !1;
3640
3637
  return () => {
3641
- e ||= (Cn(), !0);
3638
+ e ||= (yn(), !0);
3642
3639
  };
3643
3640
  })();
3644
- function Cn() {
3641
+ function yn() {
3645
3642
  let e = "data-temp-href-target";
3646
- xt.addHook("beforeSanitizeAttributes", (t) => {
3643
+ P.addHook("beforeSanitizeAttributes", (t) => {
3647
3644
  t.tagName === "A" && t.hasAttribute("target") && t.setAttribute(e, t.getAttribute("target") ?? "");
3648
- }), xt.addHook("afterSanitizeAttributes", (t) => {
3645
+ }), P.addHook("afterSanitizeAttributes", (t) => {
3649
3646
  t.tagName === "A" && t.hasAttribute(e) && (t.setAttribute("target", t.getAttribute(e) ?? ""), t.removeAttribute(e), t.getAttribute("target") === "_blank" && t.setAttribute("rel", "noopener"));
3650
3647
  });
3651
3648
  }
3652
- n(Cn, "setupDompurifyHooks");
3653
- var wn = /* @__PURE__ */ n((e) => (Sn(), xt.sanitize(e)), "removeScript"), Tn = /* @__PURE__ */ n((e, t) => {
3654
- if (dn(t)) {
3649
+ n(yn, "setupDompurifyHooks");
3650
+ var bn = /* @__PURE__ */ n((e) => (vn(), P.sanitize(e)), "removeScript"), xn = /* @__PURE__ */ n((e, t) => {
3651
+ if (ln(t)) {
3655
3652
  let n = t.securityLevel;
3656
- n === "antiscript" || n === "strict" || n === "sandbox" ? e = wn(e) : n !== "loose" && (e = jn(e), e = e.replace(/</g, "&lt;").replace(/>/g, "&gt;"), e = e.replace(/=/g, "&equals;"), e = An(e));
3653
+ n === "antiscript" || n === "strict" || n === "sandbox" ? e = bn(e) : n !== "loose" && (e = En(e), e = e.replace(/</g, "&lt;").replace(/>/g, "&gt;"), e = e.replace(/=/g, "&equals;"), e = Tn(e));
3657
3654
  }
3658
3655
  return e;
3659
- }, "sanitizeMore"), En = /* @__PURE__ */ n((e, t) => e && (e = t.dompurifyConfig ? xt.sanitize(Tn(e, t), t.dompurifyConfig).toString() : xt.sanitize(Tn(e, t), { FORBID_TAGS: ["style"] }).toString(), e), "sanitizeText"), Dn = /* @__PURE__ */ n((e, t) => typeof e == "string" ? En(e, t) : e.flat().map((e) => En(e, t)), "sanitizeTextOrArray"), On = /* @__PURE__ */ n((e) => bn.test(e), "hasBreaks"), kn = /* @__PURE__ */ n((e) => e.split(bn), "splitBreaks"), An = /* @__PURE__ */ n((e) => e.replace(/#br#/g, "<br/>"), "placeholderToBreak"), jn = /* @__PURE__ */ n((e) => e.replace(bn, "#br#"), "breakToPlaceholder"), Mn = /* @__PURE__ */ n((e) => {
3656
+ }, "sanitizeMore"), $ = /* @__PURE__ */ n((e, t) => e && (e = t.dompurifyConfig ? P.sanitize(xn(e, t), t.dompurifyConfig).toString() : P.sanitize(xn(e, t), { FORBID_TAGS: ["style"] }).toString(), e), "sanitizeText"), Sn = /* @__PURE__ */ n((e, t) => typeof e == "string" ? $(e, t) : e.flat().map((e) => $(e, t)), "sanitizeTextOrArray"), Cn = /* @__PURE__ */ n((e) => Q.test(e), "hasBreaks"), wn = /* @__PURE__ */ n((e) => e.split(Q), "splitBreaks"), Tn = /* @__PURE__ */ n((e) => e.replace(/#br#/g, "<br/>"), "placeholderToBreak"), En = /* @__PURE__ */ n((e) => e.replace(Q, "#br#"), "breakToPlaceholder"), Dn = /* @__PURE__ */ n((e) => {
3660
3657
  let t = "";
3661
3658
  return e && (t = window.location.protocol + "//" + window.location.host + window.location.pathname + window.location.search, t = CSS.escape(t)), t;
3662
- }, "getUrl"), Nn = /* @__PURE__ */ n(function(...e) {
3659
+ }, "getUrl"), On = /* @__PURE__ */ n(function(...e) {
3663
3660
  let t = e.filter((e) => !isNaN(e));
3664
3661
  return Math.max(...t);
3665
- }, "getMax"), Pn = /* @__PURE__ */ n(function(...e) {
3662
+ }, "getMax"), kn = /* @__PURE__ */ n(function(...e) {
3666
3663
  let t = e.filter((e) => !isNaN(e));
3667
3664
  return Math.min(...t);
3668
- }, "getMin"), Fn = /* @__PURE__ */ n(function(e) {
3665
+ }, "getMin"), An = /* @__PURE__ */ n(function(e) {
3669
3666
  let t = e.split(/(,)/), n = [];
3670
3667
  for (let e = 0; e < t.length; e++) {
3671
3668
  let r = t[e];
3672
3669
  if (r === "," && e > 0 && e + 1 < t.length) {
3673
3670
  let i = t[e - 1], a = t[e + 1];
3674
- In(i, a) && (r = i + "," + a, e++, n.pop());
3671
+ Mn(i, a) && (r = i + "," + a, e++, n.pop());
3675
3672
  }
3676
- n.push($(r));
3673
+ n.push(Nn(r));
3677
3674
  }
3678
3675
  return n.join("");
3679
- }, "parseGenericTypes"), Q = /* @__PURE__ */ n((e, t) => Math.max(0, e.split(t).length - 1), "countOccurrence"), In = /* @__PURE__ */ n((e, t) => {
3680
- let n = Q(e, "~"), r = Q(t, "~");
3676
+ }, "parseGenericTypes"), jn = /* @__PURE__ */ n((e, t) => Math.max(0, e.split(t).length - 1), "countOccurrence"), Mn = /* @__PURE__ */ n((e, t) => {
3677
+ let n = jn(e, "~"), r = jn(t, "~");
3681
3678
  return n === 1 && r === 1;
3682
- }, "shouldCombineSets"), $ = /* @__PURE__ */ n((e) => {
3683
- let t = Q(e, "~"), n = !1;
3679
+ }, "shouldCombineSets"), Nn = /* @__PURE__ */ n((e) => {
3680
+ let t = jn(e, "~"), n = !1;
3684
3681
  if (t <= 1) return e;
3685
3682
  t % 2 != 0 && e.startsWith("~") && (e = e.substring(1), n = !0);
3686
3683
  let r = [...e], i = r.indexOf("~"), a = r.lastIndexOf("~");
3687
3684
  for (; i !== -1 && a !== -1 && i !== a;) r[i] = "<", r[a] = ">", i = r.indexOf("~"), a = r.lastIndexOf("~");
3688
3685
  return n && r.unshift("~"), r.join("");
3689
- }, "processSet"), Ln = /* @__PURE__ */ n(() => window.MathMLElement !== void 0, "isMathMLSupported"), Rn = /\$\$(.*?)\$\$/g, zn = /* @__PURE__ */ n((e) => (e.match(Rn)?.length ?? 0) > 0, "hasKatex"), Bn = /* @__PURE__ */ n(async (e, t) => {
3686
+ }, "processSet"), Pn = /* @__PURE__ */ n(() => window.MathMLElement !== void 0, "isMathMLSupported"), Fn = /\$\$(.*?)\$\$/g, In = /* @__PURE__ */ n((e) => (e.match(Fn)?.length ?? 0) > 0, "hasKatex"), Ln = /* @__PURE__ */ n(async (e, t) => {
3690
3687
  let n = document.createElement("div");
3691
- n.innerHTML = await Hn(e, t), n.id = "katex-temp", n.style.visibility = "hidden", n.style.position = "absolute", n.style.top = "0", document.querySelector("body")?.insertAdjacentElement("beforeend", n);
3688
+ n.innerHTML = await zn(e, t), n.id = "katex-temp", n.style.visibility = "hidden", n.style.position = "absolute", n.style.top = "0", document.querySelector("body")?.insertAdjacentElement("beforeend", n);
3692
3689
  let r = {
3693
3690
  width: n.clientWidth,
3694
3691
  height: n.clientHeight
3695
3692
  };
3696
3693
  return n.remove(), r;
3697
- }, "calculateMathMLDimensions"), Vn = /* @__PURE__ */ n(async (e, t) => {
3698
- if (!zn(e)) return e;
3699
- if (!(Ln() || t.legacyMathML || t.forceLegacyMathML)) return e.replace(Rn, "MathML is unsupported in this environment.");
3694
+ }, "calculateMathMLDimensions"), Rn = /* @__PURE__ */ n(async (e, t) => {
3695
+ if (!In(e)) return e;
3696
+ if (!(Pn() || t.legacyMathML || t.forceLegacyMathML)) return e.replace(Fn, "MathML is unsupported in this environment.");
3700
3697
  {
3701
- let { default: n } = await import("./katex-DmPOayaq.js"), r = t.forceLegacyMathML || !Ln() && t.legacyMathML ? "htmlAndMathml" : "mathml";
3702
- return e.split(bn).map((e) => zn(e) ? `<div style="display: flex; align-items: center; justify-content: center; white-space: nowrap;">${e}</div>` : `<div>${e}</div>`).join("").replace(Rn, (e, t) => n.renderToString(t, {
3698
+ let { default: n } = await import("./katex-BqirFtOb.js"), r = t.forceLegacyMathML || !Pn() && t.legacyMathML ? "htmlAndMathml" : "mathml";
3699
+ return e.split(Q).map((e) => In(e) ? `<div style="display: flex; align-items: center; justify-content: center; white-space: nowrap;">${e}</div>` : `<div>${e}</div>`).join("").replace(Fn, (e, t) => n.renderToString(t, {
3703
3700
  throwOnError: !0,
3704
3701
  displayMode: !0,
3705
3702
  output: r
3706
3703
  }).replace(/\n/g, " ").replace(/<annotation.*<\/annotation>/g, ""));
3707
3704
  }
3708
- }, "renderKatexUnsanitized"), Hn = /* @__PURE__ */ n(async (e, t) => En(await Vn(e, t), t), "renderKatexSanitized"), Un = {
3709
- getRows: xn,
3710
- sanitizeText: En,
3711
- sanitizeTextOrArray: Dn,
3712
- hasBreaks: On,
3713
- splitBreaks: kn,
3714
- lineBreakRegex: bn,
3715
- removeScript: wn,
3716
- getUrl: Mn,
3717
- evaluate: Jt,
3718
- getMax: Nn,
3719
- getMin: Pn
3720
- }, Wn = /* @__PURE__ */ n(function(e, t) {
3705
+ }, "renderKatexUnsanitized"), zn = /* @__PURE__ */ n(async (e, t) => $(await Rn(e, t), t), "renderKatexSanitized"), Bn = {
3706
+ getRows: _n,
3707
+ sanitizeText: $,
3708
+ sanitizeTextOrArray: Sn,
3709
+ hasBreaks: Cn,
3710
+ splitBreaks: wn,
3711
+ lineBreakRegex: Q,
3712
+ removeScript: bn,
3713
+ getUrl: Dn,
3714
+ evaluate: Kt,
3715
+ getMax: On,
3716
+ getMin: kn
3717
+ }, Vn = /* @__PURE__ */ n(function(e, t) {
3721
3718
  for (let n of t) e.attr(n[0], n[1]);
3722
- }, "d3Attrs"), Gn = /* @__PURE__ */ n(function(e, t, n) {
3719
+ }, "d3Attrs"), Hn = /* @__PURE__ */ n(function(e, t, n) {
3723
3720
  let r = /* @__PURE__ */ new Map();
3724
3721
  return n ? (r.set("width", "100%"), r.set("style", `max-width: ${t}px;`)) : (r.set("height", e), r.set("width", t)), r;
3725
- }, "calculateSvgSizeAttrs"), Kn = /* @__PURE__ */ n(function(e, t, n, r) {
3726
- Wn(e, Gn(t, n, r));
3727
- }, "configureSvgSize"), qn = /* @__PURE__ */ n(function(e, n, r, i) {
3722
+ }, "calculateSvgSizeAttrs"), Un = /* @__PURE__ */ n(function(e, t, n, r) {
3723
+ Vn(e, Hn(t, n, r));
3724
+ }, "configureSvgSize"), Wn = /* @__PURE__ */ n(function(e, n, r, i) {
3728
3725
  let a = n.node().getBBox(), o = a.width, s = a.height;
3729
3726
  t.info(`SVG bounds: ${o}x${s}`, a);
3730
3727
  let c = 0, l = 0;
3731
- t.info(`Graph bounds: ${c}x${l}`, e), c = o + r * 2, l = s + r * 2, t.info(`Calculated bounds: ${c}x${l}`), Kn(n, l, c, i);
3728
+ t.info(`Graph bounds: ${c}x${l}`, e), c = o + r * 2, l = s + r * 2, t.info(`Calculated bounds: ${c}x${l}`), Un(n, l, c, i);
3732
3729
  let u = `${a.x - r} ${a.y - r} ${a.width + 2 * r} ${a.height + 2 * r}`;
3733
3730
  n.attr("viewBox", u);
3734
- }, "setupGraphViewbox"), Jn = {};
3735
- function Yn(e) {
3731
+ }, "setupGraphViewbox"), Gn = {};
3732
+ function Kn(e) {
3736
3733
  return [...e.cssRules].map((e) => e.cssText).join("\n");
3737
3734
  }
3738
- n(Yn, "cssStyleSheetToString");
3739
- var Xn = /* @__PURE__ */ n((e, n, r, i) => {
3735
+ n(Kn, "cssStyleSheetToString");
3736
+ var qn = /* @__PURE__ */ n((e, n, r, i) => {
3740
3737
  let a = "";
3741
- return e in Jn && Jn[e] ? a = Jn[e]({
3738
+ return e in Gn && Gn[e] ? a = Gn[e]({
3742
3739
  ...r,
3743
3740
  svgId: i
3744
3741
  }) : t.warn(`No theme found for ${e}`), `& {
@@ -3863,32 +3860,32 @@ var Xn = /* @__PURE__ */ n((e, n, r, i) => {
3863
3860
 
3864
3861
  ${n}
3865
3862
  `;
3866
- }, "getStyles"), Zn = /* @__PURE__ */ n((e, t) => {
3867
- t !== void 0 && (Jn[e] = t);
3868
- }, "addStylesForDiagram"), Qn = Xn, $n = {};
3869
- r($n, {
3870
- clear: () => ir,
3871
- getAccDescription: () => cr,
3872
- getAccTitle: () => or,
3873
- getDiagramTitle: () => ur,
3874
- setAccDescription: () => sr,
3875
- setAccTitle: () => ar,
3876
- setDiagramTitle: () => lr
3863
+ }, "getStyles"), Jn = /* @__PURE__ */ n((e, t) => {
3864
+ t !== void 0 && (Gn[e] = t);
3865
+ }, "addStylesForDiagram"), Yn = qn, Xn = {};
3866
+ r(Xn, {
3867
+ clear: () => tr,
3868
+ getAccDescription: () => ar,
3869
+ getAccTitle: () => rr,
3870
+ getDiagramTitle: () => sr,
3871
+ setAccDescription: () => ir,
3872
+ setAccTitle: () => nr,
3873
+ setDiagramTitle: () => or
3877
3874
  });
3878
- var er = "", tr = "", nr = "", rr = /* @__PURE__ */ n((e) => En(e, nn()), "sanitizeText"), ir = /* @__PURE__ */ n(() => {
3879
- er = "", nr = "", tr = "";
3880
- }, "clear"), ar = /* @__PURE__ */ n((e) => {
3881
- er = rr(e).replace(/^\s+/g, "");
3882
- }, "setAccTitle"), or = /* @__PURE__ */ n(() => er, "getAccTitle"), sr = /* @__PURE__ */ n((e) => {
3883
- nr = rr(e).replace(/\n\s+/g, "\n");
3884
- }, "setAccDescription"), cr = /* @__PURE__ */ n(() => nr, "getAccDescription"), lr = /* @__PURE__ */ n((e) => {
3885
- tr = rr(e);
3886
- }, "setDiagramTitle"), ur = /* @__PURE__ */ n(() => tr, "getDiagramTitle"), dr = t, fr = e, pr = nn, mr = tn, hr = qt, gr = /* @__PURE__ */ n((e) => En(e, pr()), "sanitizeText"), _r = qn, vr = /* @__PURE__ */ n(() => $n, "getCommonDb"), yr = {}, br = /* @__PURE__ */ n((e, t, n) => {
3887
- yr[e] && dr.warn(`Diagram with id ${e} already registered. Overwriting.`), yr[e] = t, n && vn(e, n), Zn(e, t.styles), t.injectUtils?.(dr, fr, pr, gr, _r, vr(), () => {});
3888
- }, "registerDiagram"), xr = /* @__PURE__ */ n((e) => {
3889
- if (e in yr) return yr[e];
3890
- throw new Sr(e);
3891
- }, "getDiagram"), Sr = class extends Error {
3875
+ var Zn = "", Qn = "", $n = "", er = /* @__PURE__ */ n((e) => $(e, Y()), "sanitizeText"), tr = /* @__PURE__ */ n(() => {
3876
+ Zn = "", $n = "", Qn = "";
3877
+ }, "clear"), nr = /* @__PURE__ */ n((e) => {
3878
+ Zn = er(e).replace(/^\s+/g, "");
3879
+ }, "setAccTitle"), rr = /* @__PURE__ */ n(() => Zn, "getAccTitle"), ir = /* @__PURE__ */ n((e) => {
3880
+ $n = er(e).replace(/\n\s+/g, "\n");
3881
+ }, "setAccDescription"), ar = /* @__PURE__ */ n(() => $n, "getAccDescription"), or = /* @__PURE__ */ n((e) => {
3882
+ Qn = er(e);
3883
+ }, "setDiagramTitle"), sr = /* @__PURE__ */ n(() => Qn, "getDiagramTitle"), cr = t, lr = e, ur = Y, dr = J, fr = G, pr = /* @__PURE__ */ n((e) => $(e, ur()), "sanitizeText"), mr = Wn, hr = /* @__PURE__ */ n(() => Xn, "getCommonDb"), gr = {}, _r = /* @__PURE__ */ n((e, t, n) => {
3884
+ gr[e] && cr.warn(`Diagram with id ${e} already registered. Overwriting.`), gr[e] = t, n && hn(e, n), Jn(e, t.styles), t.injectUtils?.(cr, lr, ur, pr, mr, hr(), () => {});
3885
+ }, "registerDiagram"), vr = /* @__PURE__ */ n((e) => {
3886
+ if (e in gr) return gr[e];
3887
+ throw new yr(e);
3888
+ }, "getDiagram"), yr = class extends Error {
3892
3889
  static {
3893
3890
  n(this, "DiagramNotFoundError");
3894
3891
  }
@@ -3897,4 +3894,4 @@ var er = "", tr = "", nr = "", rr = /* @__PURE__ */ n((e) => En(e, nn()), "sanit
3897
3894
  }
3898
3895
  };
3899
3896
  //#endregion
3900
- export { xt as $, zn as A, gr as B, yn as C, Et as D, en as E, Hn as F, mr as G, sr as H, X as I, qn as J, lr as K, Kt as L, Fn as M, br as N, Mn as O, _n as P, $t as Q, Gt as R, xr as S, dn as T, ar as U, Qt as V, tn as W, Qn as X, _r as Y, U as Z, fn as _, ir as a, m as at, nn as b, Kn as c, hr as d, b as et, K as f, Jt as g, pn as h, Bn as i, h as it, bn as j, un as k, Yn as l, Z as m, an as n, v as nt, $n as o, a as ot, gn as p, Zt as q, I as r, _ as rt, Un as s, hn as t, y as tt, qt as u, cr as v, ur as w, pr as x, or as y, En as z };
3897
+ export { P as $, In as A, pr as B, gn as C, Tt as D, $t as E, zn as F, dr as G, ir as H, nn as I, Wn as J, or as K, W as L, An as M, _r as N, Dn as O, mn as P, Qt as Q, Gt as R, vr as S, ln as T, nr as U, Zt as V, J as W, Yn as X, mr as Y, H as Z, X as _, tr as a, m as at, Y as b, Un as c, fr as d, b as et, Ht as f, Kt as g, un as h, Ln as i, h as it, Q as j, cn as k, Kn as l, fn as m, tn as n, v as nt, Xn as o, a as ot, pn as p, Xt as q, F as r, _ as rt, Bn as s, Z as t, y as tt, G as u, ar as v, sr as w, ur as x, rr as y, $ as z };