PageSourceSearch

https://www.astrobetter.com/wiki/public/generated/js/vendor_dist/mermaid/dist/mermaid-5a5980d4.js

js astrobetter.com collected 2026-10-02 03:37:52 UTC 328,729 bytes, 8,136 lines download raw bytes

vendor: 6,079 bytes, lines 1-139
1function bh(t) {
2  for (var e = [], i = 1; i < arguments.length; i++)
3    e[i - 1] = arguments[i];
4  var r = Array.from(typeof t == "string" ? [t] : t);
5  r[r.length - 1] = r[r.length - 1].replace(/\r?\n([\t ]*)$/, "");
6  var n = r.reduce(function(a, l) {
7    var h = l.match(/\n([\t ]+|(?!\s).)/g);
8    return h ? a.concat(h.map(function(u) {
9      var f, c;
10      return (c = (f = u.match(/[\t ]/g)) === null || f === void 0 ? void 0 : f.length) !== null && c !== void 0 ? c : 0;
11    })) : a;
12  }, []);
13  if (n.length) {
14    var o = new RegExp(`
15[	 ]{` + Math.min.apply(Math, n) + "}", "g");
16    r = r.map(function(a) {
17      return a.replace(o, `
18`);
19    });
20  }
21  r[0] = r[0].replace(/^\r?\n/, "");
22  var s = r[0];
23  return e.forEach(function(a, l) {
24    var h = s.match(/(?:^|\n)( *)$/), u = h ? h[1] : "", f = a;
25    typeof a == "string" && a.includes(`
26`) && (f = String(a).split(`
27`).map(function(c, p) {
28      return p === 0 ? c : "" + u + c;
29    }).join(`
30`)), s += f + r[l + 1];
31  }), s;
32}
33var Th = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
34function kh(t) {
35  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
36}
37var Hs = { exports: {} };
38(function(t, e) {
39  (function(i, r) {
40    t.exports = r();
41  })(Th, function() {
42    var i = 1e3, r = 6e4, n = 36e5, o = "millisecond", s = "second", a = "minute", l = "hour", h = "day", u = "week", f = "month", c = "quarter", p = "year", m = "date", k = "Invalid Date", O = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, q = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, T = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(M) {
43      var b = ["th", "st", "nd", "rd"], C = M % 100;
44      return "[" + M + (b[(C - 20) % 10] || b[C] || b[0]) + "]";
45    } }, U = function(M, b, C) {
46      var v = String(M);
47      return !v || v.length >= b ? M : "" + Array(b + 1 - v.length).join(C) + M;
48    }, W = { s: U, z: function(M) {
49      var b = -M.utcOffset(), C = Math.abs(b), v = Math.floor(C / 60), x = C % 60;
50      return (b <= 0 ? "+" : "-") + U(v, 2, "0") + ":" + U(x, 2, "0");
51    }, m: function M(b, C) {
52      if (b.date() < C.date())
53        return -M(C, b);
54      var v = 12 * (C.year() - b.year()) + (C.month() - b.month()), x = b.clone().add(v, f), A = C - x < 0, D = b.clone().add(v + (A ? -1 : 1), f);
55      return +(-(v + (C - x) / (A ? x - D : D - x)) || 0);
56    }, a: function(M) {
57      return M < 0 ? Math.ceil(M) || 0 : Math.floor(M);
58    }, p: function(M) {
59      return { M: f, y: p, w: u, d: h, D: m, h: l, m: a, s, ms: o, Q: c }[M] || String(M || "").toLowerCase().replace(/s$/, "");
60    }, u: function(M) {
61      return M === void 0;
62    } }, G = "en", V = {};
63    V[G] = T;
64    var H = "$isDayjsObject", ae = function(M) {
65      return M instanceof _t || !(!M || !M[H]);
66    }, Jt = function M(b, C, v) {
67      var x;
68      if (!b)
69        return G;
70      if (typeof b == "string") {
71        var A = b.toLowerCase();
72        V[A] && (x = A), C && (V[A] = C, x = A);
73        var D = b.split("-");
74        if (!x && D.length > 1)
75          return M(D[0]);
76      } else {
77        var I = b.name;
78        V[I] = b, x = I;
79      }
80      return !v && x && (G = x), x || !v && G;
81    }, j = function(M, b) {
82      if (ae(M))
83        return M.clone();
84      var C = typeof b == "object" ? b : {};
85      return C.date = M, C.args = arguments, new _t(C);
86    }, N = W;
87    N.l = Jt, N.i = ae, N.w = function(M, b) {
88      return j(M, { locale: b.$L, utc: b.$u, x: b.$x, $offset: b.$offset });
89    };
90    var _t = function() {
91      function M(C) {
92        this.$L = Jt(C.locale, null, !0), this.parse(C), this.$x = this.$x || C.x || {}, this[H] = !0;
93      }
94      var b = M.prototype;
95      return b.parse = function(C) {
96        this.$d = function(v) {
97          var x = v.date, A = v.utc;
98          if (x === null)
99            return /* @__PURE__ */ new Date(NaN);
100          if (N.u(x))
101            return /* @__PURE__ */ new Date();
102          if (x instanceof Date)
103            return new Date(x);
104          if (typeof x == "string" && !/Z$/i.test(x)) {
105            var D = x.match(O);
106            if (D) {
107              var I = D[2] - 1 || 0, K = (D[7] || "0").substring(0, 3);
108              return A ? new Date(Date.UTC(D[1], I, D[3] || 1, D[4] || 0, D[5] || 0, D[6] || 0, K)) : new Date(D[1], I, D[3] || 1, D[4] || 0, D[5] || 0, D[6] || 0, K);
109            }
110          }
111          return new Date(x);
112        }(C), this.init();
113      }, b.init = function() {
114        var C = this.$d;
115        this.$y = C.getFullYear(), this.$M = C.getMonth(), this.$D = C.getDate(), this.$W = C.getDay(), this.$H = C.getHours(), this.$m = C.getMinutes(), this.$s = C.getSeconds(), this.$ms = C.getMilliseconds();
116      }, b.$utils = function() {
117        return N;
118      }, b.isValid = function() {
119        return this.$d.toString() !== k;
120      }, b.isSame = function(C, v) {
121        var x = j(C);
122        return this.startOf(v) <= x && x <= this.endOf(v);
123      }, b.isAfter = function(C, v) {
124        return j(C) < this.startOf(v);
125      }, b.isBefore = function(C, v) {
126        return this.endOf(v) < j(C);
127      }, b.$g = function(C, v, x) {
128        return N.u(C) ? this[v] : this.set(x, C);
129      }, b.unix = function() {
130        return Math.floor(this.valueOf() / 1e3);
131      }, b.valueOf = function() {
132        return this.$d.getTime();
133      }, b.startOf = function(C, v) {
134        var x = this, A = !!N.u(v) || v, D = N.p(C), I = function(Bt, et) {
135          var Ft = N.w(x.$u ? Date.UTC(x.$y, et, Bt) : new Date(x.$y, et, Bt), x);
136          return A ? Ft : Ft.endOf(h);
137        }, K = function(Bt, et) {
138          return N.w(x.toDate()[Bt].apply(x.toDate("s"), (A ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(et)), x);
139        }
vendor: 4,202 bytes, lines 139-250
139, R = this.$W, Q = this.$M, z = this.$D, Ct = "set" + (this.$u ? "UTC" : "");
140        switch (D) {
141          case p:
142            return A ? I(1, 0) : I(31, 11);
143          case f:
144            return A ? I(1, Q) : I(0, Q + 1);
145          case u:
146            var wt = this.$locale().weekStart || 0, Qt = (R < wt ? R + 7 : R) - wt;
147            return I(A ? z - Qt : z + (6 - Qt), Q);
148          case h:
149          case m:
150            return K(Ct + "Hours", 0);
151          case l:
152            return K(Ct + "Minutes", 1);
153          case a:
154            return K(Ct + "Seconds", 2);
155          case s:
156            return K(Ct + "Milliseconds", 3);
157          default:
158            return this.clone();
159        }
160      }, b.endOf = function(C) {
161        return this.startOf(C, !1);
162      }, b.$set = function(C, v) {
163        var x, A = N.p(C), D = "set" + (this.$u ? "UTC" : ""), I = (x = {}, x[h] = D + "Date", x[m] = D + "Date", x[f] = D + "Month", x[p] = D + "FullYear", x[l] = D + "Hours", x[a] = D + "Minutes", x[s] = D + "Seconds", x[o] = D + "Milliseconds", x)[A], K = A === h ? this.$D + (v - this.$W) : v;
164        if (A === f || A === p) {
165          var R = this.clone().set(m, 1);
166          R.$d[I](K), R.init(), this.$d = R.set(m, Math.min(this.$D, R.daysInMonth())).$d;
167        } else
168          I && this.$d[I](K);
169        return this.init(), this;
170      }, b.set = function(C, v) {
171        return this.clone().$set(C, v);
172      }, b.get = function(C) {
173        return this[N.p(C)]();
174      }, b.add = function(C, v) {
175        var x, A = this;
176        C = Number(C);
177        var D = N.p(v), I = function(Q) {
178          var z = j(A);
179          return N.w(z.date(z.date() + Math.round(Q * C)), A);
180        };
181        if (D === f)
182          return this.set(f, this.$M + C);
183        if (D === p)
184          return this.set(p, this.$y + C);
185        if (D === h)
186          return I(1);
187        if (D === u)
188          return I(7);
189        var K = (x = {}, x[a] = r, x[l] = n, x[s] = i, x)[D] || 1, R = this.$d.getTime() + C * K;
190        return N.w(R, this);
191      }, b.subtract = function(C, v) {
192        return this.add(-1 * C, v);
193      }, b.format = function(C) {
194        var v = this, x = this.$locale();
195        if (!this.isValid())
196          return x.invalidDate || k;
197        var A = C || "YYYY-MM-DDTHH:mm:ssZ", D = N.z(this), I = this.$H, K = this.$m, R = this.$M, Q = x.weekdays, z = x.months, Ct = x.meridiem, wt = function(et, Ft, xt, te) {
198          return et && (et[Ft] || et(v, A)) || xt[Ft].slice(0, te);
199        }, Qt = function(et) {
200          return N.s(I % 12 || 12, et, "0");
201        }, Bt = Ct || function(et, Ft, xt) {
202          var te = et < 12 ? "AM" : "PM";
203          return xt ? te.toLowerCase() : te;
204        };
205        return A.replace(q, function(et, Ft) {
206          return Ft || function(xt) {
207            switch (xt) {
208              case "YY":
209                return String(v.$y).slice(-2);
210              case "YYYY":
211                return N.s(v.$y, 4, "0");
212              case "M":
213                return R + 1;
214              case "MM":
215                return N.s(R + 1, 2, "0");
216              case "MMM":
217                return wt(x.monthsShort, R, z, 3);
218              case "MMMM":
219                return wt(z, R);
220              case "D":
221                return v.$D;
222              case "DD":
223                return N.s(v.$D, 2, "0");
224              case "d":
225                return String(v.$W);
226              case "dd":
227                return wt(x.weekdaysMin, v.$W, Q, 2);
228              case "ddd":
229                return wt(x.weekdaysShort, v.$W, Q, 3);
230              case "dddd":
231                return Q[v.$W];
232              case "H":
233                return String(I);
234              case "HH":
235                return N.s(I, 2, "0");
236              case "h":
237                return Qt(1);
238              case "hh":
239                return Qt(2);
240              case "a":
241                return Bt(I, K, !0);
242              case "A":
243                return Bt(I, K, !1);
244              case "m":
245                return String(K);
246              case "mm":
247                return N.s(K, 2, "0");
248              case "s":
249                return String(v.$s);
250              case "ss":
251                return N.s(v.$s, 2, "0");
252              case "SSS":
253                return N.s(v.$ms, 3, "0");
254              case "Z":
255                return D;
256            }
257            return null;
258          }(et) || D.replace(":", "");
259        });
260      }, b.utcOffset = function() {
261        return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
262      }, b.diff = function(C, v, x) {
263        var A, D = this, I = N.p(v), K = j(C), R = (K.utcOffset() - this.utcOffset()) * r, Q = this - K, z = function() {
264          return N.m(D, K);
265        };
266        switch (I) {
267          case p:
268            A = z() / 12;
269            break;
270          case f:
271            A = z();
272            break;
273          case c:
274            A = z() / 3;
275            break;
276          case u:
277            A = (Q - R) / 6048e5;
278            break;
279          case h:
280            A = (Q - R) / 864e5;
281            break;
282          case l:
283            A = Q / n;
284            break;
285          case a:
286            A = Q / r;
287            break;
288          case s:
289            A = Q / i;
290            break;
291          default:
292            A = Q;
293        }
294        return x ? A : N.a(A);
295      }, b.daysInMonth = function() {
296        return this.endOf(f).$D;
297      }, b.$locale = function() {
298        return V[this.$L];
299      }, b.locale = function(C, v) {
300        if (!C)
301          return this.$L;
302        var x = this.clone(), A = Jt(C, v, !0);
303        return A && (x.$L = A), x;
304      }, b.clone = function() {
305        return N.w(this.$d, this);
306      }, b.toDate = function() {
307        return new Date(this.valueOf());
308      }, b.toJSON = function() {
309        return this.isValid() ? this.toISOString() : null;
310      }, b.toISOString = function() {
311        return this.$d.toISOString();
312      }, b.toString = function() {
313        return this.$d.toUTCString();
314      }, M;
315    }(), zt = _t.prototype;
316    return j.prototype = zt, [["$ms", o], ["$s", s], ["$m", a], ["$H", l], ["$W", h], ["$M", f], ["$y", p], ["$D", m]].forEach(function(M) {
317      zt[M[1]] = function(b) {
318        return this.$g(b, M[0], M[1]);
319      };
320    }), j.extend = function(M, b) {
321      return M.$i || (M(b, _t, j), M.$i = !0), j;
322    }, j.locale = Jt, j.isDayjs = ae, j.unix = function(M) {
323      return j(1e3 * M);
324    }, j.en = V[G], j.Ls = V, j.p = {}, j;
325  });
326})(Hs);
327var Sh = Hs.exports;
328const vh = /* @__PURE__ */ kh(Sh), jt = {
329  trace: 0,
330  debug: 1,
331  info: 2,
332  warn: 3,
333  error: 4,
334  fatal: 5
335}, L = {
336  trace: (...t) => {
337  },
338  debug: (...t) => {
339  },
340  info: (...t) => {
341  },
342  warn: (...t) => {
343  },
344  error: (...t) => {
345  },
346  fatal: (...t) => {
347  }
348}, vn = function(t = "fatal") {
349  let e = jt.fatal;
350  typeof t == "string" ? (t = t.toLowerCase(), t in jt && (e = jt[t])) : typeof t == "number" && (e = t), L.trace = () => {
351  }, L.debug = () => {
352  }, L.info = () => {
353  }, L.warn = () => {
354  }, L.error = () => {
355  }, L.fatal = () => {
356  }, e <= jt.fatal && (L.fatal = console.error ? console.error.bind(console, bt("FATAL"), "color: orange") : console.log.bind(console, "\x1B[35m", bt("FATAL"))), e <= jt.error && (L.error = console.error ? console.error.bind(console, bt("ERROR"), "color: orange") : console.log.bind(console, "\x1B[31m", bt("ERROR"))), e <= jt.warn && (L.warn = console.warn ? console.warn.bind(console, bt("WARN"), "color: orange") : console.log.bind(console, "\x1B[33m", bt("WARN"))), e <= jt.info && (L.info = console.info ? console.info.bind(console, bt("INFO"), "color: lightblue") : console.log.bind(console, "\x1B[34m", bt("INFO"))), e <= jt.debug && (L.debug = console.debug ? console.debug.bind(console, bt("DEBUG"), "color: lightgreen") : console.log.bind(console, "\x1B[32m", bt("DEBUG"))), e <= jt.trace && (L.trace = console.debug ? console.debug.bind(console, bt("TRACE"), "color: lightgreen") : console.log.bind(console, "\x1B[32m", bt("TRACE")));
357}, bt = (t) => `%c${vh().format("ss.SSS")} : ${t} : `;
358var js = {};
359(function(t) {
360  Object.defineProperty(t, "__esModule", { value: !0 }), t.sanitizeUrl = t.BLANK_URL = void 0;
361  var e = /^([^\w]*)(javascript|data|vbscript)/im, i = /&#(\w+)(^\w|;)?/g, r = /&(newline|tab);/gi, n = /[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim, o = /^.+(:|&colon;)/gim, s = [".", "/"];
362  t.BLANK_URL = "about:blank";
363  function a(u) {
364    return s.indexOf(u[0]) > -1;
365  }
366  function l(u) {
367    var f = u.replace(n, "");
368    return f.replace(i, function(c, p) {
369      return String.fromCharCode(p);
370    });
371  }
372  function h(u) {
373    if (!u)
374      return t.BLANK_URL;
375    var f = l(u).replace(r, "").replace(n, "").trim();
376    if (!f)
377      return t.BLANK_URL;
378    if (a(f))
379      return f;
380    var c = f.match(o);
381    if (!c)
382      return f;
383    var p = c[0];
384    return e.test(p) ? t.BLANK_URL : f;
385  }
386  t.sanitizeUrl = h;
387})(js);
388var wh = { value: () => {
389} };
390function Us() {
391  for (var t = 0, e = arguments.length, i = {}, r; t < e; ++t) {
392    if (!(r = arguments[t] + "") || r in i || /[\s.]/.test(r))
393      throw new Error("illegal type: " + r);
394    i[r] = [];
395  }
396  return new Di(i);
397}
398function Di(t) {
399  this._ = t;
400}
401function Bh(t, e) {
402  return t.trim().split(/^|\s+/).map(function(i) {
403    var r = "", n = i.indexOf(".");
404    if (n >= 0 && (r = i.slice(n + 1), i = i.slice(0, n)), i && !e.hasOwnProperty(i))
405      throw new Error("unknown type: " + i);
406    return { type: i, name: r };
407  });
408}
409Di.prototype = Us.prototype = {
410  constructor: Di,
411  on: function(t, e) {
412    var i = this._, r = Bh(t + "", i), n, o = -1, s = r.length;
413    if (arguments.length < 2) {
414      for (; ++o < s; )
415        if ((n = (t = r[o]).type) && (n = Fh(i[n], t.name)))
416          return n;
417      return;
418    }
419    if (e != null && typeof e != "function")
420      throw new Error("invalid callback: " + e);
421    for (; ++o < s; )
422      if (n = (t = r[o]).type)
423        i[n] = Bo(i[n], t.name, e);
424      else if (e == null)
425        for (n in i)
426          i[n] = Bo(i[n], t.name, null);
427    return this;
428  },
429  copy: function() {
430    var t = {}, e = this._;
431    for (var i in e)
432      t[i] = e[i].slice();
433    return new Di(t);
434  },
435  call: function(t, e) {
436    if ((n = arguments.length - 2) > 0)
437      for (var i = new Array(n), r = 0, n, o; r < n; ++r)
438        i[r] = arguments[r + 2];
439    if (!this._.hasOwnProperty(t))
440      throw new Error("unknown type: " + t);
441    for (o = this._[t], r = 0, n = o.length; r < n; ++r)
442      o[r].value.apply(e, i);
443  },
444  apply: function(t, e, i) {
445    if (!this._.hasOwnProperty(t))
446      throw new Error("unknown type: " + t);
447    for (var r = this._[t], n = 0, o = r.length; n < o; ++n)
448      r[n].value.apply(e, i);
449  }
450};
451function Fh(t, e) {
452  for (var i = 0, r = t.length, n; i < r; ++i)
453    if ((n = t[i]).name === e)
454      return n.value;
455}
456function Bo(t, e, i) {
457  for (var r = 0, n = t.length; r < n; ++r)
458    if (t[r].name === e) {
459      t[r] = wh, t = t.slice(0, r).concat(t.slice(r + 1));
460      break;
461    }
462  return i != null && t.push({ name: e, value: i }), t;
463}
464var rn = "http://www.w3.org/1999/xhtml";
465const Fo = {
466  svg: "http://www.w3.org/2000/svg",
467  xhtml: rn,
468  xlink: "http://www.w3.org/1999/xlink",
469  xml: "http://www.w3.org/XML/1998/namespace",
470  xmlns: "http://www.w3.org/2000/xmlns/"
471};
472function gr(t) {
473  var e = t += "", i = e.indexOf(":");
474  return i >
vendor: 10,223 bytes, lines 474-834
474= 0 && (e = t.slice(0, i)) !== "xmlns" && (t = t.slice(i + 1)), Fo.hasOwnProperty(e) ? { space: Fo[e], local: t } : t;
475}
476function Ah(t) {
477  return function() {
478    var e = this.ownerDocument, i = this.namespaceURI;
479    return i === rn && e.documentElement.namespaceURI === rn ? e.createElement(t) : e.createElementNS(i, t);
480  };
481}
482function Lh(t) {
483  return function() {
484    return this.ownerDocument.createElementNS(t.space, t.local);
485  };
486}
487function Ys(t) {
488  var e = gr(t);
489  return (e.local ? Lh : Ah)(e);
490}
491function Eh() {
492}
493function wn(t) {
494  return t == null ? Eh : function() {
495    return this.querySelector(t);
496  };
497}
498function Mh(t) {
499  typeof t != "function" && (t = wn(t));
500  for (var e = this._groups, i = e.length, r = new Array(i), n = 0; n < i; ++n)
501    for (var o = e[n], s = o.length, a = r[n] = new Array(s), l, h, u = 0; u < s; ++u)
502      (l = o[u]) && (h = t.call(l, l.__data__, u, o)) && ("__data__" in l && (h.__data__ = l.__data__), a[u] = h);
503  return new mt(r, this._parents);
504}
505function Oh(t) {
506  return t == null ? [] : Array.isArray(t) ? t : Array.from(t);
507}
508function $h() {
509  return [];
510}
511function Gs(t) {
512  return t == null ? $h : function() {
513    return this.querySelectorAll(t);
514  };
515}
516function Ih(t) {
517  return function() {
518    return Oh(t.apply(this, arguments));
519  };
520}
521function Dh(t) {
522  typeof t == "function" ? t = Ih(t) : t = Gs(t);
523  for (var e = this._groups, i = e.length, r = [], n = [], o = 0; o < i; ++o)
524    for (var s = e[o], a = s.length, l, h = 0; h < a; ++h)
525      (l = s[h]) && (r.push(t.call(l, l.__data__, h, s)), n.push(l));
526  return new mt(r, n);
527}
528function Vs(t) {
529  return function() {
530    return this.matches(t);
531  };
532}
533function Xs(t) {
534  return function(e) {
535    return e.matches(t);
536  };
537}
538var Nh = Array.prototype.find;
539function Rh(t) {
540  return function() {
541    return Nh.call(this.children, t);
542  };
543}
544function Ph() {
545  return this.firstElementChild;
546}
547function qh(t) {
548  return this.select(t == null ? Ph : Rh(typeof t == "function" ? t : Xs(t)));
549}
550var zh = Array.prototype.filter;
551function Wh() {
552  return Array.from(this.children);
553}
554function Hh(t) {
555  return function() {
556    return zh.call(this.children, t);
557  };
558}
559function jh(t) {
560  return this.selectAll(t == null ? Wh : Hh(typeof t == "function" ? t : Xs(t)));
561}
562function Uh(t) {
563  typeof t != "function" && (t = Vs(t));
564  for (var e = this._groups, i = e.length, r = new Array(i), n = 0; n < i; ++n)
565    for (var o = e[n], s = o.length, a = r[n] = [], l, h = 0; h < s; ++h)
566      (l = o[h]) && t.call(l, l.__data__, h, o) && a.push(l);
567  return new mt(r, this._parents);
568}
569function Ks(t) {
570  return new Array(t.length);
571}
572function Yh() {
573  return new mt(this._enter || this._groups.map(Ks), this._parents);
574}
575function Gi(t, e) {
576  this.ownerDocument = t.ownerDocument, this.namespaceURI = t.namespaceURI, this._next = null, this._parent = t, this.__data__ = e;
577}
578Gi.prototype = {
579  constructor: Gi,
580  appendChild: function(t) {
581    return this._parent.insertBefore(t, this._next);
582  },
583  insertBefore: function(t, e) {
584    return this._parent.insertBefore(t, e);
585  },
586  querySelector: function(t) {
587    return this._parent.querySelector(t);
588  },
589  querySelectorAll: function(t) {
590    return this._parent.querySelectorAll(t);
591  }
592};
593function Gh(t) {
594  return function() {
595    return t;
596  };
597}
598function Vh(t, e, i, r, n, o) {
599  for (var s = 0, a, l = e.length, h = o.length; s < h; ++s)
600    (a = e[s]) ? (a.__data__ = o[s], r[s] = a) : i[s] = new Gi(t, o[s]);
601  for (; s < l; ++s)
602    (a = e[s]) && (n[s] = a);
603}
604function Xh(t, e, i, r, n, o, s) {
605  var a, l, h = /* @__PURE__ */ new Map(), u = e.length, f = o.length, c = new Array(u), p;
606  for (a = 0; a < u; ++a)
607    (l = e[a]) && (c[a] = p = s.call(l, l.__data__, a, e) + "", h.has(p) ? n[a] = l : h.set(p, l));
608  for (a = 0; a < f; ++a)
609    p = s.call(t, o[a], a, o) + "", (l = h.get(p)) ? (r[a] = l, l.__data__ = o[a], h.delete(p)) : i[a] = new Gi(t, o[a]);
610  for (a = 0; a < u; ++a)
611    (l = e[a]) && h.get(c[a]) === l && (n[a] = l);
612}
613function Kh(t) {
614  return t.__data__;
615}
616function Zh(t, e) {
617  if (!arguments.length)
618    return Array.from(this, Kh);
619  var i = e ? Xh : Vh, r = this._parents, n = this._groups;
620  typeof t != "function" && (t = Gh(t));
621  for (var o = n.length, s = new Array(o), a = new Array(o), l = new Array(o), h = 0; h < o; ++h) {
622    var u = r[h], f = n[h], c = f.length, p = Jh(t.call(u, u && u.__data__, h, r)), m = p.length, k = a[h] = new Array(m), O = s[h] = new Array(m), q = l[h] = new Array(c);
623    i(u, f, k, O, q, p, e);
624    for (var T = 0, U = 0, W, G; T < m; ++T)
625      if (W = k[T]) {
626        for (T >= U && (U = T + 1); !(G = O[U]) && ++U < m; )
627          ;
628        W._next = G || null;
629      }
630  }
631  return s = new mt(s, r), s._enter = a, s._exit = l, s;
632}
633function Jh(t) {
634  return typeof t == "object" && "length" in t ? t : Array.from(t);
635}
636function Qh() {
637  return new mt(this._exit || this._groups.map(Ks), this._parents);
638}
639function tc(t, e, i) {
640  var r = this.enter(), n = this, o = this.exit();
641  return typeof t == "function" ? (r = t(r), r && (r = r.selection())) : r = r.append(t + ""), e != null && (n = e(n), n && (n = n.selection())), i == null ? o.remove() : i(o), r && n ? r.merge(n).order() : n;
642}
643function ec(t) {
644  for (var e = t.selection ? t.selection() : t, i = this._groups, r = e._groups, n = i.length, o = r.length, s = Math.min(n, o), a = new Array(n), l = 0; l < s; ++l)
645    for (var h = i[l], u = r[l], f = h.length, c = a[l] = new Array(f), p, m = 0; m < f; ++m)
646      (p = h[m] || u[m]) && (c[m] = p);
647  for (; l < n; ++l)
648    a[l] = i[l];
649  return new mt(a, this._parents);
650}
651function ic() {
652  for (var t = this._groups, e = -1, i = t.length; ++e < i; )
653    for (var r = t[e], n = r.length - 1, o = r[n], s; --n >= 0; )
654      (s = r[n]) && (o && s.compareDocumentPosition(o) ^ 4 && o.parentNode.insertBefore(s, o), o = s);
655  return this;
656}
657function rc(t) {
658  t || (t = nc);
659  function e(f, c) {
660    return f && c ? t(f.__data__, c.__data__) : !f - !c;
661  }
662  for (var i = this._groups, r = i.length, n = new Array(r), o = 0; o < r; ++o) {
663    for (var s = i[o], a = s.length, l = n[o] = new Array(a), h, u = 0; u < a; ++u)
664      (h = s[u]) && (l[u] = h);
665    l.sort(e);
666  }
667  return new mt(n, this._parents).order();
668}
669function nc(t, e) {
670  return t < e ? -1 : t > e ? 1 : t >= e ? 0 : NaN;
671}
672function oc() {
673  var t = arguments[0];
674  return arguments[0] = this, t.apply(null, arguments), this;
675}
676function sc() {
677  return Array.from(this);
678}
679function ac() {
680  for (var t = this._groups, e = 0, i = t.length; e < i; ++e)
681    for (var r = t[e], n = 0, o = r.length; n < o; ++n) {
682      var s = r[n];
683      if (s)
684        return s;
685    }
686  return null;
687}
688function lc() {
689  let t = 0;
690  for (const e of this)
691    ++t;
692  return t;
693}
694function hc() {
695  return !this.node();
696}
697function cc(t) {
698  for (var e = this._groups, i = 0, r = e.length; i < r; ++i)
699    for (var n = e[i], o = 0, s = n.length, a; o < s; ++o)
700      (a = n[o]) && t.call(a, a.__data__, o, n);
701  return this;
702}
703function uc(t) {
704  return function() {
705    this.removeAttribute(t);
706  };
707}
708function fc(t) {
709  return function() {
710    this.removeAttributeNS(t.space, t.local);
711  };
712}
713function dc(t, e) {
714  return function() {
715    this.setAttribute(t, e);
716  };
717}
718function pc(t, e) {
719  return function() {
720    this.setAttributeNS(t.space, t.local, e);
721  };
722}
723function gc(t, e) {
724  return function() {
725    var i = e.apply(this, arguments);
726    i == null ? this.removeAttribute(t) : this.setAttribute(t, i);
727  };
728}
729function mc(t, e) {
730  return function() {
731    var i = e.apply(this, arguments);
732    i == null ? this.removeAttributeNS(t.space, t.local) : this.setAttributeNS(t.space, t.local, i);
733  };
734}
735function yc(t, e) {
736  var i = gr(t);
737  if (arguments.length < 2) {
738    var r = this.node();
739    return i.local ? r.getAttributeNS(i.space, i.local) : r.getAttribute(i);
740  }
741  return this.each((e == null ? i.local ? fc : uc : typeof e == "function" ? i.local ? mc : gc : i.local ? pc : dc)(i, e));
742}
743function Zs(t) {
744  return t.ownerDocument && t.ownerDocument.defaultView || t.document && t || t.defaultView;
745}
746function _c(t) {
747  return function() {
748    this.style.removeProperty(t);
749  };
750}
751function Cc(t, e, i) {
752  return function() {
753    this.style.setProperty(t, e, i);
754  };
755}
756function xc(t, e, i) {
757  return function() {
758    var r = e.apply(this, arguments);
759    r == null ? this.style.removeProperty(t) : this.style.setProperty(t, r, i);
760  };
761}
762function bc(t, e, i) {
763  return arguments.length > 1 ? this.each((e == null ? _c : typeof e == "function" ? xc : Cc)(t, e, i ?? "")) : Le(this.node(), t);
764}
765function Le(t, e) {
766  return t.style.getPropertyValue(e) || Zs(t).getComputedStyle(t, null).getPropertyValue(e);
767}
768function Tc(t) {
769  return function() {
770    delete this[t];
771  };
772}
773function kc(t, e) {
774  return function() {
775    this[t] = e;
776  };
777}
778function Sc(t, e) {
779  return function() {
780    var i = e.apply(this, arguments);
781    i == null ? delete this[t] : this[t] = i;
782  };
783}
784function vc(t, e) {
785  return arguments.length > 1 ? this.each((e == null ? Tc : typeof e == "function" ? Sc : kc)(t, e)) : this.node()[t];
786}
787function Js(t) {
788  return t.trim().split(/^|\s+/);
789}
790function Bn(t) {
791  return t.classList || new Qs(t);
792}
793function Qs(t) {
794  this._node = t, this._names = Js(t.getAttribute("class") || "");
795}
796Qs.prototype = {
797  add: function(t) {
798    var e = this._names.indexOf(t);
799    e < 0 && (this._names.push(t), this._node.setAttribute("class", this._names.join(" ")));
800  },
801  remove: function(t) {
802    var e = this._names.indexOf(t);
803    e >= 0 && (this._names.splice(e, 1), this._node.setAttribute("class", this._names.join(" ")));
804  },
805  contains: function(t) {
806    return this._names.indexOf(t) >= 0;
807  }
808};
809function ta(t, e) {
810  for (var i = Bn(t), r = -1, n = e.length; ++r < n; )
811    i.add(e[r]);
812}
813function ea(t, e) {
814  for (var i = Bn(t), r = -1, n = e.length; ++r < n; )
815    i.remove(e[r]);
816}
817function wc(t) {
818  return function() {
819    ta(this, t);
820  };
821}
822function Bc(t) {
823  return function() {
824    ea(this, t);
825  };
826}
827function Fc(t, e) {
828  return function() {
829    (e.apply(this, arguments) ? ta : ea)(this, t);
830  };
831}
832function Ac(t, e) {
833  var i = Js(t + "");
834  if (arguments.length < 2) {
vendor: 4,440 bytes, lines 835-995
835    for (var r = Bn(this.node()), n = -1, o = i.length; ++n < o; )
836      if (!r.contains(i[n]))
837        return !1;
838    return !0;
839  }
840  return this.each((typeof e == "function" ? Fc : e ? wc : Bc)(i, e));
841}
842function Lc() {
843  this.textContent = "";
844}
845function Ec(t) {
846  return function() {
847    this.textContent = t;
848  };
849}
850function Mc(t) {
851  return function() {
852    var e = t.apply(this, arguments);
853    this.textContent = e ?? "";
854  };
855}
856function Oc(t) {
857  return arguments.length ? this.each(t == null ? Lc : (typeof t == "function" ? Mc : Ec)(t)) : this.node().textContent;
858}
859function $c() {
860  this.innerHTML = "";
861}
862function Ic(t) {
863  return function() {
864    this.innerHTML = t;
865  };
866}
867function Dc(t) {
868  return function() {
869    var e = t.apply(this, arguments);
870    this.innerHTML = e ?? "";
871  };
872}
873function Nc(t) {
874  return arguments.length ? this.each(t == null ? $c : (typeof t == "function" ? Dc : Ic)(t)) : this.node().innerHTML;
875}
876function Rc() {
877  this.nextSibling && this.parentNode.appendChild(this);
878}
879function Pc() {
880  return this.each(Rc);
881}
882function qc() {
883  this.previousSibling && this.parentNode.insertBefore(this, this.parentNode.firstChild);
884}
885function zc() {
886  return this.each(qc);
887}
888function Wc(t) {
889  var e = typeof t == "function" ? t : Ys(t);
890  return this.select(function() {
891    return this.appendChild(e.apply(this, arguments));
892  });
893}
894function Hc() {
895  return null;
896}
897function jc(t, e) {
898  var i = typeof t == "function" ? t : Ys(t), r = e == null ? Hc : typeof e == "function" ? e : wn(e);
899  return this.select(function() {
900    return this.insertBefore(i.apply(this, arguments), r.apply(this, arguments) || null);
901  });
902}
903function Uc() {
904  var t = this.parentNode;
905  t && t.removeChild(this);
906}
907function Yc() {
908  return this.each(Uc);
909}
910function Gc() {
911  var t = this.cloneNode(!1), e = this.parentNode;
912  return e ? e.insertBefore(t, this.nextSibling) : t;
913}
914function Vc() {
915  var t = this.cloneNode(!0), e = this.parentNode;
916  return e ? e.insertBefore(t, this.nextSibling) : t;
917}
918function Xc(t) {
919  return this.select(t ? Vc : Gc);
920}
921function Kc(t) {
922  return arguments.length ? this.property("__data__", t) : this.node().__data__;
923}
924function Zc(t) {
925  return function(e) {
926    t.call(this, e, this.__data__);
927  };
928}
929function Jc(t) {
930  return t.trim().split(/^|\s+/).map(function(e) {
931    var i = "", r = e.indexOf(".");
932    return r >= 0 && (i = e.slice(r + 1), e = e.slice(0, r)), { type: e, name: i };
933  });
934}
935function Qc(t) {
936  return function() {
937    var e = this.__on;
938    if (e) {
939      for (var i = 0, r = -1, n = e.length, o; i < n; ++i)
940        o = e[i], (!t.type || o.type === t.type) && o.name === t.name ? this.removeEventListener(o.type, o.listener, o.options) : e[++r] = o;
941      ++r ? e.length = r : delete this.__on;
942    }
943  };
944}
945function tu(t, e, i) {
946  return function() {
947    var r = this.__on, n, o = Zc(e);
948    if (r) {
949      for (var s = 0, a = r.length; s < a; ++s)
950        if ((n = r[s]).type === t.type && n.name === t.name) {
951          this.removeEventListener(n.type, n.listener, n.options), this.addEventListener(n.type, n.listener = o, n.options = i), n.value = e;
952          return;
953        }
954    }
955    this.addEventListener(t.type, o, i), n = { type: t.type, name: t.name, value: e, listener: o, options: i }, r ? r.push(n) : this.__on = [n];
956  };
957}
958function eu(t, e, i) {
959  var r = Jc(t + ""), n, o = r.length, s;
960  if (arguments.length < 2) {
961    var a = this.node().__on;
962    if (a) {
963      for (var l = 0, h = a.length, u; l < h; ++l)
964        for (n = 0, u = a[l]; n < o; ++n)
965          if ((s = r[n]).type === u.type && s.name === u.name)
966            return u.value;
967    }
968    return;
969  }
970  for (a = e ? tu : Qc, n = 0; n < o; ++n)
971    this.each(a(r[n], e, i));
972  return this;
973}
974function ia(t, e, i) {
975  var r = Zs(t), n = r.CustomEvent;
976  typeof n == "function" ? n = new n(e, i) : (n = r.document.createEvent("Event"), i ? (n.initEvent(e, i.bubbles, i.cancelable), n.detail = i.detail) : n.initEvent(e, !1, !1)), t.dispatchEvent(n);
977}
978function iu(t, e) {
979  return function() {
980    return ia(this, t, e);
981  };
982}
983function ru(t, e) {
984  return function() {
985    return ia(this, t, e.apply(this, arguments));
986  };
987}
988function nu(t, e) {
989  return this.each((typeof e == "function" ? ru : iu)(t, e));
990}
991function* ou() {
992  for (var t = this._groups, e = 0, i = t.length; e < i; ++e)
993    for (var r = t[e], n = 0, o = r.length, s; n < o; ++n)
994      (s = r[n]) && (yield s);
995}
996var ra = [null];
997function mt(t, e) {
998  this._groups = t, this._parents = e;
999}
1000function mi() {
1001  return new mt([[document.documentElement]], ra);
1002}
1003function su() {
1004  return this;
1005}
1006mt.prototype = mi.prototype = {
1007  constructor: mt,
1008  select: Mh,
1009  selectAll: Dh,
1010  selectChild: qh,
1011  selectChildren: jh,
1012  filter: Uh,
1013  data: Zh,
1014  enter: Yh,
1015  exit: Qh,
1016  join: tc,
1017  merge: ec,
1018  selection: su,
1019  order: ic,
1020  sort: rc,
1021  call: oc,
1022  nodes: sc,
1023  node: ac,
1024  size: lc,
1025  empty: hc,
1026  each: cc,
1027  attr: yc,
1028  style: bc,
1029  property: vc,
1030  classed: Ac,
1031  text: Oc,
1032  html: Nc,
1033  raise: Pc,
1034  lower: zc,
1035  append: Wc,
1036  insert: jc,
1037  remove: Yc,
1038  clone: Xc,
1039  datum: Kc,
1040  on: eu,
1041  dispatch: nu,
1042  [Symbol.iterator]: ou
1043};
1044function Tt(t) {
1045  return typeof t == "string" ? new mt([[document.querySelector(t)]], [document.documentElement]) : new mt([[t]], ra);
1046}
1047function Fn(t, e, i) {
1048  t.prototype = e.prototype = i, i.constructor = t;
1049}
1050function na(t, e) {
1051  var i = Object.create(t.prototype);
1052  for (var r in e)
1053    i[r] = e[r];
1054  return i;
1055}
1056function yi() {
1057}
1058var si = 0.7, Vi = 1 / si, Ae = "\\s*([+-]?\\d+)\\s*", ai = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*", It = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*", au = /^#([0-9a-f]{3,8})$/, lu = new RegExp(`^rgb\\(${Ae},${Ae},${Ae}\\)$`), hu = new RegExp(`^rgb\\(${It},${It},${It}\\)$`), cu = new RegExp(`^rgba\\(${Ae},${Ae},${Ae},${ai}\\)$`), uu = new RegExp(`^rgba\\(${It},${It},${It},${ai}\\)$`), fu = new RegExp(`^hsl\\(${ai},${It},${It}\\)$`), du = new RegExp(`^hsla\\(${ai},${It},${It},${ai}\\)$`), Ao = {
1059  aliceblue: 15792383,
1060  antiquewhite: 16444375,
1061  aqua: 65535,
1062  aquamarine: 8388564,
1063  azure: 15794175,
1064  beige: 16119260,
1065  bisque: 16770244,
1066  black: 0,
1067  blanchedalmond: 16772045,
1068  blue: 255,
1069  blueviolet: 9055202,
1070  brown: 10824234,
1071  burlywood: 14596231,
1072  cadetblue: 6266528,
1073  chartreuse: 8388352,
1074  chocolate: 13789470,
1075  coral: 16744272,
1076  cornflowerblue: 6591981,
1077  cornsilk: 16775388,
1078  crimson: 14423100,
1079  cyan: 65535,
1080  darkblue: 139,
1081  darkcyan: 35723,
1082  darkgoldenrod: 12092939,
1083  darkgray: 11119017,
1084  darkgreen: 25600,
1085  darkgrey: 11119017,
1086  darkkhaki: 12433259,
1087  darkmagenta: 9109643,
1088  darkolivegreen: 5597999,
1089  darkorange: 16747520,
1090  darkorchid: 10040012,
1091  darkred: 9109504,
1092  darksalmon: 15308410,
1093  darkseagreen: 9419919,
1094  darkslateblue: 4734347,
1095  darkslategray: 3100495,
1096  darkslategrey: 3100495,
1097  darkturquoise: 52945,
1098  darkviolet: 9699539,
1099  deeppink: 16716947,
1100  deepskyblue: 49151,
1101  dimgray: 6908265,
1102  dimgrey: 6908265,
1103  dodgerblue: 2003199,
1104  firebrick: 11674146,
1105  floralwhite: 16775920,
1106  forestgreen: 2263842,
1107  fuchsia: 16711935,
1108  gainsboro: 14474460,
1109  ghostwhite: 16316671,
1110  gold: 16766720,
1111  goldenrod: 14329120,
1112  gray: 8421504,
1113  green: 32768,
1114  greenyellow: 11403055,
1115  grey: 8421504,
1116  honeydew: 15794160,
1117  hotpink: 16738740,
1118  indianred: 13458524,
1119  indigo: 4915330,
1120  ivory: 16777200,
1121  khaki: 15787660,
1122  lavender: 15132410,
1123  lavenderblush: 16773365,
1124  lawngreen: 8190976,
1125  lemonchiffon: 16775885,
1126  lightblue: 11393254,
1127  lightcoral: 15761536,
1128  lightcyan: 14745599,
1129  lightgoldenrodyellow: 16448210,
1130  lightgray: 13882323,
1131  lightgreen: 9498256,
1132  lightgrey: 13882323,
1133  lightpink: 16758465,
1134  lightsalmon: 16752762,
1135  lightseagreen: 2142890,
1136  lightskyblue: 8900346,
1137  lightslategray: 7833753,
1138  lightslategrey: 7833753,
1139  lightsteelblue: 11584734,
1140  lightyellow: 16777184,
1141  lime: 65280,
1142  limegreen: 3329330,
1143  linen: 16445670,
1144  magenta: 16711935,
1145  maroon: 8388608,
1146  mediumaquamarine: 6737322,
1147  mediumblue: 205,
1148  mediumorchid: 12211667,
1149  mediumpurple: 9662683,
1150  mediumseagreen: 3978097,
1151  mediumslateblue: 8087790,
1152  mediumspringgreen: 64154,
1153  mediumturquoise: 4772300,
1154  mediumvioletred: 13047173,
1155  midnightblue: 1644912,
1156  mintcream: 16121850,
1157  mistyrose: 16770273,
1158  moccasin: 16770229,
1159  navajowhite: 16768685,
1160  navy: 128,
1161  oldlace: 16643558,
1162  olive: 8421376,
1163  olivedrab: 7048739,
1164  orange: 16753920,
1165  orangered: 16729344,
1166  orchid: 14315734,
1167  palegoldenrod: 15657130,
1168  palegreen: 10025880,
1169  paleturquoise: 11529966,
1170  palevioletred: 14381203,
1171  papayawhip: 16773077,
1172  peachpuff: 16767673,
1173  peru: 13468991,
1174  pink: 16761035,
1175  plum: 14524637,
1176  powderblue: 11591910,
1177  purple: 8388736,
1178  rebeccapurple: 6697881,
1179  red: 16711680,
1180  rosybrown: 12357519,
1181  royalblue: 4286945,
1182  saddlebrown: 9127187,
1183  salmon: 16416882,
1184  sandybrown: 16032864,
1185  seagreen: 3050327,
1186  seashell: 16774638,
1187  sienna: 10506797,
1188  silver: 12632256,
1189  skyblue: 8900331,
1190  slateblue: 6970061,
1191  slategray: 7372944,
1192  slategrey: 7372944,
1193  snow: 16775930,
1194  springgreen: 65407,
1195  steelblue: 4620980,
1196  tan: 13808780,
1197  teal: 32896,
1198  thistle: 14204888,
1199  tomato: 16737095,
1200  turquoise: 4251856,
1201  violet: 15631086,
1202  wheat: 16113331,
1203  white: 16777215,
1204  whitesmoke: 16119285,
1205  yellow: 16776960,
1206  yellowgreen: 10145074
1207};
1208Fn(yi, li, {
1209  copy(t) {
1210    return Object.assign(new this.constructor(), this, t);
1211  },
1212  displayable() {
1213    return this.rgb().displayable();
1214  },
1215  hex: Lo,
1216  // Deprecated! Use color.formatHex.
1217  formatHex: Lo,
1218  formatHex8: pu,
1219  formatHsl: gu,
1220  formatRgb: Eo,
1221  toString: Eo
1222});
1223function Lo() {
1224  return this.rgb().formatHex();
1225}
1226function pu() {
1227  return this.rgb().formatHex8();
1228}
1229function gu() {
1230  return oa(this).formatHsl();
1231}
1232function Eo() {
1233  return this.rgb().formatRgb();
1234}
1235function li(t) {
1236  var e, i;
1237  return t = (t + "").trim().toLowerCase(), (e = au.exec(t)) ? (i = e[1].length, e = parseInt(e[1], 16), i === 6 ? Mo(e) 
vendor: 10,930 bytes, lines 1237-1535
1237: i === 3 ? new pt(e >> 8 & 15 | e >> 4 & 240, e >> 4 & 15 | e & 240, (e & 15) << 4 | e & 15, 1) : i === 8 ? Bi(e >> 24 & 255, e >> 16 & 255, e >> 8 & 255, (e & 255) / 255) : i === 4 ? Bi(e >> 12 & 15 | e >> 8 & 240, e >> 8 & 15 | e >> 4 & 240, e >> 4 & 15 | e & 240, ((e & 15) << 4 | e & 15) / 255) : null) : (e = lu.exec(t)) ? new pt(e[1], e[2], e[3], 1) : (e = hu.exec(t)) ? new pt(e[1] * 255 / 100, e[2] * 255 / 100, e[3] * 255 / 100, 1) : (e = cu.exec(t)) ? Bi(e[1], e[2], e[3], e[4]) : (e = uu.exec(t)) ? Bi(e[1] * 255 / 100, e[2] * 255 / 100, e[3] * 255 / 100, e[4]) : (e = fu.exec(t)) ? Io(e[1], e[2] / 100, e[3] / 100, 1) : (e = du.exec(t)) ? Io(e[1], e[2] / 100, e[3] / 100, e[4]) : Ao.hasOwnProperty(t) ? Mo(Ao[t]) : t === "transparent" ? new pt(NaN, NaN, NaN, 0) : null;
1238}
1239function Mo(t) {
1240  return new pt(t >> 16 & 255, t >> 8 & 255, t & 255, 1);
1241}
1242function Bi(t, e, i, r) {
1243  return r <= 0 && (t = e = i = NaN), new pt(t, e, i, r);
1244}
1245function mu(t) {
1246  return t instanceof yi || (t = li(t)), t ? (t = t.rgb(), new pt(t.r, t.g, t.b, t.opacity)) : new pt();
1247}
1248function nn(t, e, i, r) {
1249  return arguments.length === 1 ? mu(t) : new pt(t, e, i, r ?? 1);
1250}
1251function pt(t, e, i, r) {
1252  this.r = +t, this.g = +e, this.b = +i, this.opacity = +r;
1253}
1254Fn(pt, nn, na(yi, {
1255  brighter(t) {
1256    return t = t == null ? Vi : Math.pow(Vi, t), new pt(this.r * t, this.g * t, this.b * t, this.opacity);
1257  },
1258  darker(t) {
1259    return t = t == null ? si : Math.pow(si, t), new pt(this.r * t, this.g * t, this.b * t, this.opacity);
1260  },
1261  rgb() {
1262    return this;
1263  },
1264  clamp() {
1265    return new pt(fe(this.r), fe(this.g), fe(this.b), Xi(this.opacity));
1266  },
1267  displayable() {
1268    return -0.5 <= this.r && this.r < 255.5 && -0.5 <= this.g && this.g < 255.5 && -0.5 <= this.b && this.b < 255.5 && 0 <= this.opacity && this.opacity <= 1;
1269  },
1270  hex: Oo,
1271  // Deprecated! Use color.formatHex.
1272  formatHex: Oo,
1273  formatHex8: yu,
1274  formatRgb: $o,
1275  toString: $o
1276}));
1277function Oo() {
1278  return `#${ue(this.r)}${ue(this.g)}${ue(this.b)}`;
1279}
1280function yu() {
1281  return `#${ue(this.r)}${ue(this.g)}${ue(this.b)}${ue((isNaN(this.opacity) ? 1 : this.opacity) * 255)}`;
1282}
1283function $o() {
1284  const t = Xi(this.opacity);
1285  return `${t === 1 ? "rgb(" : "rgba("}${fe(this.r)}, ${fe(this.g)}, ${fe(this.b)}${t === 1 ? ")" : `, ${t})`}`;
1286}
1287function Xi(t) {
1288  return isNaN(t) ? 1 : Math.max(0, Math.min(1, t));
1289}
1290function fe(t) {
1291  return Math.max(0, Math.min(255, Math.round(t) || 0));
1292}
1293function ue(t) {
1294  return t = fe(t), (t < 16 ? "0" : "") + t.toString(16);
1295}
1296function Io(t, e, i, r) {
1297  return r <= 0 ? t = e = i = NaN : i <= 0 || i >= 1 ? t = e = NaN : e <= 0 && (t = NaN), new Lt(t, e, i, r);
1298}
1299function oa(t) {
1300  if (t instanceof Lt)
1301    return new Lt(t.h, t.s, t.l, t.opacity);
1302  if (t instanceof yi || (t = li(t)), !t)
1303    return new Lt();
1304  if (t instanceof Lt)
1305    return t;
1306  t = t.rgb();
1307  var e = t.r / 255, i = t.g / 255, r = t.b / 255, n = Math.min(e, i, r), o = Math.max(e, i, r), s = NaN, a = o - n, l = (o + n) / 2;
1308  return a ? (e === o ? s = (i - r) / a + (i < r) * 6 : i === o ? s = (r - e) / a + 2 : s = (e - i) / a + 4, a /= l < 0.5 ? o + n : 2 - o - n, s *= 60) : a = l > 0 && l < 1 ? 0 : s, new Lt(s, a, l, t.opacity);
1309}
1310function _u(t, e, i, r) {
1311  return arguments.length === 1 ? oa(t) : new Lt(t, e, i, r ?? 1);
1312}
1313function Lt(t, e, i, r) {
1314  this.h = +t, this.s = +e, this.l = +i, this.opacity = +r;
1315}
1316Fn(Lt, _u, na(yi, {
1317  brighter(t) {
1318    return t = t == null ? Vi : Math.pow(Vi, t), new Lt(this.h, this.s, this.l * t, this.opacity);
1319  },
1320  darker(t) {
1321    return t = t == null ? si : Math.pow(si, t), new Lt(this.h, this.s, this.l * t, this.opacity);
1322  },
1323  rgb() {
1324    var t = this.h % 360 + (this.h < 0) * 360, e = isNaN(t) || isNaN(this.s) ? 0 : this.s, i = this.l, r = i + (i < 0.5 ? i : 1 - i) * e, n = 2 * i - r;
1325    return new pt(
1326      qr(t >= 240 ? t - 240 : t + 120, n, r),
1327      qr(t, n, r),
1328      qr(t < 120 ? t + 240 : t - 120, n, r),
1329      this.opacity
1330    );
1331  },
1332  clamp() {
1333    return new Lt(Do(this.h), Fi(this.s), Fi(this.l), Xi(this.opacity));
1334  },
1335  displayable() {
1336    return (0 <= this.s && this.s <= 1 || isNaN(this.s)) && 0 <= this.l && this.l <= 1 && 0 <= this.opacity && this.opacity <= 1;
1337  },
1338  formatHsl() {
1339    const t = Xi(this.opacity);
1340    return `${t === 1 ? "hsl(" : "hsla("}${Do(this.h)}, ${Fi(this.s) * 100}%, ${Fi(this.l) * 100}%${t === 1 ? ")" : `, ${t})`}`;
1341  }
1342}));
1343function Do(t) {
1344  return t = (t || 0) % 360, t < 0 ? t + 360 : t;
1345}
1346function Fi(t) {
1347  return Math.max(0, Math.min(1, t || 0));
1348}
1349function qr(t, e, i) {
1350  return (t < 60 ? e + (i - e) * t / 60 : t < 180 ? i : t < 240 ? e + (i - e) * (240 - t) / 60 : e) * 255;
1351}
1352const An = (t) => () => t;
1353function sa(t, e) {
1354  return function(i) {
1355    return t + i * e;
1356  };
1357}
1358function Cu(t, e, i) {
1359  return t = Math.pow(t, i), e = Math.pow(e, i) - t, i = 1 / i, function(r) {
1360    return Math.pow(t + r * e, i);
1361  };
1362}
1363function d1(t, e) {
1364  var i = e - t;
1365  return i ? sa(t, i > 180 || i < -180 ? i - 360 * Math.round(i / 360) : i) : An(isNaN(t) ? e : t);
1366}
1367function xu(t) {
1368  return (t = +t) == 1 ? aa : function(e, i) {
1369    return i - e ? Cu(e, i, t) : An(isNaN(e) ? i : e);
1370  };
1371}
1372function aa(t, e) {
1373  var i = e - t;
1374  return i ? sa(t, i) : An(isNaN(t) ? e : t);
1375}
1376const No = function t(e) {
1377  var i = xu(e);
1378  function r(n, o) {
1379    var s = i((n = nn(n)).r, (o = nn(o)).r), a = i(n.g, o.g), l = i(n.b, o.b), h = aa(n.opacity, o.opacity);
1380    return function(u) {
1381      return n.r = s(u), n.g = a(u), n.b = l(u), n.opacity = h(u), n + "";
1382    };
1383  }
1384  return r.gamma = t, r;
1385}(1);
1386function ie(t, e) {
1387  return t = +t, e = +e, function(i) {
1388    return t * (1 - i) + e * i;
1389  };
1390}
1391var on = /[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g, zr = new RegExp(on.source, "g");
1392function bu(t) {
1393  return function() {
1394    return t;
1395  };
1396}
1397function Tu(t) {
1398  return function(e) {
1399    return t(e) + "";
1400  };
1401}
1402function ku(t, e) {
1403  var i = on.lastIndex = zr.lastIndex = 0, r, n, o, s = -1, a = [], l = [];
1404  for (t = t + "", e = e + ""; (r = on.exec(t)) && (n = zr.exec(e)); )
1405    (o = n.index) > i && (o = e.slice(i, o), a[s] ? a[s] += o : a[++s] = o), (r = r[0]) === (n = n[0]) ? a[s] ? a[s] += n : a[++s] = n : (a[++s] = null, l.push({ i: s, x: ie(r, n) })), i = zr.lastIndex;
1406  return i < e.length && (o = e.slice(i), a[s] ? a[s] += o : a[++s] = o), a.length < 2 ? l[0] ? Tu(l[0].x) : bu(e) : (e = l.length, function(h) {
1407    for (var u = 0, f; u < e; ++u)
1408      a[(f = l[u]).i] = f.x(h);
1409    return a.join("");
1410  });
1411}
1412var Ro = 180 / Math.PI, sn = {
1413  translateX: 0,
1414  translateY: 0,
1415  rotate: 0,
1416  skewX: 0,
1417  scaleX: 1,
1418  scaleY: 1
1419};
1420function la(t, e, i, r, n, o) {
1421  var s, a, l;
1422  return (s = Math.sqrt(t * t + e * e)) && (t /= s, e /= s), (l = t * i + e * r) && (i -= t * l, r -= e * l), (a = Math.sqrt(i * i + r * r)) && (i /= a, r /= a, l /= a), t * r < e * i && (t = -t, e = -e, l = -l, s = -s), {
1423    translateX: n,
1424    translateY: o,
1425    rotate: Math.atan2(e, t) * Ro,
1426    skewX: Math.atan(l) * Ro,
1427    scaleX: s,
1428    scaleY: a
1429  };
1430}
1431var Ai;
1432function Su(t) {
1433  const e = new (typeof DOMMatrix == "function" ? DOMMatrix : WebKitCSSMatrix)(t + "");
1434  return e.isIdentity ? sn : la(e.a, e.b, e.c, e.d, e.e, e.f);
1435}
1436function vu(t) {
1437  return t == null || (Ai || (Ai = document.createElementNS("http://www.w3.org/2000/svg", "g")), Ai.setAttribute("transform", t), !(t = Ai.transform.baseVal.consolidate())) ? sn : (t = t.matrix, la(t.a, t.b, t.c, t.d, t.e, t.f));
1438}
1439function ha(t, e, i, r) {
1440  function n(h) {
1441    return h.length ? h.pop() + " " : "";
1442  }
1443  function o(h, u, f, c, p, m) {
1444    if (h !== f || u !== c) {
1445      var k = p.push("translate(", null, e, null, i);
1446      m.push({ i: k - 4, x: ie(h, f) }, { i: k - 2, x: ie(u, c) });
1447    } else
1448      (f || c) && p.push("translate(" + f + e + c + i);
1449  }
1450  function s(h, u, f, c) {
1451    h !== u ? (h - u > 180 ? u += 360 : u - h > 180 && (h += 360), c.push({ i: f.push(n(f) + "rotate(", null, r) - 2, x: ie(h, u) })) : u && f.push(n(f) + "rotate(" + u + r);
1452  }
1453  function a(h, u, f, c) {
1454    h !== u ? c.push({ i: f.push(n(f) + "skewX(", null, r) - 2, x: ie(h, u) }) : u && f.push(n(f) + "skewX(" + u + r);
1455  }
1456  function l(h, u, f, c, p, m) {
1457    if (h !== f || u !== c) {
1458      var k = p.push(n(p) + "scale(", null, ",", null, ")");
1459      m.push({ i: k - 4, x: ie(h, f) }, { i: k - 2, x: ie(u, c) });
1460    } else
1461      (f !== 1 || c !== 1) && p.push(n(p) + "scale(" + f + "," + c + ")");
1462  }
1463  return function(h, u) {
1464    var f = [], c = [];
1465    return h = t(h), u = t(u), o(h.translateX, h.translateY, u.translateX, u.translateY, f, c), s(h.rotate, u.rotate, f, c), a(h.skewX, u.skewX, f, c), l(h.scaleX, h.scaleY, u.scaleX, u.scaleY, f, c), h = u = null, function(p) {
1466      for (var m = -1, k = c.length, O; ++m < k; )
1467        f[(O = c[m]).i] = O.x(p);
1468      return f.join("");
1469    };
1470  };
1471}
1472var wu = ha(Su, "px, ", "px)", "deg)"), Bu = ha(vu, ", ", ")", ")"), Ee = 0, Ze = 0, je = 0, ca = 1e3, Ki, Je, Zi = 0, ge = 0, mr = 0, hi = typeof performance == "object" && performance.now ? performance : Date, ua = typeof window == "object" && window.requestAnimationFrame ? window.requestAnimationFrame.bind(window) : function(t) {
1473  setTimeout(t, 17);
1474};
1475function Ln() {
1476  return ge || (ua(Fu), ge = hi.now() + mr);
1477}
1478function Fu() {
1479  ge = 0;
1480}
1481function Ji() {
1482  this._call = this._time = this._next = null;
1483}
1484Ji.prototype = fa.prototype = {
1485  constructor: Ji,
1486  restart: function(t, e, i) {
1487    if (typeof t != "function")
1488      throw new TypeError("callback is not a function");
1489    i = (i == null ? Ln() : +i) + (e == null ? 0 : +e), !this._next && Je !== this && (Je ? Je._next = this : Ki = this, Je = this), this._call = t, this._time = i, an();
1490  },
1491  stop: function() {
1492    this._call && (this._call = null, this._time = 1 / 0, an());
1493  }
1494};
1495function fa(t, e, i) {
1496  var r = new Ji();
1497  return r.restart(t, e, i), r;
1498}
1499function Au() {
1500  Ln(), ++Ee;
1501  for (var t = Ki, e; t; )
1502    (e = ge - t._time) >= 0 && t._call.call(void 0, e), t = t._next;
1503  --Ee;
1504}
1505function Po() {
1506  ge = (Zi = hi.now()) + mr, Ee = Ze = 0;
1507  try {
1508    Au();
1509  } finally {
1510    Ee = 0, Eu(), ge = 0;
1511  }
1512}
1513function Lu() {
1514  var t = hi.now(), e = t - Zi;
1515  e > ca && (mr -= e, Zi = t);
1516}
1517function Eu() {
1518  for (var t, e = Ki, i, r = 1 / 0; e; )
1519    e._call ? (r > e._time && (r = e._time), t = e, e = e._next) : (i = e._next, e._next = null, e = t ? t._next = i : Ki = i);
1520  Je = t, an(r);
1521}
1522function an(t) {
1523  if (!Ee) {
1524    Ze && (Ze = clearTimeout(Ze));
1525    var e = t - ge;
1526    e > 24 ? (t < 1 / 0 && (Ze = setTimeout(Po, t - hi.now() - mr)), je && (je = clearInterval(je))) : (je || (Zi = hi.now(), je = setInterval(Lu, ca)), Ee = 1, ua(Po));
1527  }
1528}
1529function qo(t, e, i) {
1530  var r = new Ji();
1531  return e = e == null ? 0 : +e, r.restart((n) => {
1532    r.stop(), t(n + e);
1533  }, e, i), r;
1534}
1535var Mu = Us("start", "end", "cancel", "interrupt"), Ou = [], da = 0, zo = 1, ln = 2, Ni = 3, Wo = 4, hn 
vendor: 13,760 bytes, lines 1535-2030
1535= 5, Ri = 6;
1536function yr(t, e, i, r, n, o) {
1537  var s = t.__transition;
1538  if (!s)
1539    t.__transition = {};
1540  else if (i in s)
1541    return;
1542  $u(t, i, {
1543    name: e,
1544    index: r,
1545    // For context during callback.
1546    group: n,
1547    // For context during callback.
1548    on: Mu,
1549    tween: Ou,
1550    time: o.time,
1551    delay: o.delay,
1552    duration: o.duration,
1553    ease: o.ease,
1554    timer: null,
1555    state: da
1556  });
1557}
1558function En(t, e) {
1559  var i = Mt(t, e);
1560  if (i.state > da)
1561    throw new Error("too late; already scheduled");
1562  return i;
1563}
1564function Pt(t, e) {
1565  var i = Mt(t, e);
1566  if (i.state > Ni)
1567    throw new Error("too late; already running");
1568  return i;
1569}
1570function Mt(t, e) {
1571  var i = t.__transition;
1572  if (!i || !(i = i[e]))
1573    throw new Error("transition not found");
1574  return i;
1575}
1576function $u(t, e, i) {
1577  var r = t.__transition, n;
1578  r[e] = i, i.timer = fa(o, 0, i.time);
1579  function o(h) {
1580    i.state = zo, i.timer.restart(s, i.delay, i.time), i.delay <= h && s(h - i.delay);
1581  }
1582  function s(h) {
1583    var u, f, c, p;
1584    if (i.state !== zo)
1585      return l();
1586    for (u in r)
1587      if (p = r[u], p.name === i.name) {
1588        if (p.state === Ni)
1589          return qo(s);
1590        p.state === Wo ? (p.state = Ri, p.timer.stop(), p.on.call("interrupt", t, t.__data__, p.index, p.group), delete r[u]) : +u < e && (p.state = Ri, p.timer.stop(), p.on.call("cancel", t, t.__data__, p.index, p.group), delete r[u]);
1591      }
1592    if (qo(function() {
1593      i.state === Ni && (i.state = Wo, i.timer.restart(a, i.delay, i.time), a(h));
1594    }), i.state = ln, i.on.call("start", t, t.__data__, i.index, i.group), i.state === ln) {
1595      for (i.state = Ni, n = new Array(c = i.tween.length), u = 0, f = -1; u < c; ++u)
1596        (p = i.tween[u].value.call(t, t.__data__, i.index, i.group)) && (n[++f] = p);
1597      n.length = f + 1;
1598    }
1599  }
1600  function a(h) {
1601    for (var u = h < i.duration ? i.ease.call(null, h / i.duration) : (i.timer.restart(l), i.state = hn, 1), f = -1, c = n.length; ++f < c; )
1602      n[f].call(t, u);
1603    i.state === hn && (i.on.call("end", t, t.__data__, i.index, i.group), l());
1604  }
1605  function l() {
1606    i.state = Ri, i.timer.stop(), delete r[e];
1607    for (var h in r)
1608      return;
1609    delete t.__transition;
1610  }
1611}
1612function Iu(t, e) {
1613  var i = t.__transition, r, n, o = !0, s;
1614  if (i) {
1615    e = e == null ? null : e + "";
1616    for (s in i) {
1617      if ((r = i[s]).name !== e) {
1618        o = !1;
1619        continue;
1620      }
1621      n = r.state > ln && r.state < hn, r.state = Ri, r.timer.stop(), r.on.call(n ? "interrupt" : "cancel", t, t.__data__, r.index, r.group), delete i[s];
1622    }
1623    o && delete t.__transition;
1624  }
1625}
1626function Du(t) {
1627  return this.each(function() {
1628    Iu(this, t);
1629  });
1630}
1631function Nu(t, e) {
1632  var i, r;
1633  return function() {
1634    var n = Pt(this, t), o = n.tween;
1635    if (o !== i) {
1636      r = i = o;
1637      for (var s = 0, a = r.length; s < a; ++s)
1638        if (r[s].name === e) {
1639          r = r.slice(), r.splice(s, 1);
1640          break;
1641        }
1642    }
1643    n.tween = r;
1644  };
1645}
1646function Ru(t, e, i) {
1647  var r, n;
1648  if (typeof i != "function")
1649    throw new Error();
1650  return function() {
1651    var o = Pt(this, t), s = o.tween;
1652    if (s !== r) {
1653      n = (r = s).slice();
1654      for (var a = { name: e, value: i }, l = 0, h = n.length; l < h; ++l)
1655        if (n[l].name === e) {
1656          n[l] = a;
1657          break;
1658        }
1659      l === h && n.push(a);
1660    }
1661    o.tween = n;
1662  };
1663}
1664function Pu(t, e) {
1665  var i = this._id;
1666  if (t += "", arguments.length < 2) {
1667    for (var r = Mt(this.node(), i).tween, n = 0, o = r.length, s; n < o; ++n)
1668      if ((s = r[n]).name === t)
1669        return s.value;
1670    return null;
1671  }
1672  return this.each((e == null ? Nu : Ru)(i, t, e));
1673}
1674function Mn(t, e, i) {
1675  var r = t._id;
1676  return t.each(function() {
1677    var n = Pt(this, r);
1678    (n.value || (n.value = {}))[e] = i.apply(this, arguments);
1679  }), function(n) {
1680    return Mt(n, r).value[e];
1681  };
1682}
1683function pa(t, e) {
1684  var i;
1685  return (typeof e == "number" ? ie : e instanceof li ? No : (i = li(e)) ? (e = i, No) : ku)(t, e);
1686}
1687function qu(t) {
1688  return function() {
1689    this.removeAttribute(t);
1690  };
1691}
1692function zu(t) {
1693  return function() {
1694    this.removeAttributeNS(t.space, t.local);
1695  };
1696}
1697function Wu(t, e, i) {
1698  var r, n = i + "", o;
1699  return function() {
1700    var s = this.getAttribute(t);
1701    return s === n ? null : s === r ? o : o = e(r = s, i);
1702  };
1703}
1704function Hu(t, e, i) {
1705  var r, n = i + "", o;
1706  return function() {
1707    var s = this.getAttributeNS(t.space, t.local);
1708    return s === n ? null : s === r ? o : o = e(r = s, i);
1709  };
1710}
1711function ju(t, e, i) {
1712  var r, n, o;
1713  return function() {
1714    var s, a = i(this), l;
1715    return a == null ? void this.removeAttribute(t) : (s = this.getAttribute(t), l = a + "", s === l ? null : s === r && l === n ? o : (n = l, o = e(r = s, a)));
1716  };
1717}
1718function Uu(t, e, i) {
1719  var r, n, o;
1720  return function() {
1721    var s, a = i(this), l;
1722    return a == null ? void this.removeAttributeNS(t.space, t.local) : (s = this.getAttributeNS(t.space, t.local), l = a + "", s === l ? null : s === r && l === n ? o : (n = l, o = e(r = s, a)));
1723  };
1724}
1725function Yu(t, e) {
1726  var i = gr(t), r = i === "transform" ? Bu : pa;
1727  return this.attrTween(t, typeof e == "function" ? (i.local ? Uu : ju)(i, r, Mn(this, "attr." + t, e)) : e == null ? (i.local ? zu : qu)(i) : (i.local ? Hu : Wu)(i, r, e));
1728}
1729function Gu(t, e) {
1730  return function(i) {
1731    this.setAttribute(t, e.call(this, i));
1732  };
1733}
1734function Vu(t, e) {
1735  return function(i) {
1736    this.setAttributeNS(t.space, t.local, e.call(this, i));
1737  };
1738}
1739function Xu(t, e) {
1740  var i, r;
1741  function n() {
1742    var o = e.apply(this, arguments);
1743    return o !== r && (i = (r = o) && Vu(t, o)), i;
1744  }
1745  return n._value = e, n;
1746}
1747function Ku(t, e) {
1748  var i, r;
1749  function n() {
1750    var o = e.apply(this, arguments);
1751    return o !== r && (i = (r = o) && Gu(t, o)), i;
1752  }
1753  return n._value = e, n;
1754}
1755function Zu(t, e) {
1756  var i = "attr." + t;
1757  if (arguments.length < 2)
1758    return (i = this.tween(i)) && i._value;
1759  if (e == null)
1760    return this.tween(i, null);
1761  if (typeof e != "function")
1762    throw new Error();
1763  var r = gr(t);
1764  return this.tween(i, (r.local ? Xu : Ku)(r, e));
1765}
1766function Ju(t, e) {
1767  return function() {
1768    En(this, t).delay = +e.apply(this, arguments);
1769  };
1770}
1771function Qu(t, e) {
1772  return e = +e, function() {
1773    En(this, t).delay = e;
1774  };
1775}
1776function tf(t) {
1777  var e = this._id;
1778  return arguments.length ? this.each((typeof t == "function" ? Ju : Qu)(e, t)) : Mt(this.node(), e).delay;
1779}
1780function ef(t, e) {
1781  return function() {
1782    Pt(this, t).duration = +e.apply(this, arguments);
1783  };
1784}
1785function rf(t, e) {
1786  return e = +e, function() {
1787    Pt(this, t).duration = e;
1788  };
1789}
1790function nf(t) {
1791  var e = this._id;
1792  return arguments.length ? this.each((typeof t == "function" ? ef : rf)(e, t)) : Mt(this.node(), e).duration;
1793}
1794function of(t, e) {
1795  if (typeof e != "function")
1796    throw new Error();
1797  return function() {
1798    Pt(this, t).ease = e;
1799  };
1800}
1801function sf(t) {
1802  var e = this._id;
1803  return arguments.length ? this.each(of(e, t)) : Mt(this.node(), e).ease;
1804}
1805function af(t, e) {
1806  return function() {
1807    var i = e.apply(this, arguments);
1808    if (typeof i != "function")
1809      throw new Error();
1810    Pt(this, t).ease = i;
1811  };
1812}
1813function lf(t) {
1814  if (typeof t != "function")
1815    throw new Error();
1816  return this.each(af(this._id, t));
1817}
1818function hf(t) {
1819  typeof t != "function" && (t = Vs(t));
1820  for (var e = this._groups, i = e.length, r = new Array(i), n = 0; n < i; ++n)
1821    for (var o = e[n], s = o.length, a = r[n] = [], l, h = 0; h < s; ++h)
1822      (l = o[h]) && t.call(l, l.__data__, h, o) && a.push(l);
1823  return new Kt(r, this._parents, this._name, this._id);
1824}
1825function cf(t) {
1826  if (t._id !== this._id)
1827    throw new Error();
1828  for (var e = this._groups, i = t._groups, r = e.length, n = i.length, o = Math.min(r, n), s = new Array(r), a = 0; a < o; ++a)
1829    for (var l = e[a], h = i[a], u = l.length, f = s[a] = new Array(u), c, p = 0; p < u; ++p)
1830      (c = l[p] || h[p]) && (f[p] = c);
1831  for (; a < r; ++a)
1832    s[a] = e[a];
1833  return new Kt(s, this._parents, this._name, this._id);
1834}
1835function uf(t) {
1836  return (t + "").trim().split(/^|\s+/).every(function(e) {
1837    var i = e.indexOf(".");
1838    return i >= 0 && (e = e.slice(0, i)), !e || e === "start";
1839  });
1840}
1841function ff(t, e, i) {
1842  var r, n, o = uf(e) ? En : Pt;
1843  return function() {
1844    var s = o(this, t), a = s.on;
1845    a !== r && (n = (r = a).copy()).on(e, i), s.on = n;
1846  };
1847}
1848function df(t, e) {
1849  var i = this._id;
1850  return arguments.length < 2 ? Mt(this.node(), i).on.on(t) : this.each(ff(i, t, e));
1851}
1852function pf(t) {
1853  return function() {
1854    var e = this.parentNode;
1855    for (var i in this.__transition)
1856      if (+i !== t)
1857        return;
1858    e && e.removeChild(this);
1859  };
1860}
1861function gf() {
1862  return this.on("end.remove", pf(this._id));
1863}
1864function mf(t) {
1865  var e = this._name, i = this._id;
1866  typeof t != "function" && (t = wn(t));
1867  for (var r = this._groups, n = r.length, o = new Array(n), s = 0; s < n; ++s)
1868    for (var a = r[s], l = a.length, h = o[s] = new Array(l), u, f, c = 0; c < l; ++c)
1869      (u = a[c]) && (f = t.call(u, u.__data__, c, a)) && ("__data__" in u && (f.__data__ = u.__data__), h[c] = f, yr(h[c], e, i, c, h, Mt(u, i)));
1870  return new Kt(o, this._parents, e, i);
1871}
1872function yf(t) {
1873  var e = this._name, i = this._id;
1874  typeof t != "function" && (t = Gs(t));
1875  for (var r = this._groups, n = r.length, o = [], s = [], a = 0; a < n; ++a)
1876    for (var l = r[a], h = l.length, u, f = 0; f < h; ++f)
1877      if (u = l[f]) {
1878        for (var c = t.call(u, u.__data__, f, l), p, m = Mt(u, i), k = 0, O = c.length; k < O; ++k)
1879          (p = c[k]) && yr(p, e, i, k, c, m);
1880        o.push(c), s.push(u);
1881      }
1882  return new Kt(o, s, e, i);
1883}
1884var _f = mi.prototype.constructor;
1885function Cf() {
1886  return new _f(this._groups, this._parents);
1887}
1888function xf(t, e) {
1889  var i, r, n;
1890  return function() {
1891    var o = Le(this, t), s = (this.style.removeProperty(t), Le(this, t));
1892    return o === s ? null : o === i && s === r ? n : n = e(i = o, r = s);
1893  };
1894}
1895function ga(t) {
1896  return function() {
1897    this.style.removeProperty(t);
1898  };
1899}
1900function bf(t, e, i) {
1901  var r, n = i + "", o;
1902  return function() {
1903    var s = Le(this, t);
1904    return s === n ? null : s === r ? o : o = e(r = s, i);
1905  };
1906}
1907function Tf(t, e, i) {
1908  var r, n, o;
1909  return function() {
1910    var s = Le(this, t), a = i(this), l = a + "";
1911    return a == null && (l = a = (this.style.removeProperty(t), Le(this, t))), s === l ? null : s === r && l === n ? o : (n = l, o = e(r = s, a));
1912  };
1913}
1914function kf(t, e) {
1915  var i, r, n, o = "style." + e, s = "end." + o, a;
1916  return function() {
1917    var l = Pt(this, t), h = l.on, u = l.value[o] == null ? a || (a = ga(e)) : void 0;
1918    (h !== i || n !== u) && (r = (i = h).copy()).on(s, n = u), l.on = r;
1919  };
1920}
1921function Sf(t, e, i) {
1922  var r = (t += "") == "transform" ? wu : pa;
1923  return e == null ? this.styleTween(t, xf(t, r)).on("end.style." + t, ga(t)) : typeof e == "function" ? this.styleTween(t, Tf(t, r, Mn(this, "style." + t, e))).each(kf(this._id, t)) : this.styleTween(t, bf(t, r, e), i).on("end.style." + t, null);
1924}
1925function vf(t, e, i) {
1926  return function(r) {
1927    this.style.setProperty(t, e.call(this, r), i);
1928  };
1929}
1930function wf(t, e, i) {
1931  var r, n;
1932  function o() {
1933    var s = e.apply(this, arguments);
1934    return s !== n && (r = (n = s) && vf(t, s, i)), r;
1935  }
1936  return o._value = e, o;
1937}
1938function Bf(t, e, i) {
1939  var r = "style." + (t += "");
1940  if (arguments.length < 2)
1941    return (r = this.tween(r)) && r._value;
1942  if (e == null)
1943    return this.tween(r, null);
1944  if (typeof e != "function")
1945    throw new Error();
1946  return this.tween(r, wf(t, e, i ?? ""));
1947}
1948function Ff(t) {
1949  return function() {
1950    this.textContent = t;
1951  };
1952}
1953function Af(t) {
1954  return function() {
1955    var e = t(this);
1956    this.textContent = e ?? "";
1957  };
1958}
1959function Lf(t) {
1960  return this.tween("text", typeof t == "function" ? Af(Mn(this, "text", t)) : Ff(t == null ? "" : t + ""));
1961}
1962function Ef(t) {
1963  return function(e) {
1964    this.textContent = t.call(this, e);
1965  };
1966}
1967function Mf(t) {
1968  var e, i;
1969  function r() {
1970    var n = t.apply(this, arguments);
1971    return n !== i && (e = (i = n) && Ef(n)), e;
1972  }
1973  return r._value = t, r;
1974}
1975function Of(t) {
1976  var e = "text";
1977  if (arguments.length < 1)
1978    return (e = this.tween(e)) && e._value;
1979  if (t == null)
1980    return this.tween(e, null);
1981  if (typeof t != "function")
1982    throw new Error();
1983  return this.tween(e, Mf(t));
1984}
1985function $f() {
1986  for (var t = this._name, e = this._id, i = ma(), r = this._groups, n = r.length, o = 0; o < n; ++o)
1987    for (var s = r[o], a = s.length, l, h = 0; h < a; ++h)
1988      if (l = s[h]) {
1989        var u = Mt(l, e);
1990        yr(l, t, i, h, s, {
1991          time: u.time + u.delay + u.duration,
1992          delay: 0,
1993          duration: u.duration,
1994          ease: u.ease
1995        });
1996      }
1997  return new Kt(r, this._parents, t, i);
1998}
1999function If() {
2000  var t, e, i = this, r = i._id, n = i.size();
2001  return new Promise(function(o, s) {
2002    var a = { value: s }, l = { value: function() {
2003      --n === 0 && o();
2004    } };
2005    i.each(function() {
2006      var h = Pt(this, r), u = h.on;
2007      u !== t && (e = (t = u).copy(), e._.cancel.push(a), e._.interrupt.push(a), e._.end.push(l)), h.on = e;
2008    }), n === 0 && o();
2009  });
2010}
2011var Df = 0;
2012function Kt(t, e, i, r) {
2013  this._groups = t, this._parents = e, this._name = i, this._id = r;
2014}
2015function ma() {
2016  return ++Df;
2017}
2018var Ut = mi.prototype;
2019Kt.prototype = {
2020  constructor: Kt,
2021  select: mf,
2022  selectAll: yf,
2023  selectChild: Ut.selectChild,
2024  selectChildren: Ut.selectChildren,
2025  filter: hf,
2026  merge: cf,
2027  selection: Cf,
2028  transition: $f,
2029  call: Ut.call,
2030  nodes: Ut.nodes,
2031  node: Ut.node,
2032  size: Ut.size,
2033  empty: Ut.empty,
2034  each: Ut.each,
2035  on: df,
2036  attr: Yu,
2037  attrTween: Zu,
2038  style: Sf,
2039  styleTween: Bf,
2040  text: Lf,
2041  textTween: Of,
2042  remove: gf,
2043  tween: Pu,
2044  delay: tf,
2045  duration: nf,
2046  ease: sf,
2047  easeVarying: lf,
2048  end: If,
2049  [Symbol.iterator]: Ut[Symbol.iterator]
2050};
2051function Nf(t) {
2052  return ((t *= 2) <= 1 ? t * t * t : (t -= 2) * t * t + 2) / 2;
2053}
2054var Rf = {
2055  time: null,
2056  // Set on use.
2057  delay: 0,
2058  duration: 250,
2059  ease: Nf
2060};
2061function Pf(t, e) {
2062  for (var i; !(i = t.__transition) || !(i = i[e]); )
2063    if (!(t = t.parentNode))
2064      throw new Error(`transition ${e} not found`);
2065  return i;
2066}
2067function qf(t) {
2068  var e, i;
2069  t instanceof Kt ? (e = t._id, t = t._name) : (e = ma(), (i = Rf).time = Ln(), t = t == null ? null : t + "");
2070  for (var r = this._groups, n = r.length, o = 0; o < n; ++o)
2071    for (var s = r[o], a = s.length, l, h = 0; h < a; ++h)
2072      (l = s[h]) && yr(l, t, e, h, s, i || Pf(l, e));
2073  return new Kt(r, this._parents, t, e);
2074}
2075mi.prototype.interrupt = Du;
2076mi.prototype.transition = qf;
2077const p1 = Math.abs, g1 = Math.atan2, m1 = Math.cos, y1 = Math.max, _1 = Math.min, C1 = Math.sin, x1 = Math.sqrt, Ho = 1e-12, On = Math.PI, jo = On / 2, b1 = 2 * On;
2078function T1(t) {
2079  return t > 1 ? 0 : t < -1 ? On : Math.acos(t);
2080}
2081function k1(t) {
2082  return t >= 1 ? jo : t <= -1 ? -jo : Math.asin(t);
2083}
2084function ya(t) {
2085  this._context = t;
2086}
2087ya.prototype = {
2088  areaStart: function() {
2089    this._line = 0;
2090  },
2091  areaEnd: function() {
2092    this._line = NaN;
2093  },
2094  lineStart: function() {
2095    this._point = 0;
2096  },
2097  lineEnd: function() {
2098    (this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line;
2099  },
2100  point: function(t, e) {
2101    switch (t = +t, e = +e, this._point) {
2102      case 0:
2103        this._point = 1, this._line ? this._context.lineTo(t, e) : this._context.moveTo(t, e);
2104        break;
2105      case 1:
2106        this._point = 2;
2107      default:
2108        this._context.lineTo(t, e);
2109        break;
2110    }
2111  }
2112};
2113function zf(t) {
2114  return new ya(t);
2115}
2116class _a {
2117  constructor(e, i) {
2118    this._context = e, this._x = i;
2119  }
2120  areaStart() {
2121    this._line = 0;
2122  }
2123  areaEnd() {
2124    this._line = NaN;
2125  }
2126  lineStart() {
2127    this._point = 0;
2128  }
2129  lineEnd() {
2130    (this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line;
2131  }
2132  point(e, i) {
2133    switch (e = +e, i = +i, this._point) {
2134      case 0: {
2135        this._point = 1, this._line ? this._context.lineTo(e, i) : this._context.moveTo(e, i);
2136        break;
2137      }
2138      case 1:
2139        this._point = 2;
2140      default: {
2141        this._x ? this._context.bezierCurveTo(this._x0 = (this._x0 + e) / 2, this._y0, this._x0, i, e, i) : this._context.bezierCurveTo(this._x0, this._y0 = (this._y0 + i) / 2, e, this._y0, e, i);
2142        break;
2143      }
2144    }
2145    this._x0 = e, this._y0 = i;
2146  }
2147}
2148function Wf(t) {
2149  return new _a(t, !0);
2150}
2151function Hf(t) {
2152  return new _a(t, !1);
2153}
2154function ne() {
2155}
2156function Qi(t, e, i) {
2157  t._context.bezierCurveTo(
2158    (2 * t._x0 + t._x1) / 3,
2159    (2 * t._y0 + t._y1) / 3,
2160    (t._x0 + 2 * t._x1) / 3,
2161    (t._y0 + 2 * t._y1) / 3,
2162    (t._x0 + 4 * t._x1 + e) / 6,
2163    (t._y0 + 4 * t._y1 + i) / 6
2164  );
2165}
2166function _r(t) {
2167  this._context = t;
2168}
2169_r.prototype = {
2170  areaStart: function() {
2171    this._line = 0;
2172  },
2173  areaEnd: function() {
2174    this._line = NaN;
2175  },
2176  lineStart: function() {
2177    this._x0 = this._x1 = this._y0 = this._y1 = NaN, this._point = 0;
2178  },
2179  lineEnd: function() {
2180    switch (this._point) {
2181      case 3:
2182        Qi(this, this._x1, this._y1);
2183      case 2:
2184        this._context.lineTo(this._x1, this._y1);
2185        break;
2186    }
2187    (this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line;
2188  },
2189  point: function(t, e) {
2190    switch (t = +t, e = +e, this._point) {
2191      case 0:
2192        this._point = 1, this._line ? this._context.lineTo(t, e) : this._context.moveTo(t, e);
2193        break;
2194      case 1:
2195        this._point = 2;
2196        break;
2197      case 2:
2198        this._point = 3, this._context.lineTo((5 * this._x0 + this._x1) / 6, (5 * this._y0 + this._y1) / 6);
2199      default:
2200        Qi(this, t, e);
2201        break;
2202    }
2203    this._x0 = this._x1, this._x1 = t, this._y0 = this._y1, this._y1 = e;
2204  }
2205};
2206function jf(t) {
2207  return new _r(t);
2208}
2209function Ca(t) {
2210  this._context = t;
2211}
2212Ca.prototype = {
2213  areaStart: ne,
2214  areaEnd: ne,
2215  lineStart: function() {
2216    this._x0 = this._x1 = this._x2 = this._x3 = this._x4 = this._y0 = this._y1 = this._y2 = this._y3 = this._y4 = NaN, this._point = 0;
2217  },
2218  lineEnd: function() {
2219    switch (this._point) {
2220      case 1: {
2221        this._context.moveTo(this._x2, this._y2), this._context.closePath();
2222        break;
2223      }
2224      case 2: {
2225        this._context.moveTo((this._x2 + 2 * this._x3) / 3, (this._y2 + 2 * this._y3) / 3), this._context.lineTo((this._x3 + 2 * this._x2) / 3, (this._y3 + 2 * this._y2) / 3), this._context.closePath();
2226        break;
2227      }
2228      case 3: {
2229        this.point(this._x2, this._y2), this.point(this._x3, this._y3), this.point(this._x4, this._y4);
2230        break;
2231      }
2232    }
2233  },
2234  point: function(t, e) {
2235    switch (t = +t, e = +e, this._point) {
2236      case 0:
2237        this._point = 1, this._x2 = t, this._y2 = e;
2238        break;
2239      case 1:
2240        this._point = 2, this._x3 = t, this._y3 = e;
2241        break;
2242      case 2:
2243        this._point = 3, this._x4 = t, this._y4 = e, this._context.moveTo((this._x0 + 4 * this._x1 + t) / 6, (this._y0 + 4 * this._y1 + e) / 6);
2244        break;
2245      default:
2246        Qi(this, t, e);
2247        break;
2248    }
2249    this._x0 = this._x1, this._x1 = t, this._y0 = this._y1, this._y1 = e;
2250  }
2251};
2252function Uf(t) {
2253  return new Ca(t);
2254}
2255function xa(t) {
2256  this._context = t;
2257}
2258xa.prototype = {
2259  areaStart: function() {
2260    this._line = 0;
2261  },
2262  areaEnd: function() {
2263    this._line = NaN;
2264  },
2265  lineStart: function() {
2266    this._x0 = this._x1 = this._y0 = this._y1 = NaN, this._point = 0;
2267  },
2268  lineEnd: function() {
2269    (this._line || this._line !== 0 && this._point === 3) && this._context.closePath(), this._line = 1 - this._line;
2270  },
2271  point: function(t, e) {
2272    switch (t = +t, e = +e, this._point) {
2273      case 0:
2274        this._point = 1;
2275        break;
2276      case 1:
2277        this._point = 2;
2278        break;
2279      case 2:
2280        this._point = 3;
2281        var i = (this._x0 + 4 * this._x1 + t) / 6, r = (this._y0 + 4 * this._y1 + e) / 6;
2282        this._line ? this._context.lineTo(i, r) : this._context.moveTo(i, r);
2283        break;
2284      case 3:
2285        this._point = 4;
2286      default:
2287        Qi(this, t, e);
2288        break;
2289    }
2290    this._x0 = this._x1, this._x1 = t, this._y0 = this._y1, this._y1 = e;
2291  }
2292};
2293function Yf(t) {
2294  return new xa(t);
2295}
2296function ba(t, e) {
2297  this._basis = new _r(t), this._beta = e;
2298}
2299ba.prototype = {
2300  lineStart: function() {
2301    this._x = [], this._y = [], this._basis.lineStart();
2302  },
2303  lineEnd: function() {
2304    var t = this._x, e = this._y, i = t.length - 1;
2305    if (i > 0)
2306      for (var r = t[0], n = e[0], o = t[i] - r, s = e[i] - n, a = -1, l; ++a <= i; )
2307        l = a / i, this._basis.point(
2308          this._beta * t[a] + (1 - this._beta) * (r + l * o),
2309          this._beta * e[a] + (1 - this._beta) * (n + l * s)
2310        );
2311    this._x = this._y = null, this._basis.lineEnd();
2312  },
2313  point: function(t, e) {
2314    this._x.push(+t), this._y.push(+e);
2315  }
2316};
2317const Gf = function t(e) {
2318  function i(r) {
2319    return e === 1 ? new _r(r) : new ba(r, e);
2320  }
2321  return i.beta = function(r) {
2322    return t(+r);
2323  }, i;
2324}(0.85);
2325function tr(t, e, i) {
2326  t._context.bezierCurveTo(
2327    t._x1 + t._k * (t._x2 - t._x0),
2328    t._y1 + t._k * (t._y2 - t._y0),
2329    t._x2 + t._k * (t._x1 - e),
2330    t._y2 + t._k * (t._y1 - i),
2331    t._x2,
2332    t._y2
2333  );
2334}
2335function $n(t, e) {
2336  this._context = t, this._k = (1 - e) / 6;
2337}
2338$n.prototype = {
2339  areaStart: function() {
2340    this._line = 0;
2341  },
2342  areaEnd: function() {
2343    this._line = NaN;
2344  },
2345  lineStart: function() {
2346    this._x0 = this._x1 = this._x2 = this._y0 = this._y1 = this._y2 = NaN, this._point = 0;
2347  },
2348  lineEnd: function() {
2349    switch (this._point) {
2350      case 2:
2351        this._context.lineTo(this._x2, this._y2);
2352        break;
2353      case 3:
2354        tr(this, this._x1, this._y1);
2355        break;
2356    }
2357    (this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line;
2358  },
2359  point: function(t, e) {
2360    switch (t = +t, e = +e, this._point) {
2361      case 0:
2362        this._point = 1, this._line ? this._context.lineTo(t, e) : this._context.moveTo(t, e);
2363        break;
2364      case 1:
2365        this._point = 2, this._x1 = t, this._y1 = e;
2366        break;
2367      case 2:
2368        this._point = 3;
2369      default:
2370        tr(this, t, e);
2371        break;
2372    }
2373    this._x0 = this._x1, this._x1 = this._x2, this._x2 = t, this._y0 = this._y1, this._y1 = this._y2, this._y2 = e;
2374  }
2375};
2376const Vf = function t(e) {
2377  function i(r) {
2378    return new $n(r, e);
2379  }
2380  return i.tension = function(r) {
2381    return t(+r);
2382  }, i;
2383}(0);
2384function In(t, e) {
2385  this._context = t, this._k = (1 - e) / 6;
2386}
2387In.prototype = {
2388  areaStart: ne,
2389  areaEnd: ne,
2390  lineStart: function() {
2391    this._x0 = this._x1 = this._x2 = this._x3 = this._x4 = this._x5 = this._y0 = this._y1 = this._y2 = this._y3 = this._y4 = this._y5 = NaN, this._point = 0;
2392  },
2393  lineEnd: function() {
2394    switch (this._point) {
2395      case 1: {
2396        this._context.moveTo(this._x3, this._y3), this._context.closePath();
2397        break;
2398      }
2399      case 2: {
2400        this._context.lineTo(this._x3, this._y3), this._context.closePath();
2401        break;
2402      }
2403      case 3: {
2404        this.point(this._x3, this._y3), this.point(this._x4, this._y4), this.point(this._x5, this._y5);
2405        break;
2406      }
2407    }
2408  },
2409  point: function(t, e) {
2410    switch (t = +t, e = +e, this._point) {
2411      case 0:
2412        this._point = 1, this._x3 = t, this._y3 = e;
2413        break;
2414      case 1:
2415        this._point = 2, this._context.moveTo(this._x4 = t, this._y4 = e);
2416        break;
2417      case 2:
2418        this._point = 3, this._x5 = t, this._y5 = e;
2419        break;
2420      default:
2421        tr(this, t, e);
2422        break;
2423    }
2424    this._x0 = this._x1, this._x1 = this._x2, this._x2 = t, this._y0 = this._y1, this._y1 = this._y2, this._y2 = e;
2425  }
2426};
2427const Xf = function t(e) {
2428  function i(r) {
2429    return new In(r, e);
2430  }
2431  return i.tension = function(r) {
2432    return t(+r);
2433  }, i;
2434}(0);
2435function Dn(t, e) {
2436  this._context = t, this._k = (1 - e) / 6;
2437}
2438Dn.prototype = {
2439  areaStart: function() {
2440    this._line = 0;
2441  },
2442  areaEnd: function() {
2443    this._line = NaN;
2444  },
2445  lineStart: function() {
2446    this._x0 = this._x1 = this._x2 = this._y0 = this._y1 = this._y2 = NaN, this._point = 0;
2447  },
2448  lineEnd: function() {
2449    (this._line || this._line !== 0 && this._point === 3) && this._context.closePath(), this._line = 1 - this._line;
2450  },
2451  point: function(t, e) {
2452    switch (t = +t, e = +e, this._point) {
2453      case 0:
2454        this._point = 1;
2455        break;
2456      case 1:
2457        this._point = 2;
2458        break;
2459      case 2:
2460        this._point = 3, this._line ? this._context.lineTo(this._x2, this._y2) : this._context.moveTo(this._x2, this._y2);
2461        break;
2462      case 3:
2463        this._point = 4;
2464      default:
2465        tr(this, t, e);
2466        break;
2467    }
2468    this._x0 = this._x1, this._x1 = this._x2, this._x2 = t, this._y0 = this._y1, this._y1 = this._y2, this._y2 = e;
2469  }
2470};
2471const Kf = function t(e) {
2472  function i(r) {
2473    return new Dn(r, e);
2474  }
2475  return i.tension = function(r) {
2476    return t(+r);
2477  }, i;
2478}(0);
2479function Nn(t, e, i) {
2480  var r = t._x1, n = t._y1, o = t._x2, s = t._y2;
2481  if (t._l01_a > Ho) {
2482    var a = 2 * t._l01_2a + 3 * t._l01_a * t._l12_a + t._l12_2a, l = 3 * t._l01_a * (t._l01_a + t._l12_a);
2483    r = (r * a - t._x0 * t._l12_2a + t._x2 * t._l01_2a) / l, n = (n * a - t._y0 * t._l12_2a + t._y2 * t._l01_2a) / l;
2484  }
2485  if (t._l23_a > Ho) {
2486    var h = 2 * t._l23_2a + 3 * t._l23_a * t._l12_a + t._l12_2a, u = 3 * t._l23_a * (t._l23_a + t._l12_a);
2487    o = (o * h + t._x1 * t._l23_2a - e * t._l12_2a) / u, s = (s * h + t._y1 * t._l23_2a - i * t._l12_2a) / u;
2488  }
vendor: 4,567 bytes, lines 2489-2635
2489  t._context.bezierCurveTo(r, n, o, s, t._x2, t._y2);
2490}
2491function Ta(t, e) {
2492  this._context = t, this._alpha = e;
2493}
2494Ta.prototype = {
2495  areaStart: function() {
2496    this._line = 0;
2497  },
2498  areaEnd: function() {
2499    this._line = NaN;
2500  },
2501  lineStart: function() {
2502    this._x0 = this._x1 = this._x2 = this._y0 = this._y1 = this._y2 = NaN, this._l01_a = this._l12_a = this._l23_a = this._l01_2a = this._l12_2a = this._l23_2a = this._point = 0;
2503  },
2504  lineEnd: function() {
2505    switch (this._point) {
2506      case 2:
2507        this._context.lineTo(this._x2, this._y2);
2508        break;
2509      case 3:
2510        this.point(this._x2, this._y2);
2511        break;
2512    }
2513    (this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line;
2514  },
2515  point: function(t, e) {
2516    if (t = +t, e = +e, this._point) {
2517      var i = this._x2 - t, r = this._y2 - e;
2518      this._l23_a = Math.sqrt(this._l23_2a = Math.pow(i * i + r * r, this._alpha));
2519    }
2520    switch (this._point) {
2521      case 0:
2522        this._point = 1, this._line ? this._context.lineTo(t, e) : this._context.moveTo(t, e);
2523        break;
2524      case 1:
2525        this._point = 2;
2526        break;
2527      case 2:
2528        this._point = 3;
2529      default:
2530        Nn(this, t, e);
2531        break;
2532    }
2533    this._l01_a = this._l12_a, this._l12_a = this._l23_a, this._l01_2a = this._l12_2a, this._l12_2a = this._l23_2a, this._x0 = this._x1, this._x1 = this._x2, this._x2 = t, this._y0 = this._y1, this._y1 = this._y2, this._y2 = e;
2534  }
2535};
2536const Zf = function t(e) {
2537  function i(r) {
2538    return e ? new Ta(r, e) : new $n(r, 0);
2539  }
2540  return i.alpha = function(r) {
2541    return t(+r);
2542  }, i;
2543}(0.5);
2544function ka(t, e) {
2545  this._context = t, this._alpha = e;
2546}
2547ka.prototype = {
2548  areaStart: ne,
2549  areaEnd: ne,
2550  lineStart: function() {
2551    this._x0 = this._x1 = this._x2 = this._x3 = this._x4 = this._x5 = this._y0 = this._y1 = this._y2 = this._y3 = this._y4 = this._y5 = NaN, this._l01_a = this._l12_a = this._l23_a = this._l01_2a = this._l12_2a = this._l23_2a = this._point = 0;
2552  },
2553  lineEnd: function() {
2554    switch (this._point) {
2555      case 1: {
2556        this._context.moveTo(this._x3, this._y3), this._context.closePath();
2557        break;
2558      }
2559      case 2: {
2560        this._context.lineTo(this._x3, this._y3), this._context.closePath();
2561        break;
2562      }
2563      case 3: {
2564        this.point(this._x3, this._y3), this.point(this._x4, this._y4), this.point(this._x5, this._y5);
2565        break;
2566      }
2567    }
2568  },
2569  point: function(t, e) {
2570    if (t = +t, e = +e, this._point) {
2571      var i = this._x2 - t, r = this._y2 - e;
2572      this._l23_a = Math.sqrt(this._l23_2a = Math.pow(i * i + r * r, this._alpha));
2573    }
2574    switch (this._point) {
2575      case 0:
2576        this._point = 1, this._x3 = t, this._y3 = e;
2577        break;
2578      case 1:
2579        this._point = 2, this._context.moveTo(this._x4 = t, this._y4 = e);
2580        break;
2581      case 2:
2582        this._point = 3, this._x5 = t, this._y5 = e;
2583        break;
2584      default:
2585        Nn(this, t, e);
2586        break;
2587    }
2588    this._l01_a = this._l12_a, this._l12_a = this._l23_a, this._l01_2a = this._l12_2a, this._l12_2a = this._l23_2a, this._x0 = this._x1, this._x1 = this._x2, this._x2 = t, this._y0 = this._y1, this._y1 = this._y2, this._y2 = e;
2589  }
2590};
2591const Jf = function t(e) {
2592  function i(r) {
2593    return e ? new ka(r, e) : new In(r, 0);
2594  }
2595  return i.alpha = function(r) {
2596    return t(+r);
2597  }, i;
2598}(0.5);
2599function Sa(t, e) {
2600  this._context = t, this._alpha = e;
2601}
2602Sa.prototype = {
2603  areaStart: function() {
2604    this._line = 0;
2605  },
2606  areaEnd: function() {
2607    this._line = NaN;
2608  },
2609  lineStart: function() {
2610    this._x0 = this._x1 = this._x2 = this._y0 = this._y1 = this._y2 = NaN, this._l01_a = this._l12_a = this._l23_a = this._l01_2a = this._l12_2a = this._l23_2a = this._point = 0;
2611  },
2612  lineEnd: function() {
2613    (this._line || this._line !== 0 && this._point === 3) && this._context.closePath(), this._line = 1 - this._line;
2614  },
2615  point: function(t, e) {
2616    if (t = +t, e = +e, this._point) {
2617      var i = this._x2 - t, r = this._y2 - e;
2618      this._l23_a = Math.sqrt(this._l23_2a = Math.pow(i * i + r * r, this._alpha));
2619    }
2620    switch (this._point) {
2621      case 0:
2622        this._point = 1;
2623        break;
2624      case 1:
2625        this._point = 2;
2626        break;
2627      case 2:
2628        this._point = 3, this._line ? this._context.lineTo(this._x2, this._y2) : this._context.moveTo(this._x2, this._y2);
2629        break;
2630      case 3:
2631        this._point = 4;
2632      default:
2633        Nn(this, t, e);
2634        break;
2635    }
vendor: 5,739 bytes, lines 2636-2832
2636    this._l01_a = this._l12_a, this._l12_a = this._l23_a, this._l01_2a = this._l12_2a, this._l12_2a = this._l23_2a, this._x0 = this._x1, this._x1 = this._x2, this._x2 = t, this._y0 = this._y1, this._y1 = this._y2, this._y2 = e;
2637  }
2638};
2639const Qf = function t(e) {
2640  function i(r) {
2641    return e ? new Sa(r, e) : new Dn(r, 0);
2642  }
2643  return i.alpha = function(r) {
2644    return t(+r);
2645  }, i;
2646}(0.5);
2647function va(t) {
2648  this._context = t;
2649}
2650va.prototype = {
2651  areaStart: ne,
2652  areaEnd: ne,
2653  lineStart: function() {
2654    this._point = 0;
2655  },
2656  lineEnd: function() {
2657    this._point && this._context.closePath();
2658  },
2659  point: function(t, e) {
2660    t = +t, e = +e, this._point ? this._context.lineTo(t, e) : (this._point = 1, this._context.moveTo(t, e));
2661  }
2662};
2663function td(t) {
2664  return new va(t);
2665}
2666function Uo(t) {
2667  return t < 0 ? -1 : 1;
2668}
2669function Yo(t, e, i) {
2670  var r = t._x1 - t._x0, n = e - t._x1, o = (t._y1 - t._y0) / (r || n < 0 && -0), s = (i - t._y1) / (n || r < 0 && -0), a = (o * n + s * r) / (r + n);
2671  return (Uo(o) + Uo(s)) * Math.min(Math.abs(o), Math.abs(s), 0.5 * Math.abs(a)) || 0;
2672}
2673function Go(t, e) {
2674  var i = t._x1 - t._x0;
2675  return i ? (3 * (t._y1 - t._y0) / i - e) / 2 : e;
2676}
2677function Wr(t, e, i) {
2678  var r = t._x0, n = t._y0, o = t._x1, s = t._y1, a = (o - r) / 3;
2679  t._context.bezierCurveTo(r + a, n + a * e, o - a, s - a * i, o, s);
2680}
2681function er(t) {
2682  this._context = t;
2683}
2684er.prototype = {
2685  areaStart: function() {
2686    this._line = 0;
2687  },
2688  areaEnd: function() {
2689    this._line = NaN;
2690  },
2691  lineStart: function() {
2692    this._x0 = this._x1 = this._y0 = this._y1 = this._t0 = NaN, this._point = 0;
2693  },
2694  lineEnd: function() {
2695    switch (this._point) {
2696      case 2:
2697        this._context.lineTo(this._x1, this._y1);
2698        break;
2699      case 3:
2700        Wr(this, this._t0, Go(this, this._t0));
2701        break;
2702    }
2703    (this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line;
2704  },
2705  point: function(t, e) {
2706    var i = NaN;
2707    if (t = +t, e = +e, !(t === this._x1 && e === this._y1)) {
2708      switch (this._point) {
2709        case 0:
2710          this._point = 1, this._line ? this._context.lineTo(t, e) : this._context.moveTo(t, e);
2711          break;
2712        case 1:
2713          this._point = 2;
2714          break;
2715        case 2:
2716          this._point = 3, Wr(this, Go(this, i = Yo(this, t, e)), i);
2717          break;
2718        default:
2719          Wr(this, this._t0, i = Yo(this, t, e));
2720          break;
2721      }
2722      this._x0 = this._x1, this._x1 = t, this._y0 = this._y1, this._y1 = e, this._t0 = i;
2723    }
2724  }
2725};
2726function wa(t) {
2727  this._context = new Ba(t);
2728}
2729(wa.prototype = Object.create(er.prototype)).point = function(t, e) {
2730  er.prototype.point.call(this, e, t);
2731};
2732function Ba(t) {
2733  this._context = t;
2734}
2735Ba.prototype = {
2736  moveTo: function(t, e) {
2737    this._context.moveTo(e, t);
2738  },
2739  closePath: function() {
2740    this._context.closePath();
2741  },
2742  lineTo: function(t, e) {
2743    this._context.lineTo(e, t);
2744  },
2745  bezierCurveTo: function(t, e, i, r, n, o) {
2746    this._context.bezierCurveTo(e, t, r, i, o, n);
2747  }
2748};
2749function ed(t) {
2750  return new er(t);
2751}
2752function id(t) {
2753  return new wa(t);
2754}
2755function Fa(t) {
2756  this._context = t;
2757}
2758Fa.prototype = {
2759  areaStart: function() {
2760    this._line = 0;
2761  },
2762  areaEnd: function() {
2763    this._line = NaN;
2764  },
2765  lineStart: function() {
2766    this._x = [], this._y = [];
2767  },
2768  lineEnd: function() {
2769    var t = this._x, e = this._y, i = t.length;
2770    if (i)
2771      if (this._line ? this._context.lineTo(t[0], e[0]) : this._context.moveTo(t[0], e[0]), i === 2)
2772        this._context.lineTo(t[1], e[1]);
2773      else
2774        for (var r = Vo(t), n = Vo(e), o = 0, s = 1; s < i; ++o, ++s)
2775          this._context.bezierCurveTo(r[0][o], n[0][o], r[1][o], n[1][o], t[s], e[s]);
2776    (this._line || this._line !== 0 && i === 1) && this._context.closePath(), this._line = 1 - this._line, this._x = this._y = null;
2777  },
2778  point: function(t, e) {
2779    this._x.push(+t), this._y.push(+e);
2780  }
2781};
2782function Vo(t) {
2783  var e, i = t.length - 1, r, n = new Array(i), o = new Array(i), s = new Array(i);
2784  for (n[0] = 0, o[0] = 2, s[0] = t[0] + 2 * t[1], e = 1; e < i - 1; ++e)
2785    n[e] = 1, o[e] = 4, s[e] = 4 * t[e] + 2 * t[e + 1];
2786  for (n[i - 1] = 2, o[i - 1] = 7, s[i - 1] = 8 * t[i - 1] + t[i], e = 1; e < i; ++e)
2787    r = n[e] / o[e - 1], o[e] -= r, s[e] -= r * s[e - 1];
2788  for (n[i - 1] = s[i - 1] / o[i - 1], e = i - 2; e >= 0; --e)
2789    n[e] = (s[e] - n[e + 1]) / o[e];
2790  for (o[i - 1] = (t[i] + n[i - 1]) / 2, e = 0; e < i - 1; ++e)
2791    o[e] = 2 * t[e + 1] - n[e + 1];
2792  return [n, o];
2793}
2794function rd(t) {
2795  return new Fa(t);
2796}
2797function Cr(t, e) {
2798  this._context = t, this._t = e;
2799}
2800Cr.prototype = {
2801  areaStart: function() {
2802    this._line = 0;
2803  },
2804  areaEnd: function() {
2805    this._line = NaN;
2806  },
2807  lineStart: function() {
2808    this._x = this._y = NaN, this._point = 0;
2809  },
2810  lineEnd: function() {
2811    0 < this._t && this._t < 1 && this._point === 2 && this._context.lineTo(this._x, this._y), (this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line >= 0 && (this._t = 1 - this._t, this._line = 1 - this._line);
2812  },
2813  point: function(t, e) {
2814    switch (t = +t, e = +e, this._point) {
2815      case 0:
2816        this._point = 1, this._line ? this._context.lineTo(t, e) : this._context.moveTo(t, e);
2817        break;
2818      case 1:
2819        this._point = 2;
2820      default: {
2821        if (this._t <= 0)
2822          this._context.lineTo(this._x, e), this._context.lineTo(t, e);
2823        else {
2824          var i = this._x * (1 - this._t) + t * this._t;
2825          this._context.lineTo(i, this._y), this._context.lineTo(i, e);
2826        }
2827        break;
2828      }
2829    }
2830    this._x = t, this._y = e;
2831  }
2832};
2833function nd(t) {
2834  return new Cr(t, 0.5);
2835}
2836function od(t) {
2837  return new Cr(t, 0);
2838}
2839function sd(t) {
2840  return new Cr(t, 1);
2841}
2842function Qe(t, e, i) {
2843  this.k = t, this.x = e, this.y = i;
2844}
2845Qe.prototype = {
2846  constructor: Qe,
2847  scale: function(t) {
2848    return t === 1 ? this : new Qe(this.k * t, this.x, this.y);
2849  },
2850  translate: function(t, e) {
2851    return t === 0 & e === 0 ? this : new Qe(this.k, this.x + this.k * t, this.y + this.k * e);
2852  },
2853  apply: function(t) {
2854    return [t[0] * this.k + this.x, t[1] * this.k + this.y];
2855  },
2856  applyX: function(t) {
2857    return t * this.k + this.x;
2858  },
2859  applyY: function(t) {
2860    return t * this.k + this.y;
2861  },
2862  invert: function(t) {
2863    return [(t[0] - this.x) / this.k, (t[1] - this.y) / this.k];
2864  },
2865  invertX: function(t) {
2866    return (t - this.x) / this.k;
2867  },
2868  invertY: function(t) {
2869    return (t - this.y) / this.k;
2870  },
2871  rescaleX: function(t) {
2872    return t.copy().domain(t.range().map(this.invertX, this).map(t.invert, t));
2873  },
2874  rescaleY: function(t) {
2875    return t.copy().domain(t.range().map(this.invertY, this).map(t.invert, t));
2876  },
2877  toString: function() {
2878    return "translate(" + this.x + "," + this.y + ") scale(" + this.k + ")";
2879  }
2880};
2881Qe.prototype;
2882/*! @license DOMPurify 3.1.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.1.6/LICENSE */
2883const {
2884  entries: Aa,
2885  setPrototypeOf: Xo,
2886  isFrozen: ad,
2887  getPrototypeOf: ld,
2888  getOwnPropertyDescriptor: hd
2889} = Object;
2890let {
2891  freeze: ut,
2892  seal: St,
2893  create: La
2894} = Object, {
2895  apply: cn,
2896  construct: un
2897} = typeof Reflect < "u" && Reflect;
2898ut || (ut = function(e) {
2899  return e;
2900});
2901St || (St = function(e) {
2902  return e;
2903});
2904cn || (cn = function(e, i, r) {
2905  return e.apply(i, r);
2906});
2907un || (un = function(e, i) {
2908  return new e(...i);
2909});
2910const Li = yt(Array.prototype.forEach), Ko = yt(Array.prototype.pop), Ue = yt(Array.prototype.push), Pi = yt(String.prototype.toLowerCase), Hr = yt(String.prototype.toString), Zo = yt(String.prototype.match), Ye = yt(String.prototype.replace), cd = yt(String.prototype.indexOf), ud = yt(String.prototype.trim), At = yt(Object.prototype.hasOwnProperty), lt = yt(RegExp.prototype.test), Ge = fd(TypeError);
2911function yt(t) {
2912  return function(e) {
2913    for (var i = arguments.length, r = new Array(i > 1 ? i - 1 : 0), n = 1; n < i; n++)
2914      r[n - 1] = arguments[n];
2915    return cn(t, e, r);
2916  };
2917}
2918function fd(t) {
2919  return function() {
2920    for (var e = arguments.length, i = new Array(e), r = 0; r < e; r++)
2921      i[r] = arguments[r];
2922    return un(t, i);
2923  };
2924}
2925function P(t, e) {
2926  let i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : Pi;
2927  Xo && Xo(t, null);
2928  let r = e.length;
2929  for (; r--; ) {
2930    let n = e[r];
2931    if (typeof n == "string") {
2932      const o = i(n);
2933      o !== n && (ad(e) || (e[r] = o), n = o);
2934    }
2935    t[n] = !0;
2936  }
2937  return t;
2938}
2939function dd(t) {
2940  for (let e = 0; e < t.length; e++)
2941    At(t, e) || (t[e] = null);
2942  return t;
2943}
2944function he(t) {
2945  const e = La(null);
2946  for (const [i, r] of Aa(t))
2947    At(t, i) && (Array.isArray(r) ? e[i] = dd(r) : r && typeof r == "object" && r.constructor === Object ? e[i] = he(r) : e[i] = r);
2948  return e;
2949}
2950function Ve(t, e) {
2951  for (; t !== null; ) {
2952    const r = hd(t, e);
2953    if (r) {
2954      if (r.get)
2955        return yt(r.get);
2956      if (typeof r.value == "function")
2957        return yt(r.value);
2958    }
2959    t = ld(t);
2960  }
2961  function i() {
2962    return null;
2963  }
2964  return i;
2965}
2966const Jo = ut(["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", "section", "select", "shadow", "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"]), jr = ut(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), Ur = ut(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), pd = ut(["animate", "color-profile", "cursor", "discard", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]), Yr = ut(["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"]), gd = ut(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), Qo = ut(["#text"]), ts = ut(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "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", "pattern", "placeholder", "playsinline", "popover", "popovertarget", "popovertargetaction", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "wrap", "xmlns", "slot"]), Gr = ut(["accent-height", "accumulate", "additive", "alignment-baseline", "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", "dis
2966play", "divisor", "dur", "edgemode", "elevation", "end", "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", "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", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "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", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]), es = ut(["accent", "accentunder", "align", "bevelled", "close", "columnsalign", "columnlines", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lspace", "lquote", "mathbackground", "mathcolor", "mathsize", "mathvariant", "maxsize", "minsize", "movablelimits", "notation", "numalign", "open", "rowalign", "rowlines", "rowspacing", "rowspan", "rspace", "rquote", "scriptlevel", "scriptminsize", "scriptsizemultiplier", "selection", "separator", "separators", "stretchy", "subscriptshift", "supscriptshift", "symmetric", "voffset", "width", "xmlns"]), Ei = ut(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), md = St(/\{\{[\w\W]*|[\w\W]*\}\}/gm), yd = St(/<%[\w\W]*|[\w\W]*%>/gm), _d = St(/\${[\w\W]*}/gm), Cd = St(/^data-[\-\w.\u00B7-\uFFFF]/), xd = St(/^aria-[\-\w]+$/), Ea = St(
2967  /^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
2968  // eslint-disable-line no-useless-escape
2969), bd = St(/^(?:\w+script|data):/i), Td = St(
2970  /[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g
2971  // eslint-disable-line no-control-regex
2972), Ma = St(/^html$/i), kd = St(/^[a-z][.\w]*(-[.\w]+)+$/i);
2973var is = /* @__PURE__ */ Object.freeze({
2974  __proto__: null,
2975  MUSTACHE_EXPR: md,
2976  ERB_EXPR: yd,
2977  TMPLIT_EXPR: _d,
2978  DATA_ATTR: Cd,
2979  ARIA_ATTR: xd,
2980  IS_ALLOWED_URI: Ea,
2981  IS_SCRIPT_OR_DATA: bd,
2982  ATTR_WHITESPACE: Td,
2983  DOCTYPE_NAME: Ma,
2984  CUSTOM_ELEMENT: kd
2985});
2986const Xe = {
2987  element: 1,
2988  attribute: 2,
2989  text: 3,
2990  cdataSection: 4,
2991  entityReference: 5,
2992  // Deprecated
2993  entityNode: 6,
2994  // Deprecated
2995  progressingInstruction: 7,
2996  comment: 8,
2997  document: 9,
2998  documentType: 10,
2999  documentFragment: 11,
3000  notation: 12
3001  // Deprecated
3002}, Sd = function() {
3003  return typeof window > "u" ? null : window;
3004}, vd = function(e, i) {
3005  if (typeof e != "object" || typeof e.createPolicy != "function")
3006    return null;
3007  let r = null;
3008  const n = "data-tt-policy-suffix";
3009  i && i.hasAttribute(n) && (r = i.getAttribute(n));
3010  const o = "dompurify" + (r ? "#" + r : "");
3011  try {
3012    return e.createPolicy(o, {
3013      createHTML(s) {
3014        return s;
3015      },
3016      createScriptURL(s) {
3017        return s;
3018      }
3019    });
3020  } catch {
3021    return console.warn("TrustedTypes policy " + o + " could not be created."), null;
3022  }
3023};
3024function Oa() {
3025  let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Sd();
3026  const e = (w) => Oa(w);
3027  if (e.version = "3.1.6", e.removed = [], !t || !t.document || t.document.nodeType !== Xe.document)
3028    return e.isSupported = !1, e;
3029  let {
3030    document: i
3031  } = t;
vendor: 5,510 bytes, lines 3032-3126
3032  const r = i, n = r.currentScript, {
3033    DocumentFragment: o,
3034    HTMLTemplateElement: s,
3035    Node: a,
3036    Element: l,
3037    NodeFilter: h,
3038    NamedNodeMap: u = t.NamedNodeMap || t.MozNamedAttrMap,
3039    HTMLFormElement: f,
3040    DOMParser: c,
3041    trustedTypes: p
3042  } = t, m = l.prototype, k = Ve(m, "cloneNode"), O = Ve(m, "remove"), q = Ve(m, "nextSibling"), T = Ve(m, "childNodes"), U = Ve(m, "parentNode");
3043  if (typeof s == "function") {
3044    const w = i.createElement("template");
3045    w.content && w.content.ownerDocument && (i = w.content.ownerDocument);
3046  }
3047  let W, G = "";
3048  const {
3049    implementation: V,
3050    createNodeIterator: H,
3051    createDocumentFragment: ae,
3052    getElementsByTagName: Jt
3053  } = i, {
3054    importNode: j
3055  } = r;
3056  let N = {};
3057  e.isSupported = typeof Aa == "function" && typeof U == "function" && V && V.createHTMLDocument !== void 0;
3058  const {
3059    MUSTACHE_EXPR: _t,
3060    ERB_EXPR: zt,
3061    TMPLIT_EXPR: M,
3062    DATA_ATTR: b,
3063    ARIA_ATTR: C,
3064    IS_SCRIPT_OR_DATA: v,
3065    ATTR_WHITESPACE: x,
3066    CUSTOM_ELEMENT: A
3067  } = is;
3068  let {
3069    IS_ALLOWED_URI: D
3070  } = is, I = null;
3071  const K = P({}, [...Jo, ...jr, ...Ur, ...Yr, ...Qo]);
3072  let R = null;
3073  const Q = P({}, [...ts, ...Gr, ...es, ...Ei]);
3074  let z = Object.seal(La(null, {
3075    tagNameCheck: {
3076      writable: !0,
3077      configurable: !1,
3078      enumerable: !0,
3079      value: null
3080    },
3081    attributeNameCheck: {
3082      writable: !0,
3083      configurable: !1,
3084      enumerable: !0,
3085      value: null
3086    },
3087    allowCustomizedBuiltInElements: {
3088      writable: !0,
3089      configurable: !1,
3090      enumerable: !0,
3091      value: !1
3092    }
3093  })), Ct = null, wt = null, Qt = !0, Bt = !0, et = !1, Ft = !0, xt = !1, te = !0, le = !1, Or = !1, $r = !1, be = !1, Ti = !1, ki = !1, oo = !0, so = !1;
3094  const dh = "user-content-";
3095  let Ir = !0, ze = !1, Te = {}, ke = null;
3096  const ao = P({}, ["annotation-xml", "audio", "colgroup", "desc", "foreignobject", "head", "iframe", "math", "mi", "mn", "mo", "ms", "mtext", "noembed", "noframes", "noscript", "plaintext", "script", "style", "svg", "template", "thead", "title", "video", "xmp"]);
3097  let lo = null;
3098  const ho = P({}, ["audio", "video", "img", "source", "image", "track"]);
3099  let Dr = null;
3100  const co = P({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), Si = "http://www.w3.org/1998/Math/MathML", vi = "http://www.w3.org/2000/svg", Wt = "http://www.w3.org/1999/xhtml";
3101  let Se = Wt, Nr = !1, Rr = null;
3102  const ph = P({}, [Si, vi, Wt], Hr);
3103  let We = null;
3104  const gh = ["application/xhtml+xml", "text/html"], mh = "text/html";
3105  let tt = null, ve = null;
3106  const yh = i.createElement("form"), uo = function(d) {
3107    return d instanceof RegExp || d instanceof Function;
3108  }, Pr = function() {
3109    let d = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
3110    if (!(ve && ve === d)) {
3111      if ((!d || typeof d != "object") && (d = {}), d = he(d), We = // eslint-disable-next-line unicorn/prefer-includes
3112      gh.indexOf(d.PARSER_MEDIA_TYPE) === -1 ? mh : d.PARSER_MEDIA_TYPE, tt = We === "application/xhtml+xml" ? Hr : Pi, I = At(d, "ALLOWED_TAGS") ? P({}, d.ALLOWED_TAGS, tt) : K, R = At(d, "ALLOWED_ATTR") ? P({}, d.ALLOWED_ATTR, tt) : Q, Rr = At(d, "ALLOWED_NAMESPACES") ? P({}, d.ALLOWED_NAMESPACES, Hr) : ph, Dr = At(d, "ADD_URI_SAFE_ATTR") ? P(
3113        he(co),
3114        // eslint-disable-line indent
3115        d.ADD_URI_SAFE_ATTR,
3116        // eslint-disable-line indent
3117        tt
3118        // eslint-disable-line indent
3119      ) : co, lo = At(d, "ADD_DATA_URI_TAGS") ? P(
3120        he(ho),
3121        // eslint-disable-line indent
3122        d.ADD_DATA_URI_TAGS,
3123        // eslint-disable-line indent
3124        tt
3125        // eslint-disable-line indent
3126      ) : ho, ke = At(d, "FORBID_CONTENTS") ? P({}, d.FORBID_CONTENTS, tt) : ao, Ct = At(d, "FORBID_TAGS") ? P({}, d.FORBID_TAGS, tt) : {}, wt = At(d, "FORBID_ATTR") ? P({}, d.FORBID_ATTR, tt) : {}, Te = At(d, "USE_PROFILES") ? d.USE_PROFILES : !1, Qt = d.ALLOW_ARIA_ATTR !== !1, Bt = d.ALLOW_DATA_ATTR !== !1, et = d.ALLOW_UNKNOWN_PROTOCOLS || !1, Ft = d.ALLOW_SELF_CLOSE_IN_ATTR !== !1, xt = d.SAFE_FOR_TEMPLATES || !1, te = d.SAFE_FOR_XML !== !1, le = d.WHOLE_DOCUMENT || !1, be = d.RETURN_DOM || !1, Ti = d.RETURN_DOM_FRAGMENT || !1, ki = d.RETURN_TRUSTED_TYPE || !1, $r = d.FORCE_BODY || !1, oo = d.SANITIZE_DOM !== !1, so = d.SANITIZE_NAMED_PROPS || !1, Ir = d.KEEP_CONTENT !== !1, ze = d.IN_PLACE || !1, D = d.ALLOWED_URI_REGEXP || Ea, Se = d.NAMESPACE || Wt, z = d.CUSTOM_ELEMENT_HANDLING || {}, d.CUSTOM_ELEMENT_HANDLING && uo(d.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (z.tagNameCheck = d.CUSTOM_ELEMENT_HANDLING.tagNameCheck), d.CUSTOM_ELEMENT_HANDLING && uo(d.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (z.attributeNameCheck = d.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), d.CUSTOM_ELEMENT_HANDLING && typeof d.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (z.allowCustomizedBuiltInElements = d.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), xt && (Bt = !1), Ti && (be = !0), Te && (I = P({}, Qo), R = [], Te.html === !0 && (P(I, Jo), P(R, ts)), Te.svg === !0 && (P(I, jr), P(R, Gr), P(R, Ei)), Te.svgFilters === !0 && (P(I, Ur), P(R, Gr), P(R, Ei)), Te.mathMl === !0 && (P(I, Yr), P(R, es), P(R, Ei))), d.ADD_TAGS && (I === K && (I = he(I)), P(I, d.ADD_TAGS, tt)), d.ADD_ATTR && (R === Q && (R = he(R)), P(R, d.ADD_ATTR, tt)), d.ADD_URI_SAFE_ATTR && P(Dr, d.ADD_URI_SAFE_ATTR, tt), d.FORB
vendor: 2,769 bytes, lines 3126-3192
3126ID_CONTENTS && (ke === ao && (ke = he(ke)), P(ke, d.FORBID_CONTENTS, tt)), Ir && (I["#text"] = !0), le && P(I, ["html", "head", "body"]), I.table && (P(I, ["tbody"]), delete Ct.tbody), d.TRUSTED_TYPES_POLICY) {
3127        if (typeof d.TRUSTED_TYPES_POLICY.createHTML != "function")
3128          throw Ge('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
3129        if (typeof d.TRUSTED_TYPES_POLICY.createScriptURL != "function")
3130          throw Ge('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
3131        W = d.TRUSTED_TYPES_POLICY, G = W.createHTML("");
3132      } else
3133        W === void 0 && (W = vd(p, n)), W !== null && typeof G == "string" && (G = W.createHTML(""));
3134      ut && ut(d), ve = d;
3135    }
3136  }, fo = P({}, ["mi", "mo", "mn", "ms", "mtext"]), po = P({}, ["foreignobject", "annotation-xml"]), _h = P({}, ["title", "style", "font", "a", "script"]), go = P({}, [...jr, ...Ur, ...pd]), mo = P({}, [...Yr, ...gd]), Ch = function(d) {
3137    let y = U(d);
3138    (!y || !y.tagName) && (y = {
3139      namespaceURI: Se,
3140      tagName: "template"
3141    });
3142    const S = Pi(d.tagName), Y = Pi(y.tagName);
3143    return Rr[d.namespaceURI] ? d.namespaceURI === vi ? y.namespaceURI === Wt ? S === "svg" : y.namespaceURI === Si ? S === "svg" && (Y === "annotation-xml" || fo[Y]) : !!go[S] : d.namespaceURI === Si ? y.namespaceURI === Wt ? S === "math" : y.namespaceURI === vi ? S === "math" && po[Y] : !!mo[S] : d.namespaceURI === Wt ? y.namespaceURI === vi && !po[Y] || y.namespaceURI === Si && !fo[Y] ? !1 : !mo[S] && (_h[S] || !go[S]) : !!(We === "application/xhtml+xml" && Rr[d.namespaceURI]) : !1;
3144  }, Ot = function(d) {
3145    Ue(e.removed, {
3146      element: d
3147    });
3148    try {
3149      U(d).removeChild(d);
3150    } catch {
3151      O(d);
3152    }
3153  }, wi = function(d, y) {
3154    try {
3155      Ue(e.removed, {
3156        attribute: y.getAttributeNode(d),
3157        from: y
3158      });
3159    } catch {
3160      Ue(e.removed, {
3161        attribute: null,
3162        from: y
3163      });
3164    }
3165    if (y.removeAttribute(d), d === "is" && !R[d])
3166      if (be || Ti)
3167        try {
3168          Ot(y);
3169        } catch {
3170        }
3171      else
3172        try {
3173          y.setAttribute(d, "");
3174        } catch {
3175        }
3176  }, yo = function(d) {
3177    let y = null, S = null;
3178    if ($r)
3179      d = "<remove></remove>" + d;
3180    else {
3181      const it = Zo(d, /^[\r\n\t ]+/);
3182      S = it && it[0];
3183    }
3184    We === "application/xhtml+xml" && Se === Wt && (d = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + d + "</body></html>");
3185    const Y = W ? W.createHTML(d) : d;
3186    if (Se === Wt)
3187      try {
3188        y = new c().parseFromString(Y, We);
3189      } catch {
3190      }
3191    if (!y || !y.documentElement) {
3192      y = V.createDocument(Se, "template", null);
3193      try {
3194        y.documentElement.innerHTML = Nr ? G : Y;
3195      } catch {
3196      }
3197    }
3198    const rt = y.body || y.documentElement;
3199    return d && S && rt.insertBefore(i.createTextNode(S), rt.childNodes[0] || null), Se === Wt ? Jt.call(y, le ? "html" : "body")[0] : le ? y.documentElement : rt;
3200  }, _o = function(d) {
3201    return H.call(
3202      d.ownerDocument || d,
3203      d,
3204      // eslint-disable-next-line no-bitwise
3205      h.SHOW_ELEMENT | h.SHOW_COMMENT | h.SHOW_TEXT | h.SHOW_PROCESSING_INSTRUCTION | h.SHOW_CDATA_SECTION,
3206      null
3207    );
3208  }, Co = function(d) {
3209    return d instanceof f && (typeof d.nodeName != "string" || typeof d.textContent != "string" || typeof d.removeChild != "function" || !(d.attributes instanceof u) || typeof d.removeAttribute != "function" || typeof d.setAttribute != "function" || typeof d.namespaceURI != "string" || typeof d.insertBefore != "function" || typeof d.hasChildNodes != "function");
3210  }, xo = function(d) {
3211    return typeof a == "function" && d instanceof a;
3212  }, Ht = function(d, y, S) {
3213    N[d] && Li(N[d], (Y) => {
3214      Y.call(e, y, S, ve);
3215    });
3216  }, bo = function(d) {
3217    let y = null;
3218    if (Ht("beforeSanitizeElements", d, null), Co(d))
3219      return Ot(d), !0;
3220    const S = tt(d.nodeName);
3221    if (Ht("uponSanitizeElement", d, {
3222      tagName: S,
3223      allowedTags: I
3224    }), d.hasChildNodes() && !xo(d.firstElementChild) && lt(/<[/\w]/g, d.innerHTML) && lt(/<[/\w]/g, d.textContent) || d.nodeType === Xe.progressingInstruction || te && d.nodeType === Xe.comment && lt(/<[/\w]/g, d.data))
3225      return Ot(d), !0;
3226    if (!I[S] || Ct[S]) {
3227      if (!Ct[S] && ko(S) && (z.tagNameCheck instanceof RegExp && lt(z.tagNameCheck, S) || z.tagNameCheck instanceof Function && z.tagNameCheck(S)))
3228        return !1;
3229      if (Ir && !ke[S]) {
3230        const Y = U(d) || d.parentNode, rt = T(d) || d.childNodes;
3231        if (rt && Y) {
3232          const it = rt.length;
3233          for (let ft = it - 1; ft >= 0; --ft) {
3234            const $t = k(rt[ft], !0);
3235            $t.__removalCount = (d.__removalCount || 0) + 1, Y.insertBefore($t, q(d));
3236          }
3237        }
3238      }
3239      return Ot(d), !0;
3240    }
3241    return d instanceof l && !Ch(d) || (S === "noscript" || S === "noembed" || S === "noframes") && lt(/<\/no(script|embed|frames)/i, d.innerHTML) ? (Ot(d), !0) : (xt && d.nodeType === Xe.text && (y = d.textContent, Li([_t, zt, M], (Y) => {
3242      y = Ye(y, Y, " ");
3243    }), d.textContent !== y && (Ue(e.removed, {
3244      element: d.cloneNode()
3245    }), d.textContent = y)), Ht("afterSanitizeElements", d, null), !1);
3246  }, To = function(d, y, S) {
3247    if (oo && (y === "id" || y === "name") && (S in i || S in yh))
3248      return !1;
3249    if (!(Bt && !wt[y] && lt(b, y))) {
3250      if (!(Qt && lt(C, y))) {
3251        if (!R[y] || wt[y]) {
3252          if (
3253            // First condition does a very basic check if a) it's basically a valid custom element tagname AND
3254            // b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
3255            // and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck
3256            !(ko(d) && (z.tagNameCheck instanceof RegExp && lt(z.tagNameCheck, d) || z.tagNameCheck instanceof Function && z.tagNameCheck(d)) && (z.attributeNameCheck instanceof RegExp && lt(z.attributeNameCheck, y) || z.attributeNameCheck instanceof Function && z.attributeNameCheck(y)) || // Alternative, second condition checks if it's an `is`-attribute, AND
3257            // the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
3258            y === "is" && z.allowCustomizedBuiltInElements && (z.tagNameCheck instanceof RegExp && lt(z.tagNameCheck, S) || z.tagNameCheck instanceof Function && z.tagNameCheck(S)))
3259          )
3260            return !1;
3261        } else if (!Dr[y]) {
3262          if (!lt(D, Ye(S, x, ""))) {
3263            if (!((y === "src" || y === "xlink:href" || y === "href") && d !== "script" && cd(S, "data:") === 0 && lo[d])) {
3264              if (!(et && !lt(v, Ye(S, x, "")))) {
3265                if (S)
3266                  return !1;
3267              }
3268            }
3269          }
3270        }
3271      }
3272    }
3273    return !0;
3274  }, ko = function(d) {
3275    return d !== "annotation-xml" && Zo(d, A);
3276  }, So = function(d) {
3277    Ht("beforeSanitizeAttributes", d, null);
3278    const {
3279      attributes: y
3280    } = d;
3281    if (!y)
3282      return;
3283    const S = {
3284      attrName: "",
3285      attrValue: "",
3286      keepAttr: !0,
3287      allowedAttributes: R
3288    };
3289    let Y = y.length;
3290    for (; Y--; ) {
3291      const rt = y[Y], {
3292        name: it,
3293        namespaceURI: ft,
3294        value: $t
3295      } = rt, He = tt(it);
3296      let at = it === "value" ? $t : ud($t);
3297      if (S.attrName = He, S.attrValue = at, S.keepAttr = !0, S.forceKeepAttr = void 0, Ht("uponSanitizeAttribute", d, S), at = S.attrValue, te && lt(/((--!?|])>)|<\/(style|title)/i, at)) {
3298        wi(it, d);
3299        continue;
3300      }
3301      if (S.forceKeepAttr || (wi(it, d), !S.keepAttr))
3302        continue;
3303      if (!Ft && lt(/\/>/i, at)) {
3304        wi(it, d);
3305        continue;
3306      }
3307      xt && Li([_t, zt, M], (wo) => {
3308        at = Ye(at, wo, " ");
3309      });
3310      const vo = tt(d.nodeName);
3311      if (To(vo, He, at)) {
3312        if (so && (He === "id" || He === "name") && (wi(it, d), at = dh + at), W && typeof p == "object" && typeof p.getAttributeType == "function" && !ft)
3313          switch (p.getAttributeType(vo, He)) {
3314            case "TrustedHTML": {
3315              at = W.createHTML(at);
3316              break;
3317            }
3318            case "TrustedScriptURL": {
3319              at = W.createScriptURL(at);
3320              break;
3321            }
3322          }
3323        try {
3324          ft ? d.setAttributeNS(ft, it, at) : d.setAttribute(it, at), Co(d) ? Ot(d) : Ko(e.removed);
3325        } catch {
3326        }
3327      }
3328    }
3329    Ht("afterSanitizeAttributes", d, null);
3330  }, xh = function w(d) {
3331    let y = null;
3332    const S = _o(d);
3333    for (Ht("beforeSanitizeShadowDOM", d, null); y = S.nextNode(); )
3334      Ht("uponSanitizeShadowNode", y, null), !bo(y) && (y.content instanceof o && w(y.content), So(y));
3335    Ht("afterSanitizeShadowDOM", d, null);
3336  };
3337  return e.sanitize = function(w) {
3338    let d = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, y = null, S = null, Y = null, rt = null;
3339    if (Nr = !w, Nr && (w = "<!-->"), typeof w != "string" && !xo(w))
3340      if (typeof w.toString == "function") {
3341        if (w = w.toString(), typeof w != "string")
3342          throw Ge("dirty is not a string, aborting");
3343      } else
3344        throw Ge("toString is not a function");
3345    if (!e.isSupported)
3346      return w;
3347    if (Or || Pr(d), e.removed = [], typeof w == "string" && (ze = !1), ze) {
3348      if (w.nodeName) {
3349        const $t = tt(w.nodeName);
3350        if (!I[$t] || Ct[$t])
3351          throw Ge("root node is forbidden and cannot be sanitized in-place");
3352      }
3353    } else if (w instanceof a)
3354      y = yo("<!---->"), S = y.ownerDocument.importNode(w, !0), S.nodeType === Xe.element && S.nodeName === "BODY" || S.nodeName === "HTML" ? y = S : y.appendChild(S);
3355    else {
3356      if (!be && !xt && !le && // eslint-disable-next-line unicorn/prefer-includes
3357      w.indexOf("<") === -1)
3358        return W && ki ? W.createHTML(w) : w;
3359      if (y = yo(w), !y)
3360        return be ? null : ki ? G : "";
3361    }
3362    y && $r && Ot(y.firstChild);
3363    const it = _o(ze ? w : y);
3364    for (; Y = it.nextNode(); )
3365      bo(Y) || (Y.content instanceof o && xh(Y.content), So(Y));
3366    if (ze)
3367      return w;
3368    if (be) {
3369      if (Ti)
3370        for (rt = ae.call(y.ownerDocument); y.firstChild; )
3371          rt.appendChild(y.firstChild);
3372      else
3373        rt = y;
3374      return (R.shadowroot || R.shadowrootmode) && (rt = j.call(r, rt, !0)), rt;
3375    }
3376    let ft = le ? y.outerHTML : y.innerHTML;
3377    return le && I["!doctype"] && y.ownerDocument && y.ownerDocument.doctype && y.ownerDocument.doctype.name && lt(Ma, y.ownerDocument.doctype.name) && (ft = "<!DOCTYPE " + y.ownerDocument.doctype.name + `>
3378` + ft), xt && Li([_t, zt, M], ($t) => {
3379      ft = Ye(ft, $t, " ");
3380    }), W && ki ? W.createHTML(ft) : ft;
3381  }, e.setConfig = function() {
3382    let w = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
3383    Pr(w), Or = !0;
3384  }, e.clearConfig = function() {
3385    ve = null, Or = !1;
3386  }
3386, e.isValidAttribute = function(w, d, y) {
3387    ve || Pr({});
3388    const S = tt(w), Y = tt(d);
3389    return To(S, Y, y);
3390  }, e.addHook = function(w, d) {
3391    typeof d == "function" && (N[w] = N[w] || [], Ue(N[w], d));
3392  }, e.removeHook = function(w) {
3393    if (N[w])
3394      return Ko(N[w]);
3395  }, e.removeHooks = function(w) {
3396    N[w] && (N[w] = []);
3397  }, e.removeAllHooks = function() {
3398    N = {};
3399  }, e;
3400}
3401var Me = Oa();
3402const _i = /<br\s*\/?>/gi, wd = (t) => t ? Ia(t).replace(/\\n/g, "#br#").split("#br#") : [""], Bd = (() => {
3403  let t = !1;
3404  return () => {
3405    t || (Fd(), t = !0);
3406  };
3407})();
3408function Fd() {
3409  const t = "data-temp-href-target";
3410  Me.addHook("beforeSanitizeAttributes", (e) => {
3411    e.tagName === "A" && e.hasAttribute("target") && e.setAttribute(t, e.getAttribute("target") || "");
3412  }), Me.addHook("afterSanitizeAttributes", (e) => {
3413    e.tagName === "A" && e.hasAttribute(t) && (e.setAttribute("target", e.getAttribute(t) || ""), e.removeAttribute(t), e.getAttribute("target") === "_blank" && e.setAttribute("rel", "noopener"));
3414  });
3415}
3416const $a = (t) => (Bd(), Me.sanitize(t)), rs = (t, e) => {
3417  var i;
3418  if (((i = e.flowchart) == null ? void 0 : i.htmlLabels) !== !1) {
3419    const r = e.securityLevel;
3420    r === "antiscript" || r === "strict" ? t = $a(t) : r !== "loose" && (t = Ia(t), t = t.replace(/</g, "&lt;").replace(/>/g, "&gt;"), t = t.replace(/=/g, "&equals;"), t = Md(t));
3421  }
3422  return t;
3423}, ci = (t, e) => t && (e.dompurifyConfig ? t = Me.sanitize(rs(t, e), e.dompurifyConfig).toString() : t = Me.sanitize(rs(t, e), {
3424  FORBID_TAGS: ["style"]
3425}).toString(), t), Ad = (t, e) => typeof t == "string" ? ci(t, e) : t.flat().map((i) => ci(i, e)), Ld = (t) => _i.test(t), Ed = (t) => t.split(_i), Md = (t) => t.replace(/#br#/g, "<br/>"), Ia = (t) => t.replace(_i, "#br#"), Od = (t) => {
3426  let e = "";
3427  return t && (e = window.location.protocol + "//" + window.location.host + window.location.pathname + window.location.search, e = e.replaceAll(/\(/g, "\\("), e = e.replaceAll(/\)/g, "\\)")), e;
3428}, Da = (t) => !(t === !1 || ["false", "null", "0"].includes(String(t).trim().toLowerCase())), $d = function(...t) {
3429  const e = t.filter((i) => !isNaN(i));
3430  return Math.max(...e);
3431}, Id = function(...t) {
3432  const e = t.filter((i) => !isNaN(i));
3433  return Math.min(...e);
3434}, S1 = function(t) {
3435  const e = t.split(/(,)/), i = [];
3436  for (let r = 0; r < e.length; r++) {
3437    let n = e[r];
3438    if (n === "," && r > 0 && r + 1 < e.length) {
3439      const o = e[r - 1], s = e[r + 1];
3440      Dd(o, s) && (n = o + "," + s, r++, i.pop());
3441    }
3442    i.push(Nd(n));
3443  }
3444  return i.join("");
3445}, fn = (t, e) => Math.max(0, t.split(e).length - 1), Dd = (t, e) => {
3446  const i = fn(t, "~"), r = fn(e, "~");
3447  return i === 1 && r === 1;
3448}, Nd = (t) => {
3449  const e = fn(t, "~");
3450  let i = !1;
3451  if (e <= 1)
3452    return t;
3453  e % 2 !== 0 && t.startsWith("~") && (t = t.substring(1), i = !0);
3454  const r = [...t];
3455  let n = r.indexOf("~"), o = r.lastIndexOf("~");
3456  for (; n !== -1 && o !== -1 && n !== o; )
3457    r[n] = "<", r[o] = ">", n = r.indexOf("~"), o = r.lastIndexOf("~");
3458  return i && r.unshift("~"), r.join("");
3459}, ns = () => window.MathMLElement !== void 0, dn = /\$\$(.*)\$\$/g, os = (t) => {
3460  var e;
3461  return (((e = t.match(dn)) == null ? void 0 : e.length) ?? 0) > 0;
3462}, v1 = async (t, e) => {
3463  t = await Rd(t, e);
3464  const i = document.createElement("div");
3465  i.innerHTML = t, i.id = "katex-temp", i.style.visibility = "hidden", i.style.position = "absolute", i.style.top = "0";
3466  const r = document.querySelector("body");
3467  r == null || r.insertAdjacentElement("beforeend", i);
3468  const n = { width: i.clientWidth, height: i.clientHeight };
3469  return i.remove(), n;
3470}, Rd = async (t, e) => {
3471  if (!os(t))
3472    return t;
3473  if (!ns() && !e.legacyMathML)
3474    return t.replace(dn, "MathML is unsupported in this environment.");
3475  const { default: i } = await import("./katex-fa3848e8.js");
3476  return t.split(_i).map(
3477    (r) => os(r) ? `
3478            <div style="display: flex; align-items: center; justify-content: center; white-space: nowrap;">
3479              ${r}
3480            </div>
3481          ` : `<div>${r}</div>`
3482  ).join("").replace(
3483    dn,
3484    (r, n) => i.renderToString(n, {
3485      throwOnError: !0,
3486      displayMode: !0,
3487      output: ns() ? "mathml" : "htmlAndMathml"
3488    }).replace(/\n/g, " ").replace(/<annotation.*<\/annotation>/g, "")
3489  );
3490}, Rn = {
3491  getRows: wd,
3492  sanitizeText: ci,
3493  sanitizeTextOrArray: Ad,
3494  hasBreaks: Ld,
3495  splitBreaks: Ed,
3496  lineBreakRegex: _i,
3497  removeScript: $a,
3498  getUrl: Od,
3499  evaluate: Da,
3500  getMax: $d,
3501  getMin: Id
3502}, qi = {
3503  /* CLAMP */
3504  min: {
3505    r: 0,
3506    g: 0,
3507    b: 0,
3508    s: 0,
3509    l: 0,
3510    a: 0
3511  },
3512  max: {
3513    r: 255,
3514    g: 255,
3515    b: 255,
3516    h: 360,
3517    s: 100,
3518    l: 100,
3519    a: 1
3520  },
3521  clamp: {
3522    r: (t) => t >= 255 ? 255 : t < 0 ? 0 : t,
3523    g: (t) => t >= 255 ? 255 : t < 0 ? 0 : t,
3524    b: (t) => t >= 255 ? 255 : t < 0 ? 0 : t,
3525    h: (t) => t % 360,
3526    s: (t) => t >= 100 ? 100 : t < 0 ? 0 : t,
3527    l: (t) => t >= 100 ? 100 : t < 0 ? 0 : t,
3528    a: (t) => t >= 1 ? 1 : t < 0 ? 0 : t
3529  },
3530  /* CONVERSION */
3531  //SOURCE: https://planetcalc.com/7779
3532  toLinear: (t) => {
3533    const e = t / 255;
3534    return t > 0.03928 ? Math.pow((e + 0.055) / 1.055, 2.4) : e / 12.92;
3535  },
3536  //SOURCE: https://gist.github.com/mjackson/5311256
3537  hue2rgb: (t, e, i) => (i < 0 && (i += 1), i > 1 && (i -= 1), i < 1 / 6 ? t + (e - t) * 6 * i : i < 1 / 2 ? e : i < 2 / 3 ? t + (e - t) * (2 / 3 - i) * 6 : t),
3538  hsl2rgb: ({ h: t, s: e, l: i }, r) => {
3539    if (!e)
3540      return i * 2.55;
3541    t /= 360, e /= 100, i /= 100;
3542    const n = i < 0.5 ? i * (1 + e) : i + e - i * e, o = 2 * i - n;
3543    switch (r) {
3544      case "r":
3545        return qi.hue2rgb(o, n, t + 1 / 3) * 255;
3546      case "g":
vendor: 6,135 bytes, lines 3547-3749
3547        return qi.hue2rgb(o, n, t) * 255;
3548      case "b":
3549        return qi.hue2rgb(o, n, t - 1 / 3) * 255;
3550    }
3551  },
3552  rgb2hsl: ({ r: t, g: e, b: i }, r) => {
3553    t /= 255, e /= 255, i /= 255;
3554    const n = Math.max(t, e, i), o = Math.min(t, e, i), s = (n + o) / 2;
3555    if (r === "l")
3556      return s * 100;
3557    if (n === o)
3558      return 0;
3559    const a = n - o, l = s > 0.5 ? a / (2 - n - o) : a / (n + o);
3560    if (r === "s")
3561      return l * 100;
3562    switch (n) {
3563      case t:
3564        return ((e - i) / a + (e < i ? 6 : 0)) * 60;
3565      case e:
3566        return ((i - t) / a + 2) * 60;
3567      case i:
3568        return ((t - e) / a + 4) * 60;
3569      default:
3570        return -1;
3571    }
3572  }
3573}, Pd = qi, qd = {
3574  /* API */
3575  clamp: (t, e, i) => e > i ? Math.min(e, Math.max(i, t)) : Math.min(i, Math.max(e, t)),
3576  round: (t) => Math.round(t * 1e10) / 1e10
3577}, zd = qd, Wd = {
3578  /* API */
3579  dec2hex: (t) => {
3580    const e = Math.round(t).toString(16);
3581    return e.length > 1 ? e : `0${e}`;
3582  }
3583}, Hd = Wd, jd = {
3584  channel: Pd,
3585  lang: zd,
3586  unit: Hd
3587}, $ = jd, ee = {};
3588for (let t = 0; t <= 255; t++)
3589  ee[t] = $.unit.dec2hex(t);
3590const nt = {
3591  ALL: 0,
3592  RGB: 1,
3593  HSL: 2
3594};
3595class Ud {
3596  constructor() {
3597    this.type = nt.ALL;
3598  }
3599  /* API */
3600  get() {
3601    return this.type;
3602  }
3603  set(e) {
3604    if (this.type && this.type !== e)
3605      throw new Error("Cannot change both RGB and HSL channels at the same time");
3606    this.type = e;
3607  }
3608  reset() {
3609    this.type = nt.ALL;
3610  }
3611  is(e) {
3612    return this.type === e;
3613  }
3614}
3615const Yd = Ud;
3616class Gd {
3617  /* CONSTRUCTOR */
3618  constructor(e, i) {
3619    this.color = i, this.changed = !1, this.data = e, this.type = new Yd();
3620  }
3621  /* API */
3622  set(e, i) {
3623    return this.color = i, this.changed = !1, this.data = e, this.type.type = nt.ALL, this;
3624  }
3625  /* HELPERS */
3626  _ensureHSL() {
3627    const e = this.data, { h: i, s: r, l: n } = e;
3628    i === void 0 && (e.h = $.channel.rgb2hsl(e, "h")), r === void 0 && (e.s = $.channel.rgb2hsl(e, "s")), n === void 0 && (e.l = $.channel.rgb2hsl(e, "l"));
3629  }
3630  _ensureRGB() {
3631    const e = this.data, { r: i, g: r, b: n } = e;
3632    i === void 0 && (e.r = $.channel.hsl2rgb(e, "r")), r === void 0 && (e.g = $.channel.hsl2rgb(e, "g")), n === void 0 && (e.b = $.channel.hsl2rgb(e, "b"));
3633  }
3634  /* GETTERS */
3635  get r() {
3636    const e = this.data, i = e.r;
3637    return !this.type.is(nt.HSL) && i !== void 0 ? i : (this._ensureHSL(), $.channel.hsl2rgb(e, "r"));
3638  }
3639  get g() {
3640    const e = this.data, i = e.g;
3641    return !this.type.is(nt.HSL) && i !== void 0 ? i : (this._ensureHSL(), $.channel.hsl2rgb(e, "g"));
3642  }
3643  get b() {
3644    const e = this.data, i = e.b;
3645    return !this.type.is(nt.HSL) && i !== void 0 ? i : (this._ensureHSL(), $.channel.hsl2rgb(e, "b"));
3646  }
3647  get h() {
3648    const e = this.data, i = e.h;
3649    return !this.type.is(nt.RGB) && i !== void 0 ? i : (this._ensureRGB(), $.channel.rgb2hsl(e, "h"));
3650  }
3651  get s() {
3652    const e = this.data, i = e.s;
3653    return !this.type.is(nt.RGB) && i !== void 0 ? i : (this._ensureRGB(), $.channel.rgb2hsl(e, "s"));
3654  }
3655  get l() {
3656    const e = this.data, i = e.l;
3657    return !this.type.is(nt.RGB) && i !== void 0 ? i : (this._ensureRGB(), $.channel.rgb2hsl(e, "l"));
3658  }
3659  get a() {
3660    return this.data.a;
3661  }
3662  /* SETTERS */
3663  set r(e) {
3664    this.type.set(nt.RGB), this.changed = !0, this.data.r = e;
3665  }
3666  set g(e) {
3667    this.type.set(nt.RGB), this.changed = !0, this.data.g = e;
3668  }
3669  set b(e) {
3670    this.type.set(nt.RGB), this.changed = !0, this.data.b = e;
3671  }
3672  set h(e) {
3673    this.type.set(nt.HSL), this.changed = !0, this.data.h = e;
3674  }
3675  set s(e) {
3676    this.type.set(nt.HSL), this.changed = !0, this.data.s = e;
3677  }
3678  set l(e) {
3679    this.type.set(nt.HSL), this.changed = !0, this.data.l = e;
3680  }
3681  set a(e) {
3682    this.changed = !0, this.data.a = e;
3683  }
3684}
3685const Vd = Gd, Xd = new Vd({ r: 0, g: 0, b: 0, a: 0 }, "transparent"), xr = Xd, Na = {
3686  /* VARIABLES */
3687  re: /^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,
3688  /* API */
3689  parse: (t) => {
3690    if (t.charCodeAt(0) !== 35)
3691      return;
3692    const e = t.match(Na.re);
3693    if (!e)
3694      return;
3695    const i = e[1], r = parseInt(i, 16), n = i.length, o = n % 4 === 0, s = n > 4, a = s ? 1 : 17, l = s ? 8 : 4, h = o ? 0 : -1, u = s ? 255 : 15;
3696    return xr.set({
3697      r: (r >> l * (h + 3) & u) * a,
3698      g: (r >> l * (h + 2) & u) * a,
3699      b: (r >> l * (h + 1) & u) * a,
3700      a: o ? (r & u) * a / 255 : 1
3701    }, t);
3702  },
3703  stringify: (t) => {
3704    const { r: e, g: i, b: r, a: n } = t;
3705    return n < 1 ? `#${ee[Math.round(e)]}${ee[Math.round(i)]}${ee[Math.round(r)]}${ee[Math.round(n * 255)]}` : `#${ee[Math.round(e)]}${ee[Math.round(i)]}${ee[Math.round(r)]}`;
3706  }
3707}, ti = Na, zi = {
3708  /* VARIABLES */
3709  re: /^hsla?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(?:deg|grad|rad|turn)?)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(%)?))?\s*?\)$/i,
3710  hueRe: /^(.+?)(deg|grad|rad|turn)$/i,
3711  /* HELPERS */
3712  _hue2deg: (t) => {
3713    const e = t.match(zi.hueRe);
3714    if (e) {
3715      const [, i, r] = e;
3716      switch (r) {
3717        case "grad":
3718          return $.channel.clamp.h(parseFloat(i) * 0.9);
3719        case "rad":
3720          return $.channel.clamp.h(parseFloat(i) * 180 / Math.PI);
3721        case "turn":
3722          return $.channel.clamp.h(parseFloat(i) * 360);
3723      }
3724    }
3725    return $.channel.clamp.h(parseFloat(t));
3726  },
3727  /* API */
3728  parse: (t) => {
3729    const e = t.charCodeAt(0);
3730    if (e !== 104 && e !== 72)
3731      return;
3732    const i = t.match(zi.re);
3733    if (!i)
3734      return;
3735    const [, r, n, o, s, a] = i;
3736    return xr.set({
3737      h: zi._hue2deg(r),
3738      s: $.channel.clamp.s(parseFloat(n)),
3739      l: $.channel.clamp.l(parseFloat(o)),
3740      a: s ? $.channel.clamp.a(a ? parseFloat(s) / 100 : parseFloat(s)) : 1
3741    }, t);
3742  },
3743  stringify: (t) => {
3744    const { h: e, s: i, l: r, a: n } = t;
3745    return n < 1 ? `hsla(${$.lang.round(e)}, ${$.lang.round(i)}%, ${$.lang.round(r)}%, ${n})` : `hsl(${$.lang.round(e)}, ${$.lang.round(i)}%, ${$.lang.round(r)}%)`;
3746  }
3747}, Mi = zi, Wi = {
3748  /* VARIABLES */
3749  colors: {
3750    aliceblue: "#f0f8ff",
3751    antiquewhite: "#faebd7",
3752    aqua: "#00ffff",
3753    aquamarine: "#7fffd4",
3754    azure: "#f0ffff",
3755    beige: "#f5f5dc",
3756    bisque: "#ffe4c4",
3757    black: "#000000",
3758    blanchedalmond: "#ffebcd",
3759    blue: "#0000ff",
3760    blueviolet: "#8a2be2",
3761    brown: "#a52a2a",
3762    burlywood: "#deb887",
3763    cadetblue: "#5f9ea0",
3764    chartreuse: "#7fff00",
3765    chocolate: "#d2691e",
3766    coral: "#ff7f50",
3767    cornflowerblue: "#6495ed",
3768    cornsilk: "#fff8dc",
3769    crimson: "#dc143c",
3770    cyanaqua: "#00ffff",
3771    darkblue: "#00008b",
3772    darkcyan: "#008b8b",
3773    darkgoldenrod: "#b8860b",
3774    darkgray: "#a9a9a9",
3775    darkgreen: "#006400",
3776    darkgrey: "#a9a9a9",
3777    darkkhaki: "#bdb76b",
3778    darkmagenta: "#8b008b",
3779    darkolivegreen: "#556b2f",
3780    darkorange: "#ff8c00",
3781    darkorchid: "#9932cc",
3782    darkred: "#8b0000",
3783    darksalmon: "#e9967a",
3784    darkseagreen: "#8fbc8f",
3785    darkslateblue: "#483d8b",
3786    darkslategray: "#2f4f4f",
3787    darkslategrey: "#2f4f4f",
3788    darkturquoise: "#00ced1",
3789    darkviolet: "#9400d3",
3790    deeppink: "#ff1493",
3791    deepskyblue: "#00bfff",
3792    dimgray: "#696969",
3793    dimgrey: "#696969",
3794    dodgerblue: "#1e90ff",
3795    firebrick: "#b22222",
3796    floralwhite: "#fffaf0",
3797    forestgreen: "#228b22",
3798    fuchsia: "#ff00ff",
3799    gainsboro: "#dcdcdc",
3800    ghostwhite: "#f8f8ff",
3801    gold: "#ffd700",
3802    goldenrod: "#daa520",
3803    gray: "#808080",
3804    green: "#008000",
3805    greenyellow: "#adff2f",
3806    grey: "#808080",
3807    honeydew: "#f0fff0",
3808    hotpink: "#ff69b4",
3809    indianred: "#cd5c5c",
3810    indigo: "#4b0082",
3811    ivory: "#fffff0",
3812    khaki: "#f0e68c",
3813    lavender: "#e6e6fa",
3814    lavenderblush: "#fff0f5",
3815    lawngreen: "#7cfc00",
3816    lemonchiffon: "#fffacd",
3817    lightblue: "#add8e6",
3818    lightcoral: "#f08080",
3819    lightcyan: "#e0ffff",
3820    lightgoldenrodyellow: "#fafad2",
3821    lightgray: "#d3d3d3",
3822    lightgreen: "#90ee90",
3823    lightgrey: "#d3d3d3",
3824    lightpink: "#ffb6c1",
3825    lightsalmon: "#ffa07a",
3826    lightseagreen: "#20b2aa",
3827    lightskyblue: "#87cefa",
3828    lightslategray: "#778899",
3829    lightslategrey: "#778899",
3830    lightsteelblue: "#b0c4de",
3831    lightyellow: "#ffffe0",
3832    lime: "#00ff00",
3833    limegreen: "#32cd32",
3834    linen: "#faf0e6",
3835    magenta: "#ff00ff",
3836    maroon: "#800000",
3837    mediumaquamarine: "#66cdaa",
3838    mediumblue: "#0000cd",
3839    mediumorchid: "#ba55d3",
3840    mediumpurple: "#9370db",
3841    mediumseagreen: "#3cb371",
3842    mediumslateblue: "#7b68ee",
3843    mediumspringgreen: "#00fa9a",
3844    mediumturquoise: "#48d1cc",
3845    mediumvioletred: "#c71585",
3846    midnightblue: "#191970",
3847    mintcream: "#f5fffa",
3848    mistyrose: "#ffe4e1",
3849    moccasin: "#ffe4b5",
3850    navajowhite: "#ffdead",
3851    navy: "#000080",
3852    oldlace: "#fdf5e6",
3853    olive: "#808000",
3854    olivedrab: "#6b8e23",
3855    orange: "#ffa500",
3856    orangered: "#ff4500",
3857    orchid: "#da70d6",
3858    palegoldenrod: "#eee8aa",
3859    palegreen: "#98fb98",
3860    paleturquoise: "#afeeee",
3861    palevioletred: "#db7093",
3862    papayawhip: "#ffefd5",
3863    peachpuff: "#ffdab9",
3864    peru: "#cd853f",
3865    pink: "#ffc0cb",
3866    plum: "#dda0dd",
3867    powderblue: "#b0e0e6",
3868    purple: "#800080",
3869    rebeccapurple: "#663399",
3870    red: "#ff0000",
3871    rosybrown: "#bc8f8f",
3872    royalblue: "#4169e1",
3873    saddlebrown: "#8b4513",
3874    salmon: "#fa8072",
3875    sandybrown: "#f4a460",
3876    seagreen: "#2e8b57",
3877    seashell: "#fff5ee",
3878    sienna: "#a0522d",
3879    silver: "#c0c0c0",
3880    skyblue: "#87ceeb",
3881    slateblue: "#6a5acd",
3882    slategray: "#708090",
3883    slategrey: "#708090",
3884    snow: "#fffafa",
3885    springgreen: "#00ff7f",
3886    tan: "#d2b48c",
3887    teal: "#008080",
3888    thistle: "#d8bfd8",
3889    transparent: "#00000000",
3890    turquoise: "#40e0d0",
3891    violet: "#ee82ee",
3892    wheat: "#f5deb3",
3893    white: "#ffffff",
3894    whitesmoke: "#f5f5f5",
3895    yellow: "#ffff00",
3896    yellowgreen: "#9acd32"
3897  },
3898  /* API */
3899  parse: (t) => {
3900    t = t.toLowerCase();
3901    const e = Wi.colors[t];
3902    if (e)
3903      return ti.parse(e);
3904  },
3905  stringify: (t) => {
3906    const e = ti.stringify(t);
3907    for (const i in Wi.colors)
3908      if (Wi.colors[i] === e)
3909        return i;
3910  }
3911}, ss = Wi, Ra = {
3912  /* VARIABLES */
3913  re: /^rgba?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?)))?\s*?\)$/i,
3914  /* API */
3915  parse: (t) => {
3916    const e = t.charCodeAt(0);
3917    if (e !== 114 && e !== 82)
3918      return;
3919    const i = t.match(Ra.re);
3920    if (!i)
3921      return;
3922    const [, r, n, o, s, a, l, h, u] = i;
3923    return xr.set({
3924      r: $.channel.clamp.r(n ? parseFloat(r) * 2.55 : parseFloat(r)),
3925      g: $.channel.clamp.g(s ? parseFloat(o) * 2.55 : parseFloat(o)),
3926      b: $.channel.clamp.b(l ? parseFloat(a) * 2.55 : parseFloat(a)),
3927      a: h ? $.channel.clamp.a(u ? parseFloat(h) / 100 : parseFloat(h)) : 1
3928    }, t);
3929  },
3930  stringify: (t) => {
3931    const { r: e, g: i, b: r, a: n } = t;
3932    return n < 1 ? `rgba(${$.lang.round(e)}, ${$.lang.round(i)}, ${$.lang.round(r)}, ${$.lang.round(n)})` : `rgb(${$.lang.round(e)}, ${$.lang.round(i)}, ${$.lang.round(r)})`;
3933  }
3934}, Oi = Ra, Kd = {
3935  /* VARIABLES */
3936  format: {
3937    keyword: ss,
3938    hex: ti,
3939    rgb: Oi,
3940    rgba: Oi,
3941    hsl: Mi,
3942    hsla: Mi
3943  },
3944  /* API */
3945  parse: (t) => {
3946    if (typeof t != "string")
3947      return t;
3948    const e = ti.parse(t) || Oi.parse(t) || Mi.parse(t) || ss.parse(t);
3949    if (e)
3950      return e;
3951    throw new Error(`Unsupported color format: "${t}"`);
3952  },
3953  stringify: (t) => !t.changed && t.color ? t.color : t.type.is(nt.HSL) || t.data.r === void 0 ? Mi.stringify(t) : t.a < 1 || !Number.isInteger(t.r) || !Number.isInteger(t.g) || !Number.isInteger(t.b) ? Oi.stringify(t) : ti.stringify(t)
3954}, Nt = Kd, Zd = (t, e) => {
3955  const i = Nt.parse(t);
3956  for (const r in e)
3957    i[r] = $.channel.clamp[r](e[r]);
3958  return Nt.stringify(i);
3959}, Pa = Zd, Jd = (t, e, i = 0, r = 1) => {
3960  if (typeof t != "number")
3961    return Pa(t, { a: e });
3962  const n = xr.set({
3963    r: $.channel.clamp.r(t),
3964    g: $.channel.clamp.g(e),
3965    b: $.channel.clamp.b(i),
3966    a: $.channel.clamp.a(r)
3967  });
3968  return Nt.stringify(n);
3969}, ei = Jd, Qd = (t) => {
3970  const { r: e, g: i, b: r } = Nt.parse(t), n = 0.2126 * $.channel.toLinear(e) + 0.7152 * $.channel.toLinear(i) + 0.0722 * $.channel.toLinear(r);
3971  return $.lang.round(n);
3972}, tp = Qd, ep = (t) => tp(t) >= 0.5, ip = ep, rp = (t) => !ip(t), Ci = rp, np = (t, e, i) => {
3973  const r = Nt.parse(t), n = r[e], o = $.channel.clamp[e](n + i);
3974  return n !== o && (r[e] = o), Nt.stringify(r);
3975}, qa = np, op = (t, e) => qa(t, "l", e), B = op, sp = (t, e) => qa(t, "l", -e), E = sp, ap = (t, e) => {
3976  const i = Nt.parse(t), r = {};
3977  for (const n in e)
3978    e[n] && (r[n] = i[n] + e[n]);
3979  return Pa(t, r);
3980}, g = ap, lp = (t, e, i = 50) => {
3981  const { r, g: n, b: o, a: s } = Nt.parse(t), { r: a, g: l, b: h, a: u } = Nt.parse(e), f = i / 100, c = f * 2 - 1, p = s - u, k = ((c * p === -1 ? c : (c + p) / (1 + c * p)) + 1) / 2, O = 1 - k, q = r * k + a * O, T = n * k + l * O, U = o * k + h * O, W = s * f + u * (1 - f);
3982  return ei(q, T, U, W);
3983}, hp = lp, cp = (t, e = 100) => {
3984  const i = Nt.parse(t);
3985  return i.r = 255 - i.r, i.g = 255 - i.g, i.b = 255 - i.b, hp(i, t, e);
3986}, _ = cp, ct = (t, e) => e ? g(t, { s: -40, l: 10 }) : g(t, { s: -40, l: -10 }), br = "#ffffff", Tr = "#f2f2f2";
3987let up = class {
3988  constructor() {
3989    this.background = "#f4f4f4", this.primaryColor = "#fff4dd", this.noteBkgColor = "#fff5ad", this.noteTextColor = "#333", this.THEME_COLOR_LIMIT = 12, this.fontFamily = '"trebuchet ms", verdana, arial, sans-serif', this.fontSize = "16px";
3990  }
3991  updateColors() {
3992    var i, r, n, o, s, a, l, h, u, f, c;
3993    if (this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#333"), this.secondaryColor = this.secondaryColor || g(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || g(this.primaryColor, { h: 180, l: 5 }), this.primaryBorderColor = this.primaryBorderColor || ct(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || ct(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || ct(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || ct(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#333", this.secondaryTextColor = this.secondaryTextColor || _(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || _(this.tertiaryColor), this.lineColor = this.lineColor || _(this.background), this.arrowheadColor = this.arrowheadColor || _(this.background), this.textColor = this.textColor || this.primaryTextColor, this.border2 = this.border2 || this.tertiaryBorderColor, this.nodeBkg = this.nodeBkg || this.primaryColor, this.mainBkg = this.mainBkg || this.primaryColor, this.nodeBorder = this.nodeBorder || this.primaryBorderColor, this.clusterBkg = this.clusterBkg || this.tertiaryColor, this.clusterBorder = this.clusterBorder || this.tertiaryBorderColor, this.defaultLinkColor = this.defaultLinkColor || this.lineColor, this.titleColor = this.titleColor || this.tertiaryTextColor, this.edgeLabelBackground = this.edgeLabelBackground || (this.darkMode ? E(this.secondaryColor, 30) : this.secondaryColor), this.nodeTextColor = this.nodeTextColor || this.primaryTextColor, this.actorBorder = this.actorBorder || this.primaryBorderColor, this.actorBkg = this.actorBkg || this.mainBkg, this.actorTextColor = this.actorTextColor || this.primaryTextColor, this.actorLineColor = this.actorLineColor || "grey", this.labelBoxBkgColor = this.labelBoxBkgColor || this.actorBkg, this.signalColor = this.signalColor || this.textColor, this.signalTextColor = this.signalTextColor || this.textColor, this.labelBoxBorderColor = this.labelBoxBorderColor || this.actorBorder, this.labelTextColor = this.labelTextColor || this.actorTextColor, this.loopTextColor = this.loopTextColor || this.actorTextColor, this.activationBorderColor = this.activationBorderColor || E(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || _(this.lineColor), this.sectionBkgColor = this.sectionBkgColor || this.tertiaryColor, this.altSectionBkgColor = this.altSectionBkgColor || "white", this.sectionBkgColor = this.sectionBkgColor || this.secondaryColor, this.sectionBkgColor2 = this.sectionBkgColor2 || this.primaryColor, this.excludeBkgColor = this.excludeBkgColor || "#eeeeee", this.taskBorderColor = this.taskBorderColor || this.primaryBorderColor, this.taskBkgColor = this.taskBkgColor || this.primaryColor, this.activeTaskBorderColor = this.activeTaskBorderColor || this.primaryColor, this.activeTaskBkgColor = this.activeTaskBkgColor || B(this.primaryColor, 23), this.gridColor = this.gridColor || "lightgrey", this.doneTaskBkgColor = this.doneTaskBkgColor || "lightgrey", this.doneTaskBorderColor = this.doneTaskBorderColor || "grey", this.critBorderColor = this.critBorderColor || "#ff8888", this.critBkgColor = this.critBkgColor || "red", this.todayLineColor = this.todayLineColor || "red", this.taskTextColor = this.taskTextColor || this.textColor, this.taskTextOutsideColor = this.taskTextOutsideColor || this.textColor, this.taskTextLightColor = this.taskTextLightColor || this.textColor, this.taskTextColor = this.taskTextColor || this.primaryTextColor, this.taskTextDarkColor = this.taskTextDarkColor || this.textColor, this.taskTextClickableColor = this.taskTextClickableColor || "#003163", this.personBorder = this.personBorder || this.primaryBorderColor, this.personBkg = this.personBkg || this.mainBkg, this.transitionColor = this.transitionColor || this.lineColor, this.transitionLabelColor = this.transitionLabelColor || this.textColor, this.stateLabelColor = this.stateLabelColor || this.stateBkg || this.primaryTextColor, this.stateBkg = this.stateBkg || this.mainBkg, this.labelBackgroun
vendor: 9,677 bytes, lines 3993-4021
3993dColor = 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 || g(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || g(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || g(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || g(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || g(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || g(this.primaryColor, { h: 210, l: 150 }), this.cScale9 = this.cScale9 || g(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || g(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || g(this.primaryColor, { h: 330 }), this.darkMode)
3994      for (let p = 0; p < this.THEME_COLOR_LIMIT; p++)
3995        this["cScale" + p] = E(this["cScale" + p], 75);
3996    else
3997      for (let p = 0; p < this.THEME_COLOR_LIMIT; p++)
3998        this["cScale" + p] = E(this["cScale" + p], 25);
3999    for (let p = 0; p < this.THEME_COLOR_LIMIT; p++)
4000      this["cScaleInv" + p] = this["cScaleInv" + p] || _(this["cScale" + p]);
4001    for (let p = 0; p < this.THEME_COLOR_LIMIT; p++)
4002      this.darkMode ? this["cScalePeer" + p] = this["cScalePeer" + p] || B(this["cScale" + p], 10) : this["cScalePeer" + p] = this["cScalePeer" + p] || E(this["cScale" + p], 10);
4003    this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
4004    for (let p = 0; p < this.THEME_COLOR_LIMIT; p++)
4005      this["cScaleLabel" + p] = this["cScaleLabel" + p] || this.scaleLabelColor;
4006    const e = this.darkMode ? -4 : -1;
4007    for (let p = 0; p < 5; p++)
4008      this["surface" + p] = this["surface" + p] || g(this.mainBkg, { h: 180, s: -15, l: e * (5 + p * 3) }), this["surfacePeer" + p] = this["surfacePeer" + p] || g(this.mainBkg, { h: 180, s: -15, l: e * (8 + p * 3) });
4009    this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || this.primaryColor, this.fillType1 = this.fillType1 || this.secondaryColor, this.fillType2 = this.fillType2 || g(this.primaryColor, { h: 64 }), this.fillType3 = this.fillType3 || g(this.secondaryColor, { h: 64 }), this.fillType4 = this.fillType4 || g(this.primaryColor, { h: -64 }), this.fillType5 = this.fillType5 || g(this.secondaryColor, { h: -64 }), this.fillType6 = this.fillType6 || g(this.primaryColor, { h: 128 }), this.fillType7 = this.fillType7 || g(this.secondaryColor, { h: 128 }), this.pie1 = this.pie1 || this.primaryColor, this.pie2 = this.pie2 || this.secondaryColor, this.pie3 = this.pie3 || this.tertiaryColor, this.pie4 = this.pie4 || g(this.primaryColor, { l: -10 }), this.pie5 = this.pie5 || g(this.secondaryColor, { l: -10 }), this.pie6 = this.pie6 || g(this.tertiaryColor, { l: -10 }), this.pie7 = this.pie7 || g(this.primaryColor, { h: 60, l: -10 }), this.pie8 = this.pie8 || g(this.primaryColor, { h: -60, l: -10 }), this.pie9 = this.pie9 || g(this.primaryColor, { h: 120, l: 0 }), this.pie10 = this.pie10 || g(this.primaryColor, { h: 60, l: -20 }), this.pie11 = this.pie11 || g(this.primaryColor, { h: -60, l: -20 }), this.pie12 = this.pie12 || g(this.primaryColor, { h: 120, l: -10 }), this.pieTitleTextSize = this.pieTitleTextSize || "25px", this.pieTitleTextColor = this.pieTitleTextColor || this.taskTextDarkColor, this.pieSectionTextSize = this.pieSectionTextSize || "17px", this.pieSectionTextColor = this.pieSectionTextColor || this.textColor, this.pieLegendTextSize = this.pieLegendTextSize || "17px", this.pieLegendTextColor = this.pieLegendTextColor || this.taskTextDarkColor, this.pieStrokeColor = this.pieStrokeColor || "black", this.pieStrokeWidth = this.pieStrokeWidth || "2px", this.pieOuterStrokeWidth = this.pieOuterStrokeWidth || "2px", this.pieOuterStrokeColor = this.pieOuterStrokeColor || "black", this.pieOpacity = this.pieOpacity || "0.7", this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || g(this.primaryColor, { r: 5, g: 5, b: 5 }), this.quadrant3Fill = this.quadrant3Fill || g(this.primaryColor, { r: 10, g: 10, b: 10 }), this.quadrant4Fill = this.quadrant4Fill || g(this.primaryColor, { r: 15, g: 15, b: 15 }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || g(this.primaryTextColor, { r: -5, g: -5, b: -5 }), this.quadrant3TextFill = this.quadrant3TextFill || g(this.primaryTextColor, { r: -10, g: -10, b: -10 }), this.quadrant4TextFill = this.quadrant4TextFill || g(this.primaryTextColor, { r: -15, g: -15, b: -15 }), this.quadrantPointFill = this.quadrantPointFill || Ci(this.quadrant1Fill) ? B(this.quadrant1Fill) : E(this.quadrant1Fill), this.quadrantPointTextFill = this.quadrantPointTextFill || this.primaryTextColor, this.quadrantXAxisTextFill = this.quadrantXAxisTextFill || this.primaryTextColor, this.quadrantYAxisTextFill = this.quadrantYAxisTextFill || this.primaryTextColor, this.quadrantInternalBorderStrokeFill = this.quadrantInternalBorderStrokeFill || this.primaryBorderColor, this.quadrantExternalBorderStrokeFill = this.quadrantExternalBorderStrokeFill || this.primaryBorderColor, this.quadrantTitleFill = this.quadrantTitleFill || this.primaryTextColor, this.xyChart = {
4010      backgroundColor: ((i = this.xyChart) == null ? void 0 : i.backgroundColor) || this.background,
4011      titleColor: ((r = this.xyChart) == null ? void 0 : r.titleColor) || this.primaryTextColor,
4012      xAxisTitleColor: ((n = this.xyChart) == null ? void 0 : n.xAxisTitleColor) || this.primaryTextColor,
4013      xAxisLabelColor: ((o = this.xyChart) == null ? void 0 : o.xAxisLabelColor) || this.primaryTextColor,
4014      xAxisTickColor: ((s = this.xyChart) == null ? void 0 : s.xAxisTickColor) || this.primaryTextColor,
4015      xAxisLineColor: ((a = this.xyChart) == null ? void 0 : a.xAxisLineColor) || this.primaryTextColor,
4016      yAxisTitleColor: ((l = this.xyChart) == null ? void 0 : l.yAxisTitleColor) || this.primaryTextColor,
4017      yAxisLabelColor: ((h = this.xyChart) == null ? void 0 : h.yAxisLabelColor) || this.primaryTextColor,
4018      yAxisTickColor: ((u = this.xyChart) == null ? void 0 : u.yAxisTickColor) || this.primaryTextColor,
4019      yAxisLineColor: ((f = this.xyChart) == null ? void 0 : f.yAxisLineColor) || this.primaryTextColor,
4020      plotColorPalette: ((c = this.xyChart) == null ? void 0 : c.plotColorPalette) || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
4021    }, this.requirementBackground = this.requirementBackground || this.primaryColor, this.requirementBorderColor = this.requirementBorderColor || this.primaryBorderColor, this.requirementBorderSize = this.requirementBorderSize || "1", this.requirementTextColor = this.requirementTextColor || this.primaryTextColor, this.relationColor = this.relationColor || this.lineColor, this.relationLabelBackground = this.relationLabelBackground || (this.darkMode ? E(this.secondaryColor, 30) : this.secondaryColor), this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.git0 = this.git0 || this.primaryColor, this.git1 = this.git1 || this.secondaryColor, this.git2 = this.git2 || this.tertiaryColor, this.git3 = this.git3 || g(this.primaryColor, { h: -30 }), this.git4 = this.git4 || g(this.primaryColor, { h: -60 }), this.git5 = this.git5 || g(this.primaryColor, { h: -90 }), this.git6 = this.git6 || g(this.primaryColor, { h: 60 }), this.git7 = this.git7 || g(this.primaryColor, { h: 120 }), this.darkMode ? (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.git0 = E(this.git0, 25), this.git1 = E(this.git1, 25), this.git2 = E(this.git2, 25), this.git3 = E(this.git3, 25), this.git4 = E(this.git4, 25), this.git5 = E(this.git5, 25), this.git6 = E(this.git6, 25), this.git7 = E(this.git7, 25)), this.gitInv0 = this.gitInv0 || _(this.git0), this.gitInv1 = this.gitInv1 || _(this.git1), this.gitInv2 = this.gitInv2 || _(this.git2), this.gitInv3 = this.gitInv3 || _(this.git3), this.gitInv4 = this.gitInv4 || _(this.git4), this.gitInv5 = this.gitInv5 || _(this.git5), this.gitInv6 = this.gitInv6 || _(this.git6), this.gitInv7 = this.gitInv7 || _(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.tagLabelBackgroun
vendor: 5,344 bytes, lines 4021-4046
4021d = 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 || br, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || Tr;
4022  }
4023  calculate(e) {
4024    if (typeof e != "object") {
4025      this.updateColors();
4026      return;
4027    }
4028    const i = Object.keys(e);
4029    i.forEach((r) => {
4030      this[r] = e[r];
4031    }), this.updateColors(), i.forEach((r) => {
4032      this[r] = e[r];
4033    });
4034  }
4035};
4036const fp = (t) => {
4037  const e = new up();
4038  return e.calculate(t), e;
4039};
4040let dp = class {
4041  constructor() {
4042    this.background = "#333", this.primaryColor = "#1f2020", this.secondaryColor = B(this.primaryColor, 16), this.tertiaryColor = g(this.primaryColor, { h: -160 }), this.primaryBorderColor = _(this.background), this.secondaryBorderColor = ct(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = ct(this.tertiaryColor, this.darkMode), this.primaryTextColor = _(this.primaryColor), this.secondaryTextColor = _(this.secondaryColor), this.tertiaryTextColor = _(this.tertiaryColor), this.lineColor = _(this.background), this.textColor = _(this.background), this.mainBkg = "#1f2020", this.secondBkg = "calculated", this.mainContrastColor = "lightgrey", this.darkTextColor = B(_("#323D47"), 10), this.lineColor = "calculated", this.border1 = "#81B1DB", this.border2 = ei(255, 255, 255, 0.25), this.arrowheadColor = "calculated", this.fontFamily = '"trebuchet ms", verdana, arial, sans-serif', this.fontSize = "16px", this.labelBackground = "#181818", this.textColor = "#ccc", this.THEME_COLOR_LIMIT = 12, this.nodeBkg = "calculated", this.nodeBorder = "calculated", this.clusterBkg = "calculated", this.clusterBorder = "calculated", this.defaultLinkColor = "calculated", this.titleColor = "#F9FFFE", this.edgeLabelBackground = "calculated", this.actorBorder = "calculated", this.actorBkg = "calculated", this.actorTextColor = "calculated", this.actorLineColor = "calculated", this.signalColor = "calculated", this.signalTextColor = "calculated", this.labelBoxBkgColor = "calculated", this.labelBoxBorderColor = "calculated", this.labelTextColor = "calculated", this.loopTextColor = "calculated", this.noteBorderColor = "calculated", this.noteBkgColor = "#fff5ad", this.noteTextColor = "calculated", this.activationBorderColor = "calculated", this.activationBkgColor = "calculated", this.sequenceNumberColor = "black", this.sectionBkgColor = E("#EAE8D9", 30), this.altSectionBkgColor = "calculated", this.sectionBkgColor2 = "#EAE8D9", this.excludeBkgColor = E(this.sectionBkgColor, 10), this.taskBorderColor = ei(255, 255, 255, 70), this.taskBkgColor = "calculated", this.taskTextColor = "calculated", this.taskTextLightColor = "calculated", this.taskTextOutsideColor = "calculated", this.taskTextClickableColor = "#003163", this.activeTaskBorderColor = ei(255, 255, 255, 50), this.activeTaskBkgColor = "#81B1DB", this.gridColor = "calculated", this.doneTaskBkgColor = "calculated", this.doneTaskBorderColor = "grey", this.critBorderColor = "#E83737", this.critBkgColor = "#E83737", this.taskTextDarkColor = "calculated", this.todayLineColor = "#DB5757", this.personBorder = this.primaryBorderColor, this.personBkg = this.mainBkg, this.labelColor = "calculated", this.errorBkgColor = "#a44141", this.errorTextColor = "#ddd";
4043  }
4044  updateColors() {
4045    var e, i, r, n, o, s, a, l, h, u, f;
4046    this.secondBkg = B(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 = B(this.labelBackground, 25), this.actorBorder = this.border1, this.actorBkg = this.mainBkg, this.actorTextColor = this.mainContrastColor, this.actorLineColor = this.mainContrastColor, this.signalColor = this.mainContrastColor, this.signalTextColor = this.mainContrastColor, this.labelBoxBkgColor = this.actorBkg, this.labelBoxBorderColor = this.actorBorder, this.labelTextColor = this.mainContrastColor, this.loopTextColor = this.mainContrastColor, this.noteBorderColor = this.secondaryBorderColor, this.noteBkgColor = this.secondBkg, this.noteTextColor = this.secondaryTextColor, this.activationBorderColor = this.border1, this.activationBkgColor = this.secondBkg, this.altSectionBkgColor = this.background, this.taskBkgColor = B(this.mainBkg, 23), this.taskTextColor = this.darkTextColor, this.taskTextLightColor = this.mainContrastColor, this.taskTextOutsideColor = this.taskTextLightColor, this.gridColor = this.mainContrastColor, this.doneTaskBkgColor = this.mainContrastColor, this.taskTextDarkColor = this.darkTextColor, this.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.labelBackgroun
vendor: 4,215 bytes, lines 4046-4058
4046dColor = 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 = g(this.primaryColor, { h: 64 }), this.fillType3 = g(this.secondaryColor, { h: 64 }), this.fillType4 = g(this.primaryColor, { h: -64 }), this.fillType5 = g(this.secondaryColor, { h: -64 }), this.fillType6 = g(this.primaryColor, { h: 128 }), this.fillType7 = g(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 || g(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || g(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || g(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || g(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || g(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || g(this.primaryColor, { h: 210 }), this.cScale9 = this.cScale9 || g(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || g(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || g(this.primaryColor, { h: 330 });
4047    for (let c = 0; c < this.THEME_COLOR_LIMIT; c++)
4048      this["cScaleInv" + c] = this["cScaleInv" + c] || _(this["cScale" + c]);
4049    for (let c = 0; c < this.THEME_COLOR_LIMIT; c++)
4050      this["cScalePeer" + c] = this["cScalePeer" + c] || B(this["cScale" + c], 10);
4051    for (let c = 0; c < 5; c++)
4052      this["surface" + c] = this["surface" + c] || g(this.mainBkg, { h: 30, s: -30, l: -(-10 + c * 4) }), this["surfacePeer" + c] = this["surfacePeer" + c] || g(this.mainBkg, { h: 30, s: -30, l: -(-7 + c * 4) });
4053    this.scaleLabelColor = this.scaleLabelColor || (this.darkMode ? "black" : this.labelTextColor);
4054    for (let c = 0; c < this.THEME_COLOR_LIMIT; c++)
4055      this["cScaleLabel" + c] = this["cScaleLabel" + c] || this.scaleLabelColor;
4056    for (let c = 0; c < this.THEME_COLOR_LIMIT; c++)
4057      this["pie" + c] = this["cScale" + c];
4058    this.pieTitleTextSize = this.pieTitleTextSize || "25px", this.pieTitleTextColor = this.pieTitleTextColor || this.taskTextDarkColor, this.pieSectionTextSize = this.pieSectionTextSize || "17px", this.pieSectionTextColor = this.pieSectionTextColor || this.textColor, this.pieLegendTextSize = this.pieLegendTextSize || "17px", this.pieLegendTextColor = this.pieLegendTextColor || this.taskTextDarkColor, this.pieStrokeColor = this.pieStrokeColor || "black", this.pieStrokeWidth = this.pieStrokeWidth || "2px", this.pieOuterStrokeWidth = this.pieOuterStrokeWidth || "2px", this.pieOuterStrokeColor = this.pieOuterStrokeColor || "black", this.pieOpacity = this.pieOpacity || "0.7", this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || g(this.primaryColor, { r: 5, g: 5, b: 5 }), this.quadrant3Fill = this.quadrant3Fill || g(this.primaryColor, { r: 10, g: 10, b: 10 }), this.quadrant4Fill = this.quadrant4Fill || g(this.primaryColor, { r: 15, g: 15, b: 15 }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || g(this.primaryTextColor, { r: -5, g: -5, b: 
vendor: 4,194 bytes, lines 4058-4070
4058-5 }), this.quadrant3TextFill = this.quadrant3TextFill || g(this.primaryTextColor, { r: -10, g: -10, b: -10 }), this.quadrant4TextFill = this.quadrant4TextFill || g(this.primaryTextColor, { r: -15, g: -15, b: -15 }), this.quadrantPointFill = this.quadrantPointFill || Ci(this.quadrant1Fill) ? B(this.quadrant1Fill) : E(this.quadrant1Fill), this.quadrantPointTextFill = this.quadrantPointTextFill || this.primaryTextColor, this.quadrantXAxisTextFill = this.quadrantXAxisTextFill || this.primaryTextColor, this.quadrantYAxisTextFill = this.quadrantYAxisTextFill || this.primaryTextColor, this.quadrantInternalBorderStrokeFill = this.quadrantInternalBorderStrokeFill || this.primaryBorderColor, this.quadrantExternalBorderStrokeFill = this.quadrantExternalBorderStrokeFill || this.primaryBorderColor, this.quadrantTitleFill = this.quadrantTitleFill || this.primaryTextColor, this.xyChart = {
4059      backgroundColor: ((e = this.xyChart) == null ? void 0 : e.backgroundColor) || this.background,
4060      titleColor: ((i = this.xyChart) == null ? void 0 : i.titleColor) || this.primaryTextColor,
4061      xAxisTitleColor: ((r = this.xyChart) == null ? void 0 : r.xAxisTitleColor) || this.primaryTextColor,
4062      xAxisLabelColor: ((n = this.xyChart) == null ? void 0 : n.xAxisLabelColor) || this.primaryTextColor,
4063      xAxisTickColor: ((o = this.xyChart) == null ? void 0 : o.xAxisTickColor) || this.primaryTextColor,
4064      xAxisLineColor: ((s = this.xyChart) == null ? void 0 : s.xAxisLineColor) || this.primaryTextColor,
4065      yAxisTitleColor: ((a = this.xyChart) == null ? void 0 : a.yAxisTitleColor) || this.primaryTextColor,
4066      yAxisLabelColor: ((l = this.xyChart) == null ? void 0 : l.yAxisLabelColor) || this.primaryTextColor,
4067      yAxisTickColor: ((h = this.xyChart) == null ? void 0 : h.yAxisTickColor) || this.primaryTextColor,
4068      yAxisLineColor: ((u = this.xyChart) == null ? void 0 : u.yAxisLineColor) || this.primaryTextColor,
4069      plotColorPalette: ((f = this.xyChart) == null ? void 0 : f.plotColorPalette) || "#3498db,#2ecc71,#e74c3c,#f1c40f,#bdc3c7,#ffffff,#34495e,#9b59b6,#1abc9c,#e67e22"
4070    }, this.classText = this.primaryTextColor, this.requirementBackground = this.requirementBackground || this.primaryColor, this.requirementBorderColor = this.requirementBorderColor || this.primaryBorderColor, this.requirementBorderSize = this.requirementBorderSize || "1", this.requirementTextColor = this.requirementTextColor || this.primaryTextColor, this.relationColor = this.relationColor || this.lineColor, this.relationLabelBackground = this.relationLabelBackground || (this.darkMode ? E(this.secondaryColor, 30) : this.secondaryColor), this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.git0 = B(this.secondaryColor, 20), this.git1 = B(this.pie2 || this.secondaryColor, 20), this.git2 = B(this.pie3 || this.tertiaryColor, 20), this.git3 = B(this.pie4 || g(this.primaryColor, { h: -30 }), 20), this.git4 = B(this.pie5 || g(this.primaryColor, { h: -60 }), 20), this.git5 = B(this.pie6 || g(this.primaryColor, { h: -90 }), 10), this.git6 = B(this.pie7 || g(this.primaryColor, { h: 60 }), 10), this.git7 = B(this.pie8 || g(this.primaryColor, { h: 120 }), 20), this.gitInv0 = this.gitInv0 || _(this.git0), this.gitInv1 = this.gitInv1 || _(this.git1), this.gitInv2 = this.gitInv2 || _(this.git2), this.gitInv3 = this.gitInv3 || _(this.git3), this.gitInv4 = this.gitInv4 || _(this.git4), this.gitInv5 = this.gitInv5 || _(this.git5), this.gitInv6 = this.gitInv6 || _(this.git6), this.gitInv7 = this.gitInv7 || _(this.git7), this.gitBranchLabel0 = this.gitBranchLabel0 || _(this.labelTextColor), this.gitBranchLabel1 = this.gitBranchLabel1 || this.labelTextColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.labelTextColor, this.gitBranchLabel3 = this.gitBranchLabel3 || _(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.tagLabelBackgroun
vendor: 5,045 bytes, lines 4070-4095
4070d = 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 || B(this.background, 12), this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || B(this.background, 2);
4071  }
4072  calculate(e) {
4073    if (typeof e != "object") {
4074      this.updateColors();
4075      return;
4076    }
4077    const i = Object.keys(e);
4078    i.forEach((r) => {
4079      this[r] = e[r];
4080    }), this.updateColors(), i.forEach((r) => {
4081      this[r] = e[r];
4082    });
4083  }
4084};
4085const pp = (t) => {
4086  const e = new dp();
4087  return e.calculate(t), e;
4088};
4089let gp = class {
4090  constructor() {
4091    this.background = "#f4f4f4", this.primaryColor = "#ECECFF", this.secondaryColor = g(this.primaryColor, { h: 120 }), this.secondaryColor = "#ffffde", this.tertiaryColor = g(this.primaryColor, { h: -160 }), this.primaryBorderColor = ct(this.primaryColor, this.darkMode), this.secondaryBorderColor = ct(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = ct(this.tertiaryColor, this.darkMode), this.primaryTextColor = _(this.primaryColor), this.secondaryTextColor = _(this.secondaryColor), this.tertiaryTextColor = _(this.tertiaryColor), this.lineColor = _(this.background), this.textColor = _(this.background), this.background = "white", this.mainBkg = "#ECECFF", this.secondBkg = "#ffffde", this.lineColor = "#333333", this.border1 = "#9370DB", this.border2 = "#aaaa33", this.arrowheadColor = "#333333", this.fontFamily = '"trebuchet ms", verdana, arial, sans-serif', this.fontSize = "16px", this.labelBackground = "#e8e8e8", this.textColor = "#333", this.THEME_COLOR_LIMIT = 12, this.nodeBkg = "calculated", this.nodeBorder = "calculated", this.clusterBkg = "calculated", this.clusterBorder = "calculated", this.defaultLinkColor = "calculated", this.titleColor = "calculated", this.edgeLabelBackground = "calculated", this.actorBorder = "calculated", this.actorBkg = "calculated", this.actorTextColor = "black", this.actorLineColor = "grey", this.signalColor = "calculated", this.signalTextColor = "calculated", this.labelBoxBkgColor = "calculated", this.labelBoxBorderColor = "calculated", this.labelTextColor = "calculated", this.loopTextColor = "calculated", this.noteBorderColor = "calculated", this.noteBkgColor = "#fff5ad", this.noteTextColor = "calculated", this.activationBorderColor = "#666", this.activationBkgColor = "#f4f4f4", this.sequenceNumberColor = "white", this.sectionBkgColor = "calculated", this.altSectionBkgColor = "calculated", this.sectionBkgColor2 = "calculated", this.excludeBkgColor = "#eeeeee", this.taskBorderColor = "calculated", this.taskBkgColor = "calculated", this.taskTextLightColor = "calculated", this.taskTextColor = this.taskTextLightColor, this.taskTextDarkColor = "calculated", this.taskTextOutsideColor = this.taskTextDarkColor, this.taskTextClickableColor = "calculated", this.activeTaskBorderColor = "calculated", this.activeTaskBkgColor = "calculated", this.gridColor = "calculated", this.doneTaskBkgColor = "calculated", this.doneTaskBorderColor = "calculated", this.critBorderColor = "calculated", this.critBkgColor = "calculated", this.todayLineColor = "calculated", this.sectionBkgColor = ei(102, 102, 255, 0.49), this.altSectionBkgColor = "white", this.sectionBkgColor2 = "#fff400", this.taskBorderColor = "#534fbc", this.taskBkgColor = "#8a90dd", this.taskTextLightColor = "white", this.taskTextColor = "calculated", this.taskTextDarkColor = "black", this.taskTextOutsideColor = "calculated", this.taskTextClickableColor = "#003163", this.activeTaskBorderColor = "#534fbc", this.activeTaskBkgColor = "#bfc7ff", this.gridColor = "lightgrey", this.doneTaskBkgColor = "lightgrey", this.doneTaskBorderColor = "grey", this.critBorderColor = "#ff8888", this.critBkgColor = "red", this.todayLineColor = "red", this.personBorder = this.primaryBorderColor, this.personBkg = this.mainBkg, this.labelColor = "black", this.errorBkgColor = "#552222", this.errorTextColor = "#552222", this.updateColors();
4092  }
4093  updateColors() {
4094    var e, i, r, n, o, s, a, l, h, u, f;
4095    this.cScale0 = this.cScale0 || this.primaryColor, this.cScale1 = this.cScale1 || this.secondaryColor, this.cScale2 = this.cScale2 || this.tertiaryColor, this.cScale3 = this.cScale3 || g(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || g(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || g(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || g(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || g(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || g(this.primaryColor, { h: 210 }), this.cScale9 = this.cScale9 || g(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || g(this.primaryColor, { h: 300 }
vendor: 5,220 bytes, lines 4095-4107
4095), this.cScale11 = this.cScale11 || g(this.primaryColor, { h: 330 }), this["cScalePeer1"] = this["cScalePeer1"] || E(this.secondaryColor, 45), this["cScalePeer2"] = this["cScalePeer2"] || E(this.tertiaryColor, 40);
4096    for (let c = 0; c < this.THEME_COLOR_LIMIT; c++)
4097      this["cScale" + c] = E(this["cScale" + c], 10), this["cScalePeer" + c] = this["cScalePeer" + c] || E(this["cScale" + c], 25);
4098    for (let c = 0; c < this.THEME_COLOR_LIMIT; c++)
4099      this["cScaleInv" + c] = this["cScaleInv" + c] || g(this["cScale" + c], { h: 180 });
4100    for (let c = 0; c < 5; c++)
4101      this["surface" + c] = this["surface" + c] || g(this.mainBkg, { h: 30, l: -(5 + c * 5) }), this["surfacePeer" + c] = this["surfacePeer" + c] || g(this.mainBkg, { h: 30, l: -(7 + c * 5) });
4102    if (this.scaleLabelColor = this.scaleLabelColor !== "calculated" && this.scaleLabelColor ? this.scaleLabelColor : this.labelTextColor, this.labelTextColor !== "calculated") {
4103      this.cScaleLabel0 = this.cScaleLabel0 || _(this.labelTextColor), this.cScaleLabel3 = this.cScaleLabel3 || _(this.labelTextColor);
4104      for (let c = 0; c < this.THEME_COLOR_LIMIT; c++)
4105        this["cScaleLabel" + c] = this["cScaleLabel" + c] || this.labelTextColor;
4106    }
4107    this.nodeBkg = this.mainBkg, this.nodeBorder = this.border1, this.clusterBkg = this.secondBkg, this.clusterBorder = this.border2, this.defaultLinkColor = this.lineColor, this.titleColor = this.textColor, this.edgeLabelBackground = this.labelBackground, this.actorBorder = B(this.border1, 23), this.actorBkg = this.mainBkg, this.labelBoxBkgColor = this.actorBkg, this.signalColor = this.textColor, this.signalTextColor = this.textColor, this.labelBoxBorderColor = this.actorBorder, this.labelTextColor = this.actorTextColor, this.loopTextColor = this.actorTextColor, this.noteBorderColor = this.border2, this.noteTextColor = this.actorTextColor, this.taskTextColor = this.taskTextLightColor, this.taskTextOutsideColor = this.taskTextDarkColor, this.transitionColor = this.transitionColor || this.lineColor, this.transitionLabelColor = this.transitionLabelColor || this.textColor, this.stateLabelColor = this.stateLabelColor || this.stateBkg || this.primaryTextColor, this.stateBkg = this.stateBkg || this.mainBkg, this.labelBackgroundColor = this.labelBackgroundColor || this.stateBkg, this.compositeBackground = this.compositeBackground || this.background || this.tertiaryColor, this.altBackground = this.altBackground || "#f0f0f0", this.compositeTitleBackground = this.compositeTitleBackground || this.mainBkg, this.compositeBorder = this.compositeBorder || this.nodeBorder, this.innerEndBackground = this.nodeBorder, this.specialStateColor = this.lineColor, this.errorBkgColor = this.errorBkgColor || this.tertiaryColor, this.errorTextColor = this.errorTextColor || this.tertiaryTextColor, this.transitionColor = this.transitionColor || this.lineColor, this.classText = this.primaryTextColor, this.fillType0 = this.primaryColor, this.fillType1 = this.secondaryColor, this.fillType2 = g(this.primaryColor, { h: 64 }), this.fillType3 = g(this.secondaryColor, { h: 64 }), this.fillType4 = g(this.primaryColor, { h: -64 }), this.fillType5 = g(this.secondaryColor, { h: -64 }), this.fillType6 = g(this.primaryColor, { h: 128 }), this.fillType7 = g(this.secondaryColor, { h: 128 }), this.pie1 = this.pie1 || this.primaryColor, this.pie2 = this.pie2 || this.secondaryColor, this.pie3 = this.pie3 || g(this.tertiaryColor, { l: -40 }), this.pie4 = this.pie4 || g(this.primaryColor, { l: -10 }), this.pie5 = this.pie5 || g(this.secondaryColor, { l: -30 }), this.pie6 = this.pie6 || g(this.tertiaryColor, { l: -20 }), this.pie7 = this.pie7 || g(this.primaryColor, { h: 60, l: -20 }), this.pie8 = this.pie8 || g(this.primaryColor, { h: -60, l: -40 }), this.pie9 = this.pie9 || g(this.primaryColor, { h: 120, l: -40 }), this.pie10 = this.pie10 || g(this.primaryColor, { h: 60, l: -40 }), this.pie11 = this.pie11 || g(this.primaryColor, { h: -90, l: -40 }), this.pie12 = this.pie12 || g(this.primaryColor, { h: 120, l: -30 }), this.pieTitleTextSize = this.pieTitleTextSize || "25px", this.pieTitleTextColor = this.pieTitleTextColor || this.taskTextDarkColor, this.pieSectionTextSize = this.pieSectionTextSize || "17px", this.pieSectionTextColor = this.pieSectionTextColor || this.textColor, this.pieLegendTextSize = this.pieLegendTextSize || "17px", this.pieLegendTextColor = this.pieLegendTextColor || this.taskTextDarkColor, this.pieStrokeColor = this.pieStrokeColor || "black", this.pieStrokeWidth = this.pieStrokeWidth || "2px", this.pieOuterStrokeWidth = this.pieOuterStrokeWidth || "2px", this.pieOuterStrokeColor = this.pieOuterStrokeColor || "black", this.pieOpacity = this.pieOpacity || "0.7", this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || g(this.primaryColor, { r: 5, g: 5, b: 5 }), this.quadrant3Fill = this.quadrant3Fill || g(this.primaryColor, { r: 10, g: 10, b: 10 }), this.quadrant4Fill = this.quadrant4Fill || g(this.primaryColor, { r: 15, g: 15, b: 15 }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || g(this.primaryTextColor, { r: -5, g: -5, b: 
vendor: 4,571 bytes, lines 4107-4119
4107-5 }), this.quadrant3TextFill = this.quadrant3TextFill || g(this.primaryTextColor, { r: -10, g: -10, b: -10 }), this.quadrant4TextFill = this.quadrant4TextFill || g(this.primaryTextColor, { r: -15, g: -15, b: -15 }), this.quadrantPointFill = this.quadrantPointFill || Ci(this.quadrant1Fill) ? B(this.quadrant1Fill) : E(this.quadrant1Fill), this.quadrantPointTextFill = this.quadrantPointTextFill || this.primaryTextColor, this.quadrantXAxisTextFill = this.quadrantXAxisTextFill || this.primaryTextColor, this.quadrantYAxisTextFill = this.quadrantYAxisTextFill || this.primaryTextColor, this.quadrantInternalBorderStrokeFill = this.quadrantInternalBorderStrokeFill || this.primaryBorderColor, this.quadrantExternalBorderStrokeFill = this.quadrantExternalBorderStrokeFill || this.primaryBorderColor, this.quadrantTitleFill = this.quadrantTitleFill || this.primaryTextColor, this.xyChart = {
4108      backgroundColor: ((e = this.xyChart) == null ? void 0 : e.backgroundColor) || this.background,
4109      titleColor: ((i = this.xyChart) == null ? void 0 : i.titleColor) || this.primaryTextColor,
4110      xAxisTitleColor: ((r = this.xyChart) == null ? void 0 : r.xAxisTitleColor) || this.primaryTextColor,
4111      xAxisLabelColor: ((n = this.xyChart) == null ? void 0 : n.xAxisLabelColor) || this.primaryTextColor,
4112      xAxisTickColor: ((o = this.xyChart) == null ? void 0 : o.xAxisTickColor) || this.primaryTextColor,
4113      xAxisLineColor: ((s = this.xyChart) == null ? void 0 : s.xAxisLineColor) || this.primaryTextColor,
4114      yAxisTitleColor: ((a = this.xyChart) == null ? void 0 : a.yAxisTitleColor) || this.primaryTextColor,
4115      yAxisLabelColor: ((l = this.xyChart) == null ? void 0 : l.yAxisLabelColor) || this.primaryTextColor,
4116      yAxisTickColor: ((h = this.xyChart) == null ? void 0 : h.yAxisTickColor) || this.primaryTextColor,
4117      yAxisLineColor: ((u = this.xyChart) == null ? void 0 : u.yAxisLineColor) || this.primaryTextColor,
4118      plotColorPalette: ((f = this.xyChart) == null ? void 0 : f.plotColorPalette) || "#ECECFF,#8493A6,#FFC3A0,#DCDDE1,#B8E994,#D1A36F,#C3CDE6,#FFB6C1,#496078,#F8F3E3"
4119    }, 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 || g(this.primaryColor, { h: -30 }), this.git4 = this.git4 || g(this.primaryColor, { h: -60 }), this.git5 = this.git5 || g(this.primaryColor, { h: -90 }), this.git6 = this.git6 || g(this.primaryColor, { h: 60 }), this.git7 = this.git7 || g(this.primaryColor, { h: 120 }), this.darkMode ? (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.git0 = E(this.git0, 25), this.git1 = E(this.git1, 25), this.git2 = E(this.git2, 25), this.git3 = E(this.git3, 25), this.git4 = E(this.git4, 25), this.git5 = E(this.git5, 25), this.git6 = E(this.git6, 25), this.git7 = E(this.git7, 25)), this.gitInv0 = this.gitInv0 || E(_(this.git0), 25), this.gitInv1 = this.gitInv1 || _(this.git1), this.gitInv2 = this.gitInv2 || _(this.git2), this.gitInv3 = this.gitInv3 || _(this.git3), this.gitInv4 = this.gitInv4 || _(this.git4), this.gitInv5 = this.gitInv5 || _(this.git5), this.gitInv6 = this.gitInv6 || _(this.git6), this.gitInv7 = this.gitInv7 || _(this.git7), this.gitBranchLabel0 = this.gitBranchLabel0 || _(this.labelTextColor), this.gitBranchLabel1 = this.gitBranchLabel1 || this.labelTextColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.labelTextColor, this.gitBranchLabel3 = this.gitBranchLabel3 || _(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.tagLabelBackgroun
vendor: 4,385 bytes, lines 4119-4144
4119d = 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 || br, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || Tr;
4120  }
4121  calculate(e) {
4122    if (typeof e != "object") {
4123      this.updateColors();
4124      return;
4125    }
4126    const i = Object.keys(e);
4127    i.forEach((r) => {
4128      this[r] = e[r];
4129    }), this.updateColors(), i.forEach((r) => {
4130      this[r] = e[r];
4131    });
4132  }
4133};
4134const mp = (t) => {
4135  const e = new gp();
4136  return e.calculate(t), e;
4137};
4138let yp = class {
4139  constructor() {
4140    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 = B("#cde498", 10), this.primaryBorderColor = ct(this.primaryColor, this.darkMode), this.secondaryBorderColor = ct(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = ct(this.tertiaryColor, this.darkMode), this.primaryTextColor = _(this.primaryColor), this.secondaryTextColor = _(this.secondaryColor), this.tertiaryTextColor = _(this.primaryColor), this.lineColor = _(this.background), this.textColor = _(this.background), this.THEME_COLOR_LIMIT = 12, this.nodeBkg = "calculated", this.nodeBorder = "calculated", this.clusterBkg = "calculated", this.clusterBorder = "calculated", this.defaultLinkColor = "calculated", this.titleColor = "#333", this.edgeLabelBackground = "#e8e8e8", this.actorBorder = "calculated", this.actorBkg = "calculated", this.actorTextColor = "black", this.actorLineColor = "grey", this.signalColor = "#333", this.signalTextColor = "#333", this.labelBoxBkgColor = "calculated", this.labelBoxBorderColor = "#326932", this.labelTextColor = "calculated", this.loopTextColor = "calculated", this.noteBorderColor = "calculated", this.noteBkgColor = "#fff5ad", this.noteTextColor = "calculated", this.activationBorderColor = "#666", this.activationBkgColor = "#f4f4f4", this.sequenceNumberColor = "white", this.sectionBkgColor = "#6eaa49", this.altSectionBkgColor = "white", this.sectionBkgColor2 = "#6eaa49", this.excludeBkgColor = "#eeeeee", this.taskBorderColor = "calculated", this.taskBkgColor = "#487e3a", this.taskTextLightColor = "white", this.taskTextColor = "calculated", this.taskTextDarkColor = "black", this.taskTextOutsideColor = "calculated", this.taskTextClickableColor = "#003163", this.activeTaskBorderColor = "calculated", this.activeTaskBkgColor = "calculated", this.gridColor = "lightgrey", this.doneTaskBkgColor = "lightgrey", this.doneTaskBorderColor = "grey", this.critBorderColor = "#ff8888", this.critBkgColor = "red", this.todayLineColor = "red", this.personBorder = this.primaryBorderColor, this.personBkg = this.mainBkg, this.labelColor = "black", this.errorBkgColor = "#552222", this.errorTextColor = "#552222";
4141  }
4142  updateColors() {
4143    var e, i, r, n, o, s, a, l, h, u, f;
4144    this.actorBorder = E(this.mainBkg, 20), this.actorBkg = this.mainBkg, this.labelBoxBkgColor = this.actorBkg, this.labelTextColor = this.actorTextColor, this.loopTextColor = this.actorTextColor, this.noteBorderColor = this.border2, this.noteTextColor = this.actorTextColor, this.cScale0 = this.cScale0 || this.primaryColor, this.cScale1 = this.cScale1 || this.secondaryColor, this.cScale2 = this.cScale2 || this.tertiaryColor, this.cScale3 = this.cScale3 || g(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || g(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || g(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || g(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || g(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || g(this.primaryColor, { h: 210 }), this.cScale9 = this.cScale9 || g(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || g(this.primaryColor, { h: 300 }
vendor: 4,698 bytes, lines 4144-4154
4144), this.cScale11 = this.cScale11 || g(this.primaryColor, { h: 330 }), this["cScalePeer1"] = this["cScalePeer1"] || E(this.secondaryColor, 45), this["cScalePeer2"] = this["cScalePeer2"] || E(this.tertiaryColor, 40);
4145    for (let c = 0; c < this.THEME_COLOR_LIMIT; c++)
4146      this["cScale" + c] = E(this["cScale" + c], 10), this["cScalePeer" + c] = this["cScalePeer" + c] || E(this["cScale" + c], 25);
4147    for (let c = 0; c < this.THEME_COLOR_LIMIT; c++)
4148      this["cScaleInv" + c] = this["cScaleInv" + c] || g(this["cScale" + c], { h: 180 });
4149    this.scaleLabelColor = this.scaleLabelColor !== "calculated" && this.scaleLabelColor ? this.scaleLabelColor : this.labelTextColor;
4150    for (let c = 0; c < this.THEME_COLOR_LIMIT; c++)
4151      this["cScaleLabel" + c] = this["cScaleLabel" + c] || this.scaleLabelColor;
4152    for (let c = 0; c < 5; c++)
4153      this["surface" + c] = this["surface" + c] || g(this.mainBkg, { h: 30, s: -30, l: -(5 + c * 5) }), this["surfacePeer" + c] = this["surfacePeer" + c] || g(this.mainBkg, { h: 30, s: -30, l: -(8 + c * 5) });
4154    this.nodeBkg = this.mainBkg, this.nodeBorder = this.border1, this.clusterBkg = this.secondBkg, this.clusterBorder = this.border2, this.defaultLinkColor = this.lineColor, this.taskBorderColor = this.border1, this.taskTextColor = this.taskTextLightColor, this.taskTextOutsideColor = this.taskTextDarkColor, this.activeTaskBorderColor = this.taskBorderColor, this.activeTaskBkgColor = this.mainBkg, this.transitionColor = this.transitionColor || this.lineColor, this.transitionLabelColor = this.transitionLabelColor || this.textColor, this.stateLabelColor = this.stateLabelColor || this.stateBkg || this.primaryTextColor, this.stateBkg = this.stateBkg || this.mainBkg, this.labelBackgroundColor = this.labelBackgroundColor || this.stateBkg, this.compositeBackground = this.compositeBackground || this.background || this.tertiaryColor, this.altBackground = this.altBackground || "#f0f0f0", this.compositeTitleBackground = this.compositeTitleBackground || this.mainBkg, this.compositeBorder = this.compositeBorder || this.nodeBorder, this.innerEndBackground = this.primaryBorderColor, this.specialStateColor = this.lineColor, this.errorBkgColor = this.errorBkgColor || this.tertiaryColor, this.errorTextColor = this.errorTextColor || this.tertiaryTextColor, this.transitionColor = this.transitionColor || this.lineColor, this.classText = this.primaryTextColor, this.fillType0 = this.primaryColor, this.fillType1 = this.secondaryColor, this.fillType2 = g(this.primaryColor, { h: 64 }), this.fillType3 = g(this.secondaryColor, { h: 64 }), this.fillType4 = g(this.primaryColor, { h: -64 }), this.fillType5 = g(this.secondaryColor, { h: -64 }), this.fillType6 = g(this.primaryColor, { h: 128 }), this.fillType7 = g(this.secondaryColor, { h: 128 }), this.pie1 = this.pie1 || this.primaryColor, this.pie2 = this.pie2 || this.secondaryColor, this.pie3 = this.pie3 || this.tertiaryColor, this.pie4 = this.pie4 || g(this.primaryColor, { l: -30 }), this.pie5 = this.pie5 || g(this.secondaryColor, { l: -30 }), this.pie6 = this.pie6 || g(this.tertiaryColor, { h: 40, l: -40 }), this.pie7 = this.pie7 || g(this.primaryColor, { h: 60, l: -10 }), this.pie8 = this.pie8 || g(this.primaryColor, { h: -60, l: -10 }), this.pie9 = this.pie9 || g(this.primaryColor, { h: 120, l: 0 }), this.pie10 = this.pie10 || g(this.primaryColor, { h: 60, l: -50 }), this.pie11 = this.pie11 || g(this.primaryColor, { h: -60, l: -50 }), this.pie12 = this.pie12 || g(this.primaryColor, { h: 120, l: -50 }), this.pieTitleTextSize = this.pieTitleTextSize || "25px", this.pieTitleTextColor = this.pieTitleTextColor || this.taskTextDarkColor, this.pieSectionTextSize = this.pieSectionTextSize || "17px", this.pieSectionTextColor = this.pieSectionTextColor || this.textColor, this.pieLegendTextSize = this.pieLegendTextSize || "17px", this.pieLegendTextColor = this.pieLegendTextColor || this.taskTextDarkColor, this.pieStrokeColor = this.pieStrokeColor || "black", this.pieStrokeWidth = this.pieStrokeWidth || "2px", this.pieOuterStrokeWidth = this.pieOuterStrokeWidth || "2px", this.pieOuterStrokeColor = this.pieOuterStrokeColor || "black", this.pieOpacity = this.pieOpacity || "0.7", this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || g(this.primaryColor, { r: 5, g: 5, b: 5 }), this.quadrant3Fill = this.quadrant3Fill || g(this.primaryColor, { r: 10, g: 10, b: 10 }), this.quadrant4Fill = this.quadrant4Fill || g(this.primaryColor, { r: 15, g: 15, b: 15 }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || g(this.primaryTextColor, { r: -5, g: -5, b: 
vendor: 4,568 bytes, lines 4154-4166
4154-5 }), this.quadrant3TextFill = this.quadrant3TextFill || g(this.primaryTextColor, { r: -10, g: -10, b: -10 }), this.quadrant4TextFill = this.quadrant4TextFill || g(this.primaryTextColor, { r: -15, g: -15, b: -15 }), this.quadrantPointFill = this.quadrantPointFill || Ci(this.quadrant1Fill) ? B(this.quadrant1Fill) : E(this.quadrant1Fill), this.quadrantPointTextFill = this.quadrantPointTextFill || this.primaryTextColor, this.quadrantXAxisTextFill = this.quadrantXAxisTextFill || this.primaryTextColor, this.quadrantYAxisTextFill = this.quadrantYAxisTextFill || this.primaryTextColor, this.quadrantInternalBorderStrokeFill = this.quadrantInternalBorderStrokeFill || this.primaryBorderColor, this.quadrantExternalBorderStrokeFill = this.quadrantExternalBorderStrokeFill || this.primaryBorderColor, this.quadrantTitleFill = this.quadrantTitleFill || this.primaryTextColor, this.xyChart = {
4155      backgroundColor: ((e = this.xyChart) == null ? void 0 : e.backgroundColor) || this.background,
4156      titleColor: ((i = this.xyChart) == null ? void 0 : i.titleColor) || this.primaryTextColor,
4157      xAxisTitleColor: ((r = this.xyChart) == null ? void 0 : r.xAxisTitleColor) || this.primaryTextColor,
4158      xAxisLabelColor: ((n = this.xyChart) == null ? void 0 : n.xAxisLabelColor) || this.primaryTextColor,
4159      xAxisTickColor: ((o = this.xyChart) == null ? void 0 : o.xAxisTickColor) || this.primaryTextColor,
4160      xAxisLineColor: ((s = this.xyChart) == null ? void 0 : s.xAxisLineColor) || this.primaryTextColor,
4161      yAxisTitleColor: ((a = this.xyChart) == null ? void 0 : a.yAxisTitleColor) || this.primaryTextColor,
4162      yAxisLabelColor: ((l = this.xyChart) == null ? void 0 : l.yAxisLabelColor) || this.primaryTextColor,
4163      yAxisTickColor: ((h = this.xyChart) == null ? void 0 : h.yAxisTickColor) || this.primaryTextColor,
4164      yAxisLineColor: ((u = this.xyChart) == null ? void 0 : u.yAxisLineColor) || this.primaryTextColor,
4165      plotColorPalette: ((f = this.xyChart) == null ? void 0 : f.plotColorPalette) || "#CDE498,#FF6B6B,#A0D2DB,#D7BDE2,#F0F0F0,#FFC3A0,#7FD8BE,#FF9A8B,#FAF3E0,#FFF176"
4166    }, 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 || g(this.primaryColor, { h: -30 }), this.git4 = this.git4 || g(this.primaryColor, { h: -60 }), this.git5 = this.git5 || g(this.primaryColor, { h: -90 }), this.git6 = this.git6 || g(this.primaryColor, { h: 60 }), this.git7 = this.git7 || g(this.primaryColor, { h: 120 }), this.darkMode ? (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.git0 = E(this.git0, 25), this.git1 = E(this.git1, 25), this.git2 = E(this.git2, 25), this.git3 = E(this.git3, 25), this.git4 = E(this.git4, 25), this.git5 = E(this.git5, 25), this.git6 = E(this.git6, 25), this.git7 = E(this.git7, 25)), this.gitInv0 = this.gitInv0 || _(this.git0), this.gitInv1 = this.gitInv1 || _(this.git1), this.gitInv2 = this.gitInv2 || _(this.git2), this.gitInv3 = this.gitInv3 || _(this.git3), this.gitInv4 = this.gitInv4 || _(this.git4), this.gitInv5 = this.gitInv5 || _(this.git5), this.gitInv6 = this.gitInv6 || _(this.git6), this.gitInv7 = this.gitInv7 || _(this.git7), this.gitBranchLabel0 = this.gitBranchLabel0 || _(this.labelTextColor), this.gitBranchLabel1 = this.gitBranchLabel1 || this.labelTextColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.labelTextColor, this.gitBranchLabel3 = this.gitBranchLabel3 || _(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.tagLabelBackgroun
vendor: 4,579 bytes, lines 4166-4191
4166d = 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 || br, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || Tr;
4167  }
4168  calculate(e) {
4169    if (typeof e != "object") {
4170      this.updateColors();
4171      return;
4172    }
4173    const i = Object.keys(e);
4174    i.forEach((r) => {
4175      this[r] = e[r];
4176    }), this.updateColors(), i.forEach((r) => {
4177      this[r] = e[r];
4178    });
4179  }
4180};
4181const _p = (t) => {
4182  const e = new yp();
4183  return e.calculate(t), e;
4184};
4185class Cp {
4186  constructor() {
4187    this.primaryColor = "#eee", this.contrast = "#707070", this.secondaryColor = B(this.contrast, 55), this.background = "#ffffff", this.tertiaryColor = g(this.primaryColor, { h: -160 }), this.primaryBorderColor = ct(this.primaryColor, this.darkMode), this.secondaryBorderColor = ct(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = ct(this.tertiaryColor, this.darkMode), this.primaryTextColor = _(this.primaryColor), this.secondaryTextColor = _(this.secondaryColor), this.tertiaryTextColor = _(this.tertiaryColor), this.lineColor = _(this.background), this.textColor = _(this.background), this.mainBkg = "#eee", this.secondBkg = "calculated", this.lineColor = "#666", this.border1 = "#999", this.border2 = "calculated", this.note = "#ffa", this.text = "#333", this.critical = "#d42", this.done = "#bbb", this.arrowheadColor = "#333333", this.fontFamily = '"trebuchet ms", verdana, arial, sans-serif', this.fontSize = "16px", this.THEME_COLOR_LIMIT = 12, this.nodeBkg = "calculated", this.nodeBorder = "calculated", this.clusterBkg = "calculated", this.clusterBorder = "calculated", this.defaultLinkColor = "calculated", this.titleColor = "calculated", this.edgeLabelBackground = "white", this.actorBorder = "calculated", this.actorBkg = "calculated", this.actorTextColor = "calculated", this.actorLineColor = "calculated", this.signalColor = "calculated", this.signalTextColor = "calculated", this.labelBoxBkgColor = "calculated", this.labelBoxBorderColor = "calculated", this.labelTextColor = "calculated", this.loopTextColor = "calculated", this.noteBorderColor = "calculated", this.noteBkgColor = "calculated", this.noteTextColor = "calculated", this.activationBorderColor = "#666", this.activationBkgColor = "#f4f4f4", this.sequenceNumberColor = "white", this.sectionBkgColor = "calculated", this.altSectionBkgColor = "white", this.sectionBkgColor2 = "calculated", this.excludeBkgColor = "#eeeeee", this.taskBorderColor = "calculated", this.taskBkgColor = "calculated", this.taskTextLightColor = "white", this.taskTextColor = "calculated", this.taskTextDarkColor = "calculated", this.taskTextOutsideColor = "calculated", this.taskTextClickableColor = "#003163", this.activeTaskBorderColor = "calculated", this.activeTaskBkgColor = "calculated", this.gridColor = "calculated", this.doneTaskBkgColor = "calculated", this.doneTaskBorderColor = "calculated", this.critBkgColor = "calculated", this.critBorderColor = "calculated", this.todayLineColor = "calculated", this.personBorder = this.primaryBorderColor, this.personBkg = this.mainBkg, this.labelColor = "black", this.errorBkgColor = "#552222", this.errorTextColor = "#552222";
4188  }
4189  updateColors() {
4190    var e, i, r, n, o, s, a, l, h, u, f;
4191    this.secondBkg = B(this.contrast, 55), this.border2 = this.contrast, this.actorBorder = B(this.border1, 23), this.actorBkg = this.mainBkg, this.actorTextColor = this.text, this.actorLineColor = this.lineColor, 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 
vendor: 4,333 bytes, lines 4191-4204
4191= this.cScale11 || "#777";
4192    for (let c = 0; c < this.THEME_COLOR_LIMIT; c++)
4193      this["cScaleInv" + c] = this["cScaleInv" + c] || _(this["cScale" + c]);
4194    for (let c = 0; c < this.THEME_COLOR_LIMIT; c++)
4195      this.darkMode ? this["cScalePeer" + c] = this["cScalePeer" + c] || B(this["cScale" + c], 10) : this["cScalePeer" + c] = this["cScalePeer" + c] || E(this["cScale" + c], 10);
4196    this.scaleLabelColor = this.scaleLabelColor || (this.darkMode ? "black" : this.labelTextColor), this.cScaleLabel0 = this.cScaleLabel0 || this.cScale1, this.cScaleLabel2 = this.cScaleLabel2 || this.cScale1;
4197    for (let c = 0; c < this.THEME_COLOR_LIMIT; c++)
4198      this["cScaleLabel" + c] = this["cScaleLabel" + c] || this.scaleLabelColor;
4199    for (let c = 0; c < 5; c++)
4200      this["surface" + c] = this["surface" + c] || g(this.mainBkg, { l: -(5 + c * 5) }), this["surfacePeer" + c] = this["surfacePeer" + c] || g(this.mainBkg, { l: -(8 + c * 5) });
4201    this.nodeBkg = this.mainBkg, this.nodeBorder = this.border1, this.clusterBkg = this.secondBkg, this.clusterBorder = this.border2, this.defaultLinkColor = this.lineColor, this.titleColor = this.text, this.sectionBkgColor = B(this.contrast, 30), this.sectionBkgColor2 = B(this.contrast, 30), this.taskBorderColor = E(this.contrast, 10), this.taskBkgColor = this.contrast, this.taskTextColor = this.taskTextLightColor, this.taskTextDarkColor = this.text, this.taskTextOutsideColor = this.taskTextDarkColor, this.activeTaskBorderColor = this.taskBorderColor, this.activeTaskBkgColor = this.mainBkg, this.gridColor = B(this.border1, 30), this.doneTaskBkgColor = this.done, this.doneTaskBorderColor = this.lineColor, this.critBkgColor = this.critical, this.critBorderColor = E(this.critBkgColor, 10), this.todayLineColor = this.critBkgColor, this.transitionColor = this.transitionColor || "#000", this.transitionLabelColor = this.transitionLabelColor || this.textColor, this.stateLabelColor = this.stateLabelColor || this.stateBkg || this.primaryTextColor, this.stateBkg = this.stateBkg || this.mainBkg, this.labelBackgroundColor = this.labelBackgroundColor || this.stateBkg, this.compositeBackground = this.compositeBackground || this.background || this.tertiaryColor, this.altBackground = this.altBackground || "#f4f4f4", this.compositeTitleBackground = this.compositeTitleBackground || this.mainBkg, this.stateBorder = this.stateBorder || "#000", this.innerEndBackground = this.primaryBorderColor, this.specialStateColor = "#222", this.errorBkgColor = this.errorBkgColor || this.tertiaryColor, this.errorTextColor = this.errorTextColor || this.tertiaryTextColor, this.classText = this.primaryTextColor, this.fillType0 = this.primaryColor, this.fillType1 = this.secondaryColor, this.fillType2 = g(this.primaryColor, { h: 64 }), this.fillType3 = g(this.secondaryColor, { h: 64 }), this.fillType4 = g(this.primaryColor, { h: -64 }), this.fillType5 = g(this.secondaryColor, { h: -64 }), this.fillType6 = g(this.primaryColor, { h: 128 }), this.fillType7 = g(this.secondaryColor, { h: 128 });
4202    for (let c = 0; c < this.THEME_COLOR_LIMIT; c++)
4203      this["pie" + c] = this["cScale" + c];
4204    this.pie12 = this.pie0, this.pieTitleTextSize = this.pieTitleTextSize || "25px", this.pieTitleTextColor = this.pieTitleTextColor || this.taskTextDarkColor, this.pieSectionTextSize = this.pieSectionTextSize || "17px", this.pieSectionTextColor = this.pieSectionTextColor || this.textColor, this.pieLegendTextSize = this.pieLegendTextSize || "17px", this.pieLegendTextColor = this.pieLegendTextColor || this.taskTextDarkColor, this.pieStrokeColor = this.pieStrokeColor || "black", this.pieStrokeWidth = this.pieStrokeWidth || "2px", this.pieOuterStrokeWidth = this.pieOuterStrokeWidth || "2px", this.pieOuterStrokeColor = this.pieOuterStrokeColor || "black", this.pieOpacity = this.pieOpacity || "0.7", this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || g(this.primaryColor, { r: 5, g: 5, b: 5 }), this.quadrant3Fill = this.quadrant3Fill || g(this.primaryColor, { r: 10, g: 10, b: 10 }), this.quadrant4Fill = this.quadrant4Fill || g(this.primaryColor, { r: 15, g: 15, b: 15 }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || g(this.primaryTextColor, { r: -5, g: -5, b: 
vendor: 4,202 bytes, lines 4204-4216
4204-5 }), this.quadrant3TextFill = this.quadrant3TextFill || g(this.primaryTextColor, { r: -10, g: -10, b: -10 }), this.quadrant4TextFill = this.quadrant4TextFill || g(this.primaryTextColor, { r: -15, g: -15, b: -15 }), this.quadrantPointFill = this.quadrantPointFill || Ci(this.quadrant1Fill) ? B(this.quadrant1Fill) : E(this.quadrant1Fill), this.quadrantPointTextFill = this.quadrantPointTextFill || this.primaryTextColor, this.quadrantXAxisTextFill = this.quadrantXAxisTextFill || this.primaryTextColor, this.quadrantYAxisTextFill = this.quadrantYAxisTextFill || this.primaryTextColor, this.quadrantInternalBorderStrokeFill = this.quadrantInternalBorderStrokeFill || this.primaryBorderColor, this.quadrantExternalBorderStrokeFill = this.quadrantExternalBorderStrokeFill || this.primaryBorderColor, this.quadrantTitleFill = this.quadrantTitleFill || this.primaryTextColor, this.xyChart = {
4205      backgroundColor: ((e = this.xyChart) == null ? void 0 : e.backgroundColor) || this.background,
4206      titleColor: ((i = this.xyChart) == null ? void 0 : i.titleColor) || this.primaryTextColor,
4207      xAxisTitleColor: ((r = this.xyChart) == null ? void 0 : r.xAxisTitleColor) || this.primaryTextColor,
4208      xAxisLabelColor: ((n = this.xyChart) == null ? void 0 : n.xAxisLabelColor) || this.primaryTextColor,
4209      xAxisTickColor: ((o = this.xyChart) == null ? void 0 : o.xAxisTickColor) || this.primaryTextColor,
4210      xAxisLineColor: ((s = this.xyChart) == null ? void 0 : s.xAxisLineColor) || this.primaryTextColor,
4211      yAxisTitleColor: ((a = this.xyChart) == null ? void 0 : a.yAxisTitleColor) || this.primaryTextColor,
4212      yAxisLabelColor: ((l = this.xyChart) == null ? void 0 : l.yAxisLabelColor) || this.primaryTextColor,
4213      yAxisTickColor: ((h = this.xyChart) == null ? void 0 : h.yAxisTickColor) || this.primaryTextColor,
4214      yAxisLineColor: ((u = this.xyChart) == null ? void 0 : u.yAxisLineColor) || this.primaryTextColor,
4215      plotColorPalette: ((f = this.xyChart) == null ? void 0 : f.plotColorPalette) || "#EEE,#6BB8E4,#8ACB88,#C7ACD6,#E8DCC2,#FFB2A8,#FFF380,#7E8D91,#FFD8B1,#FAF3E0"
4216    }, this.requirementBackground = this.requirementBackground || this.primaryColor, this.requirementBorderColor = this.requirementBorderColor || this.primaryBorderColor, this.requirementBorderSize = this.requirementBorderSize || "1", this.requirementTextColor = this.requirementTextColor || this.primaryTextColor, this.relationColor = this.relationColor || this.lineColor, this.relationLabelBackground = this.relationLabelBackground || this.edgeLabelBackground, this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.git0 = E(this.pie1, 25) || this.primaryColor, this.git1 = this.pie2 || this.secondaryColor, this.git2 = this.pie3 || this.tertiaryColor, this.git3 = this.pie4 || g(this.primaryColor, { h: -30 }), this.git4 = this.pie5 || g(this.primaryColor, { h: -60 }), this.git5 = this.pie6 || g(this.primaryColor, { h: -90 }), this.git6 = this.pie7 || g(this.primaryColor, { h: 60 }), this.git7 = this.pie8 || g(this.primaryColor, { h: 120 }), this.gitInv0 = this.gitInv0 || _(this.git0), this.gitInv1 = this.gitInv1 || _(this.git1), this.gitInv2 = this.gitInv2 || _(this.git2), this.gitInv3 = this.gitInv3 || _(this.git3), this.gitInv4 = this.gitInv4 || _(this.git4), this.gitInv5 = this.gitInv5 || _(this.git5), this.gitInv6 = this.gitInv6 || _(this.git6), this.gitInv7 = this.gitInv7 || _(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.commitLabelBackgroun
4216d = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || br, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || Tr;
4217  }
4218  calculate(e) {
4219    if (typeof e != "object") {
4220      this.updateColors();
4221      return;
4222    }
4223    const i = Object.keys(e);
4224    i.forEach((r) => {
4225      this[r] = e[r];
4226    }), this.updateColors(), i.forEach((r) => {
4227      this[r] = e[r];
4228    });
4229  }
4230}
4231const xp = (t) => {
4232  const e = new Cp();
4233  return e.calculate(t), e;
4234}, Xt = {
4235  base: {
4236    getThemeVariables: fp
4237  },
4238  dark: {
4239    getThemeVariables: pp
4240  },
4241  default: {
4242    getThemeVariables: mp
4243  },
4244  forest: {
4245    getThemeVariables: _p
4246  },
4247  neutral: {
4248    getThemeVariables: xp
4249  }
4250}, Yt = {
4251  flowchart: {
4252    useMaxWidth: !0,
4253    titleTopMargin: 25,
4254    subGraphTitleMargin: {
4255      top: 0,
4256      bottom: 0
4257    },
4258    diagramPadding: 8,
4259    htmlLabels: !0,
4260    nodeSpacing: 50,
4261    rankSpacing: 50,
4262    curve: "basis",
4263    padding: 15,
4264    defaultRenderer: "dagre-wrapper",
4265    wrappingWidth: 200
4266  },
4267  sequence: {
4268    useMaxWidth: !0,
4269    hideUnusedParticipants: !1,
4270    activationWidth: 10,
4271    diagramMarginX: 50,
4272    diagramMarginY: 10,
4273    actorMargin: 50,
4274    width: 150,
4275    height: 65,
4276    boxMargin: 10,
4277    boxTextMargin: 5,
4278    noteMargin: 10,
4279    messageMargin: 35,
4280    messageAlign: "center",
4281    mirrorActors: !0,
4282    forceMenus: !1,
4283    bottomMarginAdj: 1,
4284    rightAngles: !1,
4285    showSequenceNumbers: !1,
4286    actorFontSize: 14,
4287    actorFontFamily: '"Open Sans", sans-serif',
4288    actorFontWeight: 400,
4289    noteFontSize: 14,
4290    noteFontFamily: '"trebuchet ms", verdana, arial, sans-serif',
4291    noteFontWeight: 400,
4292    noteAlign: "center",
4293    messageFontSize: 16,
4294    messageFontFamily: '"trebuchet ms", verdana, arial, sans-serif',
4295    messageFontWeight: 400,
4296    wrap: !1,
4297    wrapPadding: 10,
4298    labelBoxWidth: 50,
4299    labelBoxHeight: 20
4300  },
4301  gantt: {
4302    useMaxWidth: !0,
4303    titleTopMargin: 25,
4304    barHeight: 20,
4305    barGap: 4,
4306    topPadding: 50,
4307    rightPadding: 75,
4308    leftPadding: 75,
4309    gridLineStartPadding: 35,
4310    fontSize: 11,
4311    sectionFontSize: 11,
4312    numberSectionStyles: 4,
4313    axisFormat: "%Y-%m-%d",
4314    topAxis: !1,
4315    displayMode: "",
4316    weekday: "sunday"
4317  },
4318  journey: {
4319    useMaxWidth: !0,
4320    diagramMarginX: 50,
4321    diagramMarginY: 10,
4322    leftMargin: 150,
4323    width: 150,
4324    height: 50,
4325    boxMargin: 10,
4326    boxTextMargin: 5,
4327    noteMargin: 10,
4328    messageMargin: 35,
4329    messageAlign: "center",
4330    bottomMarginAdj: 1,
4331    rightAngles: !1,
4332    taskFontSize: 14,
4333    taskFontFamily: '"Open Sans", sans-serif',
4334    taskMargin: 50,
4335    activationWidth: 10,
4336    textPlacement: "fo",
4337    actorColours: [
4338      "#8FBC8F",
4339      "#7CFC00",
4340      "#00FFFF",
4341      "#20B2AA",
4342      "#B0E0E6",
4343      "#FFFFE0"
4344    ],
4345    sectionFills: [
4346      "#191970",
4347      "#8B008B",
4348      "#4B0082",
4349      "#2F4F4F",
4350      "#800000",
4351      "#8B4513",
4352      "#00008B"
4353    ],
4354    sectionColours: [
4355      "#fff"
4356    ]
4357  },
4358  class: {
4359    useMaxWidth: !0,
4360    titleTopMargin: 25,
4361    arrowMarkerAbsolute: !1,
4362    dividerMargin: 10,
4363    padding: 5,
4364    textHeight: 10,
4365    defaultRenderer: "dagre-wrapper",
4366    htmlLabels: !1
4367  },
4368  state: {
4369    useMaxWidth: !0,
4370    titleTopMargin: 25,
4371    dividerMargin: 10,
4372    sizeUnit: 5,
4373    padding: 8,
4374    textHeight: 10,
4375    titleShift: -15,
4376    noteMargin: 10,
4377    forkWidth: 70,
4378    forkHeight: 7,
4379    miniPadding: 2,
4380    fontSizeFactor: 5.02,
4381    fontSize: 24,
4382    labelHeight: 16,
4383    edgeLengthFactor: "20",
4384    compositTitleSize: 35,
4385    radius: 5,
4386    defaultRenderer: "dagre-wrapper"
4387  },
4388  er: {
4389    useMaxWidth: !0,
4390    titleTopMargin: 25,
4391    diagramPadding: 20,
4392    layoutDirection: "TB",
4393    minEntityWidth: 100,
4394    minEntityHeight: 75,
4395    entityPadding: 15,
4396    stroke: "gray",
4397    fill: "honeydew",
4398    fontSize: 12
4399  },
4400  pie: {
4401    useMaxWidth: !0,
4402    textPosition: 0.75
4403  },
4404  quadrantChart: {
4405    useMaxWidth: !0,
4406    chartWidth: 500,
4407    chartHeight: 500,
4408    titleFontSize: 20,
4409    titlePadding: 10,
4410    quadrantPadding: 5,
4411    xAxisLabelPadding: 5,
4412    yAxisLabelPadding: 5,
4413    xAxisLabelFontSize: 16,
4414    yAxisLabelFontSize: 16,
4415    quadrantLabelFontSize: 16,
4416    quadrantTextTopPadding: 5,
4417    pointTextPadding: 5,
4418    pointLabelFontSize: 12,
4419    pointRadius: 5,
4420    xAxisPosition: "top",
4421    yAxisPosition: "left",
4422    quadrantInternalBorderStrokeWidth: 1,
vendor: 15,534 bytes, lines 4423-4940
4423    quadrantExternalBorderStrokeWidth: 2
4424  },
4425  xyChart: {
4426    useMaxWidth: !0,
4427    width: 700,
4428    height: 500,
4429    titleFontSize: 20,
4430    titlePadding: 10,
4431    showTitle: !0,
4432    xAxis: {
4433      $ref: "#/$defs/XYChartAxisConfig",
4434      showLabel: !0,
4435      labelFontSize: 14,
4436      labelPadding: 5,
4437      showTitle: !0,
4438      titleFontSize: 16,
4439      titlePadding: 5,
4440      showTick: !0,
4441      tickLength: 5,
4442      tickWidth: 2,
4443      showAxisLine: !0,
4444      axisLineWidth: 2
4445    },
4446    yAxis: {
4447      $ref: "#/$defs/XYChartAxisConfig",
4448      showLabel: !0,
4449      labelFontSize: 14,
4450      labelPadding: 5,
4451      showTitle: !0,
4452      titleFontSize: 16,
4453      titlePadding: 5,
4454      showTick: !0,
4455      tickLength: 5,
4456      tickWidth: 2,
4457      showAxisLine: !0,
4458      axisLineWidth: 2
4459    },
4460    chartOrientation: "vertical",
4461    plotReservedSpacePercent: 50
4462  },
4463  requirement: {
4464    useMaxWidth: !0,
4465    rect_fill: "#f9f9f9",
4466    text_color: "#333",
4467    rect_border_size: "0.5px",
4468    rect_border_color: "#bbb",
4469    rect_min_width: 200,
4470    rect_min_height: 200,
4471    fontSize: 14,
4472    rect_padding: 10,
4473    line_height: 20
4474  },
4475  mindmap: {
4476    useMaxWidth: !0,
4477    padding: 10,
4478    maxNodeWidth: 200
4479  },
4480  timeline: {
4481    useMaxWidth: !0,
4482    diagramMarginX: 50,
4483    diagramMarginY: 10,
4484    leftMargin: 150,
4485    width: 150,
4486    height: 50,
4487    boxMargin: 10,
4488    boxTextMargin: 5,
4489    noteMargin: 10,
4490    messageMargin: 35,
4491    messageAlign: "center",
4492    bottomMarginAdj: 1,
4493    rightAngles: !1,
4494    taskFontSize: 14,
4495    taskFontFamily: '"Open Sans", sans-serif',
4496    taskMargin: 50,
4497    activationWidth: 10,
4498    textPlacement: "fo",
4499    actorColours: [
4500      "#8FBC8F",
4501      "#7CFC00",
4502      "#00FFFF",
4503      "#20B2AA",
4504      "#B0E0E6",
4505      "#FFFFE0"
4506    ],
4507    sectionFills: [
4508      "#191970",
4509      "#8B008B",
4510      "#4B0082",
4511      "#2F4F4F",
4512      "#800000",
4513      "#8B4513",
4514      "#00008B"
4515    ],
4516    sectionColours: [
4517      "#fff"
4518    ],
4519    disableMulticolor: !1
4520  },
4521  gitGraph: {
4522    useMaxWidth: !0,
4523    titleTopMargin: 25,
4524    diagramPadding: 8,
4525    nodeLabel: {
4526      width: 75,
4527      height: 100,
4528      x: -25,
4529      y: 0
4530    },
4531    mainBranchName: "main",
4532    mainBranchOrder: 0,
4533    showCommitLabel: !0,
4534    showBranches: !0,
4535    rotateCommitLabel: !0,
4536    parallelCommits: !1,
4537    arrowMarkerAbsolute: !1
4538  },
4539  c4: {
4540    useMaxWidth: !0,
4541    diagramMarginX: 50,
4542    diagramMarginY: 10,
4543    c4ShapeMargin: 50,
4544    c4ShapePadding: 20,
4545    width: 216,
4546    height: 60,
4547    boxMargin: 10,
4548    c4ShapeInRow: 4,
4549    nextLinePaddingX: 0,
4550    c4BoundaryInRow: 2,
4551    personFontSize: 14,
4552    personFontFamily: '"Open Sans", sans-serif',
4553    personFontWeight: "normal",
4554    external_personFontSize: 14,
4555    external_personFontFamily: '"Open Sans", sans-serif',
4556    external_personFontWeight: "normal",
4557    systemFontSize: 14,
4558    systemFontFamily: '"Open Sans", sans-serif',
4559    systemFontWeight: "normal",
4560    external_systemFontSize: 14,
4561    external_systemFontFamily: '"Open Sans", sans-serif',
4562    external_systemFontWeight: "normal",
4563    system_dbFontSize: 14,
4564    system_dbFontFamily: '"Open Sans", sans-serif',
4565    system_dbFontWeight: "normal",
4566    external_system_dbFontSize: 14,
4567    external_system_dbFontFamily: '"Open Sans", sans-serif',
4568    external_system_dbFontWeight: "normal",
4569    system_queueFontSize: 14,
4570    system_queueFontFamily: '"Open Sans", sans-serif',
4571    system_queueFontWeight: "normal",
4572    external_system_queueFontSize: 14,
4573    external_system_queueFontFamily: '"Open Sans", sans-serif',
4574    external_system_queueFontWeight: "normal",
4575    boundaryFontSize: 14,
4576    boundaryFontFamily: '"Open Sans", sans-serif',
4577    boundaryFontWeight: "normal",
4578    messageFontSize: 12,
4579    messageFontFamily: '"Open Sans", sans-serif',
4580    messageFontWeight: "normal",
4581    containerFontSize: 14,
4582    containerFontFamily: '"Open Sans", sans-serif',
4583    containerFontWeight: "normal",
4584    external_containerFontSize: 14,
4585    external_containerFontFamily: '"Open Sans", sans-serif',
4586    external_containerFontWeight: "normal",
4587    container_dbFontSize: 14,
4588    container_dbFontFamily: '"Open Sans", sans-serif',
4589    container_dbFontWeight: "normal",
4590    external_container_dbFontSize: 14,
4591    external_container_dbFontFamily: '"Open Sans", sans-serif',
4592    external_container_dbFontWeight: "normal",
4593    container_queueFontSize: 14,
4594    container_queueFontFamily: '"Open Sans", sans-serif',
4595    container_queueFontWeight: "normal",
4596    external_container_queueFontSize: 14,
4597    external_container_queueFontFamily: '"Open Sans", sans-serif',
4598    external_container_queueFontWeight: "normal",
4599    componentFontSize: 14,
4600    componentFontFamily: '"Open Sans", sans-serif',
4601    componentFontWeight: "normal",
4602    external_componentFontSize: 14,
4603    external_componentFontFamily: '"Open Sans", sans-serif',
4604    external_componentFontWeight: "normal",
4605    component_dbFontSize: 14,
4606    component_dbFontFamily: '"Open Sans", sans-serif',
4607    component_dbFontWeight: "normal",
4608    external_component_dbFontSize: 14,
4609    external_component_dbFontFamily: '"Open Sans", sans-serif',
4610    external_component_dbFontWeight: "normal",
4611    component_queueFontSize: 14,
4612    component_queueFontFamily: '"Open Sans", sans-serif',
4613    component_queueFontWeight: "normal",
4614    external_component_queueFontSize: 14,
4615    external_component_queueFontFamily: '"Open Sans", sans-serif',
4616    external_component_queueFontWeight: "normal",
4617    wrap: !0,
4618    wrapPadding: 10,
4619    person_bg_color: "#08427B",
4620    person_border_color: "#073B6F",
4621    external_person_bg_color: "#686868",
4622    external_person_border_color: "#8A8A8A",
4623    system_bg_color: "#1168BD",
4624    system_border_color: "#3C7FC0",
4625    system_db_bg_color: "#1168BD",
4626    system_db_border_color: "#3C7FC0",
4627    system_queue_bg_color: "#1168BD",
4628    system_queue_border_color: "#3C7FC0",
4629    external_system_bg_color: "#999999",
4630    external_system_border_color: "#8A8A8A",
4631    external_system_db_bg_color: "#999999",
4632    external_system_db_border_color: "#8A8A8A",
4633    external_system_queue_bg_color: "#999999",
4634    external_system_queue_border_color: "#8A8A8A",
4635    container_bg_color: "#438DD5",
4636    container_border_color: "#3C7FC0",
4637    container_db_bg_color: "#438DD5",
4638    container_db_border_color: "#3C7FC0",
4639    container_queue_bg_color: "#438DD5",
4640    container_queue_border_color: "#3C7FC0",
4641    external_container_bg_color: "#B3B3B3",
4642    external_container_border_color: "#A6A6A6",
4643    external_container_db_bg_color: "#B3B3B3",
4644    external_container_db_border_color: "#A6A6A6",
4645    external_container_queue_bg_color: "#B3B3B3",
4646    external_container_queue_border_color: "#A6A6A6",
4647    component_bg_color: "#85BBF0",
4648    component_border_color: "#78A8D8",
4649    component_db_bg_color: "#85BBF0",
4650    component_db_border_color: "#78A8D8",
4651    component_queue_bg_color: "#85BBF0",
4652    component_queue_border_color: "#78A8D8",
4653    external_component_bg_color: "#CCCCCC",
4654    external_component_border_color: "#BFBFBF",
4655    external_component_db_bg_color: "#CCCCCC",
4656    external_component_db_border_color: "#BFBFBF",
4657    external_component_queue_bg_color: "#CCCCCC",
4658    external_component_queue_border_color: "#BFBFBF"
4659  },
4660  sankey: {
4661    useMaxWidth: !0,
4662    width: 600,
4663    height: 400,
4664    linkColor: "gradient",
4665    nodeAlignment: "justify",
4666    showValues: !0,
4667    prefix: "",
4668    suffix: ""
4669  },
4670  block: {
4671    useMaxWidth: !0,
4672    padding: 8
4673  },
4674  theme: "default",
4675  maxTextSize: 5e4,
4676  maxEdges: 500,
4677  darkMode: !1,
4678  fontFamily: '"trebuchet ms", verdana, arial, sans-serif;',
4679  logLevel: 5,
4680  securityLevel: "strict",
4681  startOnLoad: !0,
4682  arrowMarkerAbsolute: !1,
4683  secure: [
4684    "secure",
4685    "securityLevel",
4686    "startOnLoad",
4687    "maxTextSize",
4688    "maxEdges"
4689  ],
4690  legacyMathML: !1,
4691  deterministicIds: !1,
4692  fontSize: 16
4693}, za = {
4694  ...Yt,
4695  // Set, even though they're `undefined` so that `configKeys` finds these keys
4696  // TODO: Should we replace these with `null` so that they can go in the JSON Schema?
4697  deterministicIDSeed: void 0,
4698  themeCSS: void 0,
4699  // add non-JSON default config values
4700  themeVariables: Xt.default.getThemeVariables(),
4701  sequence: {
4702    ...Yt.sequence,
4703    messageFont: function() {
4704      return {
4705        fontFamily: this.messageFontFamily,
4706        fontSize: this.messageFontSize,
4707        fontWeight: this.messageFontWeight
4708      };
4709    },
4710    noteFont: function() {
4711      return {
4712        fontFamily: this.noteFontFamily,
4713        fontSize: this.noteFontSize,
4714        fontWeight: this.noteFontWeight
4715      };
4716    },
4717    actorFont: function() {
4718      return {
4719        fontFamily: this.actorFontFamily,
4720        fontSize: this.actorFontSize,
4721        fontWeight: this.actorFontWeight
4722      };
4723    }
4724  },
4725  gantt: {
4726    ...Yt.gantt,
4727    tickInterval: void 0,
4728    useWidth: void 0
4729    // can probably be removed since `configKeys` already includes this
4730  },
4731  c4: {
4732    ...Yt.c4,
4733    useWidth: void 0,
4734    personFont: function() {
4735      return {
4736        fontFamily: this.personFontFamily,
4737        fontSize: this.personFontSize,
4738        fontWeight: this.personFontWeight
4739      };
4740    },
4741    external_personFont: function() {
4742      return {
4743        fontFamily: this.external_personFontFamily,
4744        fontSize: this.external_personFontSize,
4745        fontWeight: this.external_personFontWeight
4746      };
4747    },
4748    systemFont: function() {
4749      return {
4750        fontFamily: this.systemFontFamily,
4751        fontSize: this.systemFontSize,
4752        fontWeight: this.systemFontWeight
4753      };
4754    },
4755    external_systemFont: function() {
4756      return {
4757        fontFamily: this.external_systemFontFamily,
4758        fontSize: this.external_systemFontSize,
4759        fontWeight: this.external_systemFontWeight
4760      };
4761    },
4762    system_dbFont: function() {
4763      return {
4764        fontFamily: this.system_dbFontFamily,
4765        fontSize: this.system_dbFontSize,
4766        fontWeight: this.system_dbFontWeight
4767      };
4768    },
4769    external_system_dbFont: function() {
4770      return {
4771        fontFamily: this.external_system_dbFontFamily,
4772        fontSize: this.external_system_dbFontSize,
4773        fontWeight: this.external_system_dbFontWeight
4774      };
4775    },
4776    system_queueFont: function() {
4777      return {
4778        fontFamily: this.system_queueFontFamily,
4779        fontSize: this.system_queueFontSize,
4780        fontWeight: this.system_queueFontWeight
4781      };
4782    },
4783    external_system_queueFont: function() {
4784      return {
4785        fontFamily: this.external_system_queueFontFamily,
4786        fontSize: this.external_system_queueFontSize,
4787        fontWeight: this.external_system_queueFontWeight
4788      };
4789    },
4790    containerFont: function() {
4791      return {
4792        fontFamily: this.containerFontFamily,
4793        fontSize: this.containerFontSize,
4794        fontWeight: this.containerFontWeight
4795      };
4796    },
4797    external_containerFont: function() {
4798      return {
4799        fontFamily: this.external_containerFontFamily,
4800        fontSize: this.external_containerFontSize,
4801        fontWeight: this.external_containerFontWeight
4802      };
4803    },
4804    container_dbFont: function() {
4805      return {
4806        fontFamily: this.container_dbFontFamily,
4807        fontSize: this.container_dbFontSize,
4808        fontWeight: this.container_dbFontWeight
4809      };
4810    },
4811    external_container_dbFont: function() {
4812      return {
4813        fontFamily: this.external_container_dbFontFamily,
4814        fontSize: this.external_container_dbFontSize,
4815        fontWeight: this.external_container_dbFontWeight
4816      };
4817    },
4818    container_queueFont: function() {
4819      return {
4820        fontFamily: this.container_queueFontFamily,
4821        fontSize: this.container_queueFontSize,
4822        fontWeight: this.container_queueFontWeight
4823      };
4824    },
4825    external_container_queueFont: function() {
4826      return {
4827        fontFamily: this.external_container_queueFontFamily,
4828        fontSize: this.external_container_queueFontSize,
4829        fontWeight: this.external_container_queueFontWeight
4830      };
4831    },
4832    componentFont: function() {
4833      return {
4834        fontFamily: this.componentFontFamily,
4835        fontSize: this.componentFontSize,
4836        fontWeight: this.componentFontWeight
4837      };
4838    },
4839    external_componentFont: function() {
4840      return {
4841        fontFamily: this.external_componentFontFamily,
4842        fontSize: this.external_componentFontSize,
4843        fontWeight: this.external_componentFontWeight
4844      };
4845    },
4846    component_dbFont: function() {
4847      return {
4848        fontFamily: this.component_dbFontFamily,
4849        fontSize: this.component_dbFontSize,
4850        fontWeight: this.component_dbFontWeight
4851      };
4852    },
4853    external_component_dbFont: function() {
4854      return {
4855        fontFamily: this.external_component_dbFontFamily,
4856        fontSize: this.external_component_dbFontSize,
4857        fontWeight: this.external_component_dbFontWeight
4858      };
4859    },
4860    component_queueFont: function() {
4861      return {
4862        fontFamily: this.component_queueFontFamily,
4863        fontSize: this.component_queueFontSize,
4864        fontWeight: this.component_queueFontWeight
4865      };
4866    },
4867    external_component_queueFont: function() {
4868      return {
4869        fontFamily: this.external_component_queueFontFamily,
4870        fontSize: this.external_component_queueFontSize,
4871        fontWeight: this.external_component_queueFontWeight
4872      };
4873    },
4874    boundaryFont: function() {
4875      return {
4876        fontFamily: this.boundaryFontFamily,
4877        fontSize: this.boundaryFontSize,
4878        fontWeight: this.boundaryFontWeight
4879      };
4880    },
4881    messageFont: function() {
4882      return {
4883        fontFamily: this.messageFontFamily,
4884        fontSize: this.messageFontSize,
4885        fontWeight: this.messageFontWeight
4886      };
4887    }
4888  },
4889  pie: {
4890    ...Yt.pie,
4891    useWidth: 984
4892  },
4893  xyChart: {
4894    ...Yt.xyChart,
4895    useWidth: void 0
4896  },
4897  requirement: {
4898    ...Yt.requirement,
4899    useWidth: void 0
4900  },
4901  gitGraph: {
4902    ...Yt.gitGraph,
4903    // TODO: This is a temporary override for `gitGraph`, since every other
4904    //       diagram does have `useMaxWidth`, but instead sets it to `true`.
4905    //       Should we set this to `true` instead?
4906    useMaxWidth: !1
4907  },
4908  sankey: {
4909    ...Yt.sankey,
4910    // this is false, unlike every other diagram (other than gitGraph)
4911    // TODO: can we make this default to `true` instead?
4912    useMaxWidth: !1
4913  }
4914}, Wa = (t, e = "") => Object.keys(t).reduce((i, r) => Array.isArray(t[r]) ? i : typeof t[r] == "object" && t[r] !== null ? [...i, e + r, ...Wa(t[r], "")] : [...i, e + r], []), bp = new Set(Wa(za, "")), Tp = za, ir = (t) => {
4915  if (L.debug("sanitizeDirective called with", t), !(typeof t != "object" || t == null)) {
4916    if (Array.isArray(t)) {
4917      t.forEach((e) => ir(e));
4918      return;
4919    }
4920    for (const e of Object.keys(t)) {
4921      if (L.debug("Checking key", e), e.startsWith("__") || e.includes("proto") || e.includes("constr") || !bp.has(e) || t[e] == null) {
4922        L.debug("sanitize deleting key: ", e), delete t[e];
4923        continue;
4924      }
4925      if (typeof t[e] == "object") {
4926        L.debug("sanitizing object", e), ir(t[e]);
4927        continue;
4928      }
4929      const i = ["themeCSS", "fontFamily", "altFontFamily"];
4930      for (const r of i)
4931        e.includes(r) && (L.debug("sanitizing css option", e), t[e] = kp(t[e]));
4932    }
4933    if (t.themeVariables)
4934      for (const e of Object.keys(t.themeVariables)) {
4935        const i = t.themeVariables[e];
4936        i != null && i.match && !i.match(/^[\d "#%(),.;A-Za-z]+$/) && (t.themeVariables[e] = "");
4937      }
4938    L.debug("After sanitization", t);
4939  }
4940}
4940, kp = (t) => {
4941  let e = 0, i = 0;
4942  for (const r of t) {
4943    if (e < i)
4944      return "{ /* ERROR: Unbalanced CSS */ }";
4945    r === "{" ? e++ : r === "}" && i++;
4946  }
4947  return e !== i ? "{ /* ERROR: Unbalanced CSS */ }" : t;
4948}, Ha = /^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s, ii = /%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi, Sp = /\s*%%.*\n/gm;
4949class ja extends Error {
4950  constructor(e) {
4951    super(e), this.name = "UnknownDiagramError";
4952  }
4953}
4954const Oe = {}, kr = function(t, e) {
4955  t = t.replace(Ha, "").replace(ii, "").replace(Sp, `
4956`);
4957  for (const [i, { detector: r }] of Object.entries(Oe))
4958    if (r(t, e))
4959      return i;
4960  throw new ja(
4961    `No diagram type detected matching given configuration for text: ${t}`
4962  );
4963}, Ua = (...t) => {
4964  for (const { id: e, detector: i, loader: r } of t)
4965    Ya(e, i, r);
4966}, Ya = (t, e, i) => {
4967  Oe[t] ? L.error(`Detector with key ${t} already exists`) : Oe[t] = { detector: e, loader: i }, L.debug(`Detector with key ${t} added${i ? " with loader" : ""}`);
4968}, vp = (t) => Oe[t].loader, pn = (t, e, { depth: i = 2, clobber: r = !1 } = {}) => {
4969  const n = { depth: i, clobber: r };
4970  return Array.isArray(e) && !Array.isArray(t) ? (e.forEach((o) => pn(t, o, n)), t) : Array.isArray(e) && Array.isArray(t) ? (e.forEach((o) => {
4971    t.includes(o) || t.push(o);
4972  }), t) : t === void 0 || i <= 0 ? t != null && typeof t == "object" && typeof e == "object" ? Object.assign(t, e) : e : (e !== void 0 && typeof t == "object" && typeof e == "object" && Object.keys(e).forEach((o) => {
4973    typeof e[o] == "object" && (t[o] === void 0 || typeof t[o] == "object") ? (t[o] === void 0 && (t[o] = Array.isArray(e[o]) ? [] : {}), t[o] = pn(t[o], e[o], { depth: i - 1, clobber: r })) : (r || typeof t[o] != "object" && typeof e[o] != "object") && (t[o] = e[o]);
4974  }), t);
4975}, ot = pn;
4976var wp = typeof global == "object" && global && global.Object === Object && global;
4977const Ga = wp;
4978var Bp = typeof self == "object" && self && self.Object === Object && self, Fp = Ga || Bp || Function("return this")();
4979const qt = Fp;
4980var Ap = qt.Symbol;
4981const rr = Ap;
4982var Va = Object.prototype, Lp = Va.hasOwnProperty, Ep = Va.toString, Ke = rr ? rr.toStringTag : void 0;
4983function Mp(t) {
4984  var e = Lp.call(t, Ke), i = t[Ke];
4985  try {
4986    t[Ke] = void 0;
4987    var r = !0;
4988  } catch {
4989  }
4990  var n = Ep.call(t);
4991  return r && (e ? t[Ke] = i : delete t[Ke]), n;
4992}
4993var Op = Object.prototype, $p = Op.toString;
4994function Ip(t) {
4995  return $p.call(t);
4996}
4997var Dp = "[object Null]", Np = "[object Undefined]", as = rr ? rr.toStringTag : void 0;
4998function Re(t) {
4999  return t == null ? t === void 0 ? Np : Dp : as && as in Object(t) ? Mp(t) : Ip(t);
5000}
5001function _e(t) {
5002  var e = typeof t;
5003  return t != null && (e == "object" || e == "function");
5004}
5005var Rp = "[object AsyncFunction]", Pp = "[object Function]", qp = "[object GeneratorFunction]", zp = "[object Proxy]";
5006function Pn(t) {
5007  if (!_e(t))
5008    return !1;
5009  var e = Re(t);
5010  return e == Pp || e == qp || e == Rp || e == zp;
5011}
5012var Wp = qt["__core-js_shared__"];
5013const Vr = Wp;
5014var ls = function() {
5015  var t = /[^.]+$/.exec(Vr && Vr.keys && Vr.keys.IE_PROTO || "");
5016  return t ? "Symbol(src)_1." + t : "";
5017}();
5018function Hp(t) {
5019  return !!ls && ls in t;
5020}
5021var jp = Function.prototype, Up = jp.toString;
5022function Ce(t) {
5023  if (t != null) {
5024    try {
5025      return Up.call(t);
5026    } catch {
5027    }
5028    try {
5029      return t + "";
5030    } catch {
5031    }
5032  }
5033  return "";
5034}
5035var Yp = /[\\^$.*+?()[\]{}|]/g, Gp = /^\[object .+?Constructor\]$/, Vp = Function.prototype, Xp = Object.prototype, Kp = Vp.toString, Zp = Xp.hasOwnProperty, Jp = RegExp(
5036  "^" + Kp.call(Zp).replace(Yp, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
5037);
5038function Qp(t) {
5039  if (!_e(t) || Hp(t))
5040    return !1;
5041  var e = Pn(t) ? Jp : Gp;
5042  return e.test(Ce(t));
5043}
5044function tg(t, e) {
5045  return t == null ? void 0 : t[e];
5046}
5047function xe(t, e) {
5048  var i = tg(t, e);
5049  return Qp(i) ? i : void 0;
5050}
5051var eg = xe(Object, "create");
5052const ui = eg;
5053function ig() {
5054  this.__data__ = ui ? ui(null) : {}, this.size = 0;
5055}
5056function rg(t) {
5057  var e = this.has(t) && delete this.__data__[t];
5058  return this.size -= e ? 1 : 0, e;
5059}
5060var ng = "__lodash_hash_undefined__", og = Object.prototype, sg = og.hasOwnProperty;
5061function ag(t) {
5062  var e = this.__data__;
5063  if (ui) {
5064    var i = e[t];
5065    return i === ng ? void 0 : i;
5066  }
5067  return sg.call(e, t) ? e[t] : void 0;
5068}
5069var lg = Object.prototype, hg = lg.hasOwnProperty;
5070function cg(t) {
5071  var e = this.__data__;
5072  return ui ? e[t] !== void 0 : hg.call(e, t);
5073}
5074var ug = "__lodash_hash_undefined__";
5075function fg(t, e) {
5076  var i = this.__data__;
5077  return this.size += this.has(t) ? 0 : 1, i[t] = ui && e === void 0 ? ug : e, this;
5078}
5079function me(t) {
5080  var e = -1, i = t == null ? 0 : t.length;
5081  for (this.clear(); ++e < i; ) {
5082    var r = t[e];
5083    this.set(r[0], r[1]);
5084  }
5085}
5086me.prototype.clear = ig;
5087me.prototype.delete = rg;
5088me.prototype.get = ag;
5089me.prototype.has = cg;
5090me.prototype.set = fg;
5091function dg() {
5092  this.__data__ = [], this.size = 0;
5093}
5094function Sr(t, e) {
5095  return t === e || t !== t && e !== e;
5096}
5097function vr(t, e) {
5098  for (var i = t.length; i--; )
5099    if (Sr(t[i][0], e))
5100      return i;
5101  return -1;
5102}
5103var pg = Array.prototype, gg = pg.splice;
5104function mg(t) {
5105  var e = this.__data__, i = vr(e, t);
5106  if (i < 0)
5107    return !1;
5108  var r = e.length - 1;
5109  return i == r ? e.pop() : gg.call(e, i, 1), --this.size, !0;
5110}
5111function yg(t) {
5112  var e = this.__data__, i = vr(e, t);
5113  return i < 0 ? void 0 : e[i][1];
5114}
5115function _g(t) {
5116  return vr(this.__data__, t) > -1;
5117}
5118function Cg(t, e) {
5119  var i = this.__data__, r = vr(i, t);
5120  return r < 0 ? (++this.size, i.push([t, e])) : i[r][1] = e, this;
5121}
5122function Zt(t) {
5123  var e = -1, i = t == null ? 0 : t.length;
5124  for (this.clear(); ++e < i; ) {
5125    var r = t[e];
5126    this.set(r[0], r[1]);
5127  }
5128}
5129Zt.prototype.clear = dg;
5130Zt.prototype.delete = mg;
5131Zt.prototype.get = yg;
5132Zt.prototype.has = _g;
5133Zt.prototype.set = Cg;
5134var xg = xe(qt, "Map");
5135const fi = xg;
5136function bg() {
5137  this.size = 0, this.__data__ = {
5138    hash: new me(),
5139    map: new (fi || Zt)(),
5140    string: new me()
5141  };
5142}
5143function Tg(t) {
5144  var e = typeof t;
5145  return e == "string" || e == "number" || e == "symbol" || e == "boolean" ? t !== "__proto__" : t === null;
5146}
5147function wr(t, e) {
5148  var i = t.__data__;
5149  return Tg(e) ? i[typeof e == "string" ? "string" : "hash"] : i.map;
5150}
5151function kg(t) {
5152  var e = wr(this, t).delete(t);
5153  return this.size -= e ? 1 : 0, e;
5154}
5155function Sg(t) {
5156  return wr(this, t).get(t);
5157}
5158function vg(t) {
5159  return wr(this, t).has(t);
5160}
5161function wg(t, e) {
5162  var i = wr(this, t), r = i.size;
5163  return i.set(t, e), this.size += i.size == r ? 0 : 1, this;
5164}
5165function se(t) {
5166  var e = -1, i = t == null ? 0 : t.length;
5167  for (this.clear(); ++e < i; ) {
5168    var r = t[e];
5169    this.set(r[0], r[1]);
5170  }
5171}
5172se.prototype.clear = bg;
5173se.prototype.delete = kg;
5174se.prototype.get = Sg;
5175se.prototype.has = vg;
5176se.prototype.set = wg;
5177var Bg = "Expected a function";
5178function xi(t, e) {
5179  if (typeof t != "function" || e != null && typeof e != "function")
5180    throw new TypeError(Bg);
5181  var i = function() {
5182    var r = arguments, n = e ? e.apply(this, r) : r[0], o = i.cache;
5183    if (o.has(n))
5184      return o.get(n);
5185    var s = t.apply(this, r);
5186    return i.cache = o.set(n, s) || o, s;
5187  };
5188  return i.cache = new (xi.Cache || se)(), i;
5189}
5190xi.Cache = se;
5191function Fg() {
5192  this.__data__ = new Zt(), this.size = 0;
5193}
5194function Ag(t) {
5195  var e = this.__data__, i = e.delete(t);
5196  return this.size = e.size, i;
5197}
5198function Lg(t) {
5199  return this.__data__.get(t);
5200}
5201function Eg(t) {
5202  return this.__data__.has(t);
5203}
5204var Mg = 200;
5205function Og(t, e) {
5206  var i = this.__data__;
5207  if (i instanceof Zt) {
5208    var r = i.__data__;
5209    if (!fi || r.length < Mg - 1)
5210      return r.push([t, e]), this.size = ++i.size, this;
5211    i = this.__data__ = new se(r);
5212  }
5213  return i.set(t, e), this.size = i.size, this;
5214}
5215function Pe(t) {
5216  var e = this.__data__ = new Zt(t);
5217  this.size = e.size;
5218}
5219Pe.prototype.clear = Fg;
5220Pe.prototype.delete = Ag;
5221Pe.prototype.get = Lg;
5222Pe.prototype.has = Eg;
5223Pe.prototype.set = Og;
5224var $g = function() {
5225  try {
5226    var t = xe(Object, "defineProperty");
5227    return t({}, "", {}), t;
5228  } catch {
5229  }
5230}();
5231const nr = $g;
5232function qn(t, e, i) {
5233  e == "__proto__" && nr ? nr(t, e, {
5234    configurable: !0,
5235    enumerable: !0,
5236    value: i,
5237    writable: !0
5238  }) : t[e] = i;
5239}
5240function gn(t, e, i) {
5241  (i !== void 0 && !Sr(t[e], i) || i === void 0 && !(e in t)) && qn(t, e, i);
5242}
5243function Ig(t) {
5244  return function(e, i, r) {
5245    for (var n = -1, o = Object(e), s = r(e), a = s.length; a--; ) {
5246      var l = s[t ? a : ++n];
5247      if (i(o[l], l, o) === !1)
5248        break;
5249    }
5250    return e;
5251  };
5252}
5253var Dg = Ig();
5254const Ng = Dg;
5255var Xa = typeof exports == "object" && exports && !exports.nodeType && exports, hs = Xa && typeof module == "object" && module && !module.nodeType && module, Rg = hs && hs.exports === Xa, cs = Rg ? qt.Buffer : void 0, us = cs ? cs.allocUnsafe : void 0;
5256function Pg(t, e) {
5257  if (e)
5258    return t.slice();
5259  var i = t.length, r = us ? us(i) : new t.constructor(i);
5260  return t.copy(r), r;
5261}
5262var qg = qt.Uint8Array;
5263const fs = qg;
5264function zg(t) {
5265  var e = new t.constructor(t.byteLength);
5266  return new fs(e).set(new fs(t)), e;
5267}
5268function Wg(t, e) {
5269  var i = e ? zg(t.buffer) : t.buffer;
5270  return new t.constructor(i, t.byteOffset, t.length);
5271}
5272function Hg(t, e) {
5273  var i = -1, r = t.length;
5274  for (e || (e = Array(r)); ++i < r; )
5275    e[i] = t[i];
5276  return e;
5277}
5278var ds = Object.create, jg = function() {
5279  function t() {
5280  }
5281  return function(e) {
5282    if (!_e(e))
5283      return {};
5284    if (ds)
5285      return ds(e);
5286    t.prototype = e;
5287    var i = new t();
5288    return t.prototype = void 0, i;
5289  };
5290}();
5291const Ug = jg;
5292function Ka(t, e) {
5293  return function(i) {
5294    return t(e(i));
5295  };
5296}
5297var Yg = Ka(Object.getPrototypeOf, Object);
5298const Za = Yg;
5299var Gg = Object.prototype;
5300function Br(t) {
5301  var e = t && t.constructor, i = typeof e == "function" && e.prototype || Gg;
5302  return t === i;
5303}
5304function Vg(t) {
5305  return typeof t.constructor == "function" && !Br(t) ? Ug(Za(t)) : {};
5306}
5307function bi(t) {
5308  return t != null && typeof t == "object";
5309}
5310var Xg = "[object Arguments]";
5311function ps(t) {
5312  return bi(t) && Re(t) == Xg;
5313}
5314var Ja = Object.prototype, Kg = Ja.hasOwnProperty, Zg = Ja.propertyIsEnumerable, Jg = ps(function() {
5315  return arguments;
5316}()) ? ps : function(t) {
5317  return bi(t) && Kg.call(t, "callee") && !Zg.call(t, "callee");
5318};
5319const or = Jg;
5320var Qg = Array.isArray;
5321const sr = Qg;
5322var tm = 9007199254740991;
5323function Qa(t) {
5324  return typeof t == "number" && t > -1 && t % 1 == 0 && t <= tm;
5325}
5326function Fr(t) {
5327  return t != null && Qa(t.length) && !Pn(t);
5328}
5329function em(t) {
5330  return bi(t) && Fr(t);
5331}
5332function im() {
5333  return !1;
5334}
5335var tl = typeof exports == "object" && exports && !exports.nodeType && exports, gs = tl && typeof module == "object" && module && !module.nodeType && module, rm = gs && gs.exports === tl, ms = rm ? qt.Buffer : void 0, nm = ms ? ms.isBuffer : void 0, om = nm || im;
5336const zn = om;
5337var sm = "[object Object]", am = Function.prototype, lm = Object.prototype, el = am.toString, hm = lm.hasOwnProperty, cm = el.call(Object);
5338function um(t) {
5339  if (!bi(t) || Re(t) != sm)
5340    return !1;
5341  var e = Za(t);
5342  if (e === null)
5343    return !0;
5344  var i = hm.call(e, "constructor") && e.constructor;
5345  return typeof i == "function" && i instanceof i && el.call(i) == cm;
5346}
5347var fm = "[object Arguments]", dm = "[object Array]", pm = "[object Boolean]", gm = "[object Date]", mm = "[object Error]", ym = "[object Function]", _m = "[object Map]", Cm = "[object Number]", xm = "[object Object]", bm = "[object RegExp]", Tm = "[object Set]", km = "[object String]", Sm = "[object WeakMap]", vm = "[object ArrayBuffer]", wm = "[object DataView]", Bm = "[object Float32Array]", Fm = "[object Float64Array]", Am = "[object Int8Array]", Lm = "[object Int16Array]", Em = "[object Int32Array]", Mm = "[object Uint8Array]", Om = "[object Uint8ClampedArray]", $m = "[object Uint16Array]", Im = "[object Uint32Array]", X = {};
5348X[Bm] = X[Fm] = X[Am] = X[Lm] = X[Em] = X[Mm] = X[Om] = X[$m] = X[Im] = !0;
5349X[fm] = X[dm] = X[vm] = X[pm] = X[wm] = X[gm] = X[mm] = X[ym] = X[_m] = X[Cm] = X[xm] = X[bm] = X[Tm] = X[km] = X[Sm] = !1;
5350function Dm(t) {
5351  return bi(t) && Qa(t.length) && !!X[Re(t)];
5352}
5353function Nm(t) {
5354  return function(e) {
5355    return t(e);
5356  };
5357}
5358var il = typeof exports == "object" && exports && !exports.nodeType && exports, ri = il && typeof module == "object" && module && !module.nodeType && module, Rm = ri && ri.exports === il, Xr = Rm && Ga.process, Pm = function() {
5359  try {
vendor: 4,818 bytes, lines 5360-5530
5360    var t = ri && ri.require && ri.require("util").types;
5361    return t || Xr && Xr.binding && Xr.binding("util");
5362  } catch {
5363  }
5364}();
5365const ys = Pm;
5366var _s = ys && ys.isTypedArray, qm = _s ? Nm(_s) : Dm;
5367const Wn = qm;
5368function mn(t, e) {
5369  if (!(e === "constructor" && typeof t[e] == "function") && e != "__proto__")
5370    return t[e];
5371}
5372var zm = Object.prototype, Wm = zm.hasOwnProperty;
5373function Hm(t, e, i) {
5374  var r = t[e];
5375  (!(Wm.call(t, e) && Sr(r, i)) || i === void 0 && !(e in t)) && qn(t, e, i);
5376}
5377function jm(t, e, i, r) {
5378  var n = !i;
5379  i || (i = {});
5380  for (var o = -1, s = e.length; ++o < s; ) {
5381    var a = e[o], l = r ? r(i[a], t[a], a, i, t) : void 0;
5382    l === void 0 && (l = t[a]), n ? qn(i, a, l) : Hm(i, a, l);
5383  }
5384  return i;
5385}
5386function Um(t, e) {
5387  for (var i = -1, r = Array(t); ++i < t; )
5388    r[i] = e(i);
5389  return r;
5390}
5391var Ym = 9007199254740991, Gm = /^(?:0|[1-9]\d*)$/;
5392function rl(t, e) {
5393  var i = typeof t;
5394  return e = e ?? Ym, !!e && (i == "number" || i != "symbol" && Gm.test(t)) && t > -1 && t % 1 == 0 && t < e;
5395}
5396var Vm = Object.prototype, Xm = Vm.hasOwnProperty;
5397function Km(t, e) {
5398  var i = sr(t), r = !i && or(t), n = !i && !r && zn(t), o = !i && !r && !n && Wn(t), s = i || r || n || o, a = s ? Um(t.length, String) : [], l = a.length;
5399  for (var h in t)
5400    (e || Xm.call(t, h)) && !(s && // Safari 9 has enumerable `arguments.length` in strict mode.
5401    (h == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
5402    n && (h == "offset" || h == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
5403    o && (h == "buffer" || h == "byteLength" || h == "byteOffset") || // Skip index properties.
5404    rl(h, l))) && a.push(h);
5405  return a;
5406}
5407function Zm(t) {
5408  var e = [];
5409  if (t != null)
5410    for (var i in Object(t))
5411      e.push(i);
5412  return e;
5413}
5414var Jm = Object.prototype, Qm = Jm.hasOwnProperty;
5415function t0(t) {
5416  if (!_e(t))
5417    return Zm(t);
5418  var e = Br(t), i = [];
5419  for (var r in t)
5420    r == "constructor" && (e || !Qm.call(t, r)) || i.push(r);
5421  return i;
5422}
5423function nl(t) {
5424  return Fr(t) ? Km(t, !0) : t0(t);
5425}
5426function e0(t) {
5427  return jm(t, nl(t));
5428}
5429function i0(t, e, i, r, n, o, s) {
5430  var a = mn(t, i), l = mn(e, i), h = s.get(l);
5431  if (h) {
5432    gn(t, i, h);
5433    return;
5434  }
5435  var u = o ? o(a, l, i + "", t, e, s) : void 0, f = u === void 0;
5436  if (f) {
5437    var c = sr(l), p = !c && zn(l), m = !c && !p && Wn(l);
5438    u = l, c || p || m ? sr(a) ? u = a : em(a) ? u = Hg(a) : p ? (f = !1, u = Pg(l, !0)) : m ? (f = !1, u = Wg(l, !0)) : u = [] : um(l) || or(l) ? (u = a, or(a) ? u = e0(a) : (!_e(a) || Pn(a)) && (u = Vg(l))) : f = !1;
5439  }
5440  f && (s.set(l, u), n(u, l, r, o, s), s.delete(l)), gn(t, i, u);
5441}
5442function ol(t, e, i, r, n) {
5443  t !== e && Ng(e, function(o, s) {
5444    if (n || (n = new Pe()), _e(o))
5445      i0(t, e, s, i, ol, r, n);
5446    else {
5447      var a = r ? r(mn(t, s), o, s + "", t, e, n) : void 0;
5448      a === void 0 && (a = o), gn(t, s, a);
5449    }
5450  }, nl);
5451}
5452function sl(t) {
5453  return t;
5454}
5455function r0(t, e, i) {
5456  switch (i.length) {
5457    case 0:
5458      return t.call(e);
5459    case 1:
5460      return t.call(e, i[0]);
5461    case 2:
5462      return t.call(e, i[0], i[1]);
5463    case 3:
5464      return t.call(e, i[0], i[1], i[2]);
5465  }
5466  return t.apply(e, i);
5467}
5468var Cs = Math.max;
5469function n0(t, e, i) {
5470  return e = Cs(e === void 0 ? t.length - 1 : e, 0), function() {
5471    for (var r = arguments, n = -1, o = Cs(r.length - e, 0), s = Array(o); ++n < o; )
5472      s[n] = r[e + n];
5473    n = -1;
5474    for (var a = Array(e + 1); ++n < e; )
5475      a[n] = r[n];
5476    return a[e] = i(s), r0(t, this, a);
5477  };
5478}
5479function o0(t) {
5480  return function() {
5481    return t;
5482  };
5483}
5484var s0 = nr ? function(t, e) {
5485  return nr(t, "toString", {
5486    configurable: !0,
5487    enumerable: !1,
5488    value: o0(e),
5489    writable: !0
5490  });
5491} : sl;
5492const a0 = s0;
5493var l0 = 800, h0 = 16, c0 = Date.now;
5494function u0(t) {
5495  var e = 0, i = 0;
5496  return function() {
5497    var r = c0(), n = h0 - (r - i);
5498    if (i = r, n > 0) {
5499      if (++e >= l0)
5500        return arguments[0];
5501    } else
5502      e = 0;
5503    return t.apply(void 0, arguments);
5504  };
5505}
5506var f0 = u0(a0);
5507const d0 = f0;
5508function p0(t, e) {
5509  return d0(n0(t, e, sl), t + "");
5510}
5511function g0(t, e, i) {
5512  if (!_e(i))
5513    return !1;
5514  var r = typeof e;
5515  return (r == "number" ? Fr(i) && rl(e, i.length) : r == "string" && e in i) ? Sr(i[e], t) : !1;
5516}
5517function m0(t) {
5518  return p0(function(e, i) {
5519    var r = -1, n = i.length, o = n > 1 ? i[n - 1] : void 0, s = n > 2 ? i[2] : void 0;
5520    for (o = t.length > 3 && typeof o == "function" ? (n--, o) : void 0, s && g0(i[0], i[1], s) && (o = n < 3 ? void 0 : o, n = 1), e = Object(e); ++r < n; ) {
5521      var a = i[r];
5522      a && t(e, a, r, o);
5523    }
5524    return e;
5525  });
5526}
5527var y0 = m0(function(t, e, i) {
5528  ol(t, e, i);
5529});
5530const _0 = y0, C0 = "​", x0 = {
5531  curveBasis: jf,
5532  curveBasisClosed: Uf,
5533  curveBasisOpen: Yf,
5534  curveBumpX: Wf,
5535  curveBumpY: Hf,
5536  curveBundle: Gf,
5537  curveCardinalClosed: Xf,
5538  curveCardinalOpen: Kf,
5539  curveCardinal: Vf,
5540  curveCatmullRomClosed: Jf,
5541  curveCatmullRomOpen: Qf,
5542  curveCatmullRom: Zf,
5543  curveLinear: zf,
5544  curveLinearClosed: td,
5545  curveMonotoneX: ed,
5546  curveMonotoneY: id,
5547  curveNatural: rd,
5548  curveStep: nd,
5549  curveStepAfter: sd,
5550  curveStepBefore: od
5551}, b0 = /\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi, T0 = function(t, e) {
5552  const i = al(t, /(?:init\b)|(?:initialize\b)/);
5553  let r = {};
5554  if (Array.isArray(i)) {
5555    const s = i.map((a) => a.args);
5556    ir(s), r = ot(r, [...s]);
5557  } else
5558    r = i.args;
5559  if (!r)
5560    return;
5561  let n = kr(t, e);
5562  const o = "config";
5563  return r[o] !== void 0 && (n === "flowchart-v2" && (n = "flowchart"), r[n] = r[o], delete r[o]), r;
5564}, al = function(t, e = null) {
5565  try {
5566    const i = new RegExp(
5567      `[%]{2}(?![{]${b0.source})(?=[}][%]{2}).*
5568`,
5569      "ig"
5570    );
5571    t = t.trim().replace(i, "").replace(/'/gm, '"'), L.debug(
5572      `Detecting diagram directive${e !== null ? " type:" + e : ""} based on the text:${t}`
5573    );
5574    let r;
5575    const n = [];
5576    for (; (r = ii.exec(t)) !== null; )
5577      if (r.index === ii.lastIndex && ii.lastIndex++, r && !e || e && r[1] && r[1].match(e) || e && r[2] && r[2].match(e)) {
5578        const o = r[1] ? r[1] : r[2], s = r[3] ? r[3].trim() : r[4] ? JSON.parse(r[4].trim()) : null;
5579        n.push({ type: o, args: s });
5580      }
5581    return n.length === 0 ? { type: t, args: null } : n.length === 1 ? n[0] : n;
5582  } catch (i) {
5583    return L.error(
5584      `ERROR: ${i.message} - Unable to parse directive type: '${e}' based on the text: '${t}'`
5585    ), { type: void 0, args: null };
5586  }
5587}, k0 = function(t) {
5588  return t.replace(ii, "");
5589}, S0 = function(t, e) {
5590  for (const [i, r] of e.entries())
5591    if (r.match(t))
5592      return i;
5593  return -1;
5594};
5595function v0(t, e) {
5596  if (!t)
5597    return e;
5598  const i = `curve${t.charAt(0).toUpperCase() + t.slice(1)}`;
5599  return x0[i] ?? e;
5600}
5601function w0(t, e) {
5602  const i = t.trim();
5603  if (i)
5604    return e.securityLevel !== "loose" ? js.sanitizeUrl(i) : i;
5605}
5606const B0 = (t, ...e) => {
5607  const i = t.split("."), r = i.length - 1, n = i[r];
5608  let o = window;
5609  for (let s = 0; s < r; s++)
5610    if (o = o[i[s]], !o) {
5611      L.error(`Function name: ${t} not found in window`);
5612      return;
5613    }
5614  o[n](...e);
5615};
5616function ll(t, e) {
5617  return !t || !e ? 0 : Math.sqrt(Math.pow(e.x - t.x, 2) + Math.pow(e.y - t.y, 2));
5618}
5619function F0(t) {
5620  let e, i = 0;
5621  t.forEach((n) => {
5622    i += ll(n, e), e = n;
5623  });
5624  const r = i / 2;
5625  return Hn(t, r);
5626}
5627function A0(t) {
5628  return t.length === 1 ? t[0] : F0(t);
5629}
5630const xs = (t, e = 2) => {
5631  const i = Math.pow(10, e);
5632  return Math.round(t * i) / i;
5633}, Hn = (t, e) => {
5634  let i, r = e;
5635  for (const n of t) {
5636    if (i) {
5637      const o = ll(n, i);
5638      if (o < r)
5639        r -= o;
5640      else {
5641        const s = r / o;
5642        if (s <= 0)
5643          return i;
5644        if (s >= 1)
5645          return { x: n.x, y: n.y };
5646        if (s > 0 && s < 1)
5647          return {
5648            x: xs((1 - s) * i.x + s * n.x, 5),
5649            y: xs((1 - s) * i.y + s * n.y, 5)
5650          };
5651      }
5652    }
5653    i = n;
5654  }
5655  throw new Error("Could not find a suitable point for the given distance");
5656}, L0 = (t, e, i) => {
5657  L.info(`our points ${JSON.stringify(e)}`), e[0] !== i && (e = e.reverse());
5658  const n = Hn(e, 25), o = t ? 10 : 5, s = Math.atan2(e[0].y - n.y, e[0].x - n.x), a = { x: 0, y: 0 };
5659  return a.x = Math.sin(s) * o + (e[0].x + n.x) / 2, a.y = -Math.cos(s) * o + (e[0].y + n.y) / 2, a;
5660};
5661function E0(t, e, i) {
5662  const r = structuredClone(i);
5663  L.info("our points", r), e !== "start_left" && e !== "start_right" && r.reverse();
5664  const n = 25 + t, o = Hn(r, n), s = 10 + t * 0.5, a = Math.atan2(r[0].y - o.y, r[0].x - o.x), l = { x: 0, y: 0 };
5665  return e === "start_left" ? (l.x = Math.sin(a + Math.PI) * s + (r[0].x + o.x) / 2, l.y = -Math.cos(a + Math.PI) * s + (r[0].y + o.y) / 2) : e === "end_right" ? (l.x = Math.sin(a - Math.PI) * s + (r[0].x + o.x) / 2 - 5, l.y = -Math.cos(a - Math.PI) * s + (r[0].y + o.y) / 2 - 5) : e === "end_left" ? (l.x = Math.sin(a) * s + (r[0].x + o.x) / 2 - 5, l.y = -Math.cos(a) * s + (r[0].y + o.y) / 2 - 5) : (l.x = Math.sin(a) * s + (r[0].x + o.x) / 2, l.y = -Math.cos(a) * s + (r[0].y + o.y) / 2), l;
5666}
5667function M0(t) {
5668  let e = "", i = "";
5669  for (const r of t)
5670    r !== void 0 && (r.startsWith("color:") || r.startsWith("text-align:") ? i = i + r + ";" : e = e + r + ";");
5671  return { style: e, labelStyle: i };
5672}
5673let bs = 0;
5674const O0 = () => (bs++, "id-" + Math.random().toString(36).substr(2, 12) + "-" + bs);
5675function $0(t) {
5676  let e = "";
vendor: 8,120 bytes, lines 5677-5969
5677  const i = "0123456789abcdef", r = i.length;
5678  for (let n = 0; n < t; n++)
5679    e += i.charAt(Math.floor(Math.random() * r));
5680  return e;
5681}
5682const I0 = (t) => $0(t.length), D0 = function() {
5683  return {
5684    x: 0,
5685    y: 0,
5686    fill: void 0,
5687    anchor: "start",
5688    style: "#666",
5689    width: 100,
5690    height: 100,
5691    textMargin: 0,
5692    rx: 0,
5693    ry: 0,
5694    valign: void 0,
5695    text: ""
5696  };
5697}, N0 = function(t, e) {
5698  const i = e.text.replace(Rn.lineBreakRegex, " "), [, r] = Un(e.fontSize), n = t.append("text");
5699  n.attr("x", e.x), n.attr("y", e.y), n.style("text-anchor", e.anchor), n.style("font-family", e.fontFamily), n.style("font-size", r), n.style("font-weight", e.fontWeight), n.attr("fill", e.fill), e.class !== void 0 && n.attr("class", e.class);
5700  const o = n.append("tspan");
5701  return o.attr("x", e.x + e.textMargin * 2), o.attr("fill", e.fill), o.text(i), n;
5702}, R0 = xi(
5703  (t, e, i) => {
5704    if (!t || (i = Object.assign(
5705      { fontSize: 12, fontWeight: 400, fontFamily: "Arial", joinWith: "<br/>" },
5706      i
5707    ), Rn.lineBreakRegex.test(t)))
5708      return t;
5709    const r = t.split(" "), n = [];
5710    let o = "";
5711    return r.forEach((s, a) => {
5712      const l = ar(`${s} `, i), h = ar(o, i);
5713      if (l > e) {
5714        const { hyphenatedStrings: c, remainingWord: p } = P0(s, e, "-", i);
5715        n.push(o, ...c), o = p;
5716      } else
5717        h + l >= e ? (n.push(o), o = s) : o = [o, s].filter(Boolean).join(" ");
5718      a + 1 === r.length && n.push(o);
5719    }), n.filter((s) => s !== "").join(i.joinWith);
5720  },
5721  (t, e, i) => `${t}${e}${i.fontSize}${i.fontWeight}${i.fontFamily}${i.joinWith}`
5722), P0 = xi(
5723  (t, e, i = "-", r) => {
5724    r = Object.assign(
5725      { fontSize: 12, fontWeight: 400, fontFamily: "Arial", margin: 0 },
5726      r
5727    );
5728    const n = [...t], o = [];
5729    let s = "";
5730    return n.forEach((a, l) => {
5731      const h = `${s}${a}`;
5732      if (ar(h, r) >= e) {
5733        const f = l + 1, c = n.length === f, p = `${h}${i}`;
5734        o.push(c ? h : p), s = "";
5735      } else
5736        s = h;
5737    }), { hyphenatedStrings: o, remainingWord: s };
5738  },
5739  (t, e, i = "-", r) => `${t}${e}${i}${r.fontSize}${r.fontWeight}${r.fontFamily}`
5740);
5741function q0(t, e) {
5742  return jn(t, e).height;
5743}
5744function ar(t, e) {
5745  return jn(t, e).width;
5746}
5747const jn = xi(
5748  (t, e) => {
5749    const { fontSize: i = 12, fontFamily: r = "Arial", fontWeight: n = 400 } = e;
5750    if (!t)
5751      return { width: 0, height: 0 };
5752    const [, o] = Un(i), s = ["sans-serif", r], a = t.split(Rn.lineBreakRegex), l = [], h = Tt("body");
5753    if (!h.remove)
5754      return { width: 0, height: 0, lineHeight: 0 };
5755    const u = h.append("svg");
5756    for (const c of s) {
5757      let p = 0;
5758      const m = { width: 0, height: 0, lineHeight: 0 };
5759      for (const k of a) {
5760        const O = D0();
5761        O.text = k || C0;
5762        const q = N0(u, O).style("font-size", o).style("font-weight", n).style("font-family", c), T = (q._groups || q)[0][0].getBBox();
5763        if (T.width === 0 && T.height === 0)
5764          throw new Error("svg element not in render tree");
5765        m.width = Math.round(Math.max(m.width, T.width)), p = Math.round(T.height), m.height += p, m.lineHeight = Math.round(Math.max(m.lineHeight, p));
5766      }
5767      l.push(m);
5768    }
5769    u.remove();
5770    const f = isNaN(l[1].height) || isNaN(l[1].width) || isNaN(l[1].lineHeight) || l[0].height > l[1].height && l[0].width > l[1].width && l[0].lineHeight > l[1].lineHeight ? 0 : 1;
5771    return l[f];
5772  },
5773  (t, e) => `${t}${e.fontSize}${e.fontWeight}${e.fontFamily}`
5774);
5775class z0 {
5776  constructor(e = !1, i) {
5777    this.count = 0, this.count = i ? i.length : 0, this.next = e ? () => this.count++ : () => Date.now();
5778  }
5779}
5780let $i;
5781const W0 = function(t) {
5782  return $i = $i || document.createElement("div"), t = escape(t).replace(/%26/g, "&").replace(/%23/g, "#").replace(/%3B/g, ";"), $i.innerHTML = t, unescape($i.textContent);
5783};
5784function hl(t) {
5785  return "str" in t;
5786}
5787const H0 = (t, e, i, r) => {
5788  var o;
5789  if (!r)
5790    return;
5791  const n = (o = t.node()) == null ? void 0 : o.getBBox();
5792  n && t.append("text").text(r).attr("x", n.x + n.width / 2).attr("y", -i).attr("class", e);
5793}, Un = (t) => {
5794  if (typeof t == "number")
5795    return [t, t + "px"];
5796  const e = parseInt(t ?? "", 10);
5797  return Number.isNaN(e) ? [void 0, void 0] : t === String(e) ? [e, t + "px"] : [e, t];
5798};
5799function cl(t, e) {
5800  return _0({}, t, e);
5801}
5802const ni = {
5803  assignWithDepth: ot,
5804  wrapLabel: R0,
5805  calculateTextHeight: q0,
5806  calculateTextWidth: ar,
5807  calculateTextDimensions: jn,
5808  cleanAndMerge: cl,
5809  detectInit: T0,
5810  detectDirective: al,
5811  isSubstringInArray: S0,
5812  interpolateToCurve: v0,
5813  calcLabelPosition: A0,
5814  calcCardinalityPosition: L0,
5815  calcTerminalLabelPosition: E0,
5816  formatUrl: w0,
5817  getStylesFromArray: M0,
5818  generateId: O0,
5819  random: I0,
5820  runFunc: B0,
5821  entityDecode: W0,
5822  insertTitle: H0,
5823  parseFontSize: Un,
5824  InitIDGenerator: z0
5825}, j0 = function(t) {
5826  let e = t;
5827  return e = e.replace(/style.*:\S*#.*;/g, function(i) {
5828    return i.substring(0, i.length - 1);
5829  }), e = e.replace(/classDef.*:\S*#.*;/g, function(i) {
5830    return i.substring(0, i.length - 1);
5831  }), e = e.replace(/#\w+;/g, function(i) {
5832    const r = i.substring(1, i.length - 1);
5833    return /^\+?\d+$/.test(r) ? "fl°°" + r + "¶ß" : "fl°" + r + "¶ß";
5834  }), e;
5835}, U0 = function(t) {
5836  return t.replace(/fl°°/g, "&#").replace(/fl°/g, "&").replace(/¶ß/g, ";");
5837};
5838var ul = "comm", fl = "rule", dl = "decl", Y0 = "@import", G0 = "@keyframes", V0 = "@layer", pl = Math.abs, Yn = String.fromCharCode;
5839function gl(t) {
5840  return t.trim();
5841}
5842function Hi(t, e, i) {
5843  return t.replace(e, i);
5844}
5845function X0(t, e, i) {
5846  return t.indexOf(e, i);
5847}
5848function di(t, e) {
5849  return t.charCodeAt(e) | 0;
5850}
5851function pi(t, e, i) {
5852  return t.slice(e, i);
5853}
5854function Gt(t) {
5855  return t.length;
5856}
5857function K0(t) {
5858  return t.length;
5859}
5860function Ii(t, e) {
5861  return e.push(t), t;
5862}
5863var Ar = 1, $e = 1, ml = 0, vt = 0, Z = 0, qe = "";
5864function Gn(t, e, i, r, n, o, s, a) {
5865  return { value: t, root: e, parent: i, type: r, props: n, children: o, line: Ar, column: $e, length: s, return: "", siblings: a };
5866}
5867function Z0() {
5868  return Z;
5869}
5870function J0() {
5871  return Z = vt > 0 ? di(qe, --vt) : 0, $e--, Z === 10 && ($e = 1, Ar--), Z;
5872}
5873function Et() {
5874  return Z = vt < ml ? di(qe, vt++) : 0, $e++, Z === 10 && ($e = 1, Ar++), Z;
5875}
5876function de() {
5877  return di(qe, vt);
5878}
5879function ji() {
5880  return vt;
5881}
5882function Lr(t, e) {
5883  return pi(qe, t, e);
5884}
5885function yn(t) {
5886  switch (t) {
5887    case 0:
5888    case 9:
5889    case 10:
5890    case 13:
5891    case 32:
5892      return 5;
5893    case 33:
5894    case 43:
5895    case 44:
5896    case 47:
5897    case 62:
5898    case 64:
5899    case 126:
5900    case 59:
5901    case 123:
5902    case 125:
5903      return 4;
5904    case 58:
5905      return 3;
5906    case 34:
5907    case 39:
5908    case 40:
5909    case 91:
5910      return 2;
5911    case 41:
5912    case 93:
5913      return 1;
5914  }
5915  return 0;
5916}
5917function Q0(t) {
5918  return Ar = $e = 1, ml = Gt(qe = t), vt = 0, [];
5919}
5920function ty(t) {
5921  return qe = "", t;
5922}
5923function Kr(t) {
5924  return gl(Lr(vt - 1, _n(t === 91 ? t + 2 : t === 40 ? t + 1 : t)));
5925}
5926function ey(t) {
5927  for (; (Z = de()) && Z < 33; )
5928    Et();
5929  return yn(t) > 2 || yn(Z) > 3 ? "" : " ";
5930}
5931function iy(t, e) {
5932  for (; --e && Et() && !(Z < 48 || Z > 102 || Z > 57 && Z < 65 || Z > 70 && Z < 97); )
5933    ;
5934  return Lr(t, ji() + (e < 6 && de() == 32 && Et() == 32));
5935}
5936function _n(t) {
5937  for (; Et(); )
5938    switch (Z) {
5939      case t:
5940        return vt;
5941      case 34:
5942      case 39:
5943        t !== 34 && t !== 39 && _n(Z);
5944        break;
5945      case 40:
5946        t === 41 && _n(t);
5947        break;
5948      case 92:
5949        Et();
5950        break;
5951    }
5952  return vt;
5953}
5954function ry(t, e) {
5955  for (; Et() && t + Z !== 47 + 10; )
5956    if (t + Z === 42 + 42 && de() === 47)
5957      break;
5958  return "/*" + Lr(e, vt - 1) + "*" + Yn(t === 47 ? t : Et());
5959}
5960function ny(t) {
5961  for (; !yn(de()); )
5962    Et();
5963  return Lr(t, vt);
5964}
5965function oy(t) {
5966  return ty(Ui("", null, null, null, [""], t = Q0(t), 0, [0], t));
5967}
5968function Ui(t, e, i, r, n, o, s, a, l) {
5969  for (var h = 0, u = 0, f = s, c = 0, p = 0, m = 0, k = 1, O = 1, q = 1, T = 0, U = "", W = n, G = o, V = r, H = 
5969U; O; )
5970    switch (m = T, T = Et()) {
5971      case 40:
5972        if (m != 108 && di(H, f - 1) == 58) {
5973          X0(H += Hi(Kr(T), "&", "&\f"), "&\f", pl(h ? a[h - 1] : 0)) != -1 && (q = -1);
5974          break;
5975        }
5976      case 34:
5977      case 39:
5978      case 91:
5979        H += Kr(T);
5980        break;
5981      case 9:
5982      case 10:
5983      case 13:
5984      case 32:
5985        H += ey(m);
5986        break;
5987      case 92:
5988        H += iy(ji() - 1, 7);
5989        continue;
5990      case 47:
5991        switch (de()) {
5992          case 42:
5993          case 47:
5994            Ii(sy(ry(Et(), ji()), e, i, l), l);
5995            break;
5996          default:
5997            H += "/";
5998        }
5999        break;
6000      case 123 * k:
6001        a[h++] = Gt(H) * q;
6002      case 125 * k:
6003      case 59:
6004      case 0:
6005        switch (T) {
6006          case 0:
6007          case 125:
6008            O = 0;
6009          case 59 + u:
6010            q == -1 && (H = Hi(H, /\f/g, "")), p > 0 && Gt(H) - f && Ii(p > 32 ? ks(H + ";", r, i, f - 1, l) : ks(Hi(H, " ", "") + ";", r, i, f - 2, l), l);
6011            break;
6012          case 59:
6013            H += ";";
6014          default:
6015            if (Ii(V = Ts(H, e, i, h, u, n, a, U, W = [], G = [], f, o), o), T === 123)
6016              if (u === 0)
6017                Ui(H, e, V, V, W, o, f, a, G);
6018              else
6019                switch (c === 99 && di(H, 3) === 110 ? 100 : c) {
6020                  case 100:
6021                  case 108:
6022                  case 109:
6023                  case 115:
6024                    Ui(t, V, V, r && Ii(Ts(t, V, V, 0, 0, n, a, U, n, W = [], f, G), G), n, G, f, a, r ? W : G);
6025                    break;
6026                  default:
6027                    Ui(H, V, V, V, [""], G, 0, a, G);
6028                }
6029        }
6030        h = u = p = 0, k = q = 1, U = H = "", f = s;
6031        break;
6032      case 58:
6033        f = 1 + Gt(H), p = m;
6034      default:
6035        if (k < 1) {
6036          if (T == 123)
6037            --k;
6038          else if (T == 125 && k++ == 0 && J0() == 125)
6039            continue;
6040        }
6041        switch (H += Yn(T), T * k) {
6042          case 38:
6043            q = u > 0 ? 1 : (H += "\f", -1);
6044            break;
6045          case 44:
6046            a[h++] = (Gt(H) - 1) * q, q = 1;
6047            break;
6048          case 64:
6049            de() === 45 && (H += Kr(Et())), c = de(), u = f = Gt(U = H += ny(ji())), T++;
6050            break;
6051          case 45:
6052            m === 45 && Gt(H) == 2 && (k = 0);
6053        }
6054    }
6055  return o;
6056}
6057function Ts(t, e, i, r, n, o, s, a, l, h, u, f) {
6058  for (var c = n - 1, p = n === 0 ? o : [""], m = K0(p), k = 0, O = 0, q = 0; k < r; ++k)
6059    for (var T = 0, U = pi(t, c + 1, c = pl(O = s[k])), W = t; T < m; ++T)
6060      (W = gl(O > 0 ? p[T] + " " + U : Hi(U, /&\f/g, p[T]))) && (l[q++] = W);
6061  return Gn(t, e, i, n === 0 ? fl : a, l, h, u, f);
6062}
6063function sy(t, e, i, r) {
6064  return Gn(t, e, i, ul, Yn(Z0()), pi(t, 2, -2), 0, r);
6065}
6066function ks(t, e, i, r, n) {
6067  return Gn(t, e, i, dl, pi(t, 0, r), pi(t, r + 1, -1), r, n);
6068}
6069function Cn(t, e) {
6070  for (var i = "", r = 0; r < t.length; r++)
6071    i += e(t[r], r, t, e) || "";
6072  return i;
6073}
6074function ay(t, e, i, r) {
6075  switch (t.type) {
6076    case V0:
6077      if (t.children.length)
6078        break;
6079    case Y0:
6080    case dl:
6081      return t.return = t.return || t.value;
6082    case ul:
6083      return "";
6084    case G0:
6085      return t.return = t.value + "{" + Cn(t.children, r) + "}";
6086    case fl:
6087      if (!Gt(t.value = t.props.join(",")))
6088        return "";
6089  }
6090  return Gt(i = Cn(t.children, r)) ? t.return = t.value + "{" + i + "}" : "";
6091}
6092const Ss = "10.9.3", Ie = Object.freeze(Tp);
6093let dt = ot({}, Ie), yl, De = [], oi = ot({}, Ie);
6094const Er = (t, e) => {
6095  let i = ot({}, t), r = {};
6096  for (const n of e)
6097    xl(n), r = ot(r, n);
6098  if (i = ot(i, r), r.theme && r.theme in Xt) {
6099    const n = ot({}, yl), o = ot(
6100      n.themeVariables || {},
6101      r.themeVariables
6102    );
6103    i.theme && i.theme in Xt && (i.themeVariables = Xt[i.theme].getThemeVariables(o));
6104  }
6105  return oi = i, bl(oi), oi;
6106}, ly = (t) => (dt = ot({}, Ie), dt = ot(dt, t), t.theme && Xt[t.theme] && (dt.themeVariables = Xt[t.theme].getThemeVariables(t.themeVariables)), Er(dt, De), dt), hy = (t) => {
6107  yl = ot({}, t);
6108}, cy = (t) => (dt = ot(dt, t), Er(dt, De), dt), _l = () => ot({}, dt), Cl = (t) => (bl(t), ot(oi, t), Rt()), Rt = () => ot({}, oi), xl = (t) => {
6109  t && (["secure", ...dt.secure ?? []].forEach((e) => {
6110    Object.hasOwn(t, e) && (L.debug(`Denied attempt to modify a secure key ${e}`, t[e]), delete t[e]);
6111  }), Object.keys(t).forEach((e) => {
6112    e.startsWith("__") && delete t[e];
6113  }), Object.keys(t).forEach((e) => {
6114    typeof t[e] == "string" && (t[e].includes("<") || t[e].includes(">") || t[e].includes("url(data:")) && delete t[e], typeof t[e] == "object" && xl(t[e]);
6115  }));
6116}, uy = (t) => {
6117  ir(t), t.fontFamily && (!t.themeVariables || !t.themeVariables.fontFamily) && (t.themeVariables = { fontFamily: t.fontFamily }), De.push(t), Er(dt, De);
6118}, lr = (t = dt) => {
6119  De = [], Er(t, De);
6120}, fy = {
6121  LAZY_LOAD_DEPRECATED: "The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead."
6122}, vs = {}, dy = (t) => {
6123  vs[t] || (L.warn(fy[t]), vs[t] = !0);
6124}, bl = (t) => {
6125  t && (t.lazyLoadedDiagrams || t.loadExternalDiagramsAtStartup) && dy("LAZY_LOAD_DEPRECATED");
6126}, Tl = "c4", py = (t) => /^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(t), gy = async () => {
6127  const { diagram: t } = await import("./c4Diagram-71b4987c.js");
6128  return { id: Tl, diagram: t };
6129}, my = {
6130  id: Tl,
6131  detector: py,
6132  loader: gy
6133}, yy = my, kl = "flowchart", _y = (t, e) => {
6134  var i, r;
6135  return ((i = e == null ? void 0 : e.flowchart) == null ? void 0 : i.defaultRenderer) === "dagre-wrapper" || ((r = e == null ? void 0 : e.flowchart) == null ? void 0 : r.defaultRenderer) === "elk" ? !1 : /^\s*graph/.test(t);
6136}, Cy = async () => {
6137  const { diagram: t } = await import("./flowDiagram-a0832dcd.js");
6138  return { id: kl, diagram: t };
6139}, xy = {
6140  id: kl,
6141  detector: _y,
6142  loader: Cy
6143}, by = xy, Sl = "flowchart-v2", Ty = (t, e) => {
6144  var i, r, n;
6145  return ((i = e == null ? void 0 : e.flowchart) == null ? void 0 : i.defaultRenderer) === "dagre-d3" || ((r = e == null ? void 0 : e.flowchart) == null ? void 0 : r.defaultRenderer) === "elk" ? !1 : /^\s*graph/.test(t) && ((n = e == null ? void 0 : e.flowchart) == null ? void 0 : n.defaultRenderer) === "dagre-wrapper" ? !0 : /^\s*flowchart/.test(t);
6146}, ky = async () => {
6147  const { diagram: t } = await import("./flowDiagram-v2-a90a998c.js");
6148  return { id: Sl, diagram: t };
6149}, Sy = {
6150  id: Sl,
6151  detector: Ty,
6152  loader: ky
6153}, vy = Sy, vl = "er", wy = (t) => /^\s*erDiagram/.test(t), By = async () => {
6154  const { diagram: t } = await import("./erDiagram-52ee5ed7.js");
6155  return { id: vl, diagram: t };
6156}, Fy = {
6157  id: vl,
6158  detector: wy,
6159  loader: By
6160}, Ay = Fy, wl = "gitGraph", Ly = (t) => /^\s*gitGraph/.test(t), Ey = async () => {
6161  const { diagram: t } = await import("./gitGraphDiagram-348475b8.js");
6162  return { id: wl, diagram: t };
6163}, My = {
6164  id: wl,
6165  detector: Ly,
6166  loader: Ey
6167}, Oy = My, Bl = "gantt", $y = (t) => /^\s*gantt/.test(t), Iy = async () => {
6168  const { diagram: t } = await import("./ganttDiagram-d3ab137f.js");
6169  return { id: Bl, diagram: t };
6170}, Dy = {
6171  id: Bl,
6172  detector: $y,
6173  loader: Iy
6174}, Ny = Dy, Fl = "info", Ry = (t) => /^\s*info/.test(t), Py = async () => {
6175  const { diagram: t } = await import("./infoDiagram-12c122cb.js");
6176  return { id: Fl, diagram: t };
6177}, qy = {
6178  id: Fl,
6179  detector: Ry,
6180  loader: Py
6181}, Al = "pie", zy = (t) => /^\s*pie/.test(t), Wy = async () => {
6182  const { diagram: t } = await import("./pieDiagram-2a61ad98.js");
6183  return { id: Al, diagram: t };
6184}, Hy = {
6185  id: Al,
6186  detector: zy,
6187  loader: Wy
6188}, Ll = "quadrantChart", jy = (t) => /^\s*quadrantChart/.test(t), Uy = async () => {
6189  const { diagram: t } = await import("./quadrantDiagram-97313f6a.js");
6190  return { id: Ll, diagram: t };
6191}, Yy = {
6192  id: Ll,
6193  detector: jy,
6194  loader: Uy
6195}, Gy = Yy, El = "xychart", Vy = (t) => /^\s*xychart-beta/.test(t), Xy = async () => {
6196  const { diagram: t } = await import("./xychartDiagram-024e42d6.js");
6197  return { id: El, diagram: t };
6198}, Ky = {
6199  id: El,
6200  detector: Vy,
6201  loader: Xy
6202}, Zy = Ky, Ml = "requirement", Jy = (t) => /^\s*requirement(Diagram)?/.test(t), Qy = async () => {
6203  const { diagram: t } = await import("./requirementDiagram-836c2e45.js");
6204  return { id: Ml, diagram: t };
6205}, t_ = {
6206  id: Ml,
6207  detector: Jy,
6208  loader: Qy
6209}, e_ = t_, Ol = "sequence", i_ = (t) => /^\s*sequenceDiagram/.test(t), r_ = async () => {
6210  const { diagram: t } = await import("./sequenceDiagram-819f4947.js");
6211  return { id: Ol, diagram: t };
6212}, n_ = {
6213  id: Ol,
6214  detector: i_,
6215  loader: r_
6216}, o_ = n_, $l = "class", s_ = (t, e) => {
6217  var i;
6218  return ((i = e == null ? void 0 : e.class) == null ? void 0 : i.defaultRenderer) === "dagre-wrapper" ? !1 : /^\s*classDiagram/.test(t);
6219}, a_ = async () => {
6220  const { diagram: t } = await import("./classDiagram-301cd207.js");
6221  return { id: $l, diagram: t };
6222}, l_ = {
6223  id: $l,
6224  detector: s_,
6225  loader: a_
6226}, h_ = l_, Il = "classDiagram", c_ = (t, e) => {
6227  var i;
6228  return /^\s*classDiagram/.test(t) && ((i = e == null ? void 0 : e.class) == null ? void 0 : i.defaultRenderer) === "dagre-wrapper" ? !0 : /^\s*classDiagram-v2/.test(t);
6229}, u_ = async () => {
6230  const { diagram: t } = await import("./classDiagram-v2-20d1e04b.js");
6231  return { id: Il, diagram: t };
6232}, f_ = {
6233  id: Il,
6234  detector: c_,
6235  loader: u_
6236}, d_ = f_, Dl = "state", p_ = (t, e) => {
6237  var i;
6238  return ((i = e == null ? void 0 : e.state) == null ? void 0 : i.defaultRenderer) === "dagre-wrapper" ? !1 : /^\s*stateDiagram/.test(t);
6239}, g_ = async () => {
6240  const { diagram: t } = await import("./stateDiagram-dc3cd90b.js");
6241  return { id: Dl, diagram: t };
6242}, m_ = {
6243  id: Dl,
6244  detector: p_,
6245  loader: g_
6246}, y_ = m_, Nl = "stateDiagram", __ = (t, e) => {
6247  var i;
6248  return !!(/^\s*stateDiagram-v2/.test(t) || /^\s*stateDiagram/.test(t) && ((i = e == null ? void 0 : e.state) == null ? void 0 : i.defaultRenderer) === "dagre-wrapper");
6249}, C_ = async () => {
6250  const { diagram: t } = await import("./stateDiagram-v2-734e0ec8.js");
6251  return { id: Nl, diagram: t };
6252}, x_ = {
6253  id: Nl,
6254  detector: __,
6255  loader: C_
6256}, b_ = x_, Rl = "journey", T_ = (t) => /^\s*journey/.test(t), k_ = async () => {
6257  const { diagram: t } = await import("./journeyDiagram-e798f4cb.js");
6258  return { id: Rl, diagram: t };
6259}, S_ = {
6260  id: Rl,
6261  detector: T_,
6262  loader: k_
6263}, v_ = S_, w_ = function(t, e) {
6264  for (let i of e)
6265    t.attr(i[0], i[1]);
6266}, B_ = function(t, e, i) {
6267  let r = /* @__PURE__ */ new Map();
6268  return i ? (r.set("width", "100%"), r.set("style", `max-width: ${e}px;`)) : (r.set("height", t), r.set("width", e)), r;
6269}, Pl = function(t, e, i, r) {
6270  const n = B_(e, i, r);
6271  w_(t, n);
6272}, F_ = function(t, e, i, r) {
6273  const n = e.node().getBBox(), o = n.width, s = n.height;
6274  L.info(`SVG bounds: ${o}x${s}`, n);
6275  let a = 0, l = 0;
6276  L.info(`Graph bounds: ${a}x${l}`, t), a = o + i * 2, l = s + i * 2, L.info(`Calculated bounds: ${a}x${l}`), Pl(e, l, a, r);
6277  const h = `${n.x - i} ${n.y - i} ${n.width + 2 * i} ${n.height + 2 * i}`;
6278  e.attr("viewBox", h);
6279}, Yi = {}, A_ = (t, e, i) => {
6280  let r = "";
6281  return t in Yi && Yi[t] ? r = Yi[t](i) : L.warn(`No theme found for ${t}`), ` & {
6282    font-family: ${i.fontFamily};
6283    font-size: ${i.fontSize};
6284    fill: ${i.textColor}
6285  }
6286
6287  /* Classes common for multiple diagrams */
6288
6289  & .error-icon {
6290    fill: ${i.errorBkgColor};
6291  }
6292  & .error-text {
6293    fill: ${i.errorTextColor};
6294    stroke: ${i.errorTextColor};
6295  }
6296
6297  & .edge-thickness-normal {
6298    stroke-width: 2px;
6299  }
6300  & .edge-thickness-thick {
6301    stroke-width: 3.5px
6302  }
6303  & .edge-pattern-solid {
6304    stroke-dasharray: 0;
6305  }
6306
6307  & .edge-pattern-dashed{
6308    stroke-dasharray: 3;
6309  }
6310  .edge-pattern-dotted {
6311    stroke-dasharray: 2;
6312  }
6313
6314  & .marker {
6315    fill: ${i.lineColor};
6316    stroke: ${i.lineColor};
6317  }
6318  & .marker.cross {
6319    stroke: ${i.lineColor};
6320  }
6321
6322  & svg {
6323    font-family: ${i.fontFamily};
6324    font-size: ${i.fontSize};
6325  }
6326
6327  ${r}
6328
6329  ${e}
6330`;
6331}, L_ = (t, e) => {
6332  e !== void 0 && (Yi[t] = e);
6333}, E_ = A_;
6334let Vn = "", Xn = "", Kn = "";
6335const Zn = (t) => ci(t, Rt()), M_ = () => {
6336  Vn = "", Kn = "", Xn = "";
6337}, O_ = (t) => {
6338  Vn = Zn(t).replace(/^\s+/g, "");
6339}, $_ = () => Vn, I_ = (t) => {
6340  Kn = Zn(t).replace(/\n\s+/g, `
6341`);
6342}, D_ = () => Kn, N_ = (t) => {
6343  Xn = Zn(t);
6344}, R_ = () => Xn, P_ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
6345  __proto__: null,
6346  clear: M_,
6347  getAccDescription: D_,
6348  getAccTitle: $_,
6349  getDiagramTitle: R_,
6350  setAccDescription: I_,
6351  setAccTitle: O_,
6352  setDiagramTitle: N_
6353}, Symbol.toStringTag, { value: "Module" })), q_ = L, z_ = vn, Jn = Rt, L1 = Cl, E1 = Ie, W_ = (t) => ci(t, Jn()), H_ = F_, j_ = () => P_, hr = {}, cr = (t, e, i) => {
6354  var r;
6355  if (hr[t])
6356    throw new Error(`Diagram ${t} already registered.`);
6357  hr[t] = e, i && Ya(t, i), L_(t, e.styles), (r = e.injectUtils) == null || r.call(
6358    e,
6359    q_,
6360    z_,
6361    Jn,
6362    W_,
6363    H_,
6364    j_(),
6365    () => {
6366    }
6367  );
6368}, Qn = (t) => {
6369  if (t in hr)
6370    return hr[t];
6371  throw new U_(t);
6372};
6373class U_ extends Error {
6374  constructor(e) {
6375    super(`Diagram ${e} not found.`);
6376  }
6377}
6378const Y_ = (t) => {
6379  var n;
6380  const { securityLevel: e } = Jn();
6381  let i = Tt("body");
6382  if (e === "sandbox") {
6383    const s = ((n = Tt(`#i${t}`).node()) == null ? void 0 : n.contentDocument) ?? document;
6384    i = Tt(s.body);
6385  }
6386  return i.select(`#${t}`);
6387}, G_ = (t, e, i) => {
6388  L.debug(`rendering svg for syntax error
6389`);
6390  const r = Y_(e), n = r.append("g");
6391  r.attr("viewBox", "0 0 2412 512"), Pl(r, 100, 512, !0), n.append("path").attr("class", "error-icon").attr(
6392    "d",
6393    "m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"
6394  ), n.append("path").attr("class", "error-icon").attr(
6395    "d",
6396    "m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"
6397  ), n.append("path").attr("class", "error-icon").attr(
6398    "d",
6399    "m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"
6400  ), n.append("path").attr("class", "error-icon").attr(
6401    "d",
6402    "m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.
6402164-16,16v32c0,8.836 7.156,16 16,16z"
6403  ), n.append("path").attr("class", "error-icon").attr(
6404    "d",
6405    "m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"
6406  ), n.append("path").attr("class", "error-icon").attr(
6407    "d",
6408    "m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"
6409  ), n.append("text").attr("class", "error-text").attr("x", 1440).attr("y", 250).attr("font-size", "150px").style("text-anchor", "middle").text("Syntax error in text"), n.append("text").attr("class", "error-text").attr("x", 1250).attr("y", 400).attr("font-size", "100px").style("text-anchor", "middle").text(`mermaid version ${i}`);
6410}, ql = { draw: G_ }, V_ = ql, X_ = {
6411  db: {},
6412  renderer: ql,
6413  parser: {
6414    parser: { yy: {} },
6415    parse: () => {
6416    }
6417  }
6418}, K_ = X_, zl = "flowchart-elk", Z_ = (t, e) => {
6419  var i;
6420  return (
6421    // If diagram explicitly states flowchart-elk
6422    !!(/^\s*flowchart-elk/.test(t) || // If a flowchart/graph diagram has their default renderer set to elk
6423    /^\s*flowchart|graph/.test(t) && ((i = e == null ? void 0 : e.flowchart) == null ? void 0 : i.defaultRenderer) === "elk")
6424  );
6425}, J_ = async () => {
6426  const { diagram: t } = await import("./flowchart-elk-definition-fbe65b0a.js");
6427  return { id: zl, diagram: t };
6428}, Q_ = {
6429  id: zl,
6430  detector: Z_,
6431  loader: J_
6432}, tC = Q_, Wl = "timeline", eC = (t) => /^\s*timeline/.test(t), iC = async () => {
6433  const { diagram: t } = await import("./timeline-definition-1d5f75ec.js");
6434  return { id: Wl, diagram: t };
6435}, rC = {
6436  id: Wl,
6437  detector: eC,
6438  loader: iC
6439}, nC = rC, Hl = "mindmap", oC = (t) => /^\s*mindmap/.test(t), sC = async () => {
6440  const { diagram: t } = await import("./mindmap-definition-69d738f7.js");
6441  return { id: Hl, diagram: t };
6442}, aC = {
6443  id: Hl,
6444  detector: oC,
6445  loader: sC
6446}, lC = aC, jl = "sankey", hC = (t) => /^\s*sankey-beta/.test(t), cC = async () => {
6447  const { diagram: t } = await import("./sankeyDiagram-21c8b3a4.js");
6448  return { id: jl, diagram: t };
6449}, uC = {
6450  id: jl,
6451  detector: hC,
6452  loader: cC
6453}, fC = uC, Ul = "block", dC = (t) => /^\s*block-beta/.test(t), pC = async () => {
6454  const { diagram: t } = await import("./blockDiagram-325c0d7b.js");
6455  return { id: Ul, diagram: t };
6456}, gC = {
6457  id: Ul,
6458  detector: dC,
6459  loader: pC
6460}, mC = gC;
6461let ws = !1;
6462const to = () => {
6463  ws || (ws = !0, cr("error", K_, (t) => t.toLowerCase().trim() === "error"), cr(
6464    "---",
6465    // --- diagram type may appear if YAML front-matter is not parsed correctly
6466    {
6467      db: {
6468        clear: () => {
6469        }
6470      },
6471      styles: {},
6472      // should never be used
6473      renderer: {
6474        draw: () => {
6475        }
6476      },
6477      parser: {
6478        parser: { yy: {} },
6479        parse: () => {
6480          throw new Error(
6481            "Diagrams beginning with --- are not valid. If you were trying to use a YAML front-matter, please ensure that you've correctly opened and closed the YAML front-matter with un-indented `---` blocks"
6482          );
6483        }
6484      },
6485      init: () => null
6486      // no op
6487    },
6488    (t) => t.toLowerCase().trimStart().startsWith("---")
6489  ), Ua(
6490    yy,
6491    d_,
6492    h_,
6493    Ay,
6494    Ny,
6495    qy,
6496    Hy,
6497    e_,
6498    o_,
6499    tC,
6500    vy,
6501    by,
6502    lC,
6503    nC,
6504    Oy,
6505    b_,
6506    y_,
6507    v_,
6508    Gy,
6509    fC,
6510    Zy,
6511    mC
6512  ));
6513};
6514class Yl {
6515  constructor(e, i = {}) {
6516    this.text = e, this.metadata = i, this.type = "graph", this.text = j0(e), this.text += `
6517`;
6518    const r = Rt();
6519    try {
6520      this.type = kr(e, r);
6521    } catch (o) {
6522      this.type = "error", this.detectError = o;
6523    }
6524    const n = Qn(this.type);
6525    L.debug("Type " + this.type), this.db = n.db, this.renderer = n.renderer, this.parser = n.parser, this.parser.parser.yy = this.db, this.init = n.init, this.parse();
6526  }
6527  parse() {
6528    var i, r, n, o, s;
6529    if (this.detectError)
6530      throw this.detectError;
6531    (r = (i = this.db).clear) == null || r.call(i);
6532    const e = Rt();
6533    (n = this.init) == null || n.call(this, e), this.metadata.title && ((s = (o = this.db).setDiagramTitle) == null || s.call(o, this.metadata.title)), this.parser.parse(this.text);
6534  }
6535  async render(e, i) {
6536    await this.renderer.draw(this.text, e, i, this);
6537  }
6538  getParser() {
6539    return this.parser;
6540  }
6541  getType() {
6542    return this.type;
6543  }
6544}
6545const yC = async (t, e = {}) => {
6546  const i = kr(t, Rt());
6547  try {
6548    Qn(i);
6549  } catch {
6550    const n = vp(i);
6551    if (!n)
6552      throw new ja(`Diagram ${i} not found.`);
6553    const { id: o, diagram: s } = await n();
6554    cr(o, s);
6555  }
6556  return new Yl(t, e);
6557};
6558let Bs = [];
6559const _C = () => {
6560  Bs.forEach((t) => {
6561    t();
6562  }), Bs = [];
6563};
6564var CC = Ka(Object.keys, Object);
6565const xC = CC;
6566var bC = Object.prototype, TC = bC.hasOwnProperty;
6567function kC(t) {
6568  if (!Br(t))
6569    return xC(t);
6570  var e = [];
6571  for (var i in Object(t))
6572    TC.call(t, i) && i != "constructor" && e.push(i);
6573  return e;
6574}
6575var SC = xe(qt, "DataView");
6576const xn = SC;
6577var vC = xe(qt, "Promise");
6578const bn = vC;
6579var wC = xe(qt, "Set");
6580const Tn = wC;
6581var BC = xe(qt, "WeakMap");
6582const kn = BC;
6583var Fs = "[object Map]", FC = "[object Object]", As = "[object Promise]", Ls = "[object Set]", Es = "[object WeakMap]", Ms = "[object DataView]", AC = Ce(xn), LC = Ce(fi), EC = Ce(bn), MC = Ce(Tn), OC = Ce(kn), ce = Re;
6584(xn && ce(new xn(new ArrayBuffer(1))) != Ms || fi && ce(new fi()) != Fs || bn && ce(bn.resolve()) != As || Tn && ce(new Tn()) != Ls || kn && ce(new kn()) != Es) && (ce = function(t) {
6585  var e = Re(t), i = e == FC ? t.constructor : void 0, r = i ? Ce(i) : "";
6586  if (r)
6587    switch (r) {
6588      case AC:
6589        return Ms;
6590      case LC:
6591        return Fs;
6592      case EC:
6593        return As;
6594      case MC:
6595        return Ls;
6596      case OC:
6597        return Es;
6598    }
6599  return e;
6600});
6601const $C = ce;
6602var IC = "[object Map]", DC = "[object Set]", NC = Object.prototype, RC = NC.hasOwnProperty;
6603function Zr(t) {
6604  if (t == null)
6605    return !0;
6606  if (Fr(t) && (sr(t) || typeof t == "string" || typeof t.splice == "function" || zn(t) || Wn(t) || or(t)))
6607    return !t.length;
6608  var e = $C(t);
6609  if (e == IC || e == DC)
6610    return !t.size;
6611  if (Br(t))
6612    return !kC(t).length;
6613  for (var i in t)
6614    if (RC.call(t, i))
6615      return !1;
6616  return !0;
6617}
6618const PC = "graphics-document document";
6619function qC(t, e) {
6620  t.attr("role", PC), e !== "" && t.attr("aria-roledescription", e);
6621}
6622function zC(t, e, i, r) {
6623  if (t.insert !== void 0) {
6624    if (i) {
6625      const n = `chart-desc-${r}`;
6626      t.attr("aria-describedby", n), t.insert("desc", ":first-child").attr("id", n).text(i);
6627    }
6628    if (e) {
6629      const n = `chart-title-${r}`;
6630      t.attr("aria-labelledby", n), t.insert("title", ":first-child").attr("id", n).text(e);
6631    }
6632  }
6633}
6634const WC = (t) => t.replace(/^\s*%%(?!{)[^\n]+\n?/gm, "").trimStart();
6635/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */
6636function Gl(t) {
6637  return typeof t > "u" || t === null;
6638}
6639function HC(t) {
6640  return typeof t == "object" && t !== null;
6641}
6642function jC(t) {
6643  return Array.isArray(t) ? t : Gl(t) ? [] : [t];
6644}
6645function UC(t, e) {
6646  var i, r, n, o;
6647  if (e)
6648    for (o = Object.keys(e), i = 0, r = o.length; i < r; i += 1)
6649      n = o[i], t[n] = e[n];
6650  return t;
6651}
6652function YC(t, e) {
6653  var i = "", r;
6654  for (r = 0; r < e; r += 1)
6655    i += t;
6656  return i;
6657}
6658function GC(t) {
6659  return t === 0 && Number.NEGATIVE_INFINITY === 1 / t;
6660}
6661var VC = Gl, XC = HC, KC = jC, ZC = YC, JC = GC, QC = UC, ht = {
6662  isNothing: VC,
6663  isObject: XC,
6664  toArray: KC,
6665  repeat: ZC,
6666  isNegativeZero: JC,
6667  extend: QC
6668};
6669function Vl(t, e) {
6670  var i = "", r = t.reason || "(unknown reason)";
6671  return t.mark ? (t.mark.name && (i += 'in "' + t.mark.name + '" '), i += "(" + (t.mark.line + 1) + ":" + (t.mark.column + 1) + ")", !e && t.mark.snippet && (i += `
6672
6673` + t.mark.snippet), r + " " + i) : r;
6674}
6675function gi(t, e) {
6676  Error.call(this), this.name = "YAMLException", this.reason = t, this.mark = e, this.message = Vl(this, !1), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack || "";
6677}
6678gi.prototype = Object.create(Error.prototype);
6679gi.prototype.constructor = gi;
6680gi.prototype.toString = function(e) {
6681  return this.name + ": " + Vl(this, e);
6682};
6683var Vt = gi;
6684function Jr(t, e, i, r, n) {
6685  var o = "", s = "", a = Math.floor(n / 2) - 1;
6686  return r - e > a && (o = " ... ", e = r - a + o.length), i - r > a && (s = " ...", i = r + a - s.length), {
6687    str: o + t.slice(e, i).replace(/\t/g, "→") + s,
6688    pos: r - e + o.length
6689    // relative position
6690  };
6691}
6692function Qr(t, e) {
6693  return ht.repeat(" ", e - t.length) + t;
6694}
6695function tx(t, e) {
6696  if (e = Object.create(e || null), !t.buffer)
6697    return null;
6698  e.maxLength || (e.maxLength = 79), typeof e.indent != "number" && (e.indent = 1), typeof e.linesBefore != "number" && (e.linesBefore = 3), typeof e.linesAfter != "number" && (e.linesAfter = 2);
6699  for (var i = /\r?\n|\r|\0/g, r = [0], n = [], o, s = -1; o = i.exec(t.buffer); )
6700    n.push(o.index), r.push(o.index + o[0].length), t.position <= o.index && s < 0 && (s = r.length - 2);
6701  s < 0 && (s = r.length - 1);
6702  var a = "", l, h, u = Math.min(t.line + e.linesAfter, n.length).toString().length, f = e.maxLength - (e.indent + u + 3);
6703  for (l = 1; l <= e.linesBefore && !(s - l < 0); l++)
6704    h = Jr(
6705      t.buffer,
6706      r[s - l],
6707      n[s - l],
6708      t.position - (r[s] - r[s - l]),
6709      f
6710    ), a = ht.repeat(" ", e.indent) + Qr((t.line - l + 1).toString(), u) + " | " + h.str + `
6711` + a;
6712  for (h = Jr(t.buffer, r[s], n[s], t.position, f), a += ht.repeat(" ", e.indent) + Qr((t.line + 1).toString(), u) + " | " + h.str + `
6713`, a += ht.repeat("-", e.indent + u + 3 + h.pos) + `^
6714`, l = 1; l <= e.linesAfter && !(s + l >= n.length); l++)
6715    h = Jr(
6716      t.buffer,
6717      r[s + l],
6718      n[s + l],
6719      t.position - (r[s] - r[s + l]),
6720      f
6721    ), a += ht.repeat(" ", e.indent) + Qr((t.line + l + 1).toString(), u) + " | " + h.str + `
6722`;
6723  return a.replace(/\n$/, "");
6724}
6725var ex = tx, ix = [
6726  "kind",
6727  "multi",
6728  "resolve",
6729  "construct",
6730  "instanceOf",
6731  "predicate",
6732  "represent",
6733  "representName",
6734  "defaultStyle",
6735  "styleAliases"
6736], rx = [
6737  "scalar",
6738  "sequence",
6739  "mapping"
6740];
6741function nx(t) {
6742  var e = {};
6743  return t !== null && Object.keys(t).forEach(function(i) {
vendor: 4,260 bytes, lines 6744-6879
6744    t[i].forEach(function(r) {
6745      e[String(r)] = i;
6746    });
6747  }), e;
6748}
6749function ox(t, e) {
6750  if (e = e || {}, Object.keys(e).forEach(function(i) {
6751    if (ix.indexOf(i) === -1)
6752      throw new Vt('Unknown option "' + i + '" is met in definition of "' + t + '" YAML type.');
6753  }), this.options = e, this.tag = t, this.kind = e.kind || null, this.resolve = e.resolve || function() {
6754    return !0;
6755  }, this.construct = e.construct || function(i) {
6756    return i;
6757  }, this.instanceOf = e.instanceOf || null, this.predicate = e.predicate || null, this.represent = e.represent || null, this.representName = e.representName || null, this.defaultStyle = e.defaultStyle || null, this.multi = e.multi || !1, this.styleAliases = nx(e.styleAliases || null), rx.indexOf(this.kind) === -1)
6758    throw new Vt('Unknown kind "' + this.kind + '" is specified for "' + t + '" YAML type.');
6759}
6760var st = ox;
6761function Os(t, e) {
6762  var i = [];
6763  return t[e].forEach(function(r) {
6764    var n = i.length;
6765    i.forEach(function(o, s) {
6766      o.tag === r.tag && o.kind === r.kind && o.multi === r.multi && (n = s);
6767    }), i[n] = r;
6768  }), i;
6769}
6770function sx() {
6771  var t = {
6772    scalar: {},
6773    sequence: {},
6774    mapping: {},
6775    fallback: {},
6776    multi: {
6777      scalar: [],
6778      sequence: [],
6779      mapping: [],
6780      fallback: []
6781    }
6782  }, e, i;
6783  function r(n) {
6784    n.multi ? (t.multi[n.kind].push(n), t.multi.fallback.push(n)) : t[n.kind][n.tag] = t.fallback[n.tag] = n;
6785  }
6786  for (e = 0, i = arguments.length; e < i; e += 1)
6787    arguments[e].forEach(r);
6788  return t;
6789}
6790function Sn(t) {
6791  return this.extend(t);
6792}
6793Sn.prototype.extend = function(e) {
6794  var i = [], r = [];
6795  if (e instanceof st)
6796    r.push(e);
6797  else if (Array.isArray(e))
6798    r = r.concat(e);
6799  else if (e && (Array.isArray(e.implicit) || Array.isArray(e.explicit)))
6800    e.implicit && (i = i.concat(e.implicit)), e.explicit && (r = r.concat(e.explicit));
6801  else
6802    throw new Vt("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");
6803  i.forEach(function(o) {
6804    if (!(o instanceof st))
6805      throw new Vt("Specified list of YAML types (or a single Type object) contains a non-Type object.");
6806    if (o.loadKind && o.loadKind !== "scalar")
6807      throw new Vt("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");
6808    if (o.multi)
6809      throw new Vt("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.");
6810  }), r.forEach(function(o) {
6811    if (!(o instanceof st))
6812      throw new Vt("Specified list of YAML types (or a single Type object) contains a non-Type object.");
6813  });
6814  var n = Object.create(Sn.prototype);
6815  return n.implicit = (this.implicit || []).concat(i), n.explicit = (this.explicit || []).concat(r), n.compiledImplicit = Os(n, "implicit"), n.compiledExplicit = Os(n, "explicit"), n.compiledTypeMap = sx(n.compiledImplicit, n.compiledExplicit), n;
6816};
6817var ax = Sn, lx = new st("tag:yaml.org,2002:str", {
6818  kind: "scalar",
6819  construct: function(t) {
6820    return t !== null ? t : "";
6821  }
6822}), hx = new st("tag:yaml.org,2002:seq", {
6823  kind: "sequence",
6824  construct: function(t) {
6825    return t !== null ? t : [];
6826  }
6827}), cx = new st("tag:yaml.org,2002:map", {
6828  kind: "mapping",
6829  construct: function(t) {
6830    return t !== null ? t : {};
6831  }
6832}), ux = new ax({
6833  explicit: [
6834    lx,
6835    hx,
6836    cx
6837  ]
6838});
6839function fx(t) {
6840  if (t === null)
6841    return !0;
6842  var e = t.length;
6843  return e === 1 && t === "~" || e === 4 && (t === "null" || t === "Null" || t === "NULL");
6844}
6845function dx() {
6846  return null;
6847}
6848function px(t) {
6849  return t === null;
6850}
6851var gx = new st("tag:yaml.org,2002:null", {
6852  kind: "scalar",
6853  resolve: fx,
6854  construct: dx,
6855  predicate: px,
6856  represent: {
6857    canonical: function() {
6858      return "~";
6859    },
6860    lowercase: function() {
6861      return "null";
6862    },
6863    uppercase: function() {
6864      return "NULL";
6865    },
6866    camelcase: function() {
6867      return "Null";
6868    },
6869    empty: function() {
6870      return "";
6871    }
6872  },
6873  defaultStyle: "lowercase"
6874});
6875function mx(t) {
6876  if (t === null)
6877    return !1;
6878  var e = t.length;
6879  return e === 4 && (t === "true" || t === "True" || t === "TRUE") || e === 5 && (t === "fal
6879se" || t === "False" || t === "FALSE");
6880}
6881function yx(t) {
6882  return t === "true" || t === "True" || t === "TRUE";
6883}
6884function _x(t) {
6885  return Object.prototype.toString.call(t) === "[object Boolean]";
6886}
6887var Cx = new st("tag:yaml.org,2002:bool", {
6888  kind: "scalar",
6889  resolve: mx,
6890  construct: yx,
6891  predicate: _x,
6892  represent: {
6893    lowercase: function(t) {
6894      return t ? "true" : "false";
6895    },
6896    uppercase: function(t) {
6897      return t ? "TRUE" : "FALSE";
6898    },
6899    camelcase: function(t) {
6900      return t ? "True" : "False";
6901    }
6902  },
6903  defaultStyle: "lowercase"
6904});
6905function xx(t) {
6906  return 48 <= t && t <= 57 || 65 <= t && t <= 70 || 97 <= t && t <= 102;
6907}
6908function bx(t) {
6909  return 48 <= t && t <= 55;
6910}
6911function Tx(t) {
6912  return 48 <= t && t <= 57;
6913}
6914function kx(t) {
6915  if (t === null)
6916    return !1;
6917  var e = t.length, i = 0, r = !1, n;
6918  if (!e)
6919    return !1;
6920  if (n = t[i], (n === "-" || n === "+") && (n = t[++i]), n === "0") {
6921    if (i + 1 === e)
6922      return !0;
6923    if (n = t[++i], n === "b") {
6924      for (i++; i < e; i++)
6925        if (n = t[i], n !== "_") {
6926          if (n !== "0" && n !== "1")
6927            return !1;
6928          r = !0;
6929        }
6930      return r && n !== "_";
6931    }
6932    if (n === "x") {
6933      for (i++; i < e; i++)
6934        if (n = t[i], n !== "_") {
6935          if (!xx(t.charCodeAt(i)))
6936            return !1;
6937          r = !0;
6938        }
6939      return r && n !== "_";
6940    }
6941    if (n === "o") {
6942      for (i++; i < e; i++)
6943        if (n = t[i], n !== "_") {
6944          if (!bx(t.charCodeAt(i)))
6945            return !1;
6946          r = !0;
6947        }
6948      return r && n !== "_";
6949    }
6950  }
6951  if (n === "_")
6952    return !1;
6953  for (; i < e; i++)
6954    if (n = t[i], n !== "_") {
6955      if (!Tx(t.charCodeAt(i)))
6956        return !1;
6957      r = !0;
6958    }
6959  return !(!r || n === "_");
6960}
6961function Sx(t) {
6962  var e = t, i = 1, r;
6963  if (e.indexOf("_") !== -1 && (e = e.replace(/_/g, "")), r = e[0], (r === "-" || r === "+") && (r === "-" && (i = -1), e = e.slice(1), r = e[0]), e === "0")
6964    return 0;
6965  if (r === "0") {
6966    if (e[1] === "b")
6967      return i * parseInt(e.slice(2), 2);
6968    if (e[1] === "x")
6969      return i * parseInt(e.slice(2), 16);
6970    if (e[1] === "o")
6971      return i * parseInt(e.slice(2), 8);
6972  }
6973  return i * parseInt(e, 10);
6974}
6975function vx(t) {
6976  return Object.prototype.toString.call(t) === "[object Number]" && t % 1 === 0 && !ht.isNegativeZero(t);
6977}
6978var wx = new st("tag:yaml.org,2002:int", {
6979  kind: "scalar",
6980  resolve: kx,
6981  construct: Sx,
6982  predicate: vx,
6983  represent: {
6984    binary: function(t) {
6985      return t >= 0 ? "0b" + t.toString(2) : "-0b" + t.toString(2).slice(1);
6986    },
6987    octal: function(t) {
6988      return t >= 0 ? "0o" + t.toString(8) : "-0o" + t.toString(8).slice(1);
6989    },
6990    decimal: function(t) {
6991      return t.toString(10);
6992    },
6993    /* eslint-disable max-len */
6994    hexadecimal: function(t) {
6995      return t >= 0 ? "0x" + t.toString(16).toUpperCase() : "-0x" + t.toString(16).toUpperCase().slice(1);
6996    }
6997  },
6998  defaultStyle: "decimal",
6999  styleAliases: {
7000    binary: [2, "bin"],
7001    octal: [8, "oct"],
7002    decimal: [10, "dec"],
7003    hexadecimal: [16, "hex"]
7004  }
7005}), Bx = new RegExp(
7006  // 2.5e4, 2.5 and integers
7007  "^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"
7008);
7009function Fx(t) {
7010  return !(t === null || !Bx.test(t) || // Quick hack to not allow integers end with `_`
7011  // Probably should update regexp & check speed
7012  t[t.length - 1] === "_");
7013}
7014function Ax(t) {
7015  var e, i;
7016  return e = t.replace(/_/g, "").toLowerCase(), i = e[0] === "-" ? -1 : 1, "+-".indexOf(e[0]) >= 0 && (e = e.slice(1)), e === ".inf" ? i === 1 ? Number.POSITIVE_INFINITY : Number.NEGATIVE_INFINITY : e === ".nan" ? NaN : i * parseFloat(e, 10);
7017}
7018var Lx = /^[-+]?[0-9]+e/;
7019function Ex(t, e) {
7020  var i;
7021  if (isNaN(t))
7022    switch (e) {
7023      case "lowercase":
7024        return ".nan";
7025      case "uppercase":
7026        return ".NAN";
7027      case "camelcase":
7028        return ".NaN";
7029    }
7030  else if (Number.POSITIVE_INFINITY === t)
7031    switch (e) {
7032      case "lowercase":
7033        return ".inf";
7034      case "uppercase":
7035        return ".INF";
7036      case "camelcase":
7037        return ".Inf";
7038    }
7039  else if (Number.NEGATIVE_INFINITY === t)
7040    switch (e) {
7041      case "lowercase":
7042        return "-.inf";
7043      case "uppercase":
7044        return "-.INF";
7045      case "camelcase":
7046        return "-.Inf";
7047    }
7048  else if (ht.isNegativeZero(t))
7049    return "-0.0";
7050  return i = t.toString(10), Lx.test(i) ? i.replace("e", ".e") : i;
7051}
7052function Mx(t) {
7053  return Object.prototype.toString.call(t) === "[object Number]" && (t % 1 !== 0 || ht.isNegativeZero(t));
7054}
7055var Ox = new st("tag:yaml.org,2002:float", {
7056  kind: "scalar",
7057  resolve: Fx,
7058  construct: Ax,
7059  predicate: Mx,
7060  represent: Ex,
7061  defaultStyle: "lowercase"
7062}), Xl = ux.extend({
7063  implicit: [
7064    gx,
7065    Cx,
7066    wx,
7067    Ox
7068  ]
7069}), $x = Xl, Kl = new RegExp(
7070  "^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"
7071), Zl = new RegExp(
7072  "^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$"
7073);
7074function Ix(t) {
7075  return t === null ? !1 : Kl.exec(t) !== null || Zl.exec(t) !== null;
7076}
7077function Dx(t) {
7078  var e, i, r, n, o, s, a, l = 0, h = null, u, f, c;
7079  if (e = Kl.exec(t), e === null && (e = Zl.exec(t)), e === null)
7080    throw new Error("Date resolve error");
7081  if (i = +e[1], r = +e[2] - 1, n = +e[3], !e[4])
7082    return new Date(Date.UTC(i, r, n));
7083  if (o = +e[4], s = +e[5], a = +e[6], e[7]) {
7084    for (l = e[7].slice(0, 3); l.length < 3; )
7085      l += "0";
7086    l = +l;
7087  }
7088  return e[9] && (u = +e[10], f = +(e[11] || 0), h = (u * 60 + f) * 6e4, e[9] === "-" && (h = -h)), c = new Date(Date.UTC(i, r, n, o, s, a, l)), h && c.setTime(c.getTime() - h), c;
7089}
7090function Nx(t) {
7091  return t.toISOString();
7092}
7093var Rx = new st("tag:yaml.org,2002:timestamp", {
7094  kind: "scalar",
7095  resolve: Ix,
7096  construct: Dx,
7097  instanceOf: Date,
7098  represent: Nx
7099});
7100function Px(t) {
7101  return t === "<<" || t === null;
7102}
7103var qx = new st("tag:yaml.org,2002:merge", {
7104  kind: "scalar",
7105  resolve: Px
7106}), eo = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
7107\r`;
7108function zx(t) {
7109  if (t === null)
7110    return !1;
7111  var e, i, r = 0, n = t.length, o = eo;
7112  for (i = 0; i < n; i++)
7113    if (e = o.indexOf(t.charAt(i)), !(e > 64)) {
7114      if (e < 0)
7115        return !1;
7116      r += 6;
7117    }
7118  return r % 8 === 0;
7119}
7120function Wx(t) {
7121  var e, i, r = t.replace(/[\r\n=]/g, ""), n = r.length, o = eo, s = 0, a = [];
7122  for (e = 0; e < n; e++)
7123    e % 4 === 0 && e && (a.push(s >> 16 & 255), a.push(s >> 8 & 255), a.push(s & 255)), s = s << 6 | o.indexOf(r.charAt(e));
7124  return i = n % 4 * 6, i === 0 ? (a.push(s >> 16 & 255), a.push(s >> 8 & 255), a.push(s & 255)) : i === 18 ? (a.push(s >> 10 & 255), a.push(s >> 2 & 255)) : i === 12 && a.push(s >> 4 & 255), new Uint8Array(a);
7125}
7126function Hx(t) {
7127  var e = "", i = 0, r, n, o = t.length, s = eo;
7128  for (r = 0; r < o; r++)
7129    r % 3 === 0 && r && (e += s[i >> 18 & 63], e += s[i >> 12 & 63], e += s[i >> 6 & 63], e += s[i & 63]), i = (i << 8) + t[r];
7130  return n = o % 3, n === 0 ? (e += s[i >> 18 & 63], e += s[i >> 12 & 63], e += s[i >> 6 & 63], e += s[i & 63]) : n === 2 ? (e += s[i >> 10 & 63], e += s[i >> 4 & 63], e += s[i << 2 & 63], e += s[64]) : n === 1 && (e += s[i >> 2 & 63], e += s[i << 4 & 63], e += s[64], e += s[64]), e;
7131}
7132function jx(t) {
7133  return Object.prototype.toString.call(t) === "[object Uint8Array]";
7134}
7135var Ux = new st("tag:yaml.org,2002:binary", {
7136  kind: "scalar",
7137  resolve: zx,
7138  construct: Wx,
7139  predicate: jx,
7140  represent: Hx
7141}), Yx = Object.prototype.hasOwnProperty, Gx = Object.prototype.toString;
7142function Vx(t) {
7143  if (t === null)
7144    return !0;
7145  var e = [], i, r, n, o, s, a = t;
7146  for (i = 0, r = a.length; i < r; i += 1) {
7147    if (n = a[i], s = !1, Gx.call(n) !== "[object Object]")
7148      return !1;
7149    for (o in n)
7150      if (Yx.call(n, o))
7151        if (!s)
7152          s = !0;
7153        else
7154          return !1;
7155    if (!s)
7156      return !1;
7157    if (e.indexOf(o) === -1)
7158      e.push(o);
7159    else
7160      return !1;
7161  }
7162  return !0;
7163}
7164function Xx(t) {
7165  return t !== null ? t : [];
7166}
7167var Kx = new st("tag:yaml.org,2002:omap", {
7168  kind: "sequence",
7169  resolve: Vx,
7170  construct: Xx
7171}), Zx = Object.prototype.toString;
7172function Jx(t) {
7173  if (t === null)
7174    return !0;
7175  var e, i, r, n, o, s = t;
7176  for (o = new Array(s.length), e = 0, i = s.length; e < i; e += 1) {
7177    if (r = s[e], Zx.call(r) !== "[object Object]" || (n = Object.keys(r), n.length !== 1))
7178      return !1;
7179    o[e] = [n[0], r[n[0]]];
7180  }
7181  return !0;
7182}
7183function Qx(t) {
7184  if (t === null)
7185    return [];
7186  var e, i, r, n, o, s = t;
7187  for (o = new Array(s.length), e = 0, i = s.length; e < i; e += 1)
7188    r = s[e], n = Object.keys(r), o[e] = [n[0], r[n[0]]];
7189  return o;
7190}
7191var tb = new st("tag:yaml.org,2002:pairs", {
7192  kind: "sequence",
7193  resolve: Jx,
7194  construct: Qx
7195}), eb = Object.prototype.hasOwnProperty;
7196function ib(t) {
7197  if (t === null)
7198    return !0;
7199  var e, i = t;
7200  for (e in i)
7201    if (eb.call(i, e) && i[e] !== null)
7202      return !1;
7203  return !0;
7204}
7205function rb(t) {
7206  return t !== null ? t : {};
7207}
7208var nb = new st("tag:yaml.org,2002:set", {
7209  kind: "mapping",
7210  resolve: ib,
7211  construct: rb
7212}), ob = $x.extend({
7213  implicit: [
7214    Rx,
7215    qx
7216  ],
7217  explicit: [
7218    Ux,
7219    Kx,
7220    tb,
7221    nb
7222  ]
7223}), oe = Object.prototype.hasOwnProperty, ur = 1, Jl = 2, Ql = 3, fr = 4, tn = 1, sb = 2, $s = 3, ab = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, lb = /[\x85\u2028\u2029]/, hb = /[,\[\]\{\}]/, th = /^(?:!|!!|![a-z\-]+!)$/i, eh = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
7224function Is(t) {
7225  return Object.prototype.toString.call(t);
7226}
7227function Dt(t) {
7228  return t === 10 || t === 13;
7229}
7230function pe(t) {
7231  return t === 9 || t === 32;
7232}
7233function gt(t) {
7234  return t === 9 || t === 32 || t === 10 || t === 13;
7235}
7236function Be(t) {
7237  return t === 44 || t === 91 || t === 93 || t === 123 || t === 125;
7238}
7239function cb(t) {
7240  var e;
7241  return 48 <= t && t <= 57 ? t - 48 : (e = t | 32, 97 <= e && e <= 102 ? e - 97 + 10 : -1);
7242}
7243function ub(t) {
7244  return t === 120 ? 2 : t === 117 ? 4 : t === 85 ? 8 : 0;
7245}
7246function fb(t) {
7247  return 48 <= t && t <= 57 ? t - 48 : -1;
7248}
7249function Ds(t) {
7250  return t === 48 ? "\0" : t === 97 ? "\x07" : t === 98 ? "\b" : t === 116 || t === 9 ? "	" : t === 110 ? `
7251` : t === 118 ? "\v" : t === 102 ? "\f" : t === 114 ? "\r" : t === 101 ? "\x1B" : t === 32 ? " " : t === 34 ? '"' : t === 47 ? "/" : t === 92 ? "\\" : t === 78 ? "…" : t === 95 ? " " : t === 76 ? "\u2028" : t === 80 ? "\u2029" : "";
7252}
7253function db(t) {
7254  return t <= 65535 ? String.fromCharCode(t) : String.fromCharCode(
7255    (t - 65536 >> 10) + 55296,
7256    (t - 65536 & 1023) + 56320
7257  );
7258}
7259var ih = new Array(256), rh = new Array(256);
7260for (var we = 0; we < 256; we++)
7261  ih[we] = Ds(we) ? 1 : 0, rh[we] = Ds(we);
7262function pb(t, e) {
7263  this.input = t, this.filename = e.filename || null, this.schema = e.schema || ob, this.onWarning = e.onWarning || null, this.legacy = e.legacy || !1, this.json = e.json || !1, this.listener = e.listener || null, this.implicitTypes = this.schema.compiledImplicit, this.typeMap = this.schema.compiledTypeMap, this.length = t.length, this.position = 0, this.line = 0, this.lineStart = 0, this.lineIndent = 0, this.firstTabInLine = -1, this.documents = [];
7264}
7265function nh(t, e) {
7266  var i = {
7267    name: t.filename,
7268    buffer: t.input.slice(0, -1),
7269    // omit trailing \0
7270    position: t.position,
7271    line: t.line,
7272    column: t.position - t.lineStart
7273  };
7274  return i.snippet = ex(i), new Vt(e, i);
7275}
7276function F(t, e) {
7277  throw nh(t, e);
7278}
7279function dr(t, e) {
7280  t.onWarning && t.onWarning.call(null, nh(t, e));
7281}
7282var Ns = {
7283  YAML: function(e, i, r) {
7284    var n, o, s;
7285    e.version !== null && F(e, "duplication of %YAML directive"), r.length !== 1 && F(e, "YAML directive accepts exactly one argument"), n = /^([0-9]+)\.([0-9]+)$/.exec(r[0]), n === null && F(e, "ill-formed argument of the YAML directive"), o = parseInt(n[1], 10), s = parseInt(n[2], 10), o !== 1 && F(e, "unacceptable YAML version of the document"), e.version = r[0], e.checkLineBreaks = s < 2, s !== 1 && s !== 2 && dr(e, "unsupported YAML version of the document");
7286  },
7287  TAG: function(e, i, r) {
7288    var n, o;
7289    r.length !== 2 && F(e, "TAG directive accepts exactly two arguments"), n = r[0], o = r[1], th.test(n) || F(e, "ill-formed tag handle (first argument) of the TAG directive"), oe.call(e.tagMap, n) && F(e, 'there is a previously declared suffix for "' + n + '" tag handle'), eh.test(o) || F(e, "ill-formed tag prefix (second argument) of the TAG directive");
7290    try {
7291      o = decodeURIComponent(o);
7292    } catch {
7293      F(e, "tag prefix is malformed: " + o);
7294    }
7295    e.tagMap[n] = o;
7296  }
7297};
7298function re(t, e, i, r) {
7299  var n, o, s, a;
7300  if (e < i) {
7301    if (a = t.input.slice(e, i), r)
7302      for (n = 0, o = a.length; n < o; n += 1)
7303        s = a.charCodeAt(n), s === 9 || 32 <= s && s <= 1114111 || F(t, "expected valid JSON character");
7304    else
7305      ab.test(a) && F(t, "the stream contains non-printable characters");
7306    t.result += a;
7307  }
7308}
7309function Rs(t, e, i, r) {
7310  var n, o, s, a;
7311  for (ht.isObject(i) || F(t, "cannot merge mappings; the provided source object is unacceptable"), n = Object.keys(i), s = 0, a = n.length; s < a; s += 1)
7312    o = n[s], oe.call(e, o) || (e[o] = i[o], r[o] = !0);
7313}
7314function Fe(t, e, i, r, n, o, s, a, l) {
7315  var h, u;
7316  if (Array.isArray(n))
7317    for (n = Array.prototype.slice.call(n), h = 0, u = n.length; h < u; h += 1)
7318      Array.isArray(n[h]) && F(t, "nested arrays are not supported inside keys"), typeof n == "object" && Is(n[h]) === "[object Object]" && (n[h] = "[object Object]");
7319  if (typeof n == "object" && Is(n) === "[object Object]" && (n = "[object Object]"), n = String(n), e === null && (e = {}), r === "tag:yaml.org,2002:merge")
7320    if (Array.isArray(o))
7321      for (h = 0, u = o.length; h < u; h += 1)
7322        Rs(t, e, o[h], i);
7323    else
7324      Rs(t, e, o, i);
7325  else
7326    !t.json && !oe.call(i, n) && oe.call(e, n) && (t.line = s || t.line, t.lineStart = a || t.lineStart, t.position = l || t.position, F(t, "duplicated mapping key")), n === "__proto__" ? Ob
vendor: 18,294 bytes, lines 7326-7668
7326ject.defineProperty(e, n, {
7327      configurable: !0,
7328      enumerable: !0,
7329      writable: !0,
7330      value: o
7331    }) : e[n] = o, delete i[n];
7332  return e;
7333}
7334function io(t) {
7335  var e;
7336  e = t.input.charCodeAt(t.position), e === 10 ? t.position++ : e === 13 ? (t.position++, t.input.charCodeAt(t.position) === 10 && t.position++) : F(t, "a line break is expected"), t.line += 1, t.lineStart = t.position, t.firstTabInLine = -1;
7337}
7338function J(t, e, i) {
7339  for (var r = 0, n = t.input.charCodeAt(t.position); n !== 0; ) {
7340    for (; pe(n); )
7341      n === 9 && t.firstTabInLine === -1 && (t.firstTabInLine = t.position), n = t.input.charCodeAt(++t.position);
7342    if (e && n === 35)
7343      do
7344        n = t.input.charCodeAt(++t.position);
7345      while (n !== 10 && n !== 13 && n !== 0);
7346    if (Dt(n))
7347      for (io(t), n = t.input.charCodeAt(t.position), r++, t.lineIndent = 0; n === 32; )
7348        t.lineIndent++, n = t.input.charCodeAt(++t.position);
7349    else
7350      break;
7351  }
7352  return i !== -1 && r !== 0 && t.lineIndent < i && dr(t, "deficient indentation"), r;
7353}
7354function Mr(t) {
7355  var e = t.position, i;
7356  return i = t.input.charCodeAt(e), !!((i === 45 || i === 46) && i === t.input.charCodeAt(e + 1) && i === t.input.charCodeAt(e + 2) && (e += 3, i = t.input.charCodeAt(e), i === 0 || gt(i)));
7357}
7358function ro(t, e) {
7359  e === 1 ? t.result += " " : e > 1 && (t.result += ht.repeat(`
7360`, e - 1));
7361}
7362function gb(t, e, i) {
7363  var r, n, o, s, a, l, h, u, f = t.kind, c = t.result, p;
7364  if (p = t.input.charCodeAt(t.position), gt(p) || Be(p) || p === 35 || p === 38 || p === 42 || p === 33 || p === 124 || p === 62 || p === 39 || p === 34 || p === 37 || p === 64 || p === 96 || (p === 63 || p === 45) && (n = t.input.charCodeAt(t.position + 1), gt(n) || i && Be(n)))
7365    return !1;
7366  for (t.kind = "scalar", t.result = "", o = s = t.position, a = !1; p !== 0; ) {
7367    if (p === 58) {
7368      if (n = t.input.charCodeAt(t.position + 1), gt(n) || i && Be(n))
7369        break;
7370    } else if (p === 35) {
7371      if (r = t.input.charCodeAt(t.position - 1), gt(r))
7372        break;
7373    } else {
7374      if (t.position === t.lineStart && Mr(t) || i && Be(p))
7375        break;
7376      if (Dt(p))
7377        if (l = t.line, h = t.lineStart, u = t.lineIndent, J(t, !1, -1), t.lineIndent >= e) {
7378          a = !0, p = t.input.charCodeAt(t.position);
7379          continue;
7380        } else {
7381          t.position = s, t.line = l, t.lineStart = h, t.lineIndent = u;
7382          break;
7383        }
7384    }
7385    a && (re(t, o, s, !1), ro(t, t.line - l), o = s = t.position, a = !1), pe(p) || (s = t.position + 1), p = t.input.charCodeAt(++t.position);
7386  }
7387  return re(t, o, s, !1), t.result ? !0 : (t.kind = f, t.result = c, !1);
7388}
7389function mb(t, e) {
7390  var i, r, n;
7391  if (i = t.input.charCodeAt(t.position), i !== 39)
7392    return !1;
7393  for (t.kind = "scalar", t.result = "", t.position++, r = n = t.position; (i = t.input.charCodeAt(t.position)) !== 0; )
7394    if (i === 39)
7395      if (re(t, r, t.position, !0), i = t.input.charCodeAt(++t.position), i === 39)
7396        r = t.position, t.position++, n = t.position;
7397      else
7398        return !0;
7399    else
7400      Dt(i) ? (re(t, r, n, !0), ro(t, J(t, !1, e)), r = n = t.position) : t.position === t.lineStart && Mr(t) ? F(t, "unexpected end of the document within a single quoted scalar") : (t.position++, n = t.position);
7401  F(t, "unexpected end of the stream within a single quoted scalar");
7402}
7403function yb(t, e) {
7404  var i, r, n, o, s, a;
7405  if (a = t.input.charCodeAt(t.position), a !== 34)
7406    return !1;
7407  for (t.kind = "scalar", t.result = "", t.position++, i = r = t.position; (a = t.input.charCodeAt(t.position)) !== 0; ) {
7408    if (a === 34)
7409      return re(t, i, t.position, !0), t.position++, !0;
7410    if (a === 92) {
7411      if (re(t, i, t.position, !0), a = t.input.charCodeAt(++t.position), Dt(a))
7412        J(t, !1, e);
7413      else if (a < 256 && ih[a])
7414        t.result += rh[a], t.position++;
7415      else if ((s = ub(a)) > 0) {
7416        for (n = s, o = 0; n > 0; n--)
7417          a = t.input.charCodeAt(++t.position), (s = cb(a)) >= 0 ? o = (o << 4) + s : F(t, "expected hexadecimal character");
7418        t.result += db(o), t.position++;
7419      } else
7420        F(t, "unknown escape sequence");
7421      i = r = t.position;
7422    } else
7423      Dt(a) ? (re(t, i, r, !0), ro(t, J(t, !1, e)), i = r = t.position) : t.position === t.lineStart && Mr(t) ? F(t, "unexpected end of the document within a double quoted scalar") : (t.position++, r = t.position);
7424  }
7425  F(t, "unexpected end of the stream within a double quoted scalar");
7426}
7427function _b(t, e) {
7428  var i = !0, r, n, o, s = t.tag, a, l = t.anchor, h, u, f, c, p, m = /* @__PURE__ */ Object.create(null), k, O, q, T;
7429  if (T = t.input.charCodeAt(t.position), T === 91)
7430    u = 93, p = !1, a = [];
7431  else if (T === 123)
7432    u = 125, p = !0, a = {};
7433  else
7434    return !1;
7435  for (t.anchor !== null && (t.anchorMap[t.anchor] = a), T = t.input.charCodeAt(++t.position); T !== 0; ) {
7436    if (J(t, !0, e), T = t.input.charCodeAt(t.position), T === u)
7437      return t.position++, t.tag = s, t.anchor = l, t.kind = p ? "mapping" : "sequence", t.result = a, !0;
7438    i ? T === 44 && F(t, "expected the node content, but found ','") : F(t, "missed comma between flow collection entries"), O = k = q = null, f = c = !1, T === 63 && (h = t.input.charCodeAt(t.position + 1), gt(h) && (f = c = !0, t.position++, J(t, !0, e))), r = t.line, n = t.lineStart, o = t.position, Ne(t, e, ur, !1, !0), O = t.tag, k = t.result, J(t, !0, e), T = t.input.charCodeAt(t.position), (c || t.line === r) && T === 58 && (f = !0, T = t.input.charCodeAt(++t.position), J(t, !0, e), Ne(t, e, ur, !1, !0), q = t.result), p ? Fe(t, a, m, O, k, q, r, n, o) : f ? a.push(Fe(t, null, m, O, k, q, r, n, o)) : a.push(k), J(t, !0, e), T = t.input.charCodeAt(t.position), T === 44 ? (i = !0, T = t.input.charCodeAt(++t.position)) : i = !1;
7439  }
7440  F(t, "unexpected end of the stream within a flow collection");
7441}
7442function Cb(t, e) {
7443  var i, r, n = tn, o = !1, s = !1, a = e, l = 0, h = !1, u, f;
7444  if (f = t.input.charCodeAt(t.position), f === 124)
7445    r = !1;
7446  else if (f === 62)
7447    r = !0;
7448  else
7449    return !1;
7450  for (t.kind = "scalar", t.result = ""; f !== 0; )
7451    if (f = t.input.charCodeAt(++t.position), f === 43 || f === 45)
7452      tn === n ? n = f === 43 ? $s : sb : F(t, "repeat of a chomping mode identifier");
7453    else if ((u = fb(f)) >= 0)
7454      u === 0 ? F(t, "bad explicit indentation width of a block scalar; it cannot be less than one") : s ? F(t, "repeat of an indentation width identifier") : (a = e + u - 1, s = !0);
7455    else
7456      break;
7457  if (pe(f)) {
7458    do
7459      f = t.input.charCodeAt(++t.position);
7460    while (pe(f));
7461    if (f === 35)
7462      do
7463        f = t.input.charCodeAt(++t.position);
7464      while (!Dt(f) && f !== 0);
7465  }
7466  for (; f !== 0; ) {
7467    for (io(t), t.lineIndent = 0, f = t.input.charCodeAt(t.position); (!s || t.lineIndent < a) && f === 32; )
7468      t.lineIndent++, f = t.input.charCodeAt(++t.position);
7469    if (!s && t.lineIndent > a && (a = t.lineIndent), Dt(f)) {
7470      l++;
7471      continue;
7472    }
7473    if (t.lineIndent < a) {
7474      n === $s ? t.result += ht.repeat(`
7475`, o ? 1 + l : l) : n === tn && o && (t.result += `
7476`);
7477      break;
7478    }
7479    for (r ? pe(f) ? (h = !0, t.result += ht.repeat(`
7480`, o ? 1 + l : l)) : h ? (h = !1, t.result += ht.repeat(`
7481`, l + 1)) : l === 0 ? o && (t.result += " ") : t.result += ht.repeat(`
7482`, l) : t.result += ht.repeat(`
7483`, o ? 1 + l : l), o = !0, s = !0, l = 0, i = t.position; !Dt(f) && f !== 0; )
7484      f = t.input.charCodeAt(++t.position);
7485    re(t, i, t.position, !1);
7486  }
7487  return !0;
7488}
7489function Ps(t, e) {
7490  var i, r = t.tag, n = t.anchor, o = [], s, a = !1, l;
7491  if (t.firstTabInLine !== -1)
7492    return !1;
7493  for (t.anchor !== null && (t.anchorMap[t.anchor] = o), l = t.input.charCodeAt(t.position); l !== 0 && (t.firstTabInLine !== -1 && (t.position = t.firstTabInLine, F(t, "tab characters must not be used in indentation")), !(l !== 45 || (s = t.input.charCodeAt(t.position + 1), !gt(s)))); ) {
7494    if (a = !0, t.position++, J(t, !0, -1) && t.lineIndent <= e) {
7495      o.push(null), l = t.input.charCodeAt(t.position);
7496      continue;
7497    }
7498    if (i = t.line, Ne(t, e, Ql, !1, !0), o.push(t.result), J(t, !0, -1), l = t.input.charCodeAt(t.position), (t.line === i || t.lineIndent > e) && l !== 0)
7499      F(t, "bad indentation of a sequence entry");
7500    else if (t.lineIndent < e)
7501      break;
7502  }
7503  return a ? (t.tag = r, t.anchor = n, t.kind = "sequence", t.result = o, !0) : !1;
7504}
7505function xb(t, e, i) {
7506  var r, n, o, s, a, l, h = t.tag, u = t.anchor, f = {}, c = /* @__PURE__ */ Object.create(null), p = null, m = null, k = null, O = !1, q = !1, T;
7507  if (t.firstTabInLine !== -1)
7508    return !1;
7509  for (t.anchor !== null && (t.anchorMap[t.anchor] = f), T = t.input.charCodeAt(t.position); T !== 0; ) {
7510    if (!O && t.firstTabInLine !== -1 && (t.position = t.firstTabInLine, F(t, "tab characters must not be used in indentation")), r = t.input.charCodeAt(t.position + 1), o = t.line, (T === 63 || T === 58) && gt(r))
7511      T === 63 ? (O && (Fe(t, f, c, p, m, null, s, a, l), p = m = k = null), q = !0, O = !0, n = !0) : O ? (O = !1, n = !0) : F(t, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), t.position += 1, T = r;
7512    else {
7513      if (s = t.line, a = t.lineStart, l = t.position, !Ne(t, i, Jl, !1, !0))
7514        break;
7515      if (t.line === o) {
7516        for (T = t.input.charCodeAt(t.position); pe(T); )
7517          T = t.input.charCodeAt(++t.position);
7518        if (T === 58)
7519          T = t.input.charCodeAt(++t.position), gt(T) || F(t, "a whitespace character is expected after the key-value separator within a block mapping"), O && (Fe(t, f, c, p, m, null, s, a, l), p = m = k = null), q = !0, O = !1, n = !1, p = t.tag, m = t.result;
7520        else if (q)
7521          F(t, "can not read an implicit mapping pair; a colon is missed");
7522        else
7523          return t.tag = h, t.anchor = u, !0;
7524      } else if (q)
7525        F(t, "can not read a block mapping entry; a multiline key may not be an implicit key");
7526      else
7527        return t.tag = h, t.anchor = u, !0;
7528    }
7529    if ((t.line === o || t.lineIndent > e) && (O && (s = t.line, a = t.lineStart, l = t.position), Ne(t, e, fr, !0, n) && (O ? m = t.result : k = t.result), O || (Fe(t, f, c, p, m, k, s, a, l), p = m = k = null), J(t, !0, -1), T = t.input.charCodeAt(t.position)), (t.line === o || t.lineIndent > e) && T !== 0)
7530      F(t, "bad indentation of a mapping entry");
7531    else if (t.lineIndent < e)
7532      break;
7533  }
7534  return O && Fe(t, f, c, p, m, null, s, a, l), q && (t.tag = h, t.anchor = u, t.kind = "mapping", t.result = f), q;
7535}
7536function bb(t) {
7537  var e, i = !1, r = !1, n, o, s;
7538  if (s = t.input.charCodeAt(t.position), s !== 33)
7539    return !1;
7540  if (t.tag !== null && F(t, "duplication of a tag property"), s = t.input.charCodeAt(++t.position), s === 60 ? (i = !0, s = t.input.charCodeAt(++t.position)) : s === 33 ? (r = !0, n = "!!", s = t.input.charCodeAt(++t.position)) : n = "!", e = t.position, i) {
7541    do
7542      s = t.input.charCodeAt(++t.position);
7543    while (s !== 0 && s !== 62);
7544    t.position < t.length ? (o = t.input.slice(e, t.position), s = t.input.charCodeAt(++t.position)) : F(t, "unexpected end of the stream within a verbatim tag");
7545  } else {
7546    for (; s !== 0 && !gt(s); )
7547      s === 33 && (r ? F(t, "tag suffix cannot contain exclamation marks") : (n = t.input.slice(e - 1, t.position + 1), th.test(n) || F(t, "named tag handle cannot contain such characters"), r = !0, e = t.position + 1)), s = t.input.charCodeAt(++t.position);
7548    o = t.input.slice(e, t.position), hb.test(o) && F(t, "tag suffix cannot contain flow indicator characters");
7549  }
7550  o && !eh.test(o) && F(t, "tag name cannot contain such characters: " + o);
7551  try {
7552    o = decodeURIComponent(o);
7553  } catch {
7554    F(t, "tag name is malformed: " + o);
7555  }
7556  return i ? t.tag = o : oe.call(t.tagMap, n) ? t.tag = t.tagMap[n] + o : n === "!" ? t.tag = "!" + o : n === "!!" ? t.tag = "tag:yaml.org,2002:" + o : F(t, 'undeclared tag handle "' + n + '"'), !0;
7557}
7558function Tb(t) {
7559  var e, i;
7560  if (i = t.input.charCodeAt(t.position), i !== 38)
7561    return !1;
7562  for (t.anchor !== null && F(t, "duplication of an anchor property"), i = t.input.charCodeAt(++t.position), e = t.position; i !== 0 && !gt(i) && !Be(i); )
7563    i = t.input.charCodeAt(++t.position);
7564  return t.position === e && F(t, "name of an anchor node must contain at least one character"), t.anchor = t.input.slice(e, t.position), !0;
7565}
7566function kb(t) {
7567  var e, i, r;
7568  if (r = t.input.charCodeAt(t.position), r !== 42)
7569    return !1;
7570  for (r = t.input.charCodeAt(++t.position), e = t.position; r !== 0 && !gt(r) && !Be(r); )
7571    r = t.input.charCodeAt(++t.position);
7572  return t.position === e && F(t, "name of an alias node must contain at least one character"), i = t.input.slice(e, t.position), oe.call(t.anchorMap, i) || F(t, 'unidentified alias "' + i + '"'), t.result = t.anchorMap[i], J(t, !0, -1), !0;
7573}
7574function Ne(t, e, i, r, n) {
7575  var o, s, a, l = 1, h = !1, u = !1, f, c, p, m, k, O;
7576  if (t.listener !== null && t.listener("open", t), t.tag = null, t.anchor = null, t.kind = null, t.result = null, o = s = a = fr === i || Ql === i, r && J(t, !0, -1) && (h = !0, t.lineIndent > e ? l = 1 : t.lineIndent === e ? l = 0 : t.lineIndent < e && (l = -1)), l === 1)
7577    for (; bb(t) || Tb(t); )
7578      J(t, !0, -1) ? (h = !0, a = o, t.lineIndent > e ? l = 1 : t.lineIndent === e ? l = 0 : t.lineIndent < e && (l = -1)) : a = !1;
7579  if (a && (a = h || n), (l === 1 || fr === i) && (ur === i || Jl === i ? k = e : k = e + 1, O = t.position - t.lineStart, l === 1 ? a && (Ps(t, O) || xb(t, O, k)) || _b(t, k) ? u = !0 : (s && Cb(t, k) || mb(t, k) || yb(t, k) ? u = !0 : kb(t) ? (u = !0, (t.tag !== null || t.anchor !== null) && F(t, "alias node should not have any properties")) : gb(t, k, ur === i) && (u = !0, t.tag === null && (t.tag = "?")), t.anchor !== null && (t.anchorMap[t.anchor] = t.result)) : l === 0 && (u = a && Ps(t, O))), t.tag === null)
7580    t.anchor !== null && (t.anchorMap[t.anchor] = t.result);
7581  else if (t.tag === "?") {
7582    for (t.result !== null && t.kind !== "scalar" && F(t, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + t.kind + '"'), f = 0, c = t.implicitTypes.length; f < c; f += 1)
7583      if (m = t.implicitTypes[f], m.resolve(t.result)) {
7584        t.result = m.construct(t.result), t.tag = m.tag, t.anchor !== null && (t.anchorMap[t.anchor] = t.result);
7585        break;
7586      }
7587  } else if (t.tag !== "!") {
7588    if (oe.call(t.typeMap[t.kind || "fallback"], t.tag))
7589      m = t.typeMap[t.kind || "fallback"][t.tag];
7590    else
7591      for (m = null, p = t.typeMap.multi[t.kind || "fallback"], f = 0, c = p.length; f < c; f += 1)
7592        if (t.tag.slice(0, p[f].tag.length) === p[f].tag) {
7593          m = p[f];
7594          break;
7595        }
7596    m || F(t, "unknown tag !<" + t.tag + ">"), t.result !== null && m.kind !== t.kind && F(t, "unacceptable node kind for !<" + t.tag + '> tag; it should be "' + m.kind + '", not "' + t.kind + '"'), m.resolve(t.result, t.tag) ? (t.result = m.construct(t.result, t.tag), t.anchor !== null && (t.anchorMap[t.anchor] = t.result)) : F(t, "cannot resolve a node with !<" + t.tag + "> explicit tag");
7597  }
7598  return t.listener !== null && t.listener("close", t), t.tag !== null || t.anchor !== null || u;
7599}
7600function Sb(t) {
7601  var e = t.position, i, r, n, o = !1, s;
7602  for (t.version = null, t.checkLineBreaks = t.legacy, t.tagMap = /* @__PURE__ */ Object.create(null), t.anchorMap = /* @__PURE__ */ Object.create(null); (s = t.input.charCodeAt(t.position)) !== 0 && (J(t, !0, -1), s = t.input.charCodeAt(t.position), !(t.lineIndent > 0 || s !== 37)); ) {
7603    for (o = !0, s = t.input.charCodeAt(++t.position), i = t.position; s !== 0 && !gt(s); )
7604      s = t.input.charCodeAt(++t.position);
7605    for (r = t.input.slice(i, t.position), n = [], r.length < 1 && F(t, "directive name must not be less than one character in length"); s !== 0; ) {
7606      for (; pe(s); )
7607        s = t.input.charCodeAt(++t.position);
7608      if (s === 35) {
7609        do
7610          s = t.input.charCodeAt(++t.position);
7611        while (s !== 0 && !Dt(s));
7612        break;
7613      }
7614      if (Dt(s))
7615        break;
7616      for (i = t.position; s !== 0 && !gt(s); )
7617        s = t.input.charCodeAt(++t.position);
7618      n.push(t.input.slice(i, t.position));
7619    }
7620    s !== 0 && io(t), oe.call(Ns, r) ? Ns[r](t, r, n) : dr(t, 'unknown document directive "' + r + '"');
7621  }
7622  if (J(t, !0, -1), t.lineIndent === 0 && t.input.charCodeAt(t.position) === 45 && t.input.charCodeAt(t.position + 1) === 45 && t.input.charCodeAt(t.position + 2) === 45 ? (t.position += 3, J(t, !0, -1)) : o && F(t, "directives end mark is expected"), Ne(t, t.lineIndent - 1, fr, !1, !0), J(t, !0, -1), t.checkLineBreaks && lb.test(t.input.slice(e, t.position)) && dr(t, "non-ASCII line breaks are interpreted as content"), t.documents.push(t.result), t.position === t.lineStart && Mr(t)) {
7623    t.input.charCodeAt(t.position) === 46 && (t.position += 3, J(t, !0, -1));
7624    return;
7625  }
7626  if (t.position < t.length - 1)
7627    F(t, "end of the stream or a document separator is expected");
7628  else
7629    return;
7630}
7631function oh(t, e) {
7632  t = String(t), e = e || {}, t.length !== 0 && (t.charCodeAt(t.length - 1) !== 10 && t.charCodeAt(t.length - 1) !== 13 && (t += `
7633`), t.charCodeAt(0) === 65279 && (t = t.slice(1)));
7634  var i = new pb(t, e), r = t.indexOf("\0");
7635  for (r !== -1 && (i.position = r, F(i, "null byte is not allowed in input")), i.input += "\0"; i.input.charCodeAt(i.position) === 32; )
7636    i.lineIndent += 1, i.position += 1;
7637  for (; i.position < i.length - 1; )
7638    Sb(i);
7639  return i.documents;
7640}
7641function vb(t, e, i) {
7642  e !== null && typeof e == "object" && typeof i > "u" && (i = e, e = null);
7643  var r = oh(t, i);
7644  if (typeof e != "function")
7645    return r;
7646  for (var n = 0, o = r.length; n < o; n += 1)
7647    e(r[n]);
7648}
7649function wb(t, e) {
7650  var i = oh(t, e);
7651  if (i.length !== 0) {
7652    if (i.length === 1)
7653      return i[0];
7654    throw new Vt("expected a single document in the stream, but found more");
7655  }
7656}
7657var Bb = vb, Fb = wb, Ab = {
7658  loadAll: Bb,
7659  load: Fb
7660}, Lb = Xl, Eb = Ab.load;
7661function Mb(t) {
7662  const e = t.match(Ha);
7663  if (!e)
7664    return {
7665      text: t,
7666      metadata: {}
7667    };
7668  let i = Eb(e[1], {
7669    // To support config, we need JSON schema.
7670    // https://www.yaml.org/spec/1.2/spec.html#id2803231
7671    schema: Lb
7672  }) ?? {};
7673  i = typeof i == "object" && !Array.isArray(i) ? i : {};
7674  const r = {};
7675  return i.displayMode && (r.displayMode = i.displayMode.toString()), i.title && (r.title = i.title.toString()), i.config && (r.config = i.config), {
7676    text: t.slice(e[0].length),
7677    metadata: r
7678  };
7679}
7680const Ob = (t) => t.replace(/\r\n?/g, `
7681`).replace(
7682  /<(\w+)([^>]*)>/g,
7683  (e, i, r) => "<" + i + r.replace(/="([^"]*)"/g, "='$1'") + ">"
7684), $b = (t) => {
7685  const { text: e, metadata: i } = Mb(t), { displayMode: r, title: n, config: o = {} } = i;
7686  return r && (o.gantt || (o.gantt = {}), o.gantt.displayMode = r), { title: n, config: o, text: e };
7687}, Ib = (t) => {
7688  const e = ni.detectInit(t) ?? {}, i = ni.detectDirective(t, "wrap");
7689  return Array.isArray(i) ? e.wrap = i.some(({ type: r }) => {
7690  }) : (i == null ? void 0 : i.type) === "wrap" && (e.wrap = !0), {
7691    text: k0(t),
7692    directive: e
7693  };
7694};
7695function sh(t) {
7696  const e = Ob(t), i = $b(e), r = Ib(i.text), n = cl(i.config, r.directive);
7697  return t = WC(r.text), {
7698    code: t,
7699    title: i.title,
7700    config: n
7701  };
7702}
7703const Db = 5e4, Nb = "graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa", Rb = "sandbox", Pb = "loose", qb = "http://www.w3.org/2000/svg", zb = "http://www.w3.org/1999/xlink", Wb = "http://www.w3.org/1999/xhtml", Hb = "100%", jb = "100%", Ub = "border:0;margin:0;", Yb = "margin:0", Gb = "allow-top-navigation-by-user-activation allow-popups", Vb = 'The "iframe" tag is not supported by your browser.', Xb = ["foreignobject"], Kb = ["dominant-baseline"];
7704function ah(t) {
7705  const e = sh(t);
7706  return lr(), uy(e.config ?? {}), e;
7707}
7708async function Zb(t, e) {
7709  to(), t = ah(t).code;
7710  try {
7711    await no(t);
7712  } catch (i) {
7713    if (e != null && e.suppressErrors)
7714      return !1;
7715    throw i;
7716  }
7717  return !0;
7718}
7719const qs = (t, e, i = []) => `
7720.${t} ${e} { ${i.join(" !important; ")} !important; }`, Jb = (t, e = {}) => {
7721  var r;
7722  let i = "";
7723  if (t.themeCSS !== void 0 && (i += `
7724${t.themeCSS}`), t.fontFamily !== void 0 && (i += `
7725:root { --mermaid-font-family: ${t.fontFamily}}`), t.altFontFamily !== void 0 && (i += `
7726:root { --mermaid-alt-font-family: ${t.altFontFamily}}`), !Zr(e)) {
7727    const a = t.htmlLabels || ((r = t.flowchart) == null ? void 0 : r.htmlLabels) ? ["> *", "span"] : ["rect", "polygon", "ellipse", "circle", "path"];
7728    for (const l in e) {
7729      const h = e[l];
7730      Zr(h.styles) || a.forEach((u) => {
7731        i += qs(h.id, u, h.styles);
7732      }), Zr(h.textStyles) || (i += qs(h.id, "tspan", h.textStyles));
7733    }
7734  }
7735  return i;
7736}, Qb = (t, e, i, r) => {
7737  const n = Jb(t, i), o = E_(e, n, t.themeVariables);
7738  return Cn(oy(`${r}{${o}}`), ay);
7739}, t1 = (t = "", e, i) => {
7740  let r = t;
7741  return !i && !e && (r = r.replace(
7742    /marker-end="url\([\d+./:=?A-Za-z-]*?#/g,
7743    'marker-end="url(#'
7744  )), r = U0(r), r = r.replace(/<br>/g, "<br/>"), r;
7745}, e1 = (t = "", e) => {
7746  var n, o;
7747  const i = (o = (n = e == null ? void 0 : e.viewBox) == null ? void 0 : n.baseVal) != null && o.height ? e.viewBox.baseVal.height + "px" : jb, r = btoa('<body style="' + Yb + '">' + t + "</body>");
7748  return `<iframe style="width:${Hb};height:${i};${Ub}" src="data:text/html;base64,${r}" sandbox="${Gb}">
7749  ${Vb}
7750</iframe>`;
7751}, zs = (t, e, i, r, n) => {
7752  const o = t.append("div");
7753  o.attr("id", i), r && o.attr("style", r);
7754  const s = o.append("svg").attr("id", e).attr("width", "100%").attr("xmlns", qb);
7755  return n && s.attr("xmlns:xlink", n), s.append("g"), t;
7756};
7757function Ws(t, e) {
7758  return t.append("iframe").attr("id", e).attr("style", "width: 100%; height: 100%;").attr("sandbox", "");
7759}
7760const i1 = (t, e, i, r) => {
7761  var n, o, s;
7762  (n = t.getElementById(e)) == null || n.remove(), (o = t.getElementById(i)) == null || o.remove(), (s = t.getElementById(r)) == null || s.remove();
7763}, r1 = async function(t, e, i) {
7764  var zt, M, b, C, v, x;
7765  to();
7766  const r = ah(e);
7767  e = r.code;
7768  const n = Rt();
7769  L.debug(n), e.length > ((n == null ? void 0 : n.maxTextSize) ?? Db) && (e = Nb);
7770  const o = "#" + t, s = "i" + t, a = "#" + s, l = "d" + t, h = "#" + l;
7771  let u = Tt("body");
7772  const f = n.securityLevel === Rb, c = n.securityLevel === Pb, p = n.fontFamily;
7773  if (i !== void 0) {
7774    if (i && (i.innerHTML = ""), f) {
7775      const A = Ws(Tt(i), s);
7776      u = Tt(A.nodes()[0].contentDocument.body), u.node().style.margin = 0;
7777    } else
7778      u = Tt(i);
7779    zs(u, t, l, `font-family: ${p}`, zb);
7780  } else {
7781    if (i1(document, t, l, s), f) {
7782      const A = Ws(Tt("body"), s);
7783      u = Tt(A.nodes()[0].contentDocument.body), u.node().style.margin = 0;
7784    } else
7785      u = Tt("body");
7786    zs(u, t, l);
7787  }
7788  let m, k;
7789  try {
7790    m = await no(e, { title: r.title });
7791  } catch (A) {
7792    m = new Yl("error"), k = A;
7793  }
7794  const O = u.select(h).node(), q = m.type, T = O.firstChild, U = T.firstChild, W = (M = (zt = m.renderer).getClasses) == null ? void 0 : M.call(zt, e, m), G = Qb(n, q, W, o), V = document.createElement("style");
7795  V.innerHTML = G, T.insertBefore(V, U);
7796  try {
7797    await m.renderer.draw(e, t, Ss, m);
7798  } catch (A) {
7799    throw V_.draw(e, t, Ss), A;
7800  }
7801  const H = u.select(`${h} svg`), ae = (C = (b = m.db).getAccTitle) == null ? void 0 : C.call(b), Jt = (x = (v = m.db).getAccDescription) == null ? void 0 : x.call(v);
7802  o1(q, H, ae, Jt), u.select(`[id="${t}"]`).selectAll("foreignobject > *").attr("xmlns", Wb);
7803  let j = u.select(h).node().innerHTML;
7804  if (L.debug("config.arrowMarkerAbsolute", n.arrowMarkerAbsolute), j = t1(j, f, Da(n.arrowMarkerAbsolute)), f) {
7805    const A = u.select(h + " svg").node();
7806    j = e1(j, A);
7807  } else
7808    c || (j = Me.sanitize(j, {
7809      ADD_TAGS: Xb,
7810      ADD_ATTR: Kb
7811    }));
7812  if (_C(), k)
7813    throw k;
7814  const _t = Tt(f ? a : h).node();
7815  return _t && "remove" in _t && _t.remove(), {
7816    svg: j,
7817    bindFunctions: m.db.bindFunctions
7818  };
7819};
7820function n1(t = {}) {
7821  var i;
7822  t != null && t.fontFamily && !((i = t.themeVariables) != null && i.fontFamily) && (t.themeVariables || (t.themeVariables = {}), t.themeVariables.fontFamily = t.fontFamily), hy(t), t != null && t.theme && t.theme in Xt ? t.themeVariables = Xt[t.theme].getThemeVariables(
7823    t.themeVariables
7824  ) : t && (t.themeVariables = Xt.default.getThemeVariables(t.themeVariables));
7825  const e = typeof t == "object" ? ly(t) : _l();
7826  vn(e.logLevel), to();
7827}
7828const no = (t, e = {}) => {
7829  const { code: i } = sh(t);
7830  return yC(i, e);
7831};
7832function o1(t, e, i, r) {
7833  qC(e, t), zC(e, i, r, e.attr("id"));
7834}
7835const ye = Object.freeze({
7836  render: r1,
7837  parse: Zb,
7838  getDiagramFromText: no,
7839  initialize: n1,
7840  getConfig: Rt,
7841  setConfig: Cl,
7842  getSiteConfig: _l,
7843  updateSiteConfig: cy,
7844  reset: () => {
7845    lr();
7846  },
7847  globalReset: () => {
7848    lr(Ie);
7849  },
7850  defaultConfig: Ie
7851});
7852vn(Rt().logLevel);
7853lr(Rt());
7854const s1 = async () => {
7855  L.debug("Loading registered diagrams");
7856  const e = (await Promise.allSettled(
7857    Object.entries(Oe).map(async ([i, { detector: r, loader: n }]) => {
7858      if (n)
7859        try {
7860          Qn(i);
7861        } catch {
7862          try {
7863            const { diagram: s, id: a } = await n();
7864            cr(a, s, r);
7865          } catch (s) {
7866            throw L.error(`Failed to load external diagram with key ${i}. Removing from detectors.`), delete Oe[i], s;
7867          }
7868        }
7869    })
7870  )).filter((i) => i.status === "rejected");
7871  if (e.length > 0) {
7872    L.error(`Failed to load ${e.length} external diagrams`);
7873    for (const i of e)
7874      L.error(i);
7875    throw new Error(`Failed to load ${e.length} external diagrams`);
7876  }
7877}, a1 = (t, e, i) => {
7878  L.warn(t), hl(t) ? (i && i(t.str, t.hash), e.push({ ...t, message: t.str, error: t })) : (i && i(t), t instanceof Error && e.push({
7879    str: t.message,
7880    message: t.message,
7881    hash: t.name,
7882    error: t
7883  }));
7884}, lh = async function(t = {
7885  querySelector: ".mermaid"
7886}) {
7887  try {
7888    await l1(t);
7889  } catch (e) {
7890    if (hl(e) && L.error(e.str), kt.parseError && kt.parseError(e), !t.suppressErrors)
7891      throw L.error("Use the suppressErrors option to suppress these errors"), e;
7892  }
7893}, l1 = async function({ postRenderCallback: t, querySelector: e, nodes: i } = {
7894  querySelector: ".mermaid"
7895}) {
7896  const r = ye.getConfig();
7897  L.debug(`${t ? "" : "No "}Callback function found`);
7898  let n;
7899  if (i)
7900    n = i;
7901  else if (e)
7902    n = document.querySelectorAll(e);
7903  else
7904    throw new Error("Nodes and querySelector are both undefined");
7905  L.debug(`Found ${n.length} diagrams`), (r == null ? void 0 : r.startOnLoad) !== void 0 && (L.debug("Start On Load: " + (r == null ? void 0 : r.startOnLoad)), ye.updateSiteConfig({ startOnLoad: r == null ? void 0 : r.startOnLoad }));
7906  const o = new ni.InitIDGenerator(r.deterministicIds, r.deterministicIDSeed);
7907  let s;
7908  const a = [];
7909  for (const l of Array.from(n)) {
7910    L.info("Rendering diagram: " + l.id);
7911    /*! Check if previously processed */
7912    if (l.getAttribute("data-processed"))
7913      continue;
7914    l.setAttribute("data-processed", "true");
7915    const h = `mermaid-${o.next()}`;
7916    s = l.innerHTML, s = bh(ni.entityDecode(s)).trim().replace(/<br\s*\/?>/gi, "<br/>");
7917    const u = ni.detectInit(s);
7918    u && L.debug("Detected early reinit: ", u);
7919    try {
7920      const { svg: f, bindFunctions: c } = await fh(h, s, l);
7921      l.innerHTML = f, t && await t(h), c && c(l);
7922    } catch (f) {
7923      a1(f, a, kt.parseError);
7924    }
7925  }
7926  if (a.length > 0)
7927    throw a[0];
7928}, hh = function(t) {
7929  ye.initialize(t);
7930}, h1 = async function(t, e, i) {
7931  L.warn("mermaid.init is deprecated. Please use run instead."), t && hh(t);
7932  const r = { postRenderCallback: i, querySelector: ".mermaid" };
7933  typeof e == "string" ? r.querySelector = e : e && (e instanceof HTMLElement ? r.nodes = [e] : r.nodes = e), await lh(r);
7934}, c1 = async (t, {
7935  lazyLoad: e = !0
7936} = {}) => {
7937  Ua(...t), e === !1 && await s1();
7938}, ch = function() {
7939  if (kt.startOnLoad) {
7940    const { startOnLoad: t } = ye.getConfig();
7941    t && kt.run().catch((e) => L.error("Mermaid failed to initialize", e));
7942  }
7943};
7944if (typeof document < "u") {
7945  /*!
7946   * Wait for document loaded before starting the execution
7947   */
7948  window.addEventListener("load", ch, !1);
7949}
7950const u1 = function(t) {
7951  kt.parseError = t;
7952}, pr = [];
7953let en = !1;
7954const uh = async () => {
7955  if (!en) {
7956    for (en = !0; pr.length > 0; ) {
7957      const t = pr.shift();
7958      if (t)
7959        try {
7960          await t();
7961        } catch (e) {
7962          L.error("Error executing queue", e);
7963        }
7964    }
7965    en = !1;
7966  }
7967}, f1 = async (t, e) => new Promise((i, r) => {
7968  const n = () => new Promise((o, s) => {
7969    ye.parse(t, e).then(
7970      (a) => {
7971        o(a), i(a);
7972      },
7973      (a) => {
7974        var l;
7975        L.error("Error parsing", a), (l = kt.parseError) == null || l.call(kt, a), s(a), r(a);
7976      }
7977    );
7978  });
7979  pr.push(n), uh().catch(r);
7980}), fh = (t, e, i) => new Promise((r, n) => {
7981  const o = () => new Promise((s, a) => {
7982    ye.render(t, e, i).then(
7983      (l) => {
7984        s(l), r(l);
7985      },
7986      (l) => {
7987        var h;
7988        L.error("Error parsing", l), (h = kt.parseError) == null || h.call(kt, l), a(l), n(l);
7989      }
7990    );
7991  });
7992  pr.push(o), uh().catch(n);
7993}), kt = {
7994  startOnLoad: !0,
7995  mermaidAPI: ye,
7996  parse: f1,
7997  render: fh,
7998  init: h1,
7999  run: lh,
8000  registerExternalDiagrams: c1,
8001  initialize: hh,
8002  parseError: void 0,
8003  contentLoaded: ch,
8004  setParseErrorHandler: u1,
8005  detectType: kr
8006};
8007export {
8008  An as $,
8009  ni as A,
8010  ei as B,
8011  N_ as C,
8012  R_ as D,
8013  M_ as E,
8014  jf as F,
8015  S1 as G,
8016  I0 as H,
8017  H_ as I,
8018  Fn as J,
8019  na as K,
8020  yi as L,
8021  mu as M,
8022  aa as N,
8023  d1 as O,
8024  Th as P,
8025  kh as Q,
8026  pt as R,
8027  mt as S,
8028  vh as T,
8029  Y_ as U,
8030  b1 as V,
8031  Tp as W,
8032  cl as X,
8033  Un as Y,
8034  mp as Z,
8035  Rt as _,
8036  D_ as a,
8037  Pe as a$,
8038  ie as a0,
8039  li as a1,
8040  No as a2,
8041  ku as a3,
8042  os as a4,
8043  C0 as a5,
8044  v1 as a6,
8045  O0 as a7,
8046  _e as a8,
8047  d0 as a9,
8048  Ho as aA,
8049  x1 as aB,
8050  _1 as aC,
8051  p1 as aD,
8052  g1 as aE,
8053  k1 as aF,
8054  T1 as aG,
8055  y1 as aH,
8056  $ as aI,
8057  Nt as aJ,
8058  bi as aK,
8059  Re as aL,
8060  rr as aM,
8061  Km as aN,
8062  kC as aO,
8063  xi as aP,
8064  or as aQ,
8065  jm as aR,
8066  Za as aS,
8067  zg as aT,
8068  Wg as aU,
8069  $C as aV,
8070  ys as aW,
8071  Hg as aX,
8072  zn as aY,
8073  Pg as aZ,
8074  Vg as a_,
8075  n0 as aa,
8076  qt as ab,
8077  p0 as ac,
8078  g0 as ad,
8079  nl as ae,
8080  Sr as af,
8081  Fr as ag,
8082  sr as ah,
8083  Ng as ai,
8084  qn as aj,
8085  sl as ak,
8086  rl as al,
8087  Hm as am,
8088  Nm as an,
8089  o0 as ao,
8090  _0 as ap,
8091  _i as aq,
8092  E1 as ar,
8093  P_ as as,
8094  Ci as at,
8095  B as au,
8096  E as av,
8097  On as aw,
8098  m1 as ax,
8099  C1 as ay,
8100  jo as az,
8101  I_ as b,
8102  se as b0,
8103  fs as b1,
8104  Wn as b2,
8105  Qa as b3,
8106  Tn as b4,
8107  em as b5,
8108  Zr as b6,
8109  U0 as b7,
8110  bh as b8,
8111  kt as b9,
8112  Jn as c,
8113  ci as d,
8114  js as e,
8115  Rn as f,
8116  $_ as g,
8117  ot as h,
8118  ar as i,
8119  Tt as j,
8120  Pl as k,
8121  L as l,
8122  q0 as m,
8123  zf as n,
8124  M0 as o,
8125  Da as p,
8126  v0 as q,
8127  Rd as r,
8128  O_ as s,
8129  F_ as t,
8130  L1 as u,
8131  ra as v,
8132  R0 as w,
8133  Oh as x,
8134  um as y,
8135  Pn as z
8136};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.