From 4d183091747b617baab7192effbb4328482e73e3 Mon Sep 17 00:00:00 2001 From: antmicrobot Date: Mon, 23 Sep 2024 12:59:18 +0000 Subject: [PATCH] deploy: 75fb37d1018705ee313c52948fb130d8ba002a14 --- MystEditor.js | 32778 +++++++++++++++++++------------------- docs/collaboration.html | 2 +- docs/comments.html | 2 +- docs/genindex.html | 2 +- docs/index.html | 2 +- docs/introduction.html | 2 +- docs/mermaid.html | 2 +- docs/rich-links.html | 2 +- docs/topbar.html | 2 +- 9 files changed, 16369 insertions(+), 16425 deletions(-) diff --git a/MystEditor.js b/MystEditor.js index 94ab722..58be682 100644 --- a/MystEditor.js +++ b/MystEditor.js @@ -1,6 +1,6 @@ -var cye = Object.defineProperty; -var uye = (t, e, r) => e in t ? cye(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r; -var Or = (t, e, r) => (uye(t, typeof e != "symbol" ? e + "" : e, r), r), hye = (t, e, r) => { +var oye = Object.defineProperty; +var lye = (t, e, r) => e in t ? oye(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r; +var Or = (t, e, r) => (lye(t, typeof e != "symbol" ? e + "" : e, r), r), cye = (t, e, r) => { if (!e.has(t)) throw TypeError("Cannot " + r); }; @@ -9,14 +9,14 @@ var iw = (t, e, r) => { throw TypeError("Cannot add the same private member more than once"); e instanceof WeakSet ? e.add(t) : e.set(t, r); }; -var Em = (t, e, r) => (hye(t, e, "access private method"), r); -var Yb, $t, vZ, gd, x$, yZ, kA, bZ, yy = {}, xZ = [], fye = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, ES = Array.isArray; +var Em = (t, e, r) => (cye(t, e, "access private method"), r); +var Yb, $t, pZ, gd, v$, gZ, wA, mZ, yy = {}, vZ = [], uye = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, CS = Array.isArray; function bu(t, e) { for (var r in e) t[r] = e[r]; return t; } -function wZ(t) { +function yZ(t) { var e = t.parentNode; e && e.removeChild(t); } @@ -30,10 +30,10 @@ function Rl(t, e, r) { return Uv(t, a, n, i, null); } function Uv(t, e, r, n, i) { - var s = { type: t, props: e, key: r, ref: n, __k: null, __: null, __b: 0, __e: null, __d: void 0, __c: null, constructor: void 0, __v: i == null ? ++vZ : i, __i: -1, __u: 0 }; + var s = { type: t, props: e, key: r, ref: n, __k: null, __: null, __b: 0, __e: null, __d: void 0, __c: null, constructor: void 0, __v: i == null ? ++pZ : i, __i: -1, __u: 0 }; return i == null && $t.vnode != null && $t.vnode(s), s; } -function dye() { +function hye() { return { current: null }; } function Iu(t) { @@ -50,7 +50,7 @@ function bg(t, e) { return r.__e; return typeof t.type == "function" ? bg(t) : null; } -function OZ(t) { +function bZ(t) { var e, r; if ((t = t.__) != null && t.__c != null) { for (t.__e = t.__c.base = null, e = 0; e < t.__k.length; e++) @@ -58,47 +58,47 @@ function OZ(t) { t.__e = t.__c.base = r.__e; break; } - return OZ(t); + return bZ(t); } } -function SA(t) { - (!t.__d && (t.__d = !0) && gd.push(t) && !g5.__r++ || x$ !== $t.debounceRendering) && ((x$ = $t.debounceRendering) || yZ)(g5); +function OA(t) { + (!t.__d && (t.__d = !0) && gd.push(t) && !p5.__r++ || v$ !== $t.debounceRendering) && ((v$ = $t.debounceRendering) || gZ)(p5); } -function g5() { +function p5() { var t, e, r, n, i, s, a, o, l; - for (gd.sort(kA); t = gd.shift(); ) - t.__d && (e = gd.length, n = void 0, s = (i = (r = t).__v).__e, o = [], l = [], (a = r.__P) && ((n = bu({}, i)).__v = i.__v + 1, $t.vnode && $t.vnode(n), _R(a, n, i, r.__n, a.ownerSVGElement !== void 0, 32 & i.__u ? [s] : null, o, s == null ? bg(i) : s, !!(32 & i.__u), l), n.__.__k[n.__i] = n, TZ(o, n, l), n.__e != s && OZ(n)), gd.length > e && gd.sort(kA)); - g5.__r = 0; -} -function kZ(t, e, r, n, i, s, a, o, l, u, h) { - var f, d, p, g, m, v = n && n.__k || xZ, y = e.length; - for (r.__d = l, pye(r, e, v), l = r.__d, f = 0; f < y; f++) - (p = r.__k[f]) != null && typeof p != "boolean" && typeof p != "function" && (d = p.__i === -1 ? yy : v[p.__i] || yy, p.__i = f, _R(t, p, d, i, s, a, o, l, u, h), g = p.__e, p.ref && d.ref != p.ref && (d.ref && AR(d.ref, null, p), h.push(p.ref, p.__c || g, p)), m == null && g != null && (m = g), 65536 & p.__u || d.__k === p.__k ? l = SZ(p, l, t) : typeof p.type == "function" && p.__d !== void 0 ? l = p.__d : g && (l = g.nextSibling), p.__d = void 0, p.__u &= -196609); + for (gd.sort(wA); t = gd.shift(); ) + t.__d && (e = gd.length, n = void 0, s = (i = (r = t).__v).__e, o = [], l = [], (a = r.__P) && ((n = bu({}, i)).__v = i.__v + 1, $t.vnode && $t.vnode(n), TR(a, n, i, r.__n, a.ownerSVGElement !== void 0, 32 & i.__u ? [s] : null, o, s == null ? bg(i) : s, !!(32 & i.__u), l), n.__.__k[n.__i] = n, OZ(o, n, l), n.__e != s && bZ(n)), gd.length > e && gd.sort(wA)); + p5.__r = 0; +} +function xZ(t, e, r, n, i, s, a, o, l, u, h) { + var f, d, p, g, m, v = n && n.__k || vZ, y = e.length; + for (r.__d = l, fye(r, e, v), l = r.__d, f = 0; f < y; f++) + (p = r.__k[f]) != null && typeof p != "boolean" && typeof p != "function" && (d = p.__i === -1 ? yy : v[p.__i] || yy, p.__i = f, TR(t, p, d, i, s, a, o, l, u, h), g = p.__e, p.ref && d.ref != p.ref && (d.ref && CR(d.ref, null, p), h.push(p.ref, p.__c || g, p)), m == null && g != null && (m = g), 65536 & p.__u || d.__k === p.__k ? l = wZ(p, l, t) : typeof p.type == "function" && p.__d !== void 0 ? l = p.__d : g && (l = g.nextSibling), p.__d = void 0, p.__u &= -196609); r.__d = l, r.__e = m; } -function pye(t, e, r) { +function fye(t, e, r) { var n, i, s, a, o, l = e.length, u = r.length, h = u, f = 0; for (t.__k = [], n = 0; n < l; n++) - (i = t.__k[n] = (i = e[n]) == null || typeof i == "boolean" || typeof i == "function" ? null : typeof i == "string" || typeof i == "number" || typeof i == "bigint" || i.constructor == String ? Uv(null, i, null, null, i) : ES(i) ? Uv(Iu, { children: i }, null, null, null) : i.constructor === void 0 && i.__b > 0 ? Uv(i.type, i.props, i.key, i.ref ? i.ref : null, i.__v) : i) != null ? (i.__ = t, i.__b = t.__b + 1, o = gye(i, r, a = n + f, h), i.__i = o, s = null, o !== -1 && (h--, (s = r[o]) && (s.__u |= 131072)), s == null || s.__v === null ? (o == -1 && f--, typeof i.type != "function" && (i.__u |= 65536)) : o !== a && (o === a + 1 ? f++ : o > a ? h > l - a ? f += o - a : f-- : f = o < a && o == a - 1 ? o - a : 0, o !== n + f && (i.__u |= 65536))) : (s = r[n]) && s.key == null && s.__e && (s.__e == t.__d && (t.__d = bg(s)), TA(s, s, !1), r[n] = null, h--); + (i = t.__k[n] = (i = e[n]) == null || typeof i == "boolean" || typeof i == "function" ? null : typeof i == "string" || typeof i == "number" || typeof i == "bigint" || i.constructor == String ? Uv(null, i, null, null, i) : CS(i) ? Uv(Iu, { children: i }, null, null, null) : i.constructor === void 0 && i.__b > 0 ? Uv(i.type, i.props, i.key, i.ref ? i.ref : null, i.__v) : i) != null ? (i.__ = t, i.__b = t.__b + 1, o = dye(i, r, a = n + f, h), i.__i = o, s = null, o !== -1 && (h--, (s = r[o]) && (s.__u |= 131072)), s == null || s.__v === null ? (o == -1 && f--, typeof i.type != "function" && (i.__u |= 65536)) : o !== a && (o === a + 1 ? f++ : o > a ? h > l - a ? f += o - a : f-- : f = o < a && o == a - 1 ? o - a : 0, o !== n + f && (i.__u |= 65536))) : (s = r[n]) && s.key == null && s.__e && (s.__e == t.__d && (t.__d = bg(s)), kA(s, s, !1), r[n] = null, h--); if (h) for (n = 0; n < u; n++) - (s = r[n]) != null && (131072 & s.__u) == 0 && (s.__e == t.__d && (t.__d = bg(s)), TA(s, s)); + (s = r[n]) != null && (131072 & s.__u) == 0 && (s.__e == t.__d && (t.__d = bg(s)), kA(s, s)); } -function SZ(t, e, r) { +function wZ(t, e, r) { var n, i; if (typeof t.type == "function") { for (n = t.__k, i = 0; n && i < n.length; i++) - n[i] && (n[i].__ = t, e = SZ(n[i], e, r)); + n[i] && (n[i].__ = t, e = wZ(n[i], e, r)); return e; } return t.__e != e && (r.insertBefore(t.__e, e || null), e = t.__e), e && e.nextSibling; } function Tu(t, e) { - return e = e || [], t == null || typeof t == "boolean" || (ES(t) ? t.some(function(r) { + return e = e || [], t == null || typeof t == "boolean" || (CS(t) ? t.some(function(r) { Tu(r, e); }) : e.push(t)), e; } -function gye(t, e, r, n) { +function dye(t, e, r, n) { var i = t.key, s = t.type, a = r - 1, o = r + 1, l = e[r]; if (l === null || l && i == l.key && s === l.type) return r; @@ -117,8 +117,8 @@ function gye(t, e, r, n) { } return -1; } -function w$(t, e, r) { - e[0] === "-" ? t.setProperty(e, r == null ? "" : r) : t[e] = r == null ? "" : typeof r != "number" || fye.test(e) ? r : r + "px"; +function y$(t, e, r) { + e[0] === "-" ? t.setProperty(e, r == null ? "" : r) : t[e] = r == null ? "" : typeof r != "number" || uye.test(e) ? r : r + "px"; } function sw(t, e, r, n, i) { var s; @@ -129,13 +129,13 @@ function sw(t, e, r, n, i) { else { if (typeof n == "string" && (t.style.cssText = n = ""), n) for (e in n) - r && e in r || w$(t.style, e, ""); + r && e in r || y$(t.style, e, ""); if (r) for (e in r) - n && r[e] === n[e] || w$(t.style, e, r[e]); + n && r[e] === n[e] || y$(t.style, e, r[e]); } else if (e[0] === "o" && e[1] === "n") - s = e !== (e = e.replace(/(PointerCapture)$|Capture$/, "$1")), e = e.toLowerCase() in t ? e.toLowerCase().slice(2) : e.slice(2), t.l || (t.l = {}), t.l[e + s] = r, r ? n ? r.u = n.u : (r.u = Date.now(), t.addEventListener(e, s ? k$ : O$, s)) : t.removeEventListener(e, s ? k$ : O$, s); + s = e !== (e = e.replace(/(PointerCapture)$|Capture$/, "$1")), e = e.toLowerCase() in t ? e.toLowerCase().slice(2) : e.slice(2), t.l || (t.l = {}), t.l[e + s] = r, r ? n ? r.u = n.u : (r.u = Date.now(), t.addEventListener(e, s ? x$ : b$, s)) : t.removeEventListener(e, s ? x$ : b$, s); else { if (i) e = e.replace(/xlink(H|:h)/, "h").replace(/sName$/, "s"); @@ -148,7 +148,7 @@ function sw(t, e, r, n, i) { typeof r == "function" || (r == null || r === !1 && e[4] !== "-" ? t.removeAttribute(e) : t.setAttribute(e, r)); } } -function O$(t) { +function b$(t) { var e = this.l[t.type + !1]; if (t.t) { if (t.t <= e.u) @@ -157,10 +157,10 @@ function O$(t) { t.t = Date.now(); return e($t.event ? $t.event(t) : t); } -function k$(t) { +function x$(t) { return this.l[t.type + !0]($t.event ? $t.event(t) : t); } -function _R(t, e, r, n, i, s, a, o, l, u) { +function TR(t, e, r, n, i, s, a, o, l, u) { var h, f, d, p, g, m, v, y, b, w, O, S, C, T, L, E = e.type; if (e.constructor !== void 0) return null; @@ -168,7 +168,7 @@ function _R(t, e, r, n, i, s, a, o, l, u) { e: if (typeof E == "function") try { - if (y = e.props, b = (h = E.contextType) && n[h.__c], w = h ? b ? b.props.value : h.__ : n, r.__c ? v = (f = e.__c = r.__c).__ = f.__E : ("prototype" in E && E.prototype.render ? e.__c = f = new E(y, w) : (e.__c = f = new Ec(y, w), f.constructor = E, f.render = vye), b && b.sub(f), f.props = y, f.state || (f.state = {}), f.context = w, f.__n = n, d = f.__d = !0, f.__h = [], f._sb = []), f.__s == null && (f.__s = f.state), E.getDerivedStateFromProps != null && (f.__s == f.state && (f.__s = bu({}, f.__s)), bu(f.__s, E.getDerivedStateFromProps(y, f.__s))), p = f.props, g = f.state, f.__v = e, d) + if (y = e.props, b = (h = E.contextType) && n[h.__c], w = h ? b ? b.props.value : h.__ : n, r.__c ? v = (f = e.__c = r.__c).__ = f.__E : ("prototype" in E && E.prototype.render ? e.__c = f = new E(y, w) : (e.__c = f = new Ec(y, w), f.constructor = E, f.render = gye), b && b.sub(f), f.props = y, f.state || (f.state = {}), f.context = w, f.__n = n, d = f.__d = !0, f.__h = [], f._sb = []), f.__s == null && (f.__s = f.state), E.getDerivedStateFromProps != null && (f.__s == f.state && (f.__s = bu({}, f.__s)), bu(f.__s, E.getDerivedStateFromProps(y, f.__s))), p = f.props, g = f.state, f.__v = e, d) E.getDerivedStateFromProps == null && f.componentWillMount != null && f.componentWillMount(), f.componentDidMount != null && f.__h.push(f.componentDidMount); else { if (E.getDerivedStateFromProps == null && y !== p && f.componentWillReceiveProps != null && f.componentWillReceiveProps(y, w), !f.__e && (f.shouldComponentUpdate != null && f.shouldComponentUpdate(y, f.__s, w) === !1 || e.__v === r.__v)) { @@ -191,18 +191,18 @@ function _R(t, e, r, n, i, s, a, o, l, u) { do f.__d = !1, S && S(e), h = f.render(f.props, f.state, f.context), f.state = f.__s; while (f.__d && ++C < 25); - f.state = f.__s, f.getChildContext != null && (n = bu(bu({}, n), f.getChildContext())), d || f.getSnapshotBeforeUpdate == null || (m = f.getSnapshotBeforeUpdate(p, g)), kZ(t, ES(L = h != null && h.type === Iu && h.key == null ? h.props.children : h) ? L : [L], e, r, n, i, s, a, o, l, u), f.base = e.__e, e.__u &= -161, f.__h.length && a.push(f), v && (f.__E = f.__ = null); + f.state = f.__s, f.getChildContext != null && (n = bu(bu({}, n), f.getChildContext())), d || f.getSnapshotBeforeUpdate == null || (m = f.getSnapshotBeforeUpdate(p, g)), xZ(t, CS(L = h != null && h.type === Iu && h.key == null ? h.props.children : h) ? L : [L], e, r, n, i, s, a, o, l, u), f.base = e.__e, e.__u &= -161, f.__h.length && a.push(f), v && (f.__E = f.__ = null); } catch (R) { e.__v = null, l || s != null ? (e.__e = o, e.__u |= l ? 160 : 32, s[s.indexOf(o)] = null) : (e.__e = r.__e, e.__k = r.__k), $t.__e(R, e, r); } else - s == null && e.__v === r.__v ? (e.__k = r.__k, e.__e = r.__e) : e.__e = mye(r.__e, e, r, n, i, s, a, l, u); + s == null && e.__v === r.__v ? (e.__k = r.__k, e.__e = r.__e) : e.__e = pye(r.__e, e, r, n, i, s, a, l, u); (h = $t.diffed) && h(e); } -function TZ(t, e, r) { +function OZ(t, e, r) { e.__d = void 0; for (var n = 0; n < r.length; n++) - AR(r[n], r[++n], r[++n]); + CR(r[n], r[++n], r[++n]); $t.__c && $t.__c(e, t), t.some(function(i) { try { t = i.__h, i.__h = [], t.some(function(s) { @@ -213,7 +213,7 @@ function TZ(t, e, r) { } }); } -function mye(t, e, r, n, i, s, a, o, l) { +function pye(t, e, r, n, i, s, a, o, l) { var u, h, f, d, p, g, m, v = r.props, y = e.props, b = e.type; if (b === "svg" && (i = !0), s != null) { for (u = 0; u < s.length; u++) @@ -239,23 +239,23 @@ function mye(t, e, r, n, i, s, a, o, l) { p = y[u], u == "children" ? d = p : u == "dangerouslySetInnerHTML" ? h = p : u == "value" ? g = p : u == "checked" ? m = p : u === "key" || o && typeof p != "function" || v[u] === p || sw(t, u, p, v[u], i); if (h) o || f && (h.__html === f.__html || h.__html === t.innerHTML) || (t.innerHTML = h.__html), e.__k = []; - else if (f && (t.innerHTML = ""), kZ(t, ES(d) ? d : [d], e, r, n, i && b !== "foreignObject", s, a, s ? s[0] : r.__k && bg(r, 0), o, l), s != null) + else if (f && (t.innerHTML = ""), xZ(t, CS(d) ? d : [d], e, r, n, i && b !== "foreignObject", s, a, s ? s[0] : r.__k && bg(r, 0), o, l), s != null) for (u = s.length; u--; ) - s[u] != null && wZ(s[u]); + s[u] != null && yZ(s[u]); o || (u = "value", g !== void 0 && (g !== t[u] || b === "progress" && !g || b === "option" && g !== v[u]) && sw(t, u, g, v[u], !1), u = "checked", m !== void 0 && m !== t[u] && sw(t, u, m, v[u], !1)); } return t; } -function AR(t, e, r) { +function CR(t, e, r) { try { typeof t == "function" ? t(e) : t.current = e; } catch (n) { $t.__e(n, r); } } -function TA(t, e, r) { +function kA(t, e, r) { var n, i; - if ($t.unmount && $t.unmount(t), (n = t.ref) && (n.current && n.current !== t.__e || AR(n, null, e)), (n = t.__c) != null) { + if ($t.unmount && $t.unmount(t), (n = t.ref) && (n.current && n.current !== t.__e || CR(n, null, e)), (n = t.__c) != null) { if (n.componentWillUnmount) try { n.componentWillUnmount(); @@ -266,27 +266,27 @@ function TA(t, e, r) { } if (n = t.__k) for (i = 0; i < n.length; i++) - n[i] && TA(n[i], e, r || typeof t.type != "function"); - r || t.__e == null || wZ(t.__e), t.__ = t.__e = t.__d = void 0; + n[i] && kA(n[i], e, r || typeof t.type != "function"); + r || t.__e == null || yZ(t.__e), t.__ = t.__e = t.__d = void 0; } -function vye(t, e, r) { +function gye(t, e, r) { return this.constructor(t, r); } function xg(t, e, r) { var n, i, s, a; - $t.__ && $t.__(t, e), i = (n = typeof r == "function") ? null : r && r.__k || e.__k, s = [], a = [], _R(e, t = (!n && r || e).__k = Rl(Iu, null, [t]), i || yy, yy, e.ownerSVGElement !== void 0, !n && r ? [r] : i ? null : e.firstChild ? Yb.call(e.childNodes) : null, s, !n && r ? r : i ? i.__e : e.firstChild, n, a), TZ(s, t, a); + $t.__ && $t.__(t, e), i = (n = typeof r == "function") ? null : r && r.__k || e.__k, s = [], a = [], TR(e, t = (!n && r || e).__k = Rl(Iu, null, [t]), i || yy, yy, e.ownerSVGElement !== void 0, !n && r ? [r] : i ? null : e.firstChild ? Yb.call(e.childNodes) : null, s, !n && r ? r : i ? i.__e : e.firstChild, n, a), OZ(s, t, a); } -function CZ(t, e) { - xg(t, e, CZ); +function kZ(t, e) { + xg(t, e, kZ); } -function yye(t, e, r) { +function mye(t, e, r) { var n, i, s, a, o = bu({}, t.props); for (s in t.type && t.type.defaultProps && (a = t.type.defaultProps), e) s == "key" ? n = e[s] : s == "ref" ? i = e[s] : o[s] = e[s] === void 0 && a !== void 0 ? a[s] : e[s]; return arguments.length > 2 && (o.children = arguments.length > 3 ? Yb.call(arguments, 2) : r), Uv(t.type, o, n || t.key, i || t.ref, null); } -function bye(t, e) { - var r = { __c: e = "__cC" + bZ++, __: t, Consumer: function(n, i) { +function vye(t, e) { + var r = { __c: e = "__cC" + mZ++, __: t, Consumer: function(n, i) { return n.children(i); }, Provider: function(n) { var i, s; @@ -294,7 +294,7 @@ function bye(t, e) { return s; }, this.shouldComponentUpdate = function(a) { this.props.value !== a.value && i.some(function(o) { - o.__e = !0, SA(o); + o.__e = !0, OA(o); }); }, this.sub = function(a) { i.push(a); @@ -306,7 +306,7 @@ function bye(t, e) { } }; return r.Provider.__ = r.Consumer.contextType = r; } -Yb = xZ.slice, $t = { __e: function(t, e, r, n) { +Yb = vZ.slice, $t = { __e: function(t, e, r, n) { for (var i, s, a; e = e.__; ) if ((i = e.__c) && !i.__) try { @@ -316,26 +316,26 @@ Yb = xZ.slice, $t = { __e: function(t, e, r, n) { t = o; } throw t; -} }, vZ = 0, Ec.prototype.setState = function(t, e) { +} }, pZ = 0, Ec.prototype.setState = function(t, e) { var r; - r = this.__s != null && this.__s !== this.state ? this.__s : this.__s = bu({}, this.state), typeof t == "function" && (t = t(bu({}, r), this.props)), t && bu(r, t), t != null && this.__v && (e && this._sb.push(e), SA(this)); + r = this.__s != null && this.__s !== this.state ? this.__s : this.__s = bu({}, this.state), typeof t == "function" && (t = t(bu({}, r), this.props)), t && bu(r, t), t != null && this.__v && (e && this._sb.push(e), OA(this)); }, Ec.prototype.forceUpdate = function(t) { - this.__v && (this.__e = !0, t && this.__h.push(t), SA(this)); -}, Ec.prototype.render = Iu, gd = [], yZ = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, kA = function(t, e) { + this.__v && (this.__e = !0, t && this.__h.push(t), OA(this)); +}, Ec.prototype.render = Iu, gd = [], gZ = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, wA = function(t, e) { return t.__v.__b - e.__v.__b; -}, g5.__r = 0, bZ = 0; -var af, vn, hE, S$, wg = 0, EZ = [], jO = [], T$ = $t.__b, C$ = $t.__r, E$ = $t.diffed, _$ = $t.__c, A$ = $t.unmount; +}, p5.__r = 0, mZ = 0; +var af, vn, cE, w$, wg = 0, SZ = [], ZO = [], O$ = $t.__b, k$ = $t.__r, S$ = $t.diffed, T$ = $t.__c, C$ = $t.unmount; function D1(t, e) { $t.__h && $t.__h(vn, t, wg || e), wg = 0; var r = vn.__H || (vn.__H = { __: [], __h: [] }); - return t >= r.__.length && r.__.push({ __V: jO }), r.__[t]; + return t >= r.__.length && r.__.push({ __V: ZO }), r.__[t]; } function Rn(t) { - return wg = 1, _S(AZ, t); + return wg = 1, ES(CZ, t); } -function _S(t, e, r) { +function ES(t, e, r) { var n = D1(af++, 2); - if (n.t = t, !n.__c && (n.__ = [r ? r(e) : AZ(void 0, e), function(o) { + if (n.t = t, !n.__c && (n.__ = [r ? r(e) : CZ(void 0, e), function(o) { var l = n.__N ? n.__N[0] : n.__[0], u = n.t(l, o); l !== u && (n.__N = [u, n.__[1]], n.__c.setState({})); }], n.__c = vn, !vn.u)) { @@ -371,19 +371,19 @@ function _S(t, e, r) { } function Yi(t, e) { var r = D1(af++, 3); - !$t.__s && LR(r.__H, e) && (r.__ = t, r.i = e, vn.__H.__h.push(r)); + !$t.__s && ER(r.__H, e) && (r.__ = t, r.i = e, vn.__H.__h.push(r)); } -function AS(t, e) { +function _S(t, e) { var r = D1(af++, 4); - !$t.__s && LR(r.__H, e) && (r.__ = t, r.i = e, vn.__h.push(r)); + !$t.__s && ER(r.__H, e) && (r.__ = t, r.i = e, vn.__h.push(r)); } function so(t) { return wg = 5, Nn(function() { return { current: t }; }, []); } -function xye(t, e, r) { - wg = 6, AS(function() { +function yye(t, e, r) { + wg = 6, _S(function() { return typeof t == "function" ? (t(e()), function() { return t(null); }) : t ? (t.current = e(), function() { @@ -393,21 +393,21 @@ function xye(t, e, r) { } function Nn(t, e) { var r = D1(af++, 7); - return LR(r.__H, e) ? (r.__V = t(), r.i = e, r.__h = t, r.__V) : r.__; + return ER(r.__H, e) ? (r.__V = t(), r.i = e, r.__h = t, r.__V) : r.__; } -function m5(t, e) { +function g5(t, e) { return wg = 8, Nn(function() { return t; }, e); } -function _Z(t) { +function TZ(t) { var e = vn.context[t.__c], r = D1(af++, 9); return r.c = t, e ? (r.__ == null && (r.__ = !0, e.sub(vn)), e.props.value) : t.__; } -function CA(t, e) { +function SA(t, e) { $t.useDebugValue && $t.useDebugValue(e ? e(t) : t); } -function wye() { +function bye() { var t = D1(af++, 11); if (!t.__) { for (var e = vn.__v; e !== null && !e.__m && e.__ !== null; ) @@ -417,87 +417,87 @@ function wye() { } return t.__; } -function Oye() { - for (var t; t = EZ.shift(); ) +function xye() { + for (var t; t = SZ.shift(); ) if (t.__P && t.__H) try { - t.__H.__h.forEach(KO), t.__H.__h.forEach(EA), t.__H.__h = []; + t.__H.__h.forEach(jO), t.__H.__h.forEach(TA), t.__H.__h = []; } catch (e) { t.__H.__h = [], $t.__e(e, t.__v); } } $t.__b = function(t) { - vn = null, T$ && T$(t); + vn = null, O$ && O$(t); }, $t.__r = function(t) { - C$ && C$(t), af = 0; + k$ && k$(t), af = 0; var e = (vn = t.__c).__H; - e && (hE === vn ? (e.__h = [], vn.__h = [], e.__.forEach(function(r) { - r.__N && (r.__ = r.__N), r.__V = jO, r.__N = r.i = void 0; - })) : (e.__h.forEach(KO), e.__h.forEach(EA), e.__h = [], af = 0)), hE = vn; + e && (cE === vn ? (e.__h = [], vn.__h = [], e.__.forEach(function(r) { + r.__N && (r.__ = r.__N), r.__V = ZO, r.__N = r.i = void 0; + })) : (e.__h.forEach(jO), e.__h.forEach(TA), e.__h = [], af = 0)), cE = vn; }, $t.diffed = function(t) { - E$ && E$(t); + S$ && S$(t); var e = t.__c; - e && e.__H && (e.__H.__h.length && (EZ.push(e) !== 1 && S$ === $t.requestAnimationFrame || ((S$ = $t.requestAnimationFrame) || kye)(Oye)), e.__H.__.forEach(function(r) { - r.i && (r.__H = r.i), r.__V !== jO && (r.__ = r.__V), r.i = void 0, r.__V = jO; - })), hE = vn = null; + e && e.__H && (e.__H.__h.length && (SZ.push(e) !== 1 && w$ === $t.requestAnimationFrame || ((w$ = $t.requestAnimationFrame) || wye)(xye)), e.__H.__.forEach(function(r) { + r.i && (r.__H = r.i), r.__V !== ZO && (r.__ = r.__V), r.i = void 0, r.__V = ZO; + })), cE = vn = null; }, $t.__c = function(t, e) { e.some(function(r) { try { - r.__h.forEach(KO), r.__h = r.__h.filter(function(n) { - return !n.__ || EA(n); + r.__h.forEach(jO), r.__h = r.__h.filter(function(n) { + return !n.__ || TA(n); }); } catch (n) { e.some(function(i) { i.__h && (i.__h = []); }), e = [], $t.__e(n, r.__v); } - }), _$ && _$(t, e); + }), T$ && T$(t, e); }, $t.unmount = function(t) { - A$ && A$(t); + C$ && C$(t); var e, r = t.__c; r && r.__H && (r.__H.__.forEach(function(n) { try { - KO(n); + jO(n); } catch (i) { e = i; } }), r.__H = void 0, e && $t.__e(e, r.__v)); }; -var L$ = typeof requestAnimationFrame == "function"; -function kye(t) { +var E$ = typeof requestAnimationFrame == "function"; +function wye(t) { var e, r = function() { - clearTimeout(n), L$ && cancelAnimationFrame(e), setTimeout(t); + clearTimeout(n), E$ && cancelAnimationFrame(e), setTimeout(t); }, n = setTimeout(r, 100); - L$ && (e = requestAnimationFrame(r)); + E$ && (e = requestAnimationFrame(r)); } -function KO(t) { +function jO(t) { var e = vn, r = t.__c; typeof r == "function" && (t.__c = void 0, r()), vn = e; } -function EA(t) { +function TA(t) { var e = vn; t.__c = t.__(), vn = e; } -function LR(t, e) { +function ER(t, e) { return !t || t.length !== e.length || e.some(function(r, n) { return r !== t[n]; }); } -function AZ(t, e) { +function CZ(t, e) { return typeof e == "function" ? e(t) : e; } -var LZ = function(t, e, r, n) { +var EZ = function(t, e, r, n) { var i; e[0] = 0; for (var s = 1; s < e.length; s++) { var a = e[s++], o = e[s] ? (e[0] |= a ? 1 : 2, r[e[s++]]) : e[++s]; - a === 3 ? n[0] = o : a === 4 ? n[1] = Object.assign(n[1] || {}, o) : a === 5 ? (n[1] = n[1] || {})[e[++s]] = o : a === 6 ? n[1][e[++s]] += o + "" : a ? (i = t.apply(o, LZ(t, o, r, ["", null])), n.push(i), o[0] ? e[0] |= 2 : (e[s - 2] = 0, e[s] = i)) : n.push(o); + a === 3 ? n[0] = o : a === 4 ? n[1] = Object.assign(n[1] || {}, o) : a === 5 ? (n[1] = n[1] || {})[e[++s]] = o : a === 6 ? n[1][e[++s]] += o + "" : a ? (i = t.apply(o, EZ(t, o, r, ["", null])), n.push(i), o[0] ? e[0] |= 2 : (e[s - 2] = 0, e[s] = i)) : n.push(o); } return n; -}, R$ = /* @__PURE__ */ new Map(); -function Sye(t) { - var e = R$.get(this); - return e || (e = /* @__PURE__ */ new Map(), R$.set(this, e)), (e = LZ(this, e.get(t) || (e.set(t, e = function(r) { +}, _$ = /* @__PURE__ */ new Map(); +function Oye(t) { + var e = _$.get(this); + return e || (e = /* @__PURE__ */ new Map(), _$.set(this, e)), (e = EZ(this, e.get(t) || (e.set(t, e = function(r) { for (var n, i, s = 1, a = "", o = "", l = [0], u = function(d) { s === 1 && (d || (a = a.replace(/^\s*\n\s*|\s*\n\s*$/g, ""))) ? l.push(0, d, a) : s === 3 && (d || a) ? (l.push(3, d, a), s = 2) : s === 2 && a === "..." && d ? l.push(4, d, 0) : s === 2 && a && !d ? l.push(5, 0, !0, a) : s >= 5 && ((a || !d && s === 5) && (l.push(s, 0, a, i), s = 6), d && (l.push(s, d, 0, i), s = 6)), a = ""; }, h = 0; h < r.length; h++) { @@ -509,7 +509,7 @@ function Sye(t) { return u(), l; }(t)), e), arguments, [])).length > 1 ? e : e[0]; } -var Bt = Sye.bind(Rl), Ra = function() { +var Bt = Oye.bind(Rl), Ra = function() { return Ra = Object.assign || function(e) { for (var r, n = 1, i = arguments.length; n < i; n++) { r = arguments[n]; @@ -525,23 +525,23 @@ function Og(t, e, r) { (s || !(n in e)) && (s || (s = Array.prototype.slice.call(e, 0, n)), s[n] = e[n]); return t.concat(s || Array.prototype.slice.call(e)); } -function Tye(t) { +function kye(t) { var e = /* @__PURE__ */ Object.create(null); return function(r) { return e[r] === void 0 && (e[r] = t(r)), e[r]; }; } -var Cye = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/, Eye = /* @__PURE__ */ Tye( +var Sye = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/, Tye = /* @__PURE__ */ kye( function(t) { - return Cye.test(t) || t.charCodeAt(0) === 111 && t.charCodeAt(1) === 110 && t.charCodeAt(2) < 91; + return Sye.test(t) || t.charCodeAt(0) === 111 && t.charCodeAt(1) === 110 && t.charCodeAt(2) < 91; } ); -function RZ(t, e) { +function _Z(t, e) { for (var r in e) t[r] = e[r]; return t; } -function _A(t, e) { +function CA(t, e) { for (var r in t) if (r !== "__source" && !(r in e)) return !0; @@ -550,73 +550,73 @@ function _A(t, e) { return !0; return !1; } -function AA(t) { +function EA(t) { this.props = t; } -function _ye(t, e) { +function Cye(t, e) { function r(i) { var s = this.props.ref, a = s == i.ref; - return !a && s && (s.call ? s(null) : s.current = null), e ? !e(this.props, i) || !a : _A(this.props, i); + return !a && s && (s.call ? s(null) : s.current = null), e ? !e(this.props, i) || !a : CA(this.props, i); } function n(i) { return this.shouldComponentUpdate = r, Rl(t, i); } return n.displayName = "Memo(" + (t.displayName || t.name) + ")", n.prototype.isReactComponent = !0, n.__f = !0, n; } -(AA.prototype = new Ec()).isPureReactComponent = !0, AA.prototype.shouldComponentUpdate = function(t, e) { - return _A(this.props, t) || _A(this.state, e); +(EA.prototype = new Ec()).isPureReactComponent = !0, EA.prototype.shouldComponentUpdate = function(t, e) { + return CA(this.props, t) || CA(this.state, e); }; -var M$ = $t.__b; +var A$ = $t.__b; $t.__b = function(t) { - t.type && t.type.__f && t.ref && (t.props.ref = t.ref, t.ref = null), M$ && M$(t); + t.type && t.type.__f && t.ref && (t.props.ref = t.ref, t.ref = null), A$ && A$(t); }; -var Aye = typeof Symbol < "u" && Symbol.for && Symbol.for("react.forward_ref") || 3911; -function Lye(t) { +var Eye = typeof Symbol < "u" && Symbol.for && Symbol.for("react.forward_ref") || 3911; +function _ye(t) { function e(r) { - var n = RZ({}, r); + var n = _Z({}, r); return delete n.ref, t(n, r.ref || null); } - return e.$$typeof = Aye, e.render = e, e.prototype.isReactComponent = e.__f = !0, e.displayName = "ForwardRef(" + (t.displayName || t.name) + ")", e; + return e.$$typeof = Eye, e.render = e, e.prototype.isReactComponent = e.__f = !0, e.displayName = "ForwardRef(" + (t.displayName || t.name) + ")", e; } -var D$ = function(t, e) { +var L$ = function(t, e) { return t == null ? null : Tu(Tu(t).map(e)); -}, Rye = { map: D$, forEach: D$, count: function(t) { +}, Aye = { map: L$, forEach: L$, count: function(t) { return t ? Tu(t).length : 0; }, only: function(t) { var e = Tu(t); if (e.length !== 1) throw "Children.only"; return e[0]; -}, toArray: Tu }, Mye = $t.__e; +}, toArray: Tu }, Lye = $t.__e; $t.__e = function(t, e, r, n) { if (t.then) { for (var i, s = e; s = s.__; ) if ((i = s.__c) && i.__c) return e.__e == null && (e.__e = r.__e, e.__k = r.__k), i.__c(t, e); } - Mye(t, e, r, n); + Lye(t, e, r, n); }; -var N$ = $t.unmount; -function MZ(t, e, r) { +var R$ = $t.unmount; +function AZ(t, e, r) { return t && (t.__c && t.__c.__H && (t.__c.__H.__.forEach(function(n) { typeof n.__c == "function" && n.__c(); - }), t.__c.__H = null), (t = RZ({}, t)).__c != null && (t.__c.__P === r && (t.__c.__P = e), t.__c = null), t.__k = t.__k && t.__k.map(function(n) { - return MZ(n, e, r); + }), t.__c.__H = null), (t = _Z({}, t)).__c != null && (t.__c.__P === r && (t.__c.__P = e), t.__c = null), t.__k = t.__k && t.__k.map(function(n) { + return AZ(n, e, r); })), t; } -function DZ(t, e, r) { +function LZ(t, e, r) { return t && r && (t.__v = null, t.__k = t.__k && t.__k.map(function(n) { - return DZ(n, e, r); + return LZ(n, e, r); }), t.__c && t.__c.__P === e && (t.__e && r.appendChild(t.__e), t.__c.__e = !0, t.__c.__P = r)), t; } -function JO() { +function KO() { this.__u = 0, this.t = null, this.__b = null; } -function NZ(t) { +function RZ(t) { var e = t.__.__c; return e && e.__a && e.__a(t); } -function Dye(t) { +function Rye(t) { var e, r, n; function i(s) { if (e || (e = t()).then(function(a) { @@ -636,11 +636,11 @@ function hv() { } $t.unmount = function(t) { var e = t.__c; - e && e.__R && e.__R(), e && 32 & t.__u && (t.type = null), N$ && N$(t); -}, (JO.prototype = new Ec()).__c = function(t, e) { + e && e.__R && e.__R(), e && 32 & t.__u && (t.type = null), R$ && R$(t); +}, (KO.prototype = new Ec()).__c = function(t, e) { var r = e.__c, n = this; n.t == null && (n.t = []), n.t.push(r); - var i = NZ(n.__v), s = !1, a = function() { + var i = RZ(n.__v), s = !1, a = function() { s || (s = !0, r.__R = null, i ? i(o) : o()); }; r.__R = a; @@ -648,7 +648,7 @@ $t.unmount = function(t) { if (!--n.__u) { if (n.state.__a) { var l = n.state.__a; - n.__v.__k[0] = DZ(l, l.__c.__P, l.__c.__O); + n.__v.__k[0] = LZ(l, l.__c.__P, l.__c.__O); } var u; for (n.setState({ __a: n.__b = null }); u = n.t.pop(); ) @@ -656,20 +656,20 @@ $t.unmount = function(t) { } }; n.__u++ || 32 & e.__u || n.setState({ __a: n.__b = n.__v.__k[0] }), t.then(a, a); -}, JO.prototype.componentWillUnmount = function() { +}, KO.prototype.componentWillUnmount = function() { this.t = []; -}, JO.prototype.render = function(t, e) { +}, KO.prototype.render = function(t, e) { if (this.__b) { if (this.__v.__k) { var r = document.createElement("div"), n = this.__v.__k[0].__c; - this.__v.__k[0] = MZ(this.__b, r, n.__O = n.__P); + this.__v.__k[0] = AZ(this.__b, r, n.__O = n.__P); } this.__b = null; } var i = e.__a && Rl(Iu, null, t.fallback); return i && (i.__u &= -33), [Rl(Iu, null, e.__a ? null : t.children), i]; }; -var I$ = function(t, e, r) { +var M$ = function(t, e, r) { if (++r[1] === r[0] && t.o.delete(e), t.props.revealOrder && (t.props.revealOrder[0] !== "t" || !t.o.size)) for (r = t.u; r; ) { for (; r.length > 3; ) @@ -679,12 +679,12 @@ var I$ = function(t, e, r) { t.u = r = r[2]; } }; -function Nye(t) { +function Mye(t) { return this.getChildContext = function() { return t.context; }, t.children; } -function Iye(t) { +function Dye(t) { var e = this, r = t.i; e.componentWillUnmount = function() { xg(null, e.l), e.l = null, e.i = null; @@ -694,17 +694,17 @@ function Iye(t) { this.childNodes.push(n), e.i.appendChild(n); }, removeChild: function(n) { this.childNodes.splice(this.childNodes.indexOf(n) >>> 1, 1), e.i.removeChild(n); - } }), xg(Rl(Nye, { context: e.context }, t.__v), e.l); + } }), xg(Rl(Mye, { context: e.context }, t.__v), e.l); } -function Pye(t, e) { - var r = Rl(Iye, { __v: t, i: e }); +function Nye(t, e) { + var r = Rl(Dye, { __v: t, i: e }); return r.containerInfo = e, r; } (hv.prototype = new Ec()).__a = function(t) { - var e = this, r = NZ(e.__v), n = e.o.get(t); + var e = this, r = RZ(e.__v), n = e.o.get(t); return n[0]++, function(i) { var s = function() { - e.props.revealOrder ? (n.push(i), I$(e, t, n)) : i(); + e.props.revealOrder ? (n.push(i), M$(e, t, n)) : i(); }; r ? r(s) : s(); }; @@ -718,17 +718,17 @@ function Pye(t, e) { }, hv.prototype.componentDidUpdate = hv.prototype.componentDidMount = function() { var t = this; this.o.forEach(function(e, r) { - I$(t, r, e); + M$(t, r, e); }); }; -var IZ = typeof Symbol < "u" && Symbol.for && Symbol.for("react.element") || 60103, $ye = /^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/, Bye = /^on(Ani|Tra|Tou|BeforeInp|Compo)/, Fye = /[A-Z0-9]/g, zye = typeof document < "u", Vye = function(t) { +var MZ = typeof Symbol < "u" && Symbol.for && Symbol.for("react.element") || 60103, Iye = /^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/, Pye = /^on(Ani|Tra|Tou|BeforeInp|Compo)/, $ye = /[A-Z0-9]/g, Bye = typeof document < "u", Fye = function(t) { return (typeof Symbol < "u" && typeof Symbol() == "symbol" ? /fil|che|rad/ : /fil|che|ra/).test(t); }; -function Uye(t, e, r) { +function zye(t, e, r) { return e.__k == null && (e.textContent = ""), xg(t, e), typeof r == "function" && r(), t ? t.__c : null; } -function qye(t, e, r) { - return CZ(t, e), typeof r == "function" && r(), t ? t.__c : null; +function Vye(t, e, r) { + return kZ(t, e), typeof r == "function" && r(), t ? t.__c : null; } Ec.prototype.isReactComponent = {}, ["componentWillMount", "componentWillReceiveProps", "componentWillUpdate"].forEach(function(t) { Object.defineProperty(Ec.prototype, t, { configurable: !0, get: function() { @@ -737,95 +737,95 @@ Ec.prototype.isReactComponent = {}, ["componentWillMount", "componentWillReceive Object.defineProperty(this, t, { configurable: !0, writable: !0, value: e }); } }); }); -var P$ = $t.event; -function Yye() { +var D$ = $t.event; +function Uye() { } -function Qye() { +function qye() { return this.cancelBubble; } -function Wye() { +function Yye() { return this.defaultPrevented; } $t.event = function(t) { - return P$ && (t = P$(t)), t.persist = Yye, t.isPropagationStopped = Qye, t.isDefaultPrevented = Wye, t.nativeEvent = t; + return D$ && (t = D$(t)), t.persist = Uye, t.isPropagationStopped = qye, t.isDefaultPrevented = Yye, t.nativeEvent = t; }; -var RR, Gye = { enumerable: !1, configurable: !0, get: function() { +var _R, Qye = { enumerable: !1, configurable: !0, get: function() { return this.class; -} }, $$ = $t.vnode; +} }, N$ = $t.vnode; $t.vnode = function(t) { typeof t.type == "string" && function(e) { var r = e.props, n = e.type, i = {}; for (var s in r) { var a = r[s]; - if (!(s === "value" && "defaultValue" in r && a == null || zye && s === "children" && n === "noscript" || s === "class" || s === "className")) { + if (!(s === "value" && "defaultValue" in r && a == null || Bye && s === "children" && n === "noscript" || s === "class" || s === "className")) { var o = s.toLowerCase(); - s === "defaultValue" && "value" in r && r.value == null ? s = "value" : s === "download" && a === !0 ? a = "" : o === "ondoubleclick" ? s = "ondblclick" : o !== "onchange" || n !== "input" && n !== "textarea" || Vye(r.type) ? o === "onfocus" ? s = "onfocusin" : o === "onblur" ? s = "onfocusout" : Bye.test(s) ? s = o : n.indexOf("-") === -1 && $ye.test(s) ? s = s.replace(Fye, "-$&").toLowerCase() : a === null && (a = void 0) : o = s = "oninput", o === "oninput" && i[s = o] && (s = "oninputCapture"), i[s] = a; + s === "defaultValue" && "value" in r && r.value == null ? s = "value" : s === "download" && a === !0 ? a = "" : o === "ondoubleclick" ? s = "ondblclick" : o !== "onchange" || n !== "input" && n !== "textarea" || Fye(r.type) ? o === "onfocus" ? s = "onfocusin" : o === "onblur" ? s = "onfocusout" : Pye.test(s) ? s = o : n.indexOf("-") === -1 && Iye.test(s) ? s = s.replace($ye, "-$&").toLowerCase() : a === null && (a = void 0) : o = s = "oninput", o === "oninput" && i[s = o] && (s = "oninputCapture"), i[s] = a; } } n == "select" && i.multiple && Array.isArray(i.value) && (i.value = Tu(r.children).forEach(function(l) { l.props.selected = i.value.indexOf(l.props.value) != -1; })), n == "select" && i.defaultValue != null && (i.value = Tu(r.children).forEach(function(l) { l.props.selected = i.multiple ? i.defaultValue.indexOf(l.props.value) != -1 : i.defaultValue == l.props.value; - })), r.class && !r.className ? (i.class = r.class, Object.defineProperty(i, "className", Gye)) : (r.className && !r.class || r.class && r.className) && (i.class = i.className = r.className), e.props = i; - }(t), t.$$typeof = IZ, $$ && $$(t); + })), r.class && !r.className ? (i.class = r.class, Object.defineProperty(i, "className", Qye)) : (r.className && !r.class || r.class && r.className) && (i.class = i.className = r.className), e.props = i; + }(t), t.$$typeof = MZ, N$ && N$(t); }; -var B$ = $t.__r; +var I$ = $t.__r; $t.__r = function(t) { - B$ && B$(t), RR = t.__c; + I$ && I$(t), _R = t.__c; }; -var F$ = $t.diffed; +var P$ = $t.diffed; $t.diffed = function(t) { - F$ && F$(t); + P$ && P$(t); var e = t.props, r = t.__e; - r != null && t.type === "textarea" && "value" in e && e.value !== r.value && (r.value = e.value == null ? "" : e.value), RR = null; + r != null && t.type === "textarea" && "value" in e && e.value !== r.value && (r.value = e.value == null ? "" : e.value), _R = null; }; -var Hye = { ReactCurrentDispatcher: { current: { readContext: function(t) { - return RR.__n[t.__c].props.value; +var Wye = { ReactCurrentDispatcher: { current: { readContext: function(t) { + return _R.__n[t.__c].props.value; } } } }; -function Xye(t) { +function Gye(t) { return Rl.bind(null, t); } -function LS(t) { - return !!t && t.$$typeof === IZ; +function AS(t) { + return !!t && t.$$typeof === MZ; } -function Zye(t) { - return LS(t) && t.type === Iu; +function Hye(t) { + return AS(t) && t.type === Iu; } -function jye(t) { - return LS(t) ? yye.apply(null, arguments) : t; +function Xye(t) { + return AS(t) ? mye.apply(null, arguments) : t; } -function Kye(t) { +function Zye(t) { return !!t.__k && (xg(null, t), !0); } -function Jye(t) { +function jye(t) { return t && (t.base || t.nodeType === 1 && t) || null; } -var e2e = function(t, e) { +var Kye = function(t, e) { return t(e); -}, t2e = function(t, e) { +}, Jye = function(t, e) { return t(e); -}, r2e = Iu; -function PZ(t) { +}, e2e = Iu; +function DZ(t) { t(); } -function n2e(t) { +function t2e(t) { return t; } -function i2e() { - return [!1, PZ]; +function r2e() { + return [!1, DZ]; } -var s2e = AS, a2e = LS; -function o2e(t, e) { +var n2e = _S, i2e = AS; +function s2e(t, e) { var r = e(), n = Rn({ h: { __: r, v: e } }), i = n[0].h, s = n[1]; - return AS(function() { - i.__ = r, i.v = e, fE(i) && s({ h: i }); + return _S(function() { + i.__ = r, i.v = e, uE(i) && s({ h: i }); }, [t, r, e]), Yi(function() { - return fE(i) && s({ h: i }), t(function() { - fE(i) && s({ h: i }); + return uE(i) && s({ h: i }), t(function() { + uE(i) && s({ h: i }); }); }, [t]), r; } -function fE(t) { +function uE(t) { var e, r, n = t.v, i = t.__; try { var s = n(); @@ -834,11 +834,11 @@ function fE(t) { return !0; } } -var Hd = { useState: Rn, useId: wye, useReducer: _S, useEffect: Yi, useLayoutEffect: AS, useInsertionEffect: s2e, useTransition: i2e, useDeferredValue: n2e, useSyncExternalStore: o2e, startTransition: PZ, useRef: so, useImperativeHandle: xye, useMemo: Nn, useCallback: m5, useContext: _Z, useDebugValue: CA, version: "17.0.2", Children: Rye, render: Uye, hydrate: qye, unmountComponentAtNode: Kye, createPortal: Pye, createElement: Rl, createContext: bye, createFactory: Xye, cloneElement: jye, createRef: dye, Fragment: Iu, isValidElement: LS, isElement: a2e, isFragment: Zye, findDOMNode: Jye, Component: Ec, PureComponent: AA, memo: _ye, forwardRef: Lye, flushSync: t2e, unstable_batchedUpdates: e2e, StrictMode: r2e, Suspense: JO, SuspenseList: hv, lazy: Dye, __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: Hye }, qc = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}; -function $Z(t) { +var Hd = { useState: Rn, useId: bye, useReducer: ES, useEffect: Yi, useLayoutEffect: _S, useInsertionEffect: n2e, useTransition: r2e, useDeferredValue: t2e, useSyncExternalStore: s2e, startTransition: DZ, useRef: so, useImperativeHandle: yye, useMemo: Nn, useCallback: g5, useContext: TZ, useDebugValue: SA, version: "17.0.2", Children: Aye, render: zye, hydrate: Vye, unmountComponentAtNode: Zye, createPortal: Nye, createElement: Rl, createContext: vye, createFactory: Gye, cloneElement: Xye, createRef: hye, Fragment: Iu, isValidElement: AS, isElement: i2e, isFragment: Hye, findDOMNode: jye, Component: Ec, PureComponent: EA, memo: Cye, forwardRef: _ye, flushSync: Jye, unstable_batchedUpdates: Kye, StrictMode: e2e, Suspense: KO, SuspenseList: hv, lazy: Rye, __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: Wye }, qc = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}; +function NZ(t) { return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t; } -function BZ(t) { +function IZ(t) { var e = t.default; if (typeof e == "function") { var r = function() { @@ -859,7 +859,7 @@ function BZ(t) { }); }), r; } -var l2e = function(e, r, n, i) { +var a2e = function(e, r, n, i) { var s = n ? n.call(i, e, r) : void 0; if (s !== void 0) return !!s; @@ -879,11 +879,11 @@ var l2e = function(e, r, n, i) { return !1; } return !0; -}, pn = "-ms-", qv = "-moz-", Fr = "-webkit-", FZ = "comm", RS = "rule", MR = "decl", c2e = "@import", zZ = "@keyframes", u2e = "@layer", h2e = Math.abs, DR = String.fromCharCode, LA = Object.assign; -function f2e(t, e) { +}, pn = "-ms-", qv = "-moz-", Fr = "-webkit-", PZ = "comm", LS = "rule", AR = "decl", o2e = "@import", $Z = "@keyframes", l2e = "@layer", c2e = Math.abs, LR = String.fromCharCode, _A = Object.assign; +function u2e(t, e) { return Ui(t, 0) ^ 45 ? (((e << 2 ^ Ui(t, 0)) << 2 ^ Ui(t, 1)) << 2 ^ Ui(t, 2)) << 2 ^ Ui(t, 3) : 0; } -function VZ(t) { +function BZ(t) { return t.trim(); } function fu(t, e) { @@ -892,7 +892,7 @@ function fu(t, e) { function vr(t, e, r) { return t.replace(e, r); } -function e4(t, e) { +function JO(t, e) { return t.indexOf(e); } function Ui(t, e) { @@ -904,51 +904,51 @@ function kg(t, e, r) { function lc(t) { return t.length; } -function UZ(t) { +function FZ(t) { return t.length; } function fv(t, e) { return e.push(t), t; } -function d2e(t, e) { +function h2e(t, e) { return t.map(e).join(""); } -function z$(t, e) { +function $$(t, e) { return t.filter(function(r) { return !fu(r, e); }); } -var MS = 1, Sg = 1, qZ = 0, Vo = 0, li = 0, N1 = ""; -function DS(t, e, r, n, i, s, a, o) { - return { value: t, root: e, parent: r, type: n, props: i, children: s, line: MS, column: Sg, length: a, return: "", siblings: o }; +var RS = 1, Sg = 1, zZ = 0, Vo = 0, li = 0, N1 = ""; +function MS(t, e, r, n, i, s, a, o) { + return { value: t, root: e, parent: r, type: n, props: i, children: s, line: RS, column: Sg, length: a, return: "", siblings: o }; } function wh(t, e) { - return LA(DS("", null, null, "", null, null, 0, t.siblings), t, { length: -t.length }, e); + return _A(MS("", null, null, "", null, null, 0, t.siblings), t, { length: -t.length }, e); } function lp(t) { for (; t.root; ) t = wh(t.root, { children: [t] }); fv(t, t.siblings); } -function p2e() { +function f2e() { return li; } -function g2e() { - return li = Vo > 0 ? Ui(N1, --Vo) : 0, Sg--, li === 10 && (Sg = 1, MS--), li; +function d2e() { + return li = Vo > 0 ? Ui(N1, --Vo) : 0, Sg--, li === 10 && (Sg = 1, RS--), li; } function bl() { - return li = Vo < qZ ? Ui(N1, Vo++) : 0, Sg++, li === 10 && (Sg = 1, MS++), li; + return li = Vo < zZ ? Ui(N1, Vo++) : 0, Sg++, li === 10 && (Sg = 1, RS++), li; } function zd() { return Ui(N1, Vo); } -function t4() { +function e4() { return Vo; } -function NS(t, e) { +function DS(t, e) { return kg(N1, t, e); } -function RA(t) { +function AA(t) { switch (t) { case 0: case 9: @@ -980,36 +980,36 @@ function RA(t) { } return 0; } -function m2e(t) { - return MS = Sg = 1, qZ = lc(N1 = t), Vo = 0, []; +function p2e(t) { + return RS = Sg = 1, zZ = lc(N1 = t), Vo = 0, []; } -function v2e(t) { +function g2e(t) { return N1 = "", t; } -function dE(t) { - return VZ(NS(Vo - 1, MA(t === 91 ? t + 2 : t === 40 ? t + 1 : t))); +function hE(t) { + return BZ(DS(Vo - 1, LA(t === 91 ? t + 2 : t === 40 ? t + 1 : t))); } -function y2e(t) { +function m2e(t) { for (; (li = zd()) && li < 33; ) bl(); - return RA(t) > 2 || RA(li) > 3 ? "" : " "; + return AA(t) > 2 || AA(li) > 3 ? "" : " "; } -function b2e(t, e) { +function v2e(t, e) { for (; --e && bl() && !(li < 48 || li > 102 || li > 57 && li < 65 || li > 70 && li < 97); ) ; - return NS(t, t4() + (e < 6 && zd() == 32 && bl() == 32)); + return DS(t, e4() + (e < 6 && zd() == 32 && bl() == 32)); } -function MA(t) { +function LA(t) { for (; bl(); ) switch (li) { case t: return Vo; case 34: case 39: - t !== 34 && t !== 39 && MA(li); + t !== 34 && t !== 39 && LA(li); break; case 40: - t === 41 && MA(t); + t === 41 && LA(t); break; case 92: bl(); @@ -1017,47 +1017,47 @@ function MA(t) { } return Vo; } -function x2e(t, e) { +function y2e(t, e) { for (; bl() && t + li !== 47 + 10; ) if (t + li === 42 + 42 && zd() === 47) break; - return "/*" + NS(e, Vo - 1) + "*" + DR(t === 47 ? t : bl()); + return "/*" + DS(e, Vo - 1) + "*" + LR(t === 47 ? t : bl()); } -function w2e(t) { - for (; !RA(zd()); ) +function b2e(t) { + for (; !AA(zd()); ) bl(); - return NS(t, Vo); + return DS(t, Vo); } -function O2e(t) { - return v2e(r4("", null, null, null, [""], t = m2e(t), 0, [0], t)); +function x2e(t) { + return g2e(t4("", null, null, null, [""], t = p2e(t), 0, [0], t)); } -function r4(t, e, r, n, i, s, a, o, l) { +function t4(t, e, r, n, i, s, a, o, l) { for (var u = 0, h = 0, f = a, d = 0, p = 0, g = 0, m = 1, v = 1, y = 1, b = 0, w = "", O = i, S = s, C = n, T = w; v; ) switch (g = b, b = bl()) { case 40: if (g != 108 && Ui(T, f - 1) == 58) { - e4(T += vr(dE(b), "&", "&\f"), "&\f") != -1 && (y = -1); + JO(T += vr(hE(b), "&", "&\f"), "&\f") != -1 && (y = -1); break; } case 34: case 39: case 91: - T += dE(b); + T += hE(b); break; case 9: case 10: case 13: case 32: - T += y2e(g); + T += m2e(g); break; case 92: - T += b2e(t4() - 1, 7); + T += v2e(e4() - 1, 7); continue; case 47: switch (zd()) { case 42: case 47: - fv(k2e(x2e(bl(), t4()), e, r, l), l); + fv(w2e(y2e(bl(), e4()), e, r, l), l); break; default: T += "/"; @@ -1073,24 +1073,24 @@ function r4(t, e, r, n, i, s, a, o, l) { case 125: v = 0; case 59 + h: - y == -1 && (T = vr(T, /\f/g, "")), p > 0 && lc(T) - f && fv(p > 32 ? U$(T + ";", n, r, f - 1, l) : U$(vr(T, " ", "") + ";", n, r, f - 2, l), l); + y == -1 && (T = vr(T, /\f/g, "")), p > 0 && lc(T) - f && fv(p > 32 ? F$(T + ";", n, r, f - 1, l) : F$(vr(T, " ", "") + ";", n, r, f - 2, l), l); break; case 59: T += ";"; default: - if (fv(C = V$(T, e, r, u, h, i, o, w, O = [], S = [], f, s), s), b === 123) + if (fv(C = B$(T, e, r, u, h, i, o, w, O = [], S = [], f, s), s), b === 123) if (h === 0) - r4(T, e, C, C, O, s, f, o, S); + t4(T, e, C, C, O, s, f, o, S); else switch (d === 99 && Ui(T, 3) === 110 ? 100 : d) { case 100: case 108: case 109: case 115: - r4(t, C, C, n && fv(V$(t, C, C, 0, 0, i, o, w, i, O = [], f, S), S), i, S, f, o, n ? O : S); + t4(t, C, C, n && fv(B$(t, C, C, 0, 0, i, o, w, i, O = [], f, S), S), i, S, f, o, n ? O : S); break; default: - r4(T, C, C, C, [""], S, 0, o, S); + t4(T, C, C, C, [""], S, 0, o, S); } } u = h = p = 0, m = y = 1, w = T = "", f = a; @@ -1101,10 +1101,10 @@ function r4(t, e, r, n, i, s, a, o, l) { if (m < 1) { if (b == 123) --m; - else if (b == 125 && m++ == 0 && g2e() == 125) + else if (b == 125 && m++ == 0 && d2e() == 125) continue; } - switch (T += DR(b), b * m) { + switch (T += LR(b), b * m) { case 38: y = h > 0 ? 1 : (T += "\f", -1); break; @@ -1112,7 +1112,7 @@ function r4(t, e, r, n, i, s, a, o, l) { o[u++] = (lc(T) - 1) * y, y = 1; break; case 64: - zd() === 45 && (T += dE(bl())), d = zd(), h = f = lc(w = T += w2e(t4())), b++; + zd() === 45 && (T += hE(bl())), d = zd(), h = f = lc(w = T += b2e(e4())), b++; break; case 45: g === 45 && lc(T) == 2 && (m = 0); @@ -1120,20 +1120,20 @@ function r4(t, e, r, n, i, s, a, o, l) { } return s; } -function V$(t, e, r, n, i, s, a, o, l, u, h, f) { - for (var d = i - 1, p = i === 0 ? s : [""], g = UZ(p), m = 0, v = 0, y = 0; m < n; ++m) - for (var b = 0, w = kg(t, d + 1, d = h2e(v = a[m])), O = t; b < g; ++b) - (O = VZ(v > 0 ? p[b] + " " + w : vr(w, /&\f/g, p[b]))) && (l[y++] = O); - return DS(t, e, r, i === 0 ? RS : o, l, u, h, f); +function B$(t, e, r, n, i, s, a, o, l, u, h, f) { + for (var d = i - 1, p = i === 0 ? s : [""], g = FZ(p), m = 0, v = 0, y = 0; m < n; ++m) + for (var b = 0, w = kg(t, d + 1, d = c2e(v = a[m])), O = t; b < g; ++b) + (O = BZ(v > 0 ? p[b] + " " + w : vr(w, /&\f/g, p[b]))) && (l[y++] = O); + return MS(t, e, r, i === 0 ? LS : o, l, u, h, f); } -function k2e(t, e, r, n) { - return DS(t, e, r, FZ, DR(p2e()), kg(t, 2, -2), 0, n); +function w2e(t, e, r, n) { + return MS(t, e, r, PZ, LR(f2e()), kg(t, 2, -2), 0, n); } -function U$(t, e, r, n, i) { - return DS(t, e, r, MR, kg(t, 0, n), kg(t, n + 1, -1), n, i); +function F$(t, e, r, n, i) { + return MS(t, e, r, AR, kg(t, 0, n), kg(t, n + 1, -1), n, i); } -function YZ(t, e, r) { - switch (f2e(t, e)) { +function VZ(t, e, r) { + switch (u2e(t, e)) { case 5103: return Fr + "print-" + t + t; case 5737: @@ -1217,7 +1217,7 @@ function YZ(t, e, r) { case 3616: return r && r.some(function(n, i) { return e = i, fu(n.props, /grid-\w+-end/); - }) ? ~e4(t + (r = r[e].value), "span") ? t : pn + vr(t, "-start", "") + t + pn + "grid-row-span:" + (~e4(r, "span") ? fu(r, /\d+/) : +fu(r, /\d+/) - +fu(t, /\d+/)) + ";" : pn + vr(t, "-start", "") + t; + }) ? ~JO(t + (r = r[e].value), "span") ? t : pn + vr(t, "-start", "") + t + pn + "grid-row-span:" + (~JO(r, "span") ? fu(r, /\d+/) : +fu(r, /\d+/) - +fu(t, /\d+/)) + ";" : pn + vr(t, "-start", "") + t; case 4896: case 4128: return r && r.some(function(n) { @@ -1248,7 +1248,7 @@ function YZ(t, e, r) { case 102: return vr(t, /(.+:)(.+)-([^]+)/, "$1" + Fr + "$2-$3$1" + qv + (Ui(t, e + 3) == 108 ? "$3" : "$2-$3")) + t; case 115: - return ~e4(t, "stretch") ? YZ(vr(t, "stretch", "fill-available"), e, r) + t : t; + return ~JO(t, "stretch") ? VZ(vr(t, "stretch", "fill-available"), e, r) + t : t; } break; case 5152: @@ -1277,67 +1277,67 @@ function YZ(t, e, r) { } return t; } -function v5(t, e) { +function m5(t, e) { for (var r = "", n = 0; n < t.length; n++) r += e(t[n], n, t, e) || ""; return r; } -function S2e(t, e, r, n) { +function O2e(t, e, r, n) { switch (t.type) { - case u2e: + case l2e: if (t.children.length) break; - case c2e: - case MR: + case o2e: + case AR: return t.return = t.return || t.value; - case FZ: + case PZ: return ""; - case zZ: - return t.return = t.value + "{" + v5(t.children, n) + "}"; - case RS: + case $Z: + return t.return = t.value + "{" + m5(t.children, n) + "}"; + case LS: if (!lc(t.value = t.props.join(","))) return ""; } - return lc(r = v5(t.children, n)) ? t.return = t.value + "{" + r + "}" : ""; + return lc(r = m5(t.children, n)) ? t.return = t.value + "{" + r + "}" : ""; } -function T2e(t) { - var e = UZ(t); +function k2e(t) { + var e = FZ(t); return function(r, n, i, s) { for (var a = "", o = 0; o < e; o++) a += t[o](r, n, i, s) || ""; return a; }; } -function C2e(t) { +function S2e(t) { return function(e) { e.root || (e = e.return) && t(e); }; } -function E2e(t, e, r, n) { +function T2e(t, e, r, n) { if (t.length > -1 && !t.return) switch (t.type) { - case MR: - t.return = YZ(t.value, t.length, r); + case AR: + t.return = VZ(t.value, t.length, r); return; - case zZ: - return v5([wh(t, { value: vr(t.value, "@", "@" + Fr) })], n); - case RS: + case $Z: + return m5([wh(t, { value: vr(t.value, "@", "@" + Fr) })], n); + case LS: if (t.length) - return d2e(r = t.props, function(i) { + return h2e(r = t.props, function(i) { switch (fu(i, n = /(::plac\w+|:read-\w+)/)) { case ":read-only": case ":read-write": - lp(wh(t, { props: [vr(i, /:(read-\w+)/, ":" + qv + "$1")] })), lp(wh(t, { props: [i] })), LA(t, { props: z$(r, n) }); + lp(wh(t, { props: [vr(i, /:(read-\w+)/, ":" + qv + "$1")] })), lp(wh(t, { props: [i] })), _A(t, { props: $$(r, n) }); break; case "::placeholder": - lp(wh(t, { props: [vr(i, /:(plac\w+)/, ":" + Fr + "input-$1")] })), lp(wh(t, { props: [vr(i, /:(plac\w+)/, ":" + qv + "$1")] })), lp(wh(t, { props: [vr(i, /:(plac\w+)/, pn + "input-$1")] })), lp(wh(t, { props: [i] })), LA(t, { props: z$(r, n) }); + lp(wh(t, { props: [vr(i, /:(plac\w+)/, ":" + Fr + "input-$1")] })), lp(wh(t, { props: [vr(i, /:(plac\w+)/, ":" + qv + "$1")] })), lp(wh(t, { props: [vr(i, /:(plac\w+)/, pn + "input-$1")] })), lp(wh(t, { props: [i] })), _A(t, { props: $$(r, n) }); break; } return ""; }); } } -var _2e = { +var C2e = { animationIterationCount: 1, aspectRatio: 1, borderImageOutset: 1, @@ -1384,8 +1384,8 @@ var _2e = { strokeMiterlimit: 1, strokeOpacity: 1, strokeWidth: 1 -}, Xd = typeof process < "u" && {} !== void 0 && ({}.REACT_APP_SC_ATTR || {}.SC_ATTR) || "data-styled", QZ = "active", WZ = "data-styled-version", IS = "6.1.2", NR = `/*!sc*/ -`, IR = typeof window < "u" && "HTMLElement" in window, A2e = Boolean(typeof SC_DISABLE_SPEEDY == "boolean" ? SC_DISABLE_SPEEDY : typeof process < "u" && {} !== void 0 && {}.REACT_APP_SC_DISABLE_SPEEDY !== void 0 && {}.REACT_APP_SC_DISABLE_SPEEDY !== "" ? {}.REACT_APP_SC_DISABLE_SPEEDY !== "false" && {}.REACT_APP_SC_DISABLE_SPEEDY : typeof process < "u" && {} !== void 0 && {}.SC_DISABLE_SPEEDY !== void 0 && {}.SC_DISABLE_SPEEDY !== "" ? {}.SC_DISABLE_SPEEDY !== "false" && {}.SC_DISABLE_SPEEDY : {}.NODE_ENV !== "production"), q$ = /invalid hook call/i, aw = /* @__PURE__ */ new Set(), L2e = function(t, e) { +}, Xd = typeof process < "u" && {} !== void 0 && ({}.REACT_APP_SC_ATTR || {}.SC_ATTR) || "data-styled", UZ = "active", qZ = "data-styled-version", NS = "6.1.2", RR = `/*!sc*/ +`, MR = typeof window < "u" && "HTMLElement" in window, E2e = Boolean(typeof SC_DISABLE_SPEEDY == "boolean" ? SC_DISABLE_SPEEDY : typeof process < "u" && {} !== void 0 && {}.REACT_APP_SC_DISABLE_SPEEDY !== void 0 && {}.REACT_APP_SC_DISABLE_SPEEDY !== "" ? {}.REACT_APP_SC_DISABLE_SPEEDY !== "false" && {}.REACT_APP_SC_DISABLE_SPEEDY : typeof process < "u" && {} !== void 0 && {}.SC_DISABLE_SPEEDY !== void 0 && {}.SC_DISABLE_SPEEDY !== "" ? {}.SC_DISABLE_SPEEDY !== "false" && {}.SC_DISABLE_SPEEDY : {}.NODE_ENV !== "production"), z$ = /invalid hook call/i, aw = /* @__PURE__ */ new Set(), _2e = function(t, e) { if ({}.NODE_ENV !== "production") { var r = e ? ' with the id of "'.concat(e, '"') : "", n = "The component ".concat(t).concat(r, ` has been created dynamically. `) + `You may see this warning because you've called styled inside another component. @@ -1395,67 +1395,67 @@ To resolve this only create new StyledComponents outside of any render method an console.error = function(a) { for (var o = [], l = 1; l < arguments.length; l++) o[l - 1] = arguments[l]; - q$.test(a) ? (s = !1, aw.delete(n)) : i.apply(void 0, Og([a], o, !1)); + z$.test(a) ? (s = !1, aw.delete(n)) : i.apply(void 0, Og([a], o, !1)); }, so(), s && !aw.has(n) && (console.warn(n), aw.add(n)); } catch (a) { - q$.test(a.message) && aw.delete(n); + z$.test(a.message) && aw.delete(n); } finally { console.error = i; } } -}, PS = Object.freeze([]), Tg = Object.freeze({}); -function R2e(t, e, r) { +}, IS = Object.freeze([]), Tg = Object.freeze({}); +function A2e(t, e, r) { return r === void 0 && (r = Tg), t.theme !== r.theme && t.theme || e || r.theme; } -var DA = /* @__PURE__ */ new Set(["a", "abbr", "address", "area", "article", "aside", "audio", "b", "base", "bdi", "bdo", "big", "blockquote", "body", "br", "button", "canvas", "caption", "cite", "code", "col", "colgroup", "data", "datalist", "dd", "del", "details", "dfn", "dialog", "div", "dl", "dt", "em", "embed", "fieldset", "figcaption", "figure", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "header", "hgroup", "hr", "html", "i", "iframe", "img", "input", "ins", "kbd", "keygen", "label", "legend", "li", "link", "main", "map", "mark", "menu", "menuitem", "meta", "meter", "nav", "noscript", "object", "ol", "optgroup", "option", "output", "p", "param", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "script", "section", "select", "small", "source", "span", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "u", "ul", "use", "var", "video", "wbr", "circle", "clipPath", "defs", "ellipse", "foreignObject", "g", "image", "line", "linearGradient", "marker", "mask", "path", "pattern", "polygon", "polyline", "radialGradient", "rect", "stop", "svg", "text", "tspan"]), M2e = /[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g, D2e = /(^-|-$)/g; -function Y$(t) { - return t.replace(M2e, "-").replace(D2e, ""); +var RA = /* @__PURE__ */ new Set(["a", "abbr", "address", "area", "article", "aside", "audio", "b", "base", "bdi", "bdo", "big", "blockquote", "body", "br", "button", "canvas", "caption", "cite", "code", "col", "colgroup", "data", "datalist", "dd", "del", "details", "dfn", "dialog", "div", "dl", "dt", "em", "embed", "fieldset", "figcaption", "figure", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "header", "hgroup", "hr", "html", "i", "iframe", "img", "input", "ins", "kbd", "keygen", "label", "legend", "li", "link", "main", "map", "mark", "menu", "menuitem", "meta", "meter", "nav", "noscript", "object", "ol", "optgroup", "option", "output", "p", "param", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "script", "section", "select", "small", "source", "span", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "u", "ul", "use", "var", "video", "wbr", "circle", "clipPath", "defs", "ellipse", "foreignObject", "g", "image", "line", "linearGradient", "marker", "mask", "path", "pattern", "polygon", "polyline", "radialGradient", "rect", "stop", "svg", "text", "tspan"]), L2e = /[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g, R2e = /(^-|-$)/g; +function V$(t) { + return t.replace(L2e, "-").replace(R2e, ""); } -var N2e = /(a)(d)/gi, ow = 52, Q$ = function(t) { +var M2e = /(a)(d)/gi, ow = 52, U$ = function(t) { return String.fromCharCode(t + (t > 25 ? 39 : 97)); }; -function NA(t) { +function MA(t) { var e, r = ""; for (e = Math.abs(t); e > ow; e = e / ow | 0) - r = Q$(e % ow) + r; - return (Q$(e % ow) + r).replace(N2e, "$1-$2"); + r = U$(e % ow) + r; + return (U$(e % ow) + r).replace(M2e, "$1-$2"); } -var pE, GZ = 5381, md = function(t, e) { +var fE, YZ = 5381, md = function(t, e) { for (var r = e.length; r; ) t = 33 * t ^ e.charCodeAt(--r); return t; -}, HZ = function(t) { - return md(GZ, t); +}, QZ = function(t) { + return md(YZ, t); }; -function I2e(t) { - return NA(HZ(t) >>> 0); +function D2e(t) { + return MA(QZ(t) >>> 0); } -function XZ(t) { +function WZ(t) { return {}.NODE_ENV !== "production" && typeof t == "string" && t || t.displayName || t.name || "Component"; } -function gE(t) { +function dE(t) { return typeof t == "string" && ({}.NODE_ENV === "production" || t.charAt(0) === t.charAt(0).toLowerCase()); } -var ZZ = typeof Symbol == "function" && Symbol.for, jZ = ZZ ? Symbol.for("react.memo") : 60115, P2e = ZZ ? Symbol.for("react.forward_ref") : 60112, $2e = { childContextTypes: !0, contextType: !0, contextTypes: !0, defaultProps: !0, displayName: !0, getDefaultProps: !0, getDerivedStateFromError: !0, getDerivedStateFromProps: !0, mixins: !0, propTypes: !0, type: !0 }, B2e = { name: !0, length: !0, prototype: !0, caller: !0, callee: !0, arguments: !0, arity: !0 }, KZ = { $$typeof: !0, compare: !0, defaultProps: !0, displayName: !0, propTypes: !0, type: !0 }, F2e = ((pE = {})[P2e] = { $$typeof: !0, render: !0, defaultProps: !0, displayName: !0, propTypes: !0 }, pE[jZ] = KZ, pE); -function W$(t) { - return ("type" in (e = t) && e.type.$$typeof) === jZ ? KZ : "$$typeof" in t ? F2e[t.$$typeof] : $2e; +var GZ = typeof Symbol == "function" && Symbol.for, HZ = GZ ? Symbol.for("react.memo") : 60115, N2e = GZ ? Symbol.for("react.forward_ref") : 60112, I2e = { childContextTypes: !0, contextType: !0, contextTypes: !0, defaultProps: !0, displayName: !0, getDefaultProps: !0, getDerivedStateFromError: !0, getDerivedStateFromProps: !0, mixins: !0, propTypes: !0, type: !0 }, P2e = { name: !0, length: !0, prototype: !0, caller: !0, callee: !0, arguments: !0, arity: !0 }, XZ = { $$typeof: !0, compare: !0, defaultProps: !0, displayName: !0, propTypes: !0, type: !0 }, $2e = ((fE = {})[N2e] = { $$typeof: !0, render: !0, defaultProps: !0, displayName: !0, propTypes: !0 }, fE[HZ] = XZ, fE); +function q$(t) { + return ("type" in (e = t) && e.type.$$typeof) === HZ ? XZ : "$$typeof" in t ? $2e[t.$$typeof] : I2e; var e; } -var z2e = Object.defineProperty, V2e = Object.getOwnPropertyNames, G$ = Object.getOwnPropertySymbols, U2e = Object.getOwnPropertyDescriptor, q2e = Object.getPrototypeOf, H$ = Object.prototype; -function JZ(t, e, r) { +var B2e = Object.defineProperty, F2e = Object.getOwnPropertyNames, Y$ = Object.getOwnPropertySymbols, z2e = Object.getOwnPropertyDescriptor, V2e = Object.getPrototypeOf, Q$ = Object.prototype; +function ZZ(t, e, r) { if (typeof e != "string") { - if (H$) { - var n = q2e(e); - n && n !== H$ && JZ(t, n, r); + if (Q$) { + var n = V2e(e); + n && n !== Q$ && ZZ(t, n, r); } - var i = V2e(e); - G$ && (i = i.concat(G$(e))); - for (var s = W$(t), a = W$(e), o = 0; o < i.length; ++o) { + var i = F2e(e); + Y$ && (i = i.concat(Y$(e))); + for (var s = q$(t), a = q$(e), o = 0; o < i.length; ++o) { var l = i[o]; - if (!(l in B2e || r && r[l] || a && l in a || s && l in s)) { - var u = U2e(e, l); + if (!(l in P2e || r && r[l] || a && l in a || s && l in s)) { + var u = z2e(e, l); try { - z2e(t, l, u); + B2e(t, l, u); } catch { } } @@ -1466,13 +1466,13 @@ function JZ(t, e, r) { function Cg(t) { return typeof t == "function"; } -function PR(t) { +function DR(t) { return typeof t == "object" && "styledComponentId" in t; } function Ed(t, e) { return t && e ? "".concat(t, " ").concat(e) : t || e || ""; } -function X$(t, e) { +function W$(t, e) { if (t.length === 0) return ""; for (var r = t[0], n = 1; n < t.length; n++) @@ -1482,21 +1482,21 @@ function X$(t, e) { function Eg(t) { return t !== null && typeof t == "object" && t.constructor.name === Object.name && !("props" in t && t.$$typeof); } -function IA(t, e, r) { +function DA(t, e, r) { if (r === void 0 && (r = !1), !r && !Eg(t) && !Array.isArray(t)) return e; if (Array.isArray(e)) for (var n = 0; n < e.length; n++) - t[n] = IA(t[n], e[n]); + t[n] = DA(t[n], e[n]); else if (Eg(e)) for (var n in e) - t[n] = IA(t[n], e[n]); + t[n] = DA(t[n], e[n]); return t; } -function $R(t, e) { +function NR(t, e) { Object.defineProperty(t, "toString", { value: e }); } -var Y2e = {}.NODE_ENV !== "production" ? { 1: `Cannot create styled-component for component: %s. +var U2e = {}.NODE_ENV !== "production" ? { 1: `Cannot create styled-component for component: %s. `, 2: `Can't collect styles once you've consumed a \`ServerStyleSheet\`'s styles! \`ServerStyleSheet\` is a one off instance for each server-side render cycle. @@ -1538,7 +1538,7 @@ as for instance in your render method then you may be running into this limitati `, 17: `CSSStyleSheet could not be found on HTMLStyleElement. Has styled-components' style tag been unmounted or altered by another script? `, 18: "ThemeProvider: Please make sure your useTheme hook is within a ``" } : {}; -function Q2e() { +function q2e() { for (var t = [], e = 0; e < arguments.length; e++) t[e] = arguments[e]; for (var r = t[0], n = [], i = 1, s = t.length; i < s; i += 1) @@ -1550,9 +1550,9 @@ function Q2e() { function I1(t) { for (var e = [], r = 1; r < arguments.length; r++) e[r - 1] = arguments[r]; - return {}.NODE_ENV === "production" ? new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(t, " for more information.").concat(e.length > 0 ? " Args: ".concat(e.join(", ")) : "")) : new Error(Q2e.apply(void 0, Og([Y2e[t]], e, !1)).trim()); + return {}.NODE_ENV === "production" ? new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(t, " for more information.").concat(e.length > 0 ? " Args: ".concat(e.join(", ")) : "")) : new Error(q2e.apply(void 0, Og([U2e[t]], e, !1)).trim()); } -var W2e = function() { +var Y2e = function() { function t(e) { this.groupSizes = new Uint32Array(512), this.length = 512, this.tag = e; } @@ -1583,50 +1583,50 @@ var W2e = function() { if (e >= this.length || this.groupSizes[e] === 0) return r; for (var n = this.groupSizes[e], i = this.indexOfGroup(e), s = i + n, a = i; a < s; a++) - r += "".concat(this.tag.getRule(a)).concat(NR); + r += "".concat(this.tag.getRule(a)).concat(RR); return r; }, t; -}(), n4 = /* @__PURE__ */ new Map(), y5 = /* @__PURE__ */ new Map(), i4 = 1, lw = function(t) { - if (n4.has(t)) - return n4.get(t); - for (; y5.has(i4); ) - i4++; - var e = i4++; +}(), r4 = /* @__PURE__ */ new Map(), v5 = /* @__PURE__ */ new Map(), n4 = 1, lw = function(t) { + if (r4.has(t)) + return r4.get(t); + for (; v5.has(n4); ) + n4++; + var e = n4++; if ({}.NODE_ENV !== "production" && ((0 | e) < 0 || e > 1073741824)) throw I1(16, "".concat(e)); - return n4.set(t, e), y5.set(e, t), e; -}, G2e = function(t, e) { - i4 = e + 1, n4.set(t, e), y5.set(e, t); -}, H2e = "style[".concat(Xd, "][").concat(WZ, '="').concat(IS, '"]'), X2e = new RegExp("^".concat(Xd, '\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')), Z2e = function(t, e, r) { + return r4.set(t, e), v5.set(e, t), e; +}, Q2e = function(t, e) { + n4 = e + 1, r4.set(t, e), v5.set(e, t); +}, W2e = "style[".concat(Xd, "][").concat(qZ, '="').concat(NS, '"]'), G2e = new RegExp("^".concat(Xd, '\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')), H2e = function(t, e, r) { for (var n, i = r.split(","), s = 0, a = i.length; s < a; s++) (n = i[s]) && t.registerName(e, n); -}, j2e = function(t, e) { - for (var r, n = ((r = e.textContent) !== null && r !== void 0 ? r : "").split(NR), i = [], s = 0, a = n.length; s < a; s++) { +}, X2e = function(t, e) { + for (var r, n = ((r = e.textContent) !== null && r !== void 0 ? r : "").split(RR), i = [], s = 0, a = n.length; s < a; s++) { var o = n[s].trim(); if (o) { - var l = o.match(X2e); + var l = o.match(G2e); if (l) { var u = 0 | parseInt(l[1], 10), h = l[2]; - u !== 0 && (G2e(h, u), Z2e(t, h, l[3]), t.getTag().insertRules(u, i)), i.length = 0; + u !== 0 && (Q2e(h, u), H2e(t, h, l[3]), t.getTag().insertRules(u, i)), i.length = 0; } else i.push(o); } } }; -function K2e() { +function Z2e() { return typeof __webpack_nonce__ < "u" ? __webpack_nonce__ : null; } -var ej = function(t) { +var jZ = function(t) { var e = document.head, r = t || e, n = document.createElement("style"), i = function(o) { var l = Array.from(o.querySelectorAll("style[".concat(Xd, "]"))); return l[l.length - 1]; }(r), s = i !== void 0 ? i.nextSibling : null; - n.setAttribute(Xd, QZ), n.setAttribute(WZ, IS); - var a = K2e(); + n.setAttribute(Xd, UZ), n.setAttribute(qZ, NS); + var a = Z2e(); return a && n.setAttribute("nonce", a), r.insertBefore(n, s), n; -}, J2e = function() { +}, j2e = function() { function t(e) { - this.element = ej(e), this.element.appendChild(document.createTextNode("")), this.sheet = function(r) { + this.element = jZ(e), this.element.appendChild(document.createTextNode("")), this.sheet = function(r) { if (r.sheet) return r.sheet; for (var n = document.styleSheets, i = 0, s = n.length; i < s; i++) { @@ -1649,9 +1649,9 @@ var ej = function(t) { var r = this.sheet.cssRules[e]; return r && r.cssText ? r.cssText : ""; }, t; -}(), ebe = function() { +}(), K2e = function() { function t(e) { - this.element = ej(e), this.nodes = this.element.childNodes, this.length = 0; + this.element = jZ(e), this.nodes = this.element.childNodes, this.length = 0; } return t.prototype.insertRule = function(e, r) { if (e <= this.length && e >= 0) { @@ -1664,7 +1664,7 @@ var ej = function(t) { }, t.prototype.getRule = function(e) { return e < this.length ? this.nodes[e].textContent : ""; }, t; -}(), tbe = function() { +}(), J2e = function() { function t(e) { this.rules = [], this.length = 0; } @@ -1675,20 +1675,20 @@ var ej = function(t) { }, t.prototype.getRule = function(e) { return e < this.length ? this.rules[e] : ""; }, t; -}(), Z$ = IR, rbe = { isServer: !IR, useCSSOMInjection: !A2e }, tj = function() { +}(), G$ = MR, ebe = { isServer: !MR, useCSSOMInjection: !E2e }, KZ = function() { function t(e, r, n) { e === void 0 && (e = Tg), r === void 0 && (r = {}); var i = this; - this.options = Ra(Ra({}, rbe), e), this.gs = r, this.names = new Map(n), this.server = !!e.isServer, !this.server && IR && Z$ && (Z$ = !1, function(s) { - for (var a = document.querySelectorAll(H2e), o = 0, l = a.length; o < l; o++) { + this.options = Ra(Ra({}, ebe), e), this.gs = r, this.names = new Map(n), this.server = !!e.isServer, !this.server && MR && G$ && (G$ = !1, function(s) { + for (var a = document.querySelectorAll(W2e), o = 0, l = a.length; o < l; o++) { var u = a[o]; - u && u.getAttribute(Xd) !== QZ && (j2e(s, u), u.parentNode && u.parentNode.removeChild(u)); + u && u.getAttribute(Xd) !== UZ && (X2e(s, u), u.parentNode && u.parentNode.removeChild(u)); } - }(this)), $R(this, function() { + }(this)), NR(this, function() { return function(s) { for (var a = s.getTag(), o = a.length, l = "", u = function(f) { var d = function(y) { - return y5.get(y); + return v5.get(y); }(f); if (d === void 0) return "continue"; @@ -1698,7 +1698,7 @@ var ej = function(t) { var m = "".concat(Xd, ".g").concat(f, '[id="').concat(d, '"]'), v = ""; p !== void 0 && p.forEach(function(y) { y.length > 0 && (v += "".concat(y, ",")); - }), l += "".concat(g).concat(m, '{content:"').concat(v, '"}').concat(NR); + }), l += "".concat(g).concat(m, '{content:"').concat(v, '"}').concat(RR); }, h = 0; h < o; h++) u(h); return l; @@ -1714,8 +1714,8 @@ var ej = function(t) { }, t.prototype.getTag = function() { return this.tag || (this.tag = (e = function(r) { var n = r.useCSSOMInjection, i = r.target; - return r.isServer ? new tbe(i) : n ? new J2e(i) : new ebe(i); - }(this.options), new W2e(e))); + return r.isServer ? new J2e(i) : n ? new j2e(i) : new K2e(i); + }(this.options), new Y2e(e))); var e; }, t.prototype.hasNameForId = function(e, r) { return this.names.has(e) && this.names.get(e).has(r); @@ -1735,118 +1735,118 @@ var ej = function(t) { }, t.prototype.clearTag = function() { this.tag = void 0; }, t; -}(), nbe = /&/g, ibe = /^\s*\/\/.*$/gm; -function rj(t, e) { +}(), tbe = /&/g, rbe = /^\s*\/\/.*$/gm; +function JZ(t, e) { return t.map(function(r) { return r.type === "rule" && (r.value = "".concat(e, " ").concat(r.value), r.value = r.value.replaceAll(",", ",".concat(e, " ")), r.props = r.props.map(function(n) { return "".concat(e, " ").concat(n); - })), Array.isArray(r.children) && r.type !== "@keyframes" && (r.children = rj(r.children, e)), r; + })), Array.isArray(r.children) && r.type !== "@keyframes" && (r.children = JZ(r.children, e)), r; }); } -function nj(t) { - var e, r, n, i = t === void 0 ? Tg : t, s = i.options, a = s === void 0 ? Tg : s, o = i.plugins, l = o === void 0 ? PS : o, u = function(d, p, g) { +function ej(t) { + var e, r, n, i = t === void 0 ? Tg : t, s = i.options, a = s === void 0 ? Tg : s, o = i.plugins, l = o === void 0 ? IS : o, u = function(d, p, g) { return g === r || g.startsWith(r) && g.endsWith(r) && g.replaceAll(r, "").length > 0 ? ".".concat(e) : d; }, h = l.slice(); h.push(function(d) { - d.type === RS && d.value.includes("&") && (d.props[0] = d.props[0].replace(nbe, r).replace(n, u)); - }), a.prefix && h.push(E2e), h.push(S2e); + d.type === LS && d.value.includes("&") && (d.props[0] = d.props[0].replace(tbe, r).replace(n, u)); + }), a.prefix && h.push(T2e), h.push(O2e); var f = function(d, p, g, m) { p === void 0 && (p = ""), g === void 0 && (g = ""), m === void 0 && (m = "&"), e = m, r = p, n = new RegExp("\\".concat(r, "\\b"), "g"); - var v = d.replace(ibe, ""), y = O2e(g || p ? "".concat(g, " ").concat(p, " { ").concat(v, " }") : v); - a.namespace && (y = rj(y, a.namespace)); + var v = d.replace(rbe, ""), y = x2e(g || p ? "".concat(g, " ").concat(p, " { ").concat(v, " }") : v); + a.namespace && (y = JZ(y, a.namespace)); var b = []; - return v5(y, T2e(h.concat(C2e(function(w) { + return m5(y, k2e(h.concat(S2e(function(w) { return b.push(w); })))), b; }; return f.hash = l.length ? l.reduce(function(d, p) { return p.name || I1(15), md(d, p.name); - }, GZ).toString() : "", f; + }, YZ).toString() : "", f; } -var sbe = new tj(), PA = nj(), BR = Hd.createContext({ shouldForwardProp: void 0, styleSheet: sbe, stylis: PA }); -BR.Consumer; -var abe = Hd.createContext(void 0); -function $A() { - return _Z(BR); +var nbe = new KZ(), NA = ej(), IR = Hd.createContext({ shouldForwardProp: void 0, styleSheet: nbe, stylis: NA }); +IR.Consumer; +var ibe = Hd.createContext(void 0); +function IA() { + return TZ(IR); } -function obe(t) { - var e = Rn(t.stylisPlugins), r = e[0], n = e[1], i = $A().styleSheet, s = Nn(function() { +function sbe(t) { + var e = Rn(t.stylisPlugins), r = e[0], n = e[1], i = IA().styleSheet, s = Nn(function() { var l = i; return t.sheet ? l = t.sheet : t.target && (l = l.reconstructWithOptions({ target: t.target }, !1)), t.disableCSSOMInjection && (l = l.reconstructWithOptions({ useCSSOMInjection: !1 })), l; }, [t.disableCSSOMInjection, t.sheet, t.target, i]), a = Nn(function() { - return nj({ options: { namespace: t.namespace, prefix: t.enableVendorPrefixes }, plugins: r }); + return ej({ options: { namespace: t.namespace, prefix: t.enableVendorPrefixes }, plugins: r }); }, [t.enableVendorPrefixes, t.namespace, r]); Yi(function() { - l2e(r, t.stylisPlugins) || n(t.stylisPlugins); + a2e(r, t.stylisPlugins) || n(t.stylisPlugins); }, [t.stylisPlugins]); var o = Nn(function() { return { shouldForwardProp: t.shouldForwardProp, styleSheet: s, stylis: a }; }, [t.shouldForwardProp, s, a]); - return Hd.createElement(BR.Provider, { value: o }, Hd.createElement(abe.Provider, { value: a }, t.children)); + return Hd.createElement(IR.Provider, { value: o }, Hd.createElement(ibe.Provider, { value: a }, t.children)); } -var j$ = function() { +var H$ = function() { function t(e, r) { var n = this; this.inject = function(i, s) { - s === void 0 && (s = PA); + s === void 0 && (s = NA); var a = n.name + s.hash; i.hasNameForId(n.id, a) || i.insertRules(n.id, a, s(n.rules, a, "@keyframes")); - }, this.name = e, this.id = "sc-keyframes-".concat(e), this.rules = r, $R(this, function() { + }, this.name = e, this.id = "sc-keyframes-".concat(e), this.rules = r, NR(this, function() { throw I1(12, String(n.name)); }); } return t.prototype.getName = function(e) { - return e === void 0 && (e = PA), this.name + e.hash; + return e === void 0 && (e = NA), this.name + e.hash; }, t; -}(), lbe = function(t) { +}(), abe = function(t) { return t >= "A" && t <= "Z"; }; -function K$(t) { +function X$(t) { for (var e = "", r = 0; r < t.length; r++) { var n = t[r]; if (r === 1 && n === "-" && t[0] === "-") return t; - lbe(n) ? e += "-" + n.toLowerCase() : e += n; + abe(n) ? e += "-" + n.toLowerCase() : e += n; } return e.startsWith("ms-") ? "-" + e : e; } -var ij = function(t) { +var tj = function(t) { return t == null || t === !1 || t === ""; -}, sj = function(t) { +}, rj = function(t) { var e, r, n = []; for (var i in t) { var s = t[i]; - t.hasOwnProperty(i) && !ij(s) && (Array.isArray(s) && s.isCss || Cg(s) ? n.push("".concat(K$(i), ":"), s, ";") : Eg(s) ? n.push.apply(n, Og(Og(["".concat(i, " {")], sj(s), !1), ["}"], !1)) : n.push("".concat(K$(i), ": ").concat((e = i, (r = s) == null || typeof r == "boolean" || r === "" ? "" : typeof r != "number" || r === 0 || e in _2e || e.startsWith("--") ? String(r).trim() : "".concat(r, "px")), ";"))); + t.hasOwnProperty(i) && !tj(s) && (Array.isArray(s) && s.isCss || Cg(s) ? n.push("".concat(X$(i), ":"), s, ";") : Eg(s) ? n.push.apply(n, Og(Og(["".concat(i, " {")], rj(s), !1), ["}"], !1)) : n.push("".concat(X$(i), ": ").concat((e = i, (r = s) == null || typeof r == "boolean" || r === "" ? "" : typeof r != "number" || r === 0 || e in C2e || e.startsWith("--") ? String(r).trim() : "".concat(r, "px")), ";"))); } return n; }; function Vd(t, e, r, n) { - if (ij(t)) + if (tj(t)) return []; - if (PR(t)) + if (DR(t)) return [".".concat(t.styledComponentId)]; if (Cg(t)) { if (!Cg(s = t) || s.prototype && s.prototype.isReactComponent || !e) return [t]; var i = t(e); - return {}.NODE_ENV === "production" || typeof i != "object" || Array.isArray(i) || i instanceof j$ || Eg(i) || i === null || console.error("".concat(XZ(t), " is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.")), Vd(i, e, r, n); + return {}.NODE_ENV === "production" || typeof i != "object" || Array.isArray(i) || i instanceof H$ || Eg(i) || i === null || console.error("".concat(WZ(t), " is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.")), Vd(i, e, r, n); } var s; - return t instanceof j$ ? r ? (t.inject(r, n), [t.getName(n)]) : [t] : Eg(t) ? sj(t) : Array.isArray(t) ? Array.prototype.concat.apply(PS, t.map(function(a) { + return t instanceof H$ ? r ? (t.inject(r, n), [t.getName(n)]) : [t] : Eg(t) ? rj(t) : Array.isArray(t) ? Array.prototype.concat.apply(IS, t.map(function(a) { return Vd(a, e, r, n); })) : [t.toString()]; } -function cbe(t) { +function obe(t) { for (var e = 0; e < t.length; e += 1) { var r = t[e]; - if (Cg(r) && !PR(r)) + if (Cg(r) && !DR(r)) return !1; } return !0; } -var ube = HZ(IS), hbe = function() { +var lbe = QZ(NS), cbe = function() { function t(e, r, n) { - this.rules = e, this.staticRulesId = "", this.isStatic = {}.NODE_ENV === "production" && (n === void 0 || n.isStatic) && cbe(e), this.componentId = r, this.baseHash = md(ube, r), this.baseStyle = n, tj.registerId(r); + this.rules = e, this.staticRulesId = "", this.isStatic = {}.NODE_ENV === "production" && (n === void 0 || n.isStatic) && obe(e), this.componentId = r, this.baseHash = md(lbe, r), this.baseStyle = n, KZ.registerId(r); } return t.prototype.generateAndInjectStyles = function(e, r, n) { var i = this.baseStyle ? this.baseStyle.generateAndInjectStyles(e, r, n) : ""; @@ -1854,7 +1854,7 @@ var ube = HZ(IS), hbe = function() { if (this.staticRulesId && r.hasNameForId(this.componentId, this.staticRulesId)) i = Ed(i, this.staticRulesId); else { - var s = X$(Vd(this.rules, e, r, n)), a = NA(md(this.baseHash, s) >>> 0); + var s = W$(Vd(this.rules, e, r, n)), a = MA(md(this.baseHash, s) >>> 0); if (!r.hasNameForId(this.componentId, a)) { var o = n(s, ".".concat(a), void 0, this.componentId); r.insertRules(this.componentId, a, o); @@ -1867,29 +1867,29 @@ var ube = HZ(IS), hbe = function() { if (typeof f == "string") u += f, {}.NODE_ENV !== "production" && (l = md(l, f)); else if (f) { - var d = X$(Vd(f, e, r, n)); + var d = W$(Vd(f, e, r, n)); l = md(l, d + h), u += d; } } if (u) { - var p = NA(l >>> 0); + var p = MA(l >>> 0); r.hasNameForId(this.componentId, p) || r.insertRules(this.componentId, p, n(u, ".".concat(p), void 0, this.componentId)), i = Ed(i, p); } } return i; }, t; -}(), aj = Hd.createContext(void 0); -aj.Consumer; -var mE = {}, J$ = /* @__PURE__ */ new Set(); -function fbe(t, e, r) { - var n = PR(t), i = t, s = !gE(t), a = e.attrs, o = a === void 0 ? PS : a, l = e.componentId, u = l === void 0 ? function(O, S) { - var C = typeof O != "string" ? "sc" : Y$(O); - mE[C] = (mE[C] || 0) + 1; - var T = "".concat(C, "-").concat(I2e(IS + C + mE[C])); +}(), nj = Hd.createContext(void 0); +nj.Consumer; +var pE = {}, Z$ = /* @__PURE__ */ new Set(); +function ube(t, e, r) { + var n = DR(t), i = t, s = !dE(t), a = e.attrs, o = a === void 0 ? IS : a, l = e.componentId, u = l === void 0 ? function(O, S) { + var C = typeof O != "string" ? "sc" : V$(O); + pE[C] = (pE[C] || 0) + 1; + var T = "".concat(C, "-").concat(D2e(NS + C + pE[C])); return S ? "".concat(S, "-").concat(T) : T; }(e.displayName, e.parentComponentId) : l, h = e.displayName, f = h === void 0 ? function(O) { - return gE(O) ? "styled.".concat(O) : "Styled(".concat(XZ(O), ")"); - }(t) : h, d = e.displayName && e.componentId ? "".concat(Y$(e.displayName), "-").concat(e.componentId) : e.componentId || u, p = n && i.attrs ? i.attrs.concat(o).filter(Boolean) : o, g = e.shouldForwardProp; + return dE(O) ? "styled.".concat(O) : "Styled(".concat(WZ(O), ")"); + }(t) : h, d = e.displayName && e.componentId ? "".concat(V$(e.displayName), "-").concat(e.componentId) : e.componentId || u, p = n && i.attrs ? i.attrs.concat(o).filter(Boolean) : o, g = e.shouldForwardProp; if (n && i.shouldForwardProp) { var m = i.shouldForwardProp; if (e.shouldForwardProp) { @@ -1900,11 +1900,11 @@ function fbe(t, e, r) { } else g = m; } - var y = new hbe(r, d, n ? i.componentStyle : void 0); + var y = new cbe(r, d, n ? i.componentStyle : void 0); function b(O, S) { return function(C, T, L) { - var E = C.attrs, R = C.componentStyle, _ = C.defaultProps, A = C.foldedComponentIds, $ = C.styledComponentId, k = C.target, N = Hd.useContext(aj), M = $A(), I = C.shouldForwardProp || M.shouldForwardProp; - ({}).NODE_ENV !== "production" && CA($); + var E = C.attrs, R = C.componentStyle, _ = C.defaultProps, A = C.foldedComponentIds, $ = C.styledComponentId, k = C.target, N = Hd.useContext(nj), M = IA(), I = C.shouldForwardProp || M.shouldForwardProp; + ({}).NODE_ENV !== "production" && SA($); var D = function(G, ee, Q) { for (var ne, ie = Ra(Ra({}, ee), { className: void 0, theme: Q }), U = 0; U < G.length; U += 1) { var Z = Cg(ne = G[U]) ? ne(ie) : ne; @@ -1912,16 +1912,16 @@ function fbe(t, e, r) { ie[W] = W === "className" ? Ed(ie[W], Z[W]) : W === "style" ? Ra(Ra({}, ie[W]), Z[W]) : Z[W]; } return ee.className && (ie.className = Ed(ie.className, ee.className)), ie; - }(E, T, R2e(T, N, _) || Tg), P = D.as || k, F = {}; + }(E, T, A2e(T, N, _) || Tg), P = D.as || k, F = {}; for (var B in D) - D[B] === void 0 || B[0] === "$" || B === "as" || B === "theme" || (B === "forwardedAs" ? F.as = D.forwardedAs : I && !I(B, P) || (F[B] = D[B], I || {}.NODE_ENV !== "development" || Eye(B) || J$.has(B) || !DA.has(P) || (J$.add(B), console.warn('styled-components: it looks like an unknown prop "'.concat(B, '" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)'))))); + D[B] === void 0 || B[0] === "$" || B === "as" || B === "theme" || (B === "forwardedAs" ? F.as = D.forwardedAs : I && !I(B, P) || (F[B] = D[B], I || {}.NODE_ENV !== "development" || Tye(B) || Z$.has(B) || !RA.has(P) || (Z$.add(B), console.warn('styled-components: it looks like an unknown prop "'.concat(B, '" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)'))))); var V = function(G, ee) { - var Q = $A(), ne = G.generateAndInjectStyles(ee, Q.styleSheet, Q.stylis); - return {}.NODE_ENV !== "production" && CA(ne), ne; + var Q = IA(), ne = G.generateAndInjectStyles(ee, Q.styleSheet, Q.stylis); + return {}.NODE_ENV !== "production" && SA(ne), ne; }(R, D); ({}).NODE_ENV !== "production" && C.warnTooManyClasses && C.warnTooManyClasses(V); var Y = Ed(A, $); - return V && (Y += " " + V), D.className && (Y += " " + D.className), F[gE(P) && !DA.has(P) ? "class" : "className"] = Y, F.ref = L, Rl(P, F); + return V && (Y += " " + V), D.className && (Y += " " + D.className), F[dE(P) && !RA.has(P) ? "class" : "className"] = Y, F.ref = L, Rl(P, F); }(w, O, S); } b.displayName = f; @@ -1933,10 +1933,10 @@ function fbe(t, e, r) { for (var C = [], T = 1; T < arguments.length; T++) C[T - 1] = arguments[T]; for (var L = 0, E = C; L < E.length; L++) - IA(S, E[L], !0); + DA(S, E[L], !0); return S; }({}, i.defaultProps, O) : O; - } }), {}.NODE_ENV !== "production" && (L2e(f, d), w.warnTooManyClasses = function(O, S) { + } }), {}.NODE_ENV !== "production" && (_2e(f, d), w.warnTooManyClasses = function(O, S) { var C = {}, T = !1; return function(L) { if (!T && (C[L] = !0, Object.keys(C).length >= 200)) { @@ -1953,27 +1953,27 @@ Example: `), T = !0, C = {}; } }; - }(f, d)), $R(w, function() { + }(f, d)), NR(w, function() { return ".".concat(w.styledComponentId); - }), s && JZ(w, t, { attrs: !0, componentStyle: !0, displayName: !0, foldedComponentIds: !0, shouldForwardProp: !0, styledComponentId: !0, target: !0 }), w; + }), s && ZZ(w, t, { attrs: !0, componentStyle: !0, displayName: !0, foldedComponentIds: !0, shouldForwardProp: !0, styledComponentId: !0, target: !0 }), w; } -function eB(t, e) { +function j$(t, e) { for (var r = [t[0]], n = 0, i = e.length; n < i; n += 1) r.push(e[n], t[n + 1]); return r; } -var tB = function(t) { +var K$ = function(t) { return Object.assign(t, { isCss: !0 }); }; function Yv(t) { for (var e = [], r = 1; r < arguments.length; r++) e[r - 1] = arguments[r]; if (Cg(t) || Eg(t)) - return tB(Vd(eB(PS, Og([t], e, !0)))); + return K$(Vd(j$(IS, Og([t], e, !0)))); var n = t; - return e.length === 0 && n.length === 1 && typeof n[0] == "string" ? Vd(n) : tB(Vd(eB(n, e))); + return e.length === 0 && n.length === 1 && typeof n[0] == "string" ? Vd(n) : K$(Vd(j$(n, e))); } -function BA(t, e, r) { +function PA(t, e, r) { if (r === void 0 && (r = Tg), !e) throw I1(1, e); var n = function(i) { @@ -1982,16 +1982,16 @@ function BA(t, e, r) { return t(e, r, Yv.apply(void 0, Og([i], s, !1))); }; return n.attrs = function(i) { - return BA(t, e, Ra(Ra({}, r), { attrs: Array.prototype.concat(r.attrs, i).filter(Boolean) })); + return PA(t, e, Ra(Ra({}, r), { attrs: Array.prototype.concat(r.attrs, i).filter(Boolean) })); }, n.withConfig = function(i) { - return BA(t, e, Ra(Ra({}, r), i)); + return PA(t, e, Ra(Ra({}, r), i)); }, n; } -var oj = function(t) { - return BA(fbe, t); -}, er = oj; -DA.forEach(function(t) { - er[t] = oj(t); +var ij = function(t) { + return PA(ube, t); +}, er = ij; +RA.forEach(function(t) { + er[t] = ij(t); }); ({}).NODE_ENV !== "production" && typeof navigator < "u" && navigator.product === "ReactNative" && console.warn(`It looks like you've imported 'styled-components' on React Native. Perhaps you're looking to import 'styled-components/native'? @@ -2041,7 +2041,7 @@ class Dr { return new Qv(this, e); } iterRange(e, r = this.length) { - return new lj(this, e, r); + return new sj(this, e, r); } iterLines(e, r) { let n; @@ -2052,7 +2052,7 @@ class Dr { let i = this.line(e).from; n = this.iterRange(i, Math.max(i, r == this.lines + 1 ? this.length : r <= 1 ? 0 : this.line(r - 1).to)); } - return new cj(n); + return new aj(n); } toString() { return this.sliceString(0); @@ -2070,7 +2070,7 @@ class Dr { } } class jn extends Dr { - constructor(e, r = dbe(e)) { + constructor(e, r = hbe(e)) { super(), this.text = e, this.length = r; } get lines() { @@ -2083,14 +2083,14 @@ class jn extends Dr { for (let s = 0; ; s++) { let a = this.text[s], o = i + a.length; if ((r ? n : o) >= e) - return new pbe(i, o, n, a); + return new fbe(i, o, n, a); i = o + 1, n++; } } decompose(e, r, n, i) { - let s = e <= 0 && r >= this.length ? this : new jn(rB(this.text, e, r), Math.min(r, this.length) - Math.max(0, e)); + let s = e <= 0 && r >= this.length ? this : new jn(J$(this.text, e, r), Math.min(r, this.length) - Math.max(0, e)); if (i & 1) { - let a = n.pop(), o = s4(s.text, a.text.slice(), 0, s.length); + let a = n.pop(), o = i4(s.text, a.text.slice(), 0, s.length); if (o.length <= 32) n.push(new jn(o, a.length + s.length)); else { @@ -2104,7 +2104,7 @@ class jn extends Dr { if (!(n instanceof jn)) return super.replace(e, r, n); [e, r] = _g(this, e, r); - let i = s4(this.text, s4(n.text, rB(this.text, 0, e)), r), s = this.length + n.length - (r - e); + let i = i4(this.text, i4(n.text, J$(this.text, 0, e)), r), s = this.length + n.length - (r - e); return i.length <= 32 ? new jn(i, s) : hc.from(jn.split(i, []), s); } sliceString(e, r = this.length, n = ` @@ -2226,21 +2226,21 @@ class hc extends Dr { } } Dr.empty = /* @__PURE__ */ new jn([""], 0); -function dbe(t) { +function hbe(t) { let e = -1; for (let r of t) e += r.length + 1; return e; } -function s4(t, e, r = 0, n = 1e9) { +function i4(t, e, r = 0, n = 1e9) { for (let i = 0, s = 0, a = !0; s < t.length && i <= n; s++) { let o = t[s], l = i + o.length; l >= r && (l > n && (o = o.slice(0, n - i)), i < r && (o = o.slice(r - i)), a ? (e[e.length - 1] += o, a = !1) : e.push(o)), i = l + 1; } return e; } -function rB(t, e, r) { - return s4(t, [""], e, r); +function J$(t, e, r) { + return i4(t, [""], e, r); } class Qv { constructor(e, r = 1) { @@ -2273,7 +2273,7 @@ class Qv { return e < 0 && (this.nextInner(-e, -this.dir), e = this.value.length), this.nextInner(e, this.dir); } } -class lj { +class sj { constructor(e, r, n) { this.value = "", this.done = !1, this.cursor = new Qv(e, r > n ? -1 : 1), this.pos = r > n ? e.length : 0, this.from = Math.min(r, n), this.to = Math.max(r, n); } @@ -2293,7 +2293,7 @@ class lj { return this.cursor.lineBreak && this.value != ""; } } -class cj { +class aj { constructor(e) { this.inner = e, this.afterBreak = !0, this.value = "", this.done = !1; } @@ -2307,10 +2307,10 @@ class cj { } typeof Symbol < "u" && (Dr.prototype[Symbol.iterator] = function() { return this.iter(); -}, Qv.prototype[Symbol.iterator] = lj.prototype[Symbol.iterator] = cj.prototype[Symbol.iterator] = function() { +}, Qv.prototype[Symbol.iterator] = sj.prototype[Symbol.iterator] = aj.prototype[Symbol.iterator] = function() { return this; }); -class pbe { +class fbe { constructor(e, r, n, i) { this.from = e, this.to = r, this.number = n, this.text = i; } @@ -2324,31 +2324,31 @@ function _g(t, e, r) { let Wp = /* @__PURE__ */ "lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map((t) => t ? parseInt(t, 36) : 1); for (let t = 1; t < Wp.length; t++) Wp[t] += Wp[t - 1]; -function gbe(t) { +function dbe(t) { for (let e = 1; e < Wp.length; e += 2) if (Wp[e] > t) return Wp[e - 1] <= t; return !1; } -function nB(t) { +function eB(t) { return t >= 127462 && t <= 127487; } -const iB = 8205; +const tB = 8205; function ls(t, e, r = !0, n = !0) { - return (r ? uj : mbe)(t, e, n); + return (r ? oj : pbe)(t, e, n); } -function uj(t, e, r) { +function oj(t, e, r) { if (e == t.length) return e; - e && hj(t.charCodeAt(e)) && fj(t.charCodeAt(e - 1)) && e--; + e && lj(t.charCodeAt(e)) && cj(t.charCodeAt(e - 1)) && e--; let n = ss(t, e); for (e += _o(n); e < t.length; ) { let i = ss(t, e); - if (n == iB || i == iB || r && gbe(i)) + if (n == tB || i == tB || r && dbe(i)) e += _o(i), n = i; - else if (nB(i)) { + else if (eB(i)) { let s = 0, a = e - 2; - for (; a >= 0 && nB(ss(t, a)); ) + for (; a >= 0 && eB(ss(t, a)); ) s++, a -= 2; if (s % 2 == 0) break; @@ -2358,35 +2358,35 @@ function uj(t, e, r) { } return e; } -function mbe(t, e, r) { +function pbe(t, e, r) { for (; e > 0; ) { - let n = uj(t, e - 2, r); + let n = oj(t, e - 2, r); if (n < e) return n; e--; } return 0; } -function hj(t) { +function lj(t) { return t >= 56320 && t < 57344; } -function fj(t) { +function cj(t) { return t >= 55296 && t < 56320; } function ss(t, e) { let r = t.charCodeAt(e); - if (!fj(r) || e + 1 == t.length) + if (!cj(r) || e + 1 == t.length) return r; let n = t.charCodeAt(e + 1); - return hj(n) ? (r - 55296 << 10) + (n - 56320) + 65536 : r; + return lj(n) ? (r - 55296 << 10) + (n - 56320) + 65536 : r; } -function FR(t) { +function PR(t) { return t <= 65535 ? String.fromCharCode(t) : (t -= 65536, String.fromCharCode((t >> 10) + 55296, (t & 1023) + 56320)); } function _o(t) { return t < 65536 ? 1 : 2; } -const FA = /\r\n?|\n/; +const $A = /\r\n?|\n/; var Si = /* @__PURE__ */ function(t) { return t[t.Simple = 0] = "Simple", t[t.TrackDel = 1] = "TrackDel", t[t.TrackBefore = 2] = "TrackBefore", t[t.TrackAfter = 3] = "TrackAfter", t; }(Si || (Si = {})); @@ -2418,7 +2418,7 @@ class _c { } } iterChangedRanges(e, r = !1) { - zA(this, e, r); + BA(this, e, r); } get invertedDesc() { let e = []; @@ -2429,10 +2429,10 @@ class _c { return new _c(e); } composeDesc(e) { - return this.empty ? e : e.empty ? this : dj(this, e); + return this.empty ? e : e.empty ? this : uj(this, e); } mapDesc(e, r = !1) { - return e.empty ? this : VA(this, e, r); + return e.empty ? this : FA(this, e, r); } mapPos(e, r = -1, n = Si.Simple) { let i = 0, s = 0; @@ -2491,10 +2491,10 @@ class ai extends _c { apply(e) { if (this.length != e.length) throw new RangeError("Applying change set to a document with the wrong length"); - return zA(this, (r, n, i, s, a) => e = e.replace(i, i + (n - r), a), !1), e; + return BA(this, (r, n, i, s, a) => e = e.replace(i, i + (n - r), a), !1), e; } mapDesc(e, r = !1) { - return VA(this, e, r, !0); + return FA(this, e, r, !0); } invert(e) { let r = this.sections.slice(), n = []; @@ -2512,13 +2512,13 @@ class ai extends _c { return new ai(r, n); } compose(e) { - return this.empty ? e : e.empty ? this : dj(this, e, !0); + return this.empty ? e : e.empty ? this : uj(this, e, !0); } map(e, r = !1) { - return e.empty ? this : VA(this, e, r, !0); + return e.empty ? this : FA(this, e, r, !0); } iterChanges(e, r = !1) { - zA(this, e, r); + BA(this, e, r); } get desc() { return _c.create(this.sections); @@ -2578,7 +2578,7 @@ class ai extends _c { let { from: f, to: d = f, insert: p } = h; if (f > d || f < 0 || d > r) throw new RangeError(`Invalid change range ${f} to ${d} (in doc of length ${r})`); - let g = p ? typeof p == "string" ? Dr.of(p.split(n || FA)) : p : Dr.empty, m = g.length; + let g = p ? typeof p == "string" ? Dr.of(p.split(n || $A)) : p : Dr.empty, m = g.length; if (f == d && m == 0) return; f < a && l(), f > a && As(i, f - a, -1), As(i, d - f, m), Nh(s, i, g), a = d; @@ -2633,7 +2633,7 @@ function Nh(t, e, r) { t.push(r); } } -function zA(t, e, r) { +function BA(t, e, r) { let n = t.inserted; for (let i = 0, s = 0, a = 0; a < t.sections.length; ) { let o = t.sections[a++], l = t.sections[a++]; @@ -2647,7 +2647,7 @@ function zA(t, e, r) { } } } -function VA(t, e, r, n = !1) { +function FA(t, e, r, n = !1) { let i = [], s = n ? [] : null, a = new by(t), o = new by(e); for (let l = -1; ; ) if (a.ins == -1 && o.ins == -1) { @@ -2677,7 +2677,7 @@ function VA(t, e, r, n = !1) { throw new Error("Mismatched change set lengths"); } } -function dj(t, e, r = !1) { +function uj(t, e, r = !1) { let n = [], i = r ? [] : null, s = new by(t), a = new by(e); for (let o = !1; ; ) { if (s.done && a.done) @@ -2849,45 +2849,45 @@ class Ve { return new Ve(e, r); } } -function pj(t, e) { +function hj(t, e) { for (let r of t.ranges) if (r.to > e) throw new RangeError("Selection points outside of document"); } -let zR = 0; +let $R = 0; class _t { constructor(e, r, n, i, s) { - this.combine = e, this.compareInput = r, this.compare = n, this.isStatic = i, this.id = zR++, this.default = e([]), this.extensions = typeof s == "function" ? s(this) : s; + this.combine = e, this.compareInput = r, this.compare = n, this.isStatic = i, this.id = $R++, this.default = e([]), this.extensions = typeof s == "function" ? s(this) : s; } get reader() { return this; } static define(e = {}) { - return new _t(e.combine || ((r) => r), e.compareInput || ((r, n) => r === n), e.compare || (e.combine ? (r, n) => r === n : VR), !!e.static, e.enables); + return new _t(e.combine || ((r) => r), e.compareInput || ((r, n) => r === n), e.compare || (e.combine ? (r, n) => r === n : BR), !!e.static, e.enables); } of(e) { - return new a4([], this, 0, e); + return new s4([], this, 0, e); } compute(e, r) { if (this.isStatic) throw new Error("Can't compute a static facet"); - return new a4(e, this, 1, r); + return new s4(e, this, 1, r); } computeN(e, r) { if (this.isStatic) throw new Error("Can't compute a static facet"); - return new a4(e, this, 2, r); + return new s4(e, this, 2, r); } from(e, r) { return r || (r = (n) => n), this.compute([e], (n) => r(n.field(e))); } } -function VR(t, e) { +function BR(t, e) { return t == e || t.length == e.length && t.every((r, n) => r === e[n]); } -class a4 { +class s4 { constructor(e, r, n, i) { - this.dependencies = e, this.facet = r, this.type = n, this.value = i, this.id = zR++; + this.dependencies = e, this.facet = r, this.type = n, this.value = i, this.id = $R++; } dynamicSlot(e) { var r; @@ -2899,9 +2899,9 @@ class a4 { return f.values[a] = n(f), 1; }, update(f, d) { - if (l && d.docChanged || u && (d.docChanged || d.selection) || UA(f, h)) { + if (l && d.docChanged || u && (d.docChanged || d.selection) || zA(f, h)) { let p = n(f); - if (o ? !sB(p, f.values[a], i) : !i(p, f.values[a])) + if (o ? !rB(p, f.values[a], i) : !i(p, f.values[a])) return f.values[a] = p, 1; } return 0; @@ -2909,8 +2909,8 @@ class a4 { reconfigure: (f, d) => { let p, g = d.config.address[s]; if (g != null) { - let m = x5(d, g); - if (this.dependencies.every((v) => v instanceof _t ? d.facet(v) === f.facet(v) : v instanceof $n ? d.field(v, !1) == f.field(v, !1) : !0) || (o ? sB(p = n(f), m, i) : i(p = n(f), m))) + let m = b5(d, g); + if (this.dependencies.every((v) => v instanceof _t ? d.facet(v) === f.facet(v) : v instanceof $n ? d.field(v, !1) == f.field(v, !1) : !0) || (o ? rB(p = n(f), m, i) : i(p = n(f), m))) return f.values[a] = m, 0; } else p = n(f); @@ -2919,7 +2919,7 @@ class a4 { }; } } -function sB(t, e, r) { +function rB(t, e, r) { if (t.length != e.length) return !1; for (let n = 0; n < t.length; n++) @@ -2927,18 +2927,18 @@ function sB(t, e, r) { return !1; return !0; } -function UA(t, e) { +function zA(t, e) { let r = !1; for (let n of e) Wv(t, n) & 1 && (r = !0); return r; } -function vbe(t, e, r) { +function gbe(t, e, r) { let n = r.map((l) => t[l.id]), i = r.map((l) => l.type), s = n.filter((l) => !(l & 1)), a = t[e.id] >> 1; function o(l) { let u = []; for (let h = 0; h < n.length; h++) { - let f = x5(l, n[h]); + let f = b5(l, n[h]); if (i[h] == 2) for (let d of f) u.push(d); @@ -2954,31 +2954,31 @@ function vbe(t, e, r) { return l.values[a] = o(l), 1; }, update(l, u) { - if (!UA(l, s)) + if (!zA(l, s)) return 0; let h = o(l); return e.compare(h, l.values[a]) ? 0 : (l.values[a] = h, 1); }, reconfigure(l, u) { - let h = UA(l, n), f = u.config.facets[e.id], d = u.facet(e); - if (f && !h && VR(r, f)) + let h = zA(l, n), f = u.config.facets[e.id], d = u.facet(e); + if (f && !h && BR(r, f)) return l.values[a] = d, 0; let p = o(l); return e.compare(p, d) ? (l.values[a] = d, 0) : (l.values[a] = p, 1); } }; } -const aB = /* @__PURE__ */ _t.define({ static: !0 }); +const nB = /* @__PURE__ */ _t.define({ static: !0 }); class $n { constructor(e, r, n, i, s) { this.id = e, this.createF = r, this.updateF = n, this.compareF = i, this.spec = s, this.provides = void 0; } static define(e) { - let r = new $n(zR++, e.create, e.update, e.compare || ((n, i) => n === i), e); + let r = new $n($R++, e.create, e.update, e.compare || ((n, i) => n === i), e); return e.provide && (r.provides = e.provide(r)), r; } create(e) { - let r = e.facet(aB).find((n) => n.field == this); + let r = e.facet(nB).find((n) => n.field == this); return ((r == null ? void 0 : r.create) || this.createF)(e); } slot(e) { @@ -2993,7 +2993,7 @@ class $n { }; } init(e) { - return [this, aB.of({ field: this, create: e })]; + return [this, nB.of({ field: this, create: e })]; } get extension() { return this; @@ -3001,7 +3001,7 @@ class $n { } const vd = { lowest: 4, low: 3, default: 2, high: 1, highest: 0 }; function _m(t) { - return (e) => new gj(e, t); + return (e) => new fj(e, t); } const zl = { highest: /* @__PURE__ */ _m(vd.highest), @@ -3010,14 +3010,14 @@ const zl = { low: /* @__PURE__ */ _m(vd.low), lowest: /* @__PURE__ */ _m(vd.lowest) }; -class gj { +class fj { constructor(e, r) { this.inner = e, this.prec = r; } } class I0 { of(e) { - return new qA(this, e); + return new VA(this, e); } reconfigure(e) { return I0.reconfigure.of({ compartment: this, extension: e }); @@ -3026,12 +3026,12 @@ class I0 { return e.config.compartments.get(this); } } -class qA { +class VA { constructor(e, r) { this.compartment = e, this.inner = r; } } -class b5 { +class y5 { constructor(e, r, n, i, s, a) { for (this.base = e, this.compartments = r, this.dynamicSlots = n, this.address = i, this.staticValues = s, this.facets = a, this.statusTemplate = []; this.statusTemplate.length < n.length; ) this.statusTemplate.push(0); @@ -3042,7 +3042,7 @@ class b5 { } static resolve(e, r, n) { let i = [], s = /* @__PURE__ */ Object.create(null), a = /* @__PURE__ */ new Map(); - for (let d of ybe(e, r, a)) + for (let d of mbe(e, r, a)) d instanceof $n ? i.push(d) : (s[d.facet.id] || (s[d.facet.id] = [])).push(d); let o = /* @__PURE__ */ Object.create(null), l = [], u = []; for (let d of i) @@ -3051,7 +3051,7 @@ class b5 { for (let d in s) { let p = s[d], g = p[0].facet, m = h && h[d] || []; if (p.every((v) => v.type == 0)) - if (o[g.id] = l.length << 1 | 1, VR(m, p)) + if (o[g.id] = l.length << 1 | 1, BR(m, p)) l.push(n.facet(g)); else { let v = g.combine(p.map((y) => y.value)); @@ -3060,14 +3060,14 @@ class b5 { else { for (let v of p) v.type == 0 ? (o[v.id] = l.length << 1 | 1, l.push(v.value)) : (o[v.id] = u.length << 1, u.push((y) => v.dynamicSlot(y))); - o[g.id] = u.length << 1, u.push((v) => vbe(v, g, p)); + o[g.id] = u.length << 1, u.push((v) => gbe(v, g, p)); } } let f = u.map((d) => d(o)); - return new b5(e, a, f, o, l, s); + return new y5(e, a, f, o, l, s); } } -function ybe(t, e, r) { +function mbe(t, e, r) { let n = [[], [], [], [], []], i = /* @__PURE__ */ new Map(); function s(a, o) { let l = i.get(a); @@ -3075,21 +3075,21 @@ function ybe(t, e, r) { if (l <= o) return; let u = n[l].indexOf(a); - u > -1 && n[l].splice(u, 1), a instanceof qA && r.delete(a.compartment); + u > -1 && n[l].splice(u, 1), a instanceof VA && r.delete(a.compartment); } if (i.set(a, o), Array.isArray(a)) for (let u of a) s(u, o); - else if (a instanceof qA) { + else if (a instanceof VA) { if (r.has(a.compartment)) throw new RangeError("Duplicate use of compartment in extensions"); let u = e.get(a.compartment) || a.inner; r.set(a.compartment, u), s(u, o); - } else if (a instanceof gj) + } else if (a instanceof fj) s(a.inner, a.prec); else if (a instanceof $n) n[o].push(a), a.provides && s(a.provides, o); - else if (a instanceof a4) + else if (a instanceof s4) n[o].push(a), a.facet.extensions && s(a.facet.extensions, vd.default); else { let u = a.extension; @@ -3112,16 +3112,16 @@ function Wv(t, e) { let i = t.computeSlot(t, t.config.dynamicSlots[r]); return t.status[r] = 2 | i; } -function x5(t, e) { +function b5(t, e) { return e & 1 ? t.config.staticValues[e >> 1] : t.values[e >> 1]; } -const mj = /* @__PURE__ */ _t.define(), YA = /* @__PURE__ */ _t.define({ +const dj = /* @__PURE__ */ _t.define(), UA = /* @__PURE__ */ _t.define({ combine: (t) => t.some((e) => e), static: !0 -}), vj = /* @__PURE__ */ _t.define({ +}), pj = /* @__PURE__ */ _t.define({ combine: (t) => t.length ? t[0] : void 0, static: !0 -}), yj = /* @__PURE__ */ _t.define(), bj = /* @__PURE__ */ _t.define(), xj = /* @__PURE__ */ _t.define(), wj = /* @__PURE__ */ _t.define({ +}), gj = /* @__PURE__ */ _t.define(), mj = /* @__PURE__ */ _t.define(), vj = /* @__PURE__ */ _t.define(), yj = /* @__PURE__ */ _t.define({ combine: (t) => t.length ? t[0] : !1 }); class Vl { @@ -3129,15 +3129,15 @@ class Vl { this.type = e, this.value = r; } static define() { - return new bbe(); + return new vbe(); } } -class bbe { +class vbe { of(e) { return new Vl(this, e); } } -class xbe { +class ybe { constructor(e) { this.map = e; } @@ -3157,7 +3157,7 @@ class Zt { return this.type == e; } static define(e = {}) { - return new xbe(e.map || ((r) => r)); + return new ybe(e.map || ((r) => r)); } static mapEffects(e, r) { if (!e.length) @@ -3174,7 +3174,7 @@ Zt.reconfigure = /* @__PURE__ */ Zt.define(); Zt.appendConfig = /* @__PURE__ */ Zt.define(); class fi { constructor(e, r, n, i, s, a) { - this.startState = e, this.changes = r, this.selection = n, this.effects = i, this.annotations = s, this.scrollIntoView = a, this._doc = null, this._state = null, n && pj(n, r.newLength), s.some((o) => o.type == fi.time) || (this.annotations = s.concat(fi.time.of(Date.now()))); + this.startState = e, this.changes = r, this.selection = n, this.effects = i, this.annotations = s, this.scrollIntoView = a, this._doc = null, this._state = null, n && hj(n, r.newLength), s.some((o) => o.type == fi.time) || (this.annotations = s.concat(fi.time.of(Date.now()))); } static create(e, r, n, i, s, a) { return new fi(e, r, n, i, s, a); @@ -3208,7 +3208,7 @@ fi.time = /* @__PURE__ */ Vl.define(); fi.userEvent = /* @__PURE__ */ Vl.define(); fi.addToHistory = /* @__PURE__ */ Vl.define(); fi.remote = /* @__PURE__ */ Vl.define(); -function wbe(t, e) { +function bbe(t, e) { let r = []; for (let n = 0, i = 0; ; ) { let s, a; @@ -3221,7 +3221,7 @@ function wbe(t, e) { !r.length || r[r.length - 1] < s ? r.push(s, a) : r[r.length - 1] < a && (r[r.length - 1] = a); } } -function Oj(t, e, r) { +function bj(t, e, r) { var n; let i, s, a; return r ? (i = e.changes, s = ai.empty(e.changes.length), a = t.changes.compose(e.changes)) : (i = e.changes.map(t.changes), s = t.changes.mapDesc(e.changes, !0), a = t.changes.compose(i)), { @@ -3232,36 +3232,36 @@ function Oj(t, e, r) { scrollIntoView: t.scrollIntoView || e.scrollIntoView }; } -function QA(t, e, r) { +function qA(t, e, r) { let n = e.selection, i = Gp(e.annotations); return e.userEvent && (i = i.concat(fi.userEvent.of(e.userEvent))), { - changes: e.changes instanceof ai ? e.changes : ai.of(e.changes || [], r, t.facet(vj)), + changes: e.changes instanceof ai ? e.changes : ai.of(e.changes || [], r, t.facet(pj)), selection: n && (n instanceof Ve ? n : Ve.single(n.anchor, n.head)), effects: Gp(e.effects), annotations: i, scrollIntoView: !!e.scrollIntoView }; } -function kj(t, e, r) { - let n = QA(t, e.length ? e[0] : {}, t.doc.length); +function xj(t, e, r) { + let n = qA(t, e.length ? e[0] : {}, t.doc.length); e.length && e[0].filter === !1 && (r = !1); for (let s = 1; s < e.length; s++) { e[s].filter === !1 && (r = !1); let a = !!e[s].sequential; - n = Oj(n, QA(t, e[s], a ? n.changes.newLength : t.doc.length), a); + n = bj(n, qA(t, e[s], a ? n.changes.newLength : t.doc.length), a); } let i = fi.create(t, n.changes, n.selection, n.effects, n.annotations, n.scrollIntoView); - return kbe(r ? Obe(i) : i); + return wbe(r ? xbe(i) : i); } -function Obe(t) { +function xbe(t) { let e = t.startState, r = !0; - for (let i of e.facet(yj)) { + for (let i of e.facet(gj)) { let s = i(t); if (s === !1) { r = !1; break; } - Array.isArray(s) && (r = r === !0 ? s : wbe(r, s)); + Array.isArray(s) && (r = r === !0 ? s : bbe(r, s)); } if (r !== !0) { let i, s; @@ -3273,49 +3273,49 @@ function Obe(t) { } t = fi.create(e, i, t.selection && t.selection.map(s), Zt.mapEffects(t.effects, s), t.annotations, t.scrollIntoView); } - let n = e.facet(bj); + let n = e.facet(mj); for (let i = n.length - 1; i >= 0; i--) { let s = n[i](t); - s instanceof fi ? t = s : Array.isArray(s) && s.length == 1 && s[0] instanceof fi ? t = s[0] : t = kj(e, Gp(s), !1); + s instanceof fi ? t = s : Array.isArray(s) && s.length == 1 && s[0] instanceof fi ? t = s[0] : t = xj(e, Gp(s), !1); } return t; } -function kbe(t) { - let e = t.startState, r = e.facet(xj), n = t; +function wbe(t) { + let e = t.startState, r = e.facet(vj), n = t; for (let i = r.length - 1; i >= 0; i--) { let s = r[i](t); - s && Object.keys(s).length && (n = Oj(n, QA(e, s, t.changes.newLength), !0)); + s && Object.keys(s).length && (n = bj(n, qA(e, s, t.changes.newLength), !0)); } return n == t ? t : fi.create(e, t.changes, t.selection, n.effects, n.annotations, n.scrollIntoView); } -const Sbe = []; +const Obe = []; function Gp(t) { - return t == null ? Sbe : Array.isArray(t) ? t : [t]; + return t == null ? Obe : Array.isArray(t) ? t : [t]; } var Sn = /* @__PURE__ */ function(t) { return t[t.Word = 0] = "Word", t[t.Space = 1] = "Space", t[t.Other = 2] = "Other", t; }(Sn || (Sn = {})); -const Tbe = /[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/; -let WA; +const kbe = /[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/; +let YA; try { - WA = /* @__PURE__ */ new RegExp("[\\p{Alphabetic}\\p{Number}_]", "u"); + YA = /* @__PURE__ */ new RegExp("[\\p{Alphabetic}\\p{Number}_]", "u"); } catch { } -function Cbe(t) { - if (WA) - return WA.test(t); +function Sbe(t) { + if (YA) + return YA.test(t); for (let e = 0; e < t.length; e++) { let r = t[e]; - if (/\w/.test(r) || r > "\x80" && (r.toUpperCase() != r.toLowerCase() || Tbe.test(r))) + if (/\w/.test(r) || r > "\x80" && (r.toUpperCase() != r.toLowerCase() || kbe.test(r))) return !0; } return !1; } -function Ebe(t) { +function Tbe(t) { return (e) => { if (!/\S/.test(e)) return Sn.Space; - if (Cbe(e)) + if (Sbe(e)) return Sn.Word; for (let r = 0; r < t.length; r++) if (e.indexOf(t[r]) > -1) @@ -3337,18 +3337,18 @@ class dr { throw new RangeError("Field is not present in this state"); return; } - return Wv(this, n), x5(this, n); + return Wv(this, n), b5(this, n); } update(...e) { - return kj(this, e, !0); + return xj(this, e, !0); } applyTransaction(e) { let r = this.config, { base: n, compartments: i } = r; for (let o of e.effects) o.is(I0.reconfigure) ? (r && (i = /* @__PURE__ */ new Map(), r.compartments.forEach((l, u) => i.set(u, l)), r = null), i.set(o.value.compartment, o.value.extension)) : o.is(Zt.reconfigure) ? (r = null, n = o.value) : o.is(Zt.appendConfig) && (r = null, n = Gp(n).concat(o.value)); let s; - r ? s = e.startState.values.slice() : (r = b5.resolve(n, i, this), s = new dr(r, this.doc, this.selection, r.dynamicSlots.map(() => null), (l, u) => u.reconfigure(l, this), null).values); - let a = e.startState.facet(YA) ? e.newSelection : e.newSelection.asSingle(); + r ? s = e.startState.values.slice() : (r = y5.resolve(n, i, this), s = new dr(r, this.doc, this.selection, r.dynamicSlots.map(() => null), (l, u) => u.reconfigure(l, this), null).values); + let a = e.startState.facet(UA) ? e.newSelection : e.newSelection.asSingle(); new dr(r, e.newDoc, a, s, (o, l) => l.update(o, e), e); } replaceSelection(e) { @@ -3376,14 +3376,14 @@ class dr { return e instanceof ai ? e : ai.of(e, this.doc.length, this.facet(dr.lineSeparator)); } toText(e) { - return Dr.of(e.split(this.facet(dr.lineSeparator) || FA)); + return Dr.of(e.split(this.facet(dr.lineSeparator) || $A)); } sliceDoc(e = 0, r = this.doc.length) { return this.doc.sliceString(e, r, this.lineBreak); } facet(e) { let r = this.config.address[e.id]; - return r == null ? e.default : (Wv(this, r), x5(this, r)); + return r == null ? e.default : (Wv(this, r), b5(this, r)); } toJSON(e) { let r = { @@ -3415,8 +3415,8 @@ class dr { }); } static create(e = {}) { - let r = b5.resolve(e.extensions || [], /* @__PURE__ */ new Map()), n = e.doc instanceof Dr ? e.doc : Dr.of((e.doc || "").split(r.staticFacet(dr.lineSeparator) || FA)), i = e.selection ? e.selection instanceof Ve ? e.selection : Ve.single(e.selection.anchor, e.selection.head) : Ve.single(0); - return pj(i, n.length), r.staticFacet(YA) || (i = i.asSingle()), new dr(r, n, i, r.dynamicSlots.map(() => null), (s, a) => a.create(s), null); + let r = y5.resolve(e.extensions || [], /* @__PURE__ */ new Map()), n = e.doc instanceof Dr ? e.doc : Dr.of((e.doc || "").split(r.staticFacet(dr.lineSeparator) || $A)), i = e.selection ? e.selection instanceof Ve ? e.selection : Ve.single(e.selection.anchor, e.selection.head) : Ve.single(0); + return hj(i, n.length), r.staticFacet(UA) || (i = i.asSingle()), new dr(r, n, i, r.dynamicSlots.map(() => null), (s, a) => a.create(s), null); } get tabSize() { return this.facet(dr.tabSize); @@ -3426,7 +3426,7 @@ class dr { `; } get readOnly() { - return this.facet(wj); + return this.facet(yj); } phrase(e, ...r) { for (let n of this.facet(dr.phrases)) @@ -3443,13 +3443,13 @@ class dr { } languageDataAt(e, r, n = -1) { let i = []; - for (let s of this.facet(mj)) + for (let s of this.facet(dj)) for (let a of s(this, r, n)) Object.prototype.hasOwnProperty.call(a, e) && i.push(a[e]); return i; } charCategorizer(e) { - return Ebe(this.languageDataAt("wordChars", e).join("")); + return Tbe(this.languageDataAt("wordChars", e).join("")); } wordAt(e) { let { text: r, from: n, length: i } = this.doc.lineAt(e), s = this.charCategorizer(e), a = e - n, o = e - n; @@ -3468,22 +3468,22 @@ class dr { return a == o ? null : Ve.range(a + n, o + n); } } -dr.allowMultipleSelections = YA; +dr.allowMultipleSelections = UA; dr.tabSize = /* @__PURE__ */ _t.define({ combine: (t) => t.length ? t[0] : 4 }); -dr.lineSeparator = vj; -dr.readOnly = wj; +dr.lineSeparator = pj; +dr.readOnly = yj; dr.phrases = /* @__PURE__ */ _t.define({ compare(t, e) { let r = Object.keys(t), n = Object.keys(e); return r.length == n.length && r.every((i) => t[i] == e[i]); } }); -dr.languageData = mj; -dr.changeFilter = yj; -dr.transactionFilter = bj; -dr.transactionExtender = xj; +dr.languageData = dj; +dr.changeFilter = gj; +dr.transactionFilter = mj; +dr.transactionExtender = vj; I0.reconfigure = /* @__PURE__ */ Zt.define(); function Yc(t, e, r = {}) { let n = {}; @@ -3521,10 +3521,10 @@ class xy { return new xy(e, r, n); } } -function GA(t, e) { +function QA(t, e) { return t.from - e.from || t.value.startSide - e.value.startSide; } -class UR { +class FR { constructor(e, r, n, i) { this.from = e, this.to = r, this.value = n, this.maxPoint = i; } @@ -3559,7 +3559,7 @@ class UR { continue; (p - d || u.endSide - u.startSide) < 0 || (a < 0 && (a = d), u.point && (o = Math.max(o, p - d)), n.push(u), i.push(d - a), s.push(p - a)); } - return { mapped: n.length ? new UR(i, s, n, o) : null, pos: a }; + return { mapped: n.length ? new FR(i, s, n, o) : null, pos: a }; } } class Er { @@ -3588,9 +3588,9 @@ class Er { let { add: r = [], sort: n = !1, filterFrom: i = 0, filterTo: s = this.length } = e, a = e.filter; if (r.length == 0 && !a) return this; - if (n && (r = r.slice().sort(GA)), this.isEmpty) + if (n && (r = r.slice().sort(QA)), this.isEmpty) return r.length ? Er.of(r) : this; - let o = new Sj(this, null, -1).goto(0), l = 0, u = [], h = new Hi(); + let o = new wj(this, null, -1).goto(0), l = 0, u = [], h = new Hi(); for (; o.value || l < r.length; ) if (l < r.length && (o.from - r[l].from || o.startSide - r[l].value.startSide) >= 0) { let f = r[l++]; @@ -3635,8 +3635,8 @@ class Er { return wy.from(e).goto(r); } static compare(e, r, n, i, s = -1) { - let a = e.filter((f) => f.maxPoint > 0 || !f.isEmpty && f.maxPoint >= s), o = r.filter((f) => f.maxPoint > 0 || !f.isEmpty && f.maxPoint >= s), l = oB(a, o, n), u = new Am(a, l, s), h = new Am(o, l, s); - n.iterGaps((f, d, p) => lB(u, f, h, d, p, i)), n.empty && n.length == 0 && lB(u, 0, h, 0, 0, i); + let a = e.filter((f) => f.maxPoint > 0 || !f.isEmpty && f.maxPoint >= s), o = r.filter((f) => f.maxPoint > 0 || !f.isEmpty && f.maxPoint >= s), l = iB(a, o, n), u = new Am(a, l, s), h = new Am(o, l, s); + n.iterGaps((f, d, p) => sB(u, f, h, d, p, i)), n.empty && n.length == 0 && sB(u, 0, h, 0, 0, i); } static eq(e, r, n = 0, i) { i == null && (i = 1e9 - 1); @@ -3645,9 +3645,9 @@ class Er { return !1; if (!s.length) return !0; - let o = oB(s, a), l = new Am(s, o, 0).goto(n), u = new Am(a, o, 0).goto(n); + let o = iB(s, a), l = new Am(s, o, 0).goto(n), u = new Am(a, o, 0).goto(n); for (; ; ) { - if (l.to != u.to || !HA(l.active, u.active) || l.point && (!u.point || !l.point.eq(u.point))) + if (l.to != u.to || !WA(l.active, u.active) || l.point && (!u.point || !l.point.eq(u.point))) return !1; if (l.to > i) return !0; @@ -3670,18 +3670,18 @@ class Er { } static of(e, r = !1) { let n = new Hi(); - for (let i of e instanceof xy ? [e] : r ? _be(e) : e) + for (let i of e instanceof xy ? [e] : r ? Cbe(e) : e) n.add(i.from, i.to, i.value); return n.finish(); } } Er.empty = /* @__PURE__ */ new Er([], [], null, -1); -function _be(t) { +function Cbe(t) { if (t.length > 1) for (let e = t[0], r = 1; r < t.length; r++) { let n = t[r]; - if (GA(e, n) > 0) - return t.slice().sort(GA); + if (QA(e, n) > 0) + return t.slice().sort(QA); e = n; } return t; @@ -3689,7 +3689,7 @@ function _be(t) { Er.empty.nextLayer = Er.empty; class Hi { finishChunk(e) { - this.chunks.push(new UR(this.from, this.to, this.value, this.maxPoint)), this.chunkPos.push(this.chunkStart), this.chunkStart = -1, this.setMaxPoint = Math.max(this.setMaxPoint, this.maxPoint), this.maxPoint = -1, e && (this.from = [], this.to = [], this.value = []); + this.chunks.push(new FR(this.from, this.to, this.value, this.maxPoint)), this.chunkPos.push(this.chunkStart), this.chunkStart = -1, this.setMaxPoint = Math.max(this.setMaxPoint, this.maxPoint), this.maxPoint = -1, e && (this.from = [], this.to = [], this.value = []); } constructor() { this.chunks = [], this.chunkPos = [], this.chunkStart = -1, this.last = null, this.lastFrom = -1e9, this.lastTo = -1e9, this.from = [], this.to = [], this.value = [], this.maxPoint = -1, this.setMaxPoint = -1, this.nextLayer = null; @@ -3720,7 +3720,7 @@ class Hi { return this.from = null, r; } } -function oB(t, e, r) { +function iB(t, e, r) { let n = /* @__PURE__ */ new Map(); for (let s of t) for (let a = 0; a < s.chunk.length; a++) @@ -3733,7 +3733,7 @@ function oB(t, e, r) { } return i; } -class Sj { +class wj { constructor(e, r, n, i = 0) { this.layer = e, this.skip = r, this.minPoint = n, this.rank = i; } @@ -3797,7 +3797,7 @@ class wy { let i = []; for (let s = 0; s < e.length; s++) for (let a = e[s]; !a.isEmpty; a = a.nextLayer) - a.maxPoint >= n && i.push(new Sj(a, r, n, s)); + a.maxPoint >= n && i.push(new wj(a, r, n, s)); return i.length == 1 ? i[0] : new wy(i); } get startSide() { @@ -3807,14 +3807,14 @@ class wy { for (let n of this.heap) n.goto(e, r); for (let n = this.heap.length >> 1; n >= 0; n--) - vE(this.heap, n); + gE(this.heap, n); return this.next(), this; } forward(e, r) { for (let n of this.heap) n.forward(e, r); for (let n = this.heap.length >> 1; n >= 0; n--) - vE(this.heap, n); + gE(this.heap, n); (this.to - e || this.value.endSide - r) < 0 && this.next(); } next() { @@ -3822,11 +3822,11 @@ class wy { this.from = this.to = 1e9, this.value = null, this.rank = -1; else { let e = this.heap[0]; - this.from = e.from, this.to = e.to, this.value = e.value, this.rank = e.rank, e.value && e.next(), vE(this.heap, 0); + this.from = e.from, this.to = e.to, this.value = e.value, this.rank = e.rank, e.value && e.next(), gE(this.heap, 0); } } } -function vE(t, e) { +function gE(t, e) { for (let r = t[e]; ; ) { let n = (e << 1) + 1; if (n >= t.length) @@ -3850,13 +3850,13 @@ class Am { this.cursor.forward(e, r); } removeActive(e) { - uw(this.active, e), uw(this.activeTo, e), uw(this.activeRank, e), this.minActive = cB(this.active, this.activeTo); + uw(this.active, e), uw(this.activeTo, e), uw(this.activeRank, e), this.minActive = aB(this.active, this.activeTo); } addActive(e) { let r = 0, { value: n, to: i, rank: s } = this.cursor; for (; r < this.activeRank.length && this.activeRank[r] <= s; ) r++; - hw(this.active, r, n), hw(this.activeTo, r, i), hw(this.activeRank, r, s), e && hw(e, r, this.cursor.from), this.minActive = cB(this.active, this.activeTo); + hw(this.active, r, n), hw(this.activeTo, r, i), hw(this.activeRank, r, s), e && hw(e, r, this.cursor.from), this.minActive = aB(this.active, this.activeTo); } next() { let e = this.to, r = this.point; @@ -3911,17 +3911,17 @@ class Am { return r; } } -function lB(t, e, r, n, i, s) { +function sB(t, e, r, n, i, s) { t.goto(e), r.goto(n); let a = n + i, o = n, l = n - e; for (; ; ) { let u = t.to + l - r.to || t.endSide - r.endSide, h = u < 0 ? t.to + l : r.to, f = Math.min(h, a); - if (t.point || r.point ? t.point && r.point && (t.point == r.point || t.point.eq(r.point)) && HA(t.activeForPoint(t.to), r.activeForPoint(r.to)) || s.comparePoint(o, f, t.point, r.point) : f > o && !HA(t.active, r.active) && s.compareRange(o, f, t.active, r.active), h > a) + if (t.point || r.point ? t.point && r.point && (t.point == r.point || t.point.eq(r.point)) && WA(t.activeForPoint(t.to), r.activeForPoint(r.to)) || s.comparePoint(o, f, t.point, r.point) : f > o && !WA(t.active, r.active) && s.compareRange(o, f, t.active, r.active), h > a) break; o = h, u <= 0 && t.next(), u >= 0 && r.next(); } } -function HA(t, e) { +function WA(t, e) { if (t.length != e.length) return !1; for (let r = 0; r < t.length; r++) @@ -3939,7 +3939,7 @@ function hw(t, e, r) { t[n + 1] = t[n]; t[e] = r; } -function cB(t, e) { +function aB(t, e) { let r = -1, n = 1e9; for (let i = 0; i < e.length; i++) (e[i] - n || t[i].endSide - t[r].endSide) < 0 && (r = i, n = e[i]); @@ -3951,7 +3951,7 @@ function Ml(t, e, r = t.length) { t.charCodeAt(i) == 9 ? (n += e - n % e, i++) : (n++, i = ls(t, i)); return n; } -function XA(t, e, r, n) { +function GA(t, e, r, n) { for (let i = 0, s = 0; ; ) { if (s >= e) return i; @@ -3961,7 +3961,7 @@ function XA(t, e, r, n) { } return n === !0 ? -1 : t.length; } -const ZA = "\u037C", uB = typeof Symbol > "u" ? "__" + ZA : Symbol.for(ZA), jA = typeof Symbol > "u" ? "__styleSet" + Math.floor(Math.random() * 1e8) : Symbol("styleSet"), hB = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : {}; +const HA = "\u037C", oB = typeof Symbol > "u" ? "__" + HA : Symbol.for(HA), XA = typeof Symbol > "u" ? "__styleSet" + Math.floor(Math.random() * 1e8) : Symbol("styleSet"), lB = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : {}; class Pu { constructor(e, r) { this.rules = []; @@ -3998,29 +3998,29 @@ class Pu { `); } static newName() { - let e = hB[uB] || 1; - return hB[uB] = e + 1, ZA + e.toString(36); + let e = lB[oB] || 1; + return lB[oB] = e + 1, HA + e.toString(36); } static mount(e, r, n) { - let i = e[jA], s = n && n.nonce; - i ? s && i.setNonce(s) : i = new Abe(e, s), i.mount(Array.isArray(r) ? r : [r]); + let i = e[XA], s = n && n.nonce; + i ? s && i.setNonce(s) : i = new Ebe(e, s), i.mount(Array.isArray(r) ? r : [r]); } } -let fB = /* @__PURE__ */ new Map(); -class Abe { +let cB = /* @__PURE__ */ new Map(); +class Ebe { constructor(e, r) { let n = e.ownerDocument || e, i = n.defaultView; if (!e.head && e.adoptedStyleSheets && i.CSSStyleSheet) { - let s = fB.get(n); + let s = cB.get(n); if (s) - return e.adoptedStyleSheets = [s.sheet, ...e.adoptedStyleSheets], e[jA] = s; - this.sheet = new i.CSSStyleSheet(), e.adoptedStyleSheets = [this.sheet, ...e.adoptedStyleSheets], fB.set(n, this); + return e.adoptedStyleSheets = [s.sheet, ...e.adoptedStyleSheets], e[XA] = s; + this.sheet = new i.CSSStyleSheet(), e.adoptedStyleSheets = [this.sheet, ...e.adoptedStyleSheets], cB.set(n, this); } else { this.styleTag = n.createElement("style"), r && this.styleTag.setAttribute("nonce", r); let s = e.head || e; s.insertBefore(this.styleTag, s.firstChild); } - this.modules = [], e[jA] = this; + this.modules = [], e[XA] = this; } mount(e) { let r = this.sheet, n = 0, i = 0; @@ -4126,37 +4126,37 @@ var of = { 220: "|", 221: "}", 222: '"' -}, Lbe = typeof navigator < "u" && /Mac/.test(navigator.platform), Rbe = typeof navigator < "u" && /MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent); +}, _be = typeof navigator < "u" && /Mac/.test(navigator.platform), Abe = typeof navigator < "u" && /MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent); for (var as = 0; as < 10; as++) of[48 + as] = of[96 + as] = String(as); for (var as = 1; as <= 24; as++) of[as + 111] = "F" + as; for (var as = 65; as <= 90; as++) of[as] = String.fromCharCode(as + 32), Oy[as] = String.fromCharCode(as); -for (var yE in of) - Oy.hasOwnProperty(yE) || (Oy[yE] = of[yE]); -function Mbe(t) { - var e = Lbe && t.metaKey && t.shiftKey && !t.ctrlKey && !t.altKey || Rbe && t.shiftKey && t.key && t.key.length == 1 || t.key == "Unidentified", r = !e && t.key || (t.shiftKey ? Oy : of)[t.keyCode] || t.key || "Unidentified"; +for (var mE in of) + Oy.hasOwnProperty(mE) || (Oy[mE] = of[mE]); +function Lbe(t) { + var e = _be && t.metaKey && t.shiftKey && !t.ctrlKey && !t.altKey || Abe && t.shiftKey && t.key && t.key.length == 1 || t.key == "Unidentified", r = !e && t.key || (t.shiftKey ? Oy : of)[t.keyCode] || t.key || "Unidentified"; return r == "Esc" && (r = "Escape"), r == "Del" && (r = "Delete"), r == "Left" && (r = "ArrowLeft"), r == "Up" && (r = "ArrowUp"), r == "Right" && (r = "ArrowRight"), r == "Down" && (r = "ArrowDown"), r; } -function w5(t) { +function x5(t) { let e; return t.nodeType == 11 ? e = t.getSelection ? t : t.ownerDocument : e = t, e.getSelection(); } -function KA(t, e) { +function ZA(t, e) { return e ? t == e || t.contains(e.nodeType != 1 ? e.parentNode : e) : !1; } -function Dbe(t) { +function Rbe(t) { let e = t.activeElement; for (; e && e.shadowRoot; ) e = e.shadowRoot.activeElement; return e; } -function o4(t, e) { +function a4(t, e) { if (!e.anchorNode) return !1; try { - return KA(t, e.anchorNode); + return ZA(t, e.anchorNode); } catch { return !1; } @@ -4164,15 +4164,15 @@ function o4(t, e) { function ky(t) { return t.nodeType == 3 ? jd(t, 0, t.nodeValue.length).getClientRects() : t.nodeType == 1 ? t.getClientRects() : []; } -function O5(t, e, r, n) { - return r ? dB(t, e, r, n, -1) || dB(t, e, r, n, 1) : !1; +function w5(t, e, r, n) { + return r ? uB(t, e, r, n, -1) || uB(t, e, r, n, 1) : !1; } function Sy(t) { for (var e = 0; ; e++) if (t = t.previousSibling, !t) return e; } -function dB(t, e, r, n, i) { +function uB(t, e, r, n, i) { for (; ; ) { if (t == r && e == n) return !0; @@ -4194,11 +4194,11 @@ function dB(t, e, r, n, i) { function $u(t) { return t.nodeType == 3 ? t.nodeValue.length : t.childNodes.length; } -function qR(t, e) { +function zR(t, e) { let r = e ? t.left : t.right; return { left: r, right: r, top: t.top, bottom: t.bottom }; } -function Nbe(t) { +function Mbe(t) { return { left: 0, right: t.innerWidth, @@ -4206,24 +4206,24 @@ function Nbe(t) { bottom: t.innerHeight }; } -function Tj(t, e) { +function Oj(t, e) { let r = e.width / t.offsetWidth, n = e.height / t.offsetHeight; return (r > 0.995 && r < 1.005 || !isFinite(r) || Math.abs(e.width - t.offsetWidth) < 1) && (r = 1), (n > 0.995 && n < 1.005 || !isFinite(n) || Math.abs(e.height - t.offsetHeight) < 1) && (n = 1), { scaleX: r, scaleY: n }; } -function Ibe(t, e, r, n, i, s, a, o) { +function Dbe(t, e, r, n, i, s, a, o) { let l = t.ownerDocument, u = l.defaultView || window; for (let h = t, f = !1; h && !f; ) if (h.nodeType == 1) { let d, p = h == l.body, g = 1, m = 1; if (p) - d = Nbe(u); + d = Mbe(u); else { if (/^(fixed|sticky)$/.test(getComputedStyle(h).position) && (f = !0), h.scrollHeight <= h.clientHeight && h.scrollWidth <= h.clientWidth) { h = h.assignedSlot || h.parentNode; continue; } let b = h.getBoundingClientRect(); - ({ scaleX: g, scaleY: m } = Tj(h, b)), d = { + ({ scaleX: g, scaleY: m } = Oj(h, b)), d = { left: b.left, right: b.left + h.clientWidth * g, top: b.top, @@ -4265,7 +4265,7 @@ function Ibe(t, e, r, n, i, s, a, o) { else break; } -function Pbe(t) { +function Nbe(t) { let e = t.ownerDocument; for (let r = t.parentNode; r && r != e.body; ) if (r.nodeType == 1) { @@ -4278,7 +4278,7 @@ function Pbe(t) { break; return null; } -class $be { +class Ibe { constructor() { this.anchorNode = null, this.anchorOffset = 0, this.focusNode = null, this.focusOffset = 0; } @@ -4294,7 +4294,7 @@ class $be { } } let cp = null; -function Cj(t) { +function kj(t) { if (t.setActive) return t.setActive(); if (cp) @@ -4314,9 +4314,9 @@ function Cj(t) { } } } -let pB; +let hB; function jd(t, e, r = e) { - let n = pB || (pB = document.createRange()); + let n = hB || (hB = document.createRange()); return n.setEnd(t, r), n.setStart(t, e), n; } function Hp(t, e, r) { @@ -4325,7 +4325,7 @@ function Hp(t, e, r) { let s = new KeyboardEvent("keyup", n); return s.synthetic = !0, t.dispatchEvent(s), i.defaultPrevented || s.defaultPrevented; } -function Bbe(t) { +function Pbe(t) { for (; t; ) { if (t && (t.nodeType == 9 || t.nodeType == 11 && t.host)) return t; @@ -4333,11 +4333,11 @@ function Bbe(t) { } return null; } -function Ej(t) { +function Sj(t) { for (; t.attributes.length; ) t.removeAttributeNode(t.attributes[0]); } -function Fbe(t, e) { +function $be(t, e) { let r = e.focusNode, n = e.focusOffset; if (!r || e.anchorNode != r || e.anchorOffset != n) return !1; @@ -4353,7 +4353,7 @@ function Fbe(t, e) { n = Sy(r), r = r.parentNode; } } -function _j(t) { +function Tj(t) { return t.scrollTop > Math.max(1, t.scrollHeight - t.clientHeight - 4); } class Ms { @@ -4367,7 +4367,7 @@ class Ms { return new Ms(e.parentNode, Sy(e) + 1, r); } } -const YR = []; +const VR = []; class yn { constructor() { this.parent = null, this.dom = null, this.flags = 2; @@ -4406,13 +4406,13 @@ class yn { } if (s = i ? i.nextSibling : n.firstChild, r && !r.written && r.node == n && s != a.dom && (r.written = !0), a.dom.parentNode == n) for (; s && s != a.dom; ) - s = gB(s); + s = fB(s); else n.insertBefore(a.dom, s); i = a.dom; } for (s = i ? i.nextSibling : n.firstChild, s && r && r.node == n && (r.written = !0); s; ) - s = gB(s); + s = fB(s); } else if (this.flags & 1) for (let n of this.children) n.flags & 7 && (n.sync(e, r), n.flags &= -8); @@ -4489,7 +4489,7 @@ class yn { e = r; } } - replaceChildren(e, r, n = YR) { + replaceChildren(e, r, n = VR) { this.markDirty(); for (let i = e; i < r; i++) { let s = this.children[i]; @@ -4506,7 +4506,7 @@ class yn { return !1; } childCursor(e = this.length) { - return new Aj(this.children, e, this.children.length); + return new Cj(this.children, e, this.children.length); } childPos(e, r = 1) { return this.childCursor().findPos(e, r); @@ -4546,11 +4546,11 @@ class yn { } } yn.prototype.breakAfter = 0; -function gB(t) { +function fB(t) { let e = t.nextSibling; return t.parentNode.removeChild(t), e; } -class Aj { +class Cj { constructor(e, r, n) { this.children = e, this.pos = r, this.i = n, this.off = 0; } @@ -4563,7 +4563,7 @@ class Aj { } } } -function Lj(t, e, r, n, i, s, a, o, l) { +function Ej(t, e, r, n, i, s, a, o, l) { let { children: u } = t, h = u.length ? u[e] : null, f = s.length ? s[s.length - 1] : null, d = f ? f.breakAfter : a; if (!(e == n && h && !a && !d && s.length < 2 && h.merge(r, i, s.length ? f : null, r == 0, o, l))) { if (n < u.length) { @@ -4580,32 +4580,32 @@ function Lj(t, e, r, n, i, s, a, o, l) { !s.length && e && n < u.length && !u[e - 1].breakAfter && u[n].merge(0, 0, u[e - 1], !1, o, l) && e--, (e < n || s.length) && t.replaceChildren(e, n, s); } } -function Rj(t, e, r, n, i, s) { +function _j(t, e, r, n, i, s) { let a = t.childCursor(), { i: o, off: l } = a.findPos(r, 1), { i: u, off: h } = a.findPos(e, -1), f = e - r; for (let d of n) f += d.length; - t.length += f, Lj(t, u, h, o, l, n, 0, i, s); + t.length += f, Ej(t, u, h, o, l, n, 0, i, s); } -let ro = typeof navigator < "u" ? navigator : { userAgent: "", vendor: "", platform: "" }, JA = typeof document < "u" ? document : { documentElement: { style: {} } }; -const e7 = /* @__PURE__ */ /Edge\/(\d+)/.exec(ro.userAgent), Mj = /* @__PURE__ */ /MSIE \d/.test(ro.userAgent), t7 = /* @__PURE__ */ /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(ro.userAgent), $S = !!(Mj || t7 || e7), mB = !$S && /* @__PURE__ */ /gecko\/(\d+)/i.test(ro.userAgent), bE = !$S && /* @__PURE__ */ /Chrome\/(\d+)/.exec(ro.userAgent), vB = "webkitFontSmoothing" in JA.documentElement.style, Dj = !$S && /* @__PURE__ */ /Apple Computer/.test(ro.vendor), yB = Dj && (/* @__PURE__ */ /Mobile\/\w+/.test(ro.userAgent) || ro.maxTouchPoints > 2); +let ro = typeof navigator < "u" ? navigator : { userAgent: "", vendor: "", platform: "" }, jA = typeof document < "u" ? document : { documentElement: { style: {} } }; +const KA = /* @__PURE__ */ /Edge\/(\d+)/.exec(ro.userAgent), Aj = /* @__PURE__ */ /MSIE \d/.test(ro.userAgent), JA = /* @__PURE__ */ /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(ro.userAgent), PS = !!(Aj || JA || KA), dB = !PS && /* @__PURE__ */ /gecko\/(\d+)/i.test(ro.userAgent), vE = !PS && /* @__PURE__ */ /Chrome\/(\d+)/.exec(ro.userAgent), pB = "webkitFontSmoothing" in jA.documentElement.style, Lj = !PS && /* @__PURE__ */ /Apple Computer/.test(ro.vendor), gB = Lj && (/* @__PURE__ */ /Mobile\/\w+/.test(ro.userAgent) || ro.maxTouchPoints > 2); var Mt = { - mac: yB || /* @__PURE__ */ /Mac/.test(ro.platform), + mac: gB || /* @__PURE__ */ /Mac/.test(ro.platform), windows: /* @__PURE__ */ /Win/.test(ro.platform), linux: /* @__PURE__ */ /Linux|X11/.test(ro.platform), - ie: $S, - ie_version: Mj ? JA.documentMode || 6 : t7 ? +t7[1] : e7 ? +e7[1] : 0, - gecko: mB, - gecko_version: mB ? +(/* @__PURE__ */ /Firefox\/(\d+)/.exec(ro.userAgent) || [0, 0])[1] : 0, - chrome: !!bE, - chrome_version: bE ? +bE[1] : 0, - ios: yB, + ie: PS, + ie_version: Aj ? jA.documentMode || 6 : JA ? +JA[1] : KA ? +KA[1] : 0, + gecko: dB, + gecko_version: dB ? +(/* @__PURE__ */ /Firefox\/(\d+)/.exec(ro.userAgent) || [0, 0])[1] : 0, + chrome: !!vE, + chrome_version: vE ? +vE[1] : 0, + ios: gB, android: /* @__PURE__ */ /Android\b/.test(ro.userAgent), - webkit: vB, - safari: Dj, - webkit_version: vB ? +(/* @__PURE__ */ /\bAppleWebKit\/(\d+)/.exec(navigator.userAgent) || [0, 0])[1] : 0, - tabSize: JA.documentElement.style.tabSize != null ? "tab-size" : "-moz-tab-size" + webkit: pB, + safari: Lj, + webkit_version: pB ? +(/* @__PURE__ */ /\bAppleWebKit\/(\d+)/.exec(navigator.userAgent) || [0, 0])[1] : 0, + tabSize: jA.documentElement.style.tabSize != null ? "tab-size" : "-moz-tab-size" }; -const zbe = 256; +const Bbe = 256; class Bu extends yn { constructor(e) { super(), this.text = e; @@ -4623,7 +4623,7 @@ class Bu extends yn { e.nodeType == 3 && this.createDOM(e); } merge(e, r, n) { - return this.flags & 8 || n && (!(n instanceof Bu) || this.length - (r - e) + n.length > zbe || n.flags & 8) ? !1 : (this.text = this.text.slice(0, e) + (n ? n.text : "") + this.text.slice(r), this.markDirty(), !0); + return this.flags & 8 || n && (!(n instanceof Bu) || this.length - (r - e) + n.length > Bbe || n.flags & 8) ? !1 : (this.text = this.text.slice(0, e) + (n ? n.text : "") + this.text.slice(r), this.markDirty(), !0); } split(e) { let r = new Bu(this.text.slice(e)); @@ -4639,7 +4639,7 @@ class Bu extends yn { return { from: n, to: n + this.length, startDOM: this.dom, endDOM: this.dom.nextSibling }; } coordsAt(e, r) { - return Vbe(this.dom, e, r); + return Fbe(this.dom, e, r); } } class Fu extends yn { @@ -4649,7 +4649,7 @@ class Fu extends yn { i.setParent(this); } setAttrs(e) { - if (Ej(e), this.mark.class && (e.className = this.mark.class), this.mark.attrs) + if (Sj(e), this.mark.class && (e.className = this.mark.class), this.mark.attrs) for (let r in this.mark.attrs) e.setAttribute(r, this.mark.attrs[r]); return e; @@ -4664,7 +4664,7 @@ class Fu extends yn { this.dom ? this.flags & 4 && this.setAttrs(this.dom) : this.setDOM(this.setAttrs(document.createElement(this.mark.tagName))), super.sync(e, r); } merge(e, r, n, i, s, a) { - return n && (!(n instanceof Fu && n.mark.eq(this.mark)) || e && s <= 0 || r < this.length && a <= 0) ? !1 : (Rj(this, e, r, n ? n.children.slice() : [], s - 1, a - 1), this.markDirty(), !0); + return n && (!(n instanceof Fu && n.mark.eq(this.mark)) || e && s <= 0 || r < this.length && a <= 0) ? !1 : (_j(this, e, r, n ? n.children.slice() : [], s - 1, a - 1), this.markDirty(), !0); } split(e) { let r = [], n = 0, i = -1, s = 0; @@ -4676,13 +4676,13 @@ class Fu extends yn { return this.length = e, i > -1 && (this.children.length = i, this.markDirty()), new Fu(this.mark, r, a); } domAtPos(e) { - return Nj(this, e); + return Rj(this, e); } coordsAt(e, r) { - return Pj(this, e, r); + return Dj(this, e, r); } } -function Vbe(t, e, r) { +function Fbe(t, e, r) { let n = t.nodeValue.length; e > n && (e = n); let i = e, s = e, a = 0; @@ -4691,7 +4691,7 @@ function Vbe(t, e, r) { if (!o.length) return null; let l = o[(a ? a < 0 : r >= 0) ? 0 : o.length - 1]; - return Mt.safari && !a && l.width == 0 && (l = Array.prototype.find.call(o, (u) => u.width) || l), a ? qR(l, a < 0) : l || null; + return Mt.safari && !a && l.width == 0 && (l = Array.prototype.find.call(o, (u) => u.width) || l), a ? zR(l, a < 0) : l || null; } class Ih extends yn { static create(e, r, n) { @@ -4747,7 +4747,7 @@ class Ih extends yn { let a = this.side ? this.side < 0 : e > 0; for (let o = a ? i.length - 1 : 0; s = i[o], !(e > 0 ? o == 0 : o == i.length - 1 || s.top < s.bottom); o += a ? -1 : 1) ; - return qR(s, !a); + return zR(s, !a); } get isEditable() { return !1; @@ -4806,8 +4806,8 @@ class Ag extends yn { return !0; } } -Bu.prototype.children = Ih.prototype.children = Ag.prototype.children = YR; -function Nj(t, e) { +Bu.prototype.children = Ih.prototype.children = Ag.prototype.children = VR; +function Rj(t, e) { let r = t.dom, { children: n } = t, i = 0; for (let s = 0; i < n.length; i++) { let a = n[i], o = s + a.length; @@ -4831,11 +4831,11 @@ function Nj(t, e) { } return new Ms(r, 0); } -function Ij(t, e, r) { +function Mj(t, e, r) { let n, { children: i } = t; - r > 0 && e instanceof Fu && i.length && (n = i[i.length - 1]) instanceof Fu && n.mark.eq(e.mark) ? Ij(n, e.children[0], r - 1) : (i.push(e), e.setParent(t)), t.length += e.length; + r > 0 && e instanceof Fu && i.length && (n = i[i.length - 1]) instanceof Fu && n.mark.eq(e.mark) ? Mj(n, e.children[0], r - 1) : (i.push(e), e.setParent(t)), t.length += e.length; } -function Pj(t, e, r) { +function Dj(t, e, r) { let n = null, i = -1, s = null, a = -1; function o(u, h) { for (let f = 0, d = 0; f < u.children.length && d <= h; f++) { @@ -4845,25 +4845,25 @@ function Pj(t, e, r) { } o(t, e); let l = (r < 0 ? n : s) || n || s; - return l ? l.coordsAt(Math.max(0, l == n ? i : a), r) : Ube(t); + return l ? l.coordsAt(Math.max(0, l == n ? i : a), r) : zbe(t); } -function Ube(t) { +function zbe(t) { let e = t.dom.lastChild; if (!e) return t.dom.getBoundingClientRect(); let r = ky(e); return r[r.length - 1] || null; } -function r7(t, e) { +function e7(t, e) { for (let r in t) r == "class" && e.class ? e.class += " " + t.class : r == "style" && e.style ? e.style += ";" + t.style : e[r] = t[r]; return e; } -const bB = /* @__PURE__ */ Object.create(null); -function QR(t, e, r) { +const mB = /* @__PURE__ */ Object.create(null); +function UR(t, e, r) { if (t == e) return !0; - t || (t = bB), e || (e = bB); + t || (t = mB), e || (e = mB); let n = Object.keys(t), i = Object.keys(e); if (n.length - (r && n.indexOf(r) > -1 ? 1 : 0) != i.length - (r && i.indexOf(r) > -1 ? 1 : 0)) return !1; @@ -4872,7 +4872,7 @@ function QR(t, e, r) { return !1; return !0; } -function n7(t, e, r) { +function t7(t, e, r) { let n = !1; if (e) for (let i in e) @@ -4882,7 +4882,7 @@ function n7(t, e, r) { e && e[i] == r[i] || (n = !0, i == "style" ? t.style.cssText = r[i] : t.setAttribute(i, r[i])); return n; } -function qbe(t) { +function Vbe(t) { let e = /* @__PURE__ */ Object.create(null); for (let r = 0; r < t.attributes.length; r++) { let n = t.attributes[r]; @@ -4900,7 +4900,7 @@ class bi extends yn { return !1; this.dom || n.transferDOM(this); } - return i && this.setDeco(n ? n.attrs : null), Rj(this, e, r, n ? n.children.slice() : [], s, a), !0; + return i && this.setDeco(n ? n.attrs : null), _j(this, e, r, n ? n.children.slice() : [], s, a), !0; } split(e) { let r = new bi(); @@ -4918,24 +4918,24 @@ class bi extends yn { !this.dom || (this.markDirty(), e.setDOM(this.dom), e.prevAttrs = this.prevAttrs === void 0 ? this.attrs : this.prevAttrs, this.prevAttrs = void 0, this.dom = null); } setDeco(e) { - QR(this.attrs, e) || (this.dom && (this.prevAttrs = this.attrs, this.markDirty()), this.attrs = e); + UR(this.attrs, e) || (this.dom && (this.prevAttrs = this.attrs, this.markDirty()), this.attrs = e); } append(e, r) { - Ij(this, e, r); + Mj(this, e, r); } addLineDeco(e) { let r = e.spec.attributes, n = e.spec.class; - r && (this.attrs = r7(r, this.attrs || {})), n && (this.attrs = r7({ class: n }, this.attrs || {})); + r && (this.attrs = e7(r, this.attrs || {})), n && (this.attrs = e7({ class: n }, this.attrs || {})); } domAtPos(e) { - return Nj(this, e); + return Rj(this, e); } reuseDOM(e) { e.nodeName == "DIV" && (this.setDOM(e), this.flags |= 6); } sync(e, r) { var n; - this.dom ? this.flags & 4 && (Ej(this.dom), this.dom.className = "cm-line", this.prevAttrs = this.attrs ? null : void 0) : (this.setDOM(document.createElement("div")), this.dom.className = "cm-line", this.prevAttrs = this.attrs ? null : void 0), this.prevAttrs !== void 0 && (n7(this.dom, this.prevAttrs, this.attrs), this.dom.classList.add("cm-line"), this.prevAttrs = void 0), super.sync(e, r); + this.dom ? this.flags & 4 && (Sj(this.dom), this.dom.className = "cm-line", this.prevAttrs = this.attrs ? null : void 0) : (this.setDOM(document.createElement("div")), this.dom.className = "cm-line", this.prevAttrs = this.attrs ? null : void 0), this.prevAttrs !== void 0 && (t7(this.dom, this.prevAttrs, this.attrs), this.dom.classList.add("cm-line"), this.prevAttrs = void 0), super.sync(e, r); let i = this.dom.lastChild; for (; i && yn.get(i) instanceof Fu; ) i = i.lastChild; @@ -4963,7 +4963,7 @@ class bi extends yn { } : null; } coordsAt(e, r) { - let n = Pj(this, e, r); + let n = Dj(this, e, r); if (!this.children.length && n && this.parent) { let { heightOracle: i } = this.parent.view.viewState, s = n.bottom - n.top; if (Math.abs(s - i.lineHeight) < 2 && i.textHeight < s) { @@ -5010,7 +5010,7 @@ class Gh extends yn { return n.breakAfter = this.breakAfter, n; } get children() { - return YR; + return VR; } sync(e) { (!this.dom || !this.widget.updateDOM(this.dom, e)) && (this.dom && this.prevWidget && this.prevWidget.destroy(this.dom), this.prevWidget = null, this.setDOM(this.widget.toDOM(e)), this.dom.contentEditable = "false"); @@ -5097,7 +5097,7 @@ class Et extends Zd { if (e.isBlockGap) n = -5e8, i = 4e8; else { - let { start: s, end: a } = $j(e, r); + let { start: s, end: a } = Nj(e, r); n = (s ? r ? -3e8 : -1 : 5e8) - 1, i = (a ? r ? 2e8 : 1 : -6e8) + 1; } return new lf(e, n, i, r, e.widget || null, !0); @@ -5115,12 +5115,12 @@ class Et extends Zd { Et.none = Er.empty; class Qb extends Et { constructor(e) { - let { start: r, end: n } = $j(e); + let { start: r, end: n } = Nj(e); super(r ? -1 : 5e8, n ? 1 : -6e8, null, e), this.tagName = e.tagName || "span", this.class = e.class || "", this.attrs = e.attributes || null; } eq(e) { var r, n; - return this == e || e instanceof Qb && this.tagName == e.tagName && (this.class || ((r = this.attrs) === null || r === void 0 ? void 0 : r.class)) == (e.class || ((n = e.attrs) === null || n === void 0 ? void 0 : n.class)) && QR(this.attrs, e.attrs, "class"); + return this == e || e instanceof Qb && this.tagName == e.tagName && (this.class || ((r = this.attrs) === null || r === void 0 ? void 0 : r.class)) == (e.class || ((n = e.attrs) === null || n === void 0 ? void 0 : n.class)) && UR(this.attrs, e.attrs, "class"); } range(e, r = e) { if (e >= r) @@ -5134,7 +5134,7 @@ class Wb extends Et { super(-2e8, -2e8, null, e); } eq(e) { - return e instanceof Wb && this.spec.class == e.spec.class && QR(this.spec.attributes, e.spec.attributes); + return e instanceof Wb && this.spec.class == e.spec.class && UR(this.spec.attributes, e.spec.attributes); } range(e, r = e) { if (r != e) @@ -5155,7 +5155,7 @@ class lf extends Et { return this.block || !!this.widget && (this.widget.estimatedHeight >= 5 || this.widget.lineBreaks > 0); } eq(e) { - return e instanceof lf && Ybe(this.widget, e.widget) && this.block == e.block && this.startSide == e.startSide && this.endSide == e.endSide; + return e instanceof lf && Ube(this.widget, e.widget) && this.block == e.block && this.startSide == e.startSide && this.endSide == e.endSide; } range(e, r = e) { if (this.isReplace && (e > r || e == r && this.startSide > 0 && this.endSide <= 0)) @@ -5166,14 +5166,14 @@ class lf extends Et { } } lf.prototype.point = !0; -function $j(t, e = !1) { +function Nj(t, e = !1) { let { inclusiveStart: r, inclusiveEnd: n } = t; return r == null && (r = t.inclusive), n == null && (n = t.inclusive), { start: r != null ? r : e, end: n != null ? n : e }; } -function Ybe(t, e) { +function Ube(t, e) { return t == e || !!(t && e && t.compare(e)); } -function i7(t, e, r, n = 0) { +function r7(t, e, r, n = 0) { let i = r.length - 1; i >= 0 && r[i] + n >= t ? r[i] = Math.max(r[i], e) : r.push(t, e); } @@ -5228,9 +5228,9 @@ class Gv { let o = r - e; if (n instanceof lf) if (n.block) - n.startSide > 0 && !this.posCovered() && this.getLine(), this.addBlockWidget(new Gh(n.widget || new xB("div"), o, n)); + n.startSide > 0 && !this.posCovered() && this.getLine(), this.addBlockWidget(new Gh(n.widget || new vB("div"), o, n)); else { - let l = Ih.create(n.widget || new xB("span"), o, o ? 0 : n.startSide), u = this.atCursorPos && !l.isEditable && s <= i.length && (e < r || n.startSide > 0), h = !l.isEditable && (e < r || s > i.length || n.startSide <= 0), f = this.getLine(); + let l = Ih.create(n.widget || new vB("span"), o, o ? 0 : n.startSide), u = this.atCursorPos && !l.isEditable && s <= i.length && (e < r || n.startSide > 0), h = !l.isEditable && (e < r || s > i.length || n.startSide <= 0), f = this.getLine(); this.pendingBuffer == 2 && !u && !l.isEditable && (this.pendingBuffer = 0), this.flushBuffer(i), u && (f.append(fw(new Ag(1), i), s), s = i.length + Math.max(0, s - i.length)), f.append(fw(l, i), s), this.atCursorPos = h, this.pendingBuffer = h ? e < r || s > i.length ? 1 : 2 : 0, this.pendingBuffer && (this.bufferMarks = i.slice()); } else @@ -5247,7 +5247,7 @@ function fw(t, e) { t = new Fu(r, [t], t.length); return t; } -class xB extends za { +class vB extends za { constructor(e) { super(), this.tag = e; } @@ -5264,9 +5264,9 @@ class xB extends za { return !0; } } -const Bj = /* @__PURE__ */ _t.define(), Fj = /* @__PURE__ */ _t.define(), zj = /* @__PURE__ */ _t.define(), Vj = /* @__PURE__ */ _t.define(), s7 = /* @__PURE__ */ _t.define(), Uj = /* @__PURE__ */ _t.define(), qj = /* @__PURE__ */ _t.define(), Yj = /* @__PURE__ */ _t.define({ +const Ij = /* @__PURE__ */ _t.define(), Pj = /* @__PURE__ */ _t.define(), $j = /* @__PURE__ */ _t.define(), Bj = /* @__PURE__ */ _t.define(), n7 = /* @__PURE__ */ _t.define(), Fj = /* @__PURE__ */ _t.define(), zj = /* @__PURE__ */ _t.define(), Vj = /* @__PURE__ */ _t.define({ combine: (t) => t.some((e) => e) -}), Qj = /* @__PURE__ */ _t.define({ +}), Uj = /* @__PURE__ */ _t.define({ combine: (t) => t.some((e) => e) }); class Xp { @@ -5282,11 +5282,11 @@ class Xp { } const dw = /* @__PURE__ */ Zt.define({ map: (t, e) => t.map(e) }); function Bo(t, e, r) { - let n = t.facet(Vj); + let n = t.facet(Bj); n.length ? n[0](e) : window.onerror ? window.onerror(String(e), r, void 0, void 0, e) : r ? console.error(r + ":", e) : console.error(e); } -const BS = /* @__PURE__ */ _t.define({ combine: (t) => t.length ? t[0] : !0 }); -let Qbe = 0; +const $S = /* @__PURE__ */ _t.define({ combine: (t) => t.length ? t[0] : !0 }); +let qbe = 0; const dv = /* @__PURE__ */ _t.define(); class on { constructor(e, r, n, i, s) { @@ -5294,7 +5294,7 @@ class on { } static define(e, r) { const { eventHandlers: n, eventObservers: i, provide: s, decorations: a } = r || {}; - return new on(Qbe++, e, n, i, (o) => { + return new on(qbe++, e, n, i, (o) => { let l = [dv.of(o)]; return a && l.push(Ty.of((u) => { let h = u.plugin(o); @@ -5306,7 +5306,7 @@ class on { return on.define((n) => new e(n), r); } } -class xE { +class yE { constructor(e) { this.spec = e, this.mustUpdate = null, this.value = null; } @@ -5347,9 +5347,9 @@ class xE { this.spec = this.value = null; } } -const Wj = /* @__PURE__ */ _t.define(), WR = /* @__PURE__ */ _t.define(), Ty = /* @__PURE__ */ _t.define(), GR = /* @__PURE__ */ _t.define(), Gj = /* @__PURE__ */ _t.define(); -function wB(t, e, r) { - let n = t.state.facet(Gj); +const qj = /* @__PURE__ */ _t.define(), qR = /* @__PURE__ */ _t.define(), Ty = /* @__PURE__ */ _t.define(), YR = /* @__PURE__ */ _t.define(), Yj = /* @__PURE__ */ _t.define(); +function yB(t, e, r) { + let n = t.state.facet(Yj); if (!n.length) return n; let i = n.map((a) => a instanceof Function ? a(t) : a), s = []; @@ -5371,10 +5371,10 @@ function wB(t, e, r) { } }), s; } -const Hj = /* @__PURE__ */ _t.define(); -function Xj(t) { +const Qj = /* @__PURE__ */ _t.define(); +function Wj(t) { let e = 0, r = 0, n = 0, i = 0; - for (let s of t.state.facet(Hj)) { + for (let s of t.state.facet(Qj)) { let a = s(t); a && (a.left != null && (e = Math.max(e, a.left)), a.right != null && (r = Math.max(r, a.right)), a.top != null && (n = Math.max(n, a.top)), a.bottom != null && (i = Math.max(i, a.bottom))); } @@ -5418,7 +5418,7 @@ class Fo { } } } -class k5 { +class O5 { constructor(e, r, n) { this.view = e, this.state = r, this.transactions = n, this.flags = 0, this.startState = e.state, this.changes = ai.empty(this.startState.doc.length); for (let s of n) @@ -5427,7 +5427,7 @@ class k5 { this.changes.iterChangedRanges((s, a, o, l) => i.push(new Fo(s, a, o, l))), this.changedRanges = i; } static create(e, r, n) { - return new k5(e, r, n); + return new O5(e, r, n); } get viewportChanged() { return (this.flags & 4) > 0; @@ -5454,25 +5454,25 @@ class k5 { var In = /* @__PURE__ */ function(t) { return t[t.LTR = 0] = "LTR", t[t.RTL = 1] = "RTL", t; }(In || (In = {})); -const Cy = In.LTR, Zj = In.RTL; -function jj(t) { +const Cy = In.LTR, Gj = In.RTL; +function Hj(t) { let e = []; for (let r = 0; r < t.length; r++) e.push(1 << +t[r]); return e; } -const Wbe = /* @__PURE__ */ jj("88888888888888888888888888888888888666888888787833333333337888888000000000000000000000000008888880000000000000000000000000088888888888888888888888888888888888887866668888088888663380888308888800000000000000000000000800000000000000000000000000000008"), Gbe = /* @__PURE__ */ jj("4444448826627288999999999992222222222222222222222222222222222222222222222229999999999999999999994444444444644222822222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222999999949999999229989999223333333333"), a7 = /* @__PURE__ */ Object.create(null), jl = []; +const Ybe = /* @__PURE__ */ Hj("88888888888888888888888888888888888666888888787833333333337888888000000000000000000000000008888880000000000000000000000000088888888888888888888888888888888888887866668888088888663380888308888800000000000000000000000800000000000000000000000000000008"), Qbe = /* @__PURE__ */ Hj("4444448826627288999999999992222222222222222222222222222222222222222222222229999999999999999999994444444444644222822222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222999999949999999229989999223333333333"), i7 = /* @__PURE__ */ Object.create(null), jl = []; for (let t of ["()", "[]", "{}"]) { let e = /* @__PURE__ */ t.charCodeAt(0), r = /* @__PURE__ */ t.charCodeAt(1); - a7[e] = r, a7[r] = -e; + i7[e] = r, i7[r] = -e; } -function Hbe(t) { - return t <= 247 ? Wbe[t] : 1424 <= t && t <= 1524 ? 2 : 1536 <= t && t <= 1785 ? Gbe[t - 1536] : 1774 <= t && t <= 2220 ? 4 : 8192 <= t && t <= 8204 ? 256 : 64336 <= t && t <= 65023 ? 4 : 1; +function Wbe(t) { + return t <= 247 ? Ybe[t] : 1424 <= t && t <= 1524 ? 2 : 1536 <= t && t <= 1785 ? Qbe[t - 1536] : 1774 <= t && t <= 2220 ? 4 : 8192 <= t && t <= 8204 ? 256 : 64336 <= t && t <= 65023 ? 4 : 1; } -const Xbe = /[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\ufb50-\ufdff]/; +const Gbe = /[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\ufb50-\ufdff]/; class Ph { get dir() { - return this.level % 2 ? Zj : Cy; + return this.level % 2 ? Gj : Cy; } constructor(e, r, n) { this.from = e, this.to = r, this.level = n; @@ -5495,22 +5495,22 @@ class Ph { return s; } } -function Kj(t, e) { +function Xj(t, e) { if (t.length != e.length) return !1; for (let r = 0; r < t.length; r++) { let n = t[r], i = e[r]; - if (n.from != i.from || n.to != i.to || n.direction != i.direction || !Kj(n.inner, i.inner)) + if (n.from != i.from || n.to != i.to || n.direction != i.direction || !Xj(n.inner, i.inner)) return !1; } return !0; } const tn = []; -function Zbe(t, e, r, n, i) { +function Hbe(t, e, r, n, i) { for (let s = 0; s <= n.length; s++) { let a = s ? n[s - 1].to : e, o = s < n.length ? n[s].from : r, l = s ? 256 : i; for (let u = a, h = l, f = l; u < o; u++) { - let d = Hbe(t.charCodeAt(u)); + let d = Wbe(t.charCodeAt(u)); d == 512 ? d = h : d == 8 && f == 4 && (d = 16), tn[u] = d == 4 ? 2 : d, d & 7 && (f = d), h = d; } for (let u = a, h = l, f = l; u < o; u++) { @@ -5531,12 +5531,12 @@ function Zbe(t, e, r, n, i) { } } } -function jbe(t, e, r, n, i) { +function Xbe(t, e, r, n, i) { let s = i == 1 ? 2 : 1; for (let a = 0, o = 0, l = 0; a <= n.length; a++) { let u = a ? n[a - 1].to : e, h = a < n.length ? n[a].from : r; for (let f = u, d, p, g; f < h; f++) - if (p = a7[d = t.charCodeAt(f)]) + if (p = i7[d = t.charCodeAt(f)]) if (p < 0) { for (let m = o - 3; m >= 0; m -= 3) if (jl[m + 1] == -p) { @@ -5567,7 +5567,7 @@ function jbe(t, e, r, n, i) { } } } -function Kbe(t, e, r, n) { +function Zbe(t, e, r, n) { for (let i = 0, s = n; i <= r.length; i++) { let a = i ? r[i - 1].to : t, o = i < r.length ? r[i].from : e; for (let l = a; l < o; ) { @@ -5592,7 +5592,7 @@ function Kbe(t, e, r, n) { } } } -function o7(t, e, r, n, i, s, a) { +function s7(t, e, r, n, i, s, a) { let o = n % 2 ? 2 : 1; if (n % 2 == i % 2) for (let l = e, u = 0; l < r; ) { @@ -5625,7 +5625,7 @@ function o7(t, e, r, n, i, s, a) { else { m.from > l && a.push(new Ph(l, m.from, p)); let v = m.direction == Cy != !(p % 2); - l7(t, v ? n + 1 : n, i, m.inner, m.from, m.to, a), l = m.to; + a7(t, v ? n + 1 : n, i, m.inner, m.from, m.to, a), l = m.to; } g = m.to; } else { @@ -5633,7 +5633,7 @@ function o7(t, e, r, n, i, s, a) { break; g++; } - d ? o7(t, l, g, n + 1, i, d, a) : l < g && a.push(new Ph(l, g, p)), l = g; + d ? s7(t, l, g, n + 1, i, d, a) : l < g && a.push(new Ph(l, g, p)), l = g; } else for (let l = r, u = s.length; l > e; ) { @@ -5666,7 +5666,7 @@ function o7(t, e, r, n, i, s, a) { else { m.to < l && a.push(new Ph(m.to, l, p)); let v = m.direction == Cy != !(p % 2); - l7(t, v ? n + 1 : n, i, m.inner, m.from, m.to, a), l = m.from; + a7(t, v ? n + 1 : n, i, m.inner, m.from, m.to, a), l = m.from; } g = m.from; } else { @@ -5674,29 +5674,29 @@ function o7(t, e, r, n, i, s, a) { break; g--; } - d ? o7(t, g, l, n + 1, i, d, a) : g < l && a.push(new Ph(g, l, p)), l = g; + d ? s7(t, g, l, n + 1, i, d, a) : g < l && a.push(new Ph(g, l, p)), l = g; } } -function l7(t, e, r, n, i, s, a) { +function a7(t, e, r, n, i, s, a) { let o = e % 2 ? 2 : 1; - Zbe(t, i, s, n, o), jbe(t, i, s, n, o), Kbe(i, s, n, o), o7(t, i, s, e, r, n, a); + Hbe(t, i, s, n, o), Xbe(t, i, s, n, o), Zbe(i, s, n, o), s7(t, i, s, e, r, n, a); } -function Jbe(t, e, r) { +function jbe(t, e, r) { if (!t) - return [new Ph(0, 0, e == Zj ? 1 : 0)]; - if (e == Cy && !r.length && !Xbe.test(t)) - return Jj(t.length); + return [new Ph(0, 0, e == Gj ? 1 : 0)]; + if (e == Cy && !r.length && !Gbe.test(t)) + return Zj(t.length); if (r.length) for (; t.length > tn.length; ) tn[tn.length] = 256; let n = [], i = e == Cy ? 0 : 1; - return l7(t, i, i, r, 0, t.length, n), n; + return a7(t, i, i, r, 0, t.length, n), n; } -function Jj(t) { +function Zj(t) { return [new Ph(0, t, 0)]; } -let eK = ""; -function exe(t, e, r, n, i) { +let jj = ""; +function Kbe(t, e, r, n, i) { var s; let a = n.head - t.from, o = -1; if (a == 0) { @@ -5713,12 +5713,12 @@ function exe(t, e, r, n, i) { let l = e[o]; a == l.side(i, r) && (l = e[o += i ? 1 : -1], a = l.side(!i, r)); let u = i == (l.dir == r), h = ls(t.text, a, u); - if (eK = t.text.slice(Math.min(a, h), Math.max(a, h)), h > l.from && h < l.to) + if (jj = t.text.slice(Math.min(a, h), Math.max(a, h)), h > l.from && h < l.to) return Ve.cursor(h + t.from, u ? -1 : 1, l.level); let f = o == (i ? e.length - 1 : 0) ? null : e[o + (i ? 1 : -1)]; return !f && l.level != r ? Ve.cursor(i ? t.to : t.from, i ? -1 : 1, r) : f && f.level < l.level ? Ve.cursor(f.side(!i, r) + t.from, i ? 1 : -1, f.level) : Ve.cursor(h + t.from, i ? -1 : 1, l.level); } -class OB extends yn { +class bB extends yn { get length() { return this.view.state.doc.length; } @@ -5730,15 +5730,15 @@ class OB extends yn { let n = e.changedRanges; this.minWidth > 0 && n.length && (n.every(({ fromA: u, toA: h }) => h < this.minWidthFrom || u > this.minWidthTo) ? (this.minWidthFrom = e.changes.mapPos(this.minWidthFrom, 1), this.minWidthTo = e.changes.mapPos(this.minWidthTo, 1)) : this.minWidth = this.minWidthFrom = this.minWidthTo = 0); let i = -1; - this.view.inputState.composing >= 0 && (!((r = this.domChanged) === null || r === void 0) && r.newSel ? i = this.domChanged.newSel.head : !oxe(e.changes, this.hasComposition) && !e.selectionSet && (i = e.state.selection.main.head)); - let s = i > -1 ? rxe(this.view, e.changes, i) : null; + this.view.inputState.composing >= 0 && (!((r = this.domChanged) === null || r === void 0) && r.newSel ? i = this.domChanged.newSel.head : !sxe(e.changes, this.hasComposition) && !e.selectionSet && (i = e.state.selection.main.head)); + let s = i > -1 ? exe(this.view, e.changes, i) : null; if (this.domChanged = null, this.hasComposition) { this.markedForComposition.clear(); let { from: u, to: h } = this.hasComposition; n = new Fo(u, h, e.changes.mapPos(u, -1), e.changes.mapPos(h, 1)).addToSet(n.slice()); } this.hasComposition = s ? { from: s.range.fromB, to: s.range.toB } : null, (Mt.ie || Mt.chrome) && !s && e && e.state.doc.lines != e.startState.doc.lines && (this.forceSelection = !0); - let a = this.decorations, o = this.updateDeco(), l = sxe(a, o, e.changes); + let a = this.decorations, o = this.updateDeco(), l = nxe(a, o, e.changes); return n = Fo.extendWithRanges(n, l), !(this.flags & 7) && n.length == 0 ? !1 : (this.updateInner(n, e.startState.doc.length, s), e.transactions.length && (this.lastUpdate = Date.now()), !0); } updateInner(e, r, n) { @@ -5752,7 +5752,7 @@ class OB extends yn { let s = []; if (this.view.viewport.from || this.view.viewport.to < this.view.state.doc.length) for (let a of this.children) - a instanceof Gh && a.widget instanceof kB && s.push(a.dom); + a instanceof Gh && a.widget instanceof xB && s.push(a.dom); i.updateGaps(s); } updateChildren(e, r, n) { @@ -5770,7 +5770,7 @@ class OB extends yn { } else ({ content: d, breakAtStart: p, openStart: g, openEnd: m } = Gv.build(this.view.state.doc, h, f, this.decorations, this.dynamicDecorationMap)); let { i: v, off: y } = s.findPos(u, 1), { i: b, off: w } = s.findPos(l, -1); - Lj(this, b, w, v, y, d, p, g, m); + Ej(this, b, w, v, y, d, p, g, m); } n && this.fixCompositionDOM(n); } @@ -5794,26 +5794,26 @@ class OB extends yn { } updateSelection(e = !1, r = !1) { (e || !this.view.observer.selectionRange.focusNode) && this.view.observer.readSelectionRange(); - let n = this.view.root.activeElement, i = n == this.dom, s = !i && o4(this.dom, this.view.observer.selectionRange) && !(n && this.dom.contains(n)); + let n = this.view.root.activeElement, i = n == this.dom, s = !i && a4(this.dom, this.view.observer.selectionRange) && !(n && this.dom.contains(n)); if (!(i || r || s)) return; let a = this.forceSelection; this.forceSelection = !1; let o = this.view.state.selection.main, l = this.moveToLine(this.domAtPos(o.anchor)), u = o.empty ? l : this.moveToLine(this.domAtPos(o.head)); - if (Mt.gecko && o.empty && !this.hasComposition && txe(l)) { + if (Mt.gecko && o.empty && !this.hasComposition && Jbe(l)) { let f = document.createTextNode(""); this.view.observer.ignore(() => l.node.insertBefore(f, l.node.childNodes[l.offset] || null)), l = u = new Ms(f, 0), a = !0; } let h = this.view.observer.selectionRange; - (a || !h.focusNode || !O5(l.node, l.offset, h.anchorNode, h.anchorOffset) || !O5(u.node, u.offset, h.focusNode, h.focusOffset)) && (this.view.observer.ignore(() => { - Mt.android && Mt.chrome && this.dom.contains(h.focusNode) && axe(h.focusNode, this.dom) && (this.dom.blur(), this.dom.focus({ preventScroll: !0 })); - let f = w5(this.view.root); + (a || !h.focusNode || !w5(l.node, l.offset, h.anchorNode, h.anchorOffset) || !w5(u.node, u.offset, h.focusNode, h.focusOffset)) && (this.view.observer.ignore(() => { + Mt.android && Mt.chrome && this.dom.contains(h.focusNode) && ixe(h.focusNode, this.dom) && (this.dom.blur(), this.dom.focus({ preventScroll: !0 })); + let f = x5(this.view.root); if (f) if (o.empty) { if (Mt.gecko) { - let d = nxe(l.node, l.offset); + let d = txe(l.node, l.offset); if (d && d != 3) { - let p = rK(l.node, l.offset, d == 1 ? 1 : -1); + let p = Jj(l.node, l.offset, d == 1 ? 1 : -1); p && (l = new Ms(p.node, p.offset)); } } @@ -5834,7 +5834,7 @@ class OB extends yn { enforceCursorAssoc() { if (this.hasComposition) return; - let { view: e } = this, r = e.state.selection.main, n = w5(e.root), { anchorNode: i, anchorOffset: s } = e.observer.selectionRange; + let { view: e } = this, r = e.state.selection.main, n = x5(e.root), { anchorNode: i, anchorOffset: s } = e.observer.selectionRange; if (!n || !r.empty || !r.assoc || !n.modify) return; let a = bi.find(this, r.head); @@ -5967,7 +5967,7 @@ class OB extends yn { } childCursor(e = this.length) { let r = this.children.length; - return r && (e -= this.children[--r].length), new Aj(this.children, e, r); + return r && (e -= this.children[--r].length), new Cj(this.children, e, r); } computeBlockGapDeco() { let e = [], r = this.view.viewState; @@ -5976,7 +5976,7 @@ class OB extends yn { if (a > n) { let o = (r.lineBlockAt(a).bottom - r.lineBlockAt(n).top) / this.view.scaleY; e.push(Et.replace({ - widget: new kB(o), + widget: new xB(o), block: !0, inclusive: !0, isBlockGap: !0 @@ -6013,19 +6013,19 @@ class OB extends yn { right: Math.max(n.right, i.right), bottom: Math.max(n.bottom, i.bottom) }); - let s = Xj(this.view), a = { + let s = Wj(this.view), a = { left: n.left - s.left, top: n.top - s.top, right: n.right + s.right, bottom: n.bottom + s.bottom }, { offsetWidth: o, offsetHeight: l } = this.view.scrollDOM; - Ibe(this.view.scrollDOM, a, r.head < r.anchor ? -1 : 1, e.x, e.y, Math.max(Math.min(e.xMargin, o), -o), Math.max(Math.min(e.yMargin, l), -l), this.view.textDirection == In.LTR); + Dbe(this.view.scrollDOM, a, r.head < r.anchor ? -1 : 1, e.x, e.y, Math.max(Math.min(e.xMargin, o), -o), Math.max(Math.min(e.yMargin, l), -l), this.view.textDirection == In.LTR); } } -function txe(t) { +function Jbe(t) { return t.node.nodeType == 1 && t.node.firstChild && (t.offset == 0 || t.node.childNodes[t.offset - 1].contentEditable == "false") && (t.offset == t.node.childNodes.length || t.node.childNodes[t.offset].contentEditable == "false"); } -class kB extends za { +class xB extends za { constructor(e) { super(), this.height = e; } @@ -6043,15 +6043,15 @@ class kB extends za { return this.height; } } -function tK(t, e) { - let r = t.observer.selectionRange, n = r.focusNode && rK(r.focusNode, r.focusOffset, 0); +function Kj(t, e) { + let r = t.observer.selectionRange, n = r.focusNode && Jj(r.focusNode, r.focusOffset, 0); if (!n) return null; let i = e - n.offset; return { from: i, to: i + n.node.nodeValue.length, node: n.node }; } -function rxe(t, e, r) { - let n = tK(t, r); +function exe(t, e, r) { + let n = Kj(t, r); if (!n) return null; let { node: i, from: s, to: a } = n, o = i.nodeValue; @@ -6068,7 +6068,7 @@ function rxe(t, e, r) { if (f != t.contentDOM) h.push({ node: f, deco: new Qb({ inclusive: !0, - attributes: qbe(f), + attributes: Vbe(f), tagName: f.tagName.toLowerCase() }) }); else @@ -6076,7 +6076,7 @@ function rxe(t, e, r) { } } } -function rK(t, e, r) { +function Jj(t, e, r) { if (r <= 0) for (let n = t, i = e; ; ) { if (n.nodeType == 3) @@ -6097,37 +6097,37 @@ function rK(t, e, r) { } return null; } -function nxe(t, e) { +function txe(t, e) { return t.nodeType != 1 ? 0 : (e && t.childNodes[e - 1].contentEditable == "false" ? 1 : 0) | (e < t.childNodes.length && t.childNodes[e].contentEditable == "false" ? 2 : 0); } -let ixe = class { +let rxe = class { constructor() { this.changes = []; } compareRange(e, r) { - i7(e, r, this.changes); + r7(e, r, this.changes); } comparePoint(e, r) { - i7(e, r, this.changes); + r7(e, r, this.changes); } }; -function sxe(t, e, r) { - let n = new ixe(); +function nxe(t, e, r) { + let n = new rxe(); return Er.compare(t, e, r, n), n.changes; } -function axe(t, e) { +function ixe(t, e) { for (let r = t; r && r != e; r = r.assignedSlot || r.parentNode) if (r.nodeType == 1 && r.contentEditable == "false") return !0; return !1; } -function oxe(t, e) { +function sxe(t, e) { let r = !1; return e && t.iterChangedRanges((n, i) => { n < e.to && i > e.from && (r = !0); }), r; } -function lxe(t, e, r = 1) { +function axe(t, e, r = 1) { let n = t.charCategorizer(e), i = t.doc.lineAt(e), s = e - i.from; if (i.length == 0) return Ve.cursor(e); @@ -6149,50 +6149,50 @@ function lxe(t, e, r = 1) { } return Ve.range(a + i.from, o + i.from); } -function cxe(t, e) { +function oxe(t, e) { return e.left > t ? e.left - t : Math.max(0, t - e.right); } -function uxe(t, e) { +function lxe(t, e) { return e.top > t ? e.top - t : Math.max(0, t - e.bottom); } -function wE(t, e) { +function bE(t, e) { return t.top < e.bottom - 1 && t.bottom > e.top + 1; } -function SB(t, e) { +function wB(t, e) { return e < t.top ? { top: e, left: t.left, right: t.right, bottom: t.bottom } : t; } -function TB(t, e) { +function OB(t, e) { return e > t.bottom ? { top: t.top, left: t.left, right: t.right, bottom: e } : t; } -function c7(t, e, r) { +function o7(t, e, r) { let n, i, s, a, o = !1, l, u, h, f; for (let g = t.firstChild; g; g = g.nextSibling) { let m = ky(g); for (let v = 0; v < m.length; v++) { let y = m[v]; - i && wE(i, y) && (y = SB(TB(y, i.bottom), i.top)); - let b = cxe(e, y), w = uxe(r, y); + i && bE(i, y) && (y = wB(OB(y, i.bottom), i.top)); + let b = oxe(e, y), w = lxe(r, y); if (b == 0 && w == 0) - return g.nodeType == 3 ? CB(g, e, r) : c7(g, e, r); + return g.nodeType == 3 ? kB(g, e, r) : o7(g, e, r); if (!n || a > w || a == w && s > b) { n = g, i = y, s = b, a = w; let O = w ? r < y.top ? -1 : 1 : b ? e < y.left ? -1 : 1 : 0; o = !O || (O > 0 ? v < m.length - 1 : v > 0); } - b == 0 ? r > y.bottom && (!h || h.bottom < y.bottom) ? (l = g, h = y) : r < y.top && (!f || f.top > y.top) && (u = g, f = y) : h && wE(h, y) ? h = TB(h, y.bottom) : f && wE(f, y) && (f = SB(f, y.top)); + b == 0 ? r > y.bottom && (!h || h.bottom < y.bottom) ? (l = g, h = y) : r < y.top && (!f || f.top > y.top) && (u = g, f = y) : h && bE(h, y) ? h = OB(h, y.bottom) : f && bE(f, y) && (f = wB(f, y.top)); } } if (h && h.bottom >= r ? (n = l, i = h) : f && f.top <= r && (n = u, i = f), !n) return { node: t, offset: 0 }; let d = Math.max(i.left, Math.min(i.right, e)); if (n.nodeType == 3) - return CB(n, d, r); + return kB(n, d, r); if (o && n.contentEditable != "false") - return c7(n, d, r); + return o7(n, d, r); let p = Array.prototype.indexOf.call(t.childNodes, n) + (e >= (i.left + i.right) / 2 ? 1 : 0); return { node: t, offset: p }; } -function CB(t, e, r) { +function kB(t, e, r) { let n = t.nodeValue.length, i = -1, s = 1e9, a = 0; for (let o = 0; o < n; o++) { let l = jd(t, o, o + 1).getClientRects(); @@ -6212,7 +6212,7 @@ function CB(t, e, r) { } return { node: t, offset: i > -1 ? i : a > 0 ? t.nodeValue.length : 0 }; } -function nK(t, e, r, n = -1) { +function eK(t, e, r, n = -1) { var i, s; let a = t.contentDOM.getBoundingClientRect(), o = a.top + t.viewState.paddingTop, l, { docHeight: u } = t.viewState, { x: h, y: f } = e, d = f - o; if (d < 0) @@ -6228,9 +6228,9 @@ function nK(t, e, r, n = -1) { f = o + d; let p = l.from; if (p < t.viewport.from) - return t.viewport.from == 0 ? 0 : r ? null : EB(t, a, l, h, f); + return t.viewport.from == 0 ? 0 : r ? null : SB(t, a, l, h, f); if (p > t.viewport.to) - return t.viewport.to == t.state.doc.length ? t.state.doc.length : r ? null : EB(t, a, l, h, f); + return t.viewport.to == t.state.doc.length ? t.state.doc.length : r ? null : SB(t, a, l, h, f); let g = t.dom.ownerDocument, m = t.root.elementFromPoint ? t.root : g, v = m.elementFromPoint(h, f); v && !t.contentDOM.contains(v) && (v = null), v || (h = Math.max(a.left + 1, Math.min(a.right - 1, h)), v = m.elementFromPoint(h, f), v && !t.contentDOM.contains(v) && (v = null)); let y, b = -1; @@ -6240,14 +6240,14 @@ function nK(t, e, r, n = -1) { O && ({ offsetNode: y, offset: b } = O); } else if (g.caretRangeFromPoint) { let O = g.caretRangeFromPoint(h, f); - O && ({ startContainer: y, startOffset: b } = O, (!t.contentDOM.contains(y) || Mt.safari && hxe(y, b, h) || Mt.chrome && fxe(y, b, h)) && (y = void 0)); + O && ({ startContainer: y, startOffset: b } = O, (!t.contentDOM.contains(y) || Mt.safari && cxe(y, b, h) || Mt.chrome && uxe(y, b, h)) && (y = void 0)); } } if (!y || !t.docView.dom.contains(y)) { let O = bi.find(t.docView, p); if (!O) return d > l.top + l.height / 2 ? l.to : l.from; - ({ node: y, offset: b } = c7(O.dom, h, f)); + ({ node: y, offset: b } = o7(O.dom, h, f)); } let w = t.docView.nearest(y); if (!w) @@ -6258,16 +6258,16 @@ function nK(t, e, r, n = -1) { } else return w.localPosFromDOM(y, b) + w.posAtStart; } -function EB(t, e, r, n, i) { +function SB(t, e, r, n, i) { let s = Math.round((n - e.left) * t.defaultCharacterWidth); if (t.lineWrapping && r.height > t.defaultLineHeight * 1.5) { let o = t.viewState.heightOracle.textHeight, l = Math.floor((i - r.top - (t.defaultLineHeight - o) * 0.5) / o); s += l * t.viewState.heightOracle.lineLength; } let a = t.state.sliceDoc(r.from, r.to); - return r.from + XA(a, s, t.state.tabSize); + return r.from + GA(a, s, t.state.tabSize); } -function hxe(t, e, r) { +function cxe(t, e, r) { let n; if (t.nodeType != 3 || e != (n = t.nodeValue.length)) return !1; @@ -6276,7 +6276,7 @@ function hxe(t, e, r) { return !1; return jd(t, n - 1, n).getBoundingClientRect().left > r; } -function fxe(t, e, r) { +function uxe(t, e, r) { if (e != 0) return !1; for (let i = t; ; ) { @@ -6290,7 +6290,7 @@ function fxe(t, e, r) { let n = t.nodeType == 1 ? t.getBoundingClientRect() : jd(t, 0, Math.max(t.nodeValue.length, 1)).getBoundingClientRect(); return r - n.left > 5; } -function u7(t, e) { +function l7(t, e) { let r = t.lineBlockAt(e); if (Array.isArray(r.type)) { for (let n of r.type) @@ -6299,8 +6299,8 @@ function u7(t, e) { } return r; } -function dxe(t, e, r, n) { - let i = u7(t, e.head), s = !n || i.type != ia.Text || !(t.lineWrapping || i.widgetLineBreaks) ? null : t.coordsAtPos(e.assoc < 0 && e.head > i.from ? e.head - 1 : e.head); +function hxe(t, e, r, n) { + let i = l7(t, e.head), s = !n || i.type != ia.Text || !(t.lineWrapping || i.widgetLineBreaks) ? null : t.coordsAtPos(e.assoc < 0 && e.head > i.from ? e.head - 1 : e.head); if (s) { let a = t.dom.getBoundingClientRect(), o = t.textDirectionAt(i.from), l = t.posAtCoords({ x: r == (o == In.LTR) ? a.right - 1 : a.left + 1, @@ -6311,10 +6311,10 @@ function dxe(t, e, r, n) { } return Ve.cursor(r ? i.to : i.from, r ? -1 : 1); } -function _B(t, e, r, n) { +function TB(t, e, r, n) { let i = t.state.doc.lineAt(e.head), s = t.bidiSpans(i), a = t.textDirectionAt(i.from); for (let o = e, l = null; ; ) { - let u = exe(i, s, a, o, r), h = eK; + let u = Kbe(i, s, a, o, r), h = jj; if (!u) { if (i.number == (r ? t.state.doc.lines : 1)) return o; @@ -6332,14 +6332,14 @@ function _B(t, e, r, n) { o = u; } } -function pxe(t, e, r) { +function fxe(t, e, r) { let n = t.state.charCategorizer(e), i = n(r); return (s) => { let a = n(s); return i == Sn.Space && (i = a), i == a; }; } -function gxe(t, e, r, n) { +function dxe(t, e, r, n) { let i = e.head, s = r ? 1 : -1; if (i == (r ? t.state.doc.length : 0)) return Ve.cursor(i, e.assoc); @@ -6352,14 +6352,14 @@ function gxe(t, e, r, n) { } let f = l.left + a, d = n != null ? n : t.viewState.heightOracle.textHeight >> 1; for (let p = 0; ; p += 10) { - let g = o + (d + p) * s, m = nK(t, { x: f, y: g }, !1, s); + let g = o + (d + p) * s, m = eK(t, { x: f, y: g }, !1, s); if (g < l.top || g > l.bottom || (s < 0 ? m < i : m > i)) { let v = t.docView.coordsForChar(m), y = !v || g < v.top ? -1 : 1; return Ve.cursor(m, y, void 0, a); } } } -function l4(t, e, r) { +function o4(t, e, r) { for (; ; ) { let n = 0; for (let i of t) @@ -6373,19 +6373,19 @@ function l4(t, e, r) { return e; } } -function OE(t, e, r) { - let n = l4(t.state.facet(GR).map((i) => i(t)), r.from, e.head > r.from ? -1 : 1); +function xE(t, e, r) { + let n = o4(t.state.facet(YR).map((i) => i(t)), r.from, e.head > r.from ? -1 : 1); return n == r.from ? r : Ve.cursor(n, n < r.from ? 1 : -1); } -class mxe { +class pxe { setSelectionOrigin(e) { this.lastSelectionOrigin = e, this.lastSelectionTime = Date.now(); } constructor(e) { - this.view = e, this.lastKeyCode = 0, this.lastKeyTime = 0, this.lastTouchTime = 0, this.lastFocusTime = 0, this.lastScrollTop = 0, this.lastScrollLeft = 0, this.pendingIOSKey = void 0, this.lastSelectionOrigin = null, this.lastSelectionTime = 0, this.lastEscPress = 0, this.lastContextMenu = 0, this.scrollHandlers = [], this.handlers = /* @__PURE__ */ Object.create(null), this.composing = -1, this.compositionFirstChange = null, this.compositionEndedAt = 0, this.compositionPendingKey = !1, this.compositionPendingChange = !1, this.mouseSelection = null, this.draggedContent = null, this.handleEvent = this.handleEvent.bind(this), this.notifiedFocused = e.hasFocus, Mt.safari && e.contentDOM.addEventListener("input", () => null), Mt.gecko && Mxe(e.contentDOM.ownerDocument); + this.view = e, this.lastKeyCode = 0, this.lastKeyTime = 0, this.lastTouchTime = 0, this.lastFocusTime = 0, this.lastScrollTop = 0, this.lastScrollLeft = 0, this.pendingIOSKey = void 0, this.lastSelectionOrigin = null, this.lastSelectionTime = 0, this.lastEscPress = 0, this.lastContextMenu = 0, this.scrollHandlers = [], this.handlers = /* @__PURE__ */ Object.create(null), this.composing = -1, this.compositionFirstChange = null, this.compositionEndedAt = 0, this.compositionPendingKey = !1, this.compositionPendingChange = !1, this.mouseSelection = null, this.draggedContent = null, this.handleEvent = this.handleEvent.bind(this), this.notifiedFocused = e.hasFocus, Mt.safari && e.contentDOM.addEventListener("input", () => null), Mt.gecko && Lxe(e.contentDOM.ownerDocument); } handleEvent(e) { - !Sxe(this.view, e) || this.ignoreDuringComposition(e) || e.type == "keydown" && this.keydown(e) || this.runHandlers(e.type, e); + !Oxe(this.view, e) || this.ignoreDuringComposition(e) || e.type == "keydown" && this.keydown(e) || this.runHandlers(e.type, e); } runHandlers(e, r) { let n = this.handlers[e]; @@ -6403,7 +6403,7 @@ class mxe { } } ensureHandlers(e) { - let r = vxe(e), n = this.handlers, i = this.view.contentDOM; + let r = gxe(e), n = this.handlers, i = this.view.contentDOM; for (let s in r) if (s != "scroll") { let a = !r[s].handlers.length, o = n[s]; @@ -6416,10 +6416,10 @@ class mxe { keydown(e) { if (this.lastKeyCode = e.keyCode, this.lastKeyTime = Date.now(), e.keyCode == 9 && Date.now() < this.lastEscPress + 2e3) return !0; - if (e.keyCode != 27 && sK.indexOf(e.keyCode) < 0 && (this.view.inputState.lastEscPress = 0), Mt.android && Mt.chrome && !e.synthetic && (e.keyCode == 13 || e.keyCode == 8)) + if (e.keyCode != 27 && rK.indexOf(e.keyCode) < 0 && (this.view.inputState.lastEscPress = 0), Mt.android && Mt.chrome && !e.synthetic && (e.keyCode == 13 || e.keyCode == 8)) return this.view.observer.delayAndroidKey(e.key, e.keyCode), !0; let r; - return Mt.ios && !e.synthetic && !e.altKey && !e.metaKey && ((r = iK.find((n) => n.keyCode == e.keyCode)) && !e.ctrlKey || yxe.indexOf(e.key) > -1 && e.ctrlKey && !e.shiftKey) ? (this.pendingIOSKey = r || e, setTimeout(() => this.flushIOSKey(), 250), !0) : (e.keyCode != 229 && this.view.observer.forceFlush(), !1); + return Mt.ios && !e.synthetic && !e.altKey && !e.metaKey && ((r = tK.find((n) => n.keyCode == e.keyCode)) && !e.ctrlKey || mxe.indexOf(e.key) > -1 && e.ctrlKey && !e.shiftKey) ? (this.pendingIOSKey = r || e, setTimeout(() => this.flushIOSKey(), 250), !0) : (e.keyCode != 229 && this.view.observer.forceFlush(), !1); } flushIOSKey() { let e = this.pendingIOSKey; @@ -6438,7 +6438,7 @@ class mxe { this.mouseSelection && this.mouseSelection.destroy(); } } -function AB(t, e) { +function CB(t, e) { return (r, n) => { try { return e.call(t, n, r); @@ -6447,7 +6447,7 @@ function AB(t, e) { } }; } -function vxe(t) { +function gxe(t) { let e = /* @__PURE__ */ Object.create(null); function r(n) { return e[n] || (e[n] = { observers: [], handlers: [] }); @@ -6457,12 +6457,12 @@ function vxe(t) { if (i && i.domEventHandlers) for (let s in i.domEventHandlers) { let a = i.domEventHandlers[s]; - a && r(s).handlers.push(AB(n.value, a)); + a && r(s).handlers.push(CB(n.value, a)); } if (i && i.domEventObservers) for (let s in i.domEventObservers) { let a = i.domEventObservers[s]; - a && r(s).observers.push(AB(n.value, a)); + a && r(s).observers.push(CB(n.value, a)); } } for (let n in Dl) @@ -6471,23 +6471,23 @@ function vxe(t) { r(n).observers.push(Nl[n]); return e; } -const iK = [ +const tK = [ { key: "Backspace", keyCode: 8, inputType: "deleteContentBackward" }, { key: "Enter", keyCode: 13, inputType: "insertParagraph" }, { key: "Enter", keyCode: 13, inputType: "insertLineBreak" }, { key: "Delete", keyCode: 46, inputType: "deleteContentForward" } -], yxe = "dthko", sK = [16, 17, 18, 20, 91, 92, 224, 225], pw = 6; +], mxe = "dthko", rK = [16, 17, 18, 20, 91, 92, 224, 225], pw = 6; function gw(t) { return Math.max(0, t) * 0.7 + 8; } -function bxe(t, e) { +function vxe(t, e) { return Math.max(Math.abs(t.clientX - e.clientX), Math.abs(t.clientY - e.clientY)); } -class xxe { +class yxe { constructor(e, r, n, i) { - this.view = e, this.startEvent = r, this.style = n, this.mustSelect = i, this.scrollSpeed = { x: 0, y: 0 }, this.scrolling = -1, this.lastEvent = r, this.scrollParent = Pbe(e.contentDOM), this.atoms = e.state.facet(GR).map((a) => a(e)); + this.view = e, this.startEvent = r, this.style = n, this.mustSelect = i, this.scrollSpeed = { x: 0, y: 0 }, this.scrolling = -1, this.lastEvent = r, this.scrollParent = Nbe(e.contentDOM), this.atoms = e.state.facet(YR).map((a) => a(e)); let s = e.contentDOM.ownerDocument; - s.addEventListener("mousemove", this.move = this.move.bind(this)), s.addEventListener("mouseup", this.up = this.up.bind(this)), this.extend = r.shiftKey, this.multiple = e.state.facet(dr.allowMultipleSelections) && wxe(e, r), this.dragging = kxe(e, r) && cK(r) == 1 ? null : !1; + s.addEventListener("mousemove", this.move = this.move.bind(this)), s.addEventListener("mouseup", this.up = this.up.bind(this)), this.extend = r.shiftKey, this.multiple = e.state.facet(dr.allowMultipleSelections) && bxe(e, r), this.dragging = wxe(e, r) && aK(r) == 1 ? null : !1; } start(e) { this.dragging === !1 && this.select(e); @@ -6496,10 +6496,10 @@ class xxe { var r; if (e.buttons == 0) return this.destroy(); - if (this.dragging || this.dragging == null && bxe(this.startEvent, e) < 10) + if (this.dragging || this.dragging == null && vxe(this.startEvent, e) < 10) return; this.select(this.lastEvent = e); - let n = 0, i = 0, s = ((r = this.scrollParent) === null || r === void 0 ? void 0 : r.getBoundingClientRect()) || { left: 0, top: 0, right: this.view.win.innerWidth, bottom: this.view.win.innerHeight }, a = Xj(this.view); + let n = 0, i = 0, s = ((r = this.scrollParent) === null || r === void 0 ? void 0 : r.getBoundingClientRect()) || { left: 0, top: 0, right: this.view.win.innerWidth, bottom: this.view.win.innerHeight }, a = Wj(this.view); e.clientX - a.left <= s.left + pw ? n = -gw(s.left - e.clientX) : e.clientX + a.right >= s.right - pw && (n = gw(e.clientX - s.right)), e.clientY - a.top <= s.top + pw ? i = -gw(s.top - e.clientY) : e.clientY + a.bottom >= s.bottom - pw && (i = gw(e.clientY - s.bottom)), this.setScrollSpeed(n, i); } up(e) { @@ -6521,10 +6521,10 @@ class xxe { for (let n = 0; n < e.ranges.length; n++) { let i = e.ranges[n], s = null; if (i.empty) { - let a = l4(this.atoms, i.from, 0); + let a = o4(this.atoms, i.from, 0); a != i.from && (s = Ve.cursor(a, -1)); } else { - let a = l4(this.atoms, i.from, -1), o = l4(this.atoms, i.to, 1); + let a = o4(this.atoms, i.from, -1), o = o4(this.atoms, i.to, 1); (a != i.from || o != i.to) && (s = Ve.range(i.from == i.anchor ? a : o, i.from == i.head ? a : o)); } s && (r || (r = e.ranges.slice()), r[n] = s); @@ -6542,19 +6542,19 @@ class xxe { this.style.update(e) && setTimeout(() => this.select(this.lastEvent), 20); } } -function wxe(t, e) { - let r = t.state.facet(Bj); +function bxe(t, e) { + let r = t.state.facet(Ij); return r.length ? r[0](e) : Mt.mac ? e.metaKey : e.ctrlKey; } -function Oxe(t, e) { - let r = t.state.facet(Fj); +function xxe(t, e) { + let r = t.state.facet(Pj); return r.length ? r[0](e) : Mt.mac ? !e.altKey : !e.ctrlKey; } -function kxe(t, e) { +function wxe(t, e) { let { main: r } = t.state.selection; if (r.empty) return !1; - let n = w5(t.root); + let n = x5(t.root); if (!n || n.rangeCount == 0) return !0; let i = n.getRangeAt(0).getClientRects(); @@ -6565,7 +6565,7 @@ function kxe(t, e) { } return !1; } -function Sxe(t, e) { +function Oxe(t, e) { if (!e.bubbles) return !0; if (e.defaultPrevented) @@ -6575,19 +6575,19 @@ function Sxe(t, e) { return !1; return !0; } -const Dl = /* @__PURE__ */ Object.create(null), Nl = /* @__PURE__ */ Object.create(null), aK = Mt.ie && Mt.ie_version < 15 || Mt.ios && Mt.webkit_version < 604; -function Txe(t) { +const Dl = /* @__PURE__ */ Object.create(null), Nl = /* @__PURE__ */ Object.create(null), nK = Mt.ie && Mt.ie_version < 15 || Mt.ios && Mt.webkit_version < 604; +function kxe(t) { let e = t.dom.parentNode; if (!e) return; let r = e.appendChild(document.createElement("textarea")); r.style.cssText = "position: fixed; left: -10000px; top: 10px", r.focus(), setTimeout(() => { - t.focus(), r.remove(), oK(t, r.value); + t.focus(), r.remove(), iK(t, r.value); }, 50); } -function oK(t, e) { +function iK(t, e) { let { state: r } = t, n, i = 1, s = r.toText(e), a = s.lines == r.selection.ranges.length; - if (h7 != null && r.selection.ranges.every((l) => l.empty) && h7 == s.toString()) { + if (c7 != null && r.selection.ranges.every((l) => l.empty) && c7 == s.toString()) { let l = -1; n = r.changeByRange((u) => { let h = r.doc.lineAt(u.from); @@ -6627,30 +6627,30 @@ Dl.mousedown = (t, e) => { if (t.observer.flush(), t.inputState.lastTouchTime > Date.now() - 2e3) return !1; let r = null; - for (let n of t.state.facet(zj)) + for (let n of t.state.facet($j)) if (r = n(t, e), r) break; - if (!r && e.button == 0 && (r = _xe(t, e)), r) { + if (!r && e.button == 0 && (r = Cxe(t, e)), r) { let n = !t.hasFocus; - t.inputState.startMouseSelection(new xxe(t, e, r, n)), n && t.observer.ignore(() => Cj(t.contentDOM)); + t.inputState.startMouseSelection(new yxe(t, e, r, n)), n && t.observer.ignore(() => kj(t.contentDOM)); let i = t.inputState.mouseSelection; if (i) return i.start(e), i.dragging === !1; } return !1; }; -function LB(t, e, r, n) { +function EB(t, e, r, n) { if (n == 1) return Ve.cursor(e, r); if (n == 2) - return lxe(t.state, e, r); + return axe(t.state, e, r); { let i = bi.find(t.docView, e), s = t.state.doc.lineAt(i ? i.posAtEnd : e), a = i ? i.posAtStart : s.from, o = i ? i.posAtEnd : s.to; return o < t.state.doc.length && o == s.to && o++, Ve.range(a, o); } } -let lK = (t, e) => t >= e.top && t <= e.bottom, RB = (t, e, r) => lK(e, r) && t >= r.left && t <= r.right; -function Cxe(t, e, r, n) { +let sK = (t, e) => t >= e.top && t <= e.bottom, _B = (t, e, r) => sK(e, r) && t >= r.left && t <= r.right; +function Sxe(t, e, r, n) { let i = bi.find(t.docView, e); if (!i) return 1; @@ -6660,40 +6660,40 @@ function Cxe(t, e, r, n) { if (s == i.length) return -1; let a = i.coordsAt(s, -1); - if (a && RB(r, n, a)) + if (a && _B(r, n, a)) return -1; let o = i.coordsAt(s, 1); - return o && RB(r, n, o) ? 1 : a && lK(n, a) ? -1 : 1; + return o && _B(r, n, o) ? 1 : a && sK(n, a) ? -1 : 1; } -function MB(t, e) { +function AB(t, e) { let r = t.posAtCoords({ x: e.clientX, y: e.clientY }, !1); - return { pos: r, bias: Cxe(t, r, e.clientX, e.clientY) }; + return { pos: r, bias: Sxe(t, r, e.clientX, e.clientY) }; } -const Exe = Mt.ie && Mt.ie_version <= 11; -let DB = null, NB = 0, IB = 0; -function cK(t) { - if (!Exe) +const Txe = Mt.ie && Mt.ie_version <= 11; +let LB = null, RB = 0, MB = 0; +function aK(t) { + if (!Txe) return t.detail; - let e = DB, r = IB; - return DB = t, IB = Date.now(), NB = !e || r > Date.now() - 400 && Math.abs(e.clientX - t.clientX) < 2 && Math.abs(e.clientY - t.clientY) < 2 ? (NB + 1) % 3 : 1; + let e = LB, r = MB; + return LB = t, MB = Date.now(), RB = !e || r > Date.now() - 400 && Math.abs(e.clientX - t.clientX) < 2 && Math.abs(e.clientY - t.clientY) < 2 ? (RB + 1) % 3 : 1; } -function _xe(t, e) { - let r = MB(t, e), n = cK(e), i = t.state.selection; +function Cxe(t, e) { + let r = AB(t, e), n = aK(e), i = t.state.selection; return { update(s) { s.docChanged && (r.pos = s.changes.mapPos(r.pos), i = i.map(s.changes)); }, get(s, a, o) { - let l = MB(t, s), u, h = LB(t, l.pos, l.bias, n); + let l = AB(t, s), u, h = EB(t, l.pos, l.bias, n); if (r.pos != l.pos && !a) { - let f = LB(t, r.pos, r.bias, n), d = Math.min(f.from, h.from), p = Math.max(f.to, h.to); + let f = EB(t, r.pos, r.bias, n), d = Math.min(f.from, h.from), p = Math.max(f.to, h.to); h = d < h.from ? Ve.range(d, p) : Ve.range(p, d); } - return a ? i.replaceRange(i.main.extend(h.from, h.to)) : o && n == 1 && i.ranges.length > 1 && (u = Axe(i, l.pos)) ? u : o ? i.addRange(h) : Ve.create([h]); + return a ? i.replaceRange(i.main.extend(h.from, h.to)) : o && n == 1 && i.ranges.length > 1 && (u = Exe(i, l.pos)) ? u : o ? i.addRange(h) : Ve.create([h]); } }; } -function Axe(t, e) { +function Exe(t, e) { for (let r = 0; r < t.ranges.length; r++) { let { from: n, to: i } = t.ranges[r]; if (n <= e && i >= e) @@ -6714,10 +6714,10 @@ Dl.dragstart = (t, e) => { return n.mouseSelection && (n.mouseSelection.dragging = !0), n.draggedContent = r, e.dataTransfer && (e.dataTransfer.setData("Text", t.state.sliceDoc(r.from, r.to)), e.dataTransfer.effectAllowed = "copyMove"), !1; }; Dl.dragend = (t) => (t.inputState.draggedContent = null, !1); -function PB(t, e, r, n) { +function DB(t, e, r, n) { if (!r) return; - let i = t.posAtCoords({ x: e.clientX, y: e.clientY }, !1), { draggedContent: s } = t.inputState, a = n && s && Oxe(t, e) ? { from: s.from, to: s.to } : null, o = { from: i, insert: r }, l = t.state.changes(a ? [a, o] : o); + let i = t.posAtCoords({ x: e.clientX, y: e.clientY }, !1), { draggedContent: s } = t.inputState, a = n && s && xxe(t, e) ? { from: s.from, to: s.to } : null, o = { from: i, insert: r }, l = t.state.changes(a ? [a, o] : o); t.focus(), t.dispatch({ changes: l, selection: { anchor: l.mapPos(i, -1), head: l.mapPos(i, 1) }, @@ -6732,7 +6732,7 @@ Dl.drop = (t, e) => { let r = e.dataTransfer.files; if (r && r.length) { let n = Array(r.length), i = 0, s = () => { - ++i == r.length && PB(t, e, n.filter((a) => a != null).join(t.state.lineBreak), !1); + ++i == r.length && DB(t, e, n.filter((a) => a != null).join(t.state.lineBreak), !1); }; for (let a = 0; a < r.length; a++) { let o = new FileReader(); @@ -6744,7 +6744,7 @@ Dl.drop = (t, e) => { } else { let n = e.dataTransfer.getData("Text"); if (n) - return PB(t, e, n, !0), !0; + return DB(t, e, n, !0), !0; } return !1; }; @@ -6752,10 +6752,10 @@ Dl.paste = (t, e) => { if (t.state.readOnly) return !0; t.observer.flush(); - let r = aK ? null : e.clipboardData; - return r ? (oK(t, r.getData("text/plain") || r.getData("text/uri-text")), !0) : (Txe(t), !1); + let r = nK ? null : e.clipboardData; + return r ? (iK(t, r.getData("text/plain") || r.getData("text/uri-text")), !0) : (kxe(t), !1); }; -function Lxe(t, e) { +function _xe(t, e) { let r = t.dom.parentNode; if (!r) return; @@ -6764,7 +6764,7 @@ function Lxe(t, e) { n.remove(), t.focus(); }, 50); } -function Rxe(t) { +function Axe(t) { let e = [], r = [], n = !1; for (let i of t.selection.ranges) i.empty || (e.push(t.sliceDoc(i.from, i.to)), r.push(i)); @@ -6778,42 +6778,42 @@ function Rxe(t) { } return { text: e.join(t.lineBreak), ranges: r, linewise: n }; } -let h7 = null; +let c7 = null; Dl.copy = Dl.cut = (t, e) => { - let { text: r, ranges: n, linewise: i } = Rxe(t.state); + let { text: r, ranges: n, linewise: i } = Axe(t.state); if (!r && !i) return !1; - h7 = i ? r : null, e.type == "cut" && !t.state.readOnly && t.dispatch({ + c7 = i ? r : null, e.type == "cut" && !t.state.readOnly && t.dispatch({ changes: n, scrollIntoView: !0, userEvent: "delete.cut" }); - let s = aK ? null : e.clipboardData; - return s ? (s.clearData(), s.setData("text/plain", r), !0) : (Lxe(t, r), !1); + let s = nK ? null : e.clipboardData; + return s ? (s.clearData(), s.setData("text/plain", r), !0) : (_xe(t, r), !1); }; -const uK = /* @__PURE__ */ Vl.define(); -function hK(t, e) { +const oK = /* @__PURE__ */ Vl.define(); +function lK(t, e) { let r = []; - for (let n of t.facet(qj)) { + for (let n of t.facet(zj)) { let i = n(t, e); i && r.push(i); } - return r ? t.update({ effects: r, annotations: uK.of(!0) }) : null; + return r ? t.update({ effects: r, annotations: oK.of(!0) }) : null; } -function fK(t) { +function cK(t) { setTimeout(() => { let e = t.hasFocus; if (e != t.inputState.notifiedFocused) { - let r = hK(t.state, e); + let r = lK(t.state, e); r ? t.dispatch(r) : t.update([]); } }, 10); } Nl.focus = (t) => { - t.inputState.lastFocusTime = Date.now(), !t.scrollDOM.scrollTop && (t.inputState.lastScrollTop || t.inputState.lastScrollLeft) && (t.scrollDOM.scrollTop = t.inputState.lastScrollTop, t.scrollDOM.scrollLeft = t.inputState.lastScrollLeft), fK(t); + t.inputState.lastFocusTime = Date.now(), !t.scrollDOM.scrollTop && (t.inputState.lastScrollTop || t.inputState.lastScrollLeft) && (t.scrollDOM.scrollTop = t.inputState.lastScrollTop, t.scrollDOM.scrollLeft = t.inputState.lastScrollLeft), cK(t); }; Nl.blur = (t) => { - t.observer.clearSelectionRange(), fK(t); + t.observer.clearSelectionRange(), cK(t); }; Nl.compositionstart = Nl.compositionupdate = (t) => { t.inputState.compositionFirstChange == null && (t.inputState.compositionFirstChange = !0), t.inputState.composing < 0 && (t.inputState.composing = 0); @@ -6829,7 +6829,7 @@ Nl.contextmenu = (t) => { Dl.beforeinput = (t, e) => { var r; let n; - if (Mt.chrome && Mt.android && (n = iK.find((i) => i.inputType == e.inputType)) && (t.observer.delayAndroidKey(n.key, n.keyCode), n.key == "Backspace" || n.key == "Delete")) { + if (Mt.chrome && Mt.android && (n = tK.find((i) => i.inputType == e.inputType)) && (t.observer.delayAndroidKey(n.key, n.keyCode), n.key == "Backspace" || n.key == "Delete")) { let i = ((r = window.visualViewport) === null || r === void 0 ? void 0 : r.height) || 0; setTimeout(() => { var s; @@ -6838,14 +6838,14 @@ Dl.beforeinput = (t, e) => { } return !1; }; -const $B = /* @__PURE__ */ new Set(); -function Mxe(t) { - $B.has(t) || ($B.add(t), t.addEventListener("copy", () => { +const NB = /* @__PURE__ */ new Set(); +function Lxe(t) { + NB.has(t) || (NB.add(t), t.addEventListener("copy", () => { }), t.addEventListener("cut", () => { })); } -const BB = ["pre-wrap", "normal", "pre-line", "break-spaces"]; -class Dxe { +const IB = ["pre-wrap", "normal", "pre-line", "break-spaces"]; +class Rxe { constructor(e) { this.lineWrapping = e, this.doc = Dr.empty, this.heightSamples = {}, this.lineHeight = 14, this.charWidth = 7, this.textHeight = 14, this.lineLength = 30, this.heightChanged = !1; } @@ -6860,7 +6860,7 @@ class Dxe { return this.doc = e, this; } mustRefreshForWrapping(e) { - return BB.indexOf(e) > -1 != this.lineWrapping; + return IB.indexOf(e) > -1 != this.lineWrapping; } mustRefreshForHeights(e) { let r = !1; @@ -6871,7 +6871,7 @@ class Dxe { return r; } refresh(e, r, n, i, s, a) { - let o = BB.indexOf(e) > -1, l = Math.round(r) != Math.round(this.lineHeight) || this.lineWrapping != o; + let o = IB.indexOf(e) > -1, l = Math.round(r) != Math.round(this.lineHeight) || this.lineWrapping != o; if (this.lineWrapping = o, this.lineHeight = r, this.charWidth = n, this.textHeight = i, this.lineLength = s, l) { this.heightSamples = {}; for (let u = 0; u < a.length; u++) { @@ -6882,7 +6882,7 @@ class Dxe { return l; } } -class Nxe { +class Mxe { constructor(e, r) { this.from = e, this.heights = r, this.index = 0; } @@ -6917,7 +6917,7 @@ class fc { var mn = /* @__PURE__ */ function(t) { return t[t.ByPos = 0] = "ByPos", t[t.ByHeight = 1] = "ByHeight", t[t.ByPosNoHeight = 2] = "ByPosNoHeight", t; }(mn || (mn = {})); -const c4 = 1e-3; +const l4 = 1e-3; class sa { constructor(e, r, n = 2) { this.length = e, this.height = r, this.flags = n; @@ -6929,7 +6929,7 @@ class sa { this.flags = (e ? 2 : 0) | this.flags & -3; } setHeight(e, r) { - this.height != r && (Math.abs(this.height - r) > c4 && (e.heightChanged = !0), this.height = r); + this.height != r && (Math.abs(this.height - r) > l4 && (e.heightChanged = !0), this.height = r); } replace(e, r, n) { return sa.of(n); @@ -6947,7 +6947,7 @@ class sa { for (f += p.to - u, u = p.to; o > 0 && d.from <= i[o - 1].toA; ) l = i[o - 1].fromA, h = i[o - 1].fromB, o--, l < d.from && (d = s.lineAt(l, mn.ByPosNoHeight, n, 0, 0)); h += d.from - l, l = d.from; - let g = HR.build(n.setDoc(a), e, h, f); + let g = QR.build(n.setDoc(a), e, h, f); s = s.replace(l, u, g); } return s.updateHeight(n, 0); @@ -6977,11 +6977,11 @@ class sa { o && (s += o.size); } let a = 0; - return e[r - 1] == null ? (a = 1, r--) : e[r] == null && (a = 1, n++), new Ixe(sa.of(e.slice(0, r)), a, sa.of(e.slice(n))); + return e[r - 1] == null ? (a = 1, r--) : e[r] == null && (a = 1, n++), new Dxe(sa.of(e.slice(0, r)), a, sa.of(e.slice(n))); } } sa.prototype.size = 1; -class dK extends sa { +class uK extends sa { constructor(e, r, n) { super(e, r), this.deco = n; } @@ -7001,7 +7001,7 @@ class dK extends sa { return `block(${this.length})`; } } -class ja extends dK { +class ja extends uK { constructor(e, r) { super(e, r, null), this.collapsed = 0, this.widgetHeight = 0, this.breaks = 0; } @@ -7091,13 +7091,13 @@ class is extends sa { let h = e.doc.lineAt(o).length; a.length && a.push(null); let f = i.heights[i.index++]; - l == -1 ? l = f : Math.abs(f - l) >= c4 && (l = -2); + l == -1 ? l = f : Math.abs(f - l) >= l4 && (l = -2); let d = new ja(h, f); d.outdated = !1, a.push(d), o += h + 1; } o <= s && a.push(null, new is(s - o).updateHeight(e, o)); let u = sa.of(a); - return (l < 0 || Math.abs(u.height - this.height) >= c4 || Math.abs(l - this.heightMetrics(e, r).perLine) >= c4) && (e.heightChanged = !0), u; + return (l < 0 || Math.abs(u.height - this.height) >= l4 || Math.abs(l - this.heightMetrics(e, r).perLine) >= l4) && (e.heightChanged = !0), u; } else (n || this.outdated) && (this.setHeight(e, e.heightForGap(r, r + this.length)), this.outdated = !1); return this; @@ -7106,7 +7106,7 @@ class is extends sa { return `gap(${this.length})`; } } -class Ixe extends sa { +class Dxe extends sa { constructor(e, r, n) { super(e.length + r + n.length, e.height + n.height, r | (e.outdated || n.outdated ? 2 : 0)), this.left = e, this.right = n, this.size = e.size + n.size; } @@ -7144,9 +7144,9 @@ class Ixe extends sa { let a = s.length; for (let o of n) s.push(o); - if (e > 0 && FB(s, a - 1), r < this.length) { + if (e > 0 && PB(s, a - 1), r < this.length) { let o = s.length; - this.decomposeRight(r, s), FB(s, o); + this.decomposeRight(r, s), PB(s, o); } return sa.of(s); } @@ -7173,12 +7173,12 @@ class Ixe extends sa { return this.left + (this.break ? " " : "-") + this.right; } } -function FB(t, e) { +function PB(t, e) { let r, n; t[e] == null && (r = t[e - 1]) instanceof is && (n = t[e + 1]) instanceof is && t.splice(e - 1, 3, new is(r.length + 1 + n.length)); } -const Pxe = 5; -class HR { +const Nxe = 5; +class QR { constructor(e, r) { this.pos = e, this.oracle = r, this.nodes = [], this.lineStart = -1, this.lineEnd = -1, this.covering = null, this.writtenTo = e; } @@ -7197,7 +7197,7 @@ class HR { let i = n.widget ? n.widget.estimatedHeight : 0, s = n.widget ? n.widget.lineBreaks : 0; i < 0 && (i = this.oracle.lineHeight); let a = r - e; - n.block ? this.addBlock(new dK(a, i, n)) : (a || s || i >= Pxe) && this.addLineDeco(i, s, a); + n.block ? this.addBlock(new uK(a, i, n)) : (a || s || i >= Nxe) && this.addLineDeco(i, s, a); } else r > e && this.span(e, r); this.lineEnd > -1 && this.lineEnd < this.pos && (this.lineEnd = this.oracle.doc.lineAt(this.pos).to); @@ -7238,25 +7238,25 @@ class HR { return this.nodes; } static build(e, r, n, i) { - let s = new HR(n, e); + let s = new QR(n, e); return Er.spans(r, n, i, s, 0), s.finish(n); } } -function $xe(t, e, r) { - let n = new Bxe(); +function Ixe(t, e, r) { + let n = new Pxe(); return Er.compare(t, e, r, n, 0), n.changes; } -class Bxe { +class Pxe { constructor() { this.changes = []; } compareRange() { } comparePoint(e, r, n, i) { - (e < r || n && n.heightRelevant || i && i.heightRelevant) && i7(e, r, this.changes, 5); + (e < r || n && n.heightRelevant || i && i.heightRelevant) && r7(e, r, this.changes, 5); } } -function Fxe(t, e) { +function $xe(t, e) { let r = t.getBoundingClientRect(), n = t.ownerDocument, i = n.defaultView || window, s = Math.max(0, r.left), a = Math.min(i.innerWidth, r.right), o = Math.max(0, r.top), l = Math.min(i.innerHeight, r.bottom); for (let u = t.parentNode; u && u != n.body; ) if (u.nodeType == 1) { @@ -7277,7 +7277,7 @@ function Fxe(t, e) { bottom: Math.max(o, l) - (r.top + e) }; } -function zxe(t, e) { +function Bxe(t, e) { let r = t.getBoundingClientRect(); return { left: 0, @@ -7286,7 +7286,7 @@ function zxe(t, e) { bottom: r.bottom - (r.top + e) }; } -class kE { +class wE { constructor(e, r, n) { this.from = e, this.to = r, this.size = n; } @@ -7302,11 +7302,11 @@ class kE { } draw(e, r) { return Et.replace({ - widget: new Vxe(this.size * (r ? e.scaleY : e.scaleX), r) + widget: new Fxe(this.size * (r ? e.scaleY : e.scaleX), r) }).range(this.from, this.to); } } -class Vxe extends za { +class Fxe extends za { constructor(e, r) { super(), this.size = e, this.vertical = r; } @@ -7321,11 +7321,11 @@ class Vxe extends za { return this.vertical ? this.size : -1; } } -class zB { +class $B { constructor(e) { - this.state = e, this.pixelViewport = { left: 0, right: window.innerWidth, top: 0, bottom: 0 }, this.inView = !0, this.paddingTop = 0, this.paddingBottom = 0, this.contentDOMWidth = 0, this.contentDOMHeight = 0, this.editorHeight = 0, this.editorWidth = 0, this.scrollTop = 0, this.scrolledToBottom = !0, this.scaleX = 1, this.scaleY = 1, this.scrollAnchorPos = 0, this.scrollAnchorHeight = -1, this.scaler = VB, this.scrollTarget = null, this.printing = !1, this.mustMeasureContent = !0, this.defaultTextDirection = In.LTR, this.visibleRanges = [], this.mustEnforceCursorAssoc = !1; - let r = e.facet(WR).some((n) => typeof n != "function" && n.class == "cm-lineWrapping"); - this.heightOracle = new Dxe(r), this.stateDeco = e.facet(Ty).filter((n) => typeof n != "function"), this.heightMap = sa.empty().applyChanges(this.stateDeco, Dr.empty, this.heightOracle.setDoc(e.doc), [new Fo(0, 0, 0, e.doc.length)]), this.viewport = this.getViewport(0, null), this.updateViewportLines(), this.updateForViewport(), this.lineGaps = this.ensureLineGaps([]), this.lineGapDeco = Et.set(this.lineGaps.map((n) => n.draw(this, !1))), this.computeVisibleRanges(); + this.state = e, this.pixelViewport = { left: 0, right: window.innerWidth, top: 0, bottom: 0 }, this.inView = !0, this.paddingTop = 0, this.paddingBottom = 0, this.contentDOMWidth = 0, this.contentDOMHeight = 0, this.editorHeight = 0, this.editorWidth = 0, this.scrollTop = 0, this.scrolledToBottom = !0, this.scaleX = 1, this.scaleY = 1, this.scrollAnchorPos = 0, this.scrollAnchorHeight = -1, this.scaler = BB, this.scrollTarget = null, this.printing = !1, this.mustMeasureContent = !0, this.defaultTextDirection = In.LTR, this.visibleRanges = [], this.mustEnforceCursorAssoc = !1; + let r = e.facet(qR).some((n) => typeof n != "function" && n.class == "cm-lineWrapping"); + this.heightOracle = new Rxe(r), this.stateDeco = e.facet(Ty).filter((n) => typeof n != "function"), this.heightMap = sa.empty().applyChanges(this.stateDeco, Dr.empty, this.heightOracle.setDoc(e.doc), [new Fo(0, 0, 0, e.doc.length)]), this.viewport = this.getViewport(0, null), this.updateViewportLines(), this.updateForViewport(), this.lineGaps = this.ensureLineGaps([]), this.lineGapDeco = Et.set(this.lineGaps.map((n) => n.draw(this, !1))), this.computeVisibleRanges(); } updateForViewport() { let e = [this.viewport], { main: r } = this.state.selection; @@ -7336,7 +7336,7 @@ class zB { e.push(new mw(s, a)); } } - this.viewports = e.sort((n, i) => n.from - i.from), this.scaler = this.heightMap.height <= 7e6 ? VB : new Yxe(this.heightOracle, this.heightMap, this.viewports); + this.viewports = e.sort((n, i) => n.from - i.from), this.scaler = this.heightMap.height <= 7e6 ? BB : new Uxe(this.heightOracle, this.heightMap, this.viewports); } updateViewportLines() { this.viewportLines = [], this.heightMap.forEachLine(this.viewport.from, this.viewport.to, this.heightOracle.setDoc(this.state.doc), 0, 0, (e) => { @@ -7347,12 +7347,12 @@ class zB { this.state = e.state; let n = this.stateDeco; this.stateDeco = this.state.facet(Ty).filter((h) => typeof h != "function"); - let i = e.changedRanges, s = Fo.extendWithRanges(i, $xe(n, this.stateDeco, e ? e.changes : ai.empty(this.state.doc.length))), a = this.heightMap.height, o = this.scrolledToBottom ? null : this.scrollAnchorAt(this.scrollTop); + let i = e.changedRanges, s = Fo.extendWithRanges(i, Ixe(n, this.stateDeco, e ? e.changes : ai.empty(this.state.doc.length))), a = this.heightMap.height, o = this.scrolledToBottom ? null : this.scrollAnchorAt(this.scrollTop); this.heightMap = this.heightMap.applyChanges(this.stateDeco, e.startState.doc, this.heightOracle.setDoc(this.state.doc), s), this.heightMap.height != a && (e.flags |= 2), o ? (this.scrollAnchorPos = e.changes.mapPos(o.from, -1), this.scrollAnchorHeight = o.top) : (this.scrollAnchorPos = -1, this.scrollAnchorHeight = this.heightMap.height); let l = s.length ? this.mapViewport(this.viewport, e.changes) : this.viewport; (r && (r.range.head < l.from || r.range.head > l.to) || !this.viewportIsAppropriate(l)) && (l = this.getViewport(0, r)); let u = !e.changes.empty || e.flags & 2 || l.from != this.viewport.from || l.to != this.viewport.to; - this.viewport = l, this.updateForViewport(), u && this.updateViewportLines(), (this.lineGaps.length || this.viewport.to - this.viewport.from > 2e3 << 1) && this.updateLineGaps(this.ensureLineGaps(this.mapLineGaps(this.lineGaps, e.changes))), e.flags |= this.computeVisibleRanges(), r && (this.scrollTarget = r), !this.mustEnforceCursorAssoc && e.selectionSet && e.view.lineWrapping && e.state.selection.main.empty && e.state.selection.main.assoc && !e.state.facet(Qj) && (this.mustEnforceCursorAssoc = !0); + this.viewport = l, this.updateForViewport(), u && this.updateViewportLines(), (this.lineGaps.length || this.viewport.to - this.viewport.from > 2e3 << 1) && this.updateLineGaps(this.ensureLineGaps(this.mapLineGaps(this.lineGaps, e.changes))), e.flags |= this.computeVisibleRanges(), r && (this.scrollTarget = r), !this.mustEnforceCursorAssoc && e.selectionSet && e.view.lineWrapping && e.state.selection.main.empty && e.state.selection.main.assoc && !e.state.facet(Uj) && (this.mustEnforceCursorAssoc = !0); } measure(e) { let r = e.contentDOM, n = window.getComputedStyle(r), i = this.heightOracle, s = n.whiteSpace; @@ -7361,14 +7361,14 @@ class zB { this.contentDOMHeight = o.height, this.mustMeasureContent = !1; let u = 0, h = 0; if (o.width && o.height) { - let { scaleX: O, scaleY: S } = Tj(r, o); + let { scaleX: O, scaleY: S } = Oj(r, o); (this.scaleX != O || this.scaleY != S) && (this.scaleX = O, this.scaleY = S, u |= 8, a = l = !0); } let f = (parseInt(n.paddingTop) || 0) * this.scaleY, d = (parseInt(n.paddingBottom) || 0) * this.scaleY; (this.paddingTop != f || this.paddingBottom != d) && (this.paddingTop = f, this.paddingBottom = d, u |= 10), this.editorWidth != e.scrollDOM.clientWidth && (i.lineWrapping && (l = !0), this.editorWidth = e.scrollDOM.clientWidth, u |= 8); let p = e.scrollDOM.scrollTop * this.scaleY; - this.scrollTop != p && (this.scrollAnchorHeight = -1, this.scrollTop = p), this.scrolledToBottom = _j(e.scrollDOM); - let g = (this.printing ? zxe : Fxe)(r, this.paddingTop), m = g.top - this.pixelViewport.top, v = g.bottom - this.pixelViewport.bottom; + this.scrollTop != p && (this.scrollAnchorHeight = -1, this.scrollTop = p), this.scrolledToBottom = Tj(e.scrollDOM); + let g = (this.printing ? Bxe : $xe)(r, this.paddingTop), m = g.top - this.pixelViewport.top, v = g.bottom - this.pixelViewport.bottom; this.pixelViewport = g; let y = this.pixelViewport.bottom > this.pixelViewport.top && this.pixelViewport.right > this.pixelViewport.left; if (y != this.inView && (this.inView = y, y && (l = !0)), !this.inView && !this.scrollTarget) @@ -7383,7 +7383,7 @@ class zB { m > 0 && v > 0 ? h = Math.max(m, v) : m < 0 && v < 0 && (h = Math.min(m, v)), i.heightChanged = !1; for (let S of this.viewports) { let C = S.from == this.viewport.from ? O : e.docView.measureVisibleLineHeights(S); - this.heightMap = (a ? sa.empty().applyChanges(this.stateDeco, Dr.empty, this.heightOracle, [new Fo(0, 0, 0, e.state.doc.length)]) : this.heightMap).updateHeight(i, 0, a, new Nxe(S.from, C)); + this.heightMap = (a ? sa.empty().applyChanges(this.stateDeco, Dr.empty, this.heightOracle, [new Fo(0, 0, 0, e.state.doc.length)]) : this.heightMap).updateHeight(i, 0, a, new Mxe(S.from, C)); } i.heightChanged && (u |= 2); } @@ -7422,7 +7422,7 @@ class zB { return e; let n = []; for (let i of e) - r.touchesRange(i.from, i.to) || n.push(new kE(r.mapPos(i.from), r.mapPos(i.to), i.size)); + r.touchesRange(i.from, i.to) || n.push(new wE(r.mapPos(i.from), r.mapPos(i.to), i.size)); return n; } ensureLineGaps(e, r) { @@ -7439,20 +7439,20 @@ class zB { l(u, v - 10, f, d), l(v + 10, h, f, d); return; } - let m = qxe(e, (v) => v.from >= f.from && v.to <= f.to && Math.abs(v.from - u) < s && Math.abs(v.to - h) < s && !g.some((y) => v.from < y && v.to > y)); + let m = Vxe(e, (v) => v.from >= f.from && v.to <= f.to && Math.abs(v.from - u) < s && Math.abs(v.to - h) < s && !g.some((y) => v.from < y && v.to > y)); if (!m) { if (h < f.to && r && n && r.visibleRanges.some((v) => v.from <= h && v.to >= h)) { let v = r.moveToLineBoundary(Ve.cursor(h), !1, !0).head; v > u && (h = v); } - m = new kE(u, h, this.gapSize(f, u, h, d)); + m = new wE(u, h, this.gapSize(f, u, h, d)); } o.push(m); }; for (let u of this.viewportLines) { if (u.length < a) continue; - let h = Uxe(u.from, u.to, this.stateDeco); + let h = zxe(u.from, u.to, this.stateDeco); if (h.total < a) continue; let f = this.scrollTarget ? this.scrollTarget.range.head : null, d, p; @@ -7482,7 +7482,7 @@ class zB { return this.heightOracle.lineWrapping ? e.height * s : i.total * this.heightOracle.charWidth * s; } updateLineGaps(e) { - kE.same(e, this.lineGaps) || (this.lineGaps = e, this.lineGapDeco = Et.set(e.map((r) => r.draw(this, this.heightOracle.lineWrapping)))); + wE.same(e, this.lineGaps) || (this.lineGaps = e, this.lineGapDeco = Et.set(e.map((r) => r.draw(this, this.heightOracle.lineWrapping)))); } computeVisibleRanges() { let e = this.stateDeco; @@ -7523,7 +7523,7 @@ class mw { this.from = e, this.to = r; } } -function Uxe(t, e, r) { +function zxe(t, e, r) { let n = [], i = t, s = 0; return Er.spans(r, t, e, { span() { @@ -7557,12 +7557,12 @@ function yw(t, e) { } return r / t.total; } -function qxe(t, e) { +function Vxe(t, e) { for (let r of t) if (e(r)) return r; } -const VB = { +const BB = { toDOM(t) { return t; }, @@ -7571,7 +7571,7 @@ const VB = { }, scale: 1 }; -class Yxe { +class Uxe { constructor(e, r, n) { let i = 0, s = 0, a = 0; this.viewports = n.map(({ from: o, to: l }) => { @@ -7608,8 +7608,8 @@ function gv(t, e) { let r = e.toDOM(t.top), n = e.toDOM(t.bottom); return new fc(t.from, t.length, r, n - r, Array.isArray(t._content) ? t._content.map((i) => gv(i, e)) : t._content); } -const bw = /* @__PURE__ */ _t.define({ combine: (t) => t.join(" ") }), f7 = /* @__PURE__ */ _t.define({ combine: (t) => t.indexOf(!0) > -1 }), d7 = /* @__PURE__ */ Pu.newName(), pK = /* @__PURE__ */ Pu.newName(), gK = /* @__PURE__ */ Pu.newName(), mK = { "&light": "." + pK, "&dark": "." + gK }; -function p7(t, e, r) { +const bw = /* @__PURE__ */ _t.define({ combine: (t) => t.join(" ") }), u7 = /* @__PURE__ */ _t.define({ combine: (t) => t.indexOf(!0) > -1 }), h7 = /* @__PURE__ */ Pu.newName(), hK = /* @__PURE__ */ Pu.newName(), fK = /* @__PURE__ */ Pu.newName(), dK = { "&light": "." + hK, "&dark": "." + fK }; +function f7(t, e, r) { return new Pu(e, { finish(n) { return /&/.test(n) ? n.replace(/&\w*/, (i) => { @@ -7622,7 +7622,7 @@ function p7(t, e, r) { } }); } -const Qxe = /* @__PURE__ */ p7("." + d7, { +const qxe = /* @__PURE__ */ f7("." + h7, { "&": { position: "relative !important", boxSizing: "border-box", @@ -7853,8 +7853,8 @@ const Qxe = /* @__PURE__ */ p7("." + d7, { border: "1px solid #555", backgroundColor: "inherit" } -}, mK), mv = "\uFFFF"; -class Wxe { +}, dK), mv = "\uFFFF"; +class Yxe { constructor(e, r) { this.points = e, this.text = "", this.lineSeparator = r.facet(dr.lineSeparator); } @@ -7876,7 +7876,7 @@ class Wxe { if (a == r) break; let o = yn.get(i), l = yn.get(a); - (o && l ? o.breakAfter : (o ? o.breakAfter : UB(i)) || UB(a) && (i.nodeName != "BR" || i.cmIgnore) && this.text.length > s) && this.lineBreak(), i = a; + (o && l ? o.breakAfter : (o ? o.breakAfter : FB(i)) || FB(a) && (i.nodeName != "BR" || i.cmIgnore) && this.text.length > s) && this.lineBreak(), i = a; } return this.findPointBefore(n, r), this; } @@ -7911,10 +7911,10 @@ class Wxe { } findPointInside(e, r) { for (let n of this.points) - (e.nodeType == 3 ? n.node == e : e.contains(n.node)) && (n.pos = this.text.length + (Gxe(e, n.node, n.offset) ? r : 0)); + (e.nodeType == 3 ? n.node == e : e.contains(n.node)) && (n.pos = this.text.length + (Qxe(e, n.node, n.offset) ? r : 0)); } } -function Gxe(t, e, r) { +function Qxe(t, e, r) { for (; ; ) { if (!e || r < $u(e)) return !1; @@ -7923,42 +7923,42 @@ function Gxe(t, e, r) { r = Sy(e) + 1, e = e.parentNode; } } -function UB(t) { +function FB(t) { return t.nodeType == 1 && /^(DIV|P|LI|UL|OL|BLOCKQUOTE|DD|DT|H\d|SECTION|PRE)$/.test(t.nodeName); } -class qB { +class zB { constructor(e, r) { this.node = e, this.offset = r, this.pos = -1; } } -class Hxe { +class Wxe { constructor(e, r, n, i) { this.typeOver = i, this.bounds = null, this.text = ""; let { impreciseHead: s, impreciseAnchor: a } = e.docView; if (e.state.readOnly && r > -1) this.newSel = null; else if (r > -1 && (this.bounds = e.docView.domBoundsAround(r, n, 0))) { - let o = s || a ? [] : jxe(e), l = new Wxe(o, e.state); - l.readRange(this.bounds.startDOM, this.bounds.endDOM), this.text = l.text, this.newSel = Kxe(o, this.bounds.from); + let o = s || a ? [] : Xxe(e), l = new Yxe(o, e.state); + l.readRange(this.bounds.startDOM, this.bounds.endDOM), this.text = l.text, this.newSel = Zxe(o, this.bounds.from); } else { - let o = e.observer.selectionRange, l = s && s.node == o.focusNode && s.offset == o.focusOffset || !KA(e.contentDOM, o.focusNode) ? e.state.selection.main.head : e.docView.posFromDOM(o.focusNode, o.focusOffset), u = a && a.node == o.anchorNode && a.offset == o.anchorOffset || !KA(e.contentDOM, o.anchorNode) ? e.state.selection.main.anchor : e.docView.posFromDOM(o.anchorNode, o.anchorOffset); + let o = e.observer.selectionRange, l = s && s.node == o.focusNode && s.offset == o.focusOffset || !ZA(e.contentDOM, o.focusNode) ? e.state.selection.main.head : e.docView.posFromDOM(o.focusNode, o.focusOffset), u = a && a.node == o.anchorNode && a.offset == o.anchorOffset || !ZA(e.contentDOM, o.anchorNode) ? e.state.selection.main.anchor : e.docView.posFromDOM(o.anchorNode, o.anchorOffset); this.newSel = Ve.single(u, l); } } } -function vK(t, e) { +function pK(t, e) { let r, { newSel: n } = e, i = t.state.selection.main, s = t.inputState.lastKeyTime > Date.now() - 100 ? t.inputState.lastKeyCode : -1; if (e.bounds) { let { from: a, to: o } = e.bounds, l = i.from, u = null; (s === 8 || Mt.android && e.text.length < o - a) && (l = i.to, u = "end"); - let h = Zxe(t.state.doc.sliceString(a, o, mv), e.text, l - a, u); + let h = Hxe(t.state.doc.sliceString(a, o, mv), e.text, l - a, u); h && (Mt.chrome && s == 13 && h.toB == h.from + 2 && e.text.slice(h.from, h.toB) == mv + mv && h.toB--, r = { from: a + h.from, to: a + h.toA, insert: Dr.of(e.text.slice(h.from, h.toB).split(mv)) }); } else - n && (!t.hasFocus && t.state.facet(BS) || n.main.eq(i)) && (n = null); + n && (!t.hasFocus && t.state.facet($S) || n.main.eq(i)) && (n = null); if (!r && !n) return !1; if (!r && e.typeOver && !i.empty && n && n.main.empty ? r = { from: i.from, to: i.to, insert: t.state.doc.slice(i.from, i.to) } : r && r.from >= i.from && r.to <= i.to && (r.from != i.from || r.to != i.to) && i.to - i.from - (r.to - r.from) <= 4 ? r = { @@ -7971,15 +7971,15 @@ function vK(t, e) { return !0; let a = r.insert.toString(); t.inputState.composing >= 0 && t.inputState.composing++; - let o, l = () => o || (o = Xxe(t, r, n)); - return t.state.facet(Uj).some((u) => u(t, r.from, r.to, a, l)) || t.dispatch(l()), !0; + let o, l = () => o || (o = Gxe(t, r, n)); + return t.state.facet(Fj).some((u) => u(t, r.from, r.to, a, l)) || t.dispatch(l()), !0; } else if (n && !n.main.eq(i)) { let a = !1, o = "select"; return t.inputState.lastSelectionTime > Date.now() - 50 && (t.inputState.lastSelectionOrigin == "select" && (a = !0), o = t.inputState.lastSelectionOrigin), t.dispatch({ selection: n, scrollIntoView: a, userEvent: o }), !0; } else return !1; } -function Xxe(t, e, r) { +function Gxe(t, e, r) { let n, i = t.state, s = i.selection.main; if (e.from >= s.from && e.to <= s.to && e.to - e.from >= (s.to - s.from) / 3 && (!r || r.main.empty && r.main.from == e.from + e.insert.length) && t.inputState.composing < 0) { let o = s.from < e.from ? i.sliceDoc(s.from, e.from) : "", l = s.to > e.to ? i.sliceDoc(e.to, s.to) : ""; @@ -7987,7 +7987,7 @@ function Xxe(t, e, r) { } else { let o = i.changes(e), l = r && r.main.to <= o.newLength ? r.main : void 0; if (i.selection.ranges.length > 1 && t.inputState.composing >= 0 && e.to <= s.to && e.to >= s.to - 10) { - let u = t.state.sliceDoc(e.from, e.to), h, f = r && tK(t, r.main.head); + let u = t.state.sliceDoc(e.from, e.to), h, f = r && Kj(t, r.main.head); if (f) { let g = e.insert.length - (e.to - e.from); h = { from: f.from, to: f.to - g }; @@ -8015,7 +8015,7 @@ function Xxe(t, e, r) { let a = "input.type"; return (t.composing || t.inputState.compositionPendingChange && t.inputState.compositionEndedAt > Date.now() - 50) && (t.inputState.compositionPendingChange = !1, a += ".compose", t.inputState.compositionFirstChange && (a += ".start", t.inputState.compositionFirstChange = !1)), i.update(n, { userEvent: a, scrollIntoView: !0 }); } -function Zxe(t, e, r, n) { +function Hxe(t, e, r, n) { let i = Math.min(t.length, e.length), s = 0; for (; s < i && t.charCodeAt(s) == e.charCodeAt(s); ) s++; @@ -8037,33 +8037,33 @@ function Zxe(t, e, r, n) { } return { from: s, toA: a, toB: o }; } -function jxe(t) { +function Xxe(t) { let e = []; if (t.root.activeElement != t.contentDOM) return e; let { anchorNode: r, anchorOffset: n, focusNode: i, focusOffset: s } = t.observer.selectionRange; - return r && (e.push(new qB(r, n)), (i != r || s != n) && e.push(new qB(i, s))), e; + return r && (e.push(new zB(r, n)), (i != r || s != n) && e.push(new zB(i, s))), e; } -function Kxe(t, e) { +function Zxe(t, e) { if (t.length == 0) return null; let r = t[0].pos, n = t.length == 2 ? t[1].pos : r; return r > -1 && n > -1 ? Ve.single(r + e, n + e) : null; } -const Jxe = { +const jxe = { childList: !0, characterData: !0, subtree: !0, attributes: !0, characterDataOldValue: !0 -}, SE = Mt.ie && Mt.ie_version <= 11; -class ewe { +}, OE = Mt.ie && Mt.ie_version <= 11; +class Kxe { constructor(e) { - this.view = e, this.active = !1, this.selectionRange = new $be(), this.selectionChanged = !1, this.delayedFlush = -1, this.resizeTimeout = -1, this.queue = [], this.delayedAndroidKey = null, this.flushingAndroidKey = -1, this.lastChange = 0, this.scrollTargets = [], this.intersection = null, this.resizeScroll = null, this.intersecting = !1, this.gapIntersection = null, this.gaps = [], this.parentCheck = -1, this.dom = e.contentDOM, this.observer = new MutationObserver((r) => { + this.view = e, this.active = !1, this.selectionRange = new Ibe(), this.selectionChanged = !1, this.delayedFlush = -1, this.resizeTimeout = -1, this.queue = [], this.delayedAndroidKey = null, this.flushingAndroidKey = -1, this.lastChange = 0, this.scrollTargets = [], this.intersection = null, this.resizeScroll = null, this.intersecting = !1, this.gapIntersection = null, this.gaps = [], this.parentCheck = -1, this.dom = e.contentDOM, this.observer = new MutationObserver((r) => { for (let n of r) this.queue.push(n); (Mt.ie && Mt.ie_version <= 11 || Mt.ios && e.composing) && r.some((n) => n.type == "childList" && n.removedNodes.length || n.type == "characterData" && n.oldValue.length > n.target.nodeValue.length) ? this.flushSoon() : this.flush(); - }), SE && (this.onCharData = (r) => { + }), OE && (this.onCharData = (r) => { this.queue.push({ target: r.target, type: "characterData", @@ -8107,21 +8107,21 @@ class ewe { if (!this.readSelectionRange() || this.delayedAndroidKey) return; let { view: n } = this, i = this.selectionRange; - if (n.state.facet(BS) ? n.root.activeElement != this.dom : !o4(n.dom, i)) + if (n.state.facet($S) ? n.root.activeElement != this.dom : !a4(n.dom, i)) return; let s = i.anchorNode && n.docView.nearest(i.anchorNode); if (s && s.ignoreEvent(e)) { r || (this.selectionChanged = !1); return; } - (Mt.ie && Mt.ie_version <= 11 || Mt.android && Mt.chrome) && !n.state.selection.main.empty && i.focusNode && O5(i.focusNode, i.focusOffset, i.anchorNode, i.anchorOffset) ? this.flushSoon() : this.flush(!1); + (Mt.ie && Mt.ie_version <= 11 || Mt.android && Mt.chrome) && !n.state.selection.main.empty && i.focusNode && w5(i.focusNode, i.focusOffset, i.anchorNode, i.anchorOffset) ? this.flushSoon() : this.flush(!1); } readSelectionRange() { - let { view: e } = this, r = Mt.safari && e.root.nodeType == 11 && Dbe(this.dom.ownerDocument) == this.dom && twe(this.view) || w5(e.root); + let { view: e } = this, r = Mt.safari && e.root.nodeType == 11 && Rbe(this.dom.ownerDocument) == this.dom && Jxe(this.view) || x5(e.root); if (!r || this.selectionRange.eq(r)) return !1; - let n = o4(this.dom, r); - return n && !this.selectionChanged && e.inputState.lastFocusTime > Date.now() - 200 && e.inputState.lastTouchTime < Date.now() - 300 && Fbe(this.dom, r) ? (this.view.inputState.lastFocusTime = 0, e.docView.updateSelection(), !1) : (this.selectionRange.setRange(r), n && (this.selectionChanged = !0), !0); + let n = a4(this.dom, r); + return n && !this.selectionChanged && e.inputState.lastFocusTime > Date.now() - 200 && e.inputState.lastTouchTime < Date.now() - 300 && $be(this.dom, r) ? (this.view.inputState.lastFocusTime = 0, e.docView.updateSelection(), !1) : (this.selectionRange.setRange(r), n && (this.selectionChanged = !0), !0); } setSelectionRange(e, r) { this.selectionRange.set(e.node, e.offset, r.node, r.offset), this.selectionChanged = !1; @@ -8156,10 +8156,10 @@ class ewe { } } start() { - this.active || (this.observer.observe(this.dom, Jxe), SE && this.dom.addEventListener("DOMCharacterDataModified", this.onCharData), this.active = !0); + this.active || (this.observer.observe(this.dom, jxe), OE && this.dom.addEventListener("DOMCharacterDataModified", this.onCharData), this.active = !0); } stop() { - !this.active || (this.active = !1, this.observer.disconnect(), SE && this.dom.removeEventListener("DOMCharacterDataModified", this.onCharData)); + !this.active || (this.active = !1, this.observer.disconnect(), OE && this.dom.removeEventListener("DOMCharacterDataModified", this.onCharData)); } clear() { this.processRecords(), this.queue.length = 0, this.selectionChanged = !1; @@ -8206,11 +8206,11 @@ class ewe { return { from: r, to: n, typeOver: i }; } readChange() { - let { from: e, to: r, typeOver: n } = this.processRecords(), i = this.selectionChanged && o4(this.dom, this.selectionRange); + let { from: e, to: r, typeOver: n } = this.processRecords(), i = this.selectionChanged && a4(this.dom, this.selectionRange); if (e < 0 && !i) return null; e > -1 && (this.lastChange = Date.now()), this.view.inputState.lastFocusTime = 0, this.selectionChanged = !1; - let s = new Hxe(this.view, e, r, n); + let s = new Wxe(this.view, e, r, n); return this.view.docView.domChanged = { newSel: s.newSel ? s.newSel.main : null }, s; } flush(e = !0) { @@ -8220,7 +8220,7 @@ class ewe { let r = this.readChange(); if (!r) return this.view.requestMeasure(), !1; - let n = this.view.state, i = vK(this.view, r); + let n = this.view.state, i = pK(this.view, r); return this.view.state == n && this.view.update([]), i; } readMutation(e) { @@ -8228,7 +8228,7 @@ class ewe { if (!r || r.ignoreMutation(e)) return null; if (r.markDirty(e.type == "attributes"), e.type == "attributes" && (r.flags |= 4), e.type == "childList") { - let n = YB(r, e.previousSibling || e.target.previousSibling, -1), i = YB(r, e.nextSibling || e.target.nextSibling, 1); + let n = VB(r, e.previousSibling || e.target.previousSibling, -1), i = VB(r, e.nextSibling || e.target.nextSibling, 1); return { from: n ? r.posAfter(n) : r.posAtStart, to: i ? r.posBefore(i) : r.posAtEnd, @@ -8254,7 +8254,7 @@ class ewe { this.removeWindowListeners(this.win), clearTimeout(this.parentCheck), clearTimeout(this.resizeTimeout), this.win.cancelAnimationFrame(this.delayedFlush), this.win.cancelAnimationFrame(this.flushingAndroidKey); } } -function YB(t, e, r) { +function VB(t, e, r) { for (; e; ) { let n = yn.get(e); if (n && n.parent == t) @@ -8264,7 +8264,7 @@ function YB(t, e, r) { } return null; } -function twe(t) { +function Jxe(t) { let e = null; function r(l) { l.preventDefault(), l.stopImmediatePropagation(), e = l.getTargetRanges()[0]; @@ -8272,7 +8272,7 @@ function twe(t) { if (t.contentDOM.addEventListener("beforeinput", r, !0), t.dom.ownerDocument.execCommand("indent"), t.contentDOM.removeEventListener("beforeinput", r, !0), !e) return null; let n = e.startContainer, i = e.startOffset, s = e.endContainer, a = e.endOffset, o = t.docView.domAtPos(t.state.selection.main.anchor); - return O5(o.node, o.offset, s, a) && ([n, i, s, a] = [s, a, n, i]), { anchorNode: n, anchorOffset: i, focusNode: s, focusOffset: a }; + return w5(o.node, o.offset, s, a) && ([n, i, s, a] = [s, a, n, i]), { anchorNode: n, anchorOffset: i, focusNode: s, focusOffset: a }; } class ht { get state() { @@ -8302,10 +8302,10 @@ class ht { constructor(e = {}) { this.plugins = [], this.pluginMap = /* @__PURE__ */ new Map(), this.editorAttrs = {}, this.contentAttrs = {}, this.bidiCache = [], this.destroyed = !1, this.updateState = 2, this.measureScheduled = -1, this.measureRequests = [], this.contentDOM = document.createElement("div"), this.scrollDOM = document.createElement("div"), this.scrollDOM.tabIndex = -1, this.scrollDOM.className = "cm-scroller", this.scrollDOM.appendChild(this.contentDOM), this.announceDOM = document.createElement("div"), this.announceDOM.className = "cm-announced", this.announceDOM.setAttribute("aria-live", "polite"), this.dom = document.createElement("div"), this.dom.appendChild(this.announceDOM), this.dom.appendChild(this.scrollDOM), e.parent && e.parent.appendChild(this.dom); let { dispatch: r } = e; - this.dispatchTransactions = e.dispatchTransactions || r && ((n) => n.forEach((i) => r(i, this))) || ((n) => this.update(n)), this.dispatch = this.dispatch.bind(this), this._root = e.root || Bbe(e.parent) || document, this.viewState = new zB(e.state || dr.create(e)), e.scrollTo && e.scrollTo.is(dw) && (this.viewState.scrollTarget = e.scrollTo.value.clip(this.viewState.state)), this.plugins = this.state.facet(dv).map((n) => new xE(n)); + this.dispatchTransactions = e.dispatchTransactions || r && ((n) => n.forEach((i) => r(i, this))) || ((n) => this.update(n)), this.dispatch = this.dispatch.bind(this), this._root = e.root || Pbe(e.parent) || document, this.viewState = new $B(e.state || dr.create(e)), e.scrollTo && e.scrollTo.is(dw) && (this.viewState.scrollTarget = e.scrollTo.value.clip(this.viewState.state)), this.plugins = this.state.facet(dv).map((n) => new yE(n)); for (let n of this.plugins) n.update(this); - this.observer = new ewe(this), this.inputState = new mxe(this), this.inputState.ensureHandlers(this.plugins), this.docView = new OB(this), this.mountStyles(), this.updateAttrs(), this.updateState = 0, this.requestMeasure(); + this.observer = new Kxe(this), this.inputState = new pxe(this), this.inputState.ensureHandlers(this.plugins), this.docView = new bB(this), this.mountStyles(), this.updateAttrs(), this.updateState = 0, this.requestMeasure(); } dispatch(...e) { let r = e.length == 1 && e[0] instanceof fi ? e : e.length == 1 && Array.isArray(e[0]) ? e[0] : [this.state.update(...e)]; @@ -8325,11 +8325,11 @@ class ht { return; } let a = this.hasFocus, o = 0, l = null; - e.some((d) => d.annotation(uK)) ? (this.inputState.notifiedFocused = a, o = 1) : a != this.inputState.notifiedFocused && (this.inputState.notifiedFocused = a, l = hK(s, a), l || (o = 1)); + e.some((d) => d.annotation(oK)) ? (this.inputState.notifiedFocused = a, o = 1) : a != this.inputState.notifiedFocused && (this.inputState.notifiedFocused = a, l = lK(s, a), l || (o = 1)); let u = this.observer.delayedAndroidKey, h = null; if (u ? (this.observer.clearDelayedAndroidKey(), h = this.observer.readChange(), (h && !this.state.doc.eq(s.doc) || !this.state.selection.eq(s.selection)) && (h = null)) : this.observer.clear(), s.facet(dr.phrases) != this.state.facet(dr.phrases)) return this.setState(s); - i = k5.create(this, s, e), i.flags |= o; + i = O5.create(this, s, e), i.flags |= o; let f = this.viewState.scrollTarget; try { this.updateState = 2; @@ -8341,19 +8341,19 @@ class ht { for (let p of d.effects) p.is(dw) && (f = p.value.clip(this.state)); } - this.viewState.update(i, f), this.bidiCache = S5.update(this.bidiCache, i.changes), i.empty || (this.updatePlugins(i), this.inputState.update(i)), r = this.docView.update(i), this.state.facet(pv) != this.styleModules && this.mountStyles(), n = this.updateAttrs(), this.showAnnouncements(e), this.docView.updateSelection(r, e.some((d) => d.isUserEvent("select.pointer"))); + this.viewState.update(i, f), this.bidiCache = k5.update(this.bidiCache, i.changes), i.empty || (this.updatePlugins(i), this.inputState.update(i)), r = this.docView.update(i), this.state.facet(pv) != this.styleModules && this.mountStyles(), n = this.updateAttrs(), this.showAnnouncements(e), this.docView.updateSelection(r, e.some((d) => d.isUserEvent("select.pointer"))); } finally { this.updateState = 0; } if (i.startState.facet(bw) != i.state.facet(bw) && (this.viewState.mustMeasureContent = !0), (r || n || f || this.viewState.mustEnforceCursorAssoc || this.viewState.mustMeasureContent) && this.requestMeasure(), !i.empty) - for (let d of this.state.facet(s7)) + for (let d of this.state.facet(n7)) try { d(i); } catch (p) { Bo(this.state, p, "update listener"); } (l || h) && Promise.resolve().then(() => { - l && this.state == l.startState && this.dispatch(l), h && !vK(this, h) && u.force && Hp(this.contentDOM, u.key, u.keyCode); + l && this.state == l.startState && this.dispatch(l), h && !pK(this, h) && u.force && Hp(this.contentDOM, u.key, u.keyCode); }); } setState(e) { @@ -8368,10 +8368,10 @@ class ht { try { for (let n of this.plugins) n.destroy(this); - this.viewState = new zB(e), this.plugins = e.facet(dv).map((n) => new xE(n)), this.pluginMap.clear(); + this.viewState = new $B(e), this.plugins = e.facet(dv).map((n) => new yE(n)), this.pluginMap.clear(); for (let n of this.plugins) n.update(this); - this.docView.destroy(), this.docView = new OB(this), this.inputState.ensureHandlers(this.plugins), this.mountStyles(), this.updateAttrs(), this.bidiCache = []; + this.docView.destroy(), this.docView = new bB(this), this.inputState.ensureHandlers(this.plugins), this.mountStyles(), this.updateAttrs(), this.bidiCache = []; } finally { this.updateState = 0; } @@ -8384,7 +8384,7 @@ class ht { for (let s of n) { let a = r.indexOf(s); if (a < 0) - i.push(new xE(s)); + i.push(new yE(s)); else { let o = this.plugins[a]; o.mustUpdate = e, i.push(o); @@ -8413,7 +8413,7 @@ class ht { try { for (let o = 0; ; o++) { if (a < 0) - if (_j(n)) + if (Tj(n)) s = -1, a = this.viewState.heightMap.height; else { let p = this.viewState.scrollAnchorAt(i); @@ -8433,12 +8433,12 @@ class ht { try { return p.read(this); } catch (g) { - return Bo(this.state, g), QB; + return Bo(this.state, g), UB; } - }), f = k5.create(this, this.state, []), d = !1; + }), f = O5.create(this, this.state, []), d = !1; f.flags |= l, r ? r.flags |= l : r = f, this.updateState = 2, f.empty || (this.updatePlugins(f), this.inputState.update(f), this.updateAttrs(), d = this.docView.update(f)); for (let p = 0; p < u.length; p++) - if (h[p] != QB) + if (h[p] != UB) try { let g = u[p]; g.write && g.write(h[p], this); @@ -8464,29 +8464,29 @@ class ht { this.updateState = 0, this.measureScheduled = -1; } if (r && !r.empty) - for (let o of this.state.facet(s7)) + for (let o of this.state.facet(n7)) o(r); } get themeClasses() { - return d7 + " " + (this.state.facet(f7) ? gK : pK) + " " + this.state.facet(bw); + return h7 + " " + (this.state.facet(u7) ? fK : hK) + " " + this.state.facet(bw); } updateAttrs() { - let e = WB(this, Wj, { + let e = qB(this, qj, { class: "cm-editor" + (this.hasFocus ? " cm-focused " : " ") + this.themeClasses }), r = { spellcheck: "false", autocorrect: "off", autocapitalize: "off", translate: "no", - contenteditable: this.state.facet(BS) ? "true" : "false", + contenteditable: this.state.facet($S) ? "true" : "false", class: "cm-content", style: `${Mt.tabSize}: ${this.state.tabSize}`, role: "textbox", "aria-multiline": "true" }; - this.state.readOnly && (r["aria-readonly"] = "true"), WB(this, WR, r); + this.state.readOnly && (r["aria-readonly"] = "true"), qB(this, qR, r); let n = this.observer.ignore(() => { - let i = n7(this.contentDOM, this.contentAttrs, r), s = n7(this.dom, this.editorAttrs, e); + let i = t7(this.contentDOM, this.contentAttrs, r), s = t7(this.dom, this.editorAttrs, e); return i || s; }); return this.editorAttrs = e, this.contentAttrs = r, n; @@ -8504,7 +8504,7 @@ class ht { mountStyles() { this.styleModules = this.state.facet(pv); let e = this.state.facet(ht.cspNonce); - Pu.mount(this.root, this.styleModules.concat(Qxe).reverse(), e ? { nonce: e } : void 0); + Pu.mount(this.root, this.styleModules.concat(qxe).reverse(), e ? { nonce: e } : void 0); } readMeasured() { if (this.updateState == 2) @@ -8557,16 +8557,16 @@ class ht { return this.viewState.contentHeight; } moveByChar(e, r, n) { - return OE(this, e, _B(this, e, r, n)); + return xE(this, e, TB(this, e, r, n)); } moveByGroup(e, r) { - return OE(this, e, _B(this, e, r, (n) => pxe(this, e.head, n))); + return xE(this, e, TB(this, e, r, (n) => fxe(this, e.head, n))); } moveToLineBoundary(e, r, n = !0) { - return dxe(this, e, r, n); + return hxe(this, e, r, n); } moveVertically(e, r, n) { - return OE(this, e, gxe(this, e, r, n)); + return xE(this, e, dxe(this, e, r, n)); } domAtPos(e) { return this.docView.domAtPos(e); @@ -8575,7 +8575,7 @@ class ht { return this.docView.posFromDOM(e, r); } posAtCoords(e, r = !0) { - return this.readMeasured(), nK(this, e, r); + return this.readMeasured(), eK(this, e, r); } coordsAtPos(e, r = 1) { this.readMeasured(); @@ -8583,7 +8583,7 @@ class ht { if (!n || n.left == n.right) return n; let i = this.state.doc.lineAt(e), s = this.bidiSpans(i), a = s[Ph.find(s, e - i.from, -1, r)]; - return qR(n, a.dir == In.LTR == r > 0); + return zR(n, a.dir == In.LTR == r > 0); } coordsForChar(e) { return this.readMeasured(), this.docView.coordsForChar(e); @@ -8598,21 +8598,21 @@ class ht { return this.viewState.defaultTextDirection; } textDirectionAt(e) { - return !this.state.facet(Yj) || e < this.viewport.from || e > this.viewport.to ? this.textDirection : (this.readMeasured(), this.docView.textDirectionAt(e)); + return !this.state.facet(Vj) || e < this.viewport.from || e > this.viewport.to ? this.textDirection : (this.readMeasured(), this.docView.textDirectionAt(e)); } get lineWrapping() { return this.viewState.heightOracle.lineWrapping; } bidiSpans(e) { - if (e.length > rwe) - return Jj(e.length); + if (e.length > ewe) + return Zj(e.length); let r = this.textDirectionAt(e.from), n; for (let s of this.bidiCache) - if (s.from == e.from && s.dir == r && (s.fresh || Kj(s.isolates, n = wB(this, e.from, e.to)))) + if (s.from == e.from && s.dir == r && (s.fresh || Xj(s.isolates, n = yB(this, e.from, e.to)))) return s.order; - n || (n = wB(this, e.from, e.to)); - let i = Jbe(e.text, r, n); - return this.bidiCache.push(new S5(e.from, e.to, r, n, !0, i)), i; + n || (n = yB(this, e.from, e.to)); + let i = jbe(e.text, r, n); + return this.bidiCache.push(new k5(e.from, e.to, r, n, !0, i)), i; } get hasFocus() { var e; @@ -8620,7 +8620,7 @@ class ht { } focus() { this.observer.ignore(() => { - Cj(this.contentDOM), this.docView.updateSelection(); + kj(this.contentDOM), this.docView.updateSelection(); }); } setRoot(e) { @@ -8645,11 +8645,11 @@ class ht { return on.define(() => ({}), { eventObservers: e }); } static theme(e, r) { - let n = Pu.newName(), i = [bw.of(n), pv.of(p7(`.${n}`, e))]; - return r && r.dark && i.push(f7.of(!0)), i; + let n = Pu.newName(), i = [bw.of(n), pv.of(f7(`.${n}`, e))]; + return r && r.dark && i.push(u7.of(!0)), i; } static baseTheme(e) { - return zl.lowest(pv.of(p7("." + d7, e, mK))); + return zl.lowest(pv.of(f7("." + h7, e, dK))); } static findFromDOM(e) { var r; @@ -8658,27 +8658,27 @@ class ht { } } ht.styleModule = pv; -ht.inputHandler = Uj; -ht.focusChangeEffect = qj; -ht.perLineTextDirection = Yj; -ht.exceptionSink = Vj; -ht.updateListener = s7; -ht.editable = BS; -ht.mouseSelectionStyle = zj; -ht.dragMovesSelection = Fj; -ht.clickAddsSelectionRange = Bj; +ht.inputHandler = Fj; +ht.focusChangeEffect = zj; +ht.perLineTextDirection = Vj; +ht.exceptionSink = Bj; +ht.updateListener = n7; +ht.editable = $S; +ht.mouseSelectionStyle = $j; +ht.dragMovesSelection = Pj; +ht.clickAddsSelectionRange = Ij; ht.decorations = Ty; -ht.atomicRanges = GR; -ht.bidiIsolatedRanges = Gj; -ht.scrollMargins = Hj; -ht.darkTheme = f7; +ht.atomicRanges = YR; +ht.bidiIsolatedRanges = Yj; +ht.scrollMargins = Qj; +ht.darkTheme = u7; ht.cspNonce = /* @__PURE__ */ _t.define({ combine: (t) => t.length ? t[0] : "" }); -ht.contentAttributes = WR; -ht.editorAttributes = Wj; +ht.contentAttributes = qR; +ht.editorAttributes = qj; ht.lineWrapping = /* @__PURE__ */ ht.contentAttributes.of({ class: "cm-lineWrapping" }); ht.announce = /* @__PURE__ */ Zt.define(); -const rwe = 4096, QB = {}; -class S5 { +const ewe = 4096, UB = {}; +class k5 { constructor(e, r, n, i, s, a) { this.from = e, this.to = r, this.dir = n, this.isolates = i, this.fresh = s, this.order = a; } @@ -8688,20 +8688,20 @@ class S5 { let n = [], i = e.length ? e[e.length - 1].dir : In.LTR; for (let s = Math.max(0, e.length - 10); s < e.length; s++) { let a = e[s]; - a.dir == i && !r.touchesRange(a.from, a.to) && n.push(new S5(r.mapPos(a.from, 1), r.mapPos(a.to, -1), a.dir, a.isolates, !1, a.order)); + a.dir == i && !r.touchesRange(a.from, a.to) && n.push(new k5(r.mapPos(a.from, 1), r.mapPos(a.to, -1), a.dir, a.isolates, !1, a.order)); } return n; } } -function WB(t, e, r) { +function qB(t, e, r) { for (let n = t.state.facet(e), i = n.length - 1; i >= 0; i--) { let s = n[i], a = typeof s == "function" ? s(t) : s; - a && r7(a, r); + a && e7(a, r); } return r; } -const nwe = Mt.mac ? "mac" : Mt.windows ? "win" : Mt.linux ? "linux" : "key"; -function iwe(t, e) { +const twe = Mt.mac ? "mac" : Mt.windows ? "win" : Mt.linux ? "linux" : "key"; +function rwe(t, e) { const r = t.split(/-(?!$)/); let n = r[r.length - 1]; n == "Space" && (n = " "); @@ -8726,21 +8726,21 @@ function iwe(t, e) { function xw(t, e, r) { return e.altKey && (t = "Alt-" + t), e.ctrlKey && (t = "Ctrl-" + t), e.metaKey && (t = "Meta-" + t), r !== !1 && e.shiftKey && (t = "Shift-" + t), t; } -const swe = /* @__PURE__ */ zl.default(/* @__PURE__ */ ht.domEventHandlers({ +const nwe = /* @__PURE__ */ zl.default(/* @__PURE__ */ ht.domEventHandlers({ keydown(t, e) { - return bK(yK(e.state), t, e, "editor"); + return mK(gK(e.state), t, e, "editor"); } -})), Cu = /* @__PURE__ */ _t.define({ enables: swe }), GB = /* @__PURE__ */ new WeakMap(); -function yK(t) { - let e = t.facet(Cu), r = GB.get(e); - return r || GB.set(e, r = lwe(e.reduce((n, i) => n.concat(i), []))), r; +})), Cu = /* @__PURE__ */ _t.define({ enables: nwe }), YB = /* @__PURE__ */ new WeakMap(); +function gK(t) { + let e = t.facet(Cu), r = YB.get(e); + return r || YB.set(e, r = awe(e.reduce((n, i) => n.concat(i), []))), r; } -function awe(t, e, r) { - return bK(yK(t.state), e, t, r); +function iwe(t, e, r) { + return mK(gK(t.state), e, t, r); } let Eh = null; -const owe = 4e3; -function lwe(t, e = nwe) { +const swe = 4e3; +function awe(t, e = twe) { let r = /* @__PURE__ */ Object.create(null), n = /* @__PURE__ */ Object.create(null), i = (a, o) => { let l = n[a]; if (l == null) @@ -8749,7 +8749,7 @@ function lwe(t, e = nwe) { throw new Error("Key binding " + a + " is used both as a regular binding and as a multi-stroke prefix"); }, s = (a, o, l, u, h) => { var f, d; - let p = r[a] || (r[a] = /* @__PURE__ */ Object.create(null)), g = o.split(/ (?!$)/).map((y) => iwe(y, e)); + let p = r[a] || (r[a] = /* @__PURE__ */ Object.create(null)), g = o.split(/ (?!$)/).map((y) => rwe(y, e)); for (let y = 1; y < g.length; y++) { let b = g.slice(0, y).join(" "); i(b, !0), p[b] || (p[b] = { @@ -8759,7 +8759,7 @@ function lwe(t, e = nwe) { let O = Eh = { view: w, prefix: b, scope: a }; return setTimeout(() => { Eh == O && (Eh = null); - }, owe), !0; + }, swe), !0; }] }); } @@ -8788,9 +8788,9 @@ function lwe(t, e = nwe) { } return r; } -function bK(t, e, r, n) { - let i = Mbe(e), s = ss(i, 0), a = _o(s) == i.length && i != " ", o = "", l = !1, u = !1, h = !1; - Eh && Eh.view == r && Eh.scope == n && (o = Eh.prefix + " ", sK.indexOf(e.keyCode) < 0 && (u = !0, Eh = null)); +function mK(t, e, r, n) { + let i = Lbe(e), s = ss(i, 0), a = _o(s) == i.length && i != " ", o = "", l = !1, u = !1, h = !1; + Eh && Eh.view == r && Eh.scope == n && (o = Eh.prefix + " ", rK.indexOf(e.keyCode) < 0 && (u = !0, Eh = null)); let f = /* @__PURE__ */ new Set(), d = (v) => { if (v) { for (let y of v.run) @@ -8824,17 +8824,17 @@ class Gb { let i = e.coordsAtPos(n.head, n.assoc || 1); if (!i) return []; - let s = xK(e); + let s = vK(e); return [new Gb(r, i.left - s.left, i.top - s.top, null, i.bottom - i.top)]; } else - return cwe(e, r, n); + return owe(e, r, n); } } -function xK(t) { +function vK(t) { let e = t.scrollDOM.getBoundingClientRect(); return { left: (t.textDirection == In.LTR ? e.left : e.right - t.scrollDOM.clientWidth * t.scaleX) - t.scrollDOM.scrollLeft * t.scaleX, top: e.top - t.scrollDOM.scrollTop * t.scaleY }; } -function HB(t, e, r) { +function QB(t, e, r) { let n = Ve.cursor(e); return { from: Math.max(r.from, t.moveToLineBoundary(n, !1, !0).from), @@ -8842,11 +8842,11 @@ function HB(t, e, r) { type: ia.Text }; } -function cwe(t, e, r) { +function owe(t, e, r) { if (r.to <= t.viewport.from || r.from >= t.viewport.to) return []; - let n = Math.max(r.from, t.viewport.from), i = Math.min(r.to, t.viewport.to), s = t.textDirection == In.LTR, a = t.contentDOM, o = a.getBoundingClientRect(), l = xK(t), u = a.querySelector(".cm-line"), h = u && window.getComputedStyle(u), f = o.left + (h ? parseInt(h.paddingLeft) + Math.min(0, parseInt(h.textIndent)) : 0), d = o.right - (h ? parseInt(h.paddingRight) : 0), p = u7(t, n), g = u7(t, i), m = p.type == ia.Text ? p : null, v = g.type == ia.Text ? g : null; - if (m && (t.lineWrapping || p.widgetLineBreaks) && (m = HB(t, n, m)), v && (t.lineWrapping || g.widgetLineBreaks) && (v = HB(t, i, v)), m && v && m.from == v.from) + let n = Math.max(r.from, t.viewport.from), i = Math.min(r.to, t.viewport.to), s = t.textDirection == In.LTR, a = t.contentDOM, o = a.getBoundingClientRect(), l = vK(t), u = a.querySelector(".cm-line"), h = u && window.getComputedStyle(u), f = o.left + (h ? parseInt(h.paddingLeft) + Math.min(0, parseInt(h.textIndent)) : 0), d = o.right - (h ? parseInt(h.paddingRight) : 0), p = l7(t, n), g = l7(t, i), m = p.type == ia.Text ? p : null, v = g.type == ia.Text ? g : null; + if (m && (t.lineWrapping || p.widgetLineBreaks) && (m = QB(t, n, m)), v && (t.lineWrapping || g.widgetLineBreaks) && (v = QB(t, i, v)), m && v && m.from == v.from) return b(w(r.from, r.to, m)); { let S = m ? w(r.from, null, m) : O(p, !1), C = v ? w(null, r.to, v) : O(g, !0), T = []; @@ -8888,18 +8888,18 @@ function cwe(t, e, r) { return { top: T, bottom: T, horizontal: [] }; } } -function uwe(t, e) { +function lwe(t, e) { return t.constructor == e.constructor && t.eq(e); } -class hwe { +class cwe { constructor(e, r) { this.view = e, this.layer = r, this.drawn = [], this.scaleX = 1, this.scaleY = 1, this.measureReq = { read: this.measure.bind(this), write: this.draw.bind(this) }, this.dom = e.scrollDOM.appendChild(document.createElement("div")), this.dom.classList.add("cm-layer"), r.above && this.dom.classList.add("cm-layer-above"), r.class && this.dom.classList.add(r.class), this.scale(), this.dom.setAttribute("aria-hidden", "true"), this.setOrder(e.state), e.requestMeasure(this.measureReq), r.mount && r.mount(this.dom, e); } update(e) { - e.startState.facet(u4) != e.state.facet(u4) && this.setOrder(e.state), (this.layer.update(e, this.dom) || e.geometryChanged) && (this.scale(), e.view.requestMeasure(this.measureReq)); + e.startState.facet(c4) != e.state.facet(c4) && this.setOrder(e.state), (this.layer.update(e, this.dom) || e.geometryChanged) && (this.scale(), e.view.requestMeasure(this.measureReq)); } setOrder(e) { - let r = 0, n = e.facet(u4); + let r = 0, n = e.facet(c4); for (; r < n.length && n[r] != this.layer; ) r++; this.dom.style.zIndex = String((this.layer.above ? 150 : -1) - r); @@ -8912,7 +8912,7 @@ class hwe { (e != this.scaleX || r != this.scaleY) && (this.scaleX = e, this.scaleY = r, this.dom.style.transform = `scale(${1 / e}, ${1 / r})`); } draw(e) { - if (e.length != this.drawn.length || e.some((r, n) => !uwe(r, this.drawn[n]))) { + if (e.length != this.drawn.length || e.some((r, n) => !lwe(r, this.drawn[n]))) { let r = this.dom.firstChild, n = 0; for (let i of e) i.update && r && i.constructor && this.drawn[n].constructor && i.update(r, this.drawn[n]) ? (r = r.nextSibling, n++) : this.dom.insertBefore(i.draw(), r); @@ -8927,14 +8927,14 @@ class hwe { this.layer.destroy && this.layer.destroy(this.dom, this.view), this.dom.remove(); } } -const u4 = /* @__PURE__ */ _t.define(); -function wK(t) { +const c4 = /* @__PURE__ */ _t.define(); +function yK(t) { return [ - on.define((e) => new hwe(e, t)), - u4.of(t) + on.define((e) => new cwe(e, t)), + c4.of(t) ]; } -const OK = !Mt.ios, Ey = /* @__PURE__ */ _t.define({ +const bK = !Mt.ios, Ey = /* @__PURE__ */ _t.define({ combine(t) { return Yc(t, { cursorBlinkRate: 1200, @@ -8945,25 +8945,25 @@ const OK = !Mt.ios, Ey = /* @__PURE__ */ _t.define({ }); } }); -function kK(t = {}) { +function xK(t = {}) { return [ Ey.of(t), + uwe, + hwe, fwe, - dwe, - pwe, - Qj.of(!0) + Uj.of(!0) ]; } -function SK(t) { +function wK(t) { return t.startState.facet(Ey) != t.state.facet(Ey); } -const fwe = /* @__PURE__ */ wK({ +const uwe = /* @__PURE__ */ yK({ above: !0, markers(t) { let { state: e } = t, r = e.facet(Ey), n = []; for (let i of e.selection.ranges) { let s = i == e.selection.main; - if (i.empty ? !s || OK : r.drawRangeCursor) { + if (i.empty ? !s || bK : r.drawRangeCursor) { let a = s ? "cm-cursor cm-cursor-primary" : "cm-cursor cm-cursor-secondary", o = i.empty ? i : Ve.cursor(i.head, i.head > i.anchor ? -1 : 1); for (let l of Gb.forRange(t, a, o)) n.push(l); @@ -8973,34 +8973,34 @@ const fwe = /* @__PURE__ */ wK({ }, update(t, e) { t.transactions.some((n) => n.selection) && (e.style.animationName = e.style.animationName == "cm-blink" ? "cm-blink2" : "cm-blink"); - let r = SK(t); - return r && XB(t.state, e), t.docChanged || t.selectionSet || r; + let r = wK(t); + return r && WB(t.state, e), t.docChanged || t.selectionSet || r; }, mount(t, e) { - XB(e.state, t); + WB(e.state, t); }, class: "cm-cursorLayer" }); -function XB(t, e) { +function WB(t, e) { e.style.animationDuration = t.facet(Ey).cursorBlinkRate + "ms"; } -const dwe = /* @__PURE__ */ wK({ +const hwe = /* @__PURE__ */ yK({ above: !1, markers(t) { return t.state.selection.ranges.map((e) => e.empty ? [] : Gb.forRange(t, "cm-selectionBackground", e)).reduce((e, r) => e.concat(r)); }, update(t, e) { - return t.docChanged || t.selectionSet || t.viewportChanged || SK(t); + return t.docChanged || t.selectionSet || t.viewportChanged || wK(t); }, class: "cm-selectionLayer" -}), g7 = { +}), d7 = { ".cm-line": { "& ::selection": { backgroundColor: "transparent !important" }, "&::selection": { backgroundColor: "transparent !important" } } }; -OK && (g7[".cm-line"].caretColor = "transparent !important", g7[".cm-content"] = { caretColor: "transparent !important" }); -const pwe = /* @__PURE__ */ zl.highest(/* @__PURE__ */ ht.theme(g7)), TK = /* @__PURE__ */ Zt.define({ +bK && (d7[".cm-line"].caretColor = "transparent !important", d7[".cm-content"] = { caretColor: "transparent !important" }); +const fwe = /* @__PURE__ */ zl.highest(/* @__PURE__ */ ht.theme(d7)), OK = /* @__PURE__ */ Zt.define({ map(t, e) { return t == null ? null : e.mapPos(t); } @@ -9009,9 +9009,9 @@ const pwe = /* @__PURE__ */ zl.highest(/* @__PURE__ */ ht.theme(g7)), TK = /* @_ return null; }, update(t, e) { - return t != null && (t = e.changes.mapPos(t)), e.effects.reduce((r, n) => n.is(TK) ? n.value : r, t); + return t != null && (t = e.changes.mapPos(t)), e.effects.reduce((r, n) => n.is(OK) ? n.value : r, t); } -}), gwe = /* @__PURE__ */ on.fromClass(class { +}), dwe = /* @__PURE__ */ on.fromClass(class { constructor(t) { this.view = t, this.cursor = null, this.measureReq = { read: this.readPos.bind(this), write: this.drawCursor.bind(this) }; } @@ -9041,7 +9041,7 @@ const pwe = /* @__PURE__ */ zl.highest(/* @__PURE__ */ ht.theme(g7)), TK = /* @_ this.cursor && this.cursor.remove(); } setDropPos(t) { - this.view.state.field(vv) != t && this.view.dispatch({ effects: TK.of(t) }); + this.view.state.field(vv) != t && this.view.dispatch({ effects: OK.of(t) }); } }, { eventObservers: { @@ -9059,17 +9059,17 @@ const pwe = /* @__PURE__ */ zl.highest(/* @__PURE__ */ ht.theme(g7)), TK = /* @_ } } }); -function mwe() { - return [vv, gwe]; +function pwe() { + return [vv, dwe]; } -function ZB(t, e, r, n, i) { +function GB(t, e, r, n, i) { e.lastIndex = 0; for (let s = t.iterRange(r, n), a = r, o; !s.next().done; a += s.value.length) if (!s.lineBreak) for (; o = e.exec(s.value); ) i(a + o.index, o); } -function vwe(t, e) { +function gwe(t, e) { let r = t.visibleRanges; if (r.length == 1 && r[0].from == t.viewport.from && r[0].to == t.viewport.to) return r; @@ -9078,7 +9078,7 @@ function vwe(t, e) { i = Math.max(t.state.doc.lineAt(i).from, i - e), s = Math.min(t.state.doc.lineAt(s).to, s + e), n.length && n[n.length - 1].to >= i ? n[n.length - 1].to = s : n.push({ from: i, to: s }); return n; } -class ywe { +class mwe { constructor(e) { const { regexp: r, decoration: n, decorate: i, boundary: s, maxLength: a = 1e3 } = e; if (!r.global) @@ -9098,8 +9098,8 @@ class ywe { } createDeco(e) { let r = new Hi(), n = r.add.bind(r); - for (let { from: i, to: s } of vwe(e, this.maxLength)) - ZB(e.state.doc, this.regexp, i, s, (a, o) => this.addMatch(o, e, a, n)); + for (let { from: i, to: s } of gwe(e, this.maxLength)) + GB(e.state.doc, this.regexp, i, s, (a, o) => this.addMatch(o, e, a, n)); return r.finish(); } updateDeco(e, r) { @@ -9130,15 +9130,15 @@ class ywe { for (this.regexp.lastIndex = h - l.from; (p = this.regexp.exec(l.text)) && p.index < f - l.from; ) this.addMatch(p, e, p.index + l.from, g); else - ZB(e.state.doc, this.regexp, h, f, (m, v) => this.addMatch(v, e, m, g)); + GB(e.state.doc, this.regexp, h, f, (m, v) => this.addMatch(v, e, m, g)); r = r.update({ filterFrom: h, filterTo: f, filter: (m, v) => m < h || v > f, add: d }); } } return r; } } -const m7 = /x/.unicode != null ? "gu" : "g", bwe = /* @__PURE__ */ new RegExp(`[\0-\b --\x7F-\x9F\xAD\u061C\u200B\u200E\u200F\u2028\u2029\u202D\u202E\u2066\u2067\u2069\uFEFF\uFFF9-\uFFFC]`, m7), xwe = { +const p7 = /x/.unicode != null ? "gu" : "g", vwe = /* @__PURE__ */ new RegExp(`[\0-\b +-\x7F-\x9F\xAD\u061C\u200B\u200E\u200F\u2028\u2029\u202D\u202E\u2066\u2067\u2069\uFEFF\uFFF9-\uFFFC]`, p7), ywe = { 0: "null", 7: "bell", 8: "backspace", @@ -9161,63 +9161,63 @@ const m7 = /x/.unicode != null ? "gu" : "g", bwe = /* @__PURE__ */ new RegExp(`[ 65279: "zero width no-break space", 65532: "object replacement" }; -let TE = null; -function wwe() { +let kE = null; +function bwe() { var t; - if (TE == null && typeof document < "u" && document.body) { + if (kE == null && typeof document < "u" && document.body) { let e = document.body.style; - TE = ((t = e.tabSize) !== null && t !== void 0 ? t : e.MozTabSize) != null; + kE = ((t = e.tabSize) !== null && t !== void 0 ? t : e.MozTabSize) != null; } - return TE || !1; + return kE || !1; } -const h4 = /* @__PURE__ */ _t.define({ +const u4 = /* @__PURE__ */ _t.define({ combine(t) { let e = Yc(t, { render: null, - specialChars: bwe, + specialChars: vwe, addSpecialChars: null }); - return (e.replaceTabs = !wwe()) && (e.specialChars = new RegExp(" |" + e.specialChars.source, m7)), e.addSpecialChars && (e.specialChars = new RegExp(e.specialChars.source + "|" + e.addSpecialChars.source, m7)), e; + return (e.replaceTabs = !bwe()) && (e.specialChars = new RegExp(" |" + e.specialChars.source, p7)), e.addSpecialChars && (e.specialChars = new RegExp(e.specialChars.source + "|" + e.addSpecialChars.source, p7)), e; } }); -function CK(t = {}) { - return [h4.of(t), Owe()]; +function kK(t = {}) { + return [u4.of(t), xwe()]; } -let jB = null; -function Owe() { - return jB || (jB = on.fromClass(class { +let HB = null; +function xwe() { + return HB || (HB = on.fromClass(class { constructor(t) { - this.view = t, this.decorations = Et.none, this.decorationCache = /* @__PURE__ */ Object.create(null), this.decorator = this.makeDecorator(t.state.facet(h4)), this.decorations = this.decorator.createDeco(t); + this.view = t, this.decorations = Et.none, this.decorationCache = /* @__PURE__ */ Object.create(null), this.decorator = this.makeDecorator(t.state.facet(u4)), this.decorations = this.decorator.createDeco(t); } makeDecorator(t) { - return new ywe({ + return new mwe({ regexp: t.specialChars, decoration: (e, r, n) => { let { doc: i } = r.state, s = ss(e[0], 0); if (s == 9) { let a = i.lineAt(n), o = r.state.tabSize, l = Ml(a.text, o, n - a.from); return Et.replace({ - widget: new Cwe((o - l % o) * this.view.defaultCharacterWidth / this.view.scaleX) + widget: new Swe((o - l % o) * this.view.defaultCharacterWidth / this.view.scaleX) }); } - return this.decorationCache[s] || (this.decorationCache[s] = Et.replace({ widget: new Twe(t, s) })); + return this.decorationCache[s] || (this.decorationCache[s] = Et.replace({ widget: new kwe(t, s) })); }, boundary: t.replaceTabs ? void 0 : /[^]/ }); } update(t) { - let e = t.state.facet(h4); - t.startState.facet(h4) != e ? (this.decorator = this.makeDecorator(e), this.decorations = this.decorator.createDeco(t.view)) : this.decorations = this.decorator.updateDeco(t, this.decorations); + let e = t.state.facet(u4); + t.startState.facet(u4) != e ? (this.decorator = this.makeDecorator(e), this.decorations = this.decorator.createDeco(t.view)) : this.decorations = this.decorator.updateDeco(t, this.decorations); } }, { decorations: (t) => t.decorations })); } -const kwe = "\u2022"; -function Swe(t) { - return t >= 32 ? kwe : t == 10 ? "\u2424" : String.fromCharCode(9216 + t); +const wwe = "\u2022"; +function Owe(t) { + return t >= 32 ? wwe : t == 10 ? "\u2424" : String.fromCharCode(9216 + t); } -class Twe extends za { +class kwe extends za { constructor(e, r) { super(), this.options = e, this.code = r; } @@ -9225,7 +9225,7 @@ class Twe extends za { return e.code == this.code; } toDOM(e) { - let r = Swe(this.code), n = e.state.phrase("Control character") + " " + (xwe[this.code] || "0x" + this.code.toString(16)), i = this.options.render && this.options.render(this.code, n, r); + let r = Owe(this.code), n = e.state.phrase("Control character") + " " + (ywe[this.code] || "0x" + this.code.toString(16)), i = this.options.render && this.options.render(this.code, n, r); if (i) return i; let s = document.createElement("span"); @@ -9235,7 +9235,7 @@ class Twe extends za { return !1; } } -class Cwe extends za { +class Swe extends za { constructor(e) { super(), this.width = e; } @@ -9250,10 +9250,10 @@ class Cwe extends za { return !1; } } -function EK() { - return _we; +function SK() { + return Cwe; } -const Ewe = /* @__PURE__ */ Et.line({ class: "cm-activeLine" }), _we = /* @__PURE__ */ on.fromClass(class { +const Twe = /* @__PURE__ */ Et.line({ class: "cm-activeLine" }), Cwe = /* @__PURE__ */ on.fromClass(class { constructor(t) { this.decorations = this.getDeco(t); } @@ -9264,16 +9264,16 @@ const Ewe = /* @__PURE__ */ Et.line({ class: "cm-activeLine" }), _we = /* @__PUR let e = -1, r = []; for (let n of t.state.selection.ranges) { let i = t.lineBlockAt(n.head); - i.from > e && (r.push(Ewe.range(i.from)), e = i.from); + i.from > e && (r.push(Twe.range(i.from)), e = i.from); } return Et.set(r); } }, { decorations: (t) => t.decorations -}), v7 = 2e3; -function Awe(t, e, r) { +}), g7 = 2e3; +function Ewe(t, e, r) { let n = Math.min(e.line, r.line), i = Math.max(e.line, r.line), s = []; - if (e.off > v7 || r.off > v7 || e.col < 0 || r.col < 0) { + if (e.off > g7 || r.off > g7 || e.col < 0 || r.col < 0) { let a = Math.min(e.off, r.off), o = Math.max(e.off, r.off); for (let l = n; l <= i; l++) { let u = t.doc.line(l); @@ -9282,27 +9282,27 @@ function Awe(t, e, r) { } else { let a = Math.min(e.col, r.col), o = Math.max(e.col, r.col); for (let l = n; l <= i; l++) { - let u = t.doc.line(l), h = XA(u.text, a, t.tabSize, !0); + let u = t.doc.line(l), h = GA(u.text, a, t.tabSize, !0); if (h < 0) s.push(Ve.cursor(u.to)); else { - let f = XA(u.text, o, t.tabSize); + let f = GA(u.text, o, t.tabSize); s.push(Ve.range(u.from + h, u.from + f)); } } } return s; } -function Lwe(t, e) { +function _we(t, e) { let r = t.coordsAtPos(t.viewport.from); return r ? Math.round(Math.abs((r.left - e) / t.defaultCharacterWidth)) : -1; } -function KB(t, e) { - let r = t.posAtCoords({ x: e.clientX, y: e.clientY }, !1), n = t.state.doc.lineAt(r), i = r - n.from, s = i > v7 ? -1 : i == n.length ? Lwe(t, e.clientX) : Ml(n.text, t.state.tabSize, r - n.from); +function XB(t, e) { + let r = t.posAtCoords({ x: e.clientX, y: e.clientY }, !1), n = t.state.doc.lineAt(r), i = r - n.from, s = i > g7 ? -1 : i == n.length ? _we(t, e.clientX) : Ml(n.text, t.state.tabSize, r - n.from); return { line: n.number, col: s, off: i }; } -function Rwe(t, e) { - let r = KB(t, e), n = t.state.selection; +function Awe(t, e) { + let r = XB(t, e), n = t.state.selection; return r ? { update(i) { if (i.docChanged) { @@ -9311,26 +9311,26 @@ function Rwe(t, e) { } }, get(i, s, a) { - let o = KB(t, i); + let o = XB(t, i); if (!o) return n; - let l = Awe(t.state, r, o); + let l = Ewe(t.state, r, o); return l.length ? a ? Ve.create(l.concat(n.ranges)) : Ve.create(l) : n; } } : null; } -function Mwe(t) { +function Lwe(t) { let e = (t == null ? void 0 : t.eventFilter) || ((r) => r.altKey && r.button == 0); - return ht.mouseSelectionStyle.of((r, n) => e(n) ? Rwe(r, n) : null); + return ht.mouseSelectionStyle.of((r, n) => e(n) ? Awe(r, n) : null); } -const Dwe = { +const Rwe = { Alt: [18, (t) => !!t.altKey], Control: [17, (t) => !!t.ctrlKey], Shift: [16, (t) => !!t.shiftKey], Meta: [91, (t) => !!t.metaKey] -}, Nwe = { style: "cursor: crosshair" }; -function Iwe(t = {}) { - let [e, r] = Dwe[t.key || "Alt"], n = on.fromClass(class { +}, Mwe = { style: "cursor: crosshair" }; +function Dwe(t = {}) { + let [e, r] = Rwe[t.key || "Alt"], n = on.fromClass(class { constructor(i) { this.view = i, this.isDown = !1; } @@ -9354,12 +9354,12 @@ function Iwe(t = {}) { n, ht.contentAttributes.of((i) => { var s; - return !((s = i.plugin(n)) === null || s === void 0) && s.isDown ? Nwe : null; + return !((s = i.plugin(n)) === null || s === void 0) && s.isDown ? Mwe : null; }) ]; } const Lm = "-10000px"; -class _K { +class TK { constructor(e, r, n) { this.facet = r, this.createTooltipView = n, this.input = e.state.facet(r), this.tooltips = this.input.filter((i) => i), this.tooltipViews = this.tooltips.map(n); } @@ -9392,24 +9392,24 @@ class _K { return r && (o.forEach((l, u) => r[u] = l), r.length = o.length), this.input = i, this.tooltips = s, this.tooltipViews = a, !0; } } -function Pwe(t) { +function Nwe(t) { let { win: e } = t; return { top: 0, left: 0, bottom: e.innerHeight, right: e.innerWidth }; } -const CE = /* @__PURE__ */ _t.define({ +const SE = /* @__PURE__ */ _t.define({ combine: (t) => { var e, r, n; return { position: Mt.ios ? "absolute" : ((e = t.find((i) => i.position)) === null || e === void 0 ? void 0 : e.position) || "fixed", parent: ((r = t.find((i) => i.parent)) === null || r === void 0 ? void 0 : r.parent) || null, - tooltipSpace: ((n = t.find((i) => i.tooltipSpace)) === null || n === void 0 ? void 0 : n.tooltipSpace) || Pwe + tooltipSpace: ((n = t.find((i) => i.tooltipSpace)) === null || n === void 0 ? void 0 : n.tooltipSpace) || Nwe }; } -}), JB = /* @__PURE__ */ new WeakMap(), XR = /* @__PURE__ */ on.fromClass(class { +}), ZB = /* @__PURE__ */ new WeakMap(), WR = /* @__PURE__ */ on.fromClass(class { constructor(t) { this.view = t, this.above = [], this.inView = !0, this.madeAbsolute = !1, this.lastTransaction = 0, this.measureTimeout = -1; - let e = t.state.facet(CE); - this.position = e.position, this.parent = e.parent, this.classes = t.themeClasses, this.createContainer(), this.measureReq = { read: this.readMeasure.bind(this), write: this.writeMeasure.bind(this), key: this }, this.manager = new _K(t, ZR, (r) => this.createTooltip(r)), this.intersectionObserver = typeof IntersectionObserver == "function" ? new IntersectionObserver((r) => { + let e = t.state.facet(SE); + this.position = e.position, this.parent = e.parent, this.classes = t.themeClasses, this.createContainer(), this.measureReq = { read: this.readMeasure.bind(this), write: this.writeMeasure.bind(this), key: this }, this.manager = new TK(t, GR, (r) => this.createTooltip(r)), this.intersectionObserver = typeof IntersectionObserver == "function" ? new IntersectionObserver((r) => { Date.now() > this.lastTransaction - 50 && r.length > 0 && r[r.length - 1].intersectionRatio < 1 && this.measureSoon(); }, { threshold: [1] }) : null, this.observeIntersection(), t.win.addEventListener("resize", this.measureSoon = this.measureSoon.bind(this)), this.maybeMeasure(); } @@ -9432,7 +9432,7 @@ const CE = /* @__PURE__ */ _t.define({ t.transactions.length && (this.lastTransaction = Date.now()); let e = this.manager.update(t, this.above); e && this.observeIntersection(); - let r = e || t.geometryChanged, n = t.state.facet(CE); + let r = e || t.geometryChanged, n = t.state.facet(SE); if (n.position != this.position && !this.madeAbsolute) { this.position = n.position; for (let i of this.manager.tooltipViews) @@ -9488,7 +9488,7 @@ const CE = /* @__PURE__ */ _t.define({ return a.getCoords ? a.getCoords(i.pos) : this.view.coordsAtPos(i.pos); }), size: this.manager.tooltipViews.map(({ dom: i }) => i.getBoundingClientRect()), - space: this.view.state.facet(CE).tooltipSpace(this.view), + space: this.view.state.facet(SE).tooltipSpace(this.view), scaleX: e, scaleY: r, makeAbsolute: n @@ -9508,7 +9508,7 @@ const CE = /* @__PURE__ */ _t.define({ h.style.top = Lm; continue; } - let p = l.arrow ? u.dom.querySelector(".cm-tooltip-arrow") : null, g = p ? 7 : 0, m = d.right - d.left, v = (e = JB.get(u)) !== null && e !== void 0 ? e : d.bottom - d.top, y = u.offset || Bwe, b = this.view.textDirection == In.LTR, w = d.width > n.right - n.left ? b ? n.left : n.right - d.width : b ? Math.min(f.left - (p ? 14 : 0) + y.x, n.right - m) : Math.max(n.left, f.left - m + (p ? 14 : 0) - y.x), O = this.above[o]; + let p = l.arrow ? u.dom.querySelector(".cm-tooltip-arrow") : null, g = p ? 7 : 0, m = d.right - d.left, v = (e = ZB.get(u)) !== null && e !== void 0 ? e : d.bottom - d.top, y = u.offset || Pwe, b = this.view.textDirection == In.LTR, w = d.width > n.right - n.left ? b ? n.left : n.right - d.width : b ? Math.min(f.left - (p ? 14 : 0) + y.x, n.right - m) : Math.max(n.left, f.left - m + (p ? 14 : 0) - y.x), O = this.above[o]; !l.strictSide && (O ? f.top - (d.bottom - d.top) - y.y < n.top : f.bottom + (d.bottom - d.top) + y.y > n.bottom) && O == n.bottom - f.bottom > f.top - n.top && (O = this.above[o] = !O); let S = (O ? f.top - n.top : n.bottom - f.bottom) - g; if (S < v && u.resize !== !1) { @@ -9516,7 +9516,7 @@ const CE = /* @__PURE__ */ _t.define({ h.style.top = Lm; continue; } - JB.set(u, v), h.style.height = (v = S) / s + "px"; + ZB.set(u, v), h.style.height = (v = S) / s + "px"; } else h.style.height && (h.style.height = ""); let C = O ? f.top - v - g - y.y : f.bottom + g + y.y, T = w + m; @@ -9541,7 +9541,7 @@ const CE = /* @__PURE__ */ _t.define({ this.maybeMeasure(); } } -}), $we = /* @__PURE__ */ ht.baseTheme({ +}), Iwe = /* @__PURE__ */ ht.baseTheme({ ".cm-tooltip": { zIndex: 100, boxSizing: "border-box" @@ -9602,15 +9602,15 @@ const CE = /* @__PURE__ */ _t.define({ borderBottomColor: "transparent" } } -}), Bwe = { x: 0, y: 0 }, ZR = /* @__PURE__ */ _t.define({ - enables: [XR, $we] -}), T5 = /* @__PURE__ */ _t.define(); -class FS { +}), Pwe = { x: 0, y: 0 }, GR = /* @__PURE__ */ _t.define({ + enables: [WR, Iwe] +}), S5 = /* @__PURE__ */ _t.define(); +class BS { static create(e) { - return new FS(e); + return new BS(e); } constructor(e) { - this.view = e, this.mounted = !1, this.dom = document.createElement("div"), this.dom.classList.add("cm-tooltip-hover"), this.manager = new _K(e, T5, (r) => this.createHostedView(r)); + this.view = e, this.mounted = !1, this.dom = document.createElement("div"), this.dom.classList.add("cm-tooltip-hover"), this.manager = new TK(e, S5, (r) => this.createHostedView(r)); } createHostedView(e) { let r = e.create(this.view); @@ -9659,20 +9659,20 @@ class FS { return this.passProp("resize"); } } -const Fwe = /* @__PURE__ */ ZR.compute([T5], (t) => { - let e = t.facet(T5).filter((r) => r); +const $we = /* @__PURE__ */ GR.compute([S5], (t) => { + let e = t.facet(S5).filter((r) => r); return e.length === 0 ? null : { pos: Math.min(...e.map((r) => r.pos)), end: Math.max(...e.map((r) => { var n; return (n = r.end) !== null && n !== void 0 ? n : r.pos; })), - create: FS.create, + create: BS.create, above: e[0].above, arrow: e.some((r) => r.arrow) }; }); -class zwe { +class Bwe { constructor(e, r, n, i, s) { this.view = e, this.source = r, this.field = n, this.setHover = i, this.hoverTime = s, this.hoverTimeout = -1, this.restartTimeout = -1, this.pending = null, this.lastMove = { x: 0, y: 0, target: e.dom, time: 0 }, this.checkHover = this.checkHover.bind(this), e.dom.addEventListener("mouseleave", this.mouseleave = this.mouseleave.bind(this)), e.dom.addEventListener("mousemove", this.mousemove = this.mousemove.bind(this)); } @@ -9715,16 +9715,16 @@ class zwe { a && e.dispatch({ effects: this.setHover.of(a) }); } get tooltip() { - let e = this.view.plugin(XR), r = e ? e.manager.tooltips.findIndex((n) => n.create == FS.create) : -1; + let e = this.view.plugin(WR), r = e ? e.manager.tooltips.findIndex((n) => n.create == BS.create) : -1; return r > -1 ? e.manager.tooltipViews[r] : null; } mousemove(e) { var r; this.lastMove = { x: e.clientX, y: e.clientY, target: e.target, time: Date.now() }, this.hoverTimeout < 0 && (this.hoverTimeout = setTimeout(this.checkHover, this.hoverTime)); let { active: n, tooltip: i } = this; - if (n && i && !Vwe(i.dom, e) || this.pending) { + if (n && i && !Fwe(i.dom, e) || this.pending) { let { pos: s } = n || this.pending, a = (r = n == null ? void 0 : n.end) !== null && r !== void 0 ? r : s; - (s == a ? this.view.posAtCoords(this.lastMove) != s : !Uwe(this.view, s, a, e.clientX, e.clientY)) && (this.view.dispatch({ effects: this.setHover.of(null) }), this.pending = null); + (s == a ? this.view.posAtCoords(this.lastMove) != s : !zwe(this.view, s, a, e.clientX, e.clientY)) && (this.view.dispatch({ effects: this.setHover.of(null) }), this.pending = null); } } mouseleave(e) { @@ -9746,18 +9746,18 @@ class zwe { } } const ww = 4; -function Vwe(t, e) { +function Fwe(t, e) { let r = t.getBoundingClientRect(); return e.clientX >= r.left - ww && e.clientX <= r.right + ww && e.clientY >= r.top - ww && e.clientY <= r.bottom + ww; } -function Uwe(t, e, r, n, i, s) { +function zwe(t, e, r, n, i, s) { let a = t.scrollDOM.getBoundingClientRect(), o = t.documentTop + t.documentPadding.top + t.contentHeight; if (a.left > n || a.right < n || a.top > i || Math.min(a.bottom, o) < i) return !1; let l = t.posAtCoords({ x: n, y: i }, !1); return l >= e && l <= r; } -function qwe(t, e = {}) { +function Vwe(t, e = {}) { let r = Zt.define(), n = $n.define({ create() { return null; @@ -9773,25 +9773,25 @@ function qwe(t, e = {}) { o.pos = a, i.end != null && (o.end = s.changes.mapPos(i.end)), i = o; } for (let a of s.effects) - a.is(r) && (i = a.value), a.is(Ywe) && (i = null); + a.is(r) && (i = a.value), a.is(Uwe) && (i = null); return i; }, - provide: (i) => T5.from(i) + provide: (i) => S5.from(i) }); return [ n, - on.define((i) => new zwe(i, t, n, r, e.hoverTime || 300)), - Fwe + on.define((i) => new Bwe(i, t, n, r, e.hoverTime || 300)), + $we ]; } -function AK(t, e) { - let r = t.plugin(XR); +function CK(t, e) { + let r = t.plugin(WR); if (!r) return null; let n = r.manager.tooltips.indexOf(e); return n < 0 ? null : r.manager.tooltipViews[n]; } -const Ywe = /* @__PURE__ */ Zt.define(), eF = /* @__PURE__ */ _t.define({ +const Uwe = /* @__PURE__ */ Zt.define(), jB = /* @__PURE__ */ _t.define({ combine(t) { let e, r; for (let n of t) @@ -9800,19 +9800,19 @@ const Ywe = /* @__PURE__ */ Zt.define(), eF = /* @__PURE__ */ _t.define({ } }); function _y(t, e) { - let r = t.plugin(LK), n = r ? r.specs.indexOf(e) : -1; + let r = t.plugin(EK), n = r ? r.specs.indexOf(e) : -1; return n > -1 ? r.panels[n] : null; } -const LK = /* @__PURE__ */ on.fromClass(class { +const EK = /* @__PURE__ */ on.fromClass(class { constructor(t) { this.input = t.state.facet(Ay), this.specs = this.input.filter((r) => r), this.panels = this.specs.map((r) => r(t)); - let e = t.state.facet(eF); + let e = t.state.facet(jB); this.top = new Ow(t, !0, e.topContainer), this.bottom = new Ow(t, !1, e.bottomContainer), this.top.sync(this.panels.filter((r) => r.top)), this.bottom.sync(this.panels.filter((r) => !r.top)); for (let r of this.panels) r.dom.classList.add("cm-panel"), r.mount && r.mount(); } update(t) { - let e = t.state.facet(eF); + let e = t.state.facet(jB); this.top.container != e.topContainer && (this.top.sync([]), this.top = new Ow(t.view, !0, e.topContainer)), this.bottom.container != e.bottomContainer && (this.bottom.sync([]), this.bottom = new Ow(t.view, !1, e.bottomContainer)), this.top.syncClasses(), this.bottom.syncClasses(); let r = t.state.facet(Ay); if (r != this.input) { @@ -9860,12 +9860,12 @@ class Ow { for (let r of this.panels) if (r.dom.parentNode == this.dom) { for (; e != r.dom; ) - e = tF(e); + e = KB(e); e = e.nextSibling; } else this.dom.insertBefore(r.dom, e); for (; e; ) - e = tF(e); + e = KB(e); } scrollMargin() { return !this.dom || this.container ? 0 : Math.max(0, this.top ? this.dom.getBoundingClientRect().bottom - Math.max(0, this.view.scrollDOM.getBoundingClientRect().top) : Math.min(innerHeight, this.view.scrollDOM.getBoundingClientRect().bottom) - this.dom.getBoundingClientRect().top); @@ -9879,12 +9879,12 @@ class Ow { } } } -function tF(t) { +function KB(t) { let e = t.nextSibling; return t.remove(), e; } const Ay = /* @__PURE__ */ _t.define({ - enables: LK + enables: EK }); class Uo extends Zd { compare(e) { @@ -9901,7 +9901,7 @@ Uo.prototype.toDOM = void 0; Uo.prototype.mapMode = Si.TrackBefore; Uo.prototype.startSide = Uo.prototype.endSide = -1; Uo.prototype.point = !0; -const f4 = /* @__PURE__ */ _t.define(), Qwe = { +const h4 = /* @__PURE__ */ _t.define(), qwe = { class: "", renderEmptyElements: !1, elementStyle: "", @@ -9913,42 +9913,42 @@ const f4 = /* @__PURE__ */ _t.define(), Qwe = { updateSpacer: null, domEventHandlers: {} }, Hv = /* @__PURE__ */ _t.define(); -function zS(t) { - return [RK(), Hv.of(Object.assign(Object.assign({}, Qwe), t))]; +function FS(t) { + return [_K(), Hv.of(Object.assign(Object.assign({}, qwe), t))]; } -const y7 = /* @__PURE__ */ _t.define({ +const m7 = /* @__PURE__ */ _t.define({ combine: (t) => t.some((e) => e) }); -function RK(t) { +function _K(t) { let e = [ - Wwe + Ywe ]; - return t && t.fixed === !1 && e.push(y7.of(!0)), e; + return t && t.fixed === !1 && e.push(m7.of(!0)), e; } -const Wwe = /* @__PURE__ */ on.fromClass(class { +const Ywe = /* @__PURE__ */ on.fromClass(class { constructor(t) { - this.view = t, this.prevViewport = t.viewport, this.dom = document.createElement("div"), this.dom.className = "cm-gutters", this.dom.setAttribute("aria-hidden", "true"), this.dom.style.minHeight = this.view.contentHeight / this.view.scaleY + "px", this.gutters = t.state.facet(Hv).map((e) => new nF(t, e)); + this.view = t, this.prevViewport = t.viewport, this.dom = document.createElement("div"), this.dom.className = "cm-gutters", this.dom.setAttribute("aria-hidden", "true"), this.dom.style.minHeight = this.view.contentHeight / this.view.scaleY + "px", this.gutters = t.state.facet(Hv).map((e) => new eF(t, e)); for (let e of this.gutters) this.dom.appendChild(e.dom); - this.fixed = !t.state.facet(y7), this.fixed && (this.dom.style.position = "sticky"), this.syncGutters(!1), t.scrollDOM.insertBefore(this.dom, t.contentDOM); + this.fixed = !t.state.facet(m7), this.fixed && (this.dom.style.position = "sticky"), this.syncGutters(!1), t.scrollDOM.insertBefore(this.dom, t.contentDOM); } update(t) { if (this.updateGutters(t)) { let e = this.prevViewport, r = t.view.viewport, n = Math.min(e.to, r.to) - Math.max(e.from, r.from); this.syncGutters(n < (r.to - r.from) * 0.8); } - t.geometryChanged && (this.dom.style.minHeight = this.view.contentHeight + "px"), this.view.state.facet(y7) != !this.fixed && (this.fixed = !this.fixed, this.dom.style.position = this.fixed ? "sticky" : ""), this.prevViewport = t.view.viewport; + t.geometryChanged && (this.dom.style.minHeight = this.view.contentHeight + "px"), this.view.state.facet(m7) != !this.fixed && (this.fixed = !this.fixed, this.dom.style.position = this.fixed ? "sticky" : ""), this.prevViewport = t.view.viewport; } syncGutters(t) { let e = this.dom.nextSibling; t && this.dom.remove(); - let r = Er.iter(this.view.state.facet(f4), this.view.viewport.from), n = [], i = this.gutters.map((s) => new Gwe(s, this.view.viewport, -this.view.documentPadding.top)); + let r = Er.iter(this.view.state.facet(h4), this.view.viewport.from), n = [], i = this.gutters.map((s) => new Qwe(s, this.view.viewport, -this.view.documentPadding.top)); for (let s of this.view.viewportLineBlocks) if (n.length && (n = []), Array.isArray(s.type)) { let a = !0; for (let o of s.type) if (o.type == ia.Text && a) { - b7(r, n, o.from); + v7(r, n, o.from); for (let l of i) l.line(this.view, o, n); a = !1; @@ -9956,7 +9956,7 @@ const Wwe = /* @__PURE__ */ on.fromClass(class { for (let l of i) l.widget(this.view, o); } else if (s.type == ia.Text) { - b7(r, n, s.from); + v7(r, n, s.from); for (let a of i) a.line(this.view, s, n); } else if (s.widget) @@ -9967,7 +9967,7 @@ const Wwe = /* @__PURE__ */ on.fromClass(class { t && this.view.scrollDOM.insertBefore(this.dom, e); } updateGutters(t) { - let e = t.startState.facet(Hv), r = t.state.facet(Hv), n = t.docChanged || t.heightChanged || t.viewportChanged || !Er.eq(t.startState.facet(f4), t.state.facet(f4), t.view.viewport.from, t.view.viewport.to); + let e = t.startState.facet(Hv), r = t.state.facet(Hv), n = t.docChanged || t.heightChanged || t.viewportChanged || !Er.eq(t.startState.facet(h4), t.state.facet(h4), t.view.viewport.from, t.view.viewport.to); if (e == r) for (let i of this.gutters) i.update(t) && (n = !0); @@ -9976,7 +9976,7 @@ const Wwe = /* @__PURE__ */ on.fromClass(class { let i = []; for (let s of r) { let a = e.indexOf(s); - a < 0 ? i.push(new nF(this.view, s)) : (this.gutters[a].update(t), i.push(this.gutters[a])); + a < 0 ? i.push(new eF(this.view, s)) : (this.gutters[a].update(t), i.push(this.gutters[a])); } for (let s of this.gutters) s.dom.remove(), i.indexOf(s) < 0 && s.destroy(); @@ -9997,21 +9997,21 @@ const Wwe = /* @__PURE__ */ on.fromClass(class { return !r || r.gutters.length == 0 || !r.fixed ? null : e.textDirection == In.LTR ? { left: r.dom.offsetWidth * e.scaleX } : { right: r.dom.offsetWidth * e.scaleX }; }) }); -function rF(t) { +function JB(t) { return Array.isArray(t) ? t : [t]; } -function b7(t, e, r) { +function v7(t, e, r) { for (; t.value && t.from <= r; ) t.from == r && e.push(t.value), t.next(); } -class Gwe { +class Qwe { constructor(e, r, n) { this.gutter = e, this.height = n, this.i = 0, this.cursor = Er.iter(e.markers, r.from); } addElement(e, r, n) { let { gutter: i } = this, s = (r.top - this.height) / e.scaleY, a = r.height / e.scaleY; if (this.i == i.elements.length) { - let o = new MK(e, a, s, n); + let o = new AK(e, a, s, n); i.elements.push(o), i.dom.appendChild(o.dom); } else i.elements[this.i].update(e, a, s, n); @@ -10019,7 +10019,7 @@ class Gwe { } line(e, r, n) { let i = []; - b7(this.cursor, i, r.from), n.length && (i = i.concat(n)); + v7(this.cursor, i, r.from), n.length && (i = i.concat(n)); let s = this.gutter.config.lineMarker(e, r, i); s && i.unshift(s); let a = this.gutter; @@ -10037,7 +10037,7 @@ class Gwe { } } } -class nF { +class eF { constructor(e, r) { this.view = e, this.config = r, this.elements = [], this.spacer = null, this.dom = document.createElement("div"), this.dom.className = "cm-gutter" + (this.config.class ? " " + this.config.class : ""); for (let n in r.domEventHandlers) @@ -10053,11 +10053,11 @@ class nF { let o = e.lineBlockAtHeight(a - e.documentTop); r.domEventHandlers[n](e, o, i) && i.preventDefault(); }); - this.markers = rF(r.markers(e)), r.initialSpacer && (this.spacer = new MK(e, 0, 0, [r.initialSpacer(e)]), this.dom.appendChild(this.spacer.dom), this.spacer.dom.style.cssText += "visibility: hidden; pointer-events: none"); + this.markers = JB(r.markers(e)), r.initialSpacer && (this.spacer = new AK(e, 0, 0, [r.initialSpacer(e)]), this.dom.appendChild(this.spacer.dom), this.spacer.dom.style.cssText += "visibility: hidden; pointer-events: none"); } update(e) { let r = this.markers; - if (this.markers = rF(this.config.markers(e.view)), this.spacer && this.config.updateSpacer) { + if (this.markers = JB(this.config.markers(e.view)), this.spacer && this.config.updateSpacer) { let i = this.config.updateSpacer(this.spacer.markers[0], e); i != this.spacer.markers[0] && this.spacer.update(e.view, 0, 0, [i]); } @@ -10069,12 +10069,12 @@ class nF { e.destroy(); } } -class MK { +class AK { constructor(e, r, n, i) { this.height = -1, this.above = 0, this.markers = [], this.dom = document.createElement("div"), this.dom.className = "cm-gutterElement", this.update(e, r, n, i); } update(e, r, n, i) { - this.height != r && (this.height = r, this.dom.style.height = r + "px"), this.above != n && (this.dom.style.marginTop = (this.above = n) ? n + "px" : ""), Hwe(this.markers, i) || this.setMarkers(e, i); + this.height != r && (this.height = r, this.dom.style.height = r + "px"), this.above != n && (this.dom.style.marginTop = (this.above = n) ? n + "px" : ""), Wwe(this.markers, i) || this.setMarkers(e, i); } setMarkers(e, r) { let n = "cm-gutterElement", i = this.dom.firstChild; @@ -10108,7 +10108,7 @@ class MK { this.setMarkers(null, []); } } -function Hwe(t, e) { +function Wwe(t, e) { if (t.length != e.length) return !1; for (let r = 0; r < t.length; r++) @@ -10116,7 +10116,7 @@ function Hwe(t, e) { return !1; return !0; } -const Xwe = /* @__PURE__ */ _t.define(), Rp = /* @__PURE__ */ _t.define({ +const Gwe = /* @__PURE__ */ _t.define(), Rp = /* @__PURE__ */ _t.define({ combine(t) { return Yc(t, { formatNumber: String, domEventHandlers: {} }, { domEventHandlers(e, r) { @@ -10130,7 +10130,7 @@ const Xwe = /* @__PURE__ */ _t.define(), Rp = /* @__PURE__ */ _t.define({ }); } }); -class EE extends Uo { +class TE extends Uo { constructor(e) { super(), this.number = e; } @@ -10141,59 +10141,59 @@ class EE extends Uo { return document.createTextNode(this.number); } } -function _E(t, e) { +function CE(t, e) { return t.state.facet(Rp).formatNumber(e, t.state); } -const Zwe = /* @__PURE__ */ Hv.compute([Rp], (t) => ({ +const Hwe = /* @__PURE__ */ Hv.compute([Rp], (t) => ({ class: "cm-lineNumbers", renderEmptyElements: !1, markers(e) { - return e.state.facet(Xwe); + return e.state.facet(Gwe); }, lineMarker(e, r, n) { - return n.some((i) => i.toDOM) ? null : new EE(_E(e, e.state.doc.lineAt(r.from).number)); + return n.some((i) => i.toDOM) ? null : new TE(CE(e, e.state.doc.lineAt(r.from).number)); }, widgetMarker: () => null, lineMarkerChange: (e) => e.startState.facet(Rp) != e.state.facet(Rp), initialSpacer(e) { - return new EE(_E(e, iF(e.state.doc.lines))); + return new TE(CE(e, tF(e.state.doc.lines))); }, updateSpacer(e, r) { - let n = _E(r.view, iF(r.view.state.doc.lines)); - return n == e.number ? e : new EE(n); + let n = CE(r.view, tF(r.view.state.doc.lines)); + return n == e.number ? e : new TE(n); }, domEventHandlers: t.facet(Rp).domEventHandlers })); -function jwe(t = {}) { +function Xwe(t = {}) { return [ Rp.of(t), - RK(), - Zwe + _K(), + Hwe ]; } -function iF(t) { +function tF(t) { let e = 9; for (; e < t; ) e = e * 10 + 9; return e; } -const Kwe = /* @__PURE__ */ new class extends Uo { +const Zwe = /* @__PURE__ */ new class extends Uo { constructor() { super(...arguments), this.elementClass = "cm-activeLineGutter"; } -}(), Jwe = /* @__PURE__ */ f4.compute(["selection"], (t) => { +}(), jwe = /* @__PURE__ */ h4.compute(["selection"], (t) => { let e = [], r = -1; for (let n of t.selection.ranges) { let i = t.doc.lineAt(n.head).from; - i > r && (r = i, e.push(Kwe.range(i))); + i > r && (r = i, e.push(Zwe.range(i))); } return Er.of(e); }); -function eOe() { - return Jwe; +function Kwe() { + return jwe; } -const DK = 1024; -let tOe = 0; +const LK = 1024; +let Jwe = 0; class Mo { constructor(e, r) { this.from = e, this.to = r; @@ -10201,7 +10201,7 @@ class Mo { } class or { constructor(e = {}) { - this.id = tOe++, this.perNode = !!e.perNode, this.deserialize = e.deserialize || (() => { + this.id = Jwe++, this.perNode = !!e.perNode, this.deserialize = e.deserialize || (() => { throw new Error("This node type doesn't define a deserialize function"); }); } @@ -10228,13 +10228,13 @@ class Ly { return e && e.props && e.props[or.mounted.id]; } } -const rOe = /* @__PURE__ */ Object.create(null); +const eOe = /* @__PURE__ */ Object.create(null); class Li { constructor(e, r, n, i = 0) { this.name = e, this.props = r, this.id = n, this.flags = i; } static define(e) { - let r = e.props && e.props.length ? /* @__PURE__ */ Object.create(null) : rOe, n = (e.top ? 1 : 0) | (e.skipped ? 2 : 0) | (e.error ? 4 : 0) | (e.name == null ? 8 : 0), i = new Li(e.name || "", r, e.id, n); + let r = e.props && e.props.length ? /* @__PURE__ */ Object.create(null) : eOe, n = (e.top ? 1 : 0) | (e.skipped ? 2 : 0) | (e.error ? 4 : 0) | (e.name == null ? 8 : 0), i = new Li(e.name || "", r, e.id, n); if (e.props) { for (let s of e.props) if (Array.isArray(s) || (s = s(i)), s) { @@ -10304,7 +10304,7 @@ class Hb { return new Hb(r); } } -const kw = /* @__PURE__ */ new WeakMap(), sF = /* @__PURE__ */ new WeakMap(); +const kw = /* @__PURE__ */ new WeakMap(), rF = /* @__PURE__ */ new WeakMap(); var hn; (function(t) { t[t.ExcludeBuffers = 1] = "ExcludeBuffers", t[t.IncludeAnonymous = 2] = "IncludeAnonymous", t[t.IgnoreMounts = 4] = "IgnoreMounts", t[t.IgnoreOverlays = 8] = "IgnoreOverlays"; @@ -10329,10 +10329,10 @@ class Qr { return this.type.name ? (/\W/.test(this.type.name) && !this.type.isError ? JSON.stringify(this.type.name) : this.type.name) + (r.length ? "(" + r + ")" : "") : r; } cursor(e = 0) { - return new C5(this.topNode, e); + return new T5(this.topNode, e); } cursorAt(e, r = 0, n = 0) { - let i = kw.get(this) || this.topNode, s = new C5(i); + let i = kw.get(this) || this.topNode, s = new T5(i); return s.moveTo(e, r), kw.set(this, s._tree), s; } get topNode() { @@ -10343,11 +10343,11 @@ class Qr { return kw.set(this, n), n; } resolveInner(e, r = 0) { - let n = Ry(sF.get(this) || this.topNode, e, r, !0); - return sF.set(this, n), n; + let n = Ry(rF.get(this) || this.topNode, e, r, !0); + return rF.set(this, n), n; } resolveStack(e, r = 0) { - return sOe(this, e, r); + return nOe(this, e, r); } iterate(e) { let { enter: r, leave: n, from: i = 0, to: s = this.length } = e, a = e.mode || 0, o = (a & hn.IncludeAnonymous) > 0; @@ -10376,14 +10376,14 @@ class Qr { return e; } balance(e = {}) { - return this.children.length <= 8 ? this : JR(Li.none, this.children, this.positions, 0, this.children.length, 0, this.length, (r, n, i) => new Qr(this.type, r, n, i, this.propValues), e.makeTree || ((r, n, i) => new Qr(Li.none, r, n, i))); + return this.children.length <= 8 ? this : ZR(Li.none, this.children, this.positions, 0, this.children.length, 0, this.length, (r, n, i) => new Qr(this.type, r, n, i, this.propValues), e.makeTree || ((r, n, i) => new Qr(Li.none, r, n, i))); } static build(e) { - return aOe(e); + return iOe(e); } } Qr.empty = new Qr(Li.none, [], [], 0); -class jR { +class HR { constructor(e, r) { this.buffer = e, this.index = r; } @@ -10406,7 +10406,7 @@ class jR { this.index -= 4; } fork() { - return new jR(this.buffer, this.index); + return new HR(this.buffer, this.index); } } class cf { @@ -10433,7 +10433,7 @@ class cf { } findChild(e, r, n, i, s) { let { buffer: a } = this, o = -1; - for (let l = e; l != r && !(NK(s, i, a[l + 1], a[l + 2]) && (o = l, n > 0)); l = a[l + 3]) + for (let l = e; l != r && !(RK(s, i, a[l + 1], a[l + 2]) && (o = l, n > 0)); l = a[l + 3]) ; return o; } @@ -10447,7 +10447,7 @@ class cf { return new cf(s, a, this.set); } } -function NK(t, e, r, n) { +function RK(t, e, r, n) { switch (t) { case -2: return r < e; @@ -10481,16 +10481,16 @@ function Ry(t, e, r, n) { t = a; } } -class IK { +class MK { cursor(e = 0) { - return new C5(this, e); + return new T5(this, e); } getChild(e, r = null, n = null) { - let i = aF(this, e, r, n); + let i = nF(this, e, r, n); return i.length ? i[0] : null; } getChildren(e, r = null, n = null) { - return aF(this, e, r, n); + return nF(this, e, r, n); } resolve(e, r = 0) { return Ry(this, e, r, !1); @@ -10499,7 +10499,7 @@ class IK { return Ry(this, e, r, !0); } matchContext(e) { - return x7(this, e); + return y7(this, e); } enterUnfinishedNodesBefore(e) { let r = this.childBefore(e), n = this; @@ -10518,7 +10518,7 @@ class IK { return this.parent; } } -class $s extends IK { +class $s extends MK { constructor(e, r, n, i) { super(), this._tree = e, this.from = r, this.index = n, this._parent = i; } @@ -10535,14 +10535,14 @@ class $s extends IK { for (let a = this; ; ) { for (let { children: o, positions: l } = a._tree, u = r > 0 ? o.length : -1; e != u; e += r) { let h = o[e], f = l[e] + a.from; - if (!!NK(i, n, f, f + h.length)) { + if (!!RK(i, n, f, f + h.length)) { if (h instanceof cf) { if (s & hn.ExcludeBuffers) continue; let d = h.findChild(0, h.buffer.length, r, n - f, i); if (d > -1) - return new gc(new nOe(a, h, e, f), null, d); - } else if (s & hn.IncludeAnonymous || !h.type.isAnonymous || KR(h)) { + return new gc(new tOe(a, h, e, f), null, d); + } else if (s & hn.IncludeAnonymous || !h.type.isAnonymous || XR(h)) { let d; if (!(s & hn.IgnoreMounts) && (d = Ly.get(h)) && !d.overlay) return new $s(d.tree, f, e, a); @@ -10602,7 +10602,7 @@ class $s extends IK { return this._tree.toString(); } } -function aF(t, e, r, n) { +function nF(t, e, r, n) { let i = t.cursor(), s = []; if (!i.firstChild()) return s; @@ -10618,7 +10618,7 @@ function aF(t, e, r, n) { return n == null ? s : []; } } -function x7(t, e, r = e.length - 1) { +function y7(t, e, r = e.length - 1) { for (let n = t.parent; r >= 0; n = n.parent) { if (!n) return !1; @@ -10630,12 +10630,12 @@ function x7(t, e, r = e.length - 1) { } return !0; } -class nOe { +class tOe { constructor(e, r, n, i) { this.parent = e, this.buffer = r, this.index = n, this.start = i; } } -class gc extends IK { +class gc extends MK { get name() { return this.type.name; } @@ -10699,7 +10699,7 @@ class gc extends IK { return this.context.buffer.childString(this.index); } } -function PK(t) { +function DK(t) { if (!t.length) return null; let e = 0, r = t[0]; @@ -10708,17 +10708,17 @@ function PK(t) { (a.from > r.from || a.to < r.to) && (r = a, e = s); } let n = r instanceof $s && r.index < 0 ? null : r.parent, i = t.slice(); - return n ? i[e] = n : i.splice(e, 1), new iOe(i, r); + return n ? i[e] = n : i.splice(e, 1), new rOe(i, r); } -class iOe { +class rOe { constructor(e, r) { this.heads = e, this.node = r; } get next() { - return PK(this.heads); + return DK(this.heads); } } -function sOe(t, e, r) { +function nOe(t, e, r) { let n = t.resolveInner(e, r), i = null; for (let s = n instanceof $s ? n : n.context.parent; s; s = s.parent) if (s.index < 0) { @@ -10731,9 +10731,9 @@ function sOe(t, e, r) { (i || (i = [n])).push(Ry(o, e, r, !1)); } } - return i ? PK(i) : n; + return i ? DK(i) : n; } -class C5 { +class T5 { get name() { return this.type.name; } @@ -10828,7 +10828,7 @@ class C5 { if (r > -1) for (let s = r + e, a = e < 0 ? -1 : n._tree.children.length; s != a; s += e) { let o = n._tree.children[s]; - if (this.mode & hn.IncludeAnonymous || o instanceof cf || !o.type.isAnonymous || KR(o)) + if (this.mode & hn.IncludeAnonymous || o instanceof cf || !o.type.isAnonymous || XR(o)) return !1; } return !0; @@ -10899,11 +10899,11 @@ class C5 { } matchContext(e) { if (!this.buffer) - return x7(this.node, e); + return y7(this.node, e); let { buffer: r } = this.buffer, { types: n } = r.set; for (let i = e.length - 1, s = this.stack.length - 1; i >= 0; s--) { if (s < 0) - return x7(this.node, e, i); + return y7(this.node, e, i); let a = n[r.buffer[this.stack[s]]]; if (!a.isAnonymous) { if (e[i] && e[i] != a.name) @@ -10914,12 +10914,12 @@ class C5 { return !0; } } -function KR(t) { - return t.children.some((e) => e instanceof cf || !e.type.isAnonymous || KR(e)); +function XR(t) { + return t.children.some((e) => e instanceof cf || !e.type.isAnonymous || XR(e)); } -function aOe(t) { +function iOe(t) { var e; - let { buffer: r, nodeSet: n, maxBufferLength: i = DK, reused: s = [], minRepeatType: a = n.types.length } = t, o = Array.isArray(r) ? new jR(r, r.length) : r, l = n.types, u = 0, h = 0; + let { buffer: r, nodeSet: n, maxBufferLength: i = LK, reused: s = [], minRepeatType: a = n.types.length } = t, o = Array.isArray(r) ? new HR(r, r.length) : r, l = n.types, u = 0, h = 0; function f(S, C, T, L, E, R) { let { id: _, start: A, end: $, size: k } = o, N = h; for (; k < 0; ) @@ -10949,7 +10949,7 @@ function aOe(t) { Y >= 0 && o.id == Y && o.size >= 0 ? (o.end <= ee - i && (g(B, V, A, G, o.end, ee, Y, N), G = B.length, ee = o.end), o.next()) : R > 2500 ? d(A, F, B, V) : f(A, F, B, V, Y, R + 1); if (Y >= 0 && G > 0 && G < B.length && g(B, V, A, G, A, ee, Y, N), B.reverse(), V.reverse(), Y > -1 && G > 0) { let Q = p(M); - I = JR(M, B, V, 0, B.length, 0, $ - A, Q, Q); + I = ZR(M, B, V, 0, B.length, 0, $ - A, Q, Q); } else I = m(M, B, V, $ - A, N - $); } @@ -11049,11 +11049,11 @@ function aOe(t) { let O = (e = t.length) !== null && e !== void 0 ? e : b.length ? w[0] + b[0].length : 0; return new Qr(l[t.topID], b.reverse(), w.reverse(), O); } -const oF = /* @__PURE__ */ new WeakMap(); -function d4(t, e) { +const iF = /* @__PURE__ */ new WeakMap(); +function f4(t, e) { if (!t.isAnonymous || e instanceof cf || e.type != t) return 1; - let r = oF.get(e); + let r = iF.get(e); if (r == null) { r = 1; for (let n of e.children) { @@ -11061,22 +11061,22 @@ function d4(t, e) { r = 1; break; } - r += d4(t, n); + r += f4(t, n); } - oF.set(e, r); + iF.set(e, r); } return r; } -function JR(t, e, r, n, i, s, a, o, l) { +function ZR(t, e, r, n, i, s, a, o, l) { let u = 0; for (let g = n; g < i; g++) - u += d4(t, e[g]); + u += f4(t, e[g]); let h = Math.ceil(u * 1.5 / 8), f = [], d = []; function p(g, m, v, y, b) { for (let w = v; w < y; ) { - let O = w, S = m[w], C = d4(t, g[w]); + let O = w, S = m[w], C = f4(t, g[w]); for (w++; w < y; w++) { - let T = d4(t, g[w]); + let T = f4(t, g[w]); if (C + T >= h) break; C += T; @@ -11090,14 +11090,14 @@ function JR(t, e, r, n, i, s, a, o, l) { f.push(g[O]); } else { let T = m[w - 1] + g[w - 1].length - S; - f.push(JR(t, g, m, O, w, S, T, null, l)); + f.push(ZR(t, g, m, O, w, S, T, null, l)); } d.push(S + b - s); } } return p(e, r, n, i, 0), (o || l)(f, d, a); } -class $K { +class NK { constructor() { this.map = /* @__PURE__ */ new WeakMap(); } @@ -11162,9 +11162,9 @@ class Eu { return i; } } -class eM { +class jR { startParse(e, r, n) { - return typeof e == "string" && (e = new oOe(e)), n = n ? n.length ? n.map((i) => new Mo(i.from, i.to)) : [new Mo(0, 0)] : [new Mo(0, e.length)], this.createParse(e, r || [], n); + return typeof e == "string" && (e = new sOe(e)), n = n ? n.length ? n.map((i) => new Mo(i.from, i.to)) : [new Mo(0, 0)] : [new Mo(0, e.length)], this.createParse(e, r || [], n); } parse(e, r, n) { let i = this.startParse(e, r, n); @@ -11175,7 +11175,7 @@ class eM { } } } -class oOe { +class sOe { constructor(e) { this.string = e; } @@ -11192,25 +11192,25 @@ class oOe { return this.string.slice(e, r); } } -function BK(t) { - return (e, r, n, i) => new cOe(e, t, r, n, i); +function IK(t) { + return (e, r, n, i) => new oOe(e, t, r, n, i); } -class lF { +class sF { constructor(e, r, n, i, s) { this.parser = e, this.parse = r, this.overlay = n, this.target = i, this.from = s; } } -function cF(t) { +function aF(t) { if (!t.length || t.some((e) => e.from >= e.to)) throw new RangeError("Invalid inner parse ranges given: " + JSON.stringify(t)); } -class lOe { +class aOe { constructor(e, r, n, i, s, a, o) { this.parser = e, this.predicate = r, this.mounts = n, this.index = i, this.start = s, this.target = a, this.prev = o, this.depth = 0, this.ranges = []; } } -const w7 = new or({ perNode: !0 }); -class cOe { +const b7 = new or({ perNode: !0 }); +class oOe { constructor(e, r, n, i, s) { this.nest = r, this.input = n, this.fragments = i, this.ranges = s, this.inner = [], this.innerDone = 0, this.baseTree = null, this.stoppedAt = null, this.baseParse = e; } @@ -11225,7 +11225,7 @@ class cOe { } if (this.innerDone == this.inner.length) { let n = this.baseTree; - return this.stoppedAt != null && (n = new Qr(n.type, n.children, n.positions, n.length, n.propValues.concat([[w7, this.stoppedAt]]))), n; + return this.stoppedAt != null && (n = new Qr(n.type, n.children, n.positions, n.length, n.propValues.concat([[b7, this.stoppedAt]]))), n; } let e = this.inner[this.innerDone], r = e.parse.advance(); if (r) { @@ -11251,7 +11251,7 @@ class cOe { this.inner[r].parse.stopAt(e); } startInner() { - let e = new fOe(this.fragments), r = null, n = null, i = new C5(new $s(this.baseTree, this.ranges[0].from, 0, null), hn.IncludeAnonymous | hn.IgnoreMounts); + let e = new uOe(this.fragments), r = null, n = null, i = new T5(new $s(this.baseTree, this.ranges[0].from, 0, null), hn.IncludeAnonymous | hn.IgnoreMounts); e: for (let s, a; ; ) { let o = !0, l; @@ -11267,16 +11267,16 @@ class cOe { } } o = !1; - } else if (n && (a = uOe(n.ranges, i.from, i.to))) + } else if (n && (a = lOe(n.ranges, i.from, i.to))) o = a != 2; else if (!i.type.isAnonymous && (s = this.nest(i, this.input)) && (i.from < i.to || !s.overlay)) { - i.tree || hOe(i); + i.tree || cOe(i); let u = e.findMounts(i.from, s.parser); if (typeof s.overlay == "function") - r = new lOe(s.parser, s.overlay, u, this.inner.length, i.from, i.tree, r); + r = new aOe(s.parser, s.overlay, u, this.inner.length, i.from, i.tree, r); else { - let h = fF(this.ranges, s.overlay || (i.from < i.to ? [new Mo(i.from, i.to)] : [])); - h.length && cF(h), (h.length || !s.overlay) && this.inner.push(new lF(s.parser, h.length ? s.parser.startParse(this.input, dF(u, h), h) : s.parser.startParse(""), s.overlay ? s.overlay.map((f) => new Mo(f.from - i.from, f.to - i.from)) : null, i.tree, h.length ? h[0].from : i.from)), s.overlay ? h.length && (n = { ranges: h, depth: 0, prev: n }) : o = !1; + let h = cF(this.ranges, s.overlay || (i.from < i.to ? [new Mo(i.from, i.to)] : [])); + h.length && aF(h), (h.length || !s.overlay) && this.inner.push(new sF(s.parser, h.length ? s.parser.startParse(this.input, uF(u, h), h) : s.parser.startParse(""), s.overlay ? s.overlay.map((f) => new Mo(f.from - i.from, f.to - i.from)) : null, i.tree, h.length ? h[0].from : i.from)), s.overlay ? h.length && (n = { ranges: h, depth: 0, prev: n }) : o = !1; } } else r && (l = r.predicate(i)) && (l === !0 && (l = new Mo(i.from, i.to)), l.from < l.to && r.ranges.push(l)); @@ -11287,15 +11287,15 @@ class cOe { if (!i.parent()) break e; if (r && !--r.depth) { - let u = fF(this.ranges, r.ranges); - u.length && (cF(u), this.inner.splice(r.index, 0, new lF(r.parser, r.parser.startParse(this.input, dF(r.mounts, u), u), r.ranges.map((h) => new Mo(h.from - r.start, h.to - r.start)), r.target, u[0].from))), r = r.prev; + let u = cF(this.ranges, r.ranges); + u.length && (aF(u), this.inner.splice(r.index, 0, new sF(r.parser, r.parser.startParse(this.input, uF(r.mounts, u), u), r.ranges.map((h) => new Mo(h.from - r.start, h.to - r.start)), r.target, u[0].from))), r = r.prev; } n && !--n.depth && (n = n.prev); } } } } -function uOe(t, e, r) { +function lOe(t, e, r) { for (let n of t) { if (n.from >= r) break; @@ -11304,13 +11304,13 @@ function uOe(t, e, r) { } return 0; } -function uF(t, e, r, n, i, s) { +function oF(t, e, r, n, i, s) { if (e < r) { let a = t.buffer[e + 1]; n.push(t.slice(e, r, a)), i.push(a - s); } } -function hOe(t) { +function cOe(t) { let { node: e } = t, r = [], n = e.context.buffer; do r.push(t.index), t.parent(); @@ -11318,11 +11318,11 @@ function hOe(t) { let i = t.tree, s = i.children.indexOf(n), a = i.children[s], o = a.buffer, l = [s]; function u(h, f, d, p, g, m) { let v = r[m], y = [], b = []; - uF(a, h, v, y, b, p); + oF(a, h, v, y, b, p); let w = o[v + 1], O = o[v + 2]; l.push(y.length); let S = m ? u(v + 4, o[v + 3], a.set.types[o[v]], w, O - w, m - 1) : e.toTree(); - return y.push(S), b.push(w - p), uF(a, o[v + 3], f, y, b, p), new Qr(d, y, b, g); + return y.push(S), b.push(w - p), oF(a, o[v + 3], f, y, b, p), new Qr(d, y, b, g); } i.children[s] = u(0, o.length, Li.none, 0, a.length, r.length - 1); for (let h of l) { @@ -11330,7 +11330,7 @@ function hOe(t) { t.yield(new $s(f, d + t.from, h, t._tree)); } } -class hF { +class lF { constructor(e, r) { this.offset = r, this.done = !1, this.cursor = e.cursor(hn.IncludeAnonymous | hn.IgnoreMounts); } @@ -11352,12 +11352,12 @@ class hF { return !1; } } -class fOe { +class uOe { constructor(e) { var r; if (this.fragments = e, this.curTo = 0, this.fragI = 0, e.length) { let n = this.curFrag = e[0]; - this.curTo = (r = n.tree.prop(w7)) !== null && r !== void 0 ? r : n.to, this.inner = new hF(n.tree, -n.offset); + this.curTo = (r = n.tree.prop(b7)) !== null && r !== void 0 ? r : n.to, this.inner = new lF(n.tree, -n.offset); } else this.curFrag = this.inner = null; } @@ -11372,7 +11372,7 @@ class fOe { this.curFrag = this.inner = null; else { let r = this.curFrag = this.fragments[this.fragI]; - this.curTo = (e = r.tree.prop(w7)) !== null && e !== void 0 ? e : r.to, this.inner = new hF(r.tree, -r.offset); + this.curTo = (e = r.tree.prop(b7)) !== null && e !== void 0 ? e : r.to, this.inner = new lF(r.tree, -r.offset); } } findMounts(e, r) { @@ -11398,7 +11398,7 @@ class fOe { return i; } } -function fF(t, e) { +function cF(t, e) { let r = null, n = e; for (let i = 1, s = 0; i < t.length; i++) { let a = t[i - 1].to, o = t[i].from; @@ -11411,7 +11411,7 @@ function fF(t, e) { } return n; } -function dOe(t, e, r, n) { +function hOe(t, e, r, n) { let i = 0, s = 0, a = !1, o = !1, l = -1e9, u = []; for (; ; ) { let h = i == t.length ? 1e9 : a ? t[i].to : t[i].from, f = s == e.length ? 1e9 : o ? e[s].to : e[s].from; @@ -11425,12 +11425,12 @@ function dOe(t, e, r, n) { } return u; } -function dF(t, e) { +function uF(t, e) { let r = []; for (let { pos: n, mount: i, frag: s } of t) { let a = n + (i.overlay ? i.overlay[0].from : 0), o = a + i.tree.length, l = Math.max(s.from, a), u = Math.min(s.to, o); if (i.overlay) { - let h = i.overlay.map((d) => new Mo(d.from + n, d.to + n)), f = dOe(e, h, l, u); + let h = i.overlay.map((d) => new Mo(d.from + n, d.to + n)), f = hOe(e, h, l, u); for (let d = 0, p = l; ; d++) { let g = d == f.length, m = g ? u : f[d].from; if (m > p && r.push(new Eu(p, m, i.tree, -a, s.from >= p || s.openStart, s.to <= m || s.openEnd)), g) @@ -11442,10 +11442,10 @@ function dF(t, e) { } return r; } -let pOe = 0; +let fOe = 0; class dl { constructor(e, r, n) { - this.set = e, this.base = r, this.modified = n, this.id = pOe++; + this.set = e, this.base = r, this.modified = n, this.id = fOe++; } static define(e) { if (e != null && e.base) @@ -11457,36 +11457,36 @@ class dl { return r; } static defineModifier() { - let e = new E5(); - return (r) => r.modified.indexOf(e) > -1 ? r : E5.get(r.base || r, r.modified.concat(e).sort((n, i) => n.id - i.id)); + let e = new C5(); + return (r) => r.modified.indexOf(e) > -1 ? r : C5.get(r.base || r, r.modified.concat(e).sort((n, i) => n.id - i.id)); } } -let gOe = 0; -class E5 { +let dOe = 0; +class C5 { constructor() { - this.instances = [], this.id = gOe++; + this.instances = [], this.id = dOe++; } static get(e, r) { if (!r.length) return e; - let n = r[0].instances.find((o) => o.base == e && mOe(r, o.modified)); + let n = r[0].instances.find((o) => o.base == e && pOe(r, o.modified)); if (n) return n; let i = [], s = new dl(i, e, r); for (let o of r) o.instances.push(s); - let a = vOe(r); + let a = gOe(r); for (let o of e.set) if (!o.modified.length) for (let l of a) - i.push(E5.get(o, l)); + i.push(C5.get(o, l)); return s; } } -function mOe(t, e) { +function pOe(t, e) { return t.length == e.length && t.every((r, n) => r == e[n]); } -function vOe(t) { +function gOe(t) { let e = [[]]; for (let r = 0; r < t.length; r++) for (let n = 0, i = e.length; n < i; n++) @@ -11523,14 +11523,14 @@ function P1(t) { let l = s.length - 1, u = s[l]; if (!u) throw new RangeError("Invalid path: " + i); - let h = new _5(n, a, l > 0 ? s.slice(0, l) : null); + let h = new E5(n, a, l > 0 ? s.slice(0, l) : null); e[u] = h.sort(e[u]); } } - return FK.add(e); + return PK.add(e); } -const FK = new or(); -class _5 { +const PK = new or(); +class E5 { constructor(e, r, n, i) { this.tags = e, this.mode = r, this.context = n, this.next = i; } @@ -11547,8 +11547,8 @@ class _5 { return this.context ? this.context.length : 0; } } -_5.empty = new _5([], 2, null); -function zK(t, e) { +E5.empty = new E5([], 2, null); +function $K(t, e) { let r = /* @__PURE__ */ Object.create(null); for (let s of t) if (!Array.isArray(s.tag)) @@ -11573,7 +11573,7 @@ function zK(t, e) { scope: n }; } -function yOe(t, e) { +function mOe(t, e) { let r = null; for (let n of t) { let i = n.style(e); @@ -11581,11 +11581,11 @@ function yOe(t, e) { } return r; } -function bOe(t, e, r, n = 0, i = t.length) { - let s = new xOe(n, Array.isArray(e) ? e : [e], r); +function vOe(t, e, r, n = 0, i = t.length) { + let s = new yOe(n, Array.isArray(e) ? e : [e], r); s.highlightRange(t.cursor(), n, i, "", s.highlighters), s.flush(i); } -class xOe { +class yOe { constructor(e, r, n) { this.at = e, this.highlighters = r, this.span = n, this.class = ""; } @@ -11600,7 +11600,7 @@ class xOe { if (o >= n || l <= r) return; a.isTop && (s = this.highlighters.filter((p) => !p.scope || p.scope(a))); - let u = i, h = wOe(e) || _5.empty, f = yOe(s, h.tags); + let u = i, h = bOe(e) || E5.empty, f = mOe(s, h.tags); if (f && (u && (u += " "), u += f, h.mode == 1 && (i += (i ? " " : "") + f)), this.startSpan(Math.max(r, o), u), h.opaque) return; let d = e.tree && e.tree.prop(or.mounted); @@ -11629,23 +11629,23 @@ class xOe { } } } -function wOe(t) { - let e = t.type.prop(FK); +function bOe(t) { + let e = t.type.prop(PK); for (; e && e.context && !t.matchContext(e.context); ) e = e.next; return e || null; } -const xt = dl.define, Sw = xt(), kh = xt(), pF = xt(kh), gF = xt(kh), Sh = xt(), Tw = xt(Sh), AE = xt(Sh), nc = xt(), jf = xt(nc), Kl = xt(), Jl = xt(), O7 = xt(), Rm = xt(O7), Cw = xt(), Se = { +const xt = dl.define, Sw = xt(), kh = xt(), hF = xt(kh), fF = xt(kh), Sh = xt(), Tw = xt(Sh), EE = xt(Sh), nc = xt(), jf = xt(nc), Kl = xt(), Jl = xt(), x7 = xt(), Rm = xt(x7), Cw = xt(), Se = { comment: Sw, lineComment: xt(Sw), blockComment: xt(Sw), docComment: xt(Sw), name: kh, variableName: xt(kh), - typeName: pF, - tagName: xt(pF), - propertyName: gF, - attributeName: xt(gF), + typeName: hF, + tagName: xt(hF), + propertyName: fF, + attributeName: xt(fF), className: xt(kh), labelName: xt(kh), namespace: xt(kh), @@ -11655,9 +11655,9 @@ const xt = dl.define, Sw = xt(), kh = xt(), pF = xt(kh), gF = xt(kh), Sh = xt(), docString: xt(Tw), character: xt(Tw), attributeValue: xt(Tw), - number: AE, - integer: xt(AE), - float: xt(AE), + number: EE, + integer: xt(EE), + float: xt(EE), bool: xt(Sh), regexp: xt(Sh), escape: xt(Sh), @@ -11683,8 +11683,8 @@ const xt = dl.define, Sw = xt(), kh = xt(), pF = xt(kh), gF = xt(kh), Sh = xt(), definitionOperator: xt(Jl), typeOperator: xt(Jl), controlOperator: xt(Jl), - punctuation: O7, - separator: xt(O7), + punctuation: x7, + separator: xt(x7), bracket: Rm, angleBracket: xt(Rm), squareBracket: xt(Rm), @@ -11721,7 +11721,7 @@ const xt = dl.define, Sw = xt(), kh = xt(), pF = xt(kh), gF = xt(kh), Sh = xt(), local: dl.defineModifier(), special: dl.defineModifier() }; -zK([ +$K([ { tag: Se.link, class: "tok-link" }, { tag: Se.heading, class: "tok-heading" }, { tag: Se.emphasis, class: "tok-emphasis" }, @@ -11753,14 +11753,14 @@ zK([ { tag: Se.invalid, class: "tok-invalid" }, { tag: Se.punctuation, class: "tok-punctuation" } ]); -var LE; +var _E; const $h = /* @__PURE__ */ new or(); -function VS(t) { +function zS(t) { return _t.define({ combine: t ? (e) => e.concat(t) : void 0 }); } -const tM = /* @__PURE__ */ new or(); +const KR = /* @__PURE__ */ new or(); class no { constructor(e, r, n = [], i = "") { this.data = e, this.name = i, dr.prototype.hasOwnProperty("tree") || Object.defineProperty(dr.prototype, "tree", { get() { @@ -11768,10 +11768,10 @@ class no { } }), this.parser = r, this.extension = [ uf.of(this), dr.languageData.of((s, a, o) => { - let l = mF(s, a, o), u = l.type.prop($h); + let l = dF(s, a, o), u = l.type.prop($h); if (!u) return []; - let h = s.facet(u), f = l.type.prop(tM); + let h = s.facet(u), f = l.type.prop(KR); if (f) { let d = l.resolve(a - l.from, o); for (let p of f) @@ -11785,7 +11785,7 @@ class no { ].concat(n); } isActiveAt(e, r, n = -1) { - return mF(e, r, n).type.prop($h) == this.data; + return dF(e, r, n).type.prop($h) == this.data; } findRegions(e) { let r = e.facet(uf); @@ -11825,7 +11825,7 @@ class no { } } no.setState = /* @__PURE__ */ Zt.define(); -function mF(t, e, r) { +function dF(t, e, r) { let n = t.facet(uf), i = Jr(t).topNode; if (!n || n.allowsNesting) for (let s = i; s; s = s.enter(e, r, hn.ExcludeBuffers)) @@ -11837,7 +11837,7 @@ class Lg extends no { super(e, r, [], n), this.parser = r; } static define(e) { - let r = VS(e.languageData); + let r = zS(e.languageData); return new Lg(r, e.parser.configure({ props: [$h.add((n) => n.isTop ? r : void 0)] }), e.name); @@ -11853,7 +11853,7 @@ function Jr(t) { let e = t.field(no.state, !1); return e ? e.tree : Qr.empty; } -class OOe { +class xOe { constructor(e) { this.doc = e, this.cursorPos = 0, this.string = "", this.cursor = e.iter(); } @@ -11883,7 +11883,7 @@ class My { return new My(e, r, [], Qr.empty, 0, n, [], null); } startParse() { - return this.parser.startParse(new OOe(this.state.doc), this.fragments); + return this.parser.startParse(new xOe(this.state.doc), this.fragments); } work(e, r) { return r != null && r >= this.state.doc.length && (r = void 0), this.tree != Qr.empty && this.isDone(r != null ? r : this.state.doc.length) ? (this.takeTree(), !0) : this.withContext(() => { @@ -11922,7 +11922,7 @@ class My { } withoutTempSkipped(e) { for (let r; r = this.tempSkipped.pop(); ) - e = vF(e, r.from, r.to); + e = pF(e, r.from, r.to); return e; } changes(e, r) { @@ -11946,7 +11946,7 @@ class My { let r = this.skipped.length; for (let n = 0; n < this.skipped.length; n++) { let { from: i, to: s } = this.skipped[n]; - i < e.to && s > e.from && (this.fragments = vF(this.fragments, i, s), this.skipped.splice(n--, 1)); + i < e.to && s > e.from && (this.fragments = pF(this.fragments, i, s), this.skipped.splice(n--, 1)); } return this.skipped.length >= r ? !1 : (this.reset(), !0); } @@ -11957,7 +11957,7 @@ class My { this.skipped.push({ from: e, to: r }); } static getSkippingParser(e) { - return new class extends eM { + return new class extends jR { createParse(r, n, i) { let s = i[0].from, a = i[i.length - 1].to; return { @@ -11987,7 +11987,7 @@ class My { return Mm; } } -function vF(t, e, r) { +function pF(t, e, r) { return Eu.applyChanges(t, [{ fromA: e, toA: r, fromB: e, toB: r }]); } class Rg { @@ -12014,17 +12014,17 @@ no.state = /* @__PURE__ */ $n.define({ return e.startState.facet(uf) != e.state.facet(uf) ? Rg.init(e.state) : t.apply(e); } }); -let VK = (t) => { +let BK = (t) => { let e = setTimeout(() => t(), 500); return () => clearTimeout(e); }; -typeof requestIdleCallback < "u" && (VK = (t) => { +typeof requestIdleCallback < "u" && (BK = (t) => { let e = -1, r = setTimeout(() => { e = requestIdleCallback(t, { timeout: 500 - 100 }); }, 100); return () => e < 0 ? clearTimeout(r) : cancelIdleCallback(e); }); -const RE = typeof navigator < "u" && ((LE = navigator.scheduling) === null || LE === void 0 ? void 0 : LE.isInputPending) ? () => navigator.scheduling.isInputPending() : null, kOe = /* @__PURE__ */ on.fromClass(class { +const AE = typeof navigator < "u" && ((_E = navigator.scheduling) === null || _E === void 0 ? void 0 : _E.isInputPending) ? () => navigator.scheduling.isInputPending() : null, wOe = /* @__PURE__ */ on.fromClass(class { constructor(e) { this.view = e, this.working = null, this.workScheduled = 0, this.chunkEnd = -1, this.chunkBudget = -1, this.work = this.work.bind(this), this.scheduleWork(); } @@ -12036,7 +12036,7 @@ const RE = typeof navigator < "u" && ((LE = navigator.scheduling) === null || LE if (this.working) return; let { state: e } = this.view, r = e.field(no.state); - (r.tree != r.context.tree || !r.context.isDone(e.doc.length)) && (this.working = VK(this.work)); + (r.tree != r.context.tree || !r.context.isDone(e.doc.length)) && (this.working = BK(this.work)); } work(e) { this.working = null; @@ -12046,7 +12046,7 @@ const RE = typeof navigator < "u" && ((LE = navigator.scheduling) === null || LE let { state: n, viewport: { to: i } } = this.view, s = n.field(no.state); if (s.tree == s.context.tree && s.context.isDone(i + 1e5)) return; - let a = Date.now() + Math.min(this.chunkBudget, 100, e && !RE ? Math.max(25, e.timeRemaining() - 5) : 1e9), o = s.context.treeLen < i && n.doc.length > i + 1e3, l = s.context.work(() => RE && RE() || Date.now() > a, i + (o ? 0 : 1e5)); + let a = Date.now() + Math.min(this.chunkBudget, 100, e && !AE ? Math.max(25, e.timeRemaining() - 5) : 1e9), o = s.context.treeLen < i && n.doc.length > i + 1e3, l = s.context.work(() => AE && AE() || Date.now() > a, i + (o ? 0 : 1e5)); this.chunkBudget -= Date.now() - r, (l || this.chunkBudget <= 0) && (s.context.takeTree(), this.view.dispatch({ effects: no.setState.of(new Rg(s.context)) })), this.chunkBudget > 0 && !(l && !o) && this.scheduleWork(), this.checkAsyncSchedule(s.context); } checkAsyncSchedule(e) { @@ -12068,7 +12068,7 @@ const RE = typeof navigator < "u" && ((LE = navigator.scheduling) === null || LE }, enables: (t) => [ no.state, - kOe, + wOe, ht.contentAttributes.compute([t], (e) => { let r = e.facet(t); return r && r.name ? { "data-language": r.name } : {}; @@ -12080,7 +12080,7 @@ class Dy { this.language = e, this.support = r, this.extension = [e, r]; } } -class A5 { +class _5 { constructor(e, r, n, i, s, a = void 0) { this.name = e, this.alias = r, this.extensions = n, this.filename = i, this.loadFunc = s, this.support = a, this.loading = null; } @@ -12096,7 +12096,7 @@ class A5 { throw new RangeError("Must pass either 'load' or 'support' to LanguageDescription.of"); r = () => Promise.resolve(n); } - return new A5(e.name, (e.alias || []).concat(e.name).map((i) => i.toLowerCase()), e.extensions || [], e.filename, r, n); + return new _5(e.name, (e.alias || []).concat(e.name).map((i) => i.toLowerCase()), e.extensions || [], e.filename, r, n); } static matchFilename(e, r) { for (let i of e) @@ -12125,7 +12125,7 @@ class A5 { return null; } } -const SOe = /* @__PURE__ */ _t.define(), Xb = /* @__PURE__ */ _t.define({ +const OOe = /* @__PURE__ */ _t.define(), Xb = /* @__PURE__ */ _t.define({ combine: (t) => { if (!t.length) return " "; @@ -12135,7 +12135,7 @@ const SOe = /* @__PURE__ */ _t.define(), Xb = /* @__PURE__ */ _t.define({ return e; } }); -function L5(t) { +function A5(t) { let e = t.facet(Xb); return e.charCodeAt(0) == 9 ? t.tabSize * e.length : e.length; } @@ -12150,19 +12150,19 @@ function Ny(t, e) { r += i; return r; } -function rM(t, e) { - t instanceof dr && (t = new US(t)); - for (let n of t.state.facet(SOe)) { +function JR(t, e) { + t instanceof dr && (t = new VS(t)); + for (let n of t.state.facet(OOe)) { let i = n(t, e); if (i !== void 0) return i; } let r = Jr(t.state); - return r.length >= e ? TOe(t, r, e) : null; + return r.length >= e ? kOe(t, r, e) : null; } -class US { +class VS { constructor(e, r = {}) { - this.state = e, this.options = r, this.unit = L5(e); + this.state = e, this.options = r, this.unit = A5(e); } lineAt(e, r = 1) { let n = this.state.doc.lineAt(e), { simulateBreak: i, simulateDoubleBreak: s } = this.options; @@ -12195,7 +12195,7 @@ class US { } } const $1 = /* @__PURE__ */ new or(); -function TOe(t, e, r) { +function kOe(t, e, r) { let n = e.resolveStack(r), i = n.node.enterUnfinishedNodesBefore(r); if (i != n.node) { let s = []; @@ -12204,34 +12204,34 @@ function TOe(t, e, r) { for (let a = s.length - 1; a >= 0; a--) n = { node: s[a], next: n }; } - return UK(n, t, r); + return FK(n, t, r); } -function UK(t, e, r) { +function FK(t, e, r) { for (let n = t; n; n = n.next) { - let i = EOe(n.node); + let i = TOe(n.node); if (i) - return i(nM.create(e, r, n)); + return i(eM.create(e, r, n)); } return 0; } -function COe(t) { +function SOe(t) { return t.pos == t.options.simulateBreak && t.options.simulateDoubleBreak; } -function EOe(t) { +function TOe(t) { let e = t.type.prop($1); if (e) return e; let r = t.firstChild, n; if (r && (n = r.type.prop(or.closedBy))) { let i = t.lastChild, s = i && n.indexOf(i.name) > -1; - return (a) => qK(a, !0, 1, void 0, s && !COe(a) ? i.from : void 0); + return (a) => zK(a, !0, 1, void 0, s && !SOe(a) ? i.from : void 0); } - return t.parent == null ? _Oe : null; + return t.parent == null ? COe : null; } -function _Oe() { +function COe() { return 0; } -class nM extends US { +class eM extends VS { constructor(e, r, n) { super(e.state, e.options), this.base = e, this.pos = r, this.context = n; } @@ -12239,7 +12239,7 @@ class nM extends US { return this.context.node; } static create(e, r, n) { - return new nM(e, r, n); + return new eM(e, r, n); } get textAfter() { return this.textAfterPos(this.pos); @@ -12253,23 +12253,23 @@ class nM extends US { let n = e.resolve(r.from); for (; n.parent && n.parent.from == n.from; ) n = n.parent; - if (AOe(n, e)) + if (EOe(n, e)) break; r = this.state.doc.lineAt(n.from); } return this.lineIndent(r.from); } continue() { - return UK(this.context.next, this.base, this.pos); + return FK(this.context.next, this.base, this.pos); } } -function AOe(t, e) { +function EOe(t, e) { for (let r = e; r; r = r.parent) if (t == r) return !0; return !1; } -function LOe(t) { +function _Oe(t) { let e = t.node, r = e.childAfter(e.from), n = e.lastChild; if (!r) return null; @@ -12283,22 +12283,22 @@ function LOe(t) { o = l.to; } } -function ROe({ closing: t, align: e = !0, units: r = 1 }) { - return (n) => qK(n, e, r, t); +function AOe({ closing: t, align: e = !0, units: r = 1 }) { + return (n) => zK(n, e, r, t); } -function qK(t, e, r, n, i) { - let s = t.textAfter, a = s.match(/^\s*/)[0].length, o = n && s.slice(a, a + n.length) == n || i == t.pos + a, l = e ? LOe(t) : null; +function zK(t, e, r, n, i) { + let s = t.textAfter, a = s.match(/^\s*/)[0].length, o = n && s.slice(a, a + n.length) == n || i == t.pos + a, l = e ? _Oe(t) : null; return l ? o ? t.column(l.from) : t.column(l.to) : t.baseIndent + (o ? 0 : t.unit * r); } -const MOe = (t) => t.baseIndent; -function p4({ except: t, units: e = 1 } = {}) { +const LOe = (t) => t.baseIndent; +function d4({ except: t, units: e = 1 } = {}) { return (r) => { let n = t && t.test(r.textAfter); return r.baseIndent + (n ? 0 : e * r.unit); }; } -const DOe = 200; -function NOe() { +const ROe = 200; +function MOe() { return dr.transactionFilter.of((t) => { if (!t.docChanged || !t.isUserEvent("input.type") && !t.isUserEvent("input.complete")) return t; @@ -12306,7 +12306,7 @@ function NOe() { if (!e.length) return t; let r = t.newDoc, { head: n } = t.newSelection.main, i = r.lineAt(n); - if (n > i.from + DOe) + if (n > i.from + ROe) return t; let s = r.sliceString(i.from, n); if (!e.some((u) => u.test(s))) @@ -12317,7 +12317,7 @@ function NOe() { if (h.from == o) continue; o = h.from; - let f = rM(a, h.from); + let f = JR(a, h.from); if (f == null) continue; let d = /^\s*/.exec(h.text)[0], p = Ny(a, f); @@ -12326,12 +12326,12 @@ function NOe() { return l.length ? [t, { changes: l, sequential: !0 }] : t; }); } -const qS = /* @__PURE__ */ _t.define(), P0 = /* @__PURE__ */ new or(); -function YK(t) { +const US = /* @__PURE__ */ _t.define(), P0 = /* @__PURE__ */ new or(); +function VK(t) { let e = t.firstChild, r = t.lastChild; return e && e.to < r.from ? { from: e.to, to: r.type.isError ? t.to : r.from } : null; } -function IOe(t, e, r) { +function DOe(t, e, r) { let n = Jr(t); if (n.length < r) return null; @@ -12343,31 +12343,31 @@ function IOe(t, e, r) { if (s && o.from < e) break; let l = o.type.prop(P0); - if (l && (o.to < n.length - 50 || n.length == t.doc.length || !POe(o))) { + if (l && (o.to < n.length - 50 || n.length == t.doc.length || !NOe(o))) { let u = l(o, t); u && u.from <= r && u.from >= e && u.to > r && (s = u); } } return s; } -function POe(t) { +function NOe(t) { let e = t.lastChild; return e && e.to == t.to && e.type.isError; } function Kd(t, e, r) { - for (let n of t.facet(qS)) { + for (let n of t.facet(US)) { let i = n(t, e, r); if (i) return i; } - return IOe(t, e, r); + return DOe(t, e, r); } -function QK(t, e) { +function UK(t, e) { let r = e.mapPos(t.from, 1), n = e.mapPos(t.to, -1); return r >= n ? void 0 : { from: r, to: n }; } -const Nc = /* @__PURE__ */ Zt.define({ map: QK }), Bf = /* @__PURE__ */ Zt.define({ map: QK }); -function iM(t) { +const Nc = /* @__PURE__ */ Zt.define({ map: UK }), Bf = /* @__PURE__ */ Zt.define({ map: UK }); +function tM(t) { let e = []; for (let { head: r } of t.state.selection.ranges) e.some((n) => n.from <= r && n.to >= r) || e.push(t.lineBlockAt(r)); @@ -12380,8 +12380,8 @@ const hf = /* @__PURE__ */ $n.define({ update(t, e) { t = t.map(e.changes); for (let r of e.effects) - if (r.is(Nc) && !$Oe(t, r.value.from, r.value.to)) { - let { preparePlaceholder: n } = e.state.facet(oM), i = n ? Et.replace({ widget: new WOe(n(e.state, r.value)) }) : yF; + if (r.is(Nc) && !IOe(t, r.value.from, r.value.to)) { + let { preparePlaceholder: n } = e.state.facet(iM), i = n ? Et.replace({ widget: new YOe(n(e.state, r.value)) }) : gF; t = t.update({ add: [i.range(r.value.from, r.value.to)] }); } else r.is(Bf) && (t = t.update({ @@ -12416,12 +12416,12 @@ const hf = /* @__PURE__ */ $n.define({ let n = t[r++], i = t[r++]; if (typeof n != "number" || typeof i != "number") throw new RangeError("Invalid JSON for fold state"); - e.push(yF.range(n, i)); + e.push(gF.range(n, i)); } return Et.set(e, !0); } }); -function sM(t) { +function rM(t) { return t.field(hf, !1) || Er.empty; } function Iy(t, e, r) { @@ -12431,44 +12431,44 @@ function Iy(t, e, r) { (!i || i.from > s) && (i = { from: s, to: a }); }), i; } -function $Oe(t, e, r) { +function IOe(t, e, r) { let n = !1; return t.between(e, e, (i, s) => { i == e && s == r && (n = !0); }), n; } -function aM(t, e) { - return t.field(hf, !1) ? e : e.concat(Zt.appendConfig.of(WK())); +function nM(t, e) { + return t.field(hf, !1) ? e : e.concat(Zt.appendConfig.of(qK())); } -const BOe = (t) => { - for (let e of iM(t)) { +const POe = (t) => { + for (let e of tM(t)) { let r = Kd(t.state, e.from, e.to); if (r) - return t.dispatch({ effects: aM(t.state, [Nc.of(r), R5(t, r)]) }), !0; + return t.dispatch({ effects: nM(t.state, [Nc.of(r), L5(t, r)]) }), !0; } return !1; -}, FOe = (t) => { +}, $Oe = (t) => { if (!t.state.field(hf, !1)) return !1; let e = []; - for (let r of iM(t)) { + for (let r of tM(t)) { let n = Iy(t.state, r.from, r.to); - n && e.push(Bf.of(n), R5(t, n, !1)); + n && e.push(Bf.of(n), L5(t, n, !1)); } return e.length && t.dispatch({ effects: e }), e.length > 0; }; -function R5(t, e, r = !0) { +function L5(t, e, r = !0) { let n = t.state.doc.lineAt(e.from).number, i = t.state.doc.lineAt(e.to).number; return ht.announce.of(`${t.state.phrase(r ? "Folded lines" : "Unfolded lines")} ${n} ${t.state.phrase("to")} ${i}.`); } -const zOe = (t) => { +const BOe = (t) => { let { state: e } = t, r = []; for (let n = 0; n < e.doc.length; ) { let i = t.lineBlockAt(n), s = Kd(e, i.from, i.to); s && r.push(Nc.of(s)), n = (s ? t.lineBlockAt(s.to) : i).to + 1; } - return r.length && t.dispatch({ effects: aM(t.state, r) }), !!r.length; -}, VOe = (t) => { + return r.length && t.dispatch({ effects: nM(t.state, r) }), !!r.length; +}, FOe = (t) => { let e = t.state.field(hf, !1); if (!e || !e.size) return !1; @@ -12477,7 +12477,7 @@ const zOe = (t) => { r.push(Bf.of({ from: n, to: i })); }), t.dispatch({ effects: r }), !0; }; -function UOe(t, e) { +function zOe(t, e) { for (let r = e; ; ) { let n = Kd(t.state, r.from, r.to); if (n && n.to > e.from) @@ -12487,38 +12487,38 @@ function UOe(t, e) { r = t.lineBlockAt(r.from - 1); } } -const qOe = (t) => { +const VOe = (t) => { let e = []; - for (let r of iM(t)) { + for (let r of tM(t)) { let n = Iy(t.state, r.from, r.to); if (n) - e.push(Bf.of(n), R5(t, n, !1)); + e.push(Bf.of(n), L5(t, n, !1)); else { - let i = UOe(t, r); - i && e.push(Nc.of(i), R5(t, i)); + let i = zOe(t, r); + i && e.push(Nc.of(i), L5(t, i)); } } - return e.length > 0 && t.dispatch({ effects: aM(t.state, e) }), !!e.length; -}, YOe = [ - { key: "Ctrl-Shift-[", mac: "Cmd-Alt-[", run: BOe }, - { key: "Ctrl-Shift-]", mac: "Cmd-Alt-]", run: FOe }, - { key: "Ctrl-Alt-[", run: zOe }, - { key: "Ctrl-Alt-]", run: VOe } -], QOe = { + return e.length > 0 && t.dispatch({ effects: nM(t.state, e) }), !!e.length; +}, UOe = [ + { key: "Ctrl-Shift-[", mac: "Cmd-Alt-[", run: POe }, + { key: "Ctrl-Shift-]", mac: "Cmd-Alt-]", run: $Oe }, + { key: "Ctrl-Alt-[", run: BOe }, + { key: "Ctrl-Alt-]", run: FOe } +], qOe = { placeholderDOM: null, preparePlaceholder: null, placeholderText: "\u2026" -}, oM = /* @__PURE__ */ _t.define({ +}, iM = /* @__PURE__ */ _t.define({ combine(t) { - return Yc(t, QOe); + return Yc(t, qOe); } }); -function WK(t) { - let e = [hf, XOe]; - return t && e.push(oM.of(t)), e; +function qK(t) { + let e = [hf, GOe]; + return t && e.push(iM.of(t)), e; } -function GK(t, e) { - let { state: r } = t, n = r.facet(oM), i = (a) => { +function YK(t, e) { + let { state: r } = t, n = r.facet(iM), i = (a) => { let o = t.lineBlockAt(t.posAtDOM(a.target)), l = Iy(t.state, o.from, o.to); l && t.dispatch({ effects: Bf.of(l) }), a.preventDefault(); }; @@ -12527,12 +12527,12 @@ function GK(t, e) { let s = document.createElement("span"); return s.textContent = n.placeholderText, s.setAttribute("aria-label", r.phrase("folded code")), s.title = r.phrase("unfold"), s.className = "cm-foldPlaceholder", s.onclick = i, s; } -const yF = /* @__PURE__ */ Et.replace({ widget: /* @__PURE__ */ new class extends za { +const gF = /* @__PURE__ */ Et.replace({ widget: /* @__PURE__ */ new class extends za { toDOM(t) { - return GK(t, null); + return YK(t, null); } }() }); -class WOe extends za { +class YOe extends za { constructor(e) { super(), this.value = e; } @@ -12540,17 +12540,17 @@ class WOe extends za { return this.value == e.value; } toDOM(e) { - return GK(e, this.value); + return YK(e, this.value); } } -const GOe = { +const QOe = { openText: "\u2304", closedText: "\u203A", markerDOM: null, domEventHandlers: {}, foldingChanged: () => !1 }; -class ME extends Uo { +class LE extends Uo { constructor(e, r) { super(), this.config = e, this.open = r; } @@ -12564,8 +12564,8 @@ class ME extends Uo { return r.textContent = this.open ? this.config.openText : this.config.closedText, r.title = e.state.phrase(this.open ? "Fold line" : "Unfold line"), r; } } -function HOe(t = {}) { - let e = Object.assign(Object.assign({}, GOe), t), r = new ME(e, !0), n = new ME(e, !1), i = on.fromClass(class { +function WOe(t = {}) { + let e = Object.assign(Object.assign({}, QOe), t), r = new LE(e, !0), n = new LE(e, !1), i = on.fromClass(class { constructor(a) { this.from = a.viewport.from, this.markers = this.buildMarkers(a); } @@ -12583,14 +12583,14 @@ function HOe(t = {}) { }), { domEventHandlers: s } = e; return [ i, - zS({ + FS({ class: "cm-foldGutter", markers(a) { var o; return ((o = a.plugin(i)) === null || o === void 0 ? void 0 : o.markers) || Er.empty; }, initialSpacer() { - return new ME(e, !1); + return new LE(e, !1); }, domEventHandlers: Object.assign(Object.assign({}, s), { click: (a, o, l) => { if (s.click && s.click(a, o, l)) @@ -12602,10 +12602,10 @@ function HOe(t = {}) { return h ? (a.dispatch({ effects: Nc.of(h) }), !0) : !1; } }) }), - WK() + qK() ]; } -const XOe = /* @__PURE__ */ ht.baseTheme({ +const GOe = /* @__PURE__ */ ht.baseTheme({ ".cm-foldPlaceholder": { backgroundColor: "#eee", border: "1px solid #ddd", @@ -12620,7 +12620,7 @@ const XOe = /* @__PURE__ */ ht.baseTheme({ cursor: "pointer" } }); -class YS { +class qS { constructor(e, r) { this.specs = e; let n; @@ -12629,7 +12629,7 @@ class YS { return (n || (n = /* @__PURE__ */ Object.create(null)))["." + l] = o, l; } const s = typeof r.all == "string" ? r.all : r.all ? i(r.all) : void 0, a = r.scope; - this.scope = a instanceof no ? (o) => o.prop($h) == a.data : a ? (o) => o == a : void 0, this.style = zK(e.map((o) => ({ + this.scope = a instanceof no ? (o) => o.prop($h) == a.data : a ? (o) => o == a : void 0, this.style = $K(e.map((o) => ({ tag: o.tag, class: o.class || i(Object.assign({}, o, { tag: null })) })), { @@ -12637,28 +12637,28 @@ class YS { }).style, this.module = n ? new Pu(n) : null, this.themeType = r.themeType; } static define(e, r) { - return new YS(e, r || {}); + return new qS(e, r || {}); } } -const k7 = /* @__PURE__ */ _t.define(), HK = /* @__PURE__ */ _t.define({ +const w7 = /* @__PURE__ */ _t.define(), QK = /* @__PURE__ */ _t.define({ combine(t) { return t.length ? [t[0]] : null; } }); -function DE(t) { - let e = t.facet(k7); - return e.length ? e : t.facet(HK); +function RE(t) { + let e = t.facet(w7); + return e.length ? e : t.facet(QK); } -function XK(t, e) { - let r = [jOe], n; - return t instanceof YS && (t.module && r.push(ht.styleModule.of(t.module)), n = t.themeType), e != null && e.fallback ? r.push(HK.of(t)) : n ? r.push(k7.computeN([ht.darkTheme], (i) => i.facet(ht.darkTheme) == (n == "dark") ? [t] : [])) : r.push(k7.of(t)), r; +function WK(t, e) { + let r = [XOe], n; + return t instanceof qS && (t.module && r.push(ht.styleModule.of(t.module)), n = t.themeType), e != null && e.fallback ? r.push(QK.of(t)) : n ? r.push(w7.computeN([ht.darkTheme], (i) => i.facet(ht.darkTheme) == (n == "dark") ? [t] : [])) : r.push(w7.of(t)), r; } -class ZOe { +class HOe { constructor(e) { - this.markCache = /* @__PURE__ */ Object.create(null), this.tree = Jr(e.state), this.decorations = this.buildDeco(e, DE(e.state)); + this.markCache = /* @__PURE__ */ Object.create(null), this.tree = Jr(e.state), this.decorations = this.buildDeco(e, RE(e.state)); } update(e) { - let r = Jr(e.state), n = DE(e.state), i = n != DE(e.startState); + let r = Jr(e.state), n = RE(e.state), i = n != RE(e.startState); r.length < e.view.viewport.to && !i && r.type == this.tree.type ? this.decorations = this.decorations.map(e.changes) : (r != this.tree || e.viewportChanged || i) && (this.tree = r, this.decorations = this.buildDeco(e.view, n)); } buildDeco(e, r) { @@ -12666,15 +12666,15 @@ class ZOe { return Et.none; let n = new Hi(); for (let { from: i, to: s } of e.visibleRanges) - bOe(this.tree, r, (a, o, l) => { + vOe(this.tree, r, (a, o, l) => { n.add(a, o, this.markCache[l] || (this.markCache[l] = Et.mark({ class: l }))); }, i, s); return n.finish(); } } -const jOe = /* @__PURE__ */ zl.high(/* @__PURE__ */ on.fromClass(ZOe, { +const XOe = /* @__PURE__ */ zl.high(/* @__PURE__ */ on.fromClass(HOe, { decorations: (t) => t.decorations -})), ZK = /* @__PURE__ */ YS.define([ +})), GK = /* @__PURE__ */ qS.define([ { tag: Se.meta, color: "#404740" @@ -12752,31 +12752,31 @@ const jOe = /* @__PURE__ */ zl.high(/* @__PURE__ */ on.fromClass(ZOe, { tag: Se.invalid, color: "#f00" } -]), KOe = /* @__PURE__ */ ht.baseTheme({ +]), ZOe = /* @__PURE__ */ ht.baseTheme({ "&.cm-focused .cm-matchingBracket": { backgroundColor: "#328c8252" }, "&.cm-focused .cm-nonmatchingBracket": { backgroundColor: "#bb555544" } -}), jK = 1e4, KK = "()[]{}", JK = /* @__PURE__ */ _t.define({ +}), HK = 1e4, XK = "()[]{}", ZK = /* @__PURE__ */ _t.define({ combine(t) { return Yc(t, { afterCursor: !0, - brackets: KK, - maxScanDistance: jK, - renderMatch: t4e + brackets: XK, + maxScanDistance: HK, + renderMatch: JOe }); } -}), JOe = /* @__PURE__ */ Et.mark({ class: "cm-matchingBracket" }), e4e = /* @__PURE__ */ Et.mark({ class: "cm-nonmatchingBracket" }); -function t4e(t) { - let e = [], r = t.matched ? JOe : e4e; +}), jOe = /* @__PURE__ */ Et.mark({ class: "cm-matchingBracket" }), KOe = /* @__PURE__ */ Et.mark({ class: "cm-nonmatchingBracket" }); +function JOe(t) { + let e = [], r = t.matched ? jOe : KOe; return e.push(r.range(t.start.from, t.start.to)), t.end && e.push(r.range(t.end.from, t.end.to)), e; } -const r4e = /* @__PURE__ */ $n.define({ +const e4e = /* @__PURE__ */ $n.define({ create() { return Et.none; }, update(t, e) { if (!e.docChanged && !e.selection) return t; - let r = [], n = e.state.facet(JK); + let r = [], n = e.state.facet(ZK); for (let i of e.state.selection.ranges) { if (!i.empty) continue; @@ -12786,15 +12786,15 @@ const r4e = /* @__PURE__ */ $n.define({ return Et.set(r, !0); }, provide: (t) => ht.decorations.from(t) -}), n4e = [ - r4e, - KOe +}), t4e = [ + e4e, + ZOe ]; -function i4e(t = {}) { - return [JK.of(t), n4e]; +function r4e(t = {}) { + return [ZK.of(t), t4e]; } -const eJ = /* @__PURE__ */ new or(); -function S7(t, e, r) { +const jK = /* @__PURE__ */ new or(); +function O7(t, e, r) { let n = t.prop(e < 0 ? or.openedBy : or.closedBy); if (n) return n; @@ -12805,35 +12805,35 @@ function S7(t, e, r) { } return null; } -function T7(t) { - let e = t.type.prop(eJ); +function k7(t) { + let e = t.type.prop(jK); return e ? e(t.node) : t; } function mc(t, e, r, n = {}) { - let i = n.maxScanDistance || jK, s = n.brackets || KK, a = Jr(t), o = a.resolveInner(e, r); + let i = n.maxScanDistance || HK, s = n.brackets || XK, a = Jr(t), o = a.resolveInner(e, r); for (let l = o; l; l = l.parent) { - let u = S7(l.type, r, s); + let u = O7(l.type, r, s); if (u && l.from < l.to) { - let h = T7(l); + let h = k7(l); if (h && (r > 0 ? e >= h.from && e < h.to : e > h.from && e <= h.to)) - return s4e(t, e, r, l, h, u, s); + return n4e(t, e, r, l, h, u, s); } } - return a4e(t, e, r, a, o.type, i, s); + return i4e(t, e, r, a, o.type, i, s); } -function s4e(t, e, r, n, i, s, a) { +function n4e(t, e, r, n, i, s, a) { let o = n.parent, l = { from: i.from, to: i.to }, u = 0, h = o == null ? void 0 : o.cursor(); if (h && (r < 0 ? h.childBefore(n.from) : h.childAfter(n.to))) do if (r < 0 ? h.to <= n.from : h.from >= n.to) { if (u == 0 && s.indexOf(h.type.name) > -1 && h.from < h.to) { - let f = T7(h); + let f = k7(h); return { start: l, end: f ? { from: f.from, to: f.to } : void 0, matched: !0 }; - } else if (S7(h.type, r, a)) + } else if (O7(h.type, r, a)) u++; - else if (S7(h.type, -r, a)) { + else if (O7(h.type, -r, a)) { if (u == 0) { - let f = T7(h); + let f = k7(h); return { start: l, end: f && f.from < f.to ? { from: f.from, to: f.to } : void 0, @@ -12846,7 +12846,7 @@ function s4e(t, e, r, n, i, s, a) { while (r < 0 ? h.prevSibling() : h.nextSibling()); return { start: l, matched: !1 }; } -function a4e(t, e, r, n, i, s, a) { +function i4e(t, e, r, n, i, s, a) { let o = r < 0 ? t.sliceDoc(e - 1, e) : t.sliceDoc(e, e + 1), l = a.indexOf(o); if (l < 0 || l % 2 == 0 != r > 0) return null; @@ -12870,7 +12870,7 @@ function a4e(t, e, r, n, i, s, a) { } return h.done ? { start: u, matched: !1 } : null; } -const o4e = /* @__PURE__ */ Object.create(null), bF = [Li.none], xF = [], wF = /* @__PURE__ */ Object.create(null), l4e = /* @__PURE__ */ Object.create(null); +const s4e = /* @__PURE__ */ Object.create(null), mF = [Li.none], vF = [], yF = /* @__PURE__ */ Object.create(null), a4e = /* @__PURE__ */ Object.create(null); for (let [t, e] of [ ["variable", "variableName"], ["variable-2", "variableName.special"], @@ -12885,38 +12885,38 @@ for (let [t, e] of [ ["header", "heading"], ["property", "propertyName"] ]) - l4e[t] = /* @__PURE__ */ c4e(o4e, e); -function NE(t, e) { - xF.indexOf(t) > -1 || (xF.push(t), console.warn(e)); + a4e[t] = /* @__PURE__ */ o4e(s4e, e); +function ME(t, e) { + vF.indexOf(t) > -1 || (vF.push(t), console.warn(e)); } -function c4e(t, e) { +function o4e(t, e) { let r = []; for (let o of e.split(" ")) { let l = []; for (let u of o.split(".")) { let h = t[u] || Se[u]; - h ? typeof h == "function" ? l.length ? l = l.map(h) : NE(u, `Modifier ${u} used at start of tag`) : l.length ? NE(u, `Tag ${u} used as modifier`) : l = Array.isArray(h) ? h : [h] : NE(u, `Unknown highlighting tag ${u}`); + h ? typeof h == "function" ? l.length ? l = l.map(h) : ME(u, `Modifier ${u} used at start of tag`) : l.length ? ME(u, `Tag ${u} used as modifier`) : l = Array.isArray(h) ? h : [h] : ME(u, `Unknown highlighting tag ${u}`); } for (let u of l) r.push(u); } if (!r.length) return 0; - let n = e.replace(/ /g, "_"), i = n + " " + r.map((o) => o.id), s = wF[i]; + let n = e.replace(/ /g, "_"), i = n + " " + r.map((o) => o.id), s = yF[i]; if (s) return s.id; - let a = wF[i] = Li.define({ - id: bF.length, + let a = yF[i] = Li.define({ + id: mF.length, name: n, props: [P1({ [n]: r })] }); - return bF.push(a), a.id; + return mF.push(a), a.id; } -const u4e = (t) => { - let { state: e } = t, r = e.doc.lineAt(e.selection.main.from), n = cM(t.state, r.from); - return n.line ? h4e(t) : n.block ? d4e(t) : !1; +const l4e = (t) => { + let { state: e } = t, r = e.doc.lineAt(e.selection.main.from), n = aM(t.state, r.from); + return n.line ? c4e(t) : n.block ? h4e(t) : !1; }; -function lM(t, e) { +function sM(t, e) { return ({ state: r, dispatch: n }) => { if (r.readOnly) return !1; @@ -12924,13 +12924,13 @@ function lM(t, e) { return i ? (n(r.update(i)), !0) : !1; }; } -const h4e = /* @__PURE__ */ lM(m4e, 0), f4e = /* @__PURE__ */ lM(tJ, 0), d4e = /* @__PURE__ */ lM((t, e) => tJ(t, e, g4e(e)), 0); -function cM(t, e) { +const c4e = /* @__PURE__ */ sM(p4e, 0), u4e = /* @__PURE__ */ sM(KK, 0), h4e = /* @__PURE__ */ sM((t, e) => KK(t, e, d4e(e)), 0); +function aM(t, e) { let r = t.languageDataAt("commentTokens", e); return r.length ? r[0] : {}; } const Dm = 50; -function p4e(t, { open: e, close: r }, n, i) { +function f4e(t, { open: e, close: r }, n, i) { let s = t.sliceDoc(n - Dm, n), a = t.sliceDoc(i, i + Dm), o = /\s*$/.exec(s)[0].length, l = /^\s*/.exec(a)[0].length, u = s.length - o; if (s.slice(u - e.length, u) == e && a.slice(l, l + r.length) == r) return { @@ -12951,7 +12951,7 @@ function p4e(t, { open: e, close: r }, n, i) { } } : null; } -function g4e(t) { +function d4e(t) { let e = []; for (let r of t.selection.ranges) { let n = t.doc.lineAt(r.from), i = r.to <= n.to ? n : t.doc.lineAt(r.to), s = e.length - 1; @@ -12959,11 +12959,11 @@ function g4e(t) { } return e; } -function tJ(t, e, r = e.selection.ranges) { - let n = r.map((s) => cM(e, s.from).block); +function KK(t, e, r = e.selection.ranges) { + let n = r.map((s) => aM(e, s.from).block); if (!n.every((s) => s)) return null; - let i = r.map((s, a) => p4e(e, n[a], s.from, s.to)); + let i = r.map((s, a) => f4e(e, n[a], s.from, s.to)); if (t != 2 && !i.every((s) => s)) return { changes: e.changes(r.map((s, a) => i[a] ? [] : [{ from: s.from, insert: n[a].open + " " }, { from: s.to, insert: " " + n[a].close }])) }; if (t != 1 && i.some((s) => s)) { @@ -12977,10 +12977,10 @@ function tJ(t, e, r = e.selection.ranges) { } return null; } -function m4e(t, e, r = e.selection.ranges) { +function p4e(t, e, r = e.selection.ranges) { let n = [], i = -1; for (let { from: s, to: a } of r) { - let o = n.length, l = 1e9, u = cM(e, s).line; + let o = n.length, l = 1e9, u = aM(e, s).line; if (!!u) { for (let h = s; h <= a; ) { let f = e.doc.lineAt(h); @@ -13014,7 +13014,7 @@ function m4e(t, e, r = e.selection.ranges) { } return null; } -const C7 = /* @__PURE__ */ Vl.define(), v4e = /* @__PURE__ */ Vl.define(), y4e = /* @__PURE__ */ _t.define(), rJ = /* @__PURE__ */ _t.define({ +const S7 = /* @__PURE__ */ Vl.define(), g4e = /* @__PURE__ */ Vl.define(), m4e = /* @__PURE__ */ _t.define(), JK = /* @__PURE__ */ _t.define({ combine(t) { return Yc(t, { minDepth: 100, @@ -13026,17 +13026,17 @@ const C7 = /* @__PURE__ */ Vl.define(), v4e = /* @__PURE__ */ Vl.define(), y4e = joinToEvent: (e, r) => (n, i) => e(n, i) || r(n, i) }); } -}), nJ = /* @__PURE__ */ $n.define({ +}), eJ = /* @__PURE__ */ $n.define({ create() { return vc.empty; }, update(t, e) { - let r = e.state.facet(rJ), n = e.annotation(C7); + let r = e.state.facet(JK), n = e.annotation(S7); if (n) { let l = Ma.fromTransaction(e, n.selection), u = n.side, h = u == 0 ? t.undone : t.done; - return l ? h = D5(h, h.length, r.minDepth, l) : h = aJ(h, e.startState.selection), new vc(u == 0 ? n.rest : h, u == 0 ? h : n.rest); + return l ? h = M5(h, h.length, r.minDepth, l) : h = nJ(h, e.startState.selection), new vc(u == 0 ? n.rest : h, u == 0 ? h : n.rest); } - let i = e.annotation(v4e); + let i = e.annotation(g4e); if ((i == "full" || i == "before") && (t = t.isolate()), e.annotation(fi.addToHistory) === !1) return e.changes.empty ? t : t.addMapping(e.changes.desc); let s = Ma.fromTransaction(e), a = e.annotation(fi.time), o = e.annotation(fi.userEvent); @@ -13049,30 +13049,30 @@ const C7 = /* @__PURE__ */ Vl.define(), v4e = /* @__PURE__ */ Vl.define(), y4e = return new vc(t.done.map(Ma.fromJSON), t.undone.map(Ma.fromJSON)); } }); -function uM(t = {}) { +function oM(t = {}) { return [ - nJ, - rJ.of(t), + eJ, + JK.of(t), ht.domEventHandlers({ beforeinput(e, r) { - let n = e.inputType == "historyUndo" ? iJ : e.inputType == "historyRedo" ? M5 : null; + let n = e.inputType == "historyUndo" ? tJ : e.inputType == "historyRedo" ? R5 : null; return n ? (e.preventDefault(), n(r)) : !1; } }) ]; } -function QS(t, e) { +function YS(t, e) { return function({ state: r, dispatch: n }) { if (!e && r.readOnly) return !1; - let i = r.field(nJ, !1); + let i = r.field(eJ, !1); if (!i) return !1; let s = i.pop(t, r, e); return s ? (n(s), !0) : !1; }; } -const iJ = /* @__PURE__ */ QS(0, !1), M5 = /* @__PURE__ */ QS(1, !1), b4e = /* @__PURE__ */ QS(0, !0), x4e = /* @__PURE__ */ QS(1, !0); +const tJ = /* @__PURE__ */ YS(0, !1), R5 = /* @__PURE__ */ YS(1, !1), v4e = /* @__PURE__ */ YS(0, !0), y4e = /* @__PURE__ */ YS(1, !0); class Ma { constructor(e, r, n, i, s) { this.changes = e, this.effects = r, this.mapped = n, this.startSelection = i, this.selectionsAfter = s; @@ -13094,7 +13094,7 @@ class Ma { } static fromTransaction(e, r) { let n = Do; - for (let i of e.startState.facet(y4e)) { + for (let i of e.startState.facet(m4e)) { let s = i(e); s.length && (n = n.concat(s)); } @@ -13104,11 +13104,11 @@ class Ma { return new Ma(void 0, Do, void 0, void 0, e); } } -function D5(t, e, r, n) { +function M5(t, e, r, n) { let i = e + 1 > r + 20 ? e - r - 1 : 0, s = t.slice(i, e); return s.push(n), s; } -function w4e(t, e) { +function b4e(t, e) { let r = [], n = !1; return t.iterChangedRanges((i, s) => r.push(i, s)), e.iterChangedRanges((i, s, a, o) => { for (let l = 0; l < r.length; ) { @@ -13117,30 +13117,30 @@ function w4e(t, e) { } }), n; } -function O4e(t, e) { +function x4e(t, e) { return t.ranges.length == e.ranges.length && t.ranges.filter((r, n) => r.empty != e.ranges[n].empty).length === 0; } -function sJ(t, e) { +function rJ(t, e) { return t.length ? e.length ? t.concat(e) : t : e; } -const Do = [], k4e = 200; -function aJ(t, e) { +const Do = [], w4e = 200; +function nJ(t, e) { if (t.length) { - let r = t[t.length - 1], n = r.selectionsAfter.slice(Math.max(0, r.selectionsAfter.length - k4e)); - return n.length && n[n.length - 1].eq(e) ? t : (n.push(e), D5(t, t.length - 1, 1e9, r.setSelAfter(n))); + let r = t[t.length - 1], n = r.selectionsAfter.slice(Math.max(0, r.selectionsAfter.length - w4e)); + return n.length && n[n.length - 1].eq(e) ? t : (n.push(e), M5(t, t.length - 1, 1e9, r.setSelAfter(n))); } else return [Ma.selection([e])]; } -function S4e(t) { +function O4e(t) { let e = t[t.length - 1], r = t.slice(); return r[t.length - 1] = e.setSelAfter(e.selectionsAfter.slice(0, e.selectionsAfter.length - 1)), r; } -function IE(t, e) { +function DE(t, e) { if (!t.length) return t; let r = t.length, n = Do; for (; r; ) { - let i = T4e(t[r - 1], e, n); + let i = k4e(t[r - 1], e, n); if (i.changes && !i.changes.empty || i.effects.length) { let s = t.slice(0, r); return s[r - 1] = i, s; @@ -13149,14 +13149,14 @@ function IE(t, e) { } return n.length ? [Ma.selection(n)] : Do; } -function T4e(t, e, r) { - let n = sJ(t.selectionsAfter.length ? t.selectionsAfter.map((o) => o.map(e)) : Do, r); +function k4e(t, e, r) { + let n = rJ(t.selectionsAfter.length ? t.selectionsAfter.map((o) => o.map(e)) : Do, r); if (!t.changes) return Ma.selection(n); let i = t.changes.map(e), s = e.mapDesc(t.changes, !0), a = t.mapped ? t.mapped.composeDesc(s) : s; return new Ma(i, Zt.mapEffects(t.effects, e), a, t.startSelection.map(s), n); } -const C4e = /^(input\.type|delete)($|\.)/; +const S4e = /^(input\.type|delete)($|\.)/; class vc { constructor(e, r, n = 0, i = void 0) { this.done = e, this.undone = r, this.prevTime = n, this.prevUserEvent = i; @@ -13166,14 +13166,14 @@ class vc { } addChanges(e, r, n, i, s) { let a = this.done, o = a[a.length - 1]; - return o && o.changes && !o.changes.empty && e.changes && (!n || C4e.test(n)) && (!o.selectionsAfter.length && r - this.prevTime < i.newGroupDelay && i.joinToEvent(s, w4e(o.changes, e.changes)) || n == "input.type.compose") ? a = D5(a, a.length - 1, i.minDepth, new Ma(e.changes.compose(o.changes), sJ(e.effects, o.effects), o.mapped, o.startSelection, Do)) : a = D5(a, a.length, i.minDepth, e), new vc(a, Do, r, n); + return o && o.changes && !o.changes.empty && e.changes && (!n || S4e.test(n)) && (!o.selectionsAfter.length && r - this.prevTime < i.newGroupDelay && i.joinToEvent(s, b4e(o.changes, e.changes)) || n == "input.type.compose") ? a = M5(a, a.length - 1, i.minDepth, new Ma(e.changes.compose(o.changes), rJ(e.effects, o.effects), o.mapped, o.startSelection, Do)) : a = M5(a, a.length, i.minDepth, e), new vc(a, Do, r, n); } addSelection(e, r, n, i) { let s = this.done.length ? this.done[this.done.length - 1].selectionsAfter : Do; - return s.length > 0 && r - this.prevTime < i && n == this.prevUserEvent && n && /^select($|\.)/.test(n) && O4e(s[s.length - 1], e) ? this : new vc(aJ(this.done, e), this.undone, r, n); + return s.length > 0 && r - this.prevTime < i && n == this.prevUserEvent && n && /^select($|\.)/.test(n) && x4e(s[s.length - 1], e) ? this : new vc(nJ(this.done, e), this.undone, r, n); } addMapping(e) { - return new vc(IE(this.done, e), IE(this.undone, e), this.prevTime, this.prevUserEvent); + return new vc(DE(this.done, e), DE(this.undone, e), this.prevTime, this.prevUserEvent); } pop(e, r, n) { let i = e == 0 ? this.done : this.undone; @@ -13183,17 +13183,17 @@ class vc { if (n && s.selectionsAfter.length) return r.update({ selection: s.selectionsAfter[s.selectionsAfter.length - 1], - annotations: C7.of({ side: e, rest: S4e(i), selection: a }), + annotations: S7.of({ side: e, rest: O4e(i), selection: a }), userEvent: e == 0 ? "select.undo" : "select.redo", scrollIntoView: !0 }); if (s.changes) { let o = i.length == 1 ? Do : i.slice(0, i.length - 1); - return s.mapped && (o = IE(o, s.mapped)), r.update({ + return s.mapped && (o = DE(o, s.mapped)), r.update({ changes: s.changes, selection: s.startSelection, effects: s.effects, - annotations: C7.of({ side: e, rest: o, selection: a }), + annotations: S7.of({ side: e, rest: o, selection: a }), filter: !1, userEvent: e == 0 ? "undo" : "redo", scrollIntoView: !0 @@ -13203,12 +13203,12 @@ class vc { } } vc.empty = /* @__PURE__ */ new vc(Do, Do); -const oJ = [ - { key: "Mod-z", run: iJ, preventDefault: !0 }, - { key: "Mod-y", mac: "Mod-Shift-z", run: M5, preventDefault: !0 }, - { linux: "Ctrl-Shift-z", run: M5, preventDefault: !0 }, - { key: "Mod-u", run: b4e, preventDefault: !0 }, - { key: "Alt-u", mac: "Mod-Shift-u", run: x4e, preventDefault: !0 } +const iJ = [ + { key: "Mod-z", run: tJ, preventDefault: !0 }, + { key: "Mod-y", mac: "Mod-Shift-z", run: R5, preventDefault: !0 }, + { linux: "Ctrl-Shift-z", run: R5, preventDefault: !0 }, + { key: "Mod-u", run: v4e, preventDefault: !0 }, + { key: "Alt-u", mac: "Mod-Shift-u", run: y4e, preventDefault: !0 } ]; function B1(t, e) { return Ve.create(t.ranges.map(e), t.mainIndex); @@ -13220,48 +13220,48 @@ function Ul({ state: t, dispatch: e }, r) { let n = B1(t.selection, r); return n.eq(t.selection) ? !1 : (e(Qc(t, n)), !0); } -function WS(t, e) { +function QS(t, e) { return Ve.cursor(e ? t.to : t.from); } -function lJ(t, e) { - return Ul(t, (r) => r.empty ? t.moveByChar(r, e) : WS(r, e)); +function sJ(t, e) { + return Ul(t, (r) => r.empty ? t.moveByChar(r, e) : QS(r, e)); } function Us(t) { return t.textDirectionAt(t.state.selection.main.head) == In.LTR; } -const cJ = (t) => lJ(t, !Us(t)), uJ = (t) => lJ(t, Us(t)); -function hJ(t, e) { - return Ul(t, (r) => r.empty ? t.moveByGroup(r, e) : WS(r, e)); +const aJ = (t) => sJ(t, !Us(t)), oJ = (t) => sJ(t, Us(t)); +function lJ(t, e) { + return Ul(t, (r) => r.empty ? t.moveByGroup(r, e) : QS(r, e)); } -const E4e = (t) => hJ(t, !Us(t)), _4e = (t) => hJ(t, Us(t)); -function A4e(t, e, r) { +const T4e = (t) => lJ(t, !Us(t)), C4e = (t) => lJ(t, Us(t)); +function E4e(t, e, r) { if (e.type.prop(r)) return !0; let n = e.to - e.from; return n && (n > 2 || /[^\s,.;:]/.test(t.sliceDoc(e.from, e.to))) || e.firstChild; } -function GS(t, e, r) { +function WS(t, e, r) { let n = Jr(t).resolveInner(e.head), i = r ? or.closedBy : or.openedBy; for (let l = e.head; ; ) { let u = r ? n.childAfter(l) : n.childBefore(l); if (!u) break; - A4e(t, u, i) ? n = u : l = r ? u.to : u.from; + E4e(t, u, i) ? n = u : l = r ? u.to : u.from; } let s = n.type.prop(i), a, o; return s && (a = r ? mc(t, n.from, 1) : mc(t, n.to, -1)) && a.matched ? o = r ? a.end.to : a.end.from : o = r ? n.to : n.from, Ve.cursor(o, r ? -1 : 1); } -const L4e = (t) => Ul(t, (e) => GS(t.state, e, !Us(t))), R4e = (t) => Ul(t, (e) => GS(t.state, e, Us(t))); -function fJ(t, e) { +const _4e = (t) => Ul(t, (e) => WS(t.state, e, !Us(t))), A4e = (t) => Ul(t, (e) => WS(t.state, e, Us(t))); +function cJ(t, e) { return Ul(t, (r) => { if (!r.empty) - return WS(r, e); + return QS(r, e); let n = t.moveVertically(r, e); return n.head != r.head ? n : t.moveToLineBoundary(r, e); }); } -const dJ = (t) => fJ(t, !1), pJ = (t) => fJ(t, !0); -function gJ(t) { +const uJ = (t) => cJ(t, !1), hJ = (t) => cJ(t, !0); +function fJ(t) { let e = t.scrollDOM.clientHeight < t.scrollDOM.scrollHeight - 2, r = 0, n = 0, i; if (e) { for (let s of t.state.facet(ht.scrollMargins)) { @@ -13278,8 +13278,8 @@ function gJ(t) { height: Math.max(t.defaultLineHeight, i - 5) }; } -function mJ(t, e) { - let r = gJ(t), { state: n } = t, i = B1(n.selection, (a) => a.empty ? t.moveVertically(a, e, r.height) : WS(a, e)); +function dJ(t, e) { + let r = fJ(t), { state: n } = t, i = B1(n.selection, (a) => a.empty ? t.moveVertically(a, e, r.height) : QS(a, e)); if (i.eq(n.selection)) return !1; let s; @@ -13289,7 +13289,7 @@ function mJ(t, e) { } return t.dispatch(Qc(n, i), { effects: s }), !0; } -const OF = (t) => mJ(t, !1), E7 = (t) => mJ(t, !0); +const bF = (t) => dJ(t, !1), T7 = (t) => dJ(t, !0); function Ff(t, e, r) { let n = t.lineBlockAt(e.head), i = t.moveToLineBoundary(e, r); if (i.head == e.head && i.head != (r ? n.to : n.from) && (i = t.moveToLineBoundary(e, r, !1)), !r && i.head == n.from && n.length) { @@ -13298,8 +13298,8 @@ function Ff(t, e, r) { } return i; } -const M4e = (t) => Ul(t, (e) => Ff(t, e, !0)), D4e = (t) => Ul(t, (e) => Ff(t, e, !1)), N4e = (t) => Ul(t, (e) => Ff(t, e, !Us(t))), I4e = (t) => Ul(t, (e) => Ff(t, e, Us(t))), P4e = (t) => Ul(t, (e) => Ve.cursor(t.lineBlockAt(e.head).from, 1)), $4e = (t) => Ul(t, (e) => Ve.cursor(t.lineBlockAt(e.head).to, -1)); -function B4e(t, e, r) { +const L4e = (t) => Ul(t, (e) => Ff(t, e, !0)), R4e = (t) => Ul(t, (e) => Ff(t, e, !1)), M4e = (t) => Ul(t, (e) => Ff(t, e, !Us(t))), D4e = (t) => Ul(t, (e) => Ff(t, e, Us(t))), N4e = (t) => Ul(t, (e) => Ve.cursor(t.lineBlockAt(e.head).from, 1)), I4e = (t) => Ul(t, (e) => Ve.cursor(t.lineBlockAt(e.head).to, -1)); +function P4e(t, e, r) { let n = !1, i = B1(t.selection, (s) => { let a = mc(t, s.head, -1) || mc(t, s.head, 1) || s.head > 0 && mc(t, s.head - 1, 1) || s.head < t.doc.length && mc(t, s.head + 1, -1); if (!a || !a.end) @@ -13310,7 +13310,7 @@ function B4e(t, e, r) { }); return n ? (e(Qc(t, i)), !0) : !1; } -const F4e = ({ state: t, dispatch: e }) => B4e(t, e, !1); +const $4e = ({ state: t, dispatch: e }) => P4e(t, e, !1); function tl(t, e) { let r = B1(t.state.selection, (n) => { let i = e(n); @@ -13318,25 +13318,25 @@ function tl(t, e) { }); return r.eq(t.state.selection) ? !1 : (t.dispatch(Qc(t.state, r)), !0); } -function vJ(t, e) { +function pJ(t, e) { return tl(t, (r) => t.moveByChar(r, e)); } -const yJ = (t) => vJ(t, !Us(t)), bJ = (t) => vJ(t, Us(t)); -function xJ(t, e) { +const gJ = (t) => pJ(t, !Us(t)), mJ = (t) => pJ(t, Us(t)); +function vJ(t, e) { return tl(t, (r) => t.moveByGroup(r, e)); } -const z4e = (t) => xJ(t, !Us(t)), V4e = (t) => xJ(t, Us(t)), U4e = (t) => tl(t, (e) => GS(t.state, e, !Us(t))), q4e = (t) => tl(t, (e) => GS(t.state, e, Us(t))); -function wJ(t, e) { +const B4e = (t) => vJ(t, !Us(t)), F4e = (t) => vJ(t, Us(t)), z4e = (t) => tl(t, (e) => WS(t.state, e, !Us(t))), V4e = (t) => tl(t, (e) => WS(t.state, e, Us(t))); +function yJ(t, e) { return tl(t, (r) => t.moveVertically(r, e)); } -const OJ = (t) => wJ(t, !1), kJ = (t) => wJ(t, !0); -function SJ(t, e) { - return tl(t, (r) => t.moveVertically(r, e, gJ(t).height)); +const bJ = (t) => yJ(t, !1), xJ = (t) => yJ(t, !0); +function wJ(t, e) { + return tl(t, (r) => t.moveVertically(r, e, fJ(t).height)); } -const kF = (t) => SJ(t, !1), SF = (t) => SJ(t, !0), Y4e = (t) => tl(t, (e) => Ff(t, e, !0)), Q4e = (t) => tl(t, (e) => Ff(t, e, !1)), W4e = (t) => tl(t, (e) => Ff(t, e, !Us(t))), G4e = (t) => tl(t, (e) => Ff(t, e, Us(t))), H4e = (t) => tl(t, (e) => Ve.cursor(t.lineBlockAt(e.head).from)), X4e = (t) => tl(t, (e) => Ve.cursor(t.lineBlockAt(e.head).to)), TF = ({ state: t, dispatch: e }) => (e(Qc(t, { anchor: 0 })), !0), CF = ({ state: t, dispatch: e }) => (e(Qc(t, { anchor: t.doc.length })), !0), EF = ({ state: t, dispatch: e }) => (e(Qc(t, { anchor: t.selection.main.anchor, head: 0 })), !0), _F = ({ state: t, dispatch: e }) => (e(Qc(t, { anchor: t.selection.main.anchor, head: t.doc.length })), !0), Z4e = ({ state: t, dispatch: e }) => (e(t.update({ selection: { anchor: 0, head: t.doc.length }, userEvent: "select" })), !0), j4e = ({ state: t, dispatch: e }) => { - let r = HS(t).map(({ from: n, to: i }) => Ve.range(n, Math.min(i + 1, t.doc.length))); +const xF = (t) => wJ(t, !1), wF = (t) => wJ(t, !0), U4e = (t) => tl(t, (e) => Ff(t, e, !0)), q4e = (t) => tl(t, (e) => Ff(t, e, !1)), Y4e = (t) => tl(t, (e) => Ff(t, e, !Us(t))), Q4e = (t) => tl(t, (e) => Ff(t, e, Us(t))), W4e = (t) => tl(t, (e) => Ve.cursor(t.lineBlockAt(e.head).from)), G4e = (t) => tl(t, (e) => Ve.cursor(t.lineBlockAt(e.head).to)), OF = ({ state: t, dispatch: e }) => (e(Qc(t, { anchor: 0 })), !0), kF = ({ state: t, dispatch: e }) => (e(Qc(t, { anchor: t.doc.length })), !0), SF = ({ state: t, dispatch: e }) => (e(Qc(t, { anchor: t.selection.main.anchor, head: 0 })), !0), TF = ({ state: t, dispatch: e }) => (e(Qc(t, { anchor: t.selection.main.anchor, head: t.doc.length })), !0), H4e = ({ state: t, dispatch: e }) => (e(t.update({ selection: { anchor: 0, head: t.doc.length }, userEvent: "select" })), !0), X4e = ({ state: t, dispatch: e }) => { + let r = GS(t).map(({ from: n, to: i }) => Ve.range(n, Math.min(i + 1, t.doc.length))); return e(t.update({ selection: Ve.create(r), userEvent: "select" })), !0; -}, K4e = ({ state: t, dispatch: e }) => { +}, Z4e = ({ state: t, dispatch: e }) => { let r = B1(t.selection, (n) => { var i; let s = Jr(t).resolveStack(n.from, 1); @@ -13348,7 +13348,7 @@ const kF = (t) => SJ(t, !1), SF = (t) => SJ(t, !0), Y4e = (t) => tl(t, (e) => Ff return n; }); return e(Qc(t, r)), !0; -}, J4e = ({ state: t, dispatch: e }) => { +}, j4e = ({ state: t, dispatch: e }) => { let r = t.selection, n = null; return r.ranges.length > 1 ? n = Ve.create([r.main]) : r.main.empty || (n = Ve.create([Ve.cursor(r.main.head)])), n ? (e(Qc(t, n)), !0) : !1; }; @@ -13378,19 +13378,19 @@ function Ew(t, e, r) { }); return e; } -const TJ = (t, e) => Zb(t, (r) => { +const OJ = (t, e) => Zb(t, (r) => { let n = r.from, { state: i } = t, s = i.doc.lineAt(n), a, o; if (!e && n > s.from && n < s.from + 200 && !/[^ \t]/.test(a = s.text.slice(0, n - s.from))) { if (a[a.length - 1] == " ") return n - 1; - let l = Ml(a, i.tabSize), u = l % L5(i) || L5(i); + let l = Ml(a, i.tabSize), u = l % A5(i) || A5(i); for (let h = 0; h < u && a[a.length - 1 - h] == " "; h++) n--; o = n; } else o = ls(s.text, n - s.from, e, e) + s.from, o == n && s.number != (e ? i.doc.lines : 1) ? o += e ? 1 : -1 : !e && /[\ufe00-\ufe0f]/.test(s.text.slice(o - s.from, n - s.from)) && (o = ls(s.text, o - s.from, !1, !1) + s.from); return o; -}), _7 = (t) => TJ(t, !1), CJ = (t) => TJ(t, !0), EJ = (t, e) => Zb(t, (r) => { +}), C7 = (t) => OJ(t, !1), kJ = (t) => OJ(t, !0), SJ = (t, e) => Zb(t, (r) => { let n = r.head, { state: i } = t, s = i.doc.lineAt(n), a = i.charCategorizer(n); for (let o = null; ; ) { if (n == (e ? s.to : s.from)) { @@ -13403,16 +13403,16 @@ const TJ = (t, e) => Zb(t, (r) => { (u != " " || n != r.head) && (o = h), n = l; } return n; -}), _J = (t) => EJ(t, !1), e5e = (t) => EJ(t, !0), t5e = (t) => Zb(t, (e) => { +}), TJ = (t) => SJ(t, !1), K4e = (t) => SJ(t, !0), J4e = (t) => Zb(t, (e) => { let r = t.lineBlockAt(e.head).to; return e.head < r ? r : Math.min(t.state.doc.length, e.head + 1); -}), r5e = (t) => Zb(t, (e) => { +}), e5e = (t) => Zb(t, (e) => { let r = t.moveToLineBoundary(e, !1).head; return e.head > r ? r : Math.max(0, e.head - 1); -}), n5e = (t) => Zb(t, (e) => { +}), t5e = (t) => Zb(t, (e) => { let r = t.moveToLineBoundary(e, !0).head; return e.head < r ? r : Math.min(t.state.doc.length, e.head + 1); -}), i5e = ({ state: t, dispatch: e }) => { +}), r5e = ({ state: t, dispatch: e }) => { if (t.readOnly) return !1; let r = t.changeByRange((n) => ({ @@ -13420,7 +13420,7 @@ const TJ = (t, e) => Zb(t, (r) => { range: Ve.cursor(n.from) })); return e(t.update(r, { scrollIntoView: !0, userEvent: "input" })), !0; -}, s5e = ({ state: t, dispatch: e }) => { +}, n5e = ({ state: t, dispatch: e }) => { if (t.readOnly) return !1; let r = t.changeByRange((n) => { @@ -13434,7 +13434,7 @@ const TJ = (t, e) => Zb(t, (r) => { }); return r.changes.empty ? !1 : (e(t.update(r, { scrollIntoView: !0, userEvent: "move.character" })), !0); }; -function HS(t) { +function GS(t) { let e = [], r = -1; for (let n of t.selection.ranges) { let i = t.doc.lineAt(n.from), s = t.doc.lineAt(n.to); @@ -13447,11 +13447,11 @@ function HS(t) { } return e; } -function AJ(t, e, r) { +function CJ(t, e, r) { if (t.readOnly) return !1; let n = [], i = []; - for (let s of HS(t)) { + for (let s of GS(t)) { if (r ? s.to == t.doc.length : s.from == 0) continue; let a = t.doc.lineAt(r ? s.to + 1 : s.from - 1), o = a.length + 1; @@ -13472,36 +13472,36 @@ function AJ(t, e, r) { userEvent: "move.line" })), !0) : !1; } -const a5e = ({ state: t, dispatch: e }) => AJ(t, e, !1), o5e = ({ state: t, dispatch: e }) => AJ(t, e, !0); -function LJ(t, e, r) { +const i5e = ({ state: t, dispatch: e }) => CJ(t, e, !1), s5e = ({ state: t, dispatch: e }) => CJ(t, e, !0); +function EJ(t, e, r) { if (t.readOnly) return !1; let n = []; - for (let i of HS(t)) + for (let i of GS(t)) r ? n.push({ from: i.from, insert: t.doc.slice(i.from, i.to) + t.lineBreak }) : n.push({ from: i.to, insert: t.lineBreak + t.doc.slice(i.from, i.to) }); return e(t.update({ changes: n, scrollIntoView: !0, userEvent: "input.copyline" })), !0; } -const l5e = ({ state: t, dispatch: e }) => LJ(t, e, !1), c5e = ({ state: t, dispatch: e }) => LJ(t, e, !0), u5e = (t) => { +const a5e = ({ state: t, dispatch: e }) => EJ(t, e, !1), o5e = ({ state: t, dispatch: e }) => EJ(t, e, !0), l5e = (t) => { if (t.state.readOnly) return !1; - let { state: e } = t, r = e.changes(HS(e).map(({ from: i, to: s }) => (i > 0 ? i-- : s < e.doc.length && s++, { from: i, to: s }))), n = B1(e.selection, (i) => t.moveVertically(i, !0)).map(r); + let { state: e } = t, r = e.changes(GS(e).map(({ from: i, to: s }) => (i > 0 ? i-- : s < e.doc.length && s++, { from: i, to: s }))), n = B1(e.selection, (i) => t.moveVertically(i, !0)).map(r); return t.dispatch({ changes: r, selection: n, scrollIntoView: !0, userEvent: "delete.line" }), !0; }; -function h5e(t, e) { +function c5e(t, e) { if (/\(\)|\[\]|\{\}/.test(t.sliceDoc(e - 1, e + 1))) return { from: e, to: e }; let r = Jr(t).resolveInner(e), n = r.childBefore(e), i = r.childAfter(e), s; return n && i && n.to <= e && i.from >= e && (s = n.type.prop(or.closedBy)) && s.indexOf(i.name) > -1 && t.doc.lineAt(n.to).from == t.doc.lineAt(i.from).from && !/\S/.test(t.sliceDoc(n.to, i.from)) ? { from: n.to, to: i.from } : null; } -const f5e = /* @__PURE__ */ RJ(!1), d5e = /* @__PURE__ */ RJ(!0); -function RJ(t) { +const u5e = /* @__PURE__ */ _J(!1), h5e = /* @__PURE__ */ _J(!0); +function _J(t) { return ({ state: e, dispatch: r }) => { if (e.readOnly) return !1; let n = e.changeByRange((i) => { - let { from: s, to: a } = i, o = e.doc.lineAt(s), l = !t && s == a && h5e(e, s); + let { from: s, to: a } = i, o = e.doc.lineAt(s), l = !t && s == a && c5e(e, s); t && (s = a = (a <= o.to ? o : e.doc.lineAt(a)).to); - let u = new US(e, { simulateBreak: s, simulateDoubleBreak: !!l }), h = rM(u, s); + let u = new VS(e, { simulateBreak: s, simulateDoubleBreak: !!l }), h = JR(u, s); for (h == null && (h = Ml(/^\s*/.exec(e.doc.lineAt(s).text)[0], e.tabSize)); a < o.to && /\s/.test(o.text[a - o.from]); ) a++; l ? { from: s, to: a } = l : s > o.from && s < o.from + 100 && !/\S/.test(o.text.slice(0, s)) && (s = o.from); @@ -13514,7 +13514,7 @@ function RJ(t) { return r(e.update(n, { scrollIntoView: !0, userEvent: "input" })), !0; }; } -function hM(t, e) { +function lM(t, e) { let r = -1; return t.changeByRange((n) => { let i = []; @@ -13529,14 +13529,14 @@ function hM(t, e) { }; }); } -const p5e = ({ state: t, dispatch: e }) => { +const f5e = ({ state: t, dispatch: e }) => { if (t.readOnly) return !1; - let r = /* @__PURE__ */ Object.create(null), n = new US(t, { overrideIndentation: (s) => { + let r = /* @__PURE__ */ Object.create(null), n = new VS(t, { overrideIndentation: (s) => { let a = r[s]; return a == null ? -1 : a; - } }), i = hM(t, (s, a, o) => { - let l = rM(n, s.from); + } }), i = lM(t, (s, a, o) => { + let l = JR(n, s.from); if (l == null) return; /\S/.test(s.text) || (l = 0); @@ -13544,76 +13544,76 @@ const p5e = ({ state: t, dispatch: e }) => { (u != h || o.from < s.from + u.length) && (r[s.from] = l, a.push({ from: s.from, to: s.from + u.length, insert: h })); }); return i.changes.empty || e(t.update(i, { userEvent: "indent" })), !0; -}, MJ = ({ state: t, dispatch: e }) => t.readOnly ? !1 : (e(t.update(hM(t, (r, n) => { +}, AJ = ({ state: t, dispatch: e }) => t.readOnly ? !1 : (e(t.update(lM(t, (r, n) => { n.push({ from: r.from, insert: t.facet(Xb) }); -}), { userEvent: "input.indent" })), !0), DJ = ({ state: t, dispatch: e }) => t.readOnly ? !1 : (e(t.update(hM(t, (r, n) => { +}), { userEvent: "input.indent" })), !0), LJ = ({ state: t, dispatch: e }) => t.readOnly ? !1 : (e(t.update(lM(t, (r, n) => { let i = /^\s*/.exec(r.text)[0]; if (!i) return; - let s = Ml(i, t.tabSize), a = 0, o = Ny(t, Math.max(0, s - L5(t))); + let s = Ml(i, t.tabSize), a = 0, o = Ny(t, Math.max(0, s - A5(t))); for (; a < i.length && a < o.length && i.charCodeAt(a) == o.charCodeAt(a); ) a++; n.push({ from: r.from + a, to: r.from + i.length, insert: o.slice(a) }); -}), { userEvent: "delete.dedent" })), !0), g5e = [ - { key: "Ctrl-b", run: cJ, shift: yJ, preventDefault: !0 }, - { key: "Ctrl-f", run: uJ, shift: bJ }, - { key: "Ctrl-p", run: dJ, shift: OJ }, - { key: "Ctrl-n", run: pJ, shift: kJ }, - { key: "Ctrl-a", run: P4e, shift: H4e }, - { key: "Ctrl-e", run: $4e, shift: X4e }, - { key: "Ctrl-d", run: CJ }, - { key: "Ctrl-h", run: _7 }, - { key: "Ctrl-k", run: t5e }, - { key: "Ctrl-Alt-h", run: _J }, - { key: "Ctrl-o", run: i5e }, - { key: "Ctrl-t", run: s5e }, - { key: "Ctrl-v", run: E7 } -], m5e = /* @__PURE__ */ [ - { key: "ArrowLeft", run: cJ, shift: yJ, preventDefault: !0 }, - { key: "Mod-ArrowLeft", mac: "Alt-ArrowLeft", run: E4e, shift: z4e, preventDefault: !0 }, - { mac: "Cmd-ArrowLeft", run: N4e, shift: W4e, preventDefault: !0 }, - { key: "ArrowRight", run: uJ, shift: bJ, preventDefault: !0 }, - { key: "Mod-ArrowRight", mac: "Alt-ArrowRight", run: _4e, shift: V4e, preventDefault: !0 }, - { mac: "Cmd-ArrowRight", run: I4e, shift: G4e, preventDefault: !0 }, - { key: "ArrowUp", run: dJ, shift: OJ, preventDefault: !0 }, - { mac: "Cmd-ArrowUp", run: TF, shift: EF }, - { mac: "Ctrl-ArrowUp", run: OF, shift: kF }, - { key: "ArrowDown", run: pJ, shift: kJ, preventDefault: !0 }, - { mac: "Cmd-ArrowDown", run: CF, shift: _F }, - { mac: "Ctrl-ArrowDown", run: E7, shift: SF }, - { key: "PageUp", run: OF, shift: kF }, - { key: "PageDown", run: E7, shift: SF }, - { key: "Home", run: D4e, shift: Q4e, preventDefault: !0 }, - { key: "Mod-Home", run: TF, shift: EF }, - { key: "End", run: M4e, shift: Y4e, preventDefault: !0 }, - { key: "Mod-End", run: CF, shift: _F }, - { key: "Enter", run: f5e }, - { key: "Mod-a", run: Z4e }, - { key: "Backspace", run: _7, shift: _7 }, - { key: "Delete", run: CJ }, - { key: "Mod-Backspace", mac: "Alt-Backspace", run: _J }, - { key: "Mod-Delete", mac: "Alt-Delete", run: e5e }, - { mac: "Mod-Backspace", run: r5e }, - { mac: "Mod-Delete", run: n5e } -].concat(/* @__PURE__ */ g5e.map((t) => ({ mac: t.key, run: t.run, shift: t.shift }))), NJ = /* @__PURE__ */ [ - { key: "Alt-ArrowLeft", mac: "Ctrl-ArrowLeft", run: L4e, shift: U4e }, - { key: "Alt-ArrowRight", mac: "Ctrl-ArrowRight", run: R4e, shift: q4e }, - { key: "Alt-ArrowUp", run: a5e }, - { key: "Shift-Alt-ArrowUp", run: l5e }, - { key: "Alt-ArrowDown", run: o5e }, - { key: "Shift-Alt-ArrowDown", run: c5e }, - { key: "Escape", run: J4e }, - { key: "Mod-Enter", run: d5e }, - { key: "Alt-l", mac: "Ctrl-l", run: j4e }, - { key: "Mod-i", run: K4e, preventDefault: !0 }, - { key: "Mod-[", run: DJ }, - { key: "Mod-]", run: MJ }, - { key: "Mod-Alt-\\", run: p5e }, - { key: "Shift-Mod-k", run: u5e }, - { key: "Shift-Mod-\\", run: F4e }, - { key: "Mod-/", run: u4e }, - { key: "Alt-A", run: f4e } -].concat(m5e), v5e = { key: "Tab", run: MJ, shift: DJ }; +}), { userEvent: "delete.dedent" })), !0), d5e = [ + { key: "Ctrl-b", run: aJ, shift: gJ, preventDefault: !0 }, + { key: "Ctrl-f", run: oJ, shift: mJ }, + { key: "Ctrl-p", run: uJ, shift: bJ }, + { key: "Ctrl-n", run: hJ, shift: xJ }, + { key: "Ctrl-a", run: N4e, shift: W4e }, + { key: "Ctrl-e", run: I4e, shift: G4e }, + { key: "Ctrl-d", run: kJ }, + { key: "Ctrl-h", run: C7 }, + { key: "Ctrl-k", run: J4e }, + { key: "Ctrl-Alt-h", run: TJ }, + { key: "Ctrl-o", run: r5e }, + { key: "Ctrl-t", run: n5e }, + { key: "Ctrl-v", run: T7 } +], p5e = /* @__PURE__ */ [ + { key: "ArrowLeft", run: aJ, shift: gJ, preventDefault: !0 }, + { key: "Mod-ArrowLeft", mac: "Alt-ArrowLeft", run: T4e, shift: B4e, preventDefault: !0 }, + { mac: "Cmd-ArrowLeft", run: M4e, shift: Y4e, preventDefault: !0 }, + { key: "ArrowRight", run: oJ, shift: mJ, preventDefault: !0 }, + { key: "Mod-ArrowRight", mac: "Alt-ArrowRight", run: C4e, shift: F4e, preventDefault: !0 }, + { mac: "Cmd-ArrowRight", run: D4e, shift: Q4e, preventDefault: !0 }, + { key: "ArrowUp", run: uJ, shift: bJ, preventDefault: !0 }, + { mac: "Cmd-ArrowUp", run: OF, shift: SF }, + { mac: "Ctrl-ArrowUp", run: bF, shift: xF }, + { key: "ArrowDown", run: hJ, shift: xJ, preventDefault: !0 }, + { mac: "Cmd-ArrowDown", run: kF, shift: TF }, + { mac: "Ctrl-ArrowDown", run: T7, shift: wF }, + { key: "PageUp", run: bF, shift: xF }, + { key: "PageDown", run: T7, shift: wF }, + { key: "Home", run: R4e, shift: q4e, preventDefault: !0 }, + { key: "Mod-Home", run: OF, shift: SF }, + { key: "End", run: L4e, shift: U4e, preventDefault: !0 }, + { key: "Mod-End", run: kF, shift: TF }, + { key: "Enter", run: u5e }, + { key: "Mod-a", run: H4e }, + { key: "Backspace", run: C7, shift: C7 }, + { key: "Delete", run: kJ }, + { key: "Mod-Backspace", mac: "Alt-Backspace", run: TJ }, + { key: "Mod-Delete", mac: "Alt-Delete", run: K4e }, + { mac: "Mod-Backspace", run: e5e }, + { mac: "Mod-Delete", run: t5e } +].concat(/* @__PURE__ */ d5e.map((t) => ({ mac: t.key, run: t.run, shift: t.shift }))), RJ = /* @__PURE__ */ [ + { key: "Alt-ArrowLeft", mac: "Ctrl-ArrowLeft", run: _4e, shift: z4e }, + { key: "Alt-ArrowRight", mac: "Ctrl-ArrowRight", run: A4e, shift: V4e }, + { key: "Alt-ArrowUp", run: i5e }, + { key: "Shift-Alt-ArrowUp", run: a5e }, + { key: "Alt-ArrowDown", run: s5e }, + { key: "Shift-Alt-ArrowDown", run: o5e }, + { key: "Escape", run: j4e }, + { key: "Mod-Enter", run: h5e }, + { key: "Alt-l", mac: "Ctrl-l", run: X4e }, + { key: "Mod-i", run: Z4e, preventDefault: !0 }, + { key: "Mod-[", run: LJ }, + { key: "Mod-]", run: AJ }, + { key: "Mod-Alt-\\", run: f5e }, + { key: "Shift-Mod-k", run: l5e }, + { key: "Shift-Mod-\\", run: $4e }, + { key: "Mod-/", run: l4e }, + { key: "Alt-A", run: u4e } +].concat(p5e), g5e = { key: "Tab", run: AJ, shift: LJ }; function un() { var t = arguments[0]; typeof t == "string" && (t = document.createElement(t)); @@ -13627,10 +13627,10 @@ function un() { e++; } for (; e < arguments.length; e++) - IJ(t, arguments[e]); + MJ(t, arguments[e]); return t; } -function IJ(t, e) { +function MJ(t, e) { if (typeof e == "string") t.appendChild(document.createTextNode(e)); else if (e != null) @@ -13638,14 +13638,14 @@ function IJ(t, e) { t.appendChild(e); else if (Array.isArray(e)) for (var r = 0; r < e.length; r++) - IJ(t, e[r]); + MJ(t, e[r]); else throw new RangeError("Unsupported child node: " + e); } -const AF = typeof String.prototype.normalize == "function" ? (t) => t.normalize("NFKD") : (t) => t; +const CF = typeof String.prototype.normalize == "function" ? (t) => t.normalize("NFKD") : (t) => t; class Mg { constructor(e, r, n = 0, i = e.length, s, a) { - this.test = a, this.value = { from: 0, to: 0 }, this.done = !1, this.matches = [], this.buffer = "", this.bufferPos = 0, this.iter = e.iterRange(n, i), this.bufferStart = n, this.normalize = s ? (o) => s(AF(o)) : AF, this.query = this.normalize(r); + this.test = a, this.value = { from: 0, to: 0 }, this.done = !1, this.matches = [], this.buffer = "", this.bufferPos = 0, this.iter = e.iterRange(n, i), this.bufferStart = n, this.normalize = s ? (o) => s(CF(o)) : CF, this.query = this.normalize(r); } peek() { if (this.bufferPos == this.buffer.length) { @@ -13665,7 +13665,7 @@ class Mg { let e = this.peek(); if (e < 0) return this.done = !0, this; - let r = FR(e), n = this.bufferStart + this.bufferPos; + let r = PR(e), n = this.bufferStart + this.bufferPos; this.bufferPos += _o(e); let i = this.normalize(r); for (let s = 0, a = n; ; s++) { @@ -13691,14 +13691,14 @@ class Mg { typeof Symbol < "u" && (Mg.prototype[Symbol.iterator] = function() { return this; }); -const PJ = { from: -1, to: -1, match: /* @__PURE__ */ /.*/.exec("") }, fM = "gm" + (/x/.unicode == null ? "" : "u"); -class $J { +const DJ = { from: -1, to: -1, match: /* @__PURE__ */ /.*/.exec("") }, cM = "gm" + (/x/.unicode == null ? "" : "u"); +class NJ { constructor(e, r, n, i = 0, s = e.length) { - if (this.text = e, this.to = s, this.curLine = "", this.done = !1, this.value = PJ, /\\[sWDnr]|\n|\r|\[\^/.test(r)) - return new BJ(e, r, n, i, s); - this.re = new RegExp(r, fM + (n != null && n.ignoreCase ? "i" : "")), this.test = n == null ? void 0 : n.test, this.iter = e.iter(); + if (this.text = e, this.to = s, this.curLine = "", this.done = !1, this.value = DJ, /\\[sWDnr]|\n|\r|\[\^/.test(r)) + return new IJ(e, r, n, i, s); + this.re = new RegExp(r, cM + (n != null && n.ignoreCase ? "i" : "")), this.test = n == null ? void 0 : n.test, this.iter = e.iter(); let a = e.lineAt(i); - this.curLineStart = a.from, this.matchPos = N5(e, i), this.getLine(this.curLineStart); + this.curLineStart = a.from, this.matchPos = D5(e, i), this.getLine(this.curLineStart); } getLine(e) { this.iter.next(e), this.iter.lineBreak ? this.curLine = "" : (this.curLine = this.iter.value, this.curLineStart + this.curLine.length > this.to && (this.curLine = this.curLine.slice(0, this.to - this.curLineStart)), this.iter.next()); @@ -13712,7 +13712,7 @@ class $J { let r = this.matchPos <= this.to && this.re.exec(this.curLine); if (r) { let n = this.curLineStart + r.index, i = n + r[0].length; - if (this.matchPos = N5(this.text, i + (n == i ? 1 : 0)), n == this.curLineStart + this.curLine.length && this.nextLine(), (n < i || n > this.value.to) && (!this.test || this.test(n, i, r))) + if (this.matchPos = D5(this.text, i + (n == i ? 1 : 0)), n == this.curLineStart + this.curLine.length && this.nextLine(), (n < i || n > this.value.to) && (!this.test || this.test(n, i, r))) return this.value = { from: n, to: i, match: r }, this; e = this.matchPos - this.curLineStart; } else if (this.curLineStart + this.curLine.length < this.to) @@ -13722,7 +13722,7 @@ class $J { } } } -const PE = /* @__PURE__ */ new WeakMap(); +const NE = /* @__PURE__ */ new WeakMap(); class Zp { constructor(e, r) { this.from = e, this.text = r; @@ -13731,20 +13731,20 @@ class Zp { return this.from + this.text.length; } static get(e, r, n) { - let i = PE.get(e); + let i = NE.get(e); if (!i || i.from >= n || i.to <= r) { let o = new Zp(r, e.sliceString(r, n)); - return PE.set(e, o), o; + return NE.set(e, o), o; } if (i.from == r && i.to == n) return i; let { text: s, from: a } = i; - return a > r && (s = e.sliceString(r, a) + s, a = r), i.to < n && (s += e.sliceString(i.to, n)), PE.set(e, new Zp(a, s)), new Zp(r, s.slice(r - a, n - a)); + return a > r && (s = e.sliceString(r, a) + s, a = r), i.to < n && (s += e.sliceString(i.to, n)), NE.set(e, new Zp(a, s)), new Zp(r, s.slice(r - a, n - a)); } } -class BJ { +class IJ { constructor(e, r, n, i, s) { - this.text = e, this.to = s, this.done = !1, this.value = PJ, this.matchPos = N5(e, i), this.re = new RegExp(r, fM + (n != null && n.ignoreCase ? "i" : "")), this.test = n == null ? void 0 : n.test, this.flat = Zp.get(e, i, this.chunkEnd(i + 5e3)); + this.text = e, this.to = s, this.done = !1, this.value = DJ, this.matchPos = D5(e, i), this.re = new RegExp(r, cM + (n != null && n.ignoreCase ? "i" : "")), this.test = n == null ? void 0 : n.test, this.flat = Zp.get(e, i, this.chunkEnd(i + 5e3)); } chunkEnd(e) { return e >= this.to ? this.to : this.text.lineAt(e).to; @@ -13755,7 +13755,7 @@ class BJ { if (r && !r[0] && r.index == e && (this.re.lastIndex = e + 1, r = this.re.exec(this.flat.text)), r) { let n = this.flat.from + r.index, i = n + r[0].length; if ((this.flat.to >= this.to || r.index + r[0].length <= this.flat.text.length - 10) && (!this.test || this.test(n, i, r))) - return this.value = { from: n, to: i, match: r }, this.matchPos = N5(this.text, i + (n == i ? 1 : 0)), this; + return this.value = { from: n, to: i, match: r }, this.matchPos = D5(this.text, i + (n == i ? 1 : 0)), this; } if (this.flat.to == this.to) return this.done = !0, this; @@ -13763,17 +13763,17 @@ class BJ { } } } -typeof Symbol < "u" && ($J.prototype[Symbol.iterator] = BJ.prototype[Symbol.iterator] = function() { +typeof Symbol < "u" && (NJ.prototype[Symbol.iterator] = IJ.prototype[Symbol.iterator] = function() { return this; }); -function y5e(t) { +function m5e(t) { try { - return new RegExp(t, fM), !0; + return new RegExp(t, cM), !0; } catch { return !1; } } -function N5(t, e) { +function D5(t, e) { if (e >= t.length) return e; let r = t.lineAt(e), n; @@ -13781,11 +13781,11 @@ function N5(t, e) { e++; return e; } -function A7(t) { +function E7(t) { let e = String(t.state.doc.lineAt(t.state.selection.main.head).number), r = un("input", { class: "cm-textfield", name: "line", value: e }), n = un("form", { class: "cm-gotoLine", onkeydown: (s) => { - s.keyCode == 27 ? (s.preventDefault(), t.dispatch({ effects: I5.of(!1) }), t.focus()) : s.keyCode == 13 && (s.preventDefault(), i()); + s.keyCode == 27 ? (s.preventDefault(), t.dispatch({ effects: N5.of(!1) }), t.focus()) : s.keyCode == 13 && (s.preventDefault(), i()); }, onsubmit: (s) => { s.preventDefault(), i(); @@ -13803,60 +13803,60 @@ function A7(t) { u && l && (p = p * (l == "-" ? -1 : 1) + o.number); let g = a.doc.line(Math.max(1, Math.min(a.doc.lines, p))), m = Ve.cursor(g.from + Math.max(0, Math.min(d, g.length))); t.dispatch({ - effects: [I5.of(!1), ht.scrollIntoView(m.from, { y: "center" })], + effects: [N5.of(!1), ht.scrollIntoView(m.from, { y: "center" })], selection: m }), t.focus(); } return { dom: n }; } -const I5 = /* @__PURE__ */ Zt.define(), LF = /* @__PURE__ */ $n.define({ +const N5 = /* @__PURE__ */ Zt.define(), EF = /* @__PURE__ */ $n.define({ create() { return !0; }, update(t, e) { for (let r of e.effects) - r.is(I5) && (t = r.value); + r.is(N5) && (t = r.value); return t; }, - provide: (t) => Ay.from(t, (e) => e ? A7 : null) -}), b5e = (t) => { - let e = _y(t, A7); + provide: (t) => Ay.from(t, (e) => e ? E7 : null) +}), v5e = (t) => { + let e = _y(t, E7); if (!e) { - let r = [I5.of(!0)]; - t.state.field(LF, !1) == null && r.push(Zt.appendConfig.of([LF, x5e])), t.dispatch({ effects: r }), e = _y(t, A7); + let r = [N5.of(!0)]; + t.state.field(EF, !1) == null && r.push(Zt.appendConfig.of([EF, y5e])), t.dispatch({ effects: r }), e = _y(t, E7); } return e && e.dom.querySelector("input").select(), !0; -}, x5e = /* @__PURE__ */ ht.baseTheme({ +}, y5e = /* @__PURE__ */ ht.baseTheme({ ".cm-panel.cm-gotoLine": { padding: "2px 6px 4px", "& label": { fontSize: "80%" } } -}), w5e = { +}), b5e = { highlightWordAroundCursor: !1, minSelectionLength: 1, maxMatches: 100, wholeWords: !1 -}, FJ = /* @__PURE__ */ _t.define({ +}, PJ = /* @__PURE__ */ _t.define({ combine(t) { - return Yc(t, w5e, { + return Yc(t, b5e, { highlightWordAroundCursor: (e, r) => e || r, minSelectionLength: Math.min, maxMatches: Math.min }); } }); -function O5e(t) { - let e = [E5e, C5e]; - return t && e.push(FJ.of(t)), e; +function x5e(t) { + let e = [T5e, S5e]; + return t && e.push(PJ.of(t)), e; } -const k5e = /* @__PURE__ */ Et.mark({ class: "cm-selectionMatch" }), S5e = /* @__PURE__ */ Et.mark({ class: "cm-selectionMatch cm-selectionMatch-main" }); -function RF(t, e, r, n) { +const w5e = /* @__PURE__ */ Et.mark({ class: "cm-selectionMatch" }), O5e = /* @__PURE__ */ Et.mark({ class: "cm-selectionMatch cm-selectionMatch-main" }); +function _F(t, e, r, n) { return (r == 0 || t(e.sliceDoc(r - 1, r)) != Sn.Word) && (n == e.doc.length || t(e.sliceDoc(n, n + 1)) != Sn.Word); } -function T5e(t, e, r, n) { +function k5e(t, e, r, n) { return t(e.sliceDoc(r, r + 1)) == Sn.Word && t(e.sliceDoc(n - 1, n)) == Sn.Word; } -const C5e = /* @__PURE__ */ on.fromClass(class { +const S5e = /* @__PURE__ */ on.fromClass(class { constructor(t) { this.decorations = this.getDeco(t); } @@ -13864,7 +13864,7 @@ const C5e = /* @__PURE__ */ on.fromClass(class { (t.selectionSet || t.docChanged || t.viewportChanged) && (this.decorations = this.getDeco(t.view)); } getDeco(t) { - let e = t.state.facet(FJ), { state: r } = t, n = r.selection; + let e = t.state.facet(PJ), { state: r } = t, n = r.selection; if (n.ranges.length > 1) return Et.none; let i = n.main, s, a = null; @@ -13880,7 +13880,7 @@ const C5e = /* @__PURE__ */ on.fromClass(class { if (l < e.minSelectionLength || l > 200) return Et.none; if (e.wholeWords) { - if (s = r.sliceDoc(i.from, i.to), a = r.charCategorizer(i.head), !(RF(a, r, i.from, i.to) && T5e(a, r, i.from, i.to))) + if (s = r.sliceDoc(i.from, i.to), a = r.charCategorizer(i.head), !(_F(a, r, i.from, i.to) && k5e(a, r, i.from, i.to))) return Et.none; } else if (s = r.sliceDoc(i.from, i.to).trim(), !s) return Et.none; @@ -13890,7 +13890,7 @@ const C5e = /* @__PURE__ */ on.fromClass(class { let u = new Mg(r.doc, s, l.from, l.to); for (; !u.next().done; ) { let { from: h, to: f } = u.value; - if ((!a || RF(a, r, h, f)) && (i.empty && h <= i.from && f >= i.to ? o.push(S5e.range(h, f)) : (h >= i.to || f <= i.from) && o.push(k5e.range(h, f)), o.length > e.maxMatches)) + if ((!a || _F(a, r, h, f)) && (i.empty && h <= i.from && f >= i.to ? o.push(O5e.range(h, f)) : (h >= i.to || f <= i.from) && o.push(w5e.range(h, f)), o.length > e.maxMatches)) return Et.none; } } @@ -13898,14 +13898,14 @@ const C5e = /* @__PURE__ */ on.fromClass(class { } }, { decorations: (t) => t.decorations -}), E5e = /* @__PURE__ */ ht.baseTheme({ +}), T5e = /* @__PURE__ */ ht.baseTheme({ ".cm-selectionMatch": { backgroundColor: "#99ff7780" }, ".cm-searchMatch .cm-selectionMatch": { backgroundColor: "transparent" } -}), _5e = ({ state: t, dispatch: e }) => { +}), C5e = ({ state: t, dispatch: e }) => { let { selection: r } = t, n = Ve.create(r.ranges.map((i) => t.wordAt(i.head) || Ve.cursor(i.head)), r.mainIndex); return n.eq(r) ? !1 : (e(t.update({ selection: n })), !0); }; -function A5e(t, e) { +function E5e(t, e) { let { main: r, ranges: n } = t.selection, i = t.wordAt(r.head), s = i && i.from == r.from && i.to == r.to; for (let a = !1, o = new Mg(t.doc, e, n[n.length - 1].to); ; ) if (o.next(), o.done) { @@ -13923,14 +13923,14 @@ function A5e(t, e) { return o.value; } } -const L5e = ({ state: t, dispatch: e }) => { +const _5e = ({ state: t, dispatch: e }) => { let { ranges: r } = t.selection; if (r.some((s) => s.from === s.to)) - return _5e({ state: t, dispatch: e }); + return C5e({ state: t, dispatch: e }); let n = t.sliceDoc(r[0].from, r[0].to); if (t.selection.ranges.some((s) => t.sliceDoc(s.from, s.to) != n)) return !1; - let i = A5e(t, n); + let i = E5e(t, n); return i ? (e(t.update({ selection: t.selection.addRange(Ve.range(i.from, i.to), !1), effects: ht.scrollIntoView(i.to) @@ -13943,14 +13943,14 @@ const L5e = ({ state: t, dispatch: e }) => { literal: !1, regexp: !1, wholeWord: !1, - createPanel: (e) => new U5e(e), + createPanel: (e) => new z5e(e), scrollToMatch: (e) => ht.scrollIntoView(e) }); } }); -class zJ { +class $J { constructor(e) { - this.search = e.search, this.caseSensitive = !!e.caseSensitive, this.literal = !!e.literal, this.regexp = !!e.regexp, this.replace = e.replace || "", this.valid = !!this.search && (!this.regexp || y5e(this.search)), this.unquoted = this.unquote(this.search), this.wholeWord = !!e.wholeWord; + this.search = e.search, this.caseSensitive = !!e.caseSensitive, this.literal = !!e.literal, this.regexp = !!e.regexp, this.replace = e.replace || "", this.valid = !!this.search && (!this.regexp || m5e(this.search)), this.unquoted = this.unquote(this.search), this.wholeWord = !!e.wholeWord; } unquote(e) { return this.literal ? e : e.replace(/\\([nrt\\])/g, (r, n) => n == "n" ? ` @@ -13960,25 +13960,25 @@ class zJ { return this.search == e.search && this.replace == e.replace && this.caseSensitive == e.caseSensitive && this.regexp == e.regexp && this.wholeWord == e.wholeWord; } create() { - return this.regexp ? new N5e(this) : new M5e(this); + return this.regexp ? new M5e(this) : new L5e(this); } getCursor(e, r = 0, n) { let i = e.doc ? e : dr.create({ doc: e }); return n == null && (n = i.doc.length), this.regexp ? Sp(this, i, r, n) : kp(this, i, r, n); } } -class VJ { +class BJ { constructor(e) { this.spec = e; } } function kp(t, e, r, n) { - return new Mg(e.doc, t.unquoted, r, n, t.caseSensitive ? void 0 : (i) => i.toLowerCase(), t.wholeWord ? R5e(e.doc, e.charCategorizer(e.selection.main.head)) : void 0); + return new Mg(e.doc, t.unquoted, r, n, t.caseSensitive ? void 0 : (i) => i.toLowerCase(), t.wholeWord ? A5e(e.doc, e.charCategorizer(e.selection.main.head)) : void 0); } -function R5e(t, e) { - return (r, n, i, s) => ((s > r || s + i.length < n) && (s = Math.max(0, r - 2), i = t.sliceString(s, Math.min(t.length, n + 2))), (e(P5(i, r - s)) != Sn.Word || e($5(i, r - s)) != Sn.Word) && (e($5(i, n - s)) != Sn.Word || e(P5(i, n - s)) != Sn.Word)); +function A5e(t, e) { + return (r, n, i, s) => ((s > r || s + i.length < n) && (s = Math.max(0, r - 2), i = t.sliceString(s, Math.min(t.length, n + 2))), (e(I5(i, r - s)) != Sn.Word || e(P5(i, r - s)) != Sn.Word) && (e(P5(i, n - s)) != Sn.Word || e(I5(i, n - s)) != Sn.Word)); } -class M5e extends VJ { +class L5e extends BJ { constructor(e) { super(e); } @@ -14020,21 +14020,21 @@ class M5e extends VJ { } } function Sp(t, e, r, n) { - return new $J(e.doc, t.search, { + return new NJ(e.doc, t.search, { ignoreCase: !t.caseSensitive, - test: t.wholeWord ? D5e(e.charCategorizer(e.selection.main.head)) : void 0 + test: t.wholeWord ? R5e(e.charCategorizer(e.selection.main.head)) : void 0 }, r, n); } -function P5(t, e) { +function I5(t, e) { return t.slice(ls(t, e, !1), e); } -function $5(t, e) { +function P5(t, e) { return t.slice(e, ls(t, e)); } -function D5e(t) { - return (e, r, n) => !n[0].length || (t(P5(n.input, n.index)) != Sn.Word || t($5(n.input, n.index)) != Sn.Word) && (t($5(n.input, n.index + n[0].length)) != Sn.Word || t(P5(n.input, n.index + n[0].length)) != Sn.Word); +function R5e(t) { + return (e, r, n) => !n[0].length || (t(I5(n.input, n.index)) != Sn.Word || t(P5(n.input, n.index)) != Sn.Word) && (t(P5(n.input, n.index + n[0].length)) != Sn.Word || t(I5(n.input, n.index + n[0].length)) != Sn.Word); } -class N5e extends VJ { +class M5e extends BJ { nextMatch(e, r, n) { let i = Sp(this.spec, e, n, e.doc.length).next(); return i.done && (i = Sp(this.spec, e, 0, r).next()), i.done ? null : i.value; @@ -14071,23 +14071,23 @@ class N5e extends VJ { i(s.value.from, s.value.to); } } -const Py = /* @__PURE__ */ Zt.define(), dM = /* @__PURE__ */ Zt.define(), Hh = /* @__PURE__ */ $n.define({ +const Py = /* @__PURE__ */ Zt.define(), uM = /* @__PURE__ */ Zt.define(), Hh = /* @__PURE__ */ $n.define({ create(t) { - return new $E(L7(t).create(), null); + return new IE(_7(t).create(), null); }, update(t, e) { for (let r of e.effects) - r.is(Py) ? t = new $E(r.value.create(), t.panel) : r.is(dM) && (t = new $E(t.query, r.value ? pM : null)); + r.is(Py) ? t = new IE(r.value.create(), t.panel) : r.is(uM) && (t = new IE(t.query, r.value ? hM : null)); return t; }, provide: (t) => Ay.from(t, (e) => e.panel) }); -class $E { +class IE { constructor(e, r) { this.query = e, this.panel = r; } } -const I5e = /* @__PURE__ */ Et.mark({ class: "cm-searchMatch" }), P5e = /* @__PURE__ */ Et.mark({ class: "cm-searchMatch cm-searchMatch-selected" }), $5e = /* @__PURE__ */ on.fromClass(class { +const D5e = /* @__PURE__ */ Et.mark({ class: "cm-searchMatch" }), N5e = /* @__PURE__ */ Et.mark({ class: "cm-searchMatch cm-searchMatch-selected" }), I5e = /* @__PURE__ */ on.fromClass(class { constructor(t) { this.view = t, this.decorations = this.highlight(t.state.field(Hh)); } @@ -14105,7 +14105,7 @@ const I5e = /* @__PURE__ */ Et.mark({ class: "cm-searchMatch" }), P5e = /* @__PU l = s[++i].to; t.highlight(r.state, o, l, (u, h) => { let f = r.state.selection.ranges.some((d) => d.from == u && d.to == h); - n.add(u, h, f ? P5e : I5e); + n.add(u, h, f ? N5e : D5e); }); } return n.finish(); @@ -14116,36 +14116,36 @@ const I5e = /* @__PURE__ */ Et.mark({ class: "cm-searchMatch" }), P5e = /* @__PU function jb(t) { return (e) => { let r = e.state.field(Hh, !1); - return r && r.query.spec.valid ? t(e, r) : YJ(e); + return r && r.query.spec.valid ? t(e, r) : VJ(e); }; } -const B5 = /* @__PURE__ */ jb((t, { query: e }) => { +const $5 = /* @__PURE__ */ jb((t, { query: e }) => { let { to: r } = t.state.selection.main, n = e.nextMatch(t.state, r, r); if (!n) return !1; let i = Ve.single(n.from, n.to), s = t.state.facet(F1); return t.dispatch({ selection: i, - effects: [gM(t, n), s.scrollToMatch(i.main, t)], + effects: [fM(t, n), s.scrollToMatch(i.main, t)], userEvent: "select.search" - }), qJ(t), !0; -}), F5 = /* @__PURE__ */ jb((t, { query: e }) => { + }), zJ(t), !0; +}), B5 = /* @__PURE__ */ jb((t, { query: e }) => { let { state: r } = t, { from: n } = r.selection.main, i = e.prevMatch(r, n, n); if (!i) return !1; let s = Ve.single(i.from, i.to), a = t.state.facet(F1); return t.dispatch({ selection: s, - effects: [gM(t, i), a.scrollToMatch(s.main, t)], + effects: [fM(t, i), a.scrollToMatch(s.main, t)], userEvent: "select.search" - }), qJ(t), !0; -}), B5e = /* @__PURE__ */ jb((t, { query: e }) => { + }), zJ(t), !0; +}), P5e = /* @__PURE__ */ jb((t, { query: e }) => { let r = e.matchAll(t.state, 1e3); return !r || !r.length ? !1 : (t.dispatch({ selection: Ve.create(r.map((n) => Ve.range(n.from, n.to))), userEvent: "select.search.matches" }), !0); -}), F5e = ({ state: t, dispatch: e }) => { +}), $5e = ({ state: t, dispatch: e }) => { let r = t.selection; if (r.ranges.length > 1 || r.main.empty) return !1; @@ -14159,7 +14159,7 @@ const B5 = /* @__PURE__ */ jb((t, { query: e }) => { selection: Ve.create(s, a), userEvent: "select.search.matches" })), !0; -}, MF = /* @__PURE__ */ jb((t, { query: e }) => { +}, AF = /* @__PURE__ */ jb((t, { query: e }) => { let { state: r } = t, { from: n, to: i } = r.selection.main; if (r.readOnly) return !1; @@ -14169,7 +14169,7 @@ const B5 = /* @__PURE__ */ jb((t, { query: e }) => { let a = [], o, l, u = []; if (s.from == n && s.to == i && (l = r.toText(e.getReplacement(s)), a.push({ from: s.from, to: s.to, insert: l }), s = e.nextMatch(r, s.from, s.to), u.push(ht.announce.of(r.phrase("replaced match on line $", r.doc.lineAt(n).number) + "."))), s) { let h = a.length == 0 || a[0].from >= s.to ? 0 : s.to - s.from - l.length; - o = Ve.single(s.from - h, s.to - h), u.push(gM(t, s)), u.push(r.facet(F1).scrollToMatch(o.main, t)); + o = Ve.single(s.from - h, s.to - h), u.push(fM(t, s)), u.push(r.facet(F1).scrollToMatch(o.main, t)); } return t.dispatch({ changes: a, @@ -14177,7 +14177,7 @@ const B5 = /* @__PURE__ */ jb((t, { query: e }) => { effects: u, userEvent: "input.replace" }), !0; -}), z5e = /* @__PURE__ */ jb((t, { query: e }) => { +}), B5e = /* @__PURE__ */ jb((t, { query: e }) => { if (t.state.readOnly) return !1; let r = e.matchAll(t.state, 1e9).map((i) => { @@ -14193,16 +14193,16 @@ const B5 = /* @__PURE__ */ jb((t, { query: e }) => { userEvent: "input.replace.all" }), !0; }); -function pM(t) { +function hM(t) { return t.state.facet(F1).createPanel(t); } -function L7(t, e) { +function _7(t, e) { var r, n, i, s, a; let o = t.selection.main, l = o.empty || o.to > o.from + 100 ? "" : t.sliceDoc(o.from, o.to); if (e && !l) return e; let u = t.facet(F1); - return new zJ({ + return new $J({ search: ((r = e == null ? void 0 : e.literal) !== null && r !== void 0 ? r : u.literal) ? l : l.replace(/\n/g, "\\n"), caseSensitive: (n = e == null ? void 0 : e.caseSensitive) !== null && n !== void 0 ? n : u.caseSensitive, literal: (i = e == null ? void 0 : e.literal) !== null && i !== void 0 ? i : u.literal, @@ -14210,44 +14210,44 @@ function L7(t, e) { wholeWord: (a = e == null ? void 0 : e.wholeWord) !== null && a !== void 0 ? a : u.wholeWord }); } -function UJ(t) { - let e = _y(t, pM); +function FJ(t) { + let e = _y(t, hM); return e && e.dom.querySelector("[main-field]"); } -function qJ(t) { - let e = UJ(t); +function zJ(t) { + let e = FJ(t); e && e == t.root.activeElement && e.select(); } -const YJ = (t) => { +const VJ = (t) => { let e = t.state.field(Hh, !1); if (e && e.panel) { - let r = UJ(t); + let r = FJ(t); if (r && r != t.root.activeElement) { - let n = L7(t.state, e.query.spec); + let n = _7(t.state, e.query.spec); n.valid && t.dispatch({ effects: Py.of(n) }), r.focus(), r.select(); } } else t.dispatch({ effects: [ - dM.of(!0), - e ? Py.of(L7(t.state, e.query.spec)) : Zt.appendConfig.of(Y5e) + uM.of(!0), + e ? Py.of(_7(t.state, e.query.spec)) : Zt.appendConfig.of(U5e) ] }); return !0; -}, QJ = (t) => { +}, UJ = (t) => { let e = t.state.field(Hh, !1); if (!e || !e.panel) return !1; - let r = _y(t, pM); - return r && r.dom.contains(t.root.activeElement) && t.focus(), t.dispatch({ effects: dM.of(!1) }), !0; -}, V5e = [ - { key: "Mod-f", run: YJ, scope: "editor search-panel" }, - { key: "F3", run: B5, shift: F5, scope: "editor search-panel", preventDefault: !0 }, - { key: "Mod-g", run: B5, shift: F5, scope: "editor search-panel", preventDefault: !0 }, - { key: "Escape", run: QJ, scope: "editor search-panel" }, - { key: "Mod-Shift-l", run: F5e }, - { key: "Mod-Alt-g", run: b5e }, - { key: "Mod-d", run: L5e, preventDefault: !0 } + let r = _y(t, hM); + return r && r.dom.contains(t.root.activeElement) && t.focus(), t.dispatch({ effects: uM.of(!1) }), !0; +}, F5e = [ + { key: "Mod-f", run: VJ, scope: "editor search-panel" }, + { key: "F3", run: $5, shift: B5, scope: "editor search-panel", preventDefault: !0 }, + { key: "Mod-g", run: $5, shift: B5, scope: "editor search-panel", preventDefault: !0 }, + { key: "Escape", run: UJ, scope: "editor search-panel" }, + { key: "Mod-Shift-l", run: $5e }, + { key: "Mod-Alt-g", run: v5e }, + { key: "Mod-d", run: _5e, preventDefault: !0 } ]; -class U5e { +class z5e { constructor(e) { this.view = e; let r = this.query = e.state.field(Hh).query.spec; @@ -14294,28 +14294,28 @@ class U5e { } this.dom = un("div", { onkeydown: (i) => this.keydown(i), class: "cm-search" }, [ this.searchField, - n("next", () => B5(e), [Wa(e, "next")]), - n("prev", () => F5(e), [Wa(e, "previous")]), - n("select", () => B5e(e), [Wa(e, "all")]), + n("next", () => $5(e), [Wa(e, "next")]), + n("prev", () => B5(e), [Wa(e, "previous")]), + n("select", () => P5e(e), [Wa(e, "all")]), un("label", null, [this.caseField, Wa(e, "match case")]), un("label", null, [this.reField, Wa(e, "regexp")]), un("label", null, [this.wordField, Wa(e, "by word")]), ...e.state.readOnly ? [] : [ un("br"), this.replaceField, - n("replace", () => MF(e), [Wa(e, "replace")]), - n("replaceAll", () => z5e(e), [Wa(e, "replace all")]) + n("replace", () => AF(e), [Wa(e, "replace")]), + n("replaceAll", () => B5e(e), [Wa(e, "replace all")]) ], un("button", { name: "close", - onclick: () => QJ(e), + onclick: () => UJ(e), "aria-label": Wa(e, "close"), type: "button" }, ["\xD7"]) ]); } commit() { - let e = new zJ({ + let e = new $J({ search: this.searchField.value, caseSensitive: this.caseField.checked, regexp: this.reField.checked, @@ -14325,7 +14325,7 @@ class U5e { e.eq(this.query) || (this.query = e, this.view.dispatch({ effects: Py.of(e) })); } keydown(e) { - awe(this.view, e, "search-panel") ? e.preventDefault() : e.keyCode == 13 && e.target == this.searchField ? (e.preventDefault(), (e.shiftKey ? F5 : B5)(this.view)) : e.keyCode == 13 && e.target == this.replaceField && (e.preventDefault(), MF(this.view)); + iwe(this.view, e, "search-panel") ? e.preventDefault() : e.keyCode == 13 && e.target == this.searchField ? (e.preventDefault(), (e.shiftKey ? B5 : $5)(this.view)) : e.keyCode == 13 && e.target == this.replaceField && (e.preventDefault(), AF(this.view)); } update(e) { for (let r of e.transactions) @@ -14349,7 +14349,7 @@ function Wa(t, e) { return t.state.phrase(e); } const _w = 30, Aw = /[\s\.,:;?!]/; -function gM(t, { from: e, to: r }) { +function fM(t, { from: e, to: r }) { let n = t.state.doc.lineAt(e), i = t.state.doc.lineAt(r).to, s = Math.max(n.from, e - _w), a = Math.min(i, r + _w), o = t.state.sliceDoc(s, a); if (s != n.from) { for (let l = 0; l < _w; l++) @@ -14367,7 +14367,7 @@ function gM(t, { from: e, to: r }) { } return ht.announce.of(`${t.state.phrase("current match")}. ${o} ${t.state.phrase("on line")} ${n.number}.`); } -const q5e = /* @__PURE__ */ ht.baseTheme({ +const V5e = /* @__PURE__ */ ht.baseTheme({ ".cm-panel.cm-search": { padding: "2px 6px 4px", position: "relative", @@ -14396,12 +14396,12 @@ const q5e = /* @__PURE__ */ ht.baseTheme({ "&dark .cm-searchMatch": { backgroundColor: "#00ffff8a" }, "&light .cm-searchMatch-selected": { backgroundColor: "#ff6a0054" }, "&dark .cm-searchMatch-selected": { backgroundColor: "#ff00ff8a" } -}), Y5e = [ +}), U5e = [ Hh, - /* @__PURE__ */ zl.low($5e), - q5e + /* @__PURE__ */ zl.low(I5e), + V5e ]; -class mM { +class dM { constructor(e, r, n) { this.state = e, this.pos = r, this.explicit = n, this.abortListeners = []; } @@ -14417,7 +14417,7 @@ class mM { } : null; } matchBefore(e) { - let r = this.state.doc.lineAt(this.pos), n = Math.max(r.from, this.pos - 250), i = r.text.slice(n - r.from, this.pos - r.from), s = i.search(GJ(e, !1)); + let r = this.state.doc.lineAt(this.pos), n = Math.max(r.from, this.pos - 250), i = r.text.slice(n - r.from, this.pos - r.from), s = i.search(YJ(e, !1)); return s < 0 ? null : { from: n + s, to: this.pos, text: i.slice(s) }; } get aborted() { @@ -14427,28 +14427,28 @@ class mM { e == "abort" && this.abortListeners && this.abortListeners.push(r); } } -function DF(t) { +function LF(t) { let e = Object.keys(t).join(""), r = /\w/.test(e); return r && (e = e.replace(/\w/g, "")), `[${r ? "\\w" : ""}${e.replace(/[^\w\s]/g, "\\$&")}]`; } -function Q5e(t) { +function q5e(t) { let e = /* @__PURE__ */ Object.create(null), r = /* @__PURE__ */ Object.create(null); for (let { label: i } of t) { e[i[0]] = !0; for (let s = 1; s < i.length; s++) r[i[s]] = !0; } - let n = DF(e) + DF(r) + "*$"; + let n = LF(e) + LF(r) + "*$"; return [new RegExp("^" + n), new RegExp(n)]; } -function WJ(t) { - let e = t.map((i) => typeof i == "string" ? { label: i } : i), [r, n] = e.every((i) => /^\w+$/.test(i.label)) ? [/\w*$/, /\w+$/] : Q5e(e); +function qJ(t) { + let e = t.map((i) => typeof i == "string" ? { label: i } : i), [r, n] = e.every((i) => /^\w+$/.test(i.label)) ? [/\w*$/, /\w+$/] : q5e(e); return (i) => { let s = i.matchBefore(n); return s || i.explicit ? { from: s ? s.from : i.pos, options: e, validFor: r } : null; }; } -function W5e(t, e) { +function Y5e(t, e) { return (r) => { for (let n = Jr(r.state).resolveInner(r.pos, -1); n; n = n.parent) { if (t.indexOf(n.name) > -1) @@ -14459,7 +14459,7 @@ function W5e(t, e) { return e(r); }; } -class NF { +class RF { constructor(e, r, n, i) { this.completion = e, this.source = r, this.match = n, this.score = i; } @@ -14467,28 +14467,28 @@ class NF { function Xh(t) { return t.selection.main.from; } -function GJ(t, e) { +function YJ(t, e) { var r; let { source: n } = t, i = e && n[0] != "^", s = n[n.length - 1] != "$"; return !i && !s ? t : new RegExp(`${i ? "^" : ""}(?:${n})${s ? "$" : ""}`, (r = t.flags) !== null && r !== void 0 ? r : t.ignoreCase ? "i" : ""); } -const HJ = /* @__PURE__ */ Vl.define(); -function G5e(t, e, r, n) { +const QJ = /* @__PURE__ */ Vl.define(); +function Q5e(t, e, r, n) { let { main: i } = t.selection, s = r - i.from, a = n - i.from; return Object.assign(Object.assign({}, t.changeByRange((o) => o != i && r != n && t.sliceDoc(o.from + s, o.from + a) != t.sliceDoc(r, n) ? { range: o } : { changes: { from: o.from + s, to: n == i.from ? o.to : o.from + a, insert: e }, range: Ve.cursor(o.from + s + e.length) })), { scrollIntoView: !0, userEvent: "input.complete" }); } -const IF = /* @__PURE__ */ new WeakMap(); -function H5e(t) { +const MF = /* @__PURE__ */ new WeakMap(); +function W5e(t) { if (!Array.isArray(t)) return t; - let e = IF.get(t); - return e || IF.set(t, e = WJ(t)), e; + let e = MF.get(t); + return e || MF.set(t, e = qJ(t)), e; } -const vM = /* @__PURE__ */ Zt.define(), $y = /* @__PURE__ */ Zt.define(); -class X5e { +const pM = /* @__PURE__ */ Zt.define(), $y = /* @__PURE__ */ Zt.define(); +class G5e { constructor(e) { this.pattern = e, this.chars = [], this.folded = [], this.any = [], this.precise = [], this.byWord = [], this.score = 0, this.matched = []; for (let r = 0; r < e.length; ) { @@ -14533,7 +14533,7 @@ class X5e { for (let b = 0, w = Math.min(e.length, 200), O = 0; b < w && f < l; ) { let S = ss(e, b); o < 0 && (h < l && S == r[h] && (s[h++] = b), p < l && (S == r[p] || S == n[p] ? (p == 0 && (g = b), m = b + 1, p++) : p = 0)); - let C, T = S < 255 ? S >= 48 && S <= 57 || S >= 97 && S <= 122 ? 2 : S >= 65 && S <= 90 ? 1 : 0 : (C = FR(S)) != C.toLowerCase() ? 1 : C != C.toUpperCase() ? 2 : 0; + let C, T = S < 255 ? S >= 48 && S <= 57 || S >= 97 && S <= 122 ? 2 : S >= 65 && S <= 90 ? 1 : 0 : (C = PR(S)) != C.toLowerCase() ? 1 : C != C.toUpperCase() ? 2 : 0; (!b || T == 1 && v || O == 0 && T != 0) && (r[f] == S || n[f] == S && (d = !0) ? a[f++] = b : a.length && (y = !1)), O = T, b += _o(S); } return f == l && a[0] == 0 && y ? this.result(-100 + (d ? -200 : 0), a, e) : p == l && g == 0 ? this.ret(-200 - e.length + (m == e.length ? 0 : -100), [0, m]) : o > -1 ? this.ret(-700 - e.length, [o, o + this.pattern.length]) : p == l ? this.ret(-200 + -700 - e.length, [g, m]) : f == l ? this.result(-100 + (d ? -200 : 0) + -700 + (y ? 0 : -1100), a, e) : r.length == 2 ? !1 : this.result((i[0] ? -700 : 0) + -200 + -1100, i, e); @@ -14561,7 +14561,7 @@ const Ds = /* @__PURE__ */ _t.define({ aboveCursor: !1, icons: !0, addToOptions: [], - positionInfo: Z5e, + positionInfo: H5e, compareCompletions: (e, r) => e.label.localeCompare(r.label), interactionDelay: 75, updateSyncTime: 100 @@ -14569,16 +14569,16 @@ const Ds = /* @__PURE__ */ _t.define({ defaultKeymap: (e, r) => e && r, closeOnBlur: (e, r) => e && r, icons: (e, r) => e && r, - tooltipClass: (e, r) => (n) => PF(e(n), r(n)), - optionClass: (e, r) => (n) => PF(e(n), r(n)), + tooltipClass: (e, r) => (n) => DF(e(n), r(n)), + optionClass: (e, r) => (n) => DF(e(n), r(n)), addToOptions: (e, r) => e.concat(r) }); } }); -function PF(t, e) { +function DF(t, e) { return t ? e ? t + " " + e : t : e; } -function Z5e(t, e, r, n, i, s) { +function H5e(t, e, r, n, i, s) { let a = t.textDirection == In.RTL, o = a, l = !1, u = "top", h, f, d = e.left - i.left, p = i.right - e.right, g = n.right - n.left, m = n.bottom - n.top; if (o && d < Math.min(g, p) ? o = !1 : !o && p < Math.min(g, d) && (o = !0), g <= (o ? d : p)) h = Math.max(i.top, Math.min(r.top, i.bottom - m)) - e.top, f = Math.min(400, o ? d : p); @@ -14593,7 +14593,7 @@ function Z5e(t, e, r, n, i, s) { class: "cm-completionInfo-" + (l ? a ? "left-narrow" : "right-narrow" : o ? "left" : "right") }; } -function j5e(t) { +function X5e(t) { let e = t.addToOptions.slice(); return t.icons && e.push({ render(r) { @@ -14625,7 +14625,7 @@ function j5e(t) { position: 80 }), e.sort((r, n) => r.position - n.position).map((r) => r.render); } -function BE(t, e, r) { +function PE(t, e, r) { if (t <= r) return { from: 0, to: t }; if (e < 0 && (e = 0), e <= t >> 1) { @@ -14635,7 +14635,7 @@ function BE(t, e, r) { let n = Math.floor((t - e) / r); return { from: t - (n + 1) * r, to: t - n * r }; } -class K5e { +class Z5e { constructor(e, r, n) { this.view = e, this.stateField = r, this.applyCompletion = n, this.info = null, this.infoDestroy = null, this.placeInfoReq = { read: () => this.measureInfo(), @@ -14643,7 +14643,7 @@ class K5e { key: this }, this.space = null, this.currentClass = ""; let i = e.state.field(r), { options: s, selected: a } = i.open, o = e.state.facet(Ds); - this.optionContent = j5e(o), this.optionClass = o.optionClass, this.tooltipClass = o.tooltipClass, this.range = BE(s.length, a, o.maxRenderedOptions), this.dom = document.createElement("div"), this.dom.className = "cm-tooltip-autocomplete", this.updateTooltipClass(e.state), this.dom.addEventListener("mousedown", (l) => { + this.optionContent = X5e(o), this.optionClass = o.optionClass, this.tooltipClass = o.tooltipClass, this.range = PE(s.length, a, o.maxRenderedOptions), this.dom = document.createElement("div"), this.dom.className = "cm-tooltip-autocomplete", this.updateTooltipClass(e.state), this.dom.addEventListener("mousedown", (l) => { let { options: u } = e.state.field(r).open; for (let h = l.target, f; h && h != this.dom; h = h.parentNode) if (h.nodeName == "LI" && (f = /-(\d+)$/.exec(h.id)) && +f[1] < u.length) { @@ -14668,7 +14668,7 @@ class K5e { let n = e.state.field(this.stateField), i = e.startState.field(this.stateField); if (this.updateTooltipClass(e.state), n != i) { let { options: s, selected: a, disabled: o } = n.open; - (!i.open || i.open.options != s) && (this.range = BE(s.length, a, e.state.facet(Ds).maxRenderedOptions), this.showOptions(s, n.id)), this.updateSel(), o != ((r = i.open) === null || r === void 0 ? void 0 : r.disabled) && this.dom.classList.toggle("cm-tooltip-autocomplete-disabled", !!o); + (!i.open || i.open.options != s) && (this.range = PE(s.length, a, e.state.facet(Ds).maxRenderedOptions), this.showOptions(s, n.id)), this.updateSel(), o != ((r = i.open) === null || r === void 0 ? void 0 : r.disabled) && this.dom.classList.toggle("cm-tooltip-autocomplete-disabled", !!o); } } updateTooltipClass(e) { @@ -14686,7 +14686,7 @@ class K5e { } updateSel() { let e = this.view.state.field(this.stateField), r = e.open; - if ((r.selected > -1 && r.selected < this.range.from || r.selected >= this.range.to) && (this.range = BE(r.options.length, r.selected, this.view.state.facet(Ds).maxRenderedOptions), this.showOptions(r.options, e.id)), this.updateSelectedOption(r.selected)) { + if ((r.selected > -1 && r.selected < this.range.from || r.selected >= this.range.to) && (this.range = PE(r.options.length, r.selected, this.view.state.facet(Ds).maxRenderedOptions), this.showOptions(r.options, e.id)), this.updateSelectedOption(r.selected)) { this.destroyInfo(); let { completion: n } = r.options[r.selected], { info: i } = n; if (!i) @@ -14714,7 +14714,7 @@ class K5e { let r = null; for (let n = this.list.firstChild, i = this.range.from; n; n = n.nextSibling, i++) n.nodeName != "LI" || !n.id ? i-- : i == e ? n.hasAttribute("aria-selected") || (n.setAttribute("aria-selected", "true"), r = n) : n.hasAttribute("aria-selected") && n.removeAttribute("aria-selected"); - return r && e3e(this.list, r), r; + return r && K5e(this.list, r), r; } measureInfo() { let e = this.dom.querySelector("[aria-selected]"); @@ -14764,17 +14764,17 @@ class K5e { this.destroyInfo(); } } -function J5e(t, e) { - return (r) => new K5e(r, t, e); +function j5e(t, e) { + return (r) => new Z5e(r, t, e); } -function e3e(t, e) { +function K5e(t, e) { let r = t.getBoundingClientRect(), n = e.getBoundingClientRect(), i = r.height / t.offsetHeight; n.top < r.top ? t.scrollTop -= (r.top - n.top) / i : n.bottom > r.bottom && (t.scrollTop += (n.bottom - r.bottom) / i); } -function $F(t) { +function NF(t) { return (t.boost || 0) * 100 + (t.apply ? 10 : 0) + (t.info ? 5 : 0) + (t.type ? 1 : 0); } -function t3e(t, e) { +function J5e(t, e) { let r = [], n = null, i = (l) => { r.push(l); let { section: u } = l.completion; @@ -14789,13 +14789,13 @@ function t3e(t, e) { let u = l.result.getMatch; if (l.result.filter === !1) for (let h of l.result.options) - i(new NF(h, l.source, u ? u(h) : [], 1e9 - r.length)); + i(new RF(h, l.source, u ? u(h) : [], 1e9 - r.length)); else { - let h = new X5e(e.sliceDoc(l.from, l.to)); + let h = new G5e(e.sliceDoc(l.from, l.to)); for (let f of l.result.options) if (h.match(f.label)) { let d = f.displayLabel ? u ? u(f, h.matched) : [] : h.matched; - i(new NF(f, l.source, d, h.score + (f.boost || 0))); + i(new RF(f, l.source, d, h.score + (f.boost || 0))); } } } @@ -14814,7 +14814,7 @@ function t3e(t, e) { let s = [], a = null, o = e.facet(Ds).compareCompletions; for (let l of r.sort((u, h) => h.score - u.score || o(u.completion, h.completion))) { let u = l.completion; - !a || a.label != u.label || a.detail != u.detail || a.type != null && u.type != null && a.type != u.type || a.apply != u.apply || a.boost != u.boost ? s.push(l) : $F(l.completion) > $F(a) && (s[s.length - 1] = l), a = l.completion; + !a || a.label != u.label || a.detail != u.detail || a.type != null && u.type != null && a.type != u.type || a.apply != u.apply || a.boost != u.boost ? s.push(l) : NF(l.completion) > NF(a) && (s[s.length - 1] = l), a = l.completion; } return s; } @@ -14823,10 +14823,10 @@ class Mp { this.options = e, this.attrs = r, this.tooltip = n, this.timestamp = i, this.selected = s, this.disabled = a; } setSelected(e, r) { - return e == this.selected || e >= this.options.length ? this : new Mp(this.options, BF(r, e), this.tooltip, this.timestamp, e, this.disabled); + return e == this.selected || e >= this.options.length ? this : new Mp(this.options, IF(r, e), this.tooltip, this.timestamp, e, this.disabled); } static build(e, r, n, i, s) { - let a = t3e(e, r); + let a = J5e(e, r); if (!a.length) return i && e.some((l) => l.state == 1) ? new Mp(i.options, i.attrs, i.tooltip, i.timestamp, i.selected, !0) : null; let o = r.facet(Ds).selectOnOpen ? 0 : -1; @@ -14838,9 +14838,9 @@ class Mp { break; } } - return new Mp(a, BF(n, o), { + return new Mp(a, IF(n, o), { pos: e.reduce((l, u) => u.hasResult() ? Math.min(l, u.from) : l, 1e8), - create: a3e, + create: i3e, above: s.aboveCursor }, i ? i.timestamp : Date.now(), o, !1); } @@ -14848,30 +14848,30 @@ class Mp { return new Mp(this.options, this.attrs, Object.assign(Object.assign({}, this.tooltip), { pos: e.mapPos(this.tooltip.pos) }), this.timestamp, this.selected, this.disabled); } } -class z5 { +class F5 { constructor(e, r, n) { this.active = e, this.id = r, this.open = n; } static start() { - return new z5(i3e, "cm-ac-" + Math.floor(Math.random() * 2e6).toString(36), null); + return new F5(r3e, "cm-ac-" + Math.floor(Math.random() * 2e6).toString(36), null); } update(e) { - let { state: r } = e, n = r.facet(Ds), s = (n.override || r.languageDataAt("autocomplete", Xh(r)).map(H5e)).map((o) => (this.active.find((u) => u.source == o) || new ka(o, this.active.some((u) => u.state != 0) ? 1 : 0)).update(e, n)); + let { state: r } = e, n = r.facet(Ds), s = (n.override || r.languageDataAt("autocomplete", Xh(r)).map(W5e)).map((o) => (this.active.find((u) => u.source == o) || new ka(o, this.active.some((u) => u.state != 0) ? 1 : 0)).update(e, n)); s.length == this.active.length && s.every((o, l) => o == this.active[l]) && (s = this.active); let a = this.open; - a && e.docChanged && (a = a.map(e.changes)), e.selection || s.some((o) => o.hasResult() && e.changes.touchesRange(o.from, o.to)) || !r3e(s, this.active) ? a = Mp.build(s, r, this.id, a, n) : a && a.disabled && !s.some((o) => o.state == 1) && (a = null), !a && s.every((o) => o.state != 1) && s.some((o) => o.hasResult()) && (s = s.map((o) => o.hasResult() ? new ka(o.source, 0) : o)); + a && e.docChanged && (a = a.map(e.changes)), e.selection || s.some((o) => o.hasResult() && e.changes.touchesRange(o.from, o.to)) || !e3e(s, this.active) ? a = Mp.build(s, r, this.id, a, n) : a && a.disabled && !s.some((o) => o.state == 1) && (a = null), !a && s.every((o) => o.state != 1) && s.some((o) => o.hasResult()) && (s = s.map((o) => o.hasResult() ? new ka(o.source, 0) : o)); for (let o of e.effects) - o.is(ZJ) && (a = a && a.setSelected(o.value, this.id)); - return s == this.active && a == this.open ? this : new z5(s, this.id, a); + o.is(GJ) && (a = a && a.setSelected(o.value, this.id)); + return s == this.active && a == this.open ? this : new F5(s, this.id, a); } get tooltip() { return this.open ? this.open.tooltip : null; } get attrs() { - return this.open ? this.open.attrs : n3e; + return this.open ? this.open.attrs : t3e; } } -function r3e(t, e) { +function e3e(t, e) { if (t == e) return !0; for (let r = 0, n = 0; ; ) { @@ -14886,10 +14886,10 @@ function r3e(t, e) { return !1; } } -const n3e = { +const t3e = { "aria-autocomplete": "list" }; -function BF(t, e) { +function IF(t, e) { let r = { "aria-autocomplete": "list", "aria-haspopup": "listbox", @@ -14897,8 +14897,8 @@ function BF(t, e) { }; return e > -1 && (r["aria-activedescendant"] = t + "-" + e), r; } -const i3e = []; -function R7(t) { +const r3e = []; +function A7(t) { return t.isUserEvent("input.type") ? "input" : t.isUserEvent("delete.backward") ? "delete" : null; } class ka { @@ -14909,14 +14909,14 @@ class ka { return !1; } update(e, r) { - let n = R7(e), i = this; + let n = A7(e), i = this; n ? i = i.handleUserEvent(e, n, r) : e.docChanged ? i = i.handleChange(e) : e.selection && i.state != 0 && (i = new ka(i.source, 0)); for (let s of e.effects) - if (s.is(vM)) + if (s.is(pM)) i = new ka(i.source, 1, s.value ? Xh(e.state) : -1); else if (s.is($y)) i = new ka(i.source, 0); - else if (s.is(XJ)) + else if (s.is(WJ)) for (let a of s.value) a.source == i.source && (i = a); return i; @@ -14944,7 +14944,7 @@ class jp extends ka { if ((this.explicitPos < 0 ? o <= s : o < this.from) || o > a || r == "delete" && Xh(e.startState) == this.from) return new ka(this.source, r == "input" && n.activateOnTyping ? 1 : 0); let l = this.explicitPos < 0 ? -1 : e.changes.mapPos(this.explicitPos), u; - return s3e(this.result.validFor, e.state, s, a) ? new jp(this.source, l, this.result, s, a) : this.result.update && (u = this.result.update(this.result, s, a, new mM(e.state, o, l >= 0))) ? new jp(this.source, l, u, u.from, (i = u.to) !== null && i !== void 0 ? i : Xh(e.state)) : new ka(this.source, 1, l); + return n3e(this.result.validFor, e.state, s, a) ? new jp(this.source, l, this.result, s, a) : this.result.update && (u = this.result.update(this.result, s, a, new dM(e.state, o, l >= 0))) ? new jp(this.source, l, u, u.from, (i = u.to) !== null && i !== void 0 ? i : Xh(e.state)) : new ka(this.source, 1, l); } handleChange(e) { return e.changes.touchesRange(this.from, this.to) ? new ka(this.source, 0) : this.map(e.changes); @@ -14953,58 +14953,58 @@ class jp extends ka { return e.empty ? this : new jp(this.source, this.explicitPos < 0 ? -1 : e.mapPos(this.explicitPos), this.result, e.mapPos(this.from), e.mapPos(this.to, 1)); } } -function s3e(t, e, r, n) { +function n3e(t, e, r, n) { if (!t) return !1; let i = e.sliceDoc(r, n); - return typeof t == "function" ? t(i, r, n, e) : GJ(t, !0).test(i); + return typeof t == "function" ? t(i, r, n, e) : YJ(t, !0).test(i); } -const XJ = /* @__PURE__ */ Zt.define({ +const WJ = /* @__PURE__ */ Zt.define({ map(t, e) { return t.map((r) => r.map(e)); } -}), ZJ = /* @__PURE__ */ Zt.define(), to = /* @__PURE__ */ $n.define({ +}), GJ = /* @__PURE__ */ Zt.define(), to = /* @__PURE__ */ $n.define({ create() { - return z5.start(); + return F5.start(); }, update(t, e) { return t.update(e); }, provide: (t) => [ - ZR.from(t, (e) => e.tooltip), + GR.from(t, (e) => e.tooltip), ht.contentAttributes.from(t, (e) => e.attrs) ] }); -function jJ(t, e) { +function HJ(t, e) { const r = e.completion.apply || e.completion.label; let n = t.state.field(to).active.find((i) => i.source == e.source); - return n instanceof jp ? (typeof r == "string" ? t.dispatch(Object.assign(Object.assign({}, G5e(t.state, r, n.from, n.to)), { annotations: HJ.of(e.completion) })) : r(t, e.completion, n.from, n.to), !0) : !1; + return n instanceof jp ? (typeof r == "string" ? t.dispatch(Object.assign(Object.assign({}, Q5e(t.state, r, n.from, n.to)), { annotations: QJ.of(e.completion) })) : r(t, e.completion, n.from, n.to), !0) : !1; } -const a3e = /* @__PURE__ */ J5e(to, jJ); +const i3e = /* @__PURE__ */ j5e(to, HJ); function Lw(t, e = "option") { return (r) => { let n = r.state.field(to, !1); if (!n || !n.open || n.open.disabled || Date.now() - n.open.timestamp < r.state.facet(Ds).interactionDelay) return !1; let i = 1, s; - e == "page" && (s = AK(r, n.open.tooltip)) && (i = Math.max(2, Math.floor(s.dom.offsetHeight / s.dom.querySelector("li").offsetHeight) - 1)); + e == "page" && (s = CK(r, n.open.tooltip)) && (i = Math.max(2, Math.floor(s.dom.offsetHeight / s.dom.querySelector("li").offsetHeight) - 1)); let { length: a } = n.open.options, o = n.open.selected > -1 ? n.open.selected + i * (t ? 1 : -1) : t ? 0 : a - 1; - return o < 0 ? o = e == "page" ? 0 : a - 1 : o >= a && (o = e == "page" ? a - 1 : 0), r.dispatch({ effects: ZJ.of(o) }), !0; + return o < 0 ? o = e == "page" ? 0 : a - 1 : o >= a && (o = e == "page" ? a - 1 : 0), r.dispatch({ effects: GJ.of(o) }), !0; }; } -const o3e = (t) => { +const s3e = (t) => { let e = t.state.field(to, !1); - return t.state.readOnly || !e || !e.open || e.open.selected < 0 || e.open.disabled || Date.now() - e.open.timestamp < t.state.facet(Ds).interactionDelay ? !1 : jJ(t, e.open.options[e.open.selected]); -}, l3e = (t) => t.state.field(to, !1) ? (t.dispatch({ effects: vM.of(!0) }), !0) : !1, c3e = (t) => { + return t.state.readOnly || !e || !e.open || e.open.selected < 0 || e.open.disabled || Date.now() - e.open.timestamp < t.state.facet(Ds).interactionDelay ? !1 : HJ(t, e.open.options[e.open.selected]); +}, a3e = (t) => t.state.field(to, !1) ? (t.dispatch({ effects: pM.of(!0) }), !0) : !1, o3e = (t) => { let e = t.state.field(to, !1); return !e || !e.active.some((r) => r.state != 0) ? !1 : (t.dispatch({ effects: $y.of(null) }), !0); }; -class u3e { +class l3e { constructor(e, r) { this.active = e, this.context = r, this.time = Date.now(), this.updates = [], this.done = void 0; } } -const h3e = 50, f3e = 1e3, d3e = /* @__PURE__ */ on.fromClass(class { +const c3e = 50, u3e = 1e3, h3e = /* @__PURE__ */ on.fromClass(class { constructor(t) { this.view = t, this.debounceUpdate = -1, this.running = [], this.debounceAccept = -1, this.composing = 0; for (let e of t.state.field(to).active) @@ -15014,10 +15014,10 @@ const h3e = 50, f3e = 1e3, d3e = /* @__PURE__ */ on.fromClass(class { let e = t.state.field(to); if (!t.selectionSet && !t.docChanged && t.startState.field(to) == e) return; - let r = t.transactions.some((n) => (n.selection || n.docChanged) && !R7(n)); + let r = t.transactions.some((n) => (n.selection || n.docChanged) && !A7(n)); for (let n = 0; n < this.running.length; n++) { let i = this.running[n]; - if (r || i.updates.length + t.transactions.length > h3e && Date.now() - i.time > f3e) { + if (r || i.updates.length + t.transactions.length > c3e && Date.now() - i.time > u3e) { for (let s of i.context.abortListeners) try { s(); @@ -15030,7 +15030,7 @@ const h3e = 50, f3e = 1e3, d3e = /* @__PURE__ */ on.fromClass(class { } if (this.debounceUpdate > -1 && clearTimeout(this.debounceUpdate), this.debounceUpdate = e.active.some((n) => n.state == 1 && !this.running.some((i) => i.active.source == n.source)) ? setTimeout(() => this.startUpdate(), 50) : -1, this.composing != 0) for (let n of t.transactions) - R7(n) == "input" ? this.composing = 2 : this.composing == 2 && n.selection && (this.composing = 3); + A7(n) == "input" ? this.composing = 2 : this.composing == 2 && n.selection && (this.composing = 3); } startUpdate() { this.debounceUpdate = -1; @@ -15039,7 +15039,7 @@ const h3e = 50, f3e = 1e3, d3e = /* @__PURE__ */ on.fromClass(class { r.state == 1 && !this.running.some((n) => n.active.source == r.source) && this.startQuery(r); } startQuery(t) { - let { state: e } = this.view, r = Xh(e), n = new mM(e, r, t.explicitPos == r), i = new u3e(t, n); + let { state: e } = this.view, r = Xh(e), n = new dM(e, r, t.explicitPos == r), i = new l3e(t, n); this.running.push(i), Promise.resolve(t.source(n)).then((s) => { i.context.aborted || (i.done = s || null, this.scheduleAccept()); }, (s) => { @@ -15076,14 +15076,14 @@ const h3e = 50, f3e = 1e3, d3e = /* @__PURE__ */ on.fromClass(class { } else this.startQuery(s); } - e.length && this.view.dispatch({ effects: XJ.of(e) }); + e.length && this.view.dispatch({ effects: WJ.of(e) }); } }, { eventHandlers: { blur(t) { let e = this.view.state.field(to, !1); if (e && e.tooltip && this.view.state.facet(Ds).closeOnBlur) { - let r = e.open && AK(this.view, e.open.tooltip); + let r = e.open && CK(this.view, e.open.tooltip); (!r || !r.dom.contains(t.relatedTarget)) && this.view.dispatch({ effects: $y.of(null) }); } }, @@ -15091,10 +15091,10 @@ const h3e = 50, f3e = 1e3, d3e = /* @__PURE__ */ on.fromClass(class { this.composing = 1; }, compositionend() { - this.composing == 3 && setTimeout(() => this.view.dispatch({ effects: vM.of(!1) }), 20), this.composing = 0; + this.composing == 3 && setTimeout(() => this.view.dispatch({ effects: pM.of(!1) }), 20), this.composing = 0; } } -}), KJ = /* @__PURE__ */ ht.baseTheme({ +}), XJ = /* @__PURE__ */ ht.baseTheme({ ".cm-tooltip.cm-tooltip-autocomplete": { "& > ul": { fontFamily: "monospace", @@ -15216,21 +15216,21 @@ const h3e = 50, f3e = 1e3, d3e = /* @__PURE__ */ on.fromClass(class { "&:after": { content: "'abc'", fontSize: "50%", verticalAlign: "middle" } } }); -class p3e { +class f3e { constructor(e, r, n, i) { this.field = e, this.line = r, this.from = n, this.to = i; } } -class yM { +class gM { constructor(e, r, n) { this.field = e, this.from = r, this.to = n; } map(e) { let r = e.mapPos(this.from, -1, Si.TrackDel), n = e.mapPos(this.to, 1, Si.TrackDel); - return r == null || n == null ? null : new yM(this.field, r, n); + return r == null || n == null ? null : new gM(this.field, r, n); } } -class bM { +class mM { constructor(e, r) { this.lines = e, this.fieldPositions = r; } @@ -15245,7 +15245,7 @@ class bM { } n.push(l), r += l.length + 1; } - let o = this.fieldPositions.map((l) => new yM(l.field, i[l.line] + l.from, i[l.line] + l.to)); + let o = this.fieldPositions.map((l) => new gM(l.field, i[l.line] + l.from, i[l.line] + l.to)); return { text: n, ranges: o }; } static parse(e) { @@ -15263,7 +15263,7 @@ class bM { for (let f of i) f.field >= u && f.field++; } - i.push(new p3e(u, n.length, s.index, s.index + l.length)), a = a.slice(0, s.index) + l + a.slice(s.index + s[0].length); + i.push(new f3e(u, n.length, s.index, s.index + l.length)), a = a.slice(0, s.index) + l + a.slice(s.index + s[0].length); } for (let o; o = /\\([{}])/.exec(a); ) { a = a.slice(0, o.index) + o[1] + a.slice(o.index + o[0].length); @@ -15272,10 +15272,10 @@ class bM { } n.push(a); } - return new bM(n, i); + return new mM(n, i); } } -let g3e = /* @__PURE__ */ Et.widget({ widget: /* @__PURE__ */ new class extends za { +let d3e = /* @__PURE__ */ Et.widget({ widget: /* @__PURE__ */ new class extends za { toDOM() { let t = document.createElement("span"); return t.className = "cm-snippetFieldPosition", t; @@ -15283,10 +15283,10 @@ let g3e = /* @__PURE__ */ Et.widget({ widget: /* @__PURE__ */ new class extends ignoreEvent() { return !1; } -}() }), m3e = /* @__PURE__ */ Et.mark({ class: "cm-snippetField" }); +}() }), p3e = /* @__PURE__ */ Et.mark({ class: "cm-snippetField" }); class z1 { constructor(e, r) { - this.ranges = e, this.active = r, this.deco = Et.set(e.map((n) => (n.from == n.to ? g3e : m3e).range(n.from, n.to))); + this.ranges = e, this.active = r, this.deco = Et.set(e.map((n) => (n.from == n.to ? d3e : p3e).range(n.from, n.to))); } map(e) { let r = []; @@ -15306,7 +15306,7 @@ const Kb = /* @__PURE__ */ Zt.define({ map(t, e) { return t && t.map(e); } -}), v3e = /* @__PURE__ */ Zt.define(), By = /* @__PURE__ */ $n.define({ +}), g3e = /* @__PURE__ */ Zt.define(), By = /* @__PURE__ */ $n.define({ create() { return null; }, @@ -15314,63 +15314,63 @@ const Kb = /* @__PURE__ */ Zt.define({ for (let r of e.effects) { if (r.is(Kb)) return r.value; - if (r.is(v3e) && t) + if (r.is(g3e) && t) return new z1(t.ranges, r.value); } return t && e.docChanged && (t = t.map(e.changes)), t && e.selection && !t.selectionInsideField(e.selection) && (t = null), t; }, provide: (t) => ht.decorations.from(t, (e) => e ? e.deco : Et.none) }); -function xM(t, e) { +function vM(t, e) { return Ve.create(t.filter((r) => r.field == e).map((r) => Ve.range(r.from, r.to))); } -function y3e(t) { - let e = bM.parse(t); +function m3e(t) { + let e = mM.parse(t); return (r, n, i, s) => { let { text: a, ranges: o } = e.instantiate(r.state, i), l = { changes: { from: i, to: s, insert: Dr.of(a) }, scrollIntoView: !0, - annotations: n ? HJ.of(n) : void 0 + annotations: n ? QJ.of(n) : void 0 }; - if (o.length && (l.selection = xM(o, 0)), o.length > 1) { + if (o.length && (l.selection = vM(o, 0)), o.length > 1) { let u = new z1(o, 0), h = l.effects = [Kb.of(u)]; - r.state.field(By, !1) === void 0 && h.push(Zt.appendConfig.of([By, k3e, S3e, KJ])); + r.state.field(By, !1) === void 0 && h.push(Zt.appendConfig.of([By, w3e, O3e, XJ])); } r.dispatch(r.state.update(l)); }; } -function JJ(t) { +function ZJ(t) { return ({ state: e, dispatch: r }) => { let n = e.field(By, !1); if (!n || t < 0 && n.active == 0) return !1; let i = n.active + t, s = t > 0 && !n.ranges.some((a) => a.field == i + t); return r(e.update({ - selection: xM(n.ranges, i), + selection: vM(n.ranges, i), effects: Kb.of(s ? null : new z1(n.ranges, i)), scrollIntoView: !0 })), !0; }; } -const b3e = ({ state: t, dispatch: e }) => t.field(By, !1) ? (e(t.update({ effects: Kb.of(null) })), !0) : !1, x3e = /* @__PURE__ */ JJ(1), w3e = /* @__PURE__ */ JJ(-1), O3e = [ - { key: "Tab", run: x3e, shift: w3e }, - { key: "Escape", run: b3e } -], FF = /* @__PURE__ */ _t.define({ +const v3e = ({ state: t, dispatch: e }) => t.field(By, !1) ? (e(t.update({ effects: Kb.of(null) })), !0) : !1, y3e = /* @__PURE__ */ ZJ(1), b3e = /* @__PURE__ */ ZJ(-1), x3e = [ + { key: "Tab", run: y3e, shift: b3e }, + { key: "Escape", run: v3e } +], PF = /* @__PURE__ */ _t.define({ combine(t) { - return t.length ? t[0] : O3e; + return t.length ? t[0] : x3e; } -}), k3e = /* @__PURE__ */ zl.highest(/* @__PURE__ */ Cu.compute([FF], (t) => t.facet(FF))); +}), w3e = /* @__PURE__ */ zl.highest(/* @__PURE__ */ Cu.compute([PF], (t) => t.facet(PF))); function ya(t, e) { - return Object.assign(Object.assign({}, e), { apply: y3e(t) }); + return Object.assign(Object.assign({}, e), { apply: m3e(t) }); } -const S3e = /* @__PURE__ */ ht.domEventHandlers({ +const O3e = /* @__PURE__ */ ht.domEventHandlers({ mousedown(t, e) { let r = e.state.field(By, !1), n; if (!r || (n = e.posAtCoords({ x: t.clientX, y: t.clientY })) == null) return !1; let i = r.ranges.find((s) => s.from <= n && s.to >= n); return !i || i.field == r.active ? !1 : (e.dispatch({ - selection: xM(r.ranges, i.field), + selection: vM(r.ranges, i.field), effects: Kb.of(r.ranges.some((s) => s.field > i.field) ? new z1(r.ranges, i.field) : null), scrollIntoView: !0 }), !0); @@ -15384,11 +15384,11 @@ const S3e = /* @__PURE__ */ ht.domEventHandlers({ let r = e.mapPos(t, -1, Si.TrackAfter); return r == null ? void 0 : r; } -}), wM = /* @__PURE__ */ new class extends Zd { +}), yM = /* @__PURE__ */ new class extends Zd { }(); -wM.startSide = 1; -wM.endSide = -1; -const eee = /* @__PURE__ */ $n.define({ +yM.startSide = 1; +yM.endSide = -1; +const jJ = /* @__PURE__ */ $n.define({ create() { return Er.empty; }, @@ -15398,39 +15398,39 @@ const eee = /* @__PURE__ */ $n.define({ t = t.update({ filter: (n) => n >= r.from && n <= r.to }); } for (let r of e.effects) - r.is(Ad) && (t = t.update({ add: [wM.range(r.value, r.value + 1)] })); + r.is(Ad) && (t = t.update({ add: [yM.range(r.value, r.value + 1)] })); return t; } }); -function T3e() { - return [E3e, eee]; +function k3e() { + return [T3e, jJ]; } -const FE = "()[]{}<>"; -function tee(t) { - for (let e = 0; e < FE.length; e += 2) - if (FE.charCodeAt(e) == t) - return FE.charAt(e + 1); - return FR(t < 128 ? t : t + 1); +const $E = "()[]{}<>"; +function KJ(t) { + for (let e = 0; e < $E.length; e += 2) + if ($E.charCodeAt(e) == t) + return $E.charAt(e + 1); + return PR(t < 128 ? t : t + 1); } -function ree(t, e) { +function JJ(t, e) { return t.languageDataAt("closeBrackets", e)[0] || Fy; } -const C3e = typeof navigator == "object" && /* @__PURE__ */ /Android\b/.test(navigator.userAgent), E3e = /* @__PURE__ */ ht.inputHandler.of((t, e, r, n) => { - if ((C3e ? t.composing : t.compositionStarted) || t.state.readOnly) +const S3e = typeof navigator == "object" && /* @__PURE__ */ /Android\b/.test(navigator.userAgent), T3e = /* @__PURE__ */ ht.inputHandler.of((t, e, r, n) => { + if ((S3e ? t.composing : t.compositionStarted) || t.state.readOnly) return !1; let i = t.state.selection.main; if (n.length > 2 || n.length == 2 && _o(ss(n, 0)) == 1 || e != i.from || r != i.to) return !1; - let s = L3e(t.state, n); + let s = _3e(t.state, n); return s ? (t.dispatch(s), !0) : !1; -}), _3e = ({ state: t, dispatch: e }) => { +}), C3e = ({ state: t, dispatch: e }) => { if (t.readOnly) return !1; - let n = ree(t, t.selection.main.head).brackets || Fy.brackets, i = null, s = t.changeByRange((a) => { + let n = JJ(t, t.selection.main.head).brackets || Fy.brackets, i = null, s = t.changeByRange((a) => { if (a.empty) { - let o = R3e(t.doc, a.head); + let o = A3e(t.doc, a.head); for (let l of n) - if (l == o && XS(t.doc, a.head) == tee(ss(l, 0))) + if (l == o && HS(t.doc, a.head) == KJ(ss(l, 0))) return { changes: { from: a.head - l.length, to: a.head + l.length }, range: Ve.cursor(a.head - l.length) @@ -15439,35 +15439,35 @@ const C3e = typeof navigator == "object" && /* @__PURE__ */ /Android\b/.test(nav return { range: i = a }; }); return i || e(t.update(s, { scrollIntoView: !0, userEvent: "delete.backward" })), !i; -}, A3e = [ - { key: "Backspace", run: _3e } +}, E3e = [ + { key: "Backspace", run: C3e } ]; -function L3e(t, e) { - let r = ree(t, t.selection.main.head), n = r.brackets || Fy.brackets; +function _3e(t, e) { + let r = JJ(t, t.selection.main.head), n = r.brackets || Fy.brackets; for (let i of n) { - let s = tee(ss(i, 0)); + let s = KJ(ss(i, 0)); if (e == i) - return s == i ? N3e(t, i, n.indexOf(i + i + i) > -1, r) : M3e(t, i, s, r.before || Fy.before); - if (e == s && nee(t, t.selection.main.from)) - return D3e(t, i, s); + return s == i ? M3e(t, i, n.indexOf(i + i + i) > -1, r) : L3e(t, i, s, r.before || Fy.before); + if (e == s && eee(t, t.selection.main.from)) + return R3e(t, i, s); } return null; } -function nee(t, e) { +function eee(t, e) { let r = !1; - return t.field(eee).between(0, t.doc.length, (n) => { + return t.field(jJ).between(0, t.doc.length, (n) => { n == e && (r = !0); }), r; } -function XS(t, e) { +function HS(t, e) { let r = t.sliceString(e, e + 2); return r.slice(0, _o(ss(r, 0))); } -function R3e(t, e) { +function A3e(t, e) { let r = t.sliceString(e - 2, e); return _o(ss(r, 0)) == r.length ? r : r.slice(1); } -function M3e(t, e, r, n) { +function L3e(t, e, r, n) { let i = null, s = t.changeByRange((a) => { if (!a.empty) return { @@ -15475,7 +15475,7 @@ function M3e(t, e, r, n) { effects: Ad.of(a.to + e.length), range: Ve.range(a.anchor + e.length, a.head + e.length) }; - let o = XS(t.doc, a.head); + let o = HS(t.doc, a.head); return !o || /\s/.test(o) || n.indexOf(o) > -1 ? { changes: { insert: e + r, from: a.head }, effects: Ad.of(a.head + e.length), @@ -15487,8 +15487,8 @@ function M3e(t, e, r, n) { userEvent: "input.type" }); } -function D3e(t, e, r) { - let n = null, i = t.changeByRange((s) => s.empty && XS(t.doc, s.head) == r ? { +function R3e(t, e, r) { + let n = null, i = t.changeByRange((s) => s.empty && HS(t.doc, s.head) == r ? { changes: { from: s.head, to: s.head + r.length, insert: r }, range: Ve.cursor(s.head + r.length) } : n = { range: s }); @@ -15497,7 +15497,7 @@ function D3e(t, e, r) { userEvent: "input.type" }); } -function N3e(t, e, r, n) { +function M3e(t, e, r, n) { let i = n.stringPrefixes || Fy.stringPrefixes, s = null, a = t.changeByRange((o) => { if (!o.empty) return { @@ -15505,15 +15505,15 @@ function N3e(t, e, r, n) { effects: Ad.of(o.to + e.length), range: Ve.range(o.anchor + e.length, o.head + e.length) }; - let l = o.head, u = XS(t.doc, l), h; + let l = o.head, u = HS(t.doc, l), h; if (u == e) { - if (zF(t, l)) + if ($F(t, l)) return { changes: { insert: e + e, from: l }, effects: Ad.of(l + e.length), range: Ve.cursor(l + e.length) }; - if (nee(t, l)) { + if (eee(t, l)) { let d = r && t.sliceDoc(l, l + e.length * 3) == e + e + e ? e + e + e : e; return { changes: { from: l, to: l + d.length, insert: d }, @@ -15521,13 +15521,13 @@ function N3e(t, e, r, n) { }; } } else { - if (r && t.sliceDoc(l - 2 * e.length, l) == e + e && (h = VF(t, l - 2 * e.length, i)) > -1 && zF(t, h)) + if (r && t.sliceDoc(l - 2 * e.length, l) == e + e && (h = BF(t, l - 2 * e.length, i)) > -1 && $F(t, h)) return { changes: { insert: e + e + e + e, from: l }, effects: Ad.of(l + e.length), range: Ve.cursor(l + e.length) }; - if (t.charCategorizer(l)(u) != Sn.Word && VF(t, l, i) > -1 && !I3e(t, l, e, i)) + if (t.charCategorizer(l)(u) != Sn.Word && BF(t, l, i) > -1 && !D3e(t, l, e, i)) return { changes: { insert: e + e, from: l }, effects: Ad.of(l + e.length), @@ -15541,11 +15541,11 @@ function N3e(t, e, r, n) { userEvent: "input.type" }); } -function zF(t, e) { +function $F(t, e) { let r = Jr(t).resolveInner(e + 1); return r.parent && r.from == e; } -function I3e(t, e, r, n) { +function D3e(t, e, r, n) { let i = Jr(t).resolveInner(e, -1), s = n.reduce((a, o) => Math.max(a, o.length), 0); for (let a = 0; a < 5; a++) { let o = t.sliceDoc(i.from, Math.min(i.to, i.from + r.length + s)), l = o.indexOf(r); @@ -15565,7 +15565,7 @@ function I3e(t, e, r, n) { } return !1; } -function VF(t, e, r) { +function BF(t, e, r) { let n = t.charCategorizer(e); if (n(t.sliceDoc(e - 1, e)) != Sn.Word) return e; @@ -15576,25 +15576,25 @@ function VF(t, e, r) { } return -1; } -function P3e(t = {}) { +function N3e(t = {}) { return [ to, Ds.of(t), - d3e, - $3e, - KJ + h3e, + I3e, + XJ ]; } -const iee = [ - { key: "Ctrl-Space", run: l3e }, - { key: "Escape", run: c3e }, +const tee = [ + { key: "Ctrl-Space", run: a3e }, + { key: "Escape", run: o3e }, { key: "ArrowDown", run: /* @__PURE__ */ Lw(!0) }, { key: "ArrowUp", run: /* @__PURE__ */ Lw(!1) }, { key: "PageDown", run: /* @__PURE__ */ Lw(!0, "page") }, { key: "PageUp", run: /* @__PURE__ */ Lw(!1, "page") }, - { key: "Enter", run: o3e } -], $3e = /* @__PURE__ */ zl.highest(/* @__PURE__ */ Cu.computeN([Ds], (t) => t.facet(Ds).defaultKeymap ? [iee] : [])); -class B3e { + { key: "Enter", run: s3e } +], I3e = /* @__PURE__ */ zl.highest(/* @__PURE__ */ Cu.computeN([Ds], (t) => t.facet(Ds).defaultKeymap ? [tee] : [])); +class P3e { constructor(e, r, n) { this.from = e, this.to = r, this.diagnostic = n; } @@ -15604,10 +15604,10 @@ class yd { this.diagnostics = e, this.panel = r, this.selected = n; } static init(e, r, n) { - let i = e, s = n.facet(oee).markerFilter; + let i = e, s = n.facet(iee).markerFilter; s && (i = s(i)); let a = Et.set(i.map((o) => o.from == o.to || o.from == o.to - 1 && n.doc.lineAt(o.from).to == o.from ? Et.widget({ - widget: new G3e(o), + widget: new Q3e(o), diagnostic: o }).range(o.from) : Et.mark({ attributes: { class: "cm-lintRange cm-lintRange-" + o.severity + (o.markClass ? " " + o.markClass : "") }, @@ -15620,17 +15620,17 @@ function Dg(t, e = null, r = 0) { let n = null; return t.between(r, 1e9, (i, s, { spec: a }) => { if (!(e && a.diagnostic != e)) - return n = new B3e(i, s, a.diagnostic), !1; + return n = new P3e(i, s, a.diagnostic), !1; }), n; } -function F3e(t, e) { +function $3e(t, e) { let r = t.startState.doc.lineAt(e.pos); - return !!(t.effects.some((n) => n.is(see)) || t.changes.touchesRange(r.from, r.to)); + return !!(t.effects.some((n) => n.is(ree)) || t.changes.touchesRange(r.from, r.to)); } -function z3e(t, e) { - return t.field(io, !1) ? e : e.concat(Zt.appendConfig.of(Z3e)); +function B3e(t, e) { + return t.field(io, !1) ? e : e.concat(Zt.appendConfig.of(H3e)); } -const see = /* @__PURE__ */ Zt.define(), OM = /* @__PURE__ */ Zt.define(), aee = /* @__PURE__ */ Zt.define(), io = /* @__PURE__ */ $n.define({ +const ree = /* @__PURE__ */ Zt.define(), bM = /* @__PURE__ */ Zt.define(), nee = /* @__PURE__ */ Zt.define(), io = /* @__PURE__ */ $n.define({ create() { return new yd(Et.none, null, null); }, @@ -15644,50 +15644,50 @@ const see = /* @__PURE__ */ Zt.define(), OM = /* @__PURE__ */ Zt.define(), aee = t = new yd(r, t.panel, n); } for (let r of e.effects) - r.is(see) ? t = yd.init(r.value, t.panel, e.state) : r.is(OM) ? t = new yd(t.diagnostics, r.value ? ZS.open : null, t.selected) : r.is(aee) && (t = new yd(t.diagnostics, t.panel, r.value)); + r.is(ree) ? t = yd.init(r.value, t.panel, e.state) : r.is(bM) ? t = new yd(t.diagnostics, r.value ? XS.open : null, t.selected) : r.is(nee) && (t = new yd(t.diagnostics, t.panel, r.value)); return t; }, provide: (t) => [ Ay.from(t, (e) => e.panel), ht.decorations.from(t, (e) => e.diagnostics) ] -}), V3e = /* @__PURE__ */ Et.mark({ class: "cm-lintRange cm-lintRange-active" }); -function U3e(t, e, r) { +}), F3e = /* @__PURE__ */ Et.mark({ class: "cm-lintRange cm-lintRange-active" }); +function z3e(t, e, r) { let { diagnostics: n } = t.state.field(io), i = [], s = 2e8, a = 0; n.between(e - (r < 0 ? 1 : 0), e + (r > 0 ? 1 : 0), (l, u, { spec: h }) => { e >= l && e <= u && (l == u || (e > l || r > 0) && (e < u || r < 0)) && (i.push(h.diagnostic), s = Math.min(l, s), a = Math.max(u, a)); }); - let o = t.state.facet(oee).tooltipFilter; + let o = t.state.facet(iee).tooltipFilter; return o && (i = o(i)), i.length ? { pos: s, end: a, above: t.state.doc.lineAt(s).to < a, create() { - return { dom: q3e(t, i) }; + return { dom: V3e(t, i) }; } } : null; } -function q3e(t, e) { - return un("ul", { class: "cm-tooltip-lint" }, e.map((r) => cee(t, r, !1))); +function V3e(t, e) { + return un("ul", { class: "cm-tooltip-lint" }, e.map((r) => aee(t, r, !1))); } -const Y3e = (t) => { +const U3e = (t) => { let e = t.state.field(io, !1); - (!e || !e.panel) && t.dispatch({ effects: z3e(t.state, [OM.of(!0)]) }); - let r = _y(t, ZS.open); + (!e || !e.panel) && t.dispatch({ effects: B3e(t.state, [bM.of(!0)]) }); + let r = _y(t, XS.open); return r && r.dom.querySelector(".cm-panel-lint ul").focus(), !0; -}, UF = (t) => { +}, FF = (t) => { let e = t.state.field(io, !1); - return !e || !e.panel ? !1 : (t.dispatch({ effects: OM.of(!1) }), !0); -}, Q3e = (t) => { + return !e || !e.panel ? !1 : (t.dispatch({ effects: bM.of(!1) }), !0); +}, q3e = (t) => { let e = t.state.field(io, !1); if (!e) return !1; let r = t.state.selection.main, n = e.diagnostics.iter(r.to + 1); return !n.value && (n = e.diagnostics.iter(0), !n.value || n.from == r.from && n.to == r.to) ? !1 : (t.dispatch({ selection: { anchor: n.from, head: n.to }, scrollIntoView: !0 }), !0); -}, W3e = [ - { key: "Mod-Shift-m", run: Y3e, preventDefault: !0 }, - { key: "F8", run: Q3e } -], oee = /* @__PURE__ */ _t.define({ +}, Y3e = [ + { key: "Mod-Shift-m", run: U3e, preventDefault: !0 }, + { key: "F8", run: q3e } +], iee = /* @__PURE__ */ _t.define({ combine(t) { return Object.assign({ sources: t.map((e) => e.source) }, Yc(t.map((e) => e.config), { delay: 750, @@ -15699,7 +15699,7 @@ const Y3e = (t) => { })); } }); -function lee(t) { +function see(t) { let e = []; if (t) e: @@ -15715,9 +15715,9 @@ function lee(t) { } return e; } -function cee(t, e, r) { +function aee(t, e, r) { var n; - let i = r ? lee(e.actions) : []; + let i = r ? see(e.actions) : []; return un("li", { class: "cm-diagnostic cm-diagnostic-" + e.severity }, un("span", { class: "cm-diagnosticText" }, e.renderMessage ? e.renderMessage() : e.message), (n = e.actions) === null || n === void 0 ? void 0 : n.map((s, a) => { let o = !1, l = (d) => { if (d.preventDefault(), o) @@ -15739,7 +15739,7 @@ function cee(t, e, r) { }, f); }), e.source && un("div", { class: "cm-diagnosticSource" }, e.source)); } -class G3e extends za { +class Q3e extends za { constructor(e) { super(), this.diagnostic = e; } @@ -15750,17 +15750,17 @@ class G3e extends za { return un("span", { class: "cm-lintPoint cm-lintPoint-" + this.diagnostic.severity }); } } -class qF { +class zF { constructor(e, r) { - this.diagnostic = r, this.id = "item_" + Math.floor(Math.random() * 4294967295).toString(16), this.dom = cee(e, r, !0), this.dom.id = this.id, this.dom.setAttribute("role", "option"); + this.diagnostic = r, this.id = "item_" + Math.floor(Math.random() * 4294967295).toString(16), this.dom = aee(e, r, !0), this.dom.id = this.id, this.dom.setAttribute("role", "option"); } } -class ZS { +class XS { constructor(e) { this.view = e, this.items = []; let r = (i) => { if (i.keyCode == 27) - UF(this.view), this.view.focus(); + FF(this.view), this.view.focus(); else if (i.keyCode == 38 || i.keyCode == 33) this.moveSelection((this.selectedIndex - 1 + this.items.length) % this.items.length); else if (i.keyCode == 40 || i.keyCode == 34) @@ -15772,7 +15772,7 @@ class ZS { else if (i.keyCode == 13) this.view.focus(); else if (i.keyCode >= 65 && i.keyCode <= 90 && this.selectedIndex >= 0) { - let { diagnostic: s } = this.items[this.selectedIndex], a = lee(s.actions); + let { diagnostic: s } = this.items[this.selectedIndex], a = see(s.actions); for (let o = 0; o < a.length; o++) if (a[o].toUpperCase().charCodeAt(0) == i.keyCode) { let l = Dg(this.view.state.field(io).diagnostics, s); @@ -15795,7 +15795,7 @@ class ZS { type: "button", name: "close", "aria-label": this.view.state.phrase("close"), - onclick: () => UF(this.view) + onclick: () => FF(this.view) }, "\xD7")), this.update(); } get selectedIndex() { @@ -15816,10 +15816,10 @@ class ZS { u = f; break; } - u < 0 ? (h = new qF(this.view, l.diagnostic), this.items.splice(n, 0, h), i = !0) : (h = this.items[u], u > n && (this.items.splice(n, u - n), i = !0)), r && h.diagnostic == r.diagnostic ? h.dom.hasAttribute("aria-selected") || (h.dom.setAttribute("aria-selected", "true"), s = h) : h.dom.hasAttribute("aria-selected") && h.dom.removeAttribute("aria-selected"), n++; + u < 0 ? (h = new zF(this.view, l.diagnostic), this.items.splice(n, 0, h), i = !0) : (h = this.items[u], u > n && (this.items.splice(n, u - n), i = !0)), r && h.diagnostic == r.diagnostic ? h.dom.hasAttribute("aria-selected") || (h.dom.setAttribute("aria-selected", "true"), s = h) : h.dom.hasAttribute("aria-selected") && h.dom.removeAttribute("aria-selected"), n++; }); n < this.items.length && !(this.items.length == 1 && this.items[0].diagnostic.from < 0); ) i = !0, this.items.pop(); - this.items.length == 0 && (this.items.push(new qF(this.view, { + this.items.length == 0 && (this.items.push(new zF(this.view, { from: -1, to: -1, severity: "info", @@ -15856,20 +15856,20 @@ class ZS { !n || this.view.dispatch({ selection: { anchor: n.from, head: n.to }, scrollIntoView: !0, - effects: aee.of(n) + effects: nee.of(n) }); } static open(e) { - return new ZS(e); + return new XS(e); } } -function H3e(t, e = 'viewBox="0 0 40 40"') { +function W3e(t, e = 'viewBox="0 0 40 40"') { return `url('data:image/svg+xml,${encodeURIComponent(t)}')`; } function Rw(t) { - return H3e(``, 'width="6" height="3"'); + return W3e(``, 'width="6" height="3"'); } -const X3e = /* @__PURE__ */ ht.baseTheme({ +const G3e = /* @__PURE__ */ ht.baseTheme({ ".cm-diagnostic": { padding: "3px 6px 3px 8px", marginLeft: "-1px", @@ -15959,53 +15959,53 @@ const X3e = /* @__PURE__ */ ht.baseTheme({ margin: 0 } } -}), Z3e = [ +}), H3e = [ io, /* @__PURE__ */ ht.decorations.compute([io], (t) => { let { selected: e, panel: r } = t.field(io); return !e || !r || e.from == e.to ? Et.none : Et.set([ - V3e.range(e.from, e.to) + F3e.range(e.from, e.to) ]); }), - /* @__PURE__ */ qwe(U3e, { hideOn: F3e }), - X3e -], j3e = /* @__PURE__ */ (() => [ - jwe(), - eOe(), - CK(), - uM(), - HOe(), + /* @__PURE__ */ Vwe(z3e, { hideOn: $3e }), + G3e +], X3e = /* @__PURE__ */ (() => [ + Xwe(), + Kwe(), kK(), - mwe(), + oM(), + WOe(), + xK(), + pwe(), dr.allowMultipleSelections.of(!0), - NOe(), - XK(ZK, { fallback: !0 }), - i4e(), - T3e(), - P3e(), - Mwe(), - Iwe(), - EK(), - O5e(), + MOe(), + WK(GK, { fallback: !0 }), + r4e(), + k3e(), + N3e(), + Lwe(), + Dwe(), + SK(), + x5e(), Cu.of([ - ...A3e, - ...NJ, - ...V5e, - ...oJ, - ...YOe, - ...iee, - ...W3e + ...E3e, + ...RJ, + ...F5e, + ...iJ, + ...UOe, + ...tee, + ...Y3e ]) -])(), K3e = /* @__PURE__ */ (() => [ - CK(), - uM(), +])(), Z3e = /* @__PURE__ */ (() => [ kK(), - XK(ZK, { fallback: !0 }), + oM(), + xK(), + WK(GK, { fallback: !0 }), Cu.of([ - ...NJ, - ...oJ + ...RJ, + ...iJ ]) -])(), xl = () => /* @__PURE__ */ new Map(), M7 = (t) => { +])(), xl = () => /* @__PURE__ */ new Map(), L7 = (t) => { const e = xl(); return t.forEach((r, n) => { e.set(n, r); @@ -16013,26 +16013,26 @@ const X3e = /* @__PURE__ */ ht.baseTheme({ }, nh = (t, e, r) => { let n = t.get(e); return n === void 0 && t.set(e, n = r()), n; -}, J3e = (t, e) => { +}, j3e = (t, e) => { const r = []; for (const [n, i] of t) r.push(e(i, n)); return r; -}, eke = (t, e) => { +}, K3e = (t, e) => { for (const [r, n] of t) if (e(n, r)) return !0; return !1; -}, Jd = () => /* @__PURE__ */ new Set(), zE = (t) => t[t.length - 1], tke = (t, e) => { +}, Jd = () => /* @__PURE__ */ new Set(), BE = (t) => t[t.length - 1], J3e = (t, e) => { for (let r = 0; r < e.length; r++) t.push(e[r]); -}, ff = Array.from, rke = (t, e) => { +}, ff = Array.from, eke = (t, e) => { for (let r = 0; r < t.length; r++) if (e(t[r], r, t)) return !0; return !1; -}, D7 = Array.isArray; -class jS { +}, R7 = Array.isArray; +class ZS { constructor() { this._observers = xl(); } @@ -16056,12 +16056,12 @@ class jS { this._observers = xl(); } } -const zu = Math.floor, g4 = Math.abs, KS = (t, e) => t < e ? t : e, zf = (t, e) => t > e ? t : e, nke = Math.pow, uee = (t) => t !== 0 ? t < 0 : 1 / t < 0, YF = 1, QF = 2, VE = 4, UE = 8, zy = 32, _u = 64, ao = 128, JS = 31, N7 = 63, Ud = 127, ike = 2147483647, hee = Number.MAX_SAFE_INTEGER, ske = Number.isInteger || ((t) => typeof t == "number" && isFinite(t) && zu(t) === t), ake = String.fromCharCode, oke = (t) => t.toLowerCase(), lke = /^\s*/g, cke = (t) => t.replace(lke, ""), uke = /([A-Z])/g, WF = (t, e) => cke(t.replace(uke, (r) => `${e}${oke(r)}`)), hke = (t) => { +const zu = Math.floor, p4 = Math.abs, jS = (t, e) => t < e ? t : e, zf = (t, e) => t > e ? t : e, tke = Math.pow, oee = (t) => t !== 0 ? t < 0 : 1 / t < 0, VF = 1, UF = 2, FE = 4, zE = 8, zy = 32, _u = 64, ao = 128, KS = 31, M7 = 63, Ud = 127, rke = 2147483647, lee = Number.MAX_SAFE_INTEGER, nke = Number.isInteger || ((t) => typeof t == "number" && isFinite(t) && zu(t) === t), ike = String.fromCharCode, ske = (t) => t.toLowerCase(), ake = /^\s*/g, oke = (t) => t.replace(ake, ""), lke = /([A-Z])/g, qF = (t, e) => oke(t.replace(lke, (r) => `${e}${ske(r)}`)), cke = (t) => { const e = unescape(encodeURIComponent(t)), r = e.length, n = new Uint8Array(r); for (let i = 0; i < r; i++) n[i] = e.codePointAt(i); return n; -}, Vy = typeof TextEncoder < "u" ? new TextEncoder() : null, fke = (t) => Vy.encode(t), dke = Vy ? fke : hke; +}, Vy = typeof TextEncoder < "u" ? new TextEncoder() : null, uke = (t) => Vy.encode(t), hke = Vy ? uke : cke; let Xv = typeof TextDecoder > "u" ? null : new TextDecoder("utf-8", { fatal: !0, ignoreBOM: !0 }); Xv && Xv.decode(new Uint8Array()).length === 1 && (Xv = null); class Jb { @@ -16069,70 +16069,70 @@ class Jb { this.cpos = 0, this.cbuf = new Uint8Array(100), this.bufs = []; } } -const _s = () => new Jb(), kM = (t) => { +const _s = () => new Jb(), xM = (t) => { let e = t.cpos; for (let r = 0; r < t.bufs.length; r++) e += t.bufs[r].length; return e; }, Ln = (t) => { - const e = new Uint8Array(kM(t)); + const e = new Uint8Array(xM(t)); let r = 0; for (let n = 0; n < t.bufs.length; n++) { const i = t.bufs[n]; e.set(i, r), r += i.length; } return e.set(new Uint8Array(t.cbuf.buffer, 0, t.cpos), r), e; -}, pke = (t, e) => { +}, fke = (t, e) => { const r = t.cbuf.length; r - t.cpos < e && (t.bufs.push(new Uint8Array(t.cbuf.buffer, 0, t.cpos)), t.cbuf = new Uint8Array(zf(r, e) * 2), t.cpos = 0); }, Vi = (t, e) => { const r = t.cbuf.length; t.cpos === r && (t.bufs.push(t.cbuf), t.cbuf = new Uint8Array(r * 2), t.cpos = 0), t.cbuf[t.cpos++] = e; -}, I7 = Vi, Wt = (t, e) => { +}, D7 = Vi, Wt = (t, e) => { for (; e > Ud; ) Vi(t, ao | Ud & e), e = zu(e / 128); Vi(t, Ud & e); -}, SM = (t, e) => { - const r = uee(e); - for (r && (e = -e), Vi(t, (e > N7 ? ao : 0) | (r ? _u : 0) | N7 & e), e = zu(e / 64); e > 0; ) +}, wM = (t, e) => { + const r = oee(e); + for (r && (e = -e), Vi(t, (e > M7 ? ao : 0) | (r ? _u : 0) | M7 & e), e = zu(e / 64); e > 0; ) Vi(t, (e > Ud ? ao : 0) | Ud & e), e = zu(e / 128); -}, P7 = new Uint8Array(3e4), gke = P7.length / 3, mke = (t, e) => { - if (e.length < gke) { - const r = Vy.encodeInto(e, P7).written || 0; +}, N7 = new Uint8Array(3e4), dke = N7.length / 3, pke = (t, e) => { + if (e.length < dke) { + const r = Vy.encodeInto(e, N7).written || 0; Wt(t, r); for (let n = 0; n < r; n++) - Vi(t, P7[n]); + Vi(t, N7[n]); } else - Zn(t, dke(e)); -}, vke = (t, e) => { + Zn(t, hke(e)); +}, gke = (t, e) => { const r = unescape(encodeURIComponent(e)), n = r.length; Wt(t, n); for (let i = 0; i < n; i++) Vi(t, r.codePointAt(i)); -}, qd = Vy && Vy.encodeInto ? mke : vke, eT = (t, e) => { - const r = t.cbuf.length, n = t.cpos, i = KS(r - n, e.length), s = e.length - i; +}, qd = Vy && Vy.encodeInto ? pke : gke, JS = (t, e) => { + const r = t.cbuf.length, n = t.cpos, i = jS(r - n, e.length), s = e.length - i; t.cbuf.set(e.subarray(0, i), n), t.cpos += i, s > 0 && (t.bufs.push(t.cbuf), t.cbuf = new Uint8Array(zf(r * 2, s)), t.cbuf.set(e.subarray(i)), t.cpos = s); }, Zn = (t, e) => { - Wt(t, e.byteLength), eT(t, e); -}, TM = (t, e) => { - pke(t, e); + Wt(t, e.byteLength), JS(t, e); +}, OM = (t, e) => { + fke(t, e); const r = new DataView(t.cbuf.buffer, t.cpos, e); return t.cpos += e, r; -}, yke = (t, e) => TM(t, 4).setFloat32(0, e, !1), bke = (t, e) => TM(t, 8).setFloat64(0, e, !1), xke = (t, e) => TM(t, 8).setBigInt64(0, e, !1), GF = new DataView(new ArrayBuffer(4)), wke = (t) => (GF.setFloat32(0, t), GF.getFloat32(0) === t), Uy = (t, e) => { +}, mke = (t, e) => OM(t, 4).setFloat32(0, e, !1), vke = (t, e) => OM(t, 8).setFloat64(0, e, !1), yke = (t, e) => OM(t, 8).setBigInt64(0, e, !1), YF = new DataView(new ArrayBuffer(4)), bke = (t) => (YF.setFloat32(0, t), YF.getFloat32(0) === t), Uy = (t, e) => { switch (typeof e) { case "string": Vi(t, 119), qd(t, e); break; case "number": - ske(e) && g4(e) <= ike ? (Vi(t, 125), SM(t, e)) : wke(e) ? (Vi(t, 124), yke(t, e)) : (Vi(t, 123), bke(t, e)); + nke(e) && p4(e) <= rke ? (Vi(t, 125), wM(t, e)) : bke(e) ? (Vi(t, 124), mke(t, e)) : (Vi(t, 123), vke(t, e)); break; case "bigint": - Vi(t, 122), xke(t, e); + Vi(t, 122), yke(t, e); break; case "object": if (e === null) Vi(t, 126); - else if (D7(e)) { + else if (R7(e)) { Vi(t, 117), Wt(t, e.length); for (let r = 0; r < e.length; r++) Uy(t, e[r]); @@ -16155,7 +16155,7 @@ const _s = () => new Jb(), kM = (t) => { Vi(t, 127); } }; -class HF extends Jb { +class QF extends Jb { constructor(e) { super(), this.w = e, this.s = null, this.count = 0; } @@ -16163,75 +16163,75 @@ class HF extends Jb { this.s === e ? this.count++ : (this.count > 0 && Wt(this, this.count - 1), this.count = 1, this.w(this, e), this.s = e); } } -const XF = (t) => { - t.count > 0 && (SM(t.encoder, t.count === 1 ? t.s : -t.s), t.count > 1 && Wt(t.encoder, t.count - 2)); +const WF = (t) => { + t.count > 0 && (wM(t.encoder, t.count === 1 ? t.s : -t.s), t.count > 1 && Wt(t.encoder, t.count - 2)); }; -class m4 { +class g4 { constructor() { this.encoder = new Jb(), this.s = 0, this.count = 0; } write(e) { - this.s === e ? this.count++ : (XF(this), this.count = 1, this.s = e); + this.s === e ? this.count++ : (WF(this), this.count = 1, this.s = e); } toUint8Array() { - return XF(this), Ln(this.encoder); + return WF(this), Ln(this.encoder); } } -const ZF = (t) => { +const GF = (t) => { if (t.count > 0) { const e = t.diff * 2 + (t.count === 1 ? 0 : 1); - SM(t.encoder, e), t.count > 1 && Wt(t.encoder, t.count - 2); + wM(t.encoder, e), t.count > 1 && Wt(t.encoder, t.count - 2); } }; -class qE { +class VE { constructor() { this.encoder = new Jb(), this.s = 0, this.count = 0, this.diff = 0; } write(e) { - this.diff === e - this.s ? (this.s = e, this.count++) : (ZF(this), this.count = 1, this.diff = e - this.s, this.s = e); + this.diff === e - this.s ? (this.s = e, this.count++) : (GF(this), this.count = 1, this.diff = e - this.s, this.s = e); } toUint8Array() { - return ZF(this), Ln(this.encoder); + return GF(this), Ln(this.encoder); } } -class Oke { +class xke { constructor() { - this.sarr = [], this.s = "", this.lensE = new m4(); + this.sarr = [], this.s = "", this.lensE = new g4(); } write(e) { this.s += e, this.s.length > 19 && (this.sarr.push(this.s), this.s = ""), this.lensE.write(e.length); } toUint8Array() { const e = new Jb(); - return this.sarr.push(this.s), this.s = "", qd(e, this.sarr.join("")), eT(e, this.lensE.toUint8Array()), Ln(e); + return this.sarr.push(this.s), this.s = "", qd(e, this.sarr.join("")), JS(e, this.lensE.toUint8Array()), Ln(e); } } const df = (t) => new Error(t), Ac = () => { throw df("Method unimplemented"); }, Il = () => { throw df("Unexpected case"); -}, fee = df("Unexpected end of array"), dee = df("Integer out of Range"); -class tT { +}, cee = df("Unexpected end of array"), uee = df("Integer out of Range"); +class eT { constructor(e) { this.arr = e, this.pos = 0; } } -const Vf = (t) => new tT(t), kke = (t) => t.pos !== t.arr.length, Ske = (t, e) => { +const Vf = (t) => new eT(t), wke = (t) => t.pos !== t.arr.length, Oke = (t, e) => { const r = new Uint8Array(t.arr.buffer, t.pos + t.arr.byteOffset, e); return t.pos += e, r; -}, Es = (t) => Ske(t, lr(t)), Ng = (t) => t.arr[t.pos++], lr = (t) => { +}, Es = (t) => Oke(t, lr(t)), Ng = (t) => t.arr[t.pos++], lr = (t) => { let e = 0, r = 1; const n = t.arr.length; for (; t.pos < n; ) { const i = t.arr[t.pos++]; if (e = e + (i & Ud) * r, r *= 128, i < ao) return e; - if (e > hee) - throw dee; + if (e > lee) + throw uee; } - throw fee; -}, CM = (t) => { - let e = t.arr[t.pos++], r = e & N7, n = 64; + throw cee; +}, kM = (t) => { + let e = t.arr[t.pos++], r = e & M7, n = 64; const i = (e & _u) > 0 ? -1 : 1; if ((e & ao) === 0) return i * r; @@ -16239,11 +16239,11 @@ const Vf = (t) => new tT(t), kke = (t) => t.pos !== t.arr.length, Ske = (t, e) = for (; t.pos < s; ) { if (e = t.arr[t.pos++], r = r + (e & Ud) * n, n *= 128, e < ao) return i * r; - if (r > hee) - throw dee; + if (r > lee) + throw uee; } - throw fee; -}, Tke = (t) => { + throw cee; +}, kke = (t) => { let e = lr(t); if (e === 0) return ""; @@ -16259,17 +16259,17 @@ const Vf = (t) => new tT(t), kke = (t) => t.pos !== t.arr.length, Ske = (t, e) = } return decodeURIComponent(escape(r)); } -}, Cke = (t) => Xv.decode(Es(t)), Zh = Xv ? Cke : Tke, EM = (t, e) => { +}, Ske = (t) => Xv.decode(Es(t)), Zh = Xv ? Ske : kke, SM = (t, e) => { const r = new DataView(t.arr.buffer, t.arr.byteOffset + t.pos, e); return t.pos += e, r; -}, Eke = (t) => EM(t, 4).getFloat32(0, !1), _ke = (t) => EM(t, 8).getFloat64(0, !1), Ake = (t) => EM(t, 8).getBigInt64(0, !1), Lke = [ +}, Tke = (t) => SM(t, 4).getFloat32(0, !1), Cke = (t) => SM(t, 8).getFloat64(0, !1), Eke = (t) => SM(t, 8).getBigInt64(0, !1), _ke = [ (t) => { }, (t) => null, - CM, + kM, + Tke, + Cke, Eke, - _ke, - Ake, (t) => !1, (t) => !0, Zh, @@ -16288,56 +16288,56 @@ const Vf = (t) => new tT(t), kke = (t) => t.pos !== t.arr.length, Ske = (t, e) = return r; }, Es -], qy = (t) => Lke[127 - Ng(t)](t); -class jF extends tT { +], qy = (t) => _ke[127 - Ng(t)](t); +class HF extends eT { constructor(e, r) { super(e), this.reader = r, this.s = null, this.count = 0; } read() { - return this.count === 0 && (this.s = this.reader(this), kke(this) ? this.count = lr(this) + 1 : this.count = -1), this.count--, this.s; + return this.count === 0 && (this.s = this.reader(this), wke(this) ? this.count = lr(this) + 1 : this.count = -1), this.count--, this.s; } } -class v4 extends tT { +class m4 extends eT { constructor(e) { super(e), this.s = 0, this.count = 0; } read() { if (this.count === 0) { - this.s = CM(this); - const e = uee(this.s); + this.s = kM(this); + const e = oee(this.s); this.count = 1, e && (this.s = -this.s, this.count = lr(this) + 2); } return this.count--, this.s; } } -class YE extends tT { +class UE extends eT { constructor(e) { super(e), this.s = 0, this.count = 0, this.diff = 0; } read() { if (this.count === 0) { - const e = CM(this), r = e & 1; + const e = kM(this), r = e & 1; this.diff = zu(e / 2), this.count = 1, r && (this.count = lr(this) + 2); } return this.s += this.diff, this.count--, this.s; } } -class Rke { +class Ake { constructor(e) { - this.decoder = new v4(e), this.str = Zh(this.decoder), this.spos = 0; + this.decoder = new m4(e), this.str = Zh(this.decoder), this.spos = 0; } read() { const e = this.spos + this.decoder.read(), r = this.str.slice(this.spos, e); return this.spos = e, r; } } -const Mke = crypto.getRandomValues.bind(crypto), pee = () => Mke(new Uint32Array(1))[0], Dke = [1e7] + -1e3 + -4e3 + -8e3 + -1e11, Nke = () => Dke.replace( +const Lke = crypto.getRandomValues.bind(crypto), hee = () => Lke(new Uint32Array(1))[0], Rke = [1e7] + -1e3 + -4e3 + -8e3 + -1e11, Mke = () => Rke.replace( /[018]/g, - (t) => (t ^ pee() & 15 >> t / 4).toString(16) -), pf = Date.now, KF = (t) => new Promise(t); + (t) => (t ^ hee() & 15 >> t / 4).toString(16) +), pf = Date.now, XF = (t) => new Promise(t); Promise.all.bind(Promise); -const JF = (t) => t === void 0 ? null : t; -class Ike { +const ZF = (t) => t === void 0 ? null : t; +class Dke { constructor() { this.map = /* @__PURE__ */ new Map(); } @@ -16348,38 +16348,38 @@ class Ike { return this.map.get(e); } } -let gee = new Ike(), _M = !0; +let fee = new Dke(), TM = !0; try { - typeof localStorage < "u" && localStorage && (gee = localStorage, _M = !1); + typeof localStorage < "u" && localStorage && (fee = localStorage, TM = !1); } catch { } -const mee = gee, Pke = (t) => _M || addEventListener("storage", t), $ke = (t) => _M || removeEventListener("storage", t), Bke = Object.assign, Fke = Object.keys, zke = (t, e) => { +const dee = fee, Nke = (t) => TM || addEventListener("storage", t), Ike = (t) => TM || removeEventListener("storage", t), Pke = Object.assign, $ke = Object.keys, Bke = (t, e) => { for (const r in t) e(t[r], r); -}, Vke = (t, e) => { +}, Fke = (t, e) => { const r = []; for (const n in t) r.push(e(t[n], n)); return r; -}, V5 = (t) => Fke(t).length, Uke = (t) => { +}, z5 = (t) => $ke(t).length, zke = (t) => { for (const e in t) return !1; return !0; -}, qke = (t, e) => { +}, Vke = (t, e) => { for (const r in t) if (!e(t[r], r)) return !1; return !0; -}, vee = (t, e) => Object.prototype.hasOwnProperty.call(t, e), Yke = (t, e) => t === e || V5(t) === V5(e) && qke(t, (r, n) => (r !== void 0 || vee(e, n)) && e[n] === r), AM = (t, e, r = 0) => { +}, pee = (t, e) => Object.prototype.hasOwnProperty.call(t, e), Uke = (t, e) => t === e || z5(t) === z5(e) && Vke(t, (r, n) => (r !== void 0 || pee(e, n)) && e[n] === r), CM = (t, e, r = 0) => { try { for (; r < t.length; r++) t[r](...e); } finally { - r < t.length && AM(t, e, r + 1); + r < t.length && CM(t, e, r + 1); } -}, Qke = (t) => t, Wke = (t, e) => t === e, Zv = (t, e) => { +}, qke = (t) => t, Yke = (t, e) => t === e, Zv = (t, e) => { if (t == null || e == null) - return Wke(t, e); + return Yke(t, e); if (t.constructor !== e.constructor) return !1; if (t === e) @@ -16412,10 +16412,10 @@ const mee = gee, Pke = (t) => _M || addEventListener("storage", t), $ke = (t) => break; } case Object: - if (V5(t) !== V5(e)) + if (z5(t) !== z5(e)) return !1; for (const r in t) - if (!vee(t, r) || !Zv(t[r], e[r])) + if (!pee(t, r) || !Zv(t[r], e[r])) return !1; break; case Array: @@ -16429,10 +16429,10 @@ const mee = gee, Pke = (t) => _M || addEventListener("storage", t), $ke = (t) => return !1; } return !0; -}, Gke = (t, e) => e.includes(t), Ig = typeof process < "u" && process.release && /node|io\.js/.test(process.release.name) && Object.prototype.toString.call(typeof process < "u" ? process : 0) === "[object process]", yee = typeof window < "u" && typeof document < "u" && !Ig; +}, Qke = (t, e) => e.includes(t), Ig = typeof process < "u" && process.release && /node|io\.js/.test(process.release.name) && Object.prototype.toString.call(typeof process < "u" ? process : 0) === "[object process]", gee = typeof window < "u" && typeof document < "u" && !Ig; typeof navigator < "u" && /Mac/.test(navigator.platform); let ec; -const Hke = () => { +const Wke = () => { if (ec === void 0) if (Ig) { ec = xl(); @@ -16447,44 +16447,44 @@ const Hke = () => { typeof location == "object" ? (ec = xl(), (location.search || "?").slice(1).split("&").forEach((t) => { if (t.length !== 0) { const [e, r] = t.split("="); - ec.set(`--${WF(e, "-")}`, r), ec.set(`-${WF(e, "-")}`, r); + ec.set(`--${qF(e, "-")}`, r), ec.set(`-${qF(e, "-")}`, r); } })) : ec = xl(); return ec; -}, $7 = (t) => Hke().has(t), B7 = (t) => JF(Ig ? {}[t.toUpperCase()] : mee.getItem(t)), Xke = (t) => $7("--" + t) || B7(t) !== null; -Xke("production"); -const ez = Ig && Gke({}.FORCE_COLOR, ["true", "1", "2"]), Zke = !$7("no-colors") && (!Ig || process.stdout.isTTY || ez) && (!Ig || $7("color") || ez || B7("COLORTERM") !== null || (B7("TERM") || "").includes("color")), bee = (t) => new Uint8Array(t), jke = (t, e, r) => new Uint8Array(t, e, r), Kke = (t) => new Uint8Array(t), Jke = (t) => { +}, I7 = (t) => Wke().has(t), P7 = (t) => ZF(Ig ? {}[t.toUpperCase()] : dee.getItem(t)), Gke = (t) => I7("--" + t) || P7(t) !== null; +Gke("production"); +const jF = Ig && Qke({}.FORCE_COLOR, ["true", "1", "2"]), Hke = !I7("no-colors") && (!Ig || process.stdout.isTTY || jF) && (!Ig || I7("color") || jF || P7("COLORTERM") !== null || (P7("TERM") || "").includes("color")), mee = (t) => new Uint8Array(t), Xke = (t, e, r) => new Uint8Array(t, e, r), Zke = (t) => new Uint8Array(t), jke = (t) => { let e = ""; for (let r = 0; r < t.byteLength; r++) - e += ake(t[r]); + e += ike(t[r]); return btoa(e); -}, eSe = (t) => Buffer.from(t.buffer, t.byteOffset, t.byteLength).toString("base64"), tSe = (t) => { - const e = atob(t), r = bee(e.length); +}, Kke = (t) => Buffer.from(t.buffer, t.byteOffset, t.byteLength).toString("base64"), Jke = (t) => { + const e = atob(t), r = mee(e.length); for (let n = 0; n < e.length; n++) r[n] = e.charCodeAt(n); return r; -}, rSe = (t) => { +}, eSe = (t) => { const e = Buffer.from(t, "base64"); - return jke(e.buffer, e.byteOffset, e.byteLength); -}, nSe = yee ? Jke : eSe, iSe = yee ? tSe : rSe, sSe = (t) => { - const e = bee(t.byteLength); + return Xke(e.buffer, e.byteOffset, e.byteLength); +}, tSe = gee ? jke : Kke, rSe = gee ? Jke : eSe, nSe = (t) => { + const e = mee(t.byteLength); return e.set(t), e; }; -class aSe { +class iSe { constructor(e, r) { this.left = e, this.right = r; } } -const Za = (t, e) => new aSe(t, e), oSe = (t, e) => t.forEach((r) => e(r.left, r.right)), Wc = typeof document < "u" ? document : {}, lSe = (t) => Wc.createElement(t), cSe = () => Wc.createDocumentFragment(), uSe = (t) => Wc.createTextNode(t); +const Za = (t, e) => new iSe(t, e), sSe = (t, e) => t.forEach((r) => e(r.left, r.right)), Wc = typeof document < "u" ? document : {}, aSe = (t) => Wc.createElement(t), oSe = () => Wc.createDocumentFragment(), lSe = (t) => Wc.createTextNode(t); typeof DOMParser < "u" && new DOMParser(); -const hSe = (t, e) => (oSe(e, (r, n) => { +const cSe = (t, e) => (sSe(e, (r, n) => { n === !1 ? t.removeAttribute(r) : n === !0 ? t.setAttribute(r, "") : t.setAttribute(r, n); -}), t), fSe = (t) => { - const e = cSe(); +}), t), uSe = (t) => { + const e = oSe(); for (let r = 0; r < t.length; r++) - xee(e, t[r]); + vee(e, t[r]); return e; -}, dSe = (t, e) => (xee(t, fSe(e)), t), QE = (t, e = [], r = []) => dSe(hSe(lSe(t), e), r), Mw = uSe, pSe = (t) => J3e(t, (e, r) => `${r}:${e};`).join(""), xee = (t, e) => t.appendChild(e); +}, hSe = (t, e) => (vee(t, uSe(e)), t), qE = (t, e = [], r = []) => hSe(cSe(aSe(t), e), r), Mw = lSe, fSe = (t) => j3e(t, (e, r) => `${r}:${e};`).join(""), vee = (t, e) => t.appendChild(e); Wc.ELEMENT_NODE; Wc.TEXT_NODE; Wc.CDATA_SECTION_NODE; @@ -16492,7 +16492,7 @@ Wc.COMMENT_NODE; Wc.DOCUMENT_NODE; Wc.DOCUMENT_TYPE_NODE; Wc.DOCUMENT_FRAGMENT_NODE; -const ih = Symbol, wee = ih(), Oee = ih(), gSe = ih(), mSe = ih(), vSe = ih(), kee = ih(), ySe = ih(), LM = ih(), bSe = ih(), xSe = (t) => { +const ih = Symbol, yee = ih(), bee = ih(), dSe = ih(), pSe = ih(), gSe = ih(), xee = ih(), mSe = ih(), EM = ih(), vSe = ih(), ySe = (t) => { const e = []; let r = 0; for (; r < t.length; r++) { @@ -16500,25 +16500,25 @@ const ih = Symbol, wee = ih(), Oee = ih(), gSe = ih(), mSe = ih(), vSe = ih(), k n.constructor === String || n.constructor === Number || n.constructor === Object && e.push(JSON.stringify(n)); } return e; -}, wSe = { - [wee]: Za("font-weight", "bold"), - [Oee]: Za("font-weight", "normal"), - [gSe]: Za("color", "blue"), - [vSe]: Za("color", "green"), - [mSe]: Za("color", "grey"), - [kee]: Za("color", "red"), - [ySe]: Za("color", "purple"), - [LM]: Za("color", "orange"), - [bSe]: Za("color", "black") -}, OSe = (t) => { +}, bSe = { + [yee]: Za("font-weight", "bold"), + [bee]: Za("font-weight", "normal"), + [dSe]: Za("color", "blue"), + [gSe]: Za("color", "green"), + [pSe]: Za("color", "grey"), + [xee]: Za("color", "red"), + [mSe]: Za("color", "purple"), + [EM]: Za("color", "orange"), + [vSe]: Za("color", "black") +}, xSe = (t) => { const e = [], r = [], n = xl(); let i = [], s = 0; for (; s < t.length; s++) { - const a = t[s], o = wSe[a]; + const a = t[s], o = bSe[a]; if (o !== void 0) n.set(o.left, o.right); else if (a.constructor === String || a.constructor === Number) { - const l = pSe(n); + const l = fSe(n); s > 0 || l.length > 0 ? (e.push("%c" + a), r.push(l)) : e.push(a); } else break; @@ -16528,26 +16528,26 @@ const ih = Symbol, wee = ih(), Oee = ih(), gSe = ih(), mSe = ih(), vSe = ih(), k a instanceof Symbol || i.push(a); } return i; -}, See = Zke ? OSe : xSe, kSe = (...t) => { - console.log(...See(t)), Tee.forEach((e) => e.print(t)); -}, SSe = (...t) => { - console.warn(...See(t)), t.unshift(LM), Tee.forEach((e) => e.print(t)); -}, Tee = Jd(), Cee = (t) => ({ +}, wee = Hke ? xSe : ySe, wSe = (...t) => { + console.log(...wee(t)), Oee.forEach((e) => e.print(t)); +}, OSe = (...t) => { + console.warn(...wee(t)), t.unshift(EM), Oee.forEach((e) => e.print(t)); +}, Oee = Jd(), kee = (t) => ({ [Symbol.iterator]() { return this; }, next: t -}), TSe = (t, e) => Cee(() => { +}), kSe = (t, e) => kee(() => { let r; do r = t.next(); while (!r.done && !e(r.value)); return r; -}), WE = (t, e) => Cee(() => { +}), YE = (t, e) => kee(() => { const { done: r, value: n } = t.next(); return { done: r, value: r ? void 0 : e(n) }; }); -class RM { +class _M { constructor(e, r) { this.clock = e, this.len = r; } @@ -16561,9 +16561,9 @@ const Pg = (t, e, r) => e.clients.forEach((n, i) => { const s = t.doc.store.clients.get(i); for (let a = 0; a < n.length; a++) { const o = n[a]; - Vee(t, s, o.clock, o.len, r); + Bee(t, s, o.clock, o.len, r); } -}), CSe = (t, e) => { +}), SSe = (t, e) => { let r = 0, n = t.length - 1; for (; r <= n; ) { const i = zu((r + n) / 2), s = t[i], a = s.clock; @@ -16577,8 +16577,8 @@ const Pg = (t, e, r) => e.clients.forEach((n, i) => { return null; }, ex = (t, e) => { const r = t.clients.get(e.client); - return r !== void 0 && CSe(r, e.clock) !== null; -}, MM = (t) => { + return r !== void 0 && SSe(r, e.clock) !== null; +}, AM = (t) => { t.clients.forEach((e) => { e.sort((i, s) => i.clock - s.clock); let r, n; @@ -16588,22 +16588,22 @@ const Pg = (t, e, r) => e.clients.forEach((n, i) => { } e.length = n; }); -}, F7 = (t) => { +}, $7 = (t) => { const e = new V1(); for (let r = 0; r < t.length; r++) t[r].clients.forEach((n, i) => { if (!e.clients.has(i)) { const s = n.slice(); for (let a = r + 1; a < t.length; a++) - tke(s, t[a].clients.get(i) || []); + J3e(s, t[a].clients.get(i) || []); e.clients.set(i, s); } }); - return MM(e), e; + return AM(e), e; }, Yy = (t, e, r, n) => { - nh(t.clients, e, () => []).push(new RM(r, n)); -}, Eee = () => new V1(), ESe = (t) => { - const e = Eee(); + nh(t.clients, e, () => []).push(new _M(r, n)); +}, See = () => new V1(), TSe = (t) => { + const e = See(); return t.clients.forEach((r, n) => { const i = []; for (let s = 0; s < r.length; s++) { @@ -16614,7 +16614,7 @@ const Pg = (t, e, r) => e.clients.forEach((n, i) => { if (s + 1 < r.length) for (let u = r[s + 1]; s + 1 < r.length && u.deleted; u = r[++s + 1]) l += u.length; - i.push(new RM(o, l)); + i.push(new _M(o, l)); } } i.length > 0 && e.clients.set(n, i); @@ -16629,7 +16629,7 @@ const Pg = (t, e, r) => e.clients.forEach((n, i) => { t.writeDsClock(a.clock), t.writeDsLen(a.len); } }); -}, DM = (t) => { +}, LM = (t) => { const e = new V1(), r = lr(t.restDecoder); for (let n = 0; n < r; n++) { t.resetDsCurVal(); @@ -16637,11 +16637,11 @@ const Pg = (t, e, r) => e.clients.forEach((n, i) => { if (s > 0) { const a = nh(e.clients, i, () => []); for (let o = 0; o < s; o++) - a.push(new RM(t.readDsClock(), t.readDsLen())); + a.push(new _M(t.readDsClock(), t.readDsLen())); } } return e; -}, tz = (t, e, r) => { +}, KF = (t, e, r) => { const n = new V1(), i = lr(t.restDecoder); for (let s = 0; s < i; s++) { t.resetDsCurVal(); @@ -16651,8 +16651,8 @@ const Pg = (t, e, r) => e.clients.forEach((n, i) => { if (f < u) { u < d && Yy(n, a, u, d - u); let p = Ic(l, f), g = l[p]; - for (!g.deleted && g.id.clock < f && (l.splice(p + 1, 0, X5(e, g, f - g.id.clock)), p++); p < l.length && (g = l[p++], g.id.clock < d); ) - g.deleted || (d < g.id.clock + g.length && l.splice(p, 0, X5(e, g, d - g.id.clock)), g.delete(e)); + for (!g.deleted && g.id.clock < f && (l.splice(p + 1, 0, H5(e, g, f - g.id.clock)), p++); p < l.length && (g = l[p++], g.id.clock < d); ) + g.deleted || (d < g.id.clock + g.length && l.splice(p, 0, H5(e, g, d - g.id.clock)), g.delete(e)); } else Yy(n, a, f, d - f); } @@ -16662,15 +16662,15 @@ const Pg = (t, e, r) => e.clients.forEach((n, i) => { return Wt(s.restEncoder, 0), U1(s, n), s.toUint8Array(); } return null; -}, _ee = pee; -class q1 extends jS { - constructor({ guid: e = Nke(), collectionid: r = null, gc: n = !0, gcFilter: i = () => !0, meta: s = null, autoLoad: a = !1, shouldLoad: o = !0 } = {}) { - super(), this.gc = n, this.gcFilter = i, this.clientID = _ee(), this.guid = e, this.collectionid = r, this.share = /* @__PURE__ */ new Map(), this.store = new Fee(), this._transaction = null, this._transactionCleanups = [], this.subdocs = /* @__PURE__ */ new Set(), this._item = null, this.shouldLoad = o, this.autoLoad = a, this.meta = s, this.isLoaded = !1, this.isSynced = !1, this.whenLoaded = KF((u) => { +}, Tee = hee; +class q1 extends ZS { + constructor({ guid: e = Mke(), collectionid: r = null, gc: n = !0, gcFilter: i = () => !0, meta: s = null, autoLoad: a = !1, shouldLoad: o = !0 } = {}) { + super(), this.gc = n, this.gcFilter = i, this.clientID = Tee(), this.guid = e, this.collectionid = r, this.share = /* @__PURE__ */ new Map(), this.store = new Pee(), this._transaction = null, this._transactionCleanups = [], this.subdocs = /* @__PURE__ */ new Set(), this._item = null, this.shouldLoad = o, this.autoLoad = a, this.meta = s, this.isLoaded = !1, this.isSynced = !1, this.whenLoaded = XF((u) => { this.on("load", () => { this.isLoaded = !0, u(this); }); }); - const l = () => KF((u) => { + const l = () => XF((u) => { const h = (f) => { (f === void 0 || f === !0) && (this.off("sync", h), u()); }; @@ -16752,7 +16752,7 @@ class q1 extends jS { super.off(e, r); } } -class Aee { +class Cee { constructor(e) { this.restDecoder = e; } @@ -16765,7 +16765,7 @@ class Aee { return lr(this.restDecoder); } } -class Lee extends Aee { +class Eee extends Cee { readLeftID() { return pr(lr(this.restDecoder), lr(this.restDecoder)); } @@ -16794,7 +16794,7 @@ class Lee extends Aee { return qy(this.restDecoder); } readBuf() { - return sSe(Es(this.restDecoder)); + return nSe(Es(this.restDecoder)); } readJSON() { return JSON.parse(Zh(this.restDecoder)); @@ -16803,7 +16803,7 @@ class Lee extends Aee { return Zh(this.restDecoder); } } -class _Se { +class CSe { constructor(e) { this.dsCurrVal = 0, this.restDecoder = e; } @@ -16818,9 +16818,9 @@ class _Se { return this.dsCurrVal += e, e; } } -class $g extends _Se { +class $g extends CSe { constructor(e) { - super(e), this.keys = [], lr(e), this.keyClockDecoder = new YE(Es(e)), this.clientDecoder = new v4(Es(e)), this.leftClockDecoder = new YE(Es(e)), this.rightClockDecoder = new YE(Es(e)), this.infoDecoder = new jF(Es(e), Ng), this.stringDecoder = new Rke(Es(e)), this.parentInfoDecoder = new jF(Es(e), Ng), this.typeRefDecoder = new v4(Es(e)), this.lenDecoder = new v4(Es(e)); + super(e), this.keys = [], lr(e), this.keyClockDecoder = new UE(Es(e)), this.clientDecoder = new m4(Es(e)), this.leftClockDecoder = new UE(Es(e)), this.rightClockDecoder = new UE(Es(e)), this.infoDecoder = new HF(Es(e), Ng), this.stringDecoder = new Ake(Es(e)), this.parentInfoDecoder = new HF(Es(e), Ng), this.typeRefDecoder = new m4(Es(e)), this.lenDecoder = new m4(Es(e)); } readLeftID() { return new Kp(this.clientDecoder.read(), this.leftClockDecoder.read()); @@ -16865,7 +16865,7 @@ class $g extends _Se { } } } -class Ree { +class _ee { constructor() { this.restEncoder = _s(); } @@ -16881,7 +16881,7 @@ class Ree { Wt(this.restEncoder, e); } } -class tx extends Ree { +class tx extends _ee { writeLeftID(e) { Wt(this.restEncoder, e.client), Wt(this.restEncoder, e.clock); } @@ -16892,7 +16892,7 @@ class tx extends Ree { Wt(this.restEncoder, e); } writeInfo(e) { - I7(this.restEncoder, e); + D7(this.restEncoder, e); } writeString(e) { qd(this.restEncoder, e); @@ -16919,7 +16919,7 @@ class tx extends Ree { qd(this.restEncoder, e); } } -class Mee { +class Aee { constructor() { this.restEncoder = _s(), this.dsCurrVal = 0; } @@ -16937,13 +16937,13 @@ class Mee { e === 0 && Il(), Wt(this.restEncoder, e - 1), this.dsCurrVal += e; } } -class e0 extends Mee { +class e0 extends Aee { constructor() { - super(), this.keyMap = /* @__PURE__ */ new Map(), this.keyClock = 0, this.keyClockEncoder = new qE(), this.clientEncoder = new m4(), this.leftClockEncoder = new qE(), this.rightClockEncoder = new qE(), this.infoEncoder = new HF(I7), this.stringEncoder = new Oke(), this.parentInfoEncoder = new HF(I7), this.typeRefEncoder = new m4(), this.lenEncoder = new m4(); + super(), this.keyMap = /* @__PURE__ */ new Map(), this.keyClock = 0, this.keyClockEncoder = new VE(), this.clientEncoder = new g4(), this.leftClockEncoder = new VE(), this.rightClockEncoder = new VE(), this.infoEncoder = new QF(D7), this.stringEncoder = new xke(), this.parentInfoEncoder = new QF(D7), this.typeRefEncoder = new g4(), this.lenEncoder = new g4(); } toUint8Array() { const e = _s(); - return Wt(e, 0), Zn(e, this.keyClockEncoder.toUint8Array()), Zn(e, this.clientEncoder.toUint8Array()), Zn(e, this.leftClockEncoder.toUint8Array()), Zn(e, this.rightClockEncoder.toUint8Array()), Zn(e, Ln(this.infoEncoder)), Zn(e, this.stringEncoder.toUint8Array()), Zn(e, Ln(this.parentInfoEncoder)), Zn(e, this.typeRefEncoder.toUint8Array()), Zn(e, this.lenEncoder.toUint8Array()), eT(e, Ln(this.restEncoder)), Ln(e); + return Wt(e, 0), Zn(e, this.keyClockEncoder.toUint8Array()), Zn(e, this.clientEncoder.toUint8Array()), Zn(e, this.leftClockEncoder.toUint8Array()), Zn(e, this.rightClockEncoder.toUint8Array()), Zn(e, Ln(this.infoEncoder)), Zn(e, this.stringEncoder.toUint8Array()), Zn(e, Ln(this.parentInfoEncoder)), Zn(e, this.typeRefEncoder.toUint8Array()), Zn(e, this.lenEncoder.toUint8Array()), JS(e, Ln(this.restEncoder)), Ln(e); } writeLeftID(e) { this.clientEncoder.write(e.client), this.leftClockEncoder.write(e.clock); @@ -16983,7 +16983,7 @@ class e0 extends Mee { r === void 0 ? (this.keyClockEncoder.write(this.keyClock++), this.stringEncoder.write(e)) : this.keyClockEncoder.write(r); } } -const ASe = (t, e, r, n) => { +const ESe = (t, e, r, n) => { n = zf(n, e[0].id.clock); const i = Ic(e, n); Wt(t.restEncoder, e.length - i), t.writeClient(r), Wt(t.restEncoder, n); @@ -16991,16 +16991,16 @@ const ASe = (t, e, r, n) => { s.write(t, n - s.id.clock); for (let a = i + 1; a < e.length; a++) e[a].write(t, 0); -}, NM = (t, e, r) => { +}, RM = (t, e, r) => { const n = /* @__PURE__ */ new Map(); r.forEach((i, s) => { ti(e, s) > i && n.set(s, i); - }), rT(e).forEach((i, s) => { + }), tT(e).forEach((i, s) => { r.has(s) || n.set(s, 0); }), Wt(t.restEncoder, n.size), ff(n.entries()).sort((i, s) => s[0] - i[0]).forEach(([i, s]) => { - ASe(t, e.clients.get(i), i, s); + ESe(t, e.clients.get(i), i, s); }); -}, LSe = (t, e) => { +}, _Se = (t, e) => { const r = xl(), n = lr(t.restDecoder); for (let i = 0; i < n; i++) { const s = lr(t.restDecoder), a = new Array(s), o = t.readClient(); @@ -17008,7 +17008,7 @@ const ASe = (t, e, r, n) => { r.set(o, { i: 0, refs: a }); for (let u = 0; u < s; u++) { const h = t.readInfo(); - switch (JS & h) { + switch (KS & h) { case 0: { const f = t.readLen(); a[u] = new Ao(pr(o, l), f), l += f; @@ -17028,7 +17028,7 @@ const ASe = (t, e, r, n) => { (h & _u) === _u ? t.readRightID() : null, f ? t.readParentInfo() ? e.get(t.readString()) : t.readLeftID() : null, f && (h & zy) === zy ? t.readString() : null, - ote(t, h) + ite(t, h) ); a[u] = d, l += d.length; } @@ -17036,7 +17036,7 @@ const ASe = (t, e, r, n) => { } } return r; -}, RSe = (t, e, r) => { +}, ASe = (t, e, r) => { const n = []; let i = ff(r.keys()).sort((p, g) => p - g); if (i.length === 0) @@ -17055,7 +17055,7 @@ const ASe = (t, e, r, n) => { let a = s(); if (a === null) return null; - const o = new Fee(), l = /* @__PURE__ */ new Map(), u = (p, g) => { + const o = new Pee(), l = /* @__PURE__ */ new Map(), u = (p, g) => { const m = l.get(p); (m == null || m > g) && l.set(p, g); }; @@ -17099,13 +17099,13 @@ const ASe = (t, e, r, n) => { } if (o.clients.size > 0) { const p = new e0(); - return NM(p, o, /* @__PURE__ */ new Map()), Wt(p.restEncoder, 0), { missing: l, update: p.toUint8Array() }; + return RM(p, o, /* @__PURE__ */ new Map()), Wt(p.restEncoder, 0), { missing: l, update: p.toUint8Array() }; } return null; -}, MSe = (t, e) => NM(t, e.doc.store, e.beforeState), DSe = (t, e, r, n = new $g(t)) => rn(e, (i) => { +}, LSe = (t, e) => RM(t, e.doc.store, e.beforeState), RSe = (t, e, r, n = new $g(t)) => rn(e, (i) => { i.local = !1; let s = !1; - const a = i.doc, o = a.store, l = LSe(n, a), u = RSe(i, o, l), h = o.pendingStructs; + const a = i.doc, o = a.store, l = _Se(n, a), u = ASe(i, o, l), h = o.pendingStructs; if (h) { for (const [d, p] of h.missing) if (p < ti(o, d)) { @@ -17117,68 +17117,68 @@ const ASe = (t, e, r, n) => { const g = h.missing.get(d); (g == null || g > p) && h.missing.set(d, p); } - h.update = q5([h.update, u.update]); + h.update = U5([h.update, u.update]); } } else o.pendingStructs = u; - const f = tz(n, i, o); + const f = KF(n, i, o); if (o.pendingDs) { const d = new $g(Vf(o.pendingDs)); lr(d.restDecoder); - const p = tz(d, i, o); - f && p ? o.pendingDs = q5([f, p]) : o.pendingDs = f || p; + const p = KF(d, i, o); + f && p ? o.pendingDs = U5([f, p]) : o.pendingDs = f || p; } else o.pendingDs = f; if (s) { const d = o.pendingStructs.update; - o.pendingStructs = null, Dee(i.doc, d); + o.pendingStructs = null, Lee(i.doc, d); } -}, r, !1), Dee = (t, e, r, n = $g) => { +}, r, !1), Lee = (t, e, r, n = $g) => { const i = Vf(e); - DSe(i, t, r, new n(i)); -}, NSe = (t, e, r) => Dee(t, e, r, Lee), ISe = (t, e, r = /* @__PURE__ */ new Map()) => { - NM(t, e.store, r), U1(t, ESe(e.store)); -}, PSe = (t, e = new Uint8Array([0]), r = new e0()) => { - const n = Nee(e); - ISe(r, t, n); + RSe(i, t, r, new n(i)); +}, MSe = (t, e, r) => Lee(t, e, r, Eee), DSe = (t, e, r = /* @__PURE__ */ new Map()) => { + RM(t, e.store, r), U1(t, TSe(e.store)); +}, NSe = (t, e = new Uint8Array([0]), r = new e0()) => { + const n = Ree(e); + DSe(r, t, n); const i = [r.toUint8Array()]; - if (t.store.pendingDs && i.push(t.store.pendingDs), t.store.pendingStructs && i.push(rTe(t.store.pendingStructs.update, e)), i.length > 1) { + if (t.store.pendingDs && i.push(t.store.pendingDs), t.store.pendingStructs && i.push(eTe(t.store.pendingStructs.update, e)), i.length > 1) { if (r.constructor === tx) - return eTe(i.map((s, a) => a === 0 ? s : iTe(s))); + return KSe(i.map((s, a) => a === 0 ? s : rTe(s))); if (r.constructor === e0) - return q5(i); + return U5(i); } return i[0]; -}, $Se = (t, e) => PSe(t, e, new tx()), BSe = (t) => { +}, ISe = (t, e) => NSe(t, e, new tx()), PSe = (t) => { const e = /* @__PURE__ */ new Map(), r = lr(t.restDecoder); for (let n = 0; n < r; n++) { const i = lr(t.restDecoder), s = lr(t.restDecoder); e.set(i, s); } return e; -}, Nee = (t) => BSe(new Aee(Vf(t))), Iee = (t, e) => (Wt(t.restEncoder, e.size), ff(e.entries()).sort((r, n) => n[0] - r[0]).forEach(([r, n]) => { +}, Ree = (t) => PSe(new Cee(Vf(t))), Mee = (t, e) => (Wt(t.restEncoder, e.size), ff(e.entries()).sort((r, n) => n[0] - r[0]).forEach(([r, n]) => { Wt(t.restEncoder, r), Wt(t.restEncoder, n); -}), t), FSe = (t, e) => Iee(t, rT(e.store)), zSe = (t, e = new Mee()) => (t instanceof Map ? Iee(e, t) : FSe(e, t), e.toUint8Array()), VSe = (t) => zSe(t, new Ree()); -class USe { +}), t), $Se = (t, e) => Mee(t, tT(e.store)), BSe = (t, e = new Aee()) => (t instanceof Map ? Mee(e, t) : $Se(e, t), e.toUint8Array()), FSe = (t) => BSe(t, new _ee()); +class zSe { constructor() { this.l = []; } } -const rz = () => new USe(), nz = (t, e) => t.l.push(e), iz = (t, e) => { +const JF = () => new zSe(), ez = (t, e) => t.l.push(e), tz = (t, e) => { const r = t.l, n = r.length; t.l = r.filter((i) => e !== i), n === t.l.length && console.error("[yjs] Tried to remove event handler that doesn't exist."); -}, Pee = (t, e, r) => AM(t.l, [e, r]); +}, Dee = (t, e, r) => CM(t.l, [e, r]); class Kp { constructor(e, r) { this.client = e, this.clock = r; } } -const Dp = (t, e) => t === e || t !== null && e !== null && t.client === e.client && t.clock === e.clock, pr = (t, e) => new Kp(t, e), $ee = (t) => { +const Dp = (t, e) => t === e || t !== null && e !== null && t.client === e.client && t.clock === e.clock, pr = (t, e) => new Kp(t, e), Nee = (t) => { for (const [e, r] of t.doc.share.entries()) if (r === t) return e; throw Il(); -}, U5 = (t, e) => { +}, V5 = (t, e) => { for (; e !== null; ) { if (e.parent === t) return !0; @@ -17186,24 +17186,24 @@ const Dp = (t, e) => t === e || t !== null && e !== null && t.client === e.clien } return !1; }; -class Bee { +class Iee { constructor(e, r, n, i = 0) { this.type = e, this.tname = r, this.item = n, this.assoc = i; } } -const sz = (t) => { +const rz = (t) => { const e = {}; return t.type && (e.type = t.type), t.tname && (e.tname = t.tname), t.item && (e.item = t.item), t.assoc != null && (e.assoc = t.assoc), e; -}, Qy = (t) => new Bee(t.type == null ? null : pr(t.type.client, t.type.clock), t.tname || null, t.item == null ? null : pr(t.item.client, t.item.clock), t.assoc == null ? 0 : t.assoc); -class qSe { +}, Qy = (t) => new Iee(t.type == null ? null : pr(t.type.client, t.type.clock), t.tname || null, t.item == null ? null : pr(t.item.client, t.item.clock), t.assoc == null ? 0 : t.assoc); +class VSe { constructor(e, r, n = 0) { this.type = e, this.index = r, this.assoc = n; } } -const YSe = (t, e, r = 0) => new qSe(t, e, r), Dw = (t, e, r) => { +const USe = (t, e, r = 0) => new VSe(t, e, r), Dw = (t, e, r) => { let n = null, i = null; - return t._item === null ? i = $ee(t) : n = pr(t._item.id.client, t._item.id.clock), new Bee(n, i, e, r); -}, z7 = (t, e, r = 0) => { + return t._item === null ? i = Nee(t) : n = pr(t._item.id.client, t._item.id.clock), new Iee(n, i, e, r); +}, B7 = (t, e, r = 0) => { let n = t._start; if (r < 0) { if (e === 0) @@ -17221,13 +17221,13 @@ const YSe = (t, e, r = 0) => new qSe(t, e, r), Dw = (t, e, r) => { n = n.right; } return Dw(t, null, r); -}, V7 = (t, e) => { +}, F7 = (t, e) => { const r = e.store, n = t.item, i = t.type, s = t.tname, a = t.assoc; let o = null, l = 0; if (n !== null) { if (ti(r, n.client) <= n.clock) return null; - const u = Q7(r, n), h = u.item; + const u = q7(r, n), h = u.item; if (!(h instanceof nn)) return null; if (o = h.parent, o._item === null || !o._item.deleted) { @@ -17242,7 +17242,7 @@ const YSe = (t, e, r = 0) => new qSe(t, e, r), Dw = (t, e, r) => { else if (i !== null) { if (ti(r, i.client) <= i.clock) return null; - const { item: u } = Q7(r, i); + const { item: u } = q7(r, i); if (u instanceof nn && u.content instanceof Gc) o = u.content.type; else @@ -17251,28 +17251,28 @@ const YSe = (t, e, r = 0) => new qSe(t, e, r), Dw = (t, e, r) => { throw Il(); a >= 0 ? l = o._length : l = 0; } - return YSe(o, l, t.assoc); -}, az = (t, e) => t === e || t !== null && e !== null && t.tname === e.tname && Dp(t.item, e.item) && Dp(t.type, e.type) && t.assoc === e.assoc; -class QSe { + return USe(o, l, t.assoc); +}, nz = (t, e) => t === e || t !== null && e !== null && t.tname === e.tname && Dp(t.item, e.item) && Dp(t.type, e.type) && t.assoc === e.assoc; +class qSe { constructor(e, r) { this.ds = e, this.sv = r; } } -const WSe = (t, e) => new QSe(t, e); -WSe(Eee(), /* @__PURE__ */ new Map()); -const Tp = (t, e) => e === void 0 ? !t.deleted : e.sv.has(t.id.client) && (e.sv.get(t.id.client) || 0) > t.id.clock && !ex(e.ds, t.id), U7 = (t, e) => { - const r = nh(t.meta, U7, Jd), n = t.doc.store; +const YSe = (t, e) => new qSe(t, e); +YSe(See(), /* @__PURE__ */ new Map()); +const Tp = (t, e) => e === void 0 ? !t.deleted : e.sv.has(t.id.client) && (e.sv.get(t.id.client) || 0) > t.id.clock && !ex(e.ds, t.id), z7 = (t, e) => { + const r = nh(t.meta, z7, Jd), n = t.doc.store; r.has(e) || (e.sv.forEach((i, s) => { i < ti(n, s) && Ca(t, pr(s, i)); }), Pg(t, e.ds, (i) => { }), r.add(e)); }; -class Fee { +class Pee { constructor() { this.clients = /* @__PURE__ */ new Map(), this.pendingStructs = null, this.pendingDs = null; } } -const rT = (t) => { +const tT = (t) => { const e = /* @__PURE__ */ new Map(); return t.clients.forEach((r, n) => { const i = r[r.length - 1]; @@ -17284,7 +17284,7 @@ const rT = (t) => { return 0; const n = r[r.length - 1]; return n.id.clock + n.length; -}, zee = (t, e) => { +}, $ee = (t, e) => { let r = t.clients.get(e.id.client); if (r === void 0) r = [], t.clients.set(e.id.client, r); @@ -17309,39 +17309,39 @@ const rT = (t) => { a = zu((r + n) / 2); } throw Il(); -}, GSe = (t, e) => { +}, QSe = (t, e) => { const r = t.clients.get(e.client); return r[Ic(r, e.clock)]; -}, y4 = GSe, q7 = (t, e, r) => { +}, v4 = QSe, V7 = (t, e, r) => { const n = Ic(e, r), i = e[n]; - return i.id.clock < r && i instanceof nn ? (e.splice(n + 1, 0, X5(t, i, r - i.id.clock)), n + 1) : n; + return i.id.clock < r && i instanceof nn ? (e.splice(n + 1, 0, H5(t, i, r - i.id.clock)), n + 1) : n; }, Ca = (t, e) => { const r = t.doc.store.clients.get(e.client); - return r[q7(t, r, e.clock)]; -}, oz = (t, e, r) => { + return r[V7(t, r, e.clock)]; +}, iz = (t, e, r) => { const n = e.clients.get(r.client), i = Ic(n, r.clock), s = n[i]; - return r.clock !== s.id.clock + s.length - 1 && s.constructor !== Ao && n.splice(i + 1, 0, X5(t, s, r.clock - s.id.clock + 1)), s; -}, HSe = (t, e, r) => { + return r.clock !== s.id.clock + s.length - 1 && s.constructor !== Ao && n.splice(i + 1, 0, H5(t, s, r.clock - s.id.clock + 1)), s; +}, WSe = (t, e, r) => { const n = t.clients.get(e.id.client); n[Ic(n, e.id.clock)] = r; -}, Vee = (t, e, r, n, i) => { +}, Bee = (t, e, r, n, i) => { if (n === 0) return; const s = r + n; - let a = q7(t, e, r), o; + let a = V7(t, e, r), o; do - o = e[a++], s < o.id.clock + o.length && q7(t, e, s), i(o); + o = e[a++], s < o.id.clock + o.length && V7(t, e, s), i(o); while (a < e.length && e[a].id.clock < s); }; -class XSe { +class GSe { constructor(e, r, n) { - this.doc = e, this.deleteSet = new V1(), this.beforeState = rT(e.store), this.afterState = /* @__PURE__ */ new Map(), this.changed = /* @__PURE__ */ new Map(), this.changedParentTypes = /* @__PURE__ */ new Map(), this._mergeStructs = [], this.origin = r, this.meta = /* @__PURE__ */ new Map(), this.local = n, this.subdocsAdded = /* @__PURE__ */ new Set(), this.subdocsRemoved = /* @__PURE__ */ new Set(), this.subdocsLoaded = /* @__PURE__ */ new Set(), this._needFormattingCleanup = !1; + this.doc = e, this.deleteSet = new V1(), this.beforeState = tT(e.store), this.afterState = /* @__PURE__ */ new Map(), this.changed = /* @__PURE__ */ new Map(), this.changedParentTypes = /* @__PURE__ */ new Map(), this._mergeStructs = [], this.origin = r, this.meta = /* @__PURE__ */ new Map(), this.local = n, this.subdocsAdded = /* @__PURE__ */ new Set(), this.subdocsRemoved = /* @__PURE__ */ new Set(), this.subdocsLoaded = /* @__PURE__ */ new Set(), this._needFormattingCleanup = !1; } } -const lz = (t, e) => e.deleteSet.clients.size === 0 && !eke(e.afterState, (r, n) => e.beforeState.get(n) !== r) ? !1 : (MM(e.deleteSet), MSe(t, e), U1(t, e.deleteSet), !0), cz = (t, e, r) => { +const sz = (t, e) => e.deleteSet.clients.size === 0 && !K3e(e.afterState, (r, n) => e.beforeState.get(n) !== r) ? !1 : (AM(e.deleteSet), LSe(t, e), U1(t, e.deleteSet), !0), az = (t, e, r) => { const n = e._item; (n === null || n.id.clock < (t.beforeState.get(n.id.client) || 0) && !n.deleted) && nh(t.changed, e, Jd).add(r); -}, b4 = (t, e) => { +}, y4 = (t, e) => { let r = t[e], n = t[e - 1], i = e; for (; i > 0; r = n, n = t[--i - 1]) { if (n.deleted === r.deleted && n.constructor === r.constructor && n.mergeWith(r)) { @@ -17352,7 +17352,7 @@ const lz = (t, e) => e.deleteSet.clients.size === 0 && !eke(e.afterState, (r, n) } const s = e - i; return s && t.splice(e + 1 - s, s), s; -}, ZSe = (t, e, r) => { +}, HSe = (t, e, r) => { for (const [n, i] of t.clients.entries()) { const s = e.clients.get(n); for (let a = i.length - 1; a >= 0; a--) { @@ -17365,20 +17365,20 @@ const lz = (t, e) => e.deleteSet.clients.size === 0 && !eke(e.afterState, (r, n) } } } -}, jSe = (t, e) => { +}, XSe = (t, e) => { t.clients.forEach((r, n) => { const i = e.clients.get(n); for (let s = r.length - 1; s >= 0; s--) { - const a = r[s], o = KS(i.length - 1, 1 + Ic(i, a.clock + a.len - 1)); + const a = r[s], o = jS(i.length - 1, 1 + Ic(i, a.clock + a.len - 1)); for (let l = o, u = i[l]; l > 0 && u.id.clock >= a.clock; u = i[l]) - l -= 1 + b4(i, l); + l -= 1 + y4(i, l); } }); -}, Uee = (t, e) => { +}, Fee = (t, e) => { if (e < t.length) { const r = t[e], n = r.doc, i = n.store, s = r.deleteSet, a = r._mergeStructs; try { - MM(s), r.afterState = rT(r.doc.store), n.emit("beforeObserverCalls", [r, n]); + AM(s), r.afterState = tT(r.doc.store), n.emit("beforeObserverCalls", [r, n]); const o = []; r.changed.forEach( (l, u) => o.push(() => { @@ -17390,60 +17390,60 @@ const lz = (t, e) => e.deleteSet.clients.size === 0 && !eke(e.afterState, (r, n) (h) => h.target._item === null || !h.target._item.deleted ), l.forEach((h) => { h.currentTarget = u, h._path = null; - }), l.sort((h, f) => h.path.length - f.path.length), Pee(u._dEH, l, r)); + }), l.sort((h, f) => h.path.length - f.path.length), Dee(u._dEH, l, r)); }); - }), o.push(() => n.emit("afterTransaction", [r, n])), AM(o, []), r._needFormattingCleanup && yTe(r); + }), o.push(() => n.emit("afterTransaction", [r, n])), CM(o, []), r._needFormattingCleanup && mTe(r); } finally { - n.gc && ZSe(s, i, n.gcFilter), jSe(s, i), r.afterState.forEach((h, f) => { + n.gc && HSe(s, i, n.gcFilter), XSe(s, i), r.afterState.forEach((h, f) => { const d = r.beforeState.get(f) || 0; if (d !== h) { const p = i.clients.get(f), g = zf(Ic(p, d), 1); for (let m = p.length - 1; m >= g; ) - m -= 1 + b4(p, m); + m -= 1 + y4(p, m); } }); for (let h = a.length - 1; h >= 0; h--) { const { client: f, clock: d } = a[h].id, p = i.clients.get(f), g = Ic(p, d); - g + 1 < p.length && b4(p, g + 1) > 1 || g > 0 && b4(p, g); + g + 1 < p.length && y4(p, g + 1) > 1 || g > 0 && y4(p, g); } - if (!r.local && r.afterState.get(n.clientID) !== r.beforeState.get(n.clientID) && (kSe(LM, wee, "[yjs] ", Oee, kee, "Changed the client-id because another client seems to be using it."), n.clientID = _ee()), n.emit("afterTransactionCleanup", [r, n]), n._observers.has("update")) { + if (!r.local && r.afterState.get(n.clientID) !== r.beforeState.get(n.clientID) && (wSe(EM, yee, "[yjs] ", bee, xee, "Changed the client-id because another client seems to be using it."), n.clientID = Tee()), n.emit("afterTransactionCleanup", [r, n]), n._observers.has("update")) { const h = new tx(); - lz(h, r) && n.emit("update", [h.toUint8Array(), r.origin, n, r]); + sz(h, r) && n.emit("update", [h.toUint8Array(), r.origin, n, r]); } if (n._observers.has("updateV2")) { const h = new e0(); - lz(h, r) && n.emit("updateV2", [h.toUint8Array(), r.origin, n, r]); + sz(h, r) && n.emit("updateV2", [h.toUint8Array(), r.origin, n, r]); } const { subdocsAdded: o, subdocsLoaded: l, subdocsRemoved: u } = r; (o.size > 0 || u.size > 0 || l.size > 0) && (o.forEach((h) => { h.clientID = n.clientID, h.collectionid == null && (h.collectionid = n.collectionid), n.subdocs.add(h); - }), u.forEach((h) => n.subdocs.delete(h)), n.emit("subdocs", [{ loaded: l, added: o, removed: u }, n, r]), u.forEach((h) => h.destroy())), t.length <= e + 1 ? (n._transactionCleanups = [], n.emit("afterAllTransactions", [n, t])) : Uee(t, e + 1); + }), u.forEach((h) => n.subdocs.delete(h)), n.emit("subdocs", [{ loaded: l, added: o, removed: u }, n, r]), u.forEach((h) => h.destroy())), t.length <= e + 1 ? (n._transactionCleanups = [], n.emit("afterAllTransactions", [n, t])) : Fee(t, e + 1); } } }, rn = (t, e, r = null, n = !0) => { const i = t._transactionCleanups; let s = !1, a = null; - t._transaction === null && (s = !0, t._transaction = new XSe(t, r, n), i.push(t._transaction), i.length === 1 && t.emit("beforeAllTransactions", [t]), t.emit("beforeTransaction", [t._transaction, t])); + t._transaction === null && (s = !0, t._transaction = new GSe(t, r, n), i.push(t._transaction), i.length === 1 && t.emit("beforeAllTransactions", [t]), t.emit("beforeTransaction", [t._transaction, t])); try { a = e(t._transaction); } finally { if (s) { const o = t._transaction === i[0]; - t._transaction = null, o && Uee(i, 0); + t._transaction = null, o && Fee(i, 0); } } return a; }; -class KSe { +class ZSe { constructor(e, r) { this.insertions = r, this.deletions = e, this.meta = /* @__PURE__ */ new Map(); } } -const uz = (t, e, r) => { +const oz = (t, e, r) => { Pg(t, r.deletions, (n) => { - n instanceof nn && e.scope.some((i) => U5(i, n)) && qM(n, !1); + n instanceof nn && e.scope.some((i) => V5(i, n)) && zM(n, !1); }); -}, hz = (t, e, r) => { +}, lz = (t, e, r) => { let n = null, i = null; const s = t.doc, a = t.scope; if (rn(s, (o) => { @@ -17453,15 +17453,15 @@ const uz = (t, e, r) => { Pg(o, u.insertions, (p) => { if (p instanceof nn) { if (p.redone !== null) { - let { item: g, diff: m } = Q7(l, p.id); + let { item: g, diff: m } = q7(l, p.id); m > 0 && (g = Ca(o, pr(g.id.client, g.id.clock + m))), p = g; } - !p.deleted && a.some((g) => U5(g, p)) && f.push(p); + !p.deleted && a.some((g) => V5(g, p)) && f.push(p); } }), Pg(o, u.deletions, (p) => { - p instanceof nn && a.some((g) => U5(g, p)) && !ex(u.insertions, p.id) && h.add(p); + p instanceof nn && a.some((g) => V5(g, p)) && !ex(u.insertions, p.id) && h.add(p); }), h.forEach((p) => { - d = ate(o, p, h, u.insertions, t.ignoreRemoteMapChanges, t) !== null || d; + d = nte(o, p, h, u.insertions, t.ignoreRemoteMapChanges, t) !== null || d; }); for (let p = f.length - 1; p >= 0; p--) { const g = f[p]; @@ -17478,14 +17478,14 @@ const uz = (t, e, r) => { } return n; }; -class IM extends jS { +class MM extends ZS { constructor(e, { captureTimeout: r = 500, captureTransaction: n = (l) => !0, deleteFilter: i = () => !0, trackedOrigins: s = /* @__PURE__ */ new Set([null]), ignoreRemoteMapChanges: a = !1, - doc: o = D7(e) ? e[0].doc : e.doc + doc: o = R7(e) ? e[0].doc : e.doc } = {}) { super(), this.scope = [], this.doc = o, this.addToScope(e), this.deleteFilter = i, s.add(this), this.trackedOrigins = s, this.captureTransaction = n, this.undoStack = [], this.redoStack = [], this.undoing = !1, this.redoing = !1, this.lastChange = 0, this.ignoreRemoteMapChanges = a, this.captureTimeout = r, this.afterTransactionHandler = (l) => { if (!this.captureTransaction(l) || !this.scope.some((v) => l.changedParentTypes.has(v)) || !this.trackedOrigins.has(l.origin) && (!l.origin || !this.trackedOrigins.has(l.origin.constructor))) @@ -17501,11 +17501,11 @@ class IM extends jS { let g = !1; if (this.lastChange > 0 && p - this.lastChange < this.captureTimeout && f.length > 0 && !u && !h) { const v = f[f.length - 1]; - v.deletions = F7([v.deletions, l.deleteSet]), v.insertions = F7([v.insertions, d]); + v.deletions = $7([v.deletions, l.deleteSet]), v.insertions = $7([v.insertions, d]); } else - f.push(new KSe(l.deleteSet, d)), g = !0; + f.push(new ZSe(l.deleteSet, d)), g = !0; !u && !h && (this.lastChange = p), Pg(l, l.deleteSet, (v) => { - v instanceof nn && this.scope.some((y) => U5(y, v)) && qM(v, !0); + v instanceof nn && this.scope.some((y) => V5(y, v)) && zM(v, !0); }); const m = [{ stackItem: f[f.length - 1], origin: l.origin, type: u ? "redo" : "undo", changedParentTypes: l.changedParentTypes }, this]; g ? this.emit("stack-item-added", m) : this.emit("stack-item-updated", m); @@ -17514,8 +17514,8 @@ class IM extends jS { }); } addToScope(e) { - e = D7(e) ? e : [e], e.forEach((r) => { - this.scope.every((n) => n !== r) && (r.doc !== this.doc && SSe("[yjs#509] Not same Y.Doc"), this.scope.push(r)); + e = R7(e) ? e : [e], e.forEach((r) => { + this.scope.every((n) => n !== r) && (r.doc !== this.doc && OSe("[yjs#509] Not same Y.Doc"), this.scope.push(r)); }); } addTrackedOrigin(e) { @@ -17526,7 +17526,7 @@ class IM extends jS { } clear(e = !0, r = !0) { (e && this.canUndo() || r && this.canRedo()) && this.doc.transact((n) => { - e && (this.undoStack.forEach((i) => uz(n, this, i)), this.undoStack = []), r && (this.redoStack.forEach((i) => uz(n, this, i)), this.redoStack = []), this.emit("stack-cleared", [{ undoStackCleared: e, redoStackCleared: r }]); + e && (this.undoStack.forEach((i) => oz(n, this, i)), this.undoStack = []), r && (this.redoStack.forEach((i) => oz(n, this, i)), this.redoStack = []), this.emit("stack-cleared", [{ undoStackCleared: e, redoStackCleared: r }]); }); } stopCapturing() { @@ -17536,7 +17536,7 @@ class IM extends jS { this.undoing = !0; let e; try { - e = hz(this, this.undoStack, "undo"); + e = lz(this, this.undoStack, "undo"); } finally { this.undoing = !1; } @@ -17546,7 +17546,7 @@ class IM extends jS { this.redoing = !0; let e; try { - e = hz(this, this.redoStack, "redo"); + e = lz(this, this.redoStack, "redo"); } finally { this.redoing = !1; } @@ -17562,7 +17562,7 @@ class IM extends jS { this.trackedOrigins.delete(this), this.doc.off("afterTransaction", this.afterTransactionHandler), super.destroy(); } } -function* JSe(t) { +function* jSe(t) { const e = lr(t.restDecoder); for (let r = 0; r < e; r++) { const n = lr(t.restDecoder), i = t.readClient(); @@ -17572,7 +17572,7 @@ function* JSe(t) { if (o === 10) { const l = lr(t.restDecoder); yield new Lo(pr(i, s), l), s += l; - } else if ((JS & o) !== 0) { + } else if ((KS & o) !== 0) { const l = (o & (_u | ao)) === 0, u = new nn( pr(i, s), null, @@ -17581,7 +17581,7 @@ function* JSe(t) { (o & _u) === _u ? t.readRightID() : null, l ? t.readParentInfo() ? t.readString() : t.readLeftID() : null, l && (o & zy) === zy ? t.readString() : null, - ote(t, o) + ite(t, o) ); yield u, s += u.length; } else { @@ -17591,9 +17591,9 @@ function* JSe(t) { } } } -class PM { +class DM { constructor(e, r) { - this.gen = JSe(e), this.curr = null, this.done = !1, this.filterSkips = r, this.next(); + this.gen = jSe(e), this.curr = null, this.done = !1, this.filterSkips = r, this.next(); } next() { do @@ -17602,12 +17602,12 @@ class PM { return this.curr; } } -class $M { +class NM { constructor(e) { this.currClient = 0, this.startClock = 0, this.written = 0, this.encoder = e, this.clientStructs = []; } } -const eTe = (t) => q5(t, Lee, tx), tTe = (t, e) => { +const KSe = (t) => U5(t, Eee, tx), JSe = (t, e) => { if (t.constructor === Ao) { const { client: r, clock: n } = t.id; return new Ao(pr(r, n + e), t.length - e); @@ -17627,12 +17627,12 @@ const eTe = (t) => q5(t, Lee, tx), tTe = (t, e) => { r.content.splice(e) ); } -}, q5 = (t, e = $g, r = e0) => { +}, U5 = (t, e = $g, r = e0) => { if (t.length === 1) return t[0]; const n = t.map((h) => new e(Vf(h))); - let i = n.map((h) => new PM(h, !0)), s = null; - const a = new r(), o = new $M(a); + let i = n.map((h) => new DM(h, !0)), s = null; + const a = new r(), o = new NM(a); for (; i = i.filter((d) => d.curr !== null), i.sort( (d, p) => { if (d.curr.id.client === p.curr.id.client) { @@ -17661,18 +17661,18 @@ const eTe = (t) => q5(t, Lee, tx), tTe = (t, e) => { } else { const g = s.struct.id.clock + s.struct.length - d.id.clock; - g > 0 && (s.struct.constructor === Lo ? s.struct.length -= g : d = tTe(d, g)), s.struct.mergeWith(d) || (_h(o, s.struct, s.offset), s = { struct: d, offset: 0 }, h.next()); + g > 0 && (s.struct.constructor === Lo ? s.struct.length -= g : d = JSe(d, g)), s.struct.mergeWith(d) || (_h(o, s.struct, s.offset), s = { struct: d, offset: 0 }, h.next()); } } else s = { struct: h.curr, offset: 0 }, h.next(); for (let d = h.curr; d !== null && d.id.client === f && d.id.clock === s.struct.id.clock + s.struct.length && d.constructor !== Lo; d = h.next()) _h(o, s.struct, s.offset), s = { struct: d, offset: 0 }; } - s !== null && (_h(o, s.struct, s.offset), s = null), BM(o); - const l = n.map((h) => DM(h)), u = F7(l); + s !== null && (_h(o, s.struct, s.offset), s = null), IM(o); + const l = n.map((h) => LM(h)), u = $7(l); return U1(a, u), a.toUint8Array(); -}, rTe = (t, e, r = $g, n = e0) => { - const i = Nee(e), s = new n(), a = new $M(s), o = new r(Vf(t)), l = new PM(o, !1); +}, eTe = (t, e, r = $g, n = e0) => { + const i = Ree(e), s = new n(), a = new NM(s), o = new r(Vf(t)), l = new DM(o, !1); for (; l.curr; ) { const h = l.curr, f = h.id.client, d = i.get(f) || 0; if (l.curr.constructor === Lo) { @@ -17686,35 +17686,35 @@ const eTe = (t) => q5(t, Lee, tx), tTe = (t, e) => { for (; l.curr && l.curr.id.client === f && l.curr.id.clock + l.curr.length <= d; ) l.next(); } - BM(a); - const u = DM(o); + IM(a); + const u = LM(o); return U1(s, u), s.toUint8Array(); -}, qee = (t) => { +}, zee = (t) => { t.written > 0 && (t.clientStructs.push({ written: t.written, restEncoder: Ln(t.encoder.restEncoder) }), t.encoder.restEncoder = _s(), t.written = 0); }, _h = (t, e, r) => { - t.written > 0 && t.currClient !== e.id.client && qee(t), t.written === 0 && (t.currClient = e.id.client, t.encoder.writeClient(e.id.client), Wt(t.encoder.restEncoder, e.id.clock + r)), e.write(t.encoder, r), t.written++; -}, BM = (t) => { - qee(t); + t.written > 0 && t.currClient !== e.id.client && zee(t), t.written === 0 && (t.currClient = e.id.client, t.encoder.writeClient(e.id.client), Wt(t.encoder.restEncoder, e.id.clock + r)), e.write(t.encoder, r), t.written++; +}, IM = (t) => { + zee(t); const e = t.encoder.restEncoder; Wt(e, t.clientStructs.length); for (let r = 0; r < t.clientStructs.length; r++) { const n = t.clientStructs[r]; - Wt(e, n.written), eT(e, n.restEncoder); + Wt(e, n.written), JS(e, n.restEncoder); } -}, nTe = (t, e, r, n) => { - const i = new r(Vf(t)), s = new PM(i, !1), a = new n(), o = new $M(a); +}, tTe = (t, e, r, n) => { + const i = new r(Vf(t)), s = new DM(i, !1), a = new n(), o = new NM(a); for (let u = s.curr; u !== null; u = s.next()) _h(o, e(u), 0); - BM(o); - const l = DM(i); + IM(o); + const l = LM(i); return U1(a, l), a.toUint8Array(); -}, iTe = (t) => nTe(t, Qke, $g, tx), fz = "You must not compute changes after the event-handler fired."; -class nT { +}, rTe = (t) => tTe(t, qke, $g, tx), cz = "You must not compute changes after the event-handler fired."; +class rT { constructor(e, r) { this.target = e, this.currentTarget = e, this.transaction = r, this._changes = null, this._keys = null, this._delta = null, this._path = null; } get path() { - return this._path || (this._path = sTe(this.currentTarget, this.target)); + return this._path || (this._path = nTe(this.currentTarget, this.target)); } deletes(e) { return ex(this.transaction.deleteSet, e.id); @@ -17722,7 +17722,7 @@ class nT { get keys() { if (this._keys === null) { if (this.transaction.doc._transactionCleanups.length === 0) - throw df(fz); + throw df(cz); const e = /* @__PURE__ */ new Map(), r = this.target; this.transaction.changed.get(r).forEach((i) => { if (i !== null) { @@ -17734,13 +17734,13 @@ class nT { l = l.left; if (this.deletes(s)) if (l !== null && this.deletes(l)) - a = "delete", o = zE(l.content.getContent()); + a = "delete", o = BE(l.content.getContent()); else return; else - l !== null && this.deletes(l) ? (a = "update", o = zE(l.content.getContent())) : (a = "add", o = void 0); + l !== null && this.deletes(l) ? (a = "update", o = BE(l.content.getContent())) : (a = "add", o = void 0); } else if (this.deletes(s)) - a = "delete", o = zE(s.content.getContent()); + a = "delete", o = BE(s.content.getContent()); else return; e.set(i, { action: a, oldValue: o }); @@ -17759,7 +17759,7 @@ class nT { let e = this._changes; if (e === null) { if (this.transaction.doc._transactionCleanups.length === 0) - throw df(fz); + throw df(cz); const r = this.target, n = Jd(), i = Jd(), s = []; if (e = { added: n, @@ -17780,7 +17780,7 @@ class nT { return e; } } -const sTe = (t, e) => { +const nTe = (t, e) => { const r = []; for (; e._item !== null && e !== t; ) { if (e._item.parentSub !== null) @@ -17794,31 +17794,31 @@ const sTe = (t, e) => { e = e._item.parent; } return r; -}, Yee = 80; -let FM = 0; -class aTe { +}, Vee = 80; +let PM = 0; +class iTe { constructor(e, r) { - e.marker = !0, this.p = e, this.index = r, this.timestamp = FM++; + e.marker = !0, this.p = e, this.index = r, this.timestamp = PM++; } } -const oTe = (t) => { - t.timestamp = FM++; -}, Qee = (t, e, r) => { - t.p.marker = !1, t.p = e, e.marker = !0, t.index = r, t.timestamp = FM++; -}, lTe = (t, e, r) => { - if (t.length >= Yee) { +const sTe = (t) => { + t.timestamp = PM++; +}, Uee = (t, e, r) => { + t.p.marker = !1, t.p = e, e.marker = !0, t.index = r, t.timestamp = PM++; +}, aTe = (t, e, r) => { + if (t.length >= Vee) { const n = t.reduce((i, s) => i.timestamp < s.timestamp ? i : s); - return Qee(n, e, r), n; + return Uee(n, e, r), n; } else { - const n = new aTe(e, r); + const n = new iTe(e, r); return t.push(n), n; } -}, iT = (t, e) => { +}, nT = (t, e) => { if (t._start === null || e === 0 || t._searchMarker === null) return null; - const r = t._searchMarker.length === 0 ? null : t._searchMarker.reduce((s, a) => g4(e - s.index) < g4(e - a.index) ? s : a); + const r = t._searchMarker.length === 0 ? null : t._searchMarker.reduce((s, a) => p4(e - s.index) < p4(e - a.index) ? s : a); let n = t._start, i = 0; - for (r !== null && (n = r.p, i = r.index, oTe(r)); n.right !== null && i < e; ) { + for (r !== null && (n = r.p, i = r.index, sTe(r)); n.right !== null && i < e; ) { if (!n.deleted && n.countable) { if (e < i + n.length) break; @@ -17830,7 +17830,7 @@ const oTe = (t) => { n = n.left, !n.deleted && n.countable && (i -= n.length); for (; n.left !== null && n.left.id.client === n.id.client && n.left.id.clock + n.left.length === n.id.clock; ) n = n.left, !n.deleted && n.countable && (i -= n.length); - return r !== null && g4(r.index - i) < n.parent.length / Yee ? (Qee(r, n, i), r) : lTe(t._searchMarker, n, i); + return r !== null && p4(r.index - i) < n.parent.length / Vee ? (Uee(r, n, i), r) : aTe(t._searchMarker, n, i); }, Wy = (t, e, r) => { for (let n = t.length - 1; n >= 0; n--) { const i = t[n]; @@ -17846,15 +17846,15 @@ const oTe = (t) => { } (e < i.index || r > 0 && e === i.index) && (i.index = zf(e, i.index + r)); } -}, sT = (t, e, r) => { +}, iT = (t, e, r) => { const n = t, i = e.changedParentTypes; for (; nh(i, t, () => []).push(r), t._item !== null; ) t = t._item.parent; - Pee(n._eH, r, e); + Dee(n._eH, r, e); }; class us { constructor() { - this._item = null, this._map = /* @__PURE__ */ new Map(), this._start = null, this.doc = null, this._length = 0, this._eH = rz(), this._dEH = rz(), this._searchMarker = null; + this._item = null, this._map = /* @__PURE__ */ new Map(), this._start = null, this.doc = null, this._length = 0, this._eH = JF(), this._dEH = JF(), this._searchMarker = null; } get parent() { return this._item ? this._item.parent : null; @@ -17880,21 +17880,21 @@ class us { !e.local && this._searchMarker && (this._searchMarker.length = 0); } observe(e) { - nz(this._eH, e); + ez(this._eH, e); } observeDeep(e) { - nz(this._dEH, e); + ez(this._dEH, e); } unobserve(e) { - iz(this._eH, e); + tz(this._eH, e); } unobserveDeep(e) { - iz(this._dEH, e); + tz(this._dEH, e); } toJSON() { } } -const Wee = (t, e, r) => { +const qee = (t, e, r) => { e < 0 && (e = t._length + e), r < 0 && (r = t._length + r); let n = r - e; const i = []; @@ -17913,7 +17913,7 @@ const Wee = (t, e, r) => { s = s.right; } return i; -}, Gee = (t) => { +}, Yee = (t) => { const e = []; let r = t._start; for (; r !== null; ) { @@ -17935,12 +17935,12 @@ const Wee = (t, e, r) => { } n = n.right; } -}, Hee = (t, e) => { +}, Qee = (t, e) => { const r = []; return Gy(t, (n, i) => { r.push(e(n, i, t)); }), r; -}, cTe = (t) => { +}, oTe = (t) => { let e = t._start, r = null, n = 0; return { [Symbol.iterator]() { @@ -17964,8 +17964,8 @@ const Wee = (t, e, r) => { }; } }; -}, Xee = (t, e) => { - const r = iT(t, e); +}, Wee = (t, e) => { + const r = nT(t, e); let n = t._start; for (r !== null && (n = r.p, e -= r.index); n !== null; n = n.right) if (!n.deleted && n.countable) { @@ -17973,7 +17973,7 @@ const Wee = (t, e, r) => { return n.content.getContent()[e]; e -= n.length; } -}, Y5 = (t, e, r, n) => { +}, q5 = (t, e, r, n) => { let i = r; const s = t.doc, a = s.clientID, o = s.store, l = r === null ? e._start : r.right; let u = []; @@ -18009,12 +18009,12 @@ const Wee = (t, e, r) => { } } }), h(); -}, Zee = () => df("Length exceeded!"), jee = (t, e, r, n) => { +}, Gee = () => df("Length exceeded!"), Hee = (t, e, r, n) => { if (r > e._length) - throw Zee(); + throw Gee(); if (r === 0) - return e._searchMarker && Wy(e._searchMarker, r, n.length), Y5(t, e, null, n); - const i = r, s = iT(e, r); + return e._searchMarker && Wy(e._searchMarker, r, n.length), q5(t, e, null, n); + const i = r, s = nT(e, r); let a = e._start; for (s !== null && (a = s.p, r -= s.index, r === 0 && (a = a.prev, r += a && a.countable && !a.deleted ? a.length : 0)); a !== null; a = a.right) if (!a.deleted && a.countable) { @@ -18024,29 +18024,29 @@ const Wee = (t, e, r) => { } r -= a.length; } - return e._searchMarker && Wy(e._searchMarker, i, n.length), Y5(t, e, a, n); -}, uTe = (t, e, r) => { + return e._searchMarker && Wy(e._searchMarker, i, n.length), q5(t, e, a, n); +}, lTe = (t, e, r) => { let i = (e._searchMarker || []).reduce((s, a) => a.index > s.index ? a : s, { index: 0, p: e._start }).p; if (i) for (; i.right; ) i = i.right; - return Y5(t, e, i, r); -}, Kee = (t, e, r, n) => { + return q5(t, e, i, r); +}, Xee = (t, e, r, n) => { if (n === 0) return; - const i = r, s = n, a = iT(e, r); + const i = r, s = n, a = nT(e, r); let o = e._start; for (a !== null && (o = a.p, r -= a.index); o !== null && r > 0; o = o.right) !o.deleted && o.countable && (r < o.length && Ca(t, pr(o.id.client, o.id.clock + r)), r -= o.length); for (; n > 0 && o !== null; ) o.deleted || (n < o.length && Ca(t, pr(o.id.client, o.id.clock + n)), o.delete(t), n -= o.length), o = o.right; if (n > 0) - throw Zee(); + throw Gee(); e._searchMarker && Wy(e._searchMarker, i, -s + n); -}, Q5 = (t, e, r) => { +}, Y5 = (t, e, r) => { const n = e._map.get(r); n !== void 0 && n.delete(t); -}, zM = (t, e, r, n) => { +}, $M = (t, e, r, n) => { const i = e._map.get(r) || null, s = t.doc, a = s.clientID; let o; if (n == null) @@ -18073,18 +18073,18 @@ const Wee = (t, e, r) => { throw new Error("Unexpected content type"); } new nn(pr(a, ti(s.store, a)), i, i && i.lastId, null, null, e, r, o).integrate(t, 0); -}, VM = (t, e) => { +}, BM = (t, e) => { const r = t._map.get(e); return r !== void 0 && !r.deleted ? r.content.getContent()[r.length - 1] : void 0; -}, Jee = (t) => { +}, Zee = (t) => { const e = {}; return t._map.forEach((r, n) => { r.deleted || (e[n] = r.content.getContent()[r.length - 1]); }), e; -}, ete = (t, e) => { +}, jee = (t, e) => { const r = t._map.get(e); return r !== void 0 && !r.deleted; -}, hTe = (t, e) => { +}, cTe = (t, e) => { const r = {}; return t._map.forEach((n, i) => { let s = n; @@ -18092,8 +18092,8 @@ const Wee = (t, e, r) => { s = s.left; s !== null && Tp(s, e) && (r[i] = s.content.getContent()[s.length - 1]); }), r; -}, Nw = (t) => TSe(t.entries(), (e) => !e[1].deleted); -class fTe extends nT { +}, Nw = (t) => kSe(t.entries(), (e) => !e[1].deleted); +class uTe extends rT { constructor(e, r) { super(e, r), this._transaction = r; } @@ -18122,16 +18122,16 @@ class Jp extends us { return this._prelimContent === null ? this._length : this._prelimContent.length; } _callObserver(e, r) { - super._callObserver(e, r), sT(this, e, new fTe(this, e)); + super._callObserver(e, r), iT(this, e, new uTe(this, e)); } insert(e, r) { this.doc !== null ? rn(this.doc, (n) => { - jee(n, this, e, r); + Hee(n, this, e, r); }) : this._prelimContent.splice(e, 0, ...r); } push(e) { this.doc !== null ? rn(this.doc, (r) => { - uTe(r, this, e); + lTe(r, this, e); }) : this._prelimContent.push(...e); } unshift(e) { @@ -18139,36 +18139,36 @@ class Jp extends us { } delete(e, r = 1) { this.doc !== null ? rn(this.doc, (n) => { - Kee(n, this, e, r); + Xee(n, this, e, r); }) : this._prelimContent.splice(e, r); } get(e) { - return Xee(this, e); + return Wee(this, e); } toArray() { - return Gee(this); + return Yee(this); } slice(e = 0, r = this.length) { - return Wee(this, e, r); + return qee(this, e, r); } toJSON() { return this.map((e) => e instanceof us ? e.toJSON() : e); } map(e) { - return Hee(this, e); + return Qee(this, e); } forEach(e) { Gy(this, e); } [Symbol.iterator]() { - return cTe(this); + return oTe(this); } _write(e) { - e.writeTypeRef(PTe); + e.writeTypeRef(NTe); } } -const dTe = (t) => new Jp(); -class pTe extends nT { +const hTe = (t) => new Jp(); +class fTe extends rT { constructor(e, r, n) { super(e, r), this.keysChanged = n; } @@ -18192,7 +18192,7 @@ class Au extends us { }), e; } _callObserver(e, r) { - sT(this, e, new pTe(this, e, r)); + iT(this, e, new fTe(this, e, r)); } toJSON() { const e = {}; @@ -18207,13 +18207,13 @@ class Au extends us { return [...Nw(this._map)].length; } keys() { - return WE(Nw(this._map), (e) => e[0]); + return YE(Nw(this._map), (e) => e[0]); } values() { - return WE(Nw(this._map), (e) => e[1].content.getContent()[e[1].length - 1]); + return YE(Nw(this._map), (e) => e[1].content.getContent()[e[1].length - 1]); } entries() { - return WE(Nw(this._map), (e) => [e[0], e[1].content.getContent()[e[1].length - 1]]); + return YE(Nw(this._map), (e) => [e[0], e[1].content.getContent()[e[1].length - 1]]); } forEach(e) { this._map.forEach((r, n) => { @@ -18225,33 +18225,33 @@ class Au extends us { } delete(e) { this.doc !== null ? rn(this.doc, (r) => { - Q5(r, this, e); + Y5(r, this, e); }) : this._prelimContent.delete(e); } set(e, r) { return this.doc !== null ? rn(this.doc, (n) => { - zM(n, this, e, r); + $M(n, this, e, r); }) : this._prelimContent.set(e, r), r; } get(e) { - return VM(this, e); + return BM(this, e); } has(e) { - return ete(this, e); + return jee(this, e); } clear() { this.doc !== null ? rn(this.doc, (e) => { this.forEach(function(r, n, i) { - Q5(e, i, n); + Y5(e, i, n); }); }) : this._prelimContent.clear(); } _write(e) { - e.writeTypeRef($Te); + e.writeTypeRef(ITe); } } -const gTe = (t) => new Au(), Bh = (t, e) => t === e || typeof t == "object" && typeof e == "object" && t && e && Yke(t, e); -class Y7 { +const dTe = (t) => new Au(), Bh = (t, e) => t === e || typeof t == "object" && typeof e == "object" && t && e && Uke(t, e); +class U7 { constructor(e, r, n, i) { this.left = e, this.right = r, this.index = n, this.currentAttributes = i; } @@ -18267,7 +18267,7 @@ class Y7 { this.left = this.right, this.right = this.right.right; } } -const dz = (t, e, r) => { +const uz = (t, e, r) => { for (; e.right !== null && r > 0; ) { switch (e.right.content.constructor) { case Ri: @@ -18281,15 +18281,15 @@ const dz = (t, e, r) => { } return e; }, Iw = (t, e, r) => { - const n = /* @__PURE__ */ new Map(), i = iT(e, r); + const n = /* @__PURE__ */ new Map(), i = nT(e, r); if (i) { - const s = new Y7(i.p.left, i.p, i.index, n); - return dz(t, s, r - i.index); + const s = new U7(i.p.left, i.p, i.index, n); + return uz(t, s, r - i.index); } else { - const s = new Y7(null, e._start, 0, n); - return dz(t, s, r); + const s = new U7(null, e._start, 0, n); + return uz(t, s, r); } -}, tte = (t, e, r, n) => { +}, Kee = (t, e, r, n) => { for (; r.right !== null && (r.right.deleted === !0 || r.right.content.constructor === Ri && Bh(n.get(r.right.content.key), r.right.content.value)); ) r.right.deleted || n.delete(r.right.content.key), r.forward(); const i = t.doc, s = i.clientID; @@ -18300,13 +18300,13 @@ const dz = (t, e, r) => { }, Y1 = (t, e) => { const { key: r, value: n } = e; n === null ? t.delete(r) : t.set(r, n); -}, rte = (t, e) => { +}, Jee = (t, e) => { for (; t.right !== null; ) { if (!(t.right.deleted || t.right.content.constructor === Ri && Bh(e[t.right.content.key] || null, t.right.content.value))) break; t.forward(); } -}, nte = (t, e, r, n) => { +}, ete = (t, e, r, n) => { const i = t.doc, s = i.clientID, a = /* @__PURE__ */ new Map(); for (const o in n) { const l = n[o], u = r.currentAttributes.get(o) || null; @@ -18317,19 +18317,19 @@ const dz = (t, e, r) => { } } return a; -}, GE = (t, e, r, n, i) => { +}, QE = (t, e, r, n, i) => { r.currentAttributes.forEach((d, p) => { i[p] === void 0 && (i[p] = null); }); const s = t.doc, a = s.clientID; - rte(r, i); - const o = nte(t, e, r, i), l = n.constructor === String ? new Pc(n) : n instanceof us ? new Gc(n) : new $0(n); + Jee(r, i); + const o = ete(t, e, r, i), l = n.constructor === String ? new Pc(n) : n instanceof us ? new Gc(n) : new $0(n); let { left: u, right: h, index: f } = r; - e._searchMarker && Wy(e._searchMarker, r.index, l.getLength()), h = new nn(pr(a, ti(s.store, a)), u, u && u.lastId, h, h && h.id, e, null, l), h.integrate(t, 0), r.right = h, r.index = f, r.forward(), tte(t, e, r, o); -}, pz = (t, e, r, n, i) => { + e._searchMarker && Wy(e._searchMarker, r.index, l.getLength()), h = new nn(pr(a, ti(s.store, a)), u, u && u.lastId, h, h && h.id, e, null, l), h.integrate(t, 0), r.right = h, r.index = f, r.forward(), Kee(t, e, r, o); +}, hz = (t, e, r, n, i) => { const s = t.doc, a = s.clientID; - rte(r, i); - const o = nte(t, e, r, i); + Jee(r, i); + const o = ete(t, e, r, i); e: for (; r.right !== null && (n > 0 || o.size > 0 && (r.right.deleted || r.right.content.constructor === Ri)); ) { if (!r.right.deleted) @@ -18362,8 +18362,8 @@ const dz = (t, e, r) => { `; r.right = new nn(pr(a, ti(s.store, a)), r.left, r.left && r.left.lastId, r.right, r.right && r.right.id, e, null, new Pc(l)), r.right.integrate(t, 0), r.forward(); } - tte(t, e, r, o); -}, ite = (t, e, r, n, i) => { + Kee(t, e, r, o); +}, tte = (t, e, r, n, i) => { let s = e; const a = xl(); for (; s && (!s.countable || s.deleted); ) { @@ -18388,7 +18388,7 @@ const dz = (t, e, r) => { e = e.right; } return o; -}, mTe = (t, e) => { +}, pTe = (t, e) => { for (; e && e.right && (e.right.deleted || !e.right.countable); ) e = e.right; const r = /* @__PURE__ */ new Set(); @@ -18399,11 +18399,11 @@ const dz = (t, e, r) => { } e = e.left; } -}, vTe = (t) => { +}, gTe = (t) => { let e = 0; return rn(t.doc, (r) => { let n = t._start, i = t._start, s = xl(); - const a = M7(s); + const a = L7(s); for (; i; ) { if (i.deleted === !1) switch (i.content.constructor) { @@ -18411,17 +18411,17 @@ const dz = (t, e, r) => { Y1(a, i.content); break; default: - e += ite(r, n, i, s, a), s = M7(a), n = i; + e += tte(r, n, i, s, a), s = L7(a), n = i; break; } i = i.right; } }), e; -}, yTe = (t) => { +}, mTe = (t) => { const e = /* @__PURE__ */ new Set(), r = t.doc; for (const [n, i] of t.afterState.entries()) { const s = t.beforeState.get(n) || 0; - i !== s && Vee(t, r.store.clients.get(n), s, i, (a) => { + i !== s && Bee(t, r.store.clients.get(n), s, i, (a) => { !a.deleted && a.content.constructor === Ri && a.constructor !== Ao && e.add(a.parent); }); } @@ -18430,13 +18430,13 @@ const dz = (t, e, r) => { if (i instanceof Ao || !i.parent._hasFormatting || e.has(i.parent)) return; const s = i.parent; - i.content.constructor === Ri ? e.add(s) : mTe(n, i); + i.content.constructor === Ri ? e.add(s) : pTe(n, i); }); for (const i of e) - vTe(i); + gTe(i); }); -}, gz = (t, e, r) => { - const n = r, i = M7(e.currentAttributes), s = e.right; +}, fz = (t, e, r) => { + const n = r, i = L7(e.currentAttributes), s = e.right; for (; r > 0 && e.right !== null; ) { if (e.right.deleted === !1) switch (e.right.content.constructor) { @@ -18448,11 +18448,11 @@ const dz = (t, e, r) => { } e.forward(); } - s && ite(t, s, e.right, i, e.currentAttributes); + s && tte(t, s, e.right, i, e.currentAttributes); const a = (e.left || e.right).parent; return a._searchMarker && Wy(a._searchMarker, e.index, -n + r), e; }; -class bTe extends nT { +class vTe extends rT { constructor(e, r, n) { super(e, r), this.childListChanged = !1, this.keysChanged = /* @__PURE__ */ new Set(), n.forEach((i) => { i === null ? this.childListChanged = !0 : this.keysChanged.add(i); @@ -18491,7 +18491,7 @@ class bTe extends nT { }))), u = ""; break; case "retain": - h > 0 && (p = { retain: h }, Uke(l) || (p.attributes = Bke({}, l))), h = 0; + h > 0 && (p = { retain: h }, zke(l) || (p.attributes = Pke({}, l))), h = 0; break; } p && r.push(p), o = null; @@ -18565,8 +18565,8 @@ class Bg extends us { } _callObserver(e, r) { super._callObserver(e, r); - const n = new bTe(this, e, r); - sT(this, e, n), !e.local && this._hasFormatting && (e._needFormattingCleanup = !0); + const n = new vTe(this, e, r); + iT(this, e, n), !e.local && this._hasFormatting && (e._needFormattingCleanup = !0); } toString() { let e = "", r = this._start; @@ -18579,15 +18579,15 @@ class Bg extends us { } applyDelta(e, { sanitize: r = !0 } = {}) { this.doc !== null ? rn(this.doc, (n) => { - const i = new Y7(null, this._start, 0, /* @__PURE__ */ new Map()); + const i = new U7(null, this._start, 0, /* @__PURE__ */ new Map()); for (let s = 0; s < e.length; s++) { const a = e[s]; if (a.insert !== void 0) { const o = !r && typeof a.insert == "string" && s === e.length - 1 && i.right === null && a.insert.slice(-1) === ` ` ? a.insert.slice(0, -1) : a.insert; - (typeof o != "string" || o.length > 0) && GE(n, this, i, o, a.attributes || {}); + (typeof o != "string" || o.length > 0) && QE(n, this, i, o, a.attributes || {}); } else - a.retain !== void 0 ? pz(n, this, i, a.retain, a.attributes || {}) : a.delete !== void 0 && gz(n, i, a.delete); + a.retain !== void 0 ? hz(n, this, i, a.retain, a.attributes || {}) : a.delete !== void 0 && fz(n, i, a.delete); } }) : this._pending.push(() => this.applyDelta(e)); } @@ -18638,7 +18638,7 @@ class Bg extends us { u(); }; return e || r ? rn(a, (f) => { - e && U7(f, e), r && U7(f, r), h(); + e && z7(f, e), r && z7(f, r), h(); }, "cleanup") : h(), i; } insert(e, r, n) { @@ -18649,14 +18649,14 @@ class Bg extends us { const a = Iw(s, this, e); n || (n = {}, a.currentAttributes.forEach((o, l) => { n[l] = o; - })), GE(s, this, a, r, n); + })), QE(s, this, a, r, n); }) : this._pending.push(() => this.insert(e, r, n)); } insertEmbed(e, r, n = {}) { const i = this.doc; i !== null ? rn(i, (s) => { const a = Iw(s, this, e); - GE(s, this, a, r, n); + QE(s, this, a, r, n); }) : this._pending.push(() => this.insertEmbed(e, r, n)); } delete(e, r) { @@ -18664,7 +18664,7 @@ class Bg extends us { return; const n = this.doc; n !== null ? rn(n, (i) => { - gz(i, Iw(i, this, e), r); + fz(i, Iw(i, this, e), r); }) : this._pending.push(() => this.delete(e, r)); } format(e, r, n) { @@ -18673,31 +18673,31 @@ class Bg extends us { const i = this.doc; i !== null ? rn(i, (s) => { const a = Iw(s, this, e); - a.right !== null && pz(s, this, a, r, n); + a.right !== null && hz(s, this, a, r, n); }) : this._pending.push(() => this.format(e, r, n)); } removeAttribute(e) { this.doc !== null ? rn(this.doc, (r) => { - Q5(r, this, e); + Y5(r, this, e); }) : this._pending.push(() => this.removeAttribute(e)); } setAttribute(e, r) { this.doc !== null ? rn(this.doc, (n) => { - zM(n, this, e, r); + $M(n, this, e, r); }) : this._pending.push(() => this.setAttribute(e, r)); } getAttribute(e) { - return VM(this, e); + return BM(this, e); } getAttributes() { - return Jee(this); + return Zee(this); } _write(e) { - e.writeTypeRef(BTe); + e.writeTypeRef(PTe); } } -const xTe = (t) => new Bg(); -class HE { +const yTe = (t) => new Bg(); +class WE { constructor(e, r = () => !0) { this._filter = r, this._root = e, this._currentNode = e._start, this._firstCall = !0; } @@ -18743,21 +18743,21 @@ class t0 extends us { return this._prelimContent === null ? this._length : this._prelimContent.length; } createTreeWalker(e) { - return new HE(this, e); + return new WE(this, e); } querySelector(e) { e = e.toUpperCase(); - const n = new HE(this, (i) => i.nodeName && i.nodeName.toUpperCase() === e).next(); + const n = new WE(this, (i) => i.nodeName && i.nodeName.toUpperCase() === e).next(); return n.done ? null : n.value; } querySelectorAll(e) { - return e = e.toUpperCase(), ff(new HE(this, (r) => r.nodeName && r.nodeName.toUpperCase() === e)); + return e = e.toUpperCase(), ff(new WE(this, (r) => r.nodeName && r.nodeName.toUpperCase() === e)); } _callObserver(e, r) { - sT(this, e, new kTe(this, r, e)); + iT(this, e, new wTe(this, r, e)); } toString() { - return Hee(this, (e) => e.toString()).join(""); + return Qee(this, (e) => e.toString()).join(""); } toJSON() { return this.toString(); @@ -18770,14 +18770,14 @@ class t0 extends us { } insert(e, r) { this.doc !== null ? rn(this.doc, (n) => { - jee(n, this, e, r); + Hee(n, this, e, r); }) : this._prelimContent.splice(e, 0, ...r); } insertAfter(e, r) { if (this.doc !== null) rn(this.doc, (n) => { const i = e && e instanceof us ? e._item : e; - Y5(n, this, i, r); + q5(n, this, i, r); }); else { const n = this._prelimContent, i = e === null ? 0 : n.findIndex((s) => s === e) + 1; @@ -18788,11 +18788,11 @@ class t0 extends us { } delete(e, r = 1) { this.doc !== null ? rn(this.doc, (n) => { - Kee(n, this, e, r); + Xee(n, this, e, r); }) : this._prelimContent.splice(e, r); } toArray() { - return Gee(this); + return Yee(this); } push(e) { this.insert(this.length, e); @@ -18801,19 +18801,19 @@ class t0 extends us { this.insert(0, e); } get(e) { - return Xee(this, e); + return Wee(this, e); } slice(e = 0, r = this.length) { - return Wee(this, e, r); + return qee(this, e, r); } forEach(e) { Gy(this, e); } _write(e) { - e.writeTypeRef(zTe); + e.writeTypeRef(BTe); } } -const wTe = (t) => new t0(); +const bTe = (t) => new t0(); class Hy extends t0 { constructor(e = "UNDEFINED") { super(), this.nodeName = e, this._prelimAttrs = /* @__PURE__ */ new Map(); @@ -18836,7 +18836,7 @@ class Hy extends t0 { } clone() { const e = new Hy(this.nodeName), r = this.getAttributes(); - return zke(r, (n, i) => { + return Bke(r, (n, i) => { typeof n == "string" && e.setAttribute(i, n); }), e.insert(0, this.toArray().map((n) => n instanceof us ? n.clone() : n)), e; } @@ -18855,22 +18855,22 @@ class Hy extends t0 { } removeAttribute(e) { this.doc !== null ? rn(this.doc, (r) => { - Q5(r, this, e); + Y5(r, this, e); }) : this._prelimAttrs.delete(e); } setAttribute(e, r) { this.doc !== null ? rn(this.doc, (n) => { - zM(n, this, e, r); + $M(n, this, e, r); }) : this._prelimAttrs.set(e, r); } getAttribute(e) { - return VM(this, e); + return BM(this, e); } hasAttribute(e) { - return ete(this, e); + return jee(this, e); } getAttributes(e) { - return e ? hTe(this, e) : Jee(this); + return e ? cTe(this, e) : Zee(this); } toDOM(e = document, r = {}, n) { const i = e.createElement(this.nodeName), s = this.getAttributes(); @@ -18883,26 +18883,26 @@ class Hy extends t0 { }), n !== void 0 && n._createAssociation(i, this), i; } _write(e) { - e.writeTypeRef(FTe), e.writeKey(this.nodeName); + e.writeTypeRef($Te), e.writeKey(this.nodeName); } } -const OTe = (t) => new Hy(t.readKey()); -class kTe extends nT { +const xTe = (t) => new Hy(t.readKey()); +class wTe extends rT { constructor(e, r, n) { super(e, n), this.childListChanged = !1, this.attributesChanged = /* @__PURE__ */ new Set(), r.forEach((i) => { i === null ? this.childListChanged = !0 : this.attributesChanged.add(i); }); } } -class W5 extends Au { +class Q5 extends Au { constructor(e) { super(), this.hookName = e; } _copy() { - return new W5(this.hookName); + return new Q5(this.hookName); } clone() { - const e = new W5(this.hookName); + const e = new Q5(this.hookName); return this.forEach((r, n) => { e.set(n, r); }), e; @@ -18913,11 +18913,11 @@ class W5 extends Au { return i !== void 0 ? s = i.createDom(this) : s = document.createElement(this.hookName), s.setAttribute("data-yjs-hook", this.hookName), n !== void 0 && n._createAssociation(s, this), s; } _write(e) { - e.writeTypeRef(VTe), e.writeKey(this.hookName); + e.writeTypeRef(FTe), e.writeKey(this.hookName); } } -const STe = (t) => new W5(t.readKey()); -class G5 extends Bg { +const OTe = (t) => new Q5(t.readKey()); +class W5 extends Bg { get nextSibling() { const e = this._item ? this._item.next : null; return e ? e.content.type : null; @@ -18927,10 +18927,10 @@ class G5 extends Bg { return e ? e.content.type : null; } _copy() { - return new G5(); + return new W5(); } clone() { - const e = new G5(); + const e = new W5(); return e.applyDelta(this.toDelta()), e; } toDOM(e = document, r, n) { @@ -18967,11 +18967,11 @@ class G5 extends Bg { return this.toString(); } _write(e) { - e.writeTypeRef(UTe); + e.writeTypeRef(zTe); } } -const TTe = (t) => new G5(); -class UM { +const kTe = (t) => new W5(); +class FM { constructor(e, r) { this.id = e, this.length = r; } @@ -18988,8 +18988,8 @@ class UM { throw Ac(); } } -const CTe = 0; -class Ao extends UM { +const STe = 0; +class Ao extends FM { get deleted() { return !0; } @@ -18999,10 +18999,10 @@ class Ao extends UM { return this.constructor !== e.constructor ? !1 : (this.length += e.length, !0); } integrate(e, r) { - r > 0 && (this.id.clock += r, this.length -= r), zee(e.doc.store, this); + r > 0 && (this.id.clock += r, this.length -= r), $ee(e.doc.store, this); } write(e, r) { - e.writeInfo(CTe), e.writeLen(this.length - r); + e.writeInfo(STe), e.writeLen(this.length - r); } getMissing(e, r) { return null; @@ -19043,7 +19043,7 @@ class rx { return 3; } } -const ETe = (t) => new rx(t.readBuf()); +const TTe = (t) => new rx(t.readBuf()); class Xy { constructor(e) { this.len = e; @@ -19081,7 +19081,7 @@ class Xy { return 1; } } -const _Te = (t) => new Xy(t.readLen()), ste = (t, e) => new q1({ guid: t, ...e, shouldLoad: e.shouldLoad || e.autoLoad || !1 }); +const CTe = (t) => new Xy(t.readLen()), rte = (t, e) => new q1({ guid: t, ...e, shouldLoad: e.shouldLoad || e.autoLoad || !1 }); class nx { constructor(e) { e._item && console.error("This document was already integrated as a sub-document. You should create a second instance instead with the same guid."), this.doc = e; @@ -19098,7 +19098,7 @@ class nx { return !0; } copy() { - return new nx(ste(this.doc.guid, this.opts)); + return new nx(rte(this.doc.guid, this.opts)); } splice(e) { throw Ac(); @@ -19121,7 +19121,7 @@ class nx { return 9; } } -const ATe = (t) => new nx(ste(t.readString(), t.readAny())); +const ETe = (t) => new nx(rte(t.readString(), t.readAny())); class $0 { constructor(e) { this.embed = e; @@ -19157,7 +19157,7 @@ class $0 { return 5; } } -const LTe = (t) => new $0(t.readJSON()); +const _Te = (t) => new $0(t.readJSON()); class Ri { constructor(e, r) { this.key = e, this.value = r; @@ -19195,8 +19195,8 @@ class Ri { return 6; } } -const RTe = (t) => new Ri(t.readKey(), t.readJSON()); -class H5 { +const ATe = (t) => new Ri(t.readKey(), t.readJSON()); +class G5 { constructor(e) { this.arr = e; } @@ -19210,10 +19210,10 @@ class H5 { return !0; } copy() { - return new H5(this.arr); + return new G5(this.arr); } splice(e) { - const r = new H5(this.arr.slice(e)); + const r = new G5(this.arr.slice(e)); return this.arr = this.arr.slice(0, e), r; } mergeWith(e) { @@ -19237,13 +19237,13 @@ class H5 { return 2; } } -const MTe = (t) => { +const LTe = (t) => { const e = t.readLen(), r = []; for (let n = 0; n < e; n++) { const i = t.readString(); i === "undefined" ? r.push(void 0) : r.push(JSON.parse(i)); } - return new H5(r); + return new G5(r); }; class r0 { constructor(e) { @@ -19286,7 +19286,7 @@ class r0 { return 8; } } -const DTe = (t) => { +const RTe = (t) => { const e = t.readLen(), r = []; for (let n = 0; n < e; n++) r.push(t.readAny()); @@ -19330,15 +19330,15 @@ class Pc { return 4; } } -const NTe = (t) => new Pc(t.readString()), ITe = [ +const MTe = (t) => new Pc(t.readString()), DTe = [ + hTe, dTe, - gTe, + yTe, xTe, + bTe, OTe, - wTe, - STe, - TTe -], PTe = 0, $Te = 1, BTe = 2, FTe = 3, zTe = 4, VTe = 5, UTe = 6; + kTe +], NTe = 0, ITe = 1, PTe = 2, $Te = 3, BTe = 4, FTe = 5, zTe = 6; class Gc { constructor(e) { this.type = e; @@ -19388,19 +19388,19 @@ class Gc { return 7; } } -const qTe = (t) => new Gc(ITe[t.readTypeRef()](t)), Q7 = (t, e) => { +const VTe = (t) => new Gc(DTe[t.readTypeRef()](t)), q7 = (t, e) => { let r = e, n = 0, i; do - n > 0 && (r = pr(r.client, r.clock + n)), i = y4(t, r), n = r.clock - i.id.clock, r = i.redone; + n > 0 && (r = pr(r.client, r.clock + n)), i = v4(t, r), n = r.clock - i.id.clock, r = i.redone; while (r !== null && i instanceof nn); return { item: i, diff: n }; -}, qM = (t, e) => { +}, zM = (t, e) => { for (; t !== null && t.keep !== e; ) t.keep = e, t = t.parent._item; -}, X5 = (t, e, r) => { +}, H5 = (t, e, r) => { const { client: n, clock: i } = e.id, s = new nn( pr(n, i + r), e, @@ -19412,13 +19412,13 @@ const qTe = (t) => new Gc(ITe[t.readTypeRef()](t)), Q7 = (t, e) => { e.content.splice(r) ); return e.deleted && s.markDeleted(), e.keep && (s.keep = !0), e.redone !== null && (s.redone = pr(e.redone.client, e.redone.clock + r)), e.right = s, s.right !== null && (s.right.left = s), t._mergeStructs.push(s), s.parentSub !== null && s.right === null && s.parent._map.set(s.parentSub, s), e.length = r, s; -}, mz = (t, e) => rke(t, (r) => ex(r.deletions, e)), ate = (t, e, r, n, i, s) => { +}, dz = (t, e) => eke(t, (r) => ex(r.deletions, e)), nte = (t, e, r, n, i, s) => { const a = t.doc, o = a.store, l = a.clientID, u = e.redone; if (u !== null) return Ca(t, u); let h = e.parent._item, f = null, d; if (h !== null && h.deleted === !0) { - if (h.redone === null && (!r.has(h) || ate(t, h, r, n, i, s) === null)) + if (h.redone === null && (!r.has(h) || nte(t, h, r, n, i, s) === null)) return null; for (; h.redone !== null; ) h = Ca(t, h.redone); @@ -19446,7 +19446,7 @@ const qTe = (t) => new Gc(ITe[t.readTypeRef()](t)), Q7 = (t, e) => { d = d.right; } } else if (d = null, e.right && !i) { - for (f = e; f !== null && f.right !== null && (f.right.redone || ex(n, f.right.id) || mz(s.undoStack, f.right.id) || mz(s.redoStack, f.right.id)); ) + for (f = e; f !== null && f.right !== null && (f.right.redone || ex(n, f.right.id) || dz(s.undoStack, f.right.id) || dz(s.redoStack, f.right.id)); ) for (f = f.right; f.redone; ) f = Ca(t, f.redone); if (f && f.right !== null) @@ -19463,35 +19463,35 @@ const qTe = (t) => new Gc(ITe[t.readTypeRef()](t)), Q7 = (t, e) => { e.parentSub, e.content.copy() ); - return e.redone = m, qM(v, !0), v.integrate(t, 0), v; + return e.redone = m, zM(v, !0), v.integrate(t, 0), v; }; -class nn extends UM { +class nn extends FM { constructor(e, r, n, i, s, a, o, l) { - super(e, l.getLength()), this.origin = n, this.left = r, this.right = i, this.rightOrigin = s, this.parent = a, this.parentSub = o, this.redone = null, this.content = l, this.info = this.content.isCountable() ? QF : 0; + super(e, l.getLength()), this.origin = n, this.left = r, this.right = i, this.rightOrigin = s, this.parent = a, this.parentSub = o, this.redone = null, this.content = l, this.info = this.content.isCountable() ? UF : 0; } set marker(e) { - (this.info & UE) > 0 !== e && (this.info ^= UE); + (this.info & zE) > 0 !== e && (this.info ^= zE); } get marker() { - return (this.info & UE) > 0; + return (this.info & zE) > 0; } get keep() { - return (this.info & YF) > 0; + return (this.info & VF) > 0; } set keep(e) { - this.keep !== e && (this.info ^= YF); + this.keep !== e && (this.info ^= VF); } get countable() { - return (this.info & QF) > 0; + return (this.info & UF) > 0; } get deleted() { - return (this.info & VE) > 0; + return (this.info & FE) > 0; } set deleted(e) { - this.deleted !== e && (this.info ^= VE); + this.deleted !== e && (this.info ^= FE); } markDeleted() { - this.info |= VE; + this.info |= FE; } getMissing(e, r) { if (this.origin && this.origin.client !== this.id.client && this.origin.clock >= ti(r, this.origin.client)) @@ -19500,18 +19500,18 @@ class nn extends UM { return this.rightOrigin.client; if (this.parent && this.parent.constructor === Kp && this.id.client !== this.parent.client && this.parent.clock >= ti(r, this.parent.client)) return this.parent.client; - if (this.origin && (this.left = oz(e, r, this.origin), this.origin = this.left.lastId), this.rightOrigin && (this.right = Ca(e, this.rightOrigin), this.rightOrigin = this.right.id), this.left && this.left.constructor === Ao || this.right && this.right.constructor === Ao) + if (this.origin && (this.left = iz(e, r, this.origin), this.origin = this.left.lastId), this.rightOrigin && (this.right = Ca(e, this.rightOrigin), this.rightOrigin = this.right.id), this.left && this.left.constructor === Ao || this.right && this.right.constructor === Ao) this.parent = null; else if (!this.parent) this.left && this.left.constructor === nn && (this.parent = this.left.parent, this.parentSub = this.left.parentSub), this.right && this.right.constructor === nn && (this.parent = this.right.parent, this.parentSub = this.right.parentSub); else if (this.parent.constructor === Kp) { - const n = y4(r, this.parent); + const n = v4(r, this.parent); n.constructor === Ao ? this.parent = null : this.parent = n.content.type; } return null; } integrate(e, r) { - if (r > 0 && (this.id.clock += r, this.left = oz(e, e.doc.store, pr(this.id.client, this.id.clock - 1)), this.origin = this.left.lastId, this.content = this.content.splice(r), this.length -= r), this.parent) { + if (r > 0 && (this.id.clock += r, this.left = iz(e, e.doc.store, pr(this.id.client, this.id.clock - 1)), this.origin = this.left.lastId, this.content = this.content.splice(r), this.length -= r), this.parent) { if (!this.left && (!this.right || this.right.left !== null) || this.left && this.left.right !== this.right) { let n = this.left, i; if (n !== null) @@ -19528,8 +19528,8 @@ class nn extends UM { n = i, s.clear(); else if (Dp(this.rightOrigin, i.rightOrigin)) break; - } else if (i.origin !== null && a.has(y4(e.doc.store, i.origin))) - s.has(y4(e.doc.store, i.origin)) || (n = i, s.clear()); + } else if (i.origin !== null && a.has(v4(e.doc.store, i.origin))) + s.has(v4(e.doc.store, i.origin)) || (n = i, s.clear()); else break; i = i.right; @@ -19548,7 +19548,7 @@ class nn extends UM { n = this.parent._start, this.parent._start = this; this.right = n; } - this.right !== null ? this.right.left = this : this.parentSub !== null && (this.parent._map.set(this.parentSub, this), this.left !== null && this.left.delete(e)), this.parentSub === null && this.countable && !this.deleted && (this.parent._length += this.length), zee(e.doc.store, this), this.content.integrate(e, this), cz(e, this.parent, this.parentSub), (this.parent._item !== null && this.parent._item.deleted || this.parentSub !== null && this.right !== null) && this.delete(e); + this.right !== null ? this.right.left = this : this.parentSub !== null && (this.parent._map.set(this.parentSub, this), this.left !== null && this.left.delete(e)), this.parentSub === null && this.countable && !this.deleted && (this.parent._length += this.length), $ee(e.doc.store, this), this.content.integrate(e, this), az(e, this.parent, this.parentSub), (this.parent._item !== null && this.parent._item.deleted || this.parentSub !== null && this.right !== null) && this.delete(e); } else new Ao(this.id, this.length).integrate(e, 0); } @@ -19579,22 +19579,22 @@ class nn extends UM { delete(e) { if (!this.deleted) { const r = this.parent; - this.countable && this.parentSub === null && (r._length -= this.length), this.markDeleted(), Yy(e.deleteSet, this.id.client, this.id.clock, this.length), cz(e, r, this.parentSub), this.content.delete(e); + this.countable && this.parentSub === null && (r._length -= this.length), this.markDeleted(), Yy(e.deleteSet, this.id.client, this.id.clock, this.length), az(e, r, this.parentSub), this.content.delete(e); } } gc(e, r) { if (!this.deleted) throw Il(); - this.content.gc(e), r ? HSe(e, this, new Ao(this.id, this.length)) : this.content = new Xy(this.length); + this.content.gc(e), r ? WSe(e, this, new Ao(this.id, this.length)) : this.content = new Xy(this.length); } write(e, r) { - const n = r > 0 ? pr(this.id.client, this.id.clock + r - 1) : this.origin, i = this.rightOrigin, s = this.parentSub, a = this.content.getRef() & JS | (n === null ? 0 : ao) | (i === null ? 0 : _u) | (s === null ? 0 : zy); + const n = r > 0 ? pr(this.id.client, this.id.clock + r - 1) : this.origin, i = this.rightOrigin, s = this.parentSub, a = this.content.getRef() & KS | (n === null ? 0 : ao) | (i === null ? 0 : _u) | (s === null ? 0 : zy); if (e.writeInfo(a), n !== null && e.writeLeftID(n), i !== null && e.writeRightID(i), n === null && i === null) { const o = this.parent; if (o._item !== void 0) { const l = o._item; if (l === null) { - const u = $ee(o); + const u = Nee(o); e.writeParentInfo(!0), e.writeString(u); } else e.writeParentInfo(!1), e.writeLeftID(l.id); @@ -19605,24 +19605,24 @@ class nn extends UM { this.content.write(e, r); } } -const ote = (t, e) => YTe[e & JS](t), YTe = [ +const ite = (t, e) => UTe[e & KS](t), UTe = [ () => { Il(); }, - _Te, - MTe, - ETe, - NTe, + CTe, LTe, - RTe, - qTe, - DTe, + TTe, + MTe, + _Te, ATe, + VTe, + RTe, + ETe, () => { Il(); } -], QTe = 10; -class Lo extends UM { +], qTe = 10; +class Lo extends FM { get deleted() { return !0; } @@ -19635,38 +19635,38 @@ class Lo extends UM { Il(); } write(e, r) { - e.writeInfo(QTe), Wt(e.restEncoder, this.length - r); + e.writeInfo(qTe), Wt(e.restEncoder, this.length - r); } getMissing(e, r) { return null; } } -const lte = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : {}, cte = "__ $YJS$ __"; -lte[cte] === !0 && console.error("Yjs was already imported. This breaks constructor checks and will lead to issues! - https://github.com/yjs/yjs/issues/438"); -lte[cte] = !0; -class YM { +const ste = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : {}, ate = "__ $YJS$ __"; +ste[ate] === !0 && console.error("Yjs was already imported. This breaks constructor checks and will lead to issues! - https://github.com/yjs/yjs/issues/438"); +ste[ate] = !0; +class VM { constructor(e, r) { this.yanchor = e, this.yhead = r; } toJSON() { return { - yanchor: sz(this.yanchor), - yhead: sz(this.yhead) + yanchor: rz(this.yanchor), + yhead: rz(this.yhead) }; } static fromJSON(e) { - return new YM(Qy(e.yanchor), Qy(e.yhead)); + return new VM(Qy(e.yanchor), Qy(e.yhead)); } } -class WTe { +class YTe { constructor(e, r) { - this.ytext = e, this.awareness = r, this.undoManager = new IM(e); + this.ytext = e, this.awareness = r, this.undoManager = new MM(e); } toYPos(e, r = 0) { - return z7(this.ytext, e, r); + return B7(this.ytext, e, r); } fromYPos(e) { - const r = V7(Qy(e), this.ytext.doc); + const r = F7(Qy(e), this.ytext.doc); if (r == null || r.type !== this.ytext) throw new Error("[y-codemirror] The position you want to retrieve was created by a different document"); return { @@ -19676,21 +19676,21 @@ class WTe { } toYRange(e) { const r = e.assoc, n = this.toYPos(e.anchor, r), i = this.toYPos(e.head, r); - return new YM(n, i); + return new VM(n, i); } fromYRange(e) { const r = this.fromYPos(e.yanchor), n = this.fromYPos(e.yhead); return r.pos === n.pos ? Ve.cursor(n.pos, n.assoc) : Ve.range(r.pos, n.pos); } } -const aT = _t.define({ +const sT = _t.define({ combine(t) { return t[t.length - 1]; } -}), W7 = Vl.define(); -class GTe { +}), Y7 = Vl.define(); +class QTe { constructor(e) { - this.view = e, this.conf = e.state.facet(aT), this._observer = (r, n) => { + this.view = e, this.conf = e.state.facet(sT), this._observer = (r, n) => { if (n.origin !== this.conf) { const i = r.delta, s = []; let a = 0; @@ -19698,12 +19698,12 @@ class GTe { const l = i[o]; l.insert != null ? s.push({ from: a, to: a, insert: l.insert }) : l.delete != null ? (s.push({ from: a, to: a + l.delete, insert: "" }), a += l.delete) : a += l.retain; } - e.dispatch({ changes: s, annotations: [W7.of(this.conf)] }); + e.dispatch({ changes: s, annotations: [Y7.of(this.conf)] }); } }, this._ytext = this.conf.ytext, this._ytext.observe(this._observer); } update(e) { - if (!e.docChanged || e.transactions.length > 0 && e.transactions[0].annotation(W7) === this.conf) + if (!e.docChanged || e.transactions.length > 0 && e.transactions[0].annotation(Y7) === this.conf) return; const r = this.conf.ytext; r.doc.transact(() => { @@ -19719,7 +19719,7 @@ class GTe { this._ytext.unobserve(this._observer); } } -const HTe = on.fromClass(GTe), XTe = ht.baseTheme({ +const WTe = on.fromClass(QTe), GTe = ht.baseTheme({ ".cm-ySelection": {}, ".cm-yLineSelection": { padding: 0, @@ -19773,19 +19773,19 @@ const HTe = on.fromClass(GTe), XTe = ht.baseTheme({ opacity: 1, transitionDelay: "0s" } -}), ZTe = Vl.define(); -class jTe extends za { +}), HTe = Vl.define(); +class XTe extends za { constructor(e, r) { super(), this.color = e, this.name = r; } toDOM() { - return QE("span", [Za("class", "cm-ySelectionCaret"), Za("style", `background-color: ${this.color}; border-color: ${this.color}`)], [ + return qE("span", [Za("class", "cm-ySelectionCaret"), Za("style", `background-color: ${this.color}; border-color: ${this.color}`)], [ Mw("\u2060"), - QE("div", [ + qE("div", [ Za("class", "cm-ySelectionCaretDot") ]), Mw("\u2060"), - QE("div", [ + qE("div", [ Za("class", "cm-ySelectionInfo") ], [ Mw(this.name) @@ -19809,10 +19809,10 @@ class jTe extends za { return !0; } } -class KTe { +class ZTe { constructor(e) { - this.conf = e.state.facet(aT), this._listener = ({ added: r, updated: n, removed: i }, s, a) => { - r.concat(n).concat(i).findIndex((l) => l !== this.conf.awareness.doc.clientID) >= 0 && e.dispatch({ annotations: [ZTe.of([])] }); + this.conf = e.state.facet(sT), this._listener = ({ added: r, updated: n, removed: i }, s, a) => { + r.concat(n).concat(i).findIndex((l) => l !== this.conf.awareness.doc.clientID) >= 0 && e.dispatch({ annotations: [HTe.of([])] }); }, this._awareness = this.conf.awareness, this._awareness.on("change", this._listener), this.decorations = Er.of([]); } destroy() { @@ -19823,8 +19823,8 @@ class KTe { if (a != null) { const o = e.view.hasFocus && e.view.dom.ownerDocument.hasFocus(), l = o ? e.state.selection.main : null, u = a.cursor == null ? null : Qy(a.cursor.anchor), h = a.cursor == null ? null : Qy(a.cursor.head); if (l != null) { - const f = z7(r, l.anchor), d = z7(r, l.head); - (a.cursor == null || !az(u, f) || !az(h, d)) && i.setLocalStateField("cursor", { + const f = B7(r, l.anchor), d = B7(r, l.head); + (a.cursor == null || !nz(u, f) || !nz(h, d)) && i.setLocalStateField("cursor", { anchor: f, head: d }); @@ -19837,10 +19837,10 @@ class KTe { const u = o.cursor; if (u == null || u.anchor == null || u.head == null) return; - const h = V7(u.anchor, n), f = V7(u.head, n); + const h = F7(u.anchor, n), f = F7(u.head, n); if (h == null || f == null || h.type !== r || f.type !== r) return; - const { color: d = "#30bced", name: p = "Anonymous" } = o.user || {}, g = o.user && o.user.colorLight || d + "33", m = KS(h.index, f.index), v = zf(h.index, f.index), y = e.view.state.doc.lineAt(m), b = e.view.state.doc.lineAt(v); + const { color: d = "#30bced", name: p = "Anonymous" } = o.user || {}, g = o.user && o.user.colorLight || d + "33", m = jS(h.index, f.index), v = zf(h.index, f.index), y = e.view.state.doc.lineAt(m), b = e.view.state.doc.lineAt(v); if (y.number === b.number) s.push({ from: m, @@ -19883,15 +19883,15 @@ class KTe { value: Et.widget({ side: f.index - h.index > 0 ? -1 : 1, block: !1, - widget: new jTe(d, p) + widget: new XTe(d, p) }) }); }), this.decorations = Et.set(s, !0); } } -const JTe = on.fromClass(KTe, { +const jTe = on.fromClass(ZTe, { decorations: (t) => t.decorations -}), eCe = () => { +}), KTe = () => { let t = !0; return (e, r) => { if (t) { @@ -19905,7 +19905,7 @@ const JTe = on.fromClass(KTe, { r !== void 0 && r(); }; }; -class tCe { +class JTe { constructor(e) { this.undoManager = e; } @@ -19922,14 +19922,14 @@ class tCe { return this.undoManager.redo() != null; } } -const oT = _t.define({ +const aT = _t.define({ combine(t) { return t[t.length - 1]; } }); -class rCe { +class eCe { constructor(e) { - this.view = e, this.conf = e.state.facet(oT), this._undoManager = this.conf.undoManager, this.syncConf = e.state.facet(aT), this._beforeChangeSelection = null, this._mux = eCe(), this._onStackItemAdded = ({ stackItem: r, changedParentTypes: n }) => { + this.view = e, this.conf = e.state.facet(aT), this._undoManager = this.conf.undoManager, this.syncConf = e.state.facet(sT), this._beforeChangeSelection = null, this._mux = KTe(), this._onStackItemAdded = ({ stackItem: r, changedParentTypes: n }) => { n.has(this.syncConf.ytext) && this._beforeChangeSelection && !r.meta.has(this) && r.meta.set(this, this._beforeChangeSelection); }, this._onStackItemPopped = ({ stackItem: r }) => { const n = r.meta.get(this); @@ -19942,34 +19942,34 @@ class rCe { }, this._undoManager.on("stack-item-added", this._onStackItemAdded), this._undoManager.on("stack-item-popped", this._onStackItemPopped), this._undoManager.addTrackedOrigin(this.syncConf); } update(e) { - e.selectionSet && (e.transactions.length === 0 || e.transactions[0].annotation(W7) !== this.syncConf) && this._storeSelection(); + e.selectionSet && (e.transactions.length === 0 || e.transactions[0].annotation(Y7) !== this.syncConf) && this._storeSelection(); } destroy() { this._undoManager.off("stack-item-added", this._onStackItemAdded), this._undoManager.off("stack-item-popped", this._onStackItemPopped), this._undoManager.removeTrackedOrigin(this.syncConf); } } -const nCe = on.fromClass(rCe), iCe = ({ state: t, dispatch: e }) => t.facet(oT).undo() || !0, sCe = ({ state: t, dispatch: e }) => t.facet(oT).redo() || !0, aCe = (t, e, { undoManager: r = new IM(t) } = {}) => { - const n = new WTe(t, e), i = [ - aT.of(n), - HTe +const tCe = on.fromClass(eCe), rCe = ({ state: t, dispatch: e }) => t.facet(aT).undo() || !0, nCe = ({ state: t, dispatch: e }) => t.facet(aT).redo() || !0, iCe = (t, e, { undoManager: r = new MM(t) } = {}) => { + const n = new YTe(t, e), i = [ + sT.of(n), + WTe ]; return e && i.push( - XTe, - JTe + GTe, + jTe ), r !== !1 && i.push( - oT.of(new tCe(r)), - nCe, + aT.of(new JTe(r)), + tCe, ht.domEventHandlers({ beforeinput(s, a) { - return s.inputType === "historyUndo" ? iCe(a) : s.inputType === "historyRedo" ? sCe(a) : !1; + return s.inputType === "historyUndo" ? rCe(a) : s.inputType === "historyRedo" ? nCe(a) : !1; } }) ), i; }; -class Z5 { +class X5 { static create(e, r, n, i, s) { let a = i + (i << 8) + e + (r << 4) | 0; - return new Z5(e, r, n, a, s, [], []); + return new X5(e, r, n, a, s, [], []); } constructor(e, r, n, i, s, a, o) { this.type = e, this.value = r, this.from = n, this.hash = i, this.end = s, this.children = a, this.positions = o, this.hashProp = [[or.contextHash, i]]; @@ -19988,12 +19988,12 @@ var mt; (function(t) { t[t.Document = 1] = "Document", t[t.CodeBlock = 2] = "CodeBlock", t[t.FencedCode = 3] = "FencedCode", t[t.Blockquote = 4] = "Blockquote", t[t.HorizontalRule = 5] = "HorizontalRule", t[t.BulletList = 6] = "BulletList", t[t.OrderedList = 7] = "OrderedList", t[t.ListItem = 8] = "ListItem", t[t.ATXHeading1 = 9] = "ATXHeading1", t[t.ATXHeading2 = 10] = "ATXHeading2", t[t.ATXHeading3 = 11] = "ATXHeading3", t[t.ATXHeading4 = 12] = "ATXHeading4", t[t.ATXHeading5 = 13] = "ATXHeading5", t[t.ATXHeading6 = 14] = "ATXHeading6", t[t.SetextHeading1 = 15] = "SetextHeading1", t[t.SetextHeading2 = 16] = "SetextHeading2", t[t.HTMLBlock = 17] = "HTMLBlock", t[t.LinkReference = 18] = "LinkReference", t[t.Paragraph = 19] = "Paragraph", t[t.CommentBlock = 20] = "CommentBlock", t[t.ProcessingInstructionBlock = 21] = "ProcessingInstructionBlock", t[t.Escape = 22] = "Escape", t[t.Entity = 23] = "Entity", t[t.HardBreak = 24] = "HardBreak", t[t.Emphasis = 25] = "Emphasis", t[t.StrongEmphasis = 26] = "StrongEmphasis", t[t.Link = 27] = "Link", t[t.Image = 28] = "Image", t[t.InlineCode = 29] = "InlineCode", t[t.HTMLTag = 30] = "HTMLTag", t[t.Comment = 31] = "Comment", t[t.ProcessingInstruction = 32] = "ProcessingInstruction", t[t.URL = 33] = "URL", t[t.HeaderMark = 34] = "HeaderMark", t[t.QuoteMark = 35] = "QuoteMark", t[t.ListMark = 36] = "ListMark", t[t.LinkMark = 37] = "LinkMark", t[t.EmphasisMark = 38] = "EmphasisMark", t[t.CodeMark = 39] = "CodeMark", t[t.CodeText = 40] = "CodeText", t[t.CodeInfo = 41] = "CodeInfo", t[t.LinkTitle = 42] = "LinkTitle", t[t.LinkLabel = 43] = "LinkLabel"; })(mt || (mt = {})); -class oCe { +class sCe { constructor(e, r) { this.start = e, this.content = r, this.marks = [], this.parsers = []; } } -class lCe { +class aCe { constructor() { this.text = "", this.baseIndent = 0, this.basePos = 0, this.depth = 0, this.markers = [], this.pos = 0, this.indent = 0, this.next = -1; } @@ -20040,23 +20040,23 @@ class lCe { return e + this.text.slice(this.basePos); } } -function vz(t, e, r) { +function pz(t, e, r) { if (r.pos == r.text.length || t != e.block && r.indent >= e.stack[r.depth + 1].value + r.baseIndent) return !0; if (r.indent >= r.baseIndent + 4) return !1; - let n = (t.type == mt.OrderedList ? GM : WM)(r, e, !1); - return n > 0 && (t.type != mt.BulletList || QM(r, e, !1) < 0) && r.text.charCodeAt(r.pos + n - 1) == t.value; + let n = (t.type == mt.OrderedList ? YM : qM)(r, e, !1); + return n > 0 && (t.type != mt.BulletList || UM(r, e, !1) < 0) && r.text.charCodeAt(r.pos + n - 1) == t.value; } -const ute = { +const ote = { [mt.Blockquote](t, e, r) { return r.next != 62 ? !1 : (r.markers.push(Pr(mt.QuoteMark, e.lineStart + r.pos, e.lineStart + r.pos + 1)), r.moveBase(r.pos + (rl(r.text.charCodeAt(r.pos + 1)) ? 2 : 1)), t.end = e.lineStart + r.text.length, !0); }, [mt.ListItem](t, e, r) { return r.indent < r.baseIndent + t.value && r.next > -1 ? !1 : (r.moveBaseColumn(r.baseIndent + t.value), !0); }, - [mt.OrderedList]: vz, - [mt.BulletList]: vz, + [mt.OrderedList]: pz, + [mt.BulletList]: pz, [mt.Document]() { return !0; } @@ -20069,12 +20069,12 @@ function jv(t, e = 0) { e++; return e; } -function yz(t, e, r) { +function gz(t, e, r) { for (; e > r && rl(t.charCodeAt(e - 1)); ) e--; return e; } -function hte(t) { +function lte(t) { if (t.next != 96 && t.next != 126) return -1; let e = t.pos + 1; @@ -20089,10 +20089,10 @@ function hte(t) { } return e; } -function fte(t) { +function cte(t) { return t.next != 62 ? -1 : t.text.charCodeAt(t.pos + 1) == 32 ? 2 : 1; } -function QM(t, e, r) { +function UM(t, e, r) { if (t.next != 42 && t.next != 45 && t.next != 95) return -1; let n = 1; @@ -20103,18 +20103,18 @@ function QM(t, e, r) { else if (!rl(s)) return -1; } - return r && t.next == 45 && gte(t) > -1 && t.depth == e.stack.length || n < 3 ? -1 : 1; + return r && t.next == 45 && fte(t) > -1 && t.depth == e.stack.length || n < 3 ? -1 : 1; } -function dte(t, e) { +function ute(t, e) { for (let r = t.stack.length - 1; r >= 0; r--) if (t.stack[r].type == e) return !0; return !1; } -function WM(t, e, r) { - return (t.next == 45 || t.next == 43 || t.next == 42) && (t.pos == t.text.length - 1 || rl(t.text.charCodeAt(t.pos + 1))) && (!r || dte(e, mt.BulletList) || t.skipSpace(t.pos + 2) < t.text.length) ? 1 : -1; +function qM(t, e, r) { + return (t.next == 45 || t.next == 43 || t.next == 42) && (t.pos == t.text.length - 1 || rl(t.text.charCodeAt(t.pos + 1))) && (!r || ute(e, mt.BulletList) || t.skipSpace(t.pos + 2) < t.text.length) ? 1 : -1; } -function GM(t, e, r) { +function YM(t, e, r) { let n = t.pos, i = t.next; for (; i >= 48 && i <= 57; ) { n++; @@ -20122,9 +20122,9 @@ function GM(t, e, r) { return -1; i = t.text.charCodeAt(n); } - return n == t.pos || n > t.pos + 9 || i != 46 && i != 41 || n < t.text.length - 1 && !rl(t.text.charCodeAt(n + 1)) || r && !dte(e, mt.OrderedList) && (t.skipSpace(n + 1) == t.text.length || n > t.pos + 1 || t.next != 49) ? -1 : n + 1 - t.pos; + return n == t.pos || n > t.pos + 9 || i != 46 && i != 41 || n < t.text.length - 1 && !rl(t.text.charCodeAt(n + 1)) || r && !ute(e, mt.OrderedList) && (t.skipSpace(n + 1) == t.text.length || n > t.pos + 1 || t.next != 49) ? -1 : n + 1 - t.pos; } -function pte(t) { +function hte(t) { if (t.next != 35) return -1; let e = t.pos + 1; @@ -20135,7 +20135,7 @@ function pte(t) { let r = e - t.pos; return r > 6 ? -1 : r; } -function gte(t) { +function fte(t) { if (t.next != 45 && t.next != 61 || t.indent >= t.baseIndent + 4) return -1; let e = t.pos + 1; @@ -20146,25 +20146,25 @@ function gte(t) { e++; return e == t.text.length ? r : -1; } -const G7 = /^[ \t]*$/, mte = /-->/, vte = /\?>/, H7 = [ +const Q7 = /^[ \t]*$/, dte = /-->/, pte = /\?>/, W7 = [ [/^<(?:script|pre|style)(?:\s|>|$)/i, /<\/(?:script|pre|style)>/i], - [/^\s*" } } }), pre = /* @__PURE__ */ new or(), gre = /* @__PURE__ */ Ate.configure({ +}), ure = /* @__PURE__ */ zS({ commentTokens: { block: { open: "" } } }), hre = /* @__PURE__ */ new or(), fre = /* @__PURE__ */ Cte.configure({ props: [ - /* @__PURE__ */ P0.add((t) => !t.is("Block") || t.is("Document") || t8(t) != null ? void 0 : (e, r) => ({ from: r.doc.lineAt(e.from).to, to: e.to })), - /* @__PURE__ */ pre.add(t8), + /* @__PURE__ */ P0.add((t) => !t.is("Block") || t.is("Document") || J7(t) != null ? void 0 : (e, r) => ({ from: r.doc.lineAt(e.from).to, to: e.to })), + /* @__PURE__ */ hre.add(J7), /* @__PURE__ */ $1.add({ Document: () => null }), /* @__PURE__ */ $h.add({ - Document: dre + Document: ure }) ] }); -function t8(t) { +function J7(t) { let e = /^(?:ATX|Setext)Heading(\d)$/.exec(t.name); return e ? +e[1] : void 0; } -function q6e(t, e) { +function V6e(t, e) { let r = t; for (; ; ) { let n = r.nextSibling, i; - if (!n || (i = t8(n.type)) != null && i <= e) + if (!n || (i = J7(n.type)) != null && i <= e) break; r = n; } return r.to; } -const Y6e = /* @__PURE__ */ qS.of((t, e, r) => { +const U6e = /* @__PURE__ */ US.of((t, e, r) => { for (let n = Jr(t).resolveInner(r, -1); n && !(n.from < e); n = n.parent) { - let i = n.type.prop(pre); + let i = n.type.prop(hre); if (i == null) continue; - let s = q6e(n, i); + let s = V6e(n, i); if (s > r) return { from: r, to: s }; } return null; }); -function jM(t) { - return new no(dre, t, [Y6e], "markdown"); +function HM(t) { + return new no(ure, t, [U6e], "markdown"); } -const Q6e = /* @__PURE__ */ jM(gre), W6e = /* @__PURE__ */ gre.configure([LCe, MCe, RCe, DCe, { +const q6e = /* @__PURE__ */ HM(fre), Y6e = /* @__PURE__ */ fre.configure([_Ce, LCe, ACe, RCe, { props: [ /* @__PURE__ */ P0.add({ Table: (t, e) => ({ from: e.doc.lineAt(t.from).to, to: t.to }) }) ] -}]), mre = /* @__PURE__ */ jM(W6e); -function G6e(t, e) { +}]), dre = /* @__PURE__ */ HM(Y6e); +function Q6e(t, e) { return (r) => { if (r && t) { let n = null; - if (r = /\S*/.exec(r)[0], typeof t == "function" ? n = t(r) : n = A5.matchLanguageName(t, r, !0), n instanceof A5) + if (r = /\S*/.exec(r)[0], typeof t == "function" ? n = t(r) : n = _5.matchLanguageName(t, r, !0), n instanceof _5) return n.support ? n.support.language.parser : My.getSkippingParser(n.load()); if (n) return n.parser; @@ -24692,11 +24692,11 @@ class Bw { } } marker(e, r) { - let n = this.node.name == "OrderedList" ? String(+yre(this.item, e)[2] + r) : ""; + let n = this.node.name == "OrderedList" ? String(+gre(this.item, e)[2] + r) : ""; return this.spaceBefore + n + this.type + this.spaceAfter; } } -function vre(t, e) { +function pre(t, e) { let r = []; for (let i = t; i && i.name != "Document"; i = i.parent) (i.name == "ListItem" || i.name == "Blockquote" || i.name == "FencedCode") && r.push(i); @@ -24719,13 +24719,13 @@ function vre(t, e) { } return n; } -function yre(t, e) { +function gre(t, e) { return /^(\s*)(\d+)(?=[.)])/.exec(e.sliceString(t.from, t.from + 10)); } -function o6(t, e, r, n = 0) { +function s6(t, e, r, n = 0) { for (let i = -1, s = t; ; ) { if (s.name == "ListItem") { - let o = yre(s, e), l = +o[2]; + let o = gre(s, e), l = +o[2]; if (i >= 0) { if (l != i + 1) return; @@ -24739,7 +24739,7 @@ function o6(t, e, r, n = 0) { s = a; } } -function r8(t, e) { +function e8(t, e) { let r = /^[ \t]*/.exec(t)[0].length; if (!r || e.facet(Xb) != " ") return t; @@ -24748,11 +24748,11 @@ function r8(t, e) { s >= 4 ? (i += " ", s -= 4) : (i += " ", s--); return i + t.slice(r); } -const H6e = ({ state: t, dispatch: e }) => { +const W6e = ({ state: t, dispatch: e }) => { let r = Jr(t), { doc: n } = t, i = null, s = t.changeByRange((a) => { - if (!a.empty || !mre.isActiveAt(t, a.from)) + if (!a.empty || !dre.isActiveAt(t, a.from)) return i = { range: a }; - let o = a.from, l = n.lineAt(o), u = vre(r.resolveInner(o, -1), n); + let o = a.from, l = n.lineAt(o), u = pre(r.resolveInner(o, -1), n); for (; u.length && u[u.length - 1].from > o - l.from; ) u.pop(); if (!u.length) @@ -24766,12 +24766,12 @@ const H6e = ({ state: t, dispatch: e }) => { let v = u.length > 1 ? u[u.length - 2] : null, y, b = ""; v && v.item ? (y = l.from + v.from, b = v.marker(n, 1)) : y = l.from + (v ? v.to : 0); let w = [{ from: y, to: o, insert: b }]; - return h.node.name == "OrderedList" && o6(h.item, n, w, -2), v && v.node.name == "OrderedList" && o6(v.item, n, w), { range: Ve.cursor(y + b.length), changes: w }; + return h.node.name == "OrderedList" && s6(h.item, n, w, -2), v && v.node.name == "OrderedList" && s6(v.item, n, w), { range: Ve.cursor(y + b.length), changes: w }; } else { let v = ""; for (let y = 0, b = u.length - 2; y <= b; y++) v += u[y].blank(y < b ? Ml(l.text, 4, u[y + 1].from) - v.length : null, y < b); - return v = r8(v, t), { + return v = e8(v, t), { range: Ve.cursor(o + v.length + 1), changes: { from: l.from, insert: v + t.lineBreak } }; @@ -24787,7 +24787,7 @@ const H6e = ({ state: t, dispatch: e }) => { } } let d = []; - h.node.name == "OrderedList" && o6(h.item, n, d); + h.node.name == "OrderedList" && s6(h.item, n, d); let p = h.item && h.item.from < l.from, g = ""; if (!p || /^[\s\d.)\-+*>]*/.exec(l.text)[0].length >= h.to) for (let v = 0, y = u.length - 1; v <= y; v++) @@ -24795,18 +24795,18 @@ const H6e = ({ state: t, dispatch: e }) => { let m = o; for (; m > l.from && /\s/.test(l.text.charAt(m - l.from - 1)); ) m--; - return g = r8(g, t), d.push({ from: m, to: o, insert: t.lineBreak + g }), { range: Ve.cursor(m + g.length + 1), changes: d }; + return g = e8(g, t), d.push({ from: m, to: o, insert: t.lineBreak + g }), { range: Ve.cursor(m + g.length + 1), changes: d }; }); return i ? !1 : (e(t.update(s, { scrollIntoView: !0, userEvent: "input" })), !0); }; -function rV(t) { +function Jz(t) { return t.name == "QuoteMark" || t.name == "ListMark"; } -function X6e(t, e) { +function G6e(t, e) { let r = t.resolveInner(e, -1), n = e; - rV(r) && (n = r.from, r = r.parent); + Jz(r) && (n = r.from, r = r.parent); for (let i; i = r.childBefore(n); ) - if (rV(i)) + if (Jz(i)) n = i.from; else if (i.name == "OrderedList" || i.name == "BulletList") r = i.lastChild, n = r.to; @@ -24814,11 +24814,11 @@ function X6e(t, e) { break; return r; } -const Z6e = ({ state: t, dispatch: e }) => { +const H6e = ({ state: t, dispatch: e }) => { let r = Jr(t), n = null, i = t.changeByRange((s) => { let a = s.from, { doc: o } = t; - if (s.empty && mre.isActiveAt(t, s.from)) { - let l = o.lineAt(a), u = vre(X6e(r, a), o); + if (s.empty && dre.isActiveAt(t, s.from)) { + let l = o.lineAt(a), u = pre(G6e(r, a), o); if (u.length) { let h = u[u.length - 1], f = h.to - h.spaceAfter.length + (h.spaceAfter ? 1 : 0); if (a - l.from > f && !/\S/.test(l.text.slice(f, a - l.from))) @@ -24830,7 +24830,7 @@ const Z6e = ({ state: t, dispatch: e }) => { let d = l.from + h.from; if (h.item && h.node.from < h.item.from && /\S/.test(l.text.slice(h.from, h.to))) { let p = h.blank(Ml(l.text, 4, h.to) - Ml(l.text, 4, h.from)); - return d == l.from && (p = r8(p, t)), { + return d == l.from && (p = e8(p, t)), { range: Ve.cursor(d + p.length), changes: { from: d, to: l.from + h.to, insert: p } }; @@ -24843,22 +24843,22 @@ const Z6e = ({ state: t, dispatch: e }) => { return n = { range: s }; }); return n ? !1 : (e(t.update(i, { scrollIntoView: !0, userEvent: "delete" })), !0); -}, j6e = [ - { key: "Enter", run: H6e }, - { key: "Backspace", run: Z6e } -], n8 = /* @__PURE__ */ V6e({ matchClosingTags: !1 }); -function K6e(t = {}) { - let { codeLanguages: e, defaultCodeLanguage: r, addKeymap: n = !0, base: { parser: i } = Q6e, completeHTMLTags: s = !0 } = t; - if (!(i instanceof lT)) +}, X6e = [ + { key: "Enter", run: W6e }, + { key: "Backspace", run: H6e } +], t8 = /* @__PURE__ */ F6e({ matchClosingTags: !1 }); +function Z6e(t = {}) { + let { codeLanguages: e, defaultCodeLanguage: r, addKeymap: n = !0, base: { parser: i } = q6e, completeHTMLTags: s = !0 } = t; + if (!(i instanceof oT)) throw new RangeError("Base parser provided to `markdown` should be a Markdown parser"); - let a = t.extensions ? [t.extensions] : [], o = [n8.support], l; + let a = t.extensions ? [t.extensions] : [], o = [t8.support], l; r instanceof Dy ? (o.push(r.support), l = r.language) : r && (l = r); - let u = e || l ? G6e(e, l) : void 0; - a.push(wCe({ codeParser: u, htmlParser: n8.language.parser })), n && o.push(zl.high(Cu.of(j6e))); - let h = jM(i.configure(a)); - return s && o.push(h.data.of({ autocomplete: J6e })), new Dy(h, o); + let u = e || l ? Q6e(e, l) : void 0; + a.push(bCe({ codeParser: u, htmlParser: t8.language.parser })), n && o.push(zl.high(Cu.of(X6e))); + let h = HM(i.configure(a)); + return s && o.push(h.data.of({ autocomplete: j6e })), new Dy(h, o); } -function J6e(t) { +function j6e(t) { let { state: e, pos: r } = t, n = /<[:\-\.\w\u00b7-\uffff]*$/.exec(e.sliceDoc(r - 25, r)); if (!n) return null; @@ -24871,25 +24871,25 @@ function J6e(t) { return { from: r - n[0].length, to: r, - options: e_e(), + options: K6e(), validFor: /^<[:\-\.\w\u00b7-\uffff]*$/ }; } -let l6 = null; -function e_e() { - if (l6) - return l6; - let t = B6e(new mM(dr.create({ extensions: n8 }), 0, !0)); - return l6 = t ? t.options : []; +let a6 = null; +function K6e() { + if (a6) + return a6; + let t = P6e(new dM(dr.create({ extensions: t8 }), 0, !0)); + return a6 = t ? t.options : []; } -function t_e(t) { +function J6e(t) { throw new Error('Could not dynamically require "' + t + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.'); } -var bre = { exports: {} }; -const r_e = {}, n_e = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +var mre = { exports: {} }; +const e_e = {}, t_e = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - default: r_e -}, Symbol.toStringTag, { value: "Module" })), i_e = /* @__PURE__ */ BZ(n_e); + default: e_e +}, Symbol.toStringTag, { value: "Module" })), r_e = /* @__PURE__ */ IZ(t_e); (function(t) { var e; (function() { @@ -24945,8 +24945,8 @@ const r_e = {}, n_e = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defin u(a.statusText); }; })), a.overrideMimeType && a.overrideMimeType("text/plain; charset=" + n), a.send(null), i ? s : a.responseText; - } else if (typeof t_e < "u") { - var o = i_e; + } else if (typeof J6e < "u") { + var o = r_e; try { if (o.existsSync(r)) return o.readFileSync(r, n); @@ -25180,44 +25180,44 @@ const r_e = {}, n_e = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defin } }; })(), t.exports = e; -})(bre); -const s_e = bre.exports, xre = _t.define({ +})(mre); +const n_e = mre.exports, vre = _t.define({ combine: (t) => t[t.length - 1] -}), a_e = Et.mark({ +}), i_e = Et.mark({ class: "cm-error" -}), o_e = (t) => Object.keys(t.rules).length > 0; -function nV(t) { +}), s_e = (t) => Object.keys(t.rules).length > 0; +function eV(t) { var s, a; let e = ((s = t.visibleRanges[0]) == null ? void 0 : s.from) || 0, r = ((a = t.visibleRanges[0]) == null ? void 0 : a.to) || void 0; - const n = new Hi(), i = t.state.facet(xre); - return o_e(i) && t.state.doc.sliceString(e, r).replaceAll(/\w+/g, (o, l) => !i.check(o) && n.add(e + l, e + l + o.length, a_e)), n.finish(); + const n = new Hi(), i = t.state.facet(vre); + return s_e(i) && t.state.doc.sliceString(e, r).replaceAll(/\w+/g, (o, l) => !i.check(o) && n.add(e + l, e + l + o.length, i_e)), n.finish(); } -const l_e = on.fromClass(class { +const a_e = on.fromClass(class { constructor(t) { - this.decorations = nV(t); + this.decorations = eV(t); } update(t) { - (t.docChanged || t.viewportChanged) && (this.decorations = nV(t.view)); + (t.docChanged || t.viewportChanged) && (this.decorations = eV(t.view)); } }, { decorations: (t) => t.decorations }); -function c_e(t) { +function o_e(t) { if (!t) return []; let { dict: e = "en_US", dictionaryPath: r = "/dictionaries" } = t; - return [xre.of(new s_e(e, null, null, { + return [vre.of(new n_e(e, null, null, { dictionaryPath: r - })), l_e]; + })), a_e]; } -const u_e = "cm-link", h_e = [{ +const l_e = "cm-link", c_e = [{ target: /`[^`\n]+`/g, cssClass: "cm-mono" }]; -function iV(t, e, r, n) { +function tV(t, e, r, n) { var l, u; let i = ((l = t.visibleRanges[0]) == null ? void 0 : l.from) || 0, s = ((u = t.visibleRanges[0]) == null ? void 0 : u.to) || void 0; const a = new Hi(), o = t.state.doc.sliceString(i, s); @@ -25235,7 +25235,7 @@ function iV(t, e, r, n) { match: f }) => { let d = { - class: u_e + class: l_e }; h.cssClass && (d.class = h.cssClass); let p; @@ -25249,89 +25249,89 @@ function iV(t, e, r, n) { })), a.add(h.from + f.index, h.from + f.index + f[0].length, Et.mark(d)), p == null || p(); }), a.finish(); } -const KM = (t, e, r) => { +const XM = (t, e, r) => { t || (t = []); - const n = t.concat(h_e); + const n = t.concat(c_e); return on.fromClass(class { constructor(i) { - this.decorations = iV(i, n, e, r); + this.decorations = tV(i, n, e, r); } update(i) { - (i.docChanged || i.viewportChanged) && (this.decorations = iV(i.view, n, e, r)); + (i.docChanged || i.viewportChanged) && (this.decorations = tV(i.view, n, e, r)); } }, { decorations: (i) => i.decorations }); -}, wre = /* @__PURE__ */ new Map(); -class f_e { +}, yre = /* @__PURE__ */ new Map(); +class u_e { constructor(e) { - this.room = e, this.onmessage = null, this._onChange = (r) => r.key === e && this.onmessage !== null && this.onmessage({ data: iSe(r.newValue || "") }), Pke(this._onChange); + this.room = e, this.onmessage = null, this._onChange = (r) => r.key === e && this.onmessage !== null && this.onmessage({ data: rSe(r.newValue || "") }), Nke(this._onChange); } postMessage(e) { - mee.setItem(this.room, nSe(Kke(e))); + dee.setItem(this.room, tSe(Zke(e))); } close() { - $ke(this._onChange); + Ike(this._onChange); } } -const d_e = typeof BroadcastChannel > "u" ? f_e : BroadcastChannel, JM = (t) => nh(wre, t, () => { - const e = Jd(), r = new d_e(t); +const h_e = typeof BroadcastChannel > "u" ? u_e : BroadcastChannel, ZM = (t) => nh(yre, t, () => { + const e = Jd(), r = new h_e(t); return r.onmessage = (n) => e.forEach((i) => i(n.data, "broadcastchannel")), { bc: r, subs: e }; -}), p_e = (t, e) => (JM(t).subs.add(e), e), g_e = (t, e) => { - const r = JM(t), n = r.subs.delete(e); - return n && r.subs.size === 0 && (r.bc.close(), wre.delete(t)), n; +}), f_e = (t, e) => (ZM(t).subs.add(e), e), d_e = (t, e) => { + const r = ZM(t), n = r.subs.delete(e); + return n && r.subs.size === 0 && (r.bc.close(), yre.delete(t)), n; }, Cp = (t, e, r = null) => { - const n = JM(t); + const n = ZM(t); n.bc.postMessage(e), n.subs.forEach((i) => i(e, r)); -}, Ore = 0, eD = 1, kre = 2, i8 = (t, e) => { - Wt(t, Ore); - const r = VSe(e); +}, bre = 0, jM = 1, xre = 2, r8 = (t, e) => { + Wt(t, bre); + const r = FSe(e); Zn(t, r); -}, Sre = (t, e, r) => { - Wt(t, eD), Zn(t, $Se(e, r)); -}, m_e = (t, e, r) => Sre(e, r, Es(t)), Tre = (t, e, r) => { +}, wre = (t, e, r) => { + Wt(t, jM), Zn(t, ISe(e, r)); +}, p_e = (t, e, r) => wre(e, r, Es(t)), Ore = (t, e, r) => { try { - NSe(e, Es(t), r); + MSe(e, Es(t), r); } catch (n) { console.error("Caught error while handling a Yjs update", n); } -}, v_e = (t, e) => { - Wt(t, kre), Zn(t, e); -}, y_e = Tre, b_e = (t, e, r, n) => { +}, g_e = (t, e) => { + Wt(t, xre), Zn(t, e); +}, m_e = Ore, v_e = (t, e, r, n) => { const i = lr(t); switch (i) { - case Ore: - m_e(t, e, r); + case bre: + p_e(t, e, r); break; - case eD: - Tre(t, r, n); + case jM: + Ore(t, r, n); break; - case kre: - y_e(t, r, n); + case xre: + m_e(t, r, n); break; default: throw new Error("Unknown message type"); } return i; -}, x_e = 0, w_e = (t, e, r) => { +}, y_e = 0, b_e = (t, e, r) => { switch (lr(t)) { - case x_e: + case y_e: r(e, Zh(t)); } -}, c6 = 3e4; -class Cre extends jS { +}, o6 = 3e4; +class kre extends ZS { constructor(e) { super(), this.doc = e, this.clientID = e.clientID, this.states = /* @__PURE__ */ new Map(), this.meta = /* @__PURE__ */ new Map(), this._checkInterval = setInterval(() => { const r = pf(); - this.getLocalState() !== null && c6 / 2 <= r - this.meta.get(this.clientID).lastUpdated && this.setLocalState(this.getLocalState()); + this.getLocalState() !== null && o6 / 2 <= r - this.meta.get(this.clientID).lastUpdated && this.setLocalState(this.getLocalState()); const n = []; this.meta.forEach((i, s) => { - s !== this.clientID && c6 <= r - i.lastUpdated && this.states.has(s) && n.push(s); - }), n.length > 0 && tD(this, n, "timeout"); - }, zu(c6 / 10)), e.on("destroy", () => { + s !== this.clientID && o6 <= r - i.lastUpdated && this.states.has(s) && n.push(s); + }), n.length > 0 && KM(this, n, "timeout"); + }, zu(o6 / 10)), e.on("destroy", () => { this.destroy(); }), this.setLocalState({}); } @@ -25361,7 +25361,7 @@ class Cre extends jS { return this.states; } } -const tD = (t, e, r) => { +const KM = (t, e, r) => { const n = []; for (let i = 0; i < e.length; i++) { const s = e[i]; @@ -25385,7 +25385,7 @@ const tD = (t, e, r) => { Wt(i, a), Wt(i, l), qd(i, JSON.stringify(o)); } return Ln(i); -}, O_e = (t, e, r) => { +}, x_e = (t, e, r) => { const n = Vf(e), i = pf(), s = [], a = [], o = [], l = [], u = lr(n); for (let h = 0; h < u; h++) { const f = lr(n); @@ -25405,18 +25405,18 @@ const tD = (t, e, r) => { updated: a, removed: l }, r]); -}, k_e = (t) => Vke(t, (e, r) => `${encodeURIComponent(r)}=${encodeURIComponent(e)}`).join("&"), Ld = 0, Ere = 3, tg = 1, S_e = 2, ix = []; +}, w_e = (t) => Fke(t, (e, r) => `${encodeURIComponent(r)}=${encodeURIComponent(e)}`).join("&"), Ld = 0, Sre = 3, tg = 1, O_e = 2, ix = []; ix[Ld] = (t, e, r, n, i) => { Wt(t, Ld); - const s = b_e( + const s = v_e( e, t, r.doc, r ); - n && s === eD && !r.synced && (r.synced = !0); + n && s === jM && !r.synced && (r.synced = !0); }; -ix[Ere] = (t, e, r, n, i) => { +ix[Sre] = (t, e, r, n, i) => { Wt(t, tg), Zn( t, Jv( @@ -25426,34 +25426,34 @@ ix[Ere] = (t, e, r, n, i) => { ); }; ix[tg] = (t, e, r, n, i) => { - O_e( + x_e( r.awareness, Es(e), r ); }; -ix[S_e] = (t, e, r, n, i) => { - w_e( +ix[O_e] = (t, e, r, n, i) => { + b_e( e, r.doc, - (s, a) => T_e(r, a) + (s, a) => k_e(r, a) ); }; -const sV = 3e4, T_e = (t, e) => console.warn(`Permission denied to access ${t.url}. -${e}`), _re = (t, e, r) => { +const rV = 3e4, k_e = (t, e) => console.warn(`Permission denied to access ${t.url}. +${e}`), Tre = (t, e, r) => { const n = Vf(e), i = _s(), s = lr(n), a = t.messageHandlers[s]; return a ? a(i, n, t, r, s) : console.error("Unable to compute message"), i; -}, Are = (t) => { +}, Cre = (t) => { if (t.shouldConnect && t.ws === null) { const e = new t._WS(t.url); e.binaryType = "arraybuffer", t.ws = e, t.wsconnecting = !0, t.wsconnected = !1, t.synced = !1, e.onmessage = (r) => { t.wsLastMessageReceived = pf(); - const n = _re(t, new Uint8Array(r.data), !0); - kM(n) > 1 && e.send(Ln(n)); + const n = Tre(t, new Uint8Array(r.data), !0); + xM(n) > 1 && e.send(Ln(n)); }, e.onerror = (r) => { t.emit("connection-error", [r, t]); }, e.onclose = (r) => { - t.emit("connection-close", [r, t]), t.ws = null, t.wsconnecting = !1, t.wsconnected ? (t.wsconnected = !1, t.synced = !1, tD( + t.emit("connection-close", [r, t]), t.ws = null, t.wsconnecting = !1, t.wsconnected ? (t.wsconnected = !1, t.synced = !1, KM( t.awareness, Array.from(t.awareness.getStates().keys()).filter( (n) => n !== t.doc.clientID @@ -25462,9 +25462,9 @@ ${e}`), _re = (t, e, r) => { ), t.emit("status", [{ status: "disconnected" }])) : t.wsUnsuccessfulReconnects++, setTimeout( - Are, - KS( - nke(2, t.wsUnsuccessfulReconnects) * 100, + Cre, + jS( + tke(2, t.wsUnsuccessfulReconnects) * 100, t.maxBackoffTime ), t @@ -25474,7 +25474,7 @@ ${e}`), _re = (t, e, r) => { status: "connected" }]); const r = _s(); - if (Wt(r, Ld), i8(r, t.doc), e.send(Ln(r)), t.awareness.getLocalState() !== null) { + if (Wt(r, Ld), r8(r, t.doc), e.send(Ln(r)), t.awareness.getLocalState() !== null) { const n = _s(); Wt(n, tg), Zn( n, @@ -25487,14 +25487,14 @@ ${e}`), _re = (t, e, r) => { status: "connecting" }]); } -}, u6 = (t, e) => { +}, l6 = (t, e) => { const r = t.ws; t.wsconnected && r && r.readyState === r.OPEN && r.send(e), t.bcconnected && Cp(t.bcChannel, e, t); }; -class Lre extends jS { +class Ere extends ZS { constructor(e, r, n, { connect: i = !0, - awareness: s = new Cre(n), + awareness: s = new kre(n), params: a = {}, WebSocketPolyfill: o = WebSocket, resyncInterval: l = -1, @@ -25503,37 +25503,37 @@ class Lre extends jS { } = {}) { for (super(); e[e.length - 1] === "/"; ) e = e.slice(0, e.length - 1); - const f = k_e(a); + const f = w_e(a); this.maxBackoffTime = u, this.bcChannel = e + "/" + r, this.url = e + "/" + r + (f.length === 0 ? "" : "?" + f), this.roomname = r, this.doc = n, this._WS = o, this.awareness = s, this.wsconnected = !1, this.wsconnecting = !1, this.bcconnected = !1, this.disableBc = h, this.wsUnsuccessfulReconnects = 0, this.messageHandlers = ix.slice(), this._synced = !1, this.ws = null, this.wsLastMessageReceived = 0, this.shouldConnect = i, this._resyncInterval = 0, l > 0 && (this._resyncInterval = setInterval(() => { if (this.ws && this.ws.readyState === WebSocket.OPEN) { const d = _s(); - Wt(d, Ld), i8(d, n), this.ws.send(Ln(d)); + Wt(d, Ld), r8(d, n), this.ws.send(Ln(d)); } }, l)), this._bcSubscriber = (d, p) => { if (p !== this) { - const g = _re(this, new Uint8Array(d), !1); - kM(g) > 1 && Cp(this.bcChannel, Ln(g), this); + const g = Tre(this, new Uint8Array(d), !1); + xM(g) > 1 && Cp(this.bcChannel, Ln(g), this); } }, this._updateHandler = (d, p) => { if (p !== this) { const g = _s(); - Wt(g, Ld), v_e(g, d), u6(this, Ln(g)); + Wt(g, Ld), g_e(g, d), l6(this, Ln(g)); } }, this.doc.on("update", this._updateHandler), this._awarenessUpdateHandler = ({ added: d, updated: p, removed: g }, m) => { const v = d.concat(p).concat(g), y = _s(); Wt(y, tg), Zn( y, Jv(s, v) - ), u6(this, Ln(y)); + ), l6(this, Ln(y)); }, this._unloadHandler = () => { - tD( + KM( this.awareness, [n.clientID], "window unload" ); }, typeof window < "u" ? window.addEventListener("unload", this._unloadHandler) : typeof process < "u" && process.on("exit", this._unloadHandler), s.on("update", this._awarenessUpdateHandler), this._checkInterval = setInterval(() => { - this.wsconnected && sV < pf() - this.wsLastMessageReceived && this.ws.close(); - }, sV / 10), i && this.connect(); + this.wsconnected && rV < pf() - this.wsLastMessageReceived && this.ws.close(); + }, rV / 10), i && this.connect(); } get synced() { return this._synced; @@ -25547,13 +25547,13 @@ class Lre extends jS { connectBc() { if (this.disableBc) return; - this.bcconnected || (p_e(this.bcChannel, this._bcSubscriber), this.bcconnected = !0); + this.bcconnected || (f_e(this.bcChannel, this._bcSubscriber), this.bcconnected = !0); const e = _s(); - Wt(e, Ld), i8(e, this.doc), Cp(this.bcChannel, Ln(e), this); + Wt(e, Ld), r8(e, this.doc), Cp(this.bcChannel, Ln(e), this); const r = _s(); - Wt(r, Ld), Sre(r, this.doc), Cp(this.bcChannel, Ln(r), this); + Wt(r, Ld), wre(r, this.doc), Cp(this.bcChannel, Ln(r), this); const n = _s(); - Wt(n, Ere), Cp( + Wt(n, Sre), Cp( this.bcChannel, Ln(n), this @@ -25577,19 +25577,19 @@ class Lre extends jS { Jv(this.awareness, [ this.doc.clientID ], /* @__PURE__ */ new Map()) - ), u6(this, Ln(e)), this.bcconnected && (g_e(this.bcChannel, this._bcSubscriber), this.bcconnected = !1); + ), l6(this, Ln(e)), this.bcconnected && (d_e(this.bcChannel, this._bcSubscriber), this.bcconnected = !1); } disconnect() { this.shouldConnect = !1, this.disconnectBc(), this.ws !== null && this.ws.close(); } connect() { - this.shouldConnect = !0, !this.wsconnected && this.ws === null && (Are(this), this.connectBc()); + this.shouldConnect = !0, !this.wsconnected && this.ws === null && (Cre(this), this.connectBc()); } } -const C_e = (t) => ["input", "delete", "undo", "redo"].some((e) => t.isUserEvent(e)), Jy = _t.define({ +const S_e = (t) => ["input", "delete", "undo", "redo"].some((e) => t.isUserEvent(e)), Jy = _t.define({ combine: (t) => t[t.length - 1], static: !0 -}), Rre = Zt.define(), E_e = on.fromClass(class { +}), _re = Zt.define(), T_e = on.fromClass(class { constructor(t) { this.decorations = this.colorEditorLines(t); } @@ -25626,29 +25626,29 @@ const C_e = (t) => ["input", "delete", "undo", "redo"].some((e) => t.isUserEvent }); } update(t) { - (t.docChanged || t.viewportChanged || t.transactions.some((e) => e.effects.some((r) => r.is(Rre)))) && (t.transactions.filter(C_e).forEach((e) => this.markLinesEditedInTransaction(e)), this.decorations = this.colorEditorLines(t.view)), t.view.dom.onmouseleave = () => t.view.dispatch({ - effects: s8.of(null) + (t.docChanged || t.viewportChanged || t.transactions.some((e) => e.effects.some((r) => r.is(_re)))) && (t.transactions.filter(S_e).forEach((e) => this.markLinesEditedInTransaction(e)), this.decorations = this.colorEditorLines(t.view)), t.view.dom.onmouseleave = () => t.view.dispatch({ + effects: n8.of(null) }), t.view.dom.querySelectorAll(".cm-line").forEach((e) => { e.onmouseenter = (r) => t.view.dispatch({ - effects: s8.of(parseInt(r.target.dataset.lineNumber)) + effects: n8.of(parseInt(r.target.dataset.lineNumber)) }); }); } }, { decorations: (t) => t.decorations -}), s8 = Zt.define(), i3 = $n.define({ +}), n8 = Zt.define(), n3 = $n.define({ create() { return null; }, update(t, e) { var i; - const r = e.state.facet(Jy), n = (i = e.effects.find((s) => s.is(s8))) == null ? void 0 : i.value; + const r = e.state.facet(Jy), n = (i = e.effects.find((s) => s.is(n8))) == null ? void 0 : i.value; return n ? r.firstLineOfSection(n) : null; } }); -class aV extends Uo { +class nV extends Uo { constructor(e, r) { - super(), r && e && (this.lineNumber = r.state.doc.lineAt(e.to).number, this.lineAuthors = r.state.facet(Jy), this.selectedLine = r.state.facet(i3)); + super(), r && e && (this.lineNumber = r.state.doc.lineAt(e.to).number, this.lineAuthors = r.state.facet(Jy), this.selectedLine = r.state.facet(n3)); } authorAvatar() { const { @@ -25661,11 +25661,11 @@ class aV extends Uo { return this.selectedLine && this.selectedLine == this.lineNumber ? this.authorAvatar() : document.createElement("div"); } } -const __e = zS({ - lineMarker: (t, e) => new aV(e, t), - lineMarkerChange: (t) => t.startState.field(i3) != t.state.field(i3), - initialSpacer: () => new aV(null, null) -}), A_e = (t) => [Jy.of(t), i3.init(null), __e, E_e], B0 = er.button` +const C_e = FS({ + lineMarker: (t, e) => new nV(e, t), + lineMarkerChange: (t) => t.startState.field(n3) != t.state.field(n3), + initialSpacer: () => new nV(null, null) +}), E_e = (t) => [Jy.of(t), n3.init(null), C_e, T_e], B0 = er.button` &:focus { outline: 0 !important; } @@ -25693,11 +25693,11 @@ const __e = zS({ } `; Zt.define(); -const Mre = new I0(); -function L_e(t) { +const Are = new I0(); +function __e(t) { return t.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"); } -function R_e({ +function A_e({ commentId: t, text: e, color: r @@ -25710,7 +25710,7 @@ function R_e({ break; let s = e.slice(0, i), a = ""; s.includes("->") && (a = s.slice(s.indexOf("->") + 2).trimStart(), s = s.slice(0, s.indexOf("->")).trimEnd()), s.length !== 0 && n.push({ - targetRegexSrc: `(?<=^|[ \\t\\r\\.]|\\W)${L_e(s)}(?=$|[\\s\\.]|\\W)`, + targetRegexSrc: `(?<=^|[ \\t\\r\\.]|\\W)${__e(s)}(?=$|[\\s\\.]|\\W)`, targetRegexFlags: "gm", id: t, cssClass: "cm-suggestion", @@ -25720,7 +25720,7 @@ function R_e({ } return n; } -function M_e({ +function L_e({ builder: t, from: e, match: r, @@ -25733,7 +25733,7 @@ function M_e({ }), n.replacement) return i.class += " replaced", () => { t.add(e + r.index + r[0].length, e + r.index + r[0].length, Et.widget({ - widget: new D_e({ + widget: new R_e({ text: n.replacement, color: n.color, from: e + r.index, @@ -25743,7 +25743,7 @@ function M_e({ })); }; } -class D_e extends za { +class R_e extends za { constructor({ text: e, color: r, @@ -25766,7 +25766,7 @@ class D_e extends za { }), e; } } -function N_e(t, e, r) { +function M_e(t, e, r) { const n = r.current.querySelector(".myst-add-suggestion"), i = t.state.selection.main, s = i.head === i.anchor, a = t.state.doc.lineAt(i.head).number !== t.state.doc.lineAt(i.anchor).number; if (!t.selectionSet || s || a) { n.style.display = "none"; @@ -25798,11 +25798,11 @@ function N_e(t, e, r) { const w = await e.getEditorForComment(b); w.focus(), w.dispatch({ selection: Ve.create([Ve.range(w.state.doc.length - 1, w.state.doc.length - 1)]), - effects: Rre.of(null) + effects: _re.of(null) }); }; } -const I_e = er(B0)` +const D_e = er(B0)` position: absolute; z-index: 10; display: none; @@ -25830,8 +25830,8 @@ const I_e = er(B0)` border-right: 10px solid transparent; border-top: 10px solid var(--icon-border); } -`, P_e = () => "comment-" + Math.random().toString().replace(".", ""); -class $_e { +`, N_e = () => "comment-" + Math.random().toString().replace(".", ""); +class I_e { constructor(e, r, n, i) { this.user = r.awareness.getLocalState().user, this.lineAuthors = e.getArray(i + "/commentLineAuthors"), this.ydoc = e, this.getAvatar = n, this.commentId = i; } @@ -25874,7 +25874,7 @@ class $_e { ); } } -class B_e { +class P_e { constructor(e, r) { this.commentPositions = e.getMap(ey.dataPath), this.ycomments = r; } @@ -25905,7 +25905,7 @@ class B_e { this.commentPositions.delete(e); } } -class F_e { +class $_e { constructor() { this.comments = {}, this._onUpdate = () => { }; @@ -25945,7 +25945,7 @@ class F_e { this.setVisibility(e, !0); } } -class z_e { +class B_e { constructor(e, r) { this.user = e.awareness.getLocalState().user, this.resolvedComments = r.getMap("resolved-comments"); } @@ -25977,9 +25977,9 @@ class z_e { this.resolvedComments.observe(() => e(this.resolved())); } } -const m$ = class { +const d$ = class { constructor(e, r, n) { - this.ydoc = e, this.provider = r, this.getAvatar = n, this.mainCodeMirror = null, this.newLocalComment = !1, this.positionManager = new B_e(e, this), this.displayManager = new F_e(r), this.commentResolver = new z_e(r, e), this.draggedComment = null, this.commentWithPopup = null, this.commentEditorsListeners = /* @__PURE__ */ new Map(), this.commentEditors = /* @__PURE__ */ new Map(), this.suggestions = e.getMap("suggestions"), this.suggestions.observe(() => { + this.ydoc = e, this.provider = r, this.getAvatar = n, this.mainCodeMirror = null, this.newLocalComment = !1, this.positionManager = new P_e(e, this), this.displayManager = new $_e(r), this.commentResolver = new B_e(r, e), this.draggedComment = null, this.commentWithPopup = null, this.commentEditorsListeners = /* @__PURE__ */ new Map(), this.commentEditors = /* @__PURE__ */ new Map(), this.suggestions = e.getMap("suggestions"), this.suggestions.observe(() => { if (!this.mainCodeMirror) return; const i = [...this.suggestions.values()].flat().map((s) => ({ @@ -25987,13 +25987,13 @@ const m$ = class { target: new RegExp(s.targetRegexSrc, s.targetRegexFlags) })); this.mainCodeMirror.dispatch({ - effects: Mre.reconfigure(KM(i, M_e, this.positions())), + effects: Are.reconfigure(XM(i, L_e, this.positions())), annotations: fi.userEvent.of("suggestion") }); }), this.positionManager.commentPositions.observeDeep(() => this.updateMainCodeMirror()); } lineAuthors(e) { - return new $_e(this.ydoc, this.provider, this.getAvatar, e); + return new I_e(this.ydoc, this.provider, this.getAvatar, e); } positions() { return this.positionManager; @@ -26011,14 +26011,14 @@ const m$ = class { return this.mainCodeMirror.dom.querySelector(".cm-gutters").offsetWidth; } getTextForComment(e) { - return this.ydoc.getText(m$.commentsPrefix + e); + return this.ydoc.getText(d$.commentsPrefix + e); } delText(e) { let r = this.getTextForComment(e); r != null && r.parent && r.delete(); } newComment(e) { - const r = P_e(); + const r = N_e(); return this.positions().set(r, e.toString()), this.display().new(r), this.lineAuthors(r).mark(1), this.newLocalComment = !0, r; } deleteComment(e) { @@ -26072,12 +26072,12 @@ const m$ = class { }); } syncFoldedComments(e) { - if (!ik(e)) + if (!nk(e)) return; const r = e.transactions[0].effects[0].is(Nc), { from: n, to: i - } = e.transactions[0].effects[0].value, s = e.state.doc.lineAt(n).number, a = e.state.doc.lineAt(i).number, o = sM(e.state).iter(0), l = []; + } = e.transactions[0].effects[0].value, s = e.state.doc.lineAt(n).number, a = e.state.doc.lineAt(i).number, o = rM(e.state).iter(0), l = []; for (let u = o; u.value != null; o.next()) (u.from != n || u.to != i) && l.push({ fromLine: e.state.doc.lineAt(u.from).number, @@ -26119,7 +26119,7 @@ const m$ = class { color: (h = (u = s.get(l + 1)) == null ? void 0 : u.color) != null ? h : "#111" }; }); - r[n] = a.flatMap(R_e); + r[n] = a.flatMap(A_e); } this.suggestions.doc.transact(() => { for (const [n, i] of Object.entries(r)) @@ -26194,13 +26194,13 @@ const m$ = class { }); } }; -let ey = m$; +let ey = d$; Or(ey, "commentsPrefix", "comments/"); -const cT = _t.define({ +const lT = _t.define({ combine: (t) => t[t.length - 1], static: !0 }), e2 = Zt.define(); -class V_e extends za { +class F_e extends za { constructor(e, r, n) { super(), this.height = e, this.commentId = r, this.isShown = n; } @@ -26209,12 +26209,12 @@ class V_e extends za { return e.id = this.commentId, e.classList = "comment-box", this.isShown || (e.classList += " comment-box-hidden"), e.style.height = this.height + "px", e; } } -const U_e = (t, e, r) => Et.widget({ - widget: new V_e(t, e, r), +const z_e = (t, e, r) => Et.widget({ + widget: new F_e(t, e, r), side: 1e4, inlineOrder: !1, block: r -}), q_e = (t, e) => t.lineNumber - e.lineNumber, Y_e = (t) => t.docChanged || t.effects.some((e) => e.is(e2)), Q_e = (t) => [(e, { +}), V_e = (t, e) => t.lineNumber - e.lineNumber, U_e = (t) => t.docChanged || t.effects.some((e) => e.is(e2)), q_e = (t) => [(e, { commentId: r, lineNumber: n, height: i, @@ -26222,12 +26222,12 @@ const U_e = (t, e, r) => Et.widget({ }) => { try { const a = t.newDoc.line(n).to; - e.add(a, a, U_e(i, r, s)); + e.add(a, a, z_e(i, r, s)); } catch (a) { console.warn(a), console.warn(`An error occured when rendering comment ${r}. Comment will not be shown.`); } return e; -}, new Hi()], W_e = (t, e) => { +}, new Hi()], Y_e = (t, e) => { if (t.isUserEvent("input") || t.isUserEvent("delete")) { const r = t.state.doc.lines - t.startState.doc.lines; if (r != 0 && t.selection != null) { @@ -26235,14 +26235,14 @@ const U_e = (t, e, r) => Et.widget({ e.positions().shift(i, r, n, s); } } -}, G_e = $n.define({ +}, Q_e = $n.define({ create() { return new Hi().finish(); }, update(t, e) { - if (Y_e(e)) { - const r = e.state.facet(cT); - return W_e(e, r), r.iterComments().sort(q_e).reduce(...Q_e(e)).finish(); + if (U_e(e)) { + const r = e.state.facet(lT); + return Y_e(e, r), r.iterComments().sort(V_e).reduce(...q_e(e)).finish(); } return t; }, @@ -26252,7 +26252,7 @@ const U_e = (t, e, r) => Et.widget({ }), Cd = class extends Uo { constructor(e, r) { var n; - super(), this.gutterMarker = null, this.icon = null, r && e && (this.ycomments = r.state.facet(cT), this.lineNumber = r.state.doc.lineAt(e.to).number, this.commentId = (n = this.ycomments.findCommentOn(this.lineNumber)) == null ? void 0 : n.commentId); + super(), this.gutterMarker = null, this.icon = null, r && e && (this.ycomments = r.state.facet(lT), this.lineNumber = r.state.doc.lineAt(e.to).number, this.commentId = (n = this.ycomments.findCommentOn(this.lineNumber)) == null ? void 0 : n.commentId); } hasComments() { return Boolean(this.commentId); @@ -26274,11 +26274,11 @@ const U_e = (t, e, r) => Et.widget({ }; let bd = Cd; Or(bd, "MAIN_CLASS", "comment-gutter"), Or(bd, "ICON_CLASS", "comment-gutter-icon"), Or(bd, "COMMENT_IMAGE_CLASS", "comment-image"); -const H_e = (t, e, r) => { +const W_e = (t, e, r) => { var s; const n = t.state.doc.lineAt(e.to).number, i = (s = r.findCommentOn(n)) == null ? void 0 : s.commentId; return i || r.newComment(n); -}, X_e = zS({ +}, G_e = FS({ lineMarker(t, e) { return new bd(e, t); }, @@ -26286,13 +26286,13 @@ const H_e = (t, e, r) => { initialSpacer: () => new bd(null, null), domEventHandlers: { mouseup(t, e) { - let r = t.state.facet(cT.reader), n = H_e(t, e, r); + let r = t.state.facet(lT.reader), n = W_e(t, e, r); r.display().switchVisibility(n), t.dispatch({ effects: e2.of(null) }); } } -}), Z_e = (t) => [cT.of(t), G_e, X_e, ht.updateListener.of((e) => t.syncComments(e))]; +}), H_e = (t) => [lT.of(t), Q_e, G_e, ht.updateListener.of((e) => t.syncComments(e))]; class sh { constructor(e) { this.state = e; @@ -26301,42 +26301,42 @@ class sh { return []; } } -class j_e extends sh { +class X_e extends sh { run(e) { const r = new this.state.Token("code_inline", "code", 0); return r.content = e.content, [r]; } } -const K_e = { - raw: j_e -}, a8 = "math_inline"; -class J_e extends sh { +const Z_e = { + raw: X_e +}, i8 = "math_inline"; +class j_e extends sh { run(e) { - const r = new this.state.Token(a8, "span", 0); + const r = new this.state.Token(i8, "span", 0); return r.attrSet("class", "math inline"), r.markup = "$", r.content = e.content, [r]; } } -function eAe(t, e) { +function K_e(t, e) { var r; - !(!((r = e == null ? void 0 : e.roles) === null || r === void 0) && r.math) || t.renderer.rules[a8] || (t.renderer.rules[a8] = (n, i) => { + !(!((r = e == null ? void 0 : e.roles) === null || r === void 0) && r.math) || t.renderer.rules[i8] || (t.renderer.rules[i8] = (n, i) => { var s, a, o; const l = (o = (a = (s = e == null ? void 0 : e.opts) === null || s === void 0 ? void 0 : s.math) === null || a === void 0 ? void 0 : a.renderer) !== null && o !== void 0 ? o : (d) => t.utils.escapeHtml(d), u = n[i], h = u.content.trim(), f = l(h, { displayMode: !1 }); return `${f}`; }); } -const tAe = { - math: J_e +const J_e = { + math: j_e }; -function Dre(t, e) { - e.parseRoles && t.inline.ruler.before("backticks", "parse_roles", rAe), t.core.ruler.after(e.rolesAfter || "inline", "run_roles", iAe(e.roles || {})), t.renderer.rules.role = (r, n) => { +function Lre(t, e) { + e.parseRoles && t.inline.ruler.before("backticks", "parse_roles", eAe), t.core.ruler.after(e.rolesAfter || "inline", "run_roles", rAe(e.roles || {})), t.renderer.rules.role = (r, n) => { const i = r[n]; return `${i.meta.name}${i.content}`; - }, eAe(t, e); + }, K_e(t, e); } -function rAe(t, e) { +function eAe(t, e) { if (t.src.charCodeAt(t.pos - 1) === 92) return !1; - const r = nAe.exec(t.src.slice(t.pos)); + const r = tAe.exec(t.src.slice(t.pos)); if (r == null) return !1; const [n, i, , s] = r; @@ -26346,14 +26346,14 @@ function rAe(t, e) { } return !0; } -let o8; +let s8; try { - o8 = new RegExp("^\\{([a-zA-Z_\\-+:]{1,36})\\}(`+)(?!`)(.+?)(?]+)>$/; -class cAe extends sh { +const Mre = /^(.+?)<([^<>]+)>$/; +class oAe extends sh { run(e) { const r = new this.state.Token("ref_open", "a", 1), n = new this.state.Token("text", "", 0), i = new this.state.Token("ref_close", "a", -1); - return rD(this.state, { open: r, content: n, close: i }, { kind: "eq", label: e.content }, { + return JM(this.state, { open: r, content: n, close: i }, { kind: "eq", label: e.content }, { kind: t2.equation, contentFromTarget: (s) => `(${s.number})` }), [r, n, i]; } } -class uAe extends sh { +class lAe extends sh { run(e) { - const r = Ire.exec(e.content), [, n, i] = r != null ? r : [], s = n == null ? void 0 : n.trim(), a = new this.state.Token("ref_open", "a", 1), o = new this.state.Token("text", "", 0), l = new this.state.Token("ref_close", "a", -1); - return rD(this.state, { open: a, content: o, close: l }, { kind: "numref", label: i || e.content, value: s }, { + const r = Mre.exec(e.content), [, n, i] = r != null ? r : [], s = n == null ? void 0 : n.trim(), a = new this.state.Token("ref_open", "a", 1), o = new this.state.Token("text", "", 0), l = new this.state.Token("ref_close", "a", -1); + return JM(this.state, { open: a, content: o, close: l }, { kind: "numref", label: i || e.content, value: s }, { contentFromTarget: (u) => r ? s.replace(/%s/g, String(u.number)).replace(/\{number\}/g, String(u.number)) : u.title.trim() }), [a, o, l]; } } -class hAe extends sh { +class cAe extends sh { run(e) { - const r = Ire.exec(e.content), [, n, i] = r != null ? r : [], s = n == null ? void 0 : n.trim(), a = new this.state.Token("ref_open", "a", 1), o = new this.state.Token("text", "", 0), l = new this.state.Token("ref_close", "a", -1); - return rD(this.state, { open: a, content: o, close: l }, { kind: "ref", label: i || e.content, value: s }, { + const r = Mre.exec(e.content), [, n, i] = r != null ? r : [], s = n == null ? void 0 : n.trim(), a = new this.state.Token("ref_open", "a", 1), o = new this.state.Token("text", "", 0), l = new this.state.Token("ref_close", "a", -1); + return JM(this.state, { open: a, content: o, close: l }, { kind: "ref", label: i || e.content, value: s }, { contentFromTarget: (u) => s || u.title }), [a, o, l]; } } -const fAe = { - eq: cAe, - ref: hAe, - numref: uAe -}, dAe = Object.assign(Object.assign(Object.assign(Object.assign({}, K_e), aAe), tAe), fAe); +const uAe = { + eq: oAe, + ref: cAe, + numref: lAe +}, hAe = Object.assign(Object.assign(Object.assign(Object.assign({}, Z_e), iAe), J_e), uAe); /*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */ -function Pre(t) { +function Dre(t) { return typeof t > "u" || t === null; } -function pAe(t) { +function fAe(t) { return typeof t == "object" && t !== null; } -function gAe(t) { - return Array.isArray(t) ? t : Pre(t) ? [] : [t]; +function dAe(t) { + return Array.isArray(t) ? t : Dre(t) ? [] : [t]; } -function mAe(t, e) { +function pAe(t, e) { var r, n, i, s; if (e) for (s = Object.keys(e), r = 0, n = s.length; r < n; r += 1) i = s[r], t[i] = e[i]; return t; } -function vAe(t, e) { +function gAe(t, e) { var r = "", n; for (n = 0; n < e; n += 1) r += t; return r; } -function yAe(t) { +function mAe(t) { return t === 0 && Number.NEGATIVE_INFINITY === 1 / t; } -var bAe = Pre, xAe = pAe, wAe = gAe, OAe = vAe, kAe = yAe, SAe = mAe, Ti = { - isNothing: bAe, - isObject: xAe, - toArray: wAe, - repeat: OAe, - isNegativeZero: kAe, - extend: SAe +var vAe = Dre, yAe = fAe, bAe = dAe, xAe = gAe, wAe = mAe, OAe = pAe, Ti = { + isNothing: vAe, + isObject: yAe, + toArray: bAe, + repeat: xAe, + isNegativeZero: wAe, + extend: OAe }; -function $re(t, e) { +function Nre(t, e) { var r = "", n = t.reason || "(unknown reason)"; return t.mark ? (t.mark.name && (r += 'in "' + t.mark.name + '" '), r += "(" + (t.mark.line + 1) + ":" + (t.mark.column + 1) + ")", !e && t.mark.snippet && (r += ` ` + t.mark.snippet), n + " " + r) : n; } function r2(t, e) { - Error.call(this), this.name = "YAMLException", this.reason = t, this.mark = e, this.message = $re(this, !1), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack || ""; + Error.call(this), this.name = "YAMLException", this.reason = t, this.mark = e, this.message = Nre(this, !1), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack || ""; } r2.prototype = Object.create(Error.prototype); r2.prototype.constructor = r2; r2.prototype.toString = function(e) { - return this.name + ": " + $re(this, e); + return this.name + ": " + Nre(this, e); }; var ea = r2; -function h6(t, e, r, n, i) { +function c6(t, e, r, n, i) { var s = "", a = "", o = Math.floor(i / 2) - 1; return n - e > o && (s = " ... ", e = n - o + s.length), r - n > o && (a = " ...", r = n + o - a.length), { str: s + t.slice(e, r).replace(/\t/g, "\u2192") + a, pos: n - e + s.length }; } -function f6(t, e) { +function u6(t, e) { return Ti.repeat(" ", e - t.length) + t; } -function TAe(t, e) { +function kAe(t, e) { if (e = Object.create(e || null), !t.buffer) return null; 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); @@ -26557,28 +26557,28 @@ function TAe(t, e) { a < 0 && (a = n.length - 1); var o = "", l, u, h = Math.min(t.line + e.linesAfter, i.length).toString().length, f = e.maxLength - (e.indent + h + 3); for (l = 1; l <= e.linesBefore && !(a - l < 0); l++) - u = h6( + u = c6( t.buffer, n[a - l], i[a - l], t.position - (n[a] - n[a - l]), f - ), o = Ti.repeat(" ", e.indent) + f6((t.line - l + 1).toString(), h) + " | " + u.str + ` + ), o = Ti.repeat(" ", e.indent) + u6((t.line - l + 1).toString(), h) + " | " + u.str + ` ` + o; - for (u = h6(t.buffer, n[a], i[a], t.position, f), o += Ti.repeat(" ", e.indent) + f6((t.line + 1).toString(), h) + " | " + u.str + ` + for (u = c6(t.buffer, n[a], i[a], t.position, f), o += Ti.repeat(" ", e.indent) + u6((t.line + 1).toString(), h) + " | " + u.str + ` `, o += Ti.repeat("-", e.indent + h + 3 + u.pos) + `^ `, l = 1; l <= e.linesAfter && !(a + l >= i.length); l++) - u = h6( + u = c6( t.buffer, n[a + l], i[a + l], t.position - (n[a] - n[a + l]), f - ), o += Ti.repeat(" ", e.indent) + f6((t.line + l + 1).toString(), h) + " | " + u.str + ` + ), o += Ti.repeat(" ", e.indent) + u6((t.line + l + 1).toString(), h) + " | " + u.str + ` `; return o.replace(/\n$/, ""); } -var CAe = TAe, EAe = [ +var SAe = kAe, TAe = [ "kind", "multi", "resolve", @@ -26589,12 +26589,12 @@ var CAe = TAe, EAe = [ "representName", "defaultStyle", "styleAliases" -], _Ae = [ +], CAe = [ "scalar", "sequence", "mapping" ]; -function AAe(t) { +function EAe(t) { var e = {}; return t !== null && Object.keys(t).forEach(function(r) { t[r].forEach(function(n) { @@ -26602,19 +26602,19 @@ function AAe(t) { }); }), e; } -function LAe(t, e) { +function _Ae(t, e) { if (e = e || {}, Object.keys(e).forEach(function(r) { - if (EAe.indexOf(r) === -1) + if (TAe.indexOf(r) === -1) throw new ea('Unknown option "' + r + '" is met in definition of "' + t + '" YAML type.'); }), this.options = e, this.tag = t, this.kind = e.kind || null, this.resolve = e.resolve || function() { return !0; }, this.construct = e.construct || function(r) { return r; - }, 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 = AAe(e.styleAliases || null), _Ae.indexOf(this.kind) === -1) + }, 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 = EAe(e.styleAliases || null), CAe.indexOf(this.kind) === -1) throw new ea('Unknown kind "' + this.kind + '" is specified for "' + t + '" YAML type.'); } -var hs = LAe; -function uV(t, e) { +var hs = _Ae; +function oV(t, e) { var r = []; return t[e].forEach(function(n) { var i = r.length; @@ -26623,7 +26623,7 @@ function uV(t, e) { }), r[i] = n; }), r; } -function RAe() { +function AAe() { var t = { scalar: {}, sequence: {}, @@ -26643,10 +26643,10 @@ function RAe() { arguments[e].forEach(n); return t; } -function l8(t) { +function a8(t) { return this.extend(t); } -l8.prototype.extend = function(e) { +a8.prototype.extend = function(e) { var r = [], n = []; if (e instanceof hs) n.push(e); @@ -26667,48 +26667,48 @@ l8.prototype.extend = function(e) { if (!(s instanceof hs)) throw new ea("Specified list of YAML types (or a single Type object) contains a non-Type object."); }); - var i = Object.create(l8.prototype); - return i.implicit = (this.implicit || []).concat(r), i.explicit = (this.explicit || []).concat(n), i.compiledImplicit = uV(i, "implicit"), i.compiledExplicit = uV(i, "explicit"), i.compiledTypeMap = RAe(i.compiledImplicit, i.compiledExplicit), i; + var i = Object.create(a8.prototype); + return i.implicit = (this.implicit || []).concat(r), i.explicit = (this.explicit || []).concat(n), i.compiledImplicit = oV(i, "implicit"), i.compiledExplicit = oV(i, "explicit"), i.compiledTypeMap = AAe(i.compiledImplicit, i.compiledExplicit), i; }; -var Bre = l8, Fre = new hs("tag:yaml.org,2002:str", { +var Ire = a8, Pre = new hs("tag:yaml.org,2002:str", { kind: "scalar", construct: function(t) { return t !== null ? t : ""; } -}), zre = new hs("tag:yaml.org,2002:seq", { +}), $re = new hs("tag:yaml.org,2002:seq", { kind: "sequence", construct: function(t) { return t !== null ? t : []; } -}), Vre = new hs("tag:yaml.org,2002:map", { +}), Bre = new hs("tag:yaml.org,2002:map", { kind: "mapping", construct: function(t) { return t !== null ? t : {}; } -}), Ure = new Bre({ +}), Fre = new Ire({ explicit: [ - Fre, - zre, - Vre + Pre, + $re, + Bre ] }); -function MAe(t) { +function LAe(t) { if (t === null) return !0; var e = t.length; return e === 1 && t === "~" || e === 4 && (t === "null" || t === "Null" || t === "NULL"); } -function DAe() { +function RAe() { return null; } -function NAe(t) { +function MAe(t) { return t === null; } -var qre = new hs("tag:yaml.org,2002:null", { +var zre = new hs("tag:yaml.org,2002:null", { kind: "scalar", - resolve: MAe, - construct: DAe, - predicate: NAe, + resolve: LAe, + construct: RAe, + predicate: MAe, represent: { canonical: function() { return "~"; @@ -26728,23 +26728,23 @@ var qre = new hs("tag:yaml.org,2002:null", { }, defaultStyle: "lowercase" }); -function IAe(t) { +function DAe(t) { if (t === null) return !1; var e = t.length; return e === 4 && (t === "true" || t === "True" || t === "TRUE") || e === 5 && (t === "false" || t === "False" || t === "FALSE"); } -function PAe(t) { +function NAe(t) { return t === "true" || t === "True" || t === "TRUE"; } -function $Ae(t) { +function IAe(t) { return Object.prototype.toString.call(t) === "[object Boolean]"; } -var Yre = new hs("tag:yaml.org,2002:bool", { +var Vre = new hs("tag:yaml.org,2002:bool", { kind: "scalar", - resolve: IAe, - construct: PAe, - predicate: $Ae, + resolve: DAe, + construct: NAe, + predicate: IAe, represent: { lowercase: function(t) { return t ? "true" : "false"; @@ -26758,16 +26758,16 @@ var Yre = new hs("tag:yaml.org,2002:bool", { }, defaultStyle: "lowercase" }); -function BAe(t) { +function PAe(t) { return 48 <= t && t <= 57 || 65 <= t && t <= 70 || 97 <= t && t <= 102; } -function FAe(t) { +function $Ae(t) { return 48 <= t && t <= 55; } -function zAe(t) { +function BAe(t) { return 48 <= t && t <= 57; } -function VAe(t) { +function FAe(t) { if (t === null) return !1; var e = t.length, r = 0, n = !1, i; @@ -26788,7 +26788,7 @@ function VAe(t) { if (i === "x") { for (r++; r < e; r++) if (i = t[r], i !== "_") { - if (!BAe(t.charCodeAt(r))) + if (!PAe(t.charCodeAt(r))) return !1; n = !0; } @@ -26797,7 +26797,7 @@ function VAe(t) { if (i === "o") { for (r++; r < e; r++) if (i = t[r], i !== "_") { - if (!FAe(t.charCodeAt(r))) + if (!$Ae(t.charCodeAt(r))) return !1; n = !0; } @@ -26808,13 +26808,13 @@ function VAe(t) { return !1; for (; r < e; r++) if (i = t[r], i !== "_") { - if (!zAe(t.charCodeAt(r))) + if (!BAe(t.charCodeAt(r))) return !1; n = !0; } return !(!n || i === "_"); } -function UAe(t) { +function zAe(t) { var e = t, r = 1, n; if (e.indexOf("_") !== -1 && (e = e.replace(/_/g, "")), n = e[0], (n === "-" || n === "+") && (n === "-" && (r = -1), e = e.slice(1), n = e[0]), e === "0") return 0; @@ -26828,14 +26828,14 @@ function UAe(t) { } return r * parseInt(e, 10); } -function qAe(t) { +function VAe(t) { return Object.prototype.toString.call(t) === "[object Number]" && t % 1 === 0 && !Ti.isNegativeZero(t); } -var Qre = new hs("tag:yaml.org,2002:int", { +var Ure = new hs("tag:yaml.org,2002:int", { kind: "scalar", - resolve: VAe, - construct: UAe, - predicate: qAe, + resolve: FAe, + construct: zAe, + predicate: VAe, represent: { binary: function(t) { return t >= 0 ? "0b" + t.toString(2) : "-0b" + t.toString(2).slice(1); @@ -26857,18 +26857,18 @@ var Qre = new hs("tag:yaml.org,2002:int", { decimal: [10, "dec"], hexadecimal: [16, "hex"] } -}), YAe = new RegExp( +}), UAe = new RegExp( "^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$" ); -function QAe(t) { - return !(t === null || !YAe.test(t) || t[t.length - 1] === "_"); +function qAe(t) { + return !(t === null || !UAe.test(t) || t[t.length - 1] === "_"); } -function WAe(t) { +function YAe(t) { var e, r; return e = t.replace(/_/g, "").toLowerCase(), r = e[0] === "-" ? -1 : 1, "+-".indexOf(e[0]) >= 0 && (e = e.slice(1)), e === ".inf" ? r === 1 ? Number.POSITIVE_INFINITY : Number.NEGATIVE_INFINITY : e === ".nan" ? NaN : r * parseFloat(e, 10); } -var GAe = /^[-+]?[0-9]+e/; -function HAe(t, e) { +var QAe = /^[-+]?[0-9]+e/; +function WAe(t, e) { var r; if (isNaN(t)) switch (e) { @@ -26899,36 +26899,36 @@ function HAe(t, e) { } else if (Ti.isNegativeZero(t)) return "-0.0"; - return r = t.toString(10), GAe.test(r) ? r.replace("e", ".e") : r; + return r = t.toString(10), QAe.test(r) ? r.replace("e", ".e") : r; } -function XAe(t) { +function GAe(t) { return Object.prototype.toString.call(t) === "[object Number]" && (t % 1 !== 0 || Ti.isNegativeZero(t)); } -var Wre = new hs("tag:yaml.org,2002:float", { +var qre = new hs("tag:yaml.org,2002:float", { kind: "scalar", - resolve: QAe, - construct: WAe, - predicate: XAe, - represent: HAe, + resolve: qAe, + construct: YAe, + predicate: GAe, + represent: WAe, defaultStyle: "lowercase" -}), Gre = Ure.extend({ +}), Yre = Fre.extend({ implicit: [ - qre, - Yre, - Qre, - Wre + zre, + Vre, + Ure, + qre ] -}), Hre = Gre, Xre = new RegExp( +}), Qre = Yre, Wre = new RegExp( "^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$" -), Zre = new RegExp( +), Gre = new RegExp( "^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$" ); -function ZAe(t) { - return t === null ? !1 : Xre.exec(t) !== null || Zre.exec(t) !== null; +function HAe(t) { + return t === null ? !1 : Wre.exec(t) !== null || Gre.exec(t) !== null; } -function jAe(t) { +function XAe(t) { var e, r, n, i, s, a, o, l = 0, u = null, h, f, d; - if (e = Xre.exec(t), e === null && (e = Zre.exec(t)), e === null) + if (e = Wre.exec(t), e === null && (e = Gre.exec(t)), e === null) throw new Error("Date resolve error"); if (r = +e[1], n = +e[2] - 1, i = +e[3], !e[4]) return new Date(Date.UTC(r, n, i)); @@ -26939,28 +26939,28 @@ function jAe(t) { } return e[9] && (h = +e[10], f = +(e[11] || 0), u = (h * 60 + f) * 6e4, e[9] === "-" && (u = -u)), d = new Date(Date.UTC(r, n, i, s, a, o, l)), u && d.setTime(d.getTime() - u), d; } -function KAe(t) { +function ZAe(t) { return t.toISOString(); } -var jre = new hs("tag:yaml.org,2002:timestamp", { +var Hre = new hs("tag:yaml.org,2002:timestamp", { kind: "scalar", - resolve: ZAe, - construct: jAe, + resolve: HAe, + construct: XAe, instanceOf: Date, - represent: KAe + represent: ZAe }); -function JAe(t) { +function jAe(t) { return t === "<<" || t === null; } -var Kre = new hs("tag:yaml.org,2002:merge", { +var Xre = new hs("tag:yaml.org,2002:merge", { kind: "scalar", - resolve: JAe -}), nD = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/= + resolve: jAe +}), eD = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/= \r`; -function e7e(t) { +function KAe(t) { if (t === null) return !1; - var e, r, n = 0, i = t.length, s = nD; + var e, r, n = 0, i = t.length, s = eD; for (r = 0; r < i; r++) if (e = s.indexOf(t.charAt(r)), !(e > 64)) { if (e < 0) @@ -26969,37 +26969,37 @@ function e7e(t) { } return n % 8 === 0; } -function t7e(t) { - var e, r, n = t.replace(/[\r\n=]/g, ""), i = n.length, s = nD, a = 0, o = []; +function JAe(t) { + var e, r, n = t.replace(/[\r\n=]/g, ""), i = n.length, s = eD, a = 0, o = []; for (e = 0; e < i; e++) e % 4 === 0 && e && (o.push(a >> 16 & 255), o.push(a >> 8 & 255), o.push(a & 255)), a = a << 6 | s.indexOf(n.charAt(e)); return r = i % 4 * 6, r === 0 ? (o.push(a >> 16 & 255), o.push(a >> 8 & 255), o.push(a & 255)) : r === 18 ? (o.push(a >> 10 & 255), o.push(a >> 2 & 255)) : r === 12 && o.push(a >> 4 & 255), new Uint8Array(o); } -function r7e(t) { - var e = "", r = 0, n, i, s = t.length, a = nD; +function e7e(t) { + var e = "", r = 0, n, i, s = t.length, a = eD; for (n = 0; n < s; n++) n % 3 === 0 && n && (e += a[r >> 18 & 63], e += a[r >> 12 & 63], e += a[r >> 6 & 63], e += a[r & 63]), r = (r << 8) + t[n]; return i = s % 3, i === 0 ? (e += a[r >> 18 & 63], e += a[r >> 12 & 63], e += a[r >> 6 & 63], e += a[r & 63]) : i === 2 ? (e += a[r >> 10 & 63], e += a[r >> 4 & 63], e += a[r << 2 & 63], e += a[64]) : i === 1 && (e += a[r >> 2 & 63], e += a[r << 4 & 63], e += a[64], e += a[64]), e; } -function n7e(t) { +function t7e(t) { return Object.prototype.toString.call(t) === "[object Uint8Array]"; } -var Jre = new hs("tag:yaml.org,2002:binary", { +var Zre = new hs("tag:yaml.org,2002:binary", { kind: "scalar", - resolve: e7e, - construct: t7e, - predicate: n7e, - represent: r7e -}), i7e = Object.prototype.hasOwnProperty, s7e = Object.prototype.toString; -function a7e(t) { + resolve: KAe, + construct: JAe, + predicate: t7e, + represent: e7e +}), r7e = Object.prototype.hasOwnProperty, n7e = Object.prototype.toString; +function i7e(t) { if (t === null) return !0; var e = [], r, n, i, s, a, o = t; for (r = 0, n = o.length; r < n; r += 1) { - if (i = o[r], a = !1, s7e.call(i) !== "[object Object]") + if (i = o[r], a = !1, n7e.call(i) !== "[object Object]") return !1; for (s in i) - if (i7e.call(i, s)) + if (r7e.call(i, s)) if (!a) a = !0; else @@ -27013,26 +27013,26 @@ function a7e(t) { } return !0; } -function o7e(t) { +function s7e(t) { return t !== null ? t : []; } -var ene = new hs("tag:yaml.org,2002:omap", { +var jre = new hs("tag:yaml.org,2002:omap", { kind: "sequence", - resolve: a7e, - construct: o7e -}), l7e = Object.prototype.toString; -function c7e(t) { + resolve: i7e, + construct: s7e +}), a7e = Object.prototype.toString; +function o7e(t) { if (t === null) return !0; var e, r, n, i, s, a = t; for (s = new Array(a.length), e = 0, r = a.length; e < r; e += 1) { - if (n = a[e], l7e.call(n) !== "[object Object]" || (i = Object.keys(n), i.length !== 1)) + if (n = a[e], a7e.call(n) !== "[object Object]" || (i = Object.keys(n), i.length !== 1)) return !1; s[e] = [i[0], n[i[0]]]; } return !0; } -function u7e(t) { +function l7e(t) { if (t === null) return []; var e, r, n, i, s, a = t; @@ -27040,40 +27040,40 @@ function u7e(t) { n = a[e], i = Object.keys(n), s[e] = [i[0], n[i[0]]]; return s; } -var tne = new hs("tag:yaml.org,2002:pairs", { +var Kre = new hs("tag:yaml.org,2002:pairs", { kind: "sequence", - resolve: c7e, - construct: u7e -}), h7e = Object.prototype.hasOwnProperty; -function f7e(t) { + resolve: o7e, + construct: l7e +}), c7e = Object.prototype.hasOwnProperty; +function u7e(t) { if (t === null) return !0; var e, r = t; for (e in r) - if (h7e.call(r, e) && r[e] !== null) + if (c7e.call(r, e) && r[e] !== null) return !1; return !0; } -function d7e(t) { +function h7e(t) { return t !== null ? t : {}; } -var rne = new hs("tag:yaml.org,2002:set", { +var Jre = new hs("tag:yaml.org,2002:set", { kind: "mapping", - resolve: f7e, - construct: d7e -}), iD = Hre.extend({ + resolve: u7e, + construct: h7e +}), tD = Qre.extend({ implicit: [ - jre, - Kre + Hre, + Xre ], explicit: [ - Jre, - ene, - tne, - rne + Zre, + jre, + Kre, + Jre ] -}), gf = Object.prototype.hasOwnProperty, s3 = 1, nne = 2, ine = 3, a3 = 4, d6 = 1, p7e = 2, hV = 3, g7e = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, m7e = /[\x85\u2028\u2029]/, v7e = /[,\[\]\{\}]/, sne = /^(?:!|!!|![a-z\-]+!)$/i, ane = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i; -function fV(t) { +}), gf = Object.prototype.hasOwnProperty, i3 = 1, ene = 2, tne = 3, s3 = 4, h6 = 1, f7e = 2, lV = 3, d7e = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, p7e = /[\x85\u2028\u2029]/, g7e = /[,\[\]\{\}]/, rne = /^(?:!|!!|![a-z\-]+!)$/i, nne = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i; +function cV(t) { return Object.prototype.toString.call(t); } function Rc(t) { @@ -27088,33 +27088,33 @@ function Da(t) { function Np(t) { return t === 44 || t === 91 || t === 93 || t === 123 || t === 125; } -function y7e(t) { +function m7e(t) { var e; return 48 <= t && t <= 57 ? t - 48 : (e = t | 32, 97 <= e && e <= 102 ? e - 97 + 10 : -1); } -function b7e(t) { +function v7e(t) { return t === 120 ? 2 : t === 117 ? 4 : t === 85 ? 8 : 0; } -function x7e(t) { +function y7e(t) { return 48 <= t && t <= 57 ? t - 48 : -1; } -function dV(t) { +function uV(t) { return t === 48 ? "\0" : t === 97 ? "\x07" : t === 98 ? "\b" : t === 116 || t === 9 ? " " : t === 110 ? ` ` : t === 118 ? "\v" : t === 102 ? "\f" : t === 114 ? "\r" : t === 101 ? "\x1B" : t === 32 ? " " : t === 34 ? '"' : t === 47 ? "/" : t === 92 ? "\\" : t === 78 ? "\x85" : t === 95 ? "\xA0" : t === 76 ? "\u2028" : t === 80 ? "\u2029" : ""; } -function w7e(t) { +function b7e(t) { return t <= 65535 ? String.fromCharCode(t) : String.fromCharCode( (t - 65536 >> 10) + 55296, (t - 65536 & 1023) + 56320 ); } -var one = new Array(256), lne = new Array(256); +var ine = new Array(256), sne = new Array(256); for (var up = 0; up < 256; up++) - one[up] = dV(up) ? 1 : 0, lne[up] = dV(up); -function O7e(t, e) { - this.input = t, this.filename = e.filename || null, this.schema = e.schema || iD, 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 = []; + ine[up] = uV(up) ? 1 : 0, sne[up] = uV(up); +function x7e(t, e) { + this.input = t, this.filename = e.filename || null, this.schema = e.schema || tD, 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 = []; } -function cne(t, e) { +function ane(t, e) { var r = { name: t.filename, buffer: t.input.slice(0, -1), @@ -27122,22 +27122,22 @@ function cne(t, e) { line: t.line, column: t.position - t.lineStart }; - return r.snippet = CAe(r), new ea(e, r); + return r.snippet = SAe(r), new ea(e, r); } function Ut(t, e) { - throw cne(t, e); + throw ane(t, e); } -function o3(t, e) { - t.onWarning && t.onWarning.call(null, cne(t, e)); +function a3(t, e) { + t.onWarning && t.onWarning.call(null, ane(t, e)); } -var pV = { +var hV = { YAML: function(e, r, n) { var i, s, a; - e.version !== null && Ut(e, "duplication of %YAML directive"), n.length !== 1 && Ut(e, "YAML directive accepts exactly one argument"), i = /^([0-9]+)\.([0-9]+)$/.exec(n[0]), i === null && Ut(e, "ill-formed argument of the YAML directive"), s = parseInt(i[1], 10), a = parseInt(i[2], 10), s !== 1 && Ut(e, "unacceptable YAML version of the document"), e.version = n[0], e.checkLineBreaks = a < 2, a !== 1 && a !== 2 && o3(e, "unsupported YAML version of the document"); + e.version !== null && Ut(e, "duplication of %YAML directive"), n.length !== 1 && Ut(e, "YAML directive accepts exactly one argument"), i = /^([0-9]+)\.([0-9]+)$/.exec(n[0]), i === null && Ut(e, "ill-formed argument of the YAML directive"), s = parseInt(i[1], 10), a = parseInt(i[2], 10), s !== 1 && Ut(e, "unacceptable YAML version of the document"), e.version = n[0], e.checkLineBreaks = a < 2, a !== 1 && a !== 2 && a3(e, "unsupported YAML version of the document"); }, TAG: function(e, r, n) { var i, s; - n.length !== 2 && Ut(e, "TAG directive accepts exactly two arguments"), i = n[0], s = n[1], sne.test(i) || Ut(e, "ill-formed tag handle (first argument) of the TAG directive"), gf.call(e.tagMap, i) && Ut(e, 'there is a previously declared suffix for "' + i + '" tag handle'), ane.test(s) || Ut(e, "ill-formed tag prefix (second argument) of the TAG directive"); + n.length !== 2 && Ut(e, "TAG directive accepts exactly two arguments"), i = n[0], s = n[1], rne.test(i) || Ut(e, "ill-formed tag handle (first argument) of the TAG directive"), gf.call(e.tagMap, i) && Ut(e, 'there is a previously declared suffix for "' + i + '" tag handle'), nne.test(s) || Ut(e, "ill-formed tag prefix (second argument) of the TAG directive"); try { s = decodeURIComponent(s); } catch { @@ -27153,11 +27153,11 @@ function jh(t, e, r, n) { for (i = 0, s = o.length; i < s; i += 1) a = o.charCodeAt(i), a === 9 || 32 <= a && a <= 1114111 || Ut(t, "expected valid JSON character"); else - g7e.test(o) && Ut(t, "the stream contains non-printable characters"); + d7e.test(o) && Ut(t, "the stream contains non-printable characters"); t.result += o; } } -function gV(t, e, r, n) { +function fV(t, e, r, n) { var i, s, a, o; for (Ti.isObject(r) || Ut(t, "cannot merge mappings; the provided source object is unacceptable"), i = Object.keys(r), a = 0, o = i.length; a < o; a += 1) s = i[a], gf.call(e, s) || (e[s] = r[s], n[s] = !0); @@ -27166,13 +27166,13 @@ function Ip(t, e, r, n, i, s, a, o, l) { var u, h; if (Array.isArray(i)) for (i = Array.prototype.slice.call(i), u = 0, h = i.length; u < h; u += 1) - Array.isArray(i[u]) && Ut(t, "nested arrays are not supported inside keys"), typeof i == "object" && fV(i[u]) === "[object Object]" && (i[u] = "[object Object]"); - if (typeof i == "object" && fV(i) === "[object Object]" && (i = "[object Object]"), i = String(i), e === null && (e = {}), n === "tag:yaml.org,2002:merge") + Array.isArray(i[u]) && Ut(t, "nested arrays are not supported inside keys"), typeof i == "object" && cV(i[u]) === "[object Object]" && (i[u] = "[object Object]"); + if (typeof i == "object" && cV(i) === "[object Object]" && (i = "[object Object]"), i = String(i), e === null && (e = {}), n === "tag:yaml.org,2002:merge") if (Array.isArray(s)) for (u = 0, h = s.length; u < h; u += 1) - gV(t, e, s[u], r); + fV(t, e, s[u], r); else - gV(t, e, s, r); + fV(t, e, s, r); else !t.json && !gf.call(r, i) && gf.call(e, i) && (t.line = a || t.line, t.lineStart = o || t.lineStart, t.position = l || t.position, Ut(t, "duplicated mapping key")), i === "__proto__" ? Object.defineProperty(e, i, { configurable: !0, @@ -27182,7 +27182,7 @@ function Ip(t, e, r, n, i, s, a, o, l) { }) : e[i] = s, delete r[i]; return e; } -function sD(t) { +function rD(t) { var e; e = t.input.charCodeAt(t.position), e === 10 ? t.position++ : e === 13 ? (t.position++, t.input.charCodeAt(t.position) === 10 && t.position++) : Ut(t, "a line break is expected"), t.line += 1, t.lineStart = t.position, t.firstTabInLine = -1; } @@ -27195,22 +27195,22 @@ function hi(t, e, r) { i = t.input.charCodeAt(++t.position); while (i !== 10 && i !== 13 && i !== 0); if (Rc(i)) - for (sD(t), i = t.input.charCodeAt(t.position), n++, t.lineIndent = 0; i === 32; ) + for (rD(t), i = t.input.charCodeAt(t.position), n++, t.lineIndent = 0; i === 32; ) t.lineIndent++, i = t.input.charCodeAt(++t.position); else break; } - return r !== -1 && n !== 0 && t.lineIndent < r && o3(t, "deficient indentation"), n; + return r !== -1 && n !== 0 && t.lineIndent < r && a3(t, "deficient indentation"), n; } -function hT(t) { +function uT(t) { var e = t.position, r; return r = t.input.charCodeAt(e), !!((r === 45 || r === 46) && r === t.input.charCodeAt(e + 1) && r === t.input.charCodeAt(e + 2) && (e += 3, r = t.input.charCodeAt(e), r === 0 || Da(r))); } -function aD(t, e) { +function nD(t, e) { e === 1 ? t.result += " " : e > 1 && (t.result += Ti.repeat(` `, e - 1)); } -function k7e(t, e, r) { +function w7e(t, e, r) { var n, i, s, a, o, l, u, h, f = t.kind, d = t.result, p; if (p = t.input.charCodeAt(t.position), Da(p) || Np(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) && (i = t.input.charCodeAt(t.position + 1), Da(i) || r && Np(i))) return !1; @@ -27222,7 +27222,7 @@ function k7e(t, e, r) { if (n = t.input.charCodeAt(t.position - 1), Da(n)) break; } else { - if (t.position === t.lineStart && hT(t) || r && Np(p)) + if (t.position === t.lineStart && uT(t) || r && Np(p)) break; if (Rc(p)) if (l = t.line, u = t.lineStart, h = t.lineIndent, hi(t, !1, -1), t.lineIndent >= e) { @@ -27233,11 +27233,11 @@ function k7e(t, e, r) { break; } } - o && (jh(t, s, a, !1), aD(t, t.line - l), s = a = t.position, o = !1), Yd(p) || (a = t.position + 1), p = t.input.charCodeAt(++t.position); + o && (jh(t, s, a, !1), nD(t, t.line - l), s = a = t.position, o = !1), Yd(p) || (a = t.position + 1), p = t.input.charCodeAt(++t.position); } return jh(t, s, a, !1), t.result ? !0 : (t.kind = f, t.result = d, !1); } -function S7e(t, e) { +function O7e(t, e) { var r, n, i; if (r = t.input.charCodeAt(t.position), r !== 39) return !1; @@ -27248,10 +27248,10 @@ function S7e(t, e) { else return !0; else - Rc(r) ? (jh(t, n, i, !0), aD(t, hi(t, !1, e)), n = i = t.position) : t.position === t.lineStart && hT(t) ? Ut(t, "unexpected end of the document within a single quoted scalar") : (t.position++, i = t.position); + Rc(r) ? (jh(t, n, i, !0), nD(t, hi(t, !1, e)), n = i = t.position) : t.position === t.lineStart && uT(t) ? Ut(t, "unexpected end of the document within a single quoted scalar") : (t.position++, i = t.position); Ut(t, "unexpected end of the stream within a single quoted scalar"); } -function T7e(t, e) { +function k7e(t, e) { var r, n, i, s, a, o; if (o = t.input.charCodeAt(t.position), o !== 34) return !1; @@ -27261,21 +27261,21 @@ function T7e(t, e) { if (o === 92) { if (jh(t, r, t.position, !0), o = t.input.charCodeAt(++t.position), Rc(o)) hi(t, !1, e); - else if (o < 256 && one[o]) - t.result += lne[o], t.position++; - else if ((a = b7e(o)) > 0) { + else if (o < 256 && ine[o]) + t.result += sne[o], t.position++; + else if ((a = v7e(o)) > 0) { for (i = a, s = 0; i > 0; i--) - o = t.input.charCodeAt(++t.position), (a = y7e(o)) >= 0 ? s = (s << 4) + a : Ut(t, "expected hexadecimal character"); - t.result += w7e(s), t.position++; + o = t.input.charCodeAt(++t.position), (a = m7e(o)) >= 0 ? s = (s << 4) + a : Ut(t, "expected hexadecimal character"); + t.result += b7e(s), t.position++; } else Ut(t, "unknown escape sequence"); r = n = t.position; } else - Rc(o) ? (jh(t, r, n, !0), aD(t, hi(t, !1, e)), r = n = t.position) : t.position === t.lineStart && hT(t) ? Ut(t, "unexpected end of the document within a double quoted scalar") : (t.position++, n = t.position); + Rc(o) ? (jh(t, r, n, !0), nD(t, hi(t, !1, e)), r = n = t.position) : t.position === t.lineStart && uT(t) ? Ut(t, "unexpected end of the document within a double quoted scalar") : (t.position++, n = t.position); } Ut(t, "unexpected end of the stream within a double quoted scalar"); } -function C7e(t, e) { +function S7e(t, e) { var r = !0, n, i, s, a = t.tag, o, l = t.anchor, u, h, f, d, p, g = /* @__PURE__ */ Object.create(null), m, v, y, b; if (b = t.input.charCodeAt(t.position), b === 91) h = 93, p = !1, o = []; @@ -27286,12 +27286,12 @@ function C7e(t, e) { for (t.anchor !== null && (t.anchorMap[t.anchor] = o), b = t.input.charCodeAt(++t.position); b !== 0; ) { if (hi(t, !0, e), b = t.input.charCodeAt(t.position), b === h) return t.position++, t.tag = a, t.anchor = l, t.kind = p ? "mapping" : "sequence", t.result = o, !0; - r ? b === 44 && Ut(t, "expected the node content, but found ','") : Ut(t, "missed comma between flow collection entries"), v = m = y = null, f = d = !1, b === 63 && (u = t.input.charCodeAt(t.position + 1), Da(u) && (f = d = !0, t.position++, hi(t, !0, e))), n = t.line, i = t.lineStart, s = t.position, qg(t, e, s3, !1, !0), v = t.tag, m = t.result, hi(t, !0, e), b = t.input.charCodeAt(t.position), (d || t.line === n) && b === 58 && (f = !0, b = t.input.charCodeAt(++t.position), hi(t, !0, e), qg(t, e, s3, !1, !0), y = t.result), p ? Ip(t, o, g, v, m, y, n, i, s) : f ? o.push(Ip(t, null, g, v, m, y, n, i, s)) : o.push(m), hi(t, !0, e), b = t.input.charCodeAt(t.position), b === 44 ? (r = !0, b = t.input.charCodeAt(++t.position)) : r = !1; + r ? b === 44 && Ut(t, "expected the node content, but found ','") : Ut(t, "missed comma between flow collection entries"), v = m = y = null, f = d = !1, b === 63 && (u = t.input.charCodeAt(t.position + 1), Da(u) && (f = d = !0, t.position++, hi(t, !0, e))), n = t.line, i = t.lineStart, s = t.position, qg(t, e, i3, !1, !0), v = t.tag, m = t.result, hi(t, !0, e), b = t.input.charCodeAt(t.position), (d || t.line === n) && b === 58 && (f = !0, b = t.input.charCodeAt(++t.position), hi(t, !0, e), qg(t, e, i3, !1, !0), y = t.result), p ? Ip(t, o, g, v, m, y, n, i, s) : f ? o.push(Ip(t, null, g, v, m, y, n, i, s)) : o.push(m), hi(t, !0, e), b = t.input.charCodeAt(t.position), b === 44 ? (r = !0, b = t.input.charCodeAt(++t.position)) : r = !1; } Ut(t, "unexpected end of the stream within a flow collection"); } -function E7e(t, e) { - var r, n, i = d6, s = !1, a = !1, o = e, l = 0, u = !1, h, f; +function T7e(t, e) { + var r, n, i = h6, s = !1, a = !1, o = e, l = 0, u = !1, h, f; if (f = t.input.charCodeAt(t.position), f === 124) n = !1; else if (f === 62) @@ -27300,8 +27300,8 @@ function E7e(t, e) { return !1; for (t.kind = "scalar", t.result = ""; f !== 0; ) if (f = t.input.charCodeAt(++t.position), f === 43 || f === 45) - d6 === i ? i = f === 43 ? hV : p7e : Ut(t, "repeat of a chomping mode identifier"); - else if ((h = x7e(f)) >= 0) + h6 === i ? i = f === 43 ? lV : f7e : Ut(t, "repeat of a chomping mode identifier"); + else if ((h = y7e(f)) >= 0) h === 0 ? Ut(t, "bad explicit indentation width of a block scalar; it cannot be less than one") : a ? Ut(t, "repeat of an indentation width identifier") : (o = e + h - 1, a = !0); else break; @@ -27315,15 +27315,15 @@ function E7e(t, e) { while (!Rc(f) && f !== 0); } for (; f !== 0; ) { - for (sD(t), t.lineIndent = 0, f = t.input.charCodeAt(t.position); (!a || t.lineIndent < o) && f === 32; ) + for (rD(t), t.lineIndent = 0, f = t.input.charCodeAt(t.position); (!a || t.lineIndent < o) && f === 32; ) t.lineIndent++, f = t.input.charCodeAt(++t.position); if (!a && t.lineIndent > o && (o = t.lineIndent), Rc(f)) { l++; continue; } if (t.lineIndent < o) { - i === hV ? t.result += Ti.repeat(` -`, s ? 1 + l : l) : i === d6 && s && (t.result += ` + i === lV ? t.result += Ti.repeat(` +`, s ? 1 + l : l) : i === h6 && s && (t.result += ` `); break; } @@ -27337,7 +27337,7 @@ function E7e(t, e) { } return !0; } -function mV(t, e) { +function dV(t, e) { var r, n = t.tag, i = t.anchor, s = [], a, o = !1, l; if (t.firstTabInLine !== -1) return !1; @@ -27346,14 +27346,14 @@ function mV(t, e) { s.push(null), l = t.input.charCodeAt(t.position); continue; } - if (r = t.line, qg(t, e, ine, !1, !0), s.push(t.result), hi(t, !0, -1), l = t.input.charCodeAt(t.position), (t.line === r || t.lineIndent > e) && l !== 0) + if (r = t.line, qg(t, e, tne, !1, !0), s.push(t.result), hi(t, !0, -1), l = t.input.charCodeAt(t.position), (t.line === r || t.lineIndent > e) && l !== 0) Ut(t, "bad indentation of a sequence entry"); else if (t.lineIndent < e) break; } return o ? (t.tag = n, t.anchor = i, t.kind = "sequence", t.result = s, !0) : !1; } -function _7e(t, e, r) { +function C7e(t, e, r) { var n, i, s, a, o, l, u = t.tag, h = t.anchor, f = {}, d = /* @__PURE__ */ Object.create(null), p = null, g = null, m = null, v = !1, y = !1, b; if (t.firstTabInLine !== -1) return !1; @@ -27361,7 +27361,7 @@ function _7e(t, e, r) { if (!v && t.firstTabInLine !== -1 && (t.position = t.firstTabInLine, Ut(t, "tab characters must not be used in indentation")), n = t.input.charCodeAt(t.position + 1), s = t.line, (b === 63 || b === 58) && Da(n)) b === 63 ? (v && (Ip(t, f, d, p, g, null, a, o, l), p = g = m = null), y = !0, v = !0, i = !0) : v ? (v = !1, i = !0) : Ut(t, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), t.position += 1, b = n; else { - if (a = t.line, o = t.lineStart, l = t.position, !qg(t, r, nne, !1, !0)) + if (a = t.line, o = t.lineStart, l = t.position, !qg(t, r, ene, !1, !0)) break; if (t.line === s) { for (b = t.input.charCodeAt(t.position); Yd(b); ) @@ -27377,14 +27377,14 @@ function _7e(t, e, r) { else return t.tag = u, t.anchor = h, !0; } - if ((t.line === s || t.lineIndent > e) && (v && (a = t.line, o = t.lineStart, l = t.position), qg(t, e, a3, !0, i) && (v ? g = t.result : m = t.result), v || (Ip(t, f, d, p, g, m, a, o, l), p = g = m = null), hi(t, !0, -1), b = t.input.charCodeAt(t.position)), (t.line === s || t.lineIndent > e) && b !== 0) + if ((t.line === s || t.lineIndent > e) && (v && (a = t.line, o = t.lineStart, l = t.position), qg(t, e, s3, !0, i) && (v ? g = t.result : m = t.result), v || (Ip(t, f, d, p, g, m, a, o, l), p = g = m = null), hi(t, !0, -1), b = t.input.charCodeAt(t.position)), (t.line === s || t.lineIndent > e) && b !== 0) Ut(t, "bad indentation of a mapping entry"); else if (t.lineIndent < e) break; } return v && Ip(t, f, d, p, g, null, a, o, l), y && (t.tag = u, t.anchor = h, t.kind = "mapping", t.result = f), y; } -function A7e(t) { +function E7e(t) { var e, r = !1, n = !1, i, s, a; if (a = t.input.charCodeAt(t.position), a !== 33) return !1; @@ -27395,10 +27395,10 @@ function A7e(t) { t.position < t.length ? (s = t.input.slice(e, t.position), a = t.input.charCodeAt(++t.position)) : Ut(t, "unexpected end of the stream within a verbatim tag"); } else { for (; a !== 0 && !Da(a); ) - a === 33 && (n ? Ut(t, "tag suffix cannot contain exclamation marks") : (i = t.input.slice(e - 1, t.position + 1), sne.test(i) || Ut(t, "named tag handle cannot contain such characters"), n = !0, e = t.position + 1)), a = t.input.charCodeAt(++t.position); - s = t.input.slice(e, t.position), v7e.test(s) && Ut(t, "tag suffix cannot contain flow indicator characters"); + a === 33 && (n ? Ut(t, "tag suffix cannot contain exclamation marks") : (i = t.input.slice(e - 1, t.position + 1), rne.test(i) || Ut(t, "named tag handle cannot contain such characters"), n = !0, e = t.position + 1)), a = t.input.charCodeAt(++t.position); + s = t.input.slice(e, t.position), g7e.test(s) && Ut(t, "tag suffix cannot contain flow indicator characters"); } - s && !ane.test(s) && Ut(t, "tag name cannot contain such characters: " + s); + s && !nne.test(s) && Ut(t, "tag name cannot contain such characters: " + s); try { s = decodeURIComponent(s); } catch { @@ -27406,7 +27406,7 @@ function A7e(t) { } return r ? t.tag = s : gf.call(t.tagMap, i) ? t.tag = t.tagMap[i] + s : i === "!" ? t.tag = "!" + s : i === "!!" ? t.tag = "tag:yaml.org,2002:" + s : Ut(t, 'undeclared tag handle "' + i + '"'), !0; } -function L7e(t) { +function _7e(t) { var e, r; if (r = t.input.charCodeAt(t.position), r !== 38) return !1; @@ -27414,7 +27414,7 @@ function L7e(t) { r = t.input.charCodeAt(++t.position); return t.position === e && Ut(t, "name of an anchor node must contain at least one character"), t.anchor = t.input.slice(e, t.position), !0; } -function R7e(t) { +function A7e(t) { var e, r, n; if (n = t.input.charCodeAt(t.position), n !== 42) return !1; @@ -27424,10 +27424,10 @@ function R7e(t) { } function qg(t, e, r, n, i) { var s, a, o, l = 1, u = !1, h = !1, f, d, p, g, m, v; - if (t.listener !== null && t.listener("open", t), t.tag = null, t.anchor = null, t.kind = null, t.result = null, s = a = o = a3 === r || ine === r, n && hi(t, !0, -1) && (u = !0, t.lineIndent > e ? l = 1 : t.lineIndent === e ? l = 0 : t.lineIndent < e && (l = -1)), l === 1) - for (; A7e(t) || L7e(t); ) + if (t.listener !== null && t.listener("open", t), t.tag = null, t.anchor = null, t.kind = null, t.result = null, s = a = o = s3 === r || tne === r, n && hi(t, !0, -1) && (u = !0, t.lineIndent > e ? l = 1 : t.lineIndent === e ? l = 0 : t.lineIndent < e && (l = -1)), l === 1) + for (; E7e(t) || _7e(t); ) hi(t, !0, -1) ? (u = !0, o = s, t.lineIndent > e ? l = 1 : t.lineIndent === e ? l = 0 : t.lineIndent < e && (l = -1)) : o = !1; - if (o && (o = u || i), (l === 1 || a3 === r) && (s3 === r || nne === r ? m = e : m = e + 1, v = t.position - t.lineStart, l === 1 ? o && (mV(t, v) || _7e(t, v, m)) || C7e(t, m) ? h = !0 : (a && E7e(t, m) || S7e(t, m) || T7e(t, m) ? h = !0 : R7e(t) ? (h = !0, (t.tag !== null || t.anchor !== null) && Ut(t, "alias node should not have any properties")) : k7e(t, m, s3 === r) && (h = !0, t.tag === null && (t.tag = "?")), t.anchor !== null && (t.anchorMap[t.anchor] = t.result)) : l === 0 && (h = o && mV(t, v))), t.tag === null) + if (o && (o = u || i), (l === 1 || s3 === r) && (i3 === r || ene === r ? m = e : m = e + 1, v = t.position - t.lineStart, l === 1 ? o && (dV(t, v) || C7e(t, v, m)) || S7e(t, m) ? h = !0 : (a && T7e(t, m) || O7e(t, m) || k7e(t, m) ? h = !0 : A7e(t) ? (h = !0, (t.tag !== null || t.anchor !== null) && Ut(t, "alias node should not have any properties")) : w7e(t, m, i3 === r) && (h = !0, t.tag === null && (t.tag = "?")), t.anchor !== null && (t.anchorMap[t.anchor] = t.result)) : l === 0 && (h = o && dV(t, v))), t.tag === null) t.anchor !== null && (t.anchorMap[t.anchor] = t.result); else if (t.tag === "?") { for (t.result !== null && t.kind !== "scalar" && Ut(t, 'unacceptable node kind for ! tag; it should be "scalar", not "' + t.kind + '"'), f = 0, d = t.implicitTypes.length; f < d; f += 1) @@ -27448,7 +27448,7 @@ function qg(t, e, r, n, i) { } return t.listener !== null && t.listener("close", t), t.tag !== null || t.anchor !== null || h; } -function M7e(t) { +function L7e(t) { var e = t.position, r, n, i, s = !1, a; for (t.version = null, t.checkLineBreaks = t.legacy, t.tagMap = /* @__PURE__ */ Object.create(null), t.anchorMap = /* @__PURE__ */ Object.create(null); (a = t.input.charCodeAt(t.position)) !== 0 && (hi(t, !0, -1), a = t.input.charCodeAt(t.position), !(t.lineIndent > 0 || a !== 37)); ) { for (s = !0, a = t.input.charCodeAt(++t.position), r = t.position; a !== 0 && !Da(a); ) @@ -27468,9 +27468,9 @@ function M7e(t) { a = t.input.charCodeAt(++t.position); i.push(t.input.slice(r, t.position)); } - a !== 0 && sD(t), gf.call(pV, n) ? pV[n](t, n, i) : o3(t, 'unknown document directive "' + n + '"'); + a !== 0 && rD(t), gf.call(hV, n) ? hV[n](t, n, i) : a3(t, 'unknown document directive "' + n + '"'); } - if (hi(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, hi(t, !0, -1)) : s && Ut(t, "directives end mark is expected"), qg(t, t.lineIndent - 1, a3, !1, !0), hi(t, !0, -1), t.checkLineBreaks && m7e.test(t.input.slice(e, t.position)) && o3(t, "non-ASCII line breaks are interpreted as content"), t.documents.push(t.result), t.position === t.lineStart && hT(t)) { + if (hi(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, hi(t, !0, -1)) : s && Ut(t, "directives end mark is expected"), qg(t, t.lineIndent - 1, s3, !1, !0), hi(t, !0, -1), t.checkLineBreaks && p7e.test(t.input.slice(e, t.position)) && a3(t, "non-ASCII line breaks are interpreted as content"), t.documents.push(t.result), t.position === t.lineStart && uT(t)) { t.input.charCodeAt(t.position) === 46 && (t.position += 3, hi(t, !0, -1)); return; } @@ -27479,36 +27479,36 @@ function M7e(t) { else return; } -function une(t, e) { +function one(t, e) { t = String(t), e = e || {}, t.length !== 0 && (t.charCodeAt(t.length - 1) !== 10 && t.charCodeAt(t.length - 1) !== 13 && (t += ` `), t.charCodeAt(0) === 65279 && (t = t.slice(1))); - var r = new O7e(t, e), n = t.indexOf("\0"); + var r = new x7e(t, e), n = t.indexOf("\0"); for (n !== -1 && (r.position = n, Ut(r, "null byte is not allowed in input")), r.input += "\0"; r.input.charCodeAt(r.position) === 32; ) r.lineIndent += 1, r.position += 1; for (; r.position < r.length - 1; ) - M7e(r); + L7e(r); return r.documents; } -function D7e(t, e, r) { +function R7e(t, e, r) { e !== null && typeof e == "object" && typeof r > "u" && (r = e, e = null); - var n = une(t, r); + var n = one(t, r); if (typeof e != "function") return n; for (var i = 0, s = n.length; i < s; i += 1) e(n[i]); } -function N7e(t, e) { - var r = une(t, e); +function M7e(t, e) { + var r = one(t, e); if (r.length !== 0) { if (r.length === 1) return r[0]; throw new ea("expected a single document in the stream, but found more"); } } -var I7e = D7e, P7e = N7e, hne = { - loadAll: I7e, - load: P7e -}, fne = Object.prototype.toString, dne = Object.prototype.hasOwnProperty, oD = 65279, $7e = 9, n2 = 10, B7e = 13, F7e = 32, z7e = 33, V7e = 34, c8 = 35, U7e = 37, q7e = 38, Y7e = 39, Q7e = 42, pne = 44, W7e = 45, l3 = 58, G7e = 61, H7e = 62, X7e = 63, Z7e = 64, gne = 91, mne = 93, j7e = 96, vne = 123, K7e = 124, yne = 125, qs = {}; +var D7e = R7e, N7e = M7e, lne = { + loadAll: D7e, + load: N7e +}, cne = Object.prototype.toString, une = Object.prototype.hasOwnProperty, iD = 65279, I7e = 9, n2 = 10, P7e = 13, $7e = 32, B7e = 33, F7e = 34, o8 = 35, z7e = 37, V7e = 38, U7e = 39, q7e = 42, hne = 44, Y7e = 45, o3 = 58, Q7e = 61, W7e = 62, G7e = 63, H7e = 64, fne = 91, dne = 93, X7e = 96, pne = 123, Z7e = 124, gne = 125, qs = {}; qs[0] = "\\0"; qs[7] = "\\a"; qs[8] = "\\b"; @@ -27524,7 +27524,7 @@ qs[133] = "\\N"; qs[160] = "\\_"; qs[8232] = "\\L"; qs[8233] = "\\P"; -var J7e = [ +var j7e = [ "y", "Y", "yes", @@ -27541,16 +27541,16 @@ var J7e = [ "off", "Off", "OFF" -], e8e = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/; -function t8e(t, e) { +], K7e = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/; +function J7e(t, e) { var r, n, i, s, a, o, l; if (e === null) return {}; for (r = {}, n = Object.keys(e), i = 0, s = n.length; i < s; i += 1) - a = n[i], o = String(e[a]), a.slice(0, 2) === "!!" && (a = "tag:yaml.org,2002:" + a.slice(2)), l = t.compiledTypeMap.fallback[a], l && dne.call(l.styleAliases, o) && (o = l.styleAliases[o]), r[a] = o; + a = n[i], o = String(e[a]), a.slice(0, 2) === "!!" && (a = "tag:yaml.org,2002:" + a.slice(2)), l = t.compiledTypeMap.fallback[a], l && une.call(l.styleAliases, o) && (o = l.styleAliases[o]), r[a] = o; return r; } -function r8e(t) { +function e8e(t) { var e, r, n; if (e = t.toString(16).toUpperCase(), t <= 255) r = "x", n = 2; @@ -27562,63 +27562,63 @@ function r8e(t) { throw new ea("code point within a string may not be greater than 0xFFFFFFFF"); return "\\" + r + Ti.repeat("0", n - e.length) + e; } -var n8e = 1, i2 = 2; -function i8e(t) { - this.schema = t.schema || iD, this.indent = Math.max(1, t.indent || 2), this.noArrayIndent = t.noArrayIndent || !1, this.skipInvalid = t.skipInvalid || !1, this.flowLevel = Ti.isNothing(t.flowLevel) ? -1 : t.flowLevel, this.styleMap = t8e(this.schema, t.styles || null), this.sortKeys = t.sortKeys || !1, this.lineWidth = t.lineWidth || 80, this.noRefs = t.noRefs || !1, this.noCompatMode = t.noCompatMode || !1, this.condenseFlow = t.condenseFlow || !1, this.quotingType = t.quotingType === '"' ? i2 : n8e, this.forceQuotes = t.forceQuotes || !1, this.replacer = typeof t.replacer == "function" ? t.replacer : null, this.implicitTypes = this.schema.compiledImplicit, this.explicitTypes = this.schema.compiledExplicit, this.tag = null, this.result = "", this.duplicates = [], this.usedDuplicates = null; +var t8e = 1, i2 = 2; +function r8e(t) { + this.schema = t.schema || tD, this.indent = Math.max(1, t.indent || 2), this.noArrayIndent = t.noArrayIndent || !1, this.skipInvalid = t.skipInvalid || !1, this.flowLevel = Ti.isNothing(t.flowLevel) ? -1 : t.flowLevel, this.styleMap = J7e(this.schema, t.styles || null), this.sortKeys = t.sortKeys || !1, this.lineWidth = t.lineWidth || 80, this.noRefs = t.noRefs || !1, this.noCompatMode = t.noCompatMode || !1, this.condenseFlow = t.condenseFlow || !1, this.quotingType = t.quotingType === '"' ? i2 : t8e, this.forceQuotes = t.forceQuotes || !1, this.replacer = typeof t.replacer == "function" ? t.replacer : null, this.implicitTypes = this.schema.compiledImplicit, this.explicitTypes = this.schema.compiledExplicit, this.tag = null, this.result = "", this.duplicates = [], this.usedDuplicates = null; } -function vV(t, e) { +function pV(t, e) { for (var r = Ti.repeat(" ", e), n = 0, i = -1, s = "", a, o = t.length; n < o; ) i = t.indexOf(` `, n), i === -1 ? (a = t.slice(n), n = o) : (a = t.slice(n, i + 1), n = i + 1), a.length && a !== ` ` && (s += r), s += a; return s; } -function u8(t, e) { +function l8(t, e) { return ` ` + Ti.repeat(" ", t.indent * e); } -function s8e(t, e) { +function n8e(t, e) { var r, n, i; for (r = 0, n = t.implicitTypes.length; r < n; r += 1) if (i = t.implicitTypes[r], i.resolve(e)) return !0; return !1; } -function c3(t) { - return t === F7e || t === $7e; +function l3(t) { + return t === $7e || t === I7e; } function s2(t) { - return 32 <= t && t <= 126 || 161 <= t && t <= 55295 && t !== 8232 && t !== 8233 || 57344 <= t && t <= 65533 && t !== oD || 65536 <= t && t <= 1114111; + return 32 <= t && t <= 126 || 161 <= t && t <= 55295 && t !== 8232 && t !== 8233 || 57344 <= t && t <= 65533 && t !== iD || 65536 <= t && t <= 1114111; } -function yV(t) { - return s2(t) && t !== oD && t !== B7e && t !== n2; +function gV(t) { + return s2(t) && t !== iD && t !== P7e && t !== n2; } -function bV(t, e, r) { - var n = yV(t), i = n && !c3(t); - return (r ? n : n && t !== pne && t !== gne && t !== mne && t !== vne && t !== yne) && t !== c8 && !(e === l3 && !i) || yV(e) && !c3(e) && t === c8 || e === l3 && i; +function mV(t, e, r) { + var n = gV(t), i = n && !l3(t); + return (r ? n : n && t !== hne && t !== fne && t !== dne && t !== pne && t !== gne) && t !== o8 && !(e === o3 && !i) || gV(e) && !l3(e) && t === o8 || e === o3 && i; } -function a8e(t) { - return s2(t) && t !== oD && !c3(t) && t !== W7e && t !== X7e && t !== l3 && t !== pne && t !== gne && t !== mne && t !== vne && t !== yne && t !== c8 && t !== q7e && t !== Q7e && t !== z7e && t !== K7e && t !== G7e && t !== H7e && t !== Y7e && t !== V7e && t !== U7e && t !== Z7e && t !== j7e; +function i8e(t) { + return s2(t) && t !== iD && !l3(t) && t !== Y7e && t !== G7e && t !== o3 && t !== hne && t !== fne && t !== dne && t !== pne && t !== gne && t !== o8 && t !== V7e && t !== q7e && t !== B7e && t !== Z7e && t !== Q7e && t !== W7e && t !== U7e && t !== F7e && t !== z7e && t !== H7e && t !== X7e; } -function o8e(t) { - return !c3(t) && t !== l3; +function s8e(t) { + return !l3(t) && t !== o3; } function bv(t, e) { var r = t.charCodeAt(e), n; return r >= 55296 && r <= 56319 && e + 1 < t.length && (n = t.charCodeAt(e + 1), n >= 56320 && n <= 57343) ? (r - 55296) * 1024 + n - 56320 + 65536 : r; } -function bne(t) { +function mne(t) { var e = /^\n* /; return e.test(t); } -var xne = 1, h8 = 2, wne = 3, One = 4, Ep = 5; -function l8e(t, e, r, n, i, s, a, o) { - var l, u = 0, h = null, f = !1, d = !1, p = n !== -1, g = -1, m = a8e(bv(t, 0)) && o8e(bv(t, t.length - 1)); +var vne = 1, c8 = 2, yne = 3, bne = 4, Ep = 5; +function a8e(t, e, r, n, i, s, a, o) { + var l, u = 0, h = null, f = !1, d = !1, p = n !== -1, g = -1, m = i8e(bv(t, 0)) && s8e(bv(t, t.length - 1)); if (e || a) for (l = 0; l < t.length; u >= 65536 ? l += 2 : l++) { if (u = bv(t, l), !s2(u)) return Ep; - m = m && bV(u, h, o), h = u; + m = m && mV(u, h, o), h = u; } else { for (l = 0; l < t.length; u >= 65536 ? l += 2 : l++) { @@ -27626,23 +27626,23 @@ function l8e(t, e, r, n, i, s, a, o) { f = !0, p && (d = d || l - g - 1 > n && t[g + 1] !== " ", g = l); else if (!s2(u)) return Ep; - m = m && bV(u, h, o), h = u; + m = m && mV(u, h, o), h = u; } d = d || p && l - g - 1 > n && t[g + 1] !== " "; } - return !f && !d ? m && !a && !i(t) ? xne : s === i2 ? Ep : h8 : r > 9 && bne(t) ? Ep : a ? s === i2 ? Ep : h8 : d ? One : wne; + return !f && !d ? m && !a && !i(t) ? vne : s === i2 ? Ep : c8 : r > 9 && mne(t) ? Ep : a ? s === i2 ? Ep : c8 : d ? bne : yne; } -function c8e(t, e, r, n, i) { +function o8e(t, e, r, n, i) { t.dump = function() { if (e.length === 0) return t.quotingType === i2 ? '""' : "''"; - if (!t.noCompatMode && (J7e.indexOf(e) !== -1 || e8e.test(e))) + if (!t.noCompatMode && (j7e.indexOf(e) !== -1 || K7e.test(e))) return t.quotingType === i2 ? '"' + e + '"' : "'" + e + "'"; var s = t.indent * Math.max(1, r), a = t.lineWidth === -1 ? -1 : Math.max(Math.min(t.lineWidth, 40), t.lineWidth - s), o = n || t.flowLevel > -1 && r >= t.flowLevel; function l(u) { - return s8e(t, u); + return n8e(t, u); } - switch (l8e( + switch (a8e( e, o, t.indent, @@ -27652,47 +27652,47 @@ function c8e(t, e, r, n, i) { t.forceQuotes && !n, i )) { - case xne: + case vne: return e; - case h8: + case c8: return "'" + e.replace(/'/g, "''") + "'"; - case wne: - return "|" + xV(e, t.indent) + wV(vV(e, s)); - case One: - return ">" + xV(e, t.indent) + wV(vV(u8e(e, a), s)); + case yne: + return "|" + vV(e, t.indent) + yV(pV(e, s)); + case bne: + return ">" + vV(e, t.indent) + yV(pV(l8e(e, a), s)); case Ep: - return '"' + h8e(e) + '"'; + return '"' + c8e(e) + '"'; default: throw new ea("impossible error: invalid scalar style"); } }(); } -function xV(t, e) { - var r = bne(t) ? String(e) : "", n = t[t.length - 1] === ` +function vV(t, e) { + var r = mne(t) ? String(e) : "", n = t[t.length - 1] === ` `, i = n && (t[t.length - 2] === ` ` || t === ` `), s = i ? "+" : n ? "" : "-"; return r + s + ` `; } -function wV(t) { +function yV(t) { return t[t.length - 1] === ` ` ? t.slice(0, -1) : t; } -function u8e(t, e) { +function l8e(t, e) { for (var r = /(\n+)([^\n]*)/g, n = function() { var u = t.indexOf(` `); - return u = u !== -1 ? u : t.length, r.lastIndex = u, OV(t.slice(0, u), e); + return u = u !== -1 ? u : t.length, r.lastIndex = u, bV(t.slice(0, u), e); }(), i = t[0] === ` ` || t[0] === " ", s, a; a = r.exec(t); ) { var o = a[1], l = a[2]; s = l[0] === " ", n += o + (!i && !s && l !== "" ? ` -` : "") + OV(l, e), i = s; +` : "") + bV(l, e), i = s; } return n; } -function OV(t, e) { +function bV(t, e) { if (t === "" || t[0] === " ") return t; for (var r = / [^ ]/g, n, i = 0, s, a = 0, o = 0, l = ""; n = r.exec(t); ) @@ -27702,30 +27702,30 @@ function OV(t, e) { `, t.length - i > e && a > i ? l += t.slice(i, a) + ` ` + t.slice(a + 1) : l += t.slice(i), l.slice(1); } -function h8e(t) { +function c8e(t) { for (var e = "", r = 0, n, i = 0; i < t.length; r >= 65536 ? i += 2 : i++) - r = bv(t, i), n = qs[r], !n && s2(r) ? (e += t[i], r >= 65536 && (e += t[i + 1])) : e += n || r8e(r); + r = bv(t, i), n = qs[r], !n && s2(r) ? (e += t[i], r >= 65536 && (e += t[i + 1])) : e += n || e8e(r); return e; } -function f8e(t, e, r) { +function u8e(t, e, r) { var n = "", i = t.tag, s, a, o; for (s = 0, a = r.length; s < a; s += 1) o = r[s], t.replacer && (o = t.replacer.call(r, String(s), o)), (Vu(t, e, o, !1, !1) || typeof o > "u" && Vu(t, e, null, !1, !1)) && (n !== "" && (n += "," + (t.condenseFlow ? "" : " ")), n += t.dump); t.tag = i, t.dump = "[" + n + "]"; } -function kV(t, e, r, n) { +function xV(t, e, r, n) { var i = "", s = t.tag, a, o, l; for (a = 0, o = r.length; a < o; a += 1) - l = r[a], t.replacer && (l = t.replacer.call(r, String(a), l)), (Vu(t, e + 1, l, !0, !0, !1, !0) || typeof l > "u" && Vu(t, e + 1, null, !0, !0, !1, !0)) && ((!n || i !== "") && (i += u8(t, e)), t.dump && n2 === t.dump.charCodeAt(0) ? i += "-" : i += "- ", i += t.dump); + l = r[a], t.replacer && (l = t.replacer.call(r, String(a), l)), (Vu(t, e + 1, l, !0, !0, !1, !0) || typeof l > "u" && Vu(t, e + 1, null, !0, !0, !1, !0)) && ((!n || i !== "") && (i += l8(t, e)), t.dump && n2 === t.dump.charCodeAt(0) ? i += "-" : i += "- ", i += t.dump); t.tag = s, t.dump = i || "[]"; } -function d8e(t, e, r) { +function h8e(t, e, r) { var n = "", i = t.tag, s = Object.keys(r), a, o, l, u, h; for (a = 0, o = s.length; a < o; a += 1) h = "", n !== "" && (h += ", "), t.condenseFlow && (h += '"'), l = s[a], u = r[l], t.replacer && (u = t.replacer.call(r, l, u)), Vu(t, e, l, !1, !1) && (t.dump.length > 1024 && (h += "? "), h += t.dump + (t.condenseFlow ? '"' : "") + ":" + (t.condenseFlow ? "" : " "), Vu(t, e, u, !1, !1) && (h += t.dump, n += h)); t.tag = i, t.dump = "{" + n + "}"; } -function p8e(t, e, r, n) { +function f8e(t, e, r, n) { var i = "", s = t.tag, a = Object.keys(r), o, l, u, h, f, d; if (t.sortKeys === !0) a.sort(); @@ -27734,17 +27734,17 @@ function p8e(t, e, r, n) { else if (t.sortKeys) throw new ea("sortKeys must be a boolean or a function"); for (o = 0, l = a.length; o < l; o += 1) - d = "", (!n || i !== "") && (d += u8(t, e)), u = a[o], h = r[u], t.replacer && (h = t.replacer.call(r, u, h)), Vu(t, e + 1, u, !0, !0, !0) && (f = t.tag !== null && t.tag !== "?" || t.dump && t.dump.length > 1024, f && (t.dump && n2 === t.dump.charCodeAt(0) ? d += "?" : d += "? "), d += t.dump, f && (d += u8(t, e)), Vu(t, e + 1, h, !0, f) && (t.dump && n2 === t.dump.charCodeAt(0) ? d += ":" : d += ": ", d += t.dump, i += d)); + d = "", (!n || i !== "") && (d += l8(t, e)), u = a[o], h = r[u], t.replacer && (h = t.replacer.call(r, u, h)), Vu(t, e + 1, u, !0, !0, !0) && (f = t.tag !== null && t.tag !== "?" || t.dump && t.dump.length > 1024, f && (t.dump && n2 === t.dump.charCodeAt(0) ? d += "?" : d += "? "), d += t.dump, f && (d += l8(t, e)), Vu(t, e + 1, h, !0, f) && (t.dump && n2 === t.dump.charCodeAt(0) ? d += ":" : d += ": ", d += t.dump, i += d)); t.tag = s, t.dump = i || "{}"; } -function SV(t, e, r) { +function wV(t, e, r) { var n, i, s, a, o, l; for (i = r ? t.explicitTypes : t.implicitTypes, s = 0, a = i.length; s < a; s += 1) if (o = i[s], (o.instanceOf || o.predicate) && (!o.instanceOf || typeof e == "object" && e instanceof o.instanceOf) && (!o.predicate || o.predicate(e))) { if (r ? o.multi && o.representName ? t.tag = o.representName(e) : t.tag = o.tag : t.tag = "?", o.represent) { - if (l = t.styleMap[o.tag] || o.defaultStyle, fne.call(o.represent) === "[object Function]") + if (l = t.styleMap[o.tag] || o.defaultStyle, cne.call(o.represent) === "[object Function]") n = o.represent(e, l); - else if (dne.call(o.represent, l)) + else if (une.call(o.represent, l)) n = o.represent[l](e, l); else throw new ea("!<" + o.tag + '> tag resolver accepts not "' + l + '" style'); @@ -27755,19 +27755,19 @@ function SV(t, e, r) { return !1; } function Vu(t, e, r, n, i, s, a) { - t.tag = null, t.dump = r, SV(t, r, !1) || SV(t, r, !0); - var o = fne.call(t.dump), l = n, u; + t.tag = null, t.dump = r, wV(t, r, !1) || wV(t, r, !0); + var o = cne.call(t.dump), l = n, u; n && (n = t.flowLevel < 0 || t.flowLevel > e); var h = o === "[object Object]" || o === "[object Array]", f, d; if (h && (f = t.duplicates.indexOf(r), d = f !== -1), (t.tag !== null && t.tag !== "?" || d || t.indent !== 2 && e > 0) && (i = !1), d && t.usedDuplicates[f]) t.dump = "*ref_" + f; else { if (h && d && !t.usedDuplicates[f] && (t.usedDuplicates[f] = !0), o === "[object Object]") - n && Object.keys(t.dump).length !== 0 ? (p8e(t, e, t.dump, i), d && (t.dump = "&ref_" + f + t.dump)) : (d8e(t, e, t.dump), d && (t.dump = "&ref_" + f + " " + t.dump)); + n && Object.keys(t.dump).length !== 0 ? (f8e(t, e, t.dump, i), d && (t.dump = "&ref_" + f + t.dump)) : (h8e(t, e, t.dump), d && (t.dump = "&ref_" + f + " " + t.dump)); else if (o === "[object Array]") - n && t.dump.length !== 0 ? (t.noArrayIndent && !a && e > 0 ? kV(t, e - 1, t.dump, i) : kV(t, e, t.dump, i), d && (t.dump = "&ref_" + f + t.dump)) : (f8e(t, e, t.dump), d && (t.dump = "&ref_" + f + " " + t.dump)); + n && t.dump.length !== 0 ? (t.noArrayIndent && !a && e > 0 ? xV(t, e - 1, t.dump, i) : xV(t, e, t.dump, i), d && (t.dump = "&ref_" + f + t.dump)) : (u8e(t, e, t.dump), d && (t.dump = "&ref_" + f + " " + t.dump)); else if (o === "[object String]") - t.tag !== "?" && c8e(t, t.dump, e, s, l); + t.tag !== "?" && o8e(t, t.dump, e, s, l); else { if (o === "[object Undefined]") return !1; @@ -27781,71 +27781,71 @@ function Vu(t, e, r, n, i, s, a) { } return !0; } -function g8e(t, e) { +function d8e(t, e) { var r = [], n = [], i, s; - for (f8(t, r, n), i = 0, s = n.length; i < s; i += 1) + for (u8(t, r, n), i = 0, s = n.length; i < s; i += 1) e.duplicates.push(r[n[i]]); e.usedDuplicates = new Array(s); } -function f8(t, e, r) { +function u8(t, e, r) { var n, i, s; if (t !== null && typeof t == "object") if (i = e.indexOf(t), i !== -1) r.indexOf(i) === -1 && r.push(i); else if (e.push(t), Array.isArray(t)) for (i = 0, s = t.length; i < s; i += 1) - f8(t[i], e, r); + u8(t[i], e, r); else for (n = Object.keys(t), i = 0, s = n.length; i < s; i += 1) - f8(t[n[i]], e, r); + u8(t[n[i]], e, r); } -function m8e(t, e) { +function p8e(t, e) { e = e || {}; - var r = new i8e(e); - r.noRefs || g8e(t, r); + var r = new r8e(e); + r.noRefs || d8e(t, r); var n = t; return r.replacer && (n = r.replacer.call({ "": n }, "", n)), Vu(r, 0, n, !0, !0) ? r.dump + ` ` : ""; } -var v8e = m8e, y8e = { - dump: v8e +var g8e = p8e, m8e = { + dump: g8e }; -function lD(t, e) { +function sD(t, e) { return function() { throw new Error("Function yaml." + t + " is removed in js-yaml 4. Use yaml." + e + " instead, which is now safe by default."); }; } -var b8e = hs, x8e = Bre, w8e = Ure, O8e = Gre, k8e = Hre, S8e = iD, T8e = hne.load, C8e = hne.loadAll, E8e = y8e.dump, _8e = ea, A8e = { - binary: Jre, - float: Wre, - map: Vre, - null: qre, - pairs: tne, - set: rne, - timestamp: jre, - bool: Yre, - int: Qre, - merge: Kre, - omap: ene, - seq: zre, - str: Fre -}, L8e = lD("safeLoad", "load"), R8e = lD("safeLoadAll", "loadAll"), M8e = lD("safeDump", "dump"), D8e = { - Type: b8e, - Schema: x8e, - FAILSAFE_SCHEMA: w8e, - JSON_SCHEMA: O8e, - CORE_SCHEMA: k8e, - DEFAULT_SCHEMA: S8e, - load: T8e, - loadAll: C8e, - dump: E8e, - YAMLException: _8e, - types: A8e, - safeLoad: L8e, - safeLoadAll: R8e, - safeDump: M8e -}; -function N8e(t, e, r, n, i, s = !0) { +var v8e = hs, y8e = Ire, b8e = Fre, x8e = Yre, w8e = Qre, O8e = tD, k8e = lne.load, S8e = lne.loadAll, T8e = m8e.dump, C8e = ea, E8e = { + binary: Zre, + float: qre, + map: Bre, + null: zre, + pairs: Kre, + set: Jre, + timestamp: Hre, + bool: Vre, + int: Ure, + merge: Xre, + omap: jre, + seq: $re, + str: Pre +}, _8e = sD("safeLoad", "load"), A8e = sD("safeLoadAll", "loadAll"), L8e = sD("safeDump", "dump"), R8e = { + Type: v8e, + Schema: y8e, + FAILSAFE_SCHEMA: b8e, + JSON_SCHEMA: x8e, + CORE_SCHEMA: w8e, + DEFAULT_SCHEMA: O8e, + load: k8e, + loadAll: S8e, + dump: T8e, + YAMLException: C8e, + types: E8e, + safeLoad: _8e, + safeLoadAll: A8e, + safeDump: L8e +}; +function M8e(t, e, r, n, i, s = !0) { const a = []; for (const l of [...t.core.ruler.__rules__].reverse()) { if (l.name === e) { @@ -27885,7 +27885,7 @@ class F0 { return (i == null ? void 0 : i.content) !== void 0 && (s.content = i.content), (i == null ? void 0 : i.level) !== void 0 && (s.level = i.level), (i == null ? void 0 : i.map) !== void 0 && (s.map = i.map), (i == null ? void 0 : i.block) !== void 0 && (s.block = i.block), (i == null ? void 0 : i.info) !== void 0 && (s.info = i.info), (i == null ? void 0 : i.meta) !== void 0 && (s.meta = i.meta), (i == null ? void 0 : i.children) !== void 0 && (s.children = i.children), s; } nestedParse(e, r) { - return N8e(this.state.md, "run_directives", e, this.state.env, r, !0); + return M8e(this.state.md, "run_directives", e, this.state.env, r, !0); } } class Fh extends Error { @@ -27893,12 +27893,12 @@ class Fh extends Error { super(...arguments), this.name = "DirectiveParsingError"; } } -function I8e(t, e) { +function D8e(t, e) { const r = t.meta.arg || "", n = t.content; let i = n.trim() ? n.split(/\r?\n/) : [], s = 0, a = {}; - (Object.keys(e.option_spec || {}) || e.rawOptions) && ([i, a, s] = kne(i, e)); + (Object.keys(e.option_spec || {}) || e.rawOptions) && ([i, a, s] = xne(i, e)); let o = []; - if (!e.required_arguments && !e.optional_arguments ? r && (s = 0, i = [r].concat(i)) : o = P8e(r, e), i.length && !i[0].trim() && (i.shift(), s++), i.length && !e.has_content) + if (!e.required_arguments && !e.optional_arguments ? r && (s = 0, i = [r].concat(i)) : o = N8e(r, e), i.length && !i[0].trim() && (i.shift(), s++), i.length && !e.has_content) throw new Fh("Has content but content not allowed"); return { map: t.map ? t.map : [0, 0], @@ -27912,7 +27912,7 @@ function I8e(t, e) { ] : [0, 0] }; } -function kne(t, e) { +function xne(t, e) { let r = 1, n = {}, i = null; if (t.length && t[0].startsWith("---")) { r++; @@ -27942,7 +27942,7 @@ function kne(t, e) { } if (i !== null) try { - const s = D8e.load(i.join(` + const s = R8e.load(i.join(` `)); if (s !== null && typeof s == "object") n = s; @@ -27969,7 +27969,7 @@ ${u}`); } return [t, n, r]; } -function P8e(t, e) { +function N8e(t, e) { var r; let n = t.trim() ? (r = t.trim()) === null || r === void 0 ? void 0 : r.split(/\s+/) : []; const i = (e.required_arguments || 0) + (e.optional_arguments || 0); @@ -27983,10 +27983,10 @@ function P8e(t, e) { throw new Fh(`maximum ${i} argument(s) allowed, ${n.length} supplied`); return n; } -function $8e(t, e) { +function I8e(t, e) { var r; let n = e.directivesAfter || "block"; - (!((r = e.replaceFences) !== null && r !== void 0) || r) && (t.core.ruler.after(n, "fence_to_directive", B8e), n = "fence_to_directive"), t.core.ruler.after(n, "run_directives", F8e(e.directives || {})), t.renderer.rules.directive = (i, s) => { + (!((r = e.replaceFences) !== null && r !== void 0) || r) && (t.core.ruler.after(n, "fence_to_directive", P8e), n = "fence_to_directive"), t.core.ruler.after(n, "run_directives", $8e(e.directives || {})), t.renderer.rules.directive = (i, s) => { const a = i[s]; return ` `; }; } -function B8e(t) { +function P8e(t) { for (const e of t.tokens) if (e.type === "fence" || e.type === "colon_fence") { const r = e.info.match(/^\{([^\s}]+)\}\s*(.*)$/); @@ -28013,13 +28013,13 @@ function B8e(t) { } return !0; } -function F8e(t) { +function $8e(t) { function e(r) { const n = []; for (const i of r.tokens) if (i.type === "directive" && i.info in t) try { - const s = new t[i.info](r), a = I8e(i, s), [o, l] = kne(i.content.trim() ? i.content.split(/\r?\n/) : [], s), u = new r.Token("parsed_directive_open", "", 1); + const s = new t[i.info](r), a = D8e(i, s), [o, l] = xne(i.content.trim() ? i.content.split(/\r?\n/) : [], s), u = new r.Token("parsed_directive_open", "", 1); u.info = i.info, u.hidden = !0, u.content = o.join(` `).trim(), u.meta = { arg: i.meta.arg, @@ -28039,7 +28039,7 @@ function F8e(t) { } return e; } -function z8e(t) { +function B8e(t) { return t.toLowerCase().split(/\s+/).join("-").replace(/[^a-z0-9]+/, "-").replace(/^[-0-9]+|-+$/, ""); } class n0 extends Error { @@ -28047,16 +28047,16 @@ class n0 extends Error { super(...arguments), this.name = "OptionSpecError"; } } -const mf = (t) => t, d8 = (t) => { +const mf = (t) => t, h8 = (t) => { if (!t) throw new n0("Argument required but none supplied"); return t; -}, p8 = (t) => { +}, f8 = (t) => { if (t.trim()) throw new n0(`No argument is allowed: "${t}" supplied`); return null; -}, Q1 = (t) => `${t || ""}`.split(/\s+/).map((e) => z8e(e)); -function Sne(t) { +}, Q1 = (t) => `${t || ""}`.split(/\s+/).map((e) => B8e(e)); +function wne(t) { if (!t) throw new n0("Value is not set"); const e = Number.parseFloat(t); @@ -28064,34 +28064,34 @@ function Sne(t) { throw new n0(`Value "${t}" is not an integer`); return e; } -function u3(t) { - const e = Sne(t); +function c3(t) { + const e = wne(t); if (e < 0) throw new n0(`Value "${t}" must be positive or zero`); return e; } -const Tne = (t) => t ? u3(t) : null, V8e = (t) => (t = `${t || ""}`.replace(/\s+%$/, ""), u3(t)); -function Cne(t, e) { +const One = (t) => t ? c3(t) : null, F8e = (t) => (t = `${t || ""}`.replace(/\s+%$/, ""), c3(t)); +function kne(t, e) { const n = new RegExp(`^(?[0-9.]+)\\s*(?${e.join("|")})$`).exec(t); if (!n || !n.groups) throw new n0(`not a positive measure of one of the following units: ${e.join("|")}`); return n.groups.number + n.groups.units; } -const Ene = ["em", "ex", "px", "in", "cm", "mm", "pt", "pc"], _ne = (t) => Cne(t, [...Ene, ""]), cD = (t, e = "") => { +const Sne = ["em", "ex", "px", "in", "cm", "mm", "pt", "pc"], Tne = (t) => kne(t, [...Sne, ""]), aD = (t, e = "") => { try { - return Cne(t, [...Ene, "%"]); + return kne(t, [...Sne, "%"]); } catch { - return _ne(t) + e; + return Tne(t) + e; } -}, U8e = (t, e = "") => t.toLowerCase() === "image" ? "image" : cD(t, e); -function uD(t) { +}, z8e = (t, e = "") => t.toLowerCase() === "image" ? "image" : aD(t, e); +function oD(t) { return (e) => { if (e = e.toLowerCase().trim(), t.includes(e)) return e; throw new n0(`must be in: ${t.join("|")}`); }; } -const q8e = (t) => t; +const V8e = (t) => t; class Yl extends F0 { constructor() { super(...arguments), this.final_argument_whitespace = !0, this.has_content = !0, this.option_spec = { @@ -28119,79 +28119,79 @@ class Yl extends F0 { return n.push(...o), n.push(this.createToken("admonition_close", "aside", -1, { block: !0 })), n; } } -class Y8e extends Yl { +class U8e extends Yl { constructor() { super(...arguments), this.required_arguments = 1; } } -class Q8e extends Yl { +class q8e extends Yl { constructor() { super(...arguments), this.title = "Attention", this.kind = "attention"; } } -class W8e extends Yl { +class Y8e extends Yl { constructor() { super(...arguments), this.title = "Caution", this.kind = "caution"; } } -class G8e extends Yl { +class Q8e extends Yl { constructor() { super(...arguments), this.title = "Danger", this.kind = "danger"; } } -class H8e extends Yl { +class W8e extends Yl { constructor() { super(...arguments), this.title = "Error", this.kind = "error"; } } -class X8e extends Yl { +class G8e extends Yl { constructor() { super(...arguments), this.title = "Important", this.kind = "important"; } } -class Z8e extends Yl { +class H8e extends Yl { constructor() { super(...arguments), this.title = "Hint", this.kind = "hint"; } } -class j8e extends Yl { +class X8e extends Yl { constructor() { super(...arguments), this.title = "Note", this.kind = "note"; } } -class K8e extends Yl { +class Z8e extends Yl { constructor() { super(...arguments), this.title = "See Also", this.kind = "seealso"; } } -class J8e extends Yl { +class j8e extends Yl { constructor() { super(...arguments), this.title = "Tip", this.kind = "tip"; } } -class eLe extends Yl { +class K8e extends Yl { constructor() { super(...arguments), this.title = "Warning", this.kind = "warning"; } } -const tLe = { - admonition: Y8e, - attention: Q8e, - caution: W8e, - danger: G8e, - error: H8e, - important: X8e, - hint: Z8e, - note: j8e, - seealso: K8e, - tip: J8e, - warning: eLe -}; -class rLe extends F0 { +const J8e = { + admonition: U8e, + attention: q8e, + caution: Y8e, + danger: Q8e, + error: W8e, + important: G8e, + hint: H8e, + note: X8e, + seealso: Z8e, + tip: j8e, + warning: K8e +}; +class eLe extends F0 { constructor() { super(...arguments), this.required_arguments = 0, this.optional_arguments = 1, this.final_argument_whitespace = !1, this.has_content = !0, this.option_spec = { - "number-lines": Tne, - force: p8, + "number-lines": One, + force: f8, name: mf, class: Q1 }; @@ -28204,15 +28204,15 @@ class rLe extends F0 { })]; } } -class nLe extends F0 { +class tLe extends F0 { constructor() { super(...arguments), this.required_arguments = 0, this.optional_arguments = 1, this.final_argument_whitespace = !1, this.has_content = !0, this.option_spec = { - linenos: p8, - "lineno-start": Sne, - dedent: Tne, - "emphasize-lines": d8, - caption: d8, - force: p8, + linenos: f8, + "lineno-start": wne, + dedent: One, + "emphasize-lines": h8, + caption: h8, + force: f8, name: mf, class: Q1 }; @@ -28225,7 +28225,7 @@ class nLe extends F0 { })]; } } -class iLe extends F0 { +class rLe extends F0 { constructor() { super(...arguments), this.required_arguments = 0, this.optional_arguments = 1, this.final_argument_whitespace = !1, this.has_content = !0, this.rawOptions = !0; } @@ -28237,25 +28237,25 @@ class iLe extends F0 { })]; } } -const sLe = { - code: rLe, - "code-block": nLe, - "code-cell": iLe -}, Ane = { +const nLe = { + code: eLe, + "code-block": tLe, + "code-cell": rLe +}, Cne = { alt: mf, - height: _ne, - width: cD, - scale: V8e, - target: d8, + height: Tne, + width: aD, + scale: F8e, + target: h8, class: Q1, name: mf }; -class Lne extends F0 { +class Ene extends F0 { constructor() { - super(...arguments), this.required_arguments = 1, this.optional_arguments = 0, this.final_argument_whitespace = !0, this.option_spec = Object.assign(Object.assign({}, Ane), { align: uD(["left", "center", "right", "top", "middle", "bottom"]) }); + super(...arguments), this.required_arguments = 1, this.optional_arguments = 0, this.final_argument_whitespace = !0, this.option_spec = Object.assign(Object.assign({}, Cne), { align: oD(["left", "center", "right", "top", "middle", "bottom"]) }); } create_image(e) { - const r = q8e(e.args[0] || ""), n = this.createToken("image", "img", 0, { map: e.map, block: !0 }); + const r = V8e(e.args[0] || ""), n = this.createToken("image", "img", 0, { map: e.map, block: !0 }); n.attrSet("src", r), n.attrSet("alt", e.options.alt || ""); const i = []; return e.options.alt && this.state.md.inline.parse(e.options.alt, this.state.md, this.state.env, i), n.children = i, e.options.height && n.attrSet("height", e.options.height), e.options.width && n.attrSet("width", e.options.width), e.options.align && n.attrJoin("class", `align-${e.options.align}`), e.options.class && n.attrJoin("class", e.options.class.join(" ")), n; @@ -28264,9 +28264,9 @@ class Lne extends F0 { return [this.create_image(e)]; } } -class aLe extends Lne { +class iLe extends Ene { constructor() { - super(...arguments), this.option_spec = Object.assign(Object.assign({}, Ane), { align: uD(["left", "center", "right"]), figwidth: U8e, figclass: Q1 }), this.has_content = !0; + super(...arguments), this.option_spec = Object.assign(Object.assign({}, Cne), { align: oD(["left", "center", "right"]), figwidth: z8e, figclass: Q1 }), this.has_content = !0; } run(e) { const r = this.createToken("figure_open", "figure", 1, { @@ -28275,7 +28275,7 @@ class aLe extends Lne { }); e.options.figclass && r.attrJoin("class", e.options.figclass.join(" ")), e.options.align && r.attrJoin("class", `align-${e.options.align}`), e.options.figwidth && e.options.figwidth !== "image" && r.attrSet("width", e.options.figwidth); let n; - e.options.name && (n = Nre( + e.options.name && (n = Rre( this.state, r, t2.figure, @@ -28311,11 +28311,11 @@ class aLe extends Lne { return [r, i, ...s, ...a, o]; } } -const oLe = { - image: Lne, - figure: aLe +const sLe = { + image: Ene, + figure: iLe }; -class hD { +class lD { constructor(e, r = !0) { if (this.children = [], this.children = [], r) { this._set_children_from_tokens(e); @@ -28351,7 +28351,7 @@ class hD { } } _add_child(e) { - const r = new hD(e, !1); + const r = new lD(e, !1); r.parent = this, this.children.push(r); } to_tokens() { @@ -28437,16 +28437,16 @@ class hD { return this.attribute_token().attrs; } } -class lLe extends F0 { +class aLe extends F0 { constructor() { super(...arguments), this.required_arguments = 0, this.optional_arguments = 1, this.final_argument_whitespace = !0, this.has_content = !0, this.option_spec = { - "header-rows": u3, - "stub-columns": u3, - width: cD, + "header-rows": c3, + "stub-columns": c3, + width: aD, widths: mf, class: Q1, name: mf, - align: uD(["left", "center", "right"]) + align: oD(["left", "center", "right"]) }; } run(e) { @@ -28463,7 +28463,7 @@ class lLe extends F0 { let a = "th"; r ? (i.push(this.createToken("thead_open", "thead", 1, { level: 1 })), a = "th") : (i.push(this.createToken("tbody_open", "tbody", 1, { level: 1 })), a = "td"); let o, l = 0; - for (const u of new hD(n.slice(1, -1)).children) { + for (const u of new lD(n.slice(1, -1)).children) { l += 1, this.assert(u.type === "list_item", `list item ${l} not of type 'list_item': ${u.type}`), this.assert(u.children.length === 1 && u.children[0].type === "bullet_list", `list item ${l} content not a nested bullet list`); const h = u.children[0].children; o === void 0 ? o = h.length : this.assert(h.length === o, `list item ${l} does not contain the same number of columns as previous items`), r && l === r + 1 && (i.push(this.createToken("thead_close", "thead", -1, { level: 1 })), i.push(this.createToken("tbody_open", "tbody", 1, { level: 1 })), a = "td"), i.push(this.createToken("tr_open", "tr", 1, { map: u.map, level: 2 })); @@ -28476,10 +28476,10 @@ class lLe extends F0 { return a === "td" ? i.push(this.createToken("tbody_close", "tbody", -1, { level: 1 })) : i.push(this.createToken("thead_close", "thead", -1, { level: 1 })), i.push(this.createToken("table_close", "table", -1)), i; } } -const cLe = { - "list-table": lLe +const oLe = { + "list-table": aLe }; -class uLe extends F0 { +class lLe extends F0 { constructor() { super(...arguments), this.required_arguments = 0, this.optional_arguments = 0, this.final_argument_whitespace = !1, this.has_content = !0, this.option_spec = { label: mf @@ -28494,18 +28494,18 @@ class uLe extends F0 { }); if (r.attrSet("class", "math block"), e.options.label) { r.attrSet("id", e.options.label); - const n = Nre(this.state, r, t2.equation, e.options.label, ""); + const n = Rre(this.state, r, t2.equation, e.options.label, ""); r.attrSet("number", `${n.number}`), r.info = e.options.label, r.meta = { label: e.options.label, numbered: !0, number: n.number }; } return [r]; } } -const hLe = { - math: uLe -}, fLe = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, tLe), oLe), sLe), cLe), hLe); -function dLe(t) { +const cLe = { + math: lLe +}, uLe = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, J8e), sLe), nLe), oLe), cLe); +function hLe(t) { return (e) => { - const r = uT(e); + const r = cT(e); return r.references.forEach((n) => { const { label: i, tokens: s, contentFromTarget: a } = n, o = (u, h) => (s.open.attrJoin("class", "error"), s.open.tag = s.close.tag = "code", a && h ? s.content.content = a(h) : s.content.content = u, !0), l = r.targets[i]; if (!l) @@ -28521,20 +28521,20 @@ function dLe(t) { }), !0; }; } -function pLe(t, e) { - t.core.ruler.push("docutils_number", dLe()); +function fLe(t, e) { + t.core.ruler.push("docutils_number", hLe()); } -const gLe = { +const dLe = { parseRoles: !0, replaceFences: !0, rolesAfter: "inline", directivesAfter: "block", - directives: fLe, - roles: dAe + directives: uLe, + roles: hAe }; -function mLe(t, e) { - const r = Object.assign(Object.assign({}, gLe), e); - t.use(Dre, r), t.use($8e, r), t.use(pLe, r); +function pLe(t, e) { + const r = Object.assign(Object.assign({}, dLe), e); + t.use(Lre, r), t.use(I8e, r), t.use(fLe, r); } /*! @license DOMPurify 2.4.7 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.4.7/LICENSE */ function Ah(t) { @@ -28544,12 +28544,12 @@ function Ah(t) { return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e; }, Ah(t); } -function g8(t, e) { - return g8 = Object.setPrototypeOf || function(n, i) { +function d8(t, e) { + return d8 = Object.setPrototypeOf || function(n, i) { return n.__proto__ = i, n; - }, g8(t, e); + }, d8(t, e); } -function vLe() { +function gLe() { if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham) return !1; if (typeof Proxy == "function") @@ -28561,48 +28561,48 @@ function vLe() { return !1; } } -function k4(t, e, r) { - return vLe() ? k4 = Reflect.construct : k4 = function(i, s, a) { +function O4(t, e, r) { + return gLe() ? O4 = Reflect.construct : O4 = function(i, s, a) { var o = [null]; o.push.apply(o, s); var l = Function.bind.apply(i, o), u = new l(); - return a && g8(u, a.prototype), u; - }, k4.apply(null, arguments); + return a && d8(u, a.prototype), u; + }, O4.apply(null, arguments); } function sl(t) { - return yLe(t) || bLe(t) || xLe(t) || wLe(); + return mLe(t) || vLe(t) || yLe(t) || bLe(); } -function yLe(t) { +function mLe(t) { if (Array.isArray(t)) - return m8(t); + return p8(t); } -function bLe(t) { +function vLe(t) { if (typeof Symbol < "u" && t[Symbol.iterator] != null || t["@@iterator"] != null) return Array.from(t); } -function xLe(t, e) { +function yLe(t, e) { if (!!t) { if (typeof t == "string") - return m8(t, e); + return p8(t, e); var r = Object.prototype.toString.call(t).slice(8, -1); if (r === "Object" && t.constructor && (r = t.constructor.name), r === "Map" || r === "Set") return Array.from(t); if (r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)) - return m8(t, e); + return p8(t, e); } } -function m8(t, e) { +function p8(t, e) { (e == null || e > t.length) && (e = t.length); for (var r = 0, n = new Array(e); r < e; r++) n[r] = t[r]; return n; } -function wLe() { +function bLe() { throw new TypeError(`Invalid attempt to spread non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`); } -var OLe = Object.hasOwnProperty, TV = Object.setPrototypeOf, kLe = Object.isFrozen, SLe = Object.getPrototypeOf, TLe = Object.getOwnPropertyDescriptor, oa = Object.freeze, Pl = Object.seal, CLe = Object.create, Rne = typeof Reflect < "u" && Reflect, h3 = Rne.apply, v8 = Rne.construct; -h3 || (h3 = function(e, r, n) { +var xLe = Object.hasOwnProperty, OV = Object.setPrototypeOf, wLe = Object.isFrozen, OLe = Object.getPrototypeOf, kLe = Object.getOwnPropertyDescriptor, oa = Object.freeze, Pl = Object.seal, SLe = Object.create, _ne = typeof Reflect < "u" && Reflect, u3 = _ne.apply, g8 = _ne.construct; +u3 || (u3 = function(e, r, n) { return e.apply(r, n); }); oa || (oa = function(e) { @@ -28611,66 +28611,66 @@ oa || (oa = function(e) { Pl || (Pl = function(e) { return e; }); -v8 || (v8 = function(e, r) { - return k4(e, sl(r)); +g8 || (g8 = function(e, r) { + return O4(e, sl(r)); }); -var ELe = qo(Array.prototype.forEach), CV = qo(Array.prototype.pop), Bm = qo(Array.prototype.push), S4 = qo(String.prototype.toLowerCase), p6 = qo(String.prototype.toString), _Le = qo(String.prototype.match), il = qo(String.prototype.replace), ALe = qo(String.prototype.indexOf), LLe = qo(String.prototype.trim), Xs = qo(RegExp.prototype.test), g6 = RLe(TypeError); +var TLe = qo(Array.prototype.forEach), kV = qo(Array.prototype.pop), Bm = qo(Array.prototype.push), k4 = qo(String.prototype.toLowerCase), f6 = qo(String.prototype.toString), CLe = qo(String.prototype.match), il = qo(String.prototype.replace), ELe = qo(String.prototype.indexOf), _Le = qo(String.prototype.trim), Xs = qo(RegExp.prototype.test), d6 = ALe(TypeError); function qo(t) { return function(e) { for (var r = arguments.length, n = new Array(r > 1 ? r - 1 : 0), i = 1; i < r; i++) n[i - 1] = arguments[i]; - return h3(t, e, n); + return u3(t, e, n); }; } -function RLe(t) { +function ALe(t) { return function() { for (var e = arguments.length, r = new Array(e), n = 0; n < e; n++) r[n] = arguments[n]; - return v8(t, r); + return g8(t, r); }; } function mr(t, e, r) { var n; - r = (n = r) !== null && n !== void 0 ? n : S4, TV && TV(t, null); + r = (n = r) !== null && n !== void 0 ? n : k4, OV && OV(t, null); for (var i = e.length; i--; ) { var s = e[i]; if (typeof s == "string") { var a = r(s); - a !== s && (kLe(e) || (e[i] = a), s = a); + a !== s && (wLe(e) || (e[i] = a), s = a); } t[s] = !0; } return t; } function Jf(t) { - var e = CLe(null), r; + var e = SLe(null), r; for (r in t) - h3(OLe, t, [r]) === !0 && (e[r] = t[r]); + u3(xLe, t, [r]) === !0 && (e[r] = t[r]); return e; } function Fw(t, e) { for (; t !== null; ) { - var r = TLe(t, e); + var r = kLe(t, e); if (r) { if (r.get) return qo(r.get); if (typeof r.value == "function") return qo(r.value); } - t = SLe(t); + t = OLe(t); } function n(i) { return console.warn("fallback value for", i), null; } return n; } -var EV = oa(["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"]), m6 = oa(["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"]), v6 = oa(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), MLe = oa(["animate", "color-profile", "cursor", "discard", "fedropshadow", "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"]), y6 = oa(["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"]), DLe = oa(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), _V = oa(["#text"]), AV = oa(["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", "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", "xmlns", "slot"]), b6 = oa(["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", "display", "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"]), LV = oa(["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"]), zw = oa(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), NLe = Pl(/\{\{[\w\W]*|[\w\W]*\}\}/gm), ILe = Pl(/<%[\w\W]*|[\w\W]*%>/gm), PLe = Pl(/\${[\w\W]*}/gm), $Le = Pl(/^data-[\-\w.\u00B7-\uFFFF]/), BLe = Pl(/^aria-[\-\w]+$/), FLe = Pl( +var SV = oa(["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"]), p6 = oa(["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"]), g6 = oa(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), LLe = oa(["animate", "color-profile", "cursor", "discard", "fedropshadow", "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"]), m6 = oa(["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"]), RLe = oa(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), TV = oa(["#text"]), CV = oa(["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", "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", "xmlns", "slot"]), v6 = oa(["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", "display", "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"]), EV = oa(["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"]), zw = oa(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), MLe = Pl(/\{\{[\w\W]*|[\w\W]*\}\}/gm), DLe = Pl(/<%[\w\W]*|[\w\W]*%>/gm), NLe = Pl(/\${[\w\W]*}/gm), ILe = Pl(/^data-[\-\w.\u00B7-\uFFFF]/), PLe = Pl(/^aria-[\-\w]+$/), $Le = Pl( /^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i -), zLe = Pl(/^(?:\w+script|data):/i), VLe = Pl( +), BLe = Pl(/^(?:\w+script|data):/i), FLe = Pl( /[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g -), ULe = Pl(/^html$/i), qLe = function() { +), zLe = Pl(/^html$/i), VLe = function() { return typeof window > "u" ? null : window; -}, YLe = function(e, r) { +}, ULe = function(e, r) { if (Ah(e) !== "object" || typeof e.createPolicy != "function") return null; var n = null, i = "data-tt-policy-suffix"; @@ -28689,9 +28689,9 @@ var EV = oa(["a", "abbr", "acronym", "address", "area", "article", "aside", "aud return console.warn("TrustedTypes policy " + s + " could not be created."), null; } }; -function Mne() { - var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : qLe(), e = function(te) { - return Mne(te); +function Ane() { + var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : VLe(), e = function(te) { + return Ane(te); }; if (e.version = "2.4.7", e.removed = [], !t || !t.document || t.document.nodeType !== 9) return e.isSupported = !1, e; @@ -28700,14 +28700,14 @@ function Mne() { var w = n.createElement("template"); w.content && w.content.ownerDocument && (n = w.content.ownerDocument); } - var O = YLe(p, r), S = O ? O.createHTML("") : "", C = n, T = C.implementation, L = C.createNodeIterator, E = C.createDocumentFragment, R = C.getElementsByTagName, _ = r.importNode, A = {}; + var O = ULe(p, r), S = O ? O.createHTML("") : "", C = n, T = C.implementation, L = C.createNodeIterator, E = C.createDocumentFragment, R = C.getElementsByTagName, _ = r.importNode, A = {}; try { A = Jf(n).documentMode ? n.documentMode : {}; } catch { } var $ = {}; e.isSupported = typeof b == "function" && T && T.createHTMLDocument !== void 0 && A !== 9; - var k = NLe, N = ILe, M = PLe, I = $Le, D = BLe, P = zLe, F = VLe, B = FLe, V = null, Y = mr({}, [].concat(sl(EV), sl(m6), sl(v6), sl(y6), sl(_V))), G = null, ee = mr({}, [].concat(sl(AV), sl(b6), sl(LV), sl(zw))), Q = Object.seal(Object.create(null, { + var k = MLe, N = DLe, M = NLe, I = ILe, D = PLe, P = BLe, F = FLe, B = $Le, V = null, Y = mr({}, [].concat(sl(SV), sl(p6), sl(g6), sl(m6), sl(TV))), G = null, ee = mr({}, [].concat(sl(CV), sl(v6), sl(EV), sl(zw))), Q = Object.seal(Object.create(null, { tagNameCheck: { writable: !0, configurable: !1, @@ -28726,10 +28726,10 @@ function Mne() { enumerable: !0, value: !1 } - })), ne = null, ie = null, U = !0, Z = !0, W = !1, j = !0, ae = !1, se = !1, K = !1, _e = !1, ce = !1, Ee = !1, Ae = !1, Ue = !0, Ge = !1, Qe = "user-content-", De = !0, he = !1, H = {}, oe = null, ve = mr({}, ["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"]), re = null, ue = mr({}, ["audio", "video", "img", "source", "image", "track"]), fe = null, de = mr({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), ge = "http://www.w3.org/1998/Math/MathML", xe = "http://www.w3.org/2000/svg", ke = "http://www.w3.org/1999/xhtml", Ce = ke, Oe = !1, Me = null, Te = mr({}, [ge, xe, ke], p6), Xe, Ne = ["application/xhtml+xml", "text/html"], Ke = "text/html", je, ut = null, ft = n.createElement("form"), ot = function(te) { + })), ne = null, ie = null, U = !0, Z = !0, W = !1, j = !0, ae = !1, se = !1, K = !1, _e = !1, ce = !1, Ee = !1, Ae = !1, Ue = !0, Ge = !1, Qe = "user-content-", De = !0, he = !1, H = {}, oe = null, ve = mr({}, ["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"]), re = null, ue = mr({}, ["audio", "video", "img", "source", "image", "track"]), fe = null, de = mr({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), ge = "http://www.w3.org/1998/Math/MathML", xe = "http://www.w3.org/2000/svg", ke = "http://www.w3.org/1999/xhtml", Ce = ke, Oe = !1, Me = null, Te = mr({}, [ge, xe, ke], f6), Xe, Ne = ["application/xhtml+xml", "text/html"], Ke = "text/html", je, ut = null, ft = n.createElement("form"), ot = function(te) { return te instanceof RegExp || te instanceof Function; }, We = function(te) { - ut && ut === te || ((!te || Ah(te) !== "object") && (te = {}), te = Jf(te), Xe = Ne.indexOf(te.PARSER_MEDIA_TYPE) === -1 ? Xe = Ke : Xe = te.PARSER_MEDIA_TYPE, je = Xe === "application/xhtml+xml" ? p6 : S4, V = "ALLOWED_TAGS" in te ? mr({}, te.ALLOWED_TAGS, je) : Y, G = "ALLOWED_ATTR" in te ? mr({}, te.ALLOWED_ATTR, je) : ee, Me = "ALLOWED_NAMESPACES" in te ? mr({}, te.ALLOWED_NAMESPACES, p6) : Te, fe = "ADD_URI_SAFE_ATTR" in te ? mr( + ut && ut === te || ((!te || Ah(te) !== "object") && (te = {}), te = Jf(te), Xe = Ne.indexOf(te.PARSER_MEDIA_TYPE) === -1 ? Xe = Ke : Xe = te.PARSER_MEDIA_TYPE, je = Xe === "application/xhtml+xml" ? f6 : k4, V = "ALLOWED_TAGS" in te ? mr({}, te.ALLOWED_TAGS, je) : Y, G = "ALLOWED_ATTR" in te ? mr({}, te.ALLOWED_ATTR, je) : ee, Me = "ALLOWED_NAMESPACES" in te ? mr({}, te.ALLOWED_NAMESPACES, f6) : Te, fe = "ADD_URI_SAFE_ATTR" in te ? mr( Jf(de), te.ADD_URI_SAFE_ATTR, je @@ -28737,18 +28737,18 @@ function Mne() { Jf(ue), te.ADD_DATA_URI_TAGS, je - ) : ue, oe = "FORBID_CONTENTS" in te ? mr({}, te.FORBID_CONTENTS, je) : ve, ne = "FORBID_TAGS" in te ? mr({}, te.FORBID_TAGS, je) : {}, ie = "FORBID_ATTR" in te ? mr({}, te.FORBID_ATTR, je) : {}, H = "USE_PROFILES" in te ? te.USE_PROFILES : !1, U = te.ALLOW_ARIA_ATTR !== !1, Z = te.ALLOW_DATA_ATTR !== !1, W = te.ALLOW_UNKNOWN_PROTOCOLS || !1, j = te.ALLOW_SELF_CLOSE_IN_ATTR !== !1, ae = te.SAFE_FOR_TEMPLATES || !1, se = te.WHOLE_DOCUMENT || !1, ce = te.RETURN_DOM || !1, Ee = te.RETURN_DOM_FRAGMENT || !1, Ae = te.RETURN_TRUSTED_TYPE || !1, _e = te.FORCE_BODY || !1, Ue = te.SANITIZE_DOM !== !1, Ge = te.SANITIZE_NAMED_PROPS || !1, De = te.KEEP_CONTENT !== !1, he = te.IN_PLACE || !1, B = te.ALLOWED_URI_REGEXP || B, Ce = te.NAMESPACE || ke, Q = te.CUSTOM_ELEMENT_HANDLING || {}, te.CUSTOM_ELEMENT_HANDLING && ot(te.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (Q.tagNameCheck = te.CUSTOM_ELEMENT_HANDLING.tagNameCheck), te.CUSTOM_ELEMENT_HANDLING && ot(te.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (Q.attributeNameCheck = te.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), te.CUSTOM_ELEMENT_HANDLING && typeof te.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (Q.allowCustomizedBuiltInElements = te.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), ae && (Z = !1), Ee && (ce = !0), H && (V = mr({}, sl(_V)), G = [], H.html === !0 && (mr(V, EV), mr(G, AV)), H.svg === !0 && (mr(V, m6), mr(G, b6), mr(G, zw)), H.svgFilters === !0 && (mr(V, v6), mr(G, b6), mr(G, zw)), H.mathMl === !0 && (mr(V, y6), mr(G, LV), mr(G, zw))), te.ADD_TAGS && (V === Y && (V = Jf(V)), mr(V, te.ADD_TAGS, je)), te.ADD_ATTR && (G === ee && (G = Jf(G)), mr(G, te.ADD_ATTR, je)), te.ADD_URI_SAFE_ATTR && mr(fe, te.ADD_URI_SAFE_ATTR, je), te.FORBID_CONTENTS && (oe === ve && (oe = Jf(oe)), mr(oe, te.FORBID_CONTENTS, je)), De && (V["#text"] = !0), se && mr(V, ["html", "head", "body"]), V.table && (mr(V, ["tbody"]), delete ne.tbody), oa && oa(te), ut = te); - }, Ye = mr({}, ["mi", "mo", "mn", "ms", "mtext"]), pt = mr({}, ["foreignobject", "desc", "title", "annotation-xml"]), tt = mr({}, ["title", "style", "font", "a", "script"]), He = mr({}, m6); - mr(He, v6), mr(He, MLe); - var kt = mr({}, y6); - mr(kt, DLe); + ) : ue, oe = "FORBID_CONTENTS" in te ? mr({}, te.FORBID_CONTENTS, je) : ve, ne = "FORBID_TAGS" in te ? mr({}, te.FORBID_TAGS, je) : {}, ie = "FORBID_ATTR" in te ? mr({}, te.FORBID_ATTR, je) : {}, H = "USE_PROFILES" in te ? te.USE_PROFILES : !1, U = te.ALLOW_ARIA_ATTR !== !1, Z = te.ALLOW_DATA_ATTR !== !1, W = te.ALLOW_UNKNOWN_PROTOCOLS || !1, j = te.ALLOW_SELF_CLOSE_IN_ATTR !== !1, ae = te.SAFE_FOR_TEMPLATES || !1, se = te.WHOLE_DOCUMENT || !1, ce = te.RETURN_DOM || !1, Ee = te.RETURN_DOM_FRAGMENT || !1, Ae = te.RETURN_TRUSTED_TYPE || !1, _e = te.FORCE_BODY || !1, Ue = te.SANITIZE_DOM !== !1, Ge = te.SANITIZE_NAMED_PROPS || !1, De = te.KEEP_CONTENT !== !1, he = te.IN_PLACE || !1, B = te.ALLOWED_URI_REGEXP || B, Ce = te.NAMESPACE || ke, Q = te.CUSTOM_ELEMENT_HANDLING || {}, te.CUSTOM_ELEMENT_HANDLING && ot(te.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (Q.tagNameCheck = te.CUSTOM_ELEMENT_HANDLING.tagNameCheck), te.CUSTOM_ELEMENT_HANDLING && ot(te.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (Q.attributeNameCheck = te.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), te.CUSTOM_ELEMENT_HANDLING && typeof te.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (Q.allowCustomizedBuiltInElements = te.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), ae && (Z = !1), Ee && (ce = !0), H && (V = mr({}, sl(TV)), G = [], H.html === !0 && (mr(V, SV), mr(G, CV)), H.svg === !0 && (mr(V, p6), mr(G, v6), mr(G, zw)), H.svgFilters === !0 && (mr(V, g6), mr(G, v6), mr(G, zw)), H.mathMl === !0 && (mr(V, m6), mr(G, EV), mr(G, zw))), te.ADD_TAGS && (V === Y && (V = Jf(V)), mr(V, te.ADD_TAGS, je)), te.ADD_ATTR && (G === ee && (G = Jf(G)), mr(G, te.ADD_ATTR, je)), te.ADD_URI_SAFE_ATTR && mr(fe, te.ADD_URI_SAFE_ATTR, je), te.FORBID_CONTENTS && (oe === ve && (oe = Jf(oe)), mr(oe, te.FORBID_CONTENTS, je)), De && (V["#text"] = !0), se && mr(V, ["html", "head", "body"]), V.table && (mr(V, ["tbody"]), delete ne.tbody), oa && oa(te), ut = te); + }, Ye = mr({}, ["mi", "mo", "mn", "ms", "mtext"]), pt = mr({}, ["foreignobject", "desc", "title", "annotation-xml"]), tt = mr({}, ["title", "style", "font", "a", "script"]), He = mr({}, p6); + mr(He, g6), mr(He, LLe); + var kt = mr({}, m6); + mr(kt, RLe); var st = function(te) { var Le = b(te); (!Le || !Le.tagName) && (Le = { namespaceURI: Ce, tagName: "template" }); - var ze = S4(te.tagName), Lt = S4(Le.tagName); + var ze = k4(te.tagName), Lt = k4(Le.tagName); return Me[te.namespaceURI] ? te.namespaceURI === xe ? Le.namespaceURI === ke ? ze === "svg" : Le.namespaceURI === ge ? ze === "svg" && (Lt === "annotation-xml" || Ye[Lt]) : Boolean(He[ze]) : te.namespaceURI === ge ? Le.namespaceURI === ke ? ze === "math" : Le.namespaceURI === xe ? ze === "math" && pt[Lt] : Boolean(kt[ze]) : te.namespaceURI === ke ? Le.namespaceURI === xe && !pt[Lt] || Le.namespaceURI === ge && !Ye[Lt] ? !1 : !kt[ze] && (tt[ze] || !He[ze]) : !!(Xe === "application/xhtml+xml" && Me[te.namespaceURI]) : !1; }, Ze = function(te) { Bm(e.removed, { @@ -28791,7 +28791,7 @@ function Mne() { if (_e) te = "" + te; else { - var Lt = _Le(te, /^[\r\n\t ]+/); + var Lt = CLe(te, /^[\r\n\t ]+/); ze = Lt && Lt[0]; } Xe === "application/xhtml+xml" && Ce === ke && (te = '' + te + ""); @@ -28823,7 +28823,7 @@ function Mne() { }, wr = function(te) { return Ah(a) === "object" ? te instanceof a : te && Ah(te) === "object" && typeof te.nodeType == "number" && typeof te.nodeName == "string"; }, tr = function(te, Le, ze) { - !$[te] || ELe($[te], function(Lt) { + !$[te] || TLe($[te], function(Lt) { Lt.call(e, Le, ze, ut); }); }, On = function(te) { @@ -28860,7 +28860,7 @@ function Mne() { return !1; } else if (!fe[Le]) { if (!Xs(B, il(ze, F, ""))) { - if (!((Le === "src" || Le === "xlink:href" || Le === "href") && te !== "script" && ALe(ze, "data:") === 0 && re[te])) { + if (!((Le === "src" || Le === "xlink:href" || Le === "href") && te !== "script" && ELe(ze, "data:") === 0 && re[te])) { if (!(W && !Xs(P, il(ze, F, "")))) { if (ze) return !1; @@ -28887,7 +28887,7 @@ function Mne() { for (cr = Jt.length; cr--; ) { Le = Jt[cr]; var St = Le, Tt = St.name, Je = St.namespaceURI; - if (ze = Tt === "value" ? Le.value : LLe(Le.value), Lt = je(Tt), rt.attrName = Lt, rt.attrValue = ze, rt.keepAttr = !0, rt.forceKeepAttr = void 0, tr("uponSanitizeAttribute", te, rt), ze = rt.attrValue, !rt.forceKeepAttr && (dt(Tt, te), !!rt.keepAttr)) { + if (ze = Tt === "value" ? Le.value : _Le(Le.value), Lt = je(Tt), rt.attrName = Lt, rt.attrValue = ze, rt.keepAttr = !0, rt.forceKeepAttr = void 0, tr("uponSanitizeAttribute", te, rt), ze = rt.attrValue, !rt.forceKeepAttr && (dt(Tt, te), !!rt.keepAttr)) { if (!j && Xs(/\/>/i, ze)) { dt(Tt, te); continue; @@ -28907,7 +28907,7 @@ function Mne() { } } try { - Je ? te.setAttributeNS(Je, Tt, ze) : te.setAttribute(Tt, ze), CV(e.removed); + Je ? te.setAttributeNS(Je, Tt, ze) : te.setAttribute(Tt, ze), kV(e.removed); } catch { } } @@ -28926,9 +28926,9 @@ function Mne() { if (Oe = !qe, Oe && (qe = ""), typeof qe != "string" && !wr(qe)) if (typeof qe.toString == "function") { if (qe = qe.toString(), typeof qe != "string") - throw g6("dirty is not a string, aborting"); + throw d6("dirty is not a string, aborting"); } else - throw g6("toString is not a function"); + throw d6("toString is not a function"); if (!e.isSupported) { if (Ah(t.toStaticHTML) === "object" || typeof t.toStaticHTML == "function") { if (typeof qe == "string") @@ -28942,7 +28942,7 @@ function Mne() { if (qe.nodeName) { var rt = je(qe.nodeName); if (!V[rt] || ne[rt]) - throw g6("root node is forbidden and cannot be sanitized in-place"); + throw d6("root node is forbidden and cannot be sanitized in-place"); } } else if (qe instanceof a) Le = zt(""), ze = Le.ownerDocument.importNode(qe, !0), ze.nodeType === 1 && ze.nodeName === "BODY" || ze.nodeName === "HTML" ? Le = ze : Le.appendChild(ze); @@ -28966,7 +28966,7 @@ function Mne() { return (G.shadowroot || G.shadowrootmod) && (Jt = _.call(r, Jt, !0)), Jt; } var Tt = se ? Le.outerHTML : Le.innerHTML; - return se && V["!doctype"] && Le.ownerDocument && Le.ownerDocument.doctype && Le.ownerDocument.doctype.name && Xs(ULe, Le.ownerDocument.doctype.name) && (Tt = " + return se && V["!doctype"] && Le.ownerDocument && Le.ownerDocument.doctype && Le.ownerDocument.doctype.name && Xs(zLe, Le.ownerDocument.doctype.name) && (Tt = " ` + Tt), ae && (Tt = il(Tt, k, " "), Tt = il(Tt, N, " "), Tt = il(Tt, M, " ")), O && Ae ? O.createHTML(Tt) : Tt; }, e.setConfig = function(qe) { We(qe), K = !0; @@ -28980,2159 +28980,2159 @@ function Mne() { typeof te == "function" && ($[qe] = $[qe] || [], Bm($[qe], te)); }, e.removeHook = function(qe) { if ($[qe]) - return CV($[qe]); + return kV($[qe]); }, e.removeHooks = function(qe) { $[qe] && ($[qe] = []); }, e.removeAllHooks = function() { $ = {}; }, e; } -var Dne = Mne(), Nne = { exports: {} }, Ir = {}, fD = { exports: {} }; -const QLe = "\xC1", WLe = "\xE1", GLe = "\u0102", HLe = "\u0103", XLe = "\u223E", ZLe = "\u223F", jLe = "\u223E\u0333", KLe = "\xC2", JLe = "\xE2", e9e = "\xB4", t9e = "\u0410", r9e = "\u0430", n9e = "\xC6", i9e = "\xE6", s9e = "\u2061", a9e = "\u{1D504}", o9e = "\u{1D51E}", l9e = "\xC0", c9e = "\xE0", u9e = "\u2135", h9e = "\u2135", f9e = "\u0391", d9e = "\u03B1", p9e = "\u0100", g9e = "\u0101", m9e = "\u2A3F", v9e = "&", y9e = "&", b9e = "\u2A55", x9e = "\u2A53", w9e = "\u2227", O9e = "\u2A5C", k9e = "\u2A58", S9e = "\u2A5A", T9e = "\u2220", C9e = "\u29A4", E9e = "\u2220", _9e = "\u29A8", A9e = "\u29A9", L9e = "\u29AA", R9e = "\u29AB", M9e = "\u29AC", D9e = "\u29AD", N9e = "\u29AE", I9e = "\u29AF", P9e = "\u2221", $9e = "\u221F", B9e = "\u22BE", F9e = "\u299D", z9e = "\u2222", V9e = "\xC5", U9e = "\u237C", q9e = "\u0104", Y9e = "\u0105", Q9e = "\u{1D538}", W9e = "\u{1D552}", G9e = "\u2A6F", H9e = "\u2248", X9e = "\u2A70", Z9e = "\u224A", j9e = "\u224B", K9e = "'", J9e = "\u2061", eRe = "\u2248", tRe = "\u224A", rRe = "\xC5", nRe = "\xE5", iRe = "\u{1D49C}", sRe = "\u{1D4B6}", aRe = "\u2254", oRe = "*", lRe = "\u2248", cRe = "\u224D", uRe = "\xC3", hRe = "\xE3", fRe = "\xC4", dRe = "\xE4", pRe = "\u2233", gRe = "\u2A11", mRe = "\u224C", vRe = "\u03F6", yRe = "\u2035", bRe = "\u223D", xRe = "\u22CD", wRe = "\u2216", ORe = "\u2AE7", kRe = "\u22BD", SRe = "\u2305", TRe = "\u2306", CRe = "\u2305", ERe = "\u23B5", _Re = "\u23B6", ARe = "\u224C", LRe = "\u0411", RRe = "\u0431", MRe = "\u201E", DRe = "\u2235", NRe = "\u2235", IRe = "\u2235", PRe = "\u29B0", $Re = "\u03F6", BRe = "\u212C", FRe = "\u212C", zRe = "\u0392", VRe = "\u03B2", URe = "\u2136", qRe = "\u226C", YRe = "\u{1D505}", QRe = "\u{1D51F}", WRe = "\u22C2", GRe = "\u25EF", HRe = "\u22C3", XRe = "\u2A00", ZRe = "\u2A01", jRe = "\u2A02", KRe = "\u2A06", JRe = "\u2605", eMe = "\u25BD", tMe = "\u25B3", rMe = "\u2A04", nMe = "\u22C1", iMe = "\u22C0", sMe = "\u290D", aMe = "\u29EB", oMe = "\u25AA", lMe = "\u25B4", cMe = "\u25BE", uMe = "\u25C2", hMe = "\u25B8", fMe = "\u2423", dMe = "\u2592", pMe = "\u2591", gMe = "\u2593", mMe = "\u2588", vMe = "=\u20E5", yMe = "\u2261\u20E5", bMe = "\u2AED", xMe = "\u2310", wMe = "\u{1D539}", OMe = "\u{1D553}", kMe = "\u22A5", SMe = "\u22A5", TMe = "\u22C8", CMe = "\u29C9", EMe = "\u2510", _Me = "\u2555", AMe = "\u2556", LMe = "\u2557", RMe = "\u250C", MMe = "\u2552", DMe = "\u2553", NMe = "\u2554", IMe = "\u2500", PMe = "\u2550", $Me = "\u252C", BMe = "\u2564", FMe = "\u2565", zMe = "\u2566", VMe = "\u2534", UMe = "\u2567", qMe = "\u2568", YMe = "\u2569", QMe = "\u229F", WMe = "\u229E", GMe = "\u22A0", HMe = "\u2518", XMe = "\u255B", ZMe = "\u255C", jMe = "\u255D", KMe = "\u2514", JMe = "\u2558", eDe = "\u2559", tDe = "\u255A", rDe = "\u2502", nDe = "\u2551", iDe = "\u253C", sDe = "\u256A", aDe = "\u256B", oDe = "\u256C", lDe = "\u2524", cDe = "\u2561", uDe = "\u2562", hDe = "\u2563", fDe = "\u251C", dDe = "\u255E", pDe = "\u255F", gDe = "\u2560", mDe = "\u2035", vDe = "\u02D8", yDe = "\u02D8", bDe = "\xA6", xDe = "\u{1D4B7}", wDe = "\u212C", ODe = "\u204F", kDe = "\u223D", SDe = "\u22CD", TDe = "\u29C5", CDe = "\\", EDe = "\u27C8", _De = "\u2022", ADe = "\u2022", LDe = "\u224E", RDe = "\u2AAE", MDe = "\u224F", DDe = "\u224E", NDe = "\u224F", IDe = "\u0106", PDe = "\u0107", $De = "\u2A44", BDe = "\u2A49", FDe = "\u2A4B", zDe = "\u2229", VDe = "\u22D2", UDe = "\u2A47", qDe = "\u2A40", YDe = "\u2145", QDe = "\u2229\uFE00", WDe = "\u2041", GDe = "\u02C7", HDe = "\u212D", XDe = "\u2A4D", ZDe = "\u010C", jDe = "\u010D", KDe = "\xC7", JDe = "\xE7", eNe = "\u0108", tNe = "\u0109", rNe = "\u2230", nNe = "\u2A4C", iNe = "\u2A50", sNe = "\u010A", aNe = "\u010B", oNe = "\xB8", lNe = "\xB8", cNe = "\u29B2", uNe = "\xA2", hNe = "\xB7", fNe = "\xB7", dNe = "\u{1D520}", pNe = "\u212D", gNe = "\u0427", mNe = "\u0447", vNe = "\u2713", yNe = "\u2713", bNe = "\u03A7", xNe = "\u03C7", wNe = "\u02C6", ONe = "\u2257", kNe = "\u21BA", SNe = "\u21BB", TNe = "\u229B", CNe = "\u229A", ENe = "\u229D", _Ne = "\u2299", ANe = "\xAE", LNe = "\u24C8", RNe = "\u2296", MNe = "\u2295", DNe = "\u2297", NNe = "\u25CB", INe = "\u29C3", PNe = "\u2257", $Ne = "\u2A10", BNe = "\u2AEF", FNe = "\u29C2", zNe = "\u2232", VNe = "\u201D", UNe = "\u2019", qNe = "\u2663", YNe = "\u2663", QNe = ":", WNe = "\u2237", GNe = "\u2A74", HNe = "\u2254", XNe = "\u2254", ZNe = ",", jNe = "@", KNe = "\u2201", JNe = "\u2218", eIe = "\u2201", tIe = "\u2102", rIe = "\u2245", nIe = "\u2A6D", iIe = "\u2261", sIe = "\u222E", aIe = "\u222F", oIe = "\u222E", lIe = "\u{1D554}", cIe = "\u2102", uIe = "\u2210", hIe = "\u2210", fIe = "\xA9", dIe = "\xA9", pIe = "\u2117", gIe = "\u2233", mIe = "\u21B5", vIe = "\u2717", yIe = "\u2A2F", bIe = "\u{1D49E}", xIe = "\u{1D4B8}", wIe = "\u2ACF", OIe = "\u2AD1", kIe = "\u2AD0", SIe = "\u2AD2", TIe = "\u22EF", CIe = "\u2938", EIe = "\u2935", _Ie = "\u22DE", AIe = "\u22DF", LIe = "\u21B6", RIe = "\u293D", MIe = "\u2A48", DIe = "\u2A46", NIe = "\u224D", IIe = "\u222A", PIe = "\u22D3", $Ie = "\u2A4A", BIe = "\u228D", FIe = "\u2A45", zIe = "\u222A\uFE00", VIe = "\u21B7", UIe = "\u293C", qIe = "\u22DE", YIe = "\u22DF", QIe = "\u22CE", WIe = "\u22CF", GIe = "\xA4", HIe = "\u21B6", XIe = "\u21B7", ZIe = "\u22CE", jIe = "\u22CF", KIe = "\u2232", JIe = "\u2231", ePe = "\u232D", tPe = "\u2020", rPe = "\u2021", nPe = "\u2138", iPe = "\u2193", sPe = "\u21A1", aPe = "\u21D3", oPe = "\u2010", lPe = "\u2AE4", cPe = "\u22A3", uPe = "\u290F", hPe = "\u02DD", fPe = "\u010E", dPe = "\u010F", pPe = "\u0414", gPe = "\u0434", mPe = "\u2021", vPe = "\u21CA", yPe = "\u2145", bPe = "\u2146", xPe = "\u2911", wPe = "\u2A77", OPe = "\xB0", kPe = "\u2207", SPe = "\u0394", TPe = "\u03B4", CPe = "\u29B1", EPe = "\u297F", _Pe = "\u{1D507}", APe = "\u{1D521}", LPe = "\u2965", RPe = "\u21C3", MPe = "\u21C2", DPe = "\xB4", NPe = "\u02D9", IPe = "\u02DD", PPe = "`", $Pe = "\u02DC", BPe = "\u22C4", FPe = "\u22C4", zPe = "\u22C4", VPe = "\u2666", UPe = "\u2666", qPe = "\xA8", YPe = "\u2146", QPe = "\u03DD", WPe = "\u22F2", GPe = "\xF7", HPe = "\xF7", XPe = "\u22C7", ZPe = "\u22C7", jPe = "\u0402", KPe = "\u0452", JPe = "\u231E", e$e = "\u230D", t$e = "$", r$e = "\u{1D53B}", n$e = "\u{1D555}", i$e = "\xA8", s$e = "\u02D9", a$e = "\u20DC", o$e = "\u2250", l$e = "\u2251", c$e = "\u2250", u$e = "\u2238", h$e = "\u2214", f$e = "\u22A1", d$e = "\u2306", p$e = "\u222F", g$e = "\xA8", m$e = "\u21D3", v$e = "\u21D0", y$e = "\u21D4", b$e = "\u2AE4", x$e = "\u27F8", w$e = "\u27FA", O$e = "\u27F9", k$e = "\u21D2", S$e = "\u22A8", T$e = "\u21D1", C$e = "\u21D5", E$e = "\u2225", _$e = "\u2913", A$e = "\u2193", L$e = "\u2193", R$e = "\u21D3", M$e = "\u21F5", D$e = "\u0311", N$e = "\u21CA", I$e = "\u21C3", P$e = "\u21C2", $$e = "\u2950", B$e = "\u295E", F$e = "\u2956", z$e = "\u21BD", V$e = "\u295F", U$e = "\u2957", q$e = "\u21C1", Y$e = "\u21A7", Q$e = "\u22A4", W$e = "\u2910", G$e = "\u231F", H$e = "\u230C", X$e = "\u{1D49F}", Z$e = "\u{1D4B9}", j$e = "\u0405", K$e = "\u0455", J$e = "\u29F6", eBe = "\u0110", tBe = "\u0111", rBe = "\u22F1", nBe = "\u25BF", iBe = "\u25BE", sBe = "\u21F5", aBe = "\u296F", oBe = "\u29A6", lBe = "\u040F", cBe = "\u045F", uBe = "\u27FF", hBe = "\xC9", fBe = "\xE9", dBe = "\u2A6E", pBe = "\u011A", gBe = "\u011B", mBe = "\xCA", vBe = "\xEA", yBe = "\u2256", bBe = "\u2255", xBe = "\u042D", wBe = "\u044D", OBe = "\u2A77", kBe = "\u0116", SBe = "\u0117", TBe = "\u2251", CBe = "\u2147", EBe = "\u2252", _Be = "\u{1D508}", ABe = "\u{1D522}", LBe = "\u2A9A", RBe = "\xC8", MBe = "\xE8", DBe = "\u2A96", NBe = "\u2A98", IBe = "\u2A99", PBe = "\u2208", $Be = "\u23E7", BBe = "\u2113", FBe = "\u2A95", zBe = "\u2A97", VBe = "\u0112", UBe = "\u0113", qBe = "\u2205", YBe = "\u2205", QBe = "\u25FB", WBe = "\u2205", GBe = "\u25AB", HBe = "\u2004", XBe = "\u2005", ZBe = "\u2003", jBe = "\u014A", KBe = "\u014B", JBe = "\u2002", eFe = "\u0118", tFe = "\u0119", rFe = "\u{1D53C}", nFe = "\u{1D556}", iFe = "\u22D5", sFe = "\u29E3", aFe = "\u2A71", oFe = "\u03B5", lFe = "\u0395", cFe = "\u03B5", uFe = "\u03F5", hFe = "\u2256", fFe = "\u2255", dFe = "\u2242", pFe = "\u2A96", gFe = "\u2A95", mFe = "\u2A75", vFe = "=", yFe = "\u2242", bFe = "\u225F", xFe = "\u21CC", wFe = "\u2261", OFe = "\u2A78", kFe = "\u29E5", SFe = "\u2971", TFe = "\u2253", CFe = "\u212F", EFe = "\u2130", _Fe = "\u2250", AFe = "\u2A73", LFe = "\u2242", RFe = "\u0397", MFe = "\u03B7", DFe = "\xD0", NFe = "\xF0", IFe = "\xCB", PFe = "\xEB", $Fe = "\u20AC", BFe = "!", FFe = "\u2203", zFe = "\u2203", VFe = "\u2130", UFe = "\u2147", qFe = "\u2147", YFe = "\u2252", QFe = "\u0424", WFe = "\u0444", GFe = "\u2640", HFe = "\uFB03", XFe = "\uFB00", ZFe = "\uFB04", jFe = "\u{1D509}", KFe = "\u{1D523}", JFe = "\uFB01", eze = "\u25FC", tze = "\u25AA", rze = "fj", nze = "\u266D", ize = "\uFB02", sze = "\u25B1", aze = "\u0192", oze = "\u{1D53D}", lze = "\u{1D557}", cze = "\u2200", uze = "\u2200", hze = "\u22D4", fze = "\u2AD9", dze = "\u2131", pze = "\u2A0D", gze = "\xBD", mze = "\u2153", vze = "\xBC", yze = "\u2155", bze = "\u2159", xze = "\u215B", wze = "\u2154", Oze = "\u2156", kze = "\xBE", Sze = "\u2157", Tze = "\u215C", Cze = "\u2158", Eze = "\u215A", _ze = "\u215D", Aze = "\u215E", Lze = "\u2044", Rze = "\u2322", Mze = "\u{1D4BB}", Dze = "\u2131", Nze = "\u01F5", Ize = "\u0393", Pze = "\u03B3", $ze = "\u03DC", Bze = "\u03DD", Fze = "\u2A86", zze = "\u011E", Vze = "\u011F", Uze = "\u0122", qze = "\u011C", Yze = "\u011D", Qze = "\u0413", Wze = "\u0433", Gze = "\u0120", Hze = "\u0121", Xze = "\u2265", Zze = "\u2267", jze = "\u2A8C", Kze = "\u22DB", Jze = "\u2265", eVe = "\u2267", tVe = "\u2A7E", rVe = "\u2AA9", nVe = "\u2A7E", iVe = "\u2A80", sVe = "\u2A82", aVe = "\u2A84", oVe = "\u22DB\uFE00", lVe = "\u2A94", cVe = "\u{1D50A}", uVe = "\u{1D524}", hVe = "\u226B", fVe = "\u22D9", dVe = "\u22D9", pVe = "\u2137", gVe = "\u0403", mVe = "\u0453", vVe = "\u2AA5", yVe = "\u2277", bVe = "\u2A92", xVe = "\u2AA4", wVe = "\u2A8A", OVe = "\u2A8A", kVe = "\u2A88", SVe = "\u2269", TVe = "\u2A88", CVe = "\u2269", EVe = "\u22E7", _Ve = "\u{1D53E}", AVe = "\u{1D558}", LVe = "`", RVe = "\u2265", MVe = "\u22DB", DVe = "\u2267", NVe = "\u2AA2", IVe = "\u2277", PVe = "\u2A7E", $Ve = "\u2273", BVe = "\u{1D4A2}", FVe = "\u210A", zVe = "\u2273", VVe = "\u2A8E", UVe = "\u2A90", qVe = "\u2AA7", YVe = "\u2A7A", QVe = ">", WVe = ">", GVe = "\u226B", HVe = "\u22D7", XVe = "\u2995", ZVe = "\u2A7C", jVe = "\u2A86", KVe = "\u2978", JVe = "\u22D7", eUe = "\u22DB", tUe = "\u2A8C", rUe = "\u2277", nUe = "\u2273", iUe = "\u2269\uFE00", sUe = "\u2269\uFE00", aUe = "\u02C7", oUe = "\u200A", lUe = "\xBD", cUe = "\u210B", uUe = "\u042A", hUe = "\u044A", fUe = "\u2948", dUe = "\u2194", pUe = "\u21D4", gUe = "\u21AD", mUe = "^", vUe = "\u210F", yUe = "\u0124", bUe = "\u0125", xUe = "\u2665", wUe = "\u2665", OUe = "\u2026", kUe = "\u22B9", SUe = "\u{1D525}", TUe = "\u210C", CUe = "\u210B", EUe = "\u2925", _Ue = "\u2926", AUe = "\u21FF", LUe = "\u223B", RUe = "\u21A9", MUe = "\u21AA", DUe = "\u{1D559}", NUe = "\u210D", IUe = "\u2015", PUe = "\u2500", $Ue = "\u{1D4BD}", BUe = "\u210B", FUe = "\u210F", zUe = "\u0126", VUe = "\u0127", UUe = "\u224E", qUe = "\u224F", YUe = "\u2043", QUe = "\u2010", WUe = "\xCD", GUe = "\xED", HUe = "\u2063", XUe = "\xCE", ZUe = "\xEE", jUe = "\u0418", KUe = "\u0438", JUe = "\u0130", eqe = "\u0415", tqe = "\u0435", rqe = "\xA1", nqe = "\u21D4", iqe = "\u{1D526}", sqe = "\u2111", aqe = "\xCC", oqe = "\xEC", lqe = "\u2148", cqe = "\u2A0C", uqe = "\u222D", hqe = "\u29DC", fqe = "\u2129", dqe = "\u0132", pqe = "\u0133", gqe = "\u012A", mqe = "\u012B", vqe = "\u2111", yqe = "\u2148", bqe = "\u2110", xqe = "\u2111", wqe = "\u0131", Oqe = "\u2111", kqe = "\u22B7", Sqe = "\u01B5", Tqe = "\u21D2", Cqe = "\u2105", Eqe = "\u221E", _qe = "\u29DD", Aqe = "\u0131", Lqe = "\u22BA", Rqe = "\u222B", Mqe = "\u222C", Dqe = "\u2124", Nqe = "\u222B", Iqe = "\u22BA", Pqe = "\u22C2", $qe = "\u2A17", Bqe = "\u2A3C", Fqe = "\u2063", zqe = "\u2062", Vqe = "\u0401", Uqe = "\u0451", qqe = "\u012E", Yqe = "\u012F", Qqe = "\u{1D540}", Wqe = "\u{1D55A}", Gqe = "\u0399", Hqe = "\u03B9", Xqe = "\u2A3C", Zqe = "\xBF", jqe = "\u{1D4BE}", Kqe = "\u2110", Jqe = "\u2208", eYe = "\u22F5", tYe = "\u22F9", rYe = "\u22F4", nYe = "\u22F3", iYe = "\u2208", sYe = "\u2062", aYe = "\u0128", oYe = "\u0129", lYe = "\u0406", cYe = "\u0456", uYe = "\xCF", hYe = "\xEF", fYe = "\u0134", dYe = "\u0135", pYe = "\u0419", gYe = "\u0439", mYe = "\u{1D50D}", vYe = "\u{1D527}", yYe = "\u0237", bYe = "\u{1D541}", xYe = "\u{1D55B}", wYe = "\u{1D4A5}", OYe = "\u{1D4BF}", kYe = "\u0408", SYe = "\u0458", TYe = "\u0404", CYe = "\u0454", EYe = "\u039A", _Ye = "\u03BA", AYe = "\u03F0", LYe = "\u0136", RYe = "\u0137", MYe = "\u041A", DYe = "\u043A", NYe = "\u{1D50E}", IYe = "\u{1D528}", PYe = "\u0138", $Ye = "\u0425", BYe = "\u0445", FYe = "\u040C", zYe = "\u045C", VYe = "\u{1D542}", UYe = "\u{1D55C}", qYe = "\u{1D4A6}", YYe = "\u{1D4C0}", QYe = "\u21DA", WYe = "\u0139", GYe = "\u013A", HYe = "\u29B4", XYe = "\u2112", ZYe = "\u039B", jYe = "\u03BB", KYe = "\u27E8", JYe = "\u27EA", eQe = "\u2991", tQe = "\u27E8", rQe = "\u2A85", nQe = "\u2112", iQe = "\xAB", sQe = "\u21E4", aQe = "\u291F", oQe = "\u2190", lQe = "\u219E", cQe = "\u21D0", uQe = "\u291D", hQe = "\u21A9", fQe = "\u21AB", dQe = "\u2939", pQe = "\u2973", gQe = "\u21A2", mQe = "\u2919", vQe = "\u291B", yQe = "\u2AAB", bQe = "\u2AAD", xQe = "\u2AAD\uFE00", wQe = "\u290C", OQe = "\u290E", kQe = "\u2772", SQe = "{", TQe = "[", CQe = "\u298B", EQe = "\u298F", _Qe = "\u298D", AQe = "\u013D", LQe = "\u013E", RQe = "\u013B", MQe = "\u013C", DQe = "\u2308", NQe = "{", IQe = "\u041B", PQe = "\u043B", $Qe = "\u2936", BQe = "\u201C", FQe = "\u201E", zQe = "\u2967", VQe = "\u294B", UQe = "\u21B2", qQe = "\u2264", YQe = "\u2266", QQe = "\u27E8", WQe = "\u21E4", GQe = "\u2190", HQe = "\u2190", XQe = "\u21D0", ZQe = "\u21C6", jQe = "\u21A2", KQe = "\u2308", JQe = "\u27E6", eWe = "\u2961", tWe = "\u2959", rWe = "\u21C3", nWe = "\u230A", iWe = "\u21BD", sWe = "\u21BC", aWe = "\u21C7", oWe = "\u2194", lWe = "\u2194", cWe = "\u21D4", uWe = "\u21C6", hWe = "\u21CB", fWe = "\u21AD", dWe = "\u294E", pWe = "\u21A4", gWe = "\u22A3", mWe = "\u295A", vWe = "\u22CB", yWe = "\u29CF", bWe = "\u22B2", xWe = "\u22B4", wWe = "\u2951", OWe = "\u2960", kWe = "\u2958", SWe = "\u21BF", TWe = "\u2952", CWe = "\u21BC", EWe = "\u2A8B", _We = "\u22DA", AWe = "\u2264", LWe = "\u2266", RWe = "\u2A7D", MWe = "\u2AA8", DWe = "\u2A7D", NWe = "\u2A7F", IWe = "\u2A81", PWe = "\u2A83", $We = "\u22DA\uFE00", BWe = "\u2A93", FWe = "\u2A85", zWe = "\u22D6", VWe = "\u22DA", UWe = "\u2A8B", qWe = "\u22DA", YWe = "\u2266", QWe = "\u2276", WWe = "\u2276", GWe = "\u2AA1", HWe = "\u2272", XWe = "\u2A7D", ZWe = "\u2272", jWe = "\u297C", KWe = "\u230A", JWe = "\u{1D50F}", eGe = "\u{1D529}", tGe = "\u2276", rGe = "\u2A91", nGe = "\u2962", iGe = "\u21BD", sGe = "\u21BC", aGe = "\u296A", oGe = "\u2584", lGe = "\u0409", cGe = "\u0459", uGe = "\u21C7", hGe = "\u226A", fGe = "\u22D8", dGe = "\u231E", pGe = "\u21DA", gGe = "\u296B", mGe = "\u25FA", vGe = "\u013F", yGe = "\u0140", bGe = "\u23B0", xGe = "\u23B0", wGe = "\u2A89", OGe = "\u2A89", kGe = "\u2A87", SGe = "\u2268", TGe = "\u2A87", CGe = "\u2268", EGe = "\u22E6", _Ge = "\u27EC", AGe = "\u21FD", LGe = "\u27E6", RGe = "\u27F5", MGe = "\u27F5", DGe = "\u27F8", NGe = "\u27F7", IGe = "\u27F7", PGe = "\u27FA", $Ge = "\u27FC", BGe = "\u27F6", FGe = "\u27F6", zGe = "\u27F9", VGe = "\u21AB", UGe = "\u21AC", qGe = "\u2985", YGe = "\u{1D543}", QGe = "\u{1D55D}", WGe = "\u2A2D", GGe = "\u2A34", HGe = "\u2217", XGe = "_", ZGe = "\u2199", jGe = "\u2198", KGe = "\u25CA", JGe = "\u25CA", eHe = "\u29EB", tHe = "(", rHe = "\u2993", nHe = "\u21C6", iHe = "\u231F", sHe = "\u21CB", aHe = "\u296D", oHe = "\u200E", lHe = "\u22BF", cHe = "\u2039", uHe = "\u{1D4C1}", hHe = "\u2112", fHe = "\u21B0", dHe = "\u21B0", pHe = "\u2272", gHe = "\u2A8D", mHe = "\u2A8F", vHe = "[", yHe = "\u2018", bHe = "\u201A", xHe = "\u0141", wHe = "\u0142", OHe = "\u2AA6", kHe = "\u2A79", SHe = "<", THe = "<", CHe = "\u226A", EHe = "\u22D6", _He = "\u22CB", AHe = "\u22C9", LHe = "\u2976", RHe = "\u2A7B", MHe = "\u25C3", DHe = "\u22B4", NHe = "\u25C2", IHe = "\u2996", PHe = "\u294A", $He = "\u2966", BHe = "\u2268\uFE00", FHe = "\u2268\uFE00", zHe = "\xAF", VHe = "\u2642", UHe = "\u2720", qHe = "\u2720", YHe = "\u21A6", QHe = "\u21A6", WHe = "\u21A7", GHe = "\u21A4", HHe = "\u21A5", XHe = "\u25AE", ZHe = "\u2A29", jHe = "\u041C", KHe = "\u043C", JHe = "\u2014", eXe = "\u223A", tXe = "\u2221", rXe = "\u205F", nXe = "\u2133", iXe = "\u{1D510}", sXe = "\u{1D52A}", aXe = "\u2127", oXe = "\xB5", lXe = "*", cXe = "\u2AF0", uXe = "\u2223", hXe = "\xB7", fXe = "\u229F", dXe = "\u2212", pXe = "\u2238", gXe = "\u2A2A", mXe = "\u2213", vXe = "\u2ADB", yXe = "\u2026", bXe = "\u2213", xXe = "\u22A7", wXe = "\u{1D544}", OXe = "\u{1D55E}", kXe = "\u2213", SXe = "\u{1D4C2}", TXe = "\u2133", CXe = "\u223E", EXe = "\u039C", _Xe = "\u03BC", AXe = "\u22B8", LXe = "\u22B8", RXe = "\u2207", MXe = "\u0143", DXe = "\u0144", NXe = "\u2220\u20D2", IXe = "\u2249", PXe = "\u2A70\u0338", $Xe = "\u224B\u0338", BXe = "\u0149", FXe = "\u2249", zXe = "\u266E", VXe = "\u2115", UXe = "\u266E", qXe = "\xA0", YXe = "\u224E\u0338", QXe = "\u224F\u0338", WXe = "\u2A43", GXe = "\u0147", HXe = "\u0148", XXe = "\u0145", ZXe = "\u0146", jXe = "\u2247", KXe = "\u2A6D\u0338", JXe = "\u2A42", eZe = "\u041D", tZe = "\u043D", rZe = "\u2013", nZe = "\u2924", iZe = "\u2197", sZe = "\u21D7", aZe = "\u2197", oZe = "\u2260", lZe = "\u2250\u0338", cZe = "\u200B", uZe = "\u200B", hZe = "\u200B", fZe = "\u200B", dZe = "\u2262", pZe = "\u2928", gZe = "\u2242\u0338", mZe = "\u226B", vZe = "\u226A", yZe = ` -`, bZe = "\u2204", xZe = "\u2204", wZe = "\u{1D511}", OZe = "\u{1D52B}", kZe = "\u2267\u0338", SZe = "\u2271", TZe = "\u2271", CZe = "\u2267\u0338", EZe = "\u2A7E\u0338", _Ze = "\u2A7E\u0338", AZe = "\u22D9\u0338", LZe = "\u2275", RZe = "\u226B\u20D2", MZe = "\u226F", DZe = "\u226F", NZe = "\u226B\u0338", IZe = "\u21AE", PZe = "\u21CE", $Ze = "\u2AF2", BZe = "\u220B", FZe = "\u22FC", zZe = "\u22FA", VZe = "\u220B", UZe = "\u040A", qZe = "\u045A", YZe = "\u219A", QZe = "\u21CD", WZe = "\u2025", GZe = "\u2266\u0338", HZe = "\u2270", XZe = "\u219A", ZZe = "\u21CD", jZe = "\u21AE", KZe = "\u21CE", JZe = "\u2270", eje = "\u2266\u0338", tje = "\u2A7D\u0338", rje = "\u2A7D\u0338", nje = "\u226E", ije = "\u22D8\u0338", sje = "\u2274", aje = "\u226A\u20D2", oje = "\u226E", lje = "\u22EA", cje = "\u22EC", uje = "\u226A\u0338", hje = "\u2224", fje = "\u2060", dje = "\xA0", pje = "\u{1D55F}", gje = "\u2115", mje = "\u2AEC", vje = "\xAC", yje = "\u2262", bje = "\u226D", xje = "\u2226", wje = "\u2209", Oje = "\u2260", kje = "\u2242\u0338", Sje = "\u2204", Tje = "\u226F", Cje = "\u2271", Eje = "\u2267\u0338", _je = "\u226B\u0338", Aje = "\u2279", Lje = "\u2A7E\u0338", Rje = "\u2275", Mje = "\u224E\u0338", Dje = "\u224F\u0338", Nje = "\u2209", Ije = "\u22F5\u0338", Pje = "\u22F9\u0338", $je = "\u2209", Bje = "\u22F7", Fje = "\u22F6", zje = "\u29CF\u0338", Vje = "\u22EA", Uje = "\u22EC", qje = "\u226E", Yje = "\u2270", Qje = "\u2278", Wje = "\u226A\u0338", Gje = "\u2A7D\u0338", Hje = "\u2274", Xje = "\u2AA2\u0338", Zje = "\u2AA1\u0338", jje = "\u220C", Kje = "\u220C", Jje = "\u22FE", eKe = "\u22FD", tKe = "\u2280", rKe = "\u2AAF\u0338", nKe = "\u22E0", iKe = "\u220C", sKe = "\u29D0\u0338", aKe = "\u22EB", oKe = "\u22ED", lKe = "\u228F\u0338", cKe = "\u22E2", uKe = "\u2290\u0338", hKe = "\u22E3", fKe = "\u2282\u20D2", dKe = "\u2288", pKe = "\u2281", gKe = "\u2AB0\u0338", mKe = "\u22E1", vKe = "\u227F\u0338", yKe = "\u2283\u20D2", bKe = "\u2289", xKe = "\u2241", wKe = "\u2244", OKe = "\u2247", kKe = "\u2249", SKe = "\u2224", TKe = "\u2226", CKe = "\u2226", EKe = "\u2AFD\u20E5", _Ke = "\u2202\u0338", AKe = "\u2A14", LKe = "\u2280", RKe = "\u22E0", MKe = "\u2280", DKe = "\u2AAF\u0338", NKe = "\u2AAF\u0338", IKe = "\u2933\u0338", PKe = "\u219B", $Ke = "\u21CF", BKe = "\u219D\u0338", FKe = "\u219B", zKe = "\u21CF", VKe = "\u22EB", UKe = "\u22ED", qKe = "\u2281", YKe = "\u22E1", QKe = "\u2AB0\u0338", WKe = "\u{1D4A9}", GKe = "\u{1D4C3}", HKe = "\u2224", XKe = "\u2226", ZKe = "\u2241", jKe = "\u2244", KKe = "\u2244", JKe = "\u2224", eJe = "\u2226", tJe = "\u22E2", rJe = "\u22E3", nJe = "\u2284", iJe = "\u2AC5\u0338", sJe = "\u2288", aJe = "\u2282\u20D2", oJe = "\u2288", lJe = "\u2AC5\u0338", cJe = "\u2281", uJe = "\u2AB0\u0338", hJe = "\u2285", fJe = "\u2AC6\u0338", dJe = "\u2289", pJe = "\u2283\u20D2", gJe = "\u2289", mJe = "\u2AC6\u0338", vJe = "\u2279", yJe = "\xD1", bJe = "\xF1", xJe = "\u2278", wJe = "\u22EA", OJe = "\u22EC", kJe = "\u22EB", SJe = "\u22ED", TJe = "\u039D", CJe = "\u03BD", EJe = "#", _Je = "\u2116", AJe = "\u2007", LJe = "\u224D\u20D2", RJe = "\u22AC", MJe = "\u22AD", DJe = "\u22AE", NJe = "\u22AF", IJe = "\u2265\u20D2", PJe = ">\u20D2", $Je = "\u2904", BJe = "\u29DE", FJe = "\u2902", zJe = "\u2264\u20D2", VJe = "<\u20D2", UJe = "\u22B4\u20D2", qJe = "\u2903", YJe = "\u22B5\u20D2", QJe = "\u223C\u20D2", WJe = "\u2923", GJe = "\u2196", HJe = "\u21D6", XJe = "\u2196", ZJe = "\u2927", jJe = "\xD3", KJe = "\xF3", JJe = "\u229B", eet = "\xD4", tet = "\xF4", ret = "\u229A", net = "\u041E", iet = "\u043E", set = "\u229D", aet = "\u0150", oet = "\u0151", cet = "\u2A38", uet = "\u2299", het = "\u29BC", fet = "\u0152", det = "\u0153", pet = "\u29BF", get = "\u{1D512}", met = "\u{1D52C}", vet = "\u02DB", yet = "\xD2", bet = "\xF2", xet = "\u29C1", wet = "\u29B5", Oet = "\u03A9", ket = "\u222E", Tet = "\u21BA", Cet = "\u29BE", Eet = "\u29BB", _et = "\u203E", Aet = "\u29C0", Let = "\u014C", Ret = "\u014D", Met = "\u03A9", Det = "\u03C9", Net = "\u039F", Iet = "\u03BF", Pet = "\u29B6", $et = "\u2296", Bet = "\u{1D546}", Fet = "\u{1D560}", zet = "\u29B7", Vet = "\u201C", Uet = "\u2018", qet = "\u29B9", Yet = "\u2295", Qet = "\u21BB", Wet = "\u2A54", Get = "\u2228", Het = "\u2A5D", Xet = "\u2134", Zet = "\u2134", jet = "\xAA", Ket = "\xBA", Jet = "\u22B6", ett = "\u2A56", ttt = "\u2A57", rtt = "\u2A5B", ntt = "\u24C8", itt = "\u{1D4AA}", stt = "\u2134", att = "\xD8", ott = "\xF8", ltt = "\u2298", ctt = "\xD5", utt = "\xF5", htt = "\u2A36", ftt = "\u2A37", dtt = "\u2297", ptt = "\xD6", gtt = "\xF6", mtt = "\u233D", vtt = "\u203E", ytt = "\u23DE", btt = "\u23B4", xtt = "\u23DC", wtt = "\xB6", Ott = "\u2225", ktt = "\u2225", Stt = "\u2AF3", Ttt = "\u2AFD", Ctt = "\u2202", Ett = "\u2202", _tt = "\u041F", Att = "\u043F", Ltt = "%", Rtt = ".", Mtt = "\u2030", Dtt = "\u22A5", Ntt = "\u2031", Itt = "\u{1D513}", Ptt = "\u{1D52D}", $tt = "\u03A6", Btt = "\u03C6", Ftt = "\u03D5", ztt = "\u2133", Vtt = "\u260E", Utt = "\u03A0", qtt = "\u03C0", Ytt = "\u22D4", Qtt = "\u03D6", Wtt = "\u210F", Gtt = "\u210E", Htt = "\u210F", Xtt = "\u2A23", Ztt = "\u229E", jtt = "\u2A22", Ktt = "+", Jtt = "\u2214", ert = "\u2A25", trt = "\u2A72", rrt = "\xB1", nrt = "\xB1", irt = "\u2A26", srt = "\u2A27", art = "\xB1", ort = "\u210C", lrt = "\u2A15", crt = "\u{1D561}", urt = "\u2119", hrt = "\xA3", frt = "\u2AB7", drt = "\u2ABB", prt = "\u227A", grt = "\u227C", mrt = "\u2AB7", vrt = "\u227A", yrt = "\u227C", brt = "\u227A", xrt = "\u2AAF", wrt = "\u227C", Ort = "\u227E", krt = "\u2AAF", Srt = "\u2AB9", Trt = "\u2AB5", Crt = "\u22E8", Ert = "\u2AAF", _rt = "\u2AB3", Art = "\u227E", Lrt = "\u2032", Rrt = "\u2033", Mrt = "\u2119", Drt = "\u2AB9", Nrt = "\u2AB5", Irt = "\u22E8", Prt = "\u220F", $rt = "\u220F", Brt = "\u232E", Frt = "\u2312", zrt = "\u2313", Vrt = "\u221D", Urt = "\u221D", qrt = "\u2237", Yrt = "\u221D", Qrt = "\u227E", Wrt = "\u22B0", Grt = "\u{1D4AB}", Hrt = "\u{1D4C5}", Xrt = "\u03A8", Zrt = "\u03C8", jrt = "\u2008", Krt = "\u{1D514}", Jrt = "\u{1D52E}", ent = "\u2A0C", tnt = "\u{1D562}", rnt = "\u211A", nnt = "\u2057", int = "\u{1D4AC}", snt = "\u{1D4C6}", ant = "\u210D", ont = "\u2A16", lnt = "?", cnt = "\u225F", unt = '"', hnt = '"', fnt = "\u21DB", dnt = "\u223D\u0331", pnt = "\u0154", gnt = "\u0155", mnt = "\u221A", vnt = "\u29B3", ynt = "\u27E9", bnt = "\u27EB", xnt = "\u2992", wnt = "\u29A5", Ont = "\u27E9", knt = "\xBB", Snt = "\u2975", Tnt = "\u21E5", Cnt = "\u2920", Ent = "\u2933", _nt = "\u2192", Ant = "\u21A0", Lnt = "\u21D2", Rnt = "\u291E", Mnt = "\u21AA", Dnt = "\u21AC", Nnt = "\u2945", Int = "\u2974", Pnt = "\u2916", $nt = "\u21A3", Bnt = "\u219D", Fnt = "\u291A", znt = "\u291C", Vnt = "\u2236", Unt = "\u211A", qnt = "\u290D", Ynt = "\u290F", Qnt = "\u2910", Wnt = "\u2773", Gnt = "}", Hnt = "]", Xnt = "\u298C", Znt = "\u298E", jnt = "\u2990", Knt = "\u0158", Jnt = "\u0159", eit = "\u0156", tit = "\u0157", rit = "\u2309", nit = "}", iit = "\u0420", sit = "\u0440", ait = "\u2937", oit = "\u2969", lit = "\u201D", cit = "\u201D", uit = "\u21B3", hit = "\u211C", fit = "\u211B", dit = "\u211C", pit = "\u211D", git = "\u211C", mit = "\u25AD", vit = "\xAE", yit = "\xAE", bit = "\u220B", xit = "\u21CB", wit = "\u296F", Oit = "\u297D", kit = "\u230B", Sit = "\u{1D52F}", Tit = "\u211C", Cit = "\u2964", Eit = "\u21C1", _it = "\u21C0", Ait = "\u296C", Lit = "\u03A1", Rit = "\u03C1", Mit = "\u03F1", Dit = "\u27E9", Nit = "\u21E5", Iit = "\u2192", Pit = "\u2192", $it = "\u21D2", Bit = "\u21C4", Fit = "\u21A3", zit = "\u2309", Vit = "\u27E7", Uit = "\u295D", qit = "\u2955", Yit = "\u21C2", Qit = "\u230B", Wit = "\u21C1", Git = "\u21C0", Hit = "\u21C4", Xit = "\u21CC", Zit = "\u21C9", jit = "\u219D", Kit = "\u21A6", Jit = "\u22A2", est = "\u295B", tst = "\u22CC", rst = "\u29D0", nst = "\u22B3", ist = "\u22B5", sst = "\u294F", ast = "\u295C", ost = "\u2954", lst = "\u21BE", cst = "\u2953", ust = "\u21C0", hst = "\u02DA", fst = "\u2253", dst = "\u21C4", pst = "\u21CC", gst = "\u200F", mst = "\u23B1", vst = "\u23B1", yst = "\u2AEE", bst = "\u27ED", xst = "\u21FE", wst = "\u27E7", Ost = "\u2986", kst = "\u{1D563}", Sst = "\u211D", Tst = "\u2A2E", Cst = "\u2A35", Est = "\u2970", _st = ")", Ast = "\u2994", Lst = "\u2A12", Rst = "\u21C9", Mst = "\u21DB", Dst = "\u203A", Nst = "\u{1D4C7}", Ist = "\u211B", Pst = "\u21B1", $st = "\u21B1", Bst = "]", Fst = "\u2019", zst = "\u2019", Vst = "\u22CC", Ust = "\u22CA", qst = "\u25B9", Yst = "\u22B5", Qst = "\u25B8", Wst = "\u29CE", Gst = "\u29F4", Hst = "\u2968", Xst = "\u211E", Zst = "\u015A", jst = "\u015B", Kst = "\u201A", Jst = "\u2AB8", eat = "\u0160", tat = "\u0161", rat = "\u2ABC", nat = "\u227B", iat = "\u227D", sat = "\u2AB0", aat = "\u2AB4", oat = "\u015E", lat = "\u015F", cat = "\u015C", uat = "\u015D", hat = "\u2ABA", fat = "\u2AB6", dat = "\u22E9", pat = "\u2A13", gat = "\u227F", mat = "\u0421", vat = "\u0441", yat = "\u22A1", bat = "\u22C5", xat = "\u2A66", wat = "\u2925", Oat = "\u2198", kat = "\u21D8", Sat = "\u2198", Tat = "\xA7", Cat = ";", Eat = "\u2929", _at = "\u2216", Aat = "\u2216", Lat = "\u2736", Rat = "\u{1D516}", Mat = "\u{1D530}", Dat = "\u2322", Nat = "\u266F", Iat = "\u0429", Pat = "\u0449", $at = "\u0428", Bat = "\u0448", Fat = "\u2193", zat = "\u2190", Vat = "\u2223", Uat = "\u2225", qat = "\u2192", Yat = "\u2191", Qat = "\xAD", Wat = "\u03A3", Gat = "\u03C3", Hat = "\u03C2", Xat = "\u03C2", Zat = "\u223C", jat = "\u2A6A", Kat = "\u2243", Jat = "\u2243", eot = "\u2A9E", tot = "\u2AA0", rot = "\u2A9D", not = "\u2A9F", iot = "\u2246", sot = "\u2A24", aot = "\u2972", oot = "\u2190", lot = "\u2218", cot = "\u2216", uot = "\u2A33", hot = "\u29E4", fot = "\u2223", dot = "\u2323", pot = "\u2AAA", got = "\u2AAC", mot = "\u2AAC\uFE00", vot = "\u042C", yot = "\u044C", bot = "\u233F", xot = "\u29C4", wot = "/", Oot = "\u{1D54A}", kot = "\u{1D564}", Sot = "\u2660", Tot = "\u2660", Cot = "\u2225", Eot = "\u2293", _ot = "\u2293\uFE00", Aot = "\u2294", Lot = "\u2294\uFE00", Rot = "\u221A", Mot = "\u228F", Dot = "\u2291", Not = "\u228F", Iot = "\u2291", Pot = "\u2290", $ot = "\u2292", Bot = "\u2290", Fot = "\u2292", zot = "\u25A1", Vot = "\u25A1", Uot = "\u2293", qot = "\u228F", Yot = "\u2291", Qot = "\u2290", Wot = "\u2292", Got = "\u2294", Hot = "\u25AA", Xot = "\u25A1", Zot = "\u25AA", jot = "\u2192", Kot = "\u{1D4AE}", Jot = "\u{1D4C8}", elt = "\u2216", tlt = "\u2323", rlt = "\u22C6", nlt = "\u22C6", ilt = "\u2606", slt = "\u2605", alt = "\u03F5", olt = "\u03D5", llt = "\xAF", clt = "\u2282", ult = "\u22D0", hlt = "\u2ABD", flt = "\u2AC5", dlt = "\u2286", plt = "\u2AC3", glt = "\u2AC1", mlt = "\u2ACB", vlt = "\u228A", ylt = "\u2ABF", blt = "\u2979", xlt = "\u2282", wlt = "\u22D0", Olt = "\u2286", klt = "\u2AC5", Slt = "\u2286", Tlt = "\u228A", Clt = "\u2ACB", Elt = "\u2AC7", _lt = "\u2AD5", Alt = "\u2AD3", Llt = "\u2AB8", Rlt = "\u227B", Mlt = "\u227D", Dlt = "\u227B", Nlt = "\u2AB0", Ilt = "\u227D", Plt = "\u227F", $lt = "\u2AB0", Blt = "\u2ABA", Flt = "\u2AB6", zlt = "\u22E9", Vlt = "\u227F", Ult = "\u220B", qlt = "\u2211", Ylt = "\u2211", Qlt = "\u266A", Wlt = "\xB9", Glt = "\xB2", Hlt = "\xB3", Xlt = "\u2283", Zlt = "\u22D1", jlt = "\u2ABE", Klt = "\u2AD8", Jlt = "\u2AC6", ect = "\u2287", tct = "\u2AC4", rct = "\u2283", nct = "\u2287", ict = "\u27C9", sct = "\u2AD7", act = "\u297B", oct = "\u2AC2", lct = "\u2ACC", cct = "\u228B", uct = "\u2AC0", hct = "\u2283", fct = "\u22D1", dct = "\u2287", pct = "\u2AC6", gct = "\u228B", mct = "\u2ACC", vct = "\u2AC8", yct = "\u2AD4", bct = "\u2AD6", xct = "\u2926", wct = "\u2199", Oct = "\u21D9", kct = "\u2199", Sct = "\u292A", Tct = "\xDF", Cct = " ", Ect = "\u2316", _ct = "\u03A4", Act = "\u03C4", Lct = "\u23B4", Rct = "\u0164", Mct = "\u0165", Dct = "\u0162", Nct = "\u0163", Ict = "\u0422", Pct = "\u0442", $ct = "\u20DB", Bct = "\u2315", Fct = "\u{1D517}", zct = "\u{1D531}", Vct = "\u2234", Uct = "\u2234", qct = "\u2234", Yct = "\u0398", Qct = "\u03B8", Wct = "\u03D1", Gct = "\u03D1", Hct = "\u2248", Xct = "\u223C", Zct = "\u205F\u200A", jct = "\u2009", Kct = "\u2009", Jct = "\u2248", eut = "\u223C", tut = "\xDE", rut = "\xFE", nut = "\u02DC", iut = "\u223C", sut = "\u2243", aut = "\u2245", out = "\u2248", lut = "\u2A31", cut = "\u22A0", uut = "\xD7", hut = "\u2A30", fut = "\u222D", dut = "\u2928", put = "\u2336", gut = "\u2AF1", mut = "\u22A4", vut = "\u{1D54B}", yut = "\u{1D565}", but = "\u2ADA", xut = "\u2929", wut = "\u2034", Out = "\u2122", kut = "\u2122", Sut = "\u25B5", Tut = "\u25BF", Cut = "\u25C3", Eut = "\u22B4", _ut = "\u225C", Aut = "\u25B9", Lut = "\u22B5", Rut = "\u25EC", Mut = "\u225C", Dut = "\u2A3A", Nut = "\u20DB", Iut = "\u2A39", Put = "\u29CD", $ut = "\u2A3B", But = "\u23E2", Fut = "\u{1D4AF}", zut = "\u{1D4C9}", Vut = "\u0426", Uut = "\u0446", qut = "\u040B", Yut = "\u045B", Qut = "\u0166", Wut = "\u0167", Gut = "\u226C", Hut = "\u219E", Xut = "\u21A0", Zut = "\xDA", jut = "\xFA", Kut = "\u2191", Jut = "\u219F", eht = "\u21D1", tht = "\u2949", rht = "\u040E", nht = "\u045E", iht = "\u016C", sht = "\u016D", aht = "\xDB", oht = "\xFB", lht = "\u0423", cht = "\u0443", uht = "\u21C5", hht = "\u0170", fht = "\u0171", dht = "\u296E", pht = "\u297E", ght = "\u{1D518}", mht = "\u{1D532}", vht = "\xD9", yht = "\xF9", bht = "\u2963", xht = "\u21BF", wht = "\u21BE", Oht = "\u2580", kht = "\u231C", Sht = "\u231C", Tht = "\u230F", Cht = "\u25F8", Eht = "\u016A", _ht = "\u016B", Aht = "\xA8", Lht = "_", Rht = "\u23DF", Mht = "\u23B5", Dht = "\u23DD", Nht = "\u22C3", Iht = "\u228E", Pht = "\u0172", $ht = "\u0173", Bht = "\u{1D54C}", Fht = "\u{1D566}", zht = "\u2912", Vht = "\u2191", Uht = "\u2191", qht = "\u21D1", Yht = "\u21C5", Qht = "\u2195", Wht = "\u2195", Ght = "\u21D5", Hht = "\u296E", Xht = "\u21BF", Zht = "\u21BE", jht = "\u228E", Kht = "\u2196", Jht = "\u2197", eft = "\u03C5", tft = "\u03D2", rft = "\u03D2", nft = "\u03A5", ift = "\u03C5", sft = "\u21A5", aft = "\u22A5", oft = "\u21C8", lft = "\u231D", cft = "\u231D", uft = "\u230E", hft = "\u016E", fft = "\u016F", dft = "\u25F9", pft = "\u{1D4B0}", gft = "\u{1D4CA}", mft = "\u22F0", vft = "\u0168", yft = "\u0169", bft = "\u25B5", xft = "\u25B4", wft = "\u21C8", Oft = "\xDC", kft = "\xFC", Sft = "\u29A7", Tft = "\u299C", Cft = "\u03F5", Eft = "\u03F0", _ft = "\u2205", Aft = "\u03D5", Lft = "\u03D6", Rft = "\u221D", Mft = "\u2195", Dft = "\u21D5", Nft = "\u03F1", Ift = "\u03C2", Pft = "\u228A\uFE00", $ft = "\u2ACB\uFE00", Bft = "\u228B\uFE00", Fft = "\u2ACC\uFE00", zft = "\u03D1", Vft = "\u22B2", Uft = "\u22B3", qft = "\u2AE8", Yft = "\u2AEB", Qft = "\u2AE9", Wft = "\u0412", Gft = "\u0432", Hft = "\u22A2", Xft = "\u22A8", Zft = "\u22A9", jft = "\u22AB", Kft = "\u2AE6", Jft = "\u22BB", edt = "\u2228", tdt = "\u22C1", rdt = "\u225A", ndt = "\u22EE", idt = "|", sdt = "\u2016", adt = "|", odt = "\u2016", ldt = "\u2223", cdt = "|", udt = "\u2758", hdt = "\u2240", fdt = "\u200A", ddt = "\u{1D519}", pdt = "\u{1D533}", gdt = "\u22B2", mdt = "\u2282\u20D2", vdt = "\u2283\u20D2", ydt = "\u{1D54D}", bdt = "\u{1D567}", xdt = "\u221D", wdt = "\u22B3", Odt = "\u{1D4B1}", kdt = "\u{1D4CB}", Sdt = "\u2ACB\uFE00", Tdt = "\u228A\uFE00", Cdt = "\u2ACC\uFE00", Edt = "\u228B\uFE00", _dt = "\u22AA", Adt = "\u299A", Ldt = "\u0174", Rdt = "\u0175", Mdt = "\u2A5F", Ddt = "\u2227", Ndt = "\u22C0", Idt = "\u2259", Pdt = "\u2118", $dt = "\u{1D51A}", Bdt = "\u{1D534}", Fdt = "\u{1D54E}", zdt = "\u{1D568}", Vdt = "\u2118", Udt = "\u2240", qdt = "\u2240", Ydt = "\u{1D4B2}", Qdt = "\u{1D4CC}", Wdt = "\u22C2", Gdt = "\u25EF", Hdt = "\u22C3", Xdt = "\u25BD", Zdt = "\u{1D51B}", jdt = "\u{1D535}", Kdt = "\u27F7", Jdt = "\u27FA", e0t = "\u039E", t0t = "\u03BE", r0t = "\u27F5", n0t = "\u27F8", i0t = "\u27FC", s0t = "\u22FB", a0t = "\u2A00", o0t = "\u{1D54F}", l0t = "\u{1D569}", c0t = "\u2A01", u0t = "\u2A02", h0t = "\u27F6", f0t = "\u27F9", d0t = "\u{1D4B3}", p0t = "\u{1D4CD}", g0t = "\u2A06", m0t = "\u2A04", v0t = "\u25B3", y0t = "\u22C1", b0t = "\u22C0", x0t = "\xDD", w0t = "\xFD", O0t = "\u042F", k0t = "\u044F", S0t = "\u0176", T0t = "\u0177", C0t = "\u042B", E0t = "\u044B", _0t = "\xA5", A0t = "\u{1D51C}", L0t = "\u{1D536}", R0t = "\u0407", M0t = "\u0457", D0t = "\u{1D550}", N0t = "\u{1D56A}", I0t = "\u{1D4B4}", P0t = "\u{1D4CE}", $0t = "\u042E", B0t = "\u044E", F0t = "\xFF", z0t = "\u0178", V0t = "\u0179", U0t = "\u017A", q0t = "\u017D", Y0t = "\u017E", Q0t = "\u0417", W0t = "\u0437", G0t = "\u017B", H0t = "\u017C", X0t = "\u2128", Z0t = "\u200B", j0t = "\u0396", K0t = "\u03B6", J0t = "\u{1D537}", ept = "\u2128", tpt = "\u0416", rpt = "\u0436", npt = "\u21DD", ipt = "\u{1D56B}", spt = "\u2124", apt = "\u{1D4B5}", opt = "\u{1D4CF}", lpt = "\u200D", cpt = "\u200C", upt = { - Aacute: QLe, - aacute: WLe, - Abreve: GLe, - abreve: HLe, - ac: XLe, - acd: ZLe, - acE: jLe, - Acirc: KLe, - acirc: JLe, - acute: e9e, - Acy: t9e, - acy: r9e, - AElig: n9e, - aelig: i9e, - af: s9e, - Afr: a9e, - afr: o9e, - Agrave: l9e, - agrave: c9e, - alefsym: u9e, - aleph: h9e, - Alpha: f9e, - alpha: d9e, - Amacr: p9e, - amacr: g9e, - amalg: m9e, - amp: v9e, - AMP: y9e, - andand: b9e, - And: x9e, - and: w9e, - andd: O9e, - andslope: k9e, - andv: S9e, - ang: T9e, - ange: C9e, - angle: E9e, - angmsdaa: _9e, - angmsdab: A9e, - angmsdac: L9e, - angmsdad: R9e, - angmsdae: M9e, - angmsdaf: D9e, - angmsdag: N9e, - angmsdah: I9e, - angmsd: P9e, - angrt: $9e, - angrtvb: B9e, - angrtvbd: F9e, - angsph: z9e, - angst: V9e, - angzarr: U9e, - Aogon: q9e, - aogon: Y9e, - Aopf: Q9e, - aopf: W9e, - apacir: G9e, - ap: H9e, - apE: X9e, - ape: Z9e, - apid: j9e, - apos: K9e, - ApplyFunction: J9e, - approx: eRe, - approxeq: tRe, - Aring: rRe, - aring: nRe, - Ascr: iRe, - ascr: sRe, - Assign: aRe, - ast: oRe, - asymp: lRe, - asympeq: cRe, - Atilde: uRe, - atilde: hRe, - Auml: fRe, - auml: dRe, - awconint: pRe, - awint: gRe, - backcong: mRe, - backepsilon: vRe, - backprime: yRe, - backsim: bRe, - backsimeq: xRe, - Backslash: wRe, - Barv: ORe, - barvee: kRe, - barwed: SRe, - Barwed: TRe, - barwedge: CRe, - bbrk: ERe, - bbrktbrk: _Re, - bcong: ARe, - Bcy: LRe, - bcy: RRe, - bdquo: MRe, - becaus: DRe, - because: NRe, - Because: IRe, - bemptyv: PRe, - bepsi: $Re, - bernou: BRe, - Bernoullis: FRe, - Beta: zRe, - beta: VRe, - beth: URe, - between: qRe, - Bfr: YRe, - bfr: QRe, - bigcap: WRe, - bigcirc: GRe, - bigcup: HRe, - bigodot: XRe, - bigoplus: ZRe, - bigotimes: jRe, - bigsqcup: KRe, - bigstar: JRe, - bigtriangledown: eMe, - bigtriangleup: tMe, - biguplus: rMe, - bigvee: nMe, - bigwedge: iMe, - bkarow: sMe, - blacklozenge: aMe, - blacksquare: oMe, - blacktriangle: lMe, - blacktriangledown: cMe, - blacktriangleleft: uMe, - blacktriangleright: hMe, - blank: fMe, - blk12: dMe, - blk14: pMe, - blk34: gMe, - block: mMe, - bne: vMe, - bnequiv: yMe, - bNot: bMe, - bnot: xMe, - Bopf: wMe, - bopf: OMe, - bot: kMe, - bottom: SMe, - bowtie: TMe, - boxbox: CMe, - boxdl: EMe, - boxdL: _Me, - boxDl: AMe, - boxDL: LMe, - boxdr: RMe, - boxdR: MMe, - boxDr: DMe, - boxDR: NMe, - boxh: IMe, - boxH: PMe, - boxhd: $Me, - boxHd: BMe, - boxhD: FMe, - boxHD: zMe, - boxhu: VMe, - boxHu: UMe, - boxhU: qMe, - boxHU: YMe, - boxminus: QMe, - boxplus: WMe, - boxtimes: GMe, - boxul: HMe, - boxuL: XMe, - boxUl: ZMe, - boxUL: jMe, - boxur: KMe, - boxuR: JMe, - boxUr: eDe, - boxUR: tDe, - boxv: rDe, - boxV: nDe, - boxvh: iDe, - boxvH: sDe, - boxVh: aDe, - boxVH: oDe, - boxvl: lDe, - boxvL: cDe, - boxVl: uDe, - boxVL: hDe, - boxvr: fDe, - boxvR: dDe, - boxVr: pDe, - boxVR: gDe, - bprime: mDe, - breve: vDe, - Breve: yDe, - brvbar: bDe, - bscr: xDe, - Bscr: wDe, - bsemi: ODe, - bsim: kDe, - bsime: SDe, - bsolb: TDe, - bsol: CDe, - bsolhsub: EDe, - bull: _De, - bullet: ADe, - bump: LDe, - bumpE: RDe, - bumpe: MDe, - Bumpeq: DDe, - bumpeq: NDe, - Cacute: IDe, - cacute: PDe, - capand: $De, - capbrcup: BDe, - capcap: FDe, - cap: zDe, - Cap: VDe, - capcup: UDe, - capdot: qDe, - CapitalDifferentialD: YDe, - caps: QDe, - caret: WDe, - caron: GDe, - Cayleys: HDe, - ccaps: XDe, - Ccaron: ZDe, - ccaron: jDe, - Ccedil: KDe, - ccedil: JDe, - Ccirc: eNe, - ccirc: tNe, - Cconint: rNe, - ccups: nNe, - ccupssm: iNe, - Cdot: sNe, - cdot: aNe, - cedil: oNe, - Cedilla: lNe, - cemptyv: cNe, - cent: uNe, - centerdot: hNe, - CenterDot: fNe, - cfr: dNe, - Cfr: pNe, - CHcy: gNe, - chcy: mNe, - check: vNe, - checkmark: yNe, - Chi: bNe, - chi: xNe, - circ: wNe, - circeq: ONe, - circlearrowleft: kNe, - circlearrowright: SNe, - circledast: TNe, - circledcirc: CNe, - circleddash: ENe, - CircleDot: _Ne, - circledR: ANe, - circledS: LNe, - CircleMinus: RNe, - CirclePlus: MNe, - CircleTimes: DNe, - cir: NNe, - cirE: INe, - cire: PNe, - cirfnint: $Ne, - cirmid: BNe, - cirscir: FNe, - ClockwiseContourIntegral: zNe, - CloseCurlyDoubleQuote: VNe, - CloseCurlyQuote: UNe, - clubs: qNe, - clubsuit: YNe, - colon: QNe, - Colon: WNe, - Colone: GNe, - colone: HNe, - coloneq: XNe, - comma: ZNe, - commat: jNe, - comp: KNe, - compfn: JNe, - complement: eIe, - complexes: tIe, - cong: rIe, - congdot: nIe, - Congruent: iIe, - conint: sIe, - Conint: aIe, - ContourIntegral: oIe, - copf: lIe, - Copf: cIe, - coprod: uIe, - Coproduct: hIe, - copy: fIe, - COPY: dIe, - copysr: pIe, - CounterClockwiseContourIntegral: gIe, - crarr: mIe, - cross: vIe, - Cross: yIe, - Cscr: bIe, - cscr: xIe, - csub: wIe, - csube: OIe, - csup: kIe, - csupe: SIe, - ctdot: TIe, - cudarrl: CIe, - cudarrr: EIe, - cuepr: _Ie, - cuesc: AIe, - cularr: LIe, - cularrp: RIe, - cupbrcap: MIe, - cupcap: DIe, - CupCap: NIe, - cup: IIe, - Cup: PIe, - cupcup: $Ie, - cupdot: BIe, - cupor: FIe, - cups: zIe, - curarr: VIe, - curarrm: UIe, - curlyeqprec: qIe, - curlyeqsucc: YIe, - curlyvee: QIe, - curlywedge: WIe, - curren: GIe, - curvearrowleft: HIe, - curvearrowright: XIe, - cuvee: ZIe, - cuwed: jIe, - cwconint: KIe, - cwint: JIe, - cylcty: ePe, - dagger: tPe, - Dagger: rPe, - daleth: nPe, - darr: iPe, - Darr: sPe, - dArr: aPe, - dash: oPe, - Dashv: lPe, - dashv: cPe, - dbkarow: uPe, - dblac: hPe, - Dcaron: fPe, - dcaron: dPe, - Dcy: pPe, - dcy: gPe, - ddagger: mPe, - ddarr: vPe, - DD: yPe, - dd: bPe, - DDotrahd: xPe, - ddotseq: wPe, - deg: OPe, - Del: kPe, - Delta: SPe, - delta: TPe, - demptyv: CPe, - dfisht: EPe, - Dfr: _Pe, - dfr: APe, - dHar: LPe, - dharl: RPe, - dharr: MPe, - DiacriticalAcute: DPe, - DiacriticalDot: NPe, - DiacriticalDoubleAcute: IPe, - DiacriticalGrave: PPe, - DiacriticalTilde: $Pe, - diam: BPe, - diamond: FPe, - Diamond: zPe, - diamondsuit: VPe, - diams: UPe, - die: qPe, - DifferentialD: YPe, - digamma: QPe, - disin: WPe, - div: GPe, - divide: HPe, - divideontimes: XPe, - divonx: ZPe, - DJcy: jPe, - djcy: KPe, - dlcorn: JPe, - dlcrop: e$e, - dollar: t$e, - Dopf: r$e, - dopf: n$e, - Dot: i$e, - dot: s$e, - DotDot: a$e, - doteq: o$e, - doteqdot: l$e, - DotEqual: c$e, - dotminus: u$e, - dotplus: h$e, - dotsquare: f$e, - doublebarwedge: d$e, - DoubleContourIntegral: p$e, - DoubleDot: g$e, - DoubleDownArrow: m$e, - DoubleLeftArrow: v$e, - DoubleLeftRightArrow: y$e, - DoubleLeftTee: b$e, - DoubleLongLeftArrow: x$e, - DoubleLongLeftRightArrow: w$e, - DoubleLongRightArrow: O$e, - DoubleRightArrow: k$e, - DoubleRightTee: S$e, - DoubleUpArrow: T$e, - DoubleUpDownArrow: C$e, - DoubleVerticalBar: E$e, - DownArrowBar: _$e, - downarrow: A$e, - DownArrow: L$e, - Downarrow: R$e, - DownArrowUpArrow: M$e, - DownBreve: D$e, - downdownarrows: N$e, - downharpoonleft: I$e, - downharpoonright: P$e, - DownLeftRightVector: $$e, - DownLeftTeeVector: B$e, - DownLeftVectorBar: F$e, - DownLeftVector: z$e, - DownRightTeeVector: V$e, - DownRightVectorBar: U$e, - DownRightVector: q$e, - DownTeeArrow: Y$e, - DownTee: Q$e, - drbkarow: W$e, - drcorn: G$e, - drcrop: H$e, - Dscr: X$e, - dscr: Z$e, - DScy: j$e, - dscy: K$e, - dsol: J$e, - Dstrok: eBe, - dstrok: tBe, - dtdot: rBe, - dtri: nBe, - dtrif: iBe, - duarr: sBe, - duhar: aBe, - dwangle: oBe, - DZcy: lBe, - dzcy: cBe, - dzigrarr: uBe, - Eacute: hBe, - eacute: fBe, - easter: dBe, - Ecaron: pBe, - ecaron: gBe, - Ecirc: mBe, - ecirc: vBe, - ecir: yBe, - ecolon: bBe, - Ecy: xBe, - ecy: wBe, - eDDot: OBe, - Edot: kBe, - edot: SBe, - eDot: TBe, - ee: CBe, - efDot: EBe, - Efr: _Be, - efr: ABe, - eg: LBe, - Egrave: RBe, - egrave: MBe, - egs: DBe, - egsdot: NBe, - el: IBe, - Element: PBe, - elinters: $Be, - ell: BBe, - els: FBe, - elsdot: zBe, - Emacr: VBe, - emacr: UBe, - empty: qBe, - emptyset: YBe, - EmptySmallSquare: QBe, - emptyv: WBe, - EmptyVerySmallSquare: GBe, - emsp13: HBe, - emsp14: XBe, - emsp: ZBe, - ENG: jBe, - eng: KBe, - ensp: JBe, - Eogon: eFe, - eogon: tFe, - Eopf: rFe, - eopf: nFe, - epar: iFe, - eparsl: sFe, - eplus: aFe, - epsi: oFe, - Epsilon: lFe, - epsilon: cFe, - epsiv: uFe, - eqcirc: hFe, - eqcolon: fFe, - eqsim: dFe, - eqslantgtr: pFe, - eqslantless: gFe, - Equal: mFe, - equals: vFe, - EqualTilde: yFe, - equest: bFe, - Equilibrium: xFe, - equiv: wFe, - equivDD: OFe, - eqvparsl: kFe, - erarr: SFe, - erDot: TFe, - escr: CFe, - Escr: EFe, - esdot: _Fe, - Esim: AFe, - esim: LFe, - Eta: RFe, - eta: MFe, - ETH: DFe, - eth: NFe, - Euml: IFe, - euml: PFe, - euro: $Fe, - excl: BFe, - exist: FFe, - Exists: zFe, - expectation: VFe, - exponentiale: UFe, - ExponentialE: qFe, - fallingdotseq: YFe, - Fcy: QFe, - fcy: WFe, - female: GFe, - ffilig: HFe, - fflig: XFe, - ffllig: ZFe, - Ffr: jFe, - ffr: KFe, - filig: JFe, - FilledSmallSquare: eze, - FilledVerySmallSquare: tze, - fjlig: rze, - flat: nze, - fllig: ize, - fltns: sze, - fnof: aze, - Fopf: oze, - fopf: lze, - forall: cze, - ForAll: uze, - fork: hze, - forkv: fze, - Fouriertrf: dze, - fpartint: pze, - frac12: gze, - frac13: mze, - frac14: vze, - frac15: yze, - frac16: bze, - frac18: xze, - frac23: wze, - frac25: Oze, - frac34: kze, - frac35: Sze, - frac38: Tze, - frac45: Cze, - frac56: Eze, - frac58: _ze, - frac78: Aze, - frasl: Lze, - frown: Rze, - fscr: Mze, - Fscr: Dze, - gacute: Nze, - Gamma: Ize, - gamma: Pze, - Gammad: $ze, - gammad: Bze, - gap: Fze, - Gbreve: zze, - gbreve: Vze, - Gcedil: Uze, - Gcirc: qze, - gcirc: Yze, - Gcy: Qze, - gcy: Wze, - Gdot: Gze, - gdot: Hze, - ge: Xze, - gE: Zze, - gEl: jze, - gel: Kze, - geq: Jze, - geqq: eVe, - geqslant: tVe, - gescc: rVe, - ges: nVe, - gesdot: iVe, - gesdoto: sVe, - gesdotol: aVe, - gesl: oVe, - gesles: lVe, - Gfr: cVe, - gfr: uVe, - gg: hVe, - Gg: fVe, - ggg: dVe, - gimel: pVe, - GJcy: gVe, - gjcy: mVe, - gla: vVe, - gl: yVe, - glE: bVe, - glj: xVe, - gnap: wVe, - gnapprox: OVe, - gne: kVe, - gnE: SVe, - gneq: TVe, - gneqq: CVe, - gnsim: EVe, - Gopf: _Ve, - gopf: AVe, - grave: LVe, - GreaterEqual: RVe, - GreaterEqualLess: MVe, - GreaterFullEqual: DVe, - GreaterGreater: NVe, - GreaterLess: IVe, - GreaterSlantEqual: PVe, - GreaterTilde: $Ve, - Gscr: BVe, - gscr: FVe, - gsim: zVe, - gsime: VVe, - gsiml: UVe, - gtcc: qVe, - gtcir: YVe, - gt: QVe, - GT: WVe, - Gt: GVe, - gtdot: HVe, - gtlPar: XVe, - gtquest: ZVe, - gtrapprox: jVe, - gtrarr: KVe, - gtrdot: JVe, - gtreqless: eUe, - gtreqqless: tUe, - gtrless: rUe, - gtrsim: nUe, - gvertneqq: iUe, - gvnE: sUe, - Hacek: aUe, - hairsp: oUe, - half: lUe, - hamilt: cUe, - HARDcy: uUe, - hardcy: hUe, - harrcir: fUe, - harr: dUe, - hArr: pUe, - harrw: gUe, - Hat: mUe, - hbar: vUe, - Hcirc: yUe, - hcirc: bUe, - hearts: xUe, - heartsuit: wUe, - hellip: OUe, - hercon: kUe, - hfr: SUe, - Hfr: TUe, - HilbertSpace: CUe, - hksearow: EUe, - hkswarow: _Ue, - hoarr: AUe, - homtht: LUe, - hookleftarrow: RUe, - hookrightarrow: MUe, - hopf: DUe, - Hopf: NUe, - horbar: IUe, - HorizontalLine: PUe, - hscr: $Ue, - Hscr: BUe, - hslash: FUe, - Hstrok: zUe, - hstrok: VUe, - HumpDownHump: UUe, - HumpEqual: qUe, - hybull: YUe, - hyphen: QUe, - Iacute: WUe, - iacute: GUe, - ic: HUe, - Icirc: XUe, - icirc: ZUe, - Icy: jUe, - icy: KUe, - Idot: JUe, - IEcy: eqe, - iecy: tqe, - iexcl: rqe, - iff: nqe, - ifr: iqe, - Ifr: sqe, - Igrave: aqe, - igrave: oqe, - ii: lqe, - iiiint: cqe, - iiint: uqe, - iinfin: hqe, - iiota: fqe, - IJlig: dqe, - ijlig: pqe, - Imacr: gqe, - imacr: mqe, - image: vqe, - ImaginaryI: yqe, - imagline: bqe, - imagpart: xqe, - imath: wqe, - Im: Oqe, - imof: kqe, - imped: Sqe, - Implies: Tqe, - incare: Cqe, +var Lne = Ane(), Rne = { exports: {} }, Ir = {}, cD = { exports: {} }; +const qLe = "\xC1", YLe = "\xE1", QLe = "\u0102", WLe = "\u0103", GLe = "\u223E", HLe = "\u223F", XLe = "\u223E\u0333", ZLe = "\xC2", jLe = "\xE2", KLe = "\xB4", JLe = "\u0410", e9e = "\u0430", t9e = "\xC6", r9e = "\xE6", n9e = "\u2061", i9e = "\u{1D504}", s9e = "\u{1D51E}", a9e = "\xC0", o9e = "\xE0", l9e = "\u2135", c9e = "\u2135", u9e = "\u0391", h9e = "\u03B1", f9e = "\u0100", d9e = "\u0101", p9e = "\u2A3F", g9e = "&", m9e = "&", v9e = "\u2A55", y9e = "\u2A53", b9e = "\u2227", x9e = "\u2A5C", w9e = "\u2A58", O9e = "\u2A5A", k9e = "\u2220", S9e = "\u29A4", T9e = "\u2220", C9e = "\u29A8", E9e = "\u29A9", _9e = "\u29AA", A9e = "\u29AB", L9e = "\u29AC", R9e = "\u29AD", M9e = "\u29AE", D9e = "\u29AF", N9e = "\u2221", I9e = "\u221F", P9e = "\u22BE", $9e = "\u299D", B9e = "\u2222", F9e = "\xC5", z9e = "\u237C", V9e = "\u0104", U9e = "\u0105", q9e = "\u{1D538}", Y9e = "\u{1D552}", Q9e = "\u2A6F", W9e = "\u2248", G9e = "\u2A70", H9e = "\u224A", X9e = "\u224B", Z9e = "'", j9e = "\u2061", K9e = "\u2248", J9e = "\u224A", eRe = "\xC5", tRe = "\xE5", rRe = "\u{1D49C}", nRe = "\u{1D4B6}", iRe = "\u2254", sRe = "*", aRe = "\u2248", oRe = "\u224D", lRe = "\xC3", cRe = "\xE3", uRe = "\xC4", hRe = "\xE4", fRe = "\u2233", dRe = "\u2A11", pRe = "\u224C", gRe = "\u03F6", mRe = "\u2035", vRe = "\u223D", yRe = "\u22CD", bRe = "\u2216", xRe = "\u2AE7", wRe = "\u22BD", ORe = "\u2305", kRe = "\u2306", SRe = "\u2305", TRe = "\u23B5", CRe = "\u23B6", ERe = "\u224C", _Re = "\u0411", ARe = "\u0431", LRe = "\u201E", RRe = "\u2235", MRe = "\u2235", DRe = "\u2235", NRe = "\u29B0", IRe = "\u03F6", PRe = "\u212C", $Re = "\u212C", BRe = "\u0392", FRe = "\u03B2", zRe = "\u2136", VRe = "\u226C", URe = "\u{1D505}", qRe = "\u{1D51F}", YRe = "\u22C2", QRe = "\u25EF", WRe = "\u22C3", GRe = "\u2A00", HRe = "\u2A01", XRe = "\u2A02", ZRe = "\u2A06", jRe = "\u2605", KRe = "\u25BD", JRe = "\u25B3", eMe = "\u2A04", tMe = "\u22C1", rMe = "\u22C0", nMe = "\u290D", iMe = "\u29EB", sMe = "\u25AA", aMe = "\u25B4", oMe = "\u25BE", lMe = "\u25C2", cMe = "\u25B8", uMe = "\u2423", hMe = "\u2592", fMe = "\u2591", dMe = "\u2593", pMe = "\u2588", gMe = "=\u20E5", mMe = "\u2261\u20E5", vMe = "\u2AED", yMe = "\u2310", bMe = "\u{1D539}", xMe = "\u{1D553}", wMe = "\u22A5", OMe = "\u22A5", kMe = "\u22C8", SMe = "\u29C9", TMe = "\u2510", CMe = "\u2555", EMe = "\u2556", _Me = "\u2557", AMe = "\u250C", LMe = "\u2552", RMe = "\u2553", MMe = "\u2554", DMe = "\u2500", NMe = "\u2550", IMe = "\u252C", PMe = "\u2564", $Me = "\u2565", BMe = "\u2566", FMe = "\u2534", zMe = "\u2567", VMe = "\u2568", UMe = "\u2569", qMe = "\u229F", YMe = "\u229E", QMe = "\u22A0", WMe = "\u2518", GMe = "\u255B", HMe = "\u255C", XMe = "\u255D", ZMe = "\u2514", jMe = "\u2558", KMe = "\u2559", JMe = "\u255A", eDe = "\u2502", tDe = "\u2551", rDe = "\u253C", nDe = "\u256A", iDe = "\u256B", sDe = "\u256C", aDe = "\u2524", oDe = "\u2561", lDe = "\u2562", cDe = "\u2563", uDe = "\u251C", hDe = "\u255E", fDe = "\u255F", dDe = "\u2560", pDe = "\u2035", gDe = "\u02D8", mDe = "\u02D8", vDe = "\xA6", yDe = "\u{1D4B7}", bDe = "\u212C", xDe = "\u204F", wDe = "\u223D", ODe = "\u22CD", kDe = "\u29C5", SDe = "\\", TDe = "\u27C8", CDe = "\u2022", EDe = "\u2022", _De = "\u224E", ADe = "\u2AAE", LDe = "\u224F", RDe = "\u224E", MDe = "\u224F", DDe = "\u0106", NDe = "\u0107", IDe = "\u2A44", PDe = "\u2A49", $De = "\u2A4B", BDe = "\u2229", FDe = "\u22D2", zDe = "\u2A47", VDe = "\u2A40", UDe = "\u2145", qDe = "\u2229\uFE00", YDe = "\u2041", QDe = "\u02C7", WDe = "\u212D", GDe = "\u2A4D", HDe = "\u010C", XDe = "\u010D", ZDe = "\xC7", jDe = "\xE7", KDe = "\u0108", JDe = "\u0109", eNe = "\u2230", tNe = "\u2A4C", rNe = "\u2A50", nNe = "\u010A", iNe = "\u010B", sNe = "\xB8", aNe = "\xB8", oNe = "\u29B2", lNe = "\xA2", cNe = "\xB7", uNe = "\xB7", hNe = "\u{1D520}", fNe = "\u212D", dNe = "\u0427", pNe = "\u0447", gNe = "\u2713", mNe = "\u2713", vNe = "\u03A7", yNe = "\u03C7", bNe = "\u02C6", xNe = "\u2257", wNe = "\u21BA", ONe = "\u21BB", kNe = "\u229B", SNe = "\u229A", TNe = "\u229D", CNe = "\u2299", ENe = "\xAE", _Ne = "\u24C8", ANe = "\u2296", LNe = "\u2295", RNe = "\u2297", MNe = "\u25CB", DNe = "\u29C3", NNe = "\u2257", INe = "\u2A10", PNe = "\u2AEF", $Ne = "\u29C2", BNe = "\u2232", FNe = "\u201D", zNe = "\u2019", VNe = "\u2663", UNe = "\u2663", qNe = ":", YNe = "\u2237", QNe = "\u2A74", WNe = "\u2254", GNe = "\u2254", HNe = ",", XNe = "@", ZNe = "\u2201", jNe = "\u2218", KNe = "\u2201", JNe = "\u2102", eIe = "\u2245", tIe = "\u2A6D", rIe = "\u2261", nIe = "\u222E", iIe = "\u222F", sIe = "\u222E", aIe = "\u{1D554}", oIe = "\u2102", lIe = "\u2210", cIe = "\u2210", uIe = "\xA9", hIe = "\xA9", fIe = "\u2117", dIe = "\u2233", pIe = "\u21B5", gIe = "\u2717", mIe = "\u2A2F", vIe = "\u{1D49E}", yIe = "\u{1D4B8}", bIe = "\u2ACF", xIe = "\u2AD1", wIe = "\u2AD0", OIe = "\u2AD2", kIe = "\u22EF", SIe = "\u2938", TIe = "\u2935", CIe = "\u22DE", EIe = "\u22DF", _Ie = "\u21B6", AIe = "\u293D", LIe = "\u2A48", RIe = "\u2A46", MIe = "\u224D", DIe = "\u222A", NIe = "\u22D3", IIe = "\u2A4A", PIe = "\u228D", $Ie = "\u2A45", BIe = "\u222A\uFE00", FIe = "\u21B7", zIe = "\u293C", VIe = "\u22DE", UIe = "\u22DF", qIe = "\u22CE", YIe = "\u22CF", QIe = "\xA4", WIe = "\u21B6", GIe = "\u21B7", HIe = "\u22CE", XIe = "\u22CF", ZIe = "\u2232", jIe = "\u2231", KIe = "\u232D", JIe = "\u2020", ePe = "\u2021", tPe = "\u2138", rPe = "\u2193", nPe = "\u21A1", iPe = "\u21D3", sPe = "\u2010", aPe = "\u2AE4", oPe = "\u22A3", lPe = "\u290F", cPe = "\u02DD", uPe = "\u010E", hPe = "\u010F", fPe = "\u0414", dPe = "\u0434", pPe = "\u2021", gPe = "\u21CA", mPe = "\u2145", vPe = "\u2146", yPe = "\u2911", bPe = "\u2A77", xPe = "\xB0", wPe = "\u2207", OPe = "\u0394", kPe = "\u03B4", SPe = "\u29B1", TPe = "\u297F", CPe = "\u{1D507}", EPe = "\u{1D521}", _Pe = "\u2965", APe = "\u21C3", LPe = "\u21C2", RPe = "\xB4", MPe = "\u02D9", DPe = "\u02DD", NPe = "`", IPe = "\u02DC", PPe = "\u22C4", $Pe = "\u22C4", BPe = "\u22C4", FPe = "\u2666", zPe = "\u2666", VPe = "\xA8", UPe = "\u2146", qPe = "\u03DD", YPe = "\u22F2", QPe = "\xF7", WPe = "\xF7", GPe = "\u22C7", HPe = "\u22C7", XPe = "\u0402", ZPe = "\u0452", jPe = "\u231E", KPe = "\u230D", JPe = "$", e$e = "\u{1D53B}", t$e = "\u{1D555}", r$e = "\xA8", n$e = "\u02D9", i$e = "\u20DC", s$e = "\u2250", a$e = "\u2251", o$e = "\u2250", l$e = "\u2238", c$e = "\u2214", u$e = "\u22A1", h$e = "\u2306", f$e = "\u222F", d$e = "\xA8", p$e = "\u21D3", g$e = "\u21D0", m$e = "\u21D4", v$e = "\u2AE4", y$e = "\u27F8", b$e = "\u27FA", x$e = "\u27F9", w$e = "\u21D2", O$e = "\u22A8", k$e = "\u21D1", S$e = "\u21D5", T$e = "\u2225", C$e = "\u2913", E$e = "\u2193", _$e = "\u2193", A$e = "\u21D3", L$e = "\u21F5", R$e = "\u0311", M$e = "\u21CA", D$e = "\u21C3", N$e = "\u21C2", I$e = "\u2950", P$e = "\u295E", $$e = "\u2956", B$e = "\u21BD", F$e = "\u295F", z$e = "\u2957", V$e = "\u21C1", U$e = "\u21A7", q$e = "\u22A4", Y$e = "\u2910", Q$e = "\u231F", W$e = "\u230C", G$e = "\u{1D49F}", H$e = "\u{1D4B9}", X$e = "\u0405", Z$e = "\u0455", j$e = "\u29F6", K$e = "\u0110", J$e = "\u0111", eBe = "\u22F1", tBe = "\u25BF", rBe = "\u25BE", nBe = "\u21F5", iBe = "\u296F", sBe = "\u29A6", aBe = "\u040F", oBe = "\u045F", lBe = "\u27FF", cBe = "\xC9", uBe = "\xE9", hBe = "\u2A6E", fBe = "\u011A", dBe = "\u011B", pBe = "\xCA", gBe = "\xEA", mBe = "\u2256", vBe = "\u2255", yBe = "\u042D", bBe = "\u044D", xBe = "\u2A77", wBe = "\u0116", OBe = "\u0117", kBe = "\u2251", SBe = "\u2147", TBe = "\u2252", CBe = "\u{1D508}", EBe = "\u{1D522}", _Be = "\u2A9A", ABe = "\xC8", LBe = "\xE8", RBe = "\u2A96", MBe = "\u2A98", DBe = "\u2A99", NBe = "\u2208", IBe = "\u23E7", PBe = "\u2113", $Be = "\u2A95", BBe = "\u2A97", FBe = "\u0112", zBe = "\u0113", VBe = "\u2205", UBe = "\u2205", qBe = "\u25FB", YBe = "\u2205", QBe = "\u25AB", WBe = "\u2004", GBe = "\u2005", HBe = "\u2003", XBe = "\u014A", ZBe = "\u014B", jBe = "\u2002", KBe = "\u0118", JBe = "\u0119", eFe = "\u{1D53C}", tFe = "\u{1D556}", rFe = "\u22D5", nFe = "\u29E3", iFe = "\u2A71", sFe = "\u03B5", aFe = "\u0395", oFe = "\u03B5", lFe = "\u03F5", cFe = "\u2256", uFe = "\u2255", hFe = "\u2242", fFe = "\u2A96", dFe = "\u2A95", pFe = "\u2A75", gFe = "=", mFe = "\u2242", vFe = "\u225F", yFe = "\u21CC", bFe = "\u2261", xFe = "\u2A78", wFe = "\u29E5", OFe = "\u2971", kFe = "\u2253", SFe = "\u212F", TFe = "\u2130", CFe = "\u2250", EFe = "\u2A73", _Fe = "\u2242", AFe = "\u0397", LFe = "\u03B7", RFe = "\xD0", MFe = "\xF0", DFe = "\xCB", NFe = "\xEB", IFe = "\u20AC", PFe = "!", $Fe = "\u2203", BFe = "\u2203", FFe = "\u2130", zFe = "\u2147", VFe = "\u2147", UFe = "\u2252", qFe = "\u0424", YFe = "\u0444", QFe = "\u2640", WFe = "\uFB03", GFe = "\uFB00", HFe = "\uFB04", XFe = "\u{1D509}", ZFe = "\u{1D523}", jFe = "\uFB01", KFe = "\u25FC", JFe = "\u25AA", eze = "fj", tze = "\u266D", rze = "\uFB02", nze = "\u25B1", ize = "\u0192", sze = "\u{1D53D}", aze = "\u{1D557}", oze = "\u2200", lze = "\u2200", cze = "\u22D4", uze = "\u2AD9", hze = "\u2131", fze = "\u2A0D", dze = "\xBD", pze = "\u2153", gze = "\xBC", mze = "\u2155", vze = "\u2159", yze = "\u215B", bze = "\u2154", xze = "\u2156", wze = "\xBE", Oze = "\u2157", kze = "\u215C", Sze = "\u2158", Tze = "\u215A", Cze = "\u215D", Eze = "\u215E", _ze = "\u2044", Aze = "\u2322", Lze = "\u{1D4BB}", Rze = "\u2131", Mze = "\u01F5", Dze = "\u0393", Nze = "\u03B3", Ize = "\u03DC", Pze = "\u03DD", $ze = "\u2A86", Bze = "\u011E", Fze = "\u011F", zze = "\u0122", Vze = "\u011C", Uze = "\u011D", qze = "\u0413", Yze = "\u0433", Qze = "\u0120", Wze = "\u0121", Gze = "\u2265", Hze = "\u2267", Xze = "\u2A8C", Zze = "\u22DB", jze = "\u2265", Kze = "\u2267", Jze = "\u2A7E", eVe = "\u2AA9", tVe = "\u2A7E", rVe = "\u2A80", nVe = "\u2A82", iVe = "\u2A84", sVe = "\u22DB\uFE00", aVe = "\u2A94", oVe = "\u{1D50A}", lVe = "\u{1D524}", cVe = "\u226B", uVe = "\u22D9", hVe = "\u22D9", fVe = "\u2137", dVe = "\u0403", pVe = "\u0453", gVe = "\u2AA5", mVe = "\u2277", vVe = "\u2A92", yVe = "\u2AA4", bVe = "\u2A8A", xVe = "\u2A8A", wVe = "\u2A88", OVe = "\u2269", kVe = "\u2A88", SVe = "\u2269", TVe = "\u22E7", CVe = "\u{1D53E}", EVe = "\u{1D558}", _Ve = "`", AVe = "\u2265", LVe = "\u22DB", RVe = "\u2267", MVe = "\u2AA2", DVe = "\u2277", NVe = "\u2A7E", IVe = "\u2273", PVe = "\u{1D4A2}", $Ve = "\u210A", BVe = "\u2273", FVe = "\u2A8E", zVe = "\u2A90", VVe = "\u2AA7", UVe = "\u2A7A", qVe = ">", YVe = ">", QVe = "\u226B", WVe = "\u22D7", GVe = "\u2995", HVe = "\u2A7C", XVe = "\u2A86", ZVe = "\u2978", jVe = "\u22D7", KVe = "\u22DB", JVe = "\u2A8C", eUe = "\u2277", tUe = "\u2273", rUe = "\u2269\uFE00", nUe = "\u2269\uFE00", iUe = "\u02C7", sUe = "\u200A", aUe = "\xBD", oUe = "\u210B", lUe = "\u042A", cUe = "\u044A", uUe = "\u2948", hUe = "\u2194", fUe = "\u21D4", dUe = "\u21AD", pUe = "^", gUe = "\u210F", mUe = "\u0124", vUe = "\u0125", yUe = "\u2665", bUe = "\u2665", xUe = "\u2026", wUe = "\u22B9", OUe = "\u{1D525}", kUe = "\u210C", SUe = "\u210B", TUe = "\u2925", CUe = "\u2926", EUe = "\u21FF", _Ue = "\u223B", AUe = "\u21A9", LUe = "\u21AA", RUe = "\u{1D559}", MUe = "\u210D", DUe = "\u2015", NUe = "\u2500", IUe = "\u{1D4BD}", PUe = "\u210B", $Ue = "\u210F", BUe = "\u0126", FUe = "\u0127", zUe = "\u224E", VUe = "\u224F", UUe = "\u2043", qUe = "\u2010", YUe = "\xCD", QUe = "\xED", WUe = "\u2063", GUe = "\xCE", HUe = "\xEE", XUe = "\u0418", ZUe = "\u0438", jUe = "\u0130", KUe = "\u0415", JUe = "\u0435", eqe = "\xA1", tqe = "\u21D4", rqe = "\u{1D526}", nqe = "\u2111", iqe = "\xCC", sqe = "\xEC", aqe = "\u2148", oqe = "\u2A0C", lqe = "\u222D", cqe = "\u29DC", uqe = "\u2129", hqe = "\u0132", fqe = "\u0133", dqe = "\u012A", pqe = "\u012B", gqe = "\u2111", mqe = "\u2148", vqe = "\u2110", yqe = "\u2111", bqe = "\u0131", xqe = "\u2111", wqe = "\u22B7", Oqe = "\u01B5", kqe = "\u21D2", Sqe = "\u2105", Tqe = "\u221E", Cqe = "\u29DD", Eqe = "\u0131", _qe = "\u22BA", Aqe = "\u222B", Lqe = "\u222C", Rqe = "\u2124", Mqe = "\u222B", Dqe = "\u22BA", Nqe = "\u22C2", Iqe = "\u2A17", Pqe = "\u2A3C", $qe = "\u2063", Bqe = "\u2062", Fqe = "\u0401", zqe = "\u0451", Vqe = "\u012E", Uqe = "\u012F", qqe = "\u{1D540}", Yqe = "\u{1D55A}", Qqe = "\u0399", Wqe = "\u03B9", Gqe = "\u2A3C", Hqe = "\xBF", Xqe = "\u{1D4BE}", Zqe = "\u2110", jqe = "\u2208", Kqe = "\u22F5", Jqe = "\u22F9", eYe = "\u22F4", tYe = "\u22F3", rYe = "\u2208", nYe = "\u2062", iYe = "\u0128", sYe = "\u0129", aYe = "\u0406", oYe = "\u0456", lYe = "\xCF", cYe = "\xEF", uYe = "\u0134", hYe = "\u0135", fYe = "\u0419", dYe = "\u0439", pYe = "\u{1D50D}", gYe = "\u{1D527}", mYe = "\u0237", vYe = "\u{1D541}", yYe = "\u{1D55B}", bYe = "\u{1D4A5}", xYe = "\u{1D4BF}", wYe = "\u0408", OYe = "\u0458", kYe = "\u0404", SYe = "\u0454", TYe = "\u039A", CYe = "\u03BA", EYe = "\u03F0", _Ye = "\u0136", AYe = "\u0137", LYe = "\u041A", RYe = "\u043A", MYe = "\u{1D50E}", DYe = "\u{1D528}", NYe = "\u0138", IYe = "\u0425", PYe = "\u0445", $Ye = "\u040C", BYe = "\u045C", FYe = "\u{1D542}", zYe = "\u{1D55C}", VYe = "\u{1D4A6}", UYe = "\u{1D4C0}", qYe = "\u21DA", YYe = "\u0139", QYe = "\u013A", WYe = "\u29B4", GYe = "\u2112", HYe = "\u039B", XYe = "\u03BB", ZYe = "\u27E8", jYe = "\u27EA", KYe = "\u2991", JYe = "\u27E8", eQe = "\u2A85", tQe = "\u2112", rQe = "\xAB", nQe = "\u21E4", iQe = "\u291F", sQe = "\u2190", aQe = "\u219E", oQe = "\u21D0", lQe = "\u291D", cQe = "\u21A9", uQe = "\u21AB", hQe = "\u2939", fQe = "\u2973", dQe = "\u21A2", pQe = "\u2919", gQe = "\u291B", mQe = "\u2AAB", vQe = "\u2AAD", yQe = "\u2AAD\uFE00", bQe = "\u290C", xQe = "\u290E", wQe = "\u2772", OQe = "{", kQe = "[", SQe = "\u298B", TQe = "\u298F", CQe = "\u298D", EQe = "\u013D", _Qe = "\u013E", AQe = "\u013B", LQe = "\u013C", RQe = "\u2308", MQe = "{", DQe = "\u041B", NQe = "\u043B", IQe = "\u2936", PQe = "\u201C", $Qe = "\u201E", BQe = "\u2967", FQe = "\u294B", zQe = "\u21B2", VQe = "\u2264", UQe = "\u2266", qQe = "\u27E8", YQe = "\u21E4", QQe = "\u2190", WQe = "\u2190", GQe = "\u21D0", HQe = "\u21C6", XQe = "\u21A2", ZQe = "\u2308", jQe = "\u27E6", KQe = "\u2961", JQe = "\u2959", eWe = "\u21C3", tWe = "\u230A", rWe = "\u21BD", nWe = "\u21BC", iWe = "\u21C7", sWe = "\u2194", aWe = "\u2194", oWe = "\u21D4", lWe = "\u21C6", cWe = "\u21CB", uWe = "\u21AD", hWe = "\u294E", fWe = "\u21A4", dWe = "\u22A3", pWe = "\u295A", gWe = "\u22CB", mWe = "\u29CF", vWe = "\u22B2", yWe = "\u22B4", bWe = "\u2951", xWe = "\u2960", wWe = "\u2958", OWe = "\u21BF", kWe = "\u2952", SWe = "\u21BC", TWe = "\u2A8B", CWe = "\u22DA", EWe = "\u2264", _We = "\u2266", AWe = "\u2A7D", LWe = "\u2AA8", RWe = "\u2A7D", MWe = "\u2A7F", DWe = "\u2A81", NWe = "\u2A83", IWe = "\u22DA\uFE00", PWe = "\u2A93", $We = "\u2A85", BWe = "\u22D6", FWe = "\u22DA", zWe = "\u2A8B", VWe = "\u22DA", UWe = "\u2266", qWe = "\u2276", YWe = "\u2276", QWe = "\u2AA1", WWe = "\u2272", GWe = "\u2A7D", HWe = "\u2272", XWe = "\u297C", ZWe = "\u230A", jWe = "\u{1D50F}", KWe = "\u{1D529}", JWe = "\u2276", eGe = "\u2A91", tGe = "\u2962", rGe = "\u21BD", nGe = "\u21BC", iGe = "\u296A", sGe = "\u2584", aGe = "\u0409", oGe = "\u0459", lGe = "\u21C7", cGe = "\u226A", uGe = "\u22D8", hGe = "\u231E", fGe = "\u21DA", dGe = "\u296B", pGe = "\u25FA", gGe = "\u013F", mGe = "\u0140", vGe = "\u23B0", yGe = "\u23B0", bGe = "\u2A89", xGe = "\u2A89", wGe = "\u2A87", OGe = "\u2268", kGe = "\u2A87", SGe = "\u2268", TGe = "\u22E6", CGe = "\u27EC", EGe = "\u21FD", _Ge = "\u27E6", AGe = "\u27F5", LGe = "\u27F5", RGe = "\u27F8", MGe = "\u27F7", DGe = "\u27F7", NGe = "\u27FA", IGe = "\u27FC", PGe = "\u27F6", $Ge = "\u27F6", BGe = "\u27F9", FGe = "\u21AB", zGe = "\u21AC", VGe = "\u2985", UGe = "\u{1D543}", qGe = "\u{1D55D}", YGe = "\u2A2D", QGe = "\u2A34", WGe = "\u2217", GGe = "_", HGe = "\u2199", XGe = "\u2198", ZGe = "\u25CA", jGe = "\u25CA", KGe = "\u29EB", JGe = "(", eHe = "\u2993", tHe = "\u21C6", rHe = "\u231F", nHe = "\u21CB", iHe = "\u296D", sHe = "\u200E", aHe = "\u22BF", oHe = "\u2039", lHe = "\u{1D4C1}", cHe = "\u2112", uHe = "\u21B0", hHe = "\u21B0", fHe = "\u2272", dHe = "\u2A8D", pHe = "\u2A8F", gHe = "[", mHe = "\u2018", vHe = "\u201A", yHe = "\u0141", bHe = "\u0142", xHe = "\u2AA6", wHe = "\u2A79", OHe = "<", kHe = "<", SHe = "\u226A", THe = "\u22D6", CHe = "\u22CB", EHe = "\u22C9", _He = "\u2976", AHe = "\u2A7B", LHe = "\u25C3", RHe = "\u22B4", MHe = "\u25C2", DHe = "\u2996", NHe = "\u294A", IHe = "\u2966", PHe = "\u2268\uFE00", $He = "\u2268\uFE00", BHe = "\xAF", FHe = "\u2642", zHe = "\u2720", VHe = "\u2720", UHe = "\u21A6", qHe = "\u21A6", YHe = "\u21A7", QHe = "\u21A4", WHe = "\u21A5", GHe = "\u25AE", HHe = "\u2A29", XHe = "\u041C", ZHe = "\u043C", jHe = "\u2014", KHe = "\u223A", JHe = "\u2221", eXe = "\u205F", tXe = "\u2133", rXe = "\u{1D510}", nXe = "\u{1D52A}", iXe = "\u2127", sXe = "\xB5", aXe = "*", oXe = "\u2AF0", lXe = "\u2223", cXe = "\xB7", uXe = "\u229F", hXe = "\u2212", fXe = "\u2238", dXe = "\u2A2A", pXe = "\u2213", gXe = "\u2ADB", mXe = "\u2026", vXe = "\u2213", yXe = "\u22A7", bXe = "\u{1D544}", xXe = "\u{1D55E}", wXe = "\u2213", OXe = "\u{1D4C2}", kXe = "\u2133", SXe = "\u223E", TXe = "\u039C", CXe = "\u03BC", EXe = "\u22B8", _Xe = "\u22B8", AXe = "\u2207", LXe = "\u0143", RXe = "\u0144", MXe = "\u2220\u20D2", DXe = "\u2249", NXe = "\u2A70\u0338", IXe = "\u224B\u0338", PXe = "\u0149", $Xe = "\u2249", BXe = "\u266E", FXe = "\u2115", zXe = "\u266E", VXe = "\xA0", UXe = "\u224E\u0338", qXe = "\u224F\u0338", YXe = "\u2A43", QXe = "\u0147", WXe = "\u0148", GXe = "\u0145", HXe = "\u0146", XXe = "\u2247", ZXe = "\u2A6D\u0338", jXe = "\u2A42", KXe = "\u041D", JXe = "\u043D", eZe = "\u2013", tZe = "\u2924", rZe = "\u2197", nZe = "\u21D7", iZe = "\u2197", sZe = "\u2260", aZe = "\u2250\u0338", oZe = "\u200B", lZe = "\u200B", cZe = "\u200B", uZe = "\u200B", hZe = "\u2262", fZe = "\u2928", dZe = "\u2242\u0338", pZe = "\u226B", gZe = "\u226A", mZe = ` +`, vZe = "\u2204", yZe = "\u2204", bZe = "\u{1D511}", xZe = "\u{1D52B}", wZe = "\u2267\u0338", OZe = "\u2271", kZe = "\u2271", SZe = "\u2267\u0338", TZe = "\u2A7E\u0338", CZe = "\u2A7E\u0338", EZe = "\u22D9\u0338", _Ze = "\u2275", AZe = "\u226B\u20D2", LZe = "\u226F", RZe = "\u226F", MZe = "\u226B\u0338", DZe = "\u21AE", NZe = "\u21CE", IZe = "\u2AF2", PZe = "\u220B", $Ze = "\u22FC", BZe = "\u22FA", FZe = "\u220B", zZe = "\u040A", VZe = "\u045A", UZe = "\u219A", qZe = "\u21CD", YZe = "\u2025", QZe = "\u2266\u0338", WZe = "\u2270", GZe = "\u219A", HZe = "\u21CD", XZe = "\u21AE", ZZe = "\u21CE", jZe = "\u2270", KZe = "\u2266\u0338", JZe = "\u2A7D\u0338", eje = "\u2A7D\u0338", tje = "\u226E", rje = "\u22D8\u0338", nje = "\u2274", ije = "\u226A\u20D2", sje = "\u226E", aje = "\u22EA", oje = "\u22EC", lje = "\u226A\u0338", cje = "\u2224", uje = "\u2060", hje = "\xA0", fje = "\u{1D55F}", dje = "\u2115", pje = "\u2AEC", gje = "\xAC", mje = "\u2262", vje = "\u226D", yje = "\u2226", bje = "\u2209", xje = "\u2260", wje = "\u2242\u0338", Oje = "\u2204", kje = "\u226F", Sje = "\u2271", Tje = "\u2267\u0338", Cje = "\u226B\u0338", Eje = "\u2279", _je = "\u2A7E\u0338", Aje = "\u2275", Lje = "\u224E\u0338", Rje = "\u224F\u0338", Mje = "\u2209", Dje = "\u22F5\u0338", Nje = "\u22F9\u0338", Ije = "\u2209", Pje = "\u22F7", $je = "\u22F6", Bje = "\u29CF\u0338", Fje = "\u22EA", zje = "\u22EC", Vje = "\u226E", Uje = "\u2270", qje = "\u2278", Yje = "\u226A\u0338", Qje = "\u2A7D\u0338", Wje = "\u2274", Gje = "\u2AA2\u0338", Hje = "\u2AA1\u0338", Xje = "\u220C", Zje = "\u220C", jje = "\u22FE", Kje = "\u22FD", Jje = "\u2280", eKe = "\u2AAF\u0338", tKe = "\u22E0", rKe = "\u220C", nKe = "\u29D0\u0338", iKe = "\u22EB", sKe = "\u22ED", aKe = "\u228F\u0338", oKe = "\u22E2", lKe = "\u2290\u0338", cKe = "\u22E3", uKe = "\u2282\u20D2", hKe = "\u2288", fKe = "\u2281", dKe = "\u2AB0\u0338", pKe = "\u22E1", gKe = "\u227F\u0338", mKe = "\u2283\u20D2", vKe = "\u2289", yKe = "\u2241", bKe = "\u2244", xKe = "\u2247", wKe = "\u2249", OKe = "\u2224", kKe = "\u2226", SKe = "\u2226", TKe = "\u2AFD\u20E5", CKe = "\u2202\u0338", EKe = "\u2A14", _Ke = "\u2280", AKe = "\u22E0", LKe = "\u2280", RKe = "\u2AAF\u0338", MKe = "\u2AAF\u0338", DKe = "\u2933\u0338", NKe = "\u219B", IKe = "\u21CF", PKe = "\u219D\u0338", $Ke = "\u219B", BKe = "\u21CF", FKe = "\u22EB", zKe = "\u22ED", VKe = "\u2281", UKe = "\u22E1", qKe = "\u2AB0\u0338", YKe = "\u{1D4A9}", QKe = "\u{1D4C3}", WKe = "\u2224", GKe = "\u2226", HKe = "\u2241", XKe = "\u2244", ZKe = "\u2244", jKe = "\u2224", KKe = "\u2226", JKe = "\u22E2", eJe = "\u22E3", tJe = "\u2284", rJe = "\u2AC5\u0338", nJe = "\u2288", iJe = "\u2282\u20D2", sJe = "\u2288", aJe = "\u2AC5\u0338", oJe = "\u2281", lJe = "\u2AB0\u0338", cJe = "\u2285", uJe = "\u2AC6\u0338", hJe = "\u2289", fJe = "\u2283\u20D2", dJe = "\u2289", pJe = "\u2AC6\u0338", gJe = "\u2279", mJe = "\xD1", vJe = "\xF1", yJe = "\u2278", bJe = "\u22EA", xJe = "\u22EC", wJe = "\u22EB", OJe = "\u22ED", kJe = "\u039D", SJe = "\u03BD", TJe = "#", CJe = "\u2116", EJe = "\u2007", _Je = "\u224D\u20D2", AJe = "\u22AC", LJe = "\u22AD", RJe = "\u22AE", MJe = "\u22AF", DJe = "\u2265\u20D2", NJe = ">\u20D2", IJe = "\u2904", PJe = "\u29DE", $Je = "\u2902", BJe = "\u2264\u20D2", FJe = "<\u20D2", zJe = "\u22B4\u20D2", VJe = "\u2903", UJe = "\u22B5\u20D2", qJe = "\u223C\u20D2", YJe = "\u2923", QJe = "\u2196", WJe = "\u21D6", GJe = "\u2196", HJe = "\u2927", XJe = "\xD3", ZJe = "\xF3", jJe = "\u229B", KJe = "\xD4", JJe = "\xF4", eet = "\u229A", tet = "\u041E", ret = "\u043E", net = "\u229D", iet = "\u0150", set = "\u0151", aet = "\u2A38", oet = "\u2299", cet = "\u29BC", uet = "\u0152", het = "\u0153", fet = "\u29BF", det = "\u{1D512}", pet = "\u{1D52C}", get = "\u02DB", met = "\xD2", vet = "\xF2", yet = "\u29C1", bet = "\u29B5", xet = "\u03A9", wet = "\u222E", Oet = "\u21BA", ket = "\u29BE", Tet = "\u29BB", Cet = "\u203E", Eet = "\u29C0", _et = "\u014C", Aet = "\u014D", Let = "\u03A9", Ret = "\u03C9", Met = "\u039F", Det = "\u03BF", Net = "\u29B6", Iet = "\u2296", Pet = "\u{1D546}", $et = "\u{1D560}", Bet = "\u29B7", Fet = "\u201C", zet = "\u2018", Vet = "\u29B9", Uet = "\u2295", qet = "\u21BB", Yet = "\u2A54", Qet = "\u2228", Wet = "\u2A5D", Get = "\u2134", Het = "\u2134", Xet = "\xAA", Zet = "\xBA", jet = "\u22B6", Ket = "\u2A56", Jet = "\u2A57", ett = "\u2A5B", ttt = "\u24C8", rtt = "\u{1D4AA}", ntt = "\u2134", itt = "\xD8", stt = "\xF8", att = "\u2298", ott = "\xD5", ltt = "\xF5", ctt = "\u2A36", utt = "\u2A37", htt = "\u2297", ftt = "\xD6", dtt = "\xF6", ptt = "\u233D", gtt = "\u203E", mtt = "\u23DE", vtt = "\u23B4", ytt = "\u23DC", btt = "\xB6", xtt = "\u2225", wtt = "\u2225", Ott = "\u2AF3", ktt = "\u2AFD", Stt = "\u2202", Ttt = "\u2202", Ctt = "\u041F", Ett = "\u043F", _tt = "%", Att = ".", Ltt = "\u2030", Rtt = "\u22A5", Mtt = "\u2031", Dtt = "\u{1D513}", Ntt = "\u{1D52D}", Itt = "\u03A6", Ptt = "\u03C6", $tt = "\u03D5", Btt = "\u2133", Ftt = "\u260E", ztt = "\u03A0", Vtt = "\u03C0", Utt = "\u22D4", qtt = "\u03D6", Ytt = "\u210F", Qtt = "\u210E", Wtt = "\u210F", Gtt = "\u2A23", Htt = "\u229E", Xtt = "\u2A22", Ztt = "+", jtt = "\u2214", Ktt = "\u2A25", Jtt = "\u2A72", ert = "\xB1", trt = "\xB1", rrt = "\u2A26", nrt = "\u2A27", irt = "\xB1", srt = "\u210C", art = "\u2A15", ort = "\u{1D561}", lrt = "\u2119", crt = "\xA3", urt = "\u2AB7", hrt = "\u2ABB", frt = "\u227A", drt = "\u227C", prt = "\u2AB7", grt = "\u227A", mrt = "\u227C", vrt = "\u227A", yrt = "\u2AAF", brt = "\u227C", xrt = "\u227E", wrt = "\u2AAF", Ort = "\u2AB9", krt = "\u2AB5", Srt = "\u22E8", Trt = "\u2AAF", Crt = "\u2AB3", Ert = "\u227E", _rt = "\u2032", Art = "\u2033", Lrt = "\u2119", Rrt = "\u2AB9", Mrt = "\u2AB5", Drt = "\u22E8", Nrt = "\u220F", Irt = "\u220F", Prt = "\u232E", $rt = "\u2312", Brt = "\u2313", Frt = "\u221D", zrt = "\u221D", Vrt = "\u2237", Urt = "\u221D", qrt = "\u227E", Yrt = "\u22B0", Qrt = "\u{1D4AB}", Wrt = "\u{1D4C5}", Grt = "\u03A8", Hrt = "\u03C8", Xrt = "\u2008", Zrt = "\u{1D514}", jrt = "\u{1D52E}", Krt = "\u2A0C", Jrt = "\u{1D562}", ent = "\u211A", tnt = "\u2057", rnt = "\u{1D4AC}", nnt = "\u{1D4C6}", int = "\u210D", snt = "\u2A16", ant = "?", ont = "\u225F", lnt = '"', cnt = '"', unt = "\u21DB", hnt = "\u223D\u0331", fnt = "\u0154", dnt = "\u0155", pnt = "\u221A", gnt = "\u29B3", mnt = "\u27E9", vnt = "\u27EB", ynt = "\u2992", bnt = "\u29A5", xnt = "\u27E9", wnt = "\xBB", Ont = "\u2975", knt = "\u21E5", Snt = "\u2920", Tnt = "\u2933", Cnt = "\u2192", Ent = "\u21A0", _nt = "\u21D2", Ant = "\u291E", Lnt = "\u21AA", Rnt = "\u21AC", Mnt = "\u2945", Dnt = "\u2974", Nnt = "\u2916", Int = "\u21A3", Pnt = "\u219D", $nt = "\u291A", Bnt = "\u291C", Fnt = "\u2236", znt = "\u211A", Vnt = "\u290D", Unt = "\u290F", qnt = "\u2910", Ynt = "\u2773", Qnt = "}", Wnt = "]", Gnt = "\u298C", Hnt = "\u298E", Xnt = "\u2990", Znt = "\u0158", jnt = "\u0159", Knt = "\u0156", Jnt = "\u0157", eit = "\u2309", tit = "}", rit = "\u0420", nit = "\u0440", iit = "\u2937", sit = "\u2969", ait = "\u201D", oit = "\u201D", lit = "\u21B3", cit = "\u211C", uit = "\u211B", hit = "\u211C", fit = "\u211D", dit = "\u211C", pit = "\u25AD", git = "\xAE", mit = "\xAE", vit = "\u220B", yit = "\u21CB", bit = "\u296F", xit = "\u297D", wit = "\u230B", Oit = "\u{1D52F}", kit = "\u211C", Sit = "\u2964", Tit = "\u21C1", Cit = "\u21C0", Eit = "\u296C", _it = "\u03A1", Ait = "\u03C1", Lit = "\u03F1", Rit = "\u27E9", Mit = "\u21E5", Dit = "\u2192", Nit = "\u2192", Iit = "\u21D2", Pit = "\u21C4", $it = "\u21A3", Bit = "\u2309", Fit = "\u27E7", zit = "\u295D", Vit = "\u2955", Uit = "\u21C2", qit = "\u230B", Yit = "\u21C1", Qit = "\u21C0", Wit = "\u21C4", Git = "\u21CC", Hit = "\u21C9", Xit = "\u219D", Zit = "\u21A6", jit = "\u22A2", Kit = "\u295B", Jit = "\u22CC", est = "\u29D0", tst = "\u22B3", rst = "\u22B5", nst = "\u294F", ist = "\u295C", sst = "\u2954", ast = "\u21BE", ost = "\u2953", lst = "\u21C0", cst = "\u02DA", ust = "\u2253", hst = "\u21C4", fst = "\u21CC", dst = "\u200F", pst = "\u23B1", gst = "\u23B1", mst = "\u2AEE", vst = "\u27ED", yst = "\u21FE", bst = "\u27E7", xst = "\u2986", wst = "\u{1D563}", Ost = "\u211D", kst = "\u2A2E", Sst = "\u2A35", Tst = "\u2970", Cst = ")", Est = "\u2994", _st = "\u2A12", Ast = "\u21C9", Lst = "\u21DB", Rst = "\u203A", Mst = "\u{1D4C7}", Dst = "\u211B", Nst = "\u21B1", Ist = "\u21B1", Pst = "]", $st = "\u2019", Bst = "\u2019", Fst = "\u22CC", zst = "\u22CA", Vst = "\u25B9", Ust = "\u22B5", qst = "\u25B8", Yst = "\u29CE", Qst = "\u29F4", Wst = "\u2968", Gst = "\u211E", Hst = "\u015A", Xst = "\u015B", Zst = "\u201A", jst = "\u2AB8", Kst = "\u0160", Jst = "\u0161", eat = "\u2ABC", tat = "\u227B", rat = "\u227D", nat = "\u2AB0", iat = "\u2AB4", sat = "\u015E", aat = "\u015F", oat = "\u015C", lat = "\u015D", cat = "\u2ABA", uat = "\u2AB6", hat = "\u22E9", fat = "\u2A13", dat = "\u227F", pat = "\u0421", gat = "\u0441", mat = "\u22A1", vat = "\u22C5", yat = "\u2A66", bat = "\u2925", xat = "\u2198", wat = "\u21D8", Oat = "\u2198", kat = "\xA7", Sat = ";", Tat = "\u2929", Cat = "\u2216", Eat = "\u2216", _at = "\u2736", Aat = "\u{1D516}", Lat = "\u{1D530}", Rat = "\u2322", Mat = "\u266F", Dat = "\u0429", Nat = "\u0449", Iat = "\u0428", Pat = "\u0448", $at = "\u2193", Bat = "\u2190", Fat = "\u2223", zat = "\u2225", Vat = "\u2192", Uat = "\u2191", qat = "\xAD", Yat = "\u03A3", Qat = "\u03C3", Wat = "\u03C2", Gat = "\u03C2", Hat = "\u223C", Xat = "\u2A6A", Zat = "\u2243", jat = "\u2243", Kat = "\u2A9E", Jat = "\u2AA0", eot = "\u2A9D", tot = "\u2A9F", rot = "\u2246", not = "\u2A24", iot = "\u2972", sot = "\u2190", aot = "\u2218", oot = "\u2216", lot = "\u2A33", cot = "\u29E4", uot = "\u2223", hot = "\u2323", fot = "\u2AAA", dot = "\u2AAC", pot = "\u2AAC\uFE00", got = "\u042C", mot = "\u044C", vot = "\u233F", yot = "\u29C4", bot = "/", xot = "\u{1D54A}", wot = "\u{1D564}", Oot = "\u2660", kot = "\u2660", Sot = "\u2225", Tot = "\u2293", Cot = "\u2293\uFE00", Eot = "\u2294", _ot = "\u2294\uFE00", Aot = "\u221A", Lot = "\u228F", Rot = "\u2291", Mot = "\u228F", Dot = "\u2291", Not = "\u2290", Iot = "\u2292", Pot = "\u2290", $ot = "\u2292", Bot = "\u25A1", Fot = "\u25A1", zot = "\u2293", Vot = "\u228F", Uot = "\u2291", qot = "\u2290", Yot = "\u2292", Qot = "\u2294", Wot = "\u25AA", Got = "\u25A1", Hot = "\u25AA", Xot = "\u2192", Zot = "\u{1D4AE}", jot = "\u{1D4C8}", Kot = "\u2216", Jot = "\u2323", elt = "\u22C6", tlt = "\u22C6", rlt = "\u2606", nlt = "\u2605", ilt = "\u03F5", slt = "\u03D5", alt = "\xAF", olt = "\u2282", llt = "\u22D0", clt = "\u2ABD", ult = "\u2AC5", hlt = "\u2286", flt = "\u2AC3", dlt = "\u2AC1", plt = "\u2ACB", glt = "\u228A", mlt = "\u2ABF", vlt = "\u2979", ylt = "\u2282", blt = "\u22D0", xlt = "\u2286", wlt = "\u2AC5", Olt = "\u2286", klt = "\u228A", Slt = "\u2ACB", Tlt = "\u2AC7", Clt = "\u2AD5", Elt = "\u2AD3", _lt = "\u2AB8", Alt = "\u227B", Llt = "\u227D", Rlt = "\u227B", Mlt = "\u2AB0", Dlt = "\u227D", Nlt = "\u227F", Ilt = "\u2AB0", Plt = "\u2ABA", $lt = "\u2AB6", Blt = "\u22E9", Flt = "\u227F", zlt = "\u220B", Vlt = "\u2211", Ult = "\u2211", qlt = "\u266A", Ylt = "\xB9", Qlt = "\xB2", Wlt = "\xB3", Glt = "\u2283", Hlt = "\u22D1", Xlt = "\u2ABE", Zlt = "\u2AD8", jlt = "\u2AC6", Klt = "\u2287", Jlt = "\u2AC4", ect = "\u2283", tct = "\u2287", rct = "\u27C9", nct = "\u2AD7", ict = "\u297B", sct = "\u2AC2", act = "\u2ACC", oct = "\u228B", lct = "\u2AC0", cct = "\u2283", uct = "\u22D1", hct = "\u2287", fct = "\u2AC6", dct = "\u228B", pct = "\u2ACC", gct = "\u2AC8", mct = "\u2AD4", vct = "\u2AD6", yct = "\u2926", bct = "\u2199", xct = "\u21D9", wct = "\u2199", Oct = "\u292A", kct = "\xDF", Sct = " ", Tct = "\u2316", Cct = "\u03A4", Ect = "\u03C4", _ct = "\u23B4", Act = "\u0164", Lct = "\u0165", Rct = "\u0162", Mct = "\u0163", Dct = "\u0422", Nct = "\u0442", Ict = "\u20DB", Pct = "\u2315", $ct = "\u{1D517}", Bct = "\u{1D531}", Fct = "\u2234", zct = "\u2234", Vct = "\u2234", Uct = "\u0398", qct = "\u03B8", Yct = "\u03D1", Qct = "\u03D1", Wct = "\u2248", Gct = "\u223C", Hct = "\u205F\u200A", Xct = "\u2009", Zct = "\u2009", jct = "\u2248", Kct = "\u223C", Jct = "\xDE", eut = "\xFE", tut = "\u02DC", rut = "\u223C", nut = "\u2243", iut = "\u2245", sut = "\u2248", aut = "\u2A31", out = "\u22A0", lut = "\xD7", cut = "\u2A30", uut = "\u222D", hut = "\u2928", fut = "\u2336", dut = "\u2AF1", put = "\u22A4", gut = "\u{1D54B}", mut = "\u{1D565}", vut = "\u2ADA", yut = "\u2929", but = "\u2034", xut = "\u2122", wut = "\u2122", Out = "\u25B5", kut = "\u25BF", Sut = "\u25C3", Tut = "\u22B4", Cut = "\u225C", Eut = "\u25B9", _ut = "\u22B5", Aut = "\u25EC", Lut = "\u225C", Rut = "\u2A3A", Mut = "\u20DB", Dut = "\u2A39", Nut = "\u29CD", Iut = "\u2A3B", Put = "\u23E2", $ut = "\u{1D4AF}", But = "\u{1D4C9}", Fut = "\u0426", zut = "\u0446", Vut = "\u040B", Uut = "\u045B", qut = "\u0166", Yut = "\u0167", Qut = "\u226C", Wut = "\u219E", Gut = "\u21A0", Hut = "\xDA", Xut = "\xFA", Zut = "\u2191", jut = "\u219F", Kut = "\u21D1", Jut = "\u2949", eht = "\u040E", tht = "\u045E", rht = "\u016C", nht = "\u016D", iht = "\xDB", sht = "\xFB", aht = "\u0423", oht = "\u0443", lht = "\u21C5", cht = "\u0170", uht = "\u0171", hht = "\u296E", fht = "\u297E", dht = "\u{1D518}", pht = "\u{1D532}", ght = "\xD9", mht = "\xF9", vht = "\u2963", yht = "\u21BF", bht = "\u21BE", xht = "\u2580", wht = "\u231C", Oht = "\u231C", kht = "\u230F", Sht = "\u25F8", Tht = "\u016A", Cht = "\u016B", Eht = "\xA8", _ht = "_", Aht = "\u23DF", Lht = "\u23B5", Rht = "\u23DD", Mht = "\u22C3", Dht = "\u228E", Nht = "\u0172", Iht = "\u0173", Pht = "\u{1D54C}", $ht = "\u{1D566}", Bht = "\u2912", Fht = "\u2191", zht = "\u2191", Vht = "\u21D1", Uht = "\u21C5", qht = "\u2195", Yht = "\u2195", Qht = "\u21D5", Wht = "\u296E", Ght = "\u21BF", Hht = "\u21BE", Xht = "\u228E", Zht = "\u2196", jht = "\u2197", Kht = "\u03C5", Jht = "\u03D2", eft = "\u03D2", tft = "\u03A5", rft = "\u03C5", nft = "\u21A5", ift = "\u22A5", sft = "\u21C8", aft = "\u231D", oft = "\u231D", lft = "\u230E", cft = "\u016E", uft = "\u016F", hft = "\u25F9", fft = "\u{1D4B0}", dft = "\u{1D4CA}", pft = "\u22F0", gft = "\u0168", mft = "\u0169", vft = "\u25B5", yft = "\u25B4", bft = "\u21C8", xft = "\xDC", wft = "\xFC", Oft = "\u29A7", kft = "\u299C", Sft = "\u03F5", Tft = "\u03F0", Cft = "\u2205", Eft = "\u03D5", _ft = "\u03D6", Aft = "\u221D", Lft = "\u2195", Rft = "\u21D5", Mft = "\u03F1", Dft = "\u03C2", Nft = "\u228A\uFE00", Ift = "\u2ACB\uFE00", Pft = "\u228B\uFE00", $ft = "\u2ACC\uFE00", Bft = "\u03D1", Fft = "\u22B2", zft = "\u22B3", Vft = "\u2AE8", Uft = "\u2AEB", qft = "\u2AE9", Yft = "\u0412", Qft = "\u0432", Wft = "\u22A2", Gft = "\u22A8", Hft = "\u22A9", Xft = "\u22AB", Zft = "\u2AE6", jft = "\u22BB", Kft = "\u2228", Jft = "\u22C1", edt = "\u225A", tdt = "\u22EE", rdt = "|", ndt = "\u2016", idt = "|", sdt = "\u2016", adt = "\u2223", odt = "|", ldt = "\u2758", cdt = "\u2240", udt = "\u200A", hdt = "\u{1D519}", fdt = "\u{1D533}", ddt = "\u22B2", pdt = "\u2282\u20D2", gdt = "\u2283\u20D2", mdt = "\u{1D54D}", vdt = "\u{1D567}", ydt = "\u221D", bdt = "\u22B3", xdt = "\u{1D4B1}", wdt = "\u{1D4CB}", Odt = "\u2ACB\uFE00", kdt = "\u228A\uFE00", Sdt = "\u2ACC\uFE00", Tdt = "\u228B\uFE00", Cdt = "\u22AA", Edt = "\u299A", _dt = "\u0174", Adt = "\u0175", Ldt = "\u2A5F", Rdt = "\u2227", Mdt = "\u22C0", Ddt = "\u2259", Ndt = "\u2118", Idt = "\u{1D51A}", Pdt = "\u{1D534}", $dt = "\u{1D54E}", Bdt = "\u{1D568}", Fdt = "\u2118", zdt = "\u2240", Vdt = "\u2240", Udt = "\u{1D4B2}", qdt = "\u{1D4CC}", Ydt = "\u22C2", Qdt = "\u25EF", Wdt = "\u22C3", Gdt = "\u25BD", Hdt = "\u{1D51B}", Xdt = "\u{1D535}", Zdt = "\u27F7", jdt = "\u27FA", Kdt = "\u039E", Jdt = "\u03BE", e0t = "\u27F5", t0t = "\u27F8", r0t = "\u27FC", n0t = "\u22FB", i0t = "\u2A00", s0t = "\u{1D54F}", a0t = "\u{1D569}", o0t = "\u2A01", l0t = "\u2A02", c0t = "\u27F6", u0t = "\u27F9", h0t = "\u{1D4B3}", f0t = "\u{1D4CD}", d0t = "\u2A06", p0t = "\u2A04", g0t = "\u25B3", m0t = "\u22C1", v0t = "\u22C0", y0t = "\xDD", b0t = "\xFD", x0t = "\u042F", w0t = "\u044F", O0t = "\u0176", k0t = "\u0177", S0t = "\u042B", T0t = "\u044B", C0t = "\xA5", E0t = "\u{1D51C}", _0t = "\u{1D536}", A0t = "\u0407", L0t = "\u0457", R0t = "\u{1D550}", M0t = "\u{1D56A}", D0t = "\u{1D4B4}", N0t = "\u{1D4CE}", I0t = "\u042E", P0t = "\u044E", $0t = "\xFF", B0t = "\u0178", F0t = "\u0179", z0t = "\u017A", V0t = "\u017D", U0t = "\u017E", q0t = "\u0417", Y0t = "\u0437", Q0t = "\u017B", W0t = "\u017C", G0t = "\u2128", H0t = "\u200B", X0t = "\u0396", Z0t = "\u03B6", j0t = "\u{1D537}", K0t = "\u2128", J0t = "\u0416", ept = "\u0436", tpt = "\u21DD", rpt = "\u{1D56B}", npt = "\u2124", ipt = "\u{1D4B5}", spt = "\u{1D4CF}", apt = "\u200D", opt = "\u200C", lpt = { + Aacute: qLe, + aacute: YLe, + Abreve: QLe, + abreve: WLe, + ac: GLe, + acd: HLe, + acE: XLe, + Acirc: ZLe, + acirc: jLe, + acute: KLe, + Acy: JLe, + acy: e9e, + AElig: t9e, + aelig: r9e, + af: n9e, + Afr: i9e, + afr: s9e, + Agrave: a9e, + agrave: o9e, + alefsym: l9e, + aleph: c9e, + Alpha: u9e, + alpha: h9e, + Amacr: f9e, + amacr: d9e, + amalg: p9e, + amp: g9e, + AMP: m9e, + andand: v9e, + And: y9e, + and: b9e, + andd: x9e, + andslope: w9e, + andv: O9e, + ang: k9e, + ange: S9e, + angle: T9e, + angmsdaa: C9e, + angmsdab: E9e, + angmsdac: _9e, + angmsdad: A9e, + angmsdae: L9e, + angmsdaf: R9e, + angmsdag: M9e, + angmsdah: D9e, + angmsd: N9e, + angrt: I9e, + angrtvb: P9e, + angrtvbd: $9e, + angsph: B9e, + angst: F9e, + angzarr: z9e, + Aogon: V9e, + aogon: U9e, + Aopf: q9e, + aopf: Y9e, + apacir: Q9e, + ap: W9e, + apE: G9e, + ape: H9e, + apid: X9e, + apos: Z9e, + ApplyFunction: j9e, + approx: K9e, + approxeq: J9e, + Aring: eRe, + aring: tRe, + Ascr: rRe, + ascr: nRe, + Assign: iRe, + ast: sRe, + asymp: aRe, + asympeq: oRe, + Atilde: lRe, + atilde: cRe, + Auml: uRe, + auml: hRe, + awconint: fRe, + awint: dRe, + backcong: pRe, + backepsilon: gRe, + backprime: mRe, + backsim: vRe, + backsimeq: yRe, + Backslash: bRe, + Barv: xRe, + barvee: wRe, + barwed: ORe, + Barwed: kRe, + barwedge: SRe, + bbrk: TRe, + bbrktbrk: CRe, + bcong: ERe, + Bcy: _Re, + bcy: ARe, + bdquo: LRe, + becaus: RRe, + because: MRe, + Because: DRe, + bemptyv: NRe, + bepsi: IRe, + bernou: PRe, + Bernoullis: $Re, + Beta: BRe, + beta: FRe, + beth: zRe, + between: VRe, + Bfr: URe, + bfr: qRe, + bigcap: YRe, + bigcirc: QRe, + bigcup: WRe, + bigodot: GRe, + bigoplus: HRe, + bigotimes: XRe, + bigsqcup: ZRe, + bigstar: jRe, + bigtriangledown: KRe, + bigtriangleup: JRe, + biguplus: eMe, + bigvee: tMe, + bigwedge: rMe, + bkarow: nMe, + blacklozenge: iMe, + blacksquare: sMe, + blacktriangle: aMe, + blacktriangledown: oMe, + blacktriangleleft: lMe, + blacktriangleright: cMe, + blank: uMe, + blk12: hMe, + blk14: fMe, + blk34: dMe, + block: pMe, + bne: gMe, + bnequiv: mMe, + bNot: vMe, + bnot: yMe, + Bopf: bMe, + bopf: xMe, + bot: wMe, + bottom: OMe, + bowtie: kMe, + boxbox: SMe, + boxdl: TMe, + boxdL: CMe, + boxDl: EMe, + boxDL: _Me, + boxdr: AMe, + boxdR: LMe, + boxDr: RMe, + boxDR: MMe, + boxh: DMe, + boxH: NMe, + boxhd: IMe, + boxHd: PMe, + boxhD: $Me, + boxHD: BMe, + boxhu: FMe, + boxHu: zMe, + boxhU: VMe, + boxHU: UMe, + boxminus: qMe, + boxplus: YMe, + boxtimes: QMe, + boxul: WMe, + boxuL: GMe, + boxUl: HMe, + boxUL: XMe, + boxur: ZMe, + boxuR: jMe, + boxUr: KMe, + boxUR: JMe, + boxv: eDe, + boxV: tDe, + boxvh: rDe, + boxvH: nDe, + boxVh: iDe, + boxVH: sDe, + boxvl: aDe, + boxvL: oDe, + boxVl: lDe, + boxVL: cDe, + boxvr: uDe, + boxvR: hDe, + boxVr: fDe, + boxVR: dDe, + bprime: pDe, + breve: gDe, + Breve: mDe, + brvbar: vDe, + bscr: yDe, + Bscr: bDe, + bsemi: xDe, + bsim: wDe, + bsime: ODe, + bsolb: kDe, + bsol: SDe, + bsolhsub: TDe, + bull: CDe, + bullet: EDe, + bump: _De, + bumpE: ADe, + bumpe: LDe, + Bumpeq: RDe, + bumpeq: MDe, + Cacute: DDe, + cacute: NDe, + capand: IDe, + capbrcup: PDe, + capcap: $De, + cap: BDe, + Cap: FDe, + capcup: zDe, + capdot: VDe, + CapitalDifferentialD: UDe, + caps: qDe, + caret: YDe, + caron: QDe, + Cayleys: WDe, + ccaps: GDe, + Ccaron: HDe, + ccaron: XDe, + Ccedil: ZDe, + ccedil: jDe, + Ccirc: KDe, + ccirc: JDe, + Cconint: eNe, + ccups: tNe, + ccupssm: rNe, + Cdot: nNe, + cdot: iNe, + cedil: sNe, + Cedilla: aNe, + cemptyv: oNe, + cent: lNe, + centerdot: cNe, + CenterDot: uNe, + cfr: hNe, + Cfr: fNe, + CHcy: dNe, + chcy: pNe, + check: gNe, + checkmark: mNe, + Chi: vNe, + chi: yNe, + circ: bNe, + circeq: xNe, + circlearrowleft: wNe, + circlearrowright: ONe, + circledast: kNe, + circledcirc: SNe, + circleddash: TNe, + CircleDot: CNe, + circledR: ENe, + circledS: _Ne, + CircleMinus: ANe, + CirclePlus: LNe, + CircleTimes: RNe, + cir: MNe, + cirE: DNe, + cire: NNe, + cirfnint: INe, + cirmid: PNe, + cirscir: $Ne, + ClockwiseContourIntegral: BNe, + CloseCurlyDoubleQuote: FNe, + CloseCurlyQuote: zNe, + clubs: VNe, + clubsuit: UNe, + colon: qNe, + Colon: YNe, + Colone: QNe, + colone: WNe, + coloneq: GNe, + comma: HNe, + commat: XNe, + comp: ZNe, + compfn: jNe, + complement: KNe, + complexes: JNe, + cong: eIe, + congdot: tIe, + Congruent: rIe, + conint: nIe, + Conint: iIe, + ContourIntegral: sIe, + copf: aIe, + Copf: oIe, + coprod: lIe, + Coproduct: cIe, + copy: uIe, + COPY: hIe, + copysr: fIe, + CounterClockwiseContourIntegral: dIe, + crarr: pIe, + cross: gIe, + Cross: mIe, + Cscr: vIe, + cscr: yIe, + csub: bIe, + csube: xIe, + csup: wIe, + csupe: OIe, + ctdot: kIe, + cudarrl: SIe, + cudarrr: TIe, + cuepr: CIe, + cuesc: EIe, + cularr: _Ie, + cularrp: AIe, + cupbrcap: LIe, + cupcap: RIe, + CupCap: MIe, + cup: DIe, + Cup: NIe, + cupcup: IIe, + cupdot: PIe, + cupor: $Ie, + cups: BIe, + curarr: FIe, + curarrm: zIe, + curlyeqprec: VIe, + curlyeqsucc: UIe, + curlyvee: qIe, + curlywedge: YIe, + curren: QIe, + curvearrowleft: WIe, + curvearrowright: GIe, + cuvee: HIe, + cuwed: XIe, + cwconint: ZIe, + cwint: jIe, + cylcty: KIe, + dagger: JIe, + Dagger: ePe, + daleth: tPe, + darr: rPe, + Darr: nPe, + dArr: iPe, + dash: sPe, + Dashv: aPe, + dashv: oPe, + dbkarow: lPe, + dblac: cPe, + Dcaron: uPe, + dcaron: hPe, + Dcy: fPe, + dcy: dPe, + ddagger: pPe, + ddarr: gPe, + DD: mPe, + dd: vPe, + DDotrahd: yPe, + ddotseq: bPe, + deg: xPe, + Del: wPe, + Delta: OPe, + delta: kPe, + demptyv: SPe, + dfisht: TPe, + Dfr: CPe, + dfr: EPe, + dHar: _Pe, + dharl: APe, + dharr: LPe, + DiacriticalAcute: RPe, + DiacriticalDot: MPe, + DiacriticalDoubleAcute: DPe, + DiacriticalGrave: NPe, + DiacriticalTilde: IPe, + diam: PPe, + diamond: $Pe, + Diamond: BPe, + diamondsuit: FPe, + diams: zPe, + die: VPe, + DifferentialD: UPe, + digamma: qPe, + disin: YPe, + div: QPe, + divide: WPe, + divideontimes: GPe, + divonx: HPe, + DJcy: XPe, + djcy: ZPe, + dlcorn: jPe, + dlcrop: KPe, + dollar: JPe, + Dopf: e$e, + dopf: t$e, + Dot: r$e, + dot: n$e, + DotDot: i$e, + doteq: s$e, + doteqdot: a$e, + DotEqual: o$e, + dotminus: l$e, + dotplus: c$e, + dotsquare: u$e, + doublebarwedge: h$e, + DoubleContourIntegral: f$e, + DoubleDot: d$e, + DoubleDownArrow: p$e, + DoubleLeftArrow: g$e, + DoubleLeftRightArrow: m$e, + DoubleLeftTee: v$e, + DoubleLongLeftArrow: y$e, + DoubleLongLeftRightArrow: b$e, + DoubleLongRightArrow: x$e, + DoubleRightArrow: w$e, + DoubleRightTee: O$e, + DoubleUpArrow: k$e, + DoubleUpDownArrow: S$e, + DoubleVerticalBar: T$e, + DownArrowBar: C$e, + downarrow: E$e, + DownArrow: _$e, + Downarrow: A$e, + DownArrowUpArrow: L$e, + DownBreve: R$e, + downdownarrows: M$e, + downharpoonleft: D$e, + downharpoonright: N$e, + DownLeftRightVector: I$e, + DownLeftTeeVector: P$e, + DownLeftVectorBar: $$e, + DownLeftVector: B$e, + DownRightTeeVector: F$e, + DownRightVectorBar: z$e, + DownRightVector: V$e, + DownTeeArrow: U$e, + DownTee: q$e, + drbkarow: Y$e, + drcorn: Q$e, + drcrop: W$e, + Dscr: G$e, + dscr: H$e, + DScy: X$e, + dscy: Z$e, + dsol: j$e, + Dstrok: K$e, + dstrok: J$e, + dtdot: eBe, + dtri: tBe, + dtrif: rBe, + duarr: nBe, + duhar: iBe, + dwangle: sBe, + DZcy: aBe, + dzcy: oBe, + dzigrarr: lBe, + Eacute: cBe, + eacute: uBe, + easter: hBe, + Ecaron: fBe, + ecaron: dBe, + Ecirc: pBe, + ecirc: gBe, + ecir: mBe, + ecolon: vBe, + Ecy: yBe, + ecy: bBe, + eDDot: xBe, + Edot: wBe, + edot: OBe, + eDot: kBe, + ee: SBe, + efDot: TBe, + Efr: CBe, + efr: EBe, + eg: _Be, + Egrave: ABe, + egrave: LBe, + egs: RBe, + egsdot: MBe, + el: DBe, + Element: NBe, + elinters: IBe, + ell: PBe, + els: $Be, + elsdot: BBe, + Emacr: FBe, + emacr: zBe, + empty: VBe, + emptyset: UBe, + EmptySmallSquare: qBe, + emptyv: YBe, + EmptyVerySmallSquare: QBe, + emsp13: WBe, + emsp14: GBe, + emsp: HBe, + ENG: XBe, + eng: ZBe, + ensp: jBe, + Eogon: KBe, + eogon: JBe, + Eopf: eFe, + eopf: tFe, + epar: rFe, + eparsl: nFe, + eplus: iFe, + epsi: sFe, + Epsilon: aFe, + epsilon: oFe, + epsiv: lFe, + eqcirc: cFe, + eqcolon: uFe, + eqsim: hFe, + eqslantgtr: fFe, + eqslantless: dFe, + Equal: pFe, + equals: gFe, + EqualTilde: mFe, + equest: vFe, + Equilibrium: yFe, + equiv: bFe, + equivDD: xFe, + eqvparsl: wFe, + erarr: OFe, + erDot: kFe, + escr: SFe, + Escr: TFe, + esdot: CFe, + Esim: EFe, + esim: _Fe, + Eta: AFe, + eta: LFe, + ETH: RFe, + eth: MFe, + Euml: DFe, + euml: NFe, + euro: IFe, + excl: PFe, + exist: $Fe, + Exists: BFe, + expectation: FFe, + exponentiale: zFe, + ExponentialE: VFe, + fallingdotseq: UFe, + Fcy: qFe, + fcy: YFe, + female: QFe, + ffilig: WFe, + fflig: GFe, + ffllig: HFe, + Ffr: XFe, + ffr: ZFe, + filig: jFe, + FilledSmallSquare: KFe, + FilledVerySmallSquare: JFe, + fjlig: eze, + flat: tze, + fllig: rze, + fltns: nze, + fnof: ize, + Fopf: sze, + fopf: aze, + forall: oze, + ForAll: lze, + fork: cze, + forkv: uze, + Fouriertrf: hze, + fpartint: fze, + frac12: dze, + frac13: pze, + frac14: gze, + frac15: mze, + frac16: vze, + frac18: yze, + frac23: bze, + frac25: xze, + frac34: wze, + frac35: Oze, + frac38: kze, + frac45: Sze, + frac56: Tze, + frac58: Cze, + frac78: Eze, + frasl: _ze, + frown: Aze, + fscr: Lze, + Fscr: Rze, + gacute: Mze, + Gamma: Dze, + gamma: Nze, + Gammad: Ize, + gammad: Pze, + gap: $ze, + Gbreve: Bze, + gbreve: Fze, + Gcedil: zze, + Gcirc: Vze, + gcirc: Uze, + Gcy: qze, + gcy: Yze, + Gdot: Qze, + gdot: Wze, + ge: Gze, + gE: Hze, + gEl: Xze, + gel: Zze, + geq: jze, + geqq: Kze, + geqslant: Jze, + gescc: eVe, + ges: tVe, + gesdot: rVe, + gesdoto: nVe, + gesdotol: iVe, + gesl: sVe, + gesles: aVe, + Gfr: oVe, + gfr: lVe, + gg: cVe, + Gg: uVe, + ggg: hVe, + gimel: fVe, + GJcy: dVe, + gjcy: pVe, + gla: gVe, + gl: mVe, + glE: vVe, + glj: yVe, + gnap: bVe, + gnapprox: xVe, + gne: wVe, + gnE: OVe, + gneq: kVe, + gneqq: SVe, + gnsim: TVe, + Gopf: CVe, + gopf: EVe, + grave: _Ve, + GreaterEqual: AVe, + GreaterEqualLess: LVe, + GreaterFullEqual: RVe, + GreaterGreater: MVe, + GreaterLess: DVe, + GreaterSlantEqual: NVe, + GreaterTilde: IVe, + Gscr: PVe, + gscr: $Ve, + gsim: BVe, + gsime: FVe, + gsiml: zVe, + gtcc: VVe, + gtcir: UVe, + gt: qVe, + GT: YVe, + Gt: QVe, + gtdot: WVe, + gtlPar: GVe, + gtquest: HVe, + gtrapprox: XVe, + gtrarr: ZVe, + gtrdot: jVe, + gtreqless: KVe, + gtreqqless: JVe, + gtrless: eUe, + gtrsim: tUe, + gvertneqq: rUe, + gvnE: nUe, + Hacek: iUe, + hairsp: sUe, + half: aUe, + hamilt: oUe, + HARDcy: lUe, + hardcy: cUe, + harrcir: uUe, + harr: hUe, + hArr: fUe, + harrw: dUe, + Hat: pUe, + hbar: gUe, + Hcirc: mUe, + hcirc: vUe, + hearts: yUe, + heartsuit: bUe, + hellip: xUe, + hercon: wUe, + hfr: OUe, + Hfr: kUe, + HilbertSpace: SUe, + hksearow: TUe, + hkswarow: CUe, + hoarr: EUe, + homtht: _Ue, + hookleftarrow: AUe, + hookrightarrow: LUe, + hopf: RUe, + Hopf: MUe, + horbar: DUe, + HorizontalLine: NUe, + hscr: IUe, + Hscr: PUe, + hslash: $Ue, + Hstrok: BUe, + hstrok: FUe, + HumpDownHump: zUe, + HumpEqual: VUe, + hybull: UUe, + hyphen: qUe, + Iacute: YUe, + iacute: QUe, + ic: WUe, + Icirc: GUe, + icirc: HUe, + Icy: XUe, + icy: ZUe, + Idot: jUe, + IEcy: KUe, + iecy: JUe, + iexcl: eqe, + iff: tqe, + ifr: rqe, + Ifr: nqe, + Igrave: iqe, + igrave: sqe, + ii: aqe, + iiiint: oqe, + iiint: lqe, + iinfin: cqe, + iiota: uqe, + IJlig: hqe, + ijlig: fqe, + Imacr: dqe, + imacr: pqe, + image: gqe, + ImaginaryI: mqe, + imagline: vqe, + imagpart: yqe, + imath: bqe, + Im: xqe, + imof: wqe, + imped: Oqe, + Implies: kqe, + incare: Sqe, in: "\u2208", - infin: Eqe, - infintie: _qe, - inodot: Aqe, - intcal: Lqe, - int: Rqe, - Int: Mqe, - integers: Dqe, - Integral: Nqe, - intercal: Iqe, - Intersection: Pqe, - intlarhk: $qe, - intprod: Bqe, - InvisibleComma: Fqe, - InvisibleTimes: zqe, - IOcy: Vqe, - iocy: Uqe, - Iogon: qqe, - iogon: Yqe, - Iopf: Qqe, - iopf: Wqe, - Iota: Gqe, - iota: Hqe, - iprod: Xqe, - iquest: Zqe, - iscr: jqe, - Iscr: Kqe, - isin: Jqe, - isindot: eYe, - isinE: tYe, - isins: rYe, - isinsv: nYe, - isinv: iYe, - it: sYe, - Itilde: aYe, - itilde: oYe, - Iukcy: lYe, - iukcy: cYe, - Iuml: uYe, - iuml: hYe, - Jcirc: fYe, - jcirc: dYe, - Jcy: pYe, - jcy: gYe, - Jfr: mYe, - jfr: vYe, - jmath: yYe, - Jopf: bYe, - jopf: xYe, - Jscr: wYe, - jscr: OYe, - Jsercy: kYe, - jsercy: SYe, - Jukcy: TYe, - jukcy: CYe, - Kappa: EYe, - kappa: _Ye, - kappav: AYe, - Kcedil: LYe, - kcedil: RYe, - Kcy: MYe, - kcy: DYe, - Kfr: NYe, - kfr: IYe, - kgreen: PYe, - KHcy: $Ye, - khcy: BYe, - KJcy: FYe, - kjcy: zYe, - Kopf: VYe, - kopf: UYe, - Kscr: qYe, - kscr: YYe, - lAarr: QYe, - Lacute: WYe, - lacute: GYe, - laemptyv: HYe, - lagran: XYe, - Lambda: ZYe, - lambda: jYe, - lang: KYe, - Lang: JYe, - langd: eQe, - langle: tQe, - lap: rQe, - Laplacetrf: nQe, - laquo: iQe, - larrb: sQe, - larrbfs: aQe, - larr: oQe, - Larr: lQe, - lArr: cQe, - larrfs: uQe, - larrhk: hQe, - larrlp: fQe, - larrpl: dQe, - larrsim: pQe, - larrtl: gQe, - latail: mQe, - lAtail: vQe, - lat: yQe, - late: bQe, - lates: xQe, - lbarr: wQe, - lBarr: OQe, - lbbrk: kQe, - lbrace: SQe, - lbrack: TQe, - lbrke: CQe, - lbrksld: EQe, - lbrkslu: _Qe, - Lcaron: AQe, - lcaron: LQe, - Lcedil: RQe, - lcedil: MQe, - lceil: DQe, - lcub: NQe, - Lcy: IQe, - lcy: PQe, - ldca: $Qe, - ldquo: BQe, - ldquor: FQe, - ldrdhar: zQe, - ldrushar: VQe, - ldsh: UQe, - le: qQe, - lE: YQe, - LeftAngleBracket: QQe, - LeftArrowBar: WQe, - leftarrow: GQe, - LeftArrow: HQe, - Leftarrow: XQe, - LeftArrowRightArrow: ZQe, - leftarrowtail: jQe, - LeftCeiling: KQe, - LeftDoubleBracket: JQe, - LeftDownTeeVector: eWe, - LeftDownVectorBar: tWe, - LeftDownVector: rWe, - LeftFloor: nWe, - leftharpoondown: iWe, - leftharpoonup: sWe, - leftleftarrows: aWe, - leftrightarrow: oWe, - LeftRightArrow: lWe, - Leftrightarrow: cWe, - leftrightarrows: uWe, - leftrightharpoons: hWe, - leftrightsquigarrow: fWe, - LeftRightVector: dWe, - LeftTeeArrow: pWe, - LeftTee: gWe, - LeftTeeVector: mWe, - leftthreetimes: vWe, - LeftTriangleBar: yWe, - LeftTriangle: bWe, - LeftTriangleEqual: xWe, - LeftUpDownVector: wWe, - LeftUpTeeVector: OWe, - LeftUpVectorBar: kWe, - LeftUpVector: SWe, - LeftVectorBar: TWe, - LeftVector: CWe, - lEg: EWe, - leg: _We, - leq: AWe, - leqq: LWe, - leqslant: RWe, - lescc: MWe, - les: DWe, - lesdot: NWe, - lesdoto: IWe, - lesdotor: PWe, - lesg: $We, - lesges: BWe, - lessapprox: FWe, - lessdot: zWe, - lesseqgtr: VWe, - lesseqqgtr: UWe, - LessEqualGreater: qWe, - LessFullEqual: YWe, - LessGreater: QWe, - lessgtr: WWe, - LessLess: GWe, - lesssim: HWe, - LessSlantEqual: XWe, - LessTilde: ZWe, - lfisht: jWe, - lfloor: KWe, - Lfr: JWe, - lfr: eGe, - lg: tGe, - lgE: rGe, - lHar: nGe, - lhard: iGe, - lharu: sGe, - lharul: aGe, - lhblk: oGe, - LJcy: lGe, - ljcy: cGe, - llarr: uGe, - ll: hGe, - Ll: fGe, - llcorner: dGe, - Lleftarrow: pGe, - llhard: gGe, - lltri: mGe, - Lmidot: vGe, - lmidot: yGe, - lmoustache: bGe, - lmoust: xGe, - lnap: wGe, - lnapprox: OGe, - lne: kGe, - lnE: SGe, - lneq: TGe, - lneqq: CGe, - lnsim: EGe, - loang: _Ge, - loarr: AGe, - lobrk: LGe, - longleftarrow: RGe, - LongLeftArrow: MGe, - Longleftarrow: DGe, - longleftrightarrow: NGe, - LongLeftRightArrow: IGe, - Longleftrightarrow: PGe, - longmapsto: $Ge, - longrightarrow: BGe, - LongRightArrow: FGe, - Longrightarrow: zGe, - looparrowleft: VGe, - looparrowright: UGe, - lopar: qGe, - Lopf: YGe, - lopf: QGe, - loplus: WGe, - lotimes: GGe, - lowast: HGe, - lowbar: XGe, - LowerLeftArrow: ZGe, - LowerRightArrow: jGe, - loz: KGe, - lozenge: JGe, - lozf: eHe, - lpar: tHe, - lparlt: rHe, - lrarr: nHe, - lrcorner: iHe, - lrhar: sHe, - lrhard: aHe, - lrm: oHe, - lrtri: lHe, - lsaquo: cHe, - lscr: uHe, - Lscr: hHe, - lsh: fHe, - Lsh: dHe, - lsim: pHe, - lsime: gHe, - lsimg: mHe, - lsqb: vHe, - lsquo: yHe, - lsquor: bHe, - Lstrok: xHe, - lstrok: wHe, - ltcc: OHe, - ltcir: kHe, - lt: SHe, - LT: THe, - Lt: CHe, - ltdot: EHe, - lthree: _He, - ltimes: AHe, - ltlarr: LHe, - ltquest: RHe, - ltri: MHe, - ltrie: DHe, - ltrif: NHe, - ltrPar: IHe, - lurdshar: PHe, - luruhar: $He, - lvertneqq: BHe, - lvnE: FHe, - macr: zHe, - male: VHe, - malt: UHe, - maltese: qHe, + infin: Tqe, + infintie: Cqe, + inodot: Eqe, + intcal: _qe, + int: Aqe, + Int: Lqe, + integers: Rqe, + Integral: Mqe, + intercal: Dqe, + Intersection: Nqe, + intlarhk: Iqe, + intprod: Pqe, + InvisibleComma: $qe, + InvisibleTimes: Bqe, + IOcy: Fqe, + iocy: zqe, + Iogon: Vqe, + iogon: Uqe, + Iopf: qqe, + iopf: Yqe, + Iota: Qqe, + iota: Wqe, + iprod: Gqe, + iquest: Hqe, + iscr: Xqe, + Iscr: Zqe, + isin: jqe, + isindot: Kqe, + isinE: Jqe, + isins: eYe, + isinsv: tYe, + isinv: rYe, + it: nYe, + Itilde: iYe, + itilde: sYe, + Iukcy: aYe, + iukcy: oYe, + Iuml: lYe, + iuml: cYe, + Jcirc: uYe, + jcirc: hYe, + Jcy: fYe, + jcy: dYe, + Jfr: pYe, + jfr: gYe, + jmath: mYe, + Jopf: vYe, + jopf: yYe, + Jscr: bYe, + jscr: xYe, + Jsercy: wYe, + jsercy: OYe, + Jukcy: kYe, + jukcy: SYe, + Kappa: TYe, + kappa: CYe, + kappav: EYe, + Kcedil: _Ye, + kcedil: AYe, + Kcy: LYe, + kcy: RYe, + Kfr: MYe, + kfr: DYe, + kgreen: NYe, + KHcy: IYe, + khcy: PYe, + KJcy: $Ye, + kjcy: BYe, + Kopf: FYe, + kopf: zYe, + Kscr: VYe, + kscr: UYe, + lAarr: qYe, + Lacute: YYe, + lacute: QYe, + laemptyv: WYe, + lagran: GYe, + Lambda: HYe, + lambda: XYe, + lang: ZYe, + Lang: jYe, + langd: KYe, + langle: JYe, + lap: eQe, + Laplacetrf: tQe, + laquo: rQe, + larrb: nQe, + larrbfs: iQe, + larr: sQe, + Larr: aQe, + lArr: oQe, + larrfs: lQe, + larrhk: cQe, + larrlp: uQe, + larrpl: hQe, + larrsim: fQe, + larrtl: dQe, + latail: pQe, + lAtail: gQe, + lat: mQe, + late: vQe, + lates: yQe, + lbarr: bQe, + lBarr: xQe, + lbbrk: wQe, + lbrace: OQe, + lbrack: kQe, + lbrke: SQe, + lbrksld: TQe, + lbrkslu: CQe, + Lcaron: EQe, + lcaron: _Qe, + Lcedil: AQe, + lcedil: LQe, + lceil: RQe, + lcub: MQe, + Lcy: DQe, + lcy: NQe, + ldca: IQe, + ldquo: PQe, + ldquor: $Qe, + ldrdhar: BQe, + ldrushar: FQe, + ldsh: zQe, + le: VQe, + lE: UQe, + LeftAngleBracket: qQe, + LeftArrowBar: YQe, + leftarrow: QQe, + LeftArrow: WQe, + Leftarrow: GQe, + LeftArrowRightArrow: HQe, + leftarrowtail: XQe, + LeftCeiling: ZQe, + LeftDoubleBracket: jQe, + LeftDownTeeVector: KQe, + LeftDownVectorBar: JQe, + LeftDownVector: eWe, + LeftFloor: tWe, + leftharpoondown: rWe, + leftharpoonup: nWe, + leftleftarrows: iWe, + leftrightarrow: sWe, + LeftRightArrow: aWe, + Leftrightarrow: oWe, + leftrightarrows: lWe, + leftrightharpoons: cWe, + leftrightsquigarrow: uWe, + LeftRightVector: hWe, + LeftTeeArrow: fWe, + LeftTee: dWe, + LeftTeeVector: pWe, + leftthreetimes: gWe, + LeftTriangleBar: mWe, + LeftTriangle: vWe, + LeftTriangleEqual: yWe, + LeftUpDownVector: bWe, + LeftUpTeeVector: xWe, + LeftUpVectorBar: wWe, + LeftUpVector: OWe, + LeftVectorBar: kWe, + LeftVector: SWe, + lEg: TWe, + leg: CWe, + leq: EWe, + leqq: _We, + leqslant: AWe, + lescc: LWe, + les: RWe, + lesdot: MWe, + lesdoto: DWe, + lesdotor: NWe, + lesg: IWe, + lesges: PWe, + lessapprox: $We, + lessdot: BWe, + lesseqgtr: FWe, + lesseqqgtr: zWe, + LessEqualGreater: VWe, + LessFullEqual: UWe, + LessGreater: qWe, + lessgtr: YWe, + LessLess: QWe, + lesssim: WWe, + LessSlantEqual: GWe, + LessTilde: HWe, + lfisht: XWe, + lfloor: ZWe, + Lfr: jWe, + lfr: KWe, + lg: JWe, + lgE: eGe, + lHar: tGe, + lhard: rGe, + lharu: nGe, + lharul: iGe, + lhblk: sGe, + LJcy: aGe, + ljcy: oGe, + llarr: lGe, + ll: cGe, + Ll: uGe, + llcorner: hGe, + Lleftarrow: fGe, + llhard: dGe, + lltri: pGe, + Lmidot: gGe, + lmidot: mGe, + lmoustache: vGe, + lmoust: yGe, + lnap: bGe, + lnapprox: xGe, + lne: wGe, + lnE: OGe, + lneq: kGe, + lneqq: SGe, + lnsim: TGe, + loang: CGe, + loarr: EGe, + lobrk: _Ge, + longleftarrow: AGe, + LongLeftArrow: LGe, + Longleftarrow: RGe, + longleftrightarrow: MGe, + LongLeftRightArrow: DGe, + Longleftrightarrow: NGe, + longmapsto: IGe, + longrightarrow: PGe, + LongRightArrow: $Ge, + Longrightarrow: BGe, + looparrowleft: FGe, + looparrowright: zGe, + lopar: VGe, + Lopf: UGe, + lopf: qGe, + loplus: YGe, + lotimes: QGe, + lowast: WGe, + lowbar: GGe, + LowerLeftArrow: HGe, + LowerRightArrow: XGe, + loz: ZGe, + lozenge: jGe, + lozf: KGe, + lpar: JGe, + lparlt: eHe, + lrarr: tHe, + lrcorner: rHe, + lrhar: nHe, + lrhard: iHe, + lrm: sHe, + lrtri: aHe, + lsaquo: oHe, + lscr: lHe, + Lscr: cHe, + lsh: uHe, + Lsh: hHe, + lsim: fHe, + lsime: dHe, + lsimg: pHe, + lsqb: gHe, + lsquo: mHe, + lsquor: vHe, + Lstrok: yHe, + lstrok: bHe, + ltcc: xHe, + ltcir: wHe, + lt: OHe, + LT: kHe, + Lt: SHe, + ltdot: THe, + lthree: CHe, + ltimes: EHe, + ltlarr: _He, + ltquest: AHe, + ltri: LHe, + ltrie: RHe, + ltrif: MHe, + ltrPar: DHe, + lurdshar: NHe, + luruhar: IHe, + lvertneqq: PHe, + lvnE: $He, + macr: BHe, + male: FHe, + malt: zHe, + maltese: VHe, Map: "\u2905", - map: YHe, - mapsto: QHe, - mapstodown: WHe, - mapstoleft: GHe, - mapstoup: HHe, - marker: XHe, - mcomma: ZHe, - Mcy: jHe, - mcy: KHe, - mdash: JHe, - mDDot: eXe, - measuredangle: tXe, - MediumSpace: rXe, - Mellintrf: nXe, - Mfr: iXe, - mfr: sXe, - mho: aXe, - micro: oXe, - midast: lXe, - midcir: cXe, - mid: uXe, - middot: hXe, - minusb: fXe, - minus: dXe, - minusd: pXe, - minusdu: gXe, - MinusPlus: mXe, - mlcp: vXe, - mldr: yXe, - mnplus: bXe, - models: xXe, - Mopf: wXe, - mopf: OXe, - mp: kXe, - mscr: SXe, - Mscr: TXe, - mstpos: CXe, - Mu: EXe, - mu: _Xe, - multimap: AXe, - mumap: LXe, - nabla: RXe, - Nacute: MXe, - nacute: DXe, - nang: NXe, - nap: IXe, - napE: PXe, - napid: $Xe, - napos: BXe, - napprox: FXe, - natural: zXe, - naturals: VXe, - natur: UXe, - nbsp: qXe, - nbump: YXe, - nbumpe: QXe, - ncap: WXe, - Ncaron: GXe, - ncaron: HXe, - Ncedil: XXe, - ncedil: ZXe, - ncong: jXe, - ncongdot: KXe, - ncup: JXe, - Ncy: eZe, - ncy: tZe, - ndash: rZe, - nearhk: nZe, - nearr: iZe, - neArr: sZe, - nearrow: aZe, - ne: oZe, - nedot: lZe, - NegativeMediumSpace: cZe, - NegativeThickSpace: uZe, - NegativeThinSpace: hZe, - NegativeVeryThinSpace: fZe, - nequiv: dZe, - nesear: pZe, - nesim: gZe, - NestedGreaterGreater: mZe, - NestedLessLess: vZe, - NewLine: yZe, - nexist: bZe, - nexists: xZe, - Nfr: wZe, - nfr: OZe, - ngE: kZe, - nge: SZe, - ngeq: TZe, - ngeqq: CZe, - ngeqslant: EZe, - nges: _Ze, - nGg: AZe, - ngsim: LZe, - nGt: RZe, - ngt: MZe, - ngtr: DZe, - nGtv: NZe, - nharr: IZe, - nhArr: PZe, - nhpar: $Ze, - ni: BZe, - nis: FZe, - nisd: zZe, - niv: VZe, - NJcy: UZe, - njcy: qZe, - nlarr: YZe, - nlArr: QZe, - nldr: WZe, - nlE: GZe, - nle: HZe, - nleftarrow: XZe, - nLeftarrow: ZZe, - nleftrightarrow: jZe, - nLeftrightarrow: KZe, - nleq: JZe, - nleqq: eje, - nleqslant: tje, - nles: rje, - nless: nje, - nLl: ije, - nlsim: sje, - nLt: aje, - nlt: oje, - nltri: lje, - nltrie: cje, - nLtv: uje, - nmid: hje, - NoBreak: fje, - NonBreakingSpace: dje, - nopf: pje, - Nopf: gje, - Not: mje, - not: vje, - NotCongruent: yje, - NotCupCap: bje, - NotDoubleVerticalBar: xje, - NotElement: wje, - NotEqual: Oje, - NotEqualTilde: kje, - NotExists: Sje, - NotGreater: Tje, - NotGreaterEqual: Cje, - NotGreaterFullEqual: Eje, - NotGreaterGreater: _je, - NotGreaterLess: Aje, - NotGreaterSlantEqual: Lje, - NotGreaterTilde: Rje, - NotHumpDownHump: Mje, - NotHumpEqual: Dje, - notin: Nje, - notindot: Ije, - notinE: Pje, - notinva: $je, - notinvb: Bje, - notinvc: Fje, - NotLeftTriangleBar: zje, - NotLeftTriangle: Vje, - NotLeftTriangleEqual: Uje, - NotLess: qje, - NotLessEqual: Yje, - NotLessGreater: Qje, - NotLessLess: Wje, - NotLessSlantEqual: Gje, - NotLessTilde: Hje, - NotNestedGreaterGreater: Xje, - NotNestedLessLess: Zje, - notni: jje, - notniva: Kje, - notnivb: Jje, - notnivc: eKe, - NotPrecedes: tKe, - NotPrecedesEqual: rKe, - NotPrecedesSlantEqual: nKe, - NotReverseElement: iKe, - NotRightTriangleBar: sKe, - NotRightTriangle: aKe, - NotRightTriangleEqual: oKe, - NotSquareSubset: lKe, - NotSquareSubsetEqual: cKe, - NotSquareSuperset: uKe, - NotSquareSupersetEqual: hKe, - NotSubset: fKe, - NotSubsetEqual: dKe, - NotSucceeds: pKe, - NotSucceedsEqual: gKe, - NotSucceedsSlantEqual: mKe, - NotSucceedsTilde: vKe, - NotSuperset: yKe, - NotSupersetEqual: bKe, - NotTilde: xKe, - NotTildeEqual: wKe, - NotTildeFullEqual: OKe, - NotTildeTilde: kKe, - NotVerticalBar: SKe, - nparallel: TKe, - npar: CKe, - nparsl: EKe, - npart: _Ke, - npolint: AKe, - npr: LKe, - nprcue: RKe, - nprec: MKe, - npreceq: DKe, - npre: NKe, - nrarrc: IKe, - nrarr: PKe, - nrArr: $Ke, - nrarrw: BKe, - nrightarrow: FKe, - nRightarrow: zKe, - nrtri: VKe, - nrtrie: UKe, - nsc: qKe, - nsccue: YKe, - nsce: QKe, - Nscr: WKe, - nscr: GKe, - nshortmid: HKe, - nshortparallel: XKe, - nsim: ZKe, - nsime: jKe, - nsimeq: KKe, - nsmid: JKe, - nspar: eJe, - nsqsube: tJe, - nsqsupe: rJe, - nsub: nJe, - nsubE: iJe, - nsube: sJe, - nsubset: aJe, - nsubseteq: oJe, - nsubseteqq: lJe, - nsucc: cJe, - nsucceq: uJe, - nsup: hJe, - nsupE: fJe, - nsupe: dJe, - nsupset: pJe, - nsupseteq: gJe, - nsupseteqq: mJe, - ntgl: vJe, - Ntilde: yJe, - ntilde: bJe, - ntlg: xJe, - ntriangleleft: wJe, - ntrianglelefteq: OJe, - ntriangleright: kJe, - ntrianglerighteq: SJe, - Nu: TJe, - nu: CJe, - num: EJe, - numero: _Je, - numsp: AJe, - nvap: LJe, - nvdash: RJe, - nvDash: MJe, - nVdash: DJe, - nVDash: NJe, - nvge: IJe, - nvgt: PJe, - nvHarr: $Je, - nvinfin: BJe, - nvlArr: FJe, - nvle: zJe, - nvlt: VJe, - nvltrie: UJe, - nvrArr: qJe, - nvrtrie: YJe, - nvsim: QJe, - nwarhk: WJe, - nwarr: GJe, - nwArr: HJe, - nwarrow: XJe, - nwnear: ZJe, - Oacute: jJe, - oacute: KJe, - oast: JJe, - Ocirc: eet, - ocirc: tet, - ocir: ret, - Ocy: net, - ocy: iet, - odash: set, - Odblac: aet, - odblac: oet, - odiv: cet, - odot: uet, - odsold: het, - OElig: fet, - oelig: det, - ofcir: pet, - Ofr: get, - ofr: met, - ogon: vet, - Ograve: yet, - ograve: bet, - ogt: xet, - ohbar: wet, - ohm: Oet, - oint: ket, - olarr: Tet, - olcir: Cet, - olcross: Eet, - oline: _et, - olt: Aet, - Omacr: Let, - omacr: Ret, - Omega: Met, - omega: Det, - Omicron: Net, - omicron: Iet, - omid: Pet, - ominus: $et, - Oopf: Bet, - oopf: Fet, - opar: zet, - OpenCurlyDoubleQuote: Vet, - OpenCurlyQuote: Uet, - operp: qet, - oplus: Yet, - orarr: Qet, - Or: Wet, - or: Get, - ord: Het, - order: Xet, - orderof: Zet, - ordf: jet, - ordm: Ket, - origof: Jet, - oror: ett, - orslope: ttt, - orv: rtt, - oS: ntt, - Oscr: itt, - oscr: stt, - Oslash: att, - oslash: ott, - osol: ltt, - Otilde: ctt, - otilde: utt, - otimesas: htt, - Otimes: ftt, - otimes: dtt, - Ouml: ptt, - ouml: gtt, - ovbar: mtt, - OverBar: vtt, - OverBrace: ytt, - OverBracket: btt, - OverParenthesis: xtt, - para: wtt, - parallel: Ott, - par: ktt, - parsim: Stt, - parsl: Ttt, - part: Ctt, - PartialD: Ett, - Pcy: _tt, - pcy: Att, - percnt: Ltt, - period: Rtt, - permil: Mtt, - perp: Dtt, - pertenk: Ntt, - Pfr: Itt, - pfr: Ptt, - Phi: $tt, - phi: Btt, - phiv: Ftt, - phmmat: ztt, - phone: Vtt, - Pi: Utt, - pi: qtt, - pitchfork: Ytt, - piv: Qtt, - planck: Wtt, - planckh: Gtt, - plankv: Htt, - plusacir: Xtt, - plusb: Ztt, - pluscir: jtt, - plus: Ktt, - plusdo: Jtt, - plusdu: ert, - pluse: trt, - PlusMinus: rrt, - plusmn: nrt, - plussim: irt, - plustwo: srt, - pm: art, - Poincareplane: ort, - pointint: lrt, - popf: crt, - Popf: urt, - pound: hrt, - prap: frt, - Pr: drt, - pr: prt, - prcue: grt, - precapprox: mrt, - prec: vrt, - preccurlyeq: yrt, - Precedes: brt, - PrecedesEqual: xrt, - PrecedesSlantEqual: wrt, - PrecedesTilde: Ort, - preceq: krt, - precnapprox: Srt, - precneqq: Trt, - precnsim: Crt, - pre: Ert, - prE: _rt, - precsim: Art, - prime: Lrt, - Prime: Rrt, - primes: Mrt, - prnap: Drt, - prnE: Nrt, - prnsim: Irt, - prod: Prt, - Product: $rt, - profalar: Brt, - profline: Frt, - profsurf: zrt, - prop: Vrt, - Proportional: Urt, - Proportion: qrt, - propto: Yrt, - prsim: Qrt, - prurel: Wrt, - Pscr: Grt, - pscr: Hrt, - Psi: Xrt, - psi: Zrt, - puncsp: jrt, - Qfr: Krt, - qfr: Jrt, - qint: ent, - qopf: tnt, - Qopf: rnt, - qprime: nnt, - Qscr: int, - qscr: snt, - quaternions: ant, - quatint: ont, - quest: lnt, - questeq: cnt, - quot: unt, - QUOT: hnt, - rAarr: fnt, - race: dnt, - Racute: pnt, - racute: gnt, - radic: mnt, - raemptyv: vnt, - rang: ynt, - Rang: bnt, - rangd: xnt, - range: wnt, - rangle: Ont, - raquo: knt, - rarrap: Snt, - rarrb: Tnt, - rarrbfs: Cnt, - rarrc: Ent, - rarr: _nt, - Rarr: Ant, - rArr: Lnt, - rarrfs: Rnt, - rarrhk: Mnt, - rarrlp: Dnt, - rarrpl: Nnt, - rarrsim: Int, - Rarrtl: Pnt, - rarrtl: $nt, - rarrw: Bnt, - ratail: Fnt, - rAtail: znt, - ratio: Vnt, - rationals: Unt, - rbarr: qnt, - rBarr: Ynt, - RBarr: Qnt, - rbbrk: Wnt, - rbrace: Gnt, - rbrack: Hnt, - rbrke: Xnt, - rbrksld: Znt, - rbrkslu: jnt, - Rcaron: Knt, - rcaron: Jnt, - Rcedil: eit, - rcedil: tit, - rceil: rit, - rcub: nit, - Rcy: iit, - rcy: sit, - rdca: ait, - rdldhar: oit, - rdquo: lit, - rdquor: cit, - rdsh: uit, - real: hit, - realine: fit, - realpart: dit, - reals: pit, - Re: git, - rect: mit, - reg: vit, - REG: yit, - ReverseElement: bit, - ReverseEquilibrium: xit, - ReverseUpEquilibrium: wit, - rfisht: Oit, - rfloor: kit, - rfr: Sit, - Rfr: Tit, - rHar: Cit, - rhard: Eit, - rharu: _it, - rharul: Ait, - Rho: Lit, - rho: Rit, - rhov: Mit, - RightAngleBracket: Dit, - RightArrowBar: Nit, - rightarrow: Iit, - RightArrow: Pit, - Rightarrow: $it, - RightArrowLeftArrow: Bit, - rightarrowtail: Fit, - RightCeiling: zit, - RightDoubleBracket: Vit, - RightDownTeeVector: Uit, - RightDownVectorBar: qit, - RightDownVector: Yit, - RightFloor: Qit, - rightharpoondown: Wit, - rightharpoonup: Git, - rightleftarrows: Hit, - rightleftharpoons: Xit, - rightrightarrows: Zit, - rightsquigarrow: jit, - RightTeeArrow: Kit, - RightTee: Jit, - RightTeeVector: est, - rightthreetimes: tst, - RightTriangleBar: rst, - RightTriangle: nst, - RightTriangleEqual: ist, - RightUpDownVector: sst, - RightUpTeeVector: ast, - RightUpVectorBar: ost, - RightUpVector: lst, - RightVectorBar: cst, - RightVector: ust, - ring: hst, - risingdotseq: fst, - rlarr: dst, - rlhar: pst, - rlm: gst, - rmoustache: mst, - rmoust: vst, - rnmid: yst, - roang: bst, - roarr: xst, - robrk: wst, - ropar: Ost, - ropf: kst, - Ropf: Sst, - roplus: Tst, - rotimes: Cst, - RoundImplies: Est, - rpar: _st, - rpargt: Ast, - rppolint: Lst, - rrarr: Rst, - Rrightarrow: Mst, - rsaquo: Dst, - rscr: Nst, - Rscr: Ist, - rsh: Pst, - Rsh: $st, - rsqb: Bst, - rsquo: Fst, - rsquor: zst, - rthree: Vst, - rtimes: Ust, - rtri: qst, - rtrie: Yst, - rtrif: Qst, - rtriltri: Wst, - RuleDelayed: Gst, - ruluhar: Hst, - rx: Xst, - Sacute: Zst, - sacute: jst, - sbquo: Kst, - scap: Jst, - Scaron: eat, - scaron: tat, - Sc: rat, - sc: nat, - sccue: iat, - sce: sat, - scE: aat, - Scedil: oat, - scedil: lat, - Scirc: cat, - scirc: uat, - scnap: hat, - scnE: fat, - scnsim: dat, - scpolint: pat, - scsim: gat, - Scy: mat, - scy: vat, - sdotb: yat, - sdot: bat, - sdote: xat, - searhk: wat, - searr: Oat, - seArr: kat, - searrow: Sat, - sect: Tat, - semi: Cat, - seswar: Eat, - setminus: _at, - setmn: Aat, - sext: Lat, - Sfr: Rat, - sfr: Mat, - sfrown: Dat, - sharp: Nat, - SHCHcy: Iat, - shchcy: Pat, - SHcy: $at, - shcy: Bat, - ShortDownArrow: Fat, - ShortLeftArrow: zat, - shortmid: Vat, - shortparallel: Uat, - ShortRightArrow: qat, - ShortUpArrow: Yat, - shy: Qat, - Sigma: Wat, - sigma: Gat, - sigmaf: Hat, - sigmav: Xat, - sim: Zat, - simdot: jat, - sime: Kat, - simeq: Jat, - simg: eot, - simgE: tot, - siml: rot, - simlE: not, - simne: iot, - simplus: sot, - simrarr: aot, - slarr: oot, - SmallCircle: lot, - smallsetminus: cot, - smashp: uot, - smeparsl: hot, - smid: fot, - smile: dot, - smt: pot, - smte: got, - smtes: mot, - SOFTcy: vot, - softcy: yot, - solbar: bot, - solb: xot, - sol: wot, - Sopf: Oot, - sopf: kot, - spades: Sot, - spadesuit: Tot, - spar: Cot, - sqcap: Eot, - sqcaps: _ot, - sqcup: Aot, - sqcups: Lot, - Sqrt: Rot, - sqsub: Mot, - sqsube: Dot, - sqsubset: Not, - sqsubseteq: Iot, - sqsup: Pot, - sqsupe: $ot, - sqsupset: Bot, - sqsupseteq: Fot, - square: zot, - Square: Vot, - SquareIntersection: Uot, - SquareSubset: qot, - SquareSubsetEqual: Yot, - SquareSuperset: Qot, - SquareSupersetEqual: Wot, - SquareUnion: Got, - squarf: Hot, - squ: Xot, - squf: Zot, - srarr: jot, - Sscr: Kot, - sscr: Jot, - ssetmn: elt, - ssmile: tlt, - sstarf: rlt, - Star: nlt, - star: ilt, - starf: slt, - straightepsilon: alt, - straightphi: olt, - strns: llt, - sub: clt, - Sub: ult, - subdot: hlt, - subE: flt, - sube: dlt, - subedot: plt, - submult: glt, - subnE: mlt, - subne: vlt, - subplus: ylt, - subrarr: blt, - subset: xlt, - Subset: wlt, - subseteq: Olt, - subseteqq: klt, - SubsetEqual: Slt, - subsetneq: Tlt, - subsetneqq: Clt, - subsim: Elt, - subsub: _lt, - subsup: Alt, - succapprox: Llt, - succ: Rlt, - succcurlyeq: Mlt, - Succeeds: Dlt, - SucceedsEqual: Nlt, - SucceedsSlantEqual: Ilt, - SucceedsTilde: Plt, - succeq: $lt, - succnapprox: Blt, - succneqq: Flt, - succnsim: zlt, - succsim: Vlt, - SuchThat: Ult, - sum: qlt, - Sum: Ylt, - sung: Qlt, - sup1: Wlt, - sup2: Glt, - sup3: Hlt, - sup: Xlt, - Sup: Zlt, - supdot: jlt, - supdsub: Klt, - supE: Jlt, - supe: ect, - supedot: tct, - Superset: rct, - SupersetEqual: nct, - suphsol: ict, - suphsub: sct, - suplarr: act, - supmult: oct, - supnE: lct, - supne: cct, - supplus: uct, - supset: hct, - Supset: fct, - supseteq: dct, - supseteqq: pct, - supsetneq: gct, - supsetneqq: mct, - supsim: vct, - supsub: yct, - supsup: bct, - swarhk: xct, - swarr: wct, - swArr: Oct, - swarrow: kct, - swnwar: Sct, - szlig: Tct, - Tab: Cct, - target: Ect, - Tau: _ct, - tau: Act, - tbrk: Lct, - Tcaron: Rct, - tcaron: Mct, - Tcedil: Dct, - tcedil: Nct, - Tcy: Ict, - tcy: Pct, - tdot: $ct, - telrec: Bct, - Tfr: Fct, - tfr: zct, - there4: Vct, - therefore: Uct, - Therefore: qct, - Theta: Yct, - theta: Qct, - thetasym: Wct, - thetav: Gct, - thickapprox: Hct, - thicksim: Xct, - ThickSpace: Zct, - ThinSpace: jct, - thinsp: Kct, - thkap: Jct, - thksim: eut, - THORN: tut, - thorn: rut, - tilde: nut, - Tilde: iut, - TildeEqual: sut, - TildeFullEqual: aut, - TildeTilde: out, - timesbar: lut, - timesb: cut, - times: uut, - timesd: hut, - tint: fut, - toea: dut, - topbot: put, - topcir: gut, - top: mut, - Topf: vut, - topf: yut, - topfork: but, - tosa: xut, - tprime: wut, - trade: Out, - TRADE: kut, - triangle: Sut, - triangledown: Tut, - triangleleft: Cut, - trianglelefteq: Eut, - triangleq: _ut, - triangleright: Aut, - trianglerighteq: Lut, - tridot: Rut, - trie: Mut, - triminus: Dut, - TripleDot: Nut, - triplus: Iut, - trisb: Put, - tritime: $ut, - trpezium: But, - Tscr: Fut, - tscr: zut, - TScy: Vut, - tscy: Uut, - TSHcy: qut, - tshcy: Yut, - Tstrok: Qut, - tstrok: Wut, - twixt: Gut, - twoheadleftarrow: Hut, - twoheadrightarrow: Xut, - Uacute: Zut, - uacute: jut, - uarr: Kut, - Uarr: Jut, - uArr: eht, - Uarrocir: tht, - Ubrcy: rht, - ubrcy: nht, - Ubreve: iht, - ubreve: sht, - Ucirc: aht, - ucirc: oht, - Ucy: lht, - ucy: cht, - udarr: uht, - Udblac: hht, - udblac: fht, - udhar: dht, - ufisht: pht, - Ufr: ght, - ufr: mht, - Ugrave: vht, - ugrave: yht, - uHar: bht, - uharl: xht, - uharr: wht, - uhblk: Oht, - ulcorn: kht, - ulcorner: Sht, - ulcrop: Tht, - ultri: Cht, - Umacr: Eht, - umacr: _ht, - uml: Aht, - UnderBar: Lht, - UnderBrace: Rht, - UnderBracket: Mht, - UnderParenthesis: Dht, - Union: Nht, - UnionPlus: Iht, - Uogon: Pht, - uogon: $ht, - Uopf: Bht, - uopf: Fht, - UpArrowBar: zht, - uparrow: Vht, - UpArrow: Uht, - Uparrow: qht, - UpArrowDownArrow: Yht, - updownarrow: Qht, - UpDownArrow: Wht, - Updownarrow: Ght, - UpEquilibrium: Hht, - upharpoonleft: Xht, - upharpoonright: Zht, - uplus: jht, - UpperLeftArrow: Kht, - UpperRightArrow: Jht, - upsi: eft, - Upsi: tft, - upsih: rft, - Upsilon: nft, - upsilon: ift, - UpTeeArrow: sft, - UpTee: aft, - upuparrows: oft, - urcorn: lft, - urcorner: cft, - urcrop: uft, - Uring: hft, - uring: fft, - urtri: dft, - Uscr: pft, - uscr: gft, - utdot: mft, - Utilde: vft, - utilde: yft, - utri: bft, - utrif: xft, - uuarr: wft, - Uuml: Oft, - uuml: kft, - uwangle: Sft, - vangrt: Tft, - varepsilon: Cft, - varkappa: Eft, - varnothing: _ft, - varphi: Aft, - varpi: Lft, - varpropto: Rft, - varr: Mft, - vArr: Dft, - varrho: Nft, - varsigma: Ift, - varsubsetneq: Pft, - varsubsetneqq: $ft, - varsupsetneq: Bft, - varsupsetneqq: Fft, - vartheta: zft, - vartriangleleft: Vft, - vartriangleright: Uft, - vBar: qft, - Vbar: Yft, - vBarv: Qft, - Vcy: Wft, - vcy: Gft, - vdash: Hft, - vDash: Xft, - Vdash: Zft, - VDash: jft, - Vdashl: Kft, - veebar: Jft, - vee: edt, - Vee: tdt, - veeeq: rdt, - vellip: ndt, - verbar: idt, - Verbar: sdt, - vert: adt, - Vert: odt, - VerticalBar: ldt, - VerticalLine: cdt, - VerticalSeparator: udt, - VerticalTilde: hdt, - VeryThinSpace: fdt, - Vfr: ddt, - vfr: pdt, - vltri: gdt, - vnsub: mdt, - vnsup: vdt, - Vopf: ydt, - vopf: bdt, - vprop: xdt, - vrtri: wdt, - Vscr: Odt, - vscr: kdt, - vsubnE: Sdt, - vsubne: Tdt, - vsupnE: Cdt, - vsupne: Edt, - Vvdash: _dt, - vzigzag: Adt, - Wcirc: Ldt, - wcirc: Rdt, - wedbar: Mdt, - wedge: Ddt, - Wedge: Ndt, - wedgeq: Idt, - weierp: Pdt, - Wfr: $dt, - wfr: Bdt, - Wopf: Fdt, - wopf: zdt, - wp: Vdt, - wr: Udt, - wreath: qdt, - Wscr: Ydt, - wscr: Qdt, - xcap: Wdt, - xcirc: Gdt, - xcup: Hdt, - xdtri: Xdt, - Xfr: Zdt, - xfr: jdt, - xharr: Kdt, - xhArr: Jdt, - Xi: e0t, - xi: t0t, - xlarr: r0t, - xlArr: n0t, - xmap: i0t, - xnis: s0t, - xodot: a0t, - Xopf: o0t, - xopf: l0t, - xoplus: c0t, - xotime: u0t, - xrarr: h0t, - xrArr: f0t, - Xscr: d0t, - xscr: p0t, - xsqcup: g0t, - xuplus: m0t, - xutri: v0t, - xvee: y0t, - xwedge: b0t, - Yacute: x0t, - yacute: w0t, - YAcy: O0t, - yacy: k0t, - Ycirc: S0t, - ycirc: T0t, - Ycy: C0t, - ycy: E0t, - yen: _0t, - Yfr: A0t, - yfr: L0t, - YIcy: R0t, - yicy: M0t, - Yopf: D0t, - yopf: N0t, - Yscr: I0t, - yscr: P0t, - YUcy: $0t, - yucy: B0t, - yuml: F0t, - Yuml: z0t, - Zacute: V0t, - zacute: U0t, - Zcaron: q0t, - zcaron: Y0t, - Zcy: Q0t, - zcy: W0t, - Zdot: G0t, - zdot: H0t, - zeetrf: X0t, - ZeroWidthSpace: Z0t, - Zeta: j0t, - zeta: K0t, - zfr: J0t, - Zfr: ept, - ZHcy: tpt, - zhcy: rpt, - zigrarr: npt, - zopf: ipt, - Zopf: spt, - Zscr: apt, - zscr: opt, - zwj: lpt, - zwnj: cpt + map: UHe, + mapsto: qHe, + mapstodown: YHe, + mapstoleft: QHe, + mapstoup: WHe, + marker: GHe, + mcomma: HHe, + Mcy: XHe, + mcy: ZHe, + mdash: jHe, + mDDot: KHe, + measuredangle: JHe, + MediumSpace: eXe, + Mellintrf: tXe, + Mfr: rXe, + mfr: nXe, + mho: iXe, + micro: sXe, + midast: aXe, + midcir: oXe, + mid: lXe, + middot: cXe, + minusb: uXe, + minus: hXe, + minusd: fXe, + minusdu: dXe, + MinusPlus: pXe, + mlcp: gXe, + mldr: mXe, + mnplus: vXe, + models: yXe, + Mopf: bXe, + mopf: xXe, + mp: wXe, + mscr: OXe, + Mscr: kXe, + mstpos: SXe, + Mu: TXe, + mu: CXe, + multimap: EXe, + mumap: _Xe, + nabla: AXe, + Nacute: LXe, + nacute: RXe, + nang: MXe, + nap: DXe, + napE: NXe, + napid: IXe, + napos: PXe, + napprox: $Xe, + natural: BXe, + naturals: FXe, + natur: zXe, + nbsp: VXe, + nbump: UXe, + nbumpe: qXe, + ncap: YXe, + Ncaron: QXe, + ncaron: WXe, + Ncedil: GXe, + ncedil: HXe, + ncong: XXe, + ncongdot: ZXe, + ncup: jXe, + Ncy: KXe, + ncy: JXe, + ndash: eZe, + nearhk: tZe, + nearr: rZe, + neArr: nZe, + nearrow: iZe, + ne: sZe, + nedot: aZe, + NegativeMediumSpace: oZe, + NegativeThickSpace: lZe, + NegativeThinSpace: cZe, + NegativeVeryThinSpace: uZe, + nequiv: hZe, + nesear: fZe, + nesim: dZe, + NestedGreaterGreater: pZe, + NestedLessLess: gZe, + NewLine: mZe, + nexist: vZe, + nexists: yZe, + Nfr: bZe, + nfr: xZe, + ngE: wZe, + nge: OZe, + ngeq: kZe, + ngeqq: SZe, + ngeqslant: TZe, + nges: CZe, + nGg: EZe, + ngsim: _Ze, + nGt: AZe, + ngt: LZe, + ngtr: RZe, + nGtv: MZe, + nharr: DZe, + nhArr: NZe, + nhpar: IZe, + ni: PZe, + nis: $Ze, + nisd: BZe, + niv: FZe, + NJcy: zZe, + njcy: VZe, + nlarr: UZe, + nlArr: qZe, + nldr: YZe, + nlE: QZe, + nle: WZe, + nleftarrow: GZe, + nLeftarrow: HZe, + nleftrightarrow: XZe, + nLeftrightarrow: ZZe, + nleq: jZe, + nleqq: KZe, + nleqslant: JZe, + nles: eje, + nless: tje, + nLl: rje, + nlsim: nje, + nLt: ije, + nlt: sje, + nltri: aje, + nltrie: oje, + nLtv: lje, + nmid: cje, + NoBreak: uje, + NonBreakingSpace: hje, + nopf: fje, + Nopf: dje, + Not: pje, + not: gje, + NotCongruent: mje, + NotCupCap: vje, + NotDoubleVerticalBar: yje, + NotElement: bje, + NotEqual: xje, + NotEqualTilde: wje, + NotExists: Oje, + NotGreater: kje, + NotGreaterEqual: Sje, + NotGreaterFullEqual: Tje, + NotGreaterGreater: Cje, + NotGreaterLess: Eje, + NotGreaterSlantEqual: _je, + NotGreaterTilde: Aje, + NotHumpDownHump: Lje, + NotHumpEqual: Rje, + notin: Mje, + notindot: Dje, + notinE: Nje, + notinva: Ije, + notinvb: Pje, + notinvc: $je, + NotLeftTriangleBar: Bje, + NotLeftTriangle: Fje, + NotLeftTriangleEqual: zje, + NotLess: Vje, + NotLessEqual: Uje, + NotLessGreater: qje, + NotLessLess: Yje, + NotLessSlantEqual: Qje, + NotLessTilde: Wje, + NotNestedGreaterGreater: Gje, + NotNestedLessLess: Hje, + notni: Xje, + notniva: Zje, + notnivb: jje, + notnivc: Kje, + NotPrecedes: Jje, + NotPrecedesEqual: eKe, + NotPrecedesSlantEqual: tKe, + NotReverseElement: rKe, + NotRightTriangleBar: nKe, + NotRightTriangle: iKe, + NotRightTriangleEqual: sKe, + NotSquareSubset: aKe, + NotSquareSubsetEqual: oKe, + NotSquareSuperset: lKe, + NotSquareSupersetEqual: cKe, + NotSubset: uKe, + NotSubsetEqual: hKe, + NotSucceeds: fKe, + NotSucceedsEqual: dKe, + NotSucceedsSlantEqual: pKe, + NotSucceedsTilde: gKe, + NotSuperset: mKe, + NotSupersetEqual: vKe, + NotTilde: yKe, + NotTildeEqual: bKe, + NotTildeFullEqual: xKe, + NotTildeTilde: wKe, + NotVerticalBar: OKe, + nparallel: kKe, + npar: SKe, + nparsl: TKe, + npart: CKe, + npolint: EKe, + npr: _Ke, + nprcue: AKe, + nprec: LKe, + npreceq: RKe, + npre: MKe, + nrarrc: DKe, + nrarr: NKe, + nrArr: IKe, + nrarrw: PKe, + nrightarrow: $Ke, + nRightarrow: BKe, + nrtri: FKe, + nrtrie: zKe, + nsc: VKe, + nsccue: UKe, + nsce: qKe, + Nscr: YKe, + nscr: QKe, + nshortmid: WKe, + nshortparallel: GKe, + nsim: HKe, + nsime: XKe, + nsimeq: ZKe, + nsmid: jKe, + nspar: KKe, + nsqsube: JKe, + nsqsupe: eJe, + nsub: tJe, + nsubE: rJe, + nsube: nJe, + nsubset: iJe, + nsubseteq: sJe, + nsubseteqq: aJe, + nsucc: oJe, + nsucceq: lJe, + nsup: cJe, + nsupE: uJe, + nsupe: hJe, + nsupset: fJe, + nsupseteq: dJe, + nsupseteqq: pJe, + ntgl: gJe, + Ntilde: mJe, + ntilde: vJe, + ntlg: yJe, + ntriangleleft: bJe, + ntrianglelefteq: xJe, + ntriangleright: wJe, + ntrianglerighteq: OJe, + Nu: kJe, + nu: SJe, + num: TJe, + numero: CJe, + numsp: EJe, + nvap: _Je, + nvdash: AJe, + nvDash: LJe, + nVdash: RJe, + nVDash: MJe, + nvge: DJe, + nvgt: NJe, + nvHarr: IJe, + nvinfin: PJe, + nvlArr: $Je, + nvle: BJe, + nvlt: FJe, + nvltrie: zJe, + nvrArr: VJe, + nvrtrie: UJe, + nvsim: qJe, + nwarhk: YJe, + nwarr: QJe, + nwArr: WJe, + nwarrow: GJe, + nwnear: HJe, + Oacute: XJe, + oacute: ZJe, + oast: jJe, + Ocirc: KJe, + ocirc: JJe, + ocir: eet, + Ocy: tet, + ocy: ret, + odash: net, + Odblac: iet, + odblac: set, + odiv: aet, + odot: oet, + odsold: cet, + OElig: uet, + oelig: het, + ofcir: fet, + Ofr: det, + ofr: pet, + ogon: get, + Ograve: met, + ograve: vet, + ogt: yet, + ohbar: bet, + ohm: xet, + oint: wet, + olarr: Oet, + olcir: ket, + olcross: Tet, + oline: Cet, + olt: Eet, + Omacr: _et, + omacr: Aet, + Omega: Let, + omega: Ret, + Omicron: Met, + omicron: Det, + omid: Net, + ominus: Iet, + Oopf: Pet, + oopf: $et, + opar: Bet, + OpenCurlyDoubleQuote: Fet, + OpenCurlyQuote: zet, + operp: Vet, + oplus: Uet, + orarr: qet, + Or: Yet, + or: Qet, + ord: Wet, + order: Get, + orderof: Het, + ordf: Xet, + ordm: Zet, + origof: jet, + oror: Ket, + orslope: Jet, + orv: ett, + oS: ttt, + Oscr: rtt, + oscr: ntt, + Oslash: itt, + oslash: stt, + osol: att, + Otilde: ott, + otilde: ltt, + otimesas: ctt, + Otimes: utt, + otimes: htt, + Ouml: ftt, + ouml: dtt, + ovbar: ptt, + OverBar: gtt, + OverBrace: mtt, + OverBracket: vtt, + OverParenthesis: ytt, + para: btt, + parallel: xtt, + par: wtt, + parsim: Ott, + parsl: ktt, + part: Stt, + PartialD: Ttt, + Pcy: Ctt, + pcy: Ett, + percnt: _tt, + period: Att, + permil: Ltt, + perp: Rtt, + pertenk: Mtt, + Pfr: Dtt, + pfr: Ntt, + Phi: Itt, + phi: Ptt, + phiv: $tt, + phmmat: Btt, + phone: Ftt, + Pi: ztt, + pi: Vtt, + pitchfork: Utt, + piv: qtt, + planck: Ytt, + planckh: Qtt, + plankv: Wtt, + plusacir: Gtt, + plusb: Htt, + pluscir: Xtt, + plus: Ztt, + plusdo: jtt, + plusdu: Ktt, + pluse: Jtt, + PlusMinus: ert, + plusmn: trt, + plussim: rrt, + plustwo: nrt, + pm: irt, + Poincareplane: srt, + pointint: art, + popf: ort, + Popf: lrt, + pound: crt, + prap: urt, + Pr: hrt, + pr: frt, + prcue: drt, + precapprox: prt, + prec: grt, + preccurlyeq: mrt, + Precedes: vrt, + PrecedesEqual: yrt, + PrecedesSlantEqual: brt, + PrecedesTilde: xrt, + preceq: wrt, + precnapprox: Ort, + precneqq: krt, + precnsim: Srt, + pre: Trt, + prE: Crt, + precsim: Ert, + prime: _rt, + Prime: Art, + primes: Lrt, + prnap: Rrt, + prnE: Mrt, + prnsim: Drt, + prod: Nrt, + Product: Irt, + profalar: Prt, + profline: $rt, + profsurf: Brt, + prop: Frt, + Proportional: zrt, + Proportion: Vrt, + propto: Urt, + prsim: qrt, + prurel: Yrt, + Pscr: Qrt, + pscr: Wrt, + Psi: Grt, + psi: Hrt, + puncsp: Xrt, + Qfr: Zrt, + qfr: jrt, + qint: Krt, + qopf: Jrt, + Qopf: ent, + qprime: tnt, + Qscr: rnt, + qscr: nnt, + quaternions: int, + quatint: snt, + quest: ant, + questeq: ont, + quot: lnt, + QUOT: cnt, + rAarr: unt, + race: hnt, + Racute: fnt, + racute: dnt, + radic: pnt, + raemptyv: gnt, + rang: mnt, + Rang: vnt, + rangd: ynt, + range: bnt, + rangle: xnt, + raquo: wnt, + rarrap: Ont, + rarrb: knt, + rarrbfs: Snt, + rarrc: Tnt, + rarr: Cnt, + Rarr: Ent, + rArr: _nt, + rarrfs: Ant, + rarrhk: Lnt, + rarrlp: Rnt, + rarrpl: Mnt, + rarrsim: Dnt, + Rarrtl: Nnt, + rarrtl: Int, + rarrw: Pnt, + ratail: $nt, + rAtail: Bnt, + ratio: Fnt, + rationals: znt, + rbarr: Vnt, + rBarr: Unt, + RBarr: qnt, + rbbrk: Ynt, + rbrace: Qnt, + rbrack: Wnt, + rbrke: Gnt, + rbrksld: Hnt, + rbrkslu: Xnt, + Rcaron: Znt, + rcaron: jnt, + Rcedil: Knt, + rcedil: Jnt, + rceil: eit, + rcub: tit, + Rcy: rit, + rcy: nit, + rdca: iit, + rdldhar: sit, + rdquo: ait, + rdquor: oit, + rdsh: lit, + real: cit, + realine: uit, + realpart: hit, + reals: fit, + Re: dit, + rect: pit, + reg: git, + REG: mit, + ReverseElement: vit, + ReverseEquilibrium: yit, + ReverseUpEquilibrium: bit, + rfisht: xit, + rfloor: wit, + rfr: Oit, + Rfr: kit, + rHar: Sit, + rhard: Tit, + rharu: Cit, + rharul: Eit, + Rho: _it, + rho: Ait, + rhov: Lit, + RightAngleBracket: Rit, + RightArrowBar: Mit, + rightarrow: Dit, + RightArrow: Nit, + Rightarrow: Iit, + RightArrowLeftArrow: Pit, + rightarrowtail: $it, + RightCeiling: Bit, + RightDoubleBracket: Fit, + RightDownTeeVector: zit, + RightDownVectorBar: Vit, + RightDownVector: Uit, + RightFloor: qit, + rightharpoondown: Yit, + rightharpoonup: Qit, + rightleftarrows: Wit, + rightleftharpoons: Git, + rightrightarrows: Hit, + rightsquigarrow: Xit, + RightTeeArrow: Zit, + RightTee: jit, + RightTeeVector: Kit, + rightthreetimes: Jit, + RightTriangleBar: est, + RightTriangle: tst, + RightTriangleEqual: rst, + RightUpDownVector: nst, + RightUpTeeVector: ist, + RightUpVectorBar: sst, + RightUpVector: ast, + RightVectorBar: ost, + RightVector: lst, + ring: cst, + risingdotseq: ust, + rlarr: hst, + rlhar: fst, + rlm: dst, + rmoustache: pst, + rmoust: gst, + rnmid: mst, + roang: vst, + roarr: yst, + robrk: bst, + ropar: xst, + ropf: wst, + Ropf: Ost, + roplus: kst, + rotimes: Sst, + RoundImplies: Tst, + rpar: Cst, + rpargt: Est, + rppolint: _st, + rrarr: Ast, + Rrightarrow: Lst, + rsaquo: Rst, + rscr: Mst, + Rscr: Dst, + rsh: Nst, + Rsh: Ist, + rsqb: Pst, + rsquo: $st, + rsquor: Bst, + rthree: Fst, + rtimes: zst, + rtri: Vst, + rtrie: Ust, + rtrif: qst, + rtriltri: Yst, + RuleDelayed: Qst, + ruluhar: Wst, + rx: Gst, + Sacute: Hst, + sacute: Xst, + sbquo: Zst, + scap: jst, + Scaron: Kst, + scaron: Jst, + Sc: eat, + sc: tat, + sccue: rat, + sce: nat, + scE: iat, + Scedil: sat, + scedil: aat, + Scirc: oat, + scirc: lat, + scnap: cat, + scnE: uat, + scnsim: hat, + scpolint: fat, + scsim: dat, + Scy: pat, + scy: gat, + sdotb: mat, + sdot: vat, + sdote: yat, + searhk: bat, + searr: xat, + seArr: wat, + searrow: Oat, + sect: kat, + semi: Sat, + seswar: Tat, + setminus: Cat, + setmn: Eat, + sext: _at, + Sfr: Aat, + sfr: Lat, + sfrown: Rat, + sharp: Mat, + SHCHcy: Dat, + shchcy: Nat, + SHcy: Iat, + shcy: Pat, + ShortDownArrow: $at, + ShortLeftArrow: Bat, + shortmid: Fat, + shortparallel: zat, + ShortRightArrow: Vat, + ShortUpArrow: Uat, + shy: qat, + Sigma: Yat, + sigma: Qat, + sigmaf: Wat, + sigmav: Gat, + sim: Hat, + simdot: Xat, + sime: Zat, + simeq: jat, + simg: Kat, + simgE: Jat, + siml: eot, + simlE: tot, + simne: rot, + simplus: not, + simrarr: iot, + slarr: sot, + SmallCircle: aot, + smallsetminus: oot, + smashp: lot, + smeparsl: cot, + smid: uot, + smile: hot, + smt: fot, + smte: dot, + smtes: pot, + SOFTcy: got, + softcy: mot, + solbar: vot, + solb: yot, + sol: bot, + Sopf: xot, + sopf: wot, + spades: Oot, + spadesuit: kot, + spar: Sot, + sqcap: Tot, + sqcaps: Cot, + sqcup: Eot, + sqcups: _ot, + Sqrt: Aot, + sqsub: Lot, + sqsube: Rot, + sqsubset: Mot, + sqsubseteq: Dot, + sqsup: Not, + sqsupe: Iot, + sqsupset: Pot, + sqsupseteq: $ot, + square: Bot, + Square: Fot, + SquareIntersection: zot, + SquareSubset: Vot, + SquareSubsetEqual: Uot, + SquareSuperset: qot, + SquareSupersetEqual: Yot, + SquareUnion: Qot, + squarf: Wot, + squ: Got, + squf: Hot, + srarr: Xot, + Sscr: Zot, + sscr: jot, + ssetmn: Kot, + ssmile: Jot, + sstarf: elt, + Star: tlt, + star: rlt, + starf: nlt, + straightepsilon: ilt, + straightphi: slt, + strns: alt, + sub: olt, + Sub: llt, + subdot: clt, + subE: ult, + sube: hlt, + subedot: flt, + submult: dlt, + subnE: plt, + subne: glt, + subplus: mlt, + subrarr: vlt, + subset: ylt, + Subset: blt, + subseteq: xlt, + subseteqq: wlt, + SubsetEqual: Olt, + subsetneq: klt, + subsetneqq: Slt, + subsim: Tlt, + subsub: Clt, + subsup: Elt, + succapprox: _lt, + succ: Alt, + succcurlyeq: Llt, + Succeeds: Rlt, + SucceedsEqual: Mlt, + SucceedsSlantEqual: Dlt, + SucceedsTilde: Nlt, + succeq: Ilt, + succnapprox: Plt, + succneqq: $lt, + succnsim: Blt, + succsim: Flt, + SuchThat: zlt, + sum: Vlt, + Sum: Ult, + sung: qlt, + sup1: Ylt, + sup2: Qlt, + sup3: Wlt, + sup: Glt, + Sup: Hlt, + supdot: Xlt, + supdsub: Zlt, + supE: jlt, + supe: Klt, + supedot: Jlt, + Superset: ect, + SupersetEqual: tct, + suphsol: rct, + suphsub: nct, + suplarr: ict, + supmult: sct, + supnE: act, + supne: oct, + supplus: lct, + supset: cct, + Supset: uct, + supseteq: hct, + supseteqq: fct, + supsetneq: dct, + supsetneqq: pct, + supsim: gct, + supsub: mct, + supsup: vct, + swarhk: yct, + swarr: bct, + swArr: xct, + swarrow: wct, + swnwar: Oct, + szlig: kct, + Tab: Sct, + target: Tct, + Tau: Cct, + tau: Ect, + tbrk: _ct, + Tcaron: Act, + tcaron: Lct, + Tcedil: Rct, + tcedil: Mct, + Tcy: Dct, + tcy: Nct, + tdot: Ict, + telrec: Pct, + Tfr: $ct, + tfr: Bct, + there4: Fct, + therefore: zct, + Therefore: Vct, + Theta: Uct, + theta: qct, + thetasym: Yct, + thetav: Qct, + thickapprox: Wct, + thicksim: Gct, + ThickSpace: Hct, + ThinSpace: Xct, + thinsp: Zct, + thkap: jct, + thksim: Kct, + THORN: Jct, + thorn: eut, + tilde: tut, + Tilde: rut, + TildeEqual: nut, + TildeFullEqual: iut, + TildeTilde: sut, + timesbar: aut, + timesb: out, + times: lut, + timesd: cut, + tint: uut, + toea: hut, + topbot: fut, + topcir: dut, + top: put, + Topf: gut, + topf: mut, + topfork: vut, + tosa: yut, + tprime: but, + trade: xut, + TRADE: wut, + triangle: Out, + triangledown: kut, + triangleleft: Sut, + trianglelefteq: Tut, + triangleq: Cut, + triangleright: Eut, + trianglerighteq: _ut, + tridot: Aut, + trie: Lut, + triminus: Rut, + TripleDot: Mut, + triplus: Dut, + trisb: Nut, + tritime: Iut, + trpezium: Put, + Tscr: $ut, + tscr: But, + TScy: Fut, + tscy: zut, + TSHcy: Vut, + tshcy: Uut, + Tstrok: qut, + tstrok: Yut, + twixt: Qut, + twoheadleftarrow: Wut, + twoheadrightarrow: Gut, + Uacute: Hut, + uacute: Xut, + uarr: Zut, + Uarr: jut, + uArr: Kut, + Uarrocir: Jut, + Ubrcy: eht, + ubrcy: tht, + Ubreve: rht, + ubreve: nht, + Ucirc: iht, + ucirc: sht, + Ucy: aht, + ucy: oht, + udarr: lht, + Udblac: cht, + udblac: uht, + udhar: hht, + ufisht: fht, + Ufr: dht, + ufr: pht, + Ugrave: ght, + ugrave: mht, + uHar: vht, + uharl: yht, + uharr: bht, + uhblk: xht, + ulcorn: wht, + ulcorner: Oht, + ulcrop: kht, + ultri: Sht, + Umacr: Tht, + umacr: Cht, + uml: Eht, + UnderBar: _ht, + UnderBrace: Aht, + UnderBracket: Lht, + UnderParenthesis: Rht, + Union: Mht, + UnionPlus: Dht, + Uogon: Nht, + uogon: Iht, + Uopf: Pht, + uopf: $ht, + UpArrowBar: Bht, + uparrow: Fht, + UpArrow: zht, + Uparrow: Vht, + UpArrowDownArrow: Uht, + updownarrow: qht, + UpDownArrow: Yht, + Updownarrow: Qht, + UpEquilibrium: Wht, + upharpoonleft: Ght, + upharpoonright: Hht, + uplus: Xht, + UpperLeftArrow: Zht, + UpperRightArrow: jht, + upsi: Kht, + Upsi: Jht, + upsih: eft, + Upsilon: tft, + upsilon: rft, + UpTeeArrow: nft, + UpTee: ift, + upuparrows: sft, + urcorn: aft, + urcorner: oft, + urcrop: lft, + Uring: cft, + uring: uft, + urtri: hft, + Uscr: fft, + uscr: dft, + utdot: pft, + Utilde: gft, + utilde: mft, + utri: vft, + utrif: yft, + uuarr: bft, + Uuml: xft, + uuml: wft, + uwangle: Oft, + vangrt: kft, + varepsilon: Sft, + varkappa: Tft, + varnothing: Cft, + varphi: Eft, + varpi: _ft, + varpropto: Aft, + varr: Lft, + vArr: Rft, + varrho: Mft, + varsigma: Dft, + varsubsetneq: Nft, + varsubsetneqq: Ift, + varsupsetneq: Pft, + varsupsetneqq: $ft, + vartheta: Bft, + vartriangleleft: Fft, + vartriangleright: zft, + vBar: Vft, + Vbar: Uft, + vBarv: qft, + Vcy: Yft, + vcy: Qft, + vdash: Wft, + vDash: Gft, + Vdash: Hft, + VDash: Xft, + Vdashl: Zft, + veebar: jft, + vee: Kft, + Vee: Jft, + veeeq: edt, + vellip: tdt, + verbar: rdt, + Verbar: ndt, + vert: idt, + Vert: sdt, + VerticalBar: adt, + VerticalLine: odt, + VerticalSeparator: ldt, + VerticalTilde: cdt, + VeryThinSpace: udt, + Vfr: hdt, + vfr: fdt, + vltri: ddt, + vnsub: pdt, + vnsup: gdt, + Vopf: mdt, + vopf: vdt, + vprop: ydt, + vrtri: bdt, + Vscr: xdt, + vscr: wdt, + vsubnE: Odt, + vsubne: kdt, + vsupnE: Sdt, + vsupne: Tdt, + Vvdash: Cdt, + vzigzag: Edt, + Wcirc: _dt, + wcirc: Adt, + wedbar: Ldt, + wedge: Rdt, + Wedge: Mdt, + wedgeq: Ddt, + weierp: Ndt, + Wfr: Idt, + wfr: Pdt, + Wopf: $dt, + wopf: Bdt, + wp: Fdt, + wr: zdt, + wreath: Vdt, + Wscr: Udt, + wscr: qdt, + xcap: Ydt, + xcirc: Qdt, + xcup: Wdt, + xdtri: Gdt, + Xfr: Hdt, + xfr: Xdt, + xharr: Zdt, + xhArr: jdt, + Xi: Kdt, + xi: Jdt, + xlarr: e0t, + xlArr: t0t, + xmap: r0t, + xnis: n0t, + xodot: i0t, + Xopf: s0t, + xopf: a0t, + xoplus: o0t, + xotime: l0t, + xrarr: c0t, + xrArr: u0t, + Xscr: h0t, + xscr: f0t, + xsqcup: d0t, + xuplus: p0t, + xutri: g0t, + xvee: m0t, + xwedge: v0t, + Yacute: y0t, + yacute: b0t, + YAcy: x0t, + yacy: w0t, + Ycirc: O0t, + ycirc: k0t, + Ycy: S0t, + ycy: T0t, + yen: C0t, + Yfr: E0t, + yfr: _0t, + YIcy: A0t, + yicy: L0t, + Yopf: R0t, + yopf: M0t, + Yscr: D0t, + yscr: N0t, + YUcy: I0t, + yucy: P0t, + yuml: $0t, + Yuml: B0t, + Zacute: F0t, + zacute: z0t, + Zcaron: V0t, + zcaron: U0t, + Zcy: q0t, + zcy: Y0t, + Zdot: Q0t, + zdot: W0t, + zeetrf: G0t, + ZeroWidthSpace: H0t, + Zeta: X0t, + zeta: Z0t, + zfr: j0t, + Zfr: K0t, + ZHcy: J0t, + zhcy: ept, + zigrarr: tpt, + zopf: rpt, + Zopf: npt, + Zscr: ipt, + zscr: spt, + zwj: apt, + zwnj: opt }; (function(t) { - t.exports = upt; -})(fD); -var dD = /[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4E\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/, W1 = {}, RV = {}; -function hpt(t) { - var e, r, n = RV[t]; + t.exports = lpt; +})(cD); +var uD = /[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4E\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/, W1 = {}, _V = {}; +function cpt(t) { + var e, r, n = _V[t]; if (n) return n; - for (n = RV[t] = [], e = 0; e < 128; e++) + for (n = _V[t] = [], e = 0; e < 128; e++) r = String.fromCharCode(e), /^[0-9a-z]$/i.test(r) ? n.push(r) : n.push("%" + ("0" + e.toString(16).toUpperCase()).slice(-2)); for (e = 0; e < t.length; e++) n[t.charCodeAt(e)] = t[e]; return n; } -function fT(t, e, r) { +function hT(t, e, r) { var n, i, s, a, o, l = ""; - for (typeof e != "string" && (r = e, e = fT.defaultChars), typeof r > "u" && (r = !0), o = hpt(e), n = 0, i = t.length; n < i; n++) { + for (typeof e != "string" && (r = e, e = hT.defaultChars), typeof r > "u" && (r = !0), o = cpt(e), n = 0, i = t.length; n < i; n++) { if (s = t.charCodeAt(n), r && s === 37 && n + 2 < i && /^[0-9a-f]{2}$/i.test(t.slice(n + 1, n + 3))) { l += t.slice(n, n + 3), n += 2; continue; @@ -31153,22 +31153,22 @@ function fT(t, e, r) { } return l; } -fT.defaultChars = ";/?:@&=+$,-_.!~*'()#"; -fT.componentChars = "-_.!~*'()"; -var fpt = fT, MV = {}; -function dpt(t) { - var e, r, n = MV[t]; +hT.defaultChars = ";/?:@&=+$,-_.!~*'()#"; +hT.componentChars = "-_.!~*'()"; +var upt = hT, AV = {}; +function hpt(t) { + var e, r, n = AV[t]; if (n) return n; - for (n = MV[t] = [], e = 0; e < 128; e++) + for (n = AV[t] = [], e = 0; e < 128; e++) r = String.fromCharCode(e), n.push(r); for (e = 0; e < t.length; e++) r = t.charCodeAt(e), n[r] = "%" + ("0" + r.toString(16).toUpperCase()).slice(-2); return n; } -function dT(t, e) { +function fT(t, e) { var r; - return typeof e != "string" && (e = dT.defaultChars), r = dpt(e), t.replace(/(%[a-f0-9]{2})+/gi, function(n) { + return typeof e != "string" && (e = fT.defaultChars), r = hpt(e), t.replace(/(%[a-f0-9]{2})+/gi, function(n) { var i, s, a, o, l, u, h, f = ""; for (i = 0, s = n.length; i < s; i += 3) { if (a = parseInt(n.slice(i + 1, i + 3), 16), a < 128) { @@ -31192,20 +31192,20 @@ function dT(t, e) { return f; }); } -dT.defaultChars = ";/?:@&=+$,#"; -dT.componentChars = ""; -var ppt = dT, gpt = function(e) { +fT.defaultChars = ";/?:@&=+$,#"; +fT.componentChars = ""; +var fpt = fT, dpt = function(e) { var r = ""; return r += e.protocol || "", r += e.slashes ? "//" : "", r += e.auth ? e.auth + "@" : "", e.hostname && e.hostname.indexOf(":") !== -1 ? r += "[" + e.hostname + "]" : r += e.hostname || "", r += e.port ? ":" + e.port : "", r += e.pathname || "", r += e.search || "", r += e.hash || "", r; }; -function f3() { +function h3() { this.protocol = null, this.slashes = null, this.auth = null, this.port = null, this.hostname = null, this.hash = null, this.search = null, this.pathname = null; } -var mpt = /^([a-z0-9.+-]+:)/i, vpt = /:[0-9]*$/, ypt = /^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/, bpt = ["<", ">", '"', "`", " ", "\r", ` -`, " "], xpt = ["{", "}", "|", "\\", "^", "`"].concat(bpt), wpt = ["'"].concat(xpt), DV = ["%", "/", "?", ";", "#"].concat(wpt), NV = ["/", "?", "#"], Opt = 255, IV = /^[+a-z0-9A-Z_-]{0,63}$/, kpt = /^([+a-z0-9A-Z_-]{0,63})(.*)$/, PV = { +var ppt = /^([a-z0-9.+-]+:)/i, gpt = /:[0-9]*$/, mpt = /^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/, vpt = ["<", ">", '"', "`", " ", "\r", ` +`, " "], ypt = ["{", "}", "|", "\\", "^", "`"].concat(vpt), bpt = ["'"].concat(ypt), LV = ["%", "/", "?", ";", "#"].concat(bpt), RV = ["/", "?", "#"], xpt = 255, MV = /^[+a-z0-9A-Z_-]{0,63}$/, wpt = /^([+a-z0-9A-Z_-]{0,63})(.*)$/, DV = { javascript: !0, "javascript:": !0 -}, $V = { +}, NV = { http: !0, https: !0, ftp: !0, @@ -31217,27 +31217,27 @@ var mpt = /^([a-z0-9.+-]+:)/i, vpt = /:[0-9]*$/, ypt = /^(\/\/?(?!\/)[^\?\s]*)(\ "gopher:": !0, "file:": !0 }; -function Spt(t, e) { - if (t && t instanceof f3) +function Opt(t, e) { + if (t && t instanceof h3) return t; - var r = new f3(); + var r = new h3(); return r.parse(t, e), r; } -f3.prototype.parse = function(t, e) { +h3.prototype.parse = function(t, e) { var r, n, i, s, a, o = t; if (o = o.trim(), !e && t.split("#").length === 1) { - var l = ypt.exec(o); + var l = mpt.exec(o); if (l) return this.pathname = l[1], l[2] && (this.search = l[2]), this; } - var u = mpt.exec(o); - if (u && (u = u[0], i = u.toLowerCase(), this.protocol = u, o = o.substr(u.length)), (e || u || o.match(/^\/\/[^@\/]+@[^@\/]+/)) && (a = o.substr(0, 2) === "//", a && !(u && PV[u]) && (o = o.substr(2), this.slashes = !0)), !PV[u] && (a || u && !$V[u])) { + var u = ppt.exec(o); + if (u && (u = u[0], i = u.toLowerCase(), this.protocol = u, o = o.substr(u.length)), (e || u || o.match(/^\/\/[^@\/]+@[^@\/]+/)) && (a = o.substr(0, 2) === "//", a && !(u && DV[u]) && (o = o.substr(2), this.slashes = !0)), !DV[u] && (a || u && !NV[u])) { var h = -1; - for (r = 0; r < NV.length; r++) - s = o.indexOf(NV[r]), s !== -1 && (h === -1 || s < h) && (h = s); + for (r = 0; r < RV.length; r++) + s = o.indexOf(RV[r]), s !== -1 && (h === -1 || s < h) && (h = s); var f, d; - for (h === -1 ? d = o.lastIndexOf("@") : d = o.lastIndexOf("@", h), d !== -1 && (f = o.slice(0, d), o = o.slice(d + 1), this.auth = f), h = -1, r = 0; r < DV.length; r++) - s = o.indexOf(DV[r]), s !== -1 && (h === -1 || s < h) && (h = s); + for (h === -1 ? d = o.lastIndexOf("@") : d = o.lastIndexOf("@", h), d !== -1 && (f = o.slice(0, d), o = o.slice(d + 1), this.auth = f), h = -1, r = 0; r < LV.length; r++) + s = o.indexOf(LV[r]), s !== -1 && (h === -1 || s < h) && (h = s); h === -1 && (h = o.length), o[h - 1] === ":" && h--; var p = o.slice(0, h); o = o.slice(h), this.parseHost(p), this.hostname = this.hostname || ""; @@ -31246,52 +31246,52 @@ f3.prototype.parse = function(t, e) { var m = this.hostname.split(/\./); for (r = 0, n = m.length; r < n; r++) { var v = m[r]; - if (!!v && !v.match(IV)) { + if (!!v && !v.match(MV)) { for (var y = "", b = 0, w = v.length; b < w; b++) v.charCodeAt(b) > 127 ? y += "x" : y += v[b]; - if (!y.match(IV)) { - var O = m.slice(0, r), S = m.slice(r + 1), C = v.match(kpt); + if (!y.match(MV)) { + var O = m.slice(0, r), S = m.slice(r + 1), C = v.match(wpt); C && (O.push(C[1]), S.unshift(C[2])), S.length && (o = S.join(".") + o), this.hostname = O.join("."); break; } } } } - this.hostname.length > Opt && (this.hostname = ""), g && (this.hostname = this.hostname.substr(1, this.hostname.length - 2)); + this.hostname.length > xpt && (this.hostname = ""), g && (this.hostname = this.hostname.substr(1, this.hostname.length - 2)); } var T = o.indexOf("#"); T !== -1 && (this.hash = o.substr(T), o = o.slice(0, T)); var L = o.indexOf("?"); - return L !== -1 && (this.search = o.substr(L), o = o.slice(0, L)), o && (this.pathname = o), $V[i] && this.hostname && !this.pathname && (this.pathname = ""), this; + return L !== -1 && (this.search = o.substr(L), o = o.slice(0, L)), o && (this.pathname = o), NV[i] && this.hostname && !this.pathname && (this.pathname = ""), this; }; -f3.prototype.parseHost = function(t) { - var e = vpt.exec(t); +h3.prototype.parseHost = function(t) { + var e = gpt.exec(t); e && (e = e[0], e !== ":" && (this.port = e.substr(1)), t = t.substr(0, t.length - e.length)), t && (this.hostname = t); }; -var Tpt = Spt; -W1.encode = fpt; -W1.decode = ppt; -W1.format = gpt; -W1.parse = Tpt; -var ed = {}, x6, BV; -function Ine() { - return BV || (BV = 1, x6 = /[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/), x6; +var kpt = Opt; +W1.encode = upt; +W1.decode = fpt; +W1.format = dpt; +W1.parse = kpt; +var ed = {}, y6, IV; +function Mne() { + return IV || (IV = 1, y6 = /[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/), y6; } -var w6, FV; -function Pne() { - return FV || (FV = 1, w6 = /[\0-\x1F\x7F-\x9F]/), w6; +var b6, PV; +function Dne() { + return PV || (PV = 1, b6 = /[\0-\x1F\x7F-\x9F]/), b6; } -var O6, zV; -function Cpt() { - return zV || (zV = 1, O6 = /[\xAD\u0600-\u0605\u061C\u06DD\u070F\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/), O6; +var x6, $V; +function Spt() { + return $V || ($V = 1, x6 = /[\xAD\u0600-\u0605\u061C\u06DD\u070F\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/), x6; } -var k6, VV; -function $ne() { - return VV || (VV = 1, k6 = /[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/), k6; +var w6, BV; +function Nne() { + return BV || (BV = 1, w6 = /[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/), w6; } -var UV; -function Ept() { - return UV || (UV = 1, ed.Any = Ine(), ed.Cc = Pne(), ed.Cf = Cpt(), ed.P = dD, ed.Z = $ne()), ed; +var FV; +function Tpt() { + return FV || (FV = 1, ed.Any = Mne(), ed.Cc = Dne(), ed.Cf = Spt(), ed.P = uD, ed.Z = Nne()), ed; } (function(t) { function e(k) { @@ -31330,7 +31330,7 @@ function Ept() { } return String.fromCharCode(k); } - var u = /\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g, h = /&([a-z#][a-z0-9]{1,31});/gi, f = new RegExp(u.source + "|" + h.source, "gi"), d = /^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i, p = fD.exports; + var u = /\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g, h = /&([a-z#][a-z0-9]{1,31});/gi, f = new RegExp(u.source + "|" + h.source, "gi"), d = /^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i, p = cD.exports; function g(k, N) { var M = 0; return i(p, N) ? p[N] : N.charCodeAt(0) === 35 && d.test(N) && (M = N[1].toLowerCase() === "x" ? parseInt(N.slice(2), 16) : parseInt(N.slice(1), 10), o(M)) ? l(M) : k; @@ -31386,7 +31386,7 @@ function Ept() { } return !1; } - var R = dD; + var R = uD; function _(k) { return R.test(k); } @@ -31432,9 +31432,9 @@ function Ept() { function $(k) { return k = k.trim().replace(/\s+/g, " "), "\u1E9E".toLowerCase() === "\u1E7E" && (k = k.replace(/ẞ/g, "\xDF")), k.toLowerCase().toUpperCase(); } - t.lib = {}, t.lib.mdurl = W1, t.lib.ucmicro = Ept(), t.assign = s, t.isString = r, t.has = i, t.unescapeMd = m, t.unescapeAll = v, t.isValidEntityCode = o, t.fromCodePoint = l, t.escapeHtml = S, t.arrayReplaceAt = a, t.isSpace = L, t.isWhiteSpace = E, t.isMdAsciiPunct = A, t.isPunctChar = _, t.escapeRE = T, t.normalizeReference = $; + t.lib = {}, t.lib.mdurl = W1, t.lib.ucmicro = Tpt(), t.assign = s, t.isString = r, t.has = i, t.unescapeMd = m, t.unescapeAll = v, t.isValidEntityCode = o, t.fromCodePoint = l, t.escapeHtml = S, t.arrayReplaceAt = a, t.isSpace = L, t.isWhiteSpace = E, t.isMdAsciiPunct = A, t.isPunctChar = _, t.escapeRE = T, t.normalizeReference = $; })(Ir); -var pT = {}, _pt = function(e, r, n) { +var dT = {}, Cpt = function(e, r, n) { var i, s, a, o, l = -1, u = e.posMax, h = e.pos; for (e.pos = r + 1, i = 1; e.pos < u; ) { if (a = e.src.charCodeAt(e.pos), a === 93 && (i--, i === 0)) { @@ -31449,7 +31449,7 @@ var pT = {}, _pt = function(e, r, n) { } } return s && (l = e.pos), e.pos = h, l; -}, qV = Ir.unescapeAll, Apt = function(e, r, n) { +}, zV = Ir.unescapeAll, Ept = function(e, r, n) { var i, s, a = 0, o = r, l = { ok: !1, pos: 0, @@ -31461,7 +31461,7 @@ var pT = {}, _pt = function(e, r, n) { if (i = e.charCodeAt(r), i === 10 || i === 60) return l; if (i === 62) - return l.pos = r + 1, l.str = qV(e.slice(o + 1, r)), l.ok = !0, l; + return l.pos = r + 1, l.str = zV(e.slice(o + 1, r)), l.ok = !0, l; if (i === 92 && r + 1 < n) { r += 2; continue; @@ -31486,8 +31486,8 @@ var pT = {}, _pt = function(e, r, n) { } r++; } - return o === r || s !== 0 || (l.str = qV(e.slice(o, r)), l.lines = a, l.pos = r, l.ok = !0), l; -}, Lpt = Ir.unescapeAll, Rpt = function(e, r, n) { + return o === r || s !== 0 || (l.str = zV(e.slice(o, r)), l.lines = a, l.pos = r, l.ok = !0), l; +}, _pt = Ir.unescapeAll, Apt = function(e, r, n) { var i, s, a = 0, o = r, l = { ok: !1, pos: 0, @@ -31498,17 +31498,17 @@ var pT = {}, _pt = function(e, r, n) { return l; for (r++, s === 40 && (s = 41); r < n; ) { if (i = e.charCodeAt(r), i === s) - return l.pos = r + 1, l.lines = a, l.str = Lpt(e.slice(o + 1, r)), l.ok = !0, l; + return l.pos = r + 1, l.lines = a, l.str = _pt(e.slice(o + 1, r)), l.ok = !0, l; if (i === 40 && s === 41) return l; i === 10 ? a++ : i === 92 && r + 1 < n && (r++, e.charCodeAt(r) === 10 && a++), r++; } return l; }; -pT.parseLinkLabel = _pt; -pT.parseLinkDestination = Apt; -pT.parseLinkTitle = Rpt; -var Mpt = Ir.assign, Dpt = Ir.unescapeAll, i0 = Ir.escapeHtml, Hc = {}; +dT.parseLinkLabel = Cpt; +dT.parseLinkDestination = Ept; +dT.parseLinkTitle = Apt; +var Lpt = Ir.assign, Rpt = Ir.unescapeAll, i0 = Ir.escapeHtml, Hc = {}; Hc.code_inline = function(t, e, r, n, i) { var s = t[e]; return "" + i0(t[e].content) + ""; @@ -31519,7 +31519,7 @@ Hc.code_block = function(t, e, r, n, i) { `; }; Hc.fence = function(t, e, r, n, i) { - var s = t[e], a = s.info ? Dpt(s.info).trim() : "", o = "", l = "", u, h, f, d, p; + var s = t[e], a = s.info ? Rpt(s.info).trim() : "", o = "", l = "", u, h, f, d, p; return a && (f = a.split(/(\s+)/g), o = f[0], l = f.slice(2).join("")), r.highlight ? u = r.highlight(s.content, o, l) || i0(s.content) : u = i0(s.content), u.indexOf("\s]/i.test(t); } -function Upt(t) { +function zpt(t) { return /^<\/a\s*>/i.test(t); } -var qpt = function(e) { +var Vpt = function(e) { var r, n, i, s, a, o, l, u, h, f, d, p, g, m, v, y, b = e.tokens, w; if (!!e.md.options.linkify) { for (n = 0, i = b.length; n < i; n++) @@ -31707,42 +31707,42 @@ var qpt = function(e) { r--; continue; } - if (o.type === "html_inline" && (Vpt(o.content) && g > 0 && g--, Upt(o.content) && g++), !(g > 0) && o.type === "text" && e.md.linkify.test(o.content)) { + if (o.type === "html_inline" && (Fpt(o.content) && g > 0 && g--, zpt(o.content) && g++), !(g > 0) && o.type === "text" && e.md.linkify.test(o.content)) { for (h = o.content, w = e.md.linkify.match(h), l = [], p = o.level, d = 0, u = 0; u < w.length; u++) m = w[u].url, v = e.md.normalizeLink(m), e.md.validateLink(v) && (y = w[u].text, w[u].schema ? w[u].schema === "mailto:" && !/^mailto:/i.test(y) ? y = e.md.normalizeLinkText("mailto:" + y).replace(/^mailto:/, "") : y = e.md.normalizeLinkText(y) : y = e.md.normalizeLinkText("http://" + y).replace(/^http:\/\//, ""), f = w[u].index, f > d && (a = new e.Token("text", "", 0), a.content = h.slice(d, f), a.level = p, l.push(a)), a = new e.Token("link_open", "a", 1), a.attrs = [["href", v]], a.level = p++, a.markup = "linkify", a.info = "auto", l.push(a), a = new e.Token("text", "", 0), a.content = y, a.level = p, l.push(a), a = new e.Token("link_close", "a", -1), a.level = --p, a.markup = "linkify", a.info = "auto", l.push(a), d = w[u].lastIndex); - d < h.length && (a = new e.Token("text", "", 0), a.content = h.slice(d), a.level = p, l.push(a)), b[n].children = s = zpt(s, r, l); + d < h.length && (a = new e.Token("text", "", 0), a.content = h.slice(d), a.level = p, l.push(a)), b[n].children = s = Bpt(s, r, l); } } } -}, Bne = /\+-|\.\.|\?\?\?\?|!!!!|,,|--/, Ypt = /\((c|tm|r|p)\)/i, Qpt = /\((c|tm|r|p)\)/ig, Wpt = { +}, Ine = /\+-|\.\.|\?\?\?\?|!!!!|,,|--/, Upt = /\((c|tm|r|p)\)/i, qpt = /\((c|tm|r|p)\)/ig, Ypt = { c: "\xA9", r: "\xAE", p: "\xA7", tm: "\u2122" }; -function Gpt(t, e) { - return Wpt[e.toLowerCase()]; +function Qpt(t, e) { + return Ypt[e.toLowerCase()]; } -function Hpt(t) { +function Wpt(t) { var e, r, n = 0; for (e = t.length - 1; e >= 0; e--) - r = t[e], r.type === "text" && !n && (r.content = r.content.replace(Qpt, Gpt)), r.type === "link_open" && r.info === "auto" && n--, r.type === "link_close" && r.info === "auto" && n++; + r = t[e], r.type === "text" && !n && (r.content = r.content.replace(qpt, Qpt)), r.type === "link_open" && r.info === "auto" && n--, r.type === "link_close" && r.info === "auto" && n++; } -function Xpt(t) { +function Gpt(t) { var e, r, n = 0; for (e = t.length - 1; e >= 0; e--) - r = t[e], r.type === "text" && !n && Bne.test(r.content) && (r.content = r.content.replace(/\+-/g, "\xB1").replace(/\.{2,}/g, "\u2026").replace(/([?!])…/g, "$1..").replace(/([?!]){4,}/g, "$1$1$1").replace(/,{2,}/g, ",").replace(/(^|[^-])---(?=[^-]|$)/mg, "$1\u2014").replace(/(^|\s)--(?=\s|$)/mg, "$1\u2013").replace(/(^|[^-\s])--(?=[^-\s]|$)/mg, "$1\u2013")), r.type === "link_open" && r.info === "auto" && n--, r.type === "link_close" && r.info === "auto" && n++; + r = t[e], r.type === "text" && !n && Ine.test(r.content) && (r.content = r.content.replace(/\+-/g, "\xB1").replace(/\.{2,}/g, "\u2026").replace(/([?!])…/g, "$1..").replace(/([?!]){4,}/g, "$1$1$1").replace(/,{2,}/g, ",").replace(/(^|[^-])---(?=[^-]|$)/mg, "$1\u2014").replace(/(^|\s)--(?=\s|$)/mg, "$1\u2013").replace(/(^|[^-\s])--(?=[^-\s]|$)/mg, "$1\u2013")), r.type === "link_open" && r.info === "auto" && n--, r.type === "link_close" && r.info === "auto" && n++; } -var Zpt = function(e) { +var Hpt = function(e) { var r; if (!!e.md.options.typographer) for (r = e.tokens.length - 1; r >= 0; r--) - e.tokens[r].type === "inline" && (Ypt.test(e.tokens[r].content) && Hpt(e.tokens[r].children), Bne.test(e.tokens[r].content) && Xpt(e.tokens[r].children)); -}, YV = Ir.isWhiteSpace, QV = Ir.isPunctChar, WV = Ir.isMdAsciiPunct, jpt = /['"]/, GV = /['"]/g, HV = "\u2019"; + e.tokens[r].type === "inline" && (Upt.test(e.tokens[r].content) && Wpt(e.tokens[r].children), Ine.test(e.tokens[r].content) && Gpt(e.tokens[r].children)); +}, VV = Ir.isWhiteSpace, UV = Ir.isPunctChar, qV = Ir.isMdAsciiPunct, Xpt = /['"]/, YV = /['"]/g, QV = "\u2019"; function Vw(t, e, r) { return t.substr(0, e) + r + t.substr(e + 1); } -function Kpt(t, e) { +function Zpt(t, e) { var r, n, i, s, a, o, l, u, h, f, d, p, g, m, v, y, b, w, O, S, C; for (O = [], r = 0; r < t.length; r++) { for (n = t[r], l = t[r].level, b = O.length - 1; b >= 0 && !(O[b].level <= l); b--) @@ -31751,7 +31751,7 @@ function Kpt(t, e) { continue; i = n.content, a = 0, o = i.length; e: - for (; a < o && (GV.lastIndex = a, s = GV.exec(i), !!s); ) { + for (; a < o && (YV.lastIndex = a, s = YV.exec(i), !!s); ) { if (v = y = !0, a = s.index + 1, w = s[0] === "'", h = 32, s.index - 1 >= 0) h = i.charCodeAt(s.index - 1); else @@ -31768,8 +31768,8 @@ function Kpt(t, e) { f = t[b].content.charCodeAt(0); break; } - if (d = WV(h) || QV(String.fromCharCode(h)), p = WV(f) || QV(String.fromCharCode(f)), g = YV(h), m = YV(f), m ? v = !1 : p && (g || d || (v = !1)), g ? y = !1 : d && (m || p || (y = !1)), f === 34 && s[0] === '"' && h >= 48 && h <= 57 && (y = v = !1), v && y && (v = d, y = p), !v && !y) { - w && (n.content = Vw(n.content, s.index, HV)); + if (d = qV(h) || UV(String.fromCharCode(h)), p = qV(f) || UV(String.fromCharCode(f)), g = VV(h), m = VV(f), m ? v = !1 : p && (g || d || (v = !1)), g ? y = !1 : d && (m || p || (y = !1)), f === 34 && s[0] === '"' && h >= 48 && h <= 57 && (y = v = !1), v && y && (v = d, y = p), !v && !y) { + w && (n.content = Vw(n.content, s.index, QV)); continue; } if (y) { @@ -31788,15 +31788,15 @@ function Kpt(t, e) { pos: s.index, single: w, level: l - }) : y && w && (n.content = Vw(n.content, s.index, HV)); + }) : y && w && (n.content = Vw(n.content, s.index, QV)); } } } -var Jpt = function(e) { +var jpt = function(e) { var r; if (!!e.md.options.typographer) for (r = e.tokens.length - 1; r >= 0; r--) - e.tokens[r].type !== "inline" || !jpt.test(e.tokens[r].content) || Kpt(e.tokens[r].children, e); + e.tokens[r].type !== "inline" || !Xpt.test(e.tokens[r].content) || Zpt(e.tokens[r].children, e); }; function H1(t, e, r) { this.type = t, this.tag = e, this.attrs = null, this.map = null, this.nesting = r, this.level = 0, this.children = null, this.content = "", this.markup = "", this.info = "", this.meta = null, this.block = !1, this.hidden = !1; @@ -31825,51 +31825,51 @@ H1.prototype.attrJoin = function(e, r) { var n = this.attrIndex(e); n < 0 ? this.attrPush([e, r]) : this.attrs[n][1] = this.attrs[n][1] + " " + r; }; -var gD = H1, egt = gD; -function Fne(t, e, r) { +var fD = H1, Kpt = fD; +function Pne(t, e, r) { this.src = t, this.env = r, this.tokens = [], this.inlineMode = !1, this.md = e; } -Fne.prototype.Token = egt; -var tgt = Fne, rgt = pD, S6 = [ - ["normalize", $pt], - ["block", Bpt], - ["inline", Fpt], - ["linkify", qpt], - ["replacements", Zpt], - ["smartquotes", Jpt] +Pne.prototype.Token = Kpt; +var Jpt = Pne, egt = hD, O6 = [ + ["normalize", Ipt], + ["block", Ppt], + ["inline", $pt], + ["linkify", Vpt], + ["replacements", Hpt], + ["smartquotes", jpt] ]; -function mD() { - this.ruler = new rgt(); - for (var t = 0; t < S6.length; t++) - this.ruler.push(S6[t][0], S6[t][1]); +function dD() { + this.ruler = new egt(); + for (var t = 0; t < O6.length; t++) + this.ruler.push(O6[t][0], O6[t][1]); } -mD.prototype.process = function(t) { +dD.prototype.process = function(t) { var e, r, n; for (n = this.ruler.getRules(""), e = 0, r = n.length; e < r; e++) n[e](t); }; -mD.prototype.State = tgt; -var ngt = mD, T6 = Ir.isSpace; -function C6(t, e) { +dD.prototype.State = Jpt; +var tgt = dD, k6 = Ir.isSpace; +function S6(t, e) { var r = t.bMarks[e] + t.tShift[e], n = t.eMarks[e]; return t.src.substr(r, n - r); } -function XV(t) { +function WV(t) { var e = [], r = 0, n = t.length, i, s = !1, a = 0, o = ""; for (i = t.charCodeAt(r); r < n; ) i === 124 && (s ? (o += t.substring(a, r - 1), a = r) : (e.push(o + t.substring(a, r)), o = "", a = r + 1)), s = i === 92, r++, i = t.charCodeAt(r); return e.push(o + t.substring(a)), e; } -var igt = function(e, r, n, i) { +var rgt = function(e, r, n, i) { var s, a, o, l, u, h, f, d, p, g, m, v, y, b, w, O, S, C; - if (r + 2 > n || (h = r + 1, e.sCount[h] < e.blkIndent) || e.sCount[h] - e.blkIndent >= 4 || (o = e.bMarks[h] + e.tShift[h], o >= e.eMarks[h]) || (S = e.src.charCodeAt(o++), S !== 124 && S !== 45 && S !== 58) || o >= e.eMarks[h] || (C = e.src.charCodeAt(o++), C !== 124 && C !== 45 && C !== 58 && !T6(C)) || S === 45 && T6(C)) + if (r + 2 > n || (h = r + 1, e.sCount[h] < e.blkIndent) || e.sCount[h] - e.blkIndent >= 4 || (o = e.bMarks[h] + e.tShift[h], o >= e.eMarks[h]) || (S = e.src.charCodeAt(o++), S !== 124 && S !== 45 && S !== 58) || o >= e.eMarks[h] || (C = e.src.charCodeAt(o++), C !== 124 && C !== 45 && C !== 58 && !k6(C)) || S === 45 && k6(C)) return !1; for (; o < e.eMarks[h]; ) { - if (s = e.src.charCodeAt(o), s !== 124 && s !== 45 && s !== 58 && !T6(s)) + if (s = e.src.charCodeAt(o), s !== 124 && s !== 45 && s !== 58 && !k6(s)) return !1; o++; } - for (a = C6(e, r + 1), f = a.split("|"), g = [], l = 0; l < f.length; l++) { + for (a = S6(e, r + 1), f = a.split("|"), g = [], l = 0; l < f.length; l++) { if (m = f[l].trim(), !m) { if (l === 0 || l === f.length - 1) continue; @@ -31879,7 +31879,7 @@ var igt = function(e, r, n, i) { return !1; m.charCodeAt(m.length - 1) === 58 ? g.push(m.charCodeAt(0) === 58 ? "center" : "right") : m.charCodeAt(0) === 58 ? g.push("left") : g.push(""); } - if (a = C6(e, r).trim(), a.indexOf("|") === -1 || e.sCount[r] - e.blkIndent >= 4 || (f = XV(a), f.length && f[0] === "" && f.shift(), f.length && f[f.length - 1] === "" && f.pop(), d = f.length, d === 0 || d !== g.length)) + if (a = S6(e, r).trim(), a.indexOf("|") === -1 || e.sCount[r] - e.blkIndent >= 4 || (f = WV(a), f.length && f[0] === "" && f.shift(), f.length && f[f.length - 1] === "" && f.pop(), d = f.length, d === 0 || d !== g.length)) return !1; if (i) return !0; @@ -31891,14 +31891,14 @@ var igt = function(e, r, n, i) { w = !0; break; } - if (w || (a = C6(e, h).trim(), !a) || e.sCount[h] - e.blkIndent >= 4) + if (w || (a = S6(e, h).trim(), !a) || e.sCount[h] - e.blkIndent >= 4) break; - for (f = XV(a), f.length && f[0] === "" && f.shift(), f.length && f[f.length - 1] === "" && f.pop(), h === r + 2 && (p = e.push("tbody_open", "tbody", 1), p.map = y = [r + 2, 0]), p = e.push("tr_open", "tr", 1), p.map = [h, h + 1], l = 0; l < d; l++) + for (f = WV(a), f.length && f[0] === "" && f.shift(), f.length && f[f.length - 1] === "" && f.pop(), h === r + 2 && (p = e.push("tbody_open", "tbody", 1), p.map = y = [r + 2, 0]), p = e.push("tr_open", "tr", 1), p.map = [h, h + 1], l = 0; l < d; l++) p = e.push("td_open", "td", 1), g[l] && (p.attrs = [["style", "text-align:" + g[l]]]), p = e.push("inline", "", 0), p.content = f[l] ? f[l].trim() : "", p.children = [], p = e.push("td_close", "td", -1); p = e.push("tr_close", "tr", -1); } return y && (p = e.push("tbody_close", "tbody", -1), y[1] = h), p = e.push("table_close", "table", -1), v[1] = h, e.parentType = b, e.line = h, !0; -}, sgt = function(e, r, n) { +}, ngt = function(e, r, n) { var i, s, a; if (e.sCount[r] - e.blkIndent < 4) return !1; @@ -31915,7 +31915,7 @@ var igt = function(e, r, n, i) { } return e.line = s, a = e.push("code_block", "code", 0), a.content = e.getLines(r, s, 4 + e.blkIndent, !1) + ` `, a.map = [r, e.line], !0; -}, agt = function(e, r, n, i) { +}, igt = function(e, r, n, i) { var s, a, o, l, u, h, f, d = !1, p = e.bMarks[r] + e.tShift[r], g = e.eMarks[r]; if (e.sCount[r] - e.blkIndent >= 4 || p + 3 > g || (s = e.src.charCodeAt(p), s !== 126 && s !== 96) || (u = p, p = e.skipChars(p, s), a = p - u, a < 3) || (f = e.src.slice(u, p), o = e.src.slice(p, g), s === 96 && o.indexOf(String.fromCharCode(s)) >= 0)) return !1; @@ -31927,19 +31927,19 @@ var igt = function(e, r, n, i) { break; } return a = e.sCount[r], e.line = l + (d ? 1 : 0), h = e.push("fence", "code", 0), h.info = o, h.content = e.getLines(r + 1, l, a, !0), h.markup = f, h.map = [r, e.line], !0; -}, ZV = Ir.isSpace, ogt = function(e, r, n, i) { +}, GV = Ir.isSpace, sgt = function(e, r, n, i) { var s, a, o, l, u, h, f, d, p, g, m, v, y, b, w, O, S, C, T, L, E = e.lineMax, R = e.bMarks[r] + e.tShift[r], _ = e.eMarks[r]; if (e.sCount[r] - e.blkIndent >= 4 || e.src.charCodeAt(R++) !== 62) return !1; if (i) return !0; - for (l = p = e.sCount[r] + 1, e.src.charCodeAt(R) === 32 ? (R++, l++, p++, s = !1, O = !0) : e.src.charCodeAt(R) === 9 ? (O = !0, (e.bsCount[r] + p) % 4 === 3 ? (R++, l++, p++, s = !1) : s = !0) : O = !1, g = [e.bMarks[r]], e.bMarks[r] = R; R < _ && (a = e.src.charCodeAt(R), ZV(a)); ) { + for (l = p = e.sCount[r] + 1, e.src.charCodeAt(R) === 32 ? (R++, l++, p++, s = !1, O = !0) : e.src.charCodeAt(R) === 9 ? (O = !0, (e.bsCount[r] + p) % 4 === 3 ? (R++, l++, p++, s = !1) : s = !0) : O = !1, g = [e.bMarks[r]], e.bMarks[r] = R; R < _ && (a = e.src.charCodeAt(R), GV(a)); ) { a === 9 ? p += 4 - (p + e.bsCount[r] + (s ? 1 : 0)) % 4 : p++; R++; } for (m = [e.bsCount[r]], e.bsCount[r] = e.sCount[r] + 1 + (O ? 1 : 0), h = R >= _, b = [e.sCount[r]], e.sCount[r] = p - l, w = [e.tShift[r]], e.tShift[r] = R - e.bMarks[r], C = e.md.block.ruler.getRules("blockquote"), y = e.parentType, e.parentType = "blockquote", d = r + 1; d < n && (L = e.sCount[d] < e.blkIndent, R = e.bMarks[d] + e.tShift[d], _ = e.eMarks[d], !(R >= _)); d++) { if (e.src.charCodeAt(R++) === 62 && !L) { - for (l = p = e.sCount[d] + 1, e.src.charCodeAt(R) === 32 ? (R++, l++, p++, s = !1, O = !0) : e.src.charCodeAt(R) === 9 ? (O = !0, (e.bsCount[d] + p) % 4 === 3 ? (R++, l++, p++, s = !1) : s = !0) : O = !1, g.push(e.bMarks[d]), e.bMarks[d] = R; R < _ && (a = e.src.charCodeAt(R), ZV(a)); ) { + for (l = p = e.sCount[d] + 1, e.src.charCodeAt(R) === 32 ? (R++, l++, p++, s = !1, O = !0) : e.src.charCodeAt(R) === 9 ? (O = !0, (e.bsCount[d] + p) % 4 === 3 ? (R++, l++, p++, s = !1) : s = !0) : O = !1, g.push(e.bMarks[d]), e.bMarks[d] = R; R < _ && (a = e.src.charCodeAt(R), GV(a)); ) { a === 9 ? p += 4 - (p + e.bsCount[d] + (s ? 1 : 0)) % 4 : p++; R++; } @@ -31962,22 +31962,22 @@ var igt = function(e, r, n, i) { for (v = e.blkIndent, e.blkIndent = 0, T = e.push("blockquote_open", "blockquote", 1), T.markup = ">", T.map = f = [r, 0], e.md.block.tokenize(e, r, d), T = e.push("blockquote_close", "blockquote", -1), T.markup = ">", e.lineMax = E, e.parentType = y, f[1] = e.line, o = 0; o < w.length; o++) e.bMarks[o + r] = g[o], e.tShift[o + r] = w[o], e.sCount[o + r] = b[o], e.bsCount[o + r] = m[o]; return e.blkIndent = v, !0; -}, lgt = Ir.isSpace, cgt = function(e, r, n, i) { +}, agt = Ir.isSpace, ogt = function(e, r, n, i) { var s, a, o, l, u = e.bMarks[r] + e.tShift[r], h = e.eMarks[r]; if (e.sCount[r] - e.blkIndent >= 4 || (s = e.src.charCodeAt(u++), s !== 42 && s !== 45 && s !== 95)) return !1; for (a = 1; u < h; ) { - if (o = e.src.charCodeAt(u++), o !== s && !lgt(o)) + if (o = e.src.charCodeAt(u++), o !== s && !agt(o)) return !1; o === s && a++; } return a < 3 ? !1 : (i || (e.line = r + 1, l = e.push("hr", "hr", 0), l.map = [r, e.line], l.markup = Array(a + 1).join(String.fromCharCode(s))), !0); -}, zne = Ir.isSpace; -function jV(t, e) { +}, $ne = Ir.isSpace; +function HV(t, e) { var r, n, i, s; - return n = t.bMarks[e] + t.tShift[e], i = t.eMarks[e], r = t.src.charCodeAt(n++), r !== 42 && r !== 45 && r !== 43 || n < i && (s = t.src.charCodeAt(n), !zne(s)) ? -1 : n; + return n = t.bMarks[e] + t.tShift[e], i = t.eMarks[e], r = t.src.charCodeAt(n++), r !== 42 && r !== 45 && r !== 43 || n < i && (s = t.src.charCodeAt(n), !$ne(s)) ? -1 : n; } -function KV(t, e) { +function XV(t, e) { var r, n = t.bMarks[e] + t.tShift[e], i = n, s = t.eMarks[e]; if (i + 1 >= s || (r = t.src.charCodeAt(i++), r < 48 || r > 57)) return -1; @@ -31993,21 +31993,21 @@ function KV(t, e) { break; return -1; } - return i < s && (r = t.src.charCodeAt(i), !zne(r)) ? -1 : i; + return i < s && (r = t.src.charCodeAt(i), !$ne(r)) ? -1 : i; } -function ugt(t, e) { +function lgt(t, e) { var r, n, i = t.level + 2; for (r = e + 2, n = t.tokens.length - 2; r < n; r++) t.tokens[r].level === i && t.tokens[r].type === "paragraph_open" && (t.tokens[r + 2].hidden = !0, t.tokens[r].hidden = !0, r += 2); } -var hgt = function(e, r, n, i) { +var cgt = function(e, r, n, i) { var s, a, o, l, u, h, f, d, p, g, m, v, y, b, w, O, S, C, T, L, E, R, _, A, $, k, N, M, I = !1, D = !0; if (e.sCount[r] - e.blkIndent >= 4 || e.listIndent >= 0 && e.sCount[r] - e.listIndent >= 4 && e.sCount[r] < e.blkIndent) return !1; - if (i && e.parentType === "paragraph" && e.sCount[r] >= e.blkIndent && (I = !0), (_ = KV(e, r)) >= 0) { + if (i && e.parentType === "paragraph" && e.sCount[r] >= e.blkIndent && (I = !0), (_ = XV(e, r)) >= 0) { if (f = !0, $ = e.bMarks[r] + e.tShift[r], y = Number(e.src.slice($, _ - 1)), I && y !== 1) return !1; - } else if ((_ = jV(e, r)) >= 0) + } else if ((_ = HV(e, r)) >= 0) f = !1; else return !1; @@ -32035,16 +32035,16 @@ var hgt = function(e, r, n, i) { if (k) break; if (f) { - if (_ = KV(e, w), _ < 0) + if (_ = XV(e, w), _ < 0) break; $ = e.bMarks[w] + e.tShift[w]; - } else if (_ = jV(e, w), _ < 0) + } else if (_ = HV(e, w), _ < 0) break; if (v !== e.src.charCodeAt(_ - 1)) break; } - return f ? M = e.push("ordered_list_close", "ol", -1) : M = e.push("bullet_list_close", "ul", -1), M.markup = String.fromCharCode(v), g[1] = w, e.line = w, e.parentType = C, D && ugt(e, m), !0; -}, fgt = Ir.normalizeReference, Uw = Ir.isSpace, dgt = function(e, r, n, i) { + return f ? M = e.push("ordered_list_close", "ol", -1) : M = e.push("bullet_list_close", "ul", -1), M.markup = String.fromCharCode(v), g[1] = w, e.line = w, e.parentType = C, D && lgt(e, m), !0; +}, ugt = Ir.normalizeReference, Uw = Ir.isSpace, hgt = function(e, r, n, i) { var s, a, o, l, u, h, f, d, p, g, m, v, y, b, w, O, S = 0, C = e.bMarks[r] + e.tShift[r], T = e.eMarks[r], L = r + 1; if (e.sCount[r] - e.blkIndent >= 4 || e.src.charCodeAt(C) !== 91) return !1; @@ -32092,8 +32092,8 @@ var hgt = function(e, r, n, i) { if (C < T && y.charCodeAt(C) !== 10 && O) for (O = "", C = a, S = o; C < T && (s = y.charCodeAt(C), !!Uw(s)); ) C++; - return C < T && y.charCodeAt(C) !== 10 || (d = fgt(y.slice(1, p)), !d) ? !1 : (i || (typeof e.env.references > "u" && (e.env.references = {}), typeof e.env.references[d] > "u" && (e.env.references[d] = { title: O, href: u }), e.parentType = g, e.line = r + S + 1), !0); -}, pgt = [ + return C < T && y.charCodeAt(C) !== 10 || (d = ugt(y.slice(1, p)), !d) ? !1 : (i || (typeof e.env.references > "u" && (e.env.references = {}), typeof e.env.references[d] > "u" && (e.env.references[d] = { title: O, href: u }), e.parentType = g, e.line = r + S + 1), !0); +}, fgt = [ "address", "article", "aside", @@ -32156,18 +32156,18 @@ var hgt = function(e, r, n, i) { "tr", "track", "ul" -], gT = {}, ggt = "[a-zA-Z_:][a-zA-Z0-9:._-]*", mgt = "[^\"'=<>`\\x00-\\x20]+", vgt = "'[^']*'", ygt = '"[^"]*"', bgt = "(?:" + mgt + "|" + vgt + "|" + ygt + ")", xgt = "(?:\\s+" + ggt + "(?:\\s*=\\s*" + bgt + ")?)", Vne = "<[A-Za-z][A-Za-z0-9\\-]*" + xgt + "*\\s*\\/?>", Une = "<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>", wgt = "|", Ogt = "<[?][\\s\\S]*?[?]>", kgt = "]*>", Sgt = "", Tgt = new RegExp("^(?:" + Vne + "|" + Une + "|" + wgt + "|" + Ogt + "|" + kgt + "|" + Sgt + ")"), Cgt = new RegExp("^(?:" + Vne + "|" + Une + ")"); -gT.HTML_TAG_RE = Tgt; -gT.HTML_OPEN_CLOSE_TAG_RE = Cgt; -var Egt = pgt, _gt = gT.HTML_OPEN_CLOSE_TAG_RE, hp = [ +], pT = {}, dgt = "[a-zA-Z_:][a-zA-Z0-9:._-]*", pgt = "[^\"'=<>`\\x00-\\x20]+", ggt = "'[^']*'", mgt = '"[^"]*"', vgt = "(?:" + pgt + "|" + ggt + "|" + mgt + ")", ygt = "(?:\\s+" + dgt + "(?:\\s*=\\s*" + vgt + ")?)", Bne = "<[A-Za-z][A-Za-z0-9\\-]*" + ygt + "*\\s*\\/?>", Fne = "<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>", bgt = "|", xgt = "<[?][\\s\\S]*?[?]>", wgt = "]*>", Ogt = "", kgt = new RegExp("^(?:" + Bne + "|" + Fne + "|" + bgt + "|" + xgt + "|" + wgt + "|" + Ogt + ")"), Sgt = new RegExp("^(?:" + Bne + "|" + Fne + ")"); +pT.HTML_TAG_RE = kgt; +pT.HTML_OPEN_CLOSE_TAG_RE = Sgt; +var Tgt = fgt, Cgt = pT.HTML_OPEN_CLOSE_TAG_RE, hp = [ [/^<(script|pre|style|textarea)(?=(\s|>|$))/i, /<\/(script|pre|style|textarea)>/i, !0], [/^/, !0], [/^<\?/, /\?>/, !0], [/^/, !0], [/^/, !0], - [new RegExp("^|$))", "i"), /^$/, !0], - [new RegExp(_gt.source + "\\s*$"), /^$/, !1] -], Agt = function(e, r, n, i) { + [new RegExp("^|$))", "i"), /^$/, !0], + [new RegExp(Cgt.source + "\\s*$"), /^$/, !1] +], Egt = function(e, r, n, i) { var s, a, o, l, u = e.bMarks[r] + e.tShift[r], h = e.eMarks[r]; if (e.sCount[r] - e.blkIndent >= 4 || !e.md.options.html || e.src.charCodeAt(u) !== 60) return !1; @@ -32185,14 +32185,14 @@ var Egt = pgt, _gt = gT.HTML_OPEN_CLOSE_TAG_RE, hp = [ } } return e.line = a, o = e.push("html_block", "", 0), o.map = [r, a], o.content = e.getLines(r, a, e.blkIndent, !0), !0; -}, JV = Ir.isSpace, Lgt = function(e, r, n, i) { +}, ZV = Ir.isSpace, _gt = function(e, r, n, i) { var s, a, o, l, u = e.bMarks[r] + e.tShift[r], h = e.eMarks[r]; if (e.sCount[r] - e.blkIndent >= 4 || (s = e.src.charCodeAt(u), s !== 35 || u >= h)) return !1; for (a = 1, s = e.src.charCodeAt(++u); s === 35 && u < h && a <= 6; ) a++, s = e.src.charCodeAt(++u); - return a > 6 || u < h && !JV(s) ? !1 : (i || (h = e.skipSpacesBack(h, u), o = e.skipCharsBack(h, 35, u), o > u && JV(e.src.charCodeAt(o - 1)) && (h = o), e.line = r + 1, l = e.push("heading_open", "h" + String(a), 1), l.markup = "########".slice(0, a), l.map = [r, e.line], l = e.push("inline", "", 0), l.content = e.src.slice(u, h).trim(), l.map = [r, e.line], l.children = [], l = e.push("heading_close", "h" + String(a), -1), l.markup = "########".slice(0, a)), !0); -}, Rgt = function(e, r, n) { + return a > 6 || u < h && !ZV(s) ? !1 : (i || (h = e.skipSpacesBack(h, u), o = e.skipCharsBack(h, 35, u), o > u && ZV(e.src.charCodeAt(o - 1)) && (h = o), e.line = r + 1, l = e.push("heading_open", "h" + String(a), 1), l.markup = "########".slice(0, a), l.map = [r, e.line], l = e.push("inline", "", 0), l.content = e.src.slice(u, h).trim(), l.map = [r, e.line], l.children = [], l = e.push("heading_close", "h" + String(a), -1), l.markup = "########".slice(0, a)), !0); +}, Agt = function(e, r, n) { var i, s, a, o, l, u, h, f, d, p = r + 1, g, m = e.md.block.ruler.getRules("paragraph"); if (e.sCount[r] - e.blkIndent >= 4) return !1; @@ -32213,7 +32213,7 @@ var Egt = pgt, _gt = gT.HTML_OPEN_CLOSE_TAG_RE, hp = [ } } return f ? (i = e.getLines(r, p, e.blkIndent, !1).trim(), e.line = p + 1, l = e.push("heading_open", "h" + String(f), 1), l.markup = String.fromCharCode(d), l.map = [r, e.line], l = e.push("inline", "", 0), l.content = i, l.map = [r, e.line - 1], l.children = [], l = e.push("heading_close", "h" + String(f), -1), l.markup = String.fromCharCode(d), e.parentType = g, !0) : !1; -}, Mgt = function(e, r) { +}, Lgt = function(e, r) { var n, i, s, a, o, l, u = r + 1, h = e.md.block.ruler.getRules("paragraph"), f = e.lineMax; for (l = e.parentType, e.parentType = "paragraph"; u < f && !e.isEmpty(u); u++) if (!(e.sCount[u] - e.blkIndent > 3) && !(e.sCount[u] < 0)) { @@ -32226,12 +32226,12 @@ var Egt = pgt, _gt = gT.HTML_OPEN_CLOSE_TAG_RE, hp = [ break; } return n = e.getLines(r, u, e.blkIndent, !1).trim(), e.line = u, o = e.push("paragraph_open", "p", 1), o.map = [r, e.line], o = e.push("inline", "", 0), o.content = n, o.map = [r, e.line], o.children = [], o = e.push("paragraph_close", "p", -1), e.parentType = l, !0; -}, qne = gD, mT = Ir.isSpace; +}, zne = fD, gT = Ir.isSpace; function Xc(t, e, r, n) { var i, s, a, o, l, u, h, f; for (this.src = t, this.md = e, this.env = r, this.tokens = n, this.bMarks = [], this.eMarks = [], this.tShift = [], this.sCount = [], this.bsCount = [], this.blkIndent = 0, this.line = 0, this.lineMax = 0, this.tight = !1, this.ddIndent = -1, this.listIndent = -1, this.parentType = "root", this.level = 0, this.result = "", s = this.src, f = !1, a = o = u = h = 0, l = s.length; o < l; o++) { if (i = s.charCodeAt(o), !f) - if (mT(i)) { + if (gT(i)) { u++, i === 9 ? h += 4 - h % 4 : h++; continue; } else @@ -32241,7 +32241,7 @@ function Xc(t, e, r, n) { this.bMarks.push(s.length), this.eMarks.push(s.length), this.tShift.push(0), this.sCount.push(0), this.bsCount.push(0), this.lineMax = this.bMarks.length - 1; } Xc.prototype.push = function(t, e, r) { - var n = new qne(t, e, r); + var n = new zne(t, e, r); return n.block = !0, r < 0 && this.level--, n.level = this.level, r > 0 && this.level++, this.tokens.push(n), n; }; Xc.prototype.isEmpty = function(e) { @@ -32253,7 +32253,7 @@ Xc.prototype.skipEmptyLines = function(e) { return e; }; Xc.prototype.skipSpaces = function(e) { - for (var r, n = this.src.length; e < n && (r = this.src.charCodeAt(e), !!mT(r)); e++) + for (var r, n = this.src.length; e < n && (r = this.src.charCodeAt(e), !!gT(r)); e++) ; return e; }; @@ -32261,7 +32261,7 @@ Xc.prototype.skipSpacesBack = function(e, r) { if (e <= r) return e; for (; e > r; ) - if (!mT(this.src.charCodeAt(--e))) + if (!gT(this.src.charCodeAt(--e))) return e + 1; return e; }; @@ -32284,7 +32284,7 @@ Xc.prototype.getLines = function(e, r, n, i) { return ""; for (h = new Array(r - e), s = 0; d < r; d++, s++) { for (a = 0, f = l = this.bMarks[d], d + 1 < r || i ? u = this.eMarks[d] + 1 : u = this.eMarks[d]; l < u && a < n; ) { - if (o = this.src.charCodeAt(l), mT(o)) + if (o = this.src.charCodeAt(l), gT(o)) o === 9 ? a += 4 - (a + this.bsCount[d]) % 4 : a++; else if (l - f < this.tShift[d]) a++; @@ -32296,26 +32296,26 @@ Xc.prototype.getLines = function(e, r, n, i) { } return h.join(""); }; -Xc.prototype.Token = qne; -var Dgt = Xc, Ngt = pD, qw = [ - ["table", igt, ["paragraph", "reference"]], - ["code", sgt], - ["fence", agt, ["paragraph", "reference", "blockquote", "list"]], - ["blockquote", ogt, ["paragraph", "reference", "blockquote", "list"]], - ["hr", cgt, ["paragraph", "reference", "blockquote", "list"]], - ["list", hgt, ["paragraph", "reference", "blockquote"]], - ["reference", dgt], - ["html_block", Agt, ["paragraph", "reference", "blockquote"]], - ["heading", Lgt, ["paragraph", "reference", "blockquote"]], - ["lheading", Rgt], - ["paragraph", Mgt] +Xc.prototype.Token = zne; +var Rgt = Xc, Mgt = hD, qw = [ + ["table", rgt, ["paragraph", "reference"]], + ["code", ngt], + ["fence", igt, ["paragraph", "reference", "blockquote", "list"]], + ["blockquote", sgt, ["paragraph", "reference", "blockquote", "list"]], + ["hr", ogt, ["paragraph", "reference", "blockquote", "list"]], + ["list", cgt, ["paragraph", "reference", "blockquote"]], + ["reference", hgt], + ["html_block", Egt, ["paragraph", "reference", "blockquote"]], + ["heading", _gt, ["paragraph", "reference", "blockquote"]], + ["lheading", Agt], + ["paragraph", Lgt] ]; -function vT() { - this.ruler = new Ngt(); +function mT() { + this.ruler = new Mgt(); for (var t = 0; t < qw.length; t++) this.ruler.push(qw[t][0], qw[t][1], { alt: (qw[t][2] || []).slice() }); } -vT.prototype.tokenize = function(t, e, r) { +mT.prototype.tokenize = function(t, e, r) { for (var n, i, s = this.ruler.getRules(""), a = s.length, o = e, l = !1, u = t.md.options.maxNesting; o < r && (t.line = o = t.skipEmptyLines(o), !(o >= r || t.sCount[o] < t.blkIndent)); ) { if (t.level >= u) { t.line = r; @@ -32326,13 +32326,13 @@ vT.prototype.tokenize = function(t, e, r) { t.tight = !l, t.isEmpty(t.line - 1) && (l = !0), o = t.line, o < r && t.isEmpty(o) && (l = !0, o++, t.line = o); } }; -vT.prototype.parse = function(t, e, r, n) { +mT.prototype.parse = function(t, e, r, n) { var i; !t || (i = new this.State(t, e, r, n), this.tokenize(i, i.line, i.lineMax)); }; -vT.prototype.State = Dgt; -var Igt = vT; -function Pgt(t) { +mT.prototype.State = Rgt; +var Dgt = mT; +function Ngt(t) { switch (t) { case 10: case 33: @@ -32362,11 +32362,11 @@ function Pgt(t) { return !1; } } -var $gt = function(e, r) { - for (var n = e.pos; n < e.posMax && !Pgt(e.src.charCodeAt(n)); ) +var Igt = function(e, r) { + for (var n = e.pos; n < e.posMax && !Ngt(e.src.charCodeAt(n)); ) n++; return n === e.pos ? !1 : (r || (e.pending += e.src.slice(e.pos, n)), e.pos = n, !0); -}, Bgt = Ir.isSpace, Fgt = function(e, r) { +}, Pgt = Ir.isSpace, $gt = function(e, r) { var n, i, s, a = e.pos; if (e.src.charCodeAt(a) !== 10) return !1; @@ -32380,30 +32380,30 @@ var $gt = function(e, r) { e.pending = e.pending.slice(0, -1), e.push("softbreak", "br", 0); else e.push("softbreak", "br", 0); - for (a++; a < i && Bgt(e.src.charCodeAt(a)); ) + for (a++; a < i && Pgt(e.src.charCodeAt(a)); ) a++; return e.pos = a, !0; -}, zgt = Ir.isSpace, vD = []; -for (var eU = 0; eU < 256; eU++) - vD.push(0); +}, Bgt = Ir.isSpace, pD = []; +for (var jV = 0; jV < 256; jV++) + pD.push(0); "\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(t) { - vD[t.charCodeAt(0)] = 1; + pD[t.charCodeAt(0)] = 1; }); -var Vgt = function(e, r) { +var Fgt = function(e, r) { var n, i = e.pos, s = e.posMax; if (e.src.charCodeAt(i) !== 92) return !1; if (i++, i < s) { - if (n = e.src.charCodeAt(i), n < 256 && vD[n] !== 0) + if (n = e.src.charCodeAt(i), n < 256 && pD[n] !== 0) return r || (e.pending += e.src[i]), e.pos += 2, !0; if (n === 10) { - for (r || e.push("hardbreak", "br", 0), i++; i < s && (n = e.src.charCodeAt(i), !!zgt(n)); ) + for (r || e.push("hardbreak", "br", 0), i++; i < s && (n = e.src.charCodeAt(i), !!Bgt(n)); ) i++; return e.pos = i, !0; } } return r || (e.pending += "\\"), e.pos++, !0; -}, Ugt = function(e, r) { +}, zgt = function(e, r) { var n, i, s, a, o, l, u, h, f = e.pos, d = e.src.charCodeAt(f); if (d !== 96) return !1; @@ -32419,8 +32419,8 @@ var Vgt = function(e, r) { e.backticks[h] = o; } return e.backticksScanned = !0, r || (e.pending += s), e.pos += u, !0; -}, yT = {}; -yT.tokenize = function(e, r) { +}, vT = {}; +vT.tokenize = function(e, r) { var n, i, s, a, o, l = e.pos, u = e.src.charCodeAt(l); if (r || u !== 126 || (i = e.scanDelims(e.pos, !0), a = i.length, o = String.fromCharCode(u), a < 2)) return !1; @@ -32435,7 +32435,7 @@ yT.tokenize = function(e, r) { }); return e.pos += i.length, !0; }; -function tU(t, e) { +function KV(t, e) { var r, n, i, s, a, o = [], l = e.length; for (r = 0; r < l; r++) i = e[r], i.marker === 126 && i.end !== -1 && (s = e[i.end], a = t.tokens[i.token], a.type = "s_open", a.tag = "s", a.nesting = 1, a.markup = "~~", a.content = "", a = t.tokens[s.token], a.type = "s_close", a.tag = "s", a.nesting = -1, a.markup = "~~", a.content = "", t.tokens[s.token - 1].type === "text" && t.tokens[s.token - 1].content === "~" && o.push(s.token - 1)); @@ -32445,13 +32445,13 @@ function tU(t, e) { n--, r !== n && (a = t.tokens[n], t.tokens[n] = t.tokens[r], t.tokens[r] = a); } } -yT.postProcess = function(e) { +vT.postProcess = function(e) { var r, n = e.tokens_meta, i = e.tokens_meta.length; - for (tU(e, e.delimiters), r = 0; r < i; r++) - n[r] && n[r].delimiters && tU(e, n[r].delimiters); + for (KV(e, e.delimiters), r = 0; r < i; r++) + n[r] && n[r].delimiters && KV(e, n[r].delimiters); }; -var bT = {}; -bT.tokenize = function(e, r) { +var yT = {}; +yT.tokenize = function(e, r) { var n, i, s, a = e.pos, o = e.src.charCodeAt(a); if (r || o !== 95 && o !== 42) return !1; @@ -32466,30 +32466,30 @@ bT.tokenize = function(e, r) { }); return e.pos += i.length, !0; }; -function rU(t, e) { +function JV(t, e) { var r, n, i, s, a, o, l = e.length; for (r = l - 1; r >= 0; r--) n = e[r], !(n.marker !== 95 && n.marker !== 42) && n.end !== -1 && (i = e[n.end], o = r > 0 && e[r - 1].end === n.end + 1 && e[r - 1].marker === n.marker && e[r - 1].token === n.token - 1 && e[n.end + 1].token === i.token + 1, a = String.fromCharCode(n.marker), s = t.tokens[n.token], s.type = o ? "strong_open" : "em_open", s.tag = o ? "strong" : "em", s.nesting = 1, s.markup = o ? a + a : a, s.content = "", s = t.tokens[i.token], s.type = o ? "strong_close" : "em_close", s.tag = o ? "strong" : "em", s.nesting = -1, s.markup = o ? a + a : a, s.content = "", o && (t.tokens[e[r - 1].token].content = "", t.tokens[e[n.end + 1].token].content = "", r--)); } -bT.postProcess = function(e) { +yT.postProcess = function(e) { var r, n = e.tokens_meta, i = e.tokens_meta.length; - for (rU(e, e.delimiters), r = 0; r < i; r++) - n[r] && n[r].delimiters && rU(e, n[r].delimiters); + for (JV(e, e.delimiters), r = 0; r < i; r++) + n[r] && n[r].delimiters && JV(e, n[r].delimiters); }; -var qgt = Ir.normalizeReference, E6 = Ir.isSpace, Ygt = function(e, r) { +var Vgt = Ir.normalizeReference, T6 = Ir.isSpace, Ugt = function(e, r) { var n, i, s, a, o, l, u, h, f, d = "", p = "", g = e.pos, m = e.posMax, v = e.pos, y = !0; if (e.src.charCodeAt(e.pos) !== 91 || (o = e.pos + 1, a = e.md.helpers.parseLinkLabel(e, e.pos, !0), a < 0)) return !1; if (l = a + 1, l < m && e.src.charCodeAt(l) === 40) { - for (y = !1, l++; l < m && (i = e.src.charCodeAt(l), !(!E6(i) && i !== 10)); l++) + for (y = !1, l++; l < m && (i = e.src.charCodeAt(l), !(!T6(i) && i !== 10)); l++) ; if (l >= m) return !1; if (v = l, u = e.md.helpers.parseLinkDestination(e.src, l, e.posMax), u.ok) { - for (d = e.md.normalizeLink(u.str), e.md.validateLink(d) ? l = u.pos : d = "", v = l; l < m && (i = e.src.charCodeAt(l), !(!E6(i) && i !== 10)); l++) + for (d = e.md.normalizeLink(u.str), e.md.validateLink(d) ? l = u.pos : d = "", v = l; l < m && (i = e.src.charCodeAt(l), !(!T6(i) && i !== 10)); l++) ; if (u = e.md.helpers.parseLinkTitle(e.src, l, e.posMax), l < m && v !== l && u.ok) - for (p = u.str, l = u.pos; l < m && (i = e.src.charCodeAt(l), !(!E6(i) && i !== 10)); l++) + for (p = u.str, l = u.pos; l < m && (i = e.src.charCodeAt(l), !(!T6(i) && i !== 10)); l++) ; } (l >= m || e.src.charCodeAt(l) !== 41) && (y = !0), l++; @@ -32497,24 +32497,24 @@ var qgt = Ir.normalizeReference, E6 = Ir.isSpace, Ygt = function(e, r) { if (y) { if (typeof e.env.references > "u") return !1; - if (l < m && e.src.charCodeAt(l) === 91 ? (v = l + 1, l = e.md.helpers.parseLinkLabel(e, l), l >= 0 ? s = e.src.slice(v, l++) : l = a + 1) : l = a + 1, s || (s = e.src.slice(o, a)), h = e.env.references[qgt(s)], !h) + if (l < m && e.src.charCodeAt(l) === 91 ? (v = l + 1, l = e.md.helpers.parseLinkLabel(e, l), l >= 0 ? s = e.src.slice(v, l++) : l = a + 1) : l = a + 1, s || (s = e.src.slice(o, a)), h = e.env.references[Vgt(s)], !h) return e.pos = g, !1; d = h.href, p = h.title; } return r || (e.pos = o, e.posMax = a, f = e.push("link_open", "a", 1), f.attrs = n = [["href", d]], p && n.push(["title", p]), e.md.inline.tokenize(e), f = e.push("link_close", "a", -1)), e.pos = l, e.posMax = m, !0; -}, Qgt = Ir.normalizeReference, _6 = Ir.isSpace, Wgt = function(e, r) { +}, qgt = Ir.normalizeReference, C6 = Ir.isSpace, Ygt = function(e, r) { var n, i, s, a, o, l, u, h, f, d, p, g, m, v = "", y = e.pos, b = e.posMax; if (e.src.charCodeAt(e.pos) !== 33 || e.src.charCodeAt(e.pos + 1) !== 91 || (l = e.pos + 2, o = e.md.helpers.parseLinkLabel(e, e.pos + 1, !1), o < 0)) return !1; if (u = o + 1, u < b && e.src.charCodeAt(u) === 40) { - for (u++; u < b && (i = e.src.charCodeAt(u), !(!_6(i) && i !== 10)); u++) + for (u++; u < b && (i = e.src.charCodeAt(u), !(!C6(i) && i !== 10)); u++) ; if (u >= b) return !1; - for (m = u, f = e.md.helpers.parseLinkDestination(e.src, u, e.posMax), f.ok && (v = e.md.normalizeLink(f.str), e.md.validateLink(v) ? u = f.pos : v = ""), m = u; u < b && (i = e.src.charCodeAt(u), !(!_6(i) && i !== 10)); u++) + for (m = u, f = e.md.helpers.parseLinkDestination(e.src, u, e.posMax), f.ok && (v = e.md.normalizeLink(f.str), e.md.validateLink(v) ? u = f.pos : v = ""), m = u; u < b && (i = e.src.charCodeAt(u), !(!C6(i) && i !== 10)); u++) ; if (f = e.md.helpers.parseLinkTitle(e.src, u, e.posMax), u < b && m !== u && f.ok) - for (d = f.str, u = f.pos; u < b && (i = e.src.charCodeAt(u), !(!_6(i) && i !== 10)); u++) + for (d = f.str, u = f.pos; u < b && (i = e.src.charCodeAt(u), !(!C6(i) && i !== 10)); u++) ; else d = ""; @@ -32524,7 +32524,7 @@ var qgt = Ir.normalizeReference, E6 = Ir.isSpace, Ygt = function(e, r) { } else { if (typeof e.env.references > "u") return !1; - if (u < b && e.src.charCodeAt(u) === 91 ? (m = u + 1, u = e.md.helpers.parseLinkLabel(e, u), u >= 0 ? a = e.src.slice(m, u++) : u = o + 1) : u = o + 1, a || (a = e.src.slice(l, o)), h = e.env.references[Qgt(a)], !h) + if (u < b && e.src.charCodeAt(u) === 91 ? (m = u + 1, u = e.md.helpers.parseLinkLabel(e, u), u >= 0 ? a = e.src.slice(m, u++) : u = o + 1) : u = o + 1, a || (a = e.src.slice(l, o)), h = e.env.references[qgt(a)], !h) return e.pos = y, !1; v = h.href, d = h.title; } @@ -32534,7 +32534,7 @@ var qgt = Ir.normalizeReference, E6 = Ir.isSpace, Ygt = function(e, r) { e.env, g = [] ), p = e.push("image", "img", 0), p.attrs = n = [["src", v], ["alt", ""]], p.children = g, p.content = s, d && n.push(["title", d])), e.pos = u, e.posMax = b, !0; -}, Ggt = /^([a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/, Hgt = /^([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)$/, Xgt = function(e, r) { +}, Qgt = /^([a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/, Wgt = /^([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)$/, Ggt = function(e, r) { var n, i, s, a, o, l, u = e.pos; if (e.src.charCodeAt(u) !== 60) return !1; @@ -32544,29 +32544,29 @@ var qgt = Ir.normalizeReference, E6 = Ir.isSpace, Ygt = function(e, r) { if (a === 62) break; } - return n = e.src.slice(o + 1, u), Hgt.test(n) ? (i = e.md.normalizeLink(n), e.md.validateLink(i) ? (r || (s = e.push("link_open", "a", 1), s.attrs = [["href", i]], s.markup = "autolink", s.info = "auto", s = e.push("text", "", 0), s.content = e.md.normalizeLinkText(n), s = e.push("link_close", "a", -1), s.markup = "autolink", s.info = "auto"), e.pos += n.length + 2, !0) : !1) : Ggt.test(n) ? (i = e.md.normalizeLink("mailto:" + n), e.md.validateLink(i) ? (r || (s = e.push("link_open", "a", 1), s.attrs = [["href", i]], s.markup = "autolink", s.info = "auto", s = e.push("text", "", 0), s.content = e.md.normalizeLinkText(n), s = e.push("link_close", "a", -1), s.markup = "autolink", s.info = "auto"), e.pos += n.length + 2, !0) : !1) : !1; -}, Zgt = gT.HTML_TAG_RE; -function jgt(t) { + return n = e.src.slice(o + 1, u), Wgt.test(n) ? (i = e.md.normalizeLink(n), e.md.validateLink(i) ? (r || (s = e.push("link_open", "a", 1), s.attrs = [["href", i]], s.markup = "autolink", s.info = "auto", s = e.push("text", "", 0), s.content = e.md.normalizeLinkText(n), s = e.push("link_close", "a", -1), s.markup = "autolink", s.info = "auto"), e.pos += n.length + 2, !0) : !1) : Qgt.test(n) ? (i = e.md.normalizeLink("mailto:" + n), e.md.validateLink(i) ? (r || (s = e.push("link_open", "a", 1), s.attrs = [["href", i]], s.markup = "autolink", s.info = "auto", s = e.push("text", "", 0), s.content = e.md.normalizeLinkText(n), s = e.push("link_close", "a", -1), s.markup = "autolink", s.info = "auto"), e.pos += n.length + 2, !0) : !1) : !1; +}, Hgt = pT.HTML_TAG_RE; +function Xgt(t) { var e = t | 32; return e >= 97 && e <= 122; } -var Kgt = function(e, r) { +var Zgt = function(e, r) { var n, i, s, a, o = e.pos; - return !e.md.options.html || (s = e.posMax, e.src.charCodeAt(o) !== 60 || o + 2 >= s) || (n = e.src.charCodeAt(o + 1), n !== 33 && n !== 63 && n !== 47 && !jgt(n)) || (i = e.src.slice(o).match(Zgt), !i) ? !1 : (r || (a = e.push("html_inline", "", 0), a.content = e.src.slice(o, o + i[0].length)), e.pos += i[0].length, !0); -}, nU = fD.exports, Jgt = Ir.has, e1t = Ir.isValidEntityCode, iU = Ir.fromCodePoint, t1t = /^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i, r1t = /^&([a-z][a-z0-9]{1,31});/i, n1t = function(e, r) { + return !e.md.options.html || (s = e.posMax, e.src.charCodeAt(o) !== 60 || o + 2 >= s) || (n = e.src.charCodeAt(o + 1), n !== 33 && n !== 63 && n !== 47 && !Xgt(n)) || (i = e.src.slice(o).match(Hgt), !i) ? !1 : (r || (a = e.push("html_inline", "", 0), a.content = e.src.slice(o, o + i[0].length)), e.pos += i[0].length, !0); +}, eU = cD.exports, jgt = Ir.has, Kgt = Ir.isValidEntityCode, tU = Ir.fromCodePoint, Jgt = /^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i, e1t = /^&([a-z][a-z0-9]{1,31});/i, t1t = function(e, r) { var n, i, s, a = e.pos, o = e.posMax; if (e.src.charCodeAt(a) !== 38) return !1; if (a + 1 < o) { if (n = e.src.charCodeAt(a + 1), n === 35) { - if (s = e.src.slice(a).match(t1t), s) - return r || (i = s[1][0].toLowerCase() === "x" ? parseInt(s[1].slice(1), 16) : parseInt(s[1], 10), e.pending += e1t(i) ? iU(i) : iU(65533)), e.pos += s[0].length, !0; - } else if (s = e.src.slice(a).match(r1t), s && Jgt(nU, s[1])) - return r || (e.pending += nU[s[1]]), e.pos += s[0].length, !0; + if (s = e.src.slice(a).match(Jgt), s) + return r || (i = s[1][0].toLowerCase() === "x" ? parseInt(s[1].slice(1), 16) : parseInt(s[1], 10), e.pending += Kgt(i) ? tU(i) : tU(65533)), e.pos += s[0].length, !0; + } else if (s = e.src.slice(a).match(e1t), s && jgt(eU, s[1])) + return r || (e.pending += eU[s[1]]), e.pos += s[0].length, !0; } return r || (e.pending += "&"), e.pos++, !0; }; -function sU(t, e) { +function rU(t, e) { var r, n, i, s, a, o, l, u, h = {}, f = e.length; if (!!f) { var d = 0, p = -2, g = []; @@ -32581,63 +32581,63 @@ function sU(t, e) { } } } -var i1t = function(e) { +var r1t = function(e) { var r, n = e.tokens_meta, i = e.tokens_meta.length; - for (sU(e, e.delimiters), r = 0; r < i; r++) - n[r] && n[r].delimiters && sU(e, n[r].delimiters); -}, s1t = function(e) { + for (rU(e, e.delimiters), r = 0; r < i; r++) + n[r] && n[r].delimiters && rU(e, n[r].delimiters); +}, n1t = function(e) { var r, n, i = 0, s = e.tokens, a = e.tokens.length; for (r = n = 0; r < a; r++) s[r].nesting < 0 && i--, s[r].level = i, s[r].nesting > 0 && i++, s[r].type === "text" && r + 1 < a && s[r + 1].type === "text" ? s[r + 1].content = s[r].content + s[r + 1].content : (r !== n && (s[n] = s[r]), n++); r !== n && (s.length = n); -}, yD = gD, aU = Ir.isWhiteSpace, oU = Ir.isPunctChar, lU = Ir.isMdAsciiPunct; +}, gD = fD, nU = Ir.isWhiteSpace, iU = Ir.isPunctChar, sU = Ir.isMdAsciiPunct; function sx(t, e, r, n) { this.src = t, this.env = r, this.md = e, this.tokens = n, this.tokens_meta = Array(n.length), this.pos = 0, this.posMax = this.src.length, this.level = 0, this.pending = "", this.pendingLevel = 0, this.cache = {}, this.delimiters = [], this._prev_delimiters = [], this.backticks = {}, this.backticksScanned = !1; } sx.prototype.pushPending = function() { - var t = new yD("text", "", 0); + var t = new gD("text", "", 0); return t.content = this.pending, t.level = this.pendingLevel, this.tokens.push(t), this.pending = "", t; }; sx.prototype.push = function(t, e, r) { this.pending && this.pushPending(); - var n = new yD(t, e, r), i = null; + var n = new gD(t, e, r), i = null; return r < 0 && (this.level--, this.delimiters = this._prev_delimiters.pop()), n.level = this.level, r > 0 && (this.level++, this._prev_delimiters.push(this.delimiters), this.delimiters = [], i = { delimiters: this.delimiters }), this.pendingLevel = this.level, this.tokens.push(n), this.tokens_meta.push(i), n; }; sx.prototype.scanDelims = function(t, e) { var r = t, n, i, s, a, o, l, u, h, f, d = !0, p = !0, g = this.posMax, m = this.src.charCodeAt(t); for (n = t > 0 ? this.src.charCodeAt(t - 1) : 32; r < g && this.src.charCodeAt(r) === m; ) r++; - return s = r - t, i = r < g ? this.src.charCodeAt(r) : 32, u = lU(n) || oU(String.fromCharCode(n)), f = lU(i) || oU(String.fromCharCode(i)), l = aU(n), h = aU(i), h ? d = !1 : f && (l || u || (d = !1)), l ? p = !1 : u && (h || f || (p = !1)), e ? (a = d, o = p) : (a = d && (!p || u), o = p && (!d || f)), { + return s = r - t, i = r < g ? this.src.charCodeAt(r) : 32, u = sU(n) || iU(String.fromCharCode(n)), f = sU(i) || iU(String.fromCharCode(i)), l = nU(n), h = nU(i), h ? d = !1 : f && (l || u || (d = !1)), l ? p = !1 : u && (h || f || (p = !1)), e ? (a = d, o = p) : (a = d && (!p || u), o = p && (!d || f)), { can_open: a, can_close: o, length: s }; }; -sx.prototype.Token = yD; -var a1t = sx, cU = pD, A6 = [ - ["text", $gt], - ["newline", Fgt], - ["escape", Vgt], - ["backticks", Ugt], - ["strikethrough", yT.tokenize], - ["emphasis", bT.tokenize], - ["link", Ygt], - ["image", Wgt], - ["autolink", Xgt], - ["html_inline", Kgt], - ["entity", n1t] -], L6 = [ - ["balance_pairs", i1t], - ["strikethrough", yT.postProcess], - ["emphasis", bT.postProcess], - ["text_collapse", s1t] +sx.prototype.Token = gD; +var i1t = sx, aU = hD, E6 = [ + ["text", Igt], + ["newline", $gt], + ["escape", Fgt], + ["backticks", zgt], + ["strikethrough", vT.tokenize], + ["emphasis", yT.tokenize], + ["link", Ugt], + ["image", Ygt], + ["autolink", Ggt], + ["html_inline", Zgt], + ["entity", t1t] +], _6 = [ + ["balance_pairs", r1t], + ["strikethrough", vT.postProcess], + ["emphasis", yT.postProcess], + ["text_collapse", n1t] ]; function ax() { var t; - for (this.ruler = new cU(), t = 0; t < A6.length; t++) - this.ruler.push(A6[t][0], A6[t][1]); - for (this.ruler2 = new cU(), t = 0; t < L6.length; t++) - this.ruler2.push(L6[t][0], L6[t][1]); + for (this.ruler = new aU(), t = 0; t < E6.length; t++) + this.ruler.push(E6[t][0], E6[t][1]); + for (this.ruler2 = new aU(), t = 0; t < _6.length; t++) + this.ruler2.push(_6[t][0], _6[t][1]); } ax.prototype.skipToken = function(t) { var e, r, n = t.pos, i = this.ruler.getRules(""), s = i.length, a = t.md.options.maxNesting, o = t.cache; @@ -32671,17 +32671,17 @@ ax.prototype.parse = function(t, e, r, n) { for (this.tokenize(o), s = this.ruler2.getRules(""), a = s.length, i = 0; i < a; i++) s[i](o); }; -ax.prototype.State = a1t; -var o1t = ax, R6, uU; -function l1t() { - return uU || (uU = 1, R6 = function(t) { +ax.prototype.State = i1t; +var s1t = ax, A6, oU; +function a1t() { + return oU || (oU = 1, A6 = function(t) { var e = {}; - e.src_Any = Ine().source, e.src_Cc = Pne().source, e.src_Z = $ne().source, e.src_P = dD.source, e.src_ZPCc = [e.src_Z, e.src_P, e.src_Cc].join("|"), e.src_ZCc = [e.src_Z, e.src_Cc].join("|"); + e.src_Any = Mne().source, e.src_Cc = Dne().source, e.src_Z = Nne().source, e.src_P = uD.source, e.src_ZPCc = [e.src_Z, e.src_P, e.src_Cc].join("|"), e.src_ZCc = [e.src_Z, e.src_Cc].join("|"); var r = "[><\uFF5C]"; return e.src_pseudo_letter = "(?:(?!" + r + "|" + e.src_ZPCc + ")" + e.src_Any + ")", e.src_ip4 = "(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)", e.src_auth = "(?:(?:(?!" + e.src_ZCc + "|[@/\\[\\]()]).)+@)?", e.src_port = "(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?", e.src_host_terminator = "(?=$|" + r + "|" + e.src_ZPCc + ")(?!-|_|:\\d|\\.-|\\.(?!$|" + e.src_ZPCc + "))", e.src_path = "(?:[/?#](?:(?!" + e.src_ZCc + "|" + r + `|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!` + e.src_ZCc + "|\\]).)*\\]|\\((?:(?!" + e.src_ZCc + "|[)]).)*\\)|\\{(?:(?!" + e.src_ZCc + '|[}]).)*\\}|\\"(?:(?!' + e.src_ZCc + `|["]).)+\\"|\\'(?:(?!` + e.src_ZCc + "|[']).)+\\'|\\'(?=" + e.src_pseudo_letter + "|[-]).|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!" + e.src_ZCc + "|[.]).|" + (t && t["---"] ? "\\-(?!--(?:[^-]|$))(?:-*)|" : "\\-+|") + ",(?!" + e.src_ZCc + ").|;(?!" + e.src_ZCc + ").|\\!+(?!" + e.src_ZCc + "|[!]).|\\?(?!" + e.src_ZCc + "|[?]).)+|\\/)?", e.src_email_name = '[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*', e.src_xn = "xn--[a-z0-9\\-]{1,59}", e.src_domain_root = "(?:" + e.src_xn + "|" + e.src_pseudo_letter + "{1,63})", e.src_domain = "(?:" + e.src_xn + "|(?:" + e.src_pseudo_letter + ")|(?:" + e.src_pseudo_letter + "(?:-|" + e.src_pseudo_letter + "){0,61}" + e.src_pseudo_letter + "))", e.src_host = "(?:(?:(?:(?:" + e.src_domain + ")\\.)*" + e.src_domain + "))", e.tpl_host_fuzzy = "(?:" + e.src_ip4 + "|(?:(?:(?:" + e.src_domain + ")\\.)+(?:%TLDS%)))", e.tpl_host_no_ip_fuzzy = "(?:(?:(?:" + e.src_domain + ")\\.)+(?:%TLDS%))", e.src_host_strict = e.src_host + e.src_host_terminator, e.tpl_host_fuzzy_strict = e.tpl_host_fuzzy + e.src_host_terminator, e.src_host_port_strict = e.src_host + e.src_port + e.src_host_terminator, e.tpl_host_port_fuzzy_strict = e.tpl_host_fuzzy + e.src_port + e.src_host_terminator, e.tpl_host_port_no_ip_fuzzy_strict = e.tpl_host_no_ip_fuzzy + e.src_port + e.src_host_terminator, e.tpl_host_fuzzy_test = "localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:" + e.src_ZPCc + "|>|$))", e.tpl_email_fuzzy = "(^|" + r + '|"|\\(|' + e.src_ZCc + ")(" + e.src_email_name + "@" + e.tpl_host_fuzzy_strict + ")", e.tpl_link_fuzzy = "(^|(?![.:/\\-_@])(?:[$+<=>^`|\uFF5C]|" + e.src_ZPCc + "))((?![$+<=>^`|\uFF5C])" + e.tpl_host_port_fuzzy_strict + e.src_path + ")", e.tpl_link_no_ip_fuzzy = "(^|(?![.:/\\-_@])(?:[$+<=>^`|\uFF5C]|" + e.src_ZPCc + "))((?![$+<=>^`|\uFF5C])" + e.tpl_host_port_no_ip_fuzzy_strict + e.src_path + ")", e; - }), R6; + }), A6; } -function y8(t) { +function m8(t) { var e = Array.prototype.slice.call(arguments, 1); return e.forEach(function(r) { !r || Object.keys(r).forEach(function(n) { @@ -32689,35 +32689,35 @@ function y8(t) { }); }), t; } -function xT(t) { +function bT(t) { return Object.prototype.toString.call(t); } -function c1t(t) { - return xT(t) === "[object String]"; +function o1t(t) { + return bT(t) === "[object String]"; } -function u1t(t) { - return xT(t) === "[object Object]"; +function l1t(t) { + return bT(t) === "[object Object]"; } -function h1t(t) { - return xT(t) === "[object RegExp]"; +function c1t(t) { + return bT(t) === "[object RegExp]"; } -function hU(t) { - return xT(t) === "[object Function]"; +function lU(t) { + return bT(t) === "[object Function]"; } -function f1t(t) { +function u1t(t) { return t.replace(/[.?*+^$[\]\\(){}|-]/g, "\\$&"); } -var Yne = { +var Vne = { fuzzyLink: !0, fuzzyEmail: !0, fuzzyIP: !1 }; -function d1t(t) { +function h1t(t) { return Object.keys(t || {}).reduce(function(e, r) { - return e || Yne.hasOwnProperty(r); + return e || Vne.hasOwnProperty(r); }, !1); } -var p1t = { +var f1t = { "http:": { validate: function(t, e, r) { var n = t.slice(e); @@ -32747,24 +32747,24 @@ var p1t = { )), r.re.mailto.test(n) ? n.match(r.re.mailto)[0].length : 0; } } -}, g1t = "a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]", m1t = "biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|\u0440\u0444".split("|"); -function v1t(t) { +}, d1t = "a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]", p1t = "biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|\u0440\u0444".split("|"); +function g1t(t) { t.__index__ = -1, t.__text_cache__ = ""; } -function y1t(t) { +function m1t(t) { return function(e, r) { var n = e.slice(r); return t.test(n) ? n.match(t)[0].length : 0; }; } -function fU() { +function cU() { return function(t, e) { e.normalize(t); }; } -function d3(t) { - var e = t.re = l1t()(t.__opts__), r = t.__tlds__.slice(); - t.onCompile(), t.__tlds_replaced__ || r.push(g1t), r.push(e.src_xn), e.src_tlds = r.join("|"); +function f3(t) { + var e = t.re = a1t()(t.__opts__), r = t.__tlds__.slice(); + t.onCompile(), t.__tlds_replaced__ || r.push(d1t), r.push(e.src_xn), e.src_tlds = r.join("|"); function n(o) { return o.replace("%TLDS%", e.src_tlds); } @@ -32778,11 +32778,11 @@ function d3(t) { var l = t.__schemas__[o]; if (l !== null) { var u = { validate: null, link: null }; - if (t.__compiled__[o] = u, u1t(l)) { - h1t(l.validate) ? u.validate = y1t(l.validate) : hU(l.validate) ? u.validate = l.validate : s(o, l), hU(l.normalize) ? u.normalize = l.normalize : l.normalize ? s(o, l) : u.normalize = fU(); + if (t.__compiled__[o] = u, l1t(l)) { + c1t(l.validate) ? u.validate = m1t(l.validate) : lU(l.validate) ? u.validate = l.validate : s(o, l), lU(l.normalize) ? u.normalize = l.normalize : l.normalize ? s(o, l) : u.normalize = cU(); return; } - if (c1t(l)) { + if (o1t(l)) { i.push(o); return; } @@ -32790,33 +32790,33 @@ function d3(t) { } }), i.forEach(function(o) { !t.__compiled__[t.__schemas__[o]] || (t.__compiled__[o].validate = t.__compiled__[t.__schemas__[o]].validate, t.__compiled__[o].normalize = t.__compiled__[t.__schemas__[o]].normalize); - }), t.__compiled__[""] = { validate: null, normalize: fU() }; + }), t.__compiled__[""] = { validate: null, normalize: cU() }; var a = Object.keys(t.__compiled__).filter(function(o) { return o.length > 0 && t.__compiled__[o]; - }).map(f1t).join("|"); + }).map(u1t).join("|"); t.re.schema_test = RegExp("(^|(?!_)(?:[><\uFF5C]|" + e.src_ZPCc + "))(" + a + ")", "i"), t.re.schema_search = RegExp("(^|(?!_)(?:[><\uFF5C]|" + e.src_ZPCc + "))(" + a + ")", "ig"), t.re.pretest = RegExp( "(" + t.re.schema_test.source + ")|(" + t.re.host_fuzzy_test.source + ")|@", "i" - ), v1t(t); + ), g1t(t); } -function b1t(t, e) { +function v1t(t, e) { var r = t.__index__, n = t.__last_index__, i = t.__text_cache__.slice(r, n); this.schema = t.__schema__.toLowerCase(), this.index = r + e, this.lastIndex = n + e, this.raw = i, this.text = i, this.url = i; } -function dU(t, e) { - var r = new b1t(t, e); +function uU(t, e) { + var r = new v1t(t, e); return t.__compiled__[r.schema].normalize(r, t), r; } function Yo(t, e) { if (!(this instanceof Yo)) return new Yo(t, e); - e || d1t(t) && (e = t, t = {}), this.__opts__ = y8({}, Yne, e), this.__index__ = -1, this.__last_index__ = -1, this.__schema__ = "", this.__text_cache__ = "", this.__schemas__ = y8({}, p1t, t), this.__compiled__ = {}, this.__tlds__ = m1t, this.__tlds_replaced__ = !1, this.re = {}, d3(this); + e || h1t(t) && (e = t, t = {}), this.__opts__ = m8({}, Vne, e), this.__index__ = -1, this.__last_index__ = -1, this.__schema__ = "", this.__text_cache__ = "", this.__schemas__ = m8({}, f1t, t), this.__compiled__ = {}, this.__tlds__ = p1t, this.__tlds_replaced__ = !1, this.re = {}, f3(this); } Yo.prototype.add = function(e, r) { - return this.__schemas__[e] = r, d3(this), this; + return this.__schemas__[e] = r, f3(this), this; }; Yo.prototype.set = function(e) { - return this.__opts__ = y8(this.__opts__, e), this; + return this.__opts__ = m8(this.__opts__, e), this; }; Yo.prototype.test = function(e) { if (this.__text_cache__ = e, this.__index__ = -1, !e.length) @@ -32839,45 +32839,45 @@ Yo.prototype.testSchemaAt = function(e, r, n) { }; Yo.prototype.match = function(e) { var r = 0, n = []; - this.__index__ >= 0 && this.__text_cache__ === e && (n.push(dU(this, r)), r = this.__last_index__); + this.__index__ >= 0 && this.__text_cache__ === e && (n.push(uU(this, r)), r = this.__last_index__); for (var i = r ? e.slice(r) : e; this.test(i); ) - n.push(dU(this, r)), i = i.slice(this.__last_index__), r += this.__last_index__; + n.push(uU(this, r)), i = i.slice(this.__last_index__), r += this.__last_index__; return n.length ? n : null; }; Yo.prototype.tlds = function(e, r) { return e = Array.isArray(e) ? e : [e], r ? (this.__tlds__ = this.__tlds__.concat(e).sort().filter(function(n, i, s) { return n !== s[i - 1]; - }).reverse(), d3(this), this) : (this.__tlds__ = e.slice(), this.__tlds_replaced__ = !0, d3(this), this); + }).reverse(), f3(this), this) : (this.__tlds__ = e.slice(), this.__tlds_replaced__ = !0, f3(this), this); }; Yo.prototype.normalize = function(e) { e.schema || (e.url = "http://" + e.url), e.schema === "mailto:" && !/^mailto:/i.test(e.url) && (e.url = "mailto:" + e.url); }; Yo.prototype.onCompile = function() { }; -var x1t = Yo; -const rg = 2147483647, yc = 36, bD = 1, a2 = 26, w1t = 38, O1t = 700, Qne = 72, Wne = 128, Gne = "-", k1t = /^xn--/, S1t = /[^\0-\x7F]/, T1t = /[\x2E\u3002\uFF0E\uFF61]/g, C1t = { +var y1t = Yo; +const rg = 2147483647, yc = 36, mD = 1, a2 = 26, b1t = 38, x1t = 700, Une = 72, qne = 128, Yne = "-", w1t = /^xn--/, O1t = /[^\0-\x7F]/, k1t = /[\x2E\u3002\uFF0E\uFF61]/g, S1t = { overflow: "Overflow: input needs wider integers to process", "not-basic": "Illegal input >= 0x80 (not a basic code point)", "invalid-input": "Invalid input" -}, M6 = yc - bD, bc = Math.floor, D6 = String.fromCharCode; +}, L6 = yc - mD, bc = Math.floor, R6 = String.fromCharCode; function Th(t) { - throw new RangeError(C1t[t]); + throw new RangeError(S1t[t]); } -function E1t(t, e) { +function T1t(t, e) { const r = []; let n = t.length; for (; n--; ) r[n] = e(t[n]); return r; } -function Hne(t, e) { +function Qne(t, e) { const r = t.split("@"); let n = ""; - r.length > 1 && (n = r[0] + "@", t = r[1]), t = t.replace(T1t, "."); - const i = t.split("."), s = E1t(i, e).join("."); + r.length > 1 && (n = r[0] + "@", t = r[1]), t = t.replace(k1t, "."); + const i = t.split("."), s = T1t(i, e).join("."); return n + s; } -function xD(t) { +function vD(t) { const e = []; let r = 0; const n = t.length; @@ -32891,18 +32891,18 @@ function xD(t) { } return e; } -const Xne = (t) => String.fromCodePoint(...t), _1t = function(t) { +const Wne = (t) => String.fromCodePoint(...t), C1t = function(t) { return t >= 48 && t < 58 ? 26 + (t - 48) : t >= 65 && t < 91 ? t - 65 : t >= 97 && t < 123 ? t - 97 : yc; -}, pU = function(t, e) { +}, hU = function(t, e) { return t + 22 + 75 * (t < 26) - ((e != 0) << 5); -}, Zne = function(t, e, r) { +}, Gne = function(t, e, r) { let n = 0; - for (t = r ? bc(t / O1t) : t >> 1, t += bc(t / e); t > M6 * a2 >> 1; n += yc) - t = bc(t / M6); - return bc(n + (M6 + 1) * t / (t + w1t)); -}, wD = function(t) { + for (t = r ? bc(t / x1t) : t >> 1, t += bc(t / e); t > L6 * a2 >> 1; n += yc) + t = bc(t / L6); + return bc(n + (L6 + 1) * t / (t + b1t)); +}, yD = function(t) { const e = [], r = t.length; - let n = 0, i = Wne, s = Qne, a = t.lastIndexOf(Gne); + let n = 0, i = qne, s = Une, a = t.lastIndexOf(Yne); a < 0 && (a = 0); for (let o = 0; o < a; ++o) t.charCodeAt(o) >= 128 && Th("not-basic"), e.push(t.charCodeAt(o)); @@ -32910,28 +32910,28 @@ const Xne = (t) => String.fromCodePoint(...t), _1t = function(t) { const l = n; for (let h = 1, f = yc; ; f += yc) { o >= r && Th("invalid-input"); - const d = _1t(t.charCodeAt(o++)); + const d = C1t(t.charCodeAt(o++)); d >= yc && Th("invalid-input"), d > bc((rg - n) / h) && Th("overflow"), n += d * h; - const p = f <= s ? bD : f >= s + a2 ? a2 : f - s; + const p = f <= s ? mD : f >= s + a2 ? a2 : f - s; if (d < p) break; const g = yc - p; h > bc(rg / g) && Th("overflow"), h *= g; } const u = e.length + 1; - s = Zne(n - l, u, l == 0), bc(n / u) > rg - i && Th("overflow"), i += bc(n / u), n %= u, e.splice(n++, 0, i); + s = Gne(n - l, u, l == 0), bc(n / u) > rg - i && Th("overflow"), i += bc(n / u), n %= u, e.splice(n++, 0, i); } return String.fromCodePoint(...e); -}, OD = function(t) { +}, bD = function(t) { const e = []; - t = xD(t); + t = vD(t); const r = t.length; - let n = Wne, i = 0, s = Qne; + let n = qne, i = 0, s = Une; for (const l of t) - l < 128 && e.push(D6(l)); + l < 128 && e.push(R6(l)); const a = e.length; let o = a; - for (a && e.push(Gne); o < r; ) { + for (a && e.push(Yne); o < r; ) { let l = rg; for (const h of t) h >= n && h < l && (l = h); @@ -32941,48 +32941,48 @@ const Xne = (t) => String.fromCodePoint(...t), _1t = function(t) { if (h < n && ++i > rg && Th("overflow"), h === n) { let f = i; for (let d = yc; ; d += yc) { - const p = d <= s ? bD : d >= s + a2 ? a2 : d - s; + const p = d <= s ? mD : d >= s + a2 ? a2 : d - s; if (f < p) break; const g = f - p, m = yc - p; e.push( - D6(pU(p + g % m, 0)) + R6(hU(p + g % m, 0)) ), f = bc(g / m); } - e.push(D6(pU(f, 0))), s = Zne(i, u, o === a), i = 0, ++o; + e.push(R6(hU(f, 0))), s = Gne(i, u, o === a), i = 0, ++o; } ++i, ++n; } return e.join(""); -}, jne = function(t) { - return Hne(t, function(e) { - return k1t.test(e) ? wD(e.slice(4).toLowerCase()) : e; +}, Hne = function(t) { + return Qne(t, function(e) { + return w1t.test(e) ? yD(e.slice(4).toLowerCase()) : e; }); -}, Kne = function(t) { - return Hne(t, function(e) { - return S1t.test(e) ? "xn--" + OD(e) : e; +}, Xne = function(t) { + return Qne(t, function(e) { + return O1t.test(e) ? "xn--" + bD(e) : e; }); -}, A1t = { +}, E1t = { version: "2.3.1", ucs2: { - decode: xD, - encode: Xne - }, - decode: wD, - encode: OD, - toASCII: Kne, - toUnicode: jne -}, L1t = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ + decode: vD, + encode: Wne + }, + decode: yD, + encode: bD, + toASCII: Xne, + toUnicode: Hne +}, _1t = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - ucs2decode: xD, - ucs2encode: Xne, - decode: wD, - encode: OD, - toASCII: Kne, - toUnicode: jne, - default: A1t -}, Symbol.toStringTag, { value: "Module" })), R1t = /* @__PURE__ */ BZ(L1t); -var M1t = { + ucs2decode: vD, + ucs2encode: Wne, + decode: yD, + encode: bD, + toASCII: Xne, + toUnicode: Hne, + default: E1t +}, Symbol.toStringTag, { value: "Module" })), A1t = /* @__PURE__ */ IZ(_1t); +var L1t = { options: { html: !1, xhtmlOut: !1, @@ -32999,7 +32999,7 @@ var M1t = { block: {}, inline: {} } -}, D1t = { +}, R1t = { options: { html: !1, xhtmlOut: !1, @@ -33034,7 +33034,7 @@ var M1t = { ] } } -}, N1t = { +}, M1t = { options: { html: !0, xhtmlOut: !0, @@ -33088,30 +33088,30 @@ var M1t = { ] } } -}, ty = Ir, I1t = pT, P1t = Npt, $1t = ngt, B1t = Igt, F1t = o1t, z1t = x1t, Rd = W1, Jne = R1t, V1t = { - default: M1t, - zero: D1t, - commonmark: N1t -}, U1t = /^(vbscript|javascript|file|data):/, q1t = /^data:image\/(gif|png|jpeg|webp);/; -function Y1t(t) { +}, ty = Ir, D1t = dT, N1t = Mpt, I1t = tgt, P1t = Dgt, $1t = s1t, B1t = y1t, Rd = W1, Zne = A1t, F1t = { + default: L1t, + zero: R1t, + commonmark: M1t +}, z1t = /^(vbscript|javascript|file|data):/, V1t = /^data:image\/(gif|png|jpeg|webp);/; +function U1t(t) { var e = t.trim().toLowerCase(); - return U1t.test(e) ? !!q1t.test(e) : !0; + return z1t.test(e) ? !!V1t.test(e) : !0; } -var eie = ["http:", "https:", "mailto:"]; -function Q1t(t) { +var jne = ["http:", "https:", "mailto:"]; +function q1t(t) { var e = Rd.parse(t, !0); - if (e.hostname && (!e.protocol || eie.indexOf(e.protocol) >= 0)) + if (e.hostname && (!e.protocol || jne.indexOf(e.protocol) >= 0)) try { - e.hostname = Jne.toASCII(e.hostname); + e.hostname = Zne.toASCII(e.hostname); } catch { } return Rd.encode(Rd.format(e)); } -function W1t(t) { +function Y1t(t) { var e = Rd.parse(t, !0); - if (e.hostname && (!e.protocol || eie.indexOf(e.protocol) >= 0)) + if (e.hostname && (!e.protocol || jne.indexOf(e.protocol) >= 0)) try { - e.hostname = Jne.toUnicode(e.hostname); + e.hostname = Zne.toUnicode(e.hostname); } catch { } return Rd.decode(Rd.format(e), Rd.decode.defaultChars + "%"); @@ -33119,14 +33119,14 @@ function W1t(t) { function Qo(t, e) { if (!(this instanceof Qo)) return new Qo(t, e); - e || ty.isString(t) || (e = t || {}, t = "default"), this.inline = new F1t(), this.block = new B1t(), this.core = new $1t(), this.renderer = new P1t(), this.linkify = new z1t(), this.validateLink = Y1t, this.normalizeLink = Q1t, this.normalizeLinkText = W1t, this.utils = ty, this.helpers = ty.assign({}, I1t), this.options = {}, this.configure(t), e && this.set(e); + e || ty.isString(t) || (e = t || {}, t = "default"), this.inline = new $1t(), this.block = new P1t(), this.core = new I1t(), this.renderer = new N1t(), this.linkify = new B1t(), this.validateLink = U1t, this.normalizeLink = q1t, this.normalizeLinkText = Y1t, this.utils = ty, this.helpers = ty.assign({}, D1t), this.options = {}, this.configure(t), e && this.set(e); } Qo.prototype.set = function(t) { return ty.assign(this.options, t), this; }; Qo.prototype.configure = function(t) { var e = this, r; - if (ty.isString(t) && (r = t, t = V1t[r], !t)) + if (ty.isString(t) && (r = t, t = F1t[r], !t)) throw new Error('Wrong `markdown-it` preset "' + r + '", check name'); if (!t) throw new Error("Wrong `markdown-it` preset, can't be empty"); @@ -33178,12 +33178,12 @@ Qo.prototype.parseInline = function(t, e) { Qo.prototype.renderInline = function(t, e) { return e = e || {}, this.renderer.render(this.parseInline(t, e), this.options, e); }; -var G1t = Qo; +var Q1t = Qo; (function(t) { - t.exports = G1t; -})(Nne); -const H1t = /* @__PURE__ */ $Z(Nne.exports); -async function tie(t, e) { + t.exports = Q1t; +})(Rne); +const W1t = /* @__PURE__ */ NZ(Rne.exports); +async function Kne(t, e) { return new Promise((r) => { const n = t.getElementById(e); if (n) { @@ -33200,11 +33200,11 @@ async function tie(t, e) { }); }); } -const rie = "myst-editor/", X1t = (t) => sessionStorage.getItem(rie + t), gU = (t, e) => sessionStorage.setItem(rie + t, e), nie = () => { +const Jne = "myst-editor/", G1t = (t) => sessionStorage.getItem(Jne + t), fU = (t, e) => sessionStorage.setItem(Jne + t, e), eie = () => { for (var t in sessionStorage) t.startsWith("myst-editor") && sessionStorage.removeItem(t); }; -class iie { +class tie { constructor(e) { this.preview = e; } @@ -33218,10 +33218,10 @@ class iie { } createTransformPlaceholder(e, r, n) { const i = "placeholder-" + Math.random().toString().slice(2); - return r.then(tie(this.preview, i)).then((s) => { - gU(e, s), this.fillPlaceholder(i, s); + return r.then(Kne(this.preview, i)).then((s) => { + fU(e, s), this.fillPlaceholder(i, s); }).catch((s) => { - console.error("Error in custom transform:", n, "Caused by input:", e, "Error:", s), this.cancelTransform(i), gU(e, e); + console.error("Error in custom transform:", n, "Caused by input:", e, "Error:", s), this.cancelTransform(i), fU(e, e); }), `${e}`; } overloadTransform({ @@ -33231,7 +33231,7 @@ class iie { return { target: r, transform: (n) => { - const i = X1t(n); + const i = G1t(n); if (i) return i; let s = e(n); @@ -33240,16 +33240,16 @@ class iie { }; } } -const Z1t = (t, { +const H1t = (t, { transform: e, target: r -}) => t.replaceAll(r, e), j1t = (t, e) => (r) => { - const n = new iie(e), i = r.renderer.rules.text; +}) => t.replaceAll(r, e), X1t = (t, e) => (r) => { + const n = new tie(e), i = r.renderer.rules.text; r.renderer.rules.text = function(...s) { const a = i(...s); - return t.map((o) => n.overloadTransform(o, e)).reduce(Z1t, a); + return t.map((o) => n.overloadTransform(o, e)).reduce(H1t, a); }; -}, sie = "custom_role", K1t = ({ +}, rie = "custom_role", Z1t = ({ target: t, transform: e }) => ({ @@ -33258,20 +33258,20 @@ const Z1t = (t, { run({ content: n }) { - const i = new this.state.Token(sie, "span", 1); + const i = new this.state.Token(rie, "span", 1); return i.content = e(n), [i]; } } -}), J1t = (t, e) => (r) => { - const n = new iie(e), i = t.map((s) => n.overloadTransform(s)).map(K1t).reduce((s, { +}), j1t = (t, e) => (r) => { + const n = new tie(e), i = t.map((s) => n.overloadTransform(s)).map(Z1t).reduce((s, { name: a, role: o }) => (s[a] = o, s), {}); - r.renderer.rules[sie] = (s, a, o, l, u) => `${s[a].content}`, r.use(Dre, { + r.renderer.rules[rie] = (s, a, o, l, u) => `${s[a].content}`, r.use(Lre, { roles: i }); }; -var aie = { exports: {} }; +var nie = { exports: {} }; /** * @preserve * JS Implementation of incremental MurmurHash3 (r150) (as of May 10, 2013) @@ -33324,14 +33324,14 @@ var aie = { exports: {} }; return this.h1 = typeof n == "number" ? n : 0, this.rem = this.k1 = this.len = 0, this; }, e = new r(), t.exports = r; })(); -})(aie); -const b8 = aie.exports; -function emt(t) { +})(nie); +const v8 = nie.exports; +function K1t(t) { const e = t.renderer.rules.text; t.renderer.rules.text = (r, n, i, s, a) => r[n].content === "\\" ? "
" : e(r, n, i, s, a); } -const kD = "data-line-id", oie = () => Math.random().toString().replace(".", ""); -function lie(t, e) { +const xD = "data-line-id", iie = () => Math.random().toString().replace(".", ""); +function sie(t, e) { var n; let r = t.map[0] + e.startLine - (e.chunkId !== 0); for (const i of (n = e.foldedLines) != null ? n : []) { @@ -33341,15 +33341,15 @@ function lie(t, e) { } return r; } -function tmt(t, e = (r, n, i) => n) { - t.use(nmt), t.use(imt), t.use(smt), t.use(amt); +function J1t(t, e = (r, n, i) => n) { + t.use(tmt), t.use(rmt), t.use(nmt), t.use(imt); const r = ["softbreak"], n = [...Object.keys(t.renderer.rules).filter((i) => !r.includes(i)), "paragraph_open", "heading_open", "admonition_open", "link_open", "list_item_open"]; for (const i of n) { const s = t.renderer.rules[i]; - t.renderer.rules[i] = rmt(s); + t.renderer.rules[i] = emt(s); } } -function rmt(t, e) { +function emt(t, e) { return (r, n, i, s, a) => { const o = t != null ? t : a.renderToken.bind(a); if (r[n].type === "list_item_open" && r[n + 1].type !== "list_item_close") @@ -33365,13 +33365,13 @@ function rmt(t, e) { !f && !d.type.includes("_open") && (d.map = [r[n].map[0] + h, r[n].map[0] + h + 1], f = !0); } } else if (r[n].map) { - const u = lie(r[n], s), h = oie(); - s.lineMap.current.has(u) || (s.lineMap.current.set(u, h), r[n].attrSet(kD, h)); + const u = sie(r[n], s), h = iie(); + s.lineMap.current.has(u) || (s.lineMap.current.set(u, h), r[n].attrSet(xD, h)); } return o(r, n, i, s, a); }; } -function nmt(t) { +function tmt(t) { function e(r) { return (n, i, s, a, o) => { const l = n[i]; @@ -33382,7 +33382,7 @@ function nmt(t) { } t.renderer.rules.directive = e(t.renderer.rules.directive), t.renderer.rules.directive_error = e(t.renderer.rules.directive_error); } -function imt(t) { +function rmt(t) { const e = t.renderer.rules.role; t.renderer.rules.role = (r, n, i, s, a) => { let o = e(r, n, i, s, a); @@ -33390,42 +33390,42 @@ function imt(t) { return o = o.slice(0, l) + a.renderAttrs(r[n]) + o.slice(l), o; }; } -function smt(t) { +function nmt(t) { const e = t.renderer.rules.text; t.renderer.rules.text = (r, n, i, s, a) => { const o = r[n], l = e(r, n, i, s, a); return `${l}`; }; } -function amt(t) { +function imt(t) { const e = t.renderer.rules.fence; t.renderer.rules.fence = (r, n, i, s, a) => { const o = e(r, n, i, s, a), l = r[n]; if (o.includes("mermaid")) return o; - const u = Ir.escapeHtml(l.content), h = lie(l, s); + const u = Ir.escapeHtml(l.content), h = sie(l, s); let f = u.split(` `).filter((d, p, g) => p !== g.length - 1).map((d, p) => { - const g = oie(); - return s.lineMap.current.has(h + p + 1) ? `${d}` : (s.lineMap.current.set(h + p + 1, g), `${d}`); + const g = iie(); + return s.lineMap.current.has(h + p + 1) ? `${d}` : (s.lineMap.current.set(h + p + 1, g), `${d}`); }).join(` `); return `
${f}
`; }; } -function wT(t, e, r) { +function aie(t, e, r) { let n = null, i = null, s = t; for (; s >= 1 && (n = e.current.get(s), !(n && (i = r.querySelector(`[data-line-id="${n}"]`), i))); s--) ; return [i, s]; } -function OT(t, e) { +function xT(t, e) { for (const [r, n] of t.entries()) if (n === e) return r; } -var cie = { exports: {} }; +var oie = { exports: {} }; (function(t, e) { (function(r, n) { t.exports = n(); @@ -33714,8 +33714,8 @@ var cie = { exports: {} }; return R(1e3 * k); }, R.en = C[S], R.Ls = C, R.p = {}, R; }); -})(cie); -const Ns = cie.exports, T4 = { +})(oie); +const Ns = oie.exports, S4 = { min: { r: 0, g: 0, @@ -33754,11 +33754,11 @@ const Ns = cie.exports, T4 = { const i = r < 0.5 ? r * (1 + e) : r + e - r * e, s = 2 * r - i; switch (n) { case "r": - return T4.hue2rgb(s, i, t + 1 / 3) * 255; + return S4.hue2rgb(s, i, t + 1 / 3) * 255; case "g": - return T4.hue2rgb(s, i, t) * 255; + return S4.hue2rgb(s, i, t) * 255; case "b": - return T4.hue2rgb(s, i, t - 1 / 3) * 255; + return S4.hue2rgb(s, i, t - 1 / 3) * 255; } }, rgb2hsl: ({ r: t, g: e, b: r }, n) => { @@ -33782,19 +33782,19 @@ const Ns = cie.exports, T4 = { return -1; } } -}, omt = T4, lmt = { +}, smt = S4, amt = { clamp: (t, e, r) => e > r ? Math.min(e, Math.max(r, t)) : Math.min(r, Math.max(e, t)), round: (t) => Math.round(t * 1e10) / 1e10 -}, cmt = lmt, umt = { +}, omt = amt, lmt = { dec2hex: (t) => { const e = Math.round(t).toString(16); return e.length > 1 ? e : `0${e}`; } -}, hmt = umt, fmt = { - channel: omt, - lang: cmt, - unit: hmt -}, ir = fmt, Oh = {}; +}, cmt = lmt, umt = { + channel: smt, + lang: omt, + unit: cmt +}, ir = umt, Oh = {}; for (let t = 0; t <= 255; t++) Oh[t] = ir.unit.dec2hex(t); const Ss = { @@ -33802,7 +33802,7 @@ const Ss = { RGB: 1, HSL: 2 }; -class dmt { +class hmt { constructor() { this.type = Ss.ALL; } @@ -33821,10 +33821,10 @@ class dmt { return this.type === e; } } -const pmt = dmt; -class gmt { +const fmt = hmt; +class dmt { constructor(e, r) { - this.color = r, this.changed = !1, this.data = e, this.type = new pmt(); + this.color = r, this.changed = !1, this.data = e, this.type = new fmt(); } set(e, r) { return this.color = r, this.changed = !1, this.data = e, this.type.type = Ss.ALL, this; @@ -33886,16 +33886,16 @@ class gmt { this.changed = !0, this.data.a = e; } } -const mmt = gmt, vmt = new mmt({ r: 0, g: 0, b: 0, a: 0 }, "transparent"), kT = vmt, uie = { +const pmt = dmt, gmt = new pmt({ r: 0, g: 0, b: 0, a: 0 }, "transparent"), wT = gmt, lie = { re: /^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i, parse: (t) => { if (t.charCodeAt(0) !== 35) return; - const e = t.match(uie.re); + const e = t.match(lie.re); if (!e) return; const r = e[1], n = parseInt(r, 16), i = r.length, s = i % 4 === 0, a = i > 4, o = a ? 1 : 17, l = a ? 8 : 4, u = s ? 0 : -1, h = a ? 255 : 15; - return kT.set({ + return wT.set({ r: (n >> l * (u + 3) & h) * o, g: (n >> l * (u + 2) & h) * o, b: (n >> l * (u + 1) & h) * o, @@ -33906,11 +33906,11 @@ const mmt = gmt, vmt = new mmt({ r: 0, g: 0, b: 0, a: 0 }, "transparent"), kT = const { r: e, g: r, b: n, a: i } = t; return i < 1 ? `#${Oh[Math.round(e)]}${Oh[Math.round(r)]}${Oh[Math.round(n)]}${Oh[Math.round(i * 255)]}` : `#${Oh[Math.round(e)]}${Oh[Math.round(r)]}${Oh[Math.round(n)]}`; } -}, ry = uie, C4 = { +}, ry = lie, T4 = { re: /^hsla?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(?:deg|grad|rad|turn)?)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(%)?))?\s*?\)$/i, hueRe: /^(.+?)(deg|grad|rad|turn)$/i, _hue2deg: (t) => { - const e = t.match(C4.hueRe); + const e = t.match(T4.hueRe); if (e) { const [, r, n] = e; switch (n) { @@ -33928,12 +33928,12 @@ const mmt = gmt, vmt = new mmt({ r: 0, g: 0, b: 0, a: 0 }, "transparent"), kT = const e = t.charCodeAt(0); if (e !== 104 && e !== 72) return; - const r = t.match(C4.re); + const r = t.match(T4.re); if (!r) return; const [, n, i, s, a, o] = r; - return kT.set({ - h: C4._hue2deg(n), + return wT.set({ + h: T4._hue2deg(n), s: ir.channel.clamp.s(parseFloat(i)), l: ir.channel.clamp.l(parseFloat(s)), a: a ? ir.channel.clamp.a(o ? parseFloat(a) / 100 : parseFloat(a)) : 1 @@ -33943,7 +33943,7 @@ const mmt = gmt, vmt = new mmt({ r: 0, g: 0, b: 0, a: 0 }, "transparent"), kT = const { h: e, s: r, l: n, a: i } = t; return i < 1 ? `hsla(${ir.lang.round(e)}, ${ir.lang.round(r)}%, ${ir.lang.round(n)}%, ${i})` : `hsl(${ir.lang.round(e)}, ${ir.lang.round(r)}%, ${ir.lang.round(n)}%)`; } -}, Yw = C4, E4 = { +}, Yw = T4, C4 = { colors: { aliceblue: "#f0f8ff", antiquewhite: "#faebd7", @@ -34095,27 +34095,27 @@ const mmt = gmt, vmt = new mmt({ r: 0, g: 0, b: 0, a: 0 }, "transparent"), kT = }, parse: (t) => { t = t.toLowerCase(); - const e = E4.colors[t]; + const e = C4.colors[t]; if (!!e) return ry.parse(e); }, stringify: (t) => { const e = ry.stringify(t); - for (const r in E4.colors) - if (E4.colors[r] === e) + for (const r in C4.colors) + if (C4.colors[r] === e) return r; } -}, mU = E4, hie = { +}, dU = C4, cie = { re: /^rgba?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?)))?\s*?\)$/i, parse: (t) => { const e = t.charCodeAt(0); if (e !== 114 && e !== 82) return; - const r = t.match(hie.re); + const r = t.match(cie.re); if (!r) return; const [, n, i, s, a, o, l, u, h] = r; - return kT.set({ + return wT.set({ r: ir.channel.clamp.r(i ? parseFloat(n) * 2.55 : parseFloat(n)), g: ir.channel.clamp.g(a ? parseFloat(s) * 2.55 : parseFloat(s)), b: ir.channel.clamp.b(l ? parseFloat(o) * 2.55 : parseFloat(o)), @@ -34126,9 +34126,9 @@ const mmt = gmt, vmt = new mmt({ r: 0, g: 0, b: 0, a: 0 }, "transparent"), kT = const { r: e, g: r, b: n, a: i } = t; return i < 1 ? `rgba(${ir.lang.round(e)}, ${ir.lang.round(r)}, ${ir.lang.round(n)}, ${ir.lang.round(i)})` : `rgb(${ir.lang.round(e)}, ${ir.lang.round(r)}, ${ir.lang.round(n)})`; } -}, Qw = hie, ymt = { +}, Qw = cie, mmt = { format: { - keyword: mU, + keyword: dU, hex: ry, rgb: Qw, rgba: Qw, @@ -34138,60 +34138,60 @@ const mmt = gmt, vmt = new mmt({ r: 0, g: 0, b: 0, a: 0 }, "transparent"), kT = parse: (t) => { if (typeof t != "string") return t; - const e = ry.parse(t) || Qw.parse(t) || Yw.parse(t) || mU.parse(t); + const e = ry.parse(t) || Qw.parse(t) || Yw.parse(t) || dU.parse(t); if (e) return e; throw new Error(`Unsupported color format: "${t}"`); }, stringify: (t) => !t.changed && t.color ? t.color : t.type.is(Ss.HSL) || t.data.r === void 0 ? Yw.stringify(t) : t.a < 1 || !Number.isInteger(t.r) || !Number.isInteger(t.g) || !Number.isInteger(t.b) ? Qw.stringify(t) : ry.stringify(t) -}, $l = ymt, bmt = (t, e) => { +}, $l = mmt, vmt = (t, e) => { const r = $l.parse(t); for (const n in e) r[n] = ir.channel.clamp[n](e[n]); return $l.stringify(r); -}, fie = bmt, xmt = (t, e, r = 0, n = 1) => { +}, uie = vmt, ymt = (t, e, r = 0, n = 1) => { if (typeof t != "number") - return fie(t, { a: e }); - const i = kT.set({ + return uie(t, { a: e }); + const i = wT.set({ r: ir.channel.clamp.r(t), g: ir.channel.clamp.g(e), b: ir.channel.clamp.b(r), a: ir.channel.clamp.a(n) }); return $l.stringify(i); -}, Qd = xmt, wmt = (t, e) => ir.lang.round($l.parse(t)[e]), die = wmt, Omt = (t) => { +}, Qd = ymt, bmt = (t, e) => ir.lang.round($l.parse(t)[e]), hie = bmt, xmt = (t) => { const { r: e, g: r, b: n } = $l.parse(t), i = 0.2126 * ir.channel.toLinear(e) + 0.7152 * ir.channel.toLinear(r) + 0.0722 * ir.channel.toLinear(n); return ir.lang.round(i); -}, kmt = Omt, Smt = (t) => kmt(t) >= 0.5, Tmt = Smt, Cmt = (t) => !Tmt(t), z0 = Cmt, Emt = (t, e, r) => { +}, wmt = xmt, Omt = (t) => wmt(t) >= 0.5, kmt = Omt, Smt = (t) => !kmt(t), z0 = Smt, Tmt = (t, e, r) => { const n = $l.parse(t), i = n[e], s = ir.channel.clamp[e](i + r); return i !== s && (n[e] = s), $l.stringify(n); -}, pie = Emt, _mt = (t, e) => pie(t, "l", e), Ft = _mt, Amt = (t, e) => pie(t, "l", -e), Qt = Amt, Lmt = (t, e) => { +}, fie = Tmt, Cmt = (t, e) => fie(t, "l", e), Ft = Cmt, Emt = (t, e) => fie(t, "l", -e), Qt = Emt, _mt = (t, e) => { const r = $l.parse(t), n = {}; for (const i in e) !e[i] || (n[i] = r[i] + e[i]); - return fie(t, n); -}, Pe = Lmt, Rmt = (t, e, r = 50) => { + return uie(t, n); +}, Pe = _mt, Amt = (t, e, r = 50) => { const { r: n, g: i, b: s, a } = $l.parse(t), { r: o, g: l, b: u, a: h } = $l.parse(e), f = r / 100, d = f * 2 - 1, p = a - h, m = ((d * p === -1 ? d : (d + p) / (1 + d * p)) + 1) / 2, v = 1 - m, y = n * m + o * v, b = i * m + l * v, w = s * m + u * v, O = a * f + h * (1 - f); return Qd(y, b, w, O); -}, Mmt = Rmt, Dmt = (t, e = 100) => { +}, Lmt = Amt, Rmt = (t, e = 100) => { const r = $l.parse(t); - return r.r = 255 - r.r, r.g = 255 - r.g, r.b = 255 - r.b, Mmt(r, t, e); -}, Ot = Dmt; + return r.r = 255 - r.r, r.g = 255 - r.g, r.b = 255 - r.b, Lmt(r, t, e); +}, Ot = Rmt; /*! @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 */ const { - entries: gie, - setPrototypeOf: vU, - isFrozen: Nmt, - getPrototypeOf: Imt, - getOwnPropertyDescriptor: Pmt + entries: die, + setPrototypeOf: pU, + isFrozen: Mmt, + getPrototypeOf: Dmt, + getOwnPropertyDescriptor: Nmt } = Object; let { freeze: la, seal: Wo, - create: mie + create: pie } = Object, { - apply: x8, - construct: w8 + apply: y8, + construct: b8 } = typeof Reflect < "u" && Reflect; la || (la = function(e) { return e; @@ -34199,85 +34199,85 @@ la || (la = function(e) { Wo || (Wo = function(e) { return e; }); -x8 || (x8 = function(e, r, n) { +y8 || (y8 = function(e, r, n) { return e.apply(r, n); }); -w8 || (w8 = function(e, r) { +b8 || (b8 = function(e, r) { return new e(...r); }); -const Ww = uo(Array.prototype.forEach), yU = uo(Array.prototype.pop), Fm = uo(Array.prototype.push), _4 = uo(String.prototype.toLowerCase), N6 = uo(String.prototype.toString), bU = uo(String.prototype.match), zm = uo(String.prototype.replace), $mt = uo(String.prototype.indexOf), Bmt = uo(String.prototype.trim), cl = uo(Object.prototype.hasOwnProperty), Zs = uo(RegExp.prototype.test), Vm = Fmt(TypeError); +const Ww = uo(Array.prototype.forEach), gU = uo(Array.prototype.pop), Fm = uo(Array.prototype.push), E4 = uo(String.prototype.toLowerCase), M6 = uo(String.prototype.toString), mU = uo(String.prototype.match), zm = uo(String.prototype.replace), Imt = uo(String.prototype.indexOf), Pmt = uo(String.prototype.trim), cl = uo(Object.prototype.hasOwnProperty), Zs = uo(RegExp.prototype.test), Vm = $mt(TypeError); function uo(t) { return function(e) { for (var r = arguments.length, n = new Array(r > 1 ? r - 1 : 0), i = 1; i < r; i++) n[i - 1] = arguments[i]; - return x8(t, e, n); + return y8(t, e, n); }; } -function Fmt(t) { +function $mt(t) { return function() { for (var e = arguments.length, r = new Array(e), n = 0; n < e; n++) r[n] = arguments[n]; - return w8(t, r); + return b8(t, r); }; } function kr(t, e) { - let r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : _4; - vU && vU(t, null); + let r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : E4; + pU && pU(t, null); let n = e.length; for (; n--; ) { let i = e[n]; if (typeof i == "string") { const s = r(i); - s !== i && (Nmt(e) || (e[n] = s), i = s); + s !== i && (Mmt(e) || (e[n] = s), i = s); } t[i] = !0; } return t; } -function zmt(t) { +function Bmt(t) { for (let e = 0; e < t.length; e++) cl(t, e) || (t[e] = null); return t; } function od(t) { - const e = mie(null); - for (const [r, n] of gie(t)) - cl(t, r) && (Array.isArray(n) ? e[r] = zmt(n) : n && typeof n == "object" && n.constructor === Object ? e[r] = od(n) : e[r] = n); + const e = pie(null); + for (const [r, n] of die(t)) + cl(t, r) && (Array.isArray(n) ? e[r] = Bmt(n) : n && typeof n == "object" && n.constructor === Object ? e[r] = od(n) : e[r] = n); return e; } function Um(t, e) { for (; t !== null; ) { - const n = Pmt(t, e); + const n = Nmt(t, e); if (n) { if (n.get) return uo(n.get); if (typeof n.value == "function") return uo(n.value); } - t = Imt(t); + t = Dmt(t); } function r() { return null; } return r; } -const xU = la(["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"]), I6 = la(["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"]), P6 = la(["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"]), Vmt = la(["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"]), $6 = la(["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"]), Umt = la(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), wU = la(["#text"]), OU = la(["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"]), B6 = la(["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", "display", "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"]), kU = la(["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"]), Gw = la(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), qmt = Wo(/\{\{[\w\W]*|[\w\W]*\}\}/gm), Ymt = Wo(/<%[\w\W]*|[\w\W]*%>/gm), Qmt = Wo(/\${[\w\W]*}/gm), Wmt = Wo(/^data-[\-\w.\u00B7-\uFFFF]/), Gmt = Wo(/^aria-[\-\w]+$/), vie = Wo( +const vU = la(["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"]), D6 = la(["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"]), N6 = la(["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"]), Fmt = la(["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"]), I6 = la(["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"]), zmt = la(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), yU = la(["#text"]), bU = la(["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"]), P6 = la(["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", "display", "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"]), xU = la(["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"]), Gw = la(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), Vmt = Wo(/\{\{[\w\W]*|[\w\W]*\}\}/gm), Umt = Wo(/<%[\w\W]*|[\w\W]*%>/gm), qmt = Wo(/\${[\w\W]*}/gm), Ymt = Wo(/^data-[\-\w.\u00B7-\uFFFF]/), Qmt = Wo(/^aria-[\-\w]+$/), gie = Wo( /^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i -), Hmt = Wo(/^(?:\w+script|data):/i), Xmt = Wo( +), Wmt = Wo(/^(?:\w+script|data):/i), Gmt = Wo( /[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g -), yie = Wo(/^html$/i), Zmt = Wo(/^[a-z][.\w]*(-[.\w]+)+$/i); -var SU = /* @__PURE__ */ Object.freeze({ +), mie = Wo(/^html$/i), Hmt = Wo(/^[a-z][.\w]*(-[.\w]+)+$/i); +var wU = /* @__PURE__ */ Object.freeze({ __proto__: null, - MUSTACHE_EXPR: qmt, - ERB_EXPR: Ymt, - TMPLIT_EXPR: Qmt, - DATA_ATTR: Wmt, - ARIA_ATTR: Gmt, - IS_ALLOWED_URI: vie, - IS_SCRIPT_OR_DATA: Hmt, - ATTR_WHITESPACE: Xmt, - DOCTYPE_NAME: yie, - CUSTOM_ELEMENT: Zmt + MUSTACHE_EXPR: Vmt, + ERB_EXPR: Umt, + TMPLIT_EXPR: qmt, + DATA_ATTR: Ymt, + ARIA_ATTR: Qmt, + IS_ALLOWED_URI: gie, + IS_SCRIPT_OR_DATA: Wmt, + ATTR_WHITESPACE: Gmt, + DOCTYPE_NAME: mie, + CUSTOM_ELEMENT: Hmt }); const qm = { element: 1, @@ -34292,9 +34292,9 @@ const qm = { documentType: 10, documentFragment: 11, notation: 12 -}, jmt = function() { +}, Xmt = function() { return typeof window > "u" ? null : window; -}, Kmt = function(e, r) { +}, Zmt = function(e, r) { if (typeof e != "object" || typeof e.createPolicy != "function") return null; let n = null; @@ -34314,9 +34314,9 @@ const qm = { return console.warn("TrustedTypes policy " + s + " could not be created."), null; } }; -function bie() { - let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : jmt(); - const e = (qe) => bie(qe); +function vie() { + let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Xmt(); + const e = (qe) => vie(qe); if (e.version = "3.1.6", e.removed = [], !t || !t.document || t.document.nodeType !== qm.document) return e.isSupported = !1, e; let { @@ -34347,7 +34347,7 @@ function bie() { importNode: R } = n; let _ = {}; - e.isSupported = typeof gie == "function" && typeof w == "function" && C && C.createHTMLDocument !== void 0; + e.isSupported = typeof die == "function" && typeof w == "function" && C && C.createHTMLDocument !== void 0; const { MUSTACHE_EXPR: A, ERB_EXPR: $, @@ -34357,14 +34357,14 @@ function bie() { IS_SCRIPT_OR_DATA: I, ATTR_WHITESPACE: D, CUSTOM_ELEMENT: P - } = SU; + } = wU; let { IS_ALLOWED_URI: F - } = SU, B = null; - const V = kr({}, [...xU, ...I6, ...P6, ...$6, ...wU]); + } = wU, B = null; + const V = kr({}, [...vU, ...D6, ...N6, ...I6, ...yU]); let Y = null; - const G = kr({}, [...OU, ...B6, ...kU, ...Gw]); - let ee = Object.seal(mie(null, { + const G = kr({}, [...bU, ...P6, ...xU, ...Gw]); + let ee = Object.seal(pie(null, { tagNameCheck: { writable: !0, configurable: !1, @@ -34392,7 +34392,7 @@ function bie() { let fe = null; const de = kr({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), ge = "http://www.w3.org/1998/Math/MathML", xe = "http://www.w3.org/2000/svg", ke = "http://www.w3.org/1999/xhtml"; let Ce = ke, Oe = !1, Me = null; - const Te = kr({}, [ge, xe, ke], N6); + const Te = kr({}, [ge, xe, ke], M6); let Xe = null; const Ne = ["application/xhtml+xml", "text/html"], Ke = "text/html"; let je = null, ut = null; @@ -34401,7 +34401,7 @@ function bie() { }, We = function() { let te = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; if (!(ut && ut === te)) { - if ((!te || typeof te != "object") && (te = {}), te = od(te), Xe = Ne.indexOf(te.PARSER_MEDIA_TYPE) === -1 ? Ke : te.PARSER_MEDIA_TYPE, je = Xe === "application/xhtml+xml" ? N6 : _4, B = cl(te, "ALLOWED_TAGS") ? kr({}, te.ALLOWED_TAGS, je) : V, Y = cl(te, "ALLOWED_ATTR") ? kr({}, te.ALLOWED_ATTR, je) : G, Me = cl(te, "ALLOWED_NAMESPACES") ? kr({}, te.ALLOWED_NAMESPACES, N6) : Te, fe = cl(te, "ADD_URI_SAFE_ATTR") ? kr( + if ((!te || typeof te != "object") && (te = {}), te = od(te), Xe = Ne.indexOf(te.PARSER_MEDIA_TYPE) === -1 ? Ke : te.PARSER_MEDIA_TYPE, je = Xe === "application/xhtml+xml" ? M6 : E4, B = cl(te, "ALLOWED_TAGS") ? kr({}, te.ALLOWED_TAGS, je) : V, Y = cl(te, "ALLOWED_ATTR") ? kr({}, te.ALLOWED_ATTR, je) : G, Me = cl(te, "ALLOWED_NAMESPACES") ? kr({}, te.ALLOWED_NAMESPACES, M6) : Te, fe = cl(te, "ADD_URI_SAFE_ATTR") ? kr( od(de), te.ADD_URI_SAFE_ATTR, je @@ -34409,23 +34409,23 @@ function bie() { od(ue), te.ADD_DATA_URI_TAGS, je - ) : ue, oe = cl(te, "FORBID_CONTENTS") ? kr({}, te.FORBID_CONTENTS, je) : ve, Q = cl(te, "FORBID_TAGS") ? kr({}, te.FORBID_TAGS, je) : {}, ne = cl(te, "FORBID_ATTR") ? kr({}, te.FORBID_ATTR, je) : {}, H = cl(te, "USE_PROFILES") ? te.USE_PROFILES : !1, ie = te.ALLOW_ARIA_ATTR !== !1, U = te.ALLOW_DATA_ATTR !== !1, Z = te.ALLOW_UNKNOWN_PROTOCOLS || !1, W = te.ALLOW_SELF_CLOSE_IN_ATTR !== !1, j = te.SAFE_FOR_TEMPLATES || !1, ae = te.SAFE_FOR_XML !== !1, se = te.WHOLE_DOCUMENT || !1, ce = te.RETURN_DOM || !1, Ee = te.RETURN_DOM_FRAGMENT || !1, Ae = te.RETURN_TRUSTED_TYPE || !1, _e = te.FORCE_BODY || !1, Ue = te.SANITIZE_DOM !== !1, Ge = te.SANITIZE_NAMED_PROPS || !1, De = te.KEEP_CONTENT !== !1, he = te.IN_PLACE || !1, F = te.ALLOWED_URI_REGEXP || vie, Ce = te.NAMESPACE || ke, ee = te.CUSTOM_ELEMENT_HANDLING || {}, te.CUSTOM_ELEMENT_HANDLING && ot(te.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (ee.tagNameCheck = te.CUSTOM_ELEMENT_HANDLING.tagNameCheck), te.CUSTOM_ELEMENT_HANDLING && ot(te.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (ee.attributeNameCheck = te.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), te.CUSTOM_ELEMENT_HANDLING && typeof te.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (ee.allowCustomizedBuiltInElements = te.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), j && (U = !1), Ee && (ce = !0), H && (B = kr({}, wU), Y = [], H.html === !0 && (kr(B, xU), kr(Y, OU)), H.svg === !0 && (kr(B, I6), kr(Y, B6), kr(Y, Gw)), H.svgFilters === !0 && (kr(B, P6), kr(Y, B6), kr(Y, Gw)), H.mathMl === !0 && (kr(B, $6), kr(Y, kU), kr(Y, Gw))), te.ADD_TAGS && (B === V && (B = od(B)), kr(B, te.ADD_TAGS, je)), te.ADD_ATTR && (Y === G && (Y = od(Y)), kr(Y, te.ADD_ATTR, je)), te.ADD_URI_SAFE_ATTR && kr(fe, te.ADD_URI_SAFE_ATTR, je), te.FORBID_CONTENTS && (oe === ve && (oe = od(oe)), kr(oe, te.FORBID_CONTENTS, je)), De && (B["#text"] = !0), se && kr(B, ["html", "head", "body"]), B.table && (kr(B, ["tbody"]), delete Q.tbody), te.TRUSTED_TYPES_POLICY) { + ) : ue, oe = cl(te, "FORBID_CONTENTS") ? kr({}, te.FORBID_CONTENTS, je) : ve, Q = cl(te, "FORBID_TAGS") ? kr({}, te.FORBID_TAGS, je) : {}, ne = cl(te, "FORBID_ATTR") ? kr({}, te.FORBID_ATTR, je) : {}, H = cl(te, "USE_PROFILES") ? te.USE_PROFILES : !1, ie = te.ALLOW_ARIA_ATTR !== !1, U = te.ALLOW_DATA_ATTR !== !1, Z = te.ALLOW_UNKNOWN_PROTOCOLS || !1, W = te.ALLOW_SELF_CLOSE_IN_ATTR !== !1, j = te.SAFE_FOR_TEMPLATES || !1, ae = te.SAFE_FOR_XML !== !1, se = te.WHOLE_DOCUMENT || !1, ce = te.RETURN_DOM || !1, Ee = te.RETURN_DOM_FRAGMENT || !1, Ae = te.RETURN_TRUSTED_TYPE || !1, _e = te.FORCE_BODY || !1, Ue = te.SANITIZE_DOM !== !1, Ge = te.SANITIZE_NAMED_PROPS || !1, De = te.KEEP_CONTENT !== !1, he = te.IN_PLACE || !1, F = te.ALLOWED_URI_REGEXP || gie, Ce = te.NAMESPACE || ke, ee = te.CUSTOM_ELEMENT_HANDLING || {}, te.CUSTOM_ELEMENT_HANDLING && ot(te.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (ee.tagNameCheck = te.CUSTOM_ELEMENT_HANDLING.tagNameCheck), te.CUSTOM_ELEMENT_HANDLING && ot(te.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (ee.attributeNameCheck = te.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), te.CUSTOM_ELEMENT_HANDLING && typeof te.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (ee.allowCustomizedBuiltInElements = te.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), j && (U = !1), Ee && (ce = !0), H && (B = kr({}, yU), Y = [], H.html === !0 && (kr(B, vU), kr(Y, bU)), H.svg === !0 && (kr(B, D6), kr(Y, P6), kr(Y, Gw)), H.svgFilters === !0 && (kr(B, N6), kr(Y, P6), kr(Y, Gw)), H.mathMl === !0 && (kr(B, I6), kr(Y, xU), kr(Y, Gw))), te.ADD_TAGS && (B === V && (B = od(B)), kr(B, te.ADD_TAGS, je)), te.ADD_ATTR && (Y === G && (Y = od(Y)), kr(Y, te.ADD_ATTR, je)), te.ADD_URI_SAFE_ATTR && kr(fe, te.ADD_URI_SAFE_ATTR, je), te.FORBID_CONTENTS && (oe === ve && (oe = od(oe)), kr(oe, te.FORBID_CONTENTS, je)), De && (B["#text"] = !0), se && kr(B, ["html", "head", "body"]), B.table && (kr(B, ["tbody"]), delete Q.tbody), te.TRUSTED_TYPES_POLICY) { if (typeof te.TRUSTED_TYPES_POLICY.createHTML != "function") throw Vm('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.'); if (typeof te.TRUSTED_TYPES_POLICY.createScriptURL != "function") throw Vm('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.'); O = te.TRUSTED_TYPES_POLICY, S = O.createHTML(""); } else - O === void 0 && (O = Kmt(p, i)), O !== null && typeof S == "string" && (S = O.createHTML("")); + O === void 0 && (O = Zmt(p, i)), O !== null && typeof S == "string" && (S = O.createHTML("")); la && la(te), ut = te; } - }, Ye = kr({}, ["mi", "mo", "mn", "ms", "mtext"]), pt = kr({}, ["foreignobject", "annotation-xml"]), tt = kr({}, ["title", "style", "font", "a", "script"]), He = kr({}, [...I6, ...P6, ...Vmt]), kt = kr({}, [...$6, ...Umt]), st = function(te) { + }, Ye = kr({}, ["mi", "mo", "mn", "ms", "mtext"]), pt = kr({}, ["foreignobject", "annotation-xml"]), tt = kr({}, ["title", "style", "font", "a", "script"]), He = kr({}, [...D6, ...N6, ...Fmt]), kt = kr({}, [...I6, ...zmt]), st = function(te) { let Le = w(te); (!Le || !Le.tagName) && (Le = { namespaceURI: Ce, tagName: "template" }); - const ze = _4(te.tagName), Lt = _4(Le.tagName); + const ze = E4(te.tagName), Lt = E4(Le.tagName); return Me[te.namespaceURI] ? te.namespaceURI === xe ? Le.namespaceURI === ke ? ze === "svg" : Le.namespaceURI === ge ? ze === "svg" && (Lt === "annotation-xml" || Ye[Lt]) : Boolean(He[ze]) : te.namespaceURI === ge ? Le.namespaceURI === ke ? ze === "math" : Le.namespaceURI === xe ? ze === "math" && pt[Lt] : Boolean(kt[ze]) : te.namespaceURI === ke ? Le.namespaceURI === xe && !pt[Lt] || Le.namespaceURI === ge && !Ye[Lt] ? !1 : !kt[ze] && (tt[ze] || !He[ze]) : !!(Xe === "application/xhtml+xml" && Me[te.namespaceURI]) : !1; }, Ze = function(te) { Fm(e.removed, { @@ -34464,7 +34464,7 @@ function bie() { if (_e) te = "" + te; else { - const Jt = bU(te, /^[\r\n\t ]+/); + const Jt = mU(te, /^[\r\n\t ]+/); ze = Jt && Jt[0]; } Xe === "application/xhtml+xml" && Ce === ke && (te = '' + te + ""); @@ -34538,7 +34538,7 @@ function bie() { return !1; } else if (!fe[Le]) { if (!Zs(F, zm(ze, D, ""))) { - if (!((Le === "src" || Le === "xlink:href" || Le === "href") && te !== "script" && $mt(ze, "data:") === 0 && re[te])) { + if (!((Le === "src" || Le === "xlink:href" || Le === "href") && te !== "script" && Imt(ze, "data:") === 0 && re[te])) { if (!(Z && !Zs(I, zm(ze, D, "")))) { if (ze) return !1; @@ -34550,7 +34550,7 @@ function bie() { } return !0; }, Xr = function(te) { - return te !== "annotation-xml" && bU(te, P); + return te !== "annotation-xml" && mU(te, P); }, xr = function(te) { tr("beforeSanitizeAttributes", te, null); const { @@ -34571,7 +34571,7 @@ function bie() { namespaceURI: rt, value: St } = cr, Tt = je(Jt); - let Je = Jt === "value" ? St : Bmt(St); + let Je = Jt === "value" ? St : Pmt(St); if (ze.attrName = Tt, ze.attrValue = Je, ze.keepAttr = !0, ze.forceKeepAttr = void 0, tr("uponSanitizeAttribute", te, ze), Je = ze.attrValue, ae && Zs(/((--!?|])>)|<\/(style|title)/i, Je)) { dt(Jt, te); continue; @@ -34599,7 +34599,7 @@ function bie() { } } try { - rt ? te.setAttributeNS(rt, Jt, Je) : te.setAttribute(Jt, Je), Yt(te) ? Ze(te) : yU(e.removed); + rt ? te.setAttributeNS(rt, Jt, Je) : te.setAttribute(Jt, Je), Yt(te) ? Ze(te) : gU(e.removed); } catch { } } @@ -34651,7 +34651,7 @@ function bie() { return (Y.shadowroot || Y.shadowrootmode) && (cr = R.call(n, cr, !0)), cr; } let rt = se ? Le.outerHTML : Le.innerHTML; - return se && B["!doctype"] && Le.ownerDocument && Le.ownerDocument.doctype && Le.ownerDocument.doctype.name && Zs(yie, Le.ownerDocument.doctype.name) && (rt = " + return se && B["!doctype"] && Le.ownerDocument && Le.ownerDocument.doctype && Le.ownerDocument.doctype.name && Zs(mie, Le.ownerDocument.doctype.name) && (rt = " ` + rt), j && Ww([A, $, k], (St) => { rt = zm(rt, St, " "); }), O && Ae ? O.createHTML(rt) : rt; @@ -34668,16 +34668,16 @@ function bie() { typeof te == "function" && (_[qe] = _[qe] || [], Fm(_[qe], te)); }, e.removeHook = function(qe) { if (_[qe]) - return yU(_[qe]); + return gU(_[qe]); }, e.removeHooks = function(qe) { _[qe] && (_[qe] = []); }, e.removeAllHooks = function() { _ = {}; }, e; } -var Yg = bie(), xie = Object.defineProperty, x = (t, e) => xie(t, "name", { value: e, configurable: !0 }), wie = (t, e) => { +var Yg = vie(), yie = Object.defineProperty, x = (t, e) => yie(t, "name", { value: e, configurable: !0 }), bie = (t, e) => { for (var r in e) - xie(t, r, { get: e[r], enumerable: !0 }); + yie(t, r, { get: e[r], enumerable: !0 }); }, ou = { trace: 0, debug: 1, @@ -34698,7 +34698,7 @@ var Yg = bie(), xie = Object.defineProperty, x = (t, e) => xie(t, "name", { valu }, "error"), fatal: /* @__PURE__ */ x((...t) => { }, "fatal") -}, SD = /* @__PURE__ */ x(function(t = "fatal") { +}, wD = /* @__PURE__ */ x(function(t = "fatal") { let e = ou.fatal; typeof t == "string" ? t.toLowerCase() in ou && (e = ou[t]) : typeof t == "number" && (e = t), X.trace = () => { }, X.debug = () => { @@ -34707,34 +34707,34 @@ var Yg = bie(), xie = Object.defineProperty, x = (t, e) => xie(t, "name", { valu }, X.error = () => { }, X.fatal = () => { }, e <= ou.fatal && (X.fatal = console.error ? console.error.bind(console, wo("FATAL"), "color: orange") : console.log.bind(console, "\x1B[35m", wo("FATAL"))), e <= ou.error && (X.error = console.error ? console.error.bind(console, wo("ERROR"), "color: orange") : console.log.bind(console, "\x1B[31m", wo("ERROR"))), e <= ou.warn && (X.warn = console.warn ? console.warn.bind(console, wo("WARN"), "color: orange") : console.log.bind(console, "\x1B[33m", wo("WARN"))), e <= ou.info && (X.info = console.info ? console.info.bind(console, wo("INFO"), "color: lightblue") : console.log.bind(console, "\x1B[34m", wo("INFO"))), e <= ou.debug && (X.debug = console.debug ? console.debug.bind(console, wo("DEBUG"), "color: lightgreen") : console.log.bind(console, "\x1B[32m", wo("DEBUG"))), e <= ou.trace && (X.trace = console.debug ? console.debug.bind(console, wo("TRACE"), "color: lightgreen") : console.log.bind(console, "\x1B[32m", wo("TRACE"))); -}, "setLogLevel"), wo = /* @__PURE__ */ x((t) => `%c${Ns().format("ss.SSS")} : ${t} : `, "format"), Oie = /^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s, ny = /%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi, Jmt = /\s*%%.*\n/gm, ib, kie = (ib = class extends Error { +}, "setLogLevel"), wo = /* @__PURE__ */ x((t) => `%c${Ns().format("ss.SSS")} : ${t} : `, "format"), xie = /^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s, ny = /%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi, jmt = /\s*%%.*\n/gm, ib, wie = (ib = class extends Error { constructor(e) { super(e), this.name = "UnknownDiagramError"; } }, (() => { x(ib, "UnknownDiagramError"); -})(), ib), Qg = {}, TD = /* @__PURE__ */ x(function(t, e) { - t = t.replace(Oie, "").replace(ny, "").replace(Jmt, ` +})(), ib), Qg = {}, OD = /* @__PURE__ */ x(function(t, e) { + t = t.replace(xie, "").replace(ny, "").replace(jmt, ` `); for (const [r, { detector: n }] of Object.entries(Qg)) if (n(t, e)) return r; - throw new kie( + throw new wie( `No diagram type detected matching given configuration for text: ${t}` ); -}, "detectType"), Sie = /* @__PURE__ */ x((...t) => { +}, "detectType"), Oie = /* @__PURE__ */ x((...t) => { for (const { id: e, detector: r, loader: n } of t) - Tie(e, r, n); -}, "registerLazyLoadedDiagrams"), Tie = /* @__PURE__ */ x((t, e, r) => { + kie(e, r, n); +}, "registerLazyLoadedDiagrams"), kie = /* @__PURE__ */ x((t, e, r) => { Qg[t] && X.warn(`Detector with key ${t} already exists. Overwriting.`), Qg[t] = { detector: e, loader: r }, X.debug(`Detector with key ${t} added${r ? " with loader" : ""}`); -}, "addDetector"), evt = /* @__PURE__ */ x((t) => Qg[t].loader, "getDiagramLoader"), O8 = /* @__PURE__ */ x((t, e, { depth: r = 2, clobber: n = !1 } = {}) => { +}, "addDetector"), Kmt = /* @__PURE__ */ x((t) => Qg[t].loader, "getDiagramLoader"), x8 = /* @__PURE__ */ x((t, e, { depth: r = 2, clobber: n = !1 } = {}) => { const i = { depth: r, clobber: n }; - return Array.isArray(e) && !Array.isArray(t) ? (e.forEach((s) => O8(t, s, i)), t) : Array.isArray(e) && Array.isArray(t) ? (e.forEach((s) => { + return Array.isArray(e) && !Array.isArray(t) ? (e.forEach((s) => x8(t, s, i)), t) : Array.isArray(e) && Array.isArray(t) ? (e.forEach((s) => { t.includes(s) || t.push(s); }), t) : t === void 0 || r <= 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((s) => { - typeof e[s] == "object" && (t[s] === void 0 || typeof t[s] == "object") ? (t[s] === void 0 && (t[s] = Array.isArray(e[s]) ? [] : {}), t[s] = O8(t[s], e[s], { depth: r - 1, clobber: n })) : (n || typeof t[s] != "object" && typeof e[s] != "object") && (t[s] = e[s]); + typeof e[s] == "object" && (t[s] === void 0 || typeof t[s] == "object") ? (t[s] === void 0 && (t[s] = Array.isArray(e[s]) ? [] : {}), t[s] = x8(t[s], e[s], { depth: r - 1, clobber: n })) : (n || typeof t[s] != "object" && typeof e[s] != "object") && (t[s] = e[s]); }), t); -}, "assignWithDepth"), Ci = O8, ST = "#ffffff", TT = "#f2f2f2", ta = /* @__PURE__ */ x((t, e) => e ? Pe(t, { s: -40, l: 10 }) : Pe(t, { s: -40, l: -10 }), "mkBorder"), sb, tvt = (sb = class { +}, "assignWithDepth"), Ci = x8, OT = "#ffffff", kT = "#f2f2f2", ta = /* @__PURE__ */ x((t, e) => e ? Pe(t, { s: -40, l: 10 }) : Pe(t, { s: -40, l: -10 }), "mkBorder"), sb, Jmt = (sb = class { constructor() { this.background = "#f4f4f4", this.primaryColor = "#fff4dd", this.noteBkgColor = "#fff5ad", this.noteTextColor = "#333", this.THEME_COLOR_LIMIT = 12, this.fontFamily = '"trebuchet ms", verdana, arial, sans-serif', this.fontSize = "16px"; } @@ -34768,7 +34768,7 @@ var Yg = bie(), xie = Object.defineProperty, x = (t, e) => xie(t, "name", { valu yAxisTickColor: ((h = this.xyChart) == null ? void 0 : h.yAxisTickColor) || this.primaryTextColor, yAxisLineColor: ((f = this.xyChart) == null ? void 0 : f.yAxisLineColor) || this.primaryTextColor, plotColorPalette: ((d = this.xyChart) == null ? void 0 : d.plotColorPalette) || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0" - }, this.requirementBackground = this.requirementBackground || this.primaryColor, this.requirementBorderColor = this.requirementBorderColor || this.primaryBorderColor, this.requirementBorderSize = this.requirementBorderSize || "1", this.requirementTextColor = this.requirementTextColor || this.primaryTextColor, this.relationColor = this.relationColor || this.lineColor, this.relationLabelBackground = this.relationLabelBackground || (this.darkMode ? Qt(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 || Pe(this.primaryColor, { h: -30 }), this.git4 = this.git4 || Pe(this.primaryColor, { h: -60 }), this.git5 = this.git5 || Pe(this.primaryColor, { h: -90 }), this.git6 = this.git6 || Pe(this.primaryColor, { h: 60 }), this.git7 = this.git7 || Pe(this.primaryColor, { h: 120 }), this.darkMode ? (this.git0 = Ft(this.git0, 25), this.git1 = Ft(this.git1, 25), this.git2 = Ft(this.git2, 25), this.git3 = Ft(this.git3, 25), this.git4 = Ft(this.git4, 25), this.git5 = Ft(this.git5, 25), this.git6 = Ft(this.git6, 25), this.git7 = Ft(this.git7, 25)) : (this.git0 = Qt(this.git0, 25), this.git1 = Qt(this.git1, 25), this.git2 = Qt(this.git2, 25), this.git3 = Qt(this.git3, 25), this.git4 = Qt(this.git4, 25), this.git5 = Qt(this.git5, 25), this.git6 = Qt(this.git6, 25), this.git7 = Qt(this.git7, 25)), this.gitInv0 = this.gitInv0 || Ot(this.git0), this.gitInv1 = this.gitInv1 || Ot(this.git1), this.gitInv2 = this.gitInv2 || Ot(this.git2), this.gitInv3 = this.gitInv3 || Ot(this.git3), this.gitInv4 = this.gitInv4 || Ot(this.git4), this.gitInv5 = this.gitInv5 || Ot(this.git5), this.gitInv6 = this.gitInv6 || Ot(this.git6), this.gitInv7 = this.gitInv7 || Ot(this.git7), this.branchLabelColor = this.branchLabelColor || (this.darkMode ? "black" : this.labelTextColor), this.gitBranchLabel0 = this.gitBranchLabel0 || this.branchLabelColor, this.gitBranchLabel1 = this.gitBranchLabel1 || this.branchLabelColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.branchLabelColor, this.gitBranchLabel3 = this.gitBranchLabel3 || this.branchLabelColor, this.gitBranchLabel4 = this.gitBranchLabel4 || this.branchLabelColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.branchLabelColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.branchLabelColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.branchLabelColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || ST, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || TT; + }, 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 ? Qt(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 || Pe(this.primaryColor, { h: -30 }), this.git4 = this.git4 || Pe(this.primaryColor, { h: -60 }), this.git5 = this.git5 || Pe(this.primaryColor, { h: -90 }), this.git6 = this.git6 || Pe(this.primaryColor, { h: 60 }), this.git7 = this.git7 || Pe(this.primaryColor, { h: 120 }), this.darkMode ? (this.git0 = Ft(this.git0, 25), this.git1 = Ft(this.git1, 25), this.git2 = Ft(this.git2, 25), this.git3 = Ft(this.git3, 25), this.git4 = Ft(this.git4, 25), this.git5 = Ft(this.git5, 25), this.git6 = Ft(this.git6, 25), this.git7 = Ft(this.git7, 25)) : (this.git0 = Qt(this.git0, 25), this.git1 = Qt(this.git1, 25), this.git2 = Qt(this.git2, 25), this.git3 = Qt(this.git3, 25), this.git4 = Qt(this.git4, 25), this.git5 = Qt(this.git5, 25), this.git6 = Qt(this.git6, 25), this.git7 = Qt(this.git7, 25)), this.gitInv0 = this.gitInv0 || Ot(this.git0), this.gitInv1 = this.gitInv1 || Ot(this.git1), this.gitInv2 = this.gitInv2 || Ot(this.git2), this.gitInv3 = this.gitInv3 || Ot(this.git3), this.gitInv4 = this.gitInv4 || Ot(this.git4), this.gitInv5 = this.gitInv5 || Ot(this.git5), this.gitInv6 = this.gitInv6 || Ot(this.git6), this.gitInv7 = this.gitInv7 || Ot(this.git7), this.branchLabelColor = this.branchLabelColor || (this.darkMode ? "black" : this.labelTextColor), this.gitBranchLabel0 = this.gitBranchLabel0 || this.branchLabelColor, this.gitBranchLabel1 = this.gitBranchLabel1 || this.branchLabelColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.branchLabelColor, this.gitBranchLabel3 = this.gitBranchLabel3 || this.branchLabelColor, this.gitBranchLabel4 = this.gitBranchLabel4 || this.branchLabelColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.branchLabelColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.branchLabelColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.branchLabelColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || OT, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || kT; } calculate(e) { if (typeof e != "object") { @@ -34784,10 +34784,10 @@ var Yg = bie(), xie = Object.defineProperty, x = (t, e) => xie(t, "name", { valu } }, (() => { x(sb, "Theme"); -})(), sb), rvt = /* @__PURE__ */ x((t) => { - const e = new tvt(); +})(), sb), evt = /* @__PURE__ */ x((t) => { + const e = new Jmt(); return e.calculate(t), e; -}, "getThemeVariables"), ab, nvt = (ab = class { +}, "getThemeVariables"), ab, tvt = (ab = class { constructor() { this.background = "#333", this.primaryColor = "#1f2020", this.secondaryColor = Ft(this.primaryColor, 16), this.tertiaryColor = Pe(this.primaryColor, { h: -160 }), this.primaryBorderColor = Ot(this.background), this.secondaryBorderColor = ta(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = ta(this.tertiaryColor, this.darkMode), this.primaryTextColor = Ot(this.primaryColor), this.secondaryTextColor = Ot(this.secondaryColor), this.tertiaryTextColor = Ot(this.tertiaryColor), this.lineColor = Ot(this.background), this.textColor = Ot(this.background), this.mainBkg = "#1f2020", this.secondBkg = "calculated", this.mainContrastColor = "lightgrey", this.darkTextColor = Ft(Ot("#323D47"), 10), this.lineColor = "calculated", this.border1 = "#ccc", this.border2 = Qd(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 = Qt("#EAE8D9", 30), this.altSectionBkgColor = "calculated", this.sectionBkgColor2 = "#EAE8D9", this.excludeBkgColor = Qt(this.sectionBkgColor, 10), this.taskBorderColor = Qd(255, 255, 255, 70), this.taskBkgColor = "calculated", this.taskTextColor = "calculated", this.taskTextLightColor = "calculated", this.taskTextOutsideColor = "calculated", this.taskTextClickableColor = "#003163", this.activeTaskBorderColor = Qd(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.archEdgeColor = "calculated", this.archEdgeArrowColor = "calculated", this.archEdgeWidth = "3", this.archGroupBorderColor = this.primaryBorderColor, this.archGroupBorderWidth = "2px", this.labelColor = "calculated", this.errorBkgColor = "#a44141", this.errorTextColor = "#ddd"; } @@ -34840,10 +34840,10 @@ var Yg = bie(), xie = Object.defineProperty, x = (t, e) => xie(t, "name", { valu } }, (() => { x(ab, "Theme"); -})(), ab), ivt = /* @__PURE__ */ x((t) => { - const e = new nvt(); +})(), ab), rvt = /* @__PURE__ */ x((t) => { + const e = new tvt(); return e.calculate(t), e; -}, "getThemeVariables"), ob, svt = (ob = class { +}, "getThemeVariables"), ob, nvt = (ob = class { constructor() { this.background = "#f4f4f4", this.primaryColor = "#ECECFF", this.secondaryColor = Pe(this.primaryColor, { h: 120 }), this.secondaryColor = "#ffffde", this.tertiaryColor = Pe(this.primaryColor, { h: -160 }), this.primaryBorderColor = ta(this.primaryColor, this.darkMode), this.secondaryBorderColor = ta(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = ta(this.tertiaryColor, this.darkMode), this.primaryTextColor = Ot(this.primaryColor), this.secondaryTextColor = Ot(this.secondaryColor), this.tertiaryTextColor = Ot(this.tertiaryColor), this.lineColor = Ot(this.background), this.textColor = Ot(this.background), this.background = "white", this.mainBkg = "#ECECFF", this.secondBkg = "#ffffde", this.lineColor = "#333333", this.border1 = "#9370DB", this.border2 = "#aaaa33", this.arrowheadColor = "#333333", this.fontFamily = '"trebuchet ms", verdana, arial, sans-serif', this.fontSize = "16px", this.labelBackground = "rgba(232,232,232, 0.8)", this.textColor = "#333", this.THEME_COLOR_LIMIT = 12, this.nodeBkg = "calculated", this.nodeBorder = "calculated", this.clusterBkg = "calculated", this.clusterBorder = "calculated", this.defaultLinkColor = "calculated", this.titleColor = "calculated", this.edgeLabelBackground = "calculated", this.actorBorder = "calculated", this.actorBkg = "calculated", this.actorTextColor = "black", this.actorLineColor = "calculated", this.signalColor = "calculated", this.signalTextColor = "calculated", this.labelBoxBkgColor = "calculated", this.labelBoxBorderColor = "calculated", this.labelTextColor = "calculated", this.loopTextColor = "calculated", this.noteBorderColor = "calculated", this.noteBkgColor = "#fff5ad", this.noteTextColor = "calculated", this.activationBorderColor = "#666", this.activationBkgColor = "#f4f4f4", this.sequenceNumberColor = "white", this.sectionBkgColor = "calculated", this.altSectionBkgColor = "calculated", this.sectionBkgColor2 = "calculated", this.excludeBkgColor = "#eeeeee", this.taskBorderColor = "calculated", this.taskBkgColor = "calculated", this.taskTextLightColor = "calculated", this.taskTextColor = this.taskTextLightColor, this.taskTextDarkColor = "calculated", this.taskTextOutsideColor = this.taskTextDarkColor, this.taskTextClickableColor = "calculated", this.activeTaskBorderColor = "calculated", this.activeTaskBkgColor = "calculated", this.gridColor = "calculated", this.doneTaskBkgColor = "calculated", this.doneTaskBorderColor = "calculated", this.critBorderColor = "calculated", this.critBkgColor = "calculated", this.todayLineColor = "calculated", this.sectionBkgColor = Qd(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.archEdgeColor = "calculated", this.archEdgeArrowColor = "calculated", this.archEdgeWidth = "3", this.archGroupBorderColor = this.primaryBorderColor, this.archGroupBorderWidth = "2px", this.labelColor = "black", this.errorBkgColor = "#552222", this.errorTextColor = "#552222", this.updateColors(); } @@ -34873,7 +34873,7 @@ var Yg = bie(), xie = Object.defineProperty, x = (t, e) => xie(t, "name", { valu yAxisTickColor: ((u = this.xyChart) == null ? void 0 : u.yAxisTickColor) || this.primaryTextColor, yAxisLineColor: ((h = this.xyChart) == null ? void 0 : h.yAxisLineColor) || this.primaryTextColor, plotColorPalette: ((f = this.xyChart) == null ? void 0 : f.plotColorPalette) || "#ECECFF,#8493A6,#FFC3A0,#DCDDE1,#B8E994,#D1A36F,#C3CDE6,#FFB6C1,#496078,#F8F3E3" - }, this.requirementBackground = this.requirementBackground || this.primaryColor, this.requirementBorderColor = this.requirementBorderColor || this.primaryBorderColor, this.requirementBorderSize = this.requirementBorderSize || "1", this.requirementTextColor = this.requirementTextColor || this.primaryTextColor, this.relationColor = this.relationColor || this.lineColor, this.relationLabelBackground = this.relationLabelBackground || this.labelBackground, this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.git0 = this.git0 || this.primaryColor, this.git1 = this.git1 || this.secondaryColor, this.git2 = this.git2 || this.tertiaryColor, this.git3 = this.git3 || Pe(this.primaryColor, { h: -30 }), this.git4 = this.git4 || Pe(this.primaryColor, { h: -60 }), this.git5 = this.git5 || Pe(this.primaryColor, { h: -90 }), this.git6 = this.git6 || Pe(this.primaryColor, { h: 60 }), this.git7 = this.git7 || Pe(this.primaryColor, { h: 120 }), this.darkMode ? (this.git0 = Ft(this.git0, 25), this.git1 = Ft(this.git1, 25), this.git2 = Ft(this.git2, 25), this.git3 = Ft(this.git3, 25), this.git4 = Ft(this.git4, 25), this.git5 = Ft(this.git5, 25), this.git6 = Ft(this.git6, 25), this.git7 = Ft(this.git7, 25)) : (this.git0 = Qt(this.git0, 25), this.git1 = Qt(this.git1, 25), this.git2 = Qt(this.git2, 25), this.git3 = Qt(this.git3, 25), this.git4 = Qt(this.git4, 25), this.git5 = Qt(this.git5, 25), this.git6 = Qt(this.git6, 25), this.git7 = Qt(this.git7, 25)), this.gitInv0 = this.gitInv0 || Qt(Ot(this.git0), 25), this.gitInv1 = this.gitInv1 || Ot(this.git1), this.gitInv2 = this.gitInv2 || Ot(this.git2), this.gitInv3 = this.gitInv3 || Ot(this.git3), this.gitInv4 = this.gitInv4 || Ot(this.git4), this.gitInv5 = this.gitInv5 || Ot(this.git5), this.gitInv6 = this.gitInv6 || Ot(this.git6), this.gitInv7 = this.gitInv7 || Ot(this.git7), this.gitBranchLabel0 = this.gitBranchLabel0 || Ot(this.labelTextColor), this.gitBranchLabel1 = this.gitBranchLabel1 || this.labelTextColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.labelTextColor, this.gitBranchLabel3 = this.gitBranchLabel3 || Ot(this.labelTextColor), this.gitBranchLabel4 = this.gitBranchLabel4 || this.labelTextColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.labelTextColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.labelTextColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.labelTextColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || ST, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || TT; + }, 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 || Pe(this.primaryColor, { h: -30 }), this.git4 = this.git4 || Pe(this.primaryColor, { h: -60 }), this.git5 = this.git5 || Pe(this.primaryColor, { h: -90 }), this.git6 = this.git6 || Pe(this.primaryColor, { h: 60 }), this.git7 = this.git7 || Pe(this.primaryColor, { h: 120 }), this.darkMode ? (this.git0 = Ft(this.git0, 25), this.git1 = Ft(this.git1, 25), this.git2 = Ft(this.git2, 25), this.git3 = Ft(this.git3, 25), this.git4 = Ft(this.git4, 25), this.git5 = Ft(this.git5, 25), this.git6 = Ft(this.git6, 25), this.git7 = Ft(this.git7, 25)) : (this.git0 = Qt(this.git0, 25), this.git1 = Qt(this.git1, 25), this.git2 = Qt(this.git2, 25), this.git3 = Qt(this.git3, 25), this.git4 = Qt(this.git4, 25), this.git5 = Qt(this.git5, 25), this.git6 = Qt(this.git6, 25), this.git7 = Qt(this.git7, 25)), this.gitInv0 = this.gitInv0 || Qt(Ot(this.git0), 25), this.gitInv1 = this.gitInv1 || Ot(this.git1), this.gitInv2 = this.gitInv2 || Ot(this.git2), this.gitInv3 = this.gitInv3 || Ot(this.git3), this.gitInv4 = this.gitInv4 || Ot(this.git4), this.gitInv5 = this.gitInv5 || Ot(this.git5), this.gitInv6 = this.gitInv6 || Ot(this.git6), this.gitInv7 = this.gitInv7 || Ot(this.git7), this.gitBranchLabel0 = this.gitBranchLabel0 || Ot(this.labelTextColor), this.gitBranchLabel1 = this.gitBranchLabel1 || this.labelTextColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.labelTextColor, this.gitBranchLabel3 = this.gitBranchLabel3 || Ot(this.labelTextColor), this.gitBranchLabel4 = this.gitBranchLabel4 || this.labelTextColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.labelTextColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.labelTextColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.labelTextColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || OT, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || kT; } calculate(e) { if (typeof e != "object") { @@ -34889,10 +34889,10 @@ var Yg = bie(), xie = Object.defineProperty, x = (t, e) => xie(t, "name", { valu } }, (() => { x(ob, "Theme"); -})(), ob), CD = /* @__PURE__ */ x((t) => { - const e = new svt(); +})(), ob), kD = /* @__PURE__ */ x((t) => { + const e = new nvt(); return e.calculate(t), e; -}, "getThemeVariables"), lb, avt = (lb = class { +}, "getThemeVariables"), lb, ivt = (lb = class { constructor() { this.background = "#f4f4f4", this.primaryColor = "#cde498", this.secondaryColor = "#cdffb2", this.background = "white", this.mainBkg = "#cde498", this.secondBkg = "#cdffb2", this.lineColor = "green", this.border1 = "#13540c", this.border2 = "#6eaa49", this.arrowheadColor = "green", this.fontFamily = '"trebuchet ms", verdana, arial, sans-serif', this.fontSize = "16px", this.tertiaryColor = Ft("#cde498", 10), this.primaryBorderColor = ta(this.primaryColor, this.darkMode), this.secondaryBorderColor = ta(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = ta(this.tertiaryColor, this.darkMode), this.primaryTextColor = Ot(this.primaryColor), this.secondaryTextColor = Ot(this.secondaryColor), this.tertiaryTextColor = Ot(this.primaryColor), this.lineColor = Ot(this.background), this.textColor = Ot(this.background), this.THEME_COLOR_LIMIT = 12, this.nodeBkg = "calculated", this.nodeBorder = "calculated", this.clusterBkg = "calculated", this.clusterBorder = "calculated", this.defaultLinkColor = "calculated", this.titleColor = "#333", this.edgeLabelBackground = "#e8e8e8", this.actorBorder = "calculated", this.actorBkg = "calculated", this.actorTextColor = "black", this.actorLineColor = "calculated", this.signalColor = "#333", this.signalTextColor = "#333", this.labelBoxBkgColor = "calculated", this.labelBoxBorderColor = "#326932", this.labelTextColor = "calculated", this.loopTextColor = "calculated", this.noteBorderColor = "calculated", this.noteBkgColor = "#fff5ad", this.noteTextColor = "calculated", this.activationBorderColor = "#666", this.activationBkgColor = "#f4f4f4", this.sequenceNumberColor = "white", this.sectionBkgColor = "#6eaa49", this.altSectionBkgColor = "white", this.sectionBkgColor2 = "#6eaa49", this.excludeBkgColor = "#eeeeee", this.taskBorderColor = "calculated", this.taskBkgColor = "#487e3a", this.taskTextLightColor = "white", this.taskTextColor = "calculated", this.taskTextDarkColor = "black", this.taskTextOutsideColor = "calculated", this.taskTextClickableColor = "#003163", this.activeTaskBorderColor = "calculated", this.activeTaskBkgColor = "calculated", this.gridColor = "lightgrey", this.doneTaskBkgColor = "lightgrey", this.doneTaskBorderColor = "grey", this.critBorderColor = "#ff8888", this.critBkgColor = "red", this.todayLineColor = "red", this.personBorder = this.primaryBorderColor, this.personBkg = this.mainBkg, this.archEdgeColor = "calculated", this.archEdgeArrowColor = "calculated", this.archEdgeWidth = "3", this.archGroupBorderColor = this.primaryBorderColor, this.archGroupBorderWidth = "2px", this.labelColor = "black", this.errorBkgColor = "#552222", this.errorTextColor = "#552222"; } @@ -34927,7 +34927,7 @@ var Yg = bie(), xie = Object.defineProperty, x = (t, e) => xie(t, "name", { valu yAxisTickColor: ((u = this.xyChart) == null ? void 0 : u.yAxisTickColor) || this.primaryTextColor, yAxisLineColor: ((h = this.xyChart) == null ? void 0 : h.yAxisLineColor) || this.primaryTextColor, plotColorPalette: ((f = this.xyChart) == null ? void 0 : f.plotColorPalette) || "#CDE498,#FF6B6B,#A0D2DB,#D7BDE2,#F0F0F0,#FFC3A0,#7FD8BE,#FF9A8B,#FAF3E0,#FFF176" - }, this.requirementBackground = this.requirementBackground || this.primaryColor, this.requirementBorderColor = this.requirementBorderColor || this.primaryBorderColor, this.requirementBorderSize = this.requirementBorderSize || "1", this.requirementTextColor = this.requirementTextColor || this.primaryTextColor, this.relationColor = this.relationColor || this.lineColor, this.relationLabelBackground = this.relationLabelBackground || this.edgeLabelBackground, this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.git0 = this.git0 || this.primaryColor, this.git1 = this.git1 || this.secondaryColor, this.git2 = this.git2 || this.tertiaryColor, this.git3 = this.git3 || Pe(this.primaryColor, { h: -30 }), this.git4 = this.git4 || Pe(this.primaryColor, { h: -60 }), this.git5 = this.git5 || Pe(this.primaryColor, { h: -90 }), this.git6 = this.git6 || Pe(this.primaryColor, { h: 60 }), this.git7 = this.git7 || Pe(this.primaryColor, { h: 120 }), this.darkMode ? (this.git0 = Ft(this.git0, 25), this.git1 = Ft(this.git1, 25), this.git2 = Ft(this.git2, 25), this.git3 = Ft(this.git3, 25), this.git4 = Ft(this.git4, 25), this.git5 = Ft(this.git5, 25), this.git6 = Ft(this.git6, 25), this.git7 = Ft(this.git7, 25)) : (this.git0 = Qt(this.git0, 25), this.git1 = Qt(this.git1, 25), this.git2 = Qt(this.git2, 25), this.git3 = Qt(this.git3, 25), this.git4 = Qt(this.git4, 25), this.git5 = Qt(this.git5, 25), this.git6 = Qt(this.git6, 25), this.git7 = Qt(this.git7, 25)), this.gitInv0 = this.gitInv0 || Ot(this.git0), this.gitInv1 = this.gitInv1 || Ot(this.git1), this.gitInv2 = this.gitInv2 || Ot(this.git2), this.gitInv3 = this.gitInv3 || Ot(this.git3), this.gitInv4 = this.gitInv4 || Ot(this.git4), this.gitInv5 = this.gitInv5 || Ot(this.git5), this.gitInv6 = this.gitInv6 || Ot(this.git6), this.gitInv7 = this.gitInv7 || Ot(this.git7), this.gitBranchLabel0 = this.gitBranchLabel0 || Ot(this.labelTextColor), this.gitBranchLabel1 = this.gitBranchLabel1 || this.labelTextColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.labelTextColor, this.gitBranchLabel3 = this.gitBranchLabel3 || Ot(this.labelTextColor), this.gitBranchLabel4 = this.gitBranchLabel4 || this.labelTextColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.labelTextColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.labelTextColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.labelTextColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || ST, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || TT; + }, 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 || Pe(this.primaryColor, { h: -30 }), this.git4 = this.git4 || Pe(this.primaryColor, { h: -60 }), this.git5 = this.git5 || Pe(this.primaryColor, { h: -90 }), this.git6 = this.git6 || Pe(this.primaryColor, { h: 60 }), this.git7 = this.git7 || Pe(this.primaryColor, { h: 120 }), this.darkMode ? (this.git0 = Ft(this.git0, 25), this.git1 = Ft(this.git1, 25), this.git2 = Ft(this.git2, 25), this.git3 = Ft(this.git3, 25), this.git4 = Ft(this.git4, 25), this.git5 = Ft(this.git5, 25), this.git6 = Ft(this.git6, 25), this.git7 = Ft(this.git7, 25)) : (this.git0 = Qt(this.git0, 25), this.git1 = Qt(this.git1, 25), this.git2 = Qt(this.git2, 25), this.git3 = Qt(this.git3, 25), this.git4 = Qt(this.git4, 25), this.git5 = Qt(this.git5, 25), this.git6 = Qt(this.git6, 25), this.git7 = Qt(this.git7, 25)), this.gitInv0 = this.gitInv0 || Ot(this.git0), this.gitInv1 = this.gitInv1 || Ot(this.git1), this.gitInv2 = this.gitInv2 || Ot(this.git2), this.gitInv3 = this.gitInv3 || Ot(this.git3), this.gitInv4 = this.gitInv4 || Ot(this.git4), this.gitInv5 = this.gitInv5 || Ot(this.git5), this.gitInv6 = this.gitInv6 || Ot(this.git6), this.gitInv7 = this.gitInv7 || Ot(this.git7), this.gitBranchLabel0 = this.gitBranchLabel0 || Ot(this.labelTextColor), this.gitBranchLabel1 = this.gitBranchLabel1 || this.labelTextColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.labelTextColor, this.gitBranchLabel3 = this.gitBranchLabel3 || Ot(this.labelTextColor), this.gitBranchLabel4 = this.gitBranchLabel4 || this.labelTextColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.labelTextColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.labelTextColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.labelTextColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || OT, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || kT; } calculate(e) { if (typeof e != "object") { @@ -34943,10 +34943,10 @@ var Yg = bie(), xie = Object.defineProperty, x = (t, e) => xie(t, "name", { valu } }, (() => { x(lb, "Theme"); -})(), lb), ovt = /* @__PURE__ */ x((t) => { - const e = new avt(); +})(), lb), svt = /* @__PURE__ */ x((t) => { + const e = new ivt(); return e.calculate(t), e; -}, "getThemeVariables"), cb, lvt = (cb = class { +}, "getThemeVariables"), cb, avt = (cb = class { constructor() { this.primaryColor = "#eee", this.contrast = "#707070", this.secondaryColor = Ft(this.contrast, 55), this.background = "#ffffff", this.tertiaryColor = Pe(this.primaryColor, { h: -160 }), this.primaryBorderColor = ta(this.primaryColor, this.darkMode), this.secondaryBorderColor = ta(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = ta(this.tertiaryColor, this.darkMode), this.primaryTextColor = Ot(this.primaryColor), this.secondaryTextColor = Ot(this.secondaryColor), this.tertiaryTextColor = Ot(this.tertiaryColor), this.lineColor = Ot(this.background), this.textColor = Ot(this.background), this.mainBkg = "#eee", this.secondBkg = "calculated", this.lineColor = "#666", this.border1 = "#999", this.border2 = "calculated", this.note = "#ffa", this.text = "#333", this.critical = "#d42", this.done = "#bbb", this.arrowheadColor = "#333333", this.fontFamily = '"trebuchet ms", verdana, arial, sans-serif', this.fontSize = "16px", this.THEME_COLOR_LIMIT = 12, this.nodeBkg = "calculated", this.nodeBorder = "calculated", this.clusterBkg = "calculated", this.clusterBorder = "calculated", this.defaultLinkColor = "calculated", this.titleColor = "calculated", this.edgeLabelBackground = "white", this.actorBorder = "calculated", this.actorBkg = "calculated", this.actorTextColor = "calculated", this.actorLineColor = this.actorBorder, this.signalColor = "calculated", this.signalTextColor = "calculated", this.labelBoxBkgColor = "calculated", this.labelBoxBorderColor = "calculated", this.labelTextColor = "calculated", this.loopTextColor = "calculated", this.noteBorderColor = "calculated", this.noteBkgColor = "calculated", this.noteTextColor = "calculated", this.activationBorderColor = "#666", this.activationBkgColor = "#f4f4f4", this.sequenceNumberColor = "white", this.sectionBkgColor = "calculated", this.altSectionBkgColor = "white", this.sectionBkgColor2 = "calculated", this.excludeBkgColor = "#eeeeee", this.taskBorderColor = "calculated", this.taskBkgColor = "calculated", this.taskTextLightColor = "white", this.taskTextColor = "calculated", this.taskTextDarkColor = "calculated", this.taskTextOutsideColor = "calculated", this.taskTextClickableColor = "#003163", this.activeTaskBorderColor = "calculated", this.activeTaskBkgColor = "calculated", this.gridColor = "calculated", this.doneTaskBkgColor = "calculated", this.doneTaskBorderColor = "calculated", this.critBkgColor = "calculated", this.critBorderColor = "calculated", this.todayLineColor = "calculated", this.personBorder = this.primaryBorderColor, this.personBkg = this.mainBkg, this.archEdgeColor = "calculated", this.archEdgeArrowColor = "calculated", this.archEdgeWidth = "3", this.archGroupBorderColor = this.primaryBorderColor, this.archGroupBorderWidth = "2px", this.labelColor = "black", this.errorBkgColor = "#552222", this.errorTextColor = "#552222"; } @@ -34977,7 +34977,7 @@ var Yg = bie(), xie = Object.defineProperty, x = (t, e) => xie(t, "name", { valu yAxisTickColor: ((u = this.xyChart) == null ? void 0 : u.yAxisTickColor) || this.primaryTextColor, yAxisLineColor: ((h = this.xyChart) == null ? void 0 : h.yAxisLineColor) || this.primaryTextColor, plotColorPalette: ((f = this.xyChart) == null ? void 0 : f.plotColorPalette) || "#EEE,#6BB8E4,#8ACB88,#C7ACD6,#E8DCC2,#FFB2A8,#FFF380,#7E8D91,#FFD8B1,#FAF3E0" - }, 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 = Qt(this.pie1, 25) || this.primaryColor, this.git1 = this.pie2 || this.secondaryColor, this.git2 = this.pie3 || this.tertiaryColor, this.git3 = this.pie4 || Pe(this.primaryColor, { h: -30 }), this.git4 = this.pie5 || Pe(this.primaryColor, { h: -60 }), this.git5 = this.pie6 || Pe(this.primaryColor, { h: -90 }), this.git6 = this.pie7 || Pe(this.primaryColor, { h: 60 }), this.git7 = this.pie8 || Pe(this.primaryColor, { h: 120 }), this.gitInv0 = this.gitInv0 || Ot(this.git0), this.gitInv1 = this.gitInv1 || Ot(this.git1), this.gitInv2 = this.gitInv2 || Ot(this.git2), this.gitInv3 = this.gitInv3 || Ot(this.git3), this.gitInv4 = this.gitInv4 || Ot(this.git4), this.gitInv5 = this.gitInv5 || Ot(this.git5), this.gitInv6 = this.gitInv6 || Ot(this.git6), this.gitInv7 = this.gitInv7 || Ot(this.git7), this.branchLabelColor = this.branchLabelColor || this.labelTextColor, this.gitBranchLabel0 = this.branchLabelColor, this.gitBranchLabel1 = "white", this.gitBranchLabel2 = this.branchLabelColor, this.gitBranchLabel3 = "white", this.gitBranchLabel4 = this.branchLabelColor, this.gitBranchLabel5 = this.branchLabelColor, this.gitBranchLabel6 = this.branchLabelColor, this.gitBranchLabel7 = this.branchLabelColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || ST, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || TT; + }, 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 = Qt(this.pie1, 25) || this.primaryColor, this.git1 = this.pie2 || this.secondaryColor, this.git2 = this.pie3 || this.tertiaryColor, this.git3 = this.pie4 || Pe(this.primaryColor, { h: -30 }), this.git4 = this.pie5 || Pe(this.primaryColor, { h: -60 }), this.git5 = this.pie6 || Pe(this.primaryColor, { h: -90 }), this.git6 = this.pie7 || Pe(this.primaryColor, { h: 60 }), this.git7 = this.pie8 || Pe(this.primaryColor, { h: 120 }), this.gitInv0 = this.gitInv0 || Ot(this.git0), this.gitInv1 = this.gitInv1 || Ot(this.git1), this.gitInv2 = this.gitInv2 || Ot(this.git2), this.gitInv3 = this.gitInv3 || Ot(this.git3), this.gitInv4 = this.gitInv4 || Ot(this.git4), this.gitInv5 = this.gitInv5 || Ot(this.git5), this.gitInv6 = this.gitInv6 || Ot(this.git6), this.gitInv7 = this.gitInv7 || Ot(this.git7), this.branchLabelColor = this.branchLabelColor || this.labelTextColor, this.gitBranchLabel0 = this.branchLabelColor, this.gitBranchLabel1 = "white", this.gitBranchLabel2 = this.branchLabelColor, this.gitBranchLabel3 = "white", this.gitBranchLabel4 = this.branchLabelColor, this.gitBranchLabel5 = this.branchLabelColor, this.gitBranchLabel6 = this.branchLabelColor, this.gitBranchLabel7 = this.branchLabelColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || OT, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || kT; } calculate(e) { if (typeof e != "object") { @@ -34993,24 +34993,24 @@ var Yg = bie(), xie = Object.defineProperty, x = (t, e) => xie(t, "name", { valu } }, (() => { x(cb, "Theme"); -})(), cb), cvt = /* @__PURE__ */ x((t) => { - const e = new lvt(); +})(), cb), ovt = /* @__PURE__ */ x((t) => { + const e = new avt(); return e.calculate(t), e; }, "getThemeVariables"), Lu = { base: { - getThemeVariables: rvt + getThemeVariables: evt }, dark: { - getThemeVariables: ivt + getThemeVariables: rvt }, default: { - getThemeVariables: CD + getThemeVariables: kD }, forest: { - getThemeVariables: ovt + getThemeVariables: svt }, neutral: { - getThemeVariables: cvt + getThemeVariables: ovt } }, gh = { flowchart: { @@ -35477,7 +35477,7 @@ var Yg = bie(), xie = Object.defineProperty, x = (t, e) => xie(t, "name", { valu fontSize: 16, markdownAutoWrap: !0, suppressErrorRendering: !1 -}, Cie = { +}, Sie = { ...gh, deterministicIDSeed: void 0, elk: { @@ -35688,24 +35688,24 @@ var Yg = bie(), xie = Object.defineProperty, x = (t, e) => xie(t, "name", { valu packet: { ...gh.packet } -}, Eie = /* @__PURE__ */ x((t, e = "") => Object.keys(t).reduce((r, n) => Array.isArray(t[n]) ? r : typeof t[n] == "object" && t[n] !== null ? [...r, e + n, ...Eie(t[n], "")] : [...r, e + n], []), "keyify"), uvt = new Set(Eie(Cie, "")), jr = Cie, p3 = /* @__PURE__ */ x((t) => { +}, Tie = /* @__PURE__ */ x((t, e = "") => Object.keys(t).reduce((r, n) => Array.isArray(t[n]) ? r : typeof t[n] == "object" && t[n] !== null ? [...r, e + n, ...Tie(t[n], "")] : [...r, e + n], []), "keyify"), lvt = new Set(Tie(Sie, "")), jr = Sie, d3 = /* @__PURE__ */ x((t) => { if (X.debug("sanitizeDirective called with", t), !(typeof t != "object" || t == null)) { if (Array.isArray(t)) { - t.forEach((e) => p3(e)); + t.forEach((e) => d3(e)); return; } for (const e of Object.keys(t)) { - if (X.debug("Checking key", e), e.startsWith("__") || e.includes("proto") || e.includes("constr") || !uvt.has(e) || t[e] == null) { + if (X.debug("Checking key", e), e.startsWith("__") || e.includes("proto") || e.includes("constr") || !lvt.has(e) || t[e] == null) { X.debug("sanitize deleting key: ", e), delete t[e]; continue; } if (typeof t[e] == "object") { - X.debug("sanitizing object", e), p3(t[e]); + X.debug("sanitizing object", e), d3(t[e]); continue; } const r = ["themeCSS", "fontFamily", "altFontFamily"]; for (const n of r) - e.includes(n) && (X.debug("sanitizing css option", e), t[e] = hvt(t[e])); + e.includes(n) && (X.debug("sanitizing css option", e), t[e] = cvt(t[e])); } if (t.themeVariables) for (const e of Object.keys(t.themeVariables)) { @@ -35714,7 +35714,7 @@ var Yg = bie(), xie = Object.defineProperty, x = (t, e) => xie(t, "name", { valu } X.debug("After sanitization", t); } -}, "sanitizeDirective"), hvt = /* @__PURE__ */ x((t) => { +}, "sanitizeDirective"), cvt = /* @__PURE__ */ x((t) => { let e = 0, r = 0; for (const n of t) { if (e < r) @@ -35722,50 +35722,50 @@ var Yg = bie(), xie = Object.defineProperty, x = (t, e) => xie(t, "name", { valu n === "{" ? e++ : n === "}" && r++; } return e !== r ? "{ /* ERROR: Unbalanced CSS */ }" : t; -}, "sanitizeCss"), Wg = Object.freeze(jr), Sa = Ci({}, Wg), _ie, Gg = [], iy = Ci({}, Wg), CT = /* @__PURE__ */ x((t, e) => { +}, "sanitizeCss"), Wg = Object.freeze(jr), Sa = Ci({}, Wg), Cie, Gg = [], iy = Ci({}, Wg), ST = /* @__PURE__ */ x((t, e) => { let r = Ci({}, t), n = {}; for (const i of e) - Rie(i), n = Ci(n, i); + Aie(i), n = Ci(n, i); if (r = Ci(r, n), n.theme && n.theme in Lu) { - const i = Ci({}, _ie), s = Ci( + const i = Ci({}, Cie), s = Ci( i.themeVariables || {}, n.themeVariables ); r.theme && r.theme in Lu && (r.themeVariables = Lu[r.theme].getThemeVariables(s)); } - return iy = r, Mie(iy), iy; -}, "updateCurrentConfig"), fvt = /* @__PURE__ */ x((t) => (Sa = Ci({}, Wg), Sa = Ci(Sa, t), t.theme && Lu[t.theme] && (Sa.themeVariables = Lu[t.theme].getThemeVariables(t.themeVariables)), CT(Sa, Gg), Sa), "setSiteConfig"), dvt = /* @__PURE__ */ x((t) => { - _ie = Ci({}, t); -}, "saveConfigFromInitialize"), pvt = /* @__PURE__ */ x((t) => (Sa = Ci(Sa, t), CT(Sa, Gg), Sa), "updateSiteConfig"), Aie = /* @__PURE__ */ x(() => Ci({}, Sa), "getSiteConfig"), Lie = /* @__PURE__ */ x((t) => (Mie(t), Ci(iy, t), pi()), "setConfig"), pi = /* @__PURE__ */ x(() => Ci({}, iy), "getConfig"), Rie = /* @__PURE__ */ x((t) => { + return iy = r, Lie(iy), iy; +}, "updateCurrentConfig"), uvt = /* @__PURE__ */ x((t) => (Sa = Ci({}, Wg), Sa = Ci(Sa, t), t.theme && Lu[t.theme] && (Sa.themeVariables = Lu[t.theme].getThemeVariables(t.themeVariables)), ST(Sa, Gg), Sa), "setSiteConfig"), hvt = /* @__PURE__ */ x((t) => { + Cie = Ci({}, t); +}, "saveConfigFromInitialize"), fvt = /* @__PURE__ */ x((t) => (Sa = Ci(Sa, t), ST(Sa, Gg), Sa), "updateSiteConfig"), Eie = /* @__PURE__ */ x(() => Ci({}, Sa), "getSiteConfig"), _ie = /* @__PURE__ */ x((t) => (Lie(t), Ci(iy, t), pi()), "setConfig"), pi = /* @__PURE__ */ x(() => Ci({}, iy), "getConfig"), Aie = /* @__PURE__ */ x((t) => { var e; !t || (["secure", ...(e = Sa.secure) != null ? e : []].forEach((r) => { Object.hasOwn(t, r) && (X.debug(`Denied attempt to modify a secure key ${r}`, t[r]), delete t[r]); }), Object.keys(t).forEach((r) => { r.startsWith("__") && delete t[r]; }), Object.keys(t).forEach((r) => { - typeof t[r] == "string" && (t[r].includes("<") || t[r].includes(">") || t[r].includes("url(data:")) && delete t[r], typeof t[r] == "object" && Rie(t[r]); + typeof t[r] == "string" && (t[r].includes("<") || t[r].includes(">") || t[r].includes("url(data:")) && delete t[r], typeof t[r] == "object" && Aie(t[r]); })); -}, "sanitize"), gvt = /* @__PURE__ */ x((t) => { +}, "sanitize"), dvt = /* @__PURE__ */ x((t) => { var e; - p3(t), t.fontFamily && !((e = t.themeVariables) != null && e.fontFamily) && (t.themeVariables = { + d3(t), t.fontFamily && !((e = t.themeVariables) != null && e.fontFamily) && (t.themeVariables = { ...t.themeVariables, fontFamily: t.fontFamily - }), Gg.push(t), CT(Sa, Gg); -}, "addDirective"), g3 = /* @__PURE__ */ x((t = Sa) => { - Gg = [], CT(t, Gg); -}, "reset"), mvt = { + }), Gg.push(t), ST(Sa, Gg); +}, "addDirective"), p3 = /* @__PURE__ */ x((t = Sa) => { + Gg = [], ST(t, Gg); +}, "reset"), pvt = { LAZY_LOAD_DEPRECATED: "The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead." -}, TU = {}, vvt = /* @__PURE__ */ x((t) => { - TU[t] || (X.warn(mvt[t]), TU[t] = !0); -}, "issueWarning"), Mie = /* @__PURE__ */ x((t) => { - !t || (t.lazyLoadedDiagrams || t.loadExternalDiagramsAtStartup) && vvt("LAZY_LOAD_DEPRECATED"); -}, "checkConfig"), X1 = //gi, yvt = /* @__PURE__ */ x((t) => t ? Iie(t).replace(/\\n/g, "#br#").split("#br#") : [""], "getRows"), bvt = /* @__PURE__ */ (() => { +}, OU = {}, gvt = /* @__PURE__ */ x((t) => { + OU[t] || (X.warn(pvt[t]), OU[t] = !0); +}, "issueWarning"), Lie = /* @__PURE__ */ x((t) => { + !t || (t.lazyLoadedDiagrams || t.loadExternalDiagramsAtStartup) && gvt("LAZY_LOAD_DEPRECATED"); +}, "checkConfig"), X1 = //gi, mvt = /* @__PURE__ */ x((t) => t ? Die(t).replace(/\\n/g, "#br#").split("#br#") : [""], "getRows"), vvt = /* @__PURE__ */ (() => { let t = !1; return () => { - t || (Die(), t = !0); + t || (Rie(), t = !0); }; })(); -function Die() { +function Rie() { const t = "data-temp-href-target"; Yg.addHook("beforeSanitizeAttributes", (e) => { var r; @@ -35775,23 +35775,23 @@ function Die() { e.tagName === "A" && e.hasAttribute(t) && (e.setAttribute("target", (r = e.getAttribute(t)) != null ? r : ""), e.removeAttribute(t), e.getAttribute("target") === "_blank" && e.setAttribute("rel", "noopener")); }); } -x(Die, "setupDompurifyHooks"); -var Nie = /* @__PURE__ */ x((t) => (bvt(), Yg.sanitize(t)), "removeScript"), CU = /* @__PURE__ */ x((t, e) => { +x(Rie, "setupDompurifyHooks"); +var Mie = /* @__PURE__ */ x((t) => (vvt(), Yg.sanitize(t)), "removeScript"), kU = /* @__PURE__ */ x((t, e) => { var r; if (((r = e.flowchart) == null ? void 0 : r.htmlLabels) !== !1) { const n = e.securityLevel; - n === "antiscript" || n === "strict" ? t = Nie(t) : n !== "loose" && (t = Iie(t), t = t.replace(//g, ">"), t = t.replace(/=/g, "="), t = kvt(t)); + n === "antiscript" || n === "strict" ? t = Mie(t) : n !== "loose" && (t = Die(t), t = t.replace(//g, ">"), t = t.replace(/=/g, "="), t = wvt(t)); } return t; -}, "sanitizeMore"), ni = /* @__PURE__ */ x((t, e) => t && (e.dompurifyConfig ? t = Yg.sanitize(CU(t, e), e.dompurifyConfig).toString() : t = Yg.sanitize(CU(t, e), { +}, "sanitizeMore"), ni = /* @__PURE__ */ x((t, e) => t && (e.dompurifyConfig ? t = Yg.sanitize(kU(t, e), e.dompurifyConfig).toString() : t = Yg.sanitize(kU(t, e), { FORBID_TAGS: ["style"] -}).toString(), t), "sanitizeText"), xvt = /* @__PURE__ */ x((t, e) => typeof t == "string" ? ni(t, e) : t.flat().map((r) => ni(r, e)), "sanitizeTextOrArray"), wvt = /* @__PURE__ */ x((t) => X1.test(t), "hasBreaks"), Ovt = /* @__PURE__ */ x((t) => t.split(X1), "splitBreaks"), kvt = /* @__PURE__ */ x((t) => t.replace(/#br#/g, "
"), "placeholderToBreak"), Iie = /* @__PURE__ */ x((t) => t.replace(X1, "#br#"), "breakToPlaceholder"), Svt = /* @__PURE__ */ x((t) => { +}).toString(), t), "sanitizeText"), yvt = /* @__PURE__ */ x((t, e) => typeof t == "string" ? ni(t, e) : t.flat().map((r) => ni(r, e)), "sanitizeTextOrArray"), bvt = /* @__PURE__ */ x((t) => X1.test(t), "hasBreaks"), xvt = /* @__PURE__ */ x((t) => t.split(X1), "splitBreaks"), wvt = /* @__PURE__ */ x((t) => t.replace(/#br#/g, "
"), "placeholderToBreak"), Die = /* @__PURE__ */ x((t) => t.replace(X1, "#br#"), "breakToPlaceholder"), Ovt = /* @__PURE__ */ x((t) => { let e = ""; return t && (e = window.location.protocol + "//" + window.location.host + window.location.pathname + window.location.search, e = e.replaceAll(/\(/g, "\\("), e = e.replaceAll(/\)/g, "\\)")), e; -}, "getUrl"), bn = /* @__PURE__ */ x((t) => !(t === !1 || ["false", "null", "0"].includes(String(t).trim().toLowerCase())), "evaluate"), Tvt = /* @__PURE__ */ x(function(...t) { +}, "getUrl"), bn = /* @__PURE__ */ x((t) => !(t === !1 || ["false", "null", "0"].includes(String(t).trim().toLowerCase())), "evaluate"), kvt = /* @__PURE__ */ x(function(...t) { const e = t.filter((r) => !isNaN(r)); return Math.max(...e); -}, "getMax"), Cvt = /* @__PURE__ */ x(function(...t) { +}, "getMax"), Svt = /* @__PURE__ */ x(function(...t) { const e = t.filter((r) => !isNaN(r)); return Math.min(...e); }, "getMin"), sy = /* @__PURE__ */ x(function(t) { @@ -35800,16 +35800,16 @@ var Nie = /* @__PURE__ */ x((t) => (bvt(), Yg.sanitize(t)), "removeScript"), CU let i = e[n]; if (i === "," && n > 0 && n + 1 < e.length) { const s = e[n - 1], a = e[n + 1]; - Evt(s, a) && (i = s + "," + a, n++, r.pop()); + Tvt(s, a) && (i = s + "," + a, n++, r.pop()); } - r.push(_vt(i)); + r.push(Cvt(i)); } return r.join(""); -}, "parseGenericTypes"), k8 = /* @__PURE__ */ x((t, e) => Math.max(0, t.split(e).length - 1), "countOccurrence"), Evt = /* @__PURE__ */ x((t, e) => { - const r = k8(t, "~"), n = k8(e, "~"); +}, "parseGenericTypes"), w8 = /* @__PURE__ */ x((t, e) => Math.max(0, t.split(e).length - 1), "countOccurrence"), Tvt = /* @__PURE__ */ x((t, e) => { + const r = w8(t, "~"), n = w8(e, "~"); return r === 1 && n === 1; -}, "shouldCombineSets"), _vt = /* @__PURE__ */ x((t) => { - const e = k8(t, "~"); +}, "shouldCombineSets"), Cvt = /* @__PURE__ */ x((t) => { + const e = w8(t, "~"); let r = !1; if (e <= 1) return t; @@ -35819,9 +35819,9 @@ var Nie = /* @__PURE__ */ x((t) => (bvt(), Yg.sanitize(t)), "removeScript"), CU for (; i !== -1 && s !== -1 && i !== s; ) n[i] = "<", n[s] = ">", i = n.indexOf("~"), s = n.lastIndexOf("~"); return r && n.unshift("~"), n.join(""); -}, "processSet"), EU = /* @__PURE__ */ x(() => window.MathMLElement !== void 0, "isMathMLSupported"), S8 = /\$\$(.*)\$\$/g, ca = /* @__PURE__ */ x((t) => { +}, "processSet"), SU = /* @__PURE__ */ x(() => window.MathMLElement !== void 0, "isMathMLSupported"), O8 = /\$\$(.*)\$\$/g, ca = /* @__PURE__ */ x((t) => { var e, r; - return ((r = (e = t.match(S8)) == null ? void 0 : e.length) != null ? r : 0) > 0; + return ((r = (e = t.match(O8)) == null ? void 0 : e.length) != null ? r : 0) > 0; }, "hasKatex"), ox = /* @__PURE__ */ x(async (t, e) => { t = await lx(t, e); const r = document.createElement("div"); @@ -35833,13 +35833,13 @@ var Nie = /* @__PURE__ */ x((t) => (bvt(), Yg.sanitize(t)), "removeScript"), CU }, "calculateMathMLDimensions"), lx = /* @__PURE__ */ x(async (t, e) => { if (!ca(t)) return t; - if (!(EU() || e.legacyMathML || e.forceLegacyMathML)) - return t.replace(S8, "MathML is unsupported in this environment."); - const { default: r } = await Promise.resolve().then(() => DLt), n = e.forceLegacyMathML || !EU() && e.legacyMathML ? "htmlAndMathml" : "mathml"; + if (!(SU() || e.legacyMathML || e.forceLegacyMathML)) + return t.replace(O8, "MathML is unsupported in this environment."); + const { default: r } = await Promise.resolve().then(() => RLt), n = e.forceLegacyMathML || !SU() && e.legacyMathML ? "htmlAndMathml" : "mathml"; return t.split(X1).map( (i) => ca(i) ? `
${i}
` : `
${i}
` ).join("").replace( - S8, + O8, (i, s) => r.renderToString(s, { throwOnError: !0, displayMode: !0, @@ -35847,26 +35847,26 @@ var Nie = /* @__PURE__ */ x((t) => (bvt(), Yg.sanitize(t)), "removeScript"), CU }).replace(/\n/g, " ").replace(//g, "") ); }, "renderKatex"), at = { - getRows: yvt, + getRows: mvt, sanitizeText: ni, - sanitizeTextOrArray: xvt, - hasBreaks: wvt, - splitBreaks: Ovt, + sanitizeTextOrArray: yvt, + hasBreaks: bvt, + splitBreaks: xvt, lineBreakRegex: X1, - removeScript: Nie, - getUrl: Svt, + removeScript: Mie, + getUrl: Ovt, evaluate: bn, - getMax: Tvt, - getMin: Cvt -}, Avt = /* @__PURE__ */ x(function(t, e) { + getMax: kvt, + getMin: Svt +}, Evt = /* @__PURE__ */ x(function(t, e) { for (let r of e) t.attr(r[0], r[1]); -}, "d3Attrs"), Lvt = /* @__PURE__ */ x(function(t, e, r) { +}, "d3Attrs"), _vt = /* @__PURE__ */ x(function(t, e, r) { let n = /* @__PURE__ */ new Map(); return r ? (n.set("width", "100%"), n.set("style", `max-width: ${e}px;`)) : (n.set("height", t), n.set("width", e)), n; }, "calculateSvgSizeAttrs"), ms = /* @__PURE__ */ x(function(t, e, r, n) { - const i = Lvt(e, r, n); - Avt(t, i); + const i = _vt(e, r, n); + Evt(t, i); }, "configureSvgSize"), Z1 = /* @__PURE__ */ x(function(t, e, r, n) { const i = e.node().getBBox(), s = i.width, a = i.height; X.info(`SVG bounds: ${s}x${a}`, i); @@ -35874,9 +35874,9 @@ var Nie = /* @__PURE__ */ x((t) => (bvt(), Yg.sanitize(t)), "removeScript"), CU X.info(`Graph bounds: ${o}x${l}`, t), o = s + r * 2, l = a + r * 2, X.info(`Calculated bounds: ${o}x${l}`), ms(e, l, o, n); const u = `${i.x - r} ${i.y - r} ${i.width + 2 * r} ${i.height + 2 * r}`; e.attr("viewBox", u); -}, "setupGraphViewbox"), A4 = {}, Rvt = /* @__PURE__ */ x((t, e, r) => { +}, "setupGraphViewbox"), _4 = {}, Avt = /* @__PURE__ */ x((t, e, r) => { let n = ""; - return t in A4 && A4[t] ? n = A4[t](r) : X.warn(`No theme found for ${t}`), ` & { + return t in _4 && _4[t] ? n = _4[t](r) : X.warn(`No theme found for ${t}`), ` & { font-family: ${r.fontFamily}; font-size: ${r.fontSize}; fill: ${r.textColor} @@ -35932,10 +35932,10 @@ var Nie = /* @__PURE__ */ x((t) => (bvt(), Yg.sanitize(t)), "removeScript"), CU ${e} `; -}, "getStyles"), Mvt = /* @__PURE__ */ x((t, e) => { - e !== void 0 && (A4[t] = e); -}, "addStylesForDiagram"), Dvt = Rvt, ED = {}; -wie(ED, { +}, "getStyles"), Lvt = /* @__PURE__ */ x((t, e) => { + e !== void 0 && (_4[t] = e); +}, "addStylesForDiagram"), Rvt = Avt, SD = {}; +bie(SD, { clear: () => Xi, getAccDescription: () => bs, getAccTitle: () => vs, @@ -35944,64 +35944,64 @@ wie(ED, { setAccTitle: () => Zi, setDiagramTitle: () => fa }); -var _D = "", AD = "", LD = "", RD = /* @__PURE__ */ x((t) => ni(t, pi()), "sanitizeText"), Xi = /* @__PURE__ */ x(() => { - _D = "", LD = "", AD = ""; +var TD = "", CD = "", ED = "", _D = /* @__PURE__ */ x((t) => ni(t, pi()), "sanitizeText"), Xi = /* @__PURE__ */ x(() => { + TD = "", ED = "", CD = ""; }, "clear"), Zi = /* @__PURE__ */ x((t) => { - _D = RD(t).replace(/^\s+/g, ""); -}, "setAccTitle"), vs = /* @__PURE__ */ x(() => _D, "getAccTitle"), ys = /* @__PURE__ */ x((t) => { - LD = RD(t).replace(/\n\s+/g, ` + TD = _D(t).replace(/^\s+/g, ""); +}, "setAccTitle"), vs = /* @__PURE__ */ x(() => TD, "getAccTitle"), ys = /* @__PURE__ */ x((t) => { + ED = _D(t).replace(/\n\s+/g, ` `); -}, "setAccDescription"), bs = /* @__PURE__ */ x(() => LD, "getAccDescription"), fa = /* @__PURE__ */ x((t) => { - AD = RD(t); -}, "setDiagramTitle"), xs = /* @__PURE__ */ x(() => AD, "getDiagramTitle"), _U = X, Nvt = SD, be = pi, AU = Lie, Pie = Wg, Ivt = /* @__PURE__ */ x((t) => ni(t, be()), "sanitizeText"), $ie = Z1, Pvt = /* @__PURE__ */ x(() => ED, "getCommonDb"), m3 = {}, v3 = /* @__PURE__ */ x((t, e, r) => { +}, "setAccDescription"), bs = /* @__PURE__ */ x(() => ED, "getAccDescription"), fa = /* @__PURE__ */ x((t) => { + CD = _D(t); +}, "setDiagramTitle"), xs = /* @__PURE__ */ x(() => CD, "getDiagramTitle"), TU = X, Mvt = wD, be = pi, CU = _ie, Nie = Wg, Dvt = /* @__PURE__ */ x((t) => ni(t, be()), "sanitizeText"), Iie = Z1, Nvt = /* @__PURE__ */ x(() => SD, "getCommonDb"), g3 = {}, m3 = /* @__PURE__ */ x((t, e, r) => { var n; - m3[t] && _U.warn(`Diagram with id ${t} already registered. Overwriting.`), m3[t] = e, r && Tie(t, r), Mvt(t, e.styles), (n = e.injectUtils) == null || n.call( + g3[t] && TU.warn(`Diagram with id ${t} already registered. Overwriting.`), g3[t] = e, r && kie(t, r), Lvt(t, e.styles), (n = e.injectUtils) == null || n.call( e, - _U, - Nvt, + TU, + Mvt, be, - Ivt, - $ie, - Pvt(), + Dvt, + Iie, + Nvt(), () => { } ); -}, "registerDiagram"), T8 = /* @__PURE__ */ x((t) => { - if (t in m3) - return m3[t]; - throw new $vt(t); -}, "getDiagram"), ub, $vt = (ub = class extends Error { +}, "registerDiagram"), k8 = /* @__PURE__ */ x((t) => { + if (t in g3) + return g3[t]; + throw new Ivt(t); +}, "getDiagram"), ub, Ivt = (ub = class extends Error { constructor(e) { super(`Diagram ${e} not found.`); } }, (() => { x(ub, "DiagramNotFoundError"); })(), ub); -const Bvt = Object.freeze( +const Pvt = Object.freeze( { left: 0, top: 0, width: 16, height: 16 } -), y3 = Object.freeze({ +), v3 = Object.freeze({ rotate: 0, vFlip: !1, hFlip: !1 -}), Bie = Object.freeze({ - ...Bvt, - ...y3 -}), Fvt = Object.freeze({ - ...Bie, +}), Pie = Object.freeze({ + ...Pvt, + ...v3 +}), $vt = Object.freeze({ + ...Pie, body: "", hidden: !1 -}), zvt = Object.freeze({ +}), Bvt = Object.freeze({ width: null, height: null -}), Vvt = Object.freeze({ - ...zvt, - ...y3 -}), F6 = /^[a-z0-9]+(-[a-z0-9]+)*$/, Uvt = (t, e, r, n = "") => { +}), Fvt = Object.freeze({ + ...Bvt, + ...v3 +}), $6 = /^[a-z0-9]+(-[a-z0-9]+)*$/, zvt = (t, e, r, n = "") => { const i = t.split(":"); if (t.slice(0, 1) === "@") { if (i.length < 2 || i.length > 3) @@ -36016,7 +36016,7 @@ const Bvt = Object.freeze( prefix: l, name: o }; - return e && !z6(u) ? null : u; + return e && !B6(u) ? null : u; } const s = i[0], a = s.split("-"); if (a.length > 1) { @@ -36025,7 +36025,7 @@ const Bvt = Object.freeze( prefix: a.shift(), name: a.join("-") }; - return e && !z6(o) ? null : o; + return e && !B6(o) ? null : o; } if (r && n === "") { const o = { @@ -36033,23 +36033,23 @@ const Bvt = Object.freeze( prefix: "", name: s }; - return e && !z6(o, r) ? null : o; + return e && !B6(o, r) ? null : o; } return null; -}, z6 = (t, e) => t ? !!((t.provider === "" || t.provider.match(F6)) && (e && t.prefix === "" || t.prefix.match(F6)) && t.name.match(F6)) : !1; -function qvt(t, e) { +}, B6 = (t, e) => t ? !!((t.provider === "" || t.provider.match($6)) && (e && t.prefix === "" || t.prefix.match($6)) && t.name.match($6)) : !1; +function Vvt(t, e) { const r = {}; !t.hFlip != !e.hFlip && (r.hFlip = !0), !t.vFlip != !e.vFlip && (r.vFlip = !0); const n = ((t.rotate || 0) + (e.rotate || 0)) % 4; return n && (r.rotate = n), r; } -function LU(t, e) { - const r = qvt(t, e); - for (const n in Fvt) - n in y3 ? n in t && !(n in r) && (r[n] = y3[n]) : n in e ? r[n] = e[n] : n in t && (r[n] = t[n]); +function EU(t, e) { + const r = Vvt(t, e); + for (const n in $vt) + n in v3 ? n in t && !(n in r) && (r[n] = v3[n]) : n in e ? r[n] = e[n] : n in t && (r[n] = t[n]); return r; } -function Yvt(t, e) { +function Uvt(t, e) { const r = t.icons, n = t.aliases || /* @__PURE__ */ Object.create(null), i = /* @__PURE__ */ Object.create(null); function s(a) { if (r[a]) @@ -36063,36 +36063,36 @@ function Yvt(t, e) { } return (e || Object.keys(r).concat(Object.keys(n))).forEach(s), i; } -function RU(t, e, r) { +function _U(t, e, r) { const n = t.icons, i = t.aliases || /* @__PURE__ */ Object.create(null); let s = {}; function a(o) { - s = LU( + s = EU( n[o] || i[o], s ); } - return a(e), r.forEach(a), LU(t, s); + return a(e), r.forEach(a), EU(t, s); } -function Qvt(t, e) { +function qvt(t, e) { if (t.icons[e]) - return RU(t, e, []); - const r = Yvt(t, [e])[e]; - return r ? RU(t, e, r) : null; + return _U(t, e, []); + const r = Uvt(t, [e])[e]; + return r ? _U(t, e, r) : null; } -const Wvt = /(-?[0-9.]*[0-9]+[0-9.]*)/g, Gvt = /^-?[0-9.]*[0-9]+[0-9.]*$/g; -function MU(t, e, r) { +const Yvt = /(-?[0-9.]*[0-9]+[0-9.]*)/g, Qvt = /^-?[0-9.]*[0-9]+[0-9.]*$/g; +function AU(t, e, r) { if (e === 1) return t; if (r = r || 100, typeof t == "number") return Math.ceil(t * e * r) / r; if (typeof t != "string") return t; - const n = t.split(Wvt); + const n = t.split(Yvt); if (n === null || !n.length) return t; const i = []; - let s = n.shift(), a = Gvt.test(s); + let s = n.shift(), a = Qvt.test(s); for (; ; ) { if (a) { const o = parseFloat(s); @@ -36104,7 +36104,7 @@ function MU(t, e, r) { a = !a; } } -function Hvt(t, e = "defs") { +function Wvt(t, e = "defs") { let r = ""; const n = t.indexOf("<" + e); for (; n >= 0; ) { @@ -36121,20 +36121,20 @@ function Hvt(t, e = "defs") { content: t }; } -function Xvt(t, e) { +function Gvt(t, e) { return t ? "" + t + "" + e : e; } -function Zvt(t, e, r) { - const n = Hvt(t); - return Xvt(n.defs, e + n.content + r); +function Hvt(t, e, r) { + const n = Wvt(t); + return Gvt(n.defs, e + n.content + r); } -const jvt = (t) => t === "unset" || t === "undefined" || t === "none"; -function Kvt(t, e) { +const Xvt = (t) => t === "unset" || t === "undefined" || t === "none"; +function Zvt(t, e) { const r = { - ...Bie, + ...Pie, ...t }, n = { - ...Vvt, + ...Fvt, ...e }, i = { left: r.left, @@ -36169,7 +36169,7 @@ function Kvt(t, e) { ); break; } - w % 2 === 1 && (i.left !== i.top && (O = i.left, i.left = i.top, i.top = O), i.width !== i.height && (O = i.width, i.width = i.height, i.height = O)), v.length && (s = Zvt( + w % 2 === 1 && (i.left !== i.top && (O = i.left, i.left = i.top, i.top = O), i.width !== i.height && (O = i.width, i.width = i.height, i.height = O)), v.length && (s = Hvt( s, '', "" @@ -36177,9 +36177,9 @@ function Kvt(t, e) { }); const a = n.width, o = n.height, l = i.width, u = i.height; let h, f; - a === null ? (f = o === null ? "1em" : o === "auto" ? u : o, h = MU(f, l / u)) : (h = a === "auto" ? l : a, f = o === null ? MU(h, u / l) : o === "auto" ? u : o); + a === null ? (f = o === null ? "1em" : o === "auto" ? u : o, h = AU(f, l / u)) : (h = a === "auto" ? l : a, f = o === null ? AU(h, u / l) : o === "auto" ? u : o); const d = {}, p = (m, v) => { - jvt(v) || (d[m] = v.toString()); + Xvt(v) || (d[m] = v.toString()); }; p("width", h), p("height", f); const g = [i.left, i.top, l, u]; @@ -36189,78 +36189,78 @@ function Kvt(t, e) { body: s }; } -const Jvt = /\sid="(\S+)"/g, eyt = "IconifyId" + Date.now().toString(16) + (Math.random() * 16777216 | 0).toString(16); -let tyt = 0; -function ryt(t, e = eyt) { +const jvt = /\sid="(\S+)"/g, Kvt = "IconifyId" + Date.now().toString(16) + (Math.random() * 16777216 | 0).toString(16); +let Jvt = 0; +function eyt(t, e = Kvt) { const r = []; let n; - for (; n = Jvt.exec(t); ) + for (; n = jvt.exec(t); ) r.push(n[1]); if (!r.length) return t; const i = "suffix" + (Math.random() * 16777216 | Date.now()).toString(16); return r.forEach((s) => { - const a = typeof e == "function" ? e(s) : e + (tyt++).toString(), o = s.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"); + const a = typeof e == "function" ? e(s) : e + (Jvt++).toString(), o = s.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"); t = t.replace( new RegExp('([#;"])(' + o + ')([")]|\\.[a-z])', "g"), "$1" + a + i + "$3" ); }), t = t.replace(new RegExp(i, "g"), ""), t; } -function nyt(t, e) { +function tyt(t, e) { let r = t.indexOf("xlink:") === -1 ? "" : ' xmlns:xlink="http://www.w3.org/1999/xlink"'; for (const n in e) r += " " + n + '="' + e[n] + '"'; return '" + t + ""; } -var Fie = { +var $ie = { body: '?', height: 80, width: 80 -}, C8 = /* @__PURE__ */ new Map(), zie = /* @__PURE__ */ new Map(), Vie = /* @__PURE__ */ x((t) => { +}, S8 = /* @__PURE__ */ new Map(), Bie = /* @__PURE__ */ new Map(), Fie = /* @__PURE__ */ x((t) => { for (const e of t) { if (!e.name) throw new Error( 'Invalid icon loader. Must have a "name" property with non-empty string value.' ); if (X.debug("Registering icon pack:", e.name), "loader" in e) - zie.set(e.name, e.loader); + Bie.set(e.name, e.loader); else if ("icons" in e) - C8.set(e.name, e.icons); + S8.set(e.name, e.icons); else throw X.error("Invalid icon loader:", e), new Error('Invalid icon loader. Must have either "icons" or "loader" property.'); } -}, "registerIconPacks"), iyt = /* @__PURE__ */ x(async (t, e) => { - const r = Uvt(t, !0, e !== void 0); +}, "registerIconPacks"), ryt = /* @__PURE__ */ x(async (t, e) => { + const r = zvt(t, !0, e !== void 0); if (!r) throw new Error(`Invalid icon name: ${t}`); const n = r.prefix || e; if (!n) throw new Error(`Icon name must contain a prefix: ${t}`); - let i = C8.get(n); + let i = S8.get(n); if (!i) { - const a = zie.get(n); + const a = Bie.get(n); if (!a) throw new Error(`Icon set not found: ${r.prefix}`); try { - i = { ...await a(), prefix: n }, C8.set(n, i); + i = { ...await a(), prefix: n }, S8.set(n, i); } catch (o) { throw X.error(o), new Error(`Failed to load icon set: ${r.prefix}`); } } - const s = Qvt(i, r.name); + const s = qvt(i, r.name); if (!s) throw new Error(`Icon not found: ${t}`); return s; -}, "getRegisteredIconData"), E8 = /* @__PURE__ */ x(async (t, e) => { +}, "getRegisteredIconData"), T8 = /* @__PURE__ */ x(async (t, e) => { let r; try { - r = await iyt(t, e == null ? void 0 : e.fallbackPrefix); + r = await ryt(t, e == null ? void 0 : e.fallbackPrefix); } catch (s) { - X.error(s), r = Fie; + X.error(s), r = $ie; } - const n = Kvt(r, e); - return nyt(ryt(n.body), n.attributes); + const n = Zvt(r, e); + return tyt(eyt(n.body), n.attributes); }, "getIconSVG"), V0 = /* @__PURE__ */ x(({ flowchart: t }) => { @@ -36282,12 +36282,12 @@ var Fie = { function xv(t, e) { if (t === void 0 || e === void 0) return { angle: 0, deltaX: 0, deltaY: 0 }; - t = b3(t), e = b3(e); + t = y3(t), e = y3(e); const [r, n] = [t.x, t.y], [i, s] = [e.x, e.y], a = i - r, o = s - n; return { angle: Math.atan(o / a), deltaX: a, deltaY: o }; } x(xv, "calculateDeltaAndAngle"); -var b3 = /* @__PURE__ */ x((t) => Array.isArray(t) ? { x: t[0], y: t[1] } : t, "pointTransformer"), Uie = /* @__PURE__ */ x((t) => ({ +var y3 = /* @__PURE__ */ x((t) => Array.isArray(t) ? { x: t[0], y: t[1] } : t, "pointTransformer"), zie = /* @__PURE__ */ x((t) => ({ x: /* @__PURE__ */ x(function(e, r, n) { let i = 0; if (r === 0 && Object.hasOwn(mh, t.arrowTypeStart)) { @@ -36300,7 +36300,7 @@ var b3 = /* @__PURE__ */ x((t) => Array.isArray(t) ? { x: t[0], y: t[1] } : t, " ); i = mh[t.arrowTypeEnd] * Math.cos(s) * (a >= 0 ? 1 : -1); } - return b3(e).x + i; + return y3(e).x + i; }, "x"), y: /* @__PURE__ */ x(function(e, r, n) { let i = 0; @@ -36314,9 +36314,9 @@ var b3 = /* @__PURE__ */ x((t) => Array.isArray(t) ? { x: t[0], y: t[1] } : t, " ); i = mh[t.arrowTypeEnd] * Math.abs(Math.sin(s)) * (a >= 0 ? 1 : -1); } - return b3(e).y + i; + return y3(e).y + i; }, "y") -}), "getLineFunctionsWithOffset"), MD = {}, qi = {}; +}), "getLineFunctionsWithOffset"), AD = {}, qi = {}; Object.defineProperty(qi, "__esModule", { value: !0 }); qi.BLANK_URL = qi.relativeFirstCharacters = qi.whitespaceEscapeCharsRegex = qi.urlSchemeRegex = qi.ctrlCharactersRegex = qi.htmlCtrlEntityRegex = qi.htmlEntitiesRegex = qi.invalidProtocolRegex = void 0; qi.invalidProtocolRegex = /^([^\w]*)(javascript|data|vbscript)/im; @@ -36327,38 +36327,38 @@ qi.urlSchemeRegex = /^.+(:|:)/gim; qi.whitespaceEscapeCharsRegex = /(\\|%5[cC])((%(6[eE]|72|74))|[nrt])/g; qi.relativeFirstCharacters = [".", "/"]; qi.BLANK_URL = "about:blank"; -Object.defineProperty(MD, "__esModule", { value: !0 }); -var Uf = MD.sanitizeUrl = void 0, Ts = qi; -function syt(t) { +Object.defineProperty(AD, "__esModule", { value: !0 }); +var Uf = AD.sanitizeUrl = void 0, Ts = qi; +function nyt(t) { return Ts.relativeFirstCharacters.indexOf(t[0]) > -1; } -function ayt(t) { +function iyt(t) { var e = t.replace(Ts.ctrlCharactersRegex, ""); return e.replace(Ts.htmlEntitiesRegex, function(r, n) { return String.fromCharCode(n); }); } -function oyt(t) { +function syt(t) { return URL.canParse(t); } -function DU(t) { +function LU(t) { try { return decodeURIComponent(t); } catch { return t; } } -function lyt(t) { +function ayt(t) { if (!t) return Ts.BLANK_URL; - var e, r = DU(t.trim()); + var e, r = LU(t.trim()); do - r = ayt(r).replace(Ts.htmlCtrlEntityRegex, "").replace(Ts.ctrlCharactersRegex, "").replace(Ts.whitespaceEscapeCharsRegex, "").trim(), r = DU(r), e = r.match(Ts.ctrlCharactersRegex) || r.match(Ts.htmlEntitiesRegex) || r.match(Ts.htmlCtrlEntityRegex) || r.match(Ts.whitespaceEscapeCharsRegex); + r = iyt(r).replace(Ts.htmlCtrlEntityRegex, "").replace(Ts.ctrlCharactersRegex, "").replace(Ts.whitespaceEscapeCharsRegex, "").trim(), r = LU(r), e = r.match(Ts.ctrlCharactersRegex) || r.match(Ts.htmlEntitiesRegex) || r.match(Ts.htmlCtrlEntityRegex) || r.match(Ts.whitespaceEscapeCharsRegex); while (e && e.length > 0); var n = r; if (!n) return Ts.BLANK_URL; - if (syt(n)) + if (nyt(n)) return n; var i = n.trimStart(), s = i.match(Ts.urlSchemeRegex); if (!s) @@ -36370,23 +36370,23 @@ function lyt(t) { if (a === "mailto:" || a.includes("://")) return o; if (a === "http:" || a === "https:") { - if (!oyt(o)) + if (!syt(o)) return Ts.BLANK_URL; var l = new URL(o); return l.protocol = l.protocol.toLowerCase(), l.hostname = l.hostname.toLowerCase(), l.toString(); } return o; } -Uf = MD.sanitizeUrl = lyt; -function L4(t, e) { +Uf = AD.sanitizeUrl = ayt; +function A4(t, e) { return t == null || e == null ? NaN : t < e ? -1 : t > e ? 1 : t >= e ? 0 : NaN; } -function cyt(t, e) { +function oyt(t, e) { return t == null || e == null ? NaN : e < t ? -1 : e > t ? 1 : e >= t ? 0 : NaN; } -function DD(t) { +function LD(t) { let e, r, n; - t.length !== 2 ? (e = L4, r = (o, l) => L4(t(o), l), n = (o, l) => t(o) - l) : (e = t === L4 || t === cyt ? t : uyt, r = t, n = t); + t.length !== 2 ? (e = A4, r = (o, l) => A4(t(o), l), n = (o, l) => t(o) - l) : (e = t === A4 || t === oyt ? t : lyt, r = t, n = t); function i(o, l, u = 0, h = o.length) { if (u < h) { if (e(l, l) !== 0) @@ -36415,61 +36415,61 @@ function DD(t) { } return { left: i, center: a, right: s }; } -function uyt() { +function lyt() { return 0; } -function hyt(t) { +function cyt(t) { return t === null ? NaN : +t; } -const fyt = DD(L4), dyt = fyt.right; -DD(hyt).center; -const pyt = dyt; -class NU extends Map { - constructor(e, r = vyt) { +const uyt = LD(A4), hyt = uyt.right; +LD(cyt).center; +const fyt = hyt; +class RU extends Map { + constructor(e, r = gyt) { if (super(), Object.defineProperties(this, { _intern: { value: /* @__PURE__ */ new Map() }, _key: { value: r } }), e != null) for (const [n, i] of e) this.set(n, i); } get(e) { - return super.get(IU(this, e)); + return super.get(MU(this, e)); } has(e) { - return super.has(IU(this, e)); + return super.has(MU(this, e)); } set(e, r) { - return super.set(gyt(this, e), r); + return super.set(dyt(this, e), r); } delete(e) { - return super.delete(myt(this, e)); + return super.delete(pyt(this, e)); } } -function IU({ _intern: t, _key: e }, r) { +function MU({ _intern: t, _key: e }, r) { const n = e(r); return t.has(n) ? t.get(n) : r; } -function gyt({ _intern: t, _key: e }, r) { +function dyt({ _intern: t, _key: e }, r) { const n = e(r); return t.has(n) ? t.get(n) : (t.set(n, r), r); } -function myt({ _intern: t, _key: e }, r) { +function pyt({ _intern: t, _key: e }, r) { const n = e(r); return t.has(n) && (r = t.get(n), t.delete(n)), r; } -function vyt(t) { +function gyt(t) { return t !== null && typeof t == "object" ? t.valueOf() : t; } -const yyt = Math.sqrt(50), byt = Math.sqrt(10), xyt = Math.sqrt(2); -function x3(t, e, r) { - const n = (e - t) / Math.max(0, r), i = Math.floor(Math.log10(n)), s = n / Math.pow(10, i), a = s >= yyt ? 10 : s >= byt ? 5 : s >= xyt ? 2 : 1; +const myt = Math.sqrt(50), vyt = Math.sqrt(10), yyt = Math.sqrt(2); +function b3(t, e, r) { + const n = (e - t) / Math.max(0, r), i = Math.floor(Math.log10(n)), s = n / Math.pow(10, i), a = s >= myt ? 10 : s >= vyt ? 5 : s >= yyt ? 2 : 1; let o, l, u; - return i < 0 ? (u = Math.pow(10, -i) / a, o = Math.round(t * u), l = Math.round(e * u), o / u < t && ++o, l / u > e && --l, u = -u) : (u = Math.pow(10, i) * a, o = Math.round(t / u), l = Math.round(e / u), o * u < t && ++o, l * u > e && --l), l < o && 0.5 <= r && r < 2 ? x3(t, e, r * 2) : [o, l, u]; + return i < 0 ? (u = Math.pow(10, -i) / a, o = Math.round(t * u), l = Math.round(e * u), o / u < t && ++o, l / u > e && --l, u = -u) : (u = Math.pow(10, i) * a, o = Math.round(t / u), l = Math.round(e / u), o * u < t && ++o, l * u > e && --l), l < o && 0.5 <= r && r < 2 ? b3(t, e, r * 2) : [o, l, u]; } -function wyt(t, e, r) { +function byt(t, e, r) { if (e = +e, t = +t, r = +r, !(r > 0)) return []; if (t === e) return [t]; - const n = e < t, [i, s, a] = n ? x3(e, t, r) : x3(t, e, r); + const n = e < t, [i, s, a] = n ? b3(e, t, r) : b3(t, e, r); if (!(s >= i)) return []; const o = s - i + 1, l = new Array(o); @@ -36488,15 +36488,15 @@ function wyt(t, e, r) { l[u] = (i + u) * a; return l; } -function _8(t, e, r) { - return e = +e, t = +t, r = +r, x3(t, e, r)[2]; +function C8(t, e, r) { + return e = +e, t = +t, r = +r, b3(t, e, r)[2]; } -function A8(t, e, r) { +function E8(t, e, r) { e = +e, t = +t, r = +r; - const n = e < t, i = n ? _8(e, t, r) : _8(t, e, r); + const n = e < t, i = n ? C8(e, t, r) : C8(t, e, r); return (n ? -1 : 1) * (i < 0 ? 1 / -i : i); } -function Oyt(t, e) { +function xyt(t, e) { let r; if (e === void 0) for (const n of t) @@ -36508,7 +36508,7 @@ function Oyt(t, e) { } return r; } -function kyt(t, e) { +function wyt(t, e) { let r; if (e === void 0) for (const n of t) @@ -36520,43 +36520,43 @@ function kyt(t, e) { } return r; } -function Syt(t, e, r) { +function Oyt(t, e, r) { t = +t, e = +e, r = (i = arguments.length) < 2 ? (e = t, t = 0, 1) : i < 3 ? 1 : +r; for (var n = -1, i = Math.max(0, Math.ceil((e - t) / r)) | 0, s = new Array(i); ++n < i; ) s[n] = t + n * r; return s; } -function Tyt(t) { +function kyt(t) { return t; } -var R4 = 1, V6 = 2, L8 = 3, Hw = 4, PU = 1e-6; -function Cyt(t) { +var L4 = 1, F6 = 2, _8 = 3, Hw = 4, DU = 1e-6; +function Syt(t) { return "translate(" + t + ",0)"; } -function Eyt(t) { +function Tyt(t) { return "translate(0," + t + ")"; } -function _yt(t) { +function Cyt(t) { return (e) => +t(e); } -function Ayt(t, e) { +function Eyt(t, e) { return e = Math.max(0, t.bandwidth() - e * 2) / 2, t.round() && (e = Math.round(e)), (r) => +t(r) + e; } -function Lyt() { +function _yt() { return !this.__axis; } -function qie(t, e) { - var r = [], n = null, i = null, s = 6, a = 6, o = 3, l = typeof window < "u" && window.devicePixelRatio > 1 ? 0 : 0.5, u = t === R4 || t === Hw ? -1 : 1, h = t === Hw || t === V6 ? "x" : "y", f = t === R4 || t === L8 ? Cyt : Eyt; +function Vie(t, e) { + var r = [], n = null, i = null, s = 6, a = 6, o = 3, l = typeof window < "u" && window.devicePixelRatio > 1 ? 0 : 0.5, u = t === L4 || t === Hw ? -1 : 1, h = t === Hw || t === F6 ? "x" : "y", f = t === L4 || t === _8 ? Syt : Tyt; function d(p) { - var g = n == null ? e.ticks ? e.ticks.apply(e, r) : e.domain() : n, m = i == null ? e.tickFormat ? e.tickFormat.apply(e, r) : Tyt : i, v = Math.max(s, 0) + o, y = e.range(), b = +y[0] + l, w = +y[y.length - 1] + l, O = (e.bandwidth ? Ayt : _yt)(e.copy(), l), S = p.selection ? p.selection() : p, C = S.selectAll(".domain").data([null]), T = S.selectAll(".tick").data(g, e).order(), L = T.exit(), E = T.enter().append("g").attr("class", "tick"), R = T.select("line"), _ = T.select("text"); - C = C.merge(C.enter().insert("path", ".tick").attr("class", "domain").attr("stroke", "currentColor")), T = T.merge(E), R = R.merge(E.append("line").attr("stroke", "currentColor").attr(h + "2", u * s)), _ = _.merge(E.append("text").attr("fill", "currentColor").attr(h, u * v).attr("dy", t === R4 ? "0em" : t === L8 ? "0.71em" : "0.32em")), p !== S && (C = C.transition(p), T = T.transition(p), R = R.transition(p), _ = _.transition(p), L = L.transition(p).attr("opacity", PU).attr("transform", function(A) { + var g = n == null ? e.ticks ? e.ticks.apply(e, r) : e.domain() : n, m = i == null ? e.tickFormat ? e.tickFormat.apply(e, r) : kyt : i, v = Math.max(s, 0) + o, y = e.range(), b = +y[0] + l, w = +y[y.length - 1] + l, O = (e.bandwidth ? Eyt : Cyt)(e.copy(), l), S = p.selection ? p.selection() : p, C = S.selectAll(".domain").data([null]), T = S.selectAll(".tick").data(g, e).order(), L = T.exit(), E = T.enter().append("g").attr("class", "tick"), R = T.select("line"), _ = T.select("text"); + C = C.merge(C.enter().insert("path", ".tick").attr("class", "domain").attr("stroke", "currentColor")), T = T.merge(E), R = R.merge(E.append("line").attr("stroke", "currentColor").attr(h + "2", u * s)), _ = _.merge(E.append("text").attr("fill", "currentColor").attr(h, u * v).attr("dy", t === L4 ? "0em" : t === _8 ? "0.71em" : "0.32em")), p !== S && (C = C.transition(p), T = T.transition(p), R = R.transition(p), _ = _.transition(p), L = L.transition(p).attr("opacity", DU).attr("transform", function(A) { return isFinite(A = O(A)) ? f(A + l) : this.getAttribute("transform"); - }), E.attr("opacity", PU).attr("transform", function(A) { + }), E.attr("opacity", DU).attr("transform", function(A) { var $ = this.parentNode.__axis; return f(($ && isFinite($ = $(A)) ? $ : O(A)) + l); - })), L.remove(), C.attr("d", t === Hw || t === V6 ? a ? "M" + u * a + "," + b + "H" + l + "V" + w + "H" + u * a : "M" + l + "," + b + "V" + w : a ? "M" + b + "," + u * a + "V" + l + "H" + w + "V" + u * a : "M" + b + "," + l + "H" + w), T.attr("opacity", 1).attr("transform", function(A) { + })), L.remove(), C.attr("d", t === Hw || t === F6 ? a ? "M" + u * a + "," + b + "H" + l + "V" + w + "H" + u * a : "M" + l + "," + b + "V" + w : a ? "M" + b + "," + u * a + "V" + l + "H" + w + "V" + u * a : "M" + b + "," + l + "H" + w), T.attr("opacity", 1).attr("transform", function(A) { return f(O(A) + l); - }), R.attr(h + "2", u * s), _.attr(h, u * v).text(m), S.filter(Lyt).attr("fill", "none").attr("font-size", 10).attr("font-family", "sans-serif").attr("text-anchor", t === V6 ? "start" : t === Hw ? "end" : "middle"), S.each(function() { + }), R.attr(h + "2", u * s), _.attr(h, u * v).text(m), S.filter(_yt).attr("fill", "none").attr("font-size", 10).attr("font-family", "sans-serif").attr("text-anchor", t === F6 ? "start" : t === Hw ? "end" : "middle"), S.each(function() { this.__axis = O; }); } @@ -36582,26 +36582,26 @@ function qie(t, e) { return arguments.length ? (l = +p, d) : l; }, d; } -function Ryt(t) { - return qie(R4, t); +function Ayt(t) { + return Vie(L4, t); } -function Myt(t) { - return qie(L8, t); +function Lyt(t) { + return Vie(_8, t); } -var Dyt = { value: () => { +var Ryt = { value: () => { } }; -function Yie() { +function Uie() { for (var t = 0, e = arguments.length, r = {}, n; t < e; ++t) { if (!(n = arguments[t] + "") || n in r || /[\s.]/.test(n)) throw new Error("illegal type: " + n); r[n] = []; } - return new M4(r); + return new R4(r); } -function M4(t) { +function R4(t) { this._ = t; } -function Nyt(t, e) { +function Myt(t, e) { return t.trim().split(/^|\s+/).map(function(r) { var n = "", i = r.indexOf("."); if (i >= 0 && (n = r.slice(i + 1), r = r.slice(0, i)), r && !e.hasOwnProperty(r)) @@ -36609,13 +36609,13 @@ function Nyt(t, e) { return { type: r, name: n }; }); } -M4.prototype = Yie.prototype = { - constructor: M4, +R4.prototype = Uie.prototype = { + constructor: R4, on: function(t, e) { - var r = this._, n = Nyt(t + "", r), i, s = -1, a = n.length; + var r = this._, n = Myt(t + "", r), i, s = -1, a = n.length; if (arguments.length < 2) { for (; ++s < a; ) - if ((i = (t = n[s]).type) && (i = Iyt(r[i], t.name))) + if ((i = (t = n[s]).type) && (i = Dyt(r[i], t.name))) return i; return; } @@ -36623,17 +36623,17 @@ M4.prototype = Yie.prototype = { throw new Error("invalid callback: " + e); for (; ++s < a; ) if (i = (t = n[s]).type) - r[i] = $U(r[i], t.name, e); + r[i] = NU(r[i], t.name, e); else if (e == null) for (i in r) - r[i] = $U(r[i], t.name, null); + r[i] = NU(r[i], t.name, null); return this; }, copy: function() { var t = {}, e = this._; for (var r in e) t[r] = e[r].slice(); - return new M4(t); + return new R4(t); }, call: function(t, e) { if ((i = arguments.length - 2) > 0) @@ -36651,135 +36651,135 @@ M4.prototype = Yie.prototype = { n[i].value.apply(e, r); } }; -function Iyt(t, e) { +function Dyt(t, e) { for (var r = 0, n = t.length, i; r < n; ++r) if ((i = t[r]).name === e) return i.value; } -function $U(t, e, r) { +function NU(t, e, r) { for (var n = 0, i = t.length; n < i; ++n) if (t[n].name === e) { - t[n] = Dyt, t = t.slice(0, n).concat(t.slice(n + 1)); + t[n] = Ryt, t = t.slice(0, n).concat(t.slice(n + 1)); break; } return r != null && t.push({ name: e, value: r }), t; } -var R8 = "http://www.w3.org/1999/xhtml"; -const BU = { +var A8 = "http://www.w3.org/1999/xhtml"; +const IU = { svg: "http://www.w3.org/2000/svg", - xhtml: R8, + xhtml: A8, xlink: "http://www.w3.org/1999/xlink", xml: "http://www.w3.org/XML/1998/namespace", xmlns: "http://www.w3.org/2000/xmlns/" }; -function ET(t) { +function TT(t) { var e = t += "", r = e.indexOf(":"); - return r >= 0 && (e = t.slice(0, r)) !== "xmlns" && (t = t.slice(r + 1)), BU.hasOwnProperty(e) ? { space: BU[e], local: t } : t; + return r >= 0 && (e = t.slice(0, r)) !== "xmlns" && (t = t.slice(r + 1)), IU.hasOwnProperty(e) ? { space: IU[e], local: t } : t; } -function Pyt(t) { +function Nyt(t) { return function() { var e = this.ownerDocument, r = this.namespaceURI; - return r === R8 && e.documentElement.namespaceURI === R8 ? e.createElement(t) : e.createElementNS(r, t); + return r === A8 && e.documentElement.namespaceURI === A8 ? e.createElement(t) : e.createElementNS(r, t); }; } -function $yt(t) { +function Iyt(t) { return function() { return this.ownerDocument.createElementNS(t.space, t.local); }; } -function Qie(t) { - var e = ET(t); - return (e.local ? $yt : Pyt)(e); +function qie(t) { + var e = TT(t); + return (e.local ? Iyt : Nyt)(e); } -function Byt() { +function Pyt() { } -function ND(t) { - return t == null ? Byt : function() { +function RD(t) { + return t == null ? Pyt : function() { return this.querySelector(t); }; } -function Fyt(t) { - typeof t != "function" && (t = ND(t)); +function $yt(t) { + typeof t != "function" && (t = RD(t)); for (var e = this._groups, r = e.length, n = new Array(r), i = 0; i < r; ++i) for (var s = e[i], a = s.length, o = n[i] = new Array(a), l, u, h = 0; h < a; ++h) (l = s[h]) && (u = t.call(l, l.__data__, h, s)) && ("__data__" in l && (u.__data__ = l.__data__), o[h] = u); return new ho(n, this._parents); } -function zyt(t) { +function Byt(t) { return t == null ? [] : Array.isArray(t) ? t : Array.from(t); } -function Vyt() { +function Fyt() { return []; } -function Wie(t) { - return t == null ? Vyt : function() { +function Yie(t) { + return t == null ? Fyt : function() { return this.querySelectorAll(t); }; } -function Uyt(t) { +function zyt(t) { return function() { - return zyt(t.apply(this, arguments)); + return Byt(t.apply(this, arguments)); }; } -function qyt(t) { - typeof t == "function" ? t = Uyt(t) : t = Wie(t); +function Vyt(t) { + typeof t == "function" ? t = zyt(t) : t = Yie(t); for (var e = this._groups, r = e.length, n = [], i = [], s = 0; s < r; ++s) for (var a = e[s], o = a.length, l, u = 0; u < o; ++u) (l = a[u]) && (n.push(t.call(l, l.__data__, u, a)), i.push(l)); return new ho(n, i); } -function Gie(t) { +function Qie(t) { return function() { return this.matches(t); }; } -function Hie(t) { +function Wie(t) { return function(e) { return e.matches(t); }; } -var Yyt = Array.prototype.find; -function Qyt(t) { +var Uyt = Array.prototype.find; +function qyt(t) { return function() { - return Yyt.call(this.children, t); + return Uyt.call(this.children, t); }; } -function Wyt() { +function Yyt() { return this.firstElementChild; } -function Gyt(t) { - return this.select(t == null ? Wyt : Qyt(typeof t == "function" ? t : Hie(t))); +function Qyt(t) { + return this.select(t == null ? Yyt : qyt(typeof t == "function" ? t : Wie(t))); } -var Hyt = Array.prototype.filter; -function Xyt() { +var Wyt = Array.prototype.filter; +function Gyt() { return Array.from(this.children); } -function Zyt(t) { +function Hyt(t) { return function() { - return Hyt.call(this.children, t); + return Wyt.call(this.children, t); }; } -function jyt(t) { - return this.selectAll(t == null ? Xyt : Zyt(typeof t == "function" ? t : Hie(t))); +function Xyt(t) { + return this.selectAll(t == null ? Gyt : Hyt(typeof t == "function" ? t : Wie(t))); } -function Kyt(t) { - typeof t != "function" && (t = Gie(t)); +function Zyt(t) { + typeof t != "function" && (t = Qie(t)); for (var e = this._groups, r = e.length, n = new Array(r), i = 0; i < r; ++i) for (var s = e[i], a = s.length, o = n[i] = [], l, u = 0; u < a; ++u) (l = s[u]) && t.call(l, l.__data__, u, s) && o.push(l); return new ho(n, this._parents); } -function Xie(t) { +function Gie(t) { return new Array(t.length); } -function Jyt() { - return new ho(this._enter || this._groups.map(Xie), this._parents); +function jyt() { + return new ho(this._enter || this._groups.map(Gie), this._parents); } -function w3(t, e) { +function x3(t, e) { this.ownerDocument = t.ownerDocument, this.namespaceURI = t.namespaceURI, this._next = null, this._parent = t, this.__data__ = e; } -w3.prototype = { - constructor: w3, +x3.prototype = { + constructor: x3, appendChild: function(t) { return this._parent.insertBefore(t, this._next); }, @@ -36793,36 +36793,36 @@ w3.prototype = { return this._parent.querySelectorAll(t); } }; -function e2t(t) { +function Kyt(t) { return function() { return t; }; } -function t2t(t, e, r, n, i, s) { +function Jyt(t, e, r, n, i, s) { for (var a = 0, o, l = e.length, u = s.length; a < u; ++a) - (o = e[a]) ? (o.__data__ = s[a], n[a] = o) : r[a] = new w3(t, s[a]); + (o = e[a]) ? (o.__data__ = s[a], n[a] = o) : r[a] = new x3(t, s[a]); for (; a < l; ++a) (o = e[a]) && (i[a] = o); } -function r2t(t, e, r, n, i, s, a) { +function e2t(t, e, r, n, i, s, a) { var o, l, u = /* @__PURE__ */ new Map(), h = e.length, f = s.length, d = new Array(h), p; for (o = 0; o < h; ++o) (l = e[o]) && (d[o] = p = a.call(l, l.__data__, o, e) + "", u.has(p) ? i[o] = l : u.set(p, l)); for (o = 0; o < f; ++o) - p = a.call(t, s[o], o, s) + "", (l = u.get(p)) ? (n[o] = l, l.__data__ = s[o], u.delete(p)) : r[o] = new w3(t, s[o]); + p = a.call(t, s[o], o, s) + "", (l = u.get(p)) ? (n[o] = l, l.__data__ = s[o], u.delete(p)) : r[o] = new x3(t, s[o]); for (o = 0; o < h; ++o) (l = e[o]) && u.get(d[o]) === l && (i[o] = l); } -function n2t(t) { +function t2t(t) { return t.__data__; } -function i2t(t, e) { +function r2t(t, e) { if (!arguments.length) - return Array.from(this, n2t); - var r = e ? r2t : t2t, n = this._parents, i = this._groups; - typeof t != "function" && (t = e2t(t)); + return Array.from(this, t2t); + var r = e ? e2t : Jyt, n = this._parents, i = this._groups; + typeof t != "function" && (t = Kyt(t)); for (var s = i.length, a = new Array(s), o = new Array(s), l = new Array(s), u = 0; u < s; ++u) { - var h = n[u], f = i[u], d = f.length, p = s2t(t.call(h, h && h.__data__, u, n)), g = p.length, m = o[u] = new Array(g), v = a[u] = new Array(g), y = l[u] = new Array(d); + var h = n[u], f = i[u], d = f.length, p = n2t(t.call(h, h && h.__data__, u, n)), g = p.length, m = o[u] = new Array(g), v = a[u] = new Array(g), y = l[u] = new Array(d); r(h, f, m, v, y, p, e); for (var b = 0, w = 0, O, S; b < g; ++b) if (O = m[b]) { @@ -36833,17 +36833,17 @@ function i2t(t, e) { } return a = new ho(a, n), a._enter = o, a._exit = l, a; } -function s2t(t) { +function n2t(t) { return typeof t == "object" && "length" in t ? t : Array.from(t); } -function a2t() { - return new ho(this._exit || this._groups.map(Xie), this._parents); +function i2t() { + return new ho(this._exit || this._groups.map(Gie), this._parents); } -function o2t(t, e, r) { +function s2t(t, e, r) { var n = this.enter(), i = this, s = this.exit(); return typeof t == "function" ? (n = t(n), n && (n = n.selection())) : n = n.append(t + ""), e != null && (i = e(i), i && (i = i.selection())), r == null ? s.remove() : r(s), n && i ? n.merge(i).order() : i; } -function l2t(t) { +function a2t(t) { for (var e = t.selection ? t.selection() : t, r = this._groups, n = e._groups, i = r.length, s = n.length, a = Math.min(i, s), o = new Array(i), l = 0; l < a; ++l) for (var u = r[l], h = n[l], f = u.length, d = o[l] = new Array(f), p, g = 0; g < f; ++g) (p = u[g] || h[g]) && (d[g] = p); @@ -36851,14 +36851,14 @@ function l2t(t) { o[l] = r[l]; return new ho(o, this._parents); } -function c2t() { +function o2t() { for (var t = this._groups, e = -1, r = t.length; ++e < r; ) for (var n = t[e], i = n.length - 1, s = n[i], a; --i >= 0; ) (a = n[i]) && (s && a.compareDocumentPosition(s) ^ 4 && s.parentNode.insertBefore(a, s), s = a); return this; } -function u2t(t) { - t || (t = h2t); +function l2t(t) { + t || (t = c2t); function e(f, d) { return f && d ? t(f.__data__, d.__data__) : !f - !d; } @@ -36869,17 +36869,17 @@ function u2t(t) { } return new ho(i, this._parents).order(); } -function h2t(t, e) { +function c2t(t, e) { return t < e ? -1 : t > e ? 1 : t >= e ? 0 : NaN; } -function f2t() { +function u2t() { var t = arguments[0]; return arguments[0] = this, t.apply(null, arguments), this; } -function d2t() { +function h2t() { return Array.from(this); } -function p2t() { +function f2t() { for (var t = this._groups, e = 0, r = t.length; e < r; ++e) for (var n = t[e], i = 0, s = n.length; i < s; ++i) { var a = n[i]; @@ -36888,115 +36888,115 @@ function p2t() { } return null; } -function g2t() { +function d2t() { let t = 0; for (const e of this) ++t; return t; } -function m2t() { +function p2t() { return !this.node(); } -function v2t(t) { +function g2t(t) { for (var e = this._groups, r = 0, n = e.length; r < n; ++r) for (var i = e[r], s = 0, a = i.length, o; s < a; ++s) (o = i[s]) && t.call(o, o.__data__, s, i); return this; } -function y2t(t) { +function m2t(t) { return function() { this.removeAttribute(t); }; } -function b2t(t) { +function v2t(t) { return function() { this.removeAttributeNS(t.space, t.local); }; } -function x2t(t, e) { +function y2t(t, e) { return function() { this.setAttribute(t, e); }; } -function w2t(t, e) { +function b2t(t, e) { return function() { this.setAttributeNS(t.space, t.local, e); }; } -function O2t(t, e) { +function x2t(t, e) { return function() { var r = e.apply(this, arguments); r == null ? this.removeAttribute(t) : this.setAttribute(t, r); }; } -function k2t(t, e) { +function w2t(t, e) { return function() { var r = e.apply(this, arguments); r == null ? this.removeAttributeNS(t.space, t.local) : this.setAttributeNS(t.space, t.local, r); }; } -function S2t(t, e) { - var r = ET(t); +function O2t(t, e) { + var r = TT(t); if (arguments.length < 2) { var n = this.node(); return r.local ? n.getAttributeNS(r.space, r.local) : n.getAttribute(r); } - return this.each((e == null ? r.local ? b2t : y2t : typeof e == "function" ? r.local ? k2t : O2t : r.local ? w2t : x2t)(r, e)); + return this.each((e == null ? r.local ? v2t : m2t : typeof e == "function" ? r.local ? w2t : x2t : r.local ? b2t : y2t)(r, e)); } -function Zie(t) { +function Hie(t) { return t.ownerDocument && t.ownerDocument.defaultView || t.document && t || t.defaultView; } -function T2t(t) { +function k2t(t) { return function() { this.style.removeProperty(t); }; } -function C2t(t, e, r) { +function S2t(t, e, r) { return function() { this.style.setProperty(t, e, r); }; } -function E2t(t, e, r) { +function T2t(t, e, r) { return function() { var n = e.apply(this, arguments); n == null ? this.style.removeProperty(t) : this.style.setProperty(t, n, r); }; } -function _2t(t, e, r) { - return arguments.length > 1 ? this.each((e == null ? T2t : typeof e == "function" ? E2t : C2t)(t, e, r == null ? "" : r)) : Hg(this.node(), t); +function C2t(t, e, r) { + return arguments.length > 1 ? this.each((e == null ? k2t : typeof e == "function" ? T2t : S2t)(t, e, r == null ? "" : r)) : Hg(this.node(), t); } function Hg(t, e) { - return t.style.getPropertyValue(e) || Zie(t).getComputedStyle(t, null).getPropertyValue(e); + return t.style.getPropertyValue(e) || Hie(t).getComputedStyle(t, null).getPropertyValue(e); } -function A2t(t) { +function E2t(t) { return function() { delete this[t]; }; } -function L2t(t, e) { +function _2t(t, e) { return function() { this[t] = e; }; } -function R2t(t, e) { +function A2t(t, e) { return function() { var r = e.apply(this, arguments); r == null ? delete this[t] : this[t] = r; }; } -function M2t(t, e) { - return arguments.length > 1 ? this.each((e == null ? A2t : typeof e == "function" ? R2t : L2t)(t, e)) : this.node()[t]; +function L2t(t, e) { + return arguments.length > 1 ? this.each((e == null ? E2t : typeof e == "function" ? A2t : _2t)(t, e)) : this.node()[t]; } -function jie(t) { +function Xie(t) { return t.trim().split(/^|\s+/); } -function ID(t) { - return t.classList || new Kie(t); +function MD(t) { + return t.classList || new Zie(t); } -function Kie(t) { - this._node = t, this._names = jie(t.getAttribute("class") || ""); +function Zie(t) { + this._node = t, this._names = Xie(t.getAttribute("class") || ""); } -Kie.prototype = { +Zie.prototype = { add: function(t) { var e = this._names.indexOf(t); e < 0 && (this._names.push(t), this._node.setAttribute("class", this._names.join(" "))); @@ -37009,133 +37009,133 @@ Kie.prototype = { return this._names.indexOf(t) >= 0; } }; -function Jie(t, e) { - for (var r = ID(t), n = -1, i = e.length; ++n < i; ) +function jie(t, e) { + for (var r = MD(t), n = -1, i = e.length; ++n < i; ) r.add(e[n]); } -function ese(t, e) { - for (var r = ID(t), n = -1, i = e.length; ++n < i; ) +function Kie(t, e) { + for (var r = MD(t), n = -1, i = e.length; ++n < i; ) r.remove(e[n]); } -function D2t(t) { +function R2t(t) { return function() { - Jie(this, t); + jie(this, t); }; } -function N2t(t) { +function M2t(t) { return function() { - ese(this, t); + Kie(this, t); }; } -function I2t(t, e) { +function D2t(t, e) { return function() { - (e.apply(this, arguments) ? Jie : ese)(this, t); + (e.apply(this, arguments) ? jie : Kie)(this, t); }; } -function P2t(t, e) { - var r = jie(t + ""); +function N2t(t, e) { + var r = Xie(t + ""); if (arguments.length < 2) { - for (var n = ID(this.node()), i = -1, s = r.length; ++i < s; ) + for (var n = MD(this.node()), i = -1, s = r.length; ++i < s; ) if (!n.contains(r[i])) return !1; return !0; } - return this.each((typeof e == "function" ? I2t : e ? D2t : N2t)(r, e)); + return this.each((typeof e == "function" ? D2t : e ? R2t : M2t)(r, e)); } -function $2t() { +function I2t() { this.textContent = ""; } -function B2t(t) { +function P2t(t) { return function() { this.textContent = t; }; } -function F2t(t) { +function $2t(t) { return function() { var e = t.apply(this, arguments); this.textContent = e == null ? "" : e; }; } -function z2t(t) { - return arguments.length ? this.each(t == null ? $2t : (typeof t == "function" ? F2t : B2t)(t)) : this.node().textContent; +function B2t(t) { + return arguments.length ? this.each(t == null ? I2t : (typeof t == "function" ? $2t : P2t)(t)) : this.node().textContent; } -function V2t() { +function F2t() { this.innerHTML = ""; } -function U2t(t) { +function z2t(t) { return function() { this.innerHTML = t; }; } -function q2t(t) { +function V2t(t) { return function() { var e = t.apply(this, arguments); this.innerHTML = e == null ? "" : e; }; } -function Y2t(t) { - return arguments.length ? this.each(t == null ? V2t : (typeof t == "function" ? q2t : U2t)(t)) : this.node().innerHTML; +function U2t(t) { + return arguments.length ? this.each(t == null ? F2t : (typeof t == "function" ? V2t : z2t)(t)) : this.node().innerHTML; } -function Q2t() { +function q2t() { this.nextSibling && this.parentNode.appendChild(this); } -function W2t() { - return this.each(Q2t); +function Y2t() { + return this.each(q2t); } -function G2t() { +function Q2t() { this.previousSibling && this.parentNode.insertBefore(this, this.parentNode.firstChild); } -function H2t() { - return this.each(G2t); +function W2t() { + return this.each(Q2t); } -function X2t(t) { - var e = typeof t == "function" ? t : Qie(t); +function G2t(t) { + var e = typeof t == "function" ? t : qie(t); return this.select(function() { return this.appendChild(e.apply(this, arguments)); }); } -function Z2t() { +function H2t() { return null; } -function j2t(t, e) { - var r = typeof t == "function" ? t : Qie(t), n = e == null ? Z2t : typeof e == "function" ? e : ND(e); +function X2t(t, e) { + var r = typeof t == "function" ? t : qie(t), n = e == null ? H2t : typeof e == "function" ? e : RD(e); return this.select(function() { return this.insertBefore(r.apply(this, arguments), n.apply(this, arguments) || null); }); } -function K2t() { +function Z2t() { var t = this.parentNode; t && t.removeChild(this); } -function J2t() { - return this.each(K2t); +function j2t() { + return this.each(Z2t); } -function ebt() { +function K2t() { var t = this.cloneNode(!1), e = this.parentNode; return e ? e.insertBefore(t, this.nextSibling) : t; } -function tbt() { +function J2t() { var t = this.cloneNode(!0), e = this.parentNode; return e ? e.insertBefore(t, this.nextSibling) : t; } -function rbt(t) { - return this.select(t ? tbt : ebt); +function ebt(t) { + return this.select(t ? J2t : K2t); } -function nbt(t) { +function tbt(t) { return arguments.length ? this.property("__data__", t) : this.node().__data__; } -function ibt(t) { +function rbt(t) { return function(e) { t.call(this, e, this.__data__); }; } -function sbt(t) { +function nbt(t) { return t.trim().split(/^|\s+/).map(function(e) { var r = "", n = e.indexOf("."); return n >= 0 && (r = e.slice(n + 1), e = e.slice(0, n)), { type: e, name: r }; }); } -function abt(t) { +function ibt(t) { return function() { var e = this.__on; if (!!e) { @@ -37145,9 +37145,9 @@ function abt(t) { } }; } -function obt(t, e, r) { +function sbt(t, e, r) { return function() { - var n = this.__on, i, s = ibt(e); + var n = this.__on, i, s = rbt(e); if (n) { for (var a = 0, o = n.length; a < o; ++a) if ((i = n[a]).type === t.type && i.name === t.name) { @@ -37158,8 +37158,8 @@ function obt(t, e, r) { this.addEventListener(t.type, s, r), i = { type: t.type, name: t.name, value: e, listener: s, options: r }, n ? n.push(i) : this.__on = [i]; }; } -function lbt(t, e, r) { - var n = sbt(t + ""), i, s = n.length, a; +function abt(t, e, r) { + var n = nbt(t + ""), i, s = n.length, a; if (arguments.length < 2) { var o = this.node().__on; if (o) { @@ -37170,87 +37170,87 @@ function lbt(t, e, r) { } return; } - for (o = e ? obt : abt, i = 0; i < s; ++i) + for (o = e ? sbt : ibt, i = 0; i < s; ++i) this.each(o(n[i], e, r)); return this; } -function tse(t, e, r) { - var n = Zie(t), i = n.CustomEvent; +function Jie(t, e, r) { + var n = Hie(t), i = n.CustomEvent; typeof i == "function" ? i = new i(e, r) : (i = n.document.createEvent("Event"), r ? (i.initEvent(e, r.bubbles, r.cancelable), i.detail = r.detail) : i.initEvent(e, !1, !1)), t.dispatchEvent(i); } -function cbt(t, e) { +function obt(t, e) { return function() { - return tse(this, t, e); + return Jie(this, t, e); }; } -function ubt(t, e) { +function lbt(t, e) { return function() { - return tse(this, t, e.apply(this, arguments)); + return Jie(this, t, e.apply(this, arguments)); }; } -function hbt(t, e) { - return this.each((typeof e == "function" ? ubt : cbt)(t, e)); +function cbt(t, e) { + return this.each((typeof e == "function" ? lbt : obt)(t, e)); } -function* fbt() { +function* ubt() { for (var t = this._groups, e = 0, r = t.length; e < r; ++e) for (var n = t[e], i = 0, s = n.length, a; i < s; ++i) (a = n[i]) && (yield a); } -var rse = [null]; +var ese = [null]; function ho(t, e) { this._groups = t, this._parents = e; } function cx() { - return new ho([[document.documentElement]], rse); + return new ho([[document.documentElement]], ese); } -function dbt() { +function hbt() { return this; } ho.prototype = cx.prototype = { constructor: ho, - select: Fyt, - selectAll: qyt, - selectChild: Gyt, - selectChildren: jyt, - filter: Kyt, - data: i2t, - enter: Jyt, - exit: a2t, - join: o2t, - merge: l2t, - selection: dbt, - order: c2t, - sort: u2t, - call: f2t, - nodes: d2t, - node: p2t, - size: g2t, - empty: m2t, - each: v2t, - attr: S2t, - style: _2t, - property: M2t, - classed: P2t, - text: z2t, - html: Y2t, - raise: W2t, - lower: H2t, - append: X2t, - insert: j2t, - remove: J2t, - clone: rbt, - datum: nbt, - on: lbt, - dispatch: hbt, - [Symbol.iterator]: fbt + select: $yt, + selectAll: Vyt, + selectChild: Qyt, + selectChildren: Xyt, + filter: Zyt, + data: r2t, + enter: jyt, + exit: i2t, + join: s2t, + merge: a2t, + selection: hbt, + order: o2t, + sort: l2t, + call: u2t, + nodes: h2t, + node: f2t, + size: d2t, + empty: p2t, + each: g2t, + attr: O2t, + style: C2t, + property: L2t, + classed: N2t, + text: B2t, + html: U2t, + raise: Y2t, + lower: W2t, + append: G2t, + insert: X2t, + remove: j2t, + clone: ebt, + datum: tbt, + on: abt, + dispatch: cbt, + [Symbol.iterator]: ubt }; function et(t) { - return typeof t == "string" ? new ho([[document.querySelector(t)]], [document.documentElement]) : new ho([[t]], rse); + return typeof t == "string" ? new ho([[document.querySelector(t)]], [document.documentElement]) : new ho([[t]], ese); } function ux(t, e, r) { t.prototype = e.prototype = r, r.constructor = t; } -function _T(t, e) { +function CT(t, e) { var r = Object.create(t.prototype); for (var n in e) r[n] = e[n]; @@ -37258,7 +37258,7 @@ function _T(t, e) { } function U0() { } -var o2 = 0.7, O3 = 1 / o2, ng = "\\s*([+-]?\\d+)\\s*", l2 = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*", Mc = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*", pbt = /^#([0-9a-f]{3,8})$/, gbt = new RegExp(`^rgb\\(${ng},${ng},${ng}\\)$`), mbt = new RegExp(`^rgb\\(${Mc},${Mc},${Mc}\\)$`), vbt = new RegExp(`^rgba\\(${ng},${ng},${ng},${l2}\\)$`), ybt = new RegExp(`^rgba\\(${Mc},${Mc},${Mc},${l2}\\)$`), bbt = new RegExp(`^hsl\\(${l2},${Mc},${Mc}\\)$`), xbt = new RegExp(`^hsla\\(${l2},${Mc},${Mc},${l2}\\)$`), FU = { +var o2 = 0.7, w3 = 1 / o2, ng = "\\s*([+-]?\\d+)\\s*", l2 = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*", Mc = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*", fbt = /^#([0-9a-f]{3,8})$/, dbt = new RegExp(`^rgb\\(${ng},${ng},${ng}\\)$`), pbt = new RegExp(`^rgb\\(${Mc},${Mc},${Mc}\\)$`), gbt = new RegExp(`^rgba\\(${ng},${ng},${ng},${l2}\\)$`), mbt = new RegExp(`^rgba\\(${Mc},${Mc},${Mc},${l2}\\)$`), vbt = new RegExp(`^hsl\\(${l2},${Mc},${Mc}\\)$`), ybt = new RegExp(`^hsla\\(${l2},${Mc},${Mc},${l2}\\)$`), PU = { aliceblue: 15792383, antiquewhite: 16444375, aqua: 65535, @@ -37415,47 +37415,47 @@ ux(U0, s0, { displayable() { return this.rgb().displayable(); }, - hex: zU, - formatHex: zU, - formatHex8: wbt, - formatHsl: Obt, - formatRgb: VU, - toString: VU + hex: $U, + formatHex: $U, + formatHex8: bbt, + formatHsl: xbt, + formatRgb: BU, + toString: BU }); -function zU() { +function $U() { return this.rgb().formatHex(); } -function wbt() { +function bbt() { return this.rgb().formatHex8(); } -function Obt() { - return ise(this).formatHsl(); +function xbt() { + return rse(this).formatHsl(); } -function VU() { +function BU() { return this.rgb().formatRgb(); } function s0(t) { var e, r; - return t = (t + "").trim().toLowerCase(), (e = pbt.exec(t)) ? (r = e[1].length, e = parseInt(e[1], 16), r === 6 ? UU(e) : r === 3 ? new Is(e >> 8 & 15 | e >> 4 & 240, e >> 4 & 15 | e & 240, (e & 15) << 4 | e & 15, 1) : r === 8 ? Xw(e >> 24 & 255, e >> 16 & 255, e >> 8 & 255, (e & 255) / 255) : r === 4 ? Xw(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 = gbt.exec(t)) ? new Is(e[1], e[2], e[3], 1) : (e = mbt.exec(t)) ? new Is(e[1] * 255 / 100, e[2] * 255 / 100, e[3] * 255 / 100, 1) : (e = vbt.exec(t)) ? Xw(e[1], e[2], e[3], e[4]) : (e = ybt.exec(t)) ? Xw(e[1] * 255 / 100, e[2] * 255 / 100, e[3] * 255 / 100, e[4]) : (e = bbt.exec(t)) ? QU(e[1], e[2] / 100, e[3] / 100, 1) : (e = xbt.exec(t)) ? QU(e[1], e[2] / 100, e[3] / 100, e[4]) : FU.hasOwnProperty(t) ? UU(FU[t]) : t === "transparent" ? new Is(NaN, NaN, NaN, 0) : null; + return t = (t + "").trim().toLowerCase(), (e = fbt.exec(t)) ? (r = e[1].length, e = parseInt(e[1], 16), r === 6 ? FU(e) : r === 3 ? new Is(e >> 8 & 15 | e >> 4 & 240, e >> 4 & 15 | e & 240, (e & 15) << 4 | e & 15, 1) : r === 8 ? Xw(e >> 24 & 255, e >> 16 & 255, e >> 8 & 255, (e & 255) / 255) : r === 4 ? Xw(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 = dbt.exec(t)) ? new Is(e[1], e[2], e[3], 1) : (e = pbt.exec(t)) ? new Is(e[1] * 255 / 100, e[2] * 255 / 100, e[3] * 255 / 100, 1) : (e = gbt.exec(t)) ? Xw(e[1], e[2], e[3], e[4]) : (e = mbt.exec(t)) ? Xw(e[1] * 255 / 100, e[2] * 255 / 100, e[3] * 255 / 100, e[4]) : (e = vbt.exec(t)) ? UU(e[1], e[2] / 100, e[3] / 100, 1) : (e = ybt.exec(t)) ? UU(e[1], e[2] / 100, e[3] / 100, e[4]) : PU.hasOwnProperty(t) ? FU(PU[t]) : t === "transparent" ? new Is(NaN, NaN, NaN, 0) : null; } -function UU(t) { +function FU(t) { return new Is(t >> 16 & 255, t >> 8 & 255, t & 255, 1); } function Xw(t, e, r, n) { return n <= 0 && (t = e = r = NaN), new Is(t, e, r, n); } -function nse(t) { +function tse(t) { return t instanceof U0 || (t = s0(t)), t ? (t = t.rgb(), new Is(t.r, t.g, t.b, t.opacity)) : new Is(); } -function M8(t, e, r, n) { - return arguments.length === 1 ? nse(t) : new Is(t, e, r, n == null ? 1 : n); +function L8(t, e, r, n) { + return arguments.length === 1 ? tse(t) : new Is(t, e, r, n == null ? 1 : n); } function Is(t, e, r, n) { this.r = +t, this.g = +e, this.b = +r, this.opacity = +n; } -ux(Is, M8, _T(U0, { +ux(Is, L8, CT(U0, { brighter(t) { - return t = t == null ? O3 : Math.pow(O3, t), new Is(this.r * t, this.g * t, this.b * t, this.opacity); + return t = t == null ? w3 : Math.pow(w3, t), new Is(this.r * t, this.g * t, this.b * t, this.opacity); }, darker(t) { return t = t == null ? o2 : Math.pow(o2, t), new Is(this.r * t, this.g * t, this.b * t, this.opacity); @@ -37464,28 +37464,28 @@ ux(Is, M8, _T(U0, { return this; }, clamp() { - return new Is(Wd(this.r), Wd(this.g), Wd(this.b), k3(this.opacity)); + return new Is(Wd(this.r), Wd(this.g), Wd(this.b), O3(this.opacity)); }, displayable() { 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; }, - hex: qU, - formatHex: qU, - formatHex8: kbt, - formatRgb: YU, - toString: YU + hex: zU, + formatHex: zU, + formatHex8: wbt, + formatRgb: VU, + toString: VU })); -function qU() { +function zU() { return `#${Md(this.r)}${Md(this.g)}${Md(this.b)}`; } -function kbt() { +function wbt() { return `#${Md(this.r)}${Md(this.g)}${Md(this.b)}${Md((isNaN(this.opacity) ? 1 : this.opacity) * 255)}`; } -function YU() { - const t = k3(this.opacity); +function VU() { + const t = O3(this.opacity); return `${t === 1 ? "rgb(" : "rgba("}${Wd(this.r)}, ${Wd(this.g)}, ${Wd(this.b)}${t === 1 ? ")" : `, ${t})`}`; } -function k3(t) { +function O3(t) { return isNaN(t) ? 1 : Math.max(0, Math.min(1, t)); } function Wd(t) { @@ -37494,10 +37494,10 @@ function Wd(t) { function Md(t) { return t = Wd(t), (t < 16 ? "0" : "") + t.toString(16); } -function QU(t, e, r, n) { +function UU(t, e, r, n) { return n <= 0 ? t = e = r = NaN : r <= 0 || r >= 1 ? t = e = NaN : e <= 0 && (t = NaN), new vl(t, e, r, n); } -function ise(t) { +function rse(t) { if (t instanceof vl) return new vl(t.h, t.s, t.l, t.opacity); if (t instanceof U0 || (t = s0(t)), !t) @@ -37508,15 +37508,15 @@ function ise(t) { var e = t.r / 255, r = t.g / 255, n = t.b / 255, i = Math.min(e, r, n), s = Math.max(e, r, n), a = NaN, o = s - i, l = (s + i) / 2; return o ? (e === s ? a = (r - n) / o + (r < n) * 6 : r === s ? a = (n - e) / o + 2 : a = (e - r) / o + 4, o /= l < 0.5 ? s + i : 2 - s - i, a *= 60) : o = l > 0 && l < 1 ? 0 : a, new vl(a, o, l, t.opacity); } -function Sbt(t, e, r, n) { - return arguments.length === 1 ? ise(t) : new vl(t, e, r, n == null ? 1 : n); +function Obt(t, e, r, n) { + return arguments.length === 1 ? rse(t) : new vl(t, e, r, n == null ? 1 : n); } function vl(t, e, r, n) { this.h = +t, this.s = +e, this.l = +r, this.opacity = +n; } -ux(vl, Sbt, _T(U0, { +ux(vl, Obt, CT(U0, { brighter(t) { - return t = t == null ? O3 : Math.pow(O3, t), new vl(this.h, this.s, this.l * t, this.opacity); + return t = t == null ? w3 : Math.pow(w3, t), new vl(this.h, this.s, this.l * t, this.opacity); }, darker(t) { return t = t == null ? o2 : Math.pow(o2, t), new vl(this.h, this.s, this.l * t, this.opacity); @@ -37524,143 +37524,143 @@ ux(vl, Sbt, _T(U0, { rgb() { var t = this.h % 360 + (this.h < 0) * 360, e = isNaN(t) || isNaN(this.s) ? 0 : this.s, r = this.l, n = r + (r < 0.5 ? r : 1 - r) * e, i = 2 * r - n; return new Is( - U6(t >= 240 ? t - 240 : t + 120, i, n), - U6(t, i, n), - U6(t < 120 ? t + 240 : t - 120, i, n), + z6(t >= 240 ? t - 240 : t + 120, i, n), + z6(t, i, n), + z6(t < 120 ? t + 240 : t - 120, i, n), this.opacity ); }, clamp() { - return new vl(WU(this.h), Zw(this.s), Zw(this.l), k3(this.opacity)); + return new vl(qU(this.h), Zw(this.s), Zw(this.l), O3(this.opacity)); }, displayable() { return (0 <= this.s && this.s <= 1 || isNaN(this.s)) && 0 <= this.l && this.l <= 1 && 0 <= this.opacity && this.opacity <= 1; }, formatHsl() { - const t = k3(this.opacity); - return `${t === 1 ? "hsl(" : "hsla("}${WU(this.h)}, ${Zw(this.s) * 100}%, ${Zw(this.l) * 100}%${t === 1 ? ")" : `, ${t})`}`; + const t = O3(this.opacity); + return `${t === 1 ? "hsl(" : "hsla("}${qU(this.h)}, ${Zw(this.s) * 100}%, ${Zw(this.l) * 100}%${t === 1 ? ")" : `, ${t})`}`; } })); -function WU(t) { +function qU(t) { return t = (t || 0) % 360, t < 0 ? t + 360 : t; } function Zw(t) { return Math.max(0, Math.min(1, t || 0)); } -function U6(t, e, r) { +function z6(t, e, r) { return (t < 60 ? e + (r - e) * t / 60 : t < 180 ? r : t < 240 ? e + (r - e) * (240 - t) / 60 : e) * 255; } -const Tbt = Math.PI / 180, Cbt = 180 / Math.PI, S3 = 18, sse = 0.96422, ase = 1, ose = 0.82521, lse = 4 / 29, ig = 6 / 29, cse = 3 * ig * ig, Ebt = ig * ig * ig; -function use(t) { +const kbt = Math.PI / 180, Sbt = 180 / Math.PI, k3 = 18, nse = 0.96422, ise = 1, sse = 0.82521, ase = 4 / 29, ig = 6 / 29, ose = 3 * ig * ig, Tbt = ig * ig * ig; +function lse(t) { if (t instanceof Dc) return new Dc(t.l, t.a, t.b, t.opacity); if (t instanceof xu) - return hse(t); - t instanceof Is || (t = nse(t)); - var e = W6(t.r), r = W6(t.g), n = W6(t.b), i = q6((0.2225045 * e + 0.7168786 * r + 0.0606169 * n) / ase), s, a; - return e === r && r === n ? s = a = i : (s = q6((0.4360747 * e + 0.3850649 * r + 0.1430804 * n) / sse), a = q6((0.0139322 * e + 0.0971045 * r + 0.7141733 * n) / ose)), new Dc(116 * i - 16, 500 * (s - i), 200 * (i - a), t.opacity); + return cse(t); + t instanceof Is || (t = tse(t)); + var e = Y6(t.r), r = Y6(t.g), n = Y6(t.b), i = V6((0.2225045 * e + 0.7168786 * r + 0.0606169 * n) / ise), s, a; + return e === r && r === n ? s = a = i : (s = V6((0.4360747 * e + 0.3850649 * r + 0.1430804 * n) / nse), a = V6((0.0139322 * e + 0.0971045 * r + 0.7141733 * n) / sse)), new Dc(116 * i - 16, 500 * (s - i), 200 * (i - a), t.opacity); } -function _bt(t, e, r, n) { - return arguments.length === 1 ? use(t) : new Dc(t, e, r, n == null ? 1 : n); +function Cbt(t, e, r, n) { + return arguments.length === 1 ? lse(t) : new Dc(t, e, r, n == null ? 1 : n); } function Dc(t, e, r, n) { this.l = +t, this.a = +e, this.b = +r, this.opacity = +n; } -ux(Dc, _bt, _T(U0, { +ux(Dc, Cbt, CT(U0, { brighter(t) { - return new Dc(this.l + S3 * (t == null ? 1 : t), this.a, this.b, this.opacity); + return new Dc(this.l + k3 * (t == null ? 1 : t), this.a, this.b, this.opacity); }, darker(t) { - return new Dc(this.l - S3 * (t == null ? 1 : t), this.a, this.b, this.opacity); + return new Dc(this.l - k3 * (t == null ? 1 : t), this.a, this.b, this.opacity); }, rgb() { var t = (this.l + 16) / 116, e = isNaN(this.a) ? t : t + this.a / 500, r = isNaN(this.b) ? t : t - this.b / 200; - return e = sse * Y6(e), t = ase * Y6(t), r = ose * Y6(r), new Is( - Q6(3.1338561 * e - 1.6168667 * t - 0.4906146 * r), - Q6(-0.9787684 * e + 1.9161415 * t + 0.033454 * r), - Q6(0.0719453 * e - 0.2289914 * t + 1.4052427 * r), + return e = nse * U6(e), t = ise * U6(t), r = sse * U6(r), new Is( + q6(3.1338561 * e - 1.6168667 * t - 0.4906146 * r), + q6(-0.9787684 * e + 1.9161415 * t + 0.033454 * r), + q6(0.0719453 * e - 0.2289914 * t + 1.4052427 * r), this.opacity ); } })); -function q6(t) { - return t > Ebt ? Math.pow(t, 1 / 3) : t / cse + lse; +function V6(t) { + return t > Tbt ? Math.pow(t, 1 / 3) : t / ose + ase; } -function Y6(t) { - return t > ig ? t * t * t : cse * (t - lse); +function U6(t) { + return t > ig ? t * t * t : ose * (t - ase); } -function Q6(t) { +function q6(t) { return 255 * (t <= 31308e-7 ? 12.92 * t : 1.055 * Math.pow(t, 1 / 2.4) - 0.055); } -function W6(t) { +function Y6(t) { return (t /= 255) <= 0.04045 ? t / 12.92 : Math.pow((t + 0.055) / 1.055, 2.4); } -function Abt(t) { +function Ebt(t) { if (t instanceof xu) return new xu(t.h, t.c, t.l, t.opacity); - if (t instanceof Dc || (t = use(t)), t.a === 0 && t.b === 0) + if (t instanceof Dc || (t = lse(t)), t.a === 0 && t.b === 0) return new xu(NaN, 0 < t.l && t.l < 100 ? 0 : NaN, t.l, t.opacity); - var e = Math.atan2(t.b, t.a) * Cbt; + var e = Math.atan2(t.b, t.a) * Sbt; return new xu(e < 0 ? e + 360 : e, Math.sqrt(t.a * t.a + t.b * t.b), t.l, t.opacity); } -function D8(t, e, r, n) { - return arguments.length === 1 ? Abt(t) : new xu(t, e, r, n == null ? 1 : n); +function R8(t, e, r, n) { + return arguments.length === 1 ? Ebt(t) : new xu(t, e, r, n == null ? 1 : n); } function xu(t, e, r, n) { this.h = +t, this.c = +e, this.l = +r, this.opacity = +n; } -function hse(t) { +function cse(t) { if (isNaN(t.h)) return new Dc(t.l, 0, 0, t.opacity); - var e = t.h * Tbt; + var e = t.h * kbt; return new Dc(t.l, Math.cos(e) * t.c, Math.sin(e) * t.c, t.opacity); } -ux(xu, D8, _T(U0, { +ux(xu, R8, CT(U0, { brighter(t) { - return new xu(this.h, this.c, this.l + S3 * (t == null ? 1 : t), this.opacity); + return new xu(this.h, this.c, this.l + k3 * (t == null ? 1 : t), this.opacity); }, darker(t) { - return new xu(this.h, this.c, this.l - S3 * (t == null ? 1 : t), this.opacity); + return new xu(this.h, this.c, this.l - k3 * (t == null ? 1 : t), this.opacity); }, rgb() { - return hse(this).rgb(); + return cse(this).rgb(); } })); -const AT = (t) => () => t; -function fse(t, e) { +const ET = (t) => () => t; +function use(t, e) { return function(r) { return t + r * e; }; } -function Lbt(t, e, r) { +function _bt(t, e, r) { return t = Math.pow(t, r), e = Math.pow(e, r) - t, r = 1 / r, function(n) { return Math.pow(t + n * e, r); }; } -function Rbt(t, e) { +function Abt(t, e) { var r = e - t; - return r ? fse(t, r > 180 || r < -180 ? r - 360 * Math.round(r / 360) : r) : AT(isNaN(t) ? e : t); + return r ? use(t, r > 180 || r < -180 ? r - 360 * Math.round(r / 360) : r) : ET(isNaN(t) ? e : t); } -function Mbt(t) { +function Lbt(t) { return (t = +t) == 1 ? ay : function(e, r) { - return r - e ? Lbt(e, r, t) : AT(isNaN(e) ? r : e); + return r - e ? _bt(e, r, t) : ET(isNaN(e) ? r : e); }; } function ay(t, e) { var r = e - t; - return r ? fse(t, r) : AT(isNaN(t) ? e : t); + return r ? use(t, r) : ET(isNaN(t) ? e : t); } -const T3 = function t(e) { - var r = Mbt(e); +const S3 = function t(e) { + var r = Lbt(e); function n(i, s) { - var a = r((i = M8(i)).r, (s = M8(s)).r), o = r(i.g, s.g), l = r(i.b, s.b), u = ay(i.opacity, s.opacity); + var a = r((i = L8(i)).r, (s = L8(s)).r), o = r(i.g, s.g), l = r(i.b, s.b), u = ay(i.opacity, s.opacity); return function(h) { return i.r = a(h), i.g = o(h), i.b = l(h), i.opacity = u(h), i + ""; }; } return n.gamma = t, n; }(1); -function Dbt(t, e) { +function Rbt(t, e) { e || (e = []); var r = t ? Math.min(e.length, t.length) : 0, n = e.slice(), i; return function(s) { @@ -37669,13 +37669,13 @@ function Dbt(t, e) { return n; }; } -function Nbt(t) { +function Mbt(t) { return ArrayBuffer.isView(t) && !(t instanceof DataView); } -function Ibt(t, e) { +function Dbt(t, e) { var r = e ? e.length : 0, n = t ? Math.min(r, t.length) : 0, i = new Array(n), s = new Array(r), a; for (a = 0; a < n; ++a) - i[a] = PD(t[a], e[a]); + i[a] = DD(t[a], e[a]); for (; a < r; ++a) s[a] = e[a]; return function(o) { @@ -37684,7 +37684,7 @@ function Ibt(t, e) { return s; }; } -function Pbt(t, e) { +function Nbt(t, e) { var r = new Date(); return t = +t, e = +e, function(n) { return r.setTime(t * (1 - n) + e * n), r; @@ -37695,48 +37695,48 @@ function gl(t, e) { return t * (1 - r) + e * r; }; } -function $bt(t, e) { +function Ibt(t, e) { var r = {}, n = {}, i; (t === null || typeof t != "object") && (t = {}), (e === null || typeof e != "object") && (e = {}); for (i in e) - i in t ? r[i] = PD(t[i], e[i]) : n[i] = e[i]; + i in t ? r[i] = DD(t[i], e[i]) : n[i] = e[i]; return function(s) { for (i in r) n[i] = r[i](s); return n; }; } -var N8 = /[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g, G6 = new RegExp(N8.source, "g"); -function Bbt(t) { +var M8 = /[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g, Q6 = new RegExp(M8.source, "g"); +function Pbt(t) { return function() { return t; }; } -function Fbt(t) { +function $bt(t) { return function(e) { return t(e) + ""; }; } -function dse(t, e) { - var r = N8.lastIndex = G6.lastIndex = 0, n, i, s, a = -1, o = [], l = []; - for (t = t + "", e = e + ""; (n = N8.exec(t)) && (i = G6.exec(e)); ) - (s = i.index) > r && (s = e.slice(r, s), o[a] ? o[a] += s : o[++a] = s), (n = n[0]) === (i = i[0]) ? o[a] ? o[a] += i : o[++a] = i : (o[++a] = null, l.push({ i: a, x: gl(n, i) })), r = G6.lastIndex; - return r < e.length && (s = e.slice(r), o[a] ? o[a] += s : o[++a] = s), o.length < 2 ? l[0] ? Fbt(l[0].x) : Bbt(e) : (e = l.length, function(u) { +function hse(t, e) { + var r = M8.lastIndex = Q6.lastIndex = 0, n, i, s, a = -1, o = [], l = []; + for (t = t + "", e = e + ""; (n = M8.exec(t)) && (i = Q6.exec(e)); ) + (s = i.index) > r && (s = e.slice(r, s), o[a] ? o[a] += s : o[++a] = s), (n = n[0]) === (i = i[0]) ? o[a] ? o[a] += i : o[++a] = i : (o[++a] = null, l.push({ i: a, x: gl(n, i) })), r = Q6.lastIndex; + return r < e.length && (s = e.slice(r), o[a] ? o[a] += s : o[++a] = s), o.length < 2 ? l[0] ? $bt(l[0].x) : Pbt(e) : (e = l.length, function(u) { for (var h = 0, f; h < e; ++h) o[(f = l[h]).i] = f.x(u); return o.join(""); }); } -function PD(t, e) { +function DD(t, e) { var r = typeof e, n; - return e == null || r === "boolean" ? AT(e) : (r === "number" ? gl : r === "string" ? (n = s0(e)) ? (e = n, T3) : dse : e instanceof s0 ? T3 : e instanceof Date ? Pbt : Nbt(e) ? Dbt : Array.isArray(e) ? Ibt : typeof e.valueOf != "function" && typeof e.toString != "function" || isNaN(e) ? $bt : gl)(t, e); + return e == null || r === "boolean" ? ET(e) : (r === "number" ? gl : r === "string" ? (n = s0(e)) ? (e = n, S3) : hse : e instanceof s0 ? S3 : e instanceof Date ? Nbt : Mbt(e) ? Rbt : Array.isArray(e) ? Dbt : typeof e.valueOf != "function" && typeof e.toString != "function" || isNaN(e) ? Ibt : gl)(t, e); } -function zbt(t, e) { +function Bbt(t, e) { return t = +t, e = +e, function(r) { return Math.round(t * (1 - r) + e * r); }; } -var GU = 180 / Math.PI, I8 = { +var YU = 180 / Math.PI, D8 = { translateX: 0, translateY: 0, rotate: 0, @@ -37744,26 +37744,26 @@ var GU = 180 / Math.PI, I8 = { scaleX: 1, scaleY: 1 }; -function pse(t, e, r, n, i, s) { +function fse(t, e, r, n, i, s) { var a, o, l; return (a = Math.sqrt(t * t + e * e)) && (t /= a, e /= a), (l = t * r + e * n) && (r -= t * l, n -= e * l), (o = Math.sqrt(r * r + n * n)) && (r /= o, n /= o, l /= o), t * n < e * r && (t = -t, e = -e, l = -l, a = -a), { translateX: i, translateY: s, - rotate: Math.atan2(e, t) * GU, - skewX: Math.atan(l) * GU, + rotate: Math.atan2(e, t) * YU, + skewX: Math.atan(l) * YU, scaleX: a, scaleY: o }; } var jw; -function Vbt(t) { +function Fbt(t) { const e = new (typeof DOMMatrix == "function" ? DOMMatrix : WebKitCSSMatrix)(t + ""); - return e.isIdentity ? I8 : pse(e.a, e.b, e.c, e.d, e.e, e.f); + return e.isIdentity ? D8 : fse(e.a, e.b, e.c, e.d, e.e, e.f); } -function Ubt(t) { - return t == null || (jw || (jw = document.createElementNS("http://www.w3.org/2000/svg", "g")), jw.setAttribute("transform", t), !(t = jw.transform.baseVal.consolidate())) ? I8 : (t = t.matrix, pse(t.a, t.b, t.c, t.d, t.e, t.f)); +function zbt(t) { + return t == null || (jw || (jw = document.createElementNS("http://www.w3.org/2000/svg", "g")), jw.setAttribute("transform", t), !(t = jw.transform.baseVal.consolidate())) ? D8 : (t = t.matrix, fse(t.a, t.b, t.c, t.d, t.e, t.f)); } -function gse(t, e, r, n) { +function dse(t, e, r, n) { function i(u) { return u.length ? u.pop() + " " : ""; } @@ -37796,109 +37796,109 @@ function gse(t, e, r, n) { }; }; } -var qbt = gse(Vbt, "px, ", "px)", "deg)"), Ybt = gse(Ubt, ", ", ")", ")"); -function Qbt(t) { +var Vbt = dse(Fbt, "px, ", "px)", "deg)"), Ubt = dse(zbt, ", ", ")", ")"); +function qbt(t) { return function(e, r) { - var n = t((e = D8(e)).h, (r = D8(r)).h), i = ay(e.c, r.c), s = ay(e.l, r.l), a = ay(e.opacity, r.opacity); + var n = t((e = R8(e)).h, (r = R8(r)).h), i = ay(e.c, r.c), s = ay(e.l, r.l), a = ay(e.opacity, r.opacity); return function(o) { return e.h = n(o), e.c = i(o), e.l = s(o), e.opacity = a(o), e + ""; }; }; } -const Wbt = Qbt(Rbt); -var Xg = 0, wv = 0, Ym = 0, mse = 1e3, C3, Ov, E3 = 0, a0 = 0, LT = 0, c2 = typeof performance == "object" && performance.now ? performance : Date, vse = typeof window == "object" && window.requestAnimationFrame ? window.requestAnimationFrame.bind(window) : function(t) { +const Ybt = qbt(Abt); +var Xg = 0, wv = 0, Ym = 0, pse = 1e3, T3, Ov, C3 = 0, a0 = 0, _T = 0, c2 = typeof performance == "object" && performance.now ? performance : Date, gse = typeof window == "object" && window.requestAnimationFrame ? window.requestAnimationFrame.bind(window) : function(t) { setTimeout(t, 17); }; -function $D() { - return a0 || (vse(Gbt), a0 = c2.now() + LT); +function ND() { + return a0 || (gse(Qbt), a0 = c2.now() + _T); } -function Gbt() { +function Qbt() { a0 = 0; } -function _3() { +function E3() { this._call = this._time = this._next = null; } -_3.prototype = yse.prototype = { - constructor: _3, +E3.prototype = mse.prototype = { + constructor: E3, restart: function(t, e, r) { if (typeof t != "function") throw new TypeError("callback is not a function"); - r = (r == null ? $D() : +r) + (e == null ? 0 : +e), !this._next && Ov !== this && (Ov ? Ov._next = this : C3 = this, Ov = this), this._call = t, this._time = r, P8(); + r = (r == null ? ND() : +r) + (e == null ? 0 : +e), !this._next && Ov !== this && (Ov ? Ov._next = this : T3 = this, Ov = this), this._call = t, this._time = r, N8(); }, stop: function() { - this._call && (this._call = null, this._time = 1 / 0, P8()); + this._call && (this._call = null, this._time = 1 / 0, N8()); } }; -function yse(t, e, r) { - var n = new _3(); +function mse(t, e, r) { + var n = new E3(); return n.restart(t, e, r), n; } -function Hbt() { - $D(), ++Xg; - for (var t = C3, e; t; ) +function Wbt() { + ND(), ++Xg; + for (var t = T3, e; t; ) (e = a0 - t._time) >= 0 && t._call.call(void 0, e), t = t._next; --Xg; } -function HU() { - a0 = (E3 = c2.now()) + LT, Xg = wv = 0; +function QU() { + a0 = (C3 = c2.now()) + _T, Xg = wv = 0; try { - Hbt(); + Wbt(); } finally { - Xg = 0, Zbt(), a0 = 0; + Xg = 0, Hbt(), a0 = 0; } } -function Xbt() { - var t = c2.now(), e = t - E3; - e > mse && (LT -= e, E3 = t); +function Gbt() { + var t = c2.now(), e = t - C3; + e > pse && (_T -= e, C3 = t); } -function Zbt() { - for (var t, e = C3, r, n = 1 / 0; e; ) - e._call ? (n > e._time && (n = e._time), t = e, e = e._next) : (r = e._next, e._next = null, e = t ? t._next = r : C3 = r); - Ov = t, P8(n); +function Hbt() { + for (var t, e = T3, r, n = 1 / 0; e; ) + e._call ? (n > e._time && (n = e._time), t = e, e = e._next) : (r = e._next, e._next = null, e = t ? t._next = r : T3 = r); + Ov = t, N8(n); } -function P8(t) { +function N8(t) { if (!Xg) { wv && (wv = clearTimeout(wv)); var e = t - a0; - e > 24 ? (t < 1 / 0 && (wv = setTimeout(HU, t - c2.now() - LT)), Ym && (Ym = clearInterval(Ym))) : (Ym || (E3 = c2.now(), Ym = setInterval(Xbt, mse)), Xg = 1, vse(HU)); + e > 24 ? (t < 1 / 0 && (wv = setTimeout(QU, t - c2.now() - _T)), Ym && (Ym = clearInterval(Ym))) : (Ym || (C3 = c2.now(), Ym = setInterval(Gbt, pse)), Xg = 1, gse(QU)); } } -function XU(t, e, r) { - var n = new _3(); +function WU(t, e, r) { + var n = new E3(); return e = e == null ? 0 : +e, n.restart((i) => { n.stop(), t(i + e); }, e, r), n; } -var jbt = Yie("start", "end", "cancel", "interrupt"), Kbt = [], bse = 0, ZU = 1, $8 = 2, D4 = 3, jU = 4, B8 = 5, N4 = 6; -function RT(t, e, r, n, i, s) { +var Xbt = Uie("start", "end", "cancel", "interrupt"), Zbt = [], vse = 0, GU = 1, I8 = 2, M4 = 3, HU = 4, P8 = 5, D4 = 6; +function AT(t, e, r, n, i, s) { var a = t.__transition; if (!a) t.__transition = {}; else if (r in a) return; - Jbt(t, r, { + jbt(t, r, { name: e, index: n, group: i, - on: jbt, - tween: Kbt, + on: Xbt, + tween: Zbt, time: s.time, delay: s.delay, duration: s.duration, ease: s.ease, timer: null, - state: bse + state: vse }); } -function BD(t, e) { +function ID(t, e) { var r = Wl(t, e); - if (r.state > bse) + if (r.state > vse) throw new Error("too late; already scheduled"); return r; } function Zc(t, e) { var r = Wl(t, e); - if (r.state > D4) + if (r.state > M4) throw new Error("too late; already running"); return r; } @@ -37908,43 +37908,43 @@ function Wl(t, e) { throw new Error("transition not found"); return r; } -function Jbt(t, e, r) { +function jbt(t, e, r) { var n = t.__transition, i; - n[e] = r, r.timer = yse(s, 0, r.time); + n[e] = r, r.timer = mse(s, 0, r.time); function s(u) { - r.state = ZU, r.timer.restart(a, r.delay, r.time), r.delay <= u && a(u - r.delay); + r.state = GU, r.timer.restart(a, r.delay, r.time), r.delay <= u && a(u - r.delay); } function a(u) { var h, f, d, p; - if (r.state !== ZU) + if (r.state !== GU) return l(); for (h in n) if (p = n[h], p.name === r.name) { - if (p.state === D4) - return XU(a); - p.state === jU ? (p.state = N4, p.timer.stop(), p.on.call("interrupt", t, t.__data__, p.index, p.group), delete n[h]) : +h < e && (p.state = N4, p.timer.stop(), p.on.call("cancel", t, t.__data__, p.index, p.group), delete n[h]); - } - if (XU(function() { - r.state === D4 && (r.state = jU, r.timer.restart(o, r.delay, r.time), o(u)); - }), r.state = $8, r.on.call("start", t, t.__data__, r.index, r.group), r.state === $8) { - for (r.state = D4, i = new Array(d = r.tween.length), h = 0, f = -1; h < d; ++h) + if (p.state === M4) + return WU(a); + p.state === HU ? (p.state = D4, p.timer.stop(), p.on.call("interrupt", t, t.__data__, p.index, p.group), delete n[h]) : +h < e && (p.state = D4, p.timer.stop(), p.on.call("cancel", t, t.__data__, p.index, p.group), delete n[h]); + } + if (WU(function() { + r.state === M4 && (r.state = HU, r.timer.restart(o, r.delay, r.time), o(u)); + }), r.state = I8, r.on.call("start", t, t.__data__, r.index, r.group), r.state === I8) { + for (r.state = M4, i = new Array(d = r.tween.length), h = 0, f = -1; h < d; ++h) (p = r.tween[h].value.call(t, t.__data__, r.index, r.group)) && (i[++f] = p); i.length = f + 1; } } function o(u) { - for (var h = u < r.duration ? r.ease.call(null, u / r.duration) : (r.timer.restart(l), r.state = B8, 1), f = -1, d = i.length; ++f < d; ) + for (var h = u < r.duration ? r.ease.call(null, u / r.duration) : (r.timer.restart(l), r.state = P8, 1), f = -1, d = i.length; ++f < d; ) i[f].call(t, h); - r.state === B8 && (r.on.call("end", t, t.__data__, r.index, r.group), l()); + r.state === P8 && (r.on.call("end", t, t.__data__, r.index, r.group), l()); } function l() { - r.state = N4, r.timer.stop(), delete n[e]; + r.state = D4, r.timer.stop(), delete n[e]; for (var u in n) return; delete t.__transition; } } -function ext(t, e) { +function Kbt(t, e) { var r = t.__transition, n, i, s = !0, a; if (!!r) { e = e == null ? null : e + ""; @@ -37953,17 +37953,17 @@ function ext(t, e) { s = !1; continue; } - i = n.state > $8 && n.state < B8, n.state = N4, n.timer.stop(), n.on.call(i ? "interrupt" : "cancel", t, t.__data__, n.index, n.group), delete r[a]; + i = n.state > I8 && n.state < P8, n.state = D4, n.timer.stop(), n.on.call(i ? "interrupt" : "cancel", t, t.__data__, n.index, n.group), delete r[a]; } s && delete t.__transition; } } -function txt(t) { +function Jbt(t) { return this.each(function() { - ext(this, t); + Kbt(this, t); }); } -function rxt(t, e) { +function ext(t, e) { var r, n; return function() { var i = Zc(this, t), s = i.tween; @@ -37978,7 +37978,7 @@ function rxt(t, e) { i.tween = n; }; } -function nxt(t, e, r) { +function txt(t, e, r) { var n, i; if (typeof r != "function") throw new Error(); @@ -37996,7 +37996,7 @@ function nxt(t, e, r) { s.tween = i; }; } -function ixt(t, e) { +function rxt(t, e) { var r = this._id; if (t += "", arguments.length < 2) { for (var n = Wl(this.node(), r).tween, i = 0, s = n.length, a; i < s; ++i) @@ -38004,9 +38004,9 @@ function ixt(t, e) { return a.value; return null; } - return this.each((e == null ? rxt : nxt)(r, t, e)); + return this.each((e == null ? ext : txt)(r, t, e)); } -function FD(t, e, r) { +function PD(t, e, r) { var n = t._id; return t.each(function() { var i = Zc(this, n); @@ -38015,79 +38015,79 @@ function FD(t, e, r) { return Wl(i, n).value[e]; }; } -function xse(t, e) { +function yse(t, e) { var r; - return (typeof e == "number" ? gl : e instanceof s0 ? T3 : (r = s0(e)) ? (e = r, T3) : dse)(t, e); + return (typeof e == "number" ? gl : e instanceof s0 ? S3 : (r = s0(e)) ? (e = r, S3) : hse)(t, e); } -function sxt(t) { +function nxt(t) { return function() { this.removeAttribute(t); }; } -function axt(t) { +function ixt(t) { return function() { this.removeAttributeNS(t.space, t.local); }; } -function oxt(t, e, r) { +function sxt(t, e, r) { var n, i = r + "", s; return function() { var a = this.getAttribute(t); return a === i ? null : a === n ? s : s = e(n = a, r); }; } -function lxt(t, e, r) { +function axt(t, e, r) { var n, i = r + "", s; return function() { var a = this.getAttributeNS(t.space, t.local); return a === i ? null : a === n ? s : s = e(n = a, r); }; } -function cxt(t, e, r) { +function oxt(t, e, r) { var n, i, s; return function() { var a, o = r(this), l; return o == null ? void this.removeAttribute(t) : (a = this.getAttribute(t), l = o + "", a === l ? null : a === n && l === i ? s : (i = l, s = e(n = a, o))); }; } -function uxt(t, e, r) { +function lxt(t, e, r) { var n, i, s; return function() { var a, o = r(this), l; return o == null ? void this.removeAttributeNS(t.space, t.local) : (a = this.getAttributeNS(t.space, t.local), l = o + "", a === l ? null : a === n && l === i ? s : (i = l, s = e(n = a, o))); }; } -function hxt(t, e) { - var r = ET(t), n = r === "transform" ? Ybt : xse; - return this.attrTween(t, typeof e == "function" ? (r.local ? uxt : cxt)(r, n, FD(this, "attr." + t, e)) : e == null ? (r.local ? axt : sxt)(r) : (r.local ? lxt : oxt)(r, n, e)); +function cxt(t, e) { + var r = TT(t), n = r === "transform" ? Ubt : yse; + return this.attrTween(t, typeof e == "function" ? (r.local ? lxt : oxt)(r, n, PD(this, "attr." + t, e)) : e == null ? (r.local ? ixt : nxt)(r) : (r.local ? axt : sxt)(r, n, e)); } -function fxt(t, e) { +function uxt(t, e) { return function(r) { this.setAttribute(t, e.call(this, r)); }; } -function dxt(t, e) { +function hxt(t, e) { return function(r) { this.setAttributeNS(t.space, t.local, e.call(this, r)); }; } -function pxt(t, e) { +function fxt(t, e) { var r, n; function i() { var s = e.apply(this, arguments); - return s !== n && (r = (n = s) && dxt(t, s)), r; + return s !== n && (r = (n = s) && hxt(t, s)), r; } return i._value = e, i; } -function gxt(t, e) { +function dxt(t, e) { var r, n; function i() { var s = e.apply(this, arguments); - return s !== n && (r = (n = s) && fxt(t, s)), r; + return s !== n && (r = (n = s) && uxt(t, s)), r; } return i._value = e, i; } -function mxt(t, e) { +function pxt(t, e) { var r = "attr." + t; if (arguments.length < 2) return (r = this.tween(r)) && r._value; @@ -38095,49 +38095,49 @@ function mxt(t, e) { return this.tween(r, null); if (typeof e != "function") throw new Error(); - var n = ET(t); - return this.tween(r, (n.local ? pxt : gxt)(n, e)); + var n = TT(t); + return this.tween(r, (n.local ? fxt : dxt)(n, e)); } -function vxt(t, e) { +function gxt(t, e) { return function() { - BD(this, t).delay = +e.apply(this, arguments); + ID(this, t).delay = +e.apply(this, arguments); }; } -function yxt(t, e) { +function mxt(t, e) { return e = +e, function() { - BD(this, t).delay = e; + ID(this, t).delay = e; }; } -function bxt(t) { +function vxt(t) { var e = this._id; - return arguments.length ? this.each((typeof t == "function" ? vxt : yxt)(e, t)) : Wl(this.node(), e).delay; + return arguments.length ? this.each((typeof t == "function" ? gxt : mxt)(e, t)) : Wl(this.node(), e).delay; } -function xxt(t, e) { +function yxt(t, e) { return function() { Zc(this, t).duration = +e.apply(this, arguments); }; } -function wxt(t, e) { +function bxt(t, e) { return e = +e, function() { Zc(this, t).duration = e; }; } -function Oxt(t) { +function xxt(t) { var e = this._id; - return arguments.length ? this.each((typeof t == "function" ? xxt : wxt)(e, t)) : Wl(this.node(), e).duration; + return arguments.length ? this.each((typeof t == "function" ? yxt : bxt)(e, t)) : Wl(this.node(), e).duration; } -function kxt(t, e) { +function wxt(t, e) { if (typeof e != "function") throw new Error(); return function() { Zc(this, t).ease = e; }; } -function Sxt(t) { +function Oxt(t) { var e = this._id; - return arguments.length ? this.each(kxt(e, t)) : Wl(this.node(), e).ease; + return arguments.length ? this.each(wxt(e, t)) : Wl(this.node(), e).ease; } -function Txt(t, e) { +function kxt(t, e) { return function() { var r = e.apply(this, arguments); if (typeof r != "function") @@ -38145,19 +38145,19 @@ function Txt(t, e) { Zc(this, t).ease = r; }; } -function Cxt(t) { +function Sxt(t) { if (typeof t != "function") throw new Error(); - return this.each(Txt(this._id, t)); + return this.each(kxt(this._id, t)); } -function Ext(t) { - typeof t != "function" && (t = Gie(t)); +function Txt(t) { + typeof t != "function" && (t = Qie(t)); for (var e = this._groups, r = e.length, n = new Array(r), i = 0; i < r; ++i) for (var s = e[i], a = s.length, o = n[i] = [], l, u = 0; u < a; ++u) (l = s[u]) && t.call(l, l.__data__, u, s) && o.push(l); return new Uu(n, this._parents, this._name, this._id); } -function _xt(t) { +function Cxt(t) { if (t._id !== this._id) throw new Error(); for (var e = this._groups, r = t._groups, n = e.length, i = r.length, s = Math.min(n, i), a = new Array(n), o = 0; o < s; ++o) @@ -38167,24 +38167,24 @@ function _xt(t) { a[o] = e[o]; return new Uu(a, this._parents, this._name, this._id); } -function Axt(t) { +function Ext(t) { return (t + "").trim().split(/^|\s+/).every(function(e) { var r = e.indexOf("."); return r >= 0 && (e = e.slice(0, r)), !e || e === "start"; }); } -function Lxt(t, e, r) { - var n, i, s = Axt(e) ? BD : Zc; +function _xt(t, e, r) { + var n, i, s = Ext(e) ? ID : Zc; return function() { var a = s(this, t), o = a.on; o !== n && (i = (n = o).copy()).on(e, r), a.on = i; }; } -function Rxt(t, e) { +function Axt(t, e) { var r = this._id; - return arguments.length < 2 ? Wl(this.node(), r).on.on(t) : this.each(Lxt(r, t, e)); + return arguments.length < 2 ? Wl(this.node(), r).on.on(t) : this.each(_xt(r, t, e)); } -function Mxt(t) { +function Lxt(t) { return function() { var e = this.parentNode; for (var r in this.__transition) @@ -38193,84 +38193,84 @@ function Mxt(t) { e && e.removeChild(this); }; } -function Dxt() { - return this.on("end.remove", Mxt(this._id)); +function Rxt() { + return this.on("end.remove", Lxt(this._id)); } -function Nxt(t) { +function Mxt(t) { var e = this._name, r = this._id; - typeof t != "function" && (t = ND(t)); + typeof t != "function" && (t = RD(t)); for (var n = this._groups, i = n.length, s = new Array(i), a = 0; a < i; ++a) for (var o = n[a], l = o.length, u = s[a] = new Array(l), h, f, d = 0; d < l; ++d) - (h = o[d]) && (f = t.call(h, h.__data__, d, o)) && ("__data__" in h && (f.__data__ = h.__data__), u[d] = f, RT(u[d], e, r, d, u, Wl(h, r))); + (h = o[d]) && (f = t.call(h, h.__data__, d, o)) && ("__data__" in h && (f.__data__ = h.__data__), u[d] = f, AT(u[d], e, r, d, u, Wl(h, r))); return new Uu(s, this._parents, e, r); } -function Ixt(t) { +function Dxt(t) { var e = this._name, r = this._id; - typeof t != "function" && (t = Wie(t)); + typeof t != "function" && (t = Yie(t)); for (var n = this._groups, i = n.length, s = [], a = [], o = 0; o < i; ++o) for (var l = n[o], u = l.length, h, f = 0; f < u; ++f) if (h = l[f]) { for (var d = t.call(h, h.__data__, f, l), p, g = Wl(h, r), m = 0, v = d.length; m < v; ++m) - (p = d[m]) && RT(p, e, r, m, d, g); + (p = d[m]) && AT(p, e, r, m, d, g); s.push(d), a.push(h); } return new Uu(s, a, e, r); } -var Pxt = cx.prototype.constructor; -function $xt() { - return new Pxt(this._groups, this._parents); +var Nxt = cx.prototype.constructor; +function Ixt() { + return new Nxt(this._groups, this._parents); } -function Bxt(t, e) { +function Pxt(t, e) { var r, n, i; return function() { var s = Hg(this, t), a = (this.style.removeProperty(t), Hg(this, t)); return s === a ? null : s === r && a === n ? i : i = e(r = s, n = a); }; } -function wse(t) { +function bse(t) { return function() { this.style.removeProperty(t); }; } -function Fxt(t, e, r) { +function $xt(t, e, r) { var n, i = r + "", s; return function() { var a = Hg(this, t); return a === i ? null : a === n ? s : s = e(n = a, r); }; } -function zxt(t, e, r) { +function Bxt(t, e, r) { var n, i, s; return function() { var a = Hg(this, t), o = r(this), l = o + ""; return o == null && (l = o = (this.style.removeProperty(t), Hg(this, t))), a === l ? null : a === n && l === i ? s : (i = l, s = e(n = a, o)); }; } -function Vxt(t, e) { +function Fxt(t, e) { var r, n, i, s = "style." + e, a = "end." + s, o; return function() { - var l = Zc(this, t), u = l.on, h = l.value[s] == null ? o || (o = wse(e)) : void 0; + var l = Zc(this, t), u = l.on, h = l.value[s] == null ? o || (o = bse(e)) : void 0; (u !== r || i !== h) && (n = (r = u).copy()).on(a, i = h), l.on = n; }; } -function Uxt(t, e, r) { - var n = (t += "") == "transform" ? qbt : xse; - return e == null ? this.styleTween(t, Bxt(t, n)).on("end.style." + t, wse(t)) : typeof e == "function" ? this.styleTween(t, zxt(t, n, FD(this, "style." + t, e))).each(Vxt(this._id, t)) : this.styleTween(t, Fxt(t, n, e), r).on("end.style." + t, null); +function zxt(t, e, r) { + var n = (t += "") == "transform" ? Vbt : yse; + return e == null ? this.styleTween(t, Pxt(t, n)).on("end.style." + t, bse(t)) : typeof e == "function" ? this.styleTween(t, Bxt(t, n, PD(this, "style." + t, e))).each(Fxt(this._id, t)) : this.styleTween(t, $xt(t, n, e), r).on("end.style." + t, null); } -function qxt(t, e, r) { +function Vxt(t, e, r) { return function(n) { this.style.setProperty(t, e.call(this, n), r); }; } -function Yxt(t, e, r) { +function Uxt(t, e, r) { var n, i; function s() { var a = e.apply(this, arguments); - return a !== i && (n = (i = a) && qxt(t, a, r)), n; + return a !== i && (n = (i = a) && Vxt(t, a, r)), n; } return s._value = e, s; } -function Qxt(t, e, r) { +function qxt(t, e, r) { var n = "style." + (t += ""); if (arguments.length < 2) return (n = this.tween(n)) && n._value; @@ -38278,36 +38278,36 @@ function Qxt(t, e, r) { return this.tween(n, null); if (typeof e != "function") throw new Error(); - return this.tween(n, Yxt(t, e, r == null ? "" : r)); + return this.tween(n, Uxt(t, e, r == null ? "" : r)); } -function Wxt(t) { +function Yxt(t) { return function() { this.textContent = t; }; } -function Gxt(t) { +function Qxt(t) { return function() { var e = t(this); this.textContent = e == null ? "" : e; }; } -function Hxt(t) { - return this.tween("text", typeof t == "function" ? Gxt(FD(this, "text", t)) : Wxt(t == null ? "" : t + "")); +function Wxt(t) { + return this.tween("text", typeof t == "function" ? Qxt(PD(this, "text", t)) : Yxt(t == null ? "" : t + "")); } -function Xxt(t) { +function Gxt(t) { return function(e) { this.textContent = t.call(this, e); }; } -function Zxt(t) { +function Hxt(t) { var e, r; function n() { var i = t.apply(this, arguments); - return i !== r && (e = (r = i) && Xxt(i)), e; + return i !== r && (e = (r = i) && Gxt(i)), e; } return n._value = t, n; } -function jxt(t) { +function Xxt(t) { var e = "text"; if (arguments.length < 1) return (e = this.tween(e)) && e._value; @@ -38315,14 +38315,14 @@ function jxt(t) { return this.tween(e, null); if (typeof t != "function") throw new Error(); - return this.tween(e, Zxt(t)); + return this.tween(e, Hxt(t)); } -function Kxt() { - for (var t = this._name, e = this._id, r = Ose(), n = this._groups, i = n.length, s = 0; s < i; ++s) +function Zxt() { + for (var t = this._name, e = this._id, r = xse(), n = this._groups, i = n.length, s = 0; s < i; ++s) for (var a = n[s], o = a.length, l, u = 0; u < o; ++u) if (l = a[u]) { var h = Wl(l, e); - RT(l, t, r, u, a, { + AT(l, t, r, u, a, { time: h.time + h.delay + h.duration, delay: 0, duration: h.duration, @@ -38331,7 +38331,7 @@ function Kxt() { } return new Uu(n, this._parents, t, r); } -function Jxt() { +function jxt() { var t, e, r = this, n = r._id, i = r.size(); return new Promise(function(s, a) { var o = { value: a }, l = { value: function() { @@ -38343,83 +38343,83 @@ function Jxt() { }), i === 0 && s(); }); } -var ewt = 0; +var Kxt = 0; function Uu(t, e, r, n) { this._groups = t, this._parents = e, this._name = r, this._id = n; } -function Ose() { - return ++ewt; +function xse() { + return ++Kxt; } var lu = cx.prototype; Uu.prototype = { constructor: Uu, - select: Nxt, - selectAll: Ixt, + select: Mxt, + selectAll: Dxt, selectChild: lu.selectChild, selectChildren: lu.selectChildren, - filter: Ext, - merge: _xt, - selection: $xt, - transition: Kxt, + filter: Txt, + merge: Cxt, + selection: Ixt, + transition: Zxt, call: lu.call, nodes: lu.nodes, node: lu.node, size: lu.size, empty: lu.empty, each: lu.each, - on: Rxt, - attr: hxt, - attrTween: mxt, - style: Uxt, - styleTween: Qxt, - text: Hxt, - textTween: jxt, - remove: Dxt, - tween: ixt, - delay: bxt, - duration: Oxt, - ease: Sxt, - easeVarying: Cxt, - end: Jxt, + on: Axt, + attr: cxt, + attrTween: pxt, + style: zxt, + styleTween: qxt, + text: Wxt, + textTween: Xxt, + remove: Rxt, + tween: rxt, + delay: vxt, + duration: xxt, + ease: Oxt, + easeVarying: Sxt, + end: jxt, [Symbol.iterator]: lu[Symbol.iterator] }; -function twt(t) { +function Jxt(t) { return ((t *= 2) <= 1 ? t * t * t : (t -= 2) * t * t + 2) / 2; } -var rwt = { +var ewt = { time: null, delay: 0, duration: 250, - ease: twt + ease: Jxt }; -function nwt(t, e) { +function twt(t, e) { for (var r; !(r = t.__transition) || !(r = r[e]); ) if (!(t = t.parentNode)) throw new Error(`transition ${e} not found`); return r; } -function iwt(t) { +function rwt(t) { var e, r; - t instanceof Uu ? (e = t._id, t = t._name) : (e = Ose(), (r = rwt).time = $D(), t = t == null ? null : t + ""); + t instanceof Uu ? (e = t._id, t = t._name) : (e = xse(), (r = ewt).time = ND(), t = t == null ? null : t + ""); for (var n = this._groups, i = n.length, s = 0; s < i; ++s) for (var a = n[s], o = a.length, l, u = 0; u < o; ++u) - (l = a[u]) && RT(l, t, e, u, a, r || nwt(l, e)); + (l = a[u]) && AT(l, t, e, u, a, r || twt(l, e)); return new Uu(n, this._parents, t, e); } -cx.prototype.interrupt = txt; -cx.prototype.transition = iwt; -const F8 = Math.PI, z8 = 2 * F8, ld = 1e-6, swt = z8 - ld; -function kse(t) { +cx.prototype.interrupt = Jbt; +cx.prototype.transition = rwt; +const $8 = Math.PI, B8 = 2 * $8, ld = 1e-6, nwt = B8 - ld; +function wse(t) { this._ += t[0]; for (let e = 1, r = t.length; e < r; ++e) this._ += arguments[e] + t[e]; } -function awt(t) { +function iwt(t) { let e = Math.floor(t); if (!(e >= 0)) throw new Error(`invalid digits: ${t}`); if (e > 15) - return kse; + return wse; const r = 10 ** e; return function(n) { this._ += n[0]; @@ -38427,9 +38427,9 @@ function awt(t) { this._ += Math.round(arguments[i] * r) / r + n[i]; }; } -class owt { +class swt { constructor(e) { - this._x0 = this._y0 = this._x1 = this._y1 = null, this._ = "", this._append = e == null ? kse : awt(e); + this._x0 = this._y0 = this._x1 = this._y1 = null, this._ = "", this._append = e == null ? wse : iwt(e); } moveTo(e, r) { this._append`M${this._x0 = this._x1 = +e},${this._y0 = this._y1 = +r}`; @@ -38456,7 +38456,7 @@ class owt { if (!(Math.abs(f * l - u * h) > ld) || !s) this._append`L${this._x1 = e},${this._y1 = r}`; else { - let p = n - a, g = i - o, m = l * l + u * u, v = p * p + g * g, y = Math.sqrt(m), b = Math.sqrt(d), w = s * Math.tan((F8 - Math.acos((m + d - v) / (2 * y * b))) / 2), O = w / b, S = w / y; + let p = n - a, g = i - o, m = l * l + u * u, v = p * p + g * g, y = Math.sqrt(m), b = Math.sqrt(d), w = s * Math.tan(($8 - Math.acos((m + d - v) / (2 * y * b))) / 2), O = w / b, S = w / y; Math.abs(O - 1) > ld && this._append`L${e + O * h},${r + O * f}`, this._append`A${s},${s},0,0,${+(f * p > h * g)},${this._x1 = e + S * l},${this._y1 = r + S * u}`; } } @@ -38464,7 +38464,7 @@ class owt { if (e = +e, r = +r, n = +n, a = !!a, n < 0) throw new Error(`negative radius: ${n}`); let o = n * Math.cos(i), l = n * Math.sin(i), u = e + o, h = r + l, f = 1 ^ a, d = a ? i - s : s - i; - this._x1 === null ? this._append`M${u},${h}` : (Math.abs(this._x1 - u) > ld || Math.abs(this._y1 - h) > ld) && this._append`L${u},${h}`, n && (d < 0 && (d = d % z8 + z8), d > swt ? this._append`A${n},${n},0,1,${f},${e - o},${r - l}A${n},${n},0,1,${f},${this._x1 = u},${this._y1 = h}` : d > ld && this._append`A${n},${n},0,${+(d >= F8)},${f},${this._x1 = e + n * Math.cos(s)},${this._y1 = r + n * Math.sin(s)}`); + this._x1 === null ? this._append`M${u},${h}` : (Math.abs(this._x1 - u) > ld || Math.abs(this._y1 - h) > ld) && this._append`L${u},${h}`, n && (d < 0 && (d = d % B8 + B8), d > nwt ? this._append`A${n},${n},0,1,${f},${e - o},${r - l}A${n},${n},0,1,${f},${this._x1 = u},${this._y1 = h}` : d > ld && this._append`A${n},${n},0,${+(d >= $8)},${f},${this._x1 = e + n * Math.cos(s)},${this._y1 = r + n * Math.sin(s)}`); } rect(e, r, n, i) { this._append`M${this._x0 = this._x1 = +e},${this._y0 = this._y1 = +r}h${n = +n}v${+i}h${-n}Z`; @@ -38473,10 +38473,10 @@ class owt { return this._; } } -function lwt(t) { +function awt(t) { return Math.abs(t = Math.round(t)) >= 1e21 ? t.toLocaleString("en").replace(/,/g, "") : t.toString(10); } -function A3(t, e) { +function _3(t, e) { if ((r = (t = e ? t.toExponential(e - 1) : t.toExponential()).indexOf("e")) < 0) return null; var r, n = t.slice(0, r); @@ -38486,28 +38486,28 @@ function A3(t, e) { ]; } function Zg(t) { - return t = A3(Math.abs(t)), t ? t[1] : NaN; + return t = _3(Math.abs(t)), t ? t[1] : NaN; } -function cwt(t, e) { +function owt(t, e) { return function(r, n) { for (var i = r.length, s = [], a = 0, o = t[0], l = 0; i > 0 && o > 0 && (l + o + 1 > n && (o = Math.max(1, n - l)), s.push(r.substring(i -= o, i + o)), !((l += o + 1) > n)); ) o = t[a = (a + 1) % t.length]; return s.reverse().join(e); }; } -function uwt(t) { +function lwt(t) { return function(e) { return e.replace(/[0-9]/g, function(r) { return t[+r]; }); }; } -var hwt = /^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i; -function L3(t) { - if (!(e = hwt.exec(t))) +var cwt = /^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i; +function A3(t) { + if (!(e = cwt.exec(t))) throw new Error("invalid format: " + t); var e; - return new zD({ + return new $D({ fill: e[1], align: e[2], sign: e[3], @@ -38520,14 +38520,14 @@ function L3(t) { type: e[10] }); } -L3.prototype = zD.prototype; -function zD(t) { +A3.prototype = $D.prototype; +function $D(t) { this.fill = t.fill === void 0 ? " " : t.fill + "", this.align = t.align === void 0 ? ">" : t.align + "", this.sign = t.sign === void 0 ? "-" : t.sign + "", this.symbol = t.symbol === void 0 ? "" : t.symbol + "", this.zero = !!t.zero, this.width = t.width === void 0 ? void 0 : +t.width, this.comma = !!t.comma, this.precision = t.precision === void 0 ? void 0 : +t.precision, this.trim = !!t.trim, this.type = t.type === void 0 ? "" : t.type + ""; } -zD.prototype.toString = function() { +$D.prototype.toString = function() { return this.fill + this.align + this.sign + this.symbol + (this.zero ? "0" : "") + (this.width === void 0 ? "" : Math.max(1, this.width | 0)) + (this.comma ? "," : "") + (this.precision === void 0 ? "" : "." + Math.max(0, this.precision | 0)) + (this.trim ? "~" : "") + this.type; }; -function fwt(t) { +function uwt(t) { e: for (var e = t.length, r = 1, n = -1, i; r < e; ++r) switch (t[r]) { @@ -38545,47 +38545,47 @@ function fwt(t) { } return n > 0 ? t.slice(0, n) + t.slice(i + 1) : t; } -var Sse; -function dwt(t, e) { - var r = A3(t, e); +var Ose; +function hwt(t, e) { + var r = _3(t, e); if (!r) return t + ""; - var n = r[0], i = r[1], s = i - (Sse = Math.max(-8, Math.min(8, Math.floor(i / 3))) * 3) + 1, a = n.length; - return s === a ? n : s > a ? n + new Array(s - a + 1).join("0") : s > 0 ? n.slice(0, s) + "." + n.slice(s) : "0." + new Array(1 - s).join("0") + A3(t, Math.max(0, e + s - 1))[0]; + var n = r[0], i = r[1], s = i - (Ose = Math.max(-8, Math.min(8, Math.floor(i / 3))) * 3) + 1, a = n.length; + return s === a ? n : s > a ? n + new Array(s - a + 1).join("0") : s > 0 ? n.slice(0, s) + "." + n.slice(s) : "0." + new Array(1 - s).join("0") + _3(t, Math.max(0, e + s - 1))[0]; } -function KU(t, e) { - var r = A3(t, e); +function XU(t, e) { + var r = _3(t, e); if (!r) return t + ""; var n = r[0], i = r[1]; return i < 0 ? "0." + new Array(-i).join("0") + n : n.length > i + 1 ? n.slice(0, i + 1) + "." + n.slice(i + 1) : n + new Array(i - n.length + 2).join("0"); } -const JU = { +const ZU = { "%": (t, e) => (t * 100).toFixed(e), b: (t) => Math.round(t).toString(2), c: (t) => t + "", - d: lwt, + d: awt, e: (t, e) => t.toExponential(e), f: (t, e) => t.toFixed(e), g: (t, e) => t.toPrecision(e), o: (t) => Math.round(t).toString(8), - p: (t, e) => KU(t * 100, e), - r: KU, - s: dwt, + p: (t, e) => XU(t * 100, e), + r: XU, + s: hwt, X: (t) => Math.round(t).toString(16).toUpperCase(), x: (t) => Math.round(t).toString(16) }; -function eq(t) { +function jU(t) { return t; } -var tq = Array.prototype.map, rq = ["y", "z", "a", "f", "p", "n", "\xB5", "m", "", "k", "M", "G", "T", "P", "E", "Z", "Y"]; -function pwt(t) { - var e = t.grouping === void 0 || t.thousands === void 0 ? eq : cwt(tq.call(t.grouping, Number), t.thousands + ""), r = t.currency === void 0 ? "" : t.currency[0] + "", n = t.currency === void 0 ? "" : t.currency[1] + "", i = t.decimal === void 0 ? "." : t.decimal + "", s = t.numerals === void 0 ? eq : uwt(tq.call(t.numerals, String)), a = t.percent === void 0 ? "%" : t.percent + "", o = t.minus === void 0 ? "\u2212" : t.minus + "", l = t.nan === void 0 ? "NaN" : t.nan + ""; +var KU = Array.prototype.map, JU = ["y", "z", "a", "f", "p", "n", "\xB5", "m", "", "k", "M", "G", "T", "P", "E", "Z", "Y"]; +function fwt(t) { + var e = t.grouping === void 0 || t.thousands === void 0 ? jU : owt(KU.call(t.grouping, Number), t.thousands + ""), r = t.currency === void 0 ? "" : t.currency[0] + "", n = t.currency === void 0 ? "" : t.currency[1] + "", i = t.decimal === void 0 ? "." : t.decimal + "", s = t.numerals === void 0 ? jU : lwt(KU.call(t.numerals, String)), a = t.percent === void 0 ? "%" : t.percent + "", o = t.minus === void 0 ? "\u2212" : t.minus + "", l = t.nan === void 0 ? "NaN" : t.nan + ""; function u(f) { - f = L3(f); + f = A3(f); var d = f.fill, p = f.align, g = f.sign, m = f.symbol, v = f.zero, y = f.width, b = f.comma, w = f.precision, O = f.trim, S = f.type; - S === "n" ? (b = !0, S = "g") : JU[S] || (w === void 0 && (w = 12), O = !0, S = "g"), (v || d === "0" && p === "=") && (v = !0, d = "0", p = "="); - var C = m === "$" ? r : m === "#" && /[boxX]/.test(S) ? "0" + S.toLowerCase() : "", T = m === "$" ? n : /[%p]/.test(S) ? a : "", L = JU[S], E = /[defgprs%]/.test(S); + S === "n" ? (b = !0, S = "g") : ZU[S] || (w === void 0 && (w = 12), O = !0, S = "g"), (v || d === "0" && p === "=") && (v = !0, d = "0", p = "="); + var C = m === "$" ? r : m === "#" && /[boxX]/.test(S) ? "0" + S.toLowerCase() : "", T = m === "$" ? n : /[%p]/.test(S) ? a : "", L = ZU[S], E = /[defgprs%]/.test(S); w = w === void 0 ? 6 : /[gprs]/.test(S) ? Math.max(1, Math.min(21, w)) : Math.max(0, Math.min(20, w)); function R(_) { var A = C, $ = T, k, N, M; @@ -38594,7 +38594,7 @@ function pwt(t) { else { _ = +_; var I = _ < 0 || 1 / _ < 0; - if (_ = isNaN(_) ? l : L(Math.abs(_), w), O && (_ = fwt(_)), I && +_ == 0 && g !== "+" && (I = !1), A = (I ? g === "(" ? g : o : g === "-" || g === "(" ? "" : g) + A, $ = (S === "s" ? rq[8 + Sse / 3] : "") + $ + (I && g === "(" ? ")" : ""), E) { + if (_ = isNaN(_) ? l : L(Math.abs(_), w), O && (_ = uwt(_)), I && +_ == 0 && g !== "+" && (I = !1), A = (I ? g === "(" ? g : o : g === "-" || g === "(" ? "" : g) + A, $ = (S === "s" ? JU[8 + Ose / 3] : "") + $ + (I && g === "(" ? ")" : ""), E) { for (k = -1, N = _.length; ++k < N; ) if (M = _.charCodeAt(k), 48 > M || M > 57) { $ = (M === 46 ? i + _.slice(k + 1) : _.slice(k)) + $, _ = _.slice(0, k); @@ -38625,7 +38625,7 @@ function pwt(t) { }, R; } function h(f, d) { - var p = u((f = L3(f), f.type = "f", f)), g = Math.max(-8, Math.min(8, Math.floor(Zg(d) / 3))) * 3, m = Math.pow(10, -g), v = rq[8 + g / 3]; + var p = u((f = A3(f), f.type = "f", f)), g = Math.max(-8, Math.min(8, Math.floor(Zg(d) / 3))) * 3, m = Math.pow(10, -g), v = JU[8 + g / 3]; return function(y) { return p(m * y) + v; }; @@ -38635,25 +38635,25 @@ function pwt(t) { formatPrefix: h }; } -var Kw, Tse, Cse; -gwt({ +var Kw, kse, Sse; +dwt({ thousands: ",", grouping: [3], currency: ["$", ""] }); -function gwt(t) { - return Kw = pwt(t), Tse = Kw.format, Cse = Kw.formatPrefix, Kw; +function dwt(t) { + return Kw = fwt(t), kse = Kw.format, Sse = Kw.formatPrefix, Kw; } -function mwt(t) { +function pwt(t) { return Math.max(0, -Zg(Math.abs(t))); } -function vwt(t, e) { +function gwt(t, e) { return Math.max(0, Math.max(-8, Math.min(8, Math.floor(Zg(e) / 3))) * 3 - Zg(Math.abs(t))); } -function ywt(t, e) { +function mwt(t, e) { return t = Math.abs(t), e = Math.abs(e) - t, Math.max(0, Zg(e) - Zg(t)) + 1; } -function MT(t, e) { +function LT(t, e) { switch (arguments.length) { case 0: break; @@ -38666,13 +38666,13 @@ function MT(t, e) { } return this; } -const nq = Symbol("implicit"); -function DT() { - var t = new NU(), e = [], r = [], n = nq; +const eq = Symbol("implicit"); +function RT() { + var t = new RU(), e = [], r = [], n = eq; function i(s) { let a = t.get(s); if (a === void 0) { - if (n !== nq) + if (n !== eq) return n; t.set(s, a = e.push(s) - 1); } @@ -38681,7 +38681,7 @@ function DT() { return i.domain = function(s) { if (!arguments.length) return e.slice(); - e = [], t = new NU(); + e = [], t = new RU(); for (const a of s) t.has(a) || t.set(a, e.push(a) - 1); return i; @@ -38690,16 +38690,16 @@ function DT() { }, i.unknown = function(s) { return arguments.length ? (n = s, i) : n; }, i.copy = function() { - return DT(e, r).unknown(n); - }, MT.apply(i, arguments), i; + return RT(e, r).unknown(n); + }, LT.apply(i, arguments), i; } -function V8() { - var t = DT().unknown(void 0), e = t.domain, r = t.range, n = 0, i = 1, s, a, o = !1, l = 0, u = 0, h = 0.5; +function F8() { + var t = RT().unknown(void 0), e = t.domain, r = t.range, n = 0, i = 1, s, a, o = !1, l = 0, u = 0, h = 0.5; delete t.unknown; function f() { var d = e().length, p = i < n, g = p ? i : n, m = p ? n : i; s = (m - g) / Math.max(1, d - l + u * 2), o && (s = Math.floor(s)), g += (m - g - s * (d - l)) * h, a = s * (1 - l), o && (g = Math.round(g), a = Math.round(a)); - var v = Syt(d).map(function(y) { + var v = Oyt(d).map(function(y) { return g + s * y; }); return r(p ? v.reverse() : v); @@ -38725,55 +38725,55 @@ function V8() { }, t.align = function(d) { return arguments.length ? (h = Math.max(0, Math.min(1, d)), f()) : h; }, t.copy = function() { - return V8(e(), [n, i]).round(o).paddingInner(l).paddingOuter(u).align(h); - }, MT.apply(f(), arguments); + return F8(e(), [n, i]).round(o).paddingInner(l).paddingOuter(u).align(h); + }, LT.apply(f(), arguments); } -function bwt(t) { +function vwt(t) { return function() { return t; }; } -function xwt(t) { +function ywt(t) { return +t; } -var iq = [0, 1]; +var tq = [0, 1]; function Pp(t) { return t; } -function U8(t, e) { +function z8(t, e) { return (e -= t = +t) ? function(r) { return (r - t) / e; - } : bwt(isNaN(e) ? NaN : 0.5); + } : vwt(isNaN(e) ? NaN : 0.5); } -function wwt(t, e) { +function bwt(t, e) { var r; return t > e && (r = t, t = e, e = r), function(n) { return Math.max(t, Math.min(e, n)); }; } -function Owt(t, e, r) { +function xwt(t, e, r) { var n = t[0], i = t[1], s = e[0], a = e[1]; - return i < n ? (n = U8(i, n), s = r(a, s)) : (n = U8(n, i), s = r(s, a)), function(o) { + return i < n ? (n = z8(i, n), s = r(a, s)) : (n = z8(n, i), s = r(s, a)), function(o) { return s(n(o)); }; } -function kwt(t, e, r) { +function wwt(t, e, r) { var n = Math.min(t.length, e.length) - 1, i = new Array(n), s = new Array(n), a = -1; for (t[n] < t[0] && (t = t.slice().reverse(), e = e.slice().reverse()); ++a < n; ) - i[a] = U8(t[a], t[a + 1]), s[a] = r(e[a], e[a + 1]); + i[a] = z8(t[a], t[a + 1]), s[a] = r(e[a], e[a + 1]); return function(o) { - var l = pyt(t, o, 1, n) - 1; + var l = fyt(t, o, 1, n) - 1; return s[l](i[l](o)); }; } -function Ese(t, e) { +function Tse(t, e) { return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown()); } -function Swt() { - var t = iq, e = iq, r = PD, n, i, s, a = Pp, o, l, u; +function Owt() { + var t = tq, e = tq, r = DD, n, i, s, a = Pp, o, l, u; function h() { var d = Math.min(t.length, e.length); - return a !== Pp && (a = wwt(t[0], t[d - 1])), o = d > 2 ? kwt : Owt, l = u = null, f; + return a !== Pp && (a = bwt(t[0], t[d - 1])), o = d > 2 ? wwt : xwt, l = u = null, f; } function f(d) { return d == null || isNaN(d = +d) ? s : (l || (l = o(t.map(n), e, r)))(n(a(d))); @@ -38781,11 +38781,11 @@ function Swt() { return f.invert = function(d) { return a(i((u || (u = o(e, t.map(n), gl)))(d))); }, f.domain = function(d) { - return arguments.length ? (t = Array.from(d, xwt), h()) : t.slice(); + return arguments.length ? (t = Array.from(d, ywt), h()) : t.slice(); }, f.range = function(d) { return arguments.length ? (e = Array.from(d), h()) : e.slice(); }, f.rangeRound = function(d) { - return e = Array.from(d), r = zbt, h(); + return e = Array.from(d), r = Bbt, h(); }, f.clamp = function(d) { return arguments.length ? (a = d ? !0 : Pp, h()) : a !== Pp; }, f.interpolate = function(d) { @@ -38796,45 +38796,45 @@ function Swt() { return n = d, i = p, h(); }; } -function _se() { - return Swt()(Pp, Pp); +function Cse() { + return Owt()(Pp, Pp); } -function Twt(t, e, r, n) { - var i = A8(t, e, r), s; - switch (n = L3(n == null ? ",f" : n), n.type) { +function kwt(t, e, r, n) { + var i = E8(t, e, r), s; + switch (n = A3(n == null ? ",f" : n), n.type) { case "s": { var a = Math.max(Math.abs(t), Math.abs(e)); - return n.precision == null && !isNaN(s = vwt(i, a)) && (n.precision = s), Cse(n, a); + return n.precision == null && !isNaN(s = gwt(i, a)) && (n.precision = s), Sse(n, a); } case "": case "e": case "g": case "p": case "r": { - n.precision == null && !isNaN(s = ywt(i, Math.max(Math.abs(t), Math.abs(e)))) && (n.precision = s - (n.type === "e")); + n.precision == null && !isNaN(s = mwt(i, Math.max(Math.abs(t), Math.abs(e)))) && (n.precision = s - (n.type === "e")); break; } case "f": case "%": { - n.precision == null && !isNaN(s = mwt(i)) && (n.precision = s - (n.type === "%") * 2); + n.precision == null && !isNaN(s = pwt(i)) && (n.precision = s - (n.type === "%") * 2); break; } } - return Tse(n); + return kse(n); } -function Cwt(t) { +function Swt(t) { var e = t.domain; return t.ticks = function(r) { var n = e(); - return wyt(n[0], n[n.length - 1], r == null ? 10 : r); + return byt(n[0], n[n.length - 1], r == null ? 10 : r); }, t.tickFormat = function(r, n) { var i = e(); - return Twt(i[0], i[i.length - 1], r == null ? 10 : r, n); + return kwt(i[0], i[i.length - 1], r == null ? 10 : r, n); }, t.nice = function(r) { r == null && (r = 10); var n = e(), i = 0, s = n.length - 1, a = n[i], o = n[s], l, u, h = 10; for (o < a && (u = a, a = o, o = u, u = i, i = s, s = u); h-- > 0; ) { - if (u = _8(a, o, r), u === l) + if (u = C8(a, o, r), u === l) return n[i] = a, n[s] = o, e(n); if (u > 0) a = Math.floor(a / u) * u, o = Math.ceil(o / u) * u; @@ -38848,17 +38848,17 @@ function Cwt(t) { }, t; } function jg() { - var t = _se(); + var t = Cse(); return t.copy = function() { - return Ese(t, jg()); - }, MT.apply(t, arguments), Cwt(t); + return Tse(t, jg()); + }, LT.apply(t, arguments), Swt(t); } -function Ewt(t, e) { +function Twt(t, e) { t = t.slice(); var r = 0, n = t.length - 1, i = t[r], s = t[n], a; return s < i && (a = r, r = n, n = a, a = i, i = s, s = a), t[r] = e.floor(i), t[n] = e.ceil(s), t; } -const H6 = new Date(), X6 = new Date(); +const W6 = new Date(), G6 = new Date(); function Pi(t, e, r, n) { function i(s) { return t(s = arguments.length === 0 ? new Date() : new Date(+s)), s; @@ -38889,7 +38889,7 @@ function Pi(t, e, r, n) { for (; --o >= 0; ) for (; e(a, 1), !s(a); ) ; - }), r && (i.count = (s, a) => (H6.setTime(+s), X6.setTime(+a), t(H6), t(X6), Math.floor(r(H6, X6))), i.every = (s) => (s = Math.floor(s), !isFinite(s) || !(s > 0) ? null : s > 1 ? i.filter(n ? (a) => n(a) % s === 0 : (a) => i.count(0, a) % s === 0) : i)), i; + }), r && (i.count = (s, a) => (W6.setTime(+s), G6.setTime(+a), t(W6), t(G6), Math.floor(r(W6, G6))), i.every = (s) => (s = Math.floor(s), !isFinite(s) || !(s > 0) ? null : s > 1 ? i.filter(n ? (a) => n(a) % s === 0 : (a) => i.count(0, a) % s === 0) : i)), i; } const Kg = Pi(() => { }, (t, e) => { @@ -38901,7 +38901,7 @@ Kg.every = (t) => (t = Math.floor(t), !isFinite(t) || !(t > 0) ? null : t > 1 ? e.setTime(+e + r * t); }, (e, r) => (r - e) / t) : Kg); Kg.range; -const wu = 1e3, No = wu * 60, Ou = No * 60, qu = Ou * 24, VD = qu * 7, sq = qu * 30, Z6 = qu * 365, zh = Pi((t) => { +const wu = 1e3, No = wu * 60, Ou = No * 60, qu = Ou * 24, BD = qu * 7, rq = qu * 30, H6 = qu * 365, zh = Pi((t) => { t.setTime(t - t.getMilliseconds()); }, (t, e) => { t.setTime(+t + e * wu); @@ -38913,24 +38913,24 @@ const u2 = Pi((t) => { t.setTime(+t + e * No); }, (t, e) => (e - t) / No, (t) => t.getMinutes()); u2.range; -const Ase = Pi((t) => { +const Ese = Pi((t) => { t.setUTCSeconds(0, 0); }, (t, e) => { t.setTime(+t + e * No); }, (t, e) => (e - t) / No, (t) => t.getUTCMinutes()); -Ase.range; +Ese.range; const h2 = Pi((t) => { t.setTime(t - t.getMilliseconds() - t.getSeconds() * wu - t.getMinutes() * No); }, (t, e) => { t.setTime(+t + e * Ou); }, (t, e) => (e - t) / Ou, (t) => t.getHours()); h2.range; -const Lse = Pi((t) => { +const _se = Pi((t) => { t.setUTCMinutes(0, 0, 0); }, (t, e) => { t.setTime(+t + e * Ou); }, (t, e) => (e - t) / Ou, (t) => t.getUTCHours()); -Lse.range; +_se.range; const o0 = Pi( (t) => t.setHours(0, 0, 0, 0), (t, e) => t.setDate(t.getDate() + e), @@ -38938,60 +38938,60 @@ const o0 = Pi( (t) => t.getDate() - 1 ); o0.range; -const UD = Pi((t) => { +const FD = Pi((t) => { t.setUTCHours(0, 0, 0, 0); }, (t, e) => { t.setUTCDate(t.getUTCDate() + e); }, (t, e) => (e - t) / qu, (t) => t.getUTCDate() - 1); -UD.range; -const Rse = Pi((t) => { +FD.range; +const Ase = Pi((t) => { t.setUTCHours(0, 0, 0, 0); }, (t, e) => { t.setUTCDate(t.getUTCDate() + e); }, (t, e) => (e - t) / qu, (t) => Math.floor(t / qu)); -Rse.range; +Ase.range; function q0(t) { return Pi((e) => { e.setDate(e.getDate() - (e.getDay() + 7 - t) % 7), e.setHours(0, 0, 0, 0); }, (e, r) => { e.setDate(e.getDate() + r * 7); - }, (e, r) => (r - e - (r.getTimezoneOffset() - e.getTimezoneOffset()) * No) / VD); + }, (e, r) => (r - e - (r.getTimezoneOffset() - e.getTimezoneOffset()) * No) / BD); } -const hx = q0(0), f2 = q0(1), Mse = q0(2), Dse = q0(3), l0 = q0(4), Nse = q0(5), Ise = q0(6); +const hx = q0(0), f2 = q0(1), Lse = q0(2), Rse = q0(3), l0 = q0(4), Mse = q0(5), Dse = q0(6); hx.range; f2.range; +Lse.range; +Rse.range; +l0.range; Mse.range; Dse.range; -l0.range; -Nse.range; -Ise.range; function Y0(t) { return Pi((e) => { e.setUTCDate(e.getUTCDate() - (e.getUTCDay() + 7 - t) % 7), e.setUTCHours(0, 0, 0, 0); }, (e, r) => { e.setUTCDate(e.getUTCDate() + r * 7); - }, (e, r) => (r - e) / VD); + }, (e, r) => (r - e) / BD); } -const qD = Y0(0), R3 = Y0(1), _wt = Y0(2), Awt = Y0(3), Jg = Y0(4), Lwt = Y0(5), Rwt = Y0(6); -qD.range; -R3.range; +const zD = Y0(0), L3 = Y0(1), Cwt = Y0(2), Ewt = Y0(3), Jg = Y0(4), _wt = Y0(5), Awt = Y0(6); +zD.range; +L3.range; +Cwt.range; +Ewt.range; +Jg.range; _wt.range; Awt.range; -Jg.range; -Lwt.range; -Rwt.range; const d2 = Pi((t) => { t.setDate(1), t.setHours(0, 0, 0, 0); }, (t, e) => { t.setMonth(t.getMonth() + e); }, (t, e) => e.getMonth() - t.getMonth() + (e.getFullYear() - t.getFullYear()) * 12, (t) => t.getMonth()); d2.range; -const Pse = Pi((t) => { +const Nse = Pi((t) => { t.setUTCDate(1), t.setUTCHours(0, 0, 0, 0); }, (t, e) => { t.setUTCMonth(t.getUTCMonth() + e); }, (t, e) => e.getUTCMonth() - t.getUTCMonth() + (e.getUTCFullYear() - t.getUTCFullYear()) * 12, (t) => t.getUTCMonth()); -Pse.range; +Nse.range; const Yu = Pi((t) => { t.setMonth(0, 1), t.setHours(0, 0, 0, 0); }, (t, e) => { @@ -39014,7 +39014,7 @@ vf.every = (t) => !isFinite(t = Math.floor(t)) || !(t > 0) ? null : Pi((e) => { e.setUTCFullYear(e.getUTCFullYear() + r * t); }); vf.range; -function $se(t, e, r, n, i, s) { +function Ise(t, e, r, n, i, s) { const a = [ [zh, 1, wu], [zh, 5, 5 * wu], @@ -39030,10 +39030,10 @@ function $se(t, e, r, n, i, s) { [i, 12, 12 * Ou], [n, 1, qu], [n, 2, 2 * qu], - [r, 1, VD], - [e, 1, sq], - [e, 3, 3 * sq], - [t, 1, Z6] + [r, 1, BD], + [e, 1, rq], + [e, 3, 3 * rq], + [t, 1, H6] ]; function o(u, h, f) { const d = h < u; @@ -39042,26 +39042,26 @@ function $se(t, e, r, n, i, s) { return d ? g.reverse() : g; } function l(u, h, f) { - const d = Math.abs(h - u) / f, p = DD(([, , v]) => v).right(a, d); + const d = Math.abs(h - u) / f, p = LD(([, , v]) => v).right(a, d); if (p === a.length) - return t.every(A8(u / Z6, h / Z6, f)); + return t.every(E8(u / H6, h / H6, f)); if (p === 0) - return Kg.every(Math.max(A8(u, h, f), 1)); + return Kg.every(Math.max(E8(u, h, f), 1)); const [g, m] = a[d / a[p - 1][2] < a[p][2] / d ? p - 1 : p]; return g.every(m); } return [o, l]; } -$se(vf, Pse, qD, Rse, Lse, Ase); -const [Mwt, Dwt] = $se(Yu, d2, hx, o0, h2, u2); -function j6(t) { +Ise(vf, Nse, zD, Ase, _se, Ese); +const [Lwt, Rwt] = Ise(Yu, d2, hx, o0, h2, u2); +function X6(t) { if (0 <= t.y && t.y < 100) { var e = new Date(-1, t.m, t.d, t.H, t.M, t.S, t.L); return e.setFullYear(t.y), e; } return new Date(t.y, t.m, t.d, t.H, t.M, t.S, t.L); } -function K6(t) { +function Z6(t) { if (0 <= t.y && t.y < 100) { var e = new Date(Date.UTC(-1, t.m, t.d, t.H, t.M, t.S, t.L)); return e.setUTCFullYear(t.y), e; @@ -39071,113 +39071,113 @@ function K6(t) { function Qm(t, e, r) { return { y: t, m: e, d: r, H: 0, M: 0, S: 0, L: 0 }; } -function Nwt(t) { +function Mwt(t) { var e = t.dateTime, r = t.date, n = t.time, i = t.periods, s = t.days, a = t.shortDays, o = t.months, l = t.shortMonths, u = Wm(i), h = Gm(i), f = Wm(s), d = Gm(s), p = Wm(a), g = Gm(a), m = Wm(o), v = Gm(o), y = Wm(l), b = Gm(l), w = { a: I, A: D, b: P, B: F, c: null, - d: hq, - e: hq, - f: nOt, - g: dOt, - G: gOt, - H: eOt, - I: tOt, - j: rOt, - L: Bse, - m: iOt, - M: sOt, + d: lq, + e: lq, + f: tOt, + g: hOt, + G: dOt, + H: Kwt, + I: Jwt, + j: eOt, + L: Pse, + m: rOt, + M: nOt, p: B, q: V, - Q: pq, - s: gq, - S: aOt, - u: oOt, - U: lOt, - V: cOt, - w: uOt, - W: hOt, + Q: hq, + s: fq, + S: iOt, + u: sOt, + U: aOt, + V: oOt, + w: lOt, + W: cOt, x: null, X: null, - y: fOt, - Y: pOt, - Z: mOt, - "%": dq + y: uOt, + Y: fOt, + Z: pOt, + "%": uq }, O = { a: Y, A: G, b: ee, B: Q, c: null, - d: fq, - e: fq, - f: xOt, - g: LOt, - G: MOt, - H: vOt, - I: yOt, - j: bOt, - L: zse, - m: wOt, - M: OOt, + d: cq, + e: cq, + f: yOt, + g: _Ot, + G: LOt, + H: gOt, + I: mOt, + j: vOt, + L: Bse, + m: bOt, + M: xOt, p: ne, q: ie, - Q: pq, - s: gq, - S: kOt, - u: SOt, - U: TOt, - V: COt, - w: EOt, - W: _Ot, + Q: hq, + s: fq, + S: wOt, + u: OOt, + U: kOt, + V: SOt, + w: TOt, + W: COt, x: null, X: null, - y: AOt, - Y: ROt, - Z: DOt, - "%": dq + y: EOt, + Y: AOt, + Z: ROt, + "%": uq }, S = { a: R, A: _, b: A, B: $, c: k, - d: cq, - e: cq, - f: Zwt, - g: lq, - G: oq, - H: uq, - I: uq, - j: Wwt, - L: Xwt, - m: Qwt, - M: Gwt, + d: aq, + e: aq, + f: Hwt, + g: sq, + G: iq, + H: oq, + I: oq, + j: Ywt, + L: Gwt, + m: qwt, + M: Qwt, p: E, - q: Ywt, - Q: Kwt, - s: Jwt, - S: Hwt, - u: Fwt, - U: zwt, - V: Vwt, - w: Bwt, - W: Uwt, + q: Uwt, + Q: Zwt, + s: jwt, + S: Wwt, + u: $wt, + U: Bwt, + V: Fwt, + w: Pwt, + W: zwt, x: N, X: M, - y: lq, - Y: oq, - Z: qwt, - "%": jwt + y: sq, + Y: iq, + Z: Vwt, + "%": Xwt }; w.x = C(r, w), w.X = C(n, w), w.c = C(e, w), O.x = C(r, O), O.X = C(n, O), O.c = C(e, O); function C(U, Z) { return function(W) { var j = [], ae = -1, se = 0, K = U.length, _e, ce, Ee; for (W instanceof Date || (W = new Date(+W)); ++ae < K; ) - U.charCodeAt(ae) === 37 && (j.push(U.slice(se, ae)), (ce = aq[_e = U.charAt(++ae)]) != null ? _e = U.charAt(++ae) : ce = _e === "e" ? " " : "0", (Ee = Z[_e]) && (_e = Ee(W, ce)), j.push(_e), se = ae + 1); + U.charCodeAt(ae) === 37 && (j.push(U.slice(se, ae)), (ce = nq[_e = U.charAt(++ae)]) != null ? _e = U.charAt(++ae) : ce = _e === "e" ? " " : "0", (Ee = Z[_e]) && (_e = Ee(W, ce)), j.push(_e), se = ae + 1); return j.push(U.slice(se, ae)), j.join(""); }; } @@ -39193,10 +39193,10 @@ function Nwt(t) { if (Z && !("Z" in j) && (j.Z = 0), "p" in j && (j.H = j.H % 12 + j.p * 12), j.m === void 0 && (j.m = "q" in j ? j.q : 0), "V" in j) { if (j.V < 1 || j.V > 53) return null; - "w" in j || (j.w = 1), "Z" in j ? (se = K6(Qm(j.y, 0, 1)), K = se.getUTCDay(), se = K > 4 || K === 0 ? R3.ceil(se) : R3(se), se = UD.offset(se, (j.V - 1) * 7), j.y = se.getUTCFullYear(), j.m = se.getUTCMonth(), j.d = se.getUTCDate() + (j.w + 6) % 7) : (se = j6(Qm(j.y, 0, 1)), K = se.getDay(), se = K > 4 || K === 0 ? f2.ceil(se) : f2(se), se = o0.offset(se, (j.V - 1) * 7), j.y = se.getFullYear(), j.m = se.getMonth(), j.d = se.getDate() + (j.w + 6) % 7); + "w" in j || (j.w = 1), "Z" in j ? (se = Z6(Qm(j.y, 0, 1)), K = se.getUTCDay(), se = K > 4 || K === 0 ? L3.ceil(se) : L3(se), se = FD.offset(se, (j.V - 1) * 7), j.y = se.getUTCFullYear(), j.m = se.getUTCMonth(), j.d = se.getUTCDate() + (j.w + 6) % 7) : (se = X6(Qm(j.y, 0, 1)), K = se.getDay(), se = K > 4 || K === 0 ? f2.ceil(se) : f2(se), se = o0.offset(se, (j.V - 1) * 7), j.y = se.getFullYear(), j.m = se.getMonth(), j.d = se.getDate() + (j.w + 6) % 7); } else - ("W" in j || "U" in j) && ("w" in j || (j.w = "u" in j ? j.u % 7 : "W" in j ? 1 : 0), K = "Z" in j ? K6(Qm(j.y, 0, 1)).getUTCDay() : j6(Qm(j.y, 0, 1)).getDay(), j.m = 0, j.d = "W" in j ? (j.w + 6) % 7 + j.W * 7 - (K + 5) % 7 : j.w + j.U * 7 - (K + 6) % 7); - return "Z" in j ? (j.H += j.Z / 100 | 0, j.M += j.Z % 100, K6(j)) : j6(j); + ("W" in j || "U" in j) && ("w" in j || (j.w = "u" in j ? j.u % 7 : "W" in j ? 1 : 0), K = "Z" in j ? Z6(Qm(j.y, 0, 1)).getUTCDay() : X6(Qm(j.y, 0, 1)).getDay(), j.m = 0, j.d = "W" in j ? (j.w + 6) % 7 + j.W * 7 - (K + 5) % 7 : j.w + j.U * 7 - (K + 6) % 7); + return "Z" in j ? (j.H += j.Z / 100 | 0, j.M += j.Z % 100, Z6(j)) : X6(j); }; } function L(U, Z, W, j) { @@ -39204,7 +39204,7 @@ function Nwt(t) { if (j >= K) return -1; if (_e = Z.charCodeAt(ae++), _e === 37) { - if (_e = Z.charAt(ae++), ce = S[_e in aq ? Z.charAt(ae++) : _e], !ce || (j = ce(U, W, j)) < 0) + if (_e = Z.charAt(ae++), ce = S[_e in nq ? Z.charAt(ae++) : _e], !ce || (j = ce(U, W, j)) < 0) return -1; } else if (_e != W.charCodeAt(j++)) return -1; @@ -39303,238 +39303,238 @@ function Nwt(t) { } }; } -var aq = { "-": "", _: " ", 0: "0" }, ji = /^\s*\d+/, Iwt = /^%/, Pwt = /[\\^$*+?|[\]().{}]/g; +var nq = { "-": "", _: " ", 0: "0" }, ji = /^\s*\d+/, Dwt = /^%/, Nwt = /[\\^$*+?|[\]().{}]/g; function Nr(t, e, r) { var n = t < 0 ? "-" : "", i = (n ? -t : t) + "", s = i.length; return n + (s < r ? new Array(r - s + 1).join(e) + i : i); } -function $wt(t) { - return t.replace(Pwt, "\\$&"); +function Iwt(t) { + return t.replace(Nwt, "\\$&"); } function Wm(t) { - return new RegExp("^(?:" + t.map($wt).join("|") + ")", "i"); + return new RegExp("^(?:" + t.map(Iwt).join("|") + ")", "i"); } function Gm(t) { return new Map(t.map((e, r) => [e.toLowerCase(), r])); } -function Bwt(t, e, r) { +function Pwt(t, e, r) { var n = ji.exec(e.slice(r, r + 1)); return n ? (t.w = +n[0], r + n[0].length) : -1; } -function Fwt(t, e, r) { +function $wt(t, e, r) { var n = ji.exec(e.slice(r, r + 1)); return n ? (t.u = +n[0], r + n[0].length) : -1; } -function zwt(t, e, r) { +function Bwt(t, e, r) { var n = ji.exec(e.slice(r, r + 2)); return n ? (t.U = +n[0], r + n[0].length) : -1; } -function Vwt(t, e, r) { +function Fwt(t, e, r) { var n = ji.exec(e.slice(r, r + 2)); return n ? (t.V = +n[0], r + n[0].length) : -1; } -function Uwt(t, e, r) { +function zwt(t, e, r) { var n = ji.exec(e.slice(r, r + 2)); return n ? (t.W = +n[0], r + n[0].length) : -1; } -function oq(t, e, r) { +function iq(t, e, r) { var n = ji.exec(e.slice(r, r + 4)); return n ? (t.y = +n[0], r + n[0].length) : -1; } -function lq(t, e, r) { +function sq(t, e, r) { var n = ji.exec(e.slice(r, r + 2)); return n ? (t.y = +n[0] + (+n[0] > 68 ? 1900 : 2e3), r + n[0].length) : -1; } -function qwt(t, e, r) { +function Vwt(t, e, r) { var n = /^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(r, r + 6)); return n ? (t.Z = n[1] ? 0 : -(n[2] + (n[3] || "00")), r + n[0].length) : -1; } -function Ywt(t, e, r) { +function Uwt(t, e, r) { var n = ji.exec(e.slice(r, r + 1)); return n ? (t.q = n[0] * 3 - 3, r + n[0].length) : -1; } -function Qwt(t, e, r) { +function qwt(t, e, r) { var n = ji.exec(e.slice(r, r + 2)); return n ? (t.m = n[0] - 1, r + n[0].length) : -1; } -function cq(t, e, r) { +function aq(t, e, r) { var n = ji.exec(e.slice(r, r + 2)); return n ? (t.d = +n[0], r + n[0].length) : -1; } -function Wwt(t, e, r) { +function Ywt(t, e, r) { var n = ji.exec(e.slice(r, r + 3)); return n ? (t.m = 0, t.d = +n[0], r + n[0].length) : -1; } -function uq(t, e, r) { +function oq(t, e, r) { var n = ji.exec(e.slice(r, r + 2)); return n ? (t.H = +n[0], r + n[0].length) : -1; } -function Gwt(t, e, r) { +function Qwt(t, e, r) { var n = ji.exec(e.slice(r, r + 2)); return n ? (t.M = +n[0], r + n[0].length) : -1; } -function Hwt(t, e, r) { +function Wwt(t, e, r) { var n = ji.exec(e.slice(r, r + 2)); return n ? (t.S = +n[0], r + n[0].length) : -1; } -function Xwt(t, e, r) { +function Gwt(t, e, r) { var n = ji.exec(e.slice(r, r + 3)); return n ? (t.L = +n[0], r + n[0].length) : -1; } -function Zwt(t, e, r) { +function Hwt(t, e, r) { var n = ji.exec(e.slice(r, r + 6)); return n ? (t.L = Math.floor(n[0] / 1e3), r + n[0].length) : -1; } -function jwt(t, e, r) { - var n = Iwt.exec(e.slice(r, r + 1)); +function Xwt(t, e, r) { + var n = Dwt.exec(e.slice(r, r + 1)); return n ? r + n[0].length : -1; } -function Kwt(t, e, r) { +function Zwt(t, e, r) { var n = ji.exec(e.slice(r)); return n ? (t.Q = +n[0], r + n[0].length) : -1; } -function Jwt(t, e, r) { +function jwt(t, e, r) { var n = ji.exec(e.slice(r)); return n ? (t.s = +n[0], r + n[0].length) : -1; } -function hq(t, e) { +function lq(t, e) { return Nr(t.getDate(), e, 2); } -function eOt(t, e) { +function Kwt(t, e) { return Nr(t.getHours(), e, 2); } -function tOt(t, e) { +function Jwt(t, e) { return Nr(t.getHours() % 12 || 12, e, 2); } -function rOt(t, e) { +function eOt(t, e) { return Nr(1 + o0.count(Yu(t), t), e, 3); } -function Bse(t, e) { +function Pse(t, e) { return Nr(t.getMilliseconds(), e, 3); } -function nOt(t, e) { - return Bse(t, e) + "000"; +function tOt(t, e) { + return Pse(t, e) + "000"; } -function iOt(t, e) { +function rOt(t, e) { return Nr(t.getMonth() + 1, e, 2); } -function sOt(t, e) { +function nOt(t, e) { return Nr(t.getMinutes(), e, 2); } -function aOt(t, e) { +function iOt(t, e) { return Nr(t.getSeconds(), e, 2); } -function oOt(t) { +function sOt(t) { var e = t.getDay(); return e === 0 ? 7 : e; } -function lOt(t, e) { +function aOt(t, e) { return Nr(hx.count(Yu(t) - 1, t), e, 2); } -function Fse(t) { +function $se(t) { var e = t.getDay(); return e >= 4 || e === 0 ? l0(t) : l0.ceil(t); } -function cOt(t, e) { - return t = Fse(t), Nr(l0.count(Yu(t), t) + (Yu(t).getDay() === 4), e, 2); +function oOt(t, e) { + return t = $se(t), Nr(l0.count(Yu(t), t) + (Yu(t).getDay() === 4), e, 2); } -function uOt(t) { +function lOt(t) { return t.getDay(); } -function hOt(t, e) { +function cOt(t, e) { return Nr(f2.count(Yu(t) - 1, t), e, 2); } -function fOt(t, e) { +function uOt(t, e) { return Nr(t.getFullYear() % 100, e, 2); } -function dOt(t, e) { - return t = Fse(t), Nr(t.getFullYear() % 100, e, 2); +function hOt(t, e) { + return t = $se(t), Nr(t.getFullYear() % 100, e, 2); } -function pOt(t, e) { +function fOt(t, e) { return Nr(t.getFullYear() % 1e4, e, 4); } -function gOt(t, e) { +function dOt(t, e) { var r = t.getDay(); return t = r >= 4 || r === 0 ? l0(t) : l0.ceil(t), Nr(t.getFullYear() % 1e4, e, 4); } -function mOt(t) { +function pOt(t) { var e = t.getTimezoneOffset(); return (e > 0 ? "-" : (e *= -1, "+")) + Nr(e / 60 | 0, "0", 2) + Nr(e % 60, "0", 2); } -function fq(t, e) { +function cq(t, e) { return Nr(t.getUTCDate(), e, 2); } -function vOt(t, e) { +function gOt(t, e) { return Nr(t.getUTCHours(), e, 2); } -function yOt(t, e) { +function mOt(t, e) { return Nr(t.getUTCHours() % 12 || 12, e, 2); } -function bOt(t, e) { - return Nr(1 + UD.count(vf(t), t), e, 3); +function vOt(t, e) { + return Nr(1 + FD.count(vf(t), t), e, 3); } -function zse(t, e) { +function Bse(t, e) { return Nr(t.getUTCMilliseconds(), e, 3); } -function xOt(t, e) { - return zse(t, e) + "000"; +function yOt(t, e) { + return Bse(t, e) + "000"; } -function wOt(t, e) { +function bOt(t, e) { return Nr(t.getUTCMonth() + 1, e, 2); } -function OOt(t, e) { +function xOt(t, e) { return Nr(t.getUTCMinutes(), e, 2); } -function kOt(t, e) { +function wOt(t, e) { return Nr(t.getUTCSeconds(), e, 2); } -function SOt(t) { +function OOt(t) { var e = t.getUTCDay(); return e === 0 ? 7 : e; } -function TOt(t, e) { - return Nr(qD.count(vf(t) - 1, t), e, 2); +function kOt(t, e) { + return Nr(zD.count(vf(t) - 1, t), e, 2); } -function Vse(t) { +function Fse(t) { var e = t.getUTCDay(); return e >= 4 || e === 0 ? Jg(t) : Jg.ceil(t); } -function COt(t, e) { - return t = Vse(t), Nr(Jg.count(vf(t), t) + (vf(t).getUTCDay() === 4), e, 2); +function SOt(t, e) { + return t = Fse(t), Nr(Jg.count(vf(t), t) + (vf(t).getUTCDay() === 4), e, 2); } -function EOt(t) { +function TOt(t) { return t.getUTCDay(); } -function _Ot(t, e) { - return Nr(R3.count(vf(t) - 1, t), e, 2); +function COt(t, e) { + return Nr(L3.count(vf(t) - 1, t), e, 2); } -function AOt(t, e) { +function EOt(t, e) { return Nr(t.getUTCFullYear() % 100, e, 2); } -function LOt(t, e) { - return t = Vse(t), Nr(t.getUTCFullYear() % 100, e, 2); +function _Ot(t, e) { + return t = Fse(t), Nr(t.getUTCFullYear() % 100, e, 2); } -function ROt(t, e) { +function AOt(t, e) { return Nr(t.getUTCFullYear() % 1e4, e, 4); } -function MOt(t, e) { +function LOt(t, e) { var r = t.getUTCDay(); return t = r >= 4 || r === 0 ? Jg(t) : Jg.ceil(t), Nr(t.getUTCFullYear() % 1e4, e, 4); } -function DOt() { +function ROt() { return "+0000"; } -function dq() { +function uq() { return "%"; } -function pq(t) { +function hq(t) { return +t; } -function gq(t) { +function fq(t) { return Math.floor(+t / 1e3); } -var fp, M3; -NOt({ +var fp, R3; +MOt({ dateTime: "%x, %X", date: "%-m/%-d/%Y", time: "%-I:%M:%S %p", @@ -39544,24 +39544,24 @@ NOt({ months: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"], shortMonths: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"] }); -function NOt(t) { - return fp = Nwt(t), M3 = fp.format, fp.parse, fp.utcFormat, fp.utcParse, fp; +function MOt(t) { + return fp = Mwt(t), R3 = fp.format, fp.parse, fp.utcFormat, fp.utcParse, fp; } -function IOt(t) { +function DOt(t) { return new Date(t); } -function POt(t) { +function NOt(t) { return t instanceof Date ? +t : +new Date(+t); } -function Use(t, e, r, n, i, s, a, o, l, u) { - var h = _se(), f = h.invert, d = h.domain, p = u(".%L"), g = u(":%S"), m = u("%I:%M"), v = u("%I %p"), y = u("%a %d"), b = u("%b %d"), w = u("%B"), O = u("%Y"); +function zse(t, e, r, n, i, s, a, o, l, u) { + var h = Cse(), f = h.invert, d = h.domain, p = u(".%L"), g = u(":%S"), m = u("%I:%M"), v = u("%I %p"), y = u("%a %d"), b = u("%b %d"), w = u("%B"), O = u("%Y"); function S(C) { return (l(C) < C ? p : o(C) < C ? g : a(C) < C ? m : s(C) < C ? v : n(C) < C ? i(C) < C ? y : b : r(C) < C ? w : O)(C); } return h.invert = function(C) { return new Date(f(C)); }, h.domain = function(C) { - return arguments.length ? d(Array.from(C, POt)) : d().map(IOt); + return arguments.length ? d(Array.from(C, NOt)) : d().map(DOt); }, h.ticks = function(C) { var T = d(); return t(T[0], T[T.length - 1], C == null ? 10 : C); @@ -39569,33 +39569,33 @@ function Use(t, e, r, n, i, s, a, o, l, u) { return T == null ? S : u(T); }, h.nice = function(C) { var T = d(); - return (!C || typeof C.range != "function") && (C = e(T[0], T[T.length - 1], C == null ? 10 : C)), C ? d(Ewt(T, C)) : h; + return (!C || typeof C.range != "function") && (C = e(T[0], T[T.length - 1], C == null ? 10 : C)), C ? d(Twt(T, C)) : h; }, h.copy = function() { - return Ese(h, Use(t, e, r, n, i, s, a, o, l, u)); + return Tse(h, zse(t, e, r, n, i, s, a, o, l, u)); }, h; } -function $Ot() { - return MT.apply(Use(Mwt, Dwt, Yu, d2, hx, o0, h2, u2, zh, M3).domain([new Date(2e3, 0, 1), new Date(2e3, 0, 2)]), arguments); +function IOt() { + return LT.apply(zse(Lwt, Rwt, Yu, d2, hx, o0, h2, u2, zh, R3).domain([new Date(2e3, 0, 1), new Date(2e3, 0, 2)]), arguments); } -function BOt(t) { +function POt(t) { for (var e = t.length / 6 | 0, r = new Array(e), n = 0; n < e; ) r[n] = "#" + t.slice(n * 6, ++n * 6); return r; } -const FOt = BOt("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab"); +const $Ot = POt("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab"); function Kn(t) { return function() { return t; }; } -const mq = Math.abs, ks = Math.atan2, td = Math.cos, zOt = Math.max, J6 = Math.min, tc = Math.sin, $p = Math.sqrt, Cs = 1e-12, p2 = Math.PI, D3 = p2 / 2, I4 = 2 * p2; -function VOt(t) { +const dq = Math.abs, ks = Math.atan2, td = Math.cos, BOt = Math.max, j6 = Math.min, tc = Math.sin, $p = Math.sqrt, Cs = 1e-12, p2 = Math.PI, M3 = p2 / 2, N4 = 2 * p2; +function FOt(t) { return t > 1 ? 0 : t < -1 ? p2 : Math.acos(t); } -function vq(t) { - return t >= 1 ? D3 : t <= -1 ? -D3 : Math.asin(t); +function pq(t) { + return t >= 1 ? M3 : t <= -1 ? -M3 : Math.asin(t); } -function qse(t) { +function Vse(t) { let e = 3; return t.digits = function(r) { if (!arguments.length) @@ -39609,30 +39609,30 @@ function qse(t) { e = n; } return t; - }, () => new owt(e); + }, () => new swt(e); } -function UOt(t) { +function zOt(t) { return t.innerRadius; } -function qOt(t) { +function VOt(t) { return t.outerRadius; } -function YOt(t) { +function UOt(t) { return t.startAngle; } -function QOt(t) { +function qOt(t) { return t.endAngle; } -function WOt(t) { +function YOt(t) { return t && t.padAngle; } -function GOt(t, e, r, n, i, s, a, o) { +function QOt(t, e, r, n, i, s, a, o) { var l = r - t, u = n - e, h = a - i, f = o - s, d = f * l - h * u; if (!(d * d < Cs)) return d = (h * (e - s) - f * (t - i)) / d, [t + d * l, e + d * u]; } function Jw(t, e, r, n, i, s, a) { - var o = t - r, l = e - n, u = (a ? s : -s) / $p(o * o + l * l), h = u * l, f = -u * o, d = t + h, p = e + f, g = r + h, m = n + f, v = (d + g) / 2, y = (p + m) / 2, b = g - d, w = m - p, O = b * b + w * w, S = i - s, C = d * m - g * p, T = (w < 0 ? -1 : 1) * $p(zOt(0, S * S * O - C * C)), L = (C * w - b * T) / O, E = (-C * b - w * T) / O, R = (C * w + b * T) / O, _ = (-C * b + w * T) / O, A = L - v, $ = E - y, k = R - v, N = _ - y; + var o = t - r, l = e - n, u = (a ? s : -s) / $p(o * o + l * l), h = u * l, f = -u * o, d = t + h, p = e + f, g = r + h, m = n + f, v = (d + g) / 2, y = (p + m) / 2, b = g - d, w = m - p, O = b * b + w * w, S = i - s, C = d * m - g * p, T = (w < 0 ? -1 : 1) * $p(BOt(0, S * S * O - C * C)), L = (C * w - b * T) / O, E = (-C * b - w * T) / O, R = (C * w + b * T) / O, _ = (-C * b + w * T) / O, A = L - v, $ = E - y, k = R - v, N = _ - y; return A * A + $ * $ > k * k + N * N && (L = R, E = _), { cx: L, cy: E, @@ -39643,26 +39643,26 @@ function Jw(t, e, r, n, i, s, a) { }; } function e1() { - var t = UOt, e = qOt, r = Kn(0), n = null, i = YOt, s = QOt, a = WOt, o = null, l = qse(u); + var t = zOt, e = VOt, r = Kn(0), n = null, i = UOt, s = qOt, a = YOt, o = null, l = Vse(u); function u() { - var h, f, d = +t.apply(this, arguments), p = +e.apply(this, arguments), g = i.apply(this, arguments) - D3, m = s.apply(this, arguments) - D3, v = mq(m - g), y = m > g; + var h, f, d = +t.apply(this, arguments), p = +e.apply(this, arguments), g = i.apply(this, arguments) - M3, m = s.apply(this, arguments) - M3, v = dq(m - g), y = m > g; if (o || (o = h = l()), p < d && (f = p, p = d, d = f), !(p > Cs)) o.moveTo(0, 0); - else if (v > I4 - Cs) + else if (v > N4 - Cs) o.moveTo(p * td(g), p * tc(g)), o.arc(0, 0, p, g, m, !y), d > Cs && (o.moveTo(d * td(m), d * tc(m)), o.arc(0, 0, d, m, g, y)); else { - var b = g, w = m, O = g, S = m, C = v, T = v, L = a.apply(this, arguments) / 2, E = L > Cs && (n ? +n.apply(this, arguments) : $p(d * d + p * p)), R = J6(mq(p - d) / 2, +r.apply(this, arguments)), _ = R, A = R, $, k; + var b = g, w = m, O = g, S = m, C = v, T = v, L = a.apply(this, arguments) / 2, E = L > Cs && (n ? +n.apply(this, arguments) : $p(d * d + p * p)), R = j6(dq(p - d) / 2, +r.apply(this, arguments)), _ = R, A = R, $, k; if (E > Cs) { - var N = vq(E / d * tc(L)), M = vq(E / p * tc(L)); + var N = pq(E / d * tc(L)), M = pq(E / p * tc(L)); (C -= N * 2) > Cs ? (N *= y ? 1 : -1, O += N, S -= N) : (C = 0, O = S = (g + m) / 2), (T -= M * 2) > Cs ? (M *= y ? 1 : -1, b += M, w -= M) : (T = 0, b = w = (g + m) / 2); } var I = p * td(b), D = p * tc(b), P = d * td(S), F = d * tc(S); if (R > Cs) { var B = p * td(w), V = p * tc(w), Y = d * td(O), G = d * tc(O), ee; if (v < p2) - if (ee = GOt(I, D, Y, G, B, V, P, F)) { - var Q = I - ee[0], ne = D - ee[1], ie = B - ee[0], U = V - ee[1], Z = 1 / tc(VOt((Q * ie + ne * U) / ($p(Q * Q + ne * ne) * $p(ie * ie + U * U))) / 2), W = $p(ee[0] * ee[0] + ee[1] * ee[1]); - _ = J6(R, (d - W) / (Z - 1)), A = J6(R, (p - W) / (Z + 1)); + if (ee = QOt(I, D, Y, G, B, V, P, F)) { + var Q = I - ee[0], ne = D - ee[1], ie = B - ee[0], U = V - ee[1], Z = 1 / tc(FOt((Q * ie + ne * U) / ($p(Q * Q + ne * ne) * $p(ie * ie + U * U))) / 2), W = $p(ee[0] * ee[0] + ee[1] * ee[1]); + _ = j6(R, (d - W) / (Z - 1)), A = j6(R, (p - W) / (Z + 1)); } else _ = A = 0; } @@ -39692,13 +39692,13 @@ function e1() { return arguments.length ? (o = h == null ? null : h, u) : o; }, u; } -function Yse(t) { +function Use(t) { return typeof t == "object" && "length" in t ? t : Array.from(t); } -function Qse(t) { +function qse(t) { this._context = t; } -Qse.prototype = { +qse.prototype = { areaStart: function() { this._line = 0; }, @@ -39724,20 +39724,20 @@ Qse.prototype = { } } }; -function NT(t) { - return new Qse(t); +function MT(t) { + return new qse(t); } -function HOt(t) { +function WOt(t) { return t[0]; } -function XOt(t) { +function GOt(t) { return t[1]; } function yf(t, e) { - var r = Kn(!0), n = null, i = NT, s = null, a = qse(o); - t = typeof t == "function" ? t : t === void 0 ? HOt : Kn(t), e = typeof e == "function" ? e : e === void 0 ? XOt : Kn(e); + var r = Kn(!0), n = null, i = MT, s = null, a = Vse(o); + t = typeof t == "function" ? t : t === void 0 ? WOt : Kn(t), e = typeof e == "function" ? e : e === void 0 ? GOt : Kn(e); function o(l) { - var u, h = (l = Yse(l)).length, f, d = !1, p; + var u, h = (l = Use(l)).length, f, d = !1, p; for (n == null && (s = i(p = a())), u = 0; u <= h; ++u) !(u < h && r(f = l[u], u, l)) === d && ((d = !d) ? s.lineStart() : s.lineEnd()), d && s.point(+t(f, u, l), +e(f, u, l)); if (p) @@ -39755,16 +39755,16 @@ function yf(t, e) { return arguments.length ? (l == null ? n = s = null : s = i(n = l), o) : n; }, o; } -function ZOt(t, e) { +function HOt(t, e) { return e < t ? -1 : e > t ? 1 : e >= t ? 0 : NaN; } -function jOt(t) { +function XOt(t) { return t; } -function KOt() { - var t = jOt, e = ZOt, r = null, n = Kn(0), i = Kn(I4), s = Kn(0); +function ZOt() { + var t = XOt, e = HOt, r = null, n = Kn(0), i = Kn(N4), s = Kn(0); function a(o) { - var l, u = (o = Yse(o)).length, h, f, d = 0, p = new Array(u), g = new Array(u), m = +n.apply(this, arguments), v = Math.min(I4, Math.max(-I4, i.apply(this, arguments) - m)), y, b = Math.min(Math.abs(v) / u, s.apply(this, arguments)), w = b * (v < 0 ? -1 : 1), O; + var l, u = (o = Use(o)).length, h, f, d = 0, p = new Array(u), g = new Array(u), m = +n.apply(this, arguments), v = Math.min(N4, Math.max(-N4, i.apply(this, arguments) - m)), y, b = Math.min(Math.abs(v) / u, s.apply(this, arguments)), w = b * (v < 0 ? -1 : 1), O; for (l = 0; l < u; ++l) (O = g[p[l] = l] = +t(o[l], l, o)) > 0 && (d += O); for (e != null ? p.sort(function(S, C) { @@ -39796,7 +39796,7 @@ function KOt() { return arguments.length ? (s = typeof o == "function" ? o : Kn(+o), a) : s; }, a; } -class Wse { +class Yse { constructor(e, r) { this._context = e, this._x = r; } @@ -39828,15 +39828,15 @@ class Wse { this._x0 = e, this._y0 = r; } } -function JOt(t) { - return new Wse(t, !0); +function jOt(t) { + return new Yse(t, !0); } -function e4t(t) { - return new Wse(t, !1); +function KOt(t) { + return new Yse(t, !1); } function bf() { } -function N3(t, e, r) { +function D3(t, e, r) { t._context.bezierCurveTo( (2 * t._x0 + t._x1) / 3, (2 * t._y0 + t._y1) / 3, @@ -39846,10 +39846,10 @@ function N3(t, e, r) { (t._y0 + 4 * t._y1 + r) / 6 ); } -function IT(t) { +function DT(t) { this._context = t; } -IT.prototype = { +DT.prototype = { areaStart: function() { this._line = 0; }, @@ -39862,7 +39862,7 @@ IT.prototype = { lineEnd: function() { switch (this._point) { case 3: - N3(this, this._x1, this._y1); + D3(this, this._x1, this._y1); case 2: this._context.lineTo(this._x1, this._y1); break; @@ -39880,19 +39880,19 @@ IT.prototype = { case 2: this._point = 3, this._context.lineTo((5 * this._x0 + this._x1) / 6, (5 * this._y0 + this._y1) / 6); default: - N3(this, t, e); + D3(this, t, e); break; } this._x0 = this._x1, this._x1 = t, this._y0 = this._y1, this._y1 = e; } }; function j1(t) { - return new IT(t); + return new DT(t); } -function Gse(t) { +function Qse(t) { this._context = t; } -Gse.prototype = { +Qse.prototype = { areaStart: bf, areaEnd: bf, lineStart: function() { @@ -39926,19 +39926,19 @@ Gse.prototype = { 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); break; default: - N3(this, t, e); + D3(this, t, e); break; } this._x0 = this._x1, this._x1 = t, this._y0 = this._y1, this._y1 = e; } }; -function t4t(t) { - return new Gse(t); +function JOt(t) { + return new Qse(t); } -function Hse(t) { +function Wse(t) { this._context = t; } -Hse.prototype = { +Wse.prototype = { areaStart: function() { this._line = 0; }, @@ -39967,19 +39967,19 @@ Hse.prototype = { case 3: this._point = 4; default: - N3(this, t, e); + D3(this, t, e); break; } this._x0 = this._x1, this._x1 = t, this._y0 = this._y1, this._y1 = e; } }; -function r4t(t) { - return new Hse(t); +function e4t(t) { + return new Wse(t); } -function Xse(t, e) { - this._basis = new IT(t), this._beta = e; +function Gse(t, e) { + this._basis = new DT(t), this._beta = e; } -Xse.prototype = { +Gse.prototype = { lineStart: function() { this._x = [], this._y = [], this._basis.lineStart(); }, @@ -39997,15 +39997,15 @@ Xse.prototype = { this._x.push(+t), this._y.push(+e); } }; -const n4t = function t(e) { +const t4t = function t(e) { function r(n) { - return e === 1 ? new IT(n) : new Xse(n, e); + return e === 1 ? new DT(n) : new Gse(n, e); } return r.beta = function(n) { return t(+n); }, r; }(0.85); -function I3(t, e, r) { +function N3(t, e, r) { t._context.bezierCurveTo( t._x1 + t._k * (t._x2 - t._x0), t._y1 + t._k * (t._y2 - t._y0), @@ -40015,10 +40015,10 @@ function I3(t, e, r) { t._y2 ); } -function YD(t, e) { +function VD(t, e) { this._context = t, this._k = (1 - e) / 6; } -YD.prototype = { +VD.prototype = { areaStart: function() { this._line = 0; }, @@ -40034,7 +40034,7 @@ YD.prototype = { this._context.lineTo(this._x2, this._y2); break; case 3: - I3(this, this._x1, this._y1); + N3(this, this._x1, this._y1); break; } (this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line; @@ -40050,24 +40050,24 @@ YD.prototype = { case 2: this._point = 3; default: - I3(this, t, e); + N3(this, t, e); break; } this._x0 = this._x1, this._x1 = this._x2, this._x2 = t, this._y0 = this._y1, this._y1 = this._y2, this._y2 = e; } }; -const i4t = function t(e) { +const r4t = function t(e) { function r(n) { - return new YD(n, e); + return new VD(n, e); } return r.tension = function(n) { return t(+n); }, r; }(0); -function QD(t, e) { +function UD(t, e) { this._context = t, this._k = (1 - e) / 6; } -QD.prototype = { +UD.prototype = { areaStart: bf, areaEnd: bf, lineStart: function() { @@ -40101,24 +40101,24 @@ QD.prototype = { this._point = 3, this._x5 = t, this._y5 = e; break; default: - I3(this, t, e); + N3(this, t, e); break; } this._x0 = this._x1, this._x1 = this._x2, this._x2 = t, this._y0 = this._y1, this._y1 = this._y2, this._y2 = e; } }; -const s4t = function t(e) { +const n4t = function t(e) { function r(n) { - return new QD(n, e); + return new UD(n, e); } return r.tension = function(n) { return t(+n); }, r; }(0); -function WD(t, e) { +function qD(t, e) { this._context = t, this._k = (1 - e) / 6; } -WD.prototype = { +qD.prototype = { areaStart: function() { this._line = 0; }, @@ -40145,21 +40145,21 @@ WD.prototype = { case 3: this._point = 4; default: - I3(this, t, e); + N3(this, t, e); break; } this._x0 = this._x1, this._x1 = this._x2, this._x2 = t, this._y0 = this._y1, this._y1 = this._y2, this._y2 = e; } }; -const a4t = function t(e) { +const i4t = function t(e) { function r(n) { - return new WD(n, e); + return new qD(n, e); } return r.tension = function(n) { return t(+n); }, r; }(0); -function GD(t, e, r) { +function YD(t, e, r) { var n = t._x1, i = t._y1, s = t._x2, a = t._y2; if (t._l01_a > Cs) { var o = 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); @@ -40171,10 +40171,10 @@ function GD(t, e, r) { } t._context.bezierCurveTo(n, i, s, a, t._x2, t._y2); } -function Zse(t, e) { +function Hse(t, e) { this._context = t, this._alpha = e; } -Zse.prototype = { +Hse.prototype = { areaStart: function() { this._line = 0; }, @@ -40210,24 +40210,24 @@ Zse.prototype = { case 2: this._point = 3; default: - GD(this, t, e); + YD(this, t, e); break; } this._l01_a = this._l12_a, this._l12_a = this._l23_a, this._l01_2a = this._l12_2a, this._l12_2a = this._l23_2a, this._x0 = this._x1, this._x1 = this._x2, this._x2 = t, this._y0 = this._y1, this._y1 = this._y2, this._y2 = e; } }; -const o4t = function t(e) { +const s4t = function t(e) { function r(n) { - return e ? new Zse(n, e) : new YD(n, 0); + return e ? new Hse(n, e) : new VD(n, 0); } return r.alpha = function(n) { return t(+n); }, r; }(0.5); -function jse(t, e) { +function Xse(t, e) { this._context = t, this._alpha = e; } -jse.prototype = { +Xse.prototype = { areaStart: bf, areaEnd: bf, lineStart: function() { @@ -40265,24 +40265,24 @@ jse.prototype = { this._point = 3, this._x5 = t, this._y5 = e; break; default: - GD(this, t, e); + YD(this, t, e); break; } this._l01_a = this._l12_a, this._l12_a = this._l23_a, this._l01_2a = this._l12_2a, this._l12_2a = this._l23_2a, this._x0 = this._x1, this._x1 = this._x2, this._x2 = t, this._y0 = this._y1, this._y1 = this._y2, this._y2 = e; } }; -const l4t = function t(e) { +const a4t = function t(e) { function r(n) { - return e ? new jse(n, e) : new QD(n, 0); + return e ? new Xse(n, e) : new UD(n, 0); } return r.alpha = function(n) { return t(+n); }, r; }(0.5); -function Kse(t, e) { +function Zse(t, e) { this._context = t, this._alpha = e; } -Kse.prototype = { +Zse.prototype = { areaStart: function() { this._line = 0; }, @@ -40313,24 +40313,24 @@ Kse.prototype = { case 3: this._point = 4; default: - GD(this, t, e); + YD(this, t, e); break; } this._l01_a = this._l12_a, this._l12_a = this._l23_a, this._l01_2a = this._l12_2a, this._l12_2a = this._l23_2a, this._x0 = this._x1, this._x1 = this._x2, this._x2 = t, this._y0 = this._y1, this._y1 = this._y2, this._y2 = e; } }; -const c4t = function t(e) { +const o4t = function t(e) { function r(n) { - return e ? new Kse(n, e) : new WD(n, 0); + return e ? new Zse(n, e) : new qD(n, 0); } return r.alpha = function(n) { return t(+n); }, r; }(0.5); -function Jse(t) { +function jse(t) { this._context = t; } -Jse.prototype = { +jse.prototype = { areaStart: bf, areaEnd: bf, lineStart: function() { @@ -40343,28 +40343,28 @@ Jse.prototype = { t = +t, e = +e, this._point ? this._context.lineTo(t, e) : (this._point = 1, this._context.moveTo(t, e)); } }; -function u4t(t) { - return new Jse(t); +function l4t(t) { + return new jse(t); } -function yq(t) { +function gq(t) { return t < 0 ? -1 : 1; } -function bq(t, e, r) { +function mq(t, e, r) { var n = t._x1 - t._x0, i = e - t._x1, s = (t._y1 - t._y0) / (n || i < 0 && -0), a = (r - t._y1) / (i || n < 0 && -0), o = (s * i + a * n) / (n + i); - return (yq(s) + yq(a)) * Math.min(Math.abs(s), Math.abs(a), 0.5 * Math.abs(o)) || 0; + return (gq(s) + gq(a)) * Math.min(Math.abs(s), Math.abs(a), 0.5 * Math.abs(o)) || 0; } -function xq(t, e) { +function vq(t, e) { var r = t._x1 - t._x0; return r ? (3 * (t._y1 - t._y0) / r - e) / 2 : e; } -function e_(t, e, r) { +function K6(t, e, r) { var n = t._x0, i = t._y0, s = t._x1, a = t._y1, o = (s - n) / 3; t._context.bezierCurveTo(n + o, i + o * e, s - o, a - o * r, s, a); } -function P3(t) { +function I3(t) { this._context = t; } -P3.prototype = { +I3.prototype = { areaStart: function() { this._line = 0; }, @@ -40380,7 +40380,7 @@ P3.prototype = { this._context.lineTo(this._x1, this._y1); break; case 3: - e_(this, this._t0, xq(this, this._t0)); + K6(this, this._t0, vq(this, this._t0)); break; } (this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line; @@ -40396,26 +40396,26 @@ P3.prototype = { this._point = 2; break; case 2: - this._point = 3, e_(this, xq(this, r = bq(this, t, e)), r); + this._point = 3, K6(this, vq(this, r = mq(this, t, e)), r); break; default: - e_(this, this._t0, r = bq(this, t, e)); + K6(this, this._t0, r = mq(this, t, e)); break; } this._x0 = this._x1, this._x1 = t, this._y0 = this._y1, this._y1 = e, this._t0 = r; } } }; -function eae(t) { - this._context = new tae(t); +function Kse(t) { + this._context = new Jse(t); } -(eae.prototype = Object.create(P3.prototype)).point = function(t, e) { - P3.prototype.point.call(this, e, t); +(Kse.prototype = Object.create(I3.prototype)).point = function(t, e) { + I3.prototype.point.call(this, e, t); }; -function tae(t) { +function Jse(t) { this._context = t; } -tae.prototype = { +Jse.prototype = { moveTo: function(t, e) { this._context.moveTo(e, t); }, @@ -40429,16 +40429,16 @@ tae.prototype = { this._context.bezierCurveTo(e, t, n, r, s, i); } }; -function h4t(t) { - return new P3(t); +function c4t(t) { + return new I3(t); } -function f4t(t) { - return new eae(t); +function u4t(t) { + return new Kse(t); } -function rae(t) { +function eae(t) { this._context = t; } -rae.prototype = { +eae.prototype = { areaStart: function() { this._line = 0; }, @@ -40454,7 +40454,7 @@ rae.prototype = { if (this._line ? this._context.lineTo(t[0], e[0]) : this._context.moveTo(t[0], e[0]), r === 2) this._context.lineTo(t[1], e[1]); else - for (var n = wq(t), i = wq(e), s = 0, a = 1; a < r; ++s, ++a) + for (var n = yq(t), i = yq(e), s = 0, a = 1; a < r; ++s, ++a) this._context.bezierCurveTo(n[0][s], i[0][s], n[1][s], i[1][s], t[a], e[a]); (this._line || this._line !== 0 && r === 1) && this._context.closePath(), this._line = 1 - this._line, this._x = this._y = null; }, @@ -40462,7 +40462,7 @@ rae.prototype = { this._x.push(+t), this._y.push(+e); } }; -function wq(t) { +function yq(t) { var e, r = t.length - 1, n, i = new Array(r), s = new Array(r), a = new Array(r); for (i[0] = 0, s[0] = 2, a[0] = t[0] + 2 * t[1], e = 1; e < r - 1; ++e) i[e] = 1, s[e] = 4, a[e] = 4 * t[e] + 2 * t[e + 1]; @@ -40474,13 +40474,13 @@ function wq(t) { s[e] = 2 * t[e + 1] - i[e + 1]; return [i, s]; } -function d4t(t) { - return new rae(t); +function h4t(t) { + return new eae(t); } -function PT(t, e) { +function NT(t, e) { this._context = t, this._t = e; } -PT.prototype = { +NT.prototype = { areaStart: function() { this._line = 0; }, @@ -40513,14 +40513,14 @@ PT.prototype = { this._x = t, this._y = e; } }; -function p4t(t) { - return new PT(t, 0.5); +function f4t(t) { + return new NT(t, 0.5); } -function g4t(t) { - return new PT(t, 0); +function d4t(t) { + return new NT(t, 0); } -function m4t(t) { - return new PT(t, 1); +function p4t(t) { + return new NT(t, 1); } function Bp(t, e, r) { this.k = t, this.x = e, this.y = r; @@ -40563,56 +40563,56 @@ Bp.prototype = { }; new Bp(1, 0, 0); Bp.prototype; -var v4t = typeof global == "object" && global && global.Object === Object && global; -const nae = v4t; -var y4t = typeof self == "object" && self && self.Object === Object && self, b4t = nae || y4t || Function("return this")(); -const Gl = b4t; -var x4t = Gl.Symbol; -const Go = x4t; -var iae = Object.prototype, w4t = iae.hasOwnProperty, O4t = iae.toString, Hm = Go ? Go.toStringTag : void 0; -function k4t(t) { - var e = w4t.call(t, Hm), r = t[Hm]; +var g4t = typeof global == "object" && global && global.Object === Object && global; +const tae = g4t; +var m4t = typeof self == "object" && self && self.Object === Object && self, v4t = tae || m4t || Function("return this")(); +const Gl = v4t; +var y4t = Gl.Symbol; +const Go = y4t; +var rae = Object.prototype, b4t = rae.hasOwnProperty, x4t = rae.toString, Hm = Go ? Go.toStringTag : void 0; +function w4t(t) { + var e = b4t.call(t, Hm), r = t[Hm]; try { t[Hm] = void 0; var n = !0; } catch { } - var i = O4t.call(t); + var i = x4t.call(t); return n && (e ? t[Hm] = r : delete t[Hm]), i; } -var S4t = Object.prototype, T4t = S4t.toString; -function C4t(t) { - return T4t.call(t); +var O4t = Object.prototype, k4t = O4t.toString; +function S4t(t) { + return k4t.call(t); } -var E4t = "[object Null]", _4t = "[object Undefined]", Oq = Go ? Go.toStringTag : void 0; +var T4t = "[object Null]", C4t = "[object Undefined]", bq = Go ? Go.toStringTag : void 0; function ah(t) { - return t == null ? t === void 0 ? _4t : E4t : Oq && Oq in Object(t) ? k4t(t) : C4t(t); + return t == null ? t === void 0 ? C4t : T4t : bq && bq in Object(t) ? w4t(t) : S4t(t); } function Pa(t) { var e = typeof t; return t != null && (e == "object" || e == "function"); } -var A4t = "[object AsyncFunction]", L4t = "[object Function]", R4t = "[object GeneratorFunction]", M4t = "[object Proxy]"; +var E4t = "[object AsyncFunction]", _4t = "[object Function]", A4t = "[object GeneratorFunction]", L4t = "[object Proxy]"; function Ho(t) { if (!Pa(t)) return !1; var e = ah(t); - return e == L4t || e == R4t || e == A4t || e == M4t; + return e == _4t || e == A4t || e == E4t || e == L4t; } -var D4t = Gl["__core-js_shared__"]; -const t_ = D4t; -var kq = function() { - var t = /[^.]+$/.exec(t_ && t_.keys && t_.keys.IE_PROTO || ""); +var R4t = Gl["__core-js_shared__"]; +const J6 = R4t; +var xq = function() { + var t = /[^.]+$/.exec(J6 && J6.keys && J6.keys.IE_PROTO || ""); return t ? "Symbol(src)_1." + t : ""; }(); -function N4t(t) { - return !!kq && kq in t; +function M4t(t) { + return !!xq && xq in t; } -var I4t = Function.prototype, P4t = I4t.toString; +var D4t = Function.prototype, N4t = D4t.toString; function Q0(t) { if (t != null) { try { - return P4t.call(t); + return N4t.call(t); } catch { } try { @@ -40622,49 +40622,49 @@ function Q0(t) { } return ""; } -var $4t = /[\\^$.*+?()[\]{}|]/g, B4t = /^\[object .+?Constructor\]$/, F4t = Function.prototype, z4t = Object.prototype, V4t = F4t.toString, U4t = z4t.hasOwnProperty, q4t = RegExp( - "^" + V4t.call(U4t).replace($4t, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$" +var I4t = /[\\^$.*+?()[\]{}|]/g, P4t = /^\[object .+?Constructor\]$/, $4t = Function.prototype, B4t = Object.prototype, F4t = $4t.toString, z4t = B4t.hasOwnProperty, V4t = RegExp( + "^" + F4t.call(z4t).replace(I4t, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$" ); -function Y4t(t) { - if (!Pa(t) || N4t(t)) +function U4t(t) { + if (!Pa(t) || M4t(t)) return !1; - var e = Ho(t) ? q4t : B4t; + var e = Ho(t) ? V4t : P4t; return e.test(Q0(t)); } -function Q4t(t, e) { +function q4t(t, e) { return t == null ? void 0 : t[e]; } function W0(t, e) { - var r = Q4t(t, e); - return Y4t(r) ? r : void 0; + var r = q4t(t, e); + return U4t(r) ? r : void 0; } -var W4t = W0(Object, "create"); -const g2 = W4t; -function G4t() { +var Y4t = W0(Object, "create"); +const g2 = Y4t; +function Q4t() { this.__data__ = g2 ? g2(null) : {}, this.size = 0; } -function H4t(t) { +function W4t(t) { var e = this.has(t) && delete this.__data__[t]; return this.size -= e ? 1 : 0, e; } -var X4t = "__lodash_hash_undefined__", Z4t = Object.prototype, j4t = Z4t.hasOwnProperty; -function K4t(t) { +var G4t = "__lodash_hash_undefined__", H4t = Object.prototype, X4t = H4t.hasOwnProperty; +function Z4t(t) { var e = this.__data__; if (g2) { var r = e[t]; - return r === X4t ? void 0 : r; + return r === G4t ? void 0 : r; } - return j4t.call(e, t) ? e[t] : void 0; + return X4t.call(e, t) ? e[t] : void 0; } -var J4t = Object.prototype, e5t = J4t.hasOwnProperty; -function t5t(t) { +var j4t = Object.prototype, K4t = j4t.hasOwnProperty; +function J4t(t) { var e = this.__data__; - return g2 ? e[t] !== void 0 : e5t.call(e, t); + return g2 ? e[t] !== void 0 : K4t.call(e, t); } -var r5t = "__lodash_hash_undefined__"; -function n5t(t, e) { +var e5t = "__lodash_hash_undefined__"; +function t5t(t, e) { var r = this.__data__; - return this.size += this.has(t) ? 0 : 1, r[t] = g2 && e === void 0 ? r5t : e, this; + return this.size += this.has(t) ? 0 : 1, r[t] = g2 && e === void 0 ? e5t : e, this; } function c0(t) { var e = -1, r = t == null ? 0 : t.length; @@ -40673,40 +40673,40 @@ function c0(t) { this.set(n[0], n[1]); } } -c0.prototype.clear = G4t; -c0.prototype.delete = H4t; -c0.prototype.get = K4t; -c0.prototype.has = t5t; -c0.prototype.set = n5t; -function i5t() { +c0.prototype.clear = Q4t; +c0.prototype.delete = W4t; +c0.prototype.get = Z4t; +c0.prototype.has = J4t; +c0.prototype.set = t5t; +function r5t() { this.__data__ = [], this.size = 0; } function K1(t, e) { return t === e || t !== t && e !== e; } -function $T(t, e) { +function IT(t, e) { for (var r = t.length; r--; ) if (K1(t[r][0], e)) return r; return -1; } -var s5t = Array.prototype, a5t = s5t.splice; -function o5t(t) { - var e = this.__data__, r = $T(e, t); +var n5t = Array.prototype, i5t = n5t.splice; +function s5t(t) { + var e = this.__data__, r = IT(e, t); if (r < 0) return !1; var n = e.length - 1; - return r == n ? e.pop() : a5t.call(e, r, 1), --this.size, !0; + return r == n ? e.pop() : i5t.call(e, r, 1), --this.size, !0; } -function l5t(t) { - var e = this.__data__, r = $T(e, t); +function a5t(t) { + var e = this.__data__, r = IT(e, t); return r < 0 ? void 0 : e[r][1]; } -function c5t(t) { - return $T(this.__data__, t) > -1; +function o5t(t) { + return IT(this.__data__, t) > -1; } -function u5t(t, e) { - var r = this.__data__, n = $T(r, t); +function l5t(t, e) { + var r = this.__data__, n = IT(r, t); return n < 0 ? (++this.size, r.push([t, e])) : r[n][1] = e, this; } function oh(t) { @@ -40716,40 +40716,40 @@ function oh(t) { this.set(n[0], n[1]); } } -oh.prototype.clear = i5t; -oh.prototype.delete = o5t; -oh.prototype.get = l5t; -oh.prototype.has = c5t; -oh.prototype.set = u5t; -var h5t = W0(Gl, "Map"); -const m2 = h5t; -function f5t() { +oh.prototype.clear = r5t; +oh.prototype.delete = s5t; +oh.prototype.get = a5t; +oh.prototype.has = o5t; +oh.prototype.set = l5t; +var c5t = W0(Gl, "Map"); +const m2 = c5t; +function u5t() { this.size = 0, this.__data__ = { hash: new c0(), map: new (m2 || oh)(), string: new c0() }; } -function d5t(t) { +function h5t(t) { var e = typeof t; return e == "string" || e == "number" || e == "symbol" || e == "boolean" ? t !== "__proto__" : t === null; } -function BT(t, e) { +function PT(t, e) { var r = t.__data__; - return d5t(e) ? r[typeof e == "string" ? "string" : "hash"] : r.map; + return h5t(e) ? r[typeof e == "string" ? "string" : "hash"] : r.map; } -function p5t(t) { - var e = BT(this, t).delete(t); +function f5t(t) { + var e = PT(this, t).delete(t); return this.size -= e ? 1 : 0, e; } -function g5t(t) { - return BT(this, t).get(t); +function d5t(t) { + return PT(this, t).get(t); } -function m5t(t) { - return BT(this, t).has(t); +function p5t(t) { + return PT(this, t).has(t); } -function v5t(t, e) { - var r = BT(this, t), n = r.size; +function g5t(t, e) { + var r = PT(this, t), n = r.size; return r.set(t, e), this.size += r.size == n ? 0 : 1, this; } function lh(t) { @@ -40759,15 +40759,15 @@ function lh(t) { this.set(n[0], n[1]); } } -lh.prototype.clear = f5t; -lh.prototype.delete = p5t; -lh.prototype.get = g5t; -lh.prototype.has = m5t; -lh.prototype.set = v5t; -var y5t = "Expected a function"; +lh.prototype.clear = u5t; +lh.prototype.delete = f5t; +lh.prototype.get = d5t; +lh.prototype.has = p5t; +lh.prototype.set = g5t; +var m5t = "Expected a function"; function J1(t, e) { if (typeof t != "function" || e != null && typeof e != "function") - throw new TypeError(y5t); + throw new TypeError(m5t); var r = function() { var n = arguments, i = e ? e.apply(this, n) : n[0], s = r.cache; if (s.has(i)) @@ -40778,25 +40778,25 @@ function J1(t, e) { return r.cache = new (J1.Cache || lh)(), r; } J1.Cache = lh; -function b5t() { +function v5t() { this.__data__ = new oh(), this.size = 0; } -function x5t(t) { +function y5t(t) { var e = this.__data__, r = e.delete(t); return this.size = e.size, r; } -function w5t(t) { +function b5t(t) { return this.__data__.get(t); } -function O5t(t) { +function x5t(t) { return this.__data__.has(t); } -var k5t = 200; -function S5t(t, e) { +var w5t = 200; +function O5t(t, e) { var r = this.__data__; if (r instanceof oh) { var n = r.__data__; - if (!m2 || n.length < k5t - 1) + if (!m2 || n.length < w5t - 1) return n.push([t, e]), this.size = ++r.size, this; r = this.__data__ = new lh(n); } @@ -40806,31 +40806,31 @@ function wl(t) { var e = this.__data__ = new oh(t); this.size = e.size; } -wl.prototype.clear = b5t; -wl.prototype.delete = x5t; -wl.prototype.get = w5t; -wl.prototype.has = O5t; -wl.prototype.set = S5t; -var T5t = function() { +wl.prototype.clear = v5t; +wl.prototype.delete = y5t; +wl.prototype.get = b5t; +wl.prototype.has = x5t; +wl.prototype.set = O5t; +var k5t = function() { try { var t = W0(Object, "defineProperty"); return t({}, "", {}), t; } catch { } }(); -const $3 = T5t; +const P3 = k5t; function fx(t, e, r) { - e == "__proto__" && $3 ? $3(t, e, { + e == "__proto__" && P3 ? P3(t, e, { configurable: !0, enumerable: !0, value: r, writable: !0 }) : t[e] = r; } -function q8(t, e, r) { +function V8(t, e, r) { (r !== void 0 && !K1(t[e], r) || r === void 0 && !(e in t)) && fx(t, e, r); } -function C5t(t) { +function S5t(t) { return function(e, r, n) { for (var i = -1, s = Object(e), a = n(e), o = a.length; o--; ) { var l = a[t ? o : ++i]; @@ -40840,129 +40840,129 @@ function C5t(t) { return e; }; } -var E5t = C5t(); -const HD = E5t; -var sae = typeof exports == "object" && exports && !exports.nodeType && exports, Sq = sae && typeof module == "object" && module && !module.nodeType && module, _5t = Sq && Sq.exports === sae, Tq = _5t ? Gl.Buffer : void 0, Cq = Tq ? Tq.allocUnsafe : void 0; -function aae(t, e) { +var T5t = S5t(); +const QD = T5t; +var nae = typeof exports == "object" && exports && !exports.nodeType && exports, wq = nae && typeof module == "object" && module && !module.nodeType && module, C5t = wq && wq.exports === nae, Oq = C5t ? Gl.Buffer : void 0, kq = Oq ? Oq.allocUnsafe : void 0; +function iae(t, e) { if (e) return t.slice(); - var r = t.length, n = Cq ? Cq(r) : new t.constructor(r); + var r = t.length, n = kq ? kq(r) : new t.constructor(r); return t.copy(n), n; } -var A5t = Gl.Uint8Array; -const B3 = A5t; -function XD(t) { +var E5t = Gl.Uint8Array; +const $3 = E5t; +function WD(t) { var e = new t.constructor(t.byteLength); - return new B3(e).set(new B3(t)), e; + return new $3(e).set(new $3(t)), e; } -function oae(t, e) { - var r = e ? XD(t.buffer) : t.buffer; +function sae(t, e) { + var r = e ? WD(t.buffer) : t.buffer; return new t.constructor(r, t.byteOffset, t.length); } -function lae(t, e) { +function aae(t, e) { var r = -1, n = t.length; for (e || (e = Array(n)); ++r < n; ) e[r] = t[r]; return e; } -var Eq = Object.create, L5t = function() { +var Sq = Object.create, _5t = function() { function t() { } return function(e) { if (!Pa(e)) return {}; - if (Eq) - return Eq(e); + if (Sq) + return Sq(e); t.prototype = e; var r = new t(); return t.prototype = void 0, r; }; }(); -const R5t = L5t; -function cae(t, e) { +const A5t = _5t; +function oae(t, e) { return function(r) { return t(e(r)); }; } -var M5t = cae(Object.getPrototypeOf, Object); -const ZD = M5t; -var D5t = Object.prototype; +var L5t = oae(Object.getPrototypeOf, Object); +const GD = L5t; +var R5t = Object.prototype; function dx(t) { - var e = t && t.constructor, r = typeof e == "function" && e.prototype || D5t; + var e = t && t.constructor, r = typeof e == "function" && e.prototype || R5t; return t === r; } -function uae(t) { - return typeof t.constructor == "function" && !dx(t) ? R5t(ZD(t)) : {}; +function lae(t) { + return typeof t.constructor == "function" && !dx(t) ? A5t(GD(t)) : {}; } function Xo(t) { return t != null && typeof t == "object"; } -var N5t = "[object Arguments]"; -function _q(t) { - return Xo(t) && ah(t) == N5t; +var M5t = "[object Arguments]"; +function Tq(t) { + return Xo(t) && ah(t) == M5t; } -var hae = Object.prototype, I5t = hae.hasOwnProperty, P5t = hae.propertyIsEnumerable, $5t = _q(function() { +var cae = Object.prototype, D5t = cae.hasOwnProperty, N5t = cae.propertyIsEnumerable, I5t = Tq(function() { return arguments; -}()) ? _q : function(t) { - return Xo(t) && I5t.call(t, "callee") && !P5t.call(t, "callee"); +}()) ? Tq : function(t) { + return Xo(t) && D5t.call(t, "callee") && !N5t.call(t, "callee"); }; -const t1 = $5t; -var B5t = Array.isArray; -const Sr = B5t; -var F5t = 9007199254740991; -function jD(t) { - return typeof t == "number" && t > -1 && t % 1 == 0 && t <= F5t; +const t1 = I5t; +var P5t = Array.isArray; +const Sr = P5t; +var $5t = 9007199254740991; +function HD(t) { + return typeof t == "number" && t > -1 && t % 1 == 0 && t <= $5t; } function jc(t) { - return t != null && jD(t.length) && !Ho(t); + return t != null && HD(t.length) && !Ho(t); } -function F3(t) { +function B3(t) { return Xo(t) && jc(t); } -function z5t() { +function B5t() { return !1; } -var fae = typeof exports == "object" && exports && !exports.nodeType && exports, Aq = fae && typeof module == "object" && module && !module.nodeType && module, V5t = Aq && Aq.exports === fae, Lq = V5t ? Gl.Buffer : void 0, U5t = Lq ? Lq.isBuffer : void 0, q5t = U5t || z5t; -const r1 = q5t; -var Y5t = "[object Object]", Q5t = Function.prototype, W5t = Object.prototype, dae = Q5t.toString, G5t = W5t.hasOwnProperty, H5t = dae.call(Object); -function X5t(t) { - if (!Xo(t) || ah(t) != Y5t) +var uae = typeof exports == "object" && exports && !exports.nodeType && exports, Cq = uae && typeof module == "object" && module && !module.nodeType && module, F5t = Cq && Cq.exports === uae, Eq = F5t ? Gl.Buffer : void 0, z5t = Eq ? Eq.isBuffer : void 0, V5t = z5t || B5t; +const r1 = V5t; +var U5t = "[object Object]", q5t = Function.prototype, Y5t = Object.prototype, hae = q5t.toString, Q5t = Y5t.hasOwnProperty, W5t = hae.call(Object); +function G5t(t) { + if (!Xo(t) || ah(t) != U5t) return !1; - var e = ZD(t); + var e = GD(t); if (e === null) return !0; - var r = G5t.call(e, "constructor") && e.constructor; - return typeof r == "function" && r instanceof r && dae.call(r) == H5t; + var r = Q5t.call(e, "constructor") && e.constructor; + return typeof r == "function" && r instanceof r && hae.call(r) == W5t; } -var Z5t = "[object Arguments]", j5t = "[object Array]", K5t = "[object Boolean]", J5t = "[object Date]", e3t = "[object Error]", t3t = "[object Function]", r3t = "[object Map]", n3t = "[object Number]", i3t = "[object Object]", s3t = "[object RegExp]", a3t = "[object Set]", o3t = "[object String]", l3t = "[object WeakMap]", c3t = "[object ArrayBuffer]", u3t = "[object DataView]", h3t = "[object Float32Array]", f3t = "[object Float64Array]", d3t = "[object Int8Array]", p3t = "[object Int16Array]", g3t = "[object Int32Array]", m3t = "[object Uint8Array]", v3t = "[object Uint8ClampedArray]", y3t = "[object Uint16Array]", b3t = "[object Uint32Array]", gn = {}; -gn[h3t] = gn[f3t] = gn[d3t] = gn[p3t] = gn[g3t] = gn[m3t] = gn[v3t] = gn[y3t] = gn[b3t] = !0; -gn[Z5t] = gn[j5t] = gn[c3t] = gn[K5t] = gn[u3t] = gn[J5t] = gn[e3t] = gn[t3t] = gn[r3t] = gn[n3t] = gn[i3t] = gn[s3t] = gn[a3t] = gn[o3t] = gn[l3t] = !1; -function x3t(t) { - return Xo(t) && jD(t.length) && !!gn[ah(t)]; +var H5t = "[object Arguments]", X5t = "[object Array]", Z5t = "[object Boolean]", j5t = "[object Date]", K5t = "[object Error]", J5t = "[object Function]", e3t = "[object Map]", t3t = "[object Number]", r3t = "[object Object]", n3t = "[object RegExp]", i3t = "[object Set]", s3t = "[object String]", a3t = "[object WeakMap]", o3t = "[object ArrayBuffer]", l3t = "[object DataView]", c3t = "[object Float32Array]", u3t = "[object Float64Array]", h3t = "[object Int8Array]", f3t = "[object Int16Array]", d3t = "[object Int32Array]", p3t = "[object Uint8Array]", g3t = "[object Uint8ClampedArray]", m3t = "[object Uint16Array]", v3t = "[object Uint32Array]", gn = {}; +gn[c3t] = gn[u3t] = gn[h3t] = gn[f3t] = gn[d3t] = gn[p3t] = gn[g3t] = gn[m3t] = gn[v3t] = !0; +gn[H5t] = gn[X5t] = gn[o3t] = gn[Z5t] = gn[l3t] = gn[j5t] = gn[K5t] = gn[J5t] = gn[e3t] = gn[t3t] = gn[r3t] = gn[n3t] = gn[i3t] = gn[s3t] = gn[a3t] = !1; +function y3t(t) { + return Xo(t) && HD(t.length) && !!gn[ah(t)]; } function em(t) { return function(e) { return t(e); }; } -var pae = typeof exports == "object" && exports && !exports.nodeType && exports, oy = pae && typeof module == "object" && module && !module.nodeType && module, w3t = oy && oy.exports === pae, r_ = w3t && nae.process, O3t = function() { +var fae = typeof exports == "object" && exports && !exports.nodeType && exports, oy = fae && typeof module == "object" && module && !module.nodeType && module, b3t = oy && oy.exports === fae, e_ = b3t && tae.process, x3t = function() { try { var t = oy && oy.require && oy.require("util").types; - return t || r_ && r_.binding && r_.binding("util"); + return t || e_ && e_.binding && e_.binding("util"); } catch { } }(); -const xf = O3t; -var Rq = xf && xf.isTypedArray, k3t = Rq ? em(Rq) : x3t; -const FT = k3t; -function Y8(t, e) { +const xf = x3t; +var _q = xf && xf.isTypedArray, w3t = _q ? em(_q) : y3t; +const $T = w3t; +function U8(t, e) { if (!(e === "constructor" && typeof t[e] == "function") && e != "__proto__") return t[e]; } -var S3t = Object.prototype, T3t = S3t.hasOwnProperty; +var O3t = Object.prototype, k3t = O3t.hasOwnProperty; function px(t, e, r) { var n = t[e]; - (!(T3t.call(t, e) && K1(n, r)) || r === void 0 && !(e in t)) && fx(t, e, r); + (!(k3t.call(t, e) && K1(n, r)) || r === void 0 && !(e in t)) && fx(t, e, r); } function tm(t, e, r, n) { var i = !r; @@ -40973,72 +40973,72 @@ function tm(t, e, r, n) { } return r; } -function C3t(t, e) { +function S3t(t, e) { for (var r = -1, n = Array(t); ++r < t; ) n[r] = e(r); return n; } -var E3t = 9007199254740991, _3t = /^(?:0|[1-9]\d*)$/; -function zT(t, e) { +var T3t = 9007199254740991, C3t = /^(?:0|[1-9]\d*)$/; +function BT(t, e) { var r = typeof t; - return e = e == null ? E3t : e, !!e && (r == "number" || r != "symbol" && _3t.test(t)) && t > -1 && t % 1 == 0 && t < e; + return e = e == null ? T3t : e, !!e && (r == "number" || r != "symbol" && C3t.test(t)) && t > -1 && t % 1 == 0 && t < e; } -var A3t = Object.prototype, L3t = A3t.hasOwnProperty; -function gae(t, e) { - var r = Sr(t), n = !r && t1(t), i = !r && !n && r1(t), s = !r && !n && !i && FT(t), a = r || n || i || s, o = a ? C3t(t.length, String) : [], l = o.length; +var E3t = Object.prototype, _3t = E3t.hasOwnProperty; +function dae(t, e) { + var r = Sr(t), n = !r && t1(t), i = !r && !n && r1(t), s = !r && !n && !i && $T(t), a = r || n || i || s, o = a ? S3t(t.length, String) : [], l = o.length; for (var u in t) - (e || L3t.call(t, u)) && !(a && (u == "length" || i && (u == "offset" || u == "parent") || s && (u == "buffer" || u == "byteLength" || u == "byteOffset") || zT(u, l))) && o.push(u); + (e || _3t.call(t, u)) && !(a && (u == "length" || i && (u == "offset" || u == "parent") || s && (u == "buffer" || u == "byteLength" || u == "byteOffset") || BT(u, l))) && o.push(u); return o; } -function R3t(t) { +function A3t(t) { var e = []; if (t != null) for (var r in Object(t)) e.push(r); return e; } -var M3t = Object.prototype, D3t = M3t.hasOwnProperty; -function N3t(t) { +var L3t = Object.prototype, R3t = L3t.hasOwnProperty; +function M3t(t) { if (!Pa(t)) - return R3t(t); + return A3t(t); var e = dx(t), r = []; for (var n in t) - n == "constructor" && (e || !D3t.call(t, n)) || r.push(n); + n == "constructor" && (e || !R3t.call(t, n)) || r.push(n); return r; } function G0(t) { - return jc(t) ? gae(t, !0) : N3t(t); + return jc(t) ? dae(t, !0) : M3t(t); } -function I3t(t) { +function D3t(t) { return tm(t, G0(t)); } -function P3t(t, e, r, n, i, s, a) { - var o = Y8(t, r), l = Y8(e, r), u = a.get(l); +function N3t(t, e, r, n, i, s, a) { + var o = U8(t, r), l = U8(e, r), u = a.get(l); if (u) { - q8(t, r, u); + V8(t, r, u); return; } var h = s ? s(o, l, r + "", t, e, a) : void 0, f = h === void 0; if (f) { - var d = Sr(l), p = !d && r1(l), g = !d && !p && FT(l); - h = l, d || p || g ? Sr(o) ? h = o : F3(o) ? h = lae(o) : p ? (f = !1, h = aae(l, !0)) : g ? (f = !1, h = oae(l, !0)) : h = [] : X5t(l) || t1(l) ? (h = o, t1(o) ? h = I3t(o) : (!Pa(o) || Ho(o)) && (h = uae(l))) : f = !1; + var d = Sr(l), p = !d && r1(l), g = !d && !p && $T(l); + h = l, d || p || g ? Sr(o) ? h = o : B3(o) ? h = aae(o) : p ? (f = !1, h = iae(l, !0)) : g ? (f = !1, h = sae(l, !0)) : h = [] : G5t(l) || t1(l) ? (h = o, t1(o) ? h = D3t(o) : (!Pa(o) || Ho(o)) && (h = lae(l))) : f = !1; } - f && (a.set(l, h), i(h, l, n, s, a), a.delete(l)), q8(t, r, h); + f && (a.set(l, h), i(h, l, n, s, a), a.delete(l)), V8(t, r, h); } -function mae(t, e, r, n, i) { - t !== e && HD(e, function(s, a) { +function pae(t, e, r, n, i) { + t !== e && QD(e, function(s, a) { if (i || (i = new wl()), Pa(s)) - P3t(t, e, a, r, mae, n, i); + N3t(t, e, a, r, pae, n, i); else { - var o = n ? n(Y8(t, a), s, a + "", t, e, i) : void 0; - o === void 0 && (o = s), q8(t, a, o); + var o = n ? n(U8(t, a), s, a + "", t, e, i) : void 0; + o === void 0 && (o = s), V8(t, a, o); } }, G0); } function Qu(t) { return t; } -function $3t(t, e, r) { +function I3t(t, e, r) { switch (r.length) { case 0: return t.call(e); @@ -41051,15 +41051,15 @@ function $3t(t, e, r) { } return t.apply(e, r); } -var Mq = Math.max; -function vae(t, e, r) { - return e = Mq(e === void 0 ? t.length - 1 : e, 0), function() { - for (var n = arguments, i = -1, s = Mq(n.length - e, 0), a = Array(s); ++i < s; ) +var Aq = Math.max; +function gae(t, e, r) { + return e = Aq(e === void 0 ? t.length - 1 : e, 0), function() { + for (var n = arguments, i = -1, s = Aq(n.length - e, 0), a = Array(s); ++i < s; ) a[i] = n[e + i]; i = -1; for (var o = Array(e + 1); ++i < e; ) o[i] = n[i]; - return o[e] = r(a), $3t(t, this, o); + return o[e] = r(a), I3t(t, this, o); }; } function Fp(t) { @@ -41067,40 +41067,40 @@ function Fp(t) { return t; }; } -var B3t = $3 ? function(t, e) { - return $3(t, "toString", { +var P3t = P3 ? function(t, e) { + return P3(t, "toString", { configurable: !0, enumerable: !1, value: Fp(e), writable: !0 }); } : Qu; -const F3t = B3t; -var z3t = 800, V3t = 16, U3t = Date.now; -function q3t(t) { +const $3t = P3t; +var B3t = 800, F3t = 16, z3t = Date.now; +function V3t(t) { var e = 0, r = 0; return function() { - var n = U3t(), i = V3t - (n - r); + var n = z3t(), i = F3t - (n - r); if (r = n, i > 0) { - if (++e >= z3t) + if (++e >= B3t) return arguments[0]; } else e = 0; return t.apply(void 0, arguments); }; } -var Y3t = q3t(F3t); -const yae = Y3t; +var U3t = V3t($3t); +const mae = U3t; function gx(t, e) { - return yae(vae(t, e, Qu), t + ""); + return mae(gae(t, e, Qu), t + ""); } function u0(t, e, r) { if (!Pa(r)) return !1; var n = typeof e; - return (n == "number" ? jc(r) && zT(e, r.length) : n == "string" && e in r) ? K1(r[e], t) : !1; + return (n == "number" ? jc(r) && BT(e, r.length) : n == "string" && e in r) ? K1(r[e], t) : !1; } -function bae(t) { +function vae(t) { return gx(function(e, r) { var n = -1, i = r.length, s = i > 1 ? r[i - 1] : void 0, a = i > 2 ? r[2] : void 0; for (s = t.length > 3 && typeof s == "function" ? (i--, s) : void 0, a && u0(r[0], r[1], a) && (s = i < 3 ? void 0 : s, i = 1), e = Object(e); ++n < i; ) { @@ -41110,49 +41110,49 @@ function bae(t) { return e; }); } -var Q3t = bae(function(t, e, r) { - mae(t, e, r); +var q3t = vae(function(t, e, r) { + pae(t, e, r); }); -const z3 = Q3t; -var xae = "\u200B", W3t = { +const F3 = q3t; +var yae = "\u200B", Y3t = { curveBasis: j1, - curveBasisClosed: t4t, - curveBasisOpen: r4t, - curveBumpX: JOt, - curveBumpY: e4t, - curveBundle: n4t, - curveCardinalClosed: s4t, - curveCardinalOpen: a4t, - curveCardinal: i4t, - curveCatmullRomClosed: l4t, - curveCatmullRomOpen: c4t, - curveCatmullRom: o4t, - curveLinear: NT, - curveLinearClosed: u4t, - curveMonotoneX: h4t, - curveMonotoneY: f4t, - curveNatural: d4t, - curveStep: p4t, - curveStepAfter: m4t, - curveStepBefore: g4t -}, G3t = /\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi, H3t = /* @__PURE__ */ x(function(t, e) { - const r = wae(t, /(?:init\b)|(?:initialize\b)/); + curveBasisClosed: JOt, + curveBasisOpen: e4t, + curveBumpX: jOt, + curveBumpY: KOt, + curveBundle: t4t, + curveCardinalClosed: n4t, + curveCardinalOpen: i4t, + curveCardinal: r4t, + curveCatmullRomClosed: a4t, + curveCatmullRomOpen: o4t, + curveCatmullRom: s4t, + curveLinear: MT, + curveLinearClosed: l4t, + curveMonotoneX: c4t, + curveMonotoneY: u4t, + curveNatural: h4t, + curveStep: f4t, + curveStepAfter: p4t, + curveStepBefore: d4t +}, Q3t = /\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi, W3t = /* @__PURE__ */ x(function(t, e) { + const r = bae(t, /(?:init\b)|(?:initialize\b)/); let n = {}; if (Array.isArray(r)) { const a = r.map((o) => o.args); - p3(a), n = Ci(n, [...a]); + d3(a), n = Ci(n, [...a]); } else n = r.args; if (!n) return; - let i = TD(t, e); + let i = OD(t, e); const s = "config"; return n[s] !== void 0 && (i === "flowchart-v2" && (i = "flowchart"), n[i] = n[s], delete n[s]), n; -}, "detectInit"), wae = /* @__PURE__ */ x(function(t, e = null) { +}, "detectInit"), bae = /* @__PURE__ */ x(function(t, e = null) { var r, n; try { const i = new RegExp( - `[%]{2}(?![{]${G3t.source})(?=[}][%]{2}).* + `[%]{2}(?![{]${Q3t.source})(?=[}][%]{2}).* `, "ig" ); @@ -41172,9 +41172,9 @@ var xae = "\u200B", W3t = { `ERROR: ${i.message} - Unable to parse directive type: '${e}' based on the text: '${t}'` ), { type: void 0, args: null }; } -}, "detectDirective"), X3t = /* @__PURE__ */ x(function(t) { +}, "detectDirective"), G3t = /* @__PURE__ */ x(function(t) { return t.replace(ny, ""); -}, "removeDirectives"), Z3t = /* @__PURE__ */ x(function(t, e) { +}, "removeDirectives"), H3t = /* @__PURE__ */ x(function(t, e) { for (const [r, n] of e.entries()) if (n.match(t)) return r; @@ -41185,16 +41185,16 @@ function mx(t, e) { if (!t) return e; const r = `curve${t.charAt(0).toUpperCase() + t.slice(1)}`; - return (n = W3t[r]) != null ? n : e; + return (n = Y3t[r]) != null ? n : e; } x(mx, "interpolateToCurve"); -function Oae(t, e) { +function xae(t, e) { const r = t.trim(); if (!!r) return e.securityLevel !== "loose" ? Uf(r) : r; } -x(Oae, "formatUrl"); -var j3t = /* @__PURE__ */ x((t, ...e) => { +x(xae, "formatUrl"); +var X3t = /* @__PURE__ */ x((t, ...e) => { const r = t.split("."), n = r.length - 1, i = r[n]; let s = window; for (let a = 0; a < n; a++) @@ -41204,31 +41204,31 @@ var j3t = /* @__PURE__ */ x((t, ...e) => { } s[i](...e); }, "runFunc"); -function KD(t, e) { +function XD(t, e) { return !t || !e ? 0 : Math.sqrt(Math.pow(e.x - t.x, 2) + Math.pow(e.y - t.y, 2)); } -x(KD, "distance"); -function kae(t) { +x(XD, "distance"); +function wae(t) { let e, r = 0; t.forEach((i) => { - r += KD(i, e), e = i; + r += XD(i, e), e = i; }); const n = r / 2; - return JD(t, n); + return ZD(t, n); } -x(kae, "traverseEdge"); -function Sae(t) { - return t.length === 1 ? t[0] : kae(t); +x(wae, "traverseEdge"); +function Oae(t) { + return t.length === 1 ? t[0] : wae(t); } -x(Sae, "calcLabelPosition"); -var Dq = /* @__PURE__ */ x((t, e = 2) => { +x(Oae, "calcLabelPosition"); +var Lq = /* @__PURE__ */ x((t, e = 2) => { const r = Math.pow(10, e); return Math.round(t * r) / r; -}, "roundNumber"), JD = /* @__PURE__ */ x((t, e) => { +}, "roundNumber"), ZD = /* @__PURE__ */ x((t, e) => { let r, n = e; for (const i of t) { if (r) { - const s = KD(i, r); + const s = XD(i, r); if (s < n) n -= s; else { @@ -41239,26 +41239,26 @@ var Dq = /* @__PURE__ */ x((t, e = 2) => { return { x: i.x, y: i.y }; if (a > 0 && a < 1) return { - x: Dq((1 - a) * r.x + a * i.x, 5), - y: Dq((1 - a) * r.y + a * i.y, 5) + x: Lq((1 - a) * r.x + a * i.x, 5), + y: Lq((1 - a) * r.y + a * i.y, 5) }; } } r = i; } throw new Error("Could not find a suitable point for the given distance"); -}, "calculatePoint"), K3t = /* @__PURE__ */ x((t, e, r) => { +}, "calculatePoint"), Z3t = /* @__PURE__ */ x((t, e, r) => { X.info(`our points ${JSON.stringify(e)}`), e[0] !== r && (e = e.reverse()); - const i = JD(e, 25), s = t ? 10 : 5, a = Math.atan2(e[0].y - i.y, e[0].x - i.x), o = { x: 0, y: 0 }; + const i = ZD(e, 25), s = t ? 10 : 5, a = Math.atan2(e[0].y - i.y, e[0].x - i.x), o = { x: 0, y: 0 }; return o.x = Math.sin(a) * s + (e[0].x + i.x) / 2, o.y = -Math.cos(a) * s + (e[0].y + i.y) / 2, o; }, "calcCardinalityPosition"); -function Tae(t, e, r) { +function kae(t, e, r) { const n = structuredClone(r); X.info("our points", n), e !== "start_left" && e !== "start_right" && n.reverse(); - const i = 25 + t, s = JD(n, i), a = 10 + t * 0.5, o = Math.atan2(n[0].y - s.y, n[0].x - s.x), l = { x: 0, y: 0 }; + const i = 25 + t, s = ZD(n, i), a = 10 + t * 0.5, o = Math.atan2(n[0].y - s.y, n[0].x - s.x), l = { x: 0, y: 0 }; return e === "start_left" ? (l.x = Math.sin(o + Math.PI) * a + (n[0].x + s.x) / 2, l.y = -Math.cos(o + Math.PI) * a + (n[0].y + s.y) / 2) : e === "end_right" ? (l.x = Math.sin(o - Math.PI) * a + (n[0].x + s.x) / 2 - 5, l.y = -Math.cos(o - Math.PI) * a + (n[0].y + s.y) / 2 - 5) : e === "end_left" ? (l.x = Math.sin(o) * a + (n[0].x + s.x) / 2 - 5, l.y = -Math.cos(o) * a + (n[0].y + s.y) / 2 - 5) : (l.x = Math.sin(o) * a + (n[0].x + s.x) / 2, l.y = -Math.cos(o) * a + (n[0].y + s.y) / 2), l; } -x(Tae, "calcTerminalLabelPosition"); +x(kae, "calcTerminalLabelPosition"); function vx(t) { let e = "", r = ""; for (const n of t) @@ -41266,16 +41266,16 @@ function vx(t) { return { style: e, labelStyle: r }; } x(vx, "getStylesFromArray"); -var Nq = 0, Cae = /* @__PURE__ */ x(() => (Nq++, "id-" + Math.random().toString(36).substr(2, 12) + "-" + Nq), "generateId"); -function Eae(t) { +var Rq = 0, Sae = /* @__PURE__ */ x(() => (Rq++, "id-" + Math.random().toString(36).substr(2, 12) + "-" + Rq), "generateId"); +function Tae(t) { let e = ""; const r = "0123456789abcdef", n = r.length; for (let i = 0; i < t; i++) e += r.charAt(Math.floor(Math.random() * n)); return e; } -x(Eae, "makeRandomHex"); -var _ae = /* @__PURE__ */ x((t) => Eae(t.length), "random"), J3t = /* @__PURE__ */ x(function() { +x(Tae, "makeRandomHex"); +var Cae = /* @__PURE__ */ x((t) => Tae(t.length), "random"), j3t = /* @__PURE__ */ x(function() { return { x: 0, y: 0, @@ -41290,12 +41290,12 @@ var _ae = /* @__PURE__ */ x((t) => Eae(t.length), "random"), J3t = /* @__PURE__ valign: void 0, text: "" }; -}, "getTextObj"), ekt = /* @__PURE__ */ x(function(t, e) { +}, "getTextObj"), K3t = /* @__PURE__ */ x(function(t, e) { const r = e.text.replace(at.lineBreakRegex, " "), [, n] = H0(e.fontSize), i = t.append("text"); i.attr("x", e.x), i.attr("y", e.y), i.style("text-anchor", e.anchor), i.style("font-family", e.fontFamily), i.style("font-size", n), i.style("font-weight", e.fontWeight), i.attr("fill", e.fill), e.class !== void 0 && i.attr("class", e.class); const s = i.append("tspan"); return s.attr("x", e.x + e.textMargin * 2), s.attr("fill", e.fill), s.text(r), i; -}, "drawSimpleText"), Aae = J1( +}, "drawSimpleText"), Eae = J1( (t, e, r) => { if (!t || (r = Object.assign( { fontSize: 12, fontWeight: 400, fontFamily: "Arial", joinWith: "
" }, @@ -41307,7 +41307,7 @@ var _ae = /* @__PURE__ */ x((t) => Eae(t.length), "random"), J3t = /* @__PURE__ return n.forEach((a, o) => { const l = Ol(`${a} `, r), u = Ol(s, r); if (l > e) { - const { hyphenatedStrings: d, remainingWord: p } = tkt(a, e, "-", r); + const { hyphenatedStrings: d, remainingWord: p } = J3t(a, e, "-", r); i.push(s, ...d), s = p; } else u + l >= e ? (i.push(s), s = a) : s = [s, a].filter(Boolean).join(" "); @@ -41315,7 +41315,7 @@ var _ae = /* @__PURE__ */ x((t) => Eae(t.length), "random"), J3t = /* @__PURE__ }), i.filter((a) => a !== "").join(r.joinWith); }, (t, e, r) => `${t}${e}${r.fontSize}${r.fontWeight}${r.fontFamily}${r.joinWith}` -), tkt = J1( +), J3t = J1( (t, e, r = "-", n) => { n = Object.assign( { fontSize: 12, fontWeight: 400, fontFamily: "Arial", margin: 0 }, @@ -41334,15 +41334,15 @@ var _ae = /* @__PURE__ */ x((t) => Eae(t.length), "random"), J3t = /* @__PURE__ }, (t, e, r = "-", n) => `${t}${e}${r}${n.fontSize}${n.fontWeight}${n.fontFamily}` ); -function V3(t, e) { - return eN(t, e).height; +function z3(t, e) { + return jD(t, e).height; } -x(V3, "calculateTextHeight"); +x(z3, "calculateTextHeight"); function Ol(t, e) { - return eN(t, e).width; + return jD(t, e).width; } x(Ol, "calculateTextWidth"); -var eN = J1( +var jD = J1( (t, e) => { const { fontSize: r = 12, fontFamily: n = "Arial", fontWeight: i = 400 } = e; if (!t) @@ -41355,9 +41355,9 @@ var eN = J1( let p = 0; const g = { width: 0, height: 0, lineHeight: 0 }; for (const m of o) { - const v = J3t(); - v.text = m || xae; - const y = ekt(h, v).style("font-size", s).style("font-weight", i).style("font-family", d), b = (y._groups || y)[0][0].getBBox(); + const v = j3t(); + v.text = m || yae; + const y = K3t(h, v).style("font-size", s).style("font-weight", i).style("font-family", d), b = (y._groups || y)[0][0].getBBox(); if (b.width === 0 && b.height === 0) throw new Error("svg element not in render tree"); g.width = Math.round(Math.max(g.width, b.width)), p = Math.round(b.height), g.height += p, g.lineHeight = Math.round(Math.max(g.lineHeight, p)); @@ -41369,20 +41369,20 @@ var eN = J1( return l[f]; }, (t, e) => `${t}${e.fontSize}${e.fontWeight}${e.fontFamily}` -), hb, rkt = (hb = class { +), hb, ekt = (hb = class { constructor(e = !1, r) { this.count = 0, this.count = r ? r.length : 0, this.next = e ? () => this.count++ : () => Date.now(); } }, (() => { x(hb, "InitIDGenerator"); -})(), hb), eO, nkt = /* @__PURE__ */ x(function(t) { +})(), hb), eO, tkt = /* @__PURE__ */ x(function(t) { return eO = eO || document.createElement("div"), t = escape(t).replace(/%26/g, "&").replace(/%23/g, "#").replace(/%3B/g, ";"), eO.innerHTML = t, unescape(eO.textContent); }, "entityDecode"); -function tN(t) { +function KD(t) { return "str" in t; } -x(tN, "isDetailedError"); -var ikt = /* @__PURE__ */ x((t, e, r, n) => { +x(KD, "isDetailedError"); +var rkt = /* @__PURE__ */ x((t, e, r, n) => { var s; if (!n) return; @@ -41395,33 +41395,33 @@ var ikt = /* @__PURE__ */ x((t, e, r, n) => { return Number.isNaN(e) ? [void 0, void 0] : t === String(e) ? [e, t + "px"] : [e, t]; }, "parseFontSize"); function ch(t, e) { - return z3({}, t, e); + return F3({}, t, e); } x(ch, "cleanAndMerge"); var sr = { assignWithDepth: Ci, - wrapLabel: Aae, - calculateTextHeight: V3, + wrapLabel: Eae, + calculateTextHeight: z3, calculateTextWidth: Ol, - calculateTextDimensions: eN, + calculateTextDimensions: jD, cleanAndMerge: ch, - detectInit: H3t, - detectDirective: wae, - isSubstringInArray: Z3t, + detectInit: W3t, + detectDirective: bae, + isSubstringInArray: H3t, interpolateToCurve: mx, - calcLabelPosition: Sae, - calcCardinalityPosition: K3t, - calcTerminalLabelPosition: Tae, - formatUrl: Oae, + calcLabelPosition: Oae, + calcCardinalityPosition: Z3t, + calcTerminalLabelPosition: kae, + formatUrl: xae, getStylesFromArray: vx, - generateId: Cae, - random: _ae, - runFunc: j3t, - entityDecode: nkt, - insertTitle: ikt, + generateId: Sae, + random: Cae, + runFunc: X3t, + entityDecode: tkt, + insertTitle: rkt, parseFontSize: H0, - InitIDGenerator: rkt -}, skt = /* @__PURE__ */ x(function(t) { + InitIDGenerator: ekt +}, nkt = /* @__PURE__ */ x(function(t) { let e = t; return e = e.replace(/style.*:\S*#.*;/g, function(r) { return r.substring(0, r.length - 1); @@ -41433,12 +41433,12 @@ var sr = { }), e; }, "encodeEntities"), h0 = /* @__PURE__ */ x(function(t) { return t.replace(/fl°°/g, "&#").replace(/fl°/g, "&").replace(/¶ß/g, ";"); -}, "decodeEntities"), Lae = /* @__PURE__ */ x((t, e, { +}, "decodeEntities"), _ae = /* @__PURE__ */ x((t, e, { counter: r = 0, prefix: n, suffix: i }) => `${n ? `${n}_` : ""}${t}_${e}_${r}${i ? `_${i}` : ""}`, "getEdgeId"); -function rN() { +function JD() { return { async: !1, breaks: !1, @@ -41452,43 +41452,43 @@ function rN() { walkTokens: null }; } -let X0 = rN(); -function Rae(t) { +let X0 = JD(); +function Aae(t) { X0 = t; } -const Mae = /[&<>"']/, akt = new RegExp(Mae.source, "g"), Dae = /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/, okt = new RegExp(Dae.source, "g"), lkt = { +const Lae = /[&<>"']/, ikt = new RegExp(Lae.source, "g"), Rae = /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/, skt = new RegExp(Rae.source, "g"), akt = { "&": "&", "<": "<", ">": ">", '"': """, "'": "'" -}, Iq = (t) => lkt[t]; +}, Mq = (t) => akt[t]; function Ka(t, e) { if (e) { - if (Mae.test(t)) - return t.replace(akt, Iq); - } else if (Dae.test(t)) - return t.replace(okt, Iq); + if (Lae.test(t)) + return t.replace(ikt, Mq); + } else if (Rae.test(t)) + return t.replace(skt, Mq); return t; } -const ckt = /&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig; -function ukt(t) { - return t.replace(ckt, (e, r) => (r = r.toLowerCase(), r === "colon" ? ":" : r.charAt(0) === "#" ? r.charAt(1) === "x" ? String.fromCharCode(parseInt(r.substring(2), 16)) : String.fromCharCode(+r.substring(1)) : "")); +const okt = /&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig; +function lkt(t) { + return t.replace(okt, (e, r) => (r = r.toLowerCase(), r === "colon" ? ":" : r.charAt(0) === "#" ? r.charAt(1) === "x" ? String.fromCharCode(parseInt(r.substring(2), 16)) : String.fromCharCode(+r.substring(1)) : "")); } -const hkt = /(^|[^\[])\^/g; +const ckt = /(^|[^\[])\^/g; function en(t, e) { let r = typeof t == "string" ? t : t.source; e = e || ""; const n = { replace: (i, s) => { let a = typeof s == "string" ? s : s.source; - return a = a.replace(hkt, "$1"), r = r.replace(i, a), n; + return a = a.replace(ckt, "$1"), r = r.replace(i, a), n; }, getRegex: () => new RegExp(r, e) }; return n; } -function Pq(t) { +function Dq(t) { try { t = encodeURI(t).replace(/%25/g, "%"); } catch { @@ -41497,7 +41497,7 @@ function Pq(t) { return t; } const ly = { exec: () => null }; -function $q(t, e) { +function Nq(t, e) { const r = t.replace(/\|/g, (s, a, o) => { let l = !1, u = a; for (; --u >= 0 && o[u] === "\\"; ) @@ -41531,7 +41531,7 @@ function Xm(t, e, r) { } return t.slice(0, n - i); } -function fkt(t, e) { +function ukt(t, e) { if (t.indexOf(e[1]) === -1) return -1; let r = 0; @@ -41544,7 +41544,7 @@ function fkt(t, e) { return n; return -1; } -function Bq(t, e, r, n) { +function Iq(t, e, r, n) { const i = e.href, s = e.title ? Ka(e.title) : null, a = t[1].replace(/\\([\[\]])/g, "$1"); if (t[0].charAt(0) !== "!") { n.state.inLink = !0; @@ -41566,7 +41566,7 @@ function Bq(t, e, r, n) { text: Ka(a) }; } -function dkt(t, e) { +function hkt(t, e) { const r = t.match(/^(\s+)(?:```)/); if (r === null) return e; @@ -41581,7 +41581,7 @@ function dkt(t, e) { }).join(` `); } -class U3 { +class V3 { constructor(e) { Or(this, "options"); Or(this, "rules"); @@ -41612,7 +41612,7 @@ class U3 { fences(e) { const r = this.rules.block.fences.exec(e); if (r) { - const n = r[0], i = dkt(n, r[3] || ""); + const n = r[0], i = hkt(n, r[3] || ""); return { type: "code", raw: n, @@ -41797,7 +41797,7 @@ ${f}` : f; const r = this.rules.block.table.exec(e); if (!r || !/[:|]/.test(r[2])) return; - const n = $q(r[1]), i = r[2].replace(/^\||\| *$/g, "").split("|"), s = r[3] && r[3].trim() ? r[3].replace(/\n[ \t]*$/, "").split(` + const n = Nq(r[1]), i = r[2].replace(/^\||\| *$/g, "").split("|"), s = r[3] && r[3].trim() ? r[3].replace(/\n[ \t]*$/, "").split(` `) : [], a = { type: "table", raw: r[0], @@ -41816,7 +41816,7 @@ ${f}` : f; align: a.align[o] }); for (const o of s) - a.rows.push($q(o, a.header.length).map((l, u) => ({ + a.rows.push(Nq(o, a.header.length).map((l, u) => ({ text: l, tokens: this.lexer.inline(l), header: !1, @@ -41891,7 +41891,7 @@ ${f}` : f; if ((n.length - a.length) % 2 === 0) return; } else { - const a = fkt(r[2], "()"); + const a = ukt(r[2], "()"); if (a > -1) { const l = (r[0].indexOf("!") === 0 ? 5 : 4) + r[1].length + a; r[2] = r[2].substring(0, a), r[0] = r[0].substring(0, l).trim(), r[3] = ""; @@ -41903,7 +41903,7 @@ ${f}` : f; a && (i = a[1], s = a[3]); } else s = r[3] ? r[3].slice(1, -1) : ""; - return i = i.trim(), /^$/.test(n) ? i = i.slice(1) : i = i.slice(1, -1)), Bq(r, { + return i = i.trim(), /^$/.test(n) ? i = i.slice(1) : i = i.slice(1, -1)), Iq(r, { href: i && i.replace(this.rules.inline.anyPunctuation, "$1"), title: s && s.replace(this.rules.inline.anyPunctuation, "$1") }, r[0], this.lexer); @@ -41921,7 +41921,7 @@ ${f}` : f; text: a }; } - return Bq(n, s, n[0], this.lexer); + return Iq(n, s, n[0], this.lexer); } } emStrong(e, r, n = "") { @@ -42055,77 +42055,77 @@ ${f}` : f; } } } -const pkt = /^(?: *(?:\n|$))+/, gkt = /^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/, mkt = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, yx = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, vkt = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, Nae = /(?:[*+-]|\d{1,9}[.)])/, Iae = en(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g, Nae).replace(/blockCode/g, / {4}/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).getRegex(), nN = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, ykt = /^[^\n]+/, iN = /(?!\s*\])(?:\\.|[^\[\]\\])+/, bkt = en(/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/).replace("label", iN).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), xkt = en(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, Nae).getRegex(), VT = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul", sN = /|$))/, wkt = en("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))", "i").replace("comment", sN).replace("tag", VT).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), Pae = en(nN).replace("hr", yx).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", ")|<(?:script|pre|style|textarea|!--)").replace("tag", VT).getRegex(), Okt = en(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", Pae).getRegex(), aN = { - blockquote: Okt, - code: gkt, - def: bkt, - fences: mkt, - heading: vkt, +const fkt = /^(?: *(?:\n|$))+/, dkt = /^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/, pkt = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, yx = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, gkt = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, Mae = /(?:[*+-]|\d{1,9}[.)])/, Dae = en(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g, Mae).replace(/blockCode/g, / {4}/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).getRegex(), eN = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, mkt = /^[^\n]+/, tN = /(?!\s*\])(?:\\.|[^\[\]\\])+/, vkt = en(/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/).replace("label", tN).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), ykt = en(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, Mae).getRegex(), FT = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul", rN = /|$))/, bkt = en("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))", "i").replace("comment", rN).replace("tag", FT).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), Nae = en(eN).replace("hr", yx).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", ")|<(?:script|pre|style|textarea|!--)").replace("tag", FT).getRegex(), xkt = en(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", Nae).getRegex(), nN = { + blockquote: xkt, + code: dkt, + def: vkt, + fences: pkt, + heading: gkt, hr: yx, - html: wkt, - lheading: Iae, - list: xkt, - newline: pkt, - paragraph: Pae, + html: bkt, + lheading: Dae, + list: ykt, + newline: fkt, + paragraph: Nae, table: ly, - text: ykt -}, Fq = en("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", yx).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", " {4}[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", ")|<(?:script|pre|style|textarea|!--)").replace("tag", VT).getRegex(), kkt = { - ...aN, - table: Fq, - paragraph: en(nN).replace("hr", yx).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", Fq).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", ")|<(?:script|pre|style|textarea|!--)").replace("tag", VT).getRegex() -}, Skt = { - ...aN, - html: en(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment", sN).replace(/tag/g, "(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(), + text: mkt +}, Pq = en("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", yx).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", " {4}[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", ")|<(?:script|pre|style|textarea|!--)").replace("tag", FT).getRegex(), wkt = { + ...nN, + table: Pq, + paragraph: en(eN).replace("hr", yx).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", Pq).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", ")|<(?:script|pre|style|textarea|!--)").replace("tag", FT).getRegex() +}, Okt = { + ...nN, + html: en(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment", rN).replace(/tag/g, "(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(), def: /^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/, heading: /^(#{1,6})(.*)(?:\n+|$)/, fences: ly, lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/, - paragraph: en(nN).replace("hr", yx).replace("heading", ` *#{1,6} *[^ -]`).replace("lheading", Iae).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex() -}, $ae = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, Tkt = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, Bae = /^( {2,}|\\)\n(?!\s*$)/, Ckt = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\]*?>/g, Akt = en(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/, "u").replace(/punct/g, bx).getRegex(), Lkt = en("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])", "gu").replace(/punct/g, bx).getRegex(), Rkt = en("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])", "gu").replace(/punct/g, bx).getRegex(), Mkt = en(/\\([punct])/, "gu").replace(/punct/g, bx).getRegex(), Dkt = en(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme", /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email", /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(), Nkt = en(sN).replace("(?:-->|$)", "-->").getRegex(), Ikt = en("^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^").replace("comment", Nkt).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), q3 = /(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/, Pkt = en(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label", q3).replace("href", /<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), Fae = en(/^!?\[(label)\]\[(ref)\]/).replace("label", q3).replace("ref", iN).getRegex(), zae = en(/^!?\[(ref)\](?:\[\])?/).replace("ref", iN).getRegex(), $kt = en("reflink|nolink(?!\\()", "g").replace("reflink", Fae).replace("nolink", zae).getRegex(), oN = { + paragraph: en(eN).replace("hr", yx).replace("heading", ` *#{1,6} *[^ +]`).replace("lheading", Dae).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex() +}, Iae = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, kkt = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, Pae = /^( {2,}|\\)\n(?!\s*$)/, Skt = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\]*?>/g, Ekt = en(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/, "u").replace(/punct/g, bx).getRegex(), _kt = en("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])", "gu").replace(/punct/g, bx).getRegex(), Akt = en("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])", "gu").replace(/punct/g, bx).getRegex(), Lkt = en(/\\([punct])/, "gu").replace(/punct/g, bx).getRegex(), Rkt = en(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme", /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email", /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(), Mkt = en(rN).replace("(?:-->|$)", "-->").getRegex(), Dkt = en("^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^").replace("comment", Mkt).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), U3 = /(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/, Nkt = en(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label", U3).replace("href", /<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), $ae = en(/^!?\[(label)\]\[(ref)\]/).replace("label", U3).replace("ref", tN).getRegex(), Bae = en(/^!?\[(ref)\](?:\[\])?/).replace("ref", tN).getRegex(), Ikt = en("reflink|nolink(?!\\()", "g").replace("reflink", $ae).replace("nolink", Bae).getRegex(), iN = { _backpedal: ly, - anyPunctuation: Mkt, - autolink: Dkt, - blockSkip: _kt, - br: Bae, - code: Tkt, + anyPunctuation: Lkt, + autolink: Rkt, + blockSkip: Ckt, + br: Pae, + code: kkt, del: ly, - emStrongLDelim: Akt, - emStrongRDelimAst: Lkt, - emStrongRDelimUnd: Rkt, - escape: $ae, - link: Pkt, - nolink: zae, - punctuation: Ekt, - reflink: Fae, - reflinkSearch: $kt, - tag: Ikt, - text: Ckt, + emStrongLDelim: Ekt, + emStrongRDelimAst: _kt, + emStrongRDelimUnd: Akt, + escape: Iae, + link: Nkt, + nolink: Bae, + punctuation: Tkt, + reflink: $ae, + reflinkSearch: Ikt, + tag: Dkt, + text: Skt, url: ly -}, Bkt = { - ...oN, - link: en(/^!?\[(label)\]\((.*?)\)/).replace("label", q3).getRegex(), - reflink: en(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", q3).getRegex() -}, Q8 = { - ...oN, - escape: en($ae).replace("])", "~|])").getRegex(), +}, Pkt = { + ...iN, + link: en(/^!?\[(label)\]\((.*?)\)/).replace("label", U3).getRegex(), + reflink: en(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", U3).getRegex() +}, q8 = { + ...iN, + escape: en(Iae).replace("])", "~|])").getRegex(), url: en(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/, "i").replace("email", /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(), _backpedal: /(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/, del: /^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/, text: /^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\ return `${this.parser.parseInline(e)}`; } link({ href: e, title: r, tokens: n }) { - const i = this.parser.parseInline(n), s = Pq(e); + const i = this.parser.parseInline(n), s = Dq(e); if (s === null) return i; e = s; @@ -42453,7 +42453,7 @@ ${e} return r && (a += ' title="' + r + '"'), a += ">" + i + "", a; } image({ href: e, title: r, text: n }) { - const i = Pq(e); + const i = Dq(e); if (i === null) return n; e = i; @@ -42464,7 +42464,7 @@ ${e} return "tokens" in e && e.tokens ? this.parser.parseInline(e.tokens) : e.text; } } -class lN { +class sN { strong({ text: e }) { return e; } @@ -42498,7 +42498,7 @@ class wc { Or(this, "options"); Or(this, "renderer"); Or(this, "textRenderer"); - this.options = e || X0, this.options.renderer = this.options.renderer || new Y3(), this.renderer = this.options.renderer, this.renderer.options = this.options, this.renderer.parser = this, this.textRenderer = new lN(); + this.options = e || X0, this.options.renderer = this.options.renderer || new q3(), this.renderer = this.options.renderer, this.renderer.options = this.options, this.renderer.parser = this, this.textRenderer = new sN(); } static parse(e, r) { return new wc(r).parse(e); @@ -42663,21 +42663,21 @@ Or(cy, "passThroughHooks", /* @__PURE__ */ new Set([ "postprocess", "processAllTokens" ])); -var TS, Vae, fb, W8, CS, Uae; -class zkt { +var SS, Fae, fb, Y8, TS, zae; +class Bkt { constructor(...e) { - iw(this, TS); + iw(this, SS); iw(this, fb); - iw(this, CS); - Or(this, "defaults", rN()); + iw(this, TS); + Or(this, "defaults", JD()); Or(this, "options", this.setOptions); - Or(this, "parse", Em(this, fb, W8).call(this, xc.lex, wc.parse)); - Or(this, "parseInline", Em(this, fb, W8).call(this, xc.lexInline, wc.parseInline)); + Or(this, "parse", Em(this, fb, Y8).call(this, xc.lex, wc.parse)); + Or(this, "parseInline", Em(this, fb, Y8).call(this, xc.lexInline, wc.parseInline)); Or(this, "Parser", wc); - Or(this, "Renderer", Y3); - Or(this, "TextRenderer", lN); + Or(this, "Renderer", q3); + Or(this, "TextRenderer", sN); Or(this, "Lexer", xc); - Or(this, "Tokenizer", U3); + Or(this, "Tokenizer", V3); Or(this, "Hooks", cy); this.use(...e); } @@ -42732,7 +42732,7 @@ class zkt { } "childTokens" in s && s.childTokens && (r.childTokens[s.name] = s.childTokens); }), i.extensions = r), n.renderer) { - const s = this.defaults.renderer || new Y3(this.defaults); + const s = this.defaults.renderer || new q3(this.defaults); for (const a in n.renderer) { if (!(a in s)) throw new Error(`renderer '${a}' does not exist`); @@ -42740,7 +42740,7 @@ class zkt { continue; const o = a; let l = n.renderer[o]; - n.useNewRenderer || (l = Em(this, TS, Vae).call(this, l, o, s)); + n.useNewRenderer || (l = Em(this, SS, Fae).call(this, l, o, s)); const u = s[o]; s[o] = (...h) => { let f = l.apply(s, h); @@ -42750,7 +42750,7 @@ class zkt { i.renderer = s; } if (n.tokenizer) { - const s = this.defaults.tokenizer || new U3(this.defaults); + const s = this.defaults.tokenizer || new V3(this.defaults); for (const a in n.tokenizer) { if (!(a in s)) throw new Error(`tokenizer '${a}' does not exist`); @@ -42804,11 +42804,11 @@ class zkt { return wc.parse(e, r != null ? r : this.defaults); } } -TS = new WeakSet(), Vae = function(e, r, n) { +SS = new WeakSet(), Fae = function(e, r, n) { switch (r) { case "heading": return function(i) { - return !i.type || i.type !== r ? e.apply(this, arguments) : e.call(this, n.parser.parseInline(i.tokens), i.depth, ukt(n.parser.parseInline(i.tokens, n.parser.textRenderer))); + return !i.type || i.type !== r ? e.apply(this, arguments) : e.call(this, n.parser.parseInline(i.tokens), i.depth, lkt(n.parser.parseInline(i.tokens, n.parser.textRenderer))); }; case "code": return function(i) { @@ -42919,11 +42919,11 @@ TS = new WeakSet(), Vae = function(e, r, n) { }; } return e; -}, fb = new WeakSet(), W8 = function(e, r) { +}, fb = new WeakSet(), Y8 = function(e, r) { return (n, i) => { const s = { ...i }, a = { ...this.defaults, ...s }; this.defaults.async === !0 && s.async === !1 && (a.silent || console.warn("marked(): The async option was set to true by an extension. The async: false option sent to parse will be ignored."), a.async = !0); - const o = Em(this, CS, Uae).call(this, !!a.silent, !!a.async); + const o = Em(this, TS, zae).call(this, !!a.silent, !!a.async); if (typeof n > "u" || n === null) return o(new Error("marked(): input parameter is undefined or null")); if (typeof n != "string") @@ -42940,7 +42940,7 @@ TS = new WeakSet(), Vae = function(e, r, n) { return o(l); } }; -}, CS = new WeakSet(), Uae = function(e, r) { +}, TS = new WeakSet(), zae = function(e, r) { return (n) => { if (n.message += ` Please report this to https://github.com/markedjs/marked.`, e) { @@ -42952,17 +42952,17 @@ Please report this to https://github.com/markedjs/marked.`, e) { throw n; }; }; -const f0 = new zkt(); +const f0 = new Bkt(); function Ur(t, e) { return f0.parse(t, e); } Ur.options = Ur.setOptions = function(t) { - return f0.setOptions(t), Ur.defaults = f0.defaults, Rae(Ur.defaults), Ur; + return f0.setOptions(t), Ur.defaults = f0.defaults, Aae(Ur.defaults), Ur; }; -Ur.getDefaults = rN; +Ur.getDefaults = JD; Ur.defaults = X0; Ur.use = function(...t) { - return f0.use(...t), Ur.defaults = f0.defaults, Rae(Ur.defaults), Ur; + return f0.use(...t), Ur.defaults = f0.defaults, Aae(Ur.defaults), Ur; }; Ur.walkTokens = function(t, e) { return f0.walkTokens(t, e); @@ -42970,11 +42970,11 @@ Ur.walkTokens = function(t, e) { Ur.parseInline = f0.parseInline; Ur.Parser = wc; Ur.parser = wc.parse; -Ur.Renderer = Y3; -Ur.TextRenderer = lN; +Ur.Renderer = q3; +Ur.TextRenderer = sN; Ur.Lexer = xc; Ur.lexer = xc.lex; -Ur.Tokenizer = U3; +Ur.Tokenizer = V3; Ur.Hooks = cy; Ur.parse = Ur; Ur.options; @@ -42984,7 +42984,7 @@ Ur.walkTokens; Ur.parseInline; wc.parse; xc.lex; -function qae(t) { +function Vae(t) { for (var e = [], r = 1; r < arguments.length; r++) e[r - 1] = arguments[r]; var n = Array.from(typeof t == "string" ? [t] : t); @@ -43016,15 +43016,15 @@ function qae(t) { `)), a += f + n[l + 1]; }), a; } -function Yae(t, { markdownAutoWrap: e }) { +function Uae(t, { markdownAutoWrap: e }) { const n = t.replace(//g, ` `).replace(/\n{2,}/g, ` -`), i = qae(n); +`), i = Vae(n); return e === !1 ? i.replace(/ /g, " ") : i; } -x(Yae, "preprocessMarkdown"); -function Qae(t, e = {}) { - const r = Yae(t, e), n = Ur.lexer(r), i = [[]]; +x(Uae, "preprocessMarkdown"); +function qae(t, e = {}) { + const r = Uae(t, e), n = Ur.lexer(r), i = [[]]; let s = 0; function a(o, l = "normal") { o.type === "text" ? o.text.split(` @@ -43043,8 +43043,8 @@ function Qae(t, e = {}) { }) : o.type === "html" && i[s].push({ content: o.text, type: "normal" }); }), i; } -x(Qae, "markdownToLines"); -function Wae(t, { markdownAutoWrap: e } = {}) { +x(qae, "markdownToLines"); +function Yae(t, { markdownAutoWrap: e } = {}) { const r = Ur.lexer(t); function n(i) { var s, a, o; @@ -43052,37 +43052,37 @@ function Wae(t, { markdownAutoWrap: e } = {}) { } return x(n, "output"), r.map(n).join(""); } -x(Wae, "markdownToHTML"); -function Gae(t) { +x(Yae, "markdownToHTML"); +function Qae(t) { return Intl.Segmenter ? [...new Intl.Segmenter().segment(t)].map((e) => e.segment) : [...t]; } -x(Gae, "splitTextToChars"); -function Hae(t, e) { - const r = Gae(e.content); - return cN(t, [], r, e.type); +x(Qae, "splitTextToChars"); +function Wae(t, e) { + const r = Qae(e.content); + return aN(t, [], r, e.type); } -x(Hae, "splitWordToFitWidth"); -function cN(t, e, r, n) { +x(Wae, "splitWordToFitWidth"); +function aN(t, e, r, n) { if (r.length === 0) return [ { content: e.join(""), type: n }, { content: "", type: n } ]; const [i, ...s] = r, a = [...e, i]; - return t([{ content: a.join(""), type: n }]) ? cN(t, a, s, n) : (e.length === 0 && i && (e.push(i), r.shift()), [ + return t([{ content: a.join(""), type: n }]) ? aN(t, a, s, n) : (e.length === 0 && i && (e.push(i), r.shift()), [ { content: e.join(""), type: n }, { content: r.join(""), type: n } ]); } -x(cN, "splitWordToFitWidthRecursion"); -function Xae(t, e) { +x(aN, "splitWordToFitWidthRecursion"); +function Gae(t, e) { if (t.some(({ content: r }) => r.includes(` `))) throw new Error("splitLineToFitWidth does not support newlines in the line"); - return Q3(t, e); + return Y3(t, e); } -x(Xae, "splitLineToFitWidth"); -function Q3(t, e, r = [], n = []) { +x(Gae, "splitLineToFitWidth"); +function Y3(t, e, r = [], n = []) { var o; if (t.length === 0) return n.length > 0 && r.push(n), r.length > 0 ? r : []; @@ -43090,58 +43090,58 @@ function Q3(t, e, r = [], n = []) { t[0].content === " " && (i = " ", t.shift()); const s = (o = t.shift()) != null ? o : { content: " ", type: "normal" }, a = [...n]; if (i !== "" && a.push({ content: i, type: "normal" }), a.push(s), e(a)) - return Q3(t, e, r, a); + return Y3(t, e, r, a); if (n.length > 0) r.push(n), t.unshift(s); else if (s.content) { - const [l, u] = Hae(e, s); + const [l, u] = Wae(e, s); r.push([l]), u.content && t.unshift(u); } - return Q3(t, e, r); + return Y3(t, e, r); } -x(Q3, "splitLineToFitWidthRecursion"); -function G8(t, e) { +x(Y3, "splitLineToFitWidthRecursion"); +function Q8(t, e) { e && t.attr("style", e); } -x(G8, "applyStyle"); -async function Zae(t, e, r, n, i = !1) { +x(Q8, "applyStyle"); +async function Hae(t, e, r, n, i = !1) { const s = t.append("foreignObject"), a = s.append("xhtml:div"); let o = e.label; e.label && ca(e.label) && (o = await lx(e.label.replace(at.lineBreakRegex, ` `), be())); const l = e.isNode ? "nodeLabel" : "edgeLabel", u = a.append("span"); - u.html(o), G8(u, e.labelStyle), u.attr("class", `${l} ${n}`), G8(a, e.labelStyle), a.style("display", "table-cell"), a.style("white-space", "nowrap"), a.style("line-height", "1.5"), a.style("max-width", r + "px"), a.style("text-align", "center"), a.attr("xmlns", "http://www.w3.org/1999/xhtml"), i && a.attr("class", "labelBkg"); + u.html(o), Q8(u, e.labelStyle), u.attr("class", `${l} ${n}`), Q8(a, e.labelStyle), a.style("display", "table-cell"), a.style("white-space", "nowrap"), a.style("line-height", "1.5"), a.style("max-width", r + "px"), a.style("text-align", "center"), a.attr("xmlns", "http://www.w3.org/1999/xhtml"), i && a.attr("class", "labelBkg"); let h = a.node().getBoundingClientRect(); return h.width === r && (a.style("display", "table"), a.style("white-space", "break-spaces"), a.style("width", r + "px"), h = a.node().getBoundingClientRect()), s.node(); } -x(Zae, "addHtmlSpan"); -function UT(t, e, r) { +x(Hae, "addHtmlSpan"); +function zT(t, e, r) { return t.append("tspan").attr("class", "text-outer-tspan").attr("x", 0).attr("y", e * r - 0.1 + "em").attr("dy", r + "em"); } -x(UT, "createTspan"); -function jae(t, e, r) { - const n = t.append("text"), i = UT(n, 1, e); - qT(i, r); +x(zT, "createTspan"); +function Xae(t, e, r) { + const n = t.append("text"), i = zT(n, 1, e); + VT(i, r); const s = i.node().getComputedTextLength(); return n.remove(), s; } -x(jae, "computeWidthOfText"); -function Kae(t, e, r) { +x(Xae, "computeWidthOfText"); +function Zae(t, e, r) { var a; - const n = t.append("text"), i = UT(n, 1, e); - qT(i, [{ content: r, type: "normal" }]); + const n = t.append("text"), i = zT(n, 1, e); + VT(i, [{ content: r, type: "normal" }]); const s = (a = i.node()) == null ? void 0 : a.getBoundingClientRect(); return s && n.remove(), s; } -x(Kae, "computeDimensionOfText"); -function Jae(t, e, r, n = !1) { +x(Zae, "computeDimensionOfText"); +function jae(t, e, r, n = !1) { const s = e.append("g"), a = s.insert("rect").attr("class", "background").attr("style", "stroke: none"), o = s.append("text").attr("y", "-10.1"); let l = 0; for (const u of r) { - const h = /* @__PURE__ */ x((d) => jae(s, 1.1, d) <= t, "checkWidth"), f = h(u) ? [u] : Xae(u, h); + const h = /* @__PURE__ */ x((d) => Xae(s, 1.1, d) <= t, "checkWidth"), f = h(u) ? [u] : Gae(u, h); for (const d of f) { - const p = UT(o, l, 1.1); - qT(p, d), l++; + const p = zT(o, l, 1.1); + VT(p, d), l++; } } if (n) { @@ -43150,21 +43150,21 @@ function Jae(t, e, r, n = !1) { } else return o.node(); } -x(Jae, "createFormattedText"); -function qT(t, e) { +x(jae, "createFormattedText"); +function VT(t, e) { t.text(""), e.forEach((r, n) => { const i = t.append("tspan").attr("font-style", r.type === "em" ? "italic" : "normal").attr("class", "text-inner-tspan").attr("font-weight", r.type === "strong" ? "bold" : "normal"); n === 0 ? i.text(r.content) : i.text(" " + r.content); }); } -x(qT, "updateTextContentAndStyles"); -function uN(t) { +x(VT, "updateTextContentAndStyles"); +function oN(t) { return t.replace( /fa[bklrs]?:fa-[\w-]+/g, (e) => `` ); } -x(uN, "replaceIconSubstring"); +x(oN, "replaceIconSubstring"); var Kc = /* @__PURE__ */ x(async (t, e = "", { style: r = "", isTitle: n = !1, @@ -43185,14 +43185,14 @@ var Kc = /* @__PURE__ */ x(async (t, e = "", { "addSvgBackground: ", l ), s) { - const h = Wae(e, u), f = uN(h0(h)), d = e.replace(/\\\\/g, "\\"), p = { + const h = Yae(e, u), f = oN(h0(h)), d = e.replace(/\\\\/g, "\\"), p = { isNode: a, label: ca(e) ? d : f, labelStyle: r.replace("fill:", "color:") }; - return await Zae(t, p, o, i, l); + return await Hae(t, p, o, i, l); } else { - const h = e.replace(//g, "
"), f = Qae(h.replace("
", "
"), u), d = Jae( + const h = e.replace(//g, "
"), f = qae(h.replace("
", "
"), u), d = jae( o, t, f, @@ -43211,7 +43211,7 @@ var Kc = /* @__PURE__ */ x(async (t, e = "", { return d; } }, "createText"); -function n_(t, e, r) { +function t_(t, e, r) { if (t && t.length) { const [n, i] = e, s = Math.PI / 180 * r, a = Math.cos(s), o = Math.sin(s); for (const l of t) { @@ -43220,19 +43220,19 @@ function n_(t, e, r) { } } } -function Vkt(t, e) { +function Fkt(t, e) { return t[0] === e[0] && t[1] === e[1]; } -function Ukt(t, e, r, n = 1) { +function zkt(t, e, r, n = 1) { const i = r, s = Math.max(e, 0.1), a = t[0] && t[0][0] && typeof t[0][0] == "number" ? [t] : t, o = [0, 0]; if (i) for (const u of a) - n_(u, o, i); + t_(u, o, i); const l = function(u, h, f) { const d = []; for (const b of u) { const w = [...b]; - Vkt(w[0], w[w.length - 1]) || w.push([w[0][0], w[0][1]]), w.length > 2 && d.push(w); + Fkt(w[0], w[w.length - 1]) || w.push([w[0][0], w[0][1]]), w.length > 2 && d.push(w); } const p = []; h = Math.max(h, 0.1); @@ -43273,10 +43273,10 @@ function Ukt(t, e, r, n = 1) { }(a, s, n); if (i) { for (const u of a) - n_(u, o, -i); + t_(u, o, -i); (function(u, h, f) { const d = []; - u.forEach((p) => d.push(...p)), n_(d, h, f); + u.forEach((p) => d.push(...p)), t_(d, h, f); })(l, o, -i); } return l; @@ -43287,9 +43287,9 @@ function xx(t, e) { let i = e.hachureGap; i < 0 && (i = 4 * e.strokeWidth), i = Math.round(Math.max(i, 0.1)); let s = 1; - return e.roughness >= 1 && (((r = e.randomizer) === null || r === void 0 ? void 0 : r.next()) || Math.random()) > 0.7 && (s = i), Ukt(t, i, n, s || 1); + return e.roughness >= 1 && (((r = e.randomizer) === null || r === void 0 ? void 0 : r.next()) || Math.random()) > 0.7 && (s = i), zkt(t, i, n, s || 1); } -class hN { +class lN { constructor(e) { this.helper = e; } @@ -43307,27 +43307,27 @@ class hN { return n; } } -function YT(t) { +function UT(t) { const e = t[0], r = t[1]; return Math.sqrt(Math.pow(e[0] - r[0], 2) + Math.pow(e[1] - r[1], 2)); } -class qkt extends hN { +class Vkt extends lN { fillPolygons(e, r) { let n = r.hachureGap; n < 0 && (n = 4 * r.strokeWidth), n = Math.max(n, 0.1); const i = xx(e, Object.assign({}, r, { hachureGap: n })), s = Math.PI / 180 * r.hachureAngle, a = [], o = 0.5 * n * Math.cos(s), l = 0.5 * n * Math.sin(s); for (const [u, h] of i) - YT([u, h]) && a.push([[u[0] - o, u[1] + l], [...h]], [[u[0] + o, u[1] - l], [...h]]); + UT([u, h]) && a.push([[u[0] - o, u[1] + l], [...h]], [[u[0] + o, u[1] - l], [...h]]); return { type: "fillSketch", ops: this.renderLines(a, r) }; } } -class Ykt extends hN { +class Ukt extends lN { fillPolygons(e, r) { const n = this._fillPolygons(e, r), i = Object.assign({}, r, { hachureAngle: r.hachureAngle + 90 }), s = this._fillPolygons(e, i); return n.ops = n.ops.concat(s.ops), n; } } -class Qkt { +class qkt { constructor(e) { this.helper = e; } @@ -43343,7 +43343,7 @@ class Qkt { s < 0 && (s = r.strokeWidth / 2); const a = i / 4; for (const o of e) { - const l = YT(o), u = l / i, h = Math.ceil(u) - 1, f = l - h * i, d = (o[0][0] + o[1][0]) / 2 - i / 4, p = Math.min(o[0][1], o[1][1]); + const l = UT(o), u = l / i, h = Math.ceil(u) - 1, f = l - h * i, d = (o[0][0] + o[1][0]) / 2 - i / 4, p = Math.min(o[0][1], o[1][1]); for (let g = 0; g < h; g++) { const m = p + f + g * i, v = d - a + 2 * Math.random() * a, y = m - a + 2 * Math.random() * a, b = this.helper.ellipse(v, y, s, s, r); n.push(...b.ops); @@ -43352,7 +43352,7 @@ class Qkt { return { type: "fillSketch", ops: n }; } } -class Wkt { +class Ykt { constructor(e) { this.helper = e; } @@ -43363,7 +43363,7 @@ class Wkt { dashedLine(e, r) { const n = r.dashOffset < 0 ? r.hachureGap < 0 ? 4 * r.strokeWidth : r.hachureGap : r.dashOffset, i = r.dashGap < 0 ? r.hachureGap < 0 ? 4 * r.strokeWidth : r.hachureGap : r.dashGap, s = []; return e.forEach((a) => { - const o = YT(a), l = Math.floor(o / (n + i)), u = (o + i - l * (n + i)) / 2; + const o = UT(a), l = Math.floor(o / (n + i)), u = (o + i - l * (n + i)) / 2; let h = a[0], f = a[1]; h[0] > f[0] && (h = a[1], f = a[0]); const d = Math.atan((f[1] - h[1]) / (f[0] - h[0])); @@ -43374,7 +43374,7 @@ class Wkt { }), s; } } -class Gkt { +class Qkt { constructor(e) { this.helper = e; } @@ -43385,7 +43385,7 @@ class Gkt { zigzagLines(e, r, n) { const i = []; return e.forEach((s) => { - const a = YT(s), o = Math.round(a / (2 * r)); + const a = UT(s), o = Math.round(a / (2 * r)); let l = s[0], u = s[1]; l[0] > u[0] && (l = s[1], u = s[0]); const h = Math.atan((u[1] - l[1]) / (u[0] - l[0])); @@ -43397,7 +43397,7 @@ class Gkt { } } const va = {}; -class Hkt { +class Wkt { constructor(e) { this.seed = e; } @@ -43405,40 +43405,40 @@ class Hkt { return this.seed ? (2 ** 31 - 1 & (this.seed = Math.imul(48271, this.seed))) / 2 ** 31 : Math.random(); } } -const Xkt = 0, i_ = 1, zq = 2, rO = { A: 7, a: 7, C: 6, c: 6, H: 1, h: 1, L: 2, l: 2, M: 2, m: 2, Q: 4, q: 4, S: 4, s: 4, T: 2, t: 2, V: 1, v: 1, Z: 0, z: 0 }; -function s_(t, e) { +const Gkt = 0, r_ = 1, $q = 2, rO = { A: 7, a: 7, C: 6, c: 6, H: 1, h: 1, L: 2, l: 2, M: 2, m: 2, Q: 4, q: 4, S: 4, s: 4, T: 2, t: 2, V: 1, v: 1, Z: 0, z: 0 }; +function n_(t, e) { return t.type === e; } -function fN(t) { +function cN(t) { const e = [], r = function(a) { const o = new Array(); for (; a !== ""; ) if (a.match(/^([ \t\r\n,]+)/)) a = a.substr(RegExp.$1.length); else if (a.match(/^([aAcChHlLmMqQsStTvVzZ])/)) - o[o.length] = { type: Xkt, text: RegExp.$1 }, a = a.substr(RegExp.$1.length); + o[o.length] = { type: Gkt, text: RegExp.$1 }, a = a.substr(RegExp.$1.length); else { if (!a.match(/^(([-+]?[0-9]+(\.[0-9]*)?|[-+]?\.[0-9]+)([eE][-+]?[0-9]+)?)/)) return []; - o[o.length] = { type: i_, text: `${parseFloat(RegExp.$1)}` }, a = a.substr(RegExp.$1.length); + o[o.length] = { type: r_, text: `${parseFloat(RegExp.$1)}` }, a = a.substr(RegExp.$1.length); } - return o[o.length] = { type: zq, text: "" }, o; + return o[o.length] = { type: $q, text: "" }, o; }(t); let n = "BOD", i = 0, s = r[i]; - for (; !s_(s, zq); ) { + for (; !n_(s, $q); ) { let a = 0; const o = []; if (n === "BOD") { if (s.text !== "M" && s.text !== "m") - return fN("M0,0" + t); + return cN("M0,0" + t); i++, a = rO[s.text], n = s.text; } else - s_(s, i_) ? a = rO[n] : (i++, a = rO[s.text], n = s.text); + n_(s, r_) ? a = rO[n] : (i++, a = rO[s.text], n = s.text); if (!(i + a < r.length)) throw new Error("Path data ended short"); for (let l = i; l < i + a; l++) { const u = r[l]; - if (!s_(u, i_)) + if (!n_(u, r_)) throw new Error("Param not a number: " + n + "," + u.text); o[o.length] = +u.text; } @@ -43451,7 +43451,7 @@ function fN(t) { } return e; } -function eoe(t) { +function Kae(t) { let e = 0, r = 0, n = 0, i = 0; const s = []; for (const { key: a, data: o } of t) @@ -43522,7 +43522,7 @@ function eoe(t) { } return s; } -function toe(t) { +function Jae(t) { const e = []; let r = "", n = 0, i = 0, s = 0, a = 0, o = 0, l = 0; for (const { key: u, data: h } of t) { @@ -43562,7 +43562,7 @@ function toe(t) { } case "A": { const f = Math.abs(h[0]), d = Math.abs(h[1]), p = h[2], g = h[3], m = h[4], v = h[5], y = h[6]; - f === 0 || d === 0 ? (e.push({ key: "C", data: [n, i, v, y, v, y] }), n = v, i = y) : (n !== v || i !== y) && (roe(n, i, v, y, f, d, p, g, m).forEach(function(b) { + f === 0 || d === 0 ? (e.push({ key: "C", data: [n, i, v, y, v, y] }), n = v, i = y) : (n !== v || i !== y) && (eoe(n, i, v, y, f, d, p, g, m).forEach(function(b) { e.push({ key: "C", data: b }); }), n = v, i = y); break; @@ -43577,7 +43577,7 @@ function toe(t) { function jm(t, e, r) { return [t * Math.cos(r) - e * Math.sin(r), t * Math.sin(r) + e * Math.cos(r)]; } -function roe(t, e, r, n, i, s, a, o, l, u) { +function eoe(t, e, r, n, i, s, a, o, l, u) { const h = (f = a, Math.PI * f / 180); var f; let d = [], p = 0, g = 0, m = 0, v = 0; @@ -43594,7 +43594,7 @@ function roe(t, e, r, n, i, s, a, o, l, u) { let y = g - p; if (Math.abs(y) > 120 * Math.PI / 180) { const $ = g, k = r, N = n; - g = l && g > p ? p + 120 * Math.PI / 180 * 1 : p + 120 * Math.PI / 180 * -1, d = roe(r = m + i * Math.cos(g), n = v + s * Math.sin(g), k, N, i, s, a, 0, l, [g, $, m, v]); + g = l && g > p ? p + 120 * Math.PI / 180 * 1 : p + 120 * Math.PI / 180 * -1, d = eoe(r = m + i * Math.cos(g), n = v + s * Math.sin(g), k, N, i, s, a, 0, l, [g, $, m, v]); } y = g - p; const b = Math.cos(p), w = Math.sin(p), O = Math.cos(g), S = Math.sin(g), C = Math.tan(y / 4), T = 4 / 3 * i * C, L = 4 / 3 * s * C, E = [t, e], R = [t + T * w, e - L * b], _ = [r + T * S, n - L * O], A = [r, n]; @@ -43610,20 +43610,20 @@ function roe(t, e, r, n, i, s, a, o, l, u) { return $; } } -const Zkt = { randOffset: function(t, e) { +const Hkt = { randOffset: function(t, e) { return jt(t, e); }, randOffsetWithRange: function(t, e, r) { - return W3(t, e, r); + return Q3(t, e, r); }, ellipse: function(t, e, r, n, i) { - const s = ioe(r, n, i); - return H8(t, e, i, s).opset; + const s = roe(r, n, i); + return W8(t, e, i, s).opset; }, doubleLineOps: function(t, e, r, n, i) { return wf(t, e, r, n, i, !0); } }; -function noe(t, e, r, n, i) { +function toe(t, e, r, n, i) { return { type: "path", ops: wf(t, e, r, n, i) }; } -function P4(t, e, r) { +function I4(t, e, r) { const n = (t || []).length; if (n > 2) { const i = []; @@ -43631,20 +43631,20 @@ function P4(t, e, r) { i.push(...wf(t[s][0], t[s][1], t[s + 1][0], t[s + 1][1], r)); return e && i.push(...wf(t[n - 1][0], t[n - 1][1], t[0][0], t[0][1], r)), { type: "path", ops: i }; } - return n === 2 ? noe(t[0][0], t[0][1], t[1][0], t[1][1], r) : { type: "path", ops: [] }; + return n === 2 ? toe(t[0][0], t[0][1], t[1][0], t[1][1], r) : { type: "path", ops: [] }; } -function jkt(t, e, r, n, i) { +function Xkt(t, e, r, n, i) { return function(s, a) { - return P4(s, !0, a); + return I4(s, !0, a); }([[t, e], [t + r, e], [t + r, e + n], [t, e + n]], i); } -function Vq(t, e) { +function Bq(t, e) { if (t.length) { - const r = typeof t[0][0] == "number" ? [t] : t, n = nO(r[0], 1 * (1 + 0.2 * e.roughness), e), i = e.disableMultiStroke ? [] : nO(r[0], 1.5 * (1 + 0.22 * e.roughness), Yq(e)); + const r = typeof t[0][0] == "number" ? [t] : t, n = nO(r[0], 1 * (1 + 0.2 * e.roughness), e), i = e.disableMultiStroke ? [] : nO(r[0], 1.5 * (1 + 0.22 * e.roughness), Vq(e)); for (let s = 1; s < r.length; s++) { const a = r[s]; if (a.length) { - const o = nO(a, 1 * (1 + 0.2 * e.roughness), e), l = e.disableMultiStroke ? [] : nO(a, 1.5 * (1 + 0.22 * e.roughness), Yq(e)); + const o = nO(a, 1 * (1 + 0.2 * e.roughness), e), l = e.disableMultiStroke ? [] : nO(a, 1.5 * (1 + 0.22 * e.roughness), Vq(e)); for (const u of o) u.op !== "move" && n.push(u); for (const u of l) @@ -43655,22 +43655,22 @@ function Vq(t, e) { } return { type: "path", ops: [] }; } -function ioe(t, e, r) { +function roe(t, e, r) { const n = Math.sqrt(2 * Math.PI * Math.sqrt((Math.pow(t / 2, 2) + Math.pow(e / 2, 2)) / 2)), i = Math.ceil(Math.max(r.curveStepCount, r.curveStepCount / Math.sqrt(200) * n)), s = 2 * Math.PI / i; let a = Math.abs(t / 2), o = Math.abs(e / 2); const l = 1 - r.curveFitting; return a += jt(a * l, r), o += jt(o * l, r), { increment: s, rx: a, ry: o }; } -function H8(t, e, r, n) { - const [i, s] = Qq(n.increment, t, e, n.rx, n.ry, 1, n.increment * W3(0.1, W3(0.4, 1, r), r), r); - let a = G3(i, null, r); +function W8(t, e, r, n) { + const [i, s] = Uq(n.increment, t, e, n.rx, n.ry, 1, n.increment * Q3(0.1, Q3(0.4, 1, r), r), r); + let a = W3(i, null, r); if (!r.disableMultiStroke && r.roughness !== 0) { - const [o] = Qq(n.increment, t, e, n.rx, n.ry, 1.5, 0, r), l = G3(o, null, r); + const [o] = Uq(n.increment, t, e, n.rx, n.ry, 1.5, 0, r), l = W3(o, null, r); a = a.concat(l); } return { estimatedPoints: s, opset: { type: "path", ops: a } }; } -function Uq(t, e, r, n, i, s, a, o, l) { +function Fq(t, e, r, n, i, s, a, o, l) { const u = t, h = e; let f = Math.abs(r / 2), d = Math.abs(n / 2); f += jt(0.01 * f, l), d += jt(0.01 * d, l); @@ -43678,15 +43678,15 @@ function Uq(t, e, r, n, i, s, a, o, l) { for (; p < 0; ) p += 2 * Math.PI, g += 2 * Math.PI; g - p > 2 * Math.PI && (p = 0, g = 2 * Math.PI); - const m = 2 * Math.PI / l.curveStepCount, v = Math.min(m / 2, (g - p) / 2), y = Wq(v, u, h, f, d, p, g, 1, l); + const m = 2 * Math.PI / l.curveStepCount, v = Math.min(m / 2, (g - p) / 2), y = qq(v, u, h, f, d, p, g, 1, l); if (!l.disableMultiStroke) { - const b = Wq(v, u, h, f, d, p, g, 1.5, l); + const b = qq(v, u, h, f, d, p, g, 1.5, l); y.push(...b); } return a && (o ? y.push(...wf(u, h, u + f * Math.cos(p), h + d * Math.sin(p), l), ...wf(u, h, u + f * Math.cos(g), h + d * Math.sin(g), l)) : y.push({ op: "lineTo", data: [u, h] }, { op: "lineTo", data: [u + f * Math.cos(p), h + d * Math.sin(p)] })), { type: "path", ops: y }; } -function qq(t, e) { - const r = toe(eoe(fN(t))), n = []; +function zq(t, e) { + const r = Jae(Kae(cN(t))), n = []; let i = [0, 0], s = [0, 0]; for (const { key: a, data: o } of r) switch (a) { @@ -43698,7 +43698,7 @@ function qq(t, e) { break; case "C": { const [l, u, h, f, d, p] = o; - n.push(...Kkt(l, u, h, f, d, p, s, e)), s = [d, p]; + n.push(...Zkt(l, u, h, f, d, p, s, e)), s = [d, p]; break; } case "Z": @@ -43706,7 +43706,7 @@ function qq(t, e) { } return { type: "path", ops: n }; } -function a_(t, e) { +function i_(t, e) { const r = []; for (const n of t) if (n.length) { @@ -43725,53 +43725,53 @@ function dp(t, e) { if (!va[i]) switch (i) { case "zigzag": - va[i] || (va[i] = new qkt(n)); + va[i] || (va[i] = new Vkt(n)); break; case "cross-hatch": - va[i] || (va[i] = new Ykt(n)); + va[i] || (va[i] = new Ukt(n)); break; case "dots": - va[i] || (va[i] = new Qkt(n)); + va[i] || (va[i] = new qkt(n)); break; case "dashed": - va[i] || (va[i] = new Wkt(n)); + va[i] || (va[i] = new Ykt(n)); break; case "zigzag-line": - va[i] || (va[i] = new Gkt(n)); + va[i] || (va[i] = new Qkt(n)); break; default: - i = "hachure", va[i] || (va[i] = new hN(n)); + i = "hachure", va[i] || (va[i] = new lN(n)); } return va[i]; - }(e, Zkt).fillPolygons(t, e); + }(e, Hkt).fillPolygons(t, e); } -function Yq(t) { +function Vq(t) { const e = Object.assign({}, t); return e.randomizer = void 0, t.seed && (e.seed = t.seed + 1), e; } -function soe(t) { - return t.randomizer || (t.randomizer = new Hkt(t.seed || 0)), t.randomizer.next(); +function noe(t) { + return t.randomizer || (t.randomizer = new Wkt(t.seed || 0)), t.randomizer.next(); } -function W3(t, e, r, n = 1) { - return r.roughness * n * (soe(r) * (e - t) + t); +function Q3(t, e, r, n = 1) { + return r.roughness * n * (noe(r) * (e - t) + t); } function jt(t, e, r = 1) { - return W3(-t, t, e, r); + return Q3(-t, t, e, r); } function wf(t, e, r, n, i, s = !1) { - const a = s ? i.disableMultiStrokeFill : i.disableMultiStroke, o = X8(t, e, r, n, i, !0, !1); + const a = s ? i.disableMultiStrokeFill : i.disableMultiStroke, o = G8(t, e, r, n, i, !0, !1); if (a) return o; - const l = X8(t, e, r, n, i, !0, !0); + const l = G8(t, e, r, n, i, !0, !0); return o.concat(l); } -function X8(t, e, r, n, i, s, a) { +function G8(t, e, r, n, i, s, a) { const o = Math.pow(t - r, 2) + Math.pow(e - n, 2), l = Math.sqrt(o); let u = 1; u = l < 200 ? 1 : l > 500 ? 0.4 : -16668e-7 * l + 1.233334; let h = i.maxRandomnessOffset || 0; h * h * 100 > o && (h = l / 10); - const f = h / 2, d = 0.2 + 0.2 * soe(i); + const f = h / 2, d = 0.2 + 0.2 * noe(i); let p = i.bowing * i.maxRandomnessOffset * (n - e) / 200, g = i.bowing * i.maxRandomnessOffset * (t - r) / 200; p = jt(p, i, u), g = jt(g, i, u); const m = [], v = () => jt(f, i, u), y = () => jt(h, i, u), b = i.preserveVertices; @@ -43784,9 +43784,9 @@ function nO(t, e, r) { n.push([t[0][0] + jt(e, r), t[0][1] + jt(e, r)]), n.push([t[0][0] + jt(e, r), t[0][1] + jt(e, r)]); for (let i = 1; i < t.length; i++) n.push([t[i][0] + jt(e, r), t[i][1] + jt(e, r)]), i === t.length - 1 && n.push([t[i][0] + jt(e, r), t[i][1] + jt(e, r)]); - return G3(n, null, r); + return W3(n, null, r); } -function G3(t, e, r) { +function W3(t, e, r) { const n = t.length, i = []; if (n > 3) { const s = [], a = 1 - r.curveTightness; @@ -43800,10 +43800,10 @@ function G3(t, e, r) { i.push({ op: "lineTo", data: [e[0] + jt(o, r), e[1] + jt(o, r)] }); } } else - n === 3 ? (i.push({ op: "move", data: [t[1][0], t[1][1]] }), i.push({ op: "bcurveTo", data: [t[1][0], t[1][1], t[2][0], t[2][1], t[2][0], t[2][1]] })) : n === 2 && i.push(...X8(t[0][0], t[0][1], t[1][0], t[1][1], r, !0, !0)); + n === 3 ? (i.push({ op: "move", data: [t[1][0], t[1][1]] }), i.push({ op: "bcurveTo", data: [t[1][0], t[1][1], t[2][0], t[2][1], t[2][0], t[2][1]] })) : n === 2 && i.push(...G8(t[0][0], t[0][1], t[1][0], t[1][1], r, !0, !0)); return i; } -function Qq(t, e, r, n, i, s, a, o) { +function Uq(t, e, r, n, i, s, a, o) { const l = [], u = []; if (o.roughness === 0) { t /= 4, u.push([e + n * Math.cos(-t), r + i * Math.sin(-t)]); @@ -43824,14 +43824,14 @@ function Qq(t, e, r, n, i, s, a, o) { } return [u, l]; } -function Wq(t, e, r, n, i, s, a, o, l) { +function qq(t, e, r, n, i, s, a, o, l) { const u = s + jt(0.1, l), h = []; h.push([jt(o, l) + e + 0.9 * n * Math.cos(u - t), jt(o, l) + r + 0.9 * i * Math.sin(u - t)]); for (let f = u; f <= a; f += t) h.push([jt(o, l) + e + n * Math.cos(f), jt(o, l) + r + i * Math.sin(f)]); - return h.push([e + n * Math.cos(a), r + i * Math.sin(a)]), h.push([e + n * Math.cos(a), r + i * Math.sin(a)]), G3(h, null, l); + return h.push([e + n * Math.cos(a), r + i * Math.sin(a)]), h.push([e + n * Math.cos(a), r + i * Math.sin(a)]), W3(h, null, l); } -function Kkt(t, e, r, n, i, s, a, o) { +function Zkt(t, e, r, n, i, s, a, o) { const l = [], u = [o.maxRandomnessOffset || 1, (o.maxRandomnessOffset || 1) + 0.3]; let h = [0, 0]; const f = o.disableMultiStroke ? 1 : 2, d = o.preserveVertices; @@ -43842,7 +43842,7 @@ function Kkt(t, e, r, n, i, s, a, o) { function Km(t) { return [...t]; } -function Gq(t, e = 0) { +function Yq(t, e = 0) { const r = t.length; if (r < 3) throw new Error("A curve must have at least three points."); @@ -43863,20 +43863,20 @@ function Gq(t, e = 0) { } return n; } -function $4(t, e) { +function P4(t, e) { return Math.pow(t[0] - e[0], 2) + Math.pow(t[1] - e[1], 2); } -function Jkt(t, e, r) { - const n = $4(e, r); +function jkt(t, e, r) { + const n = P4(e, r); if (n === 0) - return $4(t, e); + return P4(t, e); let i = ((t[0] - e[0]) * (r[0] - e[0]) + (t[1] - e[1]) * (r[1] - e[1])) / n; - return i = Math.max(0, Math.min(1, i)), $4(t, cd(e, r, i)); + return i = Math.max(0, Math.min(1, i)), P4(t, cd(e, r, i)); } function cd(t, e, r) { return [t[0] + (e[0] - t[0]) * r, t[1] + (e[1] - t[1]) * r]; } -function Z8(t, e, r, n) { +function H8(t, e, r, n) { const i = n || []; if (function(o, l) { const u = o[l + 0], h = o[l + 1], f = o[l + 2], d = o[l + 3]; @@ -43890,34 +43890,34 @@ function Z8(t, e, r, n) { return v *= v, p < m && (p = m), g < v && (g = v), p + g; }(t, e) < r) { const o = t[e + 0]; - i.length ? (s = i[i.length - 1], a = o, Math.sqrt($4(s, a)) > 1 && i.push(o)) : i.push(o), i.push(t[e + 3]); + i.length ? (s = i[i.length - 1], a = o, Math.sqrt(P4(s, a)) > 1 && i.push(o)) : i.push(o), i.push(t[e + 3]); } else { const l = t[e + 0], u = t[e + 1], h = t[e + 2], f = t[e + 3], d = cd(l, u, 0.5), p = cd(u, h, 0.5), g = cd(h, f, 0.5), m = cd(d, p, 0.5), v = cd(p, g, 0.5), y = cd(m, v, 0.5); - Z8([l, d, m, y], 0, r, i), Z8([y, v, g, f], 0, r, i); + H8([l, d, m, y], 0, r, i), H8([y, v, g, f], 0, r, i); } var s, a; return i; } -function eSt(t, e) { - return H3(t, 0, t.length, e); +function Kkt(t, e) { + return G3(t, 0, t.length, e); } -function H3(t, e, r, n, i) { +function G3(t, e, r, n, i) { const s = i || [], a = t[e], o = t[r - 1]; let l = 0, u = 1; for (let h = e + 1; h < r - 1; ++h) { - const f = Jkt(t[h], a, o); + const f = jkt(t[h], a, o); f > l && (l = f, u = h); } - return Math.sqrt(l) > n ? (H3(t, e, u + 1, n, s), H3(t, u, r, n, s)) : (s.length || s.push(a), s.push(o)), s; + return Math.sqrt(l) > n ? (G3(t, e, u + 1, n, s), G3(t, u, r, n, s)) : (s.length || s.push(a), s.push(o)), s; } -function o_(t, e = 0.15, r) { +function s_(t, e = 0.15, r) { const n = [], i = (t.length - 1) / 3; for (let s = 0; s < i; s++) - Z8(t, 3 * s, e, n); - return r && r > 0 ? H3(n, 0, n.length, r) : n; + H8(t, 3 * s, e, n); + return r && r > 0 ? G3(n, 0, n.length, r) : n; } const Xa = "none"; -class X3 { +class H3 { constructor(e) { this.defaultOptions = { maxRandomnessOffset: 2, roughness: 1, bowing: 1, stroke: "#000", strokeWidth: 1, curveTightness: 0, curveFitting: 0.95, curveStepCount: 9, fillStyle: "hachure", fillWeight: -1, hachureAngle: -41, hachureGap: -1, dashOffset: -1, dashGap: -1, zigzagOffset: -1, seed: 0, disableMultiStroke: !1, disableMultiStrokeFill: !1, preserveVertices: !1, fillShapeRoughnessGain: 0.8 }, this.config = e || {}, this.config.options && (this.defaultOptions = this._o(this.config.options)); } @@ -43932,21 +43932,21 @@ class X3 { } line(e, r, n, i, s) { const a = this._o(s); - return this._d("line", [noe(e, r, n, i, a)], a); + return this._d("line", [toe(e, r, n, i, a)], a); } rectangle(e, r, n, i, s) { - const a = this._o(s), o = [], l = jkt(e, r, n, i, a); + const a = this._o(s), o = [], l = Xkt(e, r, n, i, a); if (a.fill) { const u = [[e, r], [e + n, r], [e + n, r + i], [e, r + i]]; - a.fillStyle === "solid" ? o.push(a_([u], a)) : o.push(dp([u], a)); + a.fillStyle === "solid" ? o.push(i_([u], a)) : o.push(dp([u], a)); } return a.stroke !== Xa && o.push(l), this._d("rectangle", o, a); } ellipse(e, r, n, i, s) { - const a = this._o(s), o = [], l = ioe(n, i, a), u = H8(e, r, a, l); + const a = this._o(s), o = [], l = roe(n, i, a), u = W8(e, r, a, l); if (a.fill) if (a.fillStyle === "solid") { - const h = H8(e, r, a, l).opset; + const h = W8(e, r, a, l).opset; h.type = "fillPath", o.push(h); } else o.push(dp([u.estimatedPoints], a)); @@ -43958,15 +43958,15 @@ class X3 { } linearPath(e, r) { const n = this._o(r); - return this._d("linearPath", [P4(e, !1, n)], n); + return this._d("linearPath", [I4(e, !1, n)], n); } arc(e, r, n, i, s, a, o = !1, l) { - const u = this._o(l), h = [], f = Uq(e, r, n, i, s, a, o, !0, u); + const u = this._o(l), h = [], f = Fq(e, r, n, i, s, a, o, !0, u); if (o && u.fill) if (u.fillStyle === "solid") { const d = Object.assign({}, u); d.disableMultiStroke = !0; - const p = Uq(e, r, n, i, s, a, !0, !1, d); + const p = Fq(e, r, n, i, s, a, !0, !1, d); p.type = "fillPath", h.push(p); } else h.push(function(d, p, g, m, v, y, b) { @@ -43985,25 +43985,25 @@ class X3 { return u.stroke !== Xa && h.push(f), this._d("arc", h, u); } curve(e, r) { - const n = this._o(r), i = [], s = Vq(e, n); + const n = this._o(r), i = [], s = Bq(e, n); if (n.fill && n.fill !== Xa) if (n.fillStyle === "solid") { - const a = Vq(e, Object.assign(Object.assign({}, n), { disableMultiStroke: !0, roughness: n.roughness ? n.roughness + n.fillShapeRoughnessGain : 0 })); + const a = Bq(e, Object.assign(Object.assign({}, n), { disableMultiStroke: !0, roughness: n.roughness ? n.roughness + n.fillShapeRoughnessGain : 0 })); i.push({ type: "fillPath", ops: this._mergedShape(a.ops) }); } else { const a = [], o = e; if (o.length) { const l = typeof o[0][0] == "number" ? [o] : o; for (const u of l) - u.length < 3 ? a.push(...u) : u.length === 3 ? a.push(...o_(Gq([u[0], u[0], u[1], u[2]]), 10, (1 + n.roughness) / 2)) : a.push(...o_(Gq(u), 10, (1 + n.roughness) / 2)); + u.length < 3 ? a.push(...u) : u.length === 3 ? a.push(...s_(Yq([u[0], u[0], u[1], u[2]]), 10, (1 + n.roughness) / 2)) : a.push(...s_(Yq(u), 10, (1 + n.roughness) / 2)); } a.length && i.push(dp([a], n)); } return n.stroke !== Xa && i.push(s), this._d("curve", i, n); } polygon(e, r) { - const n = this._o(r), i = [], s = P4(e, !0, n); - return n.fill && (n.fillStyle === "solid" ? i.push(a_([e], n)) : i.push(dp([e], n))), n.stroke !== Xa && i.push(s), this._d("polygon", i, n); + const n = this._o(r), i = [], s = I4(e, !0, n); + return n.fill && (n.fillStyle === "solid" ? i.push(i_([e], n)) : i.push(dp([e], n))), n.stroke !== Xa && i.push(s), this._d("polygon", i, n); } path(e, r) { const n = this._o(r), i = []; @@ -44011,10 +44011,10 @@ class X3 { return this._d("path", i, n); e = (e || "").replace(/\n/g, " ").replace(/(-\s)/g, "-").replace("/(ss)/g", " "); const s = n.fill && n.fill !== "transparent" && n.fill !== Xa, a = n.stroke !== Xa, o = !!(n.simplification && n.simplification < 1), l = function(h, f, d) { - const p = toe(eoe(fN(h))), g = []; + const p = Jae(Kae(cN(h))), g = []; let m = [], v = [0, 0], y = []; const b = () => { - y.length >= 4 && m.push(...o_(y, f)), y = []; + y.length >= 4 && m.push(...s_(y, f)), y = []; }, w = () => { b(), m.length && (g.push(m), m = []); }; @@ -44040,22 +44040,22 @@ class X3 { return g; const O = []; for (const S of g) { - const C = eSt(S, d); + const C = Kkt(S, d); C.length && O.push(C); } return O; - }(e, 1, o ? 4 - 4 * (n.simplification || 1) : (1 + n.roughness) / 2), u = qq(e, n); + }(e, 1, o ? 4 - 4 * (n.simplification || 1) : (1 + n.roughness) / 2), u = zq(e, n); if (s) if (n.fillStyle === "solid") if (l.length === 1) { - const h = qq(e, Object.assign(Object.assign({}, n), { disableMultiStroke: !0, roughness: n.roughness ? n.roughness + n.fillShapeRoughnessGain : 0 })); + const h = zq(e, Object.assign(Object.assign({}, n), { disableMultiStroke: !0, roughness: n.roughness ? n.roughness + n.fillShapeRoughnessGain : 0 })); i.push({ type: "fillPath", ops: this._mergedShape(h.ops) }); } else - i.push(a_(l, n)); + i.push(i_(l, n)); else i.push(dp(l, n)); return a && (o ? l.forEach((h) => { - i.push(P4(h, !1, n)); + i.push(I4(h, !1, n)); }) : i.push(u)), this._d("path", i, n); } opsToPath(e, r) { @@ -44101,9 +44101,9 @@ class X3 { return e.filter((r, n) => n === 0 || r.op !== "move"); } } -class tSt { +class Jkt { constructor(e, r) { - this.canvas = e, this.ctx = this.canvas.getContext("2d"), this.gen = new X3(r); + this.canvas = e, this.ctx = this.canvas.getContext("2d"), this.gen = new H3(r); } draw(e) { const r = e.sets || [], n = e.options || this.getDefaultOptions(), i = this.ctx, s = e.options.fixedDecimalPlaceDigits; @@ -44187,9 +44187,9 @@ class tSt { } } const iO = "http://www.w3.org/2000/svg"; -class rSt { +class eSt { constructor(e, r) { - this.svg = e, this.gen = new X3(r); + this.svg = e, this.gen = new H3(r); } draw(e) { const r = e.sets || [], n = e.options || this.getDefaultOptions(), i = this.svg.ownerDocument || window.document, s = i.createElementNS(iO, "g"), a = e.options.fixedDecimalPlaceDigits; @@ -44261,15 +44261,15 @@ class rSt { return this.draw(n); } } -var Bn = { canvas: (t, e) => new tSt(t, e), svg: (t, e) => new rSt(t, e), generator: (t) => new X3(t), newSeed: () => X3.newSeed() }, nSt = /* @__PURE__ */ x((t, e) => { +var Bn = { canvas: (t, e) => new Jkt(t, e), svg: (t, e) => new eSt(t, e), generator: (t) => new H3(t), newSeed: () => H3.newSeed() }, tSt = /* @__PURE__ */ x((t, e) => { var r = t.x, n = t.y, i = e.x - r, s = e.y - n, a = t.width / 2, o = t.height / 2, l, u; return Math.abs(s) * a > Math.abs(i) * o ? (s < 0 && (o = -o), l = s === 0 ? 0 : o * i / s, u = o) : (i < 0 && (a = -a), l = a, u = i === 0 ? 0 : a * s / i), { x: r + l, y: n + u }; -}, "intersectRect"), wx = nSt; -function aoe(t, e) { +}, "intersectRect"), wx = tSt; +function ioe(t, e) { e && t.attr("style", e); } -x(aoe, "applyStyle"); -async function ooe(t) { +x(ioe, "applyStyle"); +async function soe(t) { const e = et(document.createElementNS("http://www.w3.org/2000/svg", "foreignObject")), r = e.append("xhtml:div"); let n = t.label; t.label && ca(t.label) && (n = await lx(t.label.replace(at.lineBreakRegex, ` @@ -44277,10 +44277,10 @@ async function ooe(t) { const i = t.isNode ? "nodeLabel" : "edgeLabel"; return r.html( '" + n + "" - ), aoe(r, t.labelStyle), r.style("display", "inline-block"), r.style("padding-right", "1px"), r.style("white-space", "nowrap"), r.attr("xmlns", "http://www.w3.org/1999/xhtml"), e.node(); + ), ioe(r, t.labelStyle), r.style("display", "inline-block"), r.style("padding-right", "1px"), r.style("white-space", "nowrap"), r.attr("xmlns", "http://www.w3.org/1999/xhtml"), e.node(); } -x(ooe, "addHtmlLabel"); -var iSt = /* @__PURE__ */ x(async (t, e, r, n) => { +x(soe, "addHtmlLabel"); +var rSt = /* @__PURE__ */ x(async (t, e, r, n) => { let i = t || ""; if (typeof i == "object" && (i = i[0]), bn(be().flowchart.htmlLabels)) { i = i.replace(/\\n|\n/g, "
"), X.info("vertexText" + i); @@ -44292,7 +44292,7 @@ var iSt = /* @__PURE__ */ x(async (t, e, r, n) => { ), labelStyle: e && e.replace("fill:", "color:") }; - return await ooe(s); + return await soe(s); } else { const s = document.createElementNS("http://www.w3.org/2000/svg", "text"); s.setAttribute("style", e.replace("color:", "fill:")); @@ -44304,7 +44304,7 @@ var iSt = /* @__PURE__ */ x(async (t, e, r, n) => { } return s; } -}, "createLabel"), Dd = iSt, Ox = /* @__PURE__ */ x((t, e, r, n, i) => [ +}, "createLabel"), Dd = rSt, Ox = /* @__PURE__ */ x((t, e, r, n, i) => [ "M", t + i, e, @@ -44360,17 +44360,17 @@ var iSt = /* @__PURE__ */ x(async (t, e, r, n) => { stroke: t, seed: e }; -}, "solidStateFill"), loe = /* @__PURE__ */ x((t) => { - const e = sSt([...t.cssCompiledStyles || [], ...t.cssStyles || []]); +}, "solidStateFill"), aoe = /* @__PURE__ */ x((t) => { + const e = nSt([...t.cssCompiledStyles || [], ...t.cssStyles || []]); return { stylesMap: e, stylesArray: [...e] }; -}, "compileStyles"), sSt = /* @__PURE__ */ x((t) => { +}, "compileStyles"), nSt = /* @__PURE__ */ x((t) => { const e = /* @__PURE__ */ new Map(); return t.forEach((r) => { const [n, i] = r.split(":"); e.set(n.trim(), i == null ? void 0 : i.trim()); }), e; }, "styles2Map"), Ys = /* @__PURE__ */ x((t) => { - const { stylesArray: e } = loe(t), r = [], n = [], i = [], s = []; + const { stylesArray: e } = aoe(t), r = [], n = [], i = [], s = []; return e.forEach((a) => { const o = a[0]; o === "color" || o === "font-size" || o === "font-family" || o === "font-weight" || o === "font-style" || o === "text-decoration" || o === "text-align" || o === "text-transform" || o === "line-height" || o === "letter-spacing" || o === "word-spacing" || o === "text-shadow" || o === "text-overflow" || o === "white-space" || o === "word-wrap" || o === "word-break" || o === "overflow-wrap" || o === "hyphens" ? r.push(a.join(":") + " !important") : (n.push(a.join(":") + " !important"), o.includes("stroke") && i.push(a.join(":") + " !important"), o === "fill" && s.push(a.join(":") + " !important")); @@ -44382,7 +44382,7 @@ var iSt = /* @__PURE__ */ x(async (t, e, r, n) => { backgroundStyles: s }; }, "styles2String"), gs = /* @__PURE__ */ x((t, e) => { - const { themeVariables: r, handDrawnSeed: n } = be(), { nodeBorder: i, mainBkg: s } = r, { stylesMap: a } = loe(t); + const { themeVariables: r, handDrawnSeed: n } = be(), { nodeBorder: i, mainBkg: s } = r, { stylesMap: a } = aoe(t); return Object.assign( { roughness: 0.7, @@ -44395,7 +44395,7 @@ var iSt = /* @__PURE__ */ x(async (t, e, r, n) => { }, e ); -}, "userNodeOverrides"), coe = /* @__PURE__ */ x(async (t, e) => { +}, "userNodeOverrides"), ooe = /* @__PURE__ */ x(async (t, e) => { X.info("Creating subgraph rect for ", e.id, e); const r = be(), { themeVariables: n, handDrawnSeed: i } = r, { clusterBkg: s, clusterBorder: a } = n, { labelStyles: o, nodeStyles: l, borderStyles: u, backgroundStyles: h } = Ys(e), f = t.insert("g").attr("class", "cluster " + e.cssClasses).attr("id", e.id).attr("data-look", e.look), d = bn(r.flowchart.htmlLabels), p = f.insert("g").attr("class", "cluster-label "), g = await Kc(p, e.label, { style: e.labelStyle, @@ -44435,14 +44435,14 @@ var iSt = /* @__PURE__ */ x(async (t, e, r, n) => { return e.offsetX = 0, e.width = C.width, e.height = C.height, e.offsetY = m.height - e.padding / 2, e.intersect = function(T) { return wx(e, T); }, { cluster: f, labelBBox: m }; -}, "rect"), aSt = /* @__PURE__ */ x((t, e) => { +}, "rect"), iSt = /* @__PURE__ */ x((t, e) => { const r = t.insert("g").attr("class", "note-cluster").attr("id", e.id), n = r.insert("rect", ":first-child"), i = 0 * e.padding, s = i / 2; n.attr("rx", e.rx).attr("ry", e.ry).attr("x", e.x - e.width / 2 - s).attr("y", e.y - e.height / 2 - s).attr("width", e.width + i).attr("height", e.height + i).attr("fill", "none"); const a = n.node().getBBox(); return e.width = a.width, e.height = a.height, e.intersect = function(o) { return wx(e, o); }, { cluster: r, labelBBox: { width: 0, height: 0 } }; -}, "noteGroup"), oSt = /* @__PURE__ */ x(async (t, e) => { +}, "noteGroup"), sSt = /* @__PURE__ */ x(async (t, e) => { const r = be(), { themeVariables: n, handDrawnSeed: i } = r, { altBackground: s, compositeBackground: a, compositeTitleBackground: o, nodeBorder: l } = n, u = t.insert("g").attr("class", e.cssClasses).attr("id", e.id).attr("data-id", e.id).attr("data-look", e.look), h = u.insert("g", ":first-child"), f = u.insert("g").attr("class", "cluster-label"); let d = u.append("rect"); const p = f.node().appendChild(await Dd(e.label, e.labelStyle, void 0, !0)); @@ -44486,7 +44486,7 @@ var iSt = /* @__PURE__ */ x(async (t, e, r, n) => { return e.height = L.height, e.offsetX = 0, e.offsetY = g.height - e.padding / 2, e.labelBBox = g, e.intersect = function(E) { return wx(e, E); }, { cluster: u, labelBBox: g }; -}, "roundedWithTitle"), lSt = /* @__PURE__ */ x((t, e) => { +}, "roundedWithTitle"), aSt = /* @__PURE__ */ x((t, e) => { const r = be(), { themeVariables: n, handDrawnSeed: i } = r, { nodeBorder: s } = n, a = t.insert("g").attr("class", e.cssClasses).attr("id", e.id).attr("data-look", e.look), o = a.insert("g", ":first-child"), l = 0 * e.padding, u = e.width + l; e.diff = -e.padding; const h = e.height + l, f = e.x - u / 2, d = e.y - h / 2; @@ -44510,20 +44510,20 @@ var iSt = /* @__PURE__ */ x(async (t, e, r, n) => { return e.height = g.height, e.offsetX = 0, e.offsetY = 0, e.intersect = function(m) { return wx(e, m); }, { cluster: a, labelBBox: {} }; -}, "divider"), cSt = coe, uSt = { - rect: coe, - squareRect: cSt, - roundedWithTitle: oSt, - noteGroup: aSt, - divider: lSt -}, uoe = /* @__PURE__ */ new Map(), hoe = /* @__PURE__ */ x(async (t, e) => { - const r = e.shape || "rect", n = await uSt[r](t, e); - return uoe.set(e.id, n), n; -}, "insertCluster"), hSt = /* @__PURE__ */ x(() => { - uoe = /* @__PURE__ */ new Map(); -}, "clear"), fSt = /* @__PURE__ */ x((t, e, r, n, i) => { - e.arrowTypeStart && Hq(t, "start", e.arrowTypeStart, r, n, i), e.arrowTypeEnd && Hq(t, "end", e.arrowTypeEnd, r, n, i); -}, "addEdgeMarkers"), dSt = { +}, "divider"), oSt = ooe, lSt = { + rect: ooe, + squareRect: oSt, + roundedWithTitle: sSt, + noteGroup: iSt, + divider: aSt +}, loe = /* @__PURE__ */ new Map(), coe = /* @__PURE__ */ x(async (t, e) => { + const r = e.shape || "rect", n = await lSt[r](t, e); + return loe.set(e.id, n), n; +}, "insertCluster"), cSt = /* @__PURE__ */ x(() => { + loe = /* @__PURE__ */ new Map(); +}, "clear"), uSt = /* @__PURE__ */ x((t, e, r, n, i) => { + e.arrowTypeStart && Qq(t, "start", e.arrowTypeStart, r, n, i), e.arrowTypeEnd && Qq(t, "end", e.arrowTypeEnd, r, n, i); +}, "addEdgeMarkers"), hSt = { arrow_cross: "cross", arrow_point: "point", arrow_barb: "barb", @@ -44533,17 +44533,17 @@ var iSt = /* @__PURE__ */ x(async (t, e, r, n) => { composition: "composition", dependency: "dependency", lollipop: "lollipop" -}, Hq = /* @__PURE__ */ x((t, e, r, n, i, s) => { - const a = dSt[r]; +}, Qq = /* @__PURE__ */ x((t, e, r, n, i, s) => { + const a = hSt[r]; if (!a) { X.warn(`Unknown arrow type: ${r}`); return; } const o = e === "start" ? "Start" : "End"; t.attr(`marker-${e}`, `url(${n}#${i}_${s}-${a}${o})`); -}, "addEdgeMarker"), Z3 = /* @__PURE__ */ new Map(), ts = /* @__PURE__ */ new Map(), pSt = /* @__PURE__ */ x(() => { - Z3.clear(), ts.clear(); -}, "clear"), Jm = /* @__PURE__ */ x((t) => t ? t.reduce((r, n) => r + ";" + n, "") : "", "getLabelStyles"), foe = /* @__PURE__ */ x(async (t, e) => { +}, "addEdgeMarker"), X3 = /* @__PURE__ */ new Map(), ts = /* @__PURE__ */ new Map(), fSt = /* @__PURE__ */ x(() => { + X3.clear(), ts.clear(); +}, "clear"), Jm = /* @__PURE__ */ x((t) => t ? t.reduce((r, n) => r + ";" + n, "") : "", "getLabelStyles"), uoe = /* @__PURE__ */ x(async (t, e) => { let r = bn(be().flowchart.htmlLabels); const n = await Kc(t, e.label, { style: Jm(e.labelStyle), @@ -44559,7 +44559,7 @@ var iSt = /* @__PURE__ */ x(async (t, e, r, n) => { const l = n.children[0], u = et(n); a = l.getBoundingClientRect(), u.attr("width", a.width), u.attr("height", a.height); } - s.attr("transform", "translate(" + -a.width / 2 + ", " + -a.height / 2 + ")"), Z3.set(e.id, i), e.width = a.width, e.height = a.height; + s.attr("transform", "translate(" + -a.width / 2 + ", " + -a.height / 2 + ")"), X3.set(e.id, i), e.width = a.width, e.height = a.height; let o; if (e.startLabelLeft) { const l = await Dd( @@ -44597,12 +44597,12 @@ function kv(t, e) { be().flowchart.htmlLabels && t && (t.style.width = e.length * 9 + "px", t.style.height = "12px"); } x(kv, "setTerminalWidth"); -var doe = /* @__PURE__ */ x((t, e) => { - X.debug("Moving label abc88 ", t.id, t.label, Z3.get(t.id), e); +var hoe = /* @__PURE__ */ x((t, e) => { + X.debug("Moving label abc88 ", t.id, t.label, X3.get(t.id), e); let r = e.updatedPath ? e.updatedPath : e.originalPath; const n = be(), { subGraphTitleTotalMargin: i } = V0(n); if (t.label) { - const s = Z3.get(t.id); + const s = X3.get(t.id); let a = t.x, o = t.y; if (r) { const l = sr.calcLabelPosition(r); @@ -44660,10 +44660,10 @@ var doe = /* @__PURE__ */ x((t, e) => { } s.attr("transform", `translate(${a}, ${o})`); } -}, "positionEdgeLabel"), gSt = /* @__PURE__ */ x((t, e) => { +}, "positionEdgeLabel"), dSt = /* @__PURE__ */ x((t, e) => { const r = t.x, n = t.y, i = Math.abs(e.x - r), s = Math.abs(e.y - n), a = t.width / 2, o = t.height / 2; return i >= a || s >= o; -}, "outsideNode"), mSt = /* @__PURE__ */ x((t, e, r) => { +}, "outsideNode"), pSt = /* @__PURE__ */ x((t, e, r) => { X.debug(`intersection calc abc89: outsidePoint: ${JSON.stringify(e)} insidePoint : ${JSON.stringify(r)} @@ -44684,12 +44684,12 @@ var doe = /* @__PURE__ */ x((t, e) => { let f = u * o / h, d = r.x < e.x ? r.x + h - o : r.x - h + o, p = r.y < e.y ? r.y + f : r.y - f; return X.debug(`sides calc abc89, Q ${u}, q ${f}, R ${h}, r ${o}`, { _x: d, _y: p }), o === 0 && (d = e.x, p = e.y), h === 0 && (d = e.x), u === 0 && (p = e.y), { x: d, y: p }; } -}, "intersection"), Xq = /* @__PURE__ */ x((t, e) => { +}, "intersection"), Wq = /* @__PURE__ */ x((t, e) => { X.warn("abc88 cutPathAtIntersect", t, e); let r = [], n = t[0], i = !1; return t.forEach((s) => { - if (X.info("abc88 checking point", s, e), !gSt(e, s) && !i) { - const a = mSt(e, n, s); + if (X.info("abc88 checking point", s, e), !dSt(e, s) && !i) { + const a = pSt(e, n, s); X.debug("abc88 inside", s, n, a), X.debug("abc88 intersection", a, e); let o = !1; r.forEach((l) => { @@ -44699,7 +44699,7 @@ var doe = /* @__PURE__ */ x((t, e) => { X.warn("abc88 outside", s, n), n = s, i || r.push(s); }), X.debug("returning points", r), r; }, "cutPathAtIntersect"); -function poe(t) { +function foe(t) { const e = [], r = []; for (let n = 1; n < t.length - 1; n++) { const i = t[n - 1], s = t[n], a = t[n + 1]; @@ -44707,15 +44707,15 @@ function poe(t) { } return { cornerPoints: e, cornerPointPositions: r }; } -x(poe, "extractCornerPoints"); -var Zq = /* @__PURE__ */ x(function(t, e, r) { +x(foe, "extractCornerPoints"); +var Gq = /* @__PURE__ */ x(function(t, e, r) { const n = e.x - t.x, i = e.y - t.y, s = Math.sqrt(n * n + i * i), a = r / s; return { x: e.x - a * n, y: e.y - a * i }; -}, "findAdjacentPoint"), vSt = /* @__PURE__ */ x(function(t) { - const { cornerPointPositions: e } = poe(t), r = []; +}, "findAdjacentPoint"), gSt = /* @__PURE__ */ x(function(t) { + const { cornerPointPositions: e } = foe(t), r = []; for (let n = 0; n < t.length; n++) if (e.includes(n)) { - const i = t[n - 1], s = t[n + 1], a = t[n], o = Zq(i, a, 5), l = Zq(s, a, 5), u = l.x - o.x, h = l.y - o.y; + const i = t[n - 1], s = t[n + 1], a = t[n], o = Gq(i, a, 5), l = Gq(s, a, 5), u = l.x - o.x, h = l.y - o.y; r.push(o); const f = Math.sqrt(2) * 2; let d = { x: a.x, y: a.y }; @@ -44743,7 +44743,7 @@ var Zq = /* @__PURE__ */ x(function(t, e, r) { } else r.push(t[n]); return r; -}, "fixCorners"), goe = /* @__PURE__ */ x(function(t, e, r, n, i, s, a) { +}, "fixCorners"), doe = /* @__PURE__ */ x(function(t, e, r, n, i, s, a) { const { handDrawnSeed: o } = be(); let l = e.points, u = !1; const h = i; @@ -44756,13 +44756,13 @@ var Zq = /* @__PURE__ */ x(function(t, e, r) { l[l.length - 1], f, f.intersect(l[l.length - 1]) - ), l.push(f.intersect(l[l.length - 1]))), e.toCluster && (X.info("to cluster abc88", r.get(e.toCluster)), l = Xq(e.points, r.get(e.toCluster).node), u = !0), e.fromCluster && (X.debug( + ), l.push(f.intersect(l[l.length - 1]))), e.toCluster && (X.info("to cluster abc88", r.get(e.toCluster)), l = Wq(e.points, r.get(e.toCluster).node), u = !0), e.fromCluster && (X.debug( "from cluster abc88", r.get(e.fromCluster), JSON.stringify(l, null, 2) - ), l = Xq(l.reverse(), r.get(e.fromCluster).node).reverse(), u = !0); + ), l = Wq(l.reverse(), r.get(e.fromCluster).node).reverse(), u = !0); let d = l.filter((L) => !Number.isNaN(L.y)); - d = vSt(d); + d = gSt(d); let p = d[d.length - 1]; if (d.length > 1) { p = d[d.length - 1]; @@ -44771,7 +44771,7 @@ var Zq = /* @__PURE__ */ x(function(t, e, r) { } let g = j1; e.curve && (g = e.curve); - const { x: m, y: v } = Uie(e), y = yf().x(m).y(v).curve(g); + const { x: m, y: v } = zie(e), y = yf().x(m).y(v).curve(g); let b; switch (e.thickness) { case "normal": @@ -44814,42 +44814,42 @@ var Zq = /* @__PURE__ */ x(function(t, e, r) { } else w = t.append("path").attr("d", O).attr("id", e.id).attr("class", " " + b + (e.classes ? " " + e.classes : "")).attr("style", S ? S.reduce((L, E) => L + ";" + E, "") : ""); let C = ""; - (be().flowchart.arrowMarkerAbsolute || be().state.arrowMarkerAbsolute) && (C = window.location.protocol + "//" + window.location.host + window.location.pathname + window.location.search, C = C.replace(/\(/g, "\\(").replace(/\)/g, "\\)")), X.info("arrowTypeStart", e.arrowTypeStart), X.info("arrowTypeEnd", e.arrowTypeEnd), fSt(w, e, C, a, n); + (be().flowchart.arrowMarkerAbsolute || be().state.arrowMarkerAbsolute) && (C = window.location.protocol + "//" + window.location.host + window.location.pathname + window.location.search, C = C.replace(/\(/g, "\\(").replace(/\)/g, "\\)")), X.info("arrowTypeStart", e.arrowTypeStart), X.info("arrowTypeEnd", e.arrowTypeEnd), uSt(w, e, C, a, n); let T = {}; return u && (T.updatedPath = l), T.originalPath = e.points, T; -}, "insertEdge"), ySt = /* @__PURE__ */ x((t, e, r, n) => { +}, "insertEdge"), mSt = /* @__PURE__ */ x((t, e, r, n) => { e.forEach((i) => { - _St[i](t, r, n); + CSt[i](t, r, n); }); -}, "insertMarkers"), bSt = /* @__PURE__ */ x((t, e, r) => { +}, "insertMarkers"), vSt = /* @__PURE__ */ x((t, e, r) => { X.trace("Making markers for ", r), t.append("defs").append("marker").attr("id", r + "_" + e + "-extensionStart").attr("class", "marker extension " + e).attr("refX", 18).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 1,7 L18,13 V 1 Z"), t.append("defs").append("marker").attr("id", r + "_" + e + "-extensionEnd").attr("class", "marker extension " + e).attr("refX", 1).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 1,1 V 13 L18,7 Z"); -}, "extension"), xSt = /* @__PURE__ */ x((t, e, r) => { +}, "extension"), ySt = /* @__PURE__ */ x((t, e, r) => { t.append("defs").append("marker").attr("id", r + "_" + e + "-compositionStart").attr("class", "marker composition " + e).attr("refX", 18).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"), t.append("defs").append("marker").attr("id", r + "_" + e + "-compositionEnd").attr("class", "marker composition " + e).attr("refX", 1).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"); -}, "composition"), wSt = /* @__PURE__ */ x((t, e, r) => { +}, "composition"), bSt = /* @__PURE__ */ x((t, e, r) => { t.append("defs").append("marker").attr("id", r + "_" + e + "-aggregationStart").attr("class", "marker aggregation " + e).attr("refX", 18).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"), t.append("defs").append("marker").attr("id", r + "_" + e + "-aggregationEnd").attr("class", "marker aggregation " + e).attr("refX", 1).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"); -}, "aggregation"), OSt = /* @__PURE__ */ x((t, e, r) => { +}, "aggregation"), xSt = /* @__PURE__ */ x((t, e, r) => { t.append("defs").append("marker").attr("id", r + "_" + e + "-dependencyStart").attr("class", "marker dependency " + e).attr("refX", 6).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 5,7 L9,13 L1,7 L9,1 Z"), t.append("defs").append("marker").attr("id", r + "_" + e + "-dependencyEnd").attr("class", "marker dependency " + e).attr("refX", 13).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L14,7 L9,1 Z"); -}, "dependency"), kSt = /* @__PURE__ */ x((t, e, r) => { +}, "dependency"), wSt = /* @__PURE__ */ x((t, e, r) => { t.append("defs").append("marker").attr("id", r + "_" + e + "-lollipopStart").attr("class", "marker lollipop " + e).attr("refX", 13).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("circle").attr("stroke", "black").attr("fill", "transparent").attr("cx", 7).attr("cy", 7).attr("r", 6), t.append("defs").append("marker").attr("id", r + "_" + e + "-lollipopEnd").attr("class", "marker lollipop " + e).attr("refX", 1).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("circle").attr("stroke", "black").attr("fill", "transparent").attr("cx", 7).attr("cy", 7).attr("r", 6); -}, "lollipop"), SSt = /* @__PURE__ */ x((t, e, r) => { +}, "lollipop"), OSt = /* @__PURE__ */ x((t, e, r) => { t.append("marker").attr("id", r + "_" + e + "-pointEnd").attr("class", "marker " + e).attr("viewBox", "0 0 10 10").attr("refX", 5).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 8).attr("markerHeight", 8).attr("orient", "auto").append("path").attr("d", "M 0 0 L 10 5 L 0 10 z").attr("class", "arrowMarkerPath").style("stroke-width", 1).style("stroke-dasharray", "1,0"), t.append("marker").attr("id", r + "_" + e + "-pointStart").attr("class", "marker " + e).attr("viewBox", "0 0 10 10").attr("refX", 4.5).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 8).attr("markerHeight", 8).attr("orient", "auto").append("path").attr("d", "M 0 5 L 10 10 L 10 0 z").attr("class", "arrowMarkerPath").style("stroke-width", 1).style("stroke-dasharray", "1,0"); -}, "point"), TSt = /* @__PURE__ */ x((t, e, r) => { +}, "point"), kSt = /* @__PURE__ */ x((t, e, r) => { t.append("marker").attr("id", r + "_" + e + "-circleEnd").attr("class", "marker " + e).attr("viewBox", "0 0 10 10").attr("refX", 11).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 11).attr("markerHeight", 11).attr("orient", "auto").append("circle").attr("cx", "5").attr("cy", "5").attr("r", "5").attr("class", "arrowMarkerPath").style("stroke-width", 1).style("stroke-dasharray", "1,0"), t.append("marker").attr("id", r + "_" + e + "-circleStart").attr("class", "marker " + e).attr("viewBox", "0 0 10 10").attr("refX", -1).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 11).attr("markerHeight", 11).attr("orient", "auto").append("circle").attr("cx", "5").attr("cy", "5").attr("r", "5").attr("class", "arrowMarkerPath").style("stroke-width", 1).style("stroke-dasharray", "1,0"); -}, "circle"), CSt = /* @__PURE__ */ x((t, e, r) => { +}, "circle"), SSt = /* @__PURE__ */ x((t, e, r) => { t.append("marker").attr("id", r + "_" + e + "-crossEnd").attr("class", "marker cross " + e).attr("viewBox", "0 0 11 11").attr("refX", 12).attr("refY", 5.2).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 11).attr("markerHeight", 11).attr("orient", "auto").append("path").attr("d", "M 1,1 l 9,9 M 10,1 l -9,9").attr("class", "arrowMarkerPath").style("stroke-width", 2).style("stroke-dasharray", "1,0"), t.append("marker").attr("id", r + "_" + e + "-crossStart").attr("class", "marker cross " + e).attr("viewBox", "0 0 11 11").attr("refX", -1).attr("refY", 5.2).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 11).attr("markerHeight", 11).attr("orient", "auto").append("path").attr("d", "M 1,1 l 9,9 M 10,1 l -9,9").attr("class", "arrowMarkerPath").style("stroke-width", 2).style("stroke-dasharray", "1,0"); -}, "cross"), ESt = /* @__PURE__ */ x((t, e, r) => { +}, "cross"), TSt = /* @__PURE__ */ x((t, e, r) => { t.append("defs").append("marker").attr("id", r + "_" + e + "-barbEnd").attr("refX", 19).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 14).attr("markerUnits", "userSpaceOnUse").attr("orient", "auto").append("path").attr("d", "M 19,7 L9,13 L14,7 L9,1 Z"); -}, "barb"), _St = { - extension: bSt, - composition: xSt, - aggregation: wSt, - dependency: OSt, - lollipop: kSt, - point: SSt, - circle: TSt, - cross: CSt, - barb: ESt -}, moe = ySt, Qs = /* @__PURE__ */ x(async (t, e, r) => { +}, "barb"), CSt = { + extension: vSt, + composition: ySt, + aggregation: bSt, + dependency: xSt, + lollipop: wSt, + point: OSt, + circle: kSt, + cross: SSt, + barb: TSt +}, poe = mSt, Qs = /* @__PURE__ */ x(async (t, e, r) => { let n; const i = e.useHtmlLabels || bn(be().flowchart.htmlLabels); r ? n = r : n = "node default"; @@ -44894,43 +44894,43 @@ var Zq = /* @__PURE__ */ x(function(t, e, r) { const r = e.node().getBBox(); t.width = r.width, t.height = r.height; }, "updateNodeBounds"), po = /* @__PURE__ */ x((t, e) => (t.look === "handDrawn" ? "rough-node" : "node") + " " + t.cssClasses + " " + (e || ""), "getNodeClasses"); -function voe(t, e) { +function goe(t, e) { return t.intersect(e); } -x(voe, "intersectNode"); -var ASt = voe; -function yoe(t, e, r, n) { +x(goe, "intersectNode"); +var ESt = goe; +function moe(t, e, r, n) { var i = t.x, s = t.y, a = i - n.x, o = s - n.y, l = Math.sqrt(e * e * o * o + r * r * a * a), u = Math.abs(e * r * a / l); n.x < i && (u = -u); var h = Math.abs(e * r * o / l); return n.y < s && (h = -h), { x: i + u, y: s + h }; } -x(yoe, "intersectEllipse"); -var boe = yoe; -function xoe(t, e, r) { - return boe(t, e, e, r); +x(moe, "intersectEllipse"); +var voe = moe; +function yoe(t, e, r) { + return voe(t, e, e, r); } -x(xoe, "intersectCircle"); -var LSt = xoe; -function woe(t, e, r, n) { +x(yoe, "intersectCircle"); +var _St = yoe; +function boe(t, e, r, n) { var i, s, a, o, l, u, h, f, d, p, g, m, v, y, b; - if (i = e.y - t.y, a = t.x - e.x, l = e.x * t.y - t.x * e.y, d = i * r.x + a * r.y + l, p = i * n.x + a * n.y + l, !(d !== 0 && p !== 0 && j8(d, p)) && (s = n.y - r.y, o = r.x - n.x, u = n.x * r.y - r.x * n.y, h = s * t.x + o * t.y + u, f = s * e.x + o * e.y + u, !(h !== 0 && f !== 0 && j8(h, f)) && (g = i * o - s * a, g !== 0))) + if (i = e.y - t.y, a = t.x - e.x, l = e.x * t.y - t.x * e.y, d = i * r.x + a * r.y + l, p = i * n.x + a * n.y + l, !(d !== 0 && p !== 0 && X8(d, p)) && (s = n.y - r.y, o = r.x - n.x, u = n.x * r.y - r.x * n.y, h = s * t.x + o * t.y + u, f = s * e.x + o * e.y + u, !(h !== 0 && f !== 0 && X8(h, f)) && (g = i * o - s * a, g !== 0))) return m = Math.abs(g / 2), v = a * u - o * l, y = v < 0 ? (v - m) / g : (v + m) / g, v = s * l - i * u, b = v < 0 ? (v - m) / g : (v + m) / g, { x: y, y: b }; } -x(woe, "intersectLine"); -function j8(t, e) { +x(boe, "intersectLine"); +function X8(t, e) { return t * e > 0; } -x(j8, "sameSign"); -var RSt = woe; -function Ooe(t, e, r) { +x(X8, "sameSign"); +var ASt = boe; +function xoe(t, e, r) { let n = t.x, i = t.y, s = [], a = Number.POSITIVE_INFINITY, o = Number.POSITIVE_INFINITY; typeof e.forEach == "function" ? e.forEach(function(h) { a = Math.min(a, h.x), o = Math.min(o, h.y); }) : (a = Math.min(a, e.x), o = Math.min(o, e.y)); let l = n - t.width / 2 - a, u = i - t.height / 2 - o; for (let h = 0; h < e.length; h++) { - let f = e[h], d = e[h < e.length - 1 ? h + 1 : 0], p = RSt( + let f = e[h], d = e[h < e.length - 1 ? h + 1 : 0], p = ASt( t, r, { x: l + f.x, y: u + f.y }, @@ -44943,14 +44943,14 @@ function Ooe(t, e, r) { return g < y ? -1 : g === y ? 0 : 1; }), s[0]) : t; } -x(Ooe, "intersectPolygon"); -var MSt = Ooe, si = { - node: ASt, - circle: LSt, - ellipse: boe, - polygon: MSt, +x(xoe, "intersectPolygon"); +var LSt = xoe, si = { + node: ESt, + circle: _St, + ellipse: voe, + polygon: LSt, rect: wx -}, dN = /* @__PURE__ */ x(async (t, e, r) => { +}, uN = /* @__PURE__ */ x(async (t, e, r) => { const { labelStyles: n, nodeStyles: i } = Ys(e); e.labelStyle = n; const { shapeSvg: s, bbox: a } = await Qs(t, e, po(e)), o = Math.max(a.width + r.labelPaddingX * 2, (e == null ? void 0 : e.width) || 0), l = Math.max(a.height + r.labelPaddingY * 2, (e == null ? void 0 : e.height) || 0), u = -o / 2, h = -l / 2; @@ -44964,11 +44964,11 @@ var MSt = Ooe, si = { return ii(e, f), e.intersect = function(m) { return si.rect(e, m); }, s; -}, "drawRect"), DSt = /* @__PURE__ */ x(async (t, e) => dN(t, e, { +}, "drawRect"), RSt = /* @__PURE__ */ x(async (t, e) => uN(t, e, { rx: 5, ry: 5, classes: "flowchart-node" -}), "state"), NSt = /* @__PURE__ */ x(async (t, e) => { +}), "state"), MSt = /* @__PURE__ */ x(async (t, e) => { const r = { rx: 5, ry: 5, @@ -44976,8 +44976,8 @@ var MSt = Ooe, si = { labelPaddingX: ((e == null ? void 0 : e.padding) || 0) * 1, labelPaddingY: ((e == null ? void 0 : e.padding) || 0) * 1 }; - return dN(t, e, r); -}, "roundedRect"), ISt = /* @__PURE__ */ x(async (t, e) => { + return uN(t, e, r); +}, "roundedRect"), DSt = /* @__PURE__ */ x(async (t, e) => { const r = { rx: 0, ry: 0, @@ -44985,8 +44985,8 @@ var MSt = Ooe, si = { labelPaddingX: ((e == null ? void 0 : e.padding) || 0) * 2, labelPaddingY: ((e == null ? void 0 : e.padding) || 0) * 1 }; - return dN(t, e, r); -}, "squareRect"), PSt = /* @__PURE__ */ x((t, e) => { + return uN(t, e, r); +}, "squareRect"), NSt = /* @__PURE__ */ x((t, e) => { const { themeVariables: r } = be(), { lineColor: n } = r, i = t.insert("g").attr("class", "node default").attr("id", e.domId || e.id); let s; if (e.look === "handDrawn") { @@ -44997,7 +44997,7 @@ var MSt = Ooe, si = { return s.attr("class", "state-start").attr("r", 7).attr("width", 14).attr("height", 14), ii(e, s), e.intersect = function(a) { return si.circle(e, 7, a); }, i; -}, "stateStart"), $St = /* @__PURE__ */ x((t, e) => { +}, "stateStart"), ISt = /* @__PURE__ */ x((t, e) => { const { themeVariables: r } = be(), { lineColor: n } = r, i = t.insert("g").attr("class", "node default").attr("id", e.domId || e.id); let s, a; if (e.look === "handDrawn") { @@ -45008,7 +45008,7 @@ var MSt = Ooe, si = { return ii(e, s), e.intersect = function(o) { return si.circle(e, 7, o); }, i; -}, "stateEnd"), jq = /* @__PURE__ */ x((t, e, r) => { +}, "stateEnd"), Hq = /* @__PURE__ */ x((t, e, r) => { const { themeVariables: n } = be(), { lineColor: i } = n, s = t.insert("g").attr("class", "node default").attr("id", e.domId || e.id); let a = 70, o = 10; r === "LR" && (a = 10, o = 70); @@ -45024,7 +45024,7 @@ var MSt = Ooe, si = { return e.height && (f = e.height), e.width && (d = e.width), e.padding && (p = e.padding), e.height = f + p / 2, e.width = d + p / 2, e.intersect = function(g) { return si.rect(e, g); }, s; -}, "forkJoin"), BSt = /* @__PURE__ */ x((t, e) => { +}, "forkJoin"), PSt = /* @__PURE__ */ x((t, e) => { const { labelStyles: r, nodeStyles: n } = Ys(e); e.labelStyle = r; const { themeVariables: i } = be(), { lineColor: s } = i, a = t.insert("g").attr("class", "node default").attr("id", e.domId || e.id), o = 28, l = [ @@ -45049,7 +45049,7 @@ var MSt = Ooe, si = { return u.attr("class", "state-start").attr("r", 7).attr("width", 28).attr("height", 28).attr("style", n), e.width = 28, e.height = 28, e.intersect = function(h) { return si.circle(e, 14, h); }, a; -}, "choice"), FSt = /* @__PURE__ */ x(async (t, e) => { +}, "choice"), $St = /* @__PURE__ */ x(async (t, e) => { const { themeVariables: r, handDrawnSeed: n } = be(), { noteBorderColor: i, noteBkgColor: s } = r; e.useHtmlLabels || (e.centerLabel = !0); const { shapeSvg: o, bbox: l } = await Qs(t, e, "node " + e.cssClasses); @@ -45071,7 +45071,7 @@ var MSt = Ooe, si = { return ii(e, h), e.intersect = function(m) { return si.rect(e, m); }, o; -}, "note"), zSt = /* @__PURE__ */ x(async (t, e) => { +}, "note"), BSt = /* @__PURE__ */ x(async (t, e) => { const { labelStyles: r, nodeStyles: n } = Ys(e); e.labelStyle = r; const { shapeSvg: i, bbox: s } = await Qs(t, e, po(e)), a = s.height + e.padding, o = s.width + a / 4 + e.padding; @@ -45085,7 +45085,7 @@ var MSt = Ooe, si = { return ii(e, l), e.intersect = function(h) { return si.rect(e, h); }, i; -}, "stadium"), VSt = /* @__PURE__ */ x(async (t, e) => { +}, "stadium"), FSt = /* @__PURE__ */ x(async (t, e) => { var L, E; const { labelStyles: r, nodeStyles: n } = Ys(e); e.labelStyle = r; @@ -45147,7 +45147,7 @@ function uh(t, e, r, n) { ).attr("class", "label-container").attr("transform", "translate(" + -e / 2 + "," + r / 2 + ")"); } x(uh, "insertPolygonShape"); -var USt = /* @__PURE__ */ x(async (t, e) => { +var zSt = /* @__PURE__ */ x(async (t, e) => { const { labelStyles: r, nodeStyles: n } = Ys(e); e.labelStyle = r; const { shapeSvg: i, bbox: s } = await Qs(t, e, po(e)), a = ((e == null ? void 0 : e.padding) || 0) / 2, o = s.width + e.padding, l = s.height + e.padding, u = -s.width / 2 - a, h = -s.height / 2 - a, f = [ @@ -45174,31 +45174,31 @@ var USt = /* @__PURE__ */ x(async (t, e) => { return e.intersect = function(d) { return si.polygon(e, f, d); }, i; -}, "subroutine"), qSt = /* @__PURE__ */ x((t, e, r, n, i, s) => [ +}, "subroutine"), VSt = /* @__PURE__ */ x((t, e, r, n, i, s) => [ `M${t},${e + s}`, `a${i},${s} 0,0,0 ${r},0`, `a${i},${s} 0,0,0 ${-r},0`, `l0,${n}`, `a${i},${s} 0,0,0 ${r},0`, `l0,${-n}` -].join(" "), "createCylinderPathD"), YSt = /* @__PURE__ */ x((t, e, r, n, i, s) => [ +].join(" "), "createCylinderPathD"), USt = /* @__PURE__ */ x((t, e, r, n, i, s) => [ `M${t},${e + s}`, `M${t + r},${e + s}`, `a${i},${s} 0,0,0 ${-r},0`, `l0,${n}`, `a${i},${s} 0,0,0 ${r},0`, `l0,${-n}` -].join(" "), "createOuterCylinderPathD"), QSt = /* @__PURE__ */ x((t, e, r, n, i, s) => [`M${t - r / 2},${-n / 2}`, `a${i},${s} 0,0,0 ${r},0`].join(" "), "createInnerCylinderPathD"), WSt = /* @__PURE__ */ x(async (t, e) => { +].join(" "), "createOuterCylinderPathD"), qSt = /* @__PURE__ */ x((t, e, r, n, i, s) => [`M${t - r / 2},${-n / 2}`, `a${i},${s} 0,0,0 ${r},0`].join(" "), "createInnerCylinderPathD"), YSt = /* @__PURE__ */ x(async (t, e) => { const { labelStyles: r, nodeStyles: n } = Ys(e); e.labelStyle = r; const { shapeSvg: i, bbox: s } = await Qs(t, e, po(e)), a = s.width + e.padding, o = a / 2, l = o / (2.5 + a / 50), u = s.height + l + e.padding; let h; const { cssStyles: f } = e; if (e.look === "handDrawn") { - const d = Bn.svg(i), p = YSt(0, 0, a, u, o, l), g = QSt(0, l, a, u, o, l), m = d.path(p, gs(e, {})), v = d.path(g, gs(e, { fill: "none" })); + const d = Bn.svg(i), p = USt(0, 0, a, u, o, l), g = qSt(0, l, a, u, o, l), m = d.path(p, gs(e, {})), v = d.path(g, gs(e, { fill: "none" })); h = i.insert(() => v, ":first-child"), h = i.insert(() => m, ":first-child"), h.attr("class", "basic label-container"), f && h.attr("style", f); } else { - const d = qSt(0, 0, a, u, o, l); + const d = VSt(0, 0, a, u, o, l); h = i.insert("path", ":first-child").attr("d", d).attr("class", "basic label-container").attr("style", f).attr("style", n); } return h.attr("label-offset-y", l), h.attr("transform", `translate(${-a / 2}, ${-(u / 2 + l)})`), ii(e, h), e.intersect = function(d) { @@ -45210,7 +45210,7 @@ var USt = /* @__PURE__ */ x(async (t, e) => { } return p; }, i; -}, "cylinder"), GSt = /* @__PURE__ */ x(async (t, e) => { +}, "cylinder"), QSt = /* @__PURE__ */ x(async (t, e) => { const { labelStyles: r, nodeStyles: n } = Ys(e); e.labelStyle = r; const { shapeSvg: i, bbox: s, halfPadding: a } = await Qs(t, e, po(e)), o = s.width / 2 + a; @@ -45224,7 +45224,7 @@ var USt = /* @__PURE__ */ x(async (t, e) => { return ii(e, l), e.intersect = function(h) { return X.info("Circle intersect", e, o, h), si.circle(e, o, h); }, i; -}, "circle"), HSt = /* @__PURE__ */ x(async (t, e) => { +}, "circle"), WSt = /* @__PURE__ */ x(async (t, e) => { var d, p; const { labelStyles: r, nodeStyles: n } = Ys(e); e.labelStyle = r; @@ -45242,14 +45242,14 @@ var USt = /* @__PURE__ */ x(async (t, e) => { return ii(e, h), e.intersect = function(g) { return X.info("DoubleCircle intersect", e, l, g), si.circle(e, l, g); }, i; -}, "doublecircle"), XSt = /* @__PURE__ */ x((t, e, r, n) => [ +}, "doublecircle"), GSt = /* @__PURE__ */ x((t, e, r, n) => [ `M${t - n / 2},${e}`, `L${t + r},${e}`, `L${t + r},${e - n}`, `L${t - n / 2},${e - n}`, `L${t},${e - n / 2}`, "Z" -].join(" "), "createPolygonPathD"), ZSt = /* @__PURE__ */ x(async (t, e) => { +].join(" "), "createPolygonPathD"), HSt = /* @__PURE__ */ x(async (t, e) => { const { labelStyles: r, nodeStyles: n } = Ys(e); e.labelStyle = r; const { shapeSvg: i, bbox: s } = await Qs(t, e, po(e)), a = s.width + e.padding, o = s.height + e.padding, l = [ @@ -45262,20 +45262,20 @@ var USt = /* @__PURE__ */ x(async (t, e) => { let u; const { cssStyles: h } = e; if (e.look === "handDrawn") { - const f = Bn.svg(i), d = gs(e, {}), p = XSt(0, 0, a, o), g = f.path(p, d); + const f = Bn.svg(i), d = gs(e, {}), p = GSt(0, 0, a, o), g = f.path(p, d); u = i.insert(() => g, ":first-child").attr("transform", `translate(${-a / 2}, ${o / 2})`), h && u.attr("style", h); } else u = uh(i, a, o, l); return n && u.attr("style", n), e.width = a + o, e.height = o, ii(e, u), e.intersect = function(f) { return si.polygon(e, l, f); }, i; -}, "rect_left_inv_arrow"), jSt = /* @__PURE__ */ x((t, e, r) => [ +}, "rect_left_inv_arrow"), XSt = /* @__PURE__ */ x((t, e, r) => [ `M${t + r / 2},${e}`, `L${t + r},${e - r / 2}`, `L${t + r / 2},${e - r}`, `L${t},${e - r / 2}`, "Z" -].join(" "), "createDecisionBoxPathD"), KSt = /* @__PURE__ */ x(async (t, e) => { +].join(" "), "createDecisionBoxPathD"), ZSt = /* @__PURE__ */ x(async (t, e) => { const { labelStyles: r, nodeStyles: n } = Ys(e); e.labelStyle = r; const { shapeSvg: i, bbox: s } = await Qs(t, e, po(e)), a = s.width + e.padding, o = s.height + e.padding, l = a + o, u = [ @@ -45287,7 +45287,7 @@ var USt = /* @__PURE__ */ x(async (t, e) => { let h; const { cssStyles: f } = e; if (e.look === "handDrawn") { - const d = Bn.svg(i), p = gs(e, {}), g = jSt(0, 0, l), m = d.path(g, p); + const d = Bn.svg(i), p = gs(e, {}), g = XSt(0, 0, l), m = d.path(g, p); h = i.insert(() => m, ":first-child").attr("transform", `translate(${-l / 2}, ${l / 2})`), f && h.attr("style", f); } else h = uh(i, l, l, u); @@ -45305,7 +45305,7 @@ res:`, si.polygon(e, u, d) ), si.polygon(e, u, d); }, i; -}, "question"), JSt = /* @__PURE__ */ x((t, e, r, n, i) => [ +}, "question"), jSt = /* @__PURE__ */ x((t, e, r, n, i) => [ `M${t + i},${e}`, `L${t + r - i},${e}`, `L${t + r},${e - n / 2}`, @@ -45313,7 +45313,7 @@ res:`, `L${t + i},${e - n}`, `L${t},${e - n / 2}`, "Z" -].join(" "), "createHexagonPathD"), eTt = /* @__PURE__ */ x(async (t, e) => { +].join(" "), "createHexagonPathD"), KSt = /* @__PURE__ */ x(async (t, e) => { const { labelStyles: r, nodeStyles: n } = Ys(e); e.labelStyle = r; const { shapeSvg: i, bbox: s } = await Qs(t, e, po(e)), a = 4, o = s.height + e.padding, l = o / a, u = s.width + 2 * l + e.padding, h = [ @@ -45327,20 +45327,20 @@ res:`, let f; const { cssStyles: d } = e; if (e.look === "handDrawn") { - const p = Bn.svg(i), g = gs(e, {}), m = JSt(0, 0, u, o, l), v = p.path(m, g); + const p = Bn.svg(i), g = gs(e, {}), m = jSt(0, 0, u, o, l), v = p.path(m, g); f = i.insert(() => v, ":first-child").attr("transform", `translate(${-u / 2}, ${o / 2})`), d && f.attr("style", d); } else f = uh(i, u, o, h); return n && f.attr("style", n), e.width = u, e.height = o, ii(e, f), e.intersect = function(p) { return si.polygon(e, h, p); }, i; -}, "hexagon"), tTt = /* @__PURE__ */ x((t, e, r, n) => [ +}, "hexagon"), JSt = /* @__PURE__ */ x((t, e, r, n) => [ `M${t - 2 * n / 6},${e}`, `L${t + r - n / 6},${e}`, `L${t + r + 2 * n / 6},${e - n}`, `L${t + n / 6},${e - n}`, "Z" -].join(" "), "createLeanRightPathD"), rTt = /* @__PURE__ */ x(async (t, e) => { +].join(" "), "createLeanRightPathD"), eTt = /* @__PURE__ */ x(async (t, e) => { const { labelStyles: r, nodeStyles: n } = Ys(e); e.labelStyle = r; const { shapeSvg: i, bbox: s } = await Qs(t, e, po(e)), a = s.width + e.padding, o = s.height + e.padding, l = [ @@ -45352,20 +45352,20 @@ res:`, let u; const { cssStyles: h } = e; if (e.look === "handDrawn") { - const f = Bn.svg(i), d = gs(e, {}), p = tTt(0, 0, a, o), g = f.path(p, d); + const f = Bn.svg(i), d = gs(e, {}), p = JSt(0, 0, a, o), g = f.path(p, d); u = i.insert(() => g, ":first-child").attr("transform", `translate(${-a / 2}, ${o / 2})`), h && u.attr("style", h); } else u = uh(i, a, o, l); return n && u.attr("style", n), e.width = a, e.height = o, ii(e, u), e.intersect = function(f) { return si.polygon(e, l, f); }, i; -}, "lean_right"), nTt = /* @__PURE__ */ x((t, e, r, n) => [ +}, "lean_right"), tTt = /* @__PURE__ */ x((t, e, r, n) => [ `M${t + 2 * n / 6},${e}`, `L${t + r + n / 6},${e}`, `L${t + r - 2 * n / 6},${e - n}`, `L${t - n / 6},${e - n}`, "Z" -].join(" "), "createLeanLeftPathD"), iTt = /* @__PURE__ */ x(async (t, e) => { +].join(" "), "createLeanLeftPathD"), rTt = /* @__PURE__ */ x(async (t, e) => { const { labelStyles: r, nodeStyles: n } = Ys(e); e.labelStyle = r; const { shapeSvg: i, bbox: s } = await Qs(t, e, po(e)), a = s.width + e.padding, o = s.height + e.padding, l = [ @@ -45377,20 +45377,20 @@ res:`, let u; const { cssStyles: h } = e; if (e.look === "handDrawn") { - const f = Bn.svg(i), d = gs(e, {}), p = nTt(0, 0, a, o), g = f.path(p, d); + const f = Bn.svg(i), d = gs(e, {}), p = tTt(0, 0, a, o), g = f.path(p, d); u = i.insert(() => g, ":first-child").attr("transform", `translate(${-a / 2}, ${o / 2})`), h && u.attr("style", h); } else u = uh(i, a, o, l); return n && u.attr("style", n), e.width = a, e.height = o, ii(e, u), e.intersect = function(f) { return si.polygon(e, l, f); }, i; -}, "lean_left"), sTt = /* @__PURE__ */ x((t, e, r, n) => [ +}, "lean_left"), nTt = /* @__PURE__ */ x((t, e, r, n) => [ `M${t - 2 * n / 6},${e}`, `L${t + r + 2 * n / 6},${e}`, `L${t + r - n / 6},${e - n}`, `L${t + n / 6},${e - n}`, "Z" -].join(" "), "createTrapezoidPathD"), aTt = /* @__PURE__ */ x(async (t, e) => { +].join(" "), "createTrapezoidPathD"), iTt = /* @__PURE__ */ x(async (t, e) => { const { labelStyles: r, nodeStyles: n } = Ys(e); e.labelStyle = r; const { shapeSvg: i, bbox: s } = await Qs(t, e, po(e)), a = s.width + e.padding, o = s.height + e.padding, l = [ @@ -45402,20 +45402,20 @@ res:`, let u; const { cssStyles: h } = e; if (e.look === "handDrawn") { - const f = Bn.svg(i), d = gs(e, {}), p = sTt(0, 0, a, o), g = f.path(p, d); + const f = Bn.svg(i), d = gs(e, {}), p = nTt(0, 0, a, o), g = f.path(p, d); u = i.insert(() => g, ":first-child").attr("transform", `translate(${-a / 2}, ${o / 2})`), h && u.attr("style", h); } else u = uh(i, a, o, l); return n && u.attr("style", n), e.width = a, e.height = o, ii(e, u), e.intersect = function(f) { return si.polygon(e, l, f); }, i; -}, "trapezoid"), oTt = /* @__PURE__ */ x((t, e, r, n) => [ +}, "trapezoid"), sTt = /* @__PURE__ */ x((t, e, r, n) => [ `M${t + n / 6},${e}`, `L${t + r - n / 6},${e}`, `L${t + r + 2 * n / 6},${e - n}`, `L${t - 2 * n / 6},${e - n}`, "Z" -].join(" "), "createInvertedTrapezoidPathD"), lTt = /* @__PURE__ */ x(async (t, e) => { +].join(" "), "createInvertedTrapezoidPathD"), aTt = /* @__PURE__ */ x(async (t, e) => { const { labelStyles: r, nodeStyles: n } = Ys(e); e.labelStyle = r; const { shapeSvg: i, bbox: s } = await Qs(t, e, po(e)), a = s.width + e.padding, o = s.height + e.padding, l = [ @@ -45427,55 +45427,55 @@ res:`, let u; const { cssStyles: h } = e; if (e.look === "handDrawn") { - const f = Bn.svg(i), d = gs(e, {}), p = oTt(0, 0, a, o), g = f.path(p, d); + const f = Bn.svg(i), d = gs(e, {}), p = sTt(0, 0, a, o), g = f.path(p, d); u = i.insert(() => g, ":first-child").attr("transform", `translate(${-a / 2}, ${o / 2})`), h && u.attr("style", h); } else u = uh(i, a, o, l); return n && u.attr("style", n), e.width = a, e.height = o, ii(e, u), e.intersect = function(f) { return si.polygon(e, l, f); }, i; -}, "inv_trapezoid"), cTt = /* @__PURE__ */ x(async (t, e) => { +}, "inv_trapezoid"), oTt = /* @__PURE__ */ x(async (t, e) => { const { shapeSvg: r } = await Qs(t, e, "label"), n = r.insert("rect", ":first-child"), i = 0.1, s = 0.1; return n.attr("width", i).attr("height", s), r.attr("class", "label edgeLabel"), ii(e, n), e.intersect = function(a) { return si.rect(e, a); }, r; -}, "labelRect"), Kq = { - state: DSt, - stateStart: PSt, - stateEnd: $St, - fork: jq, - join: jq, - choice: BSt, - note: FSt, - roundedRect: NSt, - rectWithTitle: VSt, - squareRect: ISt, - stadium: zSt, - subroutine: USt, - cylinder: WSt, - circle: GSt, - doublecircle: HSt, - odd: ZSt, - diamond: KSt, - hexagon: eTt, - lean_right: rTt, - lean_left: iTt, - trapezoid: aTt, - inv_trapezoid: lTt, - labelRect: cTt -}, sg = /* @__PURE__ */ new Map(), koe = /* @__PURE__ */ x(async (t, e, r) => { +}, "labelRect"), Xq = { + state: RSt, + stateStart: NSt, + stateEnd: ISt, + fork: Hq, + join: Hq, + choice: PSt, + note: $St, + roundedRect: MSt, + rectWithTitle: FSt, + squareRect: DSt, + stadium: BSt, + subroutine: zSt, + cylinder: YSt, + circle: QSt, + doublecircle: WSt, + odd: HSt, + diamond: ZSt, + hexagon: KSt, + lean_right: eTt, + lean_left: rTt, + trapezoid: iTt, + inv_trapezoid: aTt, + labelRect: oTt +}, sg = /* @__PURE__ */ new Map(), woe = /* @__PURE__ */ x(async (t, e, r) => { let n, i; if (e.shape === "rect" && (e.rx && e.ry ? e.shape = "roundedRect" : e.shape = "squareRect"), e.link) { let s; - be().securityLevel === "sandbox" ? s = "_top" : e.linkTarget && (s = e.linkTarget || "_blank"), n = t.insert("svg:a").attr("xlink:href", e.link).attr("target", s), i = await Kq[e.shape](n, e, r); + be().securityLevel === "sandbox" ? s = "_top" : e.linkTarget && (s = e.linkTarget || "_blank"), n = t.insert("svg:a").attr("xlink:href", e.link).attr("target", s), i = await Xq[e.shape](n, e, r); } else - i = await Kq[e.shape](t, e, r), n = i; + i = await Xq[e.shape](t, e, r), n = i; return e.tooltip && i.attr("title", e.tooltip), sg.set(e.id, n), e.haveCallback && sg.get(e.id).attr("class", sg.get(e.id).attr("class") + " clickable"), n; -}, "insertNode"), uTt = /* @__PURE__ */ x((t, e) => { +}, "insertNode"), lTt = /* @__PURE__ */ x((t, e) => { sg.set(e.id, t); -}, "setNodeElem"), hTt = /* @__PURE__ */ x(() => { +}, "setNodeElem"), cTt = /* @__PURE__ */ x(() => { sg.clear(); -}, "clear"), Jq = /* @__PURE__ */ x((t) => { +}, "clear"), Zq = /* @__PURE__ */ x((t) => { const e = sg.get(t.id); X.trace( "Transforming node", @@ -45488,44 +45488,44 @@ res:`, "transform", "translate(" + (t.x + n - t.width / 2) + ", " + (t.y - t.height / 2 - r) + ")" ) : e.attr("transform", "translate(" + t.x + ", " + t.y + ")"), n; -}, "positionNode"), fTt = { +}, "positionNode"), uTt = { common: at, getConfig: pi, - insertCluster: hoe, - insertEdge: goe, - insertEdgeLabel: foe, - insertMarkers: moe, - insertNode: koe, + insertCluster: coe, + insertEdge: doe, + insertEdgeLabel: uoe, + insertMarkers: poe, + insertNode: woe, interpolateToCurve: mx, labelHelper: Qs, log: X, - positionEdgeLabel: doe -}, y2 = {}, Soe = /* @__PURE__ */ x((t) => { + positionEdgeLabel: hoe +}, y2 = {}, Ooe = /* @__PURE__ */ x((t) => { for (const e of t) y2[e.name] = e; -}, "registerLayoutLoaders"), dTt = /* @__PURE__ */ x(() => { - Soe([ +}, "registerLayoutLoaders"), hTt = /* @__PURE__ */ x(() => { + Ooe([ { name: "dagre", - loader: /* @__PURE__ */ x(async () => await Promise.resolve().then(() => xIt), "loader") + loader: /* @__PURE__ */ x(async () => await Promise.resolve().then(() => yIt), "loader") } ]); }, "registerDefaultLayoutLoaders"); -dTt(); -var Toe = /* @__PURE__ */ x(async (t, e) => { +hTt(); +var koe = /* @__PURE__ */ x(async (t, e) => { if (!(t.layoutAlgorithm in y2)) throw new Error(`Unknown layout algorithm: ${t.layoutAlgorithm}`); const r = y2[t.layoutAlgorithm]; - return (await r.loader()).render(t, e, fTt, { + return (await r.loader()).render(t, e, uTt, { algorithm: r.algorithm }); -}, "render"), pTt = /* @__PURE__ */ x((t = "", { fallback: e = "dagre" } = {}) => { +}, "render"), fTt = /* @__PURE__ */ x((t = "", { fallback: e = "dagre" } = {}) => { if (t in y2) return t; if (e in y2) return X.warn(`Layout algorithm ${t} is not registered. Using ${e} as fallback.`), e; throw new Error(`Both layout algorithms ${t} and ${e} are not registered.`); -}, "getRegisteredLayoutAlgorithm"), K8 = "11.2.0", Z0 = /* @__PURE__ */ x((t) => { +}, "getRegisteredLayoutAlgorithm"), Z8 = "11.2.0", Z0 = /* @__PURE__ */ x((t) => { var i, s; const { securityLevel: e } = be(); let r = et("body"); @@ -45534,14 +45534,14 @@ var Toe = /* @__PURE__ */ x(async (t, e) => { r = et(o.body); } return r.select(`#${t}`); -}, "selectSvgElement"), Coe = "comm", Eoe = "rule", _oe = "decl", gTt = "@import", mTt = "@keyframes", vTt = "@layer", Aoe = Math.abs, pN = String.fromCharCode; -function Loe(t) { +}, "selectSvgElement"), Soe = "comm", Toe = "rule", Coe = "decl", dTt = "@import", pTt = "@keyframes", gTt = "@layer", Eoe = Math.abs, hN = String.fromCharCode; +function _oe(t) { return t.trim(); } -function B4(t, e, r) { +function $4(t, e, r) { return t.replace(e, r); } -function yTt(t, e, r) { +function mTt(t, e, r) { return t.indexOf(e, r); } function b2(t, e) { @@ -45553,32 +45553,32 @@ function n1(t, e, r) { function ac(t) { return t.length; } -function bTt(t) { +function vTt(t) { return t.length; } function sO(t, e) { return e.push(t), t; } -var QT = 1, i1 = 1, Roe = 0, Zo = 0, ci = 0, rm = ""; -function gN(t, e, r, n, i, s, a, o) { - return { value: t, root: e, parent: r, type: n, props: i, children: s, line: QT, column: i1, length: a, return: "", siblings: o }; +var qT = 1, i1 = 1, Aoe = 0, Zo = 0, ci = 0, rm = ""; +function fN(t, e, r, n, i, s, a, o) { + return { value: t, root: e, parent: r, type: n, props: i, children: s, line: qT, column: i1, length: a, return: "", siblings: o }; } -function xTt() { +function yTt() { return ci; } -function wTt() { - return ci = Zo > 0 ? b2(rm, --Zo) : 0, i1--, ci === 10 && (i1 = 1, QT--), ci; +function bTt() { + return ci = Zo > 0 ? b2(rm, --Zo) : 0, i1--, ci === 10 && (i1 = 1, qT--), ci; } function kl() { - return ci = Zo < Roe ? b2(rm, Zo++) : 0, i1++, ci === 10 && (i1 = 1, QT++), ci; + return ci = Zo < Aoe ? b2(rm, Zo++) : 0, i1++, ci === 10 && (i1 = 1, qT++), ci; } function Vh() { return b2(rm, Zo); } -function F4() { +function B4() { return Zo; } -function WT(t, e) { +function YT(t, e) { return n1(rm, t, e); } function x2(t) { @@ -45613,36 +45613,36 @@ function x2(t) { } return 0; } -function OTt(t) { - return QT = i1 = 1, Roe = ac(rm = t), Zo = 0, []; +function xTt(t) { + return qT = i1 = 1, Aoe = ac(rm = t), Zo = 0, []; } -function kTt(t) { +function wTt(t) { return rm = "", t; } -function l_(t) { - return Loe(WT(Zo - 1, J8(t === 91 ? t + 2 : t === 40 ? t + 1 : t))); +function a_(t) { + return _oe(YT(Zo - 1, j8(t === 91 ? t + 2 : t === 40 ? t + 1 : t))); } -function STt(t) { +function OTt(t) { for (; (ci = Vh()) && ci < 33; ) kl(); return x2(t) > 2 || x2(ci) > 3 ? "" : " "; } -function TTt(t, e) { +function kTt(t, e) { for (; --e && kl() && !(ci < 48 || ci > 102 || ci > 57 && ci < 65 || ci > 70 && ci < 97); ) ; - return WT(t, F4() + (e < 6 && Vh() == 32 && kl() == 32)); + return YT(t, B4() + (e < 6 && Vh() == 32 && kl() == 32)); } -function J8(t) { +function j8(t) { for (; kl(); ) switch (ci) { case t: return Zo; case 34: case 39: - t !== 34 && t !== 39 && J8(ci); + t !== 34 && t !== 39 && j8(ci); break; case 40: - t === 41 && J8(t); + t === 41 && j8(t); break; case 92: kl(); @@ -45650,47 +45650,47 @@ function J8(t) { } return Zo; } -function CTt(t, e) { +function STt(t, e) { for (; kl() && t + ci !== 47 + 10; ) if (t + ci === 42 + 42 && Vh() === 47) break; - return "/*" + WT(e, Zo - 1) + "*" + pN(t === 47 ? t : kl()); + return "/*" + YT(e, Zo - 1) + "*" + hN(t === 47 ? t : kl()); } -function ETt(t) { +function TTt(t) { for (; !x2(Vh()); ) kl(); - return WT(t, Zo); + return YT(t, Zo); } -function _Tt(t) { - return kTt(z4("", null, null, null, [""], t = OTt(t), 0, [0], t)); +function CTt(t) { + return wTt(F4("", null, null, null, [""], t = xTt(t), 0, [0], t)); } -function z4(t, e, r, n, i, s, a, o, l) { +function F4(t, e, r, n, i, s, a, o, l) { for (var u = 0, h = 0, f = a, d = 0, p = 0, g = 0, m = 1, v = 1, y = 1, b = 0, w = "", O = i, S = s, C = n, T = w; v; ) switch (g = b, b = kl()) { case 40: if (g != 108 && b2(T, f - 1) == 58) { - yTt(T += B4(l_(b), "&", "&\f"), "&\f", Aoe(u ? o[u - 1] : 0)) != -1 && (y = -1); + mTt(T += $4(a_(b), "&", "&\f"), "&\f", Eoe(u ? o[u - 1] : 0)) != -1 && (y = -1); break; } case 34: case 39: case 91: - T += l_(b); + T += a_(b); break; case 9: case 10: case 13: case 32: - T += STt(g); + T += OTt(g); break; case 92: - T += TTt(F4() - 1, 7); + T += kTt(B4() - 1, 7); continue; case 47: switch (Vh()) { case 42: case 47: - sO(ATt(CTt(kl(), F4()), e, r, l), l), (x2(g || 1) == 5 || x2(Vh() || 1) == 5) && ac(T) && n1(T, -1, void 0) !== " " && (T += " "); + sO(ETt(STt(kl(), B4()), e, r, l), l), (x2(g || 1) == 5 || x2(Vh() || 1) == 5) && ac(T) && n1(T, -1, void 0) !== " " && (T += " "); break; default: T += "/"; @@ -45706,24 +45706,24 @@ function z4(t, e, r, n, i, s, a, o, l) { case 125: v = 0; case 59 + h: - y == -1 && (T = B4(T, /\f/g, "")), p > 0 && (ac(T) - f || m === 0 && g === 47) && sO(p > 32 ? tY(T + ";", n, r, f - 1, l) : tY(B4(T, " ", "") + ";", n, r, f - 2, l), l); + y == -1 && (T = $4(T, /\f/g, "")), p > 0 && (ac(T) - f || m === 0 && g === 47) && sO(p > 32 ? Kq(T + ";", n, r, f - 1, l) : Kq($4(T, " ", "") + ";", n, r, f - 2, l), l); break; case 59: T += ";"; default: - if (sO(C = eY(T, e, r, u, h, i, o, w, O = [], S = [], f, s), s), b === 123) + if (sO(C = jq(T, e, r, u, h, i, o, w, O = [], S = [], f, s), s), b === 123) if (h === 0) - z4(T, e, C, C, O, s, f, o, S); + F4(T, e, C, C, O, s, f, o, S); else switch (d === 99 && b2(T, 3) === 110 ? 100 : d) { case 100: case 108: case 109: case 115: - z4(t, C, C, n && sO(eY(t, C, C, 0, 0, i, o, w, i, O = [], f, S), S), i, S, f, o, n ? O : S); + F4(t, C, C, n && sO(jq(t, C, C, 0, 0, i, o, w, i, O = [], f, S), S), i, S, f, o, n ? O : S); break; default: - z4(T, C, C, C, [""], S, 0, o, S); + F4(T, C, C, C, [""], S, 0, o, S); } } u = h = p = 0, m = y = 1, w = T = "", f = a; @@ -45734,10 +45734,10 @@ function z4(t, e, r, n, i, s, a, o, l) { if (m < 1) { if (b == 123) --m; - else if (b == 125 && m++ == 0 && wTt() == 125) + else if (b == 125 && m++ == 0 && bTt() == 125) continue; } - switch (T += pN(b), b * m) { + switch (T += hN(b), b * m) { case 38: y = h > 0 ? 1 : (T += "\f", -1); break; @@ -45745,7 +45745,7 @@ function z4(t, e, r, n, i, s, a, o, l) { o[u++] = (ac(T) - 1) * y, y = 1; break; case 64: - Vh() === 45 && (T += l_(kl())), d = Vh(), h = f = ac(w = T += ETt(F4())), b++; + Vh() === 45 && (T += a_(kl())), d = Vh(), h = f = ac(w = T += TTt(B4())), b++; break; case 45: g === 45 && ac(T) == 2 && (m = 0); @@ -45753,233 +45753,233 @@ function z4(t, e, r, n, i, s, a, o, l) { } return s; } -function eY(t, e, r, n, i, s, a, o, l, u, h, f) { - for (var d = i - 1, p = i === 0 ? s : [""], g = bTt(p), m = 0, v = 0, y = 0; m < n; ++m) - for (var b = 0, w = n1(t, d + 1, d = Aoe(v = a[m])), O = t; b < g; ++b) - (O = Loe(v > 0 ? p[b] + " " + w : B4(w, /&\f/g, p[b]))) && (l[y++] = O); - return gN(t, e, r, i === 0 ? Eoe : o, l, u, h, f); +function jq(t, e, r, n, i, s, a, o, l, u, h, f) { + for (var d = i - 1, p = i === 0 ? s : [""], g = vTt(p), m = 0, v = 0, y = 0; m < n; ++m) + for (var b = 0, w = n1(t, d + 1, d = Eoe(v = a[m])), O = t; b < g; ++b) + (O = _oe(v > 0 ? p[b] + " " + w : $4(w, /&\f/g, p[b]))) && (l[y++] = O); + return fN(t, e, r, i === 0 ? Toe : o, l, u, h, f); } -function ATt(t, e, r, n) { - return gN(t, e, r, Coe, pN(xTt()), n1(t, 2, -2), 0, n); +function ETt(t, e, r, n) { + return fN(t, e, r, Soe, hN(yTt()), n1(t, 2, -2), 0, n); } -function tY(t, e, r, n, i) { - return gN(t, e, r, _oe, n1(t, 0, n), n1(t, n + 1, -1), n, i); +function Kq(t, e, r, n, i) { + return fN(t, e, r, Coe, n1(t, 0, n), n1(t, n + 1, -1), n, i); } -function eL(t, e) { +function K8(t, e) { for (var r = "", n = 0; n < t.length; n++) r += e(t[n], n, t, e) || ""; return r; } -function LTt(t, e, r, n) { +function _Tt(t, e, r, n) { switch (t.type) { - case vTt: + case gTt: if (t.children.length) break; - case gTt: - case _oe: - return t.return = t.return || t.value; + case dTt: case Coe: + return t.return = t.return || t.value; + case Soe: return ""; - case mTt: - return t.return = t.value + "{" + eL(t.children, n) + "}"; - case Eoe: + case pTt: + return t.return = t.value + "{" + K8(t.children, n) + "}"; + case Toe: if (!ac(t.value = t.props.join(","))) return ""; } - return ac(r = eL(t.children, n)) ? t.return = t.value + "{" + r + "}" : ""; + return ac(r = K8(t.children, n)) ? t.return = t.value + "{" + r + "}" : ""; } -var RTt = cae(Object.keys, Object); -const MTt = RTt; -var DTt = Object.prototype, NTt = DTt.hasOwnProperty; -function Moe(t) { +var ATt = oae(Object.keys, Object); +const LTt = ATt; +var RTt = Object.prototype, MTt = RTt.hasOwnProperty; +function Loe(t) { if (!dx(t)) - return MTt(t); + return LTt(t); var e = []; for (var r in Object(t)) - NTt.call(t, r) && r != "constructor" && e.push(r); + MTt.call(t, r) && r != "constructor" && e.push(r); return e; } -var ITt = W0(Gl, "DataView"); -const tL = ITt; -var PTt = W0(Gl, "Promise"); -const rL = PTt; -var $Tt = W0(Gl, "Set"); -const ag = $Tt; -var BTt = W0(Gl, "WeakMap"); -const nL = BTt; -var rY = "[object Map]", FTt = "[object Object]", nY = "[object Promise]", iY = "[object Set]", sY = "[object WeakMap]", aY = "[object DataView]", zTt = Q0(tL), VTt = Q0(m2), UTt = Q0(rL), qTt = Q0(ag), YTt = Q0(nL), ud = ah; -(tL && ud(new tL(new ArrayBuffer(1))) != aY || m2 && ud(new m2()) != rY || rL && ud(rL.resolve()) != nY || ag && ud(new ag()) != iY || nL && ud(new nL()) != sY) && (ud = function(t) { - var e = ah(t), r = e == FTt ? t.constructor : void 0, n = r ? Q0(r) : ""; +var DTt = W0(Gl, "DataView"); +const J8 = DTt; +var NTt = W0(Gl, "Promise"); +const eL = NTt; +var ITt = W0(Gl, "Set"); +const ag = ITt; +var PTt = W0(Gl, "WeakMap"); +const tL = PTt; +var Jq = "[object Map]", $Tt = "[object Object]", eY = "[object Promise]", tY = "[object Set]", rY = "[object WeakMap]", nY = "[object DataView]", BTt = Q0(J8), FTt = Q0(m2), zTt = Q0(eL), VTt = Q0(ag), UTt = Q0(tL), ud = ah; +(J8 && ud(new J8(new ArrayBuffer(1))) != nY || m2 && ud(new m2()) != Jq || eL && ud(eL.resolve()) != eY || ag && ud(new ag()) != tY || tL && ud(new tL()) != rY) && (ud = function(t) { + var e = ah(t), r = e == $Tt ? t.constructor : void 0, n = r ? Q0(r) : ""; if (n) switch (n) { + case BTt: + return nY; + case FTt: + return Jq; case zTt: - return aY; + return eY; case VTt: - return rY; + return tY; case UTt: - return nY; - case qTt: - return iY; - case YTt: - return sY; + return rY; } return e; }); const s1 = ud; -var QTt = "[object Map]", WTt = "[object Set]", GTt = Object.prototype, HTt = GTt.hasOwnProperty; +var qTt = "[object Map]", YTt = "[object Set]", QTt = Object.prototype, WTt = QTt.hasOwnProperty; function $r(t) { if (t == null) return !0; - if (jc(t) && (Sr(t) || typeof t == "string" || typeof t.splice == "function" || r1(t) || FT(t) || t1(t))) + if (jc(t) && (Sr(t) || typeof t == "string" || typeof t.splice == "function" || r1(t) || $T(t) || t1(t))) return !t.length; var e = s1(t); - if (e == QTt || e == WTt) + if (e == qTt || e == YTt) return !t.size; if (dx(t)) - return !Moe(t).length; + return !Loe(t).length; for (var r in t) - if (HTt.call(t, r)) + if (WTt.call(t, r)) return !1; return !0; } -var Doe = "c4", XTt = /* @__PURE__ */ x((t) => /^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(t), "detector"), ZTt = /* @__PURE__ */ x(async () => { - const { diagram: t } = await Promise.resolve().then(() => yPt); - return { id: Doe, diagram: t }; -}, "loader"), jTt = { - id: Doe, - detector: XTt, - loader: ZTt -}, KTt = jTt, Noe = "flowchart", JTt = /* @__PURE__ */ x((t, e) => { +var Roe = "c4", GTt = /* @__PURE__ */ x((t) => /^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(t), "detector"), HTt = /* @__PURE__ */ x(async () => { + const { diagram: t } = await Promise.resolve().then(() => mPt); + return { id: Roe, diagram: t }; +}, "loader"), XTt = { + id: Roe, + detector: GTt, + loader: HTt +}, ZTt = XTt, Moe = "flowchart", jTt = /* @__PURE__ */ x((t, e) => { var r, n; return ((r = e == null ? void 0 : e.flowchart) == null ? void 0 : r.defaultRenderer) === "dagre-wrapper" || ((n = e == null ? void 0 : e.flowchart) == null ? void 0 : n.defaultRenderer) === "elk" ? !1 : /^\s*graph/.test(t); -}, "detector"), eCt = /* @__PURE__ */ x(async () => { - const { diagram: t } = await Promise.resolve().then(() => wI); - return { id: Noe, diagram: t }; -}, "loader"), tCt = { - id: Noe, - detector: JTt, - loader: eCt -}, rCt = tCt, Ioe = "flowchart-v2", nCt = /* @__PURE__ */ x((t, e) => { +}, "detector"), KTt = /* @__PURE__ */ x(async () => { + const { diagram: t } = await Promise.resolve().then(() => yI); + return { id: Moe, diagram: t }; +}, "loader"), JTt = { + id: Moe, + detector: jTt, + loader: KTt +}, eCt = JTt, Doe = "flowchart-v2", tCt = /* @__PURE__ */ x((t, e) => { var r, n, i; return ((r = e == null ? void 0 : e.flowchart) == null ? void 0 : r.defaultRenderer) === "dagre-d3" ? !1 : (((n = e == null ? void 0 : e.flowchart) == null ? void 0 : n.defaultRenderer) === "elk" && (e.layout = "elk"), /^\s*graph/.test(t) && ((i = e == null ? void 0 : e.flowchart) == null ? void 0 : i.defaultRenderer) === "dagre-wrapper" ? !0 : /^\s*flowchart/.test(t)); -}, "detector"), iCt = /* @__PURE__ */ x(async () => { - const { diagram: t } = await Promise.resolve().then(() => wI); +}, "detector"), rCt = /* @__PURE__ */ x(async () => { + const { diagram: t } = await Promise.resolve().then(() => yI); + return { id: Doe, diagram: t }; +}, "loader"), nCt = { + id: Doe, + detector: tCt, + loader: rCt +}, iCt = nCt, Noe = "er", sCt = /* @__PURE__ */ x((t) => /^\s*erDiagram/.test(t), "detector"), aCt = /* @__PURE__ */ x(async () => { + const { diagram: t } = await Promise.resolve().then(() => bBt); + return { id: Noe, diagram: t }; +}, "loader"), oCt = { + id: Noe, + detector: sCt, + loader: aCt +}, lCt = oCt, Ioe = "gitGraph", cCt = /* @__PURE__ */ x((t) => /^\s*gitGraph/.test(t), "detector"), uCt = /* @__PURE__ */ x(async () => { + const { diagram: t } = await Promise.resolve().then(() => FQt); return { id: Ioe, diagram: t }; -}, "loader"), sCt = { +}, "loader"), hCt = { id: Ioe, - detector: nCt, - loader: iCt -}, aCt = sCt, Poe = "er", oCt = /* @__PURE__ */ x((t) => /^\s*erDiagram/.test(t), "detector"), lCt = /* @__PURE__ */ x(async () => { - const { diagram: t } = await Promise.resolve().then(() => wBt); + detector: cCt, + loader: uCt +}, fCt = hCt, Poe = "gantt", dCt = /* @__PURE__ */ x((t) => /^\s*gantt/.test(t), "detector"), pCt = /* @__PURE__ */ x(async () => { + const { diagram: t } = await Promise.resolve().then(() => DWt); return { id: Poe, diagram: t }; -}, "loader"), cCt = { +}, "loader"), gCt = { id: Poe, - detector: oCt, - loader: lCt -}, uCt = cCt, $oe = "gitGraph", hCt = /* @__PURE__ */ x((t) => /^\s*gitGraph/.test(t), "detector"), fCt = /* @__PURE__ */ x(async () => { - const { diagram: t } = await Promise.resolve().then(() => VQt); + detector: dCt, + loader: pCt +}, mCt = gCt, $oe = "info", vCt = /* @__PURE__ */ x((t) => /^\s*info/.test(t), "detector"), yCt = /* @__PURE__ */ x(async () => { + const { diagram: t } = await Promise.resolve().then(() => VWt); return { id: $oe, diagram: t }; -}, "loader"), dCt = { +}, "loader"), bCt = { id: $oe, - detector: hCt, - loader: fCt -}, pCt = dCt, Boe = "gantt", gCt = /* @__PURE__ */ x((t) => /^\s*gantt/.test(t), "detector"), mCt = /* @__PURE__ */ x(async () => { - const { diagram: t } = await Promise.resolve().then(() => IWt); + detector: vCt, + loader: yCt +}, Boe = "pie", xCt = /* @__PURE__ */ x((t) => /^\s*pie/.test(t), "detector"), wCt = /* @__PURE__ */ x(async () => { + const { diagram: t } = await Promise.resolve().then(() => nGt); return { id: Boe, diagram: t }; -}, "loader"), vCt = { +}, "loader"), OCt = { id: Boe, - detector: gCt, - loader: mCt -}, yCt = vCt, Foe = "info", bCt = /* @__PURE__ */ x((t) => /^\s*info/.test(t), "detector"), xCt = /* @__PURE__ */ x(async () => { - const { diagram: t } = await Promise.resolve().then(() => qWt); + detector: xCt, + loader: wCt +}, Foe = "quadrantChart", kCt = /* @__PURE__ */ x((t) => /^\s*quadrantChart/.test(t), "detector"), SCt = /* @__PURE__ */ x(async () => { + const { diagram: t } = await Promise.resolve().then(() => fGt); return { id: Foe, diagram: t }; -}, "loader"), wCt = { +}, "loader"), TCt = { id: Foe, - detector: bCt, - loader: xCt -}, zoe = "pie", OCt = /* @__PURE__ */ x((t) => /^\s*pie/.test(t), "detector"), kCt = /* @__PURE__ */ x(async () => { - const { diagram: t } = await Promise.resolve().then(() => sGt); + detector: kCt, + loader: SCt +}, CCt = TCt, zoe = "xychart", ECt = /* @__PURE__ */ x((t) => /^\s*xychart-beta/.test(t), "detector"), _Ct = /* @__PURE__ */ x(async () => { + const { diagram: t } = await Promise.resolve().then(() => EGt); return { id: zoe, diagram: t }; -}, "loader"), SCt = { +}, "loader"), ACt = { id: zoe, - detector: OCt, - loader: kCt -}, Voe = "quadrantChart", TCt = /* @__PURE__ */ x((t) => /^\s*quadrantChart/.test(t), "detector"), CCt = /* @__PURE__ */ x(async () => { - const { diagram: t } = await Promise.resolve().then(() => pGt); + detector: ECt, + loader: _Ct +}, LCt = ACt, Voe = "requirement", RCt = /* @__PURE__ */ x((t) => /^\s*requirement(Diagram)?/.test(t), "detector"), MCt = /* @__PURE__ */ x(async () => { + const { diagram: t } = await Promise.resolve().then(() => sHt); return { id: Voe, diagram: t }; -}, "loader"), ECt = { +}, "loader"), DCt = { id: Voe, - detector: TCt, - loader: CCt -}, _Ct = ECt, Uoe = "xychart", ACt = /* @__PURE__ */ x((t) => /^\s*xychart-beta/.test(t), "detector"), LCt = /* @__PURE__ */ x(async () => { - const { diagram: t } = await Promise.resolve().then(() => AGt); + detector: RCt, + loader: MCt +}, NCt = DCt, Uoe = "sequence", ICt = /* @__PURE__ */ x((t) => /^\s*sequenceDiagram/.test(t), "detector"), PCt = /* @__PURE__ */ x(async () => { + const { diagram: t } = await Promise.resolve().then(() => aXt); return { id: Uoe, diagram: t }; -}, "loader"), RCt = { +}, "loader"), $Ct = { id: Uoe, - detector: ACt, - loader: LCt -}, MCt = RCt, qoe = "requirement", DCt = /* @__PURE__ */ x((t) => /^\s*requirement(Diagram)?/.test(t), "detector"), NCt = /* @__PURE__ */ x(async () => { - const { diagram: t } = await Promise.resolve().then(() => oHt); + detector: ICt, + loader: PCt +}, BCt = $Ct, qoe = "class", FCt = /* @__PURE__ */ x((t, e) => { + var r; + return ((r = e == null ? void 0 : e.class) == null ? void 0 : r.defaultRenderer) === "dagre-wrapper" ? !1 : /^\s*classDiagram/.test(t); +}, "detector"), zCt = /* @__PURE__ */ x(async () => { + const { diagram: t } = await Promise.resolve().then(() => VXt); return { id: qoe, diagram: t }; -}, "loader"), ICt = { +}, "loader"), VCt = { id: qoe, - detector: DCt, - loader: NCt -}, PCt = ICt, Yoe = "sequence", $Ct = /* @__PURE__ */ x((t) => /^\s*sequenceDiagram/.test(t), "detector"), BCt = /* @__PURE__ */ x(async () => { - const { diagram: t } = await Promise.resolve().then(() => lXt); + detector: FCt, + loader: zCt +}, UCt = VCt, Yoe = "classDiagram", qCt = /* @__PURE__ */ x((t, e) => { + var r; + return /^\s*classDiagram/.test(t) && ((r = e == null ? void 0 : e.class) == null ? void 0 : r.defaultRenderer) === "dagre-wrapper" ? !0 : /^\s*classDiagram-v2/.test(t); +}, "detector"), YCt = /* @__PURE__ */ x(async () => { + const { diagram: t } = await Promise.resolve().then(() => kZt); return { id: Yoe, diagram: t }; -}, "loader"), FCt = { +}, "loader"), QCt = { id: Yoe, - detector: $Ct, - loader: BCt -}, zCt = FCt, Qoe = "class", VCt = /* @__PURE__ */ x((t, e) => { + detector: qCt, + loader: YCt +}, WCt = QCt, Qoe = "state", GCt = /* @__PURE__ */ x((t, e) => { var r; - return ((r = e == null ? void 0 : e.class) == null ? void 0 : r.defaultRenderer) === "dagre-wrapper" ? !1 : /^\s*classDiagram/.test(t); -}, "detector"), UCt = /* @__PURE__ */ x(async () => { - const { diagram: t } = await Promise.resolve().then(() => qXt); + return ((r = e == null ? void 0 : e.state) == null ? void 0 : r.defaultRenderer) === "dagre-wrapper" ? !1 : /^\s*stateDiagram/.test(t); +}, "detector"), HCt = /* @__PURE__ */ x(async () => { + const { diagram: t } = await Promise.resolve().then(() => Njt); return { id: Qoe, diagram: t }; -}, "loader"), qCt = { +}, "loader"), XCt = { id: Qoe, - detector: VCt, - loader: UCt -}, YCt = qCt, Woe = "classDiagram", QCt = /* @__PURE__ */ x((t, e) => { + detector: GCt, + loader: HCt +}, ZCt = XCt, Woe = "stateDiagram", jCt = /* @__PURE__ */ x((t, e) => { var r; - return /^\s*classDiagram/.test(t) && ((r = e == null ? void 0 : e.class) == null ? void 0 : r.defaultRenderer) === "dagre-wrapper" ? !0 : /^\s*classDiagram-v2/.test(t); -}, "detector"), WCt = /* @__PURE__ */ x(async () => { - const { diagram: t } = await Promise.resolve().then(() => TZt); + return !!(/^\s*stateDiagram-v2/.test(t) || /^\s*stateDiagram/.test(t) && ((r = e == null ? void 0 : e.state) == null ? void 0 : r.defaultRenderer) === "dagre-wrapper"); +}, "detector"), KCt = /* @__PURE__ */ x(async () => { + const { diagram: t } = await Promise.resolve().then(() => Pjt); return { id: Woe, diagram: t }; -}, "loader"), GCt = { +}, "loader"), JCt = { id: Woe, - detector: QCt, - loader: WCt -}, HCt = GCt, Goe = "state", XCt = /* @__PURE__ */ x((t, e) => { - var r; - return ((r = e == null ? void 0 : e.state) == null ? void 0 : r.defaultRenderer) === "dagre-wrapper" ? !1 : /^\s*stateDiagram/.test(t); -}, "detector"), ZCt = /* @__PURE__ */ x(async () => { - const { diagram: t } = await Promise.resolve().then(() => Pjt); + detector: jCt, + loader: KCt +}, eEt = JCt, Goe = "journey", tEt = /* @__PURE__ */ x((t) => /^\s*journey/.test(t), "detector"), rEt = /* @__PURE__ */ x(async () => { + const { diagram: t } = await Promise.resolve().then(() => iKt); return { id: Goe, diagram: t }; -}, "loader"), jCt = { +}, "loader"), nEt = { id: Goe, - detector: XCt, - loader: ZCt -}, KCt = jCt, Hoe = "stateDiagram", JCt = /* @__PURE__ */ x((t, e) => { - var r; - return !!(/^\s*stateDiagram-v2/.test(t) || /^\s*stateDiagram/.test(t) && ((r = e == null ? void 0 : e.state) == null ? void 0 : r.defaultRenderer) === "dagre-wrapper"); -}, "detector"), eEt = /* @__PURE__ */ x(async () => { - const { diagram: t } = await Promise.resolve().then(() => Bjt); - return { id: Hoe, diagram: t }; -}, "loader"), tEt = { - id: Hoe, - detector: JCt, - loader: eEt -}, rEt = tEt, Xoe = "journey", nEt = /* @__PURE__ */ x((t) => /^\s*journey/.test(t), "detector"), iEt = /* @__PURE__ */ x(async () => { - const { diagram: t } = await Promise.resolve().then(() => aKt); - return { id: Xoe, diagram: t }; -}, "loader"), sEt = { - id: Xoe, - detector: nEt, - loader: iEt -}, aEt = sEt, oEt = /* @__PURE__ */ x((t, e, r) => { + detector: tEt, + loader: rEt +}, iEt = nEt, sEt = /* @__PURE__ */ x((t, e, r) => { X.debug(`rendering svg for syntax error `); const n = Z0(e), i = n.append("g"); @@ -46002,67 +46002,67 @@ var Doe = "c4", XTt = /* @__PURE__ */ x((t) => /^\s*C4Context|C4Container|C4Comp "d", "m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z" ), i.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"), i.append("text").attr("class", "error-text").attr("x", 1250).attr("y", 400).attr("font-size", "100px").style("text-anchor", "middle").text(`mermaid version ${r}`); -}, "draw"), Zoe = { draw: oEt }, lEt = Zoe, cEt = { +}, "draw"), Hoe = { draw: sEt }, aEt = Hoe, oEt = { db: {}, - renderer: Zoe, + renderer: Hoe, parser: { parse: /* @__PURE__ */ x(() => { }, "parse") } -}, uEt = cEt, joe = "flowchart-elk", hEt = /* @__PURE__ */ x((t, e = {}) => { +}, lEt = oEt, Xoe = "flowchart-elk", cEt = /* @__PURE__ */ x((t, e = {}) => { var r; return /^\s*flowchart-elk/.test(t) || /^\s*flowchart|graph/.test(t) && ((r = e == null ? void 0 : e.flowchart) == null ? void 0 : r.defaultRenderer) === "elk" ? (e.layout = "elk", !0) : !1; -}, "detector"), fEt = /* @__PURE__ */ x(async () => { - const { diagram: t } = await Promise.resolve().then(() => wI); +}, "detector"), uEt = /* @__PURE__ */ x(async () => { + const { diagram: t } = await Promise.resolve().then(() => yI); + return { id: Xoe, diagram: t }; +}, "loader"), hEt = { + id: Xoe, + detector: cEt, + loader: uEt +}, fEt = hEt, Zoe = "timeline", dEt = /* @__PURE__ */ x((t) => /^\s*timeline/.test(t), "detector"), pEt = /* @__PURE__ */ x(async () => { + const { diagram: t } = await Promise.resolve().then(() => CKt); + return { id: Zoe, diagram: t }; +}, "loader"), gEt = { + id: Zoe, + detector: dEt, + loader: pEt +}, mEt = gEt, joe = "mindmap", vEt = /* @__PURE__ */ x((t) => /^\s*mindmap/.test(t), "detector"), yEt = /* @__PURE__ */ x(async () => { + const { diagram: t } = await Promise.resolve().then(() => Bar); return { id: joe, diagram: t }; -}, "loader"), dEt = { +}, "loader"), bEt = { id: joe, - detector: hEt, - loader: fEt -}, pEt = dEt, Koe = "timeline", gEt = /* @__PURE__ */ x((t) => /^\s*timeline/.test(t), "detector"), mEt = /* @__PURE__ */ x(async () => { - const { diagram: t } = await Promise.resolve().then(() => _Kt); + detector: vEt, + loader: yEt +}, xEt = bEt, Koe = "sankey", wEt = /* @__PURE__ */ x((t) => /^\s*sankey-beta/.test(t), "detector"), OEt = /* @__PURE__ */ x(async () => { + const { diagram: t } = await Promise.resolve().then(() => wor); return { id: Koe, diagram: t }; -}, "loader"), vEt = { +}, "loader"), kEt = { id: Koe, - detector: gEt, - loader: mEt -}, yEt = vEt, Joe = "mindmap", bEt = /* @__PURE__ */ x((t) => /^\s*mindmap/.test(t), "detector"), xEt = /* @__PURE__ */ x(async () => { - const { diagram: t } = await Promise.resolve().then(() => zar); + detector: wEt, + loader: OEt +}, SEt = kEt, Joe = "packet", TEt = /* @__PURE__ */ x((t) => /^\s*packet-beta/.test(t), "detector"), CEt = /* @__PURE__ */ x(async () => { + const { diagram: t } = await Promise.resolve().then(() => $or); return { id: Joe, diagram: t }; -}, "loader"), wEt = { +}, "loader"), EEt = { id: Joe, - detector: bEt, - loader: xEt -}, OEt = wEt, ele = "sankey", kEt = /* @__PURE__ */ x((t) => /^\s*sankey-beta/.test(t), "detector"), SEt = /* @__PURE__ */ x(async () => { - const { diagram: t } = await Promise.resolve().then(() => kor); + detector: TEt, + loader: CEt +}, ele = "block", _Et = /* @__PURE__ */ x((t) => /^\s*block-beta/.test(t), "detector"), AEt = /* @__PURE__ */ x(async () => { + const { diagram: t } = await Promise.resolve().then(() => hlr); return { id: ele, diagram: t }; -}, "loader"), TEt = { +}, "loader"), LEt = { id: ele, - detector: kEt, - loader: SEt -}, CEt = TEt, tle = "packet", EEt = /* @__PURE__ */ x((t) => /^\s*packet-beta/.test(t), "detector"), _Et = /* @__PURE__ */ x(async () => { - const { diagram: t } = await Promise.resolve().then(() => For); + detector: _Et, + loader: AEt +}, REt = LEt, tle = "architecture", MEt = /* @__PURE__ */ x((t) => /^\s*architecture/.test(t), "detector"), DEt = /* @__PURE__ */ x(async () => { + const { diagram: t } = await Promise.resolve().then(() => Glr); return { id: tle, diagram: t }; -}, "loader"), AEt = { +}, "loader"), NEt = { id: tle, - detector: EEt, - loader: _Et -}, rle = "block", LEt = /* @__PURE__ */ x((t) => /^\s*block-beta/.test(t), "detector"), REt = /* @__PURE__ */ x(async () => { - const { diagram: t } = await Promise.resolve().then(() => dlr); - return { id: rle, diagram: t }; -}, "loader"), MEt = { - id: rle, - detector: LEt, - loader: REt -}, DEt = MEt, nle = "architecture", NEt = /* @__PURE__ */ x((t) => /^\s*architecture/.test(t), "detector"), IEt = /* @__PURE__ */ x(async () => { - const { diagram: t } = await Promise.resolve().then(() => Xlr); - return { id: nle, diagram: t }; -}, "loader"), PEt = { - id: nle, - detector: NEt, - loader: IEt -}, $Et = PEt, oY = !1, GT = /* @__PURE__ */ x(() => { - oY || (oY = !0, v3("error", uEt, (t) => t.toLowerCase().trim() === "error"), v3( + detector: MEt, + loader: DEt +}, IEt = NEt, iY = !1, QT = /* @__PURE__ */ x(() => { + iY || (iY = !0, m3("error", lEt, (t) => t.toLowerCase().trim() === "error"), m3( "---", { db: { @@ -46084,43 +46084,43 @@ var Doe = "c4", XTt = /* @__PURE__ */ x((t) => /^\s*C4Context|C4Container|C4Comp init: /* @__PURE__ */ x(() => null, "init") }, (t) => t.toLowerCase().trimStart().startsWith("---") - ), Sie( - KTt, - HCt, - YCt, - uCt, - yCt, - wCt, - SCt, - PCt, - zCt, - pEt, - aCt, - rCt, - OEt, - yEt, - pCt, - rEt, - KCt, - aEt, - _Ct, - CEt, - AEt, - MCt, - DEt, - $Et + ), Oie( + ZTt, + WCt, + UCt, + lCt, + mCt, + bCt, + OCt, + NCt, + BCt, + fEt, + iCt, + eCt, + xEt, + mEt, + fCt, + eEt, + ZCt, + iEt, + CCt, + SEt, + EEt, + LCt, + REt, + IEt )); -}, "addDiagrams"), BEt = /* @__PURE__ */ x(async () => { +}, "addDiagrams"), PEt = /* @__PURE__ */ x(async () => { X.debug("Loading registered diagrams"); const e = (await Promise.allSettled( Object.entries(Qg).map(async ([r, { detector: n, loader: i }]) => { if (i) try { - T8(r); + k8(r); } catch { try { const { diagram: s, id: a } = await i(); - v3(a, s, n); + m3(a, s, n); } catch (s) { throw X.error(`Failed to load external diagram with key ${r}. Removing from detectors.`), delete Qg[r], s; } @@ -46133,12 +46133,12 @@ var Doe = "c4", XTt = /* @__PURE__ */ x((t) => /^\s*C4Context|C4Container|C4Comp X.error(r); throw new Error(`Failed to load ${e.length} external diagrams`); } -}, "loadRegisteredDiagrams"), FEt = "graphics-document document"; -function ile(t, e) { - t.attr("role", FEt), e !== "" && t.attr("aria-roledescription", e); +}, "loadRegisteredDiagrams"), $Et = "graphics-document document"; +function rle(t, e) { + t.attr("role", $Et), e !== "" && t.attr("aria-roledescription", e); } -x(ile, "setA11yDiagramInfo"); -function sle(t, e, r, n) { +x(rle, "setA11yDiagramInfo"); +function nle(t, e, r, n) { if (t.insert !== void 0) { if (r) { const i = `chart-desc-${n}`; @@ -46150,26 +46150,26 @@ function sle(t, e, r, n) { } } } -x(sle, "addSVGa11yTitleDescription"); -var M1, iL = (M1 = class { +x(nle, "addSVGa11yTitleDescription"); +var M1, rL = (M1 = class { constructor(e, r, n, i, s) { this.type = e, this.text = r, this.db = n, this.parser = i, this.renderer = s; } static async fromText(e, r = {}) { var u, h; - const n = pi(), i = TD(e, n); - e = skt(e) + ` + const n = pi(), i = OD(e, n); + e = nkt(e) + ` `; try { - T8(i); + k8(i); } catch { - const f = evt(i); + const f = Kmt(i); if (!f) - throw new kie(`Diagram ${i} not found.`); + throw new wie(`Diagram ${i} not found.`); const { id: d, diagram: p } = await f(); - v3(d, p); + m3(d, p); } - const { db: s, parser: a, renderer: o, init: l } = T8(i); + const { db: s, parser: a, renderer: o, init: l } = k8(i); return a.parser && (a.parser.yy = s), (u = s.clear) == null || u.call(s), l == null || l(n), r.title && ((h = s.setDiagramTitle) == null || h.call(s, r.title)), await a.parse(e), new M1(i, e, s, a, o); } async render(e, r) { @@ -46183,80 +46183,80 @@ var M1, iL = (M1 = class { } }, (() => { x(M1, "Diagram"); -})(), M1), lY = [], zEt = /* @__PURE__ */ x(() => { - lY.forEach((t) => { +})(), M1), sY = [], BEt = /* @__PURE__ */ x(() => { + sY.forEach((t) => { t(); - }), lY = []; -}, "attachFunctions"), VEt = /* @__PURE__ */ x((t) => t.replace(/^\s*%%(?!{)[^\n]+\n?/gm, "").trimStart(), "cleanupComments"); -function mN(t) { + }), sY = []; +}, "attachFunctions"), FEt = /* @__PURE__ */ x((t) => t.replace(/^\s*%%(?!{)[^\n]+\n?/gm, "").trimStart(), "cleanupComments"); +function dN(t) { return typeof t > "u" || t === null; } -x(mN, "isNothing"); -function ale(t) { +x(dN, "isNothing"); +function ile(t) { return typeof t == "object" && t !== null; } -x(ale, "isObject"); -function ole(t) { - return Array.isArray(t) ? t : mN(t) ? [] : [t]; +x(ile, "isObject"); +function sle(t) { + return Array.isArray(t) ? t : dN(t) ? [] : [t]; } -x(ole, "toArray"); -function lle(t, e) { +x(sle, "toArray"); +function ale(t, e) { var r, n, i, s; if (e) for (s = Object.keys(e), r = 0, n = s.length; r < n; r += 1) i = s[r], t[i] = e[i]; return t; } -x(lle, "extend"); -function cle(t, e) { +x(ale, "extend"); +function ole(t, e) { var r = "", n; for (n = 0; n < e; n += 1) r += t; return r; } -x(cle, "repeat"); -function ule(t) { +x(ole, "repeat"); +function lle(t) { return t === 0 && Number.NEGATIVE_INFINITY === 1 / t; } -x(ule, "isNegativeZero"); -var UEt = mN, qEt = ale, YEt = ole, QEt = cle, WEt = ule, GEt = lle, Ei = { - isNothing: UEt, - isObject: qEt, - toArray: YEt, - repeat: QEt, - isNegativeZero: WEt, - extend: GEt +x(lle, "isNegativeZero"); +var zEt = dN, VEt = ile, UEt = sle, qEt = ole, YEt = lle, QEt = ale, Ei = { + isNothing: zEt, + isObject: VEt, + toArray: UEt, + repeat: qEt, + isNegativeZero: YEt, + extend: QEt }; -function vN(t, e) { +function pN(t, e) { var r = "", n = t.reason || "(unknown reason)"; return t.mark ? (t.mark.name && (r += 'in "' + t.mark.name + '" '), r += "(" + (t.mark.line + 1) + ":" + (t.mark.column + 1) + ")", !e && t.mark.snippet && (r += ` ` + t.mark.snippet), n + " " + r) : n; } -x(vN, "formatError"); +x(pN, "formatError"); function a1(t, e) { - Error.call(this), this.name = "YAMLException", this.reason = t, this.mark = e, this.message = vN(this, !1), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack || ""; + Error.call(this), this.name = "YAMLException", this.reason = t, this.mark = e, this.message = pN(this, !1), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack || ""; } x(a1, "YAMLException$1"); a1.prototype = Object.create(Error.prototype); a1.prototype.constructor = a1; a1.prototype.toString = /* @__PURE__ */ x(function(e) { - return this.name + ": " + vN(this, e); + return this.name + ": " + pN(this, e); }, "toString"); var Ea = a1; -function V4(t, e, r, n, i) { +function z4(t, e, r, n, i) { var s = "", a = "", o = Math.floor(i / 2) - 1; return n - e > o && (s = " ... ", e = n - o + s.length), r - n > o && (a = " ...", r = n + o - a.length), { str: s + t.slice(e, r).replace(/\t/g, "\u2192") + a, pos: n - e + s.length }; } -x(V4, "getLine"); -function U4(t, e) { +x(z4, "getLine"); +function V4(t, e) { return Ei.repeat(" ", e - t.length) + t; } -x(U4, "padStart"); -function hle(t, e) { +x(V4, "padStart"); +function cle(t, e) { if (e = Object.create(e || null), !t.buffer) return null; 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); @@ -46265,29 +46265,29 @@ function hle(t, e) { a < 0 && (a = n.length - 1); var o = "", l, u, h = Math.min(t.line + e.linesAfter, i.length).toString().length, f = e.maxLength - (e.indent + h + 3); for (l = 1; l <= e.linesBefore && !(a - l < 0); l++) - u = V4( + u = z4( t.buffer, n[a - l], i[a - l], t.position - (n[a] - n[a - l]), f - ), o = Ei.repeat(" ", e.indent) + U4((t.line - l + 1).toString(), h) + " | " + u.str + ` + ), o = Ei.repeat(" ", e.indent) + V4((t.line - l + 1).toString(), h) + " | " + u.str + ` ` + o; - for (u = V4(t.buffer, n[a], i[a], t.position, f), o += Ei.repeat(" ", e.indent) + U4((t.line + 1).toString(), h) + " | " + u.str + ` + for (u = z4(t.buffer, n[a], i[a], t.position, f), o += Ei.repeat(" ", e.indent) + V4((t.line + 1).toString(), h) + " | " + u.str + ` `, o += Ei.repeat("-", e.indent + h + 3 + u.pos) + `^ `, l = 1; l <= e.linesAfter && !(a + l >= i.length); l++) - u = V4( + u = z4( t.buffer, n[a + l], i[a + l], t.position - (n[a] - n[a + l]), f - ), o += Ei.repeat(" ", e.indent) + U4((t.line + l + 1).toString(), h) + " | " + u.str + ` + ), o += Ei.repeat(" ", e.indent) + V4((t.line + l + 1).toString(), h) + " | " + u.str + ` `; return o.replace(/\n$/, ""); } -x(hle, "makeSnippet"); -var HEt = hle, XEt = [ +x(cle, "makeSnippet"); +var WEt = cle, GEt = [ "kind", "multi", "resolve", @@ -46298,12 +46298,12 @@ var HEt = hle, XEt = [ "representName", "defaultStyle", "styleAliases" -], ZEt = [ +], HEt = [ "scalar", "sequence", "mapping" ]; -function fle(t) { +function ule(t) { var e = {}; return t !== null && Object.keys(t).forEach(function(r) { t[r].forEach(function(n) { @@ -46311,21 +46311,21 @@ function fle(t) { }); }), e; } -x(fle, "compileStyleAliases"); -function dle(t, e) { +x(ule, "compileStyleAliases"); +function hle(t, e) { if (e = e || {}, Object.keys(e).forEach(function(r) { - if (XEt.indexOf(r) === -1) + if (GEt.indexOf(r) === -1) throw new Ea('Unknown option "' + r + '" is met in definition of "' + t + '" YAML type.'); }), this.options = e, this.tag = t, this.kind = e.kind || null, this.resolve = e.resolve || function() { return !0; }, this.construct = e.construct || function(r) { return r; - }, 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 = fle(e.styleAliases || null), ZEt.indexOf(this.kind) === -1) + }, 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 = ule(e.styleAliases || null), HEt.indexOf(this.kind) === -1) throw new Ea('Unknown kind "' + this.kind + '" is specified for "' + t + '" YAML type.'); } -x(dle, "Type$1"); -var Bs = dle; -function sL(t, e) { +x(hle, "Type$1"); +var Bs = hle; +function nL(t, e) { var r = []; return t[e].forEach(function(n) { var i = r.length; @@ -46334,8 +46334,8 @@ function sL(t, e) { }), r[i] = n; }), r; } -x(sL, "compileList"); -function ple() { +x(nL, "compileList"); +function fle() { var t = { scalar: {}, sequence: {}, @@ -46355,12 +46355,12 @@ function ple() { arguments[e].forEach(n); return t; } -x(ple, "compileMap"); -function j3(t) { +x(fle, "compileMap"); +function Z3(t) { return this.extend(t); } -x(j3, "Schema$1"); -j3.prototype.extend = /* @__PURE__ */ x(function(e) { +x(Z3, "Schema$1"); +Z3.prototype.extend = /* @__PURE__ */ x(function(e) { var r = [], n = []; if (e instanceof Bs) n.push(e); @@ -46381,51 +46381,51 @@ j3.prototype.extend = /* @__PURE__ */ x(function(e) { if (!(s instanceof Bs)) throw new Ea("Specified list of YAML types (or a single Type object) contains a non-Type object."); }); - var i = Object.create(j3.prototype); - return i.implicit = (this.implicit || []).concat(r), i.explicit = (this.explicit || []).concat(n), i.compiledImplicit = sL(i, "implicit"), i.compiledExplicit = sL(i, "explicit"), i.compiledTypeMap = ple(i.compiledImplicit, i.compiledExplicit), i; + var i = Object.create(Z3.prototype); + return i.implicit = (this.implicit || []).concat(r), i.explicit = (this.explicit || []).concat(n), i.compiledImplicit = nL(i, "implicit"), i.compiledExplicit = nL(i, "explicit"), i.compiledTypeMap = fle(i.compiledImplicit, i.compiledExplicit), i; }, "extend"); -var jEt = j3, KEt = new Bs("tag:yaml.org,2002:str", { +var XEt = Z3, ZEt = new Bs("tag:yaml.org,2002:str", { kind: "scalar", construct: /* @__PURE__ */ x(function(t) { return t !== null ? t : ""; }, "construct") -}), JEt = new Bs("tag:yaml.org,2002:seq", { +}), jEt = new Bs("tag:yaml.org,2002:seq", { kind: "sequence", construct: /* @__PURE__ */ x(function(t) { return t !== null ? t : []; }, "construct") -}), e6t = new Bs("tag:yaml.org,2002:map", { +}), KEt = new Bs("tag:yaml.org,2002:map", { kind: "mapping", construct: /* @__PURE__ */ x(function(t) { return t !== null ? t : {}; }, "construct") -}), t6t = new jEt({ +}), JEt = new XEt({ explicit: [ - KEt, - JEt, - e6t + ZEt, + jEt, + KEt ] }); -function gle(t) { +function dle(t) { if (t === null) return !0; var e = t.length; return e === 1 && t === "~" || e === 4 && (t === "null" || t === "Null" || t === "NULL"); } -x(gle, "resolveYamlNull"); -function mle() { +x(dle, "resolveYamlNull"); +function ple() { return null; } -x(mle, "constructYamlNull"); -function vle(t) { +x(ple, "constructYamlNull"); +function gle(t) { return t === null; } -x(vle, "isNull"); -var r6t = new Bs("tag:yaml.org,2002:null", { +x(gle, "isNull"); +var e6t = new Bs("tag:yaml.org,2002:null", { kind: "scalar", - resolve: gle, - construct: mle, - predicate: vle, + resolve: dle, + construct: ple, + predicate: gle, represent: { canonical: /* @__PURE__ */ x(function() { return "~"; @@ -46445,26 +46445,26 @@ var r6t = new Bs("tag:yaml.org,2002:null", { }, defaultStyle: "lowercase" }); -function yle(t) { +function mle(t) { if (t === null) return !1; var e = t.length; return e === 4 && (t === "true" || t === "True" || t === "TRUE") || e === 5 && (t === "false" || t === "False" || t === "FALSE"); } -x(yle, "resolveYamlBoolean"); -function ble(t) { +x(mle, "resolveYamlBoolean"); +function vle(t) { return t === "true" || t === "True" || t === "TRUE"; } -x(ble, "constructYamlBoolean"); -function xle(t) { +x(vle, "constructYamlBoolean"); +function yle(t) { return Object.prototype.toString.call(t) === "[object Boolean]"; } -x(xle, "isBoolean"); -var n6t = new Bs("tag:yaml.org,2002:bool", { +x(yle, "isBoolean"); +var t6t = new Bs("tag:yaml.org,2002:bool", { kind: "scalar", - resolve: yle, - construct: ble, - predicate: xle, + resolve: mle, + construct: vle, + predicate: yle, represent: { lowercase: /* @__PURE__ */ x(function(t) { return t ? "true" : "false"; @@ -46478,19 +46478,19 @@ var n6t = new Bs("tag:yaml.org,2002:bool", { }, defaultStyle: "lowercase" }); -function wle(t) { +function ble(t) { return 48 <= t && t <= 57 || 65 <= t && t <= 70 || 97 <= t && t <= 102; } -x(wle, "isHexCode"); -function Ole(t) { +x(ble, "isHexCode"); +function xle(t) { return 48 <= t && t <= 55; } -x(Ole, "isOctCode"); -function kle(t) { +x(xle, "isOctCode"); +function wle(t) { return 48 <= t && t <= 57; } -x(kle, "isDecCode"); -function Sle(t) { +x(wle, "isDecCode"); +function Ole(t) { if (t === null) return !1; var e = t.length, r = 0, n = !1, i; @@ -46511,7 +46511,7 @@ function Sle(t) { if (i === "x") { for (r++; r < e; r++) if (i = t[r], i !== "_") { - if (!wle(t.charCodeAt(r))) + if (!ble(t.charCodeAt(r))) return !1; n = !0; } @@ -46520,7 +46520,7 @@ function Sle(t) { if (i === "o") { for (r++; r < e; r++) if (i = t[r], i !== "_") { - if (!Ole(t.charCodeAt(r))) + if (!xle(t.charCodeAt(r))) return !1; n = !0; } @@ -46531,14 +46531,14 @@ function Sle(t) { return !1; for (; r < e; r++) if (i = t[r], i !== "_") { - if (!kle(t.charCodeAt(r))) + if (!wle(t.charCodeAt(r))) return !1; n = !0; } return !(!n || i === "_"); } -x(Sle, "resolveYamlInteger"); -function Tle(t) { +x(Ole, "resolveYamlInteger"); +function kle(t) { var e = t, r = 1, n; if (e.indexOf("_") !== -1 && (e = e.replace(/_/g, "")), n = e[0], (n === "-" || n === "+") && (n === "-" && (r = -1), e = e.slice(1), n = e[0]), e === "0") return 0; @@ -46552,16 +46552,16 @@ function Tle(t) { } return r * parseInt(e, 10); } -x(Tle, "constructYamlInteger"); -function Cle(t) { +x(kle, "constructYamlInteger"); +function Sle(t) { return Object.prototype.toString.call(t) === "[object Number]" && t % 1 === 0 && !Ei.isNegativeZero(t); } -x(Cle, "isInteger"); -var i6t = new Bs("tag:yaml.org,2002:int", { +x(Sle, "isInteger"); +var r6t = new Bs("tag:yaml.org,2002:int", { kind: "scalar", - resolve: Sle, - construct: Tle, - predicate: Cle, + resolve: Ole, + construct: kle, + predicate: Sle, represent: { binary: /* @__PURE__ */ x(function(t) { return t >= 0 ? "0b" + t.toString(2) : "-0b" + t.toString(2).slice(1); @@ -46583,20 +46583,20 @@ var i6t = new Bs("tag:yaml.org,2002:int", { decimal: [10, "dec"], hexadecimal: [16, "hex"] } -}), s6t = new RegExp( +}), n6t = new RegExp( "^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$" ); -function Ele(t) { - return !(t === null || !s6t.test(t) || t[t.length - 1] === "_"); +function Tle(t) { + return !(t === null || !n6t.test(t) || t[t.length - 1] === "_"); } -x(Ele, "resolveYamlFloat"); -function _le(t) { +x(Tle, "resolveYamlFloat"); +function Cle(t) { var e, r; return e = t.replace(/_/g, "").toLowerCase(), r = e[0] === "-" ? -1 : 1, "+-".indexOf(e[0]) >= 0 && (e = e.slice(1)), e === ".inf" ? r === 1 ? Number.POSITIVE_INFINITY : Number.NEGATIVE_INFINITY : e === ".nan" ? NaN : r * parseFloat(e, 10); } -x(_le, "constructYamlFloat"); -var a6t = /^[-+]?[0-9]+e/; -function Ale(t, e) { +x(Cle, "constructYamlFloat"); +var i6t = /^[-+]?[0-9]+e/; +function Ele(t, e) { var r; if (isNaN(t)) switch (e) { @@ -46627,39 +46627,39 @@ function Ale(t, e) { } else if (Ei.isNegativeZero(t)) return "-0.0"; - return r = t.toString(10), a6t.test(r) ? r.replace("e", ".e") : r; + return r = t.toString(10), i6t.test(r) ? r.replace("e", ".e") : r; } -x(Ale, "representYamlFloat"); -function Lle(t) { +x(Ele, "representYamlFloat"); +function _le(t) { return Object.prototype.toString.call(t) === "[object Number]" && (t % 1 !== 0 || Ei.isNegativeZero(t)); } -x(Lle, "isFloat"); -var o6t = new Bs("tag:yaml.org,2002:float", { +x(_le, "isFloat"); +var s6t = new Bs("tag:yaml.org,2002:float", { kind: "scalar", - resolve: Ele, - construct: _le, - predicate: Lle, - represent: Ale, + resolve: Tle, + construct: Cle, + predicate: _le, + represent: Ele, defaultStyle: "lowercase" -}), Rle = t6t.extend({ +}), Ale = JEt.extend({ implicit: [ + e6t, + t6t, r6t, - n6t, - i6t, - o6t + s6t ] -}), l6t = Rle, Mle = new RegExp( +}), a6t = Ale, Lle = new RegExp( "^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$" -), Dle = new RegExp( +), Rle = new RegExp( "^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$" ); -function Nle(t) { - return t === null ? !1 : Mle.exec(t) !== null || Dle.exec(t) !== null; +function Mle(t) { + return t === null ? !1 : Lle.exec(t) !== null || Rle.exec(t) !== null; } -x(Nle, "resolveYamlTimestamp"); -function Ile(t) { +x(Mle, "resolveYamlTimestamp"); +function Dle(t) { var e, r, n, i, s, a, o, l = 0, u = null, h, f, d; - if (e = Mle.exec(t), e === null && (e = Dle.exec(t)), e === null) + if (e = Lle.exec(t), e === null && (e = Rle.exec(t)), e === null) throw new Error("Date resolve error"); if (r = +e[1], n = +e[2] - 1, i = +e[3], !e[4]) return new Date(Date.UTC(r, n, i)); @@ -46670,31 +46670,31 @@ function Ile(t) { } return e[9] && (h = +e[10], f = +(e[11] || 0), u = (h * 60 + f) * 6e4, e[9] === "-" && (u = -u)), d = new Date(Date.UTC(r, n, i, s, a, o, l)), u && d.setTime(d.getTime() - u), d; } -x(Ile, "constructYamlTimestamp"); -function Ple(t) { +x(Dle, "constructYamlTimestamp"); +function Nle(t) { return t.toISOString(); } -x(Ple, "representYamlTimestamp"); -var c6t = new Bs("tag:yaml.org,2002:timestamp", { +x(Nle, "representYamlTimestamp"); +var o6t = new Bs("tag:yaml.org,2002:timestamp", { kind: "scalar", - resolve: Nle, - construct: Ile, + resolve: Mle, + construct: Dle, instanceOf: Date, - represent: Ple + represent: Nle }); -function $le(t) { +function Ile(t) { return t === "<<" || t === null; } -x($le, "resolveYamlMerge"); -var u6t = new Bs("tag:yaml.org,2002:merge", { +x(Ile, "resolveYamlMerge"); +var l6t = new Bs("tag:yaml.org,2002:merge", { kind: "scalar", - resolve: $le -}), yN = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/= + resolve: Ile +}), gN = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/= \r`; -function Ble(t) { +function Ple(t) { if (t === null) return !1; - var e, r, n = 0, i = t.length, s = yN; + var e, r, n = 0, i = t.length, s = gN; for (r = 0; r < i; r++) if (e = s.indexOf(t.charAt(r)), !(e > 64)) { if (e < 0) @@ -46703,41 +46703,41 @@ function Ble(t) { } return n % 8 === 0; } -x(Ble, "resolveYamlBinary"); -function Fle(t) { - var e, r, n = t.replace(/[\r\n=]/g, ""), i = n.length, s = yN, a = 0, o = []; +x(Ple, "resolveYamlBinary"); +function $le(t) { + var e, r, n = t.replace(/[\r\n=]/g, ""), i = n.length, s = gN, a = 0, o = []; for (e = 0; e < i; e++) e % 4 === 0 && e && (o.push(a >> 16 & 255), o.push(a >> 8 & 255), o.push(a & 255)), a = a << 6 | s.indexOf(n.charAt(e)); return r = i % 4 * 6, r === 0 ? (o.push(a >> 16 & 255), o.push(a >> 8 & 255), o.push(a & 255)) : r === 18 ? (o.push(a >> 10 & 255), o.push(a >> 2 & 255)) : r === 12 && o.push(a >> 4 & 255), new Uint8Array(o); } -x(Fle, "constructYamlBinary"); -function zle(t) { - var e = "", r = 0, n, i, s = t.length, a = yN; +x($le, "constructYamlBinary"); +function Ble(t) { + var e = "", r = 0, n, i, s = t.length, a = gN; for (n = 0; n < s; n++) n % 3 === 0 && n && (e += a[r >> 18 & 63], e += a[r >> 12 & 63], e += a[r >> 6 & 63], e += a[r & 63]), r = (r << 8) + t[n]; return i = s % 3, i === 0 ? (e += a[r >> 18 & 63], e += a[r >> 12 & 63], e += a[r >> 6 & 63], e += a[r & 63]) : i === 2 ? (e += a[r >> 10 & 63], e += a[r >> 4 & 63], e += a[r << 2 & 63], e += a[64]) : i === 1 && (e += a[r >> 2 & 63], e += a[r << 4 & 63], e += a[64], e += a[64]), e; } -x(zle, "representYamlBinary"); -function Vle(t) { +x(Ble, "representYamlBinary"); +function Fle(t) { return Object.prototype.toString.call(t) === "[object Uint8Array]"; } -x(Vle, "isBinary"); -var h6t = new Bs("tag:yaml.org,2002:binary", { +x(Fle, "isBinary"); +var c6t = new Bs("tag:yaml.org,2002:binary", { kind: "scalar", - resolve: Ble, - construct: Fle, - predicate: Vle, - represent: zle -}), f6t = Object.prototype.hasOwnProperty, d6t = Object.prototype.toString; -function Ule(t) { + resolve: Ple, + construct: $le, + predicate: Fle, + represent: Ble +}), u6t = Object.prototype.hasOwnProperty, h6t = Object.prototype.toString; +function zle(t) { if (t === null) return !0; var e = [], r, n, i, s, a, o = t; for (r = 0, n = o.length; r < n; r += 1) { - if (i = o[r], a = !1, d6t.call(i) !== "[object Object]") + if (i = o[r], a = !1, h6t.call(i) !== "[object Object]") return !1; for (s in i) - if (f6t.call(i, s)) + if (u6t.call(i, s)) if (!a) a = !0; else @@ -46751,29 +46751,29 @@ function Ule(t) { } return !0; } -x(Ule, "resolveYamlOmap"); -function qle(t) { +x(zle, "resolveYamlOmap"); +function Vle(t) { return t !== null ? t : []; } -x(qle, "constructYamlOmap"); -var p6t = new Bs("tag:yaml.org,2002:omap", { +x(Vle, "constructYamlOmap"); +var f6t = new Bs("tag:yaml.org,2002:omap", { kind: "sequence", - resolve: Ule, - construct: qle -}), g6t = Object.prototype.toString; -function Yle(t) { + resolve: zle, + construct: Vle +}), d6t = Object.prototype.toString; +function Ule(t) { if (t === null) return !0; var e, r, n, i, s, a = t; for (s = new Array(a.length), e = 0, r = a.length; e < r; e += 1) { - if (n = a[e], g6t.call(n) !== "[object Object]" || (i = Object.keys(n), i.length !== 1)) + if (n = a[e], d6t.call(n) !== "[object Object]" || (i = Object.keys(n), i.length !== 1)) return !1; s[e] = [i[0], n[i[0]]]; } return !0; } -x(Yle, "resolveYamlPairs"); -function Qle(t) { +x(Ule, "resolveYamlPairs"); +function qle(t) { if (t === null) return []; var e, r, n, i, s, a = t; @@ -46781,46 +46781,46 @@ function Qle(t) { n = a[e], i = Object.keys(n), s[e] = [i[0], n[i[0]]]; return s; } -x(Qle, "constructYamlPairs"); -var m6t = new Bs("tag:yaml.org,2002:pairs", { +x(qle, "constructYamlPairs"); +var p6t = new Bs("tag:yaml.org,2002:pairs", { kind: "sequence", - resolve: Yle, - construct: Qle -}), v6t = Object.prototype.hasOwnProperty; -function Wle(t) { + resolve: Ule, + construct: qle +}), g6t = Object.prototype.hasOwnProperty; +function Yle(t) { if (t === null) return !0; var e, r = t; for (e in r) - if (v6t.call(r, e) && r[e] !== null) + if (g6t.call(r, e) && r[e] !== null) return !1; return !0; } -x(Wle, "resolveYamlSet"); -function Gle(t) { +x(Yle, "resolveYamlSet"); +function Qle(t) { return t !== null ? t : {}; } -x(Gle, "constructYamlSet"); -var y6t = new Bs("tag:yaml.org,2002:set", { +x(Qle, "constructYamlSet"); +var m6t = new Bs("tag:yaml.org,2002:set", { kind: "mapping", - resolve: Wle, - construct: Gle -}), Hle = l6t.extend({ + resolve: Yle, + construct: Qle +}), Wle = a6t.extend({ implicit: [ - c6t, - u6t + o6t, + l6t ], explicit: [ - h6t, + c6t, + f6t, p6t, - m6t, - y6t + m6t ] -}), Of = Object.prototype.hasOwnProperty, K3 = 1, Xle = 2, Zle = 3, J3 = 4, c_ = 1, b6t = 2, cY = 3, x6t = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, w6t = /[\x85\u2028\u2029]/, O6t = /[,\[\]\{\}]/, jle = /^(?:!|!!|![a-z\-]+!)$/i, Kle = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i; -function aL(t) { +}), Of = Object.prototype.hasOwnProperty, j3 = 1, Gle = 2, Hle = 3, K3 = 4, o_ = 1, v6t = 2, aY = 3, y6t = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, b6t = /[\x85\u2028\u2029]/, x6t = /[,\[\]\{\}]/, Xle = /^(?:!|!!|![a-z\-]+!)$/i, Zle = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i; +function iL(t) { return Object.prototype.toString.call(t); } -x(aL, "_class"); +x(iL, "_class"); function Sl(t) { return t === 10 || t === 13; } @@ -46837,40 +46837,40 @@ function Nd(t) { return t === 44 || t === 91 || t === 93 || t === 123 || t === 125; } x(Nd, "is_FLOW_INDICATOR"); -function Jle(t) { +function jle(t) { var e; return 48 <= t && t <= 57 ? t - 48 : (e = t | 32, 97 <= e && e <= 102 ? e - 97 + 10 : -1); } -x(Jle, "fromHexCode"); -function ece(t) { +x(jle, "fromHexCode"); +function Kle(t) { return t === 120 ? 2 : t === 117 ? 4 : t === 85 ? 8 : 0; } -x(ece, "escapedHexLen"); -function tce(t) { +x(Kle, "escapedHexLen"); +function Jle(t) { return 48 <= t && t <= 57 ? t - 48 : -1; } -x(tce, "fromDecimalCode"); -function oL(t) { +x(Jle, "fromDecimalCode"); +function sL(t) { return t === 48 ? "\0" : t === 97 ? "\x07" : t === 98 ? "\b" : t === 116 || t === 9 ? " " : t === 110 ? ` ` : t === 118 ? "\v" : t === 102 ? "\f" : t === 114 ? "\r" : t === 101 ? "\x1B" : t === 32 ? " " : t === 34 ? '"' : t === 47 ? "/" : t === 92 ? "\\" : t === 78 ? "\x85" : t === 95 ? "\xA0" : t === 76 ? "\u2028" : t === 80 ? "\u2029" : ""; } -x(oL, "simpleEscapeSequence"); -function rce(t) { +x(sL, "simpleEscapeSequence"); +function ece(t) { return t <= 65535 ? String.fromCharCode(t) : String.fromCharCode( (t - 65536 >> 10) + 55296, (t - 65536 & 1023) + 56320 ); } -x(rce, "charFromCodepoint"); -var nce = new Array(256), ice = new Array(256); +x(ece, "charFromCodepoint"); +var tce = new Array(256), rce = new Array(256); for (rd = 0; rd < 256; rd++) - nce[rd] = oL(rd) ? 1 : 0, ice[rd] = oL(rd); + tce[rd] = sL(rd) ? 1 : 0, rce[rd] = sL(rd); var rd; -function sce(t, e) { - this.input = t, this.filename = e.filename || null, this.schema = e.schema || Hle, 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 = []; +function nce(t, e) { + this.input = t, this.filename = e.filename || null, this.schema = e.schema || Wle, 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 = []; } -x(sce, "State$1"); -function bN(t, e) { +x(nce, "State$1"); +function mN(t, e) { var r = { name: t.filename, buffer: t.input.slice(0, -1), @@ -46878,25 +46878,25 @@ function bN(t, e) { line: t.line, column: t.position - t.lineStart }; - return r.snippet = HEt(r), new Ea(e, r); + return r.snippet = WEt(r), new Ea(e, r); } -x(bN, "generateError"); +x(mN, "generateError"); function Vt(t, e) { - throw bN(t, e); + throw mN(t, e); } x(Vt, "throwError"); function w2(t, e) { - t.onWarning && t.onWarning.call(null, bN(t, e)); + t.onWarning && t.onWarning.call(null, mN(t, e)); } x(w2, "throwWarning"); -var uY = { +var oY = { YAML: /* @__PURE__ */ x(function(e, r, n) { var i, s, a; e.version !== null && Vt(e, "duplication of %YAML directive"), n.length !== 1 && Vt(e, "YAML directive accepts exactly one argument"), i = /^([0-9]+)\.([0-9]+)$/.exec(n[0]), i === null && Vt(e, "ill-formed argument of the YAML directive"), s = parseInt(i[1], 10), a = parseInt(i[2], 10), s !== 1 && Vt(e, "unacceptable YAML version of the document"), e.version = n[0], e.checkLineBreaks = a < 2, a !== 1 && a !== 2 && w2(e, "unsupported YAML version of the document"); }, "handleYamlDirective"), TAG: /* @__PURE__ */ x(function(e, r, n) { var i, s; - n.length !== 2 && Vt(e, "TAG directive accepts exactly two arguments"), i = n[0], s = n[1], jle.test(i) || Vt(e, "ill-formed tag handle (first argument) of the TAG directive"), Of.call(e.tagMap, i) && Vt(e, 'there is a previously declared suffix for "' + i + '" tag handle'), Kle.test(s) || Vt(e, "ill-formed tag prefix (second argument) of the TAG directive"); + n.length !== 2 && Vt(e, "TAG directive accepts exactly two arguments"), i = n[0], s = n[1], Xle.test(i) || Vt(e, "ill-formed tag handle (first argument) of the TAG directive"), Of.call(e.tagMap, i) && Vt(e, 'there is a previously declared suffix for "' + i + '" tag handle'), Zle.test(s) || Vt(e, "ill-formed tag prefix (second argument) of the TAG directive"); try { s = decodeURIComponent(s); } catch { @@ -46912,28 +46912,28 @@ function Ru(t, e, r, n) { for (i = 0, s = o.length; i < s; i += 1) a = o.charCodeAt(i), a === 9 || 32 <= a && a <= 1114111 || Vt(t, "expected valid JSON character"); else - x6t.test(o) && Vt(t, "the stream contains non-printable characters"); + y6t.test(o) && Vt(t, "the stream contains non-printable characters"); t.result += o; } } x(Ru, "captureSegment"); -function lL(t, e, r, n) { +function aL(t, e, r, n) { var i, s, a, o; for (Ei.isObject(r) || Vt(t, "cannot merge mappings; the provided source object is unacceptable"), i = Object.keys(r), a = 0, o = i.length; a < o; a += 1) s = i[a], Of.call(e, s) || (e[s] = r[s], n[s] = !0); } -x(lL, "mergeMappings"); +x(aL, "mergeMappings"); function Id(t, e, r, n, i, s, a, o, l) { var u, h; if (Array.isArray(i)) for (i = Array.prototype.slice.call(i), u = 0, h = i.length; u < h; u += 1) - Array.isArray(i[u]) && Vt(t, "nested arrays are not supported inside keys"), typeof i == "object" && aL(i[u]) === "[object Object]" && (i[u] = "[object Object]"); - if (typeof i == "object" && aL(i) === "[object Object]" && (i = "[object Object]"), i = String(i), e === null && (e = {}), n === "tag:yaml.org,2002:merge") + Array.isArray(i[u]) && Vt(t, "nested arrays are not supported inside keys"), typeof i == "object" && iL(i[u]) === "[object Object]" && (i[u] = "[object Object]"); + if (typeof i == "object" && iL(i) === "[object Object]" && (i = "[object Object]"), i = String(i), e === null && (e = {}), n === "tag:yaml.org,2002:merge") if (Array.isArray(s)) for (u = 0, h = s.length; u < h; u += 1) - lL(t, e, s[u], r); + aL(t, e, s[u], r); else - lL(t, e, s, r); + aL(t, e, s, r); else !t.json && !Of.call(r, i) && Of.call(e, i) && (t.line = a || t.line, t.lineStart = o || t.lineStart, t.position = l || t.position, Vt(t, "duplicated mapping key")), i === "__proto__" ? Object.defineProperty(e, i, { configurable: !0, @@ -46944,11 +46944,11 @@ function Id(t, e, r, n, i, s, a, o, l) { return e; } x(Id, "storeMappingPair"); -function HT(t) { +function WT(t) { var e; e = t.input.charCodeAt(t.position), e === 10 ? t.position++ : e === 13 ? (t.position++, t.input.charCodeAt(t.position) === 10 && t.position++) : Vt(t, "a line break is expected"), t.line += 1, t.lineStart = t.position, t.firstTabInLine = -1; } -x(HT, "readLineBreak"); +x(WT, "readLineBreak"); function ei(t, e, r) { for (var n = 0, i = t.input.charCodeAt(t.position); i !== 0; ) { for (; Kh(i); ) @@ -46958,7 +46958,7 @@ function ei(t, e, r) { i = t.input.charCodeAt(++t.position); while (i !== 10 && i !== 13 && i !== 0); if (Sl(i)) - for (HT(t), i = t.input.charCodeAt(t.position), n++, t.lineIndent = 0; i === 32; ) + for (WT(t), i = t.input.charCodeAt(t.position), n++, t.lineIndent = 0; i === 32; ) t.lineIndent++, i = t.input.charCodeAt(++t.position); else break; @@ -46971,12 +46971,12 @@ function kx(t) { return r = t.input.charCodeAt(e), !!((r === 45 || r === 46) && r === t.input.charCodeAt(e + 1) && r === t.input.charCodeAt(e + 2) && (e += 3, r = t.input.charCodeAt(e), r === 0 || ra(r))); } x(kx, "testDocumentSeparator"); -function XT(t, e) { +function GT(t, e) { e === 1 ? t.result += " " : e > 1 && (t.result += Ei.repeat(` `, e - 1)); } -x(XT, "writeFoldedLines"); -function ace(t, e, r) { +x(GT, "writeFoldedLines"); +function ice(t, e, r) { var n, i, s, a, o, l, u, h, f = t.kind, d = t.result, p; if (p = t.input.charCodeAt(t.position), ra(p) || Nd(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) && (i = t.input.charCodeAt(t.position + 1), ra(i) || r && Nd(i))) return !1; @@ -46999,12 +46999,12 @@ function ace(t, e, r) { break; } } - o && (Ru(t, s, a, !1), XT(t, t.line - l), s = a = t.position, o = !1), Kh(p) || (a = t.position + 1), p = t.input.charCodeAt(++t.position); + o && (Ru(t, s, a, !1), GT(t, t.line - l), s = a = t.position, o = !1), Kh(p) || (a = t.position + 1), p = t.input.charCodeAt(++t.position); } return Ru(t, s, a, !1), t.result ? !0 : (t.kind = f, t.result = d, !1); } -x(ace, "readPlainScalar"); -function oce(t, e) { +x(ice, "readPlainScalar"); +function sce(t, e) { var r, n, i; if (r = t.input.charCodeAt(t.position), r !== 39) return !1; @@ -47015,11 +47015,11 @@ function oce(t, e) { else return !0; else - Sl(r) ? (Ru(t, n, i, !0), XT(t, ei(t, !1, e)), n = i = t.position) : t.position === t.lineStart && kx(t) ? Vt(t, "unexpected end of the document within a single quoted scalar") : (t.position++, i = t.position); + Sl(r) ? (Ru(t, n, i, !0), GT(t, ei(t, !1, e)), n = i = t.position) : t.position === t.lineStart && kx(t) ? Vt(t, "unexpected end of the document within a single quoted scalar") : (t.position++, i = t.position); Vt(t, "unexpected end of the stream within a single quoted scalar"); } -x(oce, "readSingleQuotedScalar"); -function lce(t, e) { +x(sce, "readSingleQuotedScalar"); +function ace(t, e) { var r, n, i, s, a, o; if (o = t.input.charCodeAt(t.position), o !== 34) return !1; @@ -47029,22 +47029,22 @@ function lce(t, e) { if (o === 92) { if (Ru(t, r, t.position, !0), o = t.input.charCodeAt(++t.position), Sl(o)) ei(t, !1, e); - else if (o < 256 && nce[o]) - t.result += ice[o], t.position++; - else if ((a = ece(o)) > 0) { + else if (o < 256 && tce[o]) + t.result += rce[o], t.position++; + else if ((a = Kle(o)) > 0) { for (i = a, s = 0; i > 0; i--) - o = t.input.charCodeAt(++t.position), (a = Jle(o)) >= 0 ? s = (s << 4) + a : Vt(t, "expected hexadecimal character"); - t.result += rce(s), t.position++; + o = t.input.charCodeAt(++t.position), (a = jle(o)) >= 0 ? s = (s << 4) + a : Vt(t, "expected hexadecimal character"); + t.result += ece(s), t.position++; } else Vt(t, "unknown escape sequence"); r = n = t.position; } else - Sl(o) ? (Ru(t, r, n, !0), XT(t, ei(t, !1, e)), r = n = t.position) : t.position === t.lineStart && kx(t) ? Vt(t, "unexpected end of the document within a double quoted scalar") : (t.position++, n = t.position); + Sl(o) ? (Ru(t, r, n, !0), GT(t, ei(t, !1, e)), r = n = t.position) : t.position === t.lineStart && kx(t) ? Vt(t, "unexpected end of the document within a double quoted scalar") : (t.position++, n = t.position); } Vt(t, "unexpected end of the stream within a double quoted scalar"); } -x(lce, "readDoubleQuotedScalar"); -function cce(t, e) { +x(ace, "readDoubleQuotedScalar"); +function oce(t, e) { var r = !0, n, i, s, a = t.tag, o, l = t.anchor, u, h, f, d, p, g = /* @__PURE__ */ Object.create(null), m, v, y, b; if (b = t.input.charCodeAt(t.position), b === 91) h = 93, p = !1, o = []; @@ -47055,13 +47055,13 @@ function cce(t, e) { for (t.anchor !== null && (t.anchorMap[t.anchor] = o), b = t.input.charCodeAt(++t.position); b !== 0; ) { if (ei(t, !0, e), b = t.input.charCodeAt(t.position), b === h) return t.position++, t.tag = a, t.anchor = l, t.kind = p ? "mapping" : "sequence", t.result = o, !0; - r ? b === 44 && Vt(t, "expected the node content, but found ','") : Vt(t, "missed comma between flow collection entries"), v = m = y = null, f = d = !1, b === 63 && (u = t.input.charCodeAt(t.position + 1), ra(u) && (f = d = !0, t.position++, ei(t, !0, e))), n = t.line, i = t.lineStart, s = t.position, d0(t, e, K3, !1, !0), v = t.tag, m = t.result, ei(t, !0, e), b = t.input.charCodeAt(t.position), (d || t.line === n) && b === 58 && (f = !0, b = t.input.charCodeAt(++t.position), ei(t, !0, e), d0(t, e, K3, !1, !0), y = t.result), p ? Id(t, o, g, v, m, y, n, i, s) : f ? o.push(Id(t, null, g, v, m, y, n, i, s)) : o.push(m), ei(t, !0, e), b = t.input.charCodeAt(t.position), b === 44 ? (r = !0, b = t.input.charCodeAt(++t.position)) : r = !1; + r ? b === 44 && Vt(t, "expected the node content, but found ','") : Vt(t, "missed comma between flow collection entries"), v = m = y = null, f = d = !1, b === 63 && (u = t.input.charCodeAt(t.position + 1), ra(u) && (f = d = !0, t.position++, ei(t, !0, e))), n = t.line, i = t.lineStart, s = t.position, d0(t, e, j3, !1, !0), v = t.tag, m = t.result, ei(t, !0, e), b = t.input.charCodeAt(t.position), (d || t.line === n) && b === 58 && (f = !0, b = t.input.charCodeAt(++t.position), ei(t, !0, e), d0(t, e, j3, !1, !0), y = t.result), p ? Id(t, o, g, v, m, y, n, i, s) : f ? o.push(Id(t, null, g, v, m, y, n, i, s)) : o.push(m), ei(t, !0, e), b = t.input.charCodeAt(t.position), b === 44 ? (r = !0, b = t.input.charCodeAt(++t.position)) : r = !1; } Vt(t, "unexpected end of the stream within a flow collection"); } -x(cce, "readFlowCollection"); -function uce(t, e) { - var r, n, i = c_, s = !1, a = !1, o = e, l = 0, u = !1, h, f; +x(oce, "readFlowCollection"); +function lce(t, e) { + var r, n, i = o_, s = !1, a = !1, o = e, l = 0, u = !1, h, f; if (f = t.input.charCodeAt(t.position), f === 124) n = !1; else if (f === 62) @@ -47070,8 +47070,8 @@ function uce(t, e) { return !1; for (t.kind = "scalar", t.result = ""; f !== 0; ) if (f = t.input.charCodeAt(++t.position), f === 43 || f === 45) - c_ === i ? i = f === 43 ? cY : b6t : Vt(t, "repeat of a chomping mode identifier"); - else if ((h = tce(f)) >= 0) + o_ === i ? i = f === 43 ? aY : v6t : Vt(t, "repeat of a chomping mode identifier"); + else if ((h = Jle(f)) >= 0) h === 0 ? Vt(t, "bad explicit indentation width of a block scalar; it cannot be less than one") : a ? Vt(t, "repeat of an indentation width identifier") : (o = e + h - 1, a = !0); else break; @@ -47085,15 +47085,15 @@ function uce(t, e) { while (!Sl(f) && f !== 0); } for (; f !== 0; ) { - for (HT(t), t.lineIndent = 0, f = t.input.charCodeAt(t.position); (!a || t.lineIndent < o) && f === 32; ) + for (WT(t), t.lineIndent = 0, f = t.input.charCodeAt(t.position); (!a || t.lineIndent < o) && f === 32; ) t.lineIndent++, f = t.input.charCodeAt(++t.position); if (!a && t.lineIndent > o && (o = t.lineIndent), Sl(f)) { l++; continue; } if (t.lineIndent < o) { - i === cY ? t.result += Ei.repeat(` -`, s ? 1 + l : l) : i === c_ && s && (t.result += ` + i === aY ? t.result += Ei.repeat(` +`, s ? 1 + l : l) : i === o_ && s && (t.result += ` `); break; } @@ -47107,8 +47107,8 @@ function uce(t, e) { } return !0; } -x(uce, "readBlockScalar"); -function cL(t, e) { +x(lce, "readBlockScalar"); +function oL(t, e) { var r, n = t.tag, i = t.anchor, s = [], a, o = !1, l; if (t.firstTabInLine !== -1) return !1; @@ -47117,15 +47117,15 @@ function cL(t, e) { s.push(null), l = t.input.charCodeAt(t.position); continue; } - if (r = t.line, d0(t, e, Zle, !1, !0), s.push(t.result), ei(t, !0, -1), l = t.input.charCodeAt(t.position), (t.line === r || t.lineIndent > e) && l !== 0) + if (r = t.line, d0(t, e, Hle, !1, !0), s.push(t.result), ei(t, !0, -1), l = t.input.charCodeAt(t.position), (t.line === r || t.lineIndent > e) && l !== 0) Vt(t, "bad indentation of a sequence entry"); else if (t.lineIndent < e) break; } return o ? (t.tag = n, t.anchor = i, t.kind = "sequence", t.result = s, !0) : !1; } -x(cL, "readBlockSequence"); -function hce(t, e, r) { +x(oL, "readBlockSequence"); +function cce(t, e, r) { var n, i, s, a, o, l, u = t.tag, h = t.anchor, f = {}, d = /* @__PURE__ */ Object.create(null), p = null, g = null, m = null, v = !1, y = !1, b; if (t.firstTabInLine !== -1) return !1; @@ -47133,7 +47133,7 @@ function hce(t, e, r) { if (!v && t.firstTabInLine !== -1 && (t.position = t.firstTabInLine, Vt(t, "tab characters must not be used in indentation")), n = t.input.charCodeAt(t.position + 1), s = t.line, (b === 63 || b === 58) && ra(n)) b === 63 ? (v && (Id(t, f, d, p, g, null, a, o, l), p = g = m = null), y = !0, v = !0, i = !0) : v ? (v = !1, i = !0) : Vt(t, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), t.position += 1, b = n; else { - if (a = t.line, o = t.lineStart, l = t.position, !d0(t, r, Xle, !1, !0)) + if (a = t.line, o = t.lineStart, l = t.position, !d0(t, r, Gle, !1, !0)) break; if (t.line === s) { for (b = t.input.charCodeAt(t.position); Kh(b); ) @@ -47149,15 +47149,15 @@ function hce(t, e, r) { else return t.tag = u, t.anchor = h, !0; } - if ((t.line === s || t.lineIndent > e) && (v && (a = t.line, o = t.lineStart, l = t.position), d0(t, e, J3, !0, i) && (v ? g = t.result : m = t.result), v || (Id(t, f, d, p, g, m, a, o, l), p = g = m = null), ei(t, !0, -1), b = t.input.charCodeAt(t.position)), (t.line === s || t.lineIndent > e) && b !== 0) + if ((t.line === s || t.lineIndent > e) && (v && (a = t.line, o = t.lineStart, l = t.position), d0(t, e, K3, !0, i) && (v ? g = t.result : m = t.result), v || (Id(t, f, d, p, g, m, a, o, l), p = g = m = null), ei(t, !0, -1), b = t.input.charCodeAt(t.position)), (t.line === s || t.lineIndent > e) && b !== 0) Vt(t, "bad indentation of a mapping entry"); else if (t.lineIndent < e) break; } return v && Id(t, f, d, p, g, null, a, o, l), y && (t.tag = u, t.anchor = h, t.kind = "mapping", t.result = f), y; } -x(hce, "readBlockMapping"); -function fce(t) { +x(cce, "readBlockMapping"); +function uce(t) { var e, r = !1, n = !1, i, s, a; if (a = t.input.charCodeAt(t.position), a !== 33) return !1; @@ -47168,10 +47168,10 @@ function fce(t) { t.position < t.length ? (s = t.input.slice(e, t.position), a = t.input.charCodeAt(++t.position)) : Vt(t, "unexpected end of the stream within a verbatim tag"); } else { for (; a !== 0 && !ra(a); ) - a === 33 && (n ? Vt(t, "tag suffix cannot contain exclamation marks") : (i = t.input.slice(e - 1, t.position + 1), jle.test(i) || Vt(t, "named tag handle cannot contain such characters"), n = !0, e = t.position + 1)), a = t.input.charCodeAt(++t.position); - s = t.input.slice(e, t.position), O6t.test(s) && Vt(t, "tag suffix cannot contain flow indicator characters"); + a === 33 && (n ? Vt(t, "tag suffix cannot contain exclamation marks") : (i = t.input.slice(e - 1, t.position + 1), Xle.test(i) || Vt(t, "named tag handle cannot contain such characters"), n = !0, e = t.position + 1)), a = t.input.charCodeAt(++t.position); + s = t.input.slice(e, t.position), x6t.test(s) && Vt(t, "tag suffix cannot contain flow indicator characters"); } - s && !Kle.test(s) && Vt(t, "tag name cannot contain such characters: " + s); + s && !Zle.test(s) && Vt(t, "tag name cannot contain such characters: " + s); try { s = decodeURIComponent(s); } catch { @@ -47179,8 +47179,8 @@ function fce(t) { } return r ? t.tag = s : Of.call(t.tagMap, i) ? t.tag = t.tagMap[i] + s : i === "!" ? t.tag = "!" + s : i === "!!" ? t.tag = "tag:yaml.org,2002:" + s : Vt(t, 'undeclared tag handle "' + i + '"'), !0; } -x(fce, "readTagProperty"); -function dce(t) { +x(uce, "readTagProperty"); +function hce(t) { var e, r; if (r = t.input.charCodeAt(t.position), r !== 38) return !1; @@ -47188,8 +47188,8 @@ function dce(t) { r = t.input.charCodeAt(++t.position); return t.position === e && Vt(t, "name of an anchor node must contain at least one character"), t.anchor = t.input.slice(e, t.position), !0; } -x(dce, "readAnchorProperty"); -function pce(t) { +x(hce, "readAnchorProperty"); +function fce(t) { var e, r, n; if (n = t.input.charCodeAt(t.position), n !== 42) return !1; @@ -47197,13 +47197,13 @@ function pce(t) { n = t.input.charCodeAt(++t.position); return t.position === e && Vt(t, "name of an alias node must contain at least one character"), r = t.input.slice(e, t.position), Of.call(t.anchorMap, r) || Vt(t, 'unidentified alias "' + r + '"'), t.result = t.anchorMap[r], ei(t, !0, -1), !0; } -x(pce, "readAlias"); +x(fce, "readAlias"); function d0(t, e, r, n, i) { var s, a, o, l = 1, u = !1, h = !1, f, d, p, g, m, v; - if (t.listener !== null && t.listener("open", t), t.tag = null, t.anchor = null, t.kind = null, t.result = null, s = a = o = J3 === r || Zle === r, n && ei(t, !0, -1) && (u = !0, t.lineIndent > e ? l = 1 : t.lineIndent === e ? l = 0 : t.lineIndent < e && (l = -1)), l === 1) - for (; fce(t) || dce(t); ) + if (t.listener !== null && t.listener("open", t), t.tag = null, t.anchor = null, t.kind = null, t.result = null, s = a = o = K3 === r || Hle === r, n && ei(t, !0, -1) && (u = !0, t.lineIndent > e ? l = 1 : t.lineIndent === e ? l = 0 : t.lineIndent < e && (l = -1)), l === 1) + for (; uce(t) || hce(t); ) ei(t, !0, -1) ? (u = !0, o = s, t.lineIndent > e ? l = 1 : t.lineIndent === e ? l = 0 : t.lineIndent < e && (l = -1)) : o = !1; - if (o && (o = u || i), (l === 1 || J3 === r) && (K3 === r || Xle === r ? m = e : m = e + 1, v = t.position - t.lineStart, l === 1 ? o && (cL(t, v) || hce(t, v, m)) || cce(t, m) ? h = !0 : (a && uce(t, m) || oce(t, m) || lce(t, m) ? h = !0 : pce(t) ? (h = !0, (t.tag !== null || t.anchor !== null) && Vt(t, "alias node should not have any properties")) : ace(t, m, K3 === r) && (h = !0, t.tag === null && (t.tag = "?")), t.anchor !== null && (t.anchorMap[t.anchor] = t.result)) : l === 0 && (h = o && cL(t, v))), t.tag === null) + if (o && (o = u || i), (l === 1 || K3 === r) && (j3 === r || Gle === r ? m = e : m = e + 1, v = t.position - t.lineStart, l === 1 ? o && (oL(t, v) || cce(t, v, m)) || oce(t, m) ? h = !0 : (a && lce(t, m) || sce(t, m) || ace(t, m) ? h = !0 : fce(t) ? (h = !0, (t.tag !== null || t.anchor !== null) && Vt(t, "alias node should not have any properties")) : ice(t, m, j3 === r) && (h = !0, t.tag === null && (t.tag = "?")), t.anchor !== null && (t.anchorMap[t.anchor] = t.result)) : l === 0 && (h = o && oL(t, v))), t.tag === null) t.anchor !== null && (t.anchorMap[t.anchor] = t.result); else if (t.tag === "?") { for (t.result !== null && t.kind !== "scalar" && Vt(t, 'unacceptable node kind for ! tag; it should be "scalar", not "' + t.kind + '"'), f = 0, d = t.implicitTypes.length; f < d; f += 1) @@ -47225,7 +47225,7 @@ function d0(t, e, r, n, i) { return t.listener !== null && t.listener("close", t), t.tag !== null || t.anchor !== null || h; } x(d0, "composeNode"); -function gce(t) { +function dce(t) { var e = t.position, r, n, i, s = !1, a; for (t.version = null, t.checkLineBreaks = t.legacy, t.tagMap = /* @__PURE__ */ Object.create(null), t.anchorMap = /* @__PURE__ */ Object.create(null); (a = t.input.charCodeAt(t.position)) !== 0 && (ei(t, !0, -1), a = t.input.charCodeAt(t.position), !(t.lineIndent > 0 || a !== 37)); ) { for (s = !0, a = t.input.charCodeAt(++t.position), r = t.position; a !== 0 && !ra(a); ) @@ -47245,9 +47245,9 @@ function gce(t) { a = t.input.charCodeAt(++t.position); i.push(t.input.slice(r, t.position)); } - a !== 0 && HT(t), Of.call(uY, n) ? uY[n](t, n, i) : w2(t, 'unknown document directive "' + n + '"'); + a !== 0 && WT(t), Of.call(oY, n) ? oY[n](t, n, i) : w2(t, 'unknown document directive "' + n + '"'); } - if (ei(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, ei(t, !0, -1)) : s && Vt(t, "directives end mark is expected"), d0(t, t.lineIndent - 1, J3, !1, !0), ei(t, !0, -1), t.checkLineBreaks && w6t.test(t.input.slice(e, t.position)) && w2(t, "non-ASCII line breaks are interpreted as content"), t.documents.push(t.result), t.position === t.lineStart && kx(t)) { + if (ei(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, ei(t, !0, -1)) : s && Vt(t, "directives end mark is expected"), d0(t, t.lineIndent - 1, K3, !1, !0), ei(t, !0, -1), t.checkLineBreaks && b6t.test(t.input.slice(e, t.position)) && w2(t, "non-ASCII line breaks are interpreted as content"), t.documents.push(t.result), t.position === t.lineStart && kx(t)) { t.input.charCodeAt(t.position) === 46 && (t.position += 3, ei(t, !0, -1)); return; } @@ -47256,40 +47256,40 @@ function gce(t) { else return; } -x(gce, "readDocument"); -function xN(t, e) { +x(dce, "readDocument"); +function vN(t, e) { t = String(t), e = e || {}, t.length !== 0 && (t.charCodeAt(t.length - 1) !== 10 && t.charCodeAt(t.length - 1) !== 13 && (t += ` `), t.charCodeAt(0) === 65279 && (t = t.slice(1))); - var r = new sce(t, e), n = t.indexOf("\0"); + var r = new nce(t, e), n = t.indexOf("\0"); for (n !== -1 && (r.position = n, Vt(r, "null byte is not allowed in input")), r.input += "\0"; r.input.charCodeAt(r.position) === 32; ) r.lineIndent += 1, r.position += 1; for (; r.position < r.length - 1; ) - gce(r); + dce(r); return r.documents; } -x(xN, "loadDocuments"); -function mce(t, e, r) { +x(vN, "loadDocuments"); +function pce(t, e, r) { e !== null && typeof e == "object" && typeof r > "u" && (r = e, e = null); - var n = xN(t, r); + var n = vN(t, r); if (typeof e != "function") return n; for (var i = 0, s = n.length; i < s; i += 1) e(n[i]); } -x(mce, "loadAll$1"); -function vce(t, e) { - var r = xN(t, e); +x(pce, "loadAll$1"); +function gce(t, e) { + var r = vN(t, e); if (r.length !== 0) { if (r.length === 1) return r[0]; throw new Ea("expected a single document in the stream, but found more"); } } -x(vce, "load$1"); -var k6t = mce, S6t = vce, T6t = { - loadAll: k6t, - load: S6t -}, yce = Object.prototype.toString, bce = Object.prototype.hasOwnProperty, wN = 65279, C6t = 9, O2 = 10, E6t = 13, _6t = 32, A6t = 33, L6t = 34, uL = 35, R6t = 37, M6t = 38, D6t = 39, N6t = 42, xce = 44, I6t = 45, ek = 58, P6t = 61, $6t = 62, B6t = 63, F6t = 64, wce = 91, Oce = 93, z6t = 96, kce = 123, V6t = 124, Sce = 125, Ws = {}; +x(gce, "load$1"); +var w6t = pce, O6t = gce, k6t = { + loadAll: w6t, + load: O6t +}, mce = Object.prototype.toString, vce = Object.prototype.hasOwnProperty, yN = 65279, S6t = 9, O2 = 10, T6t = 13, C6t = 32, E6t = 33, _6t = 34, lL = 35, A6t = 37, L6t = 38, R6t = 39, M6t = 42, yce = 44, D6t = 45, J3 = 58, N6t = 61, I6t = 62, P6t = 63, $6t = 64, bce = 91, xce = 93, B6t = 96, wce = 123, F6t = 124, Oce = 125, Ws = {}; Ws[0] = "\\0"; Ws[7] = "\\a"; Ws[8] = "\\b"; @@ -47305,7 +47305,7 @@ Ws[133] = "\\N"; Ws[160] = "\\_"; Ws[8232] = "\\L"; Ws[8233] = "\\P"; -var U6t = [ +var z6t = [ "y", "Y", "yes", @@ -47322,17 +47322,17 @@ var U6t = [ "off", "Off", "OFF" -], q6t = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/; -function Tce(t, e) { +], V6t = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/; +function kce(t, e) { var r, n, i, s, a, o, l; if (e === null) return {}; for (r = {}, n = Object.keys(e), i = 0, s = n.length; i < s; i += 1) - a = n[i], o = String(e[a]), a.slice(0, 2) === "!!" && (a = "tag:yaml.org,2002:" + a.slice(2)), l = t.compiledTypeMap.fallback[a], l && bce.call(l.styleAliases, o) && (o = l.styleAliases[o]), r[a] = o; + a = n[i], o = String(e[a]), a.slice(0, 2) === "!!" && (a = "tag:yaml.org,2002:" + a.slice(2)), l = t.compiledTypeMap.fallback[a], l && vce.call(l.styleAliases, o) && (o = l.styleAliases[o]), r[a] = o; return r; } -x(Tce, "compileStyleMap"); -function Cce(t) { +x(kce, "compileStyleMap"); +function Sce(t) { var e, r, n; if (e = t.toString(16).toUpperCase(), t <= 255) r = "x", n = 2; @@ -47344,76 +47344,76 @@ function Cce(t) { throw new Ea("code point within a string may not be greater than 0xFFFFFFFF"); return "\\" + r + Ei.repeat("0", n - e.length) + e; } -x(Cce, "encodeHex"); -var Y6t = 1, k2 = 2; -function Ece(t) { - this.schema = t.schema || Hle, this.indent = Math.max(1, t.indent || 2), this.noArrayIndent = t.noArrayIndent || !1, this.skipInvalid = t.skipInvalid || !1, this.flowLevel = Ei.isNothing(t.flowLevel) ? -1 : t.flowLevel, this.styleMap = Tce(this.schema, t.styles || null), this.sortKeys = t.sortKeys || !1, this.lineWidth = t.lineWidth || 80, this.noRefs = t.noRefs || !1, this.noCompatMode = t.noCompatMode || !1, this.condenseFlow = t.condenseFlow || !1, this.quotingType = t.quotingType === '"' ? k2 : Y6t, this.forceQuotes = t.forceQuotes || !1, this.replacer = typeof t.replacer == "function" ? t.replacer : null, this.implicitTypes = this.schema.compiledImplicit, this.explicitTypes = this.schema.compiledExplicit, this.tag = null, this.result = "", this.duplicates = [], this.usedDuplicates = null; +x(Sce, "encodeHex"); +var U6t = 1, k2 = 2; +function Tce(t) { + this.schema = t.schema || Wle, this.indent = Math.max(1, t.indent || 2), this.noArrayIndent = t.noArrayIndent || !1, this.skipInvalid = t.skipInvalid || !1, this.flowLevel = Ei.isNothing(t.flowLevel) ? -1 : t.flowLevel, this.styleMap = kce(this.schema, t.styles || null), this.sortKeys = t.sortKeys || !1, this.lineWidth = t.lineWidth || 80, this.noRefs = t.noRefs || !1, this.noCompatMode = t.noCompatMode || !1, this.condenseFlow = t.condenseFlow || !1, this.quotingType = t.quotingType === '"' ? k2 : U6t, this.forceQuotes = t.forceQuotes || !1, this.replacer = typeof t.replacer == "function" ? t.replacer : null, this.implicitTypes = this.schema.compiledImplicit, this.explicitTypes = this.schema.compiledExplicit, this.tag = null, this.result = "", this.duplicates = [], this.usedDuplicates = null; } -x(Ece, "State"); -function hL(t, e) { +x(Tce, "State"); +function cL(t, e) { for (var r = Ei.repeat(" ", e), n = 0, i = -1, s = "", a, o = t.length; n < o; ) i = t.indexOf(` `, n), i === -1 ? (a = t.slice(n), n = o) : (a = t.slice(n, i + 1), n = i + 1), a.length && a !== ` ` && (s += r), s += a; return s; } -x(hL, "indentString"); -function tk(t, e) { +x(cL, "indentString"); +function ek(t, e) { return ` ` + Ei.repeat(" ", t.indent * e); } -x(tk, "generateNextLine"); -function _ce(t, e) { +x(ek, "generateNextLine"); +function Cce(t, e) { var r, n, i; for (r = 0, n = t.implicitTypes.length; r < n; r += 1) if (i = t.implicitTypes[r], i.resolve(e)) return !0; return !1; } -x(_ce, "testImplicitResolving"); +x(Cce, "testImplicitResolving"); function S2(t) { - return t === _6t || t === C6t; + return t === C6t || t === S6t; } x(S2, "isWhitespace"); function o1(t) { - return 32 <= t && t <= 126 || 161 <= t && t <= 55295 && t !== 8232 && t !== 8233 || 57344 <= t && t <= 65533 && t !== wN || 65536 <= t && t <= 1114111; + return 32 <= t && t <= 126 || 161 <= t && t <= 55295 && t !== 8232 && t !== 8233 || 57344 <= t && t <= 65533 && t !== yN || 65536 <= t && t <= 1114111; } x(o1, "isPrintable"); -function fL(t) { - return o1(t) && t !== wN && t !== E6t && t !== O2; +function uL(t) { + return o1(t) && t !== yN && t !== T6t && t !== O2; } -x(fL, "isNsCharOrWhitespace"); -function dL(t, e, r) { - var n = fL(t), i = n && !S2(t); - return (r ? n : n && t !== xce && t !== wce && t !== Oce && t !== kce && t !== Sce) && t !== uL && !(e === ek && !i) || fL(e) && !S2(e) && t === uL || e === ek && i; +x(uL, "isNsCharOrWhitespace"); +function hL(t, e, r) { + var n = uL(t), i = n && !S2(t); + return (r ? n : n && t !== yce && t !== bce && t !== xce && t !== wce && t !== Oce) && t !== lL && !(e === J3 && !i) || uL(e) && !S2(e) && t === lL || e === J3 && i; } -x(dL, "isPlainSafe"); -function Ace(t) { - return o1(t) && t !== wN && !S2(t) && t !== I6t && t !== B6t && t !== ek && t !== xce && t !== wce && t !== Oce && t !== kce && t !== Sce && t !== uL && t !== M6t && t !== N6t && t !== A6t && t !== V6t && t !== P6t && t !== $6t && t !== D6t && t !== L6t && t !== R6t && t !== F6t && t !== z6t; +x(hL, "isPlainSafe"); +function Ece(t) { + return o1(t) && t !== yN && !S2(t) && t !== D6t && t !== P6t && t !== J3 && t !== yce && t !== bce && t !== xce && t !== wce && t !== Oce && t !== lL && t !== L6t && t !== M6t && t !== E6t && t !== F6t && t !== N6t && t !== I6t && t !== R6t && t !== _6t && t !== A6t && t !== $6t && t !== B6t; } -x(Ace, "isPlainSafeFirst"); -function Lce(t) { - return !S2(t) && t !== ek; +x(Ece, "isPlainSafeFirst"); +function _ce(t) { + return !S2(t) && t !== J3; } -x(Lce, "isPlainSafeLast"); +x(_ce, "isPlainSafeLast"); function zp(t, e) { var r = t.charCodeAt(e), n; return r >= 55296 && r <= 56319 && e + 1 < t.length && (n = t.charCodeAt(e + 1), n >= 56320 && n <= 57343) ? (r - 55296) * 1024 + n - 56320 + 65536 : r; } x(zp, "codePointAt"); -function ON(t) { +function bN(t) { var e = /^\n* /; return e.test(t); } -x(ON, "needIndentIndicator"); -var Rce = 1, pL = 2, Mce = 3, Dce = 4, _p = 5; -function Nce(t, e, r, n, i, s, a, o) { - var l, u = 0, h = null, f = !1, d = !1, p = n !== -1, g = -1, m = Ace(zp(t, 0)) && Lce(zp(t, t.length - 1)); +x(bN, "needIndentIndicator"); +var Ace = 1, fL = 2, Lce = 3, Rce = 4, _p = 5; +function Mce(t, e, r, n, i, s, a, o) { + var l, u = 0, h = null, f = !1, d = !1, p = n !== -1, g = -1, m = Ece(zp(t, 0)) && _ce(zp(t, t.length - 1)); if (e || a) for (l = 0; l < t.length; u >= 65536 ? l += 2 : l++) { if (u = zp(t, l), !o1(u)) return _p; - m = m && dL(u, h, o), h = u; + m = m && hL(u, h, o), h = u; } else { for (l = 0; l < t.length; u >= 65536 ? l += 2 : l++) { @@ -47421,24 +47421,24 @@ function Nce(t, e, r, n, i, s, a, o) { f = !0, p && (d = d || l - g - 1 > n && t[g + 1] !== " ", g = l); else if (!o1(u)) return _p; - m = m && dL(u, h, o), h = u; + m = m && hL(u, h, o), h = u; } d = d || p && l - g - 1 > n && t[g + 1] !== " "; } - return !f && !d ? m && !a && !i(t) ? Rce : s === k2 ? _p : pL : r > 9 && ON(t) ? _p : a ? s === k2 ? _p : pL : d ? Dce : Mce; + return !f && !d ? m && !a && !i(t) ? Ace : s === k2 ? _p : fL : r > 9 && bN(t) ? _p : a ? s === k2 ? _p : fL : d ? Rce : Lce; } -x(Nce, "chooseScalarStyle"); -function Ice(t, e, r, n, i) { +x(Mce, "chooseScalarStyle"); +function Dce(t, e, r, n, i) { t.dump = function() { if (e.length === 0) return t.quotingType === k2 ? '""' : "''"; - if (!t.noCompatMode && (U6t.indexOf(e) !== -1 || q6t.test(e))) + if (!t.noCompatMode && (z6t.indexOf(e) !== -1 || V6t.test(e))) return t.quotingType === k2 ? '"' + e + '"' : "'" + e + "'"; var s = t.indent * Math.max(1, r), a = t.lineWidth === -1 ? -1 : Math.max(Math.min(t.lineWidth, 40), t.lineWidth - s), o = n || t.flowLevel > -1 && r >= t.flowLevel; function l(u) { - return _ce(t, u); + return Cce(t, u); } - switch (x(l, "testAmbiguity"), Nce( + switch (x(l, "testAmbiguity"), Mce( e, o, t.indent, @@ -47448,51 +47448,51 @@ function Ice(t, e, r, n, i) { t.forceQuotes && !n, i )) { - case Rce: + case Ace: return e; - case pL: + case fL: return "'" + e.replace(/'/g, "''") + "'"; - case Mce: - return "|" + gL(e, t.indent) + mL(hL(e, s)); - case Dce: - return ">" + gL(e, t.indent) + mL(hL(Pce(e, a), s)); + case Lce: + return "|" + dL(e, t.indent) + pL(cL(e, s)); + case Rce: + return ">" + dL(e, t.indent) + pL(cL(Nce(e, a), s)); case _p: - return '"' + $ce(e) + '"'; + return '"' + Ice(e) + '"'; default: throw new Ea("impossible error: invalid scalar style"); } }(); } -x(Ice, "writeScalar"); -function gL(t, e) { - var r = ON(t) ? String(e) : "", n = t[t.length - 1] === ` +x(Dce, "writeScalar"); +function dL(t, e) { + var r = bN(t) ? String(e) : "", n = t[t.length - 1] === ` `, i = n && (t[t.length - 2] === ` ` || t === ` `), s = i ? "+" : n ? "" : "-"; return r + s + ` `; } -x(gL, "blockHeader"); -function mL(t) { +x(dL, "blockHeader"); +function pL(t) { return t[t.length - 1] === ` ` ? t.slice(0, -1) : t; } -x(mL, "dropEndingNewline"); -function Pce(t, e) { +x(pL, "dropEndingNewline"); +function Nce(t, e) { for (var r = /(\n+)([^\n]*)/g, n = function() { var u = t.indexOf(` `); - return u = u !== -1 ? u : t.length, r.lastIndex = u, vL(t.slice(0, u), e); + return u = u !== -1 ? u : t.length, r.lastIndex = u, gL(t.slice(0, u), e); }(), i = t[0] === ` ` || t[0] === " ", s, a; a = r.exec(t); ) { var o = a[1], l = a[2]; s = l[0] === " ", n += o + (!i && !s && l !== "" ? ` -` : "") + vL(l, e), i = s; +` : "") + gL(l, e), i = s; } return n; } -x(Pce, "foldString"); -function vL(t, e) { +x(Nce, "foldString"); +function gL(t, e) { if (t === "" || t[0] === " ") return t; for (var r = / [^ ]/g, n, i = 0, s, a = 0, o = 0, l = ""; n = r.exec(t); ) @@ -47502,35 +47502,35 @@ function vL(t, e) { `, t.length - i > e && a > i ? l += t.slice(i, a) + ` ` + t.slice(a + 1) : l += t.slice(i), l.slice(1); } -x(vL, "foldLine"); -function $ce(t) { +x(gL, "foldLine"); +function Ice(t) { for (var e = "", r = 0, n, i = 0; i < t.length; r >= 65536 ? i += 2 : i++) - r = zp(t, i), n = Ws[r], !n && o1(r) ? (e += t[i], r >= 65536 && (e += t[i + 1])) : e += n || Cce(r); + r = zp(t, i), n = Ws[r], !n && o1(r) ? (e += t[i], r >= 65536 && (e += t[i + 1])) : e += n || Sce(r); return e; } -x($ce, "escapeString"); -function Bce(t, e, r) { +x(Ice, "escapeString"); +function Pce(t, e, r) { var n = "", i = t.tag, s, a, o; for (s = 0, a = r.length; s < a; s += 1) o = r[s], t.replacer && (o = t.replacer.call(r, String(s), o)), ($c(t, e, o, !1, !1) || typeof o > "u" && $c(t, e, null, !1, !1)) && (n !== "" && (n += "," + (t.condenseFlow ? "" : " ")), n += t.dump); t.tag = i, t.dump = "[" + n + "]"; } -x(Bce, "writeFlowSequence"); -function yL(t, e, r, n) { +x(Pce, "writeFlowSequence"); +function mL(t, e, r, n) { var i = "", s = t.tag, a, o, l; for (a = 0, o = r.length; a < o; a += 1) - l = r[a], t.replacer && (l = t.replacer.call(r, String(a), l)), ($c(t, e + 1, l, !0, !0, !1, !0) || typeof l > "u" && $c(t, e + 1, null, !0, !0, !1, !0)) && ((!n || i !== "") && (i += tk(t, e)), t.dump && O2 === t.dump.charCodeAt(0) ? i += "-" : i += "- ", i += t.dump); + l = r[a], t.replacer && (l = t.replacer.call(r, String(a), l)), ($c(t, e + 1, l, !0, !0, !1, !0) || typeof l > "u" && $c(t, e + 1, null, !0, !0, !1, !0)) && ((!n || i !== "") && (i += ek(t, e)), t.dump && O2 === t.dump.charCodeAt(0) ? i += "-" : i += "- ", i += t.dump); t.tag = s, t.dump = i || "[]"; } -x(yL, "writeBlockSequence"); -function Fce(t, e, r) { +x(mL, "writeBlockSequence"); +function $ce(t, e, r) { var n = "", i = t.tag, s = Object.keys(r), a, o, l, u, h; for (a = 0, o = s.length; a < o; a += 1) h = "", n !== "" && (h += ", "), t.condenseFlow && (h += '"'), l = s[a], u = r[l], t.replacer && (u = t.replacer.call(r, l, u)), $c(t, e, l, !1, !1) && (t.dump.length > 1024 && (h += "? "), h += t.dump + (t.condenseFlow ? '"' : "") + ":" + (t.condenseFlow ? "" : " "), $c(t, e, u, !1, !1) && (h += t.dump, n += h)); t.tag = i, t.dump = "{" + n + "}"; } -x(Fce, "writeFlowMapping"); -function zce(t, e, r, n) { +x($ce, "writeFlowMapping"); +function Bce(t, e, r, n) { var i = "", s = t.tag, a = Object.keys(r), o, l, u, h, f, d; if (t.sortKeys === !0) a.sort(); @@ -47539,18 +47539,18 @@ function zce(t, e, r, n) { else if (t.sortKeys) throw new Ea("sortKeys must be a boolean or a function"); for (o = 0, l = a.length; o < l; o += 1) - d = "", (!n || i !== "") && (d += tk(t, e)), u = a[o], h = r[u], t.replacer && (h = t.replacer.call(r, u, h)), $c(t, e + 1, u, !0, !0, !0) && (f = t.tag !== null && t.tag !== "?" || t.dump && t.dump.length > 1024, f && (t.dump && O2 === t.dump.charCodeAt(0) ? d += "?" : d += "? "), d += t.dump, f && (d += tk(t, e)), $c(t, e + 1, h, !0, f) && (t.dump && O2 === t.dump.charCodeAt(0) ? d += ":" : d += ": ", d += t.dump, i += d)); + d = "", (!n || i !== "") && (d += ek(t, e)), u = a[o], h = r[u], t.replacer && (h = t.replacer.call(r, u, h)), $c(t, e + 1, u, !0, !0, !0) && (f = t.tag !== null && t.tag !== "?" || t.dump && t.dump.length > 1024, f && (t.dump && O2 === t.dump.charCodeAt(0) ? d += "?" : d += "? "), d += t.dump, f && (d += ek(t, e)), $c(t, e + 1, h, !0, f) && (t.dump && O2 === t.dump.charCodeAt(0) ? d += ":" : d += ": ", d += t.dump, i += d)); t.tag = s, t.dump = i || "{}"; } -x(zce, "writeBlockMapping"); -function bL(t, e, r) { +x(Bce, "writeBlockMapping"); +function vL(t, e, r) { var n, i, s, a, o, l; for (i = r ? t.explicitTypes : t.implicitTypes, s = 0, a = i.length; s < a; s += 1) if (o = i[s], (o.instanceOf || o.predicate) && (!o.instanceOf || typeof e == "object" && e instanceof o.instanceOf) && (!o.predicate || o.predicate(e))) { if (r ? o.multi && o.representName ? t.tag = o.representName(e) : t.tag = o.tag : t.tag = "?", o.represent) { - if (l = t.styleMap[o.tag] || o.defaultStyle, yce.call(o.represent) === "[object Function]") + if (l = t.styleMap[o.tag] || o.defaultStyle, mce.call(o.represent) === "[object Function]") n = o.represent(e, l); - else if (bce.call(o.represent, l)) + else if (vce.call(o.represent, l)) n = o.represent[l](e, l); else throw new Ea("!<" + o.tag + '> tag resolver accepts not "' + l + '" style'); @@ -47560,21 +47560,21 @@ function bL(t, e, r) { } return !1; } -x(bL, "detectType"); +x(vL, "detectType"); function $c(t, e, r, n, i, s, a) { - t.tag = null, t.dump = r, bL(t, r, !1) || bL(t, r, !0); - var o = yce.call(t.dump), l = n, u; + t.tag = null, t.dump = r, vL(t, r, !1) || vL(t, r, !0); + var o = mce.call(t.dump), l = n, u; n && (n = t.flowLevel < 0 || t.flowLevel > e); var h = o === "[object Object]" || o === "[object Array]", f, d; if (h && (f = t.duplicates.indexOf(r), d = f !== -1), (t.tag !== null && t.tag !== "?" || d || t.indent !== 2 && e > 0) && (i = !1), d && t.usedDuplicates[f]) t.dump = "*ref_" + f; else { if (h && d && !t.usedDuplicates[f] && (t.usedDuplicates[f] = !0), o === "[object Object]") - n && Object.keys(t.dump).length !== 0 ? (zce(t, e, t.dump, i), d && (t.dump = "&ref_" + f + t.dump)) : (Fce(t, e, t.dump), d && (t.dump = "&ref_" + f + " " + t.dump)); + n && Object.keys(t.dump).length !== 0 ? (Bce(t, e, t.dump, i), d && (t.dump = "&ref_" + f + t.dump)) : ($ce(t, e, t.dump), d && (t.dump = "&ref_" + f + " " + t.dump)); else if (o === "[object Array]") - n && t.dump.length !== 0 ? (t.noArrayIndent && !a && e > 0 ? yL(t, e - 1, t.dump, i) : yL(t, e, t.dump, i), d && (t.dump = "&ref_" + f + t.dump)) : (Bce(t, e, t.dump), d && (t.dump = "&ref_" + f + " " + t.dump)); + n && t.dump.length !== 0 ? (t.noArrayIndent && !a && e > 0 ? mL(t, e - 1, t.dump, i) : mL(t, e, t.dump, i), d && (t.dump = "&ref_" + f + t.dump)) : (Pce(t, e, t.dump), d && (t.dump = "&ref_" + f + " " + t.dump)); else if (o === "[object String]") - t.tag !== "?" && Ice(t, t.dump, e, s, l); + t.tag !== "?" && Dce(t, t.dump, e, s, l); else { if (o === "[object Undefined]") return !1; @@ -47589,52 +47589,52 @@ function $c(t, e, r, n, i, s, a) { return !0; } x($c, "writeNode"); -function Vce(t, e) { +function Fce(t, e) { var r = [], n = [], i, s; - for (rk(t, r, n), i = 0, s = n.length; i < s; i += 1) + for (tk(t, r, n), i = 0, s = n.length; i < s; i += 1) e.duplicates.push(r[n[i]]); e.usedDuplicates = new Array(s); } -x(Vce, "getDuplicateReferences"); -function rk(t, e, r) { +x(Fce, "getDuplicateReferences"); +function tk(t, e, r) { var n, i, s; if (t !== null && typeof t == "object") if (i = e.indexOf(t), i !== -1) r.indexOf(i) === -1 && r.push(i); else if (e.push(t), Array.isArray(t)) for (i = 0, s = t.length; i < s; i += 1) - rk(t[i], e, r); + tk(t[i], e, r); else for (n = Object.keys(t), i = 0, s = n.length; i < s; i += 1) - rk(t[n[i]], e, r); + tk(t[n[i]], e, r); } -x(rk, "inspectNode"); -function Q6t(t, e) { +x(tk, "inspectNode"); +function q6t(t, e) { e = e || {}; - var r = new Ece(e); - r.noRefs || Vce(t, r); + var r = new Tce(e); + r.noRefs || Fce(t, r); var n = t; return r.replacer && (n = r.replacer.call({ "": n }, "", n)), $c(r, 0, n, !0, !0) ? r.dump + ` ` : ""; } -x(Q6t, "dump$1"); -function W6t(t, e) { +x(q6t, "dump$1"); +function Y6t(t, e) { return function() { throw new Error("Function yaml." + t + " is removed in js-yaml 4. Use yaml." + e + " instead, which is now safe by default."); }; } -x(W6t, "renamed"); -var G6t = Rle, H6t = T6t.load; -function Uce(t) { +x(Y6t, "renamed"); +var Q6t = Ale, W6t = k6t.load; +function zce(t) { var i; - const e = t.match(Oie); + const e = t.match(xie); if (!e) return { text: t, metadata: {} }; - let r = (i = H6t(e[1], { - schema: G6t + let r = (i = W6t(e[1], { + schema: Q6t })) != null ? i : {}; r = typeof r == "object" && !Array.isArray(r) ? r : {}; const n = {}; @@ -47643,57 +47643,57 @@ function Uce(t) { metadata: n }; } -x(Uce, "extractFrontMatter"); -var X6t = /* @__PURE__ */ x((t) => t.replace(/\r\n?/g, ` +x(zce, "extractFrontMatter"); +var G6t = /* @__PURE__ */ x((t) => t.replace(/\r\n?/g, ` `).replace( /<(\w+)([^>]*)>/g, (e, r, n) => "<" + r + n.replace(/="([^"]*)"/g, "='$1'") + ">" -), "cleanupText"), Z6t = /* @__PURE__ */ x((t) => { - const { text: e, metadata: r } = Uce(t), { displayMode: n, title: i, config: s = {} } = r; +), "cleanupText"), H6t = /* @__PURE__ */ x((t) => { + const { text: e, metadata: r } = zce(t), { displayMode: n, title: i, config: s = {} } = r; return n && (s.gantt || (s.gantt = {}), s.gantt.displayMode = n), { title: i, config: s, text: e }; -}, "processFrontmatter"), j6t = /* @__PURE__ */ x((t) => { +}, "processFrontmatter"), X6t = /* @__PURE__ */ x((t) => { var n; const e = (n = sr.detectInit(t)) != null ? n : {}, r = sr.detectDirective(t, "wrap"); return Array.isArray(r) ? e.wrap = r.some(({ type: i }) => i === "wrap") : (r == null ? void 0 : r.type) === "wrap" && (e.wrap = !0), { - text: X3t(t), + text: G3t(t), directive: e }; }, "processDirectives"); -function kN(t) { - const e = X6t(t), r = Z6t(e), n = j6t(r.text), i = ch(r.config, n.directive); - return t = VEt(n.text), { +function xN(t) { + const e = G6t(t), r = H6t(e), n = X6t(r.text), i = ch(r.config, n.directive); + return t = FEt(n.text), { code: t, title: r.title, config: i }; } -x(kN, "preprocessDiagram"); -function qce(t) { +x(xN, "preprocessDiagram"); +function Vce(t) { const e = new TextEncoder().encode(t), r = Array.from(e, (n) => String.fromCodePoint(n)).join(""); return btoa(r); } -x(qce, "toBase64"); -var K6t = 5e4, J6t = "graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa", e_t = "sandbox", t_t = "loose", r_t = "http://www.w3.org/2000/svg", n_t = "http://www.w3.org/1999/xlink", i_t = "http://www.w3.org/1999/xhtml", s_t = "100%", a_t = "100%", o_t = "border:0;margin:0;", l_t = "margin:0", c_t = "allow-top-navigation-by-user-activation allow-popups", u_t = 'The "iframe" tag is not supported by your browser.', h_t = ["foreignobject"], f_t = ["dominant-baseline"]; -function SN(t) { +x(Vce, "toBase64"); +var Z6t = 5e4, j6t = "graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa", K6t = "sandbox", J6t = "loose", e_t = "http://www.w3.org/2000/svg", t_t = "http://www.w3.org/1999/xlink", r_t = "http://www.w3.org/1999/xhtml", n_t = "100%", i_t = "100%", s_t = "border:0;margin:0;", a_t = "margin:0", o_t = "allow-top-navigation-by-user-activation allow-popups", l_t = 'The "iframe" tag is not supported by your browser.', c_t = ["foreignobject"], u_t = ["dominant-baseline"]; +function wN(t) { var r; - const e = kN(t); - return g3(), gvt((r = e.config) != null ? r : {}), e; + const e = xN(t); + return p3(), dvt((r = e.config) != null ? r : {}), e; } -x(SN, "processAndSetConfigs"); -async function Yce(t, e) { - GT(); +x(wN, "processAndSetConfigs"); +async function Uce(t, e) { + QT(); try { - const { code: r, config: n } = SN(t); - return { diagramType: (await Wce(r)).type, config: n }; + const { code: r, config: n } = wN(t); + return { diagramType: (await Yce(r)).type, config: n }; } catch (r) { if (e != null && e.suppressErrors) return !1; throw r; } } -x(Yce, "parse"); -var hY = /* @__PURE__ */ x((t, e, r = []) => ` -.${t} ${e} { ${r.join(" !important; ")} !important; }`, "cssImportantStyles"), d_t = /* @__PURE__ */ x((t, e = /* @__PURE__ */ new Map()) => { +x(Uce, "parse"); +var lY = /* @__PURE__ */ x((t, e, r = []) => ` +.${t} ${e} { ${r.join(" !important; ")} !important; }`, "cssImportantStyles"), h_t = /* @__PURE__ */ x((t, e = /* @__PURE__ */ new Map()) => { var n, i; let r = ""; if (t.themeCSS !== void 0 && (r += ` @@ -47703,8 +47703,8 @@ ${t.themeCSS}`), t.fontFamily !== void 0 && (r += ` const l = ((i = t.htmlLabels) != null ? i : (n = t.flowchart) == null ? void 0 : n.htmlLabels) ? ["> *", "span"] : ["rect", "polygon", "ellipse", "circle", "path"]; e.forEach((u) => { $r(u.styles) || l.forEach((h) => { - r += hY(u.id, h, u.styles); - }), $r(u.textStyles) || (r += hY( + r += lY(u.id, h, u.styles); + }), $r(u.textStyles) || (r += lY( u.id, "tspan", ((u == null ? void 0 : u.textStyles) || []).map((h) => h.replace("color", "fill")) @@ -47712,89 +47712,89 @@ ${t.themeCSS}`), t.fontFamily !== void 0 && (r += ` }); } return r; -}, "createCssStyles"), p_t = /* @__PURE__ */ x((t, e, r, n) => { - const i = d_t(t, r), s = Dvt(e, i, t.themeVariables); - return eL(_Tt(`${n}{${s}}`), LTt); -}, "createUserStyles"), g_t = /* @__PURE__ */ x((t = "", e, r) => { +}, "createCssStyles"), f_t = /* @__PURE__ */ x((t, e, r, n) => { + const i = h_t(t, r), s = Rvt(e, i, t.themeVariables); + return K8(CTt(`${n}{${s}}`), _Tt); +}, "createUserStyles"), d_t = /* @__PURE__ */ x((t = "", e, r) => { let n = t; return !r && !e && (n = n.replace( /marker-end="url\([\d+./:=?A-Za-z-]*?#/g, 'marker-end="url(#' )), n = h0(n), n = n.replace(/
/g, "
"), n; -}, "cleanUpSvgCode"), m_t = /* @__PURE__ */ x((t = "", e) => { +}, "cleanUpSvgCode"), p_t = /* @__PURE__ */ x((t = "", e) => { var i, s; - const r = (s = (i = e == null ? void 0 : e.viewBox) == null ? void 0 : i.baseVal) != null && s.height ? e.viewBox.baseVal.height + "px" : a_t, n = qce(`${t}`); - return ``; -}, "putIntoIFrame"), fY = /* @__PURE__ */ x((t, e, r, n, i) => { +}, "putIntoIFrame"), cY = /* @__PURE__ */ x((t, e, r, n, i) => { const s = t.append("div"); s.attr("id", r), n && s.attr("style", n); - const a = s.append("svg").attr("id", e).attr("width", "100%").attr("xmlns", r_t); + const a = s.append("svg").attr("id", e).attr("width", "100%").attr("xmlns", e_t); return i && a.attr("xmlns:xlink", i), a.append("g"), t; }, "appendDivSvgG"); -function xL(t, e) { +function yL(t, e) { return t.append("iframe").attr("id", e).attr("style", "width: 100%; height: 100%;").attr("sandbox", ""); } -x(xL, "sandboxedIframe"); -var v_t = /* @__PURE__ */ x((t, e, r, n) => { +x(yL, "sandboxedIframe"); +var g_t = /* @__PURE__ */ x((t, e, r, n) => { var i, s, a; (i = t.getElementById(e)) == null || i.remove(), (s = t.getElementById(r)) == null || s.remove(), (a = t.getElementById(n)) == null || a.remove(); -}, "removeExistingElements"), y_t = /* @__PURE__ */ x(async function(t, e, r) { +}, "removeExistingElements"), m_t = /* @__PURE__ */ x(async function(t, e, r) { var A, $, k, N, M, I, D; - GT(); - const n = SN(e); + QT(); + const n = wN(e); e = n.code; const i = pi(); - X.debug(i), e.length > ((A = i == null ? void 0 : i.maxTextSize) != null ? A : K6t) && (e = J6t); + X.debug(i), e.length > ((A = i == null ? void 0 : i.maxTextSize) != null ? A : Z6t) && (e = j6t); const s = "#" + t, a = "i" + t, o = "#" + a, l = "d" + t, u = "#" + l, h = /* @__PURE__ */ x(() => { const F = et(d ? o : u).node(); F && "remove" in F && F.remove(); }, "removeTempElements"); let f = et("body"); - const d = i.securityLevel === e_t, p = i.securityLevel === t_t, g = i.fontFamily; + const d = i.securityLevel === K6t, p = i.securityLevel === J6t, g = i.fontFamily; if (r !== void 0) { if (r && (r.innerHTML = ""), d) { - const P = xL(et(r), a); + const P = yL(et(r), a); f = et(P.nodes()[0].contentDocument.body), f.node().style.margin = 0; } else f = et(r); - fY(f, t, l, `font-family: ${g}`, n_t); + cY(f, t, l, `font-family: ${g}`, t_t); } else { - if (v_t(document, t, l, a), d) { - const P = xL(et("body"), a); + if (g_t(document, t, l, a), d) { + const P = yL(et("body"), a); f = et(P.nodes()[0].contentDocument.body), f.node().style.margin = 0; } else f = et("body"); - fY(f, t, l); + cY(f, t, l); } let m, v; try { - m = await iL.fromText(e, { title: n.title }); + m = await rL.fromText(e, { title: n.title }); } catch (P) { if (i.suppressErrorRendering) throw h(), P; - m = await iL.fromText("error"), v = P; + m = await rL.fromText("error"), v = P; } - const y = f.select(u).node(), b = m.type, w = y.firstChild, O = w.firstChild, S = (k = ($ = m.renderer).getClasses) == null ? void 0 : k.call($, e, m), C = p_t(i, b, S, s), T = document.createElement("style"); + const y = f.select(u).node(), b = m.type, w = y.firstChild, O = w.firstChild, S = (k = ($ = m.renderer).getClasses) == null ? void 0 : k.call($, e, m), C = f_t(i, b, S, s), T = document.createElement("style"); T.innerHTML = C, w.insertBefore(T, O); try { - await m.renderer.draw(e, t, K8, m); + await m.renderer.draw(e, t, Z8, m); } catch (P) { - throw i.suppressErrorRendering ? h() : lEt.draw(e, t, K8), P; + throw i.suppressErrorRendering ? h() : aEt.draw(e, t, Z8), P; } const L = f.select(`${u} svg`), E = (M = (N = m.db).getAccTitle) == null ? void 0 : M.call(N), R = (D = (I = m.db).getAccDescription) == null ? void 0 : D.call(I); - Gce(b, L, E, R), f.select(`[id="${t}"]`).selectAll("foreignobject > *").attr("xmlns", i_t); + Qce(b, L, E, R), f.select(`[id="${t}"]`).selectAll("foreignobject > *").attr("xmlns", r_t); let _ = f.select(u).node().innerHTML; - if (X.debug("config.arrowMarkerAbsolute", i.arrowMarkerAbsolute), _ = g_t(_, d, bn(i.arrowMarkerAbsolute)), d) { + if (X.debug("config.arrowMarkerAbsolute", i.arrowMarkerAbsolute), _ = d_t(_, d, bn(i.arrowMarkerAbsolute)), d) { const P = f.select(u + " svg").node(); - _ = m_t(_, P); + _ = p_t(_, P); } else p || (_ = Yg.sanitize(_, { - ADD_TAGS: h_t, - ADD_ATTR: f_t + ADD_TAGS: c_t, + ADD_ATTR: u_t })); - if (zEt(), v) + if (BEt(), v) throw v; return h(), { diagramType: b, @@ -47802,60 +47802,60 @@ var v_t = /* @__PURE__ */ x((t, e, r, n) => { bindFunctions: m.db.bindFunctions }; }, "render"); -function Qce(t = {}) { +function qce(t = {}) { var n; const e = Ci({}, t); - (e == null ? void 0 : e.fontFamily) && !((n = e.themeVariables) != null && n.fontFamily) && (e.themeVariables || (e.themeVariables = {}), e.themeVariables.fontFamily = e.fontFamily), dvt(e), (e == null ? void 0 : e.theme) && e.theme in Lu ? e.themeVariables = Lu[e.theme].getThemeVariables( + (e == null ? void 0 : e.fontFamily) && !((n = e.themeVariables) != null && n.fontFamily) && (e.themeVariables || (e.themeVariables = {}), e.themeVariables.fontFamily = e.fontFamily), hvt(e), (e == null ? void 0 : e.theme) && e.theme in Lu ? e.themeVariables = Lu[e.theme].getThemeVariables( e.themeVariables ) : e && (e.themeVariables = Lu.default.getThemeVariables(e.themeVariables)); - const r = typeof e == "object" ? fvt(e) : Aie(); - SD(r.logLevel), GT(); + const r = typeof e == "object" ? uvt(e) : Eie(); + wD(r.logLevel), QT(); } -x(Qce, "initialize"); -var Wce = /* @__PURE__ */ x((t, e = {}) => { - const { code: r } = kN(t); - return iL.fromText(r, e); +x(qce, "initialize"); +var Yce = /* @__PURE__ */ x((t, e = {}) => { + const { code: r } = xN(t); + return rL.fromText(r, e); }, "getDiagramFromText"); -function Gce(t, e, r, n) { - ile(e, t), sle(e, r, n, e.attr("id")); +function Qce(t, e, r, n) { + rle(e, t), nle(e, r, n, e.attr("id")); } -x(Gce, "addA11yInfo"); +x(Qce, "addA11yInfo"); var p0 = Object.freeze({ - render: y_t, - parse: Yce, - getDiagramFromText: Wce, - initialize: Qce, + render: m_t, + parse: Uce, + getDiagramFromText: Yce, + initialize: qce, getConfig: pi, - setConfig: Lie, - getSiteConfig: Aie, - updateSiteConfig: pvt, + setConfig: _ie, + getSiteConfig: Eie, + updateSiteConfig: fvt, reset: /* @__PURE__ */ x(() => { - g3(); + p3(); }, "reset"), globalReset: /* @__PURE__ */ x(() => { - g3(Wg); + p3(Wg); }, "globalReset"), defaultConfig: Wg }); -SD(pi().logLevel); -g3(pi()); -var b_t = /* @__PURE__ */ x((t, e, r) => { - X.warn(t), tN(t) ? (r && r(t.str, t.hash), e.push({ ...t, message: t.str, error: t })) : (r && r(t), t instanceof Error && e.push({ +wD(pi().logLevel); +p3(pi()); +var v_t = /* @__PURE__ */ x((t, e, r) => { + X.warn(t), KD(t) ? (r && r(t.str, t.hash), e.push({ ...t, message: t.str, error: t })) : (r && r(t), t instanceof Error && e.push({ str: t.message, message: t.message, hash: t.name, error: t })); -}, "handleError"), Hce = /* @__PURE__ */ x(async function(t = { +}, "handleError"), Wce = /* @__PURE__ */ x(async function(t = { querySelector: ".mermaid" }) { try { - await x_t(t); + await y_t(t); } catch (e) { - if (tN(e) && X.error(e.str), oo.parseError && oo.parseError(e), !t.suppressErrors) + if (KD(e) && X.error(e.str), oo.parseError && oo.parseError(e), !t.suppressErrors) throw X.error("Use the suppressErrors option to suppress these errors"), e; } -}, "run"), x_t = /* @__PURE__ */ x(async function({ postRenderCallback: t, querySelector: e, nodes: r } = { +}, "run"), y_t = /* @__PURE__ */ x(async function({ postRenderCallback: t, querySelector: e, nodes: r } = { querySelector: ".mermaid" }) { const n = p0.getConfig(); @@ -47876,41 +47876,41 @@ var b_t = /* @__PURE__ */ x((t, e, r) => { continue; l.setAttribute("data-processed", "true"); const u = `mermaid-${s.next()}`; - a = l.innerHTML, a = qae(sr.entityDecode(a)).trim().replace(//gi, "
"); + a = l.innerHTML, a = Vae(sr.entityDecode(a)).trim().replace(//gi, "
"); const h = sr.detectInit(a); h && X.debug("Detected early reinit: ", h); try { - const { svg: f, bindFunctions: d } = await Kce(u, a, l); + const { svg: f, bindFunctions: d } = await Zce(u, a, l); l.innerHTML = f, t && await t(u), d && d(l); } catch (f) { - b_t(f, o, oo.parseError); + v_t(f, o, oo.parseError); } } if (o.length > 0) throw o[0]; -}, "runThrowsErrors"), Xce = /* @__PURE__ */ x(function(t) { +}, "runThrowsErrors"), Gce = /* @__PURE__ */ x(function(t) { p0.initialize(t); -}, "initialize"), w_t = /* @__PURE__ */ x(async function(t, e, r) { - X.warn("mermaid.init is deprecated. Please use run instead."), t && Xce(t); +}, "initialize"), b_t = /* @__PURE__ */ x(async function(t, e, r) { + X.warn("mermaid.init is deprecated. Please use run instead."), t && Gce(t); const n = { postRenderCallback: r, querySelector: ".mermaid" }; - typeof e == "string" ? n.querySelector = e : e && (e instanceof HTMLElement ? n.nodes = [e] : n.nodes = e), await Hce(n); -}, "init"), O_t = /* @__PURE__ */ x(async (t, { + typeof e == "string" ? n.querySelector = e : e && (e instanceof HTMLElement ? n.nodes = [e] : n.nodes = e), await Wce(n); +}, "init"), x_t = /* @__PURE__ */ x(async (t, { lazyLoad: e = !0 } = {}) => { - GT(), Sie(...t), e === !1 && await BEt(); -}, "registerExternalDiagrams"), Zce = /* @__PURE__ */ x(function() { + QT(), Oie(...t), e === !1 && await PEt(); +}, "registerExternalDiagrams"), Hce = /* @__PURE__ */ x(function() { if (oo.startOnLoad) { const { startOnLoad: t } = p0.getConfig(); t && oo.run().catch((e) => X.error("Mermaid failed to initialize", e)); } }, "contentLoaded"); -typeof document < "u" && window.addEventListener("load", Zce, !1); -var k_t = /* @__PURE__ */ x(function(t) { +typeof document < "u" && window.addEventListener("load", Hce, !1); +var w_t = /* @__PURE__ */ x(function(t) { oo.parseError = t; -}, "setParseErrorHandler"), nk = [], u_ = !1, jce = /* @__PURE__ */ x(async () => { - if (!u_) { - for (u_ = !0; nk.length > 0; ) { - const t = nk.shift(); +}, "setParseErrorHandler"), rk = [], l_ = !1, Xce = /* @__PURE__ */ x(async () => { + if (!l_) { + for (l_ = !0; rk.length > 0; ) { + const t = rk.shift(); if (t) try { await t(); @@ -47918,9 +47918,9 @@ var k_t = /* @__PURE__ */ x(function(t) { X.error("Error executing queue", e); } } - u_ = !1; + l_ = !1; } -}, "executeQueue"), S_t = /* @__PURE__ */ x(async (t, e) => new Promise((r, n) => { +}, "executeQueue"), O_t = /* @__PURE__ */ x(async (t, e) => new Promise((r, n) => { const i = /* @__PURE__ */ x(() => new Promise((s, a) => { p0.parse(t, e).then( (o) => { @@ -47932,8 +47932,8 @@ var k_t = /* @__PURE__ */ x(function(t) { } ); }), "performCall"); - nk.push(i), jce().catch(n); -}), "parse"), Kce = /* @__PURE__ */ x((t, e, r) => new Promise((n, i) => { + rk.push(i), Xce().catch(n); +}), "parse"), Zce = /* @__PURE__ */ x((t, e, r) => new Promise((n, i) => { const s = /* @__PURE__ */ x(() => new Promise((a, o) => { p0.render(t, e, r).then( (l) => { @@ -47945,23 +47945,23 @@ var k_t = /* @__PURE__ */ x(function(t) { } ); }), "performCall"); - nk.push(s), jce().catch(i); + rk.push(s), Xce().catch(i); }), "render"), oo = { startOnLoad: !0, mermaidAPI: p0, - parse: S_t, - render: Kce, - init: w_t, - run: Hce, - registerExternalDiagrams: O_t, - registerLayoutLoaders: Soe, - initialize: Xce, + parse: O_t, + render: Zce, + init: b_t, + run: Wce, + registerExternalDiagrams: x_t, + registerLayoutLoaders: Ooe, + initialize: Gce, parseError: void 0, - contentLoaded: Zce, - setParseErrorHandler: k_t, - detectType: TD, - registerIconPacks: Vie -}, dY = oo; + contentLoaded: Hce, + setParseErrorHandler: w_t, + detectType: OD, + registerIconPacks: Fie +}, uY = oo; /*! Check if previously processed */ /*! * Wait for document loaded before starting the execution @@ -47971,11 +47971,11 @@ var k_t = /* @__PURE__ */ x(function(t) { js-yaml/dist/js-yaml.mjs: (*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT *) */ -const pY = /* @__PURE__ */ new Map(), gY = 42, mY = /* @__PURE__ */ new Map(), T_t = (t, { +const hY = /* @__PURE__ */ new Map(), fY = 42, dY = /* @__PURE__ */ new Map(), k_t = (t, { lineMap: e, parent: r }) => { - dY.initialize({ + uY.initialize({ theme: "neutral", suppressErrorRendering: !0 }); @@ -47987,21 +47987,21 @@ const pY = /* @__PURE__ */ new Map(), gY = 42, mY = /* @__PURE__ */ new Map(), T const u = i[s]; if (u.info !== "mermaid") return n(i, s, a, o, l); - const h = u.content.trim(), f = OT(e.current, u.attrGet("data-line-id")); - let d = pY.get(f); - d || (d = mY.get(new b8(h, gY).result())); + const h = u.content.trim(), f = xT(e.current, u.attrGet("data-line-id")); + let d = hY.get(f); + d || (d = dY.get(new v8(h, fY).result())); const p = Math.random().toString().replace(".", ""); if (u.attrSet("id", `mermaid-${p}`), d && u.attrSet("class", "mermaid"), !d || d.code !== h) { const m = document.createElement("div"); - m.style.position = "fixed", m.style.visibility = "none", document.body.appendChild(m), tie(r, `mermaid-${p}`).then((v) => { - dY.render(`mermaid-${p}`, h, m).then(({ + m.style.position = "fixed", m.style.visibility = "none", document.body.appendChild(m), Kne(r, `mermaid-${p}`).then((v) => { + uY.render(`mermaid-${p}`, h, m).then(({ svg: y }) => { const b = { svg: y, code: h }; - pY.set(f, b), mY.set(new b8(h, gY).result(), b), v.innerHTML = y, v.className = "mermaid"; + hY.set(f, b), dY.set(new v8(h, fY).result(), b), v.innerHTML = y, v.className = "mermaid"; }).catch((y) => { v.innerHTML = `Mermaid error: ${y}`, v.classList.remove("mermaid"); @@ -48013,39 +48013,39 @@ ${y}`, v.classList.remove("mermaid"); return `
${(g = d == null ? void 0 : d.svg) != null ? g : h}
`; }; }; -function C_t(t, e, r) { - const n = t.attrGet(kD); +function S_t(t, e, r) { + const n = t.attrGet(xD); if (n) { - const i = OT(r.lineMap.current, n), s = window.myst_editor.main_editor.state.doc.line(i), a = Kd(window.myst_editor.main_editor.state, s.from, s.to); + const i = xT(r.lineMap.current, n), s = window.myst_editor.main_editor.state.doc.line(i), a = Kd(window.myst_editor.main_editor.state, s.from, s.to); if (a) { - const o = sM(window.myst_editor.main_editor.state); + const o = rM(window.myst_editor.main_editor.state); let l = !1; return o.between(a.from, a.to, (u, h) => { u === a.from && h === a.to && (l = !0); - }), l ? __t(e, n) : E_t(e, n); + }), l ? C_t(e, n) : T_t(e, n); } } return e; } -const E_t = (t, e) => `` + t, __t = (t, e) => { +const T_t = (t, e) => `` + t, C_t = (t, e) => { const r = ``, n = ``; return t.endsWith(` `) ? r + t.slice(0, t.indexOf("")) + n + "" : r + t + n; }; -function A_t(t, e) { +function E_t(t, e) { let r = t.target.classList.contains("fold") ? t.target : t.target.parentElement; if (!r.classList.contains("fold")) return; - const n = r.getAttribute("data-btn-id"), i = OT(e.current, n), s = window.myst_editor.main_editor.state.doc.line(i); + const n = r.getAttribute("data-btn-id"), i = xT(e.current, n), s = window.myst_editor.main_editor.state.doc.line(i); window.myst_editor.main_editor.dispatch({ selection: { anchor: s.to, head: s.to } - }), qOe(window.myst_editor.main_editor); + }), VOe(window.myst_editor.main_editor); } -const L_t = (t, e) => ((t == null ? void 0 : t.match(e)) || []).length, vY = (t, e) => { - const r = sM(e.state), n = [], i = r.iter(); +const __t = (t, e) => ((t == null ? void 0 : t.match(e)) || []).length, pY = (t, e) => { + const r = rM(e.state), n = [], i = r.iter(); for (let o = i; o.value != null; i.next()) n.push({ from: o.from, @@ -48064,9 +48064,9 @@ const L_t = (t, e) => ((t == null ? void 0 : t.match(e)) || []).length, vY = (t, end: e.state.doc.lineAt(o.to).number })); return [s, a]; -}, R_t = (t) => () => { +}, A_t = (t) => () => { window.myst_editor || (window.myst_editor = {}), window.myst_editor.text = t; -}, M_t = (t) => { +}, L_t = (t) => { const r = new DOMParser().parseFromString(t, "text/html"); r.querySelectorAll("[data-line-id]").forEach((i) => i.removeAttribute("data-line-id")), r.querySelectorAll("span").forEach((i) => { i.attributes.length === 0 && (i.insertAdjacentHTML("afterend", i.innerHTML), i.remove()); @@ -48080,7 +48080,7 @@ const L_t = (t, e) => ((t == null ? void 0 : t.match(e)) || []).length, vY = (t, type: "text/html" }) })]); -}, TN = Zt.define(), D_t = ({ +}, ON = Zt.define(), R_t = ({ initialText: t, transforms: e, customRoles: r, @@ -48091,7 +48091,7 @@ const L_t = (t, e) => ((t == null ? void 0 : t.match(e)) || []).length, vY = (t, const [a, o] = Rn(t), [l, u] = Rn(!1), [h, f] = Rn(!1), [d, p] = Rn({ action: (O) => { } - }), g = so(/* @__PURE__ */ new Map()), [m, v] = _S((O, { + }), g = so(/* @__PURE__ */ new Map()), [m, v] = ES((O, { newMarkdown: S, force: C = !1, view: T, @@ -48104,18 +48104,18 @@ const L_t = (t, e) => ((t == null ? void 0 : t.match(e)) || []).length, vY = (t, }) => (_[A] = $, _), {})); const R = w(S, E, L); return R.length !== O.length || C ? ([...n.current.childNodes].filter((A) => !A.classList || !A.classList.contains("cm-previewFocus")).forEach((A) => n.current.removeChild(A)), n.current.innerHTML += R.map((A) => `` + A.html + "").join(""), R) : (R.filter((_, A) => _.hash !== O[A].hash).forEach((_) => n.current.querySelector("html-chunk#html-chunk-" + _.id).innerHTML = _.html), T == null || T.dispatch({ - effects: TN.of(null) + effects: ON.of(null) }), R); }, []), y = Nn(() => { - const O = H1t({ + const O = W1t({ breaks: !0, linkify: !0 - }).use(mLe).use(j1t(e, s)).use(J1t(r, s)).use(T_t, { + }).use(pLe).use(X1t(e, s)).use(j1t(r, s)).use(k_t, { lineMap: g, parent: s - }).use(tmt, C_t); - return i && O.use(emt), O; - }, []), b = m5((O) => { + }).use(J1t, S_t); + return i && O.use(K1t), O; + }, []), b = g5((O) => { if (O.startState.doc.lines === O.state.doc.lines) return; let S = 0, C = 0; @@ -48127,12 +48127,12 @@ const L_t = (t, e) => ((t == null ? void 0 : t.match(e)) || []).length, vY = (t, for (const [L, E] of g.current.entries()) L < S || (E === T.get(L) && T.delete(L), T.set(L + C, E)); g.current = T; - }), w = m5((O, S = {}, C) => O.split(/(?=\n#{1,3} )/g).reduce( + }), w = g5((O, S = {}, C) => O.split(/(?=\n#{1,3} )/g).reduce( (T, L) => { const E = T.length - 1, R = T[E], _ = R ? R.startLine + R.md.trimLeft().split(` `).length : 1, A = _ + L.trimLeft().split(` `).length - 1; - return L_t(R == null ? void 0 : R.md, /\n```/g) % 2 != 0 ? T[E] = { + return __t(R == null ? void 0 : R.md, /\n```/g) % 2 != 0 ? T[E] = { md: R.md + L, startLine: R.startLine, endLine: A @@ -48148,7 +48148,7 @@ const L_t = (t, e) => ((t == null ? void 0 : t.match(e)) || []).length, vY = (t, startLine: L, endLine: E }, R) => { - const _ = new b8(T, 42).result(); + const _ = new v8(T, 42).result(); if (!S[_]) { let $ = L, k = E; for (const N of C != null ? C : []) @@ -48156,7 +48156,7 @@ const L_t = (t, e) => ((t == null ? void 0 : t.match(e)) || []).length, vY = (t, for (let N = $; N <= k; N++) g.current.delete(N); } - const A = S[_] || Dne.sanitize(y.render(T, { + const A = S[_] || Lne.sanitize(y.render(T, { chunkId: R, startLine: L, lineMap: g, @@ -48174,13 +48174,13 @@ const L_t = (t, e) => ((t == null ? void 0 : t.match(e)) || []).length, vY = (t, }), [y]); return Yi(() => l && v({ newMarkdown: a - }), [l]), Yi(R_t(a), [a]), Yi(() => { + }), [l]), Yi(A_t(a), [a]), Yi(() => { h && (d.action(a), f(!1)); }, [h]), { set(O, S) { S && b(S); let C = O, T = []; - S != null && S.state && ([C, T] = vY(O, S.view)), o(C), setTimeout(() => { + S != null && S.state && ([C, T] = pY(O, S.view)), o(C), setTimeout(() => { try { v({ newMarkdown: C, @@ -48204,7 +48204,7 @@ const L_t = (t, e) => ((t == null ? void 0 : t.match(e)) || []).length, vY = (t, f(!0); }, refresh() { - const [O, S] = vY(window.myst_editor.text, window.myst_editor.main_editor); + const [O, S] = pY(window.myst_editor.text, window.myst_editor.main_editor); v({ newMarkdown: O, force: !0, @@ -48220,25 +48220,31 @@ const L_t = (t, e) => ((t == null ? void 0 : t.match(e)) || []).length, vY = (t, u(!0); }, copy() { - M_t(w(window.myst_editor.text, {}, []).map((O) => O.html).join(` + L_t(w(window.myst_editor.text, {}, []).map((O) => O.html).join(` `)); }, lineMap: g }; -}, wL = 20, N_t = (t, e) => ht.updateListener.of((r) => { - const n = r.startState.doc.lineAt(r.startState.selection.main.head).number, i = r.state.doc.lineAt(r.state.selection.main.head).number, s = r.selectionSet && (n !== i || n === 1), a = r.transactions.some((h) => h.effects.some((f) => f.is(TN))), o = r.geometryChanged && !r.viewportChanged; - if (r.docChanged || !s && !a && !o) - return; - const [l, u] = wT(i, t, e.current); - l && Jce({ - view: r.view, - matchingLine: u, - matchingElem: l, - behavior: "smooth", - preview: e.current +}, jce = 20, M_t = 100, D_t = (t, e) => { + let r; + return ht.updateListener.of((n) => { + const i = n.startState.doc.lineAt(n.startState.selection.main.head).number, s = n.state.doc.lineAt(n.state.selection.main.head).number, a = n.selectionSet && (i !== s || i === 1), o = n.transactions.some((h) => h.effects.some((f) => f.is(ON))), l = n.geometryChanged && !n.viewportChanged; + if (n.docChanged || !a && !o && !l) + return; + function u() { + const [h, f] = aie(s, t, e.current); + h && N_t({ + view: n.view, + matchingLine: f, + matchingElem: h, + behavior: "smooth", + preview: e.current + }); + } + clearTimeout(r), r = setTimeout(u, M_t); }); -}); -function Jce({ +}; +function N_t({ view: t, matchingLine: e, matchingElem: r, @@ -48247,100 +48253,33 @@ function Jce({ }) { const s = t.lineBlockAt(t.state.doc.line(e).from), a = i.getBoundingClientRect(), o = t.dom.parentElement; let l = r.getBoundingClientRect(); - const u = s.top + wL, h = l.top + i.scrollTop - u - a.top + o.scrollTop; - n == "smooth" ? $_t(i, h) : i.scrollTo({ + const u = s.top + jce, h = l.top + i.scrollTop - u - a.top + o.scrollTop; + i.scrollTo({ top: h, behavior: n }); } -const I_t = (t, e) => { - let r = !1, n = !1, i; - return ht.domEventHandlers({ - wheel: () => { - clearTimeout(i), n = !0, i = setTimeout(() => { - n = !1; - }, 200); - }, - scroll: (s, a) => { - !n || r || (window.requestAnimationFrame(() => { - const o = a.state.doc.lineAt(a.state.selection.main.head).number, l = a.dom.parentElement.getBoundingClientRect(), u = a.lineBlockAtHeight(l.top - a.documentTop), h = a.state.doc.lineAt(u.from).number + 1, f = a.lineBlockAtHeight(l.bottom - a.documentTop), d = a.state.doc.lineAt(f.from).number, p = o < h || o > d ? h : o, [g, m] = wT(p, t, e.current); - g && Jce({ - view: a, - matchingLine: m, - matchingElem: g, - preview: e.current - }), r = !1; - }), r = !0); - } +function I_t(t, e, r) { + const n = t.target.getAttribute("data-line-id"); + if (!n) + return; + const i = xT(e.current, n), s = window.myst_editor.main_editor.state.doc.line(i), a = window.myst_editor.main_editor.lineBlockAt(s.from), o = t.target.getBoundingClientRect(), l = r.current.getBoundingClientRect(), u = window.myst_editor.main_editor.dom.parentElement, h = o.top, f = a.top - h + l.top + jce; + u.scrollTo({ + top: f, + behavior: "smooth" }); -}; -function P_t(t, e, r) { - let n = !1, i = !1, s; - t.onwheel = () => { - clearTimeout(s), i = !0, s = setTimeout(() => { - i = !1; - }, 200); - }, t.onscroll = () => { - !i || n || (window.requestAnimationFrame(() => { - const a = r.state.doc.lineAt(r.state.selection.main.head).number, o = r.dom.parentElement.getBoundingClientRect(), l = r.lineBlockAtHeight(o.top - r.documentTop), u = r.state.doc.lineAt(l.from).number + 1, h = r.lineBlockAtHeight(o.bottom - o.top + r.dom.parentElement.scrollTop), f = r.state.doc.lineAt(h.from).number - 2; - if (a >= u && a <= f) { - const [d, p] = wT(a, e, t); - if (d) { - const g = t.getBoundingClientRect(), m = r.lineBlockAt(r.state.doc.line(p).from), y = d.getBoundingClientRect().top, b = m.top - y + g.top + wL; - r.dom.parentElement.scrollTo({ - top: b, - behavior: "auto" - }); - } - } else { - let d; - const p = t.getElementsByTagName("*"); - for (const v of p) { - if (v.classList.contains("cm-previewFocus") || !v.hasAttribute("data-line-id")) - continue; - if (v.getBoundingClientRect().top - t.getBoundingClientRect().top >= 0) { - d = v; - break; - } - } - const g = d.getAttribute("data-line-id"); - let m = OT(e.current, g); - m && r.dom.parentElement.scrollTo({ - top: r.lineBlockAt(r.state.doc.line(m).from).top + wL, - behavior: "auto" - }); - } - n = !1; - }), n = !0); - }; -} -const aO = /* @__PURE__ */ new Map(); -function $_t(t, e) { - const r = t.scrollTop, n = e - r; - let i; - aO.has(t.className) && cancelAnimationFrame(aO.get(t.className)); - function s(o) { - const l = o - i; - let u = r + n * l * 0.01; - if (u = e > r ? Math.min(u, e) : Math.max(u, e), t.scrollTo({ - top: u - }), u != e) { - const h = requestAnimationFrame((f) => { - s(f); - }); - aO.set(t.className, h); - } + function d() { + window.myst_editor.main_editor.dispatch({ + selection: Ve.create([Ve.range(s.to, s.to)]) + }), window.myst_editor.main_editor.focus(), u.removeEventListener("scrollend", d); } - const a = requestAnimationFrame((o) => { - i || (i = o), s(o); - }); - aO.set(t.className, a); + u.addEventListener("scrollend", d); } -const B_t = (t, e) => ht.updateListener.of((r) => { - const n = r.startState.doc.lineAt(r.startState.selection.main.head).number, i = r.state.doc.lineAt(r.state.selection.main.head).number, s = r.selectionSet && (n !== i || n === 1), a = r.transactions.some((u) => u.effects.some((h) => h.is(TN))), o = r.geometryChanged && !r.viewportChanged; +const P_t = (t, e) => ht.updateListener.of((r) => { + const n = r.startState.doc.lineAt(r.startState.selection.main.head).number, i = r.state.doc.lineAt(r.state.selection.main.head).number, s = r.selectionSet && (n !== i || n === 1), a = r.transactions.some((u) => u.effects.some((h) => h.is(ON))), o = r.geometryChanged && !r.viewportChanged; if (r.docChanged || !s && !a && !o) return; - const [l] = wT(i, t, e.current); + const [l] = aie(i, t, e.current); if (l) { const u = e.current.getBoundingClientRect(); let h = l.getBoundingClientRect(); @@ -48349,33 +48288,33 @@ const B_t = (t, e) => ht.updateListener.of((r) => { const d = h.left - u.left - 12.5 - (l.tagName === "LI" || l.parentElement.tagName === "LI" ? 17 : 0); f.style.left = `${d}px`, f.style.height = `${h.height}px`; } -}), eue = VS({ +}), Kce = zS({ commentTokens: { block: { open: "" } } -}), tue = new or(), rue = new or(), F_t = Ate.configure({ - props: [P0.add((t) => !t.is("Block") || t.is("FencedCode") || t.is("Document") || OL(t) != null ? void 0 : (e, r) => ({ +}), Jce = new or(), eue = new or(), $_t = Cte.configure({ + props: [P0.add((t) => !t.is("Block") || t.is("FencedCode") || t.is("Document") || bL(t) != null ? void 0 : (e, r) => ({ from: r.doc.lineAt(e.from).to, to: e.to - })), tue.add(OL), rue.add((t) => t.is("FencedCode")), $1.add({ + })), Jce.add(bL), eue.add((t) => t.is("FencedCode")), $1.add({ Document: () => null }), $h.add({ - Document: eue + Document: Kce })] }); -function OL(t) { +function bL(t) { let e = /^(?:ATX|Setext)Heading(\d)$/.exec(t.name); return e ? +e[1] : void 0; } -const nue = qS.of((t, e, r) => { +const tue = US.of((t, e, r) => { for (let n = Jr(t).resolveInner(r, -1); n && !(n.from < e); n = n.parent) { - let i = n.type.prop(tue); + let i = n.type.prop(Jce); if (i == null) continue; - let s = z_t(n, i); + let s = B_t(n, i); if (s > r) return { from: r, @@ -48384,22 +48323,22 @@ const nue = qS.of((t, e, r) => { } return null; }); -function z_t(t, e) { +function B_t(t, e) { let r = t; for (; ; ) { let n = r.nextSibling, i; - if (!n || (i = OL(n.type)) != null && i <= e) + if (!n || (i = bL(n.type)) != null && i <= e) break; r = n; } return r.to; } -const V_t = ["```{image", "```{figure", "```{list-table}"], iue = qS.of((t, e, r) => { +const F_t = ["```{image", "```{figure", "```{list-table}"], rue = US.of((t, e, r) => { for (let n = Jr(t).resolveInner(r, -1); n && !(n.from < e); n = n.parent) { - if (n.type.prop(rue) == !1) + if (n.type.prop(eue) == !1) continue; const s = t.doc.lineAt(n.from), a = t.doc.line(t.doc.lineAt(n.to).number - 1).to; - for (const o of V_t) + for (const o of F_t) if (s.text.includes(o)) return; return { @@ -48408,7 +48347,7 @@ const V_t = ["```{image", "```{figure", "```{list-table}"], iue = qS.of((t, e, r }; } return null; -}), U_t = new no(eue, F_t, [nue, iue], "markdown"), q_t = j3e.filter((t, e) => e != 3), Y_t = K3e.filter((t, e) => e != 1), Q_t = (t) => { +}), z_t = new no(Kce, $_t, [tue, rue], "markdown"), V_t = X3e.filter((t, e) => e != 3), U_t = Z3e.filter((t, e) => e != 1), q_t = (t) => { const { from: e } = t.state.selection.main, r = t.state.doc.lineAt(e); @@ -48416,7 +48355,7 @@ const V_t = ["```{image", "```{figure", "```{list-table}"], iue = qS.of((t, e, r line: r.number - 1, ch: e - r.from }; -}, W_t = (t, e) => { +}, Y_t = (t, e) => { const { line: r, ch: n @@ -48428,24 +48367,24 @@ const V_t = ["```{image", "```{figure", "```{list-table}"], iue = qS.of((t, e, r }, scrollIntoView: !0 }); -}, ik = (t) => t.transactions.some((e) => e.effects.some((r) => r.is(Nc) || r.is(Bf))); +}, nk = (t) => t.transactions.some((e) => e.effects.some((r) => r.is(Nc) || r.is(Bf))); class Jh { constructor(e = []) { this.important = [dr.lineSeparator.of(` `)], this.base = e, this.extensions = Jh.defaultPlugins(); } static minimalSetup() { - return new Jh(Y_t); + return new Jh(U_t); } static basicSetup() { - return new Jh(q_t); + return new Jh(V_t); } static defaultPlugins() { - return [ht.lineWrapping, K6e({ - base: U_t - }), EK(), nue, iue, Cu.of([v5e, { + return [ht.lineWrapping, Z6e({ + base: z_t + }), SK(), tue, rue, Cu.of([g5e, { key: "Mod-Z", - run: M5 + run: R5 }])]; } disable(e) { @@ -48458,10 +48397,10 @@ class Jh { return this.extensions.push(ht.updateListener.of(e)), this; } useSpellcheck(e) { - return this.extensions.push(c_e(e)), this; + return this.extensions.push(o_e(e)), this; } useHighlighter(e) { - return this.extensions.push(KM(e)), this; + return this.extensions.push(XM(e)), this; } useCompartment(e, r) { return this.extensions.push(e.of(r)), this; @@ -48469,7 +48408,7 @@ class Jh { useComments({ ycomments: e }) { - return this.important.push(Z_e(e)), this; + return this.important.push(H_e(e)), this; } useRemoveSelectionOnBlur() { return this.base.push(ht.domEventHandlers({ @@ -48484,25 +48423,25 @@ class Jh { })), this; } showCommentLineAuthors(e) { - return this.important.push(A_e(e)), this; + return this.important.push(E_e(e)), this; } readonly() { return this.extensions.push(ht.editable.of(!1), dr.readOnly.of(!0)), this; } useDefaultHistory() { - return this.base.push(uM()), this; + return this.base.push(oM()), this; } useSyncPreviewWithCursor({ lineMap: e, preview: r }) { - return this.base.push([N_t(e, r), I_t(e, r)]), this; + return this.base.push(D_t(e, r)), this; } useCursorIndicator({ lineMap: e, preview: r }) { - return this.base.push(B_t(e, r)), this; + return this.base.push(P_t(e, r)), this; } useCollaboration({ ytext: e, @@ -48510,12 +48449,12 @@ class Jh { undoManager: n, editorRef: i }) { - return this.extensions.push(aCe(e, r.awareness, { + return this.extensions.push(iCe(e, r.awareness, { undoManager: n })), n && (n.on("stack-item-added", (s) => { - s.stackItem.meta.set("cursor-location", Q_t(i.current)); + s.stackItem.meta.set("cursor-location", q_t(i.current)); }), n.on("stack-item-popped", (s) => { - W_t(i.current, s.stackItem.meta.get("cursor-location")); + Y_t(i.current, s.stackItem.meta.get("cursor-location")); }), this.extensions.push(Cu.of([{ key: "Mod-z", run: () => n.undo(), @@ -48534,11 +48473,11 @@ class Jh { ycomments: e, editorMountpoint: r }) { - return this.base.push(ht.updateListener.of((n) => N_e(n, e, r))), this; + return this.base.push(ht.updateListener.of((n) => M_e(n, e, r))), this; } useFixFoldingScroll(e) { return this.base.push(dr.transactionFilter.of((r) => (r.effects.some((n) => n.is(Nc) || n.is(Bf)) && (e.current = window.scrollY), r)), ht.updateListener.of((r) => { - !ik(r) || e.current == null || (window.scrollTo({ + !nk(r) || e.current == null || (window.scrollTo({ top: e.current }), e.current = null); })), this; @@ -48559,14 +48498,14 @@ class Jh { } return e; }), ht.updateListener.of((e) => { - !ik(e) || e.view.focus(); + !nk(e) || e.view.focus(); })), this; } create() { return [...this.important, ...this.base, ...this.extensions]; } } -function G_t(t, e = 0) { +function Q_t(t, e = 0) { let { state: r } = t, n = [], i = 0; @@ -48578,7 +48517,7 @@ function G_t(t, e = 0) { effects: n }); } -const H_t = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNSIgaGVpZ2h0PSIyMCIgdmlld0JveD0iMCAyIDIwIDEyIiBmaWxsPSJub25lIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik02LjM4NDk2IDUuMDkxNzRDNS45MDUwNyA1LjA5MTc0IDUuNTE0NjUgNS40ODIxNiA1LjUxNDY1IDUuOTYyMDVDNS41MTQ2NSA2LjE4OTc5IDUuNjA0MTIgNi40MTc1NCA1Ljc2Njc5IDYuNTgwMjFDNS45Mjk0NyA2Ljc0Mjg5IDYuMTQ5MDggNi44MzIzNiA2LjM4NDk2IDYuODMyMzZDNi42MjA4NCA2LjgzMjM2IDYuODQwNDUgNi43NDI4OSA3LjAwMzEzIDYuNTgwMjFDNy4xNjU4IDYuNDE3NTQgNy4yNTUyNyA2LjE5NzkzIDcuMjU1MjcgNS45NjIwNUM3LjI1NTI3IDUuNDgyMTYgNi44NjQ4NSA1LjA5MTc0IDYuMzg0OTYgNS4wOTE3NFoiIGZpbGw9IiMzMzJEMzciLz4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik04Ljk5NjI5IDUuMDkxNzRDOC41MTY0IDUuMDkxNzQgOC4xMjU5OCA1LjQ4MjE2IDguMTI1OTggNS45NjIwNUM4LjEyNTk4IDYuMTg5NzkgOC4yMTU0NSA2LjQxNzU0IDguMzc4MTIgNi41ODAyMUM4LjU0MDggNi43NDI4OSA4Ljc2MDQxIDYuODMyMzYgOC45OTYyOSA2LjgzMjM2QzkuMjMyMTcgNi44MzIzNiA5LjQ1MTc4IDYuNzQyODkgOS42MTQ0NSA2LjU4MDIxQzkuNzc3MTMgNi40MTc1NCA5Ljg2NjYgNi4xOTc5MyA5Ljg2NjYgNS45NjIwNUM5Ljg2NjYgNS40ODIxNiA5LjQ3NjE4IDUuMDkxNzQgOC45OTYyOSA1LjA5MTc0WiIgZmlsbD0iIzMzMkQzNyIvPgo8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTExLjYwNjYgNS4wOTE3NEMxMS4xMjY3IDUuMDkxNzQgMTAuNzM2MyA1LjQ4MjE2IDEwLjczNjMgNS45NjIwNUMxMC43MzYzIDYuMTg5NzkgMTAuODI1OCA2LjQxNzU0IDEwLjk4ODUgNi41ODAyMUMxMS4xNTExIDYuNzQyODkgMTEuMzcwOCA2LjgzMjM2IDExLjYwNjYgNi44MzIzNkMxMS44NDI1IDYuODMyMzYgMTIuMDYyMSA2Ljc0Mjg5IDEyLjIyNDggNi41ODAyMUMxMi4zODc1IDYuNDE3NTQgMTIuNDc3IDYuMTk3OTMgMTIuNDc3IDUuOTYyMDVDMTIuNDc3IDUuNDgyMTYgMTIuMDg2NSA1LjA5MTc0IDExLjYwNjYgNS4wOTE3NFoiIGZpbGw9IiMzMzJEMzciLz4KPHBhdGggZD0iTTE3LjEyOTggMTEuMDM3NVYwLjg2MjE4M0gwLjg2MjMwNVYxMC44NzQ4TDUuMTE2MjYgMTAuOTE1NUw5LjA1MyAxNC44NTIyTDEyLjg4NCAxMS4wMjk0TDE3LjEyOTggMTEuMDM3NVoiIHN0cm9rZT0iIzMzMkQzNyIgc3Ryb2tlLXdpZHRoPSIxLjUiLz4KPC9zdmc+", X_t = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjUiIGhlaWdodD0iMjYiIHZpZXdCb3g9IjAgMCAyNiAyMSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICAgIDxwYXRoIGQ9Ik03LjcxMzg3IDYuMTQyOTRWMTIuNTcxNSIgc3Ryb2tlPSIjRTc0NzNDIiBzdHJva2Utd2lkdGg9IjEuNzUiLz4KICAgIDxwYXRoIGQ9Ik0xMC4yODUyIDYuMTQyODhWMTIuNTcxNSIgc3Ryb2tlPSIjRTc0NzNDIiBzdHJva2Utd2lkdGg9IjEuNzUiLz4KICAgIDxwYXRoIGQ9Ik02LjQyODcxIDFIMTEuNTcxNiIgc3Ryb2tlPSIjRTc0NzNDIiBzdHJva2Utd2lkdGg9IjEuNzUiLz4KICAgIDxwYXRoIGQ9Ik0wIDIuMjg1NjRIMTgiIHN0cm9rZT0iI0U3NDczQyIgc3Ryb2tlLXdpZHRoPSIxLjc1Ii8+CiAgICA8cGF0aCBkPSJNMS45Mjg3MSAyLjI4NTY0TDMuODU3MjggMTguMzU3MUgxNC4xNDNMMTYuMDcxNiAyLjI4NTY0IiBzdHJva2U9IiNFNzQ3M0MiIHN0cm9rZS13aWR0aD0iMS43NSIvPgo8L3N2Zz4K", Z_t = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMTIiIHZpZXdCb3g9IjAgMCAyNSAyMSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICAgIDxwYXRoIGQ9Ik0xNC40NzI3IDcuMTE3MTlMOC43MTUxOCAxMi44NzQ3TDUuNTE3NTggOS42NzcwNyIgc3Ryb2tlPSIjMzMyRDM3IiBzdHJva2Utd2lkdGg9IjEuNzUiLz4KICAgIDxwYXRoIGQ9Ik0xMCAxOUMxNC45NzA2IDE5IDE5IDE0Ljk3MDYgMTkgMTBDMTkgNS4wMjk0NCAxNC45NzA2IDEgMTAgMUM1LjAyOTQ0IDEgMSA1LjAyOTQ0IDEgMTBDMSAxNC45NzA2IDUuMDI5NDQgMTkgMTAgMTlaIiBzdHJva2U9IiMzMzJEMzciIHN0cm9rZS13aWR0aD0iMS43NSIvPgo8L3N2Zz4K", j_t = er.div` +const W_t = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNSIgaGVpZ2h0PSIyMCIgdmlld0JveD0iMCAyIDIwIDEyIiBmaWxsPSJub25lIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik02LjM4NDk2IDUuMDkxNzRDNS45MDUwNyA1LjA5MTc0IDUuNTE0NjUgNS40ODIxNiA1LjUxNDY1IDUuOTYyMDVDNS41MTQ2NSA2LjE4OTc5IDUuNjA0MTIgNi40MTc1NCA1Ljc2Njc5IDYuNTgwMjFDNS45Mjk0NyA2Ljc0Mjg5IDYuMTQ5MDggNi44MzIzNiA2LjM4NDk2IDYuODMyMzZDNi42MjA4NCA2LjgzMjM2IDYuODQwNDUgNi43NDI4OSA3LjAwMzEzIDYuNTgwMjFDNy4xNjU4IDYuNDE3NTQgNy4yNTUyNyA2LjE5NzkzIDcuMjU1MjcgNS45NjIwNUM3LjI1NTI3IDUuNDgyMTYgNi44NjQ4NSA1LjA5MTc0IDYuMzg0OTYgNS4wOTE3NFoiIGZpbGw9IiMzMzJEMzciLz4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik04Ljk5NjI5IDUuMDkxNzRDOC41MTY0IDUuMDkxNzQgOC4xMjU5OCA1LjQ4MjE2IDguMTI1OTggNS45NjIwNUM4LjEyNTk4IDYuMTg5NzkgOC4yMTU0NSA2LjQxNzU0IDguMzc4MTIgNi41ODAyMUM4LjU0MDggNi43NDI4OSA4Ljc2MDQxIDYuODMyMzYgOC45OTYyOSA2LjgzMjM2QzkuMjMyMTcgNi44MzIzNiA5LjQ1MTc4IDYuNzQyODkgOS42MTQ0NSA2LjU4MDIxQzkuNzc3MTMgNi40MTc1NCA5Ljg2NjYgNi4xOTc5MyA5Ljg2NjYgNS45NjIwNUM5Ljg2NjYgNS40ODIxNiA5LjQ3NjE4IDUuMDkxNzQgOC45OTYyOSA1LjA5MTc0WiIgZmlsbD0iIzMzMkQzNyIvPgo8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTExLjYwNjYgNS4wOTE3NEMxMS4xMjY3IDUuMDkxNzQgMTAuNzM2MyA1LjQ4MjE2IDEwLjczNjMgNS45NjIwNUMxMC43MzYzIDYuMTg5NzkgMTAuODI1OCA2LjQxNzU0IDEwLjk4ODUgNi41ODAyMUMxMS4xNTExIDYuNzQyODkgMTEuMzcwOCA2LjgzMjM2IDExLjYwNjYgNi44MzIzNkMxMS44NDI1IDYuODMyMzYgMTIuMDYyMSA2Ljc0Mjg5IDEyLjIyNDggNi41ODAyMUMxMi4zODc1IDYuNDE3NTQgMTIuNDc3IDYuMTk3OTMgMTIuNDc3IDUuOTYyMDVDMTIuNDc3IDUuNDgyMTYgMTIuMDg2NSA1LjA5MTc0IDExLjYwNjYgNS4wOTE3NFoiIGZpbGw9IiMzMzJEMzciLz4KPHBhdGggZD0iTTE3LjEyOTggMTEuMDM3NVYwLjg2MjE4M0gwLjg2MjMwNVYxMC44NzQ4TDUuMTE2MjYgMTAuOTE1NUw5LjA1MyAxNC44NTIyTDEyLjg4NCAxMS4wMjk0TDE3LjEyOTggMTEuMDM3NVoiIHN0cm9rZT0iIzMzMkQzNyIgc3Ryb2tlLXdpZHRoPSIxLjUiLz4KPC9zdmc+", G_t = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjUiIGhlaWdodD0iMjYiIHZpZXdCb3g9IjAgMCAyNiAyMSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICAgIDxwYXRoIGQ9Ik03LjcxMzg3IDYuMTQyOTRWMTIuNTcxNSIgc3Ryb2tlPSIjRTc0NzNDIiBzdHJva2Utd2lkdGg9IjEuNzUiLz4KICAgIDxwYXRoIGQ9Ik0xMC4yODUyIDYuMTQyODhWMTIuNTcxNSIgc3Ryb2tlPSIjRTc0NzNDIiBzdHJva2Utd2lkdGg9IjEuNzUiLz4KICAgIDxwYXRoIGQ9Ik02LjQyODcxIDFIMTEuNTcxNiIgc3Ryb2tlPSIjRTc0NzNDIiBzdHJva2Utd2lkdGg9IjEuNzUiLz4KICAgIDxwYXRoIGQ9Ik0wIDIuMjg1NjRIMTgiIHN0cm9rZT0iI0U3NDczQyIgc3Ryb2tlLXdpZHRoPSIxLjc1Ii8+CiAgICA8cGF0aCBkPSJNMS45Mjg3MSAyLjI4NTY0TDMuODU3MjggMTguMzU3MUgxNC4xNDNMMTYuMDcxNiAyLjI4NTY0IiBzdHJva2U9IiNFNzQ3M0MiIHN0cm9rZS13aWR0aD0iMS43NSIvPgo8L3N2Zz4K", H_t = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMTIiIHZpZXdCb3g9IjAgMCAyNSAyMSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICAgIDxwYXRoIGQ9Ik0xNC40NzI3IDcuMTE3MTlMOC43MTUxOCAxMi44NzQ3TDUuNTE3NTggOS42NzcwNyIgc3Ryb2tlPSIjMzMyRDM3IiBzdHJva2Utd2lkdGg9IjEuNzUiLz4KICAgIDxwYXRoIGQ9Ik0xMCAxOUMxNC45NzA2IDE5IDE5IDE0Ljk3MDYgMTkgMTBDMTkgNS4wMjk0NCAxNC45NzA2IDEgMTAgMUM1LjAyOTQ0IDEgMSA1LjAyOTQ0IDEgMTBDMSAxNC45NzA2IDUuMDI5NDQgMTkgMTAgMTlaIiBzdHJva2U9IiMzMzJEMzciIHN0cm9rZS13aWR0aD0iMS43NSIvPgo8L3N2Zz4K", X_t = er.div` position: absolute; top: ${(t) => t.top + 20}px; left: ${(t) => t.left + 19}px; @@ -48638,13 +48577,13 @@ const H_t = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvM position: absolute; transform: translateX(-30px); } -`, K_t = ({ +`, Z_t = ({ ycomments: t, commentId: e, collaboration: r }) => { let n = so(null); - const i = Nn(() => t.lineAuthors(e), [e]), s = m5((l) => l.heightChanged && l.view.requestMeasure({ + const i = Nn(() => t.lineAuthors(e), [e]), s = g5((l) => l.heightChanged && l.view.requestMeasure({ read: (u) => t.updateHeight(e, u.dom.clientHeight) }), [e]), a = t.parentLineHeight(e) + 3.8; Yi(() => { @@ -48675,35 +48614,35 @@ const H_t = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvM }, o.current.ondragend = () => { t.draggedComment = null, t.display().update(); }); - }, [o.current, t.commentWithPopup]), Bt` <${j_t} + }, [o.current, t.commentWithPopup]), Bt` <${X_t} left=${t.marginLeft()} top=${t.display().offset(e)} fade=${t.draggedComment == e} >
${t.commentWithPopup == e && Bt` - <${J_t} + <${j_t} left=${t.marginLeft()} shift=${a} onMouseLeave=${() => { t.commentWithPopup = null, t.updateMainCodeMirror(); }} > - + - <${yY} icon=${X_t} bgOnHover=${"#e7473c15"} text="DELETE" onClick=${() => t.deleteComment(e)} /> - ${r.resolvingCommentsEnabled && Bt`<${yY} icon=${Z_t} bgOnHover=${"#AAE17320"} text="RESOLVE" onClick=${() => t.resolveComment(e)} />`} + <${gY} icon=${G_t} bgOnHover=${"#e7473c15"} text="DELETE" onClick=${() => t.deleteComment(e)} /> + ${r.resolvingCommentsEnabled && Bt`<${gY} icon=${H_t} bgOnHover=${"#AAE17320"} text="RESOLVE" onClick=${() => t.resolveComment(e)} />`} `}
`; -}, J_t = er.div` +}, j_t = er.div` width: fit-content; height: 25px; border-radius: 2px; @@ -48731,7 +48670,7 @@ const H_t = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvM svg { box-sizing: content-box; } -`, eAt = er.div` +`, K_t = er.div` display: inline-flex; cursor: pointer; padding-left: 5px; @@ -48762,35 +48701,35 @@ const H_t = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvM margin-left: 5px; box-sizing: content-box; } -`, yY = ({ +`, gY = ({ icon: t, onClick: e, text: r, bgOnHover: n }) => Bt` - <${eAt} bgOnHover=${n} onClick=${e}> + <${K_t} bgOnHover=${n} onClick=${e}> ${r} - `, tAt = ({ + `, J_t = ({ ycomments: t, collaboration: e }) => { let r = ({ commentId: a - }) => Bt`<${K_t} ...${{ + }) => Bt`<${Z_t} ...${{ key: a, commentId: a, ycomments: t, collaboration: e }} />`, n = () => t.iterComments().map(r), [i, s] = Rn(n()); return t.display().onUpdate(() => s(n())), Bt` ${i} `; -}, rAt = ` +}, eAt = ` -`, nAt = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTkiIGhlaWdodD0iMjEiIHZpZXdCb3g9IjAgMCAxOSAyMSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTIuMDg0MjIgMTYuMDU4M0wxLjMxNzM4IDE5LjI2MTNMNC42NjQ2IDE4LjQ5NDVNMi4wODQyMiAxNi4wNTgzTDE0LjYzMzQgMkwxNy4zMTc0IDQuNDg0NDFMNC42NjQ2IDE4LjQ5NDVNMi4wODQyMiAxNi4wNTgzTDQuNjY0NiAxOC40OTQ1IiBzdHJva2U9IndoaXRlIiBzdHJva2Utd2lkdGg9IjEuNzUiLz4KPC9zdmc+Cg==", sue = er.div` +`, tAt = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTkiIGhlaWdodD0iMjEiIHZpZXdCb3g9IjAgMCAxOSAyMSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTIuMDg0MjIgMTYuMDU4M0wxLjMxNzM4IDE5LjI2MTNMNC42NjQ2IDE4LjQ5NDVNMi4wODQyMiAxNi4wNTgzTDE0LjYzMzQgMkwxNy4zMTc0IDQuNDg0NDFMNC42NjQ2IDE4LjQ5NDVNMi4wODQyMiAxNi4wNTgzTDQuNjY0NiAxOC40OTQ1IiBzdHJva2U9IndoaXRlIiBzdHJva2Utd2lkdGg9IjEuNzUiLz4KPC9zdmc+Cg==", nue = er.div` border-radius: var(--border-radius); background: var(--gray-200); font-family: monospace; @@ -48820,7 +48759,7 @@ const H_t = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvM position: absolute; display: inline; background-color: var(--gray-200); - background-image: url("data:image/svg+xml;charset=UTF-8,${(t) => encodeURIComponent(rAt)}"); + background-image: url("data:image/svg+xml;charset=UTF-8,${(t) => encodeURIComponent(eAt)}"); background-repeat: no-repeat; } @@ -48931,7 +48870,7 @@ const H_t = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvM .cm-gutterElement span[title="Unfold line"] { user-select: none; } -`, iAt = (t, e) => { +`, rAt = (t, e) => { t.dispatch({ changes: { from: 0, @@ -48939,7 +48878,7 @@ const H_t = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvM insert: e } }); -}, sAt = ({ +}, nAt = ({ text: t, id: e, root: r, @@ -48974,7 +48913,7 @@ const H_t = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvM const p = dr.create({ root: r, doc: a.opts.enabled ? a.ytext.toString() : t.get(), - extensions: Jh.basicSetup().useHighlighter(s).useCompartment(Mre, KM([])).useSpellcheck(i).if(a.opts.enabled, (b) => b.useCollaboration({ + extensions: Jh.basicSetup().useHighlighter(s).useCompartment(Are, XM([])).useSpellcheck(i).if(a.opts.enabled, (b) => b.useCollaboration({ ...a, editorRef: h })).if(a.opts.commentsEnabled, (b) => b.useComments({ @@ -48982,7 +48921,7 @@ const H_t = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvM }).useSuggestionPopup({ ycomments: a.ycomments, editorMountpoint: f - })).addUpdateListener((b) => (b.docChanged || ik(b)) && t.set(g.state.doc.toString(), b)).useFixFoldingScroll(d).useMoveCursorAfterFold().useCursorIndicator({ + })).addUpdateListener((b) => (b.docChanged || nk(b)) && t.set(g.state.doc.toString(), b)).useFixFoldingScroll(d).useMoveCursorAfterFold().useCursorIndicator({ lineMap: t.lineMap, preview: o }).if(l, (b) => b.useSyncPreviewWithCursor({ @@ -48993,18 +48932,18 @@ const H_t = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvM state: p, parent: f.current }); - return h.current = g, window.myst_editor.main_editor = g, u != null && G_t(g, u), l && P_t(o.current, t.lineMap, g), (v = a.ycomments) == null || v.registerCodeMirror(g), (y = a.provider) == null || y.watchCollabolators(a.setUsers), t.onSync((b) => iAt(g, b)), () => { + return h.current = g, window.myst_editor.main_editor = g, u != null && Q_t(g, u), (v = a.ycomments) == null || v.registerCodeMirror(g), (y = a.provider) == null || y.watchCollabolators(a.setUsers), t.onSync((b) => rAt(g, b)), () => { a.opts.enabled && (a.provider.disconnect(), a.ydoc.destroy()), g.destroy(); }; }, [a.ready]), Bt` - <${sue} className="myst-main-editor" ref=${f} $mode=${n} id="${e}-editor"> - ${a.opts.commentsEnabled && !a.error && Bt`<${tAt} ycomments=${a.ycomments} collaboration=${a.opts} />`} - ${a.opts.commentsEnabled && Bt`<${I_e} style="display: none" className="myst-add-suggestion" title="Suggest Changes"> - edit + <${nue} className="myst-main-editor" ref=${f} $mode=${n} id="${e}-editor"> + ${a.opts.commentsEnabled && !a.error && Bt`<${J_t} ycomments=${a.ycomments} collaboration=${a.opts} />`} + ${a.opts.commentsEnabled && Bt`<${D_e} style="display: none" className="myst-add-suggestion" title="Suggest Changes"> + edit `} `; -}, aue = er.div` +}, iue = er.div` background-color: white; padding: 20px; padding-left: 40px; @@ -49413,10 +49352,10 @@ const H_t = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvM } } `; -aue.defaultProps = { +iue.defaultProps = { className: "myst-preview" }; -const aAt = er.div` +const iAt = er.div` position: absolute; width: 5px; background-color: var(--blue-200); @@ -49432,7 +49371,7 @@ class Jn { function g0(t, e, r, n, i, s) { if (t == n) return []; - let a = CN(t, e, r, n, i, s), o = EN(t, e + a, r, n, i + a, s); + let a = kN(t, e, r, n, i, s), o = SN(t, e + a, r, n, i + a, s); e += a, r -= o, i += a, s -= o; let l = r - e, u = s - i; if (!l || !u) @@ -49454,31 +49393,31 @@ function g0(t, e, r, n, i, s) { } if (l == 1 || u == 1) return [new Jn(e, r, i, s)]; - let h = cue(t, e, r, n, i, s); + let h = oue(t, e, r, n, i, s); if (h) { let [f, d, p] = h; return g0(t, e, f, n, i, d).concat(g0(t, f + p, r, n, d + p, s)); } - return oAt(t, e, r, n, i, s); + return sAt(t, e, r, n, i, s); } let Sv = 1e9; -function oAt(t, e, r, n, i, s) { +function sAt(t, e, r, n, i, s) { let a = r - e, o = s - i; if (Sv < 1e9 && Math.min(a, o) > Sv * 16) - return Math.min(a, o) > Sv * 64 ? [new Jn(e, r, i, s)] : bY(t, e, r, n, i, s); + return Math.min(a, o) > Sv * 64 ? [new Jn(e, r, i, s)] : mY(t, e, r, n, i, s); let l = Math.ceil((a + o) / 2); - h_.reset(l), f_.reset(l); - let u = (p, g) => t.charCodeAt(e + p) == n.charCodeAt(i + g), h = (p, g) => t.charCodeAt(r - p - 1) == n.charCodeAt(s - g - 1), f = (a - o) % 2 != 0 ? f_ : null, d = f ? null : h_; + c_.reset(l), u_.reset(l); + let u = (p, g) => t.charCodeAt(e + p) == n.charCodeAt(i + g), h = (p, g) => t.charCodeAt(r - p - 1) == n.charCodeAt(s - g - 1), f = (a - o) % 2 != 0 ? u_ : null, d = f ? null : c_; for (let p = 0; p < l; p++) { if (p > Sv) - return bY(t, e, r, n, i, s); - let g = h_.advance(p, a, o, l, f, !1, u) || f_.advance(p, a, o, l, d, !0, h); + return mY(t, e, r, n, i, s); + let g = c_.advance(p, a, o, l, f, !1, u) || u_.advance(p, a, o, l, d, !0, h); if (g) - return lAt(t, e, r, e + g[0], n, i, s, i + g[1]); + return aAt(t, e, r, e + g[0], n, i, s, i + g[1]); } return [new Jn(e, r, i, s)]; } -class oue { +class sue { constructor() { this.vec = []; } @@ -49514,21 +49453,21 @@ class oue { return null; } } -const h_ = /* @__PURE__ */ new oue(), f_ = /* @__PURE__ */ new oue(); -function lAt(t, e, r, n, i, s, a, o) { +const c_ = /* @__PURE__ */ new sue(), u_ = /* @__PURE__ */ new sue(); +function aAt(t, e, r, n, i, s, a, o) { let l = !1; return !l1(t, n) && ++n == r && (l = !0), !l1(i, o) && ++o == a && (l = !0), l ? [new Jn(e, r, s, a)] : g0(t, e, n, i, s, o).concat(g0(t, n, r, i, o, a)); } -function lue(t, e) { +function aue(t, e) { let r = 1, n = Math.min(t, e); for (; r < n; ) r = r << 1; return r; } -function CN(t, e, r, n, i, s) { +function kN(t, e, r, n, i, s) { if (e == r || e == s || t.charCodeAt(e) != n.charCodeAt(i)) return 0; - let a = lue(r - e, s - i); + let a = aue(r - e, s - i); for (let o = e, l = i; ; ) { let u = o + a, h = l + a; if (u > r || h > s || t.slice(o, u) != n.slice(l, h)) { @@ -49542,10 +49481,10 @@ function CN(t, e, r, n, i, s) { } } } -function EN(t, e, r, n, i, s) { +function SN(t, e, r, n, i, s) { if (e == r || i == s || t.charCodeAt(r - 1) != n.charCodeAt(s - 1)) return 0; - let a = lue(r - e, s - i); + let a = aue(r - e, s - i); for (let o = r, l = s; ; ) { let u = o - a, h = l - a; if (u < e || h < i || t.slice(u, o) != n.slice(h, l)) { @@ -49559,7 +49498,7 @@ function EN(t, e, r, n, i, s) { } } } -function kL(t, e, r, n, i, s, a, o) { +function xL(t, e, r, n, i, s, a, o) { let l = n.slice(i, s), u = null; for (; ; ) { if (u || a < o) @@ -49571,7 +49510,7 @@ function kL(t, e, r, n, i, s, a, o) { break; let d = t.slice(h, f), p = -1; for (; (p = l.indexOf(d, p + 1)) != -1; ) { - let g = CN(t, f, r, n, i + p + d.length, s), m = EN(t, e, h, n, i, i + p), v = d.length + g + m; + let g = kN(t, f, r, n, i + p + d.length, s), m = SN(t, e, h, n, i, i + p), v = d.length + g + m; (!u || u[2] < v) && (u = [h - m, i + p - m, v]); } h = f; @@ -49581,39 +49520,39 @@ function kL(t, e, r, n, i, s, a, o) { a = a >> 1; } } -function cue(t, e, r, n, i, s) { +function oue(t, e, r, n, i, s) { let a = r - e, o = s - i; if (a < o) { - let l = cue(n, i, s, t, e, r); + let l = oue(n, i, s, t, e, r); return l && [l[1], l[0], l[2]]; } - return a < 4 || o * 2 < a ? null : kL(t, e, r, n, i, s, Math.floor(a / 4), -1); + return a < 4 || o * 2 < a ? null : xL(t, e, r, n, i, s, Math.floor(a / 4), -1); } -function bY(t, e, r, n, i, s) { +function mY(t, e, r, n, i, s) { let a = r - e, o = s - i, l; if (a < o) { - let d = kL(n, i, s, t, e, r, Math.floor(a / 6), 50); + let d = xL(n, i, s, t, e, r, Math.floor(a / 6), 50); l = d && [d[1], d[0], d[2]]; } else - l = kL(t, e, r, n, i, s, Math.floor(o / 6), 50); + l = xL(t, e, r, n, i, s, Math.floor(o / 6), 50); if (!l) return [new Jn(e, r, i, s)]; let [u, h, f] = l; return g0(t, e, u, n, i, h).concat(g0(t, u + f, r, n, h + f, s)); } -function uue(t, e) { +function lue(t, e) { for (let r = 1; r < t.length; r++) { let n = t[r - 1], i = t[r]; n.toA > i.fromA - e && n.toB > i.fromB - e && (t[r - 1] = new Jn(n.fromA, i.toA, n.fromB, i.toB), t.splice(r--, 1)); } } -function cAt(t, e, r) { +function oAt(t, e, r) { for (; ; ) { - uue(r, 1); + lue(r, 1); let n = !1; for (let i = 0; i < r.length; i++) { let s = r[i], a, o; - (a = CN(t, s.fromA, s.toA, e, s.fromB, s.toB)) && (s = r[i] = new Jn(s.fromA + a, s.toA, s.fromB + a, s.toB)), (o = EN(t, s.fromA, s.toA, e, s.fromB, s.toB)) && (s = r[i] = new Jn(s.fromA, s.toA - o, s.fromB, s.toB - o)); + (a = kN(t, s.fromA, s.toA, e, s.fromB, s.toB)) && (s = r[i] = new Jn(s.fromA + a, s.toA, s.fromB + a, s.toB)), (o = SN(t, s.fromA, s.toA, e, s.fromB, s.toB)) && (s = r[i] = new Jn(s.fromA, s.toA - o, s.fromB, s.toB - o)); let l = s.toA - s.fromA, u = s.toB - s.fromB; if (l && u) continue; @@ -49628,63 +49567,63 @@ function cAt(t, e, r) { } return r; } -function uAt(t, e, r) { +function lAt(t, e, r) { for (let n = 0, i = 0; i < t.length; i++) { let s = t[i], a = s.toA - s.fromA, o = s.toB - s.fromB; if (a && o || a > 3 || o > 3) { - let l = i == t.length - 1 ? e.length : t[i + 1].fromA, u = s.fromA - n, h = l - s.toA, f = wY(e, s.fromA, Math.min(u, 5)), d = xY(e, s.toA, Math.min(h, 5)), p = s.fromA - f, g = d - s.toA; + let l = i == t.length - 1 ? e.length : t[i + 1].fromA, u = s.fromA - n, h = l - s.toA, f = yY(e, s.fromA, Math.min(u, 5)), d = vY(e, s.toA, Math.min(h, 5)), p = s.fromA - f, g = d - s.toA; if (!a || !o) { let m = Math.max(a, o), [v, y, b] = a ? [e, s.fromA, s.toA] : [r, s.fromB, s.toB], w, O; - p && g ? (m > p && e.slice(f, s.fromA) == v.slice(b - p, b) ? (s = t[i] = new Jn(f, f + a, s.fromB - p, s.toB - p), f = s.fromA, d = xY(e, s.toA, Math.min(l - s.toA, 5))) : m > g && e.slice(s.toA, d) == v.slice(y, y + g) && (s = t[i] = new Jn(d - a, d, s.fromB + g, s.toB + g), d = s.toA, f = wY(e, s.fromA, Math.min(s.fromA - n, 5))), p = s.fromA - f, g = d - s.toA) : !p && !g && (O = s.fromA - (w = hAt(e, s.fromA, u))) && e.slice(w, s.fromA) == v.slice(b - O, b) && (s = t[i] = new Jn(w, w + a, s.fromB - O, s.toB - O)); + p && g ? (m > p && e.slice(f, s.fromA) == v.slice(b - p, b) ? (s = t[i] = new Jn(f, f + a, s.fromB - p, s.toB - p), f = s.fromA, d = vY(e, s.toA, Math.min(l - s.toA, 5))) : m > g && e.slice(s.toA, d) == v.slice(y, y + g) && (s = t[i] = new Jn(d - a, d, s.fromB + g, s.toB + g), d = s.toA, f = yY(e, s.fromA, Math.min(s.fromA - n, 5))), p = s.fromA - f, g = d - s.toA) : !p && !g && (O = s.fromA - (w = cAt(e, s.fromA, u))) && e.slice(w, s.fromA) == v.slice(b - O, b) && (s = t[i] = new Jn(w, w + a, s.fromB - O, s.toB - O)); } (p || g) && (s = t[i] = new Jn(s.fromA - p, s.toA + g, s.fromB - p, s.toB + g)), n = s.toA; } } - return uue(t, 3), t; + return lue(t, 3), t; } let Gd; try { Gd = /* @__PURE__ */ new RegExp("[\\p{Alphabetic}\\p{Number}]", "u"); } catch { } -function hue(t) { +function cue(t) { return t > 48 && t < 58 || t > 64 && t < 91 || t > 96 && t < 123; } -function fue(t, e) { +function uue(t, e) { if (e == t.length) return 0; let r = t.charCodeAt(e); - return r < 192 ? hue(r) ? 1 : 0 : Gd ? !pue(r) || e == t.length - 1 ? Gd.test(String.fromCharCode(r)) ? 1 : 0 : Gd.test(t.slice(e, e + 2)) ? 2 : 0 : 0; + return r < 192 ? cue(r) ? 1 : 0 : Gd ? !fue(r) || e == t.length - 1 ? Gd.test(String.fromCharCode(r)) ? 1 : 0 : Gd.test(t.slice(e, e + 2)) ? 2 : 0 : 0; } -function due(t, e) { +function hue(t, e) { if (!e) return 0; let r = t.charCodeAt(e - 1); - return r < 192 ? hue(r) ? 1 : 0 : Gd ? !gue(r) || e == 1 ? Gd.test(String.fromCharCode(r)) ? 1 : 0 : Gd.test(t.slice(e - 2, e)) ? 2 : 0 : 0; + return r < 192 ? cue(r) ? 1 : 0 : Gd ? !due(r) || e == 1 ? Gd.test(String.fromCharCode(r)) ? 1 : 0 : Gd.test(t.slice(e - 2, e)) ? 2 : 0 : 0; } -function xY(t, e, r) { - if (e == t.length || !due(t, e)) +function vY(t, e, r) { + if (e == t.length || !hue(t, e)) return e; for (let n = e, i = e + r; ; ) { - let s = fue(t, n); + let s = uue(t, n); if (!s) return n; if (n += s, n > i) return e; } } -function wY(t, e, r) { - if (!e || !fue(t, e)) +function yY(t, e, r) { + if (!e || !uue(t, e)) return e; for (let n = e, i = e - r; ; ) { - let s = due(t, n); + let s = hue(t, n); if (!s) return n; if (n -= s, n < i) return e; } } -function hAt(t, e, r) { +function cAt(t, e, r) { for (let n = e, i = e - r; ; ) { let s = n ? t.charCodeAt(n - 1) : 10; if (s == 10) @@ -49693,26 +49632,26 @@ function hAt(t, e, r) { return e; } } -const pue = (t) => t >= 55296 && t <= 56319, gue = (t) => t >= 56320 && t <= 57343; +const fue = (t) => t >= 55296 && t <= 56319, due = (t) => t >= 56320 && t <= 57343; function l1(t, e) { - return !e || e == t.length || !pue(t.charCodeAt(e - 1)) || !gue(t.charCodeAt(e)); + return !e || e == t.length || !fue(t.charCodeAt(e - 1)) || !due(t.charCodeAt(e)); } -function fAt(t, e, r) { +function uAt(t, e, r) { var n; - return Sv = ((n = r == null ? void 0 : r.scanLimit) !== null && n !== void 0 ? n : 1e9) >> 1, cAt(t, e, g0(t, 0, t.length, e, 0, e.length)); + return Sv = ((n = r == null ? void 0 : r.scanLimit) !== null && n !== void 0 ? n : 1e9) >> 1, oAt(t, e, g0(t, 0, t.length, e, 0, e.length)); } -function mue(t, e, r) { - return uAt(fAt(t, e, r), t, e); +function pue(t, e, r) { + return lAt(uAt(t, e, r), t, e); } const dc = /* @__PURE__ */ _t.define({ combine: (t) => t[0] -}), SL = /* @__PURE__ */ Zt.define(), c1 = /* @__PURE__ */ $n.define({ +}), wL = /* @__PURE__ */ Zt.define(), c1 = /* @__PURE__ */ $n.define({ create(t) { return null; }, update(t, e) { for (let r of e.effects) - r.is(SL) && (t = r.value); + r.is(wL) && (t = r.value); return t; } }); @@ -49730,39 +49669,39 @@ class og { return Math.max(this.fromB, this.toB - 1); } static build(e, r, n) { - return vue(mue(e.toString(), r.toString(), n), e, r, 0, 0); + return gue(pue(e.toString(), r.toString(), n), e, r, 0, 0); } static updateA(e, r, n, i, s) { - return CY(TY(e, i, !0, n.length), e, r, n, s); + return kY(OY(e, i, !0, n.length), e, r, n, s); } static updateB(e, r, n, i, s) { - return CY(TY(e, i, !1, r.length), e, r, n, s); + return kY(OY(e, i, !1, r.length), e, r, n, s); } } -function OY(t, e, r, n) { +function bY(t, e, r, n) { let i = r.lineAt(t), s = n.lineAt(e); return i.to == t && s.to == e && t < r.length && e < n.length ? [t + 1, e + 1] : [i.from, s.from]; } -function kY(t, e, r, n) { +function xY(t, e, r, n) { let i = r.lineAt(t), s = n.lineAt(e); return i.from == t && s.from == e ? [t, e] : [i.to + 1, s.to + 1]; } -function vue(t, e, r, n, i) { +function gue(t, e, r, n, i) { let s = []; for (let a = 0; a < t.length; a++) { - let o = t[a], [l, u] = OY(o.fromA + n, o.fromB + i, e, r), [h, f] = kY(o.toA + n, o.toB + i, e, r), d = [o.offset(-l + n, -u + i)]; + let o = t[a], [l, u] = bY(o.fromA + n, o.fromB + i, e, r), [h, f] = xY(o.toA + n, o.toB + i, e, r), d = [o.offset(-l + n, -u + i)]; for (; a < t.length - 1; ) { - let p = t[a + 1], [g, m] = OY(p.fromA + n, p.fromB + i, e, r); + let p = t[a + 1], [g, m] = bY(p.fromA + n, p.fromB + i, e, r); if (g > h + 1 && m > f + 1) break; - d.push(p.offset(-l + n, -u + i)), [h, f] = kY(p.toA + n, p.toB + i, e, r), a++; + d.push(p.offset(-l + n, -u + i)), [h, f] = xY(p.toA + n, p.toB + i, e, r), a++; } s.push(new og(d, l, Math.max(l, h), u, Math.max(u, f))); } return s; } -const oO = 1e3; -function SY(t, e, r, n) { +const aO = 1e3; +function wY(t, e, r, n) { let i = 0, s = t.length; for (; ; ) { if (i == s) { @@ -49780,11 +49719,11 @@ function SY(t, e, r, n) { return n ? [o.fromA, o.fromB] : [o.toA, o.toB]; } } -function TY(t, e, r, n) { +function OY(t, e, r, n) { let i = []; return e.iterChangedRanges((s, a, o, l) => { let u = 0, h = r ? e.length : n, f = 0, d = r ? n : e.length; - s > oO && ([u, f] = SY(t, s - oO, r, !0)), a < e.length - oO && ([h, d] = SY(t, a + oO, r, !1)); + s > aO && ([u, f] = wY(t, s - aO, r, !0)), a < e.length - aO && ([h, d] = wY(t, a + aO, r, !1)); let p = l - o - (a - s), g, [m, v] = r ? [p, 0] : [0, p]; i.length && (g = i[i.length - 1]).toA >= u ? i[i.length - 1] = { fromA: g.fromA, @@ -49796,7 +49735,7 @@ function TY(t, e, r, n) { } : i.push({ fromA: u, toA: h, fromB: f, toB: d, diffA: m, diffB: v }); }), i; } -function CY(t, e, r, n, i) { +function kY(t, e, r, n, i) { if (!t.length) return e; let s = 0, a = 0, o = 0, l = []; @@ -49810,7 +49749,7 @@ function CY(t, e, r, n, i) { break; s++; } - for (let g of vue(mue(r.sliceString(h, f), n.sliceString(d, p), i), r, n, h, d)) + for (let g of gue(pue(r.sliceString(h, f), n.sliceString(d, p), i), r, n, h, d)) l.push(g); a += u.diffA, o += u.diffB; } @@ -49818,47 +49757,47 @@ function CY(t, e, r, n, i) { l.push(e[s++].offset(a, o)); return l; } -const yue = /* @__PURE__ */ on.fromClass(class { +const mue = /* @__PURE__ */ on.fromClass(class { constructor(t) { - ({ deco: this.deco, gutter: this.gutter } = AY(t)); + ({ deco: this.deco, gutter: this.gutter } = CY(t)); } update(t) { - (t.docChanged || t.viewportChanged || dAt(t.startState, t.state) || pAt(t.startState, t.state)) && ({ deco: this.deco, gutter: this.gutter } = AY(t.view)); + (t.docChanged || t.viewportChanged || hAt(t.startState, t.state) || fAt(t.startState, t.state)) && ({ deco: this.deco, gutter: this.gutter } = CY(t.view)); } }, { decorations: (t) => t.deco -}), lO = /* @__PURE__ */ zl.low(/* @__PURE__ */ zS({ +}), oO = /* @__PURE__ */ zl.low(/* @__PURE__ */ FS({ class: "cm-changeGutter", markers: (t) => { var e; - return ((e = t.plugin(yue)) === null || e === void 0 ? void 0 : e.gutter) || Er.empty; + return ((e = t.plugin(mue)) === null || e === void 0 ? void 0 : e.gutter) || Er.empty; } })); -function dAt(t, e) { +function hAt(t, e) { return t.field(c1, !1) != e.field(c1, !1); } -function pAt(t, e) { +function fAt(t, e) { return t.facet(dc) != e.facet(dc); } -const EY = /* @__PURE__ */ Et.line({ class: "cm-changedLine" }), gAt = /* @__PURE__ */ Et.mark({ class: "cm-changedText" }), mAt = /* @__PURE__ */ Et.mark({ tagName: "ins", class: "cm-insertedLine" }), vAt = /* @__PURE__ */ Et.mark({ tagName: "del", class: "cm-deletedLine" }), _Y = /* @__PURE__ */ new class extends Uo { +const SY = /* @__PURE__ */ Et.line({ class: "cm-changedLine" }), dAt = /* @__PURE__ */ Et.mark({ class: "cm-changedText" }), pAt = /* @__PURE__ */ Et.mark({ tagName: "ins", class: "cm-insertedLine" }), gAt = /* @__PURE__ */ Et.mark({ tagName: "del", class: "cm-deletedLine" }), TY = /* @__PURE__ */ new class extends Uo { constructor() { super(...arguments), this.elementClass = "cm-changedLineGutter"; } }(); -function yAt(t, e, r, n, i, s) { +function mAt(t, e, r, n, i, s) { let a = r ? t.fromA : t.fromB, o = r ? t.toA : t.toB, l = 0; if (a != o) { - i.add(a, a, EY), i.add(a, o, r ? vAt : mAt), s && s.add(a, a, _Y); + i.add(a, a, SY), i.add(a, o, r ? gAt : pAt), s && s.add(a, a, TY); for (let u = e.iterRange(a, o - 1), h = a; !u.next().done; ) { if (u.lineBreak) { - h++, i.add(h, h, EY), s && s.add(h, h, _Y); + h++, i.add(h, h, SY), s && s.add(h, h, TY); continue; } let f = h + u.value.length; if (n) for (; l < t.changes.length; ) { let d = t.changes[l], p = a + (r ? d.fromA : d.fromB), g = a + (r ? d.toA : d.toB), m = Math.max(h, p), v = Math.min(f, g); - if (m < v && i.add(m, v, gAt), g < f) + if (m < v && i.add(m, v, dAt), g < f) l++; else break; @@ -49867,16 +49806,16 @@ function yAt(t, e, r, n, i, s) { } } } -function AY(t) { +function CY(t) { let e = t.state.field(c1), { side: r, highlightChanges: n, markGutter: i } = t.state.facet(dc), s = r == "a", a = new Hi(), o = i ? new Hi() : null, { from: l, to: u } = t.viewport; for (let h of e) { if ((s ? h.fromA : h.fromB) >= u) break; - (s ? h.toA : h.toB) > l && yAt(h, t.state.doc, s, n, a, o); + (s ? h.toA : h.toB) > l && mAt(h, t.state.doc, s, n, a, o); } return { deco: a.finish(), gutter: o && o.finish() }; } -class cO extends za { +class lO extends za { constructor(e) { super(), this.height = e; } @@ -49897,30 +49836,30 @@ class cO extends za { return !1; } } -const sk = /* @__PURE__ */ Zt.define({ +const ik = /* @__PURE__ */ Zt.define({ map: (t, e) => t.map(e) }), Tv = /* @__PURE__ */ $n.define({ create: () => Et.none, update: (t, e) => { for (let r of e.effects) - if (r.is(sk)) + if (r.is(ik)) return r.value; return t.map(e.changes); }, provide: (t) => ht.decorations.from(t) -}), uO = 0.01; -function bAt(t, e, r) { +}), cO = 0.01; +function vAt(t, e, r) { let n = new Hi(), i = new Hi(), s = t.state.field(Tv).iter(), a = e.state.field(Tv).iter(), o = 0, l = 0, u = 0, h = 0; for (let g = 0; ; g++) { let m = g < r.length ? r[g] : null; if (o < (m ? m.fromA : t.state.doc.length)) { let v = t.lineBlockAt(o).top + u, y = e.lineBlockAt(l).top + h, b = v - y; - b < -uO ? (u -= b, n.add(o, o, Et.widget({ - widget: new cO(-b), + b < -cO ? (u -= b, n.add(o, o, Et.widget({ + widget: new lO(-b), block: !0, side: -1 - }))) : b > uO && (h += b, i.add(l, l, Et.widget({ - widget: new cO(b), + }))) : b > cO && (h += b, i.add(l, l, Et.widget({ + widget: new lO(b), block: !0, side: -1 }))); @@ -49937,22 +49876,22 @@ function bAt(t, e, r) { for (; a.value; ) h -= a.value.spec.widget.height, a.next(); let f = t.contentHeight + u - (e.contentHeight + h); - f < uO ? n.add(t.state.doc.length, t.state.doc.length, Et.widget({ - widget: new cO(-f), + f < cO ? n.add(t.state.doc.length, t.state.doc.length, Et.widget({ + widget: new lO(-f), block: !0, side: 1 - })) : f > uO && i.add(e.state.doc.length, e.state.doc.length, Et.widget({ - widget: new cO(f), + })) : f > cO && i.add(e.state.doc.length, e.state.doc.length, Et.widget({ + widget: new lO(f), block: !0, side: 1 })); let d = n.finish(), p = i.finish(); - Er.eq([d], [t.state.field(Tv)]) || t.dispatch({ effects: sk.of(d) }), Er.eq([p], [e.state.field(Tv)]) || e.dispatch({ effects: sk.of(p) }); + Er.eq([d], [t.state.field(Tv)]) || t.dispatch({ effects: ik.of(d) }), Er.eq([p], [e.state.field(Tv)]) || e.dispatch({ effects: ik.of(p) }); } -const TL = /* @__PURE__ */ Zt.define({ +const OL = /* @__PURE__ */ Zt.define({ map: (t, e) => e.mapPos(t) }); -class xAt extends za { +class yAt extends za { constructor(e) { super(), this.lines = e; } @@ -49963,9 +49902,9 @@ class xAt extends za { let r = document.createElement("div"); return r.className = "cm-collapsedLines", r.textContent = "\u299A " + e.state.phrase("$ unchanged lines", this.lines) + " \u299A", r.addEventListener("click", (n) => { let i = e.posAtDOM(n.target); - e.dispatch({ effects: TL.of(i) }); + e.dispatch({ effects: OL.of(i) }); let { side: s, sibling: a } = e.state.facet(dc); - a && a().dispatch({ effects: TL.of(wAt(i, e.state.field(c1), s == "a")) }); + a && a().dispatch({ effects: OL.of(bAt(i, e.state.field(c1), s == "a")) }); }), r; } ignoreEvent(e) { @@ -49975,7 +49914,7 @@ class xAt extends za { return 27; } } -function wAt(t, e, r) { +function bAt(t, e, r) { let n = 0, i = 0; for (let s = 0; ; s++) { let a = s < e.length ? e[s] : null; @@ -49984,27 +49923,27 @@ function wAt(t, e, r) { [n, i] = r ? [a.toA, a.toB] : [a.toB, a.toA]; } } -const OAt = /* @__PURE__ */ $n.define({ +const xAt = /* @__PURE__ */ $n.define({ create(t) { return Et.none; }, update(t, e) { t = t.map(e.changes); for (let r of e.effects) - r.is(TL) && (t = t.update({ filter: (n) => n != r.value })); + r.is(OL) && (t = t.update({ filter: (n) => n != r.value })); return t; }, provide: (t) => ht.decorations.from(t) }); -function LY({ margin: t = 3, minSize: e = 4 }) { - return OAt.init((r) => kAt(r, t, e)); +function EY({ margin: t = 3, minSize: e = 4 }) { + return xAt.init((r) => wAt(r, t, e)); } -function kAt(t, e, r) { +function wAt(t, e, r) { let n = new Hi(), i = t.facet(dc).side == "a", s = t.field(c1), a = 1; for (let o = 0; ; o++) { let l = o < s.length ? s[o] : null, u = o ? a + e : 1, h = l ? t.doc.lineAt(i ? l.fromA : l.fromB).number - 1 - e : t.doc.lines, f = h - u + 1; if (f >= r && n.add(t.doc.line(u).from, t.doc.line(h).to, Et.replace({ - widget: new xAt(f), + widget: new yAt(f), block: !0 })), !l) break; @@ -50012,7 +49951,7 @@ function kAt(t, e, r) { } return n.finish(); } -const SAt = /* @__PURE__ */ ht.styleModule.of(/* @__PURE__ */ new Pu({ +const OAt = /* @__PURE__ */ ht.styleModule.of(/* @__PURE__ */ new Pu({ ".cm-mergeView": { overflowY: "auto" }, @@ -50042,7 +49981,7 @@ const SAt = /* @__PURE__ */ ht.styleModule.of(/* @__PURE__ */ new Pu({ font: "inherit", cursor: "pointer" } -})), TAt = /* @__PURE__ */ ht.baseTheme({ +})), kAt = /* @__PURE__ */ ht.baseTheme({ ".cm-mergeView & .cm-scroller, .cm-mergeView &": { height: "auto !important", overflowY: "visible !important" @@ -50101,17 +50040,17 @@ const SAt = /* @__PURE__ */ ht.styleModule.of(/* @__PURE__ */ new Pu({ "&dark.cm-merge-a .cm-changedLineGutter, &dark .cm-deletedLineGutter": { background: "#fa9" }, "&light.cm-merge-b .cm-changedLineGutter": { background: "#2b2" }, "&dark.cm-merge-b .cm-changedLineGutter": { background: "#8f8" } -}), RY = /* @__PURE__ */ new I0(), hO = /* @__PURE__ */ new I0(); -class CAt { +}), _Y = /* @__PURE__ */ new I0(), uO = /* @__PURE__ */ new I0(); +class SAt { constructor(e) { this.revertDOM = null, this.revertToA = !1, this.revertToLeft = !1, this.measuring = -1, this.diffConf = e.diffConfig; let r = [ - zl.low(yue), - TAt, - SAt, + zl.low(mue), + kAt, + OAt, Tv, ht.updateListener.of((f) => { - this.measuring < 0 && (f.heightChanged || f.viewportChanged) && !f.transactions.some((d) => d.effects.some((p) => p.is(sk))) && this.measure(); + this.measuring < 0 && (f.heightChanged || f.viewportChanged) && !f.transactions.some((d) => d.effects.some((p) => p.is(ik))) && this.measure(); }) ], n = [dc.of({ side: "a", @@ -50119,14 +50058,14 @@ class CAt { highlightChanges: e.highlightChanges !== !1, markGutter: e.gutter !== !1 })]; - e.gutter !== !1 && n.push(lO); + e.gutter !== !1 && n.push(oO); let i = dr.create({ doc: e.a.doc, selection: e.a.selection, extensions: [ e.a.extensions || [], ht.editorAttributes.of({ class: "cm-merge-a" }), - hO.of(n), + uO.of(n), r ] }), s = [dc.of({ @@ -50135,21 +50074,21 @@ class CAt { highlightChanges: e.highlightChanges !== !1, markGutter: e.gutter !== !1 })]; - e.gutter !== !1 && s.push(lO); + e.gutter !== !1 && s.push(oO); let a = dr.create({ doc: e.b.doc, selection: e.b.selection, extensions: [ e.b.extensions || [], ht.editorAttributes.of({ class: "cm-merge-b" }), - hO.of(s), + uO.of(s), r ] }); this.chunks = og.build(i.doc, a.doc, this.diffConf); let o = [ c1.init(() => this.chunks), - RY.of(e.collapseUnchanged ? LY(e.collapseUnchanged) : []) + _Y.of(e.collapseUnchanged ? EY(e.collapseUnchanged) : []) ]; i = i.update({ effects: Zt.appendConfig.of(o) }).state, a = a.update({ effects: Zt.appendConfig.of(o) }).state, this.dom = document.createElement("div"), this.dom.className = "cm-mergeView", this.editorDOM = this.dom.appendChild(document.createElement("div")), this.editorDOM.className = "cm-mergeViewEditors"; let l = e.orientation || "a-b", u = document.createElement("div"); @@ -50170,9 +50109,9 @@ class CAt { dispatch(e, r) { if (e.some((n) => n.docChanged)) { let n = e[e.length - 1], i = e.reduce((a, o) => a.compose(o.changes), ai.empty(e[0].startState.doc.length)); - this.chunks = r == this.a ? og.updateA(this.chunks, n.newDoc, this.b.state.doc, i, this.diffConf) : og.updateB(this.chunks, this.a.state.doc, n.newDoc, i, this.diffConf), r.update([...e, n.state.update({ effects: SL.of(this.chunks) })]); + this.chunks = r == this.a ? og.updateA(this.chunks, n.newDoc, this.b.state.doc, i, this.diffConf) : og.updateB(this.chunks, this.a.state.doc, n.newDoc, i, this.diffConf), r.update([...e, n.state.update({ effects: wL.of(this.chunks) })]); let s = r == this.a ? this.b : this.a; - s.update([s.state.update({ effects: SL.of(this.chunks) })]), this.scheduleMeasure(); + s.update([s.state.update({ effects: wL.of(this.chunks) })]), this.scheduleMeasure(); } else r.update(e); } @@ -50193,16 +50132,16 @@ class CAt { let s = [], a = []; if (r || n) { let o = this.a.state.facet(dc), l = n ? e.gutter !== !1 : o.markGutter, u = r ? e.highlightChanges !== !1 : o.highlightChanges; - s.push(hO.reconfigure([ + s.push(uO.reconfigure([ dc.of({ side: "a", sibling: () => this.b, highlightChanges: u, markGutter: l }), - l ? lO : [] - ])), a.push(hO.reconfigure([ + l ? oO : [] + ])), a.push(uO.reconfigure([ dc.of({ side: "b", sibling: () => this.a, highlightChanges: u, markGutter: l }), - l ? lO : [] + l ? oO : [] ])); } if (i) { - let o = RY.reconfigure(e.collapseUnchanged ? LY(e.collapseUnchanged) : []); + let o = _Y.reconfigure(e.collapseUnchanged ? EY(e.collapseUnchanged) : []); s.push(o), a.push(o); } this.a.dispatch({ effects: s }), this.b.dispatch({ effects: a }); @@ -50221,7 +50160,7 @@ class CAt { } } measure() { - bAt(this.a, this.b, this.chunks), this.revertDOM && this.updateRevertButtons(); + vAt(this.a, this.b, this.chunks), this.revertDOM && this.updateRevertButtons(); } updateRevertButtons() { let e = this.revertDOM, r = e.firstChild, n = this.a.viewport, i = this.b.viewport; @@ -50233,11 +50172,11 @@ class CAt { continue; let o = this.a.lineBlockAt(a.fromA).top + "px"; for (; r && +r.dataset.chunk < s; ) - r = MY(r); + r = AY(r); r && r.dataset.chunk == String(s) ? (r.style.top != o && (r.style.top = o), r = r.nextSibling) : e.insertBefore(this.renderRevertButton(o, s), r); } for (; r; ) - r = MY(r); + r = AY(r); } renderRevertButton(e, r) { let n; @@ -50266,11 +50205,11 @@ class CAt { this.a.destroy(), this.b.destroy(), this.measuring > -1 && (this.dom.ownerDocument.defaultView || window).cancelAnimationFrame(this.measuring), this.dom.remove(); } } -function MY(t) { +function AY(t) { let e = t.nextSibling; return t.remove(), e; } -const EAt = er.div` +const TAt = er.div` display: grid; grid-auto-flow: column; grid-template-rows: max-content; @@ -50278,16 +50217,16 @@ const EAt = er.div` height: 100%; scrollbar-width: thin; overflow-y: auto; -`, DY = er(sue)` +`, LY = er(nue)` overflow-y: visible; display: block; -`, _At = ({ +`, CAt = ({ old: t, current: e, root: r }) => { const n = Jh.basicSetup().readonly().create(); - return new CAt({ + return new SAt({ a: { doc: t, extensions: n @@ -50299,7 +50238,7 @@ const EAt = er.div` orientation: "b-a", root: r }); -}, bue = ({ +}, vue = ({ oldText: t, text: e, root: r @@ -50308,22 +50247,22 @@ const EAt = er.div` return Yi(() => { if (s.current) return !1; - s.current = _At({ + s.current = CAt({ old: t, current: e.get(), root: r }), n.current.appendChild(s.current.b.dom), i.current.appendChild(s.current.a.dom); - }, []), Bt` <${EAt}> - <${DY} ref=${n} /> - <${DY} ref=${i} /> + }, []), Bt` <${TAt}> + <${LY} ref=${n} /> + <${LY} ref=${i} /> `; }; -bue.defaultProps = { +vue.defaultProps = { className: "diff" }; -const AAt = er.div` +const EAt = er.div` display: flex; -`, LAt = er(B0)` +`, _At = er(B0)` color: ${(t) => t.active ? "white" : "var(--icon-color)"}; background-color: ${(t) => t.active ? "var(--icon-main-active)" : "var(--navbar-bg)"}; width: 40px; @@ -50344,15 +50283,15 @@ const AAt = er.div` &:last-child { border-radius: 0 var(--border-radius) var(--border-radius) 0; } -`, RAt = ({ +`, AAt = ({ buttons: t, initialClickedId: e = 2 }) => { const [r, n] = Rn(e); return Yi(() => { t[e].action(); - }, [e]), Bt` <${AAt}> - ${t.map((i, s) => Bt` <${LAt} + }, [e]), Bt` <${EAt}> + ${t.map((i, s) => Bt` <${_At} className="icon radio-icon" type="button" key=${i.id} @@ -50366,7 +50305,7 @@ const AAt = er.div` ${typeof i.icon == "function" ? Bt`<${i.icon} />` : Bt``} `)} `; -}, d_ = 4, xue = er.div` +}, h_ = 4, yue = er.div` min-width: ${(t) => t.n * 35}px; .avatar { @@ -50395,27 +50334,27 @@ const AAt = er.div` background-color: var(--icon-bg); } } -`, wue = ({ +`, bue = ({ login: t, color: e, avatarUrl: r -}) => Bt` `, MAt = ({ +}) => Bt` `, LAt = ({ n: t, usernames: e -}) => Bt` <${xue} title=${e}> +}) => Bt` <${yue} title=${e}> +${t} - `, DAt = ({ + `, RAt = ({ users: t }) => { - const e = t.length <= d_ ? t.length : 3; - return Bt` <${xue} n=${Math.min(t.length, d_)}> - ${e < t.length ? Bt`<${MAt} + const e = t.length <= h_ ? t.length : 3; + return Bt` <${yue} n=${Math.min(t.length, h_)}> + ${e < t.length ? Bt`<${LAt} n=${t.length - e} - usernames=${t.filter((r, n) => n >= d_).map((r) => r.login).join(", ")} + usernames=${t.filter((r, n) => n >= h_).map((r) => r.login).join(", ")} />` : ""} - ${t.slice(0, e).map((r) => Bt`<${wue} ...${r} />`)} + ${t.slice(0, e).map((r) => Bt`<${bue} ...${r} />`)} `; -}, NAt = er.section` +}, MAt = er.section` z-index: 2; display: flex; flex-direction: column; @@ -50430,13 +50369,13 @@ const AAt = er.div` background-color: var(--icon-bg); border: 1px solid var(--icon-border); border-radius: var(--border-radius); -`, IAt = er.h3` +`, DAt = er.h3` color: var(--gray-900); -`, PAt = er.div` +`, NAt = er.div` display: flex; align-items: center; justify-content: space-between; -`, NY = er(B0)` +`, RY = er(B0)` padding: 0 10px; margin-top: 0px; @@ -50444,25 +50383,25 @@ const AAt = er.div` background-color: ${(t) => t.$negative ? "var(--red-500)" : "var(--icon-main-active)"} !important; border: 1px solid ${(t) => t.$negative ? "var(--red-500)" : "var(--icon-main-active)"} !important; } -`, $At = ({ +`, IAt = ({ changeDocumentTemplate: t, selectedTemplate: e, closeModal: r }) => Bt` - <${NAt}> - <${IAt}>Are you sure you want to change the current template? - <${PAt}> - <${NY} type="button" onClick=${() => t(e)}>✓ Yes - <${NY} $negative type="button" onClick=${r}>x Cancel + <${MAt}> + <${DAt}>Are you sure you want to change the current template? + <${NAt}> + <${RY} type="button" onClick=${() => t(e)}>✓ Yes + <${RY} $negative type="button" onClick=${r}>x Cancel - `, BAt = er.div` + `, PAt = er.div` position: absolute; ${(t) => t.$orientation == "left" && Yv` left: 0; `} transform: ${(t) => t.$orientation == "left" ? "translateX(-105%)" : "translate(-65%, 130%)"}; -`, FAt = er.div` +`, $At = er.div` position: relative; background: var(--alert); color: var(--icon-color); @@ -50495,12 +50434,12 @@ const AAt = er.div` `} transform: ${(t) => t.$orientation == "left" ? "translate(50%, -50%)" : "translate(-50%, -100%)"}; } -`, zAt = ({ +`, BAt = ({ tooltipOrientation: t, errorMessage: e -}) => Bt` <${BAt} $orientation=${t}> - <${FAt} $orientation=${t}> ${e} - `, VAt = er.div` +}) => Bt` <${PAt} $orientation=${t}> + <${$At} $orientation=${t}> ${e} + `, FAt = er.div` display: none; margin-left: 5px; margin-right: 5px; @@ -50512,19 +50451,19 @@ const AAt = er.div` background-color: var(--icon-bg); width: 210%; z-index: 20; -`, IY = () => Bt` +`, MY = () => Bt` - `, PY = er(B0)` + `, DY = er(B0)` width: 90%; color: var(--icon-color); border: 1px solid var(--icon-border); padding: 0 10px 0 10px; margin-top: 0px; text-wrap: wrap; -`, UAt = er.div` +`, zAt = er.div` position: relative; &:hover { div { @@ -50532,16 +50471,16 @@ const AAt = er.div` flex-direction: column; } } -`, qAt = er.div` +`, VAt = er.div` display: flex; flex-direction: row-reverse; border: 1px solid var(--gray-900); width: inherit; -`, YAt = er.div` +`, UAt = er.div` position: absolute; width: 100%; padding-top: 5px; -`, QAt = (t) => { +`, qAt = (t) => { const e = ["id", "templatetext"]; for (const r in t) { for (let n of e) @@ -50549,7 +50488,7 @@ const AAt = er.div` t[r].errorMessage && console.error(t[r].errorMessage); } return t; -}, WAt = ({ +}, YAt = ({ text: t, templatelist: e }) => { @@ -50582,36 +50521,36 @@ const AAt = er.div` } return w; }; - return Yi(() => v(e).then(QAt).then(b).then(s), []), d.error ? null : Object.keys(i).length == 0 ? Bt` <${CL} + return Yi(() => v(e).then(qAt).then(b).then(s), []), d.error ? null : Object.keys(i).length == 0 ? Bt` <${kL} type="button" title="Templates" template=${r} onMouseEnter=${() => f(!0)} onMouseLeave=${() => f(!1)} > - <${IY} /> + <${MY} /> ` : Bt` - ${l && Bt`<${$At} + ${l && Bt`<${IAt} selectedTemplate=${a} closeModal=${() => { u(!1), o(!1); }} changeDocumentTemplate=${m} />`} - <${UAt}> - <${CL} className="icon" title="Templates" type="button"><${IY} /> - <${YAt}> - <${VAt}> + <${zAt}> + <${kL} className="icon" title="Templates" type="button"><${MY} /> + <${UAt}> + <${FAt}> ${Object.keys(i).map((w) => Bt` ${i[w].errorMessage ? Bt` - <${qAt}> - <${h === w && zAt} tooltipOrientation="left" errorMessage="${i[w].errorMessage}" /> - <${PY} type="button" onMouseEnter=${() => f(w)} onMouseLeave=${() => f(!1)} + <${VAt}> + <${h === w && BAt} tooltipOrientation="left" errorMessage="${i[w].errorMessage}" /> + <${DY} type="button" onMouseEnter=${() => f(w)} onMouseLeave=${() => f(!1)} >${i[w].id} ` : Bt` - <${PY} + <${DY} type="button" onClick=${() => { u(!0), o(w); @@ -50624,7 +50563,7 @@ const AAt = er.div` `; -}, GAt = (t) => [...t.matchAll(/\[(.+)\]\(([^\s]+)\)/g)].reduce((e, r) => e.replace(r[0], `${r[1]}`), t), HAt = er.div` +}, QAt = (t) => [...t.matchAll(/\[(.+)\]\(([^\s]+)\)/g)].reduce((e, r) => e.replace(r[0], `${r[1]}`), t), WAt = er.div` z-index: 10; position: sticky; top: 0; @@ -50662,7 +50601,7 @@ const AAt = er.div` display: none; } } -`, XAt = er.div` +`, GAt = er.div` font-size: large; white-space: nowrap; margin-left: 10px; @@ -50672,31 +50611,31 @@ const AAt = er.div` a { color: var(--blue-500); } -`, ZAt = er(B0)` +`, HAt = er(B0)` padding: 0px 15px; margin: 5px; pointer-events: none; background-color: var(--alert); border: none; width: fit-content; -`, CL = er(B0)` +`, kL = er(B0)` color: ${(t) => t.active ? "white" : "var(--icon-color)"}; border: ${(t) => t.active ? "1px solid var(--icon-main-active)" : "1px solid var(--icon-border)"}; background-color: ${(t) => t.active ? "var(--icon-main-active)" : "var(--icon-bg)"}; margin: 5px; width: 40px; -`, jAt = () => Bt` +`, XAt = () => Bt` - `, KAt = () => Bt` + `, ZAt = () => Bt` - `, JAt = () => Bt` + `, jAt = () => Bt` - `, e7t = () => Bt` + `, KAt = () => Bt` - `, t7t = () => Bt` + `, JAt = () => Bt` - `, r7t = () => Bt` + `, e7t = () => Bt` - `, n7t = () => Bt` + `, t7t = () => Bt` - `, i7t = () => Bt` + `, r7t = () => Bt` - `, s7t = () => Bt` + `, n7t = () => Bt` - `, a7t = { - fullscreen: jAt, - "copy-html": t7t, - refresh: KAt, - "print-to-pdf": i7t -}, o7t = ({ + `, i7t = { + fullscreen: XAt, + "copy-html": JAt, + refresh: ZAt, + "print-to-pdf": r7t +}, s7t = ({ alert: t, users: e, text: r, @@ -50773,57 +50712,57 @@ const AAt = er.div` collaboration: o, initialMode: l }) => { - const u = Nn(() => Dne.sanitize(GAt(a || ""), [])), h = Nn(() => { + const u = Nn(() => Lne.sanitize(QAt(a || ""), [])), h = Nn(() => { const g = [{ id: "source", tooltip: "Source", action: () => n("Source"), - icon: e7t + icon: KAt }, { id: "preview", tooltip: "Preview", action: () => n("Preview"), - icon: JAt + icon: jAt }, { id: "both", tooltip: "Dual Pane", action: () => n("Both"), - icon: r7t + icon: e7t }, { id: "diff", tooltip: "Diff View", action: () => n("Diff"), - icon: n7t + icon: t7t }]; return o.resolvingCommentsEnabled && g.push({ id: "resolved", tooltip: "Resolved Comments", action: () => n("Resolved"), - icon: s7t + icon: n7t }), g; }, []), f = Nn(() => h.findIndex((g) => g.id[0].toUpperCase() + g.id.slice(1) == l), [h, l]), d = Nn(() => s.map((g) => ({ ...g, - icon: g.icon || a7t[g.id] + icon: g.icon || i7t[g.id] })).filter((g) => g.icon), []), p = Nn(() => s.filter((g) => g.text && g.id !== "template-manager"), []); - return Bt` <${HAt}> + return Bt` <${WAt}>
${d.map((g) => Bt` - <${CL} className="icon" type="button" key=${g.id} title=${g.tooltip} name=${g.id} onClick=${g.action}> + <${kL} className="icon" type="button" key=${g.id} title=${g.tooltip} name=${g.id} onClick=${g.action}> ${typeof g.icon == "function" ? Bt`<${g.icon} />` : Bt``} `)} - ${s.find((g) => g.id === "template-manager") && i && Bt`<${WAt} text=${r} templatelist=${i} />`} + ${s.find((g) => g.id === "template-manager") && i && Bt`<${YAt} text=${r} templatelist=${i} />`}
- ${t && Bt`<${ZAt}> ${t} `} - <${XAt} dangerouslySetInnerHTML=${{ + ${t && Bt`<${HAt}> ${t} `} + <${GAt} dangerouslySetInnerHTML=${{ __html: u }} /> - <${DAt} users=${e} /> + <${RAt} users=${e} /> ${p.map((g) => Bt`<${B0} type="button" onClick=${g.action}>${g.text}`)} - <${RAt} buttons=${h} initialClickedId=${f} /> + <${AAt} buttons=${h} initialClickedId=${f} /> `; }; -Lre.prototype.watchCollabolators = function(t) { +Ere.prototype.watchCollabolators = function(t) { this.awareness.on("change", ({ added: e, removed: r @@ -50839,7 +50778,7 @@ Lre.prototype.watchCollabolators = function(t) { } }); }; -function l7t(t) { +function a7t(t) { if (!t.enabled) return {}; const e = Nn(() => new q1(), []), [r, n] = Rn(!1), [i, s] = Rn(!1), [a, o] = Rn(!1); @@ -50851,11 +50790,11 @@ function l7t(t) { }, []); const l = Nn(() => { var d; - const f = new Lre((d = t.wsUrl) != null ? d : "ws://localhost:4444", t.room, e, { + const f = new Ere((d = t.wsUrl) != null ? d : "ws://localhost:4444", t.room, e, { connect: !0, params: {}, WebSocketPolyfill: WebSocket, - awareness: new Cre(e), + awareness: new kre(e), maxBackoffTime: 2500 }); return f.awareness.setLocalStateField("user", { @@ -50864,7 +50803,7 @@ function l7t(t) { }), f.ws.onerror = () => o(!0), f.on("sync", n), f.on("status", ({ status: p }) => s(p == "connected")), f; - }, []), u = Nn(() => e.getText("codemirror"), []), h = Nn(() => new IM(u, { + }, []), u = Nn(() => e.getText("codemirror"), []), h = Nn(() => new MM(u, { trackedOrigins: /* @__PURE__ */ new Set([l.doc.clientID, null]), ignoreRemoteMapChanges: !0 }), []); @@ -50877,13 +50816,13 @@ function l7t(t) { ready: r && i }; } -function c7t(t, e, r) { +function o7t(t, e, r) { return !t || !e ? null : Nn(() => { const n = new ey(t, e, r); return window.myst_editor.ycomments = n, n; }, []); } -const u7t = er.p` +const l7t = er.p` font-size: 16px; padding: 10px 6px; margin-bottom: 0; @@ -50898,35 +50837,35 @@ const u7t = er.p` & > span { display: ${(t) => t.orphaned ? "none" : "block"}; } -`, h7t = er.div` +`, c7t = er.div` background-color: color-mix(in srgb, ${(t) => t.color}, white); border: 2px solid ${(t) => t.color}; padding-top: 10px; margin-left: -1px; width: calc(100% - 3px); -`, f7t = er.div` +`, u7t = er.div` display: flex; justify-content: space-between; align-items: center; line-height: 22px; padding: 0 6px; -`, d7t = er.h2` +`, h7t = er.h2` font-weight: bold; font-size: 12px; margin: 0; -`, p7t = er.p` +`, f7t = er.p` font-size: 12px; font-weight: 400; line-height: 14px; margin: 0; margin-right: 25px; -`, g7t = er.p` +`, d7t = er.p` margin: 0; margin-top: 3px; font-size: 16px; line-height: 22px; font-weight: 400; -`, $Y = er.div` +`, NY = er.div` display: flex; align-items: center; @@ -50938,17 +50877,17 @@ const u7t = er.p` position: absolute; transform: translateX(calc(-100% - 12px)); } -`, m7t = er.span` +`, p7t = er.span` display: block; background-color: color-mix(in srgb, ${(t) => t.color}, white); margin: 0; padding: 10px 6px; white-space: pre-wrap; -`, v7t = er.span` +`, g7t = er.span` position: absolute; transform: translateX(calc(-100% - 24px)); color: var(--gray-700); -`, y7t = er.span` +`, m7t = er.span` margin-right: 6px; display: block; display: flex; @@ -50959,7 +50898,7 @@ const u7t = er.p` &:hover div { display: flex !important; } -`, b7t = er.div` +`, v7t = er.div` align-items: center; position: absolute; background-color: var(--gray-200); @@ -50974,7 +50913,7 @@ const u7t = er.p` color: var(--red-500); font-weight: 700; } -`, BY = er.button` +`, IY = er.button` background-color: transparent; border: none; display: flex; @@ -50998,7 +50937,7 @@ const u7t = er.p` color: var(--gray-900); } } -`, x7t = () => Bt` +`, y7t = () => Bt` -`, w7t = () => Bt` +`, b7t = () => Bt` @@ -51027,7 +50966,7 @@ const u7t = er.p` -`, O7t = () => Bt` +`, x7t = () => Bt` -`, k7t = new Intl.RelativeTimeFormat("en", { +`, w7t = new Intl.RelativeTimeFormat("en", { style: "long" -}), S7t = ({ +}), O7t = ({ c: t, authors: e, ycomments: r, @@ -51086,38 +51025,38 @@ const u7t = er.p` const u = Nn(() => t.orphaned ? "RESTORE ORPHANED" : t.occupied ? "RESTORE AND MERGE" : "RESTORE", [t]); return Bt`
- <${u7t} orphaned=${t.orphaned}> - <${v7t}>${t.lineNumber} + <${l7t} orphaned=${t.orphaned}> + <${g7t}>${t.lineNumber} ${t.resolvedLine} - <${h7t} className="resolved-comment" color=${e.get(1).color}> - <${f7t}> - <${$Y}> - <${wue} login=${e.get(1).name} color=${e.get(1).color} avatarUrl=${e.get(1).avatar} /> - <${d7t}>${e.get(1).name} + <${c7t} className="resolved-comment" color=${e.get(1).color}> + <${u7t}> + <${NY}> + <${bue} login=${e.get(1).name} color=${e.get(1).color} avatarUrl=${e.get(1).avatar} /> + <${h7t}>${e.get(1).name} - <${$Y}> - <${p7t}>Comment resolved by @${t.resolvedBy.name} ${k7t.format(-i.amount, i.unit)} - <${y7t} className="myst-dropdown-toggle"> - <${x7t} /> - <${b7t}> - <${BY} className="myst-restore-btn" onClick=${() => r.restoreComment(t)}> - <${O7t} /> + <${NY}> + <${f7t}>Comment resolved by @${t.resolvedBy.name} ${w7t.format(-i.amount, i.unit)} + <${m7t} className="myst-dropdown-toggle"> + <${y7t} /> + <${v7t}> + <${IY} className="myst-restore-btn" onClick=${() => r.restoreComment(t)}> + <${x7t} />

${u}

- <${BY} className="myst-delete-btn" onClick=${() => r.resolver().delete(t.commentId)}> - <${w7t} /> + <${IY} className="myst-delete-btn" onClick=${() => r.resolver().delete(t.commentId)}> + <${b7t} />

DELETE

- <${g7t}> ${o.map((h) => Bt` <${m7t} color=${h.author.color}>${h.text} `)} + <${d7t}> ${o.map((h) => Bt` <${p7t} color=${h.author.color}>${h.text} `)}
`; -}, T7t = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNSIgaGVpZ2h0PSIyMCIgdmlld0JveD0iMCAyIDIwIDEyIiBmaWxsPSJub25lIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik02LjM4NDk2IDUuMDkxNzRDNS45MDUwNyA1LjA5MTc0IDUuNTE0NjUgNS40ODIxNiA1LjUxNDY1IDUuOTYyMDVDNS41MTQ2NSA2LjE4OTc5IDUuNjA0MTIgNi40MTc1NCA1Ljc2Njc5IDYuNTgwMjFDNS45Mjk0NyA2Ljc0Mjg5IDYuMTQ5MDggNi44MzIzNiA2LjM4NDk2IDYuODMyMzZDNi42MjA4NCA2LjgzMjM2IDYuODQwNDUgNi43NDI4OSA3LjAwMzEzIDYuNTgwMjFDNy4xNjU4IDYuNDE3NTQgNy4yNTUyNyA2LjE5NzkzIDcuMjU1MjcgNS45NjIwNUM3LjI1NTI3IDUuNDgyMTYgNi44NjQ4NSA1LjA5MTc0IDYuMzg0OTYgNS4wOTE3NFoiIGZpbGw9IiMzMzJEMzciLz4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik04Ljk5NjI5IDUuMDkxNzRDOC41MTY0IDUuMDkxNzQgOC4xMjU5OCA1LjQ4MjE2IDguMTI1OTggNS45NjIwNUM4LjEyNTk4IDYuMTg5NzkgOC4yMTU0NSA2LjQxNzU0IDguMzc4MTIgNi41ODAyMUM4LjU0MDggNi43NDI4OSA4Ljc2MDQxIDYuODMyMzYgOC45OTYyOSA2LjgzMjM2QzkuMjMyMTcgNi44MzIzNiA5LjQ1MTc4IDYuNzQyODkgOS42MTQ0NSA2LjU4MDIxQzkuNzc3MTMgNi40MTc1NCA5Ljg2NjYgNi4xOTc5MyA5Ljg2NjYgNS45NjIwNUM5Ljg2NjYgNS40ODIxNiA5LjQ3NjE4IDUuMDkxNzQgOC45OTYyOSA1LjA5MTc0WiIgZmlsbD0iIzMzMkQzNyIvPgo8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTExLjYwNjYgNS4wOTE3NEMxMS4xMjY3IDUuMDkxNzQgMTAuNzM2MyA1LjQ4MjE2IDEwLjczNjMgNS45NjIwNUMxMC43MzYzIDYuMTg5NzkgMTAuODI1OCA2LjQxNzU0IDEwLjk4ODUgNi41ODAyMUMxMS4xNTExIDYuNzQyODkgMTEuMzcwOCA2LjgzMjM2IDExLjYwNjYgNi44MzIzNkMxMS44NDI1IDYuODMyMzYgMTIuMDYyMSA2Ljc0Mjg5IDEyLjIyNDggNi41ODAyMUMxMi4zODc1IDYuNDE3NTQgMTIuNDc3IDYuMTk3OTMgMTIuNDc3IDUuOTYyMDVDMTIuNDc3IDUuNDgyMTYgMTIuMDg2NSA1LjA5MTc0IDExLjYwNjYgNS4wOTE3NFoiIGZpbGw9IiMzMzJEMzciLz4KPHBhdGggZD0iTTE3LjEyOTggMTEuMDM3NVYwLjg2MjE4M0gwLjg2MjMwNVYxMC44NzQ4TDUuMTE2MjYgMTAuOTE1NUw5LjA1MyAxNC44NTIyTDEyLjg4NCAxMS4wMjk0TDE3LjEyOTggMTEuMDM3NVoiIHN0cm9rZT0iIzMzMkQzNyIgc3Ryb2tlLXdpZHRoPSIxLjUiLz4KPC9zdmc+", Oue = er.div` +}, k7t = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNSIgaGVpZ2h0PSIyMCIgdmlld0JveD0iMCAyIDIwIDEyIiBmaWxsPSJub25lIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik02LjM4NDk2IDUuMDkxNzRDNS45MDUwNyA1LjA5MTc0IDUuNTE0NjUgNS40ODIxNiA1LjUxNDY1IDUuOTYyMDVDNS41MTQ2NSA2LjE4OTc5IDUuNjA0MTIgNi40MTc1NCA1Ljc2Njc5IDYuNTgwMjFDNS45Mjk0NyA2Ljc0Mjg5IDYuMTQ5MDggNi44MzIzNiA2LjM4NDk2IDYuODMyMzZDNi42MjA4NCA2LjgzMjM2IDYuODQwNDUgNi43NDI4OSA3LjAwMzEzIDYuNTgwMjFDNy4xNjU4IDYuNDE3NTQgNy4yNTUyNyA2LjE5NzkzIDcuMjU1MjcgNS45NjIwNUM3LjI1NTI3IDUuNDgyMTYgNi44NjQ4NSA1LjA5MTc0IDYuMzg0OTYgNS4wOTE3NFoiIGZpbGw9IiMzMzJEMzciLz4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik04Ljk5NjI5IDUuMDkxNzRDOC41MTY0IDUuMDkxNzQgOC4xMjU5OCA1LjQ4MjE2IDguMTI1OTggNS45NjIwNUM4LjEyNTk4IDYuMTg5NzkgOC4yMTU0NSA2LjQxNzU0IDguMzc4MTIgNi41ODAyMUM4LjU0MDggNi43NDI4OSA4Ljc2MDQxIDYuODMyMzYgOC45OTYyOSA2LjgzMjM2QzkuMjMyMTcgNi44MzIzNiA5LjQ1MTc4IDYuNzQyODkgOS42MTQ0NSA2LjU4MDIxQzkuNzc3MTMgNi40MTc1NCA5Ljg2NjYgNi4xOTc5MyA5Ljg2NjYgNS45NjIwNUM5Ljg2NjYgNS40ODIxNiA5LjQ3NjE4IDUuMDkxNzQgOC45OTYyOSA1LjA5MTc0WiIgZmlsbD0iIzMzMkQzNyIvPgo8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTExLjYwNjYgNS4wOTE3NEMxMS4xMjY3IDUuMDkxNzQgMTAuNzM2MyA1LjQ4MjE2IDEwLjczNjMgNS45NjIwNUMxMC43MzYzIDYuMTg5NzkgMTAuODI1OCA2LjQxNzU0IDEwLjk4ODUgNi41ODAyMUMxMS4xNTExIDYuNzQyODkgMTEuMzcwOCA2LjgzMjM2IDExLjYwNjYgNi44MzIzNkMxMS44NDI1IDYuODMyMzYgMTIuMDYyMSA2Ljc0Mjg5IDEyLjIyNDggNi41ODAyMUMxMi4zODc1IDYuNDE3NTQgMTIuNDc3IDYuMTk3OTMgMTIuNDc3IDUuOTYyMDVDMTIuNDc3IDUuNDgyMTYgMTIuMDg2NSA1LjA5MTc0IDExLjYwNjYgNS4wOTE3NFoiIGZpbGw9IiMzMzJEMzciLz4KPHBhdGggZD0iTTE3LjEyOTggMTEuMDM3NVYwLjg2MjE4M0gwLjg2MjMwNVYxMC44NzQ4TDUuMTE2MjYgMTAuOTE1NUw5LjA1MyAxNC44NTIyTDEyLjg4NCAxMS4wMjk0TDE3LjEyOTggMTEuMDM3NVoiIHN0cm9rZT0iIzMzMkQzNyIgc3Ryb2tlLXdpZHRoPSIxLjUiLz4KPC9zdmc+", xue = er.div` background-color: white; padding: 20px 0; box-sizing: border-box; @@ -51134,13 +51073,13 @@ const u7t = er.p` padding-left: 100px; margin-bottom: 0; } -`, C7t = er.hr` +`, S7t = er.hr` border: none; height: 1px; background-color: var(--gray-600); margin-top: 20px; margin-bottom: 0; -`, E7t = er.div` +`, T7t = er.div` margin-left: 100px; border-left: 1px solid var(--gray-600); @@ -51148,7 +51087,7 @@ const u7t = er.p` p { margin-top: 0; } -`, _7t = er.p` +`, C7t = er.p` padding: 10px 6px; img { @@ -51163,27 +51102,27 @@ const u7t = er.p` margin: 0 5px; } `; -Oue.defaultProps = { +xue.defaultProps = { className: "myst-resolved" }; -function p_(t, e) { +function f_(t, e) { return t.resolvedDate - e.resolvedDate; } -const A7t = ({ +const E7t = ({ ycomments: t }) => { - let [e, r] = Rn(t.resolver().resolved().sort(p_)), n = Nn(() => e.reduce((s, { + let [e, r] = Rn(t.resolver().resolved().sort(f_)), n = Nn(() => e.reduce((s, { commentId: a }) => (s[a] = t.getTextForComment(a).toString(), s), {}), [e]), i = Nn(() => e.map((s) => t.lineAuthors(s.commentId)), [e]); return Yi(() => { - r(t.resolver().resolved().sort(p_)), t.resolver().onUpdate((s) => r(s.sort(p_))); - }, []), Bt` <${Oue}> + r(t.resolver().resolved().sort(f_)), t.resolver().onUpdate((s) => r(s.sort(f_))); + }, []), Bt` <${xue}>

Resolved comments

- <${C7t} /> - <${E7t}> - ${e.length === 0 ? Bt`<${_7t} - >No resolved comments yet, to resolve a comment hover over it's icon and click RESOLVE` : e.map((s, a) => Bt`<${S7t} + <${S7t} /> + <${T7t}> + ${e.length === 0 ? Bt`<${C7t} + >No resolved comments yet, to resolve a comment hover over it's icon and click RESOLVE` : e.map((s, a) => Bt`<${O7t} key=${s.commentId} c=${s} authors=${i[a]} @@ -51193,11 +51132,11 @@ const A7t = ({ `; }; -var dZ; -(dZ = window.myst_editor) != null && dZ.isFresh || (nie(), window.myst_editor = { +var uZ; +(uZ = window.myst_editor) != null && uZ.isFresh || (eie(), window.myst_editor = { isFresh: !0 }); -const L7t = er.div` +const _7t = er.div` font-family: "Lato"; display: flex; flex-flow: row wrap; @@ -51220,7 +51159,7 @@ const L7t = er.div` return ""; } }} -`, kue = er.div` +`, wue = er.div` padding: 20px; display: flex; box-sizing: border-box; @@ -51230,10 +51169,10 @@ const L7t = er.div` background-color: white; ${(t) => t.fullscreen && "box-sizing:border-box; height: calc(100vh - 60px);"} `; -kue.defaultProps = { +wue.defaultProps = { className: "myst-editor-wrapper" }; -const FY = er.div` +const PY = er.div` height: 40px; position: sticky; z-index: 10; @@ -51245,18 +51184,18 @@ const FY = er.div` background-color: ${(t) => t.error ? "var(--red-500)" : "var(--blue-100)"}; color: ${(t) => t.error ? "white" : "inherit"}; font-weight: 600; -`, fO = er.div` +`, hO = er.div` flex: 1; height: 100%; min-height: 500px; -`, R7t = (t) => { +`, A7t = (t) => { const e = (r, n, i) => { r.type == "rule" && (r.props[0] = r.props[0].split(",").map((s) => `${t} ${s}`).join(",")); }; return Object.defineProperty(e, "name", { value: `scope-${t}` }), e; -}, M7t = (t) => document.documentElement.style.overflow = t ? "hidden" : "visible", ev = { +}, L7t = (t) => document.documentElement.style.overflow = t ? "hidden" : "visible", ev = { printToPdf: { id: "print-to-pdf", tooltip: "Print document as pdf", @@ -51277,13 +51216,13 @@ const FY = er.div` id: "refresh", tooltip: "Refresh issue links" } -}, D7t = [ev.fullscreen, ev.copyHtml, ev.refresh, ev.printToPdf, ev.templateManager], N7t = ({ +}, R7t = [ev.fullscreen, ev.copyHtml, ev.refresh, ev.printToPdf, ev.templateManager], M7t = ({ name: t = "myst_editor_textarea", id: e = "myst_editor_textarea", title: r = null, initialMode: n = "Both", initialText: i = "", - includeButtons: s = D7t, + includeButtons: s = R7t, topbar: a = !0, templatelist: o, collaboration: l = {}, @@ -51299,14 +51238,14 @@ const FY = er.div` syncScroll: m = !1, unfoldedHeadings: v }) => { - const [y, b] = Rn(n), [w, O] = Rn(!1), S = so(null), C = D_t({ + const [y, b] = Rn(n), [w, O] = Rn(!1), S = so(null), C = R_t({ initialText: i, transforms: f, customRoles: h, preview: S, backslashLineBreak: p, parent: g - }), [T, L] = Rn(null), [E, R] = _S((B, V) => V.map((Y) => ({ + }), [T, L] = Rn(null), [E, R] = ES((B, V) => V.map((Y) => ({ ...Y, avatarUrl: d(Y.login) })), []), { @@ -51316,7 +51255,7 @@ const FY = er.div` ydoc: k, ready: N, error: M - } = l7t(l), I = c7t(k, _, d), D = (B, V) => { + } = a7t(l), I = o7t(k, _, d), D = (B, V) => { L(B), setTimeout(() => L(null), V * 1e3); }, P = { "copy-html": () => { @@ -51324,16 +51263,16 @@ const FY = er.div` }, fullscreen: () => O((B) => !B), refresh: () => { - nie(), D("Rich links refreshed!", 1), C.refresh(); + eie(), D("Rich links refreshed!", 1), C.refresh(); } }, F = Nn(() => s.map((B) => ({ ...B, action: B.action || P[B.id] })), []); - return Yi(() => M7t(w), [w]), Bt`
- <${obe} target=${g} stylisPlugins=${[R7t("#myst-css-namespace")]}> - <${L7t} mode=${y} fullscreen=${w}> - ${a && Bt`<${o7t} + return Yi(() => L7t(w), [w]), Bt`
+ <${sbe} target=${g} stylisPlugins=${[A7t("#myst-css-namespace")]}> + <${_7t} mode=${y} fullscreen=${w}> + ${a && Bt`<${s7t} ...${{ alert: T, users: E, @@ -51346,11 +51285,11 @@ const FY = er.div` title: r }} />`} - ${M && Bt`<${FY} error> ${typeof M == "string" ? M : "No connection to the collaboration server"} `} - ${l.enabled && !N && !M && Bt`<${FY}>Connecting to the collaboration server ...`} - <${kue} fullscreen=${w}> - <${fO} id="editor-wrapper"> - <${sAt} + ${M && Bt`<${PY} error> ${typeof M == "string" ? M : "No connection to the collaboration server"} `} + ${l.enabled && !N && !M && Bt`<${PY}>Connecting to the collaboration server ...`} + <${wue} fullscreen=${w}> + <${hO} id="editor-wrapper"> + <${nAt} ...${{ mode: y, text: C, @@ -51375,17 +51314,22 @@ const FY = er.div` }} /> - <${fO} id="preview-wrapper" - ><${aue} ref=${S} mode=${y} onClick=${(B) => A_t(B, C.lineMap)} - ><${aAt} className="cm-previewFocus" /><${iue} + ref=${S} + mode=${y} + onClick=${(B) => { + E_t(B, C.lineMap), I_t(B, C.lineMap, S); + }} + ><${iAt} className="cm-previewFocus" /> - ${y === "Diff" && Bt`<${fO}><${bue} root=${g} oldText=${i} text=${C} />`} - ${l.commentsEnabled && l.resolvingCommentsEnabled && !M && Bt`<${fO} id="resolved-wrapper"><${A7t} ycomments=${I} />`} + ${y === "Diff" && Bt`<${hO}><${vue} root=${g} oldText=${i} text=${C} />`} + ${l.commentsEnabled && l.resolvingCommentsEnabled && !M && Bt`<${hO} id="resolved-wrapper"><${E7t} ycomments=${I} />`}
`; -}, icr = ({ +}, rcr = ({ additionalStyles: t, ...e }, r) => { @@ -51393,7 +51337,7 @@ const FY = er.div` mode: "open" }), t && r.shadowRoot.adoptedStyleSheets.push(...Array.isArray(t) ? t : [t]), e.parent = r.shadowRoot; const n = r.closest("form"); - n && n.addEventListener("formdata", (i) => i.formData.append(e.name, window.myst_editor.text)), xg(Bt`<${N7t} ...${e} />`, r.shadowRoot); + n && n.addEventListener("formdata", (i) => i.formData.append(e.name, window.myst_editor.text)), xg(Bt`<${M7t} ...${e} />`, r.shadowRoot); }; (function() { const e = document.createElement("link").relList; @@ -51452,43 +51396,43 @@ class ct { } } ct.prototype.__proto__ = Error.prototype; -var I7t = function(e, r) { +var D7t = function(e, r) { return e.indexOf(r) !== -1; -}, P7t = function(e, r) { +}, N7t = function(e, r) { return e === void 0 ? r : e; -}, $7t = /([A-Z])/g, B7t = function(e) { - return e.replace($7t, "-$1").toLowerCase(); -}, F7t = { +}, I7t = /([A-Z])/g, P7t = function(e) { + return e.replace(I7t, "-$1").toLowerCase(); +}, $7t = { "&": "&", ">": ">", "<": "<", '"': """, "'": "'" -}, z7t = /[&><"']/g; -function V7t(t) { - return String(t).replace(z7t, (e) => F7t[e]); +}, B7t = /[&><"']/g; +function F7t(t) { + return String(t).replace(B7t, (e) => $7t[e]); } -var Sue = function t(e) { +var Oue = function t(e) { return e.type === "ordgroup" || e.type === "color" ? e.body.length === 1 ? t(e.body[0]) : e : e.type === "font" ? t(e.body) : e; -}, U7t = function(e) { - var r = Sue(e); +}, z7t = function(e) { + var r = Oue(e); return r.type === "mathord" || r.type === "textord" || r.type === "atom"; -}, q7t = function(e) { +}, V7t = function(e) { if (!e) throw new Error("Expected non-null, but got " + String(e)); return e; -}, Y7t = function(e) { +}, U7t = function(e) { var r = /^[\x00-\x20]*([^\\/#?]*?)(:|�*58|�*3a|&colon)/i.exec(e); return r ? r[2] !== ":" || !/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(r[1]) ? null : r[1].toLowerCase() : "_relative"; }, Gt = { - contains: I7t, - deflt: P7t, - escape: V7t, - hyphenate: B7t, - getBaseElem: Sue, - isCharacterBox: U7t, - protocolFromUrl: Y7t -}, q4 = { + contains: D7t, + deflt: N7t, + escape: F7t, + hyphenate: P7t, + getBaseElem: Oue, + isCharacterBox: z7t, + protocolFromUrl: U7t +}, U4 = { displayMode: { type: "boolean", description: "Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.", @@ -51575,7 +51519,7 @@ var Sue = function t(e) { cli: !1 } }; -function Q7t(t) { +function q7t(t) { if (t.default) return t.default; var e = t.type, r = Array.isArray(e) ? e[0] : e; @@ -51592,13 +51536,13 @@ function Q7t(t) { return {}; } } -class _N { +class TN { constructor(e) { this.displayMode = void 0, this.output = void 0, this.leqno = void 0, this.fleqn = void 0, this.throwOnError = void 0, this.errorColor = void 0, this.macros = void 0, this.minRuleThickness = void 0, this.colorIsTextColor = void 0, this.strict = void 0, this.trust = void 0, this.maxSize = void 0, this.maxExpand = void 0, this.globalGroup = void 0, e = e || {}; - for (var r in q4) - if (q4.hasOwnProperty(r)) { - var n = q4[r]; - this[r] = e[r] !== void 0 ? n.processor ? n.processor(e[r]) : e[r] : Q7t(n); + for (var r in U4) + if (U4.hasOwnProperty(r)) { + var n = U4[r]; + this[r] = e[r] !== void 0 ? n.processor ? n.processor(e[r]) : e[r] : q7t(n); } } reportNonstrict(e, r, n) { @@ -51635,33 +51579,33 @@ class vh { this.id = void 0, this.size = void 0, this.cramped = void 0, this.id = e, this.size = r, this.cramped = n; } sup() { - return cc[W7t[this.id]]; + return cc[Y7t[this.id]]; } sub() { - return cc[G7t[this.id]]; + return cc[Q7t[this.id]]; } fracNum() { - return cc[H7t[this.id]]; + return cc[W7t[this.id]]; } fracDen() { - return cc[X7t[this.id]]; + return cc[G7t[this.id]]; } cramp() { - return cc[Z7t[this.id]]; + return cc[H7t[this.id]]; } text() { - return cc[j7t[this.id]]; + return cc[X7t[this.id]]; } isTight() { return this.size >= 2; } } -var AN = 0, ak = 1, lg = 2, Mu = 3, T2 = 4, Io = 5, u1 = 6, na = 7, cc = [new vh(AN, 0, !1), new vh(ak, 0, !0), new vh(lg, 1, !1), new vh(Mu, 1, !0), new vh(T2, 2, !1), new vh(Io, 2, !0), new vh(u1, 3, !1), new vh(na, 3, !0)], W7t = [T2, Io, T2, Io, u1, na, u1, na], G7t = [Io, Io, Io, Io, na, na, na, na], H7t = [lg, Mu, T2, Io, u1, na, u1, na], X7t = [Mu, Mu, Io, Io, na, na, na, na], Z7t = [ak, ak, Mu, Mu, Io, Io, na, na], j7t = [AN, ak, lg, Mu, lg, Mu, lg, Mu], Xt = { - DISPLAY: cc[AN], +var CN = 0, sk = 1, lg = 2, Mu = 3, T2 = 4, Io = 5, u1 = 6, na = 7, cc = [new vh(CN, 0, !1), new vh(sk, 0, !0), new vh(lg, 1, !1), new vh(Mu, 1, !0), new vh(T2, 2, !1), new vh(Io, 2, !0), new vh(u1, 3, !1), new vh(na, 3, !0)], Y7t = [T2, Io, T2, Io, u1, na, u1, na], Q7t = [Io, Io, Io, Io, na, na, na, na], W7t = [lg, Mu, T2, Io, u1, na, u1, na], G7t = [Mu, Mu, Io, Io, na, na, na, na], H7t = [sk, sk, Mu, Mu, Io, Io, na, na], X7t = [CN, sk, lg, Mu, lg, Mu, lg, Mu], Xt = { + DISPLAY: cc[CN], TEXT: cc[lg], SCRIPT: cc[T2], SCRIPTSCRIPT: cc[u1] -}, EL = [{ +}, SL = [{ name: "latin", blocks: [ [256, 591], @@ -51690,24 +51634,24 @@ var AN = 0, ak = 1, lg = 2, Mu = 3, T2 = 4, Io = 5, u1 = 6, na = 7, cc = [new vh name: "hangul", blocks: [[44032, 55215]] }]; -function K7t(t) { - for (var e = 0; e < EL.length; e++) - for (var r = EL[e], n = 0; n < r.blocks.length; n++) { +function Z7t(t) { + for (var e = 0; e < SL.length; e++) + for (var r = SL[e], n = 0; n < r.blocks.length; n++) { var i = r.blocks[n]; if (t >= i[0] && t <= i[1]) return r.name; } return null; } -var Y4 = []; -EL.forEach((t) => t.blocks.forEach((e) => Y4.push(...e))); -function Tue(t) { - for (var e = 0; e < Y4.length; e += 2) - if (t >= Y4[e] && t <= Y4[e + 1]) +var q4 = []; +SL.forEach((t) => t.blocks.forEach((e) => q4.push(...e))); +function kue(t) { + for (var e = 0; e < q4.length; e += 2) + if (t >= q4[e] && t <= q4[e + 1]) return !0; return !1; } -var pp = 80, J7t = function(e, r) { +var pp = 80, j7t = function(e, r) { return "M95," + (622 + e + r) + ` c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14 c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54 @@ -51720,7 +51664,7 @@ H400000v` + (40 + e) + `H845.2724 s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7 c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z M` + (834 + e) + " " + r + "h400000v" + (40 + e) + "h-400000z"; -}, e8t = function(e, r) { +}, K7t = function(e, r) { return "M263," + (601 + e + r) + `c0.7,0,18,39.7,52,119 c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120 c340,-704.7,510.7,-1060.3,512,-1067 @@ -51732,7 +51676,7 @@ c-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1 s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26 c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z M` + (1001 + e) + " " + r + "h400000v" + (40 + e) + "h-400000z"; -}, t8t = function(e, r) { +}, J7t = function(e, r) { return "M983 " + (10 + e + r) + ` l` + e / 3.13 + " -" + e + ` c4,-6.7,10,-10,18,-10 H400000v` + (40 + e) + ` @@ -51743,7 +51687,7 @@ c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722 c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5 c53.7,-170.3,84.5,-266.8,92.5,-289.5z M` + (1001 + e) + " " + r + "h400000v" + (40 + e) + "h-400000z"; -}, r8t = function(e, r) { +}, e8t = function(e, r) { return "M424," + (2398 + e + r) + ` c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514 c0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20 @@ -51755,7 +51699,7 @@ s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185 c-2,6,-10,9,-24,9 c-8,0,-12,-0.7,-12,-2z M` + (1001 + e) + " " + r + ` h400000v` + (40 + e) + "h-400000z"; -}, n8t = function(e, r) { +}, t8t = function(e, r) { return "M473," + (2713 + e + r) + ` c339.3,-1799.3,509.3,-2700,510,-2702 l` + e / 5.298 + " -" + e + ` c3.3,-7.3,9.3,-11,18,-11 H400000v` + (40 + e) + `H1017.7 @@ -51764,40 +51708,40 @@ c-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1 c0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26 s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104, 606zM` + (1001 + e) + " " + r + "h400000v" + (40 + e) + "H1017.7z"; -}, i8t = function(e) { +}, r8t = function(e) { var r = e / 2; return "M400000 " + e + " H0 L" + r + " 0 l65 45 L145 " + (e - 80) + " H400000z"; -}, s8t = function(e, r, n) { +}, n8t = function(e, r, n) { var i = n - 54 - r - e; return "M702 " + (e + r) + "H400000" + (40 + e) + ` H742v` + i + `l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1 h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170 c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667 219 661 l218 661zM702 ` + r + "H400000v" + (40 + e) + "H742z"; -}, a8t = function(e, r, n) { +}, i8t = function(e, r, n) { r = 1e3 * r; var i = ""; switch (e) { case "sqrtMain": - i = J7t(r, pp); + i = j7t(r, pp); break; case "sqrtSize1": - i = e8t(r, pp); + i = K7t(r, pp); break; case "sqrtSize2": - i = t8t(r, pp); + i = J7t(r, pp); break; case "sqrtSize3": - i = r8t(r, pp); + i = e8t(r, pp); break; case "sqrtSize4": - i = n8t(r, pp); + i = t8t(r, pp); break; case "sqrtTall": - i = s8t(r, pp, n); + i = n8t(r, pp, n); } return i; -}, o8t = function(e, r) { +}, s8t = function(e, r) { switch (e) { case "\u239C": return "M291 0 H417 V" + r + " H291z M291 0 H417 V" + r + " H291z"; @@ -51820,7 +51764,7 @@ c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667 default: return ""; } -}, zY = { +}, $Y = { doubleleftarrow: `M262 157 l10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3 0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28 @@ -52051,7 +51995,7 @@ c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199, -231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6 c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z` -}, l8t = function(e, r) { +}, a8t = function(e, r) { switch (e) { case "lbrack": return "M403 1759 V84 H666 V0 H319 V1759 v" + r + ` v1759 h347 v-84 @@ -54202,7 +54146,7 @@ var Oc = { 8242: [0, 0.61111, 0, 0, 0.525], 9251: [0.11111, 0.21944, 0, 0, 0.525] } -}, dO = { +}, fO = { slant: [0.25, 0.25, 0.25], space: [0, 0, 0], stretch: [0, 0, 0], @@ -54237,7 +54181,7 @@ var Oc = { arrayRuleWidth: [0.04, 0.04, 0.04], fboxsep: [0.3, 0.3, 0.3], fboxrule: [0.04, 0.04, 0.04] -}, VY = { +}, BY = { \u00C5: "A", \u00D0: "D", \u00DE: "o", @@ -54309,14 +54253,14 @@ var Oc = { \u044E: "m", \u044F: "r" }; -function c8t(t, e) { +function o8t(t, e) { Oc[t] = e; } -function LN(t, e, r) { +function EN(t, e, r) { if (!Oc[e]) throw new Error("Font metrics not found for font: " + e + "."); var n = t.charCodeAt(0), i = Oc[e][n]; - if (!i && t[0] in VY && (n = VY[t[0]].charCodeAt(0), i = Oc[e][n]), !i && r === "text" && Tue(n) && (i = Oc[e][77]), i) + if (!i && t[0] in BY && (n = BY[t[0]].charCodeAt(0), i = Oc[e][n]), !i && r === "text" && kue(n) && (i = Oc[e][77]), i) return { depth: i[0], height: i[1], @@ -54325,19 +54269,19 @@ function LN(t, e, r) { width: i[4] }; } -var g_ = {}; -function u8t(t) { +var d_ = {}; +function l8t(t) { var e; - if (t >= 5 ? e = 0 : t >= 3 ? e = 1 : e = 2, !g_[e]) { - var r = g_[e] = { - cssEmPerMu: dO.quad[e] / 18 + if (t >= 5 ? e = 0 : t >= 3 ? e = 1 : e = 2, !d_[e]) { + var r = d_[e] = { + cssEmPerMu: fO.quad[e] / 18 }; - for (var n in dO) - dO.hasOwnProperty(n) && (r[n] = dO[n][e]); + for (var n in fO) + fO.hasOwnProperty(n) && (r[n] = fO[n][e]); } - return g_[e]; + return d_[e]; } -var h8t = [ +var c8t = [ [1, 1, 1], [2, 1, 1], [3, 1, 1], @@ -54349,7 +54293,7 @@ var h8t = [ [9, 7, 6], [10, 8, 7], [11, 10, 9] -], UY = [ +], FY = [ 0.5, 0.6, 0.7, @@ -54361,12 +54305,12 @@ var h8t = [ 1.728, 2.074, 2.488 -], qY = function(e, r) { - return r.size < 2 ? e : h8t[e - 1][r.size - 1]; +], zY = function(e, r) { + return r.size < 2 ? e : c8t[e - 1][r.size - 1]; }; class gu { constructor(e) { - this.style = void 0, this.color = void 0, this.size = void 0, this.textSize = void 0, this.phantom = void 0, this.font = void 0, this.fontFamily = void 0, this.fontWeight = void 0, this.fontShape = void 0, this.sizeMultiplier = void 0, this.maxSize = void 0, this.minRuleThickness = void 0, this._fontMetrics = void 0, this.style = e.style, this.color = e.color, this.size = e.size || gu.BASESIZE, this.textSize = e.textSize || this.size, this.phantom = !!e.phantom, this.font = e.font || "", this.fontFamily = e.fontFamily || "", this.fontWeight = e.fontWeight || "", this.fontShape = e.fontShape || "", this.sizeMultiplier = UY[this.size - 1], this.maxSize = e.maxSize, this.minRuleThickness = e.minRuleThickness, this._fontMetrics = void 0; + this.style = void 0, this.color = void 0, this.size = void 0, this.textSize = void 0, this.phantom = void 0, this.font = void 0, this.fontFamily = void 0, this.fontWeight = void 0, this.fontShape = void 0, this.sizeMultiplier = void 0, this.maxSize = void 0, this.minRuleThickness = void 0, this._fontMetrics = void 0, this.style = e.style, this.color = e.color, this.size = e.size || gu.BASESIZE, this.textSize = e.textSize || this.size, this.phantom = !!e.phantom, this.font = e.font || "", this.fontFamily = e.fontFamily || "", this.fontWeight = e.fontWeight || "", this.fontShape = e.fontShape || "", this.sizeMultiplier = FY[this.size - 1], this.maxSize = e.maxSize, this.minRuleThickness = e.minRuleThickness, this._fontMetrics = void 0; } extend(e) { var r = { @@ -54389,7 +54333,7 @@ class gu { havingStyle(e) { return this.style === e ? this : this.extend({ style: e, - size: qY(this.textSize, e) + size: zY(this.textSize, e) }); } havingCrampedStyle() { @@ -54400,12 +54344,12 @@ class gu { style: this.style.text(), size: e, textSize: e, - sizeMultiplier: UY[e - 1] + sizeMultiplier: FY[e - 1] }); } havingBaseStyle(e) { e = e || this.style.text(); - var r = qY(gu.BASESIZE, e); + var r = zY(gu.BASESIZE, e); return this.size === r && this.textSize === gu.BASESIZE && this.style === e ? this : this.extend({ style: e, size: r @@ -54470,14 +54414,14 @@ class gu { return this.size !== gu.BASESIZE ? ["sizing", "reset-size" + this.size, "size" + gu.BASESIZE] : []; } fontMetrics() { - return this._fontMetrics || (this._fontMetrics = u8t(this.size)), this._fontMetrics; + return this._fontMetrics || (this._fontMetrics = l8t(this.size)), this._fontMetrics; } getColor() { return this.phantom ? "transparent" : this.color; } } gu.BASESIZE = 6; -var _L = { +var TL = { pt: 1, mm: 7227 / 2540, cm: 7227 / 254, @@ -54490,16 +54434,16 @@ var _L = { nc: 1370 / 107, sp: 1 / 65536, px: 803 / 800 -}, f8t = { +}, u8t = { ex: !0, em: !0, mu: !0 -}, Cue = function(e) { - return typeof e != "string" && (e = e.unit), e in _L || e in f8t || e === "ex"; +}, Sue = function(e) { + return typeof e != "string" && (e = e.unit), e in TL || e in u8t || e === "ex"; }, Mn = function(e, r) { var n; - if (e.unit in _L) - n = _L[e.unit] / r.fontMetrics().ptPerEm / r.sizeMultiplier; + if (e.unit in TL) + n = TL[e.unit] / r.fontMetrics().ptPerEm / r.sizeMultiplier; else if (e.unit === "mu") n = r.fontMetrics().cssEmPerMu; else { @@ -54517,13 +54461,13 @@ var _L = { return +e.toFixed(4) + "em"; }, kf = function(e) { return e.filter((r) => r).join(" "); -}, Eue = function(e, r, n) { +}, Tue = function(e, r, n) { if (this.classes = e || [], this.attributes = {}, this.height = 0, this.depth = 0, this.maxFontSize = 0, this.style = n || {}, r) { r.style.isTight() && this.classes.push("mtight"); var i = r.getColor(); i && (this.style.color = i); } -}, _ue = function(e) { +}, Cue = function(e) { var r = document.createElement(e); r.className = kf(this.classes); for (var n in this.style) @@ -54533,7 +54477,7 @@ var _L = { for (var s = 0; s < this.children.length; s++) r.appendChild(this.children[s].toNode()); return r; -}, Aue = function(e) { +}, Eue = function(e) { var r = "<" + e; this.classes.length && (r += ' class="' + Gt.escape(kf(this.classes)) + '"'); var n = ""; @@ -54549,7 +54493,7 @@ var _L = { }; class Tx { constructor(e, r, n, i) { - this.children = void 0, this.attributes = void 0, this.classes = void 0, this.height = void 0, this.depth = void 0, this.width = void 0, this.maxFontSize = void 0, this.style = void 0, Eue.call(this, e, n, i), this.children = r || []; + this.children = void 0, this.attributes = void 0, this.classes = void 0, this.height = void 0, this.depth = void 0, this.width = void 0, this.maxFontSize = void 0, this.style = void 0, Tue.call(this, e, n, i), this.children = r || []; } setAttribute(e, r) { this.attributes[e] = r; @@ -54558,15 +54502,15 @@ class Tx { return Gt.contains(this.classes, e); } toNode() { - return _ue.call(this, "span"); + return Cue.call(this, "span"); } toMarkup() { - return Aue.call(this, "span"); + return Eue.call(this, "span"); } } -class RN { +class _N { constructor(e, r, n, i) { - this.children = void 0, this.attributes = void 0, this.classes = void 0, this.height = void 0, this.depth = void 0, this.maxFontSize = void 0, this.style = void 0, Eue.call(this, r, i), this.children = n || [], this.setAttribute("href", e); + this.children = void 0, this.attributes = void 0, this.classes = void 0, this.height = void 0, this.depth = void 0, this.maxFontSize = void 0, this.style = void 0, Tue.call(this, r, i), this.children = n || [], this.setAttribute("href", e); } setAttribute(e, r) { this.attributes[e] = r; @@ -54575,13 +54519,13 @@ class RN { return Gt.contains(this.classes, e); } toNode() { - return _ue.call(this, "a"); + return Cue.call(this, "a"); } toMarkup() { - return Aue.call(this, "a"); + return Eue.call(this, "a"); } } -class d8t { +class h8t { constructor(e, r, n) { this.src = void 0, this.alt = void 0, this.classes = void 0, this.height = void 0, this.depth = void 0, this.maxFontSize = void 0, this.style = void 0, this.alt = r, this.src = e, this.classes = ["mord"], this.style = n; } @@ -54602,7 +54546,7 @@ class d8t { return r && (e += ' style="' + Gt.escape(r) + '"'), e += "'/>", e; } } -var p8t = { +var f8t = { \u00EE: "\u0131\u0302", \u00EF: "\u0131\u0308", \u00ED: "\u0131\u0301", @@ -54611,8 +54555,8 @@ var p8t = { class jo { constructor(e, r, n, i, s, a, o, l) { this.text = void 0, this.height = void 0, this.depth = void 0, this.italic = void 0, this.skew = void 0, this.width = void 0, this.maxFontSize = void 0, this.classes = void 0, this.style = void 0, this.text = e, this.height = r || 0, this.depth = n || 0, this.italic = i || 0, this.skew = s || 0, this.width = a || 0, this.classes = o || [], this.style = l || {}, this.maxFontSize = 0; - var u = K7t(this.text.charCodeAt(0)); - u && this.classes.push(u + "_fallback"), /[îïíì]/.test(this.text) && (this.text = p8t[this.text]); + var u = Z7t(this.text.charCodeAt(0)); + u && this.classes.push(u + "_fallback"), /[îïíì]/.test(this.text) && (this.text = f8t[this.text]); } hasClass(e) { return Gt.contains(this.classes, e); @@ -54664,13 +54608,13 @@ class Sf { } toNode() { var e = "http://www.w3.org/2000/svg", r = document.createElementNS(e, "path"); - return this.alternate ? r.setAttribute("d", this.alternate) : r.setAttribute("d", zY[this.pathName]), r; + return this.alternate ? r.setAttribute("d", this.alternate) : r.setAttribute("d", $Y[this.pathName]), r; } toMarkup() { - return this.alternate ? '' : ''; + return this.alternate ? '' : ''; } } -class AL { +class CL { constructor(e) { this.attributes = void 0, this.attributes = e || {}; } @@ -54687,24 +54631,24 @@ class AL { return e += "/>", e; } } -function YY(t) { +function VY(t) { if (t instanceof jo) return t; throw new Error("Expected symbolNode but got " + String(t) + "."); } -function g8t(t) { +function d8t(t) { if (t instanceof Tx) return t; throw new Error("Expected span but got " + String(t) + "."); } -var m8t = { +var p8t = { bin: 1, close: 1, inner: 1, open: 1, punct: 1, rel: 1 -}, v8t = { +}, g8t = { "accent-token": 1, mathord: 1, "op-token": 1, @@ -54721,7 +54665,7 @@ function z(t, e, r, n, i, s) { replace: n }, s && n && (fn[t][n] = fn[t][i]); } -var q = "math", it = "text", J = "main", ye = "ams", Tn = "accent-token", At = "bin", da = "close", nm = "inner", Ht = "mathord", mi = "op-token", go = "open", ZT = "punct", we = "rel", hh = "spacing", Re = "textord"; +var q = "math", it = "text", J = "main", ye = "ams", Tn = "accent-token", At = "bin", da = "close", nm = "inner", Ht = "mathord", mi = "op-token", go = "open", HT = "punct", we = "rel", hh = "spacing", Re = "textord"; z(q, J, we, "\u2261", "\\equiv", !0); z(q, J, we, "\u227A", "\\prec", !0); z(q, J, we, "\u227B", "\\succ", !0); @@ -54746,8 +54690,8 @@ z(q, J, we, "\u221D", "\\propto", !0); z(q, J, we, "\u22A2", "\\vdash", !0); z(q, J, we, "\u22A3", "\\dashv", !0); z(q, J, we, "\u220B", "\\owns"); -z(q, J, ZT, ".", "\\ldotp"); -z(q, J, ZT, "\u22C5", "\\cdotp"); +z(q, J, HT, ".", "\\ldotp"); +z(q, J, HT, "\u22C5", "\\cdotp"); z(q, J, Re, "#", "\\#"); z(it, J, Re, "#", "\\#"); z(q, J, Re, "&", "\\&"); @@ -55174,8 +55118,8 @@ z(it, J, hh, "\xA0", "\\space"); z(it, J, hh, "\xA0", "\\nobreakspace"); z(q, J, hh, null, "\\nobreak"); z(q, J, hh, null, "\\allowbreak"); -z(q, J, ZT, ",", ","); -z(q, J, ZT, ";", ";"); +z(q, J, HT, ",", ","); +z(q, J, HT, ";", ";"); z(q, ye, At, "\u22BC", "\\barwedge", !0); z(q, ye, At, "\u22BB", "\\veebar", !0); z(q, J, At, "\u2299", "\\odot", !0); @@ -55292,7 +55236,7 @@ z(it, J, Tn, "\u02C7", "\\v"); z(it, J, Tn, "\xA8", '\\"'); z(it, J, Tn, "\u02DD", "\\H"); z(it, J, Tn, "\u25EF", "\\textcircled"); -var Lue = { +var _ue = { "--": !0, "---": !0, "``": !0, @@ -55319,20 +55263,20 @@ z(it, J, Re, "\xA3", "\\pounds"); z(it, J, Re, "\xA3", "\\textsterling", !0); z(q, ye, Re, "\u2720", "\\maltese"); z(it, ye, Re, "\u2720", "\\maltese"); -var QY = '0123456789/@."'; -for (var m_ = 0; m_ < QY.length; m_++) { - var WY = QY.charAt(m_); - z(q, J, Re, WY, WY); -} -var GY = '0123456789!@*()-=+";:?/.,'; -for (var v_ = 0; v_ < GY.length; v_++) { - var HY = GY.charAt(v_); - z(it, J, Re, HY, HY); -} -var ok = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"; -for (var y_ = 0; y_ < ok.length; y_++) { - var pO = ok.charAt(y_); - z(q, J, Ht, pO, pO), z(it, J, Re, pO, pO); +var UY = '0123456789/@."'; +for (var p_ = 0; p_ < UY.length; p_++) { + var qY = UY.charAt(p_); + z(q, J, Re, qY, qY); +} +var YY = '0123456789!@*()-=+";:?/.,'; +for (var g_ = 0; g_ < YY.length; g_++) { + var QY = YY.charAt(g_); + z(it, J, Re, QY, QY); +} +var ak = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"; +for (var m_ = 0; m_ < ak.length; m_++) { + var dO = ak.charAt(m_); + z(q, J, Ht, dO, dO), z(it, J, Re, dO, dO); } z(q, ye, Re, "C", "\u2102"); z(it, ye, Re, "C", "\u2102"); @@ -55351,8 +55295,8 @@ z(it, ye, Re, "Z", "\u2124"); z(q, J, Ht, "h", "\u210E"); z(it, J, Ht, "h", "\u210E"); var rr = ""; -for (var js = 0; js < ok.length; js++) { - var zn = ok.charAt(js); +for (var js = 0; js < ak.length; js++) { + var zn = ak.charAt(js); rr = String.fromCharCode(55349, 56320 + js), z(q, J, Ht, zn, rr), z(it, J, Re, zn, rr), rr = String.fromCharCode(55349, 56372 + js), z(q, J, Ht, zn, rr), z(it, J, Re, zn, rr), rr = String.fromCharCode(55349, 56424 + js), z(q, J, Ht, zn, rr), z(it, J, Re, zn, rr), rr = String.fromCharCode(55349, 56580 + js), z(q, J, Ht, zn, rr), z(it, J, Re, zn, rr), rr = String.fromCharCode(55349, 56684 + js), z(q, J, Ht, zn, rr), z(it, J, Re, zn, rr), rr = String.fromCharCode(55349, 56736 + js), z(q, J, Ht, zn, rr), z(it, J, Re, zn, rr), rr = String.fromCharCode(55349, 56788 + js), z(q, J, Ht, zn, rr), z(it, J, Re, zn, rr), rr = String.fromCharCode(55349, 56840 + js), z(q, J, Ht, zn, rr), z(it, J, Re, zn, rr), rr = String.fromCharCode(55349, 56944 + js), z(q, J, Ht, zn, rr), z(it, J, Re, zn, rr), js < 26 && (rr = String.fromCharCode(55349, 56632 + js), z(q, J, Ht, zn, rr), z(it, J, Re, zn, rr), rr = String.fromCharCode(55349, 56476 + js), z(q, J, Ht, zn, rr), z(it, J, Re, zn, rr)); } rr = String.fromCharCode(55349, 56668); @@ -55362,12 +55306,12 @@ for (var nd = 0; nd < 10; nd++) { var yh = nd.toString(); rr = String.fromCharCode(55349, 57294 + nd), z(q, J, Ht, yh, rr), z(it, J, Re, yh, rr), rr = String.fromCharCode(55349, 57314 + nd), z(q, J, Ht, yh, rr), z(it, J, Re, yh, rr), rr = String.fromCharCode(55349, 57324 + nd), z(q, J, Ht, yh, rr), z(it, J, Re, yh, rr), rr = String.fromCharCode(55349, 57334 + nd), z(q, J, Ht, yh, rr), z(it, J, Re, yh, rr); } -var LL = "\xD0\xDE\xFE"; -for (var b_ = 0; b_ < LL.length; b_++) { - var gO = LL.charAt(b_); - z(q, J, Ht, gO, gO), z(it, J, Re, gO, gO); +var EL = "\xD0\xDE\xFE"; +for (var v_ = 0; v_ < EL.length; v_++) { + var pO = EL.charAt(v_); + z(q, J, Ht, pO, pO), z(it, J, Re, pO, pO); } -var mO = [ +var gO = [ ["mathbf", "textbf", "Main-Bold"], ["mathbf", "textbf", "Main-Bold"], ["mathnormal", "textit", "Math-Italic"], @@ -55394,34 +55338,34 @@ var mO = [ ["", "", ""], ["mathtt", "texttt", "Typewriter-Regular"], ["mathtt", "texttt", "Typewriter-Regular"] -], XY = [ +], WY = [ ["mathbf", "textbf", "Main-Bold"], ["", "", ""], ["mathsf", "textsf", "SansSerif-Regular"], ["mathboldsf", "textboldsf", "SansSerif-Bold"], ["mathtt", "texttt", "Typewriter-Regular"] -], y8t = function(e, r) { +], m8t = function(e, r) { var n = e.charCodeAt(0), i = e.charCodeAt(1), s = (n - 55296) * 1024 + (i - 56320) + 65536, a = r === "math" ? 0 : 1; if (119808 <= s && s < 120484) { var o = Math.floor((s - 119808) / 26); - return [mO[o][2], mO[o][a]]; + return [gO[o][2], gO[o][a]]; } else if (120782 <= s && s <= 120831) { var l = Math.floor((s - 120782) / 10); - return [XY[l][2], XY[l][a]]; + return [WY[l][2], WY[l][a]]; } else { if (s === 120485 || s === 120486) - return [mO[0][2], mO[0][a]]; + return [gO[0][2], gO[0][a]]; if (120486 < s && s < 120782) return ["", ""]; throw new ct("Unsupported character: " + e); } -}, jT = function(e, r, n) { +}, XT = function(e, r, n) { return fn[n][e] && fn[n][e].replace && (e = fn[n][e].replace), { value: e, - metrics: LN(e, r, n) + metrics: EN(e, r, n) }; }, hl = function(e, r, n, i, s) { - var a = jT(e, r, n), o = a.metrics; + var a = XT(e, r, n), o = a.metrics; e = a.value; var l; if (o) { @@ -55435,33 +55379,33 @@ var mO = [ h && (l.style.color = h); } return l; -}, b8t = function(e, r, n, i) { - return i === void 0 && (i = []), n.font === "boldsymbol" && jT(e, "Main-Bold", r).metrics ? hl(e, "Main-Bold", r, n, i.concat(["mathbf"])) : e === "\\" || fn[r][e].font === "main" ? hl(e, "Main-Regular", r, n, i) : hl(e, "AMS-Regular", r, n, i.concat(["amsrm"])); -}, x8t = function(e, r, n, i, s) { - return s !== "textord" && jT(e, "Math-BoldItalic", r).metrics ? { +}, v8t = function(e, r, n, i) { + return i === void 0 && (i = []), n.font === "boldsymbol" && XT(e, "Main-Bold", r).metrics ? hl(e, "Main-Bold", r, n, i.concat(["mathbf"])) : e === "\\" || fn[r][e].font === "main" ? hl(e, "Main-Regular", r, n, i) : hl(e, "AMS-Regular", r, n, i.concat(["amsrm"])); +}, y8t = function(e, r, n, i, s) { + return s !== "textord" && XT(e, "Math-BoldItalic", r).metrics ? { fontName: "Math-BoldItalic", fontClass: "boldsymbol" } : { fontName: "Main-Bold", fontClass: "mathbf" }; -}, w8t = function(e, r, n) { +}, b8t = function(e, r, n) { var i = e.mode, s = e.text, a = ["mord"], o = i === "math" || i === "text" && r.font, l = o ? r.font : r.fontFamily, u = "", h = ""; - if (s.charCodeAt(0) === 55349 && ([u, h] = y8t(s, i)), u.length > 0) + if (s.charCodeAt(0) === 55349 && ([u, h] = m8t(s, i)), u.length > 0) return hl(s, u, i, r, a.concat(h)); if (l) { var f, d; if (l === "boldsymbol") { - var p = x8t(s, i, r, a, n); + var p = y8t(s, i, r, a, n); f = p.fontName, d = [p.fontClass]; } else - o ? (f = Due[l].fontName, d = [l]) : (f = vO(l, r.fontWeight, r.fontShape), d = [l, r.fontWeight, r.fontShape]); - if (jT(s, f, i).metrics) + o ? (f = Rue[l].fontName, d = [l]) : (f = mO(l, r.fontWeight, r.fontShape), d = [l, r.fontWeight, r.fontShape]); + if (XT(s, f, i).metrics) return hl(s, f, i, r, a.concat(d)); - if (Lue.hasOwnProperty(s) && f.slice(0, 10) === "Typewriter") { + if (_ue.hasOwnProperty(s) && f.slice(0, 10) === "Typewriter") { for (var g = [], m = 0; m < s.length; m++) g.push(hl(s[m], f, i, r, a.concat(d))); - return Mue(g); + return Lue(g); } } if (n === "mathord") @@ -55469,18 +55413,18 @@ var mO = [ if (n === "textord") { var v = fn[i][s] && fn[i][s].font; if (v === "ams") { - var y = vO("amsrm", r.fontWeight, r.fontShape); + var y = mO("amsrm", r.fontWeight, r.fontShape); return hl(s, y, i, r, a.concat("amsrm", r.fontWeight, r.fontShape)); } else if (v === "main" || !v) { - var b = vO("textrm", r.fontWeight, r.fontShape); + var b = mO("textrm", r.fontWeight, r.fontShape); return hl(s, b, i, r, a.concat(r.fontWeight, r.fontShape)); } else { - var w = vO(v, r.fontWeight, r.fontShape); + var w = mO(v, r.fontWeight, r.fontShape); return hl(s, w, i, r, a.concat(w, r.fontWeight, r.fontShape)); } } else throw new Error("unexpected type: " + n + " in makeOrd"); -}, O8t = (t, e) => { +}, x8t = (t, e) => { if (kf(t.classes) !== kf(e.classes) || t.skew !== e.skew || t.maxFontSize !== e.maxFontSize) return !1; if (t.classes.length === 1) { @@ -55495,13 +55439,13 @@ var mO = [ if (e.style.hasOwnProperty(i) && t.style[i] !== e.style[i]) return !1; return !0; -}, k8t = (t) => { +}, w8t = (t) => { for (var e = 0; e < t.length - 1; e++) { var r = t[e], n = t[e + 1]; - r instanceof jo && n instanceof jo && O8t(r, n) && (r.text += n.text, r.height = Math.max(r.height, n.height), r.depth = Math.max(r.depth, n.depth), r.italic = n.italic, t.splice(e + 1, 1), e--); + r instanceof jo && n instanceof jo && x8t(r, n) && (r.text += n.text, r.height = Math.max(r.height, n.height), r.depth = Math.max(r.depth, n.depth), r.italic = n.italic, t.splice(e + 1, 1), e--); } return t; -}, MN = function(e) { +}, AN = function(e) { for (var r = 0, n = 0, i = 0, s = 0; s < e.children.length; s++) { var a = e.children[s]; a.height > r && (r = a.height), a.depth > n && (n = a.depth), a.maxFontSize > i && (i = a.maxFontSize); @@ -55509,19 +55453,19 @@ var mO = [ e.height = r, e.depth = n, e.maxFontSize = i; }, ba = function(e, r, n, i) { var s = new Tx(e, r, n, i); - return MN(s), s; -}, Rue = (t, e, r, n) => new Tx(t, e, r, n), S8t = function(e, r, n) { + return AN(s), s; +}, Aue = (t, e, r, n) => new Tx(t, e, r, n), O8t = function(e, r, n) { var i = ba([e], [], r); return i.height = Math.max(n || r.fontMetrics().defaultRuleThickness, r.minRuleThickness), i.style.borderBottomWidth = vt(i.height), i.maxFontSize = 1, i; -}, T8t = function(e, r, n, i) { - var s = new RN(e, r, n, i); - return MN(s), s; -}, Mue = function(e) { +}, k8t = function(e, r, n, i) { + var s = new _N(e, r, n, i); + return AN(s), s; +}, Lue = function(e) { var r = new Sx(e); - return MN(r), r; -}, C8t = function(e, r) { + return AN(r), r; +}, S8t = function(e, r) { return e instanceof Sx ? ba([], [e], r) : e; -}, E8t = function(e) { +}, T8t = function(e) { if (e.positionType === "individualShift") { for (var r = e.children, n = [r[0]], i = -r[0].shift - r[0].elem.depth, s = i, a = 1; a < r.length; a++) { var o = -r[a].shift - s - r[a].elem.depth, l = o - (r[a - 1].elem.height + r[a - 1].elem.depth); @@ -55559,11 +55503,11 @@ var mO = [ children: e.children, depth: u }; -}, _8t = function(e, r) { +}, C8t = function(e, r) { for (var { children: n, depth: i - } = E8t(e), s = 0, a = 0; a < n.length; a++) { + } = T8t(e), s = 0, a = 0; a < n.length; a++) { var o = n[a]; if (o.type === "elem") { var l = o.elem; @@ -55595,10 +55539,10 @@ var mO = [ S = [ba(["vlist-r"], [O])]; var E = ba(["vlist-t"], S); return S.length === 2 && E.classes.push("vlist-t2"), E.height = d, E.depth = -f, E; -}, A8t = (t, e) => { +}, E8t = (t, e) => { var r = ba(["mspace"], [], e), n = Mn(t, e); return r.style.marginRight = vt(n), r; -}, vO = function(e, r, n) { +}, mO = function(e, r, n) { var i = ""; switch (e) { case "amsrm": @@ -55618,7 +55562,7 @@ var mO = [ } var s; return r === "textbf" && n === "textit" ? s = "BoldItalic" : r === "textbf" ? s = "Bold" : r === "textit" ? s = "Italic" : s = "Regular", i + "-" + s; -}, Due = { +}, Rue = { mathbf: { variant: "bold", fontName: "Main-Bold" @@ -55663,37 +55607,37 @@ var mO = [ variant: "monospace", fontName: "Typewriter-Regular" } -}, Nue = { +}, Mue = { vec: ["vec", 0.471, 0.714], oiintSize1: ["oiintSize1", 0.957, 0.499], oiintSize2: ["oiintSize2", 1.472, 0.659], oiiintSize1: ["oiiintSize1", 1.304, 0.499], oiiintSize2: ["oiiintSize2", 1.98, 0.659] -}, L8t = function(e, r) { - var [n, i, s] = Nue[e], a = new Sf(n), o = new Wu([a], { +}, _8t = function(e, r) { + var [n, i, s] = Mue[e], a = new Sf(n), o = new Wu([a], { width: vt(i), height: vt(s), style: "width:" + vt(i), viewBox: "0 0 " + 1e3 * i + " " + 1e3 * s, preserveAspectRatio: "xMinYMin" - }), l = Rue(["overlay"], [o], r); + }), l = Aue(["overlay"], [o], r); return l.height = s, l.style.height = vt(s), l.style.width = vt(i), l; }, Be = { - fontMap: Due, + fontMap: Rue, makeSymbol: hl, - mathsym: b8t, + mathsym: v8t, makeSpan: ba, - makeSvgSpan: Rue, - makeLineSpan: S8t, - makeAnchor: T8t, - makeFragment: Mue, - wrapFragment: C8t, - makeVList: _8t, - makeOrd: w8t, - makeGlue: A8t, - staticSvg: L8t, - svgData: Nue, - tryCombineChars: k8t + makeSvgSpan: Aue, + makeLineSpan: O8t, + makeAnchor: k8t, + makeFragment: Lue, + wrapFragment: S8t, + makeVList: C8t, + makeOrd: b8t, + makeGlue: E8t, + staticSvg: _8t, + svgData: Mue, + tryCombineChars: w8t }, An = { number: 3, unit: "mu" @@ -55703,7 +55647,7 @@ var mO = [ }, cu = { number: 5, unit: "mu" -}, R8t = { +}, A8t = { mord: { mop: An, mbin: id, @@ -55753,7 +55697,7 @@ var mO = [ mpunct: An, minner: An } -}, M8t = { +}, L8t = { mord: { mop: An }, @@ -55771,7 +55715,7 @@ var mO = [ minner: { mop: An } -}, Iue = {}, lk = {}, ck = {}; +}, Due = {}, ok = {}, lk = {}; function Ct(t) { for (var { type: e, @@ -55792,8 +55736,8 @@ function Ct(t) { primitive: !!n.primitive, handler: i }, l = 0; l < r.length; ++l) - Iue[r[l]] = o; - e && (s && (lk[e] = s), a && (ck[e] = a)); + Due[r[l]] = o; + e && (s && (ok[e] = s), a && (lk[e] = a)); } function j0(t) { var { @@ -55814,16 +55758,16 @@ function j0(t) { mathmlBuilder: n }); } -var uk = function(e) { +var ck = function(e) { return e.type === "ordgroup" && e.body.length === 1 ? e.body[0] : e; }, ri = function(e) { return e.type === "ordgroup" ? e.body : [e]; -}, Gu = Be.makeSpan, D8t = ["leftmost", "mbin", "mopen", "mrel", "mop", "mpunct"], N8t = ["rightmost", "mrel", "mclose", "mpunct"], I8t = { +}, Gu = Be.makeSpan, R8t = ["leftmost", "mbin", "mopen", "mrel", "mop", "mpunct"], M8t = ["rightmost", "mrel", "mclose", "mpunct"], D8t = { display: Xt.DISPLAY, text: Xt.TEXT, script: Xt.SCRIPT, scriptscript: Xt.SCRIPTSCRIPT -}, P8t = { +}, N8t = { mord: "mord", mop: "mop", mbin: "mbin", @@ -55847,25 +55791,25 @@ var uk = function(e) { var u = r; if (e.length === 1) { var h = e[0]; - h.type === "sizing" ? u = r.havingSize(h.size) : h.type === "styling" && (u = r.havingStyle(I8t[h.style])); + h.type === "sizing" ? u = r.havingSize(h.size) : h.type === "styling" && (u = r.havingStyle(D8t[h.style])); } var f = Gu([i[0] || "leftmost"], [], r), d = Gu([i[1] || "rightmost"], [], r), p = n === "root"; - return ZY(s, (g, m) => { + return GY(s, (g, m) => { var v = m.classes[0], y = g.classes[0]; - v === "mbin" && Gt.contains(N8t, y) ? m.classes[0] = "mord" : y === "mbin" && Gt.contains(D8t, v) && (g.classes[0] = "mord"); + v === "mbin" && Gt.contains(M8t, y) ? m.classes[0] = "mord" : y === "mbin" && Gt.contains(R8t, v) && (g.classes[0] = "mord"); }, { node: f - }, d, p), ZY(s, (g, m) => { - var v = RL(m), y = RL(g), b = v && y ? g.hasClass("mtight") ? M8t[v][y] : R8t[v][y] : null; + }, d, p), GY(s, (g, m) => { + var v = _L(m), y = _L(g), b = v && y ? g.hasClass("mtight") ? L8t[v][y] : A8t[v][y] : null; if (b) return Be.makeGlue(b, u); }, { node: f }, d, p), s; -}, ZY = function t(e, r, n, i, s) { +}, GY = function t(e, r, n, i, s) { i && e.push(i); for (var a = 0; a < e.length; a++) { - var o = e[a], l = Pue(o); + var o = e[a], l = Nue(o); if (l) { t(l.children, r, n, null, s); continue; @@ -55880,10 +55824,10 @@ var uk = function(e) { })(a); } i && e.pop(); -}, Pue = function(e) { - return e instanceof Sx || e instanceof RN || e instanceof Tx && e.hasClass("enclosing") ? e : null; -}, $8t = function t(e, r) { - var n = Pue(e); +}, Nue = function(e) { + return e instanceof Sx || e instanceof _N || e instanceof Tx && e.hasClass("enclosing") ? e : null; +}, I8t = function t(e, r) { + var n = Nue(e); if (n) { var i = n.children; if (i.length) { @@ -55894,16 +55838,16 @@ var uk = function(e) { } } return e; -}, RL = function(e, r) { - return e ? (r && (e = $8t(e, r)), P8t[e.classes[0]] || null) : null; +}, _L = function(e, r) { + return e ? (r && (e = I8t(e, r)), N8t[e.classes[0]] || null) : null; }, C2 = function(e, r) { var n = ["nulldelimiter"].concat(e.baseSizingClasses()); return Gu(r.concat(n)); }, Lr = function(e, r, n) { if (!e) return Gu(); - if (lk[e.type]) { - var i = lk[e.type](e, r); + if (ok[e.type]) { + var i = ok[e.type](e, r); if (n && r.size !== n.size) { i = Gu(r.sizingClasses(n), [i], r); var s = r.sizeMultiplier / n.sizeMultiplier; @@ -55913,11 +55857,11 @@ var uk = function(e) { } else throw new ct("Got group of unknown type: '" + e.type + "'"); }; -function yO(t, e) { +function vO(t, e) { var r = Gu(["base"], t, e), n = Gu(["strut"]); return n.style.height = vt(r.height + r.depth), r.depth && (n.style.verticalAlign = vt(-r.depth)), r.children.unshift(n), r; } -function ML(t, e) { +function AL(t, e) { var r = null; t.length === 1 && t[0].type === "tag" && (r = t[0].tag, t = t[0].body); var n = Mi(t, e, "root"), i; @@ -55926,12 +55870,12 @@ function ML(t, e) { if (a.push(n[o]), n[o].hasClass("mbin") || n[o].hasClass("mrel") || n[o].hasClass("allowbreak")) { for (var l = !1; o < n.length - 1 && n[o + 1].hasClass("mspace") && !n[o + 1].hasClass("newline"); ) o++, a.push(n[o]), n[o].hasClass("nobreak") && (l = !0); - l || (s.push(yO(a, e)), a = []); + l || (s.push(vO(a, e)), a = []); } else - n[o].hasClass("newline") && (a.pop(), a.length > 0 && (s.push(yO(a, e)), a = []), s.push(n[o])); - a.length > 0 && s.push(yO(a, e)); + n[o].hasClass("newline") && (a.pop(), a.length > 0 && (s.push(vO(a, e)), a = []), s.push(n[o])); + a.length > 0 && s.push(vO(a, e)); var u; - r ? (u = yO(Mi(r, e, !0)), u.classes = ["tag"], s.push(u)) : i && s.push(i); + r ? (u = vO(Mi(r, e, !0)), u.classes = ["tag"], s.push(u)) : i && s.push(i); var h = Gu(["katex-html"], s); if (h.setAttribute("aria-hidden", "true"), u) { var f = u.children[0]; @@ -55939,7 +55883,7 @@ function ML(t, e) { } return h; } -function $ue(t) { +function Iue(t) { return new Sx(t); } class Ro { @@ -55988,7 +55932,7 @@ class uy { return this.text; } } -class B8t { +class P8t { constructor(e) { this.width = void 0, this.character = void 0, this.width = e, e >= 0.05555 && e <= 0.05556 ? this.character = "\u200A" : e >= 0.1666 && e <= 0.1667 ? this.character = "\u2009" : e >= 0.2222 && e <= 0.2223 ? this.character = "\u2005" : e >= 0.2777 && e <= 0.2778 ? this.character = "\u2005\u200A" : e >= -0.05556 && e <= -0.05555 ? this.character = "\u200A\u2063" : e >= -0.1667 && e <= -0.1666 ? this.character = "\u2009\u2063" : e >= -0.2223 && e <= -0.2222 ? this.character = "\u205F\u2063" : e >= -0.2778 && e <= -0.2777 ? this.character = "\u2005\u2063" : this.character = null; } @@ -56008,13 +55952,13 @@ class B8t { var lt = { MathNode: Ro, TextNode: uy, - SpaceNode: B8t, - newDocumentFragment: $ue + SpaceNode: P8t, + newDocumentFragment: Iue }, Ko = function(e, r, n) { - return fn[r][e] && fn[r][e].replace && e.charCodeAt(0) !== 55349 && !(Lue.hasOwnProperty(e) && n && (n.fontFamily && n.fontFamily.slice(4, 6) === "tt" || n.font && n.font.slice(4, 6) === "tt")) && (e = fn[r][e].replace), new lt.TextNode(e); -}, DN = function(e) { + return fn[r][e] && fn[r][e].replace && e.charCodeAt(0) !== 55349 && !(_ue.hasOwnProperty(e) && n && (n.fontFamily && n.fontFamily.slice(4, 6) === "tt" || n.font && n.font.slice(4, 6) === "tt")) && (e = fn[r][e].replace), new lt.TextNode(e); +}, LN = function(e) { return e.length === 1 ? e[0] : new lt.MathNode("mrow", e); -}, NN = function(e, r) { +}, RN = function(e, r) { if (r.fontFamily === "texttt") return "monospace"; if (r.fontFamily === "textsf") @@ -56050,7 +55994,7 @@ var lt = { return null; fn[i][s] && fn[i][s].replace && (s = fn[i][s].replace); var a = Be.fontMap[n].fontName; - return LN(s, a, i) ? Be.fontMap[n].variant : null; + return EN(s, a, i) ? Be.fontMap[n].variant : null; }, Va = function(e, r, n) { if (e.length === 1) { var i = an(e[0], r); @@ -56083,17 +56027,17 @@ var lt = { } return s; }, Tf = function(e, r, n) { - return DN(Va(e, r, n)); + return LN(Va(e, r, n)); }, an = function(e, r) { if (!e) return new lt.MathNode("mrow"); - if (ck[e.type]) { - var n = ck[e.type](e, r); + if (lk[e.type]) { + var n = lk[e.type](e, r); return n; } else throw new ct("Got group of unknown type: '" + e.type + "'"); }; -function jY(t, e, r, n, i) { +function HY(t, e, r, n, i) { var s = Va(t, r), a; s.length === 1 && s[0] instanceof Ro && Gt.contains(["mrow", "mtable"], s[0].type) ? a = s[0] : a = new lt.MathNode("mrow", s); var o = new lt.MathNode("annotation", [new lt.TextNode(e)]); @@ -56103,34 +56047,34 @@ function jY(t, e, r, n, i) { var h = i ? "katex" : "katex-mathml"; return Be.makeSpan([h], [u]); } -var Bue = function(e) { +var Pue = function(e) { return new gu({ style: e.displayMode ? Xt.DISPLAY : Xt.TEXT, maxSize: e.maxSize, minRuleThickness: e.minRuleThickness }); -}, Fue = function(e, r) { +}, $ue = function(e, r) { if (r.displayMode) { var n = ["katex-display"]; r.leqno && n.push("leqno"), r.fleqn && n.push("fleqn"), e = Be.makeSpan(n, [e]); } return e; -}, F8t = function(e, r, n) { - var i = Bue(n), s; +}, $8t = function(e, r, n) { + var i = Pue(n), s; if (n.output === "mathml") - return jY(e, r, i, n.displayMode, !0); + return HY(e, r, i, n.displayMode, !0); if (n.output === "html") { - var a = ML(e, i); + var a = AL(e, i); s = Be.makeSpan(["katex"], [a]); } else { - var o = jY(e, r, i, n.displayMode, !1), l = ML(e, i); + var o = HY(e, r, i, n.displayMode, !1), l = AL(e, i); s = Be.makeSpan(["katex"], [o, l]); } - return Fue(s, n); -}, z8t = function(e, r, n) { - var i = Bue(n), s = ML(e, i), a = Be.makeSpan(["katex"], [s]); - return Fue(a, n); -}, V8t = { + return $ue(s, n); +}, B8t = function(e, r, n) { + var i = Pue(n), s = AL(e, i), a = Be.makeSpan(["katex"], [s]); + return $ue(a, n); +}, F8t = { widehat: "^", widecheck: "\u02C7", widetilde: "~", @@ -56173,10 +56117,10 @@ var Bue = function(e) { "\\cdrightarrow": "\u2192", "\\cdleftarrow": "\u2190", "\\cdlongequal": "=" -}, U8t = function(e) { - var r = new lt.MathNode("mo", [new lt.TextNode(V8t[e.replace(/^\\/, "")])]); +}, z8t = function(e) { + var r = new lt.MathNode("mo", [new lt.TextNode(F8t[e.replace(/^\\/, "")])]); return r.setAttribute("stretchy", "true"), r; -}, q8t = { +}, V8t = { overrightarrow: [["rightarrow"], 0.888, 522, "xMaxYMin"], overleftarrow: [["leftarrow"], 0.888, 522, "xMinYMin"], underrightarrow: [["rightarrow"], 0.888, 522, "xMaxYMin"], @@ -56217,13 +56161,13 @@ var Bue = function(e) { xrightleftarrows: [["baraboveleftarrow", "rightarrowabovebar"], 1.75, 901], xrightequilibrium: [["baraboveshortleftharpoon", "rightharpoonaboveshortbar"], 1.75, 716], xleftequilibrium: [["shortbaraboveleftharpoon", "shortrightharpoonabovebar"], 1.75, 716] -}, Y8t = function(e) { +}, U8t = function(e) { return e.type === "ordgroup" ? e.body.length : 1; -}, Q8t = function(e, r) { +}, q8t = function(e, r) { function n() { var o = 4e5, l = e.label.slice(1); if (Gt.contains(["widehat", "widecheck", "widetilde", "utilde"], l)) { - var u = e, h = Y8t(u.base), f, d, p; + var u = e, h = U8t(u.base), f, d, p; if (h > 5) l === "widehat" || l === "widecheck" ? (f = 420, o = 2364, p = 0.42, d = l + "4") : (f = 312, o = 2340, p = 0.34, d = "tilde4"); else { @@ -56242,7 +56186,7 @@ var Bue = function(e) { height: p }; } else { - var y = [], b = q8t[l], [w, O, S] = b, C = S / 1e3, T = w.length, L, E; + var y = [], b = V8t[l], [w, O, S] = b, C = S / 1e3, T = w.length, L, E; if (T === 1) { var R = b[3]; L = ["hide-tail"], E = [R]; @@ -56281,7 +56225,7 @@ var Bue = function(e) { height: a } = n(); return i.height = a, i.style.height = vt(a), s > 0 && (i.style.minWidth = vt(s)), i; -}, W8t = function(e, r, n, i, s) { +}, Y8t = function(e, r, n, i, s) { var a, o = e.height + e.depth + n + i; if (/fbox|color|angl/.test(r)) { if (a = Be.makeSpan(["stretchy", r], [], s), r === "fbox") { @@ -56290,13 +56234,13 @@ var Bue = function(e) { } } else { var u = []; - /^[bx]cancel$/.test(r) && u.push(new AL({ + /^[bx]cancel$/.test(r) && u.push(new CL({ x1: "0", y1: "0", x2: "100%", y2: "100%", "stroke-width": "0.046em" - })), /^x?cancel$/.test(r) && u.push(new AL({ + })), /^x?cancel$/.test(r) && u.push(new CL({ x1: "0", y1: "100%", x2: "100%", @@ -56311,31 +56255,31 @@ var Bue = function(e) { } return a.height = o, a.style.height = vt(o), a; }, Hu = { - encloseSpan: W8t, - mathMLnode: U8t, - svgSpan: Q8t + encloseSpan: Y8t, + mathMLnode: z8t, + svgSpan: q8t }; function gr(t, e) { if (!t || t.type !== e) throw new Error("Expected node of type " + e + ", but got " + (t ? "node of type " + t.type : String(t))); return t; } -function IN(t) { - var e = KT(t); +function MN(t) { + var e = ZT(t); if (!e) throw new Error("Expected node of symbol group type, but got " + (t ? "node of type " + t.type : String(t))); return e; } -function KT(t) { - return t && (t.type === "atom" || v8t.hasOwnProperty(t.type)) ? t : null; +function ZT(t) { + return t && (t.type === "atom" || g8t.hasOwnProperty(t.type)) ? t : null; } -var PN = (t, e) => { +var DN = (t, e) => { var r, n, i; - t && t.type === "supsub" ? (n = gr(t.base, "accent"), r = n.base, t.base = r, i = g8t(Lr(t, e)), t.base = n) : (n = gr(t, "accent"), r = n.base); + t && t.type === "supsub" ? (n = gr(t.base, "accent"), r = n.base, t.base = r, i = d8t(Lr(t, e)), t.base = n) : (n = gr(t, "accent"), r = n.base); var s = Lr(r, e.havingCrampedStyle()), a = n.isShifty && Gt.isCharacterBox(r), o = 0; if (a) { var l = Gt.getBaseElem(r), u = Lr(l, e.havingCrampedStyle()); - o = YY(u).skew; + o = VY(u).skew; } var h = n.label === "\\c", f = h ? s.height + s.depth : Math.min(s.height, e.fontMetrics().xHeight), d; if (n.isStretchy) @@ -56359,7 +56303,7 @@ var PN = (t, e) => { n.label === "\\vec" ? (p = Be.staticSvg("vec", e), g = Be.svgData.vec[1]) : (p = Be.makeOrd({ mode: n.mode, text: n.label - }, e, "textord"), p = YY(p), p.italic = 0, g = p.width, h && (f += p.depth)), d = Be.makeSpan(["accent-body"], [p]); + }, e, "textord"), p = VY(p), p.italic = 0, g = p.width, h && (f += p.depth)), d = Be.makeSpan(["accent-body"], [p]); var m = n.label === "\\textcircled"; m && (d.classes.push("accent-full"), f = s.height); var v = o; @@ -56379,10 +56323,10 @@ var PN = (t, e) => { } var y = Be.makeSpan(["mord", "accent"], [d], e); return i ? (i.children[0] = y, i.height = Math.max(y.height, i.height), i.classes[0] = "mord", i) : y; -}, zue = (t, e) => { +}, Bue = (t, e) => { var r = t.isStretchy ? Hu.mathMLnode(t.label) : new lt.MathNode("mo", [Ko(t.label, t.mode)]), n = new lt.MathNode("mover", [an(t.base, e), r]); return n.setAttribute("accent", "true"), n; -}, G8t = new RegExp(["\\acute", "\\grave", "\\ddot", "\\tilde", "\\bar", "\\breve", "\\check", "\\hat", "\\vec", "\\dot", "\\mathring"].map((t) => "\\" + t).join("|")); +}, Q8t = new RegExp(["\\acute", "\\grave", "\\ddot", "\\tilde", "\\bar", "\\breve", "\\check", "\\hat", "\\vec", "\\dot", "\\mathring"].map((t) => "\\" + t).join("|")); Ct({ type: "accent", names: ["\\acute", "\\grave", "\\ddot", "\\tilde", "\\bar", "\\breve", "\\check", "\\hat", "\\vec", "\\dot", "\\mathring", "\\widecheck", "\\widehat", "\\widetilde", "\\overrightarrow", "\\overleftarrow", "\\Overrightarrow", "\\overleftrightarrow", "\\overgroup", "\\overlinesegment", "\\overleftharpoon", "\\overrightharpoon"], @@ -56390,7 +56334,7 @@ Ct({ numArgs: 1 }, handler: (t, e) => { - var r = uk(e[0]), n = !G8t.test(t.funcName), i = !n || t.funcName === "\\widehat" || t.funcName === "\\widetilde" || t.funcName === "\\widecheck"; + var r = ck(e[0]), n = !Q8t.test(t.funcName), i = !n || t.funcName === "\\widehat" || t.funcName === "\\widetilde" || t.funcName === "\\widecheck"; return { type: "accent", mode: t.parser.mode, @@ -56400,8 +56344,8 @@ Ct({ base: r }; }, - htmlBuilder: PN, - mathmlBuilder: zue + htmlBuilder: DN, + mathmlBuilder: Bue }); Ct({ type: "accent", @@ -56423,8 +56367,8 @@ Ct({ base: r }; }, - htmlBuilder: PN, - mathmlBuilder: zue + htmlBuilder: DN, + mathmlBuilder: Bue }); Ct({ type: "accentUnder", @@ -56467,7 +56411,7 @@ Ct({ return n.setAttribute("accentunder", "true"), n; } }); -var bO = (t) => { +var yO = (t) => { var e = new lt.MathNode("mpadded", t ? [t] : []); return e.setAttribute("width", "+0.6em"), e.setAttribute("lspace", "0.3em"), e; }; @@ -56563,26 +56507,26 @@ Ct({ r.setAttribute("minsize", t.label.charAt(0) === "x" ? "1.75em" : "3.0em"); var n; if (t.body) { - var i = bO(an(t.body, e)); + var i = yO(an(t.body, e)); if (t.below) { - var s = bO(an(t.below, e)); + var s = yO(an(t.below, e)); n = new lt.MathNode("munderover", [r, s, i]); } else n = new lt.MathNode("mover", [r, i]); } else if (t.below) { - var a = bO(an(t.below, e)); + var a = yO(an(t.below, e)); n = new lt.MathNode("munder", [r, a]); } else - n = bO(), n = new lt.MathNode("mover", [r, n]); + n = yO(), n = new lt.MathNode("mover", [r, n]); return n; } }); -var H8t = Be.makeSpan; -function Vue(t, e) { +var W8t = Be.makeSpan; +function Fue(t, e) { var r = Mi(t.body, e, !0); - return H8t([t.mclass], r, e); + return W8t([t.mclass], r, e); } -function Uue(t, e) { +function zue(t, e) { var r, n = Va(t.body, e); return t.mclass === "minner" ? r = new lt.MathNode("mpadded", n) : t.mclass === "mord" ? t.isCharacterBox ? (r = n[0], r.type = "mi") : r = new lt.MathNode("mi", n) : (t.isCharacterBox ? (r = n[0], r.type = "mo") : r = new lt.MathNode("mo", n), t.mclass === "mbin" ? (r.attributes.lspace = "0.22em", r.attributes.rspace = "0.22em") : t.mclass === "mpunct" ? (r.attributes.lspace = "0em", r.attributes.rspace = "0.17em") : t.mclass === "mopen" || t.mclass === "mclose" ? (r.attributes.lspace = "0em", r.attributes.rspace = "0em") : t.mclass === "minner" && (r.attributes.lspace = "0.0556em", r.attributes.width = "+0.1111em")), r; } @@ -56606,10 +56550,10 @@ Ct({ isCharacterBox: Gt.isCharacterBox(i) }; }, - htmlBuilder: Vue, - mathmlBuilder: Uue + htmlBuilder: Fue, + mathmlBuilder: zue }); -var JT = (t) => { +var jT = (t) => { var e = t.type === "ordgroup" && t.body.length ? t.body[0] : t; return e.type === "atom" && (e.family === "bin" || e.family === "rel") ? "m" + e.family : "mord"; }; @@ -56626,7 +56570,7 @@ Ct({ return { type: "mclass", mode: r.mode, - mclass: JT(e[0]), + mclass: jT(e[0]), body: ri(e[1]), isCharacterBox: Gt.isCharacterBox(e[1]) }; @@ -56643,7 +56587,7 @@ Ct({ parser: r, funcName: n } = t, i = e[1], s = e[0], a; - n !== "\\stackrel" ? a = JT(i) : a = "mrel"; + n !== "\\stackrel" ? a = jT(i) : a = "mrel"; var o = { type: "op", mode: i.mode, @@ -56668,8 +56612,8 @@ Ct({ isCharacterBox: Gt.isCharacterBox(l) }; }, - htmlBuilder: Vue, - mathmlBuilder: Uue + htmlBuilder: Fue, + mathmlBuilder: zue }); Ct({ type: "pmb", @@ -56685,7 +56629,7 @@ Ct({ return { type: "pmb", mode: r.mode, - mclass: JT(e[0]), + mclass: jT(e[0]), body: ri(e[0]) }; }, @@ -56698,7 +56642,7 @@ Ct({ return n.setAttribute("style", "text-shadow: 0.02em 0.01em 0.04px"), n; } }); -var X8t = { +var G8t = { ">": "\\\\cdrightarrow", "<": "\\\\cdleftarrow", "=": "\\\\cdlongequal", @@ -56706,14 +56650,14 @@ var X8t = { V: "\\downarrow", "|": "\\Vert", ".": "no arrow" -}, KY = () => ({ +}, XY = () => ({ type: "styling", body: [], mode: "math", style: "display" -}), JY = (t) => t.type === "textord" && t.text === "@", Z8t = (t, e) => (t.type === "mathord" || t.type === "atom") && t.text === e; -function j8t(t, e, r) { - var n = X8t[t]; +}), ZY = (t) => t.type === "textord" && t.text === "@", H8t = (t, e) => (t.type === "mathord" || t.type === "atom") && t.text === e; +function X8t(t, e, r) { + var n = G8t[t]; switch (n) { case "\\\\cdrightarrow": case "\\\\cdleftarrow": @@ -56750,7 +56694,7 @@ function j8t(t, e, r) { }; } } -function K8t(t) { +function Z8t(t) { var e = []; for (t.gullet.beginGroup(), t.gullet.macros.set("\\cr", "\\\\\\relax"), t.gullet.beginGroup(); ; ) { e.push(t.parseExpression(!1, "\\\\")), t.gullet.endGroup(), t.gullet.beginGroup(); @@ -56764,12 +56708,12 @@ function K8t(t) { throw new ct("Expected \\\\ or \\cr or \\end", t.nextToken); } for (var n = [], i = [n], s = 0; s < e.length; s++) { - for (var a = e[s], o = KY(), l = 0; l < a.length; l++) - if (!JY(a[l])) + for (var a = e[s], o = XY(), l = 0; l < a.length; l++) + if (!ZY(a[l])) o.body.push(a[l]); else { n.push(o), l += 1; - var u = IN(a[l]).text, h = new Array(2); + var u = MN(a[l]).text, h = new Array(2); if (h[0] = { type: "ordgroup", mode: "math", @@ -56782,11 +56726,11 @@ function K8t(t) { if ("<>AV".indexOf(u) > -1) for (var f = 0; f < 2; f++) { for (var d = !0, p = l + 1; p < a.length; p++) { - if (Z8t(a[p], u)) { + if (H8t(a[p], u)) { d = !1, l = p; break; } - if (JY(a[p])) + if (ZY(a[p])) throw new ct("Missing a " + u + " character to complete a CD arrow.", a[p]); h[f].body.push(a[p]); } @@ -56795,13 +56739,13 @@ function K8t(t) { } else throw new ct('Expected one of "<>AV=|." after @', a[l]); - var g = j8t(u, h, t), m = { + var g = X8t(u, h, t), m = { type: "styling", body: [g], mode: "math", style: "display" }; - n.push(m), o = KY(); + n.push(m), o = XY(); } s % 2 === 0 ? n.push(o) : n.shift(), n = [], i.push(n); } @@ -56901,10 +56845,10 @@ Ct({ }; } }); -var que = (t, e) => { +var Vue = (t, e) => { var r = Mi(t.body, e.withColor(t.color), !1); return Be.makeFragment(r); -}, Yue = (t, e) => { +}, Uue = (t, e) => { var r = Va(t.body, e.withColor(t.color)), n = new lt.MathNode("mstyle", r); return n.setAttribute("mathcolor", t.color), n; }; @@ -56927,8 +56871,8 @@ Ct({ body: ri(i) }; }, - htmlBuilder: que, - mathmlBuilder: Yue + htmlBuilder: Vue, + mathmlBuilder: Uue }); Ct({ type: "color", @@ -56952,8 +56896,8 @@ Ct({ body: s }; }, - htmlBuilder: que, - mathmlBuilder: Yue + htmlBuilder: Vue, + mathmlBuilder: Uue }); Ct({ type: "cr", @@ -56983,7 +56927,7 @@ Ct({ return t.newLine && (r.setAttribute("linebreak", "newline"), t.size && r.setAttribute("height", vt(Mn(t.size, e)))), r; } }); -var DL = { +var LL = { "\\global": "\\global", "\\long": "\\\\globallong", "\\\\globallong": "\\\\globallong", @@ -56993,15 +56937,15 @@ var DL = { "\\xdef": "\\xdef", "\\let": "\\\\globallet", "\\futurelet": "\\\\globalfuture" -}, Que = (t) => { +}, que = (t) => { var e = t.text; if (/^(?:[\\{}$&#^_]|EOF)$/.test(e)) throw new ct("Expected a control sequence", t); return e; -}, J8t = (t) => { +}, j8t = (t) => { var e = t.gullet.popToken(); return e.text === "=" && (e = t.gullet.popToken(), e.text === " " && (e = t.gullet.popToken())), e; -}, Wue = (t, e, r, n) => { +}, Yue = (t, e, r, n) => { var i = t.gullet.macros.get(r.text); i == null && (r.noexpand = !0, i = { tokens: [r], @@ -57027,8 +56971,8 @@ Ct({ } = t; e.consumeSpaces(); var n = e.fetch(); - if (DL[n.text]) - return (r === "\\global" || r === "\\\\globallong") && (n.text = DL[n.text]), gr(e.parseFunction(), "internal"); + if (LL[n.text]) + return (r === "\\global" || r === "\\\\globallong") && (n.text = LL[n.text]), gr(e.parseFunction(), "internal"); throw new ct("Invalid token after macro prefix", n); } }); @@ -57070,7 +57014,7 @@ Ct({ tokens: l, numArgs: s, delimiters: o - }, r === DL[r]), { + }, r === LL[r]), { type: "internal", mode: e.mode }; @@ -57091,10 +57035,10 @@ Ct({ var { parser: e, funcName: r - } = t, n = Que(e.gullet.popToken()); + } = t, n = que(e.gullet.popToken()); e.gullet.consumeSpaces(); - var i = J8t(e); - return Wue(e, n, i, r === "\\\\globallet"), { + var i = j8t(e); + return Yue(e, n, i, r === "\\\\globallet"), { type: "internal", mode: e.mode }; @@ -57115,33 +57059,33 @@ Ct({ var { parser: e, funcName: r - } = t, n = Que(e.gullet.popToken()), i = e.gullet.popToken(), s = e.gullet.popToken(); - return Wue(e, n, s, r === "\\\\globalfuture"), e.gullet.pushToken(s), e.gullet.pushToken(i), { + } = t, n = que(e.gullet.popToken()), i = e.gullet.popToken(), s = e.gullet.popToken(); + return Yue(e, n, s, r === "\\\\globalfuture"), e.gullet.pushToken(s), e.gullet.pushToken(i), { type: "internal", mode: e.mode }; } }); var Cv = function(e, r, n) { - var i = fn.math[e] && fn.math[e].replace, s = LN(i || e, r, n); + var i = fn.math[e] && fn.math[e].replace, s = EN(i || e, r, n); if (!s) throw new Error("Unsupported symbol " + e + " and font size " + r + "."); return s; -}, $N = function(e, r, n, i) { +}, NN = function(e, r, n, i) { var s = n.havingBaseStyle(r), a = Be.makeSpan(i.concat(s.sizingClasses(n)), [e], n), o = s.sizeMultiplier / n.sizeMultiplier; return a.height *= o, a.depth *= o, a.maxFontSize = s.sizeMultiplier, a; -}, Gue = function(e, r, n) { +}, Que = function(e, r, n) { var i = r.havingBaseStyle(n), s = (1 - r.sizeMultiplier / i.sizeMultiplier) * r.fontMetrics().axisHeight; e.classes.push("delimcenter"), e.style.top = vt(s), e.height -= s, e.depth += s; -}, eLt = function(e, r, n, i, s, a) { - var o = Be.makeSymbol(e, "Main-Regular", s, i), l = $N(o, r, i, a); - return n && Gue(l, i, r), l; -}, tLt = function(e, r, n, i) { +}, K8t = function(e, r, n, i, s, a) { + var o = Be.makeSymbol(e, "Main-Regular", s, i), l = NN(o, r, i, a); + return n && Que(l, i, r), l; +}, J8t = function(e, r, n, i) { return Be.makeSymbol(e, "Size" + r + "-Regular", n, i); -}, Hue = function(e, r, n, i, s, a) { - var o = tLt(e, r, s, i), l = $N(Be.makeSpan(["delimsizing", "size" + r], [o], i), Xt.TEXT, i, a); - return n && Gue(l, i, Xt.TEXT), l; -}, x_ = function(e, r, n) { +}, Wue = function(e, r, n, i, s, a) { + var o = J8t(e, r, s, i), l = NN(Be.makeSpan(["delimsizing", "size" + r], [o], i), Xt.TEXT, i, a); + return n && Que(l, i, Xt.TEXT), l; +}, y_ = function(e, r, n) { var i; r === "Size1-Regular" ? i = "delim-size1" : i = "delim-size4"; var s = Be.makeSpan(["delimsizinginner", i], [Be.makeSpan([], [Be.makeSymbol(e, r, n)])]); @@ -57149,8 +57093,8 @@ var Cv = function(e, r, n) { type: "elem", elem: s }; -}, w_ = function(e, r, n) { - var i = Oc["Size4-Regular"][e.charCodeAt(0)] ? Oc["Size4-Regular"][e.charCodeAt(0)][4] : Oc["Size1-Regular"][e.charCodeAt(0)][4], s = new Sf("inner", o8t(e, Math.round(1e3 * r))), a = new Wu([s], { +}, b_ = function(e, r, n) { + var i = Oc["Size4-Regular"][e.charCodeAt(0)] ? Oc["Size4-Regular"][e.charCodeAt(0)][4] : Oc["Size1-Regular"][e.charCodeAt(0)][4], s = new Sf("inner", s8t(e, Math.round(1e3 * r))), a = new Wu([s], { width: vt(i), height: vt(r), style: "width:" + vt(i), @@ -57161,14 +57105,14 @@ var Cv = function(e, r, n) { type: "elem", elem: o }; -}, NL = 8e-3, xO = { +}, RL = 8e-3, bO = { type: "kern", - size: -1 * NL -}, rLt = ["|", "\\lvert", "\\rvert", "\\vert"], nLt = ["\\|", "\\lVert", "\\rVert", "\\Vert"], Xue = function(e, r, n, i, s, a) { + size: -1 * RL +}, eLt = ["|", "\\lvert", "\\rvert", "\\vert"], tLt = ["\\|", "\\lVert", "\\rVert", "\\Vert"], Gue = function(e, r, n, i, s, a) { var o, l, u, h, f = "", d = 0; o = u = h = e, l = null; var p = "Size1-Regular"; - e === "\\uparrow" ? u = h = "\u23D0" : e === "\\Uparrow" ? u = h = "\u2016" : e === "\\downarrow" ? o = u = "\u23D0" : e === "\\Downarrow" ? o = u = "\u2016" : e === "\\updownarrow" ? (o = "\\uparrow", u = "\u23D0", h = "\\downarrow") : e === "\\Updownarrow" ? (o = "\\Uparrow", u = "\u2016", h = "\\Downarrow") : Gt.contains(rLt, e) ? (u = "\u2223", f = "vert", d = 333) : Gt.contains(nLt, e) ? (u = "\u2225", f = "doublevert", d = 556) : e === "[" || e === "\\lbrack" ? (o = "\u23A1", u = "\u23A2", h = "\u23A3", p = "Size4-Regular", f = "lbrack", d = 667) : e === "]" || e === "\\rbrack" ? (o = "\u23A4", u = "\u23A5", h = "\u23A6", p = "Size4-Regular", f = "rbrack", d = 667) : e === "\\lfloor" || e === "\u230A" ? (u = o = "\u23A2", h = "\u23A3", p = "Size4-Regular", f = "lfloor", d = 667) : e === "\\lceil" || e === "\u2308" ? (o = "\u23A1", u = h = "\u23A2", p = "Size4-Regular", f = "lceil", d = 667) : e === "\\rfloor" || e === "\u230B" ? (u = o = "\u23A5", h = "\u23A6", p = "Size4-Regular", f = "rfloor", d = 667) : e === "\\rceil" || e === "\u2309" ? (o = "\u23A4", u = h = "\u23A5", p = "Size4-Regular", f = "rceil", d = 667) : e === "(" || e === "\\lparen" ? (o = "\u239B", u = "\u239C", h = "\u239D", p = "Size4-Regular", f = "lparen", d = 875) : e === ")" || e === "\\rparen" ? (o = "\u239E", u = "\u239F", h = "\u23A0", p = "Size4-Regular", f = "rparen", d = 875) : e === "\\{" || e === "\\lbrace" ? (o = "\u23A7", l = "\u23A8", h = "\u23A9", u = "\u23AA", p = "Size4-Regular") : e === "\\}" || e === "\\rbrace" ? (o = "\u23AB", l = "\u23AC", h = "\u23AD", u = "\u23AA", p = "Size4-Regular") : e === "\\lgroup" || e === "\u27EE" ? (o = "\u23A7", h = "\u23A9", u = "\u23AA", p = "Size4-Regular") : e === "\\rgroup" || e === "\u27EF" ? (o = "\u23AB", h = "\u23AD", u = "\u23AA", p = "Size4-Regular") : e === "\\lmoustache" || e === "\u23B0" ? (o = "\u23A7", h = "\u23AD", u = "\u23AA", p = "Size4-Regular") : (e === "\\rmoustache" || e === "\u23B1") && (o = "\u23AB", h = "\u23A9", u = "\u23AA", p = "Size4-Regular"); + e === "\\uparrow" ? u = h = "\u23D0" : e === "\\Uparrow" ? u = h = "\u2016" : e === "\\downarrow" ? o = u = "\u23D0" : e === "\\Downarrow" ? o = u = "\u2016" : e === "\\updownarrow" ? (o = "\\uparrow", u = "\u23D0", h = "\\downarrow") : e === "\\Updownarrow" ? (o = "\\Uparrow", u = "\u2016", h = "\\Downarrow") : Gt.contains(eLt, e) ? (u = "\u2223", f = "vert", d = 333) : Gt.contains(tLt, e) ? (u = "\u2225", f = "doublevert", d = 556) : e === "[" || e === "\\lbrack" ? (o = "\u23A1", u = "\u23A2", h = "\u23A3", p = "Size4-Regular", f = "lbrack", d = 667) : e === "]" || e === "\\rbrack" ? (o = "\u23A4", u = "\u23A5", h = "\u23A6", p = "Size4-Regular", f = "rbrack", d = 667) : e === "\\lfloor" || e === "\u230A" ? (u = o = "\u23A2", h = "\u23A3", p = "Size4-Regular", f = "lfloor", d = 667) : e === "\\lceil" || e === "\u2308" ? (o = "\u23A1", u = h = "\u23A2", p = "Size4-Regular", f = "lceil", d = 667) : e === "\\rfloor" || e === "\u230B" ? (u = o = "\u23A5", h = "\u23A6", p = "Size4-Regular", f = "rfloor", d = 667) : e === "\\rceil" || e === "\u2309" ? (o = "\u23A4", u = h = "\u23A5", p = "Size4-Regular", f = "rceil", d = 667) : e === "(" || e === "\\lparen" ? (o = "\u239B", u = "\u239C", h = "\u239D", p = "Size4-Regular", f = "lparen", d = 875) : e === ")" || e === "\\rparen" ? (o = "\u239E", u = "\u239F", h = "\u23A0", p = "Size4-Regular", f = "rparen", d = 875) : e === "\\{" || e === "\\lbrace" ? (o = "\u23A7", l = "\u23A8", h = "\u23A9", u = "\u23AA", p = "Size4-Regular") : e === "\\}" || e === "\\rbrace" ? (o = "\u23AB", l = "\u23AC", h = "\u23AD", u = "\u23AA", p = "Size4-Regular") : e === "\\lgroup" || e === "\u27EE" ? (o = "\u23A7", h = "\u23A9", u = "\u23AA", p = "Size4-Regular") : e === "\\rgroup" || e === "\u27EF" ? (o = "\u23AB", h = "\u23AD", u = "\u23AA", p = "Size4-Regular") : e === "\\lmoustache" || e === "\u23B0" ? (o = "\u23A7", h = "\u23AD", u = "\u23AA", p = "Size4-Regular") : (e === "\\rmoustache" || e === "\u23B1") && (o = "\u23AB", h = "\u23A9", u = "\u23AA", p = "Size4-Regular"); var g = Cv(o, p, s), m = g.height + g.depth, v = Cv(u, p, s), y = v.height + v.depth, b = Cv(h, p, s), w = b.height + b.depth, O = 0, S = 1; if (l !== null) { var C = Cv(l, p, s); @@ -57178,7 +57122,7 @@ var Cv = function(e, r, n) { n && (R *= i.sizeMultiplier); var _ = E / 2 - R, A = []; if (f.length > 0) { - var $ = E - m - w, k = Math.round(E * 1e3), N = l8t(f, Math.round($ * 1e3)), M = new Sf(f, N), I = (d / 1e3).toFixed(3) + "em", D = (k / 1e3).toFixed(3) + "em", P = new Wu([M], { + var $ = E - m - w, k = Math.round(E * 1e3), N = a8t(f, Math.round($ * 1e3)), M = new Sf(f, N), I = (d / 1e3).toFixed(3) + "em", D = (k / 1e3).toFixed(3) + "em", P = new Wu([M], { width: I, height: D, viewBox: "0 0 " + d + " " + k @@ -57188,43 +57132,43 @@ var Cv = function(e, r, n) { elem: F }); } else { - if (A.push(x_(h, p, s)), A.push(xO), l === null) { - var B = E - m - w + 2 * NL; - A.push(w_(u, B, i)); + if (A.push(y_(h, p, s)), A.push(bO), l === null) { + var B = E - m - w + 2 * RL; + A.push(b_(u, B, i)); } else { - var V = (E - m - w - O) / 2 + 2 * NL; - A.push(w_(u, V, i)), A.push(xO), A.push(x_(l, p, s)), A.push(xO), A.push(w_(u, V, i)); + var V = (E - m - w - O) / 2 + 2 * RL; + A.push(b_(u, V, i)), A.push(bO), A.push(y_(l, p, s)), A.push(bO), A.push(b_(u, V, i)); } - A.push(xO), A.push(x_(o, p, s)); + A.push(bO), A.push(y_(o, p, s)); } var Y = i.havingBaseStyle(Xt.TEXT), G = Be.makeVList({ positionType: "bottom", positionData: _, children: A }, Y); - return $N(Be.makeSpan(["delimsizing", "mult"], [G], Y), Xt.TEXT, i, a); -}, O_ = 80, k_ = 0.08, S_ = function(e, r, n, i, s) { - var a = a8t(e, i, n), o = new Sf(e, a), l = new Wu([o], { + return NN(Be.makeSpan(["delimsizing", "mult"], [G], Y), Xt.TEXT, i, a); +}, x_ = 80, w_ = 0.08, O_ = function(e, r, n, i, s) { + var a = i8t(e, i, n), o = new Sf(e, a), l = new Wu([o], { width: "400em", height: vt(r), viewBox: "0 0 400000 " + n, preserveAspectRatio: "xMinYMin slice" }); return Be.makeSvgSpan(["hide-tail"], [l], s); -}, iLt = function(e, r) { - var n = r.havingBaseSizing(), i = Jue("\\surd", e * n.sizeMultiplier, Kue, n), s = n.sizeMultiplier, a = Math.max(0, r.minRuleThickness - r.fontMetrics().sqrtRuleThickness), o, l = 0, u = 0, h = 0, f; - return i.type === "small" ? (h = 1e3 + 1e3 * a + O_, e < 1 ? s = 1 : e < 1.4 && (s = 0.7), l = (1 + a + k_) / s, u = (1 + a) / s, o = S_("sqrtMain", l, h, a, r), o.style.minWidth = "0.853em", f = 0.833 / s) : i.type === "large" ? (h = (1e3 + O_) * hy[i.size], u = (hy[i.size] + a) / s, l = (hy[i.size] + a + k_) / s, o = S_("sqrtSize" + i.size, l, h, a, r), o.style.minWidth = "1.02em", f = 1 / s) : (l = e + a + k_, u = e + a, h = Math.floor(1e3 * e + a) + O_, o = S_("sqrtTall", l, h, a, r), o.style.minWidth = "0.742em", f = 1.056), o.height = u, o.style.height = vt(l), { +}, rLt = function(e, r) { + var n = r.havingBaseSizing(), i = jue("\\surd", e * n.sizeMultiplier, Zue, n), s = n.sizeMultiplier, a = Math.max(0, r.minRuleThickness - r.fontMetrics().sqrtRuleThickness), o, l = 0, u = 0, h = 0, f; + return i.type === "small" ? (h = 1e3 + 1e3 * a + x_, e < 1 ? s = 1 : e < 1.4 && (s = 0.7), l = (1 + a + w_) / s, u = (1 + a) / s, o = O_("sqrtMain", l, h, a, r), o.style.minWidth = "0.853em", f = 0.833 / s) : i.type === "large" ? (h = (1e3 + x_) * hy[i.size], u = (hy[i.size] + a) / s, l = (hy[i.size] + a + w_) / s, o = O_("sqrtSize" + i.size, l, h, a, r), o.style.minWidth = "1.02em", f = 1 / s) : (l = e + a + w_, u = e + a, h = Math.floor(1e3 * e + a) + x_, o = O_("sqrtTall", l, h, a, r), o.style.minWidth = "0.742em", f = 1.056), o.height = u, o.style.height = vt(l), { span: o, advanceWidth: f, ruleWidth: (r.fontMetrics().sqrtRuleThickness + a) * s }; -}, Zue = ["(", "\\lparen", ")", "\\rparen", "[", "\\lbrack", "]", "\\rbrack", "\\{", "\\lbrace", "\\}", "\\rbrace", "\\lfloor", "\\rfloor", "\u230A", "\u230B", "\\lceil", "\\rceil", "\u2308", "\u2309", "\\surd"], sLt = ["\\uparrow", "\\downarrow", "\\updownarrow", "\\Uparrow", "\\Downarrow", "\\Updownarrow", "|", "\\|", "\\vert", "\\Vert", "\\lvert", "\\rvert", "\\lVert", "\\rVert", "\\lgroup", "\\rgroup", "\u27EE", "\u27EF", "\\lmoustache", "\\rmoustache", "\u23B0", "\u23B1"], jue = ["<", ">", "\\langle", "\\rangle", "/", "\\backslash", "\\lt", "\\gt"], hy = [0, 1.2, 1.8, 2.4, 3], aLt = function(e, r, n, i, s) { - if (e === "<" || e === "\\lt" || e === "\u27E8" ? e = "\\langle" : (e === ">" || e === "\\gt" || e === "\u27E9") && (e = "\\rangle"), Gt.contains(Zue, e) || Gt.contains(jue, e)) - return Hue(e, r, !1, n, i, s); - if (Gt.contains(sLt, e)) - return Xue(e, hy[r], !1, n, i, s); +}, Hue = ["(", "\\lparen", ")", "\\rparen", "[", "\\lbrack", "]", "\\rbrack", "\\{", "\\lbrace", "\\}", "\\rbrace", "\\lfloor", "\\rfloor", "\u230A", "\u230B", "\\lceil", "\\rceil", "\u2308", "\u2309", "\\surd"], nLt = ["\\uparrow", "\\downarrow", "\\updownarrow", "\\Uparrow", "\\Downarrow", "\\Updownarrow", "|", "\\|", "\\vert", "\\Vert", "\\lvert", "\\rvert", "\\lVert", "\\rVert", "\\lgroup", "\\rgroup", "\u27EE", "\u27EF", "\\lmoustache", "\\rmoustache", "\u23B0", "\u23B1"], Xue = ["<", ">", "\\langle", "\\rangle", "/", "\\backslash", "\\lt", "\\gt"], hy = [0, 1.2, 1.8, 2.4, 3], iLt = function(e, r, n, i, s) { + if (e === "<" || e === "\\lt" || e === "\u27E8" ? e = "\\langle" : (e === ">" || e === "\\gt" || e === "\u27E9") && (e = "\\rangle"), Gt.contains(Hue, e) || Gt.contains(Xue, e)) + return Wue(e, r, !1, n, i, s); + if (Gt.contains(nLt, e)) + return Gue(e, hy[r], !1, n, i, s); throw new ct("Illegal delimiter: '" + e + "'"); -}, oLt = [{ +}, sLt = [{ type: "small", style: Xt.SCRIPTSCRIPT }, { @@ -57245,7 +57189,7 @@ var Cv = function(e, r, n) { }, { type: "large", size: 4 -}], lLt = [{ +}], aLt = [{ type: "small", style: Xt.SCRIPTSCRIPT }, { @@ -57256,7 +57200,7 @@ var Cv = function(e, r, n) { style: Xt.TEXT }, { type: "stack" -}], Kue = [{ +}], Zue = [{ type: "small", style: Xt.SCRIPTSCRIPT }, { @@ -57279,7 +57223,7 @@ var Cv = function(e, r, n) { size: 4 }, { type: "stack" -}], cLt = function(e) { +}], oLt = function(e) { if (e.type === "small") return "Main-Regular"; if (e.type === "large") @@ -57287,9 +57231,9 @@ var Cv = function(e, r, n) { if (e.type === "stack") return "Size4-Regular"; throw new Error("Add support for delim type '" + e.type + "' here."); -}, Jue = function(e, r, n, i) { +}, jue = function(e, r, n, i) { for (var s = Math.min(2, 3 - i.style.size), a = s; a < n.length && n[a].type !== "stack"; a++) { - var o = Cv(e, cLt(n[a]), "math"), l = o.height + o.depth; + var o = Cv(e, oLt(n[a]), "math"), l = o.height + o.depth; if (n[a].type === "small") { var u = i.havingBaseStyle(n[a].style); l *= u.sizeMultiplier; @@ -57298,25 +57242,25 @@ var Cv = function(e, r, n) { return n[a]; } return n[n.length - 1]; -}, ehe = function(e, r, n, i, s, a) { +}, Kue = function(e, r, n, i, s, a) { e === "<" || e === "\\lt" || e === "\u27E8" ? e = "\\langle" : (e === ">" || e === "\\gt" || e === "\u27E9") && (e = "\\rangle"); var o; - Gt.contains(jue, e) ? o = oLt : Gt.contains(Zue, e) ? o = Kue : o = lLt; - var l = Jue(e, r, o, i); - return l.type === "small" ? eLt(e, l.style, n, i, s, a) : l.type === "large" ? Hue(e, l.size, n, i, s, a) : Xue(e, r, n, i, s, a); -}, uLt = function(e, r, n, i, s, a) { + Gt.contains(Xue, e) ? o = sLt : Gt.contains(Hue, e) ? o = Zue : o = aLt; + var l = jue(e, r, o, i); + return l.type === "small" ? K8t(e, l.style, n, i, s, a) : l.type === "large" ? Wue(e, l.size, n, i, s, a) : Gue(e, r, n, i, s, a); +}, lLt = function(e, r, n, i, s, a) { var o = i.fontMetrics().axisHeight * i.sizeMultiplier, l = 901, u = 5 / i.fontMetrics().ptPerEm, h = Math.max(r - o, n + o), f = Math.max( h / 500 * l, 2 * h - u ); - return ehe(e, f, !0, i, s, a); + return Kue(e, f, !0, i, s, a); }, Du = { - sqrtImage: iLt, - sizedDelim: aLt, + sqrtImage: rLt, + sizedDelim: iLt, sizeToMaxHeight: hy, - customSizedDelim: ehe, - leftRightDelim: uLt -}, eQ = { + customSizedDelim: Kue, + leftRightDelim: lLt +}, jY = { "\\bigl": { mclass: "mopen", size: 1 @@ -57381,10 +57325,10 @@ var Cv = function(e, r, n) { mclass: "mord", size: 4 } -}, hLt = ["(", "\\lparen", ")", "\\rparen", "[", "\\lbrack", "]", "\\rbrack", "\\{", "\\lbrace", "\\}", "\\rbrace", "\\lfloor", "\\rfloor", "\u230A", "\u230B", "\\lceil", "\\rceil", "\u2308", "\u2309", "<", ">", "\\langle", "\u27E8", "\\rangle", "\u27E9", "\\lt", "\\gt", "\\lvert", "\\rvert", "\\lVert", "\\rVert", "\\lgroup", "\\rgroup", "\u27EE", "\u27EF", "\\lmoustache", "\\rmoustache", "\u23B0", "\u23B1", "/", "\\backslash", "|", "\\vert", "\\|", "\\Vert", "\\uparrow", "\\Uparrow", "\\downarrow", "\\Downarrow", "\\updownarrow", "\\Updownarrow", "."]; -function eC(t, e) { - var r = KT(t); - if (r && Gt.contains(hLt, r.text)) +}, cLt = ["(", "\\lparen", ")", "\\rparen", "[", "\\lbrack", "]", "\\rbrack", "\\{", "\\lbrace", "\\}", "\\rbrace", "\\lfloor", "\\rfloor", "\u230A", "\u230B", "\\lceil", "\\rceil", "\u2308", "\u2309", "<", ">", "\\langle", "\u27E8", "\\rangle", "\u27E9", "\\lt", "\\gt", "\\lvert", "\\rvert", "\\lVert", "\\rVert", "\\lgroup", "\\rgroup", "\u27EE", "\u27EF", "\\lmoustache", "\\rmoustache", "\u23B0", "\u23B1", "/", "\\backslash", "|", "\\vert", "\\|", "\\Vert", "\\uparrow", "\\Uparrow", "\\downarrow", "\\Downarrow", "\\updownarrow", "\\Updownarrow", "."]; +function KT(t, e) { + var r = ZT(t); + if (r && Gt.contains(cLt, r.text)) return r; throw r ? new ct("Invalid delimiter '" + r.text + "' after '" + e.funcName + "'", t) : new ct("Invalid delimiter type '" + t.type + "'", t); } @@ -57396,12 +57340,12 @@ Ct({ argTypes: ["primitive"] }, handler: (t, e) => { - var r = eC(e[0], t); + var r = KT(e[0], t); return { type: "delimsizing", mode: t.parser.mode, - size: eQ[t.funcName].size, - mclass: eQ[t.funcName].mclass, + size: jY[t.funcName].size, + mclass: jY[t.funcName].mclass, delim: r.text }; }, @@ -57415,7 +57359,7 @@ Ct({ return r.setAttribute("minsize", n), r.setAttribute("maxsize", n), r; } }); -function tQ(t) { +function KY(t) { if (!t.body) throw new Error("Bug: The leftright ParseNode wasn't fully parsed."); } @@ -57433,7 +57377,7 @@ Ct({ return { type: "leftright-right", mode: t.parser.mode, - delim: eC(e[0], t).text, + delim: KT(e[0], t).text, color: r }; } @@ -57446,7 +57390,7 @@ Ct({ primitive: !0 }, handler: (t, e) => { - var r = eC(e[0], t), n = t.parser; + var r = KT(e[0], t), n = t.parser; ++n.leftrightDepth; var i = n.parseExpression(!1); --n.leftrightDepth, n.expect("\\right", !1); @@ -57461,7 +57405,7 @@ Ct({ }; }, htmlBuilder: (t, e) => { - tQ(t); + KY(t); for (var r = Mi(t.body, e, !0, ["mopen", "mclose"]), n = 0, i = 0, s = !1, a = 0; a < r.length; a++) r[a].isMiddle ? s = !0 : (n = Math.max(r[a].height, n), i = Math.max(r[a].depth, i)); n *= e.sizeMultiplier, i *= e.sizeMultiplier; @@ -57481,7 +57425,7 @@ Ct({ return r.push(f), Be.makeSpan(["minner"], r, e); }, mathmlBuilder: (t, e) => { - tQ(t); + KY(t); var r = Va(t.body, e); if (t.left !== ".") { var n = new lt.MathNode("mo", [Ko(t.left, t.mode)]); @@ -57491,7 +57435,7 @@ Ct({ var i = new lt.MathNode("mo", [Ko(t.right, t.mode)]); i.setAttribute("fence", "true"), t.rightColor && i.setAttribute("mathcolor", t.rightColor), r.push(i); } - return DN(r); + return LN(r); } }); Ct({ @@ -57502,7 +57446,7 @@ Ct({ primitive: !0 }, handler: (t, e) => { - var r = eC(e[0], t); + var r = KT(e[0], t); if (!t.parser.leftrightDepth) throw new ct("\\middle without preceding \\left", r); return { @@ -57530,7 +57474,7 @@ Ct({ return n.setAttribute("fence", "true"), n.setAttribute("lspace", "0.05em"), n.setAttribute("rspace", "0.05em"), n; } }); -var BN = (t, e) => { +var IN = (t, e) => { var r = Be.wrapFragment(Lr(t.body, e), e), n = t.label.slice(1), i = e.sizeMultiplier, s, a = 0, o = Gt.isCharacterBox(t.body); if (n === "sout") s = Be.makeSpan(["stretchy", "sout"]), s.height = e.fontMetrics().defaultRuleThickness / i, a = -0.5 * e.fontMetrics().xHeight; @@ -57545,7 +57489,7 @@ var BN = (t, e) => { i = i / h.sizeMultiplier; var f = r.height + r.depth + l + u; r.style.paddingLeft = vt(f / 2 + l); - var d = Math.floor(1e3 * f * i), p = i8t(d), g = new Wu([new Sf("phase", p)], { + var d = Math.floor(1e3 * f * i), p = r8t(d), g = new Wu([new Sf("phase", p)], { width: "400em", height: vt(d / 1e3), viewBox: "0 0 400000 " + d, @@ -57597,7 +57541,7 @@ var BN = (t, e) => { }, e); } return /cancel/.test(n) && (b.height = r.height, b.depth = r.depth), /cancel/.test(n) && !o ? Be.makeSpan(["mord", "cancel-lap"], [b], e) : Be.makeSpan(["mord"], [b], e); -}, FN = (t, e) => { +}, PN = (t, e) => { var r = 0, n = new lt.MathNode(t.label.indexOf("colorbox") > -1 ? "mpadded" : "menclose", [an(t.body, e)]); switch (t.label) { case "\\cancel": @@ -57655,8 +57599,8 @@ Ct({ body: a }; }, - htmlBuilder: BN, - mathmlBuilder: FN + htmlBuilder: IN, + mathmlBuilder: PN }); Ct({ type: "enclose", @@ -57680,8 +57624,8 @@ Ct({ body: o }; }, - htmlBuilder: BN, - mathmlBuilder: FN + htmlBuilder: IN, + mathmlBuilder: PN }); Ct({ type: "enclose", @@ -57721,8 +57665,8 @@ Ct({ body: i }; }, - htmlBuilder: BN, - mathmlBuilder: FN + htmlBuilder: IN, + mathmlBuilder: PN }); Ct({ type: "enclose", @@ -57744,7 +57688,7 @@ Ct({ }; } }); -var the = {}; +var Jue = {}; function Jc(t) { for (var { type: e, @@ -57760,14 +57704,14 @@ function Jc(t) { numOptionalArgs: 0, handler: i }, l = 0; l < r.length; ++l) - the[r[l]] = o; - s && (lk[e] = s), a && (ck[e] = a); + Jue[r[l]] = o; + s && (ok[e] = s), a && (lk[e] = a); } -var rhe = {}; +var ehe = {}; function le(t, e) { - rhe[t] = e; + ehe[t] = e; } -function rQ(t) { +function JY(t) { var e = []; t.consumeSpaces(); var r = t.fetch().text; @@ -57775,12 +57719,12 @@ function rQ(t) { t.consume(), e.push(r === "\\hdashline"), t.consumeSpaces(), r = t.fetch().text; return e; } -var tC = (t) => { +var JT = (t) => { var e = t.parser.settings; if (!e.displayMode) throw new ct("{" + t.envName + "} can be used only in display mode."); }; -function zN(t) { +function $N(t) { if (t.indexOf("ed") === -1) return t.indexOf("*") === -1; } @@ -57812,7 +57756,7 @@ function qf(t, e, r) { function O() { b && (t.gullet.macros.get("\\df@tag") ? (b.push(t.subparse([new zo("\\df@tag")])), t.gullet.macros.set("\\df@tag", void 0, !0)) : b.push(Boolean(l) && t.gullet.macros.get("\\@eqnsw") === "1")); } - for (w(), y.push(rQ(t)); ; ) { + for (w(), y.push(JY(t)); ; ) { var S = t.parseExpression(!1, u ? "\\end" : "\\\\"); t.gullet.endGroup(), t.gullet.beginGroup(), S = { type: "ordgroup", @@ -57838,7 +57782,7 @@ function qf(t, e, r) { } else if (C === "\\\\") { t.consume(); var T = void 0; - t.gullet.future().text !== " " && (T = t.parseSizeGroup(!0)), v.push(T ? T.value : null), O(), y.push(rQ(t)), g = [], m.push(g), w(); + t.gullet.future().text !== " " && (T = t.parseSizeGroup(!0)), v.push(T ? T.value : null), O(), y.push(JY(t)), g = [], m.push(g), w(); } else throw new ct("Expected & or \\\\ or \\cr or \\end", t.nextToken); } @@ -57857,7 +57801,7 @@ function qf(t, e, r) { leqno: d }; } -function VN(t) { +function BN(t) { return t.slice(0, 1) === "d" ? "display" : "text"; } var eu = function(e, r) { @@ -57962,7 +57906,7 @@ var eu = function(e, r) { children: I }, r); return ce = Be.makeSpan(["tag"], [ce], r), Be.makeFragment([l, ce]); -}, fLt = { +}, uLt = { c: "center ", l: "left ", r: "right " @@ -57979,7 +57923,7 @@ var eu = function(e, r) { var g = e.cols, m = "", v = !1, y = 0, b = g.length; g[0].type === "separator" && (d += "top ", y = 1), g[g.length - 1].type === "separator" && (d += "bottom ", b -= 1); for (var w = y; w < b; w++) - g[w].type === "align" ? (p += fLt[g[w].align], v && (m += "none "), v = !0) : g[w].type === "separator" && v && (m += g[w].separator === "|" ? "solid " : "dashed ", v = !1); + g[w].type === "align" ? (p += uLt[g[w].align], v && (m += "none "), v = !0) : g[w].type === "separator" && v && (m += g[w].separator === "|" ? "solid " : "dashed ", v = !1); h.setAttribute("columnalign", p.trim()), /[sd]/.test(m) && h.setAttribute("columnlines", m.trim()); } if (e.colSeparationType === "align") { @@ -57993,12 +57937,12 @@ var eu = function(e, r) { for (var E = 1; E < L.length - 1; E++) T += L[E].length === 0 ? "none " : L[E][0] ? "dashed " : "solid "; return /[sd]/.test(T) && h.setAttribute("rowlines", T.trim()), d !== "" && (h = new lt.MathNode("menclose", [h]), h.setAttribute("notation", d.trim())), e.arraystretch && e.arraystretch < 1 && (h = new lt.MathNode("mstyle", [h]), h.setAttribute("scriptlevel", "1")), h; -}, nhe = function(e, r) { - e.envName.indexOf("ed") === -1 && tC(e); +}, the = function(e, r) { + e.envName.indexOf("ed") === -1 && JT(e); var n = [], i = e.envName.indexOf("at") > -1 ? "alignat" : "align", s = e.envName === "split", a = qf(e.parser, { cols: n, addJot: !0, - autoTag: s ? void 0 : zN(e.envName), + autoTag: s ? void 0 : $N(e.envName), emptySingleRow: !0, colSeparationType: i, maxNumCols: s ? 2 : void 0, @@ -58047,8 +57991,8 @@ Jc({ numArgs: 1 }, handler(t, e) { - var r = KT(e[0]), n = r ? [e[0]] : gr(e[0], "ordgroup").body, i = n.map(function(a) { - var o = IN(a), l = o.text; + var r = ZT(e[0]), n = r ? [e[0]] : gr(e[0], "ordgroup").body, i = n.map(function(a) { + var o = MN(a), l = o.text; if ("lcr".indexOf(l) !== -1) return { type: "align", @@ -58070,7 +58014,7 @@ Jc({ hskipBeforeAndAfter: !0, maxNumCols: i.length }; - return qf(t.parser, s, VN(t.envName)); + return qf(t.parser, s, BN(t.envName)); }, htmlBuilder: eu, mathmlBuilder: tu @@ -58107,7 +58051,7 @@ Jc({ }]; } } - var s = qf(t.parser, n, VN(t.envName)), a = Math.max(0, ...s.body.map((o) => o.length)); + var s = qf(t.parser, n, BN(t.envName)), a = Math.max(0, ...s.body.map((o) => o.length)); return s.cols = new Array(a).fill({ type: "align", align: r @@ -58145,8 +58089,8 @@ Jc({ numArgs: 1 }, handler(t, e) { - var r = KT(e[0]), n = r ? [e[0]] : gr(e[0], "ordgroup").body, i = n.map(function(a) { - var o = IN(a), l = o.text; + var r = ZT(e[0]), n = r ? [e[0]] : gr(e[0], "ordgroup").body, i = n.map(function(a) { + var o = MN(a), l = o.text; if ("lc".indexOf(l) !== -1) return { type: "align", @@ -58188,7 +58132,7 @@ Jc({ pregap: 0, postgap: 0 }] - }, r = qf(t.parser, e, VN(t.envName)); + }, r = qf(t.parser, e, BN(t.envName)); return { type: "leftright", mode: t.mode, @@ -58207,7 +58151,7 @@ Jc({ props: { numArgs: 0 }, - handler: nhe, + handler: the, htmlBuilder: eu, mathmlBuilder: tu }); @@ -58218,7 +58162,7 @@ Jc({ numArgs: 0 }, handler(t) { - Gt.contains(["gather", "gather*"], t.envName) && tC(t); + Gt.contains(["gather", "gather*"], t.envName) && JT(t); var e = { cols: [{ type: "align", @@ -58226,7 +58170,7 @@ Jc({ }], addJot: !0, colSeparationType: "gather", - autoTag: zN(t.envName), + autoTag: $N(t.envName), emptySingleRow: !0, leqno: t.parser.settings.leqno }; @@ -58241,7 +58185,7 @@ Jc({ props: { numArgs: 1 }, - handler: nhe, + handler: the, htmlBuilder: eu, mathmlBuilder: tu }); @@ -58252,9 +58196,9 @@ Jc({ numArgs: 0 }, handler(t) { - tC(t); + JT(t); var e = { - autoTag: zN(t.envName), + autoTag: $N(t.envName), emptySingleRow: !0, singleRow: !0, maxNumCols: 1, @@ -58272,7 +58216,7 @@ Jc({ numArgs: 0 }, handler(t) { - return tC(t), K8t(t.parser); + return JT(t), Z8t(t.parser); }, htmlBuilder: eu, mathmlBuilder: tu @@ -58291,7 +58235,7 @@ Ct({ throw new ct(t.funcName + " valid only within array environment"); } }); -var nQ = the; +var eQ = Jue; Ct({ type: "environment", names: ["\\begin", "\\end"], @@ -58309,9 +58253,9 @@ Ct({ for (var s = "", a = 0; a < i.body.length; ++a) s += gr(i.body[a], "textord").text; if (n === "\\begin") { - if (!nQ.hasOwnProperty(s)) + if (!eQ.hasOwnProperty(s)) throw new ct("No such environment: " + s, i); - var o = nQ[s], { + var o = eQ[s], { args: l, optArgs: u } = r.parseArguments("\\begin{" + s + "}", o), h = { @@ -58333,13 +58277,13 @@ Ct({ }; } }); -var ihe = (t, e) => { +var rhe = (t, e) => { var r = t.font, n = e.withFont(r); return Lr(t.body, n); -}, she = (t, e) => { +}, nhe = (t, e) => { var r = t.font, n = e.withFont(r); return an(t.body, n); -}, iQ = { +}, tQ = { "\\Bbb": "\\mathbb", "\\bold": "\\mathbf", "\\frak": "\\mathfrak", @@ -58370,16 +58314,16 @@ Ct({ var { parser: r, funcName: n - } = t, i = uk(e[0]), s = n; - return s in iQ && (s = iQ[s]), { + } = t, i = ck(e[0]), s = n; + return s in tQ && (s = tQ[s]), { type: "font", mode: r.mode, font: s.slice(1), body: i }; }, - htmlBuilder: ihe, - mathmlBuilder: she + htmlBuilder: rhe, + mathmlBuilder: nhe }); Ct({ type: "mclass", @@ -58394,7 +58338,7 @@ Ct({ return { type: "mclass", mode: r.mode, - mclass: JT(n), + mclass: jT(n), body: [{ type: "font", mode: r.mode, @@ -58431,14 +58375,14 @@ Ct({ } }; }, - htmlBuilder: ihe, - mathmlBuilder: she + htmlBuilder: rhe, + mathmlBuilder: nhe }); -var ahe = (t, e) => { +var ihe = (t, e) => { var r = e; return t === "display" ? r = r.id >= Xt.SCRIPT.id ? r.text() : Xt.DISPLAY : t === "text" && r.size === Xt.DISPLAY.size ? r = Xt.TEXT : t === "script" ? r = Xt.SCRIPT : t === "scriptscript" && (r = Xt.SCRIPTSCRIPT), r; -}, UN = (t, e) => { - var r = ahe(t.size, e.style), n = r.fracNum(), i = r.fracDen(), s; +}, FN = (t, e) => { + var r = ihe(t.size, e.style), n = r.fracNum(), i = r.fracDen(), s; s = e.havingStyle(n); var a = Lr(t.numer, s, e); if (t.continued) { @@ -58491,7 +58435,7 @@ var ahe = (t, e) => { r.size === Xt.DISPLAY.size ? O = e.fontMetrics().delim1 : r.size === Xt.SCRIPTSCRIPT.size ? O = e.havingStyle(Xt.SCRIPT).fontMetrics().delim2 : O = e.fontMetrics().delim2; var S, C; return t.leftDelim == null ? S = C2(e, ["mopen"]) : S = Du.customSizedDelim(t.leftDelim, O, !0, e.havingStyle(r), t.mode, ["mopen"]), t.continued ? C = Be.makeSpan([]) : t.rightDelim == null ? C = C2(e, ["mclose"]) : C = Du.customSizedDelim(t.rightDelim, O, !0, e.havingStyle(r), t.mode, ["mclose"]), Be.makeSpan(["mord"].concat(s.sizingClasses(e)), [S, Be.makeSpan(["mfrac"], [v]), C], e); -}, qN = (t, e) => { +}, zN = (t, e) => { var r = new lt.MathNode("mfrac", [an(t.numer, e), an(t.denom, e)]); if (!t.hasBarLine) r.setAttribute("linethickness", "0px"); @@ -58499,7 +58443,7 @@ var ahe = (t, e) => { var n = Mn(t.barSize, e); r.setAttribute("linethickness", vt(n)); } - var i = ahe(t.size, e.style); + var i = ihe(t.size, e.style); if (i.size !== e.style.size) { r = new lt.MathNode("mstyle", [r]); var s = i.size === Xt.DISPLAY.size ? "true" : "false"; @@ -58515,7 +58459,7 @@ var ahe = (t, e) => { var l = new lt.MathNode("mo", [new lt.TextNode(t.rightDelim.replace("\\", ""))]); l.setAttribute("fence", "true"), a.push(l); } - return DN(a); + return LN(a); } return r; }; @@ -58587,8 +58531,8 @@ Ct({ barSize: null }; }, - htmlBuilder: UN, - mathmlBuilder: qN + htmlBuilder: FN, + mathmlBuilder: zN }); Ct({ type: "genfrac", @@ -58655,7 +58599,7 @@ Ct({ }; } }); -var sQ = ["display", "text", "script", "scriptscript"], aQ = function(e) { +var rQ = ["display", "text", "script", "scriptscript"], nQ = function(e) { var r = null; return e.length > 0 && (r = e, r = r === "." ? null : r), r; }; @@ -58670,16 +58614,16 @@ Ct({ handler(t, e) { var { parser: r - } = t, n = e[4], i = e[5], s = uk(e[0]), a = s.type === "atom" && s.family === "open" ? aQ(s.text) : null, o = uk(e[1]), l = o.type === "atom" && o.family === "close" ? aQ(o.text) : null, u = gr(e[2], "size"), h, f = null; + } = t, n = e[4], i = e[5], s = ck(e[0]), a = s.type === "atom" && s.family === "open" ? nQ(s.text) : null, o = ck(e[1]), l = o.type === "atom" && o.family === "close" ? nQ(o.text) : null, u = gr(e[2], "size"), h, f = null; u.isBlank ? h = !0 : (f = u.value, h = f.number > 0); var d = "auto", p = e[3]; if (p.type === "ordgroup") { if (p.body.length > 0) { var g = gr(p.body[0], "textord"); - d = sQ[Number(g.text)]; + d = rQ[Number(g.text)]; } } else - p = gr(p, "textord"), d = sQ[Number(p.text)]; + p = gr(p, "textord"), d = rQ[Number(p.text)]; return { type: "genfrac", mode: r.mode, @@ -58693,8 +58637,8 @@ Ct({ size: d }; }, - htmlBuilder: UN, - mathmlBuilder: qN + htmlBuilder: FN, + mathmlBuilder: zN }); Ct({ type: "infix", @@ -58730,7 +58674,7 @@ Ct({ var { parser: r, funcName: n - } = t, i = e[0], s = q7t(gr(e[1], "infix").size), a = e[2], o = s.number > 0; + } = t, i = e[0], s = V7t(gr(e[1], "infix").size), a = e[2], o = s.number > 0; return { type: "genfrac", mode: r.mode, @@ -58744,10 +58688,10 @@ Ct({ size: "auto" }; }, - htmlBuilder: UN, - mathmlBuilder: qN + htmlBuilder: FN, + mathmlBuilder: zN }); -var ohe = (t, e) => { +var she = (t, e) => { var r = e.style, n, i; t.type === "supsub" ? (n = t.sup ? Lr(t.sup, e.havingStyle(r.sup()), e) : Lr(t.sub, e.havingStyle(r.sub()), e), i = gr(t.base, "horizBrace")) : i = gr(t, "horizBrace"); var s = Lr(i.base, e.havingBaseStyle(Xt.DISPLAY)), a = Hu.svgSpan(i, e), o; @@ -58806,7 +58750,7 @@ var ohe = (t, e) => { }, e); } return Be.makeSpan(["mord", i.isOver ? "mover" : "munder"], [o], e); -}, dLt = (t, e) => { +}, hLt = (t, e) => { var r = Hu.mathMLnode(t.label); return new lt.MathNode(t.isOver ? "mover" : "munder", [an(t.base, e), r]); }; @@ -58829,8 +58773,8 @@ Ct({ base: e[0] }; }, - htmlBuilder: ohe, - mathmlBuilder: dLt + htmlBuilder: she, + mathmlBuilder: hLt }); Ct({ type: "href", @@ -59021,7 +58965,7 @@ Ct({ }, mathmlBuilder: (t, e) => Tf(t.mathml, e) }); -var T_ = function(e) { +var k_ = function(e) { if (/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(e)) return { number: +e, @@ -59034,7 +58978,7 @@ var T_ = function(e) { number: +(r[1] + r[2]), unit: r[3] }; - if (!Cue(n)) + if (!Sue(n)) throw new ct("Invalid unit: '" + n.unit + "' in \\includegraphics."); return n; }; @@ -59070,13 +59014,13 @@ Ct({ o = d; break; case "width": - i = T_(d); + i = k_(d); break; case "height": - s = T_(d); + s = k_(d); break; case "totalheight": - a = T_(d); + a = k_(d); break; default: throw new ct("Invalid key: '" + f[0] + "' in \\includegraphics."); @@ -59106,7 +59050,7 @@ Ct({ height: vt(r + n) }; i > 0 && (s.width = vt(i)), n > 0 && (s.verticalAlign = vt(-n)); - var a = new d8t(t.src, t.alt, s); + var a = new h8t(t.src, t.alt, s); return a.height = r, a.depth = n, a; }, mathmlBuilder: (t, e) => { @@ -59221,7 +59165,7 @@ Ct({ throw new ct("Mismatched " + t.funcName); } }); -var oQ = (t, e) => { +var iQ = (t, e) => { switch (e.style.size) { case Xt.DISPLAY.size: return t.display; @@ -59256,15 +59200,15 @@ Ct({ }; }, htmlBuilder: (t, e) => { - var r = oQ(t, e), n = Mi(r, e, !1); + var r = iQ(t, e), n = Mi(r, e, !1); return Be.makeFragment(n); }, mathmlBuilder: (t, e) => { - var r = oQ(t, e); + var r = iQ(t, e); return Tf(r, e); } }); -var lhe = (t, e, r, n, i, s, a) => { +var ahe = (t, e, r, n, i, s, a) => { t = Be.makeSpan([], [t]); var o = r && Gt.isCharacterBox(r), l, u; if (e) { @@ -59360,11 +59304,11 @@ var lhe = (t, e, r, n, i, s, a) => { y.style.marginRight = vt(s), v.unshift(y); } return Be.makeSpan(["mop", "op-limits"], v, n); -}, che = ["\\smallint"], im = (t, e) => { +}, ohe = ["\\smallint"], im = (t, e) => { var r, n, i = !1, s; t.type === "supsub" ? (r = t.sup, n = t.sub, s = gr(t.base, "op"), i = !0) : s = gr(t, "op"); var a = e.style, o = !1; - a.size === Xt.DISPLAY.size && s.symbol && !Gt.contains(che, s.name) && (o = !0); + a.size === Xt.DISPLAY.size && s.symbol && !Gt.contains(ohe, s.name) && (o = !0); var l; if (s.symbol) { var u = o ? "Size2-Regular" : "Size1-Regular", h = ""; @@ -59392,20 +59336,20 @@ var lhe = (t, e, r, n, i, s, a) => { l = Be.makeSpan(["mop"], g, e); } var v = 0, y = 0; - return (l instanceof jo || s.name === "\\oiint" || s.name === "\\oiiint") && !s.suppressBaseShift && (v = (l.height - l.depth) / 2 - e.fontMetrics().axisHeight, y = l.italic), i ? lhe(l, r, n, e, a, y, v) : (v && (l.style.position = "relative", l.style.top = vt(v)), l); + return (l instanceof jo || s.name === "\\oiint" || s.name === "\\oiiint") && !s.suppressBaseShift && (v = (l.height - l.depth) / 2 - e.fontMetrics().axisHeight, y = l.italic), i ? ahe(l, r, n, e, a, y, v) : (v && (l.style.position = "relative", l.style.top = vt(v)), l); }, Cx = (t, e) => { var r; if (t.symbol) - r = new Ro("mo", [Ko(t.name, t.mode)]), Gt.contains(che, t.name) && r.setAttribute("largeop", "false"); + r = new Ro("mo", [Ko(t.name, t.mode)]), Gt.contains(ohe, t.name) && r.setAttribute("largeop", "false"); else if (t.body) r = new Ro("mo", Va(t.body, e)); else { r = new Ro("mi", [new uy(t.name.slice(1))]); var n = new Ro("mo", [Ko("\u2061", "text")]); - t.parentIsSupSub ? r = new Ro("mrow", [r, n]) : r = $ue([r, n]); + t.parentIsSupSub ? r = new Ro("mrow", [r, n]) : r = Iue([r, n]); } return r; -}, pLt = { +}, fLt = { "\u220F": "\\prod", "\u2210": "\\coprod", "\u2211": "\\sum", @@ -59430,7 +59374,7 @@ Ct({ parser: r, funcName: n } = t, i = n; - return i.length === 1 && (i = pLt[i]), { + return i.length === 1 && (i = fLt[i]), { type: "op", mode: r.mode, limits: !0, @@ -59465,7 +59409,7 @@ Ct({ htmlBuilder: im, mathmlBuilder: Cx }); -var gLt = { +var dLt = { "\u222B": "\\int", "\u222C": "\\iint", "\u222D": "\\iiint", @@ -59530,7 +59474,7 @@ Ct({ parser: e, funcName: r } = t, n = r; - return n.length === 1 && (n = gLt[n]), { + return n.length === 1 && (n = dLt[n]), { type: "op", mode: e.mode, limits: !1, @@ -59542,7 +59486,7 @@ Ct({ htmlBuilder: im, mathmlBuilder: Cx }); -var uhe = (t, e) => { +var lhe = (t, e) => { var r, n, i = !1, s; t.type === "supsub" ? (r = t.sup, n = t.sub, s = gr(t.base, "operatorname"), i = !0) : s = gr(t, "operatorname"); var a; @@ -59561,8 +59505,8 @@ var uhe = (t, e) => { a = Be.makeSpan(["mop"], l, e); } else a = Be.makeSpan(["mop"], [], e); - return i ? lhe(a, r, n, e, e.style, 0, 0) : a; -}, mLt = (t, e) => { + return i ? ahe(a, r, n, e, e.style, 0, 0) : a; +}, pLt = (t, e) => { for (var r = Va(t.body, e.withFont("mathrm")), n = !0, i = 0; i < r.length; i++) { var s = r[i]; if (!(s instanceof lt.SpaceNode)) @@ -59614,8 +59558,8 @@ Ct({ parentIsSupSub: !1 }; }, - htmlBuilder: uhe, - mathmlBuilder: mLt + htmlBuilder: lhe, + mathmlBuilder: pLt }); le("\\operatorname", "\\@ifstar\\operatornamewithlimits\\operatorname@"); j0({ @@ -59839,20 +59783,20 @@ Ct({ return i >= 0 ? o.setAttribute("height", vt(i)) : (o.setAttribute("height", vt(i)), o.setAttribute("depth", vt(-i))), o.setAttribute("voffset", vt(i)), o; } }); -function hhe(t, e, r) { +function che(t, e, r) { for (var n = Mi(t, e, !1), i = e.sizeMultiplier / r.sizeMultiplier, s = 0; s < n.length; s++) { var a = n[s].classes.indexOf("sizing"); a < 0 ? Array.prototype.push.apply(n[s].classes, e.sizingClasses(r)) : n[s].classes[a + 1] === "reset-size" + e.size && (n[s].classes[a + 1] = "reset-size" + r.size), n[s].height *= i, n[s].depth *= i; } return Be.makeFragment(n); } -var lQ = ["\\tiny", "\\sixptsize", "\\scriptsize", "\\footnotesize", "\\small", "\\normalsize", "\\large", "\\Large", "\\LARGE", "\\huge", "\\Huge"], vLt = (t, e) => { +var sQ = ["\\tiny", "\\sixptsize", "\\scriptsize", "\\footnotesize", "\\small", "\\normalsize", "\\large", "\\Large", "\\LARGE", "\\huge", "\\Huge"], gLt = (t, e) => { var r = e.havingSize(t.size); - return hhe(t.body, r, e); + return che(t.body, r, e); }; Ct({ type: "sizing", - names: lQ, + names: sQ, props: { numArgs: 0, allowedInText: !0 @@ -59866,11 +59810,11 @@ Ct({ return { type: "sizing", mode: i.mode, - size: lQ.indexOf(n) + 1, + size: sQ.indexOf(n) + 1, body: s }; }, - htmlBuilder: vLt, + htmlBuilder: gLt, mathmlBuilder: (t, e) => { var r = e.havingSize(t.size), n = Va(t.body, r), i = new lt.MathNode("mstyle", n); return i.setAttribute("mathsize", vt(r.sizeMultiplier)), i; @@ -60004,7 +59948,7 @@ Ct({ return n ? new lt.MathNode("mroot", [an(r, e), an(n, e)]) : new lt.MathNode("msqrt", [an(r, e)]); } }); -var cQ = { +var aQ = { display: Xt.DISPLAY, text: Xt.TEXT, script: Xt.SCRIPT, @@ -60032,11 +59976,11 @@ Ct({ }; }, htmlBuilder(t, e) { - var r = cQ[t.style], n = e.havingStyle(r).withFont(""); - return hhe(t.body, n, e); + var r = aQ[t.style], n = e.havingStyle(r).withFont(""); + return che(t.body, n, e); }, mathmlBuilder(t, e) { - var r = cQ[t.style], n = e.havingStyle(r), i = Va(t.body, n), s = new lt.MathNode("mstyle", i), a = { + var r = aQ[t.style], n = e.havingStyle(r), i = Va(t.body, n), s = new lt.MathNode("mstyle", i), a = { display: ["0", "true"], text: ["0", "false"], script: ["1", "false"], @@ -60045,7 +59989,7 @@ Ct({ return s.setAttribute("scriptlevel", o[0]), s.setAttribute("displaystyle", o[1]), s; } }); -var yLt = function(e, r) { +var mLt = function(e, r) { var n = e.base; if (n) if (n.type === "op") { @@ -60053,13 +59997,13 @@ var yLt = function(e, r) { return i ? im : null; } else if (n.type === "operatorname") { var s = n.alwaysHandleSupSub && (r.style.size === Xt.DISPLAY.size || n.limits); - return s ? uhe : null; + return s ? lhe : null; } else { if (n.type === "accent") - return Gt.isCharacterBox(n.base) ? PN : null; + return Gt.isCharacterBox(n.base) ? DN : null; if (n.type === "horizBrace") { var a = !e.sub; - return a === n.isOver ? ohe : null; + return a === n.isOver ? she : null; } else return null; } @@ -60069,7 +60013,7 @@ var yLt = function(e, r) { j0({ type: "supsub", htmlBuilder(t, e) { - var r = yLt(t, e); + var r = mLt(t, e); if (r) return r(t, e); var { @@ -60142,7 +60086,7 @@ j0({ }, e); else throw new Error("supsub must have either sup or sub."); - var R = RL(a, "right") || "mord"; + var R = _L(a, "right") || "mord"; return Be.makeSpan([R], [a, Be.makeSpan(["msupsub"], [O])], e); }, mathmlBuilder(t, e) { @@ -60176,14 +60120,14 @@ j0({ mathmlBuilder(t, e) { var r = new lt.MathNode("mo", [Ko(t.text, t.mode)]); if (t.family === "bin") { - var n = NN(t, e); + var n = RN(t, e); n === "bold-italic" && r.setAttribute("mathvariant", n); } else t.family === "punct" ? r.setAttribute("separator", "true") : (t.family === "open" || t.family === "close") && r.setAttribute("stretchy", "false"); return r; } }); -var fhe = { +var uhe = { mi: "italic", mn: "normal", mtext: "normal" @@ -60194,8 +60138,8 @@ j0({ return Be.makeOrd(t, e, "mathord"); }, mathmlBuilder(t, e) { - var r = new lt.MathNode("mi", [Ko(t.text, t.mode, e)]), n = NN(t, e) || "italic"; - return n !== fhe[r.type] && r.setAttribute("mathvariant", n), r; + var r = new lt.MathNode("mi", [Ko(t.text, t.mode, e)]), n = RN(t, e) || "italic"; + return n !== uhe[r.type] && r.setAttribute("mathvariant", n), r; } }); j0({ @@ -60204,14 +60148,14 @@ j0({ return Be.makeOrd(t, e, "textord"); }, mathmlBuilder(t, e) { - var r = Ko(t.text, t.mode, e), n = NN(t, e) || "normal", i; - return t.mode === "text" ? i = new lt.MathNode("mtext", [r]) : /[0-9]/.test(t.text) ? i = new lt.MathNode("mn", [r]) : t.text === "\\prime" ? i = new lt.MathNode("mo", [r]) : i = new lt.MathNode("mi", [r]), n !== fhe[i.type] && i.setAttribute("mathvariant", n), i; + var r = Ko(t.text, t.mode, e), n = RN(t, e) || "normal", i; + return t.mode === "text" ? i = new lt.MathNode("mtext", [r]) : /[0-9]/.test(t.text) ? i = new lt.MathNode("mn", [r]) : t.text === "\\prime" ? i = new lt.MathNode("mo", [r]) : i = new lt.MathNode("mi", [r]), n !== uhe[i.type] && i.setAttribute("mathvariant", n), i; } }); -var C_ = { +var S_ = { "\\nobreak": "nobreak", "\\allowbreak": "allowbreak" -}, E_ = { +}, T_ = { " ": {}, "\\ ": {}, "~": { @@ -60225,66 +60169,66 @@ var C_ = { j0({ type: "spacing", htmlBuilder(t, e) { - if (E_.hasOwnProperty(t.text)) { - var r = E_[t.text].className || ""; + if (T_.hasOwnProperty(t.text)) { + var r = T_[t.text].className || ""; if (t.mode === "text") { var n = Be.makeOrd(t, e, "textord"); return n.classes.push(r), n; } else return Be.makeSpan(["mspace", r], [Be.mathsym(t.text, t.mode, e)], e); } else { - if (C_.hasOwnProperty(t.text)) - return Be.makeSpan(["mspace", C_[t.text]], [], e); + if (S_.hasOwnProperty(t.text)) + return Be.makeSpan(["mspace", S_[t.text]], [], e); throw new ct('Unknown type of space "' + t.text + '"'); } }, mathmlBuilder(t, e) { var r; - if (E_.hasOwnProperty(t.text)) + if (T_.hasOwnProperty(t.text)) r = new lt.MathNode("mtext", [new lt.TextNode("\xA0")]); else { - if (C_.hasOwnProperty(t.text)) + if (S_.hasOwnProperty(t.text)) return new lt.MathNode("mspace"); throw new ct('Unknown type of space "' + t.text + '"'); } return r; } }); -var uQ = () => { +var oQ = () => { var t = new lt.MathNode("mtd", []); return t.setAttribute("width", "50%"), t; }; j0({ type: "tag", mathmlBuilder(t, e) { - var r = new lt.MathNode("mtable", [new lt.MathNode("mtr", [uQ(), new lt.MathNode("mtd", [Tf(t.body, e)]), uQ(), new lt.MathNode("mtd", [Tf(t.tag, e)])])]); + var r = new lt.MathNode("mtable", [new lt.MathNode("mtr", [oQ(), new lt.MathNode("mtd", [Tf(t.body, e)]), oQ(), new lt.MathNode("mtd", [Tf(t.tag, e)])])]); return r.setAttribute("width", "100%"), r; } }); -var hQ = { +var lQ = { "\\text": void 0, "\\textrm": "textrm", "\\textsf": "textsf", "\\texttt": "texttt", "\\textnormal": "textrm" -}, fQ = { +}, cQ = { "\\textbf": "textbf", "\\textmd": "textmd" -}, bLt = { +}, vLt = { "\\textit": "textit", "\\textup": "textup" -}, dQ = (t, e) => { +}, uQ = (t, e) => { var r = t.font; if (r) { - if (hQ[r]) - return e.withTextFontFamily(hQ[r]); - if (fQ[r]) - return e.withTextFontWeight(fQ[r]); + if (lQ[r]) + return e.withTextFontFamily(lQ[r]); + if (cQ[r]) + return e.withTextFontWeight(cQ[r]); if (r === "\\emph") return e.fontShape === "textit" ? e.withTextFontShape("textup") : e.withTextFontShape("textit"); } else return e; - return e.withTextFontShape(bLt[r]); + return e.withTextFontShape(vLt[r]); }; Ct({ type: "text", @@ -60319,11 +60263,11 @@ Ct({ }; }, htmlBuilder(t, e) { - var r = dQ(t, e), n = Mi(t.body, r, !0); + var r = uQ(t, e), n = Mi(t.body, r, !0); return Be.makeSpan(["mord", "text"], n, r); }, mathmlBuilder(t, e) { - var r = dQ(t, e); + var r = uQ(t, e); return Tf(t.body, r); } }); @@ -60415,24 +60359,24 @@ Ct({ throw new ct("\\verb ended by end of line instead of matching delimiter"); }, htmlBuilder(t, e) { - for (var r = pQ(t), n = [], i = e.havingStyle(e.style.text()), s = 0; s < r.length; s++) { + for (var r = hQ(t), n = [], i = e.havingStyle(e.style.text()), s = 0; s < r.length; s++) { var a = r[s]; a === "~" && (a = "\\textasciitilde"), n.push(Be.makeSymbol(a, "Typewriter-Regular", t.mode, i, ["mord", "texttt"])); } return Be.makeSpan(["mord", "text"].concat(i.sizingClasses(e)), Be.tryCombineChars(n), i); }, mathmlBuilder(t, e) { - var r = new lt.TextNode(pQ(t)), n = new lt.MathNode("mtext", [r]); + var r = new lt.TextNode(hQ(t)), n = new lt.MathNode("mtext", [r]); return n.setAttribute("mathvariant", "monospace"), n; } }); -var pQ = (t) => t.body.replace(/ /g, t.star ? "\u2423" : "\xA0"), Uh = Iue, dhe = `[ \r - ]`, xLt = "\\\\[a-zA-Z@]+", wLt = "\\\\[^\uD800-\uDFFF]", OLt = "(" + xLt + ")" + dhe + "*", kLt = `\\\\( +var hQ = (t) => t.body.replace(/ /g, t.star ? "\u2423" : "\xA0"), Uh = Due, hhe = `[ \r + ]`, yLt = "\\\\[a-zA-Z@]+", bLt = "\\\\[^\uD800-\uDFFF]", xLt = "(" + yLt + ")" + hhe + "*", wLt = `\\\\( |[ \r ]+ -?)[ \r ]*`, IL = "[\u0300-\u036F]", SLt = new RegExp(IL + "+$"), TLt = "(" + dhe + "+)|" + (kLt + "|") + "([!-\\[\\]-\u2027\u202A-\uD7FF\uF900-\uFFFF]" + (IL + "*") + "|[\uD800-\uDBFF][\uDC00-\uDFFF]" + (IL + "*") + "|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5" + ("|" + OLt) + ("|" + wLt + ")"); -class gQ { +?)[ \r ]*`, ML = "[\u0300-\u036F]", OLt = new RegExp(ML + "+$"), kLt = "(" + hhe + "+)|" + (wLt + "|") + "([!-\\[\\]-\u2027\u202A-\uD7FF\uF900-\uFFFF]" + (ML + "*") + "|[\uD800-\uDBFF][\uDC00-\uDFFF]" + (ML + "*") + "|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5" + ("|" + xLt) + ("|" + bLt + ")"); +class fQ { constructor(e, r) { - this.input = void 0, this.settings = void 0, this.tokenRegex = void 0, this.catcodes = void 0, this.input = e, this.settings = r, this.tokenRegex = new RegExp(TLt, "g"), this.catcodes = { + this.input = void 0, this.settings = void 0, this.tokenRegex = void 0, this.catcodes = void 0, this.input = e, this.settings = r, this.tokenRegex = new RegExp(kLt, "g"), this.catcodes = { "%": 14, "~": 13 }; @@ -60456,7 +60400,7 @@ class gQ { return new zo(i, new Ja(this, r, this.tokenRegex.lastIndex)); } } -class CLt { +class SLt { constructor(e, r) { e === void 0 && (e = {}), r === void 0 && (r = {}), this.current = void 0, this.builtins = void 0, this.undefStack = void 0, this.current = r, this.builtins = e, this.undefStack = []; } @@ -60492,7 +60436,7 @@ class CLt { r == null ? delete this.current[e] : this.current[e] = r; } } -var ELt = rhe; +var TLt = ehe; le("\\noexpand", function(t) { var e = t.popToken(); return t.isExpandable(e.text) && (e.noexpand = !0, e.treatAsRelax = !0), { @@ -60544,7 +60488,7 @@ le("\\TextOrMath", function(t) { numArgs: 0 }; }); -var mQ = { +var dQ = { 0: 0, 1: 1, 2: 2, @@ -60585,14 +60529,14 @@ le("\\char", function(t) { else r = 10; if (r) { - if (n = mQ[e.text], n == null || n >= r) + if (n = dQ[e.text], n == null || n >= r) throw new ct("Invalid base-" + r + " digit " + e.text); - for (var i; (i = mQ[t.future().text]) != null && i < r; ) + for (var i; (i = dQ[t.future().text]) != null && i < r; ) n *= r, n += i, t.popToken(); } return "\\@char{" + n + "}"; }); -var YN = (t, e, r) => { +var VN = (t, e, r) => { var n = t.consumeArg().tokens; if (n.length !== 1) throw new ct("\\newcommand's first argument must be a macro name"); @@ -60614,9 +60558,9 @@ var YN = (t, e, r) => { numArgs: a }), ""; }; -le("\\newcommand", (t) => YN(t, !1, !0)); -le("\\renewcommand", (t) => YN(t, !0, !1)); -le("\\providecommand", (t) => YN(t, !0, !0)); +le("\\newcommand", (t) => VN(t, !1, !0)); +le("\\renewcommand", (t) => VN(t, !0, !1)); +le("\\providecommand", (t) => VN(t, !0, !0)); le("\\message", (t) => { var e = t.consumeArgs(1)[0]; return console.log(e.reverse().map((r) => r.text).join("")), ""; @@ -60703,7 +60647,7 @@ le("\\boxed", "\\fbox{$\\displaystyle{#1}$}"); le("\\iff", "\\DOTSB\\;\\Longleftrightarrow\\;"); le("\\implies", "\\DOTSB\\;\\Longrightarrow\\;"); le("\\impliedby", "\\DOTSB\\;\\Longleftarrow\\;"); -var vQ = { +var pQ = { ",": "\\dotsc", "\\not": "\\dotsb", "+": "\\dotsb", @@ -60754,9 +60698,9 @@ var vQ = { }; le("\\dots", function(t) { var e = "\\dotso", r = t.expandAfterFuture().text; - return r in vQ ? e = vQ[r] : (r.slice(0, 4) === "\\not" || r in fn.math && Gt.contains(["bin", "rel"], fn.math[r].group)) && (e = "\\dotsb"), e; + return r in pQ ? e = pQ[r] : (r.slice(0, 4) === "\\not" || r in fn.math && Gt.contains(["bin", "rel"], fn.math[r].group)) && (e = "\\dotsb"), e; }); -var QN = { +var UN = { ")": !0, "]": !0, "\\rbrack": !0, @@ -60779,15 +60723,15 @@ var QN = { }; le("\\dotso", function(t) { var e = t.future().text; - return e in QN ? "\\ldots\\," : "\\ldots"; + return e in UN ? "\\ldots\\," : "\\ldots"; }); le("\\dotsc", function(t) { var e = t.future().text; - return e in QN && e !== "," ? "\\ldots\\," : "\\ldots"; + return e in UN && e !== "," ? "\\ldots\\," : "\\ldots"; }); le("\\cdots", function(t) { var e = t.future().text; - return e in QN ? "\\@cdots\\," : "\\@cdots"; + return e in UN ? "\\@cdots\\," : "\\@cdots"; }); le("\\dotsb", "\\cdots"); le("\\dotsm", "\\cdots"); @@ -60825,9 +60769,9 @@ le("\\pmod", "\\pod{{\\rm mod}\\mkern6mu#1}"); le("\\mod", "\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1"); le("\\newline", "\\\\\\relax"); le("\\TeX", "\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}"); -var phe = vt(Oc["Main-Regular"]["T".charCodeAt(0)][1] - 0.7 * Oc["Main-Regular"]["A".charCodeAt(0)][1]); -le("\\LaTeX", "\\textrm{\\html@mathml{" + ("L\\kern-.36em\\raisebox{" + phe + "}{\\scriptstyle A}") + "\\kern-.15em\\TeX}{LaTeX}}"); -le("\\KaTeX", "\\textrm{\\html@mathml{" + ("K\\kern-.17em\\raisebox{" + phe + "}{\\scriptstyle A}") + "\\kern-.15em\\TeX}{KaTeX}}"); +var fhe = vt(Oc["Main-Regular"]["T".charCodeAt(0)][1] - 0.7 * Oc["Main-Regular"]["A".charCodeAt(0)][1]); +le("\\LaTeX", "\\textrm{\\html@mathml{" + ("L\\kern-.36em\\raisebox{" + fhe + "}{\\scriptstyle A}") + "\\kern-.15em\\TeX}{LaTeX}}"); +le("\\KaTeX", "\\textrm{\\html@mathml{" + ("K\\kern-.17em\\raisebox{" + fhe + "}{\\scriptstyle A}") + "\\kern-.15em\\TeX}{KaTeX}}"); le("\\hspace", "\\@ifstar\\@hspacer\\@hspace"); le("\\@hspace", "\\hskip #1\\relax"); le("\\@hspacer", "\\rule{0pt}{0pt}\\hskip #1\\relax"); @@ -60973,7 +60917,7 @@ le("\\ket", "\\mathinner{|{#1}\\rangle}"); le("\\braket", "\\mathinner{\\langle{#1}\\rangle}"); le("\\Bra", "\\left\\langle#1\\right|"); le("\\Ket", "\\left|#1\\right\\rangle"); -var ghe = (t) => (e) => { +var dhe = (t) => (e) => { var r = e.consumeArg().tokens, n = e.consumeArg().tokens, i = e.consumeArg().tokens, s = e.consumeArg().tokens, a = e.macros.get("|"), o = e.macros.get("\\|"); e.macros.beginGroup(); var l = (f) => (d) => { @@ -60999,8 +60943,8 @@ var ghe = (t) => (e) => { numArgs: 0 }; }; -le("\\bra@ket", ghe(!1)); -le("\\bra@set", ghe(!0)); +le("\\bra@ket", dhe(!1)); +le("\\bra@set", dhe(!0)); le("\\Braket", "\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}"); le("\\Set", "\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}"); le("\\set", "\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}"); @@ -61061,18 +61005,18 @@ le("\\grayH", "\\textcolor{##3b3e40}{#1}"); le("\\grayI", "\\textcolor{##21242c}{#1}"); le("\\kaBlue", "\\textcolor{##314453}{#1}"); le("\\kaGreen", "\\textcolor{##71B307}{#1}"); -var mhe = { +var phe = { "^": !0, _: !0, "\\limits": !0, "\\nolimits": !0 }; -class _Lt { +class CLt { constructor(e, r, n) { - this.settings = void 0, this.expansionCount = void 0, this.lexer = void 0, this.macros = void 0, this.stack = void 0, this.mode = void 0, this.settings = r, this.expansionCount = 0, this.feed(e), this.macros = new CLt(ELt, r.macros), this.mode = n, this.stack = []; + this.settings = void 0, this.expansionCount = void 0, this.lexer = void 0, this.macros = void 0, this.stack = void 0, this.mode = void 0, this.settings = r, this.expansionCount = 0, this.feed(e), this.macros = new SLt(TLt, r.macros), this.mode = n, this.stack = []; } feed(e) { - this.lexer = new gQ(e, this.settings); + this.lexer = new fQ(e, this.settings); } switchMode(e) { this.mode = e; @@ -61238,7 +61182,7 @@ class _Lt { if (i.indexOf("#") !== -1) for (var a = i.replace(/##/g, ""); a.indexOf("#" + (s + 1)) !== -1; ) ++s; - for (var o = new gQ(i, this.settings), l = [], u = o.lex(); u.text !== "EOF"; ) + for (var o = new fQ(i, this.settings), l = [], u = o.lex(); u.text !== "EOF"; ) l.push(u), u = o.lex(); l.reverse(); var h = { @@ -61250,14 +61194,14 @@ class _Lt { return i; } isDefined(e) { - return this.macros.has(e) || Uh.hasOwnProperty(e) || fn.math.hasOwnProperty(e) || fn.text.hasOwnProperty(e) || mhe.hasOwnProperty(e); + return this.macros.has(e) || Uh.hasOwnProperty(e) || fn.math.hasOwnProperty(e) || fn.text.hasOwnProperty(e) || phe.hasOwnProperty(e); } isExpandable(e) { var r = this.macros.get(e); return r != null ? typeof r == "string" || typeof r == "function" || !r.unexpandable : Uh.hasOwnProperty(e) && !Uh[e].primitive; } } -var yQ = /^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/, wO = Object.freeze({ +var gQ = /^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/, xO = Object.freeze({ "\u208A": "+", "\u208B": "-", "\u208C": "=", @@ -61360,7 +61304,7 @@ var yQ = /^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗ "\u1D60": "\u03D5", "\u1D61": "\u03C7", "\u1DBF": "\u03B8" -}), __ = { +}), C_ = { "\u0301": { text: "\\'", math: "\\acute" @@ -61407,7 +61351,7 @@ var yQ = /^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗ "\u0327": { text: "\\c" } -}, bQ = { +}, mQ = { \u00E1: "a\u0301", \u00E0: "a\u0300", \u00E4: "a\u0308", @@ -61753,9 +61697,9 @@ var yQ = /^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗ \u038F: "\u03A9\u0301", \u1FFA: "\u03A9\u0300" }; -class rC { +class eC { constructor(e, r) { - this.mode = void 0, this.gullet = void 0, this.settings = void 0, this.leftrightDepth = void 0, this.nextToken = void 0, this.mode = "math", this.gullet = new _Lt(e, r, this.mode), this.settings = r, this.leftrightDepth = 0; + this.mode = void 0, this.gullet = void 0, this.settings = void 0, this.leftrightDepth = void 0, this.nextToken = void 0, this.mode = "math", this.gullet = new CLt(e, r, this.mode), this.settings = r, this.leftrightDepth = 0; } expect(e, r) { if (r === void 0 && (r = !0), this.fetch().text !== e) @@ -61790,7 +61734,7 @@ class rC { for (var n = []; ; ) { this.mode === "math" && this.consumeSpaces(); var i = this.fetch(); - if (rC.endOfExpression.indexOf(i.text) !== -1 || r && i.text === r || e && Uh[i.text] && Uh[i.text].infix) + if (eC.endOfExpression.indexOf(i.text) !== -1 || r && i.text === r || e && Uh[i.text] && Uh[i.text].infix) break; var s = this.parseAtom(r); if (s) { @@ -61891,13 +61835,13 @@ class rC { mode: this.mode, body: l }; - } else if (wO[s.text]) { - var u = yQ.test(s.text), h = []; - for (h.push(new zo(wO[s.text])), this.consume(); ; ) { + } else if (xO[s.text]) { + var u = gQ.test(s.text), h = []; + for (h.push(new zo(xO[s.text])), this.consume(); ; ) { var f = this.fetch().text; - if (!wO[f] || yQ.test(f) !== u) + if (!xO[f] || gQ.test(f) !== u) break; - h.unshift(new zo(wO[f])), this.consume(); + h.unshift(new zo(xO[f])), this.consume(); } var d = this.subparse(h); u ? i = { @@ -62059,7 +62003,7 @@ class rC { number: +(i[1] + i[2]), unit: i[3] }; - if (!Cue(s)) + if (!Sue(s)) throw new ct("Invalid unit: '" + s.unit + "'", r); return { type: "size", @@ -62110,7 +62054,7 @@ class rC { body: o, semisimple: i === "\\begingroup" || void 0 }; - } else if (s = this.parseFunction(r, e) || this.parseSymbol(), s == null && i[0] === "\\" && !mhe.hasOwnProperty(i)) { + } else if (s = this.parseFunction(r, e) || this.parseSymbol(), s == null && i[0] === "\\" && !phe.hasOwnProperty(i)) { if (this.settings.throwOnError) throw new ct("Undefined control sequence: " + i, n); s = this.formatUnsupportedCmd(i), this.consume(); @@ -62153,14 +62097,14 @@ class rC { star: i }; } - bQ.hasOwnProperty(r[0]) && !fn[this.mode][r[0]] && (this.settings.strict && this.mode === "math" && this.settings.reportNonstrict("unicodeTextInMathMode", 'Accented Unicode text character "' + r[0] + '" used in math mode', e), r = bQ[r[0]] + r.slice(1)); - var s = SLt.exec(r); + mQ.hasOwnProperty(r[0]) && !fn[this.mode][r[0]] && (this.settings.strict && this.mode === "math" && this.settings.reportNonstrict("unicodeTextInMathMode", 'Accented Unicode text character "' + r[0] + '" used in math mode', e), r = mQ[r[0]] + r.slice(1)); + var s = OLt.exec(r); s && (r = r.substring(0, s.index), r === "i" ? r = "\u0131" : r === "j" && (r = "\u0237")); var a; if (fn[this.mode][r]) { - this.settings.strict && this.mode === "math" && LL.indexOf(r) >= 0 && this.settings.reportNonstrict("unicodeTextInMathMode", 'Latin-1/Unicode text character "' + r[0] + '" used in math mode', e); + this.settings.strict && this.mode === "math" && EL.indexOf(r) >= 0 && this.settings.reportNonstrict("unicodeTextInMathMode", 'Latin-1/Unicode text character "' + r[0] + '" used in math mode', e); var o = fn[this.mode][r].group, l = Ja.range(e), u; - if (m8t.hasOwnProperty(o)) { + if (p8t.hasOwnProperty(o)) { var h = o; u = { type: "atom", @@ -62178,7 +62122,7 @@ class rC { }; a = u; } else if (r.charCodeAt(0) >= 128) - this.settings.strict && (Tue(r.charCodeAt(0)) ? this.mode === "math" && this.settings.reportNonstrict("unicodeTextInMathMode", 'Unicode text character "' + r[0] + '" used in math mode', e) : this.settings.reportNonstrict("unknownSymbol", 'Unrecognized Unicode character "' + r[0] + '"' + (" (" + r.charCodeAt(0) + ")"), e)), a = { + this.settings.strict && (kue(r.charCodeAt(0)) ? this.mode === "math" && this.settings.reportNonstrict("unicodeTextInMathMode", 'Unicode text character "' + r[0] + '" used in math mode', e) : this.settings.reportNonstrict("unknownSymbol", 'Unrecognized Unicode character "' + r[0] + '"' + (" (" + r.charCodeAt(0) + ")"), e)), a = { type: "textord", mode: "text", loc: Ja.range(e), @@ -62189,9 +62133,9 @@ class rC { if (this.consume(), s) for (var f = 0; f < s[0].length; f++) { var d = s[0][f]; - if (!__[d]) + if (!C_[d]) throw new ct("Unknown accent ' " + d + "'", e); - var p = __[d][this.mode] || __[d].text; + var p = C_[d][this.mode] || C_[d].text; if (!p) throw new ct("Accent " + d + " unsupported in " + this.mode + " mode", e); a = { @@ -62207,11 +62151,11 @@ class rC { return a; } } -rC.endOfExpression = ["}", "\\endgroup", "\\end", "\\right", "&"]; -var WN = function(e, r) { +eC.endOfExpression = ["}", "\\endgroup", "\\end", "\\right", "&"]; +var qN = function(e, r) { if (!(typeof e == "string" || e instanceof String)) throw new TypeError("KaTeX can only parse string typed expression"); - var n = new rC(e, r); + var n = new eC(e, r); delete n.gullet.macros.current["\\df@tag"]; var i = n.parse(); if (delete n.gullet.macros.current["\\current@color"], delete n.gullet.macros.current["\\color"], n.gullet.macros.get("\\df@tag")) { @@ -62225,226 +62169,226 @@ var WN = function(e, r) { }]; } return i; -}, vhe = function(e, r, n) { +}, ghe = function(e, r, n) { r.textContent = ""; - var i = GN(e, n).toNode(); + var i = YN(e, n).toNode(); r.appendChild(i); }; -typeof document < "u" && document.compatMode !== "CSS1Compat" && (typeof console < "u" && console.warn("Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype."), vhe = function() { +typeof document < "u" && document.compatMode !== "CSS1Compat" && (typeof console < "u" && console.warn("Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype."), ghe = function() { throw new ct("KaTeX doesn't work in quirks mode."); }); -var ALt = function(e, r) { - var n = GN(e, r).toMarkup(); +var ELt = function(e, r) { + var n = YN(e, r).toMarkup(); return n; -}, LLt = function(e, r) { - var n = new _N(r); - return WN(e, n); -}, yhe = function(e, r, n) { +}, _Lt = function(e, r) { + var n = new TN(r); + return qN(e, n); +}, mhe = function(e, r, n) { if (n.throwOnError || !(e instanceof ct)) throw e; var i = Be.makeSpan(["katex-error"], [new jo(r)]); return i.setAttribute("title", e.toString()), i.setAttribute("style", "color:" + n.errorColor), i; -}, GN = function(e, r) { - var n = new _N(r); +}, YN = function(e, r) { + var n = new TN(r); try { - var i = WN(e, n); - return F8t(i, e, n); + var i = qN(e, n); + return $8t(i, e, n); } catch (s) { - return yhe(s, e, n); + return mhe(s, e, n); } -}, RLt = function(e, r) { - var n = new _N(r); +}, ALt = function(e, r) { + var n = new TN(r); try { - var i = WN(e, n); - return z8t(i, e, n); + var i = qN(e, n); + return B8t(i, e, n); } catch (s) { - return yhe(s, e, n); + return mhe(s, e, n); } -}, MLt = { +}, LLt = { version: "0.16.11", - render: vhe, - renderToString: ALt, + render: ghe, + renderToString: ELt, ParseError: ct, - SETTINGS_SCHEMA: q4, - __parse: LLt, - __renderToDomTree: GN, - __renderToHTMLTree: RLt, - __setFontMetrics: c8t, + SETTINGS_SCHEMA: U4, + __parse: _Lt, + __renderToDomTree: YN, + __renderToHTMLTree: ALt, + __setFontMetrics: o8t, __defineSymbol: z, __defineFunction: Ct, __defineMacro: le, __domTree: { Span: Tx, - Anchor: RN, + Anchor: _N, SymbolNode: jo, SvgNode: Wu, PathNode: Sf, - LineNode: AL + LineNode: CL } }; -const DLt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +const RLt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - default: MLt + default: LLt }, Symbol.toStringTag, { value: "Module" })); -var NLt = "[object Symbol]"; +var MLt = "[object Symbol]"; function m0(t) { - return typeof t == "symbol" || Xo(t) && ah(t) == NLt; + return typeof t == "symbol" || Xo(t) && ah(t) == MLt; } function ef(t, e) { for (var r = -1, n = t == null ? 0 : t.length, i = Array(n); ++r < n; ) i[r] = e(t[r], r, t); return i; } -var ILt = 1 / 0, xQ = Go ? Go.prototype : void 0, wQ = xQ ? xQ.toString : void 0; -function bhe(t) { +var DLt = 1 / 0, vQ = Go ? Go.prototype : void 0, yQ = vQ ? vQ.toString : void 0; +function vhe(t) { if (typeof t == "string") return t; if (Sr(t)) - return ef(t, bhe) + ""; + return ef(t, vhe) + ""; if (m0(t)) - return wQ ? wQ.call(t) : ""; + return yQ ? yQ.call(t) : ""; var e = t + ""; - return e == "0" && 1 / t == -ILt ? "-0" : e; + return e == "0" && 1 / t == -DLt ? "-0" : e; } -var PLt = /\s/; -function $Lt(t) { - for (var e = t.length; e-- && PLt.test(t.charAt(e)); ) +var NLt = /\s/; +function ILt(t) { + for (var e = t.length; e-- && NLt.test(t.charAt(e)); ) ; return e; } -var BLt = /^\s+/; -function FLt(t) { - return t && t.slice(0, $Lt(t) + 1).replace(BLt, ""); +var PLt = /^\s+/; +function $Lt(t) { + return t && t.slice(0, ILt(t) + 1).replace(PLt, ""); } -var OQ = 0 / 0, zLt = /^[-+]0x[0-9a-f]+$/i, VLt = /^0b[01]+$/i, ULt = /^0o[0-7]+$/i, qLt = parseInt; -function YLt(t) { +var bQ = 0 / 0, BLt = /^[-+]0x[0-9a-f]+$/i, FLt = /^0b[01]+$/i, zLt = /^0o[0-7]+$/i, VLt = parseInt; +function ULt(t) { if (typeof t == "number") return t; if (m0(t)) - return OQ; + return bQ; if (Pa(t)) { var e = typeof t.valueOf == "function" ? t.valueOf() : t; t = Pa(e) ? e + "" : e; } if (typeof t != "string") return t === 0 ? t : +t; - t = FLt(t); - var r = VLt.test(t); - return r || ULt.test(t) ? qLt(t.slice(2), r ? 2 : 8) : zLt.test(t) ? OQ : +t; + t = $Lt(t); + var r = FLt.test(t); + return r || zLt.test(t) ? VLt(t.slice(2), r ? 2 : 8) : BLt.test(t) ? bQ : +t; } -var kQ = 1 / 0, QLt = 17976931348623157e292; -function Q4(t) { +var xQ = 1 / 0, qLt = 17976931348623157e292; +function Y4(t) { if (!t) return t === 0 ? t : 0; - if (t = YLt(t), t === kQ || t === -kQ) { + if (t = ULt(t), t === xQ || t === -xQ) { var e = t < 0 ? -1 : 1; - return e * QLt; + return e * qLt; } return t === t ? t : 0; } function Ex(t) { - var e = Q4(t), r = e % 1; + var e = Y4(t), r = e % 1; return e === e ? r ? e - r : e : 0; } function vi() { } -function xhe(t, e) { +function yhe(t, e) { for (var r = -1, n = t == null ? 0 : t.length; ++r < n && e(t[r], r, t) !== !1; ) ; return t; } -function whe(t, e, r, n) { +function bhe(t, e, r, n) { for (var i = t.length, s = r + (n ? 1 : -1); n ? s-- : ++s < i; ) if (e(t[s], s, t)) return s; return -1; } -function WLt(t) { +function YLt(t) { return t !== t; } -function GLt(t, e, r) { +function QLt(t, e, r) { for (var n = r - 1, i = t.length; ++n < i; ) if (t[n] === e) return n; return -1; } -function HN(t, e, r) { - return e === e ? GLt(t, e, r) : whe(t, WLt, r); +function QN(t, e, r) { + return e === e ? QLt(t, e, r) : bhe(t, YLt, r); } -function Ohe(t, e) { +function xhe(t, e) { var r = t == null ? 0 : t.length; - return !!r && HN(t, e, 0) > -1; + return !!r && QN(t, e, 0) > -1; } function ki(t) { - return jc(t) ? gae(t) : Moe(t); + return jc(t) ? dae(t) : Loe(t); } -var HLt = Object.prototype, XLt = HLt.hasOwnProperty, ZLt = bae(function(t, e) { +var WLt = Object.prototype, GLt = WLt.hasOwnProperty, HLt = vae(function(t, e) { if (dx(e) || jc(e)) { tm(e, ki(e), t); return; } for (var r in e) - XLt.call(e, r) && px(t, r, e[r]); + GLt.call(e, r) && px(t, r, e[r]); }); -const fo = ZLt; -var jLt = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, KLt = /^\w*$/; -function XN(t, e) { +const fo = HLt; +var XLt = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, ZLt = /^\w*$/; +function WN(t, e) { if (Sr(t)) return !1; var r = typeof t; - return r == "number" || r == "symbol" || r == "boolean" || t == null || m0(t) ? !0 : KLt.test(t) || !jLt.test(t) || e != null && t in Object(e); + return r == "number" || r == "symbol" || r == "boolean" || t == null || m0(t) ? !0 : ZLt.test(t) || !XLt.test(t) || e != null && t in Object(e); } -var JLt = 500; -function e9t(t) { +var jLt = 500; +function KLt(t) { var e = J1(t, function(n) { - return r.size === JLt && r.clear(), n; + return r.size === jLt && r.clear(), n; }), r = e.cache; return e; } -var t9t = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, r9t = /\\(\\)?/g, n9t = e9t(function(t) { +var JLt = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, e9t = /\\(\\)?/g, t9t = KLt(function(t) { var e = []; - return t.charCodeAt(0) === 46 && e.push(""), t.replace(t9t, function(r, n, i, s) { - e.push(i ? s.replace(r9t, "$1") : n || r); + return t.charCodeAt(0) === 46 && e.push(""), t.replace(JLt, function(r, n, i, s) { + e.push(i ? s.replace(e9t, "$1") : n || r); }), e; }); -const i9t = n9t; -function khe(t) { - return t == null ? "" : bhe(t); +const r9t = t9t; +function whe(t) { + return t == null ? "" : vhe(t); } -function nC(t, e) { - return Sr(t) ? t : XN(t, e) ? [t] : i9t(khe(t)); +function tC(t, e) { + return Sr(t) ? t : WN(t, e) ? [t] : r9t(whe(t)); } -var s9t = 1 / 0; +var n9t = 1 / 0; function _x(t) { if (typeof t == "string" || m0(t)) return t; var e = t + ""; - return e == "0" && 1 / t == -s9t ? "-0" : e; + return e == "0" && 1 / t == -n9t ? "-0" : e; } -function iC(t, e) { - e = nC(e, t); +function rC(t, e) { + e = tC(e, t); for (var r = 0, n = e.length; t != null && r < n; ) t = t[_x(e[r++])]; return r && r == n ? t : void 0; } -function a9t(t, e, r) { - var n = t == null ? void 0 : iC(t, e); +function i9t(t, e, r) { + var n = t == null ? void 0 : rC(t, e); return n === void 0 ? r : n; } -function ZN(t, e) { +function GN(t, e) { for (var r = -1, n = e.length, i = t.length; ++r < n; ) t[i + r] = e[r]; return t; } -var SQ = Go ? Go.isConcatSpreadable : void 0; -function o9t(t) { - return Sr(t) || t1(t) || !!(SQ && t && t[SQ]); +var wQ = Go ? Go.isConcatSpreadable : void 0; +function s9t(t) { + return Sr(t) || t1(t) || !!(wQ && t && t[wQ]); } function sm(t, e, r, n, i) { var s = -1, a = t.length; - for (r || (r = o9t), i || (i = []); ++s < a; ) { + for (r || (r = s9t), i || (i = []); ++s < a; ) { var o = t[s]; - e > 0 && r(o) ? e > 1 ? sm(o, e - 1, r, n, i) : ZN(i, o) : n || (i[i.length] = o); + e > 0 && r(o) ? e > 1 ? sm(o, e - 1, r, n, i) : GN(i, o) : n || (i[i.length] = o); } return i; } @@ -62452,95 +62396,97 @@ function Qi(t) { var e = t == null ? 0 : t.length; return e ? sm(t, 1) : []; } -function l9t(t) { - return yae(vae(t, void 0, Qi), t + ""); +function a9t(t) { + return mae(gae(t, void 0, Qi), t + ""); } -function She(t, e, r) { +function Ohe(t, e, r) { var n = -1, i = t.length; e < 0 && (e = -e > i ? 0 : i + e), r = r > i ? i : r, r < 0 && (r += i), i = e > r ? 0 : r - e >>> 0, e >>>= 0; for (var s = Array(i); ++n < i; ) s[n] = t[n + e]; return s; } -function c9t(t, e, r, n) { +function o9t(t, e, r, n) { var i = -1, s = t == null ? 0 : t.length; for (n && s && (r = t[++i]); ++i < s; ) r = e(r, t[i], i, t); return r; } -function u9t(t, e) { +function l9t(t, e) { return t && tm(e, ki(e), t); } -function h9t(t, e) { +function c9t(t, e) { return t && tm(e, G0(e), t); } -function jN(t, e) { +function HN(t, e) { for (var r = -1, n = t == null ? 0 : t.length, i = 0, s = []; ++r < n; ) { var a = t[r]; e(a, r, t) && (s[i++] = a); } return s; } -function The() { +function khe() { return []; } -var f9t = Object.prototype, d9t = f9t.propertyIsEnumerable, TQ = Object.getOwnPropertySymbols, p9t = TQ ? function(t) { - return t == null ? [] : (t = Object(t), jN(TQ(t), function(e) { - return d9t.call(t, e); +var u9t = Object.prototype, h9t = u9t.propertyIsEnumerable, OQ = Object.getOwnPropertySymbols, f9t = OQ ? function(t) { + return t == null ? [] : (t = Object(t), HN(OQ(t), function(e) { + return h9t.call(t, e); })); -} : The; -const KN = p9t; -function g9t(t, e) { - return tm(t, KN(t), e); +} : khe; +const XN = f9t; +function d9t(t, e) { + return tm(t, XN(t), e); } -var m9t = Object.getOwnPropertySymbols, v9t = m9t ? function(t) { +var p9t = Object.getOwnPropertySymbols, g9t = p9t ? function(t) { for (var e = []; t; ) - ZN(e, KN(t)), t = ZD(t); + GN(e, XN(t)), t = GD(t); return e; -} : The; -const Che = v9t; -function y9t(t, e) { - return tm(t, Che(t), e); +} : khe; +const She = g9t; +function m9t(t, e) { + return tm(t, She(t), e); } -function Ehe(t, e, r) { +function The(t, e, r) { var n = e(t); - return Sr(t) ? n : ZN(n, r(t)); + return Sr(t) ? n : GN(n, r(t)); } -function PL(t) { - return Ehe(t, ki, KN); +function DL(t) { + return The(t, ki, XN); } -function _he(t) { - return Ehe(t, G0, Che); +function Che(t) { + return The(t, G0, She); } -var b9t = Object.prototype, x9t = b9t.hasOwnProperty; -function w9t(t) { +var v9t = Object.prototype, y9t = v9t.hasOwnProperty; +function b9t(t) { var e = t.length, r = new t.constructor(e); - return e && typeof t[0] == "string" && x9t.call(t, "index") && (r.index = t.index, r.input = t.input), r; + return e && typeof t[0] == "string" && y9t.call(t, "index") && (r.index = t.index, r.input = t.input), r; } -function O9t(t, e) { - var r = e ? XD(t.buffer) : t.buffer; +function x9t(t, e) { + var r = e ? WD(t.buffer) : t.buffer; return new t.constructor(r, t.byteOffset, t.byteLength); } -var k9t = /\w*$/; -function S9t(t) { - var e = new t.constructor(t.source, k9t.exec(t)); +var w9t = /\w*$/; +function O9t(t) { + var e = new t.constructor(t.source, w9t.exec(t)); return e.lastIndex = t.lastIndex, e; } -var CQ = Go ? Go.prototype : void 0, EQ = CQ ? CQ.valueOf : void 0; -function T9t(t) { - return EQ ? Object(EQ.call(t)) : {}; +var kQ = Go ? Go.prototype : void 0, SQ = kQ ? kQ.valueOf : void 0; +function k9t(t) { + return SQ ? Object(SQ.call(t)) : {}; } -var C9t = "[object Boolean]", E9t = "[object Date]", _9t = "[object Map]", A9t = "[object Number]", L9t = "[object RegExp]", R9t = "[object Set]", M9t = "[object String]", D9t = "[object Symbol]", N9t = "[object ArrayBuffer]", I9t = "[object DataView]", P9t = "[object Float32Array]", $9t = "[object Float64Array]", B9t = "[object Int8Array]", F9t = "[object Int16Array]", z9t = "[object Int32Array]", V9t = "[object Uint8Array]", U9t = "[object Uint8ClampedArray]", q9t = "[object Uint16Array]", Y9t = "[object Uint32Array]"; -function Q9t(t, e, r) { +var S9t = "[object Boolean]", T9t = "[object Date]", C9t = "[object Map]", E9t = "[object Number]", _9t = "[object RegExp]", A9t = "[object Set]", L9t = "[object String]", R9t = "[object Symbol]", M9t = "[object ArrayBuffer]", D9t = "[object DataView]", N9t = "[object Float32Array]", I9t = "[object Float64Array]", P9t = "[object Int8Array]", $9t = "[object Int16Array]", B9t = "[object Int32Array]", F9t = "[object Uint8Array]", z9t = "[object Uint8ClampedArray]", V9t = "[object Uint16Array]", U9t = "[object Uint32Array]"; +function q9t(t, e, r) { var n = t.constructor; switch (e) { - case N9t: - return XD(t); - case C9t: - case E9t: + case M9t: + return WD(t); + case S9t: + case T9t: return new n(+t); + case D9t: + return x9t(t, r); + case N9t: case I9t: - return O9t(t, r); case P9t: case $9t: case B9t: @@ -62548,81 +62494,79 @@ function Q9t(t, e, r) { case z9t: case V9t: case U9t: - case q9t: - case Y9t: - return oae(t, r); - case _9t: + return sae(t, r); + case C9t: return new n(); - case A9t: - case M9t: - return new n(t); + case E9t: case L9t: - return S9t(t); - case R9t: + return new n(t); + case _9t: + return O9t(t); + case A9t: return new n(); - case D9t: - return T9t(t); + case R9t: + return k9t(t); } } -var W9t = "[object Map]"; -function G9t(t) { - return Xo(t) && s1(t) == W9t; +var Y9t = "[object Map]"; +function Q9t(t) { + return Xo(t) && s1(t) == Y9t; } -var _Q = xf && xf.isMap, H9t = _Q ? em(_Q) : G9t; -const X9t = H9t; -var Z9t = "[object Set]"; -function j9t(t) { - return Xo(t) && s1(t) == Z9t; +var TQ = xf && xf.isMap, W9t = TQ ? em(TQ) : Q9t; +const G9t = W9t; +var H9t = "[object Set]"; +function X9t(t) { + return Xo(t) && s1(t) == H9t; } -var AQ = xf && xf.isSet, K9t = AQ ? em(AQ) : j9t; -const J9t = K9t; -var eRt = 1, tRt = 2, rRt = 4, Ahe = "[object Arguments]", nRt = "[object Array]", iRt = "[object Boolean]", sRt = "[object Date]", aRt = "[object Error]", Lhe = "[object Function]", oRt = "[object GeneratorFunction]", lRt = "[object Map]", cRt = "[object Number]", Rhe = "[object Object]", uRt = "[object RegExp]", hRt = "[object Set]", fRt = "[object String]", dRt = "[object Symbol]", pRt = "[object WeakMap]", gRt = "[object ArrayBuffer]", mRt = "[object DataView]", vRt = "[object Float32Array]", yRt = "[object Float64Array]", bRt = "[object Int8Array]", xRt = "[object Int16Array]", wRt = "[object Int32Array]", ORt = "[object Uint8Array]", kRt = "[object Uint8ClampedArray]", SRt = "[object Uint16Array]", TRt = "[object Uint32Array]", cn = {}; -cn[Ahe] = cn[nRt] = cn[gRt] = cn[mRt] = cn[iRt] = cn[sRt] = cn[vRt] = cn[yRt] = cn[bRt] = cn[xRt] = cn[wRt] = cn[lRt] = cn[cRt] = cn[Rhe] = cn[uRt] = cn[hRt] = cn[fRt] = cn[dRt] = cn[ORt] = cn[kRt] = cn[SRt] = cn[TRt] = !0; -cn[aRt] = cn[Lhe] = cn[pRt] = !1; +var CQ = xf && xf.isSet, Z9t = CQ ? em(CQ) : X9t; +const j9t = Z9t; +var K9t = 1, J9t = 2, eRt = 4, Ehe = "[object Arguments]", tRt = "[object Array]", rRt = "[object Boolean]", nRt = "[object Date]", iRt = "[object Error]", _he = "[object Function]", sRt = "[object GeneratorFunction]", aRt = "[object Map]", oRt = "[object Number]", Ahe = "[object Object]", lRt = "[object RegExp]", cRt = "[object Set]", uRt = "[object String]", hRt = "[object Symbol]", fRt = "[object WeakMap]", dRt = "[object ArrayBuffer]", pRt = "[object DataView]", gRt = "[object Float32Array]", mRt = "[object Float64Array]", vRt = "[object Int8Array]", yRt = "[object Int16Array]", bRt = "[object Int32Array]", xRt = "[object Uint8Array]", wRt = "[object Uint8ClampedArray]", ORt = "[object Uint16Array]", kRt = "[object Uint32Array]", cn = {}; +cn[Ehe] = cn[tRt] = cn[dRt] = cn[pRt] = cn[rRt] = cn[nRt] = cn[gRt] = cn[mRt] = cn[vRt] = cn[yRt] = cn[bRt] = cn[aRt] = cn[oRt] = cn[Ahe] = cn[lRt] = cn[cRt] = cn[uRt] = cn[hRt] = cn[xRt] = cn[wRt] = cn[ORt] = cn[kRt] = !0; +cn[iRt] = cn[_he] = cn[fRt] = !1; function fy(t, e, r, n, i, s) { - var a, o = e & eRt, l = e & tRt, u = e & rRt; + var a, o = e & K9t, l = e & J9t, u = e & eRt; if (r && (a = i ? r(t, n, i, s) : r(t)), a !== void 0) return a; if (!Pa(t)) return t; var h = Sr(t); if (h) { - if (a = w9t(t), !o) - return lae(t, a); + if (a = b9t(t), !o) + return aae(t, a); } else { - var f = s1(t), d = f == Lhe || f == oRt; + var f = s1(t), d = f == _he || f == sRt; if (r1(t)) - return aae(t, o); - if (f == Rhe || f == Ahe || d && !i) { - if (a = l || d ? {} : uae(t), !o) - return l ? y9t(t, h9t(a, t)) : g9t(t, u9t(a, t)); + return iae(t, o); + if (f == Ahe || f == Ehe || d && !i) { + if (a = l || d ? {} : lae(t), !o) + return l ? m9t(t, c9t(a, t)) : d9t(t, l9t(a, t)); } else { if (!cn[f]) return i ? t : {}; - a = Q9t(t, f, o); + a = q9t(t, f, o); } } s || (s = new wl()); var p = s.get(t); if (p) return p; - s.set(t, a), J9t(t) ? t.forEach(function(v) { + s.set(t, a), j9t(t) ? t.forEach(function(v) { a.add(fy(v, e, r, v, t, s)); - }) : X9t(t) && t.forEach(function(v, y) { + }) : G9t(t) && t.forEach(function(v, y) { a.set(y, fy(v, e, r, y, t, s)); }); - var g = u ? l ? _he : PL : l ? G0 : ki, m = h ? void 0 : g(t); - return xhe(m || t, function(v, y) { + var g = u ? l ? Che : DL : l ? G0 : ki, m = h ? void 0 : g(t); + return yhe(m || t, function(v, y) { m && (y = v, v = t[y]), px(a, y, fy(v, e, r, y, t, s)); }), a; } -var CRt = 4; +var SRt = 4; function Di(t) { - return fy(t, CRt); + return fy(t, SRt); } -var ERt = 1, _Rt = 4; -function ARt(t) { - return fy(t, ERt | _Rt); +var TRt = 1, CRt = 4; +function ERt(t) { + return fy(t, TRt | CRt); } function Ax(t) { for (var e = -1, r = t == null ? 0 : t.length, n = 0, i = []; ++e < r; ) { @@ -62631,11 +62575,11 @@ function Ax(t) { } return i; } -var LRt = "__lodash_hash_undefined__"; -function RRt(t) { - return this.__data__.set(t, LRt), this; +var _Rt = "__lodash_hash_undefined__"; +function ARt(t) { + return this.__data__.set(t, _Rt), this; } -function MRt(t) { +function LRt(t) { return this.__data__.has(t); } function h1(t) { @@ -62643,26 +62587,26 @@ function h1(t) { for (this.__data__ = new lh(); ++e < r; ) this.add(t[e]); } -h1.prototype.add = h1.prototype.push = RRt; -h1.prototype.has = MRt; -function Mhe(t, e) { +h1.prototype.add = h1.prototype.push = ARt; +h1.prototype.has = LRt; +function Lhe(t, e) { for (var r = -1, n = t == null ? 0 : t.length; ++r < n; ) if (e(t[r], r, t)) return !0; return !1; } -function JN(t, e) { +function ZN(t, e) { return t.has(e); } -var DRt = 1, NRt = 2; -function Dhe(t, e, r, n, i, s) { - var a = r & DRt, o = t.length, l = e.length; +var RRt = 1, MRt = 2; +function Rhe(t, e, r, n, i, s) { + var a = r & RRt, o = t.length, l = e.length; if (o != l && !(a && l > o)) return !1; var u = s.get(t), h = s.get(e); if (u && h) return u == e && h == t; - var f = -1, d = !0, p = r & NRt ? new h1() : void 0; + var f = -1, d = !0, p = r & MRt ? new h1() : void 0; for (s.set(t, e), s.set(e, t); ++f < o; ) { var g = t[f], m = e[f]; if (n) @@ -62674,8 +62618,8 @@ function Dhe(t, e, r, n, i, s) { break; } if (p) { - if (!Mhe(e, function(y, b) { - if (!JN(p, b) && (g === y || i(g, y, r, n, s))) + if (!Lhe(e, function(y, b) { + if (!ZN(p, b) && (g === y || i(g, y, r, n, s))) return p.push(b); })) { d = !1; @@ -62688,62 +62632,62 @@ function Dhe(t, e, r, n, i, s) { } return s.delete(t), s.delete(e), d; } -function IRt(t) { +function DRt(t) { var e = -1, r = Array(t.size); return t.forEach(function(n, i) { r[++e] = [i, n]; }), r; } -function eI(t) { +function jN(t) { var e = -1, r = Array(t.size); return t.forEach(function(n) { r[++e] = n; }), r; } -var PRt = 1, $Rt = 2, BRt = "[object Boolean]", FRt = "[object Date]", zRt = "[object Error]", VRt = "[object Map]", URt = "[object Number]", qRt = "[object RegExp]", YRt = "[object Set]", QRt = "[object String]", WRt = "[object Symbol]", GRt = "[object ArrayBuffer]", HRt = "[object DataView]", LQ = Go ? Go.prototype : void 0, A_ = LQ ? LQ.valueOf : void 0; -function XRt(t, e, r, n, i, s, a) { +var NRt = 1, IRt = 2, PRt = "[object Boolean]", $Rt = "[object Date]", BRt = "[object Error]", FRt = "[object Map]", zRt = "[object Number]", VRt = "[object RegExp]", URt = "[object Set]", qRt = "[object String]", YRt = "[object Symbol]", QRt = "[object ArrayBuffer]", WRt = "[object DataView]", EQ = Go ? Go.prototype : void 0, E_ = EQ ? EQ.valueOf : void 0; +function GRt(t, e, r, n, i, s, a) { switch (r) { - case HRt: + case WRt: if (t.byteLength != e.byteLength || t.byteOffset != e.byteOffset) return !1; t = t.buffer, e = e.buffer; - case GRt: - return !(t.byteLength != e.byteLength || !s(new B3(t), new B3(e))); - case BRt: - case FRt: - case URt: - return K1(+t, +e); + case QRt: + return !(t.byteLength != e.byteLength || !s(new $3(t), new $3(e))); + case PRt: + case $Rt: case zRt: + return K1(+t, +e); + case BRt: return t.name == e.name && t.message == e.message; + case VRt: case qRt: - case QRt: return t == e + ""; - case VRt: - var o = IRt; - case YRt: - var l = n & PRt; - if (o || (o = eI), t.size != e.size && !l) + case FRt: + var o = DRt; + case URt: + var l = n & NRt; + if (o || (o = jN), t.size != e.size && !l) return !1; var u = a.get(t); if (u) return u == e; - n |= $Rt, a.set(t, e); - var h = Dhe(o(t), o(e), n, i, s, a); + n |= IRt, a.set(t, e); + var h = Rhe(o(t), o(e), n, i, s, a); return a.delete(t), h; - case WRt: - if (A_) - return A_.call(t) == A_.call(e); + case YRt: + if (E_) + return E_.call(t) == E_.call(e); } return !1; } -var ZRt = 1, jRt = Object.prototype, KRt = jRt.hasOwnProperty; -function JRt(t, e, r, n, i, s) { - var a = r & ZRt, o = PL(t), l = o.length, u = PL(e), h = u.length; +var HRt = 1, XRt = Object.prototype, ZRt = XRt.hasOwnProperty; +function jRt(t, e, r, n, i, s) { + var a = r & HRt, o = DL(t), l = o.length, u = DL(e), h = u.length; if (l != h && !a) return !1; for (var f = l; f--; ) { var d = o[f]; - if (!(a ? d in e : KRt.call(e, d))) + if (!(a ? d in e : ZRt.call(e, d))) return !1; } var p = s.get(t), g = s.get(e); @@ -62768,32 +62712,32 @@ function JRt(t, e, r, n, i, s) { } return s.delete(t), s.delete(e), m; } -var eMt = 1, RQ = "[object Arguments]", MQ = "[object Array]", OO = "[object Object]", tMt = Object.prototype, DQ = tMt.hasOwnProperty; -function rMt(t, e, r, n, i, s) { - var a = Sr(t), o = Sr(e), l = a ? MQ : s1(t), u = o ? MQ : s1(e); - l = l == RQ ? OO : l, u = u == RQ ? OO : u; - var h = l == OO, f = u == OO, d = l == u; +var KRt = 1, _Q = "[object Arguments]", AQ = "[object Array]", wO = "[object Object]", JRt = Object.prototype, LQ = JRt.hasOwnProperty; +function eMt(t, e, r, n, i, s) { + var a = Sr(t), o = Sr(e), l = a ? AQ : s1(t), u = o ? AQ : s1(e); + l = l == _Q ? wO : l, u = u == _Q ? wO : u; + var h = l == wO, f = u == wO, d = l == u; if (d && r1(t)) { if (!r1(e)) return !1; a = !0, h = !1; } if (d && !h) - return s || (s = new wl()), a || FT(t) ? Dhe(t, e, r, n, i, s) : XRt(t, e, l, r, n, i, s); - if (!(r & eMt)) { - var p = h && DQ.call(t, "__wrapped__"), g = f && DQ.call(e, "__wrapped__"); + return s || (s = new wl()), a || $T(t) ? Rhe(t, e, r, n, i, s) : GRt(t, e, l, r, n, i, s); + if (!(r & KRt)) { + var p = h && LQ.call(t, "__wrapped__"), g = f && LQ.call(e, "__wrapped__"); if (p || g) { var m = p ? t.value() : t, v = g ? e.value() : e; return s || (s = new wl()), i(m, v, r, n, s); } } - return d ? (s || (s = new wl()), JRt(t, e, r, n, i, s)) : !1; + return d ? (s || (s = new wl()), jRt(t, e, r, n, i, s)) : !1; } -function tI(t, e, r, n, i) { - return t === e ? !0 : t == null || e == null || !Xo(t) && !Xo(e) ? t !== t && e !== e : rMt(t, e, r, n, tI, i); +function KN(t, e, r, n, i) { + return t === e ? !0 : t == null || e == null || !Xo(t) && !Xo(e) ? t !== t && e !== e : eMt(t, e, r, n, KN, i); } -var nMt = 1, iMt = 2; -function sMt(t, e, r, n) { +var tMt = 1, rMt = 2; +function nMt(t, e, r, n) { var i = r.length, s = i, a = !n; if (t == null) return !s; @@ -62812,83 +62756,83 @@ function sMt(t, e, r, n) { var f = new wl(); if (n) var d = n(u, h, l, t, e, f); - if (!(d === void 0 ? tI(h, u, nMt | iMt, n, f) : d)) + if (!(d === void 0 ? KN(h, u, tMt | rMt, n, f) : d)) return !1; } } return !0; } -function Nhe(t) { +function Mhe(t) { return t === t && !Pa(t); } -function aMt(t) { +function iMt(t) { for (var e = ki(t), r = e.length; r--; ) { var n = e[r], i = t[n]; - e[r] = [n, i, Nhe(i)]; + e[r] = [n, i, Mhe(i)]; } return e; } -function Ihe(t, e) { +function Dhe(t, e) { return function(r) { return r == null ? !1 : r[t] === e && (e !== void 0 || t in Object(r)); }; } -function oMt(t) { - var e = aMt(t); - return e.length == 1 && e[0][2] ? Ihe(e[0][0], e[0][1]) : function(r) { - return r === t || sMt(r, t, e); +function sMt(t) { + var e = iMt(t); + return e.length == 1 && e[0][2] ? Dhe(e[0][0], e[0][1]) : function(r) { + return r === t || nMt(r, t, e); }; } -function lMt(t, e) { +function aMt(t, e) { return t != null && e in Object(t); } -function Phe(t, e, r) { - e = nC(e, t); +function Nhe(t, e, r) { + e = tC(e, t); for (var n = -1, i = e.length, s = !1; ++n < i; ) { var a = _x(e[n]); if (!(s = t != null && r(t, a))) break; t = t[a]; } - return s || ++n != i ? s : (i = t == null ? 0 : t.length, !!i && jD(i) && zT(a, i) && (Sr(t) || t1(t))); + return s || ++n != i ? s : (i = t == null ? 0 : t.length, !!i && HD(i) && BT(a, i) && (Sr(t) || t1(t))); } -function $he(t, e) { - return t != null && Phe(t, e, lMt); +function Ihe(t, e) { + return t != null && Nhe(t, e, aMt); } -var cMt = 1, uMt = 2; -function hMt(t, e) { - return XN(t) && Nhe(e) ? Ihe(_x(t), e) : function(r) { - var n = a9t(r, t); - return n === void 0 && n === e ? $he(r, t) : tI(e, n, cMt | uMt); +var oMt = 1, lMt = 2; +function cMt(t, e) { + return WN(t) && Mhe(e) ? Dhe(_x(t), e) : function(r) { + var n = i9t(r, t); + return n === void 0 && n === e ? Ihe(r, t) : KN(e, n, oMt | lMt); }; } -function fMt(t) { +function uMt(t) { return function(e) { return e == null ? void 0 : e[t]; }; } -function dMt(t) { +function hMt(t) { return function(e) { - return iC(e, t); + return rC(e, t); }; } -function pMt(t) { - return XN(t) ? fMt(_x(t)) : dMt(t); +function fMt(t) { + return WN(t) ? uMt(_x(t)) : hMt(t); } function Ua(t) { - return typeof t == "function" ? t : t == null ? Qu : typeof t == "object" ? Sr(t) ? hMt(t[0], t[1]) : oMt(t) : pMt(t); + return typeof t == "function" ? t : t == null ? Qu : typeof t == "object" ? Sr(t) ? cMt(t[0], t[1]) : sMt(t) : fMt(t); } -function gMt(t, e, r, n) { +function dMt(t, e, r, n) { for (var i = -1, s = t == null ? 0 : t.length; ++i < s; ) { var a = t[i]; e(n, a, r(a), t); } return n; } -function rI(t, e) { - return t && HD(t, e, ki); +function JN(t, e) { + return t && QD(t, e, ki); } -function mMt(t, e) { +function pMt(t, e) { return function(r, n) { if (r == null) return r; @@ -62899,46 +62843,46 @@ function mMt(t, e) { return r; }; } -var vMt = mMt(rI); -const K0 = vMt; -function yMt(t, e, r, n) { +var gMt = pMt(JN); +const K0 = gMt; +function mMt(t, e, r, n) { return K0(t, function(i, s, a) { e(n, i, r(i), a); }), n; } -function bMt(t, e) { +function vMt(t, e) { return function(r, n) { - var i = Sr(r) ? gMt : yMt, s = e ? e() : {}; + var i = Sr(r) ? dMt : mMt, s = e ? e() : {}; return i(r, t, Ua(n), s); }; } -var xMt = function() { +var yMt = function() { return Gl.Date.now(); }; -const NQ = xMt; -var Bhe = Object.prototype, wMt = Bhe.hasOwnProperty, OMt = gx(function(t, e) { +const RQ = yMt; +var Phe = Object.prototype, bMt = Phe.hasOwnProperty, xMt = gx(function(t, e) { t = Object(t); var r = -1, n = e.length, i = n > 2 ? e[2] : void 0; for (i && u0(e[0], e[1], i) && (n = 1); ++r < n; ) for (var s = e[r], a = G0(s), o = -1, l = a.length; ++o < l; ) { var u = a[o], h = t[u]; - (h === void 0 || K1(h, Bhe[u]) && !wMt.call(t, u)) && (t[u] = s[u]); + (h === void 0 || K1(h, Phe[u]) && !bMt.call(t, u)) && (t[u] = s[u]); } return t; }); -const sC = OMt; -function Fhe(t, e, r) { +const nC = xMt; +function $he(t, e, r) { for (var n = -1, i = t == null ? 0 : t.length; ++n < i; ) if (r(e, t[n])) return !0; return !1; } -var kMt = 200; -function SMt(t, e, r, n) { - var i = -1, s = Ohe, a = !0, o = t.length, l = [], u = e.length; +var wMt = 200; +function OMt(t, e, r, n) { + var i = -1, s = xhe, a = !0, o = t.length, l = [], u = e.length; if (!o) return l; - r && (e = ef(e, em(r))), n ? (s = Fhe, a = !1) : e.length >= kMt && (s = JN, a = !1, e = new h1(e)); + r && (e = ef(e, em(r))), n ? (s = $he, a = !1) : e.length >= wMt && (s = ZN, a = !1, e = new h1(e)); e: for (; ++i < o; ) { var h = t[i], f = r == null ? h : r(h); @@ -62952,56 +62896,56 @@ function SMt(t, e, r, n) { } return l; } -var TMt = gx(function(t, e) { - return F3(t) ? SMt(t, sm(e, 1, F3, !0)) : []; +var kMt = gx(function(t, e) { + return B3(t) ? OMt(t, sm(e, 1, B3, !0)) : []; }); -const aC = TMt; +const iC = kMt; function Bc(t) { var e = t == null ? 0 : t.length; return e ? t[e - 1] : void 0; } function es(t, e, r) { var n = t == null ? 0 : t.length; - return n ? (e = r || e === void 0 ? 1 : Ex(e), She(t, e < 0 ? 0 : e, n)) : []; + return n ? (e = r || e === void 0 ? 1 : Ex(e), Ohe(t, e < 0 ? 0 : e, n)) : []; } function E2(t, e, r) { var n = t == null ? 0 : t.length; - return n ? (e = r || e === void 0 ? 1 : Ex(e), e = n - e, She(t, 0, e < 0 ? 0 : e)) : []; + return n ? (e = r || e === void 0 ? 1 : Ex(e), e = n - e, Ohe(t, 0, e < 0 ? 0 : e)) : []; } -function nI(t) { +function eI(t) { return typeof t == "function" ? t : Qu; } function $e(t, e) { - var r = Sr(t) ? xhe : K0; - return r(t, nI(e)); + var r = Sr(t) ? yhe : K0; + return r(t, eI(e)); } -function CMt(t, e) { +function SMt(t, e) { for (var r = -1, n = t == null ? 0 : t.length; ++r < n; ) if (!e(t[r], r, t)) return !1; return !0; } -function EMt(t, e) { +function TMt(t, e) { var r = !0; return K0(t, function(n, i, s) { return r = !!e(n, i, s), r; }), r; } function Tl(t, e, r) { - var n = Sr(t) ? CMt : EMt; + var n = Sr(t) ? SMt : TMt; return r && u0(t, e, r) && (e = void 0), n(t, Ua(e)); } -function zhe(t, e) { +function Bhe(t, e) { var r = []; return K0(t, function(n, i, s) { e(n, i, s) && r.push(n); }), r; } function Yn(t, e) { - var r = Sr(t) ? jN : zhe; + var r = Sr(t) ? HN : Bhe; return r(t, Ua(e)); } -function _Mt(t) { +function CMt(t) { return function(e, r, n) { var i = Object(e); if (!jc(e)) { @@ -63014,97 +62958,97 @@ function _Mt(t) { return a > -1 ? i[s ? e[a] : a] : void 0; }; } -var AMt = Math.max; -function LMt(t, e, r) { +var EMt = Math.max; +function _Mt(t, e, r) { var n = t == null ? 0 : t.length; if (!n) return -1; var i = r == null ? 0 : Ex(r); - return i < 0 && (i = AMt(n + i, 0)), whe(t, Ua(e), i); + return i < 0 && (i = EMt(n + i, 0)), bhe(t, Ua(e), i); } -var RMt = _Mt(LMt); -const Xu = RMt; +var AMt = CMt(_Mt); +const Xu = AMt; function Bl(t) { return t && t.length ? t[0] : void 0; } -function Vhe(t, e) { +function Fhe(t, e) { var r = -1, n = jc(t) ? Array(t.length) : []; return K0(t, function(i, s, a) { n[++r] = e(i, s, a); }), n; } function gt(t, e) { - var r = Sr(t) ? ef : Vhe; + var r = Sr(t) ? ef : Fhe; return r(t, Ua(e)); } function lo(t, e) { return sm(gt(t, e), 1); } -function MMt(t, e) { - return t == null ? t : HD(t, nI(e), G0); +function LMt(t, e) { + return t == null ? t : QD(t, eI(e), G0); } -function DMt(t, e) { - return t && rI(t, nI(e)); +function RMt(t, e) { + return t && JN(t, eI(e)); } -var NMt = Object.prototype, IMt = NMt.hasOwnProperty, PMt = bMt(function(t, e, r) { - IMt.call(t, r) ? t[r].push(e) : fx(t, r, [e]); +var MMt = Object.prototype, DMt = MMt.hasOwnProperty, NMt = vMt(function(t, e, r) { + DMt.call(t, r) ? t[r].push(e) : fx(t, r, [e]); }); -const $Mt = PMt; -function BMt(t, e) { +const IMt = NMt; +function PMt(t, e) { return t > e; } -var FMt = Object.prototype, zMt = FMt.hasOwnProperty; -function VMt(t, e) { - return t != null && zMt.call(t, e); +var $Mt = Object.prototype, BMt = $Mt.hasOwnProperty; +function FMt(t, e) { + return t != null && BMt.call(t, e); } function yt(t, e) { - return t != null && Phe(t, e, VMt); + return t != null && Nhe(t, e, FMt); } -var UMt = "[object String]"; +var zMt = "[object String]"; function $a(t) { - return typeof t == "string" || !Sr(t) && Xo(t) && ah(t) == UMt; + return typeof t == "string" || !Sr(t) && Xo(t) && ah(t) == zMt; } -function qMt(t, e) { +function VMt(t, e) { return ef(e, function(r) { return t[r]; }); } function Kr(t) { - return t == null ? [] : qMt(t, ki(t)); + return t == null ? [] : VMt(t, ki(t)); } -var YMt = Math.max; +var UMt = Math.max; function pa(t, e, r, n) { t = jc(t) ? t : Kr(t), r = r && !n ? Ex(r) : 0; var i = t.length; - return r < 0 && (r = YMt(i + r, 0)), $a(t) ? r <= i && t.indexOf(e, r) > -1 : !!i && HN(t, e, r) > -1; + return r < 0 && (r = UMt(i + r, 0)), $a(t) ? r <= i && t.indexOf(e, r) > -1 : !!i && QN(t, e, r) > -1; } -var QMt = Math.max; -function IQ(t, e, r) { +var qMt = Math.max; +function MQ(t, e, r) { var n = t == null ? 0 : t.length; if (!n) return -1; var i = r == null ? 0 : Ex(r); - return i < 0 && (i = QMt(n + i, 0)), HN(t, e, i); + return i < 0 && (i = qMt(n + i, 0)), QN(t, e, i); } -var WMt = "[object RegExp]"; -function GMt(t) { - return Xo(t) && ah(t) == WMt; +var YMt = "[object RegExp]"; +function QMt(t) { + return Xo(t) && ah(t) == YMt; } -var PQ = xf && xf.isRegExp, HMt = PQ ? em(PQ) : GMt; -const Zu = HMt; +var DQ = xf && xf.isRegExp, WMt = DQ ? em(DQ) : QMt; +const Zu = WMt; function qr(t) { return t === void 0; } -function Uhe(t, e) { +function zhe(t, e) { return t < e; } -function oC(t, e) { +function sC(t, e) { var r = {}; - return e = Ua(e), rI(t, function(n, i, s) { + return e = Ua(e), JN(t, function(n, i, s) { fx(r, i, e(n, i, s)); }), r; } -function iI(t, e, r) { +function tI(t, e, r) { for (var n = -1, i = t.length; ++n < i; ) { var s = t[n], a = e(s); if (a != null && (o === void 0 ? a === a && !m0(a) : r(a, o))) @@ -63113,18 +63057,18 @@ function iI(t, e, r) { return l; } function v0(t) { - return t && t.length ? iI(t, Qu, BMt) : void 0; + return t && t.length ? tI(t, Qu, PMt) : void 0; } function f1(t) { - return t && t.length ? iI(t, Qu, Uhe) : void 0; + return t && t.length ? tI(t, Qu, zhe) : void 0; } -function sI(t, e) { - return t && t.length ? iI(t, Ua(e), Uhe) : void 0; +function rI(t, e) { + return t && t.length ? tI(t, Ua(e), zhe) : void 0; } -var XMt = "Expected a function"; -function ZMt(t) { +var GMt = "Expected a function"; +function HMt(t) { if (typeof t != "function") - throw new TypeError(XMt); + throw new TypeError(GMt); return function() { var e = arguments; switch (e.length) { @@ -63140,46 +63084,46 @@ function ZMt(t) { return !t.apply(this, e); }; } -function jMt(t, e, r, n) { +function XMt(t, e, r, n) { if (!Pa(t)) return t; - e = nC(e, t); + e = tC(e, t); for (var i = -1, s = e.length, a = s - 1, o = t; o != null && ++i < s; ) { var l = _x(e[i]), u = r; if (l === "__proto__" || l === "constructor" || l === "prototype") return t; if (i != a) { var h = o[l]; - u = n ? n(h, l, o) : void 0, u === void 0 && (u = Pa(h) ? h : zT(e[i + 1]) ? [] : {}); + u = n ? n(h, l, o) : void 0, u === void 0 && (u = Pa(h) ? h : BT(e[i + 1]) ? [] : {}); } px(o, l, u), o = o[l]; } return t; } -function qhe(t, e, r) { +function Vhe(t, e, r) { for (var n = -1, i = e.length, s = {}; ++n < i; ) { - var a = e[n], o = iC(t, a); - r(o, a) && jMt(s, nC(a, t), o); + var a = e[n], o = rC(t, a); + r(o, a) && XMt(s, tC(a, t), o); } return s; } function Hl(t, e) { if (t == null) return {}; - var r = ef(_he(t), function(n) { + var r = ef(Che(t), function(n) { return [n]; }); - return e = Ua(e), qhe(t, r, function(n, i) { + return e = Ua(e), Vhe(t, r, function(n, i) { return e(n, i[0]); }); } -function KMt(t, e) { +function ZMt(t, e) { var r = t.length; for (t.sort(e); r--; ) t[r] = t[r].value; return t; } -function JMt(t, e) { +function jMt(t, e) { if (t !== e) { var r = t !== void 0, n = t === null, i = t === t, s = m0(t), a = e !== void 0, o = e === null, l = e === e, u = m0(e); if (!o && !u && !s && t > e || s && a && l && !o && !u || n && a && l || !r && l || !i) @@ -63189,9 +63133,9 @@ function JMt(t, e) { } return 0; } -function eDt(t, e, r) { +function KMt(t, e, r) { for (var n = -1, i = t.criteria, s = e.criteria, a = i.length, o = r.length; ++n < a; ) { - var l = JMt(i[n], s[n]); + var l = jMt(i[n], s[n]); if (l) { if (n >= o) return l; @@ -63201,90 +63145,90 @@ function eDt(t, e, r) { } return t.index - e.index; } -function tDt(t, e, r) { +function JMt(t, e, r) { e.length ? e = ef(e, function(s) { return Sr(s) ? function(a) { - return iC(a, s.length === 1 ? s[0] : s); + return rC(a, s.length === 1 ? s[0] : s); } : s; }) : e = [Qu]; var n = -1; e = ef(e, em(Ua)); - var i = Vhe(t, function(s, a, o) { + var i = Fhe(t, function(s, a, o) { var l = ef(e, function(u) { return u(s); }); return { criteria: l, index: ++n, value: s }; }); - return KMt(i, function(s, a) { - return eDt(s, a, r); + return ZMt(i, function(s, a) { + return KMt(s, a, r); }); } -function rDt(t, e) { - return qhe(t, e, function(r, n) { - return $he(t, n); +function eDt(t, e) { + return Vhe(t, e, function(r, n) { + return Ihe(t, n); }); } -var nDt = l9t(function(t, e) { - return t == null ? {} : rDt(t, e); +var tDt = a9t(function(t, e) { + return t == null ? {} : eDt(t, e); }); -const hk = nDt; -var iDt = Math.ceil, sDt = Math.max; -function aDt(t, e, r, n) { - for (var i = -1, s = sDt(iDt((e - t) / (r || 1)), 0), a = Array(s); s--; ) +const uk = tDt; +var rDt = Math.ceil, nDt = Math.max; +function iDt(t, e, r, n) { + for (var i = -1, s = nDt(rDt((e - t) / (r || 1)), 0), a = Array(s); s--; ) a[n ? s : ++i] = t, t += r; return a; } -function oDt(t) { +function sDt(t) { return function(e, r, n) { - return n && typeof n != "number" && u0(e, r, n) && (r = n = void 0), e = Q4(e), r === void 0 ? (r = e, e = 0) : r = Q4(r), n = n === void 0 ? e < r ? 1 : -1 : Q4(n), aDt(e, r, n, t); + return n && typeof n != "number" && u0(e, r, n) && (r = n = void 0), e = Y4(e), r === void 0 ? (r = e, e = 0) : r = Y4(r), n = n === void 0 ? e < r ? 1 : -1 : Y4(n), iDt(e, r, n, t); }; } -var lDt = oDt(); -const d1 = lDt; -function cDt(t, e, r, n, i) { +var aDt = sDt(); +const d1 = aDt; +function oDt(t, e, r, n, i) { return i(t, function(s, a, o) { r = n ? (n = !1, s) : e(r, s, a, o); }), r; } function gi(t, e, r) { - var n = Sr(t) ? c9t : cDt, i = arguments.length < 3; + var n = Sr(t) ? o9t : oDt, i = arguments.length < 3; return n(t, Ua(e), r, i, K0); } -function lC(t, e) { - var r = Sr(t) ? jN : zhe; - return r(t, ZMt(Ua(e))); +function aC(t, e) { + var r = Sr(t) ? HN : Bhe; + return r(t, HMt(Ua(e))); } -function uDt(t, e) { +function lDt(t, e) { var r; return K0(t, function(n, i, s) { return r = e(n, i, s), !r; }), !!r; } -function Yhe(t, e, r) { - var n = Sr(t) ? Mhe : uDt; +function Uhe(t, e, r) { + var n = Sr(t) ? Lhe : lDt; return r && u0(t, e, r) && (e = void 0), n(t, Ua(e)); } -var hDt = gx(function(t, e) { +var cDt = gx(function(t, e) { if (t == null) return []; var r = e.length; - return r > 1 && u0(t, e[0], e[1]) ? e = [] : r > 2 && u0(e[0], e[1], e[2]) && (e = [e[0]]), tDt(t, sm(e, 1), []); + return r > 1 && u0(t, e[0], e[1]) ? e = [] : r > 2 && u0(e[0], e[1], e[2]) && (e = [e[0]]), JMt(t, sm(e, 1), []); }); -const Lx = hDt; -var fDt = 1 / 0, dDt = ag && 1 / eI(new ag([, -0]))[1] == fDt ? function(t) { +const Lx = cDt; +var uDt = 1 / 0, hDt = ag && 1 / jN(new ag([, -0]))[1] == uDt ? function(t) { return new ag(t); } : vi; -const pDt = dDt; -var gDt = 200; -function aI(t, e, r) { - var n = -1, i = Ohe, s = t.length, a = !0, o = [], l = o; +const fDt = hDt; +var dDt = 200; +function nI(t, e, r) { + var n = -1, i = xhe, s = t.length, a = !0, o = [], l = o; if (r) - a = !1, i = Fhe; - else if (s >= gDt) { - var u = e ? null : pDt(t); + a = !1, i = $he; + else if (s >= dDt) { + var u = e ? null : fDt(t); if (u) - return eI(u); - a = !1, i = JN, l = new h1(); + return jN(u); + a = !1, i = ZN, l = new h1(); } else l = e ? [] : o; e: @@ -63300,32 +63244,32 @@ function aI(t, e, r) { } return o; } -var mDt = gx(function(t) { - return aI(sm(t, 1, F3, !0)); +var pDt = gx(function(t) { + return nI(sm(t, 1, B3, !0)); }); -const vDt = mDt; -function oI(t) { - return t && t.length ? aI(t) : []; +const gDt = pDt; +function iI(t) { + return t && t.length ? nI(t) : []; } -function yDt(t, e) { - return t && t.length ? aI(t, Ua(e)) : []; +function mDt(t, e) { + return t && t.length ? nI(t, Ua(e)) : []; } -var bDt = 0; -function lI(t) { - var e = ++bDt; - return khe(t) + e; +var vDt = 0; +function sI(t) { + var e = ++vDt; + return whe(t) + e; } -function xDt(t, e, r) { +function yDt(t, e, r) { for (var n = -1, i = t.length, s = e.length, a = {}; ++n < i; ) { var o = n < s ? e[n] : void 0; r(a, t[n], o); } return a; } -function wDt(t, e) { - return xDt(t || [], e || [], px); +function bDt(t, e) { + return yDt(t || [], e || [], px); } -var ODt = "\0", sd = "\0", $Q = ""; +var xDt = "\0", sd = "\0", NQ = ""; class $i { constructor(e = {}) { this._isDirected = yt(e, "directed") ? e.directed : !0, this._isMultigraph = yt(e, "multigraph") ? e.multigraph : !1, this._isCompound = yt(e, "compound") ? e.compound : !1, this._label = void 0, this._defaultNodeLabelFn = Fp(void 0), this._defaultEdgeLabelFn = Fp(void 0), this._nodes = {}, this._isCompound && (this._parent = {}, this._children = {}, this._children[sd] = {}), this._in = {}, this._preds = {}, this._out = {}, this._sucs = {}, this._edgeObjs = {}, this._edgeLabels = {}; @@ -63442,7 +63386,7 @@ class $i { neighbors(e) { var r = this.predecessors(e); if (r) - return vDt(r, this.successors(e)); + return gDt(r, this.successors(e)); } isLeaf(e) { var r; @@ -63494,20 +63438,20 @@ class $i { if (!qr(n) && !this._isMultigraph) throw new Error("Cannot set a named edge when isMultigraph = false"); this.setNode(e), this.setNode(r), this._edgeLabels[o] = s ? i : this._defaultEdgeLabelFn(e, r, n); - var l = kDt(this._isDirected, e, r, n); - return e = l.v, r = l.w, Object.freeze(l), this._edgeObjs[o] = l, BQ(this._preds[r], e), BQ(this._sucs[e], r), this._in[r][o] = l, this._out[e][o] = l, this._edgeCount++, this; + var l = wDt(this._isDirected, e, r, n); + return e = l.v, r = l.w, Object.freeze(l), this._edgeObjs[o] = l, IQ(this._preds[r], e), IQ(this._sucs[e], r), this._in[r][o] = l, this._out[e][o] = l, this._edgeCount++, this; } edge(e, r, n) { - var i = arguments.length === 1 ? L_(this._isDirected, arguments[0]) : Ev(this._isDirected, e, r, n); + var i = arguments.length === 1 ? __(this._isDirected, arguments[0]) : Ev(this._isDirected, e, r, n); return this._edgeLabels[i]; } hasEdge(e, r, n) { - var i = arguments.length === 1 ? L_(this._isDirected, arguments[0]) : Ev(this._isDirected, e, r, n); + var i = arguments.length === 1 ? __(this._isDirected, arguments[0]) : Ev(this._isDirected, e, r, n); return yt(this._edgeLabels, i); } removeEdge(e, r, n) { - var i = arguments.length === 1 ? L_(this._isDirected, arguments[0]) : Ev(this._isDirected, e, r, n), s = this._edgeObjs[i]; - return s && (e = s.v, r = s.w, delete this._edgeLabels[i], delete this._edgeObjs[i], FQ(this._preds[r], e), FQ(this._sucs[e], r), delete this._in[r][i], delete this._out[e][i], this._edgeCount--), this; + var i = arguments.length === 1 ? __(this._isDirected, arguments[0]) : Ev(this._isDirected, e, r, n), s = this._edgeObjs[i]; + return s && (e = s.v, r = s.w, delete this._edgeLabels[i], delete this._edgeObjs[i], PQ(this._preds[r], e), PQ(this._sucs[e], r), delete this._in[r][i], delete this._out[e][i], this._edgeCount--), this; } inEdges(e, r) { var n = this._in[e]; @@ -63535,10 +63479,10 @@ class $i { } $i.prototype._nodeCount = 0; $i.prototype._edgeCount = 0; -function BQ(t, e) { +function IQ(t, e) { t[e] ? t[e]++ : t[e] = 1; } -function FQ(t, e) { +function PQ(t, e) { --t[e] || delete t[e]; } function Ev(t, e, r, n) { @@ -63547,9 +63491,9 @@ function Ev(t, e, r, n) { var a = i; i = s, s = a; } - return i + $Q + s + $Q + (qr(n) ? ODt : n); + return i + NQ + s + NQ + (qr(n) ? xDt : n); } -function kDt(t, e, r, n) { +function wDt(t, e, r, n) { var i = "" + e, s = "" + r; if (!t && i > s) { var a = i; @@ -63558,10 +63502,10 @@ function kDt(t, e, r, n) { var o = { v: i, w: s }; return n && (o.name = n), o; } -function L_(t, e) { +function __(t, e) { return Ev(t, e.v, e.w, e.name); } -class SDt { +class ODt { constructor() { var e = {}; e._next = e._prev = e, this._sentinel = e; @@ -63569,63 +63513,63 @@ class SDt { dequeue() { var e = this._sentinel, r = e._prev; if (r !== e) - return zQ(r), r; + return $Q(r), r; } enqueue(e) { var r = this._sentinel; - e._prev && e._next && zQ(e), e._next = r._next, r._next._prev = e, r._next = e, e._prev = r; + e._prev && e._next && $Q(e), e._next = r._next, r._next._prev = e, r._next = e, e._prev = r; } toString() { for (var e = [], r = this._sentinel, n = r._prev; n !== r; ) - e.push(JSON.stringify(n, TDt)), n = n._prev; + e.push(JSON.stringify(n, kDt)), n = n._prev; return "[" + e.join(", ") + "]"; } } -function zQ(t) { +function $Q(t) { t._prev._next = t._next, t._next._prev = t._prev, delete t._next, delete t._prev; } -function TDt(t, e) { +function kDt(t, e) { if (t !== "_next" && t !== "_prev") return e; } -var CDt = Fp(1); -function EDt(t, e) { +var SDt = Fp(1); +function TDt(t, e) { if (t.nodeCount() <= 1) return []; - var r = ADt(t, e || CDt), n = _Dt(r.graph, r.buckets, r.zeroIdx); + var r = EDt(t, e || SDt), n = CDt(r.graph, r.buckets, r.zeroIdx); return Qi( gt(n, function(i) { return t.outEdges(i.v, i.w); }) ); } -function _Dt(t, e, r) { +function CDt(t, e, r) { for (var n = [], i = e[e.length - 1], s = e[0], a; t.nodeCount(); ) { for (; a = s.dequeue(); ) - R_(t, e, r, a); + A_(t, e, r, a); for (; a = i.dequeue(); ) - R_(t, e, r, a); + A_(t, e, r, a); if (t.nodeCount()) { for (var o = e.length - 2; o > 0; --o) if (a = e[o].dequeue(), a) { - n = n.concat(R_(t, e, r, a, !0)); + n = n.concat(A_(t, e, r, a, !0)); break; } } } return n; } -function R_(t, e, r, n, i) { +function A_(t, e, r, n, i) { var s = i ? [] : void 0; return $e(t.inEdges(n.v), function(a) { var o = t.edge(a), l = t.node(a.v); - i && s.push({ v: a.v, w: a.w }), l.out -= o, $L(e, r, l); + i && s.push({ v: a.v, w: a.w }), l.out -= o, NL(e, r, l); }), $e(t.outEdges(n.v), function(a) { var o = t.edge(a), l = a.w, u = t.node(l); - u.in -= o, $L(e, r, u); + u.in -= o, NL(e, r, u); }), t.removeNode(n.v), s; } -function ADt(t, e) { +function EDt(t, e) { var r = new $i(), n = 0, i = 0; $e(t.nodes(), function(o) { r.setNode(o, { v: o, in: 0, out: 0 }); @@ -63634,20 +63578,20 @@ function ADt(t, e) { r.setEdge(o.v, o.w, h), i = Math.max(i, r.node(o.v).out += u), n = Math.max(n, r.node(o.w).in += u); }); var s = d1(i + n + 3).map(function() { - return new SDt(); + return new ODt(); }), a = n + 1; return $e(r.nodes(), function(o) { - $L(s, a, r.node(o)); + NL(s, a, r.node(o)); }), { graph: r, buckets: s, zeroIdx: a }; } -function $L(t, e, r) { +function NL(t, e, r) { r.out ? r.in ? t[r.out - r.in + e].enqueue(r) : t[t.length - 1].enqueue(r) : t[0].enqueue(r); } -function LDt(t) { - var e = t.graph().acyclicer === "greedy" ? EDt(t, r(t)) : RDt(t); +function _Dt(t) { + var e = t.graph().acyclicer === "greedy" ? TDt(t, r(t)) : ADt(t); $e(e, function(n) { var i = t.edge(n); - t.removeEdge(n), i.forwardName = n.name, i.reversed = !0, t.setEdge(n.w, n.v, i, lI("rev")); + t.removeEdge(n), i.forwardName = n.name, i.reversed = !0, t.setEdge(n.w, n.v, i, sI("rev")); }); function r(n) { return function(i) { @@ -63655,7 +63599,7 @@ function LDt(t) { }; } } -function RDt(t) { +function ADt(t) { var e = [], r = {}, n = {}; function i(s) { yt(n, s) || (n[s] = !0, r[s] = !0, $e(t.outEdges(s), function(a) { @@ -63664,7 +63608,7 @@ function RDt(t) { } return $e(t.nodes(), i), e; } -function MDt(t) { +function LDt(t) { $e(t.edges(), function(e) { var r = t.edge(e); if (r.reversed) { @@ -63677,11 +63621,11 @@ function MDt(t) { function am(t, e, r, n) { var i; do - i = lI(n); + i = sI(n); while (t.hasNode(i)); return r.dummy = e, t.setNode(i, r), i; } -function DDt(t) { +function RDt(t) { var e = new $i().setGraph(t.graph()); return $e(t.nodes(), function(r) { e.setNode(r, t.node(r)); @@ -63693,7 +63637,7 @@ function DDt(t) { }); }), e; } -function Qhe(t) { +function qhe(t) { var e = new $i({ multigraph: t.isMultigraph() }).setGraph(t.graph()); return $e(t.nodes(), function(r) { t.children(r).length || e.setNode(r, t.node(r)); @@ -63701,15 +63645,15 @@ function Qhe(t) { e.setEdge(r, t.edge(r)); }), e; } -function VQ(t, e) { +function BQ(t, e) { var r = t.x, n = t.y, i = e.x - r, s = e.y - n, a = t.width / 2, o = t.height / 2; if (!i && !s) throw new Error("Not possible to find intersection inside of the rectangle"); var l, u; return Math.abs(s) * a > Math.abs(i) * o ? (s < 0 && (o = -o), l = o * i / s, u = o) : (i < 0 && (a = -a), l = a, u = a * s / i), { x: r + l, y: n + u }; } -function cC(t) { - var e = gt(d1(Whe(t) + 1), function() { +function oC(t) { + var e = gt(d1(Yhe(t) + 1), function() { return []; }); return $e(t.nodes(), function(r) { @@ -63717,7 +63661,7 @@ function cC(t) { qr(i) || (e[i][n.order] = r); }), e; } -function NDt(t) { +function MDt(t) { var e = f1( gt(t.nodes(), function(r) { return t.node(r).rank; @@ -63728,7 +63672,7 @@ function NDt(t) { yt(n, "rank") && (n.rank -= e); }); } -function IDt(t) { +function DDt(t) { var e = f1( gt(t.nodes(), function(s) { return t.node(s).rank; @@ -63745,14 +63689,14 @@ function IDt(t) { }); }); } -function UQ(t, e, r, n) { +function FQ(t, e, r, n) { var i = { width: 0, height: 0 }; return arguments.length >= 4 && (i.rank = r, i.order = n), am(t, "border", i, e); } -function Whe(t) { +function Yhe(t) { return v0( gt(t.nodes(), function(e) { var r = t.node(e).rank; @@ -63761,86 +63705,86 @@ function Whe(t) { }) ); } -function PDt(t, e) { +function NDt(t, e) { var r = { lhs: [], rhs: [] }; return $e(t, function(n) { e(n) ? r.lhs.push(n) : r.rhs.push(n); }), r; } -function $Dt(t, e) { - var r = NQ(); +function IDt(t, e) { + var r = RQ(); try { return e(); } finally { - console.log(t + " time: " + (NQ() - r) + "ms"); + console.log(t + " time: " + (RQ() - r) + "ms"); } } -function BDt(t, e) { +function PDt(t, e) { return e(); } -function FDt(t) { +function $Dt(t) { function e(r) { var n = t.children(r), i = t.node(r); if (n.length && $e(n, e), yt(i, "minRank")) { i.borderLeft = [], i.borderRight = []; for (var s = i.minRank, a = i.maxRank + 1; s < a; ++s) - qQ(t, "borderLeft", "_bl", r, i, s), qQ(t, "borderRight", "_br", r, i, s); + zQ(t, "borderLeft", "_bl", r, i, s), zQ(t, "borderRight", "_br", r, i, s); } } $e(t.children(), e); } -function qQ(t, e, r, n, i, s) { +function zQ(t, e, r, n, i, s) { var a = { width: 0, height: 0, rank: s, borderType: e }, o = i[e][s - 1], l = am(t, "border", a, r); i[e][s] = l, t.setParent(l, n), o && t.setEdge(o, l, { weight: 1 }); } -function zDt(t) { +function BDt(t) { var e = t.graph().rankdir.toLowerCase(); - (e === "lr" || e === "rl") && Ghe(t); + (e === "lr" || e === "rl") && Qhe(t); } -function VDt(t) { +function FDt(t) { var e = t.graph().rankdir.toLowerCase(); - (e === "bt" || e === "rl") && UDt(t), (e === "lr" || e === "rl") && (qDt(t), Ghe(t)); + (e === "bt" || e === "rl") && zDt(t), (e === "lr" || e === "rl") && (VDt(t), Qhe(t)); } -function Ghe(t) { +function Qhe(t) { $e(t.nodes(), function(e) { - YQ(t.node(e)); + VQ(t.node(e)); }), $e(t.edges(), function(e) { - YQ(t.edge(e)); + VQ(t.edge(e)); }); } -function YQ(t) { +function VQ(t) { var e = t.width; t.width = t.height, t.height = e; } -function UDt(t) { +function zDt(t) { $e(t.nodes(), function(e) { - M_(t.node(e)); + L_(t.node(e)); }), $e(t.edges(), function(e) { var r = t.edge(e); - $e(r.points, M_), yt(r, "y") && M_(r); + $e(r.points, L_), yt(r, "y") && L_(r); }); } -function M_(t) { +function L_(t) { t.y = -t.y; } -function qDt(t) { +function VDt(t) { $e(t.nodes(), function(e) { - D_(t.node(e)); + R_(t.node(e)); }), $e(t.edges(), function(e) { var r = t.edge(e); - $e(r.points, D_), yt(r, "x") && D_(r); + $e(r.points, R_), yt(r, "x") && R_(r); }); } -function D_(t) { +function R_(t) { var e = t.x; t.x = t.y, t.y = e; } -function YDt(t) { +function UDt(t) { t.graph().dummyChains = [], $e(t.edges(), function(e) { - QDt(t, e); + qDt(t, e); }); } -function QDt(t, e) { +function qDt(t, e) { var r = e.v, n = t.node(r).rank, i = e.w, s = t.node(i).rank, a = e.name, o = t.edge(e), l = o.labelRank; if (s !== n + 1) { t.removeEdge(e); @@ -63856,14 +63800,14 @@ function QDt(t, e) { t.setEdge(r, i, { weight: o.weight }, a); } } -function WDt(t) { +function YDt(t) { $e(t.graph().dummyChains, function(e) { var r = t.node(e), n = r.edgeLabel, i; for (t.setEdge(r.edgeObj, n); r.dummy; ) i = t.successors(e)[0], t.removeNode(e), n.points.push({ x: r.x, y: r.y }), r.dummy === "edge-label" && (n.x = r.x, n.y = r.y, n.width = r.width, n.height = r.height), e = i, r = t.node(e); }); } -function cI(t) { +function aI(t) { var e = {}; function r(n) { var i = t.node(n); @@ -63882,14 +63826,14 @@ function cI(t) { function _2(t, e) { return t.node(e.w).rank - t.node(e.v).rank - t.edge(e).minlen; } -function Hhe(t) { +function Whe(t) { var e = new $i({ directed: !1 }), r = t.nodes()[0], n = t.nodeCount(); e.setNode(r, {}); - for (var i, s; GDt(e, t) < n; ) - i = HDt(e, t), s = e.hasNode(i.v) ? _2(t, i) : -_2(t, i), XDt(e, t, s); + for (var i, s; QDt(e, t) < n; ) + i = WDt(e, t), s = e.hasNode(i.v) ? _2(t, i) : -_2(t, i), GDt(e, t, s); return e; } -function GDt(t, e) { +function QDt(t, e) { function r(n) { $e(e.nodeEdges(n), function(i) { var s = i.v, a = n === s ? i.w : s; @@ -63898,162 +63842,162 @@ function GDt(t, e) { } return $e(t.nodes(), r), t.nodeCount(); } -function HDt(t, e) { - return sI(e.edges(), function(r) { +function WDt(t, e) { + return rI(e.edges(), function(r) { if (t.hasNode(r.v) !== t.hasNode(r.w)) return _2(e, r); }); } -function XDt(t, e, r) { +function GDt(t, e, r) { $e(t.nodes(), function(n) { e.node(n).rank += r; }); } -function ZDt() { +function HDt() { } -ZDt.prototype = new Error(); -function Xhe(t, e, r) { +HDt.prototype = new Error(); +function Ghe(t, e, r) { Sr(e) || (e = [e]); var n = (t.isDirected() ? t.successors : t.neighbors).bind(t), i = [], s = {}; return $e(e, function(a) { if (!t.hasNode(a)) throw new Error("Graph does not have node: " + a); - Zhe(t, a, r === "post", s, n, i); + Hhe(t, a, r === "post", s, n, i); }), i; } -function Zhe(t, e, r, n, i, s) { +function Hhe(t, e, r, n, i, s) { yt(n, e) || (n[e] = !0, r || s.push(e), $e(i(e), function(a) { - Zhe(t, a, r, n, i, s); + Hhe(t, a, r, n, i, s); }), r && s.push(e)); } -function jDt(t, e) { - return Xhe(t, e, "post"); +function XDt(t, e) { + return Ghe(t, e, "post"); } -function KDt(t, e) { - return Xhe(t, e, "pre"); -} -J0.initLowLimValues = hI; -J0.initCutValues = uI; -J0.calcCutValue = jhe; -J0.leaveEdge = Jhe; -J0.enterEdge = efe; -J0.exchangeEdges = tfe; +function ZDt(t, e) { + return Ghe(t, e, "pre"); +} +J0.initLowLimValues = lI; +J0.initCutValues = oI; +J0.calcCutValue = Xhe; +J0.leaveEdge = jhe; +J0.enterEdge = Khe; +J0.exchangeEdges = Jhe; function J0(t) { - t = DDt(t), cI(t); - var e = Hhe(t); - hI(e), uI(e, t); - for (var r, n; r = Jhe(e); ) - n = efe(e, t, r), tfe(e, t, r, n); -} -function uI(t, e) { - var r = jDt(t, t.nodes()); + t = RDt(t), aI(t); + var e = Whe(t); + lI(e), oI(e, t); + for (var r, n; r = jhe(e); ) + n = Khe(e, t, r), Jhe(e, t, r, n); +} +function oI(t, e) { + var r = XDt(t, t.nodes()); r = r.slice(0, r.length - 1), $e(r, function(n) { - JDt(t, e, n); + jDt(t, e, n); }); } -function JDt(t, e, r) { +function jDt(t, e, r) { var n = t.node(r), i = n.parent; - t.edge(r, i).cutvalue = jhe(t, e, r); + t.edge(r, i).cutvalue = Xhe(t, e, r); } -function jhe(t, e, r) { +function Xhe(t, e, r) { var n = t.node(r), i = n.parent, s = !0, a = e.edge(r, i), o = 0; return a || (s = !1, a = e.edge(i, r)), o = a.weight, $e(e.nodeEdges(r), function(l) { var u = l.v === r, h = u ? l.w : l.v; if (h !== i) { var f = u === s, d = e.edge(l).weight; - if (o += f ? d : -d, tNt(t, r, h)) { + if (o += f ? d : -d, JDt(t, r, h)) { var p = t.edge(r, h).cutvalue; o += f ? -p : p; } } }), o; } -function hI(t, e) { - arguments.length < 2 && (e = t.nodes()[0]), Khe(t, {}, 1, e); +function lI(t, e) { + arguments.length < 2 && (e = t.nodes()[0]), Zhe(t, {}, 1, e); } -function Khe(t, e, r, n, i) { +function Zhe(t, e, r, n, i) { var s = r, a = t.node(n); return e[n] = !0, $e(t.neighbors(n), function(o) { - yt(e, o) || (r = Khe(t, e, r, o, n)); + yt(e, o) || (r = Zhe(t, e, r, o, n)); }), a.low = s, a.lim = r++, i ? a.parent = i : delete a.parent, r; } -function Jhe(t) { +function jhe(t) { return Xu(t.edges(), function(e) { return t.edge(e).cutvalue < 0; }); } -function efe(t, e, r) { +function Khe(t, e, r) { var n = r.v, i = r.w; e.hasEdge(n, i) || (n = r.w, i = r.v); var s = t.node(n), a = t.node(i), o = s, l = !1; s.lim > a.lim && (o = a, l = !0); var u = Yn(e.edges(), function(h) { - return l === QQ(t, t.node(h.v), o) && l !== QQ(t, t.node(h.w), o); + return l === UQ(t, t.node(h.v), o) && l !== UQ(t, t.node(h.w), o); }); - return sI(u, function(h) { + return rI(u, function(h) { return _2(e, h); }); } -function tfe(t, e, r, n) { +function Jhe(t, e, r, n) { var i = r.v, s = r.w; - t.removeEdge(i, s), t.setEdge(n.v, n.w, {}), hI(t), uI(t, e), eNt(t, e); + t.removeEdge(i, s), t.setEdge(n.v, n.w, {}), lI(t), oI(t, e), KDt(t, e); } -function eNt(t, e) { +function KDt(t, e) { var r = Xu(t.nodes(), function(i) { return !e.node(i).parent; - }), n = KDt(t, r); + }), n = ZDt(t, r); n = n.slice(1), $e(n, function(i) { var s = t.node(i).parent, a = e.edge(i, s), o = !1; a || (a = e.edge(s, i), o = !0), e.node(i).rank = e.node(s).rank + (o ? a.minlen : -a.minlen); }); } -function tNt(t, e, r) { +function JDt(t, e, r) { return t.hasEdge(e, r); } -function QQ(t, e, r) { +function UQ(t, e, r) { return r.low <= e.lim && e.lim <= r.lim; } -function rNt(t) { +function eNt(t) { switch (t.graph().ranker) { case "network-simplex": - WQ(t); + qQ(t); break; case "tight-tree": - iNt(t); + rNt(t); break; case "longest-path": - nNt(t); + tNt(t); break; default: - WQ(t); + qQ(t); } } -var nNt = cI; -function iNt(t) { - cI(t), Hhe(t); +var tNt = aI; +function rNt(t) { + aI(t), Whe(t); } -function WQ(t) { +function qQ(t) { J0(t); } -function sNt(t) { - var e = am(t, "root", {}, "_root"), r = aNt(t), n = v0(Kr(r)) - 1, i = 2 * n + 1; +function nNt(t) { + var e = am(t, "root", {}, "_root"), r = iNt(t), n = v0(Kr(r)) - 1, i = 2 * n + 1; t.graph().nestingRoot = e, $e(t.edges(), function(a) { t.edge(a).minlen *= i; }); - var s = oNt(t) + 1; + var s = sNt(t) + 1; $e(t.children(), function(a) { - rfe(t, e, i, s, n, r, a); + efe(t, e, i, s, n, r, a); }), t.graph().nodeRankFactor = i; } -function rfe(t, e, r, n, i, s, a) { +function efe(t, e, r, n, i, s, a) { var o = t.children(a); if (!o.length) { a !== e && t.setEdge(e, a, { weight: 0, minlen: r }); return; } - var l = UQ(t, "_bt"), u = UQ(t, "_bb"), h = t.node(a); + var l = FQ(t, "_bt"), u = FQ(t, "_bb"), h = t.node(a); t.setParent(l, a), h.borderTop = l, t.setParent(u, a), h.borderBottom = u, $e(o, function(f) { - rfe(t, e, r, n, i, s, f); + efe(t, e, r, n, i, s, f); var d = t.node(f), p = d.borderTop ? d.borderTop : f, g = d.borderBottom ? d.borderBottom : f, m = d.borderTop ? n : 2 * n, v = p !== g ? 1 : i - s[a] + 1; t.setEdge(l, p, { weight: m, @@ -64066,7 +64010,7 @@ function rfe(t, e, r, n, i, s, a) { }); }), t.parent(a) || t.setEdge(e, l, { weight: 0, minlen: i + s[a] }); } -function aNt(t) { +function iNt(t) { var e = {}; function r(n, i) { var s = t.children(n); @@ -64078,7 +64022,7 @@ function aNt(t) { r(n, 1); }), e; } -function oNt(t) { +function sNt(t) { return gi( t.edges(), function(e, r) { @@ -64087,14 +64031,14 @@ function oNt(t) { 0 ); } -function lNt(t) { +function aNt(t) { var e = t.graph(); t.removeNode(e.nestingRoot), delete e.nestingRoot, $e(t.edges(), function(r) { var n = t.edge(r); n.nestingEdge && t.removeEdge(r); }); } -function cNt(t, e, r) { +function oNt(t, e, r) { var n = {}, i; $e(r, function(s) { for (var a = t.parent(s), o, l; a; ) { @@ -64106,8 +64050,8 @@ function cNt(t, e, r) { } }); } -function uNt(t, e, r) { - var n = hNt(t), i = new $i({ compound: !0 }).setGraph({ root: n }).setDefaultNodeLabel(function(s) { +function lNt(t, e, r) { + var n = cNt(t), i = new $i({ compound: !0 }).setGraph({ root: n }).setDefaultNodeLabel(function(s) { return t.node(s); }); return $e(t.nodes(), function(s) { @@ -64121,18 +64065,18 @@ function uNt(t, e, r) { })); }), i; } -function hNt(t) { - for (var e; t.hasNode(e = lI("_root")); ) +function cNt(t) { + for (var e; t.hasNode(e = sI("_root")); ) ; return e; } -function fNt(t, e) { +function uNt(t, e) { for (var r = 0, n = 1; n < e.length; ++n) - r += dNt(t, e[n - 1], e[n]); + r += hNt(t, e[n - 1], e[n]); return r; } -function dNt(t, e, r) { - for (var n = wDt( +function hNt(t, e, r) { + for (var n = bDt( r, gt(r, function(u, h) { return h; @@ -64163,7 +64107,7 @@ function dNt(t, e, r) { }) ), l; } -function pNt(t) { +function fNt(t) { var e = {}, r = Yn(t.nodes(), function(o) { return !t.children(o).length; }), n = v0( @@ -64185,7 +64129,7 @@ function pNt(t) { }); return $e(a, s), i; } -function gNt(t, e) { +function dNt(t, e) { return gt(e, function(r) { var n = t.inEdges(r); if (n.length) { @@ -64209,7 +64153,7 @@ function gNt(t, e) { return { v: r }; }); } -function mNt(t, e) { +function pNt(t, e) { var r = {}; $e(t, function(i, s) { var a = r[i.v] = { @@ -64227,13 +64171,13 @@ function mNt(t, e) { var n = Yn(r, function(i) { return !i.indegree; }); - return vNt(n); + return gNt(n); } -function vNt(t) { +function gNt(t) { var e = []; function r(s) { return function(a) { - a.merged || (qr(a.barycenter) || qr(s.barycenter) || a.barycenter >= s.barycenter) && yNt(s, a); + a.merged || (qr(a.barycenter) || qr(s.barycenter) || a.barycenter >= s.barycenter) && mNt(s, a); }; } function n(s) { @@ -64250,58 +64194,58 @@ function vNt(t) { return !s.merged; }), function(s) { - return hk(s, ["vs", "i", "barycenter", "weight"]); + return uk(s, ["vs", "i", "barycenter", "weight"]); } ); } -function yNt(t, e) { +function mNt(t, e) { var r = 0, n = 0; t.weight && (r += t.barycenter * t.weight, n += t.weight), e.weight && (r += e.barycenter * e.weight, n += e.weight), t.vs = e.vs.concat(t.vs), t.barycenter = r / n, t.weight = n, t.i = Math.min(e.i, t.i), e.merged = !0; } -function bNt(t, e) { - var r = PDt(t, function(h) { +function vNt(t, e) { + var r = NDt(t, function(h) { return yt(h, "barycenter"); }), n = r.lhs, i = Lx(r.rhs, function(h) { return -h.i; }), s = [], a = 0, o = 0, l = 0; - n.sort(xNt(!!e)), l = GQ(s, i, l), $e(n, function(h) { - l += h.vs.length, s.push(h.vs), a += h.barycenter * h.weight, o += h.weight, l = GQ(s, i, l); + n.sort(yNt(!!e)), l = YQ(s, i, l), $e(n, function(h) { + l += h.vs.length, s.push(h.vs), a += h.barycenter * h.weight, o += h.weight, l = YQ(s, i, l); }); var u = { vs: Qi(s) }; return o && (u.barycenter = a / o, u.weight = o), u; } -function GQ(t, e, r) { +function YQ(t, e, r) { for (var n; e.length && (n = Bc(e)).i <= r; ) e.pop(), t.push(n.vs), r++; return r; } -function xNt(t) { +function yNt(t) { return function(e, r) { return e.barycenter < r.barycenter ? -1 : e.barycenter > r.barycenter ? 1 : t ? r.i - e.i : e.i - r.i; }; } -function nfe(t, e, r, n) { +function tfe(t, e, r, n) { var i = t.children(e), s = t.node(e), a = s ? s.borderLeft : void 0, o = s ? s.borderRight : void 0, l = {}; a && (i = Yn(i, function(g) { return g !== a && g !== o; })); - var u = gNt(t, i); + var u = dNt(t, i); $e(u, function(g) { if (t.children(g.v).length) { - var m = nfe(t, g.v, r, n); - l[g.v] = m, yt(m, "barycenter") && ONt(g, m); + var m = tfe(t, g.v, r, n); + l[g.v] = m, yt(m, "barycenter") && xNt(g, m); } }); - var h = mNt(u, r); - wNt(h, l); - var f = bNt(h, n); + var h = pNt(u, r); + bNt(h, l); + var f = vNt(h, n); if (a && (f.vs = Qi([a, f.vs, o]), t.predecessors(a).length)) { var d = t.node(t.predecessors(a)[0]), p = t.node(t.predecessors(o)[0]); yt(f, "barycenter") || (f.barycenter = 0, f.weight = 0), f.barycenter = (f.barycenter * f.weight + d.order + p.order) / (f.weight + 2), f.weight += 2; } return f; } -function wNt(t, e) { +function bNt(t, e) { $e(t, function(r) { r.vs = Qi( r.vs.map(function(n) { @@ -64310,44 +64254,44 @@ function wNt(t, e) { ); }); } -function ONt(t, e) { +function xNt(t, e) { qr(t.barycenter) ? (t.barycenter = e.barycenter, t.weight = e.weight) : (t.barycenter = (t.barycenter * t.weight + e.barycenter * e.weight) / (t.weight + e.weight), t.weight += e.weight); } -function kNt(t) { - var e = Whe(t), r = HQ(t, d1(1, e + 1), "inEdges"), n = HQ(t, d1(e - 1, -1, -1), "outEdges"), i = pNt(t); - XQ(t, i); +function wNt(t) { + var e = Yhe(t), r = QQ(t, d1(1, e + 1), "inEdges"), n = QQ(t, d1(e - 1, -1, -1), "outEdges"), i = fNt(t); + WQ(t, i); for (var s = Number.POSITIVE_INFINITY, a, o = 0, l = 0; l < 4; ++o, ++l) { - SNt(o % 2 ? r : n, o % 4 >= 2), i = cC(t); - var u = fNt(t, i); - u < s && (l = 0, a = ARt(i), s = u); + ONt(o % 2 ? r : n, o % 4 >= 2), i = oC(t); + var u = uNt(t, i); + u < s && (l = 0, a = ERt(i), s = u); } - XQ(t, a); + WQ(t, a); } -function HQ(t, e, r) { +function QQ(t, e, r) { return gt(e, function(n) { - return uNt(t, n, r); + return lNt(t, n, r); }); } -function SNt(t, e) { +function ONt(t, e) { var r = new $i(); $e(t, function(n) { - var i = n.graph().root, s = nfe(n, i, r, e); + var i = n.graph().root, s = tfe(n, i, r, e); $e(s.vs, function(a, o) { n.node(a).order = o; - }), cNt(n, r, s.vs); + }), oNt(n, r, s.vs); }); } -function XQ(t, e) { +function WQ(t, e) { $e(e, function(r) { $e(r, function(n, i) { t.node(n).order = i; }); }); } -function TNt(t) { - var e = ENt(t); +function kNt(t) { + var e = TNt(t); $e(t.graph().dummyChains, function(r) { - for (var n = t.node(r), i = n.edgeObj, s = CNt(t, e, i.v, i.w), a = s.path, o = s.lca, l = 0, u = a[l], h = !0; r !== i.w; ) { + for (var n = t.node(r), i = n.edgeObj, s = SNt(t, e, i.v, i.w), a = s.path, o = s.lca, l = 0, u = a[l], h = !0; r !== i.w; ) { if (n = t.node(r), h) { for (; (u = a[l]) !== o && t.node(u).maxRank < n.rank; ) l++; @@ -64362,7 +64306,7 @@ function TNt(t) { } }); } -function CNt(t, e, r, n) { +function SNt(t, e, r, n) { var i = [], s = [], a = Math.min(e[r].low, e[n].low), o = Math.max(e[r].lim, e[n].lim), l, u; l = r; do @@ -64372,7 +64316,7 @@ function CNt(t, e, r, n) { s.push(l); return { path: i.concat(s.reverse()), lca: u }; } -function ENt(t) { +function TNt(t) { var e = {}, r = 0; function n(i) { var s = r; @@ -64380,30 +64324,30 @@ function ENt(t) { } return $e(t.children(), n), e; } -function _Nt(t, e) { +function CNt(t, e) { var r = {}; function n(i, s) { var a = 0, o = 0, l = i.length, u = Bc(s); return $e(s, function(h, f) { - var d = LNt(t, h), p = d ? t.node(d).order : l; + var d = _Nt(t, h), p = d ? t.node(d).order : l; (d || h === u) && ($e(s.slice(o, f + 1), function(g) { $e(t.predecessors(g), function(m) { var v = t.node(m), y = v.order; - (y < a || p < y) && !(v.dummy && t.node(g).dummy) && ife(r, m, g); + (y < a || p < y) && !(v.dummy && t.node(g).dummy) && rfe(r, m, g); }); }), o = f + 1, a = p); }), s; } return gi(e, n), r; } -function ANt(t, e) { +function ENt(t, e) { var r = {}; function n(s, a, o, l, u) { var h; $e(d1(a, o), function(f) { h = s[f], t.node(h).dummy && $e(t.predecessors(h), function(d) { var p = t.node(d); - p.dummy && (p.order < l || p.order > u) && ife(r, d, h); + p.dummy && (p.order < l || p.order > u) && rfe(r, d, h); }); }); } @@ -64419,13 +64363,13 @@ function ANt(t, e) { } return gi(e, i), r; } -function LNt(t, e) { +function _Nt(t, e) { if (t.node(e).dummy) return Xu(t.predecessors(e), function(r) { return t.node(r).dummy; }); } -function ife(t, e, r) { +function rfe(t, e, r) { if (e > r) { var n = e; e = r, r = n; @@ -64433,14 +64377,14 @@ function ife(t, e, r) { var i = t[e]; i || (t[e] = i = {}), i[r] = !0; } -function RNt(t, e, r) { +function ANt(t, e, r) { if (e > r) { var n = e; e = r, r = n; } return yt(t[e], r); } -function MNt(t, e, r, n) { +function LNt(t, e, r, n) { var i = {}, s = {}, a = {}; return $e(e, function(o) { $e(o, function(l, u) { @@ -64456,14 +64400,14 @@ function MNt(t, e, r, n) { }); for (var f = (h.length - 1) / 2, d = Math.floor(f), p = Math.ceil(f); d <= p; ++d) { var g = h[d]; - s[u] === u && l < a[g] && !RNt(r, u, g) && (s[g] = u, s[u] = i[u] = i[g], l = a[g]); + s[u] === u && l < a[g] && !ANt(r, u, g) && (s[g] = u, s[u] = i[u] = i[g], l = a[g]); } } }); }), { root: i, align: s }; } -function DNt(t, e, r, n, i) { - var s = {}, a = NNt(t, e, r, i), o = i ? "borderLeft" : "borderRight"; +function RNt(t, e, r, n, i) { + var s = {}, a = MNt(t, e, r, i), o = i ? "borderLeft" : "borderRight"; function l(f, d) { for (var p = a.nodes(), g = p.pop(), m = {}; g; ) m[g] ? f(g) : (m[g] = !0, p.push(g), p = p.concat(d(g))), g = p.pop(); @@ -64483,8 +64427,8 @@ function DNt(t, e, r, n, i) { s[f] = s[r[f]]; }), s; } -function NNt(t, e, r, n) { - var i = new $i(), s = t.graph(), a = FNt(s.nodesep, s.edgesep, n); +function MNt(t, e, r, n) { + var i = new $i(), s = t.graph(), a = $Nt(s.nodesep, s.edgesep, n); return $e(e, function(o) { var l; $e(o, function(u) { @@ -64497,54 +64441,54 @@ function NNt(t, e, r, n) { }); }), i; } -function INt(t, e) { - return sI(Kr(e), function(r) { +function DNt(t, e) { + return rI(Kr(e), function(r) { var n = Number.NEGATIVE_INFINITY, i = Number.POSITIVE_INFINITY; - return MMt(r, function(s, a) { - var o = zNt(t, a) / 2; + return LMt(r, function(s, a) { + var o = BNt(t, a) / 2; n = Math.max(s + o, n), i = Math.min(s - o, i); }), n - i; }); } -function PNt(t, e) { +function NNt(t, e) { var r = Kr(e), n = f1(r), i = v0(r); $e(["u", "d"], function(s) { $e(["l", "r"], function(a) { var o = s + a, l = t[o], u; if (l !== e) { var h = Kr(l); - u = a === "l" ? n - f1(h) : i - v0(h), u && (t[o] = oC(l, function(f) { + u = a === "l" ? n - f1(h) : i - v0(h), u && (t[o] = sC(l, function(f) { return f + u; })); } }); }); } -function $Nt(t, e) { - return oC(t.ul, function(r, n) { +function INt(t, e) { + return sC(t.ul, function(r, n) { if (e) return t[e.toLowerCase()][n]; var i = Lx(gt(t, n)); return (i[1] + i[2]) / 2; }); } -function BNt(t) { - var e = cC(t), r = z3(_Nt(t, e), ANt(t, e)), n = {}, i; +function PNt(t) { + var e = oC(t), r = F3(CNt(t, e), ENt(t, e)), n = {}, i; $e(["u", "d"], function(a) { i = a === "u" ? e : Kr(e).reverse(), $e(["l", "r"], function(o) { o === "r" && (i = gt(i, function(f) { return Kr(f).reverse(); })); - var l = (a === "u" ? t.predecessors : t.successors).bind(t), u = MNt(t, i, r, l), h = DNt(t, i, u.root, u.align, o === "r"); - o === "r" && (h = oC(h, function(f) { + var l = (a === "u" ? t.predecessors : t.successors).bind(t), u = LNt(t, i, r, l), h = RNt(t, i, u.root, u.align, o === "r"); + o === "r" && (h = sC(h, function(f) { return -f; })), n[a + o] = h; }); }); - var s = INt(t, n); - return PNt(n, s), $Nt(n, t.graph().align); + var s = DNt(t, n); + return NNt(n, s), INt(n, t.graph().align); } -function FNt(t, e, r) { +function $Nt(t, e, r) { return function(n, i, s) { var a = n.node(i), o = n.node(s), l = 0, u; if (l += a.width / 2, yt(a, "labelpos")) @@ -64568,16 +64512,16 @@ function FNt(t, e, r) { return u && (l += r ? u : -u), u = 0, l; }; } -function zNt(t, e) { +function BNt(t, e) { return t.node(e).width; } -function VNt(t) { - t = Qhe(t), UNt(t), DMt(BNt(t), function(e, r) { +function FNt(t) { + t = qhe(t), zNt(t), RMt(PNt(t), function(e, r) { t.node(r).x = e; }); } -function UNt(t) { - var e = cC(t), r = t.graph().ranksep, n = 0; +function zNt(t) { + var e = oC(t), r = t.graph().ranksep, n = 0; $e(e, function(i) { var s = v0( gt(i, function(a) { @@ -64590,76 +64534,76 @@ function UNt(t) { }); } function om(t, e) { - var r = e && e.debugTiming ? $Dt : BDt; + var r = e && e.debugTiming ? IDt : PDt; r("layout", function() { var n = r(" buildLayoutGraph", function() { - return JNt(t); + return jNt(t); }); r(" runLayout", function() { - qNt(n, r); + VNt(n, r); }), r(" updateInputGraph", function() { - YNt(t, n); + UNt(t, n); }); }); } -function qNt(t, e) { +function VNt(t, e) { e(" makeSpaceForEdgeLabels", function() { - eIt(t); + KNt(t); }), e(" removeSelfEdges", function() { - cIt(t); + oIt(t); }), e(" acyclic", function() { - LDt(t); + _Dt(t); }), e(" nestingGraph.run", function() { - sNt(t); + nNt(t); }), e(" rank", function() { - rNt(Qhe(t)); + eNt(qhe(t)); }), e(" injectEdgeLabelProxies", function() { - tIt(t); + JNt(t); }), e(" removeEmptyRanks", function() { - IDt(t); + DDt(t); }), e(" nestingGraph.cleanup", function() { - lNt(t); + aNt(t); }), e(" normalizeRanks", function() { - NDt(t); + MDt(t); }), e(" assignRankMinMax", function() { - rIt(t); + eIt(t); }), e(" removeEdgeLabelProxies", function() { - nIt(t); + tIt(t); }), e(" normalize.run", function() { - YDt(t); + UDt(t); }), e(" parentDummyChains", function() { - TNt(t); + kNt(t); }), e(" addBorderSegments", function() { - FDt(t); + $Dt(t); }), e(" order", function() { - kNt(t); + wNt(t); }), e(" insertSelfEdges", function() { - uIt(t); + lIt(t); }), e(" adjustCoordinateSystem", function() { - zDt(t); + BDt(t); }), e(" position", function() { - VNt(t); + FNt(t); }), e(" positionSelfEdges", function() { - hIt(t); + cIt(t); }), e(" removeBorderNodes", function() { - lIt(t); + aIt(t); }), e(" normalize.undo", function() { - WDt(t); + YDt(t); }), e(" fixupEdgeLabelCoords", function() { - aIt(t); + iIt(t); }), e(" undoCoordinateSystem", function() { - VDt(t); + FDt(t); }), e(" translateGraph", function() { - iIt(t); + rIt(t); }), e(" assignNodeIntersects", function() { - sIt(t); + nIt(t); }), e(" reversePoints", function() { - oIt(t); + sIt(t); }), e(" acyclic.undo", function() { - MDt(t); + LDt(t); }); } -function YNt(t, e) { +function UNt(t, e) { $e(t.nodes(), function(r) { var n = t.node(r), i = e.node(r); n && (n.x = i.x, n.y = i.y, e.children(r).length && (n.width = i.width, n.height = i.height)); @@ -64668,37 +64612,37 @@ function YNt(t, e) { n.points = i.points, yt(i, "x") && (n.x = i.x, n.y = i.y); }), t.graph().width = e.graph().width, t.graph().height = e.graph().height; } -var QNt = ["nodesep", "edgesep", "ranksep", "marginx", "marginy"], WNt = { ranksep: 50, edgesep: 20, nodesep: 50, rankdir: "tb" }, GNt = ["acyclicer", "ranker", "rankdir", "align"], HNt = ["width", "height"], XNt = { width: 0, height: 0 }, ZNt = ["minlen", "weight", "width", "height", "labeloffset"], jNt = { +var qNt = ["nodesep", "edgesep", "ranksep", "marginx", "marginy"], YNt = { ranksep: 50, edgesep: 20, nodesep: 50, rankdir: "tb" }, QNt = ["acyclicer", "ranker", "rankdir", "align"], WNt = ["width", "height"], GNt = { width: 0, height: 0 }, HNt = ["minlen", "weight", "width", "height", "labeloffset"], XNt = { minlen: 1, weight: 1, width: 0, height: 0, labeloffset: 10, labelpos: "r" -}, KNt = ["labelpos"]; -function JNt(t) { - var e = new $i({ multigraph: !0, compound: !0 }), r = I_(t.graph()); +}, ZNt = ["labelpos"]; +function jNt(t) { + var e = new $i({ multigraph: !0, compound: !0 }), r = D_(t.graph()); return e.setGraph( - z3({}, WNt, N_(r, QNt), hk(r, GNt)) + F3({}, YNt, M_(r, qNt), uk(r, QNt)) ), $e(t.nodes(), function(n) { - var i = I_(t.node(n)); - e.setNode(n, sC(N_(i, HNt), XNt)), e.setParent(n, t.parent(n)); + var i = D_(t.node(n)); + e.setNode(n, nC(M_(i, WNt), GNt)), e.setParent(n, t.parent(n)); }), $e(t.edges(), function(n) { - var i = I_(t.edge(n)); + var i = D_(t.edge(n)); e.setEdge( n, - z3({}, jNt, N_(i, ZNt), hk(i, KNt)) + F3({}, XNt, M_(i, HNt), uk(i, ZNt)) ); }), e; } -function eIt(t) { +function KNt(t) { var e = t.graph(); e.ranksep /= 2, $e(t.edges(), function(r) { var n = t.edge(r); n.minlen *= 2, n.labelpos.toLowerCase() !== "c" && (e.rankdir === "TB" || e.rankdir === "BT" ? n.width += n.labeloffset : n.height += n.labeloffset); }); } -function tIt(t) { +function JNt(t) { $e(t.edges(), function(e) { var r = t.edge(e); if (r.width && r.height) { @@ -64707,20 +64651,20 @@ function tIt(t) { } }); } -function rIt(t) { +function eIt(t) { var e = 0; $e(t.nodes(), function(r) { var n = t.node(r); n.borderTop && (n.minRank = t.node(n.borderTop).rank, n.maxRank = t.node(n.borderBottom).rank, e = v0(e, n.maxRank)); }), t.graph().maxRank = e; } -function nIt(t) { +function tIt(t) { $e(t.nodes(), function(e) { var r = t.node(e); r.dummy === "edge-proxy" && (t.edge(r.e).labelRank = r.rank, t.removeNode(e)); }); } -function iIt(t) { +function rIt(t) { var e = Number.POSITIVE_INFINITY, r = 0, n = Number.POSITIVE_INFINITY, i = 0, s = t.graph(), a = s.marginx || 0, o = s.marginy || 0; function l(u) { var h = u.x, f = u.y, d = u.width, p = u.height; @@ -64741,13 +64685,13 @@ function iIt(t) { }), yt(h, "x") && (h.x -= e), yt(h, "y") && (h.y -= n); }), s.width = r - e + a, s.height = i - n + o; } -function sIt(t) { +function nIt(t) { $e(t.edges(), function(e) { var r = t.edge(e), n = t.node(e.v), i = t.node(e.w), s, a; - r.points ? (s = r.points[0], a = r.points[r.points.length - 1]) : (r.points = [], s = i, a = n), r.points.unshift(VQ(n, s)), r.points.push(VQ(i, a)); + r.points ? (s = r.points[0], a = r.points[r.points.length - 1]) : (r.points = [], s = i, a = n), r.points.unshift(BQ(n, s)), r.points.push(BQ(i, a)); }); } -function aIt(t) { +function iIt(t) { $e(t.edges(), function(e) { var r = t.edge(e); if (yt(r, "x")) @@ -64761,13 +64705,13 @@ function aIt(t) { } }); } -function oIt(t) { +function sIt(t) { $e(t.edges(), function(e) { var r = t.edge(e); r.reversed && r.points.reverse(); }); } -function lIt(t) { +function aIt(t) { $e(t.nodes(), function(e) { if (t.children(e).length) { var r = t.node(e), n = t.node(r.borderTop), i = t.node(r.borderBottom), s = t.node(Bc(r.borderLeft)), a = t.node(Bc(r.borderRight)); @@ -64777,7 +64721,7 @@ function lIt(t) { t.node(e).dummy === "border" && t.removeNode(e); }); } -function cIt(t) { +function oIt(t) { $e(t.edges(), function(e) { if (e.v === e.w) { var r = t.node(e.v); @@ -64785,8 +64729,8 @@ function cIt(t) { } }); } -function uIt(t) { - var e = cC(t); +function lIt(t) { + var e = oC(t); $e(e, function(r) { var n = 0; $e(r, function(i, s) { @@ -64809,7 +64753,7 @@ function uIt(t) { }); }); } -function hIt(t) { +function cIt(t) { $e(t.nodes(), function(e) { var r = t.node(e); if (r.dummy === "selfedge") { @@ -64824,10 +64768,10 @@ function hIt(t) { } }); } -function N_(t, e) { - return oC(hk(t, e), Number); +function M_(t, e) { + return sC(uk(t, e), Number); } -function I_(t) { +function D_(t) { var e = {}; return $e(t, function(r, n) { e[n.toLowerCase()] = r; @@ -64840,32 +64784,32 @@ function di(t) { multigraph: t.isMultigraph(), compound: t.isCompound() }, - nodes: fIt(t), - edges: dIt(t) + nodes: uIt(t), + edges: hIt(t) }; return qr(t.graph()) || (e.value = Di(t.graph())), e; } -function fIt(t) { +function uIt(t) { return gt(t.nodes(), function(e) { var r = t.node(e), n = t.parent(e), i = { v: e }; return qr(r) || (i.value = r), qr(n) || (i.parent = n), i; }); } -function dIt(t) { +function hIt(t) { return gt(t.edges(), function(e) { var r = t.edge(e), n = { v: e.v, w: e.w }; return qr(e.name) || (n.name = e.name), qr(r) || (n.value = r), n; }); } -var br = /* @__PURE__ */ new Map(), Pd = /* @__PURE__ */ new Map(), sfe = /* @__PURE__ */ new Map(), pIt = /* @__PURE__ */ x(() => { - Pd.clear(), sfe.clear(), br.clear(); -}, "clear"), fk = /* @__PURE__ */ x((t, e) => { +var br = /* @__PURE__ */ new Map(), Pd = /* @__PURE__ */ new Map(), nfe = /* @__PURE__ */ new Map(), fIt = /* @__PURE__ */ x(() => { + Pd.clear(), nfe.clear(), br.clear(); +}, "clear"), hk = /* @__PURE__ */ x((t, e) => { const r = Pd.get(e) || []; return X.trace("In isDescendant", e, " ", t, " = ", r.includes(t)), r.includes(t); -}, "isDescendant"), gIt = /* @__PURE__ */ x((t, e) => { +}, "isDescendant"), dIt = /* @__PURE__ */ x((t, e) => { const r = Pd.get(e) || []; - return X.info("Descendants of ", e, " is ", r), X.info("Edge is ", t), t.v === e || t.w === e ? !1 : r ? r.includes(t.v) || fk(t.v, e) || fk(t.w, e) || r.includes(t.w) : (X.debug("Tilt, ", e, ",not in descendants"), !1); -}, "edgeInCluster"), afe = /* @__PURE__ */ x((t, e, r, n) => { + return X.info("Descendants of ", e, " is ", r), X.info("Edge is ", t), t.v === e || t.w === e ? !1 : r ? r.includes(t.v) || hk(t.v, e) || hk(t.w, e) || r.includes(t.w) : (X.debug("Tilt, ", e, ",not in descendants"), !1); +}, "edgeInCluster"), ife = /* @__PURE__ */ x((t, e, r, n) => { X.warn( "Copying children of ", t, @@ -64878,7 +64822,7 @@ var br = /* @__PURE__ */ new Map(), Pd = /* @__PURE__ */ new Map(), sfe = /* @__ const i = e.children(t) || []; t !== n && i.push(t), X.warn("Copying (nodes) clusterId", t, "nodes", i), i.forEach((s) => { if (e.children(s).length > 0) - afe(s, e, r, n); + ife(s, e, r, n); else { const a = e.node(s); X.info("cp ", s, " to ", n, " with parent ", t), r.setNode(s, a), n !== e.parent(s) && (X.warn("Setting parent", s, e.parent(s)), r.setParent(s, e.parent(s))), t !== n && s !== t ? (X.debug("Setting parent", s, t), r.setParent(s, t)) : (X.info("In copy ", t, "root", n, "data", e.node(t), n), X.debug( @@ -64895,7 +64839,7 @@ var br = /* @__PURE__ */ new Map(), Pd = /* @__PURE__ */ new Map(), sfe = /* @__ const u = e.edge(l.v, l.w, l.name); X.info("Edge data", u, n); try { - gIt(l, n) ? (X.info("Copying as ", l.v, l.w, u, l.name), r.setEdge(l.v, l.w, u, l.name), X.info("newGraph edges ", r.edges(), r.edge(r.edges()[0]))) : X.info( + dIt(l, n) ? (X.info("Copying as ", l.v, l.w, u, l.name), r.setEdge(l.v, l.w, u, l.name), X.info("newGraph edges ", r.edges(), r.edge(r.edges()[0]))) : X.info( "Skipping copy of edge ", l.v, "-->", @@ -64912,13 +64856,13 @@ var br = /* @__PURE__ */ new Map(), Pd = /* @__PURE__ */ new Map(), sfe = /* @__ } X.debug("Removing node", s), e.removeNode(s); }); -}, "copy"), ofe = /* @__PURE__ */ x((t, e) => { +}, "copy"), sfe = /* @__PURE__ */ x((t, e) => { const r = e.children(t); let n = [...r]; for (const i of r) - sfe.set(i, t), n = [...n, ...ofe(i, e)]; + nfe.set(i, t), n = [...n, ...sfe(i, e)]; return n; -}, "extractDescendants"), mIt = /* @__PURE__ */ x((t, e, r) => { +}, "extractDescendants"), pIt = /* @__PURE__ */ x((t, e, r) => { const n = t.edges().filter((l) => l.v === e || l.w === e), i = t.edges().filter((l) => l.v === r || l.w === r), s = n.map((l) => ({ v: l.v === e ? r : l.v, w: l.w === e ? e : l.w })), a = i.map((l) => ({ v: l.v, w: l.w })); return s.filter((l) => a.some((u) => l.v === u.v && l.w === u.w)); }, "findCommonEdges"), A2 = /* @__PURE__ */ x((t, e, r) => { @@ -64927,7 +64871,7 @@ var br = /* @__PURE__ */ new Map(), Pd = /* @__PURE__ */ new Map(), sfe = /* @__ return t; let i; for (const s of n) { - const a = A2(s, e, r), o = mIt(e, r, a); + const a = A2(s, e, r), o = pIt(e, r, a); if (a) if (o.length > 0) i = a; @@ -64935,7 +64879,7 @@ var br = /* @__PURE__ */ new Map(), Pd = /* @__PURE__ */ new Map(), sfe = /* @__ return a; } return i; -}, "findNonClusterChild"), ZQ = /* @__PURE__ */ x((t) => !br.has(t) || !br.get(t).externalConnections ? t : br.has(t) ? br.get(t).id : t, "getAnchorId"), vIt = /* @__PURE__ */ x((t, e) => { +}, "findNonClusterChild"), GQ = /* @__PURE__ */ x((t) => !br.has(t) || !br.get(t).externalConnections ? t : br.has(t) ? br.get(t).id : t, "getAnchorId"), gIt = /* @__PURE__ */ x((t, e) => { if (!t || e > 10) { X.debug("Opting out, no graph "); return; @@ -64947,11 +64891,11 @@ var br = /* @__PURE__ */ new Map(), Pd = /* @__PURE__ */ new Map(), sfe = /* @__ r, " Replacement id in edges: ", A2(r, t, r) - ), Pd.set(r, ofe(r, t)), br.set(r, { id: A2(r, t, r), clusterData: t.node(r) })); + ), Pd.set(r, sfe(r, t)), br.set(r, { id: A2(r, t, r), clusterData: t.node(r) })); }), t.nodes().forEach(function(r) { const n = t.children(r), i = t.edges(); n.length > 0 ? (X.debug("Cluster identified", r, Pd), i.forEach((s) => { - const a = fk(s.v, r), o = fk(s.w, r); + const a = hk(s.v, r), o = hk(s.w, r); a ^ o && (X.warn("Edge: ", s, " leaves cluster ", r), X.warn("Descendants of XXX ", r, ": ", Pd.get(r)), br.get(r).externalConnections = !0); })) : X.debug("Not a cluster ", r, Pd); }); @@ -64974,7 +64918,7 @@ var br = /* @__PURE__ */ new Map(), Pd = /* @__PURE__ */ new Map(), sfe = /* @__ " --- ", br.get(r.w) ), br.get(r.v) || br.get(r.w)) { - if (X.warn("Fixing and trying - removing XXX", r.v, r.w, r.name), i = ZQ(r.v), s = ZQ(r.w), t.removeEdge(r.v, r.w, r.name), i !== r.v) { + if (X.warn("Fixing and trying - removing XXX", r.v, r.w, r.name), i = GQ(r.v), s = GQ(r.w), t.removeEdge(r.v, r.w, r.name), i !== r.v) { const a = t.parent(i); br.get(a).externalConnections = !0, n.fromCluster = r.v; } @@ -64984,8 +64928,8 @@ var br = /* @__PURE__ */ new Map(), Pd = /* @__PURE__ */ new Map(), sfe = /* @__ } X.warn("Fix Replacing with XXX", i, s, r.name), t.setEdge(i, s, n, r.name); } - }), X.warn("Adjusted Graph", di(t)), lfe(t, 0), X.trace(br); -}, "adjustClustersAndEdges"), lfe = /* @__PURE__ */ x((t, e) => { + }), X.warn("Adjusted Graph", di(t)), afe(t, 0), X.trace(br); +}, "adjustClustersAndEdges"), afe = /* @__PURE__ */ x((t, e) => { var i, s; if (X.warn("extractor - ", e, di(t), t.children("D")), e > 10) { X.error("Bailing out"); @@ -65034,7 +64978,7 @@ var br = /* @__PURE__ */ new Map(), Pd = /* @__PURE__ */ new Map(), sfe = /* @__ }).setDefaultEdgeLabel(function() { return {}; }); - X.warn("Old graph before copy", di(t)), afe(a, t, u, a), t.setNode(a, { + X.warn("Old graph before copy", di(t)), ife(a, t, u, a), t.setNode(a, { clusterNode: !0, id: a, clusterData: br.get(a).clusterData, @@ -65057,17 +65001,17 @@ var br = /* @__PURE__ */ new Map(), Pd = /* @__PURE__ */ new Map(), sfe = /* @__ r = t.nodes(), X.warn("New list of nodes", r); for (const a of r) { const o = t.node(a); - X.warn(" Now next level", a, o), o != null && o.clusterNode && lfe(o.graph, e + 1); + X.warn(" Now next level", a, o), o != null && o.clusterNode && afe(o.graph, e + 1); } -}, "extractor"), cfe = /* @__PURE__ */ x((t, e) => { +}, "extractor"), ofe = /* @__PURE__ */ x((t, e) => { if (e.length === 0) return []; let r = Object.assign([], e); return e.forEach((n) => { - const i = t.children(n), s = cfe(t, i); + const i = t.children(n), s = ofe(t, i); r = [...r, ...s]; }), r; -}, "sorter"), yIt = /* @__PURE__ */ x((t) => cfe(t, t.children()), "sortNodesByHierarchy"), ufe = /* @__PURE__ */ x(async (t, e, r, n, i, s) => { +}, "sorter"), mIt = /* @__PURE__ */ x((t) => ofe(t, t.children()), "sortNodesByHierarchy"), lfe = /* @__PURE__ */ x(async (t, e, r, n, i, s) => { X.warn("Graph in recursive render:XAX", di(e), i); const a = e.graph().rankdir; X.trace("Dir in recursive render - dir:", a); @@ -65099,7 +65043,7 @@ Parent cluster`, ranksep: y + 25, nodesep: b }); - const w = await ufe( + const w = await lfe( f, v.graph, r, @@ -65114,7 +65058,7 @@ Parent cluster`, v.width, "height", v.height - ), uTt(O, v); + ), lTt(O, v); } else e.children(m).length > 0 ? (X.trace( "Cluster - the non recursive path XBX", @@ -65124,7 +65068,7 @@ Parent cluster`, v.width, "Graph:", e - ), X.trace(A2(v.id, e)), br.set(v.id, { id: A2(v.id, e), node: v })) : (X.trace("Node - the non recursive path XAX", m, f, e.node(m), a), await koe(f, e.node(m), a)); + ), X.trace(A2(v.id, e)), br.set(v.id, { id: A2(v.id, e), node: v })) : (X.trace("Node - the non recursive path XAX", m, f, e.node(m), a), await woe(f, e.node(m), a)); }) ), await (/* @__PURE__ */ x(async () => { const m = e.edges().map(async function(v) { @@ -65138,13 +65082,13 @@ Parent cluster`, "Translating: ", br.get(v.v), br.get(v.w) - ), await foe(h, y); + ), await uoe(h, y); }); await Promise.all(m); }, "processEdges"))(), X.info("Graph before layout:", JSON.stringify(di(e))), X.info("############################################# XXX"), X.info("### Layout ### XXX"), X.info("############################################# XXX"), om(e), X.info("Graph after layout:", JSON.stringify(di(e))); let p = 0, { subGraphTitleTotalMargin: g } = V0(s); return await Promise.all( - yIt(e).map(async function(m) { + mIt(e).map(async function(m) { var y; const v = e.node(m); if (X.info( @@ -65164,7 +65108,7 @@ Parent cluster`, v.x, v.y, e.parent(m) - ), br.get(v.id).node = v, Jq(v); + ), br.get(v.id).node = v, Zq(v); else if (e.children(m).length > 0) { X.info( "A pure cluster node XBX1", @@ -65177,7 +65121,7 @@ Parent cluster`, e.parent(m) ), v.height += g, e.node(v.parentId); const b = (v == null ? void 0 : v.padding) / 2 || 0, w = ((y = v == null ? void 0 : v.labelBBox) == null ? void 0 : y.height) || 0, O = w - b || 0; - X.debug("OffsetY", O, "labelHeight", w, "halfPadding", b), await hoe(l, v), br.get(v.id).node = v; + X.debug("OffsetY", O, "labelHeight", w, "halfPadding", b), await coe(l, v), br.get(v.id).node = v; } else { const b = e.node(v.parentId); v.y += g / 2, X.info( @@ -65195,7 +65139,7 @@ Parent cluster`, b, b == null ? void 0 : b.offsetY, v - ), Jq(v); + ), Zq(v); } }) ), e.edges().forEach(function(m) { @@ -65203,13 +65147,13 @@ Parent cluster`, X.info("Edge " + m.v + " -> " + m.w + ": " + JSON.stringify(v), v), v.points.forEach((O) => O.y += g / 2); const y = e.node(m.v); var b = e.node(m.w); - const w = goe(u, v, br, r, y, b, n); - doe(v, w); + const w = doe(u, v, br, r, y, b, n); + hoe(v, w); }), e.nodes().forEach(function(m) { const v = e.node(m); X.info(m, v.type, v.diff), v.isGroup && (p = v.diff); }), X.warn("Returning from recursive render XAX", o, p), { elem: o, diff: p }; -}, "recursiveRender"), bIt = /* @__PURE__ */ x(async (t, e) => { +}, "recursiveRender"), vIt = /* @__PURE__ */ x(async (t, e) => { var s, a, o, l, u, h; const r = new $i({ multigraph: !0, @@ -65223,7 +65167,7 @@ Parent cluster`, }).setDefaultEdgeLabel(function() { return {}; }), n = e.select("g"); - moe(n, t.markers, t.type, t.diagramId), hTt(), pSt(), hSt(), pIt(), t.nodes.forEach((f) => { + poe(n, t.markers, t.type, t.diagramId), cTt(), fSt(), cSt(), fIt(), t.nodes.forEach((f) => { r.setNode(f.id, { ...f }), f.parentId && r.setParent(f.id, f.parentId); }), X.debug("Edges:", t.edges), t.edges.forEach((f) => { if (f.start === f.end) { @@ -65255,9 +65199,9 @@ Parent cluster`, v.label = "", v.arrowTypeEnd = "none", v.id = d + "-cyclic-special-1", y.arrowTypeEnd = "none", y.id = d + "-cyclic-special-mid", b.label = "", m.isGroup && (v.fromCluster = d, b.toCluster = d), b.id = d + "-cyclic-special-2", r.setEdge(d, p, v, d + "-cyclic-special-0"), r.setEdge(p, g, y, d + "-cyclic-special-1"), r.setEdge(g, d, b, d + "-cyc { +var lC = /* @__PURE__ */ x((t, e) => { const r = t.append("rect"); if (r.attr("x", e.x), r.attr("y", e.y), r.attr("fill", e.fill), r.attr("stroke", e.stroke), r.attr("width", e.width), r.attr("height", e.height), e.name && r.attr("name", e.name), e.rx && r.attr("rx", e.rx), e.ry && r.attr("ry", e.ry), e.attrs !== void 0) for (const n in e.attrs) r.attr(n, e.attrs[n]); return e.class && r.attr("class", e.class), r; -}, "drawRect"), hfe = /* @__PURE__ */ x((t, e) => { +}, "drawRect"), cfe = /* @__PURE__ */ x((t, e) => { const r = { x: e.startx, y: e.starty, @@ -65286,18 +65230,18 @@ var uC = /* @__PURE__ */ x((t, e) => { stroke: e.stroke, class: "rect" }; - uC(t, r).lower(); -}, "drawBackgroundRect"), wIt = /* @__PURE__ */ x((t, e) => { + lC(t, r).lower(); +}, "drawBackgroundRect"), bIt = /* @__PURE__ */ x((t, e) => { const r = e.text.replace(X1, " "), n = t.append("text"); n.attr("x", e.x), n.attr("y", e.y), n.attr("class", "legend"), n.style("text-anchor", e.anchor), e.class && n.attr("class", e.class); const i = n.append("tspan"); return i.attr("x", e.x + e.textMargin * 2), i.text(r), n; -}, "drawText"), OIt = /* @__PURE__ */ x((t, e, r, n) => { +}, "drawText"), xIt = /* @__PURE__ */ x((t, e, r, n) => { const i = t.append("image"); i.attr("x", e), i.attr("y", r); const s = Uf(n); i.attr("xlink:href", s); -}, "drawImage"), kIt = /* @__PURE__ */ x((t, e, r, n) => { +}, "drawImage"), wIt = /* @__PURE__ */ x((t, e, r, n) => { const i = t.append("use"); i.attr("x", e), i.attr("y", r); const s = Uf(n); @@ -65312,7 +65256,7 @@ var uC = /* @__PURE__ */ x((t, e) => { anchor: "start", rx: 0, ry: 0 -}), "getNoteRect"), fI = /* @__PURE__ */ x(() => ({ +}), "getNoteRect"), cI = /* @__PURE__ */ x(() => ({ x: 0, y: 0, width: 100, @@ -65323,7 +65267,7 @@ var uC = /* @__PURE__ */ x((t, e) => { rx: 0, ry: 0, tspan: !0 -}), "getTextObj"), dk = function() { +}), "getTextObj"), fk = function() { var t = /* @__PURE__ */ x(function(De, he, H, oe) { for (H = H || {}, oe = De.length; oe--; H[De[oe]] = he) ; @@ -65932,8 +65876,8 @@ Expecting ` + st.join(", ") + ", got '" + (this.terminals_[ft] || ft) + "'" : Ze } return x(Qe, "Parser"), Qe.prototype = Ue, Ue.Parser = Qe, new Qe(); }(); -dk.parser = dk; -var SIt = dk, Fl = [], tf = [""], aa = "global", Cl = "", Fc = [ +fk.parser = fk; +var OIt = fk, Fl = [], tf = [""], aa = "global", Cl = "", Fc = [ { alias: "global", label: { text: "global" }, @@ -65942,11 +65886,11 @@ var SIt = dk, Fl = [], tf = [""], aa = "global", Cl = "", Fc = [ link: null, parentBoundary: "" } -], L2 = [], dI = "", pI = !1, pk = 4, gk = 2, ffe, TIt = /* @__PURE__ */ x(function() { - return ffe; -}, "getC4Type"), CIt = /* @__PURE__ */ x(function(t) { - ffe = ni(t, be()); -}, "setC4Type"), EIt = /* @__PURE__ */ x(function(t, e, r, n, i, s, a, o, l) { +], L2 = [], uI = "", hI = !1, dk = 4, pk = 2, ufe, kIt = /* @__PURE__ */ x(function() { + return ufe; +}, "getC4Type"), SIt = /* @__PURE__ */ x(function(t) { + ufe = ni(t, be()); +}, "setC4Type"), TIt = /* @__PURE__ */ x(function(t, e, r, n, i, s, a, o, l) { if (t == null || e === void 0 || e === null || r === void 0 || r === null || n === void 0 || n === null) return; let u = {}; @@ -65981,7 +65925,7 @@ var SIt = dk, Fl = [], tf = [""], aa = "global", Cl = "", Fc = [ } else u.link = l; u.wrap = Yf(); -}, "addRel"), _It = /* @__PURE__ */ x(function(t, e, r, n, i, s, a) { +}, "addRel"), CIt = /* @__PURE__ */ x(function(t, e, r, n, i, s, a) { if (e === null || r === null) return; let o = {}; @@ -66009,7 +65953,7 @@ var SIt = dk, Fl = [], tf = [""], aa = "global", Cl = "", Fc = [ } else o.link = a; o.typeC4Shape = { text: t }, o.parentBoundary = aa, o.wrap = Yf(); -}, "addPersonOrSystem"), AIt = /* @__PURE__ */ x(function(t, e, r, n, i, s, a, o) { +}, "addPersonOrSystem"), EIt = /* @__PURE__ */ x(function(t, e, r, n, i, s, a, o) { if (e === null || r === null) return; let l = {}; @@ -66044,7 +65988,7 @@ var SIt = dk, Fl = [], tf = [""], aa = "global", Cl = "", Fc = [ } else l.link = o; l.wrap = Yf(), l.typeC4Shape = { text: t }, l.parentBoundary = aa; -}, "addContainer"), LIt = /* @__PURE__ */ x(function(t, e, r, n, i, s, a, o) { +}, "addContainer"), _It = /* @__PURE__ */ x(function(t, e, r, n, i, s, a, o) { if (e === null || r === null) return; let l = {}; @@ -66079,7 +66023,7 @@ var SIt = dk, Fl = [], tf = [""], aa = "global", Cl = "", Fc = [ } else l.link = o; l.wrap = Yf(), l.typeC4Shape = { text: t }, l.parentBoundary = aa; -}, "addComponent"), RIt = /* @__PURE__ */ x(function(t, e, r, n, i) { +}, "addComponent"), AIt = /* @__PURE__ */ x(function(t, e, r, n, i) { if (t === null || e === null) return; let s = {}; @@ -66102,7 +66046,7 @@ var SIt = dk, Fl = [], tf = [""], aa = "global", Cl = "", Fc = [ } else s.link = i; s.parentBoundary = aa, s.wrap = Yf(), Cl = aa, aa = t, tf.push(Cl); -}, "addPersonOrSystemBoundary"), MIt = /* @__PURE__ */ x(function(t, e, r, n, i) { +}, "addPersonOrSystemBoundary"), LIt = /* @__PURE__ */ x(function(t, e, r, n, i) { if (t === null || e === null) return; let s = {}; @@ -66125,7 +66069,7 @@ var SIt = dk, Fl = [], tf = [""], aa = "global", Cl = "", Fc = [ } else s.link = i; s.parentBoundary = aa, s.wrap = Yf(), Cl = aa, aa = t, tf.push(Cl); -}, "addContainerBoundary"), DIt = /* @__PURE__ */ x(function(t, e, r, n, i, s, a, o) { +}, "addContainerBoundary"), RIt = /* @__PURE__ */ x(function(t, e, r, n, i, s, a, o) { if (e === null || r === null) return; let l = {}; @@ -66155,9 +66099,9 @@ var SIt = dk, Fl = [], tf = [""], aa = "global", Cl = "", Fc = [ } else l.link = o; l.nodeType = t, l.parentBoundary = aa, l.wrap = Yf(), Cl = aa, aa = e, tf.push(Cl); -}, "addDeploymentNode"), NIt = /* @__PURE__ */ x(function() { +}, "addDeploymentNode"), MIt = /* @__PURE__ */ x(function() { aa = Cl, tf.pop(), Cl = tf.pop(), tf.push(Cl); -}, "popBoundaryParseStack"), IIt = /* @__PURE__ */ x(function(t, e, r, n, i, s, a, o, l, u, h) { +}, "popBoundaryParseStack"), DIt = /* @__PURE__ */ x(function(t, e, r, n, i, s, a, o, l, u, h) { let f = Fl.find((d) => d.alias === e); if (!(f === void 0 && (f = Fc.find((d) => d.alias === e), f === void 0))) { if (r != null) @@ -66215,7 +66159,7 @@ var SIt = dk, Fl = [], tf = [""], aa = "global", Cl = "", Fc = [ } else f.legendSprite = h; } -}, "updateElStyle"), PIt = /* @__PURE__ */ x(function(t, e, r, n, i, s, a) { +}, "updateElStyle"), NIt = /* @__PURE__ */ x(function(t, e, r, n, i, s, a) { const o = L2.find((l) => l.from === e && l.to === r); if (o !== void 0) { if (n != null) @@ -66243,8 +66187,8 @@ var SIt = dk, Fl = [], tf = [""], aa = "global", Cl = "", Fc = [ } else o.offsetY = parseInt(a); } -}, "updateRelStyle"), $It = /* @__PURE__ */ x(function(t, e, r) { - let n = pk, i = gk; +}, "updateRelStyle"), IIt = /* @__PURE__ */ x(function(t, e, r) { + let n = dk, i = pk; if (typeof e == "object") { const s = Object.values(e)[0]; n = parseInt(s); @@ -66255,32 +66199,32 @@ var SIt = dk, Fl = [], tf = [""], aa = "global", Cl = "", Fc = [ i = parseInt(s); } else i = parseInt(r); - n >= 1 && (pk = n), i >= 1 && (gk = i); -}, "updateLayoutConfig"), BIt = /* @__PURE__ */ x(function() { + n >= 1 && (dk = n), i >= 1 && (pk = i); +}, "updateLayoutConfig"), PIt = /* @__PURE__ */ x(function() { + return dk; +}, "getC4ShapeInRow"), $It = /* @__PURE__ */ x(function() { return pk; -}, "getC4ShapeInRow"), FIt = /* @__PURE__ */ x(function() { - return gk; -}, "getC4BoundaryInRow"), zIt = /* @__PURE__ */ x(function() { +}, "getC4BoundaryInRow"), BIt = /* @__PURE__ */ x(function() { return aa; -}, "getCurrentBoundaryParse"), VIt = /* @__PURE__ */ x(function() { +}, "getCurrentBoundaryParse"), FIt = /* @__PURE__ */ x(function() { return Cl; -}, "getParentBoundaryParse"), dfe = /* @__PURE__ */ x(function(t) { +}, "getParentBoundaryParse"), hfe = /* @__PURE__ */ x(function(t) { return t == null ? Fl : Fl.filter((e) => e.parentBoundary === t); -}, "getC4ShapeArray"), UIt = /* @__PURE__ */ x(function(t) { +}, "getC4ShapeArray"), zIt = /* @__PURE__ */ x(function(t) { return Fl.find((e) => e.alias === t); -}, "getC4Shape"), qIt = /* @__PURE__ */ x(function(t) { - return Object.keys(dfe(t)); -}, "getC4ShapeKeys"), pfe = /* @__PURE__ */ x(function(t) { +}, "getC4Shape"), VIt = /* @__PURE__ */ x(function(t) { + return Object.keys(hfe(t)); +}, "getC4ShapeKeys"), ffe = /* @__PURE__ */ x(function(t) { return t == null ? Fc : Fc.filter((e) => e.parentBoundary === t); -}, "getBoundaries"), YIt = pfe, QIt = /* @__PURE__ */ x(function() { +}, "getBoundaries"), UIt = ffe, qIt = /* @__PURE__ */ x(function() { return L2; -}, "getRels"), WIt = /* @__PURE__ */ x(function() { - return dI; -}, "getTitle"), GIt = /* @__PURE__ */ x(function(t) { - pI = t; +}, "getRels"), YIt = /* @__PURE__ */ x(function() { + return uI; +}, "getTitle"), QIt = /* @__PURE__ */ x(function(t) { + hI = t; }, "setWrap"), Yf = /* @__PURE__ */ x(function() { - return pI; -}, "autoWrap"), HIt = /* @__PURE__ */ x(function() { + return hI; +}, "autoWrap"), WIt = /* @__PURE__ */ x(function() { Fl = [], Fc = [ { alias: "global", @@ -66290,8 +66234,8 @@ var SIt = dk, Fl = [], tf = [""], aa = "global", Cl = "", Fc = [ link: null, parentBoundary: "" } - ], Cl = "", aa = "global", tf = [""], L2 = [], tf = [""], dI = "", pI = !1, pk = 4, gk = 2; -}, "clear"), XIt = { + ], Cl = "", aa = "global", tf = [""], L2 = [], tf = [""], uI = "", hI = !1, dk = 4, pk = 2; +}, "clear"), GIt = { SOLID: 0, DOTTED: 1, NOTE: 2, @@ -66315,60 +66259,60 @@ var SIt = dk, Fl = [], tf = [""], aa = "global", Cl = "", Fc = [ RECT_END: 23, SOLID_POINT: 24, DOTTED_POINT: 25 -}, ZIt = { +}, HIt = { FILLED: 0, OPEN: 1 -}, jIt = { +}, XIt = { LEFTOF: 0, RIGHTOF: 1, OVER: 2 -}, KIt = /* @__PURE__ */ x(function(t) { - dI = ni(t, be()); -}, "setTitle"), BL = { - addPersonOrSystem: _It, - addPersonOrSystemBoundary: RIt, - addContainer: AIt, - addContainerBoundary: MIt, - addComponent: LIt, - addDeploymentNode: DIt, - popBoundaryParseStack: NIt, - addRel: EIt, - updateElStyle: IIt, - updateRelStyle: PIt, - updateLayoutConfig: $It, +}, ZIt = /* @__PURE__ */ x(function(t) { + uI = ni(t, be()); +}, "setTitle"), IL = { + addPersonOrSystem: CIt, + addPersonOrSystemBoundary: AIt, + addContainer: EIt, + addContainerBoundary: LIt, + addComponent: _It, + addDeploymentNode: RIt, + popBoundaryParseStack: MIt, + addRel: TIt, + updateElStyle: DIt, + updateRelStyle: NIt, + updateLayoutConfig: IIt, autoWrap: Yf, - setWrap: GIt, - getC4ShapeArray: dfe, - getC4Shape: UIt, - getC4ShapeKeys: qIt, - getBoundaries: pfe, - getBoundarys: YIt, - getCurrentBoundaryParse: zIt, - getParentBoundaryParse: VIt, - getRels: QIt, - getTitle: WIt, - getC4Type: TIt, - getC4ShapeInRow: BIt, - getC4BoundaryInRow: FIt, + setWrap: QIt, + getC4ShapeArray: hfe, + getC4Shape: zIt, + getC4ShapeKeys: VIt, + getBoundaries: ffe, + getBoundarys: UIt, + getCurrentBoundaryParse: BIt, + getParentBoundaryParse: FIt, + getRels: qIt, + getTitle: YIt, + getC4Type: kIt, + getC4ShapeInRow: PIt, + getC4BoundaryInRow: $It, setAccTitle: Zi, getAccTitle: vs, getAccDescription: bs, setAccDescription: ys, getConfig: /* @__PURE__ */ x(() => be().c4, "getConfig"), - clear: HIt, - LINETYPE: XIt, - ARROWTYPE: ZIt, - PLACEMENT: jIt, - setTitle: KIt, - setC4Type: CIt -}, gI = /* @__PURE__ */ x(function(t, e) { - return uC(t, e); -}, "drawRect"), gfe = /* @__PURE__ */ x(function(t, e, r, n, i, s) { + clear: WIt, + LINETYPE: GIt, + ARROWTYPE: HIt, + PLACEMENT: XIt, + setTitle: ZIt, + setC4Type: SIt +}, fI = /* @__PURE__ */ x(function(t, e) { + return lC(t, e); +}, "drawRect"), dfe = /* @__PURE__ */ x(function(t, e, r, n, i, s) { const a = t.append("image"); a.attr("width", e), a.attr("height", r), a.attr("x", n), a.attr("y", i); let o = s.startsWith("data:image/png;base64") ? s : Uf(s); a.attr("xlink:href", o); -}, "drawImage"), JIt = /* @__PURE__ */ x((t, e, r) => { +}, "drawImage"), jIt = /* @__PURE__ */ x((t, e, r) => { const n = t.append("g"); let i = 0; for (let s of e) { @@ -66407,7 +66351,7 @@ var SIt = dk, Fl = [], tf = [""], aa = "global", Cl = "", Fc = [ f )); } -}, "drawRels"), ePt = /* @__PURE__ */ x(function(t, e, r) { +}, "drawRels"), KIt = /* @__PURE__ */ x(function(t, e, r) { const n = t.append("g"); let i = e.bgColor ? e.bgColor : "none", s = e.borderColor ? e.borderColor : "#444444", a = e.fontColor ? e.fontColor : "black", o = { "stroke-width": 1, "stroke-dasharray": "7.0,7.0" }; e.nodeType && (o = { "stroke-width": 1 }); @@ -66422,7 +66366,7 @@ var SIt = dk, Fl = [], tf = [""], aa = "global", Cl = "", Fc = [ ry: 2.5, attrs: o }; - gI(n, l); + fI(n, l); let u = r.boundaryFont(); u.fontWeight = "bold", u.fontSize = u.fontSize + 2, u.fontColor = a, ku(r)( e.label.text, @@ -66452,7 +66396,7 @@ var SIt = dk, Fl = [], tf = [""], aa = "global", Cl = "", Fc = [ { fill: "#444444" }, u )); -}, "drawBoundary"), tPt = /* @__PURE__ */ x(function(t, e, r) { +}, "drawBoundary"), JIt = /* @__PURE__ */ x(function(t, e, r) { var f; let n = e.bgColor ? e.bgColor : r[e.typeC4Shape.text + "_bg_color"], i = e.borderColor ? e.borderColor : r[e.typeC4Shape.text + "_border_color"], s = e.fontColor ? e.fontColor : "#FFFFFF", a = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAACD0lEQVR4Xu2YoU4EMRCGT+4j8Ai8AhaH4QHgAUjQuFMECUgMIUgwJAgMhgQsAYUiJCiQIBBY+EITsjfTdme6V24v4c8vyGbb+ZjOtN0bNcvjQXmkH83WvYBWto6PLm6v7p7uH1/w2fXD+PBycX1Pv2l3IdDm/vn7x+dXQiAubRzoURa7gRZWd0iGRIiJbOnhnfYBQZNJjNbuyY2eJG8fkDE3bbG4ep6MHUAsgYxmE3nVs6VsBWJSGccsOlFPmLIViMzLOB7pCVO2AtHJMohH7Fh6zqitQK7m0rJvAVYgGcEpe//PLdDz65sM4pF9N7ICcXDKIB5Nv6j7tD0NoSdM2QrU9Gg0ewE1LqBhHR3BBdvj2vapnidjHxD/q6vd7Pvhr31AwcY8eXMTXAKECZZJFXuEq27aLgQK5uLMohCenGGuGewOxSjBvYBqeG6B+Nqiblggdjnc+ZXDy+FNFpFzw76O3UBAROuXh6FoiAcf5g9eTvUgzy0nWg6I8cXHRUpg5bOVBCo+KDpFajOf23GgPme7RSQ+lacIENUgJ6gg1k6HjgOlqnLqip4tEuhv0hNEMXUD0clyXE3p6pZA0S2nnvTlXwLJEZWlb7cTQH1+USgTN4VhAenm/wea1OCAOmqo6fE1WCb9WSKBah+rbUWPWAmE2Rvk0ApiB45eOyNAzU8xcTvj8KvkKEoOaIYeHNA3ZuygAvFMUO0AAAAASUVORK5CYII="; switch (e.typeC4Shape.text) { @@ -66475,7 +66419,7 @@ var SIt = dk, Fl = [], tf = [""], aa = "global", Cl = "", Fc = [ case "external_container": case "component": case "external_component": - l.x = e.x, l.y = e.y, l.fill = n, l.width = e.width, l.height = e.height, l.stroke = i, l.rx = 2.5, l.ry = 2.5, l.attrs = { "stroke-width": 0.5 }, gI(o, l); + l.x = e.x, l.y = e.y, l.fill = n, l.width = e.width, l.height = e.height, l.stroke = i, l.rx = 2.5, l.ry = 2.5, l.attrs = { "stroke-width": 0.5 }, fI(o, l); break; case "system_db": case "external_system_db": @@ -66506,11 +66450,11 @@ var SIt = dk, Fl = [], tf = [""], aa = "global", Cl = "", Fc = [ ); break; } - let u = uPt(r, e.typeC4Shape.text); + let u = lPt(r, e.typeC4Shape.text); switch (o.append("text").attr("fill", s).attr("font-family", u.fontFamily).attr("font-size", u.fontSize - 2).attr("font-style", "italic").attr("lengthAdjust", "spacing").attr("textLength", e.typeC4Shape.width).attr("x", e.x + e.width / 2 - e.typeC4Shape.width / 2).attr("y", e.y + e.typeC4Shape.Y).text("<<" + e.typeC4Shape.text + ">>"), e.typeC4Shape.text) { case "person": case "external_person": - gfe( + dfe( o, 48, 48, @@ -66558,33 +66502,33 @@ var SIt = dk, Fl = [], tf = [""], aa = "global", Cl = "", Fc = [ { fill: s }, h )), e.height; -}, "drawC4Shape"), rPt = /* @__PURE__ */ x(function(t) { +}, "drawC4Shape"), ePt = /* @__PURE__ */ x(function(t) { t.append("defs").append("symbol").attr("id", "database").attr("fill-rule", "evenodd").attr("clip-rule", "evenodd").append("path").attr("transform", "scale(.5)").attr( "d", "M12.258.001l.256.004.255.005.253.008.251.01.249.012.247.015.246.016.242.019.241.02.239.023.236.024.233.027.231.028.229.031.225.032.223.034.22.036.217.038.214.04.211.041.208.043.205.045.201.046.198.048.194.05.191.051.187.053.183.054.18.056.175.057.172.059.168.06.163.061.16.063.155.064.15.066.074.033.073.033.071.034.07.034.069.035.068.035.067.035.066.035.064.036.064.036.062.036.06.036.06.037.058.037.058.037.055.038.055.038.053.038.052.038.051.039.05.039.048.039.047.039.045.04.044.04.043.04.041.04.04.041.039.041.037.041.036.041.034.041.033.042.032.042.03.042.029.042.027.042.026.043.024.043.023.043.021.043.02.043.018.044.017.043.015.044.013.044.012.044.011.045.009.044.007.045.006.045.004.045.002.045.001.045v17l-.001.045-.002.045-.004.045-.006.045-.007.045-.009.044-.011.045-.012.044-.013.044-.015.044-.017.043-.018.044-.02.043-.021.043-.023.043-.024.043-.026.043-.027.042-.029.042-.03.042-.032.042-.033.042-.034.041-.036.041-.037.041-.039.041-.04.041-.041.04-.043.04-.044.04-.045.04-.047.039-.048.039-.05.039-.051.039-.052.038-.053.038-.055.038-.055.038-.058.037-.058.037-.06.037-.06.036-.062.036-.064.036-.064.036-.066.035-.067.035-.068.035-.069.035-.07.034-.071.034-.073.033-.074.033-.15.066-.155.064-.16.063-.163.061-.168.06-.172.059-.175.057-.18.056-.183.054-.187.053-.191.051-.194.05-.198.048-.201.046-.205.045-.208.043-.211.041-.214.04-.217.038-.22.036-.223.034-.225.032-.229.031-.231.028-.233.027-.236.024-.239.023-.241.02-.242.019-.246.016-.247.015-.249.012-.251.01-.253.008-.255.005-.256.004-.258.001-.258-.001-.256-.004-.255-.005-.253-.008-.251-.01-.249-.012-.247-.015-.245-.016-.243-.019-.241-.02-.238-.023-.236-.024-.234-.027-.231-.028-.228-.031-.226-.032-.223-.034-.22-.036-.217-.038-.214-.04-.211-.041-.208-.043-.204-.045-.201-.046-.198-.048-.195-.05-.19-.051-.187-.053-.184-.054-.179-.056-.176-.057-.172-.059-.167-.06-.164-.061-.159-.063-.155-.064-.151-.066-.074-.033-.072-.033-.072-.034-.07-.034-.069-.035-.068-.035-.067-.035-.066-.035-.064-.036-.063-.036-.062-.036-.061-.036-.06-.037-.058-.037-.057-.037-.056-.038-.055-.038-.053-.038-.052-.038-.051-.039-.049-.039-.049-.039-.046-.039-.046-.04-.044-.04-.043-.04-.041-.04-.04-.041-.039-.041-.037-.041-.036-.041-.034-.041-.033-.042-.032-.042-.03-.042-.029-.042-.027-.042-.026-.043-.024-.043-.023-.043-.021-.043-.02-.043-.018-.044-.017-.043-.015-.044-.013-.044-.012-.044-.011-.045-.009-.044-.007-.045-.006-.045-.004-.045-.002-.045-.001-.045v-17l.001-.045.002-.045.004-.045.006-.045.007-.045.009-.044.011-.045.012-.044.013-.044.015-.044.017-.043.018-.044.02-.043.021-.043.023-.043.024-.043.026-.043.027-.042.029-.042.03-.042.032-.042.033-.042.034-.041.036-.041.037-.041.039-.041.04-.041.041-.04.043-.04.044-.04.046-.04.046-.039.049-.039.049-.039.051-.039.052-.038.053-.038.055-.038.056-.038.057-.037.058-.037.06-.037.061-.036.062-.036.063-.036.064-.036.066-.035.067-.035.068-.035.069-.035.07-.034.072-.034.072-.033.074-.033.151-.066.155-.064.159-.063.164-.061.167-.06.172-.059.176-.057.179-.056.184-.054.187-.053.19-.051.195-.05.198-.048.201-.046.204-.045.208-.043.211-.041.214-.04.217-.038.22-.036.223-.034.226-.032.228-.031.231-.028.234-.027.236-.024.238-.023.241-.02.243-.019.245-.016.247-.015.249-.012.251-.01.253-.008.255-.005.256-.004.258-.001.258.001zm-9.258 20.499v.01l.001.021.003.021.004.022.005.021.006.022.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.023.018.024.019.024.021.024.022.025.023.024.024.025.052.049.056.05.061.051.066.051.07.051.075.051.079.052.084.052.088.052.092.052.097.052.102.051.105.052.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.048.144.049.147.047.152.047.155.047.16.045.163.045.167.043.171.043.176.041.178.041.183.039.187.039.19.037.194.035.197.035.202.033.204.031.209.03.212.029.216.027.219.025.222.024.226.021.23.02.233.018.236.016.24.015.243.012.246.01.249.008.253.005.256.004.259.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.021.224-.024.22-.026.216-.027.212-.028.21-.031.205-.031.202-.034.198-.034.194-.036.191-.037.187-.039.183-.04.179-.04.175-.042.172-.043.168-.044.163-.045.16-.046.155-.046.152-.047.148-.048.143-.049.139-.049.136-.05.131-.05.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.053.083-.051.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.05.023-.024.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.023.01-.022.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.127l-.077.055-.08.053-.083.054-.085.053-.087.052-.09.052-.093.051-.095.05-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.045-.118.044-.12.043-.122.042-.124.042-.126.041-.128.04-.13.04-.132.038-.134.038-.135.037-.138.037-.139.035-.142.035-.143.034-.144.033-.147.032-.148.031-.15.03-.151.03-.153.029-.154.027-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.01-.179.008-.179.008-.181.006-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.006-.179-.008-.179-.008-.178-.01-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.027-.153-.029-.151-.03-.15-.03-.148-.031-.146-.032-.145-.033-.143-.034-.141-.035-.14-.035-.137-.037-.136-.037-.134-.038-.132-.038-.13-.04-.128-.04-.126-.041-.124-.042-.122-.042-.12-.044-.117-.043-.116-.045-.113-.045-.112-.046-.109-.047-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.05-.093-.052-.09-.051-.087-.052-.085-.053-.083-.054-.08-.054-.077-.054v4.127zm0-5.654v.011l.001.021.003.021.004.021.005.022.006.022.007.022.009.022.01.022.011.023.012.023.013.023.015.024.016.023.017.024.018.024.019.024.021.024.022.024.023.025.024.024.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.052.11.051.114.051.119.052.123.05.127.051.131.05.135.049.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.044.171.042.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.022.23.02.233.018.236.016.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.012.241-.015.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.048.139-.05.136-.049.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.051.051-.049.023-.025.023-.024.021-.025.02-.024.019-.024.018-.024.017-.024.015-.023.014-.023.013-.024.012-.022.01-.023.01-.023.008-.022.006-.022.006-.022.004-.021.004-.022.001-.021.001-.021v-4.139l-.077.054-.08.054-.083.054-.085.052-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.044-.118.044-.12.044-.122.042-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.035-.143.033-.144.033-.147.033-.148.031-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.009-.179.009-.179.007-.181.007-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.007-.179-.007-.179-.009-.178-.009-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.031-.146-.033-.145-.033-.143-.033-.141-.035-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.04-.126-.041-.124-.042-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.051-.093-.051-.09-.051-.087-.053-.085-.052-.083-.054-.08-.054-.077-.054v4.139zm0-5.666v.011l.001.02.003.022.004.021.005.022.006.021.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.024.018.023.019.024.021.025.022.024.023.024.024.025.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.051.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.043.171.043.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.021.23.02.233.018.236.017.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.013.241-.014.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.049.139-.049.136-.049.131-.051.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.049.023-.025.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.022.01-.023.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.153l-.077.054-.08.054-.083.053-.085.053-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.048-.105.048-.106.048-.109.046-.111.046-.114.046-.115.044-.118.044-.12.043-.122.043-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.034-.143.034-.144.033-.147.032-.148.032-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.024-.161.024-.162.023-.163.023-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.01-.178.01-.179.009-.179.007-.181.006-.182.006-.182.004-.184.003-.184.001-.185.001-.185-.001-.184-.001-.184-.003-.182-.004-.182-.006-.181-.006-.179-.007-.179-.009-.178-.01-.176-.01-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.023-.162-.023-.161-.024-.159-.024-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.032-.146-.032-.145-.033-.143-.034-.141-.034-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.041-.126-.041-.124-.041-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.048-.105-.048-.102-.048-.1-.05-.097-.049-.095-.051-.093-.051-.09-.052-.087-.052-.085-.053-.083-.053-.08-.054-.077-.054v4.153zm8.74-8.179l-.257.004-.254.005-.25.008-.247.011-.244.012-.241.014-.237.016-.233.018-.231.021-.226.022-.224.023-.22.026-.216.027-.212.028-.21.031-.205.032-.202.033-.198.034-.194.036-.191.038-.187.038-.183.04-.179.041-.175.042-.172.043-.168.043-.163.045-.16.046-.155.046-.152.048-.148.048-.143.048-.139.049-.136.05-.131.05-.126.051-.123.051-.118.051-.114.052-.11.052-.106.052-.101.052-.096.052-.092.052-.088.052-.083.052-.079.052-.074.051-.07.052-.065.051-.06.05-.056.05-.051.05-.023.025-.023.024-.021.024-.02.025-.019.024-.018.024-.017.023-.015.024-.014.023-.013.023-.012.023-.01.023-.01.022-.008.022-.006.023-.006.021-.004.022-.004.021-.001.021-.001.021.001.021.001.021.004.021.004.022.006.021.006.023.008.022.01.022.01.023.012.023.013.023.014.023.015.024.017.023.018.024.019.024.02.025.021.024.023.024.023.025.051.05.056.05.06.05.065.051.07.052.074.051.079.052.083.052.088.052.092.052.096.052.101.052.106.052.11.052.114.052.118.051.123.051.126.051.131.05.136.05.139.049.143.048.148.048.152.048.155.046.16.046.163.045.168.043.172.043.175.042.179.041.183.04.187.038.191.038.194.036.198.034.202.033.205.032.21.031.212.028.216.027.22.026.224.023.226.022.231.021.233.018.237.016.241.014.244.012.247.011.25.008.254.005.257.004.26.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.022.224-.023.22-.026.216-.027.212-.028.21-.031.205-.032.202-.033.198-.034.194-.036.191-.038.187-.038.183-.04.179-.041.175-.042.172-.043.168-.043.163-.045.16-.046.155-.046.152-.048.148-.048.143-.048.139-.049.136-.05.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.05.051-.05.023-.025.023-.024.021-.024.02-.025.019-.024.018-.024.017-.023.015-.024.014-.023.013-.023.012-.023.01-.023.01-.022.008-.022.006-.023.006-.021.004-.022.004-.021.001-.021.001-.021-.001-.021-.001-.021-.004-.021-.004-.022-.006-.021-.006-.023-.008-.022-.01-.022-.01-.023-.012-.023-.013-.023-.014-.023-.015-.024-.017-.023-.018-.024-.019-.024-.02-.025-.021-.024-.023-.024-.023-.025-.051-.05-.056-.05-.06-.05-.065-.051-.07-.052-.074-.051-.079-.052-.083-.052-.088-.052-.092-.052-.096-.052-.101-.052-.106-.052-.11-.052-.114-.052-.118-.051-.123-.051-.126-.051-.131-.05-.136-.05-.139-.049-.143-.048-.148-.048-.152-.048-.155-.046-.16-.046-.163-.045-.168-.043-.172-.043-.175-.042-.179-.041-.183-.04-.187-.038-.191-.038-.194-.036-.198-.034-.202-.033-.205-.032-.21-.031-.212-.028-.216-.027-.22-.026-.224-.023-.226-.022-.231-.021-.233-.018-.237-.016-.241-.014-.244-.012-.247-.011-.25-.008-.254-.005-.257-.004-.26-.001-.26.001z" ); -}, "insertDatabaseIcon"), nPt = /* @__PURE__ */ x(function(t) { +}, "insertDatabaseIcon"), tPt = /* @__PURE__ */ x(function(t) { t.append("defs").append("symbol").attr("id", "computer").attr("width", "24").attr("height", "24").append("path").attr("transform", "scale(.5)").attr( "d", "M2 2v13h20v-13h-20zm18 11h-16v-9h16v9zm-10.228 6l.466-1h3.524l.467 1h-4.457zm14.228 3h-24l2-6h2.104l-1.33 4h18.45l-1.297-4h2.073l2 6zm-5-10h-14v-7h14v7z" ); -}, "insertComputerIcon"), iPt = /* @__PURE__ */ x(function(t) { +}, "insertComputerIcon"), rPt = /* @__PURE__ */ x(function(t) { t.append("defs").append("symbol").attr("id", "clock").attr("width", "24").attr("height", "24").append("path").attr("transform", "scale(.5)").attr( "d", "M12 2c5.514 0 10 4.486 10 10s-4.486 10-10 10-10-4.486-10-10 4.486-10 10-10zm0-2c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm5.848 12.459c.202.038.202.333.001.372-1.907.361-6.045 1.111-6.547 1.111-.719 0-1.301-.582-1.301-1.301 0-.512.77-5.447 1.125-7.445.034-.192.312-.181.343.014l.985 6.238 5.394 1.011z" ); -}, "insertClockIcon"), sPt = /* @__PURE__ */ x(function(t) { +}, "insertClockIcon"), nPt = /* @__PURE__ */ x(function(t) { t.append("defs").append("marker").attr("id", "arrowhead").attr("refX", 9).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 12).attr("markerHeight", 12).attr("orient", "auto").append("path").attr("d", "M 0 0 L 10 5 L 0 10 z"); -}, "insertArrowHead"), aPt = /* @__PURE__ */ x(function(t) { +}, "insertArrowHead"), iPt = /* @__PURE__ */ x(function(t) { t.append("defs").append("marker").attr("id", "arrowend").attr("refX", 1).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 12).attr("markerHeight", 12).attr("orient", "auto").append("path").attr("d", "M 10 0 L 0 5 L 10 10 z"); -}, "insertArrowEnd"), oPt = /* @__PURE__ */ x(function(t) { +}, "insertArrowEnd"), sPt = /* @__PURE__ */ x(function(t) { t.append("defs").append("marker").attr("id", "filled-head").attr("refX", 18).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L14,7 L9,1 Z"); -}, "insertArrowFilledHead"), lPt = /* @__PURE__ */ x(function(t) { +}, "insertArrowFilledHead"), aPt = /* @__PURE__ */ x(function(t) { t.append("defs").append("marker").attr("id", "sequencenumber").attr("refX", 15).attr("refY", 15).attr("markerWidth", 60).attr("markerHeight", 40).attr("orient", "auto").append("circle").attr("cx", 15).attr("cy", 15).attr("r", 6); -}, "insertDynamicNumber"), cPt = /* @__PURE__ */ x(function(t) { +}, "insertDynamicNumber"), oPt = /* @__PURE__ */ x(function(t) { const r = t.append("defs").append("marker").attr("id", "crosshead").attr("markerWidth", 15).attr("markerHeight", 8).attr("orient", "auto").attr("refX", 16).attr("refY", 4); r.append("path").attr("fill", "black").attr("stroke", "#000000").style("stroke-dasharray", "0, 0").attr("stroke-width", "1px").attr("d", "M 9,2 V 6 L16,4 Z"), r.append("path").attr("fill", "none").attr("stroke", "#000000").style("stroke-dasharray", "0, 0").attr("stroke-width", "1px").attr("d", "M 0,1 L 6,7 M 6,1 L 0,7"); -}, "insertArrowCrossHead"), uPt = /* @__PURE__ */ x((t, e) => ({ +}, "insertArrowCrossHead"), lPt = /* @__PURE__ */ x((t, e) => ({ fontFamily: t[e + "FontFamily"], fontSize: t[e + "FontSize"], fontWeight: t[e + "FontWeight"] @@ -66615,24 +66559,24 @@ var SIt = dk, Fl = [], tf = [""], aa = "global", Cl = "", Fc = [ return i.textPlacement === "fo" ? r : i.textPlacement === "old" ? t : e; }; }(), oc = { - drawRect: gI, - drawBoundary: ePt, - drawC4Shape: tPt, - drawRels: JIt, - drawImage: gfe, - insertArrowHead: sPt, - insertArrowEnd: aPt, - insertArrowFilledHead: oPt, - insertDynamicNumber: lPt, - insertArrowCrossHead: cPt, - insertDatabaseIcon: rPt, - insertComputerIcon: nPt, - insertClockIcon: iPt -}, mk = 0, vk = 0, mfe = 4, FL = 2; -dk.yy = BL; -var Nt = {}, db, vfe = (db = class { + drawRect: fI, + drawBoundary: KIt, + drawC4Shape: JIt, + drawRels: jIt, + drawImage: dfe, + insertArrowHead: nPt, + insertArrowEnd: iPt, + insertArrowFilledHead: sPt, + insertDynamicNumber: aPt, + insertArrowCrossHead: oPt, + insertDatabaseIcon: ePt, + insertComputerIcon: tPt, + insertClockIcon: rPt +}, gk = 0, mk = 0, pfe = 4, PL = 2; +fk.yy = IL; +var Nt = {}, db, gfe = (db = class { constructor(e) { - this.name = "", this.data = {}, this.data.startx = void 0, this.data.stopx = void 0, this.data.starty = void 0, this.data.stopy = void 0, this.data.widthLimit = void 0, this.nextData = {}, this.nextData.startx = void 0, this.nextData.stopx = void 0, this.nextData.starty = void 0, this.nextData.stopy = void 0, this.nextData.cnt = 0, zL(e.db.getConfig()); + this.name = "", this.data = {}, this.data.startx = void 0, this.data.stopx = void 0, this.data.starty = void 0, this.data.stopy = void 0, this.data.widthLimit = void 0, this.nextData = {}, this.nextData.startx = void 0, this.nextData.stopx = void 0, this.nextData.starty = void 0, this.nextData.stopy = void 0, this.nextData.cnt = 0, $L(e.db.getConfig()); } setData(e, r, n, i) { this.nextData.startx = this.data.startx = e, this.nextData.stopx = this.data.stopx = r, this.nextData.starty = this.data.starty = n, this.nextData.stopy = this.data.stopy = i; @@ -66643,7 +66587,7 @@ var Nt = {}, db, vfe = (db = class { insert(e) { this.nextData.cnt = this.nextData.cnt + 1; let r = this.nextData.startx === this.nextData.stopx ? this.nextData.stopx + e.margin : this.nextData.stopx + e.margin * 2, n = r + e.width, i = this.nextData.starty + e.margin * 2, s = i + e.height; - (r >= this.data.widthLimit || n >= this.data.widthLimit || this.nextData.cnt > mfe) && (r = this.nextData.startx + e.margin + Nt.nextLinePaddingX, i = this.nextData.stopy + e.margin * 2, this.nextData.stopx = n = r + e.width, this.nextData.starty = this.nextData.stopy, this.nextData.stopy = s = i + e.height, this.nextData.cnt = 1), e.x = r, e.y = i, this.updateVal(this.data, "startx", r, Math.min), this.updateVal(this.data, "starty", i, Math.min), this.updateVal(this.data, "stopx", n, Math.max), this.updateVal(this.data, "stopy", s, Math.max), this.updateVal(this.nextData, "startx", r, Math.min), this.updateVal(this.nextData, "starty", i, Math.min), this.updateVal(this.nextData, "stopx", n, Math.max), this.updateVal(this.nextData, "stopy", s, Math.max); + (r >= this.data.widthLimit || n >= this.data.widthLimit || this.nextData.cnt > pfe) && (r = this.nextData.startx + e.margin + Nt.nextLinePaddingX, i = this.nextData.stopy + e.margin * 2, this.nextData.stopx = n = r + e.width, this.nextData.starty = this.nextData.stopy, this.nextData.stopy = s = i + e.height, this.nextData.cnt = 1), e.x = r, e.y = i, this.updateVal(this.data, "startx", r, Math.min), this.updateVal(this.data, "starty", i, Math.min), this.updateVal(this.data, "stopx", n, Math.max), this.updateVal(this.data, "stopy", s, Math.max), this.updateVal(this.nextData, "startx", r, Math.min), this.updateVal(this.nextData, "starty", i, Math.min), this.updateVal(this.nextData, "stopx", n, Math.max), this.updateVal(this.nextData, "stopy", s, Math.max); } init(e) { this.name = "", this.data = { @@ -66658,24 +66602,24 @@ var Nt = {}, db, vfe = (db = class { starty: void 0, stopy: void 0, cnt: 0 - }, zL(e.db.getConfig()); + }, $L(e.db.getConfig()); } bumpLastMargin(e) { this.data.stopx += e, this.data.stopy += e; } }, (() => { x(db, "Bounds"); -})(), db), zL = /* @__PURE__ */ x(function(t) { +})(), db), $L = /* @__PURE__ */ x(function(t) { Ci(Nt, t), t.fontFamily && (Nt.personFontFamily = Nt.systemFontFamily = Nt.messageFontFamily = t.fontFamily), t.fontSize && (Nt.personFontSize = Nt.systemFontSize = Nt.messageFontSize = t.fontSize), t.fontWeight && (Nt.personFontWeight = Nt.systemFontWeight = Nt.messageFontWeight = t.fontWeight); }, "setConf"), tv = /* @__PURE__ */ x((t, e) => ({ fontFamily: t[e + "FontFamily"], fontSize: t[e + "FontSize"], fontWeight: t[e + "FontWeight"] -}), "c4ShapeFont"), W4 = /* @__PURE__ */ x((t) => ({ +}), "c4ShapeFont"), Q4 = /* @__PURE__ */ x((t) => ({ fontFamily: t.boundaryFontFamily, fontSize: t.boundaryFontSize, fontWeight: t.boundaryFontWeight -}), "boundaryFont"), hPt = /* @__PURE__ */ x((t) => ({ +}), "boundaryFont"), cPt = /* @__PURE__ */ x((t) => ({ fontFamily: t.messageFontFamily, fontSize: t.messageFontSize, fontWeight: t.messageFontWeight @@ -66683,7 +66627,7 @@ var Nt = {}, db, vfe = (db = class { function Po(t, e, r, n, i) { if (!e[t].width) if (r) - e[t].text = Aae(e[t].text, i, n), e[t].textLines = e[t].text.split(at.lineBreakRegex).length, e[t].width = i, e[t].height = V3(e[t].text, n); + e[t].text = Eae(e[t].text, i, n), e[t].textLines = e[t].text.split(at.lineBreakRegex).length, e[t].width = i, e[t].height = z3(e[t].text, n); else { let s = e[t].text.split(at.lineBreakRegex); e[t].textLines = s.length; @@ -66693,17 +66637,17 @@ function Po(t, e, r, n, i) { e[t].width = Math.max( Ol(o, n), e[t].width - ), a = V3(o, n), e[t].height = e[t].height + a; + ), a = z3(o, n), e[t].height = e[t].height + a; } } x(Po, "calcC4ShapeTextWH"); -var yfe = /* @__PURE__ */ x(function(t, e, r) { +var mfe = /* @__PURE__ */ x(function(t, e, r) { e.x = r.data.startx, e.y = r.data.starty, e.width = r.data.stopx - r.data.startx, e.height = r.data.stopy - r.data.starty, e.label.y = Nt.c4ShapeMargin - 35; - let n = e.wrap && Nt.wrap, i = W4(Nt); + let n = e.wrap && Nt.wrap, i = Q4(Nt); i.fontSize = i.fontSize + 2, i.fontWeight = "bold"; let s = Ol(e.label.text, i); Po("label", e, n, i, s), oc.drawBoundary(t, e, Nt); -}, "drawBoundary"), bfe = /* @__PURE__ */ x(function(t, e, r, n) { +}, "drawBoundary"), vfe = /* @__PURE__ */ x(function(t, e, r, n) { let i = 0; for (const s of n) { i = 0; @@ -66743,7 +66687,7 @@ var yfe = /* @__PURE__ */ x(function(t, e, r) { } }, (() => { x(pb, "Point"); -})(), pb), jQ = /* @__PURE__ */ x(function(t, e) { +})(), pb), HQ = /* @__PURE__ */ x(function(t, e) { let r = t.x, n = t.y, i = e.x, s = e.y, a = r + t.width / 2, o = n + t.height / 2, l = Math.abs(r - i), u = Math.abs(n - s), h = u / l, f = t.height / t.width, d = null; return n == s && r < i ? d = new Oo(r + t.width, o) : n == s && r > i ? d = new Oo(r, o) : r == i && n < s ? d = new Oo(a, n + t.height) : r == i && n > s && (d = new Oo(a, n)), r > i && n < s ? f >= h ? d = new Oo(r, o + h * t.width / 2) : d = new Oo( a - l / u * t.height / 2, @@ -66752,33 +66696,33 @@ var yfe = /* @__PURE__ */ x(function(t, e, r) { a + l / u * t.height / 2, n + t.height ) : r < i && n > s ? f >= h ? d = new Oo(r + t.width, o - h * t.width / 2) : d = new Oo(a + t.height / 2 * l / u, n) : r > i && n > s && (f >= h ? d = new Oo(r, o - t.width / 2 * h) : d = new Oo(a - t.height / 2 * l / u, n)), d; -}, "getIntersectPoint"), fPt = /* @__PURE__ */ x(function(t, e) { +}, "getIntersectPoint"), uPt = /* @__PURE__ */ x(function(t, e) { let r = { x: 0, y: 0 }; r.x = e.x + e.width / 2, r.y = e.y + e.height / 2; - let n = jQ(t, r); + let n = HQ(t, r); r.x = t.x + t.width / 2, r.y = t.y + t.height / 2; - let i = jQ(e, r); + let i = HQ(e, r); return { startPoint: n, endPoint: i }; -}, "getIntersectPoints"), dPt = /* @__PURE__ */ x(function(t, e, r, n) { +}, "getIntersectPoints"), hPt = /* @__PURE__ */ x(function(t, e, r, n) { let i = 0; for (let s of e) { i = i + 1; - let a = s.wrap && Nt.wrap, o = hPt(Nt); + let a = s.wrap && Nt.wrap, o = cPt(Nt); n.db.getC4Type() === "C4Dynamic" && (s.label.text = i + ": " + s.label.text); let u = Ol(s.label.text, o); Po("label", s, a, o, u), s.techn && s.techn.text !== "" && (u = Ol(s.techn.text, o), Po("techn", s, a, o, u)), s.descr && s.descr.text !== "" && (u = Ol(s.descr.text, o), Po("descr", s, a, o, u)); - let h = r(s.from), f = r(s.to), d = fPt(h, f); + let h = r(s.from), f = r(s.to), d = uPt(h, f); s.startPoint = d.startPoint, s.endPoint = d.endPoint; } oc.drawRels(t, e, Nt); }, "drawRels"); -function mI(t, e, r, n, i) { - let s = new vfe(i); - s.data.widthLimit = r.data.widthLimit / Math.min(FL, n.length); +function dI(t, e, r, n, i) { + let s = new gfe(i); + s.data.widthLimit = r.data.widthLimit / Math.min(PL, n.length); for (let [a, o] of n.entries()) { let l = 0; o.image = { width: 0, height: 0, Y: 0 }, o.sprite && (o.image.width = 48, o.image.height = 48, o.image.Y = l, l = o.image.Y + o.image.height); - let u = o.wrap && Nt.wrap, h = W4(Nt); + let u = o.wrap && Nt.wrap, h = Q4(Nt); if (h.fontSize = h.fontSize + 2, h.fontWeight = "bold", Po( "label", o, @@ -66787,7 +66731,7 @@ function mI(t, e, r, n, i) { s.data.widthLimit ), o.label.Y = l + 8, l = o.label.Y + o.label.height, o.type && o.type.text !== "") { o.type.text = "[" + o.type.text + "]"; - let g = W4(Nt); + let g = Q4(Nt); Po( "type", o, @@ -66797,7 +66741,7 @@ function mI(t, e, r, n, i) { ), o.type.Y = l + 5, l = o.type.Y + o.type.height; } if (o.descr && o.descr.text !== "") { - let g = W4(Nt); + let g = Q4(Nt); g.fontSize = g.fontSize - 2, Po( "descr", o, @@ -66806,7 +66750,7 @@ function mI(t, e, r, n, i) { s.data.widthLimit ), o.descr.Y = l + 20, l = o.descr.Y + o.descr.height; } - if (a == 0 || a % FL === 0) { + if (a == 0 || a % PL === 0) { let g = r.data.startx + Nt.diagramMarginX, m = r.data.stopy + Nt.diagramMarginY + l; s.setData(g, g, m, m); } else { @@ -66815,49 +66759,49 @@ function mI(t, e, r, n, i) { } s.name = o.alias; let f = i.db.getC4ShapeArray(o.alias), d = i.db.getC4ShapeKeys(o.alias); - d.length > 0 && bfe( + d.length > 0 && vfe( s, t, f, d ), e = o.alias; let p = i.db.getBoundarys(e); - p.length > 0 && mI( + p.length > 0 && dI( t, e, s, p, i - ), o.alias !== "global" && yfe(t, o, s), r.data.stopy = Math.max( + ), o.alias !== "global" && mfe(t, o, s), r.data.stopy = Math.max( s.data.stopy + Nt.c4ShapeMargin, r.data.stopy ), r.data.stopx = Math.max( s.data.stopx + Nt.c4ShapeMargin, r.data.stopx - ), mk = Math.max(mk, r.data.stopx), vk = Math.max(vk, r.data.stopy); + ), gk = Math.max(gk, r.data.stopx), mk = Math.max(mk, r.data.stopy); } } -x(mI, "drawInsideBoundary"); -var pPt = /* @__PURE__ */ x(function(t, e, r, n) { +x(dI, "drawInsideBoundary"); +var fPt = /* @__PURE__ */ x(function(t, e, r, n) { Nt = be().c4; const i = be().securityLevel; let s; i === "sandbox" && (s = et("#i" + e)); const a = et(i === "sandbox" ? s.nodes()[0].contentDocument.body : "body"); let o = n.db; - n.db.setWrap(Nt.wrap), mfe = o.getC4ShapeInRow(), FL = o.getC4BoundaryInRow(), X.debug(`C:${JSON.stringify(Nt, null, 2)}`); + n.db.setWrap(Nt.wrap), pfe = o.getC4ShapeInRow(), PL = o.getC4BoundaryInRow(), X.debug(`C:${JSON.stringify(Nt, null, 2)}`); const l = i === "sandbox" ? a.select(`[id="${e}"]`) : et(`[id="${e}"]`); oc.insertComputerIcon(l), oc.insertDatabaseIcon(l), oc.insertClockIcon(l); - let u = new vfe(n); + let u = new gfe(n); u.setData( Nt.diagramMarginX, Nt.diagramMarginX, Nt.diagramMarginY, Nt.diagramMarginY - ), u.data.widthLimit = screen.availWidth, mk = Nt.diagramMarginX, vk = Nt.diagramMarginY; + ), u.data.widthLimit = screen.availWidth, gk = Nt.diagramMarginX, mk = Nt.diagramMarginY; const h = n.db.getTitle(); let f = n.db.getBoundarys(""); - mI(l, "", u, f, n), oc.insertArrowHead(l), oc.insertArrowEnd(l), oc.insertArrowCrossHead(l), oc.insertArrowFilledHead(l), dPt(l, n.db.getRels(), n.db.getC4Shape, n), u.data.stopx = mk, u.data.stopy = vk; + dI(l, "", u, f, n), oc.insertArrowHead(l), oc.insertArrowEnd(l), oc.insertArrowCrossHead(l), oc.insertArrowFilledHead(l), hPt(l, n.db.getRels(), n.db.getC4Shape, n), u.data.stopx = gk, u.data.stopy = mk; const d = u.data; let g = d.stopy - d.starty + 2 * Nt.diagramMarginY; const v = d.stopx - d.startx + 2 * Nt.diagramMarginX; @@ -66867,38 +66811,38 @@ var pPt = /* @__PURE__ */ x(function(t, e, r, n) { "viewBox", d.startx - Nt.diagramMarginX + " -" + (Nt.diagramMarginY + y) + " " + v + " " + (g + y) ), X.debug("models:", d); -}, "draw"), KQ = { - drawPersonOrSystemArray: bfe, - drawBoundary: yfe, - setConf: zL, - draw: pPt -}, gPt = /* @__PURE__ */ x((t) => `.person { +}, "draw"), XQ = { + drawPersonOrSystemArray: vfe, + drawBoundary: mfe, + setConf: $L, + draw: fPt +}, dPt = /* @__PURE__ */ x((t) => `.person { stroke: ${t.personBorder}; fill: ${t.personBkg}; } -`, "getStyles"), mPt = gPt, vPt = { - parser: SIt, - db: BL, - renderer: KQ, - styles: mPt, +`, "getStyles"), pPt = dPt, gPt = { + parser: OIt, + db: IL, + renderer: XQ, + styles: pPt, init: /* @__PURE__ */ x(({ c4: t, wrap: e }) => { - KQ.setConf(t), BL.setWrap(e); + XQ.setConf(t), IL.setWrap(e); }, "init") }; -const yPt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +const mPt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - diagram: vPt + diagram: gPt }, Symbol.toStringTag, { value: "Module" })); -var xfe = /* @__PURE__ */ x((t, e) => { +var yfe = /* @__PURE__ */ x((t, e) => { let r; return e === "sandbox" && (r = et("#i" + t)), et(e === "sandbox" ? r.nodes()[0].contentDocument.body : "body").select(`[id="${t}"]`); -}, "getDiagramElement"), wfe = /* @__PURE__ */ x((t, e, r, n) => { +}, "getDiagramElement"), bfe = /* @__PURE__ */ x((t, e, r, n) => { t.attr("class", r); - const { width: i, height: s, x: a, y: o } = bPt(t, e); + const { width: i, height: s, x: a, y: o } = vPt(t, e); ms(t, s, i, n); - const l = xPt(a, o, i, s, e); + const l = yPt(a, o, i, s, e); t.attr("viewBox", l), X.debug(`viewBox configured: ${l} with padding: ${e}`); -}, "setupViewPortForSVG"), bPt = /* @__PURE__ */ x((t, e) => { +}, "setupViewPortForSVG"), vPt = /* @__PURE__ */ x((t, e) => { var n; const r = ((n = t.node()) == null ? void 0 : n.getBBox()) || { width: 0, height: 0, x: 0, y: 0 }; return { @@ -66907,26 +66851,26 @@ var xfe = /* @__PURE__ */ x((t, e) => { x: r.x, y: r.y }; -}, "calculateDimensionsWithPadding"), xPt = /* @__PURE__ */ x((t, e, r, n, i) => `${t - i} ${e - i} ${r} ${n}`, "createViewBox"); -function VL(t, e) { +}, "calculateDimensionsWithPadding"), yPt = /* @__PURE__ */ x((t, e, r, n, i) => `${t - i} ${e - i} ${r} ${n}`, "createViewBox"); +function BL(t, e) { e && t.attr("style", e); } -x(VL, "applyStyle"); -function Ofe(t) { +x(BL, "applyStyle"); +function xfe(t) { const e = et(document.createElementNS("http://www.w3.org/2000/svg", "foreignObject")), r = e.append("xhtml:div"), n = t.label, i = t.isNode ? "nodeLabel" : "edgeLabel", s = r.append("span"); - return s.html(n), VL(s, t.labelStyle), s.attr("class", i), VL(r, t.labelStyle), r.style("display", "inline-block"), r.style("white-space", "nowrap"), r.attr("xmlns", "http://www.w3.org/1999/xhtml"), e.node(); + return s.html(n), BL(s, t.labelStyle), s.attr("class", i), BL(r, t.labelStyle), r.style("display", "inline-block"), r.style("white-space", "nowrap"), r.attr("xmlns", "http://www.w3.org/1999/xhtml"), e.node(); } -x(Ofe, "addHtmlLabel"); -var wPt = /* @__PURE__ */ x((t, e, r, n) => { +x(xfe, "addHtmlLabel"); +var bPt = /* @__PURE__ */ x((t, e, r, n) => { let i = t || ""; if (typeof i == "object" && (i = i[0]), bn(be().flowchart.htmlLabels)) { i = i.replace(/\\n|\n/g, "
"), X.debug("vertexText" + i); const s = { isNode: n, - label: uN(h0(i)), + label: oN(h0(i)), labelStyle: e.replace("fill:", "color:") }; - return Ofe(s); + return xfe(s); } else { const s = document.createElementNS("http://www.w3.org/2000/svg", "text"); s.setAttribute("style", e.replace("color:", "fill:")); @@ -66938,7 +66882,7 @@ var wPt = /* @__PURE__ */ x((t, e, r, n) => { } return s; } -}, "createLabel"), _a = wPt, Ki = /* @__PURE__ */ x(async (t, e, r, n) => { +}, "createLabel"), _a = bPt, Ki = /* @__PURE__ */ x(async (t, e, r, n) => { const i = be(); let s; const a = e.useHtmlLabels || bn(i.flowchart.htmlLabels); @@ -67000,7 +66944,7 @@ function Xl(t, e, r, n) { ).attr("class", "label-container").attr("transform", "translate(" + -e / 2 + "," + r / 2 + ")"); } x(Xl, "insertPolygonShape"); -var OPt = /* @__PURE__ */ x((t) => { +var xPt = /* @__PURE__ */ x((t) => { const e = /* @__PURE__ */ new Set(); for (const r of t) switch (r) { @@ -67015,8 +66959,8 @@ var OPt = /* @__PURE__ */ x((t) => { break; } return e; -}, "expandAndDeduplicateDirections"), kPt = /* @__PURE__ */ x((t, e, r) => { - const n = OPt(t), i = 2, s = e.height + 2 * r.padding, a = s / i, o = e.width + 2 * a + r.padding, l = r.padding / 2; +}, "expandAndDeduplicateDirections"), wPt = /* @__PURE__ */ x((t, e, r) => { + const n = xPt(t), i = 2, s = e.height + 2 * r.padding, a = s / i, o = e.width + 2 * a + r.padding, l = r.padding / 2; return n.has("right") && n.has("left") && n.has("up") && n.has("down") ? [ { x: 0, y: 0 }, { x: a, y: 0 }, @@ -67130,42 +67074,42 @@ var OPt = /* @__PURE__ */ x((t) => { { x: o, y: -l } ] : [{ x: 0, y: 0 }]; }, "getArrowPoints"); -function kfe(t, e) { +function wfe(t, e) { return t.intersect(e); } -x(kfe, "intersectNode"); -var SPt = kfe; -function Sfe(t, e, r, n) { +x(wfe, "intersectNode"); +var OPt = wfe; +function Ofe(t, e, r, n) { var i = t.x, s = t.y, a = i - n.x, o = s - n.y, l = Math.sqrt(e * e * o * o + r * r * a * a), u = Math.abs(e * r * a / l); n.x < i && (u = -u); var h = Math.abs(e * r * o / l); return n.y < s && (h = -h), { x: i + u, y: s + h }; } -x(Sfe, "intersectEllipse"); -var Tfe = Sfe; -function Cfe(t, e, r) { - return Tfe(t, e, e, r); +x(Ofe, "intersectEllipse"); +var kfe = Ofe; +function Sfe(t, e, r) { + return kfe(t, e, e, r); } -x(Cfe, "intersectCircle"); -var TPt = Cfe; -function Efe(t, e, r, n) { +x(Sfe, "intersectCircle"); +var kPt = Sfe; +function Tfe(t, e, r, n) { var i, s, a, o, l, u, h, f, d, p, g, m, v, y, b; - if (i = e.y - t.y, a = t.x - e.x, l = e.x * t.y - t.x * e.y, d = i * r.x + a * r.y + l, p = i * n.x + a * n.y + l, !(d !== 0 && p !== 0 && UL(d, p)) && (s = n.y - r.y, o = r.x - n.x, u = n.x * r.y - r.x * n.y, h = s * t.x + o * t.y + u, f = s * e.x + o * e.y + u, !(h !== 0 && f !== 0 && UL(h, f)) && (g = i * o - s * a, g !== 0))) + if (i = e.y - t.y, a = t.x - e.x, l = e.x * t.y - t.x * e.y, d = i * r.x + a * r.y + l, p = i * n.x + a * n.y + l, !(d !== 0 && p !== 0 && FL(d, p)) && (s = n.y - r.y, o = r.x - n.x, u = n.x * r.y - r.x * n.y, h = s * t.x + o * t.y + u, f = s * e.x + o * e.y + u, !(h !== 0 && f !== 0 && FL(h, f)) && (g = i * o - s * a, g !== 0))) return m = Math.abs(g / 2), v = a * u - o * l, y = v < 0 ? (v - m) / g : (v + m) / g, v = s * l - i * u, b = v < 0 ? (v - m) / g : (v + m) / g, { x: y, y: b }; } -x(Efe, "intersectLine"); -function UL(t, e) { +x(Tfe, "intersectLine"); +function FL(t, e) { return t * e > 0; } -x(UL, "sameSign"); -var CPt = Efe, EPt = _fe; -function _fe(t, e, r) { +x(FL, "sameSign"); +var SPt = Tfe, TPt = Cfe; +function Cfe(t, e, r) { var n = t.x, i = t.y, s = [], a = Number.POSITIVE_INFINITY, o = Number.POSITIVE_INFINITY; typeof e.forEach == "function" ? e.forEach(function(g) { a = Math.min(a, g.x), o = Math.min(o, g.y); }) : (a = Math.min(a, e.x), o = Math.min(o, e.y)); for (var l = n - t.width / 2 - a, u = i - t.height / 2 - o, h = 0; h < e.length; h++) { - var f = e[h], d = e[h < e.length - 1 ? h + 1 : 0], p = CPt( + var f = e[h], d = e[h < e.length - 1 ? h + 1 : 0], p = SPt( t, r, { x: l + f.x, y: u + f.y }, @@ -67178,17 +67122,17 @@ function _fe(t, e, r) { return b < S ? -1 : b === S ? 0 : 1; }), s[0]) : t; } -x(_fe, "intersectPolygon"); -var _Pt = /* @__PURE__ */ x((t, e) => { +x(Cfe, "intersectPolygon"); +var CPt = /* @__PURE__ */ x((t, e) => { var r = t.x, n = t.y, i = e.x - r, s = e.y - n, a = t.width / 2, o = t.height / 2, l, u; return Math.abs(s) * a > Math.abs(i) * o ? (s < 0 && (o = -o), l = s === 0 ? 0 : o * i / s, u = o) : (i < 0 && (a = -a), l = a, u = i === 0 ? 0 : a * s / i), { x: r + l, y: n + u }; -}, "intersectRect"), Rx = _Pt, Cn = { - node: SPt, - circle: TPt, - ellipse: Tfe, - polygon: EPt, +}, "intersectRect"), Rx = CPt, Cn = { + node: OPt, + circle: kPt, + ellipse: kfe, + polygon: TPt, rect: Rx -}, APt = /* @__PURE__ */ x(async (t, e) => { +}, EPt = /* @__PURE__ */ x(async (t, e) => { e.useHtmlLabels || be().flowchart.htmlLabels || (e.centerLabel = !0); const { shapeSvg: n, bbox: i, halfPadding: s } = await Ki( t, @@ -67201,9 +67145,9 @@ var _Pt = /* @__PURE__ */ x((t, e) => { return a.attr("rx", e.rx).attr("ry", e.ry).attr("x", -i.width / 2 - s).attr("y", -i.height / 2 - s).attr("width", i.width + e.padding).attr("height", i.height + e.padding), Fn(e, a), e.intersect = function(o) { return Cn.rect(e, o); }, n; -}, "note"), LPt = APt, JQ = /* @__PURE__ */ x((t) => t ? " " + t : "", "formatClass"), mo = /* @__PURE__ */ x((t, e) => `${e || "node default"}${JQ(t.classes)} ${JQ( +}, "note"), _Pt = EPt, ZQ = /* @__PURE__ */ x((t) => t ? " " + t : "", "formatClass"), mo = /* @__PURE__ */ x((t, e) => `${e || "node default"}${ZQ(t.classes)} ${ZQ( t.class -)}`, "getClassesFromNode"), eW = /* @__PURE__ */ x(async (t, e) => { +)}`, "getClassesFromNode"), jQ = /* @__PURE__ */ x(async (t, e) => { const { shapeSvg: r, bbox: n } = await Ki( t, e, @@ -67220,7 +67164,7 @@ var _Pt = /* @__PURE__ */ x((t, e) => { return l.attr("style", e.style), Fn(e, l), e.intersect = function(u) { return X.warn("Intersect called"), Cn.polygon(e, o, u); }, r; -}, "question"), RPt = /* @__PURE__ */ x((t, e) => { +}, "question"), APt = /* @__PURE__ */ x((t, e) => { const r = t.insert("g").attr("class", "node default").attr("id", e.domId || e.id), n = 28, i = [ { x: 0, y: n / 2 }, { x: n / 2, y: 0 }, @@ -67235,7 +67179,7 @@ var _Pt = /* @__PURE__ */ x((t, e) => { ).attr("class", "state-start").attr("r", 7).attr("width", 28).attr("height", 28), e.width = 28, e.height = 28, e.intersect = function(a) { return Cn.circle(e, 14, a); }, r; -}, "choice"), MPt = /* @__PURE__ */ x(async (t, e) => { +}, "choice"), LPt = /* @__PURE__ */ x(async (t, e) => { const { shapeSvg: r, bbox: n } = await Ki( t, e, @@ -67252,12 +67196,12 @@ var _Pt = /* @__PURE__ */ x((t, e) => { return u.attr("style", e.style), Fn(e, u), e.intersect = function(h) { return Cn.polygon(e, l, h); }, r; -}, "hexagon"), DPt = /* @__PURE__ */ x(async (t, e) => { - const { shapeSvg: r, bbox: n } = await Ki(t, e, void 0, !0), i = 2, s = n.height + 2 * e.padding, a = s / i, o = n.width + 2 * a + e.padding, l = kPt(e.directions, n, e), u = Xl(r, o, s, l); +}, "hexagon"), RPt = /* @__PURE__ */ x(async (t, e) => { + const { shapeSvg: r, bbox: n } = await Ki(t, e, void 0, !0), i = 2, s = n.height + 2 * e.padding, a = s / i, o = n.width + 2 * a + e.padding, l = wPt(e.directions, n, e), u = Xl(r, o, s, l); return u.attr("style", e.style), Fn(e, u), e.intersect = function(h) { return Cn.polygon(e, l, h); }, r; -}, "block_arrow"), NPt = /* @__PURE__ */ x(async (t, e) => { +}, "block_arrow"), MPt = /* @__PURE__ */ x(async (t, e) => { const { shapeSvg: r, bbox: n } = await Ki( t, e, @@ -67273,7 +67217,7 @@ var _Pt = /* @__PURE__ */ x((t, e) => { return Xl(r, i, s, a).attr("style", e.style), e.width = i + s, e.height = s, e.intersect = function(l) { return Cn.polygon(e, a, l); }, r; -}, "rect_left_inv_arrow"), IPt = /* @__PURE__ */ x(async (t, e) => { +}, "rect_left_inv_arrow"), DPt = /* @__PURE__ */ x(async (t, e) => { const { shapeSvg: r, bbox: n } = await Ki(t, e, mo(e), !0), i = n.width + e.padding, s = n.height + e.padding, a = [ { x: -2 * s / 6, y: 0 }, { x: i - s / 6, y: 0 }, @@ -67283,7 +67227,7 @@ var _Pt = /* @__PURE__ */ x((t, e) => { return o.attr("style", e.style), Fn(e, o), e.intersect = function(l) { return Cn.polygon(e, a, l); }, r; -}, "lean_right"), PPt = /* @__PURE__ */ x(async (t, e) => { +}, "lean_right"), NPt = /* @__PURE__ */ x(async (t, e) => { const { shapeSvg: r, bbox: n } = await Ki( t, e, @@ -67298,7 +67242,7 @@ var _Pt = /* @__PURE__ */ x((t, e) => { return o.attr("style", e.style), Fn(e, o), e.intersect = function(l) { return Cn.polygon(e, a, l); }, r; -}, "lean_left"), $Pt = /* @__PURE__ */ x(async (t, e) => { +}, "lean_left"), IPt = /* @__PURE__ */ x(async (t, e) => { const { shapeSvg: r, bbox: n } = await Ki( t, e, @@ -67313,7 +67257,7 @@ var _Pt = /* @__PURE__ */ x((t, e) => { return o.attr("style", e.style), Fn(e, o), e.intersect = function(l) { return Cn.polygon(e, a, l); }, r; -}, "trapezoid"), BPt = /* @__PURE__ */ x(async (t, e) => { +}, "trapezoid"), PPt = /* @__PURE__ */ x(async (t, e) => { const { shapeSvg: r, bbox: n } = await Ki( t, e, @@ -67328,7 +67272,7 @@ var _Pt = /* @__PURE__ */ x((t, e) => { return o.attr("style", e.style), Fn(e, o), e.intersect = function(l) { return Cn.polygon(e, a, l); }, r; -}, "inv_trapezoid"), FPt = /* @__PURE__ */ x(async (t, e) => { +}, "inv_trapezoid"), $Pt = /* @__PURE__ */ x(async (t, e) => { const { shapeSvg: r, bbox: n } = await Ki( t, e, @@ -67344,7 +67288,7 @@ var _Pt = /* @__PURE__ */ x((t, e) => { return o.attr("style", e.style), Fn(e, o), e.intersect = function(l) { return Cn.polygon(e, a, l); }, r; -}, "rect_right_inv_arrow"), zPt = /* @__PURE__ */ x(async (t, e) => { +}, "rect_right_inv_arrow"), BPt = /* @__PURE__ */ x(async (t, e) => { const { shapeSvg: r, bbox: n } = await Ki( t, e, @@ -67359,7 +67303,7 @@ var _Pt = /* @__PURE__ */ x((t, e) => { } return f; }, r; -}, "cylinder"), VPt = /* @__PURE__ */ x(async (t, e) => { +}, "cylinder"), FPt = /* @__PURE__ */ x(async (t, e) => { const { shapeSvg: r, bbox: n, halfPadding: i } = await Ki( t, e, @@ -67368,14 +67312,14 @@ var _Pt = /* @__PURE__ */ x((t, e) => { ), s = r.insert("rect", ":first-child"), a = e.positioned ? e.width : n.width + e.padding, o = e.positioned ? e.height : n.height + e.padding, l = e.positioned ? -a / 2 : -n.width / 2 - i, u = e.positioned ? -o / 2 : -n.height / 2 - i; if (s.attr("class", "basic label-container").attr("style", e.style).attr("rx", e.rx).attr("ry", e.ry).attr("x", l).attr("y", u).attr("width", a).attr("height", o), e.props) { const h = new Set(Object.keys(e.props)); - e.props.borders && (hC(s, e.props.borders, a, o), h.delete("borders")), h.forEach((f) => { + e.props.borders && (cC(s, e.props.borders, a, o), h.delete("borders")), h.forEach((f) => { X.warn(`Unknown node property ${f}`); }); } return Fn(e, s), e.intersect = function(h) { return Cn.rect(e, h); }, r; -}, "rect"), UPt = /* @__PURE__ */ x(async (t, e) => { +}, "rect"), zPt = /* @__PURE__ */ x(async (t, e) => { const { shapeSvg: r, bbox: n, halfPadding: i } = await Ki( t, e, @@ -67384,20 +67328,20 @@ var _Pt = /* @__PURE__ */ x((t, e) => { ), s = r.insert("rect", ":first-child"), a = e.positioned ? e.width : n.width + e.padding, o = e.positioned ? e.height : n.height + e.padding, l = e.positioned ? -a / 2 : -n.width / 2 - i, u = e.positioned ? -o / 2 : -n.height / 2 - i; if (s.attr("class", "basic cluster composite label-container").attr("style", e.style).attr("rx", e.rx).attr("ry", e.ry).attr("x", l).attr("y", u).attr("width", a).attr("height", o), e.props) { const h = new Set(Object.keys(e.props)); - e.props.borders && (hC(s, e.props.borders, a, o), h.delete("borders")), h.forEach((f) => { + e.props.borders && (cC(s, e.props.borders, a, o), h.delete("borders")), h.forEach((f) => { X.warn(`Unknown node property ${f}`); }); } return Fn(e, s), e.intersect = function(h) { return Cn.rect(e, h); }, r; -}, "composite"), qPt = /* @__PURE__ */ x(async (t, e) => { +}, "composite"), VPt = /* @__PURE__ */ x(async (t, e) => { const { shapeSvg: r } = await Ki(t, e, "label", !0); X.trace("Classes = ", e.class); const n = r.insert("rect", ":first-child"), i = 0, s = 0; if (n.attr("width", i).attr("height", s), r.attr("class", "label edgeLabel"), e.props) { const a = new Set(Object.keys(e.props)); - e.props.borders && (hC(n, e.props.borders, i, s), a.delete("borders")), a.forEach((o) => { + e.props.borders && (cC(n, e.props.borders, i, s), a.delete("borders")), a.forEach((o) => { X.warn(`Unknown node property ${o}`); }); } @@ -67405,7 +67349,7 @@ var _Pt = /* @__PURE__ */ x((t, e) => { return Cn.rect(e, a); }, r; }, "labelRect"); -function hC(t, e, r, n) { +function cC(t, e, r, n) { const i = [], s = /* @__PURE__ */ x((o) => { i.push(o, 0); }, "addBorder"), a = /* @__PURE__ */ x((o) => { @@ -67413,8 +67357,8 @@ function hC(t, e, r, n) { }, "skipBorder"); e.includes("t") ? (X.debug("add top border"), s(r)) : a(r), e.includes("r") ? (X.debug("add right border"), s(n)) : a(n), e.includes("b") ? (X.debug("add bottom border"), s(r)) : a(r), e.includes("l") ? (X.debug("add left border"), s(n)) : a(n), t.attr("stroke-dasharray", i.join(" ")); } -x(hC, "applyNodePropertyBorders"); -var YPt = /* @__PURE__ */ x((t, e) => { +x(cC, "applyNodePropertyBorders"); +var UPt = /* @__PURE__ */ x((t, e) => { let r; e.classes ? r = "node " + e.classes : r = "node default"; const n = t.insert("g").attr("class", r).attr("id", e.domId || e.id), i = n.insert("rect", ":first-child"), s = n.insert("line"), a = n.insert("g").attr("class", "label"), o = e.labelText.flat ? e.labelText.flat() : e.labelText; @@ -67449,7 +67393,7 @@ var YPt = /* @__PURE__ */ x((t, e) => { ), i.attr("class", "outer title-state").attr("x", -h.width / 2 - g).attr("y", -h.height / 2 - g).attr("width", h.width + e.padding).attr("height", h.height + e.padding), s.attr("class", "divider").attr("x1", -h.width / 2 - g).attr("x2", h.width / 2 + g).attr("y1", -h.height / 2 - g + d.height + g).attr("y2", -h.height / 2 - g + d.height + g), Fn(e, i), e.intersect = function(m) { return Cn.rect(e, m); }, n; -}, "rectWithTitle"), QPt = /* @__PURE__ */ x(async (t, e) => { +}, "rectWithTitle"), qPt = /* @__PURE__ */ x(async (t, e) => { const { shapeSvg: r, bbox: n } = await Ki( t, e, @@ -67459,7 +67403,7 @@ var YPt = /* @__PURE__ */ x((t, e) => { return Fn(e, a), e.intersect = function(o) { return Cn.rect(e, o); }, r; -}, "stadium"), WPt = /* @__PURE__ */ x(async (t, e) => { +}, "stadium"), YPt = /* @__PURE__ */ x(async (t, e) => { const { shapeSvg: r, bbox: n, halfPadding: i } = await Ki( t, e, @@ -67469,7 +67413,7 @@ var YPt = /* @__PURE__ */ x((t, e) => { return s.attr("style", e.style).attr("rx", e.rx).attr("ry", e.ry).attr("r", n.width / 2 + i).attr("width", n.width + e.padding).attr("height", n.height + e.padding), X.info("Circle main"), Fn(e, s), e.intersect = function(a) { return X.info("Circle intersect", e, n.width / 2 + i, a), Cn.circle(e, n.width / 2 + i, a); }, r; -}, "circle"), GPt = /* @__PURE__ */ x(async (t, e) => { +}, "circle"), QPt = /* @__PURE__ */ x(async (t, e) => { const { shapeSvg: r, bbox: n, halfPadding: i } = await Ki( t, e, @@ -67479,7 +67423,7 @@ var YPt = /* @__PURE__ */ x((t, e) => { return a.attr("class", e.class), o.attr("style", e.style).attr("rx", e.rx).attr("ry", e.ry).attr("r", n.width / 2 + i + s).attr("width", n.width + e.padding + s * 2).attr("height", n.height + e.padding + s * 2), l.attr("style", e.style).attr("rx", e.rx).attr("ry", e.ry).attr("r", n.width / 2 + i).attr("width", n.width + e.padding).attr("height", n.height + e.padding), X.info("DoubleCircle main"), Fn(e, o), e.intersect = function(u) { return X.info("DoubleCircle intersect", e, n.width / 2 + i + s, u), Cn.circle(e, n.width / 2 + i + s, u); }, r; -}, "doublecircle"), HPt = /* @__PURE__ */ x(async (t, e) => { +}, "doublecircle"), WPt = /* @__PURE__ */ x(async (t, e) => { const { shapeSvg: r, bbox: n } = await Ki( t, e, @@ -67500,12 +67444,12 @@ var YPt = /* @__PURE__ */ x((t, e) => { return o.attr("style", e.style), Fn(e, o), e.intersect = function(l) { return Cn.polygon(e, a, l); }, r; -}, "subroutine"), XPt = /* @__PURE__ */ x((t, e) => { +}, "subroutine"), GPt = /* @__PURE__ */ x((t, e) => { const r = t.insert("g").attr("class", "node default").attr("id", e.domId || e.id), n = r.insert("circle", ":first-child"); return n.attr("class", "state-start").attr("r", 7).attr("width", 14).attr("height", 14), Fn(e, n), e.intersect = function(i) { return Cn.circle(e, 7, i); }, r; -}, "start"), tW = /* @__PURE__ */ x((t, e, r) => { +}, "start"), KQ = /* @__PURE__ */ x((t, e, r) => { const n = t.insert("g").attr("class", "node default").attr("id", e.domId || e.id); let i = 70, s = 10; r === "LR" && (i = 10, s = 70); @@ -67513,12 +67457,12 @@ var YPt = /* @__PURE__ */ x((t, e) => { return Fn(e, a), e.height = e.height + e.padding / 2, e.width = e.width + e.padding / 2, e.intersect = function(o) { return Cn.rect(e, o); }, n; -}, "forkJoin"), ZPt = /* @__PURE__ */ x((t, e) => { +}, "forkJoin"), HPt = /* @__PURE__ */ x((t, e) => { const r = t.insert("g").attr("class", "node default").attr("id", e.domId || e.id), n = r.insert("circle", ":first-child"), i = r.insert("circle", ":first-child"); return i.attr("class", "state-start").attr("r", 7).attr("width", 14).attr("height", 14), n.attr("class", "state-end").attr("r", 5).attr("width", 10).attr("height", 10), Fn(e, i), e.intersect = function(s) { return Cn.circle(e, 7, s); }, r; -}, "end"), jPt = /* @__PURE__ */ x((t, e) => { +}, "end"), XPt = /* @__PURE__ */ x((t, e) => { var L; const r = e.padding / 2, n = 4, i = 8; let s; @@ -67613,46 +67557,46 @@ var YPt = /* @__PURE__ */ x((t, e) => { }), o.attr("style", e.style).attr("class", "outer title-state").attr("x", -h / 2 - r).attr("y", -(f / 2) - r).attr("width", h + e.padding).attr("height", f + e.padding), Fn(e, o), e.intersect = function(E) { return Cn.rect(e, E); }, a; -}, "class_box"), rW = { - rhombus: eW, - composite: UPt, - question: eW, - rect: VPt, - labelRect: qPt, - rectWithTitle: YPt, - choice: RPt, - circle: WPt, - doublecircle: GPt, - stadium: QPt, - hexagon: MPt, - block_arrow: DPt, - rect_left_inv_arrow: NPt, - lean_right: IPt, - lean_left: PPt, - trapezoid: $Pt, - inv_trapezoid: BPt, - rect_right_inv_arrow: FPt, - cylinder: zPt, - start: XPt, - end: ZPt, - note: LPt, - subroutine: HPt, - fork: tW, - join: tW, - class_box: jPt -}, cg = {}, vI = /* @__PURE__ */ x(async (t, e, r) => { +}, "class_box"), JQ = { + rhombus: jQ, + composite: zPt, + question: jQ, + rect: FPt, + labelRect: VPt, + rectWithTitle: UPt, + choice: APt, + circle: YPt, + doublecircle: QPt, + stadium: qPt, + hexagon: LPt, + block_arrow: RPt, + rect_left_inv_arrow: MPt, + lean_right: DPt, + lean_left: NPt, + trapezoid: IPt, + inv_trapezoid: PPt, + rect_right_inv_arrow: $Pt, + cylinder: BPt, + start: GPt, + end: HPt, + note: _Pt, + subroutine: WPt, + fork: KQ, + join: KQ, + class_box: XPt +}, cg = {}, pI = /* @__PURE__ */ x(async (t, e, r) => { let n, i; if (e.link) { let s; - be().securityLevel === "sandbox" ? s = "_top" : e.linkTarget && (s = e.linkTarget || "_blank"), n = t.insert("svg:a").attr("xlink:href", e.link).attr("target", s), i = await rW[e.shape](n, e, r); + be().securityLevel === "sandbox" ? s = "_top" : e.linkTarget && (s = e.linkTarget || "_blank"), n = t.insert("svg:a").attr("xlink:href", e.link).attr("target", s), i = await JQ[e.shape](n, e, r); } else - i = await rW[e.shape](t, e, r), n = i; + i = await JQ[e.shape](t, e, r), n = i; return e.tooltip && i.attr("title", e.tooltip), e.class && i.attr("class", "node default " + e.class), cg[e.id] = n, e.haveCallback && cg[e.id].attr("class", cg[e.id].attr("class") + " clickable"), n; -}, "insertNode"), KPt = /* @__PURE__ */ x((t, e) => { +}, "insertNode"), ZPt = /* @__PURE__ */ x((t, e) => { cg[e.id] = t; -}, "setNodeElem"), JPt = /* @__PURE__ */ x(() => { +}, "setNodeElem"), jPt = /* @__PURE__ */ x(() => { cg = {}; -}, "clear"), qL = /* @__PURE__ */ x((t) => { +}, "clear"), zL = /* @__PURE__ */ x((t) => { const e = cg[t.id]; X.trace( "Transforming node", @@ -67665,32 +67609,32 @@ var YPt = /* @__PURE__ */ x((t, e) => { "transform", "translate(" + (t.x + n - t.width / 2) + ", " + (t.y - t.height / 2 - r) + ")" ) : e.attr("transform", "translate(" + t.x + ", " + t.y + ")"), n; -}, "positionNode"), e$t = "flowchart-", nW = 0, p1 = be(), Cf = /* @__PURE__ */ new Map(), xa = [], R2 = /* @__PURE__ */ new Map(), ju = [], yI = /* @__PURE__ */ new Map(), bI = /* @__PURE__ */ new Map(), G4 = 0, YL = !0, ko, fC, dC = [], pC = /* @__PURE__ */ x((t) => at.sanitizeText(t, p1), "sanitizeText"), gC = /* @__PURE__ */ x(function(t) { +}, "positionNode"), KPt = "flowchart-", eW = 0, p1 = be(), Cf = /* @__PURE__ */ new Map(), xa = [], R2 = /* @__PURE__ */ new Map(), ju = [], gI = /* @__PURE__ */ new Map(), mI = /* @__PURE__ */ new Map(), W4 = 0, VL = !0, ko, uC, hC = [], fC = /* @__PURE__ */ x((t) => at.sanitizeText(t, p1), "sanitizeText"), dC = /* @__PURE__ */ x(function(t) { for (const e of Cf.values()) if (e.id === t) return e.domId; return t; -}, "lookUpDomId"), t$t = /* @__PURE__ */ x(function(t, e, r, n, i, s, a = {}) { +}, "lookUpDomId"), JPt = /* @__PURE__ */ x(function(t, e, r, n, i, s, a = {}) { if (!t || t.trim().length === 0) return; let o, l = Cf.get(t); l === void 0 && (l = { id: t, labelType: "text", - domId: e$t + t + "-" + nW, + domId: KPt + t + "-" + eW, styles: [], classes: [] - }, Cf.set(t, l)), nW++, e !== void 0 ? (p1 = be(), o = pC(e.text.trim()), l.labelType = e.type, o.startsWith('"') && o.endsWith('"') && (o = o.substring(1, o.length - 1)), l.text = o) : l.text === void 0 && (l.text = t), r !== void 0 && (l.type = r), n != null && n.forEach(function(u) { + }, Cf.set(t, l)), eW++, e !== void 0 ? (p1 = be(), o = fC(e.text.trim()), l.labelType = e.type, o.startsWith('"') && o.endsWith('"') && (o = o.substring(1, o.length - 1)), l.text = o) : l.text === void 0 && (l.text = t), r !== void 0 && (l.type = r), n != null && n.forEach(function(u) { l.styles.push(u); }), i != null && i.forEach(function(u) { l.classes.push(u); }), s !== void 0 && (l.dir = s), l.props === void 0 ? l.props = a : a !== void 0 && Object.assign(l.props, a); -}, "addVertex"), r$t = /* @__PURE__ */ x(function(t, e, r) { +}, "addVertex"), e$t = /* @__PURE__ */ x(function(t, e, r) { var o; const s = { start: t, end: e, type: void 0, text: "", labelType: "text" }; X.info("abc78 Got edge...", s); const a = r.text; - if (a !== void 0 && (s.text = pC(a.text.trim()), s.text.startsWith('"') && s.text.endsWith('"') && (s.text = s.text.substring(1, s.text.length - 1)), s.labelType = a.type), r !== void 0 && (s.type = r.type, s.stroke = r.stroke, s.length = r.length > 10 ? 10 : r.length), xa.length < ((o = p1.maxEdges) != null ? o : 500)) + if (a !== void 0 && (s.text = fC(a.text.trim()), s.text.startsWith('"') && s.text.endsWith('"') && (s.text = s.text.substring(1, s.text.length - 1)), s.labelType = a.type), r !== void 0 && (s.type = r.type, s.stroke = r.stroke, s.length = r.length > 10 ? 10 : r.length), xa.length < ((o = p1.maxEdges) != null ? o : 500)) X.info("Pushing edge..."), xa.push(s); else throw new Error( @@ -67700,16 +67644,16 @@ Initialize mermaid with maxEdges set to a higher number to allow more edges. You cannot set this config via configuration inside the diagram as it is a secure config. You have to call mermaid.initialize.` ); -}, "addSingleLink"), n$t = /* @__PURE__ */ x(function(t, e, r) { +}, "addSingleLink"), t$t = /* @__PURE__ */ x(function(t, e, r) { X.info("addLink", t, e, r); for (const n of t) for (const i of e) - r$t(n, i, r); -}, "addLink"), i$t = /* @__PURE__ */ x(function(t, e) { + e$t(n, i, r); +}, "addLink"), r$t = /* @__PURE__ */ x(function(t, e) { t.forEach(function(r) { r === "default" ? xa.defaultInterpolate = e : xa[r].interpolate = e; }); -}, "updateLinkInterpolate"), s$t = /* @__PURE__ */ x(function(t, e) { +}, "updateLinkInterpolate"), n$t = /* @__PURE__ */ x(function(t, e) { t.forEach(function(r) { var n, i, s, a, o, l, u; if (typeof r == "number" && r >= xa.length) @@ -67718,7 +67662,7 @@ You have to call mermaid.initialize.` ); r === "default" ? xa.defaultStyle = e : (xa[r].style = e, ((s = (i = (n = xa[r]) == null ? void 0 : n.style) == null ? void 0 : i.length) != null ? s : 0) > 0 && !((o = (a = xa[r]) == null ? void 0 : a.style) != null && o.some((h) => h == null ? void 0 : h.startsWith("fill"))) && ((u = (l = xa[r]) == null ? void 0 : l.style) == null || u.push("fill:none"))); }); -}, "updateLink"), a$t = /* @__PURE__ */ x(function(t, e) { +}, "updateLink"), i$t = /* @__PURE__ */ x(function(t, e) { t.split(",").forEach(function(r) { let n = R2.get(r); n === void 0 && (n = { id: r, styles: [], textStyles: [] }, R2.set(r, n)), e != null && e.forEach(function(i) { @@ -67729,23 +67673,23 @@ You have to call mermaid.initialize.` n.styles.push(i); }); }); -}, "addClass"), o$t = /* @__PURE__ */ x(function(t) { +}, "addClass"), s$t = /* @__PURE__ */ x(function(t) { ko = t, /.*/.exec(ko) && (ko = "LR"), /.*v/.exec(ko) && (ko = "TB"), ko === "TD" && (ko = "TB"); -}, "setDirection"), xI = /* @__PURE__ */ x(function(t, e) { +}, "setDirection"), vI = /* @__PURE__ */ x(function(t, e) { for (const r of t.split(",")) { const n = Cf.get(r); n && n.classes.push(e); - const i = yI.get(r); + const i = gI.get(r); i && i.classes.push(e); } -}, "setClass"), l$t = /* @__PURE__ */ x(function(t, e) { +}, "setClass"), a$t = /* @__PURE__ */ x(function(t, e) { if (e !== void 0) { - e = pC(e); + e = fC(e); for (const r of t.split(",")) - bI.set(fC === "gen-1" ? gC(r) : r, e); + mI.set(uC === "gen-1" ? dC(r) : r, e); } -}, "setTooltip"), c$t = /* @__PURE__ */ x(function(t, e, r) { - const n = gC(t); +}, "setTooltip"), o$t = /* @__PURE__ */ x(function(t, e, r) { + const n = dC(t); if (be().securityLevel !== "loose" || e === void 0) return; let i = []; @@ -67758,7 +67702,7 @@ You have to call mermaid.initialize.` } i.length === 0 && i.push(t); const s = Cf.get(t); - s && (s.haveCallback = !0, dC.push(function() { + s && (s.haveCallback = !0, hC.push(function() { const a = document.querySelector(`[id="${n}"]`); a !== null && a.addEventListener( "click", @@ -67768,30 +67712,30 @@ You have to call mermaid.initialize.` !1 ); })); -}, "setClickFun"), u$t = /* @__PURE__ */ x(function(t, e, r) { +}, "setClickFun"), l$t = /* @__PURE__ */ x(function(t, e, r) { t.split(",").forEach(function(n) { const i = Cf.get(n); i !== void 0 && (i.link = sr.formatUrl(e, p1), i.linkTarget = r); - }), xI(t, "clickable"); -}, "setLink"), Afe = /* @__PURE__ */ x(function(t) { - return bI.get(t); -}, "getTooltip"), h$t = /* @__PURE__ */ x(function(t, e, r) { + }), vI(t, "clickable"); +}, "setLink"), Efe = /* @__PURE__ */ x(function(t) { + return mI.get(t); +}, "getTooltip"), c$t = /* @__PURE__ */ x(function(t, e, r) { t.split(",").forEach(function(n) { - c$t(n, e, r); - }), xI(t, "clickable"); -}, "setClickEvent"), f$t = /* @__PURE__ */ x(function(t) { - dC.forEach(function(e) { + o$t(n, e, r); + }), vI(t, "clickable"); +}, "setClickEvent"), u$t = /* @__PURE__ */ x(function(t) { + hC.forEach(function(e) { e(t); }); -}, "bindFunctions"), Lfe = /* @__PURE__ */ x(function() { +}, "bindFunctions"), _fe = /* @__PURE__ */ x(function() { return ko.trim(); -}, "getDirection"), Rfe = /* @__PURE__ */ x(function() { +}, "getDirection"), Afe = /* @__PURE__ */ x(function() { return Cf; -}, "getVertices"), Mfe = /* @__PURE__ */ x(function() { +}, "getVertices"), Lfe = /* @__PURE__ */ x(function() { return xa; -}, "getEdges"), d$t = /* @__PURE__ */ x(function() { +}, "getEdges"), h$t = /* @__PURE__ */ x(function() { return R2; -}, "getClasses"), Dfe = /* @__PURE__ */ x(function(t) { +}, "getClasses"), Rfe = /* @__PURE__ */ x(function(t) { let e = et(".mermaidTooltip"); (e._groups || e)[0][0] === null && (e = et("body").append("div").attr("class", "mermaidTooltip").style("opacity", 0)), et(t).select("svg").selectAll("g.node").on("mouseover", function() { const i = et(this); @@ -67803,14 +67747,14 @@ You have to call mermaid.initialize.` e.transition().duration(500).style("opacity", 0), et(this).classed("hover", !1); }); }, "setupToolTips"); -dC.push(Dfe); -var p$t = /* @__PURE__ */ x(function(t = "gen-1") { - Cf = /* @__PURE__ */ new Map(), R2 = /* @__PURE__ */ new Map(), xa = [], dC = [Dfe], ju = [], yI = /* @__PURE__ */ new Map(), G4 = 0, bI = /* @__PURE__ */ new Map(), YL = !0, fC = t, p1 = be(), Xi(); -}, "clear"), g$t = /* @__PURE__ */ x((t) => { - fC = t || "gen-2"; -}, "setGen"), m$t = /* @__PURE__ */ x(function() { +hC.push(Rfe); +var f$t = /* @__PURE__ */ x(function(t = "gen-1") { + Cf = /* @__PURE__ */ new Map(), R2 = /* @__PURE__ */ new Map(), xa = [], hC = [Rfe], ju = [], gI = /* @__PURE__ */ new Map(), W4 = 0, mI = /* @__PURE__ */ new Map(), VL = !0, uC = t, p1 = be(), Xi(); +}, "clear"), d$t = /* @__PURE__ */ x((t) => { + uC = t || "gen-2"; +}, "setGen"), p$t = /* @__PURE__ */ x(function() { return "fill:#ffa;stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;fill:#ffa;stroke: #666;"; -}, "defaultStyle"), v$t = /* @__PURE__ */ x(function(t, e, r) { +}, "defaultStyle"), g$t = /* @__PURE__ */ x(function(t, e, r) { let n = t.text.trim(), i = r.text; t === r && /\s/.exec(r.text) && (n = void 0); function s(u) { @@ -67823,10 +67767,10 @@ var p$t = /* @__PURE__ */ x(function(t = "gen-1") { } x(s, "uniq"); const { nodeList: a, dir: o } = s(e.flat()); - if (fC === "gen-1") + if (uC === "gen-1") for (let u = 0; u < a.length; u++) - a[u] = gC(a[u]); - n = n != null ? n : "subGraph" + G4, i = i || "", i = pC(i), G4 = G4 + 1; + a[u] = dC(a[u]); + n = n != null ? n : "subGraph" + W4, i = i || "", i = fC(i), W4 = W4 + 1; const l = { id: n, nodes: a, @@ -67835,29 +67779,29 @@ var p$t = /* @__PURE__ */ x(function(t = "gen-1") { dir: o, labelType: r.type }; - return X.info("Adding", l.id, l.nodes, l.dir), l.nodes = Bfe(l, ju).nodes, ju.push(l), yI.set(n, l), n; -}, "addSubGraph"), y$t = /* @__PURE__ */ x(function(t) { + return X.info("Adding", l.id, l.nodes, l.dir), l.nodes = Pfe(l, ju).nodes, ju.push(l), gI.set(n, l), n; +}, "addSubGraph"), m$t = /* @__PURE__ */ x(function(t) { for (const [e, r] of ju.entries()) if (r.id === t) return e; return -1; -}, "getPosForId"), _v = -1, Nfe = [], Ife = /* @__PURE__ */ x(function(t, e) { +}, "getPosForId"), _v = -1, Mfe = [], Dfe = /* @__PURE__ */ x(function(t, e) { const r = ju[e].nodes; if (_v = _v + 1, _v > 2e3) return { result: !1, count: 0 }; - if (Nfe[_v] = e, ju[e].id === t) + if (Mfe[_v] = e, ju[e].id === t) return { result: !0, count: 0 }; let n = 0, i = 1; for (; n < r.length; ) { - const s = y$t(r[n]); + const s = m$t(r[n]); if (s >= 0) { - const a = Ife(t, s); + const a = Dfe(t, s); if (a.result) return { result: !0, @@ -67871,13 +67815,13 @@ var p$t = /* @__PURE__ */ x(function(t = "gen-1") { result: !1, count: i }; -}, "indexNodes2"), b$t = /* @__PURE__ */ x(function(t) { - return Nfe[t]; -}, "getDepthFirstPos"), x$t = /* @__PURE__ */ x(function() { - _v = -1, ju.length > 0 && Ife("none", ju.length - 1); -}, "indexNodes"), Pfe = /* @__PURE__ */ x(function() { +}, "indexNodes2"), v$t = /* @__PURE__ */ x(function(t) { + return Mfe[t]; +}, "getDepthFirstPos"), y$t = /* @__PURE__ */ x(function() { + _v = -1, ju.length > 0 && Dfe("none", ju.length - 1); +}, "indexNodes"), Nfe = /* @__PURE__ */ x(function() { return ju; -}, "getSubGraphs"), w$t = /* @__PURE__ */ x(() => YL ? (YL = !1, !0) : !1, "firstGraph"), O$t = /* @__PURE__ */ x((t) => { +}, "getSubGraphs"), b$t = /* @__PURE__ */ x(() => VL ? (VL = !1, !0) : !1, "firstGraph"), x$t = /* @__PURE__ */ x((t) => { let e = t.trim(), r = "arrow_open"; switch (e[0]) { case "<": @@ -67892,13 +67836,13 @@ var p$t = /* @__PURE__ */ x(function(t = "gen-1") { } let n = "normal"; return e.includes("=") && (n = "thick"), e.includes(".") && (n = "dotted"), { type: r, stroke: n }; -}, "destructStartLink"), k$t = /* @__PURE__ */ x((t, e) => { +}, "destructStartLink"), w$t = /* @__PURE__ */ x((t, e) => { const r = e.length; let n = 0; for (let i = 0; i < r; ++i) e[i] === t && ++n; return n; -}, "countChar"), S$t = /* @__PURE__ */ x((t) => { +}, "countChar"), O$t = /* @__PURE__ */ x((t) => { const e = t.trim(); let r = e.slice(0, -1), n = "arrow_open"; switch (e.slice(-1)) { @@ -67914,13 +67858,13 @@ var p$t = /* @__PURE__ */ x(function(t = "gen-1") { } let i = "normal", s = r.length - 1; r.startsWith("=") && (i = "thick"), r.startsWith("~") && (i = "invisible"); - const a = k$t(".", r); + const a = w$t(".", r); return a && (i = "dotted", s = a), { type: n, stroke: i, length: s }; -}, "destructEndLink"), T$t = /* @__PURE__ */ x((t, e) => { - const r = S$t(t); +}, "destructEndLink"), k$t = /* @__PURE__ */ x((t, e) => { + const r = O$t(t); let n; if (e) { - if (n = O$t(e), n.stroke !== r.stroke) + if (n = x$t(e), n.stroke !== r.stroke) return { type: "INVALID", stroke: "INVALID" }; if (n.type === "arrow_open") n.type = r.type; @@ -67932,22 +67876,22 @@ var p$t = /* @__PURE__ */ x(function(t = "gen-1") { return n.type === "double_arrow" && (n.type = "double_arrow_point"), n.length = r.length, n; } return r; -}, "destructLink"), $fe = /* @__PURE__ */ x((t, e) => { +}, "destructLink"), Ife = /* @__PURE__ */ x((t, e) => { for (const r of t) if (r.nodes.includes(e)) return !0; return !1; -}, "exists"), Bfe = /* @__PURE__ */ x((t, e) => { +}, "exists"), Pfe = /* @__PURE__ */ x((t, e) => { const r = []; return t.nodes.forEach((n, i) => { - $fe(e, n) || r.push(t.nodes[i]); + Ife(e, n) || r.push(t.nodes[i]); }), { nodes: r }; -}, "makeUniq"), C$t = { - firstGraph: w$t -}, E$t = /* @__PURE__ */ x((t) => { +}, "makeUniq"), S$t = { + firstGraph: b$t +}, T$t = /* @__PURE__ */ x((t) => { var e; return t.type === "square" ? "squareRect" : t.type === "round" ? "roundedRect" : (e = t.type) != null ? e : "squareRect"; -}, "getTypeFromVertex"), _$t = /* @__PURE__ */ x((t, e) => t.find((r) => r.id === e), "findNode"), A$t = /* @__PURE__ */ x((t) => { +}, "getTypeFromVertex"), C$t = /* @__PURE__ */ x((t, e) => t.find((r) => r.id === e), "findNode"), E$t = /* @__PURE__ */ x((t) => { let e = "none", r = "arrow_point"; switch (t) { case "arrow_point": @@ -67962,29 +67906,29 @@ var p$t = /* @__PURE__ */ x(function(t = "gen-1") { break; } return { arrowTypeStart: e, arrowTypeEnd: r }; -}, "destructEdgeType"), L$t = /* @__PURE__ */ x((t, e, r, n, i, s) => { +}, "destructEdgeType"), _$t = /* @__PURE__ */ x((t, e, r, n, i, s) => { var u, h; - const a = r.get(t.id), o = (u = n.get(t.id)) != null ? u : !1, l = _$t(e, t.id); - l ? (l.cssStyles = t.styles, l.cssCompiledStyles = yk(t.classes), l.cssClasses = t.classes.join(" ")) : e.push({ + const a = r.get(t.id), o = (u = n.get(t.id)) != null ? u : !1, l = C$t(e, t.id); + l ? (l.cssStyles = t.styles, l.cssCompiledStyles = vk(t.classes), l.cssClasses = t.classes.join(" ")) : e.push({ id: t.id, label: t.text, labelStyle: "", parentId: a, padding: ((h = i.flowchart) == null ? void 0 : h.padding) || 8, cssStyles: t.styles, - cssCompiledStyles: yk(["default", "node", ...t.classes]), + cssCompiledStyles: vk(["default", "node", ...t.classes]), cssClasses: "default " + t.classes.join(" "), - shape: E$t(t), + shape: T$t(t), dir: t.dir, domId: t.domId, isGroup: o, look: s, link: t.link, linkTarget: t.linkTarget, - tooltip: Afe(t.id) + tooltip: Efe(t.id) }); }, "addNodeFromVertex"); -function yk(t) { +function vk(t) { var r, n; let e = []; for (const i of t) { @@ -67993,9 +67937,9 @@ function yk(t) { } return e; } -x(yk, "getCompiledStyles"); -var R$t = /* @__PURE__ */ x(() => { - const t = be(), e = [], r = [], n = Pfe(), i = /* @__PURE__ */ new Map(), s = /* @__PURE__ */ new Map(); +x(vk, "getCompiledStyles"); +var A$t = /* @__PURE__ */ x(() => { + const t = be(), e = [], r = [], n = Nfe(), i = /* @__PURE__ */ new Map(), s = /* @__PURE__ */ new Map(); for (let l = n.length - 1; l >= 0; l--) { const u = n[l]; u.nodes.length > 0 && s.set(u.id, !0); @@ -68010,7 +67954,7 @@ var R$t = /* @__PURE__ */ x(() => { labelStyle: "", parentId: i.get(u.id), padding: 8, - cssCompiledStyles: yk(u.classes), + cssCompiledStyles: vk(u.classes), cssClasses: u.classes.join(" "), shape: "rect", dir: u.dir, @@ -68018,16 +67962,16 @@ var R$t = /* @__PURE__ */ x(() => { look: t.look }); } - Rfe().forEach((l) => { - L$t(l, e, i, s, t, t.look || "classic"); + Afe().forEach((l) => { + _$t(l, e, i, s, t, t.look || "classic"); }); - const o = Mfe(); + const o = Lfe(); return o.forEach((l, u) => { var g, m; - const { arrowTypeStart: h, arrowTypeEnd: f } = A$t(l.type), d = [...(g = o.defaultStyle) != null ? g : []]; + const { arrowTypeStart: h, arrowTypeEnd: f } = E$t(l.type), d = [...(g = o.defaultStyle) != null ? g : []]; l.style && d.push(...l.style); const p = { - id: Lae(l.start, l.end, { counter: u, prefix: "L" }), + id: _ae(l.start, l.end, { counter: u, prefix: "L" }), start: l.start, end: l.end, type: (m = l.type) != null ? m : "normal", @@ -68046,46 +67990,46 @@ var R$t = /* @__PURE__ */ x(() => { }; r.push(p); }), { nodes: e, edges: r, other: {}, config: t }; -}, "getData"), P_ = { - defaultConfig: /* @__PURE__ */ x(() => Pie.flowchart, "defaultConfig"), +}, "getData"), N_ = { + defaultConfig: /* @__PURE__ */ x(() => Nie.flowchart, "defaultConfig"), setAccTitle: Zi, getAccTitle: vs, getAccDescription: bs, - getData: R$t, + getData: A$t, setAccDescription: ys, - addVertex: t$t, - lookUpDomId: gC, - addLink: n$t, - updateLinkInterpolate: i$t, - updateLink: s$t, - addClass: a$t, - setDirection: o$t, - setClass: xI, - setTooltip: l$t, - getTooltip: Afe, - setClickEvent: h$t, - setLink: u$t, - bindFunctions: f$t, - getDirection: Lfe, - getVertices: Rfe, - getEdges: Mfe, - getClasses: d$t, - clear: p$t, - setGen: g$t, - defaultStyle: m$t, - addSubGraph: v$t, - getDepthFirstPos: b$t, - indexNodes: x$t, - getSubGraphs: Pfe, - destructLink: T$t, - lex: C$t, - exists: $fe, - makeUniq: Bfe, + addVertex: JPt, + lookUpDomId: dC, + addLink: t$t, + updateLinkInterpolate: r$t, + updateLink: n$t, + addClass: i$t, + setDirection: s$t, + setClass: vI, + setTooltip: a$t, + getTooltip: Efe, + setClickEvent: c$t, + setLink: l$t, + bindFunctions: u$t, + getDirection: _fe, + getVertices: Afe, + getEdges: Lfe, + getClasses: h$t, + clear: f$t, + setGen: d$t, + defaultStyle: p$t, + addSubGraph: g$t, + getDepthFirstPos: v$t, + indexNodes: y$t, + getSubGraphs: Nfe, + destructLink: k$t, + lex: S$t, + exists: Ife, + makeUniq: Pfe, setDiagramTitle: fa, getDiagramTitle: xs -}, M$t = /* @__PURE__ */ x(function(t, e) { +}, L$t = /* @__PURE__ */ x(function(t, e) { return e.db.getClasses(); -}, "getClasses"), D$t = /* @__PURE__ */ x(async function(t, e, r, n) { +}, "getClasses"), R$t = /* @__PURE__ */ x(async function(t, e, r, n) { var p, g; X.info("REF0:"), X.info("Drawing state diagram (v2)", e); const { securityLevel: i, flowchart: s, layout: a } = be(); @@ -68095,17 +68039,17 @@ var R$t = /* @__PURE__ */ x(() => { X.debug("Before getData: "); const u = n.db.getData(); X.debug("Data: ", u); - const h = xfe(e, i), f = Lfe(); - u.type = n.type, u.layoutAlgorithm = pTt(a), u.layoutAlgorithm === "dagre" && a === "elk" && X.warn( + const h = yfe(e, i), f = _fe(); + u.type = n.type, u.layoutAlgorithm = fTt(a), u.layoutAlgorithm === "dagre" && a === "elk" && X.warn( "flowchart-elk was moved to an external package in Mermaid v11. Please refer [release notes](https://github.com/mermaid-js/mermaid/releases/tag/v11.0.0) for more details. This diagram will be rendered using `dagre` layout as a fallback." - ), u.direction = f, u.nodeSpacing = (s == null ? void 0 : s.nodeSpacing) || 50, u.rankSpacing = (s == null ? void 0 : s.rankSpacing) || 50, u.markers = ["point", "circle", "cross"], u.diagramId = e, X.debug("REF1:", u), await Toe(u, h); + ), u.direction = f, u.nodeSpacing = (s == null ? void 0 : s.nodeSpacing) || 50, u.rankSpacing = (s == null ? void 0 : s.rankSpacing) || 50, u.markers = ["point", "circle", "cross"], u.diagramId = e, X.debug("REF1:", u), await koe(u, h); const d = (g = (p = u.config.flowchart) == null ? void 0 : p.diagramPadding) != null ? g : 8; sr.insertTitle( h, "flowchartTitleText", (s == null ? void 0 : s.titleTopMargin) || 0, n.db.getDiagramTitle() - ), wfe(h, d, "flowchart", (s == null ? void 0 : s.useMaxWidth) || !1); + ), bfe(h, d, "flowchart", (s == null ? void 0 : s.useMaxWidth) || !1); for (const m of u.nodes) { const v = et(`#${e} [id="${m.id}"]`); if (!v || !m.link) @@ -68123,10 +68067,10 @@ var R$t = /* @__PURE__ */ x(() => { return O.node(); }); } -}, "draw"), N$t = { - getClasses: M$t, - draw: D$t -}, QL = function() { +}, "draw"), M$t = { + getClasses: L$t, + draw: R$t +}, UL = function() { var t = /* @__PURE__ */ x(function(Jt, rt, St, Tt) { for (St = St || {}, Tt = Jt.length; Tt--; St[Jt[Tt]] = rt) ; @@ -68423,36 +68367,36 @@ var R$t = /* @__PURE__ */ x(() => { } }, "parseError"), parse: /* @__PURE__ */ x(function(rt) { - var St = this, Tt = [0], Je = [], ar = [null], me = [], _n = this.table, pe = "", ur = 0, nl = 0, ga = 2, v$ = 1, aye = me.slice.call(arguments, 1), Fi = Object.create(this.lexer), Xf = { yy: {} }; - for (var oE in this.yy) - Object.prototype.hasOwnProperty.call(this.yy, oE) && (Xf.yy[oE] = this.yy[oE]); + var St = this, Tt = [0], Je = [], ar = [null], me = [], _n = this.table, pe = "", ur = 0, nl = 0, ga = 2, p$ = 1, iye = me.slice.call(arguments, 1), Fi = Object.create(this.lexer), Xf = { yy: {} }; + for (var sE in this.yy) + Object.prototype.hasOwnProperty.call(this.yy, sE) && (Xf.yy[sE] = this.yy[sE]); Fi.setInput(rt, Xf.yy), Xf.yy.lexer = Fi, Xf.yy.parser = this, typeof Fi.yylloc > "u" && (Fi.yylloc = {}); - var lE = Fi.yylloc; - me.push(lE); - var oye = Fi.options && Fi.options.ranges; + var aE = Fi.yylloc; + me.push(aE); + var sye = Fi.options && Fi.options.ranges; typeof Xf.yy.parseError == "function" ? this.parseError = Xf.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError; - function lye(Qa) { + function aye(Qa) { Tt.length = Tt.length - 2 * Qa, ar.length = ar.length - Qa, me.length = me.length - Qa; } - x(lye, "popStack"); - function y$() { + x(aye, "popStack"); + function g$() { var Qa; - return Qa = Je.pop() || Fi.lex() || v$, typeof Qa != "number" && (Qa instanceof Array && (Je = Qa, Qa = Je.pop()), Qa = St.symbols_[Qa] || Qa), Qa; + return Qa = Je.pop() || Fi.lex() || p$, typeof Qa != "number" && (Qa instanceof Array && (Je = Qa, Qa = Je.pop()), Qa = St.symbols_[Qa] || Qa), Qa; } - x(y$, "lex"); - for (var ma, Zf, xo, cE, op = {}, rw, au, b$, nw; ; ) { - if (Zf = Tt[Tt.length - 1], this.defaultActions[Zf] ? xo = this.defaultActions[Zf] : ((ma === null || typeof ma > "u") && (ma = y$()), xo = _n[Zf] && _n[Zf][ma]), typeof xo > "u" || !xo.length || !xo[0]) { - var uE = ""; + x(g$, "lex"); + for (var ma, Zf, xo, oE, op = {}, rw, au, m$, nw; ; ) { + if (Zf = Tt[Tt.length - 1], this.defaultActions[Zf] ? xo = this.defaultActions[Zf] : ((ma === null || typeof ma > "u") && (ma = g$()), xo = _n[Zf] && _n[Zf][ma]), typeof xo > "u" || !xo.length || !xo[0]) { + var lE = ""; nw = []; for (rw in _n[Zf]) this.terminals_[rw] && rw > ga && nw.push("'" + this.terminals_[rw] + "'"); - Fi.showPosition ? uE = "Parse error on line " + (ur + 1) + `: + Fi.showPosition ? lE = "Parse error on line " + (ur + 1) + `: ` + Fi.showPosition() + ` -Expecting ` + nw.join(", ") + ", got '" + (this.terminals_[ma] || ma) + "'" : uE = "Parse error on line " + (ur + 1) + ": Unexpected " + (ma == v$ ? "end of input" : "'" + (this.terminals_[ma] || ma) + "'"), this.parseError(uE, { +Expecting ` + nw.join(", ") + ", got '" + (this.terminals_[ma] || ma) + "'" : lE = "Parse error on line " + (ur + 1) + ": Unexpected " + (ma == p$ ? "end of input" : "'" + (this.terminals_[ma] || ma) + "'"), this.parseError(lE, { text: Fi.match, token: this.terminals_[ma] || ma, line: Fi.yylineno, - loc: lE, + loc: aE, expected: nw }); } @@ -68460,7 +68404,7 @@ Expecting ` + nw.join(", ") + ", got '" + (this.terminals_[ma] || ma) + "'" : uE throw new Error("Parse Error: multiple actions possible at state: " + Zf + ", token: " + ma); switch (xo[0]) { case 1: - Tt.push(ma), ar.push(Fi.yytext), me.push(Fi.yylloc), Tt.push(xo[1]), ma = null, nl = Fi.yyleng, pe = Fi.yytext, ur = Fi.yylineno, lE = Fi.yylloc; + Tt.push(ma), ar.push(Fi.yytext), me.push(Fi.yylloc), Tt.push(xo[1]), ma = null, nl = Fi.yyleng, pe = Fi.yytext, ur = Fi.yylineno, aE = Fi.yylloc; break; case 2: if (au = this.productions_[xo[1]][1], op.$ = ar[ar.length - au], op._$ = { @@ -68468,10 +68412,10 @@ Expecting ` + nw.join(", ") + ", got '" + (this.terminals_[ma] || ma) + "'" : uE last_line: me[me.length - 1].last_line, first_column: me[me.length - (au || 1)].first_column, last_column: me[me.length - 1].last_column - }, oye && (op._$.range = [ + }, sye && (op._$.range = [ me[me.length - (au || 1)].range[0], me[me.length - 1].range[1] - ]), cE = this.performAction.apply(op, [ + ]), oE = this.performAction.apply(op, [ pe, nl, ur, @@ -68479,9 +68423,9 @@ Expecting ` + nw.join(", ") + ", got '" + (this.terminals_[ma] || ma) + "'" : uE xo[1], ar, me - ].concat(aye)), typeof cE < "u") - return cE; - au && (Tt = Tt.slice(0, -1 * au * 2), ar = ar.slice(0, -1 * au), me = me.slice(0, -1 * au)), Tt.push(this.productions_[xo[1]][0]), ar.push(op.$), me.push(op._$), b$ = _n[Tt[Tt.length - 2]][Tt[Tt.length - 1]], Tt.push(b$); + ].concat(iye)), typeof oE < "u") + return oE; + au && (Tt = Tt.slice(0, -1 * au * 2), ar = ar.slice(0, -1 * au), me = me.slice(0, -1 * au)), Tt.push(this.productions_[xo[1]][0]), ar.push(op.$), me.push(op._$), m$ = _n[Tt[Tt.length - 2]][Tt[Tt.length - 1]], Tt.push(m$); break; case 3: return !0; @@ -68894,11 +68838,11 @@ Expecting ` + nw.join(", ") + ", got '" + (this.terminals_[ma] || ma) + "'" : uE } return x(cr, "Parser"), cr.prototype = ze, ze.Parser = cr, new cr(); }(); -QL.parser = QL; -var I$t = QL, P$t = /* @__PURE__ */ x((t, e) => { - const r = die, n = r(t, "r"), i = r(t, "g"), s = r(t, "b"); +UL.parser = UL; +var D$t = UL, N$t = /* @__PURE__ */ x((t, e) => { + const r = hie, n = r(t, "r"), i = r(t, "g"), s = r(t, "b"); return Qd(n, i, s, e); -}, "fade"), $$t = /* @__PURE__ */ x((t) => `.label { +}, "fade"), I$t = /* @__PURE__ */ x((t) => `.label { font-family: ${t.fontFamily}; color: ${t.nodeTextColor || t.textColor}; } @@ -68978,7 +68922,7 @@ var I$t = QL, P$t = /* @__PURE__ */ x((t, e) => { /* For html labels only */ .labelBkg { - background-color: ${P$t(t.edgeLabelBackground, 0.5)}; + background-color: ${N$t(t.edgeLabelBackground, 0.5)}; // background-color: } @@ -69018,47 +68962,47 @@ var I$t = QL, P$t = /* @__PURE__ */ x((t, e) => { font-size: 18px; fill: ${t.textColor}; } -`, "getStyles"), B$t = $$t, F$t = { - parser: I$t, - db: P_, - renderer: N$t, - styles: B$t, +`, "getStyles"), P$t = I$t, $$t = { + parser: D$t, + db: N_, + renderer: M$t, + styles: P$t, init: /* @__PURE__ */ x((t) => { - t.flowchart || (t.flowchart = {}), t.layout && AU({ layout: t.layout }), t.flowchart.arrowMarkerAbsolute = t.arrowMarkerAbsolute, AU({ flowchart: { arrowMarkerAbsolute: t.arrowMarkerAbsolute } }), P_.clear(), P_.setGen("gen-2"); + t.flowchart || (t.flowchart = {}), t.layout && CU({ layout: t.layout }), t.flowchart.arrowMarkerAbsolute = t.arrowMarkerAbsolute, CU({ flowchart: { arrowMarkerAbsolute: t.arrowMarkerAbsolute } }), N_.clear(), N_.setGen("gen-2"); }, "init") }; -const wI = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +const yI = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - diagram: F$t -}, Symbol.toStringTag, { value: "Module" })), z$t = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i; -function V$t(t) { - return typeof t == "string" && z$t.test(t); + diagram: $$t +}, Symbol.toStringTag, { value: "Module" })), B$t = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i; +function F$t(t) { + return typeof t == "string" && B$t.test(t); } const Ji = []; for (let t = 0; t < 256; ++t) Ji.push((t + 256).toString(16).slice(1)); -function U$t(t, e = 0) { +function z$t(t, e = 0) { return Ji[t[e + 0]] + Ji[t[e + 1]] + Ji[t[e + 2]] + Ji[t[e + 3]] + "-" + Ji[t[e + 4]] + Ji[t[e + 5]] + "-" + Ji[t[e + 6]] + Ji[t[e + 7]] + "-" + Ji[t[e + 8]] + Ji[t[e + 9]] + "-" + Ji[t[e + 10]] + Ji[t[e + 11]] + Ji[t[e + 12]] + Ji[t[e + 13]] + Ji[t[e + 14]] + Ji[t[e + 15]]; } -function q$t(t) { - if (!V$t(t)) +function V$t(t) { + if (!F$t(t)) throw TypeError("Invalid UUID"); let e; const r = new Uint8Array(16); return r[0] = (e = parseInt(t.slice(0, 8), 16)) >>> 24, r[1] = e >>> 16 & 255, r[2] = e >>> 8 & 255, r[3] = e & 255, r[4] = (e = parseInt(t.slice(9, 13), 16)) >>> 8, r[5] = e & 255, r[6] = (e = parseInt(t.slice(14, 18), 16)) >>> 8, r[7] = e & 255, r[8] = (e = parseInt(t.slice(19, 23), 16)) >>> 8, r[9] = e & 255, r[10] = (e = parseInt(t.slice(24, 36), 16)) / 1099511627776 & 255, r[11] = e / 4294967296 & 255, r[12] = e >>> 24 & 255, r[13] = e >>> 16 & 255, r[14] = e >>> 8 & 255, r[15] = e & 255, r; } -function Y$t(t) { +function U$t(t) { t = unescape(encodeURIComponent(t)); const e = []; for (let r = 0; r < t.length; ++r) e.push(t.charCodeAt(r)); return e; } -const Q$t = "6ba7b810-9dad-11d1-80b4-00c04fd430c8", W$t = "6ba7b811-9dad-11d1-80b4-00c04fd430c8"; -function G$t(t, e, r) { +const q$t = "6ba7b810-9dad-11d1-80b4-00c04fd430c8", Y$t = "6ba7b811-9dad-11d1-80b4-00c04fd430c8"; +function Q$t(t, e, r) { function n(i, s, a, o) { var l; - if (typeof i == "string" && (i = Y$t(i)), typeof s == "string" && (s = q$t(s)), ((l = s) === null || l === void 0 ? void 0 : l.length) !== 16) + if (typeof i == "string" && (i = U$t(i)), typeof s == "string" && (s = V$t(s)), ((l = s) === null || l === void 0 ? void 0 : l.length) !== 16) throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)"); let u = new Uint8Array(16 + i.length); if (u.set(s), u.set(i, s.length), u = r(u), u[6] = u[6] & 15 | e, u[8] = u[8] & 63 | 128, a) { @@ -69067,15 +69011,15 @@ function G$t(t, e, r) { a[o + h] = u[h]; return a; } - return U$t(u); + return z$t(u); } try { n.name = t; } catch { } - return n.DNS = Q$t, n.URL = W$t, n; + return n.DNS = q$t, n.URL = Y$t, n; } -function H$t(t, e, r, n) { +function W$t(t, e, r, n) { switch (t) { case 0: return e & r ^ ~e & n; @@ -69087,10 +69031,10 @@ function H$t(t, e, r, n) { return e ^ r ^ n; } } -function $_(t, e) { +function I_(t, e) { return t << e | t >>> 32 - e; } -function X$t(t) { +function G$t(t) { const e = [1518500249, 1859775393, 2400959708, 3395469782], r = [1732584193, 4023233417, 2562383102, 271733878, 3285377520]; if (typeof t == "string") { const a = unescape(encodeURIComponent(t)); @@ -69113,18 +69057,18 @@ function X$t(t) { for (let p = 0; p < 16; ++p) o[p] = s[a][p]; for (let p = 16; p < 80; ++p) - o[p] = $_(o[p - 3] ^ o[p - 8] ^ o[p - 14] ^ o[p - 16], 1); + o[p] = I_(o[p - 3] ^ o[p - 8] ^ o[p - 14] ^ o[p - 16], 1); let l = r[0], u = r[1], h = r[2], f = r[3], d = r[4]; for (let p = 0; p < 80; ++p) { - const g = Math.floor(p / 20), m = $_(l, 5) + H$t(g, u, h, f) + d + e[g] + o[p] >>> 0; - d = f, f = h, h = $_(u, 30) >>> 0, u = l, l = m; + const g = Math.floor(p / 20), m = I_(l, 5) + W$t(g, u, h, f) + d + e[g] + o[p] >>> 0; + d = f, f = h, h = I_(u, 30) >>> 0, u = l, l = m; } r[0] = r[0] + l >>> 0, r[1] = r[1] + u >>> 0, r[2] = r[2] + h >>> 0, r[3] = r[3] + f >>> 0, r[4] = r[4] + d >>> 0; } return [r[0] >> 24 & 255, r[0] >> 16 & 255, r[0] >> 8 & 255, r[0] & 255, r[1] >> 24 & 255, r[1] >> 16 & 255, r[1] >> 8 & 255, r[1] & 255, r[2] >> 24 & 255, r[2] >> 16 & 255, r[2] >> 8 & 255, r[2] & 255, r[3] >> 24 & 255, r[3] >> 16 & 255, r[3] >> 8 & 255, r[3] & 255, r[4] >> 24 & 255, r[4] >> 16 & 255, r[4] >> 8 & 255, r[4] & 255]; } -const Z$t = G$t("v5", 80, X$t), j$t = Z$t; -var WL = function() { +const H$t = Q$t("v5", 80, G$t), X$t = H$t; +var qL = function() { var t = /* @__PURE__ */ x(function(L, E, R, _) { for (R = R || {}, _ = L.length; _--; R[L[_]] = E) ; @@ -69607,42 +69551,42 @@ Expecting ` + ce.join(", ") + ", got '" + (this.terminals_[U] || U) + "'" : Ee = } return x(T, "Parser"), T.prototype = S, S.Parser = T, new T(); }(); -WL.parser = WL; -var K$t = WL, xd = /* @__PURE__ */ new Map(), OI = [], J$t = { +qL.parser = qL; +var Z$t = qL, xd = /* @__PURE__ */ new Map(), bI = [], j$t = { ZERO_OR_ONE: "ZERO_OR_ONE", ZERO_OR_MORE: "ZERO_OR_MORE", ONE_OR_MORE: "ONE_OR_MORE", ONLY_ONE: "ONLY_ONE", MD_PARENT: "MD_PARENT" -}, eBt = { +}, K$t = { NON_IDENTIFYING: "NON_IDENTIFYING", IDENTIFYING: "IDENTIFYING" -}, Ffe = /* @__PURE__ */ x(function(t, e = void 0) { +}, $fe = /* @__PURE__ */ x(function(t, e = void 0) { return xd.has(t) ? !xd.get(t).alias && e && (xd.get(t).alias = e, X.info(`Add alias '${e}' to entity '${t}'`)) : (xd.set(t, { attributes: [], alias: e }), X.info("Added new entity :", t)), xd.get(t); -}, "addEntity"), tBt = /* @__PURE__ */ x(() => xd, "getEntities"), rBt = /* @__PURE__ */ x(function(t, e) { - let r = Ffe(t), n; +}, "addEntity"), J$t = /* @__PURE__ */ x(() => xd, "getEntities"), eBt = /* @__PURE__ */ x(function(t, e) { + let r = $fe(t), n; for (n = e.length - 1; n >= 0; n--) r.attributes.push(e[n]), X.debug("Added attribute ", e[n].attributeName); -}, "addAttributes"), nBt = /* @__PURE__ */ x(function(t, e, r, n) { +}, "addAttributes"), tBt = /* @__PURE__ */ x(function(t, e, r, n) { let i = { entityA: t, roleA: e, entityB: r, relSpec: n }; - OI.push(i), X.debug("Added new relationship :", i); -}, "addRelationship"), iBt = /* @__PURE__ */ x(() => OI, "getRelationships"), sBt = /* @__PURE__ */ x(function() { - xd = /* @__PURE__ */ new Map(), OI = [], Xi(); -}, "clear"), aBt = { - Cardinality: J$t, - Identification: eBt, + bI.push(i), X.debug("Added new relationship :", i); +}, "addRelationship"), rBt = /* @__PURE__ */ x(() => bI, "getRelationships"), nBt = /* @__PURE__ */ x(function() { + xd = /* @__PURE__ */ new Map(), bI = [], Xi(); +}, "clear"), iBt = { + Cardinality: j$t, + Identification: K$t, getConfig: /* @__PURE__ */ x(() => be().er, "getConfig"), - addEntity: Ffe, - addAttributes: rBt, - getEntities: tBt, - addRelationship: nBt, - getRelationships: iBt, - clear: sBt, + addEntity: $fe, + addAttributes: eBt, + getEntities: J$t, + addRelationship: tBt, + getRelationships: rBt, + clear: nBt, setAccTitle: Zi, getAccTitle: vs, setAccDescription: ys, @@ -69660,17 +69604,17 @@ var K$t = WL, xd = /* @__PURE__ */ new Map(), OI = [], J$t = { ZERO_OR_MORE_END: "ZERO_OR_MORE_END", MD_PARENT_END: "MD_PARENT_END", MD_PARENT_START: "MD_PARENT_START" -}, oBt = /* @__PURE__ */ x(function(t, e) { +}, sBt = /* @__PURE__ */ x(function(t, e) { let r; t.append("defs").append("marker").attr("id", al.MD_PARENT_START).attr("refX", 0).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"), t.append("defs").append("marker").attr("id", al.MD_PARENT_END).attr("refX", 19).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"), t.append("defs").append("marker").attr("id", al.ONLY_ONE_START).attr("refX", 0).attr("refY", 9).attr("markerWidth", 18).attr("markerHeight", 18).attr("orient", "auto").append("path").attr("stroke", e.stroke).attr("fill", "none").attr("d", "M9,0 L9,18 M15,0 L15,18"), t.append("defs").append("marker").attr("id", al.ONLY_ONE_END).attr("refX", 18).attr("refY", 9).attr("markerWidth", 18).attr("markerHeight", 18).attr("orient", "auto").append("path").attr("stroke", e.stroke).attr("fill", "none").attr("d", "M3,0 L3,18 M9,0 L9,18"), r = t.append("defs").append("marker").attr("id", al.ZERO_OR_ONE_START).attr("refX", 0).attr("refY", 9).attr("markerWidth", 30).attr("markerHeight", 18).attr("orient", "auto"), r.append("circle").attr("stroke", e.stroke).attr("fill", "white").attr("cx", 21).attr("cy", 9).attr("r", 6), r.append("path").attr("stroke", e.stroke).attr("fill", "none").attr("d", "M9,0 L9,18"), r = t.append("defs").append("marker").attr("id", al.ZERO_OR_ONE_END).attr("refX", 30).attr("refY", 9).attr("markerWidth", 30).attr("markerHeight", 18).attr("orient", "auto"), r.append("circle").attr("stroke", e.stroke).attr("fill", "white").attr("cx", 9).attr("cy", 9).attr("r", 6), r.append("path").attr("stroke", e.stroke).attr("fill", "none").attr("d", "M21,0 L21,18"), t.append("defs").append("marker").attr("id", al.ONE_OR_MORE_START).attr("refX", 18).attr("refY", 18).attr("markerWidth", 45).attr("markerHeight", 36).attr("orient", "auto").append("path").attr("stroke", e.stroke).attr("fill", "none").attr("d", "M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27"), t.append("defs").append("marker").attr("id", al.ONE_OR_MORE_END).attr("refX", 27).attr("refY", 18).attr("markerWidth", 45).attr("markerHeight", 36).attr("orient", "auto").append("path").attr("stroke", e.stroke).attr("fill", "none").attr("d", "M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18"), r = t.append("defs").append("marker").attr("id", al.ZERO_OR_MORE_START).attr("refX", 18).attr("refY", 18).attr("markerWidth", 57).attr("markerHeight", 36).attr("orient", "auto"), r.append("circle").attr("stroke", e.stroke).attr("fill", "white").attr("cx", 48).attr("cy", 18).attr("r", 6), r.append("path").attr("stroke", e.stroke).attr("fill", "none").attr("d", "M0,18 Q18,0 36,18 Q18,36 0,18"), r = t.append("defs").append("marker").attr("id", al.ZERO_OR_MORE_END).attr("refX", 39).attr("refY", 18).attr("markerWidth", 57).attr("markerHeight", 36).attr("orient", "auto"), r.append("circle").attr("stroke", e.stroke).attr("fill", "white").attr("cx", 9).attr("cy", 18).attr("r", 6), r.append("path").attr("stroke", e.stroke).attr("fill", "none").attr("d", "M21,18 Q39,0 57,18 Q39,36 21,18"); }, "insertMarkers"), ol = { ERMarkers: al, - insertMarkers: oBt -}, lBt = /[^\dA-Za-z](\W)*/g, wi = {}, M2 = /* @__PURE__ */ new Map(), cBt = /* @__PURE__ */ x(function(t) { + insertMarkers: sBt +}, aBt = /[^\dA-Za-z](\W)*/g, wi = {}, M2 = /* @__PURE__ */ new Map(), oBt = /* @__PURE__ */ x(function(t) { const e = Object.keys(t); for (const r of e) wi[r] = t[r]; -}, "setConf"), uBt = /* @__PURE__ */ x((t, e, r) => { +}, "setConf"), lBt = /* @__PURE__ */ x((t, e, r) => { const n = wi.entityPadding / 3, i = wi.entityPadding / 3, s = wi.fontSize * 0.85, a = e.node().getBBox(), o = []; let l = !1, u = !1, h = 0, f = 0, d = 0, p = 0, g = a.height + n * 2, m = 1; r.forEach((w) => { @@ -69743,16 +69687,16 @@ var K$t = WL, xd = /* @__PURE__ */ new Map(), OI = [], J$t = { } else b.height = Math.max(wi.minEntityHeight, g), e.attr("transform", "translate(" + b.width / 2 + "," + b.height / 2 + ")"); return b; -}, "drawAttributes"), hBt = /* @__PURE__ */ x(function(t, e, r) { +}, "drawAttributes"), cBt = /* @__PURE__ */ x(function(t, e, r) { const n = [...e.keys()]; let i; return n.forEach(function(s) { var g; - const a = Vfe(s, "entity"); + const a = Ffe(s, "entity"); M2.set(s, a); const o = t.append("g").attr("id", a); i = i === void 0 ? a : i; - const l = "text-" + a, u = o.append("text").classed("er entityLabel", !0).attr("id", l).attr("x", 0).attr("y", 0).style("dominant-baseline", "middle").style("text-anchor", "middle").style("font-family", be().fontFamily).style("font-size", wi.fontSize + "px").text((g = e.get(s).alias) != null ? g : s), { width: h, height: f } = uBt( + const l = "text-" + a, u = o.append("text").classed("er entityLabel", !0).attr("id", l).attr("x", 0).attr("y", 0).style("dominant-baseline", "middle").style("text-anchor", "middle").style("font-family", be().fontFamily).style("font-size", wi.fontSize + "px").text((g = e.get(s).alias) != null ? g : s), { width: h, height: f } = lBt( o, u, e.get(s).attributes @@ -69764,30 +69708,30 @@ var K$t = WL, xd = /* @__PURE__ */ new Map(), OI = [], J$t = { id: a }); }), i; -}, "drawEntities"), fBt = /* @__PURE__ */ x(function(t, e) { +}, "drawEntities"), uBt = /* @__PURE__ */ x(function(t, e) { e.nodes().forEach(function(r) { r !== void 0 && e.node(r) !== void 0 && t.select("#" + r).attr( "transform", "translate(" + (e.node(r).x - e.node(r).width / 2) + "," + (e.node(r).y - e.node(r).height / 2) + " )" ); }); -}, "adjustEntities"), zfe = /* @__PURE__ */ x(function(t) { +}, "adjustEntities"), Bfe = /* @__PURE__ */ x(function(t) { return (t.entityA + t.roleA + t.entityB).replace(/\s/g, ""); -}, "getEdgeName"), dBt = /* @__PURE__ */ x(function(t, e) { +}, "getEdgeName"), hBt = /* @__PURE__ */ x(function(t, e) { return t.forEach(function(r) { e.setEdge( M2.get(r.entityA), M2.get(r.entityB), { relationship: r }, - zfe(r) + Bfe(r) ); }), t; -}, "addRelationships"), iW = 0, pBt = /* @__PURE__ */ x(function(t, e, r, n, i) { - iW++; +}, "addRelationships"), tW = 0, fBt = /* @__PURE__ */ x(function(t, e, r, n, i) { + tW++; const s = r.edge( M2.get(e.entityA), M2.get(e.entityB), - zfe(e) + Bfe(e) ), a = yf().x(function(m) { return m.x; }).y(function(m) { @@ -69838,7 +69782,7 @@ var K$t = WL, xd = /* @__PURE__ */ new Map(), OI = [], J$t = { o.attr("marker-start", "url(" + l + "#" + ol.ERMarkers.MD_PARENT_START + ")"); break; } - const u = o.node().getTotalLength(), h = o.node().getPointAtLength(u * 0.5), f = "rel" + iW, d = e.roleA.split(/
/g), p = t.append("text").classed("er relationshipLabel", !0).attr("id", f).attr("x", h.x).attr("y", h.y).style("text-anchor", "middle").style("dominant-baseline", "middle").style("font-family", be().fontFamily).style("font-size", wi.fontSize + "px"); + const u = o.node().getTotalLength(), h = o.node().getPointAtLength(u * 0.5), f = "rel" + tW, d = e.roleA.split(/
/g), p = t.append("text").classed("er relationshipLabel", !0).attr("id", f).attr("x", h.x).attr("y", h.y).style("text-anchor", "middle").style("dominant-baseline", "middle").style("font-family", be().fontFamily).style("font-size", wi.fontSize + "px"); if (d.length == 1) p.text(e.roleA); else { @@ -69849,7 +69793,7 @@ var K$t = WL, xd = /* @__PURE__ */ new Map(), OI = [], J$t = { } const g = p.node().getBBox(); t.insert("rect", "#" + f).classed("er relationshipLabelBox", !0).attr("x", h.x - g.width / 2).attr("y", h.y - g.height / 2).attr("width", g.width).attr("height", g.height); -}, "drawRelationshipFromLayout"), gBt = /* @__PURE__ */ x(function(t, e, r, n) { +}, "drawRelationshipFromLayout"), dBt = /* @__PURE__ */ x(function(t, e, r, n) { wi = be().er, X.info("Drawing ER diagram"); const i = be().securityLevel; let s; @@ -69871,31 +69815,31 @@ var K$t = WL, xd = /* @__PURE__ */ new Map(), OI = [], J$t = { }).setDefaultEdgeLabel(function() { return {}; }); - const u = hBt(o, n.db.getEntities(), l), h = dBt(n.db.getRelationships(), l); - om(l), fBt(o, l), h.forEach(function(m) { - pBt(o, m, l, u, n); + const u = cBt(o, n.db.getEntities(), l), h = hBt(n.db.getRelationships(), l); + om(l), uBt(o, l), h.forEach(function(m) { + fBt(o, m, l, u, n); }); const f = wi.diagramPadding; sr.insertTitle(o, "entityTitleText", wi.titleTopMargin, n.db.getDiagramTitle()); const d = o.node().getBBox(), p = d.width + f * 2, g = d.height + f * 2; ms(o, g, p, wi.useMaxWidth), o.attr("viewBox", `${d.x - f} ${d.y - f} ${p} ${g}`); -}, "draw"), mBt = "28e9f9db-3c8d-5aa5-9faf-44286ae5937c"; -function Vfe(t = "", e = "") { - const r = t.replace(lBt, ""); - return `${GL(e)}${GL(r)}${j$t( +}, "draw"), pBt = "28e9f9db-3c8d-5aa5-9faf-44286ae5937c"; +function Ffe(t = "", e = "") { + const r = t.replace(aBt, ""); + return `${YL(e)}${YL(r)}${X$t( t, - mBt + pBt )}`; } -x(Vfe, "generateId"); -function GL(t = "") { +x(Ffe, "generateId"); +function YL(t = "") { return t.length > 0 ? `${t}-` : ""; } -x(GL, "strWithHyphen"); -var vBt = { - setConf: cBt, - draw: gBt -}, yBt = /* @__PURE__ */ x((t) => ` +x(YL, "strWithHyphen"); +var gBt = { + setConf: oBt, + draw: dBt +}, mBt = /* @__PURE__ */ x((t) => ` .entityBox { fill: ${t.mainBkg}; stroke: ${t.nodeBorder}; @@ -69940,22 +69884,22 @@ var vBt = { stroke-width: 1; } -`, "getStyles"), bBt = yBt, xBt = { - parser: K$t, - db: aBt, - renderer: vBt, - styles: bBt +`, "getStyles"), vBt = mBt, yBt = { + parser: Z$t, + db: iBt, + renderer: gBt, + styles: vBt }; -const wBt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +const bBt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - diagram: xBt + diagram: yBt }, Symbol.toStringTag, { value: "Module" })); function Mx(t, e) { var r, n, i; t.accDescr && ((r = e.setAccDescription) == null || r.call(e, t.accDescr)), t.accTitle && ((n = e.setAccTitle) == null || n.call(e, t.accTitle)), t.title && ((i = e.setDiagramTitle) == null || i.call(e, t.title)); } x(Mx, "populateCommonDb"); -var gb, kI = (gb = class { +var gb, xI = (gb = class { constructor(e) { this.init = e, this.records = this.init(); } @@ -69971,13 +69915,13 @@ function Ps(t) { function kc(t) { return typeof t == "object" && t !== null && typeof t.$refText == "string"; } -function OBt(t) { +function xBt(t) { return typeof t == "object" && t !== null && typeof t.name == "string" && typeof t.type == "string" && typeof t.path == "string"; } -function H4(t) { +function G4(t) { return typeof t == "object" && t !== null && Ps(t.container) && kc(t.reference) && typeof t.message == "string"; } -class Ufe { +class zfe { constructor() { this.subtypes = {}, this.allSubtypes = {}; } @@ -70012,10 +69956,10 @@ class Ufe { function g1(t) { return typeof t == "object" && t !== null && Array.isArray(t.content); } -function qfe(t) { +function Vfe(t) { return typeof t == "object" && t !== null && typeof t.tokenType == "object"; } -function Yfe(t) { +function Ufe(t) { return g1(t) && typeof t.fullText == "string"; } class Ls { @@ -70087,7 +70031,7 @@ class Ls { const r = this.iterator(); let n = "", i, s = !1; do - i = r.next(), i.done || (s && (n += e), n += kBt(i.value)), s = !0; + i = r.next(), i.done || (s && (n += e), n += wBt(i.value)), s = !0; while (!i.done); return n; } @@ -70205,7 +70149,7 @@ class Ls { const { done: n, value: i } = this.nextFn(r.this); if (!n) { const s = e(i); - if (bk(s)) + if (yk(s)) r.iterator = s[Symbol.iterator](); else return { done: !1, value: s }; @@ -70229,7 +70173,7 @@ class Ls { } const { done: i, value: s } = r.nextFn(n.this); if (!i) - if (bk(s)) + if (yk(s)) n.iterator = s[Symbol.iterator](); else return { done: !1, value: s }; @@ -70273,20 +70217,20 @@ class Ls { }); } } -function kBt(t) { +function wBt(t) { return typeof t == "string" ? t : typeof t > "u" ? "undefined" : typeof t.toString == "function" ? t.toString() : Object.prototype.toString.call(t); } -function bk(t) { +function yk(t) { return !!t && typeof t[Symbol.iterator] == "function"; } -const SBt = new Ls(() => { +const OBt = new Ls(() => { }, () => Co), Co = Object.freeze({ done: !0, value: void 0 }); function os(...t) { if (t.length === 1) { const e = t[0]; if (e instanceof Ls) return e; - if (bk(e)) + if (yk(e)) return new Ls(() => e[Symbol.iterator](), (r) => r.next()); if (typeof e.length == "number") return new Ls(() => ({ index: 0 }), (r) => r.index < e.length ? { done: !1, value: e[r.index++] } : Co); @@ -70306,13 +70250,13 @@ function os(...t) { } if (e.collIndex < t.length) { const r = t[e.collIndex++]; - bk(r) ? e.iterator = r[Symbol.iterator]() : r && typeof r.length == "number" && (e.array = r); + yk(r) ? e.iterator = r[Symbol.iterator]() : r && typeof r.length == "number" && (e.array = r); } } while (e.iterator || e.array || e.collIndex < t.length); return Co; - }) : SBt; + }) : OBt; } -class xk extends Ls { +class bk extends Ls { constructor(e, r, n) { super(() => ({ iterators: n != null && n.includeRoot ? [[e][Symbol.iterator]()] : [r(e)[Symbol.iterator]()], @@ -70340,7 +70284,7 @@ class xk extends Ls { return e; } } -var HL; +var QL; (function(t) { function e(s) { return s.reduce((a, o) => a + o, 0); @@ -70358,17 +70302,17 @@ var HL; return s.reduce((a, o) => Math.max(a, o)); } t.max = i; -})(HL || (HL = {})); -function XL(t) { - return new xk(t, (e) => g1(e) ? e.content : [], { includeRoot: !0 }); +})(QL || (QL = {})); +function WL(t) { + return new bk(t, (e) => g1(e) ? e.content : [], { includeRoot: !0 }); } -function TBt(t, e) { +function kBt(t, e) { for (; t.container; ) if (t = t.container, t === e) return !0; return !1; } -function ZL(t) { +function GL(t) { return { start: { character: t.startColumn - 1, @@ -70380,7 +70324,7 @@ function ZL(t) { } }; } -function wk(t) { +function xk(t) { if (!t) return; const { offset: e, end: r, range: n } = t; @@ -70395,7 +70339,7 @@ var Lh; (function(t) { t[t.Before = 0] = "Before", t[t.After = 1] = "After", t[t.OverlapFront = 2] = "OverlapFront", t[t.OverlapBack = 3] = "OverlapBack", t[t.Inside = 4] = "Inside"; })(Lh || (Lh = {})); -function CBt(t, e) { +function SBt(t, e) { if (t.end.line < e.start.line || t.end.line === e.start.line && t.end.character < t.start.character) return Lh.Before; if (t.start.line > e.end.line || t.start.line === e.end.line && t.start.character > e.end.character) @@ -70403,29 +70347,29 @@ function CBt(t, e) { const r = t.start.line > e.start.line || t.start.line === e.start.line && t.start.character >= e.start.character, n = t.end.line < e.end.line || t.end.line === e.end.line && t.end.character <= e.end.character; return r && n ? Lh.Inside : r ? Lh.OverlapBack : Lh.OverlapFront; } -function EBt(t, e) { - return CBt(t, e) > Lh.After; +function TBt(t, e) { + return SBt(t, e) > Lh.After; } -const _Bt = /^[\w\p{L}]$/u; -function ABt(t, e) { +const CBt = /^[\w\p{L}]$/u; +function EBt(t, e) { if (t) { - const r = LBt(t, !0); - if (r && sW(r, e)) + const r = _Bt(t, !0); + if (r && rW(r, e)) return r; - if (Yfe(t)) { + if (Ufe(t)) { const n = t.content.findIndex((i) => !i.hidden); for (let i = n - 1; i >= 0; i--) { const s = t.content[i]; - if (sW(s, e)) + if (rW(s, e)) return s; } } } } -function sW(t, e) { - return qfe(t) && e.includes(t.tokenType.name); +function rW(t, e) { + return Vfe(t) && e.includes(t.tokenType.name); } -function LBt(t, e = !0) { +function _Bt(t, e = !0) { for (; t.container; ) { const r = t.container; let n = r.content.indexOf(t); @@ -70438,142 +70382,144 @@ function LBt(t, e = !0) { t = r; } } -class Qfe extends Error { +class qfe extends Error { constructor(e, r) { super(e ? `${r} at ${e.range.start.line}:${e.range.start.character}` : r); } } -function mC(t) { +function pC(t) { throw new Error("Error! The input value was not handled."); } -const B_ = "AbstractRule", F_ = "AbstractType", aW = "Condition", RBt = "TypeDefinition", oW = "ValueLiteral", Wfe = "AbstractElement"; -function MBt(t) { +const P_ = "AbstractRule", $_ = "AbstractType", nW = "Condition", ABt = "TypeDefinition", iW = "ValueLiteral", Yfe = "AbstractElement"; +function LBt(t) { + return Wr.isInstance(t, Yfe); +} +const RBt = "ArrayLiteral", MBt = "ArrayType", Qfe = "BooleanLiteral"; +function DBt(t) { + return Wr.isInstance(t, Qfe); +} +const Wfe = "Conjunction"; +function NBt(t) { return Wr.isInstance(t, Wfe); } -const DBt = "ArrayLiteral", NBt = "ArrayType", Gfe = "BooleanLiteral"; +const Gfe = "Disjunction"; function IBt(t) { return Wr.isInstance(t, Gfe); } -const Hfe = "Conjunction"; -function PBt(t) { +const PBt = "Grammar", Hfe = "InferredType"; +function Xfe(t) { return Wr.isInstance(t, Hfe); } -const Xfe = "Disjunction"; -function $Bt(t) { - return Wr.isInstance(t, Xfe); -} -const BBt = "Grammar", Zfe = "InferredType"; +const Zfe = "Interface"; function jfe(t) { return Wr.isInstance(t, Zfe); } -const Kfe = "Interface"; -function Jfe(t) { +const Kfe = "Negation"; +function $Bt(t) { return Wr.isInstance(t, Kfe); } -const ede = "Negation"; -function FBt(t) { - return Wr.isInstance(t, ede); -} -const zBt = "NumberLiteral", VBt = "Parameter", tde = "ParameterReference"; -function UBt(t) { - return Wr.isInstance(t, tde); +const BBt = "NumberLiteral", FBt = "Parameter", Jfe = "ParameterReference"; +function zBt(t) { + return Wr.isInstance(t, Jfe); } -const rde = "ParserRule"; +const ede = "ParserRule"; function Jo(t) { - return Wr.isInstance(t, rde); + return Wr.isInstance(t, ede); } -const qBt = "ReferenceType", YBt = "ReturnType"; -function QBt(t) { - return Wr.isInstance(t, YBt); +const VBt = "ReferenceType", UBt = "ReturnType"; +function qBt(t) { + return Wr.isInstance(t, UBt); } -const nde = "SimpleType"; -function WBt(t) { - return Wr.isInstance(t, nde); +const tde = "SimpleType"; +function YBt(t) { + return Wr.isInstance(t, tde); } -const GBt = "StringLiteral", jL = "TerminalRule"; +const QBt = "StringLiteral", HL = "TerminalRule"; function tp(t) { - return Wr.isInstance(t, jL); + return Wr.isInstance(t, HL); } -const ide = "Type"; -function sde(t) { +const rde = "Type"; +function nde(t) { + return Wr.isInstance(t, rde); +} +const WBt = "UnionType", ide = "Action"; +function gC(t) { return Wr.isInstance(t, ide); } -const HBt = "UnionType", ade = "Action"; -function vC(t) { - return Wr.isInstance(t, ade); +const sde = "Alternatives"; +function ade(t) { + return Wr.isInstance(t, sde); } -const ode = "Alternatives"; -function lde(t) { +const ode = "Assignment"; +function y0(t) { return Wr.isInstance(t, ode); } -const cde = "Assignment"; -function y0(t) { +const lde = "CharacterRange"; +function GBt(t) { + return Wr.isInstance(t, lde); +} +const cde = "CrossReference"; +function wI(t) { return Wr.isInstance(t, cde); } -const ude = "CharacterRange"; -function XBt(t) { +const ude = "EndOfFile"; +function HBt(t) { return Wr.isInstance(t, ude); } -const hde = "CrossReference"; -function SI(t) { +const hde = "Group"; +function OI(t) { return Wr.isInstance(t, hde); } -const fde = "EndOfFile"; -function ZBt(t) { +const fde = "Keyword"; +function b0(t) { return Wr.isInstance(t, fde); } -const dde = "Group"; -function TI(t) { +const dde = "NegatedToken"; +function XBt(t) { return Wr.isInstance(t, dde); } -const pde = "Keyword"; -function b0(t) { +const pde = "RegexToken"; +function ZBt(t) { return Wr.isInstance(t, pde); } -const gde = "NegatedToken"; -function jBt(t) { +const gde = "RuleCall"; +function x0(t) { return Wr.isInstance(t, gde); } -const mde = "RegexToken"; -function KBt(t) { +const mde = "TerminalAlternatives"; +function jBt(t) { return Wr.isInstance(t, mde); } -const vde = "RuleCall"; -function x0(t) { +const vde = "TerminalGroup"; +function KBt(t) { return Wr.isInstance(t, vde); } -const yde = "TerminalAlternatives"; -function JBt(t) { +const yde = "TerminalRuleCall"; +function bde(t) { return Wr.isInstance(t, yde); } -const bde = "TerminalGroup"; -function eFt(t) { - return Wr.isInstance(t, bde); -} -const xde = "TerminalRuleCall"; +const xde = "UnorderedGroup"; function wde(t) { return Wr.isInstance(t, xde); } -const Ode = "UnorderedGroup"; -function kde(t) { +const Ode = "UntilToken"; +function JBt(t) { return Wr.isInstance(t, Ode); } -const Sde = "UntilToken"; -function tFt(t) { - return Wr.isInstance(t, Sde); -} -const Tde = "Wildcard"; -function rFt(t) { - return Wr.isInstance(t, Tde); +const kde = "Wildcard"; +function eFt(t) { + return Wr.isInstance(t, kde); } -class Cde extends Ufe { +class Sde extends zfe { getAllTypes() { return ["AbstractElement", "AbstractRule", "AbstractType", "Action", "Alternatives", "ArrayLiteral", "ArrayType", "Assignment", "BooleanLiteral", "CharacterRange", "Condition", "Conjunction", "CrossReference", "Disjunction", "EndOfFile", "Grammar", "GrammarImport", "Group", "InferredType", "Interface", "Keyword", "NamedArgument", "NegatedToken", "Negation", "NumberLiteral", "Parameter", "ParameterReference", "ParserRule", "ReferenceType", "RegexToken", "ReturnType", "RuleCall", "SimpleType", "StringLiteral", "TerminalAlternatives", "TerminalGroup", "TerminalRule", "TerminalRuleCall", "Type", "TypeAttribute", "TypeDefinition", "UnionType", "UnorderedGroup", "UntilToken", "ValueLiteral", "Wildcard"]; } computeIsSubtype(e, r) { switch (e) { - case ade: + case ide: + case sde: case ode: + case lde: case cde: case ude: case hde: @@ -70584,36 +70530,34 @@ class Cde extends Ufe { case mde: case vde: case yde: - case bde: case xde: case Ode: - case Sde: - case Tde: - return this.isSubtype(Wfe, r); - case DBt: - case zBt: - case GBt: - return this.isSubtype(oW, r); - case NBt: - case qBt: - case nde: - case HBt: - return this.isSubtype(RBt, r); + case kde: + return this.isSubtype(Yfe, r); + case RBt: + case BBt: + case QBt: + return this.isSubtype(iW, r); + case MBt: + case VBt: + case tde: + case WBt: + return this.isSubtype(ABt, r); + case Qfe: + return this.isSubtype(nW, r) || this.isSubtype(iW, r); + case Wfe: case Gfe: - return this.isSubtype(aW, r) || this.isSubtype(oW, r); + case Kfe: + case Jfe: + return this.isSubtype(nW, r); case Hfe: - case Xfe: - case ede: - case tde: - return this.isSubtype(aW, r); case Zfe: - case Kfe: - case ide: - return this.isSubtype(F_, r); case rde: - return this.isSubtype(B_, r) || this.isSubtype(F_, r); - case jL: - return this.isSubtype(B_, r); + return this.isSubtype($_, r); + case ede: + return this.isSubtype(P_, r) || this.isSubtype($_, r); + case HL: + return this.isSubtype(P_, r); default: return !1; } @@ -70626,18 +70570,18 @@ class Cde extends Ufe { case "Interface:superTypes": case "ParserRule:returnType": case "SimpleType:typeRef": - return F_; + return $_; case "Grammar:hiddenTokens": case "ParserRule:hiddenTokens": case "RuleCall:rule": - return B_; + return P_; case "Grammar:usedGrammars": - return BBt; + return PBt; case "NamedArgument:parameter": case "ParameterReference:parameter": - return VBt; + return FBt; case "TerminalRuleCall:rule": - return jL; + return HL; default: throw new Error(`${r} is not a valid reference id.`); } @@ -71016,14 +70960,14 @@ class Cde extends Ufe { } } } -const Wr = new Cde(); -function nFt(t) { +const Wr = new Sde(); +function tFt(t) { for (const [e, r] of Object.entries(t)) e.startsWith("$") || (Array.isArray(r) ? r.forEach((n, i) => { Ps(n) && (n.$container = t, n.$containerProperty = e, n.$containerIndex = i); }) : Ps(r) && (r.$container = t, r.$containerProperty = e)); } -function yC(t, e) { +function mC(t, e) { let r = t; for (; r; ) { if (e(r)) @@ -71032,17 +70976,17 @@ function yC(t, e) { } } function zc(t) { - const r = iFt(t).$document; + const r = rFt(t).$document; if (!r) throw new Error("AST node has no document."); return r; } -function iFt(t) { +function rFt(t) { for (; t.$container; ) t = t.$container; return t; } -function CI(t, e) { +function kI(t, e) { if (!t) throw new Error("Node must be an AstNode."); const r = e == null ? void 0 : e.range; @@ -71056,12 +71000,12 @@ function CI(t, e) { if (!i.startsWith("$")) { const s = t[i]; if (Ps(s)) { - if (n.keyIndex++, KL(s, r)) + if (n.keyIndex++, XL(s, r)) return { done: !1, value: s }; } else if (Array.isArray(s)) { for (; n.arrayIndex < s.length; ) { const a = n.arrayIndex++, o = s[a]; - if (Ps(o) && KL(o, r)) + if (Ps(o) && XL(o, r)) return { done: !1, value: o }; } n.arrayIndex = 0; @@ -71075,24 +71019,24 @@ function CI(t, e) { function Dx(t, e) { if (!t) throw new Error("Root node must be an AstNode."); - return new xk(t, (r) => CI(r, e)); + return new bk(t, (r) => kI(r, e)); } function ug(t, e) { if (t) { - if ((e == null ? void 0 : e.range) && !KL(t, e.range)) - return new xk(t, () => []); + if ((e == null ? void 0 : e.range) && !XL(t, e.range)) + return new bk(t, () => []); } else throw new Error("Root node must be an AstNode."); - return new xk(t, (r) => CI(r, e), { includeRoot: !0 }); + return new bk(t, (r) => kI(r, e), { includeRoot: !0 }); } -function KL(t, e) { +function XL(t, e) { var r; if (!e) return !0; const n = (r = t.$cstNode) === null || r === void 0 ? void 0 : r.range; - return n ? EBt(n, e) : !1; + return n ? TBt(n, e) : !1; } -function Ede(t) { +function Tde(t) { return new Ls(() => ({ keys: Object.keys(t), keyIndex: 0, @@ -71118,18 +71062,18 @@ function Ede(t) { return Co; }); } -function sFt(t, e) { +function nFt(t, e) { const r = t.getTypeMetaData(e.$type), n = e; for (const i of r.properties) - i.defaultValue !== void 0 && n[i.name] === void 0 && (n[i.name] = _de(i.defaultValue)); + i.defaultValue !== void 0 && n[i.name] === void 0 && (n[i.name] = Cde(i.defaultValue)); } -function _de(t) { - return Array.isArray(t) ? [...t.map(_de)] : t; +function Cde(t) { + return Array.isArray(t) ? [...t.map(Cde)] : t; } function nr(t) { return t.charCodeAt(0); } -function z_(t, e) { +function B_(t, e) { Array.isArray(t) ? t.forEach(function(r) { e.push(r); }) : e.push(t); @@ -71144,21 +71088,21 @@ function gp(t) { throw Error("Internal Error - Should never get here!"); return !0; } -function aFt() { +function iFt() { throw Error("Internal Error - Should never get here!"); } -function lW(t) { +function sW(t) { return t.type === "Character"; } -const Ok = []; +const wk = []; for (let t = nr("0"); t <= nr("9"); t++) - Ok.push(t); -const kk = [nr("_")].concat(Ok); + wk.push(t); +const Ok = [nr("_")].concat(wk); for (let t = nr("a"); t <= nr("z"); t++) - kk.push(t); + Ok.push(t); for (let t = nr("A"); t <= nr("Z"); t++) - kk.push(t); -const cW = [ + Ok.push(t); +const aW = [ nr(" "), nr("\f"), nr(` @@ -71186,8 +71130,8 @@ const cW = [ nr("\u205F"), nr("\u3000"), nr("\uFEFF") -], oFt = /[0-9a-fA-F]/, kO = /[0-9]/, lFt = /[1-9]/; -class Ade { +], sFt = /[0-9a-fA-F]/, OO = /[0-9]/, aFt = /[1-9]/; +class Ede { constructor() { this.idx = 0, this.input = "", this.groupIdx = 0; } @@ -71299,7 +71243,7 @@ class Ade { loc: this.loc(e) }; } - return aFt(); + return iFt(); } quantifier(e = !1) { let r; @@ -71423,22 +71367,22 @@ class Ade { let e, r = !1; switch (this.popChar()) { case "d": - e = Ok; + e = wk; break; case "D": - e = Ok, r = !0; + e = wk, r = !0; break; case "s": - e = cW; + e = aW; break; case "S": - e = cW, r = !0; + e = aW, r = !0; break; case "w": - e = kk; + e = Ok; break; case "W": - e = kk, r = !0; + e = Ok, r = !0; break; } if (gp(e)) @@ -71507,17 +71451,17 @@ class Ade { let r = !1; for (this.consumeChar("["), this.peekChar(0) === "^" && (this.consumeChar("^"), r = !0); this.isClassAtom(); ) { const n = this.classAtom(); - if (n.type, lW(n) && this.isRangeDash()) { + if (n.type, sW(n) && this.isRangeDash()) { this.consumeChar("-"); const i = this.classAtom(); - if (i.type, lW(i)) { + if (i.type, sW(i)) { if (i.value < n.value) throw Error("Range out of order in character class"); e.push({ from: n.value, to: i.value }); } else - z_(n.value, e), e.push(nr("-")), z_(i.value, e); + B_(n.value, e), e.push(nr("-")), B_(i.value, e); } else - z_(n.value, e); + B_(n.value, e); } return this.consumeChar("]"), { type: "Set", complement: r, value: e }; } @@ -71586,17 +71530,17 @@ class Ade { } positiveInteger() { let e = this.popChar(); - if (lFt.test(e) === !1) + if (aFt.test(e) === !1) throw Error("Expecting a positive integer"); - for (; kO.test(this.peekChar(0)); ) + for (; OO.test(this.peekChar(0)); ) e += this.popChar(); return parseInt(e, 10); } integerIncludingZero() { let e = this.popChar(); - if (kO.test(e) === !1) + if (OO.test(e) === !1) throw Error("Expecting an integer"); - for (; kO.test(this.peekChar(0)); ) + for (; OO.test(this.peekChar(0)); ) e += this.popChar(); return parseInt(e, 10); } @@ -71640,7 +71584,7 @@ class Ade { return this.peekChar() === "-" && this.isClassAtom(1); } isDigit() { - return kO.test(this.peekChar(0)); + return OO.test(this.peekChar(0)); } isClassAtom(e = 0) { switch (this.peekChar(e)) { @@ -71728,7 +71672,7 @@ class Ade { let r = ""; for (let i = 0; i < e; i++) { const s = this.popChar(); - if (oFt.test(s) === !1) + if (sFt.test(s) === !1) throw Error("Expecting a HexDecimal digits"); r += s; } @@ -71752,7 +71696,7 @@ class Ade { return { begin: e, end: this.idx }; } } -class bC { +class vC { visitChildren(e) { for (const r in e) { const n = e[r]; @@ -71842,8 +71786,8 @@ class bC { visitQuantifier(e) { } } -const cFt = /\r?\n/gm, uFt = new Ade(); -class hFt extends bC { +const oFt = /\r?\n/gm, lFt = new Ede(); +class cFt extends vC { constructor() { super(...arguments), this.isStarting = !0, this.endRegexpStack = [], this.multiline = !1; } @@ -71862,7 +71806,7 @@ class hFt extends bC { ` && (this.multiline = !0), e.quantifier) this.isStarting = !1, this.endRegexpStack = []; else { - const n = xC(r); + const n = yC(r); this.endRegexpStack.push(n), this.isStarting && (this.startRegexp += n); } } @@ -71883,28 +71827,28 @@ class hFt extends bC { e.type === "Group" && e.quantifier || super.visitChildren(e); } } -const V_ = new hFt(); -function fFt(t) { +const F_ = new cFt(); +function uFt(t) { try { - return typeof t == "string" && (t = new RegExp(t)), t = t.toString(), V_.reset(t), V_.visit(uFt.pattern(t)), V_.multiline; + return typeof t == "string" && (t = new RegExp(t)), t = t.toString(), F_.reset(t), F_.visit(lFt.pattern(t)), F_.multiline; } catch { return !1; } } -function uW(t) { +function oW(t) { return (typeof t == "string" ? new RegExp(t) : t).test(" "); } -function xC(t) { +function yC(t) { return t.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"); } -function dFt(t) { - return Array.prototype.map.call(t, (e) => /\w/.test(e) ? `[${e.toLowerCase()}${e.toUpperCase()}]` : xC(e)).join(""); +function hFt(t) { + return Array.prototype.map.call(t, (e) => /\w/.test(e) ? `[${e.toLowerCase()}${e.toUpperCase()}]` : yC(e)).join(""); } -function pFt(t, e) { - const r = gFt(t), n = e.match(r); +function fFt(t, e) { + const r = dFt(t), n = e.match(r); return !!n && n[0].length > 0; } -function gFt(t) { +function dFt(t) { typeof t == "string" && (t = new RegExp(t)); const e = t, r = t.source; let n = 0; @@ -71992,74 +71936,74 @@ function gFt(t) { } return new RegExp(i(), t.flags); } -function mFt(t) { +function pFt(t) { return t.rules.find((e) => Jo(e) && e.entry); } -function vFt(t) { +function gFt(t) { return t.rules.filter((e) => tp(e) && e.hidden); } -function Lde(t, e) { - const r = /* @__PURE__ */ new Set(), n = mFt(t); +function _de(t, e) { + const r = /* @__PURE__ */ new Set(), n = pFt(t); if (!n) return new Set(t.rules); - const i = [n].concat(vFt(t)); + const i = [n].concat(gFt(t)); for (const a of i) - Rde(a, r, e); + Ade(a, r, e); const s = /* @__PURE__ */ new Set(); for (const a of t.rules) (r.has(a.name) || tp(a) && a.hidden) && s.add(a); return s; } -function Rde(t, e, r) { +function Ade(t, e, r) { e.add(t.name), Dx(t).forEach((n) => { - if (x0(n) || r && wde(n)) { + if (x0(n) || r && bde(n)) { const i = n.rule.ref; - i && !e.has(i.name) && Rde(i, e, r); + i && !e.has(i.name) && Ade(i, e, r); } }); } -function yFt(t) { +function mFt(t) { if (t.terminal) return t.terminal; if (t.type.ref) { - const e = Dde(t.type.ref); + const e = Rde(t.type.ref); return e == null ? void 0 : e.terminal; } } -function bFt(t) { - return t.hidden && !AI(t).test(" "); +function vFt(t) { + return t.hidden && !CI(t).test(" "); } -function xFt(t, e) { - return !t || !e ? [] : EI(t, e, t.astNode, !0); +function yFt(t, e) { + return !t || !e ? [] : SI(t, e, t.astNode, !0); } -function Mde(t, e, r) { +function Lde(t, e, r) { if (!t || !e) return; - const n = EI(t, e, t.astNode, !0); + const n = SI(t, e, t.astNode, !0); if (n.length !== 0) return r !== void 0 ? r = Math.max(0, Math.min(r, n.length - 1)) : r = 0, n[r]; } -function EI(t, e, r, n) { +function SI(t, e, r, n) { if (!n) { - const i = yC(t.grammarSource, y0); + const i = mC(t.grammarSource, y0); if (i && i.feature === e) return [t]; } - return g1(t) && t.astNode === r ? t.content.flatMap((i) => EI(i, e, r, !1)) : []; + return g1(t) && t.astNode === r ? t.content.flatMap((i) => SI(i, e, r, !1)) : []; } -function wFt(t, e, r) { +function bFt(t, e, r) { if (!t) return; - const n = OFt(t, e, t == null ? void 0 : t.astNode); + const n = xFt(t, e, t == null ? void 0 : t.astNode); if (n.length !== 0) return r !== void 0 ? r = Math.max(0, Math.min(r, n.length - 1)) : r = 0, n[r]; } -function OFt(t, e, r) { +function xFt(t, e, r) { if (t.astNode !== r) return []; if (b0(t.grammarSource) && t.grammarSource.value === e) return [t]; - const n = XL(t).iterator(); + const n = WL(t).iterator(); let i; const s = []; do @@ -72070,25 +72014,25 @@ function OFt(t, e, r) { while (!i.done); return s; } -function kFt(t) { +function wFt(t) { var e; const r = t.astNode; for (; r === ((e = t.container) === null || e === void 0 ? void 0 : e.astNode); ) { - const n = yC(t.grammarSource, y0); + const n = mC(t.grammarSource, y0); if (n) return n; t = t.container; } } -function Dde(t) { +function Rde(t) { let e = t; - return jfe(e) && (vC(e.$container) ? e = e.$container.$container : Jo(e.$container) ? e = e.$container : mC(e.$container)), Nde(t, e, /* @__PURE__ */ new Map()); + return Xfe(e) && (gC(e.$container) ? e = e.$container.$container : Jo(e.$container) ? e = e.$container : pC(e.$container)), Mde(t, e, /* @__PURE__ */ new Map()); } -function Nde(t, e, r) { +function Mde(t, e, r) { var n; function i(s, a) { let o; - return yC(s, y0) || (o = Nde(a, a, r)), r.set(t, o), o; + return mC(s, y0) || (o = Mde(a, a, r)), r.set(t, o), o; } if (r.has(t)) return r.get(t); @@ -72098,30 +72042,30 @@ function Nde(t, e, r) { return r.set(t, s), s; if (x0(s) && Jo(s.rule.ref)) return i(s, s.rule.ref); - if (WBt(s) && ((n = s.typeRef) === null || n === void 0 ? void 0 : n.ref)) + if (YBt(s) && ((n = s.typeRef) === null || n === void 0 ? void 0 : n.ref)) return i(s, s.typeRef.ref); } } -function _I(t) { - return Ide(t, /* @__PURE__ */ new Set()); +function TI(t) { + return Dde(t, /* @__PURE__ */ new Set()); } -function Ide(t, e) { +function Dde(t, e) { if (e.has(t)) return !0; e.add(t); for (const r of Dx(t)) if (x0(r)) { - if (!r.rule.ref || Jo(r.rule.ref) && !Ide(r.rule.ref, e)) + if (!r.rule.ref || Jo(r.rule.ref) && !Dde(r.rule.ref, e)) return !1; } else { if (y0(r)) return !1; - if (vC(r)) + if (gC(r)) return !1; } return Boolean(t.definition); } -function Pde(t) { +function Nde(t) { if (t.inferredType) return t.inferredType.name; if (t.dataType) @@ -72131,37 +72075,37 @@ function Pde(t) { if (e) { if (Jo(e)) return e.name; - if (Jfe(e) || sde(e)) + if (jfe(e) || nde(e)) return e.name; } } } -function wC(t) { +function bC(t) { var e; if (Jo(t)) - return _I(t) ? t.name : (e = Pde(t)) !== null && e !== void 0 ? e : t.name; - if (Jfe(t) || sde(t) || QBt(t)) + return TI(t) ? t.name : (e = Nde(t)) !== null && e !== void 0 ? e : t.name; + if (jfe(t) || nde(t) || qBt(t)) return t.name; - if (vC(t)) { - const r = SFt(t); + if (gC(t)) { + const r = OFt(t); if (r) return r; - } else if (jfe(t)) + } else if (Xfe(t)) return t.name; throw new Error("Cannot get name of Unknown Type"); } -function SFt(t) { +function OFt(t) { var e; if (t.inferredType) return t.inferredType.name; if (!((e = t.type) === null || e === void 0) && e.ref) - return wC(t.type.ref); + return bC(t.type.ref); } -function TFt(t) { +function kFt(t) { var e, r, n; - return tp(t) ? (r = (e = t.type) === null || e === void 0 ? void 0 : e.name) !== null && r !== void 0 ? r : "string" : _I(t) ? t.name : (n = Pde(t)) !== null && n !== void 0 ? n : t.name; + return tp(t) ? (r = (e = t.type) === null || e === void 0 ? void 0 : e.name) !== null && r !== void 0 ? r : "string" : TI(t) ? t.name : (n = Nde(t)) !== null && n !== void 0 ? n : t.name; } -function AI(t) { +function CI(t) { const e = { s: !1, i: !1, @@ -72169,15 +72113,15 @@ function AI(t) { }, r = lm(t.definition, e), n = Object.entries(e).filter(([, i]) => i).map(([i]) => i).join(""); return new RegExp(r, n); } -const LI = /[\s\S]/.source; +const EI = /[\s\S]/.source; function lm(t, e) { - if (JBt(t)) - return CFt(t); - if (eFt(t)) - return EFt(t); - if (XBt(t)) - return LFt(t); - if (wde(t)) { + if (jBt(t)) + return SFt(t); + if (KBt(t)) + return TFt(t); + if (GBt(t)) + return _Ft(t); + if (bde(t)) { const r = t.rule.ref; if (!r) throw new Error("Missing rule reference."); @@ -72186,11 +72130,11 @@ function lm(t, e) { lookahead: t.lookahead }); } else { - if (jBt(t)) - return AFt(t); - if (tFt(t)) - return _Ft(t); - if (KBt(t)) { + if (XBt(t)) + return EFt(t); + if (JBt(t)) + return CFt(t); + if (ZBt(t)) { const r = t.regex.lastIndexOf("/"), n = t.regex.substring(1, r), i = t.regex.substring(r + 1); return e && (e.i = i.includes("i"), e.s = i.includes("s"), e.u = i.includes("u")), Nu(n, { cardinality: t.cardinality, @@ -72198,8 +72142,8 @@ function lm(t, e) { wrap: !1 }); } else { - if (rFt(t)) - return Nu(LI, { + if (eFt(t)) + return Nu(EI, { cardinality: t.cardinality, lookahead: t.lookahead }); @@ -72207,68 +72151,68 @@ function lm(t, e) { } } } -function CFt(t) { +function SFt(t) { return Nu(t.elements.map((e) => lm(e)).join("|"), { cardinality: t.cardinality, lookahead: t.lookahead }); } -function EFt(t) { +function TFt(t) { return Nu(t.elements.map((e) => lm(e)).join(""), { cardinality: t.cardinality, lookahead: t.lookahead }); } -function _Ft(t) { - return Nu(`${LI}*?${lm(t.terminal)}`, { +function CFt(t) { + return Nu(`${EI}*?${lm(t.terminal)}`, { cardinality: t.cardinality, lookahead: t.lookahead }); } -function AFt(t) { - return Nu(`(?!${lm(t.terminal)})${LI}*?`, { +function EFt(t) { + return Nu(`(?!${lm(t.terminal)})${EI}*?`, { cardinality: t.cardinality, lookahead: t.lookahead }); } -function LFt(t) { - return t.right ? Nu(`[${U_(t.left)}-${U_(t.right)}]`, { +function _Ft(t) { + return t.right ? Nu(`[${z_(t.left)}-${z_(t.right)}]`, { cardinality: t.cardinality, lookahead: t.lookahead, wrap: !1 - }) : Nu(U_(t.left), { + }) : Nu(z_(t.left), { cardinality: t.cardinality, lookahead: t.lookahead, wrap: !1 }); } -function U_(t) { - return xC(t.value); +function z_(t) { + return yC(t.value); } function Nu(t, e) { var r; return (e.wrap !== !1 || e.lookahead) && (t = `(${(r = e.lookahead) !== null && r !== void 0 ? r : ""}${t})`), e.cardinality ? `${t}${e.cardinality}` : t; } -function RFt(t) { +function AFt(t) { const e = [], r = t.Grammar; for (const n of r.rules) - tp(n) && bFt(n) && fFt(AI(n)) && e.push(n.name); + tp(n) && vFt(n) && uFt(CI(n)) && e.push(n.name); return { multilineCommentRules: e, - nameRegexp: _Bt + nameRegexp: CBt }; } -function JL(t) { +function ZL(t) { console && console.error && console.error(`Error: ${t}`); } -function $de(t) { +function Ide(t) { console && console.warn && console.warn(`Warning: ${t}`); } -function Bde(t) { +function Pde(t) { const e = new Date().getTime(), r = t(); return { time: new Date().getTime() - e, value: r }; } -function Fde(t) { +function $de(t) { function e() { } e.prototype = t; @@ -72278,10 +72222,10 @@ function Fde(t) { } return n(), n(), t; } -function MFt(t) { - return DFt(t) ? t.LABEL : t.name; +function LFt(t) { + return RFt(t) ? t.LABEL : t.name; } -function DFt(t) { +function RFt(t) { return $a(t.LABEL) && t.LABEL !== ""; } class ru { @@ -72367,12 +72311,12 @@ class wn { e.visit(this); } } -function NFt(t) { - return gt(t, X4); +function MFt(t) { + return gt(t, H4); } -function X4(t) { +function H4(t) { function e(r) { - return gt(r, X4); + return gt(r, H4); } if (t instanceof ua) { const r = { @@ -72403,14 +72347,14 @@ function X4(t) { return { type: "RepetitionMandatoryWithSeparator", idx: t.idx, - separator: X4(new wn({ terminalType: t.separator })), + separator: H4(new wn({ terminalType: t.separator })), definition: e(t.definition) }; if (t instanceof qa) return { type: "RepetitionWithSeparator", idx: t.idx, - separator: X4(new wn({ terminalType: t.separator })), + separator: H4(new wn({ terminalType: t.separator })), definition: e(t.definition) }; if (t instanceof Un) @@ -72429,7 +72373,7 @@ function X4(t) { const r = { type: "Terminal", name: t.terminalType.name, - label: MFt(t.terminalType), + label: LFt(t.terminalType), idx: t.idx }; $a(t.label) && (r.terminalLabel = t.label); @@ -72496,13 +72440,13 @@ class um { visitRule(e) { } } -function IFt(t) { +function DFt(t) { return t instanceof Ba || t instanceof fs || t instanceof Un || t instanceof vo || t instanceof yo || t instanceof qa || t instanceof wn || t instanceof cm; } -function Sk(t, e = []) { - return t instanceof fs || t instanceof Un || t instanceof qa ? !0 : t instanceof Ya ? Yhe(t.definition, (n) => Sk(n, e)) : t instanceof ua && pa(e, t) ? !1 : t instanceof ru ? (t instanceof ua && e.push(t), Tl(t.definition, (n) => Sk(n, e))) : !1; +function kk(t, e = []) { + return t instanceof fs || t instanceof Un || t instanceof qa ? !0 : t instanceof Ya ? Uhe(t.definition, (n) => kk(n, e)) : t instanceof ua && pa(e, t) ? !1 : t instanceof ru ? (t instanceof ua && e.push(t), Tl(t.definition, (n) => kk(n, e))) : !1; } -function PFt(t) { +function NFt(t) { return t instanceof Ya; } function uc(t) { @@ -72524,7 +72468,7 @@ function uc(t) { return "CONSUME"; throw Error("non exhaustive match"); } -class OC { +class xC { walk(e, r = []) { $e(e.definition, (n, i) => { const s = es(e.definition, i + 1); @@ -72569,7 +72513,7 @@ class OC { this.walk(e, i); } walkAtLeastOneSep(e, r, n) { - const i = hW(e, r, n); + const i = lW(e, r, n); this.walk(e, i); } walkMany(e, r, n) { @@ -72579,7 +72523,7 @@ class OC { this.walk(e, i); } walkManySep(e, r, n) { - const i = hW(e, r, n); + const i = lW(e, r, n); this.walk(e, i); } walkOr(e, r, n) { @@ -72590,7 +72534,7 @@ class OC { }); } } -function hW(t, e, r) { +function lW(t, e, r) { return [ new fs({ definition: [ @@ -72603,30 +72547,30 @@ function Nx(t) { if (t instanceof ua) return Nx(t.referencedRule); if (t instanceof wn) - return FFt(t); - if (IFt(t)) return $Ft(t); - if (PFt(t)) - return BFt(t); + if (DFt(t)) + return IFt(t); + if (NFt(t)) + return PFt(t); throw Error("non exhaustive match"); } -function $Ft(t) { +function IFt(t) { let e = []; const r = t.definition; let n = 0, i = r.length > n, s, a = !0; for (; i && a; ) - s = r[n], a = Sk(s), e = e.concat(Nx(s)), n = n + 1, i = r.length > n; - return oI(e); + s = r[n], a = kk(s), e = e.concat(Nx(s)), n = n + 1, i = r.length > n; + return iI(e); } -function BFt(t) { +function PFt(t) { const e = gt(t.definition, (r) => Nx(r)); - return oI(Qi(e)); + return iI(Qi(e)); } -function FFt(t) { +function $Ft(t) { return [t.terminalType]; } -const zde = "_~IN~_"; -class zFt extends OC { +const Bde = "_~IN~_"; +class BFt extends xC { constructor(e) { super(), this.topProd = e, this.follows = {}; } @@ -72636,43 +72580,43 @@ class zFt extends OC { walkTerminal(e, r, n) { } walkProdRef(e, r, n) { - const i = UFt(e.referencedRule, e.idx) + this.topProd.name, s = r.concat(n), a = new Ba({ definition: s }), o = Nx(a); + const i = zFt(e.referencedRule, e.idx) + this.topProd.name, s = r.concat(n), a = new Ba({ definition: s }), o = Nx(a); this.follows[i] = o; } } -function VFt(t) { +function FFt(t) { const e = {}; return $e(t, (r) => { - const n = new zFt(r).startWalking(); + const n = new BFt(r).startWalking(); fo(e, n); }), e; } -function UFt(t, e) { - return t.name + e + zde; +function zFt(t, e) { + return t.name + e + Bde; } -let Z4 = {}; -const qFt = new Ade(); -function kC(t) { +let X4 = {}; +const VFt = new Ede(); +function wC(t) { const e = t.toString(); - if (Z4.hasOwnProperty(e)) - return Z4[e]; + if (X4.hasOwnProperty(e)) + return X4[e]; { - const r = qFt.pattern(e); - return Z4[e] = r, r; + const r = VFt.pattern(e); + return X4[e] = r, r; } } -function YFt() { - Z4 = {}; +function UFt() { + X4 = {}; } -const Vde = "Complement Sets are not supported for first char optimization", Tk = `Unable to use "first char" lexer optimizations: +const Fde = "Complement Sets are not supported for first char optimization", Sk = `Unable to use "first char" lexer optimizations: `; -function QFt(t, e = !1) { +function qFt(t, e = !1) { try { - const r = kC(t); - return e9(r.value, {}, r.flags.ignoreCase); + const r = wC(t); + return jL(r.value, {}, r.flags.ignoreCase); } catch (r) { - if (r.message === Vde) - e && $de(`${Tk} Unable to optimize: < ${t.toString()} > + if (r.message === Fde) + e && Ide(`${Sk} Unable to optimize: < ${t.toString()} > Complement Sets cannot be automatically optimized. This will disable the lexer's first char optimizations. See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#COMPLEMENT for details.`); @@ -72680,7 +72624,7 @@ function QFt(t, e = !1) { let n = ""; e && (n = ` This will disable the lexer's first char optimizations. - See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#REGEXP_PARSING for details.`), JL(`${Tk} + See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#REGEXP_PARSING for details.`), ZL(`${Sk} Failed parsing: < ${t.toString()} > Using the @chevrotain/regexp-to-ast library Please open an issue at: https://github.com/chevrotain/chevrotain/issues` + n); @@ -72688,11 +72632,11 @@ function QFt(t, e = !1) { } return []; } -function e9(t, e, r) { +function jL(t, e, r) { switch (t.type) { case "Disjunction": for (let i = 0; i < t.value.length; i++) - e9(t.value[i], e, r); + jL(t.value[i], e, r); break; case "Alternative": const n = t.value; @@ -72711,22 +72655,22 @@ function e9(t, e, r) { const a = s; switch (a.type) { case "Character": - SO(a.value, e, r); + kO(a.value, e, r); break; case "Set": if (a.complement === !0) - throw Error(Vde); + throw Error(Fde); $e(a.value, (l) => { if (typeof l == "number") - SO(l, e, r); + kO(l, e, r); else { const u = l; if (r === !0) for (let h = u.from; h <= u.to; h++) - SO(h, e, r); + kO(h, e, r); else { for (let h = u.from; h <= u.to && h < Lv; h++) - SO(h, e, r); + kO(h, e, r); if (u.to >= Lv) { const h = u.from >= Lv ? u.from : Lv, f = u.to, d = Ef(h), p = Ef(f); for (let g = d; g <= p; g++) @@ -72737,13 +72681,13 @@ function e9(t, e, r) { }); break; case "Group": - e9(a.value, e, r); + jL(a.value, e, r); break; default: throw Error("Non Exhaustive Match"); } const o = a.quantifier !== void 0 && a.quantifier.atLeast === 0; - if (a.type === "Group" && t9(a) === !1 || a.type !== "Group" && o === !1) + if (a.type === "Group" && KL(a) === !1 || a.type !== "Group" && o === !1) break; } break; @@ -72752,11 +72696,11 @@ function e9(t, e, r) { } return Kr(e); } -function SO(t, e, r) { +function kO(t, e, r) { const n = Ef(t); - e[n] = n, r === !0 && WFt(t, e); + e[n] = n, r === !0 && YFt(t, e); } -function WFt(t, e) { +function YFt(t, e) { const r = String.fromCharCode(t), n = r.toUpperCase(); if (n !== r) { const i = Ef(n.charCodeAt(0)); @@ -72769,7 +72713,7 @@ function WFt(t, e) { } } } -function fW(t, e) { +function cW(t, e) { return Xu(t.value, (r) => { if (typeof r == "number") return pa(e, r); @@ -72779,11 +72723,11 @@ function fW(t, e) { } }); } -function t9(t) { +function KL(t) { const e = t.quantifier; - return e && e.atLeast === 0 ? !0 : t.value ? Sr(t.value) ? Tl(t.value, t9) : t9(t.value) : !1; + return e && e.atLeast === 0 ? !0 : t.value ? Sr(t.value) ? Tl(t.value, KL) : KL(t.value) : !1; } -class GFt extends bC { +class QFt extends vC { constructor(e) { super(), this.targetCharCodes = e, this.found = !1; } @@ -72804,21 +72748,21 @@ class GFt extends bC { pa(this.targetCharCodes, e.value) && (this.found = !0); } visitSet(e) { - e.complement ? fW(e, this.targetCharCodes) === void 0 && (this.found = !0) : fW(e, this.targetCharCodes) !== void 0 && (this.found = !0); + e.complement ? cW(e, this.targetCharCodes) === void 0 && (this.found = !0) : cW(e, this.targetCharCodes) !== void 0 && (this.found = !0); } } -function RI(t, e) { +function _I(t, e) { if (e instanceof RegExp) { - const r = kC(e), n = new GFt(t); + const r = wC(e), n = new QFt(t); return n.visit(r), n.found; } else return Xu(e, (r) => pa(t, r.charCodeAt(0))) !== void 0; } -const w0 = "PATTERN", Av = "defaultMode", TO = "modes"; -let Ude = typeof new RegExp("(?:)").sticky == "boolean"; -function HFt(t, e) { - e = sC(e, { - useSticky: Ude, +const w0 = "PATTERN", Av = "defaultMode", SO = "modes"; +let zde = typeof new RegExp("(?:)").sticky == "boolean"; +function WFt(t, e) { + e = nC(e, { + useSticky: zde, debug: !1, safeMode: !1, positionTracking: "full", @@ -72828,11 +72772,11 @@ function HFt(t, e) { }); const r = e.tracer; r("initCharCodeToOptimizedIndexMap", () => { - vzt(); + gzt(); }); let n; r("Reject Lexer.NA", () => { - n = lC(t, (b) => b[w0] === Na.NA); + n = aC(t, (b) => b[w0] === Na.NA); }); let i = !1, s; r("Transform Patterns", () => { @@ -72857,7 +72801,7 @@ function HFt(t, e) { "v", "w", "W" - ], O[1]) ? O[1] : e.useSticky ? pW(w) : dW(w); + ], O[1]) ? O[1] : e.useSticky ? hW(w) : uW(w); } else { if (Ho(w)) return i = !0, { exec: w }; @@ -72868,7 +72812,7 @@ function HFt(t, e) { return w; { const O = w.replace(/[\\^$.*+?()[\]{}|]/g, "\\$&"), S = new RegExp(O); - return e.useSticky ? pW(S) : dW(S); + return e.useSticky ? hW(S) : uW(S); } } else throw Error("non exhaustive match"); @@ -72889,17 +72833,17 @@ function HFt(t, e) { }), l = gt(n, (b) => { const w = b.LONGER_ALT; if (w) - return Sr(w) ? gt(w, (S) => IQ(n, S)) : [IQ(n, w)]; + return Sr(w) ? gt(w, (S) => MQ(n, S)) : [MQ(n, w)]; }), u = gt(n, (b) => b.PUSH_MODE), h = gt(n, (b) => yt(b, "POP_MODE")); }); let f; r("Line Terminator Handling", () => { - const b = Qde(e.lineTerminatorCharacters); - f = gt(n, (w) => !1), e.positionTracking !== "onlyOffset" && (f = gt(n, (w) => yt(w, "LINE_BREAKS") ? !!w.LINE_BREAKS : Yde(w, b) === !1 && RI(b, w.PATTERN))); + const b = qde(e.lineTerminatorCharacters); + f = gt(n, (w) => !1), e.positionTracking !== "onlyOffset" && (f = gt(n, (w) => yt(w, "LINE_BREAKS") ? !!w.LINE_BREAKS : Ude(w, b) === !1 && _I(b, w.PATTERN))); }); let d, p, g, m; r("Misc Mapping #2", () => { - d = gt(n, qde), p = gt(s, pzt), g = gi(n, (b, w) => { + d = gt(n, Vde), p = gt(s, fzt), g = gi(n, (b, w) => { const O = w.GROUP; return $a(O) && O !== Na.SKIPPED && (b[O] = []), b; }, {}), m = gt(s, (b, w) => ({ @@ -72920,27 +72864,27 @@ function HFt(t, e) { y = gi(n, (b, w, O) => { if (typeof w.PATTERN == "string") { const S = w.PATTERN.charCodeAt(0), C = Ef(S); - q_(b, C, m[O]); + V_(b, C, m[O]); } else if (Sr(w.START_CHARS_HINT)) { let S; $e(w.START_CHARS_HINT, (C) => { const T = typeof C == "string" ? C.charCodeAt(0) : C, L = Ef(T); - S !== L && (S = L, q_(b, L, m[O])); + S !== L && (S = L, V_(b, L, m[O])); }); } else if (Zu(w.PATTERN)) if (w.PATTERN.unicode) - v = !1, e.ensureOptimizations && JL(`${Tk} Unable to analyze < ${w.PATTERN.toString()} > pattern. + v = !1, e.ensureOptimizations && ZL(`${Sk} Unable to analyze < ${w.PATTERN.toString()} > pattern. The regexp unicode flag is not currently supported by the regexp-to-ast library. This will disable the lexer's first char optimizations. For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNICODE_OPTIMIZE`); else { - const S = QFt(w.PATTERN, e.ensureOptimizations); + const S = qFt(w.PATTERN, e.ensureOptimizations); $r(S) && (v = !1), $e(S, (C) => { - q_(b, C, m[O]); + V_(b, C, m[O]); }); } else - e.ensureOptimizations && JL(`${Tk} TokenType: <${w.name}> is using a custom token pattern without providing parameter. + e.ensureOptimizations && ZL(`${Sk} TokenType: <${w.name}> is using a custom token pattern without providing parameter. This will disable the lexer's first char optimizations. For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#CUSTOM_OPTIMIZE`), v = !1; return b; @@ -72953,27 +72897,27 @@ function HFt(t, e) { canBeOptimized: v }; } -function XFt(t, e) { +function GFt(t, e) { let r = []; - const n = jFt(t); + const n = XFt(t); r = r.concat(n.errors); - const i = KFt(n.valid), s = i.valid; - return r = r.concat(i.errors), r = r.concat(ZFt(s)), r = r.concat(azt(s)), r = r.concat(ozt(s, e)), r = r.concat(lzt(s)), r; + const i = ZFt(n.valid), s = i.valid; + return r = r.concat(i.errors), r = r.concat(HFt(s)), r = r.concat(izt(s)), r = r.concat(szt(s, e)), r = r.concat(azt(s)), r; } -function ZFt(t) { +function HFt(t) { let e = []; const r = Yn(t, (n) => Zu(n[w0])); - return e = e.concat(ezt(r)), e = e.concat(nzt(r)), e = e.concat(izt(r)), e = e.concat(szt(r)), e = e.concat(tzt(r)), e; + return e = e.concat(KFt(r)), e = e.concat(tzt(r)), e = e.concat(rzt(r)), e = e.concat(nzt(r)), e = e.concat(JFt(r)), e; } -function jFt(t) { +function XFt(t) { const e = Yn(t, (i) => !yt(i, w0)), r = gt(e, (i) => ({ message: "Token Type: ->" + i.name + "<- missing static 'PATTERN' property", type: qn.MISSING_PATTERN, tokenTypes: [i] - })), n = aC(t, e); + })), n = iC(t, e); return { errors: r, valid: n }; } -function KFt(t) { +function ZFt(t) { const e = Yn(t, (i) => { const s = i[w0]; return !Zu(s) && !Ho(s) && !yt(s, "exec") && !$a(s); @@ -72981,12 +72925,12 @@ function KFt(t) { message: "Token Type: ->" + i.name + "<- static 'PATTERN' can only be a RegExp, a Function matching the {CustomPatternMatcherFunc} type or an Object matching the {ICustomPattern} interface.", type: qn.INVALID_PATTERN, tokenTypes: [i] - })), n = aC(t, e); + })), n = iC(t, e); return { errors: r, valid: n }; } -const JFt = /[^\\][$]/; -function ezt(t) { - class e extends bC { +const jFt = /[^\\][$]/; +function KFt(t) { + class e extends vC { constructor() { super(...arguments), this.found = !1; } @@ -72997,10 +72941,10 @@ function ezt(t) { const r = Yn(t, (i) => { const s = i.PATTERN; try { - const a = kC(s), o = new e(); + const a = wC(s), o = new e(); return o.visit(a), o.found; } catch { - return JFt.test(s.source); + return jFt.test(s.source); } }); return gt(r, (i) => ({ @@ -73011,7 +72955,7 @@ function ezt(t) { tokenTypes: [i] })); } -function tzt(t) { +function JFt(t) { const e = Yn(t, (n) => n.PATTERN.test("")); return gt(e, (n) => ({ message: "Token Type: ->" + n.name + "<- static 'PATTERN' must not match an empty string", @@ -73019,9 +72963,9 @@ function tzt(t) { tokenTypes: [n] })); } -const rzt = /[^\\[][\^]|^\^/; -function nzt(t) { - class e extends bC { +const ezt = /[^\\[][\^]|^\^/; +function tzt(t) { + class e extends vC { constructor() { super(...arguments), this.found = !1; } @@ -73032,10 +72976,10 @@ function nzt(t) { const r = Yn(t, (i) => { const s = i.PATTERN; try { - const a = kC(s), o = new e(); + const a = wC(s), o = new e(); return o.visit(a), o.found; } catch { - return rzt.test(s.source); + return ezt.test(s.source); } }); return gt(r, (i) => ({ @@ -73046,7 +72990,7 @@ function nzt(t) { tokenTypes: [i] })); } -function izt(t) { +function rzt(t) { const e = Yn(t, (n) => { const i = n[w0]; return i instanceof RegExp && (i.multiline || i.global); @@ -73057,7 +73001,7 @@ function izt(t) { tokenTypes: [n] })); } -function szt(t) { +function nzt(t) { const e = []; let r = gt(t, (s) => gi(t, (a, o) => (s.PATTERN.source === o.PATTERN.source && !pa(e, o) && o.PATTERN !== Na.NA && (e.push(o), a.push(o)), a), [])); r = Ax(r); @@ -73071,7 +73015,7 @@ function szt(t) { }; }); } -function azt(t) { +function izt(t) { const e = Yn(t, (n) => { if (!yt(n, "GROUP")) return !1; @@ -73084,7 +73028,7 @@ function azt(t) { tokenTypes: [n] })); } -function ozt(t, e) { +function szt(t, e) { const r = Yn(t, (i) => i.PUSH_MODE !== void 0 && !pa(e, i.PUSH_MODE)); return gt(r, (i) => ({ message: `Token Type: ->${i.name}<- static 'PUSH_MODE' value cannot refer to a Lexer Mode ->${i.PUSH_MODE}<-which does not exist`, @@ -73092,14 +73036,14 @@ function ozt(t, e) { tokenTypes: [i] })); } -function lzt(t) { +function azt(t) { const e = [], r = gi(t, (n, i, s) => { const a = i.PATTERN; - return a === Na.NA || ($a(a) ? n.push({ str: a, idx: s, tokenType: i }) : Zu(a) && uzt(a) && n.push({ str: a.source, idx: s, tokenType: i })), n; + return a === Na.NA || ($a(a) ? n.push({ str: a, idx: s, tokenType: i }) : Zu(a) && lzt(a) && n.push({ str: a.source, idx: s, tokenType: i })), n; }, []); return $e(t, (n, i) => { $e(r, ({ str: s, idx: a, tokenType: o }) => { - if (i < a && czt(s, n.PATTERN)) { + if (i < a && ozt(s, n.PATTERN)) { const l = `Token: ->${o.name}<- can never be matched. Because it appears AFTER the Token Type ->${n.name}<-in the lexer's definition. See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNREACHABLE`; @@ -73112,7 +73056,7 @@ See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNREACHABLE`; }); }), e; } -function czt(t, e) { +function ozt(t, e) { if (Zu(e)) { const r = e.exec(t); return r !== null && r.index === 0; @@ -73126,7 +73070,7 @@ function czt(t, e) { throw Error("non exhaustive match"); } } -function uzt(t) { +function lzt(t) { return Xu([ ".", "\\", @@ -73143,29 +73087,29 @@ function uzt(t) { "{" ], (r) => t.source.indexOf(r) !== -1) === void 0; } -function dW(t) { +function uW(t) { const e = t.ignoreCase ? "i" : ""; return new RegExp(`^(?:${t.source})`, e); } -function pW(t) { +function hW(t) { const e = t.ignoreCase ? "iy" : "y"; return new RegExp(`${t.source}`, e); } -function hzt(t, e, r) { +function czt(t, e, r) { const n = []; return yt(t, Av) || n.push({ message: "A MultiMode Lexer cannot be initialized without a <" + Av + `> property in its definition `, type: qn.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE - }), yt(t, TO) || n.push({ - message: "A MultiMode Lexer cannot be initialized without a <" + TO + `> property in its definition + }), yt(t, SO) || n.push({ + message: "A MultiMode Lexer cannot be initialized without a <" + SO + `> property in its definition `, type: qn.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY - }), yt(t, TO) && yt(t, Av) && !yt(t.modes, t.defaultMode) && n.push({ + }), yt(t, SO) && yt(t, Av) && !yt(t.modes, t.defaultMode) && n.push({ message: `A MultiMode Lexer cannot be initialized with a ${Av}: <${t.defaultMode}>which does not exist `, type: qn.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST - }), yt(t, TO) && $e(t.modes, (i, s) => { + }), yt(t, SO) && $e(t.modes, (i, s) => { $e(i, (a, o) => { if (qr(a)) n.push({ @@ -73186,21 +73130,21 @@ function hzt(t, e, r) { }); }), n; } -function fzt(t, e, r) { +function uzt(t, e, r) { const n = []; let i = !1; - const s = Ax(Qi(Kr(t.modes))), a = lC(s, (l) => l[w0] === Na.NA), o = Qde(r); + const s = Ax(Qi(Kr(t.modes))), a = aC(s, (l) => l[w0] === Na.NA), o = qde(r); return e && $e(a, (l) => { - const u = Yde(l, o); + const u = Ude(l, o); if (u !== !1) { const f = { - message: mzt(l, u), + message: pzt(l, u), type: u.issue, tokenType: l }; n.push(f); } else - yt(l, "LINE_BREAKS") ? l.LINE_BREAKS === !0 && (i = !0) : RI(o, l.PATTERN) && (i = !0); + yt(l, "LINE_BREAKS") ? l.LINE_BREAKS === !0 && (i = !0) : _I(o, l.PATTERN) && (i = !0); }), e && !i && n.push({ message: `Warning: No LINE_BREAKS Found. This Lexer has been defined to track line and column information, @@ -73210,7 +73154,7 @@ function fzt(t, e, r) { type: qn.NO_LINE_BREAKS_FLAGS }), n; } -function dzt(t) { +function hzt(t) { const e = {}, r = ki(t); return $e(r, (n) => { const i = t[n]; @@ -73220,7 +73164,7 @@ function dzt(t) { throw Error("non exhaustive match"); }), e; } -function qde(t) { +function Vde(t) { const e = t.PATTERN; if (Zu(e)) return !1; @@ -73232,10 +73176,10 @@ function qde(t) { return !1; throw Error("non exhaustive match"); } -function pzt(t) { +function fzt(t) { return $a(t) && t.length === 1 ? t.charCodeAt(0) : !1; } -const gzt = { +const dzt = { test: function(t) { const e = t.length; for (let r = this.lastIndex; r < e; r++) { @@ -73249,12 +73193,12 @@ const gzt = { }, lastIndex: 0 }; -function Yde(t, e) { +function Ude(t, e) { if (yt(t, "LINE_BREAKS")) return !1; if (Zu(t.PATTERN)) { try { - RI(e, t.PATTERN); + _I(e, t.PATTERN); } catch (r) { return { issue: qn.IDENTIFY_TERMINATOR, @@ -73265,12 +73209,12 @@ function Yde(t, e) { } else { if ($a(t.PATTERN)) return !1; - if (qde(t)) + if (Vde(t)) return { issue: qn.CUSTOM_LINE_BREAK }; throw Error("non exhaustive match"); } } -function mzt(t, e) { +function pzt(t, e) { if (e.issue === qn.IDENTIFY_TERMINATOR) return `Warning: unable to identify line terminator usage in pattern. The problem is in the <${t.name}> Token Type @@ -73282,89 +73226,89 @@ function mzt(t, e) { For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#CUSTOM_LINE_BREAK`; throw Error("non exhaustive match"); } -function Qde(t) { +function qde(t) { return gt(t, (r) => $a(r) ? r.charCodeAt(0) : r); } -function q_(t, e, r) { +function V_(t, e, r) { t[e] === void 0 ? t[e] = [r] : t[e].push(r); } const Lv = 256; -let j4 = []; +let Z4 = []; function Ef(t) { - return t < Lv ? t : j4[t]; + return t < Lv ? t : Z4[t]; } -function vzt() { - if ($r(j4)) { - j4 = new Array(65536); +function gzt() { + if ($r(Z4)) { + Z4 = new Array(65536); for (let t = 0; t < 65536; t++) - j4[t] = t > 255 ? 255 + ~~(t / 255) : t; + Z4[t] = t > 255 ? 255 + ~~(t / 255) : t; } } function Ix(t, e) { const r = t.tokenTypeIdx; return r === e.tokenTypeIdx ? !0 : e.isParent === !0 && e.categoryMatchesMap[r] === !0; } -function Ck(t, e) { +function Tk(t, e) { return t.tokenTypeIdx === e.tokenTypeIdx; } -let gW = 1; -const Wde = {}; +let fW = 1; +const Yde = {}; function Px(t) { - const e = yzt(t); - bzt(e), wzt(e), xzt(e), $e(e, (r) => { + const e = mzt(t); + vzt(e), bzt(e), yzt(e), $e(e, (r) => { r.isParent = r.categoryMatches.length > 0; }); } -function yzt(t) { +function mzt(t) { let e = Di(t), r = t, n = !0; for (; n; ) { r = Ax(Qi(gt(r, (s) => s.CATEGORIES))); - const i = aC(r, e); + const i = iC(r, e); e = e.concat(i), $r(i) ? n = !1 : r = i; } return e; } -function bzt(t) { +function vzt(t) { $e(t, (e) => { - Hde(e) || (Wde[gW] = e, e.tokenTypeIdx = gW++), mW(e) && !Sr(e.CATEGORIES) && (e.CATEGORIES = [e.CATEGORIES]), mW(e) || (e.CATEGORIES = []), Ozt(e) || (e.categoryMatches = []), kzt(e) || (e.categoryMatchesMap = {}); + Wde(e) || (Yde[fW] = e, e.tokenTypeIdx = fW++), dW(e) && !Sr(e.CATEGORIES) && (e.CATEGORIES = [e.CATEGORIES]), dW(e) || (e.CATEGORIES = []), xzt(e) || (e.categoryMatches = []), wzt(e) || (e.categoryMatchesMap = {}); }); } -function xzt(t) { +function yzt(t) { $e(t, (e) => { e.categoryMatches = [], $e(e.categoryMatchesMap, (r, n) => { - e.categoryMatches.push(Wde[n].tokenTypeIdx); + e.categoryMatches.push(Yde[n].tokenTypeIdx); }); }); } -function wzt(t) { +function bzt(t) { $e(t, (e) => { - Gde([], e); + Qde([], e); }); } -function Gde(t, e) { +function Qde(t, e) { $e(t, (r) => { e.categoryMatchesMap[r.tokenTypeIdx] = !0; }), $e(e.CATEGORIES, (r) => { const n = t.concat(e); - pa(n, r) || Gde(n, r); + pa(n, r) || Qde(n, r); }); } -function Hde(t) { +function Wde(t) { return yt(t, "tokenTypeIdx"); } -function mW(t) { +function dW(t) { return yt(t, "CATEGORIES"); } -function Ozt(t) { +function xzt(t) { return yt(t, "categoryMatches"); } -function kzt(t) { +function wzt(t) { return yt(t, "categoryMatchesMap"); } -function Szt(t) { +function Ozt(t) { return yt(t, "tokenTypeIdx"); } -const Tzt = { +const kzt = { buildUnableToPopLexerModeMessage(t) { return `Unable to pop Lexer Mode after encountering Token ->${t.image}<- The Mode Stack is empty`; }, @@ -73384,7 +73328,7 @@ const Rv = { `, "\r"], ensureOptimizations: !1, safeMode: !1, - errorMessageProvider: Tzt, + errorMessageProvider: kzt, traceInitPerf: !1, skipValidations: !1, recoveryEnabled: !0 @@ -73397,7 +73341,7 @@ class Na { this.traceInitIndent++; const a = new Array(this.traceInitIndent + 1).join(" "); this.traceInitIndent < this.traceInitMaxIdent && console.log(`${a}--> <${i}>`); - const { time: o, value: l } = Bde(s), u = o > 10 ? console.warn : console.log; + const { time: o, value: l } = Pde(s), u = o > 10 ? console.warn : console.log; return this.traceInitIndent < this.traceInitMaxIdent && u(`${a}<-- <${i}> time: ${o}ms`), this.traceInitIndent--, l; } else return s(); @@ -73410,7 +73354,7 @@ a boolean 2nd argument is no longer supported`); let i, s = !0; this.TRACE_INIT("Lexer Config handling", () => { if (this.config.lineTerminatorsPattern === Rv.lineTerminatorsPattern) - this.config.lineTerminatorsPattern = gzt; + this.config.lineTerminatorsPattern = dzt; else if (this.config.lineTerminatorCharacters === Rv.lineTerminatorCharacters) throw Error(`Error: Missing property on the Lexer config. For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#MISSING_LINE_TERM_CHARS`); @@ -73421,22 +73365,22 @@ a boolean 2nd argument is no longer supported`); defaultMode: Av } : (s = !1, i = Di(e)); }), this.config.skipValidations === !1 && (this.TRACE_INIT("performRuntimeChecks", () => { - this.lexerDefinitionErrors = this.lexerDefinitionErrors.concat(hzt(i, this.trackStartLines, this.config.lineTerminatorCharacters)); + this.lexerDefinitionErrors = this.lexerDefinitionErrors.concat(czt(i, this.trackStartLines, this.config.lineTerminatorCharacters)); }), this.TRACE_INIT("performWarningRuntimeChecks", () => { - this.lexerDefinitionWarning = this.lexerDefinitionWarning.concat(fzt(i, this.trackStartLines, this.config.lineTerminatorCharacters)); + this.lexerDefinitionWarning = this.lexerDefinitionWarning.concat(uzt(i, this.trackStartLines, this.config.lineTerminatorCharacters)); })), i.modes = i.modes ? i.modes : {}, $e(i.modes, (o, l) => { - i.modes[l] = lC(o, (u) => qr(u)); + i.modes[l] = aC(o, (u) => qr(u)); }); const a = ki(i.modes); if ($e(i.modes, (o, l) => { this.TRACE_INIT(`Mode: <${l}> processing`, () => { if (this.modes.push(l), this.config.skipValidations === !1 && this.TRACE_INIT("validatePatterns", () => { - this.lexerDefinitionErrors = this.lexerDefinitionErrors.concat(XFt(o, a)); + this.lexerDefinitionErrors = this.lexerDefinitionErrors.concat(GFt(o, a)); }), $r(this.lexerDefinitionErrors)) { Px(o); let u; this.TRACE_INIT("analyzeTokenTypes", () => { - u = HFt(o, { + u = WFt(o, { lineTerminatorCharacters: this.config.lineTerminatorCharacters, positionTracking: r.positionTracking, ensureOptimizations: r.ensureOptimizations, @@ -73453,9 +73397,9 @@ a boolean 2nd argument is no longer supported`); ` + l); } $e(this.lexerDefinitionWarning, (o) => { - $de(o.message); + Ide(o.message); }), this.TRACE_INIT("Choosing sub-methods implementations", () => { - if (Ude ? (this.chopInput = Qu, this.match = this.matchWithTest) : (this.updateLastIndex = vi, this.match = this.matchWithExec), s && (this.handleModes = vi), this.trackStartLines === !1 && (this.computeNewColumn = Qu), this.trackEndLines === !1 && (this.updateTokenEndLineColumnLocation = vi), /full/i.test(this.config.positionTracking)) + if (zde ? (this.chopInput = Qu, this.match = this.matchWithTest) : (this.updateLastIndex = vi, this.match = this.matchWithExec), s && (this.handleModes = vi), this.trackStartLines === !1 && (this.computeNewColumn = Qu), this.trackEndLines === !1 && (this.updateTokenEndLineColumnLocation = vi), /full/i.test(this.config.positionTracking)) this.createTokenInstance = this.createFullToken; else if (/onlyStart/i.test(this.config.positionTracking)) this.createTokenInstance = this.createStartOnlyToken; @@ -73471,9 +73415,9 @@ a boolean 2nd argument is no longer supported`); Disable the "ensureOptimizations" lexer config flag to silently ignore this and run the lexer in an un-optimized mode. Or inspect the console log for details on how to resolve these issues.`); }), this.TRACE_INIT("clearRegExpParserCache", () => { - YFt(); + UFt(); }), this.TRACE_INIT("toFastProperties", () => { - Fde(this); + $de(this); }); }); } @@ -73492,7 +73436,7 @@ a boolean 2nd argument is no longer supported`); let O = 0, S = 0; const C = this.hasCustom ? 0 : Math.floor(e.length / 10), T = new Array(C), L = []; let E = this.trackStartLines ? 1 : void 0, R = this.trackStartLines ? 1 : void 0; - const _ = dzt(this.emptyGroups), A = this.trackStartLines, $ = this.config.lineTerminatorsPattern; + const _ = hzt(this.emptyGroups), A = this.trackStartLines, $ = this.config.lineTerminatorsPattern; let k = 0, N = [], M = []; const I = [], D = []; Object.freeze(D); @@ -73660,25 +73604,25 @@ a boolean 2nd argument is no longer supported`); Na.SKIPPED = "This marks a skipped Token pattern, this means each token identified by it willbe consumed and then thrown into oblivion, this can be used to for example to completely ignore whitespace."; Na.NA = /NOT_APPLICABLE/; function hg(t) { - return Xde(t) ? t.LABEL : t.name; + return Gde(t) ? t.LABEL : t.name; } -function Xde(t) { +function Gde(t) { return $a(t.LABEL) && t.LABEL !== ""; } -const Czt = "parent", vW = "categories", yW = "label", bW = "group", xW = "push_mode", wW = "pop_mode", OW = "longer_alt", kW = "line_breaks", SW = "start_chars_hint"; -function Zde(t) { - return Ezt(t); +const Szt = "parent", pW = "categories", gW = "label", mW = "group", vW = "push_mode", yW = "pop_mode", bW = "longer_alt", xW = "line_breaks", wW = "start_chars_hint"; +function Hde(t) { + return Tzt(t); } -function Ezt(t) { +function Tzt(t) { const e = t.pattern, r = {}; - if (r.name = t.name, qr(e) || (r.PATTERN = e), yt(t, Czt)) + if (r.name = t.name, qr(e) || (r.PATTERN = e), yt(t, Szt)) throw `The parent property is no longer supported. See: https://github.com/chevrotain/chevrotain/issues/564#issuecomment-349062346 for details.`; - return yt(t, vW) && (r.CATEGORIES = t[vW]), Px([r]), yt(t, yW) && (r.LABEL = t[yW]), yt(t, bW) && (r.GROUP = t[bW]), yt(t, wW) && (r.POP_MODE = t[wW]), yt(t, xW) && (r.PUSH_MODE = t[xW]), yt(t, OW) && (r.LONGER_ALT = t[OW]), yt(t, kW) && (r.LINE_BREAKS = t[kW]), yt(t, SW) && (r.START_CHARS_HINT = t[SW]), r; + return yt(t, pW) && (r.CATEGORIES = t[pW]), Px([r]), yt(t, gW) && (r.LABEL = t[gW]), yt(t, mW) && (r.GROUP = t[mW]), yt(t, yW) && (r.POP_MODE = t[yW]), yt(t, vW) && (r.PUSH_MODE = t[vW]), yt(t, bW) && (r.LONGER_ALT = t[bW]), yt(t, xW) && (r.LINE_BREAKS = t[xW]), yt(t, wW) && (r.START_CHARS_HINT = t[wW]), r; } -const _f = Zde({ name: "EOF", pattern: Na.NA }); +const _f = Hde({ name: "EOF", pattern: Na.NA }); Px([_f]); -function MI(t, e, r, n, i, s, a, o) { +function AI(t, e, r, n, i, s, a, o) { return { image: e, startOffset: r, @@ -73691,12 +73635,12 @@ function MI(t, e, r, n, i, s, a, o) { tokenType: t }; } -function jde(t, e) { +function Xde(t, e) { return Ix(t, e); } const Vp = { buildMismatchTokenMessage({ expected: t, actual: e, previous: r, ruleName: n }) { - return `Expecting ${Xde(t) ? `--> ${hg(t)} <--` : `token of type --> ${t.name} <--`} but found --> '${e.image}' <--`; + return `Expecting ${Gde(t) ? `--> ${hg(t)} <--` : `token of type --> ${t.name} <--`} but found --> '${e.image}' <--`; }, buildNotAllInputParsedMessage({ firstRedundant: t, ruleName: e }) { return "Redundant input, expecting EOF but found: " + t.image; @@ -73726,7 +73670,7 @@ but found: '` + Bl(e).image + "'"; } }; Object.freeze(Vp); -const _zt = { +const Czt = { buildRuleNotFoundError(t, e) { return "Invalid grammar, reference to a rule which is not defined: ->" + e.nonTerminalName + `<- inside top level rule: ->` + t.name + "<-"; @@ -73801,11 +73745,11 @@ see: https://en.wikipedia.org/wiki/LL_parser#Left_factoring.`; return t.topLevelRule instanceof cm ? e = t.topLevelRule.name : e = t.topLevelRule, `Duplicate definition, rule: ->${e}<- is already defined in the grammar: ->${t.grammarName}<-`; } }; -function Azt(t, e) { - const r = new Lzt(t, e); +function Ezt(t, e) { + const r = new _zt(t, e); return r.resolveRefs(), r.errors; } -class Lzt extends um { +class _zt extends um { constructor(e, r) { super(), this.nameToTopRule = e, this.errMsgProvider = r, this.errors = []; } @@ -73829,7 +73773,7 @@ class Lzt extends um { } } } -class Rzt extends OC { +class Azt extends xC { constructor(e, r) { super(), this.topProd = e, this.path = r, this.possibleTokTypes = [], this.nextProductionName = "", this.nextProductionOccurrence = 0, this.found = !1, this.isAtEndOfPath = !1; } @@ -73851,7 +73795,7 @@ class Rzt extends OC { $r(this.ruleStack) ? (this.nextProductionName = "", this.nextProductionOccurrence = 0, this.isAtEndOfPath = !0) : (this.nextProductionName = this.ruleStack.pop(), this.nextProductionOccurrence = this.occurrenceStack.pop()); } } -class Mzt extends Rzt { +class Lzt extends Azt { constructor(e, r) { super(e, r), this.path = r, this.nextTerminalName = "", this.nextTerminalOccurrence = 0, this.nextTerminalName = this.path.lastTok.name, this.nextTerminalOccurrence = this.path.lastTokOccurrence; } @@ -73862,7 +73806,7 @@ class Mzt extends Rzt { } } } -class SC extends OC { +class OC extends xC { constructor(e, r) { super(), this.topRule = e, this.occurrence = r, this.result = { token: void 0, @@ -73874,7 +73818,7 @@ class SC extends OC { return this.walk(this.topRule), this.result; } } -class Dzt extends SC { +class Rzt extends OC { walkMany(e, r, n) { if (e.idx === this.occurrence) { const i = Bl(r.concat(n)); @@ -73883,7 +73827,7 @@ class Dzt extends SC { super.walkMany(e, r, n); } } -class TW extends SC { +class OW extends OC { walkManySep(e, r, n) { if (e.idx === this.occurrence) { const i = Bl(r.concat(n)); @@ -73892,7 +73836,7 @@ class TW extends SC { super.walkManySep(e, r, n); } } -class Nzt extends SC { +class Mzt extends OC { walkAtLeastOne(e, r, n) { if (e.idx === this.occurrence) { const i = Bl(r.concat(n)); @@ -73901,7 +73845,7 @@ class Nzt extends SC { super.walkAtLeastOne(e, r, n); } } -class CW extends SC { +class kW extends OC { walkAtLeastOneSep(e, r, n) { if (e.idx === this.occurrence) { const i = Bl(r.concat(n)); @@ -73910,14 +73854,14 @@ class CW extends SC { super.walkAtLeastOneSep(e, r, n); } } -function r9(t, e, r = []) { +function JL(t, e, r = []) { r = Di(r); let n = [], i = 0; function s(o) { return o.concat(es(t, i + 1)); } function a(o) { - const l = r9(s(o), e, r); + const l = JL(s(o), e, r); return n.concat(l); } for (; r.length < e && i < t.length; ) { @@ -73974,7 +73918,7 @@ function r9(t, e, r = []) { suffixDef: es(t, i) }), n; } -function Kde(t, e, r, n) { +function Zde(t, e, r, n) { const i = "EXIT_NONE_TERMINAL", s = [i], a = "EXIT_ALTERNATIVE"; let o = !1; const l = e.length, u = l - n - 1, h = [], f = []; @@ -74129,13 +74073,13 @@ function Kde(t, e, r, n) { occurrenceStack: v }); else if (y instanceof cm) - f.push(Izt(y, g, m, v)); + f.push(Dzt(y, g, m, v)); else throw Error("non exhaustive match"); } return h; } -function Izt(t, e, r, n) { +function Dzt(t, e, r, n) { const i = Di(r); i.push(t.name); const s = Di(n); @@ -74150,7 +74094,7 @@ var Dn; (function(t) { t[t.OPTION = 0] = "OPTION", t[t.REPETITION = 1] = "REPETITION", t[t.REPETITION_MANDATORY = 2] = "REPETITION_MANDATORY", t[t.REPETITION_MANDATORY_WITH_SEPARATOR = 3] = "REPETITION_MANDATORY_WITH_SEPARATOR", t[t.REPETITION_WITH_SEPARATOR = 4] = "REPETITION_WITH_SEPARATOR", t[t.ALTERNATION = 5] = "ALTERNATION"; })(Dn || (Dn = {})); -function DI(t) { +function LI(t) { if (t instanceof fs || t === "Option") return Dn.OPTION; if (t instanceof Un || t === "Repetition") @@ -74165,19 +74109,19 @@ function DI(t) { return Dn.ALTERNATION; throw Error("non exhaustive match"); } -function EW(t) { - const { occurrence: e, rule: r, prodType: n, maxLookahead: i } = t, s = DI(n); - return s === Dn.ALTERNATION ? TC(e, r, i) : CC(e, r, s, i); +function SW(t) { + const { occurrence: e, rule: r, prodType: n, maxLookahead: i } = t, s = LI(n); + return s === Dn.ALTERNATION ? kC(e, r, i) : SC(e, r, s, i); } -function Pzt(t, e, r, n, i, s) { - const a = TC(t, e, r), o = t0e(a) ? Ck : Ix; +function Nzt(t, e, r, n, i, s) { + const a = kC(t, e, r), o = Jde(a) ? Tk : Ix; return s(a, n, o, i); } -function $zt(t, e, r, n, i, s) { - const a = CC(t, e, i, r), o = t0e(a) ? Ck : Ix; +function Izt(t, e, r, n, i, s) { + const a = SC(t, e, i, r), o = Jde(a) ? Tk : Ix; return s(a[0], o, n); } -function Bzt(t, e, r, n) { +function Pzt(t, e, r, n) { const i = t.length, s = Tl(t, (a) => Tl(a, (o) => o.length === 1)); if (e) return function(a) { @@ -74225,7 +74169,7 @@ function Bzt(t, e, r, n) { } }; } -function Fzt(t, e, r) { +function $zt(t, e, r) { const n = Tl(t, (s) => s.length === 1), i = t.length; if (n && !r) { const s = Qi(t); @@ -74258,7 +74202,7 @@ function Fzt(t, e, r) { return !1; }; } -class zzt extends OC { +class Bzt extends xC { constructor(e, r, n) { super(), this.topProd = e, this.targetOccurrence = r, this.targetProdType = n; } @@ -74284,7 +74228,7 @@ class zzt extends OC { this.checkIsTarget(e, Dn.REPETITION_WITH_SEPARATOR, r, n) || super.walkOption(e, r, n); } } -class Jde extends um { +class jde extends um { constructor(e, r, n) { super(), this.targetOccurrence = e, this.targetProdType = r, this.targetRef = n, this.result = []; } @@ -74310,13 +74254,13 @@ class Jde extends um { this.checkIsTarget(e, Dn.ALTERNATION); } } -function _W(t) { +function TW(t) { const e = new Array(t); for (let r = 0; r < t; r++) e[r] = []; return e; } -function Y_(t) { +function U_(t) { let e = [""]; for (let r = 0; r < t.length; r++) { const n = t[r], i = []; @@ -74332,7 +74276,7 @@ function Y_(t) { } return e; } -function Vzt(t, e, r) { +function Fzt(t, e, r) { for (let n = 0; n < t.length; n++) { if (n === r) continue; @@ -74345,11 +74289,11 @@ function Vzt(t, e, r) { } return !0; } -function e0e(t, e) { - const r = gt(t, (a) => r9([a], 1)), n = _W(r.length), i = gt(r, (a) => { +function Kde(t, e) { + const r = gt(t, (a) => JL([a], 1)), n = TW(r.length), i = gt(r, (a) => { const o = {}; return $e(a, (l) => { - const u = Y_(l.partialPath); + const u = U_(l.partialPath); $e(u, (h) => { o[h] = !0; }); @@ -74358,14 +74302,14 @@ function e0e(t, e) { let s = r; for (let a = 1; a <= e; a++) { const o = s; - s = _W(o.length); + s = TW(o.length); for (let l = 0; l < o.length; l++) { const u = o[l]; for (let h = 0; h < u.length; h++) { - const f = u[h].partialPath, d = u[h].suffixDef, p = Y_(f); - if (Vzt(i, p, l) || $r(d) || f.length === e) { + const f = u[h].partialPath, d = u[h].suffixDef, p = U_(f); + if (Fzt(i, p, l) || $r(d) || f.length === e) { const m = n[l]; - if (n9(m, f) === !1) { + if (e9(m, f) === !1) { m.push(f); for (let v = 0; v < p.length; v++) { const y = p[v]; @@ -74373,9 +74317,9 @@ function e0e(t, e) { } } } else { - const m = r9(d, a + 1, f); + const m = JL(d, a + 1, f); s[l] = s[l].concat(m), $e(m, (v) => { - const y = Y_(v.partialPath); + const y = U_(v.partialPath); $e(y, (b) => { i[l][b] = !0; }); @@ -74386,17 +74330,17 @@ function e0e(t, e) { } return n; } -function TC(t, e, r, n) { - const i = new Jde(t, Dn.ALTERNATION, n); - return e.accept(i), e0e(i.result, r); +function kC(t, e, r, n) { + const i = new jde(t, Dn.ALTERNATION, n); + return e.accept(i), Kde(i.result, r); } -function CC(t, e, r, n) { - const i = new Jde(t, r); +function SC(t, e, r, n) { + const i = new jde(t, r); e.accept(i); - const s = i.result, o = new zzt(e, t, r).startWalking(), l = new Ba({ definition: s }), u = new Ba({ definition: o }); - return e0e([l, u], n); + const s = i.result, o = new Bzt(e, t, r).startWalking(), l = new Ba({ definition: s }), u = new Ba({ definition: o }); + return Kde([l, u], n); } -function n9(t, e) { +function e9(t, e) { e: for (let r = 0; r < t.length; r++) { const n = t[r]; @@ -74411,16 +74355,16 @@ function n9(t, e) { } return !1; } -function Uzt(t, e) { +function zzt(t, e) { return t.length < e.length && Tl(t, (r, n) => { const i = e[n]; return r === i || i.categoryMatchesMap[r.tokenTypeIdx]; }); } -function t0e(t) { +function Jde(t) { return Tl(t, (e) => Tl(e, (r) => Tl(r, (n) => $r(n.categoryMatches)))); } -function qzt(t) { +function Vzt(t) { const e = t.lookaheadStrategy.validate({ rules: t.rules, tokenTypes: t.tokenTypes, @@ -74428,14 +74372,14 @@ function qzt(t) { }); return gt(e, (r) => Object.assign({ type: ha.CUSTOM_LOOKAHEAD_VALIDATION }, r)); } -function Yzt(t, e, r, n) { - const i = lo(t, (l) => Qzt(l, r)), s = nVt(t, e, r), a = lo(t, (l) => Jzt(l, r)), o = lo(t, (l) => Hzt(l, t, n, r)); +function Uzt(t, e, r, n) { + const i = lo(t, (l) => qzt(l, r)), s = tVt(t, e, r), a = lo(t, (l) => jzt(l, r)), o = lo(t, (l) => Wzt(l, t, n, r)); return i.concat(s, a, o); } -function Qzt(t, e) { - const r = new Gzt(); +function qzt(t, e) { + const r = new Qzt(); t.accept(r); - const n = r.allProductions, i = $Mt(n, Wzt), s = Hl(i, (o) => o.length > 1); + const n = r.allProductions, i = IMt(n, Yzt), s = Hl(i, (o) => o.length > 1); return gt(Kr(s), (o) => { const l = Bl(o), u = e.buildDuplicateFoundError(t, o), h = uc(l), f = { message: u, @@ -74443,17 +74387,17 @@ function Qzt(t, e) { ruleName: t.name, dslName: h, occurrence: l.idx - }, d = r0e(l); + }, d = e0e(l); return d && (f.parameter = d), f; }); } -function Wzt(t) { - return `${uc(t)}_#_${t.idx}_#_${r0e(t)}`; +function Yzt(t) { + return `${uc(t)}_#_${t.idx}_#_${e0e(t)}`; } -function r0e(t) { +function e0e(t) { return t instanceof wn ? t.terminalType.name : t instanceof ua ? t.nonTerminalName : ""; } -class Gzt extends um { +class Qzt extends um { constructor() { super(...arguments), this.allProductions = []; } @@ -74482,7 +74426,7 @@ class Gzt extends um { this.allProductions.push(e); } } -function Hzt(t, e, r, n) { +function Wzt(t, e, r, n) { const i = []; if (gi(e, (a, o) => o.name === t.name ? a + 1 : a, 0) > 1) { const a = n.buildDuplicateRuleNameError({ @@ -74497,7 +74441,7 @@ function Hzt(t, e, r, n) { } return i; } -function Xzt(t, e, r) { +function Gzt(t, e, r) { const n = []; let i; return pa(e, t) || (i = `Invalid rule override, rule: ->${t}<- cannot be overridden in the grammar: ->${r}<-as it is not defined in any of the super grammars `, n.push({ @@ -74506,8 +74450,8 @@ function Xzt(t, e, r) { ruleName: t })), n; } -function n0e(t, e, r, n = []) { - const i = [], s = K4(e.definition); +function t0e(t, e, r, n = []) { + const i = [], s = j4(e.definition); if ($r(s)) return []; { @@ -74520,14 +74464,14 @@ function n0e(t, e, r, n = []) { type: ha.LEFT_RECURSION, ruleName: a }); - const l = aC(s, n.concat([t])), u = lo(l, (h) => { + const l = iC(s, n.concat([t])), u = lo(l, (h) => { const f = Di(n); - return f.push(h), n0e(t, h, r, f); + return f.push(h), t0e(t, h, r, f); }); return i.concat(u); } } -function K4(t) { +function j4(t) { let e = []; if ($r(t)) return e; @@ -74535,19 +74479,19 @@ function K4(t) { if (r instanceof ua) e.push(r.referencedRule); else if (r instanceof Ba || r instanceof fs || r instanceof vo || r instanceof yo || r instanceof qa || r instanceof Un) - e = e.concat(K4(r.definition)); + e = e.concat(j4(r.definition)); else if (r instanceof Ya) - e = Qi(gt(r.definition, (s) => K4(s.definition))); + e = Qi(gt(r.definition, (s) => j4(s.definition))); else if (!(r instanceof wn)) throw Error("non exhaustive match"); - const n = Sk(r), i = t.length > 1; + const n = kk(r), i = t.length > 1; if (n && i) { const s = es(t); - return e.concat(K4(s)); + return e.concat(j4(s)); } else return e; } -class NI extends um { +class RI extends um { constructor() { super(...arguments), this.alternations = []; } @@ -74555,14 +74499,14 @@ class NI extends um { this.alternations.push(e); } } -function Zzt(t, e) { - const r = new NI(); +function Hzt(t, e) { + const r = new RI(); t.accept(r); const n = r.alternations; return lo(n, (s) => { const a = E2(s.definition); return lo(a, (o, l) => { - const u = Kde([o], [], Ix, 1); + const u = Zde([o], [], Ix, 1); return $r(u) ? [ { message: e.buildEmptyAlternationError({ @@ -74579,16 +74523,16 @@ function Zzt(t, e) { }); }); } -function jzt(t, e, r) { - const n = new NI(); +function Xzt(t, e, r) { + const n = new RI(); t.accept(n); let i = n.alternations; - return i = lC(i, (a) => a.ignoreAmbiguities === !0), lo(i, (a) => { - const o = a.idx, l = a.maxLookahead || e, u = TC(o, t, l, a), h = tVt(u, a, t, r), f = rVt(u, a, t, r); + return i = aC(i, (a) => a.ignoreAmbiguities === !0), lo(i, (a) => { + const o = a.idx, l = a.maxLookahead || e, u = kC(o, t, l, a), h = Jzt(u, a, t, r), f = eVt(u, a, t, r); return h.concat(f); }); } -class Kzt extends um { +class Zzt extends um { constructor() { super(...arguments), this.allProductions = []; } @@ -74605,8 +74549,8 @@ class Kzt extends um { this.allProductions.push(e); } } -function Jzt(t, e) { - const r = new NI(); +function jzt(t, e) { + const r = new RI(); t.accept(r); const n = r.alternations; return lo(n, (s) => s.definition.length > 255 ? [ @@ -74621,14 +74565,14 @@ function Jzt(t, e) { } ] : []); } -function eVt(t, e, r) { +function Kzt(t, e, r) { const n = []; return $e(t, (i) => { - const s = new Kzt(); + const s = new Zzt(); i.accept(s); const a = s.allProductions; $e(a, (o) => { - const l = DI(o), u = o.maxLookahead || e, h = o.idx, d = CC(h, i, l, u)[0]; + const l = LI(o), u = o.maxLookahead || e, h = o.idx, d = SC(h, i, l, u)[0]; if ($r(Qi(d))) { const p = r.buildEmptyRepetitionError({ topLevelRule: i, @@ -74643,12 +74587,12 @@ function eVt(t, e, r) { }); }), n; } -function tVt(t, e, r, n) { +function Jzt(t, e, r, n) { const i = [], s = gi(t, (o, l, u) => (e.definition[u].ignoreAmbiguities === !0 || $e(l, (h) => { const f = [u]; $e(t, (d, p) => { - u !== p && n9(d, h) && e.definition[p].ignoreAmbiguities !== !0 && f.push(p); - }), f.length > 1 && !n9(i, h) && (i.push(h), o.push({ + u !== p && e9(d, h) && e.definition[p].ignoreAmbiguities !== !0 && f.push(p); + }), f.length > 1 && !e9(i, h) && (i.push(h), o.push({ alts: f, path: h })); @@ -74669,7 +74613,7 @@ function tVt(t, e, r, n) { }; }); } -function rVt(t, e, r, n) { +function eVt(t, e, r, n) { const i = gi(t, (a, o, l) => { const u = gt(o, (h) => ({ idx: l, path: h })); return a.concat(u); @@ -74677,7 +74621,7 @@ function rVt(t, e, r, n) { return Ax(lo(i, (a) => { if (e.definition[a.idx].ignoreAmbiguities === !0) return []; - const l = a.idx, u = a.path, h = Yn(i, (d) => e.definition[d.idx].ignoreAmbiguities !== !0 && d.idx < l && Uzt(d.path, u)); + const l = a.idx, u = a.path, h = Yn(i, (d) => e.definition[d.idx].ignoreAmbiguities !== !0 && d.idx < l && zzt(d.path, u)); return gt(h, (d) => { const p = [d.idx + 1, l + 1], g = e.idx === 0 ? "" : e.idx; return { @@ -74695,7 +74639,7 @@ function rVt(t, e, r, n) { }); })); } -function nVt(t, e, r) { +function tVt(t, e, r) { const n = [], i = gt(e, (s) => s.name); return $e(t, (s) => { const a = s.name; @@ -74709,66 +74653,66 @@ function nVt(t, e, r) { } }), n; } -function iVt(t) { - const e = sC(t, { - errMsgProvider: _zt +function rVt(t) { + const e = nC(t, { + errMsgProvider: Czt }), r = {}; return $e(t.rules, (n) => { r[n.name] = n; - }), Azt(r, e.errMsgProvider); + }), Ezt(r, e.errMsgProvider); } -function sVt(t) { - return t = sC(t, { +function nVt(t) { + return t = nC(t, { errMsgProvider: $d - }), Yzt(t.rules, t.tokenTypes, t.errMsgProvider, t.grammarName); + }), Uzt(t.rules, t.tokenTypes, t.errMsgProvider, t.grammarName); } -const i0e = "MismatchedTokenException", s0e = "NoViableAltException", a0e = "EarlyExitException", o0e = "NotAllInputParsedException", l0e = [ +const r0e = "MismatchedTokenException", n0e = "NoViableAltException", i0e = "EarlyExitException", s0e = "NotAllInputParsedException", a0e = [ + r0e, + n0e, i0e, - s0e, - a0e, - o0e + s0e ]; -Object.freeze(l0e); -function Ek(t) { - return pa(l0e, t.name); +Object.freeze(a0e); +function Ck(t) { + return pa(a0e, t.name); } -class EC extends Error { +class TC extends Error { constructor(e, r) { super(e), this.token = r, this.resyncedTokens = [], Object.setPrototypeOf(this, new.target.prototype), Error.captureStackTrace && Error.captureStackTrace(this, this.constructor); } } -class c0e extends EC { +class o0e extends TC { constructor(e, r, n) { - super(e, r), this.previousToken = n, this.name = i0e; + super(e, r), this.previousToken = n, this.name = r0e; } } -class aVt extends EC { +class iVt extends TC { constructor(e, r, n) { - super(e, r), this.previousToken = n, this.name = s0e; + super(e, r), this.previousToken = n, this.name = n0e; } } -class oVt extends EC { +class sVt extends TC { constructor(e, r) { - super(e, r), this.name = o0e; + super(e, r), this.name = s0e; } } -class lVt extends EC { +class aVt extends TC { constructor(e, r, n) { - super(e, r), this.previousToken = n, this.name = a0e; + super(e, r), this.previousToken = n, this.name = i0e; } } -const Q_ = {}, u0e = "InRuleRecoveryException"; -class cVt extends Error { +const q_ = {}, l0e = "InRuleRecoveryException"; +class oVt extends Error { constructor(e) { - super(e), this.name = u0e; + super(e), this.name = l0e; } } -class uVt { +class lVt { initRecoverable(e) { - this.firstAfterRepMap = {}, this.resyncFollows = {}, this.recoveryEnabled = yt(e, "recoveryEnabled") ? e.recoveryEnabled : Ku.recoveryEnabled, this.recoveryEnabled && (this.attemptInRepetitionRecovery = hVt); + this.firstAfterRepMap = {}, this.resyncFollows = {}, this.recoveryEnabled = yt(e, "recoveryEnabled") ? e.recoveryEnabled : Ku.recoveryEnabled, this.recoveryEnabled && (this.attemptInRepetitionRecovery = cVt); } getTokenToInsert(e) { - const r = MI(e, "", NaN, NaN, NaN, NaN, NaN, NaN); + const r = AI(e, "", NaN, NaN, NaN, NaN, NaN, NaN); return r.isInsertedInRecovery = !0, r; } canTokenTypeBeInsertedInRecovery(e) { @@ -74788,7 +74732,7 @@ class uVt { actual: u, previous: d, ruleName: this.getCurrRuleFullName() - }), g = new c0e(p, u, this.LA(0)); + }), g = new o0e(p, u, this.LA(0)); g.resyncedTokens = E2(o), this.SAVE_ERROR(g); }; for (; !l; ) @@ -74816,7 +74760,7 @@ class uVt { const n = this.SKIP_TOKEN(); return this.consumeToken(), n; } - throw new cVt("sad sad panda"); + throw new oVt("sad sad panda"); } canPerformInRuleRecovery(e, r) { return this.canRecoverWithSingleTokenInsertion(e, r) || this.canRecoverWithSingleTokenDeletion(e); @@ -74838,7 +74782,7 @@ class uVt { const e = this.flattenFollowSet(); let r = this.LA(1), n = 2; for (; ; ) { - const i = Xu(e, (s) => jde(r, s)); + const i = Xu(e, (s) => Xde(r, s)); if (i !== void 0) return i; r = this.LA(n), n++; @@ -74846,7 +74790,7 @@ class uVt { } getCurrFollowKey() { if (this.RULE_STACK.length === 1) - return Q_; + return q_; const e = this.getLastExplicitRuleShortName(), r = this.getLastExplicitRuleOccurrenceIndex(), n = this.getPreviousExplicitRuleShortName(); return { ruleName: this.shortRuleNameToFullName(e), @@ -74856,7 +74800,7 @@ class uVt { } buildFullFollowKeyStack() { const e = this.RULE_STACK, r = this.RULE_OCCURRENCE_STACK; - return gt(e, (n, i) => i === 0 ? Q_ : { + return gt(e, (n, i) => i === 0 ? q_ : { ruleName: this.shortRuleNameToFullName(n), idxInCallingRule: r[i], inRule: this.shortRuleNameToFullName(e[i - 1]) @@ -74867,9 +74811,9 @@ class uVt { return Qi(e); } getFollowSetFromFollowKey(e) { - if (e === Q_) + if (e === q_) return [_f]; - const r = e.ruleName + e.idxInCallingRule + zde + e.inRule; + const r = e.ruleName + e.idxInCallingRule + Bde + e.inRule; return this.resyncFollows[r]; } addToResyncTokens(e, r) { @@ -74897,7 +74841,7 @@ class uVt { return gt(this.RULE_STACK, (e) => this.shortRuleNameToFullName(e)); } } -function hVt(t, e, r, n, i, s, a) { +function cVt(t, e, r, n, i, s, a) { const o = this.getKeyForAutomaticLookahead(n, i); let l = this.firstAfterRepMap[o]; if (l === void 0) { @@ -74908,11 +74852,11 @@ function hVt(t, e, r, n, i, s, a) { const f = l.isEndOfRule; this.RULE_STACK.length === 1 && f && u === void 0 && (u = _f, h = 1), !(u === void 0 || h === void 0) && this.shouldInRepetitionRecoveryBeTried(u, h, a) && this.tryInRepetitionRecovery(t, e, r, u); } -const fVt = 4, Qf = 8, h0e = 1 << Qf, f0e = 2 << Qf, i9 = 3 << Qf, s9 = 4 << Qf, a9 = 5 << Qf, J4 = 6 << Qf; -function W_(t, e, r) { +const uVt = 4, Qf = 8, c0e = 1 << Qf, u0e = 2 << Qf, t9 = 3 << Qf, r9 = 4 << Qf, n9 = 5 << Qf, K4 = 6 << Qf; +function Y_(t, e, r) { return r | e | t; } -class II { +class MI { constructor(e) { var r; this.maxLookahead = (r = e == null ? void 0 : e.maxLookahead) !== null && r !== void 0 ? r : Ku.maxLookahead; @@ -74931,32 +74875,32 @@ class II { return r; } validateNoLeftRecursion(e) { - return lo(e, (r) => n0e(r, r, $d)); + return lo(e, (r) => t0e(r, r, $d)); } validateEmptyOrAlternatives(e) { - return lo(e, (r) => Zzt(r, $d)); + return lo(e, (r) => Hzt(r, $d)); } validateAmbiguousAlternationAlternatives(e, r) { - return lo(e, (n) => jzt(n, r, $d)); + return lo(e, (n) => Xzt(n, r, $d)); } validateSomeNonEmptyLookaheadPath(e, r) { - return eVt(e, r, $d); + return Kzt(e, r, $d); } buildLookaheadForAlternation(e) { - return Pzt(e.prodOccurrence, e.rule, e.maxLookahead, e.hasPredicates, e.dynamicTokensEnabled, Bzt); + return Nzt(e.prodOccurrence, e.rule, e.maxLookahead, e.hasPredicates, e.dynamicTokensEnabled, Pzt); } buildLookaheadForOptional(e) { - return $zt(e.prodOccurrence, e.rule, e.maxLookahead, e.dynamicTokensEnabled, DI(e.prodType), Fzt); + return Izt(e.prodOccurrence, e.rule, e.maxLookahead, e.dynamicTokensEnabled, LI(e.prodType), $zt); } } -class dVt { +class hVt { initLooksAhead(e) { - this.dynamicTokensEnabled = yt(e, "dynamicTokensEnabled") ? e.dynamicTokensEnabled : Ku.dynamicTokensEnabled, this.maxLookahead = yt(e, "maxLookahead") ? e.maxLookahead : Ku.maxLookahead, this.lookaheadStrategy = yt(e, "lookaheadStrategy") ? e.lookaheadStrategy : new II({ maxLookahead: this.maxLookahead }), this.lookAheadFuncsCache = /* @__PURE__ */ new Map(); + this.dynamicTokensEnabled = yt(e, "dynamicTokensEnabled") ? e.dynamicTokensEnabled : Ku.dynamicTokensEnabled, this.maxLookahead = yt(e, "maxLookahead") ? e.maxLookahead : Ku.maxLookahead, this.lookaheadStrategy = yt(e, "lookaheadStrategy") ? e.lookaheadStrategy : new MI({ maxLookahead: this.maxLookahead }), this.lookAheadFuncsCache = /* @__PURE__ */ new Map(); } preComputeLookaheadFunctions(e) { $e(e, (r) => { this.TRACE_INIT(`${r.name} Rule Lookahead`, () => { - const { alternation: n, repetition: i, option: s, repetitionMandatory: a, repetitionMandatoryWithSeparator: o, repetitionWithSeparator: l } = gVt(r); + const { alternation: n, repetition: i, option: s, repetitionMandatory: a, repetitionMandatoryWithSeparator: o, repetitionWithSeparator: l } = dVt(r); $e(n, (u) => { const h = u.idx === 0 ? "" : u.idx; this.TRACE_INIT(`${uc(u)}${h}`, () => { @@ -74966,19 +74910,19 @@ class dVt { maxLookahead: u.maxLookahead || this.maxLookahead, hasPredicates: u.hasPredicates, dynamicTokensEnabled: this.dynamicTokensEnabled - }), d = W_(this.fullRuleNameToShort[r.name], h0e, u.idx); + }), d = Y_(this.fullRuleNameToShort[r.name], c0e, u.idx); this.setLaFuncCache(d, f); }); }), $e(i, (u) => { - this.computeLookaheadFunc(r, u.idx, i9, "Repetition", u.maxLookahead, uc(u)); + this.computeLookaheadFunc(r, u.idx, t9, "Repetition", u.maxLookahead, uc(u)); }), $e(s, (u) => { - this.computeLookaheadFunc(r, u.idx, f0e, "Option", u.maxLookahead, uc(u)); + this.computeLookaheadFunc(r, u.idx, u0e, "Option", u.maxLookahead, uc(u)); }), $e(a, (u) => { - this.computeLookaheadFunc(r, u.idx, s9, "RepetitionMandatory", u.maxLookahead, uc(u)); + this.computeLookaheadFunc(r, u.idx, r9, "RepetitionMandatory", u.maxLookahead, uc(u)); }), $e(o, (u) => { - this.computeLookaheadFunc(r, u.idx, J4, "RepetitionMandatoryWithSeparator", u.maxLookahead, uc(u)); + this.computeLookaheadFunc(r, u.idx, K4, "RepetitionMandatoryWithSeparator", u.maxLookahead, uc(u)); }), $e(l, (u) => { - this.computeLookaheadFunc(r, u.idx, a9, "RepetitionWithSeparator", u.maxLookahead, uc(u)); + this.computeLookaheadFunc(r, u.idx, n9, "RepetitionWithSeparator", u.maxLookahead, uc(u)); }); }); }); @@ -74991,13 +74935,13 @@ class dVt { maxLookahead: s || this.maxLookahead, dynamicTokensEnabled: this.dynamicTokensEnabled, prodType: i - }), l = W_(this.fullRuleNameToShort[e.name], n, r); + }), l = Y_(this.fullRuleNameToShort[e.name], n, r); this.setLaFuncCache(l, o); }); } getKeyForAutomaticLookahead(e, r) { const n = this.getLastExplicitRuleShortName(); - return W_(n, e, r); + return Y_(n, e, r); } getLaFuncFromCache(e) { return this.lookAheadFuncsCache.get(e); @@ -75006,7 +74950,7 @@ class dVt { this.lookAheadFuncsCache.set(e, r); } } -class pVt extends um { +class fVt extends um { constructor() { super(...arguments), this.dslMethods = { option: [], @@ -75046,34 +74990,34 @@ class pVt extends um { this.dslMethods.alternation.push(e); } } -const CO = new pVt(); -function gVt(t) { - CO.reset(), t.accept(CO); - const e = CO.dslMethods; - return CO.reset(), e; +const TO = new fVt(); +function dVt(t) { + TO.reset(), t.accept(TO); + const e = TO.dslMethods; + return TO.reset(), e; } -function AW(t, e) { +function CW(t, e) { isNaN(t.startOffset) === !0 ? (t.startOffset = e.startOffset, t.endOffset = e.endOffset) : t.endOffset < e.endOffset && (t.endOffset = e.endOffset); } -function LW(t, e) { +function EW(t, e) { isNaN(t.startOffset) === !0 ? (t.startOffset = e.startOffset, t.startColumn = e.startColumn, t.startLine = e.startLine, t.endOffset = e.endOffset, t.endColumn = e.endColumn, t.endLine = e.endLine) : t.endOffset < e.endOffset && (t.endOffset = e.endOffset, t.endColumn = e.endColumn, t.endLine = e.endLine); } -function mVt(t, e, r) { +function pVt(t, e, r) { t.children[r] === void 0 ? t.children[r] = [e] : t.children[r].push(e); } -function vVt(t, e, r) { +function gVt(t, e, r) { t.children[e] === void 0 ? t.children[e] = [r] : t.children[e].push(r); } -const yVt = "name"; -function d0e(t, e) { - Object.defineProperty(t, yVt, { +const mVt = "name"; +function h0e(t, e) { + Object.defineProperty(t, mVt, { enumerable: !1, configurable: !0, writable: !1, value: e }); } -function bVt(t, e) { +function vVt(t, e) { const r = ki(t), n = r.length; for (let i = 0; i < n; i++) { const s = r[i], a = t[s], o = a.length; @@ -75083,17 +75027,17 @@ function bVt(t, e) { } } } -function xVt(t, e) { +function yVt(t, e) { const r = function() { }; - d0e(r, t + "BaseSemantics"); + h0e(r, t + "BaseSemantics"); const n = { visit: function(i, s) { if (Sr(i) && (i = i[0]), !qr(i)) return this[i.name](i.children, s); }, validateVisitor: function() { - const i = OVt(this, e); + const i = xVt(this, e); if (!$r(i)) { const s = gt(i, (a) => a.msg); throw Error(`Errors Detected in CST Visitor <${this.constructor.name}>: @@ -75106,38 +75050,38 @@ function xVt(t, e) { }; return r.prototype = n, r.prototype.constructor = r, r._RULE_NAMES = e, r; } -function wVt(t, e, r) { +function bVt(t, e, r) { const n = function() { }; - d0e(n, t + "BaseSemanticsWithDefaults"); + h0e(n, t + "BaseSemanticsWithDefaults"); const i = Object.create(r.prototype); return $e(e, (s) => { - i[s] = bVt; + i[s] = vVt; }), n.prototype = i, n.prototype.constructor = n, n; } -var o9; +var i9; (function(t) { t[t.REDUNDANT_METHOD = 0] = "REDUNDANT_METHOD", t[t.MISSING_METHOD = 1] = "MISSING_METHOD"; -})(o9 || (o9 = {})); -function OVt(t, e) { - return kVt(t, e); +})(i9 || (i9 = {})); +function xVt(t, e) { + return wVt(t, e); } -function kVt(t, e) { +function wVt(t, e) { const r = Yn(e, (i) => Ho(t[i]) === !1), n = gt(r, (i) => ({ msg: `Missing visitor method: <${i}> on ${t.constructor.name} CST Visitor.`, - type: o9.MISSING_METHOD, + type: i9.MISSING_METHOD, methodName: i })); return Ax(n); } -class SVt { +class OVt { initTreeBuilder(e) { if (this.CST_STACK = [], this.outputCst = e.outputCst, this.nodeLocationTracking = yt(e, "nodeLocationTracking") ? e.nodeLocationTracking : Ku.nodeLocationTracking, !this.outputCst) this.cstInvocationStateUpdate = vi, this.cstFinallyStateUpdate = vi, this.cstPostTerminal = vi, this.cstPostNonTerminal = vi, this.cstPostRule = vi; else if (/full/i.test(this.nodeLocationTracking)) - this.recoveryEnabled ? (this.setNodeLocationFromToken = LW, this.setNodeLocationFromNode = LW, this.cstPostRule = vi, this.setInitialNodeLocation = this.setInitialNodeLocationFullRecovery) : (this.setNodeLocationFromToken = vi, this.setNodeLocationFromNode = vi, this.cstPostRule = this.cstPostRuleFull, this.setInitialNodeLocation = this.setInitialNodeLocationFullRegular); + this.recoveryEnabled ? (this.setNodeLocationFromToken = EW, this.setNodeLocationFromNode = EW, this.cstPostRule = vi, this.setInitialNodeLocation = this.setInitialNodeLocationFullRecovery) : (this.setNodeLocationFromToken = vi, this.setNodeLocationFromNode = vi, this.cstPostRule = this.cstPostRuleFull, this.setInitialNodeLocation = this.setInitialNodeLocationFullRegular); else if (/onlyOffset/i.test(this.nodeLocationTracking)) - this.recoveryEnabled ? (this.setNodeLocationFromToken = AW, this.setNodeLocationFromNode = AW, this.cstPostRule = vi, this.setInitialNodeLocation = this.setInitialNodeLocationOnlyOffsetRecovery) : (this.setNodeLocationFromToken = vi, this.setNodeLocationFromNode = vi, this.cstPostRule = this.cstPostRuleOnlyOffset, this.setInitialNodeLocation = this.setInitialNodeLocationOnlyOffsetRegular); + this.recoveryEnabled ? (this.setNodeLocationFromToken = CW, this.setNodeLocationFromNode = CW, this.cstPostRule = vi, this.setInitialNodeLocation = this.setInitialNodeLocationOnlyOffsetRecovery) : (this.setNodeLocationFromToken = vi, this.setNodeLocationFromNode = vi, this.cstPostRule = this.cstPostRuleOnlyOffset, this.setInitialNodeLocation = this.setInitialNodeLocationOnlyOffsetRegular); else if (/none/i.test(this.nodeLocationTracking)) this.setNodeLocationFromToken = vi, this.setNodeLocationFromNode = vi, this.cstPostRule = vi, this.setInitialNodeLocation = vi; else @@ -75196,22 +75140,22 @@ class SVt { } cstPostTerminal(e, r) { const n = this.CST_STACK[this.CST_STACK.length - 1]; - mVt(n, r, e), this.setNodeLocationFromToken(n.location, r); + pVt(n, r, e), this.setNodeLocationFromToken(n.location, r); } cstPostNonTerminal(e, r) { const n = this.CST_STACK[this.CST_STACK.length - 1]; - vVt(n, r, e), this.setNodeLocationFromNode(n.location, e.location); + gVt(n, r, e), this.setNodeLocationFromNode(n.location, e.location); } getBaseCstVisitorConstructor() { if (qr(this.baseCstVisitorConstructor)) { - const e = xVt(this.className, ki(this.gastProductionsCache)); + const e = yVt(this.className, ki(this.gastProductionsCache)); return this.baseCstVisitorConstructor = e, e; } return this.baseCstVisitorConstructor; } getBaseCstVisitorConstructorWithDefaults() { if (qr(this.baseCstVisitorWithDefaultsConstructor)) { - const e = wVt(this.className, ki(this.gastProductionsCache), this.getBaseCstVisitorConstructor()); + const e = bVt(this.className, ki(this.gastProductionsCache), this.getBaseCstVisitorConstructor()); return this.baseCstVisitorWithDefaultsConstructor = e, e; } return this.baseCstVisitorWithDefaultsConstructor; @@ -75229,7 +75173,7 @@ class SVt { return e[e.length - 1]; } } -class TVt { +class kVt { initLexerAdapter() { this.tokVector = [], this.tokVectorLength = 0, this.currIdx = -1; } @@ -75242,11 +75186,11 @@ class TVt { return this.tokVector; } SKIP_TOKEN() { - return this.currIdx <= this.tokVector.length - 2 ? (this.consumeToken(), this.LA(1)) : Ak; + return this.currIdx <= this.tokVector.length - 2 ? (this.consumeToken(), this.LA(1)) : _k; } LA(e) { const r = this.currIdx + e; - return r < 0 || this.tokVectorLength <= r ? Ak : this.tokVector[r]; + return r < 0 || this.tokVectorLength <= r ? _k : this.tokVector[r]; } consumeToken() { this.currIdx++; @@ -75267,7 +75211,7 @@ class TVt { return this.exportLexerState(); } } -class CVt { +class SVt { ACTION(e) { return e.call(this); } @@ -75529,7 +75473,7 @@ class CVt { AT_LEAST_ONE_SEP9(e) { this.atLeastOneSepFirstInternal(9, e); } - RULE(e, r, n = Lk) { + RULE(e, r, n = Ak) { if (pa(this.definedRulesNames, e)) { const a = { message: $d.buildDuplicateRuleNameError({ @@ -75545,8 +75489,8 @@ class CVt { const i = this.defineRule(e, r, n); return this[e] = i, i; } - OVERRIDE_RULE(e, r, n = Lk) { - const i = Xzt(e, this.definedRulesNames, this.className); + OVERRIDE_RULE(e, r, n = Ak) { + const i = Gzt(e, this.definedRulesNames, this.className); this.definitionErrors = this.definitionErrors.concat(i); const s = this.defineRule(e, r, n); return this[e] = s, s; @@ -75558,7 +75502,7 @@ class CVt { try { return e.apply(this, r), !0; } catch (i) { - if (Ek(i)) + if (Ck(i)) return !1; throw i; } finally { @@ -75570,12 +75514,12 @@ class CVt { return this.gastProductionsCache; } getSerializedGastProductions() { - return NFt(Kr(this.gastProductionsCache)); + return MFt(Kr(this.gastProductionsCache)); } } -class EVt { +class TVt { initRecognizerEngine(e, r) { - if (this.className = this.constructor.name, this.shortRuleNameToFull = {}, this.fullRuleNameToShort = {}, this.ruleShortNameIdx = 256, this.tokenMatcher = Ck, this.subruleIdx = 0, this.definedRulesNames = [], this.tokensMap = {}, this.isBackTrackingStack = [], this.RULE_STACK = [], this.RULE_OCCURRENCE_STACK = [], this.gastProductionsCache = {}, yt(r, "serializedGrammar")) + if (this.className = this.constructor.name, this.shortRuleNameToFull = {}, this.fullRuleNameToShort = {}, this.ruleShortNameIdx = 256, this.tokenMatcher = Tk, this.subruleIdx = 0, this.definedRulesNames = [], this.tokensMap = {}, this.isBackTrackingStack = [], this.RULE_STACK = [], this.RULE_OCCURRENCE_STACK = [], this.gastProductionsCache = {}, yt(r, "serializedGrammar")) throw Error(`The Parser's configuration can no longer contain a property. See: https://chevrotain.io/docs/changes/BREAKING_CHANGES.html#_6-0-0 For Further details.`); @@ -75591,8 +75535,8 @@ class EVt { } if (Sr(e)) this.tokensMap = gi(e, (s, a) => (s[a.name] = a, s), {}); - else if (yt(e, "modes") && Tl(Qi(Kr(e.modes)), Szt)) { - const s = Qi(Kr(e.modes)), a = oI(s); + else if (yt(e, "modes") && Tl(Qi(Kr(e.modes)), Ozt)) { + const s = Qi(Kr(e.modes)), a = iI(s); this.tokensMap = gi(a, (o, l) => (o[l.name] = l, o), {}); } else if (Pa(e)) this.tokensMap = Di(e); @@ -75600,13 +75544,13 @@ class EVt { throw new Error(" argument must be An Array of Token constructors, A dictionary of Token constructors or an IMultiModeLexerDefinition"); this.tokensMap.EOF = _f; const n = yt(e, "modes") ? Qi(Kr(e.modes)) : Kr(e), i = Tl(n, (s) => $r(s.categoryMatches)); - this.tokenMatcher = i ? Ck : Ix, Px(Kr(this.tokensMap)); + this.tokenMatcher = i ? Tk : Ix, Px(Kr(this.tokensMap)); } defineRule(e, r, n) { if (this.selfAnalysisDone) throw Error(`Grammar rule <${e}> may not be defined after the 'performSelfAnalysis' method has been called' Make sure that all grammar rule definitions are done before 'performSelfAnalysis' is called.`); - const i = yt(n, "resyncEnabled") ? n.resyncEnabled : Lk.resyncEnabled, s = yt(n, "recoveryValueFunc") ? n.recoveryValueFunc : Lk.recoveryValueFunc, a = this.ruleShortNameIdx << fVt + Qf; + const i = yt(n, "resyncEnabled") ? n.resyncEnabled : Ak.resyncEnabled, s = yt(n, "recoveryValueFunc") ? n.recoveryValueFunc : Ak.recoveryValueFunc, a = this.ruleShortNameIdx << uVt + Qf; this.ruleShortNameIdx++, this.shortRuleNameToFull[a] = e, this.fullRuleNameToShort[e] = a; let o; return this.outputCst === !0 ? o = function(...h) { @@ -75631,7 +75575,7 @@ Make sure that all grammar rule definitions are done before 'performSelfAnalysis } invokeRuleCatch(e, r, n) { const i = this.RULE_STACK.length === 1, s = r && !this.isBackTracking() && this.recoveryEnabled; - if (Ek(e)) { + if (Ck(e)) { const a = e; if (s) { const o = this.findReSyncTokenType(); @@ -75657,7 +75601,7 @@ Make sure that all grammar rule definitions are done before 'performSelfAnalysis throw e; } optionInternal(e, r) { - const n = this.getKeyForAutomaticLookahead(f0e, r); + const n = this.getKeyForAutomaticLookahead(u0e, r); return this.optionInternalLogic(e, r, n); } optionInternalLogic(e, r, n) { @@ -75675,7 +75619,7 @@ Make sure that all grammar rule definitions are done before 'performSelfAnalysis return s.call(this); } atLeastOneInternal(e, r) { - const n = this.getKeyForAutomaticLookahead(s9, e); + const n = this.getKeyForAutomaticLookahead(r9, e); return this.atLeastOneInternalLogic(e, r, n); } atLeastOneInternalLogic(e, r, n) { @@ -75695,10 +75639,10 @@ Make sure that all grammar rule definitions are done before 'performSelfAnalysis a = this.doSingleRepetition(s); } else throw this.raiseEarlyExitException(e, Dn.REPETITION_MANDATORY, r.ERR_MSG); - this.attemptInRepetitionRecovery(this.atLeastOneInternal, [e, r], i, s9, e, Nzt); + this.attemptInRepetitionRecovery(this.atLeastOneInternal, [e, r], i, r9, e, Mzt); } atLeastOneSepFirstInternal(e, r) { - const n = this.getKeyForAutomaticLookahead(J4, e); + const n = this.getKeyForAutomaticLookahead(K4, e); this.atLeastOneSepFirstInternalLogic(e, r, n); } atLeastOneSepFirstInternalLogic(e, r, n) { @@ -75713,13 +75657,13 @@ Make sure that all grammar rule definitions are done before 'performSelfAnalysis s, o, i, - CW - ], o, J4, e, CW); + kW + ], o, K4, e, kW); } else throw this.raiseEarlyExitException(e, Dn.REPETITION_MANDATORY_WITH_SEPARATOR, r.ERR_MSG); } manyInternal(e, r) { - const n = this.getKeyForAutomaticLookahead(i9, e); + const n = this.getKeyForAutomaticLookahead(t9, e); return this.manyInternalLogic(e, r, n); } manyInternalLogic(e, r, n) { @@ -75740,14 +75684,14 @@ Make sure that all grammar rule definitions are done before 'performSelfAnalysis this.manyInternal, [e, r], i, - i9, + t9, e, - Dzt, + Rzt, a ); } manySepFirstInternal(e, r) { - const n = this.getKeyForAutomaticLookahead(a9, e); + const n = this.getKeyForAutomaticLookahead(n9, e); this.manySepFirstInternalLogic(e, r, n); } manySepFirstInternalLogic(e, r, n) { @@ -75762,8 +75706,8 @@ Make sure that all grammar rule definitions are done before 'performSelfAnalysis s, o, i, - TW - ], o, a9, e, TW); + OW + ], o, n9, e, OW); } } repetitionSepSecondInternal(e, r, n, i, s) { @@ -75775,14 +75719,14 @@ Make sure that all grammar rule definitions are done before 'performSelfAnalysis n, i, s - ], n, J4, e, s); + ], n, K4, e, s); } doSingleRepetition(e) { const r = this.getLexerPosition(); return e.call(this), this.getLexerPosition() > r; } orInternal(e, r) { - const n = this.getKeyForAutomaticLookahead(h0e, r), i = Sr(e) ? e : e.DEF, a = this.getLaFuncFromCache(n).call(this, i); + const n = this.getKeyForAutomaticLookahead(c0e, r), i = Sr(e) ? e : e.DEF, a = this.getLaFuncFromCache(n).call(this, i); if (a !== void 0) return i[a].ALT.call(this); this.raiseNoAltException(r, e.ERR_MSG); @@ -75793,7 +75737,7 @@ Make sure that all grammar rule definitions are done before 'performSelfAnalysis firstRedundant: e, ruleName: this.getCurrRuleFullName() }); - this.SAVE_ERROR(new oVt(r, e)); + this.SAVE_ERROR(new sVt(r, e)); } } subruleInternal(e, r, n) { @@ -75806,7 +75750,7 @@ Make sure that all grammar rule definitions are done before 'performSelfAnalysis } } subruleInternalError(e, r, n) { - throw Ek(e) && e.partialCstResult !== void 0 && (this.cstPostNonTerminal(e.partialCstResult, r !== void 0 && r.LABEL !== void 0 ? r.LABEL : n), delete e.partialCstResult), e; + throw Ck(e) && e.partialCstResult !== void 0 && (this.cstPostNonTerminal(e.partialCstResult, r !== void 0 && r.LABEL !== void 0 ? r.LABEL : n), delete e.partialCstResult), e; } consumeInternal(e, r, n) { let i; @@ -75826,7 +75770,7 @@ Make sure that all grammar rule definitions are done before 'performSelfAnalysis actual: r, previous: s, ruleName: this.getCurrRuleFullName() - }), this.SAVE_ERROR(new c0e(i, r, s)); + }), this.SAVE_ERROR(new o0e(i, r, s)); } consumeInternalRecovery(e, r, n) { if (this.recoveryEnabled && n.name === "MismatchedTokenException" && !this.isBackTracking()) { @@ -75834,7 +75778,7 @@ Make sure that all grammar rule definitions are done before 'performSelfAnalysis try { return this.tryInRuleRecovery(e, i); } catch (s) { - throw s.name === u0e ? n : s; + throw s.name === l0e ? n : s; } } else throw n; @@ -75871,12 +75815,12 @@ Make sure that all grammar rule definitions are done before 'performSelfAnalysis this.resetLexerState(), this.subruleIdx = 0, this.isBackTrackingStack = [], this.errors = [], this.RULE_STACK = [], this.CST_STACK = [], this.RULE_OCCURRENCE_STACK = []; } } -class _Vt { +class CVt { initErrorHandler(e) { this._errors = [], this.errorMessageProvider = yt(e, "errorMessageProvider") ? e.errorMessageProvider : Ku.errorMessageProvider; } SAVE_ERROR(e) { - if (Ek(e)) + if (Ck(e)) return e.context = { ruleStack: this.getHumanReadableRuleStack(), ruleOccurrenceStack: Di(this.RULE_OCCURRENCE_STACK) @@ -75890,7 +75834,7 @@ class _Vt { this._errors = e; } raiseEarlyExitException(e, r, n) { - const i = this.getCurrRuleFullName(), s = this.getGAstProductions()[i], o = CC(e, s, r, this.maxLookahead)[0], l = []; + const i = this.getCurrRuleFullName(), s = this.getGAstProductions()[i], o = SC(e, s, r, this.maxLookahead)[0], l = []; for (let h = 1; h <= this.maxLookahead; h++) l.push(this.LA(h)); const u = this.errorMessageProvider.buildEarlyExitMessage({ @@ -75900,10 +75844,10 @@ class _Vt { customUserDescription: n, ruleName: i }); - throw this.SAVE_ERROR(new lVt(u, this.LA(1), this.LA(0))); + throw this.SAVE_ERROR(new aVt(u, this.LA(1), this.LA(0))); } raiseNoAltException(e, r) { - const n = this.getCurrRuleFullName(), i = this.getGAstProductions()[n], s = TC(e, i, this.maxLookahead), a = []; + const n = this.getCurrRuleFullName(), i = this.getGAstProductions()[n], s = kC(e, i, this.maxLookahead), a = []; for (let u = 1; u <= this.maxLookahead; u++) a.push(this.LA(u)); const o = this.LA(0), l = this.errorMessageProvider.buildNoViableAltMessage({ @@ -75913,31 +75857,31 @@ class _Vt { customUserDescription: r, ruleName: this.getCurrRuleFullName() }); - throw this.SAVE_ERROR(new aVt(l, this.LA(1), o)); + throw this.SAVE_ERROR(new iVt(l, this.LA(1), o)); } } -class AVt { +class EVt { initContentAssist() { } computeContentAssist(e, r) { const n = this.gastProductionsCache[e]; if (qr(n)) throw Error(`Rule ->${e}<- does not exist in this grammar.`); - return Kde([n], r, this.tokenMatcher, this.maxLookahead); + return Zde([n], r, this.tokenMatcher, this.maxLookahead); } getNextPossibleTokenTypes(e) { const r = Bl(e.ruleStack), i = this.getGAstProductions()[r]; - return new Mzt(i, e).startWalking(); + return new Lzt(i, e).startWalking(); } } -const _C = { +const CC = { description: "This Object indicates the Parser is during Recording Phase" }; -Object.freeze(_C); -const RW = !0, MW = Math.pow(2, Qf) - 1, p0e = Zde({ name: "RECORDING_PHASE_TOKEN", pattern: Na.NA }); -Px([p0e]); -const g0e = MI( - p0e, +Object.freeze(CC); +const _W = !0, AW = Math.pow(2, Qf) - 1, f0e = Hde({ name: "RECORDING_PHASE_TOKEN", pattern: Na.NA }); +Px([f0e]); +const d0e = AI( + f0e, `This IToken indicates the Parser is in Recording Phase See: https://chevrotain.io/docs/guide/internals.html#grammar-recording for details`, -1, @@ -75947,13 +75891,13 @@ const g0e = MI( -1, -1 ); -Object.freeze(g0e); -const LVt = { +Object.freeze(d0e); +const _Vt = { name: `This CSTNode indicates the Parser is in Recording Phase See: https://chevrotain.io/docs/guide/internals.html#grammar-recording for details`, children: {} }; -class RVt { +class AVt { initGastRecorder(e) { this.recordingProdStack = [], this.RECORDING_PHASE = !1; } @@ -76010,7 +75954,7 @@ class RVt { return () => !0; } LA_RECORD(e) { - return Ak; + return _k; } topLevelRuleRecord(e, r) { try { @@ -76035,20 +75979,20 @@ class RVt { nv.call(this, vo, r, e); } atLeastOneSepFirstInternalRecord(e, r) { - nv.call(this, yo, r, e, RW); + nv.call(this, yo, r, e, _W); } manyInternalRecord(e, r) { nv.call(this, Un, r, e); } manySepFirstInternalRecord(e, r) { - nv.call(this, qa, r, e, RW); + nv.call(this, qa, r, e, _W); } orInternalRecord(e, r) { - return MVt.call(this, e, r); + return LVt.call(this, e, r); } subruleInternalRecord(e, r, n) { - if (_k(r), !e || yt(e, "ruleName") === !1) { - const o = new Error(` argument is invalid expecting a Parser method reference but got: <${JSON.stringify(e)}> + if (Ek(r), !e || yt(e, "ruleName") === !1) { + const o = new Error(` argument is invalid expecting a Parser method reference but got: <${JSON.stringify(e)}> inside top level rule: <${this.recordingProdStack[0].name}>`); throw o.KNOWN_RECORDER_ERROR = !0, o; } @@ -76058,11 +76002,11 @@ class RVt { label: n == null ? void 0 : n.LABEL, referencedRule: void 0 }); - return i.definition.push(a), this.outputCst ? LVt : _C; + return i.definition.push(a), this.outputCst ? _Vt : CC; } consumeInternalRecord(e, r, n) { - if (_k(r), !Hde(e)) { - const a = new Error(` argument is invalid expecting a TokenType reference but got: <${JSON.stringify(e)}> + if (Ek(r), !Wde(e)) { + const a = new Error(` argument is invalid expecting a TokenType reference but got: <${JSON.stringify(e)}> inside top level rule: <${this.recordingProdStack[0].name}>`); throw a.KNOWN_RECORDER_ERROR = !0, a; } @@ -76071,41 +76015,41 @@ class RVt { terminalType: e, label: n == null ? void 0 : n.LABEL }); - return i.definition.push(s), g0e; + return i.definition.push(s), d0e; } } function nv(t, e, r, n = !1) { - _k(r); + Ek(r); const i = Bc(this.recordingProdStack), s = Ho(e) ? e : e.DEF, a = new t({ definition: [], idx: r }); - return n && (a.separator = e.SEP), yt(e, "MAX_LOOKAHEAD") && (a.maxLookahead = e.MAX_LOOKAHEAD), this.recordingProdStack.push(a), s.call(this), i.definition.push(a), this.recordingProdStack.pop(), _C; + return n && (a.separator = e.SEP), yt(e, "MAX_LOOKAHEAD") && (a.maxLookahead = e.MAX_LOOKAHEAD), this.recordingProdStack.push(a), s.call(this), i.definition.push(a), this.recordingProdStack.pop(), CC; } -function MVt(t, e) { - _k(e); +function LVt(t, e) { + Ek(e); const r = Bc(this.recordingProdStack), n = Sr(t) === !1, i = n === !1 ? t : t.DEF, s = new Ya({ definition: [], idx: e, ignoreAmbiguities: n && t.IGNORE_AMBIGUITIES === !0 }); yt(t, "MAX_LOOKAHEAD") && (s.maxLookahead = t.MAX_LOOKAHEAD); - const a = Yhe(i, (o) => Ho(o.GATE)); + const a = Uhe(i, (o) => Ho(o.GATE)); return s.hasPredicates = a, r.definition.push(s), $e(i, (o) => { const l = new Ba({ definition: [] }); s.definition.push(l), yt(o, "IGNORE_AMBIGUITIES") ? l.ignoreAmbiguities = o.IGNORE_AMBIGUITIES : yt(o, "GATE") && (l.ignoreAmbiguities = !0), this.recordingProdStack.push(l), o.ALT.call(this), this.recordingProdStack.pop(); - }), _C; + }), CC; } -function DW(t) { +function LW(t) { return t === 0 ? "" : `${t}`; } -function _k(t) { - if (t < 0 || t > MW) { +function Ek(t) { + if (t < 0 || t > AW) { const e = new Error( `Invalid DSL Method idx value: <${t}> - Idx value must be a none negative value smaller than ${MW + 1}` + Idx value must be a none negative value smaller than ${AW + 1}` ); throw e.KNOWN_RECORDER_ERROR = !0, e; } } -class DVt { +class RVt { initPerformanceTracer(e) { if (yt(e, "traceInitPerf")) { const r = e.traceInitPerf, n = typeof r == "number"; @@ -76119,13 +76063,13 @@ class DVt { this.traceInitIndent++; const n = new Array(this.traceInitIndent + 1).join(" "); this.traceInitIndent < this.traceInitMaxIdent && console.log(`${n}--> <${e}>`); - const { time: i, value: s } = Bde(r), a = i > 10 ? console.warn : console.log; + const { time: i, value: s } = Pde(r), a = i > 10 ? console.warn : console.log; return this.traceInitIndent < this.traceInitMaxIdent && a(`${n}<-- <${e}> time: ${i}ms`), this.traceInitIndent--, s; } else return r(); } } -function NVt(t, e) { +function MVt(t, e) { e.forEach((r) => { const n = r.prototype; Object.getOwnPropertyNames(n).forEach((i) => { @@ -76136,8 +76080,8 @@ function NVt(t, e) { }); }); } -const Ak = MI(_f, "", NaN, NaN, NaN, NaN, NaN, NaN); -Object.freeze(Ak); +const _k = AI(_f, "", NaN, NaN, NaN, NaN, NaN, NaN); +Object.freeze(_k); const Ku = Object.freeze({ recoveryEnabled: !1, maxLookahead: 3, @@ -76147,7 +76091,7 @@ const Ku = Object.freeze({ nodeLocationTracking: "none", traceInitPerf: !1, skipValidations: !1 -}), Lk = Object.freeze({ +}), Ak = Object.freeze({ recoveryValueFunc: () => { }, resyncEnabled: !0 @@ -76156,7 +76100,7 @@ var ha; (function(t) { t[t.INVALID_RULE_NAME = 0] = "INVALID_RULE_NAME", t[t.DUPLICATE_RULE_NAME = 1] = "DUPLICATE_RULE_NAME", t[t.INVALID_RULE_OVERRIDE = 2] = "INVALID_RULE_OVERRIDE", t[t.DUPLICATE_PRODUCTIONS = 3] = "DUPLICATE_PRODUCTIONS", t[t.UNRESOLVED_SUBRULE_REF = 4] = "UNRESOLVED_SUBRULE_REF", t[t.LEFT_RECURSION = 5] = "LEFT_RECURSION", t[t.NONE_LAST_EMPTY_ALT = 6] = "NONE_LAST_EMPTY_ALT", t[t.AMBIGUOUS_ALTS = 7] = "AMBIGUOUS_ALTS", t[t.CONFLICT_TOKENS_RULES_NAMESPACE = 8] = "CONFLICT_TOKENS_RULES_NAMESPACE", t[t.INVALID_TOKEN_NAME = 9] = "INVALID_TOKEN_NAME", t[t.NO_NON_EMPTY_LOOKAHEAD = 10] = "NO_NON_EMPTY_LOOKAHEAD", t[t.AMBIGUOUS_PREFIX_ALTS = 11] = "AMBIGUOUS_PREFIX_ALTS", t[t.TOO_MANY_ALTS = 12] = "TOO_MANY_ALTS", t[t.CUSTOM_LOOKAHEAD_VALIDATION = 13] = "CUSTOM_LOOKAHEAD_VALIDATION"; })(ha || (ha = {})); -function NW(t = void 0) { +function RW(t = void 0) { return function() { return t; }; @@ -76171,7 +76115,7 @@ class $x { this.selfAnalysisDone = !0; const r = this.className; this.TRACE_INIT("toFastProps", () => { - Fde(this); + $de(this); }), this.TRACE_INIT("Grammar Recording", () => { try { this.enableRecording(), $e(this.definedRulesNames, (i) => { @@ -76187,17 +76131,17 @@ class $x { }); let n = []; if (this.TRACE_INIT("Grammar Resolving", () => { - n = iVt({ + n = rVt({ rules: Kr(this.gastProductionsCache) }), this.definitionErrors = this.definitionErrors.concat(n); }), this.TRACE_INIT("Grammar Validations", () => { if ($r(n) && this.skipValidations === !1) { - const i = sVt({ + const i = nVt({ rules: Kr(this.gastProductionsCache), tokenTypes: Kr(this.tokensMap), errMsgProvider: $d, grammarName: r - }), s = qzt({ + }), s = Vzt({ lookaheadStrategy: this.lookaheadStrategy, rules: Kr(this.gastProductionsCache), tokenTypes: Kr(this.tokensMap), @@ -76206,7 +76150,7 @@ class $x { this.definitionErrors = this.definitionErrors.concat(i, s); } }), $r(this.definitionErrors) && (this.recoveryEnabled && this.TRACE_INIT("computeAllProdsFollows", () => { - const i = VFt(Kr(this.gastProductionsCache)); + const i = FFt(Kr(this.gastProductionsCache)); this.resyncFollows = i; }), this.TRACE_INIT("ComputeLookaheadFunctions", () => { var i, s; @@ -76232,19 +76176,19 @@ class $x { } } $x.DEFER_DEFINITION_ERRORS_HANDLING = !1; -NVt($x, [ - uVt, - dVt, - SVt, +MVt($x, [ + lVt, + hVt, + OVt, + kVt, TVt, - EVt, + SVt, CVt, - _Vt, + EVt, AVt, - RVt, - DVt + RVt ]); -class IVt extends $x { +class DVt extends $x { constructor(e, r = Ku) { const n = Di(r); n.outputCst = !1, super(e, n); @@ -76253,8 +76197,8 @@ class IVt extends $x { function m1(t, e, r) { return `${t.name}_${e}_${r}`; } -const Af = 1, PVt = 2, m0e = 4, v0e = 5, Bx = 7, $Vt = 8, BVt = 9, FVt = 10, zVt = 11, y0e = 12; -class PI { +const Af = 1, NVt = 2, p0e = 4, g0e = 5, Bx = 7, IVt = 8, PVt = 9, $Vt = 10, BVt = 11, m0e = 12; +class DI { constructor(e) { this.target = e; } @@ -76262,12 +76206,12 @@ class PI { return !1; } } -class $I extends PI { +class NI extends DI { constructor(e, r) { super(e), this.tokenType = r; } } -class b0e extends PI { +class v0e extends DI { constructor(e) { super(e); } @@ -76275,7 +76219,7 @@ class b0e extends PI { return !0; } } -class BI extends PI { +class II extends DI { constructor(e, r, n) { super(e), this.rule = r, this.followState = n; } @@ -76283,7 +76227,7 @@ class BI extends PI { return !0; } } -function VVt(t) { +function FVt(t) { const e = { decisionMap: {}, decisionStates: [], @@ -76291,109 +76235,109 @@ function VVt(t) { ruleToStopState: /* @__PURE__ */ new Map(), states: [] }; - UVt(e, t); + zVt(e, t); const r = t.length; for (let n = 0; n < r; n++) { const i = t[n], s = rp(e, i, i); - s !== void 0 && JVt(e, i, s); + s !== void 0 && jVt(e, i, s); } return e; } -function UVt(t, e) { +function zVt(t, e) { const r = e.length; for (let n = 0; n < r; n++) { const i = e[n], s = Wi(t, i, void 0, { - type: PVt + type: NVt }), a = Wi(t, i, void 0, { type: Bx }); s.stop = a, t.ruleToStartState.set(i, s), t.ruleToStopState.set(i, a); } } -function x0e(t, e, r) { - return r instanceof wn ? FI(t, e, r.terminalType, r) : r instanceof ua ? KVt(t, e, r) : r instanceof Ya ? GVt(t, e, r) : r instanceof fs ? HVt(t, e, r) : r instanceof Un ? qVt(t, e, r) : r instanceof qa ? YVt(t, e, r) : r instanceof vo ? QVt(t, e, r) : r instanceof yo ? WVt(t, e, r) : rp(t, e, r); +function y0e(t, e, r) { + return r instanceof wn ? PI(t, e, r.terminalType, r) : r instanceof ua ? ZVt(t, e, r) : r instanceof Ya ? QVt(t, e, r) : r instanceof fs ? WVt(t, e, r) : r instanceof Un ? VVt(t, e, r) : r instanceof qa ? UVt(t, e, r) : r instanceof vo ? qVt(t, e, r) : r instanceof yo ? YVt(t, e, r) : rp(t, e, r); } -function qVt(t, e, r) { +function VVt(t, e, r) { const n = Wi(t, e, r, { - type: v0e + type: g0e }); Wf(t, n); const i = hm(t, e, n, r, rp(t, e, r)); - return O0e(t, e, r, i); + return x0e(t, e, r, i); } -function YVt(t, e, r) { +function UVt(t, e, r) { const n = Wi(t, e, r, { - type: v0e + type: g0e }); Wf(t, n); - const i = hm(t, e, n, r, rp(t, e, r)), s = FI(t, e, r.separator, r); - return O0e(t, e, r, i, s); + const i = hm(t, e, n, r, rp(t, e, r)), s = PI(t, e, r.separator, r); + return x0e(t, e, r, i, s); } -function QVt(t, e, r) { +function qVt(t, e, r) { const n = Wi(t, e, r, { - type: m0e + type: p0e }); Wf(t, n); const i = hm(t, e, n, r, rp(t, e, r)); - return w0e(t, e, r, i); + return b0e(t, e, r, i); } -function WVt(t, e, r) { +function YVt(t, e, r) { const n = Wi(t, e, r, { - type: m0e + type: p0e }); Wf(t, n); - const i = hm(t, e, n, r, rp(t, e, r)), s = FI(t, e, r.separator, r); - return w0e(t, e, r, i, s); + const i = hm(t, e, n, r, rp(t, e, r)), s = PI(t, e, r.separator, r); + return b0e(t, e, r, i, s); } -function GVt(t, e, r) { +function QVt(t, e, r) { const n = Wi(t, e, r, { type: Af }); Wf(t, n); - const i = gt(r.definition, (a) => x0e(t, e, a)); + const i = gt(r.definition, (a) => y0e(t, e, a)); return hm(t, e, n, r, ...i); } -function HVt(t, e, r) { +function WVt(t, e, r) { const n = Wi(t, e, r, { type: Af }); Wf(t, n); const i = hm(t, e, n, r, rp(t, e, r)); - return XVt(t, e, r, i); + return GVt(t, e, r, i); } function rp(t, e, r) { - const n = Yn(gt(r.definition, (i) => x0e(t, e, i)), (i) => i !== void 0); - return n.length === 1 ? n[0] : n.length === 0 ? void 0 : jVt(t, n); + const n = Yn(gt(r.definition, (i) => y0e(t, e, i)), (i) => i !== void 0); + return n.length === 1 ? n[0] : n.length === 0 ? void 0 : XVt(t, n); } -function w0e(t, e, r, n, i) { +function b0e(t, e, r, n, i) { const s = n.left, a = n.right, o = Wi(t, e, r, { - type: zVt + type: BVt }); Wf(t, o); const l = Wi(t, e, r, { - type: y0e + type: m0e }); return s.loopback = o, l.loopback = o, t.decisionMap[m1(e, i ? "RepetitionMandatoryWithSeparator" : "RepetitionMandatory", r.idx)] = o, oi(a, o), i === void 0 ? (oi(o, s), oi(o, l)) : (oi(o, l), oi(o, i.left), oi(i.right, s)), { left: s, right: l }; } -function O0e(t, e, r, n, i) { +function x0e(t, e, r, n, i) { const s = n.left, a = n.right, o = Wi(t, e, r, { - type: FVt + type: $Vt }); Wf(t, o); const l = Wi(t, e, r, { - type: y0e + type: m0e }), u = Wi(t, e, r, { - type: BVt + type: PVt }); return o.loopback = u, l.loopback = u, oi(o, s), oi(o, l), oi(a, u), i !== void 0 ? (oi(u, l), oi(u, i.left), oi(i.right, s)) : oi(u, o), t.decisionMap[m1(e, i ? "RepetitionWithSeparator" : "Repetition", r.idx)] = o, { left: o, right: l }; } -function XVt(t, e, r, n) { +function GVt(t, e, r, n) { const i = n.left, s = n.right; return oi(i, s), t.decisionMap[m1(e, "Option", r.idx)] = i, n; } @@ -76402,7 +76346,7 @@ function Wf(t, e) { } function hm(t, e, r, n, ...i) { const s = Wi(t, e, n, { - type: $Vt, + type: IVt, start: r }); r.end = s; @@ -76412,9 +76356,9 @@ function hm(t, e, r, n, ...i) { left: r, right: s }; - return t.decisionMap[m1(e, ZVt(n), n.idx)] = r, a; + return t.decisionMap[m1(e, HVt(n), n.idx)] = r, a; } -function ZVt(t) { +function HVt(t) { if (t instanceof Ya) return "Alternation"; if (t instanceof fs) @@ -76429,14 +76373,14 @@ function ZVt(t) { return "RepetitionMandatoryWithSeparator"; throw new Error("Invalid production type encountered"); } -function jVt(t, e) { +function XVt(t, e) { const r = e.length; for (let s = 0; s < r - 1; s++) { const a = e[s]; let o; a.left.transitions.length === 1 && (o = a.left.transitions[0]); - const l = o instanceof BI, u = o, h = e[s + 1].left; - a.left.type === Af && a.right.type === Af && o !== void 0 && (l && u.followState === a.right || o.target === a.right) ? (l ? u.followState = h : o.target = h, eUt(t, a.right)) : oi(a.right, h); + const l = o instanceof II, u = o, h = e[s + 1].left; + a.left.type === Af && a.right.type === Af && o !== void 0 && (l && u.followState === a.right || o.target === a.right) ? (l ? u.followState = h : o.target = h, KVt(t, a.right)) : oi(a.right, h); } const n = e[0], i = e[r - 1]; return { @@ -76444,29 +76388,29 @@ function jVt(t, e) { right: i.right }; } -function FI(t, e, r, n) { +function PI(t, e, r, n) { const i = Wi(t, e, n, { type: Af }), s = Wi(t, e, n, { type: Af }); - return zI(i, new $I(s, r)), { + return $I(i, new NI(s, r)), { left: i, right: s }; } -function KVt(t, e, r) { +function ZVt(t, e, r) { const n = r.referencedRule, i = t.ruleToStartState.get(n), s = Wi(t, e, r, { type: Af }), a = Wi(t, e, r, { type: Af - }), o = new BI(i, n, a); - return zI(s, o), { + }), o = new II(i, n, a); + return $I(s, o), { left: s, right: a }; } -function JVt(t, e, r) { +function jVt(t, e, r) { const n = t.ruleToStartState.get(e); oi(n, r.left); const i = t.ruleToStopState.get(e); @@ -76476,8 +76420,8 @@ function JVt(t, e, r) { }; } function oi(t, e) { - const r = new b0e(e); - zI(t, r); + const r = new v0e(e); + $I(t, r); } function Wi(t, e, r, n) { const i = Object.assign({ @@ -76491,14 +76435,14 @@ function Wi(t, e, r, n) { }, n); return t.states.push(i), i; } -function zI(t, e) { +function $I(t, e) { t.transitions.length === 0 && (t.epsilonOnlyTransitions = e.isEpsilon()), t.transitions.push(e); } -function eUt(t, e) { +function KVt(t, e) { t.states.splice(t.states.indexOf(e), 1); } -const Rk = {}; -class l9 { +const Lk = {}; +class s9 { constructor() { this.map = {}, this.configs = []; } @@ -76509,7 +76453,7 @@ class l9 { this.map = {}; } add(e) { - const r = k0e(e); + const r = w0e(e); r in this.map || (this.map[r] = this.configs.length, this.configs.push(e)); } get elements() { @@ -76525,10 +76469,10 @@ class l9 { return e; } } -function k0e(t, e = !0) { +function w0e(t, e = !0) { return `${e ? `a${t.alt}` : ""}s${t.state.stateNumber}:${t.stack.map((r) => r.stateNumber.toString()).join("_")}`; } -function tUt(t, e) { +function JVt(t, e) { const r = {}; return (n) => { const i = n.toString(); @@ -76540,7 +76484,7 @@ function tUt(t, e) { }, r[i] = s), s; }; } -class S0e { +class O0e { constructor() { this.predicates = []; } @@ -76558,14 +76502,14 @@ class S0e { return e; } } -const IW = new S0e(); -class rUt extends II { +const MW = new O0e(); +class eUt extends MI { constructor(e) { var r; super(), this.logging = (r = e == null ? void 0 : e.logging) !== null && r !== void 0 ? r : (n) => console.log(n); } initialize(e) { - this.atn = VVt(e.rules), this.dfas = nUt(this.atn); + this.atn = FVt(e.rules), this.dfas = tUt(this.atn); } validateAmbiguousAlternationAlternatives() { return []; @@ -76574,13 +76518,13 @@ class rUt extends II { return []; } buildLookaheadForAlternation(e) { - const { prodOccurrence: r, rule: n, hasPredicates: i, dynamicTokensEnabled: s } = e, a = this.dfas, o = this.logging, l = m1(n, "Alternation", r), h = this.atn.decisionMap[l].decision, f = gt(EW({ + const { prodOccurrence: r, rule: n, hasPredicates: i, dynamicTokensEnabled: s } = e, a = this.dfas, o = this.logging, l = m1(n, "Alternation", r), h = this.atn.decisionMap[l].decision, f = gt(SW({ maxLookahead: 1, occurrence: r, prodType: "Alternation", rule: n }), (d) => gt(d, (p) => p[0])); - if (PW(f, !1) && !s) { + if (DW(f, !1) && !s) { const d = gi(f, (p, g, m) => ($e(g, (v) => { v && (p[v.tokenTypeIdx] = m, $e(v.categoryMatches, (y) => { p[y] = m; @@ -76601,26 +76545,26 @@ class rUt extends II { }; } else return i ? function(d) { - const p = new S0e(), g = d === void 0 ? 0 : d.length; + const p = new O0e(), g = d === void 0 ? 0 : d.length; for (let v = 0; v < g; v++) { const y = d == null ? void 0 : d[v].GATE; p.set(v, y === void 0 || y.call(this)); } - const m = G_.call(this, a, h, p, o); + const m = Q_.call(this, a, h, p, o); return typeof m == "number" ? m : void 0; } : function() { - const d = G_.call(this, a, h, IW, o); + const d = Q_.call(this, a, h, MW, o); return typeof d == "number" ? d : void 0; }; } buildLookaheadForOptional(e) { - const { prodOccurrence: r, rule: n, prodType: i, dynamicTokensEnabled: s } = e, a = this.dfas, o = this.logging, l = m1(n, i, r), h = this.atn.decisionMap[l].decision, f = gt(EW({ + const { prodOccurrence: r, rule: n, prodType: i, dynamicTokensEnabled: s } = e, a = this.dfas, o = this.logging, l = m1(n, i, r), h = this.atn.decisionMap[l].decision, f = gt(SW({ maxLookahead: 1, occurrence: r, prodType: i, rule: n }), (d) => gt(d, (p) => p[0])); - if (PW(f) && f[0][0] && !s) { + if (DW(f) && f[0][0] && !s) { const d = f[0], p = Qi(d); if (p.length === 1 && $r(p[0].categoryMatches)) { const m = p[0].tokenTypeIdx; @@ -76638,12 +76582,12 @@ class rUt extends II { } } return function() { - const d = G_.call(this, a, h, IW, o); + const d = Q_.call(this, a, h, MW, o); return typeof d == "object" ? !1 : d === 0; }; } } -function PW(t, e = !0) { +function DW(t, e = !0) { const r = /* @__PURE__ */ new Set(); for (const n of t) { const i = /* @__PURE__ */ new Set(); @@ -76664,53 +76608,53 @@ function PW(t, e = !0) { } return !0; } -function nUt(t) { +function tUt(t) { const e = t.decisionStates.length, r = Array(e); for (let n = 0; n < e; n++) - r[n] = tUt(t.decisionStates[n], n); + r[n] = JVt(t.decisionStates[n], n); return r; } -function G_(t, e, r, n) { +function Q_(t, e, r, n) { const i = t[e](r); let s = i.start; if (s === void 0) { - const o = pUt(i.atnStartState); - s = C0e(i, T0e(o)), i.start = s; + const o = fUt(i.atnStartState); + s = S0e(i, k0e(o)), i.start = s; } - return iUt.apply(this, [i, s, r, n]); + return rUt.apply(this, [i, s, r, n]); } -function iUt(t, e, r, n) { +function rUt(t, e, r, n) { let i = e, s = 1; const a = []; let o = this.LA(s++); for (; ; ) { - let l = uUt(i, o); - if (l === void 0 && (l = sUt.apply(this, [t, i, o, s, r, n])), l === Rk) - return cUt(a, i, o); + let l = lUt(i, o); + if (l === void 0 && (l = nUt.apply(this, [t, i, o, s, r, n])), l === Lk) + return oUt(a, i, o); if (l.isAcceptState === !0) return l.prediction; i = l, a.push(o), o = this.LA(s++); } } -function sUt(t, e, r, n, i, s) { - const a = hUt(e.configs, r, i); +function nUt(t, e, r, n, i, s) { + const a = cUt(e.configs, r, i); if (a.size === 0) - return $W(t, e, r, Rk), Rk; - let o = T0e(a); - const l = dUt(a, i); + return NW(t, e, r, Lk), Lk; + let o = k0e(a); + const l = hUt(a, i); if (l !== void 0) o.isAcceptState = !0, o.prediction = l, o.configs.uniqueAlt = l; - else if (yUt(a)) { + else if (mUt(a)) { const u = f1(a.alts); - o.isAcceptState = !0, o.prediction = u, o.configs.uniqueAlt = u, aUt.apply(this, [t, n, a.alts, s]); + o.isAcceptState = !0, o.prediction = u, o.configs.uniqueAlt = u, iUt.apply(this, [t, n, a.alts, s]); } - return o = $W(t, e, r, o), o; + return o = NW(t, e, r, o), o; } -function aUt(t, e, r, n) { +function iUt(t, e, r, n) { const i = []; for (let u = 1; u <= e; u++) i.push(this.LA(u).tokenType); - const s = t.atnStartState, a = s.rule, o = s.production, l = oUt({ + const s = t.atnStartState, a = s.rule, o = s.production, l = sUt({ topLevelRule: a, ambiguityIndices: r, production: o, @@ -76718,15 +76662,15 @@ function aUt(t, e, r, n) { }); n(l); } -function oUt(t) { +function sUt(t) { const e = gt(t.prefixPath, (i) => hg(i)).join(", "), r = t.production.idx === 0 ? "" : t.production.idx; - let n = `Ambiguous Alternatives Detected: <${t.ambiguityIndices.join(", ")}> in <${lUt(t.production)}${r}> inside <${t.topLevelRule.name}> Rule, + let n = `Ambiguous Alternatives Detected: <${t.ambiguityIndices.join(", ")}> in <${aUt(t.production)}${r}> inside <${t.topLevelRule.name}> Rule, <${e}> may appears as a prefix path in all these alternatives. `; return n = n + `See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#AMBIGUOUS_ALTERNATIVES For Further details.`, n; } -function lUt(t) { +function aUt(t) { if (t instanceof ua) return "SUBRULE"; if (t instanceof fs) @@ -76745,19 +76689,19 @@ function lUt(t) { return "CONSUME"; throw Error("non exhaustive match"); } -function cUt(t, e, r) { - const n = lo(e.configs.elements, (s) => s.state.transitions), i = yDt(n.filter((s) => s instanceof $I).map((s) => s.tokenType), (s) => s.tokenTypeIdx); +function oUt(t, e, r) { + const n = lo(e.configs.elements, (s) => s.state.transitions), i = mDt(n.filter((s) => s instanceof NI).map((s) => s.tokenType), (s) => s.tokenTypeIdx); return { actualToken: r, possibleTokenTypes: i, tokenPath: t }; } -function uUt(t, e) { +function lUt(t, e) { return t.edges[e.tokenTypeIdx]; } -function hUt(t, e, r) { - const n = new l9(), i = []; +function cUt(t, e, r) { + const n = new s9(), i = []; for (const a of t.elements) { if (r.is(a.alt) === !1) continue; @@ -76767,7 +76711,7 @@ function hUt(t, e, r) { } const o = a.state.transitions.length; for (let l = 0; l < o; l++) { - const u = a.state.transitions[l], h = fUt(u, e); + const u = a.state.transitions[l], h = uUt(u, e); h !== void 0 && n.add({ state: h, alt: a.alt, @@ -76777,20 +76721,20 @@ function hUt(t, e, r) { } let s; if (i.length === 0 && n.size === 1 && (s = n), s === void 0) { - s = new l9(); + s = new s9(); for (const a of n.elements) - Mk(a, s); + Rk(a, s); } - if (i.length > 0 && !mUt(s)) + if (i.length > 0 && !pUt(s)) for (const a of i) s.add(a); return s; } -function fUt(t, e) { - if (t instanceof $I && jde(e, t.tokenType)) +function uUt(t, e) { + if (t instanceof NI && Xde(e, t.tokenType)) return t.target; } -function dUt(t, e) { +function hUt(t, e) { let r; for (const n of t.elements) if (e.is(n.alt) === !0) { @@ -76801,7 +76745,7 @@ function dUt(t, e) { } return r; } -function T0e(t) { +function k0e(t) { return { configs: t, edges: {}, @@ -76809,28 +76753,28 @@ function T0e(t) { prediction: -1 }; } -function $W(t, e, r, n) { - return n = C0e(t, n), e.edges[r.tokenTypeIdx] = n, n; +function NW(t, e, r, n) { + return n = S0e(t, n), e.edges[r.tokenTypeIdx] = n, n; } -function C0e(t, e) { - if (e === Rk) +function S0e(t, e) { + if (e === Lk) return e; const r = e.configs.key, n = t.states[r]; return n !== void 0 ? n : (e.configs.finalize(), t.states[r] = e, e); } -function pUt(t) { - const e = new l9(), r = t.transitions.length; +function fUt(t) { + const e = new s9(), r = t.transitions.length; for (let n = 0; n < r; n++) { const s = { state: t.transitions[n].target, alt: n, stack: [] }; - Mk(s, e); + Rk(s, e); } return e; } -function Mk(t, e) { +function Rk(t, e) { const r = t.state; if (r.type === Bx) { if (t.stack.length > 0) { @@ -76839,7 +76783,7 @@ function Mk(t, e) { alt: t.alt, stack: i }; - Mk(a, e); + Rk(a, e); } else e.add(t); return; @@ -76847,18 +76791,18 @@ function Mk(t, e) { r.epsilonOnlyTransitions || e.add(t); const n = r.transitions.length; for (let i = 0; i < n; i++) { - const s = r.transitions[i], a = gUt(t, s); - a !== void 0 && Mk(a, e); + const s = r.transitions[i], a = dUt(t, s); + a !== void 0 && Rk(a, e); } } -function gUt(t, e) { - if (e instanceof b0e) +function dUt(t, e) { + if (e instanceof v0e) return { state: e.target, alt: t.alt, stack: t.stack }; - if (e instanceof BI) { + if (e instanceof II) { const r = [...t.stack, e.followState]; return { state: e.target, @@ -76867,79 +76811,79 @@ function gUt(t, e) { }; } } -function mUt(t) { +function pUt(t) { for (const e of t.elements) if (e.state.type === Bx) return !0; return !1; } -function vUt(t) { +function gUt(t) { for (const e of t.elements) if (e.state.type !== Bx) return !1; return !0; } -function yUt(t) { - if (vUt(t)) +function mUt(t) { + if (gUt(t)) return !0; - const e = bUt(t.elements); - return xUt(e) && !wUt(e); + const e = vUt(t.elements); + return yUt(e) && !bUt(e); } -function bUt(t) { +function vUt(t) { const e = /* @__PURE__ */ new Map(); for (const r of t) { - const n = k0e(r, !1); + const n = w0e(r, !1); let i = e.get(n); i === void 0 && (i = {}, e.set(n, i)), i[r.alt] = !0; } return e; } -function xUt(t) { +function yUt(t) { for (const e of Array.from(t.values())) if (Object.keys(e).length > 1) return !0; return !1; } -function wUt(t) { +function bUt(t) { for (const e of Array.from(t.values())) if (Object.keys(e).length === 1) return !0; return !1; } -var BW; +var IW; (function(t) { function e(r) { return typeof r == "string"; } t.is = e; -})(BW || (BW = {})); -var c9; +})(IW || (IW = {})); +var a9; (function(t) { function e(r) { return typeof r == "string"; } t.is = e; -})(c9 || (c9 = {})); -var FW; +})(a9 || (a9 = {})); +var PW; (function(t) { t.MIN_VALUE = -2147483648, t.MAX_VALUE = 2147483647; function e(r) { return typeof r == "number" && t.MIN_VALUE <= r && r <= t.MAX_VALUE; } t.is = e; -})(FW || (FW = {})); -var Dk; +})(PW || (PW = {})); +var Mk; (function(t) { t.MIN_VALUE = 0, t.MAX_VALUE = 2147483647; function e(r) { return typeof r == "number" && t.MIN_VALUE <= r && r <= t.MAX_VALUE; } t.is = e; -})(Dk || (Dk = {})); +})(Mk || (Mk = {})); var zr; (function(t) { function e(n, i) { - return n === Number.MAX_VALUE && (n = Dk.MAX_VALUE), i === Number.MAX_VALUE && (i = Dk.MAX_VALUE), { line: n, character: i }; + return n === Number.MAX_VALUE && (n = Mk.MAX_VALUE), i === Number.MAX_VALUE && (i = Mk.MAX_VALUE), { line: n, character: i }; } t.create = e; function r(n) { @@ -76964,7 +76908,7 @@ var Cr; } t.is = r; })(Cr || (Cr = {})); -var Nk; +var Dk; (function(t) { function e(n, i) { return { uri: n, range: i }; @@ -76975,8 +76919,8 @@ var Nk; return Fe.objectLiteral(i) && Cr.is(i.range) && (Fe.string(i.uri) || Fe.undefined(i.uri)); } t.is = r; -})(Nk || (Nk = {})); -var zW; +})(Dk || (Dk = {})); +var $W; (function(t) { function e(n, i, s, a) { return { targetUri: n, targetRange: i, targetSelectionRange: s, originSelectionRange: a }; @@ -76987,8 +76931,8 @@ var zW; return Fe.objectLiteral(i) && Cr.is(i.targetRange) && Fe.string(i.targetUri) && Cr.is(i.targetSelectionRange) && (Cr.is(i.originSelectionRange) || Fe.undefined(i.originSelectionRange)); } t.is = r; -})(zW || (zW = {})); -var u9; +})($W || ($W = {})); +var o9; (function(t) { function e(n, i, s, a) { return { @@ -77004,8 +76948,8 @@ var u9; return Fe.objectLiteral(i) && Fe.numberRange(i.red, 0, 1) && Fe.numberRange(i.green, 0, 1) && Fe.numberRange(i.blue, 0, 1) && Fe.numberRange(i.alpha, 0, 1); } t.is = r; -})(u9 || (u9 = {})); -var VW; +})(o9 || (o9 = {})); +var BW; (function(t) { function e(n, i) { return { @@ -77016,11 +76960,11 @@ var VW; t.create = e; function r(n) { const i = n; - return Fe.objectLiteral(i) && Cr.is(i.range) && u9.is(i.color); + return Fe.objectLiteral(i) && Cr.is(i.range) && o9.is(i.color); } t.is = r; -})(VW || (VW = {})); -var UW; +})(BW || (BW = {})); +var FW; (function(t) { function e(n, i, s) { return { @@ -77035,12 +76979,12 @@ var UW; return Fe.objectLiteral(i) && Fe.string(i.label) && (Fe.undefined(i.textEdit) || y1.is(i)) && (Fe.undefined(i.additionalTextEdits) || Fe.typedArray(i.additionalTextEdits, y1.is)); } t.is = r; -})(UW || (UW = {})); -var qW; +})(FW || (FW = {})); +var zW; (function(t) { t.Comment = "comment", t.Imports = "imports", t.Region = "region"; -})(qW || (qW = {})); -var YW; +})(zW || (zW = {})); +var VW; (function(t) { function e(n, i, s, a, o, l) { const u = { @@ -77055,8 +76999,8 @@ var YW; return Fe.objectLiteral(i) && Fe.uinteger(i.startLine) && Fe.uinteger(i.startLine) && (Fe.undefined(i.startCharacter) || Fe.uinteger(i.startCharacter)) && (Fe.undefined(i.endCharacter) || Fe.uinteger(i.endCharacter)) && (Fe.undefined(i.kind) || Fe.string(i.kind)); } t.is = r; -})(YW || (YW = {})); -var h9; +})(VW || (VW = {})); +var l9; (function(t) { function e(n, i) { return { @@ -77067,27 +77011,27 @@ var h9; t.create = e; function r(n) { let i = n; - return Fe.defined(i) && Nk.is(i.location) && Fe.string(i.message); + return Fe.defined(i) && Dk.is(i.location) && Fe.string(i.message); } t.is = r; -})(h9 || (h9 = {})); -var QW; +})(l9 || (l9 = {})); +var UW; (function(t) { t.Error = 1, t.Warning = 2, t.Information = 3, t.Hint = 4; -})(QW || (QW = {})); -var WW; +})(UW || (UW = {})); +var qW; (function(t) { t.Unnecessary = 1, t.Deprecated = 2; -})(WW || (WW = {})); -var GW; +})(qW || (qW = {})); +var YW; (function(t) { function e(r) { const n = r; return Fe.objectLiteral(n) && Fe.string(n.href); } t.is = e; -})(GW || (GW = {})); -var Ik; +})(YW || (YW = {})); +var Nk; (function(t) { function e(n, i, s, a, o, l) { let u = { range: n, message: i }; @@ -77097,10 +77041,10 @@ var Ik; function r(n) { var i; let s = n; - return Fe.defined(s) && Cr.is(s.range) && Fe.string(s.message) && (Fe.number(s.severity) || Fe.undefined(s.severity)) && (Fe.integer(s.code) || Fe.string(s.code) || Fe.undefined(s.code)) && (Fe.undefined(s.codeDescription) || Fe.string((i = s.codeDescription) === null || i === void 0 ? void 0 : i.href)) && (Fe.string(s.source) || Fe.undefined(s.source)) && (Fe.undefined(s.relatedInformation) || Fe.typedArray(s.relatedInformation, h9.is)); + return Fe.defined(s) && Cr.is(s.range) && Fe.string(s.message) && (Fe.number(s.severity) || Fe.undefined(s.severity)) && (Fe.integer(s.code) || Fe.string(s.code) || Fe.undefined(s.code)) && (Fe.undefined(s.codeDescription) || Fe.string((i = s.codeDescription) === null || i === void 0 ? void 0 : i.href)) && (Fe.string(s.source) || Fe.undefined(s.source)) && (Fe.undefined(s.relatedInformation) || Fe.typedArray(s.relatedInformation, l9.is)); } t.is = r; -})(Ik || (Ik = {})); +})(Nk || (Nk = {})); var v1; (function(t) { function e(n, i, ...s) { @@ -77134,7 +77078,7 @@ var y1; } t.is = i; })(y1 || (y1 = {})); -var f9; +var c9; (function(t) { function e(n, i, s) { const a = { label: n }; @@ -77146,7 +77090,7 @@ var f9; return Fe.objectLiteral(i) && Fe.string(i.label) && (Fe.boolean(i.needsConfirmation) || i.needsConfirmation === void 0) && (Fe.string(i.description) || i.description === void 0); } t.is = r; -})(f9 || (f9 = {})); +})(c9 || (c9 = {})); var b1; (function(t) { function e(r) { @@ -77155,7 +77099,7 @@ var b1; } t.is = e; })(b1 || (b1 = {})); -var HW; +var QW; (function(t) { function e(s, a, o) { return { range: s, newText: a, annotationId: o }; @@ -77171,11 +77115,11 @@ var HW; t.del = n; function i(s) { const a = s; - return y1.is(a) && (f9.is(a.annotationId) || b1.is(a.annotationId)); + return y1.is(a) && (c9.is(a.annotationId) || b1.is(a.annotationId)); } t.is = i; -})(HW || (HW = {})); -var d9; +})(QW || (QW = {})); +var u9; (function(t) { function e(n, i) { return { textDocument: n, edits: i }; @@ -77183,11 +77127,11 @@ var d9; t.create = e; function r(n) { let i = n; - return Fe.defined(i) && y9.is(i.textDocument) && Array.isArray(i.edits); + return Fe.defined(i) && g9.is(i.textDocument) && Array.isArray(i.edits); } t.is = r; -})(d9 || (d9 = {})); -var p9; +})(u9 || (u9 = {})); +var h9; (function(t) { function e(n, i, s) { let a = { @@ -77202,8 +77146,8 @@ var p9; return i && i.kind === "create" && Fe.string(i.uri) && (i.options === void 0 || (i.options.overwrite === void 0 || Fe.boolean(i.options.overwrite)) && (i.options.ignoreIfExists === void 0 || Fe.boolean(i.options.ignoreIfExists))) && (i.annotationId === void 0 || b1.is(i.annotationId)); } t.is = r; -})(p9 || (p9 = {})); -var g9; +})(h9 || (h9 = {})); +var f9; (function(t) { function e(n, i, s, a) { let o = { @@ -77219,8 +77163,8 @@ var g9; return i && i.kind === "rename" && Fe.string(i.oldUri) && Fe.string(i.newUri) && (i.options === void 0 || (i.options.overwrite === void 0 || Fe.boolean(i.options.overwrite)) && (i.options.ignoreIfExists === void 0 || Fe.boolean(i.options.ignoreIfExists))) && (i.annotationId === void 0 || b1.is(i.annotationId)); } t.is = r; -})(g9 || (g9 = {})); -var m9; +})(f9 || (f9 = {})); +var d9; (function(t) { function e(n, i, s) { let a = { @@ -77235,16 +77179,16 @@ var m9; return i && i.kind === "delete" && Fe.string(i.uri) && (i.options === void 0 || (i.options.recursive === void 0 || Fe.boolean(i.options.recursive)) && (i.options.ignoreIfNotExists === void 0 || Fe.boolean(i.options.ignoreIfNotExists))) && (i.annotationId === void 0 || b1.is(i.annotationId)); } t.is = r; -})(m9 || (m9 = {})); -var v9; +})(d9 || (d9 = {})); +var p9; (function(t) { function e(r) { let n = r; - return n && (n.changes !== void 0 || n.documentChanges !== void 0) && (n.documentChanges === void 0 || n.documentChanges.every((i) => Fe.string(i.kind) ? p9.is(i) || g9.is(i) || m9.is(i) : d9.is(i))); + return n && (n.changes !== void 0 || n.documentChanges !== void 0) && (n.documentChanges === void 0 || n.documentChanges.every((i) => Fe.string(i.kind) ? h9.is(i) || f9.is(i) || d9.is(i) : u9.is(i))); } t.is = e; -})(v9 || (v9 = {})); -var XW; +})(p9 || (p9 = {})); +var WW; (function(t) { function e(n) { return { uri: n }; @@ -77255,8 +77199,8 @@ var XW; return Fe.defined(i) && Fe.string(i.uri); } t.is = r; -})(XW || (XW = {})); -var ZW; +})(WW || (WW = {})); +var GW; (function(t) { function e(n, i) { return { uri: n, version: i }; @@ -77267,8 +77211,8 @@ var ZW; return Fe.defined(i) && Fe.string(i.uri) && Fe.integer(i.version); } t.is = r; -})(ZW || (ZW = {})); -var y9; +})(GW || (GW = {})); +var g9; (function(t) { function e(n, i) { return { uri: n, version: i }; @@ -77279,8 +77223,8 @@ var y9; return Fe.defined(i) && Fe.string(i.uri) && (i.version === null || Fe.integer(i.version)); } t.is = r; -})(y9 || (y9 = {})); -var jW; +})(g9 || (g9 = {})); +var HW; (function(t) { function e(n, i, s, a) { return { uri: n, languageId: i, version: s, text: a }; @@ -77291,8 +77235,8 @@ var jW; return Fe.defined(i) && Fe.string(i.uri) && Fe.string(i.languageId) && Fe.integer(i.version) && Fe.string(i.text); } t.is = r; -})(jW || (jW = {})); -var b9; +})(HW || (HW = {})); +var m9; (function(t) { t.PlainText = "plaintext", t.Markdown = "markdown"; function e(r) { @@ -77300,28 +77244,28 @@ var b9; return n === t.PlainText || n === t.Markdown; } t.is = e; -})(b9 || (b9 = {})); +})(m9 || (m9 = {})); var D2; (function(t) { function e(r) { const n = r; - return Fe.objectLiteral(r) && b9.is(n.kind) && Fe.string(n.value); + return Fe.objectLiteral(r) && m9.is(n.kind) && Fe.string(n.value); } t.is = e; })(D2 || (D2 = {})); -var KW; +var XW; (function(t) { t.Text = 1, t.Method = 2, t.Function = 3, t.Constructor = 4, t.Field = 5, t.Variable = 6, t.Class = 7, t.Interface = 8, t.Module = 9, t.Property = 10, t.Unit = 11, t.Value = 12, t.Enum = 13, t.Keyword = 14, t.Snippet = 15, t.Color = 16, t.File = 17, t.Reference = 18, t.Folder = 19, t.EnumMember = 20, t.Constant = 21, t.Struct = 22, t.Event = 23, t.Operator = 24, t.TypeParameter = 25; -})(KW || (KW = {})); -var JW; +})(XW || (XW = {})); +var ZW; (function(t) { t.PlainText = 1, t.Snippet = 2; -})(JW || (JW = {})); -var eG; +})(ZW || (ZW = {})); +var jW; (function(t) { t.Deprecated = 1; -})(eG || (eG = {})); -var tG; +})(jW || (jW = {})); +var KW; (function(t) { function e(n, i, s) { return { newText: n, insert: i, replace: s }; @@ -77332,34 +77276,34 @@ var tG; return i && Fe.string(i.newText) && Cr.is(i.insert) && Cr.is(i.replace); } t.is = r; -})(tG || (tG = {})); -var rG; +})(KW || (KW = {})); +var JW; (function(t) { t.asIs = 1, t.adjustIndentation = 2; -})(rG || (rG = {})); -var nG; +})(JW || (JW = {})); +var eG; (function(t) { function e(r) { const n = r; return n && (Fe.string(n.detail) || n.detail === void 0) && (Fe.string(n.description) || n.description === void 0); } t.is = e; -})(nG || (nG = {})); -var iG; +})(eG || (eG = {})); +var tG; (function(t) { function e(r) { return { label: r }; } t.create = e; -})(iG || (iG = {})); -var sG; +})(tG || (tG = {})); +var rG; (function(t) { function e(r, n) { return { items: r || [], isIncomplete: !!n }; } t.create = e; -})(sG || (sG = {})); -var Pk; +})(rG || (rG = {})); +var Ik; (function(t) { function e(n) { return n.replace(/[\\`*_{}[\]()#+\-.!]/g, "\\$&"); @@ -77370,51 +77314,51 @@ var Pk; return Fe.string(i) || Fe.objectLiteral(i) && Fe.string(i.language) && Fe.string(i.value); } t.is = r; -})(Pk || (Pk = {})); -var aG; +})(Ik || (Ik = {})); +var nG; (function(t) { function e(r) { let n = r; - return !!n && Fe.objectLiteral(n) && (D2.is(n.contents) || Pk.is(n.contents) || Fe.typedArray(n.contents, Pk.is)) && (r.range === void 0 || Cr.is(r.range)); + return !!n && Fe.objectLiteral(n) && (D2.is(n.contents) || Ik.is(n.contents) || Fe.typedArray(n.contents, Ik.is)) && (r.range === void 0 || Cr.is(r.range)); } t.is = e; -})(aG || (aG = {})); -var oG; +})(nG || (nG = {})); +var iG; (function(t) { function e(r, n) { return n ? { label: r, documentation: n } : { label: r }; } t.create = e; -})(oG || (oG = {})); -var lG; +})(iG || (iG = {})); +var sG; (function(t) { function e(r, n, ...i) { let s = { label: r }; return Fe.defined(n) && (s.documentation = n), Fe.defined(i) ? s.parameters = i : s.parameters = [], s; } t.create = e; -})(lG || (lG = {})); -var cG; +})(sG || (sG = {})); +var aG; (function(t) { t.Text = 1, t.Read = 2, t.Write = 3; -})(cG || (cG = {})); -var uG; +})(aG || (aG = {})); +var oG; (function(t) { function e(r, n) { let i = { range: r }; return Fe.number(n) && (i.kind = n), i; } t.create = e; -})(uG || (uG = {})); -var hG; +})(oG || (oG = {})); +var lG; (function(t) { t.File = 1, t.Module = 2, t.Namespace = 3, t.Package = 4, t.Class = 5, t.Method = 6, t.Property = 7, t.Field = 8, t.Constructor = 9, t.Enum = 10, t.Interface = 11, t.Function = 12, t.Variable = 13, t.Constant = 14, t.String = 15, t.Number = 16, t.Boolean = 17, t.Array = 18, t.Object = 19, t.Key = 20, t.Null = 21, t.EnumMember = 22, t.Struct = 23, t.Event = 24, t.Operator = 25, t.TypeParameter = 26; -})(hG || (hG = {})); -var fG; +})(lG || (lG = {})); +var cG; (function(t) { t.Deprecated = 1; -})(fG || (fG = {})); -var dG; +})(cG || (cG = {})); +var uG; (function(t) { function e(r, n, i, s, a) { let o = { @@ -77425,15 +77369,15 @@ var dG; return a && (o.containerName = a), o; } t.create = e; -})(dG || (dG = {})); -var pG; +})(uG || (uG = {})); +var hG; (function(t) { function e(r, n, i, s) { return s !== void 0 ? { name: r, kind: n, location: { uri: i, range: s } } : { name: r, kind: n, location: { uri: i } }; } t.create = e; -})(pG || (pG = {})); -var gG; +})(hG || (hG = {})); +var fG; (function(t) { function e(n, i, s, a, o, l) { let u = { @@ -77451,16 +77395,16 @@ var gG; return i && Fe.string(i.name) && Fe.number(i.kind) && Cr.is(i.range) && Cr.is(i.selectionRange) && (i.detail === void 0 || Fe.string(i.detail)) && (i.deprecated === void 0 || Fe.boolean(i.deprecated)) && (i.children === void 0 || Array.isArray(i.children)) && (i.tags === void 0 || Array.isArray(i.tags)); } t.is = r; -})(gG || (gG = {})); -var mG; +})(fG || (fG = {})); +var dG; (function(t) { t.Empty = "", t.QuickFix = "quickfix", t.Refactor = "refactor", t.RefactorExtract = "refactor.extract", t.RefactorInline = "refactor.inline", t.RefactorRewrite = "refactor.rewrite", t.Source = "source", t.SourceOrganizeImports = "source.organizeImports", t.SourceFixAll = "source.fixAll"; -})(mG || (mG = {})); -var $k; +})(dG || (dG = {})); +var Pk; (function(t) { t.Invoked = 1, t.Automatic = 2; -})($k || ($k = {})); -var vG; +})(Pk || (Pk = {})); +var pG; (function(t) { function e(n, i, s) { let a = { diagnostics: n }; @@ -77469,11 +77413,11 @@ var vG; t.create = e; function r(n) { let i = n; - return Fe.defined(i) && Fe.typedArray(i.diagnostics, Ik.is) && (i.only === void 0 || Fe.typedArray(i.only, Fe.string)) && (i.triggerKind === void 0 || i.triggerKind === $k.Invoked || i.triggerKind === $k.Automatic); + return Fe.defined(i) && Fe.typedArray(i.diagnostics, Nk.is) && (i.only === void 0 || Fe.typedArray(i.only, Fe.string)) && (i.triggerKind === void 0 || i.triggerKind === Pk.Invoked || i.triggerKind === Pk.Automatic); } t.is = r; -})(vG || (vG = {})); -var yG; +})(pG || (pG = {})); +var gG; (function(t) { function e(n, i, s) { let a = { title: n }, o = !0; @@ -77482,11 +77426,11 @@ var yG; t.create = e; function r(n) { let i = n; - return i && Fe.string(i.title) && (i.diagnostics === void 0 || Fe.typedArray(i.diagnostics, Ik.is)) && (i.kind === void 0 || Fe.string(i.kind)) && (i.edit !== void 0 || i.command !== void 0) && (i.command === void 0 || v1.is(i.command)) && (i.isPreferred === void 0 || Fe.boolean(i.isPreferred)) && (i.edit === void 0 || v9.is(i.edit)); + return i && Fe.string(i.title) && (i.diagnostics === void 0 || Fe.typedArray(i.diagnostics, Nk.is)) && (i.kind === void 0 || Fe.string(i.kind)) && (i.edit !== void 0 || i.command !== void 0) && (i.command === void 0 || v1.is(i.command)) && (i.isPreferred === void 0 || Fe.boolean(i.isPreferred)) && (i.edit === void 0 || p9.is(i.edit)); } t.is = r; -})(yG || (yG = {})); -var bG; +})(gG || (gG = {})); +var mG; (function(t) { function e(n, i) { let s = { range: n }; @@ -77498,8 +77442,8 @@ var bG; return Fe.defined(i) && Cr.is(i.range) && (Fe.undefined(i.command) || v1.is(i.command)); } t.is = r; -})(bG || (bG = {})); -var xG; +})(mG || (mG = {})); +var vG; (function(t) { function e(n, i) { return { tabSize: n, insertSpaces: i }; @@ -77510,8 +77454,8 @@ var xG; return Fe.defined(i) && Fe.uinteger(i.tabSize) && Fe.boolean(i.insertSpaces); } t.is = r; -})(xG || (xG = {})); -var wG; +})(vG || (vG = {})); +var yG; (function(t) { function e(n, i, s) { return { range: n, target: i, data: s }; @@ -77522,8 +77466,8 @@ var wG; return Fe.defined(i) && Cr.is(i.range) && (Fe.undefined(i.target) || Fe.string(i.target)); } t.is = r; -})(wG || (wG = {})); -var OG; +})(yG || (yG = {})); +var bG; (function(t) { function e(n, i) { return { range: n, parent: i }; @@ -77534,24 +77478,24 @@ var OG; return Fe.objectLiteral(i) && Cr.is(i.range) && (i.parent === void 0 || t.is(i.parent)); } t.is = r; -})(OG || (OG = {})); -var kG; +})(bG || (bG = {})); +var xG; (function(t) { t.namespace = "namespace", t.type = "type", t.class = "class", t.enum = "enum", t.interface = "interface", t.struct = "struct", t.typeParameter = "typeParameter", t.parameter = "parameter", t.variable = "variable", t.property = "property", t.enumMember = "enumMember", t.event = "event", t.function = "function", t.method = "method", t.macro = "macro", t.keyword = "keyword", t.modifier = "modifier", t.comment = "comment", t.string = "string", t.number = "number", t.regexp = "regexp", t.operator = "operator", t.decorator = "decorator"; -})(kG || (kG = {})); -var SG; +})(xG || (xG = {})); +var wG; (function(t) { t.declaration = "declaration", t.definition = "definition", t.readonly = "readonly", t.static = "static", t.deprecated = "deprecated", t.abstract = "abstract", t.async = "async", t.modification = "modification", t.documentation = "documentation", t.defaultLibrary = "defaultLibrary"; -})(SG || (SG = {})); -var TG; +})(wG || (wG = {})); +var OG; (function(t) { function e(r) { const n = r; return Fe.objectLiteral(n) && (n.resultId === void 0 || typeof n.resultId == "string") && Array.isArray(n.data) && (n.data.length === 0 || typeof n.data[0] == "number"); } t.is = e; -})(TG || (TG = {})); -var CG; +})(OG || (OG = {})); +var kG; (function(t) { function e(n, i) { return { range: n, text: i }; @@ -77562,8 +77506,8 @@ var CG; return i != null && Cr.is(i.range) && Fe.string(i.text); } t.is = r; -})(CG || (CG = {})); -var EG; +})(kG || (kG = {})); +var SG; (function(t) { function e(n, i, s) { return { range: n, variableName: i, caseSensitiveLookup: s }; @@ -77574,8 +77518,8 @@ var EG; return i != null && Cr.is(i.range) && Fe.boolean(i.caseSensitiveLookup) && (Fe.string(i.variableName) || i.variableName === void 0); } t.is = r; -})(EG || (EG = {})); -var _G; +})(SG || (SG = {})); +var TG; (function(t) { function e(n, i) { return { range: n, expression: i }; @@ -77586,8 +77530,8 @@ var _G; return i != null && Cr.is(i.range) && (Fe.string(i.expression) || i.expression === void 0); } t.is = r; -})(_G || (_G = {})); -var AG; +})(TG || (TG = {})); +var CG; (function(t) { function e(n, i) { return { frameId: n, stoppedLocation: i }; @@ -77598,16 +77542,16 @@ var AG; return Fe.defined(i) && Cr.is(n.stoppedLocation); } t.is = r; -})(AG || (AG = {})); -var x9; +})(CG || (CG = {})); +var v9; (function(t) { t.Type = 1, t.Parameter = 2; function e(r) { return r === 1 || r === 2; } t.is = e; -})(x9 || (x9 = {})); -var w9; +})(v9 || (v9 = {})); +var y9; (function(t) { function e(n) { return { value: n }; @@ -77615,11 +77559,11 @@ var w9; t.create = e; function r(n) { const i = n; - return Fe.objectLiteral(i) && (i.tooltip === void 0 || Fe.string(i.tooltip) || D2.is(i.tooltip)) && (i.location === void 0 || Nk.is(i.location)) && (i.command === void 0 || v1.is(i.command)); + return Fe.objectLiteral(i) && (i.tooltip === void 0 || Fe.string(i.tooltip) || D2.is(i.tooltip)) && (i.location === void 0 || Dk.is(i.location)) && (i.command === void 0 || v1.is(i.command)); } t.is = r; -})(w9 || (w9 = {})); -var LG; +})(y9 || (y9 = {})); +var EG; (function(t) { function e(n, i, s) { const a = { position: n, label: i }; @@ -77628,61 +77572,61 @@ var LG; t.create = e; function r(n) { const i = n; - return Fe.objectLiteral(i) && zr.is(i.position) && (Fe.string(i.label) || Fe.typedArray(i.label, w9.is)) && (i.kind === void 0 || x9.is(i.kind)) && i.textEdits === void 0 || Fe.typedArray(i.textEdits, y1.is) && (i.tooltip === void 0 || Fe.string(i.tooltip) || D2.is(i.tooltip)) && (i.paddingLeft === void 0 || Fe.boolean(i.paddingLeft)) && (i.paddingRight === void 0 || Fe.boolean(i.paddingRight)); + return Fe.objectLiteral(i) && zr.is(i.position) && (Fe.string(i.label) || Fe.typedArray(i.label, y9.is)) && (i.kind === void 0 || v9.is(i.kind)) && i.textEdits === void 0 || Fe.typedArray(i.textEdits, y1.is) && (i.tooltip === void 0 || Fe.string(i.tooltip) || D2.is(i.tooltip)) && (i.paddingLeft === void 0 || Fe.boolean(i.paddingLeft)) && (i.paddingRight === void 0 || Fe.boolean(i.paddingRight)); } t.is = r; -})(LG || (LG = {})); -var RG; +})(EG || (EG = {})); +var _G; (function(t) { function e(r) { return { kind: "snippet", value: r }; } t.createSnippet = e; -})(RG || (RG = {})); -var MG; +})(_G || (_G = {})); +var AG; (function(t) { function e(r, n, i, s) { return { insertText: r, filterText: n, range: i, command: s }; } t.create = e; -})(MG || (MG = {})); -var DG; +})(AG || (AG = {})); +var LG; (function(t) { function e(r) { return { items: r }; } t.create = e; -})(DG || (DG = {})); -var NG; +})(LG || (LG = {})); +var RG; (function(t) { t.Invoked = 0, t.Automatic = 1; -})(NG || (NG = {})); -var IG; +})(RG || (RG = {})); +var MG; (function(t) { function e(r, n) { return { range: r, text: n }; } t.create = e; -})(IG || (IG = {})); -var PG; +})(MG || (MG = {})); +var DG; (function(t) { function e(r, n) { return { triggerKind: r, selectedCompletionInfo: n }; } t.create = e; -})(PG || (PG = {})); -var $G; +})(DG || (DG = {})); +var NG; (function(t) { function e(r) { const n = r; - return Fe.objectLiteral(n) && c9.is(n.uri) && Fe.string(n.name); + return Fe.objectLiteral(n) && a9.is(n.uri) && Fe.string(n.name); } t.is = e; -})($G || ($G = {})); -var BG; +})(NG || (NG = {})); +var IG; (function(t) { function e(s, a, o, l) { - return new OUt(s, a, o, l); + return new xUt(s, a, o, l); } t.create = e; function r(s) { @@ -77720,8 +77664,8 @@ var BG; s[d++] = u[f++]; return s; } -})(BG || (BG = {})); -class OUt { +})(IG || (IG = {})); +class xUt { constructor(e, r, n, i) { this._uri = e, this._languageId = r, this._version = n, this._content = i, this._lineOffsets = void 0; } @@ -77831,7 +77775,7 @@ var Fe; } t.typedArray = d; })(Fe || (Fe = {})); -class kUt { +class wUt { constructor() { this.nodeStack = []; } @@ -77839,14 +77783,14 @@ class kUt { return this.nodeStack[this.nodeStack.length - 1]; } buildRootNode(e) { - return this.rootNode = new _0e(e), this.rootNode.root = this.rootNode, this.nodeStack = [this.rootNode], this.rootNode; + return this.rootNode = new C0e(e), this.rootNode.root = this.rootNode, this.nodeStack = [this.rootNode], this.rootNode; } buildCompositeNode(e) { - const r = new VI(); + const r = new BI(); return r.grammarSource = e, r.root = this.rootNode, this.current.content.push(r), this.nodeStack.push(r), r; } buildLeafNode(e, r) { - const n = new O9(e.startOffset, e.image.length, ZL(e), e.tokenType, !1); + const n = new b9(e.startOffset, e.image.length, GL(e), e.tokenType, !1); return n.grammarSource = r, n.root = this.rootNode, this.current.content.push(n), n; } removeNode(e) { @@ -77864,7 +77808,7 @@ class kUt { } addHiddenTokens(e) { for (const r of e) { - const n = new O9(r.startOffset, r.image.length, ZL(r), r.tokenType, !0); + const n = new b9(r.startOffset, r.image.length, GL(r), r.tokenType, !0); n.root = this.rootNode, this.addHiddenToken(this.rootNode, n); } } @@ -77883,7 +77827,7 @@ class kUt { e.content.push(r); } } -class E0e { +class T0e { get parent() { return this.container; } @@ -77910,7 +77854,7 @@ class E0e { return this.root.fullText.substring(this.offset, this.end); } } -class O9 extends E0e { +class b9 extends T0e { get offset() { return this._offset; } @@ -77933,9 +77877,9 @@ class O9 extends E0e { super(), this._hidden = s, this._offset = e, this._tokenType = i, this._length = r, this._range = n; } } -class VI extends E0e { +class BI extends T0e { constructor() { - super(...arguments), this.content = new UI(this); + super(...arguments), this.content = new FI(this); } get children() { return this.content; @@ -77977,9 +77921,9 @@ class VI extends E0e { return this.content[this.content.length - 1]; } } -class UI extends Array { +class FI extends Array { constructor(e) { - super(), this.parent = e, Object.setPrototypeOf(this, UI.prototype); + super(), this.parent = e, Object.setPrototypeOf(this, FI.prototype); } push(...e) { return this.addParents(e), super.push(...e); @@ -77995,7 +77939,7 @@ class UI extends Array { r.container = this.parent; } } -class _0e extends VI { +class C0e extends BI { get text() { return this._text.substring(this.offset, this.end); } @@ -78006,16 +77950,16 @@ class _0e extends VI { super(), this._text = "", this._text = e != null ? e : ""; } } -const k9 = Symbol("Datatype"); -function H_(t) { - return t.$type === k9; +const x9 = Symbol("Datatype"); +function W_(t) { + return t.$type === x9; } -const FG = "\u200B", A0e = (t) => t.endsWith(FG) ? t : t + FG; -class L0e { +const PG = "\u200B", E0e = (t) => t.endsWith(PG) ? t : t + PG; +class _0e { constructor(e) { this._unorderedGroups = /* @__PURE__ */ new Map(), this.lexer = e.parser.Lexer; const r = this.lexer.definition; - this.wrapper = new _Ut(r, Object.assign(Object.assign({}, e.parser.ParserConfig), { errorMessageProvider: e.parser.ParserErrorMessageProvider })); + this.wrapper = new CUt(r, Object.assign(Object.assign({}, e.parser.ParserConfig), { errorMessageProvider: e.parser.ParserErrorMessageProvider })); } alternatives(e, r) { this.wrapper.wrapOr(e, r); @@ -78042,15 +77986,15 @@ class L0e { this.wrapper.wrapSelfAnalysis(); } } -class SUt extends L0e { +class OUt extends _0e { get current() { return this.stack[this.stack.length - 1]; } constructor(e) { - super(e), this.nodeBuilder = new kUt(), this.stack = [], this.assignmentMap = /* @__PURE__ */ new Map(), this.linker = e.references.Linker, this.converter = e.parser.ValueConverter, this.astReflection = e.shared.AstReflection; + super(e), this.nodeBuilder = new wUt(), this.stack = [], this.assignmentMap = /* @__PURE__ */ new Map(), this.linker = e.references.Linker, this.converter = e.parser.ValueConverter, this.astReflection = e.shared.AstReflection; } rule(e, r) { - const n = e.fragment ? void 0 : _I(e) ? k9 : wC(e), i = this.wrapper.DEFINE_RULE(A0e(e.name), this.startImplementation(n, r).bind(this)); + const n = e.fragment ? void 0 : TI(e) ? x9 : bC(e), i = this.wrapper.DEFINE_RULE(E0e(e.name), this.startImplementation(n, r).bind(this)); return e.entry && (this.mainRule = i), i; } parse(e) { @@ -78068,7 +78012,7 @@ class SUt extends L0e { return (n) => { if (!this.isRecording()) { const s = { $type: e }; - this.stack.push(s), e === k9 && (s.value = ""); + this.stack.push(s), e === x9 && (s.value = ""); } let i; try { @@ -78086,7 +78030,7 @@ class SUt extends L0e { if (a) { const u = b0(n) ? i.image : this.converter.convert(i.image, s); this.assign(a.operator, a.feature, u, s, o); - } else if (H_(l)) { + } else if (W_(l)) { let u = i.image; b0(n) || (u = this.converter.convert(u, s).toString()), l.value += u; } @@ -78107,7 +78051,7 @@ class SUt extends L0e { this.assign(i.operator, i.feature, e, n, s); else if (!i) { const a = this.current; - if (H_(a)) + if (W_(a)) a.value += e.toString(); else if (typeof e == "object" && e) { const o = e.$type, l = this.assignWithoutOverride(e, a); @@ -78133,14 +78077,14 @@ class SUt extends L0e { if (this.isRecording()) return; const r = this.current; - return nFt(r), this.nodeBuilder.construct(r), e && this.stack.pop(), H_(r) ? this.converter.convert(r.value, r.$cstNode) : (sFt(this.astReflection, r), r); + return tFt(r), this.nodeBuilder.construct(r), e && this.stack.pop(), W_(r) ? this.converter.convert(r.value, r.$cstNode) : (nFt(this.astReflection, r), r); } getAssignment(e) { if (!this.assignmentMap.has(e)) { - const r = yC(e, y0); + const r = mC(e, y0); this.assignmentMap.set(e, { assignment: r, - isCrossRef: r ? SI(r.terminal) : !1 + isCrossRef: r ? wI(r.terminal) : !1 }); } return this.assignmentMap.get(e); @@ -78172,7 +78116,7 @@ class SUt extends L0e { return this.wrapper.definitionErrors; } } -class TUt { +class kUt { buildMismatchTokenMessage(e) { return Vp.buildMismatchTokenMessage(e); } @@ -78186,7 +78130,7 @@ class TUt { return Vp.buildEarlyExitMessage(e); } } -class R0e extends TUt { +class A0e extends kUt { buildMismatchTokenMessage({ expected: e, actual: r }) { return `Expecting ${e.LABEL ? "`" + e.LABEL + "`" : e.name.endsWith(":KW") ? `keyword '${e.name.substring(0, e.name.length - 3)}'` : `token of type '${e.name}'`} but found \`${r.image}\`.`; } @@ -78194,7 +78138,7 @@ class R0e extends TUt { return `Expecting end of file but found \`${e.image}\`.`; } } -class CUt extends L0e { +class SUt extends _0e { constructor() { super(...arguments), this.tokens = [], this.elementStack = [], this.lastElementStack = [], this.nextTokenIndex = 0, this.stackSize = 0; } @@ -78212,7 +78156,7 @@ class CUt extends L0e { }; } rule(e, r) { - const n = this.wrapper.DEFINE_RULE(A0e(e.name), this.startImplementation(r).bind(this)); + const n = this.wrapper.DEFINE_RULE(E0e(e.name), this.startImplementation(r).bind(this)); return e.entry && (this.mainRule = n), n; } resetState() { @@ -78257,16 +78201,16 @@ class CUt extends L0e { return this.wrapper.currIdx; } } -const EUt = { +const TUt = { recoveryEnabled: !0, nodeLocationTracking: "full", skipValidations: !0, - errorMessageProvider: new R0e() + errorMessageProvider: new A0e() }; -class _Ut extends IVt { +class CUt extends DVt { constructor(e, r) { const n = r && "maxLookahead" in r; - super(e, Object.assign(Object.assign(Object.assign({}, EUt), { lookaheadStrategy: n ? new II({ maxLookahead: r.maxLookahead }) : new rUt() }), r)); + super(e, Object.assign(Object.assign(Object.assign({}, TUt), { lookaheadStrategy: n ? new MI({ maxLookahead: r.maxLookahead }) : new eUt() }), r)); } get IS_RECORDING() { return this.RECORDING_PHASE; @@ -78298,16 +78242,16 @@ class _Ut extends IVt { this.atLeastOne(e, r); } } -function M0e(t, e, r) { - return AUt({ +function L0e(t, e, r) { + return EUt({ parser: e, tokens: r, rules: /* @__PURE__ */ new Map(), ruleNames: /* @__PURE__ */ new Map() }, t), e; } -function AUt(t, e) { - const r = Lde(e, !1), n = os(e.rules).filter(Jo).filter((i) => r.has(i)); +function EUt(t, e) { + const r = _de(e, !1), n = os(e.rules).filter(Jo).filter((i) => r.has(i)); for (const i of n) { const s = Object.assign(Object.assign({}, t), { consume: 1, optional: 1, subrule: 1, many: 1, or: 1 }); s.rules.set(i.name, t.parser.rule(i, O0(s, i.definition))); @@ -78316,46 +78260,46 @@ function AUt(t, e) { function O0(t, e, r = !1) { let n; if (b0(e)) - n = PUt(t, e); - else if (vC(e)) - n = LUt(t, e); + n = NUt(t, e); + else if (gC(e)) + n = _Ut(t, e); else if (y0(e)) n = O0(t, e.terminal); - else if (SI(e)) - n = D0e(t, e); + else if (wI(e)) + n = R0e(t, e); else if (x0(e)) + n = AUt(t, e); + else if (ade(e)) n = RUt(t, e); - else if (lde(e)) + else if (wde(e)) + n = MUt(t, e); + else if (OI(e)) n = DUt(t, e); - else if (kde(e)) - n = NUt(t, e); - else if (TI(e)) - n = IUt(t, e); - else if (ZBt(e)) { + else if (HBt(e)) { const i = t.consume++; n = () => t.parser.consume(i, _f, e); } else - throw new Qfe(e.$cstNode, `Unexpected element type: ${e.$type}`); - return N0e(t, r ? void 0 : Bk(e), n, e.cardinality); + throw new qfe(e.$cstNode, `Unexpected element type: ${e.$type}`); + return M0e(t, r ? void 0 : $k(e), n, e.cardinality); } -function LUt(t, e) { - const r = wC(e); +function _Ut(t, e) { + const r = bC(e); return () => t.parser.action(r, e); } -function RUt(t, e) { +function AUt(t, e) { const r = e.rule.ref; if (Jo(r)) { - const n = t.subrule++, i = e.arguments.length > 0 ? MUt(r, e.arguments) : () => ({}); - return (s) => t.parser.subrule(n, I0e(t, r), e, i(s)); + const n = t.subrule++, i = e.arguments.length > 0 ? LUt(r, e.arguments) : () => ({}); + return (s) => t.parser.subrule(n, D0e(t, r), e, i(s)); } else if (tp(r)) { - const n = t.consume++, i = S9(t, r.name); + const n = t.consume++, i = w9(t, r.name); return () => t.parser.consume(n, i, e); } else if (r) - mC(); + pC(); else - throw new Qfe(e.$cstNode, `Undefined rule type: ${e.$type}`); + throw new qfe(e.$cstNode, `Undefined rule type: ${e.$type}`); } -function MUt(t, e) { +function LUt(t, e) { const r = e.map((n) => vu(n.value)); return (n) => { const i = {}; @@ -78367,25 +78311,25 @@ function MUt(t, e) { }; } function vu(t) { - if ($Bt(t)) { + if (IBt(t)) { const e = vu(t.left), r = vu(t.right); return (n) => e(n) || r(n); - } else if (PBt(t)) { + } else if (NBt(t)) { const e = vu(t.left), r = vu(t.right); return (n) => e(n) && r(n); - } else if (FBt(t)) { + } else if ($Bt(t)) { const e = vu(t.value); return (r) => !e(r); - } else if (UBt(t)) { + } else if (zBt(t)) { const e = t.parameter.ref.name; return (r) => r !== void 0 && r[e] === !0; - } else if (IBt(t)) { + } else if (DBt(t)) { const e = Boolean(t.true); return () => e; } - mC(); + pC(); } -function DUt(t, e) { +function RUt(t, e) { if (e.elements.length === 1) return O0(t, e.elements[0]); { @@ -78393,7 +78337,7 @@ function DUt(t, e) { for (const i of e.elements) { const s = { ALT: O0(t, i, !0) - }, a = Bk(i); + }, a = $k(i); a && (s.GATE = vu(a)), r.push(s); } const n = t.or++; @@ -78405,14 +78349,14 @@ function DUt(t, e) { })); } } -function NUt(t, e) { +function MUt(t, e) { if (e.elements.length === 1) return O0(t, e.elements[0]); const r = []; for (const o of e.elements) { const l = { ALT: O0(t, o, !0) - }, u = Bk(o); + }, u = $k(o); u && (l.GATE = vu(u)), r.push(l); } const n = t.or++, i = (o, l) => { @@ -78433,48 +78377,48 @@ function NUt(t, e) { const p = f.unorderedGroups.get(i(n, f)); return !(p != null && p[u]); }, h; - })), a = N0e(t, Bk(e), s, "*"); + })), a = M0e(t, $k(e), s, "*"); return (o) => { a(o), t.parser.isRecording() || t.parser.unorderedGroups.delete(i(n, t.parser)); }; } -function IUt(t, e) { +function DUt(t, e) { const r = e.elements.map((n) => O0(t, n)); return (n) => r.forEach((i) => i(n)); } -function Bk(t) { - if (TI(t)) +function $k(t) { + if (OI(t)) return t.guardCondition; } -function D0e(t, e, r = e.terminal) { +function R0e(t, e, r = e.terminal) { if (r) if (x0(r) && Jo(r.rule.ref)) { const n = t.subrule++; - return (i) => t.parser.subrule(n, I0e(t, r.rule.ref), e, i); + return (i) => t.parser.subrule(n, D0e(t, r.rule.ref), e, i); } else if (x0(r) && tp(r.rule.ref)) { - const n = t.consume++, i = S9(t, r.rule.ref.name); + const n = t.consume++, i = w9(t, r.rule.ref.name); return () => t.parser.consume(n, i, e); } else if (b0(r)) { - const n = t.consume++, i = S9(t, r.value); + const n = t.consume++, i = w9(t, r.value); return () => t.parser.consume(n, i, e); } else throw new Error("Could not build cross reference parser"); else { if (!e.type.ref) throw new Error("Could not resolve reference to type: " + e.type.$refText); - const n = Dde(e.type.ref), i = n == null ? void 0 : n.terminal; + const n = Rde(e.type.ref), i = n == null ? void 0 : n.terminal; if (!i) - throw new Error("Could not find name assignment for type: " + wC(e.type.ref)); - return D0e(t, e, i); + throw new Error("Could not find name assignment for type: " + bC(e.type.ref)); + return R0e(t, e, i); } } -function PUt(t, e) { +function NUt(t, e) { const r = t.consume++, n = t.tokens[e.value]; if (!n) throw new Error("Could not find token for keyword: " + e.value); return () => t.parser.consume(r, n, e); } -function N0e(t, e, r, n) { +function M0e(t, e, r, n) { const i = e && vu(e); if (!n) if (i) { @@ -78485,7 +78429,7 @@ function N0e(t, e, r, n) { GATE: () => i(a) }, { - ALT: NW(), + ALT: RW(), GATE: () => !i(a) } ]); @@ -78509,7 +78453,7 @@ function N0e(t, e, r, n) { GATE: () => i(o) }, { - ALT: NW(), + ALT: RW(), GATE: () => !i(o) } ]); @@ -78524,15 +78468,15 @@ function N0e(t, e, r, n) { GATE: i ? () => i(a) : void 0 }); } else - mC(); + pC(); } -function I0e(t, e) { - const r = $Ut(t, e), n = t.rules.get(r); +function D0e(t, e) { + const r = IUt(t, e), n = t.rules.get(r); if (!n) throw new Error(`Rule "${r}" not found."`); return n; } -function $Ut(t, e) { +function IUt(t, e) { if (Jo(e)) return e.name; if (t.ruleNames.has(e)) @@ -78540,46 +78484,46 @@ function $Ut(t, e) { { let r = e, n = r.$container, i = e.$type; for (; !Jo(n); ) - (TI(n) || lde(n) || kde(n)) && (i = n.elements.indexOf(r).toString() + ":" + i), r = n, n = n.$container; + (OI(n) || ade(n) || wde(n)) && (i = n.elements.indexOf(r).toString() + ":" + i), r = n, n = n.$container; return i = n.name + ":" + i, t.ruleNames.set(e, i), i; } } -function S9(t, e) { +function w9(t, e) { const r = t.tokens[e]; if (!r) throw new Error(`Token "${e}" not found."`); return r; } -function BUt(t) { - const e = t.Grammar, r = t.parser.Lexer, n = new CUt(t); - return M0e(e, n, r.definition), n.finalize(), n; +function PUt(t) { + const e = t.Grammar, r = t.parser.Lexer, n = new SUt(t); + return L0e(e, n, r.definition), n.finalize(), n; } -function FUt(t) { - const e = zUt(t); +function $Ut(t) { + const e = BUt(t); return e.finalize(), e; } -function zUt(t) { - const e = t.Grammar, r = t.parser.Lexer, n = new SUt(t); - return M0e(e, n, r.definition); +function BUt(t) { + const e = t.Grammar, r = t.parser.Lexer, n = new OUt(t); + return L0e(e, n, r.definition); } -class P0e { +class N0e { buildTokens(e, r) { - const n = os(Lde(e, !1)), i = this.buildTerminalTokens(n), s = this.buildKeywordTokens(n, i, r); + const n = os(_de(e, !1)), i = this.buildTerminalTokens(n), s = this.buildKeywordTokens(n, i, r); return i.forEach((a) => { const o = a.PATTERN; - typeof o == "object" && o && "test" in o && uW(o) ? s.unshift(a) : s.push(a); + typeof o == "object" && o && "test" in o && oW(o) ? s.unshift(a) : s.push(a); }), s; } buildTerminalTokens(e) { return e.filter(tp).filter((r) => !r.fragment).map((r) => this.buildTerminalToken(r)).toArray(); } buildTerminalToken(e) { - const r = AI(e), n = this.requiresCustomPattern(r) ? this.regexPatternFunction(r) : r, i = { + const r = CI(e), n = this.requiresCustomPattern(r) ? this.regexPatternFunction(r) : r, i = { name: e.name, PATTERN: n, LINE_BREAKS: !0 }; - return e.hidden && (i.GROUP = uW(r) ? Na.SKIPPED : "hidden"), i; + return e.hidden && (i.GROUP = oW(r) ? Na.SKIPPED : "hidden"), i; } requiresCustomPattern(e) { return e.flags.includes("u") ? !0 : !!(e.source.includes("?<=") || e.source.includes("? { const s = i == null ? void 0 : i.PATTERN; - return (s == null ? void 0 : s.source) && pFt("^" + s.source + "$", e.value) && n.push(i), n; + return (s == null ? void 0 : s.source) && fFt("^" + s.source + "$", e.value) && n.push(i), n; }, []); } } -class $0e { +class I0e { convert(e, r) { let n = r.grammarSource; - if (SI(n) && (n = yFt(n)), x0(n)) { + if (wI(n) && (n = mFt(n)), x0(n)) { const i = n.rule.ref; if (!i) throw new Error("This cst node was not parsed by a rule."); @@ -78629,7 +78573,7 @@ class $0e { case "ID": return du.convertID(r); } - switch ((i = TFt(e)) === null || i === void 0 ? void 0 : i.toLowerCase()) { + switch ((i = kFt(e)) === null || i === void 0 ? void 0 : i.toLowerCase()) { case "number": return du.convertNumber(r); case "boolean": @@ -78704,67 +78648,67 @@ var du; } t.convertBoolean = l; })(du || (du = {})); -var N2 = {}, AC = {}; -Object.defineProperty(AC, "__esModule", { value: !0 }); -let T9; -function C9() { - if (T9 === void 0) +var N2 = {}, EC = {}; +Object.defineProperty(EC, "__esModule", { value: !0 }); +let O9; +function k9() { + if (O9 === void 0) throw new Error("No runtime abstraction layer installed"); - return T9; + return O9; } (function(t) { function e(r) { if (r === void 0) throw new Error("No runtime abstraction layer provided"); - T9 = r; + O9 = r; } t.install = e; -})(C9 || (C9 = {})); -AC.default = C9; +})(k9 || (k9 = {})); +EC.default = k9; var Rs = {}; Object.defineProperty(Rs, "__esModule", { value: !0 }); Rs.stringArray = Rs.array = Rs.func = Rs.error = Rs.number = Rs.string = Rs.boolean = void 0; -function VUt(t) { +function FUt(t) { return t === !0 || t === !1; } -Rs.boolean = VUt; -function B0e(t) { +Rs.boolean = FUt; +function P0e(t) { return typeof t == "string" || t instanceof String; } -Rs.string = B0e; -function UUt(t) { +Rs.string = P0e; +function zUt(t) { return typeof t == "number" || t instanceof Number; } -Rs.number = UUt; -function qUt(t) { +Rs.number = zUt; +function VUt(t) { return t instanceof Error; } -Rs.error = qUt; -function YUt(t) { +Rs.error = VUt; +function UUt(t) { return typeof t == "function"; } -Rs.func = YUt; -function F0e(t) { +Rs.func = UUt; +function $0e(t) { return Array.isArray(t); } -Rs.array = F0e; -function QUt(t) { - return F0e(t) && t.every((e) => B0e(e)); +Rs.array = $0e; +function qUt(t) { + return $0e(t) && t.every((e) => P0e(e)); } -Rs.stringArray = QUt; +Rs.stringArray = qUt; var x1 = {}; Object.defineProperty(x1, "__esModule", { value: !0 }); x1.Emitter = x1.Event = void 0; -const WUt = AC; -var zG; +const YUt = EC; +var $G; (function(t) { const e = { dispose() { } }; t.None = function() { return e; }; -})(zG || (x1.Event = zG = {})); -class GUt { +})($G || (x1.Event = $G = {})); +class QUt { add(e, r = null, n) { this._callbacks || (this._callbacks = [], this._contexts = []), this._callbacks.push(e), this._contexts.push(r), Array.isArray(n) && n.push({ dispose: () => this.remove(e, r) }); } @@ -78790,7 +78734,7 @@ class GUt { try { r.push(n[s].apply(i[s], e)); } catch (o) { - (0, WUt.default)().console.error(o); + (0, YUt.default)().console.error(o); } return r; } @@ -78801,16 +78745,16 @@ class GUt { this._callbacks = void 0, this._contexts = void 0; } } -class LC { +class _C { constructor(e) { this._options = e; } get event() { return this._event || (this._event = (e, r, n) => { - this._callbacks || (this._callbacks = new GUt()), this._options && this._options.onFirstListenerAdd && this._callbacks.isEmpty() && this._options.onFirstListenerAdd(this), this._callbacks.add(e, r); + this._callbacks || (this._callbacks = new QUt()), this._options && this._options.onFirstListenerAdd && this._callbacks.isEmpty() && this._options.onFirstListenerAdd(this), this._callbacks.add(e, r); const i = { dispose: () => { - !this._callbacks || (this._callbacks.remove(e, r), i.dispose = LC._noop, this._options && this._options.onLastListenerRemove && this._callbacks.isEmpty() && this._options.onLastListenerRemove(this)); + !this._callbacks || (this._callbacks.remove(e, r), i.dispose = _C._noop, this._options && this._options.onLastListenerRemove && this._callbacks.isEmpty() && this._options.onLastListenerRemove(this)); } }; return Array.isArray(n) && n.push(i), i; @@ -78823,35 +78767,35 @@ class LC { this._callbacks && (this._callbacks.dispose(), this._callbacks = void 0); } } -x1.Emitter = LC; -LC._noop = function() { +x1.Emitter = _C; +_C._noop = function() { }; var Gi; Object.defineProperty(N2, "__esModule", { value: !0 }); -var E9 = N2.CancellationTokenSource = Gi = N2.CancellationToken = void 0; -const HUt = AC, XUt = Rs, _9 = x1; -var Fk; +var S9 = N2.CancellationTokenSource = Gi = N2.CancellationToken = void 0; +const WUt = EC, GUt = Rs, T9 = x1; +var Bk; (function(t) { t.None = Object.freeze({ isCancellationRequested: !1, - onCancellationRequested: _9.Event.None + onCancellationRequested: T9.Event.None }), t.Cancelled = Object.freeze({ isCancellationRequested: !0, - onCancellationRequested: _9.Event.None + onCancellationRequested: T9.Event.None }); function e(r) { const n = r; - return n && (n === t.None || n === t.Cancelled || XUt.boolean(n.isCancellationRequested) && !!n.onCancellationRequested); + return n && (n === t.None || n === t.Cancelled || GUt.boolean(n.isCancellationRequested) && !!n.onCancellationRequested); } t.is = e; -})(Fk || (Gi = N2.CancellationToken = Fk = {})); -const ZUt = Object.freeze(function(t, e) { - const r = (0, HUt.default)().timer.setTimeout(t.bind(e), 0); +})(Bk || (Gi = N2.CancellationToken = Bk = {})); +const HUt = Object.freeze(function(t, e) { + const r = (0, WUt.default)().timer.setTimeout(t.bind(e), 0); return { dispose() { r.dispose(); } }; }); -class VG { +class BG { constructor() { this._isCancelled = !1; } @@ -78862,42 +78806,42 @@ class VG { return this._isCancelled; } get onCancellationRequested() { - return this._isCancelled ? ZUt : (this._emitter || (this._emitter = new _9.Emitter()), this._emitter.event); + return this._isCancelled ? HUt : (this._emitter || (this._emitter = new T9.Emitter()), this._emitter.event); } dispose() { this._emitter && (this._emitter.dispose(), this._emitter = void 0); } } -class jUt { +class XUt { get token() { - return this._token || (this._token = new VG()), this._token; + return this._token || (this._token = new BG()), this._token; } cancel() { - this._token ? this._token.cancel() : this._token = Fk.Cancelled; + this._token ? this._token.cancel() : this._token = Bk.Cancelled; } dispose() { - this._token ? this._token instanceof VG && this._token.dispose() : this._token = Fk.None; + this._token ? this._token instanceof BG && this._token.dispose() : this._token = Bk.None; } } -E9 = N2.CancellationTokenSource = jUt; -function KUt() { +S9 = N2.CancellationTokenSource = XUt; +function ZUt() { return new Promise((t) => { typeof setImmediate > "u" ? setTimeout(t, 0) : setImmediate(t); }); } -let UG = 0, JUt = 10; -const zk = Symbol("OperationCancelled"); -function qI(t) { - return t === zk; +let FG = 0, jUt = 10; +const Fk = Symbol("OperationCancelled"); +function zI(t) { + return t === Fk; } async function El(t) { if (t === Gi.None) return; const e = Date.now(); - if (e - UG >= JUt && (UG = e, await KUt()), t.isCancellationRequested) - throw zk; + if (e - FG >= jUt && (FG = e, await ZUt()), t.isCancellationRequested) + throw Fk; } -class YI { +class VI { constructor() { this.promise = new Promise((e, r) => { this.resolve = (n) => (e(n), this), this.reject = (n) => (r(n), this); @@ -78927,11 +78871,11 @@ class I2 { update(e, r) { for (const n of e) if (I2.isIncremental(n)) { - const i = V0e(n.range), s = this.offsetAt(i.start), a = this.offsetAt(i.end); + const i = F0e(n.range), s = this.offsetAt(i.start), a = this.offsetAt(i.end); this._content = this._content.substring(0, s) + n.text + this._content.substring(a, this._content.length); const o = Math.max(i.start.line, 0), l = Math.max(i.end.line, 0); let u = this._lineOffsets; - const h = qG(n.text, !1, s); + const h = zG(n.text, !1, s); if (l - o === h.length) for (let d = 0, p = h.length; d < p; d++) u[d + o + 1] = h[d]; @@ -78948,7 +78892,7 @@ class I2 { this._version = r; } getLineOffsets() { - return this._lineOffsets === void 0 && (this._lineOffsets = qG(this._content, !0)), this._lineOffsets; + return this._lineOffsets === void 0 && (this._lineOffsets = zG(this._content, !0)), this._lineOffsets; } positionAt(e) { e = Math.max(Math.min(e, this._content.length), 0); @@ -78976,7 +78920,7 @@ class I2 { return this.ensureBeforeEOL(s, n); } ensureBeforeEOL(e, r) { - for (; e > r && z0e(this._content.charCodeAt(e - 1)); ) + for (; e > r && B0e(this._content.charCodeAt(e - 1)); ) e--; return e; } @@ -78992,7 +78936,7 @@ class I2 { return r != null && typeof r.text == "string" && r.range === void 0 && r.rangeLength === void 0; } } -var A9; +var C9; (function(t) { function e(i, s, a, o) { return new I2(i, s, a, o); @@ -79005,7 +78949,7 @@ var A9; } t.update = r; function n(i, s) { - const a = i.getText(), o = L9(s.map(eqt), (h, f) => { + const a = i.getText(), o = E9(s.map(KUt), (h, f) => { const d = h.range.start.line - f.range.start.line; return d === 0 ? h.range.start.character - f.range.start.character : d; }); @@ -79020,12 +78964,12 @@ var A9; return u.push(a.substr(l)), u.join(""); } t.applyEdits = n; -})(A9 || (A9 = {})); -function L9(t, e) { +})(C9 || (C9 = {})); +function E9(t, e) { if (t.length <= 1) return t; const r = t.length / 2 | 0, n = t.slice(0, r), i = t.slice(r); - L9(n, e), L9(i, e); + E9(n, e), E9(i, e); let s = 0, a = 0, o = 0; for (; s < n.length && a < i.length; ) e(n[s], i[a]) <= 0 ? t[o++] = n[s++] : t[o++] = i[a++]; @@ -79035,26 +78979,26 @@ function L9(t, e) { t[o++] = i[a++]; return t; } -function qG(t, e, r = 0) { +function zG(t, e, r = 0) { const n = e ? [r] : []; for (let i = 0; i < t.length; i++) { const s = t.charCodeAt(i); - z0e(s) && (s === 13 && i + 1 < t.length && t.charCodeAt(i + 1) === 10 && i++, n.push(r + i + 1)); + B0e(s) && (s === 13 && i + 1 < t.length && t.charCodeAt(i + 1) === 10 && i++, n.push(r + i + 1)); } return n; } -function z0e(t) { +function B0e(t) { return t === 13 || t === 10; } -function V0e(t) { +function F0e(t) { const e = t.start, r = t.end; return e.line > r.line || e.line === r.line && e.character > r.character ? { start: r, end: e } : t; } -function eqt(t) { - const e = V0e(t.range); +function KUt(t) { + const e = F0e(t.range); return e !== t.range ? { newText: t.newText, range: e } : t; } -var U0e; +var z0e; (() => { var t = { 470: (i) => { function s(l) { @@ -79421,9 +79365,9 @@ var U0e; return L.extname(A.path); }; })(R || (R = {})); - })(), U0e = n; + })(), z0e = n; })(); -const { URI: w1, Utils: iv } = U0e; +const { URI: w1, Utils: iv } = z0e; var Lf; (function(t) { t.basename = iv.basename, t.dirname = iv.dirname, t.extname = iv.extname, t.joinPath = iv.joinPath, t.resolvePath = iv.resolvePath; @@ -79445,7 +79389,7 @@ var kn; (function(t) { t[t.Changed = 0] = "Changed", t[t.Parsed = 1] = "Parsed", t[t.IndexedContent = 2] = "IndexedContent", t[t.ComputedScopes = 3] = "ComputedScopes", t[t.Linked = 4] = "Linked", t[t.IndexedReferences = 5] = "IndexedReferences", t[t.Validated = 6] = "Validated"; })(kn || (kn = {})); -class tqt { +class JUt { constructor(e) { this.serviceRegistry = e.ServiceRegistry, this.textDocuments = e.workspace.TextDocuments, this.fileSystemProvider = e.workspace.FileSystemProvider; } @@ -79531,10 +79475,10 @@ class tqt { createTextDocumentGetter(e, r) { const n = this.serviceRegistry; let i; - return () => i != null ? i : i = A9.create(e.toString(), n.getServices(e).LanguageMetaData.languageId, 0, r != null ? r : ""); + return () => i != null ? i : i = C9.create(e.toString(), n.getServices(e).LanguageMetaData.languageId, 0, r != null ? r : ""); } } -class rqt { +class eqt { constructor(e) { this.documentMap = /* @__PURE__ */ new Map(), this.langiumDocumentFactory = e.workspace.LangiumDocumentFactory; } @@ -79575,20 +79519,20 @@ class rqt { return n && (n.state = kn.Changed, this.documentMap.delete(r)), n; } } -class nqt { +class tqt { constructor(e) { this.reflection = e.shared.AstReflection, this.langiumDocuments = () => e.shared.workspace.LangiumDocuments, this.scopeProvider = e.references.ScopeProvider, this.astNodeLocator = e.workspace.AstNodeLocator; } async link(e, r = Gi.None) { for (const n of ug(e.parseResult.value)) - await El(r), Ede(n).forEach((i) => this.doLink(i, e)); + await El(r), Tde(n).forEach((i) => this.doLink(i, e)); } doLink(e, r) { const n = e.reference; if (n._ref === void 0) try { const i = this.getCandidate(e); - if (H4(i)) + if (G4(i)) n._ref = i; else if (n._nodeDescription = i, this.langiumDocuments().hasDocument(i.documentUri)) { const s = this.loadAstNode(i); @@ -79616,7 +79560,7 @@ class nqt { var o; if (Ps(this._ref)) return this._ref; - if (OBt(this._nodeDescription)) { + if (xBt(this._nodeDescription)) { const l = s.loadAstNode(this._nodeDescription); this._ref = l != null ? l : s.createLinkingError({ reference: a, container: e, property: r }, this._nodeDescription); } else if (this._ref === void 0) { @@ -79631,7 +79575,7 @@ class nqt { return this._nodeDescription; }, get error() { - return H4(this._ref) ? this._ref : void 0; + return G4(this._ref) ? this._ref : void 0; } }; return a; @@ -79639,7 +79583,7 @@ class nqt { getLinkedNode(e) { try { const r = this.getCandidate(e); - if (H4(r)) + if (G4(r)) return { error: r }; const n = this.loadAstNode(r); return n ? { node: n, descr: r } : { @@ -79666,25 +79610,25 @@ class nqt { return Object.assign(Object.assign({}, e), { message: `Could not resolve reference to ${i} named '${e.reference.$refText}'.`, targetDescription: r }); } } -function iqt(t) { +function rqt(t) { return typeof t.name == "string"; } -class sqt { +class nqt { getName(e) { - if (iqt(e)) + if (rqt(e)) return e.name; } getNameNode(e) { - return Mde(e.$cstNode, "name"); + return Lde(e.$cstNode, "name"); } } -class aqt { +class iqt { constructor(e) { this.nameProvider = e.references.NameProvider, this.index = e.shared.workspace.IndexManager, this.nodeLocator = e.workspace.AstNodeLocator; } findDeclaration(e) { if (e) { - const r = kFt(e), n = e.astNode; + const r = wFt(e), n = e.astNode; if (r && n) { const i = n[r.feature]; if (kc(i)) @@ -79697,7 +79641,7 @@ class aqt { } if (n) { const i = this.nameProvider.getNameNode(n); - if (i && (i === e || TBt(e, i))) + if (i && (i === e || kBt(e, i))) return n; } } @@ -79727,20 +79671,20 @@ class aqt { sourcePath: i, targetUri: n.uri, targetPath: i, - segment: wk(r), + segment: xk(r), local: !0 }; } } } -class QI { +class UI { constructor(e) { if (this.map = /* @__PURE__ */ new Map(), e) for (const [r, n] of e) this.add(r, n); } get size() { - return HL.sum(os(this.map.values()).map((e) => e.length)); + return QL.sum(os(this.map.values()).map((e) => e.length)); } clear() { this.map.clear(); @@ -79795,7 +79739,7 @@ class QI { return os(this.map.entries()); } } -class YG { +class VG { get size() { return this.map.size; } @@ -79821,14 +79765,14 @@ class YG { return r !== void 0 ? (this.map.delete(e), this.inverse.delete(r), !0) : !1; } } -class oqt { +class sqt { constructor(e) { this.nameProvider = e.references.NameProvider, this.descriptions = e.workspace.AstNodeDescriptionProvider; } async computeExports(e, r = Gi.None) { return this.computeExportsForNode(e.parseResult.value, e, void 0, r); } - async computeExportsForNode(e, r, n = CI, i = Gi.None) { + async computeExportsForNode(e, r, n = kI, i = Gi.None) { const s = []; this.exportNode(e, s, r); for (const a of n(e)) @@ -79840,7 +79784,7 @@ class oqt { i && r.push(this.descriptions.createDescription(e, i, n)); } async computeLocalScopes(e, r = Gi.None) { - const n = e.parseResult.value, i = new QI(); + const n = e.parseResult.value, i = new UI(); for (const s of Dx(n)) await El(r), this.processNode(s, e, i); return i; @@ -79853,7 +79797,7 @@ class oqt { } } } -class QG { +class UG { constructor(e, r, n) { var i; this.elements = e, this.outerScope = r, this.caseInsensitive = (i = n == null ? void 0 : n.caseInsensitive) !== null && i !== void 0 ? i : !1; @@ -79869,7 +79813,7 @@ class QG { return this.outerScope.getElement(e); } } -class lqt { +class aqt { constructor(e, r, n) { var i; this.elements = /* @__PURE__ */ new Map(), this.caseInsensitive = (i = n == null ? void 0 : n.caseInsensitive) !== null && i !== void 0 ? i : !1; @@ -79891,7 +79835,7 @@ class lqt { return this.outerScope && (e = e.concat(this.outerScope.getAllElements())), e; } } -class q0e { +class V0e { constructor() { this.toDispose = [], this.isDisposed = !1; } @@ -79906,7 +79850,7 @@ class q0e { throw new Error("This cache has already been disposed"); } } -class cqt extends q0e { +class oqt extends V0e { constructor() { super(...arguments), this.cache = /* @__PURE__ */ new Map(); } @@ -79932,7 +79876,7 @@ class cqt extends q0e { this.throwIfDisposed(), this.cache.clear(); } } -class uqt extends q0e { +class lqt extends V0e { constructor(e) { super(), this.cache = /* @__PURE__ */ new Map(), this.converter = e != null ? e : (r) => r; } @@ -79969,16 +79913,16 @@ class uqt extends q0e { return n || (n = /* @__PURE__ */ new Map(), this.cache.set(r, n)), n; } } -class hqt extends cqt { +class cqt extends oqt { constructor(e) { super(), this.onDispose(e.workspace.DocumentBuilder.onUpdate(() => { this.clear(); })); } } -class fqt { +class uqt { constructor(e) { - this.reflection = e.shared.AstReflection, this.nameProvider = e.references.NameProvider, this.descriptions = e.workspace.AstNodeDescriptionProvider, this.indexManager = e.shared.workspace.IndexManager, this.globalScopeCache = new hqt(e.shared); + this.reflection = e.shared.AstReflection, this.nameProvider = e.references.NameProvider, this.descriptions = e.workspace.AstNodeDescriptionProvider, this.indexManager = e.shared.workspace.IndexManager, this.globalScopeCache = new cqt(e.shared); } getScope(e) { const r = [], n = this.reflection.getReferenceType(e), i = zc(e.container).precomputedScopes; @@ -79995,7 +79939,7 @@ class fqt { return s; } createScope(e, r, n) { - return new QG(os(e), r, n); + return new UG(os(e), r, n); } createScopeForNodes(e, r, n) { const i = os(e).map((s) => { @@ -80003,19 +79947,19 @@ class fqt { if (a) return this.descriptions.createDescription(s, a); }).nonNullable(); - return new QG(i, r, n); + return new UG(i, r, n); } getGlobalScope(e, r) { - return this.globalScopeCache.get(e, () => new lqt(this.indexManager.allElements(e))); + return this.globalScopeCache.get(e, () => new aqt(this.indexManager.allElements(e))); } } -function dqt(t) { +function hqt(t) { return typeof t.$comment == "string"; } -function WG(t) { +function qG(t) { return typeof t == "object" && !!t && ("$ref" in t || "$error" in t); } -class pqt { +class fqt { constructor(e) { this.ignoreProperties = /* @__PURE__ */ new Set(["$container", "$containerProperty", "$containerIndex", "$document", "$cstNode"]), this.langiumDocuments = e.shared.workspace.LangiumDocuments, this.astNodeLocator = e.workspace.AstNodeLocator, this.nameProvider = e.references.NameProvider, this.commentProvider = e.documentation.CommentProvider; } @@ -80071,7 +80015,7 @@ class pqt { if (e.$cstNode) { const n = e.$textRegion = r(e.$cstNode), i = n.assignments = {}; return Object.keys(e).filter((s) => !s.startsWith("$")).forEach((s) => { - const a = xFt(e.$cstNode, s).map(r); + const a = yFt(e.$cstNode, s).map(r); a.length !== 0 && (i[s] = a); }), e; } @@ -80081,10 +80025,10 @@ class pqt { if (Array.isArray(u)) for (let h = 0; h < u.length; h++) { const f = u[h]; - WG(f) ? u[h] = this.reviveReference(e, l, r, f, n) : Ps(f) && this.linkNode(f, r, n, e, l, h); + qG(f) ? u[h] = this.reviveReference(e, l, r, f, n) : Ps(f) && this.linkNode(f, r, n, e, l, h); } else - WG(u) ? e[l] = this.reviveReference(e, l, r, u, n) : Ps(u) && this.linkNode(u, r, n, e, l); + qG(u) ? e[l] = this.reviveReference(e, l, r, u, n) : Ps(u) && this.linkNode(u, r, n, e, l); const o = e; o.$container = i, o.$containerProperty = s, o.$containerIndex = a; } @@ -80135,7 +80079,7 @@ class pqt { } } } -class gqt { +class dqt { register(e) { if (!this.singleton && !this.map) { this.singleton = e; @@ -80163,16 +80107,16 @@ class gqt { return this.singleton !== void 0 ? [this.singleton] : this.map !== void 0 ? Object.values(this.map) : []; } } -function GG(t) { +function YG(t) { return { code: t }; } -var Vk; +var zk; (function(t) { t.all = ["fast", "slow", "built-in"]; -})(Vk || (Vk = {})); -class mqt { +})(zk || (zk = {})); +class pqt { constructor(e) { - this.entries = new QI(), this.reflection = e.shared.AstReflection; + this.entries = new UI(), this.reflection = e.shared.AstReflection; } register(e, r = this, n = "fast") { if (n === "built-in") @@ -80201,7 +80145,7 @@ class mqt { try { await e.call(r, n, i, s); } catch (a) { - if (qI(a)) + if (zI(a)) throw a; console.error("An error occurred during validation:", a); const o = a instanceof Error ? a.message : String(a); @@ -80222,7 +80166,7 @@ class mqt { return r && (n = n.filter((i) => r.includes(i.category))), n.map((i) => i.check); } } -class vqt { +class gqt { constructor(e) { this.validationRegistry = e.validation.ValidationRegistry, this.metadata = e.LanguageMetaData; } @@ -80242,7 +80186,7 @@ class vqt { try { s.push(...await this.validateAst(i.value, r, n)); } catch (a) { - if (qI(a)) + if (zI(a)) throw a; console.error("An error occurred during validation:", a); } @@ -80251,7 +80195,7 @@ class vqt { processLexingErrors(e, r, n) { for (const i of e.lexerErrors) { const s = { - severity: X_("error"), + severity: G_("error"), range: { start: { line: i.line - 1, @@ -80263,7 +80207,7 @@ class vqt { } }, message: i.message, - data: GG(Ch.LexingError), + data: YG(Ch.LexingError), source: this.getSource() }; r.push(s); @@ -80284,13 +80228,13 @@ class vqt { } } } else - s = ZL(i.token); + s = GL(i.token); if (s) { const a = { - severity: X_("error"), + severity: G_("error"), range: s, message: i.message, - data: GG(Ch.ParsingError), + data: YG(Ch.ParsingError), source: this.getSource() }; r.push(a); @@ -80330,8 +80274,8 @@ class vqt { toDiagnostic(e, r, n) { return { message: r, - range: yqt(n), - severity: X_(e), + range: mqt(n), + severity: G_(e), code: n.code, codeDescription: n.codeDescription, tags: n.tags, @@ -80344,16 +80288,16 @@ class vqt { return this.metadata.languageId; } } -function yqt(t) { +function mqt(t) { if (t.range) return t.range; let e; - return typeof t.property == "string" ? e = Mde(t.node.$cstNode, t.property, t.index) : typeof t.keyword == "string" && (e = wFt(t.node.$cstNode, t.keyword, t.index)), e != null || (e = t.node.$cstNode), e ? e.range : { + return typeof t.property == "string" ? e = Lde(t.node.$cstNode, t.property, t.index) : typeof t.keyword == "string" && (e = bFt(t.node.$cstNode, t.keyword, t.index)), e != null || (e = t.node.$cstNode), e ? e.range : { start: { line: 0, character: 0 }, end: { line: 0, character: 0 } }; } -function X_(t) { +function G_(t) { switch (t) { case "error": return 1; @@ -80371,7 +80315,7 @@ var Ch; (function(t) { t.LexingError = "lexing-error", t.ParsingError = "parsing-error", t.LinkingError = "linking-error"; })(Ch || (Ch = {})); -class bqt { +class vqt { constructor(e) { this.astNodeLocator = e.workspace.AstNodeLocator, this.nameProvider = e.references.NameProvider; } @@ -80383,7 +80327,7 @@ class bqt { let s; const a = () => { var o; - return s != null ? s : s = wk((o = this.nameProvider.getNameNode(e)) !== null && o !== void 0 ? o : e.$cstNode); + return s != null ? s : s = xk((o = this.nameProvider.getNameNode(e)) !== null && o !== void 0 ? o : e.$cstNode); }; return { node: e, @@ -80391,21 +80335,21 @@ class bqt { get nameSegment() { return a(); }, - selectionSegment: wk(e.$cstNode), + selectionSegment: xk(e.$cstNode), type: e.$type, documentUri: n.uri, path: i }; } } -class xqt { +class yqt { constructor(e) { this.nodeLocator = e.workspace.AstNodeLocator; } async createDescriptions(e, r = Gi.None) { const n = [], i = e.parseResult.value; for (const s of ug(i)) - await El(r), Ede(s).filter((a) => !H4(a)).forEach((a) => { + await El(r), Tde(s).filter((a) => !G4(a)).forEach((a) => { const o = this.createDescription(a); o && n.push(o); }); @@ -80421,12 +80365,12 @@ class xqt { sourcePath: this.nodeLocator.getAstNodePath(e.container), targetUri: r.documentUri, targetPath: r.path, - segment: wk(n), + segment: xk(n), local: Lf.equals(r.documentUri, i) }; } } -class wqt { +class bqt { constructor() { this.segmentSeparator = "/", this.indexSeparator = "@"; } @@ -80455,9 +80399,9 @@ class wqt { }, e); } } -class Oqt { +class xqt { constructor(e) { - this._ready = new YI(), this.settings = {}, this.workspaceConfig = !1, this.serviceRegistry = e.ServiceRegistry; + this._ready = new VI(), this.settings = {}, this.workspaceConfig = !1, this.serviceRegistry = e.ServiceRegistry; } get ready() { return this._ready.promise; @@ -80503,7 +80447,7 @@ class Oqt { return `${e}`; } } -var Uk; +var Vk; (function(t) { function e(r) { return { @@ -80511,14 +80455,14 @@ var Uk; }; } t.create = e; -})(Uk || (Uk = {})); -class kqt { +})(Vk || (Vk = {})); +class wqt { constructor(e) { this.updateBuildOptions = { validation: { categories: ["built-in", "fast"] } - }, this.updateListeners = [], this.buildPhaseListeners = new QI(), this.buildState = /* @__PURE__ */ new Map(), this.documentBuildWaiters = /* @__PURE__ */ new Map(), this.currentState = kn.Changed, this.langiumDocuments = e.workspace.LangiumDocuments, this.langiumDocumentFactory = e.workspace.LangiumDocumentFactory, this.indexManager = e.workspace.IndexManager, this.serviceRegistry = e.ServiceRegistry; + }, this.updateListeners = [], this.buildPhaseListeners = new UI(), this.buildState = /* @__PURE__ */ new Map(), this.documentBuildWaiters = /* @__PURE__ */ new Map(), this.currentState = kn.Changed, this.langiumDocuments = e.workspace.LangiumDocuments, this.langiumDocumentFactory = e.workspace.LangiumDocumentFactory, this.indexManager = e.workspace.IndexManager, this.serviceRegistry = e.ServiceRegistry; } async build(e, r = {}, n = Gi.None) { var i, s; @@ -80530,7 +80474,7 @@ class kqt { else if (typeof r.validation == "object") { const l = this.buildState.get(o), u = (i = l == null ? void 0 : l.result) === null || i === void 0 ? void 0 : i.validationChecks; if (u) { - const f = ((s = r.validation.categories) !== null && s !== void 0 ? s : Vk.all).filter((d) => !u.includes(d)); + const f = ((s = r.validation.categories) !== null && s !== void 0 ? s : zk.all).filter((d) => !u.includes(d)); f.length > 0 && (this.buildState.set(o, { completed: !1, options: { @@ -80573,7 +80517,7 @@ class kqt { return e.references.some((n) => n.error !== void 0) ? !0 : this.indexManager.isAffected(e, r); } onUpdate(e) { - return this.updateListeners.push(e), Uk.create(() => { + return this.updateListeners.push(e), Vk.create(() => { const r = this.updateListeners.indexOf(e); r >= 0 && this.updateListeners.splice(r, 1); }); @@ -80607,7 +80551,7 @@ class kqt { await this.notifyBuildPhase(s, r, n), this.currentState = r; } onBuildPhase(e, r) { - return this.buildPhaseListeners.add(e, r), Uk.create(() => { + return this.buildPhaseListeners.add(e, r), Vk.create(() => { this.buildPhaseListeners.delete(e, r); }); } @@ -80618,7 +80562,7 @@ class kqt { if (s && s.state > e) return Promise.resolve(i); } - return this.currentState >= e ? Promise.resolve(void 0) : n.isCancellationRequested ? Promise.reject(zk) : new Promise((s, a) => { + return this.currentState >= e ? Promise.resolve(void 0) : n.isCancellationRequested ? Promise.reject(Fk) : new Promise((s, a) => { const o = this.onBuildPhase(e, () => { if (o.dispose(), l.dispose(), i) { const u = this.langiumDocuments.getDocument(i); @@ -80626,7 +80570,7 @@ class kqt { } else s(void 0); }), l = n.onCancellationRequested(() => { - o.dispose(), l.dispose(), a(zk); + o.dispose(), l.dispose(), a(Fk); }); }); } @@ -80647,7 +80591,7 @@ class kqt { const u = this.buildState.get(e.uri.toString()); if (u) { (n = u.result) !== null && n !== void 0 || (u.result = {}); - const h = (i = o == null ? void 0 : o.categories) !== null && i !== void 0 ? i : Vk.all; + const h = (i = o == null ? void 0 : o.categories) !== null && i !== void 0 ? i : zk.all; u.result.validationChecks ? u.result.validationChecks.push(...h) : u.result.validationChecks = [...h]; } } @@ -80656,9 +80600,9 @@ class kqt { return (n = (r = this.buildState.get(e.uri.toString())) === null || r === void 0 ? void 0 : r.options) !== null && n !== void 0 ? n : {}; } } -class Sqt { +class Oqt { constructor(e) { - this.symbolIndex = /* @__PURE__ */ new Map(), this.symbolByTypeIndex = new uqt(), this.referenceIndex = /* @__PURE__ */ new Map(), this.documents = e.workspace.LangiumDocuments, this.serviceRegistry = e.ServiceRegistry, this.astReflection = e.AstReflection; + this.symbolIndex = /* @__PURE__ */ new Map(), this.symbolByTypeIndex = new lqt(), this.referenceIndex = /* @__PURE__ */ new Map(), this.documents = e.workspace.LangiumDocuments, this.serviceRegistry = e.ServiceRegistry, this.astReflection = e.AstReflection; } findAllReferences(e, r) { const n = zc(e).uri, i = []; @@ -80696,9 +80640,9 @@ class Sqt { return n ? n.some((i) => !i.local && r.has(i.targetUri.toString())) : !1; } } -class Tqt { +class kqt { constructor(e) { - this.initialBuildOptions = {}, this._ready = new YI(), this.serviceRegistry = e.ServiceRegistry, this.langiumDocuments = e.workspace.LangiumDocuments, this.documentBuilder = e.workspace.DocumentBuilder, this.fileSystemProvider = e.workspace.FileSystemProvider, this.mutex = e.workspace.WorkspaceLock; + this.initialBuildOptions = {}, this._ready = new VI(), this.serviceRegistry = e.ServiceRegistry, this.langiumDocuments = e.workspace.LangiumDocuments, this.documentBuilder = e.workspace.DocumentBuilder, this.fileSystemProvider = e.workspace.FileSystemProvider, this.mutex = e.workspace.WorkspaceLock; } get ready() { return this._ready.promise; @@ -80755,13 +80699,13 @@ class Tqt { return !1; } } -class Cqt { +class Sqt { constructor(e) { const r = e.parser.TokenBuilder.buildTokens(e.Grammar, { caseInsensitive: e.LanguageMetaData.caseInsensitive }); this.tokenTypes = this.toTokenTypeDictionary(r); - const n = HG(r) ? Object.values(r) : r; + const n = QG(r) ? Object.values(r) : r; this.chevrotainLexer = new Na(n, { positionTracking: "full" }); @@ -80779,48 +80723,48 @@ class Cqt { }; } toTokenTypeDictionary(e) { - if (HG(e)) + if (QG(e)) return e; - const r = Y0e(e) ? Object.values(e.modes).flat() : e, n = {}; + const r = U0e(e) ? Object.values(e.modes).flat() : e, n = {}; return r.forEach((i) => n[i.name] = i), n; } } -function Eqt(t) { +function Tqt(t) { return Array.isArray(t) && (t.length === 0 || "name" in t[0]); } -function Y0e(t) { +function U0e(t) { return t && "modes" in t && "defaultMode" in t; } -function HG(t) { - return !Eqt(t) && !Y0e(t); +function QG(t) { + return !Tqt(t) && !U0e(t); } -function _qt(t, e, r) { +function Cqt(t, e, r) { let n, i; typeof t == "string" ? (i = e, n = r) : (i = t.range.start, n = e), i || (i = zr.create(0, 0)); - const s = Q0e(t), a = WI(n), o = Rqt({ + const s = q0e(t), a = qI(n), o = Aqt({ lines: s, position: i, options: a }); - return Pqt({ + return Nqt({ index: 0, tokens: o, position: i }); } -function Aqt(t, e) { - const r = WI(e), n = Q0e(t); +function Eqt(t, e) { + const r = qI(e), n = q0e(t); if (n.length === 0) return !1; const i = n[0], s = n[n.length - 1], a = r.start, o = r.end; return Boolean(a == null ? void 0 : a.exec(i)) && Boolean(o == null ? void 0 : o.exec(s)); } -function Q0e(t) { +function q0e(t) { let e = ""; - return typeof t == "string" ? e = t : e = t.text, e.split(cFt); + return typeof t == "string" ? e = t : e = t.text, e.split(oFt); } -const XG = /\s*(@([\p{L}][\p{L}\p{N}]*)?)/uy, Lqt = /\{(@[\p{L}][\p{L}\p{N}]*)(\s*)([^\r\n}]+)?\}/gu; -function Rqt(t) { +const WG = /\s*(@([\p{L}][\p{L}\p{N}]*)?)/uy, _qt = /\{(@[\p{L}][\p{L}\p{N}]*)(\s*)([^\r\n}]+)?\}/gu; +function Aqt(t) { var e, r, n; const i = []; let s = t.position.line, a = t.position.character; @@ -80838,7 +80782,7 @@ function Rqt(t) { const p = (n = t.options.end) === null || n === void 0 ? void 0 : n.exec(h); p && (h = h.substring(0, p.index)); } - if (h = h.substring(0, Iqt(h)), R9(h, f) >= h.length) { + if (h = h.substring(0, Dqt(h)), _9(h, f) >= h.length) { if (i.length > 0) { const p = zr.create(s, a); i.push({ @@ -80848,26 +80792,26 @@ function Rqt(t) { }); } } else { - XG.lastIndex = f; - const p = XG.exec(h); + WG.lastIndex = f; + const p = WG.exec(h); if (p) { const g = p[0], m = p[1], v = zr.create(s, a + f), y = zr.create(s, a + f + g.length); i.push({ type: "tag", content: m, range: Cr.create(v, y) - }), f += g.length, f = R9(h, f); + }), f += g.length, f = _9(h, f); } if (f < h.length) { - const g = h.substring(f), m = Array.from(g.matchAll(Lqt)); - i.push(...Mqt(m, g, s, a + f)); + const g = h.substring(f), m = Array.from(g.matchAll(_qt)); + i.push(...Lqt(m, g, s, a + f)); } } s++, a = 0; } return i.length > 0 && i[i.length - 1].type === "break" ? i.slice(0, -1) : i; } -function Mqt(t, e, r, n) { +function Lqt(t, e, r, n) { const i = []; if (t.length === 0) { const s = zr.create(r, n), a = zr.create(r, n + e.length); @@ -80916,96 +80860,96 @@ function Mqt(t, e, r, n) { } return i; } -const Dqt = /\S/, Nqt = /\s*$/; -function R9(t, e) { - const r = t.substring(e).match(Dqt); +const Rqt = /\S/, Mqt = /\s*$/; +function _9(t, e) { + const r = t.substring(e).match(Rqt); return r ? e + r.index : t.length; } -function Iqt(t) { - const e = t.match(Nqt); +function Dqt(t) { + const e = t.match(Mqt); if (e && typeof e.index == "number") return e.index; } -function Pqt(t) { +function Nqt(t) { var e, r, n, i; const s = zr.create(t.position.line, t.position.character); if (t.tokens.length === 0) - return new ZG([], Cr.create(s, s)); + return new GG([], Cr.create(s, s)); const a = []; for (; t.index < t.tokens.length; ) { - const u = $qt(t, a[a.length - 1]); + const u = Iqt(t, a[a.length - 1]); u && a.push(u); } const o = (r = (e = a[0]) === null || e === void 0 ? void 0 : e.range.start) !== null && r !== void 0 ? r : s, l = (i = (n = a[a.length - 1]) === null || n === void 0 ? void 0 : n.range.end) !== null && i !== void 0 ? i : s; - return new ZG(a, Cr.create(o, l)); + return new GG(a, Cr.create(o, l)); } -function $qt(t, e) { +function Iqt(t, e) { const r = t.tokens[t.index]; if (r.type === "tag") - return G0e(t, !1); + return Q0e(t, !1); if (r.type === "text" || r.type === "inline-tag") - return W0e(t); - Bqt(r, e), t.index++; + return Y0e(t); + Pqt(r, e), t.index++; } -function Bqt(t, e) { +function Pqt(t, e) { if (e) { - const r = new X0e("", t.range); + const r = new G0e("", t.range); "inlines" in e ? e.inlines.push(r) : e.content.inlines.push(r); } } -function W0e(t) { +function Y0e(t) { let e = t.tokens[t.index]; const r = e; let n = e; const i = []; for (; e && e.type !== "break" && e.type !== "tag"; ) - i.push(Fqt(t)), n = e, e = t.tokens[t.index]; - return new M9(i, Cr.create(r.range.start, n.range.end)); + i.push($qt(t)), n = e, e = t.tokens[t.index]; + return new A9(i, Cr.create(r.range.start, n.range.end)); } -function Fqt(t) { - return t.tokens[t.index].type === "inline-tag" ? G0e(t, !0) : H0e(t); +function $qt(t) { + return t.tokens[t.index].type === "inline-tag" ? Q0e(t, !0) : W0e(t); } -function G0e(t, e) { +function Q0e(t, e) { const r = t.tokens[t.index++], n = r.content.substring(1), i = t.tokens[t.index]; if ((i == null ? void 0 : i.type) === "text") if (e) { - const s = H0e(t); - return new j_(n, new M9([s], s.range), e, Cr.create(r.range.start, s.range.end)); - } else { const s = W0e(t); - return new j_(n, s, e, Cr.create(r.range.start, s.range.end)); + return new X_(n, new A9([s], s.range), e, Cr.create(r.range.start, s.range.end)); + } else { + const s = Y0e(t); + return new X_(n, s, e, Cr.create(r.range.start, s.range.end)); } else { const s = r.range; - return new j_(n, new M9([], s), e, s); + return new X_(n, new A9([], s), e, s); } } -function H0e(t) { +function W0e(t) { const e = t.tokens[t.index++]; - return new X0e(e.content, e.range); + return new G0e(e.content, e.range); } -function WI(t) { +function qI(t) { if (!t) - return WI({ + return qI({ start: "/**", end: "*/", line: "*" }); const { start: e, end: r, line: n } = t; return { - start: Z_(e, !0), - end: Z_(r, !1), - line: Z_(n, !0) + start: H_(e, !0), + end: H_(r, !1), + line: H_(n, !0) }; } -function Z_(t, e) { +function H_(t, e) { if (typeof t == "string" || typeof t == "object") { - const r = typeof t == "string" ? xC(t) : t.source; + const r = typeof t == "string" ? yC(t) : t.source; return e ? new RegExp(`^\\s*${r}`) : new RegExp(`\\s*${r}\\s*$`); } else return t; } -class ZG { +class GG { constructor(e, r) { this.elements = e, this.range = r; } @@ -81025,7 +80969,7 @@ class ZG { e = r.toString(); else { const n = r.toString(); - e += jG(e) + n; + e += HG(e) + n; } return e.trim(); } @@ -81036,12 +80980,12 @@ class ZG { r = n.toMarkdown(e); else { const i = n.toMarkdown(e); - r += jG(r) + i; + r += HG(r) + i; } return r.trim(); } } -class j_ { +class X_ { constructor(e, r, n, i) { this.name = e, this.content = r, this.inline = n, this.range = i; } @@ -81058,7 +81002,7 @@ ${r}`), this.inline ? `{${e}}` : e; toMarkdownDefault(e) { const r = this.content.toMarkdown(e); if (this.inline) { - const s = zqt(this.name, r, e != null ? e : {}); + const s = Bqt(this.name, r, e != null ? e : {}); if (typeof s == "string") return s; } @@ -81069,26 +81013,26 @@ ${r}`), this.inline ? `{${e}}` : e; ${r}`), this.inline ? `{${i}}` : i; } } -function zqt(t, e, r) { +function Bqt(t, e, r) { var n, i; if (t === "linkplain" || t === "linkcode" || t === "link") { const s = e.indexOf(" "); let a = e; if (s > 0) { - const l = R9(e, s); + const l = _9(e, s); a = e.substring(l), e = e.substring(0, s); } - return (t === "linkcode" || t === "link" && r.link === "code") && (a = `\`${a}\``), (i = (n = r.renderLink) === null || n === void 0 ? void 0 : n.call(r, e, a)) !== null && i !== void 0 ? i : Vqt(e, a); + return (t === "linkcode" || t === "link" && r.link === "code") && (a = `\`${a}\``), (i = (n = r.renderLink) === null || n === void 0 ? void 0 : n.call(r, e, a)) !== null && i !== void 0 ? i : Fqt(e, a); } } -function Vqt(t, e) { +function Fqt(t, e) { try { return w1.parse(t, !0), `[${e}](${t})`; } catch { return t; } } -class M9 { +class A9 { constructor(e, r) { this.inlines = e, this.range = r; } @@ -81111,7 +81055,7 @@ class M9 { return r; } } -class X0e { +class G0e { constructor(e, r) { this.text = e, this.range = r; } @@ -81122,21 +81066,21 @@ class X0e { return this.text; } } -function jG(t) { +function HG(t) { return t.endsWith(` `) ? ` ` : ` `; } -class Uqt { +class zqt { constructor(e) { this.indexManager = e.shared.workspace.IndexManager, this.commentProvider = e.documentation.CommentProvider; } getDocumentation(e) { const r = this.commentProvider.getComment(e); - if (r && Aqt(r)) - return _qt(r).toMarkdown({ + if (r && Eqt(r)) + return Cqt(r).toMarkdown({ renderLink: (i, s) => this.documentationLinkRenderer(e, i, s), renderTag: (i) => this.documentationTagRenderer(e, i) }); @@ -81168,16 +81112,16 @@ class Uqt { return this.indexManager.allElements().find((i) => i.name === r); } } -class qqt { +class Vqt { constructor(e) { this.grammarConfig = () => e.parser.GrammarConfig; } getComment(e) { var r; - return dqt(e) ? e.$comment : (r = ABt(e.$cstNode, this.grammarConfig().multilineCommentRules)) === null || r === void 0 ? void 0 : r.text; + return hqt(e) ? e.$comment : (r = EBt(e.$cstNode, this.grammarConfig().multilineCommentRules)) === null || r === void 0 ? void 0 : r.text; } } -class Yqt { +class Uqt { constructor(e) { this.syncParser = e.parser.LangiumParser; } @@ -81185,20 +81129,20 @@ class Yqt { return Promise.resolve(this.syncParser.parse(e)); } } -class Qqt { +class qqt { constructor() { - this.previousTokenSource = new E9(), this.writeQueue = [], this.readQueue = [], this.done = !0; + this.previousTokenSource = new S9(), this.writeQueue = [], this.readQueue = [], this.done = !0; } write(e) { this.cancelWrite(); - const r = new E9(); + const r = new S9(); return this.previousTokenSource = r, this.enqueue(this.writeQueue, e, r.token); } read(e) { return this.enqueue(this.readQueue, e); } enqueue(e, r, n) { - const i = new YI(), s = { + const i = new VI(), s = { action: r, deferred: i, cancellationToken: n != null ? n : Gi.None @@ -81220,7 +81164,7 @@ class Qqt { const s = await Promise.resolve().then(() => r(i)); n.resolve(s); } catch (s) { - qI(s) ? n.resolve(void 0) : n.reject(s); + zI(s) ? n.resolve(void 0) : n.reject(s); } })), this.done = !0, this.performNextOperation(); } @@ -81228,9 +81172,9 @@ class Qqt { this.previousTokenSource.cancel(); } } -class Wqt { +class Yqt { constructor(e) { - this.grammarElementIdMap = new YG(), this.tokenTypeIdMap = new YG(), this.grammar = e.Grammar, this.lexer = e.parser.Lexer, this.linker = e.references.Linker; + this.grammarElementIdMap = new VG(), this.tokenTypeIdMap = new VG(), this.grammar = e.Grammar, this.lexer = e.parser.Lexer, this.linker = e.references.Linker; } dehydrate(e) { return { @@ -81244,7 +81188,7 @@ class Wqt { for (const i of ug(e)) r.set(i, {}); if (e.$cstNode) - for (const i of XL(e.$cstNode)) + for (const i of WL(e.$cstNode)) n.set(i, {}); return { astNodes: r, @@ -81271,7 +81215,7 @@ class Wqt { } dehydrateCstNode(e, r) { const n = r.cstNodes.get(e); - return Yfe(e) ? n.fullText = e.fullText : n.grammarSource = this.getGrammarElementId(e.grammarSource), n.hidden = e.hidden, n.astNode = r.astNodes.get(e.astNode), g1(e) ? n.content = e.content.map((i) => this.dehydrateCstNode(i, r)) : qfe(e) && (n.tokenType = e.tokenType.name, n.offset = e.offset, n.length = e.length, n.startLine = e.range.start.line, n.startColumn = e.range.start.character, n.endLine = e.range.end.line, n.endColumn = e.range.end.character), n; + return Ufe(e) ? n.fullText = e.fullText : n.grammarSource = this.getGrammarElementId(e.grammarSource), n.hidden = e.hidden, n.astNode = r.astNodes.get(e.astNode), g1(e) ? n.content = e.content.map((i) => this.dehydrateCstNode(i, r)) : Vfe(e) && (n.tokenType = e.tokenType.name, n.offset = e.offset, n.length = e.length, n.startLine = e.range.start.line, n.startColumn = e.range.start.character, n.endLine = e.range.end.line, n.endColumn = e.range.end.character), n; } hydrate(e) { const r = e.value, n = this.createHydrationContext(r); @@ -81287,9 +81231,9 @@ class Wqt { r.set(s, {}); let i; if (e.$cstNode) - for (const s of XL(e.$cstNode)) { + for (const s of WL(e.$cstNode)) { let a; - "fullText" in s ? (a = new _0e(s.fullText), i = a) : "content" in s ? a = new VI() : "tokenType" in s && (a = this.hydrateCstLeafNode(s)), a && (n.set(s, a), a.root = i); + "fullText" in s ? (a = new C0e(s.fullText), i = a) : "content" in s ? a = new BI() : "tokenType" in s && (a = this.hydrateCstLeafNode(s)), a && (n.set(s, a), a.root = i); } return { astNodes: r, @@ -81327,7 +81271,7 @@ class Wqt { } hydrateCstLeafNode(e) { const r = this.getTokenType(e.tokenType), n = e.offset, i = e.length, s = e.startLine, a = e.startColumn, o = e.endLine, l = e.endColumn, u = e.hidden; - return new O9(n, i, { + return new b9(n, i, { start: { line: s, character: a @@ -81354,95 +81298,95 @@ class Wqt { createGrammarElementIdMap() { let e = 0; for (const r of ug(this.grammar)) - MBt(r) && this.grammarElementIdMap.set(r, e++); + LBt(r) && this.grammarElementIdMap.set(r, e++); } } function fm(t) { return { documentation: { - CommentProvider: (e) => new qqt(e), - DocumentationProvider: (e) => new Uqt(e) + CommentProvider: (e) => new Vqt(e), + DocumentationProvider: (e) => new zqt(e) }, parser: { - AsyncParser: (e) => new Yqt(e), - GrammarConfig: (e) => RFt(e), - LangiumParser: (e) => FUt(e), - CompletionParser: (e) => BUt(e), - ValueConverter: () => new $0e(), - TokenBuilder: () => new P0e(), - Lexer: (e) => new Cqt(e), - ParserErrorMessageProvider: () => new R0e() + AsyncParser: (e) => new Uqt(e), + GrammarConfig: (e) => AFt(e), + LangiumParser: (e) => $Ut(e), + CompletionParser: (e) => PUt(e), + ValueConverter: () => new I0e(), + TokenBuilder: () => new N0e(), + Lexer: (e) => new Sqt(e), + ParserErrorMessageProvider: () => new A0e() }, workspace: { - AstNodeLocator: () => new wqt(), - AstNodeDescriptionProvider: (e) => new bqt(e), - ReferenceDescriptionProvider: (e) => new xqt(e) + AstNodeLocator: () => new bqt(), + AstNodeDescriptionProvider: (e) => new vqt(e), + ReferenceDescriptionProvider: (e) => new yqt(e) }, references: { - Linker: (e) => new nqt(e), - NameProvider: () => new sqt(), - ScopeProvider: (e) => new fqt(e), - ScopeComputation: (e) => new oqt(e), - References: (e) => new aqt(e) + Linker: (e) => new tqt(e), + NameProvider: () => new nqt(), + ScopeProvider: (e) => new uqt(e), + ScopeComputation: (e) => new sqt(e), + References: (e) => new iqt(e) }, serializer: { - Hydrator: (e) => new Wqt(e), - JsonSerializer: (e) => new pqt(e) + Hydrator: (e) => new Yqt(e), + JsonSerializer: (e) => new fqt(e) }, validation: { - DocumentValidator: (e) => new vqt(e), - ValidationRegistry: (e) => new mqt(e) + DocumentValidator: (e) => new gqt(e), + ValidationRegistry: (e) => new pqt(e) }, shared: () => t.shared }; } function dm(t) { return { - ServiceRegistry: () => new gqt(), + ServiceRegistry: () => new dqt(), workspace: { - LangiumDocuments: (e) => new rqt(e), - LangiumDocumentFactory: (e) => new tqt(e), - DocumentBuilder: (e) => new kqt(e), - IndexManager: (e) => new Sqt(e), - WorkspaceManager: (e) => new Tqt(e), + LangiumDocuments: (e) => new eqt(e), + LangiumDocumentFactory: (e) => new JUt(e), + DocumentBuilder: (e) => new wqt(e), + IndexManager: (e) => new Oqt(e), + WorkspaceManager: (e) => new kqt(e), FileSystemProvider: (e) => t.fileSystemProvider(e), - WorkspaceLock: () => new Qqt(), - ConfigurationProvider: (e) => new Oqt(e) + WorkspaceLock: () => new qqt(), + ConfigurationProvider: (e) => new xqt(e) } }; } -var KG; +var XG; (function(t) { - t.merge = (e, r) => qk(qk({}, e), r); -})(KG || (KG = {})); + t.merge = (e, r) => Uk(Uk({}, e), r); +})(XG || (XG = {})); function el(t, e, r, n, i, s, a, o, l) { - const u = [t, e, r, n, i, s, a, o, l].reduce(qk, {}); - return Z0e(u); + const u = [t, e, r, n, i, s, a, o, l].reduce(Uk, {}); + return H0e(u); } -const JG = Symbol("isProxy"); -function Z0e(t, e) { +const ZG = Symbol("isProxy"); +function H0e(t, e) { const r = new Proxy({}, { deleteProperty: () => !1, - get: (n, i) => tH(n, i, t, e || r), - getOwnPropertyDescriptor: (n, i) => (tH(n, i, t, e || r), Object.getOwnPropertyDescriptor(n, i)), + get: (n, i) => KG(n, i, t, e || r), + getOwnPropertyDescriptor: (n, i) => (KG(n, i, t, e || r), Object.getOwnPropertyDescriptor(n, i)), has: (n, i) => i in t, - ownKeys: () => [...Reflect.ownKeys(t), JG] + ownKeys: () => [...Reflect.ownKeys(t), ZG] }); - return r[JG] = !0, r; + return r[ZG] = !0, r; } -const eH = Symbol(); -function tH(t, e, r, n) { +const jG = Symbol(); +function KG(t, e, r, n) { if (e in t) { if (t[e] instanceof Error) throw new Error("Construction failure. Please make sure that your dependencies are constructable.", { cause: t[e] }); - if (t[e] === eH) + if (t[e] === jG) throw new Error('Cycle detected. Please make "' + String(e) + '" lazy. See https://langium.org/docs/configuration-services/#resolving-cyclic-dependencies'); return t[e]; } else if (e in r) { const i = r[e]; - t[e] = eH; + t[e] = jG; try { - t[e] = typeof i == "function" ? i(n) : Z0e(i, n); + t[e] = typeof i == "function" ? i(n) : H0e(i, n); } catch (s) { throw t[e] = s instanceof Error ? s : void 0, s; } @@ -81450,17 +81394,17 @@ function tH(t, e, r, n) { } else return; } -function qk(t, e) { +function Uk(t, e) { if (e) { for (const [r, n] of Object.entries(e)) if (n !== void 0) { const i = t[r]; - i !== null && n !== null && typeof i == "object" && typeof n == "object" ? t[r] = qk(i, n) : t[r] = n; + i !== null && n !== null && typeof i == "object" && typeof n == "object" ? t[r] = Uk(i, n) : t[r] = n; } } return t; } -class Gqt { +class Qqt { readFile() { throw new Error("No file system is available."); } @@ -81469,8 +81413,8 @@ class Gqt { } } const pm = { - fileSystemProvider: () => new Gqt() -}, Hqt = { + fileSystemProvider: () => new Qqt() +}, Wqt = { Grammar: () => { }, LanguageMetaData: () => ({ @@ -81478,87 +81422,87 @@ const pm = { fileExtensions: [".langium"], languageId: "langium" }) -}, Xqt = { - AstReflection: () => new Cde() +}, Gqt = { + AstReflection: () => new Sde() }; -function Zqt() { - const t = el(dm(pm), Xqt), e = el(fm({ shared: t }), Hqt); +function Hqt() { + const t = el(dm(pm), Gqt), e = el(fm({ shared: t }), Wqt); return t.ServiceRegistry.register(e), e; } function Fx(t) { var e; - const r = Zqt(), n = r.serializer.JsonSerializer.deserialize(t); + const r = Hqt(), n = r.serializer.JsonSerializer.deserialize(t); return r.shared.workspace.LangiumDocumentFactory.fromModel(n, w1.parse(`memory://${(e = n.name) !== null && e !== void 0 ? e : "grammar"}.langium`)), n; } -var jqt = Object.defineProperty, Dt = (t, e) => jqt(t, "name", { value: e, configurable: !0 }), Kqt = "Statement", Jqt = "Architecture"; -function eYt(t) { - return Zl.isInstance(t, Jqt); +var Xqt = Object.defineProperty, Dt = (t, e) => Xqt(t, "name", { value: e, configurable: !0 }), Zqt = "Statement", jqt = "Architecture"; +function Kqt(t) { + return Zl.isInstance(t, jqt); } -Dt(eYt, "isArchitecture"); -var j0e = "Branch"; -function tYt(t) { - return Zl.isInstance(t, j0e); +Dt(Kqt, "isArchitecture"); +var X0e = "Branch"; +function Jqt(t) { + return Zl.isInstance(t, X0e); } -Dt(tYt, "isBranch"); -var rYt = "Checkout", nYt = "CherryPicking", K0e = "Commit"; +Dt(Jqt, "isBranch"); +var eYt = "Checkout", tYt = "CherryPicking", Z0e = "Commit"; +function rYt(t) { + return Zl.isInstance(t, Z0e); +} +Dt(rYt, "isCommit"); +var nYt = "Common"; function iYt(t) { - return Zl.isInstance(t, K0e); + return Zl.isInstance(t, nYt); } -Dt(iYt, "isCommit"); -var sYt = "Common"; -function aYt(t) { - return Zl.isInstance(t, sYt); +Dt(iYt, "isCommon"); +var j0e = "GitGraph"; +function sYt(t) { + return Zl.isInstance(t, j0e); } -Dt(aYt, "isCommon"); -var J0e = "GitGraph"; +Dt(sYt, "isGitGraph"); +var aYt = "Info"; function oYt(t) { - return Zl.isInstance(t, J0e); + return Zl.isInstance(t, aYt); } -Dt(oYt, "isGitGraph"); -var lYt = "Info"; -function cYt(t) { - return Zl.isInstance(t, lYt); +Dt(oYt, "isInfo"); +var K0e = "Merge"; +function lYt(t) { + return Zl.isInstance(t, K0e); } -Dt(cYt, "isInfo"); -var epe = "Merge"; +Dt(lYt, "isMerge"); +var cYt = "Packet"; function uYt(t) { - return Zl.isInstance(t, epe); + return Zl.isInstance(t, cYt); } -Dt(uYt, "isMerge"); -var hYt = "Packet"; +Dt(uYt, "isPacket"); +var hYt = "PacketBlock"; function fYt(t) { return Zl.isInstance(t, hYt); } -Dt(fYt, "isPacket"); -var dYt = "PacketBlock"; +Dt(fYt, "isPacketBlock"); +var dYt = "Pie"; function pYt(t) { return Zl.isInstance(t, dYt); } -Dt(pYt, "isPacketBlock"); -var gYt = "Pie"; +Dt(pYt, "isPie"); +var gYt = "PieSection"; function mYt(t) { return Zl.isInstance(t, gYt); } -Dt(mYt, "isPie"); -var vYt = "PieSection"; -function yYt(t) { - return Zl.isInstance(t, vYt); -} -Dt(yYt, "isPieSection"); -var bYt = "Direction", mb, tpe = (mb = class extends Ufe { +Dt(mYt, "isPieSection"); +var vYt = "Direction", mb, J0e = (mb = class extends zfe { getAllTypes() { return ["Architecture", "Branch", "Checkout", "CherryPicking", "Commit", "Common", "Direction", "Edge", "GitGraph", "Group", "Info", "Junction", "Merge", "Packet", "PacketBlock", "Pie", "PieSection", "Service", "Statement"]; } computeIsSubtype(e, r) { switch (e) { - case j0e: - case rYt: - case nYt: + case X0e: + case eYt: + case tYt: + case Z0e: case K0e: - case epe: - return this.isSubtype(Kqt, r); - case bYt: - return this.isSubtype(J0e, r); + return this.isSubtype(Zqt, r); + case vYt: + return this.isSubtype(j0e, r); default: return !1; } @@ -81759,28 +81703,36 @@ var bYt = "Direction", mb, tpe = (mb = class extends Ufe { } }, (() => { Dt(mb, "MermaidAstReflection"); -})(), mb), Zl = new tpe(), EO, xYt = /* @__PURE__ */ Dt(() => EO != null ? EO : EO = Fx('{"$type":"Grammar","isDeclared":true,"name":"Info","imports":[],"rules":[{"$type":"ParserRule","name":"Info","entry":true,"definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[],"cardinality":"*"},{"$type":"Keyword","value":"info"},{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[],"cardinality":"*"},{"$type":"Group","elements":[{"$type":"Keyword","value":"showInfo"},{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[],"cardinality":"*"}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[],"cardinality":"?"}]},"definesHiddenTokens":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"TitleAndAccessibilities","fragment":true,"definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}],"cardinality":"+"},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"EOL","fragment":true,"dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/"},"fragment":false}],"definesHiddenTokens":false,"hiddenTokens":[],"interfaces":[{"$type":"Interface","name":"Common","attributes":[{"$type":"TypeAttribute","name":"accDescr","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accTitle","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"title","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}}],"superTypes":[]}],"types":[],"usedGrammars":[]}'), "InfoGrammar"), _O, wYt = /* @__PURE__ */ Dt(() => _O != null ? _O : _O = Fx(`{"$type":"Grammar","isDeclared":true,"name":"Packet","imports":[],"rules":[{"$type":"ParserRule","name":"Packet","entry":true,"definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[],"cardinality":"*"},{"$type":"Keyword","value":"packet-beta"},{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]},{"$type":"Assignment","feature":"blocks","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]},"cardinality":"*"}]},{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[],"cardinality":"+"},{"$type":"Assignment","feature":"blocks","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]},"cardinality":"+"}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[],"cardinality":"*"}]}]},"definesHiddenTokens":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"PacketBlock","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"start","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"-"},{"$type":"Assignment","feature":"end","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}}],"cardinality":"?"},{"$type":"Keyword","value":":"},{"$type":"Assignment","feature":"label","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","definition":{"$type":"RegexToken","regex":"/\\"[^\\"]*\\"|'[^']*'/"},"fragment":false,"hidden":false},{"$type":"ParserRule","name":"TitleAndAccessibilities","fragment":true,"definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}],"cardinality":"+"},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"EOL","fragment":true,"dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/"},"fragment":false}],"definesHiddenTokens":false,"hiddenTokens":[],"interfaces":[{"$type":"Interface","name":"Common","attributes":[{"$type":"TypeAttribute","name":"accDescr","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accTitle","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"title","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}}],"superTypes":[]}],"types":[],"usedGrammars":[]}`), "PacketGrammar"), AO, OYt = /* @__PURE__ */ Dt(() => AO != null ? AO : AO = Fx('{"$type":"Grammar","isDeclared":true,"name":"Pie","imports":[],"rules":[{"$type":"ParserRule","name":"Pie","entry":true,"definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[],"cardinality":"*"},{"$type":"Keyword","value":"pie"},{"$type":"Assignment","feature":"showData","operator":"?=","terminal":{"$type":"Keyword","value":"showData"},"cardinality":"?"},{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]},{"$type":"Assignment","feature":"sections","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]},"cardinality":"*"}]},{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[],"cardinality":"+"},{"$type":"Assignment","feature":"sections","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]},"cardinality":"+"}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[],"cardinality":"*"}]}]},"definesHiddenTokens":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"PieSection","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"label","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}},{"$type":"Keyword","value":":"},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"PIE_SECTION_LABEL","definition":{"$type":"RegexToken","regex":"/\\"[^\\"]+\\"/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"PIE_SECTION_VALUE","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/(0|[1-9][0-9]*)(\\\\.[0-9]+)?/"},"fragment":false,"hidden":false},{"$type":"ParserRule","name":"TitleAndAccessibilities","fragment":true,"definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}],"cardinality":"+"},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"EOL","fragment":true,"dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/"},"fragment":false}],"definesHiddenTokens":false,"hiddenTokens":[],"interfaces":[{"$type":"Interface","name":"Common","attributes":[{"$type":"TypeAttribute","name":"accDescr","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accTitle","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"title","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}}],"superTypes":[]}],"types":[],"usedGrammars":[]}'), "PieGrammar"), LO, kYt = /* @__PURE__ */ Dt(() => LO != null ? LO : LO = Fx('{"$type":"Grammar","isDeclared":true,"name":"Architecture","imports":[],"rules":[{"$type":"ParserRule","name":"Architecture","entry":true,"definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[],"cardinality":"*"},{"$type":"Keyword","value":"architecture-beta"},{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}]},{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[],"cardinality":"*"}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[],"cardinality":"*"}]}]},"definesHiddenTokens":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Statement","fragment":true,"definition":{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"groups","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Assignment","feature":"services","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}},{"$type":"Assignment","feature":"junctions","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}},{"$type":"Assignment","feature":"edges","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"LeftPort","fragment":true,"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":":"},{"$type":"Assignment","feature":"lhsDir","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"RightPort","fragment":true,"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"rhsDir","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}},{"$type":"Keyword","value":":"}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Arrow","fragment":true,"definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]},{"$type":"Assignment","feature":"lhsInto","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]},"cardinality":"?"},{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"--"},{"$type":"Group","elements":[{"$type":"Keyword","value":"-"},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}},{"$type":"Keyword","value":"-"}]}]},{"$type":"Assignment","feature":"rhsInto","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]},"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Group","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"group"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}},{"$type":"Assignment","feature":"icon","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]},"cardinality":"?"},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]},"cardinality":"?"},{"$type":"Group","elements":[{"$type":"Keyword","value":"in"},{"$type":"Assignment","feature":"in","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Service","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"service"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"iconText","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]}},{"$type":"Assignment","feature":"icon","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}}],"cardinality":"?"},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]},"cardinality":"?"},{"$type":"Group","elements":[{"$type":"Keyword","value":"in"},{"$type":"Assignment","feature":"in","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Junction","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"junction"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"in"},{"$type":"Assignment","feature":"in","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Edge","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"lhsId","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}},{"$type":"Assignment","feature":"lhsGroup","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]},"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]},{"$type":"Assignment","feature":"rhsId","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}},{"$type":"Assignment","feature":"rhsGroup","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]},"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"ARROW_DIRECTION","definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"L"}},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"R"}}]},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"T"}}]},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"B"}}]},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ARCH_ID","definition":{"$type":"RegexToken","regex":"/[\\\\w]+/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ARCH_TEXT_ICON","definition":{"$type":"RegexToken","regex":"/\\\\(\\"[^\\"]+\\"\\\\)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ARCH_ICON","definition":{"$type":"RegexToken","regex":"/\\\\([\\\\w-:]+\\\\)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ARCH_TITLE","definition":{"$type":"RegexToken","regex":"/\\\\[[\\\\w ]+\\\\]/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ARROW_GROUP","definition":{"$type":"RegexToken","regex":"/\\\\{group\\\\}/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ARROW_INTO","definition":{"$type":"RegexToken","regex":"/<|>/"},"fragment":false,"hidden":false},{"$type":"ParserRule","name":"TitleAndAccessibilities","fragment":true,"definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@21"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}],"cardinality":"+"},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"EOL","fragment":true,"dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/"},"fragment":false}],"definesHiddenTokens":false,"hiddenTokens":[],"interfaces":[{"$type":"Interface","name":"Common","attributes":[{"$type":"TypeAttribute","name":"accDescr","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accTitle","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"title","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}}],"superTypes":[]}],"types":[],"usedGrammars":[]}'), "ArchitectureGrammar"), RO, SYt = /* @__PURE__ */ Dt(() => RO != null ? RO : RO = Fx(`{"$type":"Grammar","isDeclared":true,"name":"GitGraph","interfaces":[{"$type":"Interface","name":"Common","attributes":[{"$type":"TypeAttribute","name":"accDescr","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accTitle","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"title","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}}],"superTypes":[]}],"rules":[{"$type":"ParserRule","name":"TitleAndAccessibilities","fragment":true,"definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}],"cardinality":"+"},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"EOL","fragment":true,"dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/"},"fragment":false},{"$type":"ParserRule","name":"GitGraph","entry":true,"definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[],"cardinality":"*"},{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"gitGraph"},{"$type":"Group","elements":[{"$type":"Keyword","value":"gitGraph"},{"$type":"Keyword","value":":"}]},{"$type":"Keyword","value":"gitGraph:"},{"$type":"Group","elements":[{"$type":"Keyword","value":"gitGraph"},{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]},{"$type":"Keyword","value":":"}]}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[],"cardinality":"*"},{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[],"cardinality":"*"},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@0"},"arguments":[]},{"$type":"Assignment","feature":"statements","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}],"cardinality":"*"}]}]},"definesHiddenTokens":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Statement","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Direction","definition":{"$type":"Assignment","feature":"dir","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"LR"},{"$type":"Keyword","value":"TB"},{"$type":"Keyword","value":"BT"}]}},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Commit","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"commit"},{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"Keyword","value":"id:"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"msg:","cardinality":"?"},{"$type":"Assignment","feature":"message","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"tag:"},{"$type":"Assignment","feature":"tags","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"type:"},{"$type":"Assignment","feature":"type","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"NORMAL"},{"$type":"Keyword","value":"REVERSE"},{"$type":"Keyword","value":"HIGHLIGHT"}]}}]}],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Branch","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"branch"},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"order:"},{"$type":"Assignment","feature":"order","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Merge","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"merge"},{"$type":"Assignment","feature":"branch","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}]}},{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"Keyword","value":"id:"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"tag:"},{"$type":"Assignment","feature":"tags","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"type:"},{"$type":"Assignment","feature":"type","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"NORMAL"},{"$type":"Keyword","value":"REVERSE"},{"$type":"Keyword","value":"HIGHLIGHT"}]}}]}],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Checkout","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"checkout"},{"$type":"Keyword","value":"switch"}]},{"$type":"Assignment","feature":"branch","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"CherryPicking","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"cherry-pick"},{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"Keyword","value":"id:"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"tag:"},{"$type":"Assignment","feature":"tags","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"parent:"},{"$type":"Assignment","feature":"parent","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}}]}],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+(?=\\\\s)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\\\w([-\\\\./\\\\w]*[-\\\\w])?/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","definition":{"$type":"RegexToken","regex":"/\\"[^\\"]*\\"|'[^']*'/"},"fragment":false,"hidden":false}],"definesHiddenTokens":false,"hiddenTokens":[],"imports":[],"types":[],"usedGrammars":[]}`), "GitGraphGrammar"), TYt = { +})(), mb), Zl = new J0e(), CO, yYt = /* @__PURE__ */ Dt(() => CO != null ? CO : CO = Fx('{"$type":"Grammar","isDeclared":true,"name":"Info","imports":[],"rules":[{"$type":"ParserRule","name":"Info","entry":true,"definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[],"cardinality":"*"},{"$type":"Keyword","value":"info"},{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[],"cardinality":"*"},{"$type":"Group","elements":[{"$type":"Keyword","value":"showInfo"},{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[],"cardinality":"*"}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[],"cardinality":"?"}]},"definesHiddenTokens":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"TitleAndAccessibilities","fragment":true,"definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}],"cardinality":"+"},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"EOL","fragment":true,"dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/"},"fragment":false}],"definesHiddenTokens":false,"hiddenTokens":[],"interfaces":[{"$type":"Interface","name":"Common","attributes":[{"$type":"TypeAttribute","name":"accDescr","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accTitle","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"title","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}}],"superTypes":[]}],"types":[],"usedGrammars":[]}'), "InfoGrammar"), EO, bYt = /* @__PURE__ */ Dt(() => EO != null ? EO : EO = Fx(`{"$type":"Grammar","isDeclared":true,"name":"Packet","imports":[],"rules":[{"$type":"ParserRule","name":"Packet","entry":true,"definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[],"cardinality":"*"},{"$type":"Keyword","value":"packet-beta"},{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]},{"$type":"Assignment","feature":"blocks","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]},"cardinality":"*"}]},{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[],"cardinality":"+"},{"$type":"Assignment","feature":"blocks","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]},"cardinality":"+"}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[],"cardinality":"*"}]}]},"definesHiddenTokens":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"PacketBlock","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"start","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"-"},{"$type":"Assignment","feature":"end","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}}],"cardinality":"?"},{"$type":"Keyword","value":":"},{"$type":"Assignment","feature":"label","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","definition":{"$type":"RegexToken","regex":"/\\"[^\\"]*\\"|'[^']*'/"},"fragment":false,"hidden":false},{"$type":"ParserRule","name":"TitleAndAccessibilities","fragment":true,"definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}],"cardinality":"+"},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"EOL","fragment":true,"dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/"},"fragment":false}],"definesHiddenTokens":false,"hiddenTokens":[],"interfaces":[{"$type":"Interface","name":"Common","attributes":[{"$type":"TypeAttribute","name":"accDescr","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accTitle","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"title","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}}],"superTypes":[]}],"types":[],"usedGrammars":[]}`), "PacketGrammar"), _O, xYt = /* @__PURE__ */ Dt(() => _O != null ? _O : _O = Fx('{"$type":"Grammar","isDeclared":true,"name":"Pie","imports":[],"rules":[{"$type":"ParserRule","name":"Pie","entry":true,"definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[],"cardinality":"*"},{"$type":"Keyword","value":"pie"},{"$type":"Assignment","feature":"showData","operator":"?=","terminal":{"$type":"Keyword","value":"showData"},"cardinality":"?"},{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]},{"$type":"Assignment","feature":"sections","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]},"cardinality":"*"}]},{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[],"cardinality":"+"},{"$type":"Assignment","feature":"sections","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]},"cardinality":"+"}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[],"cardinality":"*"}]}]},"definesHiddenTokens":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"PieSection","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"label","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}},{"$type":"Keyword","value":":"},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"PIE_SECTION_LABEL","definition":{"$type":"RegexToken","regex":"/\\"[^\\"]+\\"/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"PIE_SECTION_VALUE","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/(0|[1-9][0-9]*)(\\\\.[0-9]+)?/"},"fragment":false,"hidden":false},{"$type":"ParserRule","name":"TitleAndAccessibilities","fragment":true,"definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}],"cardinality":"+"},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"EOL","fragment":true,"dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/"},"fragment":false}],"definesHiddenTokens":false,"hiddenTokens":[],"interfaces":[{"$type":"Interface","name":"Common","attributes":[{"$type":"TypeAttribute","name":"accDescr","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accTitle","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"title","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}}],"superTypes":[]}],"types":[],"usedGrammars":[]}'), "PieGrammar"), AO, wYt = /* @__PURE__ */ Dt(() => AO != null ? AO : AO = Fx('{"$type":"Grammar","isDeclared":true,"name":"Architecture","imports":[],"rules":[{"$type":"ParserRule","name":"Architecture","entry":true,"definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[],"cardinality":"*"},{"$type":"Keyword","value":"architecture-beta"},{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}]},{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[],"cardinality":"*"}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[],"cardinality":"*"}]}]},"definesHiddenTokens":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Statement","fragment":true,"definition":{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"groups","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Assignment","feature":"services","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}},{"$type":"Assignment","feature":"junctions","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}},{"$type":"Assignment","feature":"edges","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"LeftPort","fragment":true,"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":":"},{"$type":"Assignment","feature":"lhsDir","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"RightPort","fragment":true,"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"rhsDir","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}},{"$type":"Keyword","value":":"}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Arrow","fragment":true,"definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]},{"$type":"Assignment","feature":"lhsInto","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]},"cardinality":"?"},{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"--"},{"$type":"Group","elements":[{"$type":"Keyword","value":"-"},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}},{"$type":"Keyword","value":"-"}]}]},{"$type":"Assignment","feature":"rhsInto","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]},"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Group","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"group"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}},{"$type":"Assignment","feature":"icon","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]},"cardinality":"?"},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]},"cardinality":"?"},{"$type":"Group","elements":[{"$type":"Keyword","value":"in"},{"$type":"Assignment","feature":"in","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Service","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"service"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"iconText","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]}},{"$type":"Assignment","feature":"icon","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}}],"cardinality":"?"},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]},"cardinality":"?"},{"$type":"Group","elements":[{"$type":"Keyword","value":"in"},{"$type":"Assignment","feature":"in","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Junction","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"junction"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"in"},{"$type":"Assignment","feature":"in","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Edge","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"lhsId","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}},{"$type":"Assignment","feature":"lhsGroup","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]},"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]},{"$type":"Assignment","feature":"rhsId","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}},{"$type":"Assignment","feature":"rhsGroup","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]},"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"ARROW_DIRECTION","definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"L"}},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"R"}}]},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"T"}}]},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"B"}}]},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ARCH_ID","definition":{"$type":"RegexToken","regex":"/[\\\\w]+/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ARCH_TEXT_ICON","definition":{"$type":"RegexToken","regex":"/\\\\(\\"[^\\"]+\\"\\\\)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ARCH_ICON","definition":{"$type":"RegexToken","regex":"/\\\\([\\\\w-:]+\\\\)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ARCH_TITLE","definition":{"$type":"RegexToken","regex":"/\\\\[[\\\\w ]+\\\\]/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ARROW_GROUP","definition":{"$type":"RegexToken","regex":"/\\\\{group\\\\}/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ARROW_INTO","definition":{"$type":"RegexToken","regex":"/<|>/"},"fragment":false,"hidden":false},{"$type":"ParserRule","name":"TitleAndAccessibilities","fragment":true,"definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@21"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}],"cardinality":"+"},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"EOL","fragment":true,"dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/"},"fragment":false}],"definesHiddenTokens":false,"hiddenTokens":[],"interfaces":[{"$type":"Interface","name":"Common","attributes":[{"$type":"TypeAttribute","name":"accDescr","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accTitle","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"title","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}}],"superTypes":[]}],"types":[],"usedGrammars":[]}'), "ArchitectureGrammar"), LO, OYt = /* @__PURE__ */ Dt(() => LO != null ? LO : LO = Fx(`{"$type":"Grammar","isDeclared":true,"name":"GitGraph","interfaces":[{"$type":"Interface","name":"Common","attributes":[{"$type":"TypeAttribute","name":"accDescr","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accTitle","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"title","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}}],"superTypes":[]}],"rules":[{"$type":"ParserRule","name":"TitleAndAccessibilities","fragment":true,"definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}],"cardinality":"+"},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"EOL","fragment":true,"dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/"},"fragment":false},{"$type":"ParserRule","name":"GitGraph","entry":true,"definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[],"cardinality":"*"},{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"gitGraph"},{"$type":"Group","elements":[{"$type":"Keyword","value":"gitGraph"},{"$type":"Keyword","value":":"}]},{"$type":"Keyword","value":"gitGraph:"},{"$type":"Group","elements":[{"$type":"Keyword","value":"gitGraph"},{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]},{"$type":"Keyword","value":":"}]}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[],"cardinality":"*"},{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[],"cardinality":"*"},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@0"},"arguments":[]},{"$type":"Assignment","feature":"statements","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}],"cardinality":"*"}]}]},"definesHiddenTokens":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Statement","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Direction","definition":{"$type":"Assignment","feature":"dir","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"LR"},{"$type":"Keyword","value":"TB"},{"$type":"Keyword","value":"BT"}]}},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Commit","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"commit"},{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"Keyword","value":"id:"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"msg:","cardinality":"?"},{"$type":"Assignment","feature":"message","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"tag:"},{"$type":"Assignment","feature":"tags","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"type:"},{"$type":"Assignment","feature":"type","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"NORMAL"},{"$type":"Keyword","value":"REVERSE"},{"$type":"Keyword","value":"HIGHLIGHT"}]}}]}],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Branch","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"branch"},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"order:"},{"$type":"Assignment","feature":"order","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Merge","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"merge"},{"$type":"Assignment","feature":"branch","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}]}},{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"Keyword","value":"id:"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"tag:"},{"$type":"Assignment","feature":"tags","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"type:"},{"$type":"Assignment","feature":"type","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"NORMAL"},{"$type":"Keyword","value":"REVERSE"},{"$type":"Keyword","value":"HIGHLIGHT"}]}}]}],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Checkout","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"checkout"},{"$type":"Keyword","value":"switch"}]},{"$type":"Assignment","feature":"branch","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"CherryPicking","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"cherry-pick"},{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"Keyword","value":"id:"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"tag:"},{"$type":"Assignment","feature":"tags","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"parent:"},{"$type":"Assignment","feature":"parent","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}}]}],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+(?=\\\\s)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\\\w([-\\\\./\\\\w]*[-\\\\w])?/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","definition":{"$type":"RegexToken","regex":"/\\"[^\\"]*\\"|'[^']*'/"},"fragment":false,"hidden":false}],"definesHiddenTokens":false,"hiddenTokens":[],"imports":[],"types":[],"usedGrammars":[]}`), "GitGraphGrammar"), kYt = { languageId: "info", fileExtensions: [".mmd", ".mermaid"], caseInsensitive: !1 -}, CYt = { +}, SYt = { languageId: "packet", fileExtensions: [".mmd", ".mermaid"], caseInsensitive: !1 -}, EYt = { +}, TYt = { languageId: "pie", fileExtensions: [".mmd", ".mermaid"], caseInsensitive: !1 -}, _Yt = { +}, CYt = { languageId: "architecture", fileExtensions: [".mmd", ".mermaid"], caseInsensitive: !1 -}, AYt = { +}, EYt = { languageId: "gitGraph", fileExtensions: [".mmd", ".mermaid"], caseInsensitive: !1 }, zx = { - AstReflection: /* @__PURE__ */ Dt(() => new tpe(), "AstReflection") + AstReflection: /* @__PURE__ */ Dt(() => new J0e(), "AstReflection") +}, _Yt = { + Grammar: /* @__PURE__ */ Dt(() => yYt(), "Grammar"), + LanguageMetaData: /* @__PURE__ */ Dt(() => kYt, "LanguageMetaData"), + parser: {} +}, AYt = { + Grammar: /* @__PURE__ */ Dt(() => bYt(), "Grammar"), + LanguageMetaData: /* @__PURE__ */ Dt(() => SYt, "LanguageMetaData"), + parser: {} }, LYt = { Grammar: /* @__PURE__ */ Dt(() => xYt(), "Grammar"), LanguageMetaData: /* @__PURE__ */ Dt(() => TYt, "LanguageMetaData"), @@ -81793,25 +81745,17 @@ var bYt = "Direction", mb, tpe = (mb = class extends Ufe { Grammar: /* @__PURE__ */ Dt(() => OYt(), "Grammar"), LanguageMetaData: /* @__PURE__ */ Dt(() => EYt, "LanguageMetaData"), parser: {} -}, DYt = { - Grammar: /* @__PURE__ */ Dt(() => kYt(), "Grammar"), - LanguageMetaData: /* @__PURE__ */ Dt(() => _Yt, "LanguageMetaData"), - parser: {} -}, NYt = { - Grammar: /* @__PURE__ */ Dt(() => SYt(), "Grammar"), - LanguageMetaData: /* @__PURE__ */ Dt(() => AYt, "LanguageMetaData"), - parser: {} -}, IYt = /accDescr(?:[\t ]*:([^\n\r]*)|\s*{([^}]*)})/, PYt = /accTitle[\t ]*:([^\n\r]*)/, $Yt = /title([\t ][^\n\r]*|)/, BYt = { - ACC_DESCR: IYt, - ACC_TITLE: PYt, - TITLE: $Yt -}, vb, GI = (vb = class extends $0e { +}, DYt = /accDescr(?:[\t ]*:([^\n\r]*)|\s*{([^}]*)})/, NYt = /accTitle[\t ]*:([^\n\r]*)/, IYt = /title([\t ][^\n\r]*|)/, PYt = { + ACC_DESCR: DYt, + ACC_TITLE: NYt, + TITLE: IYt +}, vb, YI = (vb = class extends I0e { runConverter(e, r, n) { let i = this.runCommonConverter(e, r, n); return i === void 0 && (i = this.runCustomConverter(e, r, n)), i === void 0 ? super.runConverter(e, r, n) : i; } runCommonConverter(e, r, n) { - const i = BYt[e.name]; + const i = PYt[e.name]; if (i === void 0) return; const s = i.exec(r); @@ -81825,12 +81769,12 @@ var bYt = "Direction", mb, tpe = (mb = class extends Ufe { } }, (() => { Dt(vb, "AbstractMermaidValueConverter"); -})(), vb), yb, HI = (yb = class extends GI { +})(), vb), yb, QI = (yb = class extends YI { runCustomConverter(e, r, n) { } }, (() => { Dt(yb, "CommonValueConverter"); -})(), yb), bb, gm = (bb = class extends P0e { +})(), yb), bb, gm = (bb = class extends N0e { constructor(e) { super(), this.keywords = new Set(e); } @@ -81845,116 +81789,116 @@ var bYt = "Direction", mb, tpe = (mb = class extends Ufe { })(), bb), xb; xb = class extends gm { }, Dt(xb, "CommonTokenBuilder"); -var wb, FYt = (wb = class extends gm { +var wb, $Yt = (wb = class extends gm { constructor() { super(["gitGraph"]); } }, (() => { Dt(wb, "GitGraphTokenBuilder"); -})(), wb), rpe = { +})(), wb), epe = { parser: { - TokenBuilder: /* @__PURE__ */ Dt(() => new FYt(), "TokenBuilder"), - ValueConverter: /* @__PURE__ */ Dt(() => new HI(), "ValueConverter") + TokenBuilder: /* @__PURE__ */ Dt(() => new $Yt(), "TokenBuilder"), + ValueConverter: /* @__PURE__ */ Dt(() => new QI(), "ValueConverter") } }; -function npe(t = pm) { +function tpe(t = pm) { const e = el( dm(t), zx ), r = el( fm({ shared: e }), - NYt, - rpe + MYt, + epe ); return e.ServiceRegistry.register(r), { shared: e, GitGraph: r }; } -Dt(npe, "createGitGraphServices"); -var Ob, zYt = (Ob = class extends gm { +Dt(tpe, "createGitGraphServices"); +var Ob, BYt = (Ob = class extends gm { constructor() { super(["info", "showInfo"]); } }, (() => { Dt(Ob, "InfoTokenBuilder"); -})(), Ob), ipe = { +})(), Ob), rpe = { parser: { - TokenBuilder: /* @__PURE__ */ Dt(() => new zYt(), "TokenBuilder"), - ValueConverter: /* @__PURE__ */ Dt(() => new HI(), "ValueConverter") + TokenBuilder: /* @__PURE__ */ Dt(() => new BYt(), "TokenBuilder"), + ValueConverter: /* @__PURE__ */ Dt(() => new QI(), "ValueConverter") } }; -function spe(t = pm) { +function npe(t = pm) { const e = el( dm(t), zx ), r = el( fm({ shared: e }), - LYt, - ipe + _Yt, + rpe ); return e.ServiceRegistry.register(r), { shared: e, Info: r }; } -Dt(spe, "createInfoServices"); -var kb, VYt = (kb = class extends gm { +Dt(npe, "createInfoServices"); +var kb, FYt = (kb = class extends gm { constructor() { super(["packet-beta"]); } }, (() => { Dt(kb, "PacketTokenBuilder"); -})(), kb), ape = { +})(), kb), ipe = { parser: { - TokenBuilder: /* @__PURE__ */ Dt(() => new VYt(), "TokenBuilder"), - ValueConverter: /* @__PURE__ */ Dt(() => new HI(), "ValueConverter") + TokenBuilder: /* @__PURE__ */ Dt(() => new FYt(), "TokenBuilder"), + ValueConverter: /* @__PURE__ */ Dt(() => new QI(), "ValueConverter") } }; -function ope(t = pm) { +function spe(t = pm) { const e = el( dm(t), zx ), r = el( fm({ shared: e }), - RYt, - ape + AYt, + ipe ); return e.ServiceRegistry.register(r), { shared: e, Packet: r }; } -Dt(ope, "createPacketServices"); -var Sb, UYt = (Sb = class extends gm { +Dt(spe, "createPacketServices"); +var Sb, zYt = (Sb = class extends gm { constructor() { super(["pie", "showData"]); } }, (() => { Dt(Sb, "PieTokenBuilder"); -})(), Sb), Tb, qYt = (Tb = class extends GI { +})(), Sb), Tb, VYt = (Tb = class extends YI { runCustomConverter(e, r, n) { if (e.name === "PIE_SECTION_LABEL") return r.replace(/"/g, "").trim(); } }, (() => { Dt(Tb, "PieValueConverter"); -})(), Tb), lpe = { +})(), Tb), ape = { parser: { - TokenBuilder: /* @__PURE__ */ Dt(() => new UYt(), "TokenBuilder"), - ValueConverter: /* @__PURE__ */ Dt(() => new qYt(), "ValueConverter") + TokenBuilder: /* @__PURE__ */ Dt(() => new zYt(), "TokenBuilder"), + ValueConverter: /* @__PURE__ */ Dt(() => new VYt(), "ValueConverter") } }; -function cpe(t = pm) { +function ope(t = pm) { const e = el( dm(t), zx ), r = el( fm({ shared: e }), - MYt, - lpe + LYt, + ape ); return e.ServiceRegistry.register(r), { shared: e, Pie: r }; } -Dt(cpe, "createPieServices"); -var Cb, YYt = (Cb = class extends gm { +Dt(ope, "createPieServices"); +var Cb, UYt = (Cb = class extends gm { constructor() { super(["architecture"]); } }, (() => { Dt(Cb, "ArchitectureTokenBuilder"); -})(), Cb), Eb, QYt = (Eb = class extends GI { +})(), Cb), Eb, qYt = (Eb = class extends YI { runCustomConverter(e, r, n) { if (e.name === "ARCH_ICON") return r.replace(/[()]/g, "").trim(); @@ -81965,58 +81909,58 @@ var Cb, YYt = (Cb = class extends gm { } }, (() => { Dt(Eb, "ArchitectureValueConverter"); -})(), Eb), upe = { +})(), Eb), lpe = { parser: { - TokenBuilder: /* @__PURE__ */ Dt(() => new YYt(), "TokenBuilder"), - ValueConverter: /* @__PURE__ */ Dt(() => new QYt(), "ValueConverter") + TokenBuilder: /* @__PURE__ */ Dt(() => new UYt(), "TokenBuilder"), + ValueConverter: /* @__PURE__ */ Dt(() => new qYt(), "ValueConverter") } }; -function hpe(t = pm) { +function cpe(t = pm) { const e = el( dm(t), zx ), r = el( fm({ shared: e }), - DYt, - upe + RYt, + lpe ); return e.ServiceRegistry.register(r), { shared: e, Architecture: r }; } -Dt(hpe, "createArchitectureServices"); -var wd = {}, WYt = { +Dt(cpe, "createArchitectureServices"); +var wd = {}, YYt = { info: /* @__PURE__ */ Dt(async () => { - const { createInfoServices: t } = await Promise.resolve().then(() => Zlr), e = t().Info.parser.LangiumParser; + const { createInfoServices: t } = await Promise.resolve().then(() => Hlr), e = t().Info.parser.LangiumParser; wd.info = e; }, "info"), packet: /* @__PURE__ */ Dt(async () => { - const { createPacketServices: t } = await Promise.resolve().then(() => jlr), e = t().Packet.parser.LangiumParser; + const { createPacketServices: t } = await Promise.resolve().then(() => Xlr), e = t().Packet.parser.LangiumParser; wd.packet = e; }, "packet"), pie: /* @__PURE__ */ Dt(async () => { - const { createPieServices: t } = await Promise.resolve().then(() => Klr), e = t().Pie.parser.LangiumParser; + const { createPieServices: t } = await Promise.resolve().then(() => Zlr), e = t().Pie.parser.LangiumParser; wd.pie = e; }, "pie"), architecture: /* @__PURE__ */ Dt(async () => { - const { createArchitectureServices: t } = await Promise.resolve().then(() => Jlr), e = t().Architecture.parser.LangiumParser; + const { createArchitectureServices: t } = await Promise.resolve().then(() => jlr), e = t().Architecture.parser.LangiumParser; wd.architecture = e; }, "architecture"), gitGraph: /* @__PURE__ */ Dt(async () => { - const { createGitGraphServices: t } = await Promise.resolve().then(() => ecr), e = t().GitGraph.parser.LangiumParser; + const { createGitGraphServices: t } = await Promise.resolve().then(() => Klr), e = t().GitGraph.parser.LangiumParser; wd.gitGraph = e; }, "gitGraph") }; async function mm(t, e) { - const r = WYt[t]; + const r = YYt[t]; if (!r) throw new Error(`Unknown diagram type: ${t}`); wd[t] || await r(); const i = wd[t].parse(e); if (i.lexerErrors.length > 0 || i.parserErrors.length > 0) - throw new GYt(i); + throw new QYt(i); return i.value; } Dt(mm, "parse"); -var _b, GYt = (_b = class extends Error { +var _b, QYt = (_b = class extends Error { constructor(e) { const r = e.lexerErrors.map((i) => i.message).join(` `), n = e.parserErrors.map((i) => i.message).join(` @@ -82031,10 +81975,10 @@ var _b, GYt = (_b = class extends Error { HIGHLIGHT: 2, MERGE: 3, CHERRY_PICK: 4 -}, HYt = jr.gitGraph, np = /* @__PURE__ */ x(() => ch({ - ...HYt, +}, WYt = jr.gitGraph, np = /* @__PURE__ */ x(() => ch({ + ...WYt, ...pi().gitGraph -}), "getConfig"), wt = new kI(() => { +}), "getConfig"), wt = new xI(() => { const t = np(), e = t.mainBranchName, r = t.mainBranchOrder; return { mainBranchName: e, @@ -82048,30 +81992,30 @@ var _b, GYt = (_b = class extends Error { options: {} }; }); -function RC() { - return _ae({ length: 7 }); +function AC() { + return Cae({ length: 7 }); } -x(RC, "getID"); -function fpe(t, e) { +x(AC, "getID"); +function upe(t, e) { const r = /* @__PURE__ */ Object.create(null); return t.reduce((n, i) => { const s = e(i); return r[s] || (r[s] = !0, n.push(i)), n; }, []); } -x(fpe, "uniqBy"); -var XYt = /* @__PURE__ */ x(function(t) { +x(upe, "uniqBy"); +var GYt = /* @__PURE__ */ x(function(t) { wt.records.direction = t; -}, "setDirection"), ZYt = /* @__PURE__ */ x(function(t) { +}, "setDirection"), HYt = /* @__PURE__ */ x(function(t) { X.debug("options str", t), t = t == null ? void 0 : t.trim(), t = t || "{}"; try { wt.records.options = JSON.parse(t); } catch (e) { X.error("error while parsing gitGraph options", e.message); } -}, "setOptions"), jYt = /* @__PURE__ */ x(function() { +}, "setOptions"), XYt = /* @__PURE__ */ x(function() { return wt.records.options; -}, "getOptions"), KYt = /* @__PURE__ */ x(function(t) { +}, "getOptions"), ZYt = /* @__PURE__ */ x(function(t) { let e = t.msg, r = t.id; const n = t.type; let i = t.tags; @@ -82079,7 +82023,7 @@ var XYt = /* @__PURE__ */ x(function(t) { const s = np(); r = at.sanitizeText(r, s), e = at.sanitizeText(e, s), i = i == null ? void 0 : i.map((o) => at.sanitizeText(o, s)); const a = { - id: r || wt.records.seq + "-" + RC(), + id: r || wt.records.seq + "-" + AC(), message: e, seq: wt.records.seq++, type: n != null ? n : Hr.NORMAL, @@ -82088,15 +82032,15 @@ var XYt = /* @__PURE__ */ x(function(t) { branch: wt.records.currBranch }; wt.records.head = a, X.info("main branch", s.mainBranchName), wt.records.commits.set(a.id, a), wt.records.branches.set(wt.records.currBranch, a.id), X.debug("in pushCommit " + a.id); -}, "commit"), JYt = /* @__PURE__ */ x(function(t) { +}, "commit"), jYt = /* @__PURE__ */ x(function(t) { let e = t.name; const r = t.order; if (e = at.sanitizeText(e, np()), wt.records.branches.has(e)) throw new Error( `Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout ${e}")` ); - wt.records.branches.set(e, wt.records.head != null ? wt.records.head.id : null), wt.records.branchConfig.set(e, { name: e, order: r }), dpe(e), X.debug("in createBranch"); -}, "branch"), eQt = /* @__PURE__ */ x((t) => { + wt.records.branches.set(e, wt.records.head != null ? wt.records.head.id : null), wt.records.branchConfig.set(e, { name: e, order: r }), hpe(e), X.debug("in createBranch"); +}, "branch"), KYt = /* @__PURE__ */ x((t) => { let e = t.branch, r = t.id; const n = t.type, i = t.tags, s = np(); e = at.sanitizeText(e, s), r && (r = at.sanitizeText(r, s)); @@ -82162,7 +82106,7 @@ var XYt = /* @__PURE__ */ x(function(t) { }, d; } const h = o || "", f = { - id: r || `${wt.records.seq}-${RC()}`, + id: r || `${wt.records.seq}-${AC()}`, message: `merged branch ${e} into ${wt.records.currBranch}`, seq: wt.records.seq++, parents: wt.records.head == null ? [] : [wt.records.head.id, h], @@ -82173,7 +82117,7 @@ var XYt = /* @__PURE__ */ x(function(t) { tags: i != null ? i : [] }; wt.records.head = f, wt.records.commits.set(f.id, f), wt.records.branches.set(wt.records.currBranch, f.id), X.debug(wt.records.branches), X.debug("in mergeBranch"); -}, "merge"), tQt = /* @__PURE__ */ x(function(t) { +}, "merge"), JYt = /* @__PURE__ */ x(function(t) { let e = t.id, r = t.targetId, n = t.tags, i = t.parent; X.debug("Entering cherryPick:", e, r, n); const s = np(); @@ -82233,7 +82177,7 @@ var XYt = /* @__PURE__ */ x(function(t) { }, f; } const h = { - id: wt.records.seq + "-" + RC(), + id: wt.records.seq + "-" + AC(), message: `cherry-picked ${a == null ? void 0 : a.message} into ${wt.records.currBranch}`, seq: wt.records.seq++, parents: wt.records.head == null ? [] : [wt.records.head.id, a.id], @@ -82245,7 +82189,7 @@ var XYt = /* @__PURE__ */ x(function(t) { }; wt.records.head = h, wt.records.commits.set(h.id, h), wt.records.branches.set(wt.records.currBranch, h.id), X.debug(wt.records.branches), X.debug("in cherryPick"); } -}, "cherryPick"), dpe = /* @__PURE__ */ x(function(t) { +}, "cherryPick"), hpe = /* @__PURE__ */ x(function(t) { var e; if (t = at.sanitizeText(t, np()), wt.records.branches.has(t)) { wt.records.currBranch = t; @@ -82262,12 +82206,12 @@ var XYt = /* @__PURE__ */ x(function(t) { }, r; } }, "checkout"); -function D9(t, e, r) { +function L9(t, e, r) { const n = t.indexOf(e); n === -1 ? t.push(r) : t.splice(n, 1, r); } -x(D9, "upsert"); -function XI(t) { +x(L9, "upsert"); +function WI(t) { const e = t.reduce((i, s) => i.seq > s.seq ? i : s, t[0]); let r = ""; t.forEach(function(i) { @@ -82278,25 +82222,25 @@ function XI(t) { wt.records.branches.get(i) === e.id && n.push(i); if (X.debug(n.join(" ")), e.parents && e.parents.length == 2 && e.parents[0] && e.parents[1]) { const i = wt.records.commits.get(e.parents[0]); - D9(t, e, i), e.parents[1] && t.push(wt.records.commits.get(e.parents[1])); + L9(t, e, i), e.parents[1] && t.push(wt.records.commits.get(e.parents[1])); } else { if (e.parents.length == 0) return; if (e.parents[0]) { const i = wt.records.commits.get(e.parents[0]); - D9(t, e, i); + L9(t, e, i); } } - t = fpe(t, (i) => i.id), XI(t); + t = upe(t, (i) => i.id), WI(t); } -x(XI, "prettyPrintCommitHistory"); -var rQt = /* @__PURE__ */ x(function() { +x(WI, "prettyPrintCommitHistory"); +var eQt = /* @__PURE__ */ x(function() { X.debug(wt.records.commits); - const t = ppe()[0]; - XI([t]); -}, "prettyPrint"), nQt = /* @__PURE__ */ x(function() { + const t = fpe()[0]; + WI([t]); +}, "prettyPrint"), tQt = /* @__PURE__ */ x(function() { wt.reset(), Xi(); -}, "clear"), iQt = /* @__PURE__ */ x(function() { +}, "clear"), rQt = /* @__PURE__ */ x(function() { return [...wt.records.branchConfig.values()].map((e, r) => e.order !== null && e.order !== void 0 ? e : { ...e, order: parseFloat(`0.${r}`) @@ -82304,61 +82248,61 @@ var rQt = /* @__PURE__ */ x(function() { var n, i; return ((n = e.order) != null ? n : 0) - ((i = r.order) != null ? i : 0); }).map(({ name: e }) => ({ name: e })); -}, "getBranchesAsObjArray"), sQt = /* @__PURE__ */ x(function() { +}, "getBranchesAsObjArray"), nQt = /* @__PURE__ */ x(function() { return wt.records.branches; -}, "getBranches"), aQt = /* @__PURE__ */ x(function() { +}, "getBranches"), iQt = /* @__PURE__ */ x(function() { return wt.records.commits; -}, "getCommits"), ppe = /* @__PURE__ */ x(function() { +}, "getCommits"), fpe = /* @__PURE__ */ x(function() { const t = [...wt.records.commits.values()]; return t.forEach(function(e) { X.debug(e.id); }), t.sort((e, r) => e.seq - r.seq), t; -}, "getCommitsArray"), oQt = /* @__PURE__ */ x(function() { +}, "getCommitsArray"), sQt = /* @__PURE__ */ x(function() { return wt.records.currBranch; -}, "getCurrentBranch"), lQt = /* @__PURE__ */ x(function() { +}, "getCurrentBranch"), aQt = /* @__PURE__ */ x(function() { return wt.records.direction; -}, "getDirection"), cQt = /* @__PURE__ */ x(function() { +}, "getDirection"), oQt = /* @__PURE__ */ x(function() { return wt.records.head; -}, "getHead"), gpe = { +}, "getHead"), dpe = { commitType: Hr, getConfig: np, - setDirection: XYt, - setOptions: ZYt, - getOptions: jYt, - commit: KYt, - branch: JYt, - merge: eQt, - cherryPick: tQt, - checkout: dpe, - prettyPrint: rQt, - clear: nQt, - getBranchesAsObjArray: iQt, - getBranches: sQt, - getCommits: aQt, - getCommitsArray: ppe, - getCurrentBranch: oQt, - getDirection: lQt, - getHead: cQt, + setDirection: GYt, + setOptions: HYt, + getOptions: XYt, + commit: ZYt, + branch: jYt, + merge: KYt, + cherryPick: JYt, + checkout: hpe, + prettyPrint: eQt, + clear: tQt, + getBranchesAsObjArray: rQt, + getBranches: nQt, + getCommits: iQt, + getCommitsArray: fpe, + getCurrentBranch: sQt, + getDirection: aQt, + getHead: oQt, setAccTitle: Zi, getAccTitle: vs, getAccDescription: bs, setAccDescription: ys, setDiagramTitle: fa, getDiagramTitle: xs -}, uQt = /* @__PURE__ */ x((t, e) => { +}, lQt = /* @__PURE__ */ x((t, e) => { Mx(t, e), t.dir && e.setDirection(t.dir); for (const r of t.statements) - hQt(r, e); -}, "populate"), hQt = /* @__PURE__ */ x((t, e) => { + cQt(r, e); +}, "populate"), cQt = /* @__PURE__ */ x((t, e) => { const n = { - Commit: /* @__PURE__ */ x((i) => e.commit(fQt(i)), "Commit"), - Branch: /* @__PURE__ */ x((i) => e.branch(dQt(i)), "Branch"), - Merge: /* @__PURE__ */ x((i) => e.merge(pQt(i)), "Merge"), - Checkout: /* @__PURE__ */ x((i) => e.checkout(gQt(i)), "Checkout"), - CherryPicking: /* @__PURE__ */ x((i) => e.cherryPick(mQt(i)), "CherryPicking") + Commit: /* @__PURE__ */ x((i) => e.commit(uQt(i)), "Commit"), + Branch: /* @__PURE__ */ x((i) => e.branch(hQt(i)), "Branch"), + Merge: /* @__PURE__ */ x((i) => e.merge(fQt(i)), "Merge"), + Checkout: /* @__PURE__ */ x((i) => e.checkout(dQt(i)), "Checkout"), + CherryPicking: /* @__PURE__ */ x((i) => e.cherryPick(pQt(i)), "CherryPicking") }[t.$type]; n ? n(t) : X.error(`Unknown statement type: ${t.$type}`); -}, "parseStatement"), fQt = /* @__PURE__ */ x((t) => { +}, "parseStatement"), uQt = /* @__PURE__ */ x((t) => { var r, n; return { id: t.id, @@ -82366,13 +82310,13 @@ var rQt = /* @__PURE__ */ x(function() { type: t.type !== void 0 ? Hr[t.type] : Hr.NORMAL, tags: (n = t.tags) != null ? n : void 0 }; -}, "parseCommit"), dQt = /* @__PURE__ */ x((t) => { +}, "parseCommit"), hQt = /* @__PURE__ */ x((t) => { var r; return { name: t.name, order: (r = t.order) != null ? r : 0 }; -}, "parseBranch"), pQt = /* @__PURE__ */ x((t) => { +}, "parseBranch"), fQt = /* @__PURE__ */ x((t) => { var r, n; return { branch: t.branch, @@ -82380,7 +82324,7 @@ var rQt = /* @__PURE__ */ x(function() { type: t.type !== void 0 ? Hr[t.type] : void 0, tags: (n = t.tags) != null ? n : void 0 }; -}, "parseMerge"), gQt = /* @__PURE__ */ x((t) => t.branch, "parseCheckout"), mQt = /* @__PURE__ */ x((t) => { +}, "parseMerge"), dQt = /* @__PURE__ */ x((t) => t.branch, "parseCheckout"), pQt = /* @__PURE__ */ x((t) => { var r; return { id: t.id, @@ -82388,73 +82332,73 @@ var rQt = /* @__PURE__ */ x(function() { tags: ((r = t.tags) == null ? void 0 : r.length) === 0 ? void 0 : t.tags, parent: t.parent }; -}, "parseCherryPicking"), vQt = { +}, "parseCherryPicking"), gQt = { parse: /* @__PURE__ */ x(async (t) => { const e = await mm("gitGraph", t); - X.debug(e), uQt(e, gpe); + X.debug(e), lQt(e, dpe); }, "parse") -}, K_ = be(), ui = K_ == null ? void 0 : K_.gitGraph, qh = 10, Yh = 40, sc = 4, mu = 2, Od = 8, Aa = /* @__PURE__ */ new Map(), Ia = /* @__PURE__ */ new Map(), Yk = 30, Mv = /* @__PURE__ */ new Map(), Qk = [], Rh = 0, Tr = "LR", yQt = /* @__PURE__ */ x(() => { - Aa.clear(), Ia.clear(), Mv.clear(), Rh = 0, Qk = [], Tr = "LR"; -}, "clear"), mpe = /* @__PURE__ */ x((t) => { +}, Z_ = be(), ui = Z_ == null ? void 0 : Z_.gitGraph, qh = 10, Yh = 40, sc = 4, mu = 2, Od = 8, Aa = /* @__PURE__ */ new Map(), Ia = /* @__PURE__ */ new Map(), qk = 30, Mv = /* @__PURE__ */ new Map(), Yk = [], Rh = 0, Tr = "LR", mQt = /* @__PURE__ */ x(() => { + Aa.clear(), Ia.clear(), Mv.clear(), Rh = 0, Yk = [], Tr = "LR"; +}, "clear"), ppe = /* @__PURE__ */ x((t) => { const e = document.createElementNS("http://www.w3.org/2000/svg", "text"); return (typeof t == "string" ? t.split(/\\n|\n|/gi) : t).forEach((n) => { const i = document.createElementNS("http://www.w3.org/2000/svg", "tspan"); i.setAttributeNS("http://www.w3.org/XML/1998/namespace", "xml:space", "preserve"), i.setAttribute("dy", "1em"), i.setAttribute("x", "0"), i.setAttribute("class", "row"), i.textContent = n.trim(), e.appendChild(i); }), e; -}, "drawText"), vpe = /* @__PURE__ */ x((t) => { +}, "drawText"), gpe = /* @__PURE__ */ x((t) => { let e, r, n; return Tr === "BT" ? (r = /* @__PURE__ */ x((i, s) => i <= s, "comparisonFunc"), n = 1 / 0) : (r = /* @__PURE__ */ x((i, s) => i >= s, "comparisonFunc"), n = 0), t.forEach((i) => { var a, o; const s = Tr === "TB" || Tr == "BT" ? (a = Ia.get(i)) == null ? void 0 : a.y : (o = Ia.get(i)) == null ? void 0 : o.x; s !== void 0 && r(s, n) && (e = i, n = s); }), e; -}, "findClosestParent"), bQt = /* @__PURE__ */ x((t) => { +}, "findClosestParent"), vQt = /* @__PURE__ */ x((t) => { let e = "", r = 1 / 0; return t.forEach((n) => { const i = Ia.get(n).y; i <= r && (e = n, r = i); }), e || void 0; -}, "findClosestParentBT"), xQt = /* @__PURE__ */ x((t, e, r) => { +}, "findClosestParentBT"), yQt = /* @__PURE__ */ x((t, e, r) => { let n = r, i = r; const s = []; t.forEach((a) => { const o = e.get(a); if (!o) throw new Error(`Commit not found for key ${a}`); - o.parents.length ? (n = OQt(o), i = Math.max(n, i)) : s.push(o), kQt(o, n); + o.parents.length ? (n = xQt(o), i = Math.max(n, i)) : s.push(o), wQt(o, n); }), n = i, s.forEach((a) => { - SQt(a, n, r); + OQt(a, n, r); }), t.forEach((a) => { const o = e.get(a); if (o != null && o.parents.length) { - const l = bQt(o.parents); + const l = vQt(o.parents); n = Ia.get(l).y - Yh, n <= i && (i = n); const u = Aa.get(o.branch).pos, h = n - qh; Ia.set(o.id, { x: u, y: h }); } }); -}, "setParallelBTPos"), wQt = /* @__PURE__ */ x((t) => { +}, "setParallelBTPos"), bQt = /* @__PURE__ */ x((t) => { var n; - const e = vpe(t.parents.filter((i) => i !== null)); + const e = gpe(t.parents.filter((i) => i !== null)); if (!e) throw new Error(`Closest parent not found for commit ${t.id}`); const r = (n = Ia.get(e)) == null ? void 0 : n.y; if (r === void 0) throw new Error(`Closest parent position not found for commit ${t.id}`); return r; -}, "findClosestParentPos"), OQt = /* @__PURE__ */ x((t) => wQt(t) + Yh, "calculateCommitPosition"), kQt = /* @__PURE__ */ x((t, e) => { +}, "findClosestParentPos"), xQt = /* @__PURE__ */ x((t) => bQt(t) + Yh, "calculateCommitPosition"), wQt = /* @__PURE__ */ x((t, e) => { const r = Aa.get(t.branch); if (!r) throw new Error(`Branch not found for commit ${t.id}`); const n = r.pos, i = e + qh; return Ia.set(t.id, { x: n, y: i }), { x: n, y: i }; -}, "setCommitPosition"), SQt = /* @__PURE__ */ x((t, e, r) => { +}, "setCommitPosition"), OQt = /* @__PURE__ */ x((t, e, r) => { const n = Aa.get(t.branch); if (!n) throw new Error(`Branch not found for commit ${t.id}`); const i = e + r, s = n.pos; Ia.set(t.id, { x: s, y: i }); -}, "setRootPosition"), TQt = /* @__PURE__ */ x((t, e, r, n, i, s) => { +}, "setRootPosition"), kQt = /* @__PURE__ */ x((t, e, r, n, i, s) => { if (s === Hr.HIGHLIGHT) t.append("rect").attr("x", r.x - 10).attr("y", r.y - 10).attr("width", 20).attr("height", 20).attr( "class", @@ -82479,7 +82423,7 @@ var rQt = /* @__PURE__ */ x(function() { `M ${r.x - 5},${r.y - 5}L${r.x + 5},${r.y + 5}M${r.x - 5},${r.y + 5}L${r.x + 5},${r.y - 5}` ).attr("class", `commit ${n} ${e.id} commit${i % Od}`); } -}, "drawCommitBullet"), CQt = /* @__PURE__ */ x((t, e, r, n) => { +}, "drawCommitBullet"), SQt = /* @__PURE__ */ x((t, e, r, n) => { var i; if (e.type !== Hr.CHERRY_PICK && (e.customId && e.type === Hr.MERGE || e.type !== Hr.MERGE) && (ui == null ? void 0 : ui.showCommitLabel)) { const s = t.append("g"), a = s.insert("rect").attr("class", "commit-label-bkg"), o = s.append("text").attr("x", n).attr("y", r.y + 25).attr("class", "commit-label").text(e.id), l = (i = o.node()) == null ? void 0 : i.getBBox(); @@ -82500,7 +82444,7 @@ var rQt = /* @__PURE__ */ x(function() { ); } } -}, "drawCommitLabel"), EQt = /* @__PURE__ */ x((t, e, r, n) => { +}, "drawCommitLabel"), TQt = /* @__PURE__ */ x((t, e, r, n) => { var i; if (e.tags.length > 0) { let s = 0, a = 0, o = 0; @@ -82542,7 +82486,7 @@ var rQt = /* @__PURE__ */ x(function() { } } } -}, "drawCommitTags"), _Qt = /* @__PURE__ */ x((t) => { +}, "drawCommitTags"), CQt = /* @__PURE__ */ x((t) => { var r; switch ((r = t.customType) != null ? r : t.type) { case Hr.NORMAL: @@ -82558,66 +82502,66 @@ var rQt = /* @__PURE__ */ x(function() { default: return "commit-normal"; } -}, "getCommitClassType"), AQt = /* @__PURE__ */ x((t, e, r, n) => { +}, "getCommitClassType"), EQt = /* @__PURE__ */ x((t, e, r, n) => { var s, a, o; const i = { x: 0, y: 0 }; if (t.parents.length > 0) { - const l = vpe(t.parents); + const l = gpe(t.parents); if (l) { const u = (s = n.get(l)) != null ? s : i; return e === "TB" ? u.y + Yh : e === "BT" ? ((a = n.get(t.id)) != null ? a : i).y - Yh : u.x + Yh; } } else - return e === "TB" ? Yk : e === "BT" ? ((o = n.get(t.id)) != null ? o : i).y - Yh : 0; + return e === "TB" ? qk : e === "BT" ? ((o = n.get(t.id)) != null ? o : i).y - Yh : 0; return 0; -}, "calculatePosition"), LQt = /* @__PURE__ */ x((t, e, r) => { +}, "calculatePosition"), _Qt = /* @__PURE__ */ x((t, e, r) => { var a, o; const n = Tr === "BT" && r ? e : e + qh, i = Tr === "TB" || Tr === "BT" ? n : (a = Aa.get(t.branch)) == null ? void 0 : a.pos, s = Tr === "TB" || Tr === "BT" ? (o = Aa.get(t.branch)) == null ? void 0 : o.pos : n; if (s === void 0 || i === void 0) throw new Error(`Position were undefined for commit ${t.id}`); return { x: s, y: i, posWithOffset: n }; -}, "getCommitPosition"), rH = /* @__PURE__ */ x((t, e, r) => { +}, "getCommitPosition"), JG = /* @__PURE__ */ x((t, e, r) => { var h; if (!ui) throw new Error("GitGraph config not found"); const n = t.append("g").attr("class", "commit-bullets"), i = t.append("g").attr("class", "commit-labels"); - let s = Tr === "TB" || Tr === "BT" ? Yk : 0; + let s = Tr === "TB" || Tr === "BT" ? qk : 0; const a = [...e.keys()], o = (h = ui == null ? void 0 : ui.parallelCommits) != null ? h : !1, l = /* @__PURE__ */ x((f, d) => { var m, v; const p = (m = e.get(f)) == null ? void 0 : m.seq, g = (v = e.get(d)) == null ? void 0 : v.seq; return p !== void 0 && g !== void 0 ? p - g : 0; }, "sortKeys"); let u = a.sort(l); - Tr === "BT" && (o && xQt(u, e, s), u = u.reverse()), u.forEach((f) => { + Tr === "BT" && (o && yQt(u, e, s), u = u.reverse()), u.forEach((f) => { var g, m, v; const d = e.get(f); if (!d) throw new Error(`Commit not found for key ${f}`); - o && (s = AQt(d, Tr, s, Ia)); - const p = LQt(d, s, o); + o && (s = EQt(d, Tr, s, Ia)); + const p = _Qt(d, s, o); if (r) { - const y = _Qt(d), b = (g = d.customType) != null ? g : d.type, w = (v = (m = Aa.get(d.branch)) == null ? void 0 : m.index) != null ? v : 0; - TQt(n, d, p, y, w, b), CQt(i, d, p, s), EQt(i, d, p, s); + const y = CQt(d), b = (g = d.customType) != null ? g : d.type, w = (v = (m = Aa.get(d.branch)) == null ? void 0 : m.index) != null ? v : 0; + kQt(n, d, p, y, w, b), SQt(i, d, p, s), TQt(i, d, p, s); } Tr === "TB" || Tr === "BT" ? Ia.set(d.id, { x: p.x, y: p.posWithOffset }) : Ia.set(d.id, { x: p.posWithOffset, y: p.y }), s = Tr === "BT" && o ? s + Yh : s + Yh + qh, s > Rh && (Rh = s); }); -}, "drawCommits"), RQt = /* @__PURE__ */ x((t, e, r, n, i) => { +}, "drawCommits"), AQt = /* @__PURE__ */ x((t, e, r, n, i) => { const a = (Tr === "TB" || Tr === "BT" ? r.x < n.x : r.y < n.y) ? e.branch : t.branch, o = /* @__PURE__ */ x((u) => u.branch === a, "isOnBranchToGetCurve"), l = /* @__PURE__ */ x((u) => u.seq > t.seq && u.seq < e.seq, "isBetweenCommits"); return [...i.values()].some((u) => l(u) && o(u)); }, "shouldRerouteArrow"), Dv = /* @__PURE__ */ x((t, e, r = 0) => { const n = t + Math.abs(t - e) / 2; if (r > 5) return n; - if (Qk.every((a) => Math.abs(a - n) >= 10)) - return Qk.push(n), n; + if (Yk.every((a) => Math.abs(a - n) >= 10)) + return Yk.push(n), n; const s = Math.abs(t - e); return Dv(t, e - s / 5, r + 1); -}, "findLane"), MQt = /* @__PURE__ */ x((t, e, r, n) => { +}, "findLane"), LQt = /* @__PURE__ */ x((t, e, r, n) => { var p, g, m, v, y; const i = Ia.get(e.id), s = Ia.get(r.id); if (i === void 0 || s === void 0) throw new Error(`Commit positions not found for commits ${e.id} and ${r.id}`); - const a = RQt(e, r, i, s, n); + const a = AQt(e, r, i, s, n); let o = "", l = "", u = 0, h = 0, f = (p = Aa.get(r.branch)) == null ? void 0 : p.index; r.type === Hr.MERGE && e.id !== r.parents[0] && (f = (g = Aa.get(e.branch)) == null ? void 0 : g.index); let d; @@ -82630,15 +82574,15 @@ var rQt = /* @__PURE__ */ x(function() { if (d === void 0) throw new Error("Line definition not found"); t.append("path").attr("d", d).attr("class", "arrow arrow" + f % Od); -}, "drawArrow"), DQt = /* @__PURE__ */ x((t, e) => { +}, "drawArrow"), RQt = /* @__PURE__ */ x((t, e) => { const r = t.append("g").attr("class", "commit-arrows"); [...e.keys()].forEach((n) => { const i = e.get(n); i.parents && i.parents.length > 0 && i.parents.forEach((s) => { - MQt(r, e.get(s), i, e); + LQt(r, e.get(s), i, e); }); }); -}, "drawArrows"), NQt = /* @__PURE__ */ x((t, e) => { +}, "drawArrows"), MQt = /* @__PURE__ */ x((t, e) => { const r = t.append("g"); e.forEach((n, i) => { var g; @@ -82646,8 +82590,8 @@ var rQt = /* @__PURE__ */ x(function() { if (a === void 0) throw new Error(`Position not found for branch ${n.name}`); const o = r.append("line"); - o.attr("x1", 0), o.attr("y1", a), o.attr("x2", Rh), o.attr("y2", a), o.attr("class", "branch branch" + s), Tr === "TB" ? (o.attr("y1", Yk), o.attr("x1", a), o.attr("y2", Rh), o.attr("x2", a)) : Tr === "BT" && (o.attr("y1", Rh), o.attr("x1", a), o.attr("y2", Yk), o.attr("x2", a)), Qk.push(a); - const l = n.name, u = mpe(l), h = r.insert("rect"), d = r.insert("g").attr("class", "branchLabel").insert("g").attr("class", "label branch-label" + s); + o.attr("x1", 0), o.attr("y1", a), o.attr("x2", Rh), o.attr("y2", a), o.attr("class", "branch branch" + s), Tr === "TB" ? (o.attr("y1", qk), o.attr("x1", a), o.attr("y2", Rh), o.attr("x2", a)) : Tr === "BT" && (o.attr("y1", Rh), o.attr("x1", a), o.attr("y2", qk), o.attr("x2", a)), Yk.push(a); + const l = n.name, u = ppe(l), h = r.insert("rect"), d = r.insert("g").attr("class", "branchLabel").insert("g").attr("class", "label branch-label" + s); d.node().appendChild(u); const p = u.getBBox(); h.attr("class", "branchLabelBkg label" + s).attr("rx", 4).attr("ry", 4).attr("x", -p.width - 4 - ((ui == null ? void 0 : ui.rotateCommitLabel) === !0 ? 30 : 0)).attr("y", -p.height / 2 + 8).attr("width", p.width + 18).attr("height", p.height + 4), d.attr( @@ -82655,11 +82599,11 @@ var rQt = /* @__PURE__ */ x(function() { "translate(" + (-p.width - 14 - ((ui == null ? void 0 : ui.rotateCommitLabel) === !0 ? 30 : 0)) + ", " + (a - p.height / 2 - 1) + ")" ), Tr === "TB" ? (h.attr("x", a - p.width / 2 - 10).attr("y", 0), d.attr("transform", "translate(" + (a - p.width / 2 - 5) + ", 0)")) : Tr === "BT" ? (h.attr("x", a - p.width / 2 - 10).attr("y", Rh), d.attr("transform", "translate(" + (a - p.width / 2 - 5) + ", " + Rh + ")")) : h.attr("transform", "translate(-19, " + (a - p.height / 2) + ")"); }); -}, "drawBranches"), IQt = /* @__PURE__ */ x(function(t, e, r, n, i) { +}, "drawBranches"), DQt = /* @__PURE__ */ x(function(t, e, r, n, i) { return Aa.set(t, { pos: e, index: r }), e += 50 + (i ? 40 : 0) + (Tr === "TB" || Tr === "BT" ? n.width / 2 : 0), e; -}, "setBranchPosition"), PQt = /* @__PURE__ */ x(function(t, e, r, n) { +}, "setBranchPosition"), NQt = /* @__PURE__ */ x(function(t, e, r, n) { var u, h; - if (yQt(), X.debug("in gitgraph renderer", t + ` + if (mQt(), X.debug("in gitgraph renderer", t + ` `, "id:", e, r), !ui) throw new Error("GitGraph config not found"); const i = (u = ui.rotateCommitLabel) != null ? u : !1, s = n.db; @@ -82670,24 +82614,24 @@ var rQt = /* @__PURE__ */ x(function() { let l = 0; a.forEach((f, d) => { var b; - const p = mpe(f.name), g = o.append("g"), m = g.insert("g").attr("class", "branchLabel"), v = m.insert("g").attr("class", "label branch-label"); + const p = ppe(f.name), g = o.append("g"), m = g.insert("g").attr("class", "branchLabel"), v = m.insert("g").attr("class", "label branch-label"); (b = v.node()) == null || b.appendChild(p); const y = p.getBBox(); - l = IQt(f.name, l, d, y, i), v.remove(), m.remove(), g.remove(); - }), rH(o, Mv, !1), ui.showBranches && NQt(o, a), DQt(o, Mv), rH(o, Mv, !0), sr.insertTitle( + l = DQt(f.name, l, d, y, i), v.remove(), m.remove(), g.remove(); + }), JG(o, Mv, !1), ui.showBranches && MQt(o, a), RQt(o, Mv), JG(o, Mv, !0), sr.insertTitle( o, "gitTitleText", (h = ui.titleTopMargin) != null ? h : 0, s.getDiagramTitle() - ), $ie( + ), Iie( void 0, o, ui.diagramPadding, ui.useMaxWidth ); -}, "draw"), $Qt = { - draw: PQt -}, BQt = /* @__PURE__ */ x((t) => ` +}, "draw"), IQt = { + draw: NQt +}, PQt = /* @__PURE__ */ x((t) => ` .commit-id, .commit-msg, .branch-label { @@ -82740,17 +82684,17 @@ var rQt = /* @__PURE__ */ x(function() { font-size: 18px; fill: ${t.textColor}; } -`, "getStyles"), FQt = BQt, zQt = { - parser: vQt, - db: gpe, - renderer: $Qt, - styles: FQt +`, "getStyles"), $Qt = PQt, BQt = { + parser: gQt, + db: dpe, + renderer: IQt, + styles: $Qt }; -const VQt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +const FQt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - diagram: zQt + diagram: BQt }, Symbol.toStringTag, { value: "Module" })); -var ype = { exports: {} }; +var mpe = { exports: {} }; (function(t, e) { (function(r, n) { t.exports = n(); @@ -82777,9 +82721,9 @@ var ype = { exports: {} }; }; }; }); -})(ype); -const UQt = ype.exports; -var bpe = { exports: {} }; +})(mpe); +const zQt = mpe.exports; +var vpe = { exports: {} }; (function(t, e) { (function(r, n) { t.exports = n(); @@ -82910,9 +82854,9 @@ var bpe = { exports: {} }; }; }; }); -})(bpe); -const qQt = bpe.exports; -var xpe = { exports: {} }; +})(vpe); +const VQt = vpe.exports; +var ype = { exports: {} }; (function(t, e) { (function(r, n) { t.exports = n(); @@ -82960,9 +82904,9 @@ var xpe = { exports: {} }; }; }; }); -})(xpe); -const YQt = xpe.exports; -var N9 = function() { +})(ype); +const UQt = ype.exports; +var R9 = function() { var t = /* @__PURE__ */ x(function($, k, N, M) { for (N = N || {}, M = $.length; M--; N[$[M]] = k) ; @@ -83456,78 +83400,78 @@ Expecting ` + Qe.join(", ") + ", got '" + (this.terminals_[se] || se) + "'" : De } return x(A, "Parser"), A.prototype = R, R.Parser = A, new A(); }(); -N9.parser = N9; -var QQt = N9; +R9.parser = R9; +var qQt = R9; +Ns.extend(zQt); +Ns.extend(VQt); Ns.extend(UQt); -Ns.extend(qQt); -Ns.extend(YQt); -var nH = { friday: 5, saturday: 6 }, Sc = "", ZI = "", jI = void 0, KI = "", Vx = [], Ux = [], JI = /* @__PURE__ */ new Map(), eP = [], Wk = [], O1 = "", tP = "", wpe = ["active", "done", "crit", "milestone"], rP = [], qx = !1, nP = !1, iP = "sunday", Gk = "saturday", I9 = 0, WQt = /* @__PURE__ */ x(function() { - eP = [], Wk = [], O1 = "", rP = [], e5 = 0, $9 = void 0, t5 = void 0, yi = [], Sc = "", ZI = "", tP = "", jI = void 0, KI = "", Vx = [], Ux = [], qx = !1, nP = !1, I9 = 0, JI = /* @__PURE__ */ new Map(), Xi(), iP = "sunday", Gk = "saturday"; -}, "clear"), GQt = /* @__PURE__ */ x(function(t) { - ZI = t; -}, "setAxisFormat"), HQt = /* @__PURE__ */ x(function() { - return ZI; -}, "getAxisFormat"), XQt = /* @__PURE__ */ x(function(t) { - jI = t; -}, "setTickInterval"), ZQt = /* @__PURE__ */ x(function() { - return jI; -}, "getTickInterval"), jQt = /* @__PURE__ */ x(function(t) { - KI = t; -}, "setTodayMarker"), KQt = /* @__PURE__ */ x(function() { - return KI; -}, "getTodayMarker"), JQt = /* @__PURE__ */ x(function(t) { +var eH = { friday: 5, saturday: 6 }, Sc = "", GI = "", HI = void 0, XI = "", Vx = [], Ux = [], ZI = /* @__PURE__ */ new Map(), jI = [], Qk = [], O1 = "", KI = "", bpe = ["active", "done", "crit", "milestone"], JI = [], qx = !1, eP = !1, tP = "sunday", Wk = "saturday", M9 = 0, YQt = /* @__PURE__ */ x(function() { + jI = [], Qk = [], O1 = "", JI = [], J4 = 0, N9 = void 0, e5 = void 0, yi = [], Sc = "", GI = "", KI = "", HI = void 0, XI = "", Vx = [], Ux = [], qx = !1, eP = !1, M9 = 0, ZI = /* @__PURE__ */ new Map(), Xi(), tP = "sunday", Wk = "saturday"; +}, "clear"), QQt = /* @__PURE__ */ x(function(t) { + GI = t; +}, "setAxisFormat"), WQt = /* @__PURE__ */ x(function() { + return GI; +}, "getAxisFormat"), GQt = /* @__PURE__ */ x(function(t) { + HI = t; +}, "setTickInterval"), HQt = /* @__PURE__ */ x(function() { + return HI; +}, "getTickInterval"), XQt = /* @__PURE__ */ x(function(t) { + XI = t; +}, "setTodayMarker"), ZQt = /* @__PURE__ */ x(function() { + return XI; +}, "getTodayMarker"), jQt = /* @__PURE__ */ x(function(t) { Sc = t; -}, "setDateFormat"), eWt = /* @__PURE__ */ x(function() { +}, "setDateFormat"), KQt = /* @__PURE__ */ x(function() { qx = !0; -}, "enableInclusiveEndDates"), tWt = /* @__PURE__ */ x(function() { +}, "enableInclusiveEndDates"), JQt = /* @__PURE__ */ x(function() { return qx; -}, "endDatesAreInclusive"), rWt = /* @__PURE__ */ x(function() { - nP = !0; -}, "enableTopAxis"), nWt = /* @__PURE__ */ x(function() { - return nP; -}, "topAxisEnabled"), iWt = /* @__PURE__ */ x(function(t) { - tP = t; -}, "setDisplayMode"), sWt = /* @__PURE__ */ x(function() { - return tP; -}, "getDisplayMode"), aWt = /* @__PURE__ */ x(function() { +}, "endDatesAreInclusive"), eWt = /* @__PURE__ */ x(function() { + eP = !0; +}, "enableTopAxis"), tWt = /* @__PURE__ */ x(function() { + return eP; +}, "topAxisEnabled"), rWt = /* @__PURE__ */ x(function(t) { + KI = t; +}, "setDisplayMode"), nWt = /* @__PURE__ */ x(function() { + return KI; +}, "getDisplayMode"), iWt = /* @__PURE__ */ x(function() { return Sc; -}, "getDateFormat"), oWt = /* @__PURE__ */ x(function(t) { +}, "getDateFormat"), sWt = /* @__PURE__ */ x(function(t) { Vx = t.toLowerCase().split(/[\s,]+/); -}, "setIncludes"), lWt = /* @__PURE__ */ x(function() { +}, "setIncludes"), aWt = /* @__PURE__ */ x(function() { return Vx; -}, "getIncludes"), cWt = /* @__PURE__ */ x(function(t) { +}, "getIncludes"), oWt = /* @__PURE__ */ x(function(t) { Ux = t.toLowerCase().split(/[\s,]+/); -}, "setExcludes"), uWt = /* @__PURE__ */ x(function() { +}, "setExcludes"), lWt = /* @__PURE__ */ x(function() { return Ux; -}, "getExcludes"), hWt = /* @__PURE__ */ x(function() { - return JI; -}, "getLinks"), fWt = /* @__PURE__ */ x(function(t) { - O1 = t, eP.push(t); -}, "addSection"), dWt = /* @__PURE__ */ x(function() { - return eP; -}, "getSections"), pWt = /* @__PURE__ */ x(function() { - let t = iH(); +}, "getExcludes"), cWt = /* @__PURE__ */ x(function() { + return ZI; +}, "getLinks"), uWt = /* @__PURE__ */ x(function(t) { + O1 = t, jI.push(t); +}, "addSection"), hWt = /* @__PURE__ */ x(function() { + return jI; +}, "getSections"), fWt = /* @__PURE__ */ x(function() { + let t = tH(); const e = 10; let r = 0; for (; !t && r < e; ) - t = iH(), r++; - return Wk = yi, Wk; -}, "getTasks"), Ope = /* @__PURE__ */ x(function(t, e, r, n) { - return n.includes(t.format(e.trim())) ? !1 : r.includes("weekends") && (t.isoWeekday() === nH[Gk] || t.isoWeekday() === nH[Gk] + 1) || r.includes(t.format("dddd").toLowerCase()) ? !0 : r.includes(t.format(e.trim())); -}, "isInvalidDate"), gWt = /* @__PURE__ */ x(function(t) { - iP = t; -}, "setWeekday"), mWt = /* @__PURE__ */ x(function() { - return iP; -}, "getWeekday"), vWt = /* @__PURE__ */ x(function(t) { - Gk = t; -}, "setWeekend"), kpe = /* @__PURE__ */ x(function(t, e, r, n) { + t = tH(), r++; + return Qk = yi, Qk; +}, "getTasks"), xpe = /* @__PURE__ */ x(function(t, e, r, n) { + return n.includes(t.format(e.trim())) ? !1 : r.includes("weekends") && (t.isoWeekday() === eH[Wk] || t.isoWeekday() === eH[Wk] + 1) || r.includes(t.format("dddd").toLowerCase()) ? !0 : r.includes(t.format(e.trim())); +}, "isInvalidDate"), dWt = /* @__PURE__ */ x(function(t) { + tP = t; +}, "setWeekday"), pWt = /* @__PURE__ */ x(function() { + return tP; +}, "getWeekday"), gWt = /* @__PURE__ */ x(function(t) { + Wk = t; +}, "setWeekend"), wpe = /* @__PURE__ */ x(function(t, e, r, n) { if (!r.length || t.manualEndTime) return; let i; t.startTime instanceof Date ? i = Ns(t.startTime) : i = Ns(t.startTime, e, !0), i = i.add(1, "d"); let s; t.endTime instanceof Date ? s = Ns(t.endTime) : s = Ns(t.endTime, e, !0); - const [a, o] = yWt( + const [a, o] = mWt( i, s, e, @@ -83535,12 +83479,12 @@ var nH = { friday: 5, saturday: 6 }, Sc = "", ZI = "", jI = void 0, KI = "", Vx n ); t.endTime = a.toDate(), t.renderEndTime = o; -}, "checkTaskDates"), yWt = /* @__PURE__ */ x(function(t, e, r, n, i) { +}, "checkTaskDates"), mWt = /* @__PURE__ */ x(function(t, e, r, n, i) { let s = !1, a = null; for (; t <= e; ) - s || (a = e.toDate()), s = Ope(t, r, n, i), s && (e = e.add(1, "d")), t = t.add(1, "d"); + s || (a = e.toDate()), s = xpe(t, r, n, i), s && (e = e.add(1, "d")), t = t.add(1, "d"); return [e, a]; -}, "fixTaskDates"), P9 = /* @__PURE__ */ x(function(t, e, r) { +}, "fixTaskDates"), D9 = /* @__PURE__ */ x(function(t, e, r) { r = r.trim(); const i = /^after\s+(?[\d\w- ]+)/.exec(r); if (i !== null) { @@ -83564,10 +83508,10 @@ var nH = { friday: 5, saturday: 6 }, Sc = "", ZI = "", jI = void 0, KI = "", Vx throw new Error("Invalid date:" + r); return a; } -}, "getStartDate"), Spe = /* @__PURE__ */ x(function(t) { +}, "getStartDate"), Ope = /* @__PURE__ */ x(function(t) { const e = /^(\d+(?:\.\d+)?)([Mdhmswy]|ms)$/.exec(t.trim()); return e !== null ? [Number.parseFloat(e[1]), e[2]] : [NaN, "ms"]; -}, "parseDuration"), Tpe = /* @__PURE__ */ x(function(t, e, r, n = !1) { +}, "parseDuration"), kpe = /* @__PURE__ */ x(function(t, e, r, n = !1) { r = r.trim(); const s = /^until\s+(?[\d\w- ]+)/.exec(r); if (s !== null) { @@ -83585,19 +83529,19 @@ var nH = { friday: 5, saturday: 6 }, Sc = "", ZI = "", jI = void 0, KI = "", Vx if (a.isValid()) return n && (a = a.add(1, "d")), a.toDate(); let o = Ns(t); - const [l, u] = Spe(r); + const [l, u] = Ope(r); if (!Number.isNaN(l)) { const h = o.add(l, u); h.isValid() && (o = h); } return o.toDate(); -}, "getEndDate"), e5 = 0, fg = /* @__PURE__ */ x(function(t) { - return t === void 0 ? (e5 = e5 + 1, "task" + e5) : t; -}, "parseId"), bWt = /* @__PURE__ */ x(function(t, e) { +}, "getEndDate"), J4 = 0, fg = /* @__PURE__ */ x(function(t) { + return t === void 0 ? (J4 = J4 + 1, "task" + J4) : t; +}, "parseId"), vWt = /* @__PURE__ */ x(function(t, e) { let r; e.substr(0, 1) === ":" ? r = e.substr(1, e.length) : r = e; const n = r.split(","), i = {}; - sP(n, i, wpe); + rP(n, i, bpe); for (let a = 0; a < n.length; a++) n[a] = n[a].trim(); let s = ""; @@ -83606,18 +83550,18 @@ var nH = { friday: 5, saturday: 6 }, Sc = "", ZI = "", jI = void 0, KI = "", Vx i.id = fg(), i.startTime = t.endTime, s = n[0]; break; case 2: - i.id = fg(), i.startTime = P9(void 0, Sc, n[0]), s = n[1]; + i.id = fg(), i.startTime = D9(void 0, Sc, n[0]), s = n[1]; break; case 3: - i.id = fg(n[0]), i.startTime = P9(void 0, Sc, n[1]), s = n[2]; + i.id = fg(n[0]), i.startTime = D9(void 0, Sc, n[1]), s = n[2]; break; } - return s && (i.endTime = Tpe(i.startTime, Sc, s, qx), i.manualEndTime = Ns(s, "YYYY-MM-DD", !0).isValid(), kpe(i, Sc, Ux, Vx)), i; -}, "compileData"), xWt = /* @__PURE__ */ x(function(t, e) { + return s && (i.endTime = kpe(i.startTime, Sc, s, qx), i.manualEndTime = Ns(s, "YYYY-MM-DD", !0).isValid(), wpe(i, Sc, Ux, Vx)), i; +}, "compileData"), yWt = /* @__PURE__ */ x(function(t, e) { let r; e.substr(0, 1) === ":" ? r = e.substr(1, e.length) : r = e; const n = r.split(","), i = {}; - sP(n, i, wpe); + rP(n, i, bpe); for (let s = 0; s < n.length; s++) n[s] = n[s].trim(); switch (n.length) { @@ -83647,7 +83591,7 @@ var nH = { friday: 5, saturday: 6 }, Sc = "", ZI = "", jI = void 0, KI = "", Vx break; } return i; -}, "parseData"), $9, t5, yi = [], Cpe = {}, wWt = /* @__PURE__ */ x(function(t, e) { +}, "parseData"), N9, e5, yi = [], Spe = {}, bWt = /* @__PURE__ */ x(function(t, e) { const r = { section: O1, type: O1, @@ -83657,23 +83601,23 @@ var nH = { friday: 5, saturday: 6 }, Sc = "", ZI = "", jI = void 0, KI = "", Vx raw: { data: e }, task: t, classes: [] - }, n = xWt(t5, e); - r.raw.startTime = n.startTime, r.raw.endTime = n.endTime, r.id = n.id, r.prevTaskId = t5, r.active = n.active, r.done = n.done, r.crit = n.crit, r.milestone = n.milestone, r.order = I9, I9++; + }, n = yWt(e5, e); + r.raw.startTime = n.startTime, r.raw.endTime = n.endTime, r.id = n.id, r.prevTaskId = e5, r.active = n.active, r.done = n.done, r.crit = n.crit, r.milestone = n.milestone, r.order = M9, M9++; const i = yi.push(r); - t5 = r.id, Cpe[r.id] = i - 1; + e5 = r.id, Spe[r.id] = i - 1; }, "addTask"), ip = /* @__PURE__ */ x(function(t) { - const e = Cpe[t]; + const e = Spe[t]; return yi[e]; -}, "findTaskById"), OWt = /* @__PURE__ */ x(function(t, e) { +}, "findTaskById"), xWt = /* @__PURE__ */ x(function(t, e) { const r = { section: O1, type: O1, description: t, task: t, classes: [] - }, n = bWt($9, e); - r.startTime = n.startTime, r.endTime = n.endTime, r.id = n.id, r.active = n.active, r.done = n.done, r.crit = n.crit, r.milestone = n.milestone, $9 = r, Wk.push(r); -}, "addTaskOrg"), iH = /* @__PURE__ */ x(function() { + }, n = vWt(N9, e); + r.startTime = n.startTime, r.endTime = n.endTime, r.id = n.id, r.active = n.active, r.done = n.done, r.crit = n.crit, r.milestone = n.milestone, N9 = r, Qk.push(r); +}, "addTaskOrg"), tH = /* @__PURE__ */ x(function() { const t = /* @__PURE__ */ x(function(r) { const n = yi[r]; let i = ""; @@ -83684,10 +83628,10 @@ var nH = { friday: 5, saturday: 6 }, Sc = "", ZI = "", jI = void 0, KI = "", Vx break; } case "getStartDate": - i = P9(void 0, Sc, yi[r].raw.startTime.startData), i && (yi[r].startTime = i); + i = D9(void 0, Sc, yi[r].raw.startTime.startData), i && (yi[r].startTime = i); break; } - return yi[r].startTime && (yi[r].endTime = Tpe( + return yi[r].startTime && (yi[r].endTime = kpe( yi[r].startTime, Sc, yi[r].raw.endTime.data, @@ -83696,25 +83640,25 @@ var nH = { friday: 5, saturday: 6 }, Sc = "", ZI = "", jI = void 0, KI = "", Vx yi[r].raw.endTime.data, "YYYY-MM-DD", !0 - ).isValid(), kpe(yi[r], Sc, Ux, Vx))), yi[r].processed; + ).isValid(), wpe(yi[r], Sc, Ux, Vx))), yi[r].processed; }, "compileTask"); let e = !0; for (const [r, n] of yi.entries()) t(r), e = e && n.processed; return e; -}, "compileTasks"), kWt = /* @__PURE__ */ x(function(t, e) { +}, "compileTasks"), wWt = /* @__PURE__ */ x(function(t, e) { let r = e; be().securityLevel !== "loose" && (r = Uf(e)), t.split(",").forEach(function(n) { - ip(n) !== void 0 && (_pe(n, () => { + ip(n) !== void 0 && (Cpe(n, () => { window.open(r, "_self"); - }), JI.set(n, r)); - }), Epe(t, "clickable"); -}, "setLink"), Epe = /* @__PURE__ */ x(function(t, e) { + }), ZI.set(n, r)); + }), Tpe(t, "clickable"); +}, "setLink"), Tpe = /* @__PURE__ */ x(function(t, e) { t.split(",").forEach(function(r) { let n = ip(r); n !== void 0 && n.classes.push(e); }); -}, "setClass"), SWt = /* @__PURE__ */ x(function(t, e, r) { +}, "setClass"), OWt = /* @__PURE__ */ x(function(t, e, r) { if (be().securityLevel !== "loose" || e === void 0) return; let n = []; @@ -83725,11 +83669,11 @@ var nH = { friday: 5, saturday: 6 }, Sc = "", ZI = "", jI = void 0, KI = "", Vx a.startsWith('"') && a.endsWith('"') && (a = a.substr(1, a.length - 2)), n[s] = a; } } - n.length === 0 && n.push(t), ip(t) !== void 0 && _pe(t, () => { + n.length === 0 && n.push(t), ip(t) !== void 0 && Cpe(t, () => { sr.runFunc(e, ...n); }); -}, "setClickFun"), _pe = /* @__PURE__ */ x(function(t, e) { - rP.push( +}, "setClickFun"), Cpe = /* @__PURE__ */ x(function(t, e) { + JI.push( function() { const r = document.querySelector(`[id="${t}"]`); r !== null && r.addEventListener("click", function() { @@ -83743,58 +83687,58 @@ var nH = { friday: 5, saturday: 6 }, Sc = "", ZI = "", jI = void 0, KI = "", Vx }); } ); -}, "pushFun"), TWt = /* @__PURE__ */ x(function(t, e, r) { +}, "pushFun"), kWt = /* @__PURE__ */ x(function(t, e, r) { t.split(",").forEach(function(n) { - SWt(n, e, r); - }), Epe(t, "clickable"); -}, "setClickEvent"), CWt = /* @__PURE__ */ x(function(t) { - rP.forEach(function(e) { + OWt(n, e, r); + }), Tpe(t, "clickable"); +}, "setClickEvent"), SWt = /* @__PURE__ */ x(function(t) { + JI.forEach(function(e) { e(t); }); -}, "bindFunctions"), EWt = { +}, "bindFunctions"), TWt = { getConfig: /* @__PURE__ */ x(() => be().gantt, "getConfig"), - clear: WQt, - setDateFormat: JQt, - getDateFormat: aWt, - enableInclusiveEndDates: eWt, - endDatesAreInclusive: tWt, - enableTopAxis: rWt, - topAxisEnabled: nWt, - setAxisFormat: GQt, - getAxisFormat: HQt, - setTickInterval: XQt, - getTickInterval: ZQt, - setTodayMarker: jQt, - getTodayMarker: KQt, + clear: YQt, + setDateFormat: jQt, + getDateFormat: iWt, + enableInclusiveEndDates: KQt, + endDatesAreInclusive: JQt, + enableTopAxis: eWt, + topAxisEnabled: tWt, + setAxisFormat: QQt, + getAxisFormat: WQt, + setTickInterval: GQt, + getTickInterval: HQt, + setTodayMarker: XQt, + getTodayMarker: ZQt, setAccTitle: Zi, getAccTitle: vs, setDiagramTitle: fa, getDiagramTitle: xs, - setDisplayMode: iWt, - getDisplayMode: sWt, + setDisplayMode: rWt, + getDisplayMode: nWt, setAccDescription: ys, getAccDescription: bs, - addSection: fWt, - getSections: dWt, - getTasks: pWt, - addTask: wWt, + addSection: uWt, + getSections: hWt, + getTasks: fWt, + addTask: bWt, findTaskById: ip, - addTaskOrg: OWt, - setIncludes: oWt, - getIncludes: lWt, - setExcludes: cWt, - getExcludes: uWt, - setClickEvent: TWt, - setLink: kWt, - getLinks: hWt, - bindFunctions: CWt, - parseDuration: Spe, - isInvalidDate: Ope, - setWeekday: gWt, - getWeekday: mWt, - setWeekend: vWt -}; -function sP(t, e, r) { + addTaskOrg: xWt, + setIncludes: sWt, + getIncludes: aWt, + setExcludes: oWt, + getExcludes: lWt, + setClickEvent: kWt, + setLink: wWt, + getLinks: cWt, + bindFunctions: SWt, + parseDuration: Ope, + isInvalidDate: xpe, + setWeekday: dWt, + getWeekday: pWt, + setWeekend: gWt +}; +function rP(t, e, r) { let n = !0; for (; n; ) n = !1, r.forEach(function(i) { @@ -83802,18 +83746,18 @@ function sP(t, e, r) { t[0].match(a) && (e[i] = !0, t.shift(1), n = !0); }); } -x(sP, "getTaskTags"); -var _Wt = /* @__PURE__ */ x(function() { +x(rP, "getTaskTags"); +var CWt = /* @__PURE__ */ x(function() { X.debug("Something is calling, setConf, remove the call"); -}, "setConf"), sH = { +}, "setConf"), rH = { monday: f2, - tuesday: Mse, - wednesday: Dse, + tuesday: Lse, + wednesday: Rse, thursday: l0, - friday: Nse, - saturday: Ise, + friday: Mse, + saturday: Dse, sunday: hx -}, AWt = /* @__PURE__ */ x((t, e) => { +}, EWt = /* @__PURE__ */ x((t, e) => { let r = [...t].map(() => -1 / 0), n = [...t].sort((s, a) => s.startTime - a.startTime || s.order - a.order), i = 0; for (const s of n) for (let a = 0; a < r.length; a++) @@ -83822,7 +83766,7 @@ var _Wt = /* @__PURE__ */ x(function() { break; } return i; -}, "getMaxIntersections"), uu, LWt = /* @__PURE__ */ x(function(t, e, r, n) { +}, "getMaxIntersections"), uu, _Wt = /* @__PURE__ */ x(function(t, e, r, n) { const i = be().gantt, s = be().securityLevel; let a; s === "sandbox" && (a = et("#i" + e)); @@ -83841,7 +83785,7 @@ var _Wt = /* @__PURE__ */ x(function() { L[R.section] === void 0 ? L[R.section] = [R] : L[R.section].push(R); let E = 0; for (const R of Object.keys(L)) { - const _ = AWt(L[R], E) + 1; + const _ = EWt(L[R], E) + 1; E += _, p += _ * (i.barHeight + i.barGap), d[R] = _; } } else { @@ -83850,11 +83794,11 @@ var _Wt = /* @__PURE__ */ x(function() { d[L] = h.filter((E) => E.type === L).length; } u.setAttribute("viewBox", "0 0 " + uu + " " + p); - const g = o.select(`[id="${e}"]`), m = $Ot().domain([ - kyt(h, function(L) { + const g = o.select(`[id="${e}"]`), m = IOt().domain([ + wyt(h, function(L) { return L.startTime; }), - Oyt(h, function(L) { + xyt(h, function(L) { return L.endTime; }) ]).rangeRound([0, uu - i.leftPadding - i.rightPadding]); @@ -83865,7 +83809,7 @@ var _Wt = /* @__PURE__ */ x(function() { } x(v, "taskCompare"), h.sort(v), y(h, uu, p), ms(g, p, uu, i.useMaxWidth), g.append("text").text(n.db.getDiagramTitle()).attr("x", uu / 2).attr("y", i.titleTopMargin).attr("class", "titleText"); function y(L, E, R) { - const _ = i.barHeight, A = _ + i.barGap, $ = i.topPadding, k = i.leftPadding, N = jg().domain([0, f.length]).range(["#00B9FA", "#F95002"]).interpolate(Wbt); + const _ = i.barHeight, A = _ + i.barGap, $ = i.topPadding, k = i.leftPadding, N = jg().domain([0, f.length]).range(["#00B9FA", "#F95002"]).interpolate(Ybt); w( A, $, @@ -83982,7 +83926,7 @@ var _Wt = /* @__PURE__ */ x(function() { } x(w, "drawExcludeDays"); function O(L, E, R, _) { - let A = Myt(m).tickSize(-_ + E + i.gridLineStartPadding).tickFormat(M3(n.db.getAxisFormat() || i.axisFormat || "%Y-%m-%d")); + let A = Lyt(m).tickSize(-_ + E + i.gridLineStartPadding).tickFormat(R3(n.db.getAxisFormat() || i.axisFormat || "%Y-%m-%d")); const k = /^([1-9]\d*)(millisecond|second|minute|hour|day|week|month)$/.exec( n.db.getTickInterval() || i.tickInterval ); @@ -84005,7 +83949,7 @@ var _Wt = /* @__PURE__ */ x(function() { A.ticks(o0.every(N)); break; case "week": - A.ticks(sH[I].every(N)); + A.ticks(rH[I].every(N)); break; case "month": A.ticks(d2.every(N)); @@ -84013,7 +83957,7 @@ var _Wt = /* @__PURE__ */ x(function() { } } if (g.append("g").attr("class", "grid").attr("transform", "translate(" + L + ", " + (_ - 50) + ")").call(A).selectAll("text").style("text-anchor", "middle").attr("fill", "#000").attr("stroke", "none").attr("font-size", 10).attr("dy", "1em"), n.db.topAxisEnabled() || i.topAxis) { - let N = Ryt(m).tickSize(-_ + E + i.gridLineStartPadding).tickFormat(M3(n.db.getAxisFormat() || i.axisFormat || "%Y-%m-%d")); + let N = Ayt(m).tickSize(-_ + E + i.gridLineStartPadding).tickFormat(R3(n.db.getAxisFormat() || i.axisFormat || "%Y-%m-%d")); if (k !== null) { const M = k[1], I = k[2], D = n.db.getWeekday() || i.weekday; switch (I) { @@ -84033,7 +83977,7 @@ var _Wt = /* @__PURE__ */ x(function() { N.ticks(o0.every(M)); break; case "week": - N.ticks(sH[D].every(M)); + N.ticks(rH[D].every(M)); break; case "month": N.ticks(d2.every(M)); @@ -84084,10 +84028,10 @@ var _Wt = /* @__PURE__ */ x(function() { return R; } x(T, "checkUnique"); -}, "draw"), RWt = { - setConf: _Wt, - draw: LWt -}, MWt = /* @__PURE__ */ x((t) => ` +}, "draw"), AWt = { + setConf: CWt, + draw: _Wt +}, LWt = /* @__PURE__ */ x((t) => ` .mermaid-main-font { font-family: var(--mermaid-font-family, "trebuchet ms", verdana, arial, sans-serif); } @@ -84338,68 +84282,68 @@ var _Wt = /* @__PURE__ */ x(function() { fill: ${t.titleColor || t.textColor}; font-family: var(--mermaid-font-family, "trebuchet ms", verdana, arial, sans-serif); } -`, "getStyles"), DWt = MWt, NWt = { - parser: QQt, - db: EWt, - renderer: RWt, - styles: DWt +`, "getStyles"), RWt = LWt, MWt = { + parser: qQt, + db: TWt, + renderer: AWt, + styles: RWt }; -const IWt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +const DWt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - diagram: NWt + diagram: MWt }, Symbol.toStringTag, { value: "Module" })); -var PWt = { +var NWt = { parse: /* @__PURE__ */ x(async (t) => { const e = await mm("info", t); X.debug(e); }, "parse") -}, $Wt = { version: K8 }, BWt = /* @__PURE__ */ x(() => $Wt.version, "getVersion"), FWt = { - getVersion: BWt -}, zWt = /* @__PURE__ */ x((t, e, r) => { +}, IWt = { version: Z8 }, PWt = /* @__PURE__ */ x(() => IWt.version, "getVersion"), $Wt = { + getVersion: PWt +}, BWt = /* @__PURE__ */ x((t, e, r) => { X.debug(`rendering info diagram ` + t); const n = Z0(e); ms(n, 100, 400, !0), n.append("g").append("text").attr("x", 100).attr("y", 40).attr("class", "version").attr("font-size", 32).style("text-anchor", "middle").text(`v${r}`); -}, "draw"), VWt = { draw: zWt }, UWt = { - parser: PWt, - db: FWt, - renderer: VWt +}, "draw"), FWt = { draw: BWt }, zWt = { + parser: NWt, + db: $Wt, + renderer: FWt }; -const qWt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +const VWt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - diagram: UWt + diagram: zWt }, Symbol.toStringTag, { value: "Module" })); -var Ape = jr.pie, aP = { +var Epe = jr.pie, nP = { sections: /* @__PURE__ */ new Map(), showData: !1, - config: Ape -}, Hk = aP.sections, oP = aP.showData, YWt = structuredClone(Ape), QWt = /* @__PURE__ */ x(() => structuredClone(YWt), "getConfig"), WWt = /* @__PURE__ */ x(() => { - Hk = /* @__PURE__ */ new Map(), oP = aP.showData, Xi(); -}, "clear"), GWt = /* @__PURE__ */ x(({ label: t, value: e }) => { - Hk.has(t) || (Hk.set(t, e), X.debug(`added new section: ${t}, with value: ${e}`)); -}, "addSection"), HWt = /* @__PURE__ */ x(() => Hk, "getSections"), XWt = /* @__PURE__ */ x((t) => { - oP = t; -}, "setShowData"), ZWt = /* @__PURE__ */ x(() => oP, "getShowData"), Lpe = { - getConfig: QWt, - clear: WWt, + config: Epe +}, Gk = nP.sections, iP = nP.showData, UWt = structuredClone(Epe), qWt = /* @__PURE__ */ x(() => structuredClone(UWt), "getConfig"), YWt = /* @__PURE__ */ x(() => { + Gk = /* @__PURE__ */ new Map(), iP = nP.showData, Xi(); +}, "clear"), QWt = /* @__PURE__ */ x(({ label: t, value: e }) => { + Gk.has(t) || (Gk.set(t, e), X.debug(`added new section: ${t}, with value: ${e}`)); +}, "addSection"), WWt = /* @__PURE__ */ x(() => Gk, "getSections"), GWt = /* @__PURE__ */ x((t) => { + iP = t; +}, "setShowData"), HWt = /* @__PURE__ */ x(() => iP, "getShowData"), _pe = { + getConfig: qWt, + clear: YWt, setDiagramTitle: fa, getDiagramTitle: xs, setAccTitle: Zi, getAccTitle: vs, setAccDescription: ys, getAccDescription: bs, - addSection: GWt, - getSections: HWt, - setShowData: XWt, - getShowData: ZWt -}, jWt = /* @__PURE__ */ x((t, e) => { + addSection: QWt, + getSections: WWt, + setShowData: GWt, + getShowData: HWt +}, XWt = /* @__PURE__ */ x((t, e) => { Mx(t, e), e.setShowData(t.showData), t.sections.map(e.addSection); -}, "populateDb"), KWt = { +}, "populateDb"), ZWt = { parse: /* @__PURE__ */ x(async (t) => { const e = await mm("pie", t); - X.debug(e), jWt(e, Lpe); + X.debug(e), XWt(e, _pe); }, "parse") -}, JWt = /* @__PURE__ */ x((t) => ` +}, jWt = /* @__PURE__ */ x((t) => ` .pieCircle{ stroke: ${t.pieStrokeColor}; stroke-width : ${t.pieStrokeWidth}; @@ -84427,15 +84371,15 @@ var Ape = jr.pie, aP = { font-family: ${t.fontFamily}; font-size: ${t.pieLegendTextSize}; } -`, "getStyles"), eGt = JWt, tGt = /* @__PURE__ */ x((t) => { +`, "getStyles"), KWt = jWt, JWt = /* @__PURE__ */ x((t) => { const e = [...t.entries()].map((n) => ({ label: n[0], value: n[1] })).sort((n, i) => i.value - n.value); - return KOt().value( + return ZOt().value( (n) => n.value )(e); -}, "createPieArcs"), rGt = /* @__PURE__ */ x((t, e, r, n) => { +}, "createPieArcs"), eGt = /* @__PURE__ */ x((t, e, r, n) => { X.debug(`rendering pie chart ` + t); const i = n.db, s = be(), a = ch(i.getConfig(), s.pie), o = 40, l = 18, u = 4, h = 450, f = h, d = Z0(e), p = d.append("g"); @@ -84445,7 +84389,7 @@ var Ape = jr.pie, aP = { m != null || (m = 2); const v = a.textPosition, y = Math.min(f, h) / 2 - o, b = e1().innerRadius(0).outerRadius(y), w = e1().innerRadius(y * v).outerRadius(y * v); p.append("circle").attr("cx", 0).attr("cy", 0).attr("r", y + m / 2).attr("class", "pieOuterCircle"); - const O = i.getSections(), S = tGt(O), C = [ + const O = i.getSections(), S = JWt(O), C = [ g.pie1, g.pie2, g.pie3, @@ -84458,7 +84402,7 @@ var Ape = jr.pie, aP = { g.pie10, g.pie11, g.pie12 - ], T = DT(C); + ], T = RT(C); p.selectAll("mySlices").data(S).enter().append("path").attr("d", b).attr("fill", (A) => T(A.data.label)).attr("class", "pieCircle"); let L = 0; O.forEach((A) => { @@ -84479,17 +84423,17 @@ var Ape = jr.pie, aP = { }) ), _ = f + o + l + u + R; d.attr("viewBox", `0 0 ${_} ${h}`), ms(d, h, _, a.useMaxWidth); -}, "draw"), nGt = { draw: rGt }, iGt = { - parser: KWt, - db: Lpe, - renderer: nGt, - styles: eGt +}, "draw"), tGt = { draw: eGt }, rGt = { + parser: ZWt, + db: _pe, + renderer: tGt, + styles: KWt }; -const sGt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +const nGt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - diagram: iGt + diagram: rGt }, Symbol.toStringTag, { value: "Module" })); -var B9 = function() { +var I9 = function() { var t = /* @__PURE__ */ x(function(ge, xe, ke, Ce) { for (ke = ke || {}, Ce = ge.length; Ce--; ke[ge[Ce]] = xe) ; @@ -84957,8 +84901,8 @@ Expecting ` + Br.join(", ") + ", got '" + (this.terminals_[Ze] || Ze) + "'" : Xr } return x(de, "Parser"), de.prototype = ue, ue.Parser = de, new de(); }(); -B9.parser = B9; -var aGt = B9, Ks = CD(), Ab, oGt = (Ab = class { +I9.parser = I9; +var iGt = I9, Ks = kD(), Ab, sGt = (Ab = class { constructor() { this.classes = /* @__PURE__ */ new Map(), this.config = this.getDefaultConfig(), this.themeConfig = this.getDefaultThemeConfig(), this.data = this.getDefaultData(); } @@ -85295,91 +85239,91 @@ var aGt = B9, Ks = CD(), Ab, oGt = (Ab = class { } }, (() => { x(Ab, "QuadrantBuilder"); -})(), Ab), Lb, MO = (Lb = class extends Error { +})(), Ab), Lb, RO = (Lb = class extends Error { constructor(e, r, n) { super(`value for ${e} ${r} is invalid, please use a valid ${n}`), this.name = "InvalidStyleError"; } }, (() => { x(Lb, "InvalidStyleError"); })(), Lb); -function F9(t) { +function P9(t) { return !/^#?([\dA-Fa-f]{6}|[\dA-Fa-f]{3})$/.test(t); } -x(F9, "validateHexCode"); -function Rpe(t) { +x(P9, "validateHexCode"); +function Ape(t) { return !/^\d+$/.test(t); } -x(Rpe, "validateNumber"); -function Mpe(t) { +x(Ape, "validateNumber"); +function Lpe(t) { return !/^\d+px$/.test(t); } -x(Mpe, "validateSizeInPixels"); -var lGt = be(); +x(Lpe, "validateSizeInPixels"); +var aGt = be(); function nu(t) { - return ni(t.trim(), lGt); + return ni(t.trim(), aGt); } x(nu, "textSanitizer"); -var cs = new oGt(); -function Dpe(t) { +var cs = new sGt(); +function Rpe(t) { cs.setData({ quadrant1Text: nu(t.text) }); } -x(Dpe, "setQuadrant1Text"); -function Npe(t) { +x(Rpe, "setQuadrant1Text"); +function Mpe(t) { cs.setData({ quadrant2Text: nu(t.text) }); } -x(Npe, "setQuadrant2Text"); -function Ipe(t) { +x(Mpe, "setQuadrant2Text"); +function Dpe(t) { cs.setData({ quadrant3Text: nu(t.text) }); } -x(Ipe, "setQuadrant3Text"); -function Ppe(t) { +x(Dpe, "setQuadrant3Text"); +function Npe(t) { cs.setData({ quadrant4Text: nu(t.text) }); } -x(Ppe, "setQuadrant4Text"); -function $pe(t) { +x(Npe, "setQuadrant4Text"); +function Ipe(t) { cs.setData({ xAxisLeftText: nu(t.text) }); } -x($pe, "setXAxisLeftText"); -function Bpe(t) { +x(Ipe, "setXAxisLeftText"); +function Ppe(t) { cs.setData({ xAxisRightText: nu(t.text) }); } -x(Bpe, "setXAxisRightText"); -function Fpe(t) { +x(Ppe, "setXAxisRightText"); +function $pe(t) { cs.setData({ yAxisTopText: nu(t.text) }); } -x(Fpe, "setYAxisTopText"); -function zpe(t) { +x($pe, "setYAxisTopText"); +function Bpe(t) { cs.setData({ yAxisBottomText: nu(t.text) }); } -x(zpe, "setYAxisBottomText"); -function MC(t) { +x(Bpe, "setYAxisBottomText"); +function LC(t) { const e = {}; for (const r of t) { const [n, i] = r.trim().split(/\s*:\s*/); if (n === "radius") { - if (Rpe(i)) - throw new MO(n, i, "number"); + if (Ape(i)) + throw new RO(n, i, "number"); e.radius = parseInt(i); } else if (n === "color") { - if (F9(i)) - throw new MO(n, i, "hex code"); + if (P9(i)) + throw new RO(n, i, "hex code"); e.color = i; } else if (n === "stroke-color") { - if (F9(i)) - throw new MO(n, i, "hex code"); + if (P9(i)) + throw new RO(n, i, "hex code"); e.strokeColor = i; } else if (n === "stroke-width") { - if (Mpe(i)) - throw new MO(n, i, "number of pixels (eg. 10px)"); + if (Lpe(i)) + throw new RO(n, i, "number of pixels (eg. 10px)"); e.strokeWidth = i; } else throw new Error(`style named ${n} is not supported.`); } return e; } -x(MC, "parseStyles"); -function Vpe(t, e, r, n, i) { - const s = MC(i); +x(LC, "parseStyles"); +function Fpe(t, e, r, n, i) { + const s = LC(i); cs.addPoints([ { x: r, @@ -85390,20 +85334,20 @@ function Vpe(t, e, r, n, i) { } ]); } -x(Vpe, "addPoint"); -function Upe(t, e) { - cs.addClass(t, MC(e)); +x(Fpe, "addPoint"); +function zpe(t, e) { + cs.addClass(t, LC(e)); } -x(Upe, "addClass"); -function qpe(t) { +x(zpe, "addClass"); +function Vpe(t) { cs.setConfig({ chartWidth: t }); } -x(qpe, "setWidth"); -function Ype(t) { +x(Vpe, "setWidth"); +function Upe(t) { cs.setConfig({ chartHeight: t }); } -x(Ype, "setHeight"); -function Qpe() { +x(Upe, "setHeight"); +function qpe() { const t = be(), { themeVariables: e, quadrantChart: r } = t; return r && cs.setConfig(r), cs.setThemeConfig({ quadrant1Fill: e.quadrant1Fill, @@ -85423,32 +85367,32 @@ function Qpe() { quadrantTitleFill: e.quadrantTitleFill }), cs.setData({ titleText: xs() }), cs.build(); } -x(Qpe, "getQuadrantData"); -var cGt = /* @__PURE__ */ x(function() { +x(qpe, "getQuadrantData"); +var oGt = /* @__PURE__ */ x(function() { cs.clear(), Xi(); -}, "clear"), uGt = { - setWidth: qpe, - setHeight: Ype, - setQuadrant1Text: Dpe, - setQuadrant2Text: Npe, - setQuadrant3Text: Ipe, - setQuadrant4Text: Ppe, - setXAxisLeftText: $pe, - setXAxisRightText: Bpe, - setYAxisTopText: Fpe, - setYAxisBottomText: zpe, - parseStyles: MC, - addPoint: Vpe, - addClass: Upe, - getQuadrantData: Qpe, - clear: cGt, +}, "clear"), lGt = { + setWidth: Vpe, + setHeight: Upe, + setQuadrant1Text: Rpe, + setQuadrant2Text: Mpe, + setQuadrant3Text: Dpe, + setQuadrant4Text: Npe, + setXAxisLeftText: Ipe, + setXAxisRightText: Ppe, + setYAxisTopText: $pe, + setYAxisBottomText: Bpe, + parseStyles: LC, + addPoint: Fpe, + addClass: zpe, + getQuadrantData: qpe, + clear: oGt, setAccTitle: Zi, getAccTitle: vs, setDiagramTitle: fa, getDiagramTitle: xs, getAccDescription: bs, setAccDescription: ys -}, hGt = /* @__PURE__ */ x((t, e, r, n) => { +}, cGt = /* @__PURE__ */ x((t, e, r, n) => { var L, E, R, _, A, $; function i(k) { return k === "top" ? "hanging" : "middle"; @@ -85482,19 +85426,19 @@ var cGt = /* @__PURE__ */ x(function() { "dominant-baseline", (k) => i(k.text.horizontalPos) ).attr("text-anchor", (k) => s(k.text.verticalPos)).attr("transform", (k) => a(k.text)); -}, "draw"), fGt = { - draw: hGt -}, dGt = { - parser: aGt, - db: uGt, - renderer: fGt, +}, "draw"), uGt = { + draw: cGt +}, hGt = { + parser: iGt, + db: lGt, + renderer: uGt, styles: /* @__PURE__ */ x(() => "", "styles") }; -const pGt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +const fGt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - diagram: dGt + diagram: hGt }, Symbol.toStringTag, { value: "Module" })); -var z9 = function() { +var $9 = function() { var t = /* @__PURE__ */ x(function(N, M, I, D) { for (I = I || {}, D = N.length; D--; I[N[D]] = M) ; @@ -85937,21 +85881,21 @@ Expecting ` + he.join(", ") + ", got '" + (this.terminals_[_e] || _e) + "'" : H } return x(k, "Parser"), k.prototype = A, A.Parser = k, new k(); }(); -z9.parser = z9; -var gGt = z9; -function V9(t) { +$9.parser = $9; +var dGt = $9; +function B9(t) { return t.type === "bar"; } -x(V9, "isBarPlot"); -function lP(t) { +x(B9, "isBarPlot"); +function sP(t) { return t.type === "band"; } -x(lP, "isBandAxisData"); +x(sP, "isBandAxisData"); function dg(t) { return t.type === "linear"; } x(dg, "isLinearAxisData"); -var Rb, Wpe = (Rb = class { +var Rb, Ype = (Rb = class { constructor(e) { this.parentGroup = e; } @@ -85966,14 +85910,14 @@ var Rb, Wpe = (Rb = class { height: 0 }, i = this.parentGroup.append("g").attr("visibility", "hidden").attr("font-size", r); for (const s of e) { - const a = Kae(i, 1, s), o = a ? a.width : s.length * r, l = a ? a.height : r; + const a = Zae(i, 1, s), o = a ? a.width : s.length * r, l = a ? a.height : r; n.width = Math.max(n.width, o), n.height = Math.max(n.height, l); } return i.remove(), n; } }, (() => { x(Rb, "TextDimensionCalculatorWithFont"); -})(), Rb), aH = 0.7, oH = 0.2, Mb, Gpe = (Mb = class { +})(), Rb), nH = 0.7, iH = 0.2, Mb, Qpe = (Mb = class { constructor(e, r, n, i) { this.axisConfig = e, this.title = r, this.textDimensionCalculator = n, this.axisThemeConfig = i, this.boundingRect = { x: 0, y: 0, width: 0, height: 0 }, this.axisPosition = "left", this.showTitle = !1, this.showLabel = !1, this.showTick = !1, this.showAxisLine = !1, this.outerPadding = 0, this.titleTextHeight = 0, this.labelTextHeight = 0, this.range = [0, 10], this.boundingRect = { x: 0, y: 0, width: 0, height: 0 }, this.axisPosition = "left"; } @@ -86000,12 +85944,12 @@ var Rb, Wpe = (Rb = class { ); } recalculateOuterPaddingToDrawBar() { - aH * this.getTickDistance() > this.outerPadding * 2 && (this.outerPadding = Math.floor(aH * this.getTickDistance() / 2)), this.recalculateScale(); + nH * this.getTickDistance() > this.outerPadding * 2 && (this.outerPadding = Math.floor(nH * this.getTickDistance() / 2)), this.recalculateScale(); } calculateSpaceIfDrawnHorizontally(e) { let r = e.height; if (this.axisConfig.showAxisLine && r > this.axisConfig.axisLineWidth && (r -= this.axisConfig.axisLineWidth, this.showAxisLine = !0), this.axisConfig.showLabel) { - const n = this.getLabelDimension(), i = oH * e.width; + const n = this.getLabelDimension(), i = iH * e.width; this.outerPadding = Math.min(n.width / 2, i); const s = n.height + this.axisConfig.labelPadding * 2; this.labelTextHeight = n.height, s <= r && (r -= s, this.showLabel = !0); @@ -86022,7 +85966,7 @@ var Rb, Wpe = (Rb = class { calculateSpaceIfDrawnVertical(e) { let r = e.width; if (this.axisConfig.showAxisLine && r > this.axisConfig.axisLineWidth && (r -= this.axisConfig.axisLineWidth, this.showAxisLine = !0), this.axisConfig.showLabel) { - const n = this.getLabelDimension(), i = oH * e.height; + const n = this.getLabelDimension(), i = iH * e.height; this.outerPadding = Math.min(n.height / 2, i); const s = n.width + this.axisConfig.labelPadding * 2; s <= r && (r -= s, this.showLabel = !0); @@ -86228,15 +86172,15 @@ var Rb, Wpe = (Rb = class { } }, (() => { x(Mb, "BaseAxis"); -})(), Mb), Db, mGt = (Db = class extends Gpe { +})(), Mb), Db, pGt = (Db = class extends Qpe { constructor(e, r, n, i, s) { - super(e, i, s, r), this.categories = n, this.scale = V8().domain(this.categories).range(this.getRange()); + super(e, i, s, r), this.categories = n, this.scale = F8().domain(this.categories).range(this.getRange()); } setRange(e) { super.setRange(e); } recalculateScale() { - this.scale = V8().domain(this.categories).range(this.getRange()).paddingInner(1).paddingOuter(0).align(0.5), X.trace("BandAxis axis final categories, range: ", this.categories, this.getRange()); + this.scale = F8().domain(this.categories).range(this.getRange()).paddingInner(1).paddingOuter(0).align(0.5), X.trace("BandAxis axis final categories, range: ", this.categories, this.getRange()); } getTickValues() { return this.categories; @@ -86247,7 +86191,7 @@ var Rb, Wpe = (Rb = class { } }, (() => { x(Db, "BandAxis"); -})(), Db), Nb, vGt = (Nb = class extends Gpe { +})(), Db), Nb, gGt = (Nb = class extends Qpe { constructor(e, r, n, i, s) { super(e, i, s, r), this.domain = n, this.scale = jg().domain(this.domain).range(this.getRange()); } @@ -86264,15 +86208,15 @@ var Rb, Wpe = (Rb = class { }, (() => { x(Nb, "LinearAxis"); })(), Nb); -function U9(t, e, r, n) { - const i = new Wpe(n); - return lP(t) ? new mGt( +function F9(t, e, r, n) { + const i = new Ype(n); + return sP(t) ? new pGt( e, r, t.categories, t.title, i - ) : new vGt( + ) : new gGt( e, r, [t.min, t.max], @@ -86280,8 +86224,8 @@ function U9(t, e, r, n) { i ); } -x(U9, "getAxis"); -var Ib, yGt = (Ib = class { +x(F9, "getAxis"); +var Ib, mGt = (Ib = class { constructor(e, r, n, i) { this.textDimensionCalculator = e, this.chartConfig = r, this.chartData = n, this.chartThemeConfig = i, this.boundingRect = { x: 0, @@ -86325,12 +86269,12 @@ var Ib, yGt = (Ib = class { }, (() => { x(Ib, "ChartTitle"); })(), Ib); -function Hpe(t, e, r, n) { - const i = new Wpe(n); - return new yGt(i, t, e, r); +function Wpe(t, e, r, n) { + const i = new Ype(n); + return new mGt(i, t, e, r); } -x(Hpe, "getChartTitleComponent"); -var Pb, bGt = (Pb = class { +x(Wpe, "getChartTitleComponent"); +var Pb, vGt = (Pb = class { constructor(e, r, n, i, s) { this.plotData = e, this.xAxis = r, this.yAxis = n, this.orientation = i, this.plotIndex = s; } @@ -86356,7 +86300,7 @@ var Pb, bGt = (Pb = class { } }, (() => { x(Pb, "LinePlot"); -})(), Pb), $b, xGt = ($b = class { +})(), Pb), $b, yGt = ($b = class { constructor(e, r, n, i, s, a) { this.barData = e, this.boundingRect = r, this.xAxis = n, this.yAxis = i, this.orientation = s, this.plotIndex = a; } @@ -86397,7 +86341,7 @@ var Pb, bGt = (Pb = class { } }, (() => { x($b, "BarPlot"); -})(), $b), Bb, wGt = (Bb = class { +})(), $b), Bb, bGt = (Bb = class { constructor(e, r, n) { this.chartConfig = e, this.chartData = r, this.chartThemeConfig = n, this.boundingRect = { x: 0, @@ -86426,7 +86370,7 @@ var Pb, bGt = (Pb = class { switch (n.type) { case "line": { - const i = new bGt( + const i = new vGt( n, this.xAxis, this.yAxis, @@ -86438,7 +86382,7 @@ var Pb, bGt = (Pb = class { break; case "bar": { - const i = new xGt( + const i = new yGt( n, this.boundingRect, this.xAxis, @@ -86455,16 +86399,16 @@ var Pb, bGt = (Pb = class { }, (() => { x(Bb, "BasePlot"); })(), Bb); -function Xpe(t, e, r) { - return new wGt(t, e, r); +function Gpe(t, e, r) { + return new bGt(t, e, r); } -x(Xpe, "getPlotComponent"); -var Fb, OGt = (Fb = class { +x(Gpe, "getPlotComponent"); +var Fb, xGt = (Fb = class { constructor(e, r, n, i) { this.chartConfig = e, this.chartData = r, this.componentStore = { - title: Hpe(e, r, n, i), - plot: Xpe(e, r, n), - xAxis: U9( + title: Wpe(e, r, n, i), + plot: Gpe(e, r, n), + xAxis: F9( r.xAxis, e.xAxis, { @@ -86475,7 +86419,7 @@ var Fb, OGt = (Fb = class { }, i ), - yAxis: U9( + yAxis: F9( r.yAxis, e.yAxis, { @@ -86507,7 +86451,7 @@ var Fb, OGt = (Fb = class { }), n = o.width, e -= o.width, e > 0 && (s += e, e = 0), r > 0 && (a += r, r = 0), this.componentStore.plot.calculateSpace({ width: s, height: a - }), this.componentStore.plot.setBoundingBoxXY({ x: n, y: i }), this.componentStore.xAxis.setRange([n, n + s]), this.componentStore.xAxis.setBoundingBoxXY({ x: n, y: i + a }), this.componentStore.yAxis.setRange([i, i + a]), this.componentStore.yAxis.setBoundingBoxXY({ x: 0, y: i }), this.chartData.plots.some((l) => V9(l)) && this.componentStore.xAxis.recalculateOuterPaddingToDrawBar(); + }), this.componentStore.plot.setBoundingBoxXY({ x: n, y: i }), this.componentStore.xAxis.setRange([n, n + s]), this.componentStore.xAxis.setBoundingBoxXY({ x: n, y: i + a }), this.componentStore.yAxis.setRange([i, i + a]), this.componentStore.yAxis.setBoundingBoxXY({ x: 0, y: i }), this.chartData.plots.some((l) => B9(l)) && this.componentStore.xAxis.recalculateOuterPaddingToDrawBar(); } calculateHorizontalSpace() { let e = this.chartConfig.width, r = this.chartConfig.height, n = 0, i = 0, s = 0, a = Math.floor(e * this.chartConfig.plotReservedSpacePercent / 100), o = Math.floor( @@ -86528,7 +86472,7 @@ var Fb, OGt = (Fb = class { }), r -= l.height, s = n + l.height, e > 0 && (a += e, e = 0), r > 0 && (o += r, r = 0), this.componentStore.plot.calculateSpace({ width: a, height: o - }), this.componentStore.plot.setBoundingBoxXY({ x: i, y: s }), this.componentStore.yAxis.setRange([i, i + a]), this.componentStore.yAxis.setBoundingBoxXY({ x: i, y: n }), this.componentStore.xAxis.setRange([s, s + o]), this.componentStore.xAxis.setBoundingBoxXY({ x: 0, y: s }), this.chartData.plots.some((u) => V9(u)) && this.componentStore.xAxis.recalculateOuterPaddingToDrawBar(); + }), this.componentStore.plot.setBoundingBoxXY({ x: i, y: s }), this.componentStore.yAxis.setRange([i, i + a]), this.componentStore.yAxis.setBoundingBoxXY({ x: i, y: n }), this.componentStore.xAxis.setRange([s, s + o]), this.componentStore.xAxis.setBoundingBoxXY({ x: 0, y: s }), this.chartData.plots.some((u) => B9(u)) && this.componentStore.xAxis.recalculateOuterPaddingToDrawBar(); } calculateSpace() { this.chartConfig.chartOrientation === "horizontal" ? this.calculateHorizontalSpace() : this.calculateVerticalSpace(); @@ -86543,27 +86487,27 @@ var Fb, OGt = (Fb = class { } }, (() => { x(Fb, "Orchestrator"); -})(), Fb), zb, kGt = (zb = class { +})(), Fb), zb, wGt = (zb = class { static build(e, r, n, i) { - return new OGt(e, r, n, i).getDrawableElement(); + return new xGt(e, r, n, i).getDrawableElement(); } }, (() => { x(zb, "XYChartBuilder"); -})(), zb), P2 = 0, Zpe, $2 = hP(), B2 = uP(), Gr = fP(), q9 = B2.plotColorPalette.split(",").map((t) => t.trim()), DC = !1, cP = !1; -function uP() { - const t = CD(), e = pi(); +})(), zb), P2 = 0, Hpe, $2 = lP(), B2 = oP(), Gr = cP(), z9 = B2.plotColorPalette.split(",").map((t) => t.trim()), RC = !1, aP = !1; +function oP() { + const t = kD(), e = pi(); return ch(t.xyChart, e.themeVariables.xyChart); } -x(uP, "getChartDefaultThemeConfig"); -function hP() { +x(oP, "getChartDefaultThemeConfig"); +function lP() { const t = pi(); return ch( jr.xyChart, t.xyChart ); } -x(hP, "getChartDefaultConfig"); -function fP() { +x(lP, "getChartDefaultConfig"); +function cP() { return { yAxis: { type: "linear", @@ -86580,45 +86524,45 @@ function fP() { plots: [] }; } -x(fP, "getChartDefaultData"); -function NC(t) { +x(cP, "getChartDefaultData"); +function MC(t) { const e = pi(); return ni(t.trim(), e); } -x(NC, "textSanitizer"); -function jpe(t) { - Zpe = t; +x(MC, "textSanitizer"); +function Xpe(t) { + Hpe = t; } -x(jpe, "setTmpSVGG"); -function Kpe(t) { +x(Xpe, "setTmpSVGG"); +function Zpe(t) { t === "horizontal" ? $2.chartOrientation = "horizontal" : $2.chartOrientation = "vertical"; } -x(Kpe, "setOrientation"); -function Jpe(t) { - Gr.xAxis.title = NC(t.text); +x(Zpe, "setOrientation"); +function jpe(t) { + Gr.xAxis.title = MC(t.text); } -x(Jpe, "setXAxisTitle"); -function dP(t, e) { - Gr.xAxis = { type: "linear", title: Gr.xAxis.title, min: t, max: e }, DC = !0; +x(jpe, "setXAxisTitle"); +function uP(t, e) { + Gr.xAxis = { type: "linear", title: Gr.xAxis.title, min: t, max: e }, RC = !0; } -x(dP, "setXAxisRangeData"); -function ege(t) { +x(uP, "setXAxisRangeData"); +function Kpe(t) { Gr.xAxis = { type: "band", title: Gr.xAxis.title, - categories: t.map((e) => NC(e.text)) - }, DC = !0; + categories: t.map((e) => MC(e.text)) + }, RC = !0; } -x(ege, "setXAxisBand"); -function tge(t) { - Gr.yAxis.title = NC(t.text); +x(Kpe, "setXAxisBand"); +function Jpe(t) { + Gr.yAxis.title = MC(t.text); } -x(tge, "setYAxisTitle"); -function rge(t, e) { - Gr.yAxis = { type: "linear", title: Gr.yAxis.title, min: t, max: e }, cP = !0; +x(Jpe, "setYAxisTitle"); +function ege(t, e) { + Gr.yAxis = { type: "linear", title: Gr.yAxis.title, min: t, max: e }, aP = !0; } -x(rge, "setYAxisRangeData"); -function nge(t) { +x(ege, "setYAxisRangeData"); +function tge(t) { const e = Math.min(...t), r = Math.max(...t), n = dg(Gr.yAxis) ? Gr.yAxis.min : 1 / 0, i = dg(Gr.yAxis) ? Gr.yAxis.max : -1 / 0; Gr.yAxis = { type: "linear", @@ -86627,16 +86571,16 @@ function nge(t) { max: Math.max(i, r) }; } -x(nge, "setYAxisRangeFromPlotData"); -function pP(t) { +x(tge, "setYAxisRangeFromPlotData"); +function hP(t) { let e = []; if (t.length === 0) return e; - if (!DC) { + if (!RC) { const r = dg(Gr.xAxis) ? Gr.xAxis.min : 1 / 0, n = dg(Gr.xAxis) ? Gr.xAxis.max : -1 / 0; - dP(Math.min(r, 1), Math.max(n, t.length)); + uP(Math.min(r, 1), Math.max(n, t.length)); } - if (cP || nge(t), lP(Gr.xAxis) && (e = Gr.xAxis.categories.map((r, n) => [r, t[n]])), dg(Gr.xAxis)) { + if (aP || tge(t), sP(Gr.xAxis) && (e = Gr.xAxis.categories.map((r, n) => [r, t[n]])), dg(Gr.xAxis)) { const r = Gr.xAxis.min, n = Gr.xAxis.max, i = (n - r) / (t.length - 1), s = []; for (let a = r; a <= n; a += i) s.push(`${a}`); @@ -86644,67 +86588,67 @@ function pP(t) { } return e; } -x(pP, "transformDataWithoutCategory"); -function gP(t) { - return q9[t === 0 ? 0 : t % q9.length]; +x(hP, "transformDataWithoutCategory"); +function fP(t) { + return z9[t === 0 ? 0 : t % z9.length]; } -x(gP, "getPlotColorFromPalette"); -function ige(t, e) { - const r = pP(e); +x(fP, "getPlotColorFromPalette"); +function rge(t, e) { + const r = hP(e); Gr.plots.push({ type: "line", - strokeFill: gP(P2), + strokeFill: fP(P2), strokeWidth: 2, data: r }), P2++; } -x(ige, "setLineData"); -function sge(t, e) { - const r = pP(e); +x(rge, "setLineData"); +function nge(t, e) { + const r = hP(e); Gr.plots.push({ type: "bar", - fill: gP(P2), + fill: fP(P2), data: r }), P2++; } -x(sge, "setBarData"); -function age() { +x(nge, "setBarData"); +function ige() { if (Gr.plots.length === 0) throw Error("No Plot to render, please provide a plot with some data"); - return Gr.title = xs(), kGt.build($2, Gr, B2, Zpe); + return Gr.title = xs(), wGt.build($2, Gr, B2, Hpe); } -x(age, "getDrawableElem"); -function oge() { +x(ige, "getDrawableElem"); +function sge() { return B2; } -x(oge, "getChartThemeConfig"); -function lge() { +x(sge, "getChartThemeConfig"); +function age() { return $2; } -x(lge, "getChartConfig"); -var SGt = /* @__PURE__ */ x(function() { - Xi(), P2 = 0, $2 = hP(), Gr = fP(), B2 = uP(), q9 = B2.plotColorPalette.split(",").map((t) => t.trim()), DC = !1, cP = !1; -}, "clear"), TGt = { - getDrawableElem: age, - clear: SGt, +x(age, "getChartConfig"); +var OGt = /* @__PURE__ */ x(function() { + Xi(), P2 = 0, $2 = lP(), Gr = cP(), B2 = oP(), z9 = B2.plotColorPalette.split(",").map((t) => t.trim()), RC = !1, aP = !1; +}, "clear"), kGt = { + getDrawableElem: ige, + clear: OGt, setAccTitle: Zi, getAccTitle: vs, setDiagramTitle: fa, getDiagramTitle: xs, getAccDescription: bs, setAccDescription: ys, - setOrientation: Kpe, - setXAxisTitle: Jpe, - setXAxisRangeData: dP, - setXAxisBand: ege, - setYAxisTitle: tge, - setYAxisRangeData: rge, - setLineData: ige, - setBarData: sge, - setTmpSVGG: jpe, - getChartThemeConfig: oge, - getChartConfig: lge -}, CGt = /* @__PURE__ */ x((t, e, r, n) => { + setOrientation: Zpe, + setXAxisTitle: jpe, + setXAxisRangeData: uP, + setXAxisBand: Kpe, + setYAxisTitle: Jpe, + setYAxisRangeData: ege, + setLineData: rge, + setBarData: nge, + setTmpSVGG: Xpe, + getChartThemeConfig: sge, + getChartConfig: age +}, SGt = /* @__PURE__ */ x((t, e, r, n) => { const i = n.db, s = i.getChartThemeConfig(), a = i.getChartConfig(); function o(v) { return v === "top" ? "text-before-edge" : "middle"; @@ -86747,18 +86691,18 @@ var SGt = /* @__PURE__ */ x(function() { break; } } -}, "draw"), EGt = { - draw: CGt -}, _Gt = { - parser: gGt, - db: TGt, - renderer: EGt +}, "draw"), TGt = { + draw: SGt +}, CGt = { + parser: dGt, + db: kGt, + renderer: TGt }; -const AGt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +const EGt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - diagram: _Gt + diagram: CGt }, Symbol.toStringTag, { value: "Module" })); -var Y9 = function() { +var V9 = function() { var t = /* @__PURE__ */ x(function(ee, Q, ne, ie) { for (ne = ne || {}, ie = ee.length; ie--; ne[ee[ie]] = Q) ; @@ -87225,24 +87169,24 @@ Expecting ` + ke.join(", ") + ", got '" + (this.terminals_[oe] || oe) + "'" : Ce } return x(G, "Parser"), G.prototype = V, V.Parser = G, new G(); }(); -Y9.parser = Y9; -var LGt = Y9, mP = [], La = {}, dy = /* @__PURE__ */ new Map(), rf = {}, py = /* @__PURE__ */ new Map(), RGt = { +V9.parser = V9; +var _Gt = V9, dP = [], La = {}, dy = /* @__PURE__ */ new Map(), rf = {}, py = /* @__PURE__ */ new Map(), AGt = { REQUIREMENT: "Requirement", FUNCTIONAL_REQUIREMENT: "Functional Requirement", INTERFACE_REQUIREMENT: "Interface Requirement", PERFORMANCE_REQUIREMENT: "Performance Requirement", PHYSICAL_REQUIREMENT: "Physical Requirement", DESIGN_CONSTRAINT: "Design Constraint" -}, MGt = { +}, LGt = { LOW_RISK: "Low", MED_RISK: "Medium", HIGH_RISK: "High" -}, DGt = { +}, RGt = { VERIFY_ANALYSIS: "Analysis", VERIFY_DEMONSTRATION: "Demonstration", VERIFY_INSPECTION: "Inspection", VERIFY_TEST: "Test" -}, NGt = { +}, MGt = { CONTAINS: "contains", COPIES: "copies", DERIVES: "derives", @@ -87250,61 +87194,61 @@ var LGt = Y9, mP = [], La = {}, dy = /* @__PURE__ */ new Map(), rf = {}, py = /* VERIFIES: "verifies", REFINES: "refines", TRACES: "traces" -}, IGt = /* @__PURE__ */ x((t, e) => (dy.has(t) || dy.set(t, { +}, DGt = /* @__PURE__ */ x((t, e) => (dy.has(t) || dy.set(t, { name: t, type: e, id: La.id, text: La.text, risk: La.risk, verifyMethod: La.verifyMethod -}), La = {}, dy.get(t)), "addRequirement"), PGt = /* @__PURE__ */ x(() => dy, "getRequirements"), $Gt = /* @__PURE__ */ x((t) => { +}), La = {}, dy.get(t)), "addRequirement"), NGt = /* @__PURE__ */ x(() => dy, "getRequirements"), IGt = /* @__PURE__ */ x((t) => { La !== void 0 && (La.id = t); -}, "setNewReqId"), BGt = /* @__PURE__ */ x((t) => { +}, "setNewReqId"), PGt = /* @__PURE__ */ x((t) => { La !== void 0 && (La.text = t); -}, "setNewReqText"), FGt = /* @__PURE__ */ x((t) => { +}, "setNewReqText"), $Gt = /* @__PURE__ */ x((t) => { La !== void 0 && (La.risk = t); -}, "setNewReqRisk"), zGt = /* @__PURE__ */ x((t) => { +}, "setNewReqRisk"), BGt = /* @__PURE__ */ x((t) => { La !== void 0 && (La.verifyMethod = t); -}, "setNewReqVerifyMethod"), VGt = /* @__PURE__ */ x((t) => (py.has(t) || (py.set(t, { +}, "setNewReqVerifyMethod"), FGt = /* @__PURE__ */ x((t) => (py.has(t) || (py.set(t, { name: t, type: rf.type, docRef: rf.docRef -}), X.info("Added new requirement: ", t)), rf = {}, py.get(t)), "addElement"), UGt = /* @__PURE__ */ x(() => py, "getElements"), qGt = /* @__PURE__ */ x((t) => { +}), X.info("Added new requirement: ", t)), rf = {}, py.get(t)), "addElement"), zGt = /* @__PURE__ */ x(() => py, "getElements"), VGt = /* @__PURE__ */ x((t) => { rf !== void 0 && (rf.type = t); -}, "setNewElementType"), YGt = /* @__PURE__ */ x((t) => { +}, "setNewElementType"), UGt = /* @__PURE__ */ x((t) => { rf !== void 0 && (rf.docRef = t); -}, "setNewElementDocRef"), QGt = /* @__PURE__ */ x((t, e, r) => { - mP.push({ +}, "setNewElementDocRef"), qGt = /* @__PURE__ */ x((t, e, r) => { + dP.push({ type: t, src: e, dst: r }); -}, "addRelationship"), WGt = /* @__PURE__ */ x(() => mP, "getRelationships"), GGt = /* @__PURE__ */ x(() => { - mP = [], La = {}, dy = /* @__PURE__ */ new Map(), rf = {}, py = /* @__PURE__ */ new Map(), Xi(); -}, "clear"), HGt = { - RequirementType: RGt, - RiskLevel: MGt, - VerifyType: DGt, - Relationships: NGt, +}, "addRelationship"), YGt = /* @__PURE__ */ x(() => dP, "getRelationships"), QGt = /* @__PURE__ */ x(() => { + dP = [], La = {}, dy = /* @__PURE__ */ new Map(), rf = {}, py = /* @__PURE__ */ new Map(), Xi(); +}, "clear"), WGt = { + RequirementType: AGt, + RiskLevel: LGt, + VerifyType: RGt, + Relationships: MGt, getConfig: /* @__PURE__ */ x(() => be().req, "getConfig"), - addRequirement: IGt, - getRequirements: PGt, - setNewReqId: $Gt, - setNewReqText: BGt, - setNewReqRisk: FGt, - setNewReqVerifyMethod: zGt, + addRequirement: DGt, + getRequirements: NGt, + setNewReqId: IGt, + setNewReqText: PGt, + setNewReqRisk: $Gt, + setNewReqVerifyMethod: BGt, setAccTitle: Zi, getAccTitle: vs, setAccDescription: ys, getAccDescription: bs, - addElement: VGt, - getElements: UGt, - setNewElementType: qGt, - setNewElementDocRef: YGt, - addRelationship: QGt, - getRelationships: WGt, - clear: GGt -}, XGt = /* @__PURE__ */ x((t) => ` + addElement: FGt, + getElements: zGt, + setNewElementType: VGt, + setNewElementDocRef: UGt, + addRelationship: qGt, + getRelationships: YGt, + clear: QGt +}, GGt = /* @__PURE__ */ x((t) => ` marker { fill: ${t.relationColor}; @@ -87347,22 +87291,22 @@ var LGt = Y9, mP = [], La = {}, dy = /* @__PURE__ */ new Map(), rf = {}, py = /* fill: ${t.relationLabelColor}; } -`, "getStyles"), ZGt = XGt, Q9 = { +`, "getStyles"), HGt = GGt, U9 = { CONTAINS: "contains", ARROW: "arrow" -}, jGt = /* @__PURE__ */ x((t, e) => { - let r = t.append("defs").append("marker").attr("id", Q9.CONTAINS + "_line_ending").attr("refX", 0).attr("refY", e.line_height / 2).attr("markerWidth", e.line_height).attr("markerHeight", e.line_height).attr("orient", "auto").append("g"); - r.append("circle").attr("cx", e.line_height / 2).attr("cy", e.line_height / 2).attr("r", e.line_height / 2).attr("fill", "none"), r.append("line").attr("x1", 0).attr("x2", e.line_height).attr("y1", e.line_height / 2).attr("y2", e.line_height / 2).attr("stroke-width", 1), r.append("line").attr("y1", 0).attr("y2", e.line_height).attr("x1", e.line_height / 2).attr("x2", e.line_height / 2).attr("stroke-width", 1), t.append("defs").append("marker").attr("id", Q9.ARROW + "_line_ending").attr("refX", e.line_height).attr("refY", 0.5 * e.line_height).attr("markerWidth", e.line_height).attr("markerHeight", e.line_height).attr("orient", "auto").append("path").attr( +}, XGt = /* @__PURE__ */ x((t, e) => { + let r = t.append("defs").append("marker").attr("id", U9.CONTAINS + "_line_ending").attr("refX", 0).attr("refY", e.line_height / 2).attr("markerWidth", e.line_height).attr("markerHeight", e.line_height).attr("orient", "auto").append("g"); + r.append("circle").attr("cx", e.line_height / 2).attr("cy", e.line_height / 2).attr("r", e.line_height / 2).attr("fill", "none"), r.append("line").attr("x1", 0).attr("x2", e.line_height).attr("y1", e.line_height / 2).attr("y2", e.line_height / 2).attr("stroke-width", 1), r.append("line").attr("y1", 0).attr("y2", e.line_height).attr("x1", e.line_height / 2).attr("x2", e.line_height / 2).attr("stroke-width", 1), t.append("defs").append("marker").attr("id", U9.ARROW + "_line_ending").attr("refX", e.line_height).attr("refY", 0.5 * e.line_height).attr("markerWidth", e.line_height).attr("markerHeight", e.line_height).attr("orient", "auto").append("path").attr( "d", `M0,0 L${e.line_height},${e.line_height / 2} M${e.line_height},${e.line_height / 2} L0,${e.line_height}` ).attr("stroke-width", 1); -}, "insertLineEndings"), cge = { - ReqMarkers: Q9, - insertLineEndings: jGt -}, Vn = {}, lH = 0, uge = /* @__PURE__ */ x((t, e) => t.insert("rect", "#" + e).attr("class", "req reqBox").attr("x", 0).attr("y", 0).attr("width", Vn.rect_min_width + "px").attr("height", Vn.rect_min_height + "px"), "newRectNode"), hge = /* @__PURE__ */ x((t, e, r) => { +}, "insertLineEndings"), oge = { + ReqMarkers: U9, + insertLineEndings: XGt +}, Vn = {}, sH = 0, lge = /* @__PURE__ */ x((t, e) => t.insert("rect", "#" + e).attr("class", "req reqBox").attr("x", 0).attr("y", 0).attr("width", Vn.rect_min_width + "px").attr("height", Vn.rect_min_height + "px"), "newRectNode"), cge = /* @__PURE__ */ x((t, e, r) => { let n = Vn.rect_min_width / 2, i = t.append("text").attr("class", "req reqLabel reqTitle").attr("id", e).attr("x", n).attr("y", Vn.rect_padding).attr("dominant-baseline", "hanging"), s = 0; r.forEach((u) => { s == 0 ? i.append("tspan").attr("text-anchor", "middle").attr("x", Vn.rect_min_width / 2).attr("dy", 0).text(u) : i.append("tspan").attr("text-anchor", "middle").attr("x", Vn.rect_min_width / 2).attr("dy", Vn.line_height * 0.75).text(u), s++; @@ -87372,7 +87316,7 @@ var LGt = Y9, mP = [], La = {}, dy = /* @__PURE__ */ new Map(), rf = {}, py = /* titleNode: i, y: l }; -}, "newTitleNode"), fge = /* @__PURE__ */ x((t, e, r, n) => { +}, "newTitleNode"), uge = /* @__PURE__ */ x((t, e, r, n) => { let i = t.append("text").attr("class", "req reqLabel").attr("id", e).attr("x", Vn.rect_padding).attr("y", n).attr("dominant-baseline", "hanging"), s = 0; const a = 30; let o = []; @@ -87391,12 +87335,12 @@ var LGt = Y9, mP = [], La = {}, dy = /* @__PURE__ */ new Map(), rf = {}, py = /* }), o.forEach((l) => { i.append("tspan").attr("x", Vn.rect_padding).attr("dy", Vn.line_height).text(l); }), i; -}, "newBodyNode"), KGt = /* @__PURE__ */ x((t, e, r, n) => { - const i = e.node().getTotalLength(), s = e.node().getPointAtLength(i * 0.5), a = "rel" + lH; - lH++; +}, "newBodyNode"), ZGt = /* @__PURE__ */ x((t, e, r, n) => { + const i = e.node().getTotalLength(), s = e.node().getPointAtLength(i * 0.5), a = "rel" + sH; + sH++; const l = t.append("text").attr("class", "req relationshipLabel").attr("id", a).attr("x", s.x).attr("y", s.y).attr("text-anchor", "middle").attr("dominant-baseline", "middle").text(n).node().getBBox(); t.insert("rect", "#" + a).attr("class", "req reqLabelBox").attr("x", s.x - l.width / 2).attr("y", s.y - l.height / 2).attr("width", l.width).attr("height", l.height).attr("fill", "white").attr("fill-opacity", "85%"); -}, "addEdgeLabel"), JGt = /* @__PURE__ */ x(function(t, e, r, n, i) { +}, "addEdgeLabel"), jGt = /* @__PURE__ */ x(function(t, e, r, n, i) { const s = r.edge(k1(e.src), k1(e.dst)), a = yf().x(function(l) { return l.x; }).y(function(l) { @@ -87407,18 +87351,18 @@ var LGt = Y9, mP = [], La = {}, dy = /* @__PURE__ */ new Map(), rf = {}, py = /* "url(" + at.getUrl(Vn.arrowMarkerAbsolute) + "#" + e.type + "_line_ending)" ) : (o.attr("stroke-dasharray", "10,7"), o.attr( "marker-end", - "url(" + at.getUrl(Vn.arrowMarkerAbsolute) + "#" + cge.ReqMarkers.ARROW + "_line_ending)" - )), KGt(t, o, Vn, `<<${e.type}>>`); -}, "drawRelationshipFromLayout"), eHt = /* @__PURE__ */ x((t, e, r) => { + "url(" + at.getUrl(Vn.arrowMarkerAbsolute) + "#" + oge.ReqMarkers.ARROW + "_line_ending)" + )), ZGt(t, o, Vn, `<<${e.type}>>`); +}, "drawRelationshipFromLayout"), KGt = /* @__PURE__ */ x((t, e, r) => { t.forEach((n, i) => { i = k1(i), X.info("Added new requirement: ", i); - const s = r.append("g").attr("id", i), a = "req-" + i, o = uge(s, a); - let l = [], u = hge(s, i + "_title", [ + const s = r.append("g").attr("id", i), a = "req-" + i, o = lge(s, a); + let l = [], u = cge(s, i + "_title", [ `<<${n.type}>>`, `${n.name}` ]); l.push(u.titleNode); - let h = fge( + let h = uge( s, i + "_body", [ @@ -87438,12 +87382,12 @@ var LGt = Y9, mP = [], La = {}, dy = /* @__PURE__ */ new Map(), rf = {}, py = /* id: i }); }); -}, "drawReqs"), tHt = /* @__PURE__ */ x((t, e, r) => { +}, "drawReqs"), JGt = /* @__PURE__ */ x((t, e, r) => { t.forEach((n, i) => { - const s = k1(i), a = r.append("g").attr("id", s), o = "element-" + s, l = uge(a, o); - let u = [], h = hge(a, o + "_title", ["<>", `${i}`]); + const s = k1(i), a = r.append("g").attr("id", s), o = "element-" + s, l = lge(a, o); + let u = [], h = cge(a, o + "_title", ["<>", `${i}`]); u.push(h.titleNode); - let f = fge( + let f = uge( a, o + "_body", [`Type: ${n.type || "Not Specified"}`, `Doc Ref: ${n.docRef || "None"}`], @@ -87458,23 +87402,23 @@ var LGt = Y9, mP = [], La = {}, dy = /* @__PURE__ */ new Map(), rf = {}, py = /* id: s }); }); -}, "drawElements"), rHt = /* @__PURE__ */ x((t, e) => (t.forEach(function(r) { +}, "drawElements"), eHt = /* @__PURE__ */ x((t, e) => (t.forEach(function(r) { let n = k1(r.src), i = k1(r.dst); e.setEdge(n, i, { relationship: r }); -}), t), "addRelationships"), nHt = /* @__PURE__ */ x(function(t, e) { +}), t), "addRelationships"), tHt = /* @__PURE__ */ x(function(t, e) { e.nodes().forEach(function(r) { r !== void 0 && e.node(r) !== void 0 && (t.select("#" + r), t.select("#" + r).attr( "transform", "translate(" + (e.node(r).x - e.node(r).width / 2) + "," + (e.node(r).y - e.node(r).height / 2) + " )" )); }); -}, "adjustEntities"), k1 = /* @__PURE__ */ x((t) => t.replace(/\s/g, "").replace(/\./g, "_"), "elementString"), iHt = /* @__PURE__ */ x((t, e, r, n) => { +}, "adjustEntities"), k1 = /* @__PURE__ */ x((t) => t.replace(/\s/g, "").replace(/\./g, "_"), "elementString"), rHt = /* @__PURE__ */ x((t, e, r, n) => { Vn = be().requirement; const i = Vn.securityLevel; let s; i === "sandbox" && (s = et("#i" + e)); const o = et(i === "sandbox" ? s.nodes()[0].contentDocument.body : "body").select(`[id='${e}']`); - cge.insertLineEndings(o, Vn); + oge.insertLineEndings(o, Vn); const l = new $i({ multigraph: !1, compound: !1, @@ -87490,24 +87434,24 @@ var LGt = Y9, mP = [], La = {}, dy = /* @__PURE__ */ new Map(), rf = {}, py = /* return {}; }); let u = n.db.getRequirements(), h = n.db.getElements(), f = n.db.getRelationships(); - eHt(u, l, o), tHt(h, l, o), rHt(f, l), om(l), nHt(o, l), f.forEach(function(v) { - JGt(o, v, l, e, n); + KGt(u, l, o), JGt(h, l, o), eHt(f, l), om(l), tHt(o, l), f.forEach(function(v) { + jGt(o, v, l, e, n); }); const d = Vn.rect_padding, p = o.node().getBBox(), g = p.width + d * 2, m = p.height + d * 2; ms(o, m, g, Vn.useMaxWidth), o.attr("viewBox", `${p.x - d} ${p.y - d} ${g} ${m}`); -}, "draw"), sHt = { - draw: iHt -}, aHt = { - parser: LGt, - db: HGt, - renderer: sHt, - styles: ZGt -}; -const oHt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +}, "draw"), nHt = { + draw: rHt +}, iHt = { + parser: _Gt, + db: WGt, + renderer: nHt, + styles: HGt +}; +const sHt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - diagram: aHt + diagram: iHt }, Symbol.toStringTag, { value: "Module" })); -var W9 = function() { +var q9 = function() { var t = /* @__PURE__ */ x(function(U, Z, W, j) { for (W = W || {}, j = U.length; j--; W[U[j]] = Z) ; @@ -88096,8 +88040,8 @@ Expecting ` + Te.join(", ") + ", got '" + (this.terminals_[fe] || fe) + "'" : Xe } return x(ie, "Parser"), ie.prototype = Q, Q.Parser = ie, new ie(); }(); -W9.parser = W9; -var lHt = W9, It = new kI(() => ({ +q9.parser = q9; +var aHt = q9, It = new xI(() => ({ prevActor: void 0, actors: /* @__PURE__ */ new Map(), createdActors: /* @__PURE__ */ new Map(), @@ -88110,7 +88054,7 @@ var lHt = W9, It = new kI(() => ({ currentBox: void 0, lastCreated: void 0, lastDestroyed: void 0 -})), cHt = /* @__PURE__ */ x(function(t) { +})), oHt = /* @__PURE__ */ x(function(t) { var e; It.records.boxes.push({ name: t.text, @@ -88118,7 +88062,7 @@ var lHt = W9, It = new kI(() => ({ fill: t.color, actorKeys: [] }), It.records.currentBox = It.records.boxes.slice(-1)[0]; -}, "addBox"), G9 = /* @__PURE__ */ x(function(t, e, r, n) { +}, "addBox"), Y9 = /* @__PURE__ */ x(function(t, e, r, n) { var a; let i = It.records.currentBox; const s = It.records.actors.get(t); @@ -88146,14 +88090,14 @@ var lHt = W9, It = new kI(() => ({ o && (o.nextActor = t); } It.records.currentBox && It.records.currentBox.actorKeys.push(t), It.records.prevActor = t; -}, "addActor"), uHt = /* @__PURE__ */ x((t) => { +}, "addActor"), lHt = /* @__PURE__ */ x((t) => { let e, r = 0; if (!t) return 0; for (e = 0; e < It.records.messages.length; e++) It.records.messages[e].type === F2.ACTIVE_START && It.records.messages[e].from === t && r++, It.records.messages[e].type === F2.ACTIVE_END && It.records.messages[e].from === t && r--; return r; -}, "activationCount"), hHt = /* @__PURE__ */ x(function(t, e, r, n) { +}, "activationCount"), cHt = /* @__PURE__ */ x(function(t, e, r, n) { var i; It.records.messages.push({ from: t, @@ -88164,7 +88108,7 @@ var lHt = W9, It = new kI(() => ({ }); }, "addMessage"), Gn = /* @__PURE__ */ x(function(t, e, r, n, i = !1) { var s, a; - if (n === F2.ACTIVE_END && uHt(t != null ? t : "") < 1) { + if (n === F2.ACTIVE_END && lHt(t != null ? t : "") < 1) { const l = new Error("Trying to inactivate an inactive participant (" + t + ")"); throw l.hash = { text: "->>-", @@ -88182,31 +88126,31 @@ var lHt = W9, It = new kI(() => ({ type: n, activate: i }), !0; -}, "addSignal"), fHt = /* @__PURE__ */ x(function() { +}, "addSignal"), uHt = /* @__PURE__ */ x(function() { return It.records.boxes.length > 0; -}, "hasAtLeastOneBox"), dHt = /* @__PURE__ */ x(function() { +}, "hasAtLeastOneBox"), hHt = /* @__PURE__ */ x(function() { return It.records.boxes.some((t) => t.name); -}, "hasAtLeastOneBoxWithTitle"), pHt = /* @__PURE__ */ x(function() { +}, "hasAtLeastOneBoxWithTitle"), fHt = /* @__PURE__ */ x(function() { return It.records.messages; -}, "getMessages"), gHt = /* @__PURE__ */ x(function() { +}, "getMessages"), dHt = /* @__PURE__ */ x(function() { return It.records.boxes; -}, "getBoxes"), mHt = /* @__PURE__ */ x(function() { +}, "getBoxes"), pHt = /* @__PURE__ */ x(function() { return It.records.actors; -}, "getActors"), vHt = /* @__PURE__ */ x(function() { +}, "getActors"), gHt = /* @__PURE__ */ x(function() { return It.records.createdActors; -}, "getCreatedActors"), yHt = /* @__PURE__ */ x(function() { +}, "getCreatedActors"), mHt = /* @__PURE__ */ x(function() { return It.records.destroyedActors; }, "getDestroyedActors"), Yx = /* @__PURE__ */ x(function(t) { return It.records.actors.get(t); -}, "getActor"), bHt = /* @__PURE__ */ x(function() { +}, "getActor"), vHt = /* @__PURE__ */ x(function() { return [...It.records.actors.keys()]; -}, "getActorKeys"), xHt = /* @__PURE__ */ x(function() { +}, "getActorKeys"), yHt = /* @__PURE__ */ x(function() { It.records.sequenceNumbersEnabled = !0; -}, "enableSequenceNumbers"), wHt = /* @__PURE__ */ x(function() { +}, "enableSequenceNumbers"), bHt = /* @__PURE__ */ x(function() { It.records.sequenceNumbersEnabled = !1; -}, "disableSequenceNumbers"), OHt = /* @__PURE__ */ x(() => It.records.sequenceNumbersEnabled, "showSequenceNumbers"), kHt = /* @__PURE__ */ x(function(t) { +}, "disableSequenceNumbers"), xHt = /* @__PURE__ */ x(() => It.records.sequenceNumbersEnabled, "showSequenceNumbers"), wHt = /* @__PURE__ */ x(function(t) { It.records.wrapEnabled = t; -}, "setWrap"), dge = /* @__PURE__ */ x((t) => { +}, "setWrap"), hge = /* @__PURE__ */ x((t) => { if (t === void 0) return {}; t = t.trim(); @@ -88215,15 +88159,15 @@ var lHt = W9, It = new kI(() => ({ }, "extractWrap"), k0 = /* @__PURE__ */ x(() => { var t, e; return It.records.wrapEnabled !== void 0 ? It.records.wrapEnabled : (e = (t = be().sequence) == null ? void 0 : t.wrap) != null ? e : !1; -}, "autoWrap"), SHt = /* @__PURE__ */ x(function() { +}, "autoWrap"), OHt = /* @__PURE__ */ x(function() { It.reset(), Xi(); -}, "clear"), THt = /* @__PURE__ */ x(function(t) { - const e = t.trim(), { wrap: r, cleanedText: n } = dge(e), i = { +}, "clear"), kHt = /* @__PURE__ */ x(function(t) { + const e = t.trim(), { wrap: r, cleanedText: n } = hge(e), i = { text: n, wrap: r }; return X.debug(`parseMessage: ${JSON.stringify(i)}`), i; -}, "parseMessage"), CHt = /* @__PURE__ */ x(function(t) { +}, "parseMessage"), SHt = /* @__PURE__ */ x(function(t) { const e = /^((?:rgba?|hsla?)\s*\(.*\)|\w*)(.*)$/.exec(t); let r = e != null && e[1] ? e[1].trim() : "transparent", n = e != null && e[2] ? e[2].trim() : void 0; if (window != null && window.CSS) @@ -88232,7 +88176,7 @@ var lHt = W9, It = new kI(() => ({ const a = new Option().style; a.color = r, a.color !== r && (r = "transparent", n = t.trim()); } - const { wrap: i, cleanedText: s } = dge(n); + const { wrap: i, cleanedText: s } = hge(n); return { text: s ? ni(s, be()) : void 0, color: r, @@ -88271,14 +88215,14 @@ var lHt = W9, It = new kI(() => ({ PAR_OVER_START: 32, BIDIRECTIONAL_SOLID: 33, BIDIRECTIONAL_DOTTED: 34 -}, EHt = { +}, THt = { FILLED: 0, OPEN: 1 -}, _Ht = { +}, CHt = { LEFTOF: 0, RIGHTOF: 1, OVER: 2 -}, pge = /* @__PURE__ */ x(function(t, e, r) { +}, fge = /* @__PURE__ */ x(function(t, e, r) { var s, a; const n = { actor: t, @@ -88294,17 +88238,17 @@ var lHt = W9, It = new kI(() => ({ type: F2.NOTE, placement: e }); -}, "addNote"), gge = /* @__PURE__ */ x(function(t, e) { +}, "addNote"), dge = /* @__PURE__ */ x(function(t, e) { const r = Yx(t); try { let n = ni(e.text, be()); n = n.replace(/&/g, "&"), n = n.replace(/=/g, "="); const i = JSON.parse(n); - IC(r, i); + DC(r, i); } catch (n) { X.error("error while parsing actor link text", n); } -}, "addLinks"), AHt = /* @__PURE__ */ x(function(t, e) { +}, "addLinks"), EHt = /* @__PURE__ */ x(function(t, e) { const r = Yx(t); try { const n = {}; @@ -88312,55 +88256,55 @@ var lHt = W9, It = new kI(() => ({ const s = i.indexOf("@"); i = i.replace(/&/g, "&"), i = i.replace(/=/g, "="); const a = i.slice(0, s - 1).trim(), o = i.slice(s + 1).trim(); - n[a] = o, IC(r, n); + n[a] = o, DC(r, n); } catch (n) { X.error("error while parsing actor link text", n); } }, "addALink"); -function IC(t, e) { +function DC(t, e) { if (t.links == null) t.links = e; else for (const r in e) t.links[r] = e[r]; } -x(IC, "insertLinks"); -var mge = /* @__PURE__ */ x(function(t, e) { +x(DC, "insertLinks"); +var pge = /* @__PURE__ */ x(function(t, e) { const r = Yx(t); try { const n = ni(e.text, be()), i = JSON.parse(n); - vP(r, i); + pP(r, i); } catch (n) { X.error("error while parsing actor properties text", n); } }, "addProperties"); -function vP(t, e) { +function pP(t, e) { if (t.properties == null) t.properties = e; else for (const r in e) t.properties[r] = e[r]; } -x(vP, "insertProperties"); -function vge() { +x(pP, "insertProperties"); +function gge() { It.records.currentBox = void 0; } -x(vge, "boxEnd"); -var yge = /* @__PURE__ */ x(function(t, e) { +x(gge, "boxEnd"); +var mge = /* @__PURE__ */ x(function(t, e) { const r = Yx(t), n = document.getElementById(e.text); try { const i = n.innerHTML, s = JSON.parse(i); - s.properties && vP(r, s.properties), s.links && IC(r, s.links); + s.properties && pP(r, s.properties), s.links && DC(r, s.links); } catch (i) { X.error("error while parsing actor details text", i); } -}, "addDetails"), LHt = /* @__PURE__ */ x(function(t, e) { +}, "addDetails"), _Ht = /* @__PURE__ */ x(function(t, e) { if ((t == null ? void 0 : t.properties) !== void 0) return t.properties[e]; -}, "getActorProperty"), bge = /* @__PURE__ */ x(function(t) { +}, "getActorProperty"), vge = /* @__PURE__ */ x(function(t) { if (Array.isArray(t)) t.forEach(function(e) { - bge(e); + vge(e); }); else switch (t.type) { @@ -88378,14 +88322,14 @@ var yge = /* @__PURE__ */ x(function(t, e) { }); break; case "addParticipant": - G9(t.actor, t.actor, t.description, t.draw); + Y9(t.actor, t.actor, t.description, t.draw); break; case "createParticipant": if (It.records.actors.has(t.actor)) throw new Error( "It is not possible to have actors with the same id, even if one is destroyed before the next is created. Use 'AS' aliases to simulate the behavior" ); - It.records.lastCreated = t.actor, G9(t.actor, t.actor, t.description, t.draw), It.records.createdActors.set(t.actor, It.records.messages.length); + It.records.lastCreated = t.actor, Y9(t.actor, t.actor, t.description, t.draw), It.records.createdActors.set(t.actor, It.records.messages.length); break; case "destroyParticipant": It.records.lastDestroyed = t.actor, It.records.destroyedActors.set(t.actor, It.records.messages.length); @@ -88397,19 +88341,19 @@ var yge = /* @__PURE__ */ x(function(t, e) { Gn(t.actor, void 0, void 0, t.signalType); break; case "addNote": - pge(t.actor, t.placement, t.text); + fge(t.actor, t.placement, t.text); break; case "addLinks": - gge(t.actor, t.text); + dge(t.actor, t.text); break; case "addALink": - AHt(t.actor, t.text); + EHt(t.actor, t.text); break; case "addProperties": - mge(t.actor, t.text); + pge(t.actor, t.text); break; case "addDetails": - yge(t.actor, t.text); + mge(t.actor, t.text); break; case "addMessage": if (It.records.lastCreated) { @@ -88428,10 +88372,10 @@ var yge = /* @__PURE__ */ x(function(t, e) { Gn(t.from, t.to, t.msg, t.signalType, t.activate); break; case "boxStart": - cHt(t.boxData); + oHt(t.boxData); break; case "boxEnd": - vge(); + gge(); break; case "loopStart": Gn(void 0, void 0, t.loopText, t.signalType); @@ -88488,44 +88432,44 @@ var yge = /* @__PURE__ */ x(function(t, e) { Gn(void 0, void 0, void 0, t.signalType); break; } -}, "apply"), cH = { - addActor: G9, - addMessage: hHt, +}, "apply"), aH = { + addActor: Y9, + addMessage: cHt, addSignal: Gn, - addLinks: gge, - addDetails: yge, - addProperties: mge, + addLinks: dge, + addDetails: mge, + addProperties: pge, autoWrap: k0, - setWrap: kHt, - enableSequenceNumbers: xHt, - disableSequenceNumbers: wHt, - showSequenceNumbers: OHt, - getMessages: pHt, - getActors: mHt, - getCreatedActors: vHt, - getDestroyedActors: yHt, + setWrap: wHt, + enableSequenceNumbers: yHt, + disableSequenceNumbers: bHt, + showSequenceNumbers: xHt, + getMessages: fHt, + getActors: pHt, + getCreatedActors: gHt, + getDestroyedActors: mHt, getActor: Yx, - getActorKeys: bHt, - getActorProperty: LHt, + getActorKeys: vHt, + getActorProperty: _Ht, getAccTitle: vs, - getBoxes: gHt, + getBoxes: dHt, getDiagramTitle: xs, setDiagramTitle: fa, getConfig: /* @__PURE__ */ x(() => be().sequence, "getConfig"), - clear: SHt, - parseMessage: THt, - parseBoxData: CHt, + clear: OHt, + parseMessage: kHt, + parseBoxData: SHt, LINETYPE: F2, - ARROWTYPE: EHt, - PLACEMENT: _Ht, - addNote: pge, + ARROWTYPE: THt, + PLACEMENT: CHt, + addNote: fge, setAccTitle: Zi, - apply: bge, + apply: vge, setAccDescription: ys, getAccDescription: bs, - hasAtLeastOneBox: fHt, - hasAtLeastOneBoxWithTitle: dHt -}, RHt = /* @__PURE__ */ x((t) => `.actor { + hasAtLeastOneBox: uHt, + hasAtLeastOneBoxWithTitle: hHt +}, AHt = /* @__PURE__ */ x((t) => `.actor { stroke: ${t.actorBorder}; fill: ${t.actorBkg}; } @@ -88641,9 +88585,9 @@ var yge = /* @__PURE__ */ x(function(t, e) { fill: ${t.actorBkg}; stroke-width: 2px; } -`, "getStyles"), MHt = RHt, Bd = 18 * 2, xge = "actor-top", wge = "actor-bottom", DHt = "actor-box", uH = "actor-man", yP = /* @__PURE__ */ x(function(t, e) { - return uC(t, e); -}, "drawRect"), NHt = /* @__PURE__ */ x(function(t, e, r, n, i) { +`, "getStyles"), LHt = AHt, Bd = 18 * 2, yge = "actor-top", bge = "actor-bottom", RHt = "actor-box", oH = "actor-man", gP = /* @__PURE__ */ x(function(t, e) { + return lC(t, e); +}, "drawRect"), MHt = /* @__PURE__ */ x(function(t, e, r, n, i) { if (e.links === void 0 || e.links === null || Object.keys(e.links).length === 0) return { height: 0, width: 0 }; const s = e.links, a = e.actorCnt, o = e.rectData; @@ -88659,7 +88603,7 @@ var yge = /* @__PURE__ */ x(function(t, e) { var p = 20; for (let v in s) { var g = u.append("a"), m = Uf(s[v]); - g.attr("xlink:href", m), g.attr("target", "_blank"), jHt(n)( + g.attr("xlink:href", m), g.attr("target", "_blank"), XHt(n)( v, g, o.x + 10, @@ -88672,9 +88616,9 @@ var yge = /* @__PURE__ */ x(function(t, e) { } } return d.attr("height", p), { height: o.height + p, width: f }; -}, "drawPopup"), IHt = /* @__PURE__ */ x(function(t) { +}, "drawPopup"), DHt = /* @__PURE__ */ x(function(t) { return "var pu = document.getElementById('" + t + "'); if (pu != null) { pu.style.display = pu.style.display == 'block' ? 'none' : 'block'; }"; -}, "popupMenuToggle"), Xk = /* @__PURE__ */ x(async function(t, e, r = null) { +}, "popupMenuToggle"), Hk = /* @__PURE__ */ x(async function(t, e, r = null) { let n = t.append("foreignObject"); const i = await lx(e.text, pi()), a = n.append("xhtml:div").attr("style", "width: fit-content;").attr("xmlns", "http://www.w3.org/1999/xhtml").html(i).node().getBoundingClientRect(); if (n.attr("height", Math.round(a.height)).attr("width", Math.round(a.width)), e.class === "noteText") { @@ -88731,7 +88675,7 @@ var yge = /* @__PURE__ */ x(function(t, e) { e.textMargin !== void 0 && e.textMargin === 0 && s !== void 0 && (l = h * s); const d = t.append("text"); d.attr("x", e.x), d.attr("y", u()), e.anchor !== void 0 && d.attr("text-anchor", e.anchor).attr("dominant-baseline", e.dominantBaseline).attr("alignment-baseline", e.alignmentBaseline), e.fontFamily !== void 0 && d.style("font-family", e.fontFamily), a !== void 0 && d.style("font-size", a), e.fontWeight !== void 0 && d.style("font-weight", e.fontWeight), e.fill !== void 0 && d.attr("fill", e.fill), e.class !== void 0 && d.attr("class", e.class), e.dy !== void 0 ? d.attr("dy", e.dy) : l !== 0 && d.attr("dy", l); - const p = f || xae; + const p = f || yae; if (e.tspan) { const g = d.append("tspan"); g.attr("x", e.x), e.fill !== void 0 && g.attr("fill", e.fill), g.text(p); @@ -88740,39 +88684,39 @@ var yge = /* @__PURE__ */ x(function(t, e) { e.valign !== void 0 && e.textMargin !== void 0 && e.textMargin > 0 && (n += (d._groups || d)[0][0].getBBox().height, r = n), o.push(d); } return o; -}, "drawText"), Oge = /* @__PURE__ */ x(function(t, e) { +}, "drawText"), xge = /* @__PURE__ */ x(function(t, e) { function r(i, s, a, o, l) { return i + "," + s + " " + (i + a) + "," + s + " " + (i + a) + "," + (s + o - l) + " " + (i + a - l * 1.2) + "," + (s + o) + " " + i + "," + (s + o); } x(r, "genPoints"); const n = t.append("polygon"); return n.attr("points", r(e.x, e.y, e.width, e.height, 7)), n.attr("class", "labelBox"), e.y = e.y + e.height / 2, S1(t, e), n; -}, "drawLabel"), pc = -1, kge = /* @__PURE__ */ x((t, e, r, n) => { +}, "drawLabel"), pc = -1, wge = /* @__PURE__ */ x((t, e, r, n) => { !t.select || r.forEach((i) => { const s = e.get(i), a = t.select("#actor" + s.actorCnt); !n.mirrorActors && s.stopy ? a.attr("y2", s.stopy + s.height / 2) : n.mirrorActors && a.attr("y2", s.stopy); }); -}, "fixLifeLineHeights"), PHt = /* @__PURE__ */ x(function(t, e, r, n) { +}, "fixLifeLineHeights"), NHt = /* @__PURE__ */ x(function(t, e, r, n) { var p, g; const i = n ? e.stopy : e.starty, s = e.x + e.width / 2, a = i + 5, o = t.append("g").lower(); var l = o; - n || (pc++, Object.keys(e.links || {}).length && !r.forceMenus && l.attr("onclick", IHt(`actor${pc}_popup`)).attr("cursor", "pointer"), l.append("line").attr("id", "actor" + pc).attr("x1", s).attr("y1", a).attr("x2", s).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", e.name), l = o.append("g"), e.actorCnt = pc, e.links != null && l.attr("id", "root-" + pc)); + n || (pc++, Object.keys(e.links || {}).length && !r.forceMenus && l.attr("onclick", DHt(`actor${pc}_popup`)).attr("cursor", "pointer"), l.append("line").attr("id", "actor" + pc).attr("x1", s).attr("y1", a).attr("x2", s).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", e.name), l = o.append("g"), e.actorCnt = pc, e.links != null && l.attr("id", "root-" + pc)); const u = ep(); var h = "actor"; - (p = e.properties) != null && p.class ? h = e.properties.class : u.fill = "#eaeaea", n ? h += ` ${wge}` : h += ` ${xge}`, u.x = e.x, u.y = i, u.width = e.width, u.height = e.height, u.class = h, u.rx = 3, u.ry = 3, u.name = e.name; - const f = yP(l, u); + (p = e.properties) != null && p.class ? h = e.properties.class : u.fill = "#eaeaea", n ? h += ` ${bge}` : h += ` ${yge}`, u.x = e.x, u.y = i, u.width = e.width, u.height = e.height, u.class = h, u.rx = 3, u.ry = 3, u.name = e.name; + const f = gP(l, u); if (e.rectData = u, (g = e.properties) != null && g.icon) { const m = e.properties.icon.trim(); - m.charAt(0) === "@" ? kIt(l, u.x + u.width - 20, u.y + 10, m.substr(1)) : OIt(l, u.x + u.width - 20, u.y + 10, m); + m.charAt(0) === "@" ? wIt(l, u.x + u.width - 20, u.y + 10, m.substr(1)) : xIt(l, u.x + u.width - 20, u.y + 10, m); } - bP(r, ca(e.description))( + mP(r, ca(e.description))( e.description, l, u.x, u.y, u.width, u.height, - { class: `actor ${DHt}` }, + { class: `actor ${RHt}` }, r ); let d = e.height; @@ -88781,37 +88725,37 @@ var yge = /* @__PURE__ */ x(function(t, e) { e.height = m.height, d = m.height; } return d; -}, "drawActorTypeParticipant"), $Ht = /* @__PURE__ */ x(function(t, e, r, n) { +}, "drawActorTypeParticipant"), IHt = /* @__PURE__ */ x(function(t, e, r, n) { const i = n ? e.stopy : e.starty, s = e.x + e.width / 2, a = i + 80, o = t.append("g").lower(); n || (pc++, o.append("line").attr("id", "actor" + pc).attr("x1", s).attr("y1", a).attr("x2", s).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", e.name), e.actorCnt = pc); const l = t.append("g"); - let u = uH; - n ? u += ` ${wge}` : u += ` ${xge}`, l.attr("class", u), l.attr("name", e.name); + let u = oH; + n ? u += ` ${bge}` : u += ` ${yge}`, l.attr("class", u), l.attr("name", e.name); const h = ep(); h.x = e.x, h.y = i, h.fill = "#eaeaea", h.width = e.width, h.height = e.height, h.class = "actor", h.rx = 3, h.ry = 3, l.append("line").attr("id", "actor-man-torso" + pc).attr("x1", s).attr("y1", i + 25).attr("x2", s).attr("y2", i + 45), l.append("line").attr("id", "actor-man-arms" + pc).attr("x1", s - Bd / 2).attr("y1", i + 33).attr("x2", s + Bd / 2).attr("y2", i + 33), l.append("line").attr("x1", s - Bd / 2).attr("y1", i + 60).attr("x2", s).attr("y2", i + 45), l.append("line").attr("x1", s).attr("y1", i + 45).attr("x2", s + Bd / 2 - 2).attr("y2", i + 60); const f = l.append("circle"); f.attr("cx", e.x + e.width / 2), f.attr("cy", i + 10), f.attr("r", 15), f.attr("width", e.width), f.attr("height", e.height); const d = l.node().getBBox(); - return e.height = d.height, bP(r, ca(e.description))( + return e.height = d.height, mP(r, ca(e.description))( e.description, l, h.x, h.y + 35, h.width, h.height, - { class: `actor ${uH}` }, + { class: `actor ${oH}` }, r ), e.height; -}, "drawActorTypeActor"), BHt = /* @__PURE__ */ x(async function(t, e, r, n) { +}, "drawActorTypeActor"), PHt = /* @__PURE__ */ x(async function(t, e, r, n) { switch (e.type) { case "actor": - return await $Ht(t, e, r, n); + return await IHt(t, e, r, n); case "participant": - return await PHt(t, e, r, n); + return await NHt(t, e, r, n); } -}, "drawActor"), FHt = /* @__PURE__ */ x(function(t, e, r) { +}, "drawActor"), $Ht = /* @__PURE__ */ x(function(t, e, r) { const i = t.append("g"); - Sge(i, e), e.name && bP(r)( + Oge(i, e), e.name && mP(r)( e.name, i, e.x, @@ -88821,12 +88765,12 @@ var yge = /* @__PURE__ */ x(function(t, e) { { class: "text" }, r ), i.lower(); -}, "drawBox"), zHt = /* @__PURE__ */ x(function(t) { +}, "drawBox"), BHt = /* @__PURE__ */ x(function(t) { return t.append("g"); -}, "anchorElement"), VHt = /* @__PURE__ */ x(function(t, e, r, n, i) { +}, "anchorElement"), FHt = /* @__PURE__ */ x(function(t, e, r, n, i) { const s = ep(), a = e.anchored; - s.x = e.startx, s.y = e.starty, s.class = "activation" + i % 3, s.width = e.stopx - e.startx, s.height = r - e.starty, yP(a, s); -}, "drawActivation"), UHt = /* @__PURE__ */ x(async function(t, e, r, n) { + s.x = e.startx, s.y = e.starty, s.class = "activation" + i % 3, s.width = e.stopx - e.startx, s.height = r - e.starty, gP(a, s); +}, "drawActivation"), zHt = /* @__PURE__ */ x(async function(t, e, r, n) { const { boxMargin: i, boxTextMargin: s, @@ -88844,13 +88788,13 @@ var yge = /* @__PURE__ */ x(function(t, e) { "3, 3" ); }); - let p = fI(); - p.text = r, p.x = e.startx, p.y = e.starty, p.fontFamily = l, p.fontSize = u, p.fontWeight = h, p.anchor = "middle", p.valign = "middle", p.tspan = !1, p.width = o || 50, p.height = a || 20, p.textMargin = s, p.class = "labelText", Oge(f, p), p = Tge(), p.text = e.title, p.x = e.startx + o / 2 + (e.stopx - e.startx) / 2, p.y = e.starty + i + s, p.anchor = "middle", p.valign = "middle", p.textMargin = s, p.class = "loopText", p.fontFamily = l, p.fontSize = u, p.fontWeight = h, p.wrap = !0; - let g = ca(p.text) ? await Xk(f, p, e) : S1(f, p); + let p = cI(); + p.text = r, p.x = e.startx, p.y = e.starty, p.fontFamily = l, p.fontSize = u, p.fontWeight = h, p.anchor = "middle", p.valign = "middle", p.tspan = !1, p.width = o || 50, p.height = a || 20, p.textMargin = s, p.class = "labelText", xge(f, p), p = kge(), p.text = e.title, p.x = e.startx + o / 2 + (e.stopx - e.startx) / 2, p.y = e.starty + i + s, p.anchor = "middle", p.valign = "middle", p.textMargin = s, p.class = "loopText", p.fontFamily = l, p.fontSize = u, p.fontWeight = h, p.wrap = !0; + let g = ca(p.text) ? await Hk(f, p, e) : S1(f, p); if (e.sectionTitles !== void 0) { for (const [m, v] of Object.entries(e.sectionTitles)) if (v.message) { - p.text = v.message, p.x = e.startx + (e.stopx - e.startx) / 2, p.y = e.sections[m].y + i + s, p.class = "loopText", p.anchor = "middle", p.valign = "middle", p.tspan = !1, p.fontFamily = l, p.fontSize = u, p.fontWeight = h, p.wrap = e.wrap, ca(p.text) ? (e.starty = e.sections[m].y, await Xk(f, p, e)) : S1(f, p); + p.text = v.message, p.x = e.startx + (e.stopx - e.startx) / 2, p.y = e.sections[m].y + i + s, p.class = "loopText", p.anchor = "middle", p.valign = "middle", p.tspan = !1, p.fontFamily = l, p.fontSize = u, p.fontWeight = h, p.wrap = e.wrap, ca(p.text) ? (e.starty = e.sections[m].y, await Hk(f, p, e)) : S1(f, p); let y = Math.round( g.map((b) => (b._groups || b)[0][0].getBBox().height).reduce((b, w) => b + w) ); @@ -88858,32 +88802,32 @@ var yge = /* @__PURE__ */ x(function(t, e) { } } return e.height = Math.round(e.stopy - e.starty), f; -}, "drawLoop"), Sge = /* @__PURE__ */ x(function(t, e) { - hfe(t, e); -}, "drawBackgroundRect"), qHt = /* @__PURE__ */ x(function(t) { +}, "drawLoop"), Oge = /* @__PURE__ */ x(function(t, e) { + cfe(t, e); +}, "drawBackgroundRect"), VHt = /* @__PURE__ */ x(function(t) { t.append("defs").append("symbol").attr("id", "database").attr("fill-rule", "evenodd").attr("clip-rule", "evenodd").append("path").attr("transform", "scale(.5)").attr( "d", "M12.258.001l.256.004.255.005.253.008.251.01.249.012.247.015.246.016.242.019.241.02.239.023.236.024.233.027.231.028.229.031.225.032.223.034.22.036.217.038.214.04.211.041.208.043.205.045.201.046.198.048.194.05.191.051.187.053.183.054.18.056.175.057.172.059.168.06.163.061.16.063.155.064.15.066.074.033.073.033.071.034.07.034.069.035.068.035.067.035.066.035.064.036.064.036.062.036.06.036.06.037.058.037.058.037.055.038.055.038.053.038.052.038.051.039.05.039.048.039.047.039.045.04.044.04.043.04.041.04.04.041.039.041.037.041.036.041.034.041.033.042.032.042.03.042.029.042.027.042.026.043.024.043.023.043.021.043.02.043.018.044.017.043.015.044.013.044.012.044.011.045.009.044.007.045.006.045.004.045.002.045.001.045v17l-.001.045-.002.045-.004.045-.006.045-.007.045-.009.044-.011.045-.012.044-.013.044-.015.044-.017.043-.018.044-.02.043-.021.043-.023.043-.024.043-.026.043-.027.042-.029.042-.03.042-.032.042-.033.042-.034.041-.036.041-.037.041-.039.041-.04.041-.041.04-.043.04-.044.04-.045.04-.047.039-.048.039-.05.039-.051.039-.052.038-.053.038-.055.038-.055.038-.058.037-.058.037-.06.037-.06.036-.062.036-.064.036-.064.036-.066.035-.067.035-.068.035-.069.035-.07.034-.071.034-.073.033-.074.033-.15.066-.155.064-.16.063-.163.061-.168.06-.172.059-.175.057-.18.056-.183.054-.187.053-.191.051-.194.05-.198.048-.201.046-.205.045-.208.043-.211.041-.214.04-.217.038-.22.036-.223.034-.225.032-.229.031-.231.028-.233.027-.236.024-.239.023-.241.02-.242.019-.246.016-.247.015-.249.012-.251.01-.253.008-.255.005-.256.004-.258.001-.258-.001-.256-.004-.255-.005-.253-.008-.251-.01-.249-.012-.247-.015-.245-.016-.243-.019-.241-.02-.238-.023-.236-.024-.234-.027-.231-.028-.228-.031-.226-.032-.223-.034-.22-.036-.217-.038-.214-.04-.211-.041-.208-.043-.204-.045-.201-.046-.198-.048-.195-.05-.19-.051-.187-.053-.184-.054-.179-.056-.176-.057-.172-.059-.167-.06-.164-.061-.159-.063-.155-.064-.151-.066-.074-.033-.072-.033-.072-.034-.07-.034-.069-.035-.068-.035-.067-.035-.066-.035-.064-.036-.063-.036-.062-.036-.061-.036-.06-.037-.058-.037-.057-.037-.056-.038-.055-.038-.053-.038-.052-.038-.051-.039-.049-.039-.049-.039-.046-.039-.046-.04-.044-.04-.043-.04-.041-.04-.04-.041-.039-.041-.037-.041-.036-.041-.034-.041-.033-.042-.032-.042-.03-.042-.029-.042-.027-.042-.026-.043-.024-.043-.023-.043-.021-.043-.02-.043-.018-.044-.017-.043-.015-.044-.013-.044-.012-.044-.011-.045-.009-.044-.007-.045-.006-.045-.004-.045-.002-.045-.001-.045v-17l.001-.045.002-.045.004-.045.006-.045.007-.045.009-.044.011-.045.012-.044.013-.044.015-.044.017-.043.018-.044.02-.043.021-.043.023-.043.024-.043.026-.043.027-.042.029-.042.03-.042.032-.042.033-.042.034-.041.036-.041.037-.041.039-.041.04-.041.041-.04.043-.04.044-.04.046-.04.046-.039.049-.039.049-.039.051-.039.052-.038.053-.038.055-.038.056-.038.057-.037.058-.037.06-.037.061-.036.062-.036.063-.036.064-.036.066-.035.067-.035.068-.035.069-.035.07-.034.072-.034.072-.033.074-.033.151-.066.155-.064.159-.063.164-.061.167-.06.172-.059.176-.057.179-.056.184-.054.187-.053.19-.051.195-.05.198-.048.201-.046.204-.045.208-.043.211-.041.214-.04.217-.038.22-.036.223-.034.226-.032.228-.031.231-.028.234-.027.236-.024.238-.023.241-.02.243-.019.245-.016.247-.015.249-.012.251-.01.253-.008.255-.005.256-.004.258-.001.258.001zm-9.258 20.499v.01l.001.021.003.021.004.022.005.021.006.022.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.023.018.024.019.024.021.024.022.025.023.024.024.025.052.049.056.05.061.051.066.051.07.051.075.051.079.052.084.052.088.052.092.052.097.052.102.051.105.052.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.048.144.049.147.047.152.047.155.047.16.045.163.045.167.043.171.043.176.041.178.041.183.039.187.039.19.037.194.035.197.035.202.033.204.031.209.03.212.029.216.027.219.025.222.024.226.021.23.02.233.018.236.016.24.015.243.012.246.01.249.008.253.005.256.004.259.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.021.224-.024.22-.026.216-.027.212-.028.21-.031.205-.031.202-.034.198-.034.194-.036.191-.037.187-.039.183-.04.179-.04.175-.042.172-.043.168-.044.163-.045.16-.046.155-.046.152-.047.148-.048.143-.049.139-.049.136-.05.131-.05.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.053.083-.051.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.05.023-.024.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.023.01-.022.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.127l-.077.055-.08.053-.083.054-.085.053-.087.052-.09.052-.093.051-.095.05-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.045-.118.044-.12.043-.122.042-.124.042-.126.041-.128.04-.13.04-.132.038-.134.038-.135.037-.138.037-.139.035-.142.035-.143.034-.144.033-.147.032-.148.031-.15.03-.151.03-.153.029-.154.027-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.01-.179.008-.179.008-.181.006-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.006-.179-.008-.179-.008-.178-.01-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.027-.153-.029-.151-.03-.15-.03-.148-.031-.146-.032-.145-.033-.143-.034-.141-.035-.14-.035-.137-.037-.136-.037-.134-.038-.132-.038-.13-.04-.128-.04-.126-.041-.124-.042-.122-.042-.12-.044-.117-.043-.116-.045-.113-.045-.112-.046-.109-.047-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.05-.093-.052-.09-.051-.087-.052-.085-.053-.083-.054-.08-.054-.077-.054v4.127zm0-5.654v.011l.001.021.003.021.004.021.005.022.006.022.007.022.009.022.01.022.011.023.012.023.013.023.015.024.016.023.017.024.018.024.019.024.021.024.022.024.023.025.024.024.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.052.11.051.114.051.119.052.123.05.127.051.131.05.135.049.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.044.171.042.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.022.23.02.233.018.236.016.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.012.241-.015.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.048.139-.05.136-.049.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.051.051-.049.023-.025.023-.024.021-.025.02-.024.019-.024.018-.024.017-.024.015-.023.014-.023.013-.024.012-.022.01-.023.01-.023.008-.022.006-.022.006-.022.004-.021.004-.022.001-.021.001-.021v-4.139l-.077.054-.08.054-.083.054-.085.052-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.044-.118.044-.12.044-.122.042-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.035-.143.033-.144.033-.147.033-.148.031-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.009-.179.009-.179.007-.181.007-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.007-.179-.007-.179-.009-.178-.009-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.031-.146-.033-.145-.033-.143-.033-.141-.035-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.04-.126-.041-.124-.042-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.051-.093-.051-.09-.051-.087-.053-.085-.052-.083-.054-.08-.054-.077-.054v4.139zm0-5.666v.011l.001.02.003.022.004.021.005.022.006.021.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.024.018.023.019.024.021.025.022.024.023.024.024.025.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.051.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.043.171.043.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.021.23.02.233.018.236.017.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.013.241-.014.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.049.139-.049.136-.049.131-.051.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.049.023-.025.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.022.01-.023.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.153l-.077.054-.08.054-.083.053-.085.053-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.048-.105.048-.106.048-.109.046-.111.046-.114.046-.115.044-.118.044-.12.043-.122.043-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.034-.143.034-.144.033-.147.032-.148.032-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.024-.161.024-.162.023-.163.023-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.01-.178.01-.179.009-.179.007-.181.006-.182.006-.182.004-.184.003-.184.001-.185.001-.185-.001-.184-.001-.184-.003-.182-.004-.182-.006-.181-.006-.179-.007-.179-.009-.178-.01-.176-.01-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.023-.162-.023-.161-.024-.159-.024-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.032-.146-.032-.145-.033-.143-.034-.141-.034-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.041-.126-.041-.124-.041-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.048-.105-.048-.102-.048-.1-.05-.097-.049-.095-.051-.093-.051-.09-.052-.087-.052-.085-.053-.083-.053-.08-.054-.077-.054v4.153zm8.74-8.179l-.257.004-.254.005-.25.008-.247.011-.244.012-.241.014-.237.016-.233.018-.231.021-.226.022-.224.023-.22.026-.216.027-.212.028-.21.031-.205.032-.202.033-.198.034-.194.036-.191.038-.187.038-.183.04-.179.041-.175.042-.172.043-.168.043-.163.045-.16.046-.155.046-.152.048-.148.048-.143.048-.139.049-.136.05-.131.05-.126.051-.123.051-.118.051-.114.052-.11.052-.106.052-.101.052-.096.052-.092.052-.088.052-.083.052-.079.052-.074.051-.07.052-.065.051-.06.05-.056.05-.051.05-.023.025-.023.024-.021.024-.02.025-.019.024-.018.024-.017.023-.015.024-.014.023-.013.023-.012.023-.01.023-.01.022-.008.022-.006.023-.006.021-.004.022-.004.021-.001.021-.001.021.001.021.001.021.004.021.004.022.006.021.006.023.008.022.01.022.01.023.012.023.013.023.014.023.015.024.017.023.018.024.019.024.02.025.021.024.023.024.023.025.051.05.056.05.06.05.065.051.07.052.074.051.079.052.083.052.088.052.092.052.096.052.101.052.106.052.11.052.114.052.118.051.123.051.126.051.131.05.136.05.139.049.143.048.148.048.152.048.155.046.16.046.163.045.168.043.172.043.175.042.179.041.183.04.187.038.191.038.194.036.198.034.202.033.205.032.21.031.212.028.216.027.22.026.224.023.226.022.231.021.233.018.237.016.241.014.244.012.247.011.25.008.254.005.257.004.26.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.022.224-.023.22-.026.216-.027.212-.028.21-.031.205-.032.202-.033.198-.034.194-.036.191-.038.187-.038.183-.04.179-.041.175-.042.172-.043.168-.043.163-.045.16-.046.155-.046.152-.048.148-.048.143-.048.139-.049.136-.05.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.05.051-.05.023-.025.023-.024.021-.024.02-.025.019-.024.018-.024.017-.023.015-.024.014-.023.013-.023.012-.023.01-.023.01-.022.008-.022.006-.023.006-.021.004-.022.004-.021.001-.021.001-.021-.001-.021-.001-.021-.004-.021-.004-.022-.006-.021-.006-.023-.008-.022-.01-.022-.01-.023-.012-.023-.013-.023-.014-.023-.015-.024-.017-.023-.018-.024-.019-.024-.02-.025-.021-.024-.023-.024-.023-.025-.051-.05-.056-.05-.06-.05-.065-.051-.07-.052-.074-.051-.079-.052-.083-.052-.088-.052-.092-.052-.096-.052-.101-.052-.106-.052-.11-.052-.114-.052-.118-.051-.123-.051-.126-.051-.131-.05-.136-.05-.139-.049-.143-.048-.148-.048-.152-.048-.155-.046-.16-.046-.163-.045-.168-.043-.172-.043-.175-.042-.179-.041-.183-.04-.187-.038-.191-.038-.194-.036-.198-.034-.202-.033-.205-.032-.21-.031-.212-.028-.216-.027-.22-.026-.224-.023-.226-.022-.231-.021-.233-.018-.237-.016-.241-.014-.244-.012-.247-.011-.25-.008-.254-.005-.257-.004-.26-.001-.26.001z" ); -}, "insertDatabaseIcon"), YHt = /* @__PURE__ */ x(function(t) { +}, "insertDatabaseIcon"), UHt = /* @__PURE__ */ x(function(t) { t.append("defs").append("symbol").attr("id", "computer").attr("width", "24").attr("height", "24").append("path").attr("transform", "scale(.5)").attr( "d", "M2 2v13h20v-13h-20zm18 11h-16v-9h16v9zm-10.228 6l.466-1h3.524l.467 1h-4.457zm14.228 3h-24l2-6h2.104l-1.33 4h18.45l-1.297-4h2.073l2 6zm-5-10h-14v-7h14v7z" ); -}, "insertComputerIcon"), QHt = /* @__PURE__ */ x(function(t) { +}, "insertComputerIcon"), qHt = /* @__PURE__ */ x(function(t) { t.append("defs").append("symbol").attr("id", "clock").attr("width", "24").attr("height", "24").append("path").attr("transform", "scale(.5)").attr( "d", "M12 2c5.514 0 10 4.486 10 10s-4.486 10-10 10-10-4.486-10-10 4.486-10 10-10zm0-2c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm5.848 12.459c.202.038.202.333.001.372-1.907.361-6.045 1.111-6.547 1.111-.719 0-1.301-.582-1.301-1.301 0-.512.77-5.447 1.125-7.445.034-.192.312-.181.343.014l.985 6.238 5.394 1.011z" ); -}, "insertClockIcon"), WHt = /* @__PURE__ */ x(function(t) { +}, "insertClockIcon"), YHt = /* @__PURE__ */ x(function(t) { t.append("defs").append("marker").attr("id", "arrowhead").attr("refX", 7.9).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 12).attr("markerHeight", 12).attr("orient", "auto-start-reverse").append("path").attr("d", "M -1 0 L 10 5 L 0 10 z"); -}, "insertArrowHead"), GHt = /* @__PURE__ */ x(function(t) { +}, "insertArrowHead"), QHt = /* @__PURE__ */ x(function(t) { t.append("defs").append("marker").attr("id", "filled-head").attr("refX", 15.5).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L14,7 L9,1 Z"); -}, "insertArrowFilledHead"), HHt = /* @__PURE__ */ x(function(t) { +}, "insertArrowFilledHead"), WHt = /* @__PURE__ */ x(function(t) { t.append("defs").append("marker").attr("id", "sequencenumber").attr("refX", 15).attr("refY", 15).attr("markerWidth", 60).attr("markerHeight", 40).attr("orient", "auto").append("circle").attr("cx", 15).attr("cy", 15).attr("r", 6); -}, "insertSequenceNumber"), XHt = /* @__PURE__ */ x(function(t) { +}, "insertSequenceNumber"), GHt = /* @__PURE__ */ x(function(t) { t.append("defs").append("marker").attr("id", "crosshead").attr("markerWidth", 15).attr("markerHeight", 8).attr("orient", "auto").attr("refX", 4).attr("refY", 4.5).append("path").attr("fill", "none").attr("stroke", "#000000").style("stroke-dasharray", "0, 0").attr("stroke-width", "1pt").attr("d", "M 1,2 L 6,7 M 6,2 L 1,7"); -}, "insertArrowCrossHead"), Tge = /* @__PURE__ */ x(function() { +}, "insertArrowCrossHead"), kge = /* @__PURE__ */ x(function() { return { x: 0, y: 0, @@ -88898,7 +88842,7 @@ var yge = /* @__PURE__ */ x(function(t, e) { tspan: !0, valign: void 0 }; -}, "getTextObj"), ZHt = /* @__PURE__ */ x(function() { +}, "getTextObj"), HHt = /* @__PURE__ */ x(function() { return { x: 0, y: 0, @@ -88910,7 +88854,7 @@ var yge = /* @__PURE__ */ x(function(t, e) { rx: 0, ry: 0 }; -}, "getNoteRect"), bP = /* @__PURE__ */ function() { +}, "getNoteRect"), mP = /* @__PURE__ */ function() { function t(s, a, o, l, u, h, f) { const d = a.append("text").attr("x", o + u / 2).attr("y", l + h / 2 + 5).style("text-anchor", "middle").text(s); i(d, f); @@ -88941,7 +88885,7 @@ var yge = /* @__PURE__ */ x(function(t, e) { return x(i, "_setTextAttrs"), function(s, a = !1) { return a ? n : s.textPlacement === "fo" ? r : s.textPlacement === "old" ? t : e; }; -}(), jHt = /* @__PURE__ */ function() { +}(), XHt = /* @__PURE__ */ function() { function t(i, s, a, o, l, u, h) { const f = s.append("text").attr("x", a).attr("y", o).style("text-anchor", "start").text(i); n(f, h); @@ -88968,26 +88912,26 @@ var yge = /* @__PURE__ */ x(function(t, e) { return i.textPlacement === "fo" ? r : i.textPlacement === "old" ? t : e; }; }(), Hn = { - drawRect: yP, + drawRect: gP, drawText: S1, - drawLabel: Oge, - drawActor: BHt, - drawBox: FHt, - drawPopup: NHt, - anchorElement: zHt, - drawActivation: VHt, - drawLoop: UHt, - drawBackgroundRect: Sge, - insertArrowHead: WHt, - insertArrowFilledHead: GHt, - insertSequenceNumber: HHt, - insertArrowCrossHead: XHt, - insertDatabaseIcon: qHt, - insertComputerIcon: YHt, - insertClockIcon: QHt, - getTextObj: Tge, - getNoteRect: ZHt, - fixLifeLineHeights: kge, + drawLabel: xge, + drawActor: PHt, + drawBox: $Ht, + drawPopup: MHt, + anchorElement: BHt, + drawActivation: FHt, + drawLoop: zHt, + drawBackgroundRect: Oge, + insertArrowHead: YHt, + insertArrowFilledHead: QHt, + insertSequenceNumber: WHt, + insertArrowCrossHead: GHt, + insertDatabaseIcon: VHt, + insertComputerIcon: UHt, + insertClockIcon: qHt, + getTextObj: kge, + getNoteRect: HHt, + fixLifeLineHeights: wge, sanitizeUrl: Uf }, Ie = {}, nt = { data: { @@ -89048,7 +88992,7 @@ var yge = /* @__PURE__ */ x(function(t, e) { stopx: void 0, starty: void 0, stopy: void 0 - }, this.verticalPos = 0, _ge(be()); + }, this.verticalPos = 0, Cge(be()); }, "init"), updateVal: /* @__PURE__ */ x(function(t, e, r, n) { t[e] === void 0 ? t[e] = r : t[e] = n(r, t[e]); @@ -89070,7 +89014,7 @@ var yge = /* @__PURE__ */ x(function(t, e) { this.updateVal(nt.data, "startx", i, Math.min), this.updateVal(nt.data, "starty", a, Math.min), this.updateVal(nt.data, "stopx", s, Math.max), this.updateVal(nt.data, "stopy", o, Math.max), this.updateBounds(i, a, s, o); }, "insert"), newActivation: /* @__PURE__ */ x(function(t, e, r) { - const n = r.get(t.from), i = PC(t.from).length || 0, s = n.x + n.width / 2 + (i - 1) * Ie.activationWidth / 2; + const n = r.get(t.from), i = NC(t.from).length || 0, s = n.x + n.width / 2 + (i - 1) * Ie.activationWidth / 2; this.activations.push({ startx: s, starty: this.verticalPos + 2, @@ -89127,13 +89071,13 @@ var yge = /* @__PURE__ */ x(function(t, e) { getBounds: /* @__PURE__ */ x(function() { return { bounds: this.data, models: this.models }; }, "getBounds") -}, KHt = /* @__PURE__ */ x(async function(t, e) { +}, ZHt = /* @__PURE__ */ x(async function(t, e) { nt.bumpVerticalPos(Ie.boxMargin), e.height = Ie.boxMargin, e.starty = nt.getVerticalPos(); const r = ep(); r.x = e.startx, r.y = e.starty, r.width = e.width || Ie.width, r.class = "note"; - const n = t.append("g"), i = Hn.drawRect(n, r), s = fI(); + const n = t.append("g"), i = Hn.drawRect(n, r), s = cI(); s.x = e.startx, s.y = e.starty, s.width = r.width, s.dy = "1em", s.text = e.message, s.class = "noteText", s.fontFamily = Ie.noteFontFamily, s.fontSize = Ie.noteFontSize, s.fontWeight = Ie.noteFontWeight, s.anchor = Ie.noteAlign, s.textMargin = Ie.noteMargin, s.valign = "center"; - const a = ca(s.text) ? await Xk(n, s) : S1(n, s), o = Math.round( + const a = ca(s.text) ? await Hk(n, s) : S1(n, s), o = Math.round( a.map((l) => (l._groups || l)[0][0].getBBox().height).reduce((l, u) => l + u) ); i.attr("height", o + 2 * Ie.noteMargin), e.height += o + 2 * Ie.noteMargin, nt.bumpVerticalPos(o + 2 * Ie.noteMargin), e.stopy = e.starty + o + 2 * Ie.noteMargin, e.stopx = e.startx + r.width, nt.insert(e.startx, e.starty, e.stopx, e.stopy), nt.models.addNote(e); @@ -89145,12 +89089,12 @@ var yge = /* @__PURE__ */ x(function(t, e) { fontFamily: t.noteFontFamily, fontSize: t.noteFontSize, fontWeight: t.noteFontWeight -}), "noteFont"), H9 = /* @__PURE__ */ x((t) => ({ +}), "noteFont"), Q9 = /* @__PURE__ */ x((t) => ({ fontFamily: t.actorFontFamily, fontSize: t.actorFontSize, fontWeight: t.actorFontWeight }), "actorFont"); -async function Cge(t, e) { +async function Sge(t, e) { nt.bumpVerticalPos(10); const { startx: r, stopx: n, message: i } = e, s = at.splitBreaks(i).length, a = ca(i), o = a ? await ox(i, be()) : sr.calculateTextDimensions(i, S0(Ie)); if (!a) { @@ -89172,10 +89116,10 @@ async function Cge(t, e) { u += Ie.boxMargin, l = nt.getVerticalPos() + u, nt.insert(r, l - 10, n, l); return nt.bumpVerticalPos(u), e.height += u, e.stopy = e.starty + e.height, nt.insert(e.fromBounds, e.starty, e.toBounds, e.stopy), l; } -x(Cge, "boundMessage"); -var JHt = /* @__PURE__ */ x(async function(t, e, r, n) { - const { startx: i, stopx: s, starty: a, message: o, type: l, sequenceIndex: u, sequenceVisible: h } = e, f = sr.calculateTextDimensions(o, S0(Ie)), d = fI(); - d.x = i, d.y = a + 10, d.width = s - i, d.class = "messageText", d.dy = "1em", d.text = o, d.fontFamily = Ie.messageFontFamily, d.fontSize = Ie.messageFontSize, d.fontWeight = Ie.messageFontWeight, d.anchor = Ie.messageAlign, d.valign = "center", d.textMargin = Ie.wrapPadding, d.tspan = !1, ca(d.text) ? await Xk(t, d, { startx: i, stopx: s, starty: r }) : S1(t, d); +x(Sge, "boundMessage"); +var jHt = /* @__PURE__ */ x(async function(t, e, r, n) { + const { startx: i, stopx: s, starty: a, message: o, type: l, sequenceIndex: u, sequenceVisible: h } = e, f = sr.calculateTextDimensions(o, S0(Ie)), d = cI(); + d.x = i, d.y = a + 10, d.width = s - i, d.class = "messageText", d.dy = "1em", d.text = o, d.fontFamily = Ie.messageFontFamily, d.fontSize = Ie.messageFontSize, d.fontWeight = Ie.messageFontWeight, d.anchor = Ie.messageAlign, d.valign = "center", d.textMargin = Ie.wrapPadding, d.tspan = !1, ca(d.text) ? await Hk(t, d, { startx: i, stopx: s, starty: r }) : S1(t, d); const p = f.width; let g; i === s ? Ie.rightAngles ? g = t.append("path").attr( @@ -89187,14 +89131,14 @@ var JHt = /* @__PURE__ */ x(async function(t, e, r, n) { ) : (g = t.append("line"), g.attr("x1", i), g.attr("y1", r), g.attr("x2", s), g.attr("y2", r)), l === n.db.LINETYPE.DOTTED || l === n.db.LINETYPE.DOTTED_CROSS || l === n.db.LINETYPE.DOTTED_POINT || l === n.db.LINETYPE.DOTTED_OPEN || l === n.db.LINETYPE.BIDIRECTIONAL_DOTTED ? (g.style("stroke-dasharray", "3, 3"), g.attr("class", "messageLine1")) : g.attr("class", "messageLine0"); let m = ""; Ie.arrowMarkerAbsolute && (m = window.location.protocol + "//" + window.location.host + window.location.pathname + window.location.search, m = m.replace(/\(/g, "\\("), m = m.replace(/\)/g, "\\)")), g.attr("stroke-width", 2), g.attr("stroke", "none"), g.style("fill", "none"), (l === n.db.LINETYPE.SOLID || l === n.db.LINETYPE.DOTTED) && g.attr("marker-end", "url(" + m + "#arrowhead)"), (l === n.db.LINETYPE.BIDIRECTIONAL_SOLID || l === n.db.LINETYPE.BIDIRECTIONAL_DOTTED) && (g.attr("marker-start", "url(" + m + "#arrowhead)"), g.attr("marker-end", "url(" + m + "#arrowhead)")), (l === n.db.LINETYPE.SOLID_POINT || l === n.db.LINETYPE.DOTTED_POINT) && g.attr("marker-end", "url(" + m + "#filled-head)"), (l === n.db.LINETYPE.SOLID_CROSS || l === n.db.LINETYPE.DOTTED_CROSS) && g.attr("marker-end", "url(" + m + "#crosshead)"), (h || Ie.showSequenceNumbers) && (g.attr("marker-start", "url(" + m + "#sequencenumber)"), t.append("text").attr("x", i).attr("y", r + 4).attr("font-family", "sans-serif").attr("font-size", "12px").attr("text-anchor", "middle").attr("class", "sequenceNumber").text(u)); -}, "drawMessage"), eXt = /* @__PURE__ */ x(function(t, e, r, n, i, s, a) { +}, "drawMessage"), KHt = /* @__PURE__ */ x(function(t, e, r, n, i, s, a) { let o = 0, l = 0, u, h = 0; for (const f of n) { const d = e.get(f), p = d.box; u && u != p && (a || nt.models.addBox(u), l += Ie.boxMargin + u.margin), p && p != u && (a || (p.x = o + l, p.y = i), l += p.margin), d.width = d.width || Ie.width, d.height = at.getMax(d.height || Ie.height, Ie.height), d.margin = d.margin || Ie.actorMargin, h = at.getMax(h, d.height), r.get(d.name) && (l += d.width / 2), d.x = o + l, d.starty = nt.getVerticalPos(), nt.insert(d.x, i, d.x + d.width, d.height), o += d.width + l, d.box && (d.box.width = o + p.margin - d.box.x), l = d.margin, u = d.box, nt.models.addActor(d); } u && !a && nt.models.addBox(u), nt.bumpVerticalPos(h); -}, "addActorRenderingData"), X9 = /* @__PURE__ */ x(async function(t, e, r, n) { +}, "addActorRenderingData"), W9 = /* @__PURE__ */ x(async function(t, e, r, n) { if (n) { let i = 0; nt.bumpVerticalPos(Ie.boxMargin * 2); @@ -89210,10 +89154,10 @@ var JHt = /* @__PURE__ */ x(async function(t, e, r, n) { const s = e.get(i); await Hn.drawActor(t, s, Ie, !1); } -}, "drawActors"), Ege = /* @__PURE__ */ x(function(t, e, r, n) { +}, "drawActors"), Tge = /* @__PURE__ */ x(function(t, e, r, n) { let i = 0, s = 0; for (const a of r) { - const o = e.get(a), l = rXt(o), u = Hn.drawPopup( + const o = e.get(a), l = eXt(o), u = Hn.drawPopup( t, o, l, @@ -89224,14 +89168,14 @@ var JHt = /* @__PURE__ */ x(async function(t, e, r, n) { u.height > i && (i = u.height), u.width + o.x > s && (s = u.width + o.x); } return { maxHeight: i, maxWidth: s }; -}, "drawActorsPopup"), _ge = /* @__PURE__ */ x(function(t) { +}, "drawActorsPopup"), Cge = /* @__PURE__ */ x(function(t) { Ci(Ie, t), t.fontFamily && (Ie.actorFontFamily = Ie.noteFontFamily = Ie.messageFontFamily = t.fontFamily), t.fontSize && (Ie.actorFontSize = Ie.noteFontSize = Ie.messageFontSize = t.fontSize), t.fontWeight && (Ie.actorFontWeight = Ie.noteFontWeight = Ie.messageFontWeight = t.fontWeight); -}, "setConf"), PC = /* @__PURE__ */ x(function(t) { +}, "setConf"), NC = /* @__PURE__ */ x(function(t) { return nt.activations.filter(function(e) { return e.actor === t; }); -}, "actorActivations"), hH = /* @__PURE__ */ x(function(t, e) { - const r = e.get(t), n = PC(t), i = n.reduce( +}, "actorActivations"), lH = /* @__PURE__ */ x(function(t, e) { + const r = e.get(t), n = NC(t), i = n.reduce( function(a, o) { return at.getMin(a, o.startx); }, @@ -89256,7 +89200,7 @@ function ll(t, e, r, n, i) { i(e), nt.bumpVerticalPos(s); } x(ll, "adjustLoopHeightForWrap"); -function Age(t, e, r, n, i, s, a) { +function Ege(t, e, r, n, i, s, a) { function o(u, h) { u.x < i.get(t.from).x ? (nt.insert( e.stopx - h, @@ -89303,8 +89247,8 @@ function Age(t, e, r, n, i, s, a) { u.stopy = r - u.height / 2, nt.bumpVerticalPos(u.height / 2); } } -x(Age, "adjustCreatedDestroyedData"); -var tXt = /* @__PURE__ */ x(async function(t, e, r, n) { +x(Ege, "adjustCreatedDestroyedData"); +var JHt = /* @__PURE__ */ x(async function(t, e, r, n) { const { securityLevel: i, sequence: s } = be(); Ie = s; let a; @@ -89313,15 +89257,15 @@ var tXt = /* @__PURE__ */ x(async function(t, e, r, n) { nt.init(), X.debug(n.db); const u = i === "sandbox" ? o.select(`[id="${e}"]`) : et(`[id="${e}"]`), h = n.db.getActors(), f = n.db.getCreatedActors(), d = n.db.getDestroyedActors(), p = n.db.getBoxes(); let g = n.db.getActorKeys(); - const m = n.db.getMessages(), v = n.db.getDiagramTitle(), y = n.db.hasAtLeastOneBox(), b = n.db.hasAtLeastOneBoxWithTitle(), w = await Lge(h, m, n); - if (Ie.height = await Rge(h, w, p), Hn.insertComputerIcon(u), Hn.insertDatabaseIcon(u), Hn.insertClockIcon(u), y && (nt.bumpVerticalPos(Ie.boxMargin), b && nt.bumpVerticalPos(p[0].textMaxHeight)), Ie.hideUnusedParticipants === !0) { + const m = n.db.getMessages(), v = n.db.getDiagramTitle(), y = n.db.hasAtLeastOneBox(), b = n.db.hasAtLeastOneBoxWithTitle(), w = await _ge(h, m, n); + if (Ie.height = await Age(h, w, p), Hn.insertComputerIcon(u), Hn.insertDatabaseIcon(u), Hn.insertClockIcon(u), y && (nt.bumpVerticalPos(Ie.boxMargin), b && nt.bumpVerticalPos(p[0].textMaxHeight)), Ie.hideUnusedParticipants === !0) { const D = /* @__PURE__ */ new Set(); m.forEach((P) => { D.add(P.from), D.add(P.to); }), g = g.filter((P) => D.has(P)); } - eXt(u, h, f, g, 0, m, !1); - const O = await sXt(m, h, w, n); + KHt(u, h, f, g, 0, m, !1); + const O = await nXt(m, h, w, n); Hn.insertArrowHead(u), Hn.insertArrowCrossHead(u), Hn.insertArrowFilledHead(u), Hn.insertSequenceNumber(u); function S(D, P) { const F = nt.endActivation(D); @@ -89330,7 +89274,7 @@ var tXt = /* @__PURE__ */ x(async function(t, e, r, n) { F, P, Ie, - PC(D.from).length + NC(D.from).length ), nt.insert(F.startx, P - 10, F.stopx, P); } x(S, "activeEnd"); @@ -89341,7 +89285,7 @@ var tXt = /* @__PURE__ */ x(async function(t, e, r, n) { let P, F, B; switch (D.type) { case n.db.LINETYPE.NOTE: - nt.resetVerticalPos(), F = D.noteModel, await KHt(u, F); + nt.resetVerticalPos(), F = D.noteModel, await ZHt(u, F); break; case n.db.LINETYPE.ACTIVE_START: nt.newActivation(D, u, h); @@ -89467,8 +89411,8 @@ var tXt = /* @__PURE__ */ x(async function(t, e, r, n) { default: try { B = D.msgModel, B.starty = nt.getVerticalPos(), B.sequenceIndex = C, B.sequenceVisible = n.db.showSequenceNumbers(); - const V = await Cge(u, B); - Age( + const V = await Sge(u, B); + Ege( D, B, V, @@ -89494,14 +89438,14 @@ var tXt = /* @__PURE__ */ x(async function(t, e, r, n) { n.db.LINETYPE.BIDIRECTIONAL_DOTTED ].includes(D.type) && (C = C + T), R++; } - X.debug("createdActors", f), X.debug("destroyedActors", d), await X9(u, h, g, !1); + X.debug("createdActors", f), X.debug("destroyedActors", d), await W9(u, h, g, !1); for (const D of L) - await JHt(u, D.messageModel, D.lineStartY, n); - Ie.mirrorActors && await X9(u, h, g, !0), E.forEach((D) => Hn.drawBackgroundRect(u, D)), kge(u, h, g, Ie); + await jHt(u, D.messageModel, D.lineStartY, n); + Ie.mirrorActors && await W9(u, h, g, !0), E.forEach((D) => Hn.drawBackgroundRect(u, D)), wge(u, h, g, Ie); for (const D of nt.models.boxes) D.height = nt.getVerticalPos() - D.y, nt.insert(D.x, D.y, D.x + D.width, D.height), D.startx = D.x, D.starty = D.y, D.stopx = D.startx + D.width, D.stopy = D.starty + D.height, D.stroke = "rgb(0,0,0, 0.5)", Hn.drawBox(u, D, Ie); y && nt.bumpVerticalPos(Ie.boxMargin); - const _ = Ege(u, h, g, l), { bounds: A } = nt.getBounds(); + const _ = Tge(u, h, g, l), { bounds: A } = nt.getBounds(); A.startx === void 0 && (A.startx = 0), A.starty === void 0 && (A.starty = 0), A.stopx === void 0 && (A.stopx = 0), A.stopy === void 0 && (A.stopy = 0); let $ = A.stopy - A.starty; $ < _.maxHeight && ($ = _.maxHeight); @@ -89517,7 +89461,7 @@ var tXt = /* @__PURE__ */ x(async function(t, e, r, n) { A.startx - Ie.diagramMarginX + " -" + (Ie.diagramMarginY + I) + " " + M + " " + (k + I) ), X.debug("models:", nt.models); }, "draw"); -async function Lge(t, e, r) { +async function _ge(t, e, r) { const n = {}; for (const i of e) if (t.get(i.to) && t.get(i.from)) { @@ -89553,26 +89497,26 @@ async function Lge(t, e, r) { } return X.debug("maxMessageWidthPerActor:", n), n; } -x(Lge, "getMaxMessageWidthPerActor"); -var rXt = /* @__PURE__ */ x(function(t) { +x(_ge, "getMaxMessageWidthPerActor"); +var eXt = /* @__PURE__ */ x(function(t) { let e = 0; - const r = H9(Ie); + const r = Q9(Ie); for (const n in t.links) { const s = sr.calculateTextDimensions(n, r).width + 2 * Ie.wrapPadding + 2 * Ie.boxMargin; e < s && (e = s); } return e; }, "getRequiredPopupWidth"); -async function Rge(t, e, r) { +async function Age(t, e, r) { let n = 0; for (const s of t.keys()) { const a = t.get(s); a.wrap && (a.description = sr.wrapLabel( a.description, Ie.width - 2 * Ie.wrapPadding, - H9(Ie) + Q9(Ie) )); - const o = ca(a.description) ? await ox(a.description, be()) : sr.calculateTextDimensions(a.description, H9(Ie)); + const o = ca(a.description) ? await ox(a.description, be()) : sr.calculateTextDimensions(a.description, Q9(Ie)); a.width = a.wrap ? Ie.width : at.getMax(Ie.width, o.width + 2 * Ie.wrapPadding), a.height = a.wrap ? at.getMax(o.height, Ie.height) : Ie.height, n = at.getMax(n, a.height); } for (const s in e) { @@ -89602,8 +89546,8 @@ async function Rge(t, e, r) { } }), r.forEach((s) => s.textMaxHeight = i), at.getMax(n, Ie.height); } -x(Rge, "calculateActorMargins"); -var nXt = /* @__PURE__ */ x(async function(t, e, r) { +x(Age, "calculateActorMargins"); +var tXt = /* @__PURE__ */ x(async function(t, e, r) { const n = e.get(t.from), i = e.get(t.to), s = n.x, a = i.x, o = t.wrap && t.message; let l = ca(t.message) ? await ox(t.message, be()) : sr.calculateTextDimensions( o ? sr.wrapLabel(t.message, Ie.width, Ap(Ie)) : t.message, @@ -89634,7 +89578,7 @@ var nXt = /* @__PURE__ */ x(async function(t, e, r) { )), X.debug( `NM:[${u.startx},${u.stopx},${u.starty},${u.stopy}:${u.width},${u.height}=${t.message}]` ), u; -}, "buildNoteModel"), iXt = /* @__PURE__ */ x(function(t, e, r) { +}, "buildNoteModel"), rXt = /* @__PURE__ */ x(function(t, e, r) { if (![ r.db.LINETYPE.SOLID_OPEN, r.db.LINETYPE.DOTTED_OPEN, @@ -89648,7 +89592,7 @@ var nXt = /* @__PURE__ */ x(async function(t, e, r) { r.db.LINETYPE.BIDIRECTIONAL_DOTTED ].includes(t.type)) return {}; - const [n, i] = hH(t.from, e), [s, a] = hH(t.to, e), o = n <= s; + const [n, i] = lH(t.from, e), [s, a] = lH(t.to, e), o = n <= s; let l = o ? i : n, u = o ? s : a; const h = Math.abs(s - a) > 2, f = /* @__PURE__ */ x((m) => o ? -m : m, "adjustValue"); t.from === t.to ? u = l : (t.activate && !h && (u += f(Ie.activationWidth / 2 - 1)), [r.db.LINETYPE.SOLID_OPEN, r.db.LINETYPE.DOTTED_OPEN].includes(t.type) || (u += f(3)), [r.db.LINETYPE.BIDIRECTIONAL_SOLID, r.db.LINETYPE.BIDIRECTIONAL_DOTTED].includes( @@ -89678,7 +89622,7 @@ var nXt = /* @__PURE__ */ x(async function(t, e, r) { fromBounds: Math.min.apply(null, d), toBounds: Math.max.apply(null, d) }; -}, "buildMessageModel"), sXt = /* @__PURE__ */ x(async function(t, e, r, n) { +}, "buildMessageModel"), nXt = /* @__PURE__ */ x(async function(t, e, r, n) { const i = {}, s = []; let a, o, l; for (const u of t) { @@ -89713,7 +89657,7 @@ var nXt = /* @__PURE__ */ x(async function(t, e, r) { break; case n.db.LINETYPE.ACTIVE_START: { - const f = e.get(u.from ? u.from : u.to.actor), d = PC(u.from ? u.from : u.to.actor).length, p = f.x + f.width / 2 + (d - 1) * Ie.activationWidth / 2, g = { + const f = e.get(u.from ? u.from : u.to.actor), d = NC(u.from ? u.from : u.to.actor).length, p = f.x + f.width / 2 + (d - 1) * Ie.activationWidth / 2, g = { startx: p, stopx: p + Ie.activationWidth, actor: u.from, @@ -89729,9 +89673,9 @@ var nXt = /* @__PURE__ */ x(async function(t, e, r) { } break; } - u.placement !== void 0 ? (o = await nXt(u, e, n), u.noteModel = o, s.forEach((f) => { + u.placement !== void 0 ? (o = await tXt(u, e, n), u.noteModel = o, s.forEach((f) => { a = f, a.from = at.getMin(a.from, o.startx), a.to = at.getMax(a.to, o.startx + o.width), a.width = at.getMax(a.width, Math.abs(a.from - a.to)) - Ie.labelBoxWidth; - })) : (l = iXt(u, e, n), u.msgModel = l, l.startx && l.stopx && s.length > 0 && s.forEach((f) => { + })) : (l = rXt(u, e, n), u.msgModel = l, l.startx && l.stopx && s.length > 0 && s.forEach((f) => { if (a = f, l.startx === l.stopx) { const d = e.get(u.from), p = e.get(u.to); a.from = at.getMin( @@ -89748,26 +89692,26 @@ var nXt = /* @__PURE__ */ x(async function(t, e, r) { })); } return nt.activations = [], X.debug("Loop type widths:", i), i; -}, "calculateLoopBounds"), aXt = { +}, "calculateLoopBounds"), iXt = { bounds: nt, - drawActors: X9, - drawActorsPopup: Ege, - setConf: _ge, - draw: tXt -}, oXt = { - parser: lHt, - db: cH, - renderer: aXt, - styles: MHt, + drawActors: W9, + drawActorsPopup: Tge, + setConf: Cge, + draw: JHt +}, sXt = { + parser: aHt, + db: aH, + renderer: iXt, + styles: LHt, init: /* @__PURE__ */ x(({ wrap: t }) => { - cH.setWrap(t); + aH.setWrap(t); }, "init") }; -const lXt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +const aXt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - diagram: oXt + diagram: sXt }, Symbol.toStringTag, { value: "Module" })); -var Z9 = function() { +var G9 = function() { var t = /* @__PURE__ */ x(function(Qe, De, he, H) { for (he = he || {}, H = Qe.length; H--; he[Qe[H]] = De) ; @@ -90430,8 +90374,8 @@ Expecting ` + kt.join(", ") + ", got '" + (this.terminals_[ut] || ut) + "'" : st } return x(Ge, "Parser"), Ge.prototype = Ae, Ae.Parser = Ge, new Ge(); }(); -Z9.parser = Z9; -var Mge = Z9, fH = ["#", "+", "~", "-", ""], Vb, dH = (Vb = class { +G9.parser = G9; +var Lge = G9, cH = ["#", "+", "~", "-", ""], Vb, uH = (Vb = class { constructor(e, r) { this.memberType = r, this.visibility = "", this.classifier = ""; const n = ni(e, be()); @@ -90452,14 +90396,14 @@ var Mge = Z9, fH = ["#", "+", "~", "-", ""], Vb, dH = (Vb = class { const i = /([#+~-])?(.+)\((.*)\)([\s$*])?(.*)([$*])?/.exec(e); if (i) { const s = i[1] ? i[1].trim() : ""; - if (fH.includes(s) && (this.visibility = s), this.id = i[2].trim(), this.parameters = i[3] ? i[3].trim() : "", r = i[4] ? i[4].trim() : "", this.returnType = i[5] ? i[5].trim() : "", r === "") { + if (cH.includes(s) && (this.visibility = s), this.id = i[2].trim(), this.parameters = i[3] ? i[3].trim() : "", r = i[4] ? i[4].trim() : "", this.returnType = i[5] ? i[5].trim() : "", r === "") { const a = this.returnType.substring(this.returnType.length - 1); /[$*]/.exec(a) && (r = a, this.returnType = this.returnType.substring(0, this.returnType.length - 1)); } } } else { const n = e.length, i = e.substring(0, 1), s = e.substring(n - 1); - fH.includes(i) && (this.visibility = i), /[$*]/.exec(s) && (r = s), this.id = e.substring( + cH.includes(i) && (this.visibility = i), /[$*]/.exec(s) && (r = s), this.id = e.substring( this.visibility === "" ? 0 : 1, r === "" ? n : n - 1 ); @@ -90478,7 +90422,7 @@ var Mge = Z9, fH = ["#", "+", "~", "-", ""], Vb, dH = (Vb = class { } }, (() => { x(Vb, "ClassMember"); -})(), Vb), $C = "classId-", xP = [], Ni = /* @__PURE__ */ new Map(), Zk = [], pH = 0, Ju = /* @__PURE__ */ new Map(), j9 = 0, z2 = [], T0 = /* @__PURE__ */ x((t) => at.sanitizeText(t, be()), "sanitizeText"), C0 = /* @__PURE__ */ x(function(t) { +})(), Vb), IC = "classId-", vP = [], Ni = /* @__PURE__ */ new Map(), Xk = [], hH = 0, Ju = /* @__PURE__ */ new Map(), H9 = 0, z2 = [], T0 = /* @__PURE__ */ x((t) => at.sanitizeText(t, be()), "sanitizeText"), C0 = /* @__PURE__ */ x(function(t) { const e = at.sanitizeText(t, be()); let r = "", n = e; if (e.indexOf("~") > 0) { @@ -90486,12 +90430,12 @@ var Mge = Z9, fH = ["#", "+", "~", "-", ""], Vb, dH = (Vb = class { n = T0(i[0]), r = T0(i[1]); } return { className: n, type: r }; -}, "splitClassNameAndType"), cXt = /* @__PURE__ */ x(function(t, e) { +}, "splitClassNameAndType"), oXt = /* @__PURE__ */ x(function(t, e) { const r = at.sanitizeText(t, be()); e && (e = T0(e)); const { className: n } = C0(r); Ni.get(n).label = e; -}, "setClassLabel"), jk = /* @__PURE__ */ x(function(t) { +}, "setClassLabel"), Zk = /* @__PURE__ */ x(function(t) { const e = at.sanitizeText(t, be()), { className: r, type: n } = C0(e); if (Ni.has(r)) return; @@ -90505,78 +90449,78 @@ var Mge = Z9, fH = ["#", "+", "~", "-", ""], Vb, dH = (Vb = class { members: [], annotations: [], styles: [], - domId: $C + i + "-" + pH - }), pH++; -}, "addClass"), Dge = /* @__PURE__ */ x(function(t) { + domId: IC + i + "-" + hH + }), hH++; +}, "addClass"), Rge = /* @__PURE__ */ x(function(t) { const e = at.sanitizeText(t, be()); if (Ni.has(e)) return Ni.get(e).domId; throw new Error("Class not found: " + e); -}, "lookUpDomId"), uXt = /* @__PURE__ */ x(function() { - xP = [], Ni = /* @__PURE__ */ new Map(), Zk = [], z2 = [], z2.push(Ige), Ju = /* @__PURE__ */ new Map(), j9 = 0, OP = "TB", Xi(); -}, "clear"), hXt = /* @__PURE__ */ x(function(t) { +}, "lookUpDomId"), lXt = /* @__PURE__ */ x(function() { + vP = [], Ni = /* @__PURE__ */ new Map(), Xk = [], z2 = [], z2.push(Dge), Ju = /* @__PURE__ */ new Map(), H9 = 0, bP = "TB", Xi(); +}, "clear"), cXt = /* @__PURE__ */ x(function(t) { return Ni.get(t); -}, "getClass"), fXt = /* @__PURE__ */ x(function() { +}, "getClass"), uXt = /* @__PURE__ */ x(function() { return Ni; -}, "getClasses"), dXt = /* @__PURE__ */ x(function() { - return xP; -}, "getRelations"), pXt = /* @__PURE__ */ x(function() { - return Zk; -}, "getNotes"), gXt = /* @__PURE__ */ x(function(t) { - X.debug("Adding relation: " + JSON.stringify(t)), jk(t.id1), jk(t.id2), t.id1 = C0(t.id1).className, t.id2 = C0(t.id2).className, t.relationTitle1 = at.sanitizeText(t.relationTitle1.trim(), be()), t.relationTitle2 = at.sanitizeText(t.relationTitle2.trim(), be()), xP.push(t); -}, "addRelation"), mXt = /* @__PURE__ */ x(function(t, e) { +}, "getClasses"), hXt = /* @__PURE__ */ x(function() { + return vP; +}, "getRelations"), fXt = /* @__PURE__ */ x(function() { + return Xk; +}, "getNotes"), dXt = /* @__PURE__ */ x(function(t) { + X.debug("Adding relation: " + JSON.stringify(t)), Zk(t.id1), Zk(t.id2), t.id1 = C0(t.id1).className, t.id2 = C0(t.id2).className, t.relationTitle1 = at.sanitizeText(t.relationTitle1.trim(), be()), t.relationTitle2 = at.sanitizeText(t.relationTitle2.trim(), be()), vP.push(t); +}, "addRelation"), pXt = /* @__PURE__ */ x(function(t, e) { const r = C0(t).className; Ni.get(r).annotations.push(e); -}, "addAnnotation"), Nge = /* @__PURE__ */ x(function(t, e) { - jk(t); +}, "addAnnotation"), Mge = /* @__PURE__ */ x(function(t, e) { + Zk(t); const r = C0(t).className, n = Ni.get(r); if (typeof e == "string") { const i = e.trim(); - i.startsWith("<<") && i.endsWith(">>") ? n.annotations.push(T0(i.substring(2, i.length - 2))) : i.indexOf(")") > 0 ? n.methods.push(new dH(i, "method")) : i && n.members.push(new dH(i, "attribute")); + i.startsWith("<<") && i.endsWith(">>") ? n.annotations.push(T0(i.substring(2, i.length - 2))) : i.indexOf(")") > 0 ? n.methods.push(new uH(i, "method")) : i && n.members.push(new uH(i, "attribute")); } -}, "addMember"), vXt = /* @__PURE__ */ x(function(t, e) { - Array.isArray(e) && (e.reverse(), e.forEach((r) => Nge(t, r))); -}, "addMembers"), yXt = /* @__PURE__ */ x(function(t, e) { +}, "addMember"), gXt = /* @__PURE__ */ x(function(t, e) { + Array.isArray(e) && (e.reverse(), e.forEach((r) => Mge(t, r))); +}, "addMembers"), mXt = /* @__PURE__ */ x(function(t, e) { const r = { - id: `note${Zk.length}`, + id: `note${Xk.length}`, class: e, text: t }; - Zk.push(r); -}, "addNote"), bXt = /* @__PURE__ */ x(function(t) { + Xk.push(r); +}, "addNote"), vXt = /* @__PURE__ */ x(function(t) { return t.startsWith(":") && (t = t.substring(1)), T0(t.trim()); -}, "cleanupLabel"), wP = /* @__PURE__ */ x(function(t, e) { +}, "cleanupLabel"), yP = /* @__PURE__ */ x(function(t, e) { t.split(",").forEach(function(r) { let n = r; - /\d/.exec(r[0]) && (n = $C + n); + /\d/.exec(r[0]) && (n = IC + n); const i = Ni.get(n); i && i.cssClasses.push(e); }); -}, "setCssClass"), xXt = /* @__PURE__ */ x(function(t, e) { +}, "setCssClass"), yXt = /* @__PURE__ */ x(function(t, e) { t.split(",").forEach(function(r) { e !== void 0 && (Ni.get(r).tooltip = T0(e)); }); -}, "setTooltip"), wXt = /* @__PURE__ */ x(function(t, e) { +}, "setTooltip"), bXt = /* @__PURE__ */ x(function(t, e) { return e && Ju.has(e) ? Ju.get(e).classes.get(t).tooltip : Ni.get(t).tooltip; -}, "getTooltip"), OXt = /* @__PURE__ */ x(function(t, e, r) { +}, "getTooltip"), xXt = /* @__PURE__ */ x(function(t, e, r) { const n = be(); t.split(",").forEach(function(i) { let s = i; - /\d/.exec(i[0]) && (s = $C + s); + /\d/.exec(i[0]) && (s = IC + s); const a = Ni.get(s); a && (a.link = sr.formatUrl(e, n), n.securityLevel === "sandbox" ? a.linkTarget = "_top" : typeof r == "string" ? a.linkTarget = T0(r) : a.linkTarget = "_blank"); - }), wP(t, "clickable"); -}, "setLink"), kXt = /* @__PURE__ */ x(function(t, e, r) { + }), yP(t, "clickable"); +}, "setLink"), wXt = /* @__PURE__ */ x(function(t, e, r) { t.split(",").forEach(function(n) { - SXt(n, e, r), Ni.get(n).haveCallback = !0; - }), wP(t, "clickable"); -}, "setClickEvent"), SXt = /* @__PURE__ */ x(function(t, e, r) { + OXt(n, e, r), Ni.get(n).haveCallback = !0; + }), yP(t, "clickable"); +}, "setClickEvent"), OXt = /* @__PURE__ */ x(function(t, e, r) { const n = at.sanitizeText(t, be()); if (be().securityLevel !== "loose" || e === void 0) return; const s = n; if (Ni.has(s)) { - const a = Dge(s); + const a = Rge(s); let o = []; if (typeof r == "string") { o = r.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/); @@ -90596,20 +90540,20 @@ var Mge = Z9, fH = ["#", "+", "~", "-", ""], Vb, dH = (Vb = class { ); }); } -}, "setClickFunc"), TXt = /* @__PURE__ */ x(function(t) { +}, "setClickFunc"), kXt = /* @__PURE__ */ x(function(t) { z2.forEach(function(e) { e(t); }); -}, "bindFunctions"), CXt = { +}, "bindFunctions"), SXt = { LINE: 0, DOTTED_LINE: 1 -}, EXt = { +}, TXt = { AGGREGATION: 0, EXTENSION: 1, COMPOSITION: 2, DEPENDENCY: 3, LOLLIPOP: 4 -}, Ige = /* @__PURE__ */ x(function(t) { +}, Dge = /* @__PURE__ */ x(function(t) { let e = et(".mermaidTooltip"); (e._groups || e)[0][0] === null && (e = et("body").append("div").attr("class", "mermaidTooltip").style("opacity", 0)), et(t).select("svg").selectAll("g.node").on("mouseover", function() { const i = et(this); @@ -90621,69 +90565,69 @@ var Mge = Z9, fH = ["#", "+", "~", "-", ""], Vb, dH = (Vb = class { e.transition().duration(500).style("opacity", 0), et(this).classed("hover", !1); }); }, "setupToolTips"); -z2.push(Ige); -var OP = "TB", _Xt = /* @__PURE__ */ x(() => OP, "getDirection"), AXt = /* @__PURE__ */ x((t) => { - OP = t; -}, "setDirection"), LXt = /* @__PURE__ */ x(function(t) { +z2.push(Dge); +var bP = "TB", CXt = /* @__PURE__ */ x(() => bP, "getDirection"), EXt = /* @__PURE__ */ x((t) => { + bP = t; +}, "setDirection"), _Xt = /* @__PURE__ */ x(function(t) { Ju.has(t) || (Ju.set(t, { id: t, classes: /* @__PURE__ */ new Map(), children: {}, - domId: $C + t + "-" + j9 - }), j9++); -}, "addNamespace"), RXt = /* @__PURE__ */ x(function(t) { + domId: IC + t + "-" + H9 + }), H9++); +}, "addNamespace"), AXt = /* @__PURE__ */ x(function(t) { return Ju.get(t); -}, "getNamespace"), MXt = /* @__PURE__ */ x(function() { +}, "getNamespace"), LXt = /* @__PURE__ */ x(function() { return Ju; -}, "getNamespaces"), DXt = /* @__PURE__ */ x(function(t, e) { +}, "getNamespaces"), RXt = /* @__PURE__ */ x(function(t, e) { if (!!Ju.has(t)) for (const r of e) { const { className: n } = C0(r); Ni.get(n).parent = t, Ju.get(t).classes.set(n, Ni.get(n)); } -}, "addClassesToNamespace"), NXt = /* @__PURE__ */ x(function(t, e) { +}, "addClassesToNamespace"), MXt = /* @__PURE__ */ x(function(t, e) { const r = Ni.get(t); if (!(!e || !r)) for (const n of e) n.includes(",") ? r.styles.push(...n.split(",")) : r.styles.push(n); -}, "setCssStyle"), Kk = { +}, "setCssStyle"), jk = { setAccTitle: Zi, getAccTitle: vs, getAccDescription: bs, setAccDescription: ys, getConfig: /* @__PURE__ */ x(() => be().class, "getConfig"), - addClass: jk, - bindFunctions: TXt, - clear: uXt, - getClass: hXt, - getClasses: fXt, - getNotes: pXt, - addAnnotation: mXt, - addNote: yXt, - getRelations: dXt, - addRelation: gXt, - getDirection: _Xt, - setDirection: AXt, - addMember: Nge, - addMembers: vXt, - cleanupLabel: bXt, - lineType: CXt, - relationType: EXt, - setClickEvent: kXt, - setCssClass: wP, - setLink: OXt, - getTooltip: wXt, - setTooltip: xXt, - lookUpDomId: Dge, + addClass: Zk, + bindFunctions: kXt, + clear: lXt, + getClass: cXt, + getClasses: uXt, + getNotes: fXt, + addAnnotation: pXt, + addNote: mXt, + getRelations: hXt, + addRelation: dXt, + getDirection: CXt, + setDirection: EXt, + addMember: Mge, + addMembers: gXt, + cleanupLabel: vXt, + lineType: SXt, + relationType: TXt, + setClickEvent: wXt, + setCssClass: yP, + setLink: xXt, + getTooltip: bXt, + setTooltip: yXt, + lookUpDomId: Rge, setDiagramTitle: fa, getDiagramTitle: xs, - setClassLabel: cXt, - addNamespace: LXt, - addClassesToNamespace: DXt, - getNamespace: RXt, - getNamespaces: MXt, - setCssStyle: NXt -}, IXt = /* @__PURE__ */ x((t) => `g.classGroup text { + setClassLabel: oXt, + addNamespace: _Xt, + addClassesToNamespace: RXt, + getNamespace: AXt, + getNamespaces: LXt, + setCssStyle: MXt +}, DXt = /* @__PURE__ */ x((t) => `g.classGroup text { fill: ${t.nodeBorder || t.classText}; stroke: none; font-family: ${t.fontFamily}; @@ -90837,7 +90781,7 @@ g.classGroup line { font-size: 18px; fill: ${t.textColor}; } -`, "getStyles"), Pge = IXt, gH = 0, PXt = /* @__PURE__ */ x(function(t, e, r, n, i) { +`, "getStyles"), Nge = DXt, fH = 0, NXt = /* @__PURE__ */ x(function(t, e, r, n, i) { const s = /* @__PURE__ */ x(function(b) { switch (b) { case i.db.relationType.AGGREGATION: @@ -90857,7 +90801,7 @@ g.classGroup line { return b.x; }).y(function(b) { return b.y; - }).curve(j1), l = t.append("path").attr("d", o(a)).attr("id", "edge" + gH).attr("class", "relation"); + }).curve(j1), l = t.append("path").attr("d", o(a)).attr("id", "edge" + fH).attr("class", "relation"); let u = ""; n.arrowMarkerAbsolute && (u = window.location.protocol + "//" + window.location.host + window.location.pathname + window.location.search, u = u.replace(/\(/g, "\\("), u = u.replace(/\)/g, "\\)")), r.relation.lineType == 1 && l.attr("class", "relation dashed-line"), r.relation.lineType == 10 && l.attr("class", "relation dotted-line"), r.relation.type1 !== "none" && l.attr( "marker-start", @@ -90889,8 +90833,8 @@ g.classGroup line { const O = w.node().getBBox(); b.insert("rect", ":first-child").attr("class", "box").attr("x", O.x - n.padding / 2).attr("y", O.y - n.padding / 2).attr("width", O.width + n.padding).attr("height", O.height + n.padding); } - X.info("Rendering relation " + JSON.stringify(r)), r.relationTitle1 !== void 0 && r.relationTitle1 !== "none" && t.append("g").attr("class", "cardinality").append("text").attr("class", "type1").attr("x", g).attr("y", m).attr("fill", "black").attr("font-size", "6").text(r.relationTitle1), r.relationTitle2 !== void 0 && r.relationTitle2 !== "none" && t.append("g").attr("class", "cardinality").append("text").attr("class", "type2").attr("x", v).attr("y", y).attr("fill", "black").attr("font-size", "6").text(r.relationTitle2), gH++; -}, "drawEdge"), $Xt = /* @__PURE__ */ x(function(t, e, r, n) { + X.info("Rendering relation " + JSON.stringify(r)), r.relationTitle1 !== void 0 && r.relationTitle1 !== "none" && t.append("g").attr("class", "cardinality").append("text").attr("class", "type1").attr("x", g).attr("y", m).attr("fill", "black").attr("font-size", "6").text(r.relationTitle1), r.relationTitle2 !== void 0 && r.relationTitle2 !== "none" && t.append("g").attr("class", "cardinality").append("text").attr("class", "type2").attr("x", v).attr("y", y).attr("fill", "black").attr("font-size", "6").text(r.relationTitle2), fH++; +}, "drawEdge"), IXt = /* @__PURE__ */ x(function(t, e, r, n) { X.debug("Rendering class ", e, r); const i = e.id, s = { id: i, @@ -90905,7 +90849,7 @@ g.classGroup line { const O = o.append("tspan").text("\xAB" + w + "\xBB"); l || O.attr("dy", r.textHeight), l = !1; }); - let u = $ge(e); + let u = Ige(e); const h = o.append("tspan").text(u).attr("class", "title"); l || h.attr("dy", r.textHeight); const f = o.node().getBBox().height; @@ -90914,14 +90858,14 @@ g.classGroup line { d = a.append("line").attr("x1", 0).attr("y1", r.padding + f + r.dividerMargin / 2).attr("y2", r.padding + f + r.dividerMargin / 2); const w = a.append("text").attr("x", r.padding).attr("y", f + r.dividerMargin + r.textHeight).attr("fill", "white").attr("class", "classText"); l = !0, e.members.forEach(function(O) { - mH(w, O, l, r), l = !1; + dH(w, O, l, r), l = !1; }), p = w.node().getBBox(); } if (e.methods.length > 0) { g = a.append("line").attr("x1", 0).attr("y1", r.padding + f + r.dividerMargin + p.height).attr("y2", r.padding + f + r.dividerMargin + p.height); const w = a.append("text").attr("x", r.padding).attr("y", f + 2 * r.dividerMargin + p.height + r.textHeight).attr("fill", "white").attr("class", "classText"); l = !0, e.methods.forEach(function(O) { - mH(w, O, l, r), l = !1; + dH(w, O, l, r), l = !1; }); } const m = a.node().getBBox(); @@ -90931,10 +90875,10 @@ g.classGroup line { return o.node().childNodes.forEach(function(w) { w.setAttribute("x", (b - w.getBBox().width) / 2); }), e.tooltip && o.insert("title").text(e.tooltip), d && d.attr("x2", b), g && g.attr("x2", b), s.width = b, s.height = m.height + r.padding + 0.5 * r.dividerMargin, s; -}, "drawClass"), $ge = /* @__PURE__ */ x(function(t) { +}, "drawClass"), Ige = /* @__PURE__ */ x(function(t) { let e = t.id; return t.type && (e += "<" + sy(t.type) + ">"), e; -}, "getClassTitleString"), BXt = /* @__PURE__ */ x(function(t, e, r, n) { +}, "getClassTitleString"), PXt = /* @__PURE__ */ x(function(t, e, r, n) { X.debug("Rendering note ", e, r); const i = e.id, s = { id: i, @@ -90955,28 +90899,28 @@ g.classGroup line { return o.node().childNodes.forEach(function(d) { d.setAttribute("x", (f - d.getBBox().width) / 2); }), s.width = f, s.height = u.height + l.length * r.textHeight + r.padding + 0.5 * r.dividerMargin, s; -}, "drawNote"), mH = /* @__PURE__ */ x(function(t, e, r, n) { +}, "drawNote"), dH = /* @__PURE__ */ x(function(t, e, r, n) { const { displayText: i, cssStyle: s } = e.getDisplayDetails(), a = t.append("tspan").attr("x", n.padding).text(i); s !== "" && a.attr("style", e.cssStyle), r || a.attr("dy", n.textHeight); -}, "addTspan"), J_ = { - getClassTitleString: $ge, - drawClass: $Xt, - drawEdge: PXt, - drawNote: BXt -}, r5 = {}, DO = 20, sv = /* @__PURE__ */ x(function(t) { - const e = Object.entries(r5).find((r) => r[1].label === t); +}, "addTspan"), j_ = { + getClassTitleString: Ige, + drawClass: IXt, + drawEdge: NXt, + drawNote: PXt +}, t5 = {}, MO = 20, sv = /* @__PURE__ */ x(function(t) { + const e = Object.entries(t5).find((r) => r[1].label === t); if (e) return e[0]; -}, "getGraphId"), FXt = /* @__PURE__ */ x(function(t) { +}, "getGraphId"), $Xt = /* @__PURE__ */ x(function(t) { t.append("defs").append("marker").attr("id", "extensionStart").attr("class", "extension").attr("refX", 0).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 1,7 L18,13 V 1 Z"), t.append("defs").append("marker").attr("id", "extensionEnd").attr("refX", 19).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 1,1 V 13 L18,7 Z"), t.append("defs").append("marker").attr("id", "compositionStart").attr("class", "extension").attr("refX", 0).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"), t.append("defs").append("marker").attr("id", "compositionEnd").attr("refX", 19).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"), t.append("defs").append("marker").attr("id", "aggregationStart").attr("class", "extension").attr("refX", 0).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"), t.append("defs").append("marker").attr("id", "aggregationEnd").attr("refX", 19).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"), t.append("defs").append("marker").attr("id", "dependencyStart").attr("class", "extension").attr("refX", 0).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 5,7 L9,13 L1,7 L9,1 Z"), t.append("defs").append("marker").attr("id", "dependencyEnd").attr("refX", 19).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L14,7 L9,1 Z"); -}, "insertMarkers"), zXt = /* @__PURE__ */ x(function(t, e, r, n) { +}, "insertMarkers"), BXt = /* @__PURE__ */ x(function(t, e, r, n) { const i = be().class; - r5 = {}, X.info("Rendering diagram " + t); + t5 = {}, X.info("Rendering diagram " + t); const s = be().securityLevel; let a; s === "sandbox" && (a = et("#i" + e)); const o = et(s === "sandbox" ? a.nodes()[0].contentDocument.body : "body"), l = o.select(`[id='${e}']`); - FXt(l); + $Xt(l); const u = new $i({ multigraph: !0 }); @@ -90987,8 +90931,8 @@ g.classGroup line { }); const h = n.db.getClasses(), f = [...h.keys()]; for (const b of f) { - const w = h.get(b), O = J_.drawClass(l, w, i, n); - r5[O.id] = O, u.setNode(O.id, O), X.info("Org height: " + O.height); + const w = h.get(b), O = j_.drawClass(l, w, i, n); + t5[O.id] = O, u.setNode(O.id, O), X.info("Org height: " + O.height); } n.db.getRelations().forEach(function(b) { X.info( @@ -91003,8 +90947,8 @@ g.classGroup line { ); }), n.db.getNotes().forEach(function(b) { X.debug(`Adding note: ${JSON.stringify(b)}`); - const w = J_.drawNote(l, b, i, n); - r5[w.id] = w, u.setNode(w.id, w), b.class && h.has(b.class) && u.setEdge( + const w = j_.drawNote(l, b, i, n); + t5[w.id] = w, u.setNode(w.id, w), b.class && h.has(b.class) && u.setEdge( b.id, sv(b.class), { @@ -91026,62 +90970,62 @@ g.classGroup line { "translate(" + (u.node(b).x - u.node(b).width / 2) + "," + (u.node(b).y - u.node(b).height / 2) + " )" )); }), u.edges().forEach(function(b) { - b !== void 0 && u.edge(b) !== void 0 && (X.debug("Edge " + b.v + " -> " + b.w + ": " + JSON.stringify(u.edge(b))), J_.drawEdge(l, u.edge(b), u.edge(b).relation, i, n)); + b !== void 0 && u.edge(b) !== void 0 && (X.debug("Edge " + b.v + " -> " + b.w + ": " + JSON.stringify(u.edge(b))), j_.drawEdge(l, u.edge(b), u.edge(b).relation, i, n)); }); - const g = l.node().getBBox(), m = g.width + DO * 2, v = g.height + DO * 2; + const g = l.node().getBBox(), m = g.width + MO * 2, v = g.height + MO * 2; ms(l, v, m, i.useMaxWidth); - const y = `${g.x - DO} ${g.y - DO} ${m} ${v}`; + const y = `${g.x - MO} ${g.y - MO} ${m} ${v}`; X.debug(`viewBox ${y}`), l.attr("viewBox", y); -}, "draw"), VXt = { - draw: zXt -}, UXt = { - parser: Mge, - db: Kk, - renderer: VXt, - styles: Pge, +}, "draw"), FXt = { + draw: BXt +}, zXt = { + parser: Lge, + db: jk, + renderer: FXt, + styles: Nge, init: /* @__PURE__ */ x((t) => { - t.class || (t.class = {}), t.class.arrowMarkerAbsolute = t.arrowMarkerAbsolute, Kk.clear(); + t.class || (t.class = {}), t.class.arrowMarkerAbsolute = t.arrowMarkerAbsolute, jk.clear(); }, "init") }; -const qXt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +const VXt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - diagram: UXt + diagram: zXt }, Symbol.toStringTag, { value: "Module" })); -var YXt = /* @__PURE__ */ x((t, e, r, n) => { +var UXt = /* @__PURE__ */ x((t, e, r, n) => { e.forEach((i) => { - eZt[i](t, r, n); + KXt[i](t, r, n); }); -}, "insertMarkers"), QXt = /* @__PURE__ */ x((t, e, r) => { +}, "insertMarkers"), qXt = /* @__PURE__ */ x((t, e, r) => { X.trace("Making markers for ", r), t.append("defs").append("marker").attr("id", r + "_" + e + "-extensionStart").attr("class", "marker extension " + e).attr("refX", 18).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 1,7 L18,13 V 1 Z"), t.append("defs").append("marker").attr("id", r + "_" + e + "-extensionEnd").attr("class", "marker extension " + e).attr("refX", 1).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 1,1 V 13 L18,7 Z"); -}, "extension"), WXt = /* @__PURE__ */ x((t, e, r) => { +}, "extension"), YXt = /* @__PURE__ */ x((t, e, r) => { t.append("defs").append("marker").attr("id", r + "_" + e + "-compositionStart").attr("class", "marker composition " + e).attr("refX", 18).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"), t.append("defs").append("marker").attr("id", r + "_" + e + "-compositionEnd").attr("class", "marker composition " + e).attr("refX", 1).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"); -}, "composition"), GXt = /* @__PURE__ */ x((t, e, r) => { +}, "composition"), QXt = /* @__PURE__ */ x((t, e, r) => { t.append("defs").append("marker").attr("id", r + "_" + e + "-aggregationStart").attr("class", "marker aggregation " + e).attr("refX", 18).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"), t.append("defs").append("marker").attr("id", r + "_" + e + "-aggregationEnd").attr("class", "marker aggregation " + e).attr("refX", 1).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"); -}, "aggregation"), HXt = /* @__PURE__ */ x((t, e, r) => { +}, "aggregation"), WXt = /* @__PURE__ */ x((t, e, r) => { t.append("defs").append("marker").attr("id", r + "_" + e + "-dependencyStart").attr("class", "marker dependency " + e).attr("refX", 6).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 5,7 L9,13 L1,7 L9,1 Z"), t.append("defs").append("marker").attr("id", r + "_" + e + "-dependencyEnd").attr("class", "marker dependency " + e).attr("refX", 13).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L14,7 L9,1 Z"); -}, "dependency"), XXt = /* @__PURE__ */ x((t, e, r) => { +}, "dependency"), GXt = /* @__PURE__ */ x((t, e, r) => { t.append("defs").append("marker").attr("id", r + "_" + e + "-lollipopStart").attr("class", "marker lollipop " + e).attr("refX", 13).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("circle").attr("stroke", "black").attr("fill", "transparent").attr("cx", 7).attr("cy", 7).attr("r", 6), t.append("defs").append("marker").attr("id", r + "_" + e + "-lollipopEnd").attr("class", "marker lollipop " + e).attr("refX", 1).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("circle").attr("stroke", "black").attr("fill", "transparent").attr("cx", 7).attr("cy", 7).attr("r", 6); -}, "lollipop"), ZXt = /* @__PURE__ */ x((t, e, r) => { +}, "lollipop"), HXt = /* @__PURE__ */ x((t, e, r) => { t.append("marker").attr("id", r + "_" + e + "-pointEnd").attr("class", "marker " + e).attr("viewBox", "0 0 10 10").attr("refX", 6).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 12).attr("markerHeight", 12).attr("orient", "auto").append("path").attr("d", "M 0 0 L 10 5 L 0 10 z").attr("class", "arrowMarkerPath").style("stroke-width", 1).style("stroke-dasharray", "1,0"), t.append("marker").attr("id", r + "_" + e + "-pointStart").attr("class", "marker " + e).attr("viewBox", "0 0 10 10").attr("refX", 4.5).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 12).attr("markerHeight", 12).attr("orient", "auto").append("path").attr("d", "M 0 5 L 10 10 L 10 0 z").attr("class", "arrowMarkerPath").style("stroke-width", 1).style("stroke-dasharray", "1,0"); -}, "point"), jXt = /* @__PURE__ */ x((t, e, r) => { +}, "point"), XXt = /* @__PURE__ */ x((t, e, r) => { t.append("marker").attr("id", r + "_" + e + "-circleEnd").attr("class", "marker " + e).attr("viewBox", "0 0 10 10").attr("refX", 11).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 11).attr("markerHeight", 11).attr("orient", "auto").append("circle").attr("cx", "5").attr("cy", "5").attr("r", "5").attr("class", "arrowMarkerPath").style("stroke-width", 1).style("stroke-dasharray", "1,0"), t.append("marker").attr("id", r + "_" + e + "-circleStart").attr("class", "marker " + e).attr("viewBox", "0 0 10 10").attr("refX", -1).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 11).attr("markerHeight", 11).attr("orient", "auto").append("circle").attr("cx", "5").attr("cy", "5").attr("r", "5").attr("class", "arrowMarkerPath").style("stroke-width", 1).style("stroke-dasharray", "1,0"); -}, "circle"), KXt = /* @__PURE__ */ x((t, e, r) => { +}, "circle"), ZXt = /* @__PURE__ */ x((t, e, r) => { t.append("marker").attr("id", r + "_" + e + "-crossEnd").attr("class", "marker cross " + e).attr("viewBox", "0 0 11 11").attr("refX", 12).attr("refY", 5.2).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 11).attr("markerHeight", 11).attr("orient", "auto").append("path").attr("d", "M 1,1 l 9,9 M 10,1 l -9,9").attr("class", "arrowMarkerPath").style("stroke-width", 2).style("stroke-dasharray", "1,0"), t.append("marker").attr("id", r + "_" + e + "-crossStart").attr("class", "marker cross " + e).attr("viewBox", "0 0 11 11").attr("refX", -1).attr("refY", 5.2).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 11).attr("markerHeight", 11).attr("orient", "auto").append("path").attr("d", "M 1,1 l 9,9 M 10,1 l -9,9").attr("class", "arrowMarkerPath").style("stroke-width", 2).style("stroke-dasharray", "1,0"); -}, "cross"), JXt = /* @__PURE__ */ x((t, e, r) => { +}, "cross"), jXt = /* @__PURE__ */ x((t, e, r) => { t.append("defs").append("marker").attr("id", r + "_" + e + "-barbEnd").attr("refX", 19).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 14).attr("markerUnits", "strokeWidth").attr("orient", "auto").append("path").attr("d", "M 19,7 L9,13 L14,7 L9,1 Z"); -}, "barb"), eZt = { - extension: QXt, - composition: WXt, - aggregation: GXt, - dependency: HXt, - lollipop: XXt, - point: ZXt, - circle: jXt, - cross: KXt, - barb: JXt -}, Bge = YXt, tZt = /* @__PURE__ */ x((t, e, r, n, i) => { - e.arrowTypeStart && vH(t, "start", e.arrowTypeStart, r, n, i), e.arrowTypeEnd && vH(t, "end", e.arrowTypeEnd, r, n, i); -}, "addEdgeMarkers"), rZt = { +}, "barb"), KXt = { + extension: qXt, + composition: YXt, + aggregation: QXt, + dependency: WXt, + lollipop: GXt, + point: HXt, + circle: XXt, + cross: ZXt, + barb: jXt +}, Pge = UXt, JXt = /* @__PURE__ */ x((t, e, r, n, i) => { + e.arrowTypeStart && pH(t, "start", e.arrowTypeStart, r, n, i), e.arrowTypeEnd && pH(t, "end", e.arrowTypeEnd, r, n, i); +}, "addEdgeMarkers"), eZt = { arrow_cross: "cross", arrow_point: "point", arrow_barb: "barb", @@ -91091,17 +91035,17 @@ var YXt = /* @__PURE__ */ x((t, e, r, n) => { composition: "composition", dependency: "dependency", lollipop: "lollipop" -}, vH = /* @__PURE__ */ x((t, e, r, n, i, s) => { - const a = rZt[r]; +}, pH = /* @__PURE__ */ x((t, e, r, n, i, s) => { + const a = eZt[r]; if (!a) { X.warn(`Unknown arrow type: ${r}`); return; } const o = e === "start" ? "Start" : "End"; t.attr(`marker-${e}`, `url(${n}#${i}_${s}-${a}${o})`); -}, "addEdgeMarker"), Jk = {}, rs = {}, nZt = /* @__PURE__ */ x(() => { - Jk = {}, rs = {}; -}, "clear"), Fge = /* @__PURE__ */ x((t, e) => { +}, "addEdgeMarker"), Kk = {}, rs = {}, tZt = /* @__PURE__ */ x(() => { + Kk = {}, rs = {}; +}, "clear"), $ge = /* @__PURE__ */ x((t, e) => { const r = be(), n = bn(r.flowchart.htmlLabels), i = e.labelType === "markdown" ? Kc( t, e.label, @@ -91118,7 +91062,7 @@ var YXt = /* @__PURE__ */ x((t, e, r, n) => { const u = i.children[0], h = et(i); o = u.getBoundingClientRect(), h.attr("width", o.width), h.attr("height", o.height); } - a.attr("transform", "translate(" + -o.width / 2 + ", " + -o.height / 2 + ")"), Jk[e.id] = s, e.width = o.width, e.height = o.height; + a.attr("transform", "translate(" + -o.width / 2 + ", " + -o.height / 2 + ")"), Kk[e.id] = s, e.width = o.width, e.height = o.height; let l; if (e.startLabelLeft) { const u = _a(e.startLabelLeft, e.labelStyle), h = t.insert("g").attr("class", "edgeTerminals"), f = h.insert("g").attr("class", "inner"); @@ -91150,12 +91094,12 @@ function Nv(t, e) { be().flowchart.htmlLabels && t && (t.style.width = e.length * 9 + "px", t.style.height = "12px"); } x(Nv, "setTerminalWidth"); -var zge = /* @__PURE__ */ x((t, e) => { - X.debug("Moving label abc88 ", t.id, t.label, Jk[t.id], e); +var Bge = /* @__PURE__ */ x((t, e) => { + X.debug("Moving label abc88 ", t.id, t.label, Kk[t.id], e); let r = e.updatedPath ? e.updatedPath : e.originalPath; const n = be(), { subGraphTitleTotalMargin: i } = V0(n); if (t.label) { - const s = Jk[t.id]; + const s = Kk[t.id]; let a = t.x, o = t.y; if (r) { const l = sr.calcLabelPosition(r); @@ -91213,10 +91157,10 @@ var zge = /* @__PURE__ */ x((t, e) => { } s.attr("transform", `translate(${a}, ${o})`); } -}, "positionEdgeLabel"), iZt = /* @__PURE__ */ x((t, e) => { +}, "positionEdgeLabel"), rZt = /* @__PURE__ */ x((t, e) => { const r = t.x, n = t.y, i = Math.abs(e.x - r), s = Math.abs(e.y - n), a = t.width / 2, o = t.height / 2; return i >= a || s >= o; -}, "outsideNode"), sZt = /* @__PURE__ */ x((t, e, r) => { +}, "outsideNode"), nZt = /* @__PURE__ */ x((t, e, r) => { X.debug(`intersection calc abc89: outsidePoint: ${JSON.stringify(e)} insidePoint : ${JSON.stringify(r)} @@ -91237,12 +91181,12 @@ var zge = /* @__PURE__ */ x((t, e) => { let f = u * o / h, d = r.x < e.x ? r.x + h - o : r.x - h + o, p = r.y < e.y ? r.y + f : r.y - f; return X.debug(`sides calc abc89, Q ${u}, q ${f}, R ${h}, r ${o}`, { _x: d, _y: p }), o === 0 && (d = e.x, p = e.y), h === 0 && (d = e.x), u === 0 && (p = e.y), { x: d, y: p }; } -}, "intersection"), yH = /* @__PURE__ */ x((t, e) => { +}, "intersection"), gH = /* @__PURE__ */ x((t, e) => { X.debug("abc88 cutPathAtIntersect", t, e); let r = [], n = t[0], i = !1; return t.forEach((s) => { - if (!iZt(e, s) && !i) { - const a = sZt(e, n, s); + if (!rZt(e, s) && !i) { + const a = nZt(e, n, s); let o = !1; r.forEach((l) => { o = o || l.x === a.x && l.y === a.y; @@ -91250,17 +91194,17 @@ var zge = /* @__PURE__ */ x((t, e) => { } else n = s, i || r.push(s); }), r; -}, "cutPathAtIntersect"), Vge = /* @__PURE__ */ x(function(t, e, r, n, i, s, a) { +}, "cutPathAtIntersect"), Fge = /* @__PURE__ */ x(function(t, e, r, n, i, s, a) { let o = r.points; X.debug("abc88 InsertEdge: edge=", r, "e=", e); let l = !1; const u = s.node(e.v); var h = s.node(e.w); - (h == null ? void 0 : h.intersect) && (u == null ? void 0 : u.intersect) && (o = o.slice(1, r.points.length - 1), o.unshift(u.intersect(o[0])), o.push(h.intersect(o[o.length - 1]))), r.toCluster && (X.debug("to cluster abc88", n[r.toCluster]), o = yH(r.points, n[r.toCluster].node), l = !0), r.fromCluster && (X.debug("from cluster abc88", n[r.fromCluster]), o = yH(o.reverse(), n[r.fromCluster].node).reverse(), l = !0); + (h == null ? void 0 : h.intersect) && (u == null ? void 0 : u.intersect) && (o = o.slice(1, r.points.length - 1), o.unshift(u.intersect(o[0])), o.push(h.intersect(o[o.length - 1]))), r.toCluster && (X.debug("to cluster abc88", n[r.toCluster]), o = gH(r.points, n[r.toCluster].node), l = !0), r.fromCluster && (X.debug("from cluster abc88", n[r.fromCluster]), o = gH(o.reverse(), n[r.fromCluster].node).reverse(), l = !0); const f = o.filter((O) => !Number.isNaN(O.y)); let d = j1; r.curve && (i === "graph" || i === "flowchart") && (d = r.curve); - const { x: p, y: g } = Uie(r), m = yf().x(p).y(g).curve(d); + const { x: p, y: g } = zie(r), m = yf().x(p).y(g).curve(d); let v; switch (r.thickness) { case "normal": @@ -91288,12 +91232,12 @@ var zge = /* @__PURE__ */ x((t, e) => { } const y = t.append("path").attr("d", m(f)).attr("id", r.id).attr("class", " " + v + (r.classes ? " " + r.classes : "")).attr("style", r.style); let b = ""; - (be().flowchart.arrowMarkerAbsolute || be().state.arrowMarkerAbsolute) && (b = window.location.protocol + "//" + window.location.host + window.location.pathname + window.location.search, b = b.replace(/\(/g, "\\("), b = b.replace(/\)/g, "\\)")), tZt(y, r, b, a, i); + (be().flowchart.arrowMarkerAbsolute || be().state.arrowMarkerAbsolute) && (b = window.location.protocol + "//" + window.location.host + window.location.pathname + window.location.search, b = b.replace(/\(/g, "\\("), b = b.replace(/\)/g, "\\)")), JXt(y, r, b, a, i); let w = {}; return l && (w.updatedPath = o), w.originalPath = r.points, w; -}, "insertEdge"), hr = {}, yl = {}, Uge = {}, aZt = /* @__PURE__ */ x(() => { - yl = {}, Uge = {}, hr = {}; -}, "clear"), eS = /* @__PURE__ */ x((t, e) => (X.trace("In isDescendant", e, " ", t, " = ", yl[e].includes(t)), !!yl[e].includes(t)), "isDescendant"), oZt = /* @__PURE__ */ x((t, e) => (X.info("Descendants of ", e, " is ", yl[e]), X.info("Edge is ", t), t.v === e || t.w === e ? !1 : yl[e] ? yl[e].includes(t.v) || eS(t.v, e) || eS(t.w, e) || yl[e].includes(t.w) : (X.debug("Tilt, ", e, ",not in descendants"), !1)), "edgeInCluster"), qge = /* @__PURE__ */ x((t, e, r, n) => { +}, "insertEdge"), hr = {}, yl = {}, zge = {}, iZt = /* @__PURE__ */ x(() => { + yl = {}, zge = {}, hr = {}; +}, "clear"), Jk = /* @__PURE__ */ x((t, e) => (X.trace("In isDescendant", e, " ", t, " = ", yl[e].includes(t)), !!yl[e].includes(t)), "isDescendant"), sZt = /* @__PURE__ */ x((t, e) => (X.info("Descendants of ", e, " is ", yl[e]), X.info("Edge is ", t), t.v === e || t.w === e ? !1 : yl[e] ? yl[e].includes(t.v) || Jk(t.v, e) || Jk(t.w, e) || yl[e].includes(t.w) : (X.debug("Tilt, ", e, ",not in descendants"), !1)), "edgeInCluster"), Vge = /* @__PURE__ */ x((t, e, r, n) => { X.warn( "Copying children of ", t, @@ -91306,7 +91250,7 @@ var zge = /* @__PURE__ */ x((t, e) => { const i = e.children(t) || []; t !== n && i.push(t), X.warn("Copying (nodes) clusterId", t, "nodes", i), i.forEach((s) => { if (e.children(s).length > 0) - qge(s, e, r, n); + Vge(s, e, r, n); else { const a = e.node(s); X.info("cp ", s, " to ", n, " with parent ", t), r.setNode(s, a), n !== e.parent(s) && (X.warn("Setting parent", s, e.parent(s)), r.setParent(s, e.parent(s))), t !== n && s !== t ? (X.debug("Setting parent", s, t), r.setParent(s, t)) : (X.info("In copy ", t, "root", n, "data", e.node(t), n), X.debug( @@ -91323,7 +91267,7 @@ var zge = /* @__PURE__ */ x((t, e) => { const u = e.edge(l.v, l.w, l.name); X.info("Edge data", u, n); try { - oZt(l, n) ? (X.info("Copying as ", l.v, l.w, u, l.name), r.setEdge(l.v, l.w, u, l.name), X.info("newGraph edges ", r.edges(), r.edge(r.edges()[0]))) : X.info( + sZt(l, n) ? (X.info("Copying as ", l.v, l.w, u, l.name), r.setEdge(l.v, l.w, u, l.name), X.info("newGraph edges ", r.edges(), r.edge(r.edges()[0]))) : X.info( "Skipping copy of edge ", l.v, "-->", @@ -91340,11 +91284,11 @@ var zge = /* @__PURE__ */ x((t, e) => { } X.debug("Removing node", s), e.removeNode(s); }); -}, "copy"), Yge = /* @__PURE__ */ x((t, e) => { +}, "copy"), Uge = /* @__PURE__ */ x((t, e) => { const r = e.children(t); let n = [...r]; for (const i of r) - Uge[i] = t, n = [...n, ...Yge(i, e)]; + zge[i] = t, n = [...n, ...Uge(i, e)]; return n; }, "extractDescendants"), V2 = /* @__PURE__ */ x((t, e) => { X.trace("Searching", t); @@ -91356,7 +91300,7 @@ var zge = /* @__PURE__ */ x((t, e) => { if (i) return X.trace("Found replacement for", t, " => ", i), i; } -}, "findNonClusterChild"), NO = /* @__PURE__ */ x((t) => !hr[t] || !hr[t].externalConnections ? t : hr[t] ? hr[t].id : t, "getAnchorId"), lZt = /* @__PURE__ */ x((t, e) => { +}, "findNonClusterChild"), DO = /* @__PURE__ */ x((t) => !hr[t] || !hr[t].externalConnections ? t : hr[t] ? hr[t].id : t, "getAnchorId"), aZt = /* @__PURE__ */ x((t, e) => { if (!t || e > 10) { X.debug("Opting out, no graph "); return; @@ -91368,12 +91312,12 @@ var zge = /* @__PURE__ */ x((t, e) => { r, " Replacement id in edges: ", V2(r, t) - ), yl[r] = Yge(r, t), hr[r] = { id: V2(r, t), clusterData: t.node(r) }); + ), yl[r] = Uge(r, t), hr[r] = { id: V2(r, t), clusterData: t.node(r) }); }), t.nodes().forEach(function(r) { const n = t.children(r), i = t.edges(); n.length > 0 ? (X.debug("Cluster identified", r, yl), i.forEach((s) => { if (s.v !== r && s.w !== r) { - const a = eS(s.v, r), o = eS(s.w, r); + const a = Jk(s.v, r), o = Jk(s.w, r); a ^ o && (X.warn("Edge: ", s, " leaves cluster ", r), X.warn("Descendants of XXX ", r, ": ", yl[r]), hr[r].externalConnections = !0); } })) : X.debug("Not a cluster ", r, yl); @@ -91397,7 +91341,7 @@ var zge = /* @__PURE__ */ x((t, e) => { " --- ", hr[r.w] ), hr[r.v] && hr[r.w] && hr[r.v] === hr[r.w]) { - X.warn("Fixing and trixing link to self - removing XXX", r.v, r.w, r.name), X.warn("Fixing and trixing - removing XXX", r.v, r.w, r.name), i = NO(r.v), s = NO(r.w), t.removeEdge(r.v, r.w, r.name); + X.warn("Fixing and trixing link to self - removing XXX", r.v, r.w, r.name), X.warn("Fixing and trixing - removing XXX", r.v, r.w, r.name), i = DO(r.v), s = DO(r.w), t.removeEdge(r.v, r.w, r.name); const a = r.w + "---" + r.v; t.setNode(a, { domId: a, @@ -91411,7 +91355,7 @@ var zge = /* @__PURE__ */ x((t, e) => { const o = structuredClone(n), l = structuredClone(n); o.label = "", o.arrowTypeEnd = "none", l.label = "", o.fromCluster = r.v, l.toCluster = r.v, t.setEdge(i, a, o, r.name + "-cyclic-special"), t.setEdge(a, s, l, r.name + "-cyclic-special"); } else if (hr[r.v] || hr[r.w]) { - if (X.warn("Fixing and trixing - removing XXX", r.v, r.w, r.name), i = NO(r.v), s = NO(r.w), t.removeEdge(r.v, r.w, r.name), i !== r.v) { + if (X.warn("Fixing and trixing - removing XXX", r.v, r.w, r.name), i = DO(r.v), s = DO(r.w), t.removeEdge(r.v, r.w, r.name), i !== r.v) { const a = t.parent(i); hr[a].externalConnections = !0, n.fromCluster = r.v; } @@ -91421,8 +91365,8 @@ var zge = /* @__PURE__ */ x((t, e) => { } X.warn("Fix Replacing with XXX", i, s, r.name), t.setEdge(i, s, n, r.name); } - }), X.warn("Adjusted Graph", di(t)), Qge(t, 0), X.trace(hr); -}, "adjustClustersAndEdges"), Qge = /* @__PURE__ */ x((t, e) => { + }), X.warn("Adjusted Graph", di(t)), qge(t, 0), X.trace(hr); +}, "adjustClustersAndEdges"), qge = /* @__PURE__ */ x((t, e) => { var i, s; if (X.warn("extractor - ", e, di(t), t.children("D")), e > 10) { X.error("Bailing out"); @@ -91471,7 +91415,7 @@ var zge = /* @__PURE__ */ x((t, e) => { }).setDefaultEdgeLabel(function() { return {}; }); - X.warn("Old graph before copy", di(t)), qge(a, t, u, a), t.setNode(a, { + X.warn("Old graph before copy", di(t)), Vge(a, t, u, a), t.setNode(a, { clusterNode: !0, id: a, clusterData: hr[a].clusterData, @@ -91494,17 +91438,17 @@ var zge = /* @__PURE__ */ x((t, e) => { r = t.nodes(), X.warn("New list of nodes", r); for (const a of r) { const o = t.node(a); - X.warn(" Now next level", a, o), o.clusterNode && Qge(o.graph, e + 1); + X.warn(" Now next level", a, o), o.clusterNode && qge(o.graph, e + 1); } -}, "extractor"), Wge = /* @__PURE__ */ x((t, e) => { +}, "extractor"), Yge = /* @__PURE__ */ x((t, e) => { if (e.length === 0) return []; let r = Object.assign(e); return e.forEach((n) => { - const i = t.children(n), s = Wge(t, i); + const i = t.children(n), s = Yge(t, i); r = [...r, ...s]; }), r; -}, "sorter"), cZt = /* @__PURE__ */ x((t) => Wge(t, t.children()), "sortNodesByHierarchy"), uZt = /* @__PURE__ */ x((t, e) => { +}, "sorter"), oZt = /* @__PURE__ */ x((t) => Yge(t, t.children()), "sortNodesByHierarchy"), lZt = /* @__PURE__ */ x((t, e) => { X.info("Creating subgraph rect for ", e.id, e); const r = be(), n = t.insert("g").attr("class", "cluster" + (e.class ? " " + e.class : "")).attr("id", e.id), i = n.insert("rect", ":first-child"), s = bn(r.flowchart.htmlLabels), a = n.insert("g").attr("class", "cluster-label"), o = e.labelType === "markdown" ? Kc(a, e.labelText, { style: e.labelStyle, useHtmlLabels: s }, r) : a.node().appendChild(_a(e.labelText, e.labelStyle, void 0, !0)); let l = o.getBBox(); @@ -91526,14 +91470,14 @@ var zge = /* @__PURE__ */ x((t, e) => { return e.width = p.width, e.height = p.height, e.intersect = function(g) { return Rx(e, g); }, n; -}, "rect"), hZt = /* @__PURE__ */ x((t, e) => { +}, "rect"), cZt = /* @__PURE__ */ x((t, e) => { const r = t.insert("g").attr("class", "note-cluster").attr("id", e.id), n = r.insert("rect", ":first-child"), i = 0 * e.padding, s = i / 2; n.attr("rx", e.rx).attr("ry", e.ry).attr("x", e.x - e.width / 2 - s).attr("y", e.y - e.height / 2 - s).attr("width", e.width + i).attr("height", e.height + i).attr("fill", "none"); const a = n.node().getBBox(); return e.width = a.width, e.height = a.height, e.intersect = function(o) { return Rx(e, o); }, r; -}, "noteGroup"), fZt = /* @__PURE__ */ x((t, e) => { +}, "noteGroup"), uZt = /* @__PURE__ */ x((t, e) => { const r = be(), n = t.insert("g").attr("class", e.classes).attr("id", e.id), i = n.insert("rect", ":first-child"), s = n.insert("g").attr("class", "cluster-label"), a = n.append("rect"), o = s.node().appendChild(_a(e.labelText, e.labelStyle, void 0, !0)); let l = o.getBBox(); if (bn(r.flowchart.htmlLabels)) { @@ -91552,20 +91496,20 @@ var zge = /* @__PURE__ */ x((t, e) => { return e.height = p.height, e.intersect = function(g) { return Rx(e, g); }, n; -}, "roundedWithTitle"), dZt = /* @__PURE__ */ x((t, e) => { +}, "roundedWithTitle"), hZt = /* @__PURE__ */ x((t, e) => { const r = t.insert("g").attr("class", e.classes).attr("id", e.id), n = r.insert("rect", ":first-child"), i = 0 * e.padding, s = i / 2; n.attr("class", "divider").attr("x", e.x - e.width / 2 - s).attr("y", e.y - e.height / 2).attr("width", e.width + i).attr("height", e.height + i); const a = n.node().getBBox(); return e.width = a.width, e.height = a.height, e.diff = -e.padding / 2, e.intersect = function(o) { return Rx(e, o); }, r; -}, "divider"), pZt = { rect: uZt, roundedWithTitle: fZt, noteGroup: hZt, divider: dZt }, Gge = {}, gZt = /* @__PURE__ */ x((t, e) => { +}, "divider"), fZt = { rect: lZt, roundedWithTitle: uZt, noteGroup: cZt, divider: hZt }, Qge = {}, dZt = /* @__PURE__ */ x((t, e) => { X.trace("Inserting cluster"); const r = e.shape || "rect"; - Gge[e.id] = pZt[r](t, e); -}, "insertCluster"), mZt = /* @__PURE__ */ x(() => { - Gge = {}; -}, "clear"), Hge = /* @__PURE__ */ x(async (t, e, r, n, i, s) => { + Qge[e.id] = fZt[r](t, e); +}, "insertCluster"), pZt = /* @__PURE__ */ x(() => { + Qge = {}; +}, "clear"), Wge = /* @__PURE__ */ x(async (t, e, r, n, i, s) => { X.info("Graph in recursive render: XXX", di(e), i); const a = e.graph().rankdir; X.trace("Dir in recursive render - dir:", a); @@ -91587,7 +91531,7 @@ var zge = /* @__PURE__ */ x((t, e) => { ranksep: v, nodesep: y }); - const b = await Hge( + const b = await Wge( f, m.graph, r, @@ -91595,19 +91539,19 @@ var zge = /* @__PURE__ */ x((t, e) => { e.node(g), s ), w = b.elem; - Fn(m, w), m.diff = b.diff || 0, X.info("Node bounds (abc123)", g, m, m.width, m.x, m.y), KPt(w, m), X.warn("Recursive render complete ", w, m); + Fn(m, w), m.diff = b.diff || 0, X.info("Node bounds (abc123)", g, m, m.width, m.x, m.y), ZPt(w, m), X.warn("Recursive render complete ", w, m); } else - e.children(g).length > 0 ? (X.info("Cluster - the non recursive path XXX", g, m.id, m, e), X.info(V2(m.id, e)), hr[m.id] = { id: V2(m.id, e), node: m }) : (X.info("Node - the non recursive path", g, m.id, m), await vI(f, e.node(g), a)); + e.children(g).length > 0 ? (X.info("Cluster - the non recursive path XXX", g, m.id, m, e), X.info(V2(m.id, e)), hr[m.id] = { id: V2(m.id, e), node: m }) : (X.info("Node - the non recursive path", g, m.id, m), await pI(f, e.node(g), a)); }) ), e.edges().forEach(async function(g) { const m = e.edge(g.v, g.w, g.name); - X.info("Edge " + g.v + " -> " + g.w + ": " + JSON.stringify(g)), X.info("Edge " + g.v + " -> " + g.w + ": ", g, " ", JSON.stringify(e.edge(g))), X.info("Fix", hr, "ids:", g.v, g.w, "Translating: ", hr[g.v], hr[g.w]), await Fge(h, m); + X.info("Edge " + g.v + " -> " + g.w + ": " + JSON.stringify(g)), X.info("Edge " + g.v + " -> " + g.w + ": ", g, " ", JSON.stringify(e.edge(g))), X.info("Fix", hr, "ids:", g.v, g.w, "Translating: ", hr[g.v], hr[g.w]), await $ge(h, m); }), e.edges().forEach(function(g) { X.info("Edge " + g.v + " -> " + g.w + ": " + JSON.stringify(g)); }), X.info("Graph before layout:", JSON.stringify(di(e))), X.info("#############################################"), X.info("### Layout ###"), X.info("#############################################"), X.info(e), om(e), X.info("Graph after layout:", JSON.stringify(di(e))); let d = 0; const { subGraphTitleTotalMargin: p } = V0(s); - return cZt(e).forEach(function(g) { + return oZt(e).forEach(function(g) { const m = e.node(g); X.info("Position " + g + ": " + JSON.stringify(e.node(g))), X.info( "Position " + g + ": (" + m.x, @@ -91616,46 +91560,46 @@ var zge = /* @__PURE__ */ x((t, e) => { m.width, " height: ", m.height - ), m != null && m.clusterNode ? (m.y += p, qL(m)) : e.children(g).length > 0 ? (m.height += p, gZt(l, m), hr[m.id].node = m) : (m.y += p / 2, qL(m)); + ), m != null && m.clusterNode ? (m.y += p, zL(m)) : e.children(g).length > 0 ? (m.height += p, dZt(l, m), hr[m.id].node = m) : (m.y += p / 2, zL(m)); }), e.edges().forEach(function(g) { const m = e.edge(g); X.info("Edge " + g.v + " -> " + g.w + ": " + JSON.stringify(m), m), m.points.forEach((y) => y.y += p / 2); - const v = Vge(u, g, m, hr, r, e, n); - zge(m, v); + const v = Fge(u, g, m, hr, r, e, n); + Bge(m, v); }), e.nodes().forEach(function(g) { const m = e.node(g); X.info(g, m.type, m.diff), m.type === "group" && (d = m.diff); }), { elem: o, diff: d }; -}, "recursiveRender"), vZt = /* @__PURE__ */ x(async (t, e, r, n, i) => { - Bge(t, r, n, i), JPt(), nZt(), mZt(), aZt(), X.warn("Graph at first:", JSON.stringify(di(e))), lZt(e), X.warn("Graph after:", JSON.stringify(di(e))); +}, "recursiveRender"), gZt = /* @__PURE__ */ x(async (t, e, r, n, i) => { + Pge(t, r, n, i), jPt(), tZt(), pZt(), iZt(), X.warn("Graph at first:", JSON.stringify(di(e))), aZt(e), X.warn("Graph after:", JSON.stringify(di(e))); const s = be(); - await Hge(t, e, n, i, void 0, s); -}, "render"), kP = /* @__PURE__ */ x((t) => at.sanitizeText(t, be()), "sanitizeText"), K9 = { + await Wge(t, e, n, i, void 0, s); +}, "render"), xP = /* @__PURE__ */ x((t) => at.sanitizeText(t, be()), "sanitizeText"), X9 = { dividerMargin: 10, padding: 5, textHeight: 10, curve: void 0 -}, yZt = /* @__PURE__ */ x(function(t, e, r, n) { +}, mZt = /* @__PURE__ */ x(function(t, e, r, n) { X.info("keys:", [...t.keys()]), X.info(t), t.forEach(function(i) { var o, l, u; const a = { shape: "rect", id: i.id, domId: i.domId, - labelText: kP(i.id), + labelText: xP(i.id), labelStyle: "", style: "fill: none; stroke: black", padding: (u = (o = be().flowchart) == null ? void 0 : o.padding) != null ? u : (l = be().class) == null ? void 0 : l.padding }; - e.setNode(i.id, a), Xge(i.classes, e, r, n, i.id), X.info("setNode", a); + e.setNode(i.id, a), Gge(i.classes, e, r, n, i.id), X.info("setNode", a); }); -}, "addNamespaces"), Xge = /* @__PURE__ */ x(function(t, e, r, n, i) { +}, "addNamespaces"), Gge = /* @__PURE__ */ x(function(t, e, r, n, i) { X.info("keys:", [...t.keys()]), X.info(t), [...t.values()].filter((s) => s.parent === i).forEach(function(s) { var d, p, g, m; const a = s.cssClasses.join(" "), o = vx(s.styles), l = (d = s.label) != null ? d : s.id, u = 0, h = "class_box", f = { labelStyle: o.labelStyle, shape: h, - labelText: kP(l), + labelText: xP(l), classData: s, rx: u, ry: u, @@ -91672,13 +91616,13 @@ var zge = /* @__PURE__ */ x((t, e) => { }; e.setNode(s.id, f), i && e.setParent(s.id, i), X.info("setNode", f); }); -}, "addClasses"), bZt = /* @__PURE__ */ x(function(t, e, r, n) { +}, "addClasses"), vZt = /* @__PURE__ */ x(function(t, e, r, n) { X.info(t), t.forEach(function(i, s) { var m, v, y; const a = i, o = "", l = { labelStyle: "", style: "" }, u = a.text, h = 0, f = "note", d = { labelStyle: l.labelStyle, shape: f, - labelText: kP(u), + labelText: xP(u), noteData: a, rx: h, ry: h, @@ -91703,11 +91647,11 @@ var zge = /* @__PURE__ */ x((t, e) => { arrowTypeEnd: "none", style: "fill:none", labelStyle: "", - curve: mx(K9.curve, NT) + curve: mx(X9.curve, MT) }; e.setEdge(a.id, a.class, g, p); }); -}, "addNotes"), xZt = /* @__PURE__ */ x(function(t, e) { +}, "addNotes"), yZt = /* @__PURE__ */ x(function(t, e) { const r = be().flowchart; let n = 0; t.forEach(function(i) { @@ -91716,18 +91660,18 @@ var zge = /* @__PURE__ */ x((t, e) => { const s = { classes: "relation", pattern: i.relation.lineType == 1 ? "dashed" : "solid", - id: Lae(i.id1, i.id2, { + id: _ae(i.id1, i.id2, { prefix: "id", counter: n }), arrowhead: i.type === "arrow_open" ? "none" : "normal", startLabelRight: i.relationTitle1 === "none" ? "" : i.relationTitle1, endLabelLeft: i.relationTitle2 === "none" ? "" : i.relationTitle2, - arrowTypeStart: J9(i.relation.type1), - arrowTypeEnd: J9(i.relation.type2), + arrowTypeStart: Z9(i.relation.type1), + arrowTypeEnd: Z9(i.relation.type2), style: "fill:none", labelStyle: "", - curve: mx(r == null ? void 0 : r.curve, NT) + curve: mx(r == null ? void 0 : r.curve, MT) }; if (X.info(s, i), i.style !== void 0) { const l = vx(i.style); @@ -91736,12 +91680,12 @@ var zge = /* @__PURE__ */ x((t, e) => { i.text = i.title, i.text === void 0 ? i.style !== void 0 && (s.arrowheadStyle = "fill: #333") : (s.arrowheadStyle = "fill: #333", s.labelpos = "c", ((o = (a = be().flowchart) == null ? void 0 : a.htmlLabels) != null ? o : be().htmlLabels) ? (s.labelType = "html", s.label = '' + i.text + "") : (s.labelType = "text", s.label = i.text.replace(at.lineBreakRegex, ` `), i.style === void 0 && (s.style = s.style || "stroke: #333; stroke-width: 1.5px;fill:none"), s.labelStyle = s.labelStyle.replace("color:", "fill:"))), e.setEdge(i.id1, i.id2, s, n); }); -}, "addRelations"), wZt = /* @__PURE__ */ x(function(t) { - K9 = { - ...K9, +}, "addRelations"), bZt = /* @__PURE__ */ x(function(t) { + X9 = { + ...X9, ...t }; -}, "setConf"), OZt = /* @__PURE__ */ x(async function(t, e, r, n) { +}, "setConf"), xZt = /* @__PURE__ */ x(async function(t, e, r, n) { var y, b, w, O; X.info("Drawing class - ", e); const i = (y = be().flowchart) != null ? y : be().class, s = be().securityLevel; @@ -91758,11 +91702,11 @@ var zge = /* @__PURE__ */ x((t, e) => { }).setDefaultEdgeLabel(function() { return {}; }), u = n.db.getNamespaces(), h = n.db.getClasses(), f = n.db.getRelations(), d = n.db.getNotes(); - X.info(f), yZt(u, l, e, n), Xge(h, l, e, n), xZt(f, l), bZt(d, l, f.length + 1, h); + X.info(f), mZt(u, l, e, n), Gge(h, l, e, n), yZt(f, l), vZt(d, l, f.length + 1, h); let p; s === "sandbox" && (p = et("#i" + e)); const g = et(s === "sandbox" ? p.nodes()[0].contentDocument.body : "body"), m = g.select(`[id="${e}"]`), v = g.select("#" + e + " g"); - if (await vZt( + if (await gZt( v, l, ["aggregation", "extension", "composition", "dependency", "lollipop"], @@ -91776,7 +91720,7 @@ var zge = /* @__PURE__ */ x((t, e) => { } } }, "draw"); -function J9(t) { +function Z9(t) { let e; switch (t) { case 0: @@ -91799,24 +91743,24 @@ function J9(t) { } return e; } -x(J9, "getArrowMarker"); -var kZt = { - setConf: wZt, - draw: OZt -}, SZt = { - parser: Mge, - db: Kk, - renderer: kZt, - styles: Pge, +x(Z9, "getArrowMarker"); +var wZt = { + setConf: bZt, + draw: xZt +}, OZt = { + parser: Lge, + db: jk, + renderer: wZt, + styles: Nge, init: /* @__PURE__ */ x((t) => { - t.class || (t.class = {}), t.class.arrowMarkerAbsolute = t.arrowMarkerAbsolute, Kk.clear(); + t.class || (t.class = {}), t.class.arrowMarkerAbsolute = t.arrowMarkerAbsolute, jk.clear(); }, "init") }; -const TZt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +const kZt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - diagram: SZt + diagram: OZt }, Symbol.toStringTag, { value: "Module" })); -var eR = function() { +var j9 = function() { var t = /* @__PURE__ */ x(function(D, P, F, B) { for (F = F || {}, B = D.length; B--; F[D[B]] = P) ; @@ -92341,50 +92285,50 @@ Expecting ` + ve.join(", ") + ", got '" + (this.terminals_[Ae] || Ae) + "'" : re } return x(I, "Parser"), I.prototype = N, N.Parser = I, new I(); }(); -eR.parser = eR; -var Zge = eR, CZt = "LR", jge = "TB", tS = "state", SP = "relation", EZt = "classDef", _Zt = "style", AZt = "applyClass", Qx = "default", Kge = "divider", Jge = "fill:none", e1e = "fill: #333", t1e = "c", r1e = "text", n1e = "normal", eA = "rect", tA = "rectWithTitle", LZt = "stateStart", RZt = "stateEnd", bH = "divider", xH = "roundedWithTitle", MZt = "note", DZt = "noteGroup", Wx = "statediagram", NZt = "state", IZt = `${Wx}-${NZt}`, i1e = "transition", PZt = "note", $Zt = "note-edge", BZt = `${i1e} ${$Zt}`, FZt = `${Wx}-${PZt}`, zZt = "cluster", VZt = `${Wx}-${zZt}`, UZt = "cluster-alt", qZt = `${Wx}-${UZt}`, s1e = "parent", a1e = "note", YZt = "state", TP = "----", QZt = `${TP}${a1e}`, wH = `${TP}${s1e}`, o1e = /* @__PURE__ */ x((t, e = jge) => { +j9.parser = j9; +var Hge = j9, SZt = "LR", Xge = "TB", eS = "state", wP = "relation", TZt = "classDef", CZt = "style", EZt = "applyClass", Qx = "default", Zge = "divider", jge = "fill:none", Kge = "fill: #333", Jge = "c", e1e = "text", t1e = "normal", K_ = "rect", J_ = "rectWithTitle", _Zt = "stateStart", AZt = "stateEnd", mH = "divider", vH = "roundedWithTitle", LZt = "note", RZt = "noteGroup", Wx = "statediagram", MZt = "state", DZt = `${Wx}-${MZt}`, r1e = "transition", NZt = "note", IZt = "note-edge", PZt = `${r1e} ${IZt}`, $Zt = `${Wx}-${NZt}`, BZt = "cluster", FZt = `${Wx}-${BZt}`, zZt = "cluster-alt", VZt = `${Wx}-${zZt}`, n1e = "parent", i1e = "note", UZt = "state", OP = "----", qZt = `${OP}${i1e}`, yH = `${OP}${n1e}`, s1e = /* @__PURE__ */ x((t, e = Xge) => { if (!t.doc) return e; let r = e; for (const n of t.doc) n.stmt === "dir" && (r = n.value); return r; -}, "getDir"), WZt = /* @__PURE__ */ x(function(t, e) { +}, "getDir"), YZt = /* @__PURE__ */ x(function(t, e) { return e.db.extract(e.db.getRootDocV2()), e.db.getClasses(); -}, "getClasses"), GZt = /* @__PURE__ */ x(async function(t, e, r, n) { +}, "getClasses"), QZt = /* @__PURE__ */ x(async function(t, e, r, n) { var h, f; X.info("REF0:"), X.info("Drawing state diagram (v2)", e); const { securityLevel: i, state: s, layout: a } = be(); n.db.extract(n.db.getRootDocV2()); - const o = n.db.getData(), l = xfe(e, i); - o.type = n.type, o.layoutAlgorithm = a, o.nodeSpacing = (s == null ? void 0 : s.nodeSpacing) || 50, o.rankSpacing = (s == null ? void 0 : s.rankSpacing) || 50, o.markers = ["barb"], o.diagramId = e, await Toe(o, l); + const o = n.db.getData(), l = yfe(e, i); + o.type = n.type, o.layoutAlgorithm = a, o.nodeSpacing = (s == null ? void 0 : s.nodeSpacing) || 50, o.rankSpacing = (s == null ? void 0 : s.rankSpacing) || 50, o.markers = ["barb"], o.diagramId = e, await koe(o, l); const u = 8; sr.insertTitle( l, "statediagramTitleText", (h = s == null ? void 0 : s.titleTopMargin) != null ? h : 25, n.db.getDiagramTitle() - ), wfe(l, u, Wx, (f = s == null ? void 0 : s.useMaxWidth) != null ? f : !0); -}, "draw"), HZt = { - getClasses: WZt, - draw: GZt, - getDir: o1e -}, n5 = /* @__PURE__ */ new Map(), Mh = 0; -function i5(t = "", e = 0, r = "", n = TP) { + ), bfe(l, u, Wx, (f = s == null ? void 0 : s.useMaxWidth) != null ? f : !0); +}, "draw"), WZt = { + getClasses: YZt, + draw: QZt, + getDir: s1e +}, r5 = /* @__PURE__ */ new Map(), Mh = 0; +function n5(t = "", e = 0, r = "", n = OP) { const i = r !== null && r.length > 0 ? `${n}${r}` : ""; - return `${YZt}-${t}${i}-${e}`; + return `${UZt}-${t}${i}-${e}`; } -x(i5, "stateDomId"); -var XZt = /* @__PURE__ */ x((t, e, r, n, i, s, a, o) => { +x(n5, "stateDomId"); +var GZt = /* @__PURE__ */ x((t, e, r, n, i, s, a, o) => { X.trace("items", e), e.forEach((l) => { switch (l.stmt) { - case tS: + case eS: Pv(t, l, r, n, i, s, a, o); break; case Qx: Pv(t, l, r, n, i, s, a, o); break; - case SP: + case wP: { Pv( t, @@ -92411,14 +92355,14 @@ var XZt = /* @__PURE__ */ x((t, e, r, n, i, s, a, o) => { end: l.state2.id, arrowhead: "normal", arrowTypeEnd: "arrow_barb", - style: Jge, + style: jge, labelStyle: "", label: at.sanitizeText(l.description, be()), - arrowheadStyle: e1e, - labelpos: t1e, - labelType: r1e, - thickness: n1e, - classes: i1e, + arrowheadStyle: Kge, + labelpos: Jge, + labelType: e1e, + thickness: t1e, + classes: r1e, look: a }; i.push(u), Mh++; @@ -92426,7 +92370,7 @@ var XZt = /* @__PURE__ */ x((t, e, r, n, i, s, a, o) => { break; } }); -}, "setupDoc"), OH = /* @__PURE__ */ x((t, e = jge) => { +}, "setupDoc"), bH = /* @__PURE__ */ x((t, e = Xge) => { let r = e; if (t.doc) for (const n of t.doc) @@ -92446,30 +92390,30 @@ function Iv(t, e, r) { n ? Object.assign(n, e) : t.push(e); } x(Iv, "insertOrUpdateNode"); -function l1e(t) { +function a1e(t) { var e, r; return (r = (e = t == null ? void 0 : t.classes) == null ? void 0 : e.join(" ")) != null ? r : ""; } -x(l1e, "getClassesFromDbInfo"); -function c1e(t) { +x(a1e, "getClassesFromDbInfo"); +function o1e(t) { var e; return (e = t == null ? void 0 : t.styles) != null ? e : []; } -x(c1e, "getStylesFromDbInfo"); +x(o1e, "getStylesFromDbInfo"); var Pv = /* @__PURE__ */ x((t, e, r, n, i, s, a, o) => { var d, p; - const l = e.id, u = r.get(l), h = l1e(u), f = c1e(u); + const l = e.id, u = r.get(l), h = a1e(u), f = o1e(u); if (X.info("dataFetcher parsedItem", e, u, f), l !== "root") { - let g = eA; - e.start === !0 ? g = LZt : e.start === !1 && (g = RZt), e.type !== Qx && (g = e.type), n5.get(l) || n5.set(l, { + let g = K_; + e.start === !0 ? g = _Zt : e.start === !1 && (g = AZt), e.type !== Qx && (g = e.type), r5.get(l) || r5.set(l, { id: l, shape: g, description: at.sanitizeText(l, be()), - cssClasses: `${h} ${IZt}`, + cssClasses: `${h} ${DZt}`, cssStyles: f }); - const m = n5.get(l); - e.description && (Array.isArray(m.description) ? (m.shape = tA, m.description.push(e.description)) : ((d = m.description) == null ? void 0 : d.length) > 0 ? (m.shape = tA, m.description === l ? m.description = [e.description] : m.description = [m.description, e.description]) : (m.shape = eA, m.description = e.description), m.description = at.sanitizeTextOrArray(m.description, be())), ((p = m.description) == null ? void 0 : p.length) === 1 && m.shape === tA && (m.type === "group" ? m.shape = xH : m.shape = eA), !m.type && e.doc && (X.info("Setting cluster for XCX", l, OH(e)), m.type = "group", m.isGroup = !0, m.dir = OH(e), m.shape = e.type === Kge ? bH : xH, m.cssClasses = `${m.cssClasses} ${VZt} ${s ? qZt : ""}`); + const m = r5.get(l); + e.description && (Array.isArray(m.description) ? (m.shape = J_, m.description.push(e.description)) : ((d = m.description) == null ? void 0 : d.length) > 0 ? (m.shape = J_, m.description === l ? m.description = [e.description] : m.description = [m.description, e.description]) : (m.shape = K_, m.description = e.description), m.description = at.sanitizeTextOrArray(m.description, be())), ((p = m.description) == null ? void 0 : p.length) === 1 && m.shape === J_ && (m.type === "group" ? m.shape = vH : m.shape = K_), !m.type && e.doc && (X.info("Setting cluster for XCX", l, bH(e)), m.type = "group", m.isGroup = !0, m.dir = bH(e), m.shape = e.type === Zge ? mH : vH, m.cssClasses = `${m.cssClasses} ${FZt} ${s ? VZt : ""}`); const v = { labelStyle: "", shape: m.shape, @@ -92479,7 +92423,7 @@ var Pv = /* @__PURE__ */ x((t, e, r, n, i, s, a, o) => { cssStyles: m.cssStyles, id: l, dir: m.dir, - domId: i5(l, Mh), + domId: n5(l, Mh), type: m.type, isGroup: m.type === "group", padding: 8, @@ -92487,29 +92431,29 @@ var Pv = /* @__PURE__ */ x((t, e, r, n, i, s, a, o) => { ry: 10, look: a }; - if (v.shape === bH && (v.label = ""), t && t.id !== "root" && (X.trace("Setting node ", l, " to be child of its parent ", t.id), v.parentId = t.id), v.centerLabel = !0, e.note) { + if (v.shape === mH && (v.label = ""), t && t.id !== "root" && (X.trace("Setting node ", l, " to be child of its parent ", t.id), v.parentId = t.id), v.centerLabel = !0, e.note) { const y = { labelStyle: "", - shape: MZt, + shape: LZt, label: e.note.text, - cssClasses: FZt, + cssClasses: $Zt, cssStyles: [], cssCompilesStyles: [], - id: l + QZt + "-" + Mh, - domId: i5(l, Mh, a1e), + id: l + qZt + "-" + Mh, + domId: n5(l, Mh, i1e), type: m.type, isGroup: m.type === "group", padding: be().flowchart.padding, look: a, position: e.note.position - }, b = l + wH, w = { + }, b = l + yH, w = { labelStyle: "", - shape: DZt, + shape: RZt, label: e.note.text, cssClasses: m.cssClasses, cssStyles: [], - id: l + wH, - domId: i5(l, Mh, s1e), + id: l + yH, + domId: n5(l, Mh, n1e), type: "group", isGroup: !0, padding: 16, @@ -92524,70 +92468,70 @@ var Pv = /* @__PURE__ */ x((t, e, r, n, i, s, a, o) => { end: S, arrowhead: "none", arrowTypeEnd: "", - style: Jge, + style: jge, labelStyle: "", - classes: BZt, - arrowheadStyle: e1e, - labelpos: t1e, - labelType: r1e, - thickness: n1e, + classes: PZt, + arrowheadStyle: Kge, + labelpos: Jge, + labelType: e1e, + thickness: t1e, look: a }); } else Iv(n, v, o); } - e.doc && (X.trace("Adding nodes children "), XZt(e, e.doc, r, n, i, !s, a, o)); -}, "dataFetcher"), ZZt = /* @__PURE__ */ x(() => { - n5.clear(), Mh = 0; -}, "reset"), CP = "[*]", u1e = "start", h1e = CP, f1e = "end", kH = "color", SH = "fill", jZt = "bgFill", KZt = ","; -function EP() { + e.doc && (X.trace("Adding nodes children "), GZt(e, e.doc, r, n, i, !s, a, o)); +}, "dataFetcher"), HZt = /* @__PURE__ */ x(() => { + r5.clear(), Mh = 0; +}, "reset"), kP = "[*]", l1e = "start", c1e = kP, u1e = "end", xH = "color", wH = "fill", XZt = "bgFill", ZZt = ","; +function SP() { return /* @__PURE__ */ new Map(); } -x(EP, "newClassesList"); -var rS = [], _P = [], d1e = CZt, nS = [], pg = EP(), p1e = /* @__PURE__ */ x(() => ({ +x(SP, "newClassesList"); +var tS = [], TP = [], h1e = SZt, rS = [], pg = SP(), f1e = /* @__PURE__ */ x(() => ({ relations: [], states: /* @__PURE__ */ new Map(), documents: {} -}), "newDoc"), iS = { - root: p1e() -}, wa = iS.root, U2 = 0, TH = 0, JZt = { +}), "newDoc"), nS = { + root: f1e() +}, wa = nS.root, U2 = 0, OH = 0, jZt = { LINE: 0, DOTTED_LINE: 1 -}, ejt = { +}, KZt = { AGGREGATION: 0, EXTENSION: 1, COMPOSITION: 2, DEPENDENCY: 3 -}, IO = /* @__PURE__ */ x((t) => JSON.parse(JSON.stringify(t)), "clone"), tjt = /* @__PURE__ */ x((t) => { - X.info("Setting root doc", t), nS = t; -}, "setRootDoc"), rjt = /* @__PURE__ */ x(() => nS, "getRootDoc"), s5 = /* @__PURE__ */ x((t, e, r) => { - if (e.stmt === SP) - s5(t, e.state1, !0), s5(t, e.state2, !1); - else if (e.stmt === tS && (e.id === "[*]" ? (e.id = r ? t.id + "_start" : t.id + "_end", e.start = r) : e.id = e.id.trim()), e.doc) { +}, NO = /* @__PURE__ */ x((t) => JSON.parse(JSON.stringify(t)), "clone"), JZt = /* @__PURE__ */ x((t) => { + X.info("Setting root doc", t), rS = t; +}, "setRootDoc"), ejt = /* @__PURE__ */ x(() => rS, "getRootDoc"), i5 = /* @__PURE__ */ x((t, e, r) => { + if (e.stmt === wP) + i5(t, e.state1, !0), i5(t, e.state2, !1); + else if (e.stmt === eS && (e.id === "[*]" ? (e.id = r ? t.id + "_start" : t.id + "_end", e.start = r) : e.id = e.id.trim()), e.doc) { const n = []; let i = [], s; for (s = 0; s < e.doc.length; s++) - if (e.doc[s].type === Kge) { - const a = IO(e.doc[s]); - a.doc = IO(i), n.push(a), i = []; + if (e.doc[s].type === Zge) { + const a = NO(e.doc[s]); + a.doc = NO(i), n.push(a), i = []; } else i.push(e.doc[s]); if (n.length > 0 && i.length > 0) { const a = { - stmt: tS, - id: Cae(), + stmt: eS, + id: Sae(), type: "divider", - doc: IO(i) + doc: NO(i) }; - n.push(IO(a)), e.doc = n; + n.push(NO(a)), e.doc = n; } - e.doc.forEach((a) => s5(e, a, !0)); + e.doc.forEach((a) => i5(e, a, !0)); } -}, "docTranslator"), AP = /* @__PURE__ */ x(() => (s5({ id: "root" }, { id: "root", doc: nS }, !0), { id: "root", doc: nS }), "getRootDocV2"), njt = /* @__PURE__ */ x((t) => { +}, "docTranslator"), CP = /* @__PURE__ */ x(() => (i5({ id: "root" }, { id: "root", doc: rS }, !0), { id: "root", doc: rS }), "getRootDocV2"), tjt = /* @__PURE__ */ x((t) => { let e; - t.doc ? e = t.doc : e = t, X.info(e), g1e(!0), X.info("Extract initial document:", e), e.forEach((s) => { + t.doc ? e = t.doc : e = t, X.info(e), d1e(!0), X.info("Extract initial document:", e), e.forEach((s) => { switch (X.warn("Statement", s.stmt), s.stmt) { - case tS: + case eS: Rf( s.id.trim(), s.type, @@ -92599,13 +92543,13 @@ var rS = [], _P = [], d1e = CZt, nS = [], pg = EP(), p1e = /* @__PURE__ */ x(() s.textStyles ); break; - case SP: - x1e(s.state1, s.state2, s.description); + case wP: + y1e(s.state1, s.state2, s.description); break; - case EZt: - w1e(s.id.trim(), s.classes); + case TZt: + b1e(s.id.trim(), s.classes); break; - case _Zt: + case CZt: { const a = s.id.trim().split(","), o = s.styleClass.split(","); a.forEach((l) => { @@ -92621,13 +92565,13 @@ var rS = [], _P = [], d1e = CZt, nS = [], pg = EP(), p1e = /* @__PURE__ */ x(() }); } break; - case AZt: - LP(s.id.trim(), s.styleClass); + case EZt: + EP(s.id.trim(), s.styleClass); break; } }); - const r = m1e(), i = be().look; - ZZt(), Pv(void 0, AP(), r, rS, _P, !0, i, pg), rS.forEach((s) => { + const r = p1e(), i = be().look; + HZt(), Pv(void 0, CP(), r, tS, TP, !0, i, pg), tS.forEach((s) => { if (Array.isArray(s.label)) { if (s.description = s.label.slice(1), s.isGroup && s.description.length > 0) throw new Error( @@ -92647,44 +92591,44 @@ var rS = [], _P = [], d1e = CZt, nS = [], pg = EP(), p1e = /* @__PURE__ */ x(() classes: [], styles: [], textStyles: [] - })), n && (X.info("Setting state description", l, n), typeof n == "string" && tR(l, n.trim()), typeof n == "object" && n.forEach((u) => tR(l, u.trim()))), i) { + })), n && (X.info("Setting state description", l, n), typeof n == "string" && K9(l, n.trim()), typeof n == "object" && n.forEach((u) => K9(l, u.trim()))), i) { const u = wa.states.get(l); u.note = i, u.note.text = at.sanitizeText(u.note.text, be()); } - s && (X.info("Setting state classes", l, s), (typeof s == "string" ? [s] : s).forEach((h) => LP(l, h.trim()))), a && (X.info("Setting state styles", l, a), (typeof a == "string" ? [a] : a).forEach((h) => cjt(l, h.trim()))), o && (X.info("Setting state styles", l, a), (typeof o == "string" ? [o] : o).forEach((h) => ujt(l, h.trim()))); -}, "addState"), g1e = /* @__PURE__ */ x(function(t) { - rS = [], _P = [], iS = { - root: p1e() - }, wa = iS.root, U2 = 0, pg = EP(), t || Xi(); + s && (X.info("Setting state classes", l, s), (typeof s == "string" ? [s] : s).forEach((h) => EP(l, h.trim()))), a && (X.info("Setting state styles", l, a), (typeof a == "string" ? [a] : a).forEach((h) => ojt(l, h.trim()))), o && (X.info("Setting state styles", l, a), (typeof o == "string" ? [o] : o).forEach((h) => ljt(l, h.trim()))); +}, "addState"), d1e = /* @__PURE__ */ x(function(t) { + tS = [], TP = [], nS = { + root: f1e() + }, wa = nS.root, U2 = 0, pg = SP(), t || Xi(); }, "clear"), E0 = /* @__PURE__ */ x(function(t) { return wa.states.get(t); -}, "getState"), m1e = /* @__PURE__ */ x(function() { +}, "getState"), p1e = /* @__PURE__ */ x(function() { return wa.states; -}, "getStates"), ijt = /* @__PURE__ */ x(function() { - X.info("Documents = ", iS); -}, "logDocuments"), sjt = /* @__PURE__ */ x(function() { +}, "getStates"), rjt = /* @__PURE__ */ x(function() { + X.info("Documents = ", nS); +}, "logDocuments"), njt = /* @__PURE__ */ x(function() { return wa.relations; }, "getRelations"); -function sS(t = "") { +function iS(t = "") { let e = t; - return t === CP && (U2++, e = `${u1e}${U2}`), e; + return t === kP && (U2++, e = `${l1e}${U2}`), e; } -x(sS, "startIdIfNeeded"); -function aS(t = "", e = Qx) { - return t === CP ? u1e : e; +x(iS, "startIdIfNeeded"); +function sS(t = "", e = Qx) { + return t === kP ? l1e : e; } -x(aS, "startTypeIfNeeded"); -function v1e(t = "") { +x(sS, "startTypeIfNeeded"); +function g1e(t = "") { let e = t; - return t === h1e && (U2++, e = `${f1e}${U2}`), e; + return t === c1e && (U2++, e = `${u1e}${U2}`), e; } -x(v1e, "endIdIfNeeded"); -function y1e(t = "", e = Qx) { - return t === h1e ? f1e : e; +x(g1e, "endIdIfNeeded"); +function m1e(t = "", e = Qx) { + return t === c1e ? u1e : e; } -x(y1e, "endTypeIfNeeded"); -function b1e(t, e, r) { - let n = sS(t.id.trim()), i = aS(t.id.trim(), t.type), s = sS(e.id.trim()), a = aS(e.id.trim(), e.type); +x(m1e, "endTypeIfNeeded"); +function v1e(t, e, r) { + let n = iS(t.id.trim()), i = sS(t.id.trim(), t.type), s = iS(e.id.trim()), a = sS(e.id.trim(), e.type); Rf( n, i, @@ -92709,37 +92653,37 @@ function b1e(t, e, r) { relationTitle: at.sanitizeText(r, be()) }); } -x(b1e, "addRelationObjs"); -var x1e = /* @__PURE__ */ x(function(t, e, r) { +x(v1e, "addRelationObjs"); +var y1e = /* @__PURE__ */ x(function(t, e, r) { if (typeof t == "object") - b1e(t, e, r); + v1e(t, e, r); else { - const n = sS(t.trim()), i = aS(t), s = v1e(e.trim()), a = y1e(e); + const n = iS(t.trim()), i = sS(t), s = g1e(e.trim()), a = m1e(e); Rf(n, i), Rf(s, a), wa.relations.push({ id1: n, id2: s, title: at.sanitizeText(r, be()) }); } -}, "addRelation"), tR = /* @__PURE__ */ x(function(t, e) { +}, "addRelation"), K9 = /* @__PURE__ */ x(function(t, e) { const r = wa.states.get(t), n = e.startsWith(":") ? e.replace(":", "").trim() : e; r.descriptions.push(at.sanitizeText(n, be())); -}, "addDescription"), ajt = /* @__PURE__ */ x(function(t) { +}, "addDescription"), ijt = /* @__PURE__ */ x(function(t) { return t.substring(0, 1) === ":" ? t.substr(2).trim() : t.trim(); -}, "cleanupLabel"), ojt = /* @__PURE__ */ x(() => (TH++, "divider-id-" + TH), "getDividerId"), w1e = /* @__PURE__ */ x(function(t, e = "") { +}, "cleanupLabel"), sjt = /* @__PURE__ */ x(() => (OH++, "divider-id-" + OH), "getDividerId"), b1e = /* @__PURE__ */ x(function(t, e = "") { pg.has(t) || pg.set(t, { id: t, styles: [], textStyles: [] }); const r = pg.get(t); - e != null && e.split(KZt).forEach((n) => { + e != null && e.split(ZZt).forEach((n) => { const i = n.replace(/([^;]*);/, "$1").trim(); - if (RegExp(kH).exec(n)) { - const a = i.replace(SH, jZt).replace(kH, SH); + if (RegExp(xH).exec(n)) { + const a = i.replace(wH, XZt).replace(xH, wH); r.textStyles.push(a); } r.styles.push(i); }); -}, "addStyleClass"), ljt = /* @__PURE__ */ x(function() { +}, "addStyleClass"), ajt = /* @__PURE__ */ x(function() { return pg; -}, "getClasses"), LP = /* @__PURE__ */ x(function(t, e) { +}, "getClasses"), EP = /* @__PURE__ */ x(function(t, e) { t.split(",").forEach(function(r) { let n = E0(r); if (n === void 0) { @@ -92748,49 +92692,49 @@ var x1e = /* @__PURE__ */ x(function(t, e, r) { } n.classes.push(e); }); -}, "setCssClass"), cjt = /* @__PURE__ */ x(function(t, e) { +}, "setCssClass"), ojt = /* @__PURE__ */ x(function(t, e) { const r = E0(t); r !== void 0 && r.styles.push(e); -}, "setStyle"), ujt = /* @__PURE__ */ x(function(t, e) { +}, "setStyle"), ljt = /* @__PURE__ */ x(function(t, e) { const r = E0(t); r !== void 0 && r.textStyles.push(e); -}, "setTextStyle"), hjt = /* @__PURE__ */ x(() => d1e, "getDirection"), fjt = /* @__PURE__ */ x((t) => { - d1e = t; -}, "setDirection"), djt = /* @__PURE__ */ x((t) => t && t[0] === ":" ? t.substr(1).trim() : t.trim(), "trimColon"), pjt = /* @__PURE__ */ x(() => { +}, "setTextStyle"), cjt = /* @__PURE__ */ x(() => h1e, "getDirection"), ujt = /* @__PURE__ */ x((t) => { + h1e = t; +}, "setDirection"), hjt = /* @__PURE__ */ x((t) => t && t[0] === ":" ? t.substr(1).trim() : t.trim(), "trimColon"), fjt = /* @__PURE__ */ x(() => { const t = be(); - return { nodes: rS, edges: _P, other: {}, config: t, direction: o1e(AP()) }; + return { nodes: tS, edges: TP, other: {}, config: t, direction: s1e(CP()) }; }, "getData"), yu = { getConfig: /* @__PURE__ */ x(() => be().state, "getConfig"), - getData: pjt, + getData: fjt, addState: Rf, - clear: g1e, + clear: d1e, getState: E0, - getStates: m1e, - getRelations: sjt, - getClasses: ljt, - getDirection: hjt, - addRelation: x1e, - getDividerId: ojt, - setDirection: fjt, - cleanupLabel: ajt, - lineType: JZt, - relationType: ejt, - logDocuments: ijt, - getRootDoc: rjt, - setRootDoc: tjt, - getRootDocV2: AP, - extract: njt, - trimColon: djt, + getStates: p1e, + getRelations: njt, + getClasses: ajt, + getDirection: cjt, + addRelation: y1e, + getDividerId: sjt, + setDirection: ujt, + cleanupLabel: ijt, + lineType: jZt, + relationType: KZt, + logDocuments: rjt, + getRootDoc: ejt, + setRootDoc: JZt, + getRootDocV2: CP, + extract: tjt, + trimColon: hjt, getAccTitle: vs, setAccTitle: Zi, getAccDescription: bs, setAccDescription: ys, - addStyleClass: w1e, - setCssClass: LP, - addDescription: tR, + addStyleClass: b1e, + setCssClass: EP, + addDescription: K9, setDiagramTitle: fa, getDiagramTitle: xs -}, gjt = /* @__PURE__ */ x((t) => ` +}, djt = /* @__PURE__ */ x((t) => ` defs #statediagram-barbEnd { fill: ${t.transitionColor}; stroke: ${t.transitionColor}; @@ -93004,17 +92948,17 @@ g.stateGroup line { font-size: 18px; fill: ${t.textColor}; } -`, "getStyles"), O1e = gjt, RP = {}, mjt = /* @__PURE__ */ x((t, e) => { - RP[t] = e; -}, "set"), vjt = /* @__PURE__ */ x((t) => RP[t], "get"), k1e = /* @__PURE__ */ x(() => Object.keys(RP), "keys"), yjt = /* @__PURE__ */ x(() => k1e().length, "size"), bjt = { - get: vjt, - set: mjt, - keys: k1e, - size: yjt -}, xjt = /* @__PURE__ */ x((t) => t.append("circle").attr("class", "start-state").attr("r", be().state.sizeUnit).attr("cx", be().state.padding + be().state.sizeUnit).attr("cy", be().state.padding + be().state.sizeUnit), "drawStartState"), wjt = /* @__PURE__ */ x((t) => t.append("line").style("stroke", "grey").style("stroke-dasharray", "3").attr("x1", be().state.textHeight).attr("class", "divider").attr("x2", be().state.textHeight * 2).attr("y1", 0).attr("y2", 0), "drawDivider"), Ojt = /* @__PURE__ */ x((t, e) => { +`, "getStyles"), x1e = djt, _P = {}, pjt = /* @__PURE__ */ x((t, e) => { + _P[t] = e; +}, "set"), gjt = /* @__PURE__ */ x((t) => _P[t], "get"), w1e = /* @__PURE__ */ x(() => Object.keys(_P), "keys"), mjt = /* @__PURE__ */ x(() => w1e().length, "size"), vjt = { + get: gjt, + set: pjt, + keys: w1e, + size: mjt +}, yjt = /* @__PURE__ */ x((t) => t.append("circle").attr("class", "start-state").attr("r", be().state.sizeUnit).attr("cx", be().state.padding + be().state.sizeUnit).attr("cy", be().state.padding + be().state.sizeUnit), "drawStartState"), bjt = /* @__PURE__ */ x((t) => t.append("line").style("stroke", "grey").style("stroke-dasharray", "3").attr("x1", be().state.textHeight).attr("class", "divider").attr("x2", be().state.textHeight * 2).attr("y1", 0).attr("y2", 0), "drawDivider"), xjt = /* @__PURE__ */ x((t, e) => { const r = t.append("text").attr("x", 2 * be().state.padding).attr("y", be().state.textHeight + 2 * be().state.padding).attr("font-size", be().state.fontSize).attr("class", "state-title").text(e.id), n = r.node().getBBox(); return t.insert("rect", ":first-child").attr("x", be().state.padding).attr("y", be().state.padding).attr("width", n.width + 2 * be().state.padding).attr("height", n.height + 2 * be().state.padding).attr("rx", be().state.radius), r; -}, "drawSimpleState"), kjt = /* @__PURE__ */ x((t, e) => { +}, "drawSimpleState"), wjt = /* @__PURE__ */ x((t, e) => { const r = /* @__PURE__ */ x(function(d, p, g) { const m = d.append("tspan").attr("x", 2 * be().state.padding).text(p); g || m.attr("dy", be().state.textHeight); @@ -93028,7 +92972,7 @@ g.stateGroup line { }); const u = t.append("line").attr("x1", be().state.padding).attr("y1", be().state.padding + s + be().state.dividerMargin / 2).attr("y2", be().state.padding + s + be().state.dividerMargin / 2).attr("class", "descr-divider"), h = a.node().getBBox(), f = Math.max(h.width, i.width); return u.attr("x2", f + 3 * be().state.padding), t.insert("rect", ":first-child").attr("x", be().state.padding).attr("y", be().state.padding).attr("width", f + 2 * be().state.padding).attr("height", h.height + s + 2 * be().state.padding).attr("rx", be().state.radius), t; -}, "drawDescrState"), Sjt = /* @__PURE__ */ x((t, e, r) => { +}, "drawDescrState"), Ojt = /* @__PURE__ */ x((t, e, r) => { const n = be().state.padding, i = 2 * be().state.padding, s = t.node().getBBox(), a = s.width, o = s.x, l = t.append("text").attr("x", 0).attr("y", be().state.titleShift).attr("font-size", be().state.fontSize).attr("class", "state-title").text(e.id), h = l.node().getBBox().width + i; let f = Math.max(h, a); f === a && (f = f + i); @@ -93046,20 +92990,20 @@ g.stateGroup line { "y", be().state.titleShift - be().state.textHeight - be().state.padding ).attr("width", f).attr("height", p.height + 3 + 2 * be().state.textHeight).attr("rx", be().state.radius), t; -}, "addTitleAndBox"), Tjt = /* @__PURE__ */ x((t) => (t.append("circle").attr("class", "end-state-outer").attr("r", be().state.sizeUnit + be().state.miniPadding).attr( +}, "addTitleAndBox"), kjt = /* @__PURE__ */ x((t) => (t.append("circle").attr("class", "end-state-outer").attr("r", be().state.sizeUnit + be().state.miniPadding).attr( "cx", be().state.padding + be().state.sizeUnit + be().state.miniPadding ).attr( "cy", be().state.padding + be().state.sizeUnit + be().state.miniPadding -), t.append("circle").attr("class", "end-state-inner").attr("r", be().state.sizeUnit).attr("cx", be().state.padding + be().state.sizeUnit + 2).attr("cy", be().state.padding + be().state.sizeUnit + 2)), "drawEndState"), Cjt = /* @__PURE__ */ x((t, e) => { +), t.append("circle").attr("class", "end-state-inner").attr("r", be().state.sizeUnit).attr("cx", be().state.padding + be().state.sizeUnit + 2).attr("cy", be().state.padding + be().state.sizeUnit + 2)), "drawEndState"), Sjt = /* @__PURE__ */ x((t, e) => { let r = be().state.forkWidth, n = be().state.forkHeight; if (e.parentId) { let i = r; r = n, n = i; } return t.append("rect").style("stroke", "black").style("fill", "black").attr("width", r).attr("height", n).attr("x", be().state.padding).attr("y", be().state.padding); -}, "drawForkJoinState"), Ejt = /* @__PURE__ */ x((t, e, r, n) => { +}, "drawForkJoinState"), Tjt = /* @__PURE__ */ x((t, e, r, n) => { let i = 0; const s = n.append("text"); s.style("text-anchor", "start"), s.attr("class", "noteText"); @@ -93079,21 +93023,21 @@ g.stateGroup line { } } return { textWidth: s.node().getBBox().width, textHeight: i }; -}, "_drawLongText"), _jt = /* @__PURE__ */ x((t, e) => { +}, "_drawLongText"), Cjt = /* @__PURE__ */ x((t, e) => { e.attr("class", "state-note"); - const r = e.append("rect").attr("x", 0).attr("y", be().state.padding), n = e.append("g"), { textWidth: i, textHeight: s } = Ejt(t, 0, 0, n); + const r = e.append("rect").attr("x", 0).attr("y", be().state.padding), n = e.append("g"), { textWidth: i, textHeight: s } = Tjt(t, 0, 0, n); return r.attr("height", s + 2 * be().state.noteMargin), r.attr("width", i + be().state.noteMargin * 2), r; -}, "drawNote"), CH = /* @__PURE__ */ x(function(t, e) { +}, "drawNote"), kH = /* @__PURE__ */ x(function(t, e) { const r = e.id, n = { id: r, label: e.id, width: 0, height: 0 }, i = t.append("g").attr("id", r).attr("class", "stateGroup"); - e.type === "start" && xjt(i), e.type === "end" && Tjt(i), (e.type === "fork" || e.type === "join") && Cjt(i, e), e.type === "note" && _jt(e.note.text, i), e.type === "divider" && wjt(i), e.type === "default" && e.descriptions.length === 0 && Ojt(i, e), e.type === "default" && e.descriptions.length > 0 && kjt(i, e); + e.type === "start" && yjt(i), e.type === "end" && kjt(i), (e.type === "fork" || e.type === "join") && Sjt(i, e), e.type === "note" && Cjt(e.note.text, i), e.type === "divider" && bjt(i), e.type === "default" && e.descriptions.length === 0 && xjt(i, e), e.type === "default" && e.descriptions.length > 0 && wjt(i, e); const s = i.node().getBBox(); - return n.width = s.width + 2 * be().state.padding, n.height = s.height + 2 * be().state.padding, bjt.set(r, n), n; -}, "drawState"), EH = 0, Ajt = /* @__PURE__ */ x(function(t, e, r) { + return n.width = s.width + 2 * be().state.padding, n.height = s.height + 2 * be().state.padding, vjt.set(r, n), n; +}, "drawState"), SH = 0, Ejt = /* @__PURE__ */ x(function(t, e, r) { const n = /* @__PURE__ */ x(function(l) { switch (l) { case yu.relationType.AGGREGATION: @@ -93111,7 +93055,7 @@ g.stateGroup line { return l.x; }).y(function(l) { return l.y; - }).curve(j1), a = t.append("path").attr("d", s(i)).attr("id", "edge" + EH).attr("class", "transition"); + }).curve(j1), a = t.append("path").attr("d", s(i)).attr("id", "edge" + SH).attr("class", "transition"); let o = ""; if (be().state.arrowMarkerAbsolute && (o = window.location.protocol + "//" + window.location.host + window.location.pathname + window.location.search, o = o.replace(/\(/g, "\\("), o = o.replace(/\)/g, "\\)")), a.attr( "marker-end", @@ -93133,11 +93077,11 @@ g.stateGroup line { const y = l.node().getBBox(); l.insert("rect", ":first-child").attr("class", "box").attr("x", u - g / 2 - be().state.padding / 2).attr("y", h - v / 2 - be().state.padding / 2 - 3.5).attr("width", g + be().state.padding).attr("height", v + be().state.padding), X.info(y); } - EH++; -}, "drawEdge"), eo, rA = {}, Ljt = /* @__PURE__ */ x(function() { -}, "setConf"), Rjt = /* @__PURE__ */ x(function(t) { + SH++; +}, "drawEdge"), eo, eA = {}, _jt = /* @__PURE__ */ x(function() { +}, "setConf"), Ajt = /* @__PURE__ */ x(function(t) { t.append("defs").append("marker").attr("id", "dependencyEnd").attr("refX", 19).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 19,7 L9,13 L14,7 L9,1 Z"); -}, "insertMarkers"), Mjt = /* @__PURE__ */ x(function(t, e, r, n) { +}, "insertMarkers"), Ljt = /* @__PURE__ */ x(function(t, e, r, n) { eo = be().state; const i = be().securityLevel; let s; @@ -93145,15 +93089,15 @@ g.stateGroup line { const a = et(i === "sandbox" ? s.nodes()[0].contentDocument.body : "body"), o = i === "sandbox" ? s.nodes()[0].contentDocument : document; X.debug("Rendering diagram " + t); const l = a.select(`[id='${e}']`); - Rjt(l); + Ajt(l); const u = n.db.getRootDoc(); - S1e(u, l, void 0, !1, a, o, n); + O1e(u, l, void 0, !1, a, o, n); const h = eo.padding, f = l.node().getBBox(), d = f.width + h * 2, p = f.height + h * 2, g = d * 1.75; ms(l, p, g, eo.useMaxWidth), l.attr( "viewBox", `${f.x - eo.padding} ${f.y - eo.padding} ` + d + " " + p ); -}, "draw"), Djt = /* @__PURE__ */ x((t) => t ? t.length * eo.fontSizeFactor : 1, "getLabelWidth"), S1e = /* @__PURE__ */ x((t, e, r, n, i, s, a) => { +}, "draw"), Rjt = /* @__PURE__ */ x((t) => t ? t.length * eo.fontSizeFactor : 1, "getLabelWidth"), O1e = /* @__PURE__ */ x((t, e, r, n, i, s, a) => { const o = new $i({ compound: !0, multigraph: !0 @@ -93190,21 +93134,21 @@ g.stateGroup line { let w; if (b.doc) { let O = e.append("g").attr("id", b.id).attr("class", "stateGroup"); - w = S1e(b.doc, O, b.id, !n, i, s, a); + w = O1e(b.doc, O, b.id, !n, i, s, a); { - O = Sjt(O, b, n); + O = Ojt(O, b, n); let S = O.node().getBBox(); - w.width = S.width, w.height = S.height + eo.padding / 2, rA[b.id] = { y: eo.compositTitleSize }; + w.width = S.width, w.height = S.height + eo.padding / 2, eA[b.id] = { y: eo.compositTitleSize }; } } else - w = CH(e, b, o); + w = kH(e, b, o); if (b.note) { const O = { descriptions: [], id: b.id + "-note", note: b.note, type: "note" - }, S = CH(e, O, o); + }, S = kH(e, O, o); b.note.position === "left of" ? (o.setNode(w.id + "-note", S), o.setNode(w.id, w)) : (o.setNode(w.id, w), o.setNode(w.id + "-note", S)), o.setParent(w.id, w.id + "-group"), o.setParent(w.id + "-note", w.id + "-group"); } else o.setNode(w.id, w); @@ -93217,7 +93161,7 @@ g.stateGroup line { y.id2, { relation: y, - width: Djt(y.title), + width: Rjt(y.title), height: eo.labelHeight * at.getRows(y.title).length, labelpos: "c" }, @@ -93228,7 +93172,7 @@ g.stateGroup line { o.nodes().forEach(function(y) { y !== void 0 && o.node(y) !== void 0 ? (X.warn("Node " + y + ": " + JSON.stringify(o.node(y))), i.select("#" + g.id + " #" + y).attr( "transform", - "translate(" + (o.node(y).x - o.node(y).width / 2) + "," + (o.node(y).y + (rA[y] ? rA[y].y : 0) - o.node(y).height / 2) + " )" + "translate(" + (o.node(y).x - o.node(y).width / 2) + "," + (o.node(y).y + (eA[y] ? eA[y].y : 0) - o.node(y).height / 2) + " )" ), i.select("#" + g.id + " #" + y).attr("data-x-shift", o.node(y).x - o.node(y).width / 2), s.querySelectorAll("#" + g.id + " #" + y + " .divider").forEach((w) => { const O = w.parentElement; let S = 0, C = 0; @@ -93237,7 +93181,7 @@ g.stateGroup line { }); let m = g.getBBox(); o.edges().forEach(function(y) { - y !== void 0 && o.edge(y) !== void 0 && (X.debug("Edge " + y.v + " -> " + y.w + ": " + JSON.stringify(o.edge(y))), Ajt(e, o.edge(y), o.edge(y).relation)); + y !== void 0 && o.edge(y) !== void 0 && (X.debug("Edge " + y.v + " -> " + y.w + ": " + JSON.stringify(o.edge(y))), Ejt(e, o.edge(y), o.edge(y).relation)); }), m = g.getBBox(); const v = { id: r || "root", @@ -93246,36 +93190,36 @@ g.stateGroup line { height: 0 }; return v.width = m.width + 2 * eo.padding, v.height = m.height + 2 * eo.padding, X.debug("Doc rendered", v, o), v; -}, "renderDoc"), Njt = { - setConf: Ljt, - draw: Mjt -}, Ijt = { - parser: Zge, +}, "renderDoc"), Mjt = { + setConf: _jt, + draw: Ljt +}, Djt = { + parser: Hge, db: yu, - renderer: Njt, - styles: O1e, + renderer: Mjt, + styles: x1e, init: /* @__PURE__ */ x((t) => { t.state || (t.state = {}), t.state.arrowMarkerAbsolute = t.arrowMarkerAbsolute, yu.clear(); }, "init") }; -const Pjt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +const Njt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - diagram: Ijt + diagram: Djt }, Symbol.toStringTag, { value: "Module" })); -var $jt = { - parser: Zge, +var Ijt = { + parser: Hge, db: yu, - renderer: HZt, - styles: O1e, + renderer: WZt, + styles: x1e, init: /* @__PURE__ */ x((t) => { t.state || (t.state = {}), t.state.arrowMarkerAbsolute = t.arrowMarkerAbsolute, yu.clear(); }, "init") }; -const Bjt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +const Pjt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - diagram: $jt + diagram: Ijt }, Symbol.toStringTag, { value: "Module" })); -var rR = function() { +var J9 = function() { var t = /* @__PURE__ */ x(function(f, d, p, g) { for (p = p || {}, g = f.length; g--; p[f[g]] = d) ; @@ -93610,26 +93554,26 @@ Expecting ` + G.join(", ") + ", got '" + (this.terminals_[M] || M) + "'" : ee = } return x(h, "Parser"), h.prototype = l, l.Parser = h, new h(); }(); -rR.parser = rR; -var Fjt = rR, T1 = "", MP = [], q2 = [], Y2 = [], zjt = /* @__PURE__ */ x(function() { - MP.length = 0, q2.length = 0, T1 = "", Y2.length = 0, Xi(); -}, "clear"), Vjt = /* @__PURE__ */ x(function(t) { - T1 = t, MP.push(t); -}, "addSection"), Ujt = /* @__PURE__ */ x(function() { - return MP; -}, "getSections"), qjt = /* @__PURE__ */ x(function() { - let t = _H(); +J9.parser = J9; +var $jt = J9, T1 = "", AP = [], q2 = [], Y2 = [], Bjt = /* @__PURE__ */ x(function() { + AP.length = 0, q2.length = 0, T1 = "", Y2.length = 0, Xi(); +}, "clear"), Fjt = /* @__PURE__ */ x(function(t) { + T1 = t, AP.push(t); +}, "addSection"), zjt = /* @__PURE__ */ x(function() { + return AP; +}, "getSections"), Vjt = /* @__PURE__ */ x(function() { + let t = TH(); const e = 100; let r = 0; for (; !t && r < e; ) - t = _H(), r++; + t = TH(), r++; return q2.push(...Y2), q2; -}, "getTasks"), Yjt = /* @__PURE__ */ x(function() { +}, "getTasks"), Ujt = /* @__PURE__ */ x(function() { const t = []; return q2.forEach((r) => { r.people && t.push(...r.people); }), [...new Set(t)].sort(); -}, "updateActors"), Qjt = /* @__PURE__ */ x(function(t, e) { +}, "updateActors"), qjt = /* @__PURE__ */ x(function(t, e) { const r = e.substr(1).split(":"); let n = 0, i = []; r.length === 1 ? (n = Number(r[0]), i = []) : (n = Number(r[0]), i = r[1].split(",")); @@ -93641,7 +93585,7 @@ var Fjt = rR, T1 = "", MP = [], q2 = [], Y2 = [], zjt = /* @__PURE__ */ x(functi score: n }; Y2.push(a); -}, "addTask"), Wjt = /* @__PURE__ */ x(function(t) { +}, "addTask"), Yjt = /* @__PURE__ */ x(function(t) { const e = { section: T1, type: T1, @@ -93650,7 +93594,7 @@ var Fjt = rR, T1 = "", MP = [], q2 = [], Y2 = [], zjt = /* @__PURE__ */ x(functi classes: [] }; q2.push(e); -}, "addTaskOrg"), _H = /* @__PURE__ */ x(function() { +}, "addTaskOrg"), TH = /* @__PURE__ */ x(function() { const t = /* @__PURE__ */ x(function(r) { return Y2[r].processed; }, "compileTask"); @@ -93658,24 +93602,24 @@ var Fjt = rR, T1 = "", MP = [], q2 = [], Y2 = [], zjt = /* @__PURE__ */ x(functi for (const [r, n] of Y2.entries()) t(r), e = e && n.processed; return e; -}, "compileTasks"), Gjt = /* @__PURE__ */ x(function() { - return Yjt(); -}, "getActors"), AH = { +}, "compileTasks"), Qjt = /* @__PURE__ */ x(function() { + return Ujt(); +}, "getActors"), CH = { getConfig: /* @__PURE__ */ x(() => be().journey, "getConfig"), - clear: zjt, + clear: Bjt, setDiagramTitle: fa, getDiagramTitle: xs, setAccTitle: Zi, getAccTitle: vs, setAccDescription: ys, getAccDescription: bs, - addSection: Vjt, - getSections: Ujt, - getTasks: qjt, - addTask: Qjt, - addTaskOrg: Wjt, - getActors: Gjt -}, Hjt = /* @__PURE__ */ x((t) => `.label { + addSection: Fjt, + getSections: zjt, + getTasks: Vjt, + addTask: qjt, + addTaskOrg: Yjt, + getActors: Qjt +}, Wjt = /* @__PURE__ */ x((t) => `.label { font-family: 'trebuchet ms', verdana, arial, sans-serif; font-family: var(--mermaid-font-family); color: ${t.textColor}; @@ -93808,9 +93752,9 @@ var Fjt = rR, T1 = "", MP = [], q2 = [], Y2 = [], zjt = /* @__PURE__ */ x(functi .actor-5 { ${t.actor5 ? `fill: ${t.actor5}` : ""}; } -`, "getStyles"), Xjt = Hjt, DP = /* @__PURE__ */ x(function(t, e) { - return uC(t, e); -}, "drawRect"), Zjt = /* @__PURE__ */ x(function(t, e) { +`, "getStyles"), Gjt = Wjt, LP = /* @__PURE__ */ x(function(t, e) { + return lC(t, e); +}, "drawRect"), Hjt = /* @__PURE__ */ x(function(t, e) { const n = t.append("circle").attr("cx", e.cx).attr("cy", e.cy).attr("class", "face").attr("r", 15).attr("stroke-width", 2).attr("overflow", "visible"), i = t.append("g"); i.append("circle").attr("cx", e.cx - 15 / 3).attr("cy", e.cy - 15 / 3).attr("r", 1.5).attr("stroke-width", 2).attr("fill", "#666").attr("stroke", "#666"), i.append("circle").attr("cx", e.cx + 15 / 3).attr("cy", e.cy - 15 / 3).attr("r", 1.5).attr("stroke-width", 2).attr("fill", "#666").attr("stroke", "#666"); function s(l) { @@ -93827,21 +93771,21 @@ var Fjt = rR, T1 = "", MP = [], q2 = [], Y2 = [], zjt = /* @__PURE__ */ x(functi l.append("line").attr("class", "mouth").attr("stroke", 2).attr("x1", e.cx - 5).attr("y1", e.cy + 7).attr("x2", e.cx + 5).attr("y2", e.cy + 7).attr("class", "mouth").attr("stroke-width", "1px").attr("stroke", "#666"); } return x(o, "ambivalent"), e.score > 3 ? s(i) : e.score < 3 ? a(i) : o(i), n; -}, "drawFace"), T1e = /* @__PURE__ */ x(function(t, e) { +}, "drawFace"), k1e = /* @__PURE__ */ x(function(t, e) { const r = t.append("circle"); return r.attr("cx", e.cx), r.attr("cy", e.cy), r.attr("class", "actor-" + e.pos), r.attr("fill", e.fill), r.attr("stroke", e.stroke), r.attr("r", e.r), r.class !== void 0 && r.attr("class", r.class), e.title !== void 0 && r.append("title").text(e.title), r; -}, "drawCircle"), C1e = /* @__PURE__ */ x(function(t, e) { - return wIt(t, e); -}, "drawText"), jjt = /* @__PURE__ */ x(function(t, e) { +}, "drawCircle"), S1e = /* @__PURE__ */ x(function(t, e) { + return bIt(t, e); +}, "drawText"), Xjt = /* @__PURE__ */ x(function(t, e) { function r(i, s, a, o, l) { return i + "," + s + " " + (i + a) + "," + s + " " + (i + a) + "," + (s + o - l) + " " + (i + a - l * 1.2) + "," + (s + o) + " " + i + "," + (s + o); } x(r, "genPoints"); const n = t.append("polygon"); - n.attr("points", r(e.x, e.y, 50, 20, 7)), n.attr("class", "labelBox"), e.y = e.y + e.labelMargin, e.x = e.x + 0.5 * e.labelMargin, C1e(t, e); -}, "drawLabel"), Kjt = /* @__PURE__ */ x(function(t, e, r) { + n.attr("points", r(e.x, e.y, 50, 20, 7)), n.attr("class", "labelBox"), e.y = e.y + e.labelMargin, e.x = e.x + 0.5 * e.labelMargin, S1e(t, e); +}, "drawLabel"), Zjt = /* @__PURE__ */ x(function(t, e, r) { const n = t.append("g"), i = ep(); - i.x = e.x, i.y = e.y, i.fill = e.fill, i.width = r.width * e.taskCount + r.diagramMarginX * (e.taskCount - 1), i.height = r.height, i.class = "journey-section section-type-" + e.num, i.rx = 3, i.ry = 3, DP(n, i), E1e(r)( + i.x = e.x, i.y = e.y, i.fill = e.fill, i.width = r.width * e.taskCount + r.diagramMarginX * (e.taskCount - 1), i.height = r.height, i.class = "journey-section section-type-" + e.num, i.rx = 3, i.ry = 3, LP(n, i), T1e(r)( e.text, n, i.x, @@ -93852,17 +93796,17 @@ var Fjt = rR, T1 = "", MP = [], q2 = [], Y2 = [], zjt = /* @__PURE__ */ x(functi r, e.colour ); -}, "drawSection"), LH = -1, Jjt = /* @__PURE__ */ x(function(t, e, r) { +}, "drawSection"), EH = -1, jjt = /* @__PURE__ */ x(function(t, e, r) { const n = e.x + r.width / 2, i = t.append("g"); - LH++; + EH++; const s = 300 + 5 * 30; - i.append("line").attr("id", "task" + LH).attr("x1", n).attr("y1", e.y).attr("x2", n).attr("y2", s).attr("class", "task-line").attr("stroke-width", "1px").attr("stroke-dasharray", "4 2").attr("stroke", "#666"), Zjt(i, { + i.append("line").attr("id", "task" + EH).attr("x1", n).attr("y1", e.y).attr("x2", n).attr("y2", s).attr("class", "task-line").attr("stroke-width", "1px").attr("stroke-dasharray", "4 2").attr("stroke", "#666"), Hjt(i, { cx: n, cy: 300 + (5 - e.score) * 30, score: e.score }); const a = ep(); - a.x = e.x, a.y = e.y, a.fill = e.fill, a.width = r.width, a.height = r.height, a.class = "task task-type-" + e.num, a.rx = 3, a.ry = 3, DP(i, a); + a.x = e.x, a.y = e.y, a.fill = e.fill, a.width = r.width, a.height = r.height, a.class = "task task-type-" + e.num, a.rx = 3, a.ry = 3, LP(i, a); let o = e.x + 14; e.people.forEach((l) => { const u = e.actors[l].color, h = { @@ -93874,8 +93818,8 @@ var Fjt = rR, T1 = "", MP = [], q2 = [], Y2 = [], zjt = /* @__PURE__ */ x(functi title: l, pos: e.actors[l].position }; - T1e(i, h), o += 10; - }), E1e(r)( + k1e(i, h), o += 10; + }), T1e(r)( e.task, i, a.x, @@ -93886,9 +93830,9 @@ var Fjt = rR, T1 = "", MP = [], q2 = [], Y2 = [], zjt = /* @__PURE__ */ x(functi r, e.colour ); -}, "drawTask"), eKt = /* @__PURE__ */ x(function(t, e) { - hfe(t, e); -}, "drawBackgroundRect"), E1e = /* @__PURE__ */ function() { +}, "drawTask"), Kjt = /* @__PURE__ */ x(function(t, e) { + cfe(t, e); +}, "drawBackgroundRect"), T1e = /* @__PURE__ */ function() { function t(i, s, a, o, l, u, h, f) { const d = s.append("text").attr("x", a + l / 2).attr("y", o + u / 2 + 5).style("font-color", f).style("text-anchor", "middle").text(i); n(d, h); @@ -93914,23 +93858,23 @@ var Fjt = rR, T1 = "", MP = [], q2 = [], Y2 = [], zjt = /* @__PURE__ */ x(functi return x(n, "_setTextAttrs"), function(i) { return i.textPlacement === "fo" ? r : i.textPlacement === "old" ? t : e; }; -}(), tKt = /* @__PURE__ */ x(function(t) { +}(), Jjt = /* @__PURE__ */ x(function(t) { t.append("defs").append("marker").attr("id", "arrowhead").attr("refX", 5).attr("refY", 2).attr("markerWidth", 6).attr("markerHeight", 4).attr("orient", "auto").append("path").attr("d", "M 0,0 V 4 L6,2 Z"); }, "initGraphics"), Q2 = { - drawRect: DP, - drawCircle: T1e, - drawSection: Kjt, - drawText: C1e, - drawLabel: jjt, - drawTask: Jjt, - drawBackgroundRect: eKt, - initGraphics: tKt -}, rKt = /* @__PURE__ */ x(function(t) { + drawRect: LP, + drawCircle: k1e, + drawSection: Zjt, + drawText: S1e, + drawLabel: Xjt, + drawTask: jjt, + drawBackgroundRect: Kjt, + initGraphics: Jjt +}, eKt = /* @__PURE__ */ x(function(t) { Object.keys(t).forEach(function(r) { - BC[r] = t[r]; + PC[r] = t[r]; }); }, "setConf"), Su = {}; -function _1e(t) { +function C1e(t) { const e = be().journey; let r = 60; Object.keys(Su).forEach((n) => { @@ -93953,8 +93897,8 @@ function _1e(t) { Q2.drawText(t, a), r += 20; }); } -x(_1e, "drawActorLegend"); -var BC = be().journey, kd = BC.leftMargin, nKt = /* @__PURE__ */ x(function(t, e, r, n) { +x(C1e, "drawActorLegend"); +var PC = be().journey, kd = PC.leftMargin, tKt = /* @__PURE__ */ x(function(t, e, r, n) { const i = be().journey, s = be().securityLevel; let a; s === "sandbox" && (a = et("#i" + e)); @@ -93971,7 +93915,7 @@ var BC = be().journey, kd = BC.leftMargin, nKt = /* @__PURE__ */ x(function(t, e color: i.actorColours[d % i.actorColours.length], position: d }, d++; - }), _1e(l), To.insert(0, 0, kd, Object.keys(Su).length * 50), iKt(l, u, 0); + }), C1e(l), To.insert(0, 0, kd, Object.keys(Su).length * 50), rKt(l, u, 0); const p = To.getBounds(); h && l.append("text").text(h).attr("x", kd).attr("font-size", "4ex").attr("font-weight", "bold").attr("y", 25); const g = p.stopy - p.starty + 2 * i.diagramMarginY, m = kd + p.stopx + 2 * i.diagramMarginX; @@ -94023,14 +93967,14 @@ var BC = be().journey, kd = BC.leftMargin, nKt = /* @__PURE__ */ x(function(t, e getBounds: /* @__PURE__ */ x(function() { return this.data; }, "getBounds") -}, nA = BC.sectionFills, RH = BC.sectionColours, iKt = /* @__PURE__ */ x(function(t, e, r) { +}, tA = PC.sectionFills, _H = PC.sectionColours, rKt = /* @__PURE__ */ x(function(t, e, r) { const n = be().journey; let i = ""; const s = n.height * 2 + n.diagramMarginY, a = r + s; let o = 0, l = "#CCC", u = "black", h = 0; for (const [f, d] of e.entries()) { if (i !== d.section) { - l = nA[o % nA.length], h = o % nA.length, u = RH[o % RH.length]; + l = tA[o % tA.length], h = o % tA.length, u = _H[o % _H.length]; let g = 0; const m = d.section; for (let y = f; y < e.length && e[y].section == m; y++) @@ -94049,23 +93993,23 @@ var BC = be().journey, kd = BC.leftMargin, nKt = /* @__PURE__ */ x(function(t, e const p = d.people.reduce((g, m) => (Su[m] && (g[m] = Su[m]), g), {}); d.x = f * n.taskMargin + f * n.width + kd, d.y = a, d.width = n.diagramMarginX, d.height = n.diagramMarginY, d.colour = u, d.fill = l, d.num = h, d.actors = p, Q2.drawTask(t, d, n), To.insert(d.x, d.y, d.x + d.width + n.taskMargin, 300 + 5 * 30); } -}, "drawTasks"), MH = { - setConf: rKt, - draw: nKt -}, sKt = { - parser: Fjt, - db: AH, - renderer: MH, - styles: Xjt, +}, "drawTasks"), AH = { + setConf: eKt, + draw: tKt +}, nKt = { + parser: $jt, + db: CH, + renderer: AH, + styles: Gjt, init: /* @__PURE__ */ x((t) => { - MH.setConf(t.journey), AH.clear(); + AH.setConf(t.journey), CH.clear(); }, "init") }; -const aKt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +const iKt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - diagram: sKt + diagram: nKt }, Symbol.toStringTag, { value: "Module" })); -var nR = function() { +var eR = function() { var t = /* @__PURE__ */ x(function(d, p, g, m) { for (g = g || {}, m = d.length; m--; g[d[m]] = p) ; @@ -94401,35 +94345,35 @@ Expecting ` + ee.join(", ") + ", got '" + (this.terminals_[I] || I) + "'" : Q = } return x(f, "Parser"), f.prototype = u, u.Parser = f, new f(); }(); -nR.parser = nR; -var oKt = nR, A1e = {}; -wie(A1e, { - addEvent: () => $1e, - addSection: () => D1e, - addTask: () => P1e, - addTaskOrg: () => B1e, - clear: () => M1e, - default: () => lKt, - getCommonDb: () => R1e, - getSections: () => N1e, - getTasks: () => I1e +eR.parser = eR; +var sKt = eR, E1e = {}; +bie(E1e, { + addEvent: () => I1e, + addSection: () => R1e, + addTask: () => N1e, + addTaskOrg: () => P1e, + clear: () => L1e, + default: () => aKt, + getCommonDb: () => A1e, + getSections: () => M1e, + getTasks: () => D1e }); -var C1 = "", L1e = 0, NP = [], oS = [], E1 = [], R1e = /* @__PURE__ */ x(() => ED, "getCommonDb"), M1e = /* @__PURE__ */ x(function() { - NP.length = 0, oS.length = 0, C1 = "", E1.length = 0, Xi(); -}, "clear"), D1e = /* @__PURE__ */ x(function(t) { - C1 = t, NP.push(t); -}, "addSection"), N1e = /* @__PURE__ */ x(function() { - return NP; -}, "getSections"), I1e = /* @__PURE__ */ x(function() { - let t = DH(); +var C1 = "", _1e = 0, RP = [], aS = [], E1 = [], A1e = /* @__PURE__ */ x(() => SD, "getCommonDb"), L1e = /* @__PURE__ */ x(function() { + RP.length = 0, aS.length = 0, C1 = "", E1.length = 0, Xi(); +}, "clear"), R1e = /* @__PURE__ */ x(function(t) { + C1 = t, RP.push(t); +}, "addSection"), M1e = /* @__PURE__ */ x(function() { + return RP; +}, "getSections"), D1e = /* @__PURE__ */ x(function() { + let t = LH(); const e = 100; let r = 0; for (; !t && r < e; ) - t = DH(), r++; - return oS.push(...E1), oS; -}, "getTasks"), P1e = /* @__PURE__ */ x(function(t, e, r) { + t = LH(), r++; + return aS.push(...E1), aS; +}, "getTasks"), N1e = /* @__PURE__ */ x(function(t, e, r) { const n = { - id: L1e++, + id: _1e++, section: C1, type: C1, task: t, @@ -94437,9 +94381,9 @@ var C1 = "", L1e = 0, NP = [], oS = [], E1 = [], R1e = /* @__PURE__ */ x(() => E events: r ? [r] : [] }; E1.push(n); -}, "addTask"), $1e = /* @__PURE__ */ x(function(t) { - E1.find((r) => r.id === L1e - 1).events.push(t); -}, "addEvent"), B1e = /* @__PURE__ */ x(function(t) { +}, "addTask"), I1e = /* @__PURE__ */ x(function(t) { + E1.find((r) => r.id === _1e - 1).events.push(t); +}, "addEvent"), P1e = /* @__PURE__ */ x(function(t) { const e = { section: C1, type: C1, @@ -94447,8 +94391,8 @@ var C1 = "", L1e = 0, NP = [], oS = [], E1 = [], R1e = /* @__PURE__ */ x(() => E task: t, classes: [] }; - oS.push(e); -}, "addTaskOrg"), DH = /* @__PURE__ */ x(function() { + aS.push(e); +}, "addTaskOrg"), LH = /* @__PURE__ */ x(function() { const t = /* @__PURE__ */ x(function(r) { return E1[r].processed; }, "compileTask"); @@ -94456,19 +94400,19 @@ var C1 = "", L1e = 0, NP = [], oS = [], E1 = [], R1e = /* @__PURE__ */ x(() => E for (const [r, n] of E1.entries()) t(r), e = e && n.processed; return e; -}, "compileTasks"), lKt = { - clear: M1e, - getCommonDb: R1e, - addSection: D1e, - getSections: N1e, - getTasks: I1e, - addTask: P1e, - addTaskOrg: B1e, - addEvent: $1e -}, cKt = 12, FC = /* @__PURE__ */ x(function(t, e) { +}, "compileTasks"), aKt = { + clear: L1e, + getCommonDb: A1e, + addSection: R1e, + getSections: M1e, + getTasks: D1e, + addTask: N1e, + addTaskOrg: P1e, + addEvent: I1e +}, oKt = 12, $C = /* @__PURE__ */ x(function(t, e) { const r = t.append("rect"); return r.attr("x", e.x), r.attr("y", e.y), r.attr("fill", e.fill), r.attr("stroke", e.stroke), r.attr("width", e.width), r.attr("height", e.height), r.attr("rx", e.rx), r.attr("ry", e.ry), e.class !== void 0 && r.attr("class", e.class), r; -}, "drawRect"), uKt = /* @__PURE__ */ x(function(t, e) { +}, "drawRect"), lKt = /* @__PURE__ */ x(function(t, e) { const n = t.append("circle").attr("cx", e.cx).attr("cy", e.cy).attr("class", "face").attr("r", 15).attr("stroke-width", 2).attr("overflow", "visible"), i = t.append("g"); i.append("circle").attr("cx", e.cx - 15 / 3).attr("cy", e.cy - 15 / 3).attr("r", 1.5).attr("stroke-width", 2).attr("fill", "#666").attr("stroke", "#666"), i.append("circle").attr("cx", e.cx + 15 / 3).attr("cy", e.cy - 15 / 3).attr("r", 1.5).attr("stroke-width", 2).attr("fill", "#666").attr("stroke", "#666"); function s(l) { @@ -94485,24 +94429,24 @@ var C1 = "", L1e = 0, NP = [], oS = [], E1 = [], R1e = /* @__PURE__ */ x(() => E l.append("line").attr("class", "mouth").attr("stroke", 2).attr("x1", e.cx - 5).attr("y1", e.cy + 7).attr("x2", e.cx + 5).attr("y2", e.cy + 7).attr("class", "mouth").attr("stroke-width", "1px").attr("stroke", "#666"); } return x(o, "ambivalent"), e.score > 3 ? s(i) : e.score < 3 ? a(i) : o(i), n; -}, "drawFace"), hKt = /* @__PURE__ */ x(function(t, e) { +}, "drawFace"), cKt = /* @__PURE__ */ x(function(t, e) { const r = t.append("circle"); return r.attr("cx", e.cx), r.attr("cy", e.cy), r.attr("class", "actor-" + e.pos), r.attr("fill", e.fill), r.attr("stroke", e.stroke), r.attr("r", e.r), r.class !== void 0 && r.attr("class", r.class), e.title !== void 0 && r.append("title").text(e.title), r; -}, "drawCircle"), F1e = /* @__PURE__ */ x(function(t, e) { +}, "drawCircle"), $1e = /* @__PURE__ */ x(function(t, e) { const r = e.text.replace(//gi, " "), n = t.append("text"); n.attr("x", e.x), n.attr("y", e.y), n.attr("class", "legend"), n.style("text-anchor", e.anchor), e.class !== void 0 && n.attr("class", e.class); const i = n.append("tspan"); return i.attr("x", e.x + e.textMargin * 2), i.text(r), n; -}, "drawText"), fKt = /* @__PURE__ */ x(function(t, e) { +}, "drawText"), uKt = /* @__PURE__ */ x(function(t, e) { function r(i, s, a, o, l) { return i + "," + s + " " + (i + a) + "," + s + " " + (i + a) + "," + (s + o - l) + " " + (i + a - l * 1.2) + "," + (s + o) + " " + i + "," + (s + o); } x(r, "genPoints"); const n = t.append("polygon"); - n.attr("points", r(e.x, e.y, 50, 20, 7)), n.attr("class", "labelBox"), e.y = e.y + e.labelMargin, e.x = e.x + 0.5 * e.labelMargin, F1e(t, e); -}, "drawLabel"), dKt = /* @__PURE__ */ x(function(t, e, r) { - const n = t.append("g"), i = IP(); - i.x = e.x, i.y = e.y, i.fill = e.fill, i.width = r.width, i.height = r.height, i.class = "journey-section section-type-" + e.num, i.rx = 3, i.ry = 3, FC(n, i), z1e(r)( + n.attr("points", r(e.x, e.y, 50, 20, 7)), n.attr("class", "labelBox"), e.y = e.y + e.labelMargin, e.x = e.x + 0.5 * e.labelMargin, $1e(t, e); +}, "drawLabel"), hKt = /* @__PURE__ */ x(function(t, e, r) { + const n = t.append("g"), i = MP(); + i.x = e.x, i.y = e.y, i.fill = e.fill, i.width = r.width, i.height = r.height, i.class = "journey-section section-type-" + e.num, i.rx = 3, i.ry = 3, $C(n, i), B1e(r)( e.text, n, i.x, @@ -94513,17 +94457,17 @@ var C1 = "", L1e = 0, NP = [], oS = [], E1 = [], R1e = /* @__PURE__ */ x(() => E r, e.colour ); -}, "drawSection"), NH = -1, pKt = /* @__PURE__ */ x(function(t, e, r) { +}, "drawSection"), RH = -1, fKt = /* @__PURE__ */ x(function(t, e, r) { const n = e.x + r.width / 2, i = t.append("g"); - NH++; + RH++; const s = 300 + 5 * 30; - i.append("line").attr("id", "task" + NH).attr("x1", n).attr("y1", e.y).attr("x2", n).attr("y2", s).attr("class", "task-line").attr("stroke-width", "1px").attr("stroke-dasharray", "4 2").attr("stroke", "#666"), uKt(i, { + i.append("line").attr("id", "task" + RH).attr("x1", n).attr("y1", e.y).attr("x2", n).attr("y2", s).attr("class", "task-line").attr("stroke-width", "1px").attr("stroke-dasharray", "4 2").attr("stroke", "#666"), lKt(i, { cx: n, cy: 300 + (5 - e.score) * 30, score: e.score }); - const a = IP(); - a.x = e.x, a.y = e.y, a.fill = e.fill, a.width = r.width, a.height = r.height, a.class = "task task-type-" + e.num, a.rx = 3, a.ry = 3, FC(i, a), z1e(r)( + const a = MP(); + a.x = e.x, a.y = e.y, a.fill = e.fill, a.width = r.width, a.height = r.height, a.class = "task task-type-" + e.num, a.rx = 3, a.ry = 3, $C(i, a), B1e(r)( e.task, i, a.x, @@ -94534,8 +94478,8 @@ var C1 = "", L1e = 0, NP = [], oS = [], E1 = [], R1e = /* @__PURE__ */ x(() => E r, e.colour ); -}, "drawTask"), gKt = /* @__PURE__ */ x(function(t, e) { - FC(t, { +}, "drawTask"), dKt = /* @__PURE__ */ x(function(t, e) { + $C(t, { x: e.startx, y: e.starty, width: e.stopx - e.startx, @@ -94543,7 +94487,7 @@ var C1 = "", L1e = 0, NP = [], oS = [], E1 = [], R1e = /* @__PURE__ */ x(() => E fill: e.fill, class: "rect" }).lower(); -}, "drawBackgroundRect"), mKt = /* @__PURE__ */ x(function() { +}, "drawBackgroundRect"), pKt = /* @__PURE__ */ x(function() { return { x: 0, y: 0, @@ -94555,7 +94499,7 @@ var C1 = "", L1e = 0, NP = [], oS = [], E1 = [], R1e = /* @__PURE__ */ x(() => E rx: 0, ry: 0 }; -}, "getTextObj"), IP = /* @__PURE__ */ x(function() { +}, "getTextObj"), MP = /* @__PURE__ */ x(function() { return { x: 0, y: 0, @@ -94565,7 +94509,7 @@ var C1 = "", L1e = 0, NP = [], oS = [], E1 = [], R1e = /* @__PURE__ */ x(() => E rx: 0, ry: 0 }; -}, "getNoteRect"), z1e = /* @__PURE__ */ function() { +}, "getNoteRect"), B1e = /* @__PURE__ */ function() { function t(i, s, a, o, l, u, h, f) { const d = s.append("text").attr("x", a + l / 2).attr("y", o + u / 2 + 5).style("font-color", f).style("text-anchor", "middle").text(i); n(d, h); @@ -94591,49 +94535,49 @@ var C1 = "", L1e = 0, NP = [], oS = [], E1 = [], R1e = /* @__PURE__ */ x(() => E return x(n, "_setTextAttrs"), function(i) { return i.textPlacement === "fo" ? r : i.textPlacement === "old" ? t : e; }; -}(), vKt = /* @__PURE__ */ x(function(t) { +}(), gKt = /* @__PURE__ */ x(function(t) { t.append("defs").append("marker").attr("id", "arrowhead").attr("refX", 5).attr("refY", 2).attr("markerWidth", 6).attr("markerHeight", 4).attr("orient", "auto").append("path").attr("d", "M 0,0 V 4 L6,2 Z"); }, "initGraphics"); -function PP(t, e) { +function DP(t, e) { t.each(function() { var r = et(this), n = r.text().split(/(\s+|
)/).reverse(), i, s = [], a = 1.1, o = r.attr("y"), l = parseFloat(r.attr("dy")), u = r.text(null).append("tspan").attr("x", 0).attr("y", o).attr("dy", l + "em"); for (let h = 0; h < n.length; h++) i = n[n.length - 1 - h], s.push(i), u.text(s.join(" ").trim()), (u.node().getComputedTextLength() > e || i === "
") && (s.pop(), u.text(s.join(" ").trim()), i === "
" ? s = [""] : s = [i], u = r.append("tspan").attr("x", 0).attr("y", o).attr("dy", a + "em").text(i)); }); } -x(PP, "wrap"); -var yKt = /* @__PURE__ */ x(function(t, e, r, n) { +x(DP, "wrap"); +var mKt = /* @__PURE__ */ x(function(t, e, r, n) { var f; - const i = r % cKt - 1, s = t.append("g"); + const i = r % oKt - 1, s = t.append("g"); e.section = i, s.attr( "class", (e.class ? e.class + " " : "") + "timeline-node " + ("section-" + i) ); - const a = s.append("g"), o = s.append("g"), u = o.append("text").text(e.descr).attr("dy", "1em").attr("alignment-baseline", "middle").attr("dominant-baseline", "middle").attr("text-anchor", "middle").call(PP, e.width).node().getBBox(), h = (f = n.fontSize) != null && f.replace ? n.fontSize.replace("px", "") : n.fontSize; - return e.height = u.height + h * 1.1 * 0.5 + e.padding, e.height = Math.max(e.height, e.maxHeight), e.width = e.width + 2 * e.padding, o.attr("transform", "translate(" + e.width / 2 + ", " + e.padding / 2 + ")"), xKt(a, e, i, n), e; -}, "drawNode"), bKt = /* @__PURE__ */ x(function(t, e, r) { + const a = s.append("g"), o = s.append("g"), u = o.append("text").text(e.descr).attr("dy", "1em").attr("alignment-baseline", "middle").attr("dominant-baseline", "middle").attr("text-anchor", "middle").call(DP, e.width).node().getBBox(), h = (f = n.fontSize) != null && f.replace ? n.fontSize.replace("px", "") : n.fontSize; + return e.height = u.height + h * 1.1 * 0.5 + e.padding, e.height = Math.max(e.height, e.maxHeight), e.width = e.width + 2 * e.padding, o.attr("transform", "translate(" + e.width / 2 + ", " + e.padding / 2 + ")"), yKt(a, e, i, n), e; +}, "drawNode"), vKt = /* @__PURE__ */ x(function(t, e, r) { var o; - const n = t.append("g"), s = n.append("text").text(e.descr).attr("dy", "1em").attr("alignment-baseline", "middle").attr("dominant-baseline", "middle").attr("text-anchor", "middle").call(PP, e.width).node().getBBox(), a = (o = r.fontSize) != null && o.replace ? r.fontSize.replace("px", "") : r.fontSize; + const n = t.append("g"), s = n.append("text").text(e.descr).attr("dy", "1em").attr("alignment-baseline", "middle").attr("dominant-baseline", "middle").attr("text-anchor", "middle").call(DP, e.width).node().getBBox(), a = (o = r.fontSize) != null && o.replace ? r.fontSize.replace("px", "") : r.fontSize; return n.remove(), s.height + a * 1.1 * 0.5 + e.padding; -}, "getVirtualNodeHeight"), xKt = /* @__PURE__ */ x(function(t, e, r) { +}, "getVirtualNodeHeight"), yKt = /* @__PURE__ */ x(function(t, e, r) { t.append("path").attr("id", "node-" + e.id).attr("class", "node-bkg node-" + e.type).attr( "d", `M0 ${e.height - 5} v${-e.height + 2 * 5} q0,-5 5,-5 h${e.width - 2 * 5} q5,0 5,5 v${e.height - 5} H0 Z` ), t.append("line").attr("class", "node-line-" + r).attr("x1", 0).attr("y1", e.height).attr("x2", e.width).attr("y2", e.height); }, "defaultBkg"), Sd = { - drawRect: FC, - drawCircle: hKt, - drawSection: dKt, - drawText: F1e, - drawLabel: fKt, - drawTask: pKt, - drawBackgroundRect: gKt, - getTextObj: mKt, - getNoteRect: IP, - initGraphics: vKt, - drawNode: yKt, - getVirtualNodeHeight: bKt -}, wKt = /* @__PURE__ */ x(function(t, e, r, n) { + drawRect: $C, + drawCircle: cKt, + drawSection: hKt, + drawText: $1e, + drawLabel: uKt, + drawTask: fKt, + drawBackgroundRect: dKt, + getTextObj: pKt, + getNoteRect: MP, + initGraphics: gKt, + drawNode: mKt, + getVirtualNodeHeight: vKt +}, bKt = /* @__PURE__ */ x(function(t, e, r, n) { var E, R, _, A, $; const i = be(), s = (E = i.leftMargin) != null ? E : 50; X.debug("timeline", n.db); @@ -94697,7 +94641,7 @@ var yKt = /* @__PURE__ */ x(function(t, e, r, n) { }; X.debug("sectionNode", M); const I = u.append("g"), D = Sd.drawNode(I, M, w, i); - X.debug("sectionNode output", D), I.attr("transform", `translate(${y}, ${v})`), b += p + 50, N.length > 0 && IH( + X.debug("sectionNode output", D), I.attr("transform", `translate(${y}, ${v})`), b += p + 50, N.length > 0 && MH( u, N, w, @@ -94710,7 +94654,7 @@ var yKt = /* @__PURE__ */ x(function(t, e, r, n) { p, !1 ), y += 200 * Math.max(N.length, 1), b = v, w++; - }) : (O = !1, IH( + }) : (O = !1, MH( u, h, w, @@ -94730,7 +94674,7 @@ var yKt = /* @__PURE__ */ x(function(t, e, r, n) { (_ = (R = i.timeline) == null ? void 0 : R.padding) != null ? _ : 50, ($ = (A = i.timeline) == null ? void 0 : A.useMaxWidth) != null ? $ : !1 ); -}, "draw"), IH = /* @__PURE__ */ x(function(t, e, r, n, i, s, a, o, l, u, h) { +}, "draw"), MH = /* @__PURE__ */ x(function(t, e, r, n, i, s, a, o, l, u, h) { var f; for (const d of e) { const p = { @@ -94746,7 +94690,7 @@ var yKt = /* @__PURE__ */ x(function(t, e, r, n) { if (X.debug("taskHeight after draw", v), g.attr("transform", `translate(${n}, ${i})`), s = Math.max(s, v), d.events) { const y = t.append("g").attr("class", "lineWrapper"); let b = s; - i += 100, b = b + OKt(t, d.events, r, n, i, a), i -= 100, y.append("line").attr("x1", n + 190 / 2).attr("y1", i + s).attr("x2", n + 190 / 2).attr( + i += 100, b = b + xKt(t, d.events, r, n, i, a), i -= 100, y.append("line").attr("x1", n + 190 / 2).attr("y1", i + s).attr("x2", n + 190 / 2).attr( "y2", i + s + (h ? s : u) + l + 120 ).attr("stroke-width", 2).attr("stroke", "black").attr("marker-end", "url(#arrowhead)").attr("stroke-dasharray", "5,5"); @@ -94754,7 +94698,7 @@ var yKt = /* @__PURE__ */ x(function(t, e, r, n) { n = n + 200, h && !((f = a.timeline) != null && f.disableMulticolor) && r++; } i = i - 10; -}, "drawTasks"), OKt = /* @__PURE__ */ x(function(t, e, r, n, i, s) { +}, "drawTasks"), xKt = /* @__PURE__ */ x(function(t, e, r, n, i, s) { let a = 0; const o = i; i = i + 100; @@ -94772,11 +94716,11 @@ var yKt = /* @__PURE__ */ x(function(t, e, r, n) { a = a + d, h.attr("transform", `translate(${n}, ${i})`), i = i + 10 + d; } return i = o, a; -}, "drawEvents"), kKt = { +}, "drawEvents"), wKt = { setConf: /* @__PURE__ */ x(() => { }, "setConf"), - draw: wKt -}, SKt = /* @__PURE__ */ x((t) => { + draw: bKt +}, OKt = /* @__PURE__ */ x((t) => { let e = ""; for (let r = 0; r < t.THEME_COLOR_LIMIT; r++) t["lineColor" + r] = t["lineColor" + r] || t["cScaleInv" + r], z0(t["lineColor" + r]) ? t["lineColor" + r] = Ft(t["lineColor" + r], 20) : t["lineColor" + r] = Qt(t["lineColor" + r], 20); @@ -94817,11 +94761,11 @@ var yKt = /* @__PURE__ */ x(function(t, e, r, n) { `; } return e; -}, "genSections"), TKt = /* @__PURE__ */ x((t) => ` +}, "genSections"), kKt = /* @__PURE__ */ x((t) => ` .edge { stroke-width: 3; } - ${SKt(t)} + ${OKt(t)} .section-root rect, .section-root path, .section-root circle { fill: ${t.git0}; } @@ -94840,15 +94784,15 @@ var yKt = /* @__PURE__ */ x(function(t, e, r, n) { .eventWrapper { filter: brightness(120%); } -`, "getStyles"), CKt = TKt, EKt = { - db: A1e, - renderer: kKt, - parser: oKt, - styles: CKt +`, "getStyles"), SKt = kKt, TKt = { + db: E1e, + renderer: wKt, + parser: sKt, + styles: SKt }; -const _Kt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +const CKt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - diagram: EKt + diagram: TKt }, Symbol.toStringTag, { value: "Module" })); function Ii(t) { return Ii = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) { @@ -94857,22 +94801,22 @@ function Ii(t) { return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e; }, Ii(t); } -function $P(t, e) { +function NP(t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function"); } -function PH(t, e) { +function DH(t, e) { for (var r = 0; r < e.length; r++) { var n = e[r]; n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(t, n.key, n); } } -function BP(t, e, r) { - return e && PH(t.prototype, e), r && PH(t, r), Object.defineProperty(t, "prototype", { +function IP(t, e, r) { + return e && DH(t.prototype, e), r && DH(t, r), Object.defineProperty(t, "prototype", { writable: !1 }), t; } -function V1e(t, e, r) { +function F1e(t, e, r) { return e in t ? Object.defineProperty(t, e, { value: r, enumerable: !0, @@ -94881,13 +94825,13 @@ function V1e(t, e, r) { }) : t[e] = r, t; } function ul(t, e) { - return AKt(t) || LKt(t, e) || U1e(t, e) || RKt(); + return EKt(t) || _Kt(t, e) || z1e(t, e) || AKt(); } -function AKt(t) { +function EKt(t) { if (Array.isArray(t)) return t; } -function LKt(t, e) { +function _Kt(t, e) { var r = t == null ? null : typeof Symbol < "u" && t[Symbol.iterator] || t["@@iterator"]; if (r != null) { var n = [], i = !0, s = !1, a, o; @@ -94907,31 +94851,31 @@ function LKt(t, e) { return n; } } -function U1e(t, e) { +function z1e(t, e) { if (!!t) { if (typeof t == "string") - return $H(t, e); + return NH(t, e); var r = Object.prototype.toString.call(t).slice(8, -1); if (r === "Object" && t.constructor && (r = t.constructor.name), r === "Map" || r === "Set") return Array.from(t); if (r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)) - return $H(t, e); + return NH(t, e); } } -function $H(t, e) { +function NH(t, e) { (e == null || e > t.length) && (e = t.length); for (var r = 0, n = new Array(e); r < e; r++) n[r] = t[r]; return n; } -function RKt() { +function AKt() { throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`); } -function q1e(t, e) { +function V1e(t, e) { var r = typeof Symbol < "u" && t[Symbol.iterator] || t["@@iterator"]; if (!r) { - if (Array.isArray(t) || (r = U1e(t)) || e && t && typeof t.length == "number") { + if (Array.isArray(t) || (r = z1e(t)) || e && t && typeof t.length == "number") { r && (t = r); var n = 0, i = function() { }; @@ -94976,50 +94920,50 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } }; } -var xi = typeof window > "u" ? null : window, BH = xi ? xi.navigator : null; +var xi = typeof window > "u" ? null : window, IH = xi ? xi.navigator : null; xi && xi.document; -var MKt = Ii(""), Y1e = Ii({}), DKt = Ii(function() { -}), NKt = typeof HTMLElement > "u" ? "undefined" : Ii(HTMLElement), Gx = function(e) { +var LKt = Ii(""), U1e = Ii({}), RKt = Ii(function() { +}), MKt = typeof HTMLElement > "u" ? "undefined" : Ii(HTMLElement), Gx = function(e) { return e && e.instanceString && Pn(e.instanceString) ? e.instanceString() : null; }, qt = function(e) { - return e != null && Ii(e) == MKt; + return e != null && Ii(e) == LKt; }, Pn = function(e) { - return e != null && Ii(e) === DKt; + return e != null && Ii(e) === RKt; }, sn = function(e) { return !co(e) && (Array.isArray ? Array.isArray(e) : e != null && e instanceof Array); }, Ar = function(e) { - return e != null && Ii(e) === Y1e && !sn(e) && e.constructor === Object; -}, IKt = function(e) { - return e != null && Ii(e) === Y1e; + return e != null && Ii(e) === U1e && !sn(e) && e.constructor === Object; +}, DKt = function(e) { + return e != null && Ii(e) === U1e; }, bt = function(e) { return e != null && Ii(e) === Ii(1) && !isNaN(e); -}, PKt = function(e) { +}, NKt = function(e) { return bt(e) && Math.floor(e) === e; -}, lS = function(e) { - if (NKt !== "undefined") +}, oS = function(e) { + if (MKt !== "undefined") return e != null && e instanceof HTMLElement; }, co = function(e) { - return Hx(e) || Q1e(e); + return Hx(e) || q1e(e); }, Hx = function(e) { return Gx(e) === "collection" && e._private.single; -}, Q1e = function(e) { +}, q1e = function(e) { return Gx(e) === "collection" && !e._private.single; -}, FP = function(e) { +}, PP = function(e) { return Gx(e) === "core"; -}, W1e = function(e) { +}, Y1e = function(e) { return Gx(e) === "stylesheet"; -}, $Kt = function(e) { +}, IKt = function(e) { return Gx(e) === "event"; }, Mf = function(e) { return e == null ? !0 : !!(e === "" || e.match(/^\s+$/)); -}, BKt = function(e) { +}, PKt = function(e) { return typeof HTMLElement > "u" ? !1 : e instanceof HTMLElement; -}, FKt = function(e) { +}, $Kt = function(e) { return Ar(e) && bt(e.x1) && bt(e.x2) && bt(e.y1) && bt(e.y2); -}, zKt = function(e) { - return IKt(e) && Pn(e.then); -}, VKt = function() { - return BH && BH.userAgent.match(/msie|trident|edge/i); +}, BKt = function(e) { + return DKt(e) && Pn(e.then); +}, FKt = function() { + return IH && IH.userAgent.match(/msie|trident|edge/i); }, W2 = function(e, r) { r || (r = function() { if (arguments.length === 1) @@ -95035,24 +94979,24 @@ var MKt = Ii(""), Y1e = Ii({}), DKt = Ii(function() { return (o = u[l]) || (o = u[l] = e.apply(s, a)), o; }; return n.cache = {}, n; -}, zP = W2(function(t) { +}, $P = W2(function(t) { return t.replace(/([A-Z])/g, function(e) { return "-" + e.toLowerCase(); }); -}), zC = W2(function(t) { +}), BC = W2(function(t) { return t.replace(/(-\w)/g, function(e) { return e[1].toUpperCase(); }); -}), G1e = W2(function(t, e) { +}), Q1e = W2(function(t, e) { return t + e[0].toUpperCase() + e.substring(1); }, function(t, e) { return t + "$" + e; -}), FH = function(e) { +}), PH = function(e) { return Mf(e) ? e : e.charAt(0).toUpperCase() + e.substring(1); -}, _i = "(?:[-+]?(?:(?:\\d+|\\d*\\.\\d+)(?:[Ee][+-]?\\d+)?))", UKt = "rgb[a]?\\((" + _i + "[%]?)\\s*,\\s*(" + _i + "[%]?)\\s*,\\s*(" + _i + "[%]?)(?:\\s*,\\s*(" + _i + "))?\\)", qKt = "rgb[a]?\\((?:" + _i + "[%]?)\\s*,\\s*(?:" + _i + "[%]?)\\s*,\\s*(?:" + _i + "[%]?)(?:\\s*,\\s*(?:" + _i + "))?\\)", YKt = "hsl[a]?\\((" + _i + ")\\s*,\\s*(" + _i + "[%])\\s*,\\s*(" + _i + "[%])(?:\\s*,\\s*(" + _i + "))?\\)", QKt = "hsl[a]?\\((?:" + _i + ")\\s*,\\s*(?:" + _i + "[%])\\s*,\\s*(?:" + _i + "[%])(?:\\s*,\\s*(?:" + _i + "))?\\)", WKt = "\\#[0-9a-fA-F]{3}", GKt = "\\#[0-9a-fA-F]{6}", H1e = function(e, r) { +}, _i = "(?:[-+]?(?:(?:\\d+|\\d*\\.\\d+)(?:[Ee][+-]?\\d+)?))", zKt = "rgb[a]?\\((" + _i + "[%]?)\\s*,\\s*(" + _i + "[%]?)\\s*,\\s*(" + _i + "[%]?)(?:\\s*,\\s*(" + _i + "))?\\)", VKt = "rgb[a]?\\((?:" + _i + "[%]?)\\s*,\\s*(?:" + _i + "[%]?)\\s*,\\s*(?:" + _i + "[%]?)(?:\\s*,\\s*(?:" + _i + "))?\\)", UKt = "hsl[a]?\\((" + _i + ")\\s*,\\s*(" + _i + "[%])\\s*,\\s*(" + _i + "[%])(?:\\s*,\\s*(" + _i + "))?\\)", qKt = "hsl[a]?\\((?:" + _i + ")\\s*,\\s*(?:" + _i + "[%])\\s*,\\s*(?:" + _i + "[%])(?:\\s*,\\s*(?:" + _i + "))?\\)", YKt = "\\#[0-9a-fA-F]{3}", QKt = "\\#[0-9a-fA-F]{6}", W1e = function(e, r) { return e < r ? -1 : e > r ? 1 : 0; -}, HKt = function(e, r) { - return -1 * H1e(e, r); +}, WKt = function(e, r) { + return -1 * W1e(e, r); }, Kt = Object.assign != null ? Object.assign.bind(Object) : function(t) { for (var e = arguments, r = 1; r < e.length; r++) { var n = e[r]; @@ -95063,17 +95007,17 @@ var MKt = Ii(""), Y1e = Ii({}), DKt = Ii(function() { } } return t; -}, XKt = function(e) { +}, GKt = function(e) { if (!(!(e.length === 4 || e.length === 7) || e[0] !== "#")) { var r = e.length === 4, n, i, s, a = 16; return r ? (n = parseInt(e[1] + e[1], a), i = parseInt(e[2] + e[2], a), s = parseInt(e[3] + e[3], a)) : (n = parseInt(e[1] + e[2], a), i = parseInt(e[3] + e[4], a), s = parseInt(e[5] + e[6], a)), [n, i, s]; } -}, ZKt = function(e) { +}, HKt = function(e) { var r, n, i, s, a, o, l, u; function h(g, m, v) { return v < 0 && (v += 1), v > 1 && (v -= 1), v < 1 / 6 ? g + (m - g) * 6 * v : v < 1 / 2 ? m : v < 2 / 3 ? g + (m - g) * (2 / 3 - v) * 6 : g; } - var f = new RegExp("^" + YKt + "$").exec(e); + var f = new RegExp("^" + UKt + "$").exec(e); if (f) { if (n = parseInt(f[1]), n < 0 ? n = (360 - -1 * n % 360) % 360 : n > 360 && (n = n % 360), n /= 360, i = parseFloat(f[2]), i < 0 || i > 100 || (i = i / 100, s = parseFloat(f[3]), s < 0 || s > 100) || (s = s / 100, a = f[4], a !== void 0 && (a = parseFloat(a), a < 0 || a > 1))) return; @@ -95086,8 +95030,8 @@ var MKt = Ii(""), Y1e = Ii({}), DKt = Ii(function() { r = [o, l, u, a]; } return r; -}, jKt = function(e) { - var r, n = new RegExp("^" + UKt + "$").exec(e); +}, XKt = function(e) { + var r, n = new RegExp("^" + zKt + "$").exec(e); if (n) { r = []; for (var i = [], s = 1; s <= 3; s++) { @@ -95107,11 +95051,11 @@ var MKt = Ii(""), Y1e = Ii({}), DKt = Ii(function() { } } return r; -}, KKt = function(e) { - return eJt[e.toLowerCase()]; -}, JKt = function(e) { - return (sn(e) ? e : null) || KKt(e) || XKt(e) || jKt(e) || ZKt(e); -}, eJt = { +}, ZKt = function(e) { + return KKt[e.toLowerCase()]; +}, jKt = function(e) { + return (sn(e) ? e : null) || ZKt(e) || GKt(e) || XKt(e) || HKt(e); +}, KKt = { transparent: [0, 0, 0, 0], aliceblue: [240, 248, 255], antiquewhite: [250, 235, 215], @@ -95260,14 +95204,14 @@ var MKt = Ii(""), Y1e = Ii({}), DKt = Ii(function() { whitesmoke: [245, 245, 245], yellow: [255, 255, 0], yellowgreen: [154, 205, 50] -}, X1e = function(e) { +}, G1e = function(e) { for (var r = e.map, n = e.keys, i = n.length, s = 0; s < i; s++) { var a = n[s]; if (Ar(a)) throw Error("Tried to set map with object key"); s < n.length - 1 ? (r[a] == null && (r[a] = {}), r = r[a]) : r[a] = e.value; } -}, Z1e = function(e) { +}, H1e = function(e) { for (var r = e.map, n = e.keys, i = n.length, s = 0; s < i; s++) { var a = n[s]; if (Ar(a)) @@ -95277,75 +95221,75 @@ var MKt = Ii(""), Y1e = Ii({}), DKt = Ii(function() { } return r; }; -function tJt(t) { +function JKt(t) { var e = typeof t; return t != null && (e == "object" || e == "function"); } -var _0 = tJt, $v = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}; -function rJt(t, e) { +var _0 = JKt, $v = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}; +function eJt(t, e) { return e = { exports: {} }, t(e, e.exports), e.exports; } -var nJt = typeof $v == "object" && $v && $v.Object === Object && $v, iJt = nJt, sJt = typeof self == "object" && self && self.Object === Object && self, aJt = iJt || sJt || Function("return this")(), VC = aJt, oJt = function() { - return VC.Date.now(); -}, iA = oJt, lJt = /\s/; -function cJt(t) { - for (var e = t.length; e-- && lJt.test(t.charAt(e)); ) +var tJt = typeof $v == "object" && $v && $v.Object === Object && $v, rJt = tJt, nJt = typeof self == "object" && self && self.Object === Object && self, iJt = rJt || nJt || Function("return this")(), FC = iJt, sJt = function() { + return FC.Date.now(); +}, rA = sJt, aJt = /\s/; +function oJt(t) { + for (var e = t.length; e-- && aJt.test(t.charAt(e)); ) ; return e; } -var uJt = cJt, hJt = /^\s+/; -function fJt(t) { - return t && t.slice(0, uJt(t) + 1).replace(hJt, ""); +var lJt = oJt, cJt = /^\s+/; +function uJt(t) { + return t && t.slice(0, lJt(t) + 1).replace(cJt, ""); } -var dJt = fJt, pJt = VC.Symbol, _1 = pJt, j1e = Object.prototype, gJt = j1e.hasOwnProperty, mJt = j1e.toString, av = _1 ? _1.toStringTag : void 0; -function vJt(t) { - var e = gJt.call(t, av), r = t[av]; +var hJt = uJt, fJt = FC.Symbol, _1 = fJt, X1e = Object.prototype, dJt = X1e.hasOwnProperty, pJt = X1e.toString, av = _1 ? _1.toStringTag : void 0; +function gJt(t) { + var e = dJt.call(t, av), r = t[av]; try { t[av] = void 0; var n = !0; } catch { } - var i = mJt.call(t); + var i = pJt.call(t); return n && (e ? t[av] = r : delete t[av]), i; } -var yJt = vJt, bJt = Object.prototype, xJt = bJt.toString; -function wJt(t) { - return xJt.call(t); +var mJt = gJt, vJt = Object.prototype, yJt = vJt.toString; +function bJt(t) { + return yJt.call(t); } -var OJt = wJt, kJt = "[object Null]", SJt = "[object Undefined]", zH = _1 ? _1.toStringTag : void 0; -function TJt(t) { - return t == null ? t === void 0 ? SJt : kJt : zH && zH in Object(t) ? yJt(t) : OJt(t); +var xJt = bJt, wJt = "[object Null]", OJt = "[object Undefined]", $H = _1 ? _1.toStringTag : void 0; +function kJt(t) { + return t == null ? t === void 0 ? OJt : wJt : $H && $H in Object(t) ? mJt(t) : xJt(t); } -var K1e = TJt; -function CJt(t) { +var Z1e = kJt; +function SJt(t) { return t != null && typeof t == "object"; } -var EJt = CJt, _Jt = "[object Symbol]"; -function AJt(t) { - return typeof t == "symbol" || EJt(t) && K1e(t) == _Jt; +var TJt = SJt, CJt = "[object Symbol]"; +function EJt(t) { + return typeof t == "symbol" || TJt(t) && Z1e(t) == CJt; } -var Xx = AJt, VH = 0 / 0, LJt = /^[-+]0x[0-9a-f]+$/i, RJt = /^0b[01]+$/i, MJt = /^0o[0-7]+$/i, DJt = parseInt; -function NJt(t) { +var Xx = EJt, BH = 0 / 0, _Jt = /^[-+]0x[0-9a-f]+$/i, AJt = /^0b[01]+$/i, LJt = /^0o[0-7]+$/i, RJt = parseInt; +function MJt(t) { if (typeof t == "number") return t; if (Xx(t)) - return VH; + return BH; if (_0(t)) { var e = typeof t.valueOf == "function" ? t.valueOf() : t; t = _0(e) ? e + "" : e; } if (typeof t != "string") return t === 0 ? t : +t; - t = dJt(t); - var r = RJt.test(t); - return r || MJt.test(t) ? DJt(t.slice(2), r ? 2 : 8) : LJt.test(t) ? VH : +t; + t = hJt(t); + var r = AJt.test(t); + return r || LJt.test(t) ? RJt(t.slice(2), r ? 2 : 8) : _Jt.test(t) ? BH : +t; } -var UH = NJt, IJt = "Expected a function", PJt = Math.max, $Jt = Math.min; -function BJt(t, e, r) { +var FH = MJt, DJt = "Expected a function", NJt = Math.max, IJt = Math.min; +function PJt(t, e, r) { var n, i, s, a, o, l, u = 0, h = !1, f = !1, d = !0; if (typeof t != "function") - throw new TypeError(IJt); - e = UH(e) || 0, _0(r) && (h = !!r.leading, f = "maxWait" in r, s = f ? PJt(UH(r.maxWait) || 0, e) : s, d = "trailing" in r ? !!r.trailing : d); + throw new TypeError(DJt); + e = FH(e) || 0, _0(r) && (h = !!r.leading, f = "maxWait" in r, s = f ? NJt(FH(r.maxWait) || 0, e) : s, d = "trailing" in r ? !!r.trailing : d); function p(C) { var T = n, L = i; return n = i = void 0, u = C, a = t.apply(L, T), a; @@ -95355,14 +95299,14 @@ function BJt(t, e, r) { } function m(C) { var T = C - l, L = C - u, E = e - T; - return f ? $Jt(E, s - L) : E; + return f ? IJt(E, s - L) : E; } function v(C) { var T = C - l, L = C - u; return l === void 0 || T >= e || T < 0 || f && L >= s; } function y() { - var C = iA(); + var C = rA(); if (v(C)) return b(C); o = setTimeout(y, m(C)); @@ -95374,10 +95318,10 @@ function BJt(t, e, r) { o !== void 0 && clearTimeout(o), u = 0, n = l = i = o = void 0; } function O() { - return o === void 0 ? a : b(iA()); + return o === void 0 ? a : b(rA()); } function S() { - var C = iA(), T = v(C); + var C = rA(), T = v(C); if (n = arguments, i = this, l = C, T) { if (o === void 0) return g(l); @@ -95388,11 +95332,11 @@ function BJt(t, e, r) { } return S.cancel = w, S.flush = O, S; } -var UC = BJt, sA = xi ? xi.performance : null, J1e = sA && sA.now ? function() { - return sA.now(); +var zC = PJt, nA = xi ? xi.performance : null, j1e = nA && nA.now ? function() { + return nA.now(); } : function() { return Date.now(); -}, FJt = function() { +}, $Jt = function() { if (xi) { if (xi.requestAnimationFrame) return function(t) { @@ -95413,28 +95357,28 @@ var UC = BJt, sA = xi ? xi.performance : null, J1e = sA && sA.now ? function() { } return function(t) { t && setTimeout(function() { - t(J1e()); + t(j1e()); }, 1e3 / 60); }; -}(), cS = function(e) { - return FJt(e); -}, eh = J1e, Up = 9261, eme = 65599, Bv = 5381, tme = function(e) { +}(), lS = function(e) { + return $Jt(e); +}, eh = j1e, Up = 9261, K1e = 65599, Bv = 5381, J1e = function(e) { for (var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Up, n = r, i; i = e.next(), !i.done; ) - n = n * eme + i.value | 0; + n = n * K1e + i.value | 0; return n; }, G2 = function(e) { var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Up; - return r * eme + e | 0; + return r * K1e + e | 0; }, H2 = function(e) { var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Bv; return (r << 5) + r + e | 0; -}, zJt = function(e, r) { +}, BJt = function(e, r) { return e * 2097152 + r; }, bh = function(e) { return e[0] * 2097152 + e[1]; -}, PO = function(e, r) { +}, IO = function(e, r) { return [G2(e[0], r[0]), H2(e[1], r[1])]; -}, VJt = function(e, r) { +}, FJt = function(e, r) { var n = { value: 0, done: !1 @@ -95443,7 +95387,7 @@ var UC = BJt, sA = xi ? xi.performance : null, J1e = sA && sA.now ? function() { return i < s ? n.value = e[i++] : n.done = !0, n; } }; - return tme(a, r); + return J1e(a, r); }, A0 = function(e, r) { var n = { value: 0, @@ -95453,43 +95397,43 @@ var UC = BJt, sA = xi ? xi.performance : null, J1e = sA && sA.now ? function() { return i < s ? n.value = e.charCodeAt(i++) : n.done = !0, n; } }; - return tme(a, r); -}, rme = function() { - return UJt(arguments); -}, UJt = function(e) { + return J1e(a, r); +}, eme = function() { + return zJt(arguments); +}, zJt = function(e) { for (var r, n = 0; n < e.length; n++) { var i = e[n]; n === 0 ? r = A0(i) : r = A0(i, r); } return r; -}, qH = !0, qJt = console.warn != null, YJt = console.trace != null, VP = Number.MAX_SAFE_INTEGER || 9007199254740991, nme = function() { +}, zH = !0, VJt = console.warn != null, UJt = console.trace != null, BP = Number.MAX_SAFE_INTEGER || 9007199254740991, tme = function() { return !0; -}, uS = function() { +}, cS = function() { return !1; -}, YH = function() { +}, VH = function() { return 0; -}, UP = function() { +}, FP = function() { }, Qn = function(e) { throw new Error(e); -}, ime = function(e) { +}, rme = function(e) { if (e !== void 0) - qH = !!e; + zH = !!e; else - return qH; + return zH; }, Yr = function(e) { - !ime() || (qJt ? console.warn(e) : (console.log(e), YJt && console.trace())); -}, QJt = function(e) { + !rme() || (VJt ? console.warn(e) : (console.log(e), UJt && console.trace())); +}, qJt = function(e) { return Kt({}, e); }, Tc = function(e) { - return e == null ? e : sn(e) ? e.slice() : Ar(e) ? QJt(e) : e; -}, WJt = function(e) { + return e == null ? e : sn(e) ? e.slice() : Ar(e) ? qJt(e) : e; +}, YJt = function(e) { return e.slice(); -}, sme = function(e, r) { +}, nme = function(e, r) { for (r = e = ""; e++ < 36; r += e * 51 & 52 ? (e ^ 15 ? 8 ^ Math.random() * (e ^ 20 ? 16 : 4) : 4).toString(16) : "-") ; return r; -}, GJt = {}, ame = function() { - return GJt; +}, QJt = {}, ime = function() { + return QJt; }, ws = function(e) { var r = Object.keys(e); return function(n) { @@ -95502,22 +95446,22 @@ var UC = BJt, sA = xi ? xi.performance : null, J1e = sA && sA.now ? function() { }, Df = function(e, r, n) { for (var i = e.length - 1; i >= 0 && !(e[i] === r && (e.splice(i, 1), n)); i--) ; -}, qP = function(e) { +}, zP = function(e) { e.splice(0, e.length); -}, HJt = function(e, r) { +}, WJt = function(e, r) { for (var n = 0; n < r.length; n++) { var i = r[n]; e.push(i); } }, ml = function(e, r, n) { - return n && (r = G1e(n, r)), e[r]; + return n && (r = Q1e(n, r)), e[r]; }, Dh = function(e, r, n, i) { - n && (r = G1e(n, r)), e[r] = i; -}, XJt = /* @__PURE__ */ function() { + n && (r = Q1e(n, r)), e[r] = i; +}, GJt = /* @__PURE__ */ function() { function t() { - $P(this, t), this._obj = {}; + NP(this, t), this._obj = {}; } - return BP(t, [{ + return IP(t, [{ key: "set", value: function(r, n) { return this._obj[r] = n, this; @@ -95543,16 +95487,16 @@ var UC = BJt, sA = xi ? xi.performance : null, J1e = sA && sA.now ? function() { return this._obj[r]; } }]), t; -}(), Cc = typeof Map < "u" ? Map : XJt, ZJt = "undefined", jJt = /* @__PURE__ */ function() { +}(), Cc = typeof Map < "u" ? Map : GJt, HJt = "undefined", XJt = /* @__PURE__ */ function() { function t(e) { - if ($P(this, t), this._obj = /* @__PURE__ */ Object.create(null), this.size = 0, e != null) { + if (NP(this, t), this._obj = /* @__PURE__ */ Object.create(null), this.size = 0, e != null) { var r; e.instanceString != null && e.instanceString() === this.instanceString() ? r = e.toArray() : r = e; for (var n = 0; n < r.length; n++) this.add(r[n]); } } - return BP(t, [{ + return IP(t, [{ key: "instanceString", value: function() { return "set"; @@ -95593,9 +95537,9 @@ var UC = BJt, sA = xi ? xi.performance : null, J1e = sA && sA.now ? function() { return this.toArray().forEach(r, n); } }]), t; -}(), vm = (typeof Set > "u" ? "undefined" : Ii(Set)) !== ZJt ? Set : jJt, qC = function(e, r) { +}(), vm = (typeof Set > "u" ? "undefined" : Ii(Set)) !== HJt ? Set : XJt, VC = function(e, r) { var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0; - if (e === void 0 || r === void 0 || !FP(e)) { + if (e === void 0 || r === void 0 || !PP(e)) { Qn("An element must have a core reference and parameters set"); return; } @@ -95679,7 +95623,7 @@ var UC = BJt, sA = xi ? xi.performance : null, J1e = sA && sA.now ? function() { this.createEmitter(); var p = r.style || r.css; p && (Yr("Setting a `style` bypass at element creation should be done only when absolutely necessary. Try to use the stylesheet instead."), this.style(p)), (n === void 0 || n) && this.restore(); -}, QH = function(e) { +}, UH = function(e) { return e = { bfs: e.bfs || !e.dfs, dfs: e.dfs || !e.bfs @@ -95726,16 +95670,16 @@ var UC = BJt, sA = xi ? xi.performance : null, J1e = sA && sA.now ? function() { }; }; }, X2 = { - breadthFirstSearch: QH({ + breadthFirstSearch: UH({ bfs: !0 }), - depthFirstSearch: QH({ + depthFirstSearch: UH({ dfs: !0 }) }; X2.bfs = X2.breadthFirstSearch; X2.dfs = X2.depthFirstSearch; -var KJt = rJt(function(t, e) { +var ZJt = eJt(function(t, e) { (function() { var r, n, i, s, a, o, l, u, h, f, d, p, g, m, v; i = Math.floor, f = Math.min, n = function(y, b) { @@ -95845,13 +95789,13 @@ var KJt = rJt(function(t, e) { return r; }); }).call($v); -}), Zx = KJt, JJt = ws({ +}), Zx = ZJt, jJt = ws({ root: null, weight: function(e) { return 1; }, directed: !1 -}), eer = { +}), KJt = { dijkstra: function(e) { if (!Ar(e)) { var r = arguments; @@ -95861,7 +95805,7 @@ var KJt = rJt(function(t, e) { directed: r[2] }; } - var n = JJt(e), i = n.root, s = n.weight, a = n.directed, o = this, l = s, u = qt(i) ? this.filter(i)[0] : i[0], h = {}, f = {}, d = {}, p = this.byGroup(), g = p.nodes, m = p.edges; + var n = jJt(e), i = n.root, s = n.weight, a = n.directed, o = this, l = s, u = qt(i) ? this.filter(i)[0] : i[0], h = {}, f = {}, d = {}, p = this.byGroup(), g = p.nodes, m = p.edges; m.unmergeBy(function(N) { return N.isLoop(); }); @@ -95911,7 +95855,7 @@ var KJt = rJt(function(t, e) { } }; } -}, ter = { +}, JJt = { kruskal: function(e) { e = e || function(w) { return 1; @@ -95932,7 +95876,7 @@ var KJt = rJt(function(t, e) { } return o; } -}, rer = ws({ +}, eer = ws({ root: null, goal: null, weight: function(e) { @@ -95942,9 +95886,9 @@ var KJt = rJt(function(t, e) { return 0; }, directed: !1 -}), ner = { +}), ter = { aStar: function(e) { - var r = this.cy(), n = rer(e), i = n.root, s = n.goal, a = n.heuristic, o = n.directed, l = n.weight; + var r = this.cy(), n = eer(e), i = n.root, s = n.goal, a = n.heuristic, o = n.directed, l = n.weight; i = r.collection(i)[0], s = r.collection(s)[0]; var u = i.id(), h = s.id(), f = {}, d = {}, p = {}, g = new Zx(function(F, B) { return d[F.id()] - d[B.id()]; @@ -95990,14 +95934,14 @@ var KJt = rJt(function(t, e) { steps: T }; } -}, ier = ws({ +}, rer = ws({ weight: function(e) { return 1; }, directed: !1 -}), ser = { +}), ner = { floydWarshall: function(e) { - for (var r = this.cy(), n = ier(e), i = n.weight, s = n.directed, a = i, o = this.byGroup(), l = o.nodes, u = o.edges, h = l.length, f = h * h, d = function(Y) { + for (var r = this.cy(), n = rer(e), i = n.weight, s = n.directed, a = i, o = this.byGroup(), l = o.nodes, u = o.edges, h = l.length, f = h * h, d = function(Y) { return l.indexOf(Y); }, p = function(Y) { return l[Y]; @@ -96044,15 +95988,15 @@ var KJt = rJt(function(t, e) { }; return B; } -}, aer = ws({ +}, ier = ws({ weight: function(e) { return 1; }, directed: !1, root: null -}), oer = { +}), ser = { bellmanFord: function(e) { - var r = this, n = aer(e), i = n.weight, s = n.directed, a = n.root, o = i, l = this, u = this.cy(), h = this.byGroup(), f = h.edges, d = h.nodes, p = d.length, g = new Cc(), m = !1, v = []; + var r = this, n = ier(e), i = n.weight, s = n.directed, a = n.root, o = i, l = this, u = this.cy(), h = this.byGroup(), f = h.edges, d = h.nodes, p = d.length, g = new Cc(), m = !1, v = []; a = u.collection(a)[0], f.unmergeBy(function(ce) { return ce.isLoop(); }); @@ -96120,7 +96064,7 @@ var KJt = rJt(function(t, e) { negativeWeightCycles: v }; } -}, ler = Math.sqrt(2), cer = function(e, r, n) { +}, aer = Math.sqrt(2), oer = function(e, r, n) { n.length === 0 && Qn("Karger-Stein must be run on a connected (sub)graph"); for (var i = n[e], s = i[1], a = i[2], o = r[s], l = r[a], u = n, h = u.length - 1; h >= 0; h--) { var f = u[h], d = f[1], p = f[2]; @@ -96133,19 +96077,19 @@ var KJt = rJt(function(t, e) { for (var v = 0; v < r.length; v++) r[v] === l && (r[v] = o); return u; -}, aA = function(e, r, n, i) { +}, iA = function(e, r, n, i) { for (; n > i; ) { var s = Math.floor(Math.random() * r.length); - r = cer(s, e, r), n--; + r = oer(s, e, r), n--; } return r; -}, uer = { +}, ler = { kargerStein: function() { var e = this, r = this.byGroup(), n = r.nodes, i = r.edges; i.unmergeBy(function(D) { return D.isLoop(); }); - var s = n.length, a = i.length, o = Math.ceil(Math.pow(Math.log(s) / Math.LN2, 2)), l = Math.floor(s / ler); + var s = n.length, a = i.length, o = Math.ceil(Math.pow(Math.log(s) / Math.LN2, 2)), l = Math.floor(s / aer); if (s < 2) { Qn("At least 2 nodes are required for Karger-Stein algorithm"); return; @@ -96160,9 +96104,9 @@ var KJt = rJt(function(t, e) { }, b = 0; b <= o; b++) { for (var w = 0; w < s; w++) m[w] = w; - var O = aA(m, u.slice(), s, l), S = O.slice(); + var O = iA(m, u.slice(), s, l), S = O.slice(); y(m, v); - var C = aA(m, O, l, 2), T = aA(v, S, l, 2); + var C = iA(m, O, l, 2), T = iA(v, S, l, 2); C.length <= T.length && C.length < d ? (d = C.length, p = C, y(m, g)) : T.length <= C.length && T.length < d && (d = T.length, p = T, y(v, g)); } for (var L = this.spawn(p.map(function(D) { @@ -96186,17 +96130,17 @@ var KJt = rJt(function(t, e) { }; return I; } -}, her = function(e) { +}, cer = function(e) { return { x: e.x, y: e.y }; -}, YC = function(e, r, n) { +}, UC = function(e, r, n) { return { x: e.x * r + n.x, y: e.y * r + n.y }; -}, ome = function(e, r, n) { +}, sme = function(e, r, n) { return { x: (e.x - n.x) / r, y: (e.y - n.y) / r @@ -96206,25 +96150,25 @@ var KJt = rJt(function(t, e) { x: e[0], y: e[1] }; -}, fer = function(e) { +}, uer = function(e) { for (var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : e.length, i = 1 / 0, s = r; s < n; s++) { var a = e[s]; isFinite(a) && (i = Math.min(a, i)); } return i; -}, der = function(e) { +}, her = function(e) { for (var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : e.length, i = -1 / 0, s = r; s < n; s++) { var a = e[s]; isFinite(a) && (i = Math.max(a, i)); } return i; -}, per = function(e) { +}, fer = function(e) { for (var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : e.length, i = 0, s = 0, a = r; a < n; a++) { var o = e[a]; isFinite(o) && (i += o, s++); } return i / s; -}, ger = function(e) { +}, der = function(e) { var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : e.length, i = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : !0, s = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !0, a = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : !0; i ? e = e.slice(r, n) : (n < e.length && e.splice(n, e.length - n), r > 0 && e.splice(0, r)); for (var o = 0, l = e.length - 1; l >= 0; l--) { @@ -96236,20 +96180,20 @@ var KJt = rJt(function(t, e) { }); var h = e.length, f = Math.floor(h / 2); return h % 2 !== 0 ? e[f + 1 + o] : (e[f - 1 + o] + e[f + o]) / 2; -}, mer = function(e) { +}, per = function(e) { return Math.PI * e / 180; -}, $O = function(e, r) { +}, PO = function(e, r) { return Math.atan2(r, e) - Math.PI / 2; -}, YP = Math.log2 || function(t) { +}, VP = Math.log2 || function(t) { return Math.log(t) / Math.log(2); -}, lme = function(e) { +}, ame = function(e) { return e > 0 ? 1 : e < 0 ? -1 : 0; }, L0 = function(e, r) { return Math.sqrt(hd(e, r)); }, hd = function(e, r) { var n = r.x - e.x, i = r.y - e.y; return n * n + i * i; -}, ver = function(e) { +}, ger = function(e) { for (var r = e.length, n = 0, i = 0; i < r; i++) n += e[i]; for (var s = 0; s < r; s++) @@ -96262,7 +96206,7 @@ var KJt = rJt(function(t, e) { x: zi(e.x, r.x, n.x, i), y: zi(e.y, r.y, n.y, i) }; -}, yer = function(e, r, n, i) { +}, mer = function(e, r, n, i) { var s = { x: r.x - e.x, y: r.y - e.y @@ -96306,7 +96250,7 @@ var KJt = rJt(function(t, e) { h: e.h }; } -}, ber = function(e) { +}, ver = function(e) { return { x1: e.x1, x2: e.x2, @@ -96315,9 +96259,9 @@ var KJt = rJt(function(t, e) { y2: e.y2, h: e.h }; -}, xer = function(e) { +}, yer = function(e) { e.x1 = 1 / 0, e.y1 = 1 / 0, e.x2 = -1 / 0, e.y2 = -1 / 0, e.w = 0, e.h = 0; -}, wer = function(e, r, n) { +}, ber = function(e, r, n) { return { x1: e.x1 + r, x2: e.x2 + r, @@ -96326,14 +96270,14 @@ var KJt = rJt(function(t, e) { w: e.w, h: e.h }; -}, cme = function(e, r) { +}, ome = function(e, r) { e.x1 = Math.min(e.x1, r.x1), e.x2 = Math.max(e.x2, r.x2), e.w = e.x2 - e.x1, e.y1 = Math.min(e.y1, r.y1), e.y2 = Math.max(e.y2, r.y2), e.h = e.y2 - e.y1; -}, Oer = function(e, r, n) { +}, xer = function(e, r, n) { e.x1 = Math.min(e.x1, r), e.x2 = Math.max(e.x2, r), e.w = e.x2 - e.x1, e.y1 = Math.min(e.y1, n), e.y2 = Math.max(e.y2, n), e.h = e.y2 - e.y1; -}, a5 = function(e) { +}, s5 = function(e) { var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0; return e.x1 -= r, e.x2 += r, e.y1 -= r, e.y2 += r, e.w = e.x2 - e.x1, e.h = e.y2 - e.y1, e; -}, o5 = function(e) { +}, a5 = function(e) { var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [0], n, i, s, a; if (r.length === 1) n = i = s = a = r[0]; @@ -96344,17 +96288,17 @@ var KJt = rJt(function(t, e) { n = o[0], i = o[1], s = o[2], a = o[3]; } return e.x1 -= a, e.x2 += i, e.y1 -= n, e.y2 += s, e.w = e.x2 - e.x1, e.h = e.y2 - e.y1, e; -}, WH = function(e, r) { +}, qH = function(e, r) { e.x1 = r.x1, e.y1 = r.y1, e.x2 = r.x2, e.y2 = r.y2, e.w = e.x2 - e.x1, e.h = e.y2 - e.y1; -}, QP = function(e, r) { +}, UP = function(e, r) { return !(e.x1 > r.x2 || r.x1 > e.x2 || e.x2 < r.x1 || r.x2 < e.x1 || e.y2 < r.y1 || r.y2 < e.y1 || e.y1 > r.y2 || r.y1 > e.y2); }, A1 = function(e, r, n) { return e.x1 <= r && r <= e.x2 && e.y1 <= n && n <= e.y2; -}, ker = function(e, r) { +}, wer = function(e, r) { return A1(e, r.x, r.y); -}, ume = function(e, r) { +}, lme = function(e, r) { return A1(e, r.x1, r.y1) && A1(e, r.x2, r.y2); -}, hme = function(e, r, n, i, s, a, o) { +}, cme = function(e, r, n, i, s, a, o) { var l = arguments.length > 7 && arguments[7] !== void 0 ? arguments[7] : "auto", u = l === "auto" ? R0(s, a) : l, h = s / 2, f = a / 2; u = Math.min(u, h, f); var d = u !== h, p = u !== f, g; @@ -96400,10 +96344,10 @@ var KJt = rJt(function(t, e) { return [N[0], N[1]]; } return []; -}, Ser = function(e, r, n, i, s, a, o) { +}, Oer = function(e, r, n, i, s, a, o) { var l = o, u = Math.min(n, s), h = Math.max(n, s), f = Math.min(i, a), d = Math.max(i, a); return u - l <= e && e <= h + l && f - l <= r && r <= d + l; -}, Ter = function(e, r, n, i, s, a, o, l, u) { +}, ker = function(e, r, n, i, s, a, o, l, u) { var h = { x1: Math.min(n, o, s) - u, x2: Math.max(n, o, s) + u, @@ -96411,14 +96355,14 @@ var KJt = rJt(function(t, e) { y2: Math.max(i, l, a) + u }; return !(e < h.x1 || e > h.x2 || r < h.y1 || r > h.y2); -}, Cer = function(e, r, n, i) { +}, Ser = function(e, r, n, i) { n -= i; var s = r * r - 4 * e * n; if (s < 0) return []; var a = Math.sqrt(s), o = 2 * e, l = (-r + a) / o, u = (-r - a) / o; return [l, u]; -}, Eer = function(e, r, n, i, s) { +}, Ter = function(e, r, n, i, s) { var a = 1e-5; e === 0 && (e = a), r /= e, n /= e, i /= e; var o, l, u, h, f, d, p, g; @@ -96431,16 +96375,16 @@ var KJt = rJt(function(t, e) { return; } l = -l, h = l * l * l, h = Math.acos(u / Math.sqrt(h)), g = 2 * Math.sqrt(l), s[0] = -p + g * Math.cos(h / 3), s[2] = -p + g * Math.cos((h + 2 * Math.PI) / 3), s[4] = -p + g * Math.cos((h + 4 * Math.PI) / 3); -}, _er = function(e, r, n, i, s, a, o, l) { +}, Cer = function(e, r, n, i, s, a, o, l) { var u = 1 * n * n - 4 * n * s + 2 * n * o + 4 * s * s - 4 * s * o + o * o + i * i - 4 * i * a + 2 * i * l + 4 * a * a - 4 * a * l + l * l, h = 1 * 9 * n * s - 3 * n * n - 3 * n * o - 6 * s * s + 3 * s * o + 9 * i * a - 3 * i * i - 3 * i * l - 6 * a * a + 3 * a * l, f = 1 * 3 * n * n - 6 * n * s + n * o - n * e + 2 * s * s + 2 * s * e - o * e + 3 * i * i - 6 * i * a + i * l - i * r + 2 * a * a + 2 * a * r - l * r, d = 1 * n * s - n * n + n * e - s * e + i * a - i * i + i * r - a * r, p = []; - Eer(u, h, f, d, p); + Ter(u, h, f, d, p); for (var g = 1e-7, m = [], v = 0; v < 6; v += 2) Math.abs(p[v + 1]) < g && p[v] >= 0 && p[v] <= 1 && m.push(p[v]); m.push(1), m.push(0); for (var y = -1, b, w, O, S = 0; S < m.length; S++) b = Math.pow(1 - m[S], 2) * n + 2 * (1 - m[S]) * m[S] * s + m[S] * m[S] * o, w = Math.pow(1 - m[S], 2) * i + 2 * (1 - m[S]) * m[S] * a + m[S] * m[S] * l, O = Math.pow(b - e, 2) + Math.pow(w - r, 2), y >= 0 ? O < y && (y = O) : y = O; return y; -}, Aer = function(e, r, n, i, s, a) { +}, Eer = function(e, r, n, i, s, a) { var o = [e - n, r - i], l = [s - n, a - i], u = l[0] * l[0] + l[1] * l[1], h = o[0] * o[0] + o[1] * o[1], f = o[0] * l[0] + o[1] * l[1], d = f * f / u; return f < 0 ? h : d > u ? (e - s) * (e - s) + (r - a) * (r - a) : h - d; }, Ta = function(e, r, n) { @@ -96458,12 +96402,12 @@ var KJt = rJt(function(t, e) { h[g * 2] = a / 2 * (n[g * 2] * d - n[g * 2 + 1] * p), h[g * 2 + 1] = o / 2 * (n[g * 2 + 1] * d + n[g * 2] * p), h[g * 2] += i, h[g * 2 + 1] += s; var m; if (u > 0) { - var v = fS(h, -u); - m = hS(v); + var v = hS(h, -u); + m = uS(v); } else m = h; return Ta(e, r, m); -}, Ler = function(e, r, n, i, s, a, o, l) { +}, _er = function(e, r, n, i, s, a, o, l) { for (var u = new Array(n.length * 2), h = 0; h < l.length; h++) { var f = l[h]; u[h * 4 + 0] = f.startX, u[h * 4 + 1] = f.startY, u[h * 4 + 2] = f.stopX, u[h * 4 + 3] = f.stopY; @@ -96472,21 +96416,21 @@ var KJt = rJt(function(t, e) { return !0; } return Ta(e, r, u); -}, hS = function(e) { +}, uS = function(e) { for (var r = new Array(e.length / 2), n, i, s, a, o, l, u, h, f = 0; f < e.length / 4; f++) { n = e[f * 4], i = e[f * 4 + 1], s = e[f * 4 + 2], a = e[f * 4 + 3], f < e.length / 4 - 1 ? (o = e[(f + 1) * 4], l = e[(f + 1) * 4 + 1], u = e[(f + 1) * 4 + 2], h = e[(f + 1) * 4 + 3]) : (o = e[0], l = e[1], u = e[2], h = e[3]); var d = Qh(n, i, s, a, o, l, u, h, !0); r[f * 2] = d[0], r[f * 2 + 1] = d[1]; } return r; -}, fS = function(e, r) { +}, hS = function(e, r) { for (var n = new Array(e.length * 2), i, s, a, o, l = 0; l < e.length / 2; l++) { i = e[l * 2], s = e[l * 2 + 1], l < e.length / 2 - 1 ? (a = e[(l + 1) * 2], o = e[(l + 1) * 2 + 1]) : (a = e[0], o = e[1]); var u = o - s, h = -(a - i), f = Math.sqrt(u * u + h * h), d = u / f, p = h / f; n[l * 4] = i + d * r, n[l * 4 + 1] = s + p * r, n[l * 4 + 2] = a + d * r, n[l * 4 + 3] = o + p * r; } return n; -}, Rer = function(e, r, n, i, s, a) { +}, Aer = function(e, r, n, i, s, a) { var o = n - e, l = i - r; o /= s, l /= a; var u = Math.sqrt(o * o + l * l), h = u - 1; @@ -96511,7 +96455,7 @@ var KJt = rJt(function(t, e) { return [w, O, S, C]; } else return [w, O]; -}, oA = function(e, r, n) { +}, sA = function(e, r, n) { return r <= e && e <= n || n <= e && e <= r ? e : e <= r && r <= n || n <= r && r <= e ? r : n; }, Qh = function(e, r, n, i, s, a, o, l, u) { var h = e - s, f = n - e, d = o - s, p = r - a, g = i - r, m = l - a, v = d * p - m * h, y = f * p - g * h, b = m * f - d * g; @@ -96519,7 +96463,7 @@ var KJt = rJt(function(t, e) { var w = v / b, O = y / b, S = 1e-3, C = 0 - S, T = 1 + S; return C <= w && w <= T && C <= O && O <= T ? [e + w * f, r + w * g] : u ? [e + w * f, r + w * g] : []; } else - return v === 0 || y === 0 ? oA(e, n, o) === o ? [o, l] : oA(e, n, s) === s ? [s, a] : oA(s, o, n) === n ? [n, i] : [] : []; + return v === 0 || y === 0 ? sA(e, n, o) === o ? [o, l] : sA(e, n, s) === s ? [s, a] : sA(s, o, n) === n ? [n, i] : [] : []; }, j2 = function(e, r, n, i, s, a, o, l) { var u = [], h, f = new Array(n.length), d = !0; a == null && (d = !1); @@ -96528,8 +96472,8 @@ var KJt = rJt(function(t, e) { for (var g = 0; g < f.length / 2; g++) f[g * 2] = n[g * 2] * a + i, f[g * 2 + 1] = n[g * 2 + 1] * o + s; if (l > 0) { - var m = fS(f, -l); - p = hS(m); + var m = hS(f, -l); + p = uS(m); } else p = f; } else @@ -96537,7 +96481,7 @@ var KJt = rJt(function(t, e) { for (var v, y, b, w, O = 0; O < p.length / 2; O++) v = p[O * 2], y = p[O * 2 + 1], O < p.length / 2 - 1 ? (b = p[(O + 1) * 2], w = p[(O + 1) * 2 + 1]) : (b = p[0], w = p[1]), h = Qh(e, r, i, s, v, y, b, w), h.length !== 0 && u.push(h[0], h[1]); return u; -}, Mer = function(e, r, n, i, s, a, o, l, u) { +}, Ler = function(e, r, n, i, s, a, o, l, u) { var h = [], f, d = new Array(n.length * 2); u.forEach(function(b, w) { w === 0 ? (d[d.length - 2] = b.startX, d[d.length - 1] = b.startY) : (d[w * 4 - 2] = b.startX, d[w * 4 - 1] = b.startY), d[w * 4] = b.stopX, d[w * 4 + 1] = b.stopY, f = Fv(e, r, i, s, b.cx, b.cy, b.radius), f.length !== 0 && h.push(f[0], f[1]); @@ -96552,13 +96496,13 @@ var KJt = rJt(function(t, e) { return g; } return h; -}, BO = function(e, r, n) { +}, $O = function(e, r, n) { var i = [e[0] - r[0], e[1] - r[1]], s = Math.sqrt(i[0] * i[0] + i[1] * i[1]), a = (s - n) / s; return a < 0 && (a = 1e-5), [r[0] + a * i[0], r[1] + a * i[1]]; }, Js = function(e, r) { - var n = iR(e, r); - return n = fme(n), n; -}, fme = function(e) { + var n = tR(e, r); + return n = ume(n), n; +}, ume = function(e) { for (var r, n, i = e.length / 2, s = 1 / 0, a = 1 / 0, o = -1 / 0, l = -1 / 0, u = 0; u < i; u++) r = e[2 * u], n = e[2 * u + 1], s = Math.min(s, r), o = Math.max(o, r), a = Math.min(a, n), l = Math.max(l, n); for (var h = 2 / (o - s), f = 2 / (l - a), d = 0; d < i; d++) @@ -96567,7 +96511,7 @@ var KJt = rJt(function(t, e) { for (var p = 0; p < i; p++) n = e[2 * p + 1] = e[2 * p + 1] + (-1 - a); return e; -}, iR = function(e, r) { +}, tR = function(e, r) { var n = 1 / e * 2 * Math.PI, i = e % 2 === 0 ? Math.PI / 2 + n / 2 : Math.PI / 2; i += r; for (var s = new Array(e * 2), a, o = 0; o < e; o++) @@ -96575,28 +96519,28 @@ var KJt = rJt(function(t, e) { return s; }, R0 = function(e, r) { return Math.min(e / 4, r / 4, 8); -}, dme = function(e, r) { +}, hme = function(e, r) { return Math.min(e / 10, r / 10, 8); -}, WP = function() { +}, qP = function() { return 8; -}, Der = function(e, r, n) { +}, Rer = function(e, r, n) { return [e - 2 * r + n, 2 * (r - e), e]; -}, sR = function(e, r) { +}, rR = function(e, r) { return { heightOffset: Math.min(15, 0.05 * r), widthOffset: Math.min(100, 0.25 * e), ctrlPtOffsetPct: 0.05 }; -}, Ner = ws({ +}, Mer = ws({ dampingFactor: 0.8, precision: 1e-6, iterations: 200, weight: function(e) { return 1; } -}), Ier = { +}), Der = { pageRank: function(e) { - for (var r = Ner(e), n = r.dampingFactor, i = r.precision, s = r.iterations, a = r.weight, o = this._private.cy, l = this.byGroup(), u = l.nodes, h = l.edges, f = u.length, d = f * f, p = h.length, g = new Array(d), m = new Array(f), v = (1 - n) / f, y = 0; y < f; y++) { + for (var r = Mer(e), n = r.dampingFactor, i = r.precision, s = r.iterations, a = r.weight, o = this._private.cy, l = this.byGroup(), u = l.nodes, h = l.edges, f = u.length, d = f * f, p = h.length, g = new Array(d), m = new Array(f), v = (1 - n) / f, y = 0; y < f; y++) { for (var b = 0; b < f; b++) { var w = y * f + b; g[w] = 0; @@ -96631,7 +96575,7 @@ var KJt = rJt(function(t, e) { var Q = G * f + ee; P[G] += g[Q] * D[ee]; } - ver(P), F = D, D = P, P = F; + ger(P), F = D, D = P, P = F; for (var ne = 0, ie = 0; ie < f; ie++) { var U = F[ie] - D[ie]; ne += U * U; @@ -96646,7 +96590,7 @@ var KJt = rJt(function(t, e) { }; return Z; } -}, GH = ws({ +}, YH = ws({ root: null, weight: function(e) { return 1; @@ -96655,7 +96599,7 @@ var KJt = rJt(function(t, e) { alpha: 0 }), mg = { degreeCentralityNormalized: function(e) { - e = GH(e); + e = YH(e); var r = this.cy(), n = this.nodes(), i = n.length; if (e.directed) { for (var h = {}, f = {}, d = 0, p = 0, g = 0; g < i; g++) { @@ -96687,7 +96631,7 @@ var KJt = rJt(function(t, e) { } }, degreeCentrality: function(e) { - e = GH(e); + e = YH(e); var r = this.cy(), n = this, i = e, s = i.root, a = i.weight, o = i.directed, l = i.alpha; if (s = r.collection(s)[0], o) { for (var p = s.connectedEdges(), g = p.filter(function(C) { @@ -96713,7 +96657,7 @@ var KJt = rJt(function(t, e) { }; mg.dc = mg.degreeCentrality; mg.dcn = mg.degreeCentralityNormalised = mg.degreeCentralityNormalized; -var HH = ws({ +var QH = ws({ harmonic: !0, weight: function() { return 1; @@ -96722,7 +96666,7 @@ var HH = ws({ root: null }), vg = { closenessCentralityNormalized: function(e) { - for (var r = HH(e), n = r.harmonic, i = r.weight, s = r.directed, a = this.cy(), o = {}, l = 0, u = this.nodes(), h = this.floydWarshall({ + for (var r = QH(e), n = r.harmonic, i = r.weight, s = r.directed, a = this.cy(), o = {}, l = 0, u = this.nodes(), h = this.floydWarshall({ weight: i, directed: s }), f = 0; f < u.length; f++) { @@ -96740,7 +96684,7 @@ var HH = ws({ }; }, closenessCentrality: function(e) { - var r = HH(e), n = r.root, i = r.weight, s = r.directed, a = r.harmonic; + var r = QH(e), n = r.root, i = r.weight, s = r.directed, a = r.harmonic; n = this.filter(n)[0]; for (var o = this.dijkstra({ root: n, @@ -96758,12 +96702,12 @@ var HH = ws({ }; vg.cc = vg.closenessCentrality; vg.ccn = vg.closenessCentralityNormalised = vg.closenessCentralityNormalized; -var Per = ws({ +var Ner = ws({ weight: null, directed: !1 -}), aR = { +}), nR = { betweennessCentrality: function(e) { - for (var r = Per(e), n = r.directed, i = r.weight, s = i != null, a = this.cy(), o = this.nodes(), l = {}, u = {}, h = 0, f = { + for (var r = Ner(e), n = r.directed, i = r.weight, s = i != null, a = this.cy(), o = this.nodes(), l = {}, u = {}, h = 0, f = { set: function(w, O) { u[w] = O, O > h && (h = O); }, @@ -96822,8 +96766,8 @@ var Per = ws({ return y.betweennessNormalised = y.betweennessNormalized, y; } }; -aR.bc = aR.betweennessCentrality; -var $er = ws({ +nR.bc = nR.betweennessCentrality; +var Ier = ws({ expandFactor: 2, inflateFactor: 2, multFactor: 1, @@ -96833,16 +96777,16 @@ var $er = ws({ return 1; } ] -}), Ber = function(e) { - return $er(e); -}, Fer = function(e, r) { +}), Per = function(e) { + return Ier(e); +}, $er = function(e, r) { for (var n = 0, i = 0; i < r.length; i++) n += r[i](e); return n; -}, zer = function(e, r, n) { +}, Ber = function(e, r, n) { for (var i = 0; i < r; i++) e[i * r + i] = n; -}, pme = function(e, r) { +}, fme = function(e, r) { for (var n, i = 0; i < r; i++) { n = 0; for (var s = 0; s < r; s++) @@ -96850,7 +96794,7 @@ var $er = ws({ for (var a = 0; a < r; a++) e[a * r + i] = e[a * r + i] / n; } -}, Ver = function(e, r, n) { +}, Fer = function(e, r, n) { for (var i = new Array(n * n), s = 0; s < n; s++) { for (var a = 0; a < n; a++) i[s * n + a] = 0; @@ -96859,92 +96803,92 @@ var $er = ws({ i[s * n + l] += e[s * n + o] * r[o * n + l]; } return i; -}, Uer = function(e, r, n) { +}, zer = function(e, r, n) { for (var i = e.slice(0), s = 1; s < n; s++) - e = Ver(e, i, r); + e = Fer(e, i, r); return e; -}, qer = function(e, r, n) { +}, Ver = function(e, r, n) { for (var i = new Array(r * r), s = 0; s < r * r; s++) i[s] = Math.pow(e[s], n); - return pme(i, r), i; -}, Yer = function(e, r, n, i) { + return fme(i, r), i; +}, Uer = function(e, r, n, i) { for (var s = 0; s < n; s++) { var a = Math.round(e[s] * Math.pow(10, i)) / Math.pow(10, i), o = Math.round(r[s] * Math.pow(10, i)) / Math.pow(10, i); if (a !== o) return !1; } return !0; -}, Qer = function(e, r, n, i) { +}, qer = function(e, r, n, i) { for (var s = [], a = 0; a < r; a++) { for (var o = [], l = 0; l < r; l++) Math.round(e[a * r + l] * 1e3) / 1e3 > 0 && o.push(n[l]); o.length !== 0 && s.push(i.collection(o)); } return s; -}, Wer = function(e, r) { +}, Yer = function(e, r) { for (var n = 0; n < e.length; n++) if (!r[n] || e[n].id() !== r[n].id()) return !1; return !0; -}, Ger = function(e) { +}, Qer = function(e) { for (var r = 0; r < e.length; r++) for (var n = 0; n < e.length; n++) - r != n && Wer(e[r], e[n]) && e.splice(n, 1); + r != n && Yer(e[r], e[n]) && e.splice(n, 1); return e; -}, XH = function(e) { - for (var r = this.nodes(), n = this.edges(), i = this.cy(), s = Ber(e), a = {}, o = 0; o < r.length; o++) +}, WH = function(e) { + for (var r = this.nodes(), n = this.edges(), i = this.cy(), s = Per(e), a = {}, o = 0; o < r.length; o++) a[r[o].id()] = o; for (var l = r.length, u = l * l, h = new Array(u), f, d = 0; d < u; d++) h[d] = 0; for (var p = 0; p < n.length; p++) { - var g = n[p], m = a[g.source().id()], v = a[g.target().id()], y = Fer(g, s.attributes); + var g = n[p], m = a[g.source().id()], v = a[g.target().id()], y = $er(g, s.attributes); h[m * l + v] += y, h[v * l + m] += y; } - zer(h, l, s.multFactor), pme(h, l); + Ber(h, l, s.multFactor), fme(h, l); for (var b = !0, w = 0; b && w < s.maxIterations; ) - b = !1, f = Uer(h, l, s.expandFactor), h = qer(f, l, s.inflateFactor), Yer(h, f, u, 4) || (b = !0), w++; - var O = Qer(h, l, r, i); - return O = Ger(O), O; -}, Her = { - markovClustering: XH, - mcl: XH -}, Xer = function(e) { + b = !1, f = zer(h, l, s.expandFactor), h = Ver(f, l, s.inflateFactor), Uer(h, f, u, 4) || (b = !0), w++; + var O = qer(h, l, r, i); + return O = Qer(O), O; +}, Wer = { + markovClustering: WH, + mcl: WH +}, Ger = function(e) { return e; -}, gme = function(e, r) { +}, dme = function(e, r) { return Math.abs(r - e); -}, ZH = function(e, r, n) { - return e + gme(r, n); -}, jH = function(e, r, n) { +}, GH = function(e, r, n) { + return e + dme(r, n); +}, HH = function(e, r, n) { return e + Math.pow(n - r, 2); -}, Zer = function(e) { +}, Her = function(e) { return Math.sqrt(e); -}, jer = function(e, r, n) { - return Math.max(e, gme(r, n)); +}, Xer = function(e, r, n) { + return Math.max(e, dme(r, n)); }, ov = function(e, r, n, i, s) { - for (var a = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : Xer, o = i, l, u, h = 0; h < e; h++) + for (var a = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : Ger, o = i, l, u, h = 0; h < e; h++) l = r(h), u = n(h), o = s(o, l, u); return a(o); }, L1 = { euclidean: function(e, r, n) { - return e >= 2 ? ov(e, r, n, 0, jH, Zer) : ov(e, r, n, 0, ZH); + return e >= 2 ? ov(e, r, n, 0, HH, Her) : ov(e, r, n, 0, GH); }, squaredEuclidean: function(e, r, n) { - return ov(e, r, n, 0, jH); + return ov(e, r, n, 0, HH); }, manhattan: function(e, r, n) { - return ov(e, r, n, 0, ZH); + return ov(e, r, n, 0, GH); }, max: function(e, r, n) { - return ov(e, r, n, -1 / 0, jer); + return ov(e, r, n, -1 / 0, Xer); } }; L1["squared-euclidean"] = L1.squaredEuclidean; L1.squaredeuclidean = L1.squaredEuclidean; -function QC(t, e, r, n, i, s) { +function qC(t, e, r, n, i, s) { var a; return Pn(t) ? a = t : a = L1[t] || L1.euclidean, e === 0 && Pn(t) ? a(i, s) : a(e, r, n, i, s); } -var Ker = ws({ +var Zer = ws({ k: 2, m: 2, sensitivityThreshold: 1e-4, @@ -96953,9 +96897,9 @@ var Ker = ws({ attributes: [], testMode: !1, testCentroids: null -}), GP = function(e) { - return Ker(e); -}, dS = function(e, r, n, i, s) { +}), YP = function(e) { + return Zer(e); +}, fS = function(e, r, n, i, s) { var a = s !== "kMedoids", o = a ? function(f) { return n[f]; } : function(f) { @@ -96963,8 +96907,8 @@ var Ker = ws({ }, l = function(d) { return i[d](r); }, u = n, h = r; - return QC(e, i.length, o, l, u, h); -}, lA = function(e, r, n) { + return qC(e, i.length, o, l, u, h); +}, aA = function(e, r, n) { for (var i = n.length, s = new Array(i), a = new Array(i), o = new Array(r), l = null, u = 0; u < i; u++) s[u] = e.min(n[u]).value, a[u] = e.max(n[u]).value; for (var h = 0; h < r; h++) { @@ -96974,19 +96918,19 @@ var Ker = ws({ o[h] = l; } return o; -}, mme = function(e, r, n, i, s) { +}, pme = function(e, r, n, i, s) { for (var a = 1 / 0, o = 0, l = 0; l < r.length; l++) { - var u = dS(n, e, r[l], i, s); + var u = fS(n, e, r[l], i, s); u < a && (a = u, o = l); } return o; -}, vme = function(e, r, n) { +}, gme = function(e, r, n) { for (var i = [], s = null, a = 0; a < r.length; a++) s = r[a], n[s.id()] === e && i.push(s); return i; -}, Jer = function(e, r, n) { +}, jer = function(e, r, n) { return Math.abs(r - e) <= n; -}, etr = function(e, r, n) { +}, Ker = function(e, r, n) { for (var i = 0; i < e.length; i++) for (var s = 0; s < e[i].length; s++) { var a = Math.abs(e[i][s] - r[i][s]); @@ -96994,16 +96938,16 @@ var Ker = ws({ return !1; } return !0; -}, ttr = function(e, r, n) { +}, Jer = function(e, r, n) { for (var i = 0; i < n; i++) if (e === r[i]) return !0; return !1; -}, KH = function(e, r) { +}, XH = function(e, r) { var n = new Array(r); if (e.length < 50) for (var i = 0; i < r; i++) { - for (var s = e[Math.floor(Math.random() * e.length)]; ttr(s, n, i); ) + for (var s = e[Math.floor(Math.random() * e.length)]; Jer(s, n, i); ) s = e[Math.floor(Math.random() * e.length)]; n[i] = s; } @@ -97011,25 +96955,25 @@ var Ker = ws({ for (var a = 0; a < r; a++) n[a] = e[Math.floor(Math.random() * e.length)]; return n; -}, JH = function(e, r, n) { +}, ZH = function(e, r, n) { for (var i = 0, s = 0; s < r.length; s++) - i += dS("manhattan", r[s], e, n, "kMedoids"); + i += fS("manhattan", r[s], e, n, "kMedoids"); return i; -}, rtr = function(e) { - var r = this.cy(), n = this.nodes(), i = null, s = GP(e), a = new Array(s.k), o = {}, l; - s.testMode ? typeof s.testCentroids == "number" ? (s.testCentroids, l = lA(n, s.k, s.attributes)) : Ii(s.testCentroids) === "object" ? l = s.testCentroids : l = lA(n, s.k, s.attributes) : l = lA(n, s.k, s.attributes); +}, etr = function(e) { + var r = this.cy(), n = this.nodes(), i = null, s = YP(e), a = new Array(s.k), o = {}, l; + s.testMode ? typeof s.testCentroids == "number" ? (s.testCentroids, l = aA(n, s.k, s.attributes)) : Ii(s.testCentroids) === "object" ? l = s.testCentroids : l = aA(n, s.k, s.attributes) : l = aA(n, s.k, s.attributes); for (var u = !0, h = 0; u && h < s.maxIterations; ) { for (var f = 0; f < n.length; f++) - i = n[f], o[i.id()] = mme(i, l, s.distance, s.attributes, "kMeans"); + i = n[f], o[i.id()] = pme(i, l, s.distance, s.attributes, "kMeans"); u = !1; for (var d = 0; d < s.k; d++) { - var p = vme(d, n, o); + var p = gme(d, n, o); if (p.length !== 0) { for (var g = s.attributes.length, m = l[d], v = new Array(g), y = new Array(g), b = 0; b < g; b++) { y[b] = 0; for (var w = 0; w < p.length; w++) i = p[w], y[b] += s.attributes[b](i); - v[b] = y[b] / p.length, Jer(v[b], m[b], s.sensitivityThreshold) || (u = !0); + v[b] = y[b] / p.length, jer(v[b], m[b], s.sensitivityThreshold) || (u = !0); } l[d] = v, a[d] = r.collection(p); } @@ -97037,26 +96981,26 @@ var Ker = ws({ h++; } return a; -}, ntr = function(e) { - var r = this.cy(), n = this.nodes(), i = null, s = GP(e), a = new Array(s.k), o, l = {}, u, h = new Array(s.k); - s.testMode ? typeof s.testCentroids == "number" || (Ii(s.testCentroids) === "object" ? o = s.testCentroids : o = KH(n, s.k)) : o = KH(n, s.k); +}, ttr = function(e) { + var r = this.cy(), n = this.nodes(), i = null, s = YP(e), a = new Array(s.k), o, l = {}, u, h = new Array(s.k); + s.testMode ? typeof s.testCentroids == "number" || (Ii(s.testCentroids) === "object" ? o = s.testCentroids : o = XH(n, s.k)) : o = XH(n, s.k); for (var f = !0, d = 0; f && d < s.maxIterations; ) { for (var p = 0; p < n.length; p++) - i = n[p], l[i.id()] = mme(i, o, s.distance, s.attributes, "kMedoids"); + i = n[p], l[i.id()] = pme(i, o, s.distance, s.attributes, "kMedoids"); f = !1; for (var g = 0; g < o.length; g++) { - var m = vme(g, n, l); + var m = gme(g, n, l); if (m.length !== 0) { - h[g] = JH(o[g], m, s.attributes); + h[g] = ZH(o[g], m, s.attributes); for (var v = 0; v < m.length; v++) - u = JH(m[v], m, s.attributes), u < h[g] && (h[g] = u, o[g] = m[v], f = !0); + u = ZH(m[v], m, s.attributes), u < h[g] && (h[g] = u, o[g] = m[v], f = !0); a[g] = r.collection(m); } } d++; } return a; -}, itr = function(e, r, n, i, s) { +}, rtr = function(e, r, n, i, s) { for (var a, o, l = 0; l < r.length; l++) for (var u = 0; u < e.length; u++) i[l][u] = Math.pow(n[l][u], s.m); @@ -97067,17 +97011,17 @@ var Ker = ws({ a += i[d][h] * s.attributes[f](r[d]), o += i[d][h]; e[h][f] = a / o; } -}, str = function(e, r, n, i, s) { +}, ntr = function(e, r, n, i, s) { for (var a = 0; a < e.length; a++) r[a] = e[a].slice(); for (var o, l, u, h = 2 / (s.m - 1), f = 0; f < n.length; f++) for (var d = 0; d < i.length; d++) { o = 0; for (var p = 0; p < n.length; p++) - l = dS(s.distance, i[d], n[f], s.attributes, "cmeans"), u = dS(s.distance, i[d], n[p], s.attributes, "cmeans"), o += Math.pow(l / u, h); + l = fS(s.distance, i[d], n[f], s.attributes, "cmeans"), u = fS(s.distance, i[d], n[p], s.attributes, "cmeans"), o += Math.pow(l / u, h); e[d][f] = 1 / o; } -}, atr = function(e, r, n, i) { +}, itr = function(e, r, n, i) { for (var s = new Array(n.k), a = 0; a < s.length; a++) s[a] = []; for (var o, l, u = 0; u < r.length; u++) { @@ -97089,8 +97033,8 @@ var Ker = ws({ for (var f = 0; f < s.length; f++) s[f] = i.collection(s[f]); return s; -}, eX = function(e) { - var r = this.cy(), n = this.nodes(), i = GP(e), s, a, o, l, u; +}, jH = function(e) { + var r = this.cy(), n = this.nodes(), i = YP(e), s, a, o, l, u; l = new Array(n.length); for (var h = 0; h < n.length; h++) l[h] = new Array(i.k); @@ -97110,17 +97054,17 @@ var Ker = ws({ for (var y = 0; y < n.length; y++) u[y] = new Array(i.k); for (var b = !0, w = 0; b && w < i.maxIterations; ) - b = !1, itr(a, n, o, u, i), str(o, l, a, n, i), etr(o, l, i.sensitivityThreshold) || (b = !0), w++; - return s = atr(n, o, i, r), { + b = !1, rtr(a, n, o, u, i), ntr(o, l, a, n, i), Ker(o, l, i.sensitivityThreshold) || (b = !0), w++; + return s = itr(n, o, i, r), { clusters: s, degreeOfMembership: o }; -}, otr = { - kMeans: rtr, - kMedoids: ntr, - fuzzyCMeans: eX, - fcm: eX -}, ltr = ws({ +}, str = { + kMeans: etr, + kMedoids: ttr, + fuzzyCMeans: jH, + fcm: jH +}, atr = ws({ distance: "euclidean", linkage: "min", mode: "threshold", @@ -97128,15 +97072,15 @@ var Ker = ws({ addDendrogram: !1, dendrogramDepth: 0, attributes: [] -}), ctr = { +}), otr = { single: "min", complete: "max" -}, utr = function(e) { - var r = ltr(e), n = ctr[r.linkage]; +}, ltr = function(e) { + var r = atr(e), n = otr[r.linkage]; return n != null && (r.linkage = n), r; -}, tX = function(e, r, n, i, s) { +}, KH = function(e, r, n, i, s) { for (var a = 0, o = 1 / 0, l, u = s.attributes, h = function(E, R) { - return QC(s.distance, u.length, function(_) { + return qC(s.distance, u.length, function(_) { return u[_](E); }, function(_) { return u[_](R); @@ -97172,9 +97116,9 @@ var Ker = ws({ e[w].index = w; } return g.key = m.key = g.index = m.index = null, !0; -}, FO = function t(e, r, n) { +}, BO = function t(e, r, n) { !e || (e.value ? r.push(e.value) : (e.left && t(e.left, r), e.right && t(e.right, r))); -}, htr = function t(e, r) { +}, ctr = function t(e, r) { if (!e) return ""; if (e.left && e.right) { @@ -97199,14 +97143,14 @@ var Ker = ws({ }), s.id(); } else if (e.value) return e.value.id(); -}, ftr = function t(e, r, n) { +}, utr = function t(e, r, n) { if (!e) return []; var i = [], s = [], a = []; - return r === 0 ? (e.left && FO(e.left, i), e.right && FO(e.right, s), a = i.concat(s), [n.collection(a)]) : r === 1 ? e.value ? [n.collection(e.value)] : (e.left && FO(e.left, i), e.right && FO(e.right, s), [n.collection(i), n.collection(s)]) : e.value ? [n.collection(e.value)] : (e.left && (i = t(e.left, r - 1, n)), e.right && (s = t(e.right, r - 1, n)), i.concat(s)); -}, rX = function(e) { - for (var r = this.cy(), n = this.nodes(), i = utr(e), s = i.attributes, a = function(w, O) { - return QC(i.distance, s.length, function(S) { + return r === 0 ? (e.left && BO(e.left, i), e.right && BO(e.right, s), a = i.concat(s), [n.collection(a)]) : r === 1 ? e.value ? [n.collection(e.value)] : (e.left && BO(e.left, i), e.right && BO(e.right, s), [n.collection(i), n.collection(s)]) : e.value ? [n.collection(e.value)] : (e.left && (i = t(e.left, r - 1, n)), e.right && (s = t(e.right, r - 1, n)), i.concat(s)); +}, JH = function(e) { + for (var r = this.cy(), n = this.nodes(), i = ltr(e), s = i.attributes, a = function(w, O) { + return qC(i.distance, s.length, function(S) { return s[S](w); }, function(S) { return s[S](O); @@ -97224,23 +97168,23 @@ var Ker = ws({ var m = void 0; i.mode === "dendrogram" ? m = p === g ? 1 / 0 : a(o[p].value, o[g].value) : m = p === g ? 1 / 0 : a(o[p].value[0], o[g].value[0]), l[p][g] = m, l[g][p] = m, m < l[p][u[p]] && (u[p] = g); } - for (var v = tX(o, h, l, u, i); v; ) - v = tX(o, h, l, u, i); + for (var v = KH(o, h, l, u, i); v; ) + v = KH(o, h, l, u, i); var y; - return i.mode === "dendrogram" ? (y = ftr(o[0], i.dendrogramDepth, r), i.addDendrogram && htr(o[0], r)) : (y = new Array(o.length), o.forEach(function(b, w) { + return i.mode === "dendrogram" ? (y = utr(o[0], i.dendrogramDepth, r), i.addDendrogram && ctr(o[0], r)) : (y = new Array(o.length), o.forEach(function(b, w) { b.key = b.index = null, y[w] = r.collection(b.value); })), y; -}, dtr = { - hierarchicalClustering: rX, - hca: rX -}, ptr = ws({ +}, htr = { + hierarchicalClustering: JH, + hca: JH +}, ftr = ws({ distance: "euclidean", preference: "median", damping: 0.8, maxIterations: 1e3, minIterations: 100, attributes: [] -}), gtr = function(e) { +}), dtr = function(e) { var r = e.damping, n = e.preference; 0.5 <= r && r < 1 || Qn("Damping must range on [0.5, 1). Got: ".concat(r)); var i = ["median", "mean", "min", "max"]; @@ -97248,24 +97192,24 @@ var Ker = ws({ return s === n; }) || bt(n) || Qn("Preference must be one of [".concat(i.map(function(s) { return "'".concat(s, "'"); - }).join(", "), "] or a number. Got: ").concat(n)), ptr(e); -}, mtr = function(e, r, n, i) { + }).join(", "), "] or a number. Got: ").concat(n)), ftr(e); +}, ptr = function(e, r, n, i) { var s = function(o, l) { return i[l](o); }; - return -QC(e, i.length, function(a) { + return -qC(e, i.length, function(a) { return s(r, a); }, function(a) { return s(n, a); }, r, n); -}, vtr = function(e, r) { +}, gtr = function(e, r) { var n = null; - return r === "median" ? n = ger(e) : r === "mean" ? n = per(e) : r === "min" ? n = fer(e) : r === "max" ? n = der(e) : n = r, n; -}, ytr = function(e, r, n) { + return r === "median" ? n = der(e) : r === "mean" ? n = fer(e) : r === "min" ? n = uer(e) : r === "max" ? n = her(e) : n = r, n; +}, mtr = function(e, r, n) { for (var i = [], s = 0; s < e; s++) r[s * e + s] + n[s * e + s] > 0 && i.push(s); return i; -}, nX = function(e, r, n) { +}, eX = function(e, r, n) { for (var i = [], s = 0; s < e; s++) { for (var a = -1, o = -1 / 0, l = 0; l < n.length; l++) { var u = n[l]; @@ -97276,8 +97220,8 @@ var Ker = ws({ for (var h = 0; h < n.length; h++) i[n[h]] = n[h]; return i; -}, btr = function(e, r, n) { - for (var i = nX(e, r, n), s = 0; s < n.length; s++) { +}, vtr = function(e, r, n) { + for (var i = eX(e, r, n), s = 0; s < n.length; s++) { for (var a = [], o = 0; o < i.length; o++) i[o] === n[s] && a.push(o); for (var l = -1, u = -1 / 0, h = 0; h < a.length; h++) { @@ -97287,9 +97231,9 @@ var Ker = ws({ } n[s] = a[l]; } - return i = nX(e, r, n), i; -}, iX = function(e) { - for (var r = this.cy(), n = this.nodes(), i = gtr(e), s = {}, a = 0; a < n.length; a++) + return i = eX(e, r, n), i; +}, tX = function(e) { + for (var r = this.cy(), n = this.nodes(), i = dtr(e), s = {}, a = 0; a < n.length; a++) s[n[a].id()] = a; var o, l, u, h, f, d; o = n.length, l = o * o, u = new Array(l); @@ -97297,8 +97241,8 @@ var Ker = ws({ u[p] = -1 / 0; for (var g = 0; g < o; g++) for (var m = 0; m < o; m++) - g !== m && (u[g * o + m] = mtr(i.distance, n[g], n[m], i.attributes)); - h = vtr(u, i.preference); + g !== m && (u[g * o + m] = ptr(i.distance, n[g], n[m], i.attributes)); + h = gtr(u, i.preference); for (var v = 0; v < o; v++) u[v * o + v] = h; f = new Array(l); @@ -97343,7 +97287,7 @@ var Ker = ws({ break; } } - for (var ne = ytr(o, f, d), ie = btr(o, u, ne), U = {}, Z = 0; Z < ne.length; Z++) + for (var ne = mtr(o, f, d), ie = vtr(o, u, ne), U = {}, Z = 0; Z < ne.length; Z++) U[ne[Z]] = []; for (var W = 0; W < n.length; W++) { var j = s[n[W].id()], ae = ie[j]; @@ -97352,13 +97296,13 @@ var Ker = ws({ for (var se = new Array(ne.length), K = 0; K < ne.length; K++) se[K] = r.collection(U[ne[K]]); return se; -}, xtr = { - affinityPropagation: iX, - ap: iX -}, wtr = ws({ +}, ytr = { + affinityPropagation: tX, + ap: tX +}, btr = ws({ root: void 0, directed: !1 -}), Otr = { +}), xtr = { hierholzer: function(e) { if (!Ar(e)) { var r = arguments; @@ -97367,7 +97311,7 @@ var Ker = ws({ directed: r[1] }; } - var n = wtr(e), i = n.root, s = n.directed, a = this, o = !1, l, u, h; + var n = btr(e), i = n.root, s = n.directed, a = this, o = !1, l, u, h; i && (h = qt(i) ? this.filter(i)[0].id() : i[0].id()); var f = {}, d = {}; s ? a.forEach(function(b) { @@ -97424,7 +97368,7 @@ var Ker = ws({ return p; return p.found = !0, p.trail = this.spawn(m, !0), p; } -}, zO = function() { +}, FO = function() { var e = this, r = {}, n = 0, i = 0, s = [], a = [], o = {}, l = function(d, p) { for (var g = a.length - 1, m = [], v = e.spawn(); a[g].x != d || a[g].y != p; ) m.push(a.pop().edge), g--; @@ -97472,12 +97416,12 @@ var Ker = ws({ cut: e.spawn(h), components: s }; -}, ktr = { - hopcroftTarjanBiconnected: zO, - htbc: zO, - htb: zO, - hopcroftTarjanBiconnectedComponents: zO -}, VO = function() { +}, wtr = { + hopcroftTarjanBiconnected: FO, + htbc: FO, + htb: FO, + hopcroftTarjanBiconnectedComponents: FO +}, zO = function() { var e = this, r = {}, n = 0, i = [], s = [], a = e.spawn(e), o = function l(u) { s.push(u), r[u] = { index: n, @@ -97507,44 +97451,44 @@ var Ker = ws({ cut: a, components: i }; -}, Str = { - tarjanStronglyConnected: VO, - tsc: VO, - tscc: VO, - tarjanStronglyConnectedComponents: VO -}, yme = {}; -[X2, eer, ter, ner, ser, oer, uer, Ier, mg, vg, aR, Her, otr, dtr, xtr, Otr, ktr, Str].forEach(function(t) { - Kt(yme, t); +}, Otr = { + tarjanStronglyConnected: zO, + tsc: zO, + tscc: zO, + tarjanStronglyConnectedComponents: zO +}, mme = {}; +[X2, KJt, JJt, ter, ner, ser, ler, Der, mg, vg, nR, Wer, str, htr, ytr, xtr, wtr, Otr].forEach(function(t) { + Kt(mme, t); }); /*! Embeddable Minimum Strictly-Compliant Promises/A+ 1.1.1 Thenable Copyright (c) 2013-2014 Ralf S. Engelschall (http://engelschall.com) Licensed under The MIT License (http://opensource.org/licenses/MIT) */ -var bme = 0, xme = 1, wme = 2, rh = function t(e) { +var vme = 0, yme = 1, bme = 2, rh = function t(e) { if (!(this instanceof t)) return new t(e); - this.id = "Thenable/1.0.7", this.state = bme, this.fulfillValue = void 0, this.rejectReason = void 0, this.onFulfilled = [], this.onRejected = [], this.proxy = { + this.id = "Thenable/1.0.7", this.state = vme, this.fulfillValue = void 0, this.rejectReason = void 0, this.onFulfilled = [], this.onRejected = [], this.proxy = { then: this.then.bind(this) }, typeof e == "function" && e.call(this, this.fulfill.bind(this), this.reject.bind(this)); }; rh.prototype = { fulfill: function(e) { - return sX(this, xme, "fulfillValue", e); + return rX(this, yme, "fulfillValue", e); }, reject: function(e) { - return sX(this, wme, "rejectReason", e); + return rX(this, bme, "rejectReason", e); }, then: function(e, r) { var n = this, i = new rh(); - return n.onFulfilled.push(oX(e, i, "fulfill")), n.onRejected.push(oX(r, i, "reject")), Ome(n), i.proxy; + return n.onFulfilled.push(iX(e, i, "fulfill")), n.onRejected.push(iX(r, i, "reject")), xme(n), i.proxy; } }; -var sX = function(e, r, n, i) { - return e.state === bme && (e.state = r, e[n] = i, Ome(e)), e; -}, Ome = function(e) { - e.state === xme ? aX(e, "onFulfilled", e.fulfillValue) : e.state === wme && aX(e, "onRejected", e.rejectReason); -}, aX = function(e, r, n) { +var rX = function(e, r, n, i) { + return e.state === vme && (e.state = r, e[n] = i, xme(e)), e; +}, xme = function(e) { + e.state === yme ? nX(e, "onFulfilled", e.fulfillValue) : e.state === bme && nX(e, "onRejected", e.rejectReason); +}, nX = function(e, r, n) { if (e[r].length !== 0) { var i = e[r]; e[r] = []; @@ -97554,7 +97498,7 @@ var sX = function(e, r, n, i) { }; typeof setImmediate == "function" ? setImmediate(s) : setTimeout(s, 0); } -}, oX = function(e, r, n) { +}, iX = function(e, r, n) { return function(i) { if (typeof e != "function") r[n].call(r, i); @@ -97566,10 +97510,10 @@ var sX = function(e, r, n, i) { r.reject(a); return; } - Ttr(r, s); + ktr(r, s); } }; -}, Ttr = function t(e, r) { +}, ktr = function t(e, r) { if (e === r || e.proxy === r) { e.reject(new TypeError("cannot resolve promise with itself")); return; @@ -97631,8 +97575,8 @@ rh.reject = function(t) { r(t); }); }; -var ym = typeof Promise < "u" ? Promise : rh, oR = function(e, r, n) { - var i = FP(e), s = !i, a = this._private = Kt({ +var ym = typeof Promise < "u" ? Promise : rh, iR = function(e, r, n) { + var i = PP(e), s = !i, a = this._private = Kt({ duration: 1e3 }, r, n); if (a.target = e, a.style = a.style || a.css, a.started = !1, a.playing = !1, a.hooked = !1, a.applying = !1, a.progress = 0, a.completes = [], a.frames = [], a.complete && Pn(a.complete) && a.completes.push(a.complete), s) { @@ -97650,7 +97594,7 @@ var ym = typeof Promise < "u" ? Promise : rh, oR = function(e, r, n) { }, a.startZoom = e.zoom(); } this.length = 1, this[0] = this; -}, M0 = oR.prototype; +}, M0 = iR.prototype; Kt(M0, { instanceString: function() { return "animation"; @@ -97737,7 +97681,7 @@ Kt(M0, { M0.complete = M0.completed; M0.run = M0.play; M0.running = M0.playing; -var Ctr = { +var Str = { animated: function() { return function() { var r = this, n = r.length !== void 0, i = n ? r : [r], s = this._private.cy || this; @@ -97789,7 +97733,7 @@ var Ctr = { r = Kt({}, r, n); var f = Object.keys(r).length === 0; if (f) - return new oR(a[0], r); + return new iR(a[0], r); switch (r.duration === void 0 && (r.duration = 400), r.duration) { case "slow": r.duration = 600; @@ -97800,7 +97744,7 @@ var Ctr = { } if (u && (r.style = h.getPropsList(r.style || r.css), r.css = void 0), u && r.renderedPosition != null) { var d = r.renderedPosition, p = o.pan(), g = o.zoom(); - r.position = ome(d, g, p); + r.position = sme(d, g, p); } if (l && r.panBy != null) { var m = r.panBy, v = o.pan(); @@ -97822,7 +97766,7 @@ var Ctr = { var S = o.getZoomedViewport(r.zoom); S != null ? (S.zoomed && (r.zoom = S.zoom), S.panned && (r.pan = S.pan)) : r.zoom = null; } - return new oR(a[0], r); + return new iR(a[0], r); }; }, animate: function() { @@ -97855,32 +97799,32 @@ var Ctr = { return o.notify("draw"), this; }; } -}, Etr = Array.isArray, WC = Etr, _tr = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, Atr = /^\w*$/; -function Ltr(t, e) { - if (WC(t)) +}, Ttr = Array.isArray, YC = Ttr, Ctr = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, Etr = /^\w*$/; +function _tr(t, e) { + if (YC(t)) return !1; var r = typeof t; - return r == "number" || r == "symbol" || r == "boolean" || t == null || Xx(t) ? !0 : Atr.test(t) || !_tr.test(t) || e != null && t in Object(e); + return r == "number" || r == "symbol" || r == "boolean" || t == null || Xx(t) ? !0 : Etr.test(t) || !Ctr.test(t) || e != null && t in Object(e); } -var Rtr = Ltr, Mtr = "[object AsyncFunction]", Dtr = "[object Function]", Ntr = "[object GeneratorFunction]", Itr = "[object Proxy]"; -function Ptr(t) { +var Atr = _tr, Ltr = "[object AsyncFunction]", Rtr = "[object Function]", Mtr = "[object GeneratorFunction]", Dtr = "[object Proxy]"; +function Ntr(t) { if (!_0(t)) return !1; - var e = K1e(t); - return e == Dtr || e == Ntr || e == Mtr || e == Itr; + var e = Z1e(t); + return e == Rtr || e == Mtr || e == Ltr || e == Dtr; } -var $tr = Ptr, Btr = VC["__core-js_shared__"], cA = Btr, lX = function() { - var t = /[^.]+$/.exec(cA && cA.keys && cA.keys.IE_PROTO || ""); +var Itr = Ntr, Ptr = FC["__core-js_shared__"], oA = Ptr, sX = function() { + var t = /[^.]+$/.exec(oA && oA.keys && oA.keys.IE_PROTO || ""); return t ? "Symbol(src)_1." + t : ""; }(); -function Ftr(t) { - return !!lX && lX in t; +function $tr(t) { + return !!sX && sX in t; } -var ztr = Ftr, Vtr = Function.prototype, Utr = Vtr.toString; -function qtr(t) { +var Btr = $tr, Ftr = Function.prototype, ztr = Ftr.toString; +function Vtr(t) { if (t != null) { try { - return Utr.call(t); + return ztr.call(t); } catch { } try { @@ -97890,53 +97834,53 @@ function qtr(t) { } return ""; } -var Ytr = qtr, Qtr = /[\\^$.*+?()[\]{}|]/g, Wtr = /^\[object .+?Constructor\]$/, Gtr = Function.prototype, Htr = Object.prototype, Xtr = Gtr.toString, Ztr = Htr.hasOwnProperty, jtr = RegExp( - "^" + Xtr.call(Ztr).replace(Qtr, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$" +var Utr = Vtr, qtr = /[\\^$.*+?()[\]{}|]/g, Ytr = /^\[object .+?Constructor\]$/, Qtr = Function.prototype, Wtr = Object.prototype, Gtr = Qtr.toString, Htr = Wtr.hasOwnProperty, Xtr = RegExp( + "^" + Gtr.call(Htr).replace(qtr, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$" ); -function Ktr(t) { - if (!_0(t) || ztr(t)) +function Ztr(t) { + if (!_0(t) || Btr(t)) return !1; - var e = $tr(t) ? jtr : Wtr; - return e.test(Ytr(t)); + var e = Itr(t) ? Xtr : Ytr; + return e.test(Utr(t)); } -var Jtr = Ktr; -function err(t, e) { +var jtr = Ztr; +function Ktr(t, e) { return t == null ? void 0 : t[e]; } -var trr = err; -function rrr(t, e) { - var r = trr(t, e); - return Jtr(r) ? r : void 0; +var Jtr = Ktr; +function err(t, e) { + var r = Jtr(t, e); + return jtr(r) ? r : void 0; } -var HP = rrr, nrr = HP(Object, "create"), K2 = nrr; -function irr() { +var QP = err, trr = QP(Object, "create"), K2 = trr; +function rrr() { this.__data__ = K2 ? K2(null) : {}, this.size = 0; } -var srr = irr; -function arr(t) { +var nrr = rrr; +function irr(t) { var e = this.has(t) && delete this.__data__[t]; return this.size -= e ? 1 : 0, e; } -var orr = arr, lrr = "__lodash_hash_undefined__", crr = Object.prototype, urr = crr.hasOwnProperty; -function hrr(t) { +var srr = irr, arr = "__lodash_hash_undefined__", orr = Object.prototype, lrr = orr.hasOwnProperty; +function crr(t) { var e = this.__data__; if (K2) { var r = e[t]; - return r === lrr ? void 0 : r; + return r === arr ? void 0 : r; } - return urr.call(e, t) ? e[t] : void 0; + return lrr.call(e, t) ? e[t] : void 0; } -var frr = hrr, drr = Object.prototype, prr = drr.hasOwnProperty; -function grr(t) { +var urr = crr, hrr = Object.prototype, frr = hrr.hasOwnProperty; +function drr(t) { var e = this.__data__; - return K2 ? e[t] !== void 0 : prr.call(e, t); + return K2 ? e[t] !== void 0 : frr.call(e, t); } -var mrr = grr, vrr = "__lodash_hash_undefined__"; -function yrr(t, e) { +var prr = drr, grr = "__lodash_hash_undefined__"; +function mrr(t, e) { var r = this.__data__; - return this.size += this.has(t) ? 0 : 1, r[t] = K2 && e === void 0 ? vrr : e, this; + return this.size += this.has(t) ? 0 : 1, r[t] = K2 && e === void 0 ? grr : e, this; } -var brr = yrr; +var vrr = mrr; function bm(t) { var e = -1, r = t == null ? 0 : t.length; for (this.clear(); ++e < r; ) { @@ -97944,49 +97888,49 @@ function bm(t) { this.set(n[0], n[1]); } } -bm.prototype.clear = srr; -bm.prototype.delete = orr; -bm.prototype.get = frr; -bm.prototype.has = mrr; -bm.prototype.set = brr; -var cX = bm; -function xrr() { +bm.prototype.clear = nrr; +bm.prototype.delete = srr; +bm.prototype.get = urr; +bm.prototype.has = prr; +bm.prototype.set = vrr; +var aX = bm; +function yrr() { this.__data__ = [], this.size = 0; } -var wrr = xrr; -function Orr(t, e) { +var brr = yrr; +function xrr(t, e) { return t === e || t !== t && e !== e; } -var kme = Orr; -function krr(t, e) { +var wme = xrr; +function wrr(t, e) { for (var r = t.length; r--; ) - if (kme(t[r][0], e)) + if (wme(t[r][0], e)) return r; return -1; } -var GC = krr, Srr = Array.prototype, Trr = Srr.splice; -function Crr(t) { - var e = this.__data__, r = GC(e, t); +var QC = wrr, Orr = Array.prototype, krr = Orr.splice; +function Srr(t) { + var e = this.__data__, r = QC(e, t); if (r < 0) return !1; var n = e.length - 1; - return r == n ? e.pop() : Trr.call(e, r, 1), --this.size, !0; + return r == n ? e.pop() : krr.call(e, r, 1), --this.size, !0; +} +var Trr = Srr; +function Crr(t) { + var e = this.__data__, r = QC(e, t); + return r < 0 ? void 0 : e[r][1]; } var Err = Crr; function _rr(t) { - var e = this.__data__, r = GC(e, t); - return r < 0 ? void 0 : e[r][1]; + return QC(this.__data__, t) > -1; } var Arr = _rr; -function Lrr(t) { - return GC(this.__data__, t) > -1; -} -var Rrr = Lrr; -function Mrr(t, e) { - var r = this.__data__, n = GC(r, t); +function Lrr(t, e) { + var r = this.__data__, n = QC(r, t); return n < 0 ? (++this.size, r.push([t, e])) : r[n][1] = e, this; } -var Drr = Mrr; +var Rrr = Lrr; function xm(t) { var e = -1, r = t == null ? 0 : t.length; for (this.clear(); ++e < r; ) { @@ -97994,48 +97938,48 @@ function xm(t) { this.set(n[0], n[1]); } } -xm.prototype.clear = wrr; -xm.prototype.delete = Err; -xm.prototype.get = Arr; -xm.prototype.has = Rrr; -xm.prototype.set = Drr; -var Nrr = xm, Irr = HP(VC, "Map"), Prr = Irr; -function $rr() { +xm.prototype.clear = brr; +xm.prototype.delete = Trr; +xm.prototype.get = Err; +xm.prototype.has = Arr; +xm.prototype.set = Rrr; +var Mrr = xm, Drr = QP(FC, "Map"), Nrr = Drr; +function Irr() { this.size = 0, this.__data__ = { - hash: new cX(), - map: new (Prr || Nrr)(), - string: new cX() + hash: new aX(), + map: new (Nrr || Mrr)(), + string: new aX() }; } -var Brr = $rr; -function Frr(t) { +var Prr = Irr; +function $rr(t) { var e = typeof t; return e == "string" || e == "number" || e == "symbol" || e == "boolean" ? t !== "__proto__" : t === null; } -var zrr = Frr; -function Vrr(t, e) { +var Brr = $rr; +function Frr(t, e) { var r = t.__data__; - return zrr(e) ? r[typeof e == "string" ? "string" : "hash"] : r.map; + return Brr(e) ? r[typeof e == "string" ? "string" : "hash"] : r.map; } -var HC = Vrr; -function Urr(t) { - var e = HC(this, t).delete(t); +var WC = Frr; +function zrr(t) { + var e = WC(this, t).delete(t); return this.size -= e ? 1 : 0, e; } +var Vrr = zrr; +function Urr(t) { + return WC(this, t).get(t); +} var qrr = Urr; function Yrr(t) { - return HC(this, t).get(t); + return WC(this, t).has(t); } var Qrr = Yrr; -function Wrr(t) { - return HC(this, t).has(t); -} -var Grr = Wrr; -function Hrr(t, e) { - var r = HC(this, t), n = r.size; +function Wrr(t, e) { + var r = WC(this, t), n = r.size; return r.set(t, e), this.size += r.size == n ? 0 : 1, this; } -var Xrr = Hrr; +var Grr = Wrr; function wm(t) { var e = -1, r = t == null ? 0 : t.length; for (this.clear(); ++e < r; ) { @@ -98043,15 +97987,15 @@ function wm(t) { this.set(n[0], n[1]); } } -wm.prototype.clear = Brr; -wm.prototype.delete = qrr; -wm.prototype.get = Qrr; -wm.prototype.has = Grr; -wm.prototype.set = Xrr; -var Sme = wm, Zrr = "Expected a function"; -function XP(t, e) { +wm.prototype.clear = Prr; +wm.prototype.delete = Vrr; +wm.prototype.get = qrr; +wm.prototype.has = Qrr; +wm.prototype.set = Grr; +var Ome = wm, Hrr = "Expected a function"; +function WP(t, e) { if (typeof t != "function" || e != null && typeof e != "function") - throw new TypeError(Zrr); + throw new TypeError(Hrr); var r = function() { var n = arguments, i = e ? e.apply(this, n) : n[0], s = r.cache; if (s.has(i)) @@ -98059,123 +98003,123 @@ function XP(t, e) { var a = t.apply(this, n); return r.cache = s.set(i, a) || s, a; }; - return r.cache = new (XP.Cache || Sme)(), r; + return r.cache = new (WP.Cache || Ome)(), r; } -XP.Cache = Sme; -var jrr = XP, Krr = 500; -function Jrr(t) { - var e = jrr(t, function(n) { - return r.size === Krr && r.clear(), n; +WP.Cache = Ome; +var Xrr = WP, Zrr = 500; +function jrr(t) { + var e = Xrr(t, function(n) { + return r.size === Zrr && r.clear(), n; }), r = e.cache; return e; } -var enr = Jrr, tnr = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, rnr = /\\(\\)?/g, nnr = enr(function(t) { +var Krr = jrr, Jrr = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, enr = /\\(\\)?/g, tnr = Krr(function(t) { var e = []; - return t.charCodeAt(0) === 46 && e.push(""), t.replace(tnr, function(r, n, i, s) { - e.push(i ? s.replace(rnr, "$1") : n || r); + return t.charCodeAt(0) === 46 && e.push(""), t.replace(Jrr, function(r, n, i, s) { + e.push(i ? s.replace(enr, "$1") : n || r); }), e; -}), Tme = nnr; -function inr(t, e) { +}), kme = tnr; +function rnr(t, e) { for (var r = -1, n = t == null ? 0 : t.length, i = Array(n); ++r < n; ) i[r] = e(t[r], r, t); return i; } -var Cme = inr, snr = 1 / 0, uX = _1 ? _1.prototype : void 0, hX = uX ? uX.toString : void 0; -function Eme(t) { +var Sme = rnr, nnr = 1 / 0, oX = _1 ? _1.prototype : void 0, lX = oX ? oX.toString : void 0; +function Tme(t) { if (typeof t == "string") return t; - if (WC(t)) - return Cme(t, Eme) + ""; + if (YC(t)) + return Sme(t, Tme) + ""; if (Xx(t)) - return hX ? hX.call(t) : ""; + return lX ? lX.call(t) : ""; var e = t + ""; - return e == "0" && 1 / t == -snr ? "-0" : e; + return e == "0" && 1 / t == -nnr ? "-0" : e; } -var anr = Eme; -function onr(t) { - return t == null ? "" : anr(t); +var inr = Tme; +function snr(t) { + return t == null ? "" : inr(t); } -var _me = onr; -function lnr(t, e) { - return WC(t) ? t : Rtr(t, e) ? [t] : Tme(_me(t)); +var Cme = snr; +function anr(t, e) { + return YC(t) ? t : Atr(t, e) ? [t] : kme(Cme(t)); } -var Ame = lnr, cnr = 1 / 0; -function unr(t) { +var Eme = anr, onr = 1 / 0; +function lnr(t) { if (typeof t == "string" || Xx(t)) return t; var e = t + ""; - return e == "0" && 1 / t == -cnr ? "-0" : e; + return e == "0" && 1 / t == -onr ? "-0" : e; } -var ZP = unr; -function hnr(t, e) { - e = Ame(e, t); +var GP = lnr; +function cnr(t, e) { + e = Eme(e, t); for (var r = 0, n = e.length; t != null && r < n; ) - t = t[ZP(e[r++])]; + t = t[GP(e[r++])]; return r && r == n ? t : void 0; } -var fnr = hnr; -function dnr(t, e, r) { - var n = t == null ? void 0 : fnr(t, e); +var unr = cnr; +function hnr(t, e, r) { + var n = t == null ? void 0 : unr(t, e); return n === void 0 ? r : n; } -var pnr = dnr, gnr = function() { +var fnr = hnr, dnr = function() { try { - var t = HP(Object, "defineProperty"); + var t = QP(Object, "defineProperty"); return t({}, "", {}), t; } catch { } -}(), fX = gnr; -function mnr(t, e, r) { - e == "__proto__" && fX ? fX(t, e, { +}(), cX = dnr; +function pnr(t, e, r) { + e == "__proto__" && cX ? cX(t, e, { configurable: !0, enumerable: !0, value: r, writable: !0 }) : t[e] = r; } -var vnr = mnr, ynr = Object.prototype, bnr = ynr.hasOwnProperty; -function xnr(t, e, r) { +var gnr = pnr, mnr = Object.prototype, vnr = mnr.hasOwnProperty; +function ynr(t, e, r) { var n = t[e]; - (!(bnr.call(t, e) && kme(n, r)) || r === void 0 && !(e in t)) && vnr(t, e, r); + (!(vnr.call(t, e) && wme(n, r)) || r === void 0 && !(e in t)) && gnr(t, e, r); } -var wnr = xnr, Onr = 9007199254740991, knr = /^(?:0|[1-9]\d*)$/; -function Snr(t, e) { +var bnr = ynr, xnr = 9007199254740991, wnr = /^(?:0|[1-9]\d*)$/; +function Onr(t, e) { var r = typeof t; - return e = e == null ? Onr : e, !!e && (r == "number" || r != "symbol" && knr.test(t)) && t > -1 && t % 1 == 0 && t < e; + return e = e == null ? xnr : e, !!e && (r == "number" || r != "symbol" && wnr.test(t)) && t > -1 && t % 1 == 0 && t < e; } -var Tnr = Snr; -function Cnr(t, e, r, n) { +var knr = Onr; +function Snr(t, e, r, n) { if (!_0(t)) return t; - e = Ame(e, t); + e = Eme(e, t); for (var i = -1, s = e.length, a = s - 1, o = t; o != null && ++i < s; ) { - var l = ZP(e[i]), u = r; + var l = GP(e[i]), u = r; if (l === "__proto__" || l === "constructor" || l === "prototype") return t; if (i != a) { var h = o[l]; - u = n ? n(h, l, o) : void 0, u === void 0 && (u = _0(h) ? h : Tnr(e[i + 1]) ? [] : {}); + u = n ? n(h, l, o) : void 0, u === void 0 && (u = _0(h) ? h : knr(e[i + 1]) ? [] : {}); } - wnr(o, l, u), o = o[l]; + bnr(o, l, u), o = o[l]; } return t; } -var Enr = Cnr; -function _nr(t, e, r) { - return t == null ? t : Enr(t, e, r); +var Tnr = Snr; +function Cnr(t, e, r) { + return t == null ? t : Tnr(t, e, r); } -var Anr = _nr; -function Lnr(t, e) { +var Enr = Cnr; +function _nr(t, e) { var r = -1, n = t.length; for (e || (e = Array(n)); ++r < n; ) e[r] = t[r]; return e; } -var Rnr = Lnr; -function Mnr(t) { - return WC(t) ? Cme(t, ZP) : Xx(t) ? [t] : Rnr(Tme(_me(t))); +var Anr = _nr; +function Lnr(t) { + return YC(t) ? Sme(t, GP) : Xx(t) ? [t] : Anr(kme(Cme(t))); } -var Dnr = Mnr, Nnr = { +var Rnr = Lnr, Mnr = { data: function(e) { var r = { field: "data", @@ -98201,18 +98145,18 @@ var Dnr = Mnr, Nnr = { return e = Kt({}, r, e), function(i, s) { var a = e, o = this, l = o.length !== void 0, u = l ? o : [o], h = l ? o[0] : o; if (qt(i)) { - var f = i.indexOf(".") !== -1, d = f && Dnr(i); + var f = i.indexOf(".") !== -1, d = f && Rnr(i); if (a.allowGetting && s === void 0) { var p; - return h && (a.beforeGet(h), d && h._private[a.field][i] === void 0 ? p = pnr(h._private[a.field], d) : p = h._private[a.field][i]), p; + return h && (a.beforeGet(h), d && h._private[a.field][i] === void 0 ? p = fnr(h._private[a.field], d) : p = h._private[a.field][i]), p; } else if (a.allowSetting && s !== void 0) { var g = !a.immutableKeys[i]; if (g) { - var m = V1e({}, i, s); + var m = F1e({}, i, s); a.beforeSet(o, m); for (var v = 0, y = u.length; v < y; v++) { var b = u[v]; - a.canSet(b) && (d && h._private[a.field][i] === void 0 ? Anr(b._private[a.field], d, s) : b._private[a.field][i] = s); + a.canSet(b) && (d && h._private[a.field][i] === void 0 ? Enr(b._private[a.field], d, s) : b._private[a.field][i] = s); } a.updateStyle && o.updateStyle(), a.onSet(o), a.settingTriggersEvent && o[a.triggerFnName](a.settingEvent); } @@ -98272,7 +98216,7 @@ var Dnr = Mnr, Nnr = { return a; }; } -}, Inr = { +}, Dnr = { eventAliasesOn: function(e) { var r = e; r.addListener = r.listen = r.bind = r.on, r.unlisten = r.unbind = r.off = r.removeListener, r.trigger = r.emit, r.pon = r.promiseOn = function(n, i) { @@ -98286,10 +98230,10 @@ var Dnr = Mnr, Nnr = { }; } }, Vr = {}; -[Ctr, Nnr, Inr].forEach(function(t) { +[Str, Mnr, Dnr].forEach(function(t) { Kt(Vr, t); }); -var Pnr = { +var Nnr = { animate: Vr.animate(), animation: Vr.animation(), animated: Vr.animated(), @@ -98297,7 +98241,7 @@ var Pnr = { delay: Vr.delay(), delayAnimation: Vr.delayAnimation(), stop: Vr.stop() -}, l5 = { +}, o5 = { classes: function(e) { var r = this; if (e === void 0) { @@ -98349,7 +98293,7 @@ var Pnr = { }, r), n; } }; -l5.className = l5.classNames = l5.classes; +o5.className = o5.classNames = o5.classes; var _r = { metaChar: "[\\!\\\"\\#\\$\\%\\&\\'\\(\\)\\*\\+\\,\\.\\/\\:\\;\\<\\=\\>\\?\\@\\[\\]\\^\\`\\{\\|\\}\\~]", comparatorOp: "=|\\!=|>|>=|<|<=|\\$=|\\^=|\\*=", @@ -98402,7 +98346,7 @@ var Zr = function() { ANCESTOR: 18, COMPOUND_SPLIT: 19, TRUE: 20 -}, lR = [{ +}, sR = [{ selector: ":selected", matches: function(e) { return e.selected(); @@ -98548,14 +98492,14 @@ var Zr = function() { return !e.backgrounding(); } }].sort(function(t, e) { - return HKt(t.selector, e.selector); -}), $nr = function() { - for (var t = {}, e, r = 0; r < lR.length; r++) - e = lR[r], t[e.selector] = e.matches; + return WKt(t.selector, e.selector); +}), Inr = function() { + for (var t = {}, e, r = 0; r < sR.length; r++) + e = sR[r], t[e.selector] = e.matches; return t; -}(), Bnr = function(e, r) { - return $nr[e](r); -}, Fnr = "(" + lR.map(function(t) { +}(), Pnr = function(e, r) { + return Inr[e](r); +}, $nr = "(" + sR.map(function(t) { return t.selector; }).join("|") + ")", mp = function(e) { return e.replace(new RegExp("\\\\(" + _r.metaChar + ")", "g"), function(r, n) { @@ -98563,7 +98507,7 @@ var Zr = function() { }); }, xh = function(e, r, n) { e[e.length - 1] = n; -}, cR = [{ +}, aR = [{ name: "group", query: !0, regex: "(" + _r.group + ")", @@ -98577,7 +98521,7 @@ var Zr = function() { }, { name: "state", query: !0, - regex: Fnr, + regex: $nr, populate: function(e, r, n) { var i = ul(n, 1), s = i[0]; r.checks.push({ @@ -98793,12 +98737,12 @@ var Zr = function() { s === Rt.DIRECTED_EDGE ? i.type = Rt.NODE_TARGET : s === Rt.UNDIRECTED_EDGE && (i.type = Rt.NODE_NEIGHBOR, i.node = i.nodes[1], i.neighbor = i.nodes[0], i.nodes = null); } }]; -cR.forEach(function(t) { +aR.forEach(function(t) { return t.regexObj = new RegExp("^" + t.regex); }); -var znr = function(e) { - for (var r, n, i, s = 0; s < cR.length; s++) { - var a = cR[s], o = a.name, l = e.match(a.regexObj); +var Bnr = function(e) { + for (var r, n, i, s = 0; s < aR.length; s++) { + var a = aR[s], o = a.name, l = e.match(a.regexObj); if (l != null) { n = l, r = a, i = o; var u = l[0]; @@ -98812,17 +98756,17 @@ var znr = function(e) { name: i, remaining: e }; -}, Vnr = function(e) { +}, Fnr = function(e) { var r = e.match(/^\s+/); if (r) { var n = r[0]; e = e.substring(n.length); } return e; -}, Unr = function(e) { +}, znr = function(e) { var r = this, n = r.inputText = e, i = r[0] = Zr(); - for (r.length = 1, n = Vnr(n); ; ) { - var s = znr(n); + for (r.length = 1, n = Fnr(n); ; ) { + var s = Bnr(n); if (s.expr == null) return Yr("The selector `" + e + "`is invalid"), !1; var a = s.match.slice(1), o = s.expr.populate(r, i, a); @@ -98842,7 +98786,7 @@ var znr = function(e) { h.edgeCount === 1 && Yr("The selector `" + e + "` is deprecated. Edge selectors do not take effect on changes to source and target nodes after an edge is added, for performance reasons. Use a class or data selector on edges instead, updating the class or data of an edge when your app detects a change in source or target nodes."); } return !0; -}, qnr = function() { +}, Vnr = function() { if (this.toStringCache != null) return this.toStringCache; for (var e = function(h) { @@ -98902,10 +98846,10 @@ var znr = function(e) { a += s(l, l.subject), this.length > 1 && o < this.length - 1 && (a += ", "); } return this.toStringCache = a, a; -}, Ynr = { - parse: Unr, - toString: qnr -}, Lme = function(e, r, n) { +}, Unr = { + parse: znr, + toString: Vnr +}, _me = function(e, r, n) { var i, s = qt(e), a = bt(e), o = qt(n), l, u, h = !1, f = !1, d = !1; switch (r.indexOf("!") >= 0 && (r = r.replace("!", ""), f = !0), r.indexOf("@") >= 0 && (r = r.replace("@", ""), h = !0), (s || o || h) && (l = !s && !a ? "" : "" + e, u = "" + n), h && (e = l = l.toLowerCase(), n = u = u.toLowerCase()), r) { case "*=": @@ -98937,7 +98881,7 @@ var znr = function(e) { break; } return f && (e != null || !d) && (i = !i), i; -}, Qnr = function(e, r) { +}, qnr = function(e, r) { switch (r) { case "?": return !!e; @@ -98946,11 +98890,11 @@ var znr = function(e) { case "^": return e === void 0; } -}, Wnr = function(e) { +}, Ynr = function(e) { return e !== void 0; -}, jP = function(e, r) { +}, HP = function(e, r) { return e.data(r); -}, Gnr = function(e, r) { +}, Qnr = function(e, r) { return e[r](); }, Wn = [], xn = function(e, r) { return e.checks.every(function(n) { @@ -98963,7 +98907,7 @@ Wn[Rt.GROUP] = function(t, e) { }; Wn[Rt.STATE] = function(t, e) { var r = t.value; - return Bnr(r, e); + return Pnr(r, e); }; Wn[Rt.ID] = function(t, e) { var r = t.value; @@ -98975,19 +98919,19 @@ Wn[Rt.CLASS] = function(t, e) { }; Wn[Rt.META_COMPARE] = function(t, e) { var r = t.field, n = t.operator, i = t.value; - return Lme(Gnr(e, r), n, i); + return _me(Qnr(e, r), n, i); }; Wn[Rt.DATA_COMPARE] = function(t, e) { var r = t.field, n = t.operator, i = t.value; - return Lme(jP(e, r), n, i); + return _me(HP(e, r), n, i); }; Wn[Rt.DATA_BOOL] = function(t, e) { var r = t.field, n = t.operator; - return Qnr(jP(e, r), n); + return qnr(HP(e, r), n); }; Wn[Rt.DATA_EXIST] = function(t, e) { var r = t.field; - return t.operator, Wnr(jP(e, r)); + return t.operator, Ynr(HP(e, r)); }; Wn[Rt.UNDIRECTED_EDGE] = function(t, e) { var r = t.nodes[0], n = t.nodes[1], i = e.source(), s = e.target(); @@ -99043,7 +98987,7 @@ Wn[Rt.FILTER] = function(t, e) { var r = t.value; return r(e); }; -var Hnr = function(e) { +var Wnr = function(e) { var r = this; if (r.length === 1 && r[0].checks.length === 1 && r[0].checks[0].type === Rt.ID) return e.getElementById(r[0].checks[0].value).collection(); @@ -99058,16 +99002,16 @@ var Hnr = function(e) { return r.text() == null && (n = function() { return !0; }), e.filter(n); -}, Xnr = function(e) { +}, Gnr = function(e) { for (var r = this, n = 0; n < r.length; n++) { var i = r[n]; if (xn(i, e)) return !0; } return !1; -}, Znr = { - matches: Xnr, - filter: Hnr +}, Hnr = { + matches: Gnr, + filter: Wnr }, Nf = function(e) { this.inputText = e, this.currentSubject = null, this.compoundCount = 0, this.edgeCount = 0, this.length = 0, e == null || qt(e) && e.match(/^\s*$/) || (co(e) ? this.addQuery({ checks: [{ @@ -99081,7 +99025,7 @@ var Hnr = function(e) { }] }) : qt(e) ? this.parse(e) || (this.invalid = !0) : Qn("A selector must be created from a string; found ")); }, If = Nf.prototype; -[Ynr, Znr].forEach(function(t) { +[Unr, Hnr].forEach(function(t) { return Kt(If, t); }); If.text = function() { @@ -99251,7 +99195,7 @@ var $o = function(e, r) { return n(this.children()), this.spawn(r, !0).filter(e); } }; -function KP(t, e, r, n) { +function XP(t, e, r, n) { for (var i = [], s = new vm(), a = t.cy(), o = a.hasCompoundNodes(), l = 0; l < t.length; l++) { var u = t[l]; r ? i.push(u) : o && n(i, s, u); @@ -99262,7 +99206,7 @@ function KP(t, e, r, n) { } return t; } -function Rme(t, e, r) { +function Ame(t, e, r) { if (r.isParent()) for (var n = r._private.children, i = 0; i < n.length; i++) { var s = n[i]; @@ -99271,9 +99215,9 @@ function Rme(t, e, r) { } R1.forEachDown = function(t) { var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0; - return KP(this, t, e, Rme); + return XP(this, t, e, Ame); }; -function Mme(t, e, r) { +function Lme(t, e, r) { if (r.isChild()) { var n = r._private.parent; e.has(n.id()) || t.push(n); @@ -99281,18 +99225,18 @@ function Mme(t, e, r) { } R1.forEachUp = function(t) { var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0; - return KP(this, t, e, Mme); + return XP(this, t, e, Lme); }; -function jnr(t, e, r) { - Mme(t, e, r), Rme(t, e, r); +function Xnr(t, e, r) { + Lme(t, e, r), Ame(t, e, r); } R1.forEachUpAndDown = function(t) { var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0; - return KP(this, t, e, jnr); + return XP(this, t, e, Xnr); }; R1.ancestors = R1.parents; -var J2, Dme; -J2 = Dme = { +var J2, Rme; +J2 = Rme = { data: Vr.data({ field: "data", bindingEvent: "data", @@ -99360,8 +99304,8 @@ J2 = Dme = { }; J2.attr = J2.data; J2.removeAttr = J2.removeData; -var Knr = Dme, XC = {}; -function uA(t) { +var Znr = Rme, GC = {}; +function lA(t) { return function(e) { var r = this; if (e === void 0 && (e = !0), r.length !== 0) @@ -99375,14 +99319,14 @@ function uA(t) { return; }; } -Kt(XC, { - degree: uA(function(t, e) { +Kt(GC, { + degree: lA(function(t, e) { return e.source().same(e.target()) ? 2 : 1; }), - indegree: uA(function(t, e) { + indegree: lA(function(t, e) { return e.target().same(t) ? 1 : 0; }), - outdegree: uA(function(t, e) { + outdegree: lA(function(t, e) { return e.source().same(t) ? 1 : 0; }) }); @@ -99395,7 +99339,7 @@ function vp(t, e) { return n; }; } -Kt(XC, { +Kt(GC, { minDegree: vp("degree", function(t, e) { return t < e; }), @@ -99415,14 +99359,14 @@ Kt(XC, { return t > e; }) }); -Kt(XC, { +Kt(GC, { totalDegree: function(e) { for (var r = 0, n = this.nodes(), i = 0; i < n.length; i++) r += n[i].degree(e); return r; } }); -var _l, Nme, Ime = function(e, r, n) { +var _l, Mme, Dme = function(e, r, n) { for (var i = 0; i < e.length; i++) { var s = e[i]; if (!s.locked()) { @@ -99433,7 +99377,7 @@ var _l, Nme, Ime = function(e, r, n) { s.isParent() && !(o.x === 0 && o.y === 0) && s.children().shift(o, n), s.dirtyBoundingBoxCache(); } } -}, dX = { +}, uX = { field: "position", bindingEvent: "position", allowBinding: !0, @@ -99447,7 +99391,7 @@ var _l, Nme, Ime = function(e, r, n) { e.updateCompoundBounds(); }, beforeSet: function(e, r) { - Ime(e, r, !1); + Dme(e, r, !1); }, onSet: function(e) { e.dirtyCompoundBoundsCache(); @@ -99456,15 +99400,15 @@ var _l, Nme, Ime = function(e, r, n) { return !e.locked(); } }; -_l = Nme = { - position: Vr.data(dX), - silentPosition: Vr.data(Kt({}, dX, { +_l = Mme = { + position: Vr.data(uX), + silentPosition: Vr.data(Kt({}, uX, { allowBinding: !1, allowSetting: !0, settingTriggersEvent: !1, allowGetting: !1, beforeSet: function(e, r) { - Ime(e, r, !0); + Dme(e, r, !0); }, onSet: function(e) { e.dirtyCompoundBoundsCache(); @@ -99521,11 +99465,11 @@ _l = Nme = { if (l) for (var u = 0; u < this.length; u++) { var h = this[u]; - r !== void 0 ? h.position(e, (r - a[e]) / s) : o !== void 0 && h.position(ome(o, s, a)); + r !== void 0 ? h.position(e, (r - a[e]) / s) : o !== void 0 && h.position(sme(o, s, a)); } else { var f = n.position(); - return o = YC(f, s, a), e === void 0 ? o : o[e]; + return o = UC(f, s, a), e === void 0 ? o : o[e]; } else if (!l) return; @@ -99568,7 +99512,7 @@ _l.modelPosition = _l.point = _l.position; _l.modelPositions = _l.points = _l.positions; _l.renderedPoint = _l.renderedPosition; _l.relativePoint = _l.relativePosition; -var Jnr = Nme, yg, Gf; +var jnr = Mme, yg, Gf; yg = Gf = {}; Gf.renderedBoundingBox = function(t) { var e = this.boundingBox(t), r = this.cy(), n = r.zoom(), i = r.pan(), s = e.x1 * n + i.x, a = e.x2 * n + i.x, o = e.y1 * n + i.y, l = e.y2 * n + i.y; @@ -99670,16 +99614,16 @@ var Eo = function(e) { return r == null ? e : fl(e, r.x1, r.y1, r.x2, r.y2); }, lv = function(e, r, n) { return ml(e, r, n); -}, UO = function(e, r, n) { +}, VO = function(e, r, n) { if (!r.cy().headless()) { var i = r._private, s = i.rstyle, a = s.arrowWidth / 2, o = r.pstyle(n + "-arrow-shape").value, l, u; if (o !== "none") { n === "source" ? (l = s.srcX, u = s.srcY) : n === "target" ? (l = s.tgtX, u = s.tgtY) : (l = s.midX, u = s.midY); var h = i.arrowBounds = i.arrowBounds || {}, f = h[n] = h[n] || {}; - f.x1 = l - a, f.y1 = u - a, f.x2 = l + a, f.y2 = u + a, f.w = f.x2 - f.x1, f.h = f.y2 - f.y1, a5(f, 1), fl(e, f.x1, f.y1, f.x2, f.y2); + f.x1 = l - a, f.y1 = u - a, f.x2 = l + a, f.y2 = u + a, f.w = f.x2 - f.x1, f.h = f.y2 - f.y1, s5(f, 1), fl(e, f.x1, f.y1, f.x2, f.y2); } } -}, hA = function(e, r, n) { +}, cA = function(e, r, n) { if (!r.cy().headless()) { var i; n ? i = n + "-" : i = ""; @@ -99749,20 +99693,20 @@ var Eo = function(e) { } return e; } -}, eir = function(e, r) { +}, Knr = function(e, r) { if (!r.cy().headless()) { var n = r.pstyle("outline-opacity").value, i = r.pstyle("outline-width").value; if (n > 0 && i > 0) { var s = r.pstyle("outline-offset").value, a = r.pstyle("shape").value, o = i + s, l = (e.w + o * 2) / e.w, u = (e.h + o * 2) / e.h, h = 0, f = 0; ["diamond", "pentagon", "round-triangle"].includes(a) ? (l = (e.w + o * 2.4) / e.w, f = -o / 3.6) : ["concave-hexagon", "rhomboid", "right-rhomboid"].includes(a) ? l = (e.w + o * 2.4) / e.w : a === "star" ? (l = (e.w + o * 2.8) / e.w, u = (e.h + o * 2.6) / e.h, f = -o / 3.8) : a === "triangle" ? (l = (e.w + o * 2.8) / e.w, u = (e.h + o * 2.4) / e.h, f = -o / 1.4) : a === "vee" && (l = (e.w + o * 4.4) / e.w, u = (e.h + o * 3.8) / e.h, f = -o * 0.5); var d = e.h * u - e.h, p = e.w * l - e.w; - if (o5(e, [Math.ceil(d / 2), Math.ceil(p / 2)]), h != 0 || f !== 0) { - var g = wer(e, h, f); - cme(e, g); + if (a5(e, [Math.ceil(d / 2), Math.ceil(p / 2)]), h != 0 || f !== 0) { + var g = ber(e, h, f); + ome(e, g); } } } -}, tir = function(e, r) { +}, Jnr = function(e, r) { var n = e._private.cy, i = n.styleEnabled(), s = n.headless(), a = Fa(), o = e._private, l = e.isNode(), u = e.isEdge(), h, f, d, p, g, m, v = o.rstyle, y = l && i ? e.pstyle("bounds-expansion").pfValue : [0], b = function(_e) { return _e.pstyle("display").value !== "none"; }, w = !i || b(e) && (!u || b(e.source()) && b(e.target())); @@ -99776,7 +99720,7 @@ var Eo = function(e) { var _ = e.position(); g = _.x, m = _.y; var A = e.outerWidth(), $ = A / 2, k = e.outerHeight(), N = k / 2; - h = g - $, f = g + $, d = m - N, p = m + N, fl(a, h, d, f, p), i && r.includeOutlines && eir(a, e); + h = g - $, f = g + $, d = m - N, p = m + N, fl(a, h, d, f, p), i && r.includeOutlines && Knr(a, e); } else if (u && r.includeEdges) if (i && !s) { var M = e.pstyle("curve-style").strValue; @@ -99825,7 +99769,7 @@ var Eo = function(e) { } h -= R, f += R, d -= R, p += R, fl(a, h, d, f, p); } - if (i && r.includeEdges && u && (UO(a, e, "mid-source"), UO(a, e, "mid-target"), UO(a, e, "source"), UO(a, e, "target")), i) { + if (i && r.includeEdges && u && (VO(a, e, "mid-source"), VO(a, e, "mid-target"), VO(a, e, "source"), VO(a, e, "target")), i) { var U = e.pstyle("ghost").value === "yes"; if (U) { var Z = e.pstyle("ghost-offset-x").pfValue, W = e.pstyle("ghost-offset-y").pfValue; @@ -99833,31 +99777,31 @@ var Eo = function(e) { } } var j = o.bodyBounds = o.bodyBounds || {}; - WH(j, a), o5(j, y), a5(j, 1), i && (h = a.x1, f = a.x2, d = a.y1, p = a.y2, fl(a, h - L, d - L, f + L, p + L)); + qH(j, a), a5(j, y), s5(j, 1), i && (h = a.x1, f = a.x2, d = a.y1, p = a.y2, fl(a, h - L, d - L, f + L, p + L)); var ae = o.overlayBounds = o.overlayBounds || {}; - WH(ae, a), o5(ae, y), a5(ae, 1); + qH(ae, a), a5(ae, y), s5(ae, 1); var se = o.labelBounds = o.labelBounds || {}; - se.all != null ? xer(se.all) : se.all = Fa(), i && r.includeLabels && (r.includeMainLabels && hA(a, e, null), u && (r.includeSourceLabels && hA(a, e, "source"), r.includeTargetLabels && hA(a, e, "target"))); + se.all != null ? yer(se.all) : se.all = Fa(), i && r.includeLabels && (r.includeMainLabels && cA(a, e, null), u && (r.includeSourceLabels && cA(a, e, "source"), r.includeTargetLabels && cA(a, e, "target"))); } - return a.x1 = Eo(a.x1), a.y1 = Eo(a.y1), a.x2 = Eo(a.x2), a.y2 = Eo(a.y2), a.w = Eo(a.x2 - a.x1), a.h = Eo(a.y2 - a.y1), a.w > 0 && a.h > 0 && w && (o5(a, y), a5(a, 1)), a; -}, Pme = function(e) { + return a.x1 = Eo(a.x1), a.y1 = Eo(a.y1), a.x2 = Eo(a.x2), a.y2 = Eo(a.y2), a.w = Eo(a.x2 - a.x1), a.h = Eo(a.y2 - a.y1), a.w > 0 && a.h > 0 && w && (a5(a, y), s5(a, 1)), a; +}, Nme = function(e) { var r = 0, n = function(a) { return (a ? 1 : 0) << r++; }, i = 0; return i += n(e.incudeNodes), i += n(e.includeEdges), i += n(e.includeLabels), i += n(e.includeMainLabels), i += n(e.includeSourceLabels), i += n(e.includeTargetLabels), i += n(e.includeOverlays), i += n(e.includeOutlines), i; -}, $me = function(e) { +}, Ime = function(e) { if (e.isEdge()) { var r = e.source().position(), n = e.target().position(), i = function(a) { return Math.round(a); }; - return VJt([i(r.x), i(r.y), i(n.x), i(n.y)]); + return FJt([i(r.x), i(r.y), i(n.x), i(n.y)]); } else return 0; -}, pX = function(e, r) { - var n = e._private, i, s = e.isEdge(), a = r == null ? gX : Pme(r), o = a === gX, l = $me(e), u = n.bbCachePosKey === l, h = r.useCache && u, f = function(m) { +}, hX = function(e, r) { + var n = e._private, i, s = e.isEdge(), a = r == null ? fX : Nme(r), o = a === fX, l = Ime(e), u = n.bbCachePosKey === l, h = r.useCache && u, f = function(m) { return m._private.bbCache == null || m._private.styleDirty; }, d = !h || f(e) || s && f(e.source()) || f(e.target()); - if (d ? (u || e.recalculateRenderedStyle(h), i = tir(e, eb), n.bbCache = i, n.bbCachePosKey = l) : i = n.bbCache, !o) { + if (d ? (u || e.recalculateRenderedStyle(h), i = Jnr(e, eb), n.bbCache = i, n.bbCachePosKey = l) : i = n.bbCache, !o) { var p = e.isNode(); i = Fa(), (r.includeNodes && p || r.includeEdges && !p) && (r.includeOverlays ? fd(i, n.overlayBounds) : fd(i, n.bodyBounds)), r.includeLabels && (r.includeMainLabels && (!s || r.includeSourceLabels && r.includeTargetLabels) ? fd(i, n.labelBounds.all) : (r.includeMainLabels && fd(i, n.labelBounds.mainRot), r.includeSourceLabels && fd(i, n.labelBounds.sourceRot), r.includeTargetLabels && fd(i, n.labelBounds.targetRot))), i.w = i.x2 - i.x1, i.h = i.y2 - i.y1; } @@ -99873,23 +99817,23 @@ var Eo = function(e) { includeUnderlays: !0, includeOutlines: !0, useCache: !0 -}, gX = Pme(eb), mX = ws(eb); +}, fX = Nme(eb), dX = ws(eb); Gf.boundingBox = function(t) { var e; if (this.length === 1 && this[0]._private.bbCache != null && !this[0]._private.styleDirty && (t === void 0 || t.useCache === void 0 || t.useCache === !0)) - t === void 0 ? t = eb : t = mX(t), e = pX(this[0], t); + t === void 0 ? t = eb : t = dX(t), e = hX(this[0], t); else { e = Fa(), t = t || eb; - var r = mX(t), n = this, i = n.cy(), s = i.styleEnabled(); + var r = dX(t), n = this, i = n.cy(), s = i.styleEnabled(); if (s) for (var a = 0; a < n.length; a++) { - var o = n[a], l = o._private, u = $me(o), h = l.bbCachePosKey === u, f = r.useCache && h && !l.styleDirty; + var o = n[a], l = o._private, u = Ime(o), h = l.bbCachePosKey === u, f = r.useCache && h && !l.styleDirty; o.recalculateRenderedStyle(f); } this.updateCompoundBounds(!t.useCache); for (var d = 0; d < n.length; d++) { var p = n[d]; - fd(e, pX(p, r)); + fd(e, hX(p, r)); } } return e.x1 = Eo(e.x1), e.y1 = Eo(e.y1), e.x2 = Eo(e.x2), e.y2 = Eo(e.y2), e.w = Eo(e.x2 - e.x1), e.h = Eo(e.y2 - e.y1), e; @@ -99917,17 +99861,17 @@ Gf.boundingBoxAt = function(t) { return h._private.bbAtOldPos; }; r.startBatch(), e.forEach(a).silentPositions(t), n && (i.dirtyCompoundBoundsCache(), i.dirtyBoundingBoxCache(), i.updateCompoundBounds(!0)); - var l = ber(this.boundingBox({ + var l = ver(this.boundingBox({ useCache: !1 })); return e.silentPositions(o), n && (i.dirtyCompoundBoundsCache(), i.dirtyBoundingBoxCache(), i.updateCompoundBounds(!0)), r.endBatch(), l; }; yg.boundingbox = yg.bb = yg.boundingBox; yg.renderedBoundingbox = yg.renderedBoundingBox; -var rir = Gf, zv, jx; +var eir = Gf, zv, jx; zv = jx = {}; -var Bme = function(e) { - e.uppercaseName = FH(e.name), e.autoName = "auto" + e.uppercaseName, e.labelName = "label" + e.uppercaseName, e.outerName = "outer" + e.uppercaseName, e.uppercaseOuterName = FH(e.outerName), zv[e.name] = function() { +var Pme = function(e) { + e.uppercaseName = PH(e.name), e.autoName = "auto" + e.uppercaseName, e.labelName = "label" + e.uppercaseName, e.outerName = "outer" + e.uppercaseName, e.uppercaseOuterName = PH(e.outerName), zv[e.name] = function() { var n = this[0], i = n._private, s = i.cy, a = s._private.styleEnabled; if (n) if (a) { @@ -99964,10 +99908,10 @@ var Bme = function(e) { } }; }; -Bme({ +Pme({ name: "width" }); -Bme({ +Pme({ name: "height" }); jx.padding = function() { @@ -99982,61 +99926,61 @@ jx.paddedWidth = function() { var t = this[0]; return t.width() + 2 * t.padding(); }; -var nir = jx, iir = function(e, r) { +var tir = jx, rir = function(e, r) { if (e.isEdge()) return r(e); -}, sir = function(e, r) { +}, nir = function(e, r) { if (e.isEdge()) { var n = e.cy(); - return YC(r(e), n.zoom(), n.pan()); + return UC(r(e), n.zoom(), n.pan()); } -}, air = function(e, r) { +}, iir = function(e, r) { if (e.isEdge()) { var n = e.cy(), i = n.pan(), s = n.zoom(); return r(e).map(function(a) { - return YC(a, s, i); + return UC(a, s, i); }); } -}, oir = function(e) { +}, sir = function(e) { return e.renderer().getControlPoints(e); -}, lir = function(e) { +}, air = function(e) { return e.renderer().getSegmentPoints(e); -}, cir = function(e) { +}, oir = function(e) { return e.renderer().getSourceEndpoint(e); -}, uir = function(e) { +}, lir = function(e) { return e.renderer().getTargetEndpoint(e); -}, hir = function(e) { +}, cir = function(e) { return e.renderer().getEdgeMidpoint(e); -}, vX = { +}, pX = { controlPoints: { - get: oir, + get: sir, mult: !0 }, segmentPoints: { - get: lir, + get: air, mult: !0 }, sourceEndpoint: { - get: cir + get: oir }, targetEndpoint: { - get: uir + get: lir }, midpoint: { - get: hir + get: cir } -}, fir = function(e) { +}, uir = function(e) { return "rendered" + e[0].toUpperCase() + e.substr(1); -}, dir = Object.keys(vX).reduce(function(t, e) { - var r = vX[e], n = fir(e); +}, hir = Object.keys(pX).reduce(function(t, e) { + var r = pX[e], n = uir(e); return t[e] = function() { - return iir(this, r.get); + return rir(this, r.get); }, r.mult ? t[n] = function() { - return air(this, r.get); + return iir(this, r.get); } : t[n] = function() { - return sir(this, r.get); + return nir(this, r.get); }, t; -}, {}), pir = Kt({}, Jnr, rir, nir, dir); +}, {}), fir = Kt({}, jnr, eir, tir, hir); /*! Event object based on jQuery events, MIT license @@ -100044,21 +99988,21 @@ https://jquery.org/license/ https://tldrlegal.com/license/mit-license https://github.com/jquery/jquery/blob/master/src/event.js */ -var Fme = function(e, r) { +var $me = function(e, r) { this.recycle(e, r); }; function cv() { return !1; } -function qO() { +function UO() { return !0; } -Fme.prototype = { +$me.prototype = { instanceString: function() { return "event"; }, recycle: function(e, r) { - if (this.isImmediatePropagationStopped = this.isPropagationStopped = this.isDefaultPrevented = cv, e != null && e.preventDefault ? (this.type = e.type, this.isDefaultPrevented = e.defaultPrevented ? qO : cv) : e != null && e.type ? r = e : this.type = e, r != null && (this.originalEvent = r.originalEvent, this.type = r.type != null ? r.type : this.type, this.cy = r.cy, this.target = r.target, this.position = r.position, this.renderedPosition = r.renderedPosition, this.namespace = r.namespace, this.layout = r.layout), this.cy != null && this.position != null && this.renderedPosition == null) { + if (this.isImmediatePropagationStopped = this.isPropagationStopped = this.isDefaultPrevented = cv, e != null && e.preventDefault ? (this.type = e.type, this.isDefaultPrevented = e.defaultPrevented ? UO : cv) : e != null && e.type ? r = e : this.type = e, r != null && (this.originalEvent = r.originalEvent, this.type = r.type != null ? r.type : this.type, this.cy = r.cy, this.target = r.target, this.position = r.position, this.renderedPosition = r.renderedPosition, this.namespace = r.namespace, this.layout = r.layout), this.cy != null && this.position != null && this.renderedPosition == null) { var n = this.position, i = this.cy.zoom(), s = this.cy.pan(); this.renderedPosition = { x: n.x * i + s.x, @@ -100068,23 +100012,23 @@ Fme.prototype = { this.timeStamp = e && e.timeStamp || Date.now(); }, preventDefault: function() { - this.isDefaultPrevented = qO; + this.isDefaultPrevented = UO; var e = this.originalEvent; !e || e.preventDefault && e.preventDefault(); }, stopPropagation: function() { - this.isPropagationStopped = qO; + this.isPropagationStopped = UO; var e = this.originalEvent; !e || e.stopPropagation && e.stopPropagation(); }, stopImmediatePropagation: function() { - this.isImmediatePropagationStopped = qO, this.stopPropagation(); + this.isImmediatePropagationStopped = UO, this.stopPropagation(); }, isDefaultPrevented: cv, isPropagationStopped: cv, isImmediatePropagationStopped: cv }; -var zme = /^([^.]+)(\.(?:[^.]+))?$/, gir = ".*", Vme = { +var Bme = /^([^.]+)(\.(?:[^.]+))?$/, dir = ".*", Fme = { qualifierCompare: function(e, r) { return e === r; }, @@ -100107,20 +100051,20 @@ var zme = /^([^.]+)(\.(?:[^.]+))?$/, gir = ".*", Vme = { return null; }, context: null -}, yX = Object.keys(Vme), mir = {}; -function ZC() { - for (var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : mir, e = arguments.length > 1 ? arguments[1] : void 0, r = 0; r < yX.length; r++) { - var n = yX[r]; - this[n] = t[n] || Vme[n]; +}, gX = Object.keys(Fme), pir = {}; +function HC() { + for (var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : pir, e = arguments.length > 1 ? arguments[1] : void 0, r = 0; r < gX.length; r++) { + var n = gX[r]; + this[n] = t[n] || Fme[n]; } this.context = e || this.context, this.listeners = [], this.emitting = 0; } -var Pf = ZC.prototype, Ume = function(e, r, n, i, s, a, o) { +var Pf = HC.prototype, zme = function(e, r, n, i, s, a, o) { Pn(i) && (s = i, i = null), o && (a == null ? a = o : a = Kt({}, a, o)); for (var l = sn(n) ? n : n.split(/\s+/), u = 0; u < l.length; u++) { var h = l[u]; if (!Mf(h)) { - var f = h.match(zme); + var f = h.match(Bme); if (f) { var d = f[1], p = f[2] ? f[2] : null, g = r(e, h, d, p, i, s, a); if (g === !1) @@ -100128,22 +100072,22 @@ var Pf = ZC.prototype, Ume = function(e, r, n, i, s, a, o) { } } } -}, bX = function(e, r) { - return e.addEventFields(e.context, r), new Fme(r.type, r); -}, vir = function(e, r, n) { - if ($Kt(n)) { +}, mX = function(e, r) { + return e.addEventFields(e.context, r), new $me(r.type, r); +}, gir = function(e, r, n) { + if (IKt(n)) { r(e, n); return; } else if (Ar(n)) { - r(e, bX(e, n)); + r(e, mX(e, n)); return; } for (var i = sn(n) ? n : n.split(/\s+/), s = 0; s < i.length; s++) { var a = i[s]; if (!Mf(a)) { - var o = a.match(zme); + var o = a.match(Bme); if (o) { - var l = o[1], u = o[2] ? o[2] : null, h = bX(e, { + var l = o[1], u = o[2] ? o[2] : null, h = mX(e, { type: l, namespace: u, target: e.context @@ -100154,7 +100098,7 @@ var Pf = ZC.prototype, Ume = function(e, r, n, i, s, a, o) { } }; Pf.on = Pf.addListener = function(t, e, r, n, i) { - return Ume(this, function(s, a, o, l, u, h, f) { + return zme(this, function(s, a, o, l, u, h, f) { Pn(h) && s.listeners.push({ event: a, callback: h, @@ -100172,10 +100116,10 @@ Pf.one = function(t, e, r, n) { }; Pf.removeListener = Pf.off = function(t, e, r, n) { var i = this; - this.emitting !== 0 && (this.listeners = WJt(this.listeners)); + this.emitting !== 0 && (this.listeners = YJt(this.listeners)); for (var s = this.listeners, a = function(u) { var h = s[u]; - Ume(i, function(f, d, p, g, m, v) { + zme(i, function(f, d, p, g, m, v) { if ((h.type === p || t === "*") && (!g && h.namespace !== ".*" || h.namespace === g) && (!m || f.qualifierCompare(h.qualifier, m)) && (!v || h.callback === v)) return s.splice(u, 1), !1; }, t, e, r, n); @@ -100188,7 +100132,7 @@ Pf.removeAllListeners = function() { }; Pf.emit = Pf.trigger = function(t, e, r) { var n = this.listeners, i = n.length; - return this.emitting++, sn(e) || (e = [e]), vir(this, function(s, a) { + return this.emitting++, sn(e) || (e = [e]), gir(this, function(s, a) { r != null && (n = [{ event: a.event, type: a.type, @@ -100197,9 +100141,9 @@ Pf.emit = Pf.trigger = function(t, e, r) { }], i = n.length); for (var o = function(h) { var f = n[h]; - if (f.type === a.type && (!f.namespace || f.namespace === a.namespace || f.namespace === gir) && s.eventMatches(s.context, f, a)) { + if (f.type === a.type && (!f.namespace || f.namespace === a.namespace || f.namespace === dir) && s.eventMatches(s.context, f, a)) { var d = [a]; - e != null && HJt(d, e), s.beforeEmit(s.context, f, a), f.conf && f.conf.one && (s.listeners = s.listeners.filter(function(m) { + e != null && WJt(d, e), s.beforeEmit(s.context, f, a), f.conf && f.conf.one && (s.listeners = s.listeners.filter(function(m) { return m !== f; })); var p = s.callbackContext(s.context, f, a), g = f.callback.apply(p, d); @@ -100210,7 +100154,7 @@ Pf.emit = Pf.trigger = function(t, e, r) { s.bubble(s.context) && !a.isPropagationStopped() && s.parent(s.context).emit(a, e); }, t), this.emitting--, this; }; -var yir = { +var mir = { qualifierCompare: function(e, r) { return e == null || r == null ? e == null && r == null : e.sameText(r); }, @@ -100233,13 +100177,13 @@ var yir = { parent: function(e) { return e.isChild() ? e.parent() : e.cy(); } -}, YO = function(e) { +}, qO = function(e) { return qt(e) ? new Nf(e) : e; -}, qme = { +}, Vme = { createEmitter: function() { for (var e = 0; e < this.length; e++) { var r = this[e], n = r._private; - n.emitter || (n.emitter = new ZC(yir, r)); + n.emitter || (n.emitter = new HC(mir, r)); } return this; }, @@ -100247,14 +100191,14 @@ var yir = { return this._private.emitter; }, on: function(e, r, n) { - for (var i = YO(r), s = 0; s < this.length; s++) { + for (var i = qO(r), s = 0; s < this.length; s++) { var a = this[s]; a.emitter().on(e, i, n); } return this; }, removeListener: function(e, r, n) { - for (var i = YO(r), s = 0; s < this.length; s++) { + for (var i = qO(r), s = 0; s < this.length; s++) { var a = this[s]; a.emitter().removeListener(e, i, n); } @@ -100268,14 +100212,14 @@ var yir = { return this; }, one: function(e, r, n) { - for (var i = YO(r), s = 0; s < this.length; s++) { + for (var i = qO(r), s = 0; s < this.length; s++) { var a = this[s]; a.emitter().one(e, i, n); } return this; }, once: function(e, r, n) { - for (var i = YO(r), s = 0; s < this.length; s++) { + for (var i = qO(r), s = 0; s < this.length; s++) { var a = this[s]; a.emitter().on(e, i, n, { once: !0, @@ -100295,8 +100239,8 @@ var yir = { return this.cy().notify(e, this), this.emit(e, r), this; } }; -Vr.eventAliasesOn(qme); -var Yme = { +Vr.eventAliasesOn(Vme); +var Ume = { nodes: function(e) { return this.filter(function(r) { return r.isNode(); @@ -100489,14 +100433,14 @@ var Yme = { ele: i }; } -}, Mr = Yme; +}, Mr = Ume; Mr.u = Mr["|"] = Mr["+"] = Mr.union = Mr.or = Mr.add; Mr["\\"] = Mr["!"] = Mr["-"] = Mr.difference = Mr.relativeComplement = Mr.subtract = Mr.not; Mr.n = Mr["&"] = Mr["."] = Mr.and = Mr.intersection = Mr.intersect; Mr["^"] = Mr["(+)"] = Mr["(-)"] = Mr.symmetricDifference = Mr.symdiff = Mr.xor; Mr.fnFilter = Mr.filterFn = Mr.stdFilter = Mr.filter; Mr.complement = Mr.abscomp = Mr.absoluteComplement; -var bir = { +var vir = { isNode: function() { return this.group() === "nodes"; }, @@ -100514,11 +100458,11 @@ var bir = { if (e) return e._private.group; } -}, Qme = function(e, r) { +}, qme = function(e, r) { var n = e.cy(), i = n.hasCompoundNodes(); function s(h) { var f = h.pstyle("z-compound-depth"); - return f.value === "auto" ? i ? h.zDepth() : 0 : f.value === "bottom" ? -1 : f.value === "top" ? VP : 0; + return f.value === "auto" ? i ? h.zDepth() : 0 : f.value === "bottom" ? -1 : f.value === "top" ? BP : 0; } var a = s(e) - s(r); if (a !== 0) @@ -100532,7 +100476,7 @@ var bir = { return l; var u = e.pstyle("z-index").value - r.pstyle("z-index").value; return u !== 0 ? u : e.poolIndex() - r.poolIndex(); -}, pS = { +}, dS = { forEach: function(e, r) { if (Pn(e)) for (var n = this.length, i = 0; i < n; i++) { @@ -100579,7 +100523,7 @@ var bir = { return this.spawn(r); }, sortByZIndex: function() { - return this.sort(Qme); + return this.sort(qme); }, zDepth: function() { var e = this[0]; @@ -100587,7 +100531,7 @@ var bir = { var r = e._private, n = r.group; if (n === "nodes") { var i = r.data.parent ? e.parents().size() : 0; - return e.isParent() ? i : VP - 1; + return e.isParent() ? i : BP - 1; } else { var s = r.source, a = r.target, o = s.zDepth(), l = a.zDepth(); return Math.max(o, l, 0); @@ -100595,15 +100539,15 @@ var bir = { } } }; -pS.each = pS.forEach; -var xir = function() { +dS.each = dS.forEach; +var yir = function() { var e = "undefined", r = (typeof Symbol > "u" ? "undefined" : Ii(Symbol)) != e && Ii(Symbol.iterator) != e; - r && (pS[Symbol.iterator] = function() { + r && (dS[Symbol.iterator] = function() { var n = this, i = { value: void 0, done: !1 }, s = 0, a = this.length; - return V1e({ + return F1e({ next: function() { return s < a ? i.value = n[s++] : (i.value = void 0, i.done = !0), i; } @@ -100612,12 +100556,12 @@ var xir = function() { }); }); }; -xir(); -var wir = ws({ +yir(); +var bir = ws({ nodeDimensionsIncludeLabels: !1 -}), c5 = { +}), l5 = { layoutDimensions: function(e) { - e = wir(e); + e = bir(e); var r; if (!this.takesUpSpace()) r = { @@ -100664,7 +100608,7 @@ var wir = ws({ return null; for (var C = Fa(), T = 0; T < i.length; T++) { var L = i[T], E = l(L, T); - Oer(C, E.x, E.y); + xer(C, E.x, E.y); } return C; }, d = f(), p = W2(function(S, C) { @@ -100737,17 +100681,17 @@ var wir = ws({ })); } }; -c5.createLayout = c5.makeLayout = c5.layout; -function Wme(t, e, r) { +l5.createLayout = l5.makeLayout = l5.layout; +function Yme(t, e, r) { var n = r._private, i = n.styleCache = n.styleCache || [], s; return (s = i[t]) != null || (s = i[t] = e(r)), s; } -function jC(t, e) { +function XC(t, e) { return t = A0(t), function(n) { - return Wme(t, e, n); + return Yme(t, e, n); }; } -function KC(t, e) { +function ZC(t, e) { t = A0(t); var r = function(i) { return e.call(i); @@ -100755,7 +100699,7 @@ function KC(t, e) { return function() { var i = this[0]; if (i) - return Wme(t, r, i); + return Yme(t, r, i); }; } var ds = { @@ -100906,7 +100850,7 @@ var ds = { return !!r._private.backgrounding; } }; -function fA(t, e) { +function uA(t, e) { var r = t._private, n = r.data.parent ? t.parents() : null; if (n) for (var i = 0; i < n.length; i++) { @@ -100916,7 +100860,7 @@ function fA(t, e) { } return !0; } -function JP(t) { +function ZP(t) { var e = t.ok, r = t.edgeOkViaNode || t.ok, n = t.parentOk || t.ok; return function() { var i = this.cy(); @@ -100928,26 +100872,26 @@ function JP(t) { if (!e(s)) return !1; if (s.isNode()) - return !a || fA(s, n); + return !a || uA(s, n); var l = o.source, u = o.target; - return r(l) && (!a || fA(l, r)) && (l === u || r(u) && (!a || fA(u, r))); + return r(l) && (!a || uA(l, r)) && (l === u || r(u) && (!a || uA(u, r))); } }; } -var Om = jC("eleTakesUpSpace", function(t) { +var Om = XC("eleTakesUpSpace", function(t) { return t.pstyle("display").value === "element" && t.width() !== 0 && (t.isNode() ? t.height() !== 0 : !0); }); -ds.takesUpSpace = KC("takesUpSpace", JP({ +ds.takesUpSpace = ZC("takesUpSpace", ZP({ ok: Om })); -var Oir = jC("eleInteractive", function(t) { +var xir = XC("eleInteractive", function(t) { return t.pstyle("events").value === "yes" && t.pstyle("visibility").value === "visible" && Om(t); -}), kir = jC("parentInteractive", function(t) { +}), wir = XC("parentInteractive", function(t) { return t.pstyle("visibility").value === "visible" && Om(t); }); -ds.interactive = KC("interactive", JP({ - ok: Oir, - parentOk: kir, +ds.interactive = ZC("interactive", ZP({ + ok: xir, + parentOk: wir, edgeOkViaNode: Om })); ds.noninteractive = function() { @@ -100955,19 +100899,19 @@ ds.noninteractive = function() { if (t) return !t.interactive(); }; -var Sir = jC("eleVisible", function(t) { +var Oir = XC("eleVisible", function(t) { return t.pstyle("visibility").value === "visible" && t.pstyle("opacity").pfValue !== 0 && Om(t); -}), Tir = Om; -ds.visible = KC("visible", JP({ - ok: Sir, - edgeOkViaNode: Tir +}), kir = Om; +ds.visible = ZC("visible", ZP({ + ok: Oir, + edgeOkViaNode: kir })); ds.hidden = function() { var t = this[0]; if (t) return !t.visible(); }; -ds.isBundledBezier = KC("isBundledBezier", function() { +ds.isBundledBezier = ZC("isBundledBezier", function() { return this.cy().styleEnabled() ? !this.removed() && this.pstyle("curve-style").value === "bezier" && this.takesUpSpace() : !1; }); ds.bypass = ds.css = ds.style; @@ -100975,7 +100919,7 @@ ds.renderedCss = ds.renderedStyle; ds.removeBypass = ds.removeCss = ds.removeStyle; ds.pstyle = ds.parsedStyle; var sf = {}; -function xX(t) { +function vX(t) { return function() { var e = arguments, r = []; if (e.length === 2) { @@ -101011,13 +100955,13 @@ function km(t) { } return e._private[t.field]; } - }, sf[t.on] = xX({ + }, sf[t.on] = vX({ event: t.on, field: t.field, ableField: t.ableField, overrideAble: t.overrideAble, value: !0 - }), sf[t.off] = xX({ + }), sf[t.off] = vX({ event: t.off, field: t.field, ableField: t.ableField, @@ -101079,7 +101023,7 @@ sf.inactive = function() { if (t) return !t._private.active; }; -var zs = {}, wX = function(e) { +var zs = {}, yX = function(e) { return function(n) { for (var i = this, s = [], a = 0; a < i.length; a++) { var o = i[a]; @@ -101096,7 +101040,7 @@ var zs = {}, wX = function(e) { } return this.spawn(s, !0).filter(n); }; -}, OX = function(e) { +}, bX = function(e) { return function(r) { for (var n = this, i = [], s = 0; s < n.length; s++) { var a = n[s]; @@ -101108,7 +101052,7 @@ var zs = {}, wX = function(e) { } return this.spawn(i, !0).filter(r); }; -}, kX = function(e) { +}, xX = function(e) { return function(r) { for (var n = this, i = [], s = {}; ; ) { var a = e.outgoing ? n.outgoers() : n.incomers(); @@ -101130,22 +101074,22 @@ zs.clearTraversalCache = function() { this[t]._private.traversalCache = null; }; Kt(zs, { - roots: wX({ + roots: yX({ noIncomingEdges: !0 }), - leaves: wX({ + leaves: yX({ noOutgoingEdges: !0 }), - outgoers: $o(OX({ + outgoers: $o(bX({ outgoing: !0 }), "outgoers"), - successors: kX({ + successors: xX({ outgoing: !0 }), - incomers: $o(OX({ + incomers: $o(bX({ incoming: !0 }), "incomers"), - predecessors: kX({ + predecessors: xX({ incoming: !0 }) }); @@ -101177,14 +101121,14 @@ Kt(zs, { var r = this[0], n; return r && (n = r._private.target || r.cy().collection()), n && e ? n.filter(e) : n; }, "target"), - sources: SX({ + sources: wX({ attr: "source" }), - targets: SX({ + targets: wX({ attr: "target" }) }); -function SX(t) { +function wX(t) { return function(r) { for (var n = [], i = 0; i < this.length; i++) { var s = this[i], a = s._private[t.attr]; @@ -101194,12 +101138,12 @@ function SX(t) { }; } Kt(zs, { - edgesWith: $o(TX(), "edgesWith"), - edgesTo: $o(TX({ + edgesWith: $o(OX(), "edgesWith"), + edgesTo: $o(OX({ thisIsSrc: !0 }), "edgesTo") }); -function TX(t) { +function OX(t) { return function(r) { var n = [], i = this._private.cy, s = t || {}; qt(r) && (r = i.$(r)); @@ -101230,12 +101174,12 @@ Kt(zs, { } return this.spawn(e, !0).filter(t); }, "connectedNodes"), - parallelEdges: $o(CX(), "parallelEdges"), - codirectedEdges: $o(CX({ + parallelEdges: $o(kX(), "parallelEdges"), + codirectedEdges: $o(kX({ codirected: !0 }), "codirectedEdges") }); -function CX(t) { +function kX(t) { var e = { codirected: !1 }; @@ -101300,10 +101244,10 @@ var ps = function(e, r) { f.data == null && (f.data = {}); var d = f.data; if (d.id == null) - d.id = sme(); + d.id = nme(); else if (e.hasElementWithId(d.id) || l.has(d.id)) continue; - var p = new qC(e, f, !1); + var p = new VC(e, f, !1); o.push(p), l.add(d.id); } r = o; @@ -101338,7 +101282,7 @@ var ps = function(e, r) { } } }, n && (this._private.map = s), a && !i && this.restore(); -}, dn = qC.prototype = ps.prototype = Object.create(Array.prototype); +}, dn = VC.prototype = ps.prototype = Object.create(Array.prototype); dn.instanceString = function() { return "collection"; }; @@ -101358,7 +101302,7 @@ dn.element = function() { return this[0]; }; dn.collection = function() { - return Q1e(this) ? this : new ps(this._private.cy, [this]); + return q1e(this) ? this : new ps(this._private.cy, [this]); }; dn.unique = function() { return new ps(this._private.cy, this, !0); @@ -101439,7 +101383,7 @@ dn.jsons = function() { }; dn.clone = function() { for (var t = this.cy(), e = [], r = 0; r < this.length; r++) { - var n = this[r], i = n.json(), s = new qC(t, i, !1); + var n = this[r], i = n.json(), s = new VC(t, i, !1); e.push(s); } return new ps(t, e); @@ -101458,7 +101402,7 @@ dn.restore = function() { var p = o[f], g = p._private, m = g.data; if (p.clearTraversalCache(), !(!e && !g.removed)) { if (m.id === void 0) - m.id = sme(); + m.id = nme(); else if (bt(m.id)) m.id = "" + m.id; else if (Mf(m.id) || !qt(m.id)) { @@ -101627,10 +101571,10 @@ dn.move = function(t) { } return this; }; -[yme, Pnr, l5, nf, R1, Knr, XC, pir, qme, Yme, bir, pS, c5, ds, sf, zs].forEach(function(t) { +[mme, Nnr, o5, nf, R1, Znr, GC, fir, Vme, Ume, vir, dS, l5, ds, sf, zs].forEach(function(t) { Kt(dn, t); }); -var Cir = { +var Sir = { add: function(e) { var r, n = this; if (co(e)) { @@ -101661,7 +101605,7 @@ var Cir = { r = new ps(n, h); } else { var w = e; - r = new qC(n, w).collection(); + r = new VC(n, w).collection(); } return r; }, @@ -101676,7 +101620,7 @@ var Cir = { } }; /*! Bezier curve function generator. Copyright Gaetan Renaudeau. MIT License: http://en.wikipedia.org/wiki/MIT_License */ -function Eir(t, e, r, n) { +function Tir(t, e, r, n) { var i = 4, s = 1e-3, a = 1e-7, o = 10, l = 11, u = 1 / (l - 1), h = typeof Float32Array < "u"; if (arguments.length !== 4) return !1; @@ -101750,7 +101694,7 @@ function Eir(t, e, r, n) { }, L; } /*! Runge-Kutta spring physics function generator. Adapted from Framer.js, copyright Koen Bok. MIT License: http://en.wikipedia.org/wiki/MIT_License */ -var _ir = function() { +var Cir = function() { function t(n) { return -n.tension * n.x - n.friction * n.v; } @@ -101787,11 +101731,11 @@ var _ir = function() { } : u; }; }(), ln = function(e, r, n, i) { - var s = Eir(e, r, n, i); + var s = Tir(e, r, n, i); return function(a, o, l) { return a + (o - a) * s(l); }; -}, u5 = { +}, c5 = { linear: function(e, r, n) { return e + (r - e) * n; }, @@ -101822,34 +101766,34 @@ var _ir = function() { "ease-in-out-circ": ln(0.785, 0.135, 0.15, 0.86), spring: function(e, r, n) { if (n === 0) - return u5.linear; - var i = _ir(e, r, n); + return c5.linear; + var i = Cir(e, r, n); return function(s, a, o) { return s + (a - s) * i(o); }; }, "cubic-bezier": ln }; -function EX(t, e, r, n, i) { +function SX(t, e, r, n, i) { if (n === 1 || e === r) return r; var s = i(e, r, n); return t == null || ((t.roundValue || t.color) && (s = Math.round(s)), t.min !== void 0 && (s = Math.max(s, t.min)), t.max !== void 0 && (s = Math.min(s, t.max))), s; } -function _X(t, e) { +function TX(t, e) { return t.pfValue != null || t.value != null ? t.pfValue != null && (e == null || e.type.units !== "%") ? t.pfValue : t.value : t; } function yp(t, e, r, n, i) { var s = i != null ? i.type : null; r < 0 ? r = 0 : r > 1 && (r = 1); - var a = _X(t, i), o = _X(e, i); + var a = TX(t, i), o = TX(e, i); if (bt(a) && bt(o)) - return EX(s, a, o, r, n); + return SX(s, a, o, r, n); if (sn(a) && sn(o)) { for (var l = [], u = 0; u < o.length; u++) { var h = a[u], f = o[u]; if (h != null && f != null) { - var d = EX(s, h, f, r, n); + var d = SX(s, h, f, r, n); l.push(d); } else l.push(f); @@ -101857,11 +101801,11 @@ function yp(t, e, r, n, i) { return l; } } -function Air(t, e, r, n) { +function Eir(t, e, r, n) { var i = !n, s = t._private, a = e._private, o = a.easing, l = a.startTime, u = n ? t : t.cy(), h = u.style(); if (!a.easingImpl) if (o == null) - a.easingImpl = u5.linear; + a.easingImpl = c5.linear; else { var f; if (qt(o)) { @@ -101872,7 +101816,7 @@ function Air(t, e, r, n) { var p, g; qt(f) ? (p = f, g = []) : (p = f[1], g = f.slice(2).map(function(P) { return +P; - })), g.length > 0 ? (p === "spring" && g.push(a.duration), a.easingImpl = u5[p].apply(null, g)) : a.easingImpl = u5[p]; + })), g.length > 0 ? (p === "spring" && g.push(a.duration), a.easingImpl = c5[p].apply(null, g)) : a.easingImpl = c5[p]; } var m = a.easingImpl, v; if (a.duration === 0 ? v = 1 : v = (r - l) / a.duration, a.applying && (v = a.progress), v < 0 ? v = 0 : v > 1 && (v = 1), a.delay == null) { @@ -101899,11 +101843,11 @@ function Air(t, e, r, n) { function uv(t, e) { return t == null || e == null ? !1 : bt(t) && bt(e) ? !0 : !!(t && e); } -function Lir(t, e, r, n) { +function _ir(t, e, r, n) { var i = e._private; i.started = !0, i.startTime = r - i.progress * i.duration; } -function AX(t, e) { +function CX(t, e) { var r = e._private.aniEles, n = []; function i(h, f) { var d = h._private, p = d.animation.current, g = d.animation.queue, m = !1; @@ -101923,7 +101867,7 @@ function AX(t, e) { p.splice(b, 1), O.hooked = !1, O.playing = !1, O.started = !1, y(O.frames); continue; } - !O.playing && !O.applying || (O.playing && O.applying && (O.applying = !1), O.started || Lir(h, w, t), Air(h, w, t, f), O.applying && (O.applying = !1), y(O.frames), O.step != null && O.step(t), w.completed() && (p.splice(b, 1), O.hooked = !1, O.playing = !1, O.started = !1, y(O.completes)), m = !0); + !O.playing && !O.applying || (O.playing && O.applying && (O.applying = !1), O.started || _ir(h, w, t), Eir(h, w, t, f), O.applying && (O.applying = !1), y(O.frames), O.step != null && O.step(t), w.completed() && (p.splice(b, 1), O.hooked = !1, O.playing = !1, O.started = !1, y(O.completes)), m = !0); } return !f && p.length === 0 && g.length === 0 && n.push(h), m; } @@ -101934,7 +101878,7 @@ function AX(t, e) { var u = i(e, !0); (s || u) && (r.length > 0 ? e.notify("draw", r) : e.notify("draw")), r.unmerge(n), e.emit("step"); } -var Rir = { +var Air = { animate: Vr.animate(), animation: Vr.animation(), animated: Vr.animated(), @@ -101954,16 +101898,16 @@ var Rir = { if (e._private.animationsRunning = !0, !e.styleEnabled()) return; function r() { - !e._private.animationsRunning || cS(function(s) { - AX(s, e), r(); + !e._private.animationsRunning || lS(function(s) { + CX(s, e), r(); }); } var n = e.renderer(); n && n.beforeRender ? n.beforeRender(function(s, a) { - AX(a, e); + CX(a, e); }, n.beforeRenderPriorities.animations) : r(); } -}, Mir = { +}, Lir = { qualifierCompare: function(e, r) { return e == null || r == null ? e == null && r == null : e.sameText(r); }, @@ -101977,30 +101921,30 @@ var Rir = { callbackContext: function(e, r, n) { return r.qualifier != null ? n.target : e; } -}, QO = function(e) { +}, YO = function(e) { return qt(e) ? new Nf(e) : e; -}, Gme = { +}, Qme = { createEmitter: function() { var e = this._private; - return e.emitter || (e.emitter = new ZC(Mir, this)), this; + return e.emitter || (e.emitter = new HC(Lir, this)), this; }, emitter: function() { return this._private.emitter; }, on: function(e, r, n) { - return this.emitter().on(e, QO(r), n), this; + return this.emitter().on(e, YO(r), n), this; }, removeListener: function(e, r, n) { - return this.emitter().removeListener(e, QO(r), n), this; + return this.emitter().removeListener(e, YO(r), n), this; }, removeAllListeners: function() { return this.emitter().removeAllListeners(), this; }, one: function(e, r, n) { - return this.emitter().one(e, QO(r), n), this; + return this.emitter().one(e, YO(r), n), this; }, once: function(e, r, n) { - return this.emitter().one(e, QO(r), n), this; + return this.emitter().one(e, YO(r), n), this; }, emit: function(e, r) { return this.emitter().emit(e, r), this; @@ -102009,8 +101953,8 @@ var Rir = { return this.emit(e), this.notify(e, r), this; } }; -Vr.eventAliasesOn(Gme); -var uR = { +Vr.eventAliasesOn(Qme); +var oR = { png: function(e) { var r = this._private.renderer; return e = e || {}, r.png(e); @@ -102020,8 +101964,8 @@ var uR = { return e = e || {}, e.bg = e.bg || "#fff", r.jpg(e); } }; -uR.jpeg = uR.jpg; -var h5 = { +oR.jpeg = oR.jpg; +var u5 = { layout: function(e) { var r = this; if (e == null) { @@ -102046,8 +101990,8 @@ var h5 = { return a; } }; -h5.createLayout = h5.makeLayout = h5.layout; -var Dir = { +u5.createLayout = u5.makeLayout = u5.layout; +var Rir = { notify: function(e, r) { var n = this._private; if (this.batching()) { @@ -102101,7 +102045,7 @@ var Dir = { } }); } -}, Nir = ws({ +}, Mir = ws({ hideEdgesOnViewport: !1, textureOnViewport: !1, motionBlur: !1, @@ -102112,7 +102056,7 @@ var Dir = { wheelSensitivity: 1, debug: !1, showFps: !1 -}), hR = { +}), lR = { renderTo: function(e, r, n, i) { var s = this._private.renderer; return s.renderTo(e, r, n, i), this; @@ -102133,7 +102077,7 @@ var Dir = { return; } e.wheelSensitivity !== void 0 && Yr("You have set a custom wheel sensitivity. This will make your app zoom unnaturally when using mainstream mice. You should change this value from the default only if you can guarantee that all your users will use the same hardware and OS configuration as your current machine."); - var i = Nir(e); + var i = Mir(e); i.cy = r, r._private.renderer = new n(i), this.notify("init"); }, destroyRenderer: function() { @@ -102155,8 +102099,8 @@ var Dir = { return this.off("render", e); } }; -hR.invalidateDimensions = hR.resize; -var f5 = { +lR.invalidateDimensions = lR.resize; +var h5 = { collection: function(e, r) { return qt(e) ? this.$(e) : co(e) ? e.collection() : sn(e) ? (r || (r = {}), new ps(this, e, r.unique, r.removed)) : new ps(this); }, @@ -102180,8 +102124,8 @@ var f5 = { return this._private.elements; } }; -f5.elements = f5.filter = f5.$; -var Gs = {}, gy = "t", Iir = "f"; +h5.elements = h5.filter = h5.$; +var Gs = {}, gy = "t", Dir = "f"; Gs.apply = function(t) { for (var e = this, r = e._private, n = r.cy, i = n.collection(), s = 0; s < t.length; s++) { var a = t[s], o = e.getContextMeta(a); @@ -102218,7 +102162,7 @@ Gs.getPropertiesDiff = function(t, e) { Gs.getContextMeta = function(t) { for (var e = this, r = "", n, i = t._private.styleCxtKey || "", s = 0; s < e.length; s++) { var a = e[s], o = a.selector && a.selector.matches(t); - o ? r += gy : r += Iir; + o ? r += gy : r += Dir; } return n = e.getPropertiesDiff(i, r), t._private.styleCxtKey = r, { key: r, @@ -102316,20 +102260,20 @@ Gs.updateStyleHints = function(t) { var M = i[N], I = e.styleKeys[M]; k[0] = G2(I[0], k[0]), k[1] = H2(I[1], k[1]); } - e.styleKey = zJt(k[0], k[1]); + e.styleKey = BJt(k[0], k[1]); var D = e.styleKeys; e.labelDimsKey = bh(D.labelDimensions); var P = s(t, ["label"], D.labelDimensions); - if (e.labelKey = bh(P), e.labelStyleKey = bh(PO(D.commonLabel, P)), !o) { + if (e.labelKey = bh(P), e.labelStyleKey = bh(IO(D.commonLabel, P)), !o) { var F = s(t, ["source-label"], D.labelDimensions); - e.sourceLabelKey = bh(F), e.sourceLabelStyleKey = bh(PO(D.commonLabel, F)); + e.sourceLabelKey = bh(F), e.sourceLabelStyleKey = bh(IO(D.commonLabel, F)); var B = s(t, ["target-label"], D.labelDimensions); - e.targetLabelKey = bh(B), e.targetLabelStyleKey = bh(PO(D.commonLabel, B)); + e.targetLabelKey = bh(B), e.targetLabelStyleKey = bh(IO(D.commonLabel, B)); } if (o) { var V = e.styleKeys, Y = V.nodeBody, G = V.nodeBorder, ee = V.nodeOutline, Q = V.backgroundImage, ne = V.compound, ie = V.pie, U = [Y, G, ee, Q, ne, ie].filter(function(Z) { return Z != null; - }).reduce(PO, [Up, Bv]); + }).reduce(IO, [Up, Bv]); e.nodeKey = bh(U), e.hasPie = ie != null && ie[0] !== Up && ie[1] !== Bv; } return a !== e.styleKey; @@ -102498,7 +102442,7 @@ Kx.applyBypass = function(t, e, r, n) { n = r; for (var p = Object.keys(d), g = 0; g < p.length; g++) { var m = p[g], v = d[m]; - if (v === void 0 && (v = d[zC(m)]), v !== void 0) { + if (v === void 0 && (v = d[BC(m)]), v !== void 0) { var y = this.parse(m, v, !0); y && s.push(y); } @@ -102523,7 +102467,7 @@ Kx.applyBypass = function(t, e, r, n) { return b; }; Kx.overrideBypass = function(t, e, r) { - e = zP(e); + e = $P(e); for (var n = 0; n < t.length; n++) { var i = t[n], s = i._private.style[e], a = this.properties[e].type, o = a.color, l = a.mutiple, u = s ? s.pfValue != null ? s.pfValue : s.value : null; !s || !s.bypass ? this.applyBypass(i, e, r) : (s.value = r, s.pfValue != null && (s.pfValue = r), o ? s.strValue = "rgb(" + r.join(",") + ")" : l ? s.strValue = r.join(" ") : s.strValue = "" + r, this.updateStyleHints(i)), this.checkTriggers(i, e, u, r); @@ -102546,12 +102490,12 @@ Kx.removeBypasses = function(t, e, r) { this.updateStyleHints(s), r && this.updateTransitions(s, a, n); } }; -var e$ = {}; -e$.getEmSizeInPixels = function() { +var jP = {}; +jP.getEmSizeInPixels = function() { var t = this.containerCss("font-size"); return t != null ? parseFloat(t) : 1; }; -e$.containerCss = function(t) { +jP.containerCss = function(t) { var e = this._private.cy, r = e.container(), n = e.window(); if (n && r && n.getComputedStyle) return n.getComputedStyle(r).getPropertyValue(t); @@ -102565,7 +102509,7 @@ Vc.getRawStyle = function(t, e) { if (t = t[0], t) { for (var n = {}, i = 0; i < r.properties.length; i++) { var s = r.properties[i], a = r.getStylePropertyValue(t, s.name, e); - a != null && (n[s.name] = a, n[zC(s.name)] = a); + a != null && (n[s.name] = a, n[BC(s.name)] = a); } return n; } @@ -102612,7 +102556,7 @@ Vc.getPropsList = function(t) { var e = this, r = [], n = t, i = e.properties; if (n) for (var s = Object.keys(n), a = 0; a < s.length; a++) { - var o = s[a], l = n[o], u = i[o] || i[zP(o)], h = this.parse(u.name, l); + var o = s[a], l = n[o], u = i[o] || i[$P(o)], h = this.parse(u.name, l); h && r.push(h); } return r; @@ -102629,8 +102573,8 @@ Vc.getNonDefaultPropertiesHash = function(t, e, r) { return n; }; Vc.getPropertiesHash = Vc.getNonDefaultPropertiesHash; -var JC = {}; -JC.appendFromJson = function(t) { +var jC = {}; +jC.appendFromJson = function(t) { for (var e = this, r = 0; r < t.length; r++) { var n = t[r], i = n.selector, s = n.style || n.css, a = Object.keys(s); e.selector(i); @@ -102641,11 +102585,11 @@ JC.appendFromJson = function(t) { } return e; }; -JC.fromJson = function(t) { +jC.fromJson = function(t) { var e = this; return e.resetToDefault(), e.appendFromJson(t), e; }; -JC.json = function() { +jC.json = function() { for (var t = [], e = this.defaultLength; e < this.length; e++) { for (var r = this[e], n = r.selector, i = r.properties, s = {}, a = 0; a < i.length; a++) { var o = i[a]; @@ -102658,8 +102602,8 @@ JC.json = function() { } return t; }; -var t$ = {}; -t$.appendFromString = function(t) { +var KP = {}; +KP.appendFromString = function(t) { var e = this, r = this, n = "" + t, i, s, a; n = n.replace(/[/][*](\s|.)+?[*][/]/g, ""); function o() { @@ -102726,13 +102670,13 @@ t$.appendFromString = function(t) { } return r; }; -t$.fromString = function(t) { +KP.fromString = function(t) { var e = this; return e.resetToDefault(), e.appendFromString(t), e; }; var ns = {}; (function() { - var t = _i, e = qKt, r = QKt, n = WKt, i = GKt, s = function(U) { + var t = _i, e = VKt, r = qKt, n = YKt, i = QKt, s = function(U) { return "^" + U + "\\s*\\(\\s*([\\w\\.]+)\\s*\\)$"; }, a = function(U) { var Z = t + "|\\w+|" + e + "|" + r + "|" + n + "|" + i; @@ -104047,21 +103991,21 @@ ns.addDefaultStylesheet = function() { "overlay-opacity": 0.25 }), this.defaultLength = this.length; }; -var eE = {}; -eE.parse = function(t, e, r, n) { +var KC = {}; +KC.parse = function(t, e, r, n) { var i = this; if (Pn(e)) return i.parseImplWarn(t, e, r, n); - var s = n === "mapping" || n === !0 || n === !1 || n == null ? "dontcare" : n, a = r ? "t" : "f", o = "" + e, l = rme(t, o, a, s), u = i.propCache = i.propCache || [], h; + var s = n === "mapping" || n === !0 || n === !1 || n == null ? "dontcare" : n, a = r ? "t" : "f", o = "" + e, l = eme(t, o, a, s), u = i.propCache = i.propCache || [], h; return (h = u[l]) || (h = u[l] = i.parseImplWarn(t, e, r, n)), (r || n === "mapping") && (h = Tc(h), h && (h.value = Tc(h.value))), h; }; -eE.parseImplWarn = function(t, e, r, n) { +KC.parseImplWarn = function(t, e, r, n) { var i = this.parseImpl(t, e, r, n); return !i && e != null && Yr("The style property `".concat(t, ": ").concat(e, "` is invalid")), i && (i.name === "width" || i.name === "height") && e === "label" && Yr("The style value of `label` is deprecated for `" + i.name + "`"), i; }; -eE.parseImpl = function(t, e, r, n) { +KC.parseImpl = function(t, e, r, n) { var i = this; - t = zP(t); + t = $P(t); var s = i.properties[t], a = e, o = i.types; if (!s || e === void 0) return null; @@ -104182,7 +104126,7 @@ eE.parseImpl = function(t, e, r, n) { return null; if (isNaN(e) && u.enums !== void 0) return e = a, _(); - if (u.integer && !PKt(e) || u.min !== void 0 && (e < u.min || u.strictMin && e === u.min) || u.max !== void 0 && (e > u.max || u.strictMax && e === u.max)) + if (u.integer && !NKt(e) || u.min !== void 0 && (e < u.min || u.strictMin && e === u.min) || u.max !== void 0 && (e > u.max || u.strictMax && e === u.max)) return null; var M = { name: t, @@ -104191,7 +104135,7 @@ eE.parseImpl = function(t, e, r, n) { units: A, bypass: r }; - return u.unitless || A !== "px" && A !== "em" ? M.pfValue = e : M.pfValue = A === "px" || !A ? e : this.getEmSizeInPixels() * e, (A === "ms" || A === "s") && (M.pfValue = A === "ms" ? e : 1e3 * e), (A === "deg" || A === "rad") && (M.pfValue = A === "rad" ? e : mer(e)), A === "%" && (M.pfValue = e / 100), M; + return u.unitless || A !== "px" && A !== "em" ? M.pfValue = e : M.pfValue = A === "px" || !A ? e : this.getEmSizeInPixels() * e, (A === "ms" || A === "s") && (M.pfValue = A === "ms" ? e : 1e3 * e), (A === "deg" || A === "rad") && (M.pfValue = A === "rad" ? e : per(e)), A === "%" && (M.pfValue = e / 100), M; } else if (u.propList) { var I = [], D = "" + e; if (D !== "none") { @@ -104209,7 +104153,7 @@ eE.parseImpl = function(t, e, r, n) { bypass: r }; } else if (u.color) { - var V = JKt(e); + var V = jKt(e); return V ? { name: t, value: V, @@ -104245,7 +104189,7 @@ eE.parseImpl = function(t, e, r, n) { var Fs = function t(e) { if (!(this instanceof t)) return new t(e); - if (!FP(e)) { + if (!PP(e)) { Qn("A style must have a core reference"); return; } @@ -104285,7 +104229,7 @@ Vs.css = function() { if (e.length === 1) for (var r = e[0], n = 0; n < t.properties.length; n++) { var i = t.properties[n], s = r[i.name]; - s === void 0 && (s = r[zC(i.name)]), s !== void 0 && this.cssRule(i.name, s); + s === void 0 && (s = r[BC(i.name)]), s !== void 0 && this.cssRule(i.name, s); } else e.length === 2 && this.cssRule(e[0], e[1]); @@ -104303,7 +104247,7 @@ Vs.cssRule = function(t, e) { return this; }; Vs.append = function(t) { - return W1e(t) ? t.appendToStyle(this) : sn(t) ? this.appendFromJson(t) : qt(t) && this.appendFromString(t), this; + return Y1e(t) ? t.appendToStyle(this) : sn(t) ? this.appendFromJson(t) : qt(t) && this.appendFromString(t), this; }; Fs.fromJson = function(t, e) { var r = new Fs(t); @@ -104312,7 +104256,7 @@ Fs.fromJson = function(t, e) { Fs.fromString = function(t, e) { return new Fs(t).fromString(e); }; -[Gs, Kx, e$, Vc, JC, t$, ns, eE].forEach(function(t) { +[Gs, Kx, jP, Vc, jC, KP, ns, KC].forEach(function(t) { Kt(Vs, t); }); Fs.types = Vs.types; @@ -104320,7 +104264,7 @@ Fs.properties = Vs.properties; Fs.propertyGroups = Vs.propertyGroups; Fs.propertyGroupNames = Vs.propertyGroupNames; Fs.propertyGroupKeys = Vs.propertyGroupKeys; -var Pir = { +var Nir = { style: function(e) { if (e) { var r = this.setStyle(e); @@ -104330,12 +104274,12 @@ var Pir = { }, setStyle: function(e) { var r = this._private; - return W1e(e) ? r.style = e.generateStyle(this) : sn(e) ? r.style = Fs.fromJson(this, e) : qt(e) ? r.style = Fs.fromString(this, e) : r.style = Fs(this), r.style; + return Y1e(e) ? r.style = e.generateStyle(this) : sn(e) ? r.style = Fs.fromJson(this, e) : qt(e) ? r.style = Fs.fromString(this, e) : r.style = Fs(this), r.style; }, updateStyle: function() { this.mutableElements().updateStyle(); } -}, $ir = "single", D0 = { +}, Iir = "single", D0 = { autolock: function(e) { if (e !== void 0) this._private.autolock = !!e; @@ -104359,7 +104303,7 @@ var Pir = { }, selectionType: function(e) { var r = this._private; - if (r.selectionType == null && (r.selectionType = $ir), e !== void 0) + if (r.selectionType == null && (r.selectionType = Iir), e !== void 0) (e === "additive" || e === "single") && (r.selectionType = e); else return r.selectionType; @@ -104450,7 +104394,7 @@ var Pir = { if (qt(e)) { var i = e; e = this.$(i); - } else if (FKt(e)) { + } else if ($Kt(e)) { var s = e; n = { x1: s.x1, @@ -104497,7 +104441,7 @@ var Pir = { }, getZoomedViewport: function(e) { var r = this._private, n = r.pan, i = r.zoom, s, a, o = !1; - if (r.zoomingEnabled || (o = !0), bt(e) ? a = e : Ar(e) && (a = e.level, e.position != null ? s = YC(e.position, i, n) : e.renderedPosition != null && (s = e.renderedPosition), s != null && !r.panningEnabled && (o = !0)), a = a > r.maxZoom ? r.maxZoom : a, a = a < r.minZoom ? r.minZoom : a, o || !bt(a) || a === i || s != null && (!bt(s.x) || !bt(s.y))) + if (r.zoomingEnabled || (o = !0), bt(e) ? a = e : Ar(e) && (a = e.level, e.position != null ? s = UC(e.position, i, n) : e.renderedPosition != null && (s = e.renderedPosition), s != null && !r.panningEnabled && (o = !0)), a = a > r.maxZoom ? r.maxZoom : a, a = a < r.minZoom ? r.minZoom : a, o || !bt(a) || a === i || s != null && (!bt(s.x) || !bt(s.y))) return null; if (s != null) { var l = n, u = i, h = a, f = { @@ -104670,7 +104614,7 @@ var rb = function(e) { var r = this; e = Kt({}, e); var n = e.container; - n && !lS(n) && lS(n[0]) && (n = n[0]); + n && !oS(n) && oS(n[0]) && (n = n[0]); var i = n ? n._cyreg : null; i = i || {}, i && i.cy && (i.cy.destroy(), i = {}); var s = i.readies = i.readies || []; @@ -104724,7 +104668,7 @@ var rb = function(e) { max: o.maxZoom }); var h = function(g, m) { - var v = g.some(zKt); + var v = g.some(BKt); if (v) return ym.all(g).then(m); m(g); @@ -104754,8 +104698,8 @@ var rb = function(e) { i && (i.readies = []), r.emit("ready"); }, o.done); }); -}, gS = rb.prototype; -Kt(gS, { +}, pS = rb.prototype; +Kt(pS, { instanceString: function() { return "core"; }, @@ -104807,7 +104751,7 @@ Kt(gS, { mount: function(e) { if (e != null) { var r = this, n = r._private, i = n.options; - return !lS(e) && lS(e[0]) && (e = e[0]), r.stopAnimationLoop(), r.destroyRenderer(), n.container = e, n.styleEnabled = !0, r.invalidateSize(), r.initRenderer(Kt({}, i, i.renderer, { + return !oS(e) && oS(e[0]) && (e = e[0]), r.stopAnimationLoop(), r.destroyRenderer(), n.container = e, n.styleEnabled = !0, r.invalidateSize(), r.initRenderer(Kt({}, i, i.renderer, { name: i.renderer.name === "null" ? "canvas" : i.renderer.name })), r.startAnimationLoop(), r.style(i.style), r.emit("mount"), r; } @@ -104885,11 +104829,11 @@ Kt(gS, { } } }); -gS.$id = gS.getElementById; -[Cir, Rir, Gme, uR, h5, Dir, hR, f5, Pir, D0, tb].forEach(function(t) { - Kt(gS, t); +pS.$id = pS.getElementById; +[Sir, Air, Qme, oR, u5, Rir, lR, h5, Nir, D0, tb].forEach(function(t) { + Kt(pS, t); }); -var Bir = { +var Pir = { fit: !0, directed: !1, padding: 30, @@ -104912,18 +104856,18 @@ var Bir = { transform: function(e, r) { return r; } -}, Fir = { +}, $ir = { maximal: !1, acyclic: !1 }, bp = function(e) { return e.scratch("breadthfirst"); -}, LX = function(e, r) { +}, EX = function(e, r) { return e.scratch("breadthfirst", r); }; -function Hme(t) { - this.options = Kt({}, Bir, Fir, t); +function Wme(t) { + this.options = Kt({}, Pir, $ir, t); } -Hme.prototype.run = function() { +Wme.prototype.run = function() { var t = this.options, e = t, r = t.cy, n = e.eles, i = n.nodes().filter(function(se) { return !se.isParent(); }), s = n, a = e.directed, o = e.acyclic || e.maximal || e.maximalAdjustments > 0, l = Fa(e.boundingBox ? e.boundingBox : { @@ -104958,7 +104902,7 @@ Hme.prototype.run = function() { var y = [], b = {}, w = function(K, _e) { y[_e] == null && (y[_e] = []); var ce = y[_e].length; - y[_e].push(K), LX(K, { + y[_e].push(K), EX(K, { index: ce, depth: _e }); @@ -104985,7 +104929,7 @@ Hme.prototype.run = function() { _e.splice(ce, 1), ce--; continue; } - LX(Ee, { + EX(Ee, { depth: K, index: ce }); @@ -105054,7 +104998,7 @@ Hme.prototype.run = function() { return Ae = Math.max(1, Ae), Ee = Ee / Ae, Ae === 0 && (Ee = 0), Y[K.id()] = Ee, Ee; }, ee = function(K, _e) { var ce = G(K), Ee = G(_e), Ae = ce - Ee; - return Ae === 0 ? H1e(K.id(), _e.id()) : Ae; + return Ae === 0 ? W1e(K.id(), _e.id()) : Ae; }; e.depthSort !== void 0 && (ee = e.depthSort); for (var Q = 0; Q < y.length; Q++) @@ -105087,7 +105031,7 @@ Hme.prototype.run = function() { }; return n.nodes().layoutPositions(this, e, ae), this; }; -var zir = { +var Bir = { fit: !0, padding: 30, boundingBox: void 0, @@ -105111,10 +105055,10 @@ var zir = { return r; } }; -function Xme(t) { - this.options = Kt({}, zir, t); +function Gme(t) { + this.options = Kt({}, Bir, t); } -Xme.prototype.run = function() { +Gme.prototype.run = function() { var t = this.options, e = t, r = t.cy, n = e.eles, i = e.counterclockwise !== void 0 ? !e.counterclockwise : e.clockwise, s = n.nodes().not(":parent"); e.sort && (s = s.sort(e.sort)); for (var a = Fa(e.boundingBox ? e.boundingBox : { @@ -105143,7 +105087,7 @@ Xme.prototype.run = function() { }; return n.nodes().layoutPositions(this, e, O), this; }; -var Vir = { +var Fir = { fit: !0, padding: 30, startAngle: 3 / 2 * Math.PI, @@ -105175,10 +105119,10 @@ var Vir = { return r; } }; -function Zme(t) { - this.options = Kt({}, Vir, t); +function Hme(t) { + this.options = Kt({}, Fir, t); } -Zme.prototype.run = function() { +Hme.prototype.run = function() { for (var t = this.options, e = t, r = e.counterclockwise !== void 0 ? !e.counterclockwise : e.clockwise, n = t.cy, i = e.eles, s = i.nodes().not(":parent"), a = Fa(e.boundingBox ? e.boundingBox : { x1: 0, y1: 0, @@ -105247,7 +105191,7 @@ Zme.prototype.run = function() { return ee[K]; }), this; }; -var dA, Uir = { +var hA, zir = { ready: function() { }, stop: function() { @@ -105283,8 +105227,8 @@ var dA, Uir = { coolingFactor: 0.99, minTemp: 1 }; -function tE(t) { - this.options = Kt({}, Uir, t), this.options.layout = this; +function JC(t) { + this.options = Kt({}, zir, t), this.options.layout = this; var e = this.options.eles.nodes(), r = this.options.eles.edges(), n = r.filter(function(i) { var s = i.source().data("id"), a = i.target().data("id"), o = e.some(function(u) { return u.data("id") === s; @@ -105295,18 +105239,18 @@ function tE(t) { }); this.options.eles = this.options.eles.not(n); } -tE.prototype.run = function() { +JC.prototype.run = function() { var t = this.options, e = t.cy, r = this; r.stopped = !1, (t.animate === !0 || t.animate === !1) && r.emit({ type: "layoutstart", layout: r - }), t.debug === !0 ? dA = !0 : dA = !1; - var n = qir(e, r, t); - dA && Wir(n), t.randomize && Gir(n); + }), t.debug === !0 ? hA = !0 : hA = !1; + var n = Vir(e, r, t); + hA && Yir(n), t.randomize && Qir(n); var i = eh(), s = function() { - Hir(n, e, t), t.fit === !0 && e.fit(t.padding); + Wir(n, e, t), t.fit === !0 && e.fit(t.padding); }, a = function(d) { - return !(r.stopped || d >= t.numIter || (Xir(n, t), n.temperature = n.temperature * t.coolingFactor, n.temperature < t.minTemp)); + return !(r.stopped || d >= t.numIter || (Gir(n, t), n.temperature = n.temperature * t.coolingFactor, n.temperature < t.minTemp)); }, o = function() { if (t.animate === !0 || t.animate === !1) s(), r.one("layoutstop", t.stop), r.emit({ @@ -105314,7 +105258,7 @@ tE.prototype.run = function() { layout: r }); else { - var d = t.eles.nodes(), p = jme(n, t, d); + var d = t.eles.nodes(), p = Xme(n, t, d); d.layoutPositions(r, t, p); } }, l = 0, u = !0; @@ -105323,27 +105267,27 @@ tE.prototype.run = function() { for (var d = 0; u && d < t.refresh; ) u = a(l), l++, d++; if (!u) - MX(n, t), o(); + AX(n, t), o(); else { var p = eh(); - p - i >= t.animationThreshold && s(), cS(f); + p - i >= t.animationThreshold && s(), lS(f); } }; h(); } else { for (; u; ) u = a(l), l++; - MX(n, t), o(); + AX(n, t), o(); } return this; }; -tE.prototype.stop = function() { +JC.prototype.stop = function() { return this.stopped = !0, this.thread && this.thread.stop(), this.emit("layoutstop"), this; }; -tE.prototype.destroy = function() { +JC.prototype.destroy = function() { return this.thread && this.thread.stop(), this; }; -var qir = function(e, r, n) { +var Vir = function(e, r, n) { for (var i = n.eles.edges(), s = n.eles.nodes(), a = Fa(n.boundingBox ? n.boundingBox : { x1: 0, y1: 0, @@ -105393,7 +105337,7 @@ var qir = function(e, r, n) { A.id = _.data("id"), A.sourceId = _.data("source"), A.targetId = _.data("target"); var $ = Pn(n.idealEdgeLength) ? n.idealEdgeLength(_) : n.idealEdgeLength, k = Pn(n.edgeElasticity) ? n.edgeElasticity(_) : n.edgeElasticity, N = o.idToIndex[A.sourceId], M = o.idToIndex[A.targetId], I = o.indexToGraph[N], D = o.indexToGraph[M]; if (I != D) { - for (var P = Yir(A.sourceId, A.targetId, o), F = o.graphSet[P], B = 0, v = o.layoutNodes[N]; F.indexOf(v.id) === -1; ) + for (var P = Uir(A.sourceId, A.targetId, o), F = o.graphSet[P], B = 0, v = o.layoutNodes[N]; F.indexOf(v.id) === -1; ) v = o.layoutNodes[o.idToIndex[v.parentId]], B++; for (v = o.layoutNodes[M]; F.indexOf(v.id) === -1; ) v = o.layoutNodes[o.idToIndex[v.parentId]], B++; @@ -105402,10 +105346,10 @@ var qir = function(e, r, n) { A.idealLength = $, A.elasticity = k, o.layoutEdges.push(A); } return o; -}, Yir = function(e, r, n) { - var i = Qir(e, r, 0, n); +}, Uir = function(e, r, n) { + var i = qir(e, r, 0, n); return 2 > i.count ? 0 : i.graph; -}, Qir = function t(e, r, n, i) { +}, qir = function t(e, r, n, i) { var s = i.graphSet[n]; if (-1 < s.indexOf(e) && -1 < s.indexOf(r)) return { @@ -105428,12 +105372,12 @@ var qir = function(e, r, n) { count: a, graph: n }; -}, Wir, Gir = function(e, r) { +}, Yir, Qir = function(e, r) { for (var n = e.clientWidth, i = e.clientHeight, s = 0; s < e.nodeSize; s++) { var a = e.layoutNodes[s]; a.children.length === 0 && !a.isLocked && (a.positionX = Math.random() * n, a.positionY = Math.random() * i); } -}, jme = function(e, r, n) { +}, Xme = function(e, r, n) { var i = e.boundingBox, s = { x1: 1 / 0, x2: -1 / 0, @@ -105457,36 +105401,36 @@ var qir = function(e, r, n) { y: l.positionY }; }; -}, Hir = function(e, r, n) { - var i = n.layout, s = n.eles.nodes(), a = jme(e, n, s); +}, Wir = function(e, r, n) { + var i = n.layout, s = n.eles.nodes(), a = Xme(e, n, s); s.positions(a), e.ready !== !0 && (e.ready = !0, i.one("layoutready", n.ready), i.emit({ type: "layoutready", layout: this })); -}, Xir = function(e, r, n) { - Zir(e, r), Jir(e), esr(e, r), tsr(e), rsr(e); -}, Zir = function(e, r) { +}, Gir = function(e, r, n) { + Hir(e, r), jir(e), Kir(e, r), Jir(e), esr(e); +}, Hir = function(e, r) { for (var n = 0; n < e.graphSet.length; n++) for (var i = e.graphSet[n], s = i.length, a = 0; a < s; a++) for (var o = e.layoutNodes[e.idToIndex[i[a]]], l = a + 1; l < s; l++) { var u = e.layoutNodes[e.idToIndex[i[l]]]; - jir(o, u, e, r); + Xir(o, u, e, r); } -}, RX = function(e) { +}, _X = function(e) { return -e + 2 * e * Math.random(); -}, jir = function(e, r, n, i) { +}, Xir = function(e, r, n, i) { var s = e.cmptId, a = r.cmptId; if (!(s !== a && !n.isCompound)) { var o = r.positionX - e.positionX, l = r.positionY - e.positionY, u = 1; - o === 0 && l === 0 && (o = RX(u), l = RX(u)); - var h = Kir(e, r, o, l); + o === 0 && l === 0 && (o = _X(u), l = _X(u)); + var h = Zir(e, r, o, l); if (h > 0) var f = i.nodeOverlap * h, d = Math.sqrt(o * o + l * l), p = f * o / d, g = f * l / d; else - var m = mS(e, o, l), v = mS(r, -1 * o, -1 * l), y = v.x - m.x, b = v.y - m.y, w = y * y + b * b, d = Math.sqrt(w), f = (e.nodeRepulsion + r.nodeRepulsion) / w, p = f * y / d, g = f * b / d; + var m = gS(e, o, l), v = gS(r, -1 * o, -1 * l), y = v.x - m.x, b = v.y - m.y, w = y * y + b * b, d = Math.sqrt(w), f = (e.nodeRepulsion + r.nodeRepulsion) / w, p = f * y / d, g = f * b / d; e.isLocked || (e.offsetX -= p, e.offsetY -= g), r.isLocked || (r.offsetX += p, r.offsetY += g); } -}, Kir = function(e, r, n, i) { +}, Zir = function(e, r, n, i) { if (n > 0) var s = e.maxX - r.minX; else @@ -105496,14 +105440,14 @@ var qir = function(e, r, n) { else var a = r.maxY - e.minY; return s >= 0 && a >= 0 ? Math.sqrt(s * s + a * a) : 0; -}, mS = function(e, r, n) { +}, gS = function(e, r, n) { var i = e.positionX, s = e.positionY, a = e.height || 1, o = e.width || 1, l = n / r, u = a / o, h = {}; return r === 0 && 0 < n || r === 0 && 0 > n ? (h.x = i, h.y = s + a / 2, h) : 0 < r && -1 * u <= l && l <= u ? (h.x = i + o / 2, h.y = s + o * n / 2 / r, h) : 0 > r && -1 * u <= l && l <= u ? (h.x = i - o / 2, h.y = s - o * n / 2 / r, h) : 0 < n && (l <= -1 * u || l >= u) ? (h.x = i + a * r / 2 / n, h.y = s + a / 2, h) : (0 > n && (l <= -1 * u || l >= u) && (h.x = i - a * r / 2 / n, h.y = s - a / 2), h); -}, Jir = function(e, r) { +}, jir = function(e, r) { for (var n = 0; n < e.edgeSize; n++) { var i = e.layoutEdges[n], s = e.idToIndex[i.sourceId], a = e.layoutNodes[s], o = e.idToIndex[i.targetId], l = e.layoutNodes[o], u = l.positionX - a.positionX, h = l.positionY - a.positionY; if (!(u === 0 && h === 0)) { - var f = mS(a, u, h), d = mS(l, -1 * u, -1 * h), p = d.x - f.x, g = d.y - f.y, m = Math.sqrt(p * p + g * g), v = Math.pow(i.idealLength - m, 2) / i.elasticity; + var f = gS(a, u, h), d = gS(l, -1 * u, -1 * h), p = d.x - f.x, g = d.y - f.y, m = Math.sqrt(p * p + g * g), v = Math.pow(i.idealLength - m, 2) / i.elasticity; if (m !== 0) var y = v * p / m, b = v * g / m; else @@ -105511,7 +105455,7 @@ var qir = function(e, r, n) { a.isLocked || (a.offsetX += y, a.offsetY += b), l.isLocked || (l.offsetX -= y, l.offsetY -= b); } } -}, esr = function(e, r) { +}, Kir = function(e, r) { if (r.gravity !== 0) for (var n = 1, i = 0; i < e.graphSet.length; i++) { var s = e.graphSet[i], a = s.length; @@ -105530,7 +105474,7 @@ var qir = function(e, r, n) { } } } -}, tsr = function(e, r) { +}, Jir = function(e, r) { var n = [], i = 0, s = -1; for (n.push.apply(n, e.graphSet[0]), s += e.graphSet[0].length; i <= s; ) { var a = n[i++], o = e.idToIndex[a], l = e.layoutNodes[o], u = l.children; @@ -105542,7 +105486,7 @@ var qir = function(e, r, n) { l.offsetX = 0, l.offsetY = 0; } } -}, rsr = function(e, r) { +}, esr = function(e, r) { for (var n = 0; n < e.nodeSize; n++) { var i = e.layoutNodes[n]; 0 < i.children.length && (i.maxX = void 0, i.minX = void 0, i.maxY = void 0, i.minY = void 0); @@ -105550,15 +105494,15 @@ var qir = function(e, r, n) { for (var n = 0; n < e.nodeSize; n++) { var i = e.layoutNodes[n]; if (!(0 < i.children.length || i.isLocked)) { - var s = nsr(i.offsetX, i.offsetY, e.temperature); - i.positionX += s.x, i.positionY += s.y, i.offsetX = 0, i.offsetY = 0, i.minX = i.positionX - i.width, i.maxX = i.positionX + i.width, i.minY = i.positionY - i.height, i.maxY = i.positionY + i.height, isr(i, e); + var s = tsr(i.offsetX, i.offsetY, e.temperature); + i.positionX += s.x, i.positionY += s.y, i.offsetX = 0, i.offsetY = 0, i.minX = i.positionX - i.width, i.maxX = i.positionX + i.width, i.minY = i.positionY - i.height, i.maxY = i.positionY + i.height, rsr(i, e); } } for (var n = 0; n < e.nodeSize; n++) { var i = e.layoutNodes[n]; 0 < i.children.length && !i.isLocked && (i.positionX = (i.maxX + i.minX) / 2, i.positionY = (i.maxY + i.minY) / 2, i.width = i.maxX - i.minX, i.height = i.maxY - i.minY); } -}, nsr = function(e, r, n) { +}, tsr = function(e, r, n) { var i = Math.sqrt(e * e + r * r); if (i > n) var s = { @@ -105571,14 +105515,14 @@ var qir = function(e, r, n) { y: r }; return s; -}, isr = function t(e, r) { +}, rsr = function t(e, r) { var n = e.parentId; if (n != null) { var i = r.layoutNodes[r.idToIndex[n]], s = !1; if ((i.maxX == null || e.maxX + i.padRight > i.maxX) && (i.maxX = e.maxX + i.padRight, s = !0), (i.minX == null || e.minX - i.padLeft < i.minX) && (i.minX = e.minX - i.padLeft, s = !0), (i.maxY == null || e.maxY + i.padBottom > i.maxY) && (i.maxY = e.maxY + i.padBottom, s = !0), (i.minY == null || e.minY - i.padTop < i.minY) && (i.minY = e.minY - i.padTop, s = !0), s) return t(i, r); } -}, MX = function(e, r) { +}, AX = function(e, r) { for (var n = e.layoutNodes, i = [], s = 0; s < n.length; s++) { var a = n[s], o = a.cmptId, l = i[o] = i[o] || []; l.push(a); @@ -105607,7 +105551,7 @@ var qir = function(e, r, n) { p += h.w + r.componentSpacing, m += h.w + r.componentSpacing, v = Math.max(v, h.h), m > y && (g += v + r.componentSpacing, p = 0, m = 0, v = 0); } } -}, ssr = { +}, nsr = { fit: !0, padding: 30, boundingBox: void 0, @@ -105633,10 +105577,10 @@ var qir = function(e, r, n) { return r; } }; -function Kme(t) { - this.options = Kt({}, ssr, t); +function Zme(t) { + this.options = Kt({}, nsr, t); } -Kme.prototype.run = function() { +Zme.prototype.run = function() { var t = this.options, e = t, r = t.cy, n = e.eles, i = n.nodes().not(":parent"); e.sort && (i = i.sort(e.sort)); var s = Fa(e.boundingBox ? e.boundingBox : { @@ -105729,16 +105673,16 @@ Kme.prototype.run = function() { } return this; }; -var asr = { +var isr = { ready: function() { }, stop: function() { } }; -function r$(t) { - this.options = Kt({}, asr, t); +function JP(t) { + this.options = Kt({}, isr, t); } -r$.prototype.run = function() { +JP.prototype.run = function() { var t = this.options, e = t.eles, r = this; return t.cy, r.emit("layoutstart"), e.nodes().positions(function() { return { @@ -105747,10 +105691,10 @@ r$.prototype.run = function() { }; }), r.one("layoutready", t.ready), r.emit("layoutready"), r.one("layoutstop", t.stop), r.emit("layoutstop"), this; }; -r$.prototype.stop = function() { +JP.prototype.stop = function() { return this; }; -var osr = { +var ssr = { positions: void 0, zoom: void 0, pan: void 0, @@ -105769,14 +105713,14 @@ var osr = { return r; } }; -function Jme(t) { - this.options = Kt({}, osr, t); +function jme(t) { + this.options = Kt({}, ssr, t); } -Jme.prototype.run = function() { +jme.prototype.run = function() { var t = this.options, e = t.eles, r = e.nodes(), n = Pn(t.positions); function i(s) { if (t.positions == null) - return her(s.position()); + return cer(s.position()); if (n) return t.positions(s); var a = t.positions[s._private.data.id]; @@ -105787,7 +105731,7 @@ Jme.prototype.run = function() { return s.locked() || o == null ? !1 : o; }), this; }; -var lsr = { +var asr = { fit: !0, padding: 30, boundingBox: void 0, @@ -105803,10 +105747,10 @@ var lsr = { return r; } }; -function eve(t) { - this.options = Kt({}, lsr, t); +function Kme(t) { + this.options = Kt({}, asr, t); } -eve.prototype.run = function() { +Kme.prototype.run = function() { var t = this.options, e = t.cy, r = t.eles, n = Fa(t.boundingBox ? t.boundingBox : { x1: 0, y1: 0, @@ -105820,53 +105764,53 @@ eve.prototype.run = function() { }; return r.nodes().layoutPositions(this, t, i), this; }; -var csr = [{ +var osr = [{ name: "breadthfirst", - impl: Hme + impl: Wme }, { name: "circle", - impl: Xme + impl: Gme }, { name: "concentric", - impl: Zme + impl: Hme }, { name: "cose", - impl: tE + impl: JC }, { name: "grid", - impl: Kme + impl: Zme }, { name: "null", - impl: r$ + impl: JP }, { name: "preset", - impl: Jme + impl: jme }, { name: "random", - impl: eve + impl: Kme }]; -function tve(t) { +function Jme(t) { this.options = t, this.notifications = 0; } -var DX = function() { -}, NX = function() { +var LX = function() { +}, RX = function() { throw new Error("A headless instance can not render images"); }; -tve.prototype = { - recalculateRenderedStyle: DX, +Jme.prototype = { + recalculateRenderedStyle: LX, notify: function() { this.notifications++; }, - init: DX, + init: LX, isHeadless: function() { return !0; }, - png: NX, - jpg: NX + png: RX, + jpg: RX }; -var n$ = {}; -n$.arrowShapeWidth = 0.3; -n$.registerArrowShapes = function() { +var e$ = {}; +e$.arrowShapeWidth = 0.3; +e$.registerArrowShapes = function() { var t = this.arrowShapes = {}, e = this, r = function(u, h, f, d, p, g, m) { var v = p.x - f / 2 - m, y = p.x + f / 2 + m, b = p.y - f / 2 - m, w = p.y + f / 2 + m, O = v <= u && u <= y && b <= h && h <= w; return O; @@ -105910,11 +105854,11 @@ n$.registerArrowShapes = function() { }, h); }; o("none", { - collide: uS, - roughCollide: uS, - draw: UP, - spacing: YH, - gap: YH + collide: cS, + roughCollide: cS, + draw: FP, + spacing: VH, + gap: VH }), o("triangle", { points: [-0.15, -0.3, 0, 0, 0.15, -0.3] }), o("arrow", "triangle"), o("triangle-backcurve", { @@ -106078,11 +106022,11 @@ sp.findNearestElements = function(t, e, r, n) { var L = T._private, E = L.rscratch, R = T.pstyle("width").pfValue, _ = T.pstyle("arrow-scale").value, A = R / 2 + h, $ = A * A, k = A * 2, D = L.source, P = L.target, N; if (E.edgeType === "segments" || E.edgeType === "straight" || E.edgeType === "haystack") { for (var M = E.allpts, I = 0; I + 3 < M.length; I += 2) - if (Ser(t, e, M[I], M[I + 1], M[I + 2], M[I + 3], k) && $ > (N = Aer(t, e, M[I], M[I + 1], M[I + 2], M[I + 3]))) + if (Oer(t, e, M[I], M[I + 1], M[I + 2], M[I + 3], k) && $ > (N = Eer(t, e, M[I], M[I + 1], M[I + 2], M[I + 3]))) return v(T, N), !0; } else if (E.edgeType === "bezier" || E.edgeType === "multibezier" || E.edgeType === "self" || E.edgeType === "compound") { for (var M = E.allpts, I = 0; I + 5 < E.allpts.length; I += 4) - if (Ter(t, e, M[I], M[I + 1], M[I + 2], M[I + 3], M[I + 4], M[I + 5], k) && $ > (N = _er(t, e, M[I], M[I + 1], M[I + 2], M[I + 3], M[I + 4], M[I + 5]))) + if (ker(t, e, M[I], M[I + 1], M[I + 2], M[I + 3], M[I + 4], M[I + 5], k) && $ > (N = Cer(t, e, M[I], M[I + 1], M[I + 2], M[I + 3], M[I + 4], M[I + 5]))) return v(T, N), !0; } for (var D = D || L.source, P = P || L.target, F = i.getArrowWidth(R, _), B = [{ @@ -106171,14 +106115,14 @@ sp.getAllInBox = function(t, e, r, n) { includeEdges: !1, includeLabels: !1 }); - QP(h, g) && !ume(g, h) && s.push(p); + UP(h, g) && !lme(g, h) && s.push(p); } else { var m = d, v = m._private, y = v.rscratch; if (y.startX != null && y.startY != null && !A1(h, y.startX, y.startY) || y.endX != null && y.endY != null && !A1(h, y.endX, y.endY)) continue; if (y.edgeType === "bezier" || y.edgeType === "multibezier" || y.edgeType === "self" || y.edgeType === "compound" || y.edgeType === "segments" || y.edgeType === "haystack") { for (var b = v.rstyle.bezierPts || v.rstyle.linePts || v.rstyle.haystackPts, w = !0, O = 0; O < b.length; O++) - if (!ker(h, b[O])) { + if (!wer(h, b[O])) { w = !1; break; } @@ -106189,8 +106133,8 @@ sp.getAllInBox = function(t, e, r, n) { } return s; }; -var vS = {}; -vS.calculateArrowAngles = function(t) { +var mS = {}; +mS.calculateArrowAngles = function(t) { var e = t._private.rscratch, r = e.edgeType === "haystack", n = e.edgeType === "bezier", i = e.edgeType === "multibezier", s = e.edgeType === "segments", a = e.edgeType === "compound", o = e.edgeType === "self", l, u, h, f, d, p, y, b; if (r ? (h = e.haystackPts[0], f = e.haystackPts[1], d = e.haystackPts[2], p = e.haystackPts[3]) : (h = e.arrowStartX, f = e.arrowStartY, d = e.arrowEndX, p = e.arrowEndY), y = e.midX, b = e.midY, s) l = h - e.segpts[0], u = f - e.segpts[1]; @@ -106199,7 +106143,7 @@ vS.calculateArrowAngles = function(t) { l = h - m, u = f - v; } else l = h - y, u = f - b; - e.srcArrowAngle = $O(l, u); + e.srcArrowAngle = PO(l, u); var y = e.midX, b = e.midY; if (r && (y = (h + d) / 2, b = (f + p) / 2), l = d - h, u = p - f, s) { var g = e.allpts; @@ -106223,7 +106167,7 @@ vS.calculateArrowAngles = function(t) { } l = L - C, u = E - T; } - if (e.midtgtArrowAngle = $O(l, u), e.midDispX = l, e.midDispY = u, l *= -1, u *= -1, s) { + if (e.midtgtArrowAngle = PO(l, u), e.midDispX = l, e.midDispY = u, l *= -1, u *= -1, s) { var g = e.allpts; if (g.length / 2 % 2 !== 0) { if (!e.isRound) { @@ -106232,34 +106176,34 @@ vS.calculateArrowAngles = function(t) { } } } - if (e.midsrcArrowAngle = $O(l, u), s) + if (e.midsrcArrowAngle = PO(l, u), s) l = d - e.segpts[e.segpts.length - 2], u = p - e.segpts[e.segpts.length - 1]; else if (i || a || o || n) { var g = e.allpts, k = g.length, m = zi(g[k - 6], g[k - 4], g[k - 2], 0.9), v = zi(g[k - 5], g[k - 3], g[k - 1], 0.9); l = d - m, u = p - v; } else l = d - y, u = p - b; - e.tgtArrowAngle = $O(l, u); + e.tgtArrowAngle = PO(l, u); }; -vS.getArrowWidth = vS.getArrowHeight = function(t, e) { +mS.getArrowWidth = mS.getArrowHeight = function(t, e) { var r = this.arrowWidthCache = this.arrowWidthCache || {}, n = r[t + ", " + e]; return n || (n = Math.max(Math.pow(t * 13.37, 0.9), 29) * e, r[t + ", " + e] = n, n); }; -var fR, dR, ic = {}, So = {}, IX, PX, Td, d5, hu, ad, dd, rc, xp, WO, rve, nve, pR, gR, $X, BX = function(e, r, n) { +var cR, uR, ic = {}, So = {}, MX, DX, Td, f5, hu, ad, dd, rc, xp, QO, eve, tve, hR, fR, NX, IX = function(e, r, n) { n.x = r.x - e.x, n.y = r.y - e.y, n.len = Math.sqrt(n.x * n.x + n.y * n.y), n.nx = n.x / n.len, n.ny = n.y / n.len, n.ang = Math.atan2(n.ny, n.nx); -}, usr = function(e, r) { +}, lsr = function(e, r) { r.x = e.x * -1, r.y = e.y * -1, r.nx = e.nx * -1, r.ny = e.ny * -1, r.ang = e.ang > 0 ? -(Math.PI - e.ang) : Math.PI + e.ang; -}, hsr = function(e, r, n, i, s) { - if (e !== $X ? BX(r, e, ic) : usr(So, ic), BX(r, n, So), IX = ic.nx * So.ny - ic.ny * So.nx, PX = ic.nx * So.nx - ic.ny * -So.ny, hu = Math.asin(Math.max(-1, Math.min(1, IX))), Math.abs(hu) < 1e-6) { - fR = r.x, dR = r.y, dd = xp = 0; +}, csr = function(e, r, n, i, s) { + if (e !== NX ? IX(r, e, ic) : lsr(So, ic), IX(r, n, So), MX = ic.nx * So.ny - ic.ny * So.nx, DX = ic.nx * So.nx - ic.ny * -So.ny, hu = Math.asin(Math.max(-1, Math.min(1, MX))), Math.abs(hu) < 1e-6) { + cR = r.x, uR = r.y, dd = xp = 0; return; } - Td = 1, d5 = !1, PX < 0 ? hu < 0 ? hu = Math.PI + hu : (hu = Math.PI - hu, Td = -1, d5 = !0) : hu > 0 && (Td = -1, d5 = !0), r.radius !== void 0 ? xp = r.radius : xp = i, ad = hu / 2, WO = Math.min(ic.len / 2, So.len / 2), s ? (rc = Math.abs(Math.cos(ad) * xp / Math.sin(ad)), rc > WO ? (rc = WO, dd = Math.abs(rc * Math.sin(ad) / Math.cos(ad))) : dd = xp) : (rc = Math.min(WO, xp), dd = Math.abs(rc * Math.sin(ad) / Math.cos(ad))), pR = r.x + So.nx * rc, gR = r.y + So.ny * rc, fR = pR - So.ny * dd * Td, dR = gR + So.nx * dd * Td, rve = r.x + ic.nx * rc, nve = r.y + ic.ny * rc, $X = r; + Td = 1, f5 = !1, DX < 0 ? hu < 0 ? hu = Math.PI + hu : (hu = Math.PI - hu, Td = -1, f5 = !0) : hu > 0 && (Td = -1, f5 = !0), r.radius !== void 0 ? xp = r.radius : xp = i, ad = hu / 2, QO = Math.min(ic.len / 2, So.len / 2), s ? (rc = Math.abs(Math.cos(ad) * xp / Math.sin(ad)), rc > QO ? (rc = QO, dd = Math.abs(rc * Math.sin(ad) / Math.cos(ad))) : dd = xp) : (rc = Math.min(QO, xp), dd = Math.abs(rc * Math.sin(ad) / Math.cos(ad))), hR = r.x + So.nx * rc, fR = r.y + So.ny * rc, cR = hR - So.ny * dd * Td, uR = fR + So.nx * dd * Td, eve = r.x + ic.nx * rc, tve = r.y + ic.ny * rc, NX = r; }; -function ive(t, e) { +function rve(t, e) { e.radius === 0 ? t.lineTo(e.cx, e.cy) : t.arc(e.cx, e.cy, e.radius, e.startAngle, e.endAngle, e.counterClockwise); } -function i$(t, e, r, n) { +function t$(t, e, r, n) { var i = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !0; return n === 0 || e.radius === 0 ? { cx: e.x, @@ -106272,17 +106216,17 @@ function i$(t, e, r, n) { startAngle: void 0, endAngle: void 0, counterClockwise: void 0 - } : (hsr(t, e, r, n, i), { - cx: fR, - cy: dR, + } : (csr(t, e, r, n, i), { + cx: cR, + cy: uR, radius: dd, - startX: rve, - startY: nve, - stopX: pR, - stopY: gR, + startX: eve, + startY: tve, + stopX: hR, + stopY: fR, startAngle: ic.ang + Math.PI / 2 * Td, endAngle: So.ang - Math.PI / 2 * Td, - counterClockwise: d5 + counterClockwise: f5 }); } var Hs = {}; @@ -106380,7 +106324,7 @@ Hs.findBezierPoints = function(t, e, r, n, i) { var s = t._private.rscratch, a = t.pstyle("control-point-step-size").pfValue, o = t.pstyle("control-point-distances"), l = t.pstyle("control-point-weights"), u = o && l ? Math.min(o.value.length, l.value.length) : 1, h = o ? o.pfValue[0] : void 0, f = l.value[0], d = n; s.edgeType = d ? "multibezier" : "bezier", s.ctrlpts = []; for (var p = 0; p < u; p++) { - var g = (0.5 - e.eles.length / 2 + r) * a * (i ? -1 : 1), m = void 0, v = lme(g); + var g = (0.5 - e.eles.length / 2 + r) * a * (i ? -1 : 1), m = void 0, v = ame(g); d && (h = o ? o.pfValue[p] : a, f = l.value[p]), n ? m = h : m = h !== void 0 ? v * h : void 0; var y = m !== void 0 ? m : g, b = 1 - f, w = f, O = this.findMidptPtsEtc(t, e), S = O.midptPts, C = O.vectorNormInverse, T = { x: S.x1 * b + S.x2 * w, @@ -106396,7 +106340,7 @@ Hs.findTaxiPoints = function(t, e) { return xe > 0 ? Math.max(xe - ke, 0) : Math.min(xe + ke, 0); }, $ = A(R, L), k = A(_, E), N = !1; b === u ? y = Math.abs($) > Math.abs(k) ? i : n : b === l || b === o ? (y = n, N = !0) : (b === s || b === a) && (y = i, N = !0); - var M = y === n, I = M ? k : $, D = M ? _ : R, P = lme(D), F = !1; + var M = y === n, I = M ? k : $, D = M ? _ : R, P = ame(D), F = !1; !(N && (O || C)) && (b === o && D < 0 || b === l && D > 0 || b === s && D > 0 || b === a && D < 0) && (P *= -1, I = P * Math.abs(I), F = !0); var B; if (O) { @@ -106506,7 +106450,7 @@ Hs.storeAllpts = function(t) { e.roundCorners = []; for (var s = 2; s + 3 < e.allpts.length; s += 2) { var a = e.radii[s / 2 - 1], o = e.isArcRadius[s / 2 - 1]; - e.roundCorners.push(i$({ + e.roundCorners.push(t$({ x: e.allpts[s - 2], y: e.allpts[s - 1] }, { @@ -106574,7 +106518,7 @@ Hs.findEdgeControlPoints = function(t) { var _ = E.eles[0].parallelEdges().filter(function(ve) { return ve.isBundledBezier(); }); - qP(E.eles), _.forEach(function(ve) { + zP(E.eles), _.forEach(function(ve) { return E.eles.push(ve); }), E.eles.sort(function(ve, re) { return ve.poolIndex() - re.poolIndex(); @@ -106671,7 +106615,7 @@ Hs.findEdgeControlPoints = function(t) { this.findHaystackPoints(o); } }; -function sve(t) { +function nve(t) { var e = []; if (t != null) { for (var r = 0; r < t.length; r += 2) { @@ -106687,12 +106631,12 @@ function sve(t) { Hs.getSegmentPoints = function(t) { var e = t[0]._private.rscratch, r = e.edgeType; if (r === "segments") - return this.recalculateRenderedStyle(t), sve(e.segpts); + return this.recalculateRenderedStyle(t), nve(e.segpts); }; Hs.getControlPoints = function(t) { var e = t[0]._private.rscratch, r = e.edgeType; if (r === "bezier" || r === "multibezier" || r === "self" || r === "compound") - return this.recalculateRenderedStyle(t), sve(e.ctrlpts); + return this.recalculateRenderedStyle(t), nve(e.ctrlpts); }; Hs.getEdgeMidpoint = function(t) { var e = t[0]._private.rscratch; @@ -106748,7 +106692,7 @@ Jx.findEndpoints = function(t) { } } } - var ce = BO(r, k, e.arrowShapes[o].spacing(t) + u), Ee = BO(r, k, e.arrowShapes[o].gap(t) + u); + var ce = $O(r, k, e.arrowShapes[o].spacing(t) + u), Ee = $O(r, k, e.arrowShapes[o].gap(t) + u); if (g.endX = Ee[0], g.endY = Ee[1], g.arrowEndX = ce[0], g.arrowEndY = ce[1], E === "inside-to-node") r = [s.x, s.y]; else if (L.units) @@ -106772,7 +106716,7 @@ Jx.findEndpoints = function(t) { } } } - var ke = BO(r, N, e.arrowShapes[l].spacing(t) + h), Ce = BO(r, N, e.arrowShapes[l].gap(t) + h); + var ke = $O(r, N, e.arrowShapes[l].spacing(t) + h), Ce = $O(r, N, e.arrowShapes[l].gap(t) + h); g.startX = Ce[0], g.startY = Ce[1], g.arrowStartX = ke[0], g.arrowStartY = ke[1], C && (!bt(g.startX) || !bt(g.startY) || !bt(g.endX) || !bt(g.endY) ? g.badLine = !0 : g.badLine = !1); }; Jx.getSourceEndpoint = function(t) { @@ -106805,8 +106749,8 @@ Jx.getTargetEndpoint = function(t) { }; } }; -var s$ = {}; -function fsr(t, e, r) { +var r$ = {}; +function usr(t, e, r) { for (var n = function(u, h, f, d) { return zi(u, h, f, d); }, i = e._private, s = i.rstyle.bezierPts, a = 0; a < t.bezierProjPcts.length; a++) { @@ -106817,12 +106761,12 @@ function fsr(t, e, r) { }); } } -s$.storeEdgeProjections = function(t) { +r$.storeEdgeProjections = function(t) { var e = t._private, r = e.rscratch, n = r.edgeType; if (e.rstyle.bezierPts = null, e.rstyle.linePts = null, e.rstyle.haystackPts = null, n === "multibezier" || n === "bezier" || n === "self" || n === "compound") { e.rstyle.bezierPts = []; for (var i = 0; i + 5 < r.allpts.length; i += 4) - fsr(this, t, r.allpts.slice(i, i + 6)); + usr(this, t, r.allpts.slice(i, i + 6)); } else if (n === "segments") for (var s = e.rstyle.linePts = [], i = 0; i + 1 < r.allpts.length; i += 2) s.push({ @@ -106841,7 +106785,7 @@ s$.storeEdgeProjections = function(t) { } e.rstyle.arrowWidth = this.getArrowWidth(t.pstyle("width").pfValue, t.pstyle("arrow-scale").value) * this.arrowShapeWidth; }; -s$.recalculateEdgeProjections = function(t) { +r$.recalculateEdgeProjections = function(t) { this.findEdgeControlPoints(t); }; var iu = {}; @@ -106872,15 +106816,15 @@ iu.recalculateNodeLabelProjection = function(t) { f.labelX = r, f.labelY = n, d.labelX = r, d.labelY = n, this.calculateLabelAngles(t), this.applyLabelDimensions(t); } }; -var ave = function(e, r) { +var ive = function(e, r) { var n = Math.atan(r / e); return e === 0 && n < 0 && (n = n * -1), n; -}, ove = function(e, r) { +}, sve = function(e, r) { var n = r.x - e.x, i = r.y - e.y; - return ave(n, i); -}, dsr = function(e, r, n, i) { + return ive(n, i); +}, hsr = function(e, r, n, i) { var s = Z2(0, i - 1e-3, 1), a = Z2(0, i + 1e-3, 1), o = gg(e, r, n, s), l = gg(e, r, n, a); - return ove(o, l); + return sve(o, l); }; iu.recalculateEdgeLabelProjections = function(t) { var e, r = t._private, n = r.rscratch, i = this, s = { @@ -106897,7 +106841,7 @@ iu.recalculateEdgeLabelProjections = function(t) { Dh(r.rscratch, f, d, p), Dh(r.rstyle, f, d, p); }; a("labelX", null, e.x), a("labelY", null, e.y); - var o = ave(n.midDispX, n.midDispY); + var o = ive(n.midDispX, n.midDispY); a("labelAutoAngle", null, o); var l = function h() { if (h.cache) @@ -106966,7 +106910,7 @@ iu.recalculateEdgeLabelProjections = function(t) { break; } var L = v.cp, E = v.segment, R = (g - y) / E.length, _ = E.t1 - E.t0, A = p ? E.t0 + _ * R : E.t1 - _ * R; - A = Z2(0, A, 1), e = gg(L.p0, L.p1, L.p2, A), d = dsr(L.p0, L.p1, L.p2, A); + A = Z2(0, A, 1), e = gg(L.p0, L.p1, L.p2, A), d = hsr(L.p0, L.p1, L.p2, A); break; } case "straight": @@ -106987,7 +106931,7 @@ iu.recalculateEdgeLabelProjections = function(t) { }), k = L0(M, I), N = $, $ += k, !($ >= g)); P += 2) ; var F = g - N, B = F / k; - B = Z2(0, B, 1), e = yer(M, I, B), d = ove(M, I); + B = Z2(0, B, 1), e = mer(M, I, B), d = sve(M, I); break; } } @@ -107024,7 +106968,7 @@ iu.getLabelText = function(t, e) { y = O; } if (w > f) { - var S = y.matchAll(m), C = "", T = 0, L = q1e(S), E; + var S = y.matchAll(m), C = "", T = 0, L = V1e(S), E; try { for (L.s(); !(E = L.n()).done; ) { var R = E.value, _ = R[0], A = y.substring(T, R.index); @@ -107103,11 +107047,11 @@ iu.calculateLabelAngles = function(t) { var e = this, r = t.isEdge(), n = t._private, i = n.rscratch; i.labelAngle = e.calculateLabelAngle(t), r && (i.sourceLabelAngle = e.calculateLabelAngle(t, "source"), i.targetLabelAngle = e.calculateLabelAngle(t, "target")); }; -var lve = {}, FX = 28, zX = !1; -lve.getNodeShape = function(t) { +var ave = {}, PX = 28, $X = !1; +ave.getNodeShape = function(t) { var e = this, r = t.pstyle("shape").value; - if (r === "cutrectangle" && (t.width() < FX || t.height() < FX)) - return zX || (Yr("The `cutrectangle` node shape can not be used at small sizes so `rectangle` is used instead"), zX = !0), "rectangle"; + if (r === "cutrectangle" && (t.width() < PX || t.height() < PX)) + return $X || (Yr("The `cutrectangle` node shape can not be used at small sizes so `rectangle` is used instead"), $X = !0), "rectangle"; if (t.isParent()) return r === "rectangle" || r === "roundrectangle" || r === "round-rectangle" || r === "cutrectangle" || r === "cut-rectangle" || r === "barrel" ? r : "rectangle"; if (r === "polygon") { @@ -107116,8 +107060,8 @@ lve.getNodeShape = function(t) { } return r; }; -var rE = {}; -rE.registerCalculationListeners = function() { +var eE = {}; +eE.registerCalculationListeners = function() { var t = this.cy, e = t.collection(), r = this, n = function(a) { var o = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0; if (e.merge(a), o) @@ -107153,11 +107097,11 @@ rE.registerCalculationListeners = function() { i(!0); }, r.beforeRender(i, r.beforeRenderPriorities.eleCalcs); }; -rE.onUpdateEleCalcs = function(t) { +eE.onUpdateEleCalcs = function(t) { var e = this.onUpdateEleCalcsFns = this.onUpdateEleCalcsFns || []; e.push(t); }; -rE.recalculateRenderedStyle = function(t, e) { +eE.recalculateRenderedStyle = function(t, e) { var r = function(O) { return O._private.rstyle.cleanConnected; }, n = [], i = []; @@ -107178,8 +107122,8 @@ rE.recalculateRenderedStyle = function(t, e) { } } }; -var nE = {}; -nE.updateCachedGrabbedEles = function() { +var tE = {}; +tE.updateCachedGrabbedEles = function() { var t = this.cachedZSortedEles; if (!!t) { t.drag = [], t.nondrag = []; @@ -107193,25 +107137,25 @@ nE.updateCachedGrabbedEles = function() { } } }; -nE.invalidateCachedZSortedEles = function() { +tE.invalidateCachedZSortedEles = function() { this.cachedZSortedEles = null; }; -nE.getCachedZSortedEles = function(t) { +tE.getCachedZSortedEles = function(t) { if (t || !this.cachedZSortedEles) { var e = this.cy.mutableElements().toArray(); - e.sort(Qme), e.interactive = e.filter(function(r) { + e.sort(qme), e.interactive = e.filter(function(r) { return r.interactive(); }), this.cachedZSortedEles = e, this.updateCachedGrabbedEles(); } else e = this.cachedZSortedEles; return e; }; -var cve = {}; -[sp, vS, Hs, Jx, s$, iu, lve, rE, nE].forEach(function(t) { - Kt(cve, t); +var ove = {}; +[sp, mS, Hs, Jx, r$, iu, ave, eE, tE].forEach(function(t) { + Kt(ove, t); }); -var uve = {}; -uve.getCachedImage = function(t, e, r) { +var lve = {}; +lve.getCachedImage = function(t, e, r) { var n = this, i = n.imageCache = n.imageCache || {}, s = i[t]; if (s) return s.image.complete || s.image.addEventListener("load", r), s.image; @@ -107229,7 +107173,7 @@ Sm.registerBinding = function(t, e, r, n) { return s.on.apply(s, i); }; Sm.binder = function(t) { - var e = this, r = e.cy.window(), n = t === r || t === r.document || t === r.document.body || BKt(t); + var e = this, r = e.cy.window(), n = t === r || t === r.document || t === r.document.body || PKt(t); if (e.supportsPassiveEvents == null) { var i = !1; try { @@ -107359,7 +107303,7 @@ Sm.load = function() { })) : t.registerBinding(t.container, "DOMNodeRemoved", function(he) { t.destroy(); }); - var S = UC(function() { + var S = zC(function() { t.cy.resize(); }, 100); w && (t.styleObserver = new MutationObserver(S), t.styleObserver.observe(t.container, { @@ -108180,7 +108124,7 @@ fh.generateEllipse = function() { this.renderer.nodeShapeImpl(this.name, e, r, n, i, s); }, intersectLine: function(e, r, n, i, s, a, o, l) { - return Rer(s, a, e, r, n / 2 + o, i / 2 + o); + return Aer(s, a, e, r, n / 2 + o, i / 2 + o); }, checkPoint: function(e, r, n, i, s, a, o, l) { return Fd(e, r, i, s, a, o, n); @@ -108197,7 +108141,7 @@ fh.generateRoundPolygon = function(t, e) { return l[u]; l[u] = new Array(e.length / 2), l[u + "-cx"] = n, l[u + "-cy"] = i; var h = s / 2, f = a / 2; - o = o === "auto" ? dme(s, a) : o; + o = o === "auto" ? hme(s, a) : o; for (var d = new Array(e.length / 2), p = 0; p < e.length / 2; p++) d[p] = { x: n + h * e[p * 2], @@ -108205,17 +108149,17 @@ fh.generateRoundPolygon = function(t, e) { }; var g, m, v, y, b = d.length; for (m = d[b - 1], g = 0; g < b; g++) - v = d[g % b], y = d[(g + 1) % b], l[u][g] = i$(m, v, y, o), m = v, v = y; + v = d[g % b], y = d[(g + 1) % b], l[u][g] = t$(m, v, y, o), m = v, v = y; return l[u]; }, draw: function(n, i, s, a, o, l, u) { this.renderer.nodeShapeImpl("round-polygon", n, i, s, a, o, this.points, this.getOrCreateCorners(i, s, a, o, l, u, "drawCorners")); }, intersectLine: function(n, i, s, a, o, l, u, h, f) { - return Mer(o, l, this.points, n, i, s, a, u, this.getOrCreateCorners(n, i, s, a, h, f, "corners")); + return Ler(o, l, this.points, n, i, s, a, u, this.getOrCreateCorners(n, i, s, a, h, f, "corners")); }, checkPoint: function(n, i, s, a, o, l, u, h, f) { - return Ler(n, i, this.points, l, u, a, o, this.getOrCreateCorners(l, u, a, o, h, f, "corners")); + return _er(n, i, this.points, l, u, a, o, this.getOrCreateCorners(l, u, a, o, h, f, "corners")); } }; }; @@ -108228,7 +108172,7 @@ fh.generateRoundRectangle = function() { this.renderer.nodeShapeImpl(this.name, e, r, n, i, s, this.points, a); }, intersectLine: function(e, r, n, i, s, a, o, l) { - return hme(s, a, e, r, n, i, o, l); + return cme(s, a, e, r, n, i, o, l); }, checkPoint: function(e, r, n, i, s, a, o, l) { var u = i / 2, h = s / 2; @@ -108242,7 +108186,7 @@ fh.generateCutRectangle = function() { return this.nodeShapes["cut-rectangle"] = this.nodeShapes.cutrectangle = { renderer: this, name: "cut-rectangle", - cornerLength: WP(), + cornerLength: qP(), points: Js(4, 0), draw: function(e, r, n, i, s, a) { this.renderer.nodeShapeImpl(this.name, e, r, n, i, s, null, a); @@ -108312,7 +108256,7 @@ fh.generateBarrel = function() { return j2(s, a, g, e, r); }, generateBarrelBezierPts: function(e, r, n, i) { - var s = r / 2, a = e / 2, o = n - a, l = n + a, u = i - s, h = i + s, f = sR(e, r), d = f.heightOffset, p = f.widthOffset, g = f.ctrlPtOffsetPct * e, m = { + var s = r / 2, a = e / 2, o = n - a, l = n + a, u = i - s, h = i + s, f = rR(e, r), d = f.heightOffset, p = f.widthOffset, g = f.ctrlPtOffsetPct * e, m = { topLeft: [o, u + d, o + g, u, o + p, u], topRight: [l - p, u, l - g, u, l, u + d], bottomRight: [l, h - d, l - g, h, l - p, h], @@ -108321,13 +108265,13 @@ fh.generateBarrel = function() { return m.topLeft.isTop = !0, m.topRight.isTop = !0, m.bottomLeft.isBottom = !0, m.bottomRight.isBottom = !0, m; }, checkPoint: function(e, r, n, i, s, a, o, l) { - var u = sR(i, s), h = u.heightOffset, f = u.widthOffset; + var u = rR(i, s), h = u.heightOffset, f = u.widthOffset; if (th(e, r, this.points, a, o, i, s - 2 * h, [0, -1], n) || th(e, r, this.points, a, o, i - 2 * f, s, [0, -1], n)) return !0; for (var d = this.generateBarrelBezierPts(i, s, a, o), p = function(L, E, R) { var _ = R[4], A = R[2], $ = R[0], k = R[5], N = R[1], M = Math.min(_, $), I = Math.max(_, $), D = Math.min(k, N), P = Math.max(k, N); if (M <= L && L <= I && D <= E && E <= P) { - var F = Der(_, A, $), B = Cer(F[0], F[1], F[2], L), V = B.filter(function(Y) { + var F = Rer(_, A, $), B = Ser(F[0], F[1], F[2], L), V = B.filter(function(Y) { return 0 <= Y && Y <= 1; }); if (V.length > 0) @@ -108356,7 +108300,7 @@ fh.generateBottomRoundrectangle = function() { }, intersectLine: function(e, r, n, i, s, a, o, l) { var u = e - (n / 2 + o), h = r - (i / 2 + o), f = h, d = e + (n / 2 + o), p = Qh(s, a, e, r, u, h, d, f, !1); - return p.length > 0 ? p : hme(s, a, e, r, n, i, o, l); + return p.length > 0 ? p : cme(s, a, e, r, n, i, o, l); }, checkPoint: function(e, r, n, i, s, a, o, l) { l = l === "auto" ? R0(i, s) : l; @@ -108378,14 +108322,14 @@ fh.registerNodeShapes = function() { this.generatePolygon("pentagon", Js(5, 0)), this.generateRoundPolygon("round-pentagon", Js(5, 0)), this.generatePolygon("hexagon", Js(6, 0)), this.generateRoundPolygon("round-hexagon", Js(6, 0)), this.generatePolygon("heptagon", Js(7, 0)), this.generateRoundPolygon("round-heptagon", Js(7, 0)), this.generatePolygon("octagon", Js(8, 0)), this.generateRoundPolygon("round-octagon", Js(8, 0)); var n = new Array(20); { - var i = iR(5, 0), s = iR(5, Math.PI / 5), a = 0.5 * (3 - Math.sqrt(5)); + var i = tR(5, 0), s = tR(5, Math.PI / 5), a = 0.5 * (3 - Math.sqrt(5)); a *= 1.57; for (var o = 0; o < s.length / 2; o++) s[o * 2] *= a, s[o * 2 + 1] *= a; for (var o = 0; o < 20 / 4; o++) n[o * 4] = i[o * 2], n[o * 4 + 1] = i[o * 2 + 1], n[o * 4 + 2] = s[o * 2], n[o * 4 + 3] = s[o * 2 + 1]; } - n = fme(n), this.generatePolygon("star", n), this.generatePolygon("vee", [-1, -1, 0, -0.333, 1, -1, 0, 1]), this.generatePolygon("rhomboid", [-1, -1, 0.333, -1, 1, 1, -0.333, 1]), this.generatePolygon("right-rhomboid", [-0.333, -1, 1, -1, 0.333, 1, -1, 1]), this.nodeShapes.concavehexagon = this.generatePolygon("concave-hexagon", [-1, -0.95, -0.75, 0, -1, 0.95, 1, 0.95, 0.75, 0, 1, -0.95]); + n = ume(n), this.generatePolygon("star", n), this.generatePolygon("vee", [-1, -1, 0, -0.333, 1, -1, 0, 1]), this.generatePolygon("rhomboid", [-1, -1, 0.333, -1, 1, 1, -0.333, 1]), this.generatePolygon("right-rhomboid", [-0.333, -1, 1, -1, 0.333, 1, -1, 1]), this.nodeShapes.concavehexagon = this.generatePolygon("concave-hexagon", [-1, -0.95, -0.75, 0, -1, 0.95, 1, 0.95, 0.75, 0, 1, -0.95]); { var l = [-1, -1, 0.25, -1, 1, 0, 0.25, 1, -1, 1]; this.generatePolygon("tag", l), this.generateRoundPolygon("round-tag", l); @@ -108400,7 +108344,7 @@ ew.timeToRender = function() { return this.redrawTotalTime / this.redrawCount; }; ew.redraw = function(t) { - t = t || ame(); + t = t || ime(); var e = this; e.averageRedrawTime === void 0 && (e.averageRedrawTime = 0), e.lastRedrawTime === void 0 && (e.lastRedrawTime = 0), e.lastDrawTime === void 0 && (e.lastDrawTime = 0), e.requestedFrame = !0, e.renderOptions = t; }; @@ -108416,7 +108360,7 @@ ew.beforeRender = function(t, e) { }); } }; -var VX = function(e, r, n) { +var BX = function(e, r, n) { for (var i = e.beforeRenderCallbacks, s = 0; s < i.length; s++) i[s].fn(r, n); }; @@ -108428,7 +108372,7 @@ ew.startRenderLoop = function() { if (!t.destroyed) { if (!e.batching()) if (t.requestedFrame && !t.skipFrame) { - VX(t, !0, i); + BX(t, !0, i); var s = eh(); t.render(t.renderOptions); var a = t.lastDrawTime = eh(); @@ -108436,16 +108380,16 @@ ew.startRenderLoop = function() { var o = a - s; t.redrawTotalTime += o, t.lastRedrawTime = o, t.averageRedrawTime = t.averageRedrawTime / 2 + o / 2, t.requestedFrame = !1; } else - VX(t, !1, i); - t.skipFrame = !1, cS(n); + BX(t, !1, i); + t.skipFrame = !1, lS(n); } }; - cS(r); + lS(r); } }; -var psr = function(e) { +var fsr = function(e) { this.init(e); -}, hve = psr, Tm = hve.prototype; +}, cve = fsr, Tm = cve.prototype; Tm.clientFunctions = ["redrawHint", "render", "renderTo", "matchCanvasSize", "nodeShapeImpl", "arrowShapeImpl"]; Tm.init = function(t) { var e = this; @@ -108516,29 +108460,29 @@ Tm.destroy = function() { Tm.isHeadless = function() { return !1; }; -[n$, cve, uve, Sm, fh, ew].forEach(function(t) { +[e$, ove, lve, Sm, fh, ew].forEach(function(t) { Kt(Tm, t); }); -var pA = 1e3 / 60, fve = { +var fA = 1e3 / 60, uve = { setupDequeueing: function(e) { return function() { var n = this, i = this.renderer; if (!n.dequeueingSetup) { n.dequeueingSetup = !0; - var s = UC(function() { + var s = zC(function() { i.redrawHint("eles", !0), i.redrawHint("drag", !0), i.redraw(); }, e.deqRedrawThreshold), a = function(u, h) { var f = eh(), d = i.averageRedrawTime, p = i.lastRedrawTime, g = [], m = i.cy.extent(), v = i.getPixelRatio(); for (u || i.flushRenderedStyleQueue(); ; ) { var y = eh(), b = y - f, w = y - h; - if (p < pA) { - var O = pA - (u ? d : 0); + if (p < fA) { + var O = fA - (u ? d : 0); if (w >= e.deqFastCost * O) break; } else if (u) { if (b >= e.deqCost * p || b >= e.deqAvgCost * d) break; - } else if (w >= e.deqNoDrawCost * pA) + } else if (w >= e.deqNoDrawCost * fA) break; var S = e.deq(n, v, m); if (S.length > 0) @@ -108548,17 +108492,17 @@ var pA = 1e3 / 60, fve = { break; } g.length > 0 && (e.onDeqd(n, g), !u && e.shouldRedraw(n, g, v, m) && s()); - }, o = e.priority || UP; + }, o = e.priority || FP; i.beforeRender(a, o(n)); } }; } -}, gsr = /* @__PURE__ */ function() { +}, dsr = /* @__PURE__ */ function() { function t(e) { - var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : uS; - $P(this, t), this.idsByKey = new Cc(), this.keyForId = new Cc(), this.cachesByLvl = new Cc(), this.lvls = [], this.getKey = e, this.doesEleInvalidateKey = r; + var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : cS; + NP(this, t), this.idsByKey = new Cc(), this.keyForId = new Cc(), this.cachesByLvl = new Cc(), this.lvls = [], this.getKey = e, this.doesEleInvalidateKey = r; } - return BP(t, [{ + return IP(t, [{ key: "getIdsFor", value: function(r) { r == null && Qn("Can not get id list for null key"); @@ -108676,25 +108620,25 @@ var pA = 1e3 / 60, fve = { return s && this.invalidateKey(i), s || this.getNumberOfIdsForKey(i) === 0; } }]), t; -}(), UX = 25, GO = 50, p5 = -4, mR = 3, msr = 7.99, vsr = 8, ysr = 1024, bsr = 1024, xsr = 1024, wsr = 0.2, Osr = 0.8, ksr = 10, Ssr = 0.15, Tsr = 0.1, Csr = 0.9, Esr = 0.9, _sr = 100, Asr = 1, Yp = { +}(), FX = 25, WO = 50, d5 = -4, dR = 3, psr = 7.99, gsr = 8, msr = 1024, vsr = 1024, ysr = 1024, bsr = 0.2, xsr = 0.8, wsr = 10, Osr = 0.15, ksr = 0.1, Ssr = 0.9, Tsr = 0.9, Csr = 100, Esr = 1, Yp = { dequeue: "dequeue", downscale: "downscale", highQuality: "highQuality" -}, Lsr = ws({ +}, _sr = ws({ getKey: null, - doesEleInvalidateKey: uS, + doesEleInvalidateKey: cS, drawElement: null, getBoundingBox: null, getRotationPoint: null, getRotationOffset: null, - isVisible: nme, + isVisible: tme, allowEdgeTxrCaching: !0, allowParentTxrCaching: !0 }), Vv = function(e, r) { var n = this; n.renderer = e, n.onDequeues = []; - var i = Lsr(r); - Kt(n, i), n.lookup = new gsr(i.getKey, i.doesEleInvalidateKey), n.setupDequeueing(); + var i = _sr(r); + Kt(n, i), n.lookup = new dsr(i.getKey, i.doesEleInvalidateKey), n.setupDequeueing(); }, Bi = Vv.prototype; Bi.reasons = Yp; Bi.getTextureQueue = function(t) { @@ -108719,9 +108663,9 @@ Bi.getElement = function(t, e, r, n, i) { var s = this, a = this.renderer, o = a.cy.zoom(), l = this.lookup; if (!e || e.w === 0 || e.h === 0 || isNaN(e.w) || isNaN(e.h) || !t.visible() || t.removed() || !s.allowEdgeTxrCaching && t.isEdge() || !s.allowParentTxrCaching && t.isParent()) return null; - if (n == null && (n = Math.ceil(YP(o * r))), n < p5) - n = p5; - else if (o >= msr || n > mR) + if (n == null && (n = Math.ceil(VP(o * r))), n < d5) + n = d5; + else if (o >= psr || n > dR) return null; var u = Math.pow(2, n), h = e.h * u, f = e.w * u, d = a.eleTextBiggerThanMin(t, u); if (!this.isVisible(t, d)) @@ -108730,7 +108674,7 @@ Bi.getElement = function(t, e, r, n, i) { if (p && p.invalidated && (p.invalidated = !1, p.texture.invalidatedWidth -= p.width), p) return p; var g; - if (h <= UX ? g = UX : h <= GO ? g = GO : g = Math.ceil(h / GO) * GO, h > xsr || f > bsr) + if (h <= FX ? g = FX : h <= WO ? g = WO : g = Math.ceil(h / WO) * WO, h > ysr || f > vsr) return null; var m = s.getTextureQueue(g), v = m[m.length - 2], y = function() { return s.recycleTexture(g, f) || s.addTexture(g, f); @@ -108738,7 +108682,7 @@ Bi.getElement = function(t, e, r, n, i) { v || (v = m[m.length - 1]), v || (v = y()), v.width - v.usedWidth < f && (v = y()); for (var b = function(M) { return M && M.scaledLabelShown === d; - }, w = i && i === Yp.dequeue, O = i && i === Yp.highQuality, S = i && i === Yp.downscale, C, T = n + 1; T <= mR; T++) { + }, w = i && i === Yp.dequeue, O = i && i === Yp.highQuality, S = i && i === Yp.downscale, C, T = n + 1; T <= dR; T++) { var L = l.get(t, T); if (L) { C = L; @@ -108760,7 +108704,7 @@ Bi.getElement = function(t, e, r, n, i) { else { var A; if (!w && !O && !S) - for (var $ = n - 1; $ >= p5; $--) { + for (var $ = n - 1; $ >= d5; $--) { var k = l.get(t, $); if (k) { A = k; @@ -108779,7 +108723,7 @@ Bi.getElement = function(t, e, r, n, i) { width: f, height: h, scaledLabelShown: d - }, v.usedWidth += Math.ceil(f + vsr), v.eleCaches.push(p), l.set(t, n, p), s.checkTextureFullness(v), p; + }, v.usedWidth += Math.ceil(f + gsr), v.eleCaches.push(p), l.set(t, n, p), s.checkTextureFullness(v), p; }; Bi.invalidateElements = function(t) { for (var e = 0; e < t.length; e++) @@ -108788,7 +108732,7 @@ Bi.invalidateElements = function(t) { Bi.invalidateElement = function(t) { var e = this, r = e.lookup, n = [], i = r.isInvalid(t); if (!!i) { - for (var s = p5; s <= mR; s++) { + for (var s = d5; s <= dR; s++) { var a = r.getForCachedKey(t, s); a && n.push(a); } @@ -108802,11 +108746,11 @@ Bi.invalidateElement = function(t) { } }; Bi.checkTextureUtility = function(t) { - t.invalidatedWidth >= wsr * t.width && this.retireTexture(t); + t.invalidatedWidth >= bsr * t.width && this.retireTexture(t); }; Bi.checkTextureFullness = function(t) { var e = this, r = e.getTextureQueue(t.height); - t.usedWidth / t.width > Osr && t.fullnessChecks >= ksr ? Df(r, t) : t.fullnessChecks++; + t.usedWidth / t.width > xsr && t.fullnessChecks >= wsr ? Df(r, t) : t.fullnessChecks++; }; Bi.retireTexture = function(t) { var e = this, r = t.height, n = e.getTextureQueue(r), i = this.lookup; @@ -108815,19 +108759,19 @@ Bi.retireTexture = function(t) { var o = s[a]; i.deleteCache(o.key, o.level); } - qP(s); + zP(s); var l = e.getRetiredTextureQueue(r); l.push(t); }; Bi.addTexture = function(t, e) { var r = this, n = r.getTextureQueue(t), i = {}; - return n.push(i), i.eleCaches = [], i.height = t, i.width = Math.max(ysr, e), i.usedWidth = 0, i.invalidatedWidth = 0, i.fullnessChecks = 0, i.canvas = r.renderer.makeOffscreenCanvas(i.width, i.height), i.context = i.canvas.getContext("2d"), i; + return n.push(i), i.eleCaches = [], i.height = t, i.width = Math.max(msr, e), i.usedWidth = 0, i.invalidatedWidth = 0, i.fullnessChecks = 0, i.canvas = r.renderer.makeOffscreenCanvas(i.width, i.height), i.context = i.canvas.getContext("2d"), i; }; Bi.recycleTexture = function(t, e) { for (var r = this, n = r.getTextureQueue(t), i = r.getRetiredTextureQueue(t), s = 0; s < i.length; s++) { var a = i[s]; if (a.width >= e) - return a.retired = !1, a.usedWidth = 0, a.invalidatedWidth = 0, a.fullnessChecks = 0, qP(a.eleCaches), a.context.setTransform(1, 0, 0, 1, 0, 0), a.context.clearRect(0, 0, a.width, a.height), Df(i, a), n.push(a), a; + return a.retired = !1, a.usedWidth = 0, a.invalidatedWidth = 0, a.fullnessChecks = 0, zP(a.eleCaches), a.context.setTransform(1, 0, 0, 1, 0, 0), a.context.clearRect(0, 0, a.width, a.height), Df(i, a), n.push(a), a; } }; Bi.queueElement = function(t, e) { @@ -108845,7 +108789,7 @@ Bi.queueElement = function(t, e) { } }; Bi.dequeue = function(t) { - for (var e = this, r = e.getElementQueue(), n = e.getElementKeyToQueue(), i = [], s = e.lookup, a = 0; a < Asr && r.size() > 0; a++) { + for (var e = this, r = e.getElementQueue(), n = e.getElementKeyToQueue(), i = [], s = e.lookup, a = 0; a < Esr && r.size() > 0; a++) { var o = r.pop(), l = o.key, u = o.eles[0], h = s.hasCache(u, o.level); if (n[l] = null, h) continue; @@ -108857,7 +108801,7 @@ Bi.dequeue = function(t) { }; Bi.removeFromQueue = function(t) { var e = this, r = e.getElementQueue(), n = e.getElementKeyToQueue(), i = this.getKey(t), s = n[i]; - s != null && (s.eles.length === 1 ? (s.reqs = VP, r.updateItem(s), r.pop(), n[i] = null) : s.eles.unmerge(t)); + s != null && (s.eles.length === 1 ? (s.reqs = BP, r.updateItem(s), r.pop(), n[i] = null) : s.eles.unmerge(t)); }; Bi.onDequeue = function(t) { this.onDequeues.push(t); @@ -108865,12 +108809,12 @@ Bi.onDequeue = function(t) { Bi.offDequeue = function(t) { Df(this.onDequeues, t); }; -Bi.setupDequeueing = fve.setupDequeueing({ - deqRedrawThreshold: _sr, - deqCost: Ssr, - deqAvgCost: Tsr, - deqNoDrawCost: Csr, - deqFastCost: Esr, +Bi.setupDequeueing = uve.setupDequeueing({ + deqRedrawThreshold: Csr, + deqCost: Osr, + deqAvgCost: ksr, + deqNoDrawCost: Ssr, + deqFastCost: Tsr, deq: function(e, r, n) { return e.dequeue(r, n); }, @@ -108884,7 +108828,7 @@ Bi.setupDequeueing = fve.setupDequeueing({ for (var s = 0; s < r.length; s++) for (var a = r[s].eles, o = 0; o < a.length; o++) { var l = a[o].boundingBox(); - if (QP(l, i)) + if (UP(l, i)) return !0; } return !1; @@ -108893,21 +108837,21 @@ Bi.setupDequeueing = fve.setupDequeueing({ return e.renderer.beforeRenderPriorities.eleTxrDeq; } }); -var Rsr = 1, my = -4, yS = 2, Msr = 3.99, Dsr = 50, Nsr = 50, Isr = 0.15, Psr = 0.1, $sr = 0.9, Bsr = 0.9, Fsr = 1, qX = 250, zsr = 4e3 * 4e3, Vsr = !0, dve = function(e) { +var Asr = 1, my = -4, vS = 2, Lsr = 3.99, Rsr = 50, Msr = 50, Dsr = 0.15, Nsr = 0.1, Isr = 0.9, Psr = 0.9, $sr = 1, zX = 250, Bsr = 4e3 * 4e3, Fsr = !0, hve = function(e) { var r = this, n = r.renderer = e, i = n.cy; - r.layersByLevel = {}, r.firstGet = !0, r.lastInvalidationTime = eh() - 2 * qX, r.skipping = !1, r.eleTxrDeqs = i.collection(), r.scheduleElementRefinement = UC(function() { + r.layersByLevel = {}, r.firstGet = !0, r.lastInvalidationTime = eh() - 2 * zX, r.skipping = !1, r.eleTxrDeqs = i.collection(), r.scheduleElementRefinement = zC(function() { r.refineElementTextures(r.eleTxrDeqs), r.eleTxrDeqs.unmerge(r.eleTxrDeqs); - }, Nsr), n.beforeRender(function(a, o) { - o - r.lastInvalidationTime <= qX ? r.skipping = !0 : r.skipping = !1; + }, Msr), n.beforeRender(function(a, o) { + o - r.lastInvalidationTime <= zX ? r.skipping = !0 : r.skipping = !1; }, n.beforeRenderPriorities.lyrTxrSkip); var s = function(o, l) { return l.reqs - o.reqs; }; r.layersQueue = new Zx(s), r.setupDequeueing(); -}, Os = dve.prototype, YX = 0, Usr = Math.pow(2, 53) - 1; +}, Os = hve.prototype, VX = 0, zsr = Math.pow(2, 53) - 1; Os.makeLayer = function(t, e) { var r = Math.pow(2, e), n = Math.ceil(t.w * r), i = Math.ceil(t.h * r), s = this.renderer.makeOffscreenCanvas(n, i), a = { - id: YX = ++YX % Usr, + id: VX = ++VX % zsr, bb: t, level: e, width: n, @@ -108923,9 +108867,9 @@ Os.makeLayer = function(t, e) { Os.getLayers = function(t, e, r) { var n = this, i = n.renderer, s = i.cy, a = s.zoom(), o = n.firstGet; if (n.firstGet = !1, r == null) { - if (r = Math.ceil(YP(a * e)), r < my) + if (r = Math.ceil(VP(a * e)), r < my) r = my; - else if (a >= Msr || r > yS) + else if (a >= Lsr || r > vS) return null; } n.validateLayersElesOrdering(r, t); @@ -108935,7 +108879,7 @@ Os.getLayers = function(t, e, r) { return p = l[N], !0; }, _ = function(N) { if (!p) - for (var M = r + N; my <= M && M <= yS && !R(M); M += N) + for (var M = r + N; my <= M && M <= vS && !R(M); M += N) ; }; _(1), _(-1); @@ -108952,7 +108896,7 @@ Os.getLayers = function(t, e, r) { if (!f) { f = Fa(); for (var R = 0; R < t.length; R++) - cme(f, t[R].boundingBox()); + ome(f, t[R].boundingBox()); } return f; }, v = function(R) { @@ -108960,7 +108904,7 @@ Os.getLayers = function(t, e, r) { var _ = R.after; m(); var A = f.w * u * (f.h * u); - if (A > zsr) + if (A > Bsr) return null; var $ = n.makeLayer(f, r); if (_ != null) { @@ -108972,13 +108916,13 @@ Os.getLayers = function(t, e, r) { }; if (n.skipping && !o) return null; - for (var y = null, b = t.length / Rsr, w = !o, O = 0; O < t.length; O++) { + for (var y = null, b = t.length / Asr, w = !o, O = 0; O < t.length; O++) { var S = t[O], C = S._private.rscratch, T = C.imgLayerCaches = C.imgLayerCaches || {}, L = T[r]; if (L) { y = L; continue; } - if ((!y || y.eles.length >= b || !ume(y.bb, S.boundingBox())) && (y = v({ + if ((!y || y.eles.length >= b || !lme(y.bb, S.boundingBox())) && (y = v({ insert: !0, after: y }), !y)) @@ -108992,7 +108936,7 @@ Os.getEleLevelForLayerLevel = function(t, e) { }; Os.drawEleInLayer = function(t, e, r, n) { var i = this, s = this.renderer, a = t.context, o = e.boundingBox(); - o.w === 0 || o.h === 0 || !e.visible() || (r = i.getEleLevelForLayerLevel(r, n), s.setImgSmoothing(a, !1), s.drawCachedElement(a, e, null, null, r, Vsr), s.setImgSmoothing(a, !0)); + o.w === 0 || o.h === 0 || !e.visible() || (r = i.getEleLevelForLayerLevel(r, n), s.setImgSmoothing(a, !1), s.drawCachedElement(a, e, null, null, r, Fsr), s.setImgSmoothing(a, !0)); }; Os.levelIsComplete = function(t, e) { var r = this, n = r.layersByLevel[t]; @@ -109028,13 +108972,13 @@ Os.validateLayersElesOrdering = function(t, e) { }; Os.updateElementsInLayers = function(t, e) { for (var r = this, n = Hx(t[0]), i = 0; i < t.length; i++) - for (var s = n ? null : t[i], a = n ? t[i] : t[i].ele, o = a._private.rscratch, l = o.imgLayerCaches = o.imgLayerCaches || {}, u = my; u <= yS; u++) { + for (var s = n ? null : t[i], a = n ? t[i] : t[i].ele, o = a._private.rscratch, l = o.imgLayerCaches = o.imgLayerCaches || {}, u = my; u <= vS; u++) { var h = l[u]; !h || s && r.getEleLevelForLayerLevel(h.level) !== s.level || e(h, a, s); } }; Os.haveLayers = function() { - for (var t = this, e = !1, r = my; r <= yS; r++) { + for (var t = this, e = !1, r = my; r <= vS; r++) { var n = t.layersByLevel[r]; if (n && n.length > 0) { e = !0; @@ -109083,7 +109027,7 @@ Os.queueLayer = function(t, e) { } }; Os.dequeue = function(t) { - for (var e = this, r = e.layersQueue, n = [], i = 0; i < Fsr && r.size() !== 0; ) { + for (var e = this, r = e.layersQueue, n = [], i = 0; i < $sr && r.size() !== 0; ) { var s = r.peek(); if (s.replacement) { r.pop(); @@ -109113,40 +109057,40 @@ Os.applyLayerReplacement = function(t) { e.requestRedraw(); } }; -Os.requestRedraw = UC(function() { +Os.requestRedraw = zC(function() { var t = this.renderer; t.redrawHint("eles", !0), t.redrawHint("drag", !0), t.redraw(); }, 100); -Os.setupDequeueing = fve.setupDequeueing({ - deqRedrawThreshold: Dsr, - deqCost: Isr, - deqAvgCost: Psr, - deqNoDrawCost: $sr, - deqFastCost: Bsr, +Os.setupDequeueing = uve.setupDequeueing({ + deqRedrawThreshold: Rsr, + deqCost: Dsr, + deqAvgCost: Nsr, + deqNoDrawCost: Isr, + deqFastCost: Psr, deq: function(e, r) { return e.dequeue(r); }, - onDeqd: UP, - shouldRedraw: nme, + onDeqd: FP, + shouldRedraw: tme, priority: function(e) { return e.renderer.beforeRenderPriorities.lyrTxrDeq; } }); -var pve = {}, QX; -function qsr(t, e) { +var fve = {}, UX; +function Vsr(t, e) { for (var r = 0; r < e.length; r++) { var n = e[r]; t.lineTo(n.x, n.y); } } -function Ysr(t, e, r) { +function Usr(t, e, r) { for (var n, i = 0; i < e.length; i++) { var s = e[i]; i === 0 && (n = s), t.lineTo(s.x, s.y); } t.quadraticCurveTo(r.x, r.y, n.x, n.y); } -function WX(t, e, r) { +function qX(t, e, r) { t.beginPath && t.beginPath(); for (var n = e, i = 0; i < n.length; i++) { var s = n[i]; @@ -109160,7 +109104,7 @@ function WX(t, e, r) { } t.closePath && t.closePath(); } -function Qsr(t, e, r, n, i) { +function qsr(t, e, r, n, i) { t.beginPath && t.beginPath(), t.arc(r, n, i, 0, Math.PI * 2, !1); var s = e, a = s[0]; t.moveTo(a.x, a.y); @@ -109170,17 +109114,17 @@ function Qsr(t, e, r, n, i) { } t.closePath && t.closePath(); } -function Wsr(t, e, r, n) { +function Ysr(t, e, r, n) { t.arc(e, r, n, 0, Math.PI * 2, !1); } -pve.arrowShapeImpl = function(t) { - return (QX || (QX = { - polygon: qsr, - "triangle-backcurve": Ysr, - "triangle-tee": WX, - "circle-triangle": Qsr, - "triangle-cross": WX, - circle: Wsr +fve.arrowShapeImpl = function(t) { + return (UX || (UX = { + polygon: Vsr, + "triangle-backcurve": Usr, + "triangle-tee": qX, + "circle-triangle": qsr, + "triangle-cross": qX, + circle: Ysr }))[t]; }; var su = {}; @@ -109218,24 +109162,24 @@ su.drawCachedElementPortion = function(t, e, r, n, i, s, a, o) { r.drawElement(t, e); } }; -var Gsr = function() { +var Qsr = function() { return 0; -}, Hsr = function(e, r) { +}, Wsr = function(e, r) { return e.getTextAngle(r, null); -}, Xsr = function(e, r) { +}, Gsr = function(e, r) { return e.getTextAngle(r, "source"); -}, Zsr = function(e, r) { +}, Hsr = function(e, r) { return e.getTextAngle(r, "target"); -}, jsr = function(e, r) { +}, Xsr = function(e, r) { return r.effectiveOpacity(); -}, gA = function(e, r) { +}, dA = function(e, r) { return r.pstyle("text-opacity").pfValue * r.effectiveOpacity(); }; su.drawCachedElement = function(t, e, r, n, i, s) { var a = this, o = a.data, l = o.eleTxrCache, u = o.lblTxrCache, h = o.slbTxrCache, f = o.tlbTxrCache, d = e.boundingBox(), p = s === !0 ? l.reasons.highQuality : null; - if (!(d.w === 0 || d.h === 0 || !e.visible()) && (!n || QP(d, n))) { + if (!(d.w === 0 || d.h === 0 || !e.visible()) && (!n || UP(d, n))) { var g = e.isEdge(), m = e.element()._private.rscratch.badLine; - a.drawElementUnderlay(t, e), a.drawCachedElementPortion(t, e, l, r, i, p, Gsr, jsr), (!g || !m) && a.drawCachedElementPortion(t, e, u, r, i, p, Hsr, gA), g && !m && (a.drawCachedElementPortion(t, e, h, r, i, p, Xsr, gA), a.drawCachedElementPortion(t, e, f, r, i, p, Zsr, gA)), a.drawElementOverlay(t, e); + a.drawElementUnderlay(t, e), a.drawCachedElementPortion(t, e, l, r, i, p, Qsr, Xsr), (!g || !m) && a.drawCachedElementPortion(t, e, u, r, i, p, Wsr, dA), g && !m && (a.drawCachedElementPortion(t, e, h, r, i, p, Gsr, dA), a.drawCachedElementPortion(t, e, f, r, i, p, Hsr, dA)), a.drawElementOverlay(t, e); } }; su.drawElements = function(t, e) { @@ -109304,7 +109248,7 @@ dh.drawEdge = function(t, e, r) { C(), w(), T(), S(), L(), r && t.translate(l.x1, l.y1); } }; -var gve = function(e) { +var dve = function(e) { if (!["overlay", "underlay"].includes(e)) throw new Error("Invalid state"); return function(r, n) { @@ -109317,8 +109261,8 @@ var gve = function(e) { } }; }; -dh.drawEdgeOverlay = gve("overlay"); -dh.drawEdgeUnderlay = gve("underlay"); +dh.drawEdgeOverlay = dve("overlay"); +dh.drawEdgeUnderlay = dve("underlay"); dh.drawEdgePath = function(t, e, r, n) { var i = t._private.rscratch, s = e, a, o = !1, l = this.usePaths(), u = t.pstyle("line-dash-pattern").pfValue, h = t.pstyle("line-dash-offset").pfValue; if (l) { @@ -109353,11 +109297,11 @@ dh.drawEdgePath = function(t, e, r, n) { break; case "segments": if (i.isRound) { - var m = q1e(i.roundCorners), v; + var m = V1e(i.roundCorners), v; try { for (m.s(); !(v = m.n()).done; ) { var y = v.value; - ive(e, y); + rve(e, y); } } catch (w) { m.e(w); @@ -109412,8 +109356,8 @@ dh.drawArrowShape = function(t, e, r, n, i, s, a, o, l) { y: 0 }, 1) : y.draw(e, v, l, g, n), e.closePath && e.closePath()), e = p, h && (e.translate(a, o), e.rotate(l), e.scale(v, v)), (r === "filled" || r === "both") && (h ? e.fill(d) : e.fill()), (r === "hollow" || r === "both") && (e.lineWidth = s / (h ? v : 1), e.lineJoin = "miter", h ? e.stroke(d) : e.stroke()), h && (e.scale(1 / v, 1 / v), e.rotate(-l), e.translate(-a, -o)); }; -var a$ = {}; -a$.safeDrawImage = function(t, e, r, n, i, s, a, o, l, u) { +var n$ = {}; +n$.safeDrawImage = function(t, e, r, n, i, s, a, o, l, u) { if (!(i <= 0 || s <= 0 || l <= 0 || u <= 0)) try { t.drawImage(e, r, n, i, s, a, o, l, u); @@ -109421,7 +109365,7 @@ a$.safeDrawImage = function(t, e, r, n, i, s, a, o, l, u) { Yr(h); } }; -a$.drawInscribedImage = function(t, e, r, n, i) { +n$.drawInscribedImage = function(t, e, r, n, i) { var s = this, a = r.position(), o = a.x, l = a.y, u = r.cy().style(), h = u.getIndexedStyle.bind(u), f = h(r, "background-fit", "value", n), d = h(r, "background-repeat", "value", n), p = r.width(), g = r.height(), m = r.padding() * 2, v = p + (h(r, "background-width-relative-to", "value", n) === "inner" ? 0 : m), y = g + (h(r, "background-height-relative-to", "value", n) === "inner" ? 0 : m), b = r._private.rscratch, w = h(r, "background-clip", "value", n), O = w === "node", S = h(r, "background-image-opacity", "value", n) * i, C = h(r, "background-image-smoothing", "value", n), T = r.pstyle("corner-radius").value; T !== "auto" && (T = r.pstyle("corner-radius").pfValue); var L = e.width || e.cachedW, E = e.height || e.cachedH; @@ -109458,7 +109402,7 @@ a$.drawInscribedImage = function(t, e, r, n, i) { var ap = {}; ap.eleTextBiggerThanMin = function(t, e) { if (!e) { - var r = t.cy().zoom(), n = this.getPixelRatio(), i = Math.ceil(YP(r * n)); + var r = t.cy().zoom(), n = this.getPixelRatio(), i = Math.ceil(VP(r * n)); e = Math.pow(2, i); } var s = t.pstyle("font-size").pfValue * e, a = t.pstyle("min-zoomed-font-size").pfValue; @@ -109500,7 +109444,7 @@ ap.setupTextStyle = function(t, e) { var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0, n = e.pstyle("font-style").strValue, i = e.pstyle("font-size").pfValue + "px", s = e.pstyle("font-family").strValue, a = e.pstyle("font-weight").strValue, o = r ? e.effectiveOpacity() * e.pstyle("text-opacity").value : 1, l = e.pstyle("text-outline-opacity").value * o, u = e.pstyle("color").value, h = e.pstyle("text-outline-color").value; t.font = n + " " + a + " " + i + " " + s, t.lineJoin = "round", this.colorFillStyle(t, u[0], u[1], u[2], o), this.colorStrokeStyle(t, h[0], h[1], h[2], l); }; -function mA(t, e, r, n, i) { +function pA(t, e, r, n, i) { var s = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : 5, a = arguments.length > 6 ? arguments[6] : void 0; t.beginPath(), t.moveTo(e + s, r), t.lineTo(e + n - s, r), t.quadraticCurveTo(e + n, r, e + n, r + s), t.lineTo(e + n, r + i - s), t.quadraticCurveTo(e + n, r + i, e + n - s, r + i), t.lineTo(e + s, r + i), t.quadraticCurveTo(e, r + i, e, r + i - s), t.lineTo(e, r + s), t.quadraticCurveTo(e, r, e + s, r), t.closePath(), a ? t.stroke() : t.fill(); } @@ -109542,7 +109486,7 @@ ap.drawText = function(t, e, r) { var k = u - m - E, N = g + 2 * E, M = m + 2 * E; if (C > 0) { var I = t.fillStyle, D = e.pstyle("text-background-color").value; - t.fillStyle = "rgba(" + D[0] + "," + D[1] + "," + D[2] + "," + C * o + ")", _ ? mA(t, $, k, N, M, A) : t.fillRect($, k, N, M), t.fillStyle = I; + t.fillStyle = "rgba(" + D[0] + "," + D[1] + "," + D[2] + "," + C * o + ")", _ ? pA(t, $, k, N, M, A) : t.fillRect($, k, N, M), t.fillStyle = I; } if (L > 0 && T > 0) { var P = t.strokeStyle, F = t.lineWidth, B = e.pstyle("text-border-color").value, V = e.pstyle("text-border-style").value; @@ -109561,9 +109505,9 @@ ap.drawText = function(t, e, r) { t.setLineDash([]); break; } - if (_ ? mA(t, $, k, N, M, A, "stroke") : t.strokeRect($, k, N, M), V === "double") { + if (_ ? pA(t, $, k, N, M, A, "stroke") : t.strokeRect($, k, N, M), V === "double") { var Y = L / 2; - _ ? mA(t, $ + Y, k + Y, N - Y * 2, M - Y * 2, A, "stroke") : t.strokeRect($ + Y, k + Y, N - Y * 2, M - Y * 2); + _ ? pA(t, $ + Y, k + Y, N - Y * 2, M - Y * 2, A, "stroke") : t.strokeRect($ + Y, k + Y, N - Y * 2, M - Y * 2); } t.setLineDash && t.setLineDash([]), t.lineWidth = F, t.strokeStyle = P; } @@ -109617,7 +109561,7 @@ Cm.drawNode = function(t, e, r) { var fe = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : ee; a.colorStrokeStyle(t, Y[0], Y[1], Y[2], fe); }, W = function(fe, de, ge, xe) { - var ke = a.nodePathCache = a.nodePathCache || [], Ce = rme(ge === "polygon" ? ge + "," + xe.join(",") : ge, "" + de, "" + fe, "" + ne), Oe = ke[Ce], Me, Te = !1; + var ke = a.nodePathCache = a.nodePathCache || [], Ce = eme(ge === "polygon" ? ge + "," + xe.join(",") : ge, "" + de, "" + fe, "" + ne), Oe = ke[Ce], Me, Te = !1; return Oe != null ? (Me = Oe, Te = !0, h.pathCache = Me) : (Me = new Path2D(), ke[Ce] = h.pathCache = Me), { path: Me, cacheHit: Te @@ -109716,7 +109660,7 @@ Cm.drawNode = function(t, e, r) { a.drawEllipsePath(Te || t, fe.x, fe.y, Ce, Oe); else if (["round-diamond", "round-heptagon", "round-hexagon", "round-octagon", "round-pentagon", "round-polygon", "round-triangle", "round-tag"].includes(de)) { var Ne = 0, Ke = 0, je = 0; - de === "round-diamond" ? Ne = (ge + Q + V) * 1.4 : de === "round-heptagon" ? (Ne = (ge + Q + V) * 1.075, je = -(ge / 2 + Q + V) / 35) : de === "round-hexagon" ? Ne = (ge + Q + V) * 1.12 : de === "round-pentagon" ? (Ne = (ge + Q + V) * 1.13, je = -(ge / 2 + Q + V) / 15) : de === "round-tag" ? (Ne = (ge + Q + V) * 1.12, Ke = (ge / 2 + V + Q) * 0.07) : de === "round-triangle" && (Ne = (ge + Q + V) * (Math.PI / 2), je = -(ge + Q / 2 + V) / Math.PI), Ne !== 0 && (xe = (o + Ne) / o, Ce = o * xe, ["round-hexagon", "round-tag"].includes(de) || (ke = (l + Ne) / l, Oe = l * ke)), ne = ne === "auto" ? dme(Ce, Oe) : ne; + de === "round-diamond" ? Ne = (ge + Q + V) * 1.4 : de === "round-heptagon" ? (Ne = (ge + Q + V) * 1.075, je = -(ge / 2 + Q + V) / 35) : de === "round-hexagon" ? Ne = (ge + Q + V) * 1.12 : de === "round-pentagon" ? (Ne = (ge + Q + V) * 1.13, je = -(ge / 2 + Q + V) / 15) : de === "round-tag" ? (Ne = (ge + Q + V) * 1.12, Ke = (ge / 2 + V + Q) * 0.07) : de === "round-triangle" && (Ne = (ge + Q + V) * (Math.PI / 2), je = -(ge + Q / 2 + V) / Math.PI), Ne !== 0 && (xe = (o + Ne) / o, Ce = o * xe, ["round-hexagon", "round-tag"].includes(de) || (ke = (l + Ne) / l, Oe = l * ke)), ne = ne === "auto" ? hme(Ce, Oe) : ne; for (var ut = Ce / 2, ft = Oe / 2, ot = ne + (ge + V + Q) / 2, We = new Array(Me.length / 2), Ye = new Array(Me.length / 2), pt = 0; pt < Me.length / 2; pt++) We[pt] = { x: fe.x + Ke + ut * Me[pt * 2], @@ -109724,22 +109668,22 @@ Cm.drawNode = function(t, e, r) { }; var tt, He, kt, st, Ze = We.length; for (He = We[Ze - 1], tt = 0; tt < Ze; tt++) - kt = We[tt % Ze], st = We[(tt + 1) % Ze], Ye[tt] = i$(He, kt, st, ot), He = kt, kt = st; + kt = We[tt % Ze], st = We[(tt + 1) % Ze], Ye[tt] = t$(He, kt, st, ot), He = kt, kt = st; a.drawRoundPolygonPath(Te || t, fe.x + Ke, fe.y + je, o * xe, l * ke, Me, Ye); } else if (["roundrectangle", "round-rectangle"].includes(de)) ne = ne === "auto" ? R0(Ce, Oe) : ne, a.drawRoundRectanglePath(Te || t, fe.x, fe.y, Ce, Oe, ne + (ge + V + Q) / 2); else if (["cutrectangle", "cut-rectangle"].includes(de)) - ne = ne === "auto" ? WP() : ne, a.drawCutRectanglePath(Te || t, fe.x, fe.y, Ce, Oe, null, ne + (ge + V + Q) / 4); + ne = ne === "auto" ? qP() : ne, a.drawCutRectanglePath(Te || t, fe.x, fe.y, Ce, Oe, null, ne + (ge + V + Q) / 4); else if (["bottomroundrectangle", "bottom-round-rectangle"].includes(de)) ne = ne === "auto" ? R0(Ce, Oe) : ne, a.drawBottomRoundRectanglePath(Te || t, fe.x, fe.y, Ce, Oe, ne + (ge + V + Q) / 2); else if (de === "barrel") a.drawBarrelPath(Te || t, fe.x, fe.y, Ce, Oe); else if (de.startsWith("polygon") || ["rhomboid", "right-rhomboid", "round-tag", "tag", "vee"].includes(de)) { var dt = (ge + V + Q) / o; - Me = hS(fS(Me, dt)), a.drawPolygonPath(Te || t, fe.x, fe.y, o, l, Me); + Me = uS(hS(Me, dt)), a.drawPolygonPath(Te || t, fe.x, fe.y, o, l, Me); } else { var zt = (ge + V + Q) / o; - Me = hS(fS(Me, -zt)), a.drawPolygonPath(Te || t, fe.x, fe.y, o, l, Me); + Me = uS(hS(Me, -zt)), a.drawPolygonPath(Te || t, fe.x, fe.y, o, l, Me); } if (p ? t.stroke(Te) : t.stroke(), G === "double") { t.lineWidth = ge / 3; @@ -109762,7 +109706,7 @@ Cm.drawNode = function(t, e, r) { p && t.translate(-f.x, -f.y), Qe(), p && t.translate(f.x, f.y), Z(), Ue(), ie(), K(), _e(d, !0), U(), Ae(), ce(_ !== 0 || A !== 0), _e(d, !1), Ee(), p && t.translate(-f.x, -f.y), De(), Ge(), r && t.translate(y.x1, y.y1); } }; -var mve = function(e) { +var pve = function(e) { if (!["overlay", "underlay"].includes(e)) throw new Error("Invalid state"); return function(r, n, i, s, a) { @@ -109779,8 +109723,8 @@ var mve = function(e) { } }; }; -Cm.drawNodeOverlay = mve("overlay"); -Cm.drawNodeUnderlay = mve("underlay"); +Cm.drawNodeOverlay = pve("overlay"); +Cm.drawNodeUnderlay = pve("underlay"); Cm.hasPie = function(t) { return t = t[0], t._private.hasPie; }; @@ -109795,7 +109739,7 @@ Cm.drawPie = function(t, e, r, n) { g === 0 || f >= 1 || f + y > 1 || (t.beginPath(), t.moveTo(a, o), t.arc(a, o, h, b, O), t.closePath(), this.colorFillStyle(t, m[0], m[1], m[2], v), t.fill(), f += y); } }; -var bo = {}, Ksr = 100; +var bo = {}, Zsr = 100; bo.getPixelRatio = function() { var t = this.data.contexts[0]; if (this.forcedPixelRatio != null) @@ -109932,7 +109876,7 @@ bo.renderTo = function(t, e, r, n) { }); }; bo.render = function(t) { - t = t || ame(); + t = t || ime(); var e = t.forcedContext, r = t.drawAllLayers, n = t.drawOnlyNodeLayer, i = t.forcedZoom, s = t.forcedPan, a = this, o = t.forcedPxRatio === void 0 ? this.getPixelRatio() : t.forcedPxRatio, l = a.cy, u = a.data, h = u.canvasNeedsRedraw, f = a.textureOnViewport && !e && (a.pinching || a.hoverData.dragging || a.swipePanning || a.data.wheelZooming), d = t.motionBlur !== void 0 ? t.motionBlur : a.motionBlur, p = a.motionBlurPxRatio, g = l.hasCompoundNodes(), m = a.hoverData.draggingEles, v = !!(a.hoverData.selecting || a.touchData.selecting); d = d && !e && a.motionBlurEnabled && !v; var y = d; @@ -110038,7 +109982,7 @@ bo.render = function(t) { } a.prevViewport = T, a.clearingMotionBlur && (a.clearingMotionBlur = !1, a.motionBlurCleared = !0, a.motionBlur = !0), d && (a.motionBlurTimeout = setTimeout(function() { a.motionBlurTimeout = null, a.clearedForMotionBlur[a.NODE] = !1, a.clearedForMotionBlur[a.DRAG] = !1, a.motionBlur = !1, a.clearingMotionBlur = !f, a.mbFrames = 0, h[a.NODE] = !0, h[a.DRAG] = !0, a.redraw(); - }, Ksr)), e || l.emit("render"); + }, Zsr)), e || l.emit("render"); }; var Hf = {}; Hf.drawPolygonPath = function(t, e, r, n, i, s) { @@ -110050,7 +109994,7 @@ Hf.drawPolygonPath = function(t, e, r, n, i, s) { }; Hf.drawRoundPolygonPath = function(t, e, r, n, i, s, a) { a.forEach(function(o) { - return ive(t, o); + return rve(t, o); }), t.closePath(); }; Hf.drawRoundRectanglePath = function(t, e, r, n, i, s) { @@ -110062,22 +110006,22 @@ Hf.drawBottomRoundRectanglePath = function(t, e, r, n, i, s) { t.beginPath && t.beginPath(), t.moveTo(e, r - o), t.lineTo(e + a, r - o), t.lineTo(e + a, r), t.arcTo(e + a, r + o, e, r + o, l), t.arcTo(e - a, r + o, e - a, r, l), t.lineTo(e - a, r - o), t.lineTo(e, r - o), t.closePath(); }; Hf.drawCutRectanglePath = function(t, e, r, n, i, s, a) { - var o = n / 2, l = i / 2, u = a === "auto" ? WP() : a; + var o = n / 2, l = i / 2, u = a === "auto" ? qP() : a; t.beginPath && t.beginPath(), t.moveTo(e - o + u, r - l), t.lineTo(e + o - u, r - l), t.lineTo(e + o, r - l + u), t.lineTo(e + o, r + l - u), t.lineTo(e + o - u, r + l), t.lineTo(e - o + u, r + l), t.lineTo(e - o, r + l - u), t.lineTo(e - o, r - l + u), t.closePath(); }; Hf.drawBarrelPath = function(t, e, r, n, i) { - var s = n / 2, a = i / 2, o = e - s, l = e + s, u = r - a, h = r + a, f = sR(n, i), d = f.widthOffset, p = f.heightOffset, g = f.ctrlPtOffsetPct * d; + var s = n / 2, a = i / 2, o = e - s, l = e + s, u = r - a, h = r + a, f = rR(n, i), d = f.widthOffset, p = f.heightOffset, g = f.ctrlPtOffsetPct * d; t.beginPath && t.beginPath(), t.moveTo(o, u + p), t.lineTo(o, h - p), t.quadraticCurveTo(o + g, h, o + d, h), t.lineTo(l - d, h), t.quadraticCurveTo(l - g, h, l, h - p), t.lineTo(l, u + p), t.quadraticCurveTo(l - g, u, l - d, u), t.lineTo(o + d, u), t.quadraticCurveTo(o + g, u, o, u + p), t.closePath(); }; -var GX = Math.sin(0), HX = Math.cos(0), vR = {}, yR = {}, vve = Math.PI / 40; -for (var wp = 0 * Math.PI; wp < 2 * Math.PI; wp += vve) - vR[wp] = Math.sin(wp), yR[wp] = Math.cos(wp); +var YX = Math.sin(0), QX = Math.cos(0), pR = {}, gR = {}, gve = Math.PI / 40; +for (var wp = 0 * Math.PI; wp < 2 * Math.PI; wp += gve) + pR[wp] = Math.sin(wp), gR[wp] = Math.cos(wp); Hf.drawEllipsePath = function(t, e, r, n, i) { if (t.beginPath && t.beginPath(), t.ellipse) t.ellipse(e, r, n / 2, i / 2, 0, 0, 2 * Math.PI); else - for (var s, a, o = n / 2, l = i / 2, u = 0 * Math.PI; u < 2 * Math.PI; u += vve) - s = e - o * vR[u] * GX + o * yR[u] * HX, a = r + l * yR[u] * GX + l * vR[u] * HX, u === 0 ? t.moveTo(s, a) : t.lineTo(s, a); + for (var s, a, o = n / 2, l = i / 2, u = 0 * Math.PI; u < 2 * Math.PI; u += gve) + s = e - o * pR[u] * YX + o * gR[u] * QX, a = r + l * gR[u] * YX + l * pR[u] * QX, u === 0 ? t.moveTo(s, a) : t.lineTo(s, a); t.closePath(); }; var tw = {}; @@ -110113,18 +110057,18 @@ tw.bufferCanvasImage = function(t) { } return d; }; -function Jsr(t, e) { +function jsr(t, e) { for (var r = atob(t), n = new ArrayBuffer(r.length), i = new Uint8Array(n), s = 0; s < r.length; s++) i[s] = r.charCodeAt(s); return new Blob([n], { type: e }); } -function XX(t) { +function WX(t) { var e = t.indexOf(","); return t.substr(e + 1); } -function yve(t, e, r) { +function mve(t, e, r) { var n = function() { return e.toDataURL(r, t.quality); }; @@ -110140,22 +110084,22 @@ function yve(t, e, r) { } }); case "blob": - return Jsr(XX(n()), r); + return jsr(WX(n()), r); case "base64": - return XX(n()); + return WX(n()); case "base64uri": default: return n(); } } tw.png = function(t) { - return yve(t, this.bufferCanvasImage(t), "image/png"); + return mve(t, this.bufferCanvasImage(t), "image/png"); }; tw.jpg = function(t) { - return yve(t, this.bufferCanvasImage(t), "image/jpeg"); + return mve(t, this.bufferCanvasImage(t), "image/jpeg"); }; -var bve = {}; -bve.nodeShapeImpl = function(t, e, r, n, i, s, a, o) { +var vve = {}; +vve.nodeShapeImpl = function(t, e, r, n, i, s, a, o) { switch (t) { case "ellipse": return this.drawEllipsePath(e, r, n, i, s); @@ -110176,7 +110120,7 @@ bve.nodeShapeImpl = function(t, e, r, n, i, s, a, o) { return this.drawBarrelPath(e, r, n, i, s); } }; -var ear = xve, Rr = xve.prototype; +var Ksr = yve, Rr = yve.prototype; Rr.CANVAS_LAYERS = 3; Rr.SELECT_BOX = 0; Rr.DRAG = 1; @@ -110185,7 +110129,7 @@ Rr.BUFFER_COUNT = 3; Rr.TEXTURE_BUFFER = 0; Rr.MOTIONBLUR_BUFFER_NODE = 1; Rr.MOTIONBLUR_BUFFER_DRAG = 2; -function xve(t) { +function yve(t) { var e = this, r = e.cy.window(), n = r.document; e.data = { canvases: new Array(Rr.CANVAS_LAYERS), @@ -110207,7 +110151,7 @@ function xve(t) { "-webkit-tap-highlight-color": "rgba(0,0,0,0)", "outline-style": "none" }; - VKt() && (l["-ms-touch-action"] = "none", l["touch-action"] = "none"); + FKt() && (l["-ms-touch-action"] = "none", l["touch-action"] = "none"); for (var u = 0; u < Rr.CANVAS_LAYERS; u++) { var h = e.data.canvases[u] = n.createElement("canvas"); e.data.contexts[u] = h.getContext("2d"), Object.keys(l).forEach(function(ie) { @@ -110334,7 +110278,7 @@ function xve(t) { getRotationPoint: I, getRotationOffset: F, isVisible: _ - }), Q = e.data.lyrTxrCache = new dve(e); + }), Q = e.data.lyrTxrCache = new hve(e); e.onUpdateEleCalcs(function(U, Z) { V.invalidateElements(Z), Y.invalidateElements(Z), G.invalidateElements(Z), ee.invalidateElements(Z), Q.invalidateElements(Z); for (var W = 0; W < Z.length; W++) { @@ -110362,14 +110306,14 @@ Rr.redrawHint = function(t, e) { break; } }; -var tar = typeof Path2D < "u"; +var Jsr = typeof Path2D < "u"; Rr.path2dEnabled = function(t) { if (t === void 0) return this.pathsEnabled; this.pathsEnabled = !!t; }; Rr.usePaths = function() { - return tar && this.pathsEnabled; + return Jsr && this.pathsEnabled; }; Rr.setImgSmoothing = function(t, e) { t.imageSmoothingEnabled != null ? t.imageSmoothingEnabled = e : (t.webkitImageSmoothingEnabled = e, t.mozImageSmoothingEnabled = e, t.msImageSmoothingEnabled = e); @@ -110387,26 +110331,26 @@ Rr.makeOffscreenCanvas = function(t, e) { } return r; }; -[pve, su, dh, a$, ap, Cm, bo, Hf, tw, bve].forEach(function(t) { +[fve, su, dh, n$, ap, Cm, bo, Hf, tw, vve].forEach(function(t) { Kt(Rr, t); }); -var rar = [{ +var ear = [{ name: "null", - impl: tve + impl: Jme }, { name: "base", - impl: hve + impl: cve }, { name: "canvas", - impl: ear -}], nar = [{ + impl: Ksr +}], tar = [{ type: "layout", - extensions: csr + extensions: osr }, { type: "renderer", - extensions: rar -}], wve = {}, Ove = {}; -function kve(t, e, r) { + extensions: ear +}], bve = {}, xve = {}; +function wve(t, e, r) { var n = r, i = function(L) { Yr("Can not register `" + e + "` for `" + t + "` since `" + L + "` already exists in the prototype and can not be overridden"); }; @@ -110462,7 +110406,7 @@ function kve(t, e, r) { }; Kt(a, { createEmitter: function() { - return this._private.emitter = new ZC(d, this), this; + return this._private.emitter = new HC(d, this), this; }, emitter: function() { return this._private.emitter; @@ -110487,7 +110431,7 @@ function kve(t, e, r) { } }), Vr.eventAliasesOn(a), n = s; } else if (t === "renderer" && e !== "null" && e !== "base") { - var p = Sve("renderer", "base"), g = p.prototype, m = r, v = r.prototype, y = function() { + var p = Ove("renderer", "base"), g = p.prototype, m = r, v = r.prototype, y = function() { p.apply(this, arguments), m.apply(this, arguments); }, b = y.prototype; for (var w in g) { @@ -110505,53 +110449,53 @@ function kve(t, e, r) { }), n = y; } else if (t === "__proto__" || t === "constructor" || t === "prototype") return Qn(t + " is an illegal type to be registered, possibly lead to prototype pollutions"); - return X1e({ - map: wve, + return G1e({ + map: bve, keys: [t, e], value: n }); } -function Sve(t, e) { - return Z1e({ - map: wve, +function Ove(t, e) { + return H1e({ + map: bve, keys: [t, e] }); } -function iar(t, e, r, n, i) { - return X1e({ - map: Ove, +function rar(t, e, r, n, i) { + return G1e({ + map: xve, keys: [t, e, r, n], value: i }); } -function sar(t, e, r, n) { - return Z1e({ - map: Ove, +function nar(t, e, r, n) { + return H1e({ + map: xve, keys: [t, e, r, n] }); } -var bR = function() { +var mR = function() { if (arguments.length === 2) - return Sve.apply(null, arguments); + return Ove.apply(null, arguments); if (arguments.length === 3) - return kve.apply(null, arguments); + return wve.apply(null, arguments); if (arguments.length === 4) - return sar.apply(null, arguments); + return nar.apply(null, arguments); if (arguments.length === 5) - return iar.apply(null, arguments); + return rar.apply(null, arguments); Qn("Invalid extension access syntax"); }; -rb.prototype.extension = bR; -nar.forEach(function(t) { +rb.prototype.extension = mR; +tar.forEach(function(t) { t.extensions.forEach(function(e) { - kve(t.type, e.name, e.impl); + wve(t.type, e.name, e.impl); }); }); -var Tve = function t() { +var kve = function t() { if (!(this instanceof t)) return new t(); this.length = 0; -}, N0 = Tve.prototype; +}, N0 = kve.prototype; N0.instanceString = function() { return "stylesheet"; }; @@ -110573,7 +110517,7 @@ N0.css = function(t, e) { for (var n = t, i = Object.keys(n), s = 0; s < i.length; s++) { var a = i[s], o = n[a]; if (o != null) { - var l = Fs.properties[a] || Fs.properties[zC(a)]; + var l = Fs.properties[a] || Fs.properties[BC(a)]; if (l != null) { var u = l.name, h = o; this[r].properties.push({ @@ -110601,24 +110545,24 @@ N0.appendToStyle = function(t) { } return t; }; -var aar = "3.30.2", Uc = function(e) { +var iar = "3.30.2", Uc = function(e) { if (e === void 0 && (e = {}), Ar(e)) return new rb(e); if (qt(e)) - return bR.apply(bR, arguments); + return mR.apply(mR, arguments); }; Uc.use = function(t) { var e = Array.prototype.slice.call(arguments, 1); return e.unshift(Uc), t.apply(null, e), this; }; Uc.warnings = function(t) { - return ime(t); + return rme(t); }; -Uc.version = aar; -Uc.stylesheet = Uc.Stylesheet = Tve; -var Cve = { exports: {} }, vA = { exports: {} }, yA = { exports: {} }, ZX; -function oar() { - return ZX || (ZX = 1, function(t, e) { +Uc.version = iar; +Uc.stylesheet = Uc.Stylesheet = kve; +var Sve = { exports: {} }, gA = { exports: {} }, mA = { exports: {} }, GX; +function sar() { + return GX || (GX = 1, function(t, e) { (function(n, i) { t.exports = i(); })(qc, function() { @@ -112144,13 +112088,13 @@ function oar() { } ]); }); - }(yA)), yA.exports; + }(mA)), mA.exports; } -var jX; -function lar() { - return jX || (jX = 1, function(t, e) { +var HX; +function aar() { + return HX || (HX = 1, function(t, e) { (function(n, i) { - t.exports = i(oar()); + t.exports = i(sar()); })(qc, function(r) { return function(n) { var i = {}; @@ -112664,11 +112608,11 @@ function lar() { } ]); }); - }(vA)), vA.exports; + }(gA)), gA.exports; } (function(t, e) { (function(n, i) { - t.exports = i(lar()); + t.exports = i(aar()); })(qc, function(r) { return function(n) { var i = {}; @@ -112833,9 +112777,9 @@ function lar() { } ]); }); -})(Cve); -const car = /* @__PURE__ */ $Z(Cve.exports); -var xR = function() { +})(Sve); +const oar = /* @__PURE__ */ NZ(Sve.exports); +var vR = function() { var t = /* @__PURE__ */ x(function(O, S, C, T) { for (C = C || {}, T = O.length; T--; C[O[T]] = S) ; @@ -113221,15 +113165,15 @@ Expecting ` + ae.join(", ") + ", got '" + (this.terminals_[ee] || ee) + "'" : se } return x(w, "Parser"), w.prototype = y, y.Parser = w, new w(); }(); -xR.parser = xR; -var uar = xR, Al = [], Eve = 0, o$ = {}, har = /* @__PURE__ */ x(() => { - Al = [], Eve = 0, o$ = {}; -}, "clear"), far = /* @__PURE__ */ x(function(t) { +vR.parser = vR; +var lar = vR, Al = [], Tve = 0, i$ = {}, car = /* @__PURE__ */ x(() => { + Al = [], Tve = 0, i$ = {}; +}, "clear"), uar = /* @__PURE__ */ x(function(t) { for (let e = Al.length - 1; e >= 0; e--) if (Al[e].level < t) return Al[e]; return null; -}, "getParent"), dar = /* @__PURE__ */ x(() => Al.length > 0 ? Al[0] : null, "getMindmap"), par = /* @__PURE__ */ x((t, e, r, n) => { +}, "getParent"), har = /* @__PURE__ */ x(() => Al.length > 0 ? Al[0] : null, "getMindmap"), far = /* @__PURE__ */ x((t, e, r, n) => { var l, u, h, f; X.info("addNode", t, e, r, n); const i = be(); @@ -113241,7 +113185,7 @@ var uar = xR, Al = [], Eve = 0, o$ = {}, har = /* @__PURE__ */ x(() => { s *= 2; } const a = { - id: Eve++, + id: Tve++, nodeId: ni(e, i), level: t, descr: ni(r, i), @@ -113249,7 +113193,7 @@ var uar = xR, Al = [], Eve = 0, o$ = {}, har = /* @__PURE__ */ x(() => { children: [], width: (f = (h = i.mindmap) == null ? void 0 : h.maxNodeWidth) != null ? f : jr.mindmap.maxNodeWidth, padding: s - }, o = far(t); + }, o = uar(t); if (o) o.children.push(a), Al.push(a); else if (Al.length === 0) @@ -113267,7 +113211,7 @@ var uar = xR, Al = [], Eve = 0, o$ = {}, har = /* @__PURE__ */ x(() => { CLOUD: 4, BANG: 5, HEXAGON: 6 -}, gar = /* @__PURE__ */ x((t, e) => { +}, dar = /* @__PURE__ */ x((t, e) => { switch (X.debug("In get type", t, e), t) { case "[": return Oi.RECT; @@ -113284,14 +113228,14 @@ var uar = xR, Al = [], Eve = 0, o$ = {}, har = /* @__PURE__ */ x(() => { default: return Oi.DEFAULT; } -}, "getType"), mar = /* @__PURE__ */ x((t, e) => { - o$[t] = e; -}, "setElementForId"), yar = /* @__PURE__ */ x((t) => { +}, "getType"), par = /* @__PURE__ */ x((t, e) => { + i$[t] = e; +}, "setElementForId"), gar = /* @__PURE__ */ x((t) => { if (!t) return; const e = be(), r = Al[Al.length - 1]; t.icon && (r.icon = ni(t.icon, e)), t.class && (r.class = ni(t.class, e)); -}, "decorateNode"), bar = /* @__PURE__ */ x((t) => { +}, "decorateNode"), mar = /* @__PURE__ */ x((t) => { switch (t) { case Oi.DEFAULT: return "no-border"; @@ -113310,25 +113254,25 @@ var uar = xR, Al = [], Eve = 0, o$ = {}, har = /* @__PURE__ */ x(() => { default: return "no-border"; } -}, "type2Str"), xar = /* @__PURE__ */ x(() => X, "getLogger"), war = /* @__PURE__ */ x((t) => o$[t], "getElementById"), Oar = { - clear: har, - addNode: par, - getMindmap: dar, +}, "type2Str"), yar = /* @__PURE__ */ x(() => X, "getLogger"), bar = /* @__PURE__ */ x((t) => i$[t], "getElementById"), xar = { + clear: car, + addNode: far, + getMindmap: har, nodeType: Oi, - getType: gar, - setElementForId: mar, - decorateNode: yar, - type2Str: bar, - getLogger: xar, - getElementById: war -}, kar = Oar, Sar = 12, Tar = /* @__PURE__ */ x(function(t, e, r, n) { + getType: dar, + setElementForId: par, + decorateNode: gar, + type2Str: mar, + getLogger: yar, + getElementById: bar +}, war = xar, Oar = 12, kar = /* @__PURE__ */ x(function(t, e, r, n) { e.append("path").attr("id", "node-" + r.id).attr("class", "node-bkg node-" + t.type2Str(r.type)).attr( "d", `M0 ${r.height - 5} v${-r.height + 2 * 5} q0,-5 5,-5 h${r.width - 2 * 5} q5,0 5,5 v${r.height - 5} H0 Z` ), e.append("line").attr("class", "node-line-" + n).attr("x1", 0).attr("y1", r.height).attr("x2", r.width).attr("y2", r.height); -}, "defaultBkg"), Car = /* @__PURE__ */ x(function(t, e, r) { +}, "defaultBkg"), Sar = /* @__PURE__ */ x(function(t, e, r) { e.append("rect").attr("id", "node-" + r.id).attr("class", "node-bkg node-" + t.type2Str(r.type)).attr("height", r.height).attr("width", r.width); -}, "rectBkg"), Ear = /* @__PURE__ */ x(function(t, e, r) { +}, "rectBkg"), Tar = /* @__PURE__ */ x(function(t, e, r) { const n = r.width, i = r.height, s = 0.15 * n, a = 0.25 * n, o = 0.35 * n, l = 0.2 * n; e.append("path").attr("id", "node-" + r.id).attr("class", "node-bkg node-" + t.type2Str(r.type)).attr( "d", @@ -113348,7 +113292,7 @@ var uar = xR, Al = [], Eve = 0, o$ = {}, har = /* @__PURE__ */ x(() => { H0 V0 Z` ); -}, "cloudBkg"), _ar = /* @__PURE__ */ x(function(t, e, r) { +}, "cloudBkg"), Car = /* @__PURE__ */ x(function(t, e, r) { const n = r.width, i = r.height, s = 0.15 * n; e.append("path").attr("id", "node-" + r.id).attr("class", "node-bkg node-" + t.type2Str(r.type)).attr( "d", @@ -113372,10 +113316,10 @@ var uar = xR, Al = [], Eve = 0, o$ = {}, har = /* @__PURE__ */ x(() => { H0 V0 Z` ); -}, "bangBkg"), Aar = /* @__PURE__ */ x(function(t, e, r) { +}, "bangBkg"), Ear = /* @__PURE__ */ x(function(t, e, r) { e.append("circle").attr("id", "node-" + r.id).attr("class", "node-bkg node-" + t.type2Str(r.type)).attr("r", r.width / 2); }, "circleBkg"); -function _ve(t, e, r, n, i) { +function Cve(t, e, r, n, i) { return t.insert("polygon", ":first-child").attr( "points", n.map(function(s) { @@ -113383,8 +113327,8 @@ function _ve(t, e, r, n, i) { }).join(" ") ).attr("transform", "translate(" + (i.width - e) / 2 + ", " + r + ")"); } -x(_ve, "insertPolygonShape"); -var Lar = /* @__PURE__ */ x(function(t, e, r) { +x(Cve, "insertPolygonShape"); +var _ar = /* @__PURE__ */ x(function(t, e, r) { const n = r.height, s = n / 4, a = r.width - r.padding + 2 * s, o = [ { x: s, y: 0 }, { x: a - s, y: 0 }, @@ -113393,11 +113337,11 @@ var Lar = /* @__PURE__ */ x(function(t, e, r) { { x: s, y: -n }, { x: 0, y: -n / 2 } ]; - _ve(e, a, n, o, r); -}, "hexagonBkg"), Rar = /* @__PURE__ */ x(function(t, e, r) { + Cve(e, a, n, o, r); +}, "hexagonBkg"), Aar = /* @__PURE__ */ x(function(t, e, r) { e.append("rect").attr("id", "node-" + r.id).attr("class", "node-bkg node-" + t.type2Str(r.type)).attr("height", r.height).attr("rx", r.padding).attr("ry", r.padding).attr("width", r.width); -}, "roundedRectBkg"), Mar = /* @__PURE__ */ x(async function(t, e, r, n, i) { - const s = i.htmlLabels, a = n % (Sar - 1), o = e.append("g"); +}, "roundedRectBkg"), Lar = /* @__PURE__ */ x(async function(t, e, r, n, i) { + const s = i.htmlLabels, a = n % (Oar - 1), o = e.append("g"); r.section = a; let l = "section-" + a; a < 0 && (l += " section-root"), o.attr("class", (r.class ? r.class + " " : "") + "mindmap-node " + l); @@ -113439,42 +113383,42 @@ var Lar = /* @__PURE__ */ x(function(t, e, r) { } switch (r.type) { case t.nodeType.DEFAULT: - Tar(t, u, r, a); + kar(t, u, r, a); break; case t.nodeType.ROUNDED_RECT: - Rar(t, u, r, a); + Aar(t, u, r, a); break; case t.nodeType.RECT: - Car(t, u, r, a); + Sar(t, u, r, a); break; case t.nodeType.CIRCLE: - u.attr("transform", "translate(" + r.width / 2 + ", " + +r.height / 2 + ")"), Aar(t, u, r, a); + u.attr("transform", "translate(" + r.width / 2 + ", " + +r.height / 2 + ")"), Ear(t, u, r, a); break; case t.nodeType.CLOUD: - Ear(t, u, r, a); + Tar(t, u, r, a); break; case t.nodeType.BANG: - _ar(t, u, r, a); + Car(t, u, r, a); break; case t.nodeType.HEXAGON: - Lar(t, u, r, a); + _ar(t, u, r, a); break; } return t.setElementForId(r.id, o), r.height; -}, "drawNode"), Dar = /* @__PURE__ */ x(function(t, e) { +}, "drawNode"), Rar = /* @__PURE__ */ x(function(t, e) { const r = t.getElementById(e.id), n = e.x || 0, i = e.y || 0; r.attr("transform", "translate(" + n + "," + i + ")"); }, "positionNode"); -Uc.use(car); -async function l$(t, e, r, n, i) { - await Mar(t, e, r, n, i), r.children && await Promise.all( +Uc.use(oar); +async function s$(t, e, r, n, i) { + await Lar(t, e, r, n, i), r.children && await Promise.all( r.children.map( - (s, a) => l$(t, e, s, n < 0 ? a : n, i) + (s, a) => s$(t, e, s, n < 0 ? a : n, i) ) ); } -x(l$, "drawNodes"); -function Ave(t, e) { +x(s$, "drawNodes"); +function Eve(t, e) { e.edges().map((r, n) => { const i = r.data(); if (r[0]._private.bodyBounds) { @@ -113486,8 +113430,8 @@ function Ave(t, e) { } }); } -x(Ave, "drawEdges"); -function c$(t, e, r, n) { +x(Eve, "drawEdges"); +function a$(t, e, r, n) { e.add({ group: "nodes", data: { @@ -113505,7 +113449,7 @@ function c$(t, e, r, n) { y: t.y } }), t.children && t.children.forEach((i) => { - c$(i, e, r, n + 1), e.add({ + a$(i, e, r, n + 1), e.add({ group: "edges", data: { id: `${t.id}_${i.id}`, @@ -113517,8 +113461,8 @@ function c$(t, e, r, n) { }); }); } -x(c$, "addNodes"); -function Lve(t, e) { +x(a$, "addNodes"); +function _ve(t, e) { return new Promise((r) => { const n = et("body").append("div").attr("id", "cy").attr("style", "display:none"), i = Uc({ container: document.getElementById("cy"), @@ -113531,7 +113475,7 @@ function Lve(t, e) { } ] }); - n.remove(), c$(t, i, e, 0), i.nodes().forEach(function(s) { + n.remove(), a$(t, i, e, 0), i.nodes().forEach(function(s) { s.layoutDimensions = () => { const a = s.data(); return { w: a.width, h: a.height }; @@ -113546,11 +113490,11 @@ function Lve(t, e) { }); }); } -x(Lve, "layoutMindmap"); -function Rve(t, e) { +x(_ve, "layoutMindmap"); +function Ave(t, e) { e.nodes().map((r, n) => { const i = r.data(); - i.x = r.position().x, i.y = r.position().y, Dar(t, i); + i.x = r.position().x, i.y = r.position().y, Rar(t, i); const s = t.getElementById(i.nodeId); X.info("Id:", n, "Position: (", r.position().x, ", ", r.position().y, ")", i), s.attr( "transform", @@ -113558,8 +113502,8 @@ function Rve(t, e) { ), s.attr("attr", `apa-${n})`); }); } -x(Rve, "positionNodes"); -var Nar = /* @__PURE__ */ x(async (t, e, r, n) => { +x(Ave, "positionNodes"); +var Mar = /* @__PURE__ */ x(async (t, e, r, n) => { var f, d, p, g; X.debug(`Rendering mindmap diagram ` + t); @@ -113571,17 +113515,17 @@ var Nar = /* @__PURE__ */ x(async (t, e, r, n) => { const o = Z0(e), l = o.append("g"); l.attr("class", "mindmap-edges"); const u = o.append("g"); - u.attr("class", "mindmap-nodes"), await l$(i, u, s, -1, a); - const h = await Lve(s, a); - Ave(l, h), Rve(i, h), Z1( + u.attr("class", "mindmap-nodes"), await s$(i, u, s, -1, a); + const h = await _ve(s, a); + Eve(l, h), Ave(i, h), Z1( void 0, o, (d = (f = a.mindmap) == null ? void 0 : f.padding) != null ? d : jr.mindmap.padding, (g = (p = a.mindmap) == null ? void 0 : p.useMaxWidth) != null ? g : jr.mindmap.useMaxWidth ); -}, "draw"), Iar = { - draw: Nar -}, Par = /* @__PURE__ */ x((t) => { +}, "draw"), Dar = { + draw: Mar +}, Nar = /* @__PURE__ */ x((t) => { let e = ""; for (let r = 0; r < t.THEME_COLOR_LIMIT; r++) t["lineColor" + r] = t["lineColor" + r] || t["cScaleInv" + r], z0(t["lineColor" + r]) ? t["lineColor" + r] = Ft(t["lineColor" + r], 20) : t["lineColor" + r] = Qt(t["lineColor" + r], 20); @@ -113618,11 +113562,11 @@ var Nar = /* @__PURE__ */ x(async (t, e, r, n) => { `; } return e; -}, "genSections"), $ar = /* @__PURE__ */ x((t) => ` +}, "genSections"), Iar = /* @__PURE__ */ x((t) => ` .edge { stroke-width: 3; } - ${Par(t)} + ${Nar(t)} .section-root rect, .section-root path, .section-root circle, .section-root polygon { fill: ${t.git0}; } @@ -113645,17 +113589,17 @@ var Nar = /* @__PURE__ */ x(async (t, e, r, n) => { dominant-baseline: middle; text-align: center; } -`, "getStyles"), Bar = $ar, Far = { - db: kar, - renderer: Iar, - parser: uar, - styles: Bar +`, "getStyles"), Par = Iar, $ar = { + db: war, + renderer: Dar, + parser: lar, + styles: Par }; -const zar = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +const Bar = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - diagram: Far + diagram: $ar }, Symbol.toStringTag, { value: "Module" })); -function KX(t, e) { +function XX(t, e) { let r; if (e === void 0) for (const n of t) @@ -113667,7 +113611,7 @@ function KX(t, e) { } return r; } -function Mve(t, e) { +function Lve(t, e) { let r; if (e === void 0) for (const n of t) @@ -113679,7 +113623,7 @@ function Mve(t, e) { } return r; } -function bA(t, e) { +function vA(t, e) { let r = 0; if (e === void 0) for (let n of t) @@ -113691,54 +113635,54 @@ function bA(t, e) { } return r; } -function Var(t) { +function Far(t) { return t.target.depth; } -function Uar(t) { +function zar(t) { return t.depth; } -function qar(t, e) { +function Var(t, e) { return e - 1 - t.height; } -function Dve(t, e) { +function Rve(t, e) { return t.sourceLinks.length ? t.depth : e - 1; } -function Yar(t) { - return t.targetLinks.length ? t.depth : t.sourceLinks.length ? Mve(t.sourceLinks, Var) - 1 : 0; +function Uar(t) { + return t.targetLinks.length ? t.depth : t.sourceLinks.length ? Lve(t.sourceLinks, Far) - 1 : 0; } -function HO(t) { +function GO(t) { return function() { return t; }; } -function JX(t, e) { - return bS(t.source, e.source) || t.index - e.index; +function ZX(t, e) { + return yS(t.source, e.source) || t.index - e.index; } -function eZ(t, e) { - return bS(t.target, e.target) || t.index - e.index; +function jX(t, e) { + return yS(t.target, e.target) || t.index - e.index; } -function bS(t, e) { +function yS(t, e) { return t.y0 - e.y0; } -function xA(t) { +function yA(t) { return t.value; } -function Qar(t) { +function qar(t) { return t.index; } -function War(t) { +function Yar(t) { return t.nodes; } -function Gar(t) { +function Qar(t) { return t.links; } -function tZ(t, e) { +function KX(t, e) { const r = t.get(e); if (!r) throw new Error("missing: " + e); return r; } -function rZ({ nodes: t }) { +function JX({ nodes: t }) { for (const e of t) { let r = e.y0, n = r; for (const i of e.sourceLinks) @@ -113747,18 +113691,18 @@ function rZ({ nodes: t }) { i.y1 = n + i.width / 2, n += i.width; } } -function Har() { - let t = 0, e = 0, r = 1, n = 1, i = 24, s = 8, a, o = Qar, l = Dve, u, h, f = War, d = Gar, p = 6; +function War() { + let t = 0, e = 0, r = 1, n = 1, i = 24, s = 8, a, o = qar, l = Rve, u, h, f = Yar, d = Qar, p = 6; function g() { const N = { nodes: f.apply(null, arguments), links: d.apply(null, arguments) }; - return m(N), v(N), y(N), b(N), S(N), rZ(N), N; + return m(N), v(N), y(N), b(N), S(N), JX(N), N; } g.update = function(N) { - return rZ(N), N; + return JX(N), N; }, g.nodeId = function(N) { - return arguments.length ? (o = typeof N == "function" ? N : HO(N), g) : o; + return arguments.length ? (o = typeof N == "function" ? N : GO(N), g) : o; }, g.nodeAlign = function(N) { - return arguments.length ? (l = typeof N == "function" ? N : HO(N), g) : l; + return arguments.length ? (l = typeof N == "function" ? N : GO(N), g) : l; }, g.nodeSort = function(N) { return arguments.length ? (u = N, g) : u; }, g.nodeWidth = function(N) { @@ -113766,9 +113710,9 @@ function Har() { }, g.nodePadding = function(N) { return arguments.length ? (s = a = +N, g) : s; }, g.nodes = function(N) { - return arguments.length ? (f = typeof N == "function" ? N : HO(N), g) : f; + return arguments.length ? (f = typeof N == "function" ? N : GO(N), g) : f; }, g.links = function(N) { - return arguments.length ? (d = typeof N == "function" ? N : HO(N), g) : d; + return arguments.length ? (d = typeof N == "function" ? N : GO(N), g) : d; }, g.linkSort = function(N) { return arguments.length ? (h = N, g) : h; }, g.size = function(N) { @@ -113785,7 +113729,7 @@ function Har() { for (const [D, P] of M.entries()) { P.index = D; let { source: F, target: B } = P; - typeof F != "object" && (F = P.source = tZ(I, F)), typeof B != "object" && (B = P.target = tZ(I, B)), F.sourceLinks.push(P), B.targetLinks.push(P); + typeof F != "object" && (F = P.source = KX(I, F)), typeof B != "object" && (B = P.target = KX(I, B)), F.sourceLinks.push(P), B.targetLinks.push(P); } if (h != null) for (const { sourceLinks: D, targetLinks: P } of N) @@ -113793,7 +113737,7 @@ function Har() { } function v({ nodes: N }) { for (const M of N) - M.value = M.fixedValue === void 0 ? Math.max(bA(M.sourceLinks, xA), bA(M.targetLinks, xA)) : M.fixedValue; + M.value = M.fixedValue === void 0 ? Math.max(vA(M.sourceLinks, yA), vA(M.targetLinks, yA)) : M.fixedValue; } function y({ nodes: N }) { const M = N.length; @@ -113824,7 +113768,7 @@ function Har() { } } function w({ nodes: N }) { - const M = KX(N, (P) => P.depth) + 1, I = (r - t - i) / (M - 1), D = new Array(M); + const M = XX(N, (P) => P.depth) + 1, I = (r - t - i) / (M - 1), D = new Array(M); for (const P of N) { const F = Math.max(0, Math.min(M - 1, Math.floor(l.call(null, P, M)))); P.layer = F, P.x0 = t + F * I, P.x1 = P.x0 + i, D[F] ? D[F].push(P) : D[F] = [P]; @@ -113835,7 +113779,7 @@ function Har() { return D; } function O(N) { - const M = Mve(N, (I) => (n - e - (I.length - 1) * a) / bA(I, xA)); + const M = Lve(N, (I) => (n - e - (I.length - 1) * a) / vA(I, yA)); for (const I of N) { let D = e; for (const P of I) { @@ -113853,7 +113797,7 @@ function Har() { } function S(N) { const M = w(N); - a = Math.min(s, (n - e) / (KX(M, (I) => I.length) - 1)), O(M); + a = Math.min(s, (n - e) / (XX(M, (I) => I.length) - 1)), O(M); for (let I = 0; I < p; ++I) { const D = Math.pow(0.99, I), P = Math.max(1 - D, (I + 1) / p); T(M, D, P), C(M, D, P); @@ -113873,7 +113817,7 @@ function Har() { let G = (V / Y - B.y0) * M; B.y0 += G, B.y1 += G, _(B); } - u === void 0 && F.sort(bS), L(F, I); + u === void 0 && F.sort(yS), L(F, I); } } function T(N, M, I) { @@ -113890,7 +113834,7 @@ function Har() { let G = (V / Y - B.y0) * M; B.y0 += G, B.y1 += G, _(B); } - u === void 0 && F.sort(bS), L(F, I); + u === void 0 && F.sort(yS), L(F, I); } } function L(N, M) { @@ -113912,15 +113856,15 @@ function Har() { function _({ sourceLinks: N, targetLinks: M }) { if (h === void 0) { for (const { source: { sourceLinks: I } } of M) - I.sort(eZ); + I.sort(jX); for (const { target: { targetLinks: I } } of N) - I.sort(JX); + I.sort(ZX); } } function A(N) { if (h === void 0) for (const { sourceLinks: M, targetLinks: I } of N) - M.sort(eZ), I.sort(JX); + M.sort(jX), I.sort(ZX); } function $(N, M) { let I = N.y0 - (N.sourceLinks.length - 1) * a / 2; @@ -113952,15 +113896,15 @@ function Har() { } return g; } -var wR = Math.PI, OR = 2 * wR, pd = 1e-6, Xar = OR - pd; -function kR() { +var yR = Math.PI, bR = 2 * yR, pd = 1e-6, Gar = bR - pd; +function xR() { this._x0 = this._y0 = this._x1 = this._y1 = null, this._ = ""; } -function Nve() { - return new kR(); +function Mve() { + return new xR(); } -kR.prototype = Nve.prototype = { - constructor: kR, +xR.prototype = Mve.prototype = { + constructor: xR, moveTo: function(t, e) { this._ += "M" + (this._x0 = this._x1 = +t) + "," + (this._y0 = this._y1 = +e); }, @@ -113987,7 +113931,7 @@ kR.prototype = Nve.prototype = { if (!(Math.abs(h * o - l * u) > pd) || !i) this._ += "L" + (this._x1 = t) + "," + (this._y1 = e); else { - var d = r - s, p = n - a, g = o * o + l * l, m = d * d + p * p, v = Math.sqrt(g), y = Math.sqrt(f), b = i * Math.tan((wR - Math.acos((g + f - m) / (2 * v * y))) / 2), w = b / y, O = b / v; + var d = r - s, p = n - a, g = o * o + l * l, m = d * d + p * p, v = Math.sqrt(g), y = Math.sqrt(f), b = i * Math.tan((yR - Math.acos((g + f - m) / (2 * v * y))) / 2), w = b / y, O = b / v; Math.abs(w - 1) > pd && (this._ += "L" + (t + w * u) + "," + (e + w * h)), this._ += "A" + i + "," + i + ",0,0," + +(h * d > u * p) + "," + (this._x1 = t + O * o) + "," + (this._y1 = e + O * l); } }, @@ -113996,7 +113940,7 @@ kR.prototype = Nve.prototype = { var a = r * Math.cos(n), o = r * Math.sin(n), l = t + a, u = e + o, h = 1 ^ s, f = s ? n - i : i - n; if (r < 0) throw new Error("negative radius: " + r); - this._x1 === null ? this._ += "M" + l + "," + u : (Math.abs(this._x1 - l) > pd || Math.abs(this._y1 - u) > pd) && (this._ += "L" + l + "," + u), r && (f < 0 && (f = f % OR + OR), f > Xar ? this._ += "A" + r + "," + r + ",0,1," + h + "," + (t - a) + "," + (e - o) + "A" + r + "," + r + ",0,1," + h + "," + (this._x1 = l) + "," + (this._y1 = u) : f > pd && (this._ += "A" + r + "," + r + ",0," + +(f >= wR) + "," + h + "," + (this._x1 = t + r * Math.cos(i)) + "," + (this._y1 = e + r * Math.sin(i)))); + this._x1 === null ? this._ += "M" + l + "," + u : (Math.abs(this._x1 - l) > pd || Math.abs(this._y1 - u) > pd) && (this._ += "L" + l + "," + u), r && (f < 0 && (f = f % bR + bR), f > Gar ? this._ += "A" + r + "," + r + ",0,1," + h + "," + (t - a) + "," + (e - o) + "A" + r + "," + r + ",0,1," + h + "," + (this._x1 = l) + "," + (this._y1 = u) : f > pd && (this._ += "A" + r + "," + r + ",0," + +(f >= yR) + "," + h + "," + (this._x1 = t + r * Math.cos(i)) + "," + (this._y1 = e + r * Math.sin(i)))); }, rect: function(t, e, r, n) { this._ += "M" + (this._x0 = this._x1 = +t) + "," + (this._y0 = this._y1 = +e) + "h" + +r + "v" + +n + "h" + -r + "Z"; @@ -114005,29 +113949,29 @@ kR.prototype = Nve.prototype = { return this._; } }; -function nZ(t) { +function eZ(t) { return function() { return t; }; } -function Zar(t) { +function Har(t) { return t[0]; } -function jar(t) { +function Xar(t) { return t[1]; } -var Kar = Array.prototype.slice; -function Jar(t) { +var Zar = Array.prototype.slice; +function jar(t) { return t.source; } -function eor(t) { +function Kar(t) { return t.target; } -function tor(t) { - var e = Jar, r = eor, n = Zar, i = jar, s = null; +function Jar(t) { + var e = jar, r = Kar, n = Har, i = Xar, s = null; function a() { - var o, l = Kar.call(arguments), u = e.apply(this, l), h = r.apply(this, l); - if (s || (s = o = Nve()), t(s, +n.apply(this, (l[0] = u, l)), +i.apply(this, l), +n.apply(this, (l[0] = h, l)), +i.apply(this, l)), o) + var o, l = Zar.call(arguments), u = e.apply(this, l), h = r.apply(this, l); + if (s || (s = o = Mve()), t(s, +n.apply(this, (l[0] = u, l)), +i.apply(this, l), +n.apply(this, (l[0] = h, l)), +i.apply(this, l)), o) return s = null, o + "" || null; } return a.source = function(o) { @@ -114035,29 +113979,29 @@ function tor(t) { }, a.target = function(o) { return arguments.length ? (r = o, a) : r; }, a.x = function(o) { - return arguments.length ? (n = typeof o == "function" ? o : nZ(+o), a) : n; + return arguments.length ? (n = typeof o == "function" ? o : eZ(+o), a) : n; }, a.y = function(o) { - return arguments.length ? (i = typeof o == "function" ? o : nZ(+o), a) : i; + return arguments.length ? (i = typeof o == "function" ? o : eZ(+o), a) : i; }, a.context = function(o) { return arguments.length ? (s = o == null ? null : o, a) : s; }, a; } -function ror(t, e, r, n, i) { +function eor(t, e, r, n, i) { t.moveTo(e, r), t.bezierCurveTo(e = (e + n) / 2, r, e, i, n, i); } -function nor() { - return tor(ror); +function tor() { + return Jar(eor); } -function ior(t) { +function ror(t) { return [t.source.x1, t.y0]; } -function sor(t) { +function nor(t) { return [t.target.x0, t.y1]; } -function aor() { - return nor().source(ior).target(sor); +function ior() { + return tor().source(ror).target(nor); } -var SR = function() { +var wR = function() { var t = /* @__PURE__ */ x(function(o, l, u, h) { for (u = u || {}, h = o.length; h--; u[o[h]] = l) ; @@ -114346,50 +114290,50 @@ Expecting ` + F.join(", ") + ", got '" + (this.terminals_[A] || A) + "'" : B = " } return x(a, "Parser"), a.prototype = i, i.Parser = a, new a(); }(); -SR.parser = SR; -var xS = SR, iE = [], sE = [], wS = /* @__PURE__ */ new Map(), oor = /* @__PURE__ */ x(() => { - iE = [], sE = [], wS = /* @__PURE__ */ new Map(), Xi(); -}, "clear"), Ub, lor = (Ub = class { +wR.parser = wR; +var bS = wR, rE = [], nE = [], xS = /* @__PURE__ */ new Map(), sor = /* @__PURE__ */ x(() => { + rE = [], nE = [], xS = /* @__PURE__ */ new Map(), Xi(); +}, "clear"), Ub, aor = (Ub = class { constructor(e, r, n = 0) { this.source = e, this.target = r, this.value = n; } }, (() => { x(Ub, "SankeyLink"); -})(), Ub), cor = /* @__PURE__ */ x((t, e, r) => { - iE.push(new lor(t, e, r)); -}, "addLink"), qb, uor = (qb = class { +})(), Ub), oor = /* @__PURE__ */ x((t, e, r) => { + rE.push(new aor(t, e, r)); +}, "addLink"), qb, lor = (qb = class { constructor(e) { this.ID = e; } }, (() => { x(qb, "SankeyNode"); -})(), qb), hor = /* @__PURE__ */ x((t) => { +})(), qb), cor = /* @__PURE__ */ x((t) => { t = at.sanitizeText(t, be()); - let e = wS.get(t); - return e === void 0 && (e = new uor(t), wS.set(t, e), sE.push(e)), e; -}, "findOrCreateNode"), dor = /* @__PURE__ */ x(() => sE, "getNodes"), por = /* @__PURE__ */ x(() => iE, "getLinks"), gor = /* @__PURE__ */ x(() => ({ - nodes: sE.map((t) => ({ id: t.ID })), - links: iE.map((t) => ({ + let e = xS.get(t); + return e === void 0 && (e = new lor(t), xS.set(t, e), nE.push(e)), e; +}, "findOrCreateNode"), uor = /* @__PURE__ */ x(() => nE, "getNodes"), hor = /* @__PURE__ */ x(() => rE, "getLinks"), dor = /* @__PURE__ */ x(() => ({ + nodes: nE.map((t) => ({ id: t.ID })), + links: rE.map((t) => ({ source: t.source.ID, target: t.target.ID, value: t.value })) -}), "getGraph"), mor = { - nodesMap: wS, +}), "getGraph"), por = { + nodesMap: xS, getConfig: /* @__PURE__ */ x(() => be().sankey, "getConfig"), - getNodes: dor, - getLinks: por, - getGraph: gor, - addLink: cor, - findOrCreateNode: hor, + getNodes: uor, + getLinks: hor, + getGraph: dor, + addLink: oor, + findOrCreateNode: cor, getAccTitle: vs, setAccTitle: Zi, getAccDescription: bs, setAccDescription: ys, getDiagramTitle: xs, setDiagramTitle: fa, - clear: oor -}, Wh, iZ = (Wh = class { + clear: sor +}, Wh, tZ = (Wh = class { static next(e) { return new Wh(e + ++Wh.count); } @@ -114403,23 +114347,23 @@ var xS = SR, iE = [], sE = [], wS = /* @__PURE__ */ new Map(), oor = /* @__PURE_ x(Wh, "Uid"); })(), (() => { Wh.count = 0; -})(), Wh), vor = { - left: Uar, - right: qar, - center: Yar, - justify: Dve -}, yor = /* @__PURE__ */ x(function(t, e, r, n) { +})(), Wh), gor = { + left: zar, + right: Var, + center: Uar, + justify: Rve +}, mor = /* @__PURE__ */ x(function(t, e, r, n) { var R, _, A, $, k, N, M, I; - const { securityLevel: i, sankey: s } = be(), a = Pie.sankey; + const { securityLevel: i, sankey: s } = be(), a = Nie.sankey; let o; i === "sandbox" && (o = et("#i" + e)); - const l = et(i === "sandbox" ? o.nodes()[0].contentDocument.body : "body"), u = i === "sandbox" ? l.select(`[id="${e}"]`) : et(`[id="${e}"]`), h = (R = s == null ? void 0 : s.width) != null ? R : a.width, f = (_ = s == null ? void 0 : s.height) != null ? _ : a.width, d = (A = s == null ? void 0 : s.useMaxWidth) != null ? A : a.useMaxWidth, p = ($ = s == null ? void 0 : s.nodeAlignment) != null ? $ : a.nodeAlignment, g = (k = s == null ? void 0 : s.prefix) != null ? k : a.prefix, m = (N = s == null ? void 0 : s.suffix) != null ? N : a.suffix, v = (M = s == null ? void 0 : s.showValues) != null ? M : a.showValues, y = n.db.getGraph(), b = vor[p], w = 10; - Har().nodeId((D) => D.id).nodeWidth(w).nodePadding(10 + (v ? 15 : 0)).nodeAlign(b).extent([ + const l = et(i === "sandbox" ? o.nodes()[0].contentDocument.body : "body"), u = i === "sandbox" ? l.select(`[id="${e}"]`) : et(`[id="${e}"]`), h = (R = s == null ? void 0 : s.width) != null ? R : a.width, f = (_ = s == null ? void 0 : s.height) != null ? _ : a.width, d = (A = s == null ? void 0 : s.useMaxWidth) != null ? A : a.useMaxWidth, p = ($ = s == null ? void 0 : s.nodeAlignment) != null ? $ : a.nodeAlignment, g = (k = s == null ? void 0 : s.prefix) != null ? k : a.prefix, m = (N = s == null ? void 0 : s.suffix) != null ? N : a.suffix, v = (M = s == null ? void 0 : s.showValues) != null ? M : a.showValues, y = n.db.getGraph(), b = gor[p], w = 10; + War().nodeId((D) => D.id).nodeWidth(w).nodePadding(10 + (v ? 15 : 0)).nodeAlign(b).extent([ [0, 0], [h, f] ])(y); - const S = DT(FOt); - u.append("g").attr("class", "nodes").selectAll(".node").data(y.nodes).join("g").attr("class", "node").attr("id", (D) => (D.uid = iZ.next("node-")).id).attr("transform", function(D) { + const S = RT($Ot); + u.append("g").attr("class", "nodes").selectAll(".node").data(y.nodes).join("g").attr("class", "node").attr("id", (D) => (D.uid = tZ.next("node-")).id).attr("transform", function(D) { return "translate(" + D.x0 + "," + D.y0 + ")"; }).attr("x", (D) => D.x0).attr("y", (D) => D.y0).append("rect").attr("height", (D) => D.y1 - D.y0).attr("width", (D) => D.x1 - D.x0).attr("fill", (D) => S(D.id)); const C = /* @__PURE__ */ x(({ id: D, value: P }) => v ? `${D} @@ -114427,7 +114371,7 @@ ${g}${Math.round(P * 100) / 100}${m}` : D, "getText"); u.append("g").attr("class", "node-labels").attr("font-family", "sans-serif").attr("font-size", 14).selectAll("text").data(y.nodes).join("text").attr("x", (D) => D.x0 < h / 2 ? D.x1 + 6 : D.x0 - 6).attr("y", (D) => (D.y1 + D.y0) / 2).attr("dy", `${v ? "0" : "0.35"}em`).attr("text-anchor", (D) => D.x0 < h / 2 ? "start" : "end").text(C); const T = u.append("g").attr("class", "links").attr("fill", "none").attr("stroke-opacity", 0.5).selectAll(".link").data(y.links).join("g").attr("class", "link").style("mix-blend-mode", "multiply"), L = (I = s == null ? void 0 : s.linkColor) != null ? I : "gradient"; if (L === "gradient") { - const D = T.append("linearGradient").attr("id", (P) => (P.uid = iZ.next("linearGradient-")).id).attr("gradientUnits", "userSpaceOnUse").attr("x1", (P) => P.source.x1).attr("x2", (P) => P.target.x0); + const D = T.append("linearGradient").attr("id", (P) => (P.uid = tZ.next("linearGradient-")).id).attr("gradientUnits", "userSpaceOnUse").attr("x1", (P) => P.source.x1).attr("x2", (P) => P.target.x0); D.append("stop").attr("offset", "0%").attr("stop-color", (P) => S(P.source.id)), D.append("stop").attr("offset", "100%").attr("stop-color", (P) => S(P.target.id)); } let E; @@ -114444,45 +114388,45 @@ ${g}${Math.round(P * 100) / 100}${m}` : D, "getText"); default: E = L; } - T.append("path").attr("d", aor()).attr("stroke", E).attr("stroke-width", (D) => Math.max(1, D.width)), Z1(void 0, u, 0, d); -}, "draw"), bor = { - draw: yor -}, xor = /* @__PURE__ */ x((t) => t.replaceAll(/^[^\S\n\r]+|[^\S\n\r]+$/g, "").replaceAll(/([\n\r])+/g, ` -`).trim(), "prepareTextForParsing"), wor = xS.parse.bind(xS); -xS.parse = (t) => wor(xor(t)); -var Oor = { - parser: xS, - db: mor, - renderer: bor -}; -const kor = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ + T.append("path").attr("d", ior()).attr("stroke", E).attr("stroke-width", (D) => Math.max(1, D.width)), Z1(void 0, u, 0, d); +}, "draw"), vor = { + draw: mor +}, yor = /* @__PURE__ */ x((t) => t.replaceAll(/^[^\S\n\r]+|[^\S\n\r]+$/g, "").replaceAll(/([\n\r])+/g, ` +`).trim(), "prepareTextForParsing"), bor = bS.parse.bind(bS); +bS.parse = (t) => bor(yor(t)); +var xor = { + parser: bS, + db: por, + renderer: vor +}; +const wor = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - diagram: Oor + diagram: xor }, Symbol.toStringTag, { value: "Module" })); -var Ive = { +var Dve = { packet: [] -}, u$ = structuredClone(Ive), Sor = jr.packet, Tor = /* @__PURE__ */ x(() => { +}, o$ = structuredClone(Dve), Oor = jr.packet, kor = /* @__PURE__ */ x(() => { const t = ch({ - ...Sor, + ...Oor, ...pi().packet }); return t.showBits && (t.paddingY += 10), t; -}, "getConfig"), Cor = /* @__PURE__ */ x(() => u$.packet, "getPacket"), Eor = /* @__PURE__ */ x((t) => { - t.length > 0 && u$.packet.push(t); -}, "pushWord"), _or = /* @__PURE__ */ x(() => { - Xi(), u$ = structuredClone(Ive); +}, "getConfig"), Sor = /* @__PURE__ */ x(() => o$.packet, "getPacket"), Tor = /* @__PURE__ */ x((t) => { + t.length > 0 && o$.packet.push(t); +}, "pushWord"), Cor = /* @__PURE__ */ x(() => { + Xi(), o$ = structuredClone(Dve); }, "clear"), Lp = { - pushWord: Eor, - getPacket: Cor, - getConfig: Tor, - clear: _or, + pushWord: Tor, + getPacket: Sor, + getConfig: kor, + clear: Cor, setAccTitle: Zi, getAccTitle: vs, setDiagramTitle: fa, getDiagramTitle: xs, getAccDescription: bs, setAccDescription: ys -}, Aor = 1e4, Lor = /* @__PURE__ */ x((t) => { +}, Eor = 1e4, _or = /* @__PURE__ */ x((t) => { Mx(t, Lp); let e = -1, r = [], n = 1; const { bitsPerRow: i } = Lp.getConfig(); @@ -114493,15 +114437,15 @@ var Ive = { throw new Error( `Packet block ${s} - ${a != null ? a : s} is not contiguous. It should start from ${e + 1}.` ); - for (e = a != null ? a : s, X.debug(`Packet block ${s} - ${e} with label ${o}`); r.length <= i + 1 && Lp.getPacket().length < Aor; ) { - const [l, u] = Ror({ start: s, end: a, label: o }, n, i); + for (e = a != null ? a : s, X.debug(`Packet block ${s} - ${e} with label ${o}`); r.length <= i + 1 && Lp.getPacket().length < Eor; ) { + const [l, u] = Aor({ start: s, end: a, label: o }, n, i); if (r.push(l), l.end + 1 === n * i && (Lp.pushWord(r), r = [], n++), !u) break; ({ start: s, end: a, label: o } = u); } } Lp.pushWord(r); -}, "populate"), Ror = /* @__PURE__ */ x((t, e, r) => { +}, "populate"), Aor = /* @__PURE__ */ x((t, e, r) => { if (t.end === void 0 && (t.end = t.start), t.start > t.end) throw new Error(`Block start ${t.start} is greater than block end ${t.end}.`); return t.end + 1 <= e * r ? [t, void 0] : [ @@ -114516,18 +114460,18 @@ var Ive = { label: t.label } ]; -}, "getNextFittingBlock"), Mor = { +}, "getNextFittingBlock"), Lor = { parse: /* @__PURE__ */ x(async (t) => { const e = await mm("packet", t); - X.debug(e), Lor(e); + X.debug(e), _or(e); }, "parse") -}, Dor = /* @__PURE__ */ x((t, e, r, n) => { +}, Ror = /* @__PURE__ */ x((t, e, r, n) => { const i = n.db, s = i.getConfig(), { rowHeight: a, paddingY: o, bitWidth: l, bitsPerRow: u } = s, h = i.getPacket(), f = i.getDiagramTitle(), d = a + o, p = d * (h.length + 1) - (f ? 0 : a), g = l * u + 2, m = Z0(e); m.attr("viewbox", `0 0 ${g} ${p}`), ms(m, p, g, s.useMaxWidth); for (const [v, y] of h.entries()) - Nor(m, y, v, s); + Mor(m, y, v, s); m.append("text").text(f).attr("x", g / 2).attr("y", p - d / 2).attr("dominant-baseline", "middle").attr("text-anchor", "middle").attr("class", "packetTitle"); -}, "draw"), Nor = /* @__PURE__ */ x((t, e, r, { rowHeight: n, paddingX: i, paddingY: s, bitWidth: a, bitsPerRow: o, showBits: l }) => { +}, "draw"), Mor = /* @__PURE__ */ x((t, e, r, { rowHeight: n, paddingX: i, paddingY: s, bitWidth: a, bitsPerRow: o, showBits: l }) => { const u = t.append("g"), h = r * (n + s) + s; for (const f of e) { const d = f.start % o * a + 1, p = (f.end - f.start + 1) * a - i; @@ -114536,7 +114480,7 @@ var Ive = { const g = f.end === f.start, m = h - 2; u.append("text").attr("x", d + (g ? p / 2 : 0)).attr("y", m).attr("class", "packetByte start").attr("dominant-baseline", "auto").attr("text-anchor", g ? "middle" : "start").text(f.start), g || u.append("text").attr("x", d + p).attr("y", m).attr("class", "packetByte end").attr("dominant-baseline", "auto").attr("text-anchor", "end").text(f.end); } -}, "drawWord"), Ior = { draw: Dor }, Por = { +}, "drawWord"), Dor = { draw: Ror }, Nor = { byteFontSize: "10px", startByteColor: "black", endByteColor: "black", @@ -114547,8 +114491,8 @@ var Ive = { blockStrokeColor: "black", blockStrokeWidth: "1", blockFillColor: "#efefef" -}, $or = /* @__PURE__ */ x(({ packet: t } = {}) => { - const e = ch(Por, t); +}, Ior = /* @__PURE__ */ x(({ packet: t } = {}) => { + const e = ch(Nor, t); return ` .packetByte { font-size: ${e.byteFontSize}; @@ -114573,17 +114517,17 @@ var Ive = { fill: ${e.blockFillColor}; } `; -}, "styles"), Bor = { - parser: Mor, +}, "styles"), Por = { + parser: Lor, db: Lp, - renderer: Ior, - styles: $or + renderer: Dor, + styles: Ior }; -const For = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +const $or = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - diagram: Bor + diagram: Por }, Symbol.toStringTag, { value: "Module" })); -var TR = function() { +var OR = function() { var t = /* @__PURE__ */ x(function(w, O, S, C) { for (S = S || {}, C = w.length; C--; S[w[C]] = O) ; @@ -115166,21 +115110,21 @@ Expecting ` + j.join(", ") + ", got '" + (this.terminals_[G] || G) + "'" : ae = } return x(b, "Parser"), b.prototype = v, v.Parser = b, new b(); }(); -TR.parser = TR; -var zor = TR, Ll = /* @__PURE__ */ new Map(), h$ = [], CR = /* @__PURE__ */ new Map(), sZ = "color", aZ = "fill", Vor = "bgFill", Pve = ",", Uor = be(), OS = /* @__PURE__ */ new Map(), qor = /* @__PURE__ */ x((t) => at.sanitizeText(t, Uor), "sanitizeText"), Yor = /* @__PURE__ */ x(function(t, e = "") { - let r = OS.get(t); - r || (r = { id: t, styles: [], textStyles: [] }, OS.set(t, r)), e != null && e.split(Pve).forEach((n) => { +OR.parser = OR; +var Bor = OR, Ll = /* @__PURE__ */ new Map(), l$ = [], kR = /* @__PURE__ */ new Map(), rZ = "color", nZ = "fill", For = "bgFill", Nve = ",", zor = be(), wS = /* @__PURE__ */ new Map(), Vor = /* @__PURE__ */ x((t) => at.sanitizeText(t, zor), "sanitizeText"), Uor = /* @__PURE__ */ x(function(t, e = "") { + let r = wS.get(t); + r || (r = { id: t, styles: [], textStyles: [] }, wS.set(t, r)), e != null && e.split(Nve).forEach((n) => { const i = n.replace(/([^;]*);/, "$1").trim(); - if (RegExp(sZ).exec(n)) { - const a = i.replace(aZ, Vor).replace(sZ, aZ); + if (RegExp(rZ).exec(n)) { + const a = i.replace(nZ, For).replace(rZ, nZ); r.textStyles.push(a); } r.styles.push(i); }); -}, "addStyleClass"), Qor = /* @__PURE__ */ x(function(t, e = "") { +}, "addStyleClass"), qor = /* @__PURE__ */ x(function(t, e = "") { const r = Ll.get(t); - e != null && (r.styles = e.split(Pve)); -}, "addStyle2Node"), Wor = /* @__PURE__ */ x(function(t, e) { + e != null && (r.styles = e.split(Nve)); +}, "addStyle2Node"), Yor = /* @__PURE__ */ x(function(t, e) { t.split(",").forEach(function(r) { let n = Ll.get(r); if (n === void 0) { @@ -115189,31 +115133,31 @@ var zor = TR, Ll = /* @__PURE__ */ new Map(), h$ = [], CR = /* @__PURE__ */ new } n.classes || (n.classes = []), n.classes.push(e); }); -}, "setCssClass"), $ve = /* @__PURE__ */ x((t, e) => { +}, "setCssClass"), Ive = /* @__PURE__ */ x((t, e) => { var i, s, a, o; const r = t.flat(), n = []; for (const l of r) { - if (l.label && (l.label = qor(l.label)), l.type === "classDef") { - Yor(l.id, l.css); + if (l.label && (l.label = Vor(l.label)), l.type === "classDef") { + Uor(l.id, l.css); continue; } if (l.type === "applyClass") { - Wor(l.id, (i = l == null ? void 0 : l.styleClass) != null ? i : ""); + Yor(l.id, (i = l == null ? void 0 : l.styleClass) != null ? i : ""); continue; } if (l.type === "applyStyles") { - l != null && l.stylesStr && Qor(l.id, l == null ? void 0 : l.stylesStr); + l != null && l.stylesStr && qor(l.id, l == null ? void 0 : l.stylesStr); continue; } if (l.type === "column-setting") e.columns = (s = l.columns) != null ? s : -1; else if (l.type === "edge") { - const u = ((a = CR.get(l.id)) != null ? a : 0) + 1; - CR.set(l.id, u), l.id = u + "-" + l.id, h$.push(l); + const u = ((a = kR.get(l.id)) != null ? a : 0) + 1; + kR.set(l.id, u), l.id = u + "-" + l.id, l$.push(l); } else { l.label || (l.type === "composite" ? l.label = "" : l.label = l.id); const u = Ll.get(l.id); - if (u === void 0 ? Ll.set(l.id, l) : (l.type !== "na" && (u.type = l.type), l.label !== l.id && (u.label = l.label)), l.children && $ve(l.children, l), l.type === "space") { + if (u === void 0 ? Ll.set(l.id, l) : (l.type !== "na" && (u.type = l.type), l.label !== l.id && (u.label = l.label)), l.children && Ive(l.children, l), l.type === "space") { const h = (o = l.width) != null ? o : 1; for (let f = 0; f < h; f++) { const d = Di(l); @@ -115224,10 +115168,10 @@ var zor = TR, Ll = /* @__PURE__ */ new Map(), h$ = [], CR = /* @__PURE__ */ new } } e.children = n; -}, "populateBlockDatabase"), f$ = [], vy = { id: "root", type: "composite", children: [], columns: -1 }, Gor = /* @__PURE__ */ x(() => { - X.debug("Clear called"), Xi(), vy = { id: "root", type: "composite", children: [], columns: -1 }, Ll = /* @__PURE__ */ new Map([["root", vy]]), f$ = [], OS = /* @__PURE__ */ new Map(), h$ = [], CR = /* @__PURE__ */ new Map(); +}, "populateBlockDatabase"), c$ = [], vy = { id: "root", type: "composite", children: [], columns: -1 }, Qor = /* @__PURE__ */ x(() => { + X.debug("Clear called"), Xi(), vy = { id: "root", type: "composite", children: [], columns: -1 }, Ll = /* @__PURE__ */ new Map([["root", vy]]), c$ = [], wS = /* @__PURE__ */ new Map(), l$ = [], kR = /* @__PURE__ */ new Map(); }, "clear"); -function Bve(t) { +function Pve(t) { switch (X.debug("typeStr2Type", t), t) { case "[]": return "square"; @@ -115263,8 +115207,8 @@ function Bve(t) { return "na"; } } -x(Bve, "typeStr2Type"); -function Fve(t) { +x(Pve, "typeStr2Type"); +function $ve(t) { switch (X.debug("typeStr2Type", t), t) { case "==": return "thick"; @@ -115272,8 +115216,8 @@ function Fve(t) { return "normal"; } } -x(Fve, "edgeTypeStr2Type"); -function zve(t) { +x($ve, "edgeTypeStr2Type"); +function Bve(t) { switch (t.trim()) { case "--x": return "arrow_cross"; @@ -115283,36 +115227,36 @@ function zve(t) { return "arrow_point"; } } -x(zve, "edgeStrToEdgeData"); -var oZ = 0, Hor = /* @__PURE__ */ x(() => (oZ++, "id-" + Math.random().toString(36).substr(2, 12) + "-" + oZ), "generateId"), Xor = /* @__PURE__ */ x((t) => { - vy.children = t, $ve(t, vy), f$ = vy.children; -}, "setHierarchy"), Zor = /* @__PURE__ */ x((t) => { +x(Bve, "edgeStrToEdgeData"); +var iZ = 0, Wor = /* @__PURE__ */ x(() => (iZ++, "id-" + Math.random().toString(36).substr(2, 12) + "-" + iZ), "generateId"), Gor = /* @__PURE__ */ x((t) => { + vy.children = t, Ive(t, vy), c$ = vy.children; +}, "setHierarchy"), Hor = /* @__PURE__ */ x((t) => { const e = Ll.get(t); return e ? e.columns ? e.columns : e.children ? e.children.length : -1 : -1; -}, "getColumns"), jor = /* @__PURE__ */ x(() => [...Ll.values()], "getBlocksFlat"), Kor = /* @__PURE__ */ x(() => f$ || [], "getBlocks"), Jor = /* @__PURE__ */ x(() => h$, "getEdges"), elr = /* @__PURE__ */ x((t) => Ll.get(t), "getBlock"), tlr = /* @__PURE__ */ x((t) => { +}, "getColumns"), Xor = /* @__PURE__ */ x(() => [...Ll.values()], "getBlocksFlat"), Zor = /* @__PURE__ */ x(() => c$ || [], "getBlocks"), jor = /* @__PURE__ */ x(() => l$, "getEdges"), Kor = /* @__PURE__ */ x((t) => Ll.get(t), "getBlock"), Jor = /* @__PURE__ */ x((t) => { Ll.set(t.id, t); -}, "setBlock"), rlr = /* @__PURE__ */ x(() => console, "getLogger"), nlr = /* @__PURE__ */ x(function() { - return OS; -}, "getClasses"), ilr = { +}, "setBlock"), elr = /* @__PURE__ */ x(() => console, "getLogger"), tlr = /* @__PURE__ */ x(function() { + return wS; +}, "getClasses"), rlr = { getConfig: /* @__PURE__ */ x(() => pi().block, "getConfig"), - typeStr2Type: Bve, - edgeTypeStr2Type: Fve, - edgeStrToEdgeData: zve, - getLogger: rlr, - getBlocksFlat: jor, - getBlocks: Kor, - getEdges: Jor, - setHierarchy: Xor, - getBlock: elr, - setBlock: tlr, - getColumns: Zor, - getClasses: nlr, - clear: Gor, - generateId: Hor -}, slr = ilr, XO = /* @__PURE__ */ x((t, e) => { - const r = die, n = r(t, "r"), i = r(t, "g"), s = r(t, "b"); + typeStr2Type: Pve, + edgeTypeStr2Type: $ve, + edgeStrToEdgeData: Bve, + getLogger: elr, + getBlocksFlat: Xor, + getBlocks: Zor, + getEdges: jor, + setHierarchy: Gor, + getBlock: Kor, + setBlock: Jor, + getColumns: Hor, + getClasses: tlr, + clear: Qor, + generateId: Wor +}, nlr = rlr, HO = /* @__PURE__ */ x((t, e) => { + const r = hie, n = r(t, "r"), i = r(t, "g"), s = r(t, "b"); return Qd(n, i, s, e); -}, "fade"), alr = /* @__PURE__ */ x((t) => `.label { +}, "fade"), ilr = /* @__PURE__ */ x((t) => `.label { font-family: ${t.fontFamily}; color: ${t.nodeTextColor || t.textColor}; } @@ -115382,14 +115326,14 @@ var oZ = 0, Hor = /* @__PURE__ */ x(() => (oZ++, "id-" + Math.random().toString( /* For html labels only */ .labelBkg { - background-color: ${XO(t.edgeLabelBackground, 0.5)}; + background-color: ${HO(t.edgeLabelBackground, 0.5)}; // background-color: } .node .cluster { - // fill: ${XO(t.mainBkg, 0.5)}; - fill: ${XO(t.clusterBkg, 0.5)}; - stroke: ${XO(t.clusterBorder, 0.2)}; + // fill: ${HO(t.mainBkg, 0.5)}; + fill: ${HO(t.clusterBkg, 0.5)}; + stroke: ${HO(t.clusterBorder, 0.2)}; box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px; stroke-width: 1px; } @@ -115424,8 +115368,8 @@ var oZ = 0, Hor = /* @__PURE__ */ x(() => (oZ++, "id-" + Math.random().toString( font-size: 18px; fill: ${t.textColor}; } -`, "getStyles"), olr = alr, pZ, gZ, mZ, Xn = (mZ = (gZ = (pZ = be()) == null ? void 0 : pZ.block) == null ? void 0 : gZ.padding) != null ? mZ : 8; -function Vve(t, e) { +`, "getStyles"), slr = ilr, hZ, fZ, dZ, Xn = (dZ = (fZ = (hZ = be()) == null ? void 0 : hZ.block) == null ? void 0 : fZ.padding) != null ? dZ : 8; +function Fve(t, e) { if (t === 0 || !Number.isInteger(t)) throw new Error("Columns must be an integer !== 0."); if (e < 0 || !Number.isInteger(e)) @@ -115437,8 +115381,8 @@ function Vve(t, e) { const r = e % t, n = Math.floor(e / t); return { px: r, py: n }; } -x(Vve, "calculateBlockPosition"); -var llr = /* @__PURE__ */ x((t) => { +x(Fve, "calculateBlockPosition"); +var alr = /* @__PURE__ */ x((t) => { var n, i; let e = 0, r = 0; for (const s of t.children) { @@ -115459,7 +115403,7 @@ var llr = /* @__PURE__ */ x((t) => { } return { width: e, height: r }; }, "getMaxChildSize"); -function kS(t, e, r = 0, n = 0) { +function OS(t, e, r = 0, n = 0) { var a, o, l, u, h, f, d, p, g, m, v, y, b, w, O; X.debug( "setBlockSizes abc95 (start)", @@ -115478,8 +115422,8 @@ function kS(t, e, r = 0, n = 0) { let i = 0, s = 0; if (((l = t.children) == null ? void 0 : l.length) > 0) { for (const A of t.children) - kS(A, e); - const S = llr(t); + OS(A, e); + const S = alr(t); i = S.width, s = S.height, X.debug("setBlockSizes abc95 maxWidth of", t.id, ":s children is ", i, s); for (const A of t.children) A.size && (X.debug( @@ -115488,7 +115432,7 @@ function kS(t, e, r = 0, n = 0) { `abc95 updating size of ${t.id} children child:${A.id} maxWidth:${i} maxHeight:${s}` )); for (const A of t.children) - kS(A, e, i, s); + OS(A, e, i, s); const C = (f = t.columns) != null ? f : -1; let T = 0; for (const A of t.children) @@ -115534,8 +115478,8 @@ function kS(t, e, r = 0, n = 0) { (O = t == null ? void 0 : t.size) == null ? void 0 : O.height ); } -x(kS, "setBlockSizes"); -function d$(t, e) { +x(OS, "setBlockSizes"); +function u$(t, e) { var n, i, s, a, o, l, u, h, f, d, p, g, m, v, y, b, w, O, S, C, T, L; X.debug( `abc85 layout blocks (=>layoutBlocks) ${t.id} x: ${(n = t == null ? void 0 : t.size) == null ? void 0 : n.x} y: ${(i = t == null ? void 0 : t.size) == null ? void 0 : i.y} width: ${(s = t == null ? void 0 : t.size) == null ? void 0 : s.width}` @@ -115551,7 +115495,7 @@ function d$(t, e) { const N = t; if (!k.size) continue; - const { width: M, height: I } = k.size, { px: D, py: P } = Vve(r, _); + const { width: M, height: I } = k.size, { px: D, py: P } = Fve(r, _); if (P != $ && ($ = P, A = (g = t == null ? void 0 : t.size) != null && g.x ? ((m = t == null ? void 0 : t.size) == null ? void 0 : m.x) + (-((v = t == null ? void 0 : t.size) == null ? void 0 : v.width) / 2 || 0) : -Xn, X.debug("New row in layout for block", t.id, " and child ", k.id, $)), X.debug( `abc89 layout blocks (child) id: ${k.id} Pos: ${_} (px, py) ${D},${P} (${(y = N == null ? void 0 : N.size) == null ? void 0 : y.x},${(b = N == null ? void 0 : N.size) == null ? void 0 : b.y}) parent: ${N.id} width: ${M}${Xn}` ), N.size) { @@ -115562,35 +115506,35 @@ function d$(t, e) { `abc88 layout blocks (calc) px, pyid:${k.id}startingPosX${A}${Xn}${F}=>x:${k.size.x}y:${k.size.y}${k.widthInColumns}(width * (child?.w || 1)) / 2${M * ((O = k == null ? void 0 : k.widthInColumns) != null ? O : 1) / 2}` ); } - k.children && d$(k), _ += (S = k == null ? void 0 : k.widthInColumns) != null ? S : 1, X.debug("abc88 columnsPos", k, _); + k.children && u$(k), _ += (S = k == null ? void 0 : k.widthInColumns) != null ? S : 1, X.debug("abc88 columnsPos", k, _); } } X.debug( `layout blocks (<==layoutBlocks) ${t.id} x: ${(C = t == null ? void 0 : t.size) == null ? void 0 : C.x} y: ${(T = t == null ? void 0 : t.size) == null ? void 0 : T.y} width: ${(L = t == null ? void 0 : t.size) == null ? void 0 : L.width}` ); } -x(d$, "layoutBlocks"); -function p$(t, { minX: e, minY: r, maxX: n, maxY: i } = { minX: 0, minY: 0, maxX: 0, maxY: 0 }) { +x(u$, "layoutBlocks"); +function h$(t, { minX: e, minY: r, maxX: n, maxY: i } = { minX: 0, minY: 0, maxX: 0, maxY: 0 }) { if (t.size && t.id !== "root") { const { x: s, y: a, width: o, height: l } = t.size; s - o / 2 < e && (e = s - o / 2), a - l / 2 < r && (r = a - l / 2), s + o / 2 > n && (n = s + o / 2), a + l / 2 > i && (i = a + l / 2); } if (t.children) for (const s of t.children) - ({ minX: e, minY: r, maxX: n, maxY: i } = p$(s, { minX: e, minY: r, maxX: n, maxY: i })); + ({ minX: e, minY: r, maxX: n, maxY: i } = h$(s, { minX: e, minY: r, maxX: n, maxY: i })); return { minX: e, minY: r, maxX: n, maxY: i }; } -x(p$, "findBounds"); -function Uve(t) { +x(h$, "findBounds"); +function zve(t) { const e = t.getBlock("root"); if (!e) return; - kS(e, t, 0, 0), d$(e), X.debug("getBlocks", JSON.stringify(e, null, 2)); - const { minX: r, minY: n, maxX: i, maxY: s } = p$(e), a = s - n, o = i - r; + OS(e, t, 0, 0), u$(e), X.debug("getBlocks", JSON.stringify(e, null, 2)); + const { minX: r, minY: n, maxX: i, maxY: s } = h$(e), a = s - n, o = i - r; return { x: r, y: n, width: o, height: a }; } -x(Uve, "layout"); -function g$(t, e, r = !1) { +x(zve, "layout"); +function f$(t, e, r = !1) { var d, p, g, m, v, y, b; const n = t; let i = "default"; @@ -115678,34 +115622,34 @@ function g$(t, e, r = !1) { padding: (b = o != null ? o : (y = (v = pi()) == null ? void 0 : v.block) == null ? void 0 : y.padding) != null ? b : 0 }; } -x(g$, "getNodeFromBlock"); -async function qve(t, e, r) { - const n = g$(e, r, !1); +x(f$, "getNodeFromBlock"); +async function Vve(t, e, r) { + const n = f$(e, r, !1); if (n.type === "group") return; - const i = await vI(t, n), s = i.node().getBBox(), a = r.getBlock(n.id); + const i = await pI(t, n), s = i.node().getBBox(), a = r.getBlock(n.id); a.size = { width: s.width, height: s.height, x: 0, y: 0, node: i }, r.setBlock(a), i.remove(); } -x(qve, "calculateBlockSize"); -async function Yve(t, e, r) { - const n = g$(e, r, !0); - r.getBlock(n.id).type !== "space" && (await vI(t, n), e.intersect = n == null ? void 0 : n.intersect, qL(n)); +x(Vve, "calculateBlockSize"); +async function Uve(t, e, r) { + const n = f$(e, r, !0); + r.getBlock(n.id).type !== "space" && (await pI(t, n), e.intersect = n == null ? void 0 : n.intersect, zL(n)); } -x(Yve, "insertBlockPositioned"); -async function aE(t, e, r, n) { +x(Uve, "insertBlockPositioned"); +async function iE(t, e, r, n) { for (const i of e) - await n(t, i, r), i.children && await aE(t, i.children, r, n); + await n(t, i, r), i.children && await iE(t, i.children, r, n); } -x(aE, "performOperations"); -async function Qve(t, e, r) { - await aE(t, e, r, qve); +x(iE, "performOperations"); +async function qve(t, e, r) { + await iE(t, e, r, Vve); } -x(Qve, "calculateBlockSizes"); -async function Wve(t, e, r) { - await aE(t, e, r, Yve); +x(qve, "calculateBlockSizes"); +async function Yve(t, e, r) { + await iE(t, e, r, Uve); } -x(Wve, "insertBlocks"); -async function Gve(t, e, r, n, i) { +x(Yve, "insertBlocks"); +async function Qve(t, e, r, n, i) { const s = new $i({ multigraph: !0, compound: !0 @@ -115732,7 +115676,7 @@ async function Gve(t, e, r, n, i) { { x: u.x + (h.x - u.x) / 2, y: u.y + (h.y - u.y) / 2 }, { x: h.x, y: h.y } ]; - Vge( + Fge( t, { v: a.start, w: a.end, name: a.id }, { @@ -115746,7 +115690,7 @@ async function Gve(t, e, r, n, i) { "block", s, i - ), a.label && (await Fge(t, { + ), a.label && (await $ge(t, { ...a, label: a.label, labelStyle: "stroke: #333; stroke-width: 1.5px;fill:none;", @@ -115754,7 +115698,7 @@ async function Gve(t, e, r, n, i) { arrowTypeStart: a.arrowTypeStart, points: f, classes: "edge-thickness-normal edge-pattern-solid flowchart-link LS-a1 LE-b1" - }), zge( + }), Bge( { ...a, x: f[1].x, y: f[1].y }, { originalPath: f @@ -115763,41 +115707,41 @@ async function Gve(t, e, r, n, i) { } } } -x(Gve, "insertEdges"); -var clr = /* @__PURE__ */ x(function(t, e) { +x(Qve, "insertEdges"); +var olr = /* @__PURE__ */ x(function(t, e) { return e.db.getClasses(); -}, "getClasses"), ulr = /* @__PURE__ */ x(async function(t, e, r, n) { +}, "getClasses"), llr = /* @__PURE__ */ x(async function(t, e, r, n) { const { securityLevel: i, block: s } = pi(), a = n.db; let o; i === "sandbox" && (o = et("#i" + e)); const l = et(i === "sandbox" ? o.nodes()[0].contentDocument.body : "body"), u = i === "sandbox" ? l.select(`[id="${e}"]`) : et(`[id="${e}"]`); - Bge(u, ["point", "circle", "cross"], n.type, e); + Pge(u, ["point", "circle", "cross"], n.type, e); const f = a.getBlocks(), d = a.getBlocksFlat(), p = a.getEdges(), g = u.insert("g").attr("class", "block"); - await Qve(g, f, a); - const m = Uve(a); - if (await Wve(g, f, a), await Gve(g, p, d, a, e), m) { + await qve(g, f, a); + const m = zve(a); + if (await Yve(g, f, a), await Qve(g, p, d, a, e), m) { const v = m, y = Math.max(1, Math.round(0.125 * (v.width / v.height))), b = v.height + y + 10, w = v.width + 10, { useMaxWidth: O } = s; ms(u, b, w, !!O), X.debug("Here Bounds", m, v), u.attr( "viewBox", `${v.x - 5} ${v.y - 5} ${v.width + 10} ${v.height + 10}` ); } -}, "draw"), hlr = { - draw: ulr, - getClasses: clr -}, flr = { - parser: zor, - db: slr, - renderer: hlr, - styles: olr +}, "draw"), clr = { + draw: llr, + getClasses: olr +}, ulr = { + parser: Bor, + db: nlr, + renderer: clr, + styles: slr }; -const dlr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +const hlr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - diagram: flr + diagram: ulr }, Symbol.toStringTag, { value: "Module" })); -var Hve = { exports: {} }, wA = { exports: {} }, OA = { exports: {} }, lZ; -function plr() { - return lZ || (lZ = 1, function(t, e) { +var Wve = { exports: {} }, bA = { exports: {} }, xA = { exports: {} }, sZ; +function flr() { + return sZ || (sZ = 1, function(t, e) { (function(n, i) { t.exports = i(); })(qc, function() { @@ -117623,13 +117567,13 @@ function plr() { } ]); }); - }(OA)), OA.exports; + }(xA)), xA.exports; } -var cZ; -function glr() { - return cZ || (cZ = 1, function(t, e) { +var aZ; +function dlr() { + return aZ || (aZ = 1, function(t, e) { (function(n, i) { - t.exports = i(plr()); + t.exports = i(flr()); })(qc, function(r) { return (() => { var n = { @@ -118821,11 +118765,11 @@ function glr() { return a; })(); }); - }(wA)), wA.exports; + }(bA)), bA.exports; } (function(t, e) { (function(n, i) { - t.exports = i(glr()); + t.exports = i(dlr()); })(qc, function(r) { return (() => { var n = { @@ -119422,26 +119366,26 @@ function glr() { return a; })(); }); -})(Hve); -const mlr = Hve.exports; -var uZ = { +})(Wve); +const plr = Wve.exports; +var oZ = { L: "left", R: "right", T: "top", B: "bottom" -}, hZ = { +}, lZ = { L: /* @__PURE__ */ x((t) => `${t},${t / 2} 0,${t} 0,0`, "L"), R: /* @__PURE__ */ x((t) => `0,${t / 2} ${t},0 ${t},${t}`, "R"), T: /* @__PURE__ */ x((t) => `0,0 ${t},0 ${t / 2},${t}`, "T"), B: /* @__PURE__ */ x((t) => `${t / 2},0 ${t},${t} 0,${t}`, "B") -}, ZO = { +}, XO = { L: /* @__PURE__ */ x((t, e) => t - e + 2, "L"), R: /* @__PURE__ */ x((t, e) => t - 2, "R"), T: /* @__PURE__ */ x((t, e) => t - e + 2, "T"), B: /* @__PURE__ */ x((t, e) => t - 2, "B") -}, vlr = /* @__PURE__ */ x(function(t) { +}, glr = /* @__PURE__ */ x(function(t) { return Oa(t) ? t === "L" ? "R" : "L" : t === "T" ? "B" : "T"; -}, "getOppositeArchitectureDirection"), fZ = /* @__PURE__ */ x(function(t) { +}, "getOppositeArchitectureDirection"), cZ = /* @__PURE__ */ x(function(t) { const e = t; return e === "L" || e === "R" || e === "T" || e === "B"; }, "isArchitectureDirection"), Oa = /* @__PURE__ */ x(function(t) { @@ -119450,37 +119394,37 @@ var uZ = { }, "isArchitectureDirectionX"), $f = /* @__PURE__ */ x(function(t) { const e = t; return e === "T" || e === "B"; -}, "isArchitectureDirectionY"), Xve = /* @__PURE__ */ x(function(t, e) { +}, "isArchitectureDirectionY"), Gve = /* @__PURE__ */ x(function(t, e) { const r = Oa(t) && $f(e), n = $f(t) && Oa(e); return r || n; -}, "isArchitectureDirectionXY"), ylr = /* @__PURE__ */ x(function(t) { +}, "isArchitectureDirectionXY"), mlr = /* @__PURE__ */ x(function(t) { const e = t[0], r = t[1], n = Oa(e) && $f(r), i = $f(e) && Oa(r); return n || i; -}, "isArchitecturePairXY"), blr = /* @__PURE__ */ x(function(t) { +}, "isArchitecturePairXY"), vlr = /* @__PURE__ */ x(function(t) { return t !== "LL" && t !== "RR" && t !== "TT" && t !== "BB"; -}, "isValidArchitectureDirectionPair"), ER = /* @__PURE__ */ x(function(t, e) { +}, "isValidArchitectureDirectionPair"), SR = /* @__PURE__ */ x(function(t, e) { const r = `${t}${e}`; - return blr(r) ? r : void 0; -}, "getArchitectureDirectionPair"), xlr = /* @__PURE__ */ x(function([t, e], r) { + return vlr(r) ? r : void 0; +}, "getArchitectureDirectionPair"), ylr = /* @__PURE__ */ x(function([t, e], r) { const n = r[0], i = r[1]; return Oa(n) ? $f(i) ? [t + (n === "L" ? -1 : 1), e + (i === "T" ? 1 : -1)] : [t + (n === "L" ? -1 : 1), e] : Oa(i) ? [t + (i === "L" ? 1 : -1), e + (n === "T" ? 1 : -1)] : [t, e + (n === "T" ? 1 : -1)]; -}, "shiftPositionByArchitectureDirectionPair"), wlr = /* @__PURE__ */ x(function(t) { +}, "shiftPositionByArchitectureDirectionPair"), blr = /* @__PURE__ */ x(function(t) { return t === "LT" || t === "TL" ? [1, 1] : t === "BL" || t === "LB" ? [1, -1] : t === "BR" || t === "RB" ? [-1, -1] : [-1, 1]; -}, "getArchitectureDirectionXYFactors"), Olr = /* @__PURE__ */ x(function(t) { +}, "getArchitectureDirectionXYFactors"), xlr = /* @__PURE__ */ x(function(t) { return t.type === "service"; -}, "isArchitectureService"), klr = /* @__PURE__ */ x(function(t) { +}, "isArchitectureService"), wlr = /* @__PURE__ */ x(function(t) { return t.type === "junction"; -}, "isArchitectureJunction"), Zve = /* @__PURE__ */ x((t) => t.data(), "edgeData"), Qp = /* @__PURE__ */ x((t) => t.data(), "nodeData"), jve = jr.architecture, fr = new kI(() => ({ +}, "isArchitectureJunction"), Hve = /* @__PURE__ */ x((t) => t.data(), "edgeData"), Qp = /* @__PURE__ */ x((t) => t.data(), "nodeData"), Xve = jr.architecture, fr = new xI(() => ({ nodes: {}, groups: {}, edges: [], registeredIds: {}, - config: jve, + config: Xve, dataStructures: void 0, elements: {} -})), Slr = /* @__PURE__ */ x(() => { +})), Olr = /* @__PURE__ */ x(() => { fr.reset(), Xi(); -}, "clear"), Tlr = /* @__PURE__ */ x(function({ +}, "clear"), klr = /* @__PURE__ */ x(function({ id: t, icon: e, in: r, @@ -119510,14 +119454,14 @@ var uZ = { edges: [], in: r }; -}, "addService"), Clr = /* @__PURE__ */ x(() => Object.values(fr.records.nodes).filter(Olr), "getServices"), Elr = /* @__PURE__ */ x(function({ id: t, in: e }) { +}, "addService"), Slr = /* @__PURE__ */ x(() => Object.values(fr.records.nodes).filter(xlr), "getServices"), Tlr = /* @__PURE__ */ x(function({ id: t, in: e }) { fr.records.registeredIds[t] = "node", fr.records.nodes[t] = { id: t, type: "junction", edges: [], in: e }; -}, "addJunction"), _lr = /* @__PURE__ */ x(() => Object.values(fr.records.nodes).filter(klr), "getJunctions"), Alr = /* @__PURE__ */ x(() => Object.values(fr.records.nodes), "getNodes"), Llr = /* @__PURE__ */ x((t) => fr.records.nodes[t], "getNode"), Rlr = /* @__PURE__ */ x(function({ id: t, icon: e, in: r, title: n }) { +}, "addJunction"), Clr = /* @__PURE__ */ x(() => Object.values(fr.records.nodes).filter(wlr), "getJunctions"), Elr = /* @__PURE__ */ x(() => Object.values(fr.records.nodes), "getNodes"), _lr = /* @__PURE__ */ x((t) => fr.records.nodes[t], "getNode"), Alr = /* @__PURE__ */ x(function({ id: t, icon: e, in: r, title: n }) { if (fr.records.registeredIds[t] !== void 0) throw new Error( `The group id [${t}] is already in use by another ${fr.records.registeredIds[t]}` @@ -119538,7 +119482,7 @@ var uZ = { title: n, in: r }; -}, "addGroup"), Mlr = /* @__PURE__ */ x(() => Object.values(fr.records.groups), "getGroups"), Dlr = /* @__PURE__ */ x(function({ +}, "addGroup"), Llr = /* @__PURE__ */ x(() => Object.values(fr.records.groups), "getGroups"), Rlr = /* @__PURE__ */ x(function({ lhsId: t, rhsId: e, lhsDir: r, @@ -119549,11 +119493,11 @@ var uZ = { rhsGroup: o, title: l }) { - if (!fZ(r)) + if (!cZ(r)) throw new Error( `Invalid direction given for left hand side of edge ${t}--${e}. Expected (L,R,T,B) got ${r}` ); - if (!fZ(n)) + if (!cZ(n)) throw new Error( `Invalid direction given for right hand side of edge ${t}--${e}. Expected (L,R,T,B) got ${n}` ); @@ -119586,14 +119530,14 @@ var uZ = { title: l }; fr.records.edges.push(f), fr.records.nodes[t] && fr.records.nodes[e] && (fr.records.nodes[t].edges.push(fr.records.edges[fr.records.edges.length - 1]), fr.records.nodes[e].edges.push(fr.records.edges[fr.records.edges.length - 1])); -}, "addEdge"), Nlr = /* @__PURE__ */ x(() => fr.records.edges, "getEdges"), Ilr = /* @__PURE__ */ x(() => { +}, "addEdge"), Mlr = /* @__PURE__ */ x(() => fr.records.edges, "getEdges"), Dlr = /* @__PURE__ */ x(() => { if (fr.records.dataStructures === void 0) { const t = Object.entries(fr.records.nodes).reduce((a, [o, l]) => (a[o] = l.edges.reduce((u, h) => { if (h.lhsId === o) { - const f = ER(h.lhsDir, h.rhsDir); + const f = SR(h.lhsDir, h.rhsDir); f && (u[f] = h.rhsId); } else { - const f = ER(h.rhsDir, h.lhsDir); + const f = SR(h.rhsDir, h.lhsDir); f && (u[f] = h.lhsId); } return u; @@ -119608,7 +119552,7 @@ var uZ = { r[u] = 1, delete n[u]; const h = t[u], [f, d] = o[u]; Object.entries(h).forEach(([p, g]) => { - r[g] || (o[g] = xlr( + r[g] || (o[g] = ylr( [f, d], p ), l.push(g)); @@ -119625,43 +119569,43 @@ var uZ = { }; } return fr.records.dataStructures; -}, "getDataStructures"), Plr = /* @__PURE__ */ x((t, e) => { +}, "getDataStructures"), Nlr = /* @__PURE__ */ x((t, e) => { fr.records.elements[t] = e; -}, "setElementForId"), $lr = /* @__PURE__ */ x((t) => fr.records.elements[t], "getElementById"), SS = { - clear: Slr, +}, "setElementForId"), Ilr = /* @__PURE__ */ x((t) => fr.records.elements[t], "getElementById"), kS = { + clear: Olr, setDiagramTitle: fa, getDiagramTitle: xs, setAccTitle: Zi, getAccTitle: vs, setAccDescription: ys, getAccDescription: bs, - addService: Tlr, - getServices: Clr, - addJunction: Elr, - getJunctions: _lr, - getNodes: Alr, - getNode: Llr, - addGroup: Rlr, - getGroups: Mlr, - addEdge: Dlr, - getEdges: Nlr, - setElementForId: Plr, - getElementById: $lr, - getDataStructures: Ilr + addService: klr, + getServices: Slr, + addJunction: Tlr, + getJunctions: Clr, + getNodes: Elr, + getNode: _lr, + addGroup: Alr, + getGroups: Llr, + addEdge: Rlr, + getEdges: Mlr, + setElementForId: Nlr, + getElementById: Ilr, + getDataStructures: Dlr }; function Ai(t) { const e = be().architecture; - return e != null && e[t] ? e[t] : jve[t]; + return e != null && e[t] ? e[t] : Xve[t]; } x(Ai, "getConfigField"); -var Blr = /* @__PURE__ */ x((t, e) => { +var Plr = /* @__PURE__ */ x((t, e) => { Mx(t, e), t.groups.map(e.addGroup), t.services.map((r) => e.addService({ ...r, type: "service" })), t.junctions.map((r) => e.addJunction({ ...r, type: "junction" })), t.edges.map(e.addEdge); -}, "populateDb"), Flr = { +}, "populateDb"), $lr = { parse: /* @__PURE__ */ x(async (t) => { const e = await mm("architecture", t); - X.debug(e), Blr(e, SS); + X.debug(e), Plr(e, kS); }, "parse") -}, zlr = /* @__PURE__ */ x((t) => ` +}, Blr = /* @__PURE__ */ x((t) => ` .edge { stroke-width: ${t.archEdgeWidth}; stroke: ${t.archEdgeColor}; @@ -119692,7 +119636,7 @@ var Blr = /* @__PURE__ */ x((t, e) => { display: -webkit-box; -webkit-box-orient: vertical; } -`, "getStyles"), Vlr = zlr, Op = /* @__PURE__ */ x((t) => `${t}`, "wrapIcon"), nb = { +`, "getStyles"), Flr = Blr, Op = /* @__PURE__ */ x((t) => `${t}`, "wrapIcon"), nb = { prefix: "mermaid-architecture", height: 80, width: 80, @@ -119722,12 +119666,12 @@ var Blr = /* @__PURE__ */ x((t, e) => { '' ) }, - unknown: Fie, + unknown: $ie, blank: { body: Op("") } } -}, Ulr = /* @__PURE__ */ x(async function(t, e) { +}, zlr = /* @__PURE__ */ x(async function(t, e) { const r = Ai("padding"), n = Ai("iconSize"), i = n / 2, s = n / 6, a = s / 2; await Promise.all( e.edges().map(async (o) => { @@ -119742,23 +119686,23 @@ var Blr = /* @__PURE__ */ x((t, e) => { targetArrow: g, targetGroup: m, label: v - } = Zve(o); + } = Hve(o); let { x: y, y: b } = o[0].sourceEndpoint(); const { x: w, y: O } = o[0].midpoint(); let { x: S, y: C } = o[0].targetEndpoint(); const T = r + 4; - if (f && (Oa(u) ? y += u === "L" ? -T : T : b += u === "T" ? -T : T + 18), m && (Oa(p) ? S += p === "L" ? -T : T : C += p === "T" ? -T : T + 18), !f && ((L = SS.getNode(l)) == null ? void 0 : L.type) === "junction" && (Oa(u) ? y += u === "L" ? i : -i : b += u === "T" ? i : -i), !m && ((E = SS.getNode(d)) == null ? void 0 : E.type) === "junction" && (Oa(p) ? S += p === "L" ? i : -i : C += p === "T" ? i : -i), o[0]._private.rscratch) { + if (f && (Oa(u) ? y += u === "L" ? -T : T : b += u === "T" ? -T : T + 18), m && (Oa(p) ? S += p === "L" ? -T : T : C += p === "T" ? -T : T + 18), !f && ((L = kS.getNode(l)) == null ? void 0 : L.type) === "junction" && (Oa(u) ? y += u === "L" ? i : -i : b += u === "T" ? i : -i), !m && ((E = kS.getNode(d)) == null ? void 0 : E.type) === "junction" && (Oa(p) ? S += p === "L" ? i : -i : C += p === "T" ? i : -i), o[0]._private.rscratch) { const R = t.insert("g"); if (R.insert("path").attr("d", `M ${y},${b} L ${w},${O} L${S},${C} `).attr("class", "edge"), h) { - const _ = Oa(u) ? ZO[u](y, s) : y - a, A = $f(u) ? ZO[u](b, s) : b - a; - R.insert("polygon").attr("points", hZ[u](s)).attr("transform", `translate(${_},${A})`).attr("class", "arrow"); + const _ = Oa(u) ? XO[u](y, s) : y - a, A = $f(u) ? XO[u](b, s) : b - a; + R.insert("polygon").attr("points", lZ[u](s)).attr("transform", `translate(${_},${A})`).attr("class", "arrow"); } if (g) { - const _ = Oa(p) ? ZO[p](S, s) : S - a, A = $f(p) ? ZO[p](C, s) : C - a; - R.insert("polygon").attr("points", hZ[p](s)).attr("transform", `translate(${_},${A})`).attr("class", "arrow"); + const _ = Oa(p) ? XO[p](S, s) : S - a, A = $f(p) ? XO[p](C, s) : C - a; + R.insert("polygon").attr("points", lZ[p](s)).attr("transform", `translate(${_},${A})`).attr("class", "arrow"); } if (v) { - const _ = Xve(u, p) ? "XY" : Oa(u) ? "X" : "Y"; + const _ = Gve(u, p) ? "XY" : Oa(u) ? "X" : "Y"; let A = 0; _ === "X" ? A = Math.abs(y - S) : _ === "Y" ? A = Math.abs(b - C) / 1.5 : A = Math.abs(y - S) / 2; const $ = R.append("g"); @@ -119776,9 +119720,9 @@ var Blr = /* @__PURE__ */ x((t, e) => { else if (_ === "Y") $.attr("transform", "translate(" + w + ", " + O + ") rotate(-90)"); else if (_ === "XY") { - const k = ER(u, p); - if (k && ylr(k)) { - const N = $.node().getBoundingClientRect(), [M, I] = wlr(k); + const k = SR(u, p); + if (k && mlr(k)) { + const N = $.node().getBoundingClientRect(), [M, I] = blr(k); $.attr("dominant-baseline", "auto").attr("transform", `rotate(${-1 * M * I * 45})`); const D = $.node().getBoundingClientRect(); $.attr( @@ -119795,7 +119739,7 @@ var Blr = /* @__PURE__ */ x((t, e) => { } }) ); -}, "drawEdges"), qlr = /* @__PURE__ */ x(async function(t, e) { +}, "drawEdges"), Vlr = /* @__PURE__ */ x(async function(t, e) { const n = Ai("padding") * 0.75, i = Ai("fontSize"), a = Ai("iconSize") / 2; await Promise.all( e.nodes().map(async (o) => { @@ -119808,7 +119752,7 @@ var Blr = /* @__PURE__ */ x((t, e) => { if (l.icon) { const v = p.append("g"); v.html( - `${await E8(l.icon, { height: n, width: n, fallbackPrefix: nb.prefix })}` + `${await T8(l.icon, { height: n, width: n, fallbackPrefix: nb.prefix })}` ), v.attr( "transform", "translate(" + (g + a + 1) + ", " + (m + a + 1) + ")" @@ -119833,7 +119777,7 @@ var Blr = /* @__PURE__ */ x((t, e) => { } }) ); -}, "drawGroups"), Ylr = /* @__PURE__ */ x(async function(t, e, r) { +}, "drawGroups"), Ulr = /* @__PURE__ */ x(async function(t, e, r) { var n; for (const i of r) { const s = e.append("g"), a = Ai("iconSize"); @@ -119853,11 +119797,11 @@ var Blr = /* @__PURE__ */ x((t, e) => { const o = s.append("g"); if (i.icon) o.html( - `${await E8(i.icon, { height: a, width: a, fallbackPrefix: nb.prefix })}` + `${await T8(i.icon, { height: a, width: a, fallbackPrefix: nb.prefix })}` ); else if (i.iconText) { o.html( - `${await E8("blank", { height: a, width: a, fallbackPrefix: nb.prefix })}` + `${await T8("blank", { height: a, width: a, fallbackPrefix: nb.prefix })}` ); const d = o.append("g").append("foreignObject").attr("width", a).attr("height", a).append("div").attr("class", "node-icon-text").attr("style", `height: ${a}px;`).append("div").html(i.iconText), p = (n = parseInt( window.getComputedStyle(d.node(), null).getPropertyValue("font-size").replace(/\D/g, "") @@ -119873,7 +119817,7 @@ var Blr = /* @__PURE__ */ x((t, e) => { i.width = l, i.height = u, t.setElementForId(i.id, s); } return 0; -}, "drawServices"), Qlr = /* @__PURE__ */ x(function(t, e, r) { +}, "drawServices"), qlr = /* @__PURE__ */ x(function(t, e, r) { r.forEach((n) => { const i = e.append("g"), s = Ai("iconSize"); i.append("g").append("rect").attr("id", "node-" + n.id).attr("fill-opacity", "0").attr("width", s).attr("height", s), i.attr("class", "architecture-junction"); @@ -119881,14 +119825,14 @@ var Blr = /* @__PURE__ */ x((t, e) => { i.width = o, i.height = l, t.setElementForId(n.id, i); }); }, "drawJunctions"); -Vie([ +Fie([ { name: nb.prefix, icons: nb } ]); -Uc.use(mlr); -function Kve(t, e) { +Uc.use(plr); +function Zve(t, e) { t.forEach((r) => { e.add({ group: "nodes", @@ -119905,8 +119849,8 @@ function Kve(t, e) { }); }); } -x(Kve, "addServices"); -function Jve(t, e) { +x(Zve, "addServices"); +function jve(t, e) { t.forEach((r) => { e.add({ group: "nodes", @@ -119921,8 +119865,8 @@ function Jve(t, e) { }); }); } -x(Jve, "addJunctions"); -function eye(t, e) { +x(jve, "addJunctions"); +function Kve(t, e) { e.nodes().map((r) => { const n = Qp(r); if (n.type === "group") @@ -119930,8 +119874,8 @@ function eye(t, e) { n.x = r.position().x, n.y = r.position().y, t.getElementById(n.id).attr("transform", "translate(" + (n.x || 0) + "," + (n.y || 0) + ")"); }); } -x(eye, "positionNodes"); -function tye(t, e) { +x(Kve, "positionNodes"); +function Jve(t, e) { t.forEach((r) => { e.add({ group: "nodes", @@ -119946,10 +119890,10 @@ function tye(t, e) { }); }); } -x(tye, "addGroups"); -function rye(t, e) { +x(Jve, "addGroups"); +function eye(t, e) { t.forEach((r) => { - const { lhsId: n, rhsId: i, lhsInto: s, lhsGroup: a, rhsInto: o, lhsDir: l, rhsDir: u, rhsGroup: h, title: f } = r, d = Xve(r.lhsDir, r.rhsDir) ? "segments" : "straight", p = { + const { lhsId: n, rhsId: i, lhsInto: s, lhsGroup: a, rhsInto: o, lhsDir: l, rhsDir: u, rhsGroup: h, title: f } = r, d = Gve(r.lhsDir, r.rhsDir) ? "segments" : "straight", p = { id: `${n}-${i}`, label: f, source: n, @@ -119970,8 +119914,8 @@ function rye(t, e) { }); }); } -x(rye, "addEdges"); -function nye(t) { +x(eye, "addEdges"); +function tye(t) { const e = t.map((i) => { const s = {}, a = {}; return Object.entries(i).forEach(([o, [l, u]]) => { @@ -119992,8 +119936,8 @@ function nye(t) { vertical: n }; } -x(nye, "getAlignments"); -function iye(t) { +x(tye, "getAlignments"); +function rye(t) { const e = [], r = /* @__PURE__ */ x((i) => `${i[0]},${i[1]}`, "posToStr"), n = /* @__PURE__ */ x((i) => i.split(",").map((s) => parseInt(s)), "strToPos"); return t.forEach((i) => { const s = Object.fromEntries( @@ -120014,8 +119958,8 @@ function iye(t) { Object.entries(l).forEach(([d, p]) => { const g = r([f[0] + p[0], f[1] + p[1]]), m = s[g]; m && !o[g] && (a.push(g), e.push({ - [uZ[d]]: m, - [uZ[vlr(d)]]: h, + [oZ[d]]: m, + [oZ[glr(d)]]: h, gap: 1.5 * Ai("iconSize") })); }); @@ -120024,8 +119968,8 @@ function iye(t) { } }), e; } -x(iye, "getRelativeConstraints"); -function sye(t, e, r, n, { spatialMaps: i }) { +x(rye, "getRelativeConstraints"); +function nye(t, e, r, n, { spatialMaps: i }) { return new Promise((s) => { const a = et("body").append("div").attr("id", "cy").attr("style", "display:none"), o = Uc({ container: document.getElementById("cy"), @@ -120087,8 +120031,8 @@ function sye(t, e, r, n, { spatialMaps: i }) { } ] }); - a.remove(), tye(r, o), Kve(t, o), Jve(e, o), rye(n, o); - const l = nye(i), u = iye(i), h = o.layout({ + a.remove(), Jve(r, o), Zve(t, o), jve(e, o), eye(n, o); + const l = tye(i), u = rye(i), h = o.layout({ name: "fcose", quality: "proof", styleEnabled: !1, @@ -120141,7 +120085,7 @@ function sye(t, e, r, n, { spatialMaps: i }) { if ((d = p.data) != null && d.call(p)) { const { x: g, y: m } = p.source().position(), { x: v, y } = p.target().position(); if (g !== v && m !== y) { - const b = p.sourceEndpoint(), w = p.targetEndpoint(), { sourceDir: O } = Zve(p), [S, C] = $f(O) ? [b.x, w.y] : [w.x, b.y], { weights: T, distances: L } = f(b, w, S, C); + const b = p.sourceEndpoint(), w = p.targetEndpoint(), { sourceDir: O } = Hve(p), [S, C] = $f(O) ? [b.x, w.y] : [w.x, b.y], { weights: T, distances: L } = f(b, w, S, C); p.style("segment-distances", L), p.style("segment-weights", T); } } @@ -120151,48 +120095,48 @@ function sye(t, e, r, n, { spatialMaps: i }) { }); }); } -x(sye, "layoutArchitecture"); -var Wlr = /* @__PURE__ */ x(async (t, e, r, n) => { +x(nye, "layoutArchitecture"); +var Ylr = /* @__PURE__ */ x(async (t, e, r, n) => { const i = n.db, s = i.getServices(), a = i.getJunctions(), o = i.getGroups(), l = i.getEdges(), u = i.getDataStructures(), h = Z0(e), f = h.append("g"); f.attr("class", "architecture-edges"); const d = h.append("g"); d.attr("class", "architecture-services"); const p = h.append("g"); - p.attr("class", "architecture-groups"), await Ylr(i, d, s), Qlr(i, d, a); - const g = await sye(s, a, o, l, u); - await Ulr(f, g), await qlr(p, g), eye(i, g), Z1(void 0, h, Ai("padding"), Ai("useMaxWidth")); -}, "draw"), Glr = { draw: Wlr }, Hlr = { - parser: Flr, - db: SS, - renderer: Glr, - styles: Vlr -}; -const Xlr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ + p.attr("class", "architecture-groups"), await Ulr(i, d, s), qlr(i, d, a); + const g = await nye(s, a, o, l, u); + await zlr(f, g), await Vlr(p, g), Kve(i, g), Z1(void 0, h, Ai("padding"), Ai("useMaxWidth")); +}, "draw"), Qlr = { draw: Ylr }, Wlr = { + parser: $lr, + db: kS, + renderer: Qlr, + styles: Flr +}; +const Glr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - diagram: Hlr + diagram: Wlr +}, Symbol.toStringTag, { value: "Module" })), Hlr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ + __proto__: null, + InfoModule: rpe, + createInfoServices: npe +}, Symbol.toStringTag, { value: "Module" })), Xlr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ + __proto__: null, + PacketModule: ipe, + createPacketServices: spe }, Symbol.toStringTag, { value: "Module" })), Zlr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - InfoModule: ipe, - createInfoServices: spe + PieModule: ape, + createPieServices: ope }, Symbol.toStringTag, { value: "Module" })), jlr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - PacketModule: ape, - createPacketServices: ope + ArchitectureModule: lpe, + createArchitectureServices: cpe }, Symbol.toStringTag, { value: "Module" })), Klr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - PieModule: lpe, - createPieServices: cpe -}, Symbol.toStringTag, { value: "Module" })), Jlr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ - __proto__: null, - ArchitectureModule: upe, - createArchitectureServices: hpe -}, Symbol.toStringTag, { value: "Module" })), ecr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ - __proto__: null, - GitGraphModule: rpe, - createGitGraphServices: npe + GitGraphModule: epe, + createGitGraphServices: tpe }, Symbol.toStringTag, { value: "Module" })); export { - icr as default, - D7t as defaultButtons, + rcr as default, + R7t as defaultButtons, ev as predefinedButtons }; diff --git a/docs/collaboration.html b/docs/collaboration.html index 1b7e82b..96beeb4 100644 --- a/docs/collaboration.html +++ b/docs/collaboration.html @@ -472,7 +472,7 @@

Other Collaborative Features16cc606b + 75fb37d1 @ main

diff --git a/docs/comments.html b/docs/comments.html index c8e4c15..e679240 100644 --- a/docs/comments.html +++ b/docs/comments.html @@ -622,7 +622,7 @@

Suggestions - 16cc606b + 75fb37d1 @ main diff --git a/docs/genindex.html b/docs/genindex.html index 800fa57..094def9 100644 --- a/docs/genindex.html +++ b/docs/genindex.html @@ -367,7 +367,7 @@ - 16cc606b + 75fb37d1 @ main diff --git a/docs/index.html b/docs/index.html index c6f2339..6fe5aca 100644 --- a/docs/index.html +++ b/docs/index.html @@ -426,7 +426,7 @@

MyST Editor - User Manual - 16cc606b + 75fb37d1 @ main diff --git a/docs/introduction.html b/docs/introduction.html index 907f0e4..e40c672 100644 --- a/docs/introduction.html +++ b/docs/introduction.html @@ -426,7 +426,7 @@

Introduction - 16cc606b + 75fb37d1 @ main diff --git a/docs/mermaid.html b/docs/mermaid.html index 8cc5d6e..2a402e5 100644 --- a/docs/mermaid.html +++ b/docs/mermaid.html @@ -430,7 +430,7 @@

Mermaid Diagrams16cc606b + 75fb37d1 @ main diff --git a/docs/rich-links.html b/docs/rich-links.html index 8199808..ec6ae69 100644 --- a/docs/rich-links.html +++ b/docs/rich-links.html @@ -506,7 +506,7 @@

View Mode Buttons16cc606b + 75fb37d1 @ main