diff --git a/MystEditor.js b/MystEditor.js index 2a3f3a7..6fa3f41 100644 --- a/MystEditor.js +++ b/MystEditor.js @@ -1,6 +1,6 @@ -var J2e = Object.defineProperty; -var ebe = (t, e, r) => e in t ? J2e(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r; -var fr = (t, e, r) => (ebe(t, typeof e != "symbol" ? e + "" : e, r), r), tbe = (t, e, r) => { +var ebe = Object.defineProperty; +var tbe = (t, e, r) => e in t ? ebe(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r; +var fr = (t, e, r) => (tbe(t, typeof e != "symbol" ? e + "" : e, r), r), rbe = (t, e, r) => { if (!e.has(t)) throw TypeError("Cannot " + r); }; @@ -9,14 +9,14 @@ var Jw = (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 pv = (t, e, r) => (tbe(t, e, "access private method"), r); -var Px, Ut, Mj, Dj, Wd, NB, Pj, C7, Nj, l2 = {}, Ij = [], rbe = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, TT = Array.isArray; +var pv = (t, e, r) => (rbe(t, e, "access private method"), r); +var Px, Ut, Dj, Pj, Wd, NB, Nj, C7, Ij, l2 = {}, $j = [], nbe = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, TT = Array.isArray; function Yu(t, e) { for (var r in e) t[r] = e[r]; return t; } -function $j(t) { +function Bj(t) { var e = t.parentNode; e && e.removeChild(t); } @@ -30,10 +30,10 @@ function su(t, e, r) { return Ly(t, a, n, i, null); } function Ly(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 ? ++Mj : 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 ? ++Dj : i, __i: -1, __u: 0 }; return i == null && Ut.vnode != null && Ut.vnode(s), s; } -function nbe() { +function ibe() { return { current: null }; } function au(t) { @@ -50,7 +50,7 @@ function im(t, e) { return r.__e; return typeof t.type == "function" ? im(t) : null; } -function Bj(t) { +function Fj(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,37 +58,37 @@ function Bj(t) { t.__e = t.__c.base = r.__e; break; } - return Bj(t); + return Fj(t); } } function E7(t) { - (!t.__d && (t.__d = !0) && Wd.push(t) && !c5.__r++ || NB !== Ut.debounceRendering) && ((NB = Ut.debounceRendering) || Pj)(c5); + (!t.__d && (t.__d = !0) && Wd.push(t) && !c5.__r++ || NB !== Ut.debounceRendering) && ((NB = Ut.debounceRendering) || Nj)(c5); } function c5() { var t, e, r, n, i, s, a, o, l; for (Wd.sort(C7); t = Wd.shift(); ) - t.__d && (e = Wd.length, n = void 0, s = (i = (r = t).__v).__e, o = [], l = [], (a = r.__P) && ((n = Yu({}, i)).__v = i.__v + 1, Ut.vnode && Ut.vnode(n), PM(a, n, i, r.__n, a.ownerSVGElement !== void 0, 32 & i.__u ? [s] : null, o, s == null ? im(i) : s, !!(32 & i.__u), l), n.__.__k[n.__i] = n, Qj(o, n, l), n.__e != s && Bj(n)), Wd.length > e && Wd.sort(C7)); + t.__d && (e = Wd.length, n = void 0, s = (i = (r = t).__v).__e, o = [], l = [], (a = r.__P) && ((n = Yu({}, i)).__v = i.__v + 1, Ut.vnode && Ut.vnode(n), PM(a, n, i, r.__n, a.ownerSVGElement !== void 0, 32 & i.__u ? [s] : null, o, s == null ? im(i) : s, !!(32 & i.__u), l), n.__.__k[n.__i] = n, Uj(o, n, l), n.__e != s && Fj(n)), Wd.length > e && Wd.sort(C7)); c5.__r = 0; } -function Fj(t, e, r, n, i, s, a, o, l, u, h) { - var f, d, p, g, m, v = n && n.__k || Ij, y = e.length; - for (r.__d = l, ibe(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 ? l2 : v[p.__i] || l2, p.__i = f, PM(t, p, d, i, s, a, o, l, u, h), g = p.__e, p.ref && d.ref != p.ref && (d.ref && NM(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 = zj(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); +function zj(t, e, r, n, i, s, a, o, l, u, h) { + var f, d, p, g, m, v = n && n.__k || $j, y = e.length; + for (r.__d = l, sbe(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 ? l2 : v[p.__i] || l2, p.__i = f, PM(t, p, d, i, s, a, o, l, u, h), g = p.__e, p.ref && d.ref != p.ref && (d.ref && NM(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 = Qj(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 ibe(t, e, r) { +function sbe(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 ? Ly(null, i, null, null, i) : TT(i) ? Ly(au, { children: i }, null, null, null) : i.constructor === void 0 && i.__b > 0 ? Ly(i.type, i.props, i.key, i.ref ? i.ref : null, i.__v) : i) != null ? (i.__ = t, i.__b = t.__b + 1, o = sbe(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 = im(s)), _7(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 ? Ly(null, i, null, null, i) : TT(i) ? Ly(au, { children: i }, null, null, null) : i.constructor === void 0 && i.__b > 0 ? Ly(i.type, i.props, i.key, i.ref ? i.ref : null, i.__v) : i) != null ? (i.__ = t, i.__b = t.__b + 1, o = abe(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 = im(s)), _7(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 = im(s)), _7(s, s)); } -function zj(t, e, r) { +function Qj(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 = zj(n[i], e, r)); + n[i] && (n[i].__ = t, e = Qj(n[i], e, r)); return e; } return t.__e != e && (r.insertBefore(t.__e, e || null), e = t.__e), e && e.nextSibling; @@ -98,7 +98,7 @@ function ju(t, e) { ju(r, e); }) : e.push(t)), e; } -function sbe(t, e, r, n) { +function abe(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; @@ -118,7 +118,7 @@ function sbe(t, e, r, n) { return -1; } function IB(t, e, r) { - e[0] === "-" ? t.setProperty(e, r == null ? "" : r) : t[e] = r == null ? "" : typeof r != "number" || rbe.test(e) ? r : r + "px"; + e[0] === "-" ? t.setProperty(e, r == null ? "" : r) : t[e] = r == null ? "" : typeof r != "number" || nbe.test(e) ? r : r + "px"; } function eO(t, e, r, n, i) { var s; @@ -168,7 +168,7 @@ function PM(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 Ul(y, w), f.constructor = E, f.render = obe), 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 = Yu({}, f.__s)), Yu(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 Ul(y, w), f.constructor = E, f.render = lbe), 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 = Yu({}, f.__s)), Yu(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,15 +191,15 @@ function PM(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 = Yu(Yu({}, n), f.getChildContext())), d || f.getSnapshotBeforeUpdate == null || (m = f.getSnapshotBeforeUpdate(p, g)), Fj(t, TT(A = h != null && h.type === au && h.key == null ? h.props.children : h) ? A : [A], 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 = Yu(Yu({}, n), f.getChildContext())), d || f.getSnapshotBeforeUpdate == null || (m = f.getSnapshotBeforeUpdate(p, g)), zj(t, TT(A = h != null && h.type === au && h.key == null ? h.props.children : h) ? A : [A], 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 (L) { 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), Ut.__e(L, e, r); } else - s == null && e.__v === r.__v ? (e.__k = r.__k, e.__e = r.__e) : e.__e = abe(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 = obe(r.__e, e, r, n, i, s, a, l, u); (h = Ut.diffed) && h(e); } -function Qj(t, e, r) { +function Uj(t, e, r) { e.__d = void 0; for (var n = 0; n < r.length; n++) NM(r[n], r[++n], r[++n]); @@ -213,7 +213,7 @@ function Qj(t, e, r) { } }); } -function abe(t, e, r, n, i, s, a, o, l) { +function obe(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,9 +239,9 @@ function abe(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 || eO(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 = ""), Fj(t, TT(d) ? d : [d], e, r, n, i && b !== "foreignObject", s, a, s ? s[0] : r.__k && im(r, 0), o, l), s != null) + else if (f && (t.innerHTML = ""), zj(t, TT(d) ? d : [d], e, r, n, i && b !== "foreignObject", s, a, s ? s[0] : r.__k && im(r, 0), o, l), s != null) for (u = s.length; u--; ) - s[u] != null && $j(s[u]); + s[u] != null && Bj(s[u]); o || (u = "value", g !== void 0 && (g !== t[u] || b === "progress" && !g || b === "option" && g !== v[u]) && eO(t, u, g, v[u], !1), u = "checked", m !== void 0 && m !== t[u] && eO(t, u, m, v[u], !1)); } return t; @@ -267,26 +267,26 @@ function _7(t, e, r) { if (n = t.__k) for (i = 0; i < n.length; i++) n[i] && _7(n[i], e, r || typeof t.type != "function"); - r || t.__e == null || $j(t.__e), t.__ = t.__e = t.__d = void 0; + r || t.__e == null || Bj(t.__e), t.__ = t.__e = t.__d = void 0; } -function obe(t, e, r) { +function lbe(t, e, r) { return this.constructor(t, r); } function jc(t, e, r) { var n, i, s, a; - Ut.__ && Ut.__(t, e), i = (n = typeof r == "function") ? null : r && r.__k || e.__k, s = [], a = [], PM(e, t = (!n && r || e).__k = su(au, null, [t]), i || l2, l2, e.ownerSVGElement !== void 0, !n && r ? [r] : i ? null : e.firstChild ? Px.call(e.childNodes) : null, s, !n && r ? r : i ? i.__e : e.firstChild, n, a), Qj(s, t, a); + Ut.__ && Ut.__(t, e), i = (n = typeof r == "function") ? null : r && r.__k || e.__k, s = [], a = [], PM(e, t = (!n && r || e).__k = su(au, null, [t]), i || l2, l2, e.ownerSVGElement !== void 0, !n && r ? [r] : i ? null : e.firstChild ? Px.call(e.childNodes) : null, s, !n && r ? r : i ? i.__e : e.firstChild, n, a), Uj(s, t, a); } -function Uj(t, e) { - jc(t, e, Uj); +function Vj(t, e) { + jc(t, e, Vj); } -function lbe(t, e, r) { +function cbe(t, e, r) { var n, i, s, a, o = Yu({}, 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 ? Px.call(arguments, 2) : r), Ly(t.type, o, n || t.key, i || t.ref, null); } -function Vj(t, e) { - var r = { __c: e = "__cC" + Nj++, __: t, Consumer: function(n, i) { +function qj(t, e) { + var r = { __c: e = "__cC" + Ij++, __: t, Consumer: function(n, i) { return n.children(i); }, Provider: function(n) { var i, s; @@ -306,7 +306,7 @@ function Vj(t, e) { } }; return r.Provider.__ = r.Consumer.contextType = r; } -Px = Ij.slice, Ut = { __e: function(t, e, r, n) { +Px = $j.slice, Ut = { __e: function(t, e, r, n) { for (var i, s, a; e = e.__; ) if ((i = e.__c) && !i.__) try { @@ -316,28 +316,28 @@ Px = Ij.slice, Ut = { __e: function(t, e, r, n) { t = o; } throw t; -} }, Mj = 0, Dj = function(t) { +} }, Dj = 0, Pj = function(t) { return t != null && t.constructor == null; }, Ul.prototype.setState = function(t, e) { var r; r = this.__s != null && this.__s !== this.state ? this.__s : this.__s = Yu({}, this.state), typeof t == "function" && (t = t(Yu({}, r), this.props)), t && Yu(r, t), t != null && this.__v && (e && this._sb.push(e), E7(this)); }, Ul.prototype.forceUpdate = function(t) { this.__v && (this.__e = !0, t && this.__h.push(t), E7(this)); -}, Ul.prototype.render = au, Wd = [], Pj = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, C7 = function(t, e) { +}, Ul.prototype.render = au, Wd = [], Nj = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, C7 = function(t, e) { return t.__v.__b - e.__v.__b; -}, c5.__r = 0, Nj = 0; -var Pf, Mn, h_, FB, sm = 0, qj = [], Y4 = [], zB = Ut.__b, QB = Ut.__r, UB = Ut.diffed, VB = Ut.__c, qB = Ut.unmount; +}, c5.__r = 0, Ij = 0; +var Pf, Mn, h_, FB, sm = 0, Yj = [], Y4 = [], zB = Ut.__b, QB = Ut.__r, UB = Ut.diffed, VB = Ut.__c, qB = Ut.unmount; function v1(t, e) { Ut.__h && Ut.__h(Mn, t, sm || e), sm = 0; var r = Mn.__H || (Mn.__H = { __: [], __h: [] }); return t >= r.__.length && r.__.push({ __V: Y4 }), r.__[t]; } function fi(t) { - return sm = 1, CT(Yj, t); + return sm = 1, CT(Wj, t); } function CT(t, e, r) { var n = v1(Pf++, 2); - if (n.t = t, !n.__c && (n.__ = [r ? r(e) : Yj(void 0, e), function(o) { + if (n.t = t, !n.__c && (n.__ = [r ? r(e) : Wj(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 = Mn, !Mn.u)) { @@ -384,7 +384,7 @@ function ss(t) { return { current: t }; }, []); } -function cbe(t, e, r) { +function ube(t, e, r) { sm = 6, ET(function() { return typeof t == "function" ? (t(e()), function() { return t(null); @@ -409,7 +409,7 @@ function cc(t) { function A7(t, e) { Ut.useDebugValue && Ut.useDebugValue(e ? e(t) : t); } -function ube() { +function hbe() { var t = v1(Pf++, 11); if (!t.__) { for (var e = Mn.__v; e !== null && !e.__m && e.__ !== null; ) @@ -419,8 +419,8 @@ function ube() { } return t.__; } -function hbe() { - for (var t; t = qj.shift(); ) +function fbe() { + for (var t; t = Yj.shift(); ) if (t.__P && t.__H) try { t.__H.__h.forEach(W4), t.__H.__h.forEach(L7), t.__H.__h = []; @@ -439,7 +439,7 @@ Ut.__b = function(t) { }, Ut.diffed = function(t) { UB && UB(t); var e = t.__c; - e && e.__H && (e.__H.__h.length && (qj.push(e) !== 1 && FB === Ut.requestAnimationFrame || ((FB = Ut.requestAnimationFrame) || fbe)(hbe)), e.__H.__.forEach(function(r) { + e && e.__H && (e.__H.__h.length && (Yj.push(e) !== 1 && FB === Ut.requestAnimationFrame || ((FB = Ut.requestAnimationFrame) || dbe)(fbe)), e.__H.__.forEach(function(r) { r.i && (r.__H = r.i), r.__V !== Y4 && (r.__ = r.__V), r.i = void 0, r.__V = Y4; })), h_ = Mn = null; }, Ut.__c = function(t, e) { @@ -466,7 +466,7 @@ Ut.__b = function(t) { }), r.__H = void 0, e && Ut.__e(e, r.__v)); }; var YB = typeof requestAnimationFrame == "function"; -function fbe(t) { +function dbe(t) { var e, r = function() { clearTimeout(n), YB && cancelAnimationFrame(e), setTimeout(t); }, n = setTimeout(r, 100); @@ -485,7 +485,7 @@ function IM(t, e) { return r !== t[n]; }); } -function Yj(t, e) { +function Wj(t, e) { return typeof e == "function" ? e(t) : e; } var eo = function() { @@ -504,18 +504,18 @@ function am(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 dbe(t) { +function pbe(t) { var e = /* @__PURE__ */ Object.create(null); return function(r) { return e[r] === void 0 && (e[r] = t(r)), e[r]; }; } -var pbe = /^((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)-.*))$/, gbe = /* @__PURE__ */ dbe( +var gbe = /^((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)-.*))$/, mbe = /* @__PURE__ */ pbe( function(t) { - return pbe.test(t) || t.charCodeAt(0) === 111 && t.charCodeAt(1) === 110 && t.charCodeAt(2) < 91; + return gbe.test(t) || t.charCodeAt(0) === 111 && t.charCodeAt(1) === 110 && t.charCodeAt(2) < 91; } ); -function Wj(t, e) { +function Gj(t, e) { for (var r in e) t[r] = e[r]; return t; @@ -532,7 +532,7 @@ function R7(t, e) { function M7(t) { this.props = t; } -function mbe(t, e) { +function vbe(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 : R7(this.props, i); @@ -549,53 +549,53 @@ var WB = Ut.__b; Ut.__b = function(t) { t.type && t.type.__f && t.ref && (t.props.ref = t.ref, t.ref = null), WB && WB(t); }; -var vbe = typeof Symbol < "u" && Symbol.for && Symbol.for("react.forward_ref") || 3911; -function ybe(t) { +var ybe = typeof Symbol < "u" && Symbol.for && Symbol.for("react.forward_ref") || 3911; +function bbe(t) { function e(r) { - var n = Wj({}, r); + var n = Gj({}, r); return delete n.ref, t(n, r.ref || null); } - return e.$$typeof = vbe, e.render = e, e.prototype.isReactComponent = e.__f = !0, e.displayName = "ForwardRef(" + (t.displayName || t.name) + ")", e; + return e.$$typeof = ybe, e.render = e, e.prototype.isReactComponent = e.__f = !0, e.displayName = "ForwardRef(" + (t.displayName || t.name) + ")", e; } var GB = function(t, e) { return t == null ? null : ju(ju(t).map(e)); -}, bbe = { map: GB, forEach: GB, count: function(t) { +}, xbe = { map: GB, forEach: GB, count: function(t) { return t ? ju(t).length : 0; }, only: function(t) { var e = ju(t); if (e.length !== 1) throw "Children.only"; return e[0]; -}, toArray: ju }, xbe = Ut.__e; +}, toArray: ju }, wbe = Ut.__e; Ut.__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); } - xbe(t, e, r, n); + wbe(t, e, r, n); }; var XB = Ut.unmount; -function Gj(t, e, r) { +function Xj(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 = Wj({}, t)).__c != null && (t.__c.__P === r && (t.__c.__P = e), t.__c = null), t.__k = t.__k && t.__k.map(function(n) { - return Gj(n, e, r); + }), t.__c.__H = null), (t = Gj({}, t)).__c != null && (t.__c.__P === r && (t.__c.__P = e), t.__c = null), t.__k = t.__k && t.__k.map(function(n) { + return Xj(n, e, r); })), t; } -function Xj(t, e, r) { +function Hj(t, e, r) { return t && r && (t.__v = null, t.__k = t.__k && t.__k.map(function(n) { - return Xj(n, e, r); + return Hj(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 G4() { this.__u = 0, this.t = null, this.__b = null; } -function Hj(t) { +function Zj(t) { var e = t.__.__c; return e && e.__a && e.__a(t); } -function wbe(t) { +function Obe(t) { var e, r, n; function i(s) { if (e || (e = t()).then(function(a) { @@ -619,7 +619,7 @@ Ut.unmount = function(t) { }, (G4.prototype = new Ul()).__c = function(t, e) { var r = e.__c, n = this; n.t == null && (n.t = []), n.t.push(r); - var i = Hj(n.__v), s = !1, a = function() { + var i = Zj(n.__v), s = !1, a = function() { s || (s = !0, r.__R = null, i ? i(o) : o()); }; r.__R = a; @@ -627,7 +627,7 @@ Ut.unmount = function(t) { if (!--n.__u) { if (n.state.__a) { var l = n.state.__a; - n.__v.__k[0] = Xj(l, l.__c.__P, l.__c.__O); + n.__v.__k[0] = Hj(l, l.__c.__P, l.__c.__O); } var u; for (n.setState({ __a: n.__b = null }); u = n.t.pop(); ) @@ -641,7 +641,7 @@ Ut.unmount = function(t) { if (this.__b) { if (this.__v.__k) { var r = document.createElement("div"), n = this.__v.__k[0].__c; - this.__v.__k[0] = Gj(this.__b, r, n.__O = n.__P); + this.__v.__k[0] = Xj(this.__b, r, n.__O = n.__P); } this.__b = null; } @@ -658,12 +658,12 @@ var HB = function(t, e, r) { t.u = r = r[2]; } }; -function Obe(t) { +function kbe(t) { return this.getChildContext = function() { return t.context; }, t.children; } -function kbe(t) { +function Sbe(t) { var e = this, r = t.i; e.componentWillUnmount = function() { jc(null, e.l), e.l = null, e.i = null; @@ -673,14 +673,14 @@ function kbe(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); - } }), jc(su(Obe, { context: e.context }, t.__v), e.l); + } }), jc(su(kbe, { context: e.context }, t.__v), e.l); } -function Sbe(t, e) { - var r = su(kbe, { __v: t, i: e }); +function Tbe(t, e) { + var r = su(Sbe, { __v: t, i: e }); return r.containerInfo = e, r; } (Jv.prototype = new Ul()).__a = function(t) { - var e = this, r = Hj(e.__v), n = e.o.get(t); + var e = this, r = Zj(e.__v), n = e.o.get(t); return n[0]++, function(i) { var s = function() { e.props.revealOrder ? (n.push(i), HB(e, t, n)) : i(); @@ -700,14 +700,14 @@ function Sbe(t, e) { HB(t, r, e); }); }; -var Zj = typeof Symbol < "u" && Symbol.for && Symbol.for("react.element") || 60103, Tbe = /^(?: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]/, Cbe = /^on(Ani|Tra|Tou|BeforeInp|Compo)/, Ebe = /[A-Z0-9]/g, _be = typeof document < "u", Abe = function(t) { +var jj = typeof Symbol < "u" && Symbol.for && Symbol.for("react.element") || 60103, Cbe = /^(?: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]/, Ebe = /^on(Ani|Tra|Tou|BeforeInp|Compo)/, _be = /[A-Z0-9]/g, Abe = typeof document < "u", Lbe = function(t) { return (typeof Symbol < "u" && typeof Symbol() == "symbol" ? /fil|che|rad/ : /fil|che|ra/).test(t); }; -function Lbe(t, e, r) { +function Rbe(t, e, r) { return e.__k == null && (e.textContent = ""), jc(t, e), typeof r == "function" && r(), t ? t.__c : null; } -function Rbe(t, e, r) { - return Uj(t, e), typeof r == "function" && r(), t ? t.__c : null; +function Mbe(t, e, r) { + return Vj(t, e), typeof r == "function" && r(), t ? t.__c : null; } Ul.prototype.isReactComponent = {}, ["componentWillMount", "componentWillReceiveProps", "componentWillUpdate"].forEach(function(t) { Object.defineProperty(Ul.prototype, t, { configurable: !0, get: function() { @@ -717,18 +717,18 @@ Ul.prototype.isReactComponent = {}, ["componentWillMount", "componentWillReceive } }); }); var ZB = Ut.event; -function Mbe() { -} function Dbe() { - return this.cancelBubble; } function Pbe() { + return this.cancelBubble; +} +function Nbe() { return this.defaultPrevented; } Ut.event = function(t) { - return ZB && (t = ZB(t)), t.persist = Mbe, t.isPropagationStopped = Dbe, t.isDefaultPrevented = Pbe, t.nativeEvent = t; + return ZB && (t = ZB(t)), t.persist = Dbe, t.isPropagationStopped = Pbe, t.isDefaultPrevented = Nbe, t.nativeEvent = t; }; -var $M, Nbe = { enumerable: !1, configurable: !0, get: function() { +var $M, Ibe = { enumerable: !1, configurable: !0, get: function() { return this.class; } }, jB = Ut.vnode; Ut.vnode = function(t) { @@ -736,17 +736,17 @@ Ut.vnode = function(t) { 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 || _be && s === "children" && n === "noscript" || s === "class" || s === "className")) { + if (!(s === "value" && "defaultValue" in r && a == null || Abe && 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" || Abe(r.type) ? o === "onfocus" ? s = "onfocusin" : o === "onblur" ? s = "onfocusout" : Cbe.test(s) ? s = o : n.indexOf("-") === -1 && Tbe.test(s) ? s = s.replace(Ebe, "-$&").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" || Lbe(r.type) ? o === "onfocus" ? s = "onfocusin" : o === "onblur" ? s = "onfocusout" : Ebe.test(s) ? s = o : n.indexOf("-") === -1 && Cbe.test(s) ? s = s.replace(_be, "-$&").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 = ju(r.children).forEach(function(l) { l.props.selected = i.value.indexOf(l.props.value) != -1; })), n == "select" && i.defaultValue != null && (i.value = ju(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", Nbe)) : (r.className && !r.class || r.class && r.className) && (i.class = i.className = r.className), e.props = i; - }(t), t.$$typeof = Zj, jB && jB(t); + })), r.class && !r.className ? (i.class = r.class, Object.defineProperty(i, "className", Ibe)) : (r.className && !r.class || r.class && r.className) && (i.class = i.className = r.className), e.props = i; + }(t), t.$$typeof = jj, jB && jB(t); }; var KB = Ut.__r; Ut.__r = function(t) { @@ -758,43 +758,43 @@ Ut.diffed = function(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), $M = null; }; -var Ibe = { ReactCurrentDispatcher: { current: { readContext: function(t) { +var $be = { ReactCurrentDispatcher: { current: { readContext: function(t) { return $M.__n[t.__c].props.value; } } } }; -function $be(t) { +function Bbe(t) { return su.bind(null, t); } function _T(t) { - return !!t && t.$$typeof === Zj; -} -function Bbe(t) { - return _T(t) && t.type === au; + return !!t && t.$$typeof === jj; } function Fbe(t) { - return _T(t) ? lbe.apply(null, arguments) : t; + return _T(t) && t.type === au; } function zbe(t) { - return !!t.__k && (jc(null, t), !0); + return _T(t) ? cbe.apply(null, arguments) : t; } function Qbe(t) { + return !!t.__k && (jc(null, t), !0); +} +function Ube(t) { return t && (t.base || t.nodeType === 1 && t) || null; } -var Ube = function(t, e) { +var Vbe = function(t, e) { return t(e); -}, Vbe = function(t, e) { +}, qbe = function(t, e) { return t(e); -}, qbe = au; -function jj(t) { +}, Ybe = au; +function Kj(t) { t(); } -function Ybe(t) { +function Wbe(t) { return t; } -function Wbe() { - return [!1, jj]; +function Gbe() { + return [!1, Kj]; } -var Gbe = ET, Xbe = _T; -function Hbe(t, e) { +var Xbe = ET, Hbe = _T; +function Zbe(t, e) { var r = e(), n = fi({ h: { __: r, v: e } }), i = n[0].h, s = n[1]; return ET(function() { i.__ = r, i.v = e, f_(i) && s({ h: i }); @@ -813,11 +813,11 @@ function f_(t) { return !0; } } -var L0 = { useState: fi, useId: ube, useReducer: CT, useEffect: ri, useLayoutEffect: ET, useInsertionEffect: Gbe, useTransition: Wbe, useDeferredValue: Ybe, useSyncExternalStore: Hbe, startTransition: jj, useRef: ss, useImperativeHandle: cbe, useMemo: vi, useCallback: u5, useContext: cc, useDebugValue: A7, version: "17.0.2", Children: bbe, render: Lbe, hydrate: Rbe, unmountComponentAtNode: zbe, createPortal: Sbe, createElement: su, createContext: Vj, createFactory: $be, cloneElement: Fbe, createRef: nbe, Fragment: au, isValidElement: _T, isElement: Xbe, isFragment: Bbe, findDOMNode: Qbe, Component: Ul, PureComponent: M7, memo: mbe, forwardRef: ybe, flushSync: Vbe, unstable_batchedUpdates: Ube, StrictMode: qbe, Suspense: G4, SuspenseList: Jv, lazy: wbe, __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: Ibe }, wa = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}; -function Kj(t) { +var L0 = { useState: fi, useId: hbe, useReducer: CT, useEffect: ri, useLayoutEffect: ET, useInsertionEffect: Xbe, useTransition: Gbe, useDeferredValue: Wbe, useSyncExternalStore: Zbe, startTransition: Kj, useRef: ss, useImperativeHandle: ube, useMemo: vi, useCallback: u5, useContext: cc, useDebugValue: A7, version: "17.0.2", Children: xbe, render: Rbe, hydrate: Mbe, unmountComponentAtNode: Qbe, createPortal: Tbe, createElement: su, createContext: qj, createFactory: Bbe, cloneElement: zbe, createRef: ibe, Fragment: au, isValidElement: _T, isElement: Hbe, isFragment: Fbe, findDOMNode: Ube, Component: Ul, PureComponent: M7, memo: vbe, forwardRef: bbe, flushSync: qbe, unstable_batchedUpdates: Vbe, StrictMode: Ybe, Suspense: G4, SuspenseList: Jv, lazy: Obe, __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: $be }, wa = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}; +function Jj(t) { return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t; } -function Jj(t) { +function eK(t) { var e = t.default; if (typeof e == "function") { var r = function() { @@ -838,7 +838,7 @@ function Jj(t) { }); }), r; } -var Zbe = function(e, r, n, i) { +var jbe = function(e, r, n, i) { var s = n ? n.call(i, e, r) : void 0; if (s !== void 0) return !!s; @@ -858,11 +858,11 @@ var Zbe = function(e, r, n, i) { return !1; } return !0; -}, An = "-ms-", Ry = "-moz-", jr = "-webkit-", eK = "comm", AT = "rule", BM = "decl", jbe = "@import", tK = "@keyframes", Kbe = "@layer", Jbe = Math.abs, FM = String.fromCharCode, D7 = Object.assign; -function exe(t, e) { +}, An = "-ms-", Ry = "-moz-", jr = "-webkit-", tK = "comm", AT = "rule", BM = "decl", Kbe = "@import", rK = "@keyframes", Jbe = "@layer", exe = Math.abs, FM = String.fromCharCode, D7 = Object.assign; +function txe(t, e) { return ns(t, 0) ^ 45 ? (((e << 2 ^ ns(t, 0)) << 2 ^ ns(t, 1)) << 2 ^ ns(t, 2)) << 2 ^ ns(t, 3) : 0; } -function rK(t) { +function nK(t) { return t.trim(); } function Bu(t, e) { @@ -883,13 +883,13 @@ function om(t, e, r) { function Mc(t) { return t.length; } -function nK(t) { +function iK(t) { return t.length; } function ey(t, e) { return e.push(t), t; } -function txe(t, e) { +function rxe(t, e) { return t.map(e).join(""); } function eF(t, e) { @@ -897,7 +897,7 @@ function eF(t, e) { return !Bu(r, e); }); } -var LT = 1, lm = 1, iK = 0, cl = 0, Si = 0, y1 = ""; +var LT = 1, lm = 1, sK = 0, cl = 0, Si = 0, y1 = ""; function RT(t, e, r, n, i, s, a, o) { return { value: t, root: e, parent: r, type: n, props: i, children: s, line: LT, column: lm, length: a, return: "", siblings: o }; } @@ -909,14 +909,14 @@ function Yp(t) { t = Hh(t.root, { children: [t] }); ey(t, t.siblings); } -function rxe() { +function nxe() { return Si; } -function nxe() { +function ixe() { return Si = cl > 0 ? ns(y1, --cl) : 0, lm--, Si === 10 && (lm = 1, LT--), Si; } function Vl() { - return Si = cl < iK ? ns(y1, cl++) : 0, lm++, Si === 10 && (lm = 1, LT++), Si; + return Si = cl < sK ? ns(y1, cl++) : 0, lm++, Si === 10 && (lm = 1, LT++), Si; } function w0() { return ns(y1, cl); @@ -959,21 +959,21 @@ function P7(t) { } return 0; } -function ixe(t) { - return LT = lm = 1, iK = Mc(y1 = t), cl = 0, []; -} function sxe(t) { + return LT = lm = 1, sK = Mc(y1 = t), cl = 0, []; +} +function axe(t) { return y1 = "", t; } function d_(t) { - return rK(MT(cl - 1, N7(t === 91 ? t + 2 : t === 40 ? t + 1 : t))); + return nK(MT(cl - 1, N7(t === 91 ? t + 2 : t === 40 ? t + 1 : t))); } -function axe(t) { +function oxe(t) { for (; (Si = w0()) && Si < 33; ) Vl(); return P7(t) > 2 || P7(Si) > 3 ? "" : " "; } -function oxe(t, e) { +function lxe(t, e) { for (; --e && Vl() && !(Si < 48 || Si > 102 || Si > 57 && Si < 65 || Si > 70 && Si < 97); ) ; return MT(t, H4() + (e < 6 && w0() == 32 && Vl() == 32)); @@ -996,19 +996,19 @@ function N7(t) { } return cl; } -function lxe(t, e) { +function cxe(t, e) { for (; Vl() && t + Si !== 47 + 10; ) if (t + Si === 42 + 42 && w0() === 47) break; return "/*" + MT(e, cl - 1) + "*" + FM(t === 47 ? t : Vl()); } -function cxe(t) { +function uxe(t) { for (; !P7(w0()); ) Vl(); return MT(t, cl); } -function uxe(t) { - return sxe(Z4("", null, null, null, [""], t = ixe(t), 0, [0], t)); +function hxe(t) { + return axe(Z4("", null, null, null, [""], t = sxe(t), 0, [0], t)); } function Z4(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; ) @@ -1027,16 +1027,16 @@ function Z4(t, e, r, n, i, s, a, o, l) { case 10: case 13: case 32: - T += axe(g); + T += oxe(g); break; case 92: - T += oxe(H4() - 1, 7); + T += lxe(H4() - 1, 7); continue; case 47: switch (w0()) { case 42: case 47: - ey(hxe(lxe(Vl(), H4()), e, r, l), l); + ey(fxe(cxe(Vl(), H4()), e, r, l), l); break; default: T += "/"; @@ -1080,7 +1080,7 @@ function Z4(t, e, r, n, i, s, a, o, l) { if (m < 1) { if (b == 123) --m; - else if (b == 125 && m++ == 0 && nxe() == 125) + else if (b == 125 && m++ == 0 && ixe() == 125) continue; } switch (T += FM(b), b * m) { @@ -1091,7 +1091,7 @@ function Z4(t, e, r, n, i, s, a, o, l) { o[u++] = (Mc(T) - 1) * y, y = 1; break; case 64: - w0() === 45 && (T += d_(Vl())), d = w0(), h = f = Mc(w = T += cxe(H4())), b++; + w0() === 45 && (T += d_(Vl())), d = w0(), h = f = Mc(w = T += uxe(H4())), b++; break; case 45: g === 45 && Mc(T) == 2 && (m = 0); @@ -1100,19 +1100,19 @@ function Z4(t, e, r, n, i, s, a, o, l) { return s; } function tF(t, e, r, n, i, s, a, o, l, u, h, f) { - for (var d = i - 1, p = i === 0 ? s : [""], g = nK(p), m = 0, v = 0, y = 0; m < n; ++m) - for (var b = 0, w = om(t, d + 1, d = Jbe(v = a[m])), O = t; b < g; ++b) - (O = rK(v > 0 ? p[b] + " " + w : Rr(w, /&\f/g, p[b]))) && (l[y++] = O); + for (var d = i - 1, p = i === 0 ? s : [""], g = iK(p), m = 0, v = 0, y = 0; m < n; ++m) + for (var b = 0, w = om(t, d + 1, d = exe(v = a[m])), O = t; b < g; ++b) + (O = nK(v > 0 ? p[b] + " " + w : Rr(w, /&\f/g, p[b]))) && (l[y++] = O); return RT(t, e, r, i === 0 ? AT : o, l, u, h, f); } -function hxe(t, e, r, n) { - return RT(t, e, r, eK, FM(rxe()), om(t, 2, -2), 0, n); +function fxe(t, e, r, n) { + return RT(t, e, r, tK, FM(nxe()), om(t, 2, -2), 0, n); } function rF(t, e, r, n, i) { return RT(t, e, r, BM, om(t, 0, n), om(t, n + 1, -1), n, i); } -function sK(t, e, r) { - switch (exe(t, e)) { +function aK(t, e, r) { + switch (txe(t, e)) { case 5103: return jr + "print-" + t + t; case 5737: @@ -1227,7 +1227,7 @@ function sK(t, e, r) { case 102: return Rr(t, /(.+:)(.+)-([^]+)/, "$1" + jr + "$2-$3$1" + Ry + (ns(t, e + 3) == 108 ? "$3" : "$2-$3")) + t; case 115: - return ~X4(t, "stretch") ? sK(Rr(t, "stretch", "fill-available"), e, r) + t : t; + return ~X4(t, "stretch") ? aK(Rr(t, "stretch", "fill-available"), e, r) + t : t; } break; case 5152: @@ -1261,17 +1261,17 @@ function h5(t, e) { r += e(t[n], n, t, e) || ""; return r; } -function fxe(t, e, r, n) { +function dxe(t, e, r, n) { switch (t.type) { - case Kbe: + case Jbe: if (t.children.length) break; - case jbe: + case Kbe: case BM: return t.return = t.return || t.value; - case eK: - return ""; case tK: + return ""; + case rK: return t.return = t.value + "{" + h5(t.children, n) + "}"; case AT: if (!Mc(t.value = t.props.join(","))) @@ -1279,30 +1279,30 @@ function fxe(t, e, r, n) { } return Mc(r = h5(t.children, n)) ? t.return = t.value + "{" + r + "}" : ""; } -function dxe(t) { - var e = nK(t); +function pxe(t) { + var e = iK(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 pxe(t) { +function gxe(t) { return function(e) { e.root || (e = e.return) && t(e); }; } -function gxe(t, e, r, n) { +function mxe(t, e, r, n) { if (t.length > -1 && !t.return) switch (t.type) { case BM: - t.return = sK(t.value, t.length, r); + t.return = aK(t.value, t.length, r); return; - case tK: + case rK: return h5([Hh(t, { value: Rr(t.value, "@", "@" + jr) })], n); case AT: if (t.length) - return txe(r = t.props, function(i) { + return rxe(r = t.props, function(i) { switch (Bu(i, n = /(::plac\w+|:read-\w+)/)) { case ":read-only": case ":read-write": @@ -1316,7 +1316,7 @@ function gxe(t, e, r, n) { }); } } -var mxe = { +var vxe = { animationIterationCount: 1, aspectRatio: 1, borderImageOutset: 1, @@ -1363,8 +1363,8 @@ var mxe = { strokeMiterlimit: 1, strokeOpacity: 1, strokeWidth: 1 -}, R0 = typeof process < "u" && {} !== void 0 && ({}.REACT_APP_SC_ATTR || {}.SC_ATTR) || "data-styled", aK = "active", oK = "data-styled-version", DT = "6.1.2", zM = `/*!sc*/ -`, QM = typeof window < "u" && "HTMLElement" in window, vxe = 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"), nF = /invalid hook call/i, tO = /* @__PURE__ */ new Set(), yxe = function(t, e) { +}, R0 = typeof process < "u" && {} !== void 0 && ({}.REACT_APP_SC_ATTR || {}.SC_ATTR) || "data-styled", oK = "active", lK = "data-styled-version", DT = "6.1.2", zM = `/*!sc*/ +`, QM = typeof window < "u" && "HTMLElement" in window, yxe = 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"), nF = /invalid hook call/i, tO = /* @__PURE__ */ new Set(), bxe = 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. @@ -1383,58 +1383,58 @@ To resolve this only create new StyledComponents outside of any render method an } } }, PT = Object.freeze([]), cm = Object.freeze({}); -function bxe(t, e, r) { +function xxe(t, e, r) { return r === void 0 && (r = cm), t.theme !== r.theme && t.theme || e || r.theme; } -var I7 = /* @__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"]), xxe = /[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g, wxe = /(^-|-$)/g; +var I7 = /* @__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"]), wxe = /[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g, Oxe = /(^-|-$)/g; function iF(t) { - return t.replace(xxe, "-").replace(wxe, ""); + return t.replace(wxe, "-").replace(Oxe, ""); } -var Oxe = /(a)(d)/gi, rO = 52, sF = function(t) { +var kxe = /(a)(d)/gi, rO = 52, sF = function(t) { return String.fromCharCode(t + (t > 25 ? 39 : 97)); }; function $7(t) { var e, r = ""; for (e = Math.abs(t); e > rO; e = e / rO | 0) r = sF(e % rO) + r; - return (sF(e % rO) + r).replace(Oxe, "$1-$2"); + return (sF(e % rO) + r).replace(kxe, "$1-$2"); } -var p_, lK = 5381, Gd = function(t, e) { +var p_, cK = 5381, Gd = function(t, e) { for (var r = e.length; r; ) t = 33 * t ^ e.charCodeAt(--r); return t; -}, cK = function(t) { - return Gd(lK, t); +}, uK = function(t) { + return Gd(cK, t); }; -function kxe(t) { - return $7(cK(t) >>> 0); +function Sxe(t) { + return $7(uK(t) >>> 0); } -function uK(t) { +function hK(t) { return {}.NODE_ENV !== "production" && typeof t == "string" && t || t.displayName || t.name || "Component"; } function g_(t) { return typeof t == "string" && ({}.NODE_ENV === "production" || t.charAt(0) === t.charAt(0).toLowerCase()); } -var hK = typeof Symbol == "function" && Symbol.for, fK = hK ? Symbol.for("react.memo") : 60115, Sxe = hK ? Symbol.for("react.forward_ref") : 60112, Txe = { childContextTypes: !0, contextType: !0, contextTypes: !0, defaultProps: !0, displayName: !0, getDefaultProps: !0, getDerivedStateFromError: !0, getDerivedStateFromProps: !0, mixins: !0, propTypes: !0, type: !0 }, Cxe = { name: !0, length: !0, prototype: !0, caller: !0, callee: !0, arguments: !0, arity: !0 }, dK = { $$typeof: !0, compare: !0, defaultProps: !0, displayName: !0, propTypes: !0, type: !0 }, Exe = ((p_ = {})[Sxe] = { $$typeof: !0, render: !0, defaultProps: !0, displayName: !0, propTypes: !0 }, p_[fK] = dK, p_); +var fK = typeof Symbol == "function" && Symbol.for, dK = fK ? Symbol.for("react.memo") : 60115, Txe = fK ? Symbol.for("react.forward_ref") : 60112, Cxe = { childContextTypes: !0, contextType: !0, contextTypes: !0, defaultProps: !0, displayName: !0, getDefaultProps: !0, getDerivedStateFromError: !0, getDerivedStateFromProps: !0, mixins: !0, propTypes: !0, type: !0 }, Exe = { name: !0, length: !0, prototype: !0, caller: !0, callee: !0, arguments: !0, arity: !0 }, pK = { $$typeof: !0, compare: !0, defaultProps: !0, displayName: !0, propTypes: !0, type: !0 }, _xe = ((p_ = {})[Txe] = { $$typeof: !0, render: !0, defaultProps: !0, displayName: !0, propTypes: !0 }, p_[dK] = pK, p_); function aF(t) { - return ("type" in (e = t) && e.type.$$typeof) === fK ? dK : "$$typeof" in t ? Exe[t.$$typeof] : Txe; + return ("type" in (e = t) && e.type.$$typeof) === dK ? pK : "$$typeof" in t ? _xe[t.$$typeof] : Cxe; var e; } -var _xe = Object.defineProperty, Axe = Object.getOwnPropertyNames, oF = Object.getOwnPropertySymbols, Lxe = Object.getOwnPropertyDescriptor, Rxe = Object.getPrototypeOf, lF = Object.prototype; -function pK(t, e, r) { +var Axe = Object.defineProperty, Lxe = Object.getOwnPropertyNames, oF = Object.getOwnPropertySymbols, Rxe = Object.getOwnPropertyDescriptor, Mxe = Object.getPrototypeOf, lF = Object.prototype; +function gK(t, e, r) { if (typeof e != "string") { if (lF) { - var n = Rxe(e); - n && n !== lF && pK(t, n, r); + var n = Mxe(e); + n && n !== lF && gK(t, n, r); } - var i = Axe(e); + var i = Lxe(e); oF && (i = i.concat(oF(e))); for (var s = aF(t), a = aF(e), o = 0; o < i.length; ++o) { var l = i[o]; - if (!(l in Cxe || r && r[l] || a && l in a || s && l in s)) { - var u = Lxe(e, l); + if (!(l in Exe || r && r[l] || a && l in a || s && l in s)) { + var u = Rxe(e, l); try { - _xe(t, l, u); + Axe(t, l, u); } catch { } } @@ -1475,7 +1475,7 @@ function B7(t, e, r) { function VM(t, e) { Object.defineProperty(t, "toString", { value: e }); } -var Mxe = {}.NODE_ENV !== "production" ? { 1: `Cannot create styled-component for component: %s. +var Dxe = {}.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. @@ -1517,7 +1517,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 Dxe() { +function Pxe() { 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) @@ -1529,9 +1529,9 @@ function Dxe() { function b1(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(Dxe.apply(void 0, am([Mxe[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(Pxe.apply(void 0, am([Dxe[t]], e, !1)).trim()); } -var Pxe = function() { +var Nxe = function() { function t(e) { this.groupSizes = new Uint32Array(512), this.length = 512, this.tag = e; } @@ -1574,38 +1574,38 @@ var Pxe = function() { if ({}.NODE_ENV !== "production" && ((0 | e) < 0 || e > 1073741824)) throw b1(16, "".concat(e)); return j4.set(t, e), f5.set(e, t), e; -}, Nxe = function(t, e) { +}, Ixe = function(t, e) { K4 = e + 1, j4.set(t, e), f5.set(e, t); -}, Ixe = "style[".concat(R0, "][").concat(oK, '="').concat(DT, '"]'), $xe = new RegExp("^".concat(R0, '\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')), Bxe = function(t, e, r) { +}, $xe = "style[".concat(R0, "][").concat(lK, '="').concat(DT, '"]'), Bxe = new RegExp("^".concat(R0, '\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')), Fxe = 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); -}, Fxe = function(t, e) { +}, zxe = function(t, e) { for (var r, n = ((r = e.textContent) !== null && r !== void 0 ? r : "").split(zM), i = [], s = 0, a = n.length; s < a; s++) { var o = n[s].trim(); if (o) { - var l = o.match($xe); + var l = o.match(Bxe); if (l) { var u = 0 | parseInt(l[1], 10), h = l[2]; - u !== 0 && (Nxe(h, u), Bxe(t, h, l[3]), t.getTag().insertRules(u, i)), i.length = 0; + u !== 0 && (Ixe(h, u), Fxe(t, h, l[3]), t.getTag().insertRules(u, i)), i.length = 0; } else i.push(o); } } }; -function zxe() { +function Qxe() { return typeof __webpack_nonce__ < "u" ? __webpack_nonce__ : null; } -var gK = function(t) { +var mK = function(t) { var e = document.head, r = t || e, n = document.createElement("style"), i = function(o) { var l = Array.from(o.querySelectorAll("style[".concat(R0, "]"))); return l[l.length - 1]; }(r), s = i !== void 0 ? i.nextSibling : null; - n.setAttribute(R0, aK), n.setAttribute(oK, DT); - var a = zxe(); + n.setAttribute(R0, oK), n.setAttribute(lK, DT); + var a = Qxe(); return a && n.setAttribute("nonce", a), r.insertBefore(n, s), n; -}, Qxe = function() { +}, Uxe = function() { function t(e) { - this.element = gK(e), this.element.appendChild(document.createTextNode("")), this.sheet = function(r) { + this.element = mK(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++) { @@ -1628,9 +1628,9 @@ var gK = function(t) { var r = this.sheet.cssRules[e]; return r && r.cssText ? r.cssText : ""; }, t; -}(), Uxe = function() { +}(), Vxe = function() { function t(e) { - this.element = gK(e), this.nodes = this.element.childNodes, this.length = 0; + this.element = mK(e), this.nodes = this.element.childNodes, this.length = 0; } return t.prototype.insertRule = function(e, r) { if (e <= this.length && e >= 0) { @@ -1643,7 +1643,7 @@ var gK = function(t) { }, t.prototype.getRule = function(e) { return e < this.length ? this.nodes[e].textContent : ""; }, t; -}(), Vxe = function() { +}(), qxe = function() { function t(e) { this.rules = [], this.length = 0; } @@ -1654,14 +1654,14 @@ var gK = function(t) { }, t.prototype.getRule = function(e) { return e < this.length ? this.rules[e] : ""; }, t; -}(), uF = QM, qxe = { isServer: !QM, useCSSOMInjection: !vxe }, mK = function() { +}(), uF = QM, Yxe = { isServer: !QM, useCSSOMInjection: !yxe }, vK = function() { function t(e, r, n) { e === void 0 && (e = cm), r === void 0 && (r = {}); var i = this; - this.options = eo(eo({}, qxe), e), this.gs = r, this.names = new Map(n), this.server = !!e.isServer, !this.server && QM && uF && (uF = !1, function(s) { - for (var a = document.querySelectorAll(Ixe), o = 0, l = a.length; o < l; o++) { + this.options = eo(eo({}, Yxe), e), this.gs = r, this.names = new Map(n), this.server = !!e.isServer, !this.server && QM && uF && (uF = !1, function(s) { + for (var a = document.querySelectorAll($xe), o = 0, l = a.length; o < l; o++) { var u = a[o]; - u && u.getAttribute(R0) !== aK && (Fxe(s, u), u.parentNode && u.parentNode.removeChild(u)); + u && u.getAttribute(R0) !== oK && (zxe(s, u), u.parentNode && u.parentNode.removeChild(u)); } }(this)), VM(this, function() { return function(s) { @@ -1693,8 +1693,8 @@ var gK = 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 Vxe(i) : n ? new Qxe(i) : new Uxe(i); - }(this.options), new Pxe(e))); + return r.isServer ? new qxe(i) : n ? new Uxe(i) : new Vxe(i); + }(this.options), new Nxe(e))); var e; }, t.prototype.hasNameForId = function(e, r) { return this.names.has(e) && this.names.get(e).has(r); @@ -1714,54 +1714,54 @@ var gK = function(t) { }, t.prototype.clearTag = function() { this.tag = void 0; }, t; -}(), Yxe = /&/g, Wxe = /^\s*\/\/.*$/gm; -function vK(t, e) { +}(), Wxe = /&/g, Gxe = /^\s*\/\/.*$/gm; +function yK(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 = vK(r.children, e)), r; + })), Array.isArray(r.children) && r.type !== "@keyframes" && (r.children = yK(r.children, e)), r; }); } -function yK(t) { +function bK(t) { var e, r, n, i = t === void 0 ? cm : t, s = i.options, a = s === void 0 ? cm : s, o = i.plugins, l = o === void 0 ? PT : 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 === AT && d.value.includes("&") && (d.props[0] = d.props[0].replace(Yxe, r).replace(n, u)); - }), a.prefix && h.push(gxe), h.push(fxe); + d.type === AT && d.value.includes("&") && (d.props[0] = d.props[0].replace(Wxe, r).replace(n, u)); + }), a.prefix && h.push(mxe), h.push(dxe); 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(Wxe, ""), y = uxe(g || p ? "".concat(g, " ").concat(p, " { ").concat(v, " }") : v); - a.namespace && (y = vK(y, a.namespace)); + var v = d.replace(Gxe, ""), y = hxe(g || p ? "".concat(g, " ").concat(p, " { ").concat(v, " }") : v); + a.namespace && (y = yK(y, a.namespace)); var b = []; - return h5(y, dxe(h.concat(pxe(function(w) { + return h5(y, pxe(h.concat(gxe(function(w) { return b.push(w); })))), b; }; return f.hash = l.length ? l.reduce(function(d, p) { return p.name || b1(15), Gd(d, p.name); - }, lK).toString() : "", f; + }, cK).toString() : "", f; } -var Gxe = new mK(), F7 = yK(), qM = L0.createContext({ shouldForwardProp: void 0, styleSheet: Gxe, stylis: F7 }); +var Xxe = new vK(), F7 = bK(), qM = L0.createContext({ shouldForwardProp: void 0, styleSheet: Xxe, stylis: F7 }); qM.Consumer; -var Xxe = L0.createContext(void 0); +var Hxe = L0.createContext(void 0); function z7() { return cc(qM); } -function bK(t) { +function xK(t) { var e = fi(t.stylisPlugins), r = e[0], n = e[1], i = z7().styleSheet, s = vi(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 = vi(function() { - return yK({ options: { namespace: t.namespace, prefix: t.enableVendorPrefixes }, plugins: r }); + return bK({ options: { namespace: t.namespace, prefix: t.enableVendorPrefixes }, plugins: r }); }, [t.enableVendorPrefixes, t.namespace, r]); ri(function() { - Zbe(r, t.stylisPlugins) || n(t.stylisPlugins); + jbe(r, t.stylisPlugins) || n(t.stylisPlugins); }, [t.stylisPlugins]); var o = vi(function() { return { shouldForwardProp: t.shouldForwardProp, styleSheet: s, stylis: a }; }, [t.shouldForwardProp, s, a]); - return L0.createElement(qM.Provider, { value: o }, L0.createElement(Xxe.Provider, { value: a }, t.children)); + return L0.createElement(qM.Provider, { value: o }, L0.createElement(Hxe.Provider, { value: a }, t.children)); } var hF = function() { function t(e, r) { @@ -1777,7 +1777,7 @@ var hF = function() { return t.prototype.getName = function(e) { return e === void 0 && (e = F7), this.name + e.hash; }, t; -}(), Hxe = function(t) { +}(), Zxe = function(t) { return t >= "A" && t <= "Z"; }; function fF(t) { @@ -1785,22 +1785,22 @@ function fF(t) { var n = t[r]; if (r === 1 && n === "-" && t[0] === "-") return t; - Hxe(n) ? e += "-" + n.toLowerCase() : e += n; + Zxe(n) ? e += "-" + n.toLowerCase() : e += n; } return e.startsWith("ms-") ? "-" + e : e; } -var xK = function(t) { +var wK = function(t) { return t == null || t === !1 || t === ""; -}, wK = function(t) { +}, OK = function(t) { var e, r, n = []; for (var i in t) { var s = t[i]; - t.hasOwnProperty(i) && !xK(s) && (Array.isArray(s) && s.isCss || um(s) ? n.push("".concat(fF(i), ":"), s, ";") : hm(s) ? n.push.apply(n, am(am(["".concat(i, " {")], wK(s), !1), ["}"], !1)) : n.push("".concat(fF(i), ": ").concat((e = i, (r = s) == null || typeof r == "boolean" || r === "" ? "" : typeof r != "number" || r === 0 || e in mxe || e.startsWith("--") ? String(r).trim() : "".concat(r, "px")), ";"))); + t.hasOwnProperty(i) && !wK(s) && (Array.isArray(s) && s.isCss || um(s) ? n.push("".concat(fF(i), ":"), s, ";") : hm(s) ? n.push.apply(n, am(am(["".concat(i, " {")], OK(s), !1), ["}"], !1)) : n.push("".concat(fF(i), ": ").concat((e = i, (r = s) == null || typeof r == "boolean" || r === "" ? "" : typeof r != "number" || r === 0 || e in vxe || e.startsWith("--") ? String(r).trim() : "".concat(r, "px")), ";"))); } return n; }; function O0(t, e, r, n) { - if (xK(t)) + if (wK(t)) return []; if (UM(t)) return [".".concat(t.styledComponentId)]; @@ -1808,14 +1808,14 @@ function O0(t, e, r, n) { if (!um(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 hF || hm(i) || i === null || console.error("".concat(uK(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.")), O0(i, e, r, n); + return {}.NODE_ENV === "production" || typeof i != "object" || Array.isArray(i) || i instanceof hF || hm(i) || i === null || console.error("".concat(hK(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.")), O0(i, e, r, n); } var s; - return t instanceof hF ? r ? (t.inject(r, n), [t.getName(n)]) : [t] : hm(t) ? wK(t) : Array.isArray(t) ? Array.prototype.concat.apply(PT, t.map(function(a) { + return t instanceof hF ? r ? (t.inject(r, n), [t.getName(n)]) : [t] : hm(t) ? OK(t) : Array.isArray(t) ? Array.prototype.concat.apply(PT, t.map(function(a) { return O0(a, e, r, n); })) : [t.toString()]; } -function Zxe(t) { +function jxe(t) { for (var e = 0; e < t.length; e += 1) { var r = t[e]; if (um(r) && !UM(r)) @@ -1823,9 +1823,9 @@ function Zxe(t) { } return !0; } -var jxe = cK(DT), Kxe = function() { +var Kxe = uK(DT), Jxe = function() { function t(e, r, n) { - this.rules = e, this.staticRulesId = "", this.isStatic = {}.NODE_ENV === "production" && (n === void 0 || n.isStatic) && Zxe(e), this.componentId = r, this.baseHash = Gd(jxe, r), this.baseStyle = n, mK.registerId(r); + this.rules = e, this.staticRulesId = "", this.isStatic = {}.NODE_ENV === "production" && (n === void 0 || n.isStatic) && jxe(e), this.componentId = r, this.baseHash = Gd(Kxe, r), this.baseStyle = n, vK.registerId(r); } return t.prototype.generateAndInjectStyles = function(e, r, n) { var i = this.baseStyle ? this.baseStyle.generateAndInjectStyles(e, r, n) : ""; @@ -1857,17 +1857,17 @@ var jxe = cK(DT), Kxe = function() { } return i; }, t; -}(), OK = L0.createContext(void 0); -OK.Consumer; +}(), kK = L0.createContext(void 0); +kK.Consumer; var m_ = {}, dF = /* @__PURE__ */ new Set(); -function Jxe(t, e, r) { +function ewe(t, e, r) { var n = UM(t), i = t, s = !g_(t), a = e.attrs, o = a === void 0 ? PT : a, l = e.componentId, u = l === void 0 ? function(O, S) { var C = typeof O != "string" ? "sc" : iF(O); m_[C] = (m_[C] || 0) + 1; - var T = "".concat(C, "-").concat(kxe(DT + C + m_[C])); + var T = "".concat(C, "-").concat(Sxe(DT + C + m_[C])); return S ? "".concat(S, "-").concat(T) : T; }(e.displayName, e.parentComponentId) : l, h = e.displayName, f = h === void 0 ? function(O) { - return g_(O) ? "styled.".concat(O) : "Styled(".concat(uK(O), ")"); + return g_(O) ? "styled.".concat(O) : "Styled(".concat(hK(O), ")"); }(t) : h, d = e.displayName && e.componentId ? "".concat(iF(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; @@ -1879,10 +1879,10 @@ function Jxe(t, e, r) { } else g = m; } - var y = new Kxe(r, d, n ? i.componentStyle : void 0); + var y = new Jxe(r, d, n ? i.componentStyle : void 0); function b(O, S) { return function(C, T, A) { - var E = C.attrs, L = C.componentStyle, _ = C.defaultProps, R = C.foldedComponentIds, $ = C.styledComponentId, k = C.target, P = L0.useContext(OK), M = z7(), N = C.shouldForwardProp || M.shouldForwardProp; + var E = C.attrs, L = C.componentStyle, _ = C.defaultProps, R = C.foldedComponentIds, $ = C.styledComponentId, k = C.target, P = L0.useContext(kK), M = z7(), N = C.shouldForwardProp || M.shouldForwardProp; ({}).NODE_ENV !== "production" && A7($); var D = function(G, X, q) { for (var ee, se = eo(eo({}, X), { className: void 0, theme: q }), U = 0; U < G.length; U += 1) { @@ -1891,9 +1891,9 @@ function Jxe(t, e, r) { se[W] = W === "className" ? s0(se[W], j[W]) : W === "style" ? eo(eo({}, se[W]), j[W]) : j[W]; } return X.className && (se.className = s0(se.className, X.className)), se; - }(E, T, bxe(T, P, _) || cm), I = D.as || k, F = {}; + }(E, T, xxe(T, P, _) || cm), I = 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 : N && !N(B, I) || (F[B] = D[B], N || {}.NODE_ENV !== "development" || gbe(B) || dF.has(B) || !I7.has(I) || (dF.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 : N && !N(B, I) || (F[B] = D[B], N || {}.NODE_ENV !== "development" || mbe(B) || dF.has(B) || !I7.has(I) || (dF.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 Q = function(G, X) { var q = z7(), ee = G.generateAndInjectStyles(X, q.styleSheet, q.stylis); return {}.NODE_ENV !== "production" && A7(ee), ee; @@ -1915,7 +1915,7 @@ function Jxe(t, e, r) { B7(S, E[A], !0); return S; }({}, i.defaultProps, O) : O; - } }), {}.NODE_ENV !== "production" && (yxe(f, d), w.warnTooManyClasses = function(O, S) { + } }), {}.NODE_ENV !== "production" && (bxe(f, d), w.warnTooManyClasses = function(O, S) { var C = {}, T = !1; return function(A) { if (!T && (C[A] = !0, Object.keys(C).length >= 200)) { @@ -1934,7 +1934,7 @@ Example: }; }(f, d)), VM(w, function() { return ".".concat(w.styledComponentId); - }), s && pK(w, t, { attrs: !0, componentStyle: !0, displayName: !0, foldedComponentIds: !0, shouldForwardProp: !0, styledComponentId: !0, target: !0 }), w; + }), s && gK(w, t, { attrs: !0, componentStyle: !0, displayName: !0, foldedComponentIds: !0, shouldForwardProp: !0, styledComponentId: !0, target: !0 }), w; } function pF(t, e) { for (var r = [t[0]], n = 0, i = e.length; n < i; n += 1) @@ -1966,11 +1966,11 @@ function Q7(t, e, r) { return Q7(t, e, eo(eo({}, r), i)); }, n; } -var kK = function(t) { - return Q7(Jxe, t); -}, Ht = kK; +var SK = function(t) { + return Q7(ewe, t); +}, Ht = SK; I7.forEach(function(t) { - Ht[t] = kK(t); + Ht[t] = SK(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'? @@ -2020,7 +2020,7 @@ class qr { return new Dy(this, e); } iterRange(e, r = this.length) { - return new SK(this, e, r); + return new TK(this, e, r); } iterLines(e, r) { let n; @@ -2031,7 +2031,7 @@ class qr { 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 TK(n); + return new CK(n); } toString() { return this.sliceString(0); @@ -2049,7 +2049,7 @@ class qr { } } class ui extends qr { - constructor(e, r = ewe(e)) { + constructor(e, r = twe(e)) { super(), this.text = e, this.length = r; } get lines() { @@ -2062,7 +2062,7 @@ class ui extends qr { for (let s = 0; ; s++) { let a = this.text[s], o = i + a.length; if ((r ? n : o) >= e) - return new twe(i, o, n, a); + return new rwe(i, o, n, a); i = o + 1, n++; } } @@ -2205,7 +2205,7 @@ class Nc extends qr { } } qr.empty = /* @__PURE__ */ new ui([""], 0); -function ewe(t) { +function twe(t) { let e = -1; for (let r of t) e += r.length + 1; @@ -2252,7 +2252,7 @@ class Dy { return e < 0 && (this.nextInner(-e, -this.dir), e = this.value.length), this.nextInner(e, this.dir); } } -class SK { +class TK { constructor(e, r, n) { this.value = "", this.done = !1, this.cursor = new Dy(e, r > n ? -1 : 1), this.pos = r > n ? e.length : 0, this.from = Math.min(r, n), this.to = Math.max(r, n); } @@ -2272,7 +2272,7 @@ class SK { return this.cursor.lineBreak && this.value != ""; } } -class TK { +class CK { constructor(e) { this.inner = e, this.afterBreak = !0, this.value = "", this.done = !1; } @@ -2286,10 +2286,10 @@ class TK { } typeof Symbol < "u" && (qr.prototype[Symbol.iterator] = function() { return this.iter(); -}, Dy.prototype[Symbol.iterator] = SK.prototype[Symbol.iterator] = TK.prototype[Symbol.iterator] = function() { +}, Dy.prototype[Symbol.iterator] = TK.prototype[Symbol.iterator] = CK.prototype[Symbol.iterator] = function() { return this; }); -class twe { +class rwe { constructor(e, r, n, i) { this.from = e, this.to = r, this.number = n, this.text = i; } @@ -2303,7 +2303,7 @@ function fm(t, e, r) { let Rg = /* @__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 < Rg.length; t++) Rg[t] += Rg[t - 1]; -function rwe(t) { +function nwe(t) { for (let e = 1; e < Rg.length; e += 2) if (Rg[e] > t) return Rg[e - 1] <= t; @@ -2314,16 +2314,16 @@ function vF(t) { } const yF = 8205; function Ss(t, e, r = !0, n = !0) { - return (r ? CK : nwe)(t, e, n); + return (r ? EK : iwe)(t, e, n); } -function CK(t, e, r) { +function EK(t, e, r) { if (e == t.length) return e; - e && EK(t.charCodeAt(e)) && _K(t.charCodeAt(e - 1)) && e--; + e && _K(t.charCodeAt(e)) && AK(t.charCodeAt(e - 1)) && e--; let n = ws(t, e); for (e += Ho(n); e < t.length; ) { let i = ws(t, e); - if (n == yF || i == yF || r && rwe(i)) + if (n == yF || i == yF || r && nwe(i)) e += Ho(i), n = i; else if (vF(i)) { let s = 0, a = e - 2; @@ -2337,27 +2337,27 @@ function CK(t, e, r) { } return e; } -function nwe(t, e, r) { +function iwe(t, e, r) { for (; e > 0; ) { - let n = CK(t, e - 2, r); + let n = EK(t, e - 2, r); if (n < e) return n; e--; } return 0; } -function EK(t) { +function _K(t) { return t >= 56320 && t < 57344; } -function _K(t) { +function AK(t) { return t >= 55296 && t < 56320; } function ws(t, e) { let r = t.charCodeAt(e); - if (!_K(r) || e + 1 == t.length) + if (!AK(r) || e + 1 == t.length) return r; let n = t.charCodeAt(e + 1); - return EK(n) ? (r - 55296 << 10) + (n - 56320) + 65536 : r; + return _K(n) ? (r - 55296 << 10) + (n - 56320) + 65536 : r; } function YM(t) { return t <= 65535 ? String.fromCharCode(t) : (t -= 65536, String.fromCharCode((t >> 10) + 55296, (t & 1023) + 56320)); @@ -2408,7 +2408,7 @@ class Kc { return new Kc(e); } composeDesc(e) { - return this.empty ? e : e.empty ? this : AK(this, e); + return this.empty ? e : e.empty ? this : LK(this, e); } mapDesc(e, r = !1) { return e.empty ? this : q7(this, e, r); @@ -2491,7 +2491,7 @@ class Oi extends Kc { return new Oi(r, n); } compose(e) { - return this.empty ? e : e.empty ? this : AK(this, e, !0); + return this.empty ? e : e.empty ? this : LK(this, e, !0); } map(e, r = !1) { return e.empty ? this : q7(this, e, r, !0); @@ -2656,7 +2656,7 @@ function q7(t, e, r, n = !1) { throw new Error("Mismatched change set lengths"); } } -function AK(t, e, r = !1) { +function LK(t, e, r = !1) { let n = [], i = r ? [] : null, s = new c2(t), a = new c2(e); for (let o = !1; ; ) { if (s.done && a.done) @@ -2828,7 +2828,7 @@ class je { return new je(e, r); } } -function LK(t, e) { +function RK(t, e) { for (let r of t.ranges) if (r.to > e) throw new RangeError("Selection points outside of document"); @@ -2912,7 +2912,7 @@ function Y7(t, e) { Py(t, n) & 1 && (r = !0); return r; } -function iwe(t, e, r) { +function swe(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 = []; @@ -2980,7 +2980,7 @@ class Xn { } const Xd = { lowest: 4, low: 3, default: 2, high: 1, highest: 0 }; function gv(t) { - return (e) => new RK(e, t); + return (e) => new MK(e, t); } const uc = { highest: /* @__PURE__ */ gv(Xd.highest), @@ -2989,7 +2989,7 @@ const uc = { low: /* @__PURE__ */ gv(Xd.low), lowest: /* @__PURE__ */ gv(Xd.lowest) }; -class RK { +class MK { constructor(e, r) { this.inner = e, this.prec = r; } @@ -3021,7 +3021,7 @@ class d5 { } static resolve(e, r, n) { let i = [], s = /* @__PURE__ */ Object.create(null), a = /* @__PURE__ */ new Map(); - for (let d of swe(e, r, a)) + for (let d of awe(e, r, a)) d instanceof Xn ? 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) @@ -3039,14 +3039,14 @@ class d5 { 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) => iwe(v, g, p)); + o[g.id] = u.length << 1, u.push((v) => swe(v, g, p)); } } let f = u.map((d) => d(o)); return new d5(e, a, f, o, l, s); } } -function swe(t, e, r) { +function awe(t, e, r) { let n = [[], [], [], [], []], i = /* @__PURE__ */ new Map(); function s(a, o) { let l = i.get(a); @@ -3064,7 +3064,7 @@ function swe(t, e, r) { 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 RK) + } else if (a instanceof MK) s(a.inner, a.prec); else if (a instanceof Xn) n[o].push(a), a.provides && s(a.provides, o); @@ -3094,13 +3094,13 @@ function Py(t, e) { function p5(t, e) { return e & 1 ? t.config.staticValues[e >> 1] : t.values[e >> 1]; } -const MK = /* @__PURE__ */ $t.define(), G7 = /* @__PURE__ */ $t.define({ +const DK = /* @__PURE__ */ $t.define(), G7 = /* @__PURE__ */ $t.define({ combine: (t) => t.some((e) => e), static: !0 -}), DK = /* @__PURE__ */ $t.define({ +}), PK = /* @__PURE__ */ $t.define({ combine: (t) => t.length ? t[0] : void 0, static: !0 -}), PK = /* @__PURE__ */ $t.define(), NK = /* @__PURE__ */ $t.define(), IK = /* @__PURE__ */ $t.define(), $K = /* @__PURE__ */ $t.define({ +}), NK = /* @__PURE__ */ $t.define(), IK = /* @__PURE__ */ $t.define(), $K = /* @__PURE__ */ $t.define(), BK = /* @__PURE__ */ $t.define({ combine: (t) => t.length ? t[0] : !1 }); class co { @@ -3108,15 +3108,15 @@ class co { this.type = e, this.value = r; } static define() { - return new awe(); + return new owe(); } } -class awe { +class owe { of(e) { return new co(this, e); } } -class owe { +class lwe { constructor(e) { this.map = e; } @@ -3136,7 +3136,7 @@ class or { return this.type == e; } static define(e = {}) { - return new owe(e.map || ((r) => r)); + return new lwe(e.map || ((r) => r)); } static mapEffects(e, r) { if (!e.length) @@ -3153,7 +3153,7 @@ or.reconfigure = /* @__PURE__ */ or.define(); or.appendConfig = /* @__PURE__ */ or.define(); class _i { 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 && LK(n, r.newLength), s.some((o) => o.type == _i.time) || (this.annotations = s.concat(_i.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 && RK(n, r.newLength), s.some((o) => o.type == _i.time) || (this.annotations = s.concat(_i.time.of(Date.now()))); } static create(e, r, n, i, s, a) { return new _i(e, r, n, i, s, a); @@ -3187,7 +3187,7 @@ _i.time = /* @__PURE__ */ co.define(); _i.userEvent = /* @__PURE__ */ co.define(); _i.addToHistory = /* @__PURE__ */ co.define(); _i.remote = /* @__PURE__ */ co.define(); -function lwe(t, e) { +function cwe(t, e) { let r = []; for (let n = 0, i = 0; ; ) { let s, a; @@ -3200,7 +3200,7 @@ function lwe(t, e) { !r.length || r[r.length - 1] < s ? r.push(s, a) : r[r.length - 1] < a && (r[r.length - 1] = a); } } -function BK(t, e, r) { +function FK(t, e, r) { var n; let i, s, a; return r ? (i = e.changes, s = Oi.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)), { @@ -3214,33 +3214,33 @@ function BK(t, e, r) { function X7(t, e, r) { let n = e.selection, i = Mg(e.annotations); return e.userEvent && (i = i.concat(_i.userEvent.of(e.userEvent))), { - changes: e.changes instanceof Oi ? e.changes : Oi.of(e.changes || [], r, t.facet(DK)), + changes: e.changes instanceof Oi ? e.changes : Oi.of(e.changes || [], r, t.facet(PK)), selection: n && (n instanceof je ? n : je.single(n.anchor, n.head)), effects: Mg(e.effects), annotations: i, scrollIntoView: !!e.scrollIntoView }; } -function FK(t, e, r) { +function zK(t, e, r) { let n = X7(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 = BK(n, X7(t, e[s], a ? n.changes.newLength : t.doc.length), a); + n = FK(n, X7(t, e[s], a ? n.changes.newLength : t.doc.length), a); } let i = _i.create(t, n.changes, n.selection, n.effects, n.annotations, n.scrollIntoView); - return uwe(r ? cwe(i) : i); + return hwe(r ? uwe(i) : i); } -function cwe(t) { +function uwe(t) { let e = t.startState, r = !0; - for (let i of e.facet(PK)) { + for (let i of e.facet(NK)) { let s = i(t); if (s === !1) { r = !1; break; } - Array.isArray(s) && (r = r === !0 ? s : lwe(r, s)); + Array.isArray(s) && (r = r === !0 ? s : cwe(r, s)); } if (r !== !0) { let i, s; @@ -3252,49 +3252,49 @@ function cwe(t) { } t = _i.create(e, i, t.selection && t.selection.map(s), or.mapEffects(t.effects, s), t.annotations, t.scrollIntoView); } - let n = e.facet(NK); + let n = e.facet(IK); for (let i = n.length - 1; i >= 0; i--) { let s = n[i](t); - s instanceof _i ? t = s : Array.isArray(s) && s.length == 1 && s[0] instanceof _i ? t = s[0] : t = FK(e, Mg(s), !1); + s instanceof _i ? t = s : Array.isArray(s) && s.length == 1 && s[0] instanceof _i ? t = s[0] : t = zK(e, Mg(s), !1); } return t; } -function uwe(t) { - let e = t.startState, r = e.facet(IK), n = t; +function hwe(t) { + let e = t.startState, r = e.facet($K), n = t; for (let i = r.length - 1; i >= 0; i--) { let s = r[i](t); - s && Object.keys(s).length && (n = BK(n, X7(e, s, t.changes.newLength), !0)); + s && Object.keys(s).length && (n = FK(n, X7(e, s, t.changes.newLength), !0)); } return n == t ? t : _i.create(e, t.changes, t.selection, n.effects, n.annotations, n.scrollIntoView); } -const hwe = []; +const fwe = []; function Mg(t) { - return t == null ? hwe : Array.isArray(t) ? t : [t]; + return t == null ? fwe : Array.isArray(t) ? t : [t]; } var Fn = /* @__PURE__ */ function(t) { return t[t.Word = 0] = "Word", t[t.Space = 1] = "Space", t[t.Other = 2] = "Other", t; }(Fn || (Fn = {})); -const fwe = /[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/; +const dwe = /[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/; let H7; try { H7 = /* @__PURE__ */ new RegExp("[\\p{Alphabetic}\\p{Number}_]", "u"); } catch { } -function dwe(t) { +function pwe(t) { if (H7) return H7.test(t); for (let e = 0; e < t.length; e++) { let r = t[e]; - if (/\w/.test(r) || r > "\x80" && (r.toUpperCase() != r.toLowerCase() || fwe.test(r))) + if (/\w/.test(r) || r > "\x80" && (r.toUpperCase() != r.toLowerCase() || dwe.test(r))) return !0; } return !1; } -function pwe(t) { +function gwe(t) { return (e) => { if (!/\S/.test(e)) return Fn.Space; - if (dwe(e)) + if (pwe(e)) return Fn.Word; for (let r = 0; r < t.length; r++) if (e.indexOf(t[r]) > -1) @@ -3319,7 +3319,7 @@ class Tr { return Py(this, n), p5(this, n); } update(...e) { - return FK(this, e, !0); + return zK(this, e, !0); } applyTransaction(e) { let r = this.config, { base: n, compartments: i } = r; @@ -3395,7 +3395,7 @@ class Tr { } static create(e = {}) { let r = d5.resolve(e.extensions || [], /* @__PURE__ */ new Map()), n = e.doc instanceof qr ? e.doc : qr.of((e.doc || "").split(r.staticFacet(Tr.lineSeparator) || U7)), i = e.selection ? e.selection instanceof je ? e.selection : je.single(e.selection.anchor, e.selection.head) : je.single(0); - return LK(i, n.length), r.staticFacet(G7) || (i = i.asSingle()), new Tr(r, n, i, r.dynamicSlots.map(() => null), (s, a) => a.create(s), null); + return RK(i, n.length), r.staticFacet(G7) || (i = i.asSingle()), new Tr(r, n, i, r.dynamicSlots.map(() => null), (s, a) => a.create(s), null); } get tabSize() { return this.facet(Tr.tabSize); @@ -3405,7 +3405,7 @@ class Tr { `; } get readOnly() { - return this.facet($K); + return this.facet(BK); } phrase(e, ...r) { for (let n of this.facet(Tr.phrases)) @@ -3422,13 +3422,13 @@ class Tr { } languageDataAt(e, r, n = -1) { let i = []; - for (let s of this.facet(MK)) + for (let s of this.facet(DK)) for (let a of s(this, r, n)) Object.prototype.hasOwnProperty.call(a, e) && i.push(a[e]); return i; } charCategorizer(e) { - return pwe(this.languageDataAt("wordChars", e).join("")); + return gwe(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; @@ -3451,18 +3451,18 @@ Tr.allowMultipleSelections = G7; Tr.tabSize = /* @__PURE__ */ $t.define({ combine: (t) => t.length ? t[0] : 4 }); -Tr.lineSeparator = DK; -Tr.readOnly = $K; +Tr.lineSeparator = PK; +Tr.readOnly = BK; Tr.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]); } }); -Tr.languageData = MK; -Tr.changeFilter = PK; -Tr.transactionFilter = NK; -Tr.transactionExtender = IK; +Tr.languageData = DK; +Tr.changeFilter = NK; +Tr.transactionFilter = IK; +Tr.transactionExtender = $K; mp.reconfigure = /* @__PURE__ */ or.define(); function mu(t, e, r = {}) { let n = {}; @@ -3569,7 +3569,7 @@ class $r { return this; if (n && (r = r.slice().sort(Z7)), this.isEmpty) return r.length ? $r.of(r) : this; - let o = new zK(this, null, -1).goto(0), l = 0, u = [], h = new cs(); + let o = new QK(this, null, -1).goto(0), l = 0, u = [], h = new cs(); 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++]; @@ -3649,13 +3649,13 @@ class $r { } static of(e, r = !1) { let n = new cs(); - for (let i of e instanceof u2 ? [e] : r ? gwe(e) : e) + for (let i of e instanceof u2 ? [e] : r ? mwe(e) : e) n.add(i.from, i.to, i.value); return n.finish(); } } $r.empty = /* @__PURE__ */ new $r([], [], null, -1); -function gwe(t) { +function mwe(t) { if (t.length > 1) for (let e = t[0], r = 1; r < t.length; r++) { let n = t[r]; @@ -3712,7 +3712,7 @@ function wF(t, e, r) { } return i; } -class zK { +class QK { constructor(e, r, n, i = 0) { this.layer = e, this.skip = r, this.minPoint = n, this.rank = i; } @@ -3776,7 +3776,7 @@ class h2 { 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 zK(a, r, n, s)); + a.maxPoint >= n && i.push(new QK(a, r, n, s)); return i.length == 1 ? i[0] : new h2(i); } get startSide() { @@ -3982,11 +3982,11 @@ class oh { } static mount(e, r, n) { let i = e[e8], s = n && n.nonce; - i ? s && i.setNonce(s) : i = new mwe(e, s), i.mount(Array.isArray(r) ? r : [r]); + i ? s && i.setNonce(s) : i = new vwe(e, s), i.mount(Array.isArray(r) ? r : [r]); } } let CF = /* @__PURE__ */ new Map(); -class mwe { +class vwe { constructor(e, r) { let n = e.ownerDocument || e, i = n.defaultView; if (!e.head && e.adoptedStyleSheets && i.CSSStyleSheet) { @@ -4105,7 +4105,7 @@ var Nf = { 220: "|", 221: "}", 222: '"' -}, vwe = typeof navigator < "u" && /Mac/.test(navigator.platform), ywe = typeof navigator < "u" && /MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent); +}, ywe = typeof navigator < "u" && /Mac/.test(navigator.platform), bwe = typeof navigator < "u" && /MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent); for (var Os = 0; Os < 10; Os++) Nf[48 + Os] = Nf[96 + Os] = String(Os); for (var Os = 1; Os <= 24; Os++) @@ -4114,8 +4114,8 @@ for (var Os = 65; Os <= 90; Os++) Nf[Os] = String.fromCharCode(Os + 32), f2[Os] = String.fromCharCode(Os); for (var y_ in Nf) f2.hasOwnProperty(y_) || (f2[y_] = Nf[y_]); -function bwe(t) { - var e = vwe && t.metaKey && t.shiftKey && !t.ctrlKey && !t.altKey || ywe && t.shiftKey && t.key && t.key.length == 1 || t.key == "Unidentified", r = !e && t.key || (t.shiftKey ? f2 : Nf)[t.keyCode] || t.key || "Unidentified"; +function xwe(t) { + var e = ywe && t.metaKey && t.shiftKey && !t.ctrlKey && !t.altKey || bwe && t.shiftKey && t.key && t.key.length == 1 || t.key == "Unidentified", r = !e && t.key || (t.shiftKey ? f2 : Nf)[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 g5(t) { @@ -4125,7 +4125,7 @@ function g5(t) { function t8(t, e) { return e ? t == e || t.contains(e.nodeType != 1 ? e.parentNode : e) : !1; } -function xwe(t) { +function wwe(t) { let e = t.activeElement; for (; e && e.shadowRoot; ) e = e.shadowRoot.activeElement; @@ -4177,7 +4177,7 @@ function HM(t, e) { let r = e ? t.left : t.right; return { left: r, right: r, top: t.top, bottom: t.bottom }; } -function wwe(t) { +function Owe(t) { return { left: 0, right: t.innerWidth, @@ -4185,24 +4185,24 @@ function wwe(t) { bottom: t.innerHeight }; } -function QK(t, e) { +function UK(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 Owe(t, e, r, n, i, s, a, o) { +function kwe(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 = wwe(u); + d = Owe(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 } = QK(h, b)), d = { + ({ scaleX: g, scaleY: m } = UK(h, b)), d = { left: b.left, right: b.left + h.clientWidth * g, top: b.top, @@ -4244,7 +4244,7 @@ function Owe(t, e, r, n, i, s, a, o) { else break; } -function kwe(t) { +function Swe(t) { let e = t.ownerDocument; for (let r = t.parentNode; r && r != e.body; ) if (r.nodeType == 1) { @@ -4257,7 +4257,7 @@ function kwe(t) { break; return null; } -class Swe { +class Twe { constructor() { this.anchorNode = null, this.anchorOffset = 0, this.focusNode = null, this.focusOffset = 0; } @@ -4273,7 +4273,7 @@ class Swe { } } let Wp = null; -function UK(t) { +function VK(t) { if (t.setActive) return t.setActive(); if (Wp) @@ -4304,7 +4304,7 @@ function Dg(t, e, r) { let s = new KeyboardEvent("keyup", n); return s.synthetic = !0, t.dispatchEvent(s), i.defaultPrevented || s.defaultPrevented; } -function Twe(t) { +function Cwe(t) { for (; t; ) { if (t && (t.nodeType == 9 || t.nodeType == 11 && t.host)) return t; @@ -4312,11 +4312,11 @@ function Twe(t) { } return null; } -function VK(t) { +function qK(t) { for (; t.attributes.length; ) t.removeAttributeNode(t.attributes[0]); } -function Cwe(t, e) { +function Ewe(t, e) { let r = e.focusNode, n = e.focusOffset; if (!r || e.anchorNode != r || e.anchorOffset != n) return !1; @@ -4332,7 +4332,7 @@ function Cwe(t, e) { n = p2(r), r = r.parentNode; } } -function qK(t) { +function YK(t) { return t.scrollTop > Math.max(1, t.scrollHeight - t.clientHeight - 4); } class Zs { @@ -4485,7 +4485,7 @@ class Dn { return !1; } childCursor(e = this.length) { - return new YK(this.children, e, this.children.length); + return new WK(this.children, e, this.children.length); } childPos(e, r = 1) { return this.childCursor().findPos(e, r); @@ -4529,7 +4529,7 @@ function AF(t) { let e = t.nextSibling; return t.parentNode.removeChild(t), e; } -class YK { +class WK { constructor(e, r, n) { this.children = e, this.pos = r, this.i = n, this.off = 0; } @@ -4542,7 +4542,7 @@ class YK { } } } -function WK(t, e, r, n, i, s, a, o, l) { +function GK(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) { @@ -4559,20 +4559,20 @@ function WK(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 GK(t, e, r, n, i, s) { +function XK(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, WK(t, u, h, o, l, n, 0, i, s); + t.length += f, GK(t, u, h, o, l, n, 0, i, s); } let Co = typeof navigator < "u" ? navigator : { userAgent: "", vendor: "", platform: "" }, r8 = typeof document < "u" ? document : { documentElement: { style: {} } }; -const n8 = /* @__PURE__ */ /Edge\/(\d+)/.exec(Co.userAgent), XK = /* @__PURE__ */ /MSIE \d/.test(Co.userAgent), i8 = /* @__PURE__ */ /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Co.userAgent), NT = !!(XK || i8 || n8), LF = !NT && /* @__PURE__ */ /gecko\/(\d+)/i.test(Co.userAgent), b_ = !NT && /* @__PURE__ */ /Chrome\/(\d+)/.exec(Co.userAgent), RF = "webkitFontSmoothing" in r8.documentElement.style, HK = !NT && /* @__PURE__ */ /Apple Computer/.test(Co.vendor), MF = HK && (/* @__PURE__ */ /Mobile\/\w+/.test(Co.userAgent) || Co.maxTouchPoints > 2); +const n8 = /* @__PURE__ */ /Edge\/(\d+)/.exec(Co.userAgent), HK = /* @__PURE__ */ /MSIE \d/.test(Co.userAgent), i8 = /* @__PURE__ */ /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Co.userAgent), NT = !!(HK || i8 || n8), LF = !NT && /* @__PURE__ */ /gecko\/(\d+)/i.test(Co.userAgent), b_ = !NT && /* @__PURE__ */ /Chrome\/(\d+)/.exec(Co.userAgent), RF = "webkitFontSmoothing" in r8.documentElement.style, ZK = !NT && /* @__PURE__ */ /Apple Computer/.test(Co.vendor), MF = ZK && (/* @__PURE__ */ /Mobile\/\w+/.test(Co.userAgent) || Co.maxTouchPoints > 2); var Vt = { mac: MF || /* @__PURE__ */ /Mac/.test(Co.platform), windows: /* @__PURE__ */ /Win/.test(Co.platform), linux: /* @__PURE__ */ /Linux|X11/.test(Co.platform), ie: NT, - ie_version: XK ? r8.documentMode || 6 : i8 ? +i8[1] : n8 ? +n8[1] : 0, + ie_version: HK ? r8.documentMode || 6 : i8 ? +i8[1] : n8 ? +n8[1] : 0, gecko: LF, gecko_version: LF ? +(/* @__PURE__ */ /Firefox\/(\d+)/.exec(Co.userAgent) || [0, 0])[1] : 0, chrome: !!b_, @@ -4580,11 +4580,11 @@ var Vt = { ios: MF, android: /* @__PURE__ */ /Android\b/.test(Co.userAgent), webkit: RF, - safari: HK, + safari: ZK, webkit_version: RF ? +(/* @__PURE__ */ /\bAppleWebKit\/(\d+)/.exec(navigator.userAgent) || [0, 0])[1] : 0, tabSize: r8.documentElement.style.tabSize != null ? "tab-size" : "-moz-tab-size" }; -const Ewe = 256; +const _we = 256; class ch extends Dn { constructor(e) { super(), this.text = e; @@ -4602,7 +4602,7 @@ class ch extends Dn { e.nodeType == 3 && this.createDOM(e); } merge(e, r, n) { - return this.flags & 8 || n && (!(n instanceof ch) || this.length - (r - e) + n.length > Ewe || 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 ch) || this.length - (r - e) + n.length > _we || 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 ch(this.text.slice(e)); @@ -4618,7 +4618,7 @@ class ch extends Dn { return { from: n, to: n + this.length, startDOM: this.dom, endDOM: this.dom.nextSibling }; } coordsAt(e, r) { - return _we(this.dom, e, r); + return Awe(this.dom, e, r); } } class uh extends Dn { @@ -4628,7 +4628,7 @@ class uh extends Dn { i.setParent(this); } setAttrs(e) { - if (VK(e), this.mark.class && (e.className = this.mark.class), this.mark.attrs) + if (qK(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; @@ -4643,7 +4643,7 @@ class uh extends Dn { 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 uh && n.mark.eq(this.mark)) || e && s <= 0 || r < this.length && a <= 0) ? !1 : (GK(this, e, r, n ? n.children.slice() : [], s - 1, a - 1), this.markDirty(), !0); + return n && (!(n instanceof uh && n.mark.eq(this.mark)) || e && s <= 0 || r < this.length && a <= 0) ? !1 : (XK(this, e, r, n ? n.children.slice() : [], s - 1, a - 1), this.markDirty(), !0); } split(e) { let r = [], n = 0, i = -1, s = 0; @@ -4655,13 +4655,13 @@ class uh extends Dn { return this.length = e, i > -1 && (this.children.length = i, this.markDirty()), new uh(this.mark, r, a); } domAtPos(e) { - return ZK(this, e); + return jK(this, e); } coordsAt(e, r) { - return KK(this, e, r); + return JK(this, e, r); } } -function _we(t, e, r) { +function Awe(t, e, r) { let n = t.nodeValue.length; e > n && (e = n); let i = e, s = e, a = 0; @@ -4786,7 +4786,7 @@ class dm extends Dn { } } ch.prototype.children = uf.prototype.children = dm.prototype.children = ZM; -function ZK(t, e) { +function jK(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; @@ -4810,11 +4810,11 @@ function ZK(t, e) { } return new Zs(r, 0); } -function jK(t, e, r) { +function KK(t, e, r) { let n, { children: i } = t; - r > 0 && e instanceof uh && i.length && (n = i[i.length - 1]) instanceof uh && n.mark.eq(e.mark) ? jK(n, e.children[0], r - 1) : (i.push(e), e.setParent(t)), t.length += e.length; + r > 0 && e instanceof uh && i.length && (n = i[i.length - 1]) instanceof uh && n.mark.eq(e.mark) ? KK(n, e.children[0], r - 1) : (i.push(e), e.setParent(t)), t.length += e.length; } -function KK(t, e, r) { +function JK(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++) { @@ -4824,9 +4824,9 @@ function KK(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) : Awe(t); + return l ? l.coordsAt(Math.max(0, l == n ? i : a), r) : Lwe(t); } -function Awe(t) { +function Lwe(t) { let e = t.dom.lastChild; if (!e) return t.dom.getBoundingClientRect(); @@ -4861,7 +4861,7 @@ function a8(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 Lwe(t) { +function Rwe(t) { let e = /* @__PURE__ */ Object.create(null); for (let r = 0; r < t.attributes.length; r++) { let n = t.attributes[r]; @@ -4879,7 +4879,7 @@ class Ni extends Dn { return !1; this.dom || n.transferDOM(this); } - return i && this.setDeco(n ? n.attrs : null), GK(this, e, r, n ? n.children.slice() : [], s, a), !0; + return i && this.setDeco(n ? n.attrs : null), XK(this, e, r, n ? n.children.slice() : [], s, a), !0; } split(e) { let r = new Ni(); @@ -4900,21 +4900,21 @@ class Ni extends Dn { jM(this.attrs, e) || (this.dom && (this.prevAttrs = this.attrs, this.markDirty()), this.attrs = e); } append(e, r) { - jK(this, e, r); + KK(this, e, r); } addLineDeco(e) { let r = e.spec.attributes, n = e.spec.class; r && (this.attrs = s8(r, this.attrs || {})), n && (this.attrs = s8({ class: n }, this.attrs || {})); } domAtPos(e) { - return ZK(this, e); + return jK(this, e); } reuseDOM(e) { e.nodeName == "DIV" && (this.setDOM(e), this.flags |= 6); } sync(e, r) { var n; - this.dom ? this.flags & 4 && (VK(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 && (a8(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 && (qK(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 && (a8(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 && Dn.get(i) instanceof uh; ) i = i.lastChild; @@ -4942,7 +4942,7 @@ class Ni extends Dn { } : null; } coordsAt(e, r) { - let n = KK(this, e, r); + let n = JK(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) { @@ -5076,7 +5076,7 @@ class It extends M0 { if (e.isBlockGap) n = -5e8, i = 4e8; else { - let { start: s, end: a } = JK(e, r); + let { start: s, end: a } = eJ(e, r); n = (s ? r ? -3e8 : -1 : 5e8) - 1, i = (a ? r ? 2e8 : 1 : -6e8) + 1; } return new If(e, n, i, r, e.widget || null, !0); @@ -5094,7 +5094,7 @@ class It extends M0 { It.none = $r.empty; class Nx extends It { constructor(e) { - let { start: r, end: n } = JK(e); + let { start: r, end: n } = eJ(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) { @@ -5134,7 +5134,7 @@ class If extends It { return this.block || !!this.widget && (this.widget.estimatedHeight >= 5 || this.widget.lineBreaks > 0); } eq(e) { - return e instanceof If && Rwe(this.widget, e.widget) && this.block == e.block && this.startSide == e.startSide && this.endSide == e.endSide; + return e instanceof If && Mwe(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)) @@ -5145,11 +5145,11 @@ class If extends It { } } If.prototype.point = !0; -function JK(t, e = !1) { +function eJ(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 Rwe(t, e) { +function Mwe(t, e) { return t == e || !!(t && e && t.compare(e)); } function o8(t, e, r, n = 0) { @@ -5243,9 +5243,9 @@ class PF extends uo { return !0; } } -const eJ = /* @__PURE__ */ $t.define(), tJ = /* @__PURE__ */ $t.define(), rJ = /* @__PURE__ */ $t.define(), nJ = /* @__PURE__ */ $t.define(), l8 = /* @__PURE__ */ $t.define(), iJ = /* @__PURE__ */ $t.define(), sJ = /* @__PURE__ */ $t.define(), aJ = /* @__PURE__ */ $t.define({ +const tJ = /* @__PURE__ */ $t.define(), rJ = /* @__PURE__ */ $t.define(), nJ = /* @__PURE__ */ $t.define(), iJ = /* @__PURE__ */ $t.define(), l8 = /* @__PURE__ */ $t.define(), sJ = /* @__PURE__ */ $t.define(), aJ = /* @__PURE__ */ $t.define(), oJ = /* @__PURE__ */ $t.define({ combine: (t) => t.some((e) => e) -}), oJ = /* @__PURE__ */ $t.define({ +}), lJ = /* @__PURE__ */ $t.define({ combine: (t) => t.some((e) => e) }); class Pg { @@ -5261,11 +5261,11 @@ class Pg { } const lO = /* @__PURE__ */ or.define({ map: (t, e) => t.map(e) }); function al(t, e, r) { - let n = t.facet(nJ); + let n = t.facet(iJ); 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 IT = /* @__PURE__ */ $t.define({ combine: (t) => t.length ? t[0] : !0 }); -let Mwe = 0; +let Dwe = 0; const ty = /* @__PURE__ */ $t.define(); class hn { constructor(e, r, n, i, s) { @@ -5273,7 +5273,7 @@ class hn { } static define(e, r) { const { eventHandlers: n, eventObservers: i, provide: s, decorations: a } = r || {}; - return new hn(Mwe++, e, n, i, (o) => { + return new hn(Dwe++, e, n, i, (o) => { let l = [ty.of(o)]; return a && l.push(g2.of((u) => { let h = u.plugin(o); @@ -5326,9 +5326,9 @@ class x_ { this.spec = this.value = null; } } -const lJ = /* @__PURE__ */ $t.define(), KM = /* @__PURE__ */ $t.define(), g2 = /* @__PURE__ */ $t.define(), JM = /* @__PURE__ */ $t.define(), cJ = /* @__PURE__ */ $t.define(); +const cJ = /* @__PURE__ */ $t.define(), KM = /* @__PURE__ */ $t.define(), g2 = /* @__PURE__ */ $t.define(), JM = /* @__PURE__ */ $t.define(), uJ = /* @__PURE__ */ $t.define(); function NF(t, e, r) { - let n = t.state.facet(cJ); + let n = t.state.facet(uJ); if (!n.length) return n; let i = n.map((a) => a instanceof Function ? a(t) : a), s = []; @@ -5350,10 +5350,10 @@ function NF(t, e, r) { } }), s; } -const uJ = /* @__PURE__ */ $t.define(); -function hJ(t) { +const hJ = /* @__PURE__ */ $t.define(); +function fJ(t) { let e = 0, r = 0, n = 0, i = 0; - for (let s of t.state.facet(uJ)) { + for (let s of t.state.facet(hJ)) { 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))); } @@ -5433,25 +5433,25 @@ class v5 { var Wn = /* @__PURE__ */ function(t) { return t[t.LTR = 0] = "LTR", t[t.RTL = 1] = "RTL", t; }(Wn || (Wn = {})); -const m2 = Wn.LTR, fJ = Wn.RTL; -function dJ(t) { +const m2 = Wn.LTR, dJ = Wn.RTL; +function pJ(t) { let e = []; for (let r = 0; r < t.length; r++) e.push(1 << +t[r]); return e; } -const Dwe = /* @__PURE__ */ dJ("88888888888888888888888888888888888666888888787833333333337888888000000000000000000000000008888880000000000000000000000000088888888888888888888888888888888888887866668888088888663380888308888800000000000000000000000800000000000000000000000000000008"), Pwe = /* @__PURE__ */ dJ("4444448826627288999999999992222222222222222222222222222222222222222222222229999999999999999999994444444444644222822222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222999999949999999229989999223333333333"), c8 = /* @__PURE__ */ Object.create(null), wc = []; +const Pwe = /* @__PURE__ */ pJ("88888888888888888888888888888888888666888888787833333333337888888000000000000000000000000008888880000000000000000000000000088888888888888888888888888888888888887866668888088888663380888308888800000000000000000000000800000000000000000000000000000008"), Nwe = /* @__PURE__ */ pJ("4444448826627288999999999992222222222222222222222222222222222222222222222229999999999999999999994444444444644222822222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222999999949999999229989999223333333333"), c8 = /* @__PURE__ */ Object.create(null), wc = []; for (let t of ["()", "[]", "{}"]) { let e = /* @__PURE__ */ t.charCodeAt(0), r = /* @__PURE__ */ t.charCodeAt(1); c8[e] = r, c8[r] = -e; } -function Nwe(t) { - return t <= 247 ? Dwe[t] : 1424 <= t && t <= 1524 ? 2 : 1536 <= t && t <= 1785 ? Pwe[t - 1536] : 1774 <= t && t <= 2220 ? 4 : 8192 <= t && t <= 8204 ? 256 : 64336 <= t && t <= 65023 ? 4 : 1; +function Iwe(t) { + return t <= 247 ? Pwe[t] : 1424 <= t && t <= 1524 ? 2 : 1536 <= t && t <= 1785 ? Nwe[t - 1536] : 1774 <= t && t <= 2220 ? 4 : 8192 <= t && t <= 8204 ? 256 : 64336 <= t && t <= 65023 ? 4 : 1; } -const Iwe = /[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\ufb50-\ufdff]/; +const $we = /[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\ufb50-\ufdff]/; class hf { get dir() { - return this.level % 2 ? fJ : m2; + return this.level % 2 ? dJ : m2; } constructor(e, r, n) { this.from = e, this.to = r, this.level = n; @@ -5474,22 +5474,22 @@ class hf { return s; } } -function pJ(t, e) { +function gJ(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 || !pJ(n.inner, i.inner)) + if (n.from != i.from || n.to != i.to || n.direction != i.direction || !gJ(n.inner, i.inner)) return !1; } return !0; } const pn = []; -function $we(t, e, r, n, i) { +function Bwe(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 = Nwe(t.charCodeAt(u)); + let d = Iwe(t.charCodeAt(u)); d == 512 ? d = h : d == 8 && f == 4 && (d = 16), pn[u] = d == 4 ? 2 : d, d & 7 && (f = d), h = d; } for (let u = a, h = l, f = l; u < o; u++) { @@ -5510,7 +5510,7 @@ function $we(t, e, r, n, i) { } } } -function Bwe(t, e, r, n, i) { +function Fwe(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; @@ -5546,7 +5546,7 @@ function Bwe(t, e, r, n, i) { } } } -function Fwe(t, e, r, n) { +function zwe(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; ) { @@ -5658,24 +5658,24 @@ function u8(t, e, r, n, i, s, a) { } function h8(t, e, r, n, i, s, a) { let o = e % 2 ? 2 : 1; - $we(t, i, s, n, o), Bwe(t, i, s, n, o), Fwe(i, s, n, o), u8(t, i, s, e, r, n, a); + Bwe(t, i, s, n, o), Fwe(t, i, s, n, o), zwe(i, s, n, o), u8(t, i, s, e, r, n, a); } -function zwe(t, e, r) { +function Qwe(t, e, r) { if (!t) - return [new hf(0, 0, e == fJ ? 1 : 0)]; - if (e == m2 && !r.length && !Iwe.test(t)) - return gJ(t.length); + return [new hf(0, 0, e == dJ ? 1 : 0)]; + if (e == m2 && !r.length && !$we.test(t)) + return mJ(t.length); if (r.length) for (; t.length > pn.length; ) pn[pn.length] = 256; let n = [], i = e == m2 ? 0 : 1; return h8(t, i, i, r, 0, t.length, n), n; } -function gJ(t) { +function mJ(t) { return [new hf(0, t, 0)]; } -let mJ = ""; -function Qwe(t, e, r, n, i) { +let vJ = ""; +function Uwe(t, e, r, n, i) { var s; let a = n.head - t.from, o = -1; if (a == 0) { @@ -5692,7 +5692,7 @@ function Qwe(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 = Ss(t.text, a, u); - if (mJ = t.text.slice(Math.min(a, h), Math.max(a, h)), h > l.from && h < l.to) + if (vJ = t.text.slice(Math.min(a, h), Math.max(a, h)), h > l.from && h < l.to) return je.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 ? je.cursor(i ? t.to : t.from, i ? -1 : 1, r) : f && f.level < l.level ? je.cursor(f.side(!i, r) + t.from, i ? 1 : -1, f.level) : je.cursor(h + t.from, i ? -1 : 1, l.level); @@ -5709,15 +5709,15 @@ class IF extends Dn { 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 : !Xwe(e.changes, this.hasComposition) && !e.selectionSet && (i = e.state.selection.main.head)); - let s = i > -1 ? Vwe(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 : !Hwe(e.changes, this.hasComposition) && !e.selectionSet && (i = e.state.selection.main.head)); + let s = i > -1 ? qwe(this.view, e.changes, i) : null; if (this.domChanged = null, this.hasComposition) { this.markedForComposition.clear(); let { from: u, to: h } = this.hasComposition; n = new ol(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, (Vt.ie || Vt.chrome) && !s && e && e.state.doc.lines != e.startState.doc.lines && (this.forceSelection = !0); - let a = this.decorations, o = this.updateDeco(), l = Wwe(a, o, e.changes); + let a = this.decorations, o = this.updateDeco(), l = Gwe(a, o, e.changes); return n = ol.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) { @@ -5749,7 +5749,7 @@ class IF extends Dn { } else ({ content: d, breakAtStart: p, openStart: g, openEnd: m } = Ny.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); - WK(this, b, w, v, y, d, p, g, m); + GK(this, b, w, v, y, d, p, g, m); } n && this.fixCompositionDOM(n); } @@ -5779,20 +5779,20 @@ class IF extends Dn { 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 (Vt.gecko && o.empty && !this.hasComposition && Uwe(l)) { + if (Vt.gecko && o.empty && !this.hasComposition && Vwe(l)) { let f = document.createTextNode(""); this.view.observer.ignore(() => l.node.insertBefore(f, l.node.childNodes[l.offset] || null)), l = u = new Zs(f, 0), a = !0; } let h = this.view.observer.selectionRange; (a || !h.focusNode || !m5(l.node, l.offset, h.anchorNode, h.anchorOffset) || !m5(u.node, u.offset, h.focusNode, h.focusOffset)) && (this.view.observer.ignore(() => { - Vt.android && Vt.chrome && this.dom.contains(h.focusNode) && Gwe(h.focusNode, this.dom) && (this.dom.blur(), this.dom.focus({ preventScroll: !0 })); + Vt.android && Vt.chrome && this.dom.contains(h.focusNode) && Xwe(h.focusNode, this.dom) && (this.dom.blur(), this.dom.focus({ preventScroll: !0 })); let f = g5(this.view.root); if (f) if (o.empty) { if (Vt.gecko) { - let d = qwe(l.node, l.offset); + let d = Ywe(l.node, l.offset); if (d && d != 3) { - let p = yJ(l.node, l.offset, d == 1 ? 1 : -1); + let p = bJ(l.node, l.offset, d == 1 ? 1 : -1); p && (l = new Zs(p.node, p.offset)); } } @@ -5946,7 +5946,7 @@ class IF extends Dn { } childCursor(e = this.length) { let r = this.children.length; - return r && (e -= this.children[--r].length), new YK(this.children, e, r); + return r && (e -= this.children[--r].length), new WK(this.children, e, r); } computeBlockGapDeco() { let e = [], r = this.view.viewState; @@ -5992,16 +5992,16 @@ class IF extends Dn { right: Math.max(n.right, i.right), bottom: Math.max(n.bottom, i.bottom) }); - let s = hJ(this.view), a = { + let s = fJ(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; - Owe(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 == Wn.LTR); + kwe(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 == Wn.LTR); } } -function Uwe(t) { +function Vwe(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 $F extends uo { @@ -6022,15 +6022,15 @@ class $F extends uo { return this.height; } } -function vJ(t, e) { - let r = t.observer.selectionRange, n = r.focusNode && yJ(r.focusNode, r.focusOffset, 0); +function yJ(t, e) { + let r = t.observer.selectionRange, n = r.focusNode && bJ(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 Vwe(t, e, r) { - let n = vJ(t, r); +function qwe(t, e, r) { + let n = yJ(t, r); if (!n) return null; let { node: i, from: s, to: a } = n, o = i.nodeValue; @@ -6047,7 +6047,7 @@ function Vwe(t, e, r) { if (f != t.contentDOM) h.push({ node: f, deco: new Nx({ inclusive: !0, - attributes: Lwe(f), + attributes: Rwe(f), tagName: f.tagName.toLowerCase() }) }); else @@ -6055,7 +6055,7 @@ function Vwe(t, e, r) { } } } -function yJ(t, e, r) { +function bJ(t, e, r) { if (r <= 0) for (let n = t, i = e; ; ) { if (n.nodeType == 3) @@ -6076,10 +6076,10 @@ function yJ(t, e, r) { } return null; } -function qwe(t, e) { +function Ywe(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 Ywe = class { +let Wwe = class { constructor() { this.changes = []; } @@ -6090,23 +6090,23 @@ let Ywe = class { o8(e, r, this.changes); } }; -function Wwe(t, e, r) { - let n = new Ywe(); +function Gwe(t, e, r) { + let n = new Wwe(); return $r.compare(t, e, r, n), n.changes; } -function Gwe(t, e) { +function Xwe(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 Xwe(t, e) { +function Hwe(t, e) { let r = !1; return e && t.iterChangedRanges((n, i) => { n < e.to && i > e.from && (r = !0); }), r; } -function Hwe(t, e, r = 1) { +function Zwe(t, e, r = 1) { let n = t.charCategorizer(e), i = t.doc.lineAt(e), s = e - i.from; if (i.length == 0) return je.cursor(e); @@ -6128,10 +6128,10 @@ function Hwe(t, e, r = 1) { } return je.range(a + i.from, o + i.from); } -function Zwe(t, e) { +function jwe(t, e) { return e.left > t ? e.left - t : Math.max(0, t - e.right); } -function jwe(t, e) { +function Kwe(t, e) { return e.top > t ? e.top - t : Math.max(0, t - e.bottom); } function w_(t, e) { @@ -6150,7 +6150,7 @@ function f8(t, e, r) { for (let v = 0; v < m.length; v++) { let y = m[v]; i && w_(i, y) && (y = BF(FF(y, i.bottom), i.top)); - let b = Zwe(e, y), w = jwe(r, y); + let b = jwe(e, y), w = Kwe(r, y); if (b == 0 && w == 0) return g.nodeType == 3 ? zF(g, e, r) : f8(g, e, r); if (!n || a > w || a == w && s > b) { @@ -6191,7 +6191,7 @@ function zF(t, e, r) { } return { node: t, offset: i > -1 ? i : a > 0 ? t.nodeValue.length : 0 }; } -function bJ(t, e, r, n = -1) { +function xJ(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) @@ -6219,7 +6219,7 @@ function bJ(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) || Vt.safari && Kwe(y, b, h) || Vt.chrome && Jwe(y, b, h)) && (y = void 0)); + O && ({ startContainer: y, startOffset: b } = O, (!t.contentDOM.contains(y) || Vt.safari && Jwe(y, b, h) || Vt.chrome && eOe(y, b, h)) && (y = void 0)); } } if (!y || !t.docView.dom.contains(y)) { @@ -6246,7 +6246,7 @@ function QF(t, e, r, n, i) { let a = t.state.sliceDoc(r.from, r.to); return r.from + K7(a, s, t.state.tabSize); } -function Kwe(t, e, r) { +function Jwe(t, e, r) { let n; if (t.nodeType != 3 || e != (n = t.nodeValue.length)) return !1; @@ -6255,7 +6255,7 @@ function Kwe(t, e, r) { return !1; return D0(t, n - 1, n).getBoundingClientRect().left > r; } -function Jwe(t, e, r) { +function eOe(t, e, r) { if (e != 0) return !1; for (let i = t; ; ) { @@ -6278,7 +6278,7 @@ function d8(t, e) { } return r; } -function eOe(t, e, r, n) { +function tOe(t, e, r, n) { let i = d8(t, e.head), s = !n || i.type != Ca.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({ @@ -6293,7 +6293,7 @@ function eOe(t, e, r, n) { function UF(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 = Qwe(i, s, a, o, r), h = mJ; + let u = Uwe(i, s, a, o, r), h = vJ; if (!u) { if (i.number == (r ? t.state.doc.lines : 1)) return o; @@ -6311,14 +6311,14 @@ function UF(t, e, r, n) { o = u; } } -function tOe(t, e, r) { +function rOe(t, e, r) { let n = t.state.charCategorizer(e), i = n(r); return (s) => { let a = n(s); return i == Fn.Space && (i = a), i == a; }; } -function rOe(t, e, r, n) { +function nOe(t, e, r, n) { let i = e.head, s = r ? 1 : -1; if (i == (r ? t.state.doc.length : 0)) return je.cursor(i, e.assoc); @@ -6331,7 +6331,7 @@ function rOe(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 = bJ(t, { x: f, y: g }, !1, s); + let g = o + (d + p) * s, m = xJ(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 je.cursor(m, y, void 0, a); @@ -6356,15 +6356,15 @@ function O_(t, e, r) { let n = rk(t.state.facet(JM).map((i) => i(t)), r.from, e.head > r.from ? -1 : 1); return n == r.from ? r : je.cursor(n, n < r.from ? 1 : -1); } -class nOe { +class iOe { 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, Vt.safari && e.contentDOM.addEventListener("input", () => null), Vt.gecko && bOe(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, Vt.safari && e.contentDOM.addEventListener("input", () => null), Vt.gecko && xOe(e.contentDOM.ownerDocument); } handleEvent(e) { - !hOe(this.view, e) || this.ignoreDuringComposition(e) || e.type == "keydown" && this.keydown(e) || this.runHandlers(e.type, e); + !fOe(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]; @@ -6382,7 +6382,7 @@ class nOe { } } ensureHandlers(e) { - let r = iOe(e), n = this.handlers, i = this.view.contentDOM; + let r = sOe(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]; @@ -6395,10 +6395,10 @@ class nOe { 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 && wJ.indexOf(e.keyCode) < 0 && (this.view.inputState.lastEscPress = 0), Vt.android && Vt.chrome && !e.synthetic && (e.keyCode == 13 || e.keyCode == 8)) + if (e.keyCode != 27 && OJ.indexOf(e.keyCode) < 0 && (this.view.inputState.lastEscPress = 0), Vt.android && Vt.chrome && !e.synthetic && (e.keyCode == 13 || e.keyCode == 8)) return this.view.observer.delayAndroidKey(e.key, e.keyCode), !0; let r; - return Vt.ios && !e.synthetic && !e.altKey && !e.metaKey && ((r = xJ.find((n) => n.keyCode == e.keyCode)) && !e.ctrlKey || sOe.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 Vt.ios && !e.synthetic && !e.altKey && !e.metaKey && ((r = wJ.find((n) => n.keyCode == e.keyCode)) && !e.ctrlKey || aOe.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; @@ -6426,7 +6426,7 @@ function VF(t, e) { } }; } -function iOe(t) { +function sOe(t) { let e = /* @__PURE__ */ Object.create(null); function r(n) { return e[n] || (e[n] = { observers: [], handlers: [] }); @@ -6450,23 +6450,23 @@ function iOe(t) { r(n).observers.push(nc[n]); return e; } -const xJ = [ +const wJ = [ { key: "Backspace", keyCode: 8, inputType: "deleteContentBackward" }, { key: "Enter", keyCode: 13, inputType: "insertParagraph" }, { key: "Enter", keyCode: 13, inputType: "insertLineBreak" }, { key: "Delete", keyCode: 46, inputType: "deleteContentForward" } -], sOe = "dthko", wJ = [16, 17, 18, 20, 91, 92, 224, 225], cO = 6; +], aOe = "dthko", OJ = [16, 17, 18, 20, 91, 92, 224, 225], cO = 6; function uO(t) { return Math.max(0, t) * 0.7 + 8; } -function aOe(t, e) { +function oOe(t, e) { return Math.max(Math.abs(t.clientX - e.clientX), Math.abs(t.clientY - e.clientY)); } -class oOe { +class lOe { 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 = kwe(e.contentDOM), this.atoms = e.state.facet(JM).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 = Swe(e.contentDOM), this.atoms = e.state.facet(JM).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(Tr.allowMultipleSelections) && lOe(e, r), this.dragging = uOe(e, r) && TJ(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(Tr.allowMultipleSelections) && cOe(e, r), this.dragging = hOe(e, r) && CJ(r) == 1 ? null : !1; } start(e) { this.dragging === !1 && this.select(e); @@ -6475,10 +6475,10 @@ class oOe { var r; if (e.buttons == 0) return this.destroy(); - if (this.dragging || this.dragging == null && aOe(this.startEvent, e) < 10) + if (this.dragging || this.dragging == null && oOe(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 = hJ(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 = fJ(this.view); e.clientX - a.left <= s.left + cO ? n = -uO(s.left - e.clientX) : e.clientX + a.right >= s.right - cO && (n = uO(e.clientX - s.right)), e.clientY - a.top <= s.top + cO ? i = -uO(s.top - e.clientY) : e.clientY + a.bottom >= s.bottom - cO && (i = uO(e.clientY - s.bottom)), this.setScrollSpeed(n, i); } up(e) { @@ -6521,15 +6521,15 @@ class oOe { this.style.update(e) && setTimeout(() => this.select(this.lastEvent), 20); } } -function lOe(t, e) { - let r = t.state.facet(eJ); - return r.length ? r[0](e) : Vt.mac ? e.metaKey : e.ctrlKey; -} function cOe(t, e) { let r = t.state.facet(tJ); - return r.length ? r[0](e) : Vt.mac ? !e.altKey : !e.ctrlKey; + return r.length ? r[0](e) : Vt.mac ? e.metaKey : e.ctrlKey; } function uOe(t, e) { + let r = t.state.facet(rJ); + return r.length ? r[0](e) : Vt.mac ? !e.altKey : !e.ctrlKey; +} +function hOe(t, e) { let { main: r } = t.state.selection; if (r.empty) return !1; @@ -6544,7 +6544,7 @@ function uOe(t, e) { } return !1; } -function hOe(t, e) { +function fOe(t, e) { if (!e.bubbles) return !0; if (e.defaultPrevented) @@ -6554,17 +6554,17 @@ function hOe(t, e) { return !1; return !0; } -const rc = /* @__PURE__ */ Object.create(null), nc = /* @__PURE__ */ Object.create(null), OJ = Vt.ie && Vt.ie_version < 15 || Vt.ios && Vt.webkit_version < 604; -function fOe(t) { +const rc = /* @__PURE__ */ Object.create(null), nc = /* @__PURE__ */ Object.create(null), kJ = Vt.ie && Vt.ie_version < 15 || Vt.ios && Vt.webkit_version < 604; +function dOe(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(), kJ(t, r.value); + t.focus(), r.remove(), SJ(t, r.value); }, 50); } -function kJ(t, e) { +function SJ(t, e) { let { state: r } = t, n, i = 1, s = r.toText(e), a = s.lines == r.selection.ranges.length; if (p8 != null && r.selection.ranges.every((l) => l.empty) && p8 == s.toString()) { let l = -1; @@ -6606,12 +6606,12 @@ rc.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(rJ)) + for (let n of t.state.facet(nJ)) if (r = n(t, e), r) break; - if (!r && e.button == 0 && (r = gOe(t, e)), r) { + if (!r && e.button == 0 && (r = mOe(t, e)), r) { let n = !t.hasFocus; - t.inputState.startMouseSelection(new oOe(t, e, r, n)), n && t.observer.ignore(() => UK(t.contentDOM)); + t.inputState.startMouseSelection(new lOe(t, e, r, n)), n && t.observer.ignore(() => VK(t.contentDOM)); let i = t.inputState.mouseSelection; if (i) return i.start(e), i.dragging === !1; @@ -6622,14 +6622,14 @@ function qF(t, e, r, n) { if (n == 1) return je.cursor(e, r); if (n == 2) - return Hwe(t.state, e, r); + return Zwe(t.state, e, r); { let i = Ni.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++, je.range(a, o); } } -let SJ = (t, e) => t >= e.top && t <= e.bottom, YF = (t, e, r) => SJ(e, r) && t >= r.left && t <= r.right; -function dOe(t, e, r, n) { +let TJ = (t, e) => t >= e.top && t <= e.bottom, YF = (t, e, r) => TJ(e, r) && t >= r.left && t <= r.right; +function pOe(t, e, r, n) { let i = Ni.find(t.docView, e); if (!i) return 1; @@ -6642,22 +6642,22 @@ function dOe(t, e, r, n) { if (a && YF(r, n, a)) return -1; let o = i.coordsAt(s, 1); - return o && YF(r, n, o) ? 1 : a && SJ(n, a) ? -1 : 1; + return o && YF(r, n, o) ? 1 : a && TJ(n, a) ? -1 : 1; } function WF(t, e) { let r = t.posAtCoords({ x: e.clientX, y: e.clientY }, !1); - return { pos: r, bias: dOe(t, r, e.clientX, e.clientY) }; + return { pos: r, bias: pOe(t, r, e.clientX, e.clientY) }; } -const pOe = Vt.ie && Vt.ie_version <= 11; +const gOe = Vt.ie && Vt.ie_version <= 11; let GF = null, XF = 0, HF = 0; -function TJ(t) { - if (!pOe) +function CJ(t) { + if (!gOe) return t.detail; let e = GF, r = HF; return GF = t, HF = Date.now(), XF = !e || r > Date.now() - 400 && Math.abs(e.clientX - t.clientX) < 2 && Math.abs(e.clientY - t.clientY) < 2 ? (XF + 1) % 3 : 1; } -function gOe(t, e) { - let r = WF(t, e), n = TJ(e), i = t.state.selection; +function mOe(t, e) { + let r = WF(t, e), n = CJ(e), i = t.state.selection; return { update(s) { s.docChanged && (r.pos = s.changes.mapPos(r.pos), i = i.map(s.changes)); @@ -6668,11 +6668,11 @@ function gOe(t, e) { let f = qF(t, r.pos, r.bias, n), d = Math.min(f.from, h.from), p = Math.max(f.to, h.to); h = d < h.from ? je.range(d, p) : je.range(p, d); } - return a ? i.replaceRange(i.main.extend(h.from, h.to)) : o && n == 1 && i.ranges.length > 1 && (u = mOe(i, l.pos)) ? u : o ? i.addRange(h) : je.create([h]); + return a ? i.replaceRange(i.main.extend(h.from, h.to)) : o && n == 1 && i.ranges.length > 1 && (u = vOe(i, l.pos)) ? u : o ? i.addRange(h) : je.create([h]); } }; } -function mOe(t, e) { +function vOe(t, e) { for (let r = 0; r < t.ranges.length; r++) { let { from: n, to: i } = t.ranges[r]; if (n <= e && i >= e) @@ -6696,7 +6696,7 @@ rc.dragend = (t) => (t.inputState.draggedContent = null, !1); function ZF(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 && cOe(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 && uOe(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) }, @@ -6731,10 +6731,10 @@ rc.paste = (t, e) => { if (t.state.readOnly) return !0; t.observer.flush(); - let r = OJ ? null : e.clipboardData; - return r ? (kJ(t, r.getData("text/plain") || r.getData("text/uri-text")), !0) : (fOe(t), !1); + let r = kJ ? null : e.clipboardData; + return r ? (SJ(t, r.getData("text/plain") || r.getData("text/uri-text")), !0) : (dOe(t), !1); }; -function vOe(t, e) { +function yOe(t, e) { let r = t.dom.parentNode; if (!r) return; @@ -6743,7 +6743,7 @@ function vOe(t, e) { n.remove(), t.focus(); }, 50); } -function yOe(t) { +function bOe(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)); @@ -6759,7 +6759,7 @@ function yOe(t) { } let p8 = null; rc.copy = rc.cut = (t, e) => { - let { text: r, ranges: n, linewise: i } = yOe(t.state); + let { text: r, ranges: n, linewise: i } = bOe(t.state); if (!r && !i) return !1; p8 = i ? r : null, e.type == "cut" && !t.state.readOnly && t.dispatch({ @@ -6767,32 +6767,32 @@ rc.copy = rc.cut = (t, e) => { scrollIntoView: !0, userEvent: "delete.cut" }); - let s = OJ ? null : e.clipboardData; - return s ? (s.clearData(), s.setData("text/plain", r), !0) : (vOe(t, r), !1); + let s = kJ ? null : e.clipboardData; + return s ? (s.clearData(), s.setData("text/plain", r), !0) : (yOe(t, r), !1); }; -const CJ = /* @__PURE__ */ co.define(); -function EJ(t, e) { +const EJ = /* @__PURE__ */ co.define(); +function _J(t, e) { let r = []; - for (let n of t.facet(sJ)) { + for (let n of t.facet(aJ)) { let i = n(t, e); i && r.push(i); } - return r ? t.update({ effects: r, annotations: CJ.of(!0) }) : null; + return r ? t.update({ effects: r, annotations: EJ.of(!0) }) : null; } -function _J(t) { +function AJ(t) { setTimeout(() => { let e = t.hasFocus; if (e != t.inputState.notifiedFocused) { - let r = EJ(t.state, e); + let r = _J(t.state, e); r ? t.dispatch(r) : t.update([]); } }, 10); } nc.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), _J(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), AJ(t); }; nc.blur = (t) => { - t.observer.clearSelectionRange(), _J(t); + t.observer.clearSelectionRange(), AJ(t); }; nc.compositionstart = nc.compositionupdate = (t) => { t.inputState.compositionFirstChange == null && (t.inputState.compositionFirstChange = !0), t.inputState.composing < 0 && (t.inputState.composing = 0); @@ -6808,7 +6808,7 @@ nc.contextmenu = (t) => { rc.beforeinput = (t, e) => { var r; let n; - if (Vt.chrome && Vt.android && (n = xJ.find((i) => i.inputType == e.inputType)) && (t.observer.delayAndroidKey(n.key, n.keyCode), n.key == "Backspace" || n.key == "Delete")) { + if (Vt.chrome && Vt.android && (n = wJ.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; @@ -6818,13 +6818,13 @@ rc.beforeinput = (t, e) => { return !1; }; const jF = /* @__PURE__ */ new Set(); -function bOe(t) { +function xOe(t) { jF.has(t) || (jF.add(t), t.addEventListener("copy", () => { }), t.addEventListener("cut", () => { })); } const KF = ["pre-wrap", "normal", "pre-line", "break-spaces"]; -class xOe { +class wOe { constructor(e) { this.lineWrapping = e, this.doc = qr.empty, this.heightSamples = {}, this.lineHeight = 14, this.charWidth = 7, this.textHeight = 14, this.lineLength = 30, this.heightChanged = !1; } @@ -6861,7 +6861,7 @@ class xOe { return l; } } -class wOe { +class OOe { constructor(e, r) { this.from = e, this.heights = r, this.index = 0; } @@ -6956,11 +6956,11 @@ class Ea { o && (s += o.size); } let a = 0; - return e[r - 1] == null ? (a = 1, r--) : e[r] == null && (a = 1, n++), new OOe(Ea.of(e.slice(0, r)), a, Ea.of(e.slice(n))); + return e[r - 1] == null ? (a = 1, r--) : e[r] == null && (a = 1, n++), new kOe(Ea.of(e.slice(0, r)), a, Ea.of(e.slice(n))); } } Ea.prototype.size = 1; -class AJ extends Ea { +class LJ extends Ea { constructor(e, r, n) { super(e, r), this.deco = n; } @@ -6980,7 +6980,7 @@ class AJ extends Ea { return `block(${this.length})`; } } -class wo extends AJ { +class wo extends LJ { constructor(e, r) { super(e, r, null), this.collapsed = 0, this.widgetHeight = 0, this.breaks = 0; } @@ -7085,7 +7085,7 @@ class xs extends Ea { return `gap(${this.length})`; } } -class OOe extends Ea { +class kOe extends Ea { 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; } @@ -7156,7 +7156,7 @@ function JF(t, e) { let r, n; t[e] == null && (r = t[e - 1]) instanceof xs && (n = t[e + 1]) instanceof xs && t.splice(e - 1, 3, new xs(r.length + 1 + n.length)); } -const kOe = 5; +const SOe = 5; class eD { constructor(e, r) { this.pos = e, this.oracle = r, this.nodes = [], this.lineStart = -1, this.lineEnd = -1, this.covering = null, this.writtenTo = e; @@ -7176,7 +7176,7 @@ class eD { 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 AJ(a, i, n)) : (a || s || i >= kOe) && this.addLineDeco(i, s, a); + n.block ? this.addBlock(new LJ(a, i, n)) : (a || s || i >= SOe) && 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); @@ -7221,11 +7221,11 @@ class eD { return $r.spans(r, n, i, s, 0), s.finish(n); } } -function SOe(t, e, r) { - let n = new TOe(); +function TOe(t, e, r) { + let n = new COe(); return $r.compare(t, e, r, n, 0), n.changes; } -class TOe { +class COe { constructor() { this.changes = []; } @@ -7235,7 +7235,7 @@ class TOe { (e < r || n && n.heightRelevant || i && i.heightRelevant) && o8(e, r, this.changes, 5); } } -function COe(t, e) { +function EOe(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) { @@ -7256,7 +7256,7 @@ function COe(t, e) { bottom: Math.max(o, l) - (r.top + e) }; } -function EOe(t, e) { +function _Oe(t, e) { let r = t.getBoundingClientRect(); return { left: 0, @@ -7281,11 +7281,11 @@ class k_ { } draw(e, r) { return It.replace({ - widget: new _Oe(this.size * (r ? e.scaleY : e.scaleX), r) + widget: new AOe(this.size * (r ? e.scaleY : e.scaleX), r) }).range(this.from, this.to); } } -class _Oe extends uo { +class AOe extends uo { constructor(e, r) { super(), this.size = e, this.vertical = r; } @@ -7304,7 +7304,7 @@ class ez { 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 = tz, this.scrollTarget = null, this.printing = !1, this.mustMeasureContent = !0, this.defaultTextDirection = Wn.LTR, this.visibleRanges = [], this.mustEnforceCursorAssoc = !1; let r = e.facet(KM).some((n) => typeof n != "function" && n.class == "cm-lineWrapping"); - this.heightOracle = new xOe(r), this.stateDeco = e.facet(g2).filter((n) => typeof n != "function"), this.heightMap = Ea.empty().applyChanges(this.stateDeco, qr.empty, this.heightOracle.setDoc(e.doc), [new ol(0, 0, 0, e.doc.length)]), this.viewport = this.getViewport(0, null), this.updateViewportLines(), this.updateForViewport(), this.lineGaps = this.ensureLineGaps([]), this.lineGapDeco = It.set(this.lineGaps.map((n) => n.draw(this, !1))), this.computeVisibleRanges(); + this.heightOracle = new wOe(r), this.stateDeco = e.facet(g2).filter((n) => typeof n != "function"), this.heightMap = Ea.empty().applyChanges(this.stateDeco, qr.empty, this.heightOracle.setDoc(e.doc), [new ol(0, 0, 0, e.doc.length)]), this.viewport = this.getViewport(0, null), this.updateViewportLines(), this.updateForViewport(), this.lineGaps = this.ensureLineGaps([]), this.lineGapDeco = It.set(this.lineGaps.map((n) => n.draw(this, !1))), this.computeVisibleRanges(); } updateForViewport() { let e = [this.viewport], { main: r } = this.state.selection; @@ -7315,7 +7315,7 @@ class ez { e.push(new hO(s, a)); } } - this.viewports = e.sort((n, i) => n.from - i.from), this.scaler = this.heightMap.height <= 7e6 ? tz : new ROe(this.heightOracle, this.heightMap, this.viewports); + this.viewports = e.sort((n, i) => n.from - i.from), this.scaler = this.heightMap.height <= 7e6 ? tz : new MOe(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) => { @@ -7326,12 +7326,12 @@ class ez { this.state = e.state; let n = this.stateDeco; this.stateDeco = this.state.facet(g2).filter((h) => typeof h != "function"); - let i = e.changedRanges, s = ol.extendWithRanges(i, SOe(n, this.stateDeco, e ? e.changes : Oi.empty(this.state.doc.length))), a = this.heightMap.height, o = this.scrolledToBottom ? null : this.scrollAnchorAt(this.scrollTop); + let i = e.changedRanges, s = ol.extendWithRanges(i, TOe(n, this.stateDeco, e ? e.changes : Oi.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(oJ) && (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(lJ) && (this.mustEnforceCursorAssoc = !0); } measure(e) { let r = e.contentDOM, n = window.getComputedStyle(r), i = this.heightOracle, s = n.whiteSpace; @@ -7340,14 +7340,14 @@ class ez { this.contentDOMHeight = o.height, this.mustMeasureContent = !1; let u = 0, h = 0; if (o.width && o.height) { - let { scaleX: O, scaleY: S } = QK(r, o); + let { scaleX: O, scaleY: S } = UK(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 = qK(e.scrollDOM); - let g = (this.printing ? EOe : COe)(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 = YK(e.scrollDOM); + let g = (this.printing ? _Oe : EOe)(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) @@ -7362,7 +7362,7 @@ class ez { 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 ? Ea.empty().applyChanges(this.stateDeco, qr.empty, this.heightOracle, [new ol(0, 0, 0, e.state.doc.length)]) : this.heightMap).updateHeight(i, 0, a, new wOe(S.from, C)); + this.heightMap = (a ? Ea.empty().applyChanges(this.stateDeco, qr.empty, this.heightOracle, [new ol(0, 0, 0, e.state.doc.length)]) : this.heightMap).updateHeight(i, 0, a, new OOe(S.from, C)); } i.heightChanged && (u |= 2); } @@ -7418,7 +7418,7 @@ class ez { l(u, v - 10, f, d), l(v + 10, h, f, d); return; } - let m = LOe(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 = ROe(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(je.cursor(h), !1, !0).head; @@ -7431,7 +7431,7 @@ class ez { for (let u of this.viewportLines) { if (u.length < a) continue; - let h = AOe(u.from, u.to, this.stateDeco); + let h = LOe(u.from, u.to, this.stateDeco); if (h.total < a) continue; let f = this.scrollTarget ? this.scrollTarget.range.head : null, d, p; @@ -7502,7 +7502,7 @@ class hO { this.from = e, this.to = r; } } -function AOe(t, e, r) { +function LOe(t, e, r) { let n = [], i = t, s = 0; return $r.spans(r, t, e, { span() { @@ -7536,7 +7536,7 @@ function dO(t, e) { } return r / t.total; } -function LOe(t, e) { +function ROe(t, e) { for (let r of t) if (e(r)) return r; @@ -7550,7 +7550,7 @@ const tz = { }, scale: 1 }; -class ROe { +class MOe { constructor(e, r, n) { let i = 0, s = 0, a = 0; this.viewports = n.map(({ from: o, to: l }) => { @@ -7587,7 +7587,7 @@ function ny(t, e) { let r = e.toDOM(t.top), n = e.toDOM(t.bottom); return new Ic(t.from, t.length, r, n - r, Array.isArray(t._content) ? t._content.map((i) => ny(i, e)) : t._content); } -const pO = /* @__PURE__ */ $t.define({ combine: (t) => t.join(" ") }), g8 = /* @__PURE__ */ $t.define({ combine: (t) => t.indexOf(!0) > -1 }), m8 = /* @__PURE__ */ oh.newName(), LJ = /* @__PURE__ */ oh.newName(), RJ = /* @__PURE__ */ oh.newName(), MJ = { "&light": "." + LJ, "&dark": "." + RJ }; +const pO = /* @__PURE__ */ $t.define({ combine: (t) => t.join(" ") }), g8 = /* @__PURE__ */ $t.define({ combine: (t) => t.indexOf(!0) > -1 }), m8 = /* @__PURE__ */ oh.newName(), RJ = /* @__PURE__ */ oh.newName(), MJ = /* @__PURE__ */ oh.newName(), DJ = { "&light": "." + RJ, "&dark": "." + MJ }; function v8(t, e, r) { return new oh(e, { finish(n) { @@ -7601,7 +7601,7 @@ function v8(t, e, r) { } }); } -const MOe = /* @__PURE__ */ v8("." + m8, { +const DOe = /* @__PURE__ */ v8("." + m8, { "&": { position: "relative !important", boxSizing: "border-box", @@ -7832,8 +7832,8 @@ const MOe = /* @__PURE__ */ v8("." + m8, { border: "1px solid #555", backgroundColor: "inherit" } -}, MJ), iy = "\uFFFF"; -class DOe { +}, DJ), iy = "\uFFFF"; +class POe { constructor(e, r) { this.points = e, this.text = "", this.lineSeparator = r.facet(Tr.lineSeparator); } @@ -7890,10 +7890,10 @@ class DOe { } findPointInside(e, r) { for (let n of this.points) - (e.nodeType == 3 ? n.node == e : e.contains(n.node)) && (n.pos = this.text.length + (POe(e, n.node, n.offset) ? r : 0)); + (e.nodeType == 3 ? n.node == e : e.contains(n.node)) && (n.pos = this.text.length + (NOe(e, n.node, n.offset) ? r : 0)); } } -function POe(t, e, r) { +function NOe(t, e, r) { for (; ; ) { if (!e || r < lh(e)) return !1; @@ -7910,27 +7910,27 @@ class nz { this.node = e, this.offset = r, this.pos = -1; } } -class NOe { +class IOe { 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 ? [] : BOe(e), l = new DOe(o, e.state); - l.readRange(this.bounds.startDOM, this.bounds.endDOM), this.text = l.text, this.newSel = FOe(o, this.bounds.from); + let o = s || a ? [] : FOe(e), l = new POe(o, e.state); + l.readRange(this.bounds.startDOM, this.bounds.endDOM), this.text = l.text, this.newSel = zOe(o, this.bounds.from); } else { let o = e.observer.selectionRange, l = s && s.node == o.focusNode && s.offset == o.focusOffset || !t8(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 || !t8(e.contentDOM, o.anchorNode) ? e.state.selection.main.anchor : e.docView.posFromDOM(o.anchorNode, o.anchorOffset); this.newSel = je.single(u, l); } } } -function DJ(t, e) { +function PJ(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 || Vt.android && e.text.length < o - a) && (l = i.to, u = "end"); - let h = $Oe(t.state.doc.sliceString(a, o, iy), e.text, l - a, u); + let h = BOe(t.state.doc.sliceString(a, o, iy), e.text, l - a, u); h && (Vt.chrome && s == 13 && h.toB == h.from + 2 && e.text.slice(h.from, h.toB) == iy + iy && h.toB--, r = { from: a + h.from, to: a + h.toA, @@ -7950,15 +7950,15 @@ function DJ(t, e) { return !0; let a = r.insert.toString(); t.inputState.composing >= 0 && t.inputState.composing++; - let o, l = () => o || (o = IOe(t, r, n)); - return t.state.facet(iJ).some((u) => u(t, r.from, r.to, a, l)) || t.dispatch(l()), !0; + let o, l = () => o || (o = $Oe(t, r, n)); + return t.state.facet(sJ).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 IOe(t, e, r) { +function $Oe(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) : ""; @@ -7966,7 +7966,7 @@ function IOe(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 && vJ(t, r.main.head); + let u = t.state.sliceDoc(e.from, e.to), h, f = r && yJ(t, r.main.head); if (f) { let g = e.insert.length - (e.to - e.from); h = { from: f.from, to: f.to - g }; @@ -7994,7 +7994,7 @@ function IOe(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 $Oe(t, e, r, n) { +function BOe(t, e, r, n) { let i = Math.min(t.length, e.length), s = 0; for (; s < i && t.charCodeAt(s) == e.charCodeAt(s); ) s++; @@ -8016,29 +8016,29 @@ function $Oe(t, e, r, n) { } return { from: s, toA: a, toB: o }; } -function BOe(t) { +function FOe(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 nz(r, n)), (i != r || s != n) && e.push(new nz(i, s))), e; } -function FOe(t, e) { +function zOe(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 ? je.single(r + e, n + e) : null; } -const zOe = { +const QOe = { childList: !0, characterData: !0, subtree: !0, attributes: !0, characterDataOldValue: !0 }, S_ = Vt.ie && Vt.ie_version <= 11; -class QOe { +class UOe { constructor(e) { - this.view = e, this.active = !1, this.selectionRange = new Swe(), 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 Twe(), 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); (Vt.ie && Vt.ie_version <= 11 || Vt.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(); @@ -8096,11 +8096,11 @@ class QOe { (Vt.ie && Vt.ie_version <= 11 || Vt.android && Vt.chrome) && !n.state.selection.main.empty && i.focusNode && m5(i.focusNode, i.focusOffset, i.anchorNode, i.anchorOffset) ? this.flushSoon() : this.flush(!1); } readSelectionRange() { - let { view: e } = this, r = Vt.safari && e.root.nodeType == 11 && xwe(this.dom.ownerDocument) == this.dom && UOe(this.view) || g5(e.root); + let { view: e } = this, r = Vt.safari && e.root.nodeType == 11 && wwe(this.dom.ownerDocument) == this.dom && VOe(this.view) || g5(e.root); if (!r || this.selectionRange.eq(r)) return !1; let n = tk(this.dom, r); - return n && !this.selectionChanged && e.inputState.lastFocusTime > Date.now() - 200 && e.inputState.lastTouchTime < Date.now() - 300 && Cwe(this.dom, r) ? (this.view.inputState.lastFocusTime = 0, e.docView.updateSelection(), !1) : (this.selectionRange.setRange(r), n && (this.selectionChanged = !0), !0); + return n && !this.selectionChanged && e.inputState.lastFocusTime > Date.now() - 200 && e.inputState.lastTouchTime < Date.now() - 300 && Ewe(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; @@ -8135,7 +8135,7 @@ class QOe { } } start() { - this.active || (this.observer.observe(this.dom, zOe), S_ && this.dom.addEventListener("DOMCharacterDataModified", this.onCharData), this.active = !0); + this.active || (this.observer.observe(this.dom, QOe), S_ && this.dom.addEventListener("DOMCharacterDataModified", this.onCharData), this.active = !0); } stop() { !this.active || (this.active = !1, this.observer.disconnect(), S_ && this.dom.removeEventListener("DOMCharacterDataModified", this.onCharData)); @@ -8189,7 +8189,7 @@ class QOe { if (e < 0 && !i) return null; e > -1 && (this.lastChange = Date.now()), this.view.inputState.lastFocusTime = 0, this.selectionChanged = !1; - let s = new NOe(this.view, e, r, n); + let s = new IOe(this.view, e, r, n); return this.view.docView.domChanged = { newSel: s.newSel ? s.newSel.main : null }, s; } flush(e = !0) { @@ -8199,7 +8199,7 @@ class QOe { let r = this.readChange(); if (!r) return this.view.requestMeasure(), !1; - let n = this.view.state, i = DJ(this.view, r); + let n = this.view.state, i = PJ(this.view, r); return this.view.state == n && this.view.update([]), i; } readMutation(e) { @@ -8243,7 +8243,7 @@ function iz(t, e, r) { } return null; } -function UOe(t) { +function VOe(t) { let e = null; function r(l) { l.preventDefault(), l.stopImmediatePropagation(), e = l.getTargetRanges()[0]; @@ -8281,10 +8281,10 @@ class kt { 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 || Twe(e.parent) || document, this.viewState = new ez(e.state || Tr.create(e)), e.scrollTo && e.scrollTo.is(lO) && (this.viewState.scrollTarget = e.scrollTo.value.clip(this.viewState.state)), this.plugins = this.state.facet(ty).map((n) => new x_(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 || Cwe(e.parent) || document, this.viewState = new ez(e.state || Tr.create(e)), e.scrollTo && e.scrollTo.is(lO) && (this.viewState.scrollTarget = e.scrollTo.value.clip(this.viewState.state)), this.plugins = this.state.facet(ty).map((n) => new x_(n)); for (let n of this.plugins) n.update(this); - this.observer = new QOe(this), this.inputState = new nOe(this), this.inputState.ensureHandlers(this.plugins), this.docView = new IF(this), this.mountStyles(), this.updateAttrs(), this.updateState = 0, this.requestMeasure(); + this.observer = new UOe(this), this.inputState = new iOe(this), this.inputState.ensureHandlers(this.plugins), this.docView = new IF(this), this.mountStyles(), this.updateAttrs(), this.updateState = 0, this.requestMeasure(); } dispatch(...e) { let r = e.length == 1 && e[0] instanceof _i ? e : e.length == 1 && Array.isArray(e[0]) ? e[0] : [this.state.update(...e)]; @@ -8304,7 +8304,7 @@ class kt { return; } let a = this.hasFocus, o = 0, l = null; - e.some((d) => d.annotation(CJ)) ? (this.inputState.notifiedFocused = a, o = 1) : a != this.inputState.notifiedFocused && (this.inputState.notifiedFocused = a, l = EJ(s, a), l || (o = 1)); + e.some((d) => d.annotation(EJ)) ? (this.inputState.notifiedFocused = a, o = 1) : a != this.inputState.notifiedFocused && (this.inputState.notifiedFocused = a, l = _J(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(Tr.phrases) != this.state.facet(Tr.phrases)) return this.setState(s); @@ -8332,7 +8332,7 @@ class kt { al(this.state, p, "update listener"); } (l || h) && Promise.resolve().then(() => { - l && this.state == l.startState && this.dispatch(l), h && !DJ(this, h) && u.force && Dg(this.contentDOM, u.key, u.keyCode); + l && this.state == l.startState && this.dispatch(l), h && !PJ(this, h) && u.force && Dg(this.contentDOM, u.key, u.keyCode); }); } setState(e) { @@ -8392,7 +8392,7 @@ class kt { try { for (let o = 0; ; o++) { if (a < 0) - if (qK(n)) + if (YK(n)) s = -1, a = this.viewState.heightMap.height; else { let p = this.viewState.scrollAnchorAt(i); @@ -8447,10 +8447,10 @@ class kt { o(r); } get themeClasses() { - return m8 + " " + (this.state.facet(g8) ? RJ : LJ) + " " + this.state.facet(pO); + return m8 + " " + (this.state.facet(g8) ? MJ : RJ) + " " + this.state.facet(pO); } updateAttrs() { - let e = az(this, lJ, { + let e = az(this, cJ, { class: "cm-editor" + (this.hasFocus ? " cm-focused " : " ") + this.themeClasses }), r = { spellcheck: "false", @@ -8483,7 +8483,7 @@ class kt { mountStyles() { this.styleModules = this.state.facet(ry); let e = this.state.facet(kt.cspNonce); - oh.mount(this.root, this.styleModules.concat(MOe).reverse(), e ? { nonce: e } : void 0); + oh.mount(this.root, this.styleModules.concat(DOe).reverse(), e ? { nonce: e } : void 0); } readMeasured() { if (this.updateState == 2) @@ -8539,13 +8539,13 @@ class kt { return O_(this, e, UF(this, e, r, n)); } moveByGroup(e, r) { - return O_(this, e, UF(this, e, r, (n) => tOe(this, e.head, n))); + return O_(this, e, UF(this, e, r, (n) => rOe(this, e.head, n))); } moveToLineBoundary(e, r, n = !0) { - return eOe(this, e, r, n); + return tOe(this, e, r, n); } moveVertically(e, r, n) { - return O_(this, e, rOe(this, e, r, n)); + return O_(this, e, nOe(this, e, r, n)); } domAtPos(e) { return this.docView.domAtPos(e); @@ -8554,7 +8554,7 @@ class kt { return this.docView.posFromDOM(e, r); } posAtCoords(e, r = !0) { - return this.readMeasured(), bJ(this, e, r); + return this.readMeasured(), xJ(this, e, r); } coordsAtPos(e, r = 1) { this.readMeasured(); @@ -8577,20 +8577,20 @@ class kt { return this.viewState.defaultTextDirection; } textDirectionAt(e) { - return !this.state.facet(aJ) || e < this.viewport.from || e > this.viewport.to ? this.textDirection : (this.readMeasured(), this.docView.textDirectionAt(e)); + return !this.state.facet(oJ) || 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 > VOe) - return gJ(e.length); + if (e.length > qOe) + return mJ(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 || pJ(s.isolates, n = NF(this, e.from, e.to)))) + if (s.from == e.from && s.dir == r && (s.fresh || gJ(s.isolates, n = NF(this, e.from, e.to)))) return s.order; n || (n = NF(this, e.from, e.to)); - let i = zwe(e.text, r, n); + let i = Qwe(e.text, r, n); return this.bidiCache.push(new y5(e.from, e.to, r, n, !0, i)), i; } get hasFocus() { @@ -8599,7 +8599,7 @@ class kt { } focus() { this.observer.ignore(() => { - UK(this.contentDOM), this.docView.updateSelection(); + VK(this.contentDOM), this.docView.updateSelection(); }); } setRoot(e) { @@ -8628,7 +8628,7 @@ class kt { return r && r.dark && i.push(g8.of(!0)), i; } static baseTheme(e) { - return uc.lowest(ry.of(v8("." + m8, e, MJ))); + return uc.lowest(ry.of(v8("." + m8, e, DJ))); } static findFromDOM(e) { var r; @@ -8637,26 +8637,26 @@ class kt { } } kt.styleModule = ry; -kt.inputHandler = iJ; -kt.focusChangeEffect = sJ; -kt.perLineTextDirection = aJ; -kt.exceptionSink = nJ; +kt.inputHandler = sJ; +kt.focusChangeEffect = aJ; +kt.perLineTextDirection = oJ; +kt.exceptionSink = iJ; kt.updateListener = l8; kt.editable = IT; -kt.mouseSelectionStyle = rJ; -kt.dragMovesSelection = tJ; -kt.clickAddsSelectionRange = eJ; +kt.mouseSelectionStyle = nJ; +kt.dragMovesSelection = rJ; +kt.clickAddsSelectionRange = tJ; kt.decorations = g2; kt.atomicRanges = JM; -kt.bidiIsolatedRanges = cJ; -kt.scrollMargins = uJ; +kt.bidiIsolatedRanges = uJ; +kt.scrollMargins = hJ; kt.darkTheme = g8; kt.cspNonce = /* @__PURE__ */ $t.define({ combine: (t) => t.length ? t[0] : "" }); kt.contentAttributes = KM; -kt.editorAttributes = lJ; +kt.editorAttributes = cJ; kt.lineWrapping = /* @__PURE__ */ kt.contentAttributes.of({ class: "cm-lineWrapping" }); kt.announce = /* @__PURE__ */ or.define(); -const VOe = 4096, sz = {}; +const qOe = 4096, sz = {}; class y5 { 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; @@ -8679,8 +8679,8 @@ function az(t, e, r) { } return r; } -const qOe = Vt.mac ? "mac" : Vt.windows ? "win" : Vt.linux ? "linux" : "key"; -function YOe(t, e) { +const YOe = Vt.mac ? "mac" : Vt.windows ? "win" : Vt.linux ? "linux" : "key"; +function WOe(t, e) { const r = t.split(/-(?!$)/); let n = r[r.length - 1]; n == "Space" && (n = " "); @@ -8705,21 +8705,21 @@ function YOe(t, e) { function gO(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 WOe = /* @__PURE__ */ uc.default(/* @__PURE__ */ kt.domEventHandlers({ +const GOe = /* @__PURE__ */ uc.default(/* @__PURE__ */ kt.domEventHandlers({ keydown(t, e) { - return NJ(PJ(e.state), t, e, "editor"); + return IJ(NJ(e.state), t, e, "editor"); } -})), Ku = /* @__PURE__ */ $t.define({ enables: WOe }), oz = /* @__PURE__ */ new WeakMap(); -function PJ(t) { +})), Ku = /* @__PURE__ */ $t.define({ enables: GOe }), oz = /* @__PURE__ */ new WeakMap(); +function NJ(t) { let e = t.facet(Ku), r = oz.get(e); - return r || oz.set(e, r = HOe(e.reduce((n, i) => n.concat(i), []))), r; + return r || oz.set(e, r = ZOe(e.reduce((n, i) => n.concat(i), []))), r; } -function GOe(t, e, r) { - return NJ(PJ(t.state), e, t, r); +function XOe(t, e, r) { + return IJ(NJ(t.state), e, t, r); } let tf = null; -const XOe = 4e3; -function HOe(t, e = qOe) { +const HOe = 4e3; +function ZOe(t, e = YOe) { let r = /* @__PURE__ */ Object.create(null), n = /* @__PURE__ */ Object.create(null), i = (a, o) => { let l = n[a]; if (l == null) @@ -8728,7 +8728,7 @@ function HOe(t, e = qOe) { 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) => YOe(y, e)); + let p = r[a] || (r[a] = /* @__PURE__ */ Object.create(null)), g = o.split(/ (?!$)/).map((y) => WOe(y, e)); for (let y = 1; y < g.length; y++) { let b = g.slice(0, y).join(" "); i(b, !0), p[b] || (p[b] = { @@ -8738,7 +8738,7 @@ function HOe(t, e = qOe) { let O = tf = { view: w, prefix: b, scope: a }; return setTimeout(() => { tf == O && (tf = null); - }, XOe), !0; + }, HOe), !0; }] }); } @@ -8767,9 +8767,9 @@ function HOe(t, e = qOe) { } return r; } -function NJ(t, e, r, n) { - let i = bwe(e), s = ws(i, 0), a = Ho(s) == i.length && i != " ", o = "", l = !1, u = !1, h = !1; - tf && tf.view == r && tf.scope == n && (o = tf.prefix + " ", wJ.indexOf(e.keyCode) < 0 && (u = !0, tf = null)); +function IJ(t, e, r, n) { + let i = xwe(e), s = ws(i, 0), a = Ho(s) == i.length && i != " ", o = "", l = !1, u = !1, h = !1; + tf && tf.view == r && tf.scope == n && (o = tf.prefix + " ", OJ.indexOf(e.keyCode) < 0 && (u = !0, tf = null)); let f = /* @__PURE__ */ new Set(), d = (v) => { if (v) { for (let y of v.run) @@ -8803,13 +8803,13 @@ class $x { let i = e.coordsAtPos(n.head, n.assoc || 1); if (!i) return []; - let s = IJ(e); + let s = $J(e); return [new $x(r, i.left - s.left, i.top - s.top, null, i.bottom - i.top)]; } else - return ZOe(e, r, n); + return jOe(e, r, n); } } -function IJ(t) { +function $J(t) { let e = t.scrollDOM.getBoundingClientRect(); return { left: (t.textDirection == Wn.LTR ? e.left : e.right - t.scrollDOM.clientWidth * t.scaleX) - t.scrollDOM.scrollLeft * t.scaleX, top: e.top - t.scrollDOM.scrollTop * t.scaleY }; } @@ -8821,10 +8821,10 @@ function lz(t, e, r) { type: Ca.Text }; } -function ZOe(t, e, r) { +function jOe(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 == Wn.LTR, a = t.contentDOM, o = a.getBoundingClientRect(), l = IJ(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 = d8(t, n), g = d8(t, i), m = p.type == Ca.Text ? p : null, v = g.type == Ca.Text ? g : null; + let n = Math.max(r.from, t.viewport.from), i = Math.min(r.to, t.viewport.to), s = t.textDirection == Wn.LTR, a = t.contentDOM, o = a.getBoundingClientRect(), l = $J(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 = d8(t, n), g = d8(t, i), m = p.type == Ca.Text ? p : null, v = g.type == Ca.Text ? g : null; if (m && (t.lineWrapping || p.widgetLineBreaks) && (m = lz(t, n, m)), v && (t.lineWrapping || g.widgetLineBreaks) && (v = lz(t, i, v)), m && v && m.from == v.from) return b(w(r.from, r.to, m)); { @@ -8867,10 +8867,10 @@ function ZOe(t, e, r) { return { top: T, bottom: T, horizontal: [] }; } } -function jOe(t, e) { +function KOe(t, e) { return t.constructor == e.constructor && t.eq(e); } -class KOe { +class JOe { 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); } @@ -8891,7 +8891,7 @@ class KOe { (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) => !jOe(r, this.drawn[n]))) { + if (e.length != this.drawn.length || e.some((r, n) => !KOe(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); @@ -8907,13 +8907,13 @@ class KOe { } } const ik = /* @__PURE__ */ $t.define(); -function $J(t) { +function BJ(t) { return [ - hn.define((e) => new KOe(e, t)), + hn.define((e) => new JOe(e, t)), ik.of(t) ]; } -const BJ = !Vt.ios, v2 = /* @__PURE__ */ $t.define({ +const FJ = !Vt.ios, v2 = /* @__PURE__ */ $t.define({ combine(t) { return mu(t, { cursorBlinkRate: 1200, @@ -8924,25 +8924,25 @@ const BJ = !Vt.ios, v2 = /* @__PURE__ */ $t.define({ }); } }); -function FJ(t = {}) { +function zJ(t = {}) { return [ v2.of(t), - JOe, e4e, t4e, - oJ.of(!0) + r4e, + lJ.of(!0) ]; } -function zJ(t) { +function QJ(t) { return t.startState.facet(v2) != t.state.facet(v2); } -const JOe = /* @__PURE__ */ $J({ +const e4e = /* @__PURE__ */ BJ({ above: !0, markers(t) { let { state: e } = t, r = e.facet(v2), n = []; for (let i of e.selection.ranges) { let s = i == e.selection.main; - if (i.empty ? !s || BJ : r.drawRangeCursor) { + if (i.empty ? !s || FJ : r.drawRangeCursor) { let a = s ? "cm-cursor cm-cursor-primary" : "cm-cursor cm-cursor-secondary", o = i.empty ? i : je.cursor(i.head, i.head > i.anchor ? -1 : 1); for (let l of $x.forRange(t, a, o)) n.push(l); @@ -8952,7 +8952,7 @@ const JOe = /* @__PURE__ */ $J({ }, update(t, e) { t.transactions.some((n) => n.selection) && (e.style.animationName = e.style.animationName == "cm-blink" ? "cm-blink2" : "cm-blink"); - let r = zJ(t); + let r = QJ(t); return r && cz(t.state, e), t.docChanged || t.selectionSet || r; }, mount(t, e) { @@ -8963,13 +8963,13 @@ const JOe = /* @__PURE__ */ $J({ function cz(t, e) { e.style.animationDuration = t.facet(v2).cursorBlinkRate + "ms"; } -const e4e = /* @__PURE__ */ $J({ +const t4e = /* @__PURE__ */ BJ({ above: !1, markers(t) { return t.state.selection.ranges.map((e) => e.empty ? [] : $x.forRange(t, "cm-selectionBackground", e)).reduce((e, r) => e.concat(r)); }, update(t, e) { - return t.docChanged || t.selectionSet || t.viewportChanged || zJ(t); + return t.docChanged || t.selectionSet || t.viewportChanged || QJ(t); }, class: "cm-selectionLayer" }), y8 = { @@ -8978,8 +8978,8 @@ const e4e = /* @__PURE__ */ $J({ "&::selection": { backgroundColor: "transparent !important" } } }; -BJ && (y8[".cm-line"].caretColor = "transparent !important", y8[".cm-content"] = { caretColor: "transparent !important" }); -const t4e = /* @__PURE__ */ uc.highest(/* @__PURE__ */ kt.theme(y8)), QJ = /* @__PURE__ */ or.define({ +FJ && (y8[".cm-line"].caretColor = "transparent !important", y8[".cm-content"] = { caretColor: "transparent !important" }); +const r4e = /* @__PURE__ */ uc.highest(/* @__PURE__ */ kt.theme(y8)), UJ = /* @__PURE__ */ or.define({ map(t, e) { return t == null ? null : e.mapPos(t); } @@ -8988,9 +8988,9 @@ const t4e = /* @__PURE__ */ uc.highest(/* @__PURE__ */ kt.theme(y8)), QJ = /* @_ return null; }, update(t, e) { - return t != null && (t = e.changes.mapPos(t)), e.effects.reduce((r, n) => n.is(QJ) ? n.value : r, t); + return t != null && (t = e.changes.mapPos(t)), e.effects.reduce((r, n) => n.is(UJ) ? n.value : r, t); } -}), r4e = /* @__PURE__ */ hn.fromClass(class { +}), n4e = /* @__PURE__ */ hn.fromClass(class { constructor(t) { this.view = t, this.cursor = null, this.measureReq = { read: this.readPos.bind(this), write: this.drawCursor.bind(this) }; } @@ -9020,7 +9020,7 @@ const t4e = /* @__PURE__ */ uc.highest(/* @__PURE__ */ kt.theme(y8)), QJ = /* @_ this.cursor && this.cursor.remove(); } setDropPos(t) { - this.view.state.field(sy) != t && this.view.dispatch({ effects: QJ.of(t) }); + this.view.state.field(sy) != t && this.view.dispatch({ effects: UJ.of(t) }); } }, { eventObservers: { @@ -9038,8 +9038,8 @@ const t4e = /* @__PURE__ */ uc.highest(/* @__PURE__ */ kt.theme(y8)), QJ = /* @_ } } }); -function n4e() { - return [sy, r4e]; +function i4e() { + return [sy, n4e]; } function uz(t, e, r, n, i) { e.lastIndex = 0; @@ -9048,7 +9048,7 @@ function uz(t, e, r, n, i) { for (; o = e.exec(s.value); ) i(a + o.index, o); } -function i4e(t, e) { +function s4e(t, e) { let r = t.visibleRanges; if (r.length == 1 && r[0].from == t.viewport.from && r[0].to == t.viewport.to) return r; @@ -9057,7 +9057,7 @@ function i4e(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 s4e { +class a4e { constructor(e) { const { regexp: r, decoration: n, decorate: i, boundary: s, maxLength: a = 1e3 } = e; if (!r.global) @@ -9077,7 +9077,7 @@ class s4e { } createDeco(e) { let r = new cs(), n = r.add.bind(r); - for (let { from: i, to: s } of i4e(e, this.maxLength)) + for (let { from: i, to: s } of s4e(e, this.maxLength)) uz(e.state.doc, this.regexp, i, s, (a, o) => this.addMatch(o, e, a, n)); return r.finish(); } @@ -9116,8 +9116,8 @@ class s4e { return r; } } -const b8 = /x/.unicode != null ? "gu" : "g", a4e = /* @__PURE__ */ new RegExp(`[\0-\b --\x7F-\x9F\xAD\u061C\u200B\u200E\u200F\u2028\u2029\u202D\u202E\u2066\u2067\u2069\uFEFF\uFFF9-\uFFFC]`, b8), o4e = { +const b8 = /x/.unicode != null ? "gu" : "g", o4e = /* @__PURE__ */ new RegExp(`[\0-\b +-\x7F-\x9F\xAD\u061C\u200B\u200E\u200F\u2028\u2029\u202D\u202E\u2066\u2067\u2069\uFEFF\uFFF9-\uFFFC]`, b8), l4e = { 0: "null", 7: "bell", 8: "backspace", @@ -9141,7 +9141,7 @@ const b8 = /x/.unicode != null ? "gu" : "g", a4e = /* @__PURE__ */ new RegExp(`[ 65532: "object replacement" }; let T_ = null; -function l4e() { +function c4e() { var t; if (T_ == null && typeof document < "u" && document.body) { let e = document.body.style; @@ -9153,33 +9153,33 @@ const sk = /* @__PURE__ */ $t.define({ combine(t) { let e = mu(t, { render: null, - specialChars: a4e, + specialChars: o4e, addSpecialChars: null }); - return (e.replaceTabs = !l4e()) && (e.specialChars = new RegExp(" |" + e.specialChars.source, b8)), e.addSpecialChars && (e.specialChars = new RegExp(e.specialChars.source + "|" + e.addSpecialChars.source, b8)), e; + return (e.replaceTabs = !c4e()) && (e.specialChars = new RegExp(" |" + e.specialChars.source, b8)), e.addSpecialChars && (e.specialChars = new RegExp(e.specialChars.source + "|" + e.addSpecialChars.source, b8)), e; } }); -function UJ(t = {}) { - return [sk.of(t), c4e()]; +function VJ(t = {}) { + return [sk.of(t), u4e()]; } let hz = null; -function c4e() { +function u4e() { return hz || (hz = hn.fromClass(class { constructor(t) { this.view = t, this.decorations = It.none, this.decorationCache = /* @__PURE__ */ Object.create(null), this.decorator = this.makeDecorator(t.state.facet(sk)), this.decorations = this.decorator.createDeco(t); } makeDecorator(t) { - return new s4e({ + return new a4e({ regexp: t.specialChars, decoration: (e, r, n) => { let { doc: i } = r.state, s = ws(e[0], 0); if (s == 9) { let a = i.lineAt(n), o = r.state.tabSize, l = tc(a.text, o, n - a.from); return It.replace({ - widget: new d4e((o - l % o) * this.view.defaultCharacterWidth / this.view.scaleX) + widget: new p4e((o - l % o) * this.view.defaultCharacterWidth / this.view.scaleX) }); } - return this.decorationCache[s] || (this.decorationCache[s] = It.replace({ widget: new f4e(t, s) })); + return this.decorationCache[s] || (this.decorationCache[s] = It.replace({ widget: new d4e(t, s) })); }, boundary: t.replaceTabs ? void 0 : /[^]/ }); @@ -9192,11 +9192,11 @@ function c4e() { decorations: (t) => t.decorations })); } -const u4e = "\u2022"; -function h4e(t) { - return t >= 32 ? u4e : t == 10 ? "\u2424" : String.fromCharCode(9216 + t); +const h4e = "\u2022"; +function f4e(t) { + return t >= 32 ? h4e : t == 10 ? "\u2424" : String.fromCharCode(9216 + t); } -class f4e extends uo { +class d4e extends uo { constructor(e, r) { super(), this.options = e, this.code = r; } @@ -9204,7 +9204,7 @@ class f4e extends uo { return e.code == this.code; } toDOM(e) { - let r = h4e(this.code), n = e.state.phrase("Control character") + " " + (o4e[this.code] || "0x" + this.code.toString(16)), i = this.options.render && this.options.render(this.code, n, r); + let r = f4e(this.code), n = e.state.phrase("Control character") + " " + (l4e[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"); @@ -9214,7 +9214,7 @@ class f4e extends uo { return !1; } } -class d4e extends uo { +class p4e extends uo { constructor(e) { super(), this.width = e; } @@ -9229,10 +9229,10 @@ class d4e extends uo { return !1; } } -function VJ() { - return g4e; +function qJ() { + return m4e; } -const p4e = /* @__PURE__ */ It.line({ class: "cm-activeLine" }), g4e = /* @__PURE__ */ hn.fromClass(class { +const g4e = /* @__PURE__ */ It.line({ class: "cm-activeLine" }), m4e = /* @__PURE__ */ hn.fromClass(class { constructor(t) { this.decorations = this.getDeco(t); } @@ -9243,14 +9243,14 @@ const p4e = /* @__PURE__ */ It.line({ class: "cm-activeLine" }), g4e = /* @__PUR let e = -1, r = []; for (let n of t.state.selection.ranges) { let i = t.lineBlockAt(n.head); - i.from > e && (r.push(p4e.range(i.from)), e = i.from); + i.from > e && (r.push(g4e.range(i.from)), e = i.from); } return It.set(r); } }, { decorations: (t) => t.decorations }), x8 = 2e3; -function m4e(t, e, r) { +function v4e(t, e, r) { let n = Math.min(e.line, r.line), i = Math.max(e.line, r.line), s = []; if (e.off > x8 || r.off > x8 || e.col < 0 || r.col < 0) { let a = Math.min(e.off, r.off), o = Math.max(e.off, r.off); @@ -9272,15 +9272,15 @@ function m4e(t, e, r) { } return s; } -function v4e(t, e) { +function y4e(t, e) { let r = t.coordsAtPos(t.viewport.from); return r ? Math.round(Math.abs((r.left - e) / t.defaultCharacterWidth)) : -1; } function fz(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 > x8 ? -1 : i == n.length ? v4e(t, e.clientX) : tc(n.text, t.state.tabSize, r - n.from); + let r = t.posAtCoords({ x: e.clientX, y: e.clientY }, !1), n = t.state.doc.lineAt(r), i = r - n.from, s = i > x8 ? -1 : i == n.length ? y4e(t, e.clientX) : tc(n.text, t.state.tabSize, r - n.from); return { line: n.number, col: s, off: i }; } -function y4e(t, e) { +function b4e(t, e) { let r = fz(t, e), n = t.state.selection; return r ? { update(i) { @@ -9293,23 +9293,23 @@ function y4e(t, e) { let o = fz(t, i); if (!o) return n; - let l = m4e(t.state, r, o); + let l = v4e(t.state, r, o); return l.length ? a ? je.create(l.concat(n.ranges)) : je.create(l) : n; } } : null; } -function b4e(t) { +function x4e(t) { let e = (t == null ? void 0 : t.eventFilter) || ((r) => r.altKey && r.button == 0); - return kt.mouseSelectionStyle.of((r, n) => e(n) ? y4e(r, n) : null); + return kt.mouseSelectionStyle.of((r, n) => e(n) ? b4e(r, n) : null); } -const x4e = { +const w4e = { Alt: [18, (t) => !!t.altKey], Control: [17, (t) => !!t.ctrlKey], Shift: [16, (t) => !!t.shiftKey], Meta: [91, (t) => !!t.metaKey] -}, w4e = { style: "cursor: crosshair" }; -function O4e(t = {}) { - let [e, r] = x4e[t.key || "Alt"], n = hn.fromClass(class { +}, O4e = { style: "cursor: crosshair" }; +function k4e(t = {}) { + let [e, r] = w4e[t.key || "Alt"], n = hn.fromClass(class { constructor(i) { this.view = i, this.isDown = !1; } @@ -9333,12 +9333,12 @@ function O4e(t = {}) { n, kt.contentAttributes.of((i) => { var s; - return !((s = i.plugin(n)) === null || s === void 0) && s.isDown ? w4e : null; + return !((s = i.plugin(n)) === null || s === void 0) && s.isDown ? O4e : null; }) ]; } const vv = "-10000px"; -class qJ { +class YJ { 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); } @@ -9371,7 +9371,7 @@ class qJ { return r && (o.forEach((l, u) => r[u] = l), r.length = o.length), this.input = i, this.tooltips = s, this.tooltipViews = a, !0; } } -function k4e(t) { +function S4e(t) { let { win: e } = t; return { top: 0, left: 0, bottom: e.innerHeight, right: e.innerWidth }; } @@ -9381,14 +9381,14 @@ const C_ = /* @__PURE__ */ $t.define({ return { position: Vt.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) || k4e + tooltipSpace: ((n = t.find((i) => i.tooltipSpace)) === null || n === void 0 ? void 0 : n.tooltipSpace) || S4e }; } }), dz = /* @__PURE__ */ new WeakMap(), tD = /* @__PURE__ */ hn.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(C_); - 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 qJ(t, rD, (r) => this.createTooltip(r)), this.intersectionObserver = typeof IntersectionObserver == "function" ? new IntersectionObserver((r) => { + 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 YJ(t, rD, (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(); } @@ -9487,7 +9487,7 @@ const C_ = /* @__PURE__ */ $t.define({ h.style.top = vv; continue; } - let p = l.arrow ? u.dom.querySelector(".cm-tooltip-arrow") : null, g = p ? 7 : 0, m = d.right - d.left, v = (e = dz.get(u)) !== null && e !== void 0 ? e : d.bottom - d.top, y = u.offset || T4e, b = this.view.textDirection == Wn.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 = dz.get(u)) !== null && e !== void 0 ? e : d.bottom - d.top, y = u.offset || C4e, b = this.view.textDirection == Wn.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) { @@ -9520,7 +9520,7 @@ const C_ = /* @__PURE__ */ $t.define({ this.maybeMeasure(); } } -}), S4e = /* @__PURE__ */ kt.baseTheme({ +}), T4e = /* @__PURE__ */ kt.baseTheme({ ".cm-tooltip": { zIndex: 100, boxSizing: "border-box" @@ -9581,15 +9581,15 @@ const C_ = /* @__PURE__ */ $t.define({ borderBottomColor: "transparent" } } -}), T4e = { x: 0, y: 0 }, rD = /* @__PURE__ */ $t.define({ - enables: [tD, S4e] +}), C4e = { x: 0, y: 0 }, rD = /* @__PURE__ */ $t.define({ + enables: [tD, T4e] }), b5 = /* @__PURE__ */ $t.define(); class $T { static create(e) { return new $T(e); } constructor(e) { - this.view = e, this.mounted = !1, this.dom = document.createElement("div"), this.dom.classList.add("cm-tooltip-hover"), this.manager = new qJ(e, b5, (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 YJ(e, b5, (r) => this.createHostedView(r)); } createHostedView(e) { let r = e.create(this.view); @@ -9638,7 +9638,7 @@ class $T { return this.passProp("resize"); } } -const C4e = /* @__PURE__ */ rD.compute([b5], (t) => { +const E4e = /* @__PURE__ */ rD.compute([b5], (t) => { let e = t.facet(b5).filter((r) => r); return e.length === 0 ? null : { pos: Math.min(...e.map((r) => r.pos)), @@ -9651,7 +9651,7 @@ const C4e = /* @__PURE__ */ rD.compute([b5], (t) => { arrow: e.some((r) => r.arrow) }; }); -class E4e { +class _4e { 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)); } @@ -9701,9 +9701,9 @@ class E4e { 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 && !_4e(i.dom, e) || this.pending) { + if (n && i && !A4e(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 : !A4e(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 : !L4e(this.view, s, a, e.clientX, e.clientY)) && (this.view.dispatch({ effects: this.setHover.of(null) }), this.pending = null); } } mouseleave(e) { @@ -9725,18 +9725,18 @@ class E4e { } } const mO = 4; -function _4e(t, e) { +function A4e(t, e) { let r = t.getBoundingClientRect(); return e.clientX >= r.left - mO && e.clientX <= r.right + mO && e.clientY >= r.top - mO && e.clientY <= r.bottom + mO; } -function A4e(t, e, r, n, i, s) { +function L4e(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 L4e(t, e = {}) { +function R4e(t, e = {}) { let r = or.define(), n = Xn.define({ create() { return null; @@ -9752,25 +9752,25 @@ function L4e(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(R4e) && (i = null); + a.is(r) && (i = a.value), a.is(M4e) && (i = null); return i; }, provide: (i) => b5.from(i) }); return [ n, - hn.define((i) => new E4e(i, t, n, r, e.hoverTime || 300)), - C4e + hn.define((i) => new _4e(i, t, n, r, e.hoverTime || 300)), + E4e ]; } -function YJ(t, e) { +function WJ(t, e) { let r = t.plugin(tD); if (!r) return null; let n = r.manager.tooltips.indexOf(e); return n < 0 ? null : r.manager.tooltipViews[n]; } -const R4e = /* @__PURE__ */ or.define(), pz = /* @__PURE__ */ $t.define({ +const M4e = /* @__PURE__ */ or.define(), pz = /* @__PURE__ */ $t.define({ combine(t) { let e, r; for (let n of t) @@ -9779,10 +9779,10 @@ const R4e = /* @__PURE__ */ or.define(), pz = /* @__PURE__ */ $t.define({ } }); function y2(t, e) { - let r = t.plugin(WJ), n = r ? r.specs.indexOf(e) : -1; + let r = t.plugin(GJ), n = r ? r.specs.indexOf(e) : -1; return n > -1 ? r.panels[n] : null; } -const WJ = /* @__PURE__ */ hn.fromClass(class { +const GJ = /* @__PURE__ */ hn.fromClass(class { constructor(t) { this.input = t.state.facet(b2), this.specs = this.input.filter((r) => r), this.panels = this.specs.map((r) => r(t)); let e = t.state.facet(pz); @@ -9863,7 +9863,7 @@ function gz(t) { return t.remove(), e; } const b2 = /* @__PURE__ */ $t.define({ - enables: WJ + enables: GJ }); class ul extends M0 { compare(e) { @@ -9880,7 +9880,7 @@ ul.prototype.toDOM = void 0; ul.prototype.mapMode = zi.TrackBefore; ul.prototype.startSide = ul.prototype.endSide = -1; ul.prototype.point = !0; -const ak = /* @__PURE__ */ $t.define(), M4e = { +const ak = /* @__PURE__ */ $t.define(), D4e = { class: "", renderEmptyElements: !1, elementStyle: "", @@ -9893,18 +9893,18 @@ const ak = /* @__PURE__ */ $t.define(), M4e = { domEventHandlers: {} }, Iy = /* @__PURE__ */ $t.define(); function BT(t) { - return [GJ(), Iy.of(Object.assign(Object.assign({}, M4e), t))]; + return [XJ(), Iy.of(Object.assign(Object.assign({}, D4e), t))]; } const w8 = /* @__PURE__ */ $t.define({ combine: (t) => t.some((e) => e) }); -function GJ(t) { +function XJ(t) { let e = [ - D4e + P4e ]; return t && t.fixed === !1 && e.push(w8.of(!0)), e; } -const D4e = /* @__PURE__ */ hn.fromClass(class { +const P4e = /* @__PURE__ */ hn.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(Iy).map((e) => new vz(t, e)); for (let e of this.gutters) @@ -9921,7 +9921,7 @@ const D4e = /* @__PURE__ */ hn.fromClass(class { syncGutters(t) { let e = this.dom.nextSibling; t && this.dom.remove(); - let r = $r.iter(this.view.state.facet(ak), this.view.viewport.from), n = [], i = this.gutters.map((s) => new P4e(s, this.view.viewport, -this.view.documentPadding.top)); + let r = $r.iter(this.view.state.facet(ak), this.view.viewport.from), n = [], i = this.gutters.map((s) => new N4e(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; @@ -9983,14 +9983,14 @@ function O8(t, e, r) { for (; t.value && t.from <= r; ) t.from == r && e.push(t.value), t.next(); } -class P4e { +class N4e { constructor(e, r, n) { this.gutter = e, this.height = n, this.i = 0, this.cursor = $r.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 XJ(e, a, s, n); + let o = new HJ(e, a, s, n); i.elements.push(o), i.dom.appendChild(o.dom); } else i.elements[this.i].update(e, a, s, n); @@ -10032,7 +10032,7 @@ class vz { let o = e.lineBlockAtHeight(a - e.documentTop); r.domEventHandlers[n](e, o, i) && i.preventDefault(); }); - this.markers = mz(r.markers(e)), r.initialSpacer && (this.spacer = new XJ(e, 0, 0, [r.initialSpacer(e)]), this.dom.appendChild(this.spacer.dom), this.spacer.dom.style.cssText += "visibility: hidden; pointer-events: none"); + this.markers = mz(r.markers(e)), r.initialSpacer && (this.spacer = new HJ(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; @@ -10048,12 +10048,12 @@ class vz { e.destroy(); } } -class XJ { +class HJ { 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" : ""), N4e(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" : ""), I4e(this.markers, i) || this.setMarkers(e, i); } setMarkers(e, r) { let n = "cm-gutterElement", i = this.dom.firstChild; @@ -10087,7 +10087,7 @@ class XJ { this.setMarkers(null, []); } } -function N4e(t, e) { +function I4e(t, e) { if (t.length != e.length) return !1; for (let r = 0; r < t.length; r++) @@ -10095,7 +10095,7 @@ function N4e(t, e) { return !1; return !0; } -const I4e = /* @__PURE__ */ $t.define(), mg = /* @__PURE__ */ $t.define({ +const $4e = /* @__PURE__ */ $t.define(), mg = /* @__PURE__ */ $t.define({ combine(t) { return mu(t, { formatNumber: String, domEventHandlers: {} }, { domEventHandlers(e, r) { @@ -10123,11 +10123,11 @@ class E_ extends ul { function __(t, e) { return t.state.facet(mg).formatNumber(e, t.state); } -const $4e = /* @__PURE__ */ Iy.compute([mg], (t) => ({ +const B4e = /* @__PURE__ */ Iy.compute([mg], (t) => ({ class: "cm-lineNumbers", renderEmptyElements: !1, markers(e) { - return e.state.facet(I4e); + return e.state.facet($4e); }, lineMarker(e, r, n) { return n.some((i) => i.toDOM) ? null : new E_(__(e, e.state.doc.lineAt(r.from).number)); @@ -10143,11 +10143,11 @@ const $4e = /* @__PURE__ */ Iy.compute([mg], (t) => ({ }, domEventHandlers: t.facet(mg).domEventHandlers })); -function B4e(t = {}) { +function F4e(t = {}) { return [ mg.of(t), - GJ(), - $4e + XJ(), + B4e ]; } function yz(t) { @@ -10156,23 +10156,23 @@ function yz(t) { e = e * 10 + 9; return e; } -const F4e = /* @__PURE__ */ new class extends ul { +const z4e = /* @__PURE__ */ new class extends ul { constructor() { super(...arguments), this.elementClass = "cm-activeLineGutter"; } -}(), z4e = /* @__PURE__ */ ak.compute(["selection"], (t) => { +}(), Q4e = /* @__PURE__ */ ak.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(F4e.range(i))); + i > r && (r = i, e.push(z4e.range(i))); } return $r.of(e); }); -function Q4e() { - return z4e; +function U4e() { + return Q4e; } -const HJ = 1024; -let U4e = 0; +const ZJ = 1024; +let V4e = 0; class Jo { constructor(e, r) { this.from = e, this.to = r; @@ -10180,7 +10180,7 @@ class Jo { } class br { constructor(e = {}) { - this.id = U4e++, this.perNode = !!e.perNode, this.deserialize = e.deserialize || (() => { + this.id = V4e++, this.perNode = !!e.perNode, this.deserialize = e.deserialize || (() => { throw new Error("This node type doesn't define a deserialize function"); }); } @@ -10212,13 +10212,13 @@ class x2 { return e && e.props && e.props[br.mounted.id]; } } -const V4e = /* @__PURE__ */ Object.create(null); +const q4e = /* @__PURE__ */ Object.create(null); class Wi { 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) : V4e, n = (e.top ? 1 : 0) | (e.skipped ? 2 : 0) | (e.error ? 4 : 0) | (e.name == null ? 8 : 0), i = new Wi(e.name || "", r, e.id, n); + let r = e.props && e.props.length ? /* @__PURE__ */ Object.create(null) : q4e, n = (e.top ? 1 : 0) | (e.skipped ? 2 : 0) | (e.error ? 4 : 0) | (e.name == null ? 8 : 0), i = new Wi(e.name || "", r, e.id, n); if (e.props) { for (let s of e.props) if (Array.isArray(s) || (s = s(i)), s) { @@ -10331,7 +10331,7 @@ class nn { return bz.set(this, n), n; } resolveStack(e, r = 0) { - return W4e(this, e, r); + return G4e(this, e, r); } iterate(e) { let { enter: r, leave: n, from: i = 0, to: s = this.length } = e, a = e.mode || 0, o = (a & Sn.IncludeAnonymous) > 0; @@ -10363,7 +10363,7 @@ class nn { return this.children.length <= 8 ? this : sD(Wi.none, this.children, this.positions, 0, this.children.length, 0, this.length, (r, n, i) => new nn(this.type, r, n, i, this.propValues), e.makeTree || ((r, n, i) => new nn(Wi.none, r, n, i))); } static build(e) { - return G4e(e); + return X4e(e); } } nn.empty = new nn(Wi.none, [], [], 0); @@ -10417,7 +10417,7 @@ class $f { } findChild(e, r, n, i, s) { let { buffer: a } = this, o = -1; - for (let l = e; l != r && !(ZJ(s, i, a[l + 1], a[l + 2]) && (o = l, n > 0)); l = a[l + 3]) + for (let l = e; l != r && !(jJ(s, i, a[l + 1], a[l + 2]) && (o = l, n > 0)); l = a[l + 3]) ; return o; } @@ -10431,7 +10431,7 @@ class $f { return new $f(s, a, this.set); } } -function ZJ(t, e, r, n) { +function jJ(t, e, r, n) { switch (t) { case -2: return r < e; @@ -10465,7 +10465,7 @@ function w2(t, e, r, n) { t = a; } } -class jJ { +class KJ { cursor(e = 0) { return new x5(this, e); } @@ -10502,7 +10502,7 @@ class jJ { return this.parent; } } -class ta extends jJ { +class ta extends KJ { constructor(e, r, n, i) { super(), this._tree = e, this.from = r, this.index = n, this._parent = i; } @@ -10519,13 +10519,13 @@ class ta extends jJ { 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 (!!ZJ(i, n, f, f + h.length)) { + if (!!jJ(i, n, f, f + h.length)) { if (h instanceof $f) { if (s & Sn.ExcludeBuffers) continue; let d = h.findChild(0, h.buffer.length, r, n - f, i); if (d > -1) - return new Fc(new q4e(a, h, e, f), null, d); + return new Fc(new Y4e(a, h, e, f), null, d); } else if (s & Sn.IncludeAnonymous || !h.type.isAnonymous || iD(h)) { let d; if (!(s & Sn.IgnoreMounts) && (d = x2.get(h)) && !d.overlay) @@ -10614,12 +10614,12 @@ function k8(t, e, r = e.length - 1) { } return !0; } -class q4e { +class Y4e { constructor(e, r, n, i) { this.parent = e, this.buffer = r, this.index = n, this.start = i; } } -class Fc extends jJ { +class Fc extends KJ { get name() { return this.type.name; } @@ -10683,7 +10683,7 @@ class Fc extends jJ { return this.context.buffer.childString(this.index); } } -function KJ(t) { +function JJ(t) { if (!t.length) return null; let e = 0, r = t[0]; @@ -10692,17 +10692,17 @@ function KJ(t) { (a.from > r.from || a.to < r.to) && (r = a, e = s); } let n = r instanceof ta && r.index < 0 ? null : r.parent, i = t.slice(); - return n ? i[e] = n : i.splice(e, 1), new Y4e(i, r); + return n ? i[e] = n : i.splice(e, 1), new W4e(i, r); } -class Y4e { +class W4e { constructor(e, r) { this.heads = e, this.node = r; } get next() { - return KJ(this.heads); + return JJ(this.heads); } } -function W4e(t, e, r) { +function G4e(t, e, r) { let n = t.resolveInner(e, r), i = null; for (let s = n instanceof ta ? n : n.context.parent; s; s = s.parent) if (s.index < 0) { @@ -10715,7 +10715,7 @@ function W4e(t, e, r) { (i || (i = [n])).push(w2(o, e, r, !1)); } } - return i ? KJ(i) : n; + return i ? JJ(i) : n; } class x5 { get name() { @@ -10903,9 +10903,9 @@ class x5 { function iD(t) { return t.children.some((e) => e instanceof $f || !e.type.isAnonymous || iD(e)); } -function G4e(t) { +function X4e(t) { var e; - let { buffer: r, nodeSet: n, maxBufferLength: i = HJ, reused: s = [], minRepeatType: a = n.types.length } = t, o = Array.isArray(r) ? new nD(r, r.length) : r, l = n.types, u = 0, h = 0; + let { buffer: r, nodeSet: n, maxBufferLength: i = ZJ, reused: s = [], minRepeatType: a = n.types.length } = t, o = Array.isArray(r) ? new nD(r, r.length) : r, l = n.types, u = 0, h = 0; function f(S, C, T, A, E, L) { let { id: _, start: R, end: $, size: k } = o, P = h, M = u; for (; k < 0; ) @@ -11083,7 +11083,7 @@ function sD(t, e, r, n, i, s, a, o, l) { } return p(e, r, n, i, 0), (o || l)(f, d, a); } -class JJ { +class eee { constructor() { this.map = /* @__PURE__ */ new WeakMap(); } @@ -11150,7 +11150,7 @@ class Ju { } class aD { startParse(e, r, n) { - return typeof e == "string" && (e = new X4e(e)), n = n ? n.length ? n.map((i) => new Jo(i.from, i.to)) : [new Jo(0, 0)] : [new Jo(0, e.length)], this.createParse(e, r || [], n); + return typeof e == "string" && (e = new H4e(e)), n = n ? n.length ? n.map((i) => new Jo(i.from, i.to)) : [new Jo(0, 0)] : [new Jo(0, e.length)], this.createParse(e, r || [], n); } parse(e, r, n) { let i = this.startParse(e, r, n); @@ -11161,7 +11161,7 @@ class aD { } } } -class X4e { +class H4e { constructor(e) { this.string = e; } @@ -11178,8 +11178,8 @@ class X4e { return this.string.slice(e, r); } } -function eee(t) { - return (e, r, n, i) => new Z4e(e, t, r, n, i); +function tee(t) { + return (e, r, n, i) => new j4e(e, t, r, n, i); } class Oz { constructor(e, r, n, i, s) { @@ -11190,13 +11190,13 @@ function kz(t) { if (!t.length || t.some((e) => e.from >= e.to)) throw new RangeError("Invalid inner parse ranges given: " + JSON.stringify(t)); } -class H4e { +class Z4e { 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 S8 = new br({ perNode: !0 }); -class Z4e { +class j4e { 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; } @@ -11237,7 +11237,7 @@ class Z4e { this.inner[r].parse.stopAt(e); } startInner() { - let e = new J4e(this.fragments), r = null, n = null, i = new x5(new ta(this.baseTree, this.ranges[0].from, 0, null), Sn.IncludeAnonymous | Sn.IgnoreMounts); + let e = new eke(this.fragments), r = null, n = null, i = new x5(new ta(this.baseTree, this.ranges[0].from, 0, null), Sn.IncludeAnonymous | Sn.IgnoreMounts); e: for (let s, a; ; ) { let o = !0, l; @@ -11253,13 +11253,13 @@ class Z4e { } } o = !1; - } else if (n && (a = j4e(n.ranges, i.from, i.to))) + } else if (n && (a = K4e(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 || K4e(i); + i.tree || J4e(i); let u = e.findMounts(i.from, s.parser); if (typeof s.overlay == "function") - r = new H4e(s.parser, s.overlay, u, this.inner.length, i.from, i.tree, r); + r = new Z4e(s.parser, s.overlay, u, this.inner.length, i.from, i.tree, r); else { let h = Cz(this.ranges, s.overlay || (i.from < i.to ? [new Jo(i.from, i.to)] : [])); h.length && kz(h), (h.length || !s.overlay) && this.inner.push(new Oz(s.parser, h.length ? s.parser.startParse(this.input, Ez(u, h), h) : s.parser.startParse(""), s.overlay ? s.overlay.map((f) => new Jo(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; @@ -11283,7 +11283,7 @@ class Z4e { } } } -function j4e(t, e, r) { +function K4e(t, e, r) { for (let n of t) { if (n.from >= r) break; @@ -11298,7 +11298,7 @@ function Sz(t, e, r, n, i, s) { n.push(t.slice(e, r, a)), i.push(a - s); } } -function K4e(t) { +function J4e(t) { let { node: e } = t, r = [], n = e.context.buffer; do r.push(t.index), t.parent(); @@ -11340,7 +11340,7 @@ class Tz { return !1; } } -class J4e { +class eke { constructor(e) { var r; if (this.fragments = e, this.curTo = 0, this.fragI = 0, e.length) { @@ -11399,7 +11399,7 @@ function Cz(t, e) { } return n; } -function eke(t, e, r, n) { +function tke(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; @@ -11418,7 +11418,7 @@ function Ez(t, e) { 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 Jo(d.from + n, d.to + n)), f = eke(e, h, l, u); + let h = i.overlay.map((d) => new Jo(d.from + n, d.to + n)), f = tke(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 Ju(p, m, i.tree, -a, s.from >= p || s.openStart, s.to <= m || s.openEnd)), g) @@ -11430,10 +11430,10 @@ function Ez(t, e) { } return r; } -let tke = 0; +let rke = 0; class Il { constructor(e, r, n) { - this.set = e, this.base = r, this.modified = n, this.id = tke++; + this.set = e, this.base = r, this.modified = n, this.id = rke++; } static define(e) { if (e != null && e.base) @@ -11449,21 +11449,21 @@ class Il { return (r) => r.modified.indexOf(e) > -1 ? r : w5.get(r.base || r, r.modified.concat(e).sort((n, i) => n.id - i.id)); } } -let rke = 0; +let nke = 0; class w5 { constructor() { - this.instances = [], this.id = rke++; + this.instances = [], this.id = nke++; } static get(e, r) { if (!r.length) return e; - let n = r[0].instances.find((o) => o.base == e && nke(r, o.modified)); + let n = r[0].instances.find((o) => o.base == e && ike(r, o.modified)); if (n) return n; let i = [], s = new Il(i, e, r); for (let o of r) o.instances.push(s); - let a = ike(r); + let a = ske(r); for (let o of e.set) if (!o.modified.length) for (let l of a) @@ -11471,10 +11471,10 @@ class w5 { return s; } } -function nke(t, e) { +function ike(t, e) { return t.length == e.length && t.every((r, n) => r == e[n]); } -function ike(t) { +function ske(t) { let e = [[]]; for (let r = 0; r < t.length; r++) for (let n = 0, i = e.length; n < i; n++) @@ -11515,9 +11515,9 @@ function dd(t) { e[u] = h.sort(e[u]); } } - return tee.add(e); + return ree.add(e); } -const tee = new br(); +const ree = new br(); class O5 { constructor(e, r, n, i) { this.tags = e, this.mode = r, this.context = n, this.next = i; @@ -11536,7 +11536,7 @@ class O5 { } } O5.empty = new O5([], 2, null); -function ree(t, e) { +function nee(t, e) { let r = /* @__PURE__ */ Object.create(null); for (let s of t) if (!Array.isArray(s.tag)) @@ -11561,7 +11561,7 @@ function ree(t, e) { scope: n }; } -function ske(t, e) { +function ake(t, e) { let r = null; for (let n of t) { let i = n.style(e); @@ -11569,11 +11569,11 @@ function ske(t, e) { } return r; } -function ake(t, e, r, n = 0, i = t.length) { - let s = new oke(n, Array.isArray(e) ? e : [e], r); +function oke(t, e, r, n = 0, i = t.length) { + let s = new lke(n, Array.isArray(e) ? e : [e], r); s.highlightRange(t.cursor(), n, i, "", s.highlighters), s.flush(i); } -class oke { +class lke { constructor(e, r, n) { this.at = e, this.highlighters = r, this.span = n, this.class = ""; } @@ -11588,7 +11588,7 @@ class oke { if (o >= n || l <= r) return; a.isTop && (s = this.highlighters.filter((p) => !p.scope || p.scope(a))); - let u = i, h = lke(e) || O5.empty, f = ske(s, h.tags); + let u = i, h = cke(e) || O5.empty, f = ake(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(br.mounted); @@ -11617,8 +11617,8 @@ class oke { } } } -function lke(t) { - let e = t.type.prop(tee); +function cke(t) { + let e = t.type.prop(ree); for (; e && e.context && !t.matchContext(e.context); ) e = e.next; return e || null; @@ -11709,7 +11709,7 @@ const Rt = Il.define, bO = Rt(), jh = Rt(), _z = Rt(jh), Az = Rt(jh), Kh = Rt(), local: Il.defineModifier(), special: Il.defineModifier() }; -ree([ +nee([ { tag: Se.link, class: "tok-link" }, { tag: Se.heading, class: "tok-heading" }, { tag: Se.emphasis, class: "tok-emphasis" }, @@ -11841,7 +11841,7 @@ function Cn(t) { let e = t.field(el.state, !1); return e ? e.tree : nn.empty; } -class cke { +class uke { constructor(e) { this.doc = e, this.cursorPos = 0, this.string = "", this.cursor = e.iter(); } @@ -11871,7 +11871,7 @@ class O2 { return new O2(e, r, [], nn.empty, 0, n, [], null); } startParse() { - return this.parser.startParse(new cke(this.state.doc), this.fragments); + return this.parser.startParse(new uke(this.state.doc), this.fragments); } work(e, r) { return r != null && r >= this.state.doc.length && (r = void 0), this.tree != nn.empty && this.isDone(r != null ? r : this.state.doc.length) ? (this.takeTree(), !0) : this.withContext(() => { @@ -12002,17 +12002,17 @@ el.state = /* @__PURE__ */ Xn.define({ return e.startState.facet(Ff) != e.state.facet(Ff) ? pm.init(e.state) : t.apply(e); } }); -let nee = (t) => { +let iee = (t) => { let e = setTimeout(() => t(), 500); return () => clearTimeout(e); }; -typeof requestIdleCallback < "u" && (nee = (t) => { +typeof requestIdleCallback < "u" && (iee = (t) => { let e = -1, r = setTimeout(() => { e = requestIdleCallback(t, { timeout: 500 - 100 }); }, 100); return () => e < 0 ? clearTimeout(r) : cancelIdleCallback(e); }); -const R_ = typeof navigator < "u" && ((L_ = navigator.scheduling) === null || L_ === void 0 ? void 0 : L_.isInputPending) ? () => navigator.scheduling.isInputPending() : null, uke = /* @__PURE__ */ hn.fromClass(class { +const R_ = typeof navigator < "u" && ((L_ = navigator.scheduling) === null || L_ === void 0 ? void 0 : L_.isInputPending) ? () => navigator.scheduling.isInputPending() : null, hke = /* @__PURE__ */ hn.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(); } @@ -12024,7 +12024,7 @@ const R_ = typeof navigator < "u" && ((L_ = navigator.scheduling) === null || L_ if (this.working) return; let { state: e } = this.view, r = e.field(el.state); - (r.tree != r.context.tree || !r.context.isDone(e.doc.length)) && (this.working = nee(this.work)); + (r.tree != r.context.tree || !r.context.isDone(e.doc.length)) && (this.working = iee(this.work)); } work(e) { this.working = null; @@ -12056,7 +12056,7 @@ const R_ = typeof navigator < "u" && ((L_ = navigator.scheduling) === null || L_ }, enables: (t) => [ el.state, - uke, + hke, kt.contentAttributes.compute([t], (e) => { let r = e.facet(t); return r && r.name ? { "data-language": r.name } : {}; @@ -12113,7 +12113,7 @@ class k5 { return null; } } -const hke = /* @__PURE__ */ $t.define(), Fx = /* @__PURE__ */ $t.define({ +const fke = /* @__PURE__ */ $t.define(), Fx = /* @__PURE__ */ $t.define({ combine: (t) => { if (!t.length) return " "; @@ -12140,13 +12140,13 @@ function k2(t, e) { } function cD(t, e) { t instanceof Tr && (t = new FT(t)); - for (let n of t.state.facet(hke)) { + for (let n of t.state.facet(fke)) { let i = n(t, e); if (i !== void 0) return i; } let r = Cn(t.state); - return r.length >= e ? fke(t, r, e) : null; + return r.length >= e ? dke(t, r, e) : null; } class FT { constructor(e, r = {}) { @@ -12183,7 +12183,7 @@ class FT { } } const x1 = /* @__PURE__ */ new br(); -function fke(t, e, r) { +function dke(t, e, r) { let n = e.resolveStack(r), i = n.node.enterUnfinishedNodesBefore(r); if (i != n.node) { let s = []; @@ -12192,31 +12192,31 @@ function fke(t, e, r) { for (let a = s.length - 1; a >= 0; a--) n = { node: s[a], next: n }; } - return iee(n, t, r); + return see(n, t, r); } -function iee(t, e, r) { +function see(t, e, r) { for (let n = t; n; n = n.next) { - let i = pke(n.node); + let i = gke(n.node); if (i) return i(uD.create(e, r, n)); } return 0; } -function dke(t) { +function pke(t) { return t.pos == t.options.simulateBreak && t.options.simulateDoubleBreak; } -function pke(t) { +function gke(t) { let e = t.type.prop(x1); if (e) return e; let r = t.firstChild, n; if (r && (n = r.type.prop(br.closedBy))) { let i = t.lastChild, s = i && n.indexOf(i.name) > -1; - return (a) => see(a, !0, 1, void 0, s && !dke(a) ? i.from : void 0); + return (a) => aee(a, !0, 1, void 0, s && !pke(a) ? i.from : void 0); } - return t.parent == null ? gke : null; + return t.parent == null ? mke : null; } -function gke() { +function mke() { return 0; } class uD extends FT { @@ -12241,23 +12241,23 @@ class uD extends FT { let n = e.resolve(r.from); for (; n.parent && n.parent.from == n.from; ) n = n.parent; - if (mke(n, e)) + if (vke(n, e)) break; r = this.state.doc.lineAt(n.from); } return this.lineIndent(r.from); } continue() { - return iee(this.context.next, this.base, this.pos); + return see(this.context.next, this.base, this.pos); } } -function mke(t, e) { +function vke(t, e) { for (let r = e; r; r = r.parent) if (t == r) return !0; return !1; } -function vke(t) { +function yke(t) { let e = t.node, r = e.childAfter(e.from), n = e.lastChild; if (!r) return null; @@ -12272,21 +12272,21 @@ function vke(t) { } } function C8({ closing: t, align: e = !0, units: r = 1 }) { - return (n) => see(n, e, r, t); + return (n) => aee(n, e, r, t); } -function see(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 ? vke(t) : null; +function aee(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 ? yke(t) : null; return l ? o ? t.column(l.from) : t.column(l.to) : t.baseIndent + (o ? 0 : t.unit * r); } -const yke = (t) => t.baseIndent; +const bke = (t) => t.baseIndent; function lk({ except: t, units: e = 1 } = {}) { return (r) => { let n = t && t.test(r.textAfter); return r.baseIndent + (n ? 0 : e * r.unit); }; } -const bke = 200; -function xke() { +const xke = 200; +function wke() { return Tr.transactionFilter.of((t) => { if (!t.docChanged || !t.isUserEvent("input.type") && !t.isUserEvent("input.complete")) return t; @@ -12294,7 +12294,7 @@ function xke() { if (!e.length) return t; let r = t.newDoc, { head: n } = t.newSelection.main, i = r.lineAt(n); - if (n > i.from + bke) + if (n > i.from + xke) return t; let s = r.sliceString(i.from, n); if (!e.some((u) => u.test(s))) @@ -12314,12 +12314,12 @@ function xke() { return l.length ? [t, { changes: l, sequential: !0 }] : t; }); } -const aee = /* @__PURE__ */ $t.define(), vp = /* @__PURE__ */ new br(); +const oee = /* @__PURE__ */ $t.define(), vp = /* @__PURE__ */ new br(); function hD(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 wke(t, e, r) { +function Oke(t, e, r) { let n = Cn(t); if (n.length < r) return null; @@ -12331,31 +12331,31 @@ function wke(t, e, r) { if (s && o.from < e) break; let l = o.type.prop(vp); - if (l && (o.to < n.length - 50 || n.length == t.doc.length || !Oke(o))) { + if (l && (o.to < n.length - 50 || n.length == t.doc.length || !kke(o))) { let u = l(o, t); u && u.from <= r && u.from >= e && u.to > r && (s = u); } } return s; } -function Oke(t) { +function kke(t) { let e = t.lastChild; return e && e.to == t.to && e.type.isError; } function S2(t, e, r) { - for (let n of t.facet(aee)) { + for (let n of t.facet(oee)) { let i = n(t, e, r); if (i) return i; } - return wke(t, e, r); + return Oke(t, e, r); } -function oee(t, e) { +function lee(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 hh = /* @__PURE__ */ or.define({ map: oee }), yp = /* @__PURE__ */ or.define({ map: oee }); -function lee(t) { +const hh = /* @__PURE__ */ or.define({ map: lee }), yp = /* @__PURE__ */ or.define({ map: lee }); +function cee(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)); @@ -12368,8 +12368,8 @@ const zf = /* @__PURE__ */ Xn.define({ update(t, e) { t = t.map(e.changes); for (let r of e.effects) - if (r.is(hh) && !Ske(t, r.value.from, r.value.to)) { - let { preparePlaceholder: n } = e.state.facet(fD), i = n ? It.replace({ widget: new Rke(n(e.state, r.value)) }) : Mz; + if (r.is(hh) && !Tke(t, r.value.from, r.value.to)) { + let { preparePlaceholder: n } = e.state.facet(fD), i = n ? It.replace({ widget: new Mke(n(e.state, r.value)) }) : Mz; t = t.update({ add: [i.range(r.value.from, r.value.to)] }); } else r.is(yp) && (t = t.update({ @@ -12409,7 +12409,7 @@ const zf = /* @__PURE__ */ Xn.define({ return It.set(e, !0); } }); -function kke(t) { +function Ske(t) { return t.field(zf, !1) || $r.empty; } function T5(t, e, r) { @@ -12419,44 +12419,44 @@ function T5(t, e, r) { (!i || i.from > s) && (i = { from: s, to: a }); }), i; } -function Ske(t, e, r) { +function Tke(t, e, r) { let n = !1; return t.between(e, e, (i, s) => { i == e && s == r && (n = !0); }), n; } -function cee(t, e) { - return t.field(zf, !1) ? e : e.concat(or.appendConfig.of(hee())); +function uee(t, e) { + return t.field(zf, !1) ? e : e.concat(or.appendConfig.of(fee())); } -const Tke = (t) => { - for (let e of lee(t)) { +const Cke = (t) => { + for (let e of cee(t)) { let r = S2(t.state, e.from, e.to); if (r) - return t.dispatch({ effects: cee(t.state, [hh.of(r), uee(t, r)]) }), !0; + return t.dispatch({ effects: uee(t.state, [hh.of(r), hee(t, r)]) }), !0; } return !1; -}, Cke = (t) => { +}, Eke = (t) => { if (!t.state.field(zf, !1)) return !1; let e = []; - for (let r of lee(t)) { + for (let r of cee(t)) { let n = T5(t.state, r.from, r.to); - n && e.push(yp.of(n), uee(t, n, !1)); + n && e.push(yp.of(n), hee(t, n, !1)); } return e.length && t.dispatch({ effects: e }), e.length > 0; }; -function uee(t, e, r = !0) { +function hee(t, e, r = !0) { let n = t.state.doc.lineAt(e.from).number, i = t.state.doc.lineAt(e.to).number; return kt.announce.of(`${t.state.phrase(r ? "Folded lines" : "Unfolded lines")} ${n} ${t.state.phrase("to")} ${i}.`); } -const Eke = (t) => { +const _ke = (t) => { let { state: e } = t, r = []; for (let n = 0; n < e.doc.length; ) { let i = t.lineBlockAt(n), s = S2(e, i.from, i.to); s && r.push(hh.of(s)), n = (s ? t.lineBlockAt(s.to) : i).to + 1; } - return r.length && t.dispatch({ effects: cee(t.state, r) }), !!r.length; -}, _ke = (t) => { + return r.length && t.dispatch({ effects: uee(t.state, r) }), !!r.length; +}, Ake = (t) => { let e = t.state.field(zf, !1); if (!e || !e.size) return !1; @@ -12464,25 +12464,25 @@ const Eke = (t) => { return e.between(0, t.state.doc.length, (n, i) => { r.push(yp.of({ from: n, to: i })); }), t.dispatch({ effects: r }), !0; -}, Ake = [ - { key: "Ctrl-Shift-[", mac: "Cmd-Alt-[", run: Tke }, - { key: "Ctrl-Shift-]", mac: "Cmd-Alt-]", run: Cke }, - { key: "Ctrl-Alt-[", run: Eke }, - { key: "Ctrl-Alt-]", run: _ke } -], Lke = { +}, Lke = [ + { key: "Ctrl-Shift-[", mac: "Cmd-Alt-[", run: Cke }, + { key: "Ctrl-Shift-]", mac: "Cmd-Alt-]", run: Eke }, + { key: "Ctrl-Alt-[", run: _ke }, + { key: "Ctrl-Alt-]", run: Ake } +], Rke = { placeholderDOM: null, preparePlaceholder: null, placeholderText: "\u2026" }, fD = /* @__PURE__ */ $t.define({ combine(t) { - return mu(t, Lke); + return mu(t, Rke); } }); -function hee(t) { - let e = [zf, Pke]; +function fee(t) { + let e = [zf, Nke]; return t && e.push(fD.of(t)), e; } -function fee(t, e) { +function dee(t, e) { let { state: r } = t, n = r.facet(fD), i = (a) => { let o = t.lineBlockAt(t.posAtDOM(a.target)), l = T5(t.state, o.from, o.to); l && t.dispatch({ effects: yp.of(l) }), a.preventDefault(); @@ -12494,10 +12494,10 @@ function fee(t, e) { } const Mz = /* @__PURE__ */ It.replace({ widget: /* @__PURE__ */ new class extends uo { toDOM(t) { - return fee(t, null); + return dee(t, null); } }() }); -class Rke extends uo { +class Mke extends uo { constructor(e) { super(), this.value = e; } @@ -12505,10 +12505,10 @@ class Rke extends uo { return this.value == e.value; } toDOM(e) { - return fee(e, this.value); + return dee(e, this.value); } } -const Mke = { +const Dke = { openText: "\u2304", closedText: "\u203A", markerDOM: null, @@ -12529,8 +12529,8 @@ class M_ extends ul { return r.textContent = this.open ? this.config.openText : this.config.closedText, r.title = e.state.phrase(this.open ? "Fold line" : "Unfold line"), r; } } -function Dke(t = {}) { - let e = Object.assign(Object.assign({}, Mke), t), r = new M_(e, !0), n = new M_(e, !1), i = hn.fromClass(class { +function Pke(t = {}) { + let e = Object.assign(Object.assign({}, Dke), t), r = new M_(e, !0), n = new M_(e, !1), i = hn.fromClass(class { constructor(a) { this.from = a.viewport.from, this.markers = this.buildMarkers(a); } @@ -12567,10 +12567,10 @@ function Dke(t = {}) { return h ? (a.dispatch({ effects: hh.of(h) }), !0) : !1; } }) }), - hee() + fee() ]; } -const Pke = /* @__PURE__ */ kt.baseTheme({ +const Nke = /* @__PURE__ */ kt.baseTheme({ ".cm-foldPlaceholder": { backgroundColor: "#eee", border: "1px solid #ddd", @@ -12594,7 +12594,7 @@ class zT { 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 el ? (o) => o.prop(o0) == a.data : a ? (o) => o == a : void 0, this.style = ree(e.map((o) => ({ + this.scope = a instanceof el ? (o) => o.prop(o0) == a.data : a ? (o) => o == a : void 0, this.style = nee(e.map((o) => ({ tag: o.tag, class: o.class || i(Object.assign({}, o, { tag: null })) })), { @@ -12605,20 +12605,20 @@ class zT { return new zT(e, r || {}); } } -const E8 = /* @__PURE__ */ $t.define(), dee = /* @__PURE__ */ $t.define({ +const E8 = /* @__PURE__ */ $t.define(), pee = /* @__PURE__ */ $t.define({ combine(t) { return t.length ? [t[0]] : null; } }); function D_(t) { let e = t.facet(E8); - return e.length ? e : t.facet(dee); + return e.length ? e : t.facet(pee); } -function pee(t, e) { - let r = [Ike], n; - return t instanceof zT && (t.module && r.push(kt.styleModule.of(t.module)), n = t.themeType), e != null && e.fallback ? r.push(dee.of(t)) : n ? r.push(E8.computeN([kt.darkTheme], (i) => i.facet(kt.darkTheme) == (n == "dark") ? [t] : [])) : r.push(E8.of(t)), r; +function gee(t, e) { + let r = [$ke], n; + return t instanceof zT && (t.module && r.push(kt.styleModule.of(t.module)), n = t.themeType), e != null && e.fallback ? r.push(pee.of(t)) : n ? r.push(E8.computeN([kt.darkTheme], (i) => i.facet(kt.darkTheme) == (n == "dark") ? [t] : [])) : r.push(E8.of(t)), r; } -class Nke { +class Ike { constructor(e) { this.markCache = /* @__PURE__ */ Object.create(null), this.tree = Cn(e.state), this.decorations = this.buildDeco(e, D_(e.state)); } @@ -12631,15 +12631,15 @@ class Nke { return It.none; let n = new cs(); for (let { from: i, to: s } of e.visibleRanges) - ake(this.tree, r, (a, o, l) => { + oke(this.tree, r, (a, o, l) => { n.add(a, o, this.markCache[l] || (this.markCache[l] = It.mark({ class: l }))); }, i, s); return n.finish(); } } -const Ike = /* @__PURE__ */ uc.high(/* @__PURE__ */ hn.fromClass(Nke, { +const $ke = /* @__PURE__ */ uc.high(/* @__PURE__ */ hn.fromClass(Ike, { decorations: (t) => t.decorations -})), gee = /* @__PURE__ */ zT.define([ +})), mee = /* @__PURE__ */ zT.define([ { tag: Se.meta, color: "#404740" @@ -12717,31 +12717,31 @@ const Ike = /* @__PURE__ */ uc.high(/* @__PURE__ */ hn.fromClass(Nke, { tag: Se.invalid, color: "#f00" } -]), $ke = /* @__PURE__ */ kt.baseTheme({ +]), Bke = /* @__PURE__ */ kt.baseTheme({ "&.cm-focused .cm-matchingBracket": { backgroundColor: "#328c8252" }, "&.cm-focused .cm-nonmatchingBracket": { backgroundColor: "#bb555544" } -}), mee = 1e4, vee = "()[]{}", yee = /* @__PURE__ */ $t.define({ +}), vee = 1e4, yee = "()[]{}", bee = /* @__PURE__ */ $t.define({ combine(t) { return mu(t, { afterCursor: !0, - brackets: vee, - maxScanDistance: mee, - renderMatch: zke + brackets: yee, + maxScanDistance: vee, + renderMatch: Qke }); } -}), Bke = /* @__PURE__ */ It.mark({ class: "cm-matchingBracket" }), Fke = /* @__PURE__ */ It.mark({ class: "cm-nonmatchingBracket" }); -function zke(t) { - let e = [], r = t.matched ? Bke : Fke; +}), Fke = /* @__PURE__ */ It.mark({ class: "cm-matchingBracket" }), zke = /* @__PURE__ */ It.mark({ class: "cm-nonmatchingBracket" }); +function Qke(t) { + let e = [], r = t.matched ? Fke : zke; 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 Qke = /* @__PURE__ */ Xn.define({ +const Uke = /* @__PURE__ */ Xn.define({ create() { return It.none; }, update(t, e) { if (!e.docChanged && !e.selection) return t; - let r = [], n = e.state.facet(yee); + let r = [], n = e.state.facet(bee); for (let i of e.state.selection.ranges) { if (!i.empty) continue; @@ -12751,14 +12751,14 @@ const Qke = /* @__PURE__ */ Xn.define({ return It.set(r, !0); }, provide: (t) => kt.decorations.from(t) -}), Uke = [ - Qke, - $ke +}), Vke = [ + Uke, + Bke ]; -function Vke(t = {}) { - return [yee.of(t), Uke]; +function qke(t = {}) { + return [bee.of(t), Vke]; } -const bee = /* @__PURE__ */ new br(); +const xee = /* @__PURE__ */ new br(); function _8(t, e, r) { let n = t.prop(e < 0 ? br.openedBy : br.closedBy); if (n) @@ -12771,22 +12771,22 @@ function _8(t, e, r) { return null; } function A8(t) { - let e = t.type.prop(bee); + let e = t.type.prop(xee); return e ? e(t.node) : t; } function zc(t, e, r, n = {}) { - let i = n.maxScanDistance || mee, s = n.brackets || vee, a = Cn(t), o = a.resolveInner(e, r); + let i = n.maxScanDistance || vee, s = n.brackets || yee, a = Cn(t), o = a.resolveInner(e, r); for (let l = o; l; l = l.parent) { let u = _8(l.type, r, s); if (u && l.from < l.to) { let h = A8(l); if (h && (r > 0 ? e >= h.from && e < h.to : e > h.from && e <= h.to)) - return qke(t, e, r, l, h, u, s); + return Yke(t, e, r, l, h, u, s); } } - return Yke(t, e, r, a, o.type, i, s); + return Wke(t, e, r, a, o.type, i, s); } -function qke(t, e, r, n, i, s, a) { +function Yke(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 @@ -12811,7 +12811,7 @@ function qke(t, e, r, n, i, s, a) { while (r < 0 ? h.prevSibling() : h.nextSibling()); return { start: l, matched: !1 }; } -function Yke(t, e, r, n, i, s, a) { +function Wke(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; @@ -12835,7 +12835,7 @@ function Yke(t, e, r, n, i, s, a) { } return h.done ? { start: u, matched: !1 } : null; } -const Wke = /* @__PURE__ */ Object.create(null), Dz = [Wi.none], Pz = [], Nz = /* @__PURE__ */ Object.create(null), Gke = /* @__PURE__ */ Object.create(null); +const Gke = /* @__PURE__ */ Object.create(null), Dz = [Wi.none], Pz = [], Nz = /* @__PURE__ */ Object.create(null), Xke = /* @__PURE__ */ Object.create(null); for (let [t, e] of [ ["variable", "variableName"], ["variable-2", "variableName.special"], @@ -12850,11 +12850,11 @@ for (let [t, e] of [ ["header", "heading"], ["property", "propertyName"] ]) - Gke[t] = /* @__PURE__ */ Xke(Wke, e); + Xke[t] = /* @__PURE__ */ Hke(Gke, e); function P_(t, e) { Pz.indexOf(t) > -1 || (Pz.push(t), console.warn(e)); } -function Xke(t, e) { +function Hke(t, e) { let r = []; for (let o of e.split(" ")) { let l = []; @@ -12877,9 +12877,9 @@ function Xke(t, e) { }); return Dz.push(a), a.id; } -const Hke = (t) => { +const Zke = (t) => { let { state: e } = t, r = e.doc.lineAt(e.selection.main.from), n = pD(t.state, r.from); - return n.line ? Zke(t) : n.block ? Kke(t) : !1; + return n.line ? jke(t) : n.block ? Jke(t) : !1; }; function dD(t, e) { return ({ state: r, dispatch: n }) => { @@ -12889,13 +12889,13 @@ function dD(t, e) { return i ? (n(r.update(i)), !0) : !1; }; } -const Zke = /* @__PURE__ */ dD(t5e, 0), jke = /* @__PURE__ */ dD(xee, 0), Kke = /* @__PURE__ */ dD((t, e) => xee(t, e, e5e(e)), 0); +const jke = /* @__PURE__ */ dD(r5e, 0), Kke = /* @__PURE__ */ dD(wee, 0), Jke = /* @__PURE__ */ dD((t, e) => wee(t, e, t5e(e)), 0); function pD(t, e) { let r = t.languageDataAt("commentTokens", e); return r.length ? r[0] : {}; } const xv = 50; -function Jke(t, { open: e, close: r }, n, i) { +function e5e(t, { open: e, close: r }, n, i) { let s = t.sliceDoc(n - xv, n), a = t.sliceDoc(i, i + xv), 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 { @@ -12916,7 +12916,7 @@ function Jke(t, { open: e, close: r }, n, i) { } } : null; } -function e5e(t) { +function t5e(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; @@ -12924,11 +12924,11 @@ function e5e(t) { } return e; } -function xee(t, e, r = e.selection.ranges) { +function wee(t, e, r = e.selection.ranges) { let n = r.map((s) => pD(e, s.from).block); if (!n.every((s) => s)) return null; - let i = r.map((s, a) => Jke(e, n[a], s.from, s.to)); + let i = r.map((s, a) => e5e(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)) { @@ -12942,7 +12942,7 @@ function xee(t, e, r = e.selection.ranges) { } return null; } -function t5e(t, e, r = e.selection.ranges) { +function r5e(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 = pD(e, s).line; @@ -12979,7 +12979,7 @@ function t5e(t, e, r = e.selection.ranges) { } return null; } -const L8 = /* @__PURE__ */ co.define(), r5e = /* @__PURE__ */ co.define(), n5e = /* @__PURE__ */ $t.define(), wee = /* @__PURE__ */ $t.define({ +const L8 = /* @__PURE__ */ co.define(), n5e = /* @__PURE__ */ co.define(), i5e = /* @__PURE__ */ $t.define(), Oee = /* @__PURE__ */ $t.define({ combine(t) { return mu(t, { minDepth: 100, @@ -12991,17 +12991,17 @@ const L8 = /* @__PURE__ */ co.define(), r5e = /* @__PURE__ */ co.define(), n5e = joinToEvent: (e, r) => (n, i) => e(n, i) || r(n, i) }); } -}), Oee = /* @__PURE__ */ Xn.define({ +}), kee = /* @__PURE__ */ Xn.define({ create() { return Qc.empty; }, update(t, e) { - let r = e.state.facet(wee), n = e.annotation(L8); + let r = e.state.facet(Oee), n = e.annotation(L8); if (n) { let l = to.fromTransaction(e, n.selection), u = n.side, h = u == 0 ? t.undone : t.done; - return l ? h = E5(h, h.length, r.minDepth, l) : h = Tee(h, e.startState.selection), new Qc(u == 0 ? n.rest : h, u == 0 ? h : n.rest); + return l ? h = E5(h, h.length, r.minDepth, l) : h = Cee(h, e.startState.selection), new Qc(u == 0 ? n.rest : h, u == 0 ? h : n.rest); } - let i = e.annotation(r5e); + let i = e.annotation(n5e); if ((i == "full" || i == "before") && (t = t.isolate()), e.annotation(_i.addToHistory) === !1) return e.changes.empty ? t : t.addMapping(e.changes.desc); let s = to.fromTransaction(e), a = e.annotation(_i.time), o = e.annotation(_i.userEvent); @@ -13016,11 +13016,11 @@ const L8 = /* @__PURE__ */ co.define(), r5e = /* @__PURE__ */ co.define(), n5e = }); function gD(t = {}) { return [ - Oee, - wee.of(t), + kee, + Oee.of(t), kt.domEventHandlers({ beforeinput(e, r) { - let n = e.inputType == "historyUndo" ? kee : e.inputType == "historyRedo" ? C5 : null; + let n = e.inputType == "historyUndo" ? See : e.inputType == "historyRedo" ? C5 : null; return n ? (e.preventDefault(), n(r)) : !1; } }) @@ -13030,14 +13030,14 @@ function QT(t, e) { return function({ state: r, dispatch: n }) { if (!e && r.readOnly) return !1; - let i = r.field(Oee, !1); + let i = r.field(kee, !1); if (!i) return !1; let s = i.pop(t, r, e); return s ? (n(s), !0) : !1; }; } -const kee = /* @__PURE__ */ QT(0, !1), C5 = /* @__PURE__ */ QT(1, !1), i5e = /* @__PURE__ */ QT(0, !0), s5e = /* @__PURE__ */ QT(1, !0); +const See = /* @__PURE__ */ QT(0, !1), C5 = /* @__PURE__ */ QT(1, !1), s5e = /* @__PURE__ */ QT(0, !0), a5e = /* @__PURE__ */ QT(1, !0); class to { constructor(e, r, n, i, s) { this.changes = e, this.effects = r, this.mapped = n, this.startSelection = i, this.selectionsAfter = s; @@ -13059,7 +13059,7 @@ class to { } static fromTransaction(e, r) { let n = tl; - for (let i of e.startState.facet(n5e)) { + for (let i of e.startState.facet(i5e)) { let s = i(e); s.length && (n = n.concat(s)); } @@ -13073,7 +13073,7 @@ function E5(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 a5e(t, e) { +function o5e(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; ) { @@ -13082,21 +13082,21 @@ function a5e(t, e) { } }), n; } -function o5e(t, e) { +function l5e(t, e) { return t.ranges.length == e.ranges.length && t.ranges.filter((r, n) => r.empty != e.ranges[n].empty).length === 0; } -function See(t, e) { +function Tee(t, e) { return t.length ? e.length ? t.concat(e) : t : e; } -const tl = [], l5e = 200; -function Tee(t, e) { +const tl = [], c5e = 200; +function Cee(t, e) { if (t.length) { - let r = t[t.length - 1], n = r.selectionsAfter.slice(Math.max(0, r.selectionsAfter.length - l5e)); + let r = t[t.length - 1], n = r.selectionsAfter.slice(Math.max(0, r.selectionsAfter.length - c5e)); return n.length && n[n.length - 1].eq(e) ? t : (n.push(e), E5(t, t.length - 1, 1e9, r.setSelAfter(n))); } else return [to.selection([e])]; } -function c5e(t) { +function u5e(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; } @@ -13105,7 +13105,7 @@ function N_(t, e) { return t; let r = t.length, n = tl; for (; r; ) { - let i = u5e(t[r - 1], e, n); + let i = h5e(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; @@ -13114,14 +13114,14 @@ function N_(t, e) { } return n.length ? [to.selection(n)] : tl; } -function u5e(t, e, r) { - let n = See(t.selectionsAfter.length ? t.selectionsAfter.map((o) => o.map(e)) : tl, r); +function h5e(t, e, r) { + let n = Tee(t.selectionsAfter.length ? t.selectionsAfter.map((o) => o.map(e)) : tl, r); if (!t.changes) return to.selection(n); let i = t.changes.map(e), s = e.mapDesc(t.changes, !0), a = t.mapped ? t.mapped.composeDesc(s) : s; return new to(i, or.mapEffects(t.effects, e), a, t.startSelection.map(s), n); } -const h5e = /^(input\.type|delete)($|\.)/; +const f5e = /^(input\.type|delete)($|\.)/; class Qc { constructor(e, r, n = 0, i = void 0) { this.done = e, this.undone = r, this.prevTime = n, this.prevUserEvent = i; @@ -13131,11 +13131,11 @@ class Qc { } 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 || h5e.test(n)) && (!o.selectionsAfter.length && r - this.prevTime < i.newGroupDelay && i.joinToEvent(s, a5e(o.changes, e.changes)) || n == "input.type.compose") ? a = E5(a, a.length - 1, i.minDepth, new to(e.changes.compose(o.changes), See(e.effects, o.effects), o.mapped, o.startSelection, tl)) : a = E5(a, a.length, i.minDepth, e), new Qc(a, tl, r, n); + return o && o.changes && !o.changes.empty && e.changes && (!n || f5e.test(n)) && (!o.selectionsAfter.length && r - this.prevTime < i.newGroupDelay && i.joinToEvent(s, o5e(o.changes, e.changes)) || n == "input.type.compose") ? a = E5(a, a.length - 1, i.minDepth, new to(e.changes.compose(o.changes), Tee(e.effects, o.effects), o.mapped, o.startSelection, tl)) : a = E5(a, a.length, i.minDepth, e), new Qc(a, tl, r, n); } addSelection(e, r, n, i) { let s = this.done.length ? this.done[this.done.length - 1].selectionsAfter : tl; - return s.length > 0 && r - this.prevTime < i && n == this.prevUserEvent && n && /^select($|\.)/.test(n) && o5e(s[s.length - 1], e) ? this : new Qc(Tee(this.done, e), this.undone, r, n); + return s.length > 0 && r - this.prevTime < i && n == this.prevUserEvent && n && /^select($|\.)/.test(n) && l5e(s[s.length - 1], e) ? this : new Qc(Cee(this.done, e), this.undone, r, n); } addMapping(e) { return new Qc(N_(this.done, e), N_(this.undone, e), this.prevTime, this.prevUserEvent); @@ -13148,7 +13148,7 @@ class Qc { if (n && s.selectionsAfter.length) return r.update({ selection: s.selectionsAfter[s.selectionsAfter.length - 1], - annotations: L8.of({ side: e, rest: c5e(i), selection: a }), + annotations: L8.of({ side: e, rest: u5e(i), selection: a }), userEvent: e == 0 ? "select.undo" : "select.redo", scrollIntoView: !0 }); @@ -13168,12 +13168,12 @@ class Qc { } } Qc.empty = /* @__PURE__ */ new Qc(tl, tl); -const Cee = [ - { key: "Mod-z", run: kee, preventDefault: !0 }, +const Eee = [ + { key: "Mod-z", run: See, preventDefault: !0 }, { key: "Mod-y", mac: "Mod-Shift-z", run: C5, preventDefault: !0 }, { linux: "Ctrl-Shift-z", run: C5, preventDefault: !0 }, - { key: "Mod-u", run: i5e, preventDefault: !0 }, - { key: "Alt-u", mac: "Mod-Shift-u", run: s5e, preventDefault: !0 } + { key: "Mod-u", run: s5e, preventDefault: !0 }, + { key: "Alt-u", mac: "Mod-Shift-u", run: a5e, preventDefault: !0 } ]; function w1(t, e) { return je.create(t.ranges.map(e), t.mainIndex); @@ -13188,18 +13188,18 @@ function hc({ state: t, dispatch: e }, r) { function UT(t, e) { return je.cursor(e ? t.to : t.from); } -function Eee(t, e) { +function _ee(t, e) { return hc(t, (r) => r.empty ? t.moveByChar(r, e) : UT(r, e)); } function aa(t) { return t.textDirectionAt(t.state.selection.main.head) == Wn.LTR; } -const _ee = (t) => Eee(t, !aa(t)), Aee = (t) => Eee(t, aa(t)); -function Lee(t, e) { +const Aee = (t) => _ee(t, !aa(t)), Lee = (t) => _ee(t, aa(t)); +function Ree(t, e) { return hc(t, (r) => r.empty ? t.moveByGroup(r, e) : UT(r, e)); } -const f5e = (t) => Lee(t, !aa(t)), d5e = (t) => Lee(t, aa(t)); -function p5e(t, e, r) { +const d5e = (t) => Ree(t, !aa(t)), p5e = (t) => Ree(t, aa(t)); +function g5e(t, e, r) { if (e.type.prop(r)) return !0; let n = e.to - e.from; @@ -13211,13 +13211,13 @@ function VT(t, e, r) { let u = r ? n.childAfter(l) : n.childBefore(l); if (!u) break; - p5e(t, u, i) ? n = u : l = r ? u.to : u.from; + g5e(t, u, i) ? n = u : l = r ? u.to : u.from; } let s = n.type.prop(i), a, o; return s && (a = r ? zc(t, n.from, 1) : zc(t, n.to, -1)) && a.matched ? o = r ? a.end.to : a.end.from : o = r ? n.to : n.from, je.cursor(o, r ? -1 : 1); } -const g5e = (t) => hc(t, (e) => VT(t.state, e, !aa(t))), m5e = (t) => hc(t, (e) => VT(t.state, e, aa(t))); -function Ree(t, e) { +const m5e = (t) => hc(t, (e) => VT(t.state, e, !aa(t))), v5e = (t) => hc(t, (e) => VT(t.state, e, aa(t))); +function Mee(t, e) { return hc(t, (r) => { if (!r.empty) return UT(r, e); @@ -13225,8 +13225,8 @@ function Ree(t, e) { return n.head != r.head ? n : t.moveToLineBoundary(r, e); }); } -const Mee = (t) => Ree(t, !1), Dee = (t) => Ree(t, !0); -function Pee(t) { +const Dee = (t) => Mee(t, !1), Pee = (t) => Mee(t, !0); +function Nee(t) { let e = t.scrollDOM.clientHeight < t.scrollDOM.scrollHeight - 2, r = 0, n = 0, i; if (e) { for (let s of t.state.facet(kt.scrollMargins)) { @@ -13243,8 +13243,8 @@ function Pee(t) { height: Math.max(t.defaultLineHeight, i - 5) }; } -function Nee(t, e) { - let r = Pee(t), { state: n } = t, i = w1(n.selection, (a) => a.empty ? t.moveVertically(a, e, r.height) : UT(a, e)); +function Iee(t, e) { + let r = Nee(t), { state: n } = t, i = w1(n.selection, (a) => a.empty ? t.moveVertically(a, e, r.height) : UT(a, e)); if (i.eq(n.selection)) return !1; let s; @@ -13254,7 +13254,7 @@ function Nee(t, e) { } return t.dispatch(vu(n, i), { effects: s }), !0; } -const Iz = (t) => Nee(t, !1), R8 = (t) => Nee(t, !0); +const Iz = (t) => Iee(t, !1), R8 = (t) => Iee(t, !0); function pd(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) { @@ -13263,8 +13263,8 @@ function pd(t, e, r) { } return i; } -const v5e = (t) => hc(t, (e) => pd(t, e, !0)), y5e = (t) => hc(t, (e) => pd(t, e, !1)), b5e = (t) => hc(t, (e) => pd(t, e, !aa(t))), x5e = (t) => hc(t, (e) => pd(t, e, aa(t))), w5e = (t) => hc(t, (e) => je.cursor(t.lineBlockAt(e.head).from, 1)), O5e = (t) => hc(t, (e) => je.cursor(t.lineBlockAt(e.head).to, -1)); -function k5e(t, e, r) { +const y5e = (t) => hc(t, (e) => pd(t, e, !0)), b5e = (t) => hc(t, (e) => pd(t, e, !1)), x5e = (t) => hc(t, (e) => pd(t, e, !aa(t))), w5e = (t) => hc(t, (e) => pd(t, e, aa(t))), O5e = (t) => hc(t, (e) => je.cursor(t.lineBlockAt(e.head).from, 1)), k5e = (t) => hc(t, (e) => je.cursor(t.lineBlockAt(e.head).to, -1)); +function S5e(t, e, r) { let n = !1, i = w1(t.selection, (s) => { let a = zc(t, s.head, -1) || zc(t, s.head, 1) || s.head > 0 && zc(t, s.head - 1, 1) || s.head < t.doc.length && zc(t, s.head + 1, -1); if (!a || !a.end) @@ -13275,7 +13275,7 @@ function k5e(t, e, r) { }); return n ? (e(vu(t, i)), !0) : !1; } -const S5e = ({ state: t, dispatch: e }) => k5e(t, e, !1); +const T5e = ({ state: t, dispatch: e }) => S5e(t, e, !1); function kl(t, e) { let r = w1(t.state.selection, (n) => { let i = e(n); @@ -13283,25 +13283,25 @@ function kl(t, e) { }); return r.eq(t.state.selection) ? !1 : (t.dispatch(vu(t.state, r)), !0); } -function Iee(t, e) { +function $ee(t, e) { return kl(t, (r) => t.moveByChar(r, e)); } -const $ee = (t) => Iee(t, !aa(t)), Bee = (t) => Iee(t, aa(t)); -function Fee(t, e) { +const Bee = (t) => $ee(t, !aa(t)), Fee = (t) => $ee(t, aa(t)); +function zee(t, e) { return kl(t, (r) => t.moveByGroup(r, e)); } -const T5e = (t) => Fee(t, !aa(t)), C5e = (t) => Fee(t, aa(t)), E5e = (t) => kl(t, (e) => VT(t.state, e, !aa(t))), _5e = (t) => kl(t, (e) => VT(t.state, e, aa(t))); -function zee(t, e) { +const C5e = (t) => zee(t, !aa(t)), E5e = (t) => zee(t, aa(t)), _5e = (t) => kl(t, (e) => VT(t.state, e, !aa(t))), A5e = (t) => kl(t, (e) => VT(t.state, e, aa(t))); +function Qee(t, e) { return kl(t, (r) => t.moveVertically(r, e)); } -const Qee = (t) => zee(t, !1), Uee = (t) => zee(t, !0); -function Vee(t, e) { - return kl(t, (r) => t.moveVertically(r, e, Pee(t).height)); +const Uee = (t) => Qee(t, !1), Vee = (t) => Qee(t, !0); +function qee(t, e) { + return kl(t, (r) => t.moveVertically(r, e, Nee(t).height)); } -const $z = (t) => Vee(t, !1), Bz = (t) => Vee(t, !0), A5e = (t) => kl(t, (e) => pd(t, e, !0)), L5e = (t) => kl(t, (e) => pd(t, e, !1)), R5e = (t) => kl(t, (e) => pd(t, e, !aa(t))), M5e = (t) => kl(t, (e) => pd(t, e, aa(t))), D5e = (t) => kl(t, (e) => je.cursor(t.lineBlockAt(e.head).from)), P5e = (t) => kl(t, (e) => je.cursor(t.lineBlockAt(e.head).to)), Fz = ({ state: t, dispatch: e }) => (e(vu(t, { anchor: 0 })), !0), zz = ({ state: t, dispatch: e }) => (e(vu(t, { anchor: t.doc.length })), !0), Qz = ({ state: t, dispatch: e }) => (e(vu(t, { anchor: t.selection.main.anchor, head: 0 })), !0), Uz = ({ state: t, dispatch: e }) => (e(vu(t, { anchor: t.selection.main.anchor, head: t.doc.length })), !0), N5e = ({ state: t, dispatch: e }) => (e(t.update({ selection: { anchor: 0, head: t.doc.length }, userEvent: "select" })), !0), I5e = ({ state: t, dispatch: e }) => { +const $z = (t) => qee(t, !1), Bz = (t) => qee(t, !0), L5e = (t) => kl(t, (e) => pd(t, e, !0)), R5e = (t) => kl(t, (e) => pd(t, e, !1)), M5e = (t) => kl(t, (e) => pd(t, e, !aa(t))), D5e = (t) => kl(t, (e) => pd(t, e, aa(t))), P5e = (t) => kl(t, (e) => je.cursor(t.lineBlockAt(e.head).from)), N5e = (t) => kl(t, (e) => je.cursor(t.lineBlockAt(e.head).to)), Fz = ({ state: t, dispatch: e }) => (e(vu(t, { anchor: 0 })), !0), zz = ({ state: t, dispatch: e }) => (e(vu(t, { anchor: t.doc.length })), !0), Qz = ({ state: t, dispatch: e }) => (e(vu(t, { anchor: t.selection.main.anchor, head: 0 })), !0), Uz = ({ state: t, dispatch: e }) => (e(vu(t, { anchor: t.selection.main.anchor, head: t.doc.length })), !0), I5e = ({ state: t, dispatch: e }) => (e(t.update({ selection: { anchor: 0, head: t.doc.length }, userEvent: "select" })), !0), $5e = ({ state: t, dispatch: e }) => { let r = qT(t).map(({ from: n, to: i }) => je.range(n, Math.min(i + 1, t.doc.length))); return e(t.update({ selection: je.create(r), userEvent: "select" })), !0; -}, $5e = ({ state: t, dispatch: e }) => { +}, B5e = ({ state: t, dispatch: e }) => { let r = w1(t.selection, (n) => { var i; let s = Cn(t).resolveStack(n.from, 1); @@ -13313,7 +13313,7 @@ const $z = (t) => Vee(t, !1), Bz = (t) => Vee(t, !0), A5e = (t) => kl(t, (e) => return n; }); return e(vu(t, r)), !0; -}, B5e = ({ state: t, dispatch: e }) => { +}, F5e = ({ state: t, dispatch: e }) => { let r = t.selection, n = null; return r.ranges.length > 1 ? n = je.create([r.main]) : r.main.empty || (n = je.create([je.cursor(r.main.head)])), n ? (e(vu(t, n)), !0) : !1; }; @@ -13343,7 +13343,7 @@ function OO(t, e, r) { }); return e; } -const qee = (t, e) => zx(t, (r) => { +const Yee = (t, e) => zx(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] == " ") @@ -13355,7 +13355,7 @@ const qee = (t, e) => zx(t, (r) => { } else o = Ss(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 = Ss(s.text, o - s.from, !1, !1) + s.from); return o; -}), M8 = (t) => qee(t, !1), Yee = (t) => qee(t, !0), Wee = (t, e) => zx(t, (r) => { +}), M8 = (t) => Yee(t, !1), Wee = (t) => Yee(t, !0), Gee = (t, e) => zx(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)) { @@ -13368,16 +13368,16 @@ const qee = (t, e) => zx(t, (r) => { (u != " " || n != r.head) && (o = h), n = l; } return n; -}), Gee = (t) => Wee(t, !1), F5e = (t) => Wee(t, !0), z5e = (t) => zx(t, (e) => { +}), Xee = (t) => Gee(t, !1), z5e = (t) => Gee(t, !0), Q5e = (t) => zx(t, (e) => { let r = t.lineBlockAt(e.head).to; return e.head < r ? r : Math.min(t.state.doc.length, e.head + 1); -}), Q5e = (t) => zx(t, (e) => { +}), U5e = (t) => zx(t, (e) => { let r = t.moveToLineBoundary(e, !1).head; return e.head > r ? r : Math.max(0, e.head - 1); -}), U5e = (t) => zx(t, (e) => { +}), V5e = (t) => zx(t, (e) => { let r = t.moveToLineBoundary(e, !0).head; return e.head < r ? r : Math.min(t.state.doc.length, e.head + 1); -}), V5e = ({ state: t, dispatch: e }) => { +}), q5e = ({ state: t, dispatch: e }) => { if (t.readOnly) return !1; let r = t.changeByRange((n) => ({ @@ -13385,7 +13385,7 @@ const qee = (t, e) => zx(t, (r) => { range: je.cursor(n.from) })); return e(t.update(r, { scrollIntoView: !0, userEvent: "input" })), !0; -}, q5e = ({ state: t, dispatch: e }) => { +}, Y5e = ({ state: t, dispatch: e }) => { if (t.readOnly) return !1; let r = t.changeByRange((n) => { @@ -13412,7 +13412,7 @@ function qT(t) { } return e; } -function Xee(t, e, r) { +function Hee(t, e, r) { if (t.readOnly) return !1; let n = [], i = []; @@ -13437,8 +13437,8 @@ function Xee(t, e, r) { userEvent: "move.line" })), !0) : !1; } -const Y5e = ({ state: t, dispatch: e }) => Xee(t, e, !1), W5e = ({ state: t, dispatch: e }) => Xee(t, e, !0); -function Hee(t, e, r) { +const W5e = ({ state: t, dispatch: e }) => Hee(t, e, !1), G5e = ({ state: t, dispatch: e }) => Hee(t, e, !0); +function Zee(t, e, r) { if (t.readOnly) return !1; let n = []; @@ -13446,25 +13446,25 @@ function Hee(t, e, r) { 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 G5e = ({ state: t, dispatch: e }) => Hee(t, e, !1), X5e = ({ state: t, dispatch: e }) => Hee(t, e, !0), H5e = (t) => { +const X5e = ({ state: t, dispatch: e }) => Zee(t, e, !1), H5e = ({ state: t, dispatch: e }) => Zee(t, e, !0), Z5e = (t) => { if (t.state.readOnly) return !1; let { state: e } = t, r = e.changes(qT(e).map(({ from: i, to: s }) => (i > 0 ? i-- : s < e.doc.length && s++, { from: i, to: s }))), n = w1(e.selection, (i) => t.moveVertically(i, !0)).map(r); return t.dispatch({ changes: r, selection: n, scrollIntoView: !0, userEvent: "delete.line" }), !0; }; -function Z5e(t, e) { +function j5e(t, e) { if (/\(\)|\[\]|\{\}/.test(t.sliceDoc(e - 1, e + 1))) return { from: e, to: e }; let r = Cn(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(br.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 j5e = /* @__PURE__ */ Zee(!1), K5e = /* @__PURE__ */ Zee(!0); -function Zee(t) { +const K5e = /* @__PURE__ */ jee(!1), J5e = /* @__PURE__ */ jee(!0); +function jee(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 && Z5e(e, s); + let { from: s, to: a } = i, o = e.doc.lineAt(s), l = !t && s == a && j5e(e, s); t && (s = a = (a <= o.to ? o : e.doc.lineAt(a)).to); let u = new FT(e, { simulateBreak: s, simulateDoubleBreak: !!l }), h = cD(u, s); for (h == null && (h = tc(/^\s*/.exec(e.doc.lineAt(s).text)[0], e.tabSize)); a < o.to && /\s/.test(o.text[a - o.from]); ) @@ -13494,7 +13494,7 @@ function mD(t, e) { }; }); } -const J5e = ({ state: t, dispatch: e }) => { +const e3e = ({ state: t, dispatch: e }) => { if (t.readOnly) return !1; let r = /* @__PURE__ */ Object.create(null), n = new FT(t, { overrideIndentation: (s) => { @@ -13509,9 +13509,9 @@ const J5e = ({ 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; -}, jee = ({ state: t, dispatch: e }) => t.readOnly ? !1 : (e(t.update(mD(t, (r, n) => { +}, Kee = ({ state: t, dispatch: e }) => t.readOnly ? !1 : (e(t.update(mD(t, (r, n) => { n.push({ from: r.from, insert: t.facet(Fx) }); -}), { userEvent: "input.indent" })), !0), Kee = ({ state: t, dispatch: e }) => t.readOnly ? !1 : (e(t.update(mD(t, (r, n) => { +}), { userEvent: "input.indent" })), !0), Jee = ({ state: t, dispatch: e }) => t.readOnly ? !1 : (e(t.update(mD(t, (r, n) => { let i = /^\s*/.exec(r.text)[0]; if (!i) return; @@ -13519,66 +13519,66 @@ const J5e = ({ state: t, dispatch: e }) => { 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), e3e = [ - { key: "Ctrl-b", run: _ee, shift: $ee, preventDefault: !0 }, - { key: "Ctrl-f", run: Aee, shift: Bee }, - { key: "Ctrl-p", run: Mee, shift: Qee }, - { key: "Ctrl-n", run: Dee, shift: Uee }, - { key: "Ctrl-a", run: w5e, shift: D5e }, - { key: "Ctrl-e", run: O5e, shift: P5e }, - { key: "Ctrl-d", run: Yee }, +}), { userEvent: "delete.dedent" })), !0), t3e = [ + { key: "Ctrl-b", run: Aee, shift: Bee, preventDefault: !0 }, + { key: "Ctrl-f", run: Lee, shift: Fee }, + { key: "Ctrl-p", run: Dee, shift: Uee }, + { key: "Ctrl-n", run: Pee, shift: Vee }, + { key: "Ctrl-a", run: O5e, shift: P5e }, + { key: "Ctrl-e", run: k5e, shift: N5e }, + { key: "Ctrl-d", run: Wee }, { key: "Ctrl-h", run: M8 }, - { key: "Ctrl-k", run: z5e }, - { key: "Ctrl-Alt-h", run: Gee }, - { key: "Ctrl-o", run: V5e }, - { key: "Ctrl-t", run: q5e }, + { key: "Ctrl-k", run: Q5e }, + { key: "Ctrl-Alt-h", run: Xee }, + { key: "Ctrl-o", run: q5e }, + { key: "Ctrl-t", run: Y5e }, { key: "Ctrl-v", run: R8 } -], t3e = /* @__PURE__ */ [ - { key: "ArrowLeft", run: _ee, shift: $ee, preventDefault: !0 }, - { key: "Mod-ArrowLeft", mac: "Alt-ArrowLeft", run: f5e, shift: T5e, preventDefault: !0 }, - { mac: "Cmd-ArrowLeft", run: b5e, shift: R5e, preventDefault: !0 }, - { key: "ArrowRight", run: Aee, shift: Bee, preventDefault: !0 }, - { key: "Mod-ArrowRight", mac: "Alt-ArrowRight", run: d5e, shift: C5e, preventDefault: !0 }, - { mac: "Cmd-ArrowRight", run: x5e, shift: M5e, preventDefault: !0 }, - { key: "ArrowUp", run: Mee, shift: Qee, preventDefault: !0 }, +], r3e = /* @__PURE__ */ [ + { key: "ArrowLeft", run: Aee, shift: Bee, preventDefault: !0 }, + { key: "Mod-ArrowLeft", mac: "Alt-ArrowLeft", run: d5e, shift: C5e, preventDefault: !0 }, + { mac: "Cmd-ArrowLeft", run: x5e, shift: M5e, preventDefault: !0 }, + { key: "ArrowRight", run: Lee, shift: Fee, preventDefault: !0 }, + { key: "Mod-ArrowRight", mac: "Alt-ArrowRight", run: p5e, shift: E5e, preventDefault: !0 }, + { mac: "Cmd-ArrowRight", run: w5e, shift: D5e, preventDefault: !0 }, + { key: "ArrowUp", run: Dee, shift: Uee, preventDefault: !0 }, { mac: "Cmd-ArrowUp", run: Fz, shift: Qz }, { mac: "Ctrl-ArrowUp", run: Iz, shift: $z }, - { key: "ArrowDown", run: Dee, shift: Uee, preventDefault: !0 }, + { key: "ArrowDown", run: Pee, shift: Vee, preventDefault: !0 }, { mac: "Cmd-ArrowDown", run: zz, shift: Uz }, { mac: "Ctrl-ArrowDown", run: R8, shift: Bz }, { key: "PageUp", run: Iz, shift: $z }, { key: "PageDown", run: R8, shift: Bz }, - { key: "Home", run: y5e, shift: L5e, preventDefault: !0 }, + { key: "Home", run: b5e, shift: R5e, preventDefault: !0 }, { key: "Mod-Home", run: Fz, shift: Qz }, - { key: "End", run: v5e, shift: A5e, preventDefault: !0 }, + { key: "End", run: y5e, shift: L5e, preventDefault: !0 }, { key: "Mod-End", run: zz, shift: Uz }, - { key: "Enter", run: j5e }, - { key: "Mod-a", run: N5e }, + { key: "Enter", run: K5e }, + { key: "Mod-a", run: I5e }, { key: "Backspace", run: M8, shift: M8 }, - { key: "Delete", run: Yee }, - { key: "Mod-Backspace", mac: "Alt-Backspace", run: Gee }, - { key: "Mod-Delete", mac: "Alt-Delete", run: F5e }, - { mac: "Mod-Backspace", run: Q5e }, - { mac: "Mod-Delete", run: U5e } -].concat(/* @__PURE__ */ e3e.map((t) => ({ mac: t.key, run: t.run, shift: t.shift }))), Jee = /* @__PURE__ */ [ - { key: "Alt-ArrowLeft", mac: "Ctrl-ArrowLeft", run: g5e, shift: E5e }, - { key: "Alt-ArrowRight", mac: "Ctrl-ArrowRight", run: m5e, shift: _5e }, - { key: "Alt-ArrowUp", run: Y5e }, - { key: "Shift-Alt-ArrowUp", run: G5e }, - { key: "Alt-ArrowDown", run: W5e }, - { key: "Shift-Alt-ArrowDown", run: X5e }, - { key: "Escape", run: B5e }, - { key: "Mod-Enter", run: K5e }, - { key: "Alt-l", mac: "Ctrl-l", run: I5e }, - { key: "Mod-i", run: $5e, preventDefault: !0 }, - { key: "Mod-[", run: Kee }, - { key: "Mod-]", run: jee }, - { key: "Mod-Alt-\\", run: J5e }, - { key: "Shift-Mod-k", run: H5e }, - { key: "Shift-Mod-\\", run: S5e }, - { key: "Mod-/", run: Hke }, - { key: "Alt-A", run: jke } -].concat(t3e), r3e = { key: "Tab", run: jee, shift: Kee }; + { key: "Delete", run: Wee }, + { key: "Mod-Backspace", mac: "Alt-Backspace", run: Xee }, + { key: "Mod-Delete", mac: "Alt-Delete", run: z5e }, + { mac: "Mod-Backspace", run: U5e }, + { mac: "Mod-Delete", run: V5e } +].concat(/* @__PURE__ */ t3e.map((t) => ({ mac: t.key, run: t.run, shift: t.shift }))), ete = /* @__PURE__ */ [ + { key: "Alt-ArrowLeft", mac: "Ctrl-ArrowLeft", run: m5e, shift: _5e }, + { key: "Alt-ArrowRight", mac: "Ctrl-ArrowRight", run: v5e, shift: A5e }, + { key: "Alt-ArrowUp", run: W5e }, + { key: "Shift-Alt-ArrowUp", run: X5e }, + { key: "Alt-ArrowDown", run: G5e }, + { key: "Shift-Alt-ArrowDown", run: H5e }, + { key: "Escape", run: F5e }, + { key: "Mod-Enter", run: J5e }, + { key: "Alt-l", mac: "Ctrl-l", run: $5e }, + { key: "Mod-i", run: B5e, preventDefault: !0 }, + { key: "Mod-[", run: Jee }, + { key: "Mod-]", run: Kee }, + { key: "Mod-Alt-\\", run: e3e }, + { key: "Shift-Mod-k", run: Z5e }, + { key: "Shift-Mod-\\", run: T5e }, + { key: "Mod-/", run: Zke }, + { key: "Alt-A", run: Kke } +].concat(r3e), n3e = { key: "Tab", run: Kee, shift: Jee }; function kn() { var t = arguments[0]; typeof t == "string" && (t = document.createElement(t)); @@ -13592,10 +13592,10 @@ function kn() { e++; } for (; e < arguments.length; e++) - ete(t, arguments[e]); + tte(t, arguments[e]); return t; } -function ete(t, e) { +function tte(t, e) { if (typeof e == "string") t.appendChild(document.createTextNode(e)); else if (e != null) @@ -13603,7 +13603,7 @@ function ete(t, e) { t.appendChild(e); else if (Array.isArray(e)) for (var r = 0; r < e.length; r++) - ete(t, e[r]); + tte(t, e[r]); else throw new RangeError("Unsupported child node: " + e); } @@ -13656,11 +13656,11 @@ class mm { typeof Symbol < "u" && (mm.prototype[Symbol.iterator] = function() { return this; }); -const tte = { from: -1, to: -1, match: /* @__PURE__ */ /.*/.exec("") }, vD = "gm" + (/x/.unicode == null ? "" : "u"); -class rte { +const rte = { from: -1, to: -1, match: /* @__PURE__ */ /.*/.exec("") }, vD = "gm" + (/x/.unicode == null ? "" : "u"); +class nte { constructor(e, r, n, i = 0, s = e.length) { - if (this.text = e, this.to = s, this.curLine = "", this.done = !1, this.value = tte, /\\[sWDnr]|\n|\r|\[\^/.test(r)) - return new nte(e, r, n, i, s); + if (this.text = e, this.to = s, this.curLine = "", this.done = !1, this.value = rte, /\\[sWDnr]|\n|\r|\[\^/.test(r)) + return new ite(e, r, n, i, s); this.re = new RegExp(r, vD + (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 = _5(e, i), this.getLine(this.curLineStart); @@ -13707,9 +13707,9 @@ class Ng { return a > r && (s = e.sliceString(r, a) + s, a = r), i.to < n && (s += e.sliceString(i.to, n)), I_.set(e, new Ng(a, s)), new Ng(r, s.slice(r - a, n - a)); } } -class nte { +class ite { constructor(e, r, n, i, s) { - this.text = e, this.to = s, this.done = !1, this.value = tte, this.matchPos = _5(e, i), this.re = new RegExp(r, vD + (n != null && n.ignoreCase ? "i" : "")), this.test = n == null ? void 0 : n.test, this.flat = Ng.get(e, i, this.chunkEnd(i + 5e3)); + this.text = e, this.to = s, this.done = !1, this.value = rte, this.matchPos = _5(e, i), this.re = new RegExp(r, vD + (n != null && n.ignoreCase ? "i" : "")), this.test = n == null ? void 0 : n.test, this.flat = Ng.get(e, i, this.chunkEnd(i + 5e3)); } chunkEnd(e) { return e >= this.to ? this.to : this.text.lineAt(e).to; @@ -13728,10 +13728,10 @@ class nte { } } } -typeof Symbol < "u" && (rte.prototype[Symbol.iterator] = nte.prototype[Symbol.iterator] = function() { +typeof Symbol < "u" && (nte.prototype[Symbol.iterator] = ite.prototype[Symbol.iterator] = function() { return this; }); -function n3e(t) { +function i3e(t) { try { return new RegExp(t, vD), !0; } catch { @@ -13784,44 +13784,44 @@ const A5 = /* @__PURE__ */ or.define(), qz = /* @__PURE__ */ Xn.define({ return t; }, provide: (t) => b2.from(t, (e) => e ? D8 : null) -}), i3e = (t) => { +}), s3e = (t) => { let e = y2(t, D8); if (!e) { let r = [A5.of(!0)]; - t.state.field(qz, !1) == null && r.push(or.appendConfig.of([qz, s3e])), t.dispatch({ effects: r }), e = y2(t, D8); + t.state.field(qz, !1) == null && r.push(or.appendConfig.of([qz, a3e])), t.dispatch({ effects: r }), e = y2(t, D8); } return e && e.dom.querySelector("input").select(), !0; -}, s3e = /* @__PURE__ */ kt.baseTheme({ +}, a3e = /* @__PURE__ */ kt.baseTheme({ ".cm-panel.cm-gotoLine": { padding: "2px 6px 4px", "& label": { fontSize: "80%" } } -}), a3e = { +}), o3e = { highlightWordAroundCursor: !1, minSelectionLength: 1, maxMatches: 100, wholeWords: !1 -}, ite = /* @__PURE__ */ $t.define({ +}, ste = /* @__PURE__ */ $t.define({ combine(t) { - return mu(t, a3e, { + return mu(t, o3e, { highlightWordAroundCursor: (e, r) => e || r, minSelectionLength: Math.min, maxMatches: Math.min }); } }); -function o3e(t) { - let e = [f3e, h3e]; - return t && e.push(ite.of(t)), e; +function l3e(t) { + let e = [d3e, f3e]; + return t && e.push(ste.of(t)), e; } -const l3e = /* @__PURE__ */ It.mark({ class: "cm-selectionMatch" }), c3e = /* @__PURE__ */ It.mark({ class: "cm-selectionMatch cm-selectionMatch-main" }); +const c3e = /* @__PURE__ */ It.mark({ class: "cm-selectionMatch" }), u3e = /* @__PURE__ */ It.mark({ class: "cm-selectionMatch cm-selectionMatch-main" }); function Yz(t, e, r, n) { return (r == 0 || t(e.sliceDoc(r - 1, r)) != Fn.Word) && (n == e.doc.length || t(e.sliceDoc(n, n + 1)) != Fn.Word); } -function u3e(t, e, r, n) { +function h3e(t, e, r, n) { return t(e.sliceDoc(r, r + 1)) == Fn.Word && t(e.sliceDoc(n - 1, n)) == Fn.Word; } -const h3e = /* @__PURE__ */ hn.fromClass(class { +const f3e = /* @__PURE__ */ hn.fromClass(class { constructor(t) { this.decorations = this.getDeco(t); } @@ -13829,7 +13829,7 @@ const h3e = /* @__PURE__ */ hn.fromClass(class { (t.selectionSet || t.docChanged || t.viewportChanged) && (this.decorations = this.getDeco(t.view)); } getDeco(t) { - let e = t.state.facet(ite), { state: r } = t, n = r.selection; + let e = t.state.facet(ste), { state: r } = t, n = r.selection; if (n.ranges.length > 1) return It.none; let i = n.main, s, a = null; @@ -13845,7 +13845,7 @@ const h3e = /* @__PURE__ */ hn.fromClass(class { if (l < e.minSelectionLength || l > 200) return It.none; if (e.wholeWords) { - if (s = r.sliceDoc(i.from, i.to), a = r.charCategorizer(i.head), !(Yz(a, r, i.from, i.to) && u3e(a, r, i.from, i.to))) + if (s = r.sliceDoc(i.from, i.to), a = r.charCategorizer(i.head), !(Yz(a, r, i.from, i.to) && h3e(a, r, i.from, i.to))) return It.none; } else if (s = r.sliceDoc(i.from, i.to).trim(), !s) return It.none; @@ -13855,7 +13855,7 @@ const h3e = /* @__PURE__ */ hn.fromClass(class { let u = new mm(r.doc, s, l.from, l.to); for (; !u.next().done; ) { let { from: h, to: f } = u.value; - if ((!a || Yz(a, r, h, f)) && (i.empty && h <= i.from && f >= i.to ? o.push(c3e.range(h, f)) : (h >= i.to || f <= i.from) && o.push(l3e.range(h, f)), o.length > e.maxMatches)) + if ((!a || Yz(a, r, h, f)) && (i.empty && h <= i.from && f >= i.to ? o.push(u3e.range(h, f)) : (h >= i.to || f <= i.from) && o.push(c3e.range(h, f)), o.length > e.maxMatches)) return It.none; } } @@ -13863,14 +13863,14 @@ const h3e = /* @__PURE__ */ hn.fromClass(class { } }, { decorations: (t) => t.decorations -}), f3e = /* @__PURE__ */ kt.baseTheme({ +}), d3e = /* @__PURE__ */ kt.baseTheme({ ".cm-selectionMatch": { backgroundColor: "#99ff7780" }, ".cm-searchMatch .cm-selectionMatch": { backgroundColor: "transparent" } -}), d3e = ({ state: t, dispatch: e }) => { +}), p3e = ({ state: t, dispatch: e }) => { let { selection: r } = t, n = je.create(r.ranges.map((i) => t.wordAt(i.head) || je.cursor(i.head)), r.mainIndex); return n.eq(r) ? !1 : (e(t.update({ selection: n })), !0); }; -function p3e(t, e) { +function g3e(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 mm(t.doc, e, n[n.length - 1].to); ; ) if (o.next(), o.done) { @@ -13888,14 +13888,14 @@ function p3e(t, e) { return o.value; } } -const g3e = ({ state: t, dispatch: e }) => { +const m3e = ({ state: t, dispatch: e }) => { let { ranges: r } = t.selection; if (r.some((s) => s.from === s.to)) - return d3e({ state: t, dispatch: e }); + return p3e({ 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 = p3e(t, n); + let i = g3e(t, n); return i ? (e(t.update({ selection: t.selection.addRange(je.range(i.from, i.to), !1), effects: kt.scrollIntoView(i.to) @@ -13908,14 +13908,14 @@ const g3e = ({ state: t, dispatch: e }) => { literal: !1, regexp: !1, wholeWord: !1, - createPanel: (e) => new E3e(e), + createPanel: (e) => new _3e(e), scrollToMatch: (e) => kt.scrollIntoView(e) }); } }); -class ste { +class ate { 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 || n3e(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 || i3e(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" ? ` @@ -13925,25 +13925,25 @@ class ste { 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 b3e(this) : new v3e(this); + return this.regexp ? new x3e(this) : new y3e(this); } getCursor(e, r = 0, n) { let i = e.doc ? e : Tr.create({ doc: e }); return n == null && (n = i.doc.length), this.regexp ? og(this, i, r, n) : ag(this, i, r, n); } } -class ate { +class ote { constructor(e) { this.spec = e; } } function ag(t, e, r, n) { - return new mm(e.doc, t.unquoted, r, n, t.caseSensitive ? void 0 : (i) => i.toLowerCase(), t.wholeWord ? m3e(e.doc, e.charCategorizer(e.selection.main.head)) : void 0); + return new mm(e.doc, t.unquoted, r, n, t.caseSensitive ? void 0 : (i) => i.toLowerCase(), t.wholeWord ? v3e(e.doc, e.charCategorizer(e.selection.main.head)) : void 0); } -function m3e(t, e) { +function v3e(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(L5(i, r - s)) != Fn.Word || e(R5(i, r - s)) != Fn.Word) && (e(R5(i, n - s)) != Fn.Word || e(L5(i, n - s)) != Fn.Word)); } -class v3e extends ate { +class y3e extends ote { constructor(e) { super(e); } @@ -13985,9 +13985,9 @@ class v3e extends ate { } } function og(t, e, r, n) { - return new rte(e.doc, t.search, { + return new nte(e.doc, t.search, { ignoreCase: !t.caseSensitive, - test: t.wholeWord ? y3e(e.charCategorizer(e.selection.main.head)) : void 0 + test: t.wholeWord ? b3e(e.charCategorizer(e.selection.main.head)) : void 0 }, r, n); } function L5(t, e) { @@ -13996,10 +13996,10 @@ function L5(t, e) { function R5(t, e) { return t.slice(e, Ss(t, e)); } -function y3e(t) { +function b3e(t) { return (e, r, n) => !n[0].length || (t(L5(n.input, n.index)) != Fn.Word || t(R5(n.input, n.index)) != Fn.Word) && (t(R5(n.input, n.index + n[0].length)) != Fn.Word || t(L5(n.input, n.index + n[0].length)) != Fn.Word); } -class b3e extends ate { +class x3e extends ote { nextMatch(e, r, n) { let i = og(this.spec, e, n, e.doc.length).next(); return i.done && (i = og(this.spec, e, 0, r).next()), i.done ? null : i.value; @@ -14052,7 +14052,7 @@ class $_ { this.query = e, this.panel = r; } } -const x3e = /* @__PURE__ */ It.mark({ class: "cm-searchMatch" }), w3e = /* @__PURE__ */ It.mark({ class: "cm-searchMatch cm-searchMatch-selected" }), O3e = /* @__PURE__ */ hn.fromClass(class { +const w3e = /* @__PURE__ */ It.mark({ class: "cm-searchMatch" }), O3e = /* @__PURE__ */ It.mark({ class: "cm-searchMatch cm-searchMatch-selected" }), k3e = /* @__PURE__ */ hn.fromClass(class { constructor(t) { this.view = t, this.decorations = this.highlight(t.state.field(Of)); } @@ -14070,7 +14070,7 @@ const x3e = /* @__PURE__ */ It.mark({ class: "cm-searchMatch" }), w3e = /* @__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 ? w3e : x3e); + n.add(u, h, f ? O3e : w3e); }); } return n.finish(); @@ -14081,7 +14081,7 @@ const x3e = /* @__PURE__ */ It.mark({ class: "cm-searchMatch" }), w3e = /* @__PU function Qx(t) { return (e) => { let r = e.state.field(Of, !1); - return r && r.query.spec.valid ? t(e, r) : cte(e); + return r && r.query.spec.valid ? t(e, r) : ute(e); }; } const M5 = /* @__PURE__ */ Qx((t, { query: e }) => { @@ -14093,7 +14093,7 @@ const M5 = /* @__PURE__ */ Qx((t, { query: e }) => { selection: i, effects: [xD(t, n), s.scrollToMatch(i.main, t)], userEvent: "select.search" - }), lte(t), !0; + }), cte(t), !0; }), D5 = /* @__PURE__ */ Qx((t, { query: e }) => { let { state: r } = t, { from: n } = r.selection.main, i = e.prevMatch(r, n, n); if (!i) @@ -14103,14 +14103,14 @@ const M5 = /* @__PURE__ */ Qx((t, { query: e }) => { selection: s, effects: [xD(t, i), a.scrollToMatch(s.main, t)], userEvent: "select.search" - }), lte(t), !0; -}), k3e = /* @__PURE__ */ Qx((t, { query: e }) => { + }), cte(t), !0; +}), S3e = /* @__PURE__ */ Qx((t, { query: e }) => { let r = e.matchAll(t.state, 1e3); return !r || !r.length ? !1 : (t.dispatch({ selection: je.create(r.map((n) => je.range(n.from, n.to))), userEvent: "select.search.matches" }), !0); -}), S3e = ({ state: t, dispatch: e }) => { +}), T3e = ({ state: t, dispatch: e }) => { let r = t.selection; if (r.ranges.length > 1 || r.main.empty) return !1; @@ -14142,7 +14142,7 @@ const M5 = /* @__PURE__ */ Qx((t, { query: e }) => { effects: u, userEvent: "input.replace" }), !0; -}), T3e = /* @__PURE__ */ Qx((t, { query: e }) => { +}), C3e = /* @__PURE__ */ Qx((t, { query: e }) => { if (t.state.readOnly) return !1; let r = e.matchAll(t.state, 1e9).map((i) => { @@ -14167,7 +14167,7 @@ function P8(t, e) { if (e && !l) return e; let u = t.facet(O1); - return new ste({ + return new ate({ 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, @@ -14175,18 +14175,18 @@ function P8(t, e) { wholeWord: (a = e == null ? void 0 : e.wholeWord) !== null && a !== void 0 ? a : u.wholeWord }); } -function ote(t) { +function lte(t) { let e = y2(t, bD); return e && e.dom.querySelector("[main-field]"); } -function lte(t) { - let e = ote(t); +function cte(t) { + let e = lte(t); e && e == t.root.activeElement && e.select(); } -const cte = (t) => { +const ute = (t) => { let e = t.state.field(Of, !1); if (e && e.panel) { - let r = ote(t); + let r = lte(t); if (r && r != t.root.activeElement) { let n = P8(t.state, e.query.spec); n.valid && t.dispatch({ effects: T2.of(n) }), r.focus(), r.select(); @@ -14194,25 +14194,25 @@ const cte = (t) => { } else t.dispatch({ effects: [ yD.of(!0), - e ? T2.of(P8(t.state, e.query.spec)) : or.appendConfig.of(A3e) + e ? T2.of(P8(t.state, e.query.spec)) : or.appendConfig.of(L3e) ] }); return !0; -}, ute = (t) => { +}, hte = (t) => { let e = t.state.field(Of, !1); if (!e || !e.panel) return !1; let r = y2(t, bD); return r && r.dom.contains(t.root.activeElement) && t.focus(), t.dispatch({ effects: yD.of(!1) }), !0; -}, C3e = [ - { key: "Mod-f", run: cte, scope: "editor search-panel" }, +}, E3e = [ + { key: "Mod-f", run: ute, scope: "editor search-panel" }, { key: "F3", run: M5, shift: D5, scope: "editor search-panel", preventDefault: !0 }, { key: "Mod-g", run: M5, shift: D5, scope: "editor search-panel", preventDefault: !0 }, - { key: "Escape", run: ute, scope: "editor search-panel" }, - { key: "Mod-Shift-l", run: S3e }, - { key: "Mod-Alt-g", run: i3e }, - { key: "Mod-d", run: g3e, preventDefault: !0 } + { key: "Escape", run: hte, scope: "editor search-panel" }, + { key: "Mod-Shift-l", run: T3e }, + { key: "Mod-Alt-g", run: s3e }, + { key: "Mod-d", run: m3e, preventDefault: !0 } ]; -class E3e { +class _3e { constructor(e) { this.view = e; let r = this.query = e.state.field(Of).query.spec; @@ -14261,7 +14261,7 @@ class E3e { this.searchField, n("next", () => M5(e), [mo(e, "next")]), n("prev", () => D5(e), [mo(e, "previous")]), - n("select", () => k3e(e), [mo(e, "all")]), + n("select", () => S3e(e), [mo(e, "all")]), kn("label", null, [this.caseField, mo(e, "match case")]), kn("label", null, [this.reField, mo(e, "regexp")]), kn("label", null, [this.wordField, mo(e, "by word")]), @@ -14269,18 +14269,18 @@ class E3e { kn("br"), this.replaceField, n("replace", () => Wz(e), [mo(e, "replace")]), - n("replaceAll", () => T3e(e), [mo(e, "replace all")]) + n("replaceAll", () => C3e(e), [mo(e, "replace all")]) ], kn("button", { name: "close", - onclick: () => ute(e), + onclick: () => hte(e), "aria-label": mo(e, "close"), type: "button" }, ["\xD7"]) ]); } commit() { - let e = new ste({ + let e = new ate({ search: this.searchField.value, caseSensitive: this.caseField.checked, regexp: this.reField.checked, @@ -14290,7 +14290,7 @@ class E3e { e.eq(this.query) || (this.query = e, this.view.dispatch({ effects: T2.of(e) })); } keydown(e) { - GOe(this.view, e, "search-panel") ? e.preventDefault() : e.keyCode == 13 && e.target == this.searchField ? (e.preventDefault(), (e.shiftKey ? D5 : M5)(this.view)) : e.keyCode == 13 && e.target == this.replaceField && (e.preventDefault(), Wz(this.view)); + XOe(this.view, e, "search-panel") ? e.preventDefault() : e.keyCode == 13 && e.target == this.searchField ? (e.preventDefault(), (e.shiftKey ? D5 : M5)(this.view)) : e.keyCode == 13 && e.target == this.replaceField && (e.preventDefault(), Wz(this.view)); } update(e) { for (let r of e.transactions) @@ -14332,7 +14332,7 @@ function xD(t, { from: e, to: r }) { } return kt.announce.of(`${t.state.phrase("current match")}. ${o} ${t.state.phrase("on line")} ${n.number}.`); } -const _3e = /* @__PURE__ */ kt.baseTheme({ +const A3e = /* @__PURE__ */ kt.baseTheme({ ".cm-panel.cm-search": { padding: "2px 6px 4px", position: "relative", @@ -14361,10 +14361,10 @@ const _3e = /* @__PURE__ */ kt.baseTheme({ "&dark .cm-searchMatch": { backgroundColor: "#00ffff8a" }, "&light .cm-searchMatch-selected": { backgroundColor: "#ff6a0054" }, "&dark .cm-searchMatch-selected": { backgroundColor: "#ff00ff8a" } -}), A3e = [ +}), L3e = [ Of, - /* @__PURE__ */ uc.low(O3e), - _3e + /* @__PURE__ */ uc.low(k3e), + A3e ]; class wD { constructor(e, r, n) { @@ -14382,7 +14382,7 @@ class wD { } : 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(fte(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(dte(e, !1)); return s < 0 ? null : { from: n + s, to: this.pos, text: i.slice(s) }; } get aborted() { @@ -14396,7 +14396,7 @@ function Gz(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 L3e(t) { +function R3e(t) { let e = /* @__PURE__ */ Object.create(null), r = /* @__PURE__ */ Object.create(null); for (let { label: i } of t) { e[i[0]] = !0; @@ -14406,14 +14406,14 @@ function L3e(t) { let n = Gz(e) + Gz(r) + "*$"; return [new RegExp("^" + n), new RegExp(n)]; } -function hte(t) { - let e = t.map((i) => typeof i == "string" ? { label: i } : i), [r, n] = e.every((i) => /^\w+$/.test(i.label)) ? [/\w*$/, /\w+$/] : L3e(e); +function fte(t) { + let e = t.map((i) => typeof i == "string" ? { label: i } : i), [r, n] = e.every((i) => /^\w+$/.test(i.label)) ? [/\w*$/, /\w+$/] : R3e(e); return (i) => { let s = i.matchBefore(n); return s || i.explicit ? { from: s ? s.from : i.pos, options: e, validFor: r } : null; }; } -function R3e(t, e) { +function M3e(t, e) { return (r) => { for (let n = Cn(r.state).resolveInner(r.pos, -1); n; n = n.parent) { if (t.indexOf(n.name) > -1) @@ -14432,13 +14432,13 @@ class Xz { function kf(t) { return t.selection.main.from; } -function fte(t, e) { +function dte(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 dte = /* @__PURE__ */ co.define(); -function M3e(t, e, r, n) { +const pte = /* @__PURE__ */ co.define(); +function D3e(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 }, @@ -14446,14 +14446,14 @@ function M3e(t, e, r, n) { })), { scrollIntoView: !0, userEvent: "input.complete" }); } const Hz = /* @__PURE__ */ new WeakMap(); -function D3e(t) { +function P3e(t) { if (!Array.isArray(t)) return t; let e = Hz.get(t); - return e || Hz.set(t, e = hte(t)), e; + return e || Hz.set(t, e = fte(t)), e; } const OD = /* @__PURE__ */ or.define(), C2 = /* @__PURE__ */ or.define(); -class P3e { +class N3e { 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; ) { @@ -14526,7 +14526,7 @@ const js = /* @__PURE__ */ $t.define({ aboveCursor: !1, icons: !0, addToOptions: [], - positionInfo: N3e, + positionInfo: I3e, compareCompletions: (e, r) => e.label.localeCompare(r.label), interactionDelay: 75, updateSyncTime: 100 @@ -14543,7 +14543,7 @@ const js = /* @__PURE__ */ $t.define({ function Zz(t, e) { return t ? e ? t + " " + e : t : e; } -function N3e(t, e, r, n, i, s) { +function I3e(t, e, r, n, i, s) { let a = t.textDirection == Wn.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); @@ -14558,7 +14558,7 @@ function N3e(t, e, r, n, i, s) { class: "cm-completionInfo-" + (l ? a ? "left-narrow" : "right-narrow" : o ? "left" : "right") }; } -function I3e(t) { +function $3e(t) { let e = t.addToOptions.slice(); return t.icons && e.push({ render(r) { @@ -14600,7 +14600,7 @@ function B_(t, e, r) { let n = Math.floor((t - e) / r); return { from: t - (n + 1) * r, to: t - n * r }; } -class $3e { +class B3e { constructor(e, r, n) { this.view = e, this.stateField = r, this.applyCompletion = n, this.info = null, this.infoDestroy = null, this.placeInfoReq = { read: () => this.measureInfo(), @@ -14608,7 +14608,7 @@ class $3e { key: this }, this.space = null, this.currentClass = ""; let i = e.state.field(r), { options: s, selected: a } = i.open, o = e.state.facet(js); - this.optionContent = I3e(o), this.optionClass = o.optionClass, this.tooltipClass = o.tooltipClass, this.range = B_(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 = $3e(o), this.optionClass = o.optionClass, this.tooltipClass = o.tooltipClass, this.range = B_(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) { @@ -14679,7 +14679,7 @@ class $3e { 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 && F3e(this.list, r), r; + return r && z3e(this.list, r), r; } measureInfo() { let e = this.dom.querySelector("[aria-selected]"); @@ -14729,17 +14729,17 @@ class $3e { this.destroyInfo(); } } -function B3e(t, e) { - return (r) => new $3e(r, t, e); -} function F3e(t, e) { + return (r) => new B3e(r, t, e); +} +function z3e(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 jz(t) { return (t.boost || 0) * 100 + (t.apply ? 10 : 0) + (t.info ? 5 : 0) + (t.type ? 1 : 0); } -function z3e(t, e) { +function Q3e(t, e) { let r = [], n = null, i = (l) => { r.push(l); let { section: u } = l.completion; @@ -14756,7 +14756,7 @@ function z3e(t, e) { for (let h of l.result.options) i(new Xz(h, l.source, u ? u(h) : [], 1e9 - r.length)); else { - let h = new P3e(e.sliceDoc(l.from, l.to)); + let h = new N3e(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; @@ -14791,7 +14791,7 @@ class vg { return e == this.selected || e >= this.options.length ? this : new vg(this.options, Kz(r, e), this.tooltip, this.timestamp, e, this.disabled); } static build(e, r, n, i, s) { - let a = z3e(e, r); + let a = Q3e(e, r); if (!a.length) return i && e.some((l) => l.state == 1) ? new vg(i.options, i.attrs, i.tooltip, i.timestamp, i.selected, !0) : null; let o = r.facet(js).selectOnOpen ? 0 : -1; @@ -14805,7 +14805,7 @@ class vg { } return new vg(a, Kz(n, o), { pos: e.reduce((l, u) => u.hasResult() ? Math.min(l, u.from) : l, 1e8), - create: Y3e, + create: W3e, above: s.aboveCursor }, i ? i.timestamp : Date.now(), o, !1); } @@ -14818,25 +14818,25 @@ class P5 { this.active = e, this.id = r, this.open = n; } static start() { - return new P5(V3e, "cm-ac-" + Math.floor(Math.random() * 2e6).toString(36), null); + return new P5(q3e, "cm-ac-" + Math.floor(Math.random() * 2e6).toString(36), null); } update(e) { - let { state: r } = e, n = r.facet(js), s = (n.override || r.languageDataAt("autocomplete", kf(r)).map(D3e)).map((o) => (this.active.find((u) => u.source == o) || new Wa(o, this.active.some((u) => u.state != 0) ? 1 : 0)).update(e, n)); + let { state: r } = e, n = r.facet(js), s = (n.override || r.languageDataAt("autocomplete", kf(r)).map(P3e)).map((o) => (this.active.find((u) => u.source == o) || new Wa(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)) || !Q3e(s, this.active) ? a = vg.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 Wa(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)) || !U3e(s, this.active) ? a = vg.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 Wa(o.source, 0) : o)); for (let o of e.effects) - o.is(gte) && (a = a && a.setSelected(o.value, this.id)); + o.is(mte) && (a = a && a.setSelected(o.value, this.id)); return s == this.active && a == this.open ? this : new P5(s, this.id, a); } get tooltip() { return this.open ? this.open.tooltip : null; } get attrs() { - return this.open ? this.open.attrs : U3e; + return this.open ? this.open.attrs : V3e; } } -function Q3e(t, e) { +function U3e(t, e) { if (t == e) return !0; for (let r = 0, n = 0; ; ) { @@ -14851,7 +14851,7 @@ function Q3e(t, e) { return !1; } } -const U3e = { +const V3e = { "aria-autocomplete": "list" }; function Kz(t, e) { @@ -14862,7 +14862,7 @@ function Kz(t, e) { }; return e > -1 && (r["aria-activedescendant"] = t + "-" + e), r; } -const V3e = []; +const q3e = []; function N8(t) { return t.isUserEvent("input.type") ? "input" : t.isUserEvent("delete.backward") ? "delete" : null; } @@ -14881,7 +14881,7 @@ class Wa { i = new Wa(i.source, 1, s.value ? kf(e.state) : -1); else if (s.is(C2)) i = new Wa(i.source, 0); - else if (s.is(pte)) + else if (s.is(gte)) for (let a of s.value) a.source == i.source && (i = a); return i; @@ -14909,7 +14909,7 @@ class Ig extends Wa { if ((this.explicitPos < 0 ? o <= s : o < this.from) || o > a || r == "delete" && kf(e.startState) == this.from) return new Wa(this.source, r == "input" && n.activateOnTyping ? 1 : 0); let l = this.explicitPos < 0 ? -1 : e.changes.mapPos(this.explicitPos), u; - return q3e(this.result.validFor, e.state, s, a) ? new Ig(this.source, l, this.result, s, a) : this.result.update && (u = this.result.update(this.result, s, a, new wD(e.state, o, l >= 0))) ? new Ig(this.source, l, u, u.from, (i = u.to) !== null && i !== void 0 ? i : kf(e.state)) : new Wa(this.source, 1, l); + return Y3e(this.result.validFor, e.state, s, a) ? new Ig(this.source, l, this.result, s, a) : this.result.update && (u = this.result.update(this.result, s, a, new wD(e.state, o, l >= 0))) ? new Ig(this.source, l, u, u.from, (i = u.to) !== null && i !== void 0 ? i : kf(e.state)) : new Wa(this.source, 1, l); } handleChange(e) { return e.changes.touchesRange(this.from, this.to) ? new Wa(this.source, 0) : this.map(e.changes); @@ -14918,17 +14918,17 @@ class Ig extends Wa { return e.empty ? this : new Ig(this.source, this.explicitPos < 0 ? -1 : e.mapPos(this.explicitPos), this.result, e.mapPos(this.from), e.mapPos(this.to, 1)); } } -function q3e(t, e, r, n) { +function Y3e(t, e, r, n) { if (!t) return !1; let i = e.sliceDoc(r, n); - return typeof t == "function" ? t(i, r, n, e) : fte(t, !0).test(i); + return typeof t == "function" ? t(i, r, n, e) : dte(t, !0).test(i); } -const pte = /* @__PURE__ */ or.define({ +const gte = /* @__PURE__ */ or.define({ map(t, e) { return t.map((r) => r.map(e)); } -}), gte = /* @__PURE__ */ or.define(), To = /* @__PURE__ */ Xn.define({ +}), mte = /* @__PURE__ */ or.define(), To = /* @__PURE__ */ Xn.define({ create() { return P5.start(); }, @@ -14940,36 +14940,36 @@ const pte = /* @__PURE__ */ or.define({ kt.contentAttributes.from(t, (e) => e.attrs) ] }); -function mte(t, e) { +function vte(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 Ig ? (typeof r == "string" ? t.dispatch(Object.assign(Object.assign({}, M3e(t.state, r, n.from, n.to)), { annotations: dte.of(e.completion) })) : r(t, e.completion, n.from, n.to), !0) : !1; + return n instanceof Ig ? (typeof r == "string" ? t.dispatch(Object.assign(Object.assign({}, D3e(t.state, r, n.from, n.to)), { annotations: pte.of(e.completion) })) : r(t, e.completion, n.from, n.to), !0) : !1; } -const Y3e = /* @__PURE__ */ B3e(To, mte); +const W3e = /* @__PURE__ */ F3e(To, vte); function TO(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(js).interactionDelay) return !1; let i = 1, s; - e == "page" && (s = YJ(r, n.open.tooltip)) && (i = Math.max(2, Math.floor(s.dom.offsetHeight / s.dom.querySelector("li").offsetHeight) - 1)); + e == "page" && (s = WJ(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: gte.of(o) }), !0; + return o < 0 ? o = e == "page" ? 0 : a - 1 : o >= a && (o = e == "page" ? a - 1 : 0), r.dispatch({ effects: mte.of(o) }), !0; }; } -const W3e = (t) => { +const G3e = (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(js).interactionDelay ? !1 : mte(t, e.open.options[e.open.selected]); -}, G3e = (t) => t.state.field(To, !1) ? (t.dispatch({ effects: OD.of(!0) }), !0) : !1, X3e = (t) => { + return t.state.readOnly || !e || !e.open || e.open.selected < 0 || e.open.disabled || Date.now() - e.open.timestamp < t.state.facet(js).interactionDelay ? !1 : vte(t, e.open.options[e.open.selected]); +}, X3e = (t) => t.state.field(To, !1) ? (t.dispatch({ effects: OD.of(!0) }), !0) : !1, H3e = (t) => { let e = t.state.field(To, !1); return !e || !e.active.some((r) => r.state != 0) ? !1 : (t.dispatch({ effects: C2.of(null) }), !0); }; -class H3e { +class Z3e { constructor(e, r) { this.active = e, this.context = r, this.time = Date.now(), this.updates = [], this.done = void 0; } } -const Z3e = 50, j3e = 1e3, K3e = /* @__PURE__ */ hn.fromClass(class { +const j3e = 50, K3e = 1e3, J3e = /* @__PURE__ */ hn.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) @@ -14982,7 +14982,7 @@ const Z3e = 50, j3e = 1e3, K3e = /* @__PURE__ */ hn.fromClass(class { let r = t.transactions.some((n) => (n.selection || n.docChanged) && !N8(n)); for (let n = 0; n < this.running.length; n++) { let i = this.running[n]; - if (r || i.updates.length + t.transactions.length > Z3e && Date.now() - i.time > j3e) { + if (r || i.updates.length + t.transactions.length > j3e && Date.now() - i.time > K3e) { for (let s of i.context.abortListeners) try { s(); @@ -15004,7 +15004,7 @@ const Z3e = 50, j3e = 1e3, K3e = /* @__PURE__ */ hn.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 = kf(e), n = new wD(e, r, t.explicitPos == r), i = new H3e(t, n); + let { state: e } = this.view, r = kf(e), n = new wD(e, r, t.explicitPos == r), i = new Z3e(t, n); this.running.push(i), Promise.resolve(t.source(n)).then((s) => { i.context.aborted || (i.done = s || null, this.scheduleAccept()); }, (s) => { @@ -15041,14 +15041,14 @@ const Z3e = 50, j3e = 1e3, K3e = /* @__PURE__ */ hn.fromClass(class { } else this.startQuery(s); } - e.length && this.view.dispatch({ effects: pte.of(e) }); + e.length && this.view.dispatch({ effects: gte.of(e) }); } }, { eventHandlers: { blur(t) { let e = this.view.state.field(To, !1); if (e && e.tooltip && this.view.state.facet(js).closeOnBlur) { - let r = e.open && YJ(this.view, e.open.tooltip); + let r = e.open && WJ(this.view, e.open.tooltip); (!r || !r.dom.contains(t.relatedTarget)) && this.view.dispatch({ effects: C2.of(null) }); } }, @@ -15059,7 +15059,7 @@ const Z3e = 50, j3e = 1e3, K3e = /* @__PURE__ */ hn.fromClass(class { this.composing == 3 && setTimeout(() => this.view.dispatch({ effects: OD.of(!1) }), 20), this.composing = 0; } } -}), vte = /* @__PURE__ */ kt.baseTheme({ +}), yte = /* @__PURE__ */ kt.baseTheme({ ".cm-tooltip.cm-tooltip-autocomplete": { "& > ul": { fontFamily: "monospace", @@ -15181,7 +15181,7 @@ const Z3e = 50, j3e = 1e3, K3e = /* @__PURE__ */ hn.fromClass(class { "&:after": { content: "'abc'", fontSize: "50%", verticalAlign: "middle" } } }); -class J3e { +class eSe { constructor(e, r, n, i) { this.field = e, this.line = r, this.from = n, this.to = i; } @@ -15228,7 +15228,7 @@ class SD { for (let f of i) f.field >= u && f.field++; } - i.push(new J3e(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 eSe(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); @@ -15240,7 +15240,7 @@ class SD { return new SD(n, i); } } -let eSe = /* @__PURE__ */ It.widget({ widget: /* @__PURE__ */ new class extends uo { +let tSe = /* @__PURE__ */ It.widget({ widget: /* @__PURE__ */ new class extends uo { toDOM() { let t = document.createElement("span"); return t.className = "cm-snippetFieldPosition", t; @@ -15248,10 +15248,10 @@ let eSe = /* @__PURE__ */ It.widget({ widget: /* @__PURE__ */ new class extends ignoreEvent() { return !1; } -}() }), tSe = /* @__PURE__ */ It.mark({ class: "cm-snippetField" }); +}() }), rSe = /* @__PURE__ */ It.mark({ class: "cm-snippetField" }); class k1 { constructor(e, r) { - this.ranges = e, this.active = r, this.deco = It.set(e.map((n) => (n.from == n.to ? eSe : tSe).range(n.from, n.to))); + this.ranges = e, this.active = r, this.deco = It.set(e.map((n) => (n.from == n.to ? tSe : rSe).range(n.from, n.to))); } map(e) { let r = []; @@ -15271,7 +15271,7 @@ const Ux = /* @__PURE__ */ or.define({ map(t, e) { return t && t.map(e); } -}), rSe = /* @__PURE__ */ or.define(), E2 = /* @__PURE__ */ Xn.define({ +}), nSe = /* @__PURE__ */ or.define(), E2 = /* @__PURE__ */ Xn.define({ create() { return null; }, @@ -15279,7 +15279,7 @@ const Ux = /* @__PURE__ */ or.define({ for (let r of e.effects) { if (r.is(Ux)) return r.value; - if (r.is(rSe) && t) + if (r.is(nSe) && t) return new k1(t.ranges, r.value); } return t && e.docChanged && (t = t.map(e.changes)), t && e.selection && !t.selectionInsideField(e.selection) && (t = null), t; @@ -15289,22 +15289,22 @@ const Ux = /* @__PURE__ */ or.define({ function TD(t, e) { return je.create(t.filter((r) => r.field == e).map((r) => je.range(r.from, r.to))); } -function nSe(t) { +function iSe(t) { let e = SD.parse(t); return (r, n, i, s) => { let { text: a, ranges: o } = e.instantiate(r.state, i), l = { changes: { from: i, to: s, insert: qr.of(a) }, scrollIntoView: !0, - annotations: n ? dte.of(n) : void 0 + annotations: n ? pte.of(n) : void 0 }; if (o.length && (l.selection = TD(o, 0)), o.length > 1) { let u = new k1(o, 0), h = l.effects = [Ux.of(u)]; - r.state.field(E2, !1) === void 0 && h.push(or.appendConfig.of([E2, lSe, cSe, vte])); + r.state.field(E2, !1) === void 0 && h.push(or.appendConfig.of([E2, cSe, uSe, yte])); } r.dispatch(r.state.update(l)); }; } -function yte(t) { +function bte(t) { return ({ state: e, dispatch: r }) => { let n = e.field(E2, !1); if (!n || t < 0 && n.active == 0) @@ -15317,18 +15317,18 @@ function yte(t) { })), !0; }; } -const iSe = ({ state: t, dispatch: e }) => t.field(E2, !1) ? (e(t.update({ effects: Ux.of(null) })), !0) : !1, sSe = /* @__PURE__ */ yte(1), aSe = /* @__PURE__ */ yte(-1), oSe = [ - { key: "Tab", run: sSe, shift: aSe }, - { key: "Escape", run: iSe } +const sSe = ({ state: t, dispatch: e }) => t.field(E2, !1) ? (e(t.update({ effects: Ux.of(null) })), !0) : !1, aSe = /* @__PURE__ */ bte(1), oSe = /* @__PURE__ */ bte(-1), lSe = [ + { key: "Tab", run: aSe, shift: oSe }, + { key: "Escape", run: sSe } ], Jz = /* @__PURE__ */ $t.define({ combine(t) { - return t.length ? t[0] : oSe; + return t.length ? t[0] : lSe; } -}), lSe = /* @__PURE__ */ uc.highest(/* @__PURE__ */ Ku.compute([Jz], (t) => t.facet(Jz))); +}), cSe = /* @__PURE__ */ uc.highest(/* @__PURE__ */ Ku.compute([Jz], (t) => t.facet(Jz))); function Qa(t, e) { - return Object.assign(Object.assign({}, e), { apply: nSe(t) }); + return Object.assign(Object.assign({}, e), { apply: iSe(t) }); } -const cSe = /* @__PURE__ */ kt.domEventHandlers({ +const uSe = /* @__PURE__ */ kt.domEventHandlers({ mousedown(t, e) { let r = e.state.field(E2, !1), n; if (!r || (n = e.posAtCoords({ x: t.clientX, y: t.clientY })) == null) @@ -15353,7 +15353,7 @@ const cSe = /* @__PURE__ */ kt.domEventHandlers({ }(); CD.startSide = 1; CD.endSide = -1; -const bte = /* @__PURE__ */ Xn.define({ +const xte = /* @__PURE__ */ Xn.define({ create() { return $r.empty; }, @@ -15367,35 +15367,35 @@ const bte = /* @__PURE__ */ Xn.define({ return t; } }); -function uSe() { - return [fSe, bte]; +function hSe() { + return [dSe, xte]; } const F_ = "()[]{}<>"; -function xte(t) { +function wte(t) { for (let e = 0; e < F_.length; e += 2) if (F_.charCodeAt(e) == t) return F_.charAt(e + 1); return YM(t < 128 ? t : t + 1); } -function wte(t, e) { +function Ote(t, e) { return t.languageDataAt("closeBrackets", e)[0] || _2; } -const hSe = typeof navigator == "object" && /* @__PURE__ */ /Android\b/.test(navigator.userAgent), fSe = /* @__PURE__ */ kt.inputHandler.of((t, e, r, n) => { - if ((hSe ? t.composing : t.compositionStarted) || t.state.readOnly) +const fSe = typeof navigator == "object" && /* @__PURE__ */ /Android\b/.test(navigator.userAgent), dSe = /* @__PURE__ */ kt.inputHandler.of((t, e, r, n) => { + if ((fSe ? t.composing : t.compositionStarted) || t.state.readOnly) return !1; let i = t.state.selection.main; if (n.length > 2 || n.length == 2 && Ho(ws(n, 0)) == 1 || e != i.from || r != i.to) return !1; - let s = gSe(t.state, n); + let s = mSe(t.state, n); return s ? (t.dispatch(s), !0) : !1; -}), dSe = ({ state: t, dispatch: e }) => { +}), pSe = ({ state: t, dispatch: e }) => { if (t.readOnly) return !1; - let n = wte(t, t.selection.main.head).brackets || _2.brackets, i = null, s = t.changeByRange((a) => { + let n = Ote(t, t.selection.main.head).brackets || _2.brackets, i = null, s = t.changeByRange((a) => { if (a.empty) { - let o = mSe(t.doc, a.head); + let o = vSe(t.doc, a.head); for (let l of n) - if (l == o && YT(t.doc, a.head) == xte(ws(l, 0))) + if (l == o && YT(t.doc, a.head) == wte(ws(l, 0))) return { changes: { from: a.head - l.length, to: a.head + l.length }, range: je.cursor(a.head - l.length) @@ -15404,23 +15404,23 @@ const hSe = typeof navigator == "object" && /* @__PURE__ */ /Android\b/.test(nav return { range: i = a }; }); return i || e(t.update(s, { scrollIntoView: !0, userEvent: "delete.backward" })), !i; -}, pSe = [ - { key: "Backspace", run: dSe } +}, gSe = [ + { key: "Backspace", run: pSe } ]; -function gSe(t, e) { - let r = wte(t, t.selection.main.head), n = r.brackets || _2.brackets; +function mSe(t, e) { + let r = Ote(t, t.selection.main.head), n = r.brackets || _2.brackets; for (let i of n) { - let s = xte(ws(i, 0)); + let s = wte(ws(i, 0)); if (e == i) - return s == i ? bSe(t, i, n.indexOf(i + i + i) > -1, r) : vSe(t, i, s, r.before || _2.before); - if (e == s && Ote(t, t.selection.main.from)) - return ySe(t, i, s); + return s == i ? xSe(t, i, n.indexOf(i + i + i) > -1, r) : ySe(t, i, s, r.before || _2.before); + if (e == s && kte(t, t.selection.main.from)) + return bSe(t, i, s); } return null; } -function Ote(t, e) { +function kte(t, e) { let r = !1; - return t.field(bte).between(0, t.doc.length, (n) => { + return t.field(xte).between(0, t.doc.length, (n) => { n == e && (r = !0); }), r; } @@ -15428,11 +15428,11 @@ function YT(t, e) { let r = t.sliceString(e, e + 2); return r.slice(0, Ho(ws(r, 0))); } -function mSe(t, e) { +function vSe(t, e) { let r = t.sliceString(e - 2, e); return Ho(ws(r, 0)) == r.length ? r : r.slice(1); } -function vSe(t, e, r, n) { +function ySe(t, e, r, n) { let i = null, s = t.changeByRange((a) => { if (!a.empty) return { @@ -15452,7 +15452,7 @@ function vSe(t, e, r, n) { userEvent: "input.type" }); } -function ySe(t, e, r) { +function bSe(t, e, r) { let n = null, i = t.changeByRange((s) => s.empty && YT(t.doc, s.head) == r ? { changes: { from: s.head, to: s.head + r.length, insert: r }, range: je.cursor(s.head + r.length) @@ -15462,7 +15462,7 @@ function ySe(t, e, r) { userEvent: "input.type" }); } -function bSe(t, e, r, n) { +function xSe(t, e, r, n) { let i = n.stringPrefixes || _2.stringPrefixes, s = null, a = t.changeByRange((o) => { if (!o.empty) return { @@ -15478,7 +15478,7 @@ function bSe(t, e, r, n) { effects: l0.of(l + e.length), range: je.cursor(l + e.length) }; - if (Ote(t, l)) { + if (kte(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 }, @@ -15492,7 +15492,7 @@ function bSe(t, e, r, n) { effects: l0.of(l + e.length), range: je.cursor(l + e.length) }; - if (t.charCategorizer(l)(u) != Fn.Word && tQ(t, l, i) > -1 && !xSe(t, l, e, i)) + if (t.charCategorizer(l)(u) != Fn.Word && tQ(t, l, i) > -1 && !wSe(t, l, e, i)) return { changes: { insert: e + e, from: l }, effects: l0.of(l + e.length), @@ -15510,7 +15510,7 @@ function eQ(t, e) { let r = Cn(t).resolveInner(e + 1); return r.parent && r.from == e; } -function xSe(t, e, r, n) { +function wSe(t, e, r, n) { let i = Cn(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); @@ -15541,25 +15541,25 @@ function tQ(t, e, r) { } return -1; } -function wSe(t = {}) { +function OSe(t = {}) { return [ To, js.of(t), - K3e, - OSe, - vte + J3e, + kSe, + yte ]; } -const kte = [ - { key: "Ctrl-Space", run: G3e }, - { key: "Escape", run: X3e }, +const Ste = [ + { key: "Ctrl-Space", run: X3e }, + { key: "Escape", run: H3e }, { key: "ArrowDown", run: /* @__PURE__ */ TO(!0) }, { key: "ArrowUp", run: /* @__PURE__ */ TO(!1) }, { key: "PageDown", run: /* @__PURE__ */ TO(!0, "page") }, { key: "PageUp", run: /* @__PURE__ */ TO(!1, "page") }, - { key: "Enter", run: W3e } -], OSe = /* @__PURE__ */ uc.highest(/* @__PURE__ */ Ku.computeN([js], (t) => t.facet(js).defaultKeymap ? [kte] : [])); -class kSe { + { key: "Enter", run: G3e } +], kSe = /* @__PURE__ */ uc.highest(/* @__PURE__ */ Ku.computeN([js], (t) => t.facet(js).defaultKeymap ? [Ste] : [])); +class SSe { constructor(e, r, n) { this.from = e, this.to = r, this.diagnostic = n; } @@ -15569,10 +15569,10 @@ class Hd { this.diagnostics = e, this.panel = r, this.selected = n; } static init(e, r, n) { - let i = e, s = n.facet(Cte).markerFilter; + let i = e, s = n.facet(Ete).markerFilter; s && (i = s(i)); let a = It.set(i.map((o) => o.from == o.to || o.from == o.to - 1 && n.doc.lineAt(o.from).to == o.from ? It.widget({ - widget: new MSe(o), + widget: new DSe(o), diagnostic: o }).range(o.from) : It.mark({ attributes: { class: "cm-lintRange cm-lintRange-" + o.severity + (o.markClass ? " " + o.markClass : "") }, @@ -15585,17 +15585,17 @@ function vm(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 kSe(i, s, a.diagnostic), !1; + return n = new SSe(i, s, a.diagnostic), !1; }), n; } -function SSe(t, e) { +function TSe(t, e) { let r = t.startState.doc.lineAt(e.pos); - return !!(t.effects.some((n) => n.is(Ste)) || t.changes.touchesRange(r.from, r.to)); + return !!(t.effects.some((n) => n.is(Tte)) || t.changes.touchesRange(r.from, r.to)); } -function TSe(t, e) { - return t.field(Eo, !1) ? e : e.concat(or.appendConfig.of(NSe)); +function CSe(t, e) { + return t.field(Eo, !1) ? e : e.concat(or.appendConfig.of(ISe)); } -const Ste = /* @__PURE__ */ or.define(), ED = /* @__PURE__ */ or.define(), Tte = /* @__PURE__ */ or.define(), Eo = /* @__PURE__ */ Xn.define({ +const Tte = /* @__PURE__ */ or.define(), ED = /* @__PURE__ */ or.define(), Cte = /* @__PURE__ */ or.define(), Eo = /* @__PURE__ */ Xn.define({ create() { return new Hd(It.none, null, null); }, @@ -15609,50 +15609,50 @@ const Ste = /* @__PURE__ */ or.define(), ED = /* @__PURE__ */ or.define(), Tte = t = new Hd(r, t.panel, n); } for (let r of e.effects) - r.is(Ste) ? t = Hd.init(r.value, t.panel, e.state) : r.is(ED) ? t = new Hd(t.diagnostics, r.value ? WT.open : null, t.selected) : r.is(Tte) && (t = new Hd(t.diagnostics, t.panel, r.value)); + r.is(Tte) ? t = Hd.init(r.value, t.panel, e.state) : r.is(ED) ? t = new Hd(t.diagnostics, r.value ? WT.open : null, t.selected) : r.is(Cte) && (t = new Hd(t.diagnostics, t.panel, r.value)); return t; }, provide: (t) => [ b2.from(t, (e) => e.panel), kt.decorations.from(t, (e) => e.diagnostics) ] -}), CSe = /* @__PURE__ */ It.mark({ class: "cm-lintRange cm-lintRange-active" }); -function ESe(t, e, r) { +}), ESe = /* @__PURE__ */ It.mark({ class: "cm-lintRange cm-lintRange-active" }); +function _Se(t, e, r) { let { diagnostics: n } = t.state.field(Eo), 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(Cte).tooltipFilter; + let o = t.state.facet(Ete).tooltipFilter; return o && (i = o(i)), i.length ? { pos: s, end: a, above: t.state.doc.lineAt(s).to < a, create() { - return { dom: _Se(t, i) }; + return { dom: ASe(t, i) }; } } : null; } -function _Se(t, e) { - return kn("ul", { class: "cm-tooltip-lint" }, e.map((r) => _te(t, r, !1))); +function ASe(t, e) { + return kn("ul", { class: "cm-tooltip-lint" }, e.map((r) => Ate(t, r, !1))); } -const ASe = (t) => { +const LSe = (t) => { let e = t.state.field(Eo, !1); - (!e || !e.panel) && t.dispatch({ effects: TSe(t.state, [ED.of(!0)]) }); + (!e || !e.panel) && t.dispatch({ effects: CSe(t.state, [ED.of(!0)]) }); let r = y2(t, WT.open); return r && r.dom.querySelector(".cm-panel-lint ul").focus(), !0; }, rQ = (t) => { let e = t.state.field(Eo, !1); return !e || !e.panel ? !1 : (t.dispatch({ effects: ED.of(!1) }), !0); -}, LSe = (t) => { +}, RSe = (t) => { let e = t.state.field(Eo, !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); -}, RSe = [ - { key: "Mod-Shift-m", run: ASe, preventDefault: !0 }, - { key: "F8", run: LSe } -], Cte = /* @__PURE__ */ $t.define({ +}, MSe = [ + { key: "Mod-Shift-m", run: LSe, preventDefault: !0 }, + { key: "F8", run: RSe } +], Ete = /* @__PURE__ */ $t.define({ combine(t) { return Object.assign({ sources: t.map((e) => e.source) }, mu(t.map((e) => e.config), { delay: 750, @@ -15664,7 +15664,7 @@ const ASe = (t) => { })); } }); -function Ete(t) { +function _te(t) { let e = []; if (t) e: @@ -15680,9 +15680,9 @@ function Ete(t) { } return e; } -function _te(t, e, r) { +function Ate(t, e, r) { var n; - let i = r ? Ete(e.actions) : []; + let i = r ? _te(e.actions) : []; return kn("li", { class: "cm-diagnostic cm-diagnostic-" + e.severity }, kn("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) @@ -15704,7 +15704,7 @@ function _te(t, e, r) { }, f); }), e.source && kn("div", { class: "cm-diagnosticSource" }, e.source)); } -class MSe extends uo { +class DSe extends uo { constructor(e) { super(), this.diagnostic = e; } @@ -15717,7 +15717,7 @@ class MSe extends uo { } class nQ { constructor(e, r) { - this.diagnostic = r, this.id = "item_" + Math.floor(Math.random() * 4294967295).toString(16), this.dom = _te(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 = Ate(e, r, !0), this.dom.id = this.id, this.dom.setAttribute("role", "option"); } } class WT { @@ -15737,7 +15737,7 @@ class WT { 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 = Ete(s.actions); + let { diagnostic: s } = this.items[this.selectedIndex], a = _te(s.actions); for (let o = 0; o < a.length; o++) if (a[o].toUpperCase().charCodeAt(0) == i.keyCode) { let l = vm(this.view.state.field(Eo).diagnostics, s); @@ -15821,20 +15821,20 @@ class WT { !n || this.view.dispatch({ selection: { anchor: n.from, head: n.to }, scrollIntoView: !0, - effects: Tte.of(n) + effects: Cte.of(n) }); } static open(e) { return new WT(e); } } -function DSe(t, e = 'viewBox="0 0 40 40"') { +function PSe(t, e = 'viewBox="0 0 40 40"') { return `url('data:image/svg+xml,${encodeURIComponent(t)}')`; } function CO(t) { - return DSe(``, 'width="6" height="3"'); + return PSe(``, 'width="6" height="3"'); } -const PSe = /* @__PURE__ */ kt.baseTheme({ +const NSe = /* @__PURE__ */ kt.baseTheme({ ".cm-diagnostic": { padding: "3px 6px 3px 8px", marginLeft: "-1px", @@ -15924,51 +15924,51 @@ const PSe = /* @__PURE__ */ kt.baseTheme({ margin: 0 } } -}), NSe = [ +}), ISe = [ Eo, /* @__PURE__ */ kt.decorations.compute([Eo], (t) => { let { selected: e, panel: r } = t.field(Eo); return !e || !r || e.from == e.to ? It.none : It.set([ - CSe.range(e.from, e.to) + ESe.range(e.from, e.to) ]); }), - /* @__PURE__ */ L4e(ESe, { hideOn: SSe }), - PSe -], ISe = /* @__PURE__ */ (() => [ - B4e(), - Q4e(), - UJ(), + /* @__PURE__ */ R4e(_Se, { hideOn: TSe }), + NSe +], $Se = /* @__PURE__ */ (() => [ + F4e(), + U4e(), + VJ(), gD(), - Dke(), - FJ(), - n4e(), + Pke(), + zJ(), + i4e(), Tr.allowMultipleSelections.of(!0), - xke(), - pee(gee, { fallback: !0 }), - Vke(), - uSe(), - wSe(), - b4e(), - O4e(), - VJ(), - o3e(), + wke(), + gee(mee, { fallback: !0 }), + qke(), + hSe(), + OSe(), + x4e(), + k4e(), + qJ(), + l3e(), Ku.of([ - ...pSe, - ...Jee, - ...C3e, - ...Cee, - ...Ake, - ...kte, - ...RSe + ...gSe, + ...ete, + ...E3e, + ...Eee, + ...Lke, + ...Ste, + ...MSe ]) -])(), $Se = /* @__PURE__ */ (() => [ - UJ(), +])(), BSe = /* @__PURE__ */ (() => [ + VJ(), gD(), - FJ(), - pee(gee, { fallback: !0 }), + zJ(), + gee(mee, { fallback: !0 }), Ku.of([ - ...Jee, - ...Cee + ...ete, + ...Eee ]) ])(), ql = () => /* @__PURE__ */ new Map(), I8 = (t) => { const e = ql(); @@ -15978,20 +15978,20 @@ const PSe = /* @__PURE__ */ kt.baseTheme({ }, Lh = (t, e, r) => { let n = t.get(e); return n === void 0 && t.set(e, n = r()), n; -}, BSe = (t, e) => { +}, FSe = (t, e) => { const r = []; for (const [n, i] of t) r.push(e(i, n)); return r; -}, FSe = (t, e) => { +}, zSe = (t, e) => { for (const [r, n] of t) if (e(n, r)) return !0; return !1; -}, P0 = () => /* @__PURE__ */ new Set(), z_ = (t) => t[t.length - 1], zSe = (t, e) => { +}, P0 = () => /* @__PURE__ */ new Set(), z_ = (t) => t[t.length - 1], QSe = (t, e) => { for (let r = 0; r < e.length; r++) t.push(e[r]); -}, Qf = Array.from, QSe = (t, e) => { +}, Qf = Array.from, USe = (t, e) => { for (let r = 0; r < t.length; r++) if (e(t[r], r, t)) return !0; @@ -16021,12 +16021,12 @@ class GT { this._observers = ql(); } } -const fh = Math.floor, ck = Math.abs, XT = (t, e) => t < e ? t : e, gd = (t, e) => t > e ? t : e, USe = Math.pow, Ate = (t) => t !== 0 ? t < 0 : 1 / t < 0, iQ = 1, sQ = 2, Q_ = 4, U_ = 8, A2 = 32, eh = 64, _o = 128, HT = 31, B8 = 63, k0 = 127, VSe = 2147483647, Lte = Number.MAX_SAFE_INTEGER, qSe = Number.isInteger || ((t) => typeof t == "number" && isFinite(t) && fh(t) === t), YSe = String.fromCharCode, WSe = (t) => t.toLowerCase(), GSe = /^\s*/g, XSe = (t) => t.replace(GSe, ""), HSe = /([A-Z])/g, aQ = (t, e) => XSe(t.replace(HSe, (r) => `${e}${WSe(r)}`)), ZSe = (t) => { +const fh = Math.floor, ck = Math.abs, XT = (t, e) => t < e ? t : e, gd = (t, e) => t > e ? t : e, VSe = Math.pow, Lte = (t) => t !== 0 ? t < 0 : 1 / t < 0, iQ = 1, sQ = 2, Q_ = 4, U_ = 8, A2 = 32, eh = 64, _o = 128, HT = 31, B8 = 63, k0 = 127, qSe = 2147483647, Rte = Number.MAX_SAFE_INTEGER, YSe = Number.isInteger || ((t) => typeof t == "number" && isFinite(t) && fh(t) === t), WSe = String.fromCharCode, GSe = (t) => t.toLowerCase(), XSe = /^\s*/g, HSe = (t) => t.replace(XSe, ""), ZSe = /([A-Z])/g, aQ = (t, e) => HSe(t.replace(ZSe, (r) => `${e}${GSe(r)}`)), jSe = (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; -}, L2 = typeof TextEncoder < "u" ? new TextEncoder() : null, jSe = (t) => L2.encode(t), KSe = L2 ? jSe : ZSe; +}, L2 = typeof TextEncoder < "u" ? new TextEncoder() : null, KSe = (t) => L2.encode(t), JSe = L2 ? KSe : jSe; let $y = typeof TextDecoder > "u" ? null : new TextDecoder("utf-8", { fatal: !0, ignoreBOM: !0 }); $y && $y.decode(new Uint8Array()).length === 1 && ($y = null); class Vx { @@ -16047,7 +16047,7 @@ const Ws = () => new Vx(), _D = (t) => { e.set(i, r), r += i.length; } return e.set(new Uint8Array(t.cbuf.buffer, 0, t.cpos), r), e; -}, JSe = (t, e) => { +}, eTe = (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(gd(r, e) * 2), t.cpos = 0); }, rs = (t, e) => { @@ -16058,41 +16058,41 @@ const Ws = () => new Vx(), _D = (t) => { rs(t, _o | k0 & e), e = fh(e / 128); rs(t, k0 & e); }, AD = (t, e) => { - const r = Ate(e); + const r = Lte(e); for (r && (e = -e), rs(t, (e > B8 ? _o : 0) | (r ? eh : 0) | B8 & e), e = fh(e / 64); e > 0; ) rs(t, (e > k0 ? _o : 0) | k0 & e), e = fh(e / 128); -}, z8 = new Uint8Array(3e4), eTe = z8.length / 3, tTe = (t, e) => { - if (e.length < eTe) { +}, z8 = new Uint8Array(3e4), tTe = z8.length / 3, rTe = (t, e) => { + if (e.length < tTe) { const r = L2.encodeInto(e, z8).written || 0; rr(t, r); for (let n = 0; n < r; n++) rs(t, z8[n]); } else - ci(t, KSe(e)); -}, rTe = (t, e) => { + ci(t, JSe(e)); +}, nTe = (t, e) => { const r = unescape(encodeURIComponent(e)), n = r.length; rr(t, n); for (let i = 0; i < n; i++) rs(t, r.codePointAt(i)); -}, S0 = L2 && L2.encodeInto ? tTe : rTe, ZT = (t, e) => { +}, S0 = L2 && L2.encodeInto ? rTe : nTe, ZT = (t, e) => { const r = t.cbuf.length, n = t.cpos, i = XT(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(gd(r * 2, s)), t.cbuf.set(e.subarray(i)), t.cpos = s); }, ci = (t, e) => { rr(t, e.byteLength), ZT(t, e); }, LD = (t, e) => { - JSe(t, e); + eTe(t, e); const r = new DataView(t.cbuf.buffer, t.cpos, e); return t.cpos += e, r; -}, nTe = (t, e) => LD(t, 4).setFloat32(0, e, !1), iTe = (t, e) => LD(t, 8).setFloat64(0, e, !1), sTe = (t, e) => LD(t, 8).setBigInt64(0, e, !1), oQ = new DataView(new ArrayBuffer(4)), aTe = (t) => (oQ.setFloat32(0, t), oQ.getFloat32(0) === t), R2 = (t, e) => { +}, iTe = (t, e) => LD(t, 4).setFloat32(0, e, !1), sTe = (t, e) => LD(t, 8).setFloat64(0, e, !1), aTe = (t, e) => LD(t, 8).setBigInt64(0, e, !1), oQ = new DataView(new ArrayBuffer(4)), oTe = (t) => (oQ.setFloat32(0, t), oQ.getFloat32(0) === t), R2 = (t, e) => { switch (typeof e) { case "string": rs(t, 119), S0(t, e); break; case "number": - qSe(e) && ck(e) <= VSe ? (rs(t, 125), AD(t, e)) : aTe(e) ? (rs(t, 124), nTe(t, e)) : (rs(t, 123), iTe(t, e)); + YSe(e) && ck(e) <= qSe ? (rs(t, 125), AD(t, e)) : oTe(e) ? (rs(t, 124), iTe(t, e)) : (rs(t, 123), sTe(t, e)); break; case "bigint": - rs(t, 122), sTe(t, e); + rs(t, 122), aTe(t, e); break; case "object": if (e === null) @@ -16159,7 +16159,7 @@ class V_ { return uQ(this), Vn(this.encoder); } } -class oTe { +class lTe { constructor() { this.sarr = [], this.s = "", this.lensE = new uk(); } @@ -16175,26 +16175,26 @@ const Uf = (t) => new Error(t), Jc = () => { throw Uf("Method unimplemented"); }, ic = () => { throw Uf("Unexpected case"); -}, Rte = Uf("Unexpected end of array"), Mte = Uf("Integer out of Range"); +}, Mte = Uf("Unexpected end of array"), Dte = Uf("Integer out of Range"); class jT { constructor(e) { this.arr = e, this.pos = 0; } } -const md = (t) => new jT(t), lTe = (t) => t.pos !== t.arr.length, cTe = (t, e) => { +const md = (t) => new jT(t), cTe = (t) => t.pos !== t.arr.length, uTe = (t, e) => { const r = new Uint8Array(t.arr.buffer, t.pos + t.arr.byteOffset, e); return t.pos += e, r; -}, Ys = (t) => cTe(t, wr(t)), ym = (t) => t.arr[t.pos++], wr = (t) => { +}, Ys = (t) => uTe(t, wr(t)), ym = (t) => t.arr[t.pos++], wr = (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 & k0) * r, r *= 128, i < _o) return e; - if (e > Lte) - throw Mte; + if (e > Rte) + throw Dte; } - throw Rte; + throw Mte; }, RD = (t) => { let e = t.arr[t.pos++], r = e & B8, n = 64; const i = (e & eh) > 0 ? -1 : 1; @@ -16204,11 +16204,11 @@ const md = (t) => new jT(t), lTe = (t) => t.pos !== t.arr.length, cTe = (t, e) = for (; t.pos < s; ) { if (e = t.arr[t.pos++], r = r + (e & k0) * n, n *= 128, e < _o) return i * r; - if (r > Lte) - throw Mte; + if (r > Rte) + throw Dte; } - throw Rte; -}, uTe = (t) => { + throw Mte; +}, hTe = (t) => { let e = wr(t); if (e === 0) return ""; @@ -16224,17 +16224,17 @@ const md = (t) => new jT(t), lTe = (t) => t.pos !== t.arr.length, cTe = (t, e) = } return decodeURIComponent(escape(r)); } -}, hTe = (t) => $y.decode(Ys(t)), Sf = $y ? hTe : uTe, MD = (t, e) => { +}, fTe = (t) => $y.decode(Ys(t)), Sf = $y ? fTe : hTe, MD = (t, e) => { const r = new DataView(t.arr.buffer, t.arr.byteOffset + t.pos, e); return t.pos += e, r; -}, fTe = (t) => MD(t, 4).getFloat32(0, !1), dTe = (t) => MD(t, 8).getFloat64(0, !1), pTe = (t) => MD(t, 8).getBigInt64(0, !1), gTe = [ +}, dTe = (t) => MD(t, 4).getFloat32(0, !1), pTe = (t) => MD(t, 8).getFloat64(0, !1), gTe = (t) => MD(t, 8).getBigInt64(0, !1), mTe = [ (t) => { }, (t) => null, RD, - fTe, dTe, pTe, + gTe, (t) => !1, (t) => !0, Sf, @@ -16253,13 +16253,13 @@ const md = (t) => new jT(t), lTe = (t) => t.pos !== t.arr.length, cTe = (t, e) = return r; }, Ys -], M2 = (t) => gTe[127 - ym(t)](t); +], M2 = (t) => mTe[127 - ym(t)](t); class hQ extends jT { constructor(e, r) { super(e), this.reader = r, this.s = null, this.count = 0; } read() { - return this.count === 0 && (this.s = this.reader(this), lTe(this) ? this.count = wr(this) + 1 : this.count = -1), this.count--, this.s; + return this.count === 0 && (this.s = this.reader(this), cTe(this) ? this.count = wr(this) + 1 : this.count = -1), this.count--, this.s; } } class hk extends jT { @@ -16269,7 +16269,7 @@ class hk extends jT { read() { if (this.count === 0) { this.s = RD(this); - const e = Ate(this.s); + const e = Lte(this.s); this.count = 1, e && (this.s = -this.s, this.count = wr(this) + 2); } return this.count--, this.s; @@ -16287,7 +16287,7 @@ class q_ extends jT { return this.s += this.diff, this.count--, this.s; } } -class mTe { +class vTe { constructor(e) { this.decoder = new hk(e), this.str = Sf(this.decoder), this.spos = 0; } @@ -16296,13 +16296,13 @@ class mTe { return this.spos = e, r; } } -const vTe = crypto.getRandomValues.bind(crypto), Dte = () => vTe(new Uint32Array(1))[0], yTe = [1e7] + -1e3 + -4e3 + -8e3 + -1e11, bTe = () => yTe.replace( +const yTe = crypto.getRandomValues.bind(crypto), Pte = () => yTe(new Uint32Array(1))[0], bTe = [1e7] + -1e3 + -4e3 + -8e3 + -1e11, xTe = () => bTe.replace( /[018]/g, - (t) => (t ^ Dte() & 15 >> t / 4).toString(16) + (t) => (t ^ Pte() & 15 >> t / 4).toString(16) ), Vf = Date.now, fQ = (t) => new Promise(t); Promise.all.bind(Promise); const dQ = (t) => t === void 0 ? null : t; -class xTe { +class wTe { constructor() { this.map = /* @__PURE__ */ new Map(); } @@ -16313,38 +16313,38 @@ class xTe { return this.map.get(e); } } -let Pte = new xTe(), DD = !0; +let Nte = new wTe(), DD = !0; try { - typeof localStorage < "u" && localStorage && (Pte = localStorage, DD = !1); + typeof localStorage < "u" && localStorage && (Nte = localStorage, DD = !1); } catch { } -const Nte = Pte, wTe = (t) => DD || addEventListener("storage", t), OTe = (t) => DD || removeEventListener("storage", t), kTe = Object.assign, STe = Object.keys, TTe = (t, e) => { +const Ite = Nte, OTe = (t) => DD || addEventListener("storage", t), kTe = (t) => DD || removeEventListener("storage", t), STe = Object.assign, TTe = Object.keys, CTe = (t, e) => { for (const r in t) e(t[r], r); -}, CTe = (t, e) => { +}, ETe = (t, e) => { const r = []; for (const n in t) r.push(e(t[n], n)); return r; -}, N5 = (t) => STe(t).length, ETe = (t) => { +}, N5 = (t) => TTe(t).length, _Te = (t) => { for (const e in t) return !1; return !0; -}, _Te = (t, e) => { +}, ATe = (t, e) => { for (const r in t) if (!e(t[r], r)) return !1; return !0; -}, Ite = (t, e) => Object.prototype.hasOwnProperty.call(t, e), ATe = (t, e) => t === e || N5(t) === N5(e) && _Te(t, (r, n) => (r !== void 0 || Ite(e, n)) && e[n] === r), PD = (t, e, r = 0) => { +}, $te = (t, e) => Object.prototype.hasOwnProperty.call(t, e), LTe = (t, e) => t === e || N5(t) === N5(e) && ATe(t, (r, n) => (r !== void 0 || $te(e, n)) && e[n] === r), PD = (t, e, r = 0) => { try { for (; r < t.length; r++) t[r](...e); } finally { r < t.length && PD(t, e, r + 1); } -}, LTe = (t) => t, RTe = (t, e) => t === e, By = (t, e) => { +}, RTe = (t) => t, MTe = (t, e) => t === e, By = (t, e) => { if (t == null || e == null) - return RTe(t, e); + return MTe(t, e); if (t.constructor !== e.constructor) return !1; if (t === e) @@ -16380,7 +16380,7 @@ const Nte = Pte, wTe = (t) => DD || addEventListener("storage", t), OTe = (t) => if (N5(t) !== N5(e)) return !1; for (const r in t) - if (!Ite(t, r) || !By(t[r], e[r])) + if (!$te(t, r) || !By(t[r], e[r])) return !1; break; case Array: @@ -16394,10 +16394,10 @@ const Nte = Pte, wTe = (t) => DD || addEventListener("storage", t), OTe = (t) => return !1; } return !0; -}, MTe = (t, e) => e.includes(t), bm = typeof process < "u" && process.release && /node|io\.js/.test(process.release.name) && Object.prototype.toString.call(typeof process < "u" ? process : 0) === "[object process]", $te = typeof window < "u" && typeof document < "u" && !bm; +}, DTe = (t, e) => e.includes(t), bm = typeof process < "u" && process.release && /node|io\.js/.test(process.release.name) && Object.prototype.toString.call(typeof process < "u" ? process : 0) === "[object process]", Bte = typeof window < "u" && typeof document < "u" && !bm; typeof navigator < "u" && /Mac/.test(navigator.platform); let Sc; -const DTe = () => { +const PTe = () => { if (Sc === void 0) if (bm) { Sc = ql(); @@ -16416,40 +16416,40 @@ const DTe = () => { } })) : Sc = ql(); return Sc; -}, Q8 = (t) => DTe().has(t), U8 = (t) => dQ(bm ? {}[t.toUpperCase()] : Nte.getItem(t)), PTe = (t) => Q8("--" + t) || U8(t) !== null; -PTe("production"); -const pQ = bm && MTe({}.FORCE_COLOR, ["true", "1", "2"]), NTe = !Q8("no-colors") && (!bm || process.stdout.isTTY || pQ) && (!bm || Q8("color") || pQ || U8("COLORTERM") !== null || (U8("TERM") || "").includes("color")), Bte = (t) => new Uint8Array(t), ITe = (t, e, r) => new Uint8Array(t, e, r), $Te = (t) => new Uint8Array(t), BTe = (t) => { +}, Q8 = (t) => PTe().has(t), U8 = (t) => dQ(bm ? {}[t.toUpperCase()] : Ite.getItem(t)), NTe = (t) => Q8("--" + t) || U8(t) !== null; +NTe("production"); +const pQ = bm && DTe({}.FORCE_COLOR, ["true", "1", "2"]), ITe = !Q8("no-colors") && (!bm || process.stdout.isTTY || pQ) && (!bm || Q8("color") || pQ || U8("COLORTERM") !== null || (U8("TERM") || "").includes("color")), Fte = (t) => new Uint8Array(t), $Te = (t, e, r) => new Uint8Array(t, e, r), BTe = (t) => new Uint8Array(t), FTe = (t) => { let e = ""; for (let r = 0; r < t.byteLength; r++) - e += YSe(t[r]); + e += WSe(t[r]); return btoa(e); -}, FTe = (t) => Buffer.from(t.buffer, t.byteOffset, t.byteLength).toString("base64"), zTe = (t) => { - const e = atob(t), r = Bte(e.length); +}, zTe = (t) => Buffer.from(t.buffer, t.byteOffset, t.byteLength).toString("base64"), QTe = (t) => { + const e = atob(t), r = Fte(e.length); for (let n = 0; n < e.length; n++) r[n] = e.charCodeAt(n); return r; -}, QTe = (t) => { +}, UTe = (t) => { const e = Buffer.from(t, "base64"); - return ITe(e.buffer, e.byteOffset, e.byteLength); -}, UTe = $te ? BTe : FTe, VTe = $te ? zTe : QTe, qTe = (t) => { - const e = Bte(t.byteLength); + return $Te(e.buffer, e.byteOffset, e.byteLength); +}, VTe = Bte ? FTe : zTe, qTe = Bte ? QTe : UTe, YTe = (t) => { + const e = Fte(t.byteLength); return e.set(t), e; }; -class YTe { +class WTe { constructor(e, r) { this.left = e, this.right = r; } } -const xo = (t, e) => new YTe(t, e), WTe = (t, e) => t.forEach((r) => e(r.left, r.right)), yu = typeof document < "u" ? document : {}, GTe = (t) => yu.createElement(t), XTe = () => yu.createDocumentFragment(), HTe = (t) => yu.createTextNode(t); +const xo = (t, e) => new WTe(t, e), GTe = (t, e) => t.forEach((r) => e(r.left, r.right)), yu = typeof document < "u" ? document : {}, XTe = (t) => yu.createElement(t), HTe = () => yu.createDocumentFragment(), ZTe = (t) => yu.createTextNode(t); typeof DOMParser < "u" && new DOMParser(); -const ZTe = (t, e) => (WTe(e, (r, n) => { +const jTe = (t, e) => (GTe(e, (r, n) => { n === !1 ? t.removeAttribute(r) : n === !0 ? t.setAttribute(r, "") : t.setAttribute(r, n); -}), t), jTe = (t) => { - const e = XTe(); +}), t), KTe = (t) => { + const e = HTe(); for (let r = 0; r < t.length; r++) - Fte(e, t[r]); + zte(e, t[r]); return e; -}, KTe = (t, e) => (Fte(t, jTe(e)), t), Y_ = (t, e = [], r = []) => KTe(ZTe(GTe(t), e), r), EO = HTe, JTe = (t) => BSe(t, (e, r) => `${r}:${e};`).join(""), Fte = (t, e) => t.appendChild(e); +}, JTe = (t, e) => (zte(t, KTe(e)), t), Y_ = (t, e = [], r = []) => JTe(jTe(XTe(t), e), r), EO = ZTe, eCe = (t) => FSe(t, (e, r) => `${r}:${e};`).join(""), zte = (t, e) => t.appendChild(e); yu.ELEMENT_NODE; yu.TEXT_NODE; yu.CDATA_SECTION_NODE; @@ -16457,7 +16457,7 @@ yu.COMMENT_NODE; yu.DOCUMENT_NODE; yu.DOCUMENT_TYPE_NODE; yu.DOCUMENT_FRAGMENT_NODE; -const Rh = Symbol, zte = Rh(), Qte = Rh(), eCe = Rh(), tCe = Rh(), rCe = Rh(), Ute = Rh(), nCe = Rh(), ND = Rh(), iCe = Rh(), sCe = (t) => { +const Rh = Symbol, Qte = Rh(), Ute = Rh(), tCe = Rh(), rCe = Rh(), nCe = Rh(), Vte = Rh(), iCe = Rh(), ND = Rh(), sCe = Rh(), aCe = (t) => { const e = []; let r = 0; for (; r < t.length; r++) { @@ -16465,25 +16465,25 @@ const Rh = Symbol, zte = Rh(), Qte = Rh(), eCe = Rh(), tCe = Rh(), rCe = Rh(), U n.constructor === String || n.constructor === Number || n.constructor === Object && e.push(JSON.stringify(n)); } return e; -}, aCe = { - [zte]: xo("font-weight", "bold"), - [Qte]: xo("font-weight", "normal"), - [eCe]: xo("color", "blue"), - [rCe]: xo("color", "green"), - [tCe]: xo("color", "grey"), - [Ute]: xo("color", "red"), - [nCe]: xo("color", "purple"), +}, oCe = { + [Qte]: xo("font-weight", "bold"), + [Ute]: xo("font-weight", "normal"), + [tCe]: xo("color", "blue"), + [nCe]: xo("color", "green"), + [rCe]: xo("color", "grey"), + [Vte]: xo("color", "red"), + [iCe]: xo("color", "purple"), [ND]: xo("color", "orange"), - [iCe]: xo("color", "black") -}, oCe = (t) => { + [sCe]: xo("color", "black") +}, lCe = (t) => { const e = [], r = [], n = ql(); let i = [], s = 0; for (; s < t.length; s++) { - const a = t[s], o = aCe[a]; + const a = t[s], o = oCe[a]; if (o !== void 0) n.set(o.left, o.right); else if (a.constructor === String || a.constructor === Number) { - const l = JTe(n); + const l = eCe(n); s > 0 || l.length > 0 ? (e.push("%c" + a), r.push(l)) : e.push(a); } else break; @@ -16493,22 +16493,22 @@ const Rh = Symbol, zte = Rh(), Qte = Rh(), eCe = Rh(), tCe = Rh(), rCe = Rh(), U a instanceof Symbol || i.push(a); } return i; -}, Vte = NTe ? oCe : sCe, lCe = (...t) => { - console.log(...Vte(t)), qte.forEach((e) => e.print(t)); -}, cCe = (...t) => { - console.warn(...Vte(t)), t.unshift(ND), qte.forEach((e) => e.print(t)); -}, qte = P0(), Yte = (t) => ({ +}, qte = ITe ? lCe : aCe, cCe = (...t) => { + console.log(...qte(t)), Yte.forEach((e) => e.print(t)); +}, uCe = (...t) => { + console.warn(...qte(t)), t.unshift(ND), Yte.forEach((e) => e.print(t)); +}, Yte = P0(), Wte = (t) => ({ [Symbol.iterator]() { return this; }, next: t -}), uCe = (t, e) => Yte(() => { +}), hCe = (t, e) => Wte(() => { let r; do r = t.next(); while (!r.done && !e(r.value)); return r; -}), W_ = (t, e) => Yte(() => { +}), W_ = (t, e) => Wte(() => { const { done: r, value: n } = t.next(); return { done: r, value: r ? void 0 : e(n) }; }); @@ -16526,9 +16526,9 @@ const xm = (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]; - are(t, s, o.clock, o.len, r); + ore(t, s, o.clock, o.len, r); } -}), hCe = (t, e) => { +}), fCe = (t, e) => { let r = 0, n = t.length - 1; for (; r <= n; ) { const i = fh((r + n) / 2), s = t[i], a = s.clock; @@ -16542,7 +16542,7 @@ const xm = (t, e, r) => e.clients.forEach((n, i) => { return null; }, qx = (t, e) => { const r = t.clients.get(e.client); - return r !== void 0 && hCe(r, e.clock) !== null; + return r !== void 0 && fCe(r, e.clock) !== null; }, $D = (t) => { t.clients.forEach((e) => { e.sort((i, s) => i.clock - s.clock); @@ -16560,15 +16560,15 @@ const xm = (t, e, r) => e.clients.forEach((n, i) => { if (!e.clients.has(i)) { const s = n.slice(); for (let a = r + 1; a < t.length; a++) - zSe(s, t[a].clients.get(i) || []); + QSe(s, t[a].clients.get(i) || []); e.clients.set(i, s); } }); return $D(e), e; }, D2 = (t, e, r, n) => { Lh(t.clients, e, () => []).push(new ID(r, n)); -}, Wte = () => new S1(), fCe = (t) => { - const e = Wte(); +}, Gte = () => new S1(), dCe = (t) => { + const e = Gte(); return t.clients.forEach((r, n) => { const i = []; for (let s = 0; s < r.length; s++) { @@ -16627,10 +16627,10 @@ const xm = (t, e, r) => e.clients.forEach((n, i) => { return rr(s.restEncoder, 0), T1(s, n), s.toUint8Array(); } return null; -}, Gte = Dte; +}, Xte = Pte; class C1 extends GT { - constructor({ guid: e = bTe(), 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 = Gte(), this.guid = e, this.collectionid = r, this.share = /* @__PURE__ */ new Map(), this.store = new ire(), 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 = fQ((u) => { + constructor({ guid: e = xTe(), 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 = Xte(), this.guid = e, this.collectionid = r, this.share = /* @__PURE__ */ new Map(), this.store = new sre(), 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 = fQ((u) => { this.on("load", () => { this.isLoaded = !0, u(this); }); @@ -16717,7 +16717,7 @@ class C1 extends GT { super.off(e, r); } } -class Xte { +class Hte { constructor(e) { this.restDecoder = e; } @@ -16730,7 +16730,7 @@ class Xte { return wr(this.restDecoder); } } -class Hte extends Xte { +class Zte extends Hte { readLeftID() { return Cr(wr(this.restDecoder), wr(this.restDecoder)); } @@ -16759,7 +16759,7 @@ class Hte extends Xte { return M2(this.restDecoder); } readBuf() { - return qTe(Ys(this.restDecoder)); + return YTe(Ys(this.restDecoder)); } readJSON() { return JSON.parse(Sf(this.restDecoder)); @@ -16768,7 +16768,7 @@ class Hte extends Xte { return Sf(this.restDecoder); } } -class dCe { +class pCe { constructor(e) { this.dsCurrVal = 0, this.restDecoder = e; } @@ -16783,9 +16783,9 @@ class dCe { return this.dsCurrVal += e, e; } } -class wm extends dCe { +class wm extends pCe { constructor(e) { - super(e), this.keys = [], wr(e), this.keyClockDecoder = new q_(Ys(e)), this.clientDecoder = new hk(Ys(e)), this.leftClockDecoder = new q_(Ys(e)), this.rightClockDecoder = new q_(Ys(e)), this.infoDecoder = new hQ(Ys(e), ym), this.stringDecoder = new mTe(Ys(e)), this.parentInfoDecoder = new hQ(Ys(e), ym), this.typeRefDecoder = new hk(Ys(e)), this.lenDecoder = new hk(Ys(e)); + super(e), this.keys = [], wr(e), this.keyClockDecoder = new q_(Ys(e)), this.clientDecoder = new hk(Ys(e)), this.leftClockDecoder = new q_(Ys(e)), this.rightClockDecoder = new q_(Ys(e)), this.infoDecoder = new hQ(Ys(e), ym), this.stringDecoder = new vTe(Ys(e)), this.parentInfoDecoder = new hQ(Ys(e), ym), this.typeRefDecoder = new hk(Ys(e)), this.lenDecoder = new hk(Ys(e)); } readLeftID() { return new $g(this.clientDecoder.read(), this.leftClockDecoder.read()); @@ -16830,7 +16830,7 @@ class wm extends dCe { } } } -class Zte { +class jte { constructor() { this.restEncoder = Ws(); } @@ -16846,7 +16846,7 @@ class Zte { rr(this.restEncoder, e); } } -class Yx extends Zte { +class Yx extends jte { writeLeftID(e) { rr(this.restEncoder, e.client), rr(this.restEncoder, e.clock); } @@ -16884,7 +16884,7 @@ class Yx extends Zte { S0(this.restEncoder, e); } } -class jte { +class Kte { constructor() { this.restEncoder = Ws(), this.dsCurrVal = 0; } @@ -16902,9 +16902,9 @@ class jte { e === 0 && ic(), rr(this.restEncoder, e - 1), this.dsCurrVal += e; } } -class N0 extends jte { +class N0 extends Kte { constructor() { - super(), this.keyMap = /* @__PURE__ */ new Map(), this.keyClock = 0, this.keyClockEncoder = new V_(), this.clientEncoder = new uk(), this.leftClockEncoder = new V_(), this.rightClockEncoder = new V_(), this.infoEncoder = new lQ(F8), this.stringEncoder = new oTe(), this.parentInfoEncoder = new lQ(F8), this.typeRefEncoder = new uk(), this.lenEncoder = new uk(); + super(), this.keyMap = /* @__PURE__ */ new Map(), this.keyClock = 0, this.keyClockEncoder = new V_(), this.clientEncoder = new uk(), this.leftClockEncoder = new V_(), this.rightClockEncoder = new V_(), this.infoEncoder = new lQ(F8), this.stringEncoder = new lTe(), this.parentInfoEncoder = new lQ(F8), this.typeRefEncoder = new uk(), this.lenEncoder = new uk(); } toUint8Array() { const e = Ws(); @@ -16948,7 +16948,7 @@ class N0 extends jte { r === void 0 ? (this.keyClockEncoder.write(this.keyClock++), this.stringEncoder.write(e)) : this.keyClockEncoder.write(r); } } -const pCe = (t, e, r, n) => { +const gCe = (t, e, r, n) => { n = gd(n, e[0].id.clock); const i = ou(e, n); rr(t.restEncoder, e.length - i), t.writeClient(r), rr(t.restEncoder, n); @@ -16963,9 +16963,9 @@ const pCe = (t, e, r, n) => { }), KT(e).forEach((i, s) => { r.has(s) || n.set(s, 0); }), rr(t.restEncoder, n.size), Qf(n.entries()).sort((i, s) => s[0] - i[0]).forEach(([i, s]) => { - pCe(t, e.clients.get(i), i, s); + gCe(t, e.clients.get(i), i, s); }); -}, gCe = (t, e) => { +}, mCe = (t, e) => { const r = ql(), n = wr(t.restDecoder); for (let i = 0; i < n; i++) { const s = wr(t.restDecoder), a = new Array(s), o = t.readClient(); @@ -16993,7 +16993,7 @@ const pCe = (t, e, r, n) => { (h & eh) === eh ? t.readRightID() : null, f ? t.readParentInfo() ? e.get(t.readString()) : t.readLeftID() : null, f && (h & A2) === A2 ? t.readString() : null, - Cre(t, h) + Ere(t, h) ); a[u] = d, l += d.length; } @@ -17001,7 +17001,7 @@ const pCe = (t, e, r, n) => { } } return r; -}, mCe = (t, e, r) => { +}, vCe = (t, e, r) => { const n = []; let i = Qf(r.keys()).sort((p, g) => p - g); if (i.length === 0) @@ -17020,7 +17020,7 @@ const pCe = (t, e, r, n) => { let a = s(); if (a === null) return null; - const o = new ire(), l = /* @__PURE__ */ new Map(), u = (p, g) => { + const o = new sre(), l = /* @__PURE__ */ new Map(), u = (p, g) => { const m = l.get(p); (m == null || m > g) && l.set(p, g); }; @@ -17067,10 +17067,10 @@ const pCe = (t, e, r, n) => { return FD(p, o, /* @__PURE__ */ new Map()), rr(p.restEncoder, 0), { missing: l, update: p.toUint8Array() }; } return null; -}, vCe = (t, e) => FD(t, e.doc.store, e.beforeState), yCe = (t, e, r, n = new wm(t)) => gn(e, (i) => { +}, yCe = (t, e) => FD(t, e.doc.store, e.beforeState), bCe = (t, e, r, n = new wm(t)) => gn(e, (i) => { i.local = !1; let s = !1; - const a = i.doc, o = a.store, l = gCe(n, a), u = mCe(i, o, l), h = o.pendingStructs; + const a = i.doc, o = a.store, l = mCe(n, a), u = vCe(i, o, l), h = o.pendingStructs; if (h) { for (const [d, p] of h.missing) if (p < gi(o, d)) { @@ -17096,49 +17096,49 @@ const pCe = (t, e, r, n) => { o.pendingDs = f; if (s) { const d = o.pendingStructs.update; - o.pendingStructs = null, Kte(i.doc, d); + o.pendingStructs = null, Jte(i.doc, d); } -}, r, !1), Kte = (t, e, r, n = wm) => { +}, r, !1), Jte = (t, e, r, n = wm) => { const i = md(e); - yCe(i, t, r, new n(i)); -}, bCe = (t, e, r) => Kte(t, e, r, Hte), xCe = (t, e, r = /* @__PURE__ */ new Map()) => { - FD(t, e.store, r), T1(t, fCe(e.store)); -}, wCe = (t, e = new Uint8Array([0]), r = new N0()) => { - const n = Jte(e); - xCe(r, t, n); + bCe(i, t, r, new n(i)); +}, xCe = (t, e, r) => Jte(t, e, r, Zte), wCe = (t, e, r = /* @__PURE__ */ new Map()) => { + FD(t, e.store, r), T1(t, dCe(e.store)); +}, OCe = (t, e = new Uint8Array([0]), r = new N0()) => { + const n = ere(e); + wCe(r, t, n); const i = [r.toUint8Array()]; - if (t.store.pendingDs && i.push(t.store.pendingDs), t.store.pendingStructs && i.push(QCe(t.store.pendingStructs.update, e)), i.length > 1) { + if (t.store.pendingDs && i.push(t.store.pendingDs), t.store.pendingStructs && i.push(UCe(t.store.pendingStructs.update, e)), i.length > 1) { if (r.constructor === Yx) - return FCe(i.map((s, a) => a === 0 ? s : VCe(s))); + return zCe(i.map((s, a) => a === 0 ? s : qCe(s))); if (r.constructor === N0) return $5(i); } return i[0]; -}, OCe = (t, e) => wCe(t, e, new Yx()), kCe = (t) => { +}, kCe = (t, e) => OCe(t, e, new Yx()), SCe = (t) => { const e = /* @__PURE__ */ new Map(), r = wr(t.restDecoder); for (let n = 0; n < r; n++) { const i = wr(t.restDecoder), s = wr(t.restDecoder); e.set(i, s); } return e; -}, Jte = (t) => kCe(new Xte(md(t))), ere = (t, e) => (rr(t.restEncoder, e.size), Qf(e.entries()).sort((r, n) => n[0] - r[0]).forEach(([r, n]) => { +}, ere = (t) => SCe(new Hte(md(t))), tre = (t, e) => (rr(t.restEncoder, e.size), Qf(e.entries()).sort((r, n) => n[0] - r[0]).forEach(([r, n]) => { rr(t.restEncoder, r), rr(t.restEncoder, n); -}), t), SCe = (t, e) => ere(t, KT(e.store)), TCe = (t, e = new jte()) => (t instanceof Map ? ere(e, t) : SCe(e, t), e.toUint8Array()), CCe = (t) => TCe(t, new Zte()); -class ECe { +}), t), TCe = (t, e) => tre(t, KT(e.store)), CCe = (t, e = new Kte()) => (t instanceof Map ? tre(e, t) : TCe(e, t), e.toUint8Array()), ECe = (t) => CCe(t, new jte()); +class _Ce { constructor() { this.l = []; } } -const mQ = () => new ECe(), vQ = (t, e) => t.l.push(e), yQ = (t, e) => { +const mQ = () => new _Ce(), vQ = (t, e) => t.l.push(e), yQ = (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."); -}, tre = (t, e, r) => PD(t.l, [e, r]); +}, rre = (t, e, r) => PD(t.l, [e, r]); class $g { constructor(e, r) { this.client = e, this.clock = r; } } -const yg = (t, e) => t === e || t !== null && e !== null && t.client === e.client && t.clock === e.clock, Cr = (t, e) => new $g(t, e), rre = (t) => { +const yg = (t, e) => t === e || t !== null && e !== null && t.client === e.client && t.clock === e.clock, Cr = (t, e) => new $g(t, e), nre = (t) => { for (const [e, r] of t.doc.share.entries()) if (r === t) return e; @@ -17151,7 +17151,7 @@ const yg = (t, e) => t === e || t !== null && e !== null && t.client === e.clien } return !1; }; -class nre { +class ire { constructor(e, r, n, i = 0) { this.type = e, this.tname = r, this.item = n, this.assoc = i; } @@ -17159,15 +17159,15 @@ class nre { const bQ = (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; -}, P2 = (t) => new nre(t.type == null ? null : Cr(t.type.client, t.type.clock), t.tname || null, t.item == null ? null : Cr(t.item.client, t.item.clock), t.assoc == null ? 0 : t.assoc); -class _Ce { +}, P2 = (t) => new ire(t.type == null ? null : Cr(t.type.client, t.type.clock), t.tname || null, t.item == null ? null : Cr(t.item.client, t.item.clock), t.assoc == null ? 0 : t.assoc); +class ACe { constructor(e, r, n = 0) { this.type = e, this.index = r, this.assoc = n; } } -const ACe = (t, e, r = 0) => new _Ce(t, e, r), _O = (t, e, r) => { +const LCe = (t, e, r = 0) => new ACe(t, e, r), _O = (t, e, r) => { let n = null, i = null; - return t._item === null ? i = rre(t) : n = Cr(t._item.id.client, t._item.id.clock), new nre(n, i, e, r); + return t._item === null ? i = nre(t) : n = Cr(t._item.id.client, t._item.id.clock), new ire(n, i, e, r); }, q8 = (t, e, r = 0) => { let n = t._start; if (r < 0) { @@ -17216,15 +17216,15 @@ const ACe = (t, e, r = 0) => new _Ce(t, e, r), _O = (t, e, r) => { throw ic(); a >= 0 ? l = o._length : l = 0; } - return ACe(o, l, t.assoc); + return LCe(o, l, t.assoc); }, xQ = (t, e) => t === e || t !== null && e !== null && t.tname === e.tname && yg(t.item, e.item) && yg(t.type, e.type) && t.assoc === e.assoc; -class LCe { +class RCe { constructor(e, r) { this.ds = e, this.sv = r; } } -const RCe = (t, e) => new LCe(t, e); -RCe(Wte(), /* @__PURE__ */ new Map()); +const MCe = (t, e) => new RCe(t, e); +MCe(Gte(), /* @__PURE__ */ new Map()); const lg = (t, e) => e === void 0 ? !t.deleted : e.sv.has(t.id.client) && (e.sv.get(t.id.client) || 0) > t.id.clock && !qx(e.ds, t.id), W8 = (t, e) => { const r = Lh(t.meta, W8, P0), n = t.doc.store; r.has(e) || (e.sv.forEach((i, s) => { @@ -17232,7 +17232,7 @@ const lg = (t, e) => e === void 0 ? !t.deleted : e.sv.has(t.id.client) && (e.sv. }), xm(t, e.ds, (i) => { }), r.add(e)); }; -class ire { +class sre { constructor() { this.clients = /* @__PURE__ */ new Map(), this.pendingStructs = null, this.pendingDs = null; } @@ -17249,7 +17249,7 @@ const KT = (t) => { return 0; const n = r[r.length - 1]; return n.id.clock + n.length; -}, sre = (t, e) => { +}, are = (t, e) => { let r = t.clients.get(e.id.client); if (r === void 0) r = [], t.clients.set(e.id.client, r); @@ -17274,10 +17274,10 @@ const KT = (t) => { a = fh((r + n) / 2); } throw ic(); -}, MCe = (t, e) => { +}, DCe = (t, e) => { const r = t.clients.get(e.client); return r[ou(r, e.clock)]; -}, fk = MCe, G8 = (t, e, r) => { +}, fk = DCe, G8 = (t, e, r) => { const n = ou(e, r), i = e[n]; return i.id.clock < r && i instanceof mn ? (e.splice(n + 1, 0, V5(t, i, r - i.id.clock)), n + 1) : n; }, Ha = (t, e) => { @@ -17286,10 +17286,10 @@ const KT = (t) => { }, wQ = (t, e, r) => { const n = e.clients.get(r.client), i = ou(n, r.clock), s = n[i]; return r.clock !== s.id.clock + s.length - 1 && s.constructor !== Zo && n.splice(i + 1, 0, V5(t, s, r.clock - s.id.clock + 1)), s; -}, DCe = (t, e, r) => { +}, PCe = (t, e, r) => { const n = t.clients.get(e.id.client); n[ou(n, e.id.clock)] = r; -}, are = (t, e, r, n, i) => { +}, ore = (t, e, r, n, i) => { if (n === 0) return; const s = r + n; @@ -17298,12 +17298,12 @@ const KT = (t) => { o = e[a++], s < o.id.clock + o.length && G8(t, e, s), i(o); while (a < e.length && e[a].id.clock < s); }; -class PCe { +class NCe { constructor(e, r, n) { this.doc = e, this.deleteSet = new S1(), this.beforeState = KT(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 OQ = (t, e) => e.deleteSet.clients.size === 0 && !FSe(e.afterState, (r, n) => e.beforeState.get(n) !== r) ? !1 : ($D(e.deleteSet), vCe(t, e), T1(t, e.deleteSet), !0), kQ = (t, e, r) => { +const OQ = (t, e) => e.deleteSet.clients.size === 0 && !zSe(e.afterState, (r, n) => e.beforeState.get(n) !== r) ? !1 : ($D(e.deleteSet), yCe(t, e), T1(t, e.deleteSet), !0), kQ = (t, e, r) => { const n = e._item; (n === null || n.id.clock < (t.beforeState.get(n.id.client) || 0) && !n.deleted) && Lh(t.changed, e, P0).add(r); }, dk = (t, e) => { @@ -17317,7 +17317,7 @@ const OQ = (t, e) => e.deleteSet.clients.size === 0 && !FSe(e.afterState, (r, n) } const s = e - i; return s && t.splice(e + 1 - s, s), s; -}, NCe = (t, e, r) => { +}, ICe = (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--) { @@ -17330,7 +17330,7 @@ const OQ = (t, e) => e.deleteSet.clients.size === 0 && !FSe(e.afterState, (r, n) } } } -}, ICe = (t, e) => { +}, $Ce = (t, e) => { t.clients.forEach((r, n) => { const i = e.clients.get(n); for (let s = r.length - 1; s >= 0; s--) { @@ -17339,7 +17339,7 @@ const OQ = (t, e) => e.deleteSet.clients.size === 0 && !FSe(e.afterState, (r, n) l -= 1 + dk(i, l); } }); -}, ore = (t, e) => { +}, lre = (t, e) => { if (e < t.length) { const r = t[e], n = r.doc, i = n.store, s = r.deleteSet, a = r._mergeStructs; try { @@ -17355,11 +17355,11 @@ const OQ = (t, e) => e.deleteSet.clients.size === 0 && !FSe(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), tre(u._dEH, l, r)); + }), l.sort((h, f) => h.path.length - f.path.length), rre(u._dEH, l, r)); }); - }), o.push(() => n.emit("afterTransaction", [r, n])), PD(o, []), r._needFormattingCleanup && nEe(r); + }), o.push(() => n.emit("afterTransaction", [r, n])), PD(o, []), r._needFormattingCleanup && iEe(r); } finally { - n.gc && NCe(s, i, n.gcFilter), ICe(s, i), r.afterState.forEach((h, f) => { + n.gc && ICe(s, i, n.gcFilter), $Ce(s, i), r.afterState.forEach((h, f) => { const d = r.beforeState.get(f) || 0; if (d !== h) { const p = i.clients.get(f), g = gd(ou(p, d), 1); @@ -17371,7 +17371,7 @@ const OQ = (t, e) => e.deleteSet.clients.size === 0 && !FSe(e.afterState, (r, n) const { client: f, clock: d } = a[h].id, p = i.clients.get(f), g = ou(p, d); g + 1 < p.length && dk(p, g + 1) > 1 || g > 0 && dk(p, g); } - if (!r.local && r.afterState.get(n.clientID) !== r.beforeState.get(n.clientID) && (lCe(ND, zte, "[yjs] ", Qte, Ute, "Changed the client-id because another client seems to be using it."), n.clientID = Gte()), n.emit("afterTransactionCleanup", [r, n]), n._observers.has("update")) { + if (!r.local && r.afterState.get(n.clientID) !== r.beforeState.get(n.clientID) && (cCe(ND, Qte, "[yjs] ", Ute, Vte, "Changed the client-id because another client seems to be using it."), n.clientID = Xte()), n.emit("afterTransactionCleanup", [r, n]), n._observers.has("update")) { const h = new Yx(); OQ(h, r) && n.emit("update", [h.toUint8Array(), r.origin, n, r]); } @@ -17382,24 +17382,24 @@ const OQ = (t, e) => e.deleteSet.clients.size === 0 && !FSe(e.afterState, (r, n) 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])) : ore(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])) : lre(t, e + 1); } } }, gn = (t, e, r = null, n = !0) => { const i = t._transactionCleanups; let s = !1, a = null; - t._transaction === null && (s = !0, t._transaction = new PCe(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 NCe(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 && ore(i, 0); + t._transaction = null, o && lre(i, 0); } } return a; }; -class $Ce { +class BCe { constructor(e, r) { this.insertions = r, this.deletions = e, this.meta = /* @__PURE__ */ new Map(); } @@ -17426,7 +17426,7 @@ const SQ = (t, e, r) => { }), xm(o, u.deletions, (p) => { p instanceof mn && a.some((g) => I5(g, p)) && !qx(u.insertions, p.id) && h.add(p); }), h.forEach((p) => { - d = Tre(o, p, h, u.insertions, t.ignoreRemoteMapChanges, t) !== null || d; + d = Cre(o, p, h, u.insertions, t.ignoreRemoteMapChanges, t) !== null || d; }); for (let p = f.length - 1; p >= 0; p--) { const g = f[p]; @@ -17468,7 +17468,7 @@ class zD extends GT { const v = f[f.length - 1]; v.deletions = V8([v.deletions, l.deleteSet]), v.insertions = V8([v.insertions, d]); } else - f.push(new $Ce(l.deleteSet, d)), g = !0; + f.push(new BCe(l.deleteSet, d)), g = !0; !u && !h && (this.lastChange = p), xm(l, l.deleteSet, (v) => { v instanceof mn && this.scope.some((y) => I5(y, v)) && XD(v, !0); }); @@ -17480,7 +17480,7 @@ class zD extends GT { } addToScope(e) { e = $8(e) ? e : [e], e.forEach((r) => { - this.scope.every((n) => n !== r) && (r.doc !== this.doc && cCe("[yjs#509] Not same Y.Doc"), this.scope.push(r)); + this.scope.every((n) => n !== r) && (r.doc !== this.doc && uCe("[yjs#509] Not same Y.Doc"), this.scope.push(r)); }); } addTrackedOrigin(e) { @@ -17527,7 +17527,7 @@ class zD extends GT { this.trackedOrigins.delete(this), this.doc.off("afterTransaction", this.afterTransactionHandler), super.destroy(); } } -function* BCe(t) { +function* FCe(t) { const e = wr(t.restDecoder); for (let r = 0; r < e; r++) { const n = wr(t.restDecoder), i = t.readClient(); @@ -17546,7 +17546,7 @@ function* BCe(t) { (o & eh) === eh ? t.readRightID() : null, l ? t.readParentInfo() ? t.readString() : t.readLeftID() : null, l && (o & A2) === A2 ? t.readString() : null, - Cre(t, o) + Ere(t, o) ); yield u, s += u.length; } else { @@ -17558,7 +17558,7 @@ function* BCe(t) { } class QD { constructor(e, r) { - this.gen = BCe(e), this.curr = null, this.done = !1, this.filterSkips = r, this.next(); + this.gen = FCe(e), this.curr = null, this.done = !1, this.filterSkips = r, this.next(); } next() { do @@ -17572,7 +17572,7 @@ class UD { this.currClient = 0, this.startClock = 0, this.written = 0, this.encoder = e, this.clientStructs = []; } } -const FCe = (t) => $5(t, Hte, Yx), zCe = (t, e) => { +const zCe = (t) => $5(t, Zte, Yx), QCe = (t, e) => { if (t.constructor === Zo) { const { client: r, clock: n } = t.id; return new Zo(Cr(r, n + e), t.length - e); @@ -17626,7 +17626,7 @@ const FCe = (t) => $5(t, Hte, Yx), zCe = (t, e) => { } else { const g = s.struct.id.clock + s.struct.length - d.id.clock; - g > 0 && (s.struct.constructor === jo ? s.struct.length -= g : d = zCe(d, g)), s.struct.mergeWith(d) || (rf(o, s.struct, s.offset), s = { struct: d, offset: 0 }, h.next()); + g > 0 && (s.struct.constructor === jo ? s.struct.length -= g : d = QCe(d, g)), s.struct.mergeWith(d) || (rf(o, s.struct, s.offset), s = { struct: d, offset: 0 }, h.next()); } } else s = { struct: h.curr, offset: 0 }, h.next(); @@ -17636,8 +17636,8 @@ const FCe = (t) => $5(t, Hte, Yx), zCe = (t, e) => { s !== null && (rf(o, s.struct, s.offset), s = null), VD(o); const l = n.map((h) => BD(h)), u = V8(l); return T1(a, u), a.toUint8Array(); -}, QCe = (t, e, r = wm, n = N0) => { - const i = Jte(e), s = new n(), a = new UD(s), o = new r(md(t)), l = new QD(o, !1); +}, UCe = (t, e, r = wm, n = N0) => { + const i = ere(e), s = new n(), a = new UD(s), o = new r(md(t)), l = new QD(o, !1); for (; l.curr; ) { const h = l.curr, f = h.id.client, d = i.get(f) || 0; if (l.curr.constructor === jo) { @@ -17654,32 +17654,32 @@ const FCe = (t) => $5(t, Hte, Yx), zCe = (t, e) => { VD(a); const u = BD(o); return T1(s, u), s.toUint8Array(); -}, lre = (t) => { +}, cre = (t) => { t.written > 0 && (t.clientStructs.push({ written: t.written, restEncoder: Vn(t.encoder.restEncoder) }), t.encoder.restEncoder = Ws(), t.written = 0); }, rf = (t, e, r) => { - t.written > 0 && t.currClient !== e.id.client && lre(t), t.written === 0 && (t.currClient = e.id.client, t.encoder.writeClient(e.id.client), rr(t.encoder.restEncoder, e.id.clock + r)), e.write(t.encoder, r), t.written++; + t.written > 0 && t.currClient !== e.id.client && cre(t), t.written === 0 && (t.currClient = e.id.client, t.encoder.writeClient(e.id.client), rr(t.encoder.restEncoder, e.id.clock + r)), e.write(t.encoder, r), t.written++; }, VD = (t) => { - lre(t); + cre(t); const e = t.encoder.restEncoder; rr(e, t.clientStructs.length); for (let r = 0; r < t.clientStructs.length; r++) { const n = t.clientStructs[r]; rr(e, n.written), ZT(e, n.restEncoder); } -}, UCe = (t, e, r, n) => { +}, VCe = (t, e, r, n) => { const i = new r(md(t)), s = new QD(i, !1), a = new n(), o = new UD(a); for (let u = s.curr; u !== null; u = s.next()) rf(o, e(u), 0); VD(o); const l = BD(i); return T1(a, l), a.toUint8Array(); -}, VCe = (t) => UCe(t, LTe, wm, Yx), CQ = "You must not compute changes after the event-handler fired."; +}, qCe = (t) => VCe(t, RTe, wm, Yx), CQ = "You must not compute changes after the event-handler fired."; class JT { 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 = qCe(this.currentTarget, this.target)); + return this._path || (this._path = YCe(this.currentTarget, this.target)); } deletes(e) { return qx(this.transaction.deleteSet, e.id); @@ -17745,7 +17745,7 @@ class JT { return e; } } -const qCe = (t, e) => { +const YCe = (t, e) => { const r = []; for (; e._item !== null && e !== t; ) { if (e._item.parentSub !== null) @@ -17759,23 +17759,23 @@ const qCe = (t, e) => { e = e._item.parent; } return r; -}, cre = 80; +}, ure = 80; let qD = 0; -class YCe { +class WCe { constructor(e, r) { e.marker = !0, this.p = e, this.index = r, this.timestamp = qD++; } } -const WCe = (t) => { +const GCe = (t) => { t.timestamp = qD++; -}, ure = (t, e, r) => { +}, hre = (t, e, r) => { t.p.marker = !1, t.p = e, e.marker = !0, t.index = r, t.timestamp = qD++; -}, GCe = (t, e, r) => { - if (t.length >= cre) { +}, XCe = (t, e, r) => { + if (t.length >= ure) { const n = t.reduce((i, s) => i.timestamp < s.timestamp ? i : s); - return ure(n, e, r), n; + return hre(n, e, r), n; } else { - const n = new YCe(e, r); + const n = new WCe(e, r); return t.push(n), n; } }, eC = (t, e) => { @@ -17783,7 +17783,7 @@ const WCe = (t) => { return null; const r = t._searchMarker.length === 0 ? null : t._searchMarker.reduce((s, a) => ck(e - s.index) < ck(e - a.index) ? s : a); let n = t._start, i = 0; - for (r !== null && (n = r.p, i = r.index, WCe(r)); n.right !== null && i < e; ) { + for (r !== null && (n = r.p, i = r.index, GCe(r)); n.right !== null && i < e; ) { if (!n.deleted && n.countable) { if (e < i + n.length) break; @@ -17795,7 +17795,7 @@ const WCe = (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 && ck(r.index - i) < n.parent.length / cre ? (ure(r, n, i), r) : GCe(t._searchMarker, n, i); + return r !== null && ck(r.index - i) < n.parent.length / ure ? (hre(r, n, i), r) : XCe(t._searchMarker, n, i); }, N2 = (t, e, r) => { for (let n = t.length - 1; n >= 0; n--) { const i = t[n]; @@ -17815,7 +17815,7 @@ const WCe = (t) => { const n = t, i = e.changedParentTypes; for (; Lh(i, t, () => []).push(r), t._item !== null; ) t = t._item.parent; - tre(n._eH, r, e); + rre(n._eH, r, e); }; class Cs { constructor() { @@ -17859,7 +17859,7 @@ class Cs { toJSON() { } } -const hre = (t, e, r) => { +const fre = (t, e, r) => { e < 0 && (e = t._length + e), r < 0 && (r = t._length + r); let n = r - e; const i = []; @@ -17878,7 +17878,7 @@ const hre = (t, e, r) => { s = s.right; } return i; -}, fre = (t) => { +}, dre = (t) => { const e = []; let r = t._start; for (; r !== null; ) { @@ -17900,12 +17900,12 @@ const hre = (t, e, r) => { } n = n.right; } -}, dre = (t, e) => { +}, pre = (t, e) => { const r = []; return I2(t, (n, i) => { r.push(e(n, i, t)); }), r; -}, XCe = (t) => { +}, HCe = (t) => { let e = t._start, r = null, n = 0; return { [Symbol.iterator]() { @@ -17929,7 +17929,7 @@ const hre = (t, e, r) => { }; } }; -}, pre = (t, e) => { +}, gre = (t, e) => { const r = eC(t, e); let n = t._start; for (r !== null && (n = r.p, e -= r.index); n !== null; n = n.right) @@ -17974,9 +17974,9 @@ const hre = (t, e, r) => { } } }), h(); -}, gre = () => Uf("Length exceeded!"), mre = (t, e, r, n) => { +}, mre = () => Uf("Length exceeded!"), vre = (t, e, r, n) => { if (r > e._length) - throw gre(); + throw mre(); if (r === 0) return e._searchMarker && N2(e._searchMarker, r, n.length), B5(t, e, null, n); const i = r, s = eC(e, r); @@ -17990,13 +17990,13 @@ const hre = (t, e, r) => { r -= a.length; } return e._searchMarker && N2(e._searchMarker, i, n.length), B5(t, e, a, n); -}, HCe = (t, e, r) => { +}, ZCe = (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 B5(t, e, i, r); -}, vre = (t, e, r, n) => { +}, yre = (t, e, r, n) => { if (n === 0) return; const i = r, s = n, a = eC(e, r); @@ -18006,7 +18006,7 @@ const hre = (t, e, r) => { for (; n > 0 && o !== null; ) o.deleted || (n < o.length && Ha(t, Cr(o.id.client, o.id.clock + n)), o.delete(t), n -= o.length), o = o.right; if (n > 0) - throw gre(); + throw mre(); e._searchMarker && N2(e._searchMarker, i, -s + n); }, F5 = (t, e, r) => { const n = e._map.get(r); @@ -18041,15 +18041,15 @@ const hre = (t, e, r) => { }, WD = (t, e) => { const r = t._map.get(e); return r !== void 0 && !r.deleted ? r.content.getContent()[r.length - 1] : void 0; -}, yre = (t) => { +}, bre = (t) => { const e = {}; return t._map.forEach((r, n) => { r.deleted || (e[n] = r.content.getContent()[r.length - 1]); }), e; -}, bre = (t, e) => { +}, xre = (t, e) => { const r = t._map.get(e); return r !== void 0 && !r.deleted; -}, ZCe = (t, e) => { +}, jCe = (t, e) => { const r = {}; return t._map.forEach((n, i) => { let s = n; @@ -18057,8 +18057,8 @@ const hre = (t, e, r) => { s = s.left; s !== null && lg(s, e) && (r[i] = s.content.getContent()[s.length - 1]); }), r; -}, AO = (t) => uCe(t.entries(), (e) => !e[1].deleted); -class jCe extends JT { +}, AO = (t) => hCe(t.entries(), (e) => !e[1].deleted); +class KCe extends JT { constructor(e, r) { super(e, r), this._transaction = r; } @@ -18087,16 +18087,16 @@ class Bg extends Cs { return this._prelimContent === null ? this._length : this._prelimContent.length; } _callObserver(e, r) { - super._callObserver(e, r), tC(this, e, new jCe(this, e)); + super._callObserver(e, r), tC(this, e, new KCe(this, e)); } insert(e, r) { this.doc !== null ? gn(this.doc, (n) => { - mre(n, this, e, r); + vre(n, this, e, r); }) : this._prelimContent.splice(e, 0, ...r); } push(e) { this.doc !== null ? gn(this.doc, (r) => { - HCe(r, this, e); + ZCe(r, this, e); }) : this._prelimContent.push(...e); } unshift(e) { @@ -18104,36 +18104,36 @@ class Bg extends Cs { } delete(e, r = 1) { this.doc !== null ? gn(this.doc, (n) => { - vre(n, this, e, r); + yre(n, this, e, r); }) : this._prelimContent.splice(e, r); } get(e) { - return pre(this, e); + return gre(this, e); } toArray() { - return fre(this); + return dre(this); } slice(e = 0, r = this.length) { - return hre(this, e, r); + return fre(this, e, r); } toJSON() { return this.map((e) => e instanceof Cs ? e.toJSON() : e); } map(e) { - return dre(this, e); + return pre(this, e); } forEach(e) { I2(this, e); } [Symbol.iterator]() { - return XCe(this); + return HCe(this); } _write(e) { - e.writeTypeRef(wEe); + e.writeTypeRef(OEe); } } -const KCe = (t) => new Bg(); -class JCe extends JT { +const JCe = (t) => new Bg(); +class eEe extends JT { constructor(e, r, n) { super(e, r), this.keysChanged = n; } @@ -18157,7 +18157,7 @@ class eu extends Cs { }), e; } _callObserver(e, r) { - tC(this, e, new JCe(this, e, r)); + tC(this, e, new eEe(this, e, r)); } toJSON() { const e = {}; @@ -18202,7 +18202,7 @@ class eu extends Cs { return WD(this, e); } has(e) { - return bre(this, e); + return xre(this, e); } clear() { this.doc !== null ? gn(this.doc, (e) => { @@ -18212,10 +18212,10 @@ class eu extends Cs { }) : this._prelimContent.clear(); } _write(e) { - e.writeTypeRef(OEe); + e.writeTypeRef(kEe); } } -const eEe = (t) => new eu(), ff = (t, e) => t === e || typeof t == "object" && typeof e == "object" && t && e && ATe(t, e); +const tEe = (t) => new eu(), ff = (t, e) => t === e || typeof t == "object" && typeof e == "object" && t && e && LTe(t, e); class X8 { constructor(e, r, n, i) { this.left = e, this.right = r, this.index = n, this.currentAttributes = i; @@ -18254,7 +18254,7 @@ const EQ = (t, e, r) => { const s = new X8(null, e._start, 0, n); return EQ(t, s, r); } -}, xre = (t, e, r, n) => { +}, wre = (t, e, r, n) => { for (; r.right !== null && (r.right.deleted === !0 || r.right.content.constructor === Gi && ff(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; @@ -18265,13 +18265,13 @@ const EQ = (t, e, r) => { }, E1 = (t, e) => { const { key: r, value: n } = e; n === null ? t.delete(r) : t.set(r, n); -}, wre = (t, e) => { +}, Ore = (t, e) => { for (; t.right !== null; ) { if (!(t.right.deleted || t.right.content.constructor === Gi && ff(e[t.right.content.key] || null, t.right.content.value))) break; t.forward(); } -}, Ore = (t, e, r, n) => { +}, kre = (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; @@ -18287,14 +18287,14 @@ const EQ = (t, e, r) => { i[p] === void 0 && (i[p] = null); }); const s = t.doc, a = s.clientID; - wre(r, i); - const o = Ore(t, e, r, i), l = n.constructor === String ? new lu(n) : n instanceof Cs ? new bu(n) : new bp(n); + Ore(r, i); + const o = kre(t, e, r, i), l = n.constructor === String ? new lu(n) : n instanceof Cs ? new bu(n) : new bp(n); let { left: u, right: h, index: f } = r; - e._searchMarker && N2(e._searchMarker, r.index, l.getLength()), h = new mn(Cr(a, gi(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(), xre(t, e, r, o); + e._searchMarker && N2(e._searchMarker, r.index, l.getLength()), h = new mn(Cr(a, gi(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(), wre(t, e, r, o); }, _Q = (t, e, r, n, i) => { const s = t.doc, a = s.clientID; - wre(r, i); - const o = Ore(t, e, r, i); + Ore(r, i); + const o = kre(t, e, r, i); e: for (; r.right !== null && (n > 0 || o.size > 0 && (r.right.deleted || r.right.content.constructor === Gi)); ) { if (!r.right.deleted) @@ -18327,8 +18327,8 @@ const EQ = (t, e, r) => { `; r.right = new mn(Cr(a, gi(s.store, a)), r.left, r.left && r.left.lastId, r.right, r.right && r.right.id, e, null, new lu(l)), r.right.integrate(t, 0), r.forward(); } - xre(t, e, r, o); -}, kre = (t, e, r, n, i) => { + wre(t, e, r, o); +}, Sre = (t, e, r, n, i) => { let s = e; const a = ql(); for (; s && (!s.countable || s.deleted); ) { @@ -18353,7 +18353,7 @@ const EQ = (t, e, r) => { e = e.right; } return o; -}, tEe = (t, e) => { +}, rEe = (t, e) => { for (; e && e.right && (e.right.deleted || !e.right.countable); ) e = e.right; const r = /* @__PURE__ */ new Set(); @@ -18364,7 +18364,7 @@ const EQ = (t, e, r) => { } e = e.left; } -}, rEe = (t) => { +}, nEe = (t) => { let e = 0; return gn(t.doc, (r) => { let n = t._start, i = t._start, s = ql(); @@ -18376,17 +18376,17 @@ const EQ = (t, e, r) => { E1(a, i.content); break; default: - e += kre(r, n, i, s, a), s = I8(a), n = i; + e += Sre(r, n, i, s, a), s = I8(a), n = i; break; } i = i.right; } }), e; -}, nEe = (t) => { +}, iEe = (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 && are(t, r.store.clients.get(n), s, i, (a) => { + i !== s && ore(t, r.store.clients.get(n), s, i, (a) => { !a.deleted && a.content.constructor === Gi && a.constructor !== Zo && e.add(a.parent); }); } @@ -18395,10 +18395,10 @@ const EQ = (t, e, r) => { if (i instanceof Zo || !i.parent._hasFormatting || e.has(i.parent)) return; const s = i.parent; - i.content.constructor === Gi ? e.add(s) : tEe(n, i); + i.content.constructor === Gi ? e.add(s) : rEe(n, i); }); for (const i of e) - rEe(i); + nEe(i); }); }, AQ = (t, e, r) => { const n = r, i = I8(e.currentAttributes), s = e.right; @@ -18413,11 +18413,11 @@ const EQ = (t, e, r) => { } e.forward(); } - s && kre(t, s, e.right, i, e.currentAttributes); + s && Sre(t, s, e.right, i, e.currentAttributes); const a = (e.left || e.right).parent; return a._searchMarker && N2(a._searchMarker, e.index, -n + r), e; }; -class iEe extends JT { +class sEe extends JT { 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); @@ -18456,7 +18456,7 @@ class iEe extends JT { }))), u = ""; break; case "retain": - h > 0 && (p = { retain: h }, ETe(l) || (p.attributes = kTe({}, l))), h = 0; + h > 0 && (p = { retain: h }, _Te(l) || (p.attributes = STe({}, l))), h = 0; break; } p && r.push(p), o = null; @@ -18530,7 +18530,7 @@ class Om extends Cs { } _callObserver(e, r) { super._callObserver(e, r); - const n = new iEe(this, e, r); + const n = new sEe(this, e, r); tC(this, e, n), !e.local && this._hasFormatting && (e._needFormattingCleanup = !0); } toString() { @@ -18655,13 +18655,13 @@ class Om extends Cs { return WD(this, e); } getAttributes() { - return yre(this); + return bre(this); } _write(e) { - e.writeTypeRef(kEe); + e.writeTypeRef(SEe); } } -const sEe = (t) => new Om(); +const aEe = (t) => new Om(); class X_ { constructor(e, r = () => !0) { this._filter = r, this._root = e, this._currentNode = e._start, this._firstCall = !0; @@ -18719,10 +18719,10 @@ class I0 extends Cs { return e = e.toUpperCase(), Qf(new X_(this, (r) => r.nodeName && r.nodeName.toUpperCase() === e)); } _callObserver(e, r) { - tC(this, e, new lEe(this, r, e)); + tC(this, e, new cEe(this, r, e)); } toString() { - return dre(this, (e) => e.toString()).join(""); + return pre(this, (e) => e.toString()).join(""); } toJSON() { return this.toString(); @@ -18735,7 +18735,7 @@ class I0 extends Cs { } insert(e, r) { this.doc !== null ? gn(this.doc, (n) => { - mre(n, this, e, r); + vre(n, this, e, r); }) : this._prelimContent.splice(e, 0, ...r); } insertAfter(e, r) { @@ -18753,11 +18753,11 @@ class I0 extends Cs { } delete(e, r = 1) { this.doc !== null ? gn(this.doc, (n) => { - vre(n, this, e, r); + yre(n, this, e, r); }) : this._prelimContent.splice(e, r); } toArray() { - return fre(this); + return dre(this); } push(e) { this.insert(this.length, e); @@ -18766,19 +18766,19 @@ class I0 extends Cs { this.insert(0, e); } get(e) { - return pre(this, e); + return gre(this, e); } slice(e = 0, r = this.length) { - return hre(this, e, r); + return fre(this, e, r); } forEach(e) { I2(this, e); } _write(e) { - e.writeTypeRef(TEe); + e.writeTypeRef(CEe); } } -const aEe = (t) => new I0(); +const oEe = (t) => new I0(); class $2 extends I0 { constructor(e = "UNDEFINED") { super(), this.nodeName = e, this._prelimAttrs = /* @__PURE__ */ new Map(); @@ -18801,7 +18801,7 @@ class $2 extends I0 { } clone() { const e = new $2(this.nodeName), r = this.getAttributes(); - return TTe(r, (n, i) => { + return CTe(r, (n, i) => { typeof n == "string" && e.setAttribute(i, n); }), e.insert(0, this.toArray().map((n) => n instanceof Cs ? n.clone() : n)), e; } @@ -18832,10 +18832,10 @@ class $2 extends I0 { return WD(this, e); } hasAttribute(e) { - return bre(this, e); + return xre(this, e); } getAttributes(e) { - return e ? ZCe(this, e) : yre(this); + return e ? jCe(this, e) : bre(this); } toDOM(e = document, r = {}, n) { const i = e.createElement(this.nodeName), s = this.getAttributes(); @@ -18848,11 +18848,11 @@ class $2 extends I0 { }), n !== void 0 && n._createAssociation(i, this), i; } _write(e) { - e.writeTypeRef(SEe), e.writeKey(this.nodeName); + e.writeTypeRef(TEe), e.writeKey(this.nodeName); } } -const oEe = (t) => new $2(t.readKey()); -class lEe extends JT { +const lEe = (t) => new $2(t.readKey()); +class cEe extends JT { 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); @@ -18878,10 +18878,10 @@ class z5 extends eu { 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(CEe), e.writeKey(this.hookName); + e.writeTypeRef(EEe), e.writeKey(this.hookName); } } -const cEe = (t) => new z5(t.readKey()); +const uEe = (t) => new z5(t.readKey()); class Q5 extends Om { get nextSibling() { const e = this._item ? this._item.next : null; @@ -18932,10 +18932,10 @@ class Q5 extends Om { return this.toString(); } _write(e) { - e.writeTypeRef(EEe); + e.writeTypeRef(_Ee); } } -const uEe = (t) => new Q5(); +const hEe = (t) => new Q5(); class GD { constructor(e, r) { this.id = e, this.length = r; @@ -18953,7 +18953,7 @@ class GD { throw Jc(); } } -const hEe = 0; +const fEe = 0; class Zo extends GD { get deleted() { return !0; @@ -18964,10 +18964,10 @@ class Zo extends GD { return this.constructor !== e.constructor ? !1 : (this.length += e.length, !0); } integrate(e, r) { - r > 0 && (this.id.clock += r, this.length -= r), sre(e.doc.store, this); + r > 0 && (this.id.clock += r, this.length -= r), are(e.doc.store, this); } write(e, r) { - e.writeInfo(hEe), e.writeLen(this.length - r); + e.writeInfo(fEe), e.writeLen(this.length - r); } getMissing(e, r) { return null; @@ -19008,7 +19008,7 @@ class Wx { return 3; } } -const fEe = (t) => new Wx(t.readBuf()); +const dEe = (t) => new Wx(t.readBuf()); class B2 { constructor(e) { this.len = e; @@ -19046,7 +19046,7 @@ class B2 { return 1; } } -const dEe = (t) => new B2(t.readLen()), Sre = (t, e) => new C1({ guid: t, ...e, shouldLoad: e.shouldLoad || e.autoLoad || !1 }); +const pEe = (t) => new B2(t.readLen()), Tre = (t, e) => new C1({ guid: t, ...e, shouldLoad: e.shouldLoad || e.autoLoad || !1 }); class Gx { 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; @@ -19063,7 +19063,7 @@ class Gx { return !0; } copy() { - return new Gx(Sre(this.doc.guid, this.opts)); + return new Gx(Tre(this.doc.guid, this.opts)); } splice(e) { throw Jc(); @@ -19086,7 +19086,7 @@ class Gx { return 9; } } -const pEe = (t) => new Gx(Sre(t.readString(), t.readAny())); +const gEe = (t) => new Gx(Tre(t.readString(), t.readAny())); class bp { constructor(e) { this.embed = e; @@ -19122,7 +19122,7 @@ class bp { return 5; } } -const gEe = (t) => new bp(t.readJSON()); +const mEe = (t) => new bp(t.readJSON()); class Gi { constructor(e, r) { this.key = e, this.value = r; @@ -19160,7 +19160,7 @@ class Gi { return 6; } } -const mEe = (t) => new Gi(t.readKey(), t.readJSON()); +const vEe = (t) => new Gi(t.readKey(), t.readJSON()); class U5 { constructor(e) { this.arr = e; @@ -19202,7 +19202,7 @@ class U5 { return 2; } } -const vEe = (t) => { +const yEe = (t) => { const e = t.readLen(), r = []; for (let n = 0; n < e; n++) { const i = t.readString(); @@ -19251,7 +19251,7 @@ class $0 { return 8; } } -const yEe = (t) => { +const bEe = (t) => { const e = t.readLen(), r = []; for (let n = 0; n < e; n++) r.push(t.readAny()); @@ -19295,15 +19295,15 @@ class lu { return 4; } } -const bEe = (t) => new lu(t.readString()), xEe = [ - KCe, - eEe, - sEe, - oEe, +const xEe = (t) => new lu(t.readString()), wEe = [ + JCe, + tEe, aEe, - cEe, - uEe -], wEe = 0, OEe = 1, kEe = 2, SEe = 3, TEe = 4, CEe = 5, EEe = 6; + lEe, + oEe, + uEe, + hEe +], OEe = 0, kEe = 1, SEe = 2, TEe = 3, CEe = 4, EEe = 5, _Ee = 6; class bu { constructor(e) { this.type = e; @@ -19353,7 +19353,7 @@ class bu { return 7; } } -const _Ee = (t) => new bu(xEe[t.readTypeRef()](t)), H8 = (t, e) => { +const AEe = (t) => new bu(wEe[t.readTypeRef()](t)), H8 = (t, e) => { let r = e, n = 0, i; do n > 0 && (r = Cr(r.client, r.clock + n)), i = fk(t, r), n = r.clock - i.id.clock, r = i.redone; @@ -19377,13 +19377,13 @@ const _Ee = (t) => new bu(xEe[t.readTypeRef()](t)), H8 = (t, e) => { e.content.splice(r) ); return e.deleted && s.markDeleted(), e.keep && (s.keep = !0), e.redone !== null && (s.redone = Cr(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; -}, LQ = (t, e) => QSe(t, (r) => qx(r.deletions, e)), Tre = (t, e, r, n, i, s) => { +}, LQ = (t, e) => USe(t, (r) => qx(r.deletions, e)), Cre = (t, e, r, n, i, s) => { const a = t.doc, o = a.store, l = a.clientID, u = e.redone; if (u !== null) return Ha(t, u); let h = e.parent._item, f = null, d; if (h !== null && h.deleted === !0) { - if (h.redone === null && (!r.has(h) || Tre(t, h, r, n, i, s) === null)) + if (h.redone === null && (!r.has(h) || Cre(t, h, r, n, i, s) === null)) return null; for (; h.redone !== null; ) h = Ha(t, h.redone); @@ -19513,7 +19513,7 @@ class mn extends GD { 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), sre(e.doc.store, this), this.content.integrate(e, this), kQ(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), are(e.doc.store, this), this.content.integrate(e, this), kQ(e, this.parent, this.parentSub), (this.parent._item !== null && this.parent._item.deleted || this.parentSub !== null && this.right !== null) && this.delete(e); } else new Zo(this.id, this.length).integrate(e, 0); } @@ -19550,7 +19550,7 @@ class mn extends GD { gc(e, r) { if (!this.deleted) throw ic(); - this.content.gc(e), r ? DCe(e, this, new Zo(this.id, this.length)) : this.content = new B2(this.length); + this.content.gc(e), r ? PCe(e, this, new Zo(this.id, this.length)) : this.content = new B2(this.length); } write(e, r) { const n = r > 0 ? Cr(this.id.client, this.id.clock + r - 1) : this.origin, i = this.rightOrigin, s = this.parentSub, a = this.content.getRef() & HT | (n === null ? 0 : _o) | (i === null ? 0 : eh) | (s === null ? 0 : A2); @@ -19559,7 +19559,7 @@ class mn extends GD { if (o._item !== void 0) { const l = o._item; if (l === null) { - const u = rre(o); + const u = nre(o); e.writeParentInfo(!0), e.writeString(u); } else e.writeParentInfo(!1), e.writeLeftID(l.id); @@ -19570,23 +19570,23 @@ class mn extends GD { this.content.write(e, r); } } -const Cre = (t, e) => AEe[e & HT](t), AEe = [ +const Ere = (t, e) => LEe[e & HT](t), LEe = [ () => { ic(); }, + pEe, + yEe, dEe, + xEe, + mEe, vEe, - fEe, + AEe, bEe, gEe, - mEe, - _Ee, - yEe, - pEe, () => { ic(); } -], LEe = 10; +], REe = 10; class jo extends GD { get deleted() { return !0; @@ -19600,15 +19600,15 @@ class jo extends GD { ic(); } write(e, r) { - e.writeInfo(LEe), rr(e.restEncoder, this.length - r); + e.writeInfo(REe), rr(e.restEncoder, this.length - r); } getMissing(e, r) { return null; } } -const Ere = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : {}, _re = "__ $YJS$ __"; -Ere[_re] === !0 && console.error("Yjs was already imported. This breaks constructor checks and will lead to issues! - https://github.com/yjs/yjs/issues/438"); -Ere[_re] = !0; +const _re = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : {}, Are = "__ $YJS$ __"; +_re[Are] === !0 && console.error("Yjs was already imported. This breaks constructor checks and will lead to issues! - https://github.com/yjs/yjs/issues/438"); +_re[Are] = !0; class HD { constructor(e, r) { this.yanchor = e, this.yhead = r; @@ -19623,7 +19623,7 @@ class HD { return new HD(P2(e.yanchor), P2(e.yhead)); } } -class REe { +class MEe { constructor(e, r) { this.ytext = e, this.awareness = r, this.undoManager = new zD(e); } @@ -19653,7 +19653,7 @@ const Xx = $t.define({ return t[t.length - 1]; } }), Z8 = co.define(); -class MEe { +class DEe { constructor(e) { this.view = e, this.conf = e.state.facet(Xx), this._observer = (r, n) => { if (n.origin !== this.conf) { @@ -19684,7 +19684,7 @@ class MEe { this._ytext.unobserve(this._observer); } } -const DEe = hn.fromClass(MEe), PEe = kt.baseTheme({ +const PEe = hn.fromClass(DEe), NEe = kt.baseTheme({ ".cm-ySelection": {}, ".cm-yLineSelection": { padding: 0, @@ -19738,8 +19738,8 @@ const DEe = hn.fromClass(MEe), PEe = kt.baseTheme({ opacity: 1, transitionDelay: "0s" } -}), NEe = co.define(); -class IEe extends uo { +}), IEe = co.define(); +class $Ee extends uo { constructor(e, r) { super(), this.color = e, this.name = r; } @@ -19774,10 +19774,10 @@ class IEe extends uo { return !0; } } -class $Ee { +class BEe { constructor(e) { this.conf = e.state.facet(Xx), 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: [NEe.of([])] }); + r.concat(n).concat(i).findIndex((l) => l !== this.conf.awareness.doc.clientID) >= 0 && e.dispatch({ annotations: [IEe.of([])] }); }, this._awareness = this.conf.awareness, this._awareness.on("change", this._listener), this.decorations = $r.of([]); } destroy() { @@ -19848,15 +19848,15 @@ class $Ee { value: It.widget({ side: f.index - h.index > 0 ? -1 : 1, block: !1, - widget: new IEe(d, p) + widget: new $Ee(d, p) }) }); }), this.decorations = It.set(s, !0); } } -const BEe = hn.fromClass($Ee, { +const FEe = hn.fromClass(BEe, { decorations: (t) => t.decorations -}), FEe = () => { +}), zEe = () => { let t = !0; return (e, r) => { if (t) { @@ -19870,7 +19870,7 @@ const BEe = hn.fromClass($Ee, { r !== void 0 && r(); }; }; -class zEe { +class QEe { constructor(e) { this.undoManager = e; } @@ -19892,9 +19892,9 @@ const rC = $t.define({ return t[t.length - 1]; } }); -class QEe { +class UEe { constructor(e) { - this.view = e, this.conf = e.state.facet(rC), this._undoManager = this.conf.undoManager, this.syncConf = e.state.facet(Xx), this._beforeChangeSelection = null, this._mux = FEe(), this._onStackItemAdded = ({ stackItem: r, changedParentTypes: n }) => { + this.view = e, this.conf = e.state.facet(rC), this._undoManager = this.conf.undoManager, this.syncConf = e.state.facet(Xx), this._beforeChangeSelection = null, this._mux = zEe(), 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); @@ -19913,20 +19913,20 @@ class QEe { this._undoManager.off("stack-item-added", this._onStackItemAdded), this._undoManager.off("stack-item-popped", this._onStackItemPopped), this._undoManager.removeTrackedOrigin(this.syncConf); } } -const UEe = hn.fromClass(QEe), VEe = ({ state: t, dispatch: e }) => t.facet(rC).undo() || !0, qEe = ({ state: t, dispatch: e }) => t.facet(rC).redo() || !0, YEe = (t, e, { undoManager: r = new zD(t) } = {}) => { - const n = new REe(t, e), i = [ +const VEe = hn.fromClass(UEe), qEe = ({ state: t, dispatch: e }) => t.facet(rC).undo() || !0, YEe = ({ state: t, dispatch: e }) => t.facet(rC).redo() || !0, WEe = (t, e, { undoManager: r = new zD(t) } = {}) => { + const n = new MEe(t, e), i = [ Xx.of(n), - DEe + PEe ]; return e && i.push( - PEe, - BEe + NEe, + FEe ), r !== !1 && i.push( - rC.of(new zEe(r)), - UEe, + rC.of(new QEe(r)), + VEe, kt.domEventHandlers({ beforeinput(s, a) { - return s.inputType === "historyUndo" ? VEe(a) : s.inputType === "historyRedo" ? qEe(a) : !1; + return s.inputType === "historyUndo" ? qEe(a) : s.inputType === "historyRedo" ? YEe(a) : !1; } }) ), i; @@ -19953,12 +19953,12 @@ var Tt; (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"; })(Tt || (Tt = {})); -class WEe { +class GEe { constructor(e, r) { this.start = e, this.content = r, this.marks = [], this.parsers = []; } } -class GEe { +class XEe { constructor() { this.text = "", this.baseIndent = 0, this.basePos = 0, this.depth = 0, this.markers = [], this.pos = 0, this.indent = 0, this.next = -1; } @@ -20013,7 +20013,7 @@ function RQ(t, e, r) { let n = (t.type == Tt.OrderedList ? KD : jD)(r, e, !1); return n > 0 && (t.type != Tt.BulletList || ZD(r, e, !1) < 0) && r.text.charCodeAt(r.pos + n - 1) == t.value; } -const Are = { +const Lre = { [Tt.Blockquote](t, e, r) { return r.next != 62 ? !1 : (r.markers.push(Xr(Tt.QuoteMark, e.lineStart + r.pos, e.lineStart + r.pos + 1)), r.moveBase(r.pos + (Sl(r.text.charCodeAt(r.pos + 1)) ? 2 : 1)), t.end = e.lineStart + r.text.length, !0); }, @@ -20039,7 +20039,7 @@ function MQ(t, e, r) { e--; return e; } -function Lre(t) { +function Rre(t) { if (t.next != 96 && t.next != 126) return -1; let e = t.pos + 1; @@ -20054,7 +20054,7 @@ function Lre(t) { } return e; } -function Rre(t) { +function Mre(t) { return t.next != 62 ? -1 : t.text.charCodeAt(t.pos + 1) == 32 ? 2 : 1; } function ZD(t, e, r) { @@ -20068,16 +20068,16 @@ function ZD(t, e, r) { else if (!Sl(s)) return -1; } - return r && t.next == 45 && Pre(t) > -1 && t.depth == e.stack.length || n < 3 ? -1 : 1; + return r && t.next == 45 && Nre(t) > -1 && t.depth == e.stack.length || n < 3 ? -1 : 1; } -function Mre(t, e) { +function Dre(t, e) { for (let r = t.stack.length - 1; r >= 0; r--) if (t.stack[r].type == e) return !0; return !1; } function jD(t, e, r) { - return (t.next == 45 || t.next == 43 || t.next == 42) && (t.pos == t.text.length - 1 || Sl(t.text.charCodeAt(t.pos + 1))) && (!r || Mre(e, Tt.BulletList) || t.skipSpace(t.pos + 2) < t.text.length) ? 1 : -1; + return (t.next == 45 || t.next == 43 || t.next == 42) && (t.pos == t.text.length - 1 || Sl(t.text.charCodeAt(t.pos + 1))) && (!r || Dre(e, Tt.BulletList) || t.skipSpace(t.pos + 2) < t.text.length) ? 1 : -1; } function KD(t, e, r) { let n = t.pos, i = t.next; @@ -20087,9 +20087,9 @@ function KD(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 && !Sl(t.text.charCodeAt(n + 1)) || r && !Mre(e, Tt.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 && !Sl(t.text.charCodeAt(n + 1)) || r && !Dre(e, Tt.OrderedList) && (t.skipSpace(n + 1) == t.text.length || n > t.pos + 1 || t.next != 49) ? -1 : n + 1 - t.pos; } -function Dre(t) { +function Pre(t) { if (t.next != 35) return -1; let e = t.pos + 1; @@ -20100,7 +20100,7 @@ function Dre(t) { let r = e - t.pos; return r > 6 ? -1 : r; } -function Pre(t) { +function Nre(t) { if (t.next != 45 && t.next != 61 || t.indent >= t.baseIndent + 4) return -1; let e = t.pos + 1; @@ -20111,16 +20111,16 @@ function Pre(t) { e++; return e == t.text.length ? r : -1; } -const j8 = /^[ \t]*$/, Nre = /-->/, Ire = /\?>/, K8 = [ +const j8 = /^[ \t]*$/, Ire = /-->/, $re = /\?>/, K8 = [ [/^<(?:script|pre|style)(?:\s|>|$)/i, /<\/(?:script|pre|style)>/i], - [/^\s*" } } }), Rne = /* @__PURE__ */ new br(), Mne = /* @__PURE__ */ s_e.configure({ +}), Rne = /* @__PURE__ */ oD({ commentTokens: { block: { open: "" } } }), Mne = /* @__PURE__ */ new br(), Dne = /* @__PURE__ */ a_e.configure({ props: [ /* @__PURE__ */ vp.add((t) => !t.is("Block") || t.is("Document") || s9(t) != null ? void 0 : (e, r) => ({ from: r.doc.lineAt(e.from).to, to: e.to })), - /* @__PURE__ */ Rne.add(s9), + /* @__PURE__ */ Mne.add(s9), /* @__PURE__ */ x1.add({ Document: () => null }), /* @__PURE__ */ o0.add({ - Document: Lne + Document: Rne }) ] }); @@ -24610,7 +24610,7 @@ function s9(t) { let e = /^(?:ATX|Setext)Heading(\d)$/.exec(t.name); return e ? +e[1] : void 0; } -function AAe(t, e) { +function LAe(t, e) { let r = t; for (; ; ) { let n = r.nextSibling, i; @@ -24620,28 +24620,28 @@ function AAe(t, e) { } return r.to; } -const LAe = /* @__PURE__ */ aee.of((t, e, r) => { +const RAe = /* @__PURE__ */ oee.of((t, e, r) => { for (let n = Cn(t).resolveInner(r, -1); n && !(n.from < e); n = n.parent) { - let i = n.type.prop(Rne); + let i = n.type.prop(Mne); if (i == null) continue; - let s = AAe(n, i); + let s = LAe(n, i); if (s > r) return { from: r, to: s }; } return null; }); function nP(t) { - return new el(Lne, t, [LAe], "markdown"); + return new el(Rne, t, [RAe], "markdown"); } -const RAe = /* @__PURE__ */ nP(Mne), MAe = /* @__PURE__ */ Mne.configure([m_e, y_e, v_e, b_e, { +const MAe = /* @__PURE__ */ nP(Dne), DAe = /* @__PURE__ */ Dne.configure([v_e, b_e, y_e, x_e, { props: [ /* @__PURE__ */ vp.add({ Table: (t, e) => ({ from: e.doc.lineAt(t.from).to, to: t.to }) }) ] -}]), Dne = /* @__PURE__ */ nP(MAe); -function DAe(t, e) { +}]), Pne = /* @__PURE__ */ nP(DAe); +function PAe(t, e) { return (r) => { if (r && t) { let n = null; @@ -24670,11 +24670,11 @@ class DO { } } marker(e, r) { - let n = this.node.name == "OrderedList" ? String(+Nne(this.item, e)[2] + r) : ""; + let n = this.node.name == "OrderedList" ? String(+Ine(this.item, e)[2] + r) : ""; return this.spaceBefore + n + this.type + this.spaceAfter; } } -function Pne(t, e) { +function Nne(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); @@ -24697,13 +24697,13 @@ function Pne(t, e) { } return n; } -function Nne(t, e) { +function Ine(t, e) { return /^(\s*)(\d+)(?=[.)])/.exec(e.sliceString(t.from, t.from + 10)); } function o6(t, e, r, n = 0) { for (let i = -1, s = t; ; ) { if (s.name == "ListItem") { - let o = Nne(s, e), l = +o[2]; + let o = Ine(s, e), l = +o[2]; if (i >= 0) { if (l != i + 1) return; @@ -24726,11 +24726,11 @@ function a9(t, e) { s >= 4 ? (i += " ", s -= 4) : (i += " ", s--); return i + t.slice(r); } -const PAe = ({ state: t, dispatch: e }) => { +const NAe = ({ state: t, dispatch: e }) => { let r = Cn(t), { doc: n } = t, i = null, s = t.changeByRange((a) => { - if (!a.empty || !Dne.isActiveAt(t, a.from)) + if (!a.empty || !Pne.isActiveAt(t, a.from)) return i = { range: a }; - let o = a.from, l = n.lineAt(o), u = Pne(r.resolveInner(o, -1), n); + let o = a.from, l = n.lineAt(o), u = Nne(r.resolveInner(o, -1), n); for (; u.length && u[u.length - 1].from > o - l.from; ) u.pop(); if (!u.length) @@ -24780,7 +24780,7 @@ const PAe = ({ state: t, dispatch: e }) => { function mU(t) { return t.name == "QuoteMark" || t.name == "ListMark"; } -function NAe(t, e) { +function IAe(t, e) { let r = t.resolveInner(e, -1), n = e; mU(r) && (n = r.from, r = r.parent); for (let i; i = r.childBefore(n); ) @@ -24792,11 +24792,11 @@ function NAe(t, e) { break; return r; } -const IAe = ({ state: t, dispatch: e }) => { +const $Ae = ({ state: t, dispatch: e }) => { let r = Cn(t), n = null, i = t.changeByRange((s) => { let a = s.from, { doc: o } = t; - if (s.empty && Dne.isActiveAt(t, s.from)) { - let l = o.lineAt(a), u = Pne(NAe(r, a), o); + if (s.empty && Pne.isActiveAt(t, s.from)) { + let l = o.lineAt(a), u = Nne(IAe(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))) @@ -24821,22 +24821,22 @@ const IAe = ({ state: t, dispatch: e }) => { return n = { range: s }; }); return n ? !1 : (e(t.update(i, { scrollIntoView: !0, userEvent: "delete" })), !0); -}, $Ae = [ - { key: "Enter", run: PAe }, - { key: "Backspace", run: IAe } -], o9 = /* @__PURE__ */ EAe({ matchClosingTags: !1 }); -function BAe(t = {}) { - let { codeLanguages: e, defaultCodeLanguage: r, addKeymap: n = !0, base: { parser: i } = RAe, completeHTMLTags: s = !0 } = t; +}, BAe = [ + { key: "Enter", run: NAe }, + { key: "Backspace", run: $Ae } +], o9 = /* @__PURE__ */ _Ae({ matchClosingTags: !1 }); +function FAe(t = {}) { + let { codeLanguages: e, defaultCodeLanguage: r, addKeymap: n = !0, base: { parser: i } = MAe, completeHTMLTags: s = !0 } = t; if (!(i instanceof nC)) throw new RangeError("Base parser provided to `markdown` should be a Markdown parser"); let a = t.extensions ? [t.extensions] : [], o = [o9.support], l; r instanceof gm ? (o.push(r.support), l = r.language) : r && (l = r); - let u = e || l ? DAe(e, l) : void 0; - a.push(o_e({ codeParser: u, htmlParser: o9.language.parser })), n && o.push(uc.high(Ku.of($Ae))); + let u = e || l ? PAe(e, l) : void 0; + a.push(l_e({ codeParser: u, htmlParser: o9.language.parser })), n && o.push(uc.high(Ku.of(BAe))); let h = nP(i.configure(a)); - return s && o.push(h.data.of({ autocomplete: FAe })), new gm(h, o); + return s && o.push(h.data.of({ autocomplete: zAe })), new gm(h, o); } -function FAe(t) { +function zAe(t) { let { state: e, pos: r } = t, n = /<[:\-\.\w\u00b7-\uffff]*$/.exec(e.sliceDoc(r - 25, r)); if (!n) return null; @@ -24849,25 +24849,25 @@ function FAe(t) { return { from: r - n[0].length, to: r, - options: zAe(), + options: QAe(), validFor: /^<[:\-\.\w\u00b7-\uffff]*$/ }; } let l6 = null; -function zAe() { +function QAe() { if (l6) return l6; - let t = SAe(new wD(Tr.create({ extensions: o9 }), 0, !0)); + let t = TAe(new wD(Tr.create({ extensions: o9 }), 0, !0)); return l6 = t ? t.options : []; } -function QAe(t) { +function UAe(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 Ine = { exports: {} }; -const UAe = {}, VAe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +var $ne = { exports: {} }; +const VAe = {}, qAe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - default: UAe -}, Symbol.toStringTag, { value: "Module" })), qAe = /* @__PURE__ */ Jj(VAe); + default: VAe +}, Symbol.toStringTag, { value: "Module" })), YAe = /* @__PURE__ */ eK(qAe); (function(t) { var e; (function() { @@ -24923,8 +24923,8 @@ const UAe = {}, VAe = /* @__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 QAe < "u") { - var o = qAe; + } else if (typeof UAe < "u") { + var o = YAe; try { if (o.existsSync(r)) return o.readFileSync(r, n); @@ -25158,19 +25158,19 @@ const UAe = {}, VAe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defin } }; })(), t.exports = e; -})(Ine); -const YAe = Ine.exports, $ne = $t.define({ +})($ne); +const WAe = $ne.exports, Bne = $t.define({ combine: (t) => t[t.length - 1] -}), WAe = It.mark({ +}), GAe = It.mark({ class: "cm-error" -}), GAe = (t) => Object.keys(t.rules).length > 0; +}), XAe = (t) => Object.keys(t.rules).length > 0; function vU(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 cs(), i = t.state.facet($ne); - return GAe(i) && t.state.doc.sliceString(e, r).replaceAll(/\w+/g, (o, l) => !i.check(o) && n.add(e + l, e + l + o.length, WAe)), n.finish(); + const n = new cs(), i = t.state.facet(Bne); + return XAe(i) && t.state.doc.sliceString(e, r).replaceAll(/\w+/g, (o, l) => !i.check(o) && n.add(e + l, e + l + o.length, GAe)), n.finish(); } -const XAe = hn.fromClass(class { +const HAe = hn.fromClass(class { constructor(t) { this.decorations = vU(t); } @@ -25180,18 +25180,18 @@ const XAe = hn.fromClass(class { }, { decorations: (t) => t.decorations }); -function HAe(t) { +function ZAe(t) { if (!t) return []; let { dict: e = "en_US", dictionaryPath: r = "/dictionaries" } = t; - return [$ne.of(new YAe(e, null, null, { + return [Bne.of(new WAe(e, null, null, { dictionaryPath: r - })), XAe]; + })), HAe]; } -const ZAe = "cm-link", jAe = [{ +const jAe = "cm-link", KAe = [{ target: /`[^`\n]+`/g, cssClass: "cm-mono" }]; @@ -25213,7 +25213,7 @@ function yU(t, e, r, n) { match: f }) => { let d = { - class: ZAe + class: jAe }; h.cssClass && (d.class = h.cssClass); let p; @@ -25224,12 +25224,12 @@ function yU(t, e, r, n) { hl: h, markParams: d, view: t - })), a.add(h.from + f.index, h.from + f.index + f[0].length, It.mark(d)), p == null || p(); + })), h.remove || a.add(h.from + f.index, h.from + f.index + f[0].length, It.mark(d)), p == null || p(); }), a.finish(); } const iP = (t, e, r) => { t || (t = []); - const n = t.concat(jAe); + const n = t.concat(KAe); return hn.fromClass(class { constructor(i) { this.decorations = yU(i, n, e, r); @@ -25240,67 +25240,67 @@ const iP = (t, e, r) => { }, { decorations: (i) => i.decorations }); -}, Bne = /* @__PURE__ */ new Map(); -class KAe { +}, Fne = /* @__PURE__ */ new Map(); +class JAe { constructor(e) { - this.room = e, this.onmessage = null, this._onChange = (r) => r.key === e && this.onmessage !== null && this.onmessage({ data: VTe(r.newValue || "") }), wTe(this._onChange); + this.room = e, this.onmessage = null, this._onChange = (r) => r.key === e && this.onmessage !== null && this.onmessage({ data: qTe(r.newValue || "") }), OTe(this._onChange); } postMessage(e) { - Nte.setItem(this.room, UTe($Te(e))); + Ite.setItem(this.room, VTe(BTe(e))); } close() { - OTe(this._onChange); + kTe(this._onChange); } } -const JAe = typeof BroadcastChannel > "u" ? KAe : BroadcastChannel, sP = (t) => Lh(Bne, t, () => { - const e = P0(), r = new JAe(t); +const e7e = typeof BroadcastChannel > "u" ? JAe : BroadcastChannel, sP = (t) => Lh(Fne, t, () => { + const e = P0(), r = new e7e(t); return r.onmessage = (n) => e.forEach((i) => i(n.data, "broadcastchannel")), { bc: r, subs: e }; -}), e7e = (t, e) => (sP(t).subs.add(e), e), t7e = (t, e) => { +}), t7e = (t, e) => (sP(t).subs.add(e), e), r7e = (t, e) => { const r = sP(t), n = r.subs.delete(e); - return n && r.subs.size === 0 && (r.bc.close(), Bne.delete(t)), n; + return n && r.subs.size === 0 && (r.bc.close(), Fne.delete(t)), n; }, cg = (t, e, r = null) => { const n = sP(t); n.bc.postMessage(e), n.subs.forEach((i) => i(e, r)); -}, Fne = 0, aP = 1, zne = 2, l9 = (t, e) => { - rr(t, Fne); - const r = CCe(e); +}, zne = 0, aP = 1, Qne = 2, l9 = (t, e) => { + rr(t, zne); + const r = ECe(e); ci(t, r); -}, Qne = (t, e, r) => { - rr(t, aP), ci(t, OCe(e, r)); -}, r7e = (t, e, r) => Qne(e, r, Ys(t)), Une = (t, e, r) => { +}, Une = (t, e, r) => { + rr(t, aP), ci(t, kCe(e, r)); +}, n7e = (t, e, r) => Une(e, r, Ys(t)), Vne = (t, e, r) => { try { - bCe(e, Ys(t), r); + xCe(e, Ys(t), r); } catch (n) { console.error("Caught error while handling a Yjs update", n); } -}, n7e = (t, e) => { - rr(t, zne), ci(t, e); -}, i7e = Une, s7e = (t, e, r, n) => { +}, i7e = (t, e) => { + rr(t, Qne), ci(t, e); +}, s7e = Vne, a7e = (t, e, r, n) => { const i = wr(t); switch (i) { - case Fne: - r7e(t, e, r); + case zne: + n7e(t, e, r); break; case aP: - Une(t, r, n); + Vne(t, r, n); break; - case zne: - i7e(t, r, n); + case Qne: + s7e(t, r, n); break; default: throw new Error("Unknown message type"); } return i; -}, a7e = 0, o7e = (t, e, r) => { +}, o7e = 0, l7e = (t, e, r) => { switch (wr(t)) { - case a7e: + case o7e: r(e, Sf(t)); } }, c6 = 3e4; -class Vne extends GT { +class qne extends GT { 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 = Vf(); @@ -25363,7 +25363,7 @@ const oP = (t, e, r) => { rr(i, a), rr(i, l), S0(i, JSON.stringify(o)); } return Vn(i); -}, l7e = (t, e, r) => { +}, c7e = (t, e, r) => { const n = md(e), i = Vf(), s = [], a = [], o = [], l = [], u = wr(n); for (let h = 0; h < u; h++) { const f = wr(n); @@ -25383,10 +25383,10 @@ const oP = (t, e, r) => { updated: a, removed: l }, r]); -}, c7e = (t) => CTe(t, (e, r) => `${encodeURIComponent(r)}=${encodeURIComponent(e)}`).join("&"), c0 = 0, qne = 3, zg = 1, u7e = 2, Hx = []; +}, u7e = (t) => ETe(t, (e, r) => `${encodeURIComponent(r)}=${encodeURIComponent(e)}`).join("&"), c0 = 0, Yne = 3, zg = 1, h7e = 2, Hx = []; Hx[c0] = (t, e, r, n, i) => { rr(t, c0); - const s = s7e( + const s = a7e( e, t, r.doc, @@ -25394,7 +25394,7 @@ Hx[c0] = (t, e, r, n, i) => { ); n && s === aP && !r.synced && (r.synced = !0); }; -Hx[qne] = (t, e, r, n, i) => { +Hx[Yne] = (t, e, r, n, i) => { rr(t, zg), ci( t, Qy( @@ -25404,29 +25404,29 @@ Hx[qne] = (t, e, r, n, i) => { ); }; Hx[zg] = (t, e, r, n, i) => { - l7e( + c7e( r.awareness, Ys(e), r ); }; -Hx[u7e] = (t, e, r, n, i) => { - o7e( +Hx[h7e] = (t, e, r, n, i) => { + l7e( e, r.doc, - (s, a) => h7e(r, a) + (s, a) => f7e(r, a) ); }; -const bU = 3e4, h7e = (t, e) => console.warn(`Permission denied to access ${t.url}. -${e}`), Yne = (t, e, r) => { +const bU = 3e4, f7e = (t, e) => console.warn(`Permission denied to access ${t.url}. +${e}`), Wne = (t, e, r) => { const n = md(e), i = Ws(), s = wr(n), a = t.messageHandlers[s]; return a ? a(i, n, t, r, s) : console.error("Unable to compute message"), i; -}, Wne = (t) => { +}, Gne = (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 = Vf(); - const n = Yne(t, new Uint8Array(r.data), !0); + const n = Wne(t, new Uint8Array(r.data), !0); _D(n) > 1 && e.send(Vn(n)); }, e.onerror = (r) => { t.emit("connection-error", [r, t]); @@ -25440,9 +25440,9 @@ ${e}`), Yne = (t, e, r) => { ), t.emit("status", [{ status: "disconnected" }])) : t.wsUnsuccessfulReconnects++, setTimeout( - Wne, + Gne, XT( - USe(2, t.wsUnsuccessfulReconnects) * 100, + VSe(2, t.wsUnsuccessfulReconnects) * 100, t.maxBackoffTime ), t @@ -25469,10 +25469,10 @@ ${e}`), Yne = (t, e, r) => { const r = t.ws; t.wsconnected && r && r.readyState === r.OPEN && r.send(e), t.bcconnected && cg(t.bcChannel, e, t); }; -class Gne extends GT { +class Xne extends GT { constructor(e, r, n, { connect: i = !0, - awareness: s = new Vne(n), + awareness: s = new qne(n), params: a = {}, WebSocketPolyfill: o = WebSocket, resyncInterval: l = -1, @@ -25481,7 +25481,7 @@ class Gne extends GT { } = {}) { for (super(); e[e.length - 1] === "/"; ) e = e.slice(0, e.length - 1); - const f = c7e(a); + const f = u7e(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 = Hx.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 = Ws(); @@ -25489,13 +25489,13 @@ class Gne extends GT { } }, l)), this._bcSubscriber = (d, p) => { if (p !== this) { - const g = Yne(this, new Uint8Array(d), !1); + const g = Wne(this, new Uint8Array(d), !1); _D(g) > 1 && cg(this.bcChannel, Vn(g), this); } }, this._updateHandler = (d, p) => { if (p !== this) { const g = Ws(); - rr(g, c0), n7e(g, d), u6(this, Vn(g)); + rr(g, c0), i7e(g, d), u6(this, Vn(g)); } }, this.doc.on("update", this._updateHandler), this._awarenessUpdateHandler = ({ added: d, updated: p, removed: g }, m) => { const v = d.concat(p).concat(g), y = Ws(); @@ -25525,13 +25525,13 @@ class Gne extends GT { connectBc() { if (this.disableBc) return; - this.bcconnected || (e7e(this.bcChannel, this._bcSubscriber), this.bcconnected = !0); + this.bcconnected || (t7e(this.bcChannel, this._bcSubscriber), this.bcconnected = !0); const e = Ws(); rr(e, c0), l9(e, this.doc), cg(this.bcChannel, Vn(e), this); const r = Ws(); - rr(r, c0), Qne(r, this.doc), cg(this.bcChannel, Vn(r), this); + rr(r, c0), Une(r, this.doc), cg(this.bcChannel, Vn(r), this); const n = Ws(); - rr(n, qne), cg( + rr(n, Yne), cg( this.bcChannel, Vn(n), this @@ -25555,19 +25555,19 @@ class Gne extends GT { Qy(this.awareness, [ this.doc.clientID ], /* @__PURE__ */ new Map()) - ), u6(this, Vn(e)), this.bcconnected && (t7e(this.bcChannel, this._bcSubscriber), this.bcconnected = !1); + ), u6(this, Vn(e)), this.bcconnected && (r7e(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 && (Wne(this), this.connectBc()); + this.shouldConnect = !0, !this.wsconnected && this.ws === null && (Gne(this), this.connectBc()); } } -const f7e = (t) => ["input", "delete", "undo", "redo"].some((e) => t.isUserEvent(e)), U2 = $t.define({ +const d7e = (t) => ["input", "delete", "undo", "redo"].some((e) => t.isUserEvent(e)), U2 = $t.define({ combine: (t) => t[t.length - 1], static: !0 -}), Xne = or.define(), d7e = hn.fromClass(class { +}), Hne = or.define(), p7e = hn.fromClass(class { constructor(t) { this.decorations = this.colorEditorLines(t); } @@ -25604,7 +25604,7 @@ const f7e = (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(Xne)))) && (t.transactions.filter(f7e).forEach((e) => this.markLinesEditedInTransaction(e)), this.decorations = this.colorEditorLines(t.view)), t.view.dom.onmouseleave = () => t.view.dispatch({ + (t.docChanged || t.viewportChanged || t.transactions.some((e) => e.effects.some((r) => r.is(Hne)))) && (t.transactions.filter(d7e).forEach((e) => this.markLinesEditedInTransaction(e)), this.decorations = this.colorEditorLines(t.view)), t.view.dom.onmouseleave = () => t.view.dispatch({ effects: c9.of(null) }), t.view.dom.querySelectorAll(".cm-line").forEach((e) => { e.onmouseenter = (r) => t.view.dispatch({ @@ -25639,11 +25639,11 @@ class xU extends ul { return this.selectedLine && this.selectedLine == this.lineNumber ? this.authorAvatar() : document.createElement("div"); } } -const p7e = BT({ +const g7e = BT({ lineMarker: (t, e) => new xU(e, t), lineMarkerChange: (t) => t.startState.field(K5) != t.state.field(K5), initialSpacer: () => new xU(null, null) -}), g7e = (t) => [U2.of(t), K5.init(null), p7e, d7e], xp = Ht.button` +}), m7e = (t) => [U2.of(t), K5.init(null), g7e, p7e], xp = Ht.button` &:focus { outline: 0 !important; } @@ -25676,11 +25676,11 @@ const p7e = BT({ } `; or.define(); -const Hne = new mp(); -function m7e(t) { +const Zne = new mp(); +function v7e(t) { return t.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"); } -function v7e({ +function y7e({ commentId: t, text: e, color: r @@ -25691,19 +25691,24 @@ function v7e({ const i = e.indexOf("|"); if (i === -1) 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)${m7e(s)}(?=$|[\\s\\.]|\\W)`, + let s = e.slice(0, i), a = "", o = !1; + if (s.includes("->")) { + const l = s.slice(s.indexOf("->") + 2).trimStart(); + l.length === 0 ? o = !0 : a = l, s = s.slice(0, s.indexOf("->")).trimEnd(); + } + s.length !== 0 && n.push({ + targetRegexSrc: `(?<=^|[ \\t\\r\\.]|\\W)${v7e(s)}(?=$|[\\s\\.]|\\W)`, targetRegexFlags: "gm", id: t, cssClass: "cm-suggestion", replacement: a, - color: r + color: r, + remove: o }), e = e.slice(i + 1); } return n; } -function y7e({ +function b7e({ builder: t, from: e, match: r, @@ -25713,10 +25718,23 @@ function y7e({ }) { if (n.color && (i.attributes = { style: `color: ${n.color}` - }), n.replacement) + }), n.remove) + return () => { + t.add(e + r.index, e + r.index + r[0].length, It.replace({ + widget: new wU({ + text: s.state.doc.toString().slice(e + r.index, e + r.index + r[0].length), + color: n.color, + from: e + r.index, + to: e + r.index + r[0].length, + view: s, + remove: !0 + }) + })); + }; + if (n.replacement) return i.class += " replaced", () => { t.add(e + r.index + r[0].length, e + r.index + r[0].length, It.widget({ - widget: new b7e({ + widget: new wU({ text: n.replacement, color: n.color, from: e + r.index, @@ -25726,24 +25744,25 @@ function y7e({ })); }; } -class b7e extends uo { +class wU extends uo { constructor({ text: e, color: r, from: n, to: i, - view: s + view: s, + remove: a }) { - super(), this.text = e, this.color = r, this.from = n, this.to = i, this.view = s; + super(), this.text = e, this.color = r, this.from = n, this.to = i, this.view = s, this.remove = a; } toDOM() { const e = document.createElement("span"); - return e.innerText = this.text, e.style.color = this.color, e.classList.add("cm-replacement"), e.title = "Accept suggestion", e.addEventListener("mouseup", () => { + return e.innerText = this.text, e.style.color = this.color, e.classList.add(this.remove ? "cm-suggestion-remove" : "cm-replacement"), e.title = this.remove ? "Remove section" : "Accept suggestion", e.addEventListener("mouseup", () => { this.view.dispatch({ changes: { from: this.from, - to: this.to, - insert: this.text + to: this.remove ? this.to + 1 : this.to, + insert: this.remove ? "" : this.text } }); }), e; @@ -25783,7 +25802,7 @@ function x7e(t, e, r) { const w = await e.getEditorForComment(b); w.focus(), w.dispatch({ selection: je.create([je.range(w.state.doc.length - 1, w.state.doc.length - 1)]), - effects: Xne.of(null) + effects: Hne.of(null) }); }; } @@ -25825,7 +25844,7 @@ function iC() { var r = Uy; for (Uy = void 0, u9++; r !== void 0; ) { var n = r.o; - if (r.o = void 0, r.f &= -3, !(8 & r.f) && jne(r)) + if (r.o = void 0, r.f &= -3, !(8 & r.f) && Kne(r)) try { r.c(); } catch (i) { @@ -25849,7 +25868,7 @@ function Tv(t) { } } var dn = void 0, Uy = void 0, Tf = 0, u9 = 0, J5 = 0; -function Zne(t) { +function jne(t) { if (dn !== void 0) { var e = t.n; if (e === void 0 || e.t !== dn) @@ -25905,7 +25924,7 @@ Ms.prototype.peek = function() { } }; Object.defineProperty(Ms.prototype, "value", { get: function() { - var t = Zne(this); + var t = jne(this); return t !== void 0 && (t.i = this.i), this.v; }, set: function(t) { if (t !== this.v) { @@ -25923,13 +25942,13 @@ Object.defineProperty(Ms.prototype, "value", { get: function() { function th(t) { return new Ms(t); } -function jne(t) { +function Kne(t) { for (var e = t.s; e !== void 0; e = e.n) if (e.S.i !== e.i || !e.S.h() || e.S.i !== e.i) return !0; return !1; } -function Kne(t) { +function Jne(t) { for (var e = t.s; e !== void 0; e = e.n) { var r = e.S.n; if (r !== void 0 && (e.r = r), e.S.n = e, e.i = -1, e.n === void 0) { @@ -25938,7 +25957,7 @@ function Kne(t) { } } } -function Jne(t) { +function eie(t) { for (var e = t.s, r = void 0; e !== void 0; ) { var n = e.p; e.i === -1 ? (e.S.U(e), n !== void 0 && (n.n = e.n), e.n !== void 0 && (e.n.p = n)) : r = e, e.S.n = e.r, e.r !== void 0 && (e.r = void 0), e = n; @@ -25953,17 +25972,17 @@ function _1(t) { return !1; if ((36 & this.f) == 32 || (this.f &= -5, this.g === J5)) return !0; - if (this.g = J5, this.f |= 1, this.i > 0 && !jne(this)) + if (this.g = J5, this.f |= 1, this.i > 0 && !Kne(this)) return this.f &= -2, !0; var t = dn; try { - Kne(this), dn = this; + Jne(this), dn = this; var e = this.x(); (16 & this.f || this.v !== e || this.i === 0) && (this.v = e, this.f &= -17, this.i++); } catch (r) { this.v = r, this.f |= 16, this.i++; } - return dn = t, Jne(this), this.f &= -2, !0; + return dn = t, eie(this), this.f &= -2, !0; }; _1.prototype.S = function(t) { if (this.t === void 0) { @@ -25990,7 +26009,7 @@ _1.prototype.N = function() { Object.defineProperty(_1.prototype, "value", { get: function() { if (1 & this.f) throw new Error("Cycle detected"); - var t = Zne(this); + var t = jne(this); if (this.h(), t !== void 0 && (t.i = this.i), 16 & this.f) throw this.v; return this.v; @@ -25998,7 +26017,7 @@ Object.defineProperty(_1.prototype, "value", { get: function() { function lP(t) { return new _1(t); } -function eie(t) { +function tie(t) { var e = t.u; if (t.u = void 0, typeof e == "function") { Tf++; @@ -26016,12 +26035,12 @@ function eie(t) { function cP(t) { for (var e = t.s; e !== void 0; e = e.n) e.S.U(e); - t.x = void 0, t.s = void 0, eie(t); + t.x = void 0, t.s = void 0, tie(t); } function k7e(t) { if (dn !== this) throw new Error("Out-of-order effect"); - Jne(this), dn = t, this.f &= -2, 8 & this.f && cP(this), iC(); + eie(this), dn = t, this.f &= -2, 8 & this.f && cP(this), iC(); } function Zx(t) { this.x = t, this.u = void 0, this.s = void 0, this.o = void 0, this.f = 32; @@ -26040,7 +26059,7 @@ Zx.prototype.c = function() { Zx.prototype.S = function() { if (1 & this.f) throw new Error("Cycle detected"); - this.f |= 1, this.f &= -9, eie(this), Kne(this), Tf++; + this.f |= 1, this.f &= -9, tie(this), Jne(this), Tf++; var t = dn; return dn = this, k7e.bind(this, t); }; @@ -26067,7 +26086,7 @@ function A1(t, e) { function e3(t) { h6 && h6(), h6 = t && t.S(); } -function tie(t) { +function rie(t) { var e = this, r = t.data, n = wi(r); n.value = r; var i = vi(function() { @@ -26078,7 +26097,7 @@ function tie(t) { } return e.__$u.c = function() { var a; - !Dj(i.peek()) && ((a = e.base) == null ? void 0 : a.nodeType) === 3 ? e.base.data = i.peek() : (e.__$f |= 1, e.setState({})); + !Pj(i.peek()) && ((a = e.base) == null ? void 0 : a.nodeType) === 3 ? e.base.data = i.peek() : (e.__$f |= 1, e.setState({})); }, lP(function() { var a = n.value.value; return a === 0 ? 0 : a === !0 ? "" : a || ""; @@ -26086,8 +26105,8 @@ function tie(t) { }, []); return i.value; } -tie.displayName = "_st"; -Object.defineProperties(Ms.prototype, { constructor: { configurable: !0, value: void 0 }, type: { configurable: !0, value: tie }, props: { configurable: !0, get: function() { +rie.displayName = "_st"; +Object.defineProperties(Ms.prototype, { constructor: { configurable: !0, value: void 0 }, type: { configurable: !0, value: rie }, props: { configurable: !0, get: function() { return { data: this }; } }, __b: { configurable: !0, value: 1 } }); A1("__b", function(t, e) { @@ -26207,13 +26226,13 @@ function u0(t) { }); }, []); } -const wU = co.define(), rie = co.define(), nie = co.define(); +const OU = co.define(), nie = co.define(), iie = co.define(); class T7e { constructor(e) { this.view = e, this.conf = e.state.facet(Xx), this._observer = (r, n) => { if (n.origin !== this.conf) { - const i = [wU.of(this.conf)]; - n.local ? i.push(nie.of(!0)) : i.push(rie.of(!0)); + const i = [OU.of(this.conf)]; + n.local ? i.push(iie.of(!0)) : i.push(nie.of(!0)); const s = r.delta, a = []; let o = 0; for (let l = 0; l < s.length; l++) { @@ -26236,7 +26255,7 @@ class T7e { }, this._ytext = this.conf.ytext, this._ytext.observe(this._observer); } update(e) { - if (!e.docChanged || e.transactions.length > 0 && e.transactions[0].annotation(wU) === this.conf) + if (!e.docChanged || e.transactions.length > 0 && e.transactions[0].annotation(OU) === this.conf) return; const r = this.conf.ytext; r.doc.transact(() => { @@ -26412,7 +26431,7 @@ const CB = class { target: new RegExp(a.targetRegexSrc, a.targetRegexFlags) })); this.mainCodeMirror.dispatch({ - effects: Hne.reconfigure(iP(s, y7e, this.positions())), + effects: Zne.reconfigure(iP(s, b7e, this.positions())), annotations: _i.userEvent.of("suggestion") }); }), this.positionManager.syncedPositions.observeDeep(() => this.updateMainCodeMirror()); @@ -26502,7 +26521,7 @@ const CB = class { const r = e.transactions[0].effects[0].is(hh), { 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 = kke(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 = Ske(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, @@ -26533,7 +26552,7 @@ const CB = class { color: (h = (u = s.get(l + 1)) == null ? void 0 : u.color) != null ? h : "#111" }; }); - r[n] = a.flatMap(v7e); + r[n] = a.flatMap(y7e); } this.suggestions.doc.transact(() => { for (const [n, i] of Object.entries(r)) @@ -26546,7 +26565,7 @@ const CB = class { }) : console.warn("[YComments] Failed to update the main CodeMirror instance since it doesn't exist."); } syncResolvedComments(e) { - const r = !e.docChanged || e.transactions.some((s) => s.annotation(rie)), n = e.transactions.some((s) => s.effects.some((a) => a.is(V2))); + const r = !e.docChanged || e.transactions.some((s) => s.annotation(nie)), n = e.transactions.some((s) => s.effects.some((a) => a.is(V2))); if (r && !n) return; const i = this.resolver().resolved(); @@ -26710,7 +26729,7 @@ const D7e = (t, e, r) => It.widget({ } return e; }, new cs()], $7e = (t, e) => { - if ((t.isUserEvent("input") || t.isUserEvent("delete") || t.annotation(nie)) && t.startState.doc.lines != t.state.doc.lines) { + if ((t.isUserEvent("input") || t.isUserEvent("delete") || t.annotation(iie)) && t.startState.doc.lines != t.state.doc.lines) { const r = []; e.positions().positions.value.forEach((n) => { const { @@ -26814,7 +26833,7 @@ function Y7e(t, e) { const W7e = { math: q7e }; -function iie(t, e) { +function sie(t, e) { e.parseRoles && t.inline.ruler.before("backticks", "parse_roles", G7e), t.core.ruler.after(e.rolesAfter || "inline", "run_roles", H7e(e.roles || {})), t.renderer.rules.role = (r, n) => { const i = r[n]; return `${i.meta.name}${i.content}`; @@ -26870,7 +26889,7 @@ function H7e(t) { } return e; } -class OU extends Mh { +class kU extends Mh { run(e) { const r = new this.state.Token("sub_open", "sub", 1); r.markup = "~"; @@ -26880,7 +26899,7 @@ class OU extends Mh { return i.markup = "~", [r, n, i]; } } -class kU extends Mh { +class SU extends Mh { run(e) { const r = new this.state.Token("sup_open", "sup", 1); r.markup = "~"; @@ -26891,7 +26910,7 @@ class kU extends Mh { } } const Z7e = /^(.+?)\(([^()]+)\)$/; -class SU extends Mh { +class TU extends Mh { run(e) { var r, n, i, s; const a = Z7e.exec(e.content), o = (n = (r = a == null ? void 0 : a[1]) === null || r === void 0 ? void 0 : r.trim()) !== null && n !== void 0 ? n : e.content.trim(), l = (s = (i = a == null ? void 0 : a[2]) === null || i === void 0 ? void 0 : i.trim()) !== null && s !== void 0 ? s : null, u = new this.state.Token("abbr_open", "abbr", 1); @@ -26903,12 +26922,12 @@ class SU extends Mh { } } const j7e = { - subscript: OU, - sub: OU, - superscript: kU, - sup: kU, - abbreviation: SU, - abbr: SU + subscript: kU, + sub: kU, + superscript: SU, + sup: SU, + abbreviation: TU, + abbr: TU }; var q2; (function(t) { @@ -26928,7 +26947,7 @@ function J7e(t, e) { const r = lC(t); return r.numbering[e] == null ? r.numbering[e] = 1 : r.numbering[e] += 1, r.numbering[e]; } -function sie(t, e, r, n, i, s = !1) { +function aie(t, e, r, n, i, s = !1) { const a = lC(t), o = J7e(t, r), l = { label: n, kind: r, @@ -26945,7 +26964,7 @@ function uP(t, e, r, n) { var i; e.open.meta = (i = e.open.meta) !== null && i !== void 0 ? i : {}, e.open.meta.kind = r.kind, e.open.meta.label = r.label, e.open.meta.value = r.value, lC(t).references.push(Object.assign({ label: r.label, tokens: e }, n)); } -const aie = /^(.+?)<([^<>]+)>$/; +const oie = /^(.+?)<([^<>]+)>$/; class e8e extends Mh { 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); @@ -26957,7 +26976,7 @@ class e8e extends Mh { } class t8e extends Mh { run(e) { - const r = aie.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); + const r = oie.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 uP(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]; @@ -26965,7 +26984,7 @@ class t8e extends Mh { } class r8e extends Mh { run(e) { - const r = aie.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); + const r = oie.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 uP(this.state, { open: a, content: o, close: l }, { kind: "ref", label: i || e.content, value: s }, { contentFromTarget: (u) => s || u.title }), [a, o, l]; @@ -26977,14 +26996,14 @@ const n8e = { numref: t8e }, i8e = Object.assign(Object.assign(Object.assign(Object.assign({}, V7e), j7e), W7e), n8e); /*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */ -function oie(t) { +function lie(t) { return typeof t > "u" || t === null; } function s8e(t) { return typeof t == "object" && t !== null; } function a8e(t) { - return Array.isArray(t) ? t : oie(t) ? [] : [t]; + return Array.isArray(t) ? t : lie(t) ? [] : [t]; } function o8e(t, e) { var r, n, i, s; @@ -27002,7 +27021,7 @@ function l8e(t, e) { function c8e(t) { return t === 0 && Number.NEGATIVE_INFINITY === 1 / t; } -var u8e = oie, h8e = s8e, f8e = a8e, d8e = l8e, p8e = c8e, g8e = o8e, Qi = { +var u8e = lie, h8e = s8e, f8e = a8e, d8e = l8e, p8e = c8e, g8e = o8e, Qi = { isNothing: u8e, isObject: h8e, toArray: f8e, @@ -27010,19 +27029,19 @@ var u8e = oie, h8e = s8e, f8e = a8e, d8e = l8e, p8e = c8e, g8e = o8e, Qi = { isNegativeZero: p8e, extend: g8e }; -function lie(t, e) { +function cie(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 Y2(t, e) { - Error.call(this), this.name = "YAMLException", this.reason = t, this.mark = e, this.message = lie(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 = cie(this, !1), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack || ""; } Y2.prototype = Object.create(Error.prototype); Y2.prototype.constructor = Y2; Y2.prototype.toString = function(e) { - return this.name + ": " + lie(this, e); + return this.name + ": " + cie(this, e); }; var Oa = Y2; function f6(t, e, r, n, i) { @@ -27101,7 +27120,7 @@ function w8e(t, e) { throw new Oa('Unknown kind "' + this.kind + '" is specified for "' + t + '" YAML type.'); } var Es = w8e; -function TU(t, e) { +function CU(t, e) { var r = []; return t[e].forEach(function(n) { var i = r.length; @@ -27155,28 +27174,28 @@ d9.prototype.extend = function(e) { throw new Oa("Specified list of YAML types (or a single Type object) contains a non-Type object."); }); var i = Object.create(d9.prototype); - return i.implicit = (this.implicit || []).concat(r), i.explicit = (this.explicit || []).concat(n), i.compiledImplicit = TU(i, "implicit"), i.compiledExplicit = TU(i, "explicit"), i.compiledTypeMap = O8e(i.compiledImplicit, i.compiledExplicit), i; + return i.implicit = (this.implicit || []).concat(r), i.explicit = (this.explicit || []).concat(n), i.compiledImplicit = CU(i, "implicit"), i.compiledExplicit = CU(i, "explicit"), i.compiledTypeMap = O8e(i.compiledImplicit, i.compiledExplicit), i; }; -var cie = d9, uie = new Es("tag:yaml.org,2002:str", { +var uie = d9, hie = new Es("tag:yaml.org,2002:str", { kind: "scalar", construct: function(t) { return t !== null ? t : ""; } -}), hie = new Es("tag:yaml.org,2002:seq", { +}), fie = new Es("tag:yaml.org,2002:seq", { kind: "sequence", construct: function(t) { return t !== null ? t : []; } -}), fie = new Es("tag:yaml.org,2002:map", { +}), die = new Es("tag:yaml.org,2002:map", { kind: "mapping", construct: function(t) { return t !== null ? t : {}; } -}), die = new cie({ +}), pie = new uie({ explicit: [ - uie, hie, - fie + fie, + die ] }); function k8e(t) { @@ -27191,7 +27210,7 @@ function S8e() { function T8e(t) { return t === null; } -var pie = new Es("tag:yaml.org,2002:null", { +var gie = new Es("tag:yaml.org,2002:null", { kind: "scalar", resolve: k8e, construct: S8e, @@ -27227,7 +27246,7 @@ function E8e(t) { function _8e(t) { return Object.prototype.toString.call(t) === "[object Boolean]"; } -var gie = new Es("tag:yaml.org,2002:bool", { +var mie = new Es("tag:yaml.org,2002:bool", { kind: "scalar", resolve: C8e, construct: E8e, @@ -27318,7 +27337,7 @@ function D8e(t) { function P8e(t) { return Object.prototype.toString.call(t) === "[object Number]" && t % 1 === 0 && !Qi.isNegativeZero(t); } -var mie = new Es("tag:yaml.org,2002:int", { +var vie = new Es("tag:yaml.org,2002:int", { kind: "scalar", resolve: M8e, construct: D8e, @@ -27391,31 +27410,31 @@ function F8e(t, e) { function z8e(t) { return Object.prototype.toString.call(t) === "[object Number]" && (t % 1 !== 0 || Qi.isNegativeZero(t)); } -var vie = new Es("tag:yaml.org,2002:float", { +var yie = new Es("tag:yaml.org,2002:float", { kind: "scalar", resolve: I8e, construct: $8e, predicate: z8e, represent: F8e, defaultStyle: "lowercase" -}), yie = die.extend({ +}), bie = pie.extend({ implicit: [ - pie, gie, mie, - vie + vie, + yie ] -}), bie = yie, xie = new RegExp( +}), xie = bie, wie = new RegExp( "^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$" -), wie = new RegExp( +), Oie = 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 Q8e(t) { - return t === null ? !1 : xie.exec(t) !== null || wie.exec(t) !== null; + return t === null ? !1 : wie.exec(t) !== null || Oie.exec(t) !== null; } function U8e(t) { var e, r, n, i, s, a, o, l = 0, u = null, h, f, d; - if (e = xie.exec(t), e === null && (e = wie.exec(t)), e === null) + if (e = wie.exec(t), e === null && (e = Oie.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)); @@ -27429,7 +27448,7 @@ function U8e(t) { function V8e(t) { return t.toISOString(); } -var Oie = new Es("tag:yaml.org,2002:timestamp", { +var kie = new Es("tag:yaml.org,2002:timestamp", { kind: "scalar", resolve: Q8e, construct: U8e, @@ -27439,7 +27458,7 @@ var Oie = new Es("tag:yaml.org,2002:timestamp", { function q8e(t) { return t === "<<" || t === null; } -var kie = new Es("tag:yaml.org,2002:merge", { +var Sie = new Es("tag:yaml.org,2002:merge", { kind: "scalar", resolve: q8e }), hP = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/= @@ -27471,7 +27490,7 @@ function G8e(t) { function X8e(t) { return Object.prototype.toString.call(t) === "[object Uint8Array]"; } -var Sie = new Es("tag:yaml.org,2002:binary", { +var Tie = new Es("tag:yaml.org,2002:binary", { kind: "scalar", resolve: Y8e, construct: W8e, @@ -27503,7 +27522,7 @@ function j8e(t) { function K8e(t) { return t !== null ? t : []; } -var Tie = new Es("tag:yaml.org,2002:omap", { +var Cie = new Es("tag:yaml.org,2002:omap", { kind: "sequence", resolve: j8e, construct: K8e @@ -27527,7 +27546,7 @@ function t9e(t) { n = a[e], i = Object.keys(n), s[e] = [i[0], n[i[0]]]; return s; } -var Cie = new Es("tag:yaml.org,2002:pairs", { +var Eie = new Es("tag:yaml.org,2002:pairs", { kind: "sequence", resolve: e9e, construct: t9e @@ -27544,23 +27563,23 @@ function n9e(t) { function i9e(t) { return t !== null ? t : {}; } -var Eie = new Es("tag:yaml.org,2002:set", { +var _ie = new Es("tag:yaml.org,2002:set", { kind: "mapping", resolve: n9e, construct: i9e -}), fP = bie.extend({ +}), fP = xie.extend({ implicit: [ - Oie, - kie + kie, + Sie ], explicit: [ - Sie, Tie, Cie, - Eie + Eie, + _ie ] -}), Yf = Object.prototype.hasOwnProperty, t3 = 1, _ie = 2, Aie = 3, r3 = 4, p6 = 1, s9e = 2, CU = 3, a9e = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, o9e = /[\x85\u2028\u2029]/, l9e = /[,\[\]\{\}]/, Lie = /^(?:!|!!|![a-z\-]+!)$/i, Rie = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i; -function EU(t) { +}), Yf = Object.prototype.hasOwnProperty, t3 = 1, Aie = 2, Lie = 3, r3 = 4, p6 = 1, s9e = 2, EU = 3, a9e = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, o9e = /[\x85\u2028\u2029]/, l9e = /[,\[\]\{\}]/, Rie = /^(?:!|!!|![a-z\-]+!)$/i, Mie = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i; +function _U(t) { return Object.prototype.toString.call(t); } function ru(t) { @@ -27585,7 +27604,7 @@ function u9e(t) { function h9e(t) { return 48 <= t && t <= 57 ? t - 48 : -1; } -function _U(t) { +function AU(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" : ""; } @@ -27595,13 +27614,13 @@ function f9e(t) { (t - 65536 & 1023) + 56320 ); } -var Mie = new Array(256), Die = new Array(256); +var Die = new Array(256), Pie = new Array(256); for (var Gp = 0; Gp < 256; Gp++) - Mie[Gp] = _U(Gp) ? 1 : 0, Die[Gp] = _U(Gp); + Die[Gp] = AU(Gp) ? 1 : 0, Pie[Gp] = AU(Gp); function d9e(t, e) { this.input = t, this.filename = e.filename || null, this.schema = e.schema || fP, 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 Pie(t, e) { +function Nie(t, e) { var r = { name: t.filename, buffer: t.input.slice(0, -1), @@ -27612,19 +27631,19 @@ function Pie(t, e) { return r.snippet = v8e(r), new Oa(e, r); } function Kt(t, e) { - throw Pie(t, e); + throw Nie(t, e); } function n3(t, e) { - t.onWarning && t.onWarning.call(null, Pie(t, e)); + t.onWarning && t.onWarning.call(null, Nie(t, e)); } -var AU = { +var LU = { YAML: function(e, r, n) { var i, s, a; e.version !== null && Kt(e, "duplication of %YAML directive"), n.length !== 1 && Kt(e, "YAML directive accepts exactly one argument"), i = /^([0-9]+)\.([0-9]+)$/.exec(n[0]), i === null && Kt(e, "ill-formed argument of the YAML directive"), s = parseInt(i[1], 10), a = parseInt(i[2], 10), s !== 1 && Kt(e, "unacceptable YAML version of the document"), e.version = n[0], e.checkLineBreaks = a < 2, a !== 1 && a !== 2 && n3(e, "unsupported YAML version of the document"); }, TAG: function(e, r, n) { var i, s; - n.length !== 2 && Kt(e, "TAG directive accepts exactly two arguments"), i = n[0], s = n[1], Lie.test(i) || Kt(e, "ill-formed tag handle (first argument) of the TAG directive"), Yf.call(e.tagMap, i) && Kt(e, 'there is a previously declared suffix for "' + i + '" tag handle'), Rie.test(s) || Kt(e, "ill-formed tag prefix (second argument) of the TAG directive"); + n.length !== 2 && Kt(e, "TAG directive accepts exactly two arguments"), i = n[0], s = n[1], Rie.test(i) || Kt(e, "ill-formed tag handle (first argument) of the TAG directive"), Yf.call(e.tagMap, i) && Kt(e, 'there is a previously declared suffix for "' + i + '" tag handle'), Mie.test(s) || Kt(e, "ill-formed tag prefix (second argument) of the TAG directive"); try { s = decodeURIComponent(s); } catch { @@ -27644,7 +27663,7 @@ function Cf(t, e, r, n) { t.result += o; } } -function LU(t, e, r, n) { +function RU(t, e, r, n) { var i, s, a, o; for (Qi.isObject(r) || Kt(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], Yf.call(e, s) || (e[s] = r[s], n[s] = !0); @@ -27653,13 +27672,13 @@ function xg(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]) && Kt(t, "nested arrays are not supported inside keys"), typeof i == "object" && EU(i[u]) === "[object Object]" && (i[u] = "[object Object]"); - if (typeof i == "object" && EU(i) === "[object Object]" && (i = "[object Object]"), i = String(i), e === null && (e = {}), n === "tag:yaml.org,2002:merge") + Array.isArray(i[u]) && Kt(t, "nested arrays are not supported inside keys"), typeof i == "object" && _U(i[u]) === "[object Object]" && (i[u] = "[object Object]"); + if (typeof i == "object" && _U(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) - LU(t, e, s[u], r); + RU(t, e, s[u], r); else - LU(t, e, s, r); + RU(t, e, s, r); else !t.json && !Yf.call(r, i) && Yf.call(e, i) && (t.line = a || t.line, t.lineStart = o || t.lineStart, t.position = l || t.position, Kt(t, "duplicated mapping key")), i === "__proto__" ? Object.defineProperty(e, i, { configurable: !0, @@ -27748,8 +27767,8 @@ function m9e(t, e) { if (o === 92) { if (Cf(t, r, t.position, !0), o = t.input.charCodeAt(++t.position), ru(o)) Ei(t, !1, e); - else if (o < 256 && Mie[o]) - t.result += Die[o], t.position++; + else if (o < 256 && Die[o]) + t.result += Pie[o], t.position++; else if ((a = u9e(o)) > 0) { for (i = a, s = 0; i > 0; i--) o = t.input.charCodeAt(++t.position), (a = c9e(o)) >= 0 ? s = (s << 4) + a : Kt(t, "expected hexadecimal character"); @@ -27787,7 +27806,7 @@ function y9e(t, e) { return !1; for (t.kind = "scalar", t.result = ""; f !== 0; ) if (f = t.input.charCodeAt(++t.position), f === 43 || f === 45) - p6 === i ? i = f === 43 ? CU : s9e : Kt(t, "repeat of a chomping mode identifier"); + p6 === i ? i = f === 43 ? EU : s9e : Kt(t, "repeat of a chomping mode identifier"); else if ((h = h9e(f)) >= 0) h === 0 ? Kt(t, "bad explicit indentation width of a block scalar; it cannot be less than one") : a ? Kt(t, "repeat of an indentation width identifier") : (o = e + h - 1, a = !0); else @@ -27809,7 +27828,7 @@ function y9e(t, e) { continue; } if (t.lineIndent < o) { - i === CU ? t.result += Qi.repeat(` + i === EU ? t.result += Qi.repeat(` `, s ? 1 + l : l) : i === p6 && s && (t.result += ` `); break; @@ -27824,7 +27843,7 @@ function y9e(t, e) { } return !0; } -function RU(t, e) { +function MU(t, e) { var r, n = t.tag, i = t.anchor, s = [], a, o = !1, l; if (t.firstTabInLine !== -1) return !1; @@ -27833,7 +27852,7 @@ function RU(t, e) { s.push(null), l = t.input.charCodeAt(t.position); continue; } - if (r = t.line, Cm(t, e, Aie, !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, Cm(t, e, Lie, !1, !0), s.push(t.result), Ei(t, !0, -1), l = t.input.charCodeAt(t.position), (t.line === r || t.lineIndent > e) && l !== 0) Kt(t, "bad indentation of a sequence entry"); else if (t.lineIndent < e) break; @@ -27848,7 +27867,7 @@ function b9e(t, e, r) { if (!v && t.firstTabInLine !== -1 && (t.position = t.firstTabInLine, Kt(t, "tab characters must not be used in indentation")), n = t.input.charCodeAt(t.position + 1), s = t.line, (b === 63 || b === 58) && ro(n)) b === 63 ? (v && (xg(t, f, d, p, g, null, a, o, l), p = g = m = null), y = !0, v = !0, i = !0) : v ? (v = !1, i = !0) : Kt(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, !Cm(t, r, _ie, !1, !0)) + if (a = t.line, o = t.lineStart, l = t.position, !Cm(t, r, Aie, !1, !0)) break; if (t.line === s) { for (b = t.input.charCodeAt(t.position); C0(b); ) @@ -27882,10 +27901,10 @@ function x9e(t) { t.position < t.length ? (s = t.input.slice(e, t.position), a = t.input.charCodeAt(++t.position)) : Kt(t, "unexpected end of the stream within a verbatim tag"); } else { for (; a !== 0 && !ro(a); ) - a === 33 && (n ? Kt(t, "tag suffix cannot contain exclamation marks") : (i = t.input.slice(e - 1, t.position + 1), Lie.test(i) || Kt(t, "named tag handle cannot contain such characters"), n = !0, e = t.position + 1)), a = t.input.charCodeAt(++t.position); + a === 33 && (n ? Kt(t, "tag suffix cannot contain exclamation marks") : (i = t.input.slice(e - 1, t.position + 1), Rie.test(i) || Kt(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), l9e.test(s) && Kt(t, "tag suffix cannot contain flow indicator characters"); } - s && !Rie.test(s) && Kt(t, "tag name cannot contain such characters: " + s); + s && !Mie.test(s) && Kt(t, "tag name cannot contain such characters: " + s); try { s = decodeURIComponent(s); } catch { @@ -27911,10 +27930,10 @@ function O9e(t) { } function Cm(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 = r3 === r || Aie === 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) + if (t.listener !== null && t.listener("open", t), t.tag = null, t.anchor = null, t.kind = null, t.result = null, s = a = o = r3 === r || Lie === 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 (; x9e(t) || w9e(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 || r3 === r) && (t3 === r || _ie === r ? m = e : m = e + 1, v = t.position - t.lineStart, l === 1 ? o && (RU(t, v) || b9e(t, v, m)) || v9e(t, m) ? h = !0 : (a && y9e(t, m) || g9e(t, m) || m9e(t, m) ? h = !0 : O9e(t) ? (h = !0, (t.tag !== null || t.anchor !== null) && Kt(t, "alias node should not have any properties")) : p9e(t, m, t3 === r) && (h = !0, t.tag === null && (t.tag = "?")), t.anchor !== null && (t.anchorMap[t.anchor] = t.result)) : l === 0 && (h = o && RU(t, v))), t.tag === null) + if (o && (o = u || i), (l === 1 || r3 === r) && (t3 === r || Aie === r ? m = e : m = e + 1, v = t.position - t.lineStart, l === 1 ? o && (MU(t, v) || b9e(t, v, m)) || v9e(t, m) ? h = !0 : (a && y9e(t, m) || g9e(t, m) || m9e(t, m) ? h = !0 : O9e(t) ? (h = !0, (t.tag !== null || t.anchor !== null) && Kt(t, "alias node should not have any properties")) : p9e(t, m, t3 === r) && (h = !0, t.tag === null && (t.tag = "?")), t.anchor !== null && (t.anchorMap[t.anchor] = t.result)) : l === 0 && (h = o && MU(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" && Kt(t, 'unacceptable node kind for ! tag; it should be "scalar", not "' + t.kind + '"'), f = 0, d = t.implicitTypes.length; f < d; f += 1) @@ -27955,7 +27974,7 @@ function k9e(t) { a = t.input.charCodeAt(++t.position); i.push(t.input.slice(r, t.position)); } - a !== 0 && dP(t), Yf.call(AU, n) ? AU[n](t, n, i) : n3(t, 'unknown document directive "' + n + '"'); + a !== 0 && dP(t), Yf.call(LU, n) ? LU[n](t, n, i) : n3(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 && Kt(t, "directives end mark is expected"), Cm(t, t.lineIndent - 1, r3, !1, !0), Ei(t, !0, -1), t.checkLineBreaks && o9e.test(t.input.slice(e, t.position)) && n3(t, "non-ASCII line breaks are interpreted as content"), t.documents.push(t.result), t.position === t.lineStart && cC(t)) { t.input.charCodeAt(t.position) === 46 && (t.position += 3, Ei(t, !0, -1)); @@ -27966,7 +27985,7 @@ function k9e(t) { else return; } -function Nie(t, e) { +function Iie(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 d9e(t, e), n = t.indexOf("\0"); @@ -27978,24 +27997,24 @@ function Nie(t, e) { } function S9e(t, e, r) { e !== null && typeof e == "object" && typeof r > "u" && (r = e, e = null); - var n = Nie(t, r); + var n = Iie(t, r); if (typeof e != "function") return n; for (var i = 0, s = n.length; i < s; i += 1) e(n[i]); } function T9e(t, e) { - var r = Nie(t, e); + var r = Iie(t, e); if (r.length !== 0) { if (r.length === 1) return r[0]; throw new Oa("expected a single document in the stream, but found more"); } } -var C9e = S9e, E9e = T9e, Iie = { +var C9e = S9e, E9e = T9e, $ie = { loadAll: C9e, load: E9e -}, $ie = Object.prototype.toString, Bie = Object.prototype.hasOwnProperty, gP = 65279, _9e = 9, W2 = 10, A9e = 13, L9e = 32, R9e = 33, M9e = 34, p9 = 35, D9e = 37, P9e = 38, N9e = 39, I9e = 42, Fie = 44, $9e = 45, i3 = 58, B9e = 61, F9e = 62, z9e = 63, Q9e = 64, zie = 91, Qie = 93, U9e = 96, Uie = 123, V9e = 124, Vie = 125, oa = {}; +}, Bie = Object.prototype.toString, Fie = Object.prototype.hasOwnProperty, gP = 65279, _9e = 9, W2 = 10, A9e = 13, L9e = 32, R9e = 33, M9e = 34, p9 = 35, D9e = 37, P9e = 38, N9e = 39, I9e = 42, zie = 44, $9e = 45, i3 = 58, B9e = 61, F9e = 62, z9e = 63, Q9e = 64, Qie = 91, Uie = 93, U9e = 96, Vie = 123, V9e = 124, qie = 125, oa = {}; oa[0] = "\\0"; oa[7] = "\\a"; oa[8] = "\\b"; @@ -28034,7 +28053,7 @@ function W9e(t, e) { 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 && Bie.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 && Fie.call(l.styleAliases, o) && (o = l.styleAliases[o]), r[a] = o; return r; } function G9e(t) { @@ -28053,7 +28072,7 @@ var X9e = 1, G2 = 2; function H9e(t) { this.schema = t.schema || fP, this.indent = Math.max(1, t.indent || 2), this.noArrayIndent = t.noArrayIndent || !1, this.skipInvalid = t.skipInvalid || !1, this.flowLevel = Qi.isNothing(t.flowLevel) ? -1 : t.flowLevel, this.styleMap = W9e(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 === '"' ? G2 : X9e, 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 MU(t, e) { +function DU(t, e) { for (var r = Qi.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 !== ` @@ -28077,15 +28096,15 @@ function s3(t) { function X2(t) { return 32 <= t && t <= 126 || 161 <= t && t <= 55295 && t !== 8232 && t !== 8233 || 57344 <= t && t <= 65533 && t !== gP || 65536 <= t && t <= 1114111; } -function DU(t) { +function PU(t) { return X2(t) && t !== gP && t !== A9e && t !== W2; } -function PU(t, e, r) { - var n = DU(t), i = n && !s3(t); - return (r ? n : n && t !== Fie && t !== zie && t !== Qie && t !== Uie && t !== Vie) && t !== p9 && !(e === i3 && !i) || DU(e) && !s3(e) && t === p9 || e === i3 && i; +function NU(t, e, r) { + var n = PU(t), i = n && !s3(t); + return (r ? n : n && t !== zie && t !== Qie && t !== Uie && t !== Vie && t !== qie) && t !== p9 && !(e === i3 && !i) || PU(e) && !s3(e) && t === p9 || e === i3 && i; } function j9e(t) { - return X2(t) && t !== gP && !s3(t) && t !== $9e && t !== z9e && t !== i3 && t !== Fie && t !== zie && t !== Qie && t !== Uie && t !== Vie && t !== p9 && t !== P9e && t !== I9e && t !== R9e && t !== V9e && t !== B9e && t !== F9e && t !== N9e && t !== M9e && t !== D9e && t !== Q9e && t !== U9e; + return X2(t) && t !== gP && !s3(t) && t !== $9e && t !== z9e && t !== i3 && t !== zie && t !== Qie && t !== Uie && t !== Vie && t !== qie && t !== p9 && t !== P9e && t !== I9e && t !== R9e && t !== V9e && t !== B9e && t !== F9e && t !== N9e && t !== M9e && t !== D9e && t !== Q9e && t !== U9e; } function K9e(t) { return !s3(t) && t !== i3; @@ -28094,18 +28113,18 @@ function oy(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 qie(t) { +function Yie(t) { var e = /^\n* /; return e.test(t); } -var Yie = 1, m9 = 2, Wie = 3, Gie = 4, ug = 5; +var Wie = 1, m9 = 2, Gie = 3, Xie = 4, ug = 5; function J9e(t, e, r, n, i, s, a, o) { var l, u = 0, h = null, f = !1, d = !1, p = n !== -1, g = -1, m = j9e(oy(t, 0)) && K9e(oy(t, t.length - 1)); if (e || a) for (l = 0; l < t.length; u >= 65536 ? l += 2 : l++) { if (u = oy(t, l), !X2(u)) return ug; - m = m && PU(u, h, o), h = u; + m = m && NU(u, h, o), h = u; } else { for (l = 0; l < t.length; u >= 65536 ? l += 2 : l++) { @@ -28113,11 +28132,11 @@ function J9e(t, e, r, n, i, s, a, o) { f = !0, p && (d = d || l - g - 1 > n && t[g + 1] !== " ", g = l); else if (!X2(u)) return ug; - m = m && PU(u, h, o), h = u; + m = m && NU(u, h, o), h = u; } d = d || p && l - g - 1 > n && t[g + 1] !== " "; } - return !f && !d ? m && !a && !i(t) ? Yie : s === G2 ? ug : m9 : r > 9 && qie(t) ? ug : a ? s === G2 ? ug : m9 : d ? Gie : Wie; + return !f && !d ? m && !a && !i(t) ? Wie : s === G2 ? ug : m9 : r > 9 && Yie(t) ? ug : a ? s === G2 ? ug : m9 : d ? Xie : Gie; } function eLe(t, e, r, n, i) { t.dump = function() { @@ -28139,14 +28158,14 @@ function eLe(t, e, r, n, i) { t.forceQuotes && !n, i )) { - case Yie: + case Wie: return e; case m9: return "'" + e.replace(/'/g, "''") + "'"; - case Wie: - return "|" + NU(e, t.indent) + IU(MU(e, s)); case Gie: - return ">" + NU(e, t.indent) + IU(MU(tLe(e, a), s)); + return "|" + IU(e, t.indent) + $U(DU(e, s)); + case Xie: + return ">" + IU(e, t.indent) + $U(DU(tLe(e, a), s)); case ug: return '"' + rLe(e) + '"'; default: @@ -28154,15 +28173,15 @@ function eLe(t, e, r, n, i) { } }(); } -function NU(t, e) { - var r = qie(t) ? String(e) : "", n = t[t.length - 1] === ` +function IU(t, e) { + var r = Yie(t) ? String(e) : "", n = t[t.length - 1] === ` `, i = n && (t[t.length - 2] === ` ` || t === ` `), s = i ? "+" : n ? "" : "-"; return r + s + ` `; } -function IU(t) { +function $U(t) { return t[t.length - 1] === ` ` ? t.slice(0, -1) : t; } @@ -28170,16 +28189,16 @@ function tLe(t, e) { for (var r = /(\n+)([^\n]*)/g, n = function() { var u = t.indexOf(` `); - return u = u !== -1 ? u : t.length, r.lastIndex = u, $U(t.slice(0, u), e); + return u = u !== -1 ? u : t.length, r.lastIndex = u, BU(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 !== "" ? ` -` : "") + $U(l, e), i = s; +` : "") + BU(l, e), i = s; } return n; } -function $U(t, e) { +function BU(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); ) @@ -28200,7 +28219,7 @@ function nLe(t, e, r) { o = r[s], t.replacer && (o = t.replacer.call(r, String(s), o)), (dh(t, e, o, !1, !1) || typeof o > "u" && dh(t, e, null, !1, !1)) && (n !== "" && (n += "," + (t.condenseFlow ? "" : " ")), n += t.dump); t.tag = i, t.dump = "[" + n + "]"; } -function BU(t, e, r, n) { +function FU(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)), (dh(t, e + 1, l, !0, !0, !1, !0) || typeof l > "u" && dh(t, e + 1, null, !0, !0, !1, !0)) && ((!n || i !== "") && (i += g9(t, e)), t.dump && W2 === t.dump.charCodeAt(0) ? i += "-" : i += "- ", i += t.dump); @@ -28224,14 +28243,14 @@ function sLe(t, e, r, n) { d = "", (!n || i !== "") && (d += g9(t, e)), u = a[o], h = r[u], t.replacer && (h = t.replacer.call(r, u, h)), dh(t, e + 1, u, !0, !0, !0) && (f = t.tag !== null && t.tag !== "?" || t.dump && t.dump.length > 1024, f && (t.dump && W2 === t.dump.charCodeAt(0) ? d += "?" : d += "? "), d += t.dump, f && (d += g9(t, e)), dh(t, e + 1, h, !0, f) && (t.dump && W2 === t.dump.charCodeAt(0) ? d += ":" : d += ": ", d += t.dump, i += d)); t.tag = s, t.dump = i || "{}"; } -function FU(t, e, r) { +function zU(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, $ie.call(o.represent) === "[object Function]") + if (l = t.styleMap[o.tag] || o.defaultStyle, Bie.call(o.represent) === "[object Function]") n = o.represent(e, l); - else if (Bie.call(o.represent, l)) + else if (Fie.call(o.represent, l)) n = o.represent[l](e, l); else throw new Oa("!<" + o.tag + '> tag resolver accepts not "' + l + '" style'); @@ -28242,8 +28261,8 @@ function FU(t, e, r) { return !1; } function dh(t, e, r, n, i, s, a) { - t.tag = null, t.dump = r, FU(t, r, !1) || FU(t, r, !0); - var o = $ie.call(t.dump), l = n, u; + t.tag = null, t.dump = r, zU(t, r, !1) || zU(t, r, !0); + var o = Bie.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]) @@ -28252,7 +28271,7 @@ function dh(t, e, r, n, i, s, a) { if (h && d && !t.usedDuplicates[f] && (t.usedDuplicates[f] = !0), o === "[object Object]") n && Object.keys(t.dump).length !== 0 ? (sLe(t, e, t.dump, i), d && (t.dump = "&ref_" + f + t.dump)) : (iLe(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 ? BU(t, e - 1, t.dump, i) : BU(t, e, t.dump, i), d && (t.dump = "&ref_" + f + t.dump)) : (nLe(t, e, t.dump), d && (t.dump = "&ref_" + f + " " + t.dump)); + n && t.dump.length !== 0 ? (t.noArrayIndent && !a && e > 0 ? FU(t, e - 1, t.dump, i) : FU(t, e, t.dump, i), d && (t.dump = "&ref_" + f + t.dump)) : (nLe(t, e, t.dump), d && (t.dump = "&ref_" + f + " " + t.dump)); else if (o === "[object String]") t.tag !== "?" && eLe(t, t.dump, e, s, l); else { @@ -28302,20 +28321,20 @@ function mP(t, e) { throw new Error("Function yaml." + t + " is removed in js-yaml 4. Use yaml." + e + " instead, which is now safe by default."); }; } -var uLe = Es, hLe = cie, fLe = die, dLe = yie, pLe = bie, gLe = fP, mLe = Iie.load, vLe = Iie.loadAll, yLe = cLe.dump, bLe = Oa, xLe = { - binary: Sie, - float: vie, - map: fie, - null: pie, - pairs: Cie, - set: Eie, - timestamp: Oie, - bool: gie, - int: mie, - merge: kie, - omap: Tie, - seq: hie, - str: uie +var uLe = Es, hLe = uie, fLe = pie, dLe = bie, pLe = xie, gLe = fP, mLe = $ie.load, vLe = $ie.loadAll, yLe = cLe.dump, bLe = Oa, xLe = { + binary: Tie, + float: yie, + map: die, + null: gie, + pairs: Eie, + set: _ie, + timestamp: kie, + bool: mie, + int: vie, + merge: Sie, + omap: Cie, + seq: fie, + str: hie }, wLe = mP("safeLoad", "load"), OLe = mP("safeLoadAll", "loadAll"), kLe = mP("safeDump", "dump"), SLe = { Type: uLe, Schema: hLe, @@ -28383,7 +28402,7 @@ class df extends Error { function CLe(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] = Xie(i, e)); + (Object.keys(e.option_spec || {}) || e.rawOptions) && ([i, a, s] = Hie(i, e)); let o = []; if (!e.required_arguments && !e.optional_arguments ? r && (s = 0, i = [r].concat(i)) : o = ELe(r, e), i.length && !i[0].trim() && (i.shift(), s++), i.length && !e.has_content) throw new df("Has content but content not allowed"); @@ -28399,7 +28418,7 @@ function CLe(t, e) { ] : [0, 0] }; } -function Xie(t, e) { +function Hie(t, e) { let r = 1, n = {}, i = null; if (t.length && t[0].startsWith("---")) { r++; @@ -28470,7 +28489,7 @@ function ELe(t, e) { throw new df(`maximum ${i} argument(s) allowed, ${n.length} supplied`); return n; } -function Hie(t, e) { +function Zie(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", _Le), n = "fence_to_directive"), t.core.ruler.after(n, "run_directives", ALe(e.directives || {})), t.renderer.rules.directive = (i, s) => { @@ -28506,7 +28525,7 @@ function ALe(t) { for (const i of r.tokens) if (i.type === "directive" && i.info in t) try { - const s = new t[i.info](r), a = CLe(i, s), [o, l] = Xie(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 = CLe(i, s), [o, l] = Hie(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, @@ -28543,7 +28562,7 @@ const cu = (t) => t, a3 = (t) => { throw new B0(`No argument is allowed: "${t}" supplied`); return null; }, vd = (t) => `${t || ""}`.split(/\s+/).map((e) => LLe(e)); -function Zie(t) { +function jie(t) { if (!t) throw new B0("Value is not set"); const e = Number.parseFloat(t); @@ -28552,25 +28571,25 @@ function Zie(t) { return e; } function o3(t) { - const e = Zie(t); + const e = jie(t); if (e < 0) throw new B0(`Value "${t}" must be positive or zero`); return e; } -const jie = (t) => t ? o3(t) : null, Kie = (t) => (t = `${t || ""}`.replace(/\s+%$/, ""), o3(t)); -function Jie(t, e) { +const Kie = (t) => t ? o3(t) : null, Jie = (t) => (t = `${t || ""}`.replace(/\s+%$/, ""), o3(t)); +function ese(t, e) { const n = new RegExp(`^(?[0-9.]+)\\s*(?${e.join("|")})$`).exec(t); if (!n || !n.groups) throw new B0(`not a positive measure of one of the following units: ${e.join("|")}`); return n.groups.number + n.groups.units; } -const ese = ["em", "ex", "px", "in", "cm", "mm", "pt", "pc"], vP = (t) => Jie(t, [...ese, ""]), uC = (t, e = "") => { +const tse = ["em", "ex", "px", "in", "cm", "mm", "pt", "pc"], vP = (t) => ese(t, [...tse, ""]), uC = (t, e = "") => { try { - return Jie(t, [...ese, "%"]); + return ese(t, [...tse, "%"]); } catch { return vP(t) + e; } -}, tse = (t, e = "") => t.toLowerCase() === "image" ? "image" : uC(t, e); +}, rse = (t, e = "") => t.toLowerCase() === "image" ? "image" : uC(t, e); function hC(t) { return (e) => { if (e = e.toLowerCase().trim(), t.includes(e)) @@ -28677,7 +28696,7 @@ const VLe = { class qLe extends Dh { 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": jie, + "number-lines": Kie, force: y9, name: cu, class: vd @@ -28695,8 +28714,8 @@ class YLe extends Dh { constructor() { super(...arguments), this.required_arguments = 0, this.optional_arguments = 1, this.final_argument_whitespace = !1, this.has_content = !0, this.option_spec = { linenos: y9, - "lineno-start": Zie, - dedent: jie, + "lineno-start": jie, + dedent: Kie, "emphasize-lines": a3, caption: a3, force: y9, @@ -28728,18 +28747,18 @@ const GLe = { code: qLe, "code-block": YLe, "code-cell": WLe -}, rse = { +}, nse = { alt: cu, height: vP, width: uC, - scale: Kie, + scale: Jie, target: a3, class: vd, name: cu }; -class nse extends Dh { +class ise extends Dh { constructor() { - super(...arguments), this.required_arguments = 1, this.optional_arguments = 0, this.final_argument_whitespace = !0, this.option_spec = Object.assign(Object.assign({}, rse), { align: hC(["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({}, nse), { align: hC(["left", "center", "right", "top", "middle", "bottom"]) }); } create_image(e) { const r = RLe(e.args[0] || ""), n = this.createToken("image", "img", 0, { map: e.map, block: !0 }); @@ -28751,9 +28770,9 @@ class nse extends Dh { return [this.create_image(e)]; } } -class XLe extends nse { +class XLe extends ise { constructor() { - super(...arguments), this.option_spec = Object.assign(Object.assign({}, rse), { align: hC(["left", "center", "right"]), figwidth: tse, figclass: vd }), this.has_content = !0; + super(...arguments), this.option_spec = Object.assign(Object.assign({}, nse), { align: hC(["left", "center", "right"]), figwidth: rse, figclass: vd }), this.has_content = !0; } run(e) { const r = this.createToken("figure_open", "figure", 1, { @@ -28762,7 +28781,7 @@ class XLe extends nse { }); 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 = sie( + e.options.name && (n = aie( this.state, r, q2.figure, @@ -28799,7 +28818,7 @@ class XLe extends nse { } } const HLe = { - image: nse, + image: ise, figure: XLe }; class yP { @@ -28981,7 +29000,7 @@ class KLe extends Dh { }); if (r.attrSet("class", "math block"), e.options.label) { r.attrSet("id", e.options.label); - const n = sie(this.state, r, q2.equation, e.options.label, ""); + const n = aie(this.state, r, q2.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]; @@ -29021,7 +29040,7 @@ const rRe = { }; function nRe(t, e) { const r = Object.assign(Object.assign({}, rRe), e); - t.use(iie, r), t.use(Hie, r), t.use(tRe, r); + t.use(sie, r), t.use(Zie, r), t.use(tRe, 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 nf(t) { @@ -29088,7 +29107,7 @@ function lRe() { 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 cRe = Object.hasOwnProperty, zU = Object.setPrototypeOf, uRe = Object.isFrozen, hRe = Object.getPrototypeOf, fRe = Object.getOwnPropertyDescriptor, Aa = Object.freeze, sc = Object.seal, dRe = Object.create, ise = typeof Reflect < "u" && Reflect, l3 = ise.apply, w9 = ise.construct; +var cRe = Object.hasOwnProperty, QU = Object.setPrototypeOf, uRe = Object.isFrozen, hRe = Object.getPrototypeOf, fRe = Object.getOwnPropertyDescriptor, Aa = Object.freeze, sc = Object.seal, dRe = Object.create, sse = typeof Reflect < "u" && Reflect, l3 = sse.apply, w9 = sse.construct; l3 || (l3 = function(e, r, n) { return e.apply(r, n); }); @@ -29101,7 +29120,7 @@ sc || (sc = function(e) { w9 || (w9 = function(e, r) { return vk(e, _l(r)); }); -var pRe = hl(Array.prototype.forEach), QU = hl(Array.prototype.pop), Cv = hl(Array.prototype.push), yk = hl(String.prototype.toLowerCase), g6 = hl(String.prototype.toString), gRe = hl(String.prototype.match), El = hl(String.prototype.replace), mRe = hl(String.prototype.indexOf), vRe = hl(String.prototype.trim), ma = hl(RegExp.prototype.test), m6 = yRe(TypeError); +var pRe = hl(Array.prototype.forEach), UU = hl(Array.prototype.pop), Cv = hl(Array.prototype.push), yk = hl(String.prototype.toLowerCase), g6 = hl(String.prototype.toString), gRe = hl(String.prototype.match), El = hl(String.prototype.replace), mRe = hl(String.prototype.indexOf), vRe = hl(String.prototype.trim), ma = hl(RegExp.prototype.test), m6 = yRe(TypeError); function hl(t) { return function(e) { for (var r = arguments.length, n = new Array(r > 1 ? r - 1 : 0), i = 1; i < r; i++) @@ -29118,7 +29137,7 @@ function yRe(t) { } function Lr(t, e, r) { var n; - r = (n = r) !== null && n !== void 0 ? n : yk, zU && zU(t, null); + r = (n = r) !== null && n !== void 0 ? n : yk, QU && QU(t, null); for (var i = e.length; i--; ) { var s = e[i]; if (typeof s == "string") { @@ -29151,7 +29170,7 @@ function PO(t, e) { } return n; } -var UU = Aa(["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"]), v6 = Aa(["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"]), y6 = Aa(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), bRe = Aa(["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"]), b6 = Aa(["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"]), xRe = Aa(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), VU = Aa(["#text"]), qU = Aa(["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"]), x6 = Aa(["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"]), YU = Aa(["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"]), NO = Aa(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), wRe = sc(/\{\{[\w\W]*|[\w\W]*\}\}/gm), ORe = sc(/<%[\w\W]*|[\w\W]*%>/gm), kRe = sc(/\${[\w\W]*}/gm), SRe = sc(/^data-[\-\w.\u00B7-\uFFFF]/), TRe = sc(/^aria-[\-\w]+$/), CRe = sc( +var VU = Aa(["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"]), v6 = Aa(["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"]), y6 = Aa(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), bRe = Aa(["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"]), b6 = Aa(["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"]), xRe = Aa(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), qU = Aa(["#text"]), YU = Aa(["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"]), x6 = Aa(["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"]), WU = Aa(["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"]), NO = Aa(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), wRe = sc(/\{\{[\w\W]*|[\w\W]*\}\}/gm), ORe = sc(/<%[\w\W]*|[\w\W]*%>/gm), kRe = sc(/\${[\w\W]*}/gm), SRe = sc(/^data-[\-\w.\u00B7-\uFFFF]/), TRe = sc(/^aria-[\-\w]+$/), CRe = sc( /^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i ), ERe = sc(/^(?:\w+script|data):/i), _Re = sc( /[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g @@ -29176,9 +29195,9 @@ var UU = Aa(["a", "abbr", "acronym", "address", "area", "article", "aside", "aud return console.warn("TrustedTypes policy " + s + " could not be created."), null; } }; -function sse() { +function ase() { var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : LRe(), e = function(ne) { - return sse(ne); + return ase(ne); }; if (e.version = "2.4.7", e.removed = [], !t || !t.document || t.document.nodeType !== 9) return e.isSupported = !1, e; @@ -29194,7 +29213,7 @@ function sse() { } var $ = {}; e.isSupported = typeof b == "function" && T && T.createHTMLDocument !== void 0 && R !== 9; - var k = wRe, P = ORe, M = kRe, N = SRe, D = TRe, I = ERe, F = _Re, B = CRe, Q = null, Y = Lr({}, [].concat(_l(UU), _l(v6), _l(y6), _l(b6), _l(VU))), G = null, X = Lr({}, [].concat(_l(qU), _l(x6), _l(YU), _l(NO))), q = Object.seal(Object.create(null, { + var k = wRe, P = ORe, M = kRe, N = SRe, D = TRe, I = ERe, F = _Re, B = CRe, Q = null, Y = Lr({}, [].concat(_l(VU), _l(v6), _l(y6), _l(b6), _l(qU))), G = null, X = Lr({}, [].concat(_l(YU), _l(x6), _l(WU), _l(NO))), q = Object.seal(Object.create(null, { tagNameCheck: { writable: !0, configurable: !1, @@ -29224,7 +29243,7 @@ function sse() { Ld(fe), ne.ADD_DATA_URI_TAGS, at - ) : fe, le = "FORBID_CONTENTS" in ne ? Lr({}, ne.FORBID_CONTENTS, at) : ye, ee = "FORBID_TAGS" in ne ? Lr({}, ne.FORBID_TAGS, at) : {}, se = "FORBID_ATTR" in ne ? Lr({}, ne.FORBID_ATTR, at) : {}, H = "USE_PROFILES" in ne ? ne.USE_PROFILES : !1, U = ne.ALLOW_ARIA_ATTR !== !1, j = ne.ALLOW_DATA_ATTR !== !1, W = ne.ALLOW_UNKNOWN_PROTOCOLS || !1, J = ne.ALLOW_SELF_CLOSE_IN_ATTR !== !1, oe = ne.SAFE_FOR_TEMPLATES || !1, ae = ne.WHOLE_DOCUMENT || !1, he = ne.RETURN_DOM || !1, _e = ne.RETURN_DOM_FRAGMENT || !1, Pe = ne.RETURN_TRUSTED_TYPE || !1, De = ne.FORCE_BODY || !1, He = ne.SANITIZE_DOM !== !1, nt = ne.SANITIZE_NAMED_PROPS || !1, Ie = ne.KEEP_CONTENT !== !1, de = ne.IN_PLACE || !1, B = ne.ALLOWED_URI_REGEXP || B, Re = ne.NAMESPACE || Ee, q = ne.CUSTOM_ELEMENT_HANDLING || {}, ne.CUSTOM_ELEMENT_HANDLING && gt(ne.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (q.tagNameCheck = ne.CUSTOM_ELEMENT_HANDLING.tagNameCheck), ne.CUSTOM_ELEMENT_HANDLING && gt(ne.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (q.attributeNameCheck = ne.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), ne.CUSTOM_ELEMENT_HANDLING && typeof ne.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (q.allowCustomizedBuiltInElements = ne.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), oe && (j = !1), _e && (he = !0), H && (Q = Lr({}, _l(VU)), G = [], H.html === !0 && (Lr(Q, UU), Lr(G, qU)), H.svg === !0 && (Lr(Q, v6), Lr(G, x6), Lr(G, NO)), H.svgFilters === !0 && (Lr(Q, y6), Lr(G, x6), Lr(G, NO)), H.mathMl === !0 && (Lr(Q, b6), Lr(G, YU), Lr(G, NO))), ne.ADD_TAGS && (Q === Y && (Q = Ld(Q)), Lr(Q, ne.ADD_TAGS, at)), ne.ADD_ATTR && (G === X && (G = Ld(G)), Lr(G, ne.ADD_ATTR, at)), ne.ADD_URI_SAFE_ATTR && Lr(pe, ne.ADD_URI_SAFE_ATTR, at), ne.FORBID_CONTENTS && (le === ye && (le = Ld(le)), Lr(le, ne.FORBID_CONTENTS, at)), Ie && (Q["#text"] = !0), ae && Lr(Q, ["html", "head", "body"]), Q.table && (Lr(Q, ["tbody"]), delete ee.tbody), Aa && Aa(ne), bt = ne); + ) : fe, le = "FORBID_CONTENTS" in ne ? Lr({}, ne.FORBID_CONTENTS, at) : ye, ee = "FORBID_TAGS" in ne ? Lr({}, ne.FORBID_TAGS, at) : {}, se = "FORBID_ATTR" in ne ? Lr({}, ne.FORBID_ATTR, at) : {}, H = "USE_PROFILES" in ne ? ne.USE_PROFILES : !1, U = ne.ALLOW_ARIA_ATTR !== !1, j = ne.ALLOW_DATA_ATTR !== !1, W = ne.ALLOW_UNKNOWN_PROTOCOLS || !1, J = ne.ALLOW_SELF_CLOSE_IN_ATTR !== !1, oe = ne.SAFE_FOR_TEMPLATES || !1, ae = ne.WHOLE_DOCUMENT || !1, he = ne.RETURN_DOM || !1, _e = ne.RETURN_DOM_FRAGMENT || !1, Pe = ne.RETURN_TRUSTED_TYPE || !1, De = ne.FORCE_BODY || !1, He = ne.SANITIZE_DOM !== !1, nt = ne.SANITIZE_NAMED_PROPS || !1, Ie = ne.KEEP_CONTENT !== !1, de = ne.IN_PLACE || !1, B = ne.ALLOWED_URI_REGEXP || B, Re = ne.NAMESPACE || Ee, q = ne.CUSTOM_ELEMENT_HANDLING || {}, ne.CUSTOM_ELEMENT_HANDLING && gt(ne.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (q.tagNameCheck = ne.CUSTOM_ELEMENT_HANDLING.tagNameCheck), ne.CUSTOM_ELEMENT_HANDLING && gt(ne.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (q.attributeNameCheck = ne.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), ne.CUSTOM_ELEMENT_HANDLING && typeof ne.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (q.allowCustomizedBuiltInElements = ne.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), oe && (j = !1), _e && (he = !0), H && (Q = Lr({}, _l(qU)), G = [], H.html === !0 && (Lr(Q, VU), Lr(G, YU)), H.svg === !0 && (Lr(Q, v6), Lr(G, x6), Lr(G, NO)), H.svgFilters === !0 && (Lr(Q, y6), Lr(G, x6), Lr(G, NO)), H.mathMl === !0 && (Lr(Q, b6), Lr(G, WU), Lr(G, NO))), ne.ADD_TAGS && (Q === Y && (Q = Ld(Q)), Lr(Q, ne.ADD_TAGS, at)), ne.ADD_ATTR && (G === X && (G = Ld(G)), Lr(G, ne.ADD_ATTR, at)), ne.ADD_URI_SAFE_ATTR && Lr(pe, ne.ADD_URI_SAFE_ATTR, at), ne.FORBID_CONTENTS && (le === ye && (le = Ld(le)), Lr(le, ne.FORBID_CONTENTS, at)), Ie && (Q["#text"] = !0), ae && Lr(Q, ["html", "head", "body"]), Q.table && (Lr(Q, ["tbody"]), delete ee.tbody), Aa && Aa(ne), bt = ne); }, Ke = Lr({}, ["mi", "mo", "mn", "ms", "mtext"]), wt = Lr({}, ["foreignobject", "desc", "title", "annotation-xml"]), ct = Lr({}, ["title", "style", "font", "a", "script"]), it = Lr({}, v6); Lr(it, y6), Lr(it, bRe); var At = Lr({}, b6); @@ -29394,7 +29413,7 @@ function sse() { } } try { - rt ? ne.setAttributeNS(rt, Pt, Xe) : ne.setAttribute(Pt, Xe), QU(e.removed); + rt ? ne.setAttributeNS(rt, Pt, Xe) : ne.setAttribute(Pt, Xe), UU(e.removed); } catch { } } @@ -29467,14 +29486,14 @@ function sse() { typeof ne == "function" && ($[Je] = $[Je] || [], Cv($[Je], ne)); }, e.removeHook = function(Je) { if ($[Je]) - return QU($[Je]); + return UU($[Je]); }, e.removeHooks = function(Je) { $[Je] && ($[Je] = []); }, e.removeAllHooks = function() { $ = {}; }, e; } -var ase = sse(), ose = { exports: {} }, Wr = {}, xP = { exports: {} }; +var ose = ase(), lse = { exports: {} }, Wr = {}, xP = { exports: {} }; const MRe = "\xC1", DRe = "\xE1", PRe = "\u0102", NRe = "\u0103", IRe = "\u223E", $Re = "\u223F", BRe = "\u223E\u0333", FRe = "\xC2", zRe = "\xE2", QRe = "\xB4", URe = "\u0410", VRe = "\u0430", qRe = "\xC6", YRe = "\xE6", WRe = "\u2061", GRe = "\u{1D504}", XRe = "\u{1D51E}", HRe = "\xC0", ZRe = "\xE0", jRe = "\u2135", KRe = "\u2135", JRe = "\u0391", eMe = "\u03B1", tMe = "\u0100", rMe = "\u0101", nMe = "\u2A3F", iMe = "&", sMe = "&", aMe = "\u2A55", oMe = "\u2A53", lMe = "\u2227", cMe = "\u2A5C", uMe = "\u2A58", hMe = "\u2A5A", fMe = "\u2220", dMe = "\u29A4", pMe = "\u2220", gMe = "\u29A8", mMe = "\u29A9", vMe = "\u29AA", yMe = "\u29AB", bMe = "\u29AC", xMe = "\u29AD", wMe = "\u29AE", OMe = "\u29AF", kMe = "\u2221", SMe = "\u221F", TMe = "\u22BE", CMe = "\u299D", EMe = "\u2222", _Me = "\xC5", AMe = "\u237C", LMe = "\u0104", RMe = "\u0105", MMe = "\u{1D538}", DMe = "\u{1D552}", PMe = "\u2A6F", NMe = "\u2248", IMe = "\u2A70", $Me = "\u224A", BMe = "\u224B", FMe = "'", zMe = "\u2061", QMe = "\u2248", UMe = "\u224A", VMe = "\xC5", qMe = "\xE5", YMe = "\u{1D49C}", WMe = "\u{1D4B6}", GMe = "\u2254", XMe = "*", HMe = "\u2248", ZMe = "\u224D", jMe = "\xC3", KMe = "\xE3", JMe = "\xC4", eDe = "\xE4", tDe = "\u2233", rDe = "\u2A11", nDe = "\u224C", iDe = "\u03F6", sDe = "\u2035", aDe = "\u223D", oDe = "\u22CD", lDe = "\u2216", cDe = "\u2AE7", uDe = "\u22BD", hDe = "\u2305", fDe = "\u2306", dDe = "\u2305", pDe = "\u23B5", gDe = "\u23B6", mDe = "\u224C", vDe = "\u0411", yDe = "\u0431", bDe = "\u201E", xDe = "\u2235", wDe = "\u2235", ODe = "\u2235", kDe = "\u29B0", SDe = "\u03F6", TDe = "\u212C", CDe = "\u212C", EDe = "\u0392", _De = "\u03B2", ADe = "\u2136", LDe = "\u226C", RDe = "\u{1D505}", MDe = "\u{1D51F}", DDe = "\u22C2", PDe = "\u25EF", NDe = "\u22C3", IDe = "\u2A00", $De = "\u2A01", BDe = "\u2A02", FDe = "\u2A06", zDe = "\u2605", QDe = "\u25BD", UDe = "\u25B3", VDe = "\u2A04", qDe = "\u22C1", YDe = "\u22C0", WDe = "\u290D", GDe = "\u29EB", XDe = "\u25AA", HDe = "\u25B4", ZDe = "\u25BE", jDe = "\u25C2", KDe = "\u25B8", JDe = "\u2423", ePe = "\u2592", tPe = "\u2591", rPe = "\u2593", nPe = "\u2588", iPe = "=\u20E5", sPe = "\u2261\u20E5", aPe = "\u2AED", oPe = "\u2310", lPe = "\u{1D539}", cPe = "\u{1D553}", uPe = "\u22A5", hPe = "\u22A5", fPe = "\u22C8", dPe = "\u29C9", pPe = "\u2510", gPe = "\u2555", mPe = "\u2556", vPe = "\u2557", yPe = "\u250C", bPe = "\u2552", xPe = "\u2553", wPe = "\u2554", OPe = "\u2500", kPe = "\u2550", SPe = "\u252C", TPe = "\u2564", CPe = "\u2565", EPe = "\u2566", _Pe = "\u2534", APe = "\u2567", LPe = "\u2568", RPe = "\u2569", MPe = "\u229F", DPe = "\u229E", PPe = "\u22A0", NPe = "\u2518", IPe = "\u255B", $Pe = "\u255C", BPe = "\u255D", FPe = "\u2514", zPe = "\u2558", QPe = "\u2559", UPe = "\u255A", VPe = "\u2502", qPe = "\u2551", YPe = "\u253C", WPe = "\u256A", GPe = "\u256B", XPe = "\u256C", HPe = "\u2524", ZPe = "\u2561", jPe = "\u2562", KPe = "\u2563", JPe = "\u251C", eNe = "\u255E", tNe = "\u255F", rNe = "\u2560", nNe = "\u2035", iNe = "\u02D8", sNe = "\u02D8", aNe = "\xA6", oNe = "\u{1D4B7}", lNe = "\u212C", cNe = "\u204F", uNe = "\u223D", hNe = "\u22CD", fNe = "\u29C5", dNe = "\\", pNe = "\u27C8", gNe = "\u2022", mNe = "\u2022", vNe = "\u224E", yNe = "\u2AAE", bNe = "\u224F", xNe = "\u224E", wNe = "\u224F", ONe = "\u0106", kNe = "\u0107", SNe = "\u2A44", TNe = "\u2A49", CNe = "\u2A4B", ENe = "\u2229", _Ne = "\u22D2", ANe = "\u2A47", LNe = "\u2A40", RNe = "\u2145", MNe = "\u2229\uFE00", DNe = "\u2041", PNe = "\u02C7", NNe = "\u212D", INe = "\u2A4D", $Ne = "\u010C", BNe = "\u010D", FNe = "\xC7", zNe = "\xE7", QNe = "\u0108", UNe = "\u0109", VNe = "\u2230", qNe = "\u2A4C", YNe = "\u2A50", WNe = "\u010A", GNe = "\u010B", XNe = "\xB8", HNe = "\xB8", ZNe = "\u29B2", jNe = "\xA2", KNe = "\xB7", JNe = "\xB7", eIe = "\u{1D520}", tIe = "\u212D", rIe = "\u0427", nIe = "\u0447", iIe = "\u2713", sIe = "\u2713", aIe = "\u03A7", oIe = "\u03C7", lIe = "\u02C6", cIe = "\u2257", uIe = "\u21BA", hIe = "\u21BB", fIe = "\u229B", dIe = "\u229A", pIe = "\u229D", gIe = "\u2299", mIe = "\xAE", vIe = "\u24C8", yIe = "\u2296", bIe = "\u2295", xIe = "\u2297", wIe = "\u25CB", OIe = "\u29C3", kIe = "\u2257", SIe = "\u2A10", TIe = "\u2AEF", CIe = "\u29C2", EIe = "\u2232", _Ie = "\u201D", AIe = "\u2019", LIe = "\u2663", RIe = "\u2663", MIe = ":", DIe = "\u2237", PIe = "\u2A74", NIe = "\u2254", IIe = "\u2254", $Ie = ",", BIe = "@", FIe = "\u2201", zIe = "\u2218", QIe = "\u2201", UIe = "\u2102", VIe = "\u2245", qIe = "\u2A6D", YIe = "\u2261", WIe = "\u222E", GIe = "\u222F", XIe = "\u222E", HIe = "\u{1D554}", ZIe = "\u2102", jIe = "\u2210", KIe = "\u2210", JIe = "\xA9", e$e = "\xA9", t$e = "\u2117", r$e = "\u2233", n$e = "\u21B5", i$e = "\u2717", s$e = "\u2A2F", a$e = "\u{1D49E}", o$e = "\u{1D4B8}", l$e = "\u2ACF", c$e = "\u2AD1", u$e = "\u2AD0", h$e = "\u2AD2", f$e = "\u22EF", d$e = "\u2938", p$e = "\u2935", g$e = "\u22DE", m$e = "\u22DF", v$e = "\u21B6", y$e = "\u293D", b$e = "\u2A48", x$e = "\u2A46", w$e = "\u224D", O$e = "\u222A", k$e = "\u22D3", S$e = "\u2A4A", T$e = "\u228D", C$e = "\u2A45", E$e = "\u222A\uFE00", _$e = "\u21B7", A$e = "\u293C", L$e = "\u22DE", R$e = "\u22DF", M$e = "\u22CE", D$e = "\u22CF", P$e = "\xA4", N$e = "\u21B6", I$e = "\u21B7", $$e = "\u22CE", B$e = "\u22CF", F$e = "\u2232", z$e = "\u2231", Q$e = "\u232D", U$e = "\u2020", V$e = "\u2021", q$e = "\u2138", Y$e = "\u2193", W$e = "\u21A1", G$e = "\u21D3", X$e = "\u2010", H$e = "\u2AE4", Z$e = "\u22A3", j$e = "\u290F", K$e = "\u02DD", J$e = "\u010E", eBe = "\u010F", tBe = "\u0414", rBe = "\u0434", nBe = "\u2021", iBe = "\u21CA", sBe = "\u2145", aBe = "\u2146", oBe = "\u2911", lBe = "\u2A77", cBe = "\xB0", uBe = "\u2207", hBe = "\u0394", fBe = "\u03B4", dBe = "\u29B1", pBe = "\u297F", gBe = "\u{1D507}", mBe = "\u{1D521}", vBe = "\u2965", yBe = "\u21C3", bBe = "\u21C2", xBe = "\xB4", wBe = "\u02D9", OBe = "\u02DD", kBe = "`", SBe = "\u02DC", TBe = "\u22C4", CBe = "\u22C4", EBe = "\u22C4", _Be = "\u2666", ABe = "\u2666", LBe = "\xA8", RBe = "\u2146", MBe = "\u03DD", DBe = "\u22F2", PBe = "\xF7", NBe = "\xF7", IBe = "\u22C7", $Be = "\u22C7", BBe = "\u0402", FBe = "\u0452", zBe = "\u231E", QBe = "\u230D", UBe = "$", VBe = "\u{1D53B}", qBe = "\u{1D555}", YBe = "\xA8", WBe = "\u02D9", GBe = "\u20DC", XBe = "\u2250", HBe = "\u2251", ZBe = "\u2250", jBe = "\u2238", KBe = "\u2214", JBe = "\u22A1", eFe = "\u2306", tFe = "\u222F", rFe = "\xA8", nFe = "\u21D3", iFe = "\u21D0", sFe = "\u21D4", aFe = "\u2AE4", oFe = "\u27F8", lFe = "\u27FA", cFe = "\u27F9", uFe = "\u21D2", hFe = "\u22A8", fFe = "\u21D1", dFe = "\u21D5", pFe = "\u2225", gFe = "\u2913", mFe = "\u2193", vFe = "\u2193", yFe = "\u21D3", bFe = "\u21F5", xFe = "\u0311", wFe = "\u21CA", OFe = "\u21C3", kFe = "\u21C2", SFe = "\u2950", TFe = "\u295E", CFe = "\u2956", EFe = "\u21BD", _Fe = "\u295F", AFe = "\u2957", LFe = "\u21C1", RFe = "\u21A7", MFe = "\u22A4", DFe = "\u2910", PFe = "\u231F", NFe = "\u230C", IFe = "\u{1D49F}", $Fe = "\u{1D4B9}", BFe = "\u0405", FFe = "\u0455", zFe = "\u29F6", QFe = "\u0110", UFe = "\u0111", VFe = "\u22F1", qFe = "\u25BF", YFe = "\u25BE", WFe = "\u21F5", GFe = "\u296F", XFe = "\u29A6", HFe = "\u040F", ZFe = "\u045F", jFe = "\u27FF", KFe = "\xC9", JFe = "\xE9", eze = "\u2A6E", tze = "\u011A", rze = "\u011B", nze = "\xCA", ize = "\xEA", sze = "\u2256", aze = "\u2255", oze = "\u042D", lze = "\u044D", cze = "\u2A77", uze = "\u0116", hze = "\u0117", fze = "\u2251", dze = "\u2147", pze = "\u2252", gze = "\u{1D508}", mze = "\u{1D522}", vze = "\u2A9A", yze = "\xC8", bze = "\xE8", xze = "\u2A96", wze = "\u2A98", Oze = "\u2A99", kze = "\u2208", Sze = "\u23E7", Tze = "\u2113", Cze = "\u2A95", Eze = "\u2A97", _ze = "\u0112", Aze = "\u0113", Lze = "\u2205", Rze = "\u2205", Mze = "\u25FB", Dze = "\u2205", Pze = "\u25AB", Nze = "\u2004", Ize = "\u2005", $ze = "\u2003", Bze = "\u014A", Fze = "\u014B", zze = "\u2002", Qze = "\u0118", Uze = "\u0119", Vze = "\u{1D53C}", qze = "\u{1D556}", Yze = "\u22D5", Wze = "\u29E3", Gze = "\u2A71", Xze = "\u03B5", Hze = "\u0395", Zze = "\u03B5", jze = "\u03F5", Kze = "\u2256", Jze = "\u2255", eQe = "\u2242", tQe = "\u2A96", rQe = "\u2A95", nQe = "\u2A75", iQe = "=", sQe = "\u2242", aQe = "\u225F", oQe = "\u21CC", lQe = "\u2261", cQe = "\u2A78", uQe = "\u29E5", hQe = "\u2971", fQe = "\u2253", dQe = "\u212F", pQe = "\u2130", gQe = "\u2250", mQe = "\u2A73", vQe = "\u2242", yQe = "\u0397", bQe = "\u03B7", xQe = "\xD0", wQe = "\xF0", OQe = "\xCB", kQe = "\xEB", SQe = "\u20AC", TQe = "!", CQe = "\u2203", EQe = "\u2203", _Qe = "\u2130", AQe = "\u2147", LQe = "\u2147", RQe = "\u2252", MQe = "\u0424", DQe = "\u0444", PQe = "\u2640", NQe = "\uFB03", IQe = "\uFB00", $Qe = "\uFB04", BQe = "\u{1D509}", FQe = "\u{1D523}", zQe = "\uFB01", QQe = "\u25FC", UQe = "\u25AA", VQe = "fj", qQe = "\u266D", YQe = "\uFB02", WQe = "\u25B1", GQe = "\u0192", XQe = "\u{1D53D}", HQe = "\u{1D557}", ZQe = "\u2200", jQe = "\u2200", KQe = "\u22D4", JQe = "\u2AD9", eUe = "\u2131", tUe = "\u2A0D", rUe = "\xBD", nUe = "\u2153", iUe = "\xBC", sUe = "\u2155", aUe = "\u2159", oUe = "\u215B", lUe = "\u2154", cUe = "\u2156", uUe = "\xBE", hUe = "\u2157", fUe = "\u215C", dUe = "\u2158", pUe = "\u215A", gUe = "\u215D", mUe = "\u215E", vUe = "\u2044", yUe = "\u2322", bUe = "\u{1D4BB}", xUe = "\u2131", wUe = "\u01F5", OUe = "\u0393", kUe = "\u03B3", SUe = "\u03DC", TUe = "\u03DD", CUe = "\u2A86", EUe = "\u011E", _Ue = "\u011F", AUe = "\u0122", LUe = "\u011C", RUe = "\u011D", MUe = "\u0413", DUe = "\u0433", PUe = "\u0120", NUe = "\u0121", IUe = "\u2265", $Ue = "\u2267", BUe = "\u2A8C", FUe = "\u22DB", zUe = "\u2265", QUe = "\u2267", UUe = "\u2A7E", VUe = "\u2AA9", qUe = "\u2A7E", YUe = "\u2A80", WUe = "\u2A82", GUe = "\u2A84", XUe = "\u22DB\uFE00", HUe = "\u2A94", ZUe = "\u{1D50A}", jUe = "\u{1D524}", KUe = "\u226B", JUe = "\u22D9", eVe = "\u22D9", tVe = "\u2137", rVe = "\u0403", nVe = "\u0453", iVe = "\u2AA5", sVe = "\u2277", aVe = "\u2A92", oVe = "\u2AA4", lVe = "\u2A8A", cVe = "\u2A8A", uVe = "\u2A88", hVe = "\u2269", fVe = "\u2A88", dVe = "\u2269", pVe = "\u22E7", gVe = "\u{1D53E}", mVe = "\u{1D558}", vVe = "`", yVe = "\u2265", bVe = "\u22DB", xVe = "\u2267", wVe = "\u2AA2", OVe = "\u2277", kVe = "\u2A7E", SVe = "\u2273", TVe = "\u{1D4A2}", CVe = "\u210A", EVe = "\u2273", _Ve = "\u2A8E", AVe = "\u2A90", LVe = "\u2AA7", RVe = "\u2A7A", MVe = ">", DVe = ">", PVe = "\u226B", NVe = "\u22D7", IVe = "\u2995", $Ve = "\u2A7C", BVe = "\u2A86", FVe = "\u2978", zVe = "\u22D7", QVe = "\u22DB", UVe = "\u2A8C", VVe = "\u2277", qVe = "\u2273", YVe = "\u2269\uFE00", WVe = "\u2269\uFE00", GVe = "\u02C7", XVe = "\u200A", HVe = "\xBD", ZVe = "\u210B", jVe = "\u042A", KVe = "\u044A", JVe = "\u2948", eqe = "\u2194", tqe = "\u21D4", rqe = "\u21AD", nqe = "^", iqe = "\u210F", sqe = "\u0124", aqe = "\u0125", oqe = "\u2665", lqe = "\u2665", cqe = "\u2026", uqe = "\u22B9", hqe = "\u{1D525}", fqe = "\u210C", dqe = "\u210B", pqe = "\u2925", gqe = "\u2926", mqe = "\u21FF", vqe = "\u223B", yqe = "\u21A9", bqe = "\u21AA", xqe = "\u{1D559}", wqe = "\u210D", Oqe = "\u2015", kqe = "\u2500", Sqe = "\u{1D4BD}", Tqe = "\u210B", Cqe = "\u210F", Eqe = "\u0126", _qe = "\u0127", Aqe = "\u224E", Lqe = "\u224F", Rqe = "\u2043", Mqe = "\u2010", Dqe = "\xCD", Pqe = "\xED", Nqe = "\u2063", Iqe = "\xCE", $qe = "\xEE", Bqe = "\u0418", Fqe = "\u0438", zqe = "\u0130", Qqe = "\u0415", Uqe = "\u0435", Vqe = "\xA1", qqe = "\u21D4", Yqe = "\u{1D526}", Wqe = "\u2111", Gqe = "\xCC", Xqe = "\xEC", Hqe = "\u2148", Zqe = "\u2A0C", jqe = "\u222D", Kqe = "\u29DC", Jqe = "\u2129", eYe = "\u0132", tYe = "\u0133", rYe = "\u012A", nYe = "\u012B", iYe = "\u2111", sYe = "\u2148", aYe = "\u2110", oYe = "\u2111", lYe = "\u0131", cYe = "\u2111", uYe = "\u22B7", hYe = "\u01B5", fYe = "\u21D2", dYe = "\u2105", pYe = "\u221E", gYe = "\u29DD", mYe = "\u0131", vYe = "\u22BA", yYe = "\u222B", bYe = "\u222C", xYe = "\u2124", wYe = "\u222B", OYe = "\u22BA", kYe = "\u22C2", SYe = "\u2A17", TYe = "\u2A3C", CYe = "\u2063", EYe = "\u2062", _Ye = "\u0401", AYe = "\u0451", LYe = "\u012E", RYe = "\u012F", MYe = "\u{1D540}", DYe = "\u{1D55A}", PYe = "\u0399", NYe = "\u03B9", IYe = "\u2A3C", $Ye = "\xBF", BYe = "\u{1D4BE}", FYe = "\u2110", zYe = "\u2208", QYe = "\u22F5", UYe = "\u22F9", VYe = "\u22F4", qYe = "\u22F3", YYe = "\u2208", WYe = "\u2062", GYe = "\u0128", XYe = "\u0129", HYe = "\u0406", ZYe = "\u0456", jYe = "\xCF", KYe = "\xEF", JYe = "\u0134", eWe = "\u0135", tWe = "\u0419", rWe = "\u0439", nWe = "\u{1D50D}", iWe = "\u{1D527}", sWe = "\u0237", aWe = "\u{1D541}", oWe = "\u{1D55B}", lWe = "\u{1D4A5}", cWe = "\u{1D4BF}", uWe = "\u0408", hWe = "\u0458", fWe = "\u0404", dWe = "\u0454", pWe = "\u039A", gWe = "\u03BA", mWe = "\u03F0", vWe = "\u0136", yWe = "\u0137", bWe = "\u041A", xWe = "\u043A", wWe = "\u{1D50E}", OWe = "\u{1D528}", kWe = "\u0138", SWe = "\u0425", TWe = "\u0445", CWe = "\u040C", EWe = "\u045C", _We = "\u{1D542}", AWe = "\u{1D55C}", LWe = "\u{1D4A6}", RWe = "\u{1D4C0}", MWe = "\u21DA", DWe = "\u0139", PWe = "\u013A", NWe = "\u29B4", IWe = "\u2112", $We = "\u039B", BWe = "\u03BB", FWe = "\u27E8", zWe = "\u27EA", QWe = "\u2991", UWe = "\u27E8", VWe = "\u2A85", qWe = "\u2112", YWe = "\xAB", WWe = "\u21E4", GWe = "\u291F", XWe = "\u2190", HWe = "\u219E", ZWe = "\u21D0", jWe = "\u291D", KWe = "\u21A9", JWe = "\u21AB", eGe = "\u2939", tGe = "\u2973", rGe = "\u21A2", nGe = "\u2919", iGe = "\u291B", sGe = "\u2AAB", aGe = "\u2AAD", oGe = "\u2AAD\uFE00", lGe = "\u290C", cGe = "\u290E", uGe = "\u2772", hGe = "{", fGe = "[", dGe = "\u298B", pGe = "\u298F", gGe = "\u298D", mGe = "\u013D", vGe = "\u013E", yGe = "\u013B", bGe = "\u013C", xGe = "\u2308", wGe = "{", OGe = "\u041B", kGe = "\u043B", SGe = "\u2936", TGe = "\u201C", CGe = "\u201E", EGe = "\u2967", _Ge = "\u294B", AGe = "\u21B2", LGe = "\u2264", RGe = "\u2266", MGe = "\u27E8", DGe = "\u21E4", PGe = "\u2190", NGe = "\u2190", IGe = "\u21D0", $Ge = "\u21C6", BGe = "\u21A2", FGe = "\u2308", zGe = "\u27E6", QGe = "\u2961", UGe = "\u2959", VGe = "\u21C3", qGe = "\u230A", YGe = "\u21BD", WGe = "\u21BC", GGe = "\u21C7", XGe = "\u2194", HGe = "\u2194", ZGe = "\u21D4", jGe = "\u21C6", KGe = "\u21CB", JGe = "\u21AD", eXe = "\u294E", tXe = "\u21A4", rXe = "\u22A3", nXe = "\u295A", iXe = "\u22CB", sXe = "\u29CF", aXe = "\u22B2", oXe = "\u22B4", lXe = "\u2951", cXe = "\u2960", uXe = "\u2958", hXe = "\u21BF", fXe = "\u2952", dXe = "\u21BC", pXe = "\u2A8B", gXe = "\u22DA", mXe = "\u2264", vXe = "\u2266", yXe = "\u2A7D", bXe = "\u2AA8", xXe = "\u2A7D", wXe = "\u2A7F", OXe = "\u2A81", kXe = "\u2A83", SXe = "\u22DA\uFE00", TXe = "\u2A93", CXe = "\u2A85", EXe = "\u22D6", _Xe = "\u22DA", AXe = "\u2A8B", LXe = "\u22DA", RXe = "\u2266", MXe = "\u2276", DXe = "\u2276", PXe = "\u2AA1", NXe = "\u2272", IXe = "\u2A7D", $Xe = "\u2272", BXe = "\u297C", FXe = "\u230A", zXe = "\u{1D50F}", QXe = "\u{1D529}", UXe = "\u2276", VXe = "\u2A91", qXe = "\u2962", YXe = "\u21BD", WXe = "\u21BC", GXe = "\u296A", XXe = "\u2584", HXe = "\u0409", ZXe = "\u0459", jXe = "\u21C7", KXe = "\u226A", JXe = "\u22D8", eHe = "\u231E", tHe = "\u21DA", rHe = "\u296B", nHe = "\u25FA", iHe = "\u013F", sHe = "\u0140", aHe = "\u23B0", oHe = "\u23B0", lHe = "\u2A89", cHe = "\u2A89", uHe = "\u2A87", hHe = "\u2268", fHe = "\u2A87", dHe = "\u2268", pHe = "\u22E6", gHe = "\u27EC", mHe = "\u21FD", vHe = "\u27E6", yHe = "\u27F5", bHe = "\u27F5", xHe = "\u27F8", wHe = "\u27F7", OHe = "\u27F7", kHe = "\u27FA", SHe = "\u27FC", THe = "\u27F6", CHe = "\u27F6", EHe = "\u27F9", _He = "\u21AB", AHe = "\u21AC", LHe = "\u2985", RHe = "\u{1D543}", MHe = "\u{1D55D}", DHe = "\u2A2D", PHe = "\u2A34", NHe = "\u2217", IHe = "_", $He = "\u2199", BHe = "\u2198", FHe = "\u25CA", zHe = "\u25CA", QHe = "\u29EB", UHe = "(", VHe = "\u2993", qHe = "\u21C6", YHe = "\u231F", WHe = "\u21CB", GHe = "\u296D", XHe = "\u200E", HHe = "\u22BF", ZHe = "\u2039", jHe = "\u{1D4C1}", KHe = "\u2112", JHe = "\u21B0", eZe = "\u21B0", tZe = "\u2272", rZe = "\u2A8D", nZe = "\u2A8F", iZe = "[", sZe = "\u2018", aZe = "\u201A", oZe = "\u0141", lZe = "\u0142", cZe = "\u2AA6", uZe = "\u2A79", hZe = "<", fZe = "<", dZe = "\u226A", pZe = "\u22D6", gZe = "\u22CB", mZe = "\u22C9", vZe = "\u2976", yZe = "\u2A7B", bZe = "\u25C3", xZe = "\u22B4", wZe = "\u25C2", OZe = "\u2996", kZe = "\u294A", SZe = "\u2966", TZe = "\u2268\uFE00", CZe = "\u2268\uFE00", EZe = "\xAF", _Ze = "\u2642", AZe = "\u2720", LZe = "\u2720", RZe = "\u21A6", MZe = "\u21A6", DZe = "\u21A7", PZe = "\u21A4", NZe = "\u21A5", IZe = "\u25AE", $Ze = "\u2A29", BZe = "\u041C", FZe = "\u043C", zZe = "\u2014", QZe = "\u223A", UZe = "\u2221", VZe = "\u205F", qZe = "\u2133", YZe = "\u{1D510}", WZe = "\u{1D52A}", GZe = "\u2127", XZe = "\xB5", HZe = "*", ZZe = "\u2AF0", jZe = "\u2223", KZe = "\xB7", JZe = "\u229F", eje = "\u2212", tje = "\u2238", rje = "\u2A2A", nje = "\u2213", ije = "\u2ADB", sje = "\u2026", aje = "\u2213", oje = "\u22A7", lje = "\u{1D544}", cje = "\u{1D55E}", uje = "\u2213", hje = "\u{1D4C2}", fje = "\u2133", dje = "\u223E", pje = "\u039C", gje = "\u03BC", mje = "\u22B8", vje = "\u22B8", yje = "\u2207", bje = "\u0143", xje = "\u0144", wje = "\u2220\u20D2", Oje = "\u2249", kje = "\u2A70\u0338", Sje = "\u224B\u0338", Tje = "\u0149", Cje = "\u2249", Eje = "\u266E", _je = "\u2115", Aje = "\u266E", Lje = "\xA0", Rje = "\u224E\u0338", Mje = "\u224F\u0338", Dje = "\u2A43", Pje = "\u0147", Nje = "\u0148", Ije = "\u0145", $je = "\u0146", Bje = "\u2247", Fje = "\u2A6D\u0338", zje = "\u2A42", Qje = "\u041D", Uje = "\u043D", Vje = "\u2013", qje = "\u2924", Yje = "\u2197", Wje = "\u21D7", Gje = "\u2197", Xje = "\u2260", Hje = "\u2250\u0338", Zje = "\u200B", jje = "\u200B", Kje = "\u200B", Jje = "\u200B", eKe = "\u2262", tKe = "\u2928", rKe = "\u2242\u0338", nKe = "\u226B", iKe = "\u226A", sKe = ` `, aKe = "\u2204", oKe = "\u2204", lKe = "\u{1D511}", cKe = "\u{1D52B}", uKe = "\u2267\u0338", hKe = "\u2271", fKe = "\u2271", dKe = "\u2267\u0338", pKe = "\u2A7E\u0338", gKe = "\u2A7E\u0338", mKe = "\u22D9\u0338", vKe = "\u2275", yKe = "\u226B\u20D2", bKe = "\u226F", xKe = "\u226F", wKe = "\u226B\u0338", OKe = "\u21AE", kKe = "\u21CE", SKe = "\u2AF2", TKe = "\u220B", CKe = "\u22FC", EKe = "\u22FA", _Ke = "\u220B", AKe = "\u040A", LKe = "\u045A", RKe = "\u219A", MKe = "\u21CD", DKe = "\u2025", PKe = "\u2266\u0338", NKe = "\u2270", IKe = "\u219A", $Ke = "\u21CD", BKe = "\u21AE", FKe = "\u21CE", zKe = "\u2270", QKe = "\u2266\u0338", UKe = "\u2A7D\u0338", VKe = "\u2A7D\u0338", qKe = "\u226E", YKe = "\u22D8\u0338", WKe = "\u2274", GKe = "\u226A\u20D2", XKe = "\u226E", HKe = "\u22EA", ZKe = "\u22EC", jKe = "\u226A\u0338", KKe = "\u2224", JKe = "\u2060", eJe = "\xA0", tJe = "\u{1D55F}", rJe = "\u2115", nJe = "\u2AEC", iJe = "\xAC", sJe = "\u2262", aJe = "\u226D", oJe = "\u2226", lJe = "\u2209", cJe = "\u2260", uJe = "\u2242\u0338", hJe = "\u2204", fJe = "\u226F", dJe = "\u2271", pJe = "\u2267\u0338", gJe = "\u226B\u0338", mJe = "\u2279", vJe = "\u2A7E\u0338", yJe = "\u2275", bJe = "\u224E\u0338", xJe = "\u224F\u0338", wJe = "\u2209", OJe = "\u22F5\u0338", kJe = "\u22F9\u0338", SJe = "\u2209", TJe = "\u22F7", CJe = "\u22F6", EJe = "\u29CF\u0338", _Je = "\u22EA", AJe = "\u22EC", LJe = "\u226E", RJe = "\u2270", MJe = "\u2278", DJe = "\u226A\u0338", PJe = "\u2A7D\u0338", NJe = "\u2274", IJe = "\u2AA2\u0338", $Je = "\u2AA1\u0338", BJe = "\u220C", FJe = "\u220C", zJe = "\u22FE", QJe = "\u22FD", UJe = "\u2280", VJe = "\u2AAF\u0338", qJe = "\u22E0", YJe = "\u220C", WJe = "\u29D0\u0338", GJe = "\u22EB", XJe = "\u22ED", HJe = "\u228F\u0338", ZJe = "\u22E2", jJe = "\u2290\u0338", KJe = "\u22E3", JJe = "\u2282\u20D2", eet = "\u2288", tet = "\u2281", ret = "\u2AB0\u0338", net = "\u22E1", iet = "\u227F\u0338", set = "\u2283\u20D2", aet = "\u2289", oet = "\u2241", cet = "\u2244", uet = "\u2247", het = "\u2249", fet = "\u2224", det = "\u2226", pet = "\u2226", get = "\u2AFD\u20E5", met = "\u2202\u0338", vet = "\u2A14", yet = "\u2280", bet = "\u22E0", xet = "\u2280", wet = "\u2AAF\u0338", Oet = "\u2AAF\u0338", ket = "\u2933\u0338", Tet = "\u219B", Cet = "\u21CF", Eet = "\u219D\u0338", _et = "\u219B", Aet = "\u21CF", Let = "\u22EB", Ret = "\u22ED", Met = "\u2281", Det = "\u22E1", Pet = "\u2AB0\u0338", Net = "\u{1D4A9}", Iet = "\u{1D4C3}", $et = "\u2224", Bet = "\u2226", Fet = "\u2241", zet = "\u2244", Qet = "\u2244", Uet = "\u2224", Vet = "\u2226", qet = "\u22E2", Yet = "\u22E3", Wet = "\u2284", Get = "\u2AC5\u0338", Xet = "\u2288", Het = "\u2282\u20D2", Zet = "\u2288", jet = "\u2AC5\u0338", Ket = "\u2281", Jet = "\u2AB0\u0338", ett = "\u2285", ttt = "\u2AC6\u0338", rtt = "\u2289", ntt = "\u2283\u20D2", itt = "\u2289", stt = "\u2AC6\u0338", att = "\u2279", ott = "\xD1", ltt = "\xF1", ctt = "\u2278", utt = "\u22EA", htt = "\u22EC", ftt = "\u22EB", dtt = "\u22ED", ptt = "\u039D", gtt = "\u03BD", mtt = "#", vtt = "\u2116", ytt = "\u2007", btt = "\u224D\u20D2", xtt = "\u22AC", wtt = "\u22AD", Ott = "\u22AE", ktt = "\u22AF", Stt = "\u2265\u20D2", Ttt = ">\u20D2", Ctt = "\u2904", Ett = "\u29DE", _tt = "\u2902", Att = "\u2264\u20D2", Ltt = "<\u20D2", Rtt = "\u22B4\u20D2", Mtt = "\u2903", Dtt = "\u22B5\u20D2", Ptt = "\u223C\u20D2", Ntt = "\u2923", Itt = "\u2196", $tt = "\u21D6", Btt = "\u2196", Ftt = "\u2927", ztt = "\xD3", Qtt = "\xF3", Utt = "\u229B", Vtt = "\xD4", qtt = "\xF4", Ytt = "\u229A", Wtt = "\u041E", Gtt = "\u043E", Xtt = "\u229D", Htt = "\u0150", Ztt = "\u0151", jtt = "\u2A38", Ktt = "\u2299", Jtt = "\u29BC", ert = "\u0152", trt = "\u0153", rrt = "\u29BF", nrt = "\u{1D512}", irt = "\u{1D52C}", srt = "\u02DB", art = "\xD2", ort = "\xF2", lrt = "\u29C1", crt = "\u29B5", urt = "\u03A9", hrt = "\u222E", frt = "\u21BA", drt = "\u29BE", prt = "\u29BB", grt = "\u203E", mrt = "\u29C0", vrt = "\u014C", yrt = "\u014D", brt = "\u03A9", xrt = "\u03C9", wrt = "\u039F", Ort = "\u03BF", krt = "\u29B6", Srt = "\u2296", Trt = "\u{1D546}", Crt = "\u{1D560}", Ert = "\u29B7", _rt = "\u201C", Art = "\u2018", Lrt = "\u29B9", Rrt = "\u2295", Mrt = "\u21BB", Drt = "\u2A54", Prt = "\u2228", Nrt = "\u2A5D", Irt = "\u2134", $rt = "\u2134", Brt = "\xAA", Frt = "\xBA", zrt = "\u22B6", Qrt = "\u2A56", Urt = "\u2A57", Vrt = "\u2A5B", qrt = "\u24C8", Yrt = "\u{1D4AA}", Wrt = "\u2134", Grt = "\xD8", Xrt = "\xF8", Hrt = "\u2298", Zrt = "\xD5", jrt = "\xF5", Krt = "\u2A36", Jrt = "\u2A37", ent = "\u2297", tnt = "\xD6", rnt = "\xF6", nnt = "\u233D", int = "\u203E", snt = "\u23DE", ant = "\u23B4", ont = "\u23DC", lnt = "\xB6", cnt = "\u2225", unt = "\u2225", hnt = "\u2AF3", fnt = "\u2AFD", dnt = "\u2202", pnt = "\u2202", gnt = "\u041F", mnt = "\u043F", vnt = "%", ynt = ".", bnt = "\u2030", xnt = "\u22A5", wnt = "\u2031", Ont = "\u{1D513}", knt = "\u{1D52D}", Snt = "\u03A6", Tnt = "\u03C6", Cnt = "\u03D5", Ent = "\u2133", _nt = "\u260E", Ant = "\u03A0", Lnt = "\u03C0", Rnt = "\u22D4", Mnt = "\u03D6", Dnt = "\u210F", Pnt = "\u210E", Nnt = "\u210F", Int = "\u2A23", $nt = "\u229E", Bnt = "\u2A22", Fnt = "+", znt = "\u2214", Qnt = "\u2A25", Unt = "\u2A72", Vnt = "\xB1", qnt = "\xB1", Ynt = "\u2A26", Wnt = "\u2A27", Gnt = "\xB1", Xnt = "\u210C", Hnt = "\u2A15", Znt = "\u{1D561}", jnt = "\u2119", Knt = "\xA3", Jnt = "\u2AB7", eit = "\u2ABB", tit = "\u227A", rit = "\u227C", nit = "\u2AB7", iit = "\u227A", sit = "\u227C", ait = "\u227A", oit = "\u2AAF", lit = "\u227C", cit = "\u227E", uit = "\u2AAF", hit = "\u2AB9", fit = "\u2AB5", dit = "\u22E8", pit = "\u2AAF", git = "\u2AB3", mit = "\u227E", vit = "\u2032", yit = "\u2033", bit = "\u2119", xit = "\u2AB9", wit = "\u2AB5", Oit = "\u22E8", kit = "\u220F", Sit = "\u220F", Tit = "\u232E", Cit = "\u2312", Eit = "\u2313", _it = "\u221D", Ait = "\u221D", Lit = "\u2237", Rit = "\u221D", Mit = "\u227E", Dit = "\u22B0", Pit = "\u{1D4AB}", Nit = "\u{1D4C5}", Iit = "\u03A8", $it = "\u03C8", Bit = "\u2008", Fit = "\u{1D514}", zit = "\u{1D52E}", Qit = "\u2A0C", Uit = "\u{1D562}", Vit = "\u211A", qit = "\u2057", Yit = "\u{1D4AC}", Wit = "\u{1D4C6}", Git = "\u210D", Xit = "\u2A16", Hit = "?", Zit = "\u225F", jit = '"', Kit = '"', Jit = "\u21DB", est = "\u223D\u0331", tst = "\u0154", rst = "\u0155", nst = "\u221A", ist = "\u29B3", sst = "\u27E9", ast = "\u27EB", ost = "\u2992", lst = "\u29A5", cst = "\u27E9", ust = "\xBB", hst = "\u2975", fst = "\u21E5", dst = "\u2920", pst = "\u2933", gst = "\u2192", mst = "\u21A0", vst = "\u21D2", yst = "\u291E", bst = "\u21AA", xst = "\u21AC", wst = "\u2945", Ost = "\u2974", kst = "\u2916", Sst = "\u21A3", Tst = "\u219D", Cst = "\u291A", Est = "\u291C", _st = "\u2236", Ast = "\u211A", Lst = "\u290D", Rst = "\u290F", Mst = "\u2910", Dst = "\u2773", Pst = "}", Nst = "]", Ist = "\u298C", $st = "\u298E", Bst = "\u2990", Fst = "\u0158", zst = "\u0159", Qst = "\u0156", Ust = "\u0157", Vst = "\u2309", qst = "}", Yst = "\u0420", Wst = "\u0440", Gst = "\u2937", Xst = "\u2969", Hst = "\u201D", Zst = "\u201D", jst = "\u21B3", Kst = "\u211C", Jst = "\u211B", eat = "\u211C", tat = "\u211D", rat = "\u211C", nat = "\u25AD", iat = "\xAE", sat = "\xAE", aat = "\u220B", oat = "\u21CB", lat = "\u296F", cat = "\u297D", uat = "\u230B", hat = "\u{1D52F}", fat = "\u211C", dat = "\u2964", pat = "\u21C1", gat = "\u21C0", mat = "\u296C", vat = "\u03A1", yat = "\u03C1", bat = "\u03F1", xat = "\u27E9", wat = "\u21E5", Oat = "\u2192", kat = "\u2192", Sat = "\u21D2", Tat = "\u21C4", Cat = "\u21A3", Eat = "\u2309", _at = "\u27E7", Aat = "\u295D", Lat = "\u2955", Rat = "\u21C2", Mat = "\u230B", Dat = "\u21C1", Pat = "\u21C0", Nat = "\u21C4", Iat = "\u21CC", $at = "\u21C9", Bat = "\u219D", Fat = "\u21A6", zat = "\u22A2", Qat = "\u295B", Uat = "\u22CC", Vat = "\u29D0", qat = "\u22B3", Yat = "\u22B5", Wat = "\u294F", Gat = "\u295C", Xat = "\u2954", Hat = "\u21BE", Zat = "\u2953", jat = "\u21C0", Kat = "\u02DA", Jat = "\u2253", eot = "\u21C4", tot = "\u21CC", rot = "\u200F", not = "\u23B1", iot = "\u23B1", sot = "\u2AEE", aot = "\u27ED", oot = "\u21FE", lot = "\u27E7", cot = "\u2986", uot = "\u{1D563}", hot = "\u211D", fot = "\u2A2E", dot = "\u2A35", pot = "\u2970", got = ")", mot = "\u2994", vot = "\u2A12", yot = "\u21C9", bot = "\u21DB", xot = "\u203A", wot = "\u{1D4C7}", Oot = "\u211B", kot = "\u21B1", Sot = "\u21B1", Tot = "]", Cot = "\u2019", Eot = "\u2019", _ot = "\u22CC", Aot = "\u22CA", Lot = "\u25B9", Rot = "\u22B5", Mot = "\u25B8", Dot = "\u29CE", Pot = "\u29F4", Not = "\u2968", Iot = "\u211E", $ot = "\u015A", Bot = "\u015B", Fot = "\u201A", zot = "\u2AB8", Qot = "\u0160", Uot = "\u0161", Vot = "\u2ABC", qot = "\u227B", Yot = "\u227D", Wot = "\u2AB0", Got = "\u2AB4", Xot = "\u015E", Hot = "\u015F", Zot = "\u015C", jot = "\u015D", Kot = "\u2ABA", Jot = "\u2AB6", elt = "\u22E9", tlt = "\u2A13", rlt = "\u227F", nlt = "\u0421", ilt = "\u0441", slt = "\u22A1", alt = "\u22C5", olt = "\u2A66", llt = "\u2925", clt = "\u2198", ult = "\u21D8", hlt = "\u2198", flt = "\xA7", dlt = ";", plt = "\u2929", glt = "\u2216", mlt = "\u2216", vlt = "\u2736", ylt = "\u{1D516}", blt = "\u{1D530}", xlt = "\u2322", wlt = "\u266F", Olt = "\u0429", klt = "\u0449", Slt = "\u0428", Tlt = "\u0448", Clt = "\u2193", Elt = "\u2190", _lt = "\u2223", Alt = "\u2225", Llt = "\u2192", Rlt = "\u2191", Mlt = "\xAD", Dlt = "\u03A3", Plt = "\u03C3", Nlt = "\u03C2", Ilt = "\u03C2", $lt = "\u223C", Blt = "\u2A6A", Flt = "\u2243", zlt = "\u2243", Qlt = "\u2A9E", Ult = "\u2AA0", Vlt = "\u2A9D", qlt = "\u2A9F", Ylt = "\u2246", Wlt = "\u2A24", Glt = "\u2972", Xlt = "\u2190", Hlt = "\u2218", Zlt = "\u2216", jlt = "\u2A33", Klt = "\u29E4", Jlt = "\u2223", ect = "\u2323", tct = "\u2AAA", rct = "\u2AAC", nct = "\u2AAC\uFE00", ict = "\u042C", sct = "\u044C", act = "\u233F", oct = "\u29C4", lct = "/", cct = "\u{1D54A}", uct = "\u{1D564}", hct = "\u2660", fct = "\u2660", dct = "\u2225", pct = "\u2293", gct = "\u2293\uFE00", mct = "\u2294", vct = "\u2294\uFE00", yct = "\u221A", bct = "\u228F", xct = "\u2291", wct = "\u228F", Oct = "\u2291", kct = "\u2290", Sct = "\u2292", Tct = "\u2290", Cct = "\u2292", Ect = "\u25A1", _ct = "\u25A1", Act = "\u2293", Lct = "\u228F", Rct = "\u2291", Mct = "\u2290", Dct = "\u2292", Pct = "\u2294", Nct = "\u25AA", Ict = "\u25A1", $ct = "\u25AA", Bct = "\u2192", Fct = "\u{1D4AE}", zct = "\u{1D4C8}", Qct = "\u2216", Uct = "\u2323", Vct = "\u22C6", qct = "\u22C6", Yct = "\u2606", Wct = "\u2605", Gct = "\u03F5", Xct = "\u03D5", Hct = "\xAF", Zct = "\u2282", jct = "\u22D0", Kct = "\u2ABD", Jct = "\u2AC5", eut = "\u2286", tut = "\u2AC3", rut = "\u2AC1", nut = "\u2ACB", iut = "\u228A", sut = "\u2ABF", aut = "\u2979", out = "\u2282", lut = "\u22D0", cut = "\u2286", uut = "\u2AC5", hut = "\u2286", fut = "\u228A", dut = "\u2ACB", put = "\u2AC7", gut = "\u2AD5", mut = "\u2AD3", vut = "\u2AB8", yut = "\u227B", but = "\u227D", xut = "\u227B", wut = "\u2AB0", Out = "\u227D", kut = "\u227F", Sut = "\u2AB0", Tut = "\u2ABA", Cut = "\u2AB6", Eut = "\u22E9", _ut = "\u227F", Aut = "\u220B", Lut = "\u2211", Rut = "\u2211", Mut = "\u266A", Dut = "\xB9", Put = "\xB2", Nut = "\xB3", Iut = "\u2283", $ut = "\u22D1", But = "\u2ABE", Fut = "\u2AD8", zut = "\u2AC6", Qut = "\u2287", Uut = "\u2AC4", Vut = "\u2283", qut = "\u2287", Yut = "\u27C9", Wut = "\u2AD7", Gut = "\u297B", Xut = "\u2AC2", Hut = "\u2ACC", Zut = "\u228B", jut = "\u2AC0", Kut = "\u2283", Jut = "\u22D1", eht = "\u2287", tht = "\u2AC6", rht = "\u228B", nht = "\u2ACC", iht = "\u2AC8", sht = "\u2AD4", aht = "\u2AD6", oht = "\u2926", lht = "\u2199", cht = "\u21D9", uht = "\u2199", hht = "\u292A", fht = "\xDF", dht = " ", pht = "\u2316", ght = "\u03A4", mht = "\u03C4", vht = "\u23B4", yht = "\u0164", bht = "\u0165", xht = "\u0162", wht = "\u0163", Oht = "\u0422", kht = "\u0442", Sht = "\u20DB", Tht = "\u2315", Cht = "\u{1D517}", Eht = "\u{1D531}", _ht = "\u2234", Aht = "\u2234", Lht = "\u2234", Rht = "\u0398", Mht = "\u03B8", Dht = "\u03D1", Pht = "\u03D1", Nht = "\u2248", Iht = "\u223C", $ht = "\u205F\u200A", Bht = "\u2009", Fht = "\u2009", zht = "\u2248", Qht = "\u223C", Uht = "\xDE", Vht = "\xFE", qht = "\u02DC", Yht = "\u223C", Wht = "\u2243", Ght = "\u2245", Xht = "\u2248", Hht = "\u2A31", Zht = "\u22A0", jht = "\xD7", Kht = "\u2A30", Jht = "\u222D", eft = "\u2928", tft = "\u2336", rft = "\u2AF1", nft = "\u22A4", ift = "\u{1D54B}", sft = "\u{1D565}", aft = "\u2ADA", oft = "\u2929", lft = "\u2034", cft = "\u2122", uft = "\u2122", hft = "\u25B5", fft = "\u25BF", dft = "\u25C3", pft = "\u22B4", gft = "\u225C", mft = "\u25B9", vft = "\u22B5", yft = "\u25EC", bft = "\u225C", xft = "\u2A3A", wft = "\u20DB", Oft = "\u2A39", kft = "\u29CD", Sft = "\u2A3B", Tft = "\u23E2", Cft = "\u{1D4AF}", Eft = "\u{1D4C9}", _ft = "\u0426", Aft = "\u0446", Lft = "\u040B", Rft = "\u045B", Mft = "\u0166", Dft = "\u0167", Pft = "\u226C", Nft = "\u219E", Ift = "\u21A0", $ft = "\xDA", Bft = "\xFA", Fft = "\u2191", zft = "\u219F", Qft = "\u21D1", Uft = "\u2949", Vft = "\u040E", qft = "\u045E", Yft = "\u016C", Wft = "\u016D", Gft = "\xDB", Xft = "\xFB", Hft = "\u0423", Zft = "\u0443", jft = "\u21C5", Kft = "\u0170", Jft = "\u0171", edt = "\u296E", tdt = "\u297E", rdt = "\u{1D518}", ndt = "\u{1D532}", idt = "\xD9", sdt = "\xF9", adt = "\u2963", odt = "\u21BF", ldt = "\u21BE", cdt = "\u2580", udt = "\u231C", hdt = "\u231C", fdt = "\u230F", ddt = "\u25F8", pdt = "\u016A", gdt = "\u016B", mdt = "\xA8", vdt = "_", ydt = "\u23DF", bdt = "\u23B5", xdt = "\u23DD", wdt = "\u22C3", Odt = "\u228E", kdt = "\u0172", Sdt = "\u0173", Tdt = "\u{1D54C}", Cdt = "\u{1D566}", Edt = "\u2912", _dt = "\u2191", Adt = "\u2191", Ldt = "\u21D1", Rdt = "\u21C5", Mdt = "\u2195", Ddt = "\u2195", Pdt = "\u21D5", Ndt = "\u296E", Idt = "\u21BF", $dt = "\u21BE", Bdt = "\u228E", Fdt = "\u2196", zdt = "\u2197", Qdt = "\u03C5", Udt = "\u03D2", Vdt = "\u03D2", qdt = "\u03A5", Ydt = "\u03C5", Wdt = "\u21A5", Gdt = "\u22A5", Xdt = "\u21C8", Hdt = "\u231D", Zdt = "\u231D", jdt = "\u230E", Kdt = "\u016E", Jdt = "\u016F", e0t = "\u25F9", t0t = "\u{1D4B0}", r0t = "\u{1D4CA}", n0t = "\u22F0", i0t = "\u0168", s0t = "\u0169", a0t = "\u25B5", o0t = "\u25B4", l0t = "\u21C8", c0t = "\xDC", u0t = "\xFC", h0t = "\u29A7", f0t = "\u299C", d0t = "\u03F5", p0t = "\u03F0", g0t = "\u2205", m0t = "\u03D5", v0t = "\u03D6", y0t = "\u221D", b0t = "\u2195", x0t = "\u21D5", w0t = "\u03F1", O0t = "\u03C2", k0t = "\u228A\uFE00", S0t = "\u2ACB\uFE00", T0t = "\u228B\uFE00", C0t = "\u2ACC\uFE00", E0t = "\u03D1", _0t = "\u22B2", A0t = "\u22B3", L0t = "\u2AE8", R0t = "\u2AEB", M0t = "\u2AE9", D0t = "\u0412", P0t = "\u0432", N0t = "\u22A2", I0t = "\u22A8", $0t = "\u22A9", B0t = "\u22AB", F0t = "\u2AE6", z0t = "\u22BB", Q0t = "\u2228", U0t = "\u22C1", V0t = "\u225A", q0t = "\u22EE", Y0t = "|", W0t = "\u2016", G0t = "|", X0t = "\u2016", H0t = "\u2223", Z0t = "|", j0t = "\u2758", K0t = "\u2240", J0t = "\u200A", ept = "\u{1D519}", tpt = "\u{1D533}", rpt = "\u22B2", npt = "\u2282\u20D2", ipt = "\u2283\u20D2", spt = "\u{1D54D}", apt = "\u{1D567}", opt = "\u221D", lpt = "\u22B3", cpt = "\u{1D4B1}", upt = "\u{1D4CB}", hpt = "\u2ACB\uFE00", fpt = "\u228A\uFE00", dpt = "\u2ACC\uFE00", ppt = "\u228B\uFE00", gpt = "\u22AA", mpt = "\u299A", vpt = "\u0174", ypt = "\u0175", bpt = "\u2A5F", xpt = "\u2227", wpt = "\u22C0", Opt = "\u2259", kpt = "\u2118", Spt = "\u{1D51A}", Tpt = "\u{1D534}", Cpt = "\u{1D54E}", Ept = "\u{1D568}", _pt = "\u2118", Apt = "\u2240", Lpt = "\u2240", Rpt = "\u{1D4B2}", Mpt = "\u{1D4CC}", Dpt = "\u22C2", Ppt = "\u25EF", Npt = "\u22C3", Ipt = "\u25BD", $pt = "\u{1D51B}", Bpt = "\u{1D535}", Fpt = "\u27F7", zpt = "\u27FA", Qpt = "\u039E", Upt = "\u03BE", Vpt = "\u27F5", qpt = "\u27F8", Ypt = "\u27FC", Wpt = "\u22FB", Gpt = "\u2A00", Xpt = "\u{1D54F}", Hpt = "\u{1D569}", Zpt = "\u2A01", jpt = "\u2A02", Kpt = "\u27F6", Jpt = "\u27F9", egt = "\u{1D4B3}", tgt = "\u{1D4CD}", rgt = "\u2A06", ngt = "\u2A04", igt = "\u25B3", sgt = "\u22C1", agt = "\u22C0", ogt = "\xDD", lgt = "\xFD", cgt = "\u042F", ugt = "\u044F", hgt = "\u0176", fgt = "\u0177", dgt = "\u042B", pgt = "\u044B", ggt = "\xA5", mgt = "\u{1D51C}", vgt = "\u{1D536}", ygt = "\u0407", bgt = "\u0457", xgt = "\u{1D550}", wgt = "\u{1D56A}", Ogt = "\u{1D4B4}", kgt = "\u{1D4CE}", Sgt = "\u042E", Tgt = "\u044E", Cgt = "\xFF", Egt = "\u0178", _gt = "\u0179", Agt = "\u017A", Lgt = "\u017D", Rgt = "\u017E", Mgt = "\u0417", Dgt = "\u0437", Pgt = "\u017B", Ngt = "\u017C", Igt = "\u2128", $gt = "\u200B", Bgt = "\u0396", Fgt = "\u03B6", zgt = "\u{1D537}", Qgt = "\u2128", Ugt = "\u0416", Vgt = "\u0436", qgt = "\u21DD", Ygt = "\u{1D56B}", Wgt = "\u2124", Ggt = "\u{1D4B5}", Xgt = "\u{1D4CF}", Hgt = "\u200D", Zgt = "\u200C", jgt = { Aacute: MRe, @@ -31606,12 +31625,12 @@ const MRe = "\xC1", DRe = "\xE1", PRe = "\u0102", NRe = "\u0103", IRe = "\u223E" (function(t) { t.exports = jgt; })(xP); -var wP = /[!-#%-\*,-\/:;\?@\[-\]_\{\}\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]/, L1 = {}, WU = {}; +var wP = /[!-#%-\*,-\/:;\?@\[-\]_\{\}\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]/, L1 = {}, GU = {}; function Kgt(t) { - var e, r, n = WU[t]; + var e, r, n = GU[t]; if (n) return n; - for (n = WU[t] = [], e = 0; e < 128; e++) + for (n = GU[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]; @@ -31642,12 +31661,12 @@ function fC(t, e, r) { } fC.defaultChars = ";/?:@&=+$,-_.!~*'()#"; fC.componentChars = "-_.!~*'()"; -var Jgt = fC, GU = {}; +var Jgt = fC, XU = {}; function emt(t) { - var e, r, n = GU[t]; + var e, r, n = XU[t]; if (n) return n; - for (n = GU[t] = [], e = 0; e < 128; e++) + for (n = XU[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); @@ -31689,10 +31708,10 @@ function c3() { 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 nmt = /^([a-z0-9.+-]+:)/i, imt = /:[0-9]*$/, smt = /^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/, amt = ["<", ">", '"', "`", " ", "\r", ` -`, " "], omt = ["{", "}", "|", "\\", "^", "`"].concat(amt), lmt = ["'"].concat(omt), XU = ["%", "/", "?", ";", "#"].concat(lmt), HU = ["/", "?", "#"], cmt = 255, ZU = /^[+a-z0-9A-Z_-]{0,63}$/, umt = /^([+a-z0-9A-Z_-]{0,63})(.*)$/, jU = { +`, " "], omt = ["{", "}", "|", "\\", "^", "`"].concat(amt), lmt = ["'"].concat(omt), HU = ["%", "/", "?", ";", "#"].concat(lmt), ZU = ["/", "?", "#"], cmt = 255, jU = /^[+a-z0-9A-Z_-]{0,63}$/, umt = /^([+a-z0-9A-Z_-]{0,63})(.*)$/, KU = { javascript: !0, "javascript:": !0 -}, KU = { +}, JU = { http: !0, https: !0, ftp: !0, @@ -31718,13 +31737,13 @@ c3.prototype.parse = function(t, e) { return this.pathname = l[1], l[2] && (this.search = l[2]), this; } var u = nmt.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 && jU[u]) && (o = o.substr(2), this.slashes = !0)), !jU[u] && (a || u && !KU[u])) { + 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 && KU[u]) && (o = o.substr(2), this.slashes = !0)), !KU[u] && (a || u && !JU[u])) { var h = -1; - for (r = 0; r < HU.length; r++) - s = o.indexOf(HU[r]), s !== -1 && (h === -1 || s < h) && (h = s); + for (r = 0; r < ZU.length; r++) + s = o.indexOf(ZU[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 < XU.length; r++) - s = o.indexOf(XU[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 < HU.length; r++) + s = o.indexOf(HU[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 || ""; @@ -31733,10 +31752,10 @@ c3.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(ZU)) { + if (!!v && !v.match(jU)) { for (var y = "", b = 0, w = v.length; b < w; b++) v.charCodeAt(b) > 127 ? y += "x" : y += v[b]; - if (!y.match(ZU)) { + if (!y.match(jU)) { var O = m.slice(0, r), S = m.slice(r + 1), C = v.match(umt); C && (O.push(C[1]), S.unshift(C[2])), S.length && (o = S.join(".") + o), this.hostname = O.join("."); break; @@ -31749,7 +31768,7 @@ c3.prototype.parse = function(t, e) { var T = o.indexOf("#"); T !== -1 && (this.hash = o.substr(T), o = o.slice(0, T)); var A = o.indexOf("?"); - return A !== -1 && (this.search = o.substr(A), o = o.slice(0, A)), o && (this.pathname = o), KU[i] && this.hostname && !this.pathname && (this.pathname = ""), this; + return A !== -1 && (this.search = o.substr(A), o = o.slice(0, A)), o && (this.pathname = o), JU[i] && this.hostname && !this.pathname && (this.pathname = ""), this; }; c3.prototype.parseHost = function(t) { var e = imt.exec(t); @@ -31760,25 +31779,25 @@ L1.encode = Jgt; L1.decode = tmt; L1.format = rmt; L1.parse = fmt; -var Rd = {}, w6, JU; -function lse() { - return JU || (JU = 1, w6 = /[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/), w6; -} -var O6, eV; +var Rd = {}, w6, eV; function cse() { - return eV || (eV = 1, O6 = /[\0-\x1F\x7F-\x9F]/), O6; + return eV || (eV = 1, w6 = /[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/), w6; } -var k6, tV; +var O6, tV; +function use() { + return tV || (tV = 1, O6 = /[\0-\x1F\x7F-\x9F]/), O6; +} +var k6, rV; function dmt() { - return tV || (tV = 1, k6 = /[\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]/), k6; + return rV || (rV = 1, k6 = /[\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]/), k6; } -var S6, rV; -function use() { - return rV || (rV = 1, S6 = /[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/), S6; +var S6, nV; +function hse() { + return nV || (nV = 1, S6 = /[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/), S6; } -var nV; +var iV; function pmt() { - return nV || (nV = 1, Rd.Any = lse(), Rd.Cc = cse(), Rd.Cf = dmt(), Rd.P = wP, Rd.Z = use()), Rd; + return iV || (iV = 1, Rd.Any = cse(), Rd.Cc = use(), Rd.Cf = dmt(), Rd.P = wP, Rd.Z = hse()), Rd; } (function(t) { function e(k) { @@ -31936,7 +31955,7 @@ var pC = {}, gmt = function(e, r, n) { } } return s && (l = e.pos), e.pos = h, l; -}, iV = Wr.unescapeAll, mmt = function(e, r, n) { +}, sV = Wr.unescapeAll, mmt = function(e, r, n) { var i, s, a = 0, o = r, l = { ok: !1, pos: 0, @@ -31948,7 +31967,7 @@ var pC = {}, gmt = 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 = iV(e.slice(o + 1, r)), l.ok = !0, l; + return l.pos = r + 1, l.str = sV(e.slice(o + 1, r)), l.ok = !0, l; if (i === 92 && r + 1 < n) { r += 2; continue; @@ -31973,7 +31992,7 @@ var pC = {}, gmt = function(e, r, n) { } r++; } - return o === r || s !== 0 || (l.str = iV(e.slice(o, r)), l.lines = a, l.pos = r, l.ok = !0), l; + return o === r || s !== 0 || (l.str = sV(e.slice(o, r)), l.lines = a, l.pos = r, l.ok = !0), l; }, vmt = Wr.unescapeAll, ymt = function(e, r, n) { var i, s, a = 0, o = r, l = { ok: !1, @@ -32201,7 +32220,7 @@ var Lmt = function(e) { } } } -}, hse = /\+-|\.\.|\?\?\?\?|!!!!|,,|--/, Rmt = /\((c|tm|r|p)\)/i, Mmt = /\((c|tm|r|p)\)/ig, Dmt = { +}, fse = /\+-|\.\.|\?\?\?\?|!!!!|,,|--/, Rmt = /\((c|tm|r|p)\)/i, Mmt = /\((c|tm|r|p)\)/ig, Dmt = { c: "\xA9", r: "\xAE", p: "\xA7", @@ -32218,14 +32237,14 @@ function Nmt(t) { function Imt(t) { var e, r, n = 0; for (e = t.length - 1; e >= 0; e--) - r = t[e], r.type === "text" && !n && hse.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 && fse.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 $mt = function(e) { var r; if (!!e.md.options.typographer) for (r = e.tokens.length - 1; r >= 0; r--) - e.tokens[r].type === "inline" && (Rmt.test(e.tokens[r].content) && Nmt(e.tokens[r].children), hse.test(e.tokens[r].content) && Imt(e.tokens[r].children)); -}, sV = Wr.isWhiteSpace, aV = Wr.isPunctChar, oV = Wr.isMdAsciiPunct, Bmt = /['"]/, lV = /['"]/g, cV = "\u2019"; + e.tokens[r].type === "inline" && (Rmt.test(e.tokens[r].content) && Nmt(e.tokens[r].children), fse.test(e.tokens[r].content) && Imt(e.tokens[r].children)); +}, aV = Wr.isWhiteSpace, oV = Wr.isPunctChar, lV = Wr.isMdAsciiPunct, Bmt = /['"]/, cV = /['"]/g, uV = "\u2019"; function IO(t, e, r) { return t.substr(0, e) + r + t.substr(e + 1); } @@ -32238,7 +32257,7 @@ function Fmt(t, e) { continue; i = n.content, a = 0, o = i.length; e: - for (; a < o && (lV.lastIndex = a, s = lV.exec(i), !!s); ) { + for (; a < o && (cV.lastIndex = a, s = cV.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 @@ -32255,8 +32274,8 @@ function Fmt(t, e) { f = t[b].content.charCodeAt(0); break; } - if (d = oV(h) || aV(String.fromCharCode(h)), p = oV(f) || aV(String.fromCharCode(f)), g = sV(h), m = sV(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 = IO(n.content, s.index, cV)); + if (d = lV(h) || oV(String.fromCharCode(h)), p = lV(f) || oV(String.fromCharCode(f)), g = aV(h), m = aV(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 = IO(n.content, s.index, uV)); continue; } if (y) { @@ -32275,7 +32294,7 @@ function Fmt(t, e) { pos: s.index, single: w, level: l - }) : y && w && (n.content = IO(n.content, s.index, cV)); + }) : y && w && (n.content = IO(n.content, s.index, uV)); } } } @@ -32313,11 +32332,11 @@ M1.prototype.attrJoin = function(e, r) { n < 0 ? this.attrPush([e, r]) : this.attrs[n][1] = this.attrs[n][1] + " " + r; }; var kP = M1, Qmt = kP; -function fse(t, e, r) { +function dse(t, e, r) { this.src = t, this.env = r, this.tokens = [], this.inlineMode = !1, this.md = e; } -fse.prototype.Token = Qmt; -var Umt = fse, Vmt = OP, T6 = [ +dse.prototype.Token = Qmt; +var Umt = dse, Vmt = OP, T6 = [ ["normalize", Smt], ["block", Tmt], ["inline", Cmt], @@ -32341,7 +32360,7 @@ function E6(t, e) { var r = t.bMarks[e] + t.tShift[e], n = t.eMarks[e]; return t.src.substr(r, n - r); } -function uV(t) { +function hV(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); @@ -32366,7 +32385,7 @@ var Ymt = 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 = E6(e, r).trim(), a.indexOf("|") === -1 || e.sCount[r] - e.blkIndent >= 4 || (f = uV(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 = E6(e, r).trim(), a.indexOf("|") === -1 || e.sCount[r] - e.blkIndent >= 4 || (f = hV(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; @@ -32380,7 +32399,7 @@ var Ymt = function(e, r, n, i) { } if (w || (a = E6(e, h).trim(), !a) || e.sCount[h] - e.blkIndent >= 4) break; - for (f = uV(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 = hV(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); } @@ -32414,19 +32433,19 @@ var Ymt = 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; -}, hV = Wr.isSpace, Xmt = function(e, r, n, i) { +}, fV = Wr.isSpace, Xmt = 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, A, E = e.lineMax, L = e.bMarks[r] + e.tShift[r], _ = e.eMarks[r]; if (e.sCount[r] - e.blkIndent >= 4 || e.src.charCodeAt(L++) !== 62) return !1; if (i) return !0; - for (l = p = e.sCount[r] + 1, e.src.charCodeAt(L) === 32 ? (L++, l++, p++, s = !1, O = !0) : e.src.charCodeAt(L) === 9 ? (O = !0, (e.bsCount[r] + p) % 4 === 3 ? (L++, l++, p++, s = !1) : s = !0) : O = !1, g = [e.bMarks[r]], e.bMarks[r] = L; L < _ && (a = e.src.charCodeAt(L), hV(a)); ) { + for (l = p = e.sCount[r] + 1, e.src.charCodeAt(L) === 32 ? (L++, l++, p++, s = !1, O = !0) : e.src.charCodeAt(L) === 9 ? (O = !0, (e.bsCount[r] + p) % 4 === 3 ? (L++, l++, p++, s = !1) : s = !0) : O = !1, g = [e.bMarks[r]], e.bMarks[r] = L; L < _ && (a = e.src.charCodeAt(L), fV(a)); ) { a === 9 ? p += 4 - (p + e.bsCount[r] + (s ? 1 : 0)) % 4 : p++; L++; } for (m = [e.bsCount[r]], e.bsCount[r] = e.sCount[r] + 1 + (O ? 1 : 0), h = L >= _, b = [e.sCount[r]], e.sCount[r] = p - l, w = [e.tShift[r]], e.tShift[r] = L - e.bMarks[r], C = e.md.block.ruler.getRules("blockquote"), y = e.parentType, e.parentType = "blockquote", d = r + 1; d < n && (A = e.sCount[d] < e.blkIndent, L = e.bMarks[d] + e.tShift[d], _ = e.eMarks[d], !(L >= _)); d++) { if (e.src.charCodeAt(L++) === 62 && !A) { - for (l = p = e.sCount[d] + 1, e.src.charCodeAt(L) === 32 ? (L++, l++, p++, s = !1, O = !0) : e.src.charCodeAt(L) === 9 ? (O = !0, (e.bsCount[d] + p) % 4 === 3 ? (L++, l++, p++, s = !1) : s = !0) : O = !1, g.push(e.bMarks[d]), e.bMarks[d] = L; L < _ && (a = e.src.charCodeAt(L), hV(a)); ) { + for (l = p = e.sCount[d] + 1, e.src.charCodeAt(L) === 32 ? (L++, l++, p++, s = !1, O = !0) : e.src.charCodeAt(L) === 9 ? (O = !0, (e.bsCount[d] + p) % 4 === 3 ? (L++, l++, p++, s = !1) : s = !0) : O = !1, g.push(e.bMarks[d]), e.bMarks[d] = L; L < _ && (a = e.src.charCodeAt(L), fV(a)); ) { a === 9 ? p += 4 - (p + e.bsCount[d] + (s ? 1 : 0)) % 4 : p++; L++; } @@ -32459,12 +32478,12 @@ var Ymt = function(e, r, n, i) { 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); -}, dse = Wr.isSpace; -function fV(t, e) { +}, pse = Wr.isSpace; +function dV(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), !dse(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), !pse(s)) ? -1 : n; } -function dV(t, e) { +function pV(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; @@ -32480,7 +32499,7 @@ function dV(t, e) { break; return -1; } - return i < s && (r = t.src.charCodeAt(i), !dse(r)) ? -1 : i; + return i < s && (r = t.src.charCodeAt(i), !pse(r)) ? -1 : i; } function jmt(t, e) { var r, n, i = t.level + 2; @@ -32491,10 +32510,10 @@ var Kmt = 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, A, E, L, _, R, $, k, P, M, N = !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 && (N = !0), (_ = dV(e, r)) >= 0) { + if (i && e.parentType === "paragraph" && e.sCount[r] >= e.blkIndent && (N = !0), (_ = pV(e, r)) >= 0) { if (f = !0, $ = e.bMarks[r] + e.tShift[r], y = Number(e.src.slice($, _ - 1)), N && y !== 1) return !1; - } else if ((_ = fV(e, r)) >= 0) + } else if ((_ = dV(e, r)) >= 0) f = !1; else return !1; @@ -32522,10 +32541,10 @@ var Kmt = function(e, r, n, i) { if (k) break; if (f) { - if (_ = dV(e, w), _ < 0) + if (_ = pV(e, w), _ < 0) break; $ = e.bMarks[w] + e.tShift[w]; - } else if (_ = fV(e, w), _ < 0) + } else if (_ = dV(e, w), _ < 0) break; if (v !== e.src.charCodeAt(_ - 1)) break; @@ -32643,7 +32662,7 @@ var Kmt = function(e, r, n, i) { "tr", "track", "ul" -], gC = {}, r1t = "[a-zA-Z_:][a-zA-Z0-9:._-]*", n1t = "[^\"'=<>`\\x00-\\x20]+", i1t = "'[^']*'", s1t = '"[^"]*"', a1t = "(?:" + n1t + "|" + i1t + "|" + s1t + ")", o1t = "(?:\\s+" + r1t + "(?:\\s*=\\s*" + a1t + ")?)", pse = "<[A-Za-z][A-Za-z0-9\\-]*" + o1t + "*\\s*\\/?>", gse = "<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>", l1t = "|", c1t = "<[?][\\s\\S]*?[?]>", u1t = "]*>", h1t = "", f1t = new RegExp("^(?:" + pse + "|" + gse + "|" + l1t + "|" + c1t + "|" + u1t + "|" + h1t + ")"), d1t = new RegExp("^(?:" + pse + "|" + gse + ")"); +], gC = {}, r1t = "[a-zA-Z_:][a-zA-Z0-9:._-]*", n1t = "[^\"'=<>`\\x00-\\x20]+", i1t = "'[^']*'", s1t = '"[^"]*"', a1t = "(?:" + n1t + "|" + i1t + "|" + s1t + ")", o1t = "(?:\\s+" + r1t + "(?:\\s*=\\s*" + a1t + ")?)", gse = "<[A-Za-z][A-Za-z0-9\\-]*" + o1t + "*\\s*\\/?>", mse = "<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>", l1t = "|", c1t = "<[?][\\s\\S]*?[?]>", u1t = "]*>", h1t = "", f1t = new RegExp("^(?:" + gse + "|" + mse + "|" + l1t + "|" + c1t + "|" + u1t + "|" + h1t + ")"), d1t = new RegExp("^(?:" + gse + "|" + mse + ")"); gC.HTML_TAG_RE = f1t; gC.HTML_OPEN_CLOSE_TAG_RE = d1t; var p1t = t1t, g1t = gC.HTML_OPEN_CLOSE_TAG_RE, Xp = [ @@ -32672,13 +32691,13 @@ var p1t = t1t, g1t = gC.HTML_OPEN_CLOSE_TAG_RE, Xp = [ } } return e.line = a, o = e.push("html_block", "", 0), o.map = [r, a], o.content = e.getLines(r, a, e.blkIndent, !0), !0; -}, pV = Wr.isSpace, v1t = function(e, r, n, i) { +}, gV = Wr.isSpace, v1t = 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 && !pV(s) ? !1 : (i || (h = e.skipSpacesBack(h, u), o = e.skipCharsBack(h, 35, u), o > u && pV(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); + return a > 6 || u < h && !gV(s) ? !1 : (i || (h = e.skipSpacesBack(h, u), o = e.skipCharsBack(h, 35, u), o > u && gV(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); }, y1t = 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) @@ -32713,7 +32732,7 @@ var p1t = t1t, g1t = gC.HTML_OPEN_CLOSE_TAG_RE, Xp = [ 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; -}, mse = kP, mC = Wr.isSpace; +}, vse = kP, mC = Wr.isSpace; function wu(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++) { @@ -32728,7 +32747,7 @@ function wu(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; } wu.prototype.push = function(t, e, r) { - var n = new mse(t, e, r); + var n = new vse(t, e, r); return n.block = !0, r < 0 && this.level--, n.level = this.level, r > 0 && this.level++, this.tokens.push(n), n; }; wu.prototype.isEmpty = function(e) { @@ -32783,7 +32802,7 @@ wu.prototype.getLines = function(e, r, n, i) { } return h.join(""); }; -wu.prototype.Token = mse; +wu.prototype.Token = vse; var x1t = wu, w1t = OP, BO = [ ["table", Ymt, ["paragraph", "reference"]], ["code", Wmt], @@ -32871,7 +32890,7 @@ var S1t = function(e, r) { a++; return e.pos = a, !0; }, E1t = Wr.isSpace, TP = []; -for (var gV = 0; gV < 256; gV++) +for (var mV = 0; mV < 256; mV++) TP.push(0); "\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(t) { TP[t.charCodeAt(0)] = 1; @@ -32922,7 +32941,7 @@ yC.tokenize = function(e, r) { }); return e.pos += i.length, !0; }; -function mV(t, e) { +function vV(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)); @@ -32934,8 +32953,8 @@ function mV(t, e) { } yC.postProcess = function(e) { var r, n = e.tokens_meta, i = e.tokens_meta.length; - for (mV(e, e.delimiters), r = 0; r < i; r++) - n[r] && n[r].delimiters && mV(e, n[r].delimiters); + for (vV(e, e.delimiters), r = 0; r < i; r++) + n[r] && n[r].delimiters && vV(e, n[r].delimiters); }; var bC = {}; bC.tokenize = function(e, r) { @@ -32953,15 +32972,15 @@ bC.tokenize = function(e, r) { }); return e.pos += i.length, !0; }; -function vV(t, e) { +function yV(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--)); } bC.postProcess = function(e) { var r, n = e.tokens_meta, i = e.tokens_meta.length; - for (vV(e, e.delimiters), r = 0; r < i; r++) - n[r] && n[r].delimiters && vV(e, n[r].delimiters); + for (yV(e, e.delimiters), r = 0; r < i; r++) + n[r] && n[r].delimiters && yV(e, n[r].delimiters); }; var L1t = Wr.normalizeReference, _6 = Wr.isSpace, R1t = 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; @@ -33040,20 +33059,20 @@ function B1t(t) { var F1t = 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 && !B1t(n)) || (i = e.src.slice(o).match($1t), !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); -}, yV = xP.exports, z1t = Wr.has, Q1t = Wr.isValidEntityCode, bV = Wr.fromCodePoint, U1t = /^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i, V1t = /^&([a-z][a-z0-9]{1,31});/i, q1t = function(e, r) { +}, bV = xP.exports, z1t = Wr.has, Q1t = Wr.isValidEntityCode, xV = Wr.fromCodePoint, U1t = /^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i, V1t = /^&([a-z][a-z0-9]{1,31});/i, q1t = 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(U1t), s) - return r || (i = s[1][0].toLowerCase() === "x" ? parseInt(s[1].slice(1), 16) : parseInt(s[1], 10), e.pending += Q1t(i) ? bV(i) : bV(65533)), e.pos += s[0].length, !0; - } else if (s = e.src.slice(a).match(V1t), s && z1t(yV, s[1])) - return r || (e.pending += yV[s[1]]), e.pos += s[0].length, !0; + return r || (i = s[1][0].toLowerCase() === "x" ? parseInt(s[1].slice(1), 16) : parseInt(s[1], 10), e.pending += Q1t(i) ? xV(i) : xV(65533)), e.pos += s[0].length, !0; + } else if (s = e.src.slice(a).match(V1t), s && z1t(bV, s[1])) + return r || (e.pending += bV[s[1]]), e.pos += s[0].length, !0; } return r || (e.pending += "&"), e.pos++, !0; }; -function xV(t, e) { +function wV(t, e) { var r, n, i, s, a, o, l, u, h = {}, f = e.length; if (!!f) { var d = 0, p = -2, g = []; @@ -33070,14 +33089,14 @@ function xV(t, e) { } var Y1t = function(e) { var r, n = e.tokens_meta, i = e.tokens_meta.length; - for (xV(e, e.delimiters), r = 0; r < i; r++) - n[r] && n[r].delimiters && xV(e, n[r].delimiters); + for (wV(e, e.delimiters), r = 0; r < i; r++) + n[r] && n[r].delimiters && wV(e, n[r].delimiters); }, W1t = 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); -}, CP = kP, wV = Wr.isWhiteSpace, OV = Wr.isPunctChar, kV = Wr.isMdAsciiPunct; +}, CP = kP, OV = Wr.isWhiteSpace, kV = Wr.isPunctChar, SV = Wr.isMdAsciiPunct; function jx(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; } @@ -33094,14 +33113,14 @@ jx.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 = kV(n) || OV(String.fromCharCode(n)), f = kV(i) || OV(String.fromCharCode(i)), l = wV(n), h = wV(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 = SV(n) || kV(String.fromCharCode(n)), f = SV(i) || kV(String.fromCharCode(i)), l = OV(n), h = OV(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 }; }; jx.prototype.Token = CP; -var G1t = jx, SV = OP, L6 = [ +var G1t = jx, TV = OP, L6 = [ ["text", S1t], ["newline", C1t], ["escape", _1t], @@ -33121,9 +33140,9 @@ var G1t = jx, SV = OP, L6 = [ ]; function Kx() { var t; - for (this.ruler = new SV(), t = 0; t < L6.length; t++) + for (this.ruler = new TV(), t = 0; t < L6.length; t++) this.ruler.push(L6[t][0], L6[t][1]); - for (this.ruler2 = new SV(), t = 0; t < R6.length; t++) + for (this.ruler2 = new TV(), t = 0; t < R6.length; t++) this.ruler2.push(R6[t][0], R6[t][1]); } Kx.prototype.skipToken = function(t) { @@ -33159,11 +33178,11 @@ Kx.prototype.parse = function(t, e, r, n) { s[i](o); }; Kx.prototype.State = G1t; -var X1t = Kx, M6, TV; +var X1t = Kx, M6, CV; function H1t() { - return TV || (TV = 1, M6 = function(t) { + return CV || (CV = 1, M6 = function(t) { var e = {}; - e.src_Any = lse().source, e.src_Cc = cse().source, e.src_Z = use().source, e.src_P = wP.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 = cse().source, e.src_Cc = use().source, e.src_Z = hse().source, e.src_P = wP.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; }), M6; @@ -33188,20 +33207,20 @@ function j1t(t) { function K1t(t) { return xC(t) === "[object RegExp]"; } -function CV(t) { +function EV(t) { return xC(t) === "[object Function]"; } function J1t(t) { return t.replace(/[.?*+^$[\]\\(){}|-]/g, "\\$&"); } -var vse = { +var yse = { fuzzyLink: !0, fuzzyEmail: !0, fuzzyIP: !1 }; function evt(t) { return Object.keys(t || {}).reduce(function(e, r) { - return e || vse.hasOwnProperty(r); + return e || yse.hasOwnProperty(r); }, !1); } var tvt = { @@ -33244,7 +33263,7 @@ function svt(t) { return t.test(n) ? n.match(t)[0].length : 0; }; } -function EV() { +function _V() { return function(t, e) { e.normalize(t); }; @@ -33266,7 +33285,7 @@ function u3(t) { if (l !== null) { var u = { validate: null, link: null }; if (t.__compiled__[o] = u, j1t(l)) { - K1t(l.validate) ? u.validate = svt(l.validate) : CV(l.validate) ? u.validate = l.validate : s(o, l), CV(l.normalize) ? u.normalize = l.normalize : l.normalize ? s(o, l) : u.normalize = EV(); + K1t(l.validate) ? u.validate = svt(l.validate) : EV(l.validate) ? u.validate = l.validate : s(o, l), EV(l.normalize) ? u.normalize = l.normalize : l.normalize ? s(o, l) : u.normalize = _V(); return; } if (Z1t(l)) { @@ -33277,7 +33296,7 @@ function u3(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: EV() }; + }), t.__compiled__[""] = { validate: null, normalize: _V() }; var a = Object.keys(t.__compiled__).filter(function(o) { return o.length > 0 && t.__compiled__[o]; }).map(J1t).join("|"); @@ -33290,14 +33309,14 @@ function avt(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 _V(t, e) { +function AV(t, e) { var r = new avt(t, e); return t.__compiled__[r.schema].normalize(r, t), r; } function fl(t, e) { if (!(this instanceof fl)) return new fl(t, e); - e || evt(t) && (e = t, t = {}), this.__opts__ = O9({}, vse, e), this.__index__ = -1, this.__last_index__ = -1, this.__schema__ = "", this.__text_cache__ = "", this.__schemas__ = O9({}, tvt, t), this.__compiled__ = {}, this.__tlds__ = nvt, this.__tlds_replaced__ = !1, this.re = {}, u3(this); + e || evt(t) && (e = t, t = {}), this.__opts__ = O9({}, yse, e), this.__index__ = -1, this.__last_index__ = -1, this.__schema__ = "", this.__text_cache__ = "", this.__schemas__ = O9({}, tvt, t), this.__compiled__ = {}, this.__tlds__ = nvt, this.__tlds_replaced__ = !1, this.re = {}, u3(this); } fl.prototype.add = function(e, r) { return this.__schemas__[e] = r, u3(this), this; @@ -33326,9 +33345,9 @@ fl.prototype.testSchemaAt = function(e, r, n) { }; fl.prototype.match = function(e) { var r = 0, n = []; - this.__index__ >= 0 && this.__text_cache__ === e && (n.push(_V(this, r)), r = this.__last_index__); + this.__index__ >= 0 && this.__text_cache__ === e && (n.push(AV(this, r)), r = this.__last_index__); for (var i = r ? e.slice(r) : e; this.test(i); ) - n.push(_V(this, r)), i = i.slice(this.__last_index__), r += this.__last_index__; + n.push(AV(this, r)), i = i.slice(this.__last_index__), r += this.__last_index__; return n.length ? n : null; }; fl.prototype.tlds = function(e, r) { @@ -33342,7 +33361,7 @@ fl.prototype.normalize = function(e) { fl.prototype.onCompile = function() { }; var ovt = fl; -const Qg = 2147483647, Uc = 36, EP = 1, H2 = 26, lvt = 38, cvt = 700, yse = 72, bse = 128, xse = "-", uvt = /^xn--/, hvt = /[^\0-\x7F]/, fvt = /[\x2E\u3002\uFF0E\uFF61]/g, dvt = { +const Qg = 2147483647, Uc = 36, EP = 1, H2 = 26, lvt = 38, cvt = 700, bse = 72, xse = 128, wse = "-", uvt = /^xn--/, hvt = /[^\0-\x7F]/, fvt = /[\x2E\u3002\uFF0E\uFF61]/g, dvt = { overflow: "Overflow: input needs wider integers to process", "not-basic": "Illegal input >= 0x80 (not a basic code point)", "invalid-input": "Invalid input" @@ -33357,7 +33376,7 @@ function pvt(t, e) { r[n] = e(t[n]); return r; } -function wse(t, e) { +function Ose(t, e) { const r = t.split("@"); let n = ""; r.length > 1 && (n = r[0] + "@", t = r[1]), t = t.replace(fvt, "."); @@ -33378,18 +33397,18 @@ function _P(t) { } return e; } -const Ose = (t) => String.fromCodePoint(...t), gvt = function(t) { +const kse = (t) => String.fromCodePoint(...t), gvt = function(t) { return t >= 48 && t < 58 ? 26 + (t - 48) : t >= 65 && t < 91 ? t - 65 : t >= 97 && t < 123 ? t - 97 : Uc; -}, AV = function(t, e) { +}, LV = function(t, e) { return t + 22 + 75 * (t < 26) - ((e != 0) << 5); -}, kse = function(t, e, r) { +}, Sse = function(t, e, r) { let n = 0; for (t = r ? Vc(t / cvt) : t >> 1, t += Vc(t / e); t > D6 * H2 >> 1; n += Uc) t = Vc(t / D6); return Vc(n + (D6 + 1) * t / (t + lvt)); }, AP = function(t) { const e = [], r = t.length; - let n = 0, i = bse, s = yse, a = t.lastIndexOf(xse); + let n = 0, i = xse, s = bse, a = t.lastIndexOf(wse); a < 0 && (a = 0); for (let o = 0; o < a; ++o) t.charCodeAt(o) >= 128 && Jh("not-basic"), e.push(t.charCodeAt(o)); @@ -33406,19 +33425,19 @@ const Ose = (t) => String.fromCodePoint(...t), gvt = function(t) { h > Vc(Qg / g) && Jh("overflow"), h *= g; } const u = e.length + 1; - s = kse(n - l, u, l == 0), Vc(n / u) > Qg - i && Jh("overflow"), i += Vc(n / u), n %= u, e.splice(n++, 0, i); + s = Sse(n - l, u, l == 0), Vc(n / u) > Qg - i && Jh("overflow"), i += Vc(n / u), n %= u, e.splice(n++, 0, i); } return String.fromCodePoint(...e); }, LP = function(t) { const e = []; t = _P(t); const r = t.length; - let n = bse, i = 0, s = yse; + let n = xse, i = 0, s = bse; for (const l of t) l < 128 && e.push(P6(l)); const a = e.length; let o = a; - for (a && e.push(xse); o < r; ) { + for (a && e.push(wse); o < r; ) { let l = Qg; for (const h of t) h >= n && h < l && (l = h); @@ -33433,42 +33452,42 @@ const Ose = (t) => String.fromCodePoint(...t), gvt = function(t) { break; const g = f - p, m = Uc - p; e.push( - P6(AV(p + g % m, 0)) + P6(LV(p + g % m, 0)) ), f = Vc(g / m); } - e.push(P6(AV(f, 0))), s = kse(i, u, o === a), i = 0, ++o; + e.push(P6(LV(f, 0))), s = Sse(i, u, o === a), i = 0, ++o; } ++i, ++n; } return e.join(""); -}, Sse = function(t) { - return wse(t, function(e) { +}, Tse = function(t) { + return Ose(t, function(e) { return uvt.test(e) ? AP(e.slice(4).toLowerCase()) : e; }); -}, Tse = function(t) { - return wse(t, function(e) { +}, Cse = function(t) { + return Ose(t, function(e) { return hvt.test(e) ? "xn--" + LP(e) : e; }); }, mvt = { version: "2.3.1", ucs2: { decode: _P, - encode: Ose + encode: kse }, decode: AP, encode: LP, - toASCII: Tse, - toUnicode: Sse + toASCII: Cse, + toUnicode: Tse }, vvt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, ucs2decode: _P, - ucs2encode: Ose, + ucs2encode: kse, decode: AP, encode: LP, - toASCII: Tse, - toUnicode: Sse, + toASCII: Cse, + toUnicode: Tse, default: mvt -}, Symbol.toStringTag, { value: "Module" })), yvt = /* @__PURE__ */ Jj(vvt); +}, Symbol.toStringTag, { value: "Module" })), yvt = /* @__PURE__ */ eK(vvt); var bvt = { options: { html: !1, @@ -33575,7 +33594,7 @@ var bvt = { ] } } -}, qy = Wr, Ovt = pC, kvt = wmt, Svt = qmt, Tvt = O1t, Cvt = X1t, Evt = ovt, h0 = L1, Cse = yvt, _vt = { +}, qy = Wr, Ovt = pC, kvt = wmt, Svt = qmt, Tvt = O1t, Cvt = X1t, Evt = ovt, h0 = L1, Ese = yvt, _vt = { default: bvt, zero: xvt, commonmark: wvt @@ -33584,21 +33603,21 @@ function Rvt(t) { var e = t.trim().toLowerCase(); return Avt.test(e) ? !!Lvt.test(e) : !0; } -var Ese = ["http:", "https:", "mailto:"]; +var _se = ["http:", "https:", "mailto:"]; function Mvt(t) { var e = h0.parse(t, !0); - if (e.hostname && (!e.protocol || Ese.indexOf(e.protocol) >= 0)) + if (e.hostname && (!e.protocol || _se.indexOf(e.protocol) >= 0)) try { - e.hostname = Cse.toASCII(e.hostname); + e.hostname = Ese.toASCII(e.hostname); } catch { } return h0.encode(h0.format(e)); } function Dvt(t) { var e = h0.parse(t, !0); - if (e.hostname && (!e.protocol || Ese.indexOf(e.protocol) >= 0)) + if (e.hostname && (!e.protocol || _se.indexOf(e.protocol) >= 0)) try { - e.hostname = Cse.toUnicode(e.hostname); + e.hostname = Ese.toUnicode(e.hostname); } catch { } return h0.decode(h0.format(e), h0.decode.defaultChars + "%"); @@ -33668,9 +33687,9 @@ dl.prototype.renderInline = function(t, e) { var Pvt = dl; (function(t) { t.exports = Pvt; -})(ose); -const Nvt = /* @__PURE__ */ Kj(ose.exports); -async function _se(t, e) { +})(lse); +const Nvt = /* @__PURE__ */ Jj(lse.exports); +async function Ase(t, e) { return new Promise((r) => { const n = t.getElementById(e); if (n) { @@ -33701,7 +33720,7 @@ class RP { } createTransformPlaceholder(e, r, n) { const i = "placeholder-" + Math.random().toString().slice(2); - return r.then(_se(this.preview, i)).then((s) => { + return r.then(Ase(this.preview, i)).then((s) => { this.cache.set(e, s), this.fillPlaceholder(i, s); }).catch((s) => { console.error("Error in custom transform:", n, "Caused by input:", e, "Error:", s), this.cancelTransform(i), this.cache.set(e, e); @@ -33734,7 +33753,7 @@ const Ivt = (t, { const o = s(...a); return t.map((l) => i.overloadTransform(l, e)).reduce(Ivt, o); }; -}, Ase = "custom_role", Bvt = ({ +}, Lse = "custom_role", Bvt = ({ target: t, transform: e }) => ({ @@ -33743,7 +33762,7 @@ const Ivt = (t, { run({ content: n }) { - const i = new this.state.Token(Ase, "span", 1); + const i = new this.state.Token(Lse, "span", 1); return i.content = e(n), [i]; } } @@ -33752,10 +33771,10 @@ const Ivt = (t, { name: o, role: l }) => (a[o] = l, a), {}); - n.renderer.rules[Ase] = (a, o, l, u, h) => `${a[o].content}`, n.use(iie, { + n.renderer.rules[Lse] = (a, o, l, u, h) => `${a[o].content}`, n.use(sie, { roles: s }); -}, Lse = "custom_directive", zvt = ({ +}, Rse = "custom_directive", zvt = ({ target: t, transform: e, required_arguments: r = 0, @@ -33772,7 +33791,7 @@ const Ivt = (t, { fr(this, "option_spec", i); } run(o) { - const l = this.createToken(Lse, "div", 1, { + const l = this.createToken(Rse, "div", 1, { map: o.map, block: !0 }); @@ -33784,11 +33803,11 @@ const Ivt = (t, { name: o, directive: l }) => (a[o] = l, a), {}); - n.renderer.rules[Lse] = (a, o, l, u, h) => `
${a[o].content}
`, n.use(Hie, { + n.renderer.rules[Rse] = (a, o, l, u, h) => `
${a[o].content}
`, n.use(Zie, { directives: s }); }; -var Rse = { exports: {} }; +var Mse = { exports: {} }; /** * @preserve * JS Implementation of incremental MurmurHash3 (r150) (as of May 10, 2013) @@ -33841,13 +33860,13 @@ var Rse = { exports: {} }; return this.h1 = typeof n == "number" ? n : 0, this.rem = this.k1 = this.len = 0, this; }, e = new r(), t.exports = r; })(); -})(Rse); -const Mse = Rse.exports; +})(Mse); +const Dse = Mse.exports; function Uvt(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 Dse = "data-line-id", Pse = () => Math.random().toString().replace(".", ""); +const Pse = "data-line-id", Nse = () => Math.random().toString().replace(".", ""); function Vvt(t) { t.use(Yvt), t.use(Wvt), t.use(Gvt), t.use(Xvt), t.use(Hvt); const e = ["softbreak"], r = [...Object.keys(t.renderer.rules).filter((n) => !e.includes(n)), "paragraph_open", "heading_open", "admonition_open", "link_open", "list_item_open", "checkbox_input", "html_block", "html_inline"]; @@ -33872,8 +33891,8 @@ function qvt(t) { !h && !f.type.includes("_open") && (f.map = [e[r].map[0] + u, e[r].map[0] + u + 1], h = !0); } } else if (e[r].map) { - const l = e[r].map[0] + i.startLine - (i.chunkId !== 0), u = Pse(); - i.lineMap.current.has(l) || (i.lineMap.current.set(l, u), e[r].attrSet(Dse, u)); + const l = e[r].map[0] + i.startLine - (i.chunkId !== 0), u = Nse(); + i.lineMap.current.has(l) || (i.lineMap.current.set(l, u), e[r].attrSet(Pse, u)); } return a(e, r, n, i, s); }; @@ -33921,15 +33940,15 @@ function Hvt(t) { const u = Wr.escapeHtml(l.content), h = l.map[0] + s.startLine - (s.chunkId !== 0); let f = u.split(` `).filter((d, p, g) => p !== g.length - 1).map((d, p) => { - const g = Pse(); - return s.lineMap.current.set(h + p + 1, g), `${d}`; + const g = Nse(); + return s.lineMap.current.set(h + p + 1, g), `${d}`; }).join(` `); return `
${f}
`; }; } -function Nse(t, e, r) { +function Ise(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--) ; @@ -33940,7 +33959,7 @@ function MP(t, e) { if (n === e) return r; } -var Ise = { exports: {} }; +var $se = { exports: {} }; (function(t, e) { (function(r, n) { t.exports = n(); @@ -34229,8 +34248,8 @@ var Ise = { exports: {} }; return L(1e3 * k); }, L.en = C[S], L.Ls = C, L.p = {}, L; }); -})(Ise); -const Ks = Ise.exports, bk = { +})($se); +const Ks = $se.exports, bk = { min: { r: 0, g: 0, @@ -34401,12 +34420,12 @@ class iyt { this.changed = !0, this.data.a = e; } } -const syt = iyt, ayt = new syt({ r: 0, g: 0, b: 0, a: 0 }, "transparent"), wC = ayt, $se = { +const syt = iyt, ayt = new syt({ r: 0, g: 0, b: 0, a: 0 }, "transparent"), wC = ayt, Bse = { re: /^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i, parse: (t) => { if (t.charCodeAt(0) !== 35) return; - const e = t.match($se.re); + const e = t.match(Bse.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; @@ -34421,7 +34440,7 @@ const syt = iyt, ayt = new syt({ r: 0, g: 0, b: 0, a: 0 }, "transparent"), wC = const { r: e, g: r, b: n, a: i } = t; return i < 1 ? `#${Zh[Math.round(e)]}${Zh[Math.round(r)]}${Zh[Math.round(n)]}${Zh[Math.round(i * 255)]}` : `#${Zh[Math.round(e)]}${Zh[Math.round(r)]}${Zh[Math.round(n)]}`; } -}, Yy = $se, xk = { +}, Yy = Bse, xk = { 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) => { @@ -34620,13 +34639,13 @@ const syt = iyt, ayt = new syt({ r: 0, g: 0, b: 0, a: 0 }, "transparent"), wC = if (wk.colors[r] === e) return r; } -}, LV = wk, Bse = { +}, RV = wk, Fse = { 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(Bse.re); + const r = t.match(Fse.re); if (!r) return; const [, n, i, s, a, o, l, u, h] = r; @@ -34641,9 +34660,9 @@ const syt = iyt, ayt = new syt({ r: 0, g: 0, b: 0, a: 0 }, "transparent"), wC = const { r: e, g: r, b: n, a: i } = t; return i < 1 ? `rgba(${gr.lang.round(e)}, ${gr.lang.round(r)}, ${gr.lang.round(n)}, ${gr.lang.round(i)})` : `rgb(${gr.lang.round(e)}, ${gr.lang.round(r)}, ${gr.lang.round(n)})`; } -}, zO = Bse, oyt = { +}, zO = Fse, oyt = { format: { - keyword: LV, + keyword: RV, hex: Yy, rgb: zO, rgba: zO, @@ -34653,7 +34672,7 @@ const syt = iyt, ayt = new syt({ r: 0, g: 0, b: 0, a: 0 }, "transparent"), wC = parse: (t) => { if (typeof t != "string") return t; - const e = Yy.parse(t) || zO.parse(t) || FO.parse(t) || LV.parse(t); + const e = Yy.parse(t) || zO.parse(t) || FO.parse(t) || RV.parse(t); if (e) return e; throw new Error(`Unsupported color format: "${t}"`); @@ -34664,9 +34683,9 @@ const syt = iyt, ayt = new syt({ r: 0, g: 0, b: 0, a: 0 }, "transparent"), wC = for (const n in e) r[n] = gr.channel.clamp[n](e[n]); return ac.stringify(r); -}, Fse = lyt, cyt = (t, e, r = 0, n = 1) => { +}, zse = lyt, cyt = (t, e, r = 0, n = 1) => { if (typeof t != "number") - return Fse(t, { a: e }); + return zse(t, { a: e }); const i = wC.set({ r: gr.channel.clamp.r(t), g: gr.channel.clamp.g(e), @@ -34674,17 +34693,17 @@ const syt = iyt, ayt = new syt({ r: 0, g: 0, b: 0, a: 0 }, "transparent"), wC = a: gr.channel.clamp.a(n) }); return ac.stringify(i); -}, E0 = cyt, uyt = (t, e) => gr.lang.round(ac.parse(t)[e]), zse = uyt, hyt = (t) => { +}, E0 = cyt, uyt = (t, e) => gr.lang.round(ac.parse(t)[e]), Qse = uyt, hyt = (t) => { const { r: e, g: r, b: n } = ac.parse(t), i = 0.2126 * gr.channel.toLinear(e) + 0.7152 * gr.channel.toLinear(r) + 0.0722 * gr.channel.toLinear(n); return gr.lang.round(i); }, fyt = hyt, dyt = (t) => fyt(t) >= 0.5, pyt = dyt, gyt = (t) => !pyt(t), wp = gyt, myt = (t, e, r) => { const n = ac.parse(t), i = n[e], s = gr.channel.clamp[e](i + r); return i !== s && (n[e] = s), ac.stringify(n); -}, Qse = myt, vyt = (t, e) => Qse(t, "l", e), Zt = vyt, yyt = (t, e) => Qse(t, "l", -e), tr = yyt, byt = (t, e) => { +}, Use = myt, vyt = (t, e) => Use(t, "l", e), Zt = vyt, yyt = (t, e) => Use(t, "l", -e), tr = yyt, byt = (t, e) => { const r = ac.parse(t), n = {}; for (const i in e) !e[i] || (n[i] = r[i] + e[i]); - return Fse(t, n); + return zse(t, n); }, Ue = byt, xyt = (t, e, r = 50) => { const { r: n, g: i, b: s, a } = ac.parse(t), { r: o, g: l, b: u, a: h } = ac.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 E0(y, b, w, O); @@ -34694,8 +34713,8 @@ const syt = iyt, ayt = new syt({ r: 0, g: 0, b: 0, a: 0 }, "transparent"), wC = }, Dt = Oyt; /*! @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: Use, - setPrototypeOf: RV, + entries: Vse, + setPrototypeOf: MV, isFrozen: kyt, getPrototypeOf: Syt, getOwnPropertyDescriptor: Tyt @@ -34703,7 +34722,7 @@ const { let { freeze: La, seal: pl, - create: Vse + create: qse } = Object, { apply: k9, construct: S9 @@ -34720,7 +34739,7 @@ k9 || (k9 = function(e, r, n) { S9 || (S9 = function(e, r) { return new e(...r); }); -const QO = Mo(Array.prototype.forEach), MV = Mo(Array.prototype.pop), Ev = Mo(Array.prototype.push), Ok = Mo(String.prototype.toLowerCase), N6 = Mo(String.prototype.toString), DV = Mo(String.prototype.match), _v = Mo(String.prototype.replace), Cyt = Mo(String.prototype.indexOf), Eyt = Mo(String.prototype.trim), Ml = Mo(Object.prototype.hasOwnProperty), va = Mo(RegExp.prototype.test), Av = _yt(TypeError); +const QO = Mo(Array.prototype.forEach), DV = Mo(Array.prototype.pop), Ev = Mo(Array.prototype.push), Ok = Mo(String.prototype.toLowerCase), N6 = Mo(String.prototype.toString), PV = Mo(String.prototype.match), _v = Mo(String.prototype.replace), Cyt = Mo(String.prototype.indexOf), Eyt = Mo(String.prototype.trim), Ml = Mo(Object.prototype.hasOwnProperty), va = Mo(RegExp.prototype.test), Av = _yt(TypeError); function Mo(t) { return function(e) { for (var r = arguments.length, n = new Array(r > 1 ? r - 1 : 0), i = 1; i < r; i++) @@ -34737,7 +34756,7 @@ function _yt(t) { } function Dr(t, e) { let r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : Ok; - RV && RV(t, null); + MV && MV(t, null); let n = e.length; for (; n--; ) { let i = e[n]; @@ -34755,8 +34774,8 @@ function Ayt(t) { return t; } function Bd(t) { - const e = Vse(null); - for (const [r, n] of Use(t)) + const e = qse(null); + for (const [r, n] of Vse(t)) Ml(t, r) && (Array.isArray(n) ? e[r] = Ayt(n) : n && typeof n == "object" && n.constructor === Object ? e[r] = Bd(n) : e[r] = n); return e; } @@ -34776,22 +34795,22 @@ function Lv(t, e) { } return r; } -const PV = 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"]), $6 = 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"]), Lyt = 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"]), B6 = 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"]), Ryt = La(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), NV = La(["#text"]), IV = 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"]), F6 = 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"]), $V = 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"]), UO = La(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), Myt = pl(/\{\{[\w\W]*|[\w\W]*\}\}/gm), Dyt = pl(/<%[\w\W]*|[\w\W]*%>/gm), Pyt = pl(/\${[\w\W]*}/gm), Nyt = pl(/^data-[\-\w.\u00B7-\uFFFF]/), Iyt = pl(/^aria-[\-\w]+$/), qse = pl( +const NV = 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"]), $6 = 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"]), Lyt = 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"]), B6 = 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"]), Ryt = La(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), IV = La(["#text"]), $V = 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"]), F6 = 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"]), BV = 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"]), UO = La(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), Myt = pl(/\{\{[\w\W]*|[\w\W]*\}\}/gm), Dyt = pl(/<%[\w\W]*|[\w\W]*%>/gm), Pyt = pl(/\${[\w\W]*}/gm), Nyt = pl(/^data-[\-\w.\u00B7-\uFFFF]/), Iyt = pl(/^aria-[\-\w]+$/), Yse = pl( /^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i ), $yt = pl(/^(?:\w+script|data):/i), Byt = pl( /[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g -), Yse = pl(/^html$/i), Fyt = pl(/^[a-z][.\w]*(-[.\w]+)+$/i); -var BV = /* @__PURE__ */ Object.freeze({ +), Wse = pl(/^html$/i), Fyt = pl(/^[a-z][.\w]*(-[.\w]+)+$/i); +var FV = /* @__PURE__ */ Object.freeze({ __proto__: null, MUSTACHE_EXPR: Myt, ERB_EXPR: Dyt, TMPLIT_EXPR: Pyt, DATA_ATTR: Nyt, ARIA_ATTR: Iyt, - IS_ALLOWED_URI: qse, + IS_ALLOWED_URI: Yse, IS_SCRIPT_OR_DATA: $yt, ATTR_WHITESPACE: Byt, - DOCTYPE_NAME: Yse, + DOCTYPE_NAME: Wse, CUSTOM_ELEMENT: Fyt }); const Rv = { @@ -34829,9 +34848,9 @@ const Rv = { return console.warn("TrustedTypes policy " + s + " could not be created."), null; } }; -function Wse() { +function Gse() { let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : zyt(); - const e = (Je) => Wse(Je); + const e = (Je) => Gse(Je); if (e.version = "3.1.6", e.removed = [], !t || !t.document || t.document.nodeType !== Rv.document) return e.isSupported = !1, e; let { @@ -34862,7 +34881,7 @@ function Wse() { importNode: L } = n; let _ = {}; - e.isSupported = typeof Use == "function" && typeof w == "function" && C && C.createHTMLDocument !== void 0; + e.isSupported = typeof Vse == "function" && typeof w == "function" && C && C.createHTMLDocument !== void 0; const { MUSTACHE_EXPR: R, ERB_EXPR: $, @@ -34872,14 +34891,14 @@ function Wse() { IS_SCRIPT_OR_DATA: N, ATTR_WHITESPACE: D, CUSTOM_ELEMENT: I - } = BV; + } = FV; let { IS_ALLOWED_URI: F - } = BV, B = null; - const Q = Dr({}, [...PV, ...I6, ...$6, ...B6, ...NV]); + } = FV, B = null; + const Q = Dr({}, [...NV, ...I6, ...$6, ...B6, ...IV]); let Y = null; - const G = Dr({}, [...IV, ...F6, ...$V, ...UO]); - let X = Object.seal(Vse(null, { + const G = Dr({}, [...$V, ...F6, ...BV, ...UO]); + let X = Object.seal(qse(null, { tagNameCheck: { writable: !0, configurable: !1, @@ -34924,7 +34943,7 @@ function Wse() { Bd(fe), ne.ADD_DATA_URI_TAGS, at - ) : fe, le = Ml(ne, "FORBID_CONTENTS") ? Dr({}, ne.FORBID_CONTENTS, at) : ye, q = Ml(ne, "FORBID_TAGS") ? Dr({}, ne.FORBID_TAGS, at) : {}, ee = Ml(ne, "FORBID_ATTR") ? Dr({}, ne.FORBID_ATTR, at) : {}, H = Ml(ne, "USE_PROFILES") ? ne.USE_PROFILES : !1, se = ne.ALLOW_ARIA_ATTR !== !1, U = ne.ALLOW_DATA_ATTR !== !1, j = ne.ALLOW_UNKNOWN_PROTOCOLS || !1, W = ne.ALLOW_SELF_CLOSE_IN_ATTR !== !1, J = ne.SAFE_FOR_TEMPLATES || !1, oe = ne.SAFE_FOR_XML !== !1, ae = ne.WHOLE_DOCUMENT || !1, he = ne.RETURN_DOM || !1, _e = ne.RETURN_DOM_FRAGMENT || !1, Pe = ne.RETURN_TRUSTED_TYPE || !1, De = ne.FORCE_BODY || !1, He = ne.SANITIZE_DOM !== !1, nt = ne.SANITIZE_NAMED_PROPS || !1, Ie = ne.KEEP_CONTENT !== !1, de = ne.IN_PLACE || !1, F = ne.ALLOWED_URI_REGEXP || qse, Re = ne.NAMESPACE || Ee, X = ne.CUSTOM_ELEMENT_HANDLING || {}, ne.CUSTOM_ELEMENT_HANDLING && gt(ne.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (X.tagNameCheck = ne.CUSTOM_ELEMENT_HANDLING.tagNameCheck), ne.CUSTOM_ELEMENT_HANDLING && gt(ne.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (X.attributeNameCheck = ne.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), ne.CUSTOM_ELEMENT_HANDLING && typeof ne.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (X.allowCustomizedBuiltInElements = ne.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), J && (U = !1), _e && (he = !0), H && (B = Dr({}, NV), Y = [], H.html === !0 && (Dr(B, PV), Dr(Y, IV)), H.svg === !0 && (Dr(B, I6), Dr(Y, F6), Dr(Y, UO)), H.svgFilters === !0 && (Dr(B, $6), Dr(Y, F6), Dr(Y, UO)), H.mathMl === !0 && (Dr(B, B6), Dr(Y, $V), Dr(Y, UO))), ne.ADD_TAGS && (B === Q && (B = Bd(B)), Dr(B, ne.ADD_TAGS, at)), ne.ADD_ATTR && (Y === G && (Y = Bd(Y)), Dr(Y, ne.ADD_ATTR, at)), ne.ADD_URI_SAFE_ATTR && Dr(pe, ne.ADD_URI_SAFE_ATTR, at), ne.FORBID_CONTENTS && (le === ye && (le = Bd(le)), Dr(le, ne.FORBID_CONTENTS, at)), Ie && (B["#text"] = !0), ae && Dr(B, ["html", "head", "body"]), B.table && (Dr(B, ["tbody"]), delete q.tbody), ne.TRUSTED_TYPES_POLICY) { + ) : fe, le = Ml(ne, "FORBID_CONTENTS") ? Dr({}, ne.FORBID_CONTENTS, at) : ye, q = Ml(ne, "FORBID_TAGS") ? Dr({}, ne.FORBID_TAGS, at) : {}, ee = Ml(ne, "FORBID_ATTR") ? Dr({}, ne.FORBID_ATTR, at) : {}, H = Ml(ne, "USE_PROFILES") ? ne.USE_PROFILES : !1, se = ne.ALLOW_ARIA_ATTR !== !1, U = ne.ALLOW_DATA_ATTR !== !1, j = ne.ALLOW_UNKNOWN_PROTOCOLS || !1, W = ne.ALLOW_SELF_CLOSE_IN_ATTR !== !1, J = ne.SAFE_FOR_TEMPLATES || !1, oe = ne.SAFE_FOR_XML !== !1, ae = ne.WHOLE_DOCUMENT || !1, he = ne.RETURN_DOM || !1, _e = ne.RETURN_DOM_FRAGMENT || !1, Pe = ne.RETURN_TRUSTED_TYPE || !1, De = ne.FORCE_BODY || !1, He = ne.SANITIZE_DOM !== !1, nt = ne.SANITIZE_NAMED_PROPS || !1, Ie = ne.KEEP_CONTENT !== !1, de = ne.IN_PLACE || !1, F = ne.ALLOWED_URI_REGEXP || Yse, Re = ne.NAMESPACE || Ee, X = ne.CUSTOM_ELEMENT_HANDLING || {}, ne.CUSTOM_ELEMENT_HANDLING && gt(ne.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (X.tagNameCheck = ne.CUSTOM_ELEMENT_HANDLING.tagNameCheck), ne.CUSTOM_ELEMENT_HANDLING && gt(ne.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (X.attributeNameCheck = ne.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), ne.CUSTOM_ELEMENT_HANDLING && typeof ne.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (X.allowCustomizedBuiltInElements = ne.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), J && (U = !1), _e && (he = !0), H && (B = Dr({}, IV), Y = [], H.html === !0 && (Dr(B, NV), Dr(Y, $V)), H.svg === !0 && (Dr(B, I6), Dr(Y, F6), Dr(Y, UO)), H.svgFilters === !0 && (Dr(B, $6), Dr(Y, F6), Dr(Y, UO)), H.mathMl === !0 && (Dr(B, B6), Dr(Y, BV), Dr(Y, UO))), ne.ADD_TAGS && (B === Q && (B = Bd(B)), Dr(B, ne.ADD_TAGS, at)), ne.ADD_ATTR && (Y === G && (Y = Bd(Y)), Dr(Y, ne.ADD_ATTR, at)), ne.ADD_URI_SAFE_ATTR && Dr(pe, ne.ADD_URI_SAFE_ATTR, at), ne.FORBID_CONTENTS && (le === ye && (le = Bd(le)), Dr(le, ne.FORBID_CONTENTS, at)), Ie && (B["#text"] = !0), ae && Dr(B, ["html", "head", "body"]), B.table && (Dr(B, ["tbody"]), delete q.tbody), ne.TRUSTED_TYPES_POLICY) { if (typeof ne.TRUSTED_TYPES_POLICY.createHTML != "function") throw Av('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.'); if (typeof ne.TRUSTED_TYPES_POLICY.createScriptURL != "function") @@ -34979,7 +34998,7 @@ function Wse() { if (De) ne = "" + ne; else { - const lr = DV(ne, /^[\r\n\t ]+/); + const lr = PV(ne, /^[\r\n\t ]+/); Xe = lr && lr[0]; } tt === "application/xhtml+xml" && Re === Ee && (ne = '' + ne + ""); @@ -35065,7 +35084,7 @@ function Wse() { } return !0; }, Gr = function(ne) { - return ne !== "annotation-xml" && DV(ne, I); + return ne !== "annotation-xml" && PV(ne, I); }, Ar = function(ne) { ir("beforeSanitizeAttributes", ne, null); const { @@ -35114,7 +35133,7 @@ function Wse() { } } try { - ut ? ne.setAttributeNS(ut, lr, rt) : ne.setAttribute(lr, rt), Bt(ne) ? st(ne) : MV(e.removed); + ut ? ne.setAttributeNS(ut, lr, rt) : ne.setAttribute(lr, rt), Bt(ne) ? st(ne) : DV(e.removed); } catch { } } @@ -35166,7 +35185,7 @@ function Wse() { return (Y.shadowroot || Y.shadowrootmode) && (xr = L.call(n, xr, !0)), xr; } let ut = ae ? Ne.outerHTML : Ne.innerHTML; - return ae && B["!doctype"] && Ne.ownerDocument && Ne.ownerDocument.doctype && Ne.ownerDocument.doctype.name && va(Yse, Ne.ownerDocument.doctype.name) && (ut = " + return ae && B["!doctype"] && Ne.ownerDocument && Ne.ownerDocument.doctype && Ne.ownerDocument.doctype.name && va(Wse, Ne.ownerDocument.doctype.name) && (ut = " ` + ut), J && QO([R, $, k], (Et) => { ut = _v(ut, Et, " "); }), O && Pe ? O.createHTML(ut) : ut; @@ -35183,16 +35202,16 @@ function Wse() { typeof ne == "function" && (_[Je] = _[Je] || [], Ev(_[Je], ne)); }, e.removeHook = function(Je) { if (_[Je]) - return MV(_[Je]); + return DV(_[Je]); }, e.removeHooks = function(Je) { _[Je] && (_[Je] = []); }, e.removeAllHooks = function() { _ = {}; }, e; } -var Em = Wse(), Gse = Object.defineProperty, x = (t, e) => Gse(t, "name", { value: e, configurable: !0 }), Xse = (t, e) => { +var Em = Gse(), Xse = Object.defineProperty, x = (t, e) => Xse(t, "name", { value: e, configurable: !0 }), Hse = (t, e) => { for (var r in e) - Gse(t, r, { get: e[r], enumerable: !0 }); + Xse(t, r, { get: e[r], enumerable: !0 }); }, Du = { trace: 0, debug: 1, @@ -35222,25 +35241,25 @@ var Em = Wse(), Gse = Object.defineProperty, x = (t, e) => Gse(t, "name", { valu }, Z.error = () => { }, Z.fatal = () => { }, e <= Du.fatal && (Z.fatal = console.error ? console.error.bind(console, Uo("FATAL"), "color: orange") : console.log.bind(console, "\x1B[35m", Uo("FATAL"))), e <= Du.error && (Z.error = console.error ? console.error.bind(console, Uo("ERROR"), "color: orange") : console.log.bind(console, "\x1B[31m", Uo("ERROR"))), e <= Du.warn && (Z.warn = console.warn ? console.warn.bind(console, Uo("WARN"), "color: orange") : console.log.bind(console, "\x1B[33m", Uo("WARN"))), e <= Du.info && (Z.info = console.info ? console.info.bind(console, Uo("INFO"), "color: lightblue") : console.log.bind(console, "\x1B[34m", Uo("INFO"))), e <= Du.debug && (Z.debug = console.debug ? console.debug.bind(console, Uo("DEBUG"), "color: lightgreen") : console.log.bind(console, "\x1B[32m", Uo("DEBUG"))), e <= Du.trace && (Z.trace = console.debug ? console.debug.bind(console, Uo("TRACE"), "color: lightgreen") : console.log.bind(console, "\x1B[32m", Uo("TRACE"))); -}, "setLogLevel"), Uo = /* @__PURE__ */ x((t) => `%c${Ks().format("ss.SSS")} : ${t} : `, "format"), Hse = /^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s, Wy = /%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi, Uyt = /\s*%%.*\n/gm, Xb, Zse = (Xb = class extends Error { +}, "setLogLevel"), Uo = /* @__PURE__ */ x((t) => `%c${Ks().format("ss.SSS")} : ${t} : `, "format"), Zse = /^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s, Wy = /%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi, Uyt = /\s*%%.*\n/gm, Xb, jse = (Xb = class extends Error { constructor(e) { super(e), this.name = "UnknownDiagramError"; } }, (() => { x(Xb, "UnknownDiagramError"); })(), Xb), _m = {}, PP = /* @__PURE__ */ x(function(t, e) { - t = t.replace(Hse, "").replace(Wy, "").replace(Uyt, ` + t = t.replace(Zse, "").replace(Wy, "").replace(Uyt, ` `); for (const [r, { detector: n }] of Object.entries(_m)) if (n(t, e)) return r; - throw new Zse( + throw new jse( `No diagram type detected matching given configuration for text: ${t}` ); -}, "detectType"), jse = /* @__PURE__ */ x((...t) => { +}, "detectType"), Kse = /* @__PURE__ */ x((...t) => { for (const { id: e, detector: r, loader: n } of t) - Kse(e, r, n); -}, "registerLazyLoadedDiagrams"), Kse = /* @__PURE__ */ x((t, e, r) => { + Jse(e, r, n); +}, "registerLazyLoadedDiagrams"), Jse = /* @__PURE__ */ x((t, e, r) => { _m[t] && Z.warn(`Detector with key ${t} already exists. Overwriting.`), _m[t] = { detector: e, loader: r }, Z.debug(`Detector with key ${t} added${r ? " with loader" : ""}`); }, "addDetector"), Vyt = /* @__PURE__ */ x((t) => _m[t].loader, "getDiagramLoader"), T9 = /* @__PURE__ */ x((t, e, { depth: r = 2, clobber: n = !1 } = {}) => { const i = { depth: r, clobber: n }; @@ -35992,7 +36011,7 @@ var Em = Wse(), Gse = Object.defineProperty, x = (t, e) => Gse(t, "name", { valu fontSize: 16, markdownAutoWrap: !0, suppressErrorRendering: !1 -}, Jse = { +}, eae = { ...Vh, deterministicIDSeed: void 0, elk: { @@ -36203,7 +36222,7 @@ var Em = Wse(), Gse = Object.defineProperty, x = (t, e) => Gse(t, "name", { valu packet: { ...Vh.packet } -}, eae = /* @__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, ...eae(t[n], "")] : [...r, e + n], []), "keyify"), Jyt = new Set(eae(Jse, "")), cn = Jse, h3 = /* @__PURE__ */ x((t) => { +}, tae = /* @__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, ...tae(t[n], "")] : [...r, e + n], []), "keyify"), Jyt = new Set(tae(eae, "")), cn = eae, h3 = /* @__PURE__ */ x((t) => { if (Z.debug("sanitizeDirective called with", t), !(typeof t != "object" || t == null)) { if (Array.isArray(t)) { t.forEach((e) => h3(e)); @@ -36237,28 +36256,28 @@ var Em = Wse(), Gse = Object.defineProperty, x = (t, e) => Gse(t, "name", { valu n === "{" ? e++ : n === "}" && r++; } return e !== r ? "{ /* ERROR: Unbalanced CSS */ }" : t; -}, "sanitizeCss"), Am = Object.freeze(cn), Ga = Ui({}, Am), tae, Lm = [], Gy = Ui({}, Am), SC = /* @__PURE__ */ x((t, e) => { +}, "sanitizeCss"), Am = Object.freeze(cn), Ga = Ui({}, Am), rae, Lm = [], Gy = Ui({}, Am), SC = /* @__PURE__ */ x((t, e) => { let r = Ui({}, t), n = {}; for (const i of e) - iae(i), n = Ui(n, i); + sae(i), n = Ui(n, i); if (r = Ui(r, n), n.theme && n.theme in rh) { - const i = Ui({}, tae), s = Ui( + const i = Ui({}, rae), s = Ui( i.themeVariables || {}, n.themeVariables ); r.theme && r.theme in rh && (r.themeVariables = rh[r.theme].getThemeVariables(s)); } - return Gy = r, sae(Gy), Gy; + return Gy = r, aae(Gy), Gy; }, "updateCurrentConfig"), t2t = /* @__PURE__ */ x((t) => (Ga = Ui({}, Am), Ga = Ui(Ga, t), t.theme && rh[t.theme] && (Ga.themeVariables = rh[t.theme].getThemeVariables(t.themeVariables)), SC(Ga, Lm), Ga), "setSiteConfig"), r2t = /* @__PURE__ */ x((t) => { - tae = Ui({}, t); -}, "saveConfigFromInitialize"), n2t = /* @__PURE__ */ x((t) => (Ga = Ui(Ga, t), SC(Ga, Lm), Ga), "updateSiteConfig"), rae = /* @__PURE__ */ x(() => Ui({}, Ga), "getSiteConfig"), nae = /* @__PURE__ */ x((t) => (sae(t), Ui(Gy, t), Li()), "setConfig"), Li = /* @__PURE__ */ x(() => Ui({}, Gy), "getConfig"), iae = /* @__PURE__ */ x((t) => { + rae = Ui({}, t); +}, "saveConfigFromInitialize"), n2t = /* @__PURE__ */ x((t) => (Ga = Ui(Ga, t), SC(Ga, Lm), Ga), "updateSiteConfig"), nae = /* @__PURE__ */ x(() => Ui({}, Ga), "getSiteConfig"), iae = /* @__PURE__ */ x((t) => (aae(t), Ui(Gy, t), Li()), "setConfig"), Li = /* @__PURE__ */ x(() => Ui({}, Gy), "getConfig"), sae = /* @__PURE__ */ x((t) => { var e; !t || (["secure", ...(e = Ga.secure) != null ? e : []].forEach((r) => { Object.hasOwn(t, r) && (Z.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" && iae(t[r]); + typeof t[r] == "string" && (t[r].includes("<") || t[r].includes(">") || t[r].includes("url(data:")) && delete t[r], typeof t[r] == "object" && sae(t[r]); })); }, "sanitize"), i2t = /* @__PURE__ */ x((t) => { var e; @@ -36270,17 +36289,17 @@ var Em = Wse(), Gse = Object.defineProperty, x = (t, e) => Gse(t, "name", { valu Lm = [], SC(t, Lm); }, "reset"), s2t = { LAZY_LOAD_DEPRECATED: "The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead." -}, FV = {}, a2t = /* @__PURE__ */ x((t) => { - FV[t] || (Z.warn(s2t[t]), FV[t] = !0); -}, "issueWarning"), sae = /* @__PURE__ */ x((t) => { +}, zV = {}, a2t = /* @__PURE__ */ x((t) => { + zV[t] || (Z.warn(s2t[t]), zV[t] = !0); +}, "issueWarning"), aae = /* @__PURE__ */ x((t) => { !t || (t.lazyLoadedDiagrams || t.loadExternalDiagramsAtStartup) && a2t("LAZY_LOAD_DEPRECATED"); -}, "checkConfig"), D1 = //gi, o2t = /* @__PURE__ */ x((t) => t ? lae(t).replace(/\\n/g, "#br#").split("#br#") : [""], "getRows"), l2t = /* @__PURE__ */ (() => { +}, "checkConfig"), D1 = //gi, o2t = /* @__PURE__ */ x((t) => t ? cae(t).replace(/\\n/g, "#br#").split("#br#") : [""], "getRows"), l2t = /* @__PURE__ */ (() => { let t = !1; return () => { - t || (aae(), t = !0); + t || (oae(), t = !0); }; })(); -function aae() { +function oae() { const t = "data-temp-href-target"; Em.addHook("beforeSanitizeAttributes", (e) => { var r; @@ -36290,17 +36309,17 @@ function aae() { 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(aae, "setupDompurifyHooks"); -var oae = /* @__PURE__ */ x((t) => (l2t(), Em.sanitize(t)), "removeScript"), zV = /* @__PURE__ */ x((t, e) => { +x(oae, "setupDompurifyHooks"); +var lae = /* @__PURE__ */ x((t) => (l2t(), Em.sanitize(t)), "removeScript"), QV = /* @__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 = oae(t) : n !== "loose" && (t = lae(t), t = t.replace(//g, ">"), t = t.replace(/=/g, "="), t = f2t(t)); + n === "antiscript" || n === "strict" ? t = lae(t) : n !== "loose" && (t = cae(t), t = t.replace(//g, ">"), t = t.replace(/=/g, "="), t = f2t(t)); } return t; -}, "sanitizeMore"), yi = /* @__PURE__ */ x((t, e) => t && (e.dompurifyConfig ? t = Em.sanitize(zV(t, e), e.dompurifyConfig).toString() : t = Em.sanitize(zV(t, e), { +}, "sanitizeMore"), yi = /* @__PURE__ */ x((t, e) => t && (e.dompurifyConfig ? t = Em.sanitize(QV(t, e), e.dompurifyConfig).toString() : t = Em.sanitize(QV(t, e), { FORBID_TAGS: ["style"] -}).toString(), t), "sanitizeText"), c2t = /* @__PURE__ */ x((t, e) => typeof t == "string" ? yi(t, e) : t.flat().map((r) => yi(r, e)), "sanitizeTextOrArray"), u2t = /* @__PURE__ */ x((t) => D1.test(t), "hasBreaks"), h2t = /* @__PURE__ */ x((t) => t.split(D1), "splitBreaks"), f2t = /* @__PURE__ */ x((t) => t.replace(/#br#/g, "
"), "placeholderToBreak"), lae = /* @__PURE__ */ x((t) => t.replace(D1, "#br#"), "breakToPlaceholder"), d2t = /* @__PURE__ */ x((t) => { +}).toString(), t), "sanitizeText"), c2t = /* @__PURE__ */ x((t, e) => typeof t == "string" ? yi(t, e) : t.flat().map((r) => yi(r, e)), "sanitizeTextOrArray"), u2t = /* @__PURE__ */ x((t) => D1.test(t), "hasBreaks"), h2t = /* @__PURE__ */ x((t) => t.split(D1), "splitBreaks"), f2t = /* @__PURE__ */ x((t) => t.replace(/#br#/g, "
"), "placeholderToBreak"), cae = /* @__PURE__ */ x((t) => t.replace(D1, "#br#"), "breakToPlaceholder"), d2t = /* @__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"), Pn = /* @__PURE__ */ x((t) => !(t === !1 || ["false", "null", "0"].includes(String(t).trim().toLowerCase())), "evaluate"), p2t = /* @__PURE__ */ x(function(...t) { @@ -36334,7 +36353,7 @@ var oae = /* @__PURE__ */ x((t) => (l2t(), Em.sanitize(t)), "removeScript"), zV for (; i !== -1 && s !== -1 && i !== s; ) n[i] = "<", n[s] = ">", i = n.indexOf("~"), s = n.lastIndexOf("~"); return r && n.unshift("~"), n.join(""); -}, "processSet"), QV = /* @__PURE__ */ x(() => window.MathMLElement !== void 0, "isMathMLSupported"), E9 = /\$\$(.*)\$\$/g, Ra = /* @__PURE__ */ x((t) => { +}, "processSet"), UV = /* @__PURE__ */ x(() => window.MathMLElement !== void 0, "isMathMLSupported"), E9 = /\$\$(.*)\$\$/g, Ra = /* @__PURE__ */ x((t) => { var e, r; return ((r = (e = t.match(E9)) == null ? void 0 : e.length) != null ? r : 0) > 0; }, "hasKatex"), Jx = /* @__PURE__ */ x(async (t, e) => { @@ -36348,9 +36367,9 @@ var oae = /* @__PURE__ */ x((t) => (l2t(), Em.sanitize(t)), "removeScript"), zV }, "calculateMathMLDimensions"), ew = /* @__PURE__ */ x(async (t, e) => { if (!Ra(t)) return t; - if (!(QV() || e.legacyMathML || e.forceLegacyMathML)) + if (!(UV() || e.legacyMathML || e.forceLegacyMathML)) return t.replace(E9, "MathML is unsupported in this environment."); - const { default: r } = await Promise.resolve().then(() => vMt), n = e.forceLegacyMathML || !QV() && e.legacyMathML ? "htmlAndMathml" : "mathml"; + const { default: r } = await Promise.resolve().then(() => vMt), n = e.forceLegacyMathML || !UV() && e.legacyMathML ? "htmlAndMathml" : "mathml"; return t.split(D1).map( (i) => Ra(i) ? `
${i}
` : `
${i}
` ).join("").replace( @@ -36368,7 +36387,7 @@ var oae = /* @__PURE__ */ x((t) => (l2t(), Em.sanitize(t)), "removeScript"), zV hasBreaks: u2t, splitBreaks: h2t, lineBreakRegex: D1, - removeScript: oae, + removeScript: lae, getUrl: d2t, evaluate: Pn, getMax: p2t, @@ -36450,7 +36469,7 @@ var oae = /* @__PURE__ */ x((t) => (l2t(), Em.sanitize(t)), "removeScript"), zV }, "getStyles"), w2t = /* @__PURE__ */ x((t, e) => { e !== void 0 && (kk[t] = e); }, "addStylesForDiagram"), O2t = x2t, IP = {}; -Xse(IP, { +Hse(IP, { clear: () => us, getAccDescription: () => Is, getAccTitle: () => Ps, @@ -36468,15 +36487,15 @@ var $P = "", BP = "", FP = "", zP = /* @__PURE__ */ x((t) => yi(t, Li()), "sanit `); }, "setAccDescription"), Is = /* @__PURE__ */ x(() => FP, "getAccDescription"), Na = /* @__PURE__ */ x((t) => { BP = zP(t); -}, "setDiagramTitle"), $s = /* @__PURE__ */ x(() => BP, "getDiagramTitle"), UV = Z, k2t = DP, ke = Li, VV = nae, cae = Am, S2t = /* @__PURE__ */ x((t) => yi(t, ke()), "sanitizeText"), uae = P1, T2t = /* @__PURE__ */ x(() => IP, "getCommonDb"), d3 = {}, p3 = /* @__PURE__ */ x((t, e, r) => { +}, "setDiagramTitle"), $s = /* @__PURE__ */ x(() => BP, "getDiagramTitle"), VV = Z, k2t = DP, ke = Li, qV = iae, uae = Am, S2t = /* @__PURE__ */ x((t) => yi(t, ke()), "sanitizeText"), hae = P1, T2t = /* @__PURE__ */ x(() => IP, "getCommonDb"), d3 = {}, p3 = /* @__PURE__ */ x((t, e, r) => { var n; - d3[t] && UV.warn(`Diagram with id ${t} already registered. Overwriting.`), d3[t] = e, r && Kse(t, r), w2t(t, e.styles), (n = e.injectUtils) == null || n.call( + d3[t] && VV.warn(`Diagram with id ${t} already registered. Overwriting.`), d3[t] = e, r && Jse(t, r), w2t(t, e.styles), (n = e.injectUtils) == null || n.call( e, - UV, + VV, k2t, ke, S2t, - uae, + hae, T2t(), () => { } @@ -36503,11 +36522,11 @@ const E2t = Object.freeze( rotate: 0, vFlip: !1, hFlip: !1 -}), hae = Object.freeze({ +}), fae = Object.freeze({ ...E2t, ...g3 }), _2t = Object.freeze({ - ...hae, + ...fae, body: "", hidden: !1 }), A2t = Object.freeze({ @@ -36558,7 +36577,7 @@ function M2t(t, e) { const n = ((t.rotate || 0) + (e.rotate || 0)) % 4; return n && (r.rotate = n), r; } -function qV(t, e) { +function YV(t, e) { const r = M2t(t, e); for (const n in _2t) n in g3 ? n in t && !(n in r) && (r[n] = g3[n]) : n in e ? r[n] = e[n] : n in t && (r[n] = t[n]); @@ -36578,25 +36597,25 @@ function D2t(t, e) { } return (e || Object.keys(r).concat(Object.keys(n))).forEach(s), i; } -function YV(t, e, r) { +function WV(t, e, r) { const n = t.icons, i = t.aliases || /* @__PURE__ */ Object.create(null); let s = {}; function a(o) { - s = qV( + s = YV( n[o] || i[o], s ); } - return a(e), r.forEach(a), qV(t, s); + return a(e), r.forEach(a), YV(t, s); } function P2t(t, e) { if (t.icons[e]) - return YV(t, e, []); + return WV(t, e, []); const r = D2t(t, [e])[e]; - return r ? YV(t, e, r) : null; + return r ? WV(t, e, r) : null; } const N2t = /(-?[0-9.]*[0-9]+[0-9.]*)/g, I2t = /^-?[0-9.]*[0-9]+[0-9.]*$/g; -function WV(t, e, r) { +function GV(t, e, r) { if (e === 1) return t; if (r = r || 100, typeof t == "number") @@ -36646,7 +36665,7 @@ function F2t(t, e, r) { const z2t = (t) => t === "unset" || t === "undefined" || t === "none"; function Q2t(t, e) { const r = { - ...hae, + ...fae, ...t }, n = { ...L2t, @@ -36692,7 +36711,7 @@ function Q2t(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 = WV(f, l / u)) : (h = a === "auto" ? l : a, f = o === null ? WV(h, u / l) : o === "auto" ? u : o); + a === null ? (f = o === null ? "1em" : o === "auto" ? u : o, h = GV(f, l / u)) : (h = a === "auto" ? l : a, f = o === null ? GV(h, u / l) : o === "auto" ? u : o); const d = {}, p = (m, v) => { z2t(v) || (d[m] = v.toString()); }; @@ -36728,18 +36747,18 @@ function W2t(t, e) { r += " " + n + '="' + e[n] + '"'; return '" + t + ""; } -var fae = { +var dae = { body: '?', height: 80, width: 80 -}, A9 = /* @__PURE__ */ new Map(), dae = /* @__PURE__ */ new Map(), pae = /* @__PURE__ */ x((t) => { +}, A9 = /* @__PURE__ */ new Map(), pae = /* @__PURE__ */ new Map(), gae = /* @__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 (Z.debug("Registering icon pack:", e.name), "loader" in e) - dae.set(e.name, e.loader); + pae.set(e.name, e.loader); else if ("icons" in e) A9.set(e.name, e.icons); else @@ -36754,7 +36773,7 @@ var fae = { throw new Error(`Icon name must contain a prefix: ${t}`); let i = A9.get(n); if (!i) { - const a = dae.get(n); + const a = pae.get(n); if (!a) throw new Error(`Icon set not found: ${r.prefix}`); try { @@ -36772,7 +36791,7 @@ var fae = { try { r = await G2t(t, e == null ? void 0 : e.fallbackPrefix); } catch (s) { - Z.error(s), r = fae; + Z.error(s), r = dae; } const n = Q2t(r, e); return W2t(Y2t(n.body), n.attributes); @@ -36802,7 +36821,7 @@ function ly(t, e) { return { angle: Math.atan(o / a), deltaX: a, deltaY: o }; } x(ly, "calculateDeltaAndAngle"); -var m3 = /* @__PURE__ */ x((t) => Array.isArray(t) ? { x: t[0], y: t[1] } : t, "pointTransformer"), gae = /* @__PURE__ */ x((t) => ({ +var m3 = /* @__PURE__ */ x((t) => Array.isArray(t) ? { x: t[0], y: t[1] } : t, "pointTransformer"), mae = /* @__PURE__ */ x((t) => ({ x: /* @__PURE__ */ x(function(e, r, n) { let i = 0; if (r === 0 && Object.hasOwn(qh, t.arrowTypeStart)) { @@ -36856,7 +36875,7 @@ function H2t(t) { function Z2t(t) { return URL.canParse(t); } -function GV(t) { +function XV(t) { try { return decodeURIComponent(t); } catch { @@ -36866,9 +36885,9 @@ function GV(t) { function j2t(t) { if (!t) return Vs.BLANK_URL; - var e, r = GV(t.trim()); + var e, r = XV(t.trim()); do - r = H2t(r).replace(Vs.htmlCtrlEntityRegex, "").replace(Vs.ctrlCharactersRegex, "").replace(Vs.whitespaceEscapeCharsRegex, "").trim(), r = GV(r), e = r.match(Vs.ctrlCharactersRegex) || r.match(Vs.htmlEntitiesRegex) || r.match(Vs.htmlCtrlEntityRegex) || r.match(Vs.whitespaceEscapeCharsRegex); + r = H2t(r).replace(Vs.htmlCtrlEntityRegex, "").replace(Vs.ctrlCharactersRegex, "").replace(Vs.whitespaceEscapeCharsRegex, "").trim(), r = XV(r), e = r.match(Vs.ctrlCharactersRegex) || r.match(Vs.htmlEntitiesRegex) || r.match(Vs.htmlCtrlEntityRegex) || r.match(Vs.whitespaceEscapeCharsRegex); while (e && e.length > 0); var n = r; if (!n) @@ -36939,17 +36958,17 @@ function ebt(t) { const tbt = UP(Sk), rbt = tbt.right; UP(ebt).center; const nbt = rbt; -class XV extends Map { +class HV extends Map { constructor(e, r = abt) { 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(HV(this, e)); + return super.get(ZV(this, e)); } has(e) { - return super.has(HV(this, e)); + return super.has(ZV(this, e)); } set(e, r) { return super.set(ibt(this, e), r); @@ -36958,7 +36977,7 @@ class XV extends Map { return super.delete(sbt(this, e)); } } -function HV({ _intern: t, _key: e }, r) { +function ZV({ _intern: t, _key: e }, r) { const n = e(r); return t.has(n) ? t.get(n) : r; } @@ -37044,7 +37063,7 @@ function dbt(t, e, r) { function pbt(t) { return t; } -var Tk = 1, U6 = 2, D9 = 3, VO = 4, ZV = 1e-6; +var Tk = 1, U6 = 2, D9 = 3, VO = 4, jV = 1e-6; function gbt(t) { return "translate(" + t + ",0)"; } @@ -37060,13 +37079,13 @@ function ybt(t, e) { function bbt() { return !this.__axis; } -function mae(t, e) { +function vae(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 === Tk || t === VO ? -1 : 1, h = t === VO || t === U6 ? "x" : "y", f = t === Tk || t === D9 ? gbt : mbt; 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) : pbt : i, v = Math.max(s, 0) + o, y = e.range(), b = +y[0] + l, w = +y[y.length - 1] + l, O = (e.bandwidth ? ybt : vbt)(e.copy(), l), S = p.selection ? p.selection() : p, C = S.selectAll(".domain").data([null]), T = S.selectAll(".tick").data(g, e).order(), A = T.exit(), E = T.enter().append("g").attr("class", "tick"), L = T.select("line"), _ = T.select("text"); - C = C.merge(C.enter().insert("path", ".tick").attr("class", "domain").attr("stroke", "currentColor")), T = T.merge(E), L = L.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 === Tk ? "0em" : t === D9 ? "0.71em" : "0.32em")), p !== S && (C = C.transition(p), T = T.transition(p), L = L.transition(p), _ = _.transition(p), A = A.transition(p).attr("opacity", ZV).attr("transform", function(R) { + C = C.merge(C.enter().insert("path", ".tick").attr("class", "domain").attr("stroke", "currentColor")), T = T.merge(E), L = L.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 === Tk ? "0em" : t === D9 ? "0.71em" : "0.32em")), p !== S && (C = C.transition(p), T = T.transition(p), L = L.transition(p), _ = _.transition(p), A = A.transition(p).attr("opacity", jV).attr("transform", function(R) { return isFinite(R = O(R)) ? f(R + l) : this.getAttribute("transform"); - }), E.attr("opacity", ZV).attr("transform", function(R) { + }), E.attr("opacity", jV).attr("transform", function(R) { var $ = this.parentNode.__axis; return f(($ && isFinite($ = $(R)) ? $ : O(R)) + l); })), A.remove(), C.attr("d", t === VO || t === U6 ? 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(R) { @@ -37098,14 +37117,14 @@ function mae(t, e) { }, d; } function xbt(t) { - return mae(Tk, t); + return vae(Tk, t); } function wbt(t) { - return mae(D9, t); + return vae(D9, t); } var Obt = { value: () => { } }; -function vae() { +function yae() { 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); @@ -37124,7 +37143,7 @@ function kbt(t, e) { return { type: r, name: n }; }); } -Ck.prototype = vae.prototype = { +Ck.prototype = yae.prototype = { constructor: Ck, on: function(t, e) { var r = this._, n = kbt(t + "", r), i, s = -1, a = n.length; @@ -37138,10 +37157,10 @@ Ck.prototype = vae.prototype = { throw new Error("invalid callback: " + e); for (; ++s < a; ) if (i = (t = n[s]).type) - r[i] = jV(r[i], t.name, e); + r[i] = KV(r[i], t.name, e); else if (e == null) for (i in r) - r[i] = jV(r[i], t.name, null); + r[i] = KV(r[i], t.name, null); return this; }, copy: function() { @@ -37171,7 +37190,7 @@ function Sbt(t, e) { if ((i = t[r]).name === e) return i.value; } -function jV(t, e, r) { +function KV(t, e, r) { for (var n = 0, i = t.length; n < i; ++n) if (t[n].name === e) { t[n] = Obt, t = t.slice(0, n).concat(t.slice(n + 1)); @@ -37180,7 +37199,7 @@ function jV(t, e, r) { return r != null && t.push({ name: e, value: r }), t; } var P9 = "http://www.w3.org/1999/xhtml"; -const KV = { +const JV = { svg: "http://www.w3.org/2000/svg", xhtml: P9, xlink: "http://www.w3.org/1999/xlink", @@ -37189,7 +37208,7 @@ const KV = { }; function TC(t) { var e = t += "", r = e.indexOf(":"); - return r >= 0 && (e = t.slice(0, r)) !== "xmlns" && (t = t.slice(r + 1)), KV.hasOwnProperty(e) ? { space: KV[e], local: t } : t; + return r >= 0 && (e = t.slice(0, r)) !== "xmlns" && (t = t.slice(r + 1)), JV.hasOwnProperty(e) ? { space: JV[e], local: t } : t; } function Tbt(t) { return function() { @@ -37202,7 +37221,7 @@ function Cbt(t) { return this.ownerDocument.createElementNS(t.space, t.local); }; } -function yae(t) { +function bae(t) { var e = TC(t); return (e.local ? Cbt : Tbt)(e); } @@ -37226,7 +37245,7 @@ function Abt(t) { function Lbt() { return []; } -function bae(t) { +function xae(t) { return t == null ? Lbt : function() { return this.querySelectorAll(t); }; @@ -37237,18 +37256,18 @@ function Rbt(t) { }; } function Mbt(t) { - typeof t == "function" ? t = Rbt(t) : t = bae(t); + typeof t == "function" ? t = Rbt(t) : t = xae(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 Do(n, i); } -function xae(t) { +function wae(t) { return function() { return this.matches(t); }; } -function wae(t) { +function Oae(t) { return function(e) { return e.matches(t); }; @@ -37263,7 +37282,7 @@ function Nbt() { return this.firstElementChild; } function Ibt(t) { - return this.select(t == null ? Nbt : Pbt(typeof t == "function" ? t : wae(t))); + return this.select(t == null ? Nbt : Pbt(typeof t == "function" ? t : Oae(t))); } var $bt = Array.prototype.filter; function Bbt() { @@ -37275,20 +37294,20 @@ function Fbt(t) { }; } function zbt(t) { - return this.selectAll(t == null ? Bbt : Fbt(typeof t == "function" ? t : wae(t))); + return this.selectAll(t == null ? Bbt : Fbt(typeof t == "function" ? t : Oae(t))); } function Qbt(t) { - typeof t != "function" && (t = xae(t)); + typeof t != "function" && (t = wae(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 Do(n, this._parents); } -function Oae(t) { +function kae(t) { return new Array(t.length); } function Ubt() { - return new Do(this._enter || this._groups.map(Oae), this._parents); + return new Do(this._enter || this._groups.map(kae), this._parents); } function y3(t, e) { this.ownerDocument = t.ownerDocument, this.namespaceURI = t.namespaceURI, this._next = null, this._parent = t, this.__data__ = e; @@ -37352,7 +37371,7 @@ function Xbt(t) { return typeof t == "object" && "length" in t ? t : Array.from(t); } function Hbt() { - return new Do(this._exit || this._groups.map(Oae), this._parents); + return new Do(this._exit || this._groups.map(kae), this._parents); } function Zbt(t, e, r) { var n = this.enter(), i = this, s = this.exit(); @@ -37458,7 +37477,7 @@ function dxt(t, e) { } return this.each((e == null ? r.local ? lxt : oxt : typeof e == "function" ? r.local ? fxt : hxt : r.local ? uxt : cxt)(r, e)); } -function kae(t) { +function Sae(t) { return t.ownerDocument && t.ownerDocument.defaultView || t.document && t || t.defaultView; } function pxt(t) { @@ -37481,7 +37500,7 @@ function vxt(t, e, r) { return arguments.length > 1 ? this.each((e == null ? pxt : typeof e == "function" ? mxt : gxt)(t, e, r == null ? "" : r)) : Rm(this.node(), t); } function Rm(t, e) { - return t.style.getPropertyValue(e) || kae(t).getComputedStyle(t, null).getPropertyValue(e); + return t.style.getPropertyValue(e) || Sae(t).getComputedStyle(t, null).getPropertyValue(e); } function yxt(t) { return function() { @@ -37502,16 +37521,16 @@ function xxt(t, e) { function wxt(t, e) { return arguments.length > 1 ? this.each((e == null ? yxt : typeof e == "function" ? xxt : bxt)(t, e)) : this.node()[t]; } -function Sae(t) { +function Tae(t) { return t.trim().split(/^|\s+/); } function qP(t) { - return t.classList || new Tae(t); + return t.classList || new Cae(t); } -function Tae(t) { - this._node = t, this._names = Sae(t.getAttribute("class") || ""); +function Cae(t) { + this._node = t, this._names = Tae(t.getAttribute("class") || ""); } -Tae.prototype = { +Cae.prototype = { add: function(t) { var e = this._names.indexOf(t); e < 0 && (this._names.push(t), this._node.setAttribute("class", this._names.join(" "))); @@ -37524,31 +37543,31 @@ Tae.prototype = { return this._names.indexOf(t) >= 0; } }; -function Cae(t, e) { +function Eae(t, e) { for (var r = qP(t), n = -1, i = e.length; ++n < i; ) r.add(e[n]); } -function Eae(t, e) { +function _ae(t, e) { for (var r = qP(t), n = -1, i = e.length; ++n < i; ) r.remove(e[n]); } function Oxt(t) { return function() { - Cae(this, t); + Eae(this, t); }; } function kxt(t) { return function() { - Eae(this, t); + _ae(this, t); }; } function Sxt(t, e) { return function() { - (e.apply(this, arguments) ? Cae : Eae)(this, t); + (e.apply(this, arguments) ? Eae : _ae)(this, t); }; } function Txt(t, e) { - var r = Sae(t + ""); + var r = Tae(t + ""); if (arguments.length < 2) { for (var n = qP(this.node()), i = -1, s = r.length; ++i < s; ) if (!n.contains(r[i])) @@ -37604,7 +37623,7 @@ function $xt() { return this.each(Ixt); } function Bxt(t) { - var e = typeof t == "function" ? t : yae(t); + var e = typeof t == "function" ? t : bae(t); return this.select(function() { return this.appendChild(e.apply(this, arguments)); }); @@ -37613,7 +37632,7 @@ function Fxt() { return null; } function zxt(t, e) { - var r = typeof t == "function" ? t : yae(t), n = e == null ? Fxt : typeof e == "function" ? e : VP(e); + var r = typeof t == "function" ? t : bae(t), n = e == null ? Fxt : typeof e == "function" ? e : VP(e); return this.select(function() { return this.insertBefore(r.apply(this, arguments), n.apply(this, arguments) || null); }); @@ -37689,18 +37708,18 @@ function jxt(t, e, r) { this.each(o(n[i], e, r)); return this; } -function _ae(t, e, r) { - var n = kae(t), i = n.CustomEvent; +function Aae(t, e, r) { + var n = Sae(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 Kxt(t, e) { return function() { - return _ae(this, t, e); + return Aae(this, t, e); }; } function Jxt(t, e) { return function() { - return _ae(this, t, e.apply(this, arguments)); + return Aae(this, t, e.apply(this, arguments)); }; } function ewt(t, e) { @@ -37711,12 +37730,12 @@ function* twt() { for (var n = t[e], i = 0, s = n.length, a; i < s; ++i) (a = n[i]) && (yield a); } -var Aae = [null]; +var Lae = [null]; function Do(t, e) { this._groups = t, this._parents = e; } function tw() { - return new Do([[document.documentElement]], Aae); + return new Do([[document.documentElement]], Lae); } function rwt() { return this; @@ -37760,7 +37779,7 @@ Do.prototype = tw.prototype = { [Symbol.iterator]: twt }; function ht(t) { - return typeof t == "string" ? new Do([[document.querySelector(t)]], [document.documentElement]) : new Do([[t]], Aae); + return typeof t == "string" ? new Do([[document.querySelector(t)]], [document.documentElement]) : new Do([[t]], Lae); } function rw(t, e, r) { t.prototype = e.prototype = r, r.constructor = t; @@ -37773,7 +37792,7 @@ function CC(t, e) { } function kp() { } -var Z2 = 0.7, b3 = 1 / Z2, Ug = "\\s*([+-]?\\d+)\\s*", j2 = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*", nu = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*", nwt = /^#([0-9a-f]{3,8})$/, iwt = new RegExp(`^rgb\\(${Ug},${Ug},${Ug}\\)$`), swt = new RegExp(`^rgb\\(${nu},${nu},${nu}\\)$`), awt = new RegExp(`^rgba\\(${Ug},${Ug},${Ug},${j2}\\)$`), owt = new RegExp(`^rgba\\(${nu},${nu},${nu},${j2}\\)$`), lwt = new RegExp(`^hsl\\(${j2},${nu},${nu}\\)$`), cwt = new RegExp(`^hsla\\(${j2},${nu},${nu},${j2}\\)$`), JV = { +var Z2 = 0.7, b3 = 1 / Z2, Ug = "\\s*([+-]?\\d+)\\s*", j2 = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*", nu = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*", nwt = /^#([0-9a-f]{3,8})$/, iwt = new RegExp(`^rgb\\(${Ug},${Ug},${Ug}\\)$`), swt = new RegExp(`^rgb\\(${nu},${nu},${nu}\\)$`), awt = new RegExp(`^rgba\\(${Ug},${Ug},${Ug},${j2}\\)$`), owt = new RegExp(`^rgba\\(${nu},${nu},${nu},${j2}\\)$`), lwt = new RegExp(`^hsl\\(${j2},${nu},${nu}\\)$`), cwt = new RegExp(`^hsla\\(${j2},${nu},${nu},${j2}\\)$`), eq = { aliceblue: 15792383, antiquewhite: 16444375, aqua: 65535, @@ -37930,40 +37949,40 @@ rw(kp, z0, { displayable() { return this.rgb().displayable(); }, - hex: eq, - formatHex: eq, + hex: tq, + formatHex: tq, formatHex8: uwt, formatHsl: hwt, - formatRgb: tq, - toString: tq + formatRgb: rq, + toString: rq }); -function eq() { +function tq() { return this.rgb().formatHex(); } function uwt() { return this.rgb().formatHex8(); } function hwt() { - return Rae(this).formatHsl(); + return Mae(this).formatHsl(); } -function tq() { +function rq() { return this.rgb().formatRgb(); } function z0(t) { var e, r; - return t = (t + "").trim().toLowerCase(), (e = nwt.exec(t)) ? (r = e[1].length, e = parseInt(e[1], 16), r === 6 ? rq(e) : r === 3 ? new Js(e >> 8 & 15 | e >> 4 & 240, e >> 4 & 15 | e & 240, (e & 15) << 4 | e & 15, 1) : r === 8 ? qO(e >> 24 & 255, e >> 16 & 255, e >> 8 & 255, (e & 255) / 255) : r === 4 ? qO(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 = iwt.exec(t)) ? new Js(e[1], e[2], e[3], 1) : (e = swt.exec(t)) ? new Js(e[1] * 255 / 100, e[2] * 255 / 100, e[3] * 255 / 100, 1) : (e = awt.exec(t)) ? qO(e[1], e[2], e[3], e[4]) : (e = owt.exec(t)) ? qO(e[1] * 255 / 100, e[2] * 255 / 100, e[3] * 255 / 100, e[4]) : (e = lwt.exec(t)) ? sq(e[1], e[2] / 100, e[3] / 100, 1) : (e = cwt.exec(t)) ? sq(e[1], e[2] / 100, e[3] / 100, e[4]) : JV.hasOwnProperty(t) ? rq(JV[t]) : t === "transparent" ? new Js(NaN, NaN, NaN, 0) : null; + return t = (t + "").trim().toLowerCase(), (e = nwt.exec(t)) ? (r = e[1].length, e = parseInt(e[1], 16), r === 6 ? nq(e) : r === 3 ? new Js(e >> 8 & 15 | e >> 4 & 240, e >> 4 & 15 | e & 240, (e & 15) << 4 | e & 15, 1) : r === 8 ? qO(e >> 24 & 255, e >> 16 & 255, e >> 8 & 255, (e & 255) / 255) : r === 4 ? qO(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 = iwt.exec(t)) ? new Js(e[1], e[2], e[3], 1) : (e = swt.exec(t)) ? new Js(e[1] * 255 / 100, e[2] * 255 / 100, e[3] * 255 / 100, 1) : (e = awt.exec(t)) ? qO(e[1], e[2], e[3], e[4]) : (e = owt.exec(t)) ? qO(e[1] * 255 / 100, e[2] * 255 / 100, e[3] * 255 / 100, e[4]) : (e = lwt.exec(t)) ? aq(e[1], e[2] / 100, e[3] / 100, 1) : (e = cwt.exec(t)) ? aq(e[1], e[2] / 100, e[3] / 100, e[4]) : eq.hasOwnProperty(t) ? nq(eq[t]) : t === "transparent" ? new Js(NaN, NaN, NaN, 0) : null; } -function rq(t) { +function nq(t) { return new Js(t >> 16 & 255, t >> 8 & 255, t & 255, 1); } function qO(t, e, r, n) { return n <= 0 && (t = e = r = NaN), new Js(t, e, r, n); } -function Lae(t) { +function Rae(t) { return t instanceof kp || (t = z0(t)), t ? (t = t.rgb(), new Js(t.r, t.g, t.b, t.opacity)) : new Js(); } function N9(t, e, r, n) { - return arguments.length === 1 ? Lae(t) : new Js(t, e, r, n == null ? 1 : n); + return arguments.length === 1 ? Rae(t) : new Js(t, e, r, n == null ? 1 : n); } function Js(t, e, r, n) { this.r = +t, this.g = +e, this.b = +r, this.opacity = +n; @@ -37984,19 +38003,19 @@ rw(Js, N9, CC(kp, { 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: nq, - formatHex: nq, + hex: iq, + formatHex: iq, formatHex8: fwt, - formatRgb: iq, - toString: iq + formatRgb: sq, + toString: sq })); -function nq() { +function iq() { return `#${f0(this.r)}${f0(this.g)}${f0(this.b)}`; } function fwt() { return `#${f0(this.r)}${f0(this.g)}${f0(this.b)}${f0((isNaN(this.opacity) ? 1 : this.opacity) * 255)}`; } -function iq() { +function sq() { const t = x3(this.opacity); return `${t === 1 ? "rgb(" : "rgba("}${_0(this.r)}, ${_0(this.g)}, ${_0(this.b)}${t === 1 ? ")" : `, ${t})`}`; } @@ -38009,10 +38028,10 @@ function _0(t) { function f0(t) { return t = _0(t), (t < 16 ? "0" : "") + t.toString(16); } -function sq(t, e, r, n) { +function aq(t, e, r, n) { return n <= 0 ? t = e = r = NaN : r <= 0 || r >= 1 ? t = e = NaN : e <= 0 && (t = NaN), new zl(t, e, r, n); } -function Rae(t) { +function Mae(t) { if (t instanceof zl) return new zl(t.h, t.s, t.l, t.opacity); if (t instanceof kp || (t = z0(t)), !t) @@ -38024,7 +38043,7 @@ function Rae(t) { 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 zl(a, o, l, t.opacity); } function dwt(t, e, r, n) { - return arguments.length === 1 ? Rae(t) : new zl(t, e, r, n == null ? 1 : n); + return arguments.length === 1 ? Mae(t) : new zl(t, e, r, n == null ? 1 : n); } function zl(t, e, r, n) { this.h = +t, this.s = +e, this.l = +r, this.opacity = +n; @@ -38046,17 +38065,17 @@ rw(zl, dwt, CC(kp, { ); }, clamp() { - return new zl(aq(this.h), YO(this.s), YO(this.l), x3(this.opacity)); + return new zl(oq(this.h), YO(this.s), YO(this.l), x3(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 = x3(this.opacity); - return `${t === 1 ? "hsl(" : "hsla("}${aq(this.h)}, ${YO(this.s) * 100}%, ${YO(this.l) * 100}%${t === 1 ? ")" : `, ${t})`}`; + return `${t === 1 ? "hsl(" : "hsla("}${oq(this.h)}, ${YO(this.s) * 100}%, ${YO(this.l) * 100}%${t === 1 ? ")" : `, ${t})`}`; } })); -function aq(t) { +function oq(t) { return t = (t || 0) % 360, t < 0 ? t + 360 : t; } function YO(t) { @@ -38065,18 +38084,18 @@ function YO(t) { function V6(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 pwt = Math.PI / 180, gwt = 180 / Math.PI, w3 = 18, Mae = 0.96422, Dae = 1, Pae = 0.82521, Nae = 4 / 29, Vg = 6 / 29, Iae = 3 * Vg * Vg, mwt = Vg * Vg * Vg; -function $ae(t) { +const pwt = Math.PI / 180, gwt = 180 / Math.PI, w3 = 18, Dae = 0.96422, Pae = 1, Nae = 0.82521, Iae = 4 / 29, Vg = 6 / 29, $ae = 3 * Vg * Vg, mwt = Vg * Vg * Vg; +function Bae(t) { if (t instanceof iu) return new iu(t.l, t.a, t.b, t.opacity); if (t instanceof Wu) - return Bae(t); - t instanceof Js || (t = Lae(t)); - var e = G6(t.r), r = G6(t.g), n = G6(t.b), i = q6((0.2225045 * e + 0.7168786 * r + 0.0606169 * n) / Dae), s, a; - return e === r && r === n ? s = a = i : (s = q6((0.4360747 * e + 0.3850649 * r + 0.1430804 * n) / Mae), a = q6((0.0139322 * e + 0.0971045 * r + 0.7141733 * n) / Pae)), new iu(116 * i - 16, 500 * (s - i), 200 * (i - a), t.opacity); + return Fae(t); + t instanceof Js || (t = Rae(t)); + var e = G6(t.r), r = G6(t.g), n = G6(t.b), i = q6((0.2225045 * e + 0.7168786 * r + 0.0606169 * n) / Pae), s, a; + return e === r && r === n ? s = a = i : (s = q6((0.4360747 * e + 0.3850649 * r + 0.1430804 * n) / Dae), a = q6((0.0139322 * e + 0.0971045 * r + 0.7141733 * n) / Nae)), new iu(116 * i - 16, 500 * (s - i), 200 * (i - a), t.opacity); } function vwt(t, e, r, n) { - return arguments.length === 1 ? $ae(t) : new iu(t, e, r, n == null ? 1 : n); + return arguments.length === 1 ? Bae(t) : new iu(t, e, r, n == null ? 1 : n); } function iu(t, e, r, n) { this.l = +t, this.a = +e, this.b = +r, this.opacity = +n; @@ -38090,7 +38109,7 @@ rw(iu, vwt, CC(kp, { }, 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 = Mae * Y6(e), t = Dae * Y6(t), r = Pae * Y6(r), new Js( + return e = Dae * Y6(e), t = Pae * Y6(t), r = Nae * Y6(r), new Js( W6(3.1338561 * e - 1.6168667 * t - 0.4906146 * r), W6(-0.9787684 * e + 1.9161415 * t + 0.033454 * r), W6(0.0719453 * e - 0.2289914 * t + 1.4052427 * r), @@ -38099,10 +38118,10 @@ rw(iu, vwt, CC(kp, { } })); function q6(t) { - return t > mwt ? Math.pow(t, 1 / 3) : t / Iae + Nae; + return t > mwt ? Math.pow(t, 1 / 3) : t / $ae + Iae; } function Y6(t) { - return t > Vg ? t * t * t : Iae * (t - Nae); + return t > Vg ? t * t * t : $ae * (t - Iae); } function W6(t) { return 255 * (t <= 31308e-7 ? 12.92 * t : 1.055 * Math.pow(t, 1 / 2.4) - 0.055); @@ -38113,7 +38132,7 @@ function G6(t) { function ywt(t) { if (t instanceof Wu) return new Wu(t.h, t.c, t.l, t.opacity); - if (t instanceof iu || (t = $ae(t)), t.a === 0 && t.b === 0) + if (t instanceof iu || (t = Bae(t)), t.a === 0 && t.b === 0) return new Wu(NaN, 0 < t.l && t.l < 100 ? 0 : NaN, t.l, t.opacity); var e = Math.atan2(t.b, t.a) * gwt; return new Wu(e < 0 ? e + 360 : e, Math.sqrt(t.a * t.a + t.b * t.b), t.l, t.opacity); @@ -38124,7 +38143,7 @@ function I9(t, e, r, n) { function Wu(t, e, r, n) { this.h = +t, this.c = +e, this.l = +r, this.opacity = +n; } -function Bae(t) { +function Fae(t) { if (isNaN(t.h)) return new iu(t.l, 0, 0, t.opacity); var e = t.h * pwt; @@ -38138,11 +38157,11 @@ rw(Wu, I9, CC(kp, { return new Wu(this.h, this.c, this.l - w3 * (t == null ? 1 : t), this.opacity); }, rgb() { - return Bae(this).rgb(); + return Fae(this).rgb(); } })); const EC = (t) => () => t; -function Fae(t, e) { +function zae(t, e) { return function(r) { return t + r * e; }; @@ -38154,7 +38173,7 @@ function bwt(t, e, r) { } function xwt(t, e) { var r = e - t; - return r ? Fae(t, r > 180 || r < -180 ? r - 360 * Math.round(r / 360) : r) : EC(isNaN(t) ? e : t); + return r ? zae(t, r > 180 || r < -180 ? r - 360 * Math.round(r / 360) : r) : EC(isNaN(t) ? e : t); } function wwt(t) { return (t = +t) == 1 ? Hy : function(e, r) { @@ -38163,7 +38182,7 @@ function wwt(t) { } function Hy(t, e) { var r = e - t; - return r ? Fae(t, r) : EC(isNaN(t) ? e : t); + return r ? zae(t, r) : EC(isNaN(t) ? e : t); } const O3 = function t(e) { var r = wwt(e); @@ -38232,7 +38251,7 @@ function _wt(t) { return t(e) + ""; }; } -function zae(t, e) { +function Qae(t, e) { var r = $9.lastIndex = X6.lastIndex = 0, n, i, s, a = -1, o = [], l = []; for (t = t + "", e = e + ""; (n = $9.exec(t)) && (i = X6.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: Bl(n, i) })), r = X6.lastIndex; @@ -38244,14 +38263,14 @@ function zae(t, e) { } function YP(t, e) { var r = typeof e, n; - return e == null || r === "boolean" ? EC(e) : (r === "number" ? Bl : r === "string" ? (n = z0(e)) ? (e = n, O3) : zae : e instanceof z0 ? O3 : e instanceof Date ? Twt : kwt(e) ? Owt : Array.isArray(e) ? Swt : typeof e.valueOf != "function" && typeof e.toString != "function" || isNaN(e) ? Cwt : Bl)(t, e); + return e == null || r === "boolean" ? EC(e) : (r === "number" ? Bl : r === "string" ? (n = z0(e)) ? (e = n, O3) : Qae : e instanceof z0 ? O3 : e instanceof Date ? Twt : kwt(e) ? Owt : Array.isArray(e) ? Swt : typeof e.valueOf != "function" && typeof e.toString != "function" || isNaN(e) ? Cwt : Bl)(t, e); } function Awt(t, e) { return t = +t, e = +e, function(r) { return Math.round(t * (1 - r) + e * r); }; } -var oq = 180 / Math.PI, B9 = { +var lq = 180 / Math.PI, B9 = { translateX: 0, translateY: 0, rotate: 0, @@ -38259,13 +38278,13 @@ var oq = 180 / Math.PI, B9 = { scaleX: 1, scaleY: 1 }; -function Qae(t, e, r, n, i, s) { +function Uae(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) * oq, - skewX: Math.atan(l) * oq, + rotate: Math.atan2(e, t) * lq, + skewX: Math.atan(l) * lq, scaleX: a, scaleY: o }; @@ -38273,12 +38292,12 @@ function Qae(t, e, r, n, i, s) { var WO; function Lwt(t) { const e = new (typeof DOMMatrix == "function" ? DOMMatrix : WebKitCSSMatrix)(t + ""); - return e.isIdentity ? B9 : Qae(e.a, e.b, e.c, e.d, e.e, e.f); + return e.isIdentity ? B9 : Uae(e.a, e.b, e.c, e.d, e.e, e.f); } function Rwt(t) { - return t == null || (WO || (WO = document.createElementNS("http://www.w3.org/2000/svg", "g")), WO.setAttribute("transform", t), !(t = WO.transform.baseVal.consolidate())) ? B9 : (t = t.matrix, Qae(t.a, t.b, t.c, t.d, t.e, t.f)); + return t == null || (WO || (WO = document.createElementNS("http://www.w3.org/2000/svg", "g")), WO.setAttribute("transform", t), !(t = WO.transform.baseVal.consolidate())) ? B9 : (t = t.matrix, Uae(t.a, t.b, t.c, t.d, t.e, t.f)); } -function Uae(t, e, r, n) { +function Vae(t, e, r, n) { function i(u) { return u.length ? u.pop() + " " : ""; } @@ -38311,7 +38330,7 @@ function Uae(t, e, r, n) { }; }; } -var Mwt = Uae(Lwt, "px, ", "px)", "deg)"), Dwt = Uae(Rwt, ", ", ")", ")"); +var Mwt = Vae(Lwt, "px, ", "px)", "deg)"), Dwt = Vae(Rwt, ", ", ")", ")"); function Pwt(t) { return function(e, r) { var n = t((e = I9(e)).h, (r = I9(r)).h), i = Hy(e.c, r.c), s = Hy(e.l, r.l), a = Hy(e.opacity, r.opacity); @@ -38321,11 +38340,11 @@ function Pwt(t) { }; } const Nwt = Pwt(xwt); -var Mm = 0, cy = 0, Mv = 0, Vae = 1e3, k3, uy, S3 = 0, Q0 = 0, _C = 0, K2 = typeof performance == "object" && performance.now ? performance : Date, qae = typeof window == "object" && window.requestAnimationFrame ? window.requestAnimationFrame.bind(window) : function(t) { +var Mm = 0, cy = 0, Mv = 0, qae = 1e3, k3, uy, S3 = 0, Q0 = 0, _C = 0, K2 = typeof performance == "object" && performance.now ? performance : Date, Yae = typeof window == "object" && window.requestAnimationFrame ? window.requestAnimationFrame.bind(window) : function(t) { setTimeout(t, 17); }; function WP() { - return Q0 || (qae(Iwt), Q0 = K2.now() + _C); + return Q0 || (Yae(Iwt), Q0 = K2.now() + _C); } function Iwt() { Q0 = 0; @@ -38333,7 +38352,7 @@ function Iwt() { function T3() { this._call = this._time = this._next = null; } -T3.prototype = Yae.prototype = { +T3.prototype = Wae.prototype = { constructor: T3, restart: function(t, e, r) { if (typeof t != "function") @@ -38344,7 +38363,7 @@ T3.prototype = Yae.prototype = { this._call && (this._call = null, this._time = 1 / 0, F9()); } }; -function Yae(t, e, r) { +function Wae(t, e, r) { var n = new T3(); return n.restart(t, e, r), n; } @@ -38354,7 +38373,7 @@ function $wt() { (e = Q0 - t._time) >= 0 && t._call.call(void 0, e), t = t._next; --Mm; } -function lq() { +function cq() { Q0 = (S3 = K2.now()) + _C, Mm = cy = 0; try { $wt(); @@ -38364,7 +38383,7 @@ function lq() { } function Bwt() { var t = K2.now(), e = t - S3; - e > Vae && (_C -= e, S3 = t); + e > qae && (_C -= e, S3 = t); } function Fwt() { for (var t, e = k3, r, n = 1 / 0; e; ) @@ -38375,16 +38394,16 @@ function F9(t) { if (!Mm) { cy && (cy = clearTimeout(cy)); var e = t - Q0; - e > 24 ? (t < 1 / 0 && (cy = setTimeout(lq, t - K2.now() - _C)), Mv && (Mv = clearInterval(Mv))) : (Mv || (S3 = K2.now(), Mv = setInterval(Bwt, Vae)), Mm = 1, qae(lq)); + e > 24 ? (t < 1 / 0 && (cy = setTimeout(cq, t - K2.now() - _C)), Mv && (Mv = clearInterval(Mv))) : (Mv || (S3 = K2.now(), Mv = setInterval(Bwt, qae)), Mm = 1, Yae(cq)); } } -function cq(t, e, r) { +function uq(t, e, r) { var n = new T3(); return e = e == null ? 0 : +e, n.restart((i) => { n.stop(), t(i + e); }, e, r), n; } -var zwt = vae("start", "end", "cancel", "interrupt"), Qwt = [], Wae = 0, uq = 1, z9 = 2, Ek = 3, hq = 4, Q9 = 5, _k = 6; +var zwt = yae("start", "end", "cancel", "interrupt"), Qwt = [], Gae = 0, hq = 1, z9 = 2, Ek = 3, fq = 4, Q9 = 5, _k = 6; function AC(t, e, r, n, i, s) { var a = t.__transition; if (!a) @@ -38402,12 +38421,12 @@ function AC(t, e, r, n, i, s) { duration: s.duration, ease: s.ease, timer: null, - state: Wae + state: Gae }); } function GP(t, e) { var r = pc(t, e); - if (r.state > Wae) + if (r.state > Gae) throw new Error("too late; already scheduled"); return r; } @@ -38425,22 +38444,22 @@ function pc(t, e) { } function Uwt(t, e, r) { var n = t.__transition, i; - n[e] = r, r.timer = Yae(s, 0, r.time); + n[e] = r, r.timer = Wae(s, 0, r.time); function s(u) { - r.state = uq, r.timer.restart(a, r.delay, r.time), r.delay <= u && a(u - r.delay); + r.state = hq, 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 !== uq) + if (r.state !== hq) return l(); for (h in n) if (p = n[h], p.name === r.name) { if (p.state === Ek) - return cq(a); - p.state === hq ? (p.state = _k, p.timer.stop(), p.on.call("interrupt", t, t.__data__, p.index, p.group), delete n[h]) : +h < e && (p.state = _k, p.timer.stop(), p.on.call("cancel", t, t.__data__, p.index, p.group), delete n[h]); + return uq(a); + p.state === fq ? (p.state = _k, p.timer.stop(), p.on.call("interrupt", t, t.__data__, p.index, p.group), delete n[h]) : +h < e && (p.state = _k, p.timer.stop(), p.on.call("cancel", t, t.__data__, p.index, p.group), delete n[h]); } - if (cq(function() { - r.state === Ek && (r.state = hq, r.timer.restart(o, r.delay, r.time), o(u)); + if (uq(function() { + r.state === Ek && (r.state = fq, r.timer.restart(o, r.delay, r.time), o(u)); }), r.state = z9, r.on.call("start", t, t.__data__, r.index, r.group), r.state === z9) { for (r.state = Ek, 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); @@ -38530,9 +38549,9 @@ function XP(t, e, r) { return pc(i, n).value[e]; }; } -function Gae(t, e) { +function Xae(t, e) { var r; - return (typeof e == "number" ? Bl : e instanceof z0 ? O3 : (r = z0(e)) ? (e = r, O3) : zae)(t, e); + return (typeof e == "number" ? Bl : e instanceof z0 ? O3 : (r = z0(e)) ? (e = r, O3) : Qae)(t, e); } function Xwt(t) { return function() { @@ -38573,7 +38592,7 @@ function Jwt(t, e, r) { }; } function eOt(t, e) { - var r = TC(t), n = r === "transform" ? Dwt : Gae; + var r = TC(t), n = r === "transform" ? Dwt : Xae; return this.attrTween(t, typeof e == "function" ? (r.local ? Jwt : Kwt)(r, n, XP(this, "attr." + t, e)) : e == null ? (r.local ? Hwt : Xwt)(r) : (r.local ? jwt : Zwt)(r, n, e)); } function tOt(t, e) { @@ -38666,7 +38685,7 @@ function gOt(t) { return this.each(pOt(this._id, t)); } function mOt(t) { - typeof t != "function" && (t = xae(t)); + typeof t != "function" && (t = wae(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); @@ -38721,7 +38740,7 @@ function kOt(t) { } function SOt(t) { var e = this._name, r = this._id; - typeof t != "function" && (t = bae(t)); + typeof t != "function" && (t = xae(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]) { @@ -38742,7 +38761,7 @@ function EOt(t, e) { return s === a ? null : s === r && a === n ? i : i = e(r = s, n = a); }; } -function Xae(t) { +function Hae(t) { return function() { this.style.removeProperty(t); }; @@ -38764,13 +38783,13 @@ function AOt(t, e, r) { function LOt(t, e) { var r, n, i, s = "style." + e, a = "end." + s, o; return function() { - var l = Ou(this, t), u = l.on, h = l.value[s] == null ? o || (o = Xae(e)) : void 0; + var l = Ou(this, t), u = l.on, h = l.value[s] == null ? o || (o = Hae(e)) : void 0; (u !== r || i !== h) && (n = (r = u).copy()).on(a, i = h), l.on = n; }; } function ROt(t, e, r) { - var n = (t += "") == "transform" ? Mwt : Gae; - return e == null ? this.styleTween(t, EOt(t, n)).on("end.style." + t, Xae(t)) : typeof e == "function" ? this.styleTween(t, AOt(t, n, XP(this, "style." + t, e))).each(LOt(this._id, t)) : this.styleTween(t, _Ot(t, n, e), r).on("end.style." + t, null); + var n = (t += "") == "transform" ? Mwt : Xae; + return e == null ? this.styleTween(t, EOt(t, n)).on("end.style." + t, Hae(t)) : typeof e == "function" ? this.styleTween(t, AOt(t, n, XP(this, "style." + t, e))).each(LOt(this._id, t)) : this.styleTween(t, _Ot(t, n, e), r).on("end.style." + t, null); } function MOt(t, e, r) { return function(n) { @@ -38833,7 +38852,7 @@ function zOt(t) { return this.tween(e, FOt(t)); } function QOt() { - for (var t = this._name, e = this._id, r = Hae(), n = this._groups, i = n.length, s = 0; s < i; ++s) + for (var t = this._name, e = this._id, r = Zae(), 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 = pc(l, e); @@ -38862,7 +38881,7 @@ var VOt = 0; function ph(t, e, r, n) { this._groups = t, this._parents = e, this._name = r, this._id = n; } -function Hae() { +function Zae() { return ++VOt; } var Pu = tw.prototype; @@ -38915,7 +38934,7 @@ function WOt(t, e) { } function GOt(t) { var e, r; - t instanceof ph ? (e = t._id, t = t._name) : (e = Hae(), (r = YOt).time = WP(), t = t == null ? null : t + ""); + t instanceof ph ? (e = t._id, t = t._name) : (e = Zae(), (r = YOt).time = WP(), 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]) && AC(l, t, e, u, a, r || WOt(l, e)); @@ -38924,7 +38943,7 @@ function GOt(t) { tw.prototype.interrupt = qwt; tw.prototype.transition = GOt; const U9 = Math.PI, V9 = 2 * U9, Fd = 1e-6, XOt = V9 - Fd; -function Zae(t) { +function jae(t) { this._ += t[0]; for (let e = 1, r = t.length; e < r; ++e) this._ += arguments[e] + t[e]; @@ -38934,7 +38953,7 @@ function HOt(t) { if (!(e >= 0)) throw new Error(`invalid digits: ${t}`); if (e > 15) - return Zae; + return jae; const r = 10 ** e; return function(n) { this._ += n[0]; @@ -38944,7 +38963,7 @@ function HOt(t) { } class ZOt { constructor(e) { - this._x0 = this._y0 = this._x1 = this._y1 = null, this._ = "", this._append = e == null ? Zae : HOt(e); + this._x0 = this._y0 = this._x1 = this._y1 = null, this._ = "", this._append = e == null ? jae : HOt(e); } moveTo(e, r) { this._append`M${this._x0 = this._x1 = +e},${this._y0 = this._y1 = +r}`; @@ -39060,22 +39079,22 @@ function t4t(t) { } return n > 0 ? t.slice(0, n) + t.slice(i + 1) : t; } -var jae; +var Kae; function r4t(t, e) { var r = C3(t, e); if (!r) return t + ""; - var n = r[0], i = r[1], s = i - (jae = Math.max(-8, Math.min(8, Math.floor(i / 3))) * 3) + 1, a = n.length; + var n = r[0], i = r[1], s = i - (Kae = 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") + C3(t, Math.max(0, e + s - 1))[0]; } -function fq(t, e) { +function dq(t, e) { var r = C3(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 dq = { +const pq = { "%": (t, e) => (t * 100).toFixed(e), b: (t) => Math.round(t).toString(2), c: (t) => t + "", @@ -39084,23 +39103,23 @@ const dq = { f: (t, e) => t.toFixed(e), g: (t, e) => t.toPrecision(e), o: (t) => Math.round(t).toString(8), - p: (t, e) => fq(t * 100, e), - r: fq, + p: (t, e) => dq(t * 100, e), + r: dq, s: r4t, X: (t) => Math.round(t).toString(16).toUpperCase(), x: (t) => Math.round(t).toString(16) }; -function pq(t) { +function gq(t) { return t; } -var gq = Array.prototype.map, mq = ["y", "z", "a", "f", "p", "n", "\xB5", "m", "", "k", "M", "G", "T", "P", "E", "Z", "Y"]; +var mq = Array.prototype.map, vq = ["y", "z", "a", "f", "p", "n", "\xB5", "m", "", "k", "M", "G", "T", "P", "E", "Z", "Y"]; function n4t(t) { - var e = t.grouping === void 0 || t.thousands === void 0 ? pq : KOt(gq.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 ? pq : JOt(gq.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 e = t.grouping === void 0 || t.thousands === void 0 ? gq : KOt(mq.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 ? gq : JOt(mq.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 = E3(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") : dq[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 : "", A = dq[S], E = /[defgprs%]/.test(S); + S === "n" ? (b = !0, S = "g") : pq[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 : "", A = pq[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 L(_) { var R = C, $ = T, k, P, M; @@ -39109,7 +39128,7 @@ function n4t(t) { else { _ = +_; var N = _ < 0 || 1 / _ < 0; - if (_ = isNaN(_) ? l : A(Math.abs(_), w), O && (_ = t4t(_)), N && +_ == 0 && g !== "+" && (N = !1), R = (N ? g === "(" ? g : o : g === "-" || g === "(" ? "" : g) + R, $ = (S === "s" ? mq[8 + jae / 3] : "") + $ + (N && g === "(" ? ")" : ""), E) { + if (_ = isNaN(_) ? l : A(Math.abs(_), w), O && (_ = t4t(_)), N && +_ == 0 && g !== "+" && (N = !1), R = (N ? g === "(" ? g : o : g === "-" || g === "(" ? "" : g) + R, $ = (S === "s" ? vq[8 + Kae / 3] : "") + $ + (N && g === "(" ? ")" : ""), E) { for (k = -1, P = _.length; ++k < P; ) if (M = _.charCodeAt(k), 48 > M || M > 57) { $ = (M === 46 ? i + _.slice(k + 1) : _.slice(k)) + $, _ = _.slice(0, k); @@ -39140,7 +39159,7 @@ function n4t(t) { }, L; } function h(f, d) { - var p = u((f = E3(f), f.type = "f", f)), g = Math.max(-8, Math.min(8, Math.floor(Dm(d) / 3))) * 3, m = Math.pow(10, -g), v = mq[8 + g / 3]; + var p = u((f = E3(f), f.type = "f", f)), g = Math.max(-8, Math.min(8, Math.floor(Dm(d) / 3))) * 3, m = Math.pow(10, -g), v = vq[8 + g / 3]; return function(y) { return p(m * y) + v; }; @@ -39150,14 +39169,14 @@ function n4t(t) { formatPrefix: h }; } -var GO, Kae, Jae; +var GO, Jae, eoe; i4t({ thousands: ",", grouping: [3], currency: ["$", ""] }); function i4t(t) { - return GO = n4t(t), Kae = GO.format, Jae = GO.formatPrefix, GO; + return GO = n4t(t), Jae = GO.format, eoe = GO.formatPrefix, GO; } function s4t(t) { return Math.max(0, -Dm(Math.abs(t))); @@ -39181,13 +39200,13 @@ function LC(t, e) { } return this; } -const vq = Symbol("implicit"); +const yq = Symbol("implicit"); function RC() { - var t = new XV(), e = [], r = [], n = vq; + var t = new HV(), e = [], r = [], n = yq; function i(s) { let a = t.get(s); if (a === void 0) { - if (n !== vq) + if (n !== yq) return n; t.set(s, a = e.push(s) - 1); } @@ -39196,7 +39215,7 @@ function RC() { return i.domain = function(s) { if (!arguments.length) return e.slice(); - e = [], t = new XV(); + e = [], t = new HV(); for (const a of s) t.has(a) || t.set(a, e.push(a) - 1); return i; @@ -39251,7 +39270,7 @@ function l4t(t) { function c4t(t) { return +t; } -var yq = [0, 1]; +var bq = [0, 1]; function wg(t) { return t; } @@ -39281,11 +39300,11 @@ function f4t(t, e, r) { return s[l](i[l](o)); }; } -function eoe(t, e) { +function toe(t, e) { return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown()); } function d4t() { - var t = yq, e = yq, r = YP, n, i, s, a = wg, o, l, u; + var t = bq, e = bq, r = YP, n, i, s, a = wg, o, l, u; function h() { var d = Math.min(t.length, e.length); return a !== wg && (a = u4t(t[0], t[d - 1])), o = d > 2 ? f4t : h4t, l = u = null, f; @@ -39311,7 +39330,7 @@ function d4t() { return n = d, i = p, h(); }; } -function toe() { +function roe() { return d4t()(wg, wg); } function p4t(t, e, r, n) { @@ -39319,7 +39338,7 @@ function p4t(t, e, r, n) { switch (n = E3(n == null ? ",f" : n), n.type) { case "s": { var a = Math.max(Math.abs(t), Math.abs(e)); - return n.precision == null && !isNaN(s = a4t(i, a)) && (n.precision = s), Jae(n, a); + return n.precision == null && !isNaN(s = a4t(i, a)) && (n.precision = s), eoe(n, a); } case "": case "e": @@ -39335,7 +39354,7 @@ function p4t(t, e, r, n) { break; } } - return Kae(n); + return Jae(n); } function g4t(t) { var e = t.domain; @@ -39363,9 +39382,9 @@ function g4t(t) { }, t; } function Pm() { - var t = toe(); + var t = roe(); return t.copy = function() { - return eoe(t, Pm()); + return toe(t, Pm()); }, LC.apply(t, arguments), g4t(t); } function m4t(t, e) { @@ -39416,7 +39435,7 @@ Nm.every = (t) => (t = Math.floor(t), !isFinite(t) || !(t > 0) ? null : t > 1 ? e.setTime(+e + r * t); }, (e, r) => (r - e) / t) : Nm); Nm.range; -const Gu = 1e3, rl = Gu * 60, Xu = rl * 60, gh = Xu * 24, ZP = gh * 7, bq = gh * 30, j6 = gh * 365, pf = Ki((t) => { +const Gu = 1e3, rl = Gu * 60, Xu = rl * 60, gh = Xu * 24, ZP = gh * 7, xq = gh * 30, j6 = gh * 365, pf = Ki((t) => { t.setTime(t - t.getMilliseconds()); }, (t, e) => { t.setTime(+t + e * Gu); @@ -39428,24 +39447,24 @@ const J2 = Ki((t) => { t.setTime(+t + e * rl); }, (t, e) => (e - t) / rl, (t) => t.getMinutes()); J2.range; -const roe = Ki((t) => { +const noe = Ki((t) => { t.setUTCSeconds(0, 0); }, (t, e) => { t.setTime(+t + e * rl); }, (t, e) => (e - t) / rl, (t) => t.getUTCMinutes()); -roe.range; +noe.range; const eb = Ki((t) => { t.setTime(t - t.getMilliseconds() - t.getSeconds() * Gu - t.getMinutes() * rl); }, (t, e) => { t.setTime(+t + e * Xu); }, (t, e) => (e - t) / Xu, (t) => t.getHours()); eb.range; -const noe = Ki((t) => { +const ioe = Ki((t) => { t.setUTCMinutes(0, 0, 0); }, (t, e) => { t.setTime(+t + e * Xu); }, (t, e) => (e - t) / Xu, (t) => t.getUTCHours()); -noe.range; +ioe.range; const U0 = Ki( (t) => t.setHours(0, 0, 0, 0), (t, e) => t.setDate(t.getDate() + e), @@ -39459,12 +39478,12 @@ const jP = Ki((t) => { t.setUTCDate(t.getUTCDate() + e); }, (t, e) => (e - t) / gh, (t) => t.getUTCDate() - 1); jP.range; -const ioe = Ki((t) => { +const soe = Ki((t) => { t.setUTCHours(0, 0, 0, 0); }, (t, e) => { t.setUTCDate(t.getUTCDate() + e); }, (t, e) => (e - t) / gh, (t) => Math.floor(t / gh)); -ioe.range; +soe.range; function Sp(t) { return Ki((e) => { e.setDate(e.getDate() - (e.getDay() + 7 - t) % 7), e.setHours(0, 0, 0, 0); @@ -39472,14 +39491,14 @@ function Sp(t) { e.setDate(e.getDate() + r * 7); }, (e, r) => (r - e - (r.getTimezoneOffset() - e.getTimezoneOffset()) * rl) / ZP); } -const nw = Sp(0), tb = Sp(1), soe = Sp(2), aoe = Sp(3), V0 = Sp(4), ooe = Sp(5), loe = Sp(6); +const nw = Sp(0), tb = Sp(1), aoe = Sp(2), ooe = Sp(3), V0 = Sp(4), loe = Sp(5), coe = Sp(6); nw.range; tb.range; -soe.range; aoe.range; -V0.range; ooe.range; +V0.range; loe.range; +coe.range; function Tp(t) { return Ki((e) => { e.setUTCDate(e.getUTCDate() - (e.getUTCDay() + 7 - t) % 7), e.setUTCHours(0, 0, 0, 0); @@ -39501,12 +39520,12 @@ const rb = Ki((t) => { t.setMonth(t.getMonth() + e); }, (t, e) => e.getMonth() - t.getMonth() + (e.getFullYear() - t.getFullYear()) * 12, (t) => t.getMonth()); rb.range; -const coe = Ki((t) => { +const uoe = Ki((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()); -coe.range; +uoe.range; const mh = Ki((t) => { t.setMonth(0, 1), t.setHours(0, 0, 0, 0); }, (t, e) => { @@ -39529,7 +39548,7 @@ Wf.every = (t) => !isFinite(t = Math.floor(t)) || !(t > 0) ? null : Ki((e) => { e.setUTCFullYear(e.getUTCFullYear() + r * t); }); Wf.range; -function uoe(t, e, r, n, i, s) { +function hoe(t, e, r, n, i, s) { const a = [ [pf, 1, Gu], [pf, 5, 5 * Gu], @@ -39546,8 +39565,8 @@ function uoe(t, e, r, n, i, s) { [n, 1, gh], [n, 2, 2 * gh], [r, 1, ZP], - [e, 1, bq], - [e, 3, 3 * bq], + [e, 1, xq], + [e, 3, 3 * xq], [t, 1, j6] ]; function o(u, h, f) { @@ -39567,8 +39586,8 @@ function uoe(t, e, r, n, i, s) { } return [o, l]; } -uoe(Wf, coe, KP, ioe, noe, roe); -const [w4t, O4t] = uoe(mh, rb, nw, U0, eb, J2); +hoe(Wf, uoe, KP, soe, ioe, noe); +const [w4t, O4t] = hoe(mh, rb, nw, U0, eb, J2); function K6(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); @@ -39593,21 +39612,21 @@ function k4t(t) { b: I, B: F, c: null, - d: Tq, - e: Tq, + d: Cq, + e: Cq, f: W4t, g: rkt, G: ikt, H: V4t, I: q4t, j: Y4t, - L: hoe, + L: foe, m: G4t, M: X4t, p: B, q: Q, - Q: _q, - s: Aq, + Q: Aq, + s: Lq, S: H4t, u: Z4t, U: j4t, @@ -39619,28 +39638,28 @@ function k4t(t) { y: tkt, Y: nkt, Z: skt, - "%": Eq + "%": _q }, O = { a: Y, A: G, b: X, B: q, c: null, - d: Cq, - e: Cq, + d: Eq, + e: Eq, f: ckt, g: bkt, G: wkt, H: akt, I: okt, j: lkt, - L: doe, + L: poe, m: ukt, M: hkt, p: ee, q: se, - Q: _q, - s: Aq, + Q: Aq, + s: Lq, S: fkt, u: dkt, U: pkt, @@ -39652,20 +39671,20 @@ function k4t(t) { y: ykt, Y: xkt, Z: Okt, - "%": Eq + "%": _q }, S = { a: L, A: _, b: R, B: $, c: k, - d: kq, - e: kq, + d: Sq, + e: Sq, f: F4t, - g: Oq, - G: wq, - H: Sq, - I: Sq, + g: kq, + G: Oq, + H: Tq, + I: Tq, j: N4t, L: B4t, m: P4t, @@ -39682,8 +39701,8 @@ function k4t(t) { W: R4t, x: P, X: M, - y: Oq, - Y: wq, + y: kq, + Y: Oq, Z: M4t, "%": z4t }; @@ -39692,7 +39711,7 @@ function k4t(t) { return function(W) { var J = [], oe = -1, ae = 0, te = U.length, De, he, _e; for (W instanceof Date || (W = new Date(+W)); ++oe < te; ) - U.charCodeAt(oe) === 37 && (J.push(U.slice(ae, oe)), (he = xq[De = U.charAt(++oe)]) != null ? De = U.charAt(++oe) : he = De === "e" ? " " : "0", (_e = j[De]) && (De = _e(W, he)), J.push(De), ae = oe + 1); + U.charCodeAt(oe) === 37 && (J.push(U.slice(ae, oe)), (he = wq[De = U.charAt(++oe)]) != null ? De = U.charAt(++oe) : he = De === "e" ? " " : "0", (_e = j[De]) && (De = _e(W, he)), J.push(De), ae = oe + 1); return J.push(U.slice(ae, oe)), J.join(""); }; } @@ -39719,7 +39738,7 @@ function k4t(t) { if (J >= te) return -1; if (De = j.charCodeAt(oe++), De === 37) { - if (De = j.charAt(oe++), he = S[De in xq ? j.charAt(oe++) : De], !he || (J = he(U, W, J)) < 0) + if (De = j.charAt(oe++), he = S[De in wq ? j.charAt(oe++) : De], !he || (J = he(U, W, J)) < 0) return -1; } else if (De != W.charCodeAt(J++)) return -1; @@ -39818,7 +39837,7 @@ function k4t(t) { } }; } -var xq = { "-": "", _: " ", 0: "0" }, fs = /^\s*\d+/, S4t = /^%/, T4t = /[\\^$*+?|[\]().{}]/g; +var wq = { "-": "", _: " ", 0: "0" }, fs = /^\s*\d+/, S4t = /^%/, T4t = /[\\^$*+?|[\]().{}]/g; function Yr(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); @@ -39852,11 +39871,11 @@ function R4t(t, e, r) { var n = fs.exec(e.slice(r, r + 2)); return n ? (t.W = +n[0], r + n[0].length) : -1; } -function wq(t, e, r) { +function Oq(t, e, r) { var n = fs.exec(e.slice(r, r + 4)); return n ? (t.y = +n[0], r + n[0].length) : -1; } -function Oq(t, e, r) { +function kq(t, e, r) { var n = fs.exec(e.slice(r, r + 2)); return n ? (t.y = +n[0] + (+n[0] > 68 ? 1900 : 2e3), r + n[0].length) : -1; } @@ -39872,7 +39891,7 @@ function P4t(t, e, r) { var n = fs.exec(e.slice(r, r + 2)); return n ? (t.m = n[0] - 1, r + n[0].length) : -1; } -function kq(t, e, r) { +function Sq(t, e, r) { var n = fs.exec(e.slice(r, r + 2)); return n ? (t.d = +n[0], r + n[0].length) : -1; } @@ -39880,7 +39899,7 @@ function N4t(t, e, r) { var n = fs.exec(e.slice(r, r + 3)); return n ? (t.m = 0, t.d = +n[0], r + n[0].length) : -1; } -function Sq(t, e, r) { +function Tq(t, e, r) { var n = fs.exec(e.slice(r, r + 2)); return n ? (t.H = +n[0], r + n[0].length) : -1; } @@ -39912,7 +39931,7 @@ function U4t(t, e, r) { var n = fs.exec(e.slice(r)); return n ? (t.s = +n[0], r + n[0].length) : -1; } -function Tq(t, e) { +function Cq(t, e) { return Yr(t.getDate(), e, 2); } function V4t(t, e) { @@ -39924,11 +39943,11 @@ function q4t(t, e) { function Y4t(t, e) { return Yr(1 + U0.count(mh(t), t), e, 3); } -function hoe(t, e) { +function foe(t, e) { return Yr(t.getMilliseconds(), e, 3); } function W4t(t, e) { - return hoe(t, e) + "000"; + return foe(t, e) + "000"; } function G4t(t, e) { return Yr(t.getMonth() + 1, e, 2); @@ -39946,12 +39965,12 @@ function Z4t(t) { function j4t(t, e) { return Yr(nw.count(mh(t) - 1, t), e, 2); } -function foe(t) { +function doe(t) { var e = t.getDay(); return e >= 4 || e === 0 ? V0(t) : V0.ceil(t); } function K4t(t, e) { - return t = foe(t), Yr(V0.count(mh(t), t) + (mh(t).getDay() === 4), e, 2); + return t = doe(t), Yr(V0.count(mh(t), t) + (mh(t).getDay() === 4), e, 2); } function J4t(t) { return t.getDay(); @@ -39963,7 +39982,7 @@ function tkt(t, e) { return Yr(t.getFullYear() % 100, e, 2); } function rkt(t, e) { - return t = foe(t), Yr(t.getFullYear() % 100, e, 2); + return t = doe(t), Yr(t.getFullYear() % 100, e, 2); } function nkt(t, e) { return Yr(t.getFullYear() % 1e4, e, 4); @@ -39976,7 +39995,7 @@ function skt(t) { var e = t.getTimezoneOffset(); return (e > 0 ? "-" : (e *= -1, "+")) + Yr(e / 60 | 0, "0", 2) + Yr(e % 60, "0", 2); } -function Cq(t, e) { +function Eq(t, e) { return Yr(t.getUTCDate(), e, 2); } function akt(t, e) { @@ -39988,11 +40007,11 @@ function okt(t, e) { function lkt(t, e) { return Yr(1 + jP.count(Wf(t), t), e, 3); } -function doe(t, e) { +function poe(t, e) { return Yr(t.getUTCMilliseconds(), e, 3); } function ckt(t, e) { - return doe(t, e) + "000"; + return poe(t, e) + "000"; } function ukt(t, e) { return Yr(t.getUTCMonth() + 1, e, 2); @@ -40010,12 +40029,12 @@ function dkt(t) { function pkt(t, e) { return Yr(KP.count(Wf(t) - 1, t), e, 2); } -function poe(t) { +function goe(t) { var e = t.getUTCDay(); return e >= 4 || e === 0 ? Im(t) : Im.ceil(t); } function gkt(t, e) { - return t = poe(t), Yr(Im.count(Wf(t), t) + (Wf(t).getUTCDay() === 4), e, 2); + return t = goe(t), Yr(Im.count(Wf(t), t) + (Wf(t).getUTCDay() === 4), e, 2); } function mkt(t) { return t.getUTCDay(); @@ -40027,7 +40046,7 @@ function ykt(t, e) { return Yr(t.getUTCFullYear() % 100, e, 2); } function bkt(t, e) { - return t = poe(t), Yr(t.getUTCFullYear() % 100, e, 2); + return t = goe(t), Yr(t.getUTCFullYear() % 100, e, 2); } function xkt(t, e) { return Yr(t.getUTCFullYear() % 1e4, e, 4); @@ -40039,13 +40058,13 @@ function wkt(t, e) { function Okt() { return "+0000"; } -function Eq() { +function _q() { return "%"; } -function _q(t) { +function Aq(t) { return +t; } -function Aq(t) { +function Lq(t) { return Math.floor(+t / 1e3); } var Hp, A3; @@ -40068,8 +40087,8 @@ function Skt(t) { function Tkt(t) { return t instanceof Date ? +t : +new Date(+t); } -function goe(t, e, r, n, i, s, a, o, l, u) { - var h = toe(), 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 moe(t, e, r, n, i, s, a, o, l, u) { + var h = roe(), 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); } @@ -40086,11 +40105,11 @@ function goe(t, e, r, n, i, s, a, o, l, u) { var T = d(); return (!C || typeof C.range != "function") && (C = e(T[0], T[T.length - 1], C == null ? 10 : C)), C ? d(m4t(T, C)) : h; }, h.copy = function() { - return eoe(h, goe(t, e, r, n, i, s, a, o, l, u)); + return toe(h, moe(t, e, r, n, i, s, a, o, l, u)); }, h; } function Ckt() { - return LC.apply(goe(w4t, O4t, mh, rb, nw, U0, eb, J2, pf, A3).domain([new Date(2e3, 0, 1), new Date(2e3, 0, 2)]), arguments); + return LC.apply(moe(w4t, O4t, mh, rb, nw, U0, eb, J2, pf, A3).domain([new Date(2e3, 0, 1), new Date(2e3, 0, 2)]), arguments); } function Ekt(t) { for (var e = t.length / 6 | 0, r = new Array(e), n = 0; n < e; ) @@ -40103,14 +40122,14 @@ function hi(t) { return t; }; } -const Lq = Math.abs, Qs = Math.atan2, Md = Math.cos, Akt = Math.max, eA = Math.min, Tc = Math.sin, Og = Math.sqrt, qs = 1e-12, nb = Math.PI, L3 = nb / 2, Ak = 2 * nb; +const Rq = Math.abs, Qs = Math.atan2, Md = Math.cos, Akt = Math.max, eA = Math.min, Tc = Math.sin, Og = Math.sqrt, qs = 1e-12, nb = Math.PI, L3 = nb / 2, Ak = 2 * nb; function Lkt(t) { return t > 1 ? 0 : t < -1 ? nb : Math.acos(t); } -function Rq(t) { +function Mq(t) { return t >= 1 ? L3 : t <= -1 ? -L3 : Math.asin(t); } -function moe(t) { +function voe(t) { let e = 3; return t.digits = function(r) { if (!arguments.length) @@ -40158,17 +40177,17 @@ function XO(t, e, r, n, i, s, a) { }; } function $m() { - var t = Rkt, e = Mkt, r = hi(0), n = null, i = Dkt, s = Pkt, a = Nkt, o = null, l = moe(u); + var t = Rkt, e = Mkt, r = hi(0), n = null, i = Dkt, s = Pkt, a = Nkt, o = null, l = voe(u); function u() { - var h, f, d = +t.apply(this, arguments), p = +e.apply(this, arguments), g = i.apply(this, arguments) - L3, m = s.apply(this, arguments) - L3, v = Lq(m - g), y = m > g; + var h, f, d = +t.apply(this, arguments), p = +e.apply(this, arguments), g = i.apply(this, arguments) - L3, m = s.apply(this, arguments) - L3, v = Rq(m - g), y = m > g; if (o || (o = h = l()), p < d && (f = p, p = d, d = f), !(p > qs)) o.moveTo(0, 0); else if (v > Ak - qs) o.moveTo(p * Md(g), p * Tc(g)), o.arc(0, 0, p, g, m, !y), d > qs && (o.moveTo(d * Md(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, A = a.apply(this, arguments) / 2, E = A > qs && (n ? +n.apply(this, arguments) : Og(d * d + p * p)), L = eA(Lq(p - d) / 2, +r.apply(this, arguments)), _ = L, R = L, $, k; + var b = g, w = m, O = g, S = m, C = v, T = v, A = a.apply(this, arguments) / 2, E = A > qs && (n ? +n.apply(this, arguments) : Og(d * d + p * p)), L = eA(Rq(p - d) / 2, +r.apply(this, arguments)), _ = L, R = L, $, k; if (E > qs) { - var P = Rq(E / d * Tc(A)), M = Rq(E / p * Tc(A)); + var P = Mq(E / d * Tc(A)), M = Mq(E / p * Tc(A)); (C -= P * 2) > qs ? (P *= y ? 1 : -1, O += P, S -= P) : (C = 0, O = S = (g + m) / 2), (T -= M * 2) > qs ? (M *= y ? 1 : -1, b += M, w -= M) : (T = 0, b = w = (g + m) / 2); } var N = p * Md(b), D = p * Tc(b), I = d * Md(S), F = d * Tc(S); @@ -40207,13 +40226,13 @@ function $m() { return arguments.length ? (o = h == null ? null : h, u) : o; }, u; } -function voe(t) { +function yoe(t) { return typeof t == "object" && "length" in t ? t : Array.from(t); } -function yoe(t) { +function boe(t) { this._context = t; } -yoe.prototype = { +boe.prototype = { areaStart: function() { this._line = 0; }, @@ -40240,7 +40259,7 @@ yoe.prototype = { } }; function MC(t) { - return new yoe(t); + return new boe(t); } function $kt(t) { return t[0]; @@ -40249,10 +40268,10 @@ function Bkt(t) { return t[1]; } function Gf(t, e) { - var r = hi(!0), n = null, i = MC, s = null, a = moe(o); + var r = hi(!0), n = null, i = MC, s = null, a = voe(o); t = typeof t == "function" ? t : t === void 0 ? $kt : hi(t), e = typeof e == "function" ? e : e === void 0 ? Bkt : hi(e); function o(l) { - var u, h = (l = voe(l)).length, f, d = !1, p; + var u, h = (l = yoe(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) @@ -40279,7 +40298,7 @@ function zkt(t) { function Qkt() { var t = zkt, e = Fkt, r = null, n = hi(0), i = hi(Ak), s = hi(0); function a(o) { - var l, u = (o = voe(o)).length, h, f, d = 0, p = new Array(u), g = new Array(u), m = +n.apply(this, arguments), v = Math.min(Ak, Math.max(-Ak, 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 = yoe(o)).length, h, f, d = 0, p = new Array(u), g = new Array(u), m = +n.apply(this, arguments), v = Math.min(Ak, Math.max(-Ak, 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) { @@ -40311,7 +40330,7 @@ function Qkt() { return arguments.length ? (s = typeof o == "function" ? o : hi(+o), a) : s; }, a; } -class boe { +class xoe { constructor(e, r) { this._context = e, this._x = r; } @@ -40344,10 +40363,10 @@ class boe { } } function Ukt(t) { - return new boe(t, !0); + return new xoe(t, !0); } function Vkt(t) { - return new boe(t, !1); + return new xoe(t, !1); } function Xf() { } @@ -40404,10 +40423,10 @@ DC.prototype = { function N1(t) { return new DC(t); } -function xoe(t) { +function woe(t) { this._context = t; } -xoe.prototype = { +woe.prototype = { areaStart: Xf, areaEnd: Xf, lineStart: function() { @@ -40448,12 +40467,12 @@ xoe.prototype = { } }; function qkt(t) { - return new xoe(t); + return new woe(t); } -function woe(t) { +function Ooe(t) { this._context = t; } -woe.prototype = { +Ooe.prototype = { areaStart: function() { this._line = 0; }, @@ -40489,12 +40508,12 @@ woe.prototype = { } }; function Ykt(t) { - return new woe(t); + return new Ooe(t); } -function Ooe(t, e) { +function koe(t, e) { this._basis = new DC(t), this._beta = e; } -Ooe.prototype = { +koe.prototype = { lineStart: function() { this._x = [], this._y = [], this._basis.lineStart(); }, @@ -40514,7 +40533,7 @@ Ooe.prototype = { }; const Wkt = function t(e) { function r(n) { - return e === 1 ? new DC(n) : new Ooe(n, e); + return e === 1 ? new DC(n) : new koe(n, e); } return r.beta = function(n) { return t(+n); @@ -40686,10 +40705,10 @@ function rN(t, e, r) { } t._context.bezierCurveTo(n, i, s, a, t._x2, t._y2); } -function koe(t, e) { +function Soe(t, e) { this._context = t, this._alpha = e; } -koe.prototype = { +Soe.prototype = { areaStart: function() { this._line = 0; }, @@ -40733,16 +40752,16 @@ koe.prototype = { }; const Zkt = function t(e) { function r(n) { - return e ? new koe(n, e) : new JP(n, 0); + return e ? new Soe(n, e) : new JP(n, 0); } return r.alpha = function(n) { return t(+n); }, r; }(0.5); -function Soe(t, e) { +function Toe(t, e) { this._context = t, this._alpha = e; } -Soe.prototype = { +Toe.prototype = { areaStart: Xf, areaEnd: Xf, lineStart: function() { @@ -40788,16 +40807,16 @@ Soe.prototype = { }; const jkt = function t(e) { function r(n) { - return e ? new Soe(n, e) : new eN(n, 0); + return e ? new Toe(n, e) : new eN(n, 0); } return r.alpha = function(n) { return t(+n); }, r; }(0.5); -function Toe(t, e) { +function Coe(t, e) { this._context = t, this._alpha = e; } -Toe.prototype = { +Coe.prototype = { areaStart: function() { this._line = 0; }, @@ -40836,16 +40855,16 @@ Toe.prototype = { }; const Kkt = function t(e) { function r(n) { - return e ? new Toe(n, e) : new tN(n, 0); + return e ? new Coe(n, e) : new tN(n, 0); } return r.alpha = function(n) { return t(+n); }, r; }(0.5); -function Coe(t) { +function Eoe(t) { this._context = t; } -Coe.prototype = { +Eoe.prototype = { areaStart: Xf, areaEnd: Xf, lineStart: function() { @@ -40859,16 +40878,16 @@ Coe.prototype = { } }; function Jkt(t) { - return new Coe(t); + return new Eoe(t); } -function Mq(t) { +function Dq(t) { return t < 0 ? -1 : 1; } -function Dq(t, e, r) { +function Pq(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 (Mq(s) + Mq(a)) * Math.min(Math.abs(s), Math.abs(a), 0.5 * Math.abs(o)) || 0; + return (Dq(s) + Dq(a)) * Math.min(Math.abs(s), Math.abs(a), 0.5 * Math.abs(o)) || 0; } -function Pq(t, e) { +function Nq(t, e) { var r = t._x1 - t._x0; return r ? (3 * (t._y1 - t._y0) / r - e) / 2 : e; } @@ -40895,7 +40914,7 @@ D3.prototype = { this._context.lineTo(this._x1, this._y1); break; case 3: - tA(this, this._t0, Pq(this, this._t0)); + tA(this, this._t0, Nq(this, this._t0)); break; } (this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line; @@ -40911,26 +40930,26 @@ D3.prototype = { this._point = 2; break; case 2: - this._point = 3, tA(this, Pq(this, r = Dq(this, t, e)), r); + this._point = 3, tA(this, Nq(this, r = Pq(this, t, e)), r); break; default: - tA(this, this._t0, r = Dq(this, t, e)); + tA(this, this._t0, r = Pq(this, t, e)); break; } this._x0 = this._x1, this._x1 = t, this._y0 = this._y1, this._y1 = e, this._t0 = r; } } }; -function Eoe(t) { - this._context = new _oe(t); +function _oe(t) { + this._context = new Aoe(t); } -(Eoe.prototype = Object.create(D3.prototype)).point = function(t, e) { +(_oe.prototype = Object.create(D3.prototype)).point = function(t, e) { D3.prototype.point.call(this, e, t); }; -function _oe(t) { +function Aoe(t) { this._context = t; } -_oe.prototype = { +Aoe.prototype = { moveTo: function(t, e) { this._context.moveTo(e, t); }, @@ -40948,12 +40967,12 @@ function e5t(t) { return new D3(t); } function t5t(t) { - return new Eoe(t); + return new _oe(t); } -function Aoe(t) { +function Loe(t) { this._context = t; } -Aoe.prototype = { +Loe.prototype = { areaStart: function() { this._line = 0; }, @@ -40969,7 +40988,7 @@ Aoe.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 = Nq(t), i = Nq(e), s = 0, a = 1; a < r; ++s, ++a) + for (var n = Iq(t), i = Iq(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; }, @@ -40977,7 +40996,7 @@ Aoe.prototype = { this._x.push(+t), this._y.push(+e); } }; -function Nq(t) { +function Iq(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]; @@ -40990,7 +41009,7 @@ function Nq(t) { return [i, s]; } function r5t(t) { - return new Aoe(t); + return new Loe(t); } function PC(t, e) { this._context = t, this._t = e; @@ -41079,12 +41098,12 @@ kg.prototype = { new kg(1, 0, 0); kg.prototype; var a5t = typeof global == "object" && global && global.Object === Object && global; -const Loe = a5t; -var o5t = typeof self == "object" && self && self.Object === Object && self, l5t = Loe || o5t || Function("return this")(); +const Roe = a5t; +var o5t = typeof self == "object" && self && self.Object === Object && self, l5t = Roe || o5t || Function("return this")(); const gc = l5t; var c5t = gc.Symbol; const gl = c5t; -var Roe = Object.prototype, u5t = Roe.hasOwnProperty, h5t = Roe.toString, Iv = gl ? gl.toStringTag : void 0; +var Moe = Object.prototype, u5t = Moe.hasOwnProperty, h5t = Moe.toString, Iv = gl ? gl.toStringTag : void 0; function f5t(t) { var e = u5t.call(t, Iv), r = t[Iv]; try { @@ -41099,9 +41118,9 @@ var d5t = Object.prototype, p5t = d5t.toString; function g5t(t) { return p5t.call(t); } -var m5t = "[object Null]", v5t = "[object Undefined]", Iq = gl ? gl.toStringTag : void 0; +var m5t = "[object Null]", v5t = "[object Undefined]", $q = gl ? gl.toStringTag : void 0; function Ph(t) { - return t == null ? t === void 0 ? v5t : m5t : Iq && Iq in Object(t) ? f5t(t) : g5t(t); + return t == null ? t === void 0 ? v5t : m5t : $q && $q in Object(t) ? f5t(t) : g5t(t); } function so(t) { var e = typeof t; @@ -41116,12 +41135,12 @@ function ml(t) { } var O5t = gc["__core-js_shared__"]; const rA = O5t; -var $q = function() { +var Bq = function() { var t = /[^.]+$/.exec(rA && rA.keys && rA.keys.IE_PROTO || ""); return t ? "Symbol(src)_1." + t : ""; }(); function k5t(t) { - return !!$q && $q in t; + return !!Bq && Bq in t; } var S5t = Function.prototype, T5t = S5t.toString; function Cp(t) { @@ -41357,11 +41376,11 @@ function g3t(t) { } var m3t = g3t(); const nN = m3t; -var Moe = typeof exports == "object" && exports && !exports.nodeType && exports, Bq = Moe && typeof module == "object" && module && !module.nodeType && module, v3t = Bq && Bq.exports === Moe, Fq = v3t ? gc.Buffer : void 0, zq = Fq ? Fq.allocUnsafe : void 0; -function Doe(t, e) { +var Doe = typeof exports == "object" && exports && !exports.nodeType && exports, Fq = Doe && typeof module == "object" && module && !module.nodeType && module, v3t = Fq && Fq.exports === Doe, zq = v3t ? gc.Buffer : void 0, Qq = zq ? zq.allocUnsafe : void 0; +function Poe(t, e) { if (e) return t.slice(); - var r = t.length, n = zq ? zq(r) : new t.constructor(r); + var r = t.length, n = Qq ? Qq(r) : new t.constructor(r); return t.copy(n), n; } var y3t = gc.Uint8Array; @@ -41370,55 +41389,55 @@ function iN(t) { var e = new t.constructor(t.byteLength); return new N3(e).set(new N3(t)), e; } -function Poe(t, e) { +function Noe(t, e) { var r = e ? iN(t.buffer) : t.buffer; return new t.constructor(r, t.byteOffset, t.length); } -function Noe(t, e) { +function Ioe(t, e) { var r = -1, n = t.length; for (e || (e = Array(n)); ++r < n; ) e[r] = t[r]; return e; } -var Qq = Object.create, b3t = function() { +var Uq = Object.create, b3t = function() { function t() { } return function(e) { if (!so(e)) return {}; - if (Qq) - return Qq(e); + if (Uq) + return Uq(e); t.prototype = e; var r = new t(); return t.prototype = void 0, r; }; }(); const x3t = b3t; -function Ioe(t, e) { +function $oe(t, e) { return function(r) { return t(e(r)); }; } -var w3t = Ioe(Object.getPrototypeOf, Object); +var w3t = $oe(Object.getPrototypeOf, Object); const sN = w3t; var O3t = Object.prototype; function sw(t) { var e = t && t.constructor, r = typeof e == "function" && e.prototype || O3t; return t === r; } -function $oe(t) { +function Boe(t) { return typeof t.constructor == "function" && !sw(t) ? x3t(sN(t)) : {}; } function vl(t) { return t != null && typeof t == "object"; } var k3t = "[object Arguments]"; -function Uq(t) { +function Vq(t) { return vl(t) && Ph(t) == k3t; } -var Boe = Object.prototype, S3t = Boe.hasOwnProperty, T3t = Boe.propertyIsEnumerable, C3t = Uq(function() { +var Foe = Object.prototype, S3t = Foe.hasOwnProperty, T3t = Foe.propertyIsEnumerable, C3t = Vq(function() { return arguments; -}()) ? Uq : function(t) { +}()) ? Vq : function(t) { return vl(t) && S3t.call(t, "callee") && !T3t.call(t, "callee"); }; const Bm = C3t; @@ -41437,9 +41456,9 @@ function I3(t) { function A3t() { return !1; } -var Foe = typeof exports == "object" && exports && !exports.nodeType && exports, Vq = Foe && typeof module == "object" && module && !module.nodeType && module, L3t = Vq && Vq.exports === Foe, qq = L3t ? gc.Buffer : void 0, R3t = qq ? qq.isBuffer : void 0, M3t = R3t || A3t; +var zoe = typeof exports == "object" && exports && !exports.nodeType && exports, qq = zoe && typeof module == "object" && module && !module.nodeType && module, L3t = qq && qq.exports === zoe, Yq = L3t ? gc.Buffer : void 0, R3t = Yq ? Yq.isBuffer : void 0, M3t = R3t || A3t; const Fm = M3t; -var D3t = "[object Object]", P3t = Function.prototype, N3t = Object.prototype, zoe = P3t.toString, I3t = N3t.hasOwnProperty, $3t = zoe.call(Object); +var D3t = "[object Object]", P3t = Function.prototype, N3t = Object.prototype, Qoe = P3t.toString, I3t = N3t.hasOwnProperty, $3t = Qoe.call(Object); function B3t(t) { if (!vl(t) || Ph(t) != D3t) return !1; @@ -41447,7 +41466,7 @@ function B3t(t) { if (e === null) return !0; var r = I3t.call(e, "constructor") && e.constructor; - return typeof r == "function" && r instanceof r && zoe.call(r) == $3t; + return typeof r == "function" && r instanceof r && Qoe.call(r) == $3t; } var F3t = "[object Arguments]", z3t = "[object Array]", Q3t = "[object Boolean]", U3t = "[object Date]", V3t = "[object Error]", q3t = "[object Function]", Y3t = "[object Map]", W3t = "[object Number]", G3t = "[object Object]", X3t = "[object RegExp]", H3t = "[object Set]", Z3t = "[object String]", j3t = "[object WeakMap]", K3t = "[object ArrayBuffer]", J3t = "[object DataView]", eSt = "[object Float32Array]", tSt = "[object Float64Array]", rSt = "[object Int8Array]", nSt = "[object Int16Array]", iSt = "[object Int32Array]", sSt = "[object Uint8Array]", aSt = "[object Uint8ClampedArray]", oSt = "[object Uint16Array]", lSt = "[object Uint32Array]", Ln = {}; Ln[eSt] = Ln[tSt] = Ln[rSt] = Ln[nSt] = Ln[iSt] = Ln[sSt] = Ln[aSt] = Ln[oSt] = Ln[lSt] = !0; @@ -41460,7 +41479,7 @@ function B1(t) { return t(e); }; } -var Qoe = typeof exports == "object" && exports && !exports.nodeType && exports, Zy = Qoe && typeof module == "object" && module && !module.nodeType && module, uSt = Zy && Zy.exports === Qoe, nA = uSt && Loe.process, hSt = function() { +var Uoe = typeof exports == "object" && exports && !exports.nodeType && exports, Zy = Uoe && typeof module == "object" && module && !module.nodeType && module, uSt = Zy && Zy.exports === Uoe, nA = uSt && Roe.process, hSt = function() { try { var t = Zy && Zy.require && Zy.require("util").types; return t || nA && nA.binding && nA.binding("util"); @@ -41468,7 +41487,7 @@ var Qoe = typeof exports == "object" && exports && !exports.nodeType && exports, } }(); const Hf = hSt; -var Yq = Hf && Hf.isTypedArray, fSt = Yq ? B1(Yq) : cSt; +var Wq = Hf && Hf.isTypedArray, fSt = Wq ? B1(Wq) : cSt; const $C = fSt; function G9(t, e) { if (!(e === "constructor" && typeof t[e] == "function") && e != "__proto__") @@ -41499,7 +41518,7 @@ function BC(t, e) { return e = e == null ? mSt : e, !!e && (r == "number" || r != "symbol" && vSt.test(t)) && t > -1 && t % 1 == 0 && t < e; } var ySt = Object.prototype, bSt = ySt.hasOwnProperty; -function Uoe(t, e) { +function Voe(t, e) { var r = Pr(t), n = !r && Bm(t), i = !r && !n && Fm(t), s = !r && !n && !i && $C(t), a = r || n || i || s, o = a ? gSt(t.length, String) : [], l = o.length; for (var u in t) (e || bSt.call(t, u)) && !(a && (u == "length" || i && (u == "offset" || u == "parent") || s && (u == "buffer" || u == "byteLength" || u == "byteOffset") || BC(u, l))) && o.push(u); @@ -41522,7 +41541,7 @@ function kSt(t) { return r; } function _p(t) { - return ku(t) ? Uoe(t, !0) : kSt(t); + return ku(t) ? Voe(t, !0) : kSt(t); } function SSt(t) { return F1(t, _p(t)); @@ -41536,14 +41555,14 @@ function TSt(t, e, r, n, i, s, a) { var h = s ? s(o, l, r + "", t, e, a) : void 0, f = h === void 0; if (f) { var d = Pr(l), p = !d && Fm(l), g = !d && !p && $C(l); - h = l, d || p || g ? Pr(o) ? h = o : I3(o) ? h = Noe(o) : p ? (f = !1, h = Doe(l, !0)) : g ? (f = !1, h = Poe(l, !0)) : h = [] : B3t(l) || Bm(l) ? (h = o, Bm(o) ? h = SSt(o) : (!so(o) || ml(o)) && (h = $oe(l))) : f = !1; + h = l, d || p || g ? Pr(o) ? h = o : I3(o) ? h = Ioe(o) : p ? (f = !1, h = Poe(l, !0)) : g ? (f = !1, h = Noe(l, !0)) : h = [] : B3t(l) || Bm(l) ? (h = o, Bm(o) ? h = SSt(o) : (!so(o) || ml(o)) && (h = Boe(l))) : f = !1; } f && (a.set(l, h), i(h, l, n, s, a), a.delete(l)), W9(t, r, h); } -function Voe(t, e, r, n, i) { +function qoe(t, e, r, n, i) { t !== e && nN(e, function(s, a) { if (i || (i = new Yl()), so(s)) - TSt(t, e, a, r, Voe, n, i); + TSt(t, e, a, r, qoe, n, i); else { var o = n ? n(G9(t, a), s, a + "", t, e, i) : void 0; o === void 0 && (o = s), W9(t, a, o); @@ -41566,10 +41585,10 @@ function CSt(t, e, r) { } return t.apply(e, r); } -var Wq = Math.max; -function qoe(t, e, r) { - return e = Wq(e === void 0 ? t.length - 1 : e, 0), function() { - for (var n = arguments, i = -1, s = Wq(n.length - e, 0), a = Array(s); ++i < s; ) +var Gq = Math.max; +function Yoe(t, e, r) { + return e = Gq(e === void 0 ? t.length - 1 : e, 0), function() { + for (var n = arguments, i = -1, s = Gq(n.length - e, 0), a = Array(s); ++i < s; ) a[i] = n[e + i]; i = -1; for (var o = Array(e + 1); ++i < e; ) @@ -41605,9 +41624,9 @@ function MSt(t) { }; } var DSt = MSt(_St); -const Yoe = DSt; +const Woe = DSt; function ow(t, e) { - return Yoe(qoe(t, e, vh), t + ""); + return Woe(Yoe(t, e, vh), t + ""); } function Y0(t, e, r) { if (!so(r)) @@ -41615,7 +41634,7 @@ function Y0(t, e, r) { var n = typeof e; return (n == "number" ? ku(r) && BC(e, r.length) : n == "string" && e in r) ? I1(r[e], t) : !1; } -function Woe(t) { +function Goe(t) { return ow(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 && Y0(r[0], r[1], a) && (s = i < 3 ? void 0 : s, i = 1), e = Object(e); ++n < i; ) { @@ -41625,11 +41644,11 @@ function Woe(t) { return e; }); } -var PSt = Woe(function(t, e, r) { - Voe(t, e, r); +var PSt = Goe(function(t, e, r) { + qoe(t, e, r); }); const $3 = PSt; -var Goe = "\u200B", NSt = { +var Xoe = "\u200B", NSt = { curveBasis: N1, curveBasisClosed: qkt, curveBasisOpen: Ykt, @@ -41651,7 +41670,7 @@ var Goe = "\u200B", NSt = { curveStepAfter: s5t, curveStepBefore: i5t }, ISt = /\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi, $St = /* @__PURE__ */ x(function(t, e) { - const r = Xoe(t, /(?:init\b)|(?:initialize\b)/); + const r = Hoe(t, /(?:init\b)|(?:initialize\b)/); let n = {}; if (Array.isArray(r)) { const a = r.map((o) => o.args); @@ -41663,7 +41682,7 @@ var Goe = "\u200B", NSt = { let i = PP(t, e); const s = "config"; return n[s] !== void 0 && (i === "flowchart-v2" && (i = "flowchart"), n[i] = n[s], delete n[s]), n; -}, "detectInit"), Xoe = /* @__PURE__ */ x(function(t, e = null) { +}, "detectInit"), Hoe = /* @__PURE__ */ x(function(t, e = null) { var r, n; try { const i = new RegExp( @@ -41703,12 +41722,12 @@ function lw(t, e) { return (n = NSt[r]) != null ? n : e; } x(lw, "interpolateToCurve"); -function Hoe(t, e) { +function Zoe(t, e) { const r = t.trim(); if (!!r) return e.securityLevel !== "loose" ? yd(r) : r; } -x(Hoe, "formatUrl"); +x(Zoe, "formatUrl"); var zSt = /* @__PURE__ */ x((t, ...e) => { const r = t.split("."), n = r.length - 1, i = r[n]; let s = window; @@ -41723,7 +41742,7 @@ function oN(t, e) { return !t || !e ? 0 : Math.sqrt(Math.pow(e.x - t.x, 2) + Math.pow(e.y - t.y, 2)); } x(oN, "distance"); -function Zoe(t) { +function joe(t) { let e, r = 0; t.forEach((i) => { r += oN(i, e), e = i; @@ -41731,12 +41750,12 @@ function Zoe(t) { const n = r / 2; return lN(t, n); } -x(Zoe, "traverseEdge"); -function joe(t) { - return t.length === 1 ? t[0] : Zoe(t); +x(joe, "traverseEdge"); +function Koe(t) { + return t.length === 1 ? t[0] : joe(t); } -x(joe, "calcLabelPosition"); -var Gq = /* @__PURE__ */ x((t, e = 2) => { +x(Koe, "calcLabelPosition"); +var Xq = /* @__PURE__ */ x((t, e = 2) => { const r = Math.pow(10, e); return Math.round(t * r) / r; }, "roundNumber"), lN = /* @__PURE__ */ x((t, e) => { @@ -41754,8 +41773,8 @@ var Gq = /* @__PURE__ */ x((t, e = 2) => { return { x: i.x, y: i.y }; if (a > 0 && a < 1) return { - x: Gq((1 - a) * r.x + a * i.x, 5), - y: Gq((1 - a) * r.y + a * i.y, 5) + x: Xq((1 - a) * r.x + a * i.x, 5), + y: Xq((1 - a) * r.y + a * i.y, 5) }; } } @@ -41767,13 +41786,13 @@ var Gq = /* @__PURE__ */ x((t, e = 2) => { const i = lN(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 Koe(t, e, r) { +function Joe(t, e, r) { const n = structuredClone(r); Z.info("our points", n), e !== "start_left" && e !== "start_right" && n.reverse(); const i = 25 + t, s = lN(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(Koe, "calcTerminalLabelPosition"); +x(Joe, "calcTerminalLabelPosition"); function cw(t) { let e = "", r = ""; for (const n of t) @@ -41781,16 +41800,16 @@ function cw(t) { return { style: e, labelStyle: r }; } x(cw, "getStylesFromArray"); -var Xq = 0, Joe = /* @__PURE__ */ x(() => (Xq++, "id-" + Math.random().toString(36).substr(2, 12) + "-" + Xq), "generateId"); -function ele(t) { +var Hq = 0, ele = /* @__PURE__ */ x(() => (Hq++, "id-" + Math.random().toString(36).substr(2, 12) + "-" + Hq), "generateId"); +function tle(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(ele, "makeRandomHex"); -var tle = /* @__PURE__ */ x((t) => ele(t.length), "random"), USt = /* @__PURE__ */ x(function() { +x(tle, "makeRandomHex"); +var rle = /* @__PURE__ */ x((t) => tle(t.length), "random"), USt = /* @__PURE__ */ x(function() { return { x: 0, y: 0, @@ -41810,7 +41829,7 @@ var tle = /* @__PURE__ */ x((t) => ele(t.length), "random"), USt = /* @__PURE__ 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"), rle = $1( +}, "drawSimpleText"), nle = $1( (t, e, r) => { if (!t || (r = Object.assign( { fontSize: 12, fontWeight: 400, fontFamily: "Arial", joinWith: "
" }, @@ -41871,7 +41890,7 @@ var cN = $1( const g = { width: 0, height: 0, lineHeight: 0 }; for (const m of o) { const v = USt(); - v.text = m || Goe; + v.text = m || Xoe; const y = VSt(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"); @@ -41915,22 +41934,22 @@ function $h(t, e) { x($h, "cleanAndMerge"); var mr = { assignWithDepth: Ui, - wrapLabel: rle, + wrapLabel: nle, calculateTextHeight: B3, calculateTextWidth: Wl, calculateTextDimensions: cN, cleanAndMerge: $h, detectInit: $St, - detectDirective: Xoe, + detectDirective: Hoe, isSubstringInArray: FSt, interpolateToCurve: lw, - calcLabelPosition: joe, + calcLabelPosition: Koe, calcCardinalityPosition: QSt, - calcTerminalLabelPosition: Koe, - formatUrl: Hoe, + calcTerminalLabelPosition: Joe, + formatUrl: Zoe, getStylesFromArray: cw, - generateId: Joe, - random: tle, + generateId: ele, + random: rle, runFunc: zSt, entityDecode: WSt, insertTitle: GSt, @@ -41948,7 +41967,7 @@ var mr = { }), e; }, "encodeEntities"), W0 = /* @__PURE__ */ x(function(t) { return t.replace(/fl°°/g, "&#").replace(/fl°/g, "&").replace(/¶ß/g, ";"); -}, "decodeEntities"), nle = /* @__PURE__ */ x((t, e, { +}, "decodeEntities"), ile = /* @__PURE__ */ x((t, e, { counter: r = 0, prefix: n, suffix: i @@ -41968,22 +41987,22 @@ function hN() { }; } let Lp = hN(); -function ile(t) { +function sle(t) { Lp = t; } -const sle = /[&<>"']/, HSt = new RegExp(sle.source, "g"), ale = /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/, ZSt = new RegExp(ale.source, "g"), jSt = { +const ale = /[&<>"']/, HSt = new RegExp(ale.source, "g"), ole = /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/, ZSt = new RegExp(ole.source, "g"), jSt = { "&": "&", "<": "<", ">": ">", '"': """, "'": "'" -}, Hq = (t) => jSt[t]; +}, Zq = (t) => jSt[t]; function Oo(t, e) { if (e) { - if (sle.test(t)) - return t.replace(HSt, Hq); - } else if (ale.test(t)) - return t.replace(ZSt, Hq); + if (ale.test(t)) + return t.replace(HSt, Zq); + } else if (ole.test(t)) + return t.replace(ZSt, Zq); return t; } const KSt = /&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig; @@ -42003,7 +42022,7 @@ function fn(t, e) { }; return n; } -function Zq(t) { +function jq(t) { try { t = encodeURI(t).replace(/%25/g, "%"); } catch { @@ -42012,7 +42031,7 @@ function Zq(t) { return t; } const jy = { exec: () => null }; -function jq(t, e) { +function Kq(t, e) { const r = t.replace(/\|/g, (s, a, o) => { let l = !1, u = a; for (; --u >= 0 && o[u] === "\\"; ) @@ -42059,7 +42078,7 @@ function tTt(t, e) { return n; return -1; } -function Kq(t, e, r, n) { +function Jq(t, e, r, n) { const i = e.href, s = e.title ? Oo(e.title) : null, a = t[1].replace(/\\([\[\]])/g, "$1"); if (t[0].charAt(0) !== "!") { n.state.inLink = !0; @@ -42312,7 +42331,7 @@ ${f}` : f; const r = this.rules.block.table.exec(e); if (!r || !/[:|]/.test(r[2])) return; - const n = jq(r[1]), i = r[2].replace(/^\||\| *$/g, "").split("|"), s = r[3] && r[3].trim() ? r[3].replace(/\n[ \t]*$/, "").split(` + const n = Kq(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], @@ -42331,7 +42350,7 @@ ${f}` : f; align: a.align[o] }); for (const o of s) - a.rows.push(jq(o, a.header.length).map((l, u) => ({ + a.rows.push(Kq(o, a.header.length).map((l, u) => ({ text: l, tokens: this.lexer.inline(l), header: !1, @@ -42418,7 +42437,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)), Kq(r, { + return i = i.trim(), /^$/.test(n) ? i = i.slice(1) : i = i.slice(1, -1)), Jq(r, { href: i && i.replace(this.rules.inline.anyPunctuation, "$1"), title: s && s.replace(this.rules.inline.anyPunctuation, "$1") }, r[0], this.lexer); @@ -42436,7 +42455,7 @@ ${f}` : f; text: a }; } - return Kq(n, s, n[0], this.lexer); + return Jq(n, s, n[0], this.lexer); } } emStrong(e, r, n = "") { @@ -42570,7 +42589,7 @@ ${f}` : f; } } } -const nTt = /^(?: *(?:\n|$))+/, iTt = /^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/, sTt = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, uw = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, aTt = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, ole = /(?:[*+-]|\d{1,9}[.)])/, lle = fn(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g, ole).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(), fN = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, oTt = /^[^\n]+/, dN = /(?!\s*\])(?:\\.|[^\[\]\\])+/, lTt = fn(/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/).replace("label", dN).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), cTt = fn(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, ole).getRegex(), FC = "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", pN = /|$))/, uTt = fn("^ {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", pN).replace("tag", FC).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), cle = fn(fN).replace("hr", uw).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", FC).getRegex(), hTt = fn(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", cle).getRegex(), gN = { +const nTt = /^(?: *(?:\n|$))+/, iTt = /^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/, sTt = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, uw = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, aTt = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, lle = /(?:[*+-]|\d{1,9}[.)])/, cle = fn(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g, lle).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(), fN = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, oTt = /^[^\n]+/, dN = /(?!\s*\])(?:\\.|[^\[\]\\])+/, lTt = fn(/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/).replace("label", dN).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), cTt = fn(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, lle).getRegex(), FC = "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", pN = /|$))/, uTt = fn("^ {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", pN).replace("tag", FC).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), ule = fn(fN).replace("hr", uw).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", FC).getRegex(), hTt = fn(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", ule).getRegex(), gN = { blockquote: hTt, code: iTt, def: lTt, @@ -42578,16 +42597,16 @@ const nTt = /^(?: *(?:\n|$))+/, iTt = /^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/, sT heading: aTt, hr: uw, html: uTt, - lheading: lle, + lheading: cle, list: cTt, newline: nTt, - paragraph: cle, + paragraph: ule, table: jy, text: oTt -}, Jq = fn("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", uw).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", FC).getRegex(), fTt = { +}, eY = fn("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", uw).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", FC).getRegex(), fTt = { ...gN, - table: Jq, - paragraph: fn(fN).replace("hr", uw).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", Jq).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", FC).getRegex() + table: eY, + paragraph: fn(fN).replace("hr", uw).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", eY).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", FC).getRegex() }, dTt = { ...gN, html: fn(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment", pN).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(), @@ -42596,23 +42615,23 @@ const nTt = /^(?: *(?:\n|$))+/, iTt = /^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/, sT fences: jy, lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/, paragraph: fn(fN).replace("hr", uw).replace("heading", ` *#{1,6} *[^ -]`).replace("lheading", lle).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex() -}, ule = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, pTt = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, hle = /^( {2,}|\\)\n(?!\s*$)/, gTt = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\]*?>/g, yTt = fn(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/, "u").replace(/punct/g, hw).getRegex(), bTt = fn("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])", "gu").replace(/punct/g, hw).getRegex(), xTt = fn("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])", "gu").replace(/punct/g, hw).getRegex(), wTt = fn(/\\([punct])/, "gu").replace(/punct/g, hw).getRegex(), OTt = fn(/^<(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(), kTt = fn(pN).replace("(?:-->|$)", "-->").getRegex(), STt = fn("^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^").replace("comment", kTt).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), z3 = /(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/, TTt = fn(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label", z3).replace("href", /<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), fle = fn(/^!?\[(label)\]\[(ref)\]/).replace("label", z3).replace("ref", dN).getRegex(), dle = fn(/^!?\[(ref)\](?:\[\])?/).replace("ref", dN).getRegex(), CTt = fn("reflink|nolink(?!\\()", "g").replace("reflink", fle).replace("nolink", dle).getRegex(), mN = { +]`).replace("lheading", cle).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex() +}, hle = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, pTt = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, fle = /^( {2,}|\\)\n(?!\s*$)/, gTt = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\]*?>/g, yTt = fn(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/, "u").replace(/punct/g, hw).getRegex(), bTt = fn("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])", "gu").replace(/punct/g, hw).getRegex(), xTt = fn("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])", "gu").replace(/punct/g, hw).getRegex(), wTt = fn(/\\([punct])/, "gu").replace(/punct/g, hw).getRegex(), OTt = fn(/^<(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(), kTt = fn(pN).replace("(?:-->|$)", "-->").getRegex(), STt = fn("^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^").replace("comment", kTt).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), z3 = /(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/, TTt = fn(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label", z3).replace("href", /<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), dle = fn(/^!?\[(label)\]\[(ref)\]/).replace("label", z3).replace("ref", dN).getRegex(), ple = fn(/^!?\[(ref)\](?:\[\])?/).replace("ref", dN).getRegex(), CTt = fn("reflink|nolink(?!\\()", "g").replace("reflink", dle).replace("nolink", ple).getRegex(), mN = { _backpedal: jy, anyPunctuation: wTt, autolink: OTt, blockSkip: vTt, - br: hle, + br: fle, code: pTt, del: jy, emStrongLDelim: yTt, emStrongRDelimAst: bTt, emStrongRDelimUnd: xTt, - escape: ule, + escape: hle, link: TTt, - nolink: dle, + nolink: ple, punctuation: mTt, - reflink: fle, + reflink: dle, reflinkSearch: CTt, tag: STt, text: gTt, @@ -42623,14 +42642,14 @@ const nTt = /^(?: *(?:\n|$))+/, iTt = /^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/, sT reflink: fn(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", z3).getRegex() }, X9 = { ...mN, - escape: fn(ule).replace("])", "~|])").getRegex(), + escape: fn(hle).replace("])", "~|])").getRegex(), url: fn(/^((?: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 = Zq(e); + const i = this.parser.parseInline(n), s = jq(e); if (s === null) return i; e = s; @@ -42968,7 +42987,7 @@ ${e} return r && (a += ' title="' + r + '"'), a += ">" + i + "", a; } image({ href: e, title: r, text: n }) { - const i = Zq(e); + const i = jq(e); if (i === null) return n; e = i; @@ -43178,7 +43197,7 @@ fr(Ky, "passThroughHooks", /* @__PURE__ */ new Set([ "postprocess", "processAllTokens" ])); -var kT, ple, rx, H9, ST, gle; +var kT, gle, rx, H9, ST, mle; class ATt { constructor(...e) { Jw(this, kT); @@ -43255,7 +43274,7 @@ class ATt { continue; const o = a; let l = n.renderer[o]; - n.useNewRenderer || (l = pv(this, kT, ple).call(this, l, o, s)); + n.useNewRenderer || (l = pv(this, kT, gle).call(this, l, o, s)); const u = s[o]; s[o] = (...h) => { let f = l.apply(s, h); @@ -43319,7 +43338,7 @@ class ATt { return Yc.parse(e, r != null ? r : this.defaults); } } -kT = new WeakSet(), ple = function(e, r, n) { +kT = new WeakSet(), gle = function(e, r, n) { switch (r) { case "heading": return function(i) { @@ -43438,7 +43457,7 @@ kT = new WeakSet(), ple = function(e, r, n) { 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 = pv(this, ST, gle).call(this, !!a.silent, !!a.async); + const o = pv(this, ST, mle).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") @@ -43455,7 +43474,7 @@ kT = new WeakSet(), ple = function(e, r, n) { return o(l); } }; -}, ST = new WeakSet(), gle = function(e, r) { +}, ST = new WeakSet(), mle = function(e, r) { return (n) => { if (n.message += ` Please report this to https://github.com/markedjs/marked.`, e) { @@ -43472,12 +43491,12 @@ function en(t, e) { return G0.parse(t, e); } en.options = en.setOptions = function(t) { - return G0.setOptions(t), en.defaults = G0.defaults, ile(en.defaults), en; + return G0.setOptions(t), en.defaults = G0.defaults, sle(en.defaults), en; }; en.getDefaults = hN; en.defaults = Lp; en.use = function(...t) { - return G0.use(...t), en.defaults = G0.defaults, ile(en.defaults), en; + return G0.use(...t), en.defaults = G0.defaults, sle(en.defaults), en; }; en.walkTokens = function(t, e) { return G0.walkTokens(t, e); @@ -43499,7 +43518,7 @@ en.walkTokens; en.parseInline; Yc.parse; qc.lex; -function mle(t) { +function vle(t) { for (var e = [], r = 1; r < arguments.length; r++) e[r - 1] = arguments[r]; var n = Array.from(typeof t == "string" ? [t] : t); @@ -43531,15 +43550,15 @@ function mle(t) { `)), a += f + n[l + 1]; }), a; } -function vle(t, { markdownAutoWrap: e }) { +function yle(t, { markdownAutoWrap: e }) { const n = t.replace(//g, ` `).replace(/\n{2,}/g, ` -`), i = mle(n); +`), i = vle(n); return e === !1 ? i.replace(/ /g, " ") : i; } -x(vle, "preprocessMarkdown"); -function yle(t, e = {}) { - const r = vle(t, e), n = en.lexer(r), i = [[]]; +x(yle, "preprocessMarkdown"); +function ble(t, e = {}) { + const r = yle(t, e), n = en.lexer(r), i = [[]]; let s = 0; function a(o, l = "normal") { o.type === "text" ? o.text.split(` @@ -43558,8 +43577,8 @@ function yle(t, e = {}) { }) : o.type === "html" && i[s].push({ content: o.text, type: "normal" }); }), i; } -x(yle, "markdownToLines"); -function ble(t, { markdownAutoWrap: e } = {}) { +x(ble, "markdownToLines"); +function xle(t, { markdownAutoWrap: e } = {}) { const r = en.lexer(t); function n(i) { var s, a, o; @@ -43567,16 +43586,16 @@ function ble(t, { markdownAutoWrap: e } = {}) { } return x(n, "output"), r.map(n).join(""); } -x(ble, "markdownToHTML"); -function xle(t) { +x(xle, "markdownToHTML"); +function wle(t) { return Intl.Segmenter ? [...new Intl.Segmenter().segment(t)].map((e) => e.segment) : [...t]; } -x(xle, "splitTextToChars"); -function wle(t, e) { - const r = xle(e.content); +x(wle, "splitTextToChars"); +function Ole(t, e) { + const r = wle(e.content); return yN(t, [], r, e.type); } -x(wle, "splitWordToFitWidth"); +x(Ole, "splitWordToFitWidth"); function yN(t, e, r, n) { if (r.length === 0) return [ @@ -43590,13 +43609,13 @@ function yN(t, e, r, n) { ]); } x(yN, "splitWordToFitWidthRecursion"); -function Ole(t, e) { +function kle(t, e) { if (t.some(({ content: r }) => r.includes(` `))) throw new Error("splitLineToFitWidth does not support newlines in the line"); return U3(t, e); } -x(Ole, "splitLineToFitWidth"); +x(kle, "splitLineToFitWidth"); function U3(t, e, r = [], n = []) { var o; if (t.length === 0) @@ -43609,7 +43628,7 @@ function U3(t, e, r = [], n = []) { if (n.length > 0) r.push(n), t.unshift(s); else if (s.content) { - const [l, u] = wle(e, s); + const [l, u] = Ole(e, s); r.push([l]), u.content && t.unshift(u); } return U3(t, e, r); @@ -43619,7 +43638,7 @@ function Z9(t, e) { e && t.attr("style", e); } x(Z9, "applyStyle"); -async function kle(t, e, r, n, i = !1) { +async function Sle(t, e, r, n, i = !1) { const s = t.append("foreignObject"), a = s.append("xhtml:div"); let o = e.label; e.label && Ra(e.label) && (o = await ew(e.label.replace(mt.lineBreakRegex, ` @@ -43629,31 +43648,31 @@ async function kle(t, e, r, n, i = !1) { 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(kle, "addHtmlSpan"); +x(Sle, "addHtmlSpan"); function zC(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(zC, "createTspan"); -function Sle(t, e, r) { +function Tle(t, e, r) { const n = t.append("text"), i = zC(n, 1, e); QC(i, r); const s = i.node().getComputedTextLength(); return n.remove(), s; } -x(Sle, "computeWidthOfText"); -function Tle(t, e, r) { +x(Tle, "computeWidthOfText"); +function Cle(t, e, r) { var a; const n = t.append("text"), i = zC(n, 1, e); QC(i, [{ content: r, type: "normal" }]); const s = (a = i.node()) == null ? void 0 : a.getBoundingClientRect(); return s && n.remove(), s; } -x(Tle, "computeDimensionOfText"); -function Cle(t, e, r, n = !1) { +x(Cle, "computeDimensionOfText"); +function Ele(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) => Sle(s, 1.1, d) <= t, "checkWidth"), f = h(u) ? [u] : Ole(u, h); + const h = /* @__PURE__ */ x((d) => Tle(s, 1.1, d) <= t, "checkWidth"), f = h(u) ? [u] : kle(u, h); for (const d of f) { const p = zC(o, l, 1.1); QC(p, d), l++; @@ -43665,7 +43684,7 @@ function Cle(t, e, r, n = !1) { } else return o.node(); } -x(Cle, "createFormattedText"); +x(Ele, "createFormattedText"); function QC(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"); @@ -43700,14 +43719,14 @@ var Su = /* @__PURE__ */ x(async (t, e = "", { "addSvgBackground: ", l ), s) { - const h = ble(e, u), f = bN(W0(h)), d = e.replace(/\\\\/g, "\\"), p = { + const h = xle(e, u), f = bN(W0(h)), d = e.replace(/\\\\/g, "\\"), p = { isNode: a, label: Ra(e) ? d : f, labelStyle: r.replace("fill:", "color:") }; - return await kle(t, p, o, i, l); + return await Sle(t, p, o, i, l); } else { - const h = e.replace(//g, "
"), f = yle(h.replace("
", "
"), u), d = Cle( + const h = e.replace(//g, "
"), f = ble(h.replace("
", "
"), u), d = Ele( o, t, f, @@ -43920,7 +43939,7 @@ class $Tt { return this.seed ? (2 ** 31 - 1 & (this.seed = Math.imul(48271, this.seed))) / 2 ** 31 : Math.random(); } } -const BTt = 0, sA = 1, eY = 2, jO = { 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 }; +const BTt = 0, sA = 1, tY = 2, jO = { 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 aA(t, e) { return t.type === e; } @@ -43937,10 +43956,10 @@ function wN(t) { return []; o[o.length] = { type: sA, text: `${parseFloat(RegExp.$1)}` }, a = a.substr(RegExp.$1.length); } - return o[o.length] = { type: eY, text: "" }, o; + return o[o.length] = { type: tY, text: "" }, o; }(t); let n = "BOD", i = 0, s = r[i]; - for (; !aA(s, eY); ) { + for (; !aA(s, tY); ) { let a = 0; const o = []; if (n === "BOD") { @@ -43966,7 +43985,7 @@ function wN(t) { } return e; } -function Ele(t) { +function _le(t) { let e = 0, r = 0, n = 0, i = 0; const s = []; for (const { key: a, data: o } of t) @@ -44037,7 +44056,7 @@ function Ele(t) { } return s; } -function _le(t) { +function Ale(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) { @@ -44077,7 +44096,7 @@ function _le(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) && (Ale(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) && (Lle(n, i, v, y, f, d, p, g, m).forEach(function(b) { e.push({ key: "C", data: b }); }), n = v, i = y); break; @@ -44092,7 +44111,7 @@ function _le(t) { function Fv(t, e, r) { return [t * Math.cos(r) - e * Math.sin(r), t * Math.sin(r) + e * Math.cos(r)]; } -function Ale(t, e, r, n, i, s, a, o, l, u) { +function Lle(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; @@ -44109,7 +44128,7 @@ function Ale(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, P = n; - g = l && g > p ? p + 120 * Math.PI / 180 * 1 : p + 120 * Math.PI / 180 * -1, d = Ale(r = m + i * Math.cos(g), n = v + s * Math.sin(g), k, P, 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 = Lle(r = m + i * Math.cos(g), n = v + s * Math.sin(g), k, P, 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, A = 4 / 3 * s * C, E = [t, e], L = [t + T * w, e - A * b], _ = [r + T * S, n - A * O], R = [r, n]; @@ -44130,12 +44149,12 @@ const FTt = { randOffset: function(t, e) { }, randOffsetWithRange: function(t, e, r) { return V3(t, e, r); }, ellipse: function(t, e, r, n, i) { - const s = Rle(r, n, i); + const s = Mle(r, n, i); return j9(t, e, i, s).opset; }, doubleLineOps: function(t, e, r, n, i) { return Zf(t, e, r, n, i, !0); } }; -function Lle(t, e, r, n, i) { +function Rle(t, e, r, n, i) { return { type: "path", ops: Zf(t, e, r, n, i) }; } function Lk(t, e, r) { @@ -44146,20 +44165,20 @@ function Lk(t, e, r) { i.push(...Zf(t[s][0], t[s][1], t[s + 1][0], t[s + 1][1], r)); return e && i.push(...Zf(t[n - 1][0], t[n - 1][1], t[0][0], t[0][1], r)), { type: "path", ops: i }; } - return n === 2 ? Lle(t[0][0], t[0][1], t[1][0], t[1][1], r) : { type: "path", ops: [] }; + return n === 2 ? Rle(t[0][0], t[0][1], t[1][0], t[1][1], r) : { type: "path", ops: [] }; } function zTt(t, e, r, n, i) { return function(s, a) { return Lk(s, !0, a); }([[t, e], [t + r, e], [t + r, e + n], [t, e + n]], i); } -function tY(t, e) { +function rY(t, e) { if (t.length) { - const r = typeof t[0][0] == "number" ? [t] : t, n = KO(r[0], 1 * (1 + 0.2 * e.roughness), e), i = e.disableMultiStroke ? [] : KO(r[0], 1.5 * (1 + 0.22 * e.roughness), iY(e)); + const r = typeof t[0][0] == "number" ? [t] : t, n = KO(r[0], 1 * (1 + 0.2 * e.roughness), e), i = e.disableMultiStroke ? [] : KO(r[0], 1.5 * (1 + 0.22 * e.roughness), sY(e)); for (let s = 1; s < r.length; s++) { const a = r[s]; if (a.length) { - const o = KO(a, 1 * (1 + 0.2 * e.roughness), e), l = e.disableMultiStroke ? [] : KO(a, 1.5 * (1 + 0.22 * e.roughness), iY(e)); + const o = KO(a, 1 * (1 + 0.2 * e.roughness), e), l = e.disableMultiStroke ? [] : KO(a, 1.5 * (1 + 0.22 * e.roughness), sY(e)); for (const u of o) u.op !== "move" && n.push(u); for (const u of l) @@ -44170,22 +44189,22 @@ function tY(t, e) { } return { type: "path", ops: [] }; } -function Rle(t, e, r) { +function Mle(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 += cr(a * l, r), o += cr(o * l, r), { increment: s, rx: a, ry: o }; } function j9(t, e, r, n) { - const [i, s] = sY(n.increment, t, e, n.rx, n.ry, 1, n.increment * V3(0.1, V3(0.4, 1, r), r), r); + const [i, s] = aY(n.increment, t, e, n.rx, n.ry, 1, n.increment * V3(0.1, V3(0.4, 1, r), r), r); let a = q3(i, null, r); if (!r.disableMultiStroke && r.roughness !== 0) { - const [o] = sY(n.increment, t, e, n.rx, n.ry, 1.5, 0, r), l = q3(o, null, r); + const [o] = aY(n.increment, t, e, n.rx, n.ry, 1.5, 0, r), l = q3(o, null, r); a = a.concat(l); } return { estimatedPoints: s, opset: { type: "path", ops: a } }; } -function rY(t, e, r, n, i, s, a, o, l) { +function nY(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 += cr(0.01 * f, l), d += cr(0.01 * d, l); @@ -44193,15 +44212,15 @@ function rY(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 = aY(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 = oY(v, u, h, f, d, p, g, 1, l); if (!l.disableMultiStroke) { - const b = aY(v, u, h, f, d, p, g, 1.5, l); + const b = oY(v, u, h, f, d, p, g, 1.5, l); y.push(...b); } return a && (o ? y.push(...Zf(u, h, u + f * Math.cos(p), h + d * Math.sin(p), l), ...Zf(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 nY(t, e) { - const r = _le(Ele(wN(t))), n = []; +function iY(t, e) { + const r = Ale(_le(wN(t))), n = []; let i = [0, 0], s = [0, 0]; for (const { key: a, data: o } of r) switch (a) { @@ -44260,15 +44279,15 @@ function Zp(t, e) { return za[i]; }(e, FTt).fillPolygons(t, e); } -function iY(t) { +function sY(t) { const e = Object.assign({}, t); return e.randomizer = void 0, t.seed && (e.seed = t.seed + 1), e; } -function Mle(t) { +function Dle(t) { return t.randomizer || (t.randomizer = new $Tt(t.seed || 0)), t.randomizer.next(); } function V3(t, e, r, n = 1) { - return r.roughness * n * (Mle(r) * (e - t) + t); + return r.roughness * n * (Dle(r) * (e - t) + t); } function cr(t, e, r = 1) { return V3(-t, t, e, r); @@ -44286,7 +44305,7 @@ function K9(t, e, r, n, i, s, a) { 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 * Mle(i); + const f = h / 2, d = 0.2 + 0.2 * Dle(i); let p = i.bowing * i.maxRandomnessOffset * (n - e) / 200, g = i.bowing * i.maxRandomnessOffset * (t - r) / 200; p = cr(p, i, u), g = cr(g, i, u); const m = [], v = () => cr(f, i, u), y = () => cr(h, i, u), b = i.preserveVertices; @@ -44318,7 +44337,7 @@ function q3(t, e, r) { 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(...K9(t[0][0], t[0][1], t[1][0], t[1][1], r, !0, !0)); return i; } -function sY(t, e, r, n, i, s, a, o) { +function aY(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)]); @@ -44339,7 +44358,7 @@ function sY(t, e, r, n, i, s, a, o) { } return [u, l]; } -function aY(t, e, r, n, i, s, a, o, l) { +function oY(t, e, r, n, i, s, a, o, l) { const u = s + cr(0.1, l), h = []; h.push([cr(o, l) + e + 0.9 * n * Math.cos(u - t), cr(o, l) + r + 0.9 * i * Math.sin(u - t)]); for (let f = u; f <= a; f += t) @@ -44357,7 +44376,7 @@ function QTt(t, e, r, n, i, s, a, o) { function zv(t) { return [...t]; } -function oY(t, e = 0) { +function lY(t, e = 0) { const r = t.length; if (r < 3) throw new Error("A curve must have at least three points."); @@ -44447,7 +44466,7 @@ class W3 { } line(e, r, n, i, s) { const a = this._o(s); - return this._d("line", [Lle(e, r, n, i, a)], a); + return this._d("line", [Rle(e, r, n, i, a)], a); } rectangle(e, r, n, i, s) { const a = this._o(s), o = [], l = zTt(e, r, n, i, a); @@ -44458,7 +44477,7 @@ class W3 { return a.stroke !== bo && o.push(l), this._d("rectangle", o, a); } ellipse(e, r, n, i, s) { - const a = this._o(s), o = [], l = Rle(n, i, a), u = j9(e, r, a, l); + const a = this._o(s), o = [], l = Mle(n, i, a), u = j9(e, r, a, l); if (a.fill) if (a.fillStyle === "solid") { const h = j9(e, r, a, l).opset; @@ -44476,12 +44495,12 @@ class W3 { return this._d("linearPath", [Lk(e, !1, n)], n); } arc(e, r, n, i, s, a, o = !1, l) { - const u = this._o(l), h = [], f = rY(e, r, n, i, s, a, o, !0, u); + const u = this._o(l), h = [], f = nY(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 = rY(e, r, n, i, s, a, !0, !1, d); + const p = nY(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) { @@ -44500,17 +44519,17 @@ class W3 { return u.stroke !== bo && h.push(f), this._d("arc", h, u); } curve(e, r) { - const n = this._o(r), i = [], s = tY(e, n); + const n = this._o(r), i = [], s = rY(e, n); if (n.fill && n.fill !== bo) if (n.fillStyle === "solid") { - const a = tY(e, Object.assign(Object.assign({}, n), { disableMultiStroke: !0, roughness: n.roughness ? n.roughness + n.fillShapeRoughnessGain : 0 })); + const a = rY(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(...lA(oY([u[0], u[0], u[1], u[2]]), 10, (1 + n.roughness) / 2)) : a.push(...lA(oY(u), 10, (1 + n.roughness) / 2)); + u.length < 3 ? a.push(...u) : u.length === 3 ? a.push(...lA(lY([u[0], u[0], u[1], u[2]]), 10, (1 + n.roughness) / 2)) : a.push(...lA(lY(u), 10, (1 + n.roughness) / 2)); } a.length && i.push(Zp([a], n)); } @@ -44526,7 +44545,7 @@ class W3 { 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 !== bo, a = n.stroke !== bo, o = !!(n.simplification && n.simplification < 1), l = function(h, f, d) { - const p = _le(Ele(wN(h))), g = []; + const p = Ale(_le(wN(h))), g = []; let m = [], v = [0, 0], y = []; const b = () => { y.length >= 4 && m.push(...lA(y, f)), y = []; @@ -44559,11 +44578,11 @@ class W3 { C.length && O.push(C); } return O; - }(e, 1, o ? 4 - 4 * (n.simplification || 1) : (1 + n.roughness) / 2), u = nY(e, n); + }(e, 1, o ? 4 - 4 * (n.simplification || 1) : (1 + n.roughness) / 2), u = iY(e, n); if (s) if (n.fillStyle === "solid") if (l.length === 1) { - const h = nY(e, Object.assign(Object.assign({}, n), { disableMultiStroke: !0, roughness: n.roughness ? n.roughness + n.fillShapeRoughnessGain : 0 })); + const h = iY(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(oA(l, n)); @@ -44780,11 +44799,11 @@ var Hn = { canvas: (t, e) => new qTt(t, e), svg: (t, e) => new YTt(t, e), genera 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"), dw = WTt; -function Dle(t, e) { +function Ple(t, e) { e && t.attr("style", e); } -x(Dle, "applyStyle"); -async function Ple(t) { +x(Ple, "applyStyle"); +async function Nle(t) { const e = ht(document.createElementNS("http://www.w3.org/2000/svg", "foreignObject")), r = e.append("xhtml:div"); let n = t.label; t.label && Ra(t.label) && (n = await ew(t.label.replace(mt.lineBreakRegex, ` @@ -44792,9 +44811,9 @@ async function Ple(t) { const i = t.isNode ? "nodeLabel" : "edgeLabel"; return r.html( '" + n + "" - ), Dle(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(); + ), Ple(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(Ple, "addHtmlLabel"); +x(Nle, "addHtmlLabel"); var GTt = /* @__PURE__ */ x(async (t, e, r, n) => { let i = t || ""; if (typeof i == "object" && (i = i[0]), Pn(ke().flowchart.htmlLabels)) { @@ -44807,7 +44826,7 @@ var GTt = /* @__PURE__ */ x(async (t, e, r, n) => { ), labelStyle: e && e.replace("fill:", "color:") }; - return await Ple(s); + return await Nle(s); } else { const s = document.createElementNS("http://www.w3.org/2000/svg", "text"); s.setAttribute("style", e.replace("color:", "fill:")); @@ -44875,7 +44894,7 @@ var GTt = /* @__PURE__ */ x(async (t, e, r, n) => { stroke: t, seed: e }; -}, "solidStateFill"), Nle = /* @__PURE__ */ x((t) => { +}, "solidStateFill"), Ile = /* @__PURE__ */ x((t) => { const e = XTt([...t.cssCompiledStyles || [], ...t.cssStyles || []]); return { stylesMap: e, stylesArray: [...e] }; }, "compileStyles"), XTt = /* @__PURE__ */ x((t) => { @@ -44885,7 +44904,7 @@ var GTt = /* @__PURE__ */ x(async (t, e, r, n) => { e.set(n.trim(), i == null ? void 0 : i.trim()); }), e; }, "styles2Map"), la = /* @__PURE__ */ x((t) => { - const { stylesArray: e } = Nle(t), r = [], n = [], i = [], s = []; + const { stylesArray: e } = Ile(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")); @@ -44897,7 +44916,7 @@ var GTt = /* @__PURE__ */ x(async (t, e, r, n) => { backgroundStyles: s }; }, "styles2String"), Rs = /* @__PURE__ */ x((t, e) => { - const { themeVariables: r, handDrawnSeed: n } = ke(), { nodeBorder: i, mainBkg: s } = r, { stylesMap: a } = Nle(t); + const { themeVariables: r, handDrawnSeed: n } = ke(), { nodeBorder: i, mainBkg: s } = r, { stylesMap: a } = Ile(t); return Object.assign( { roughness: 0.7, @@ -44910,7 +44929,7 @@ var GTt = /* @__PURE__ */ x(async (t, e, r, n) => { }, e ); -}, "userNodeOverrides"), Ile = /* @__PURE__ */ x(async (t, e) => { +}, "userNodeOverrides"), $le = /* @__PURE__ */ x(async (t, e) => { Z.info("Creating subgraph rect for ", e.id, e); const r = ke(), { themeVariables: n, handDrawnSeed: i } = r, { clusterBkg: s, clusterBorder: a } = n, { labelStyles: o, nodeStyles: l, borderStyles: u, backgroundStyles: h } = la(e), f = t.insert("g").attr("class", "cluster " + e.cssClasses).attr("id", e.id).attr("data-look", e.look), d = Pn(r.flowchart.htmlLabels), p = f.insert("g").attr("class", "cluster-label "), g = await Su(p, e.label, { style: e.labelStyle, @@ -45025,19 +45044,19 @@ var GTt = /* @__PURE__ */ x(async (t, e, r, n) => { return e.height = g.height, e.offsetX = 0, e.offsetY = 0, e.intersect = function(m) { return dw(e, m); }, { cluster: a, labelBBox: {} }; -}, "divider"), KTt = Ile, JTt = { - rect: Ile, +}, "divider"), KTt = $le, JTt = { + rect: $le, squareRect: KTt, roundedWithTitle: ZTt, noteGroup: HTt, divider: jTt -}, $le = /* @__PURE__ */ new Map(), Ble = /* @__PURE__ */ x(async (t, e) => { +}, Ble = /* @__PURE__ */ new Map(), Fle = /* @__PURE__ */ x(async (t, e) => { const r = e.shape || "rect", n = await JTt[r](t, e); - return $le.set(e.id, n), n; + return Ble.set(e.id, n), n; }, "insertCluster"), eCt = /* @__PURE__ */ x(() => { - $le = /* @__PURE__ */ new Map(); + Ble = /* @__PURE__ */ new Map(); }, "clear"), tCt = /* @__PURE__ */ x((t, e, r, n, i) => { - e.arrowTypeStart && lY(t, "start", e.arrowTypeStart, r, n, i), e.arrowTypeEnd && lY(t, "end", e.arrowTypeEnd, r, n, i); + e.arrowTypeStart && cY(t, "start", e.arrowTypeStart, r, n, i), e.arrowTypeEnd && cY(t, "end", e.arrowTypeEnd, r, n, i); }, "addEdgeMarkers"), rCt = { arrow_cross: "cross", arrow_point: "point", @@ -45048,7 +45067,7 @@ var GTt = /* @__PURE__ */ x(async (t, e, r, n) => { composition: "composition", dependency: "dependency", lollipop: "lollipop" -}, lY = /* @__PURE__ */ x((t, e, r, n, i, s) => { +}, cY = /* @__PURE__ */ x((t, e, r, n, i, s) => { const a = rCt[r]; if (!a) { Z.warn(`Unknown arrow type: ${r}`); @@ -45058,7 +45077,7 @@ var GTt = /* @__PURE__ */ x(async (t, e, r, n) => { t.attr(`marker-${e}`, `url(${n}#${i}_${s}-${a}${o})`); }, "addEdgeMarker"), G3 = /* @__PURE__ */ new Map(), vs = /* @__PURE__ */ new Map(), nCt = /* @__PURE__ */ x(() => { G3.clear(), vs.clear(); -}, "clear"), Qv = /* @__PURE__ */ x((t) => t ? t.reduce((r, n) => r + ";" + n, "") : "", "getLabelStyles"), Fle = /* @__PURE__ */ x(async (t, e) => { +}, "clear"), Qv = /* @__PURE__ */ x((t) => t ? t.reduce((r, n) => r + ";" + n, "") : "", "getLabelStyles"), zle = /* @__PURE__ */ x(async (t, e) => { let r = Pn(ke().flowchart.htmlLabels); const n = await Su(t, e.label, { style: Qv(e.labelStyle), @@ -45112,7 +45131,7 @@ function hy(t, e) { ke().flowchart.htmlLabels && t && (t.style.width = e.length * 9 + "px", t.style.height = "12px"); } x(hy, "setTerminalWidth"); -var zle = /* @__PURE__ */ x((t, e) => { +var Qle = /* @__PURE__ */ x((t, e) => { Z.debug("Moving label abc88 ", t.id, t.label, G3.get(t.id), e); let r = e.updatedPath ? e.updatedPath : e.originalPath; const n = ke(), { subGraphTitleTotalMargin: i } = Op(n); @@ -45199,7 +45218,7 @@ var zle = /* @__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 Z.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"), cY = /* @__PURE__ */ x((t, e) => { +}, "intersection"), uY = /* @__PURE__ */ x((t, e) => { Z.warn("abc88 cutPathAtIntersect", t, e); let r = [], n = t[0], i = !1; return t.forEach((s) => { @@ -45214,7 +45233,7 @@ var zle = /* @__PURE__ */ x((t, e) => { Z.warn("abc88 outside", s, n), n = s, i || r.push(s); }), Z.debug("returning points", r), r; }, "cutPathAtIntersect"); -function Qle(t) { +function Ule(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]; @@ -45222,15 +45241,15 @@ function Qle(t) { } return { cornerPoints: e, cornerPointPositions: r }; } -x(Qle, "extractCornerPoints"); -var uY = /* @__PURE__ */ x(function(t, e, r) { +x(Ule, "extractCornerPoints"); +var hY = /* @__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"), aCt = /* @__PURE__ */ x(function(t) { - const { cornerPointPositions: e } = Qle(t), r = []; + const { cornerPointPositions: e } = Ule(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 = uY(i, a, 5), l = uY(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 = hY(i, a, 5), l = hY(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 }; @@ -45258,7 +45277,7 @@ var uY = /* @__PURE__ */ x(function(t, e, r) { } else r.push(t[n]); return r; -}, "fixCorners"), Ule = /* @__PURE__ */ x(function(t, e, r, n, i, s, a) { +}, "fixCorners"), Vle = /* @__PURE__ */ x(function(t, e, r, n, i, s, a) { const { handDrawnSeed: o } = ke(); let l = e.points, u = !1; const h = i; @@ -45271,11 +45290,11 @@ var uY = /* @__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 && (Z.info("to cluster abc88", r.get(e.toCluster)), l = cY(e.points, r.get(e.toCluster).node), u = !0), e.fromCluster && (Z.debug( + ), l.push(f.intersect(l[l.length - 1]))), e.toCluster && (Z.info("to cluster abc88", r.get(e.toCluster)), l = uY(e.points, r.get(e.toCluster).node), u = !0), e.fromCluster && (Z.debug( "from cluster abc88", r.get(e.fromCluster), JSON.stringify(l, null, 2) - ), l = cY(l.reverse(), r.get(e.fromCluster).node).reverse(), u = !0); + ), l = uY(l.reverse(), r.get(e.fromCluster).node).reverse(), u = !0); let d = l.filter((A) => !Number.isNaN(A.y)); d = aCt(d); let p = d[d.length - 1]; @@ -45286,7 +45305,7 @@ var uY = /* @__PURE__ */ x(function(t, e, r) { } let g = N1; e.curve && (g = e.curve); - const { x: m, y: v } = gae(e), y = Gf().x(m).y(v).curve(g); + const { x: m, y: v } = mae(e), y = Gf().x(m).y(v).curve(g); let b; switch (e.thickness) { case "normal": @@ -45364,7 +45383,7 @@ var uY = /* @__PURE__ */ x(function(t, e, r) { circle: pCt, cross: gCt, barb: mCt -}, Vle = oCt, ca = /* @__PURE__ */ x(async (t, e, r) => { +}, qle = oCt, ca = /* @__PURE__ */ x(async (t, e, r) => { let n; const i = e.useHtmlLabels || Pn(ke().flowchart.htmlLabels); r ? n = r : n = "node default"; @@ -45409,36 +45428,36 @@ var uY = /* @__PURE__ */ x(function(t, e, r) { const r = e.node().getBBox(); t.width = r.width, t.height = r.height; }, "updateNodeBounds"), No = /* @__PURE__ */ x((t, e) => (t.look === "handDrawn" ? "rough-node" : "node") + " " + t.cssClasses + " " + (e || ""), "getNodeClasses"); -function qle(t, e) { +function Yle(t, e) { return t.intersect(e); } -x(qle, "intersectNode"); -var yCt = qle; -function Yle(t, e, r, n) { +x(Yle, "intersectNode"); +var yCt = Yle; +function Wle(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(Yle, "intersectEllipse"); -var Wle = Yle; -function Gle(t, e, r) { - return Wle(t, e, e, r); +x(Wle, "intersectEllipse"); +var Gle = Wle; +function Xle(t, e, r) { + return Gle(t, e, e, r); } -x(Gle, "intersectCircle"); -var bCt = Gle; -function Xle(t, e, r, n) { +x(Xle, "intersectCircle"); +var bCt = Xle; +function Hle(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 && eL(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 && eL(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(Xle, "intersectLine"); +x(Hle, "intersectLine"); function eL(t, e) { return t * e > 0; } x(eL, "sameSign"); -var xCt = Xle; -function Hle(t, e, r) { +var xCt = Hle; +function Zle(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); @@ -45458,11 +45477,11 @@ function Hle(t, e, r) { return g < y ? -1 : g === y ? 0 : 1; }), s[0]) : t; } -x(Hle, "intersectPolygon"); -var wCt = Hle, xi = { +x(Zle, "intersectPolygon"); +var wCt = Zle, xi = { node: yCt, circle: bCt, - ellipse: Wle, + ellipse: Gle, polygon: wCt, rect: dw }, ON = /* @__PURE__ */ x(async (t, e, r) => { @@ -45523,7 +45542,7 @@ var wCt = Hle, xi = { return bi(e, s), e.intersect = function(o) { return xi.circle(e, 7, o); }, i; -}, "stateEnd"), hY = /* @__PURE__ */ x((t, e, r) => { +}, "stateEnd"), fY = /* @__PURE__ */ x((t, e, r) => { const { themeVariables: n } = ke(), { 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); @@ -45954,12 +45973,12 @@ res:`, return n.attr("width", i).attr("height", s), r.attr("class", "label edgeLabel"), bi(e, n), e.intersect = function(a) { return xi.rect(e, a); }, r; -}, "labelRect"), fY = { +}, "labelRect"), dY = { state: OCt, stateStart: TCt, stateEnd: CCt, - fork: hY, - join: hY, + fork: fY, + join: fY, choice: ECt, note: _Ct, roundedRect: kCt, @@ -45978,19 +45997,19 @@ res:`, trapezoid: HCt, inv_trapezoid: jCt, labelRect: KCt -}, qg = /* @__PURE__ */ new Map(), Zle = /* @__PURE__ */ x(async (t, e, r) => { +}, qg = /* @__PURE__ */ new Map(), jle = /* @__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; - ke().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 fY[e.shape](n, e, r); + ke().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 dY[e.shape](n, e, r); } else - i = await fY[e.shape](t, e, r), n = i; + i = await dY[e.shape](t, e, r), n = i; return e.tooltip && i.attr("title", e.tooltip), qg.set(e.id, n), e.haveCallback && qg.get(e.id).attr("class", qg.get(e.id).attr("class") + " clickable"), n; }, "insertNode"), JCt = /* @__PURE__ */ x((t, e) => { qg.set(e.id, t); }, "setNodeElem"), eEt = /* @__PURE__ */ x(() => { qg.clear(); -}, "clear"), dY = /* @__PURE__ */ x((t) => { +}, "clear"), pY = /* @__PURE__ */ x((t) => { const e = qg.get(t.id); Z.trace( "Transforming node", @@ -46006,20 +46025,20 @@ res:`, }, "positionNode"), tEt = { common: mt, getConfig: Li, - insertCluster: Ble, - insertEdge: Ule, - insertEdgeLabel: Fle, - insertMarkers: Vle, - insertNode: Zle, + insertCluster: Fle, + insertEdge: Vle, + insertEdgeLabel: zle, + insertMarkers: qle, + insertNode: jle, interpolateToCurve: lw, labelHelper: ca, log: Z, - positionEdgeLabel: zle -}, ob = {}, jle = /* @__PURE__ */ x((t) => { + positionEdgeLabel: Qle +}, ob = {}, Kle = /* @__PURE__ */ x((t) => { for (const e of t) ob[e.name] = e; }, "registerLayoutLoaders"), rEt = /* @__PURE__ */ x(() => { - jle([ + Kle([ { name: "dagre", loader: /* @__PURE__ */ x(async () => await Promise.resolve().then(() => iBt), "loader") @@ -46027,7 +46046,7 @@ res:`, ]); }, "registerDefaultLayoutLoaders"); rEt(); -var Kle = /* @__PURE__ */ x(async (t, e) => { +var Jle = /* @__PURE__ */ x(async (t, e) => { if (!(t.layoutAlgorithm in ob)) throw new Error(`Unknown layout algorithm: ${t.layoutAlgorithm}`); const r = ob[t.layoutAlgorithm]; @@ -46049,8 +46068,8 @@ var Kle = /* @__PURE__ */ x(async (t, e) => { r = ht(o.body); } return r.select(`#${t}`); -}, "selectSvgElement"), Jle = "comm", ece = "rule", tce = "decl", iEt = "@import", sEt = "@keyframes", aEt = "@layer", rce = Math.abs, kN = String.fromCharCode; -function nce(t) { +}, "selectSvgElement"), ece = "comm", tce = "rule", rce = "decl", iEt = "@import", sEt = "@keyframes", aEt = "@layer", nce = Math.abs, kN = String.fromCharCode; +function ice(t) { return t.trim(); } function Mk(t, e, r) { @@ -46074,7 +46093,7 @@ function lEt(t) { function e4(t, e) { return e.push(t), t; } -var VC = 1, Qm = 1, ice = 0, yl = 0, Ti = 0, z1 = ""; +var VC = 1, Qm = 1, sce = 0, yl = 0, Ti = 0, z1 = ""; function SN(t, e, r, n, i, s, a, o) { return { value: t, root: e, parent: r, type: n, props: i, children: s, line: VC, column: Qm, length: a, return: "", siblings: o }; } @@ -46085,7 +46104,7 @@ function uEt() { return Ti = yl > 0 ? lb(z1, --yl) : 0, Qm--, Ti === 10 && (Qm = 1, VC--), Ti; } function Gl() { - return Ti = yl < ice ? lb(z1, yl++) : 0, Qm++, Ti === 10 && (Qm = 1, VC++), Ti; + return Ti = yl < sce ? lb(z1, yl++) : 0, Qm++, Ti === 10 && (Qm = 1, VC++), Ti; } function gf() { return lb(z1, yl); @@ -46129,13 +46148,13 @@ function cb(t) { return 0; } function hEt(t) { - return VC = Qm = 1, ice = Lc(z1 = t), yl = 0, []; + return VC = Qm = 1, sce = Lc(z1 = t), yl = 0, []; } function fEt(t) { return z1 = "", t; } function cA(t) { - return nce(qC(yl - 1, rL(t === 91 ? t + 2 : t === 40 ? t + 1 : t))); + return ice(qC(yl - 1, rL(t === 91 ? t + 2 : t === 40 ? t + 1 : t))); } function dEt(t) { for (; (Ti = gf()) && Ti < 33; ) @@ -46184,7 +46203,7 @@ function Pk(t, e, r, n, i, s, a, o, l) { switch (g = b, b = Gl()) { case 40: if (g != 108 && lb(T, f - 1) == 58) { - oEt(T += Mk(cA(b), "&", "&\f"), "&\f", rce(u ? o[u - 1] : 0)) != -1 && (y = -1); + oEt(T += Mk(cA(b), "&", "&\f"), "&\f", nce(u ? o[u - 1] : 0)) != -1 && (y = -1); break; } case 34: @@ -46221,12 +46240,12 @@ function Pk(t, e, r, n, i, s, a, o, l) { case 125: v = 0; case 59 + h: - y == -1 && (T = Mk(T, /\f/g, "")), p > 0 && (Lc(T) - f || m === 0 && g === 47) && e4(p > 32 ? gY(T + ";", n, r, f - 1, l) : gY(Mk(T, " ", "") + ";", n, r, f - 2, l), l); + y == -1 && (T = Mk(T, /\f/g, "")), p > 0 && (Lc(T) - f || m === 0 && g === 47) && e4(p > 32 ? mY(T + ";", n, r, f - 1, l) : mY(Mk(T, " ", "") + ";", n, r, f - 2, l), l); break; case 59: T += ";"; default: - if (e4(C = pY(T, e, r, u, h, i, o, w, O = [], S = [], f, s), s), b === 123) + if (e4(C = gY(T, e, r, u, h, i, o, w, O = [], S = [], f, s), s), b === 123) if (h === 0) Pk(T, e, C, C, O, s, f, o, S); else @@ -46235,7 +46254,7 @@ function Pk(t, e, r, n, i, s, a, o, l) { case 108: case 109: case 115: - Pk(t, C, C, n && e4(pY(t, C, C, 0, 0, i, o, w, i, O = [], f, S), S), i, S, f, o, n ? O : S); + Pk(t, C, C, n && e4(gY(t, C, C, 0, 0, i, o, w, i, O = [], f, S), S), i, S, f, o, n ? O : S); break; default: Pk(T, C, C, C, [""], S, 0, o, S); @@ -46268,17 +46287,17 @@ function Pk(t, e, r, n, i, s, a, o, l) { } return s; } -function pY(t, e, r, n, i, s, a, o, l, u, h, f) { +function gY(t, e, r, n, i, s, a, o, l, u, h, f) { for (var d = i - 1, p = i === 0 ? s : [""], g = lEt(p), m = 0, v = 0, y = 0; m < n; ++m) - for (var b = 0, w = zm(t, d + 1, d = rce(v = a[m])), O = t; b < g; ++b) - (O = nce(v > 0 ? p[b] + " " + w : Mk(w, /&\f/g, p[b]))) && (l[y++] = O); - return SN(t, e, r, i === 0 ? ece : o, l, u, h, f); + for (var b = 0, w = zm(t, d + 1, d = nce(v = a[m])), O = t; b < g; ++b) + (O = ice(v > 0 ? p[b] + " " + w : Mk(w, /&\f/g, p[b]))) && (l[y++] = O); + return SN(t, e, r, i === 0 ? tce : o, l, u, h, f); } function yEt(t, e, r, n) { - return SN(t, e, r, Jle, kN(cEt()), zm(t, 2, -2), 0, n); + return SN(t, e, r, ece, kN(cEt()), zm(t, 2, -2), 0, n); } -function gY(t, e, r, n, i) { - return SN(t, e, r, tce, zm(t, 0, n), zm(t, n + 1, -1), n, i); +function mY(t, e, r, n, i) { + return SN(t, e, r, rce, zm(t, 0, n), zm(t, n + 1, -1), n, i); } function nL(t, e) { for (var r = "", n = 0; n < t.length; n++) @@ -46291,22 +46310,22 @@ function bEt(t, e, r, n) { if (t.children.length) break; case iEt: - case tce: + case rce: return t.return = t.return || t.value; - case Jle: + case ece: return ""; case sEt: return t.return = t.value + "{" + nL(t.children, n) + "}"; - case ece: + case tce: if (!Lc(t.value = t.props.join(","))) return ""; } return Lc(r = nL(t.children, n)) ? t.return = t.value + "{" + r + "}" : ""; } -var xEt = Ioe(Object.keys, Object); +var xEt = $oe(Object.keys, Object); const wEt = xEt; var OEt = Object.prototype, kEt = OEt.hasOwnProperty; -function sce(t) { +function ace(t) { if (!sw(t)) return wEt(t); var e = []; @@ -46322,21 +46341,21 @@ var CEt = Ep(gc, "Set"); const Yg = CEt; var EEt = Ep(gc, "WeakMap"); const aL = EEt; -var mY = "[object Map]", _Et = "[object Object]", vY = "[object Promise]", yY = "[object Set]", bY = "[object WeakMap]", xY = "[object DataView]", AEt = Cp(iL), LEt = Cp(sb), REt = Cp(sL), MEt = Cp(Yg), DEt = Cp(aL), Qd = Ph; -(iL && Qd(new iL(new ArrayBuffer(1))) != xY || sb && Qd(new sb()) != mY || sL && Qd(sL.resolve()) != vY || Yg && Qd(new Yg()) != yY || aL && Qd(new aL()) != bY) && (Qd = function(t) { +var vY = "[object Map]", _Et = "[object Object]", yY = "[object Promise]", bY = "[object Set]", xY = "[object WeakMap]", wY = "[object DataView]", AEt = Cp(iL), LEt = Cp(sb), REt = Cp(sL), MEt = Cp(Yg), DEt = Cp(aL), Qd = Ph; +(iL && Qd(new iL(new ArrayBuffer(1))) != wY || sb && Qd(new sb()) != vY || sL && Qd(sL.resolve()) != yY || Yg && Qd(new Yg()) != bY || aL && Qd(new aL()) != xY) && (Qd = function(t) { var e = Ph(t), r = e == _Et ? t.constructor : void 0, n = r ? Cp(r) : ""; if (n) switch (n) { case AEt: - return xY; + return wY; case LEt: - return mY; - case REt: return vY; - case MEt: + case REt: return yY; - case DEt: + case MEt: return bY; + case DEt: + return xY; } return e; }); @@ -46351,147 +46370,147 @@ function Hr(t) { if (e == PEt || e == NEt) return !t.size; if (sw(t)) - return !sce(t).length; + return !ace(t).length; for (var r in t) if ($Et.call(t, r)) return !1; return !0; } -var ace = "c4", BEt = /* @__PURE__ */ x((t) => /^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(t), "detector"), FEt = /* @__PURE__ */ x(async () => { +var oce = "c4", BEt = /* @__PURE__ */ x((t) => /^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(t), "detector"), FEt = /* @__PURE__ */ x(async () => { const { diagram: t } = await Promise.resolve().then(() => rFt); - return { id: ace, diagram: t }; + return { id: oce, diagram: t }; }, "loader"), zEt = { - id: ace, + id: oce, detector: BEt, loader: FEt -}, QEt = zEt, oce = "flowchart", UEt = /* @__PURE__ */ x((t, e) => { +}, QEt = zEt, lce = "flowchart", UEt = /* @__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"), VEt = /* @__PURE__ */ x(async () => { const { diagram: t } = await Promise.resolve().then(() => RI); - return { id: oce, diagram: t }; + return { id: lce, diagram: t }; }, "loader"), qEt = { - id: oce, + id: lce, detector: UEt, loader: VEt -}, YEt = qEt, lce = "flowchart-v2", WEt = /* @__PURE__ */ x((t, e) => { +}, YEt = qEt, cce = "flowchart-v2", WEt = /* @__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"), GEt = /* @__PURE__ */ x(async () => { const { diagram: t } = await Promise.resolve().then(() => RI); - return { id: lce, diagram: t }; + return { id: cce, diagram: t }; }, "loader"), XEt = { - id: lce, + id: cce, detector: WEt, loader: GEt -}, HEt = XEt, cce = "er", ZEt = /* @__PURE__ */ x((t) => /^\s*erDiagram/.test(t), "detector"), jEt = /* @__PURE__ */ x(async () => { +}, HEt = XEt, uce = "er", ZEt = /* @__PURE__ */ x((t) => /^\s*erDiagram/.test(t), "detector"), jEt = /* @__PURE__ */ x(async () => { const { diagram: t } = await Promise.resolve().then(() => sQt); - return { id: cce, diagram: t }; + return { id: uce, diagram: t }; }, "loader"), KEt = { - id: cce, + id: uce, detector: ZEt, loader: jEt -}, JEt = KEt, uce = "gitGraph", e_t = /* @__PURE__ */ x((t) => /^\s*gitGraph/.test(t), "detector"), t_t = /* @__PURE__ */ x(async () => { +}, JEt = KEt, hce = "gitGraph", e_t = /* @__PURE__ */ x((t) => /^\s*gitGraph/.test(t), "detector"), t_t = /* @__PURE__ */ x(async () => { const { diagram: t } = await Promise.resolve().then(() => TXt); - return { id: uce, diagram: t }; + return { id: hce, diagram: t }; }, "loader"), r_t = { - id: uce, + id: hce, detector: e_t, loader: t_t -}, n_t = r_t, hce = "gantt", i_t = /* @__PURE__ */ x((t) => /^\s*gantt/.test(t), "detector"), s_t = /* @__PURE__ */ x(async () => { +}, n_t = r_t, fce = "gantt", i_t = /* @__PURE__ */ x((t) => /^\s*gantt/.test(t), "detector"), s_t = /* @__PURE__ */ x(async () => { const { diagram: t } = await Promise.resolve().then(() => bHt); - return { id: hce, diagram: t }; + return { id: fce, diagram: t }; }, "loader"), a_t = { - id: hce, + id: fce, detector: i_t, loader: s_t -}, o_t = a_t, fce = "info", l_t = /* @__PURE__ */ x((t) => /^\s*info/.test(t), "detector"), c_t = /* @__PURE__ */ x(async () => { +}, o_t = a_t, dce = "info", l_t = /* @__PURE__ */ x((t) => /^\s*info/.test(t), "detector"), c_t = /* @__PURE__ */ x(async () => { const { diagram: t } = await Promise.resolve().then(() => EHt); - return { id: fce, diagram: t }; + return { id: dce, diagram: t }; }, "loader"), u_t = { - id: fce, + id: dce, detector: l_t, loader: c_t -}, dce = "pie", h_t = /* @__PURE__ */ x((t) => /^\s*pie/.test(t), "detector"), f_t = /* @__PURE__ */ x(async () => { +}, pce = "pie", h_t = /* @__PURE__ */ x((t) => /^\s*pie/.test(t), "detector"), f_t = /* @__PURE__ */ x(async () => { const { diagram: t } = await Promise.resolve().then(() => VHt); - return { id: dce, diagram: t }; + return { id: pce, diagram: t }; }, "loader"), d_t = { - id: dce, + id: pce, detector: h_t, loader: f_t -}, pce = "quadrantChart", p_t = /* @__PURE__ */ x((t) => /^\s*quadrantChart/.test(t), "detector"), g_t = /* @__PURE__ */ x(async () => { +}, gce = "quadrantChart", p_t = /* @__PURE__ */ x((t) => /^\s*quadrantChart/.test(t), "detector"), g_t = /* @__PURE__ */ x(async () => { const { diagram: t } = await Promise.resolve().then(() => KHt); - return { id: pce, diagram: t }; + return { id: gce, diagram: t }; }, "loader"), m_t = { - id: pce, + id: gce, detector: p_t, loader: g_t -}, v_t = m_t, gce = "xychart", y_t = /* @__PURE__ */ x((t) => /^\s*xychart-beta/.test(t), "detector"), b_t = /* @__PURE__ */ x(async () => { +}, v_t = m_t, mce = "xychart", y_t = /* @__PURE__ */ x((t) => /^\s*xychart-beta/.test(t), "detector"), b_t = /* @__PURE__ */ x(async () => { const { diagram: t } = await Promise.resolve().then(() => dZt); - return { id: gce, diagram: t }; + return { id: mce, diagram: t }; }, "loader"), x_t = { - id: gce, + id: mce, detector: y_t, loader: b_t -}, w_t = x_t, mce = "requirement", O_t = /* @__PURE__ */ x((t) => /^\s*requirement(Diagram)?/.test(t), "detector"), k_t = /* @__PURE__ */ x(async () => { +}, w_t = x_t, vce = "requirement", O_t = /* @__PURE__ */ x((t) => /^\s*requirement(Diagram)?/.test(t), "detector"), k_t = /* @__PURE__ */ x(async () => { const { diagram: t } = await Promise.resolve().then(() => YZt); - return { id: mce, diagram: t }; + return { id: vce, diagram: t }; }, "loader"), S_t = { - id: mce, + id: vce, detector: O_t, loader: k_t -}, T_t = S_t, vce = "sequence", C_t = /* @__PURE__ */ x((t) => /^\s*sequenceDiagram/.test(t), "detector"), E_t = /* @__PURE__ */ x(async () => { +}, T_t = S_t, yce = "sequence", C_t = /* @__PURE__ */ x((t) => /^\s*sequenceDiagram/.test(t), "detector"), E_t = /* @__PURE__ */ x(async () => { const { diagram: t } = await Promise.resolve().then(() => Wjt); - return { id: vce, diagram: t }; + return { id: yce, diagram: t }; }, "loader"), __t = { - id: vce, + id: yce, detector: C_t, loader: E_t -}, A_t = __t, yce = "class", L_t = /* @__PURE__ */ x((t, e) => { +}, A_t = __t, bce = "class", L_t = /* @__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"), R_t = /* @__PURE__ */ x(async () => { const { diagram: t } = await Promise.resolve().then(() => EKt); - return { id: yce, diagram: t }; + return { id: bce, diagram: t }; }, "loader"), M_t = { - id: yce, + id: bce, detector: L_t, loader: R_t -}, D_t = M_t, bce = "classDiagram", P_t = /* @__PURE__ */ x((t, e) => { +}, D_t = M_t, xce = "classDiagram", P_t = /* @__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"), N_t = /* @__PURE__ */ x(async () => { const { diagram: t } = await Promise.resolve().then(() => cJt); - return { id: bce, diagram: t }; + return { id: xce, diagram: t }; }, "loader"), I_t = { - id: bce, + id: xce, detector: P_t, loader: N_t -}, $_t = I_t, xce = "state", B_t = /* @__PURE__ */ x((t, e) => { +}, $_t = I_t, wce = "state", B_t = /* @__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"), F_t = /* @__PURE__ */ x(async () => { const { diagram: t } = await Promise.resolve().then(() => xer); - return { id: xce, diagram: t }; + return { id: wce, diagram: t }; }, "loader"), z_t = { - id: xce, + id: wce, detector: B_t, loader: F_t -}, Q_t = z_t, wce = "stateDiagram", U_t = /* @__PURE__ */ x((t, e) => { +}, Q_t = z_t, Oce = "stateDiagram", U_t = /* @__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"), V_t = /* @__PURE__ */ x(async () => { const { diagram: t } = await Promise.resolve().then(() => Oer); - return { id: wce, diagram: t }; + return { id: Oce, diagram: t }; }, "loader"), q_t = { - id: wce, + id: Oce, detector: U_t, loader: V_t -}, Y_t = q_t, Oce = "journey", W_t = /* @__PURE__ */ x((t) => /^\s*journey/.test(t), "detector"), G_t = /* @__PURE__ */ x(async () => { +}, Y_t = q_t, kce = "journey", W_t = /* @__PURE__ */ x((t) => /^\s*journey/.test(t), "detector"), G_t = /* @__PURE__ */ x(async () => { const { diagram: t } = await Promise.resolve().then(() => qer); - return { id: Oce, diagram: t }; + return { id: kce, diagram: t }; }, "loader"), X_t = { - id: Oce, + id: kce, detector: W_t, loader: G_t }, H_t = X_t, Z_t = /* @__PURE__ */ x((t, e, r) => { @@ -46517,67 +46536,67 @@ var ace = "c4", BEt = /* @__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"), kce = { draw: Z_t }, j_t = kce, K_t = { +}, "draw"), Sce = { draw: Z_t }, j_t = Sce, K_t = { db: {}, - renderer: kce, + renderer: Sce, parser: { parse: /* @__PURE__ */ x(() => { }, "parse") } -}, J_t = K_t, Sce = "flowchart-elk", e6t = /* @__PURE__ */ x((t, e = {}) => { +}, J_t = K_t, Tce = "flowchart-elk", e6t = /* @__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"), t6t = /* @__PURE__ */ x(async () => { const { diagram: t } = await Promise.resolve().then(() => RI); - return { id: Sce, diagram: t }; + return { id: Tce, diagram: t }; }, "loader"), r6t = { - id: Sce, + id: Tce, detector: e6t, loader: t6t -}, n6t = r6t, Tce = "timeline", i6t = /* @__PURE__ */ x((t) => /^\s*timeline/.test(t), "detector"), s6t = /* @__PURE__ */ x(async () => { +}, n6t = r6t, Cce = "timeline", i6t = /* @__PURE__ */ x((t) => /^\s*timeline/.test(t), "detector"), s6t = /* @__PURE__ */ x(async () => { const { diagram: t } = await Promise.resolve().then(() => ftr); - return { id: Tce, diagram: t }; + return { id: Cce, diagram: t }; }, "loader"), a6t = { - id: Tce, + id: Cce, detector: i6t, loader: s6t -}, o6t = a6t, Cce = "mindmap", l6t = /* @__PURE__ */ x((t) => /^\s*mindmap/.test(t), "detector"), c6t = /* @__PURE__ */ x(async () => { +}, o6t = a6t, Ece = "mindmap", l6t = /* @__PURE__ */ x((t) => /^\s*mindmap/.test(t), "detector"), c6t = /* @__PURE__ */ x(async () => { const { diagram: t } = await Promise.resolve().then(() => Tcr); - return { id: Cce, diagram: t }; + return { id: Ece, diagram: t }; }, "loader"), u6t = { - id: Cce, + id: Ece, detector: l6t, loader: c6t -}, h6t = u6t, Ece = "sankey", f6t = /* @__PURE__ */ x((t) => /^\s*sankey-beta/.test(t), "detector"), d6t = /* @__PURE__ */ x(async () => { +}, h6t = u6t, _ce = "sankey", f6t = /* @__PURE__ */ x((t) => /^\s*sankey-beta/.test(t), "detector"), d6t = /* @__PURE__ */ x(async () => { const { diagram: t } = await Promise.resolve().then(() => our); - return { id: Ece, diagram: t }; + return { id: _ce, diagram: t }; }, "loader"), p6t = { - id: Ece, + id: _ce, detector: f6t, loader: d6t -}, g6t = p6t, _ce = "packet", m6t = /* @__PURE__ */ x((t) => /^\s*packet-beta/.test(t), "detector"), v6t = /* @__PURE__ */ x(async () => { +}, g6t = p6t, Ace = "packet", m6t = /* @__PURE__ */ x((t) => /^\s*packet-beta/.test(t), "detector"), v6t = /* @__PURE__ */ x(async () => { const { diagram: t } = await Promise.resolve().then(() => kur); - return { id: _ce, diagram: t }; + return { id: Ace, diagram: t }; }, "loader"), y6t = { - id: _ce, + id: Ace, detector: m6t, loader: v6t -}, Ace = "block", b6t = /* @__PURE__ */ x((t) => /^\s*block-beta/.test(t), "detector"), x6t = /* @__PURE__ */ x(async () => { +}, Lce = "block", b6t = /* @__PURE__ */ x((t) => /^\s*block-beta/.test(t), "detector"), x6t = /* @__PURE__ */ x(async () => { const { diagram: t } = await Promise.resolve().then(() => jur); - return { id: Ace, diagram: t }; + return { id: Lce, diagram: t }; }, "loader"), w6t = { - id: Ace, + id: Lce, detector: b6t, loader: x6t -}, O6t = w6t, Lce = "architecture", k6t = /* @__PURE__ */ x((t) => /^\s*architecture/.test(t), "detector"), S6t = /* @__PURE__ */ x(async () => { +}, O6t = w6t, Rce = "architecture", k6t = /* @__PURE__ */ x((t) => /^\s*architecture/.test(t), "detector"), S6t = /* @__PURE__ */ x(async () => { const { diagram: t } = await Promise.resolve().then(() => Dhr); - return { id: Lce, diagram: t }; + return { id: Rce, diagram: t }; }, "loader"), T6t = { - id: Lce, + id: Rce, detector: k6t, loader: S6t -}, C6t = T6t, wY = !1, YC = /* @__PURE__ */ x(() => { - wY || (wY = !0, p3("error", J_t, (t) => t.toLowerCase().trim() === "error"), p3( +}, C6t = T6t, OY = !1, YC = /* @__PURE__ */ x(() => { + OY || (OY = !0, p3("error", J_t, (t) => t.toLowerCase().trim() === "error"), p3( "---", { db: { @@ -46599,7 +46618,7 @@ var ace = "c4", BEt = /* @__PURE__ */ x((t) => /^\s*C4Context|C4Container|C4Comp init: /* @__PURE__ */ x(() => null, "init") }, (t) => t.toLowerCase().trimStart().startsWith("---") - ), jse( + ), Kse( QEt, $_t, D_t, @@ -46649,11 +46668,11 @@ var ace = "c4", BEt = /* @__PURE__ */ x((t) => /^\s*C4Context|C4Container|C4Comp throw new Error(`Failed to load ${e.length} external diagrams`); } }, "loadRegisteredDiagrams"), _6t = "graphics-document document"; -function Rce(t, e) { +function Mce(t, e) { t.attr("role", _6t), e !== "" && t.attr("aria-roledescription", e); } -x(Rce, "setA11yDiagramInfo"); -function Mce(t, e, r, n) { +x(Mce, "setA11yDiagramInfo"); +function Dce(t, e, r, n) { if (t.insert !== void 0) { if (r) { const i = `chart-desc-${n}`; @@ -46665,7 +46684,7 @@ function Mce(t, e, r, n) { } } } -x(Mce, "addSVGa11yTitleDescription"); +x(Dce, "addSVGa11yTitleDescription"); var m1, oL = (m1 = class { constructor(e, r, n, i, s) { this.type = e, this.text = r, this.db = n, this.parser = i, this.renderer = s; @@ -46680,7 +46699,7 @@ var m1, oL = (m1 = class { } catch { const f = Vyt(i); if (!f) - throw new Zse(`Diagram ${i} not found.`); + throw new jse(`Diagram ${i} not found.`); const { id: d, diagram: p } = await f(); p3(d, p); } @@ -46698,43 +46717,43 @@ var m1, oL = (m1 = class { } }, (() => { x(m1, "Diagram"); -})(), m1), OY = [], A6t = /* @__PURE__ */ x(() => { - OY.forEach((t) => { +})(), m1), kY = [], A6t = /* @__PURE__ */ x(() => { + kY.forEach((t) => { t(); - }), OY = []; + }), kY = []; }, "attachFunctions"), L6t = /* @__PURE__ */ x((t) => t.replace(/^\s*%%(?!{)[^\n]+\n?/gm, "").trimStart(), "cleanupComments"); function TN(t) { return typeof t > "u" || t === null; } x(TN, "isNothing"); -function Dce(t) { +function Pce(t) { return typeof t == "object" && t !== null; } -x(Dce, "isObject"); -function Pce(t) { +x(Pce, "isObject"); +function Nce(t) { return Array.isArray(t) ? t : TN(t) ? [] : [t]; } -x(Pce, "toArray"); -function Nce(t, e) { +x(Nce, "toArray"); +function Ice(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(Nce, "extend"); -function Ice(t, e) { +x(Ice, "extend"); +function $ce(t, e) { var r = "", n; for (n = 0; n < e; n += 1) r += t; return r; } -x(Ice, "repeat"); -function $ce(t) { +x($ce, "repeat"); +function Bce(t) { return t === 0 && Number.NEGATIVE_INFINITY === 1 / t; } -x($ce, "isNegativeZero"); -var R6t = TN, M6t = Dce, D6t = Pce, P6t = Ice, N6t = $ce, I6t = Nce, Vi = { +x(Bce, "isNegativeZero"); +var R6t = TN, M6t = Pce, D6t = Nce, P6t = $ce, N6t = Bce, I6t = Ice, Vi = { isNothing: R6t, isObject: M6t, toArray: D6t, @@ -46771,7 +46790,7 @@ function Ik(t, e) { return Vi.repeat(" ", e - t.length) + t; } x(Ik, "padStart"); -function Bce(t, e) { +function Fce(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); @@ -46801,8 +46820,8 @@ function Bce(t, e) { `; return o.replace(/\n$/, ""); } -x(Bce, "makeSnippet"); -var $6t = Bce, B6t = [ +x(Fce, "makeSnippet"); +var $6t = Fce, B6t = [ "kind", "multi", "resolve", @@ -46818,7 +46837,7 @@ var $6t = Bce, B6t = [ "sequence", "mapping" ]; -function Fce(t) { +function zce(t) { var e = {}; return t !== null && Object.keys(t).forEach(function(r) { t[r].forEach(function(n) { @@ -46826,8 +46845,8 @@ function Fce(t) { }); }), e; } -x(Fce, "compileStyleAliases"); -function zce(t, e) { +x(zce, "compileStyleAliases"); +function Qce(t, e) { if (e = e || {}, Object.keys(e).forEach(function(r) { if (B6t.indexOf(r) === -1) throw new Za('Unknown option "' + r + '" is met in definition of "' + t + '" YAML type.'); @@ -46835,11 +46854,11 @@ function zce(t, e) { 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 = Fce(e.styleAliases || null), F6t.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 = zce(e.styleAliases || null), F6t.indexOf(this.kind) === -1) throw new Za('Unknown kind "' + this.kind + '" is specified for "' + t + '" YAML type.'); } -x(zce, "Type$1"); -var ra = zce; +x(Qce, "Type$1"); +var ra = Qce; function lL(t, e) { var r = []; return t[e].forEach(function(n) { @@ -46850,7 +46869,7 @@ function lL(t, e) { }), r; } x(lL, "compileList"); -function Qce() { +function Uce() { var t = { scalar: {}, sequence: {}, @@ -46870,7 +46889,7 @@ function Qce() { arguments[e].forEach(n); return t; } -x(Qce, "compileMap"); +x(Uce, "compileMap"); function X3(t) { return this.extend(t); } @@ -46897,7 +46916,7 @@ X3.prototype.extend = /* @__PURE__ */ x(function(e) { throw new Za("Specified list of YAML types (or a single Type object) contains a non-Type object."); }); var i = Object.create(X3.prototype); - return i.implicit = (this.implicit || []).concat(r), i.explicit = (this.explicit || []).concat(n), i.compiledImplicit = lL(i, "implicit"), i.compiledExplicit = lL(i, "explicit"), i.compiledTypeMap = Qce(i.compiledImplicit, i.compiledExplicit), i; + return i.implicit = (this.implicit || []).concat(r), i.explicit = (this.explicit || []).concat(n), i.compiledImplicit = lL(i, "implicit"), i.compiledExplicit = lL(i, "explicit"), i.compiledTypeMap = Uce(i.compiledImplicit, i.compiledExplicit), i; }, "extend"); var z6t = X3, Q6t = new ra("tag:yaml.org,2002:str", { kind: "scalar", @@ -46921,26 +46940,26 @@ var z6t = X3, Q6t = new ra("tag:yaml.org,2002:str", { V6t ] }); -function Uce(t) { +function Vce(t) { if (t === null) return !0; var e = t.length; return e === 1 && t === "~" || e === 4 && (t === "null" || t === "Null" || t === "NULL"); } -x(Uce, "resolveYamlNull"); -function Vce() { +x(Vce, "resolveYamlNull"); +function qce() { return null; } -x(Vce, "constructYamlNull"); -function qce(t) { +x(qce, "constructYamlNull"); +function Yce(t) { return t === null; } -x(qce, "isNull"); +x(Yce, "isNull"); var Y6t = new ra("tag:yaml.org,2002:null", { kind: "scalar", - resolve: Uce, - construct: Vce, - predicate: qce, + resolve: Vce, + construct: qce, + predicate: Yce, represent: { canonical: /* @__PURE__ */ x(function() { return "~"; @@ -46960,26 +46979,26 @@ var Y6t = new ra("tag:yaml.org,2002:null", { }, defaultStyle: "lowercase" }); -function Yce(t) { +function Wce(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(Yce, "resolveYamlBoolean"); -function Wce(t) { +x(Wce, "resolveYamlBoolean"); +function Gce(t) { return t === "true" || t === "True" || t === "TRUE"; } -x(Wce, "constructYamlBoolean"); -function Gce(t) { +x(Gce, "constructYamlBoolean"); +function Xce(t) { return Object.prototype.toString.call(t) === "[object Boolean]"; } -x(Gce, "isBoolean"); +x(Xce, "isBoolean"); var W6t = new ra("tag:yaml.org,2002:bool", { kind: "scalar", - resolve: Yce, - construct: Wce, - predicate: Gce, + resolve: Wce, + construct: Gce, + predicate: Xce, represent: { lowercase: /* @__PURE__ */ x(function(t) { return t ? "true" : "false"; @@ -46993,19 +47012,19 @@ var W6t = new ra("tag:yaml.org,2002:bool", { }, defaultStyle: "lowercase" }); -function Xce(t) { +function Hce(t) { return 48 <= t && t <= 57 || 65 <= t && t <= 70 || 97 <= t && t <= 102; } -x(Xce, "isHexCode"); -function Hce(t) { +x(Hce, "isHexCode"); +function Zce(t) { return 48 <= t && t <= 55; } -x(Hce, "isOctCode"); -function Zce(t) { +x(Zce, "isOctCode"); +function jce(t) { return 48 <= t && t <= 57; } -x(Zce, "isDecCode"); -function jce(t) { +x(jce, "isDecCode"); +function Kce(t) { if (t === null) return !1; var e = t.length, r = 0, n = !1, i; @@ -47026,7 +47045,7 @@ function jce(t) { if (i === "x") { for (r++; r < e; r++) if (i = t[r], i !== "_") { - if (!Xce(t.charCodeAt(r))) + if (!Hce(t.charCodeAt(r))) return !1; n = !0; } @@ -47035,7 +47054,7 @@ function jce(t) { if (i === "o") { for (r++; r < e; r++) if (i = t[r], i !== "_") { - if (!Hce(t.charCodeAt(r))) + if (!Zce(t.charCodeAt(r))) return !1; n = !0; } @@ -47046,14 +47065,14 @@ function jce(t) { return !1; for (; r < e; r++) if (i = t[r], i !== "_") { - if (!Zce(t.charCodeAt(r))) + if (!jce(t.charCodeAt(r))) return !1; n = !0; } return !(!n || i === "_"); } -x(jce, "resolveYamlInteger"); -function Kce(t) { +x(Kce, "resolveYamlInteger"); +function Jce(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; @@ -47067,16 +47086,16 @@ function Kce(t) { } return r * parseInt(e, 10); } -x(Kce, "constructYamlInteger"); -function Jce(t) { +x(Jce, "constructYamlInteger"); +function eue(t) { return Object.prototype.toString.call(t) === "[object Number]" && t % 1 === 0 && !Vi.isNegativeZero(t); } -x(Jce, "isInteger"); +x(eue, "isInteger"); var G6t = new ra("tag:yaml.org,2002:int", { kind: "scalar", - resolve: jce, - construct: Kce, - predicate: Jce, + resolve: Kce, + construct: Jce, + predicate: eue, represent: { binary: /* @__PURE__ */ x(function(t) { return t >= 0 ? "0b" + t.toString(2) : "-0b" + t.toString(2).slice(1); @@ -47101,17 +47120,17 @@ var G6t = new ra("tag:yaml.org,2002:int", { }), X6t = new RegExp( "^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$" ); -function eue(t) { +function tue(t) { return !(t === null || !X6t.test(t) || t[t.length - 1] === "_"); } -x(eue, "resolveYamlFloat"); -function tue(t) { +x(tue, "resolveYamlFloat"); +function rue(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(tue, "constructYamlFloat"); +x(rue, "constructYamlFloat"); var H6t = /^[-+]?[0-9]+e/; -function rue(t, e) { +function nue(t, e) { var r; if (isNaN(t)) switch (e) { @@ -47144,37 +47163,37 @@ function rue(t, e) { return "-0.0"; return r = t.toString(10), H6t.test(r) ? r.replace("e", ".e") : r; } -x(rue, "representYamlFloat"); -function nue(t) { +x(nue, "representYamlFloat"); +function iue(t) { return Object.prototype.toString.call(t) === "[object Number]" && (t % 1 !== 0 || Vi.isNegativeZero(t)); } -x(nue, "isFloat"); +x(iue, "isFloat"); var Z6t = new ra("tag:yaml.org,2002:float", { kind: "scalar", - resolve: eue, - construct: tue, - predicate: nue, - represent: rue, + resolve: tue, + construct: rue, + predicate: iue, + represent: nue, defaultStyle: "lowercase" -}), iue = q6t.extend({ +}), sue = q6t.extend({ implicit: [ Y6t, W6t, G6t, Z6t ] -}), j6t = iue, sue = new RegExp( +}), j6t = sue, aue = new RegExp( "^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$" -), aue = new RegExp( +), oue = 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 oue(t) { - return t === null ? !1 : sue.exec(t) !== null || aue.exec(t) !== null; -} -x(oue, "resolveYamlTimestamp"); function lue(t) { + return t === null ? !1 : aue.exec(t) !== null || oue.exec(t) !== null; +} +x(lue, "resolveYamlTimestamp"); +function cue(t) { var e, r, n, i, s, a, o, l = 0, u = null, h, f, d; - if (e = sue.exec(t), e === null && (e = aue.exec(t)), e === null) + if (e = aue.exec(t), e === null && (e = oue.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)); @@ -47185,28 +47204,28 @@ function lue(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(lue, "constructYamlTimestamp"); -function cue(t) { +x(cue, "constructYamlTimestamp"); +function uue(t) { return t.toISOString(); } -x(cue, "representYamlTimestamp"); +x(uue, "representYamlTimestamp"); var K6t = new ra("tag:yaml.org,2002:timestamp", { kind: "scalar", - resolve: oue, - construct: lue, + resolve: lue, + construct: cue, instanceOf: Date, - represent: cue + represent: uue }); -function uue(t) { +function hue(t) { return t === "<<" || t === null; } -x(uue, "resolveYamlMerge"); +x(hue, "resolveYamlMerge"); var J6t = new ra("tag:yaml.org,2002:merge", { kind: "scalar", - resolve: uue + resolve: hue }), EN = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/= \r`; -function hue(t) { +function fue(t) { if (t === null) return !1; var e, r, n = 0, i = t.length, s = EN; @@ -47218,33 +47237,33 @@ function hue(t) { } return n % 8 === 0; } -x(hue, "resolveYamlBinary"); -function fue(t) { +x(fue, "resolveYamlBinary"); +function due(t) { var e, r, n = t.replace(/[\r\n=]/g, ""), i = n.length, s = EN, 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(fue, "constructYamlBinary"); -function due(t) { +x(due, "constructYamlBinary"); +function pue(t) { var e = "", r = 0, n, i, s = t.length, a = EN; 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(due, "representYamlBinary"); -function pue(t) { +x(pue, "representYamlBinary"); +function gue(t) { return Object.prototype.toString.call(t) === "[object Uint8Array]"; } -x(pue, "isBinary"); +x(gue, "isBinary"); var eAt = new ra("tag:yaml.org,2002:binary", { kind: "scalar", - resolve: hue, - construct: fue, - predicate: pue, - represent: due + resolve: fue, + construct: due, + predicate: gue, + represent: pue }), tAt = Object.prototype.hasOwnProperty, rAt = Object.prototype.toString; -function gue(t) { +function mue(t) { if (t === null) return !0; var e = [], r, n, i, s, a, o = t; @@ -47266,17 +47285,17 @@ function gue(t) { } return !0; } -x(gue, "resolveYamlOmap"); -function mue(t) { +x(mue, "resolveYamlOmap"); +function vue(t) { return t !== null ? t : []; } -x(mue, "constructYamlOmap"); +x(vue, "constructYamlOmap"); var nAt = new ra("tag:yaml.org,2002:omap", { kind: "sequence", - resolve: gue, - construct: mue + resolve: mue, + construct: vue }), iAt = Object.prototype.toString; -function vue(t) { +function yue(t) { if (t === null) return !0; var e, r, n, i, s, a = t; @@ -47287,8 +47306,8 @@ function vue(t) { } return !0; } -x(vue, "resolveYamlPairs"); -function yue(t) { +x(yue, "resolveYamlPairs"); +function bue(t) { if (t === null) return []; var e, r, n, i, s, a = t; @@ -47296,13 +47315,13 @@ function yue(t) { n = a[e], i = Object.keys(n), s[e] = [i[0], n[i[0]]]; return s; } -x(yue, "constructYamlPairs"); +x(bue, "constructYamlPairs"); var sAt = new ra("tag:yaml.org,2002:pairs", { kind: "sequence", - resolve: vue, - construct: yue + resolve: yue, + construct: bue }), aAt = Object.prototype.hasOwnProperty; -function bue(t) { +function xue(t) { if (t === null) return !0; var e, r = t; @@ -47311,16 +47330,16 @@ function bue(t) { return !1; return !0; } -x(bue, "resolveYamlSet"); -function xue(t) { +x(xue, "resolveYamlSet"); +function wue(t) { return t !== null ? t : {}; } -x(xue, "constructYamlSet"); +x(wue, "constructYamlSet"); var oAt = new ra("tag:yaml.org,2002:set", { kind: "mapping", - resolve: bue, - construct: xue -}), wue = j6t.extend({ + resolve: xue, + construct: wue +}), Oue = j6t.extend({ implicit: [ K6t, J6t @@ -47331,7 +47350,7 @@ var oAt = new ra("tag:yaml.org,2002:set", { sAt, oAt ] -}), jf = Object.prototype.hasOwnProperty, H3 = 1, Oue = 2, kue = 3, Z3 = 4, uA = 1, lAt = 2, kY = 3, cAt = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, uAt = /[\x85\u2028\u2029]/, hAt = /[,\[\]\{\}]/, Sue = /^(?:!|!!|![a-z\-]+!)$/i, Tue = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i; +}), jf = Object.prototype.hasOwnProperty, H3 = 1, kue = 2, Sue = 3, Z3 = 4, uA = 1, lAt = 2, SY = 3, cAt = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, uAt = /[\x85\u2028\u2029]/, hAt = /[,\[\]\{\}]/, Tue = /^(?:!|!!|![a-z\-]+!)$/i, Cue = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i; function cL(t) { return Object.prototype.toString.call(t); } @@ -47352,39 +47371,39 @@ function p0(t) { return t === 44 || t === 91 || t === 93 || t === 123 || t === 125; } x(p0, "is_FLOW_INDICATOR"); -function Cue(t) { +function Eue(t) { var e; return 48 <= t && t <= 57 ? t - 48 : (e = t | 32, 97 <= e && e <= 102 ? e - 97 + 10 : -1); } -x(Cue, "fromHexCode"); -function Eue(t) { +x(Eue, "fromHexCode"); +function _ue(t) { return t === 120 ? 2 : t === 117 ? 4 : t === 85 ? 8 : 0; } -x(Eue, "escapedHexLen"); -function _ue(t) { +x(_ue, "escapedHexLen"); +function Aue(t) { return 48 <= t && t <= 57 ? t - 48 : -1; } -x(_ue, "fromDecimalCode"); +x(Aue, "fromDecimalCode"); function uL(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(uL, "simpleEscapeSequence"); -function Aue(t) { +function Lue(t) { return t <= 65535 ? String.fromCharCode(t) : String.fromCharCode( (t - 65536 >> 10) + 55296, (t - 65536 & 1023) + 56320 ); } -x(Aue, "charFromCodepoint"); -var Lue = new Array(256), Rue = new Array(256); +x(Lue, "charFromCodepoint"); +var Rue = new Array(256), Mue = new Array(256); for (Dd = 0; Dd < 256; Dd++) - Lue[Dd] = uL(Dd) ? 1 : 0, Rue[Dd] = uL(Dd); + Rue[Dd] = uL(Dd) ? 1 : 0, Mue[Dd] = uL(Dd); var Dd; -function Mue(t, e) { - this.input = t, this.filename = e.filename || null, this.schema = e.schema || wue, 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 Due(t, e) { + this.input = t, this.filename = e.filename || null, this.schema = e.schema || Oue, 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(Mue, "State$1"); +x(Due, "State$1"); function _N(t, e) { var r = { name: t.filename, @@ -47404,14 +47423,14 @@ function ub(t, e) { t.onWarning && t.onWarning.call(null, _N(t, e)); } x(ub, "throwWarning"); -var SY = { +var TY = { YAML: /* @__PURE__ */ x(function(e, r, n) { var i, s, a; e.version !== null && jt(e, "duplication of %YAML directive"), n.length !== 1 && jt(e, "YAML directive accepts exactly one argument"), i = /^([0-9]+)\.([0-9]+)$/.exec(n[0]), i === null && jt(e, "ill-formed argument of the YAML directive"), s = parseInt(i[1], 10), a = parseInt(i[2], 10), s !== 1 && jt(e, "unacceptable YAML version of the document"), e.version = n[0], e.checkLineBreaks = a < 2, a !== 1 && a !== 2 && ub(e, "unsupported YAML version of the document"); }, "handleYamlDirective"), TAG: /* @__PURE__ */ x(function(e, r, n) { var i, s; - n.length !== 2 && jt(e, "TAG directive accepts exactly two arguments"), i = n[0], s = n[1], Sue.test(i) || jt(e, "ill-formed tag handle (first argument) of the TAG directive"), jf.call(e.tagMap, i) && jt(e, 'there is a previously declared suffix for "' + i + '" tag handle'), Tue.test(s) || jt(e, "ill-formed tag prefix (second argument) of the TAG directive"); + n.length !== 2 && jt(e, "TAG directive accepts exactly two arguments"), i = n[0], s = n[1], Tue.test(i) || jt(e, "ill-formed tag handle (first argument) of the TAG directive"), jf.call(e.tagMap, i) && jt(e, 'there is a previously declared suffix for "' + i + '" tag handle'), Cue.test(s) || jt(e, "ill-formed tag prefix (second argument) of the TAG directive"); try { s = decodeURIComponent(s); } catch { @@ -47491,7 +47510,7 @@ function GC(t, e) { `, e - 1)); } x(GC, "writeFoldedLines"); -function Due(t, e, r) { +function Pue(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), Sa(p) || p0(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), Sa(i) || r && p0(i))) return !1; @@ -47518,8 +47537,8 @@ function Due(t, e, r) { } return nh(t, s, a, !1), t.result ? !0 : (t.kind = f, t.result = d, !1); } -x(Due, "readPlainScalar"); -function Pue(t, e) { +x(Pue, "readPlainScalar"); +function Nue(t, e) { var r, n, i; if (r = t.input.charCodeAt(t.position), r !== 39) return !1; @@ -47533,8 +47552,8 @@ function Pue(t, e) { Xl(r) ? (nh(t, n, i, !0), GC(t, pi(t, !1, e)), n = i = t.position) : t.position === t.lineStart && gw(t) ? jt(t, "unexpected end of the document within a single quoted scalar") : (t.position++, i = t.position); jt(t, "unexpected end of the stream within a single quoted scalar"); } -x(Pue, "readSingleQuotedScalar"); -function Nue(t, e) { +x(Nue, "readSingleQuotedScalar"); +function Iue(t, e) { var r, n, i, s, a, o; if (o = t.input.charCodeAt(t.position), o !== 34) return !1; @@ -47544,12 +47563,12 @@ function Nue(t, e) { if (o === 92) { if (nh(t, r, t.position, !0), o = t.input.charCodeAt(++t.position), Xl(o)) pi(t, !1, e); - else if (o < 256 && Lue[o]) - t.result += Rue[o], t.position++; - else if ((a = Eue(o)) > 0) { + else if (o < 256 && Rue[o]) + t.result += Mue[o], t.position++; + else if ((a = _ue(o)) > 0) { for (i = a, s = 0; i > 0; i--) - o = t.input.charCodeAt(++t.position), (a = Cue(o)) >= 0 ? s = (s << 4) + a : jt(t, "expected hexadecimal character"); - t.result += Aue(s), t.position++; + o = t.input.charCodeAt(++t.position), (a = Eue(o)) >= 0 ? s = (s << 4) + a : jt(t, "expected hexadecimal character"); + t.result += Lue(s), t.position++; } else jt(t, "unknown escape sequence"); r = n = t.position; @@ -47558,8 +47577,8 @@ function Nue(t, e) { } jt(t, "unexpected end of the stream within a double quoted scalar"); } -x(Nue, "readDoubleQuotedScalar"); -function Iue(t, e) { +x(Iue, "readDoubleQuotedScalar"); +function $ue(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 = []; @@ -47574,8 +47593,8 @@ function Iue(t, e) { } jt(t, "unexpected end of the stream within a flow collection"); } -x(Iue, "readFlowCollection"); -function $ue(t, e) { +x($ue, "readFlowCollection"); +function Bue(t, e) { var r, n, i = uA, s = !1, a = !1, o = e, l = 0, u = !1, h, f; if (f = t.input.charCodeAt(t.position), f === 124) n = !1; @@ -47585,8 +47604,8 @@ function $ue(t, e) { return !1; for (t.kind = "scalar", t.result = ""; f !== 0; ) if (f = t.input.charCodeAt(++t.position), f === 43 || f === 45) - uA === i ? i = f === 43 ? kY : lAt : jt(t, "repeat of a chomping mode identifier"); - else if ((h = _ue(f)) >= 0) + uA === i ? i = f === 43 ? SY : lAt : jt(t, "repeat of a chomping mode identifier"); + else if ((h = Aue(f)) >= 0) h === 0 ? jt(t, "bad explicit indentation width of a block scalar; it cannot be less than one") : a ? jt(t, "repeat of an indentation width identifier") : (o = e + h - 1, a = !0); else break; @@ -47607,7 +47626,7 @@ function $ue(t, e) { continue; } if (t.lineIndent < o) { - i === kY ? t.result += Vi.repeat(` + i === SY ? t.result += Vi.repeat(` `, s ? 1 + l : l) : i === uA && s && (t.result += ` `); break; @@ -47622,7 +47641,7 @@ function $ue(t, e) { } return !0; } -x($ue, "readBlockScalar"); +x(Bue, "readBlockScalar"); function fL(t, e) { var r, n = t.tag, i = t.anchor, s = [], a, o = !1, l; if (t.firstTabInLine !== -1) @@ -47632,7 +47651,7 @@ function fL(t, e) { s.push(null), l = t.input.charCodeAt(t.position); continue; } - if (r = t.line, X0(t, e, kue, !1, !0), s.push(t.result), pi(t, !0, -1), l = t.input.charCodeAt(t.position), (t.line === r || t.lineIndent > e) && l !== 0) + if (r = t.line, X0(t, e, Sue, !1, !0), s.push(t.result), pi(t, !0, -1), l = t.input.charCodeAt(t.position), (t.line === r || t.lineIndent > e) && l !== 0) jt(t, "bad indentation of a sequence entry"); else if (t.lineIndent < e) break; @@ -47640,7 +47659,7 @@ function fL(t, e) { return o ? (t.tag = n, t.anchor = i, t.kind = "sequence", t.result = s, !0) : !1; } x(fL, "readBlockSequence"); -function Bue(t, e, r) { +function Fue(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; @@ -47648,7 +47667,7 @@ function Bue(t, e, r) { if (!v && t.firstTabInLine !== -1 && (t.position = t.firstTabInLine, jt(t, "tab characters must not be used in indentation")), n = t.input.charCodeAt(t.position + 1), s = t.line, (b === 63 || b === 58) && Sa(n)) b === 63 ? (v && (g0(t, f, d, p, g, null, a, o, l), p = g = m = null), y = !0, v = !0, i = !0) : v ? (v = !1, i = !0) : jt(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, !X0(t, r, Oue, !1, !0)) + if (a = t.line, o = t.lineStart, l = t.position, !X0(t, r, kue, !1, !0)) break; if (t.line === s) { for (b = t.input.charCodeAt(t.position); Ef(b); ) @@ -47671,8 +47690,8 @@ function Bue(t, e, r) { } return v && g0(t, f, d, p, g, null, a, o, l), y && (t.tag = u, t.anchor = h, t.kind = "mapping", t.result = f), y; } -x(Bue, "readBlockMapping"); -function Fue(t) { +x(Fue, "readBlockMapping"); +function zue(t) { var e, r = !1, n = !1, i, s, a; if (a = t.input.charCodeAt(t.position), a !== 33) return !1; @@ -47683,10 +47702,10 @@ function Fue(t) { t.position < t.length ? (s = t.input.slice(e, t.position), a = t.input.charCodeAt(++t.position)) : jt(t, "unexpected end of the stream within a verbatim tag"); } else { for (; a !== 0 && !Sa(a); ) - a === 33 && (n ? jt(t, "tag suffix cannot contain exclamation marks") : (i = t.input.slice(e - 1, t.position + 1), Sue.test(i) || jt(t, "named tag handle cannot contain such characters"), n = !0, e = t.position + 1)), a = t.input.charCodeAt(++t.position); + a === 33 && (n ? jt(t, "tag suffix cannot contain exclamation marks") : (i = t.input.slice(e - 1, t.position + 1), Tue.test(i) || jt(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), hAt.test(s) && jt(t, "tag suffix cannot contain flow indicator characters"); } - s && !Tue.test(s) && jt(t, "tag name cannot contain such characters: " + s); + s && !Cue.test(s) && jt(t, "tag name cannot contain such characters: " + s); try { s = decodeURIComponent(s); } catch { @@ -47694,8 +47713,8 @@ function Fue(t) { } return r ? t.tag = s : jf.call(t.tagMap, i) ? t.tag = t.tagMap[i] + s : i === "!" ? t.tag = "!" + s : i === "!!" ? t.tag = "tag:yaml.org,2002:" + s : jt(t, 'undeclared tag handle "' + i + '"'), !0; } -x(Fue, "readTagProperty"); -function zue(t) { +x(zue, "readTagProperty"); +function Que(t) { var e, r; if (r = t.input.charCodeAt(t.position), r !== 38) return !1; @@ -47703,8 +47722,8 @@ function zue(t) { r = t.input.charCodeAt(++t.position); return t.position === e && jt(t, "name of an anchor node must contain at least one character"), t.anchor = t.input.slice(e, t.position), !0; } -x(zue, "readAnchorProperty"); -function Que(t) { +x(Que, "readAnchorProperty"); +function Uue(t) { var e, r, n; if (n = t.input.charCodeAt(t.position), n !== 42) return !1; @@ -47712,13 +47731,13 @@ function Que(t) { n = t.input.charCodeAt(++t.position); return t.position === e && jt(t, "name of an alias node must contain at least one character"), r = t.input.slice(e, t.position), jf.call(t.anchorMap, r) || jt(t, 'unidentified alias "' + r + '"'), t.result = t.anchorMap[r], pi(t, !0, -1), !0; } -x(Que, "readAlias"); +x(Uue, "readAlias"); function X0(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 = Z3 === r || kue === r, n && pi(t, !0, -1) && (u = !0, t.lineIndent > e ? l = 1 : t.lineIndent === e ? l = 0 : t.lineIndent < e && (l = -1)), l === 1) - for (; Fue(t) || zue(t); ) + if (t.listener !== null && t.listener("open", t), t.tag = null, t.anchor = null, t.kind = null, t.result = null, s = a = o = Z3 === r || Sue === r, n && pi(t, !0, -1) && (u = !0, t.lineIndent > e ? l = 1 : t.lineIndent === e ? l = 0 : t.lineIndent < e && (l = -1)), l === 1) + for (; zue(t) || Que(t); ) pi(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 || Z3 === r) && (H3 === r || Oue === r ? m = e : m = e + 1, v = t.position - t.lineStart, l === 1 ? o && (fL(t, v) || Bue(t, v, m)) || Iue(t, m) ? h = !0 : (a && $ue(t, m) || Pue(t, m) || Nue(t, m) ? h = !0 : Que(t) ? (h = !0, (t.tag !== null || t.anchor !== null) && jt(t, "alias node should not have any properties")) : Due(t, m, H3 === r) && (h = !0, t.tag === null && (t.tag = "?")), t.anchor !== null && (t.anchorMap[t.anchor] = t.result)) : l === 0 && (h = o && fL(t, v))), t.tag === null) + if (o && (o = u || i), (l === 1 || Z3 === r) && (H3 === r || kue === r ? m = e : m = e + 1, v = t.position - t.lineStart, l === 1 ? o && (fL(t, v) || Fue(t, v, m)) || $ue(t, m) ? h = !0 : (a && Bue(t, m) || Nue(t, m) || Iue(t, m) ? h = !0 : Uue(t) ? (h = !0, (t.tag !== null || t.anchor !== null) && jt(t, "alias node should not have any properties")) : Pue(t, m, H3 === r) && (h = !0, t.tag === null && (t.tag = "?")), t.anchor !== null && (t.anchorMap[t.anchor] = t.result)) : l === 0 && (h = o && fL(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" && jt(t, 'unacceptable node kind for ! tag; it should be "scalar", not "' + t.kind + '"'), f = 0, d = t.implicitTypes.length; f < d; f += 1) @@ -47740,7 +47759,7 @@ function X0(t, e, r, n, i) { return t.listener !== null && t.listener("close", t), t.tag !== null || t.anchor !== null || h; } x(X0, "composeNode"); -function Uue(t) { +function Vue(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 && (pi(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 && !Sa(a); ) @@ -47760,7 +47779,7 @@ function Uue(t) { a = t.input.charCodeAt(++t.position); i.push(t.input.slice(r, t.position)); } - a !== 0 && WC(t), jf.call(SY, n) ? SY[n](t, n, i) : ub(t, 'unknown document directive "' + n + '"'); + a !== 0 && WC(t), jf.call(TY, n) ? TY[n](t, n, i) : ub(t, 'unknown document directive "' + n + '"'); } if (pi(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, pi(t, !0, -1)) : s && jt(t, "directives end mark is expected"), X0(t, t.lineIndent - 1, Z3, !1, !0), pi(t, !0, -1), t.checkLineBreaks && uAt.test(t.input.slice(e, t.position)) && ub(t, "non-ASCII line breaks are interpreted as content"), t.documents.push(t.result), t.position === t.lineStart && gw(t)) { t.input.charCodeAt(t.position) === 46 && (t.position += 3, pi(t, !0, -1)); @@ -47771,19 +47790,19 @@ function Uue(t) { else return; } -x(Uue, "readDocument"); +x(Vue, "readDocument"); function AN(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 Mue(t, e), n = t.indexOf("\0"); + var r = new Due(t, e), n = t.indexOf("\0"); for (n !== -1 && (r.position = n, jt(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; ) - Uue(r); + Vue(r); return r.documents; } x(AN, "loadDocuments"); -function Vue(t, e, r) { +function que(t, e, r) { e !== null && typeof e == "object" && typeof r > "u" && (r = e, e = null); var n = AN(t, r); if (typeof e != "function") @@ -47791,8 +47810,8 @@ function Vue(t, e, r) { for (var i = 0, s = n.length; i < s; i += 1) e(n[i]); } -x(Vue, "loadAll$1"); -function que(t, e) { +x(que, "loadAll$1"); +function Yue(t, e) { var r = AN(t, e); if (r.length !== 0) { if (r.length === 1) @@ -47800,11 +47819,11 @@ function que(t, e) { throw new Za("expected a single document in the stream, but found more"); } } -x(que, "load$1"); -var fAt = Vue, dAt = que, pAt = { +x(Yue, "load$1"); +var fAt = que, dAt = Yue, pAt = { loadAll: fAt, load: dAt -}, Yue = Object.prototype.toString, Wue = Object.prototype.hasOwnProperty, LN = 65279, gAt = 9, hb = 10, mAt = 13, vAt = 32, yAt = 33, bAt = 34, dL = 35, xAt = 37, wAt = 38, OAt = 39, kAt = 42, Gue = 44, SAt = 45, j3 = 58, TAt = 61, CAt = 62, EAt = 63, _At = 64, Xue = 91, Hue = 93, AAt = 96, Zue = 123, LAt = 124, jue = 125, ua = {}; +}, Wue = Object.prototype.toString, Gue = Object.prototype.hasOwnProperty, LN = 65279, gAt = 9, hb = 10, mAt = 13, vAt = 32, yAt = 33, bAt = 34, dL = 35, xAt = 37, wAt = 38, OAt = 39, kAt = 42, Xue = 44, SAt = 45, j3 = 58, TAt = 61, CAt = 62, EAt = 63, _At = 64, Hue = 91, Zue = 93, AAt = 96, jue = 123, LAt = 124, Kue = 125, ua = {}; ua[0] = "\\0"; ua[7] = "\\a"; ua[8] = "\\b"; @@ -47838,16 +47857,16 @@ var RAt = [ "Off", "OFF" ], MAt = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/; -function Kue(t, e) { +function Jue(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 && Wue.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 && Gue.call(l.styleAliases, o) && (o = l.styleAliases[o]), r[a] = o; return r; } -x(Kue, "compileStyleMap"); -function Jue(t) { +x(Jue, "compileStyleMap"); +function ehe(t) { var e, r, n; if (e = t.toString(16).toUpperCase(), t <= 255) r = "x", n = 2; @@ -47859,12 +47878,12 @@ function Jue(t) { throw new Za("code point within a string may not be greater than 0xFFFFFFFF"); return "\\" + r + Vi.repeat("0", n - e.length) + e; } -x(Jue, "encodeHex"); +x(ehe, "encodeHex"); var DAt = 1, fb = 2; -function ehe(t) { - this.schema = t.schema || wue, this.indent = Math.max(1, t.indent || 2), this.noArrayIndent = t.noArrayIndent || !1, this.skipInvalid = t.skipInvalid || !1, this.flowLevel = Vi.isNothing(t.flowLevel) ? -1 : t.flowLevel, this.styleMap = Kue(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 === '"' ? fb : DAt, 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 the(t) { + this.schema = t.schema || Oue, this.indent = Math.max(1, t.indent || 2), this.noArrayIndent = t.noArrayIndent || !1, this.skipInvalid = t.skipInvalid || !1, this.flowLevel = Vi.isNothing(t.flowLevel) ? -1 : t.flowLevel, this.styleMap = Jue(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 === '"' ? fb : DAt, 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(ehe, "State"); +x(the, "State"); function pL(t, e) { for (var r = Vi.repeat(" ", e), n = 0, i = -1, s = "", a, o = t.length; n < o; ) i = t.indexOf(` @@ -47878,14 +47897,14 @@ function K3(t, e) { ` + Vi.repeat(" ", t.indent * e); } x(K3, "generateNextLine"); -function the(t, e) { +function rhe(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(the, "testImplicitResolving"); +x(rhe, "testImplicitResolving"); function db(t) { return t === vAt || t === gAt; } @@ -47900,17 +47919,17 @@ function gL(t) { x(gL, "isNsCharOrWhitespace"); function mL(t, e, r) { var n = gL(t), i = n && !db(t); - return (r ? n : n && t !== Gue && t !== Xue && t !== Hue && t !== Zue && t !== jue) && t !== dL && !(e === j3 && !i) || gL(e) && !db(e) && t === dL || e === j3 && i; + return (r ? n : n && t !== Xue && t !== Hue && t !== Zue && t !== jue && t !== Kue) && t !== dL && !(e === j3 && !i) || gL(e) && !db(e) && t === dL || e === j3 && i; } x(mL, "isPlainSafe"); -function rhe(t) { - return qm(t) && t !== LN && !db(t) && t !== SAt && t !== EAt && t !== j3 && t !== Gue && t !== Xue && t !== Hue && t !== Zue && t !== jue && t !== dL && t !== wAt && t !== kAt && t !== yAt && t !== LAt && t !== TAt && t !== CAt && t !== OAt && t !== bAt && t !== xAt && t !== _At && t !== AAt; -} -x(rhe, "isPlainSafeFirst"); function nhe(t) { + return qm(t) && t !== LN && !db(t) && t !== SAt && t !== EAt && t !== j3 && t !== Xue && t !== Hue && t !== Zue && t !== jue && t !== Kue && t !== dL && t !== wAt && t !== kAt && t !== yAt && t !== LAt && t !== TAt && t !== CAt && t !== OAt && t !== bAt && t !== xAt && t !== _At && t !== AAt; +} +x(nhe, "isPlainSafeFirst"); +function ihe(t) { return !db(t) && t !== j3; } -x(nhe, "isPlainSafeLast"); +x(ihe, "isPlainSafeLast"); function Tg(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; @@ -47921,9 +47940,9 @@ function RN(t) { return e.test(t); } x(RN, "needIndentIndicator"); -var ihe = 1, vL = 2, she = 3, ahe = 4, hg = 5; -function ohe(t, e, r, n, i, s, a, o) { - var l, u = 0, h = null, f = !1, d = !1, p = n !== -1, g = -1, m = rhe(Tg(t, 0)) && nhe(Tg(t, t.length - 1)); +var she = 1, vL = 2, ahe = 3, ohe = 4, hg = 5; +function lhe(t, e, r, n, i, s, a, o) { + var l, u = 0, h = null, f = !1, d = !1, p = n !== -1, g = -1, m = nhe(Tg(t, 0)) && ihe(Tg(t, t.length - 1)); if (e || a) for (l = 0; l < t.length; u >= 65536 ? l += 2 : l++) { if (u = Tg(t, l), !qm(u)) @@ -47940,10 +47959,10 @@ function ohe(t, e, r, n, i, s, a, o) { } d = d || p && l - g - 1 > n && t[g + 1] !== " "; } - return !f && !d ? m && !a && !i(t) ? ihe : s === fb ? hg : vL : r > 9 && RN(t) ? hg : a ? s === fb ? hg : vL : d ? ahe : she; + return !f && !d ? m && !a && !i(t) ? she : s === fb ? hg : vL : r > 9 && RN(t) ? hg : a ? s === fb ? hg : vL : d ? ohe : ahe; } -x(ohe, "chooseScalarStyle"); -function lhe(t, e, r, n, i) { +x(lhe, "chooseScalarStyle"); +function che(t, e, r, n, i) { t.dump = function() { if (e.length === 0) return t.quotingType === fb ? '""' : "''"; @@ -47951,9 +47970,9 @@ function lhe(t, e, r, n, i) { return t.quotingType === fb ? '"' + 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 the(t, u); + return rhe(t, u); } - switch (x(l, "testAmbiguity"), ohe( + switch (x(l, "testAmbiguity"), lhe( e, o, t.indent, @@ -47963,22 +47982,22 @@ function lhe(t, e, r, n, i) { t.forceQuotes && !n, i )) { - case ihe: + case she: return e; case vL: return "'" + e.replace(/'/g, "''") + "'"; - case she: - return "|" + yL(e, t.indent) + bL(pL(e, s)); case ahe: - return ">" + yL(e, t.indent) + bL(pL(che(e, a), s)); + return "|" + yL(e, t.indent) + bL(pL(e, s)); + case ohe: + return ">" + yL(e, t.indent) + bL(pL(uhe(e, a), s)); case hg: - return '"' + uhe(e) + '"'; + return '"' + hhe(e) + '"'; default: throw new Za("impossible error: invalid scalar style"); } }(); } -x(lhe, "writeScalar"); +x(che, "writeScalar"); function yL(t, e) { var r = RN(t) ? String(e) : "", n = t[t.length - 1] === ` `, i = n && (t[t.length - 2] === ` @@ -47993,7 +48012,7 @@ function bL(t) { ` ? t.slice(0, -1) : t; } x(bL, "dropEndingNewline"); -function che(t, e) { +function uhe(t, e) { for (var r = /(\n+)([^\n]*)/g, n = function() { var u = t.indexOf(` `); @@ -48006,7 +48025,7 @@ function che(t, e) { } return n; } -x(che, "foldString"); +x(uhe, "foldString"); function xL(t, e) { if (t === "" || t[0] === " ") return t; @@ -48018,19 +48037,19 @@ function xL(t, e) { ` + t.slice(a + 1) : l += t.slice(i), l.slice(1); } x(xL, "foldLine"); -function uhe(t) { +function hhe(t) { for (var e = "", r = 0, n, i = 0; i < t.length; r >= 65536 ? i += 2 : i++) - r = Tg(t, i), n = ua[r], !n && qm(r) ? (e += t[i], r >= 65536 && (e += t[i + 1])) : e += n || Jue(r); + r = Tg(t, i), n = ua[r], !n && qm(r) ? (e += t[i], r >= 65536 && (e += t[i + 1])) : e += n || ehe(r); return e; } -x(uhe, "escapeString"); -function hhe(t, e, r) { +x(hhe, "escapeString"); +function fhe(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)), (uu(t, e, o, !1, !1) || typeof o > "u" && uu(t, e, null, !1, !1)) && (n !== "" && (n += "," + (t.condenseFlow ? "" : " ")), n += t.dump); t.tag = i, t.dump = "[" + n + "]"; } -x(hhe, "writeFlowSequence"); +x(fhe, "writeFlowSequence"); function wL(t, e, r, n) { var i = "", s = t.tag, a, o, l; for (a = 0, o = r.length; a < o; a += 1) @@ -48038,14 +48057,14 @@ function wL(t, e, r, n) { t.tag = s, t.dump = i || "[]"; } x(wL, "writeBlockSequence"); -function fhe(t, e, r) { +function dhe(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)), uu(t, e, l, !1, !1) && (t.dump.length > 1024 && (h += "? "), h += t.dump + (t.condenseFlow ? '"' : "") + ":" + (t.condenseFlow ? "" : " "), uu(t, e, u, !1, !1) && (h += t.dump, n += h)); t.tag = i, t.dump = "{" + n + "}"; } -x(fhe, "writeFlowMapping"); -function dhe(t, e, r, n) { +x(dhe, "writeFlowMapping"); +function phe(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(); @@ -48057,15 +48076,15 @@ function dhe(t, e, r, n) { d = "", (!n || i !== "") && (d += K3(t, e)), u = a[o], h = r[u], t.replacer && (h = t.replacer.call(r, u, h)), uu(t, e + 1, u, !0, !0, !0) && (f = t.tag !== null && t.tag !== "?" || t.dump && t.dump.length > 1024, f && (t.dump && hb === t.dump.charCodeAt(0) ? d += "?" : d += "? "), d += t.dump, f && (d += K3(t, e)), uu(t, e + 1, h, !0, f) && (t.dump && hb === t.dump.charCodeAt(0) ? d += ":" : d += ": ", d += t.dump, i += d)); t.tag = s, t.dump = i || "{}"; } -x(dhe, "writeBlockMapping"); +x(phe, "writeBlockMapping"); function OL(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, Yue.call(o.represent) === "[object Function]") + if (l = t.styleMap[o.tag] || o.defaultStyle, Wue.call(o.represent) === "[object Function]") n = o.represent(e, l); - else if (Wue.call(o.represent, l)) + else if (Gue.call(o.represent, l)) n = o.represent[l](e, l); else throw new Za("!<" + o.tag + '> tag resolver accepts not "' + l + '" style'); @@ -48078,18 +48097,18 @@ function OL(t, e, r) { x(OL, "detectType"); function uu(t, e, r, n, i, s, a) { t.tag = null, t.dump = r, OL(t, r, !1) || OL(t, r, !0); - var o = Yue.call(t.dump), l = n, u; + var o = Wue.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 ? (dhe(t, e, t.dump, i), d && (t.dump = "&ref_" + f + t.dump)) : (fhe(t, e, t.dump), d && (t.dump = "&ref_" + f + " " + t.dump)); + n && Object.keys(t.dump).length !== 0 ? (phe(t, e, t.dump, i), d && (t.dump = "&ref_" + f + t.dump)) : (dhe(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 ? wL(t, e - 1, t.dump, i) : wL(t, e, t.dump, i), d && (t.dump = "&ref_" + f + t.dump)) : (hhe(t, e, t.dump), d && (t.dump = "&ref_" + f + " " + t.dump)); + n && t.dump.length !== 0 ? (t.noArrayIndent && !a && e > 0 ? wL(t, e - 1, t.dump, i) : wL(t, e, t.dump, i), d && (t.dump = "&ref_" + f + t.dump)) : (fhe(t, e, t.dump), d && (t.dump = "&ref_" + f + " " + t.dump)); else if (o === "[object String]") - t.tag !== "?" && lhe(t, t.dump, e, s, l); + t.tag !== "?" && che(t, t.dump, e, s, l); else { if (o === "[object Undefined]") return !1; @@ -48104,13 +48123,13 @@ function uu(t, e, r, n, i, s, a) { return !0; } x(uu, "writeNode"); -function phe(t, e) { +function ghe(t, e) { var r = [], n = [], i, s; for (J3(t, r, n), i = 0, s = n.length; i < s; i += 1) e.duplicates.push(r[n[i]]); e.usedDuplicates = new Array(s); } -x(phe, "getDuplicateReferences"); +x(ghe, "getDuplicateReferences"); function J3(t, e, r) { var n, i, s; if (t !== null && typeof t == "object") @@ -48126,8 +48145,8 @@ function J3(t, e, r) { x(J3, "inspectNode"); function PAt(t, e) { e = e || {}; - var r = new ehe(e); - r.noRefs || phe(t, r); + var r = new the(e); + r.noRefs || ghe(t, r); var n = t; return r.replacer && (n = r.replacer.call({ "": n }, "", n)), uu(r, 0, n, !0, !0) ? r.dump + ` ` : ""; @@ -48139,10 +48158,10 @@ function NAt(t, e) { }; } x(NAt, "renamed"); -var IAt = iue, $At = pAt.load; -function ghe(t) { +var IAt = sue, $At = pAt.load; +function mhe(t) { var i; - const e = t.match(Hse); + const e = t.match(Zse); if (!e) return { text: t, @@ -48158,13 +48177,13 @@ function ghe(t) { metadata: n }; } -x(ghe, "extractFrontMatter"); +x(mhe, "extractFrontMatter"); var BAt = /* @__PURE__ */ x((t) => t.replace(/\r\n?/g, ` `).replace( /<(\w+)([^>]*)>/g, (e, r, n) => "<" + r + n.replace(/="([^"]*)"/g, "='$1'") + ">" ), "cleanupText"), FAt = /* @__PURE__ */ x((t) => { - const { text: e, metadata: r } = ghe(t), { displayMode: n, title: i, config: s = {} } = r; + const { text: e, metadata: r } = mhe(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"), zAt = /* @__PURE__ */ x((t) => { var n; @@ -48183,11 +48202,11 @@ function MN(t) { }; } x(MN, "preprocessDiagram"); -function mhe(t) { +function vhe(t) { const e = new TextEncoder().encode(t), r = Array.from(e, (n) => String.fromCodePoint(n)).join(""); return btoa(r); } -x(mhe, "toBase64"); +x(vhe, "toBase64"); var QAt = 5e4, UAt = "graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa", VAt = "sandbox", qAt = "loose", YAt = "http://www.w3.org/2000/svg", WAt = "http://www.w3.org/1999/xlink", GAt = "http://www.w3.org/1999/xhtml", XAt = "100%", HAt = "100%", ZAt = "border:0;margin:0;", jAt = "margin:0", KAt = "allow-top-navigation-by-user-activation allow-popups", JAt = 'The "iframe" tag is not supported by your browser.', e7t = ["foreignobject"], t7t = ["dominant-baseline"]; function DN(t) { var r; @@ -48195,19 +48214,19 @@ function DN(t) { return f3(), i2t((r = e.config) != null ? r : {}), e; } x(DN, "processAndSetConfigs"); -async function vhe(t, e) { +async function yhe(t, e) { YC(); try { const { code: r, config: n } = DN(t); - return { diagramType: (await bhe(r)).type, config: n }; + return { diagramType: (await xhe(r)).type, config: n }; } catch (r) { if (e != null && e.suppressErrors) return !1; throw r; } } -x(vhe, "parse"); -var TY = /* @__PURE__ */ x((t, e, r = []) => ` +x(yhe, "parse"); +var CY = /* @__PURE__ */ x((t, e, r = []) => ` .${t} ${e} { ${r.join(" !important; ")} !important; }`, "cssImportantStyles"), r7t = /* @__PURE__ */ x((t, e = /* @__PURE__ */ new Map()) => { var n, i; let r = ""; @@ -48218,8 +48237,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) => { Hr(u.styles) || l.forEach((h) => { - r += TY(u.id, h, u.styles); - }), Hr(u.textStyles) || (r += TY( + r += CY(u.id, h, u.styles); + }), Hr(u.textStyles) || (r += CY( u.id, "tspan", ((u == null ? void 0 : u.textStyles) || []).map((h) => h.replace("color", "fill")) @@ -48238,11 +48257,11 @@ ${t.themeCSS}`), t.fontFamily !== void 0 && (r += ` )), n = W0(n), n = n.replace(/
/g, "
"), n; }, "cleanUpSvgCode"), s7t = /* @__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" : HAt, n = mhe(`${t}`); + const r = (s = (i = e == null ? void 0 : e.viewBox) == null ? void 0 : i.baseVal) != null && s.height ? e.viewBox.baseVal.height + "px" : HAt, n = vhe(`${t}`); return ``; -}, "putIntoIFrame"), CY = /* @__PURE__ */ x((t, e, r, n, i) => { +}, "putIntoIFrame"), EY = /* @__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", YAt); @@ -48274,14 +48293,14 @@ var a7t = /* @__PURE__ */ x((t, e, r, n) => { f = ht(I.nodes()[0].contentDocument.body), f.node().style.margin = 0; } else f = ht(r); - CY(f, t, l, `font-family: ${g}`, WAt); + EY(f, t, l, `font-family: ${g}`, WAt); } else { if (a7t(document, t, l, a), d) { const I = kL(ht("body"), a); f = ht(I.nodes()[0].contentDocument.body), f.node().style.margin = 0; } else f = ht("body"); - CY(f, t, l); + EY(f, t, l); } let m, v; try { @@ -48299,7 +48318,7 @@ var a7t = /* @__PURE__ */ x((t, e, r, n) => { throw i.suppressErrorRendering ? h() : j_t.draw(e, t, tL), I; } const A = f.select(`${u} svg`), E = (M = (P = m.db).getAccTitle) == null ? void 0 : M.call(P), L = (D = (N = m.db).getAccDescription) == null ? void 0 : D.call(N); - xhe(b, A, E, L), f.select(`[id="${t}"]`).selectAll("foreignobject > *").attr("xmlns", GAt); + whe(b, A, E, L), f.select(`[id="${t}"]`).selectAll("foreignobject > *").attr("xmlns", GAt); let _ = f.select(u).node().innerHTML; if (Z.debug("config.arrowMarkerAbsolute", i.arrowMarkerAbsolute), _ = i7t(_, d, Pn(i.arrowMarkerAbsolute)), d) { const I = f.select(u + " svg").node(); @@ -48317,32 +48336,32 @@ var a7t = /* @__PURE__ */ x((t, e, r, n) => { bindFunctions: m.db.bindFunctions }; }, "render"); -function yhe(t = {}) { +function bhe(t = {}) { var n; const e = Ui({}, t); (e == null ? void 0 : e.fontFamily) && !((n = e.themeVariables) != null && n.fontFamily) && (e.themeVariables || (e.themeVariables = {}), e.themeVariables.fontFamily = e.fontFamily), r2t(e), (e == null ? void 0 : e.theme) && e.theme in rh ? e.themeVariables = rh[e.theme].getThemeVariables( e.themeVariables ) : e && (e.themeVariables = rh.default.getThemeVariables(e.themeVariables)); - const r = typeof e == "object" ? t2t(e) : rae(); + const r = typeof e == "object" ? t2t(e) : nae(); DP(r.logLevel), YC(); } -x(yhe, "initialize"); -var bhe = /* @__PURE__ */ x((t, e = {}) => { +x(bhe, "initialize"); +var xhe = /* @__PURE__ */ x((t, e = {}) => { const { code: r } = MN(t); return oL.fromText(r, e); }, "getDiagramFromText"); -function xhe(t, e, r, n) { - Rce(e, t), Mce(e, r, n, e.attr("id")); +function whe(t, e, r, n) { + Mce(e, t), Dce(e, r, n, e.attr("id")); } -x(xhe, "addA11yInfo"); +x(whe, "addA11yInfo"); var H0 = Object.freeze({ render: o7t, - parse: vhe, - getDiagramFromText: bhe, - initialize: yhe, + parse: yhe, + getDiagramFromText: xhe, + initialize: bhe, getConfig: Li, - setConfig: nae, - getSiteConfig: rae, + setConfig: iae, + getSiteConfig: nae, updateSiteConfig: n2t, reset: /* @__PURE__ */ x(() => { f3(); @@ -48361,7 +48380,7 @@ var l7t = /* @__PURE__ */ x((t, e, r) => { hash: t.name, error: t })); -}, "handleError"), whe = /* @__PURE__ */ x(async function(t = { +}, "handleError"), Ohe = /* @__PURE__ */ x(async function(t = { querySelector: ".mermaid" }) { try { @@ -48391,11 +48410,11 @@ var l7t = /* @__PURE__ */ x((t, e, r) => { continue; l.setAttribute("data-processed", "true"); const u = `mermaid-${s.next()}`; - a = l.innerHTML, a = mle(mr.entityDecode(a)).trim().replace(//gi, "
"); + a = l.innerHTML, a = vle(mr.entityDecode(a)).trim().replace(//gi, "
"); const h = mr.detectInit(a); h && Z.debug("Detected early reinit: ", h); try { - const { svg: f, bindFunctions: d } = await The(u, a, l); + const { svg: f, bindFunctions: d } = await Che(u, a, l); l.innerHTML = f, t && await t(u), d && d(l); } catch (f) { l7t(f, o, Ao.parseError); @@ -48403,26 +48422,26 @@ var l7t = /* @__PURE__ */ x((t, e, r) => { } if (o.length > 0) throw o[0]; -}, "runThrowsErrors"), Ohe = /* @__PURE__ */ x(function(t) { +}, "runThrowsErrors"), khe = /* @__PURE__ */ x(function(t) { H0.initialize(t); }, "initialize"), u7t = /* @__PURE__ */ x(async function(t, e, r) { - Z.warn("mermaid.init is deprecated. Please use run instead."), t && Ohe(t); + Z.warn("mermaid.init is deprecated. Please use run instead."), t && khe(t); const n = { postRenderCallback: r, querySelector: ".mermaid" }; - typeof e == "string" ? n.querySelector = e : e && (e instanceof HTMLElement ? n.nodes = [e] : n.nodes = e), await whe(n); + typeof e == "string" ? n.querySelector = e : e && (e instanceof HTMLElement ? n.nodes = [e] : n.nodes = e), await Ohe(n); }, "init"), h7t = /* @__PURE__ */ x(async (t, { lazyLoad: e = !0 } = {}) => { - YC(), jse(...t), e === !1 && await E6t(); -}, "registerExternalDiagrams"), khe = /* @__PURE__ */ x(function() { + YC(), Kse(...t), e === !1 && await E6t(); +}, "registerExternalDiagrams"), She = /* @__PURE__ */ x(function() { if (Ao.startOnLoad) { const { startOnLoad: t } = H0.getConfig(); t && Ao.run().catch((e) => Z.error("Mermaid failed to initialize", e)); } }, "contentLoaded"); -typeof document < "u" && window.addEventListener("load", khe, !1); +typeof document < "u" && window.addEventListener("load", She, !1); var f7t = /* @__PURE__ */ x(function(t) { Ao.parseError = t; -}, "setParseErrorHandler"), eS = [], hA = !1, She = /* @__PURE__ */ x(async () => { +}, "setParseErrorHandler"), eS = [], hA = !1, The = /* @__PURE__ */ x(async () => { if (!hA) { for (hA = !0; eS.length > 0; ) { const t = eS.shift(); @@ -48447,8 +48466,8 @@ var f7t = /* @__PURE__ */ x(function(t) { } ); }), "performCall"); - eS.push(i), She().catch(n); -}), "parse"), The = /* @__PURE__ */ x((t, e, r) => new Promise((n, i) => { + eS.push(i), The().catch(n); +}), "parse"), Che = /* @__PURE__ */ x((t, e, r) => new Promise((n, i) => { const s = /* @__PURE__ */ x(() => new Promise((a, o) => { H0.render(t, e, r).then( (l) => { @@ -48460,23 +48479,23 @@ var f7t = /* @__PURE__ */ x(function(t) { } ); }), "performCall"); - eS.push(s), She().catch(i); + eS.push(s), The().catch(i); }), "render"), Ao = { startOnLoad: !0, mermaidAPI: H0, parse: d7t, - render: The, + render: Che, init: u7t, - run: whe, + run: Ohe, registerExternalDiagrams: h7t, - registerLayoutLoaders: jle, - initialize: Ohe, + registerLayoutLoaders: Kle, + initialize: khe, parseError: void 0, - contentLoaded: khe, + contentLoaded: She, setParseErrorHandler: f7t, detectType: PP, - registerIconPacks: pae -}, EY = Ao; + registerIconPacks: gae +}, _Y = Ao; /*! Check if previously processed */ /*! * Wait for document loaded before starting the execution @@ -48491,7 +48510,7 @@ const p7t = (t, { parent: r }) => { const n = /* @__PURE__ */ new Map(), i = 42, s = /* @__PURE__ */ new Map(); - EY.initialize({ + _Y.initialize({ theme: "neutral", suppressErrorRendering: !0 }); @@ -48505,13 +48524,13 @@ const p7t = (t, { return a(o, l, u, h, f); const p = d.content.trim(), g = MP(e.current, d.attrGet("data-line-id")); let m = n.get(g); - const v = new Mse(p, i).result(); + const v = new Dse(p, i).result(); (!m || m.hash !== v) && (m = (b = s.get(v)) != null ? b : m); const y = Math.random().toString().replace(".", ""); if (d.attrSet("id", `mermaid-${y}`), m && d.attrSet("class", "mermaid"), !m || m.code !== p) { const O = document.createElement("div"); - O.style.position = "fixed", O.style.visibility = "none", document.body.appendChild(O), _se(r, `mermaid-${y}`).then((S) => { - EY.render(`mermaid-${y}`, p, O).then(({ + O.style.position = "fixed", O.style.visibility = "none", document.body.appendChild(O), Ase(r, `mermaid-${y}`).then((S) => { + _Y.render(`mermaid-${y}`, p, O).then(({ svg: C }) => { const T = { @@ -48584,7 +48603,7 @@ ${C}`, S.classList.remove("mermaid"); unfoldedHeadings: null, mapUrl: (t, e) => e }; -function Che(t) { +function Ehe(t) { const e = { ...g7t, ...t @@ -48605,8 +48624,8 @@ function Che(t) { } }; } -const mc = Vj(); -var Ehe = { exports: {} }; +const mc = qj(); +var _he = { exports: {} }; (function(t, e) { (function(r, n) { t.exports = n(); @@ -49150,9 +49169,9 @@ var Ehe = { exports: {} }; }); return ze; } - var V2e = /[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g; + var q2e = /[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g; function _B(K) { - return K ? q(K) ? l.call(K) : _(K) ? K.match(V2e) : rt(K) ? da(K, At) : tt(K) : []; + return K ? q(K) ? l.call(K) : _(K) ? K.match(q2e) : rt(K) ? da(K, At) : tt(K) : []; } function AB(K, ce, Oe) { if (ce == null || Oe) @@ -49174,29 +49193,29 @@ var Ehe = { exports: {} }; }), ze; }; } - var q2e = Zw(function(K, ce, Oe) { + var Y2e = Zw(function(K, ce, Oe) { ee(K, Oe) ? K[Oe].push(ce) : K[Oe] = [ce]; - }), Y2e = Zw(function(K, ce, Oe) { - K[Oe] = ce; }), W2e = Zw(function(K, ce, Oe) { - ee(K, Oe) ? K[Oe]++ : K[Oe] = 1; + K[Oe] = ce; }), G2e = Zw(function(K, ce, Oe) { + ee(K, Oe) ? K[Oe]++ : K[Oe] = 1; + }), X2e = Zw(function(K, ce, Oe) { K[Oe ? 0 : 1].push(ce); }, !0); - function X2e(K, ce, Oe) { + function H2e(K, ce, Oe) { return ce in Oe; } var LB = C(function(K, ce) { var Oe = {}, Ae = ce[0]; if (K == null) return Oe; - F(Ae) ? (ce.length > 1 && (Ae = yt(Ae, ce[1])), ce = le(K)) : (Ae = X2e, ce = er(ce, !1, !1), K = Object(K)); + F(Ae) ? (ce.length > 1 && (Ae = yt(Ae, ce[1])), ce = le(K)) : (Ae = H2e, ce = er(ce, !1, !1), K = Object(K)); for (var qe = 0, ze = ce.length; qe < ze; qe++) { var Ze = ce[qe], lt = K[Ze]; Ae(lt, Ze, K) && (Oe[Ze] = lt); } return Oe; - }), H2e = C(function(K, ce) { + }), Z2e = C(function(K, ce) { var Oe, Ae = ce[0]; return F(Ae) ? (Ae = vr(Ae), ce.length > 1 && (Oe = ce[1])) : (ce = da(er(ce, !1, !1), String), Ae = function(qe, ze) { return !Fa(ce, ze); @@ -49215,7 +49234,7 @@ var Ehe = { exports: {} }; return ce = er(ce, !0, !0), Tl(K, function(Oe) { return !Fa(ce, Oe); }); - }), Z2e = C(function(K, ce) { + }), j2e = C(function(K, ce) { return MB(K, ce); }); function o_(K, ce, Oe, Ae) { @@ -49226,7 +49245,7 @@ var Ehe = { exports: {} }; } return qe; } - var j2e = C(function(K) { + var K2e = C(function(K) { return o_(er(K, !0, !0)); }); function l_(K) { @@ -49234,7 +49253,7 @@ var Ehe = { exports: {} }; Oe[Ae] = ps(K, Ae); return Oe; } - var K2e = C(l_); + var J2e = C(l_); function c_(K, ce) { return K._chain ? Ge(ce).chain() : ce; } @@ -49434,15 +49453,15 @@ __p+='`), yr; } return qe.index - ze.index; }), "value"); - }, groupBy: q2e, indexBy: Y2e, countBy: W2e, partition: G2e, toArray: _B, size: function(K) { + }, groupBy: Y2e, indexBy: W2e, countBy: G2e, partition: X2e, toArray: _B, size: function(K) { return K == null ? 0 : rt(K) ? K.length : He(K).length; - }, pick: LB, omit: H2e, first: a_, head: a_, take: a_, initial: RB, last: function(K, ce, Oe) { + }, pick: LB, omit: Z2e, first: a_, head: a_, take: a_, initial: RB, last: function(K, ce, Oe) { return K == null || K.length < 1 ? ce == null || Oe ? void 0 : [] : ce == null || Oe ? K[K.length - 1] : jw(K, Math.max(0, K.length - ce)); }, rest: jw, tail: jw, drop: jw, compact: function(K) { return Tl(K, Boolean); }, flatten: function(K, ce) { return er(K, ce, !1); - }, without: Z2e, uniq: o_, unique: o_, union: j2e, intersection: function(K) { + }, without: j2e, uniq: o_, unique: o_, union: K2e, intersection: function(K) { for (var ce = [], Oe = arguments.length, Ae = 0, qe = _e(K); Ae < qe; Ae++) { var ze = K[Ae]; if (!Fa(ce, ze)) { @@ -49453,7 +49472,7 @@ __p+='`), yr; } } return ce; - }, difference: MB, unzip: l_, transpose: l_, zip: K2e, object: function(K, ce) { + }, difference: MB, unzip: l_, transpose: l_, zip: J2e, object: function(K, ce) { for (var Oe = {}, Ae = 0, qe = _e(K); Ae < qe; Ae++) ce ? Oe[K[Ae]] = ce[Ae] : Oe[K[Ae][0]] = K[Ae][1]; return Oe; @@ -49471,16 +49490,16 @@ __p+='`), yr; }, mixin: DB, default: Ge }); return u_._ = u_, u_; }); -})(Ehe); -var _he, Ahe; -_he = Ehe.exports; -Ahe = function(t, e, r) { +})(_he); +var Ahe, Lhe; +Ahe = _he.exports; +Lhe = function(t, e, r) { var n, i, s, a, o, l; return n = t.utils.arrayReplaceAt, a = 0, s = { divWrap: !1, divClass: "checkbox", idPrefix: "checkbox" - }, e = _he.extend(s, e), o = /\[(X|\s|\_|\-)\]\s(.*)/i, i = function(u, h, f) { + }, e = Ahe.extend(s, e), o = /\[(X|\s|\_|\-)\]\s(.*)/i, i = function(u, h, f) { var d, p, g; return p = [], e.divWrap && (g = new f("checkbox_open", "div", 1), g.attrs = [["class", e.divClass]], p.push(g)), d = e.idPrefix + a, a += 1, g = new f("checkbox_input", "input", 0), g.attrs = [["type", "checkbox"], ["id", d]], u === !0 && g.attrs.push(["checked", "true"]), p.push(g), g = new f("label_open", "label", 1), g.attrs = [["for", d]], p.push(g), g = new f("text", "", 0), g.content = h, p.push(g), p.push(new f("label_close", "label", -1)), e.divWrap && p.push(new f("checkbox_close", "div", -1)), p; }, l = function(u, h) { @@ -49500,7 +49519,7 @@ Ahe = function(t, e, r) { }; }; var m7t = function(t, e) { - t.core.ruler.push("checkbox", Ahe(t, e)); + t.core.ruler.push("checkbox", Lhe(t, e)); }; function v7t(t) { t.block.ruler.at("fence", (e, r, n, i) => { @@ -49531,7 +49550,7 @@ function v7t(t) { return g.info = f, g.content = e.getLines(r + 1, d, u, !0), g.markup = h, g.map = [r, e.line], !0; }); } -const y7t = ["src", "href"], _Y = (t, e) => { +const y7t = ["src", "href"], AY = (t, e) => { for (const r of y7t) { const n = t.attrGet(r); n && t.attrSet(r, e(t.tag, n)); @@ -49541,14 +49560,14 @@ function b7t(t) { t.core.ruler.after("inline", "map_urls", (e) => { var r, n; for (const i of e.tokens) - _Y(i, e.env.mapUrl), (n = (r = i.children) == null ? void 0 : r.forEach) == null || n.call(r, (s) => _Y(s, e.env.mapUrl)); + AY(i, e.env.mapUrl), (n = (r = i.children) == null ? void 0 : r.forEach) == null || n.call(r, (s) => AY(s, e.env.mapUrl)); }); } const x7t = { alt: cu, height: vP, width: uC, - scale: Kie, + scale: Jie, target: a3, class: vd, name: cu @@ -49559,7 +49578,7 @@ class w7t extends bP.image { fr(this, "option_spec", { ...x7t, align: hC(["left", "center", "right"]), - figwidth: tse, + figwidth: rse, figclass: vd }); fr(this, "has_content", !0); @@ -49573,7 +49592,7 @@ class w7t extends bP.image { }); r.options.figclass && n.attrJoin("class", r.options.figclass.join(" ")), r.options.align && n.attrJoin("class", `align-${r.options.align}`), r.options.figwidth && r.options.figwidth !== "image" && n.attrSet("width", r.options.figwidth); let i; - r.args.length > 0 && (i = Lhe(this.state, n, "fig", r.args[0], r.body.trim()), n.attrJoin("class", "numbered")); + r.args.length > 0 && (i = Rhe(this.state, n, "fig", r.args[0], r.body.trim()), n.attrJoin("class", "numbered")); let s = [], a = [], o = null; if (r.body) { o = this.state.md.parseInline(r.body.split(` @@ -49608,8 +49627,8 @@ class w7t extends bP.image { return [n, o, ...s, ...a, l]; } } -function Lhe(t, e, r, n, i, s = !1) { - const a = Rhe(t), o = O7t(t, r), l = { +function Rhe(t, e, r, n, i, s = !1) { + const a = Mhe(t), o = O7t(t, r), l = { label: n, kind: r, number: o, @@ -49621,13 +49640,13 @@ function Lhe(t, e, r, n, i, s = !1) { } return l; } -function Rhe(t) { +function Mhe(t) { var r, n; const e = (n = (r = t.env) == null ? void 0 : r.docutils) != null ? n : {}; return e.targets || (e.targets = {}), e.references || (e.references = []), e.numbering || (e.numbering = {}), t.env.docutils || (t.env.docutils = e), e; } function O7t(t, e) { - const r = Rhe(t); + const r = Mhe(t); return r.numbering[e] == null ? r.numbering[e] = 1 : r.numbering[e] += 1, r.numbering[e]; } function k7t(t) { @@ -49649,7 +49668,7 @@ class S7t extends Dh { const a = this.createToken("figure_open", "figure", 1, { map: r.map, block: !0 - }), o = Lhe(this.state, a, "fig", r.args[0], r.body.trim()); + }), o = Rhe(this.state, a, "fig", r.args[0], r.body.trim()); a.attrJoin("class", "numbered"); const l = this.createToken("figure_caption_open", "figcaption", 1, { block: !0 @@ -49771,11 +49790,11 @@ const _7t = (t, e) => () => { startLine: S, endLine: C }, T) => { - const A = new Mse(O, 42).result(); + const A = new Dse(O, 42).result(); if (!w[A]) for (let L = S; L <= C; L++) d.current.delete(L); - const E = w[A] || ase.sanitize(m.value.render(O, { + const E = w[A] || ose.sanitize(m.value.render(O, { chunkId: T, startLine: S, lineMap: d, @@ -49859,14 +49878,14 @@ const _7t = (t, e) => () => { }, lineMap: d }; -}, Mhe = 20, R7t = 100, AY = 500, M7t = (t, e, r) => { +}, Dhe = 20, R7t = 100, LY = 500, M7t = (t, e, r) => { let n; return kt.updateListener.of((i) => { - const s = i.startState.doc.lineAt(i.startState.selection.main.head).number, a = i.state.doc.lineAt(i.state.selection.main.head).number, o = i.selectionSet && (s !== a || s === 1), l = r.current === null ? AY : performance.now() - r.current, u = i.transactions.some((d) => d.effects.some((p) => p.is(tS))) && l < AY, h = i.geometryChanged && !i.viewportChanged; + const s = i.startState.doc.lineAt(i.startState.selection.main.head).number, a = i.state.doc.lineAt(i.state.selection.main.head).number, o = i.selectionSet && (s !== a || s === 1), l = r.current === null ? LY : performance.now() - r.current, u = i.transactions.some((d) => d.effects.some((p) => p.is(tS))) && l < LY, h = i.geometryChanged && !i.viewportChanged; if (i.docChanged || !o && !u && !h) return; function f() { - const [d, p] = Nse(a, t, e.current); + const [d, p] = Ise(a, t, e.current); d && D7t({ view: i.view, matchingLine: p, @@ -49887,7 +49906,7 @@ function D7t({ }) { 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 + Mhe, h = l.top + i.scrollTop - u - a.top + o.scrollTop; + const u = s.top + Dhe, h = l.top + i.scrollTop - u - a.top + o.scrollTop; i.scrollTo({ top: h, behavior: n @@ -49914,7 +49933,7 @@ function P7t(t, e, r, n) { const { canScroll: f, editorParent: d - } = LY(s, r, o, n); + } = RY(s, r, o, n); f ? d.addEventListener("scrollend", h, { once: !0 }) : u(); @@ -49923,15 +49942,15 @@ function P7t(t, e, r, n) { const { canScroll: f, editorParent: d - } = LY(s, r, o, n); + } = RY(s, r, o, n); f ? d.addEventListener("scrollend", u, { once: !0 }) : u(); } else h(); } -function LY(t, e, r, n) { - const i = n.lineBlockAt(r.from), s = t.getBoundingClientRect(), a = e.current.getBoundingClientRect(), o = n.dom.parentElement, l = s.top, u = i.top - l + a.top + Mhe, h = Math.sign(o.scrollTop - u), f = 5, d = !(h === 1 && o.scrollTop === 0) && !(h === -1 && o.scrollTop + o.clientHeight >= o.scrollHeight) && Math.abs(o.scrollTop - u) > f; +function RY(t, e, r, n) { + const i = n.lineBlockAt(r.from), s = t.getBoundingClientRect(), a = e.current.getBoundingClientRect(), o = n.dom.parentElement, l = s.top, u = i.top - l + a.top + Dhe, h = Math.sign(o.scrollTop - u), f = 5, d = !(h === 1 && o.scrollTop === 0) && !(h === -1 && o.scrollTop + o.clientHeight >= o.scrollHeight) && Math.abs(o.scrollTop - u) > f; return o.scrollTo({ top: u, behavior: "smooth" @@ -49954,7 +49973,7 @@ const I7t = (t, e) => kt.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(tS))), o = r.geometryChanged && !r.viewportChanged; if (r.docChanged || !s && !a && !o) return; - const [l] = Nse(i, t, e.current), u = e.current.querySelector(".cm-previewFocus"); + const [l] = Ise(i, t, e.current), u = e.current.querySelector(".cm-previewFocus"); if (l) { const h = e.current.getBoundingClientRect(); let f = l.getBoundingClientRect(); @@ -49963,7 +49982,7 @@ const I7t = (t, e) => kt.updateListener.of((r) => { u.style.left = `${d}px`, u.style.height = `${f.height}px`; } else u.style.height = "0px"; -}), dg = 63, RY = 64, $7t = 1, B7t = 2, Dhe = 3, F7t = 4, Phe = 5, z7t = 6, Q7t = 7, Nhe = 65, U7t = 66, V7t = 8, q7t = 9, Y7t = 10, W7t = 11, G7t = 12, Ihe = 13, X7t = 19, H7t = 20, Z7t = 29, j7t = 33, K7t = 34, J7t = 47, e8t = 0, PN = 1, SL = 2, pb = 3, TL = 4; +}), dg = 63, MY = 64, $7t = 1, B7t = 2, Phe = 3, F7t = 4, Nhe = 5, z7t = 6, Q7t = 7, Ihe = 65, U7t = 66, V7t = 8, q7t = 9, Y7t = 10, W7t = 11, G7t = 12, $he = 13, X7t = 19, H7t = 20, Z7t = 29, j7t = 33, K7t = 34, J7t = 47, e8t = 0, PN = 1, SL = 2, pb = 3, TL = 4; class jd { constructor(e, r, n) { this.parent = e, this.depth = r, this.type = n, this.hash = (e ? e.hash + e.hash << 8 : 0) + r + (r << 4) + n; @@ -49983,11 +50002,11 @@ function CL(t) { function yh(t) { return t == 10 || t == 13; } -function $he(t) { +function Bhe(t) { return CL(t) || yh(t); } function m0(t) { - return t < 0 || $he(t); + return t < 0 || Bhe(t); } const t8t = new JD({ start: jd.top, @@ -49995,15 +50014,15 @@ const t8t = new JD({ return t.type == pb && (e == H7t || e == K7t) ? t.parent : t; }, shift(t, e, r, n) { - if (e == Dhe) + if (e == Phe) return new jd(t, Jy(n, n.pos), PN); - if (e == Nhe || e == Phe) + if (e == Ihe || e == Nhe) return new jd(t, Jy(n, n.pos), SL); if (e == dg) return t.parent; if (e == X7t || e == j7t) return new jd(t, 0, pb); - if (e == Ihe && t.type == TL) + if (e == $he && t.type == TL) return t.parent; if (e == J7t) { let i = /[1-9]/.exec(n.read(n.pos, r.pos)); @@ -50020,8 +50039,8 @@ function Ym(t, e, r = 0) { return t.peek(r) == e && t.peek(r + 1) == e && t.peek(r + 2) == e && m0(t.peek(r + 3)); } const r8t = new Pa((t, e) => { - if (t.next == -1 && e.canShift(RY)) - return t.acceptToken(RY); + if (t.next == -1 && e.canShift(MY)) + return t.acceptToken(MY); let r = t.peek(-1); if ((yh(r) || r < 0) && e.context.type != pb) { if (Ym(t, 45)) @@ -50045,9 +50064,9 @@ const r8t = new Pa((t, e) => { return; } if (t.next == 45) - t.advance(), m0(t.next) && t.acceptToken(e.context.type == PN && e.context.depth == Jy(t, t.pos - 1) ? F7t : Dhe); + t.advance(), m0(t.next) && t.acceptToken(e.context.type == PN && e.context.depth == Jy(t, t.pos - 1) ? F7t : Phe); else if (t.next == 63) - t.advance(), m0(t.next) && t.acceptToken(e.context.type == SL && e.context.depth == Jy(t, t.pos - 1) ? z7t : Phe); + t.advance(), m0(t.next) && t.acceptToken(e.context.type == SL && e.context.depth == Jy(t, t.pos - 1) ? z7t : Nhe); else { let r = t.pos; for (; ; ) @@ -50056,7 +50075,7 @@ const r8t = new Pa((t, e) => { return; t.advance(); } else if (t.next == 33) - Bhe(t); + Fhe(t); else if (t.next == 38) EL(t); else if (t.next == 42) { @@ -50071,7 +50090,7 @@ const r8t = new Pa((t, e) => { return; break; } else { - Fhe(t, !0, !1, 0); + zhe(t, !0, !1, 0); break; } for (; CL(t.next); ) @@ -50080,28 +50099,28 @@ const r8t = new Pa((t, e) => { if (t.pos == r && e.canShift(Z7t)) return; let n = t.peek(1); - m0(n) && t.acceptTokenTo(e.context.type == SL && e.context.depth == Jy(t, r) ? U7t : Nhe, r); + m0(n) && t.acceptTokenTo(e.context.type == SL && e.context.depth == Jy(t, r) ? U7t : Ihe, r); } } }, { contextual: !0 }); function i8t(t) { return t > 32 && t < 127 && t != 34 && t != 37 && t != 44 && t != 60 && t != 62 && t != 92 && t != 94 && t != 96 && t != 123 && t != 124 && t != 125; } -function MY(t) { +function DY(t) { return t >= 48 && t <= 57 || t >= 97 && t <= 102 || t >= 65 && t <= 70; } -function DY(t, e) { - return t.next == 37 ? (t.advance(), MY(t.next) && t.advance(), MY(t.next) && t.advance(), !0) : i8t(t.next) || e && t.next == 44 ? (t.advance(), !0) : !1; +function PY(t, e) { + return t.next == 37 ? (t.advance(), DY(t.next) && t.advance(), DY(t.next) && t.advance(), !0) : i8t(t.next) || e && t.next == 44 ? (t.advance(), !0) : !1; } -function Bhe(t) { +function Fhe(t) { if (t.advance(), t.next == 60) { for (t.advance(); ; ) - if (!DY(t, !0)) { + if (!PY(t, !0)) { t.next == 62 && t.advance(); break; } } else - for (; DY(t, !1); ) + for (; PY(t, !1); ) ; } function EL(t) { @@ -50159,7 +50178,7 @@ function fA(t, e) { let r = rS(t); return r != "u" && !(e && r == "f"); } -function Fhe(t, e, r, n) { +function zhe(t, e, r, n) { if (rS(t.next) == "s" || (t.next == 63 || t.next == 58 || t.next == 45) && fA(t.peek(1), r)) t.advance(); else @@ -50167,7 +50186,7 @@ function Fhe(t, e, r, n) { let i = t.pos; for (; ; ) { let s = t.next, a = 0, o = n + 1; - for (; $he(s); ) { + for (; Bhe(s); ) { if (yh(s)) { if (e) return !1; @@ -50189,12 +50208,12 @@ function Fhe(t, e, r, n) { } const o8t = new Pa((t, e) => { if (t.next == 33) - Bhe(t), t.acceptToken(G7t); + Fhe(t), t.acceptToken(G7t); else if (t.next == 38 || t.next == 42) { let r = t.next == 38 ? Y7t : W7t; EL(t), t.acceptToken(r); } else - t.next == 39 || t.next == 34 ? (NN(t, !1), t.acceptToken(q7t)) : Fhe(t, !1, e.context.type == pb, e.context.depth) && t.acceptToken(V7t); + t.next == 39 || t.next == 34 ? (NN(t, !1), t.acceptToken(q7t)) : zhe(t, !1, e.context.type == pb, e.context.depth) && t.acceptToken(V7t); }), l8t = new Pa((t, e) => { let r = e.context.type == TL ? e.context.depth : -1, n = t.pos; e: @@ -50213,7 +50232,7 @@ const o8t = new Pa((t, e) => { n = t.pos; } } - t.acceptTokenTo(Ihe, n); + t.acceptTokenTo($he, n); }), c8t = dd({ DirectiveName: Se.keyword, DirectiveContent: Se.attributeValue, @@ -50306,7 +50325,7 @@ function d8t() { return new gm(f8t); } Se.meta; -const p8t = ISe.filter((t, e) => e != 3), g8t = $Se.filter((t, e) => e != 1), m8t = (t) => { +const p8t = $Se.filter((t, e) => e != 3), g8t = BSe.filter((t, e) => e != 1), m8t = (t) => { const { from: e } = t.state.selection.main, r = t.state.doc.lineAt(e); @@ -50342,9 +50361,9 @@ class _f { return e == "yaml" ? d8t().language : null; } static defaultPlugins() { - return [kt.lineWrapping, BAe({ + return [kt.lineWrapping, FAe({ codeLanguages: this.codeLanguage - }), VJ(), Ku.of([r3e, { + }), qJ(), Ku.of([n3e, { key: "Mod-Z", run: C5 }])]; @@ -50359,7 +50378,7 @@ class _f { return this.extensions.push(kt.updateListener.of(e)), this; } useSpellcheck(e) { - return this.extensions.push(HAe(e)), this; + return this.extensions.push(ZAe(e)), this; } useHighlighter(e) { return this.extensions.push(iP(e)), this; @@ -50385,7 +50404,7 @@ class _f { })), this; } showCommentLineAuthors(e) { - return this.important.push(g7e(e)), this; + return this.important.push(m7e(e)), this; } readonly() { return this.extensions.push(kt.editable.of(!1), Tr.readOnly.of(!0)), this; @@ -50412,7 +50431,7 @@ class _f { undoManager: n, editorView: i }) { - const s = YEe(e, r.awareness, { + const s = WEe(e, r.awareness, { undoManager: n }); return s[1] = C7e, this.extensions.push(s), n && (n.on("stack-item-added", (a) => { @@ -50615,12 +50634,12 @@ const k8t = Ht.div` "stroke-width": "0.75", "stroke-linecap": "round" }) - }), Me(PY, { + }), Me(NY, { icon: x8t, bgOnHover: "#e7473c15", text: "DELETE", onClick: () => t.deleteComment(e) - }), r.collaboration.value.resolvingCommentsEnabled && Me(PY, { + }), r.collaboration.value.resolvingCommentsEnabled && Me(NY, { icon: w8t, bgOnHover: "#AAE17320", text: "RESOLVE", @@ -50691,7 +50710,7 @@ const k8t = Ht.div` margin-left: 5px; box-sizing: content-box; } -`, PY = ({ +`, NY = ({ icon: t, onClick: e, text: r, @@ -50718,7 +50737,7 @@ const k8t = Ht.div` -`, A8t = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTkiIGhlaWdodD0iMjEiIHZpZXdCb3g9IjAgMCAxOSAyMSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTIuMDg0MjIgMTYuMDU4M0wxLjMxNzM4IDE5LjI2MTNMNC42NjQ2IDE4LjQ5NDVNMi4wODQyMiAxNi4wNTgzTDE0LjYzMzQgMkwxNy4zMTc0IDQuNDg0NDFMNC42NjQ2IDE4LjQ5NDVNMi4wODQyMiAxNi4wNTgzTDQuNjY0NiAxOC40OTQ1IiBzdHJva2U9IndoaXRlIiBzdHJva2Utd2lkdGg9IjEuNzUiLz4KPC9zdmc+Cg==", zhe = Ht.div` +`, A8t = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTkiIGhlaWdodD0iMjEiIHZpZXdCb3g9IjAgMCAxOSAyMSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTIuMDg0MjIgMTYuMDU4M0wxLjMxNzM4IDE5LjI2MTNMNC42NjQ2IDE4LjQ5NDVNMi4wODQyMiAxNi4wNTgzTDE0LjYzMzQgMkwxNy4zMTc0IDQuNDg0NDFMNC42NjQ2IDE4LjQ5NDVNMi4wODQyMiAxNi4wNTgzTDQuNjY0NiAxOC40OTQ1IiBzdHJva2U9IndoaXRlIiBzdHJva2Utd2lkdGg9IjEuNzUiLz4KPC9zdmc+Cg==", Qhe = Ht.div` border-radius: var(--border-radius); background: var(--gray-200); font-family: monospace; @@ -50852,6 +50871,12 @@ const k8t = Ht.div` } } + .cm-suggestion-remove { + text-decoration: line-through; + font-weight: initial; + cursor: pointer; + } + .cm-replacement { font-weight: 700; display: inline-block; @@ -50927,7 +50952,7 @@ const k8t = Ht.div` const u = Tr.create({ root: i.parent, doc: i.collaboration.value.enabled ? e.ytext.toString() : t.get(), - extensions: _f.basicSetup().useHighlighter(i.transforms.value).useCompartment(Hne, iP([])).useSpellcheck(i.spellcheckOpts.value).if(i.collaboration.value.enabled, (g) => g.useCollaboration({ + extensions: _f.basicSetup().useHighlighter(i.transforms.value).useCompartment(Zne, iP([])).useSpellcheck(i.spellcheckOpts.value).if(i.collaboration.value.enabled, (g) => g.useCollaboration({ ...e, editorView: n })).if(i.collaboration.value.commentsEnabled, (g) => g.useComments({ @@ -50950,7 +50975,7 @@ const k8t = Ht.div` return n.value = h, window.myst_editor[i.id.value].main_editor = h, i.unfoldedHeadings.value != null && y8t(h, i.unfoldedHeadings.value), (d = e.ycomments) == null || d.registerCodeMirror(h), (p = e.provider) == null || p.watchCollabolators(e.setUsers), t.onSync((g) => L8t(h, g)), () => { h.destroy(); }; - }, [...Object.values(e), i.collaboration.value, i.id.value, i.spellcheckOpts.value, i.syncScroll.value, i.transforms.value, i.unfoldedHeadings.value]), Me(zhe, { + }, [...Object.values(e), i.collaboration.value, i.id.value, i.spellcheckOpts.value, i.syncScroll.value, i.transforms.value, i.unfoldedHeadings.value]), Me(Qhe, { className: "myst-main-editor", ref: s, $mode: i.mode.value, @@ -50967,7 +50992,7 @@ const k8t = Ht.div` }) })] }); -}, Qhe = Ht.div` +}, Uhe = Ht.div` background-color: white; padding: 20px; box-sizing: border-box; @@ -51333,7 +51358,7 @@ const k8t = Ht.div` margin-top: 12px; } `; -Qhe.defaultProps = { +Uhe.defaultProps = { className: "myst-preview" }; const M8t = Ht.div` @@ -51374,7 +51399,7 @@ function Z0(t, e, r, n, i, s) { } if (l == 1 || u == 1) return [new di(e, r, i, s)]; - let h = qhe(t, e, r, n, i, s); + let h = Yhe(t, e, r, n, i, s); if (h) { let [f, d, p] = h; return Z0(t, e, f, n, i, d).concat(Z0(t, f + p, r, n, d + p, s)); @@ -51385,20 +51410,20 @@ let fy = 1e9; function D8t(t, e, r, n, i, s) { let a = r - e, o = s - i; if (fy < 1e9 && Math.min(a, o) > fy * 16) - return Math.min(a, o) > fy * 64 ? [new di(e, r, i, s)] : NY(t, e, r, n, i, s); + return Math.min(a, o) > fy * 64 ? [new di(e, r, i, s)] : IY(t, e, r, n, i, s); let l = Math.ceil((a + o) / 2); dA.reset(l), pA.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 ? pA : null, d = f ? null : dA; for (let p = 0; p < l; p++) { if (p > fy) - return NY(t, e, r, n, i, s); + return IY(t, e, r, n, i, s); let g = dA.advance(p, a, o, l, f, !1, u) || pA.advance(p, a, o, l, d, !0, h); if (g) return P8t(t, e, r, e + g[0], n, i, s, i + g[1]); } return [new di(e, r, i, s)]; } -class Uhe { +class Vhe { constructor() { this.vec = []; } @@ -51434,12 +51459,12 @@ class Uhe { return null; } } -const dA = /* @__PURE__ */ new Uhe(), pA = /* @__PURE__ */ new Uhe(); +const dA = /* @__PURE__ */ new Vhe(), pA = /* @__PURE__ */ new Vhe(); function P8t(t, e, r, n, i, s, a, o) { let l = !1; return !Wm(t, n) && ++n == r && (l = !0), !Wm(i, o) && ++o == a && (l = !0), l ? [new di(e, r, s, a)] : Z0(t, e, n, i, s, o).concat(Z0(t, n, r, i, o, a)); } -function Vhe(t, e) { +function qhe(t, e) { let r = 1, n = Math.min(t, e); for (; r < n; ) r = r << 1; @@ -51448,7 +51473,7 @@ function Vhe(t, e) { function IN(t, e, r, n, i, s) { if (e == r || e == s || t.charCodeAt(e) != n.charCodeAt(i)) return 0; - let a = Vhe(r - e, s - i); + let a = qhe(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)) { @@ -51465,7 +51490,7 @@ function IN(t, e, r, n, i, s) { function $N(t, e, r, n, i, s) { if (e == r || i == s || t.charCodeAt(r - 1) != n.charCodeAt(s - 1)) return 0; - let a = Vhe(r - e, s - i); + let a = qhe(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)) { @@ -51501,15 +51526,15 @@ function AL(t, e, r, n, i, s, a, o) { a = a >> 1; } } -function qhe(t, e, r, n, i, s) { +function Yhe(t, e, r, n, i, s) { let a = r - e, o = s - i; if (a < o) { - let l = qhe(n, i, s, t, e, r); + let l = Yhe(n, i, s, t, e, r); return l && [l[1], l[0], l[2]]; } return a < 4 || o * 2 < a ? null : AL(t, e, r, n, i, s, Math.floor(a / 4), -1); } -function NY(t, e, r, n, i, s) { +function IY(t, e, r, n, i, s) { let a = r - e, o = s - i, l; if (a < o) { let d = AL(n, i, s, t, e, r, Math.floor(a / 6), 50); @@ -51521,7 +51546,7 @@ function NY(t, e, r, n, i, s) { let [u, h, f] = l; return Z0(t, e, u, n, i, h).concat(Z0(t, u + f, r, n, h + f, s)); } -function Yhe(t, e) { +function Whe(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 di(n.fromA, i.toA, n.fromB, i.toB), t.splice(r--, 1)); @@ -51529,7 +51554,7 @@ function Yhe(t, e) { } function N8t(t, e, r) { for (; ; ) { - Yhe(r, 1); + Whe(r, 1); let n = !1; for (let i = 0; i < r.length; i++) { let s = r[i], a, o; @@ -51552,52 +51577,52 @@ function I8t(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 = $Y(e, s.fromA, Math.min(u, 5)), d = IY(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 = BY(e, s.fromA, Math.min(u, 5)), d = $Y(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 di(f, f + a, s.fromB - p, s.toB - p), f = s.fromA, d = IY(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 di(d - a, d, s.fromB + g, s.toB + g), d = s.toA, f = $Y(e, s.fromA, Math.min(s.fromA - n, 5))), p = s.fromA - f, g = d - s.toA) : !p && !g && (O = s.fromA - (w = $8t(e, s.fromA, u))) && e.slice(w, s.fromA) == v.slice(b - O, b) && (s = t[i] = new di(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 di(f, f + a, s.fromB - p, s.toB - p), f = s.fromA, d = $Y(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 di(d - a, d, s.fromB + g, s.toB + g), d = s.toA, f = BY(e, s.fromA, Math.min(s.fromA - n, 5))), p = s.fromA - f, g = d - s.toA) : !p && !g && (O = s.fromA - (w = $8t(e, s.fromA, u))) && e.slice(w, s.fromA) == v.slice(b - O, b) && (s = t[i] = new di(w, w + a, s.fromB - O, s.toB - O)); } (p || g) && (s = t[i] = new di(s.fromA - p, s.toA + g, s.fromB - p, s.toB + g)), n = s.toA; } } - return Yhe(t, 3), t; + return Whe(t, 3), t; } let A0; try { A0 = /* @__PURE__ */ new RegExp("[\\p{Alphabetic}\\p{Number}]", "u"); } catch { } -function Whe(t) { +function Ghe(t) { return t > 48 && t < 58 || t > 64 && t < 91 || t > 96 && t < 123; } -function Ghe(t, e) { +function Xhe(t, e) { if (e == t.length) return 0; let r = t.charCodeAt(e); - return r < 192 ? Whe(r) ? 1 : 0 : A0 ? !Hhe(r) || e == t.length - 1 ? A0.test(String.fromCharCode(r)) ? 1 : 0 : A0.test(t.slice(e, e + 2)) ? 2 : 0 : 0; + return r < 192 ? Ghe(r) ? 1 : 0 : A0 ? !Zhe(r) || e == t.length - 1 ? A0.test(String.fromCharCode(r)) ? 1 : 0 : A0.test(t.slice(e, e + 2)) ? 2 : 0 : 0; } -function Xhe(t, e) { +function Hhe(t, e) { if (!e) return 0; let r = t.charCodeAt(e - 1); - return r < 192 ? Whe(r) ? 1 : 0 : A0 ? !Zhe(r) || e == 1 ? A0.test(String.fromCharCode(r)) ? 1 : 0 : A0.test(t.slice(e - 2, e)) ? 2 : 0 : 0; + return r < 192 ? Ghe(r) ? 1 : 0 : A0 ? !jhe(r) || e == 1 ? A0.test(String.fromCharCode(r)) ? 1 : 0 : A0.test(t.slice(e - 2, e)) ? 2 : 0 : 0; } -function IY(t, e, r) { - if (e == t.length || !Xhe(t, e)) +function $Y(t, e, r) { + if (e == t.length || !Hhe(t, e)) return e; for (let n = e, i = e + r; ; ) { - let s = Ghe(t, n); + let s = Xhe(t, n); if (!s) return n; if (n += s, n > i) return e; } } -function $Y(t, e, r) { - if (!e || !Ghe(t, e)) +function BY(t, e, r) { + if (!e || !Xhe(t, e)) return e; for (let n = e, i = e - r; ; ) { - let s = Xhe(t, n); + let s = Hhe(t, n); if (!s) return n; if (n -= s, n < i) @@ -51613,15 +51638,15 @@ function $8t(t, e, r) { return e; } } -const Hhe = (t) => t >= 55296 && t <= 56319, Zhe = (t) => t >= 56320 && t <= 57343; +const Zhe = (t) => t >= 55296 && t <= 56319, jhe = (t) => t >= 56320 && t <= 57343; function Wm(t, e) { - return !e || e == t.length || !Hhe(t.charCodeAt(e - 1)) || !Zhe(t.charCodeAt(e)); + return !e || e == t.length || !Zhe(t.charCodeAt(e - 1)) || !jhe(t.charCodeAt(e)); } function B8t(t, e, r) { var n; return fy = ((n = r == null ? void 0 : r.scanLimit) !== null && n !== void 0 ? n : 1e9) >> 1, N8t(t, e, Z0(t, 0, t.length, e, 0, e.length)); } -function jhe(t, e, r) { +function Khe(t, e, r) { return I8t(B8t(t, e, r), t, e); } const $c = /* @__PURE__ */ $t.define({ @@ -51650,39 +51675,39 @@ class Wg { return Math.max(this.fromB, this.toB - 1); } static build(e, r, n) { - return Khe(jhe(e.toString(), r.toString(), n), e, r, 0, 0); + return Jhe(Khe(e.toString(), r.toString(), n), e, r, 0, 0); } static updateA(e, r, n, i, s) { - return UY(QY(e, i, !0, n.length), e, r, n, s); + return VY(UY(e, i, !0, n.length), e, r, n, s); } static updateB(e, r, n, i, s) { - return UY(QY(e, i, !1, r.length), e, r, n, s); + return VY(UY(e, i, !1, r.length), e, r, n, s); } } -function BY(t, e, r, n) { +function FY(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 FY(t, e, r, n) { +function zY(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 Khe(t, e, r, n, i) { +function Jhe(t, e, r, n, i) { let s = []; for (let a = 0; a < t.length; a++) { - let o = t[a], [l, u] = BY(o.fromA + n, o.fromB + i, e, r), [h, f] = FY(o.toA + n, o.toB + i, e, r), d = [o.offset(-l + n, -u + i)]; + let o = t[a], [l, u] = FY(o.fromA + n, o.fromB + i, e, r), [h, f] = zY(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] = BY(p.fromA + n, p.fromB + i, e, r); + let p = t[a + 1], [g, m] = FY(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] = FY(p.toA + n, p.toB + i, e, r), a++; + d.push(p.offset(-l + n, -u + i)), [h, f] = zY(p.toA + n, p.toB + i, e, r), a++; } s.push(new Wg(d, l, Math.max(l, h), u, Math.max(u, f))); } return s; } const t4 = 1e3; -function zY(t, e, r, n) { +function QY(t, e, r, n) { let i = 0, s = t.length; for (; ; ) { if (i == s) { @@ -51700,11 +51725,11 @@ function zY(t, e, r, n) { return n ? [o.fromA, o.fromB] : [o.toA, o.toB]; } } -function QY(t, e, r, n) { +function UY(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 > t4 && ([u, f] = zY(t, s - t4, r, !0)), a < e.length - t4 && ([h, d] = zY(t, a + t4, r, !1)); + s > t4 && ([u, f] = QY(t, s - t4, r, !0)), a < e.length - t4 && ([h, d] = QY(t, a + t4, 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, @@ -51716,7 +51741,7 @@ function QY(t, e, r, n) { } : i.push({ fromA: u, toA: h, fromB: f, toB: d, diffA: m, diffB: v }); }), i; } -function UY(t, e, r, n, i) { +function VY(t, e, r, n, i) { if (!t.length) return e; let s = 0, a = 0, o = 0, l = []; @@ -51730,7 +51755,7 @@ function UY(t, e, r, n, i) { break; s++; } - for (let g of Khe(jhe(r.sliceString(h, f), n.sliceString(d, p), i), r, n, h, d)) + for (let g of Jhe(Khe(r.sliceString(h, f), n.sliceString(d, p), i), r, n, h, d)) l.push(g); a += u.diffA, o += u.diffB; } @@ -51738,12 +51763,12 @@ function UY(t, e, r, n, i) { l.push(e[s++].offset(a, o)); return l; } -const Jhe = /* @__PURE__ */ hn.fromClass(class { +const efe = /* @__PURE__ */ hn.fromClass(class { constructor(t) { - ({ deco: this.deco, gutter: this.gutter } = YY(t)); + ({ deco: this.deco, gutter: this.gutter } = WY(t)); } update(t) { - (t.docChanged || t.viewportChanged || F8t(t.startState, t.state) || z8t(t.startState, t.state)) && ({ deco: this.deco, gutter: this.gutter } = YY(t.view)); + (t.docChanged || t.viewportChanged || F8t(t.startState, t.state) || z8t(t.startState, t.state)) && ({ deco: this.deco, gutter: this.gutter } = WY(t.view)); } }, { decorations: (t) => t.deco @@ -51751,7 +51776,7 @@ const Jhe = /* @__PURE__ */ hn.fromClass(class { class: "cm-changeGutter", markers: (t) => { var e; - return ((e = t.plugin(Jhe)) === null || e === void 0 ? void 0 : e.gutter) || $r.empty; + return ((e = t.plugin(efe)) === null || e === void 0 ? void 0 : e.gutter) || $r.empty; } })); function F8t(t, e) { @@ -51760,7 +51785,7 @@ function F8t(t, e) { function z8t(t, e) { return t.facet($c) != e.facet($c); } -const VY = /* @__PURE__ */ It.line({ class: "cm-changedLine" }), Q8t = /* @__PURE__ */ It.mark({ class: "cm-changedText" }), U8t = /* @__PURE__ */ It.mark({ tagName: "ins", class: "cm-insertedLine" }), V8t = /* @__PURE__ */ It.mark({ tagName: "del", class: "cm-deletedLine" }), qY = /* @__PURE__ */ new class extends ul { +const qY = /* @__PURE__ */ It.line({ class: "cm-changedLine" }), Q8t = /* @__PURE__ */ It.mark({ class: "cm-changedText" }), U8t = /* @__PURE__ */ It.mark({ tagName: "ins", class: "cm-insertedLine" }), V8t = /* @__PURE__ */ It.mark({ tagName: "del", class: "cm-deletedLine" }), YY = /* @__PURE__ */ new class extends ul { constructor() { super(...arguments), this.elementClass = "cm-changedLineGutter"; } @@ -51768,10 +51793,10 @@ const VY = /* @__PURE__ */ It.line({ class: "cm-changedLine" }), Q8t = /* @__PUR function q8t(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, VY), i.add(a, o, r ? V8t : U8t), s && s.add(a, a, qY); + i.add(a, a, qY), i.add(a, o, r ? V8t : U8t), s && s.add(a, a, YY); for (let u = e.iterRange(a, o - 1), h = a; !u.next().done; ) { if (u.lineBreak) { - h++, i.add(h, h, VY), s && s.add(h, h, qY); + h++, i.add(h, h, qY), s && s.add(h, h, YY); continue; } let f = h + u.value.length; @@ -51787,7 +51812,7 @@ function q8t(t, e, r, n, i, s) { } } } -function YY(t) { +function WY(t) { let e = t.state.field(Gm), { side: r, highlightChanges: n, markGutter: i } = t.state.facet($c), s = r == "a", a = new cs(), o = i ? new cs() : null, { from: l, to: u } = t.viewport; for (let h of e) { if ((s ? h.fromA : h.fromB) >= u) @@ -51916,7 +51941,7 @@ const X8t = /* @__PURE__ */ Xn.define({ }, provide: (t) => kt.decorations.from(t) }); -function WY({ margin: t = 3, minSize: e = 4 }) { +function GY({ margin: t = 3, minSize: e = 4 }) { return X8t.init((r) => H8t(r, t, e)); } function H8t(t, e, r) { @@ -52021,12 +52046,12 @@ const Z8t = /* @__PURE__ */ kt.styleModule.of(/* @__PURE__ */ new oh({ "&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" } -}), GY = /* @__PURE__ */ new mp(), s4 = /* @__PURE__ */ new mp(); +}), XY = /* @__PURE__ */ new mp(), s4 = /* @__PURE__ */ new mp(); class K8t { constructor(e) { this.revertDOM = null, this.revertToA = !1, this.revertToLeft = !1, this.measuring = -1, this.diffConf = e.diffConfig; let r = [ - uc.low(Jhe), + uc.low(efe), j8t, Z8t, dy, @@ -52069,7 +52094,7 @@ class K8t { this.chunks = Wg.build(i.doc, a.doc, this.diffConf); let o = [ Gm.init(() => this.chunks), - GY.of(e.collapseUnchanged ? WY(e.collapseUnchanged) : []) + XY.of(e.collapseUnchanged ? GY(e.collapseUnchanged) : []) ]; i = i.update({ effects: or.appendConfig.of(o) }).state, a = a.update({ effects: or.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"); @@ -52122,7 +52147,7 @@ class K8t { ])); } if (i) { - let o = GY.reconfigure(e.collapseUnchanged ? WY(e.collapseUnchanged) : []); + let o = XY.reconfigure(e.collapseUnchanged ? GY(e.collapseUnchanged) : []); s.push(o), a.push(o); } this.a.dispatch({ effects: s }), this.b.dispatch({ effects: a }); @@ -52153,11 +52178,11 @@ class K8t { continue; let o = this.a.lineBlockAt(a.fromA).top + "px"; for (; r && +r.dataset.chunk < s; ) - r = XY(r); + r = HY(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 = XY(r); + r = HY(r); } renderRevertButton(e, r) { let n; @@ -52186,7 +52211,7 @@ class K8t { this.a.destroy(), this.b.destroy(), this.measuring > -1 && (this.dom.ownerDocument.defaultView || window).cancelAnimationFrame(this.measuring), this.dom.remove(); } } -function XY(t) { +function HY(t) { let e = t.nextSibling; return t.remove(), e; } @@ -52199,7 +52224,7 @@ const J8t = Ht.div` scrollbar-width: thin; overflow-y: auto; overscroll-behavior: contain; -`, HY = Ht(zhe)` +`, ZY = Ht(Qhe)` overflow-y: visible; overscroll-behavior: contain; display: block; @@ -52221,7 +52246,7 @@ const J8t = Ht.div` orientation: "b-a", root: r }); -}, efe = ({ +}, tfe = ({ text: t }) => { const { @@ -52237,14 +52262,14 @@ const J8t = Ht.div` root: e.parent }), r.current.appendChild(i.current.b.dom), n.current.appendChild(i.current.a.dom); }, []), Me(J8t, { - children: [Me(HY, { + children: [Me(ZY, { ref: r - }), Me(HY, { + }), Me(ZY, { ref: n })] }); }; -efe.defaultProps = { +tfe.defaultProps = { className: "diff" }; const t9t = Ht.div` @@ -52292,7 +52317,7 @@ const t9t = Ht.div` src: r.icon }) }, r.id)) -})), gA = 4, tfe = Ht.div` +})), gA = 4, rfe = Ht.div` min-width: ${(t) => t.n * 35}px; .avatar { @@ -52321,7 +52346,7 @@ const t9t = Ht.div` background-color: var(--icon-bg); } } -`, rfe = ({ +`, nfe = ({ login: t, color: e, avatarUrl: r, @@ -52338,7 +52363,7 @@ const t9t = Ht.div` }), i9t = ({ n: t, usernames: e -}) => Me(tfe, { +}) => Me(rfe, { title: e, children: Me("span", { class: "avatar placeholder", @@ -52348,12 +52373,12 @@ const t9t = Ht.div` users: t }) => { const e = t.length <= gA ? t.length : 3; - return Me(tfe, { + return Me(rfe, { n: Math.min(t.length, gA), children: [e < t.length ? Me(i9t, { n: t.length - e, usernames: t.filter((r, n) => n >= gA).map((r) => r.login).join(", ") - }) : "", t.slice(0, e).map((r) => Me(rfe, { + }) : "", t.slice(0, e).map((r) => Me(nfe, { ...r }))] }); @@ -52378,7 +52403,7 @@ const t9t = Ht.div` display: flex; align-items: center; justify-content: space-between; -`, ZY = Ht(xp)` +`, jY = Ht(xp)` padding: 0 10px; margin-top: 0px; @@ -52394,11 +52419,11 @@ const t9t = Ht.div` children: [Me(o9t, { children: "Are you sure you want to change the current template?" }), Me(l9t, { - children: [Me(ZY, { + children: [Me(jY, { type: "button", onClick: () => t(e), children: "\u2713 Yes" - }), Me(ZY, { + }), Me(jY, { $negative: !0, type: "button", onClick: r, @@ -52465,7 +52490,7 @@ const t9t = Ht.div` background-color: var(--icon-bg); width: 210%; z-index: 20; -`, jY = () => Me("svg", { +`, KY = () => Me("svg", { width: "20", height: "22", viewBox: "0 0 20 22", @@ -52489,7 +52514,7 @@ const t9t = Ht.div` stroke: "#332D37", "stroke-width": "1.75" })] -}), KY = Ht(xp)` +}), JY = Ht(xp)` width: 90%; color: var(--icon-color); border: 1px solid var(--icon-border); @@ -52563,7 +52588,7 @@ const t9t = Ht.div` template: r, onMouseEnter: () => f(!0), onMouseLeave: () => f(!1), - children: Me(jY, {}) + children: Me(KY, {}) }) : Me(au, { children: [l && Me(c9t, { selectedTemplate: a, @@ -52576,20 +52601,20 @@ const t9t = Ht.div` className: "icon", title: "Templates", type: "button", - children: Me(jY, {}) + children: Me(KY, {}) }), Me(m9t, { children: Me(d9t, { children: Object.keys(i).map((w) => i[w].errorMessage ? Me(g9t, { children: [h === w && Me(f9t, { tooltipOrientation: "left", errorMessage: i[w].errorMessage - }), Me(KY, { + }), Me(JY, { type: "button", onMouseEnter: () => f(w), onMouseLeave: () => f(!1), children: i[w].id })] - }) : Me(KY, { + }) : Me(JY, { type: "button", class: "tmpl-butn", onClick: () => { @@ -52832,7 +52857,7 @@ const t9t = Ht.div` const { options: i, editorView: s - } = cc(mc), a = T0(() => ase.sanitize(b9t(i.title.value))), o = wi(!1), l = T0(() => { + } = cc(mc), a = T0(() => ose.sanitize(b9t(i.title.value))), o = wi(!1), l = T0(() => { const d = [{ id: "source", tooltip: "Source", @@ -52968,7 +52993,7 @@ function P9t({ }); }); } -Gne.prototype.watchCollabolators = function(t) { +Xne.prototype.watchCollabolators = function(t) { this.awareness.on("change", ({ added: e, removed: r @@ -52999,11 +53024,11 @@ function N9t() { }; }, []), u0(() => { s(!1), o(!1), u(!1); - const d = new C1(), p = new Gne(t.collaboration.value.wsUrl, t.collaboration.value.room, d, { + const d = new C1(), p = new Xne(t.collaboration.value.wsUrl, t.collaboration.value.room, d, { connect: !0, params: {}, WebSocketPolyfill: WebSocket, - awareness: new Vne(d), + awareness: new qne(d), maxBackoffTime: 2500 }); return p.awareness.setLocalStateField("user", { @@ -53090,7 +53115,7 @@ const $9t = Ht.p` font-size: 16px; line-height: 22px; font-weight: 400; -`, JY = Ht.div` +`, eW = Ht.div` display: flex; align-items: center; @@ -53138,7 +53163,7 @@ const $9t = Ht.p` color: var(--red-500); font-weight: 700; } -`, eW = Ht.button` +`, tW = Ht.button` background-color: transparent; border: none; display: flex; @@ -53285,8 +53310,8 @@ const $9t = Ht.p` className: "resolved-comment", color: e.get(1).color, children: [Me(F9t, { - children: [Me(JY, { - children: [Me(rfe, { + children: [Me(eW, { + children: [Me(nfe, { login: e.get(1).name, color: e.get(1).color, avatarUrl: e.get(1).avatar, @@ -53294,19 +53319,19 @@ const $9t = Ht.p` }), Me(z9t, { children: e.get(1).name })] - }), Me(JY, { + }), Me(eW, { children: [Me(Q9t, { children: ["Comment resolved by @", t.resolvedBy.name, " ", Z9t.format(-i.amount, i.unit)] }), Me(Y9t, { className: "myst-dropdown-toggle", children: [Me(G9t, {}), Me(W9t, { - children: [Me(eW, { + children: [Me(tW, { className: "myst-restore-btn", onClick: () => r.restoreComment(t), children: [Me(H9t, {}), Me("p", { children: u })] - }), Me(eW, { + }), Me(tW, { className: "myst-delete-btn", onClick: () => r.resolver().delete(t.commentId), children: [Me(X9t, {}), Me("p", { @@ -53324,7 +53349,7 @@ const $9t = Ht.p` })] })] }); -}, K9t = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNSIgaGVpZ2h0PSIyMCIgdmlld0JveD0iMCAyIDIwIDEyIiBmaWxsPSJub25lIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik02LjM4NDk2IDUuMDkxNzRDNS45MDUwNyA1LjA5MTc0IDUuNTE0NjUgNS40ODIxNiA1LjUxNDY1IDUuOTYyMDVDNS41MTQ2NSA2LjE4OTc5IDUuNjA0MTIgNi40MTc1NCA1Ljc2Njc5IDYuNTgwMjFDNS45Mjk0NyA2Ljc0Mjg5IDYuMTQ5MDggNi44MzIzNiA2LjM4NDk2IDYuODMyMzZDNi42MjA4NCA2LjgzMjM2IDYuODQwNDUgNi43NDI4OSA3LjAwMzEzIDYuNTgwMjFDNy4xNjU4IDYuNDE3NTQgNy4yNTUyNyA2LjE5NzkzIDcuMjU1MjcgNS45NjIwNUM3LjI1NTI3IDUuNDgyMTYgNi44NjQ4NSA1LjA5MTc0IDYuMzg0OTYgNS4wOTE3NFoiIGZpbGw9IiMzMzJEMzciLz4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik04Ljk5NjI5IDUuMDkxNzRDOC41MTY0IDUuMDkxNzQgOC4xMjU5OCA1LjQ4MjE2IDguMTI1OTggNS45NjIwNUM4LjEyNTk4IDYuMTg5NzkgOC4yMTU0NSA2LjQxNzU0IDguMzc4MTIgNi41ODAyMUM4LjU0MDggNi43NDI4OSA4Ljc2MDQxIDYuODMyMzYgOC45OTYyOSA2LjgzMjM2QzkuMjMyMTcgNi44MzIzNiA5LjQ1MTc4IDYuNzQyODkgOS42MTQ0NSA2LjU4MDIxQzkuNzc3MTMgNi40MTc1NCA5Ljg2NjYgNi4xOTc5MyA5Ljg2NjYgNS45NjIwNUM5Ljg2NjYgNS40ODIxNiA5LjQ3NjE4IDUuMDkxNzQgOC45OTYyOSA1LjA5MTc0WiIgZmlsbD0iIzMzMkQzNyIvPgo8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTExLjYwNjYgNS4wOTE3NEMxMS4xMjY3IDUuMDkxNzQgMTAuNzM2MyA1LjQ4MjE2IDEwLjczNjMgNS45NjIwNUMxMC43MzYzIDYuMTg5NzkgMTAuODI1OCA2LjQxNzU0IDEwLjk4ODUgNi41ODAyMUMxMS4xNTExIDYuNzQyODkgMTEuMzcwOCA2LjgzMjM2IDExLjYwNjYgNi44MzIzNkMxMS44NDI1IDYuODMyMzYgMTIuMDYyMSA2Ljc0Mjg5IDEyLjIyNDggNi41ODAyMUMxMi4zODc1IDYuNDE3NTQgMTIuNDc3IDYuMTk3OTMgMTIuNDc3IDUuOTYyMDVDMTIuNDc3IDUuNDgyMTYgMTIuMDg2NSA1LjA5MTc0IDExLjYwNjYgNS4wOTE3NFoiIGZpbGw9IiMzMzJEMzciLz4KPHBhdGggZD0iTTE3LjEyOTggMTEuMDM3NVYwLjg2MjE4M0gwLjg2MjMwNVYxMC44NzQ4TDUuMTE2MjYgMTAuOTE1NUw5LjA1MyAxNC44NTIyTDEyLjg4NCAxMS4wMjk0TDE3LjEyOTggMTEuMDM3NVoiIHN0cm9rZT0iIzMzMkQzNyIgc3Ryb2tlLXdpZHRoPSIxLjUiLz4KPC9zdmc+", nfe = Ht.div` +}, K9t = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNSIgaGVpZ2h0PSIyMCIgdmlld0JveD0iMCAyIDIwIDEyIiBmaWxsPSJub25lIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik02LjM4NDk2IDUuMDkxNzRDNS45MDUwNyA1LjA5MTc0IDUuNTE0NjUgNS40ODIxNiA1LjUxNDY1IDUuOTYyMDVDNS41MTQ2NSA2LjE4OTc5IDUuNjA0MTIgNi40MTc1NCA1Ljc2Njc5IDYuNTgwMjFDNS45Mjk0NyA2Ljc0Mjg5IDYuMTQ5MDggNi44MzIzNiA2LjM4NDk2IDYuODMyMzZDNi42MjA4NCA2LjgzMjM2IDYuODQwNDUgNi43NDI4OSA3LjAwMzEzIDYuNTgwMjFDNy4xNjU4IDYuNDE3NTQgNy4yNTUyNyA2LjE5NzkzIDcuMjU1MjcgNS45NjIwNUM3LjI1NTI3IDUuNDgyMTYgNi44NjQ4NSA1LjA5MTc0IDYuMzg0OTYgNS4wOTE3NFoiIGZpbGw9IiMzMzJEMzciLz4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik04Ljk5NjI5IDUuMDkxNzRDOC41MTY0IDUuMDkxNzQgOC4xMjU5OCA1LjQ4MjE2IDguMTI1OTggNS45NjIwNUM4LjEyNTk4IDYuMTg5NzkgOC4yMTU0NSA2LjQxNzU0IDguMzc4MTIgNi41ODAyMUM4LjU0MDggNi43NDI4OSA4Ljc2MDQxIDYuODMyMzYgOC45OTYyOSA2LjgzMjM2QzkuMjMyMTcgNi44MzIzNiA5LjQ1MTc4IDYuNzQyODkgOS42MTQ0NSA2LjU4MDIxQzkuNzc3MTMgNi40MTc1NCA5Ljg2NjYgNi4xOTc5MyA5Ljg2NjYgNS45NjIwNUM5Ljg2NjYgNS40ODIxNiA5LjQ3NjE4IDUuMDkxNzQgOC45OTYyOSA1LjA5MTc0WiIgZmlsbD0iIzMzMkQzNyIvPgo8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTExLjYwNjYgNS4wOTE3NEMxMS4xMjY3IDUuMDkxNzQgMTAuNzM2MyA1LjQ4MjE2IDEwLjczNjMgNS45NjIwNUMxMC43MzYzIDYuMTg5NzkgMTAuODI1OCA2LjQxNzU0IDEwLjk4ODUgNi41ODAyMUMxMS4xNTExIDYuNzQyODkgMTEuMzcwOCA2LjgzMjM2IDExLjYwNjYgNi44MzIzNkMxMS44NDI1IDYuODMyMzYgMTIuMDYyMSA2Ljc0Mjg5IDEyLjIyNDggNi41ODAyMUMxMi4zODc1IDYuNDE3NTQgMTIuNDc3IDYuMTk3OTMgMTIuNDc3IDUuOTYyMDVDMTIuNDc3IDUuNDgyMTYgMTIuMDg2NSA1LjA5MTc0IDExLjYwNjYgNS4wOTE3NFoiIGZpbGw9IiMzMzJEMzciLz4KPHBhdGggZD0iTTE3LjEyOTggMTEuMDM3NVYwLjg2MjE4M0gwLjg2MjMwNVYxMC44NzQ4TDUuMTE2MjYgMTAuOTE1NUw5LjA1MyAxNC44NTIyTDEyLjg4NCAxMS4wMjk0TDE3LjEyOTggMTEuMDM3NVoiIHN0cm9rZT0iIzMzMkQzNyIgc3Ryb2tlLXdpZHRoPSIxLjUiLz4KPC9zdmc+", ife = Ht.div` background-color: white; padding: 20px 0; box-sizing: border-box; @@ -53371,7 +53396,7 @@ const $9t = Ht.p` margin: 0 5px; } `; -nfe.defaultProps = { +ife.defaultProps = { className: "myst-resolved" }; function mA(t, e) { @@ -53385,7 +53410,7 @@ const rLt = ({ }) => (s[a] = t.getTextForComment(a).toString(), s), {}), [e]), i = vi(() => e.map((s) => t.lineAuthors(s.commentId)), [e]); return ri(() => { r(t.resolver().resolved().sort(mA)), t.resolver().onUpdate((s) => r(s.sort(mA))); - }, [t]), Me(nfe, { + }, [t]), Me(ife, { children: [Me("h1", { children: "Resolved comments" }), Me(J9t, {}), Me(eLt, { @@ -53583,12 +53608,12 @@ const iLt = Ht.div` })] })] }); -}, ife = Ht.div` +}, sfe = Ht.div` background-color: white; position: absolute; z-index: 11; border-radius: var(--border-radius); -`, cLt = Ht(ife)` +`, cLt = Ht(sfe)` left: 50%; top: 80px; transform: translateX(-160px); @@ -53765,7 +53790,7 @@ ${i.value}`); display: block; } } -`, pLt = Ht(ife)` +`, pLt = Ht(sfe)` background-color: white; position: absolute; top: 10px; @@ -53809,7 +53834,7 @@ ${i.value}`); ...d }) => { var G; - const p = wi(e), g = wi(e[0]), m = wi([]), v = wi(), y = wi([]), b = wi(), w = wi(""), O = T0(() => v.value && b.value ? `${t}/${g.value}/${v.value.hash}/${b.value}` : ""), S = ss(Che({ + const p = wi(e), g = wi(e[0]), m = wi([]), v = wi(), y = wi([]), b = wi(), w = wi(""), O = T0(() => v.value && b.value ? `${t}/${g.value}/${v.value.hash}/${b.value}` : ""), S = ss(Ehe({ ...d })), C = wi(l), T = wi({ content: null, @@ -53966,7 +53991,7 @@ ${i.value}`); }), () => X.off("afterTransaction", q); }), Me("div", { style: "all: initial;", - children: Me(bK, { + children: Me(xK, { target: d.parent, children: Me(hLt, { children: [Me(fLt, { @@ -54056,7 +54081,7 @@ ${i.value}`); onClose: $ }), Me(mc.Provider, { value: S.current, - children: O.value && Me(afe, {}) + children: O.value && Me(ofe, {}) })] }) }) @@ -54106,7 +54131,7 @@ ${i.value}`); return ""; } }} -`, sfe = Ht.div` +`, afe = Ht.div` padding: 20px; display: flex; box-sizing: border-box; @@ -54116,10 +54141,10 @@ ${i.value}`); background-color: white; ${(t) => t.fullscreen && "box-sizing:border-box; height: calc(100vh - 60px);"} `; -sfe.defaultProps = { +afe.defaultProps = { className: "myst-editor-wrapper" }; -const tW = Ht.div` +const rW = Ht.div` height: 40px; position: sticky; z-index: 10; @@ -54146,7 +54171,7 @@ const tW = Ht.div` return Object.defineProperty(e, "name", { value: `scope-${t}` }), e; -}, yLt = (t) => document.documentElement.style.overflow = t ? "hidden" : "visible", afe = () => { +}, yLt = (t) => document.documentElement.style.overflow = t ? "hidden" : "visible", ofe = () => { const { editorView: t, cache: e, @@ -54181,7 +54206,7 @@ const tW = Ht.div` return ri(() => yLt(n), [n]), Me("div", { style: "all: initial", id: "myst-css-namespace", - children: Me(bK, { + children: Me(xK, { target: r.parent, stylisPlugins: [vLt("#myst-css-namespace")], children: Me(mLt, { @@ -54192,12 +54217,12 @@ const tW = Ht.div` users: u, text: a, buttons: O - }), v && Me(tW, { + }), v && Me(rW, { error: !0, children: [" ", typeof v == "string" ? v : "No connection to the collaboration server", " "] - }), r.collaboration.enabled && !m && !v && Me(tW, { + }), r.collaboration.enabled && !m && !v && Me(rW, { children: "Connecting to the collaboration server ..." - }), Me(sfe, { + }), Me(afe, { fullscreen: n, children: [Me(a4, { id: "editor-wrapper", @@ -54217,7 +54242,7 @@ const tW = Ht.div` }) }), Me(a4, { id: "preview-wrapper", - children: Me(Qhe, { + children: Me(Uhe, { ref: s, mode: r.mode.value, onClick: (S) => { @@ -54228,7 +54253,7 @@ const tW = Ht.div` }) }) }), r.mode.value === "Diff" && Me(a4, { - children: Me(efe, { + children: Me(tfe, { text: a }) }), r.collaboration.value.commentsEnabled && r.collaboration.value.resolvingCommentsEnabled && y && !v && Me(a4, { @@ -54264,13 +54289,13 @@ const tW = Ht.div` a.observe(n.parentElement, { childList: !0 }); - const o = Che({ + const o = Ehe({ id: i, ...r }); return window.myst_editor[i].state = o, jc(Me(mc.Provider, { value: o, - children: Me(afe, {}) + children: Me(ofe, {}) }), n.shadowRoot), o; }; (function() { @@ -54346,10 +54371,10 @@ var bLt = function(e, r) { function TLt(t) { return String(t).replace(SLt, (e) => kLt[e]); } -var ofe = function t(e) { +var lfe = 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; }, CLt = function(e) { - var r = ofe(e); + var r = lfe(e); return r.type === "mathord" || r.type === "textord" || r.type === "atom"; }, ELt = function(e) { if (!e) @@ -54363,7 +54388,7 @@ var ofe = function t(e) { deflt: xLt, escape: TLt, hyphenate: OLt, - getBaseElem: ofe, + getBaseElem: lfe, isCharacterBox: CLt, protocolFromUrl: _Lt }, $k = { @@ -54579,7 +54604,7 @@ function ILt(t) { } var Bk = []; DL.forEach((t) => t.blocks.forEach((e) => Bk.push(...e))); -function lfe(t) { +function cfe(t) { for (var e = 0; e < Bk.length; e += 2) if (t >= Bk[e] && t <= Bk[e + 1]) return !0; @@ -54698,7 +54723,7 @@ c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667 default: return ""; } -}, rW = { +}, nW = { 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 @@ -57115,7 +57140,7 @@ var Wc = { arrayRuleWidth: [0.04, 0.04, 0.04], fboxsep: [0.3, 0.3, 0.3], fboxrule: [0.04, 0.04, 0.04] -}, nW = { +}, iW = { \u00C5: "A", \u00D0: "D", \u00DE: "o", @@ -57194,7 +57219,7 @@ function zN(t, e, r) { if (!Wc[e]) throw new Error("Font metrics not found for font: " + e + "."); var n = t.charCodeAt(0), i = Wc[e][n]; - if (!i && t[0] in nW && (n = nW[t[0]].charCodeAt(0), i = Wc[e][n]), !i && r === "text" && lfe(n) && (i = Wc[e][77]), i) + if (!i && t[0] in iW && (n = iW[t[0]].charCodeAt(0), i = Wc[e][n]), !i && r === "text" && cfe(n) && (i = Wc[e][77]), i) return { depth: i[0], height: i[1], @@ -57227,7 +57252,7 @@ var HLt = [ [9, 7, 6], [10, 8, 7], [11, 10, 9] -], iW = [ +], sW = [ 0.5, 0.6, 0.7, @@ -57239,12 +57264,12 @@ var HLt = [ 1.728, 2.074, 2.488 -], sW = function(e, r) { +], aW = function(e, r) { return r.size < 2 ? e : HLt[e - 1][r.size - 1]; }; class Qu { 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 || Qu.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 = iW[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 || Qu.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 = sW[this.size - 1], this.maxSize = e.maxSize, this.minRuleThickness = e.minRuleThickness, this._fontMetrics = void 0; } extend(e) { var r = { @@ -57267,7 +57292,7 @@ class Qu { havingStyle(e) { return this.style === e ? this : this.extend({ style: e, - size: sW(this.textSize, e) + size: aW(this.textSize, e) }); } havingCrampedStyle() { @@ -57278,12 +57303,12 @@ class Qu { style: this.style.text(), size: e, textSize: e, - sizeMultiplier: iW[e - 1] + sizeMultiplier: sW[e - 1] }); } havingBaseStyle(e) { e = e || this.style.text(); - var r = sW(Qu.BASESIZE, e); + var r = aW(Qu.BASESIZE, e); return this.size === r && this.textSize === Qu.BASESIZE && this.style === e ? this : this.extend({ style: e, size: r @@ -57372,7 +57397,7 @@ var PL = { ex: !0, em: !0, mu: !0 -}, cfe = function(e) { +}, ufe = function(e) { return typeof e != "string" && (e = e.unit), e in PL || e in ZLt || e === "ex"; }, qn = function(e, r) { var n; @@ -57395,13 +57420,13 @@ var PL = { return +e.toFixed(4) + "em"; }, Kf = function(e) { return e.filter((r) => r).join(" "); -}, ufe = function(e, r, n) { +}, hfe = 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); } -}, hfe = function(e) { +}, ffe = function(e) { var r = document.createElement(e); r.className = Kf(this.classes); for (var n in this.style) @@ -57411,7 +57436,7 @@ var PL = { for (var s = 0; s < this.children.length; s++) r.appendChild(this.children[s].toNode()); return r; -}, ffe = function(e) { +}, dfe = function(e) { var r = "<" + e; this.classes.length && (r += ' class="' + nr.escape(Kf(this.classes)) + '"'); var n = ""; @@ -57427,7 +57452,7 @@ var PL = { }; class vw { 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, ufe.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, hfe.call(this, e, n, i), this.children = r || []; } setAttribute(e, r) { this.attributes[e] = r; @@ -57436,15 +57461,15 @@ class vw { return nr.contains(this.classes, e); } toNode() { - return hfe.call(this, "span"); + return ffe.call(this, "span"); } toMarkup() { - return ffe.call(this, "span"); + return dfe.call(this, "span"); } } class QN { 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, ufe.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, hfe.call(this, r, i), this.children = n || [], this.setAttribute("href", e); } setAttribute(e, r) { this.attributes[e] = r; @@ -57453,10 +57478,10 @@ class QN { return nr.contains(this.classes, e); } toNode() { - return hfe.call(this, "a"); + return ffe.call(this, "a"); } toMarkup() { - return ffe.call(this, "a"); + return dfe.call(this, "a"); } } class jLt { @@ -57542,10 +57567,10 @@ class Jf { } 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", rW[this.pathName]), r; + return this.alternate ? r.setAttribute("d", this.alternate) : r.setAttribute("d", nW[this.pathName]), r; } toMarkup() { - return this.alternate ? '' : ''; + return this.alternate ? '' : ''; } } class NL { @@ -57565,7 +57590,7 @@ class NL { return e += "/>", e; } } -function aW(t) { +function oW(t) { if (t instanceof bl) return t; throw new Error("Expected symbolNode but got " + String(t) + "."); @@ -58170,7 +58195,7 @@ z(pt, re, zn, "\u02C7", "\\v"); z(pt, re, zn, "\xA8", '\\"'); z(pt, re, zn, "\u02DD", "\\H"); z(pt, re, zn, "\u25EF", "\\textcircled"); -var dfe = { +var pfe = { "--": !0, "---": !0, "``": !0, @@ -58197,15 +58222,15 @@ z(pt, re, Be, "\xA3", "\\pounds"); z(pt, re, Be, "\xA3", "\\textsterling", !0); z(V, xe, Be, "\u2720", "\\maltese"); z(pt, xe, Be, "\u2720", "\\maltese"); -var oW = '0123456789/@."'; -for (var bA = 0; bA < oW.length; bA++) { - var lW = oW.charAt(bA); - z(V, re, Be, lW, lW); +var lW = '0123456789/@."'; +for (var bA = 0; bA < lW.length; bA++) { + var cW = lW.charAt(bA); + z(V, re, Be, cW, cW); } -var cW = '0123456789!@*()-=+";:?/.,'; -for (var xA = 0; xA < cW.length; xA++) { - var uW = cW.charAt(xA); - z(pt, re, Be, uW, uW); +var uW = '0123456789!@*()-=+";:?/.,'; +for (var xA = 0; xA < uW.length; xA++) { + var hW = uW.charAt(xA); + z(pt, re, Be, hW, hW); } var sS = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"; for (var wA = 0; wA < sS.length; wA++) { @@ -58272,7 +58297,7 @@ var u4 = [ ["", "", ""], ["mathtt", "texttt", "Typewriter-Regular"], ["mathtt", "texttt", "Typewriter-Regular"] -], hW = [ +], fW = [ ["mathbf", "textbf", "Main-Bold"], ["", "", ""], ["mathsf", "textsf", "SansSerif-Regular"], @@ -58285,7 +58310,7 @@ var u4 = [ return [u4[o][2], u4[o][a]]; } else if (120782 <= s && s <= 120831) { var l = Math.floor((s - 120782) / 10); - return [hW[l][2], hW[l][a]]; + return [fW[l][2], fW[l][a]]; } else { if (s === 120485 || s === 120486) return [u4[0][2], u4[0][a]]; @@ -58333,13 +58358,13 @@ var u4 = [ var p = iRt(s, i, r, a, n); f = p.fontName, d = [p.fontClass]; } else - o ? (f = mfe[l].fontName, d = [l]) : (f = h4(l, r.fontWeight, r.fontShape), d = [l, r.fontWeight, r.fontShape]); + o ? (f = vfe[l].fontName, d = [l]) : (f = h4(l, r.fontWeight, r.fontShape), d = [l, r.fontWeight, r.fontShape]); if (HC(s, f, i).metrics) return Pl(s, f, i, r, a.concat(d)); - if (dfe.hasOwnProperty(s) && f.slice(0, 10) === "Typewriter") { + if (pfe.hasOwnProperty(s) && f.slice(0, 10) === "Typewriter") { for (var g = [], m = 0; m < s.length; m++) g.push(Pl(s[m], f, i, r, a.concat(d))); - return gfe(g); + return mfe(g); } } if (n === "mathord") @@ -58388,13 +58413,13 @@ var u4 = [ }, Ua = function(e, r, n, i) { var s = new vw(e, r, n, i); return UN(s), s; -}, pfe = (t, e, r, n) => new vw(t, e, r, n), lRt = function(e, r, n) { +}, gfe = (t, e, r, n) => new vw(t, e, r, n), lRt = function(e, r, n) { var i = Ua([e], [], r); return i.height = Math.max(n || r.fontMetrics().defaultRuleThickness, r.minRuleThickness), i.style.borderBottomWidth = Ct(i.height), i.maxFontSize = 1, i; }, cRt = function(e, r, n, i) { var s = new QN(e, r, n, i); return UN(s), s; -}, gfe = function(e) { +}, mfe = function(e) { var r = new mw(e); return UN(r), r; }, uRt = function(e, r) { @@ -58496,7 +58521,7 @@ var u4 = [ } var s; return r === "textbf" && n === "textit" ? s = "BoldItalic" : r === "textbf" ? s = "Bold" : r === "textit" ? s = "Italic" : s = "Regular", i + "-" + s; -}, mfe = { +}, vfe = { mathbf: { variant: "bold", fontName: "Main-Bold" @@ -58541,36 +58566,36 @@ var u4 = [ variant: "monospace", fontName: "Typewriter-Regular" } -}, vfe = { +}, yfe = { 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] }, pRt = function(e, r) { - var [n, i, s] = vfe[e], a = new Jf(n), o = new bh([a], { + var [n, i, s] = yfe[e], a = new Jf(n), o = new bh([a], { width: Ct(i), height: Ct(s), style: "width:" + Ct(i), viewBox: "0 0 " + 1e3 * i + " " + 1e3 * s, preserveAspectRatio: "xMinYMin" - }), l = pfe(["overlay"], [o], r); + }), l = gfe(["overlay"], [o], r); return l.height = s, l.style.height = Ct(s), l.style.width = Ct(i), l; }, Ye = { - fontMap: mfe, + fontMap: vfe, makeSymbol: Pl, mathsym: nRt, makeSpan: Ua, - makeSvgSpan: pfe, + makeSvgSpan: gfe, makeLineSpan: lRt, makeAnchor: cRt, - makeFragment: gfe, + makeFragment: mfe, wrapFragment: uRt, makeVList: fRt, makeOrd: sRt, makeGlue: dRt, staticSvg: pRt, - svgData: vfe, + svgData: yfe, tryCombineChars: oRt }, Un = { number: 3, @@ -58649,7 +58674,7 @@ var u4 = [ minner: { mop: Un } -}, yfe = {}, aS = {}, oS = {}; +}, bfe = {}, aS = {}, oS = {}; function Nt(t) { for (var { type: e, @@ -58670,7 +58695,7 @@ function Nt(t) { primitive: !!n.primitive, handler: i }, l = 0; l < r.length; ++l) - yfe[r[l]] = o; + bfe[r[l]] = o; e && (s && (aS[e] = s), a && (oS[e] = a)); } function Mp(t) { @@ -58728,22 +58753,22 @@ var lS = function(e) { h.type === "sizing" ? u = r.havingSize(h.size) : h.type === "styling" && (u = r.havingStyle(bRt[h.style])); } var f = xh([i[0] || "leftmost"], [], r), d = xh([i[1] || "rightmost"], [], r), p = n === "root"; - return fW(s, (g, m) => { + return dW(s, (g, m) => { var v = m.classes[0], y = g.classes[0]; v === "mbin" && nr.contains(yRt, y) ? m.classes[0] = "mord" : y === "mbin" && nr.contains(vRt, v) && (g.classes[0] = "mord"); }, { node: f - }, d, p), fW(s, (g, m) => { + }, d, p), dW(s, (g, m) => { var v = $L(m), y = $L(g), b = v && y ? g.hasClass("mtight") ? mRt[v][y] : gRt[v][y] : null; if (b) return Ye.makeGlue(b, u); }, { node: f }, d, p), s; -}, fW = function t(e, r, n, i, s) { +}, dW = function t(e, r, n, i, s) { i && e.push(i); for (var a = 0; a < e.length; a++) { - var o = e[a], l = bfe(o); + var o = e[a], l = xfe(o); if (l) { t(l.children, r, n, null, s); continue; @@ -58758,10 +58783,10 @@ var lS = function(e) { })(a); } i && e.pop(); -}, bfe = function(e) { +}, xfe = function(e) { return e instanceof mw || e instanceof QN || e instanceof vw && e.hasClass("enclosing") ? e : null; }, wRt = function t(e, r) { - var n = bfe(e); + var n = xfe(e); if (n) { var i = n.children; if (i.length) { @@ -58817,7 +58842,7 @@ function BL(t, e) { } return h; } -function xfe(t) { +function wfe(t) { return new mw(t); } class Ko { @@ -58887,9 +58912,9 @@ var vt = { MathNode: Ko, TextNode: e2, SpaceNode: ORt, - newDocumentFragment: xfe + newDocumentFragment: wfe }, xl = function(e, r, n) { - return Tn[r][e] && Tn[r][e].replace && e.charCodeAt(0) !== 55349 && !(dfe.hasOwnProperty(e) && n && (n.fontFamily && n.fontFamily.slice(4, 6) === "tt" || n.font && n.font.slice(4, 6) === "tt")) && (e = Tn[r][e].replace), new vt.TextNode(e); + return Tn[r][e] && Tn[r][e].replace && e.charCodeAt(0) !== 55349 && !(pfe.hasOwnProperty(e) && n && (n.fontFamily && n.fontFamily.slice(4, 6) === "tt" || n.font && n.font.slice(4, 6) === "tt")) && (e = Tn[r][e].replace), new vt.TextNode(e); }, VN = function(e) { return e.length === 1 ? e[0] : new vt.MathNode("mrow", e); }, qN = function(e, r) { @@ -58971,7 +58996,7 @@ var vt = { } else throw new Ot("Got group of unknown type: '" + e.type + "'"); }; -function dW(t, e, r, n, i) { +function pW(t, e, r, n, i) { var s = ho(t, r), a; s.length === 1 && s[0] instanceof Ko && nr.contains(["mrow", "mtable"], s[0].type) ? a = s[0] : a = new vt.MathNode("mrow", s); var o = new vt.MathNode("annotation", [new vt.TextNode(e)]); @@ -58981,33 +59006,33 @@ function dW(t, e, r, n, i) { var h = i ? "katex" : "katex-mathml"; return Ye.makeSpan([h], [u]); } -var wfe = function(e) { +var Ofe = function(e) { return new Qu({ style: e.displayMode ? ar.DISPLAY : ar.TEXT, maxSize: e.maxSize, minRuleThickness: e.minRuleThickness }); -}, Ofe = function(e, r) { +}, kfe = function(e, r) { if (r.displayMode) { var n = ["katex-display"]; r.leqno && n.push("leqno"), r.fleqn && n.push("fleqn"), e = Ye.makeSpan(n, [e]); } return e; }, kRt = function(e, r, n) { - var i = wfe(n), s; + var i = Ofe(n), s; if (n.output === "mathml") - return dW(e, r, i, n.displayMode, !0); + return pW(e, r, i, n.displayMode, !0); if (n.output === "html") { var a = BL(e, i); s = Ye.makeSpan(["katex"], [a]); } else { - var o = dW(e, r, i, n.displayMode, !1), l = BL(e, i); + var o = pW(e, r, i, n.displayMode, !1), l = BL(e, i); s = Ye.makeSpan(["katex"], [o, l]); } - return Ofe(s, n); + return kfe(s, n); }, SRt = function(e, r, n) { - var i = wfe(n), s = BL(e, i), a = Ye.makeSpan(["katex"], [s]); - return Ofe(a, n); + var i = Ofe(n), s = BL(e, i), a = Ye.makeSpan(["katex"], [s]); + return kfe(a, n); }, TRt = { widehat: "^", widecheck: "\u02C7", @@ -59213,7 +59238,7 @@ var WN = (t, e) => { var s = Qr(r, e.havingCrampedStyle()), a = n.isShifty && nr.isCharacterBox(r), o = 0; if (a) { var l = nr.getBaseElem(r), u = Qr(l, e.havingCrampedStyle()); - o = aW(u).skew; + o = oW(u).skew; } var h = n.label === "\\c", f = h ? s.height + s.depth : Math.min(s.height, e.fontMetrics().xHeight), d; if (n.isStretchy) @@ -59237,7 +59262,7 @@ var WN = (t, e) => { n.label === "\\vec" ? (p = Ye.staticSvg("vec", e), g = Ye.svgData.vec[1]) : (p = Ye.makeOrd({ mode: n.mode, text: n.label - }, e, "textord"), p = aW(p), p.italic = 0, g = p.width, h && (f += p.depth)), d = Ye.makeSpan(["accent-body"], [p]); + }, e, "textord"), p = oW(p), p.italic = 0, g = p.width, h && (f += p.depth)), d = Ye.makeSpan(["accent-body"], [p]); var m = n.label === "\\textcircled"; m && (d.classes.push("accent-full"), f = s.height); var v = o; @@ -59257,7 +59282,7 @@ var WN = (t, e) => { } var y = Ye.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; -}, kfe = (t, e) => { +}, Sfe = (t, e) => { var r = t.isStretchy ? wh.mathMLnode(t.label) : new vt.MathNode("mo", [xl(t.label, t.mode)]), n = new vt.MathNode("mover", [yn(t.base, e), r]); return n.setAttribute("accent", "true"), n; }, RRt = new RegExp(["\\acute", "\\grave", "\\ddot", "\\tilde", "\\bar", "\\breve", "\\check", "\\hat", "\\vec", "\\dot", "\\mathring"].map((t) => "\\" + t).join("|")); @@ -59279,7 +59304,7 @@ Nt({ }; }, htmlBuilder: WN, - mathmlBuilder: kfe + mathmlBuilder: Sfe }); Nt({ type: "accent", @@ -59302,7 +59327,7 @@ Nt({ }; }, htmlBuilder: WN, - mathmlBuilder: kfe + mathmlBuilder: Sfe }); Nt({ type: "accentUnder", @@ -59456,11 +59481,11 @@ Nt({ } }); var MRt = Ye.makeSpan; -function Sfe(t, e) { +function Tfe(t, e) { var r = Xi(t.body, e, !0); return MRt([t.mclass], r, e); } -function Tfe(t, e) { +function Cfe(t, e) { var r, n = ho(t.body, e); return t.mclass === "minner" ? r = new vt.MathNode("mpadded", n) : t.mclass === "mord" ? t.isCharacterBox ? (r = n[0], r.type = "mi") : r = new vt.MathNode("mi", n) : (t.isCharacterBox ? (r = n[0], r.type = "mo") : r = new vt.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; } @@ -59484,8 +59509,8 @@ Nt({ isCharacterBox: nr.isCharacterBox(i) }; }, - htmlBuilder: Sfe, - mathmlBuilder: Tfe + htmlBuilder: Tfe, + mathmlBuilder: Cfe }); var jC = (t) => { var e = t.type === "ordgroup" && t.body.length ? t.body[0] : t; @@ -59546,8 +59571,8 @@ Nt({ isCharacterBox: nr.isCharacterBox(l) }; }, - htmlBuilder: Sfe, - mathmlBuilder: Tfe + htmlBuilder: Tfe, + mathmlBuilder: Cfe }); Nt({ type: "pmb", @@ -59584,12 +59609,12 @@ var DRt = { V: "\\downarrow", "|": "\\Vert", ".": "no arrow" -}, pW = () => ({ +}, gW = () => ({ type: "styling", body: [], mode: "math", style: "display" -}), gW = (t) => t.type === "textord" && t.text === "@", PRt = (t, e) => (t.type === "mathord" || t.type === "atom") && t.text === e; +}), mW = (t) => t.type === "textord" && t.text === "@", PRt = (t, e) => (t.type === "mathord" || t.type === "atom") && t.text === e; function NRt(t, e, r) { var n = DRt[t]; switch (n) { @@ -59642,8 +59667,8 @@ function IRt(t) { throw new Ot("Expected \\\\ or \\cr or \\end", t.nextToken); } for (var n = [], i = [n], s = 0; s < e.length; s++) { - for (var a = e[s], o = pW(), l = 0; l < a.length; l++) - if (!gW(a[l])) + for (var a = e[s], o = gW(), l = 0; l < a.length; l++) + if (!mW(a[l])) o.body.push(a[l]); else { n.push(o), l += 1; @@ -59664,7 +59689,7 @@ function IRt(t) { d = !1, l = p; break; } - if (gW(a[p])) + if (mW(a[p])) throw new Ot("Missing a " + u + " character to complete a CD arrow.", a[p]); h[f].body.push(a[p]); } @@ -59679,7 +59704,7 @@ function IRt(t) { mode: "math", style: "display" }; - n.push(m), o = pW(); + n.push(m), o = gW(); } s % 2 === 0 ? n.push(o) : n.shift(), n = [], i.push(n); } @@ -59779,10 +59804,10 @@ Nt({ }; } }); -var Cfe = (t, e) => { +var Efe = (t, e) => { var r = Xi(t.body, e.withColor(t.color), !1); return Ye.makeFragment(r); -}, Efe = (t, e) => { +}, _fe = (t, e) => { var r = ho(t.body, e.withColor(t.color)), n = new vt.MathNode("mstyle", r); return n.setAttribute("mathcolor", t.color), n; }; @@ -59805,8 +59830,8 @@ Nt({ body: mi(i) }; }, - htmlBuilder: Cfe, - mathmlBuilder: Efe + htmlBuilder: Efe, + mathmlBuilder: _fe }); Nt({ type: "color", @@ -59830,8 +59855,8 @@ Nt({ body: s }; }, - htmlBuilder: Cfe, - mathmlBuilder: Efe + htmlBuilder: Efe, + mathmlBuilder: _fe }); Nt({ type: "cr", @@ -59871,7 +59896,7 @@ var FL = { "\\xdef": "\\xdef", "\\let": "\\\\globallet", "\\futurelet": "\\\\globalfuture" -}, _fe = (t) => { +}, Afe = (t) => { var e = t.text; if (/^(?:[\\{}$&#^_]|EOF)$/.test(e)) throw new Ot("Expected a control sequence", t); @@ -59879,7 +59904,7 @@ var FL = { }, $Rt = (t) => { var e = t.gullet.popToken(); return e.text === "=" && (e = t.gullet.popToken(), e.text === " " && (e = t.gullet.popToken())), e; -}, Afe = (t, e, r, n) => { +}, Lfe = (t, e, r, n) => { var i = t.gullet.macros.get(r.text); i == null && (r.noexpand = !0, i = { tokens: [r], @@ -59969,10 +59994,10 @@ Nt({ var { parser: e, funcName: r - } = t, n = _fe(e.gullet.popToken()); + } = t, n = Afe(e.gullet.popToken()); e.gullet.consumeSpaces(); var i = $Rt(e); - return Afe(e, n, i, r === "\\\\globallet"), { + return Lfe(e, n, i, r === "\\\\globallet"), { type: "internal", mode: e.mode }; @@ -59993,8 +60018,8 @@ Nt({ var { parser: e, funcName: r - } = t, n = _fe(e.gullet.popToken()), i = e.gullet.popToken(), s = e.gullet.popToken(); - return Afe(e, n, s, r === "\\\\globalfuture"), e.gullet.pushToken(s), e.gullet.pushToken(i), { + } = t, n = Afe(e.gullet.popToken()), i = e.gullet.popToken(), s = e.gullet.popToken(); + return Lfe(e, n, s, r === "\\\\globalfuture"), e.gullet.pushToken(s), e.gullet.pushToken(i), { type: "internal", mode: e.mode }; @@ -60008,17 +60033,17 @@ var py = function(e, r, n) { }, GN = function(e, r, n, i) { var s = n.havingBaseStyle(r), a = Ye.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; -}, Lfe = function(e, r, n) { +}, Rfe = 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 = Ct(s), e.height -= s, e.depth += s; }, BRt = function(e, r, n, i, s, a) { var o = Ye.makeSymbol(e, "Main-Regular", s, i), l = GN(o, r, i, a); - return n && Lfe(l, i, r), l; + return n && Rfe(l, i, r), l; }, FRt = function(e, r, n, i) { return Ye.makeSymbol(e, "Size" + r + "-Regular", n, i); -}, Rfe = function(e, r, n, i, s, a) { +}, Mfe = function(e, r, n, i, s, a) { var o = FRt(e, r, s, i), l = GN(Ye.makeSpan(["delimsizing", "size" + r], [o], i), ar.TEXT, i, a); - return n && Lfe(l, i, ar.TEXT), l; + return n && Rfe(l, i, ar.TEXT), l; }, kA = function(e, r, n) { var i; r === "Size1-Regular" ? i = "delim-size1" : i = "delim-size4"; @@ -60042,7 +60067,7 @@ var py = function(e, r, n) { }, zL = 8e-3, p4 = { type: "kern", size: -1 * zL -}, zRt = ["|", "\\lvert", "\\rvert", "\\vert"], QRt = ["\\|", "\\lVert", "\\rVert", "\\Vert"], Mfe = function(e, r, n, i, s, a) { +}, zRt = ["|", "\\lvert", "\\rvert", "\\vert"], QRt = ["\\|", "\\lVert", "\\rVert", "\\Vert"], Dfe = 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"; @@ -60090,17 +60115,17 @@ var py = function(e, r, n) { }); return Ye.makeSvgSpan(["hide-tail"], [l], s); }, URt = function(e, r) { - var n = r.havingBaseSizing(), i = Ife("\\surd", e * n.sizeMultiplier, Nfe, n), s = n.sizeMultiplier, a = Math.max(0, r.minRuleThickness - r.fontMetrics().sqrtRuleThickness), o, l = 0, u = 0, h = 0, f; + var n = r.havingBaseSizing(), i = $fe("\\surd", e * n.sizeMultiplier, Ife, 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 + TA, e < 1 ? s = 1 : e < 1.4 && (s = 0.7), l = (1 + a + CA) / s, u = (1 + a) / s, o = EA("sqrtMain", l, h, a, r), o.style.minWidth = "0.853em", f = 0.833 / s) : i.type === "large" ? (h = (1e3 + TA) * t2[i.size], u = (t2[i.size] + a) / s, l = (t2[i.size] + a + CA) / s, o = EA("sqrtSize" + i.size, l, h, a, r), o.style.minWidth = "1.02em", f = 1 / s) : (l = e + a + CA, u = e + a, h = Math.floor(1e3 * e + a) + TA, o = EA("sqrtTall", l, h, a, r), o.style.minWidth = "0.742em", f = 1.056), o.height = u, o.style.height = Ct(l), { span: o, advanceWidth: f, ruleWidth: (r.fontMetrics().sqrtRuleThickness + a) * s }; -}, Dfe = ["(", "\\lparen", ")", "\\rparen", "[", "\\lbrack", "]", "\\rbrack", "\\{", "\\lbrace", "\\}", "\\rbrace", "\\lfloor", "\\rfloor", "\u230A", "\u230B", "\\lceil", "\\rceil", "\u2308", "\u2309", "\\surd"], VRt = ["\\uparrow", "\\downarrow", "\\updownarrow", "\\Uparrow", "\\Downarrow", "\\Updownarrow", "|", "\\|", "\\vert", "\\Vert", "\\lvert", "\\rvert", "\\lVert", "\\rVert", "\\lgroup", "\\rgroup", "\u27EE", "\u27EF", "\\lmoustache", "\\rmoustache", "\u23B0", "\u23B1"], Pfe = ["<", ">", "\\langle", "\\rangle", "/", "\\backslash", "\\lt", "\\gt"], t2 = [0, 1.2, 1.8, 2.4, 3], qRt = function(e, r, n, i, s) { - if (e === "<" || e === "\\lt" || e === "\u27E8" ? e = "\\langle" : (e === ">" || e === "\\gt" || e === "\u27E9") && (e = "\\rangle"), nr.contains(Dfe, e) || nr.contains(Pfe, e)) - return Rfe(e, r, !1, n, i, s); +}, Pfe = ["(", "\\lparen", ")", "\\rparen", "[", "\\lbrack", "]", "\\rbrack", "\\{", "\\lbrace", "\\}", "\\rbrace", "\\lfloor", "\\rfloor", "\u230A", "\u230B", "\\lceil", "\\rceil", "\u2308", "\u2309", "\\surd"], VRt = ["\\uparrow", "\\downarrow", "\\updownarrow", "\\Uparrow", "\\Downarrow", "\\Updownarrow", "|", "\\|", "\\vert", "\\Vert", "\\lvert", "\\rvert", "\\lVert", "\\rVert", "\\lgroup", "\\rgroup", "\u27EE", "\u27EF", "\\lmoustache", "\\rmoustache", "\u23B0", "\u23B1"], Nfe = ["<", ">", "\\langle", "\\rangle", "/", "\\backslash", "\\lt", "\\gt"], t2 = [0, 1.2, 1.8, 2.4, 3], qRt = function(e, r, n, i, s) { + if (e === "<" || e === "\\lt" || e === "\u27E8" ? e = "\\langle" : (e === ">" || e === "\\gt" || e === "\u27E9") && (e = "\\rangle"), nr.contains(Pfe, e) || nr.contains(Nfe, e)) + return Mfe(e, r, !1, n, i, s); if (nr.contains(VRt, e)) - return Mfe(e, t2[r], !1, n, i, s); + return Dfe(e, t2[r], !1, n, i, s); throw new Ot("Illegal delimiter: '" + e + "'"); }, YRt = [{ type: "small", @@ -60134,7 +60159,7 @@ var py = function(e, r, n) { style: ar.TEXT }, { type: "stack" -}], Nfe = [{ +}], Ife = [{ type: "small", style: ar.SCRIPTSCRIPT }, { @@ -60165,7 +60190,7 @@ var py = function(e, r, n) { if (e.type === "stack") return "Size4-Regular"; throw new Error("Add support for delim type '" + e.type + "' here."); -}, Ife = function(e, r, n, i) { +}, $fe = 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 = py(e, GRt(n[a]), "math"), l = o.height + o.depth; if (n[a].type === "small") { @@ -60176,25 +60201,25 @@ var py = function(e, r, n) { return n[a]; } return n[n.length - 1]; -}, $fe = function(e, r, n, i, s, a) { +}, Bfe = function(e, r, n, i, s, a) { e === "<" || e === "\\lt" || e === "\u27E8" ? e = "\\langle" : (e === ">" || e === "\\gt" || e === "\u27E9") && (e = "\\rangle"); var o; - nr.contains(Pfe, e) ? o = YRt : nr.contains(Dfe, e) ? o = Nfe : o = WRt; - var l = Ife(e, r, o, i); - return l.type === "small" ? BRt(e, l.style, n, i, s, a) : l.type === "large" ? Rfe(e, l.size, n, i, s, a) : Mfe(e, r, n, i, s, a); + nr.contains(Nfe, e) ? o = YRt : nr.contains(Pfe, e) ? o = Ife : o = WRt; + var l = $fe(e, r, o, i); + return l.type === "small" ? BRt(e, l.style, n, i, s, a) : l.type === "large" ? Mfe(e, l.size, n, i, s, a) : Dfe(e, r, n, i, s, a); }, XRt = 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 $fe(e, f, !0, i, s, a); + return Bfe(e, f, !0, i, s, a); }, sh = { sqrtImage: URt, sizedDelim: qRt, sizeToMaxHeight: t2, - customSizedDelim: $fe, + customSizedDelim: Bfe, leftRightDelim: XRt -}, mW = { +}, vW = { "\\bigl": { mclass: "mopen", size: 1 @@ -60278,8 +60303,8 @@ Nt({ return { type: "delimsizing", mode: t.parser.mode, - size: mW[t.funcName].size, - mclass: mW[t.funcName].mclass, + size: vW[t.funcName].size, + mclass: vW[t.funcName].mclass, delim: r.text }; }, @@ -60293,7 +60318,7 @@ Nt({ return r.setAttribute("minsize", n), r.setAttribute("maxsize", n), r; } }); -function vW(t) { +function yW(t) { if (!t.body) throw new Error("Bug: The leftright ParseNode wasn't fully parsed."); } @@ -60339,7 +60364,7 @@ Nt({ }; }, htmlBuilder: (t, e) => { - vW(t); + yW(t); for (var r = Xi(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; @@ -60359,7 +60384,7 @@ Nt({ return r.push(f), Ye.makeSpan(["minner"], r, e); }, mathmlBuilder: (t, e) => { - vW(t); + yW(t); var r = ho(t.body, e); if (t.left !== ".") { var n = new vt.MathNode("mo", [xl(t.left, t.mode)]); @@ -60622,7 +60647,7 @@ Nt({ }; } }); -var Bfe = {}; +var Ffe = {}; function Tu(t) { for (var { type: e, @@ -60638,14 +60663,14 @@ function Tu(t) { numOptionalArgs: 0, handler: i }, l = 0; l < r.length; ++l) - Bfe[r[l]] = o; + Ffe[r[l]] = o; s && (aS[e] = s), a && (oS[e] = a); } -var Ffe = {}; +var zfe = {}; function ue(t, e) { - Ffe[t] = e; + zfe[t] = e; } -function yW(t) { +function bW(t) { var e = []; t.consumeSpaces(); var r = t.fetch().text; @@ -60690,7 +60715,7 @@ function bd(t, e, r) { function O() { b && (t.gullet.macros.get("\\df@tag") ? (b.push(t.subparse([new ll("\\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(yW(t)); ; ) { + for (w(), y.push(bW(t)); ; ) { var S = t.parseExpression(!1, u ? "\\end" : "\\\\"); t.gullet.endGroup(), t.gullet.beginGroup(), S = { type: "ordgroup", @@ -60716,7 +60741,7 @@ function bd(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(yW(t)), g = [], m.push(g), w(); + t.gullet.future().text !== " " && (T = t.parseSizeGroup(!0)), v.push(T ? T.value : null), O(), y.push(bW(t)), g = [], m.push(g), w(); } else throw new Ot("Expected & or \\\\ or \\cr or \\end", t.nextToken); } @@ -60871,7 +60896,7 @@ var Cu = function(e, r) { for (var E = 1; E < A.length - 1; E++) T += A[E].length === 0 ? "none " : A[E][0] ? "dashed " : "solid "; return /[sd]/.test(T) && h.setAttribute("rowlines", T.trim()), d !== "" && (h = new vt.MathNode("menclose", [h]), h.setAttribute("notation", d.trim())), e.arraystretch && e.arraystretch < 1 && (h = new vt.MathNode("mstyle", [h]), h.setAttribute("scriptlevel", "1")), h; -}, zfe = function(e, r) { +}, Qfe = function(e, r) { e.envName.indexOf("ed") === -1 && JC(e); var n = [], i = e.envName.indexOf("at") > -1 ? "alignat" : "align", s = e.envName === "split", a = bd(e.parser, { cols: n, @@ -61085,7 +61110,7 @@ Tu({ props: { numArgs: 0 }, - handler: zfe, + handler: Qfe, htmlBuilder: Cu, mathmlBuilder: Eu }); @@ -61119,7 +61144,7 @@ Tu({ props: { numArgs: 1 }, - handler: zfe, + handler: Qfe, htmlBuilder: Cu, mathmlBuilder: Eu }); @@ -61169,7 +61194,7 @@ Nt({ throw new Ot(t.funcName + " valid only within array environment"); } }); -var bW = Bfe; +var xW = Ffe; Nt({ type: "environment", names: ["\\begin", "\\end"], @@ -61187,9 +61212,9 @@ Nt({ for (var s = "", a = 0; a < i.body.length; ++a) s += Er(i.body[a], "textord").text; if (n === "\\begin") { - if (!bW.hasOwnProperty(s)) + if (!xW.hasOwnProperty(s)) throw new Ot("No such environment: " + s, i); - var o = bW[s], { + var o = xW[s], { args: l, optArgs: u } = r.parseArguments("\\begin{" + s + "}", o), h = { @@ -61211,13 +61236,13 @@ Nt({ }; } }); -var Qfe = (t, e) => { +var Ufe = (t, e) => { var r = t.font, n = e.withFont(r); return Qr(t.body, n); -}, Ufe = (t, e) => { +}, Vfe = (t, e) => { var r = t.font, n = e.withFont(r); return yn(t.body, n); -}, xW = { +}, wW = { "\\Bbb": "\\mathbb", "\\bold": "\\mathbf", "\\frak": "\\mathfrak", @@ -61249,15 +61274,15 @@ Nt({ parser: r, funcName: n } = t, i = lS(e[0]), s = n; - return s in xW && (s = xW[s]), { + return s in wW && (s = wW[s]), { type: "font", mode: r.mode, font: s.slice(1), body: i }; }, - htmlBuilder: Qfe, - mathmlBuilder: Ufe + htmlBuilder: Ufe, + mathmlBuilder: Vfe }); Nt({ type: "mclass", @@ -61309,14 +61334,14 @@ Nt({ } }; }, - htmlBuilder: Qfe, - mathmlBuilder: Ufe + htmlBuilder: Ufe, + mathmlBuilder: Vfe }); -var Vfe = (t, e) => { +var qfe = (t, e) => { var r = e; return t === "display" ? r = r.id >= ar.SCRIPT.id ? r.text() : ar.DISPLAY : t === "text" && r.size === ar.DISPLAY.size ? r = ar.TEXT : t === "script" ? r = ar.SCRIPT : t === "scriptscript" && (r = ar.SCRIPTSCRIPT), r; }, KN = (t, e) => { - var r = Vfe(t.size, e.style), n = r.fracNum(), i = r.fracDen(), s; + var r = qfe(t.size, e.style), n = r.fracNum(), i = r.fracDen(), s; s = e.havingStyle(n); var a = Qr(t.numer, s, e); if (t.continued) { @@ -61377,7 +61402,7 @@ var Vfe = (t, e) => { var n = qn(t.barSize, e); r.setAttribute("linethickness", Ct(n)); } - var i = Vfe(t.size, e.style); + var i = qfe(t.size, e.style); if (i.size !== e.style.size) { r = new vt.MathNode("mstyle", [r]); var s = i.size === ar.DISPLAY.size ? "true" : "false"; @@ -61533,7 +61558,7 @@ Nt({ }; } }); -var wW = ["display", "text", "script", "scriptscript"], OW = function(e) { +var OW = ["display", "text", "script", "scriptscript"], kW = function(e) { var r = null; return e.length > 0 && (r = e, r = r === "." ? null : r), r; }; @@ -61548,16 +61573,16 @@ Nt({ handler(t, e) { var { parser: r - } = t, n = e[4], i = e[5], s = lS(e[0]), a = s.type === "atom" && s.family === "open" ? OW(s.text) : null, o = lS(e[1]), l = o.type === "atom" && o.family === "close" ? OW(o.text) : null, u = Er(e[2], "size"), h, f = null; + } = t, n = e[4], i = e[5], s = lS(e[0]), a = s.type === "atom" && s.family === "open" ? kW(s.text) : null, o = lS(e[1]), l = o.type === "atom" && o.family === "close" ? kW(o.text) : null, u = Er(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 = Er(p.body[0], "textord"); - d = wW[Number(g.text)]; + d = OW[Number(g.text)]; } } else - p = Er(p, "textord"), d = wW[Number(p.text)]; + p = Er(p, "textord"), d = OW[Number(p.text)]; return { type: "genfrac", mode: r.mode, @@ -61625,7 +61650,7 @@ Nt({ htmlBuilder: KN, mathmlBuilder: JN }); -var qfe = (t, e) => { +var Yfe = (t, e) => { var r = e.style, n, i; t.type === "supsub" ? (n = t.sup ? Qr(t.sup, e.havingStyle(r.sup()), e) : Qr(t.sub, e.havingStyle(r.sub()), e), i = Er(t.base, "horizBrace")) : i = Er(t, "horizBrace"); var s = Qr(i.base, e.havingBaseStyle(ar.DISPLAY)), a = wh.svgSpan(i, e), o; @@ -61707,7 +61732,7 @@ Nt({ base: e[0] }; }, - htmlBuilder: qfe, + htmlBuilder: Yfe, mathmlBuilder: jRt }); Nt({ @@ -61912,7 +61937,7 @@ var _A = function(e) { number: +(r[1] + r[2]), unit: r[3] }; - if (!cfe(n)) + if (!ufe(n)) throw new Ot("Invalid unit: '" + n.unit + "' in \\includegraphics."); return n; }; @@ -62099,7 +62124,7 @@ Nt({ throw new Ot("Mismatched " + t.funcName); } }); -var kW = (t, e) => { +var SW = (t, e) => { switch (e.style.size) { case ar.DISPLAY.size: return t.display; @@ -62134,15 +62159,15 @@ Nt({ }; }, htmlBuilder: (t, e) => { - var r = kW(t, e), n = Xi(r, e, !1); + var r = SW(t, e), n = Xi(r, e, !1); return Ye.makeFragment(n); }, mathmlBuilder: (t, e) => { - var r = kW(t, e); + var r = SW(t, e); return ed(r, e); } }); -var Yfe = (t, e, r, n, i, s, a) => { +var Wfe = (t, e, r, n, i, s, a) => { t = Ye.makeSpan([], [t]); var o = r && nr.isCharacterBox(r), l, u; if (e) { @@ -62238,11 +62263,11 @@ var Yfe = (t, e, r, n, i, s, a) => { y.style.marginRight = Ct(s), v.unshift(y); } return Ye.makeSpan(["mop", "op-limits"], v, n); -}, Wfe = ["\\smallint"], U1 = (t, e) => { +}, Gfe = ["\\smallint"], U1 = (t, e) => { var r, n, i = !1, s; t.type === "supsub" ? (r = t.sup, n = t.sub, s = Er(t.base, "op"), i = !0) : s = Er(t, "op"); var a = e.style, o = !1; - a.size === ar.DISPLAY.size && s.symbol && !nr.contains(Wfe, s.name) && (o = !0); + a.size === ar.DISPLAY.size && s.symbol && !nr.contains(Gfe, s.name) && (o = !0); var l; if (s.symbol) { var u = o ? "Size2-Regular" : "Size1-Regular", h = ""; @@ -62270,17 +62295,17 @@ var Yfe = (t, e, r, n, i, s, a) => { l = Ye.makeSpan(["mop"], g, e); } var v = 0, y = 0; - return (l instanceof bl || s.name === "\\oiint" || s.name === "\\oiiint") && !s.suppressBaseShift && (v = (l.height - l.depth) / 2 - e.fontMetrics().axisHeight, y = l.italic), i ? Yfe(l, r, n, e, a, y, v) : (v && (l.style.position = "relative", l.style.top = Ct(v)), l); + return (l instanceof bl || s.name === "\\oiint" || s.name === "\\oiiint") && !s.suppressBaseShift && (v = (l.height - l.depth) / 2 - e.fontMetrics().axisHeight, y = l.italic), i ? Wfe(l, r, n, e, a, y, v) : (v && (l.style.position = "relative", l.style.top = Ct(v)), l); }, yw = (t, e) => { var r; if (t.symbol) - r = new Ko("mo", [xl(t.name, t.mode)]), nr.contains(Wfe, t.name) && r.setAttribute("largeop", "false"); + r = new Ko("mo", [xl(t.name, t.mode)]), nr.contains(Gfe, t.name) && r.setAttribute("largeop", "false"); else if (t.body) r = new Ko("mo", ho(t.body, e)); else { r = new Ko("mi", [new e2(t.name.slice(1))]); var n = new Ko("mo", [xl("\u2061", "text")]); - t.parentIsSupSub ? r = new Ko("mrow", [r, n]) : r = xfe([r, n]); + t.parentIsSupSub ? r = new Ko("mrow", [r, n]) : r = wfe([r, n]); } return r; }, KRt = { @@ -62420,7 +62445,7 @@ Nt({ htmlBuilder: U1, mathmlBuilder: yw }); -var Gfe = (t, e) => { +var Xfe = (t, e) => { var r, n, i = !1, s; t.type === "supsub" ? (r = t.sup, n = t.sub, s = Er(t.base, "operatorname"), i = !0) : s = Er(t, "operatorname"); var a; @@ -62439,7 +62464,7 @@ var Gfe = (t, e) => { a = Ye.makeSpan(["mop"], l, e); } else a = Ye.makeSpan(["mop"], [], e); - return i ? Yfe(a, r, n, e, e.style, 0, 0) : a; + return i ? Wfe(a, r, n, e, e.style, 0, 0) : a; }, eMt = (t, e) => { for (var r = ho(t.body, e.withFont("mathrm")), n = !0, i = 0; i < r.length; i++) { var s = r[i]; @@ -62492,7 +62517,7 @@ Nt({ parentIsSupSub: !1 }; }, - htmlBuilder: Gfe, + htmlBuilder: Xfe, mathmlBuilder: eMt }); ue("\\operatorname", "\\@ifstar\\operatornamewithlimits\\operatorname@"); @@ -62717,20 +62742,20 @@ Nt({ return i >= 0 ? o.setAttribute("height", Ct(i)) : (o.setAttribute("height", Ct(i)), o.setAttribute("depth", Ct(-i))), o.setAttribute("voffset", Ct(i)), o; } }); -function Xfe(t, e, r) { +function Hfe(t, e, r) { for (var n = Xi(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 Ye.makeFragment(n); } -var SW = ["\\tiny", "\\sixptsize", "\\scriptsize", "\\footnotesize", "\\small", "\\normalsize", "\\large", "\\Large", "\\LARGE", "\\huge", "\\Huge"], tMt = (t, e) => { +var TW = ["\\tiny", "\\sixptsize", "\\scriptsize", "\\footnotesize", "\\small", "\\normalsize", "\\large", "\\Large", "\\LARGE", "\\huge", "\\Huge"], tMt = (t, e) => { var r = e.havingSize(t.size); - return Xfe(t.body, r, e); + return Hfe(t.body, r, e); }; Nt({ type: "sizing", - names: SW, + names: TW, props: { numArgs: 0, allowedInText: !0 @@ -62744,7 +62769,7 @@ Nt({ return { type: "sizing", mode: i.mode, - size: SW.indexOf(n) + 1, + size: TW.indexOf(n) + 1, body: s }; }, @@ -62882,7 +62907,7 @@ Nt({ return n ? new vt.MathNode("mroot", [yn(r, e), yn(n, e)]) : new vt.MathNode("msqrt", [yn(r, e)]); } }); -var TW = { +var CW = { display: ar.DISPLAY, text: ar.TEXT, script: ar.SCRIPT, @@ -62910,11 +62935,11 @@ Nt({ }; }, htmlBuilder(t, e) { - var r = TW[t.style], n = e.havingStyle(r).withFont(""); - return Xfe(t.body, n, e); + var r = CW[t.style], n = e.havingStyle(r).withFont(""); + return Hfe(t.body, n, e); }, mathmlBuilder(t, e) { - var r = TW[t.style], n = e.havingStyle(r), i = ho(t.body, n), s = new vt.MathNode("mstyle", i), a = { + var r = CW[t.style], n = e.havingStyle(r), i = ho(t.body, n), s = new vt.MathNode("mstyle", i), a = { display: ["0", "true"], text: ["0", "false"], script: ["1", "false"], @@ -62931,13 +62956,13 @@ var rMt = function(e, r) { return i ? U1 : null; } else if (n.type === "operatorname") { var s = n.alwaysHandleSupSub && (r.style.size === ar.DISPLAY.size || n.limits); - return s ? Gfe : null; + return s ? Xfe : null; } else { if (n.type === "accent") return nr.isCharacterBox(n.base) ? WN : null; if (n.type === "horizBrace") { var a = !e.sub; - return a === n.isOver ? qfe : null; + return a === n.isOver ? Yfe : null; } else return null; } @@ -63061,7 +63086,7 @@ Mp({ return r; } }); -var Hfe = { +var Zfe = { mi: "italic", mn: "normal", mtext: "normal" @@ -63073,7 +63098,7 @@ Mp({ }, mathmlBuilder(t, e) { var r = new vt.MathNode("mi", [xl(t.text, t.mode, e)]), n = qN(t, e) || "italic"; - return n !== Hfe[r.type] && r.setAttribute("mathvariant", n), r; + return n !== Zfe[r.type] && r.setAttribute("mathvariant", n), r; } }); Mp({ @@ -63083,7 +63108,7 @@ Mp({ }, mathmlBuilder(t, e) { var r = xl(t.text, t.mode, e), n = qN(t, e) || "normal", i; - return t.mode === "text" ? i = new vt.MathNode("mtext", [r]) : /[0-9]/.test(t.text) ? i = new vt.MathNode("mn", [r]) : t.text === "\\prime" ? i = new vt.MathNode("mo", [r]) : i = new vt.MathNode("mi", [r]), n !== Hfe[i.type] && i.setAttribute("mathvariant", n), i; + return t.mode === "text" ? i = new vt.MathNode("mtext", [r]) : /[0-9]/.test(t.text) ? i = new vt.MathNode("mn", [r]) : t.text === "\\prime" ? i = new vt.MathNode("mo", [r]) : i = new vt.MathNode("mi", [r]), n !== Zfe[i.type] && i.setAttribute("mathvariant", n), i; } }); var AA = { @@ -63128,36 +63153,36 @@ Mp({ return r; } }); -var CW = () => { +var EW = () => { var t = new vt.MathNode("mtd", []); return t.setAttribute("width", "50%"), t; }; Mp({ type: "tag", mathmlBuilder(t, e) { - var r = new vt.MathNode("mtable", [new vt.MathNode("mtr", [CW(), new vt.MathNode("mtd", [ed(t.body, e)]), CW(), new vt.MathNode("mtd", [ed(t.tag, e)])])]); + var r = new vt.MathNode("mtable", [new vt.MathNode("mtr", [EW(), new vt.MathNode("mtd", [ed(t.body, e)]), EW(), new vt.MathNode("mtd", [ed(t.tag, e)])])]); return r.setAttribute("width", "100%"), r; } }); -var EW = { +var _W = { "\\text": void 0, "\\textrm": "textrm", "\\textsf": "textsf", "\\texttt": "texttt", "\\textnormal": "textrm" -}, _W = { +}, AW = { "\\textbf": "textbf", "\\textmd": "textmd" }, nMt = { "\\textit": "textit", "\\textup": "textup" -}, AW = (t, e) => { +}, LW = (t, e) => { var r = t.font; if (r) { - if (EW[r]) - return e.withTextFontFamily(EW[r]); if (_W[r]) - return e.withTextFontWeight(_W[r]); + return e.withTextFontFamily(_W[r]); + if (AW[r]) + return e.withTextFontWeight(AW[r]); if (r === "\\emph") return e.fontShape === "textit" ? e.withTextFontShape("textup") : e.withTextFontShape("textit"); } else @@ -63197,11 +63222,11 @@ Nt({ }; }, htmlBuilder(t, e) { - var r = AW(t, e), n = Xi(t.body, r, !0); + var r = LW(t, e), n = Xi(t.body, r, !0); return Ye.makeSpan(["mord", "text"], n, r); }, mathmlBuilder(t, e) { - var r = AW(t, e); + var r = LW(t, e); return ed(t.body, r); } }); @@ -63293,22 +63318,22 @@ Nt({ throw new Ot("\\verb ended by end of line instead of matching delimiter"); }, htmlBuilder(t, e) { - for (var r = LW(t), n = [], i = e.havingStyle(e.style.text()), s = 0; s < r.length; s++) { + for (var r = RW(t), n = [], i = e.havingStyle(e.style.text()), s = 0; s < r.length; s++) { var a = r[s]; a === "~" && (a = "\\textasciitilde"), n.push(Ye.makeSymbol(a, "Typewriter-Regular", t.mode, i, ["mord", "texttt"])); } return Ye.makeSpan(["mord", "text"].concat(i.sizingClasses(e)), Ye.tryCombineChars(n), i); }, mathmlBuilder(t, e) { - var r = new vt.TextNode(LW(t)), n = new vt.MathNode("mtext", [r]); + var r = new vt.TextNode(RW(t)), n = new vt.MathNode("mtext", [r]); return n.setAttribute("mathvariant", "monospace"), n; } }); -var LW = (t) => t.body.replace(/ /g, t.star ? "\u2423" : "\xA0"), mf = yfe, Zfe = `[ \r - ]`, iMt = "\\\\[a-zA-Z@]+", sMt = "\\\\[^\uD800-\uDFFF]", aMt = "(" + iMt + ")" + Zfe + "*", oMt = `\\\\( +var RW = (t) => t.body.replace(/ /g, t.star ? "\u2423" : "\xA0"), mf = bfe, jfe = `[ \r + ]`, iMt = "\\\\[a-zA-Z@]+", sMt = "\\\\[^\uD800-\uDFFF]", aMt = "(" + iMt + ")" + jfe + "*", oMt = `\\\\( |[ \r ]+ -?)[ \r ]*`, QL = "[\u0300-\u036F]", lMt = new RegExp(QL + "+$"), cMt = "(" + Zfe + "+)|" + (oMt + "|") + "([!-\\[\\]-\u2027\u202A-\uD7FF\uF900-\uFFFF]" + (QL + "*") + "|[\uD800-\uDBFF][\uDC00-\uDFFF]" + (QL + "*") + "|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5" + ("|" + aMt) + ("|" + sMt + ")"); -class RW { +?)[ \r ]*`, QL = "[\u0300-\u036F]", lMt = new RegExp(QL + "+$"), cMt = "(" + jfe + "+)|" + (oMt + "|") + "([!-\\[\\]-\u2027\u202A-\uD7FF\uF900-\uFFFF]" + (QL + "*") + "|[\uD800-\uDBFF][\uDC00-\uDFFF]" + (QL + "*") + "|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5" + ("|" + aMt) + ("|" + sMt + ")"); +class MW { 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(cMt, "g"), this.catcodes = { "%": 14, @@ -63370,7 +63395,7 @@ class uMt { r == null ? delete this.current[e] : this.current[e] = r; } } -var hMt = Ffe; +var hMt = zfe; ue("\\noexpand", function(t) { var e = t.popToken(); return t.isExpandable(e.text) && (e.noexpand = !0, e.treatAsRelax = !0), { @@ -63422,7 +63447,7 @@ ue("\\TextOrMath", function(t) { numArgs: 0 }; }); -var MW = { +var DW = { 0: 0, 1: 1, 2: 2, @@ -63463,9 +63488,9 @@ ue("\\char", function(t) { else r = 10; if (r) { - if (n = MW[e.text], n == null || n >= r) + if (n = DW[e.text], n == null || n >= r) throw new Ot("Invalid base-" + r + " digit " + e.text); - for (var i; (i = MW[t.future().text]) != null && i < r; ) + for (var i; (i = DW[t.future().text]) != null && i < r; ) n *= r, n += i, t.popToken(); } return "\\@char{" + n + "}"; @@ -63581,7 +63606,7 @@ ue("\\boxed", "\\fbox{$\\displaystyle{#1}$}"); ue("\\iff", "\\DOTSB\\;\\Longleftrightarrow\\;"); ue("\\implies", "\\DOTSB\\;\\Longrightarrow\\;"); ue("\\impliedby", "\\DOTSB\\;\\Longleftarrow\\;"); -var DW = { +var PW = { ",": "\\dotsc", "\\not": "\\dotsb", "+": "\\dotsb", @@ -63632,7 +63657,7 @@ var DW = { }; ue("\\dots", function(t) { var e = "\\dotso", r = t.expandAfterFuture().text; - return r in DW ? e = DW[r] : (r.slice(0, 4) === "\\not" || r in Tn.math && nr.contains(["bin", "rel"], Tn.math[r].group)) && (e = "\\dotsb"), e; + return r in PW ? e = PW[r] : (r.slice(0, 4) === "\\not" || r in Tn.math && nr.contains(["bin", "rel"], Tn.math[r].group)) && (e = "\\dotsb"), e; }); var tI = { ")": !0, @@ -63703,9 +63728,9 @@ ue("\\pmod", "\\pod{{\\rm mod}\\mkern6mu#1}"); ue("\\mod", "\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1"); ue("\\newline", "\\\\\\relax"); ue("\\TeX", "\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}"); -var jfe = Ct(Wc["Main-Regular"]["T".charCodeAt(0)][1] - 0.7 * Wc["Main-Regular"]["A".charCodeAt(0)][1]); -ue("\\LaTeX", "\\textrm{\\html@mathml{" + ("L\\kern-.36em\\raisebox{" + jfe + "}{\\scriptstyle A}") + "\\kern-.15em\\TeX}{LaTeX}}"); -ue("\\KaTeX", "\\textrm{\\html@mathml{" + ("K\\kern-.17em\\raisebox{" + jfe + "}{\\scriptstyle A}") + "\\kern-.15em\\TeX}{KaTeX}}"); +var Kfe = Ct(Wc["Main-Regular"]["T".charCodeAt(0)][1] - 0.7 * Wc["Main-Regular"]["A".charCodeAt(0)][1]); +ue("\\LaTeX", "\\textrm{\\html@mathml{" + ("L\\kern-.36em\\raisebox{" + Kfe + "}{\\scriptstyle A}") + "\\kern-.15em\\TeX}{LaTeX}}"); +ue("\\KaTeX", "\\textrm{\\html@mathml{" + ("K\\kern-.17em\\raisebox{" + Kfe + "}{\\scriptstyle A}") + "\\kern-.15em\\TeX}{KaTeX}}"); ue("\\hspace", "\\@ifstar\\@hspacer\\@hspace"); ue("\\@hspace", "\\hskip #1\\relax"); ue("\\@hspacer", "\\rule{0pt}{0pt}\\hskip #1\\relax"); @@ -63851,7 +63876,7 @@ ue("\\ket", "\\mathinner{|{#1}\\rangle}"); ue("\\braket", "\\mathinner{\\langle{#1}\\rangle}"); ue("\\Bra", "\\left\\langle#1\\right|"); ue("\\Ket", "\\left|#1\\right\\rangle"); -var Kfe = (t) => (e) => { +var Jfe = (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) => { @@ -63877,8 +63902,8 @@ var Kfe = (t) => (e) => { numArgs: 0 }; }; -ue("\\bra@ket", Kfe(!1)); -ue("\\bra@set", Kfe(!0)); +ue("\\bra@ket", Jfe(!1)); +ue("\\bra@set", Jfe(!0)); ue("\\Braket", "\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}"); ue("\\Set", "\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}"); ue("\\set", "\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}"); @@ -63939,7 +63964,7 @@ ue("\\grayH", "\\textcolor{##3b3e40}{#1}"); ue("\\grayI", "\\textcolor{##21242c}{#1}"); ue("\\kaBlue", "\\textcolor{##314453}{#1}"); ue("\\kaGreen", "\\textcolor{##71B307}{#1}"); -var Jfe = { +var ede = { "^": !0, _: !0, "\\limits": !0, @@ -63950,7 +63975,7 @@ class fMt { 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 uMt(hMt, r.macros), this.mode = n, this.stack = []; } feed(e) { - this.lexer = new RW(e, this.settings); + this.lexer = new MW(e, this.settings); } switchMode(e) { this.mode = e; @@ -64116,7 +64141,7 @@ class fMt { if (i.indexOf("#") !== -1) for (var a = i.replace(/##/g, ""); a.indexOf("#" + (s + 1)) !== -1; ) ++s; - for (var o = new RW(i, this.settings), l = [], u = o.lex(); u.text !== "EOF"; ) + for (var o = new MW(i, this.settings), l = [], u = o.lex(); u.text !== "EOF"; ) l.push(u), u = o.lex(); l.reverse(); var h = { @@ -64128,14 +64153,14 @@ class fMt { return i; } isDefined(e) { - return this.macros.has(e) || mf.hasOwnProperty(e) || Tn.math.hasOwnProperty(e) || Tn.text.hasOwnProperty(e) || Jfe.hasOwnProperty(e); + return this.macros.has(e) || mf.hasOwnProperty(e) || Tn.math.hasOwnProperty(e) || Tn.text.hasOwnProperty(e) || ede.hasOwnProperty(e); } isExpandable(e) { var r = this.macros.get(e); return r != null ? typeof r == "string" || typeof r == "function" || !r.unexpandable : mf.hasOwnProperty(e) && !mf[e].primitive; } } -var PW = /^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/, g4 = Object.freeze({ +var NW = /^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/, g4 = Object.freeze({ "\u208A": "+", "\u208B": "-", "\u208C": "=", @@ -64285,7 +64310,7 @@ var PW = /^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗ "\u0327": { text: "\\c" } -}, NW = { +}, IW = { \u00E1: "a\u0301", \u00E0: "a\u0300", \u00E4: "a\u0308", @@ -64770,10 +64795,10 @@ class eE { body: l }; } else if (g4[s.text]) { - var u = PW.test(s.text), h = []; + var u = NW.test(s.text), h = []; for (h.push(new ll(g4[s.text])), this.consume(); ; ) { var f = this.fetch().text; - if (!g4[f] || PW.test(f) !== u) + if (!g4[f] || NW.test(f) !== u) break; h.unshift(new ll(g4[f])), this.consume(); } @@ -64937,7 +64962,7 @@ class eE { number: +(i[1] + i[2]), unit: i[3] }; - if (!cfe(s)) + if (!ufe(s)) throw new Ot("Invalid unit: '" + s.unit + "'", r); return { type: "size", @@ -64988,7 +65013,7 @@ class eE { body: o, semisimple: i === "\\begingroup" || void 0 }; - } else if (s = this.parseFunction(r, e) || this.parseSymbol(), s == null && i[0] === "\\" && !Jfe.hasOwnProperty(i)) { + } else if (s = this.parseFunction(r, e) || this.parseSymbol(), s == null && i[0] === "\\" && !ede.hasOwnProperty(i)) { if (this.settings.throwOnError) throw new Ot("Undefined control sequence: " + i, n); s = this.formatUnsupportedCmd(i), this.consume(); @@ -65031,7 +65056,7 @@ class eE { star: i }; } - NW.hasOwnProperty(r[0]) && !Tn[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 = NW[r[0]] + r.slice(1)); + IW.hasOwnProperty(r[0]) && !Tn[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 = IW[r[0]] + r.slice(1)); var s = lMt.exec(r); s && (r = r.substring(0, s.index), r === "i" ? r = "\u0131" : r === "j" && (r = "\u0237")); var a; @@ -65056,7 +65081,7 @@ class eE { }; a = u; } else if (r.charCodeAt(0) >= 128) - this.settings.strict && (lfe(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 && (cfe(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: ko.range(e), @@ -65103,12 +65128,12 @@ var rI = function(e, r) { }]; } return i; -}, ede = function(e, r, n) { +}, tde = function(e, r, n) { r.textContent = ""; var i = nI(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."), ede = 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."), tde = function() { throw new Ot("KaTeX doesn't work in quirks mode."); }); var dMt = function(e, r) { @@ -65117,7 +65142,7 @@ var dMt = function(e, r) { }, pMt = function(e, r) { var n = new BN(r); return rI(e, n); -}, tde = function(e, r, n) { +}, rde = function(e, r, n) { if (n.throwOnError || !(e instanceof Ot)) throw e; var i = Ye.makeSpan(["katex-error"], [new bl(r)]); @@ -65128,7 +65153,7 @@ var dMt = function(e, r) { var i = rI(e, n); return kRt(i, e, n); } catch (s) { - return tde(s, e, n); + return rde(s, e, n); } }, gMt = function(e, r) { var n = new BN(r); @@ -65136,11 +65161,11 @@ var dMt = function(e, r) { var i = rI(e, n); return SRt(i, e, n); } catch (s) { - return tde(s, e, n); + return rde(s, e, n); } }, mMt = { version: "0.16.11", - render: ede, + render: tde, renderToString: dMt, ParseError: Ot, SETTINGS_SCHEMA: $k, @@ -65173,14 +65198,14 @@ function Af(t, e) { i[r] = e(t[r], r, t); return i; } -var bMt = 1 / 0, IW = gl ? gl.prototype : void 0, $W = IW ? IW.toString : void 0; -function rde(t) { +var bMt = 1 / 0, $W = gl ? gl.prototype : void 0, BW = $W ? $W.toString : void 0; +function nde(t) { if (typeof t == "string") return t; if (Pr(t)) - return Af(t, rde) + ""; + return Af(t, nde) + ""; if (j0(t)) - return $W ? $W.call(t) : ""; + return BW ? BW.call(t) : ""; var e = t + ""; return e == "0" && 1 / t == -bMt ? "-0" : e; } @@ -65194,12 +65219,12 @@ var OMt = /^\s+/; function kMt(t) { return t && t.slice(0, wMt(t) + 1).replace(OMt, ""); } -var BW = 0 / 0, SMt = /^[-+]0x[0-9a-f]+$/i, TMt = /^0b[01]+$/i, CMt = /^0o[0-7]+$/i, EMt = parseInt; +var FW = 0 / 0, SMt = /^[-+]0x[0-9a-f]+$/i, TMt = /^0b[01]+$/i, CMt = /^0o[0-7]+$/i, EMt = parseInt; function _Mt(t) { if (typeof t == "number") return t; if (j0(t)) - return BW; + return FW; if (so(t)) { var e = typeof t.valueOf == "function" ? t.valueOf() : t; t = so(e) ? e + "" : e; @@ -65208,13 +65233,13 @@ function _Mt(t) { return t === 0 ? t : +t; t = kMt(t); var r = TMt.test(t); - return r || CMt.test(t) ? EMt(t.slice(2), r ? 2 : 8) : SMt.test(t) ? BW : +t; + return r || CMt.test(t) ? EMt(t.slice(2), r ? 2 : 8) : SMt.test(t) ? FW : +t; } -var FW = 1 / 0, AMt = 17976931348623157e292; +var zW = 1 / 0, AMt = 17976931348623157e292; function Fk(t) { if (!t) return t === 0 ? t : 0; - if (t = _Mt(t), t === FW || t === -FW) { + if (t = _Mt(t), t === zW || t === -zW) { var e = t < 0 ? -1 : 1; return e * AMt; } @@ -65226,12 +65251,12 @@ function bw(t) { } function Di() { } -function nde(t, e) { +function ide(t, e) { for (var r = -1, n = t == null ? 0 : t.length; ++r < n && e(t[r], r, t) !== !1; ) ; return t; } -function ide(t, e, r, n) { +function sde(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; @@ -65247,16 +65272,16 @@ function RMt(t, e, r) { return -1; } function iI(t, e, r) { - return e === e ? RMt(t, e, r) : ide(t, LMt, r); + return e === e ? RMt(t, e, r) : sde(t, LMt, r); } -function sde(t, e) { +function ade(t, e) { var r = t == null ? 0 : t.length; return !!r && iI(t, e, 0) > -1; } function Fi(t) { - return ku(t) ? Uoe(t) : sce(t); + return ku(t) ? Voe(t) : ace(t); } -var MMt = Object.prototype, DMt = MMt.hasOwnProperty, PMt = Woe(function(t, e) { +var MMt = Object.prototype, DMt = MMt.hasOwnProperty, PMt = Goe(function(t, e) { if (sw(e) || ku(e)) { F1(e, Fi(e), t); return; @@ -65286,11 +65311,11 @@ var FMt = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(? }), e; }); const UMt = QMt; -function ade(t) { - return t == null ? "" : rde(t); +function ode(t) { + return t == null ? "" : nde(t); } function tE(t, e) { - return Pr(t) ? t : sI(t, e) ? [t] : UMt(ade(t)); + return Pr(t) ? t : sI(t, e) ? [t] : UMt(ode(t)); } var VMt = 1 / 0; function xw(t) { @@ -65314,9 +65339,9 @@ function aI(t, e) { t[i + r] = e[r]; return t; } -var zW = gl ? gl.isConcatSpreadable : void 0; +var QW = gl ? gl.isConcatSpreadable : void 0; function YMt(t) { - return Pr(t) || Bm(t) || !!(zW && t && t[zW]); + return Pr(t) || Bm(t) || !!(QW && t && t[QW]); } function V1(t, e, r, n, i) { var s = -1, a = t.length; @@ -65331,9 +65356,9 @@ function as(t) { return e ? V1(t, 1) : []; } function WMt(t) { - return Yoe(qoe(t, void 0, as), t + ""); + return Woe(Yoe(t, void 0, as), t + ""); } -function ode(t, e, r) { +function lde(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; ) @@ -65359,14 +65384,14 @@ function oI(t, e) { } return s; } -function lde() { +function cde() { return []; } -var ZMt = Object.prototype, jMt = ZMt.propertyIsEnumerable, QW = Object.getOwnPropertySymbols, KMt = QW ? function(t) { - return t == null ? [] : (t = Object(t), oI(QW(t), function(e) { +var ZMt = Object.prototype, jMt = ZMt.propertyIsEnumerable, UW = Object.getOwnPropertySymbols, KMt = UW ? function(t) { + return t == null ? [] : (t = Object(t), oI(UW(t), function(e) { return jMt.call(t, e); })); -} : lde; +} : cde; const lI = KMt; function JMt(t, e) { return F1(t, lI(t), e); @@ -65375,20 +65400,20 @@ var eDt = Object.getOwnPropertySymbols, tDt = eDt ? function(t) { for (var e = []; t; ) aI(e, lI(t)), t = sN(t); return e; -} : lde; -const cde = tDt; +} : cde; +const ude = tDt; function rDt(t, e) { - return F1(t, cde(t), e); + return F1(t, ude(t), e); } -function ude(t, e, r) { +function hde(t, e, r) { var n = e(t); return Pr(t) ? n : aI(n, r(t)); } function UL(t) { - return ude(t, Fi, lI); + return hde(t, Fi, lI); } -function hde(t) { - return ude(t, _p, cde); +function fde(t) { + return hde(t, _p, ude); } var nDt = Object.prototype, iDt = nDt.hasOwnProperty; function sDt(t) { @@ -65404,9 +65429,9 @@ function lDt(t) { var e = new t.constructor(t.source, oDt.exec(t)); return e.lastIndex = t.lastIndex, e; } -var UW = gl ? gl.prototype : void 0, VW = UW ? UW.valueOf : void 0; +var VW = gl ? gl.prototype : void 0, qW = VW ? VW.valueOf : void 0; function cDt(t) { - return VW ? Object(VW.call(t)) : {}; + return qW ? Object(qW.call(t)) : {}; } var uDt = "[object Boolean]", hDt = "[object Date]", fDt = "[object Map]", dDt = "[object Number]", pDt = "[object RegExp]", gDt = "[object Set]", mDt = "[object String]", vDt = "[object Symbol]", yDt = "[object ArrayBuffer]", bDt = "[object DataView]", xDt = "[object Float32Array]", wDt = "[object Float64Array]", ODt = "[object Int8Array]", kDt = "[object Int16Array]", SDt = "[object Int32Array]", TDt = "[object Uint8Array]", CDt = "[object Uint8ClampedArray]", EDt = "[object Uint16Array]", _Dt = "[object Uint32Array]"; function ADt(t, e, r) { @@ -65428,7 +65453,7 @@ function ADt(t, e, r) { case CDt: case EDt: case _Dt: - return Poe(t, r); + return Noe(t, r); case fDt: return new n(); case dDt: @@ -65446,17 +65471,17 @@ var LDt = "[object Map]"; function RDt(t) { return vl(t) && Um(t) == LDt; } -var qW = Hf && Hf.isMap, MDt = qW ? B1(qW) : RDt; +var YW = Hf && Hf.isMap, MDt = YW ? B1(YW) : RDt; const DDt = MDt; var PDt = "[object Set]"; function NDt(t) { return vl(t) && Um(t) == PDt; } -var YW = Hf && Hf.isSet, IDt = YW ? B1(YW) : NDt; +var WW = Hf && Hf.isSet, IDt = WW ? B1(WW) : NDt; const $Dt = IDt; -var BDt = 1, FDt = 2, zDt = 4, fde = "[object Arguments]", QDt = "[object Array]", UDt = "[object Boolean]", VDt = "[object Date]", qDt = "[object Error]", dde = "[object Function]", YDt = "[object GeneratorFunction]", WDt = "[object Map]", GDt = "[object Number]", pde = "[object Object]", XDt = "[object RegExp]", HDt = "[object Set]", ZDt = "[object String]", jDt = "[object Symbol]", KDt = "[object WeakMap]", JDt = "[object ArrayBuffer]", ePt = "[object DataView]", tPt = "[object Float32Array]", rPt = "[object Float64Array]", nPt = "[object Int8Array]", iPt = "[object Int16Array]", sPt = "[object Int32Array]", aPt = "[object Uint8Array]", oPt = "[object Uint8ClampedArray]", lPt = "[object Uint16Array]", cPt = "[object Uint32Array]", On = {}; -On[fde] = On[QDt] = On[JDt] = On[ePt] = On[UDt] = On[VDt] = On[tPt] = On[rPt] = On[nPt] = On[iPt] = On[sPt] = On[WDt] = On[GDt] = On[pde] = On[XDt] = On[HDt] = On[ZDt] = On[jDt] = On[aPt] = On[oPt] = On[lPt] = On[cPt] = !0; -On[qDt] = On[dde] = On[KDt] = !1; +var BDt = 1, FDt = 2, zDt = 4, dde = "[object Arguments]", QDt = "[object Array]", UDt = "[object Boolean]", VDt = "[object Date]", qDt = "[object Error]", pde = "[object Function]", YDt = "[object GeneratorFunction]", WDt = "[object Map]", GDt = "[object Number]", gde = "[object Object]", XDt = "[object RegExp]", HDt = "[object Set]", ZDt = "[object String]", jDt = "[object Symbol]", KDt = "[object WeakMap]", JDt = "[object ArrayBuffer]", ePt = "[object DataView]", tPt = "[object Float32Array]", rPt = "[object Float64Array]", nPt = "[object Int8Array]", iPt = "[object Int16Array]", sPt = "[object Int32Array]", aPt = "[object Uint8Array]", oPt = "[object Uint8ClampedArray]", lPt = "[object Uint16Array]", cPt = "[object Uint32Array]", On = {}; +On[dde] = On[QDt] = On[JDt] = On[ePt] = On[UDt] = On[VDt] = On[tPt] = On[rPt] = On[nPt] = On[iPt] = On[sPt] = On[WDt] = On[GDt] = On[gde] = On[XDt] = On[HDt] = On[ZDt] = On[jDt] = On[aPt] = On[oPt] = On[lPt] = On[cPt] = !0; +On[qDt] = On[pde] = On[KDt] = !1; function r2(t, e, r, n, i, s) { var a, o = e & BDt, l = e & FDt, u = e & zDt; if (r && (a = i ? r(t, n, i, s) : r(t)), a !== void 0) @@ -65466,13 +65491,13 @@ function r2(t, e, r, n, i, s) { var h = Pr(t); if (h) { if (a = sDt(t), !o) - return Noe(t, a); + return Ioe(t, a); } else { - var f = Um(t), d = f == dde || f == YDt; + var f = Um(t), d = f == pde || f == YDt; if (Fm(t)) - return Doe(t, o); - if (f == pde || f == fde || d && !i) { - if (a = l || d ? {} : $oe(t), !o) + return Poe(t, o); + if (f == gde || f == dde || d && !i) { + if (a = l || d ? {} : Boe(t), !o) return l ? rDt(t, HMt(a, t)) : JMt(t, XMt(a, t)); } else { if (!On[f]) @@ -65489,8 +65514,8 @@ function r2(t, e, r, n, i, s) { }) : DDt(t) && t.forEach(function(v, y) { a.set(y, r2(v, e, r, y, t, s)); }); - var g = u ? l ? hde : UL : l ? _p : Fi, m = h ? void 0 : g(t); - return nde(m || t, function(v, y) { + var g = u ? l ? fde : UL : l ? _p : Fi, m = h ? void 0 : g(t); + return ide(m || t, function(v, y) { m && (y = v, v = t[y]), aw(a, y, r2(v, e, r, y, t, s)); }), a; } @@ -65523,7 +65548,7 @@ function Hm(t) { } Hm.prototype.add = Hm.prototype.push = gPt; Hm.prototype.has = mPt; -function gde(t, e) { +function mde(t, e) { for (var r = -1, n = t == null ? 0 : t.length; ++r < n; ) if (e(t[r], r, t)) return !0; @@ -65533,7 +65558,7 @@ function cI(t, e) { return t.has(e); } var vPt = 1, yPt = 2; -function mde(t, e, r, n, i, s) { +function vde(t, e, r, n, i, s) { var a = r & vPt, o = t.length, l = e.length; if (o != l && !(a && l > o)) return !1; @@ -65552,7 +65577,7 @@ function mde(t, e, r, n, i, s) { break; } if (p) { - if (!gde(e, function(y, b) { + if (!mde(e, function(y, b) { if (!cI(p, b) && (g === y || i(g, y, r, n, s))) return p.push(b); })) { @@ -65578,7 +65603,7 @@ function uI(t) { r[++e] = n; }), r; } -var xPt = 1, wPt = 2, OPt = "[object Boolean]", kPt = "[object Date]", SPt = "[object Error]", TPt = "[object Map]", CPt = "[object Number]", EPt = "[object RegExp]", _Pt = "[object Set]", APt = "[object String]", LPt = "[object Symbol]", RPt = "[object ArrayBuffer]", MPt = "[object DataView]", WW = gl ? gl.prototype : void 0, MA = WW ? WW.valueOf : void 0; +var xPt = 1, wPt = 2, OPt = "[object Boolean]", kPt = "[object Date]", SPt = "[object Error]", TPt = "[object Map]", CPt = "[object Number]", EPt = "[object RegExp]", _Pt = "[object Set]", APt = "[object String]", LPt = "[object Symbol]", RPt = "[object ArrayBuffer]", MPt = "[object DataView]", GW = gl ? gl.prototype : void 0, MA = GW ? GW.valueOf : void 0; function DPt(t, e, r, n, i, s, a) { switch (r) { case MPt: @@ -65606,7 +65631,7 @@ function DPt(t, e, r, n, i, s, a) { if (u) return u == e; n |= wPt, a.set(t, e); - var h = mde(o(t), o(e), n, i, s, a); + var h = vde(o(t), o(e), n, i, s, a); return a.delete(t), h; case LPt: if (MA) @@ -65646,10 +65671,10 @@ function $Pt(t, e, r, n, i, s) { } return s.delete(t), s.delete(e), m; } -var BPt = 1, GW = "[object Arguments]", XW = "[object Array]", m4 = "[object Object]", FPt = Object.prototype, HW = FPt.hasOwnProperty; +var BPt = 1, XW = "[object Arguments]", HW = "[object Array]", m4 = "[object Object]", FPt = Object.prototype, ZW = FPt.hasOwnProperty; function zPt(t, e, r, n, i, s) { - var a = Pr(t), o = Pr(e), l = a ? XW : Um(t), u = o ? XW : Um(e); - l = l == GW ? m4 : l, u = u == GW ? m4 : u; + var a = Pr(t), o = Pr(e), l = a ? HW : Um(t), u = o ? HW : Um(e); + l = l == XW ? m4 : l, u = u == XW ? m4 : u; var h = l == m4, f = u == m4, d = l == u; if (d && Fm(t)) { if (!Fm(e)) @@ -65657,9 +65682,9 @@ function zPt(t, e, r, n, i, s) { a = !0, h = !1; } if (d && !h) - return s || (s = new Yl()), a || $C(t) ? mde(t, e, r, n, i, s) : DPt(t, e, l, r, n, i, s); + return s || (s = new Yl()), a || $C(t) ? vde(t, e, r, n, i, s) : DPt(t, e, l, r, n, i, s); if (!(r & BPt)) { - var p = h && HW.call(t, "__wrapped__"), g = f && HW.call(e, "__wrapped__"); + var p = h && ZW.call(t, "__wrapped__"), g = f && ZW.call(e, "__wrapped__"); if (p || g) { var m = p ? t.value() : t, v = g ? e.value() : e; return s || (s = new Yl()), i(m, v, r, n, s); @@ -65696,31 +65721,31 @@ function VPt(t, e, r, n) { } return !0; } -function vde(t) { +function yde(t) { return t === t && !so(t); } function qPt(t) { for (var e = Fi(t), r = e.length; r--; ) { var n = e[r], i = t[n]; - e[r] = [n, i, vde(i)]; + e[r] = [n, i, yde(i)]; } return e; } -function yde(t, e) { +function bde(t, e) { return function(r) { return r == null ? !1 : r[t] === e && (e !== void 0 || t in Object(r)); }; } function YPt(t) { var e = qPt(t); - return e.length == 1 && e[0][2] ? yde(e[0][0], e[0][1]) : function(r) { + return e.length == 1 && e[0][2] ? bde(e[0][0], e[0][1]) : function(r) { return r === t || VPt(r, t, e); }; } function WPt(t, e) { return t != null && e in Object(t); } -function bde(t, e, r) { +function xde(t, e, r) { e = tE(e, t); for (var n = -1, i = e.length, s = !1; ++n < i; ) { var a = xw(e[n]); @@ -65730,14 +65755,14 @@ function bde(t, e, r) { } return s || ++n != i ? s : (i = t == null ? 0 : t.length, !!i && aN(i) && BC(a, i) && (Pr(t) || Bm(t))); } -function xde(t, e) { - return t != null && bde(t, e, WPt); +function wde(t, e) { + return t != null && xde(t, e, WPt); } var GPt = 1, XPt = 2; function HPt(t, e) { - return sI(t) && vde(e) ? yde(xw(t), e) : function(r) { + return sI(t) && yde(e) ? bde(xw(t), e) : function(r) { var n = qMt(r, t); - return n === void 0 && n === e ? xde(r, t) : hI(e, n, GPt | XPt); + return n === void 0 && n === e ? wde(r, t) : hI(e, n, GPt | XPt); }; } function ZPt(t) { @@ -65793,19 +65818,19 @@ function nNt(t, e) { var iNt = function() { return gc.Date.now(); }; -const ZW = iNt; -var wde = Object.prototype, sNt = wde.hasOwnProperty, aNt = ow(function(t, e) { +const jW = iNt; +var Ode = Object.prototype, sNt = Ode.hasOwnProperty, aNt = ow(function(t, e) { t = Object(t); var r = -1, n = e.length, i = n > 2 ? e[2] : void 0; for (i && Y0(e[0], e[1], i) && (n = 1); ++r < n; ) for (var s = e[r], a = _p(s), o = -1, l = a.length; ++o < l; ) { var u = a[o], h = t[u]; - (h === void 0 || I1(h, wde[u]) && !sNt.call(t, u)) && (t[u] = s[u]); + (h === void 0 || I1(h, Ode[u]) && !sNt.call(t, u)) && (t[u] = s[u]); } return t; }); const nE = aNt; -function Ode(t, e, r) { +function kde(t, e, r) { for (var n = -1, i = t == null ? 0 : t.length; ++n < i; ) if (r(e, t[n])) return !0; @@ -65813,10 +65838,10 @@ function Ode(t, e, r) { } var oNt = 200; function lNt(t, e, r, n) { - var i = -1, s = sde, a = !0, o = t.length, l = [], u = e.length; + var i = -1, s = ade, a = !0, o = t.length, l = [], u = e.length; if (!o) return l; - r && (e = Af(e, B1(r))), n ? (s = Ode, a = !1) : e.length >= oNt && (s = cI, a = !1, e = new Hm(e)); + r && (e = Af(e, B1(r))), n ? (s = kde, a = !1) : e.length >= oNt && (s = cI, a = !1, e = new Hm(e)); e: for (; ++i < o; ) { var h = t[i], f = r == null ? h : r(h); @@ -65840,17 +65865,17 @@ function hu(t) { } function ms(t, e, r) { var n = t == null ? 0 : t.length; - return n ? (e = r || e === void 0 ? 1 : bw(e), ode(t, e < 0 ? 0 : e, n)) : []; + return n ? (e = r || e === void 0 ? 1 : bw(e), lde(t, e < 0 ? 0 : e, n)) : []; } function vb(t, e, r) { var n = t == null ? 0 : t.length; - return n ? (e = r || e === void 0 ? 1 : bw(e), e = n - e, ode(t, 0, e < 0 ? 0 : e)) : []; + return n ? (e = r || e === void 0 ? 1 : bw(e), e = n - e, lde(t, 0, e < 0 ? 0 : e)) : []; } function dI(t) { return typeof t == "function" ? t : vh; } function Ve(t, e) { - var r = Pr(t) ? nde : Dp; + var r = Pr(t) ? ide : Dp; return r(t, dI(e)); } function uNt(t, e) { @@ -65869,14 +65894,14 @@ function Hl(t, e, r) { var n = Pr(t) ? uNt : hNt; return r && Y0(t, e, r) && (e = void 0), n(t, fo(e)); } -function kde(t, e) { +function Sde(t, e) { var r = []; return Dp(t, function(n, i, s) { e(n, i, s) && r.push(n); }), r; } function ni(t, e) { - var r = Pr(t) ? oI : kde; + var r = Pr(t) ? oI : Sde; return r(t, fo(e)); } function fNt(t) { @@ -65898,21 +65923,21 @@ function pNt(t, e, r) { if (!n) return -1; var i = r == null ? 0 : bw(r); - return i < 0 && (i = dNt(n + i, 0)), ide(t, fo(e), i); + return i < 0 && (i = dNt(n + i, 0)), sde(t, fo(e), i); } var gNt = fNt(pNt); const Oh = gNt; function oc(t) { return t && t.length ? t[0] : void 0; } -function Sde(t, e) { +function Tde(t, e) { var r = -1, n = ku(t) ? Array(t.length) : []; return Dp(t, function(i, s, a) { n[++r] = e(i, s, a); }), n; } function St(t, e) { - var r = Pr(t) ? Af : Sde; + var r = Pr(t) ? Af : Tde; return r(t, fo(e)); } function Lo(t, e) { @@ -65936,7 +65961,7 @@ function TNt(t, e) { return t != null && SNt.call(t, e); } function _t(t, e) { - return t != null && bde(t, e, TNt); + return t != null && xde(t, e, TNt); } var CNt = "[object String]"; function ao(t) { @@ -65957,7 +65982,7 @@ function $a(t, e, r, n) { return r < 0 && (r = _Nt(i + r, 0)), ao(t) ? r <= i && t.indexOf(e, r) > -1 : !!i && iI(t, e, r) > -1; } var ANt = Math.max; -function jW(t, e, r) { +function KW(t, e, r) { var n = t == null ? 0 : t.length; if (!n) return -1; @@ -65968,12 +65993,12 @@ var LNt = "[object RegExp]"; function RNt(t) { return vl(t) && Ph(t) == LNt; } -var KW = Hf && Hf.isRegExp, MNt = KW ? B1(KW) : RNt; +var JW = Hf && Hf.isRegExp, MNt = JW ? B1(JW) : RNt; const kh = MNt; function tn(t) { return t === void 0; } -function Tde(t, e) { +function Cde(t, e) { return t < e; } function sE(t, e) { @@ -65994,10 +66019,10 @@ function K0(t) { return t && t.length ? pI(t, vh, ONt) : void 0; } function Zm(t) { - return t && t.length ? pI(t, vh, Tde) : void 0; + return t && t.length ? pI(t, vh, Cde) : void 0; } function gI(t, e) { - return t && t.length ? pI(t, fo(e), Tde) : void 0; + return t && t.length ? pI(t, fo(e), Cde) : void 0; } var DNt = "Expected a function"; function PNt(t) { @@ -66034,7 +66059,7 @@ function NNt(t, e, r, n) { } return t; } -function Cde(t, e, r) { +function Ede(t, e, r) { for (var n = -1, i = e.length, s = {}; ++n < i; ) { var a = e[n], o = rE(t, a); r(o, a) && NNt(s, tE(a, t), o); @@ -66044,10 +66069,10 @@ function Cde(t, e, r) { function vc(t, e) { if (t == null) return {}; - var r = Af(hde(t), function(n) { + var r = Af(fde(t), function(n) { return [n]; }); - return e = fo(e), Cde(t, r, function(n, i) { + return e = fo(e), Ede(t, r, function(n, i) { return e(n, i[0]); }); } @@ -66087,7 +66112,7 @@ function FNt(t, e, r) { }) : e = [vh]; var n = -1; e = Af(e, B1(fo)); - var i = Sde(t, function(s, a, o) { + var i = Tde(t, function(s, a, o) { var l = Af(e, function(u) { return u(s); }); @@ -66098,8 +66123,8 @@ function FNt(t, e, r) { }); } function zNt(t, e) { - return Cde(t, e, function(r, n) { - return xde(t, n); + return Ede(t, e, function(r, n) { + return wde(t, n); }); } var QNt = WMt(function(t, e) { @@ -66129,7 +66154,7 @@ function Ri(t, e, r) { return n(t, fo(e), r, i, Dp); } function aE(t, e) { - var r = Pr(t) ? oI : kde; + var r = Pr(t) ? oI : Sde; return r(t, PNt(fo(e))); } function XNt(t, e) { @@ -66138,8 +66163,8 @@ function XNt(t, e) { return r = e(n, i, s), !r; }), !!r; } -function Ede(t, e, r) { - var n = Pr(t) ? gde : XNt; +function _de(t, e, r) { + var n = Pr(t) ? mde : XNt; return r && Y0(t, e, r) && (e = void 0), n(t, fo(e)); } var HNt = ow(function(t, e) { @@ -66155,9 +66180,9 @@ var ZNt = 1 / 0, jNt = Yg && 1 / uI(new Yg([, -0]))[1] == ZNt ? function(t) { const KNt = jNt; var JNt = 200; function mI(t, e, r) { - var n = -1, i = sde, s = t.length, a = !0, o = [], l = o; + var n = -1, i = ade, s = t.length, a = !0, o = [], l = o; if (r) - a = !1, i = Ode; + a = !1, i = kde; else if (s >= JNt) { var u = e ? null : KNt(t); if (u) @@ -66191,7 +66216,7 @@ function rIt(t, e) { var nIt = 0; function yI(t) { var e = ++nIt; - return ade(t) + e; + return ode(t) + e; } function iIt(t, e, r) { for (var n = -1, i = t.length, s = e.length, a = {}; ++n < i; ) { @@ -66203,7 +66228,7 @@ function iIt(t, e, r) { function sIt(t, e) { return iIt(t || [], e || [], aw); } -var aIt = "\0", Id = "\0", JW = ""; +var aIt = "\0", Id = "\0", eG = ""; class Ji { constructor(e = {}) { this._isDirected = _t(e, "directed") ? e.directed : !0, this._isMultigraph = _t(e, "multigraph") ? e.multigraph : !1, this._isCompound = _t(e, "compound") ? e.compound : !1, this._label = void 0, this._defaultNodeLabelFn = Sg(void 0), this._defaultEdgeLabelFn = Sg(void 0), this._nodes = {}, this._isCompound && (this._parent = {}, this._children = {}, this._children[Id] = {}), this._in = {}, this._preds = {}, this._out = {}, this._sucs = {}, this._edgeObjs = {}, this._edgeLabels = {}; @@ -66373,7 +66398,7 @@ class Ji { 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 = oIt(this._isDirected, e, r, n); - return e = l.v, r = l.w, Object.freeze(l), this._edgeObjs[o] = l, eG(this._preds[r], e), eG(this._sucs[e], r), this._in[r][o] = l, this._out[e][o] = l, this._edgeCount++, this; + return e = l.v, r = l.w, Object.freeze(l), this._edgeObjs[o] = l, tG(this._preds[r], e), tG(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 ? DA(this._isDirected, arguments[0]) : gy(this._isDirected, e, r, n); @@ -66385,7 +66410,7 @@ class Ji { } removeEdge(e, r, n) { var i = arguments.length === 1 ? DA(this._isDirected, arguments[0]) : gy(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], tG(this._preds[r], e), tG(this._sucs[e], r), delete this._in[r][i], delete this._out[e][i], this._edgeCount--), this; + return s && (e = s.v, r = s.w, delete this._edgeLabels[i], delete this._edgeObjs[i], rG(this._preds[r], e), rG(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]; @@ -66413,10 +66438,10 @@ class Ji { } Ji.prototype._nodeCount = 0; Ji.prototype._edgeCount = 0; -function eG(t, e) { +function tG(t, e) { t[e] ? t[e]++ : t[e] = 1; } -function tG(t, e) { +function rG(t, e) { --t[e] || delete t[e]; } function gy(t, e, r, n) { @@ -66425,7 +66450,7 @@ function gy(t, e, r, n) { var a = i; i = s, s = a; } - return i + JW + s + JW + (tn(n) ? aIt : n); + return i + eG + s + eG + (tn(n) ? aIt : n); } function oIt(t, e, r, n) { var i = "" + e, s = "" + r; @@ -66447,11 +66472,11 @@ class lIt { dequeue() { var e = this._sentinel, r = e._prev; if (r !== e) - return rG(r), r; + return nG(r), r; } enqueue(e) { var r = this._sentinel; - e._prev && e._next && rG(e), e._next = r._next, r._next._prev = e, r._next = e, e._prev = r; + e._prev && e._next && nG(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; ) @@ -66459,7 +66484,7 @@ class lIt { return "[" + e.join(", ") + "]"; } } -function rG(t) { +function nG(t) { t._prev._next = t._next, t._next._prev = t._prev, delete t._next, delete t._prev; } function cIt(t, e) { @@ -66571,7 +66596,7 @@ function vIt(t) { }); }), e; } -function _de(t) { +function Ade(t) { var e = new Ji({ multigraph: t.isMultigraph() }).setGraph(t.graph()); return Ve(t.nodes(), function(r) { t.children(r).length || e.setNode(r, t.node(r)); @@ -66579,7 +66604,7 @@ function _de(t) { e.setEdge(r, t.edge(r)); }), e; } -function nG(t, e) { +function iG(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"); @@ -66587,7 +66612,7 @@ function nG(t, e) { 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 oE(t) { - var e = St(jm(Ade(t) + 1), function() { + var e = St(jm(Lde(t) + 1), function() { return []; }); return Ve(t.nodes(), function(r) { @@ -66623,14 +66648,14 @@ function bIt(t) { }); }); } -function iG(t, e, r, n) { +function sG(t, e, r, n) { var i = { width: 0, height: 0 }; return arguments.length >= 4 && (i.rank = r, i.order = n), q1(t, "border", i, e); } -function Ade(t) { +function Lde(t) { return K0( St(t.nodes(), function(e) { var r = t.node(e).rank; @@ -66646,11 +66671,11 @@ function xIt(t, e) { }), r; } function wIt(t, e) { - var r = ZW(); + var r = jW(); try { return e(); } finally { - console.log(t + " time: " + (ZW() - r) + "ms"); + console.log(t + " time: " + (jW() - r) + "ms"); } } function OIt(t, e) { @@ -66662,31 +66687,31 @@ function kIt(t) { if (n.length && Ve(n, e), _t(i, "minRank")) { i.borderLeft = [], i.borderRight = []; for (var s = i.minRank, a = i.maxRank + 1; s < a; ++s) - sG(t, "borderLeft", "_bl", r, i, s), sG(t, "borderRight", "_br", r, i, s); + aG(t, "borderLeft", "_bl", r, i, s), aG(t, "borderRight", "_br", r, i, s); } } Ve(t.children(), e); } -function sG(t, e, r, n, i, s) { +function aG(t, e, r, n, i, s) { var a = { width: 0, height: 0, rank: s, borderType: e }, o = i[e][s - 1], l = q1(t, "border", a, r); i[e][s] = l, t.setParent(l, n), o && t.setEdge(o, l, { weight: 1 }); } function SIt(t) { var e = t.graph().rankdir.toLowerCase(); - (e === "lr" || e === "rl") && Lde(t); + (e === "lr" || e === "rl") && Rde(t); } function TIt(t) { var e = t.graph().rankdir.toLowerCase(); - (e === "bt" || e === "rl") && CIt(t), (e === "lr" || e === "rl") && (EIt(t), Lde(t)); + (e === "bt" || e === "rl") && CIt(t), (e === "lr" || e === "rl") && (EIt(t), Rde(t)); } -function Lde(t) { +function Rde(t) { Ve(t.nodes(), function(e) { - aG(t.node(e)); + oG(t.node(e)); }), Ve(t.edges(), function(e) { - aG(t.edge(e)); + oG(t.edge(e)); }); } -function aG(t) { +function oG(t) { var e = t.width; t.width = t.height, t.height = e; } @@ -66760,7 +66785,7 @@ function bI(t) { function yb(t, e) { return t.node(e.w).rank - t.node(e.v).rank - t.edge(e).minlen; } -function Rde(t) { +function Mde(t) { var e = new Ji({ directed: !1 }), r = t.nodes()[0], n = t.nodeCount(); e.setNode(r, {}); for (var i, s; RIt(e, t) < n; ) @@ -66790,38 +66815,38 @@ function DIt(t, e, r) { function PIt() { } PIt.prototype = new Error(); -function Mde(t, e, r) { +function Dde(t, e, r) { Pr(e) || (e = [e]); var n = (t.isDirected() ? t.successors : t.neighbors).bind(t), i = [], s = {}; return Ve(e, function(a) { if (!t.hasNode(a)) throw new Error("Graph does not have node: " + a); - Dde(t, a, r === "post", s, n, i); + Pde(t, a, r === "post", s, n, i); }), i; } -function Dde(t, e, r, n, i, s) { +function Pde(t, e, r, n, i, s) { _t(n, e) || (n[e] = !0, r || s.push(e), Ve(i(e), function(a) { - Dde(t, a, r, n, i, s); + Pde(t, a, r, n, i, s); }), r && s.push(e)); } function NIt(t, e) { - return Mde(t, e, "post"); + return Dde(t, e, "post"); } function IIt(t, e) { - return Mde(t, e, "pre"); + return Dde(t, e, "pre"); } Pp.initLowLimValues = wI; Pp.initCutValues = xI; -Pp.calcCutValue = Pde; -Pp.leaveEdge = Ide; -Pp.enterEdge = $de; -Pp.exchangeEdges = Bde; +Pp.calcCutValue = Nde; +Pp.leaveEdge = $de; +Pp.enterEdge = Bde; +Pp.exchangeEdges = Fde; function Pp(t) { t = vIt(t), bI(t); - var e = Rde(t); + var e = Mde(t); wI(e), xI(e, t); - for (var r, n; r = Ide(e); ) - n = $de(e, t, r), Bde(e, t, r, n); + for (var r, n; r = $de(e); ) + n = Bde(e, t, r), Fde(e, t, r, n); } function xI(t, e) { var r = NIt(t, t.nodes()); @@ -66831,9 +66856,9 @@ function xI(t, e) { } function $It(t, e, r) { var n = t.node(r), i = n.parent; - t.edge(r, i).cutvalue = Pde(t, e, r); + t.edge(r, i).cutvalue = Nde(t, e, r); } -function Pde(t, e, r) { +function Nde(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, Ve(e.nodeEdges(r), function(l) { var u = l.v === r, h = u ? l.w : l.v; @@ -66847,32 +66872,32 @@ function Pde(t, e, r) { }), o; } function wI(t, e) { - arguments.length < 2 && (e = t.nodes()[0]), Nde(t, {}, 1, e); + arguments.length < 2 && (e = t.nodes()[0]), Ide(t, {}, 1, e); } -function Nde(t, e, r, n, i) { +function Ide(t, e, r, n, i) { var s = r, a = t.node(n); return e[n] = !0, Ve(t.neighbors(n), function(o) { - _t(e, o) || (r = Nde(t, e, r, o, n)); + _t(e, o) || (r = Ide(t, e, r, o, n)); }), a.low = s, a.lim = r++, i ? a.parent = i : delete a.parent, r; } -function Ide(t) { +function $de(t) { return Oh(t.edges(), function(e) { return t.edge(e).cutvalue < 0; }); } -function $de(t, e, r) { +function Bde(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 = ni(e.edges(), function(h) { - return l === oG(t, t.node(h.v), o) && l !== oG(t, t.node(h.w), o); + return l === lG(t, t.node(h.v), o) && l !== lG(t, t.node(h.w), o); }); return gI(u, function(h) { return yb(e, h); }); } -function Bde(t, e, r, n) { +function Fde(t, e, r, n) { var i = r.v, s = r.w; t.removeEdge(i, s), t.setEdge(n.v, n.w, {}), wI(t), xI(t, e), BIt(t, e); } @@ -66888,13 +66913,13 @@ function BIt(t, e) { function FIt(t, e, r) { return t.hasEdge(e, r); } -function oG(t, e, r) { +function lG(t, e, r) { return r.low <= e.lim && e.lim <= r.lim; } function zIt(t) { switch (t.graph().ranker) { case "network-simplex": - lG(t); + cG(t); break; case "tight-tree": UIt(t); @@ -66903,14 +66928,14 @@ function zIt(t) { QIt(t); break; default: - lG(t); + cG(t); } } var QIt = bI; function UIt(t) { - bI(t), Rde(t); + bI(t), Mde(t); } -function lG(t) { +function cG(t) { Pp(t); } function VIt(t) { @@ -66920,18 +66945,18 @@ function VIt(t) { }); var s = YIt(t) + 1; Ve(t.children(), function(a) { - Fde(t, e, i, s, n, r, a); + zde(t, e, i, s, n, r, a); }), t.graph().nodeRankFactor = i; } -function Fde(t, e, r, n, i, s, a) { +function zde(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 = iG(t, "_bt"), u = iG(t, "_bb"), h = t.node(a); + var l = sG(t, "_bt"), u = sG(t, "_bb"), h = t.node(a); t.setParent(l, a), h.borderTop = l, t.setParent(u, a), h.borderBottom = u, Ve(o, function(f) { - Fde(t, e, r, n, i, s, f); + zde(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, @@ -67142,13 +67167,13 @@ function n$t(t, e) { }), n = r.lhs, i = Ow(r.rhs, function(h) { return -h.i; }), s = [], a = 0, o = 0, l = 0; - n.sort(i$t(!!e)), l = cG(s, i, l), Ve(n, function(h) { - l += h.vs.length, s.push(h.vs), a += h.barycenter * h.weight, o += h.weight, l = cG(s, i, l); + n.sort(i$t(!!e)), l = uG(s, i, l), Ve(n, function(h) { + l += h.vs.length, s.push(h.vs), a += h.barycenter * h.weight, o += h.weight, l = uG(s, i, l); }); var u = { vs: as(s) }; return o && (u.barycenter = a / o, u.weight = o), u; } -function cG(t, e, r) { +function uG(t, e, r) { for (var n; e.length && (n = hu(e)).i <= r; ) e.pop(), t.push(n.vs), r++; return r; @@ -67158,7 +67183,7 @@ function i$t(t) { return e.barycenter < r.barycenter ? -1 : e.barycenter > r.barycenter ? 1 : t ? r.i - e.i : e.i - r.i; }; } -function zde(t, e, r, n) { +function Qde(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 = ni(i, function(g) { return g !== a && g !== o; @@ -67166,7 +67191,7 @@ function zde(t, e, r, n) { var u = JIt(t, i); Ve(u, function(g) { if (t.children(g.v).length) { - var m = zde(t, g.v, r, n); + var m = Qde(t, g.v, r, n); l[g.v] = m, _t(m, "barycenter") && a$t(g, m); } }); @@ -67192,16 +67217,16 @@ function a$t(t, e) { tn(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 o$t(t) { - var e = Ade(t), r = uG(t, jm(1, e + 1), "inEdges"), n = uG(t, jm(e - 1, -1, -1), "outEdges"), i = KIt(t); - hG(t, i); + var e = Lde(t), r = hG(t, jm(1, e + 1), "inEdges"), n = hG(t, jm(e - 1, -1, -1), "outEdges"), i = KIt(t); + fG(t, i); for (var s = Number.POSITIVE_INFINITY, a, o = 0, l = 0; l < 4; ++o, ++l) { l$t(o % 2 ? r : n, o % 4 >= 2), i = oE(t); var u = ZIt(t, i); u < s && (l = 0, a = dPt(i), s = u); } - hG(t, a); + fG(t, a); } -function uG(t, e, r) { +function hG(t, e, r) { return St(e, function(n) { return XIt(t, n, r); }); @@ -67209,13 +67234,13 @@ function uG(t, e, r) { function l$t(t, e) { var r = new Ji(); Ve(t, function(n) { - var i = n.graph().root, s = zde(n, i, r, e); + var i = n.graph().root, s = Qde(n, i, r, e); Ve(s.vs, function(a, o) { n.node(a).order = o; }), GIt(n, r, s.vs); }); } -function hG(t, e) { +function fG(t, e) { Ve(e, function(r) { Ve(r, function(n, i) { t.node(n).order = i; @@ -67267,7 +67292,7 @@ function f$t(t, e) { (d || h === u) && (Ve(s.slice(o, f + 1), function(g) { Ve(t.predecessors(g), function(m) { var v = t.node(m), y = v.order; - (y < a || p < y) && !(v.dummy && t.node(g).dummy) && Qde(r, m, g); + (y < a || p < y) && !(v.dummy && t.node(g).dummy) && Ude(r, m, g); }); }), o = f + 1, a = p); }), s; @@ -67281,7 +67306,7 @@ function d$t(t, e) { Ve(jm(a, o), function(f) { h = s[f], t.node(h).dummy && Ve(t.predecessors(h), function(d) { var p = t.node(d); - p.dummy && (p.order < l || p.order > u) && Qde(r, d, h); + p.dummy && (p.order < l || p.order > u) && Ude(r, d, h); }); }); } @@ -67303,7 +67328,7 @@ function p$t(t, e) { return t.node(r).dummy; }); } -function Qde(t, e, r) { +function Ude(t, e, r) { if (e > r) { var n = e; e = r, r = n; @@ -67450,7 +67475,7 @@ function S$t(t, e) { return t.node(e).width; } function T$t(t) { - t = _de(t), C$t(t), vNt(O$t(t), function(e, r) { + t = Ade(t), C$t(t), vNt(O$t(t), function(e, r) { t.node(r).x = e; }); } @@ -67490,7 +67515,7 @@ function E$t(t, e) { }), e(" nestingGraph.run", function() { VIt(t); }), e(" rank", function() { - zIt(_de(t)); + zIt(Ade(t)); }), e(" injectEdgeLabelProxies", function() { F$t(t); }), e(" removeEmptyRanks", function() { @@ -67622,7 +67647,7 @@ function U$t(t) { function V$t(t) { Ve(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(nG(n, s)), r.points.push(nG(i, a)); + r.points ? (s = r.points[0], a = r.points[r.points.length - 1]) : (r.points = [], s = i, a = n), r.points.unshift(iG(n, s)), r.points.push(iG(i, a)); }); } function q$t(t) { @@ -67735,15 +67760,15 @@ function j$t(t) { return tn(e.name) || (n.name = e.name), tn(r) || (n.value = r), n; }); } -var Mr = /* @__PURE__ */ new Map(), v0 = /* @__PURE__ */ new Map(), Ude = /* @__PURE__ */ new Map(), K$t = /* @__PURE__ */ x(() => { - v0.clear(), Ude.clear(), Mr.clear(); +var Mr = /* @__PURE__ */ new Map(), v0 = /* @__PURE__ */ new Map(), Vde = /* @__PURE__ */ new Map(), K$t = /* @__PURE__ */ x(() => { + v0.clear(), Vde.clear(), Mr.clear(); }, "clear"), uS = /* @__PURE__ */ x((t, e) => { const r = v0.get(e) || []; return Z.trace("In isDescendant", e, " ", t, " = ", r.includes(t)), r.includes(t); }, "isDescendant"), J$t = /* @__PURE__ */ x((t, e) => { const r = v0.get(e) || []; return Z.info("Descendants of ", e, " is ", r), Z.info("Edge is ", t), t.v === e || t.w === e ? !1 : r ? r.includes(t.v) || uS(t.v, e) || uS(t.w, e) || r.includes(t.w) : (Z.debug("Tilt, ", e, ",not in descendants"), !1); -}, "edgeInCluster"), Vde = /* @__PURE__ */ x((t, e, r, n) => { +}, "edgeInCluster"), qde = /* @__PURE__ */ x((t, e, r, n) => { Z.warn( "Copying children of ", t, @@ -67756,7 +67781,7 @@ var Mr = /* @__PURE__ */ new Map(), v0 = /* @__PURE__ */ new Map(), Ude = /* @__ const i = e.children(t) || []; t !== n && i.push(t), Z.warn("Copying (nodes) clusterId", t, "nodes", i), i.forEach((s) => { if (e.children(s).length > 0) - Vde(s, e, r, n); + qde(s, e, r, n); else { const a = e.node(s); Z.info("cp ", s, " to ", n, " with parent ", t), r.setNode(s, a), n !== e.parent(s) && (Z.warn("Setting parent", s, e.parent(s)), r.setParent(s, e.parent(s))), t !== n && s !== t ? (Z.debug("Setting parent", s, t), r.setParent(s, t)) : (Z.info("In copy ", t, "root", n, "data", e.node(t), n), Z.debug( @@ -67790,11 +67815,11 @@ var Mr = /* @__PURE__ */ new Map(), v0 = /* @__PURE__ */ new Map(), Ude = /* @__ } Z.debug("Removing node", s), e.removeNode(s); }); -}, "copy"), qde = /* @__PURE__ */ x((t, e) => { +}, "copy"), Yde = /* @__PURE__ */ x((t, e) => { const r = e.children(t); let n = [...r]; for (const i of r) - Ude.set(i, t), n = [...n, ...qde(i, e)]; + Vde.set(i, t), n = [...n, ...Yde(i, e)]; return n; }, "extractDescendants"), eBt = /* @__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 })); @@ -67813,7 +67838,7 @@ var Mr = /* @__PURE__ */ new Map(), v0 = /* @__PURE__ */ new Map(), Ude = /* @__ return a; } return i; -}, "findNonClusterChild"), fG = /* @__PURE__ */ x((t) => !Mr.has(t) || !Mr.get(t).externalConnections ? t : Mr.has(t) ? Mr.get(t).id : t, "getAnchorId"), tBt = /* @__PURE__ */ x((t, e) => { +}, "findNonClusterChild"), dG = /* @__PURE__ */ x((t) => !Mr.has(t) || !Mr.get(t).externalConnections ? t : Mr.has(t) ? Mr.get(t).id : t, "getAnchorId"), tBt = /* @__PURE__ */ x((t, e) => { if (!t || e > 10) { Z.debug("Opting out, no graph "); return; @@ -67825,7 +67850,7 @@ var Mr = /* @__PURE__ */ new Map(), v0 = /* @__PURE__ */ new Map(), Ude = /* @__ r, " Replacement id in edges: ", bb(r, t, r) - ), v0.set(r, qde(r, t)), Mr.set(r, { id: bb(r, t, r), clusterData: t.node(r) })); + ), v0.set(r, Yde(r, t)), Mr.set(r, { id: bb(r, t, r), clusterData: t.node(r) })); }), t.nodes().forEach(function(r) { const n = t.children(r), i = t.edges(); n.length > 0 ? (Z.debug("Cluster identified", r, v0), i.forEach((s) => { @@ -67852,7 +67877,7 @@ var Mr = /* @__PURE__ */ new Map(), v0 = /* @__PURE__ */ new Map(), Ude = /* @__ " --- ", Mr.get(r.w) ), Mr.get(r.v) || Mr.get(r.w)) { - if (Z.warn("Fixing and trying - removing XXX", r.v, r.w, r.name), i = fG(r.v), s = fG(r.w), t.removeEdge(r.v, r.w, r.name), i !== r.v) { + if (Z.warn("Fixing and trying - removing XXX", r.v, r.w, r.name), i = dG(r.v), s = dG(r.w), t.removeEdge(r.v, r.w, r.name), i !== r.v) { const a = t.parent(i); Mr.get(a).externalConnections = !0, n.fromCluster = r.v; } @@ -67862,8 +67887,8 @@ var Mr = /* @__PURE__ */ new Map(), v0 = /* @__PURE__ */ new Map(), Ude = /* @__ } Z.warn("Fix Replacing with XXX", i, s, r.name), t.setEdge(i, s, n, r.name); } - }), Z.warn("Adjusted Graph", Ai(t)), Yde(t, 0), Z.trace(Mr); -}, "adjustClustersAndEdges"), Yde = /* @__PURE__ */ x((t, e) => { + }), Z.warn("Adjusted Graph", Ai(t)), Wde(t, 0), Z.trace(Mr); +}, "adjustClustersAndEdges"), Wde = /* @__PURE__ */ x((t, e) => { var i, s; if (Z.warn("extractor - ", e, Ai(t), t.children("D")), e > 10) { Z.error("Bailing out"); @@ -67912,7 +67937,7 @@ var Mr = /* @__PURE__ */ new Map(), v0 = /* @__PURE__ */ new Map(), Ude = /* @__ }).setDefaultEdgeLabel(function() { return {}; }); - Z.warn("Old graph before copy", Ai(t)), Vde(a, t, u, a), t.setNode(a, { + Z.warn("Old graph before copy", Ai(t)), qde(a, t, u, a), t.setNode(a, { clusterNode: !0, id: a, clusterData: Mr.get(a).clusterData, @@ -67935,17 +67960,17 @@ var Mr = /* @__PURE__ */ new Map(), v0 = /* @__PURE__ */ new Map(), Ude = /* @__ r = t.nodes(), Z.warn("New list of nodes", r); for (const a of r) { const o = t.node(a); - Z.warn(" Now next level", a, o), o != null && o.clusterNode && Yde(o.graph, e + 1); + Z.warn(" Now next level", a, o), o != null && o.clusterNode && Wde(o.graph, e + 1); } -}, "extractor"), Wde = /* @__PURE__ */ x((t, e) => { +}, "extractor"), Gde = /* @__PURE__ */ x((t, e) => { if (e.length === 0) return []; let r = Object.assign([], e); return e.forEach((n) => { - const i = t.children(n), s = Wde(t, i); + const i = t.children(n), s = Gde(t, i); r = [...r, ...s]; }), r; -}, "sorter"), rBt = /* @__PURE__ */ x((t) => Wde(t, t.children()), "sortNodesByHierarchy"), Gde = /* @__PURE__ */ x(async (t, e, r, n, i, s) => { +}, "sorter"), rBt = /* @__PURE__ */ x((t) => Gde(t, t.children()), "sortNodesByHierarchy"), Xde = /* @__PURE__ */ x(async (t, e, r, n, i, s) => { Z.warn("Graph in recursive render:XAX", Ai(e), i); const a = e.graph().rankdir; Z.trace("Dir in recursive render - dir:", a); @@ -67977,7 +68002,7 @@ Parent cluster`, ranksep: y + 25, nodesep: b }); - const w = await Gde( + const w = await Xde( f, v.graph, r, @@ -68002,7 +68027,7 @@ Parent cluster`, v.width, "Graph:", e - ), Z.trace(bb(v.id, e)), Mr.set(v.id, { id: bb(v.id, e), node: v })) : (Z.trace("Node - the non recursive path XAX", m, f, e.node(m), a), await Zle(f, e.node(m), a)); + ), Z.trace(bb(v.id, e)), Mr.set(v.id, { id: bb(v.id, e), node: v })) : (Z.trace("Node - the non recursive path XAX", m, f, e.node(m), a), await jle(f, e.node(m), a)); }) ), await (/* @__PURE__ */ x(async () => { const m = e.edges().map(async function(v) { @@ -68016,7 +68041,7 @@ Parent cluster`, "Translating: ", Mr.get(v.v), Mr.get(v.w) - ), await Fle(h, y); + ), await zle(h, y); }); await Promise.all(m); }, "processEdges"))(), Z.info("Graph before layout:", JSON.stringify(Ai(e))), Z.info("############################################# XXX"), Z.info("### Layout ### XXX"), Z.info("############################################# XXX"), Y1(e), Z.info("Graph after layout:", JSON.stringify(Ai(e))); @@ -68042,7 +68067,7 @@ Parent cluster`, v.x, v.y, e.parent(m) - ), Mr.get(v.id).node = v, dY(v); + ), Mr.get(v.id).node = v, pY(v); else if (e.children(m).length > 0) { Z.info( "A pure cluster node XBX1", @@ -68055,7 +68080,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; - Z.debug("OffsetY", O, "labelHeight", w, "halfPadding", b), await Ble(l, v), Mr.get(v.id).node = v; + Z.debug("OffsetY", O, "labelHeight", w, "halfPadding", b), await Fle(l, v), Mr.get(v.id).node = v; } else { const b = e.node(v.parentId); v.y += g / 2, Z.info( @@ -68073,7 +68098,7 @@ Parent cluster`, b, b == null ? void 0 : b.offsetY, v - ), dY(v); + ), pY(v); } }) ), e.edges().forEach(function(m) { @@ -68081,8 +68106,8 @@ Parent cluster`, Z.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 = Ule(u, v, Mr, r, y, b, n); - zle(v, w); + const w = Vle(u, v, Mr, r, y, b, n); + Qle(v, w); }), e.nodes().forEach(function(m) { const v = e.node(m); Z.info(m, v.type, v.diff), v.isGroup && (p = v.diff); @@ -68101,7 +68126,7 @@ Parent cluster`, }).setDefaultEdgeLabel(function() { return {}; }), n = e.select("g"); - Vle(n, t.markers, t.type, t.diagramId), eEt(), nCt(), eCt(), K$t(), t.nodes.forEach((f) => { + qle(n, t.markers, t.type, t.diagramId), eEt(), nCt(), eCt(), K$t(), t.nodes.forEach((f) => { r.setNode(f.id, { ...f }), f.parentId && r.setParent(f.id, f.parentId); }), Z.debug("Edges:", t.edges), t.edges.forEach((f) => { if (f.start === f.end) { @@ -68135,7 +68160,7 @@ Parent cluster`, r.setEdge(f.start, f.end, { ...f }, f.id); }), Z.warn("Graph at first:", JSON.stringify(Ai(r))), tBt(r), Z.warn("Graph after XAX:", JSON.stringify(Ai(r))); const i = ke(); - await Gde( + await Xde( n, r, t.type, @@ -68154,7 +68179,7 @@ var lE = /* @__PURE__ */ x((t, e) => { for (const n in e.attrs) r.attr(n, e.attrs[n]); return e.class && r.attr("class", e.class), r; -}, "drawRect"), Xde = /* @__PURE__ */ x((t, e) => { +}, "drawRect"), Hde = /* @__PURE__ */ x((t, e) => { const r = { x: e.startx, y: e.starty, @@ -68820,10 +68845,10 @@ var lBt = hS, lc = [], Lf = [""], _a = "global", Zl = "", fu = [ link: null, parentBoundary: "" } -], xb = [], kI = "", SI = !1, fS = 4, dS = 2, Hde, cBt = /* @__PURE__ */ x(function() { - return Hde; +], xb = [], kI = "", SI = !1, fS = 4, dS = 2, Zde, cBt = /* @__PURE__ */ x(function() { + return Zde; }, "getC4Type"), uBt = /* @__PURE__ */ x(function(t) { - Hde = yi(t, ke()); + Zde = yi(t, ke()); }, "setC4Type"), hBt = /* @__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; @@ -69142,15 +69167,15 @@ var lBt = hS, lc = [], Lf = [""], _a = "global", Zl = "", fu = [ return _a; }, "getCurrentBoundaryParse"), TBt = /* @__PURE__ */ x(function() { return Zl; -}, "getParentBoundaryParse"), Zde = /* @__PURE__ */ x(function(t) { +}, "getParentBoundaryParse"), jde = /* @__PURE__ */ x(function(t) { return t == null ? lc : lc.filter((e) => e.parentBoundary === t); }, "getC4ShapeArray"), CBt = /* @__PURE__ */ x(function(t) { return lc.find((e) => e.alias === t); }, "getC4Shape"), EBt = /* @__PURE__ */ x(function(t) { - return Object.keys(Zde(t)); -}, "getC4ShapeKeys"), jde = /* @__PURE__ */ x(function(t) { + return Object.keys(jde(t)); +}, "getC4ShapeKeys"), Kde = /* @__PURE__ */ x(function(t) { return t == null ? fu : fu.filter((e) => e.parentBoundary === t); -}, "getBoundaries"), _Bt = jde, ABt = /* @__PURE__ */ x(function() { +}, "getBoundaries"), _Bt = Kde, ABt = /* @__PURE__ */ x(function() { return xb; }, "getRels"), LBt = /* @__PURE__ */ x(function() { return kI; @@ -69216,10 +69241,10 @@ var lBt = hS, lc = [], Lf = [""], _a = "global", Zl = "", fu = [ updateLayoutConfig: wBt, autoWrap: xd, setWrap: RBt, - getC4ShapeArray: Zde, + getC4ShapeArray: jde, getC4Shape: CBt, getC4ShapeKeys: EBt, - getBoundaries: jde, + getBoundaries: Kde, getBoundarys: _Bt, getCurrentBoundaryParse: SBt, getParentBoundaryParse: TBt, @@ -69241,7 +69266,7 @@ var lBt = hS, lc = [], Lf = [""], _a = "global", Zl = "", fu = [ setC4Type: uBt }, TI = /* @__PURE__ */ x(function(t, e) { return lE(t, e); -}, "drawRect"), Kde = /* @__PURE__ */ x(function(t, e, r, n, i, s) { +}, "drawRect"), Jde = /* @__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 : yd(s); @@ -69388,7 +69413,7 @@ var lBt = hS, lc = [], Lf = [""], _a = "global", Zl = "", fu = [ 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": - Kde( + Jde( o, 48, 48, @@ -69497,7 +69522,7 @@ var lBt = hS, lc = [], Lf = [""], _a = "global", Zl = "", fu = [ drawBoundary: BBt, drawC4Shape: FBt, drawRels: $Bt, - drawImage: Kde, + drawImage: Jde, insertArrowHead: VBt, insertArrowEnd: qBt, insertArrowFilledHead: YBt, @@ -69506,9 +69531,9 @@ var lBt = hS, lc = [], Lf = [""], _a = "global", Zl = "", fu = [ insertDatabaseIcon: zBt, insertComputerIcon: QBt, insertClockIcon: UBt -}, pS = 0, gS = 0, Jde = 4, YL = 2; +}, pS = 0, gS = 0, e0e = 4, YL = 2; hS.yy = qL; -var Wt = {}, nx, e0e = (nx = class { +var Wt = {}, nx, t0e = (nx = 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, WL(e.db.getConfig()); } @@ -69521,7 +69546,7 @@ var Wt = {}, nx, e0e = (nx = 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 > Jde) && (r = this.nextData.startx + e.margin + Wt.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 > e0e) && (r = this.nextData.startx + e.margin + Wt.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 = { @@ -69561,7 +69586,7 @@ var Wt = {}, nx, e0e = (nx = class { function il(t, e, r, n, i) { if (!e[t].width) if (r) - e[t].text = rle(e[t].text, i, n), e[t].textLines = e[t].text.split(mt.lineBreakRegex).length, e[t].width = i, e[t].height = B3(e[t].text, n); + e[t].text = nle(e[t].text, i, n), e[t].textLines = e[t].text.split(mt.lineBreakRegex).length, e[t].width = i, e[t].height = B3(e[t].text, n); else { let s = e[t].text.split(mt.lineBreakRegex); e[t].textLines = s.length; @@ -69575,13 +69600,13 @@ function il(t, e, r, n, i) { } } x(il, "calcC4ShapeTextWH"); -var t0e = /* @__PURE__ */ x(function(t, e, r) { +var r0e = /* @__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 = Wt.c4ShapeMargin - 35; let n = e.wrap && Wt.wrap, i = zk(Wt); i.fontSize = i.fontSize + 2, i.fontWeight = "bold"; let s = Wl(e.label.text, i); il("label", e, n, i, s), Rc.drawBoundary(t, e, Wt); -}, "drawBoundary"), r0e = /* @__PURE__ */ x(function(t, e, r, n) { +}, "drawBoundary"), n0e = /* @__PURE__ */ x(function(t, e, r, n) { let i = 0; for (const s of n) { i = 0; @@ -69621,7 +69646,7 @@ var t0e = /* @__PURE__ */ x(function(t, e, r) { } }, (() => { x(ix, "Point"); -})(), ix), dG = /* @__PURE__ */ x(function(t, e) { +})(), ix), pG = /* @__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 Vo(r + t.width, o) : n == s && r > i ? d = new Vo(r, o) : r == i && n < s ? d = new Vo(a, n + t.height) : r == i && n > s && (d = new Vo(a, n)), r > i && n < s ? f >= h ? d = new Vo(r, o + h * t.width / 2) : d = new Vo( a - l / u * t.height / 2, @@ -69633,9 +69658,9 @@ var t0e = /* @__PURE__ */ x(function(t, e, r) { }, "getIntersectPoint"), ZBt = /* @__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 = dG(t, r); + let n = pG(t, r); r.x = t.x + t.width / 2, r.y = t.y + t.height / 2; - let i = dG(e, r); + let i = pG(e, r); return { startPoint: n, endPoint: i }; }, "getIntersectPoints"), jBt = /* @__PURE__ */ x(function(t, e, r, n) { let i = 0; @@ -69651,7 +69676,7 @@ var t0e = /* @__PURE__ */ x(function(t, e, r) { Rc.drawRels(t, e, Wt); }, "drawRels"); function CI(t, e, r, n, i) { - let s = new e0e(i); + let s = new t0e(i); s.data.widthLimit = r.data.widthLimit / Math.min(YL, n.length); for (let [a, o] of n.entries()) { let l = 0; @@ -69693,7 +69718,7 @@ function CI(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 && r0e( + d.length > 0 && n0e( s, t, f, @@ -69706,7 +69731,7 @@ function CI(t, e, r, n, i) { s, p, i - ), o.alias !== "global" && t0e(t, o, s), r.data.stopy = Math.max( + ), o.alias !== "global" && r0e(t, o, s), r.data.stopy = Math.max( s.data.stopy + Wt.c4ShapeMargin, r.data.stopy ), r.data.stopx = Math.max( @@ -69723,10 +69748,10 @@ var KBt = /* @__PURE__ */ x(function(t, e, r, n) { i === "sandbox" && (s = ht("#i" + e)); const a = ht(i === "sandbox" ? s.nodes()[0].contentDocument.body : "body"); let o = n.db; - n.db.setWrap(Wt.wrap), Jde = o.getC4ShapeInRow(), YL = o.getC4BoundaryInRow(), Z.debug(`C:${JSON.stringify(Wt, null, 2)}`); + n.db.setWrap(Wt.wrap), e0e = o.getC4ShapeInRow(), YL = o.getC4BoundaryInRow(), Z.debug(`C:${JSON.stringify(Wt, null, 2)}`); const l = i === "sandbox" ? a.select(`[id="${e}"]`) : ht(`[id="${e}"]`); Rc.insertComputerIcon(l), Rc.insertDatabaseIcon(l), Rc.insertClockIcon(l); - let u = new e0e(n); + let u = new t0e(n); u.setData( Wt.diagramMarginX, Wt.diagramMarginX, @@ -69745,9 +69770,9 @@ var KBt = /* @__PURE__ */ x(function(t, e, r, n) { "viewBox", d.startx - Wt.diagramMarginX + " -" + (Wt.diagramMarginY + y) + " " + v + " " + (g + y) ), Z.debug("models:", d); -}, "draw"), pG = { - drawPersonOrSystemArray: r0e, - drawBoundary: t0e, +}, "draw"), gG = { + drawPersonOrSystemArray: n0e, + drawBoundary: r0e, setConf: WL, draw: KBt }, JBt = /* @__PURE__ */ x((t) => `.person { @@ -69757,20 +69782,20 @@ var KBt = /* @__PURE__ */ x(function(t, e, r, n) { `, "getStyles"), eFt = JBt, tFt = { parser: lBt, db: qL, - renderer: pG, + renderer: gG, styles: eFt, init: /* @__PURE__ */ x(({ c4: t, wrap: e }) => { - pG.setConf(t), qL.setWrap(e); + gG.setConf(t), qL.setWrap(e); }, "init") }; const rFt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, diagram: tFt }, Symbol.toStringTag, { value: "Module" })); -var n0e = /* @__PURE__ */ x((t, e) => { +var i0e = /* @__PURE__ */ x((t, e) => { let r; return e === "sandbox" && (r = ht("#i" + t)), ht(e === "sandbox" ? r.nodes()[0].contentDocument.body : "body").select(`[id="${t}"]`); -}, "getDiagramElement"), i0e = /* @__PURE__ */ x((t, e, r, n) => { +}, "getDiagramElement"), s0e = /* @__PURE__ */ x((t, e, r, n) => { t.attr("class", r); const { width: i, height: s, x: a, y: o } = nFt(t, e); Ds(t, s, i, n); @@ -69790,11 +69815,11 @@ function GL(t, e) { e && t.attr("style", e); } x(GL, "applyStyle"); -function s0e(t) { +function a0e(t) { const e = ht(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), GL(s, t.labelStyle), s.attr("class", i), GL(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(s0e, "addHtmlLabel"); +x(a0e, "addHtmlLabel"); var sFt = /* @__PURE__ */ x((t, e, r, n) => { let i = t || ""; if (typeof i == "object" && (i = i[0]), Pn(ke().flowchart.htmlLabels)) { @@ -69804,7 +69829,7 @@ var sFt = /* @__PURE__ */ x((t, e, r, n) => { label: bN(W0(i)), labelStyle: e.replace("fill:", "color:") }; - return s0e(s); + return a0e(s); } else { const s = document.createElementNS("http://www.w3.org/2000/svg", "text"); s.setAttribute("style", e.replace("color:", "fill:")); @@ -70008,36 +70033,36 @@ var aFt = /* @__PURE__ */ x((t) => { { x: o, y: -l } ] : [{ x: 0, y: 0 }]; }, "getArrowPoints"); -function a0e(t, e) { +function o0e(t, e) { return t.intersect(e); } -x(a0e, "intersectNode"); -var lFt = a0e; -function o0e(t, e, r, n) { +x(o0e, "intersectNode"); +var lFt = o0e; +function l0e(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(o0e, "intersectEllipse"); -var l0e = o0e; -function c0e(t, e, r) { - return l0e(t, e, e, r); +x(l0e, "intersectEllipse"); +var c0e = l0e; +function u0e(t, e, r) { + return c0e(t, e, e, r); } -x(c0e, "intersectCircle"); -var cFt = c0e; -function u0e(t, e, r, n) { +x(u0e, "intersectCircle"); +var cFt = u0e; +function h0e(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 && XL(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 && XL(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(u0e, "intersectLine"); +x(h0e, "intersectLine"); function XL(t, e) { return t * e > 0; } x(XL, "sameSign"); -var uFt = u0e, hFt = h0e; -function h0e(t, e, r) { +var uFt = h0e, hFt = f0e; +function f0e(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); @@ -70056,14 +70081,14 @@ function h0e(t, e, r) { return b < S ? -1 : b === S ? 0 : 1; }), s[0]) : t; } -x(h0e, "intersectPolygon"); +x(f0e, "intersectPolygon"); var fFt = /* @__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"), kw = fFt, Qn = { node: lFt, circle: cFt, - ellipse: l0e, + ellipse: c0e, polygon: hFt, rect: kw }, dFt = /* @__PURE__ */ x(async (t, e) => { @@ -70079,9 +70104,9 @@ var fFt = /* @__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), Zn(e, a), e.intersect = function(o) { return Qn.rect(e, o); }, n; -}, "note"), pFt = dFt, gG = /* @__PURE__ */ x((t) => t ? " " + t : "", "formatClass"), $o = /* @__PURE__ */ x((t, e) => `${e || "node default"}${gG(t.classes)} ${gG( +}, "note"), pFt = dFt, mG = /* @__PURE__ */ x((t) => t ? " " + t : "", "formatClass"), $o = /* @__PURE__ */ x((t, e) => `${e || "node default"}${mG(t.classes)} ${mG( t.class -)}`, "getClassesFromNode"), mG = /* @__PURE__ */ x(async (t, e) => { +)}`, "getClassesFromNode"), vG = /* @__PURE__ */ x(async (t, e) => { const { shapeSvg: r, bbox: n } = await ds( t, e, @@ -70383,7 +70408,7 @@ var _Ft = /* @__PURE__ */ x((t, e) => { return n.attr("class", "state-start").attr("r", 7).attr("width", 14).attr("height", 14), Zn(e, n), e.intersect = function(i) { return Qn.circle(e, 7, i); }, r; -}, "start"), vG = /* @__PURE__ */ x((t, e, r) => { +}, "start"), yG = /* @__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); @@ -70491,10 +70516,10 @@ var _Ft = /* @__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), Zn(e, o), e.intersect = function(E) { return Qn.rect(e, E); }, a; -}, "class_box"), yG = { - rhombus: mG, +}, "class_box"), bG = { + rhombus: vG, composite: CFt, - question: mG, + question: vG, rect: TFt, labelRect: EFt, rectWithTitle: _Ft, @@ -70515,16 +70540,16 @@ var _Ft = /* @__PURE__ */ x((t, e) => { end: PFt, note: pFt, subroutine: MFt, - fork: vG, - join: vG, + fork: yG, + join: yG, class_box: NFt }, Xg = {}, EI = /* @__PURE__ */ x(async (t, e, r) => { let n, i; if (e.link) { let s; - ke().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 yG[e.shape](n, e, r); + ke().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 bG[e.shape](n, e, r); } else - i = await yG[e.shape](t, e, r), n = i; + i = await bG[e.shape](t, e, r), n = i; return e.tooltip && i.attr("title", e.tooltip), e.class && i.attr("class", "node default " + e.class), Xg[e.id] = n, e.haveCallback && Xg[e.id].attr("class", Xg[e.id].attr("class") + " clickable"), n; }, "insertNode"), IFt = /* @__PURE__ */ x((t, e) => { Xg[e.id] = t; @@ -70543,7 +70568,7 @@ var _Ft = /* @__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"), BFt = "flowchart-", bG = 0, Km = ke(), td = /* @__PURE__ */ new Map(), Va = [], wb = /* @__PURE__ */ new Map(), Sh = [], _I = /* @__PURE__ */ new Map(), AI = /* @__PURE__ */ new Map(), Qk = 0, ZL = !0, qo, uE, hE = [], fE = /* @__PURE__ */ x((t) => mt.sanitizeText(t, Km), "sanitizeText"), dE = /* @__PURE__ */ x(function(t) { +}, "positionNode"), BFt = "flowchart-", xG = 0, Km = ke(), td = /* @__PURE__ */ new Map(), Va = [], wb = /* @__PURE__ */ new Map(), Sh = [], _I = /* @__PURE__ */ new Map(), AI = /* @__PURE__ */ new Map(), Qk = 0, ZL = !0, qo, uE, hE = [], fE = /* @__PURE__ */ x((t) => mt.sanitizeText(t, Km), "sanitizeText"), dE = /* @__PURE__ */ x(function(t) { for (const e of td.values()) if (e.id === t) return e.domId; @@ -70555,10 +70580,10 @@ var _Ft = /* @__PURE__ */ x((t, e) => { l === void 0 && (l = { id: t, labelType: "text", - domId: BFt + t + "-" + bG, + domId: BFt + t + "-" + xG, styles: [], classes: [] - }, td.set(t, l)), bG++, e !== void 0 ? (Km = ke(), o = fE(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) { + }, td.set(t, l)), xG++, e !== void 0 ? (Km = ke(), o = fE(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); @@ -70651,7 +70676,7 @@ You have to call mermaid.initialize.` const i = td.get(n); i !== void 0 && (i.link = mr.formatUrl(e, Km), i.linkTarget = r); }), LI(t, "clickable"); -}, "setLink"), f0e = /* @__PURE__ */ x(function(t) { +}, "setLink"), d0e = /* @__PURE__ */ x(function(t) { return AI.get(t); }, "getTooltip"), HFt = /* @__PURE__ */ x(function(t, e, r) { t.split(",").forEach(function(n) { @@ -70661,15 +70686,15 @@ You have to call mermaid.initialize.` hE.forEach(function(e) { e(t); }); -}, "bindFunctions"), d0e = /* @__PURE__ */ x(function() { +}, "bindFunctions"), p0e = /* @__PURE__ */ x(function() { return qo.trim(); -}, "getDirection"), p0e = /* @__PURE__ */ x(function() { +}, "getDirection"), g0e = /* @__PURE__ */ x(function() { return td; -}, "getVertices"), g0e = /* @__PURE__ */ x(function() { +}, "getVertices"), m0e = /* @__PURE__ */ x(function() { return Va; }, "getEdges"), jFt = /* @__PURE__ */ x(function() { return wb; -}, "getClasses"), m0e = /* @__PURE__ */ x(function(t) { +}, "getClasses"), v0e = /* @__PURE__ */ x(function(t) { let e = ht(".mermaidTooltip"); (e._groups || e)[0][0] === null && (e = ht("body").append("div").attr("class", "mermaidTooltip").style("opacity", 0)), ht(t).select("svg").selectAll("g.node").on("mouseover", function() { const i = ht(this); @@ -70681,9 +70706,9 @@ You have to call mermaid.initialize.` e.transition().duration(500).style("opacity", 0), ht(this).classed("hover", !1); }); }, "setupToolTips"); -hE.push(m0e); +hE.push(v0e); var KFt = /* @__PURE__ */ x(function(t = "gen-1") { - td = /* @__PURE__ */ new Map(), wb = /* @__PURE__ */ new Map(), Va = [], hE = [m0e], Sh = [], _I = /* @__PURE__ */ new Map(), Qk = 0, AI = /* @__PURE__ */ new Map(), ZL = !0, uE = t, Km = ke(), us(); + td = /* @__PURE__ */ new Map(), wb = /* @__PURE__ */ new Map(), Va = [], hE = [v0e], Sh = [], _I = /* @__PURE__ */ new Map(), Qk = 0, AI = /* @__PURE__ */ new Map(), ZL = !0, uE = t, Km = ke(), us(); }, "clear"), JFt = /* @__PURE__ */ x((t) => { uE = t || "gen-2"; }, "setGen"), ezt = /* @__PURE__ */ x(function() { @@ -70713,20 +70738,20 @@ var KFt = /* @__PURE__ */ x(function(t = "gen-1") { dir: o, labelType: r.type }; - return Z.info("Adding", l.id, l.nodes, l.dir), l.nodes = w0e(l, Sh).nodes, Sh.push(l), _I.set(n, l), n; + return Z.info("Adding", l.id, l.nodes, l.dir), l.nodes = O0e(l, Sh).nodes, Sh.push(l), _I.set(n, l), n; }, "addSubGraph"), rzt = /* @__PURE__ */ x(function(t) { for (const [e, r] of Sh.entries()) if (r.id === t) return e; return -1; -}, "getPosForId"), my = -1, v0e = [], y0e = /* @__PURE__ */ x(function(t, e) { +}, "getPosForId"), my = -1, y0e = [], b0e = /* @__PURE__ */ x(function(t, e) { const r = Sh[e].nodes; if (my = my + 1, my > 2e3) return { result: !1, count: 0 }; - if (v0e[my] = e, Sh[e].id === t) + if (y0e[my] = e, Sh[e].id === t) return { result: !0, count: 0 @@ -70735,7 +70760,7 @@ var KFt = /* @__PURE__ */ x(function(t = "gen-1") { for (; n < r.length; ) { const s = rzt(r[n]); if (s >= 0) { - const a = y0e(t, s); + const a = b0e(t, s); if (a.result) return { result: !0, @@ -70750,10 +70775,10 @@ var KFt = /* @__PURE__ */ x(function(t = "gen-1") { count: i }; }, "indexNodes2"), nzt = /* @__PURE__ */ x(function(t) { - return v0e[t]; + return y0e[t]; }, "getDepthFirstPos"), izt = /* @__PURE__ */ x(function() { - my = -1, Sh.length > 0 && y0e("none", Sh.length - 1); -}, "indexNodes"), b0e = /* @__PURE__ */ x(function() { + my = -1, Sh.length > 0 && b0e("none", Sh.length - 1); +}, "indexNodes"), x0e = /* @__PURE__ */ x(function() { return Sh; }, "getSubGraphs"), szt = /* @__PURE__ */ x(() => ZL ? (ZL = !1, !0) : !1, "firstGraph"), azt = /* @__PURE__ */ x((t) => { let e = t.trim(), r = "arrow_open"; @@ -70810,15 +70835,15 @@ var KFt = /* @__PURE__ */ x(function(t = "gen-1") { return n.type === "double_arrow" && (n.type = "double_arrow_point"), n.length = r.length, n; } return r; -}, "destructLink"), x0e = /* @__PURE__ */ x((t, e) => { +}, "destructLink"), w0e = /* @__PURE__ */ x((t, e) => { for (const r of t) if (r.nodes.includes(e)) return !0; return !1; -}, "exists"), w0e = /* @__PURE__ */ x((t, e) => { +}, "exists"), O0e = /* @__PURE__ */ x((t, e) => { const r = []; return t.nodes.forEach((n, i) => { - x0e(e, n) || r.push(t.nodes[i]); + w0e(e, n) || r.push(t.nodes[i]); }), { nodes: r }; }, "makeUniq"), uzt = { firstGraph: szt @@ -70859,7 +70884,7 @@ var KFt = /* @__PURE__ */ x(function(t = "gen-1") { look: s, link: t.link, linkTarget: t.linkTarget, - tooltip: f0e(t.id) + tooltip: d0e(t.id) }); }, "addNodeFromVertex"); function mS(t) { @@ -70873,7 +70898,7 @@ function mS(t) { } x(mS, "getCompiledStyles"); var gzt = /* @__PURE__ */ x(() => { - const t = ke(), e = [], r = [], n = b0e(), i = /* @__PURE__ */ new Map(), s = /* @__PURE__ */ new Map(); + const t = ke(), e = [], r = [], n = x0e(), 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); @@ -70896,16 +70921,16 @@ var gzt = /* @__PURE__ */ x(() => { look: t.look }); } - p0e().forEach((l) => { + g0e().forEach((l) => { pzt(l, e, i, s, t, t.look || "classic"); }); - const o = g0e(); + const o = m0e(); return o.forEach((l, u) => { var g, m; const { arrowTypeStart: h, arrowTypeEnd: f } = dzt(l.type), d = [...(g = o.defaultStyle) != null ? g : []]; l.style && d.push(...l.style); const p = { - id: nle(l.start, l.end, { counter: u, prefix: "L" }), + id: ile(l.start, l.end, { counter: u, prefix: "L" }), start: l.start, end: l.end, type: (m = l.type) != null ? m : "normal", @@ -70925,7 +70950,7 @@ var gzt = /* @__PURE__ */ x(() => { r.push(p); }), { nodes: e, edges: r, other: {}, config: t }; }, "getData"), FA = { - defaultConfig: /* @__PURE__ */ x(() => cae.flowchart, "defaultConfig"), + defaultConfig: /* @__PURE__ */ x(() => uae.flowchart, "defaultConfig"), setAccTitle: hs, getAccTitle: Ps, getAccDescription: Is, @@ -70940,13 +70965,13 @@ var gzt = /* @__PURE__ */ x(() => { setDirection: YFt, setClass: LI, setTooltip: WFt, - getTooltip: f0e, + getTooltip: d0e, setClickEvent: HFt, setLink: XFt, bindFunctions: ZFt, - getDirection: d0e, - getVertices: p0e, - getEdges: g0e, + getDirection: p0e, + getVertices: g0e, + getEdges: m0e, getClasses: jFt, clear: KFt, setGen: JFt, @@ -70954,11 +70979,11 @@ var gzt = /* @__PURE__ */ x(() => { addSubGraph: tzt, getDepthFirstPos: nzt, indexNodes: izt, - getSubGraphs: b0e, + getSubGraphs: x0e, destructLink: czt, lex: uzt, - exists: x0e, - makeUniq: w0e, + exists: w0e, + makeUniq: O0e, setDiagramTitle: Na, getDiagramTitle: $s }, mzt = /* @__PURE__ */ x(function(t, e) { @@ -70973,17 +70998,17 @@ var gzt = /* @__PURE__ */ x(() => { Z.debug("Before getData: "); const u = n.db.getData(); Z.debug("Data: ", u); - const h = n0e(e, i), f = d0e(); + const h = i0e(e, i), f = p0e(); u.type = n.type, u.layoutAlgorithm = nEt(a), u.layoutAlgorithm === "dagre" && a === "elk" && Z.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, Z.debug("REF1:", u), await Kle(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, Z.debug("REF1:", u), await Jle(u, h); const d = (g = (p = u.config.flowchart) == null ? void 0 : p.diagramPadding) != null ? g : 8; mr.insertTitle( h, "flowchartTitleText", (s == null ? void 0 : s.titleTopMargin) || 0, n.db.getDiagramTitle() - ), i0e(h, d, "flowchart", (s == null ? void 0 : s.useMaxWidth) || !1); + ), s0e(h, d, "flowchart", (s == null ? void 0 : s.useMaxWidth) || !1); for (const m of u.nodes) { const v = ht(`#${e} [id="${m.id}"]`); if (!v || !m.link) @@ -71774,7 +71799,7 @@ Expecting ` + Fa.join(", ") + ", got '" + (this.terminals_[$n] || $n) + "'" : dv }(); jL.parser = jL; var bzt = jL, xzt = /* @__PURE__ */ x((t, e) => { - const r = zse, n = r(t, "r"), i = r(t, "g"), s = r(t, "b"); + const r = Qse, n = r(t, "r"), i = r(t, "g"), s = r(t, "b"); return E0(n, i, s, e); }, "fade"), wzt = /* @__PURE__ */ x((t) => `.label { font-family: ${t.fontFamily}; @@ -71902,7 +71927,7 @@ var bzt = jL, xzt = /* @__PURE__ */ x((t, e) => { renderer: yzt, styles: Ozt, init: /* @__PURE__ */ x((t) => { - t.flowchart || (t.flowchart = {}), t.layout && VV({ layout: t.layout }), t.flowchart.arrowMarkerAbsolute = t.arrowMarkerAbsolute, VV({ flowchart: { arrowMarkerAbsolute: t.arrowMarkerAbsolute } }), FA.clear(), FA.setGen("gen-2"); + t.flowchart || (t.flowchart = {}), t.layout && qV({ layout: t.layout }), t.flowchart.arrowMarkerAbsolute = t.arrowMarkerAbsolute, qV({ flowchart: { arrowMarkerAbsolute: t.arrowMarkerAbsolute } }), FA.clear(), FA.setGen("gen-2"); }, "init") }; const RI = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ @@ -72495,10 +72520,10 @@ var Izt = KL, Kd = /* @__PURE__ */ new Map(), MI = [], $zt = { }, Bzt = { NON_IDENTIFYING: "NON_IDENTIFYING", IDENTIFYING: "IDENTIFYING" -}, O0e = /* @__PURE__ */ x(function(t, e = void 0) { +}, k0e = /* @__PURE__ */ x(function(t, e = void 0) { return Kd.has(t) ? !Kd.get(t).alias && e && (Kd.get(t).alias = e, Z.info(`Add alias '${e}' to entity '${t}'`)) : (Kd.set(t, { attributes: [], alias: e }), Z.info("Added new entity :", t)), Kd.get(t); }, "addEntity"), Fzt = /* @__PURE__ */ x(() => Kd, "getEntities"), zzt = /* @__PURE__ */ x(function(t, e) { - let r = O0e(t), n; + let r = k0e(t), n; for (n = e.length - 1; n >= 0; n--) r.attributes.push(e[n]), Z.debug("Added attribute ", e[n].attributeName); }, "addAttributes"), Qzt = /* @__PURE__ */ x(function(t, e, r, n) { @@ -72515,7 +72540,7 @@ var Izt = KL, Kd = /* @__PURE__ */ new Map(), MI = [], $zt = { Cardinality: $zt, Identification: Bzt, getConfig: /* @__PURE__ */ x(() => ke().er, "getConfig"), - addEntity: O0e, + addEntity: k0e, addAttributes: zzt, getEntities: Fzt, addRelationship: Qzt, @@ -72626,7 +72651,7 @@ var Izt = KL, Kd = /* @__PURE__ */ new Map(), MI = [], $zt = { let i; return n.forEach(function(s) { var g; - const a = S0e(s, "entity"); + const a = T0e(s, "entity"); Ob.set(s, a); const o = t.append("g").attr("id", a); i = i === void 0 ? a : i; @@ -72649,7 +72674,7 @@ var Izt = KL, Kd = /* @__PURE__ */ new Map(), MI = [], $zt = { "translate(" + (e.node(r).x - e.node(r).width / 2) + "," + (e.node(r).y - e.node(r).height / 2) + " )" ); }); -}, "adjustEntities"), k0e = /* @__PURE__ */ x(function(t) { +}, "adjustEntities"), S0e = /* @__PURE__ */ x(function(t) { return (t.entityA + t.roleA + t.entityB).replace(/\s/g, ""); }, "getEdgeName"), jzt = /* @__PURE__ */ x(function(t, e) { return t.forEach(function(r) { @@ -72657,15 +72682,15 @@ var Izt = KL, Kd = /* @__PURE__ */ new Map(), MI = [], $zt = { Ob.get(r.entityA), Ob.get(r.entityB), { relationship: r }, - k0e(r) + S0e(r) ); }), t; -}, "addRelationships"), xG = 0, Kzt = /* @__PURE__ */ x(function(t, e, r, n, i) { - xG++; +}, "addRelationships"), wG = 0, Kzt = /* @__PURE__ */ x(function(t, e, r, n, i) { + wG++; const s = r.edge( Ob.get(e.entityA), Ob.get(e.entityB), - k0e(e) + S0e(e) ), a = Gf().x(function(m) { return m.x; }).y(function(m) { @@ -72716,7 +72741,7 @@ var Izt = KL, Kd = /* @__PURE__ */ new Map(), MI = [], $zt = { o.attr("marker-start", "url(" + l + "#" + Ll.ERMarkers.MD_PARENT_START + ")"); break; } - const u = o.node().getTotalLength(), h = o.node().getPointAtLength(u * 0.5), f = "rel" + xG, 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", ke().fontFamily).style("font-size", $i.fontSize + "px"); + const u = o.node().getTotalLength(), h = o.node().getPointAtLength(u * 0.5), f = "rel" + wG, 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", ke().fontFamily).style("font-size", $i.fontSize + "px"); if (d.length == 1) p.text(e.roleA); else { @@ -72758,14 +72783,14 @@ var Izt = KL, Kd = /* @__PURE__ */ new Map(), MI = [], $zt = { const d = o.node().getBBox(), p = d.width + f * 2, g = d.height + f * 2; Ds(o, g, p, $i.useMaxWidth), o.attr("viewBox", `${d.x - f} ${d.y - f} ${p} ${g}`); }, "draw"), eQt = "28e9f9db-3c8d-5aa5-9faf-44286ae5937c"; -function S0e(t = "", e = "") { +function T0e(t = "", e = "") { const r = t.replace(Wzt, ""); return `${JL(e)}${JL(r)}${Nzt( t, eQt )}`; } -x(S0e, "generateId"); +x(T0e, "generateId"); function JL(t = "") { return t.length > 0 ? `${t}-` : ""; } @@ -72855,7 +72880,7 @@ function aQt(t) { function Uk(t) { return typeof t == "object" && t !== null && ea(t.container) && Gc(t.reference) && typeof t.message == "string"; } -class T0e { +class C0e { constructor() { this.subtypes = {}, this.allSubtypes = {}; } @@ -72890,10 +72915,10 @@ class T0e { function Jm(t) { return typeof t == "object" && t !== null && Array.isArray(t.content); } -function C0e(t) { +function E0e(t) { return typeof t == "object" && t !== null && typeof t.tokenType == "object"; } -function E0e(t) { +function _0e(t) { return Jm(t) && typeof t.fullText == "string"; } class Xs { @@ -73288,20 +73313,20 @@ const fQt = /^[\w\p{L}]$/u; function dQt(t, e) { if (t) { const r = pQt(t, !0); - if (r && wG(r, e)) + if (r && OG(r, e)) return r; - if (E0e(t)) { + if (_0e(t)) { const n = t.content.findIndex((i) => !i.hidden); for (let i = n - 1; i >= 0; i--) { const s = t.content[i]; - if (wG(s, e)) + if (OG(s, e)) return s; } } } } -function wG(t, e) { - return C0e(t) && e.includes(t.tokenType.name); +function OG(t, e) { + return E0e(t) && e.includes(t.tokenType.name); } function pQt(t, e = !0) { for (; t.container; ) { @@ -73316,7 +73341,7 @@ function pQt(t, e = !0) { t = r; } } -class _0e extends Error { +class A0e extends Error { constructor(e, r) { super(e ? `${r} at ${e.range.start.line}:${e.range.start.character}` : r); } @@ -73324,135 +73349,134 @@ class _0e extends Error { function pE(t) { throw new Error("Error! The input value was not handled."); } -const QA = "AbstractRule", UA = "AbstractType", OG = "Condition", gQt = "TypeDefinition", kG = "ValueLiteral", A0e = "AbstractElement"; +const QA = "AbstractRule", UA = "AbstractType", kG = "Condition", gQt = "TypeDefinition", SG = "ValueLiteral", L0e = "AbstractElement"; function mQt(t) { - return sn.isInstance(t, A0e); -} -const vQt = "ArrayLiteral", yQt = "ArrayType", L0e = "BooleanLiteral"; -function bQt(t) { return sn.isInstance(t, L0e); } -const R0e = "Conjunction"; -function xQt(t) { +const vQt = "ArrayLiteral", yQt = "ArrayType", R0e = "BooleanLiteral"; +function bQt(t) { return sn.isInstance(t, R0e); } -const M0e = "Disjunction"; -function wQt(t) { +const M0e = "Conjunction"; +function xQt(t) { return sn.isInstance(t, M0e); } -const OQt = "Grammar", D0e = "InferredType"; -function P0e(t) { +const D0e = "Disjunction"; +function wQt(t) { return sn.isInstance(t, D0e); } -const N0e = "Interface"; -function I0e(t) { - return sn.isInstance(t, N0e); +const OQt = "Grammar", P0e = "InferredType"; +function N0e(t) { + return sn.isInstance(t, P0e); +} +const I0e = "Interface"; +function $0e(t) { + return sn.isInstance(t, I0e); } -const $0e = "Negation"; +const B0e = "Negation"; function kQt(t) { - return sn.isInstance(t, $0e); + return sn.isInstance(t, B0e); } -const SQt = "NumberLiteral", TQt = "Parameter", B0e = "ParameterReference"; +const SQt = "NumberLiteral", TQt = "Parameter", F0e = "ParameterReference"; function CQt(t) { - return sn.isInstance(t, B0e); + return sn.isInstance(t, F0e); } -const F0e = "ParserRule"; +const z0e = "ParserRule"; function wl(t) { - return sn.isInstance(t, F0e); + return sn.isInstance(t, z0e); } const EQt = "ReferenceType", _Qt = "ReturnType"; function AQt(t) { return sn.isInstance(t, _Qt); } -const z0e = "SimpleType"; +const Q0e = "SimpleType"; function LQt(t) { - return sn.isInstance(t, z0e); + return sn.isInstance(t, Q0e); } const RQt = "StringLiteral", nR = "TerminalRule"; function Ip(t) { return sn.isInstance(t, nR); } -const Q0e = "Type"; -function U0e(t) { - return sn.isInstance(t, Q0e); +const U0e = "Type"; +function V0e(t) { + return sn.isInstance(t, U0e); } -const MQt = "UnionType", V0e = "Action"; +const MQt = "UnionType", q0e = "Action"; function gE(t) { - return sn.isInstance(t, V0e); -} -const q0e = "Alternatives"; -function Y0e(t) { return sn.isInstance(t, q0e); } -const W0e = "Assignment"; -function J0(t) { - return sn.isInstance(t, W0e); +const Y0e = "Alternatives"; +function W0e(t) { + return sn.isInstance(t, Y0e); } -const G0e = "CharacterRange"; -function DQt(t) { +const G0e = "Assignment"; +function J0(t) { return sn.isInstance(t, G0e); } -const X0e = "CrossReference"; -function PI(t) { +const X0e = "CharacterRange"; +function DQt(t) { return sn.isInstance(t, X0e); } -const H0e = "EndOfFile"; -function PQt(t) { +const H0e = "CrossReference"; +function PI(t) { return sn.isInstance(t, H0e); } -const Z0e = "Group"; -function NI(t) { +const Z0e = "EndOfFile"; +function PQt(t) { return sn.isInstance(t, Z0e); } -const j0e = "Keyword"; -function ep(t) { +const j0e = "Group"; +function NI(t) { return sn.isInstance(t, j0e); } -const K0e = "NegatedToken"; -function NQt(t) { +const K0e = "Keyword"; +function ep(t) { return sn.isInstance(t, K0e); } -const J0e = "RegexToken"; -function IQt(t) { +const J0e = "NegatedToken"; +function NQt(t) { return sn.isInstance(t, J0e); } -const epe = "RuleCall"; -function tp(t) { +const epe = "RegexToken"; +function IQt(t) { return sn.isInstance(t, epe); } -const tpe = "TerminalAlternatives"; -function $Qt(t) { +const tpe = "RuleCall"; +function tp(t) { return sn.isInstance(t, tpe); } -const rpe = "TerminalGroup"; -function BQt(t) { +const rpe = "TerminalAlternatives"; +function $Qt(t) { return sn.isInstance(t, rpe); } -const npe = "TerminalRuleCall"; -function ipe(t) { +const npe = "TerminalGroup"; +function BQt(t) { return sn.isInstance(t, npe); } -const spe = "UnorderedGroup"; -function ape(t) { - return sn.isInstance(t, spe); +const ipe = "TerminalRuleCall"; +function spe(t) { + return sn.isInstance(t, ipe); +} +const ape = "UnorderedGroup"; +function ope(t) { + return sn.isInstance(t, ape); } -const ope = "UntilToken"; +const lpe = "UntilToken"; function FQt(t) { - return sn.isInstance(t, ope); + return sn.isInstance(t, lpe); } -const lpe = "Wildcard"; +const cpe = "Wildcard"; function zQt(t) { - return sn.isInstance(t, lpe); + return sn.isInstance(t, cpe); } -class cpe extends T0e { +class upe extends C0e { 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 V0e: case q0e: - case W0e: + case Y0e: case G0e: case X0e: case H0e: @@ -73464,31 +73488,32 @@ class cpe extends T0e { case tpe: case rpe: case npe: - case spe: - case ope: + case ipe: + case ape: case lpe: - return this.isSubtype(A0e, r); + case cpe: + return this.isSubtype(L0e, r); case vQt: case SQt: case RQt: - return this.isSubtype(kG, r); + return this.isSubtype(SG, r); case yQt: case EQt: - case z0e: + case Q0e: case MQt: return this.isSubtype(gQt, r); - case L0e: - return this.isSubtype(OG, r) || this.isSubtype(kG, r); case R0e: + return this.isSubtype(kG, r) || this.isSubtype(SG, r); case M0e: - case $0e: - case B0e: - return this.isSubtype(OG, r); case D0e: - case N0e: - case Q0e: - return this.isSubtype(UA, r); + case B0e: case F0e: + return this.isSubtype(kG, r); + case P0e: + case I0e: + case U0e: + return this.isSubtype(UA, r); + case z0e: return this.isSubtype(QA, r) || this.isSubtype(UA, r); case nR: return this.isSubtype(QA, r); @@ -73894,7 +73919,7 @@ class cpe extends T0e { } } } -const sn = new cpe(); +const sn = new upe(); function QQt(t) { for (const [e, r] of Object.entries(t)) e.startsWith("$") || (Array.isArray(r) ? r.forEach((n, i) => { @@ -73970,7 +73995,7 @@ function iR(t, e) { const n = (r = t.$cstNode) === null || r === void 0 ? void 0 : r.range; return n ? hQt(n, e) : !1; } -function upe(t) { +function hpe(t) { return new Xs(() => ({ keys: Object.keys(t), keyIndex: 0, @@ -73999,10 +74024,10 @@ function upe(t) { function VQt(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] = hpe(i.defaultValue)); + i.defaultValue !== void 0 && n[i.name] === void 0 && (n[i.name] = fpe(i.defaultValue)); } -function hpe(t) { - return Array.isArray(t) ? [...t.map(hpe)] : t; +function fpe(t) { + return Array.isArray(t) ? [...t.map(fpe)] : t; } function pr(t) { return t.charCodeAt(0); @@ -74025,7 +74050,7 @@ function Kp(t) { function qQt() { throw Error("Internal Error - Should never get here!"); } -function SG(t) { +function TG(t) { return t.type === "Character"; } const xS = []; @@ -74036,7 +74061,7 @@ for (let t = pr("a"); t <= pr("z"); t++) wS.push(t); for (let t = pr("A"); t <= pr("Z"); t++) wS.push(t); -const TG = [ +const CG = [ pr(" "), pr("\f"), pr(` @@ -74065,7 +74090,7 @@ const TG = [ pr("\u3000"), pr("\uFEFF") ], YQt = /[0-9a-fA-F]/, v4 = /[0-9]/, WQt = /[1-9]/; -class fpe { +class dpe { constructor() { this.idx = 0, this.input = "", this.groupIdx = 0; } @@ -74307,10 +74332,10 @@ class fpe { e = xS, r = !0; break; case "s": - e = TG; + e = CG; break; case "S": - e = TG, r = !0; + e = CG, r = !0; break; case "w": e = wS; @@ -74385,10 +74410,10 @@ class fpe { let r = !1; for (this.consumeChar("["), this.peekChar(0) === "^" && (this.consumeChar("^"), r = !0); this.isClassAtom(); ) { const n = this.classAtom(); - if (n.type, SG(n) && this.isRangeDash()) { + if (n.type, TG(n) && this.isRangeDash()) { this.consumeChar("-"); const i = this.classAtom(); - if (i.type, SG(i)) { + if (i.type, TG(i)) { if (i.value < n.value) throw Error("Range out of order in character class"); e.push({ from: n.value, to: i.value }); @@ -74720,7 +74745,7 @@ class vE { visitQuantifier(e) { } } -const GQt = /\r?\n/gm, XQt = new fpe(); +const GQt = /\r?\n/gm, XQt = new dpe(); class HQt extends vE { constructor() { super(...arguments), this.isStarting = !0, this.endRegexpStack = [], this.multiline = !1; @@ -74769,7 +74794,7 @@ function ZQt(t) { return !1; } } -function CG(t) { +function EG(t) { return (typeof t == "string" ? new RegExp(t) : t).test(" "); } function yE(t) { @@ -74876,23 +74901,23 @@ function eUt(t) { function tUt(t) { return t.rules.filter((e) => Ip(e) && e.hidden); } -function dpe(t, e) { +function ppe(t, e) { const r = /* @__PURE__ */ new Set(), n = eUt(t); if (!n) return new Set(t.rules); const i = [n].concat(tUt(t)); for (const a of i) - ppe(a, r, e); + gpe(a, r, e); const s = /* @__PURE__ */ new Set(); for (const a of t.rules) (r.has(a.name) || Ip(a) && a.hidden) && s.add(a); return s; } -function ppe(t, e, r) { +function gpe(t, e, r) { e.add(t.name), Tw(t).forEach((n) => { - if (tp(n) || r && ipe(n)) { + if (tp(n) || r && spe(n)) { const i = n.rule.ref; - i && !e.has(i.name) && ppe(i, e, r); + i && !e.has(i.name) && gpe(i, e, r); } }); } @@ -74900,7 +74925,7 @@ function rUt(t) { if (t.terminal) return t.terminal; if (t.type.ref) { - const e = mpe(t.type.ref); + const e = vpe(t.type.ref); return e == null ? void 0 : e.terminal; } } @@ -74910,7 +74935,7 @@ function nUt(t) { function iUt(t, e) { return !t || !e ? [] : $I(t, e, t.astNode, !0); } -function gpe(t, e, r) { +function mpe(t, e, r) { if (!t || !e) return; const n = $I(t, e, t.astNode, !0); @@ -74958,15 +74983,15 @@ function oUt(t) { t = t.container; } } -function mpe(t) { +function vpe(t) { let e = t; - return P0e(e) && (gE(e.$container) ? e = e.$container.$container : wl(e.$container) ? e = e.$container : pE(e.$container)), vpe(t, e, /* @__PURE__ */ new Map()); + return N0e(e) && (gE(e.$container) ? e = e.$container.$container : wl(e.$container) ? e = e.$container : pE(e.$container)), ype(t, e, /* @__PURE__ */ new Map()); } -function vpe(t, e, r) { +function ype(t, e, r) { var n; function i(s, a) { let o; - return mE(s, J0) || (o = vpe(a, a, r)), r.set(t, o), o; + return mE(s, J0) || (o = ype(a, a, r)), r.set(t, o), o; } if (r.has(t)) return r.get(t); @@ -74981,15 +75006,15 @@ function vpe(t, e, r) { } } function BI(t) { - return ype(t, /* @__PURE__ */ new Set()); + return bpe(t, /* @__PURE__ */ new Set()); } -function ype(t, e) { +function bpe(t, e) { if (e.has(t)) return !0; e.add(t); for (const r of Tw(t)) if (tp(r)) { - if (!r.rule.ref || wl(r.rule.ref) && !ype(r.rule.ref, e)) + if (!r.rule.ref || wl(r.rule.ref) && !bpe(r.rule.ref, e)) return !1; } else { if (J0(r)) @@ -74999,7 +75024,7 @@ function ype(t, e) { } return Boolean(t.definition); } -function bpe(t) { +function xpe(t) { if (t.inferredType) return t.inferredType.name; if (t.dataType) @@ -75009,7 +75034,7 @@ function bpe(t) { if (e) { if (wl(e)) return e.name; - if (I0e(e) || U0e(e)) + if ($0e(e) || V0e(e)) return e.name; } } @@ -75017,14 +75042,14 @@ function bpe(t) { function bE(t) { var e; if (wl(t)) - return BI(t) ? t.name : (e = bpe(t)) !== null && e !== void 0 ? e : t.name; - if (I0e(t) || U0e(t) || AQt(t)) + return BI(t) ? t.name : (e = xpe(t)) !== null && e !== void 0 ? e : t.name; + if ($0e(t) || V0e(t) || AQt(t)) return t.name; if (gE(t)) { const r = lUt(t); if (r) return r; - } else if (P0e(t)) + } else if (N0e(t)) return t.name; throw new Error("Cannot get name of Unknown Type"); } @@ -75037,7 +75062,7 @@ function lUt(t) { } function cUt(t) { var e, r, n; - return Ip(t) ? (r = (e = t.type) === null || e === void 0 ? void 0 : e.name) !== null && r !== void 0 ? r : "string" : BI(t) ? t.name : (n = bpe(t)) !== null && n !== void 0 ? n : t.name; + return Ip(t) ? (r = (e = t.type) === null || e === void 0 ? void 0 : e.name) !== null && r !== void 0 ? r : "string" : BI(t) ? t.name : (n = xpe(t)) !== null && n !== void 0 ? n : t.name; } function FI(t) { const e = { @@ -75055,7 +75080,7 @@ function W1(t, e) { return hUt(t); if (DQt(t)) return pUt(t); - if (ipe(t)) { + if (spe(t)) { const r = t.rule.ref; if (!r) throw new Error("Missing rule reference."); @@ -75139,14 +75164,14 @@ function gUt(t) { function sR(t) { console && console.error && console.error(`Error: ${t}`); } -function xpe(t) { +function wpe(t) { console && console.warn && console.warn(`Warning: ${t}`); } -function wpe(t) { +function Ope(t) { const e = new Date().getTime(), r = t(); return { time: new Date().getTime() - e, value: r }; } -function Ope(t) { +function kpe(t) { function e() { } e.prototype = t; @@ -75378,7 +75403,7 @@ function bUt(t) { return t instanceof oo || t instanceof _s || t instanceof ei || t instanceof Bo || t instanceof Fo || t instanceof po || t instanceof In || t instanceof G1; } function OS(t, e = []) { - return t instanceof _s || t instanceof ei || t instanceof po ? !0 : t instanceof go ? Ede(t.definition, (n) => OS(n, e)) : t instanceof Ma && $a(e, t) ? !1 : t instanceof _u ? (t instanceof Ma && e.push(t), Hl(t.definition, (n) => OS(n, e))) : !1; + return t instanceof _s || t instanceof ei || t instanceof po ? !0 : t instanceof go ? _de(t.definition, (n) => OS(n, e)) : t instanceof Ma && $a(e, t) ? !1 : t instanceof _u ? (t instanceof Ma && e.push(t), Hl(t.definition, (n) => OS(n, e))) : !1; } function xUt(t) { return t instanceof go; @@ -75447,7 +75472,7 @@ class xE { this.walk(e, i); } walkAtLeastOneSep(e, r, n) { - const i = EG(e, r, n); + const i = _G(e, r, n); this.walk(e, i); } walkMany(e, r, n) { @@ -75457,7 +75482,7 @@ class xE { this.walk(e, i); } walkManySep(e, r, n) { - const i = EG(e, r, n); + const i = _G(e, r, n); this.walk(e, i); } walkOr(e, r, n) { @@ -75468,7 +75493,7 @@ class xE { }); } } -function EG(t, e, r) { +function _G(t, e, r) { return [ new _s({ definition: [ @@ -75503,7 +75528,7 @@ function OUt(t) { function kUt(t) { return [t.terminalType]; } -const kpe = "_~IN~_"; +const Spe = "_~IN~_"; class SUt extends xE { constructor(e) { super(), this.topProd = e, this.follows = {}; @@ -75526,10 +75551,10 @@ function TUt(t) { }), e; } function CUt(t, e) { - return t.name + e + kpe; + return t.name + e + Spe; } let qk = {}; -const EUt = new fpe(); +const EUt = new dpe(); function wE(t) { const e = t.toString(); if (qk.hasOwnProperty(e)) @@ -75542,15 +75567,15 @@ function wE(t) { function _Ut() { qk = {}; } -const Spe = "Complement Sets are not supported for first char optimization", kS = `Unable to use "first char" lexer optimizations: +const Tpe = "Complement Sets are not supported for first char optimization", kS = `Unable to use "first char" lexer optimizations: `; function AUt(t, e = !1) { try { const r = wE(t); return aR(r.value, {}, r.flags.ignoreCase); } catch (r) { - if (r.message === Spe) - e && xpe(`${kS} Unable to optimize: < ${t.toString()} > + if (r.message === Tpe) + e && wpe(`${kS} 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.`); @@ -75593,7 +75618,7 @@ function aR(t, e, r) { break; case "Set": if (a.complement === !0) - throw Error(Spe); + throw Error(Tpe); Ve(a.value, (l) => { if (typeof l == "number") y4(l, e, r); @@ -75647,7 +75672,7 @@ function LUt(t, e) { } } } -function _G(t, e) { +function AG(t, e) { return Oh(t.value, (r) => { if (typeof r == "number") return $a(e, r); @@ -75682,7 +75707,7 @@ class RUt extends vE { $a(this.targetCharCodes, e.value) && (this.found = !0); } visitSet(e) { - e.complement ? _G(e, this.targetCharCodes) === void 0 && (this.found = !0) : _G(e, this.targetCharCodes) !== void 0 && (this.found = !0); + e.complement ? AG(e, this.targetCharCodes) === void 0 && (this.found = !0) : AG(e, this.targetCharCodes) !== void 0 && (this.found = !0); } } function QI(t, e) { @@ -75693,10 +75718,10 @@ function QI(t, e) { return Oh(e, (r) => $a(t, r.charCodeAt(0))) !== void 0; } const rp = "PATTERN", vy = "defaultMode", b4 = "modes"; -let Tpe = typeof new RegExp("(?:)").sticky == "boolean"; +let Cpe = typeof new RegExp("(?:)").sticky == "boolean"; function MUt(t, e) { e = nE(e, { - useSticky: Tpe, + useSticky: Cpe, debug: !1, safeMode: !1, positionTracking: "full", @@ -75735,7 +75760,7 @@ function MUt(t, e) { "v", "w", "W" - ], O[1]) ? O[1] : e.useSticky ? LG(w) : AG(w); + ], O[1]) ? O[1] : e.useSticky ? RG(w) : LG(w); } else { if (ml(w)) return i = !0, { exec: w }; @@ -75746,7 +75771,7 @@ function MUt(t, e) { return w; { const O = w.replace(/[\\^$.*+?()[\]{}|]/g, "\\$&"), S = new RegExp(O); - return e.useSticky ? LG(S) : AG(S); + return e.useSticky ? RG(S) : LG(S); } } else throw Error("non exhaustive match"); @@ -75767,17 +75792,17 @@ function MUt(t, e) { }), l = St(n, (b) => { const w = b.LONGER_ALT; if (w) - return Pr(w) ? St(w, (S) => jW(n, S)) : [jW(n, w)]; + return Pr(w) ? St(w, (S) => KW(n, S)) : [KW(n, w)]; }), u = St(n, (b) => b.PUSH_MODE), h = St(n, (b) => _t(b, "POP_MODE")); }); let f; r("Line Terminator Handling", () => { - const b = _pe(e.lineTerminatorCharacters); - f = St(n, (w) => !1), e.positionTracking !== "onlyOffset" && (f = St(n, (w) => _t(w, "LINE_BREAKS") ? !!w.LINE_BREAKS : Epe(w, b) === !1 && QI(b, w.PATTERN))); + const b = Ape(e.lineTerminatorCharacters); + f = St(n, (w) => !1), e.positionTracking !== "onlyOffset" && (f = St(n, (w) => _t(w, "LINE_BREAKS") ? !!w.LINE_BREAKS : _pe(w, b) === !1 && QI(b, w.PATTERN))); }); let d, p, g, m; r("Misc Mapping #2", () => { - d = St(n, Cpe), p = St(s, KUt), g = Ri(n, (b, w) => { + d = St(n, Epe), p = St(s, KUt), g = Ri(n, (b, w) => { const O = w.GROUP; return ao(O) && O !== no.SKIPPED && (b[O] = []), b; }, {}), m = St(s, (b, w) => ({ @@ -76021,11 +76046,11 @@ function XUt(t) { "{" ], (r) => t.source.indexOf(r) !== -1) === void 0; } -function AG(t) { +function LG(t) { const e = t.ignoreCase ? "i" : ""; return new RegExp(`^(?:${t.source})`, e); } -function LG(t) { +function RG(t) { const e = t.ignoreCase ? "iy" : "y"; return new RegExp(`${t.source}`, e); } @@ -76067,9 +76092,9 @@ function HUt(t, e, r) { function ZUt(t, e, r) { const n = []; let i = !1; - const s = ww(as(un(t.modes))), a = aE(s, (l) => l[rp] === no.NA), o = _pe(r); + const s = ww(as(un(t.modes))), a = aE(s, (l) => l[rp] === no.NA), o = Ape(r); return e && Ve(a, (l) => { - const u = Epe(l, o); + const u = _pe(l, o); if (u !== !1) { const f = { message: eVt(l, u), @@ -76098,7 +76123,7 @@ function jUt(t) { throw Error("non exhaustive match"); }), e; } -function Cpe(t) { +function Epe(t) { const e = t.PATTERN; if (kh(e)) return !1; @@ -76127,7 +76152,7 @@ const JUt = { }, lastIndex: 0 }; -function Epe(t, e) { +function _pe(t, e) { if (_t(t, "LINE_BREAKS")) return !1; if (kh(t.PATTERN)) { @@ -76143,7 +76168,7 @@ function Epe(t, e) { } else { if (ao(t.PATTERN)) return !1; - if (Cpe(t)) + if (Epe(t)) return { issue: ti.CUSTOM_LINE_BREAK }; throw Error("non exhaustive match"); } @@ -76160,7 +76185,7 @@ function eVt(t, e) { For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#CUSTOM_LINE_BREAK`; throw Error("non exhaustive match"); } -function _pe(t) { +function Ape(t) { return St(t, (r) => ao(r) ? r.charCodeAt(0) : r); } function WA(t, e, r) { @@ -76185,8 +76210,8 @@ function Ew(t, e) { function SS(t, e) { return t.tokenTypeIdx === e.tokenTypeIdx; } -let RG = 1; -const Ape = {}; +let MG = 1; +const Lpe = {}; function _w(t) { const e = rVt(t); nVt(e), sVt(e), iVt(e), Ve(e, (r) => { @@ -76204,33 +76229,33 @@ function rVt(t) { } function nVt(t) { Ve(t, (e) => { - Rpe(e) || (Ape[RG] = e, e.tokenTypeIdx = RG++), MG(e) && !Pr(e.CATEGORIES) && (e.CATEGORIES = [e.CATEGORIES]), MG(e) || (e.CATEGORIES = []), aVt(e) || (e.categoryMatches = []), oVt(e) || (e.categoryMatchesMap = {}); + Mpe(e) || (Lpe[MG] = e, e.tokenTypeIdx = MG++), DG(e) && !Pr(e.CATEGORIES) && (e.CATEGORIES = [e.CATEGORIES]), DG(e) || (e.CATEGORIES = []), aVt(e) || (e.categoryMatches = []), oVt(e) || (e.categoryMatchesMap = {}); }); } function iVt(t) { Ve(t, (e) => { e.categoryMatches = [], Ve(e.categoryMatchesMap, (r, n) => { - e.categoryMatches.push(Ape[n].tokenTypeIdx); + e.categoryMatches.push(Lpe[n].tokenTypeIdx); }); }); } function sVt(t) { Ve(t, (e) => { - Lpe([], e); + Rpe([], e); }); } -function Lpe(t, e) { +function Rpe(t, e) { Ve(t, (r) => { e.categoryMatchesMap[r.tokenTypeIdx] = !0; }), Ve(e.CATEGORIES, (r) => { const n = t.concat(e); - $a(n, r) || Lpe(n, r); + $a(n, r) || Rpe(n, r); }); } -function Rpe(t) { +function Mpe(t) { return _t(t, "tokenTypeIdx"); } -function MG(t) { +function DG(t) { return _t(t, "CATEGORIES"); } function aVt(t) { @@ -76275,7 +76300,7 @@ class no { this.traceInitIndent++; const a = new Array(this.traceInitIndent + 1).join(" "); this.traceInitIndent < this.traceInitMaxIdent && console.log(`${a}--> <${i}>`); - const { time: o, value: l } = wpe(s), u = o > 10 ? console.warn : console.log; + const { time: o, value: l } = Ope(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(); @@ -76331,9 +76356,9 @@ a boolean 2nd argument is no longer supported`); ` + l); } Ve(this.lexerDefinitionWarning, (o) => { - xpe(o.message); + wpe(o.message); }), this.TRACE_INIT("Choosing sub-methods implementations", () => { - if (Tpe ? (this.chopInput = vh, this.match = this.matchWithTest) : (this.updateLastIndex = Di, this.match = this.matchWithExec), s && (this.handleModes = Di), this.trackStartLines === !1 && (this.computeNewColumn = vh), this.trackEndLines === !1 && (this.updateTokenEndLineColumnLocation = Di), /full/i.test(this.config.positionTracking)) + if (Cpe ? (this.chopInput = vh, this.match = this.matchWithTest) : (this.updateLastIndex = Di, this.match = this.matchWithExec), s && (this.handleModes = Di), this.trackStartLines === !1 && (this.computeNewColumn = vh), this.trackEndLines === !1 && (this.updateTokenEndLineColumnLocation = Di), /full/i.test(this.config.positionTracking)) this.createTokenInstance = this.createFullToken; else if (/onlyStart/i.test(this.config.positionTracking)) this.createTokenInstance = this.createStartOnlyToken; @@ -76351,7 +76376,7 @@ a boolean 2nd argument is no longer supported`); }), this.TRACE_INIT("clearRegExpParserCache", () => { _Ut(); }), this.TRACE_INIT("toFastProperties", () => { - Ope(this); + kpe(this); }); }); } @@ -76538,13 +76563,13 @@ a boolean 2nd argument is no longer supported`); no.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."; no.NA = /NOT_APPLICABLE/; function Zg(t) { - return Mpe(t) ? t.LABEL : t.name; + return Dpe(t) ? t.LABEL : t.name; } -function Mpe(t) { +function Dpe(t) { return ao(t.LABEL) && t.LABEL !== ""; } -const uVt = "parent", DG = "categories", PG = "label", NG = "group", IG = "push_mode", $G = "pop_mode", BG = "longer_alt", FG = "line_breaks", zG = "start_chars_hint"; -function Dpe(t) { +const uVt = "parent", PG = "categories", NG = "label", IG = "group", $G = "push_mode", BG = "pop_mode", FG = "longer_alt", zG = "line_breaks", QG = "start_chars_hint"; +function Ppe(t) { return hVt(t); } function hVt(t) { @@ -76552,9 +76577,9 @@ function hVt(t) { if (r.name = t.name, tn(e) || (r.PATTERN = e), _t(t, uVt)) throw `The parent property is no longer supported. See: https://github.com/chevrotain/chevrotain/issues/564#issuecomment-349062346 for details.`; - return _t(t, DG) && (r.CATEGORIES = t[DG]), _w([r]), _t(t, PG) && (r.LABEL = t[PG]), _t(t, NG) && (r.GROUP = t[NG]), _t(t, $G) && (r.POP_MODE = t[$G]), _t(t, IG) && (r.PUSH_MODE = t[IG]), _t(t, BG) && (r.LONGER_ALT = t[BG]), _t(t, FG) && (r.LINE_BREAKS = t[FG]), _t(t, zG) && (r.START_CHARS_HINT = t[zG]), r; + return _t(t, PG) && (r.CATEGORIES = t[PG]), _w([r]), _t(t, NG) && (r.LABEL = t[NG]), _t(t, IG) && (r.GROUP = t[IG]), _t(t, BG) && (r.POP_MODE = t[BG]), _t(t, $G) && (r.PUSH_MODE = t[$G]), _t(t, FG) && (r.LONGER_ALT = t[FG]), _t(t, zG) && (r.LINE_BREAKS = t[zG]), _t(t, QG) && (r.START_CHARS_HINT = t[QG]), r; } -const nd = Dpe({ name: "EOF", pattern: no.NA }); +const nd = Ppe({ name: "EOF", pattern: no.NA }); _w([nd]); function UI(t, e, r, n, i, s, a, o) { return { @@ -76569,12 +76594,12 @@ function UI(t, e, r, n, i, s, a, o) { tokenType: t }; } -function Ppe(t, e) { +function Npe(t, e) { return Ew(t, e); } const Cg = { buildMismatchTokenMessage({ expected: t, actual: e, previous: r, ruleName: n }) { - return `Expecting ${Mpe(t) ? `--> ${Zg(t)} <--` : `token of type --> ${t.name} <--`} but found --> '${e.image}' <--`; + return `Expecting ${Dpe(t) ? `--> ${Zg(t)} <--` : `token of type --> ${t.name} <--`} but found --> '${e.image}' <--`; }, buildNotAllInputParsedMessage({ firstRedundant: t, ruleName: e }) { return "Redundant input, expecting EOF but found: " + t.image; @@ -76761,7 +76786,7 @@ class vVt extends OE { super.walkMany(e, r, n); } } -class QG extends OE { +class UG extends OE { walkManySep(e, r, n) { if (e.idx === this.occurrence) { const i = oc(r.concat(n)); @@ -76779,7 +76804,7 @@ class yVt extends OE { super.walkAtLeastOne(e, r, n); } } -class UG extends OE { +class VG extends OE { walkAtLeastOneSep(e, r, n) { if (e.idx === this.occurrence) { const i = oc(r.concat(n)); @@ -76852,7 +76877,7 @@ function lR(t, e, r = []) { suffixDef: ms(t, i) }), n; } -function Npe(t, e, r, n) { +function Ipe(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 = []; @@ -77043,16 +77068,16 @@ function VI(t) { return Yn.ALTERNATION; throw Error("non exhaustive match"); } -function VG(t) { +function qG(t) { const { occurrence: e, rule: r, prodType: n, maxLookahead: i } = t, s = VI(n); return s === Yn.ALTERNATION ? kE(e, r, i) : SE(e, r, s, i); } function xVt(t, e, r, n, i, s) { - const a = kE(t, e, r), o = Bpe(a) ? SS : Ew; + const a = kE(t, e, r), o = Fpe(a) ? SS : Ew; return s(a, n, o, i); } function wVt(t, e, r, n, i, s) { - const a = SE(t, e, i, r), o = Bpe(a) ? SS : Ew; + const a = SE(t, e, i, r), o = Fpe(a) ? SS : Ew; return s(a[0], o, n); } function OVt(t, e, r, n) { @@ -77162,7 +77187,7 @@ class SVt extends xE { this.checkIsTarget(e, Yn.REPETITION_WITH_SEPARATOR, r, n) || super.walkOption(e, r, n); } } -class Ipe extends X1 { +class $pe extends X1 { constructor(e, r, n) { super(), this.targetOccurrence = e, this.targetProdType = r, this.targetRef = n, this.result = []; } @@ -77188,7 +77213,7 @@ class Ipe extends X1 { this.checkIsTarget(e, Yn.ALTERNATION); } } -function qG(t) { +function YG(t) { const e = new Array(t); for (let r = 0; r < t; r++) e[r] = []; @@ -77223,8 +77248,8 @@ function TVt(t, e, r) { } return !0; } -function $pe(t, e) { - const r = St(t, (a) => lR([a], 1)), n = qG(r.length), i = St(r, (a) => { +function Bpe(t, e) { + const r = St(t, (a) => lR([a], 1)), n = YG(r.length), i = St(r, (a) => { const o = {}; return Ve(a, (l) => { const u = GA(l.partialPath); @@ -77236,7 +77261,7 @@ function $pe(t, e) { let s = r; for (let a = 1; a <= e; a++) { const o = s; - s = qG(o.length); + s = YG(o.length); for (let l = 0; l < o.length; l++) { const u = o[l]; for (let h = 0; h < u.length; h++) { @@ -77265,14 +77290,14 @@ function $pe(t, e) { return n; } function kE(t, e, r, n) { - const i = new Ipe(t, Yn.ALTERNATION, n); - return e.accept(i), $pe(i.result, r); + const i = new $pe(t, Yn.ALTERNATION, n); + return e.accept(i), Bpe(i.result, r); } function SE(t, e, r, n) { - const i = new Ipe(t, r); + const i = new $pe(t, r); e.accept(i); const s = i.result, o = new SVt(e, t, r).startWalking(), l = new oo({ definition: s }), u = new oo({ definition: o }); - return $pe([l, u], n); + return Bpe([l, u], n); } function cR(t, e) { e: @@ -77295,7 +77320,7 @@ function CVt(t, e) { return r === i || i.categoryMatchesMap[r.tokenTypeIdx]; }); } -function Bpe(t) { +function Fpe(t) { return Hl(t, (e) => Hl(e, (r) => Hl(r, (n) => Hr(n.categoryMatches)))); } function EVt(t) { @@ -77321,14 +77346,14 @@ function AVt(t, e) { ruleName: t.name, dslName: h, occurrence: l.idx - }, d = Fpe(l); + }, d = zpe(l); return d && (f.parameter = d), f; }); } function LVt(t) { - return `${Pc(t)}_#_${t.idx}_#_${Fpe(t)}`; + return `${Pc(t)}_#_${t.idx}_#_${zpe(t)}`; } -function Fpe(t) { +function zpe(t) { return t instanceof In ? t.terminalType.name : t instanceof Ma ? t.nonTerminalName : ""; } class RVt extends X1 { @@ -77384,7 +77409,7 @@ function DVt(t, e, r) { ruleName: t })), n; } -function zpe(t, e, r, n = []) { +function Qpe(t, e, r, n = []) { const i = [], s = Wk(e.definition); if (Hr(s)) return []; @@ -77400,7 +77425,7 @@ function zpe(t, e, r, n = []) { }); const l = iE(s, n.concat([t])), u = Lo(l, (h) => { const f = Hi(n); - return f.push(h), zpe(t, h, r, f); + return f.push(h), Qpe(t, h, r, f); }); return i.concat(u); } @@ -77440,7 +77465,7 @@ function PVt(t, e) { return Lo(n, (s) => { const a = vb(s.definition); return Lo(a, (o, l) => { - const u = Npe([o], [], Ew, 1); + const u = Ipe([o], [], Ew, 1); return Hr(u) ? [ { message: e.buildEmptyAlternationError({ @@ -77600,45 +77625,45 @@ function VVt(t) { errMsgProvider: y0 }), _Vt(t.rules, t.tokenTypes, t.errMsgProvider, t.grammarName); } -const Qpe = "MismatchedTokenException", Upe = "NoViableAltException", Vpe = "EarlyExitException", qpe = "NotAllInputParsedException", Ype = [ - Qpe, +const Upe = "MismatchedTokenException", Vpe = "NoViableAltException", qpe = "EarlyExitException", Ype = "NotAllInputParsedException", Wpe = [ Upe, Vpe, - qpe + qpe, + Ype ]; -Object.freeze(Ype); +Object.freeze(Wpe); function TS(t) { - return $a(Ype, t.name); + return $a(Wpe, t.name); } class TE 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 Wpe extends TE { +class Gpe extends TE { constructor(e, r, n) { - super(e, r), this.previousToken = n, this.name = Qpe; + super(e, r), this.previousToken = n, this.name = Upe; } } class qVt extends TE { constructor(e, r, n) { - super(e, r), this.previousToken = n, this.name = Upe; + super(e, r), this.previousToken = n, this.name = Vpe; } } class YVt extends TE { constructor(e, r) { - super(e, r), this.name = qpe; + super(e, r), this.name = Ype; } } class WVt extends TE { constructor(e, r, n) { - super(e, r), this.previousToken = n, this.name = Vpe; + super(e, r), this.previousToken = n, this.name = qpe; } } -const XA = {}, Gpe = "InRuleRecoveryException"; +const XA = {}, Xpe = "InRuleRecoveryException"; class GVt extends Error { constructor(e) { - super(e), this.name = Gpe; + super(e), this.name = Xpe; } } class XVt { @@ -77666,7 +77691,7 @@ class XVt { actual: u, previous: d, ruleName: this.getCurrRuleFullName() - }), g = new Wpe(p, u, this.LA(0)); + }), g = new Gpe(p, u, this.LA(0)); g.resyncedTokens = vb(o), this.SAVE_ERROR(g); }; for (; !l; ) @@ -77716,7 +77741,7 @@ class XVt { const e = this.flattenFollowSet(); let r = this.LA(1), n = 2; for (; ; ) { - const i = Oh(e, (s) => Ppe(r, s)); + const i = Oh(e, (s) => Npe(r, s)); if (i !== void 0) return i; r = this.LA(n), n++; @@ -77747,7 +77772,7 @@ class XVt { getFollowSetFromFollowKey(e) { if (e === XA) return [nd]; - const r = e.ruleName + e.idxInCallingRule + kpe + e.inRule; + const r = e.ruleName + e.idxInCallingRule + Spe + e.inRule; return this.resyncFollows[r]; } addToResyncTokens(e, r) { @@ -77786,7 +77811,7 @@ function HVt(t, e, r, n, i, s, a) { const f = l.isEndOfRule; this.RULE_STACK.length === 1 && f && u === void 0 && (u = nd, h = 1), !(u === void 0 || h === void 0) && this.shouldInRepetitionRecoveryBeTried(u, h, a) && this.tryInRepetitionRecovery(t, e, r, u); } -const ZVt = 4, wd = 8, Xpe = 1 << wd, Hpe = 2 << wd, uR = 3 << wd, hR = 4 << wd, fR = 5 << wd, Gk = 6 << wd; +const ZVt = 4, wd = 8, Hpe = 1 << wd, Zpe = 2 << wd, uR = 3 << wd, hR = 4 << wd, fR = 5 << wd, Gk = 6 << wd; function HA(t, e, r) { return r | e | t; } @@ -77809,7 +77834,7 @@ class YI { return r; } validateNoLeftRecursion(e) { - return Lo(e, (r) => zpe(r, r, y0)); + return Lo(e, (r) => Qpe(r, r, y0)); } validateEmptyOrAlternatives(e) { return Lo(e, (r) => PVt(r, y0)); @@ -77844,13 +77869,13 @@ class jVt { maxLookahead: u.maxLookahead || this.maxLookahead, hasPredicates: u.hasPredicates, dynamicTokensEnabled: this.dynamicTokensEnabled - }), d = HA(this.fullRuleNameToShort[r.name], Xpe, u.idx); + }), d = HA(this.fullRuleNameToShort[r.name], Hpe, u.idx); this.setLaFuncCache(d, f); }); }), Ve(i, (u) => { this.computeLookaheadFunc(r, u.idx, uR, "Repetition", u.maxLookahead, Pc(u)); }), Ve(s, (u) => { - this.computeLookaheadFunc(r, u.idx, Hpe, "Option", u.maxLookahead, Pc(u)); + this.computeLookaheadFunc(r, u.idx, Zpe, "Option", u.maxLookahead, Pc(u)); }), Ve(a, (u) => { this.computeLookaheadFunc(r, u.idx, hR, "RepetitionMandatory", u.maxLookahead, Pc(u)); }), Ve(o, (u) => { @@ -77930,10 +77955,10 @@ function JVt(t) { const e = x4.dslMethods; return x4.reset(), e; } -function YG(t, e) { +function WG(t, e) { isNaN(t.startOffset) === !0 ? (t.startOffset = e.startOffset, t.endOffset = e.endOffset) : t.endOffset < e.endOffset && (t.endOffset = e.endOffset); } -function WG(t, e) { +function GG(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 eqt(t, e, r) { @@ -77943,7 +77968,7 @@ function tqt(t, e, r) { t.children[e] === void 0 ? t.children[e] = [r] : t.children[e].push(r); } const rqt = "name"; -function Zpe(t, e) { +function jpe(t, e) { Object.defineProperty(t, rqt, { enumerable: !1, configurable: !0, @@ -77964,7 +77989,7 @@ function nqt(t, e) { function iqt(t, e) { const r = function() { }; - Zpe(r, t + "BaseSemantics"); + jpe(r, t + "BaseSemantics"); const n = { visit: function(i, s) { if (Pr(i) && (i = i[0]), !tn(i)) @@ -77987,7 +78012,7 @@ function iqt(t, e) { function sqt(t, e, r) { const n = function() { }; - Zpe(n, t + "BaseSemanticsWithDefaults"); + jpe(n, t + "BaseSemanticsWithDefaults"); const i = Object.create(r.prototype); return Ve(e, (s) => { i[s] = nqt; @@ -78013,9 +78038,9 @@ class lqt { if (this.CST_STACK = [], this.outputCst = e.outputCst, this.nodeLocationTracking = _t(e, "nodeLocationTracking") ? e.nodeLocationTracking : Th.nodeLocationTracking, !this.outputCst) this.cstInvocationStateUpdate = Di, this.cstFinallyStateUpdate = Di, this.cstPostTerminal = Di, this.cstPostNonTerminal = Di, this.cstPostRule = Di; else if (/full/i.test(this.nodeLocationTracking)) - this.recoveryEnabled ? (this.setNodeLocationFromToken = WG, this.setNodeLocationFromNode = WG, this.cstPostRule = Di, this.setInitialNodeLocation = this.setInitialNodeLocationFullRecovery) : (this.setNodeLocationFromToken = Di, this.setNodeLocationFromNode = Di, this.cstPostRule = this.cstPostRuleFull, this.setInitialNodeLocation = this.setInitialNodeLocationFullRegular); + this.recoveryEnabled ? (this.setNodeLocationFromToken = GG, this.setNodeLocationFromNode = GG, this.cstPostRule = Di, this.setInitialNodeLocation = this.setInitialNodeLocationFullRecovery) : (this.setNodeLocationFromToken = Di, this.setNodeLocationFromNode = Di, this.cstPostRule = this.cstPostRuleFull, this.setInitialNodeLocation = this.setInitialNodeLocationFullRegular); else if (/onlyOffset/i.test(this.nodeLocationTracking)) - this.recoveryEnabled ? (this.setNodeLocationFromToken = YG, this.setNodeLocationFromNode = YG, this.cstPostRule = Di, this.setInitialNodeLocation = this.setInitialNodeLocationOnlyOffsetRecovery) : (this.setNodeLocationFromToken = Di, this.setNodeLocationFromNode = Di, this.cstPostRule = this.cstPostRuleOnlyOffset, this.setInitialNodeLocation = this.setInitialNodeLocationOnlyOffsetRegular); + this.recoveryEnabled ? (this.setNodeLocationFromToken = WG, this.setNodeLocationFromNode = WG, this.cstPostRule = Di, this.setInitialNodeLocation = this.setInitialNodeLocationOnlyOffsetRecovery) : (this.setNodeLocationFromToken = Di, this.setNodeLocationFromNode = Di, this.cstPostRule = this.cstPostRuleOnlyOffset, this.setInitialNodeLocation = this.setInitialNodeLocationOnlyOffsetRegular); else if (/none/i.test(this.nodeLocationTracking)) this.setNodeLocationFromToken = Di, this.setNodeLocationFromNode = Di, this.cstPostRule = Di, this.setInitialNodeLocation = Di; else @@ -78535,7 +78560,7 @@ Make sure that all grammar rule definitions are done before 'performSelfAnalysis throw e; } optionInternal(e, r) { - const n = this.getKeyForAutomaticLookahead(Hpe, r); + const n = this.getKeyForAutomaticLookahead(Zpe, r); return this.optionInternalLogic(e, r, n); } optionInternalLogic(e, r, n) { @@ -78591,8 +78616,8 @@ Make sure that all grammar rule definitions are done before 'performSelfAnalysis s, o, i, - UG - ], o, Gk, e, UG); + VG + ], o, Gk, e, VG); } else throw this.raiseEarlyExitException(e, Yn.REPETITION_MANDATORY_WITH_SEPARATOR, r.ERR_MSG); } @@ -78640,8 +78665,8 @@ Make sure that all grammar rule definitions are done before 'performSelfAnalysis s, o, i, - QG - ], o, fR, e, QG); + UG + ], o, fR, e, UG); } } repetitionSepSecondInternal(e, r, n, i, s) { @@ -78660,7 +78685,7 @@ Make sure that all grammar rule definitions are done before 'performSelfAnalysis return e.call(this), this.getLexerPosition() > r; } orInternal(e, r) { - const n = this.getKeyForAutomaticLookahead(Xpe, r), i = Pr(e) ? e : e.DEF, a = this.getLaFuncFromCache(n).call(this, i); + const n = this.getKeyForAutomaticLookahead(Hpe, r), i = Pr(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); @@ -78704,7 +78729,7 @@ Make sure that all grammar rule definitions are done before 'performSelfAnalysis actual: r, previous: s, ruleName: this.getCurrRuleFullName() - }), this.SAVE_ERROR(new Wpe(i, r, s)); + }), this.SAVE_ERROR(new Gpe(i, r, s)); } consumeInternalRecovery(e, r, n) { if (this.recoveryEnabled && n.name === "MismatchedTokenException" && !this.isBackTracking()) { @@ -78712,7 +78737,7 @@ Make sure that all grammar rule definitions are done before 'performSelfAnalysis try { return this.tryInRuleRecovery(e, i); } catch (s) { - throw s.name === Gpe ? n : s; + throw s.name === Xpe ? n : s; } } else throw n; @@ -78801,7 +78826,7 @@ class dqt { const n = this.gastProductionsCache[e]; if (tn(n)) throw Error(`Rule ->${e}<- does not exist in this grammar.`); - return Npe([n], r, this.tokenMatcher, this.maxLookahead); + return Ipe([n], r, this.tokenMatcher, this.maxLookahead); } getNextPossibleTokenTypes(e) { const r = oc(e.ruleStack), i = this.getGAstProductions()[r]; @@ -78812,10 +78837,10 @@ const CE = { description: "This Object indicates the Parser is during Recording Phase" }; Object.freeze(CE); -const GG = !0, XG = Math.pow(2, wd) - 1, jpe = Dpe({ name: "RECORDING_PHASE_TOKEN", pattern: no.NA }); -_w([jpe]); -const Kpe = UI( - jpe, +const XG = !0, HG = Math.pow(2, wd) - 1, Kpe = Ppe({ name: "RECORDING_PHASE_TOKEN", pattern: no.NA }); +_w([Kpe]); +const Jpe = UI( + Kpe, `This IToken indicates the Parser is in Recording Phase See: https://chevrotain.io/docs/guide/internals.html#grammar-recording for details`, -1, @@ -78825,7 +78850,7 @@ const Kpe = UI( -1, -1 ); -Object.freeze(Kpe); +Object.freeze(Jpe); const pqt = { name: `This CSTNode indicates the Parser is in Recording Phase See: https://chevrotain.io/docs/guide/internals.html#grammar-recording for details`, @@ -78913,20 +78938,20 @@ class gqt { Yv.call(this, Bo, r, e); } atLeastOneSepFirstInternalRecord(e, r) { - Yv.call(this, Fo, r, e, GG); + Yv.call(this, Fo, r, e, XG); } manyInternalRecord(e, r) { Yv.call(this, ei, r, e); } manySepFirstInternalRecord(e, r) { - Yv.call(this, po, r, e, GG); + Yv.call(this, po, r, e, XG); } orInternalRecord(e, r) { return mqt.call(this, e, r); } subruleInternalRecord(e, r, n) { if (CS(r), !e || _t(e, "ruleName") === !1) { - const o = new Error(` argument is invalid expecting a Parser method reference but got: <${JSON.stringify(e)}> + 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; } @@ -78939,8 +78964,8 @@ class gqt { return i.definition.push(a), this.outputCst ? pqt : CE; } consumeInternalRecord(e, r, n) { - if (CS(r), !Rpe(e)) { - const a = new Error(` argument is invalid expecting a TokenType reference but got: <${JSON.stringify(e)}> + if (CS(r), !Mpe(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; } @@ -78949,7 +78974,7 @@ class gqt { terminalType: e, label: n == null ? void 0 : n.LABEL }); - return i.definition.push(s), Kpe; + return i.definition.push(s), Jpe; } } function Yv(t, e, r, n = !1) { @@ -78965,20 +78990,20 @@ function mqt(t, e) { ignoreAmbiguities: n && t.IGNORE_AMBIGUITIES === !0 }); _t(t, "MAX_LOOKAHEAD") && (s.maxLookahead = t.MAX_LOOKAHEAD); - const a = Ede(i, (o) => ml(o.GATE)); + const a = _de(i, (o) => ml(o.GATE)); return s.hasPredicates = a, r.definition.push(s), Ve(i, (o) => { const l = new oo({ definition: [] }); s.definition.push(l), _t(o, "IGNORE_AMBIGUITIES") ? l.ignoreAmbiguities = o.IGNORE_AMBIGUITIES : _t(o, "GATE") && (l.ignoreAmbiguities = !0), this.recordingProdStack.push(l), o.ALT.call(this), this.recordingProdStack.pop(); }), CE; } -function HG(t) { +function ZG(t) { return t === 0 ? "" : `${t}`; } function CS(t) { - if (t < 0 || t > XG) { + if (t < 0 || t > HG) { const e = new Error( `Invalid DSL Method idx value: <${t}> - Idx value must be a none negative value smaller than ${XG + 1}` + Idx value must be a none negative value smaller than ${HG + 1}` ); throw e.KNOWN_RECORDER_ERROR = !0, e; } @@ -78997,7 +79022,7 @@ class vqt { this.traceInitIndent++; const n = new Array(this.traceInitIndent + 1).join(" "); this.traceInitIndent < this.traceInitMaxIdent && console.log(`${n}--> <${e}>`); - const { time: i, value: s } = wpe(r), a = i > 10 ? console.warn : console.log; + const { time: i, value: s } = Ope(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(); @@ -79034,7 +79059,7 @@ var Da; (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"; })(Da || (Da = {})); -function ZG(t = void 0) { +function jG(t = void 0) { return function() { return t; }; @@ -79049,7 +79074,7 @@ class Aw { this.selfAnalysisDone = !0; const r = this.className; this.TRACE_INIT("toFastProps", () => { - Ope(this); + kpe(this); }), this.TRACE_INIT("Grammar Recording", () => { try { this.enableRecording(), Ve(this.definedRulesNames, (i) => { @@ -79131,7 +79156,7 @@ class bqt extends Aw { function e1(t, e, r) { return `${t.name}_${e}_${r}`; } -const id = 1, xqt = 2, Jpe = 4, ege = 5, Lw = 7, wqt = 8, Oqt = 9, kqt = 10, Sqt = 11, tge = 12; +const id = 1, xqt = 2, ege = 4, tge = 5, Lw = 7, wqt = 8, Oqt = 9, kqt = 10, Sqt = 11, rge = 12; class WI { constructor(e) { this.target = e; @@ -79145,7 +79170,7 @@ class GI extends WI { super(e), this.tokenType = r; } } -class rge extends WI { +class nge extends WI { constructor(e) { super(e); } @@ -79188,47 +79213,47 @@ function Cqt(t, e) { s.stop = a, t.ruleToStartState.set(i, s), t.ruleToStopState.set(i, a); } } -function nge(t, e, r) { +function ige(t, e, r) { return r instanceof In ? HI(t, e, r.terminalType, r) : r instanceof Ma ? Iqt(t, e, r) : r instanceof go ? Rqt(t, e, r) : r instanceof _s ? Mqt(t, e, r) : r instanceof ei ? Eqt(t, e, r) : r instanceof po ? _qt(t, e, r) : r instanceof Bo ? Aqt(t, e, r) : r instanceof Fo ? Lqt(t, e, r) : $p(t, e, r); } function Eqt(t, e, r) { const n = os(t, e, r, { - type: ege + type: tge }); Od(t, n); const i = H1(t, e, n, r, $p(t, e, r)); - return sge(t, e, r, i); + return age(t, e, r, i); } function _qt(t, e, r) { const n = os(t, e, r, { - type: ege + type: tge }); Od(t, n); const i = H1(t, e, n, r, $p(t, e, r)), s = HI(t, e, r.separator, r); - return sge(t, e, r, i, s); + return age(t, e, r, i, s); } function Aqt(t, e, r) { const n = os(t, e, r, { - type: Jpe + type: ege }); Od(t, n); const i = H1(t, e, n, r, $p(t, e, r)); - return ige(t, e, r, i); + return sge(t, e, r, i); } function Lqt(t, e, r) { const n = os(t, e, r, { - type: Jpe + type: ege }); Od(t, n); const i = H1(t, e, n, r, $p(t, e, r)), s = HI(t, e, r.separator, r); - return ige(t, e, r, i, s); + return sge(t, e, r, i, s); } function Rqt(t, e, r) { const n = os(t, e, r, { type: id }); Od(t, n); - const i = St(r.definition, (a) => nge(t, e, a)); + const i = St(r.definition, (a) => ige(t, e, a)); return H1(t, e, n, r, ...i); } function Mqt(t, e, r) { @@ -79240,29 +79265,29 @@ function Mqt(t, e, r) { return Dqt(t, e, r, i); } function $p(t, e, r) { - const n = ni(St(r.definition, (i) => nge(t, e, i)), (i) => i !== void 0); + const n = ni(St(r.definition, (i) => ige(t, e, i)), (i) => i !== void 0); return n.length === 1 ? n[0] : n.length === 0 ? void 0 : Nqt(t, n); } -function ige(t, e, r, n, i) { +function sge(t, e, r, n, i) { const s = n.left, a = n.right, o = os(t, e, r, { type: Sqt }); Od(t, o); const l = os(t, e, r, { - type: tge + type: rge }); return s.loopback = o, l.loopback = o, t.decisionMap[e1(e, i ? "RepetitionMandatoryWithSeparator" : "RepetitionMandatory", r.idx)] = o, ki(a, o), i === void 0 ? (ki(o, s), ki(o, l)) : (ki(o, l), ki(o, i.left), ki(i.right, s)), { left: s, right: l }; } -function sge(t, e, r, n, i) { +function age(t, e, r, n, i) { const s = n.left, a = n.right, o = os(t, e, r, { type: kqt }); Od(t, o); const l = os(t, e, r, { - type: tge + type: rge }), u = os(t, e, r, { type: Oqt }); @@ -79354,7 +79379,7 @@ function $qt(t, e, r) { }; } function ki(t, e) { - const r = new rge(e); + const r = new nge(e); ZI(t, r); } function os(t, e, r, n) { @@ -79387,7 +79412,7 @@ class pR { this.map = {}; } add(e) { - const r = age(e); + const r = oge(e); r in this.map || (this.map[r] = this.configs.length, this.configs.push(e)); } get elements() { @@ -79403,7 +79428,7 @@ class pR { return e; } } -function age(t, e = !0) { +function oge(t, e = !0) { return `${e ? `a${t.alt}` : ""}s${t.state.stateNumber}:${t.stack.map((r) => r.stateNumber.toString()).join("_")}`; } function Fqt(t, e) { @@ -79418,7 +79443,7 @@ function Fqt(t, e) { }, r[i] = s), s; }; } -class oge { +class lge { constructor() { this.predicates = []; } @@ -79436,7 +79461,7 @@ class oge { return e; } } -const jG = new oge(); +const KG = new lge(); class zqt extends YI { constructor(e) { var r; @@ -79452,13 +79477,13 @@ class zqt extends YI { return []; } buildLookaheadForAlternation(e) { - const { prodOccurrence: r, rule: n, hasPredicates: i, dynamicTokensEnabled: s } = e, a = this.dfas, o = this.logging, l = e1(n, "Alternation", r), h = this.atn.decisionMap[l].decision, f = St(VG({ + const { prodOccurrence: r, rule: n, hasPredicates: i, dynamicTokensEnabled: s } = e, a = this.dfas, o = this.logging, l = e1(n, "Alternation", r), h = this.atn.decisionMap[l].decision, f = St(qG({ maxLookahead: 1, occurrence: r, prodType: "Alternation", rule: n }), (d) => St(d, (p) => p[0])); - if (KG(f, !1) && !s) { + if (JG(f, !1) && !s) { const d = Ri(f, (p, g, m) => (Ve(g, (v) => { v && (p[v.tokenTypeIdx] = m, Ve(v.categoryMatches, (y) => { p[y] = m; @@ -79479,7 +79504,7 @@ class zqt extends YI { }; } else return i ? function(d) { - const p = new oge(), g = d === void 0 ? 0 : d.length; + const p = new lge(), 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)); @@ -79487,18 +79512,18 @@ class zqt extends YI { const m = ZA.call(this, a, h, p, o); return typeof m == "number" ? m : void 0; } : function() { - const d = ZA.call(this, a, h, jG, o); + const d = ZA.call(this, a, h, KG, 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 = e1(n, i, r), h = this.atn.decisionMap[l].decision, f = St(VG({ + const { prodOccurrence: r, rule: n, prodType: i, dynamicTokensEnabled: s } = e, a = this.dfas, o = this.logging, l = e1(n, i, r), h = this.atn.decisionMap[l].decision, f = St(qG({ maxLookahead: 1, occurrence: r, prodType: i, rule: n }), (d) => St(d, (p) => p[0])); - if (KG(f) && f[0][0] && !s) { + if (JG(f) && f[0][0] && !s) { const d = f[0], p = as(d); if (p.length === 1 && Hr(p[0].categoryMatches)) { const m = p[0].tokenTypeIdx; @@ -79516,12 +79541,12 @@ class zqt extends YI { } } return function() { - const d = ZA.call(this, a, h, jG, o); + const d = ZA.call(this, a, h, KG, o); return typeof d == "object" ? !1 : d === 0; }; } } -function KG(t, e = !0) { +function JG(t, e = !0) { const r = /* @__PURE__ */ new Set(); for (const n of t) { const i = /* @__PURE__ */ new Set(); @@ -79553,7 +79578,7 @@ function ZA(t, e, r, n) { let s = i.start; if (s === void 0) { const o = Kqt(i.atnStartState); - s = cge(i, lge(o)), i.start = s; + s = uge(i, cge(o)), i.start = s; } return Uqt.apply(this, [i, s, r, n]); } @@ -79573,8 +79598,8 @@ function Uqt(t, e, r, n) { function Vqt(t, e, r, n, i, s) { const a = Hqt(e.configs, r, i); if (a.size === 0) - return JG(t, e, r, AS), AS; - let o = lge(a); + return eX(t, e, r, AS), AS; + let o = cge(a); const l = jqt(a, i); if (l !== void 0) o.isAcceptState = !0, o.prediction = l, o.configs.uniqueAlt = l; @@ -79582,7 +79607,7 @@ function Vqt(t, e, r, n, i, s) { const u = Zm(a.alts); o.isAcceptState = !0, o.prediction = u, o.configs.uniqueAlt = u, qqt.apply(this, [t, n, a.alts, s]); } - return o = JG(t, e, r, o), o; + return o = eX(t, e, r, o), o; } function qqt(t, e, r, n) { const i = []; @@ -79665,7 +79690,7 @@ function Hqt(t, e, r) { return s; } function Zqt(t, e) { - if (t instanceof GI && Ppe(e, t.tokenType)) + if (t instanceof GI && Npe(e, t.tokenType)) return t.target; } function jqt(t, e) { @@ -79679,7 +79704,7 @@ function jqt(t, e) { } return r; } -function lge(t) { +function cge(t) { return { configs: t, edges: {}, @@ -79687,10 +79712,10 @@ function lge(t) { prediction: -1 }; } -function JG(t, e, r, n) { - return n = cge(t, n), e.edges[r.tokenTypeIdx] = n, n; +function eX(t, e, r, n) { + return n = uge(t, n), e.edges[r.tokenTypeIdx] = n, n; } -function cge(t, e) { +function uge(t, e) { if (e === AS) return e; const r = e.configs.key, n = t.states[r]; @@ -79730,7 +79755,7 @@ function LS(t, e) { } } function Jqt(t, e) { - if (e instanceof rge) + if (e instanceof nge) return { state: e.target, alt: t.alt, @@ -79766,7 +79791,7 @@ function rYt(t) { function nYt(t) { const e = /* @__PURE__ */ new Map(); for (const r of t) { - const n = age(r, !1); + const n = oge(r, !1); let i = e.get(n); i === void 0 && (i = {}, e.set(n, i)), i[r.alt] = !0; } @@ -79784,13 +79809,13 @@ function sYt(t) { return !0; return !1; } -var eX; +var tX; (function(t) { function e(r) { return typeof r == "string"; } t.is = e; -})(eX || (eX = {})); +})(tX || (tX = {})); var gR; (function(t) { function e(r) { @@ -79798,14 +79823,14 @@ var gR; } t.is = e; })(gR || (gR = {})); -var tX; +var rX; (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; -})(tX || (tX = {})); +})(rX || (rX = {})); var RS; (function(t) { t.MIN_VALUE = 0, t.MAX_VALUE = 2147483647; @@ -79854,7 +79879,7 @@ var MS; } t.is = r; })(MS || (MS = {})); -var rX; +var nX; (function(t) { function e(n, i, s, a) { return { targetUri: n, targetRange: i, targetSelectionRange: s, originSelectionRange: a }; @@ -79865,7 +79890,7 @@ var rX; return We.objectLiteral(i) && Ir.is(i.targetRange) && We.string(i.targetUri) && Ir.is(i.targetSelectionRange) && (Ir.is(i.originSelectionRange) || We.undefined(i.originSelectionRange)); } t.is = r; -})(rX || (rX = {})); +})(nX || (nX = {})); var mR; (function(t) { function e(n, i, s, a) { @@ -79883,7 +79908,7 @@ var mR; } t.is = r; })(mR || (mR = {})); -var nX; +var iX; (function(t) { function e(n, i) { return { @@ -79897,8 +79922,8 @@ var nX; return We.objectLiteral(i) && Ir.is(i.range) && mR.is(i.color); } t.is = r; -})(nX || (nX = {})); -var iX; +})(iX || (iX = {})); +var sX; (function(t) { function e(n, i, s) { return { @@ -79913,12 +79938,12 @@ var iX; return We.objectLiteral(i) && We.string(i.label) && (We.undefined(i.textEdit) || r1.is(i)) && (We.undefined(i.additionalTextEdits) || We.typedArray(i.additionalTextEdits, r1.is)); } t.is = r; -})(iX || (iX = {})); -var sX; -(function(t) { - t.Comment = "comment", t.Imports = "imports", t.Region = "region"; })(sX || (sX = {})); var aX; +(function(t) { + t.Comment = "comment", t.Imports = "imports", t.Region = "region"; +})(aX || (aX = {})); +var oX; (function(t) { function e(n, i, s, a, o, l) { const u = { @@ -79933,7 +79958,7 @@ var aX; return We.objectLiteral(i) && We.uinteger(i.startLine) && We.uinteger(i.startLine) && (We.undefined(i.startCharacter) || We.uinteger(i.startCharacter)) && (We.undefined(i.endCharacter) || We.uinteger(i.endCharacter)) && (We.undefined(i.kind) || We.string(i.kind)); } t.is = r; -})(aX || (aX = {})); +})(oX || (oX = {})); var vR; (function(t) { function e(n, i) { @@ -79949,22 +79974,22 @@ var vR; } t.is = r; })(vR || (vR = {})); -var oX; -(function(t) { - t.Error = 1, t.Warning = 2, t.Information = 3, t.Hint = 4; -})(oX || (oX = {})); var lX; (function(t) { - t.Unnecessary = 1, t.Deprecated = 2; + t.Error = 1, t.Warning = 2, t.Information = 3, t.Hint = 4; })(lX || (lX = {})); var cX; +(function(t) { + t.Unnecessary = 1, t.Deprecated = 2; +})(cX || (cX = {})); +var uX; (function(t) { function e(r) { const n = r; return We.objectLiteral(n) && We.string(n.href); } t.is = e; -})(cX || (cX = {})); +})(uX || (uX = {})); var DS; (function(t) { function e(n, i, s, a, o, l) { @@ -80033,7 +80058,7 @@ var n1; } t.is = e; })(n1 || (n1 = {})); -var uX; +var hX; (function(t) { function e(s, a, o) { return { range: s, newText: a, annotationId: o }; @@ -80052,7 +80077,7 @@ var uX; return r1.is(a) && (yR.is(a.annotationId) || n1.is(a.annotationId)); } t.is = i; -})(uX || (uX = {})); +})(hX || (hX = {})); var bR; (function(t) { function e(n, i) { @@ -80122,7 +80147,7 @@ var kR; } t.is = e; })(kR || (kR = {})); -var hX; +var fX; (function(t) { function e(n) { return { uri: n }; @@ -80133,8 +80158,8 @@ var hX; return We.defined(i) && We.string(i.uri); } t.is = r; -})(hX || (hX = {})); -var fX; +})(fX || (fX = {})); +var dX; (function(t) { function e(n, i) { return { uri: n, version: i }; @@ -80145,7 +80170,7 @@ var fX; return We.defined(i) && We.string(i.uri) && We.integer(i.version); } t.is = r; -})(fX || (fX = {})); +})(dX || (dX = {})); var SR; (function(t) { function e(n, i) { @@ -80158,7 +80183,7 @@ var SR; } t.is = r; })(SR || (SR = {})); -var dX; +var pX; (function(t) { function e(n, i, s, a) { return { uri: n, languageId: i, version: s, text: a }; @@ -80169,7 +80194,7 @@ var dX; return We.defined(i) && We.string(i.uri) && We.string(i.languageId) && We.integer(i.version) && We.string(i.text); } t.is = r; -})(dX || (dX = {})); +})(pX || (pX = {})); var TR; (function(t) { t.PlainText = "plaintext", t.Markdown = "markdown"; @@ -80187,19 +80212,19 @@ var kb; } t.is = e; })(kb || (kb = {})); -var pX; -(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; -})(pX || (pX = {})); var gX; (function(t) { - t.PlainText = 1, t.Snippet = 2; + 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; })(gX || (gX = {})); var mX; (function(t) { - t.Deprecated = 1; + t.PlainText = 1, t.Snippet = 2; })(mX || (mX = {})); var vX; +(function(t) { + t.Deprecated = 1; +})(vX || (vX = {})); +var yX; (function(t) { function e(n, i, s) { return { newText: n, insert: i, replace: s }; @@ -80210,33 +80235,33 @@ var vX; return i && We.string(i.newText) && Ir.is(i.insert) && Ir.is(i.replace); } t.is = r; -})(vX || (vX = {})); -var yX; -(function(t) { - t.asIs = 1, t.adjustIndentation = 2; })(yX || (yX = {})); var bX; +(function(t) { + t.asIs = 1, t.adjustIndentation = 2; +})(bX || (bX = {})); +var xX; (function(t) { function e(r) { const n = r; return n && (We.string(n.detail) || n.detail === void 0) && (We.string(n.description) || n.description === void 0); } t.is = e; -})(bX || (bX = {})); -var xX; +})(xX || (xX = {})); +var wX; (function(t) { function e(r) { return { label: r }; } t.create = e; -})(xX || (xX = {})); -var wX; +})(wX || (wX = {})); +var OX; (function(t) { function e(r, n) { return { items: r || [], isIncomplete: !!n }; } t.create = e; -})(wX || (wX = {})); +})(OX || (OX = {})); var PS; (function(t) { function e(n) { @@ -80249,50 +80274,50 @@ var PS; } t.is = r; })(PS || (PS = {})); -var OX; +var kX; (function(t) { function e(r) { let n = r; return !!n && We.objectLiteral(n) && (kb.is(n.contents) || PS.is(n.contents) || We.typedArray(n.contents, PS.is)) && (r.range === void 0 || Ir.is(r.range)); } t.is = e; -})(OX || (OX = {})); -var kX; +})(kX || (kX = {})); +var SX; (function(t) { function e(r, n) { return n ? { label: r, documentation: n } : { label: r }; } t.create = e; -})(kX || (kX = {})); -var SX; +})(SX || (SX = {})); +var TX; (function(t) { function e(r, n, ...i) { let s = { label: r }; return We.defined(n) && (s.documentation = n), We.defined(i) ? s.parameters = i : s.parameters = [], s; } t.create = e; -})(SX || (SX = {})); -var TX; -(function(t) { - t.Text = 1, t.Read = 2, t.Write = 3; })(TX || (TX = {})); var CX; +(function(t) { + t.Text = 1, t.Read = 2, t.Write = 3; +})(CX || (CX = {})); +var EX; (function(t) { function e(r, n) { let i = { range: r }; return We.number(n) && (i.kind = n), i; } t.create = e; -})(CX || (CX = {})); -var EX; -(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; })(EX || (EX = {})); var _X; (function(t) { - t.Deprecated = 1; + 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; })(_X || (_X = {})); var AX; +(function(t) { + t.Deprecated = 1; +})(AX || (AX = {})); +var LX; (function(t) { function e(r, n, i, s, a) { let o = { @@ -80303,15 +80328,15 @@ var AX; return a && (o.containerName = a), o; } t.create = e; -})(AX || (AX = {})); -var LX; +})(LX || (LX = {})); +var RX; (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; -})(LX || (LX = {})); -var RX; +})(RX || (RX = {})); +var MX; (function(t) { function e(n, i, s, a, o, l) { let u = { @@ -80329,16 +80354,16 @@ var RX; return i && We.string(i.name) && We.number(i.kind) && Ir.is(i.range) && Ir.is(i.selectionRange) && (i.detail === void 0 || We.string(i.detail)) && (i.deprecated === void 0 || We.boolean(i.deprecated)) && (i.children === void 0 || Array.isArray(i.children)) && (i.tags === void 0 || Array.isArray(i.tags)); } t.is = r; -})(RX || (RX = {})); -var MX; +})(MX || (MX = {})); +var DX; (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"; -})(MX || (MX = {})); +})(DX || (DX = {})); var NS; (function(t) { t.Invoked = 1, t.Automatic = 2; })(NS || (NS = {})); -var DX; +var PX; (function(t) { function e(n, i, s) { let a = { diagnostics: n }; @@ -80350,8 +80375,8 @@ var DX; return We.defined(i) && We.typedArray(i.diagnostics, DS.is) && (i.only === void 0 || We.typedArray(i.only, We.string)) && (i.triggerKind === void 0 || i.triggerKind === NS.Invoked || i.triggerKind === NS.Automatic); } t.is = r; -})(DX || (DX = {})); -var PX; +})(PX || (PX = {})); +var NX; (function(t) { function e(n, i, s) { let a = { title: n }, o = !0; @@ -80363,8 +80388,8 @@ var PX; return i && We.string(i.title) && (i.diagnostics === void 0 || We.typedArray(i.diagnostics, DS.is)) && (i.kind === void 0 || We.string(i.kind)) && (i.edit !== void 0 || i.command !== void 0) && (i.command === void 0 || t1.is(i.command)) && (i.isPreferred === void 0 || We.boolean(i.isPreferred)) && (i.edit === void 0 || kR.is(i.edit)); } t.is = r; -})(PX || (PX = {})); -var NX; +})(NX || (NX = {})); +var IX; (function(t) { function e(n, i) { let s = { range: n }; @@ -80376,8 +80401,8 @@ var NX; return We.defined(i) && Ir.is(i.range) && (We.undefined(i.command) || t1.is(i.command)); } t.is = r; -})(NX || (NX = {})); -var IX; +})(IX || (IX = {})); +var $X; (function(t) { function e(n, i) { return { tabSize: n, insertSpaces: i }; @@ -80388,8 +80413,8 @@ var IX; return We.defined(i) && We.uinteger(i.tabSize) && We.boolean(i.insertSpaces); } t.is = r; -})(IX || (IX = {})); -var $X; +})($X || ($X = {})); +var BX; (function(t) { function e(n, i, s) { return { range: n, target: i, data: s }; @@ -80400,8 +80425,8 @@ var $X; return We.defined(i) && Ir.is(i.range) && (We.undefined(i.target) || We.string(i.target)); } t.is = r; -})($X || ($X = {})); -var BX; +})(BX || (BX = {})); +var FX; (function(t) { function e(n, i) { return { range: n, parent: i }; @@ -80412,24 +80437,24 @@ var BX; return We.objectLiteral(i) && Ir.is(i.range) && (i.parent === void 0 || t.is(i.parent)); } t.is = r; -})(BX || (BX = {})); -var FX; -(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"; })(FX || (FX = {})); var zX; (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"; + 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"; })(zX || (zX = {})); var QX; +(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"; +})(QX || (QX = {})); +var UX; (function(t) { function e(r) { const n = r; return We.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; -})(QX || (QX = {})); -var UX; +})(UX || (UX = {})); +var VX; (function(t) { function e(n, i) { return { range: n, text: i }; @@ -80440,8 +80465,8 @@ var UX; return i != null && Ir.is(i.range) && We.string(i.text); } t.is = r; -})(UX || (UX = {})); -var VX; +})(VX || (VX = {})); +var qX; (function(t) { function e(n, i, s) { return { range: n, variableName: i, caseSensitiveLookup: s }; @@ -80452,8 +80477,8 @@ var VX; return i != null && Ir.is(i.range) && We.boolean(i.caseSensitiveLookup) && (We.string(i.variableName) || i.variableName === void 0); } t.is = r; -})(VX || (VX = {})); -var qX; +})(qX || (qX = {})); +var YX; (function(t) { function e(n, i) { return { range: n, expression: i }; @@ -80464,8 +80489,8 @@ var qX; return i != null && Ir.is(i.range) && (We.string(i.expression) || i.expression === void 0); } t.is = r; -})(qX || (qX = {})); -var YX; +})(YX || (YX = {})); +var WX; (function(t) { function e(n, i) { return { frameId: n, stoppedLocation: i }; @@ -80476,7 +80501,7 @@ var YX; return We.defined(i) && Ir.is(n.stoppedLocation); } t.is = r; -})(YX || (YX = {})); +})(WX || (WX = {})); var CR; (function(t) { t.Type = 1, t.Parameter = 2; @@ -80497,7 +80522,7 @@ var ER; } t.is = r; })(ER || (ER = {})); -var WX; +var GX; (function(t) { function e(n, i, s) { const a = { position: n, label: i }; @@ -80509,55 +80534,55 @@ var WX; return We.objectLiteral(i) && Kr.is(i.position) && (We.string(i.label) || We.typedArray(i.label, ER.is)) && (i.kind === void 0 || CR.is(i.kind)) && i.textEdits === void 0 || We.typedArray(i.textEdits, r1.is) && (i.tooltip === void 0 || We.string(i.tooltip) || kb.is(i.tooltip)) && (i.paddingLeft === void 0 || We.boolean(i.paddingLeft)) && (i.paddingRight === void 0 || We.boolean(i.paddingRight)); } t.is = r; -})(WX || (WX = {})); -var GX; +})(GX || (GX = {})); +var XX; (function(t) { function e(r) { return { kind: "snippet", value: r }; } t.createSnippet = e; -})(GX || (GX = {})); -var XX; +})(XX || (XX = {})); +var HX; (function(t) { function e(r, n, i, s) { return { insertText: r, filterText: n, range: i, command: s }; } t.create = e; -})(XX || (XX = {})); -var HX; +})(HX || (HX = {})); +var ZX; (function(t) { function e(r) { return { items: r }; } t.create = e; -})(HX || (HX = {})); -var ZX; -(function(t) { - t.Invoked = 0, t.Automatic = 1; })(ZX || (ZX = {})); var jX; +(function(t) { + t.Invoked = 0, t.Automatic = 1; +})(jX || (jX = {})); +var KX; (function(t) { function e(r, n) { return { range: r, text: n }; } t.create = e; -})(jX || (jX = {})); -var KX; +})(KX || (KX = {})); +var JX; (function(t) { function e(r, n) { return { triggerKind: r, selectedCompletionInfo: n }; } t.create = e; -})(KX || (KX = {})); -var JX; +})(JX || (JX = {})); +var eH; (function(t) { function e(r) { const n = r; return We.objectLiteral(n) && gR.is(n.uri) && We.string(n.name); } t.is = e; -})(JX || (JX = {})); -var eH; +})(eH || (eH = {})); +var tH; (function(t) { function e(s, a, o, l) { return new aYt(s, a, o, l); @@ -80598,7 +80623,7 @@ var eH; s[d++] = u[f++]; return s; } -})(eH || (eH = {})); +})(tH || (tH = {})); class aYt { constructor(e, r, n, i) { this._uri = e, this._languageId = r, this._version = n, this._content = i, this._lineOffsets = void 0; @@ -80717,7 +80742,7 @@ class oYt { return this.nodeStack[this.nodeStack.length - 1]; } buildRootNode(e) { - return this.rootNode = new hge(e), this.rootNode.root = this.rootNode, this.nodeStack = [this.rootNode], this.rootNode; + return this.rootNode = new fge(e), this.rootNode.root = this.rootNode, this.nodeStack = [this.rootNode], this.rootNode; } buildCompositeNode(e) { const r = new jI(); @@ -80761,7 +80786,7 @@ class oYt { e.content.push(r); } } -class uge { +class hge { get parent() { return this.container; } @@ -80788,7 +80813,7 @@ class uge { return this.root.fullText.substring(this.offset, this.end); } } -class _R extends uge { +class _R extends hge { get offset() { return this._offset; } @@ -80811,7 +80836,7 @@ class _R extends uge { super(), this._hidden = s, this._offset = e, this._tokenType = i, this._length = r, this._range = n; } } -class jI extends uge { +class jI extends hge { constructor() { super(...arguments), this.content = new KI(this); } @@ -80873,7 +80898,7 @@ class KI extends Array { r.container = this.parent; } } -class hge extends jI { +class fge extends jI { get text() { return this._text.substring(this.offset, this.end); } @@ -80888,8 +80913,8 @@ const AR = Symbol("Datatype"); function jA(t) { return t.$type === AR; } -const tH = "\u200B", fge = (t) => t.endsWith(tH) ? t : t + tH; -class dge { +const rH = "\u200B", dge = (t) => t.endsWith(rH) ? t : t + rH; +class pge { constructor(e) { this._unorderedGroups = /* @__PURE__ */ new Map(), this.lexer = e.parser.Lexer; const r = this.lexer.definition; @@ -80920,7 +80945,7 @@ class dge { this.wrapper.wrapSelfAnalysis(); } } -class lYt extends dge { +class lYt extends pge { get current() { return this.stack[this.stack.length - 1]; } @@ -80928,7 +80953,7 @@ class lYt extends dge { super(e), this.nodeBuilder = new oYt(), 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 : BI(e) ? AR : bE(e), i = this.wrapper.DEFINE_RULE(fge(e.name), this.startImplementation(n, r).bind(this)); + const n = e.fragment ? void 0 : BI(e) ? AR : bE(e), i = this.wrapper.DEFINE_RULE(dge(e.name), this.startImplementation(n, r).bind(this)); return e.entry && (this.mainRule = i), i; } parse(e) { @@ -81064,7 +81089,7 @@ class cYt { return Cg.buildEarlyExitMessage(e); } } -class pge extends cYt { +class gge extends cYt { 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}\`.`; } @@ -81072,7 +81097,7 @@ class pge extends cYt { return `Expecting end of file but found \`${e.image}\`.`; } } -class uYt extends dge { +class uYt extends pge { constructor() { super(...arguments), this.tokens = [], this.elementStack = [], this.lastElementStack = [], this.nextTokenIndex = 0, this.stackSize = 0; } @@ -81090,7 +81115,7 @@ class uYt extends dge { }; } rule(e, r) { - const n = this.wrapper.DEFINE_RULE(fge(e.name), this.startImplementation(r).bind(this)); + const n = this.wrapper.DEFINE_RULE(dge(e.name), this.startImplementation(r).bind(this)); return e.entry && (this.mainRule = n), n; } resetState() { @@ -81139,7 +81164,7 @@ const hYt = { recoveryEnabled: !0, nodeLocationTracking: "full", skipValidations: !0, - errorMessageProvider: new pge() + errorMessageProvider: new gge() }; class fYt extends bqt { constructor(e, r) { @@ -81176,7 +81201,7 @@ class fYt extends bqt { this.atLeastOne(e, r); } } -function gge(t, e, r) { +function mge(t, e, r) { return dYt({ parser: e, tokens: r, @@ -81185,7 +81210,7 @@ function gge(t, e, r) { }, t), e; } function dYt(t, e) { - const r = dpe(e, !1), n = ks(e.rules).filter(wl).filter((i) => r.has(i)); + const r = ppe(e, !1), n = ks(e.rules).filter(wl).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, np(s, i.definition))); @@ -81200,12 +81225,12 @@ function np(t, e, r = !1) { else if (J0(e)) n = np(t, e.terminal); else if (PI(e)) - n = mge(t, e); + n = vge(t, e); else if (tp(e)) n = gYt(t, e); - else if (Y0e(e)) + else if (W0e(e)) n = vYt(t, e); - else if (ape(e)) + else if (ope(e)) n = yYt(t, e); else if (NI(e)) n = bYt(t, e); @@ -81213,8 +81238,8 @@ function np(t, e, r = !1) { const i = t.consume++; n = () => t.parser.consume(i, nd, e); } else - throw new _0e(e.$cstNode, `Unexpected element type: ${e.$type}`); - return vge(t, r ? void 0 : IS(e), n, e.cardinality); + throw new A0e(e.$cstNode, `Unexpected element type: ${e.$type}`); + return yge(t, r ? void 0 : IS(e), n, e.cardinality); } function pYt(t, e) { const r = bE(e); @@ -81224,14 +81249,14 @@ function gYt(t, e) { const r = e.rule.ref; if (wl(r)) { const n = t.subrule++, i = e.arguments.length > 0 ? mYt(r, e.arguments) : () => ({}); - return (s) => t.parser.subrule(n, yge(t, r), e, i(s)); + return (s) => t.parser.subrule(n, bge(t, r), e, i(s)); } else if (Ip(r)) { const n = t.consume++, i = LR(t, r.name); return () => t.parser.consume(n, i, e); } else if (r) pE(); else - throw new _0e(e.$cstNode, `Undefined rule type: ${e.$type}`); + throw new A0e(e.$cstNode, `Undefined rule type: ${e.$type}`); } function mYt(t, e) { const r = e.map((n) => Vu(n.value)); @@ -81311,7 +81336,7 @@ function yYt(t, e) { const p = f.unorderedGroups.get(i(n, f)); return !(p != null && p[u]); }, h; - })), a = vge(t, IS(e), s, "*"); + })), a = yge(t, IS(e), s, "*"); return (o) => { a(o), t.parser.isRecording() || t.parser.unorderedGroups.delete(i(n, t.parser)); }; @@ -81324,11 +81349,11 @@ function IS(t) { if (NI(t)) return t.guardCondition; } -function mge(t, e, r = e.terminal) { +function vge(t, e, r = e.terminal) { if (r) if (tp(r) && wl(r.rule.ref)) { const n = t.subrule++; - return (i) => t.parser.subrule(n, yge(t, r.rule.ref), e, i); + return (i) => t.parser.subrule(n, bge(t, r.rule.ref), e, i); } else if (tp(r) && Ip(r.rule.ref)) { const n = t.consume++, i = LR(t, r.rule.ref.name); return () => t.parser.consume(n, i, e); @@ -81340,10 +81365,10 @@ function mge(t, e, r = e.terminal) { else { if (!e.type.ref) throw new Error("Could not resolve reference to type: " + e.type.$refText); - const n = mpe(e.type.ref), i = n == null ? void 0 : n.terminal; + const n = vpe(e.type.ref), i = n == null ? void 0 : n.terminal; if (!i) throw new Error("Could not find name assignment for type: " + bE(e.type.ref)); - return mge(t, e, i); + return vge(t, e, i); } } function xYt(t, e) { @@ -81352,7 +81377,7 @@ function xYt(t, e) { throw new Error("Could not find token for keyword: " + e.value); return () => t.parser.consume(r, n, e); } -function vge(t, e, r, n) { +function yge(t, e, r, n) { const i = e && Vu(e); if (!n) if (i) { @@ -81363,7 +81388,7 @@ function vge(t, e, r, n) { GATE: () => i(a) }, { - ALT: ZG(), + ALT: jG(), GATE: () => !i(a) } ]); @@ -81387,7 +81412,7 @@ function vge(t, e, r, n) { GATE: () => i(o) }, { - ALT: ZG(), + ALT: jG(), GATE: () => !i(o) } ]); @@ -81404,7 +81429,7 @@ function vge(t, e, r, n) { } else pE(); } -function yge(t, e) { +function bge(t, e) { const r = wYt(t, e), n = t.rules.get(r); if (!n) throw new Error(`Rule "${r}" not found."`); @@ -81418,7 +81443,7 @@ function wYt(t, e) { { let r = e, n = r.$container, i = e.$type; for (; !wl(n); ) - (NI(n) || Y0e(n) || ape(n)) && (i = n.elements.indexOf(r).toString() + ":" + i), r = n, n = n.$container; + (NI(n) || W0e(n) || ope(n)) && (i = n.elements.indexOf(r).toString() + ":" + i), r = n, n = n.$container; return i = n.name + ":" + i, t.ruleNames.set(e, i), i; } } @@ -81430,7 +81455,7 @@ function LR(t, e) { } function OYt(t) { const e = t.Grammar, r = t.parser.Lexer, n = new uYt(t); - return gge(e, n, r.definition), n.finalize(), n; + return mge(e, n, r.definition), n.finalize(), n; } function kYt(t) { const e = SYt(t); @@ -81438,14 +81463,14 @@ function kYt(t) { } function SYt(t) { const e = t.Grammar, r = t.parser.Lexer, n = new lYt(t); - return gge(e, n, r.definition); + return mge(e, n, r.definition); } -class bge { +class xge { buildTokens(e, r) { - const n = ks(dpe(e, !1)), i = this.buildTerminalTokens(n), s = this.buildKeywordTokens(n, i, r); + const n = ks(ppe(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 && CG(o) ? s.unshift(a) : s.push(a); + typeof o == "object" && o && "test" in o && EG(o) ? s.unshift(a) : s.push(a); }), s; } buildTerminalTokens(e) { @@ -81457,7 +81482,7 @@ class bge { PATTERN: n, LINE_BREAKS: !0 }; - return e.hidden && (i.GROUP = CG(r) ? no.SKIPPED : "hidden"), i; + return e.hidden && (i.GROUP = EG(r) ? no.SKIPPED : "hidden"), i; } requiresCustomPattern(e) { return e.flags.includes("u") ? !0 : !!(e.source.includes("?<=") || e.source.includes("? wge(e)); + return kge(t) && t.every((e) => Oge(e)); } Hs.stringArray = AYt; var i1 = {}; Object.defineProperty(i1, "__esModule", { value: !0 }); i1.Emitter = i1.Event = void 0; const LYt = EE; -var rH; +var nH; (function(t) { const e = { dispose() { } }; t.None = function() { return e; }; -})(rH || (i1.Event = rH = {})); +})(nH || (i1.Event = nH = {})); class RYt { 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) }); @@ -81729,7 +81754,7 @@ const PYt = Object.freeze(function(t, e) { r.dispose(); } }; }); -class nH { +class iH { constructor() { this._isCancelled = !1; } @@ -81748,13 +81773,13 @@ class nH { } class NYt { get token() { - return this._token || (this._token = new nH()), this._token; + return this._token || (this._token = new iH()), this._token; } cancel() { this._token ? this._token.cancel() : this._token = $S.Cancelled; } dispose() { - this._token ? this._token instanceof nH && this._token.dispose() : this._token = $S.None; + this._token ? this._token instanceof iH && this._token.dispose() : this._token = $S.None; } } DR = Sb.CancellationTokenSource = NYt; @@ -81763,7 +81788,7 @@ function IYt() { typeof setImmediate > "u" ? setTimeout(t, 0) : setImmediate(t); }); } -let iH = 0, $Yt = 10; +let sH = 0, $Yt = 10; const BS = Symbol("OperationCancelled"); function JI(t) { return t === BS; @@ -81772,7 +81797,7 @@ async function jl(t) { if (t === ls.None) return; const e = Date.now(); - if (e - iH >= $Yt && (iH = e, await IYt()), t.isCancellationRequested) + if (e - sH >= $Yt && (sH = e, await IYt()), t.isCancellationRequested) throw BS; } class e$ { @@ -81805,11 +81830,11 @@ class Tb { update(e, r) { for (const n of e) if (Tb.isIncremental(n)) { - const i = Sge(n.range), s = this.offsetAt(i.start), a = this.offsetAt(i.end); + const i = Tge(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 = sH(n.text, !1, s); + const h = aH(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]; @@ -81826,7 +81851,7 @@ class Tb { this._version = r; } getLineOffsets() { - return this._lineOffsets === void 0 && (this._lineOffsets = sH(this._content, !0)), this._lineOffsets; + return this._lineOffsets === void 0 && (this._lineOffsets = aH(this._content, !0)), this._lineOffsets; } positionAt(e) { e = Math.max(Math.min(e, this._content.length), 0); @@ -81854,7 +81879,7 @@ class Tb { return this.ensureBeforeEOL(s, n); } ensureBeforeEOL(e, r) { - for (; e > r && kge(this._content.charCodeAt(e - 1)); ) + for (; e > r && Sge(this._content.charCodeAt(e - 1)); ) e--; return e; } @@ -81913,26 +81938,26 @@ function IR(t, e) { t[o++] = i[a++]; return t; } -function sH(t, e, r = 0) { +function aH(t, e, r = 0) { const n = e ? [r] : []; for (let i = 0; i < t.length; i++) { const s = t.charCodeAt(i); - kge(s) && (s === 13 && i + 1 < t.length && t.charCodeAt(i + 1) === 10 && i++, n.push(r + i + 1)); + Sge(s) && (s === 13 && i + 1 < t.length && t.charCodeAt(i + 1) === 10 && i++, n.push(r + i + 1)); } return n; } -function kge(t) { +function Sge(t) { return t === 13 || t === 10; } -function Sge(t) { +function Tge(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 BYt(t) { - const e = Sge(t.range); + const e = Tge(t.range); return e !== t.range ? { newText: t.newText, range: e } : t; } -var Tge; +var Cge; (() => { var t = { 470: (i) => { function s(l) { @@ -82299,9 +82324,9 @@ var Tge; return A.extname(R.path); }; })(L || (L = {})); - })(), Tge = n; + })(), Cge = n; })(); -const { URI: s1, Utils: Wv } = Tge; +const { URI: s1, Utils: Wv } = Cge; var sd; (function(t) { t.basename = Wv.basename, t.dirname = Wv.dirname, t.extname = Wv.extname, t.joinPath = Wv.joinPath, t.resolvePath = Wv.resolvePath; @@ -82459,7 +82484,7 @@ class QYt { } async link(e, r = ls.None) { for (const n of Hg(e.parseResult.value)) - await jl(r), upe(n).forEach((i) => this.doLink(i, e)); + await jl(r), hpe(n).forEach((i) => this.doLink(i, e)); } doLink(e, r) { const n = e.reference; @@ -82553,7 +82578,7 @@ class VYt { return e.name; } getNameNode(e) { - return gpe(e.$cstNode, "name"); + return mpe(e.$cstNode, "name"); } } class qYt { @@ -82673,7 +82698,7 @@ class t$ { return ks(this.map.entries()); } } -class aH { +class oH { get size() { return this.map.size; } @@ -82731,7 +82756,7 @@ class YYt { } } } -class oH { +class lH { 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; @@ -82769,7 +82794,7 @@ class WYt { return this.outerScope && (e = e.concat(this.outerScope.getAllElements())), e; } } -class Cge { +class Ege { constructor() { this.toDispose = [], this.isDisposed = !1; } @@ -82784,7 +82809,7 @@ class Cge { throw new Error("This cache has already been disposed"); } } -class GYt extends Cge { +class GYt extends Ege { constructor() { super(...arguments), this.cache = /* @__PURE__ */ new Map(); } @@ -82810,7 +82835,7 @@ class GYt extends Cge { this.throwIfDisposed(), this.cache.clear(); } } -class XYt extends Cge { +class XYt extends Ege { constructor(e) { super(), this.cache = /* @__PURE__ */ new Map(), this.converter = e != null ? e : (r) => r; } @@ -82873,7 +82898,7 @@ class ZYt { return s; } createScope(e, r, n) { - return new oH(ks(e), r, n); + return new lH(ks(e), r, n); } createScopeForNodes(e, r, n) { const i = ks(e).map((s) => { @@ -82881,7 +82906,7 @@ class ZYt { if (a) return this.descriptions.createDescription(s, a); }).nonNullable(); - return new oH(i, r, n); + return new lH(i, r, n); } getGlobalScope(e, r) { return this.globalScopeCache.get(e, () => new WYt(this.indexManager.allElements(e))); @@ -82890,7 +82915,7 @@ class ZYt { function jYt(t) { return typeof t.$comment == "string"; } -function lH(t) { +function cH(t) { return typeof t == "object" && !!t && ("$ref" in t || "$error" in t); } class KYt { @@ -82959,10 +82984,10 @@ class KYt { if (Array.isArray(u)) for (let h = 0; h < u.length; h++) { const f = u[h]; - lH(f) ? u[h] = this.reviveReference(e, l, r, f, n) : ea(f) && this.linkNode(f, r, n, e, l, h); + cH(f) ? u[h] = this.reviveReference(e, l, r, f, n) : ea(f) && this.linkNode(f, r, n, e, l, h); } else - lH(u) ? e[l] = this.reviveReference(e, l, r, u, n) : ea(u) && this.linkNode(u, r, n, e, l); + cH(u) ? e[l] = this.reviveReference(e, l, r, u, n) : ea(u) && this.linkNode(u, r, n, e, l); const o = e; o.$container = i, o.$containerProperty = s, o.$containerIndex = a; } @@ -83041,7 +83066,7 @@ class JYt { return this.singleton !== void 0 ? [this.singleton] : this.map !== void 0 ? Object.values(this.map) : []; } } -function cH(t) { +function uH(t) { return { code: t }; } var FS; @@ -83141,7 +83166,7 @@ class tWt { } }, message: i.message, - data: cH(ef.LexingError), + data: uH(ef.LexingError), source: this.getSource() }; r.push(s); @@ -83168,7 +83193,7 @@ class tWt { severity: KA("error"), range: s, message: i.message, - data: cH(ef.ParsingError), + data: uH(ef.ParsingError), source: this.getSource() }; r.push(a); @@ -83226,7 +83251,7 @@ function rWt(t) { if (t.range) return t.range; let e; - return typeof t.property == "string" ? e = gpe(t.node.$cstNode, t.property, t.index) : typeof t.keyword == "string" && (e = sUt(t.node.$cstNode, t.keyword, t.index)), e != null || (e = t.node.$cstNode), e ? e.range : { + return typeof t.property == "string" ? e = mpe(t.node.$cstNode, t.property, t.index) : typeof t.keyword == "string" && (e = sUt(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 } }; @@ -83283,7 +83308,7 @@ class iWt { async createDescriptions(e, r = ls.None) { const n = [], i = e.parseResult.value; for (const s of Hg(i)) - await jl(r), upe(s).filter((a) => !Uk(a)).forEach((a) => { + await jl(r), hpe(s).filter((a) => !Uk(a)).forEach((a) => { const o = this.createDescription(a); o && n.push(o); }); @@ -83639,7 +83664,7 @@ class uWt { caseInsensitive: e.LanguageMetaData.caseInsensitive }); this.tokenTypes = this.toTokenTypeDictionary(r); - const n = uH(r) ? Object.values(r) : r; + const n = hH(r) ? Object.values(r) : r; this.chevrotainLexer = new no(n, { positionTracking: "full" }); @@ -83657,25 +83682,25 @@ class uWt { }; } toTokenTypeDictionary(e) { - if (uH(e)) + if (hH(e)) return e; - const r = Ege(e) ? Object.values(e.modes).flat() : e, n = {}; + const r = _ge(e) ? Object.values(e.modes).flat() : e, n = {}; return r.forEach((i) => n[i.name] = i), n; } } function hWt(t) { return Array.isArray(t) && (t.length === 0 || "name" in t[0]); } -function Ege(t) { +function _ge(t) { return t && "modes" in t && "defaultMode" in t; } -function uH(t) { - return !hWt(t) && !Ege(t); +function hH(t) { + return !hWt(t) && !_ge(t); } function fWt(t, e, r) { let n, i; typeof t == "string" ? (i = e, n = r) : (i = t.range.start, n = e), i || (i = Kr.create(0, 0)); - const s = _ge(t), a = r$(n), o = gWt({ + const s = Age(t), a = r$(n), o = gWt({ lines: s, position: i, options: a @@ -83687,17 +83712,17 @@ function fWt(t, e, r) { }); } function dWt(t, e) { - const r = r$(e), n = _ge(t); + const r = r$(e), n = Age(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 _ge(t) { +function Age(t) { let e = ""; return typeof t == "string" ? e = t : e = t.text, e.split(GQt); } -const hH = /\s*(@([\p{L}][\p{L}\p{N}]*)?)/uy, pWt = /\{(@[\p{L}][\p{L}\p{N}]*)(\s*)([^\r\n}]+)?\}/gu; +const fH = /\s*(@([\p{L}][\p{L}\p{N}]*)?)/uy, pWt = /\{(@[\p{L}][\p{L}\p{N}]*)(\s*)([^\r\n}]+)?\}/gu; function gWt(t) { var e, r, n; const i = []; @@ -83726,8 +83751,8 @@ function gWt(t) { }); } } else { - hH.lastIndex = f; - const p = hH.exec(h); + fH.lastIndex = f; + const p = fH.exec(h); if (p) { const g = p[0], m = p[1], v = Kr.create(s, a + f), y = Kr.create(s, a + f + g.length); i.push({ @@ -83808,30 +83833,30 @@ function xWt(t) { var e, r, n, i; const s = Kr.create(t.position.line, t.position.character); if (t.tokens.length === 0) - return new fH([], Ir.create(s, s)); + return new dH([], Ir.create(s, s)); const a = []; for (; t.index < t.tokens.length; ) { const u = wWt(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 fH(a, Ir.create(o, l)); + return new dH(a, Ir.create(o, l)); } function wWt(t, e) { const r = t.tokens[t.index]; if (r.type === "tag") - return Lge(t, !1); + return Rge(t, !1); if (r.type === "text" || r.type === "inline-tag") - return Age(t); + return Lge(t); OWt(r, e), t.index++; } function OWt(t, e) { if (e) { - const r = new Mge("", t.range); + const r = new Dge("", t.range); "inlines" in e ? e.inlines.push(r) : e.content.inlines.push(r); } } -function Age(t) { +function Lge(t) { let e = t.tokens[t.index]; const r = e; let n = e; @@ -83841,16 +83866,16 @@ function Age(t) { return new BR(i, Ir.create(r.range.start, n.range.end)); } function kWt(t) { - return t.tokens[t.index].type === "inline-tag" ? Lge(t, !0) : Rge(t); + return t.tokens[t.index].type === "inline-tag" ? Rge(t, !0) : Mge(t); } -function Lge(t, e) { +function Rge(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 = Rge(t); + const s = Mge(t); return new e7(n, new BR([s], s.range), e, Ir.create(r.range.start, s.range.end)); } else { - const s = Age(t); + const s = Lge(t); return new e7(n, s, e, Ir.create(r.range.start, s.range.end)); } else { @@ -83858,9 +83883,9 @@ function Lge(t, e) { return new e7(n, new BR([], s), e, s); } } -function Rge(t) { +function Mge(t) { const e = t.tokens[t.index++]; - return new Mge(e.content, e.range); + return new Dge(e.content, e.range); } function r$(t) { if (!t) @@ -83883,7 +83908,7 @@ function JA(t, e) { } else return t; } -class fH { +class dH { constructor(e, r) { this.elements = e, this.range = r; } @@ -83903,7 +83928,7 @@ class fH { e = r.toString(); else { const n = r.toString(); - e += dH(e) + n; + e += pH(e) + n; } return e.trim(); } @@ -83914,7 +83939,7 @@ class fH { r = n.toMarkdown(e); else { const i = n.toMarkdown(e); - r += dH(r) + i; + r += pH(r) + i; } return r.trim(); } @@ -83989,7 +84014,7 @@ class BR { return r; } } -class Mge { +class Dge { constructor(e, r) { this.text = e, this.range = r; } @@ -84000,7 +84025,7 @@ class Mge { return this.text; } } -function dH(t) { +function pH(t) { return t.endsWith(` `) ? ` ` : ` @@ -84108,7 +84133,7 @@ class AWt { } class LWt { constructor(e) { - this.grammarElementIdMap = new aH(), this.tokenTypeIdMap = new aH(), this.grammar = e.Grammar, this.lexer = e.parser.Lexer, this.linker = e.references.Linker; + this.grammarElementIdMap = new oH(), this.tokenTypeIdMap = new oH(), this.grammar = e.Grammar, this.lexer = e.parser.Lexer, this.linker = e.references.Linker; } dehydrate(e) { return { @@ -84149,7 +84174,7 @@ class LWt { } dehydrateCstNode(e, r) { const n = r.cstNodes.get(e); - return E0e(e) ? n.fullText = e.fullText : n.grammarSource = this.getGrammarElementId(e.grammarSource), n.hidden = e.hidden, n.astNode = r.astNodes.get(e.astNode), Jm(e) ? n.content = e.content.map((i) => this.dehydrateCstNode(i, r)) : C0e(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 _0e(e) ? n.fullText = e.fullText : n.grammarSource = this.getGrammarElementId(e.grammarSource), n.hidden = e.hidden, n.astNode = r.astNodes.get(e.astNode), Jm(e) ? n.content = e.content.map((i) => this.dehydrateCstNode(i, r)) : E0e(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); @@ -84167,7 +84192,7 @@ class LWt { if (e.$cstNode) for (const s of tR(e.$cstNode)) { let a; - "fullText" in s ? (a = new hge(s.fullText), i = a) : "content" in s ? a = new jI() : "tokenType" in s && (a = this.hydrateCstLeafNode(s)), a && (n.set(s, a), a.root = i); + "fullText" in s ? (a = new fge(s.fullText), i = a) : "content" in s ? a = new jI() : "tokenType" in s && (a = this.hydrateCstLeafNode(s)), a && (n.set(s, a), a.root = i); } return { astNodes: r, @@ -84246,10 +84271,10 @@ function Z1(t) { GrammarConfig: (e) => gUt(e), LangiumParser: (e) => kYt(e), CompletionParser: (e) => OYt(e), - ValueConverter: () => new xge(), - TokenBuilder: () => new bge(), + ValueConverter: () => new wge(), + TokenBuilder: () => new xge(), Lexer: (e) => new uWt(e), - ParserErrorMessageProvider: () => new pge() + ParserErrorMessageProvider: () => new gge() }, workspace: { AstNodeLocator: () => new sWt(), @@ -84289,38 +84314,38 @@ function j1(t) { } }; } -var pH; +var gH; (function(t) { t.merge = (e, r) => QS(QS({}, e), r); -})(pH || (pH = {})); +})(gH || (gH = {})); function Ol(t, e, r, n, i, s, a, o, l) { const u = [t, e, r, n, i, s, a, o, l].reduce(QS, {}); - return Dge(u); + return Pge(u); } -const gH = Symbol("isProxy"); -function Dge(t, e) { +const mH = Symbol("isProxy"); +function Pge(t, e) { const r = new Proxy({}, { deleteProperty: () => !1, - get: (n, i) => vH(n, i, t, e || r), - getOwnPropertyDescriptor: (n, i) => (vH(n, i, t, e || r), Object.getOwnPropertyDescriptor(n, i)), + get: (n, i) => yH(n, i, t, e || r), + getOwnPropertyDescriptor: (n, i) => (yH(n, i, t, e || r), Object.getOwnPropertyDescriptor(n, i)), has: (n, i) => i in t, - ownKeys: () => [...Reflect.ownKeys(t), gH] + ownKeys: () => [...Reflect.ownKeys(t), mH] }); - return r[gH] = !0, r; + return r[mH] = !0, r; } -const mH = Symbol(); -function vH(t, e, r, n) { +const vH = Symbol(); +function yH(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] === mH) + if (t[e] === vH) 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] = mH; + t[e] = vH; try { - t[e] = typeof i == "function" ? i(n) : Dge(i, n); + t[e] = typeof i == "function" ? i(n) : Pge(i, n); } catch (s) { throw t[e] = s instanceof Error ? s : void 0, s; } @@ -84357,7 +84382,7 @@ const K1 = { languageId: "langium" }) }, DWt = { - AstReflection: () => new cpe() + AstReflection: () => new upe() }; function PWt() { const t = Ol(j1(K1), DWt), e = Ol(Z1({ shared: t }), MWt); @@ -84373,14 +84398,14 @@ function BWt(t) { return bc.isInstance(t, $Wt); } qt(BWt, "isArchitecture"); -var Pge = "Branch"; +var Nge = "Branch"; function FWt(t) { - return bc.isInstance(t, Pge); + return bc.isInstance(t, Nge); } qt(FWt, "isBranch"); -var zWt = "Checkout", QWt = "CherryPicking", Nge = "Commit"; +var zWt = "Checkout", QWt = "CherryPicking", Ige = "Commit"; function UWt(t) { - return bc.isInstance(t, Nge); + return bc.isInstance(t, Ige); } qt(UWt, "isCommit"); var VWt = "Common"; @@ -84388,9 +84413,9 @@ function qWt(t) { return bc.isInstance(t, VWt); } qt(qWt, "isCommon"); -var Ige = "GitGraph"; +var $ge = "GitGraph"; function YWt(t) { - return bc.isInstance(t, Ige); + return bc.isInstance(t, $ge); } qt(YWt, "isGitGraph"); var WWt = "Info"; @@ -84398,9 +84423,9 @@ function GWt(t) { return bc.isInstance(t, WWt); } qt(GWt, "isInfo"); -var $ge = "Merge"; +var Bge = "Merge"; function XWt(t) { - return bc.isInstance(t, $ge); + return bc.isInstance(t, Bge); } qt(XWt, "isMerge"); var HWt = "Packet"; @@ -84423,20 +84448,20 @@ function rGt(t) { return bc.isInstance(t, tGt); } qt(rGt, "isPieSection"); -var nGt = "Direction", ax, Bge = (ax = class extends T0e { +var nGt = "Direction", ax, Fge = (ax = class extends C0e { 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 Pge: + case Nge: case zWt: case QWt: - case Nge: - case $ge: + case Ige: + case Bge: return this.isSubtype(IWt, r); case nGt: - return this.isSubtype(Ige, r); + return this.isSubtype($ge, r); default: return !1; } @@ -84637,7 +84662,7 @@ var nGt = "Direction", ax, Bge = (ax = class extends T0e { } }, (() => { qt(ax, "MermaidAstReflection"); -})(), ax), bc = new Bge(), w4, iGt = /* @__PURE__ */ qt(() => w4 != null ? w4 : w4 = Rw('{"$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"), O4, sGt = /* @__PURE__ */ qt(() => O4 != null ? O4 : O4 = Rw(`{"$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"), k4, aGt = /* @__PURE__ */ qt(() => k4 != null ? k4 : k4 = Rw('{"$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"), S4, oGt = /* @__PURE__ */ qt(() => S4 != null ? S4 : S4 = Rw('{"$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"), T4, lGt = /* @__PURE__ */ qt(() => T4 != null ? T4 : T4 = Rw(`{"$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"), cGt = { +})(), ax), bc = new Fge(), w4, iGt = /* @__PURE__ */ qt(() => w4 != null ? w4 : w4 = Rw('{"$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"), O4, sGt = /* @__PURE__ */ qt(() => O4 != null ? O4 : O4 = Rw(`{"$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"), k4, aGt = /* @__PURE__ */ qt(() => k4 != null ? k4 : k4 = Rw('{"$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"), S4, oGt = /* @__PURE__ */ qt(() => S4 != null ? S4 : S4 = Rw('{"$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"), T4, lGt = /* @__PURE__ */ qt(() => T4 != null ? T4 : T4 = Rw(`{"$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"), cGt = { languageId: "info", fileExtensions: [".mmd", ".mermaid"], caseInsensitive: !1 @@ -84658,7 +84683,7 @@ var nGt = "Direction", ax, Bge = (ax = class extends T0e { fileExtensions: [".mmd", ".mermaid"], caseInsensitive: !1 }, Mw = { - AstReflection: /* @__PURE__ */ qt(() => new Bge(), "AstReflection") + AstReflection: /* @__PURE__ */ qt(() => new Fge(), "AstReflection") }, pGt = { Grammar: /* @__PURE__ */ qt(() => iGt(), "Grammar"), LanguageMetaData: /* @__PURE__ */ qt(() => cGt, "LanguageMetaData"), @@ -84683,7 +84708,7 @@ var nGt = "Direction", ax, Bge = (ax = class extends T0e { ACC_DESCR: bGt, ACC_TITLE: xGt, TITLE: wGt -}, ox, n$ = (ox = class extends xge { +}, ox, n$ = (ox = class extends wge { 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; @@ -84708,7 +84733,7 @@ var nGt = "Direction", ax, Bge = (ax = class extends T0e { } }, (() => { qt(lx, "CommonValueConverter"); -})(), lx), cx, J1 = (cx = class extends bge { +})(), lx), cx, J1 = (cx = class extends xge { constructor(e) { super(), this.keywords = new Set(e); } @@ -84729,72 +84754,72 @@ var hx, kGt = (hx = class extends J1 { } }, (() => { qt(hx, "GitGraphTokenBuilder"); -})(), hx), Fge = { +})(), hx), zge = { parser: { TokenBuilder: /* @__PURE__ */ qt(() => new kGt(), "TokenBuilder"), ValueConverter: /* @__PURE__ */ qt(() => new i$(), "ValueConverter") } }; -function zge(t = K1) { +function Qge(t = K1) { const e = Ol( j1(t), Mw ), r = Ol( Z1({ shared: e }), yGt, - Fge + zge ); return e.ServiceRegistry.register(r), { shared: e, GitGraph: r }; } -qt(zge, "createGitGraphServices"); +qt(Qge, "createGitGraphServices"); var fx, SGt = (fx = class extends J1 { constructor() { super(["info", "showInfo"]); } }, (() => { qt(fx, "InfoTokenBuilder"); -})(), fx), Qge = { +})(), fx), Uge = { parser: { TokenBuilder: /* @__PURE__ */ qt(() => new SGt(), "TokenBuilder"), ValueConverter: /* @__PURE__ */ qt(() => new i$(), "ValueConverter") } }; -function Uge(t = K1) { +function Vge(t = K1) { const e = Ol( j1(t), Mw ), r = Ol( Z1({ shared: e }), pGt, - Qge + Uge ); return e.ServiceRegistry.register(r), { shared: e, Info: r }; } -qt(Uge, "createInfoServices"); +qt(Vge, "createInfoServices"); var dx, TGt = (dx = class extends J1 { constructor() { super(["packet-beta"]); } }, (() => { qt(dx, "PacketTokenBuilder"); -})(), dx), Vge = { +})(), dx), qge = { parser: { TokenBuilder: /* @__PURE__ */ qt(() => new TGt(), "TokenBuilder"), ValueConverter: /* @__PURE__ */ qt(() => new i$(), "ValueConverter") } }; -function qge(t = K1) { +function Yge(t = K1) { const e = Ol( j1(t), Mw ), r = Ol( Z1({ shared: e }), gGt, - Vge + qge ); return e.ServiceRegistry.register(r), { shared: e, Packet: r }; } -qt(qge, "createPacketServices"); +qt(Yge, "createPacketServices"); var px, CGt = (px = class extends J1 { constructor() { super(["pie", "showData"]); @@ -84808,24 +84833,24 @@ var px, CGt = (px = class extends J1 { } }, (() => { qt(gx, "PieValueConverter"); -})(), gx), Yge = { +})(), gx), Wge = { parser: { TokenBuilder: /* @__PURE__ */ qt(() => new CGt(), "TokenBuilder"), ValueConverter: /* @__PURE__ */ qt(() => new EGt(), "ValueConverter") } }; -function Wge(t = K1) { +function Gge(t = K1) { const e = Ol( j1(t), Mw ), r = Ol( Z1({ shared: e }), mGt, - Yge + Wge ); return e.ServiceRegistry.register(r), { shared: e, Pie: r }; } -qt(Wge, "createPieServices"); +qt(Gge, "createPieServices"); var mx, _Gt = (mx = class extends J1 { constructor() { super(["architecture"]); @@ -84843,24 +84868,24 @@ var mx, _Gt = (mx = class extends J1 { } }, (() => { qt(vx, "ArchitectureValueConverter"); -})(), vx), Gge = { +})(), vx), Xge = { parser: { TokenBuilder: /* @__PURE__ */ qt(() => new _Gt(), "TokenBuilder"), ValueConverter: /* @__PURE__ */ qt(() => new AGt(), "ValueConverter") } }; -function Xge(t = K1) { +function Hge(t = K1) { const e = Ol( j1(t), Mw ), r = Ol( Z1({ shared: e }), vGt, - Gge + Xge ); return e.ServiceRegistry.register(r), { shared: e, Architecture: r }; } -qt(Xge, "createArchitectureServices"); +qt(Hge, "createArchitectureServices"); var Jd = {}, LGt = { info: /* @__PURE__ */ qt(async () => { const { createInfoServices: t } = await Promise.resolve().then(() => Phr), e = t().Info.parser.LangiumParser; @@ -84927,17 +84952,17 @@ var yx, RGt = (yx = class extends Error { }; }); function AE() { - return tle({ length: 7 }); + return rle({ length: 7 }); } x(AE, "getID"); -function Hge(t, e) { +function Zge(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(Hge, "uniqBy"); +x(Zge, "uniqBy"); var DGt = /* @__PURE__ */ x(function(t) { Mt.records.direction = t; }, "setDirection"), PGt = /* @__PURE__ */ x(function(t) { @@ -84973,7 +84998,7 @@ var DGt = /* @__PURE__ */ x(function(t) { 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}")` ); - Mt.records.branches.set(e, Mt.records.head != null ? Mt.records.head.id : null), Mt.records.branchConfig.set(e, { name: e, order: r }), Zge(e), Z.debug("in createBranch"); + Mt.records.branches.set(e, Mt.records.head != null ? Mt.records.head.id : null), Mt.records.branchConfig.set(e, { name: e, order: r }), jge(e), Z.debug("in createBranch"); }, "branch"), BGt = /* @__PURE__ */ x((t) => { let e = t.branch, r = t.id; const n = t.type, i = t.tags, s = Bp(); @@ -85123,7 +85148,7 @@ var DGt = /* @__PURE__ */ x(function(t) { }; Mt.records.head = h, Mt.records.commits.set(h.id, h), Mt.records.branches.set(Mt.records.currBranch, h.id), Z.debug(Mt.records.branches), Z.debug("in cherryPick"); } -}, "cherryPick"), Zge = /* @__PURE__ */ x(function(t) { +}, "cherryPick"), jge = /* @__PURE__ */ x(function(t) { var e; if (t = mt.sanitizeText(t, Bp()), Mt.records.branches.has(t)) { Mt.records.currBranch = t; @@ -85165,12 +85190,12 @@ function s$(t) { FR(t, e, i); } } - t = Hge(t, (i) => i.id), s$(t); + t = Zge(t, (i) => i.id), s$(t); } x(s$, "prettyPrintCommitHistory"); var zGt = /* @__PURE__ */ x(function() { Z.debug(Mt.records.commits); - const t = jge()[0]; + const t = Kge()[0]; s$([t]); }, "prettyPrint"), QGt = /* @__PURE__ */ x(function() { Mt.reset(), us(); @@ -85186,7 +85211,7 @@ var zGt = /* @__PURE__ */ x(function() { return Mt.records.branches; }, "getBranches"), qGt = /* @__PURE__ */ x(function() { return Mt.records.commits; -}, "getCommits"), jge = /* @__PURE__ */ x(function() { +}, "getCommits"), Kge = /* @__PURE__ */ x(function() { const t = [...Mt.records.commits.values()]; return t.forEach(function(e) { Z.debug(e.id); @@ -85197,7 +85222,7 @@ var zGt = /* @__PURE__ */ x(function() { return Mt.records.direction; }, "getDirection"), GGt = /* @__PURE__ */ x(function() { return Mt.records.head; -}, "getHead"), Kge = { +}, "getHead"), Jge = { commitType: on, getConfig: Bp, setDirection: DGt, @@ -85207,13 +85232,13 @@ var zGt = /* @__PURE__ */ x(function() { branch: $Gt, merge: BGt, cherryPick: FGt, - checkout: Zge, + checkout: jge, prettyPrint: zGt, clear: QGt, getBranchesAsObjArray: UGt, getBranches: VGt, getCommits: qGt, - getCommitsArray: jge, + getCommitsArray: Kge, getCurrentBranch: YGt, getDirection: WGt, getHead: GGt, @@ -85269,17 +85294,17 @@ var zGt = /* @__PURE__ */ x(function() { }, "parseCherryPicking"), tXt = { parse: /* @__PURE__ */ x(async (t) => { const e = await ev("gitGraph", t); - Z.debug(e), XGt(e, Kge); + Z.debug(e), XGt(e, Jge); }, "parse") }, t7 = ke(), Ci = t7 == null ? void 0 : t7.gitGraph, vf = 10, yf = 40, Ac = 4, Uu = 2, e0 = 8, Ka = /* @__PURE__ */ new Map(), io = /* @__PURE__ */ new Map(), US = 30, xy = /* @__PURE__ */ new Map(), VS = [], af = 0, Nr = "LR", rXt = /* @__PURE__ */ x(() => { Ka.clear(), io.clear(), xy.clear(), af = 0, VS = [], Nr = "LR"; -}, "clear"), Jge = /* @__PURE__ */ x((t) => { +}, "clear"), eme = /* @__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"), eme = /* @__PURE__ */ x((t) => { +}, "drawText"), tme = /* @__PURE__ */ x((t) => { let e, r, n; return Nr === "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; @@ -85313,7 +85338,7 @@ var zGt = /* @__PURE__ */ x(function() { }); }, "setParallelBTPos"), sXt = /* @__PURE__ */ x((t) => { var n; - const e = eme(t.parents.filter((i) => i !== null)); + const e = tme(t.parents.filter((i) => i !== null)); if (!e) throw new Error(`Closest parent not found for commit ${t.id}`); const r = (n = io.get(e)) == null ? void 0 : n.y; @@ -85440,7 +85465,7 @@ var zGt = /* @__PURE__ */ x(function() { var s, a, o; const i = { x: 0, y: 0 }; if (t.parents.length > 0) { - const l = eme(t.parents); + const l = tme(t.parents); if (l) { const u = (s = n.get(l)) != null ? s : i; return e === "TB" ? u.y + yf : e === "BT" ? ((a = n.get(t.id)) != null ? a : i).y - yf : u.x + yf; @@ -85454,7 +85479,7 @@ var zGt = /* @__PURE__ */ x(function() { 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"), yH = /* @__PURE__ */ x((t, e, r) => { +}, "getCommitPosition"), bH = /* @__PURE__ */ x((t, e, r) => { var h; if (!Ci) throw new Error("GitGraph config not found"); @@ -85525,7 +85550,7 @@ var zGt = /* @__PURE__ */ x(function() { 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", af), o.attr("y2", a), o.attr("class", "branch branch" + s), Nr === "TB" ? (o.attr("y1", US), o.attr("x1", a), o.attr("y2", af), o.attr("x2", a)) : Nr === "BT" && (o.attr("y1", af), o.attr("x1", a), o.attr("y2", US), o.attr("x2", a)), VS.push(a); - const l = n.name, u = Jge(l), h = r.insert("rect"), d = r.insert("g").attr("class", "branchLabel").insert("g").attr("class", "label branch-label" + s); + const l = n.name, u = eme(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 - ((Ci == null ? void 0 : Ci.rotateCommitLabel) === !0 ? 30 : 0)).attr("y", -p.height / 2 + 8).attr("width", p.width + 18).attr("height", p.height + 4), d.attr( @@ -85548,16 +85573,16 @@ var zGt = /* @__PURE__ */ x(function() { let l = 0; a.forEach((f, d) => { var b; - const p = Jge(f.name), g = o.append("g"), m = g.insert("g").attr("class", "branchLabel"), v = m.insert("g").attr("class", "label branch-label"); + const p = eme(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 = bXt(f.name, l, d, y, i), v.remove(), m.remove(), g.remove(); - }), yH(o, xy, !1), Ci.showBranches && yXt(o, a), vXt(o, xy), yH(o, xy, !0), mr.insertTitle( + }), bH(o, xy, !1), Ci.showBranches && yXt(o, a), vXt(o, xy), bH(o, xy, !0), mr.insertTitle( o, "gitTitleText", (h = Ci.titleTopMargin) != null ? h : 0, s.getDiagramTitle() - ), uae( + ), hae( void 0, o, Ci.diagramPadding, @@ -85620,7 +85645,7 @@ var zGt = /* @__PURE__ */ x(function() { } `, "getStyles"), kXt = OXt, SXt = { parser: tXt, - db: Kge, + db: Jge, renderer: wXt, styles: kXt }; @@ -85628,7 +85653,7 @@ const TXt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty( __proto__: null, diagram: SXt }, Symbol.toStringTag, { value: "Module" })); -var tme = { exports: {} }; +var rme = { exports: {} }; (function(t, e) { (function(r, n) { t.exports = n(); @@ -85655,9 +85680,9 @@ var tme = { exports: {} }; }; }; }); -})(tme); -const CXt = tme.exports; -var rme = { exports: {} }; +})(rme); +const CXt = rme.exports; +var nme = { exports: {} }; (function(t, e) { (function(r, n) { t.exports = n(); @@ -85788,9 +85813,9 @@ var rme = { exports: {} }; }; }; }); -})(rme); -const EXt = rme.exports; -var nme = { exports: {} }; +})(nme); +const EXt = nme.exports; +var ime = { exports: {} }; (function(t, e) { (function(r, n) { t.exports = n(); @@ -85838,8 +85863,8 @@ var nme = { exports: {} }; }; }; }); -})(nme); -const _Xt = nme.exports; +})(ime); +const _Xt = ime.exports; var zR = function() { var t = /* @__PURE__ */ x(function($, k, P, M) { for (P = P || {}, M = $.length; M--; P[$[M]] = k) @@ -86339,7 +86364,7 @@ var AXt = zR; Ks.extend(CXt); Ks.extend(EXt); Ks.extend(_Xt); -var bH = { friday: 5, saturday: 6 }, Xc = "", a$ = "", o$ = void 0, l$ = "", Dw = [], Pw = [], c$ = /* @__PURE__ */ new Map(), u$ = [], qS = [], a1 = "", h$ = "", ime = ["active", "done", "crit", "milestone"], f$ = [], Nw = !1, d$ = !1, p$ = "sunday", YS = "saturday", QR = 0, LXt = /* @__PURE__ */ x(function() { +var xH = { friday: 5, saturday: 6 }, Xc = "", a$ = "", o$ = void 0, l$ = "", Dw = [], Pw = [], c$ = /* @__PURE__ */ new Map(), u$ = [], qS = [], a1 = "", h$ = "", sme = ["active", "done", "crit", "milestone"], f$ = [], Nw = !1, d$ = !1, p$ = "sunday", YS = "saturday", QR = 0, LXt = /* @__PURE__ */ x(function() { u$ = [], qS = [], a1 = "", f$ = [], Xk = 0, VR = void 0, Hk = void 0, Pi = [], Xc = "", a$ = "", h$ = "", o$ = void 0, l$ = "", Dw = [], Pw = [], Nw = !1, d$ = !1, QR = 0, c$ = /* @__PURE__ */ new Map(), us(), p$ = "sunday", YS = "saturday"; }, "clear"), RXt = /* @__PURE__ */ x(function(t) { a$ = t; @@ -86384,21 +86409,21 @@ var bH = { friday: 5, saturday: 6 }, Xc = "", a$ = "", o$ = void 0, l$ = "", Dw }, "addSection"), jXt = /* @__PURE__ */ x(function() { return u$; }, "getSections"), KXt = /* @__PURE__ */ x(function() { - let t = xH(); + let t = wH(); const e = 10; let r = 0; for (; !t && r < e; ) - t = xH(), r++; + t = wH(), r++; return qS = Pi, qS; -}, "getTasks"), sme = /* @__PURE__ */ x(function(t, e, r, n) { - return n.includes(t.format(e.trim())) ? !1 : r.includes("weekends") && (t.isoWeekday() === bH[YS] || t.isoWeekday() === bH[YS] + 1) || r.includes(t.format("dddd").toLowerCase()) ? !0 : r.includes(t.format(e.trim())); +}, "getTasks"), ame = /* @__PURE__ */ x(function(t, e, r, n) { + return n.includes(t.format(e.trim())) ? !1 : r.includes("weekends") && (t.isoWeekday() === xH[YS] || t.isoWeekday() === xH[YS] + 1) || r.includes(t.format("dddd").toLowerCase()) ? !0 : r.includes(t.format(e.trim())); }, "isInvalidDate"), JXt = /* @__PURE__ */ x(function(t) { p$ = t; }, "setWeekday"), eHt = /* @__PURE__ */ x(function() { return p$; }, "getWeekday"), tHt = /* @__PURE__ */ x(function(t) { YS = t; -}, "setWeekend"), ame = /* @__PURE__ */ x(function(t, e, r, n) { +}, "setWeekend"), ome = /* @__PURE__ */ x(function(t, e, r, n) { if (!r.length || t.manualEndTime) return; let i; @@ -86416,7 +86441,7 @@ var bH = { friday: 5, saturday: 6 }, Xc = "", a$ = "", o$ = void 0, l$ = "", Dw }, "checkTaskDates"), rHt = /* @__PURE__ */ x(function(t, e, r, n, i) { let s = !1, a = null; for (; t <= e; ) - s || (a = e.toDate()), s = sme(t, r, n, i), s && (e = e.add(1, "d")), t = t.add(1, "d"); + s || (a = e.toDate()), s = ame(t, r, n, i), s && (e = e.add(1, "d")), t = t.add(1, "d"); return [e, a]; }, "fixTaskDates"), UR = /* @__PURE__ */ x(function(t, e, r) { r = r.trim(); @@ -86442,10 +86467,10 @@ var bH = { friday: 5, saturday: 6 }, Xc = "", a$ = "", o$ = void 0, l$ = "", Dw throw new Error("Invalid date:" + r); return a; } -}, "getStartDate"), ome = /* @__PURE__ */ x(function(t) { +}, "getStartDate"), lme = /* @__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"), lme = /* @__PURE__ */ x(function(t, e, r, n = !1) { +}, "parseDuration"), cme = /* @__PURE__ */ x(function(t, e, r, n = !1) { r = r.trim(); const s = /^until\s+(?[\d\w- ]+)/.exec(r); if (s !== null) { @@ -86463,7 +86488,7 @@ var bH = { friday: 5, saturday: 6 }, Xc = "", a$ = "", o$ = void 0, l$ = "", Dw if (a.isValid()) return n && (a = a.add(1, "d")), a.toDate(); let o = Ks(t); - const [l, u] = ome(r); + const [l, u] = lme(r); if (!Number.isNaN(l)) { const h = o.add(l, u); h.isValid() && (o = h); @@ -86475,7 +86500,7 @@ var bH = { friday: 5, saturday: 6 }, Xc = "", a$ = "", o$ = void 0, l$ = "", Dw let r; e.substr(0, 1) === ":" ? r = e.substr(1, e.length) : r = e; const n = r.split(","), i = {}; - g$(n, i, ime); + g$(n, i, sme); for (let a = 0; a < n.length; a++) n[a] = n[a].trim(); let s = ""; @@ -86490,12 +86515,12 @@ var bH = { friday: 5, saturday: 6 }, Xc = "", a$ = "", o$ = void 0, l$ = "", Dw i.id = jg(n[0]), i.startTime = UR(void 0, Xc, n[1]), s = n[2]; break; } - return s && (i.endTime = lme(i.startTime, Xc, s, Nw), i.manualEndTime = Ks(s, "YYYY-MM-DD", !0).isValid(), ame(i, Xc, Pw, Dw)), i; + return s && (i.endTime = cme(i.startTime, Xc, s, Nw), i.manualEndTime = Ks(s, "YYYY-MM-DD", !0).isValid(), ome(i, Xc, Pw, Dw)), i; }, "compileData"), iHt = /* @__PURE__ */ x(function(t, e) { let r; e.substr(0, 1) === ":" ? r = e.substr(1, e.length) : r = e; const n = r.split(","), i = {}; - g$(n, i, ime); + g$(n, i, sme); for (let s = 0; s < n.length; s++) n[s] = n[s].trim(); switch (n.length) { @@ -86525,7 +86550,7 @@ var bH = { friday: 5, saturday: 6 }, Xc = "", a$ = "", o$ = void 0, l$ = "", Dw break; } return i; -}, "parseData"), VR, Hk, Pi = [], cme = {}, sHt = /* @__PURE__ */ x(function(t, e) { +}, "parseData"), VR, Hk, Pi = [], ume = {}, sHt = /* @__PURE__ */ x(function(t, e) { const r = { section: a1, type: a1, @@ -86538,9 +86563,9 @@ var bH = { friday: 5, saturday: 6 }, Xc = "", a$ = "", o$ = void 0, l$ = "", Dw }, n = iHt(Hk, e); r.raw.startTime = n.startTime, r.raw.endTime = n.endTime, r.id = n.id, r.prevTaskId = Hk, r.active = n.active, r.done = n.done, r.crit = n.crit, r.milestone = n.milestone, r.order = QR, QR++; const i = Pi.push(r); - Hk = r.id, cme[r.id] = i - 1; + Hk = r.id, ume[r.id] = i - 1; }, "addTask"), Fp = /* @__PURE__ */ x(function(t) { - const e = cme[t]; + const e = ume[t]; return Pi[e]; }, "findTaskById"), aHt = /* @__PURE__ */ x(function(t, e) { const r = { @@ -86551,7 +86576,7 @@ var bH = { friday: 5, saturday: 6 }, Xc = "", a$ = "", o$ = void 0, l$ = "", Dw classes: [] }, n = nHt(VR, 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, VR = r, qS.push(r); -}, "addTaskOrg"), xH = /* @__PURE__ */ x(function() { +}, "addTaskOrg"), wH = /* @__PURE__ */ x(function() { const t = /* @__PURE__ */ x(function(r) { const n = Pi[r]; let i = ""; @@ -86565,7 +86590,7 @@ var bH = { friday: 5, saturday: 6 }, Xc = "", a$ = "", o$ = void 0, l$ = "", Dw i = UR(void 0, Xc, Pi[r].raw.startTime.startData), i && (Pi[r].startTime = i); break; } - return Pi[r].startTime && (Pi[r].endTime = lme( + return Pi[r].startTime && (Pi[r].endTime = cme( Pi[r].startTime, Xc, Pi[r].raw.endTime.data, @@ -86574,7 +86599,7 @@ var bH = { friday: 5, saturday: 6 }, Xc = "", a$ = "", o$ = void 0, l$ = "", Dw Pi[r].raw.endTime.data, "YYYY-MM-DD", !0 - ).isValid(), ame(Pi[r], Xc, Pw, Dw))), Pi[r].processed; + ).isValid(), ome(Pi[r], Xc, Pw, Dw))), Pi[r].processed; }, "compileTask"); let e = !0; for (const [r, n] of Pi.entries()) @@ -86583,11 +86608,11 @@ var bH = { friday: 5, saturday: 6 }, Xc = "", a$ = "", o$ = void 0, l$ = "", Dw }, "compileTasks"), oHt = /* @__PURE__ */ x(function(t, e) { let r = e; ke().securityLevel !== "loose" && (r = yd(e)), t.split(",").forEach(function(n) { - Fp(n) !== void 0 && (hme(n, () => { + Fp(n) !== void 0 && (fme(n, () => { window.open(r, "_self"); }), c$.set(n, r)); - }), ume(t, "clickable"); -}, "setLink"), ume = /* @__PURE__ */ x(function(t, e) { + }), hme(t, "clickable"); +}, "setLink"), hme = /* @__PURE__ */ x(function(t, e) { t.split(",").forEach(function(r) { let n = Fp(r); n !== void 0 && n.classes.push(e); @@ -86603,10 +86628,10 @@ var bH = { friday: 5, saturday: 6 }, Xc = "", a$ = "", o$ = void 0, l$ = "", Dw a.startsWith('"') && a.endsWith('"') && (a = a.substr(1, a.length - 2)), n[s] = a; } } - n.length === 0 && n.push(t), Fp(t) !== void 0 && hme(t, () => { + n.length === 0 && n.push(t), Fp(t) !== void 0 && fme(t, () => { mr.runFunc(e, ...n); }); -}, "setClickFun"), hme = /* @__PURE__ */ x(function(t, e) { +}, "setClickFun"), fme = /* @__PURE__ */ x(function(t, e) { f$.push( function() { const r = document.querySelector(`[id="${t}"]`); @@ -86624,7 +86649,7 @@ var bH = { friday: 5, saturday: 6 }, Xc = "", a$ = "", o$ = void 0, l$ = "", Dw }, "pushFun"), cHt = /* @__PURE__ */ x(function(t, e, r) { t.split(",").forEach(function(n) { lHt(n, e, r); - }), ume(t, "clickable"); + }), hme(t, "clickable"); }, "setClickEvent"), uHt = /* @__PURE__ */ x(function(t) { f$.forEach(function(e) { e(t); @@ -86666,8 +86691,8 @@ var bH = { friday: 5, saturday: 6 }, Xc = "", a$ = "", o$ = void 0, l$ = "", Dw setLink: oHt, getLinks: HXt, bindFunctions: uHt, - parseDuration: ome, - isInvalidDate: sme, + parseDuration: lme, + isInvalidDate: ame, setWeekday: JXt, getWeekday: eHt, setWeekend: tHt @@ -86683,13 +86708,13 @@ function g$(t, e, r) { x(g$, "getTaskTags"); var fHt = /* @__PURE__ */ x(function() { Z.debug("Something is calling, setConf, remove the call"); -}, "setConf"), wH = { +}, "setConf"), OH = { monday: tb, - tuesday: soe, - wednesday: aoe, + tuesday: aoe, + wednesday: ooe, thursday: V0, - friday: ooe, - saturday: loe, + friday: loe, + saturday: coe, sunday: nw }, dHt = /* @__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; @@ -86883,7 +86908,7 @@ var fHt = /* @__PURE__ */ x(function() { R.ticks(U0.every(P)); break; case "week": - R.ticks(wH[N].every(P)); + R.ticks(OH[N].every(P)); break; case "month": R.ticks(rb.every(P)); @@ -86911,7 +86936,7 @@ var fHt = /* @__PURE__ */ x(function() { P.ticks(U0.every(M)); break; case "week": - P.ticks(wH[D].every(M)); + P.ticks(OH[D].every(M)); break; case "month": P.ticks(rb.every(M)); @@ -87247,17 +87272,17 @@ const EHt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty( __proto__: null, diagram: CHt }, Symbol.toStringTag, { value: "Module" })); -var fme = cn.pie, m$ = { +var dme = cn.pie, m$ = { sections: /* @__PURE__ */ new Map(), showData: !1, - config: fme -}, WS = m$.sections, v$ = m$.showData, _Ht = structuredClone(fme), AHt = /* @__PURE__ */ x(() => structuredClone(_Ht), "getConfig"), LHt = /* @__PURE__ */ x(() => { + config: dme +}, WS = m$.sections, v$ = m$.showData, _Ht = structuredClone(dme), AHt = /* @__PURE__ */ x(() => structuredClone(_Ht), "getConfig"), LHt = /* @__PURE__ */ x(() => { WS = /* @__PURE__ */ new Map(), v$ = m$.showData, us(); }, "clear"), RHt = /* @__PURE__ */ x(({ label: t, value: e }) => { WS.has(t) || (WS.set(t, e), Z.debug(`added new section: ${t}, with value: ${e}`)); }, "addSection"), MHt = /* @__PURE__ */ x(() => WS, "getSections"), DHt = /* @__PURE__ */ x((t) => { v$ = t; -}, "setShowData"), PHt = /* @__PURE__ */ x(() => v$, "getShowData"), dme = { +}, "setShowData"), PHt = /* @__PURE__ */ x(() => v$, "getShowData"), pme = { getConfig: AHt, clear: LHt, setDiagramTitle: Na, @@ -87275,7 +87300,7 @@ var fme = cn.pie, m$ = { }, "populateDb"), IHt = { parse: /* @__PURE__ */ x(async (t) => { const e = await ev("pie", t); - Z.debug(e), NHt(e, dme); + Z.debug(e), NHt(e, pme); }, "parse") }, $Ht = /* @__PURE__ */ x((t) => ` .pieCircle{ @@ -87359,7 +87384,7 @@ var fme = cn.pie, m$ = { d.attr("viewBox", `0 0 ${_} ${h}`), Ds(d, h, _, a.useMaxWidth); }, "draw"), QHt = { draw: zHt }, UHt = { parser: IHt, - db: dme, + db: pme, renderer: QHt, styles: BHt }; @@ -88184,58 +88209,58 @@ function YR(t) { return !/^#?([\dA-Fa-f]{6}|[\dA-Fa-f]{3})$/.test(t); } x(YR, "validateHexCode"); -function pme(t) { +function gme(t) { return !/^\d+$/.test(t); } -x(pme, "validateNumber"); -function gme(t) { +x(gme, "validateNumber"); +function mme(t) { return !/^\d+px$/.test(t); } -x(gme, "validateSizeInPixels"); +x(mme, "validateSizeInPixels"); var WHt = ke(); function Au(t) { return yi(t.trim(), WHt); } x(Au, "textSanitizer"); var Ts = new YHt(); -function mme(t) { +function vme(t) { Ts.setData({ quadrant1Text: Au(t.text) }); } -x(mme, "setQuadrant1Text"); -function vme(t) { +x(vme, "setQuadrant1Text"); +function yme(t) { Ts.setData({ quadrant2Text: Au(t.text) }); } -x(vme, "setQuadrant2Text"); -function yme(t) { +x(yme, "setQuadrant2Text"); +function bme(t) { Ts.setData({ quadrant3Text: Au(t.text) }); } -x(yme, "setQuadrant3Text"); -function bme(t) { +x(bme, "setQuadrant3Text"); +function xme(t) { Ts.setData({ quadrant4Text: Au(t.text) }); } -x(bme, "setQuadrant4Text"); -function xme(t) { +x(xme, "setQuadrant4Text"); +function wme(t) { Ts.setData({ xAxisLeftText: Au(t.text) }); } -x(xme, "setXAxisLeftText"); -function wme(t) { +x(wme, "setXAxisLeftText"); +function Ome(t) { Ts.setData({ xAxisRightText: Au(t.text) }); } -x(wme, "setXAxisRightText"); -function Ome(t) { +x(Ome, "setXAxisRightText"); +function kme(t) { Ts.setData({ yAxisTopText: Au(t.text) }); } -x(Ome, "setYAxisTopText"); -function kme(t) { +x(kme, "setYAxisTopText"); +function Sme(t) { Ts.setData({ yAxisBottomText: Au(t.text) }); } -x(kme, "setYAxisBottomText"); +x(Sme, "setYAxisBottomText"); function LE(t) { const e = {}; for (const r of t) { const [n, i] = r.trim().split(/\s*:\s*/); if (n === "radius") { - if (pme(i)) + if (gme(i)) throw new C4(n, i, "number"); e.radius = parseInt(i); } else if (n === "color") { @@ -88247,7 +88272,7 @@ function LE(t) { throw new C4(n, i, "hex code"); e.strokeColor = i; } else if (n === "stroke-width") { - if (gme(i)) + if (mme(i)) throw new C4(n, i, "number of pixels (eg. 10px)"); e.strokeWidth = i; } else @@ -88256,7 +88281,7 @@ function LE(t) { return e; } x(LE, "parseStyles"); -function Sme(t, e, r, n, i) { +function Tme(t, e, r, n, i) { const s = LE(i); Ts.addPoints([ { @@ -88268,20 +88293,20 @@ function Sme(t, e, r, n, i) { } ]); } -x(Sme, "addPoint"); -function Tme(t, e) { +x(Tme, "addPoint"); +function Cme(t, e) { Ts.addClass(t, LE(e)); } -x(Tme, "addClass"); -function Cme(t) { +x(Cme, "addClass"); +function Eme(t) { Ts.setConfig({ chartWidth: t }); } -x(Cme, "setWidth"); -function Eme(t) { +x(Eme, "setWidth"); +function _me(t) { Ts.setConfig({ chartHeight: t }); } -x(Eme, "setHeight"); -function _me() { +x(_me, "setHeight"); +function Ame() { const t = ke(), { themeVariables: e, quadrantChart: r } = t; return r && Ts.setConfig(r), Ts.setThemeConfig({ quadrant1Fill: e.quadrant1Fill, @@ -88301,24 +88326,24 @@ function _me() { quadrantTitleFill: e.quadrantTitleFill }), Ts.setData({ titleText: $s() }), Ts.build(); } -x(_me, "getQuadrantData"); +x(Ame, "getQuadrantData"); var GHt = /* @__PURE__ */ x(function() { Ts.clear(), us(); }, "clear"), XHt = { - setWidth: Cme, - setHeight: Eme, - setQuadrant1Text: mme, - setQuadrant2Text: vme, - setQuadrant3Text: yme, - setQuadrant4Text: bme, - setXAxisLeftText: xme, - setXAxisRightText: wme, - setYAxisTopText: Ome, - setYAxisBottomText: kme, + setWidth: Eme, + setHeight: _me, + setQuadrant1Text: vme, + setQuadrant2Text: yme, + setQuadrant3Text: bme, + setQuadrant4Text: xme, + setXAxisLeftText: wme, + setXAxisRightText: Ome, + setYAxisTopText: kme, + setYAxisBottomText: Sme, parseStyles: LE, - addPoint: Sme, - addClass: Tme, - getQuadrantData: _me, + addPoint: Tme, + addClass: Cme, + getQuadrantData: Ame, clear: GHt, setAccTitle: hs, getAccTitle: Ps, @@ -88829,7 +88854,7 @@ function Kg(t) { return t.type === "linear"; } x(Kg, "isLinearAxisData"); -var wx, Ame = (wx = class { +var wx, Lme = (wx = class { constructor(e) { this.parentGroup = e; } @@ -88844,14 +88869,14 @@ var wx, Ame = (wx = class { height: 0 }, i = this.parentGroup.append("g").attr("visibility", "hidden").attr("font-size", r); for (const s of e) { - const a = Tle(i, 1, s), o = a ? a.width : s.length * r, l = a ? a.height : r; + const a = Cle(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(wx, "TextDimensionCalculatorWithFont"); -})(), wx), OH = 0.7, kH = 0.2, Ox, Lme = (Ox = class { +})(), wx), kH = 0.7, SH = 0.2, Ox, Rme = (Ox = 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"; } @@ -88878,12 +88903,12 @@ var wx, Ame = (wx = class { ); } recalculateOuterPaddingToDrawBar() { - OH * this.getTickDistance() > this.outerPadding * 2 && (this.outerPadding = Math.floor(OH * this.getTickDistance() / 2)), this.recalculateScale(); + kH * this.getTickDistance() > this.outerPadding * 2 && (this.outerPadding = Math.floor(kH * 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 = kH * e.width; + const n = this.getLabelDimension(), i = SH * 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); @@ -88900,7 +88925,7 @@ var wx, Ame = (wx = 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 = kH * e.height; + const n = this.getLabelDimension(), i = SH * 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); @@ -89106,7 +89131,7 @@ var wx, Ame = (wx = class { } }, (() => { x(Ox, "BaseAxis"); -})(), Ox), kx, eZt = (kx = class extends Lme { +})(), Ox), kx, eZt = (kx = class extends Rme { constructor(e, r, n, i, s) { super(e, i, s, r), this.categories = n, this.scale = q9().domain(this.categories).range(this.getRange()); } @@ -89125,7 +89150,7 @@ var wx, Ame = (wx = class { } }, (() => { x(kx, "BandAxis"); -})(), kx), Sx, tZt = (Sx = class extends Lme { +})(), kx), Sx, tZt = (Sx = class extends Rme { constructor(e, r, n, i, s) { super(e, i, s, r), this.domain = n, this.scale = Pm().domain(this.domain).range(this.getRange()); } @@ -89143,7 +89168,7 @@ var wx, Ame = (wx = class { x(Sx, "LinearAxis"); })(), Sx); function XR(t, e, r, n) { - const i = new Ame(n); + const i = new Lme(n); return y$(t) ? new eZt( e, r, @@ -89203,11 +89228,11 @@ var Tx, rZt = (Tx = class { }, (() => { x(Tx, "ChartTitle"); })(), Tx); -function Rme(t, e, r, n) { - const i = new Ame(n); +function Mme(t, e, r, n) { + const i = new Lme(n); return new rZt(i, t, e, r); } -x(Rme, "getChartTitleComponent"); +x(Mme, "getChartTitleComponent"); var Cx, nZt = (Cx = class { constructor(e, r, n, i, s) { this.plotData = e, this.xAxis = r, this.yAxis = n, this.orientation = i, this.plotIndex = s; @@ -89333,15 +89358,15 @@ var Cx, nZt = (Cx = class { }, (() => { x(_x, "BasePlot"); })(), _x); -function Mme(t, e, r) { +function Dme(t, e, r) { return new sZt(t, e, r); } -x(Mme, "getPlotComponent"); +x(Dme, "getPlotComponent"); var Ax, aZt = (Ax = class { constructor(e, r, n, i) { this.chartConfig = e, this.chartData = r, this.componentStore = { - title: Rme(e, r, n, i), - plot: Mme(e, r, n), + title: Mme(e, r, n, i), + plot: Dme(e, r, n), xAxis: XR( r.xAxis, e.xAxis, @@ -89427,7 +89452,7 @@ var Ax, aZt = (Ax = class { } }, (() => { x(Lx, "XYChartBuilder"); -})(), Lx), Cb = 0, Dme, Eb = w$(), _b = x$(), an = O$(), HR = _b.plotColorPalette.split(",").map((t) => t.trim()), RE = !1, b$ = !1; +})(), Lx), Cb = 0, Pme, Eb = w$(), _b = x$(), an = O$(), HR = _b.plotColorPalette.split(",").map((t) => t.trim()), RE = !1, b$ = !1; function x$() { const t = NP(), e = Li(); return $h(t.xyChart, e.themeVariables.xyChart); @@ -89464,39 +89489,39 @@ function ME(t) { return yi(t.trim(), e); } x(ME, "textSanitizer"); -function Pme(t) { - Dme = t; -} -x(Pme, "setTmpSVGG"); function Nme(t) { - t === "horizontal" ? Eb.chartOrientation = "horizontal" : Eb.chartOrientation = "vertical"; + Pme = t; } -x(Nme, "setOrientation"); +x(Nme, "setTmpSVGG"); function Ime(t) { + t === "horizontal" ? Eb.chartOrientation = "horizontal" : Eb.chartOrientation = "vertical"; +} +x(Ime, "setOrientation"); +function $me(t) { an.xAxis.title = ME(t.text); } -x(Ime, "setXAxisTitle"); +x($me, "setXAxisTitle"); function k$(t, e) { an.xAxis = { type: "linear", title: an.xAxis.title, min: t, max: e }, RE = !0; } x(k$, "setXAxisRangeData"); -function $me(t) { +function Bme(t) { an.xAxis = { type: "band", title: an.xAxis.title, categories: t.map((e) => ME(e.text)) }, RE = !0; } -x($me, "setXAxisBand"); -function Bme(t) { +x(Bme, "setXAxisBand"); +function Fme(t) { an.yAxis.title = ME(t.text); } -x(Bme, "setYAxisTitle"); -function Fme(t, e) { +x(Fme, "setYAxisTitle"); +function zme(t, e) { an.yAxis = { type: "linear", title: an.yAxis.title, min: t, max: e }, b$ = !0; } -x(Fme, "setYAxisRangeData"); -function zme(t) { +x(zme, "setYAxisRangeData"); +function Qme(t) { const e = Math.min(...t), r = Math.max(...t), n = Kg(an.yAxis) ? an.yAxis.min : 1 / 0, i = Kg(an.yAxis) ? an.yAxis.max : -1 / 0; an.yAxis = { type: "linear", @@ -89505,7 +89530,7 @@ function zme(t) { max: Math.max(i, r) }; } -x(zme, "setYAxisRangeFromPlotData"); +x(Qme, "setYAxisRangeFromPlotData"); function S$(t) { let e = []; if (t.length === 0) @@ -89514,7 +89539,7 @@ function S$(t) { const r = Kg(an.xAxis) ? an.xAxis.min : 1 / 0, n = Kg(an.xAxis) ? an.xAxis.max : -1 / 0; k$(Math.min(r, 1), Math.max(n, t.length)); } - if (b$ || zme(t), y$(an.xAxis) && (e = an.xAxis.categories.map((r, n) => [r, t[n]])), Kg(an.xAxis)) { + if (b$ || Qme(t), y$(an.xAxis) && (e = an.xAxis.categories.map((r, n) => [r, t[n]])), Kg(an.xAxis)) { const r = an.xAxis.min, n = an.xAxis.max, i = (n - r) / (t.length - 1), s = []; for (let a = r; a <= n; a += i) s.push(`${a}`); @@ -89527,7 +89552,7 @@ function T$(t) { return HR[t === 0 ? 0 : t % HR.length]; } x(T$, "getPlotColorFromPalette"); -function Qme(t, e) { +function Ume(t, e) { const r = S$(e); an.plots.push({ type: "line", @@ -89536,8 +89561,8 @@ function Qme(t, e) { data: r }), Cb++; } -x(Qme, "setLineData"); -function Ume(t, e) { +x(Ume, "setLineData"); +function Vme(t, e) { const r = S$(e); an.plots.push({ type: "bar", @@ -89545,25 +89570,25 @@ function Ume(t, e) { data: r }), Cb++; } -x(Ume, "setBarData"); -function Vme() { +x(Vme, "setBarData"); +function qme() { if (an.plots.length === 0) throw Error("No Plot to render, please provide a plot with some data"); - return an.title = $s(), oZt.build(Eb, an, _b, Dme); + return an.title = $s(), oZt.build(Eb, an, _b, Pme); } -x(Vme, "getDrawableElem"); -function qme() { +x(qme, "getDrawableElem"); +function Yme() { return _b; } -x(qme, "getChartThemeConfig"); -function Yme() { +x(Yme, "getChartThemeConfig"); +function Wme() { return Eb; } -x(Yme, "getChartConfig"); +x(Wme, "getChartConfig"); var lZt = /* @__PURE__ */ x(function() { us(), Cb = 0, Eb = w$(), an = O$(), _b = x$(), HR = _b.plotColorPalette.split(",").map((t) => t.trim()), RE = !1, b$ = !1; }, "clear"), cZt = { - getDrawableElem: Vme, + getDrawableElem: qme, clear: lZt, setAccTitle: hs, getAccTitle: Ps, @@ -89571,17 +89596,17 @@ var lZt = /* @__PURE__ */ x(function() { getDiagramTitle: $s, getAccDescription: Is, setAccDescription: Ns, - setOrientation: Nme, - setXAxisTitle: Ime, + setOrientation: Ime, + setXAxisTitle: $me, setXAxisRangeData: k$, - setXAxisBand: $me, - setYAxisTitle: Bme, - setYAxisRangeData: Fme, - setLineData: Qme, - setBarData: Ume, - setTmpSVGG: Pme, - getChartThemeConfig: qme, - getChartConfig: Yme + setXAxisBand: Bme, + setYAxisTitle: Fme, + setYAxisRangeData: zme, + setLineData: Ume, + setBarData: Vme, + setTmpSVGG: Nme, + getChartThemeConfig: Yme, + getChartConfig: Wme }, uZt = /* @__PURE__ */ x((t, e, r, n) => { const i = n.db, s = i.getChartThemeConfig(), a = i.getChartConfig(); function o(v) { @@ -90237,10 +90262,10 @@ var pZt = ZR, C$ = [], Ja = {}, n2 = /* @__PURE__ */ new Map(), Rf = {}, i2 = /* M${e.line_height},${e.line_height / 2} L0,${e.line_height}` ).attr("stroke-width", 1); -}, "insertLineEndings"), Wme = { +}, "insertLineEndings"), Gme = { ReqMarkers: jR, insertLineEndings: NZt -}, Jn = {}, SH = 0, Gme = /* @__PURE__ */ x((t, e) => t.insert("rect", "#" + e).attr("class", "req reqBox").attr("x", 0).attr("y", 0).attr("width", Jn.rect_min_width + "px").attr("height", Jn.rect_min_height + "px"), "newRectNode"), Xme = /* @__PURE__ */ x((t, e, r) => { +}, Jn = {}, TH = 0, Xme = /* @__PURE__ */ x((t, e) => t.insert("rect", "#" + e).attr("class", "req reqBox").attr("x", 0).attr("y", 0).attr("width", Jn.rect_min_width + "px").attr("height", Jn.rect_min_height + "px"), "newRectNode"), Hme = /* @__PURE__ */ x((t, e, r) => { let n = Jn.rect_min_width / 2, i = t.append("text").attr("class", "req reqLabel reqTitle").attr("id", e).attr("x", n).attr("y", Jn.rect_padding).attr("dominant-baseline", "hanging"), s = 0; r.forEach((u) => { s == 0 ? i.append("tspan").attr("text-anchor", "middle").attr("x", Jn.rect_min_width / 2).attr("dy", 0).text(u) : i.append("tspan").attr("text-anchor", "middle").attr("x", Jn.rect_min_width / 2).attr("dy", Jn.line_height * 0.75).text(u), s++; @@ -90250,7 +90275,7 @@ var pZt = ZR, C$ = [], Ja = {}, n2 = /* @__PURE__ */ new Map(), Rf = {}, i2 = /* titleNode: i, y: l }; -}, "newTitleNode"), Hme = /* @__PURE__ */ x((t, e, r, n) => { +}, "newTitleNode"), Zme = /* @__PURE__ */ x((t, e, r, n) => { let i = t.append("text").attr("class", "req reqLabel").attr("id", e).attr("x", Jn.rect_padding).attr("y", n).attr("dominant-baseline", "hanging"), s = 0; const a = 30; let o = []; @@ -90270,8 +90295,8 @@ var pZt = ZR, C$ = [], Ja = {}, n2 = /* @__PURE__ */ new Map(), Rf = {}, i2 = /* i.append("tspan").attr("x", Jn.rect_padding).attr("dy", Jn.line_height).text(l); }), i; }, "newBodyNode"), IZt = /* @__PURE__ */ x((t, e, r, n) => { - const i = e.node().getTotalLength(), s = e.node().getPointAtLength(i * 0.5), a = "rel" + SH; - SH++; + const i = e.node().getTotalLength(), s = e.node().getPointAtLength(i * 0.5), a = "rel" + TH; + TH++; 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"), $Zt = /* @__PURE__ */ x(function(t, e, r, n, i) { @@ -90285,18 +90310,18 @@ var pZt = ZR, C$ = [], Ja = {}, n2 = /* @__PURE__ */ new Map(), Rf = {}, i2 = /* "url(" + mt.getUrl(Jn.arrowMarkerAbsolute) + "#" + e.type + "_line_ending)" ) : (o.attr("stroke-dasharray", "10,7"), o.attr( "marker-end", - "url(" + mt.getUrl(Jn.arrowMarkerAbsolute) + "#" + Wme.ReqMarkers.ARROW + "_line_ending)" + "url(" + mt.getUrl(Jn.arrowMarkerAbsolute) + "#" + Gme.ReqMarkers.ARROW + "_line_ending)" )), IZt(t, o, Jn, `<<${e.type}>>`); }, "drawRelationshipFromLayout"), BZt = /* @__PURE__ */ x((t, e, r) => { t.forEach((n, i) => { i = o1(i), Z.info("Added new requirement: ", i); - const s = r.append("g").attr("id", i), a = "req-" + i, o = Gme(s, a); - let l = [], u = Xme(s, i + "_title", [ + const s = r.append("g").attr("id", i), a = "req-" + i, o = Xme(s, a); + let l = [], u = Hme(s, i + "_title", [ `<<${n.type}>>`, `${n.name}` ]); l.push(u.titleNode); - let h = Hme( + let h = Zme( s, i + "_body", [ @@ -90318,10 +90343,10 @@ var pZt = ZR, C$ = [], Ja = {}, n2 = /* @__PURE__ */ new Map(), Rf = {}, i2 = /* }); }, "drawReqs"), FZt = /* @__PURE__ */ x((t, e, r) => { t.forEach((n, i) => { - const s = o1(i), a = r.append("g").attr("id", s), o = "element-" + s, l = Gme(a, o); - let u = [], h = Xme(a, o + "_title", ["<>", `${i}`]); + const s = o1(i), a = r.append("g").attr("id", s), o = "element-" + s, l = Xme(a, o); + let u = [], h = Hme(a, o + "_title", ["<>", `${i}`]); u.push(h.titleNode); - let f = Hme( + let f = Zme( a, o + "_body", [`Type: ${n.type || "Not Specified"}`, `Doc Ref: ${n.docRef || "None"}`], @@ -90352,7 +90377,7 @@ var pZt = ZR, C$ = [], Ja = {}, n2 = /* @__PURE__ */ new Map(), Rf = {}, i2 = /* let s; i === "sandbox" && (s = ht("#i" + e)); const o = ht(i === "sandbox" ? s.nodes()[0].contentDocument.body : "body").select(`[id='${e}']`); - Wme.insertLineEndings(o, Jn); + Gme.insertLineEndings(o, Jn); const l = new Ji({ multigraph: !1, compound: !1, @@ -91084,7 +91109,7 @@ var WZt = KR, Gt = new DI(() => ({ Gt.records.sequenceNumbersEnabled = !1; }, "disableSequenceNumbers"), ajt = /* @__PURE__ */ x(() => Gt.records.sequenceNumbersEnabled, "showSequenceNumbers"), ojt = /* @__PURE__ */ x(function(t) { Gt.records.wrapEnabled = t; -}, "setWrap"), Zme = /* @__PURE__ */ x((t) => { +}, "setWrap"), jme = /* @__PURE__ */ x((t) => { if (t === void 0) return {}; t = t.trim(); @@ -91096,7 +91121,7 @@ var WZt = KR, Gt = new DI(() => ({ }, "autoWrap"), ljt = /* @__PURE__ */ x(function() { Gt.reset(), us(); }, "clear"), cjt = /* @__PURE__ */ x(function(t) { - const e = t.trim(), { wrap: r, cleanedText: n } = Zme(e), i = { + const e = t.trim(), { wrap: r, cleanedText: n } = jme(e), i = { text: n, wrap: r }; @@ -91110,7 +91135,7 @@ var WZt = KR, Gt = new DI(() => ({ const a = new Option().style; a.color = r, a.color !== r && (r = "transparent", n = t.trim()); } - const { wrap: i, cleanedText: s } = Zme(n); + const { wrap: i, cleanedText: s } = jme(n); return { text: s ? yi(s, ke()) : void 0, color: r, @@ -91156,7 +91181,7 @@ var WZt = KR, Gt = new DI(() => ({ LEFTOF: 0, RIGHTOF: 1, OVER: 2 -}, jme = /* @__PURE__ */ x(function(t, e, r) { +}, Kme = /* @__PURE__ */ x(function(t, e, r) { var s, a; const n = { actor: t, @@ -91172,7 +91197,7 @@ var WZt = KR, Gt = new DI(() => ({ type: Ab.NOTE, placement: e }); -}, "addNote"), Kme = /* @__PURE__ */ x(function(t, e) { +}, "addNote"), Jme = /* @__PURE__ */ x(function(t, e) { const r = Iw(t); try { let n = yi(e.text, ke()); @@ -91203,7 +91228,7 @@ function DE(t, e) { t.links[r] = e[r]; } x(DE, "insertLinks"); -var Jme = /* @__PURE__ */ x(function(t, e) { +var e1e = /* @__PURE__ */ x(function(t, e) { const r = Iw(t); try { const n = yi(e.text, ke()), i = JSON.parse(n); @@ -91220,11 +91245,11 @@ function E$(t, e) { t.properties[r] = e[r]; } x(E$, "insertProperties"); -function e1e() { +function t1e() { Gt.records.currentBox = void 0; } -x(e1e, "boxEnd"); -var t1e = /* @__PURE__ */ x(function(t, e) { +x(t1e, "boxEnd"); +var r1e = /* @__PURE__ */ x(function(t, e) { const r = Iw(t), n = document.getElementById(e.text); try { const i = n.innerHTML, s = JSON.parse(i); @@ -91235,10 +91260,10 @@ var t1e = /* @__PURE__ */ x(function(t, e) { }, "addDetails"), pjt = /* @__PURE__ */ x(function(t, e) { if ((t == null ? void 0 : t.properties) !== void 0) return t.properties[e]; -}, "getActorProperty"), r1e = /* @__PURE__ */ x(function(t) { +}, "getActorProperty"), n1e = /* @__PURE__ */ x(function(t) { if (Array.isArray(t)) t.forEach(function(e) { - r1e(e); + n1e(e); }); else switch (t.type) { @@ -91275,19 +91300,19 @@ var t1e = /* @__PURE__ */ x(function(t, e) { ai(t.actor, void 0, void 0, t.signalType); break; case "addNote": - jme(t.actor, t.placement, t.text); + Kme(t.actor, t.placement, t.text); break; case "addLinks": - Kme(t.actor, t.text); + Jme(t.actor, t.text); break; case "addALink": djt(t.actor, t.text); break; case "addProperties": - Jme(t.actor, t.text); + e1e(t.actor, t.text); break; case "addDetails": - t1e(t.actor, t.text); + r1e(t.actor, t.text); break; case "addMessage": if (Gt.records.lastCreated) { @@ -91309,7 +91334,7 @@ var t1e = /* @__PURE__ */ x(function(t, e) { GZt(t.boxData); break; case "boxEnd": - e1e(); + t1e(); break; case "loopStart": ai(void 0, void 0, t.loopText, t.signalType); @@ -91366,13 +91391,13 @@ var t1e = /* @__PURE__ */ x(function(t, e) { ai(void 0, void 0, void 0, t.signalType); break; } -}, "apply"), TH = { +}, "apply"), CH = { addActor: JR, addMessage: HZt, addSignal: ai, - addLinks: Kme, - addDetails: t1e, - addProperties: Jme, + addLinks: Jme, + addDetails: r1e, + addProperties: e1e, autoWrap: ip, setWrap: ojt, enableSequenceNumbers: ijt, @@ -91396,9 +91421,9 @@ var t1e = /* @__PURE__ */ x(function(t, e) { LINETYPE: Ab, ARROWTYPE: hjt, PLACEMENT: fjt, - addNote: jme, + addNote: Kme, setAccTitle: hs, - apply: r1e, + apply: n1e, setAccDescription: Ns, getAccDescription: Is, hasAtLeastOneBox: ZZt, @@ -91519,7 +91544,7 @@ var t1e = /* @__PURE__ */ x(function(t, e) { fill: ${t.actorBkg}; stroke-width: 2px; } -`, "getStyles"), mjt = gjt, b0 = 18 * 2, n1e = "actor-top", i1e = "actor-bottom", vjt = "actor-box", CH = "actor-man", _$ = /* @__PURE__ */ x(function(t, e) { +`, "getStyles"), mjt = gjt, b0 = 18 * 2, i1e = "actor-top", s1e = "actor-bottom", vjt = "actor-box", EH = "actor-man", _$ = /* @__PURE__ */ x(function(t, e) { return lE(t, e); }, "drawRect"), yjt = /* @__PURE__ */ x(function(t, e, r, n, i) { if (e.links === void 0 || e.links === null || Object.keys(e.links).length === 0) @@ -91609,7 +91634,7 @@ var t1e = /* @__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 || Goe; + const p = f || Xoe; 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); @@ -91618,14 +91643,14 @@ var t1e = /* @__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"), s1e = /* @__PURE__ */ x(function(t, e) { +}, "drawText"), a1e = /* @__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, l1(t, e), n; -}, "drawLabel"), Bc = -1, a1e = /* @__PURE__ */ x((t, e, r, n) => { +}, "drawLabel"), Bc = -1, o1e = /* @__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); @@ -91637,7 +91662,7 @@ var t1e = /* @__PURE__ */ x(function(t, e) { n || (Bc++, Object.keys(e.links || {}).length && !r.forceMenus && l.attr("onclick", bjt(`actor${Bc}_popup`)).attr("cursor", "pointer"), l.append("line").attr("id", "actor" + Bc).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 = Bc, e.links != null && l.attr("id", "root-" + Bc)); const u = Np(); var h = "actor"; - (p = e.properties) != null && p.class ? h = e.properties.class : u.fill = "#eaeaea", n ? h += ` ${i1e}` : h += ` ${n1e}`, 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; + (p = e.properties) != null && p.class ? h = e.properties.class : u.fill = "#eaeaea", n ? h += ` ${s1e}` : h += ` ${i1e}`, 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 = _$(l, u); if (e.rectData = u, (g = e.properties) != null && g.icon) { const m = e.properties.icon.trim(); @@ -91663,8 +91688,8 @@ var t1e = /* @__PURE__ */ x(function(t, e) { const i = n ? e.stopy : e.starty, s = e.x + e.width / 2, a = i + 80, o = t.append("g").lower(); n || (Bc++, o.append("line").attr("id", "actor" + Bc).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 = Bc); const l = t.append("g"); - let u = CH; - n ? u += ` ${i1e}` : u += ` ${n1e}`, l.attr("class", u), l.attr("name", e.name); + let u = EH; + n ? u += ` ${s1e}` : u += ` ${i1e}`, l.attr("class", u), l.attr("name", e.name); const h = Np(); 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" + Bc).attr("x1", s).attr("y1", i + 25).attr("x2", s).attr("y2", i + 45), l.append("line").attr("id", "actor-man-arms" + Bc).attr("x1", s - b0 / 2).attr("y1", i + 33).attr("x2", s + b0 / 2).attr("y2", i + 33), l.append("line").attr("x1", s - b0 / 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 + b0 / 2 - 2).attr("y2", i + 60); const f = l.append("circle"); @@ -91677,7 +91702,7 @@ var t1e = /* @__PURE__ */ x(function(t, e) { h.y + 35, h.width, h.height, - { class: `actor ${CH}` }, + { class: `actor ${EH}` }, r ), e.height; }, "drawActorTypeActor"), Ojt = /* @__PURE__ */ x(async function(t, e, r, n) { @@ -91689,7 +91714,7 @@ var t1e = /* @__PURE__ */ x(function(t, e) { } }, "drawActor"), kjt = /* @__PURE__ */ x(function(t, e, r) { const i = t.append("g"); - o1e(i, e), e.name && A$(r)( + l1e(i, e), e.name && A$(r)( e.name, i, e.x, @@ -91723,7 +91748,7 @@ var t1e = /* @__PURE__ */ x(function(t, e) { ); }); let p = OI(); - 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", s1e(f, p), p = l1e(), 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; + 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", a1e(f, p), p = c1e(), 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 = Ra(p.text) ? await GS(f, p, e) : l1(f, p); if (e.sectionTitles !== void 0) { for (const [m, v] of Object.entries(e.sectionTitles)) @@ -91736,8 +91761,8 @@ var t1e = /* @__PURE__ */ x(function(t, e) { } } return e.height = Math.round(e.stopy - e.starty), f; -}, "drawLoop"), o1e = /* @__PURE__ */ x(function(t, e) { - Xde(t, e); +}, "drawLoop"), l1e = /* @__PURE__ */ x(function(t, e) { + Hde(t, e); }, "drawBackgroundRect"), Ejt = /* @__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", @@ -91761,7 +91786,7 @@ var t1e = /* @__PURE__ */ x(function(t, e) { 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"), Djt = /* @__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"), l1e = /* @__PURE__ */ x(function() { +}, "insertArrowCrossHead"), c1e = /* @__PURE__ */ x(function() { return { x: 0, y: 0, @@ -91848,14 +91873,14 @@ var t1e = /* @__PURE__ */ x(function(t, e) { }(), oi = { drawRect: _$, drawText: l1, - drawLabel: s1e, + drawLabel: a1e, drawActor: Ojt, drawBox: kjt, drawPopup: yjt, anchorElement: Sjt, drawActivation: Tjt, drawLoop: Cjt, - drawBackgroundRect: o1e, + drawBackgroundRect: l1e, insertArrowHead: Ljt, insertArrowFilledHead: Rjt, insertSequenceNumber: Mjt, @@ -91863,9 +91888,9 @@ var t1e = /* @__PURE__ */ x(function(t, e) { insertDatabaseIcon: Ejt, insertComputerIcon: _jt, insertClockIcon: Ajt, - getTextObj: l1e, + getTextObj: c1e, getNoteRect: Pjt, - fixLifeLineHeights: a1e, + fixLifeLineHeights: o1e, sanitizeUrl: yd }, Qe = {}, dt = { data: { @@ -91926,7 +91951,7 @@ var t1e = /* @__PURE__ */ x(function(t, e) { stopx: void 0, starty: void 0, stopy: void 0 - }, this.verticalPos = 0, h1e(ke()); + }, this.verticalPos = 0, f1e(ke()); }, "init"), updateVal: /* @__PURE__ */ x(function(t, e, r, n) { t[e] === void 0 ? t[e] = r : t[e] = n(r, t[e]); @@ -92028,7 +92053,7 @@ var t1e = /* @__PURE__ */ x(function(t, e) { fontSize: t.actorFontSize, fontWeight: t.actorFontWeight }), "actorFont"); -async function c1e(t, e) { +async function u1e(t, e) { dt.bumpVerticalPos(10); const { startx: r, stopx: n, message: i } = e, s = mt.splitBreaks(i).length, a = Ra(i), o = a ? await Jx(i, ke()) : mr.calculateTextDimensions(i, sp(Qe)); if (!a) { @@ -92050,7 +92075,7 @@ async function c1e(t, e) { u += Qe.boxMargin, l = dt.getVerticalPos() + u, dt.insert(r, l - 10, n, l); return dt.bumpVerticalPos(u), e.height += u, e.stopy = e.starty + e.height, dt.insert(e.fromBounds, e.starty, e.toBounds, e.stopy), l; } -x(c1e, "boundMessage"); +x(u1e, "boundMessage"); var $jt = /* @__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 = mr.calculateTextDimensions(o, sp(Qe)), d = OI(); d.x = i, d.y = a + 10, d.width = s - i, d.class = "messageText", d.dy = "1em", d.text = o, d.fontFamily = Qe.messageFontFamily, d.fontSize = Qe.messageFontSize, d.fontWeight = Qe.messageFontWeight, d.anchor = Qe.messageAlign, d.valign = "center", d.textMargin = Qe.wrapPadding, d.tspan = !1, Ra(d.text) ? await GS(t, d, { startx: i, stopx: s, starty: r }) : l1(t, d); @@ -92088,7 +92113,7 @@ var $jt = /* @__PURE__ */ x(async function(t, e, r, n) { const s = e.get(i); await oi.drawActor(t, s, Qe, !1); } -}, "drawActors"), u1e = /* @__PURE__ */ x(function(t, e, r, n) { +}, "drawActors"), h1e = /* @__PURE__ */ x(function(t, e, r, n) { let i = 0, s = 0; for (const a of r) { const o = e.get(a), l = zjt(o), u = oi.drawPopup( @@ -92102,13 +92127,13 @@ var $jt = /* @__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"), h1e = /* @__PURE__ */ x(function(t) { +}, "drawActorsPopup"), f1e = /* @__PURE__ */ x(function(t) { Ui(Qe, t), t.fontFamily && (Qe.actorFontFamily = Qe.noteFontFamily = Qe.messageFontFamily = t.fontFamily), t.fontSize && (Qe.actorFontSize = Qe.noteFontSize = Qe.messageFontSize = t.fontSize), t.fontWeight && (Qe.actorFontWeight = Qe.noteFontWeight = Qe.messageFontWeight = t.fontWeight); }, "setConf"), PE = /* @__PURE__ */ x(function(t) { return dt.activations.filter(function(e) { return e.actor === t; }); -}, "actorActivations"), EH = /* @__PURE__ */ x(function(t, e) { +}, "actorActivations"), _H = /* @__PURE__ */ x(function(t, e) { const r = e.get(t), n = PE(t), i = n.reduce( function(a, o) { return mt.getMin(a, o.startx); @@ -92134,7 +92159,7 @@ function Rl(t, e, r, n, i) { i(e), dt.bumpVerticalPos(s); } x(Rl, "adjustLoopHeightForWrap"); -function f1e(t, e, r, n, i, s, a) { +function d1e(t, e, r, n, i, s, a) { function o(u, h) { u.x < i.get(t.from).x ? (dt.insert( e.stopx - h, @@ -92181,7 +92206,7 @@ function f1e(t, e, r, n, i, s, a) { u.stopy = r - u.height / 2, dt.bumpVerticalPos(u.height / 2); } } -x(f1e, "adjustCreatedDestroyedData"); +x(d1e, "adjustCreatedDestroyedData"); var Fjt = /* @__PURE__ */ x(async function(t, e, r, n) { const { securityLevel: i, sequence: s } = ke(); Qe = s; @@ -92191,8 +92216,8 @@ var Fjt = /* @__PURE__ */ x(async function(t, e, r, n) { dt.init(), Z.debug(n.db); const u = i === "sandbox" ? o.select(`[id="${e}"]`) : ht(`[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 d1e(h, m, n); - if (Qe.height = await p1e(h, w, p), oi.insertComputerIcon(u), oi.insertDatabaseIcon(u), oi.insertClockIcon(u), y && (dt.bumpVerticalPos(Qe.boxMargin), b && dt.bumpVerticalPos(p[0].textMaxHeight)), Qe.hideUnusedParticipants === !0) { + const m = n.db.getMessages(), v = n.db.getDiagramTitle(), y = n.db.hasAtLeastOneBox(), b = n.db.hasAtLeastOneBoxWithTitle(), w = await p1e(h, m, n); + if (Qe.height = await g1e(h, w, p), oi.insertComputerIcon(u), oi.insertDatabaseIcon(u), oi.insertClockIcon(u), y && (dt.bumpVerticalPos(Qe.boxMargin), b && dt.bumpVerticalPos(p[0].textMaxHeight)), Qe.hideUnusedParticipants === !0) { const D = /* @__PURE__ */ new Set(); m.forEach((I) => { D.add(I.from), D.add(I.to); @@ -92345,8 +92370,8 @@ var Fjt = /* @__PURE__ */ x(async function(t, e, r, n) { default: try { B = D.msgModel, B.starty = dt.getVerticalPos(), B.sequenceIndex = C, B.sequenceVisible = n.db.showSequenceNumbers(); - const Q = await c1e(u, B); - f1e( + const Q = await u1e(u, B); + d1e( D, B, Q, @@ -92375,11 +92400,11 @@ var Fjt = /* @__PURE__ */ x(async function(t, e, r, n) { Z.debug("createdActors", f), Z.debug("destroyedActors", d), await tM(u, h, g, !1); for (const D of A) await $jt(u, D.messageModel, D.lineStartY, n); - Qe.mirrorActors && await tM(u, h, g, !0), E.forEach((D) => oi.drawBackgroundRect(u, D)), a1e(u, h, g, Qe); + Qe.mirrorActors && await tM(u, h, g, !0), E.forEach((D) => oi.drawBackgroundRect(u, D)), o1e(u, h, g, Qe); for (const D of dt.models.boxes) D.height = dt.getVerticalPos() - D.y, dt.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)", oi.drawBox(u, D, Qe); y && dt.bumpVerticalPos(Qe.boxMargin); - const _ = u1e(u, h, g, l), { bounds: R } = dt.getBounds(); + const _ = h1e(u, h, g, l), { bounds: R } = dt.getBounds(); R.startx === void 0 && (R.startx = 0), R.starty === void 0 && (R.starty = 0), R.stopx === void 0 && (R.stopx = 0), R.stopy === void 0 && (R.stopy = 0); let $ = R.stopy - R.starty; $ < _.maxHeight && ($ = _.maxHeight); @@ -92395,7 +92420,7 @@ var Fjt = /* @__PURE__ */ x(async function(t, e, r, n) { R.startx - Qe.diagramMarginX + " -" + (Qe.diagramMarginY + N) + " " + M + " " + (k + N) ), Z.debug("models:", dt.models); }, "draw"); -async function d1e(t, e, r) { +async function p1e(t, e, r) { const n = {}; for (const i of e) if (t.get(i.to) && t.get(i.from)) { @@ -92431,7 +92456,7 @@ async function d1e(t, e, r) { } return Z.debug("maxMessageWidthPerActor:", n), n; } -x(d1e, "getMaxMessageWidthPerActor"); +x(p1e, "getMaxMessageWidthPerActor"); var zjt = /* @__PURE__ */ x(function(t) { let e = 0; const r = eM(Qe); @@ -92441,7 +92466,7 @@ var zjt = /* @__PURE__ */ x(function(t) { } return e; }, "getRequiredPopupWidth"); -async function p1e(t, e, r) { +async function g1e(t, e, r) { let n = 0; for (const s of t.keys()) { const a = t.get(s); @@ -92480,7 +92505,7 @@ async function p1e(t, e, r) { } }), r.forEach((s) => s.textMaxHeight = i), mt.getMax(n, Qe.height); } -x(p1e, "calculateActorMargins"); +x(g1e, "calculateActorMargins"); var Qjt = /* @__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 = Ra(t.message) ? await Jx(t.message, ke()) : mr.calculateTextDimensions( @@ -92526,7 +92551,7 @@ var Qjt = /* @__PURE__ */ x(async function(t, e, r) { r.db.LINETYPE.BIDIRECTIONAL_DOTTED ].includes(t.type)) return {}; - const [n, i] = EH(t.from, e), [s, a] = EH(t.to, e), o = n <= s; + const [n, i] = _H(t.from, e), [s, a] = _H(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(Qe.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( @@ -92629,16 +92654,16 @@ var Qjt = /* @__PURE__ */ x(async function(t, e, r) { }, "calculateLoopBounds"), qjt = { bounds: dt, drawActors: tM, - drawActorsPopup: u1e, - setConf: h1e, + drawActorsPopup: h1e, + setConf: f1e, draw: Fjt }, Yjt = { parser: WZt, - db: TH, + db: CH, renderer: qjt, styles: mjt, init: /* @__PURE__ */ x(({ wrap: t }) => { - TH.setWrap(t); + CH.setWrap(t); }, "init") }; const Wjt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ @@ -93309,7 +93334,7 @@ Expecting ` + At.join(", ") + ", got '" + (this.terminals_[bt] || bt) + "'" : ft return x(nt, "Parser"), nt.prototype = Pe, Pe.Parser = nt, new nt(); }(); rM.parser = rM; -var g1e = rM, _H = ["#", "+", "~", "-", ""], Rx, AH = (Rx = class { +var m1e = rM, AH = ["#", "+", "~", "-", ""], Rx, LH = (Rx = class { constructor(e, r) { this.memberType = r, this.visibility = "", this.classifier = ""; const n = yi(e, ke()); @@ -93330,14 +93355,14 @@ var g1e = rM, _H = ["#", "+", "~", "-", ""], Rx, AH = (Rx = class { const i = /([#+~-])?(.+)\((.*)\)([\s$*])?(.*)([$*])?/.exec(e); if (i) { const s = i[1] ? i[1].trim() : ""; - if (_H.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 (AH.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); - _H.includes(i) && (this.visibility = i), /[$*]/.exec(s) && (r = s), this.id = e.substring( + AH.includes(i) && (this.visibility = i), /[$*]/.exec(s) && (r = s), this.id = e.substring( this.visibility === "" ? 0 : 1, r === "" ? n : n - 1 ); @@ -93356,7 +93381,7 @@ var g1e = rM, _H = ["#", "+", "~", "-", ""], Rx, AH = (Rx = class { } }, (() => { x(Rx, "ClassMember"); -})(), Rx), NE = "classId-", L$ = [], Zi = /* @__PURE__ */ new Map(), XS = [], LH = 0, Ch = /* @__PURE__ */ new Map(), nM = 0, Lb = [], ap = /* @__PURE__ */ x((t) => mt.sanitizeText(t, ke()), "sanitizeText"), op = /* @__PURE__ */ x(function(t) { +})(), Rx), NE = "classId-", L$ = [], Zi = /* @__PURE__ */ new Map(), XS = [], RH = 0, Ch = /* @__PURE__ */ new Map(), nM = 0, Lb = [], ap = /* @__PURE__ */ x((t) => mt.sanitizeText(t, ke()), "sanitizeText"), op = /* @__PURE__ */ x(function(t) { const e = mt.sanitizeText(t, ke()); let r = "", n = e; if (e.indexOf("~") > 0) { @@ -93383,15 +93408,15 @@ var g1e = rM, _H = ["#", "+", "~", "-", ""], Rx, AH = (Rx = class { members: [], annotations: [], styles: [], - domId: NE + i + "-" + LH - }), LH++; -}, "addClass"), m1e = /* @__PURE__ */ x(function(t) { + domId: NE + i + "-" + RH + }), RH++; +}, "addClass"), v1e = /* @__PURE__ */ x(function(t) { const e = mt.sanitizeText(t, ke()); if (Zi.has(e)) return Zi.get(e).domId; throw new Error("Class not found: " + e); }, "lookUpDomId"), Xjt = /* @__PURE__ */ x(function() { - L$ = [], Zi = /* @__PURE__ */ new Map(), XS = [], Lb = [], Lb.push(y1e), Ch = /* @__PURE__ */ new Map(), nM = 0, M$ = "TB", us(); + L$ = [], Zi = /* @__PURE__ */ new Map(), XS = [], Lb = [], Lb.push(b1e), Ch = /* @__PURE__ */ new Map(), nM = 0, M$ = "TB", us(); }, "clear"), Hjt = /* @__PURE__ */ x(function(t) { return Zi.get(t); }, "getClass"), Zjt = /* @__PURE__ */ x(function() { @@ -93405,15 +93430,15 @@ var g1e = rM, _H = ["#", "+", "~", "-", ""], Rx, AH = (Rx = class { }, "addRelation"), eKt = /* @__PURE__ */ x(function(t, e) { const r = op(t).className; Zi.get(r).annotations.push(e); -}, "addAnnotation"), v1e = /* @__PURE__ */ x(function(t, e) { +}, "addAnnotation"), y1e = /* @__PURE__ */ x(function(t, e) { HS(t); const r = op(t).className, n = Zi.get(r); if (typeof e == "string") { const i = e.trim(); - i.startsWith("<<") && i.endsWith(">>") ? n.annotations.push(ap(i.substring(2, i.length - 2))) : i.indexOf(")") > 0 ? n.methods.push(new AH(i, "method")) : i && n.members.push(new AH(i, "attribute")); + i.startsWith("<<") && i.endsWith(">>") ? n.annotations.push(ap(i.substring(2, i.length - 2))) : i.indexOf(")") > 0 ? n.methods.push(new LH(i, "method")) : i && n.members.push(new LH(i, "attribute")); } }, "addMember"), tKt = /* @__PURE__ */ x(function(t, e) { - Array.isArray(e) && (e.reverse(), e.forEach((r) => v1e(t, r))); + Array.isArray(e) && (e.reverse(), e.forEach((r) => y1e(t, r))); }, "addMembers"), rKt = /* @__PURE__ */ x(function(t, e) { const r = { id: `note${XS.length}`, @@ -93454,7 +93479,7 @@ var g1e = rM, _H = ["#", "+", "~", "-", ""], Rx, AH = (Rx = class { return; const s = n; if (Zi.has(s)) { - const a = m1e(s); + const a = v1e(s); let o = []; if (typeof r == "string") { o = r.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/); @@ -93487,7 +93512,7 @@ var g1e = rM, _H = ["#", "+", "~", "-", ""], Rx, AH = (Rx = class { COMPOSITION: 2, DEPENDENCY: 3, LOLLIPOP: 4 -}, y1e = /* @__PURE__ */ x(function(t) { +}, b1e = /* @__PURE__ */ x(function(t) { let e = ht(".mermaidTooltip"); (e._groups || e)[0][0] === null && (e = ht("body").append("div").attr("class", "mermaidTooltip").style("opacity", 0)), ht(t).select("svg").selectAll("g.node").on("mouseover", function() { const i = ht(this); @@ -93499,7 +93524,7 @@ var g1e = rM, _H = ["#", "+", "~", "-", ""], Rx, AH = (Rx = class { e.transition().duration(500).style("opacity", 0), ht(this).classed("hover", !1); }); }, "setupToolTips"); -Lb.push(y1e); +Lb.push(b1e); var M$ = "TB", fKt = /* @__PURE__ */ x(() => M$, "getDirection"), dKt = /* @__PURE__ */ x((t) => { M$ = t; }, "setDirection"), pKt = /* @__PURE__ */ x(function(t) { @@ -93542,7 +93567,7 @@ var M$ = "TB", fKt = /* @__PURE__ */ x(() => M$, "getDirection"), dKt = /* @__PU addRelation: Jjt, getDirection: fKt, setDirection: dKt, - addMember: v1e, + addMember: y1e, addMembers: tKt, cleanupLabel: nKt, lineType: uKt, @@ -93552,7 +93577,7 @@ var M$ = "TB", fKt = /* @__PURE__ */ x(() => M$, "getDirection"), dKt = /* @__PU setLink: aKt, getTooltip: sKt, setTooltip: iKt, - lookUpDomId: m1e, + lookUpDomId: v1e, setDiagramTitle: Na, getDiagramTitle: $s, setClassLabel: Gjt, @@ -93715,7 +93740,7 @@ g.classGroup line { font-size: 18px; fill: ${t.textColor}; } -`, "getStyles"), b1e = bKt, RH = 0, xKt = /* @__PURE__ */ x(function(t, e, r, n, i) { +`, "getStyles"), x1e = bKt, MH = 0, xKt = /* @__PURE__ */ x(function(t, e, r, n, i) { const s = /* @__PURE__ */ x(function(b) { switch (b) { case i.db.relationType.AGGREGATION: @@ -93735,7 +93760,7 @@ g.classGroup line { return b.x; }).y(function(b) { return b.y; - }).curve(N1), l = t.append("path").attr("d", o(a)).attr("id", "edge" + RH).attr("class", "relation"); + }).curve(N1), l = t.append("path").attr("d", o(a)).attr("id", "edge" + MH).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", @@ -93767,7 +93792,7 @@ 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); } - Z.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), RH++; + Z.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), MH++; }, "drawEdge"), wKt = /* @__PURE__ */ x(function(t, e, r, n) { Z.debug("Rendering class ", e, r); const i = e.id, s = { @@ -93783,7 +93808,7 @@ g.classGroup line { const O = o.append("tspan").text("\xAB" + w + "\xBB"); l || O.attr("dy", r.textHeight), l = !1; }); - let u = x1e(e); + let u = w1e(e); const h = o.append("tspan").text(u).attr("class", "title"); l || h.attr("dy", r.textHeight); const f = o.node().getBBox().height; @@ -93792,14 +93817,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(); @@ -93809,7 +93834,7 @@ 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"), x1e = /* @__PURE__ */ x(function(t) { +}, "drawClass"), w1e = /* @__PURE__ */ x(function(t) { let e = t.id; return t.type && (e += "<" + Xy(t.type) + ">"), e; }, "getClassTitleString"), OKt = /* @__PURE__ */ x(function(t, e, r, n) { @@ -93833,11 +93858,11 @@ 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"), r7 = { - getClassTitleString: x1e, + getClassTitleString: w1e, drawClass: wKt, drawEdge: xKt, drawNote: OKt @@ -93913,10 +93938,10 @@ g.classGroup line { }, "draw"), TKt = { draw: SKt }, CKt = { - parser: g1e, + parser: m1e, db: ZS, renderer: TKt, - styles: b1e, + styles: x1e, init: /* @__PURE__ */ x((t) => { t.class || (t.class = {}), t.class.arrowMarkerAbsolute = t.arrowMarkerAbsolute, ZS.clear(); }, "init") @@ -93957,8 +93982,8 @@ var _Kt = /* @__PURE__ */ x((t, e, r, n) => { circle: NKt, cross: IKt, barb: $Kt -}, w1e = _Kt, FKt = /* @__PURE__ */ x((t, e, r, n, i) => { - e.arrowTypeStart && DH(t, "start", e.arrowTypeStart, r, n, i), e.arrowTypeEnd && DH(t, "end", e.arrowTypeEnd, r, n, i); +}, O1e = _Kt, FKt = /* @__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"), zKt = { arrow_cross: "cross", arrow_point: "point", @@ -93969,7 +93994,7 @@ var _Kt = /* @__PURE__ */ x((t, e, r, n) => { composition: "composition", dependency: "dependency", lollipop: "lollipop" -}, DH = /* @__PURE__ */ x((t, e, r, n, i, s) => { +}, PH = /* @__PURE__ */ x((t, e, r, n, i, s) => { const a = zKt[r]; if (!a) { Z.warn(`Unknown arrow type: ${r}`); @@ -93979,7 +94004,7 @@ var _Kt = /* @__PURE__ */ x((t, e, r, n) => { t.attr(`marker-${e}`, `url(${n}#${i}_${s}-${a}${o})`); }, "addEdgeMarker"), jS = {}, ys = {}, QKt = /* @__PURE__ */ x(() => { jS = {}, ys = {}; -}, "clear"), O1e = /* @__PURE__ */ x((t, e) => { +}, "clear"), k1e = /* @__PURE__ */ x((t, e) => { const r = ke(), n = Pn(r.flowchart.htmlLabels), i = e.labelType === "markdown" ? Su( t, e.label, @@ -94028,7 +94053,7 @@ function Oy(t, e) { ke().flowchart.htmlLabels && t && (t.style.width = e.length * 9 + "px", t.style.height = "12px"); } x(Oy, "setTerminalWidth"); -var k1e = /* @__PURE__ */ x((t, e) => { +var S1e = /* @__PURE__ */ x((t, e) => { Z.debug("Moving label abc88 ", t.id, t.label, jS[t.id], e); let r = e.updatedPath ? e.updatedPath : e.originalPath; const n = ke(), { subGraphTitleTotalMargin: i } = Op(n); @@ -94115,7 +94140,7 @@ var k1e = /* @__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 Z.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"), PH = /* @__PURE__ */ x((t, e) => { +}, "intersection"), NH = /* @__PURE__ */ x((t, e) => { Z.debug("abc88 cutPathAtIntersect", t, e); let r = [], n = t[0], i = !1; return t.forEach((s) => { @@ -94128,17 +94153,17 @@ var k1e = /* @__PURE__ */ x((t, e) => { } else n = s, i || r.push(s); }), r; -}, "cutPathAtIntersect"), S1e = /* @__PURE__ */ x(function(t, e, r, n, i, s, a) { +}, "cutPathAtIntersect"), T1e = /* @__PURE__ */ x(function(t, e, r, n, i, s, a) { let o = r.points; Z.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 && (Z.debug("to cluster abc88", n[r.toCluster]), o = PH(r.points, n[r.toCluster].node), l = !0), r.fromCluster && (Z.debug("from cluster abc88", n[r.fromCluster]), o = PH(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 && (Z.debug("to cluster abc88", n[r.toCluster]), o = NH(r.points, n[r.toCluster].node), l = !0), r.fromCluster && (Z.debug("from cluster abc88", n[r.fromCluster]), o = NH(o.reverse(), n[r.fromCluster].node).reverse(), l = !0); const f = o.filter((O) => !Number.isNaN(O.y)); let d = N1; r.curve && (i === "graph" || i === "flowchart") && (d = r.curve); - const { x: p, y: g } = gae(r), m = Gf().x(p).y(g).curve(d); + const { x: p, y: g } = mae(r), m = Gf().x(p).y(g).curve(d); let v; switch (r.thickness) { case "normal": @@ -94169,9 +94194,9 @@ var k1e = /* @__PURE__ */ x((t, e) => { (ke().flowchart.arrowMarkerAbsolute || ke().state.arrowMarkerAbsolute) && (b = window.location.protocol + "//" + window.location.host + window.location.pathname + window.location.search, b = b.replace(/\(/g, "\\("), b = b.replace(/\)/g, "\\)")), FKt(y, r, b, a, i); let w = {}; return l && (w.updatedPath = o), w.originalPath = r.points, w; -}, "insertEdge"), kr = {}, Ql = {}, T1e = {}, qKt = /* @__PURE__ */ x(() => { - Ql = {}, T1e = {}, kr = {}; -}, "clear"), KS = /* @__PURE__ */ x((t, e) => (Z.trace("In isDescendant", e, " ", t, " = ", Ql[e].includes(t)), !!Ql[e].includes(t)), "isDescendant"), YKt = /* @__PURE__ */ x((t, e) => (Z.info("Descendants of ", e, " is ", Ql[e]), Z.info("Edge is ", t), t.v === e || t.w === e ? !1 : Ql[e] ? Ql[e].includes(t.v) || KS(t.v, e) || KS(t.w, e) || Ql[e].includes(t.w) : (Z.debug("Tilt, ", e, ",not in descendants"), !1)), "edgeInCluster"), C1e = /* @__PURE__ */ x((t, e, r, n) => { +}, "insertEdge"), kr = {}, Ql = {}, C1e = {}, qKt = /* @__PURE__ */ x(() => { + Ql = {}, C1e = {}, kr = {}; +}, "clear"), KS = /* @__PURE__ */ x((t, e) => (Z.trace("In isDescendant", e, " ", t, " = ", Ql[e].includes(t)), !!Ql[e].includes(t)), "isDescendant"), YKt = /* @__PURE__ */ x((t, e) => (Z.info("Descendants of ", e, " is ", Ql[e]), Z.info("Edge is ", t), t.v === e || t.w === e ? !1 : Ql[e] ? Ql[e].includes(t.v) || KS(t.v, e) || KS(t.w, e) || Ql[e].includes(t.w) : (Z.debug("Tilt, ", e, ",not in descendants"), !1)), "edgeInCluster"), E1e = /* @__PURE__ */ x((t, e, r, n) => { Z.warn( "Copying children of ", t, @@ -94184,7 +94209,7 @@ var k1e = /* @__PURE__ */ x((t, e) => { const i = e.children(t) || []; t !== n && i.push(t), Z.warn("Copying (nodes) clusterId", t, "nodes", i), i.forEach((s) => { if (e.children(s).length > 0) - C1e(s, e, r, n); + E1e(s, e, r, n); else { const a = e.node(s); Z.info("cp ", s, " to ", n, " with parent ", t), r.setNode(s, a), n !== e.parent(s) && (Z.warn("Setting parent", s, e.parent(s)), r.setParent(s, e.parent(s))), t !== n && s !== t ? (Z.debug("Setting parent", s, t), r.setParent(s, t)) : (Z.info("In copy ", t, "root", n, "data", e.node(t), n), Z.debug( @@ -94218,11 +94243,11 @@ var k1e = /* @__PURE__ */ x((t, e) => { } Z.debug("Removing node", s), e.removeNode(s); }); -}, "copy"), E1e = /* @__PURE__ */ x((t, e) => { +}, "copy"), _1e = /* @__PURE__ */ x((t, e) => { const r = e.children(t); let n = [...r]; for (const i of r) - T1e[i] = t, n = [...n, ...E1e(i, e)]; + C1e[i] = t, n = [...n, ..._1e(i, e)]; return n; }, "extractDescendants"), Rb = /* @__PURE__ */ x((t, e) => { Z.trace("Searching", t); @@ -94246,7 +94271,7 @@ var k1e = /* @__PURE__ */ x((t, e) => { r, " Replacement id in edges: ", Rb(r, t) - ), Ql[r] = E1e(r, t), kr[r] = { id: Rb(r, t), clusterData: t.node(r) }); + ), Ql[r] = _1e(r, t), kr[r] = { id: Rb(r, t), clusterData: t.node(r) }); }), t.nodes().forEach(function(r) { const n = t.children(r), i = t.edges(); n.length > 0 ? (Z.debug("Cluster identified", r, Ql), i.forEach((s) => { @@ -94299,8 +94324,8 @@ var k1e = /* @__PURE__ */ x((t, e) => { } Z.warn("Fix Replacing with XXX", i, s, r.name), t.setEdge(i, s, n, r.name); } - }), Z.warn("Adjusted Graph", Ai(t)), _1e(t, 0), Z.trace(kr); -}, "adjustClustersAndEdges"), _1e = /* @__PURE__ */ x((t, e) => { + }), Z.warn("Adjusted Graph", Ai(t)), A1e(t, 0), Z.trace(kr); +}, "adjustClustersAndEdges"), A1e = /* @__PURE__ */ x((t, e) => { var i, s; if (Z.warn("extractor - ", e, Ai(t), t.children("D")), e > 10) { Z.error("Bailing out"); @@ -94349,7 +94374,7 @@ var k1e = /* @__PURE__ */ x((t, e) => { }).setDefaultEdgeLabel(function() { return {}; }); - Z.warn("Old graph before copy", Ai(t)), C1e(a, t, u, a), t.setNode(a, { + Z.warn("Old graph before copy", Ai(t)), E1e(a, t, u, a), t.setNode(a, { clusterNode: !0, id: a, clusterData: kr[a].clusterData, @@ -94372,17 +94397,17 @@ var k1e = /* @__PURE__ */ x((t, e) => { r = t.nodes(), Z.warn("New list of nodes", r); for (const a of r) { const o = t.node(a); - Z.warn(" Now next level", a, o), o.clusterNode && _1e(o.graph, e + 1); + Z.warn(" Now next level", a, o), o.clusterNode && A1e(o.graph, e + 1); } -}, "extractor"), A1e = /* @__PURE__ */ x((t, e) => { +}, "extractor"), L1e = /* @__PURE__ */ x((t, e) => { if (e.length === 0) return []; let r = Object.assign(e); return e.forEach((n) => { - const i = t.children(n), s = A1e(t, i); + const i = t.children(n), s = L1e(t, i); r = [...r, ...s]; }), r; -}, "sorter"), GKt = /* @__PURE__ */ x((t) => A1e(t, t.children()), "sortNodesByHierarchy"), XKt = /* @__PURE__ */ x((t, e) => { +}, "sorter"), GKt = /* @__PURE__ */ x((t) => L1e(t, t.children()), "sortNodesByHierarchy"), XKt = /* @__PURE__ */ x((t, e) => { Z.info("Creating subgraph rect for ", e.id, e); const r = ke(), n = t.insert("g").attr("class", "cluster" + (e.class ? " " + e.class : "")).attr("id", e.id), i = n.insert("rect", ":first-child"), s = Pn(r.flowchart.htmlLabels), a = n.insert("g").attr("class", "cluster-label"), o = e.labelType === "markdown" ? Su(a, e.labelText, { style: e.labelStyle, useHtmlLabels: s }, r) : a.node().appendChild(ja(e.labelText, e.labelStyle, void 0, !0)); let l = o.getBBox(); @@ -94437,13 +94462,13 @@ var k1e = /* @__PURE__ */ x((t, e) => { return e.width = a.width, e.height = a.height, e.diff = -e.padding / 2, e.intersect = function(o) { return kw(e, o); }, r; -}, "divider"), KKt = { rect: XKt, roundedWithTitle: ZKt, noteGroup: HKt, divider: jKt }, L1e = {}, JKt = /* @__PURE__ */ x((t, e) => { +}, "divider"), KKt = { rect: XKt, roundedWithTitle: ZKt, noteGroup: HKt, divider: jKt }, R1e = {}, JKt = /* @__PURE__ */ x((t, e) => { Z.trace("Inserting cluster"); const r = e.shape || "rect"; - L1e[e.id] = KKt[r](t, e); + R1e[e.id] = KKt[r](t, e); }, "insertCluster"), eJt = /* @__PURE__ */ x(() => { - L1e = {}; -}, "clear"), R1e = /* @__PURE__ */ x(async (t, e, r, n, i, s) => { + R1e = {}; +}, "clear"), M1e = /* @__PURE__ */ x(async (t, e, r, n, i, s) => { Z.info("Graph in recursive render: XXX", Ai(e), i); const a = e.graph().rankdir; Z.trace("Dir in recursive render - dir:", a); @@ -94465,7 +94490,7 @@ var k1e = /* @__PURE__ */ x((t, e) => { ranksep: v, nodesep: y }); - const b = await R1e( + const b = await M1e( f, m.graph, r, @@ -94479,7 +94504,7 @@ var k1e = /* @__PURE__ */ x((t, e) => { }) ), e.edges().forEach(async function(g) { const m = e.edge(g.v, g.w, g.name); - Z.info("Edge " + g.v + " -> " + g.w + ": " + JSON.stringify(g)), Z.info("Edge " + g.v + " -> " + g.w + ": ", g, " ", JSON.stringify(e.edge(g))), Z.info("Fix", kr, "ids:", g.v, g.w, "Translating: ", kr[g.v], kr[g.w]), await O1e(h, m); + Z.info("Edge " + g.v + " -> " + g.w + ": " + JSON.stringify(g)), Z.info("Edge " + g.v + " -> " + g.w + ": ", g, " ", JSON.stringify(e.edge(g))), Z.info("Fix", kr, "ids:", g.v, g.w, "Translating: ", kr[g.v], kr[g.w]), await k1e(h, m); }), e.edges().forEach(function(g) { Z.info("Edge " + g.v + " -> " + g.w + ": " + JSON.stringify(g)); }), Z.info("Graph before layout:", JSON.stringify(Ai(e))), Z.info("#############################################"), Z.info("### Layout ###"), Z.info("#############################################"), Z.info(e), Y1(e), Z.info("Graph after layout:", JSON.stringify(Ai(e))); @@ -94498,16 +94523,16 @@ var k1e = /* @__PURE__ */ x((t, e) => { }), e.edges().forEach(function(g) { const m = e.edge(g); Z.info("Edge " + g.v + " -> " + g.w + ": " + JSON.stringify(m), m), m.points.forEach((y) => y.y += p / 2); - const v = S1e(u, g, m, kr, r, e, n); - k1e(m, v); + const v = T1e(u, g, m, kr, r, e, n); + S1e(m, v); }), e.nodes().forEach(function(g) { const m = e.node(g); Z.info(g, m.type, m.diff), m.type === "group" && (d = m.diff); }), { elem: o, diff: d }; }, "recursiveRender"), tJt = /* @__PURE__ */ x(async (t, e, r, n, i) => { - w1e(t, r, n, i), $Ft(), QKt(), eJt(), qKt(), Z.warn("Graph at first:", JSON.stringify(Ai(e))), WKt(e), Z.warn("Graph after:", JSON.stringify(Ai(e))); + O1e(t, r, n, i), $Ft(), QKt(), eJt(), qKt(), Z.warn("Graph at first:", JSON.stringify(Ai(e))), WKt(e), Z.warn("Graph after:", JSON.stringify(Ai(e))); const s = ke(); - await R1e(t, e, n, i, void 0, s); + await M1e(t, e, n, i, void 0, s); }, "render"), D$ = /* @__PURE__ */ x((t) => mt.sanitizeText(t, ke()), "sanitizeText"), iM = { dividerMargin: 10, padding: 5, @@ -94525,9 +94550,9 @@ var k1e = /* @__PURE__ */ x((t, e) => { style: "fill: none; stroke: black", padding: (u = (o = ke().flowchart) == null ? void 0 : o.padding) != null ? u : (l = ke().class) == null ? void 0 : l.padding }; - e.setNode(i.id, a), M1e(i.classes, e, r, n, i.id), Z.info("setNode", a); + e.setNode(i.id, a), D1e(i.classes, e, r, n, i.id), Z.info("setNode", a); }); -}, "addNamespaces"), M1e = /* @__PURE__ */ x(function(t, e, r, n, i) { +}, "addNamespaces"), D1e = /* @__PURE__ */ x(function(t, e, r, n, i) { Z.info("keys:", [...t.keys()]), Z.info(t), [...t.values()].filter((s) => s.parent === i).forEach(function(s) { var d, p, g, m; const a = s.cssClasses.join(" "), o = cw(s.styles), l = (d = s.label) != null ? d : s.id, u = 0, h = "class_box", f = { @@ -94594,7 +94619,7 @@ var k1e = /* @__PURE__ */ x((t, e) => { const s = { classes: "relation", pattern: i.relation.lineType == 1 ? "dashed" : "solid", - id: nle(i.id1, i.id2, { + id: ile(i.id1, i.id2, { prefix: "id", counter: n }), @@ -94636,7 +94661,7 @@ var k1e = /* @__PURE__ */ x((t, e) => { }).setDefaultEdgeLabel(function() { return {}; }), u = n.db.getNamespaces(), h = n.db.getClasses(), f = n.db.getRelations(), d = n.db.getNotes(); - Z.info(f), rJt(u, l, e, n), M1e(h, l, e, n), iJt(f, l), nJt(d, l, f.length + 1, h); + Z.info(f), rJt(u, l, e, n), D1e(h, l, e, n), iJt(f, l), nJt(d, l, f.length + 1, h); let p; s === "sandbox" && (p = ht("#i" + e)); const g = ht(s === "sandbox" ? p.nodes()[0].contentDocument.body : "body"), m = g.select(`[id="${e}"]`), v = g.select("#" + e + " g"); @@ -94682,10 +94707,10 @@ var oJt = { setConf: sJt, draw: aJt }, lJt = { - parser: g1e, + parser: m1e, db: ZS, renderer: oJt, - styles: b1e, + styles: x1e, init: /* @__PURE__ */ x((t) => { t.class || (t.class = {}), t.class.arrowMarkerAbsolute = t.arrowMarkerAbsolute, ZS.clear(); }, "init") @@ -95220,7 +95245,7 @@ Expecting ` + ye.join(", ") + ", got '" + (this.terminals_[Pe] || Pe) + "'" : ie return x(N, "Parser"), N.prototype = P, P.Parser = N, new N(); }(); aM.parser = aM; -var D1e = aM, uJt = "LR", P1e = "TB", JS = "state", P$ = "relation", hJt = "classDef", fJt = "style", dJt = "applyClass", $w = "default", N1e = "divider", I1e = "fill:none", $1e = "fill: #333", B1e = "c", F1e = "text", z1e = "normal", n7 = "rect", i7 = "rectWithTitle", pJt = "stateStart", gJt = "stateEnd", NH = "divider", IH = "roundedWithTitle", mJt = "note", vJt = "noteGroup", Bw = "statediagram", yJt = "state", bJt = `${Bw}-${yJt}`, Q1e = "transition", xJt = "note", wJt = "note-edge", OJt = `${Q1e} ${wJt}`, kJt = `${Bw}-${xJt}`, SJt = "cluster", TJt = `${Bw}-${SJt}`, CJt = "cluster-alt", EJt = `${Bw}-${CJt}`, U1e = "parent", V1e = "note", _Jt = "state", N$ = "----", AJt = `${N$}${V1e}`, $H = `${N$}${U1e}`, q1e = /* @__PURE__ */ x((t, e = P1e) => { +var P1e = aM, uJt = "LR", N1e = "TB", JS = "state", P$ = "relation", hJt = "classDef", fJt = "style", dJt = "applyClass", $w = "default", I1e = "divider", $1e = "fill:none", B1e = "fill: #333", F1e = "c", z1e = "text", Q1e = "normal", n7 = "rect", i7 = "rectWithTitle", pJt = "stateStart", gJt = "stateEnd", IH = "divider", $H = "roundedWithTitle", mJt = "note", vJt = "noteGroup", Bw = "statediagram", yJt = "state", bJt = `${Bw}-${yJt}`, U1e = "transition", xJt = "note", wJt = "note-edge", OJt = `${U1e} ${wJt}`, kJt = `${Bw}-${xJt}`, SJt = "cluster", TJt = `${Bw}-${SJt}`, CJt = "cluster-alt", EJt = `${Bw}-${CJt}`, V1e = "parent", q1e = "note", _Jt = "state", N$ = "----", AJt = `${N$}${q1e}`, BH = `${N$}${V1e}`, Y1e = /* @__PURE__ */ x((t, e = N1e) => { if (!t.doc) return e; let r = e; @@ -95234,19 +95259,19 @@ var D1e = aM, uJt = "LR", P1e = "TB", JS = "state", P$ = "relation", hJt = "clas Z.info("REF0:"), Z.info("Drawing state diagram (v2)", e); const { securityLevel: i, state: s, layout: a } = ke(); n.db.extract(n.db.getRootDocV2()); - const o = n.db.getData(), l = n0e(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 Kle(o, l); + const o = n.db.getData(), l = i0e(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 Jle(o, l); const u = 8; mr.insertTitle( l, "statediagramTitleText", (h = s == null ? void 0 : s.titleTopMargin) != null ? h : 25, n.db.getDiagramTitle() - ), i0e(l, u, Bw, (f = s == null ? void 0 : s.useMaxWidth) != null ? f : !0); + ), s0e(l, u, Bw, (f = s == null ? void 0 : s.useMaxWidth) != null ? f : !0); }, "draw"), MJt = { getClasses: LJt, draw: RJt, - getDir: q1e + getDir: Y1e }, jk = /* @__PURE__ */ new Map(), of = 0; function Kk(t = "", e = 0, r = "", n = N$) { const i = r !== null && r.length > 0 ? `${n}${r}` : ""; @@ -95289,14 +95314,14 @@ var DJt = /* @__PURE__ */ x((t, e, r, n, i, s, a, o) => { end: l.state2.id, arrowhead: "normal", arrowTypeEnd: "arrow_barb", - style: I1e, + style: $1e, labelStyle: "", label: mt.sanitizeText(l.description, ke()), - arrowheadStyle: $1e, - labelpos: B1e, - labelType: F1e, - thickness: z1e, - classes: Q1e, + arrowheadStyle: B1e, + labelpos: F1e, + labelType: z1e, + thickness: Q1e, + classes: U1e, look: a }; i.push(u), of++; @@ -95304,7 +95329,7 @@ var DJt = /* @__PURE__ */ x((t, e, r, n, i, s, a, o) => { break; } }); -}, "setupDoc"), BH = /* @__PURE__ */ x((t, e = P1e) => { +}, "setupDoc"), FH = /* @__PURE__ */ x((t, e = N1e) => { let r = e; if (t.doc) for (const n of t.doc) @@ -95324,19 +95349,19 @@ function ky(t, e, r) { n ? Object.assign(n, e) : t.push(e); } x(ky, "insertOrUpdateNode"); -function Y1e(t) { +function W1e(t) { var e, r; return (r = (e = t == null ? void 0 : t.classes) == null ? void 0 : e.join(" ")) != null ? r : ""; } -x(Y1e, "getClassesFromDbInfo"); -function W1e(t) { +x(W1e, "getClassesFromDbInfo"); +function G1e(t) { var e; return (e = t == null ? void 0 : t.styles) != null ? e : []; } -x(W1e, "getStylesFromDbInfo"); +x(G1e, "getStylesFromDbInfo"); var Sy = /* @__PURE__ */ x((t, e, r, n, i, s, a, o) => { var d, p; - const l = e.id, u = r.get(l), h = Y1e(u), f = W1e(u); + const l = e.id, u = r.get(l), h = W1e(u), f = G1e(u); if (Z.info("dataFetcher parsedItem", e, u, f), l !== "root") { let g = n7; e.start === !0 ? g = pJt : e.start === !1 && (g = gJt), e.type !== $w && (g = e.type), jk.get(l) || jk.set(l, { @@ -95347,7 +95372,7 @@ var Sy = /* @__PURE__ */ x((t, e, r, n, i, s, a, o) => { cssStyles: f }); const m = jk.get(l); - e.description && (Array.isArray(m.description) ? (m.shape = i7, m.description.push(e.description)) : ((d = m.description) == null ? void 0 : d.length) > 0 ? (m.shape = i7, m.description === l ? m.description = [e.description] : m.description = [m.description, e.description]) : (m.shape = n7, m.description = e.description), m.description = mt.sanitizeTextOrArray(m.description, ke())), ((p = m.description) == null ? void 0 : p.length) === 1 && m.shape === i7 && (m.type === "group" ? m.shape = IH : m.shape = n7), !m.type && e.doc && (Z.info("Setting cluster for XCX", l, BH(e)), m.type = "group", m.isGroup = !0, m.dir = BH(e), m.shape = e.type === N1e ? NH : IH, m.cssClasses = `${m.cssClasses} ${TJt} ${s ? EJt : ""}`); + e.description && (Array.isArray(m.description) ? (m.shape = i7, m.description.push(e.description)) : ((d = m.description) == null ? void 0 : d.length) > 0 ? (m.shape = i7, m.description === l ? m.description = [e.description] : m.description = [m.description, e.description]) : (m.shape = n7, m.description = e.description), m.description = mt.sanitizeTextOrArray(m.description, ke())), ((p = m.description) == null ? void 0 : p.length) === 1 && m.shape === i7 && (m.type === "group" ? m.shape = $H : m.shape = n7), !m.type && e.doc && (Z.info("Setting cluster for XCX", l, FH(e)), m.type = "group", m.isGroup = !0, m.dir = FH(e), m.shape = e.type === I1e ? IH : $H, m.cssClasses = `${m.cssClasses} ${TJt} ${s ? EJt : ""}`); const v = { labelStyle: "", shape: m.shape, @@ -95365,7 +95390,7 @@ var Sy = /* @__PURE__ */ x((t, e, r, n, i, s, a, o) => { ry: 10, look: a }; - if (v.shape === NH && (v.label = ""), t && t.id !== "root" && (Z.trace("Setting node ", l, " to be child of its parent ", t.id), v.parentId = t.id), v.centerLabel = !0, e.note) { + if (v.shape === IH && (v.label = ""), t && t.id !== "root" && (Z.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: mJt, @@ -95374,20 +95399,20 @@ var Sy = /* @__PURE__ */ x((t, e, r, n, i, s, a, o) => { cssStyles: [], cssCompilesStyles: [], id: l + AJt + "-" + of, - domId: Kk(l, of, V1e), + domId: Kk(l, of, q1e), type: m.type, isGroup: m.type === "group", padding: ke().flowchart.padding, look: a, position: e.note.position - }, b = l + $H, w = { + }, b = l + BH, w = { labelStyle: "", shape: vJt, label: e.note.text, cssClasses: m.cssClasses, cssStyles: [], - id: l + $H, - domId: Kk(l, of, U1e), + id: l + BH, + domId: Kk(l, of, V1e), type: "group", isGroup: !0, padding: 16, @@ -95402,13 +95427,13 @@ var Sy = /* @__PURE__ */ x((t, e, r, n, i, s, a, o) => { end: S, arrowhead: "none", arrowTypeEnd: "", - style: I1e, + style: $1e, labelStyle: "", classes: OJt, - arrowheadStyle: $1e, - labelpos: B1e, - labelType: F1e, - thickness: z1e, + arrowheadStyle: B1e, + labelpos: F1e, + labelType: z1e, + thickness: Q1e, look: a }); } else @@ -95417,18 +95442,18 @@ var Sy = /* @__PURE__ */ x((t, e, r, n, i, s, a, o) => { e.doc && (Z.trace("Adding nodes children "), DJt(e, e.doc, r, n, i, !s, a, o)); }, "dataFetcher"), PJt = /* @__PURE__ */ x(() => { jk.clear(), of = 0; -}, "reset"), I$ = "[*]", G1e = "start", X1e = I$, H1e = "end", FH = "color", zH = "fill", NJt = "bgFill", IJt = ","; +}, "reset"), I$ = "[*]", X1e = "start", H1e = I$, Z1e = "end", zH = "color", QH = "fill", NJt = "bgFill", IJt = ","; function $$() { return /* @__PURE__ */ new Map(); } x($$, "newClassesList"); -var eT = [], B$ = [], Z1e = uJt, tT = [], Jg = $$(), j1e = /* @__PURE__ */ x(() => ({ +var eT = [], B$ = [], j1e = uJt, tT = [], Jg = $$(), K1e = /* @__PURE__ */ x(() => ({ relations: [], states: /* @__PURE__ */ new Map(), documents: {} }), "newDoc"), rT = { - root: j1e() -}, qa = rT.root, Mb = 0, QH = 0, $Jt = { + root: K1e() +}, qa = rT.root, Mb = 0, UH = 0, $Jt = { LINE: 0, DOTTED_LINE: 1 }, BJt = { @@ -95445,7 +95470,7 @@ var eT = [], B$ = [], Z1e = uJt, tT = [], Jg = $$(), j1e = /* @__PURE__ */ x(() const n = []; let i = [], s; for (s = 0; s < e.doc.length; s++) - if (e.doc[s].type === N1e) { + if (e.doc[s].type === I1e) { const a = A4(e.doc[s]); a.doc = A4(i), n.push(a), i = []; } else @@ -95453,7 +95478,7 @@ var eT = [], B$ = [], Z1e = uJt, tT = [], Jg = $$(), j1e = /* @__PURE__ */ x(() if (n.length > 0 && i.length > 0) { const a = { stmt: JS, - id: Joe(), + id: ele(), type: "divider", doc: A4(i) }; @@ -95463,7 +95488,7 @@ var eT = [], B$ = [], Z1e = uJt, tT = [], Jg = $$(), j1e = /* @__PURE__ */ x(() } }, "docTranslator"), F$ = /* @__PURE__ */ x(() => (Jk({ id: "root" }, { id: "root", doc: tT }, !0), { id: "root", doc: tT }), "getRootDocV2"), QJt = /* @__PURE__ */ x((t) => { let e; - t.doc ? e = t.doc : e = t, Z.info(e), K1e(!0), Z.info("Extract initial document:", e), e.forEach((s) => { + t.doc ? e = t.doc : e = t, Z.info(e), J1e(!0), Z.info("Extract initial document:", e), e.forEach((s) => { switch (Z.warn("Statement", s.stmt), s.stmt) { case JS: ad( @@ -95478,10 +95503,10 @@ var eT = [], B$ = [], Z1e = uJt, tT = [], Jg = $$(), j1e = /* @__PURE__ */ x(() ); break; case P$: - nve(s.state1, s.state2, s.description); + ive(s.state1, s.state2, s.description); break; case hJt: - ive(s.id.trim(), s.classes); + sve(s.id.trim(), s.classes); break; case fJt: { @@ -95504,7 +95529,7 @@ var eT = [], B$ = [], Z1e = uJt, tT = [], Jg = $$(), j1e = /* @__PURE__ */ x(() break; } }); - const r = J1e(), i = ke().look; + const r = eve(), i = ke().look; PJt(), Sy(void 0, F$(), r, eT, B$, !0, i, Jg), eT.forEach((s) => { if (Array.isArray(s.label)) { if (s.description = s.label.slice(1), s.isGroup && s.description.length > 0) @@ -95530,13 +95555,13 @@ var eT = [], B$ = [], Z1e = uJt, tT = [], Jg = $$(), j1e = /* @__PURE__ */ x(() u.note = i, u.note.text = mt.sanitizeText(u.note.text, ke()); } s && (Z.info("Setting state classes", l, s), (typeof s == "string" ? [s] : s).forEach((h) => z$(l, h.trim()))), a && (Z.info("Setting state styles", l, a), (typeof a == "string" ? [a] : a).forEach((h) => GJt(l, h.trim()))), o && (Z.info("Setting state styles", l, a), (typeof o == "string" ? [o] : o).forEach((h) => XJt(l, h.trim()))); -}, "addState"), K1e = /* @__PURE__ */ x(function(t) { +}, "addState"), J1e = /* @__PURE__ */ x(function(t) { eT = [], B$ = [], rT = { - root: j1e() + root: K1e() }, qa = rT.root, Mb = 0, Jg = $$(), t || us(); }, "clear"), lp = /* @__PURE__ */ x(function(t) { return qa.states.get(t); -}, "getState"), J1e = /* @__PURE__ */ x(function() { +}, "getState"), eve = /* @__PURE__ */ x(function() { return qa.states; }, "getStates"), UJt = /* @__PURE__ */ x(function() { Z.info("Documents = ", rT); @@ -95545,23 +95570,23 @@ var eT = [], B$ = [], Z1e = uJt, tT = [], Jg = $$(), j1e = /* @__PURE__ */ x(() }, "getRelations"); function nT(t = "") { let e = t; - return t === I$ && (Mb++, e = `${G1e}${Mb}`), e; + return t === I$ && (Mb++, e = `${X1e}${Mb}`), e; } x(nT, "startIdIfNeeded"); function iT(t = "", e = $w) { - return t === I$ ? G1e : e; + return t === I$ ? X1e : e; } x(iT, "startTypeIfNeeded"); -function eve(t = "") { +function tve(t = "") { let e = t; - return t === X1e && (Mb++, e = `${H1e}${Mb}`), e; + return t === H1e && (Mb++, e = `${Z1e}${Mb}`), e; } -x(eve, "endIdIfNeeded"); -function tve(t = "", e = $w) { - return t === X1e ? H1e : e; +x(tve, "endIdIfNeeded"); +function rve(t = "", e = $w) { + return t === H1e ? Z1e : e; } -x(tve, "endTypeIfNeeded"); -function rve(t, e, r) { +x(rve, "endTypeIfNeeded"); +function nve(t, e, r) { let n = nT(t.id.trim()), i = iT(t.id.trim(), t.type), s = nT(e.id.trim()), a = iT(e.id.trim(), e.type); ad( n, @@ -95587,12 +95612,12 @@ function rve(t, e, r) { relationTitle: mt.sanitizeText(r, ke()) }); } -x(rve, "addRelationObjs"); -var nve = /* @__PURE__ */ x(function(t, e, r) { +x(nve, "addRelationObjs"); +var ive = /* @__PURE__ */ x(function(t, e, r) { if (typeof t == "object") - rve(t, e, r); + nve(t, e, r); else { - const n = nT(t.trim()), i = iT(t), s = eve(e.trim()), a = tve(e); + const n = nT(t.trim()), i = iT(t), s = tve(e.trim()), a = rve(e); ad(n, i), ad(s, a), qa.relations.push({ id1: n, id2: s, @@ -95604,13 +95629,13 @@ var nve = /* @__PURE__ */ x(function(t, e, r) { r.descriptions.push(mt.sanitizeText(n, ke())); }, "addDescription"), qJt = /* @__PURE__ */ x(function(t) { return t.substring(0, 1) === ":" ? t.substr(2).trim() : t.trim(); -}, "cleanupLabel"), YJt = /* @__PURE__ */ x(() => (QH++, "divider-id-" + QH), "getDividerId"), ive = /* @__PURE__ */ x(function(t, e = "") { +}, "cleanupLabel"), YJt = /* @__PURE__ */ x(() => (UH++, "divider-id-" + UH), "getDividerId"), sve = /* @__PURE__ */ x(function(t, e = "") { Jg.has(t) || Jg.set(t, { id: t, styles: [], textStyles: [] }); const r = Jg.get(t); e != null && e.split(IJt).forEach((n) => { const i = n.replace(/([^;]*);/, "$1").trim(); - if (RegExp(FH).exec(n)) { - const a = i.replace(zH, NJt).replace(FH, zH); + if (RegExp(zH).exec(n)) { + const a = i.replace(QH, NJt).replace(zH, QH); r.textStyles.push(a); } r.styles.push(i); @@ -95632,22 +95657,22 @@ var nve = /* @__PURE__ */ x(function(t, e, r) { }, "setStyle"), XJt = /* @__PURE__ */ x(function(t, e) { const r = lp(t); r !== void 0 && r.textStyles.push(e); -}, "setTextStyle"), HJt = /* @__PURE__ */ x(() => Z1e, "getDirection"), ZJt = /* @__PURE__ */ x((t) => { - Z1e = t; +}, "setTextStyle"), HJt = /* @__PURE__ */ x(() => j1e, "getDirection"), ZJt = /* @__PURE__ */ x((t) => { + j1e = t; }, "setDirection"), jJt = /* @__PURE__ */ x((t) => t && t[0] === ":" ? t.substr(1).trim() : t.trim(), "trimColon"), KJt = /* @__PURE__ */ x(() => { const t = ke(); - return { nodes: eT, edges: B$, other: {}, config: t, direction: q1e(F$()) }; + return { nodes: eT, edges: B$, other: {}, config: t, direction: Y1e(F$()) }; }, "getData"), qu = { getConfig: /* @__PURE__ */ x(() => ke().state, "getConfig"), getData: KJt, addState: ad, - clear: K1e, + clear: J1e, getState: lp, - getStates: J1e, + getStates: eve, getRelations: VJt, getClasses: WJt, getDirection: HJt, - addRelation: nve, + addRelation: ive, getDividerId: YJt, setDirection: ZJt, cleanupLabel: qJt, @@ -95663,7 +95688,7 @@ var nve = /* @__PURE__ */ x(function(t, e, r) { setAccTitle: hs, getAccDescription: Is, setAccDescription: Ns, - addStyleClass: ive, + addStyleClass: sve, setCssClass: z$, addDescription: oM, setDiagramTitle: Na, @@ -95882,12 +95907,12 @@ g.stateGroup line { font-size: 18px; fill: ${t.textColor}; } -`, "getStyles"), sve = JJt, Q$ = {}, eer = /* @__PURE__ */ x((t, e) => { +`, "getStyles"), ave = JJt, Q$ = {}, eer = /* @__PURE__ */ x((t, e) => { Q$[t] = e; -}, "set"), ter = /* @__PURE__ */ x((t) => Q$[t], "get"), ave = /* @__PURE__ */ x(() => Object.keys(Q$), "keys"), rer = /* @__PURE__ */ x(() => ave().length, "size"), ner = { +}, "set"), ter = /* @__PURE__ */ x((t) => Q$[t], "get"), ove = /* @__PURE__ */ x(() => Object.keys(Q$), "keys"), rer = /* @__PURE__ */ x(() => ove().length, "size"), ner = { get: ter, set: eer, - keys: ave, + keys: ove, size: rer }, ier = /* @__PURE__ */ x((t) => t.append("circle").attr("class", "start-state").attr("r", ke().state.sizeUnit).attr("cx", ke().state.padding + ke().state.sizeUnit).attr("cy", ke().state.padding + ke().state.sizeUnit), "drawStartState"), ser = /* @__PURE__ */ x((t) => t.append("line").style("stroke", "grey").style("stroke-dasharray", "3").attr("x1", ke().state.textHeight).attr("class", "divider").attr("x2", ke().state.textHeight * 2).attr("y1", 0).attr("y2", 0), "drawDivider"), aer = /* @__PURE__ */ x((t, e) => { const r = t.append("text").attr("x", 2 * ke().state.padding).attr("y", ke().state.textHeight + 2 * ke().state.padding).attr("font-size", ke().state.fontSize).attr("class", "state-title").text(e.id), n = r.node().getBBox(); @@ -95961,7 +95986,7 @@ g.stateGroup line { e.attr("class", "state-note"); const r = e.append("rect").attr("x", 0).attr("y", ke().state.padding), n = e.append("g"), { textWidth: i, textHeight: s } = her(t, 0, 0, n); return r.attr("height", s + 2 * ke().state.noteMargin), r.attr("width", i + ke().state.noteMargin * 2), r; -}, "drawNote"), UH = /* @__PURE__ */ x(function(t, e) { +}, "drawNote"), VH = /* @__PURE__ */ x(function(t, e) { const r = e.id, n = { id: r, label: e.id, @@ -95971,7 +95996,7 @@ g.stateGroup line { e.type === "start" && ier(i), e.type === "end" && cer(i), (e.type === "fork" || e.type === "join") && uer(i, e), e.type === "note" && fer(e.note.text, i), e.type === "divider" && ser(i), e.type === "default" && e.descriptions.length === 0 && aer(i, e), e.type === "default" && e.descriptions.length > 0 && oer(i, e); const s = i.node().getBBox(); return n.width = s.width + 2 * ke().state.padding, n.height = s.height + 2 * ke().state.padding, ner.set(r, n), n; -}, "drawState"), VH = 0, der = /* @__PURE__ */ x(function(t, e, r) { +}, "drawState"), qH = 0, der = /* @__PURE__ */ x(function(t, e, r) { const n = /* @__PURE__ */ x(function(l) { switch (l) { case qu.relationType.AGGREGATION: @@ -95989,7 +96014,7 @@ g.stateGroup line { return l.x; }).y(function(l) { return l.y; - }).curve(N1), a = t.append("path").attr("d", s(i)).attr("id", "edge" + VH).attr("class", "transition"); + }).curve(N1), a = t.append("path").attr("d", s(i)).attr("id", "edge" + qH).attr("class", "transition"); let o = ""; if (ke().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", @@ -96011,7 +96036,7 @@ g.stateGroup line { const y = l.node().getBBox(); l.insert("rect", ":first-child").attr("class", "box").attr("x", u - g / 2 - ke().state.padding / 2).attr("y", h - v / 2 - ke().state.padding / 2 - 3.5).attr("width", g + ke().state.padding).attr("height", v + ke().state.padding), Z.info(y); } - VH++; + qH++; }, "drawEdge"), So, s7 = {}, per = /* @__PURE__ */ x(function() { }, "setConf"), ger = /* @__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"); @@ -96025,13 +96050,13 @@ g.stateGroup line { const l = a.select(`[id='${e}']`); ger(l); const u = n.db.getRootDoc(); - ove(u, l, void 0, !1, a, o, n); + lve(u, l, void 0, !1, a, o, n); const h = So.padding, f = l.node().getBBox(), d = f.width + h * 2, p = f.height + h * 2, g = d * 1.75; Ds(l, p, g, So.useMaxWidth), l.attr( "viewBox", `${f.x - So.padding} ${f.y - So.padding} ` + d + " " + p ); -}, "draw"), ver = /* @__PURE__ */ x((t) => t ? t.length * So.fontSizeFactor : 1, "getLabelWidth"), ove = /* @__PURE__ */ x((t, e, r, n, i, s, a) => { +}, "draw"), ver = /* @__PURE__ */ x((t) => t ? t.length * So.fontSizeFactor : 1, "getLabelWidth"), lve = /* @__PURE__ */ x((t, e, r, n, i, s, a) => { const o = new Ji({ compound: !0, multigraph: !0 @@ -96068,21 +96093,21 @@ g.stateGroup line { let w; if (b.doc) { let O = e.append("g").attr("id", b.id).attr("class", "stateGroup"); - w = ove(b.doc, O, b.id, !n, i, s, a); + w = lve(b.doc, O, b.id, !n, i, s, a); { O = ler(O, b, n); let S = O.node().getBBox(); w.width = S.width, w.height = S.height + So.padding / 2, s7[b.id] = { y: So.compositTitleSize }; } } else - w = UH(e, b, o); + w = VH(e, b, o); if (b.note) { const O = { descriptions: [], id: b.id + "-note", note: b.note, type: "note" - }, S = UH(e, O, o); + }, S = VH(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); @@ -96128,10 +96153,10 @@ g.stateGroup line { setConf: per, draw: mer }, ber = { - parser: D1e, + parser: P1e, db: qu, renderer: yer, - styles: sve, + styles: ave, init: /* @__PURE__ */ x((t) => { t.state || (t.state = {}), t.state.arrowMarkerAbsolute = t.arrowMarkerAbsolute, qu.clear(); }, "init") @@ -96141,10 +96166,10 @@ const xer = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty( diagram: ber }, Symbol.toStringTag, { value: "Module" })); var wer = { - parser: D1e, + parser: P1e, db: qu, renderer: MJt, - styles: sve, + styles: ave, init: /* @__PURE__ */ x((t) => { t.state || (t.state = {}), t.state.arrowMarkerAbsolute = t.arrowMarkerAbsolute, qu.clear(); }, "init") @@ -96496,11 +96521,11 @@ var ker = lM, c1 = "", U$ = [], Db = [], Pb = [], Ser = /* @__PURE__ */ x(functi }, "addSection"), Cer = /* @__PURE__ */ x(function() { return U$; }, "getSections"), Eer = /* @__PURE__ */ x(function() { - let t = qH(); + let t = YH(); const e = 100; let r = 0; for (; !t && r < e; ) - t = qH(), r++; + t = YH(), r++; return Db.push(...Pb), Db; }, "getTasks"), _er = /* @__PURE__ */ x(function() { const t = []; @@ -96528,7 +96553,7 @@ var ker = lM, c1 = "", U$ = [], Db = [], Pb = [], Ser = /* @__PURE__ */ x(functi classes: [] }; Db.push(e); -}, "addTaskOrg"), qH = /* @__PURE__ */ x(function() { +}, "addTaskOrg"), YH = /* @__PURE__ */ x(function() { const t = /* @__PURE__ */ x(function(r) { return Pb[r].processed; }, "compileTask"); @@ -96538,7 +96563,7 @@ var ker = lM, c1 = "", U$ = [], Db = [], Pb = [], Ser = /* @__PURE__ */ x(functi return e; }, "compileTasks"), Rer = /* @__PURE__ */ x(function() { return _er(); -}, "getActors"), YH = { +}, "getActors"), WH = { getConfig: /* @__PURE__ */ x(() => ke().journey, "getConfig"), clear: Ser, setDiagramTitle: Na, @@ -96705,10 +96730,10 @@ var ker = lM, c1 = "", U$ = [], Db = [], Pb = [], Ser = /* @__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"), lve = /* @__PURE__ */ x(function(t, e) { +}, "drawFace"), cve = /* @__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"), cve = /* @__PURE__ */ x(function(t, e) { +}, "drawCircle"), uve = /* @__PURE__ */ x(function(t, e) { return sBt(t, e); }, "drawText"), Ner = /* @__PURE__ */ x(function(t, e) { function r(i, s, a, o, l) { @@ -96716,10 +96741,10 @@ var ker = lM, c1 = "", U$ = [], Db = [], Pb = [], Ser = /* @__PURE__ */ x(functi } 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, cve(t, e); + 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, uve(t, e); }, "drawLabel"), Ier = /* @__PURE__ */ x(function(t, e, r) { const n = t.append("g"), i = Np(); - 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, V$(n, i), uve(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, V$(n, i), hve(r)( e.text, n, i.x, @@ -96730,11 +96755,11 @@ var ker = lM, c1 = "", U$ = [], Db = [], Pb = [], Ser = /* @__PURE__ */ x(functi r, e.colour ); -}, "drawSection"), WH = -1, $er = /* @__PURE__ */ x(function(t, e, r) { +}, "drawSection"), GH = -1, $er = /* @__PURE__ */ x(function(t, e, r) { const n = e.x + r.width / 2, i = t.append("g"); - WH++; + GH++; const s = 300 + 5 * 30; - i.append("line").attr("id", "task" + WH).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"), Per(i, { + i.append("line").attr("id", "task" + GH).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"), Per(i, { cx: n, cy: 300 + (5 - e.score) * 30, score: e.score @@ -96752,8 +96777,8 @@ var ker = lM, c1 = "", U$ = [], Db = [], Pb = [], Ser = /* @__PURE__ */ x(functi title: l, pos: e.actors[l].position }; - lve(i, h), o += 10; - }), uve(r)( + cve(i, h), o += 10; + }), hve(r)( e.task, i, a.x, @@ -96765,8 +96790,8 @@ var ker = lM, c1 = "", U$ = [], Db = [], Pb = [], Ser = /* @__PURE__ */ x(functi e.colour ); }, "drawTask"), Ber = /* @__PURE__ */ x(function(t, e) { - Xde(t, e); -}, "drawBackgroundRect"), uve = /* @__PURE__ */ function() { + Hde(t, e); +}, "drawBackgroundRect"), hve = /* @__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); @@ -96796,9 +96821,9 @@ var ker = lM, c1 = "", U$ = [], Db = [], Pb = [], Ser = /* @__PURE__ */ x(functi 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"), Nb = { drawRect: V$, - drawCircle: lve, + drawCircle: cve, drawSection: Ier, - drawText: cve, + drawText: uve, drawLabel: Ner, drawTask: $er, drawBackgroundRect: Ber, @@ -96808,7 +96833,7 @@ var ker = lM, c1 = "", U$ = [], Db = [], Pb = [], Ser = /* @__PURE__ */ x(functi IE[r] = t[r]; }); }, "setConf"), Zu = {}; -function hve(t) { +function fve(t) { const e = ke().journey; let r = 60; Object.keys(Zu).forEach((n) => { @@ -96831,7 +96856,7 @@ function hve(t) { Nb.drawText(t, a), r += 20; }); } -x(hve, "drawActorLegend"); +x(fve, "drawActorLegend"); var IE = ke().journey, t0 = IE.leftMargin, Qer = /* @__PURE__ */ x(function(t, e, r, n) { const i = ke().journey, s = ke().securityLevel; let a; @@ -96849,7 +96874,7 @@ var IE = ke().journey, t0 = IE.leftMargin, Qer = /* @__PURE__ */ x(function(t, e color: i.actorColours[d % i.actorColours.length], position: d }, d++; - }), hve(l), Wo.insert(0, 0, t0, Object.keys(Zu).length * 50), Uer(l, u, 0); + }), fve(l), Wo.insert(0, 0, t0, Object.keys(Zu).length * 50), Uer(l, u, 0); const p = Wo.getBounds(); h && l.append("text").text(h).attr("x", t0).attr("font-size", "4ex").attr("font-weight", "bold").attr("y", 25); const g = p.stopy - p.starty + 2 * i.diagramMarginY, m = t0 + p.stopx + 2 * i.diagramMarginX; @@ -96901,14 +96926,14 @@ var IE = ke().journey, t0 = IE.leftMargin, Qer = /* @__PURE__ */ x(function(t, e getBounds: /* @__PURE__ */ x(function() { return this.data; }, "getBounds") -}, a7 = IE.sectionFills, GH = IE.sectionColours, Uer = /* @__PURE__ */ x(function(t, e, r) { +}, a7 = IE.sectionFills, XH = IE.sectionColours, Uer = /* @__PURE__ */ x(function(t, e, r) { const n = ke().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 = a7[o % a7.length], h = o % a7.length, u = GH[o % GH.length]; + l = a7[o % a7.length], h = o % a7.length, u = XH[o % XH.length]; let g = 0; const m = d.section; for (let y = f; y < e.length && e[y].section == m; y++) @@ -96927,16 +96952,16 @@ var IE = ke().journey, t0 = IE.leftMargin, Qer = /* @__PURE__ */ x(function(t, e const p = d.people.reduce((g, m) => (Zu[m] && (g[m] = Zu[m]), g), {}); d.x = f * n.taskMargin + f * n.width + t0, d.y = a, d.width = n.diagramMarginX, d.height = n.diagramMarginY, d.colour = u, d.fill = l, d.num = h, d.actors = p, Nb.drawTask(t, d, n), Wo.insert(d.x, d.y, d.x + d.width + n.taskMargin, 300 + 5 * 30); } -}, "drawTasks"), XH = { +}, "drawTasks"), HH = { setConf: zer, draw: Qer }, Ver = { parser: ker, - db: YH, - renderer: XH, + db: WH, + renderer: HH, styles: Der, init: /* @__PURE__ */ x((t) => { - XH.setConf(t.journey), YH.clear(); + HH.setConf(t.journey), WH.clear(); }, "init") }; const qer = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ @@ -97280,34 +97305,34 @@ Expecting ` + X.join(", ") + ", got '" + (this.terminals_[N] || N) + "'" : q = " return x(f, "Parser"), f.prototype = u, u.Parser = f, new f(); }(); cM.parser = cM; -var Yer = cM, fve = {}; -Xse(fve, { - addEvent: () => xve, - addSection: () => mve, - addTask: () => bve, - addTaskOrg: () => wve, - clear: () => gve, +var Yer = cM, dve = {}; +Hse(dve, { + addEvent: () => wve, + addSection: () => vve, + addTask: () => xve, + addTaskOrg: () => Ove, + clear: () => mve, default: () => Wer, - getCommonDb: () => pve, - getSections: () => vve, - getTasks: () => yve + getCommonDb: () => gve, + getSections: () => yve, + getTasks: () => bve }); -var u1 = "", dve = 0, q$ = [], sT = [], h1 = [], pve = /* @__PURE__ */ x(() => IP, "getCommonDb"), gve = /* @__PURE__ */ x(function() { +var u1 = "", pve = 0, q$ = [], sT = [], h1 = [], gve = /* @__PURE__ */ x(() => IP, "getCommonDb"), mve = /* @__PURE__ */ x(function() { q$.length = 0, sT.length = 0, u1 = "", h1.length = 0, us(); -}, "clear"), mve = /* @__PURE__ */ x(function(t) { +}, "clear"), vve = /* @__PURE__ */ x(function(t) { u1 = t, q$.push(t); -}, "addSection"), vve = /* @__PURE__ */ x(function() { +}, "addSection"), yve = /* @__PURE__ */ x(function() { return q$; -}, "getSections"), yve = /* @__PURE__ */ x(function() { - let t = HH(); +}, "getSections"), bve = /* @__PURE__ */ x(function() { + let t = ZH(); const e = 100; let r = 0; for (; !t && r < e; ) - t = HH(), r++; + t = ZH(), r++; return sT.push(...h1), sT; -}, "getTasks"), bve = /* @__PURE__ */ x(function(t, e, r) { +}, "getTasks"), xve = /* @__PURE__ */ x(function(t, e, r) { const n = { - id: dve++, + id: pve++, section: u1, type: u1, task: t, @@ -97315,9 +97340,9 @@ var u1 = "", dve = 0, q$ = [], sT = [], h1 = [], pve = /* @__PURE__ */ x(() => I events: r ? [r] : [] }; h1.push(n); -}, "addTask"), xve = /* @__PURE__ */ x(function(t) { - h1.find((r) => r.id === dve - 1).events.push(t); -}, "addEvent"), wve = /* @__PURE__ */ x(function(t) { +}, "addTask"), wve = /* @__PURE__ */ x(function(t) { + h1.find((r) => r.id === pve - 1).events.push(t); +}, "addEvent"), Ove = /* @__PURE__ */ x(function(t) { const e = { section: u1, type: u1, @@ -97326,7 +97351,7 @@ var u1 = "", dve = 0, q$ = [], sT = [], h1 = [], pve = /* @__PURE__ */ x(() => I classes: [] }; sT.push(e); -}, "addTaskOrg"), HH = /* @__PURE__ */ x(function() { +}, "addTaskOrg"), ZH = /* @__PURE__ */ x(function() { const t = /* @__PURE__ */ x(function(r) { return h1[r].processed; }, "compileTask"); @@ -97335,14 +97360,14 @@ var u1 = "", dve = 0, q$ = [], sT = [], h1 = [], pve = /* @__PURE__ */ x(() => I t(r), e = e && n.processed; return e; }, "compileTasks"), Wer = { - clear: gve, - getCommonDb: pve, - addSection: mve, - getSections: vve, - getTasks: yve, - addTask: bve, - addTaskOrg: wve, - addEvent: xve + clear: mve, + getCommonDb: gve, + addSection: vve, + getSections: yve, + getTasks: bve, + addTask: xve, + addTaskOrg: Ove, + addEvent: wve }, Ger = 12, $E = /* @__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; @@ -97366,7 +97391,7 @@ var u1 = "", dve = 0, q$ = [], sT = [], h1 = [], pve = /* @__PURE__ */ x(() => I }, "drawFace"), Her = /* @__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"), Ove = /* @__PURE__ */ x(function(t, e) { +}, "drawCircle"), kve = /* @__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"); @@ -97377,10 +97402,10 @@ var u1 = "", dve = 0, q$ = [], sT = [], h1 = [], pve = /* @__PURE__ */ x(() => I } 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, Ove(t, e); + 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, kve(t, e); }, "drawLabel"), jer = /* @__PURE__ */ x(function(t, e, r) { const n = t.append("g"), i = Y$(); - 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, $E(n, i), kve(r)( + 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, $E(n, i), Sve(r)( e.text, n, i.x, @@ -97391,17 +97416,17 @@ var u1 = "", dve = 0, q$ = [], sT = [], h1 = [], pve = /* @__PURE__ */ x(() => I r, e.colour ); -}, "drawSection"), ZH = -1, Ker = /* @__PURE__ */ x(function(t, e, r) { +}, "drawSection"), jH = -1, Ker = /* @__PURE__ */ x(function(t, e, r) { const n = e.x + r.width / 2, i = t.append("g"); - ZH++; + jH++; const s = 300 + 5 * 30; - i.append("line").attr("id", "task" + ZH).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"), Xer(i, { + i.append("line").attr("id", "task" + jH).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"), Xer(i, { cx: n, cy: 300 + (5 - e.score) * 30, score: e.score }); const a = Y$(); - 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, $E(i, a), kve(r)( + 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, $E(i, a), Sve(r)( e.task, i, a.x, @@ -97443,7 +97468,7 @@ var u1 = "", dve = 0, q$ = [], sT = [], h1 = [], pve = /* @__PURE__ */ x(() => I rx: 0, ry: 0 }; -}, "getNoteRect"), kve = /* @__PURE__ */ function() { +}, "getNoteRect"), Sve = /* @__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); @@ -97502,7 +97527,7 @@ var rtr = /* @__PURE__ */ x(function(t, e, r, n) { drawRect: $E, drawCircle: Her, drawSection: jer, - drawText: Ove, + drawText: kve, drawLabel: Zer, drawTask: Ker, drawBackgroundRect: Jer, @@ -97575,7 +97600,7 @@ var rtr = /* @__PURE__ */ x(function(t, e, r, n) { }; Z.debug("sectionNode", M); const N = u.append("g"), D = r0.drawNode(N, M, w, i); - Z.debug("sectionNode output", D), N.attr("transform", `translate(${y}, ${v})`), b += p + 50, P.length > 0 && jH( + Z.debug("sectionNode output", D), N.attr("transform", `translate(${y}, ${v})`), b += p + 50, P.length > 0 && KH( u, P, w, @@ -97588,7 +97613,7 @@ var rtr = /* @__PURE__ */ x(function(t, e, r, n) { p, !1 ), y += 200 * Math.max(P.length, 1), b = v, w++; - }) : (O = !1, jH( + }) : (O = !1, KH( u, h, w, @@ -97608,7 +97633,7 @@ var rtr = /* @__PURE__ */ x(function(t, e, r, n) { (_ = (L = i.timeline) == null ? void 0 : L.padding) != null ? _ : 50, ($ = (R = i.timeline) == null ? void 0 : R.useMaxWidth) != null ? $ : !1 ); -}, "draw"), jH = /* @__PURE__ */ x(function(t, e, r, n, i, s, a, o, l, u, h) { +}, "draw"), KH = /* @__PURE__ */ x(function(t, e, r, n, i, s, a, o, l, u, h) { var f; for (const d of e) { const p = { @@ -97719,7 +97744,7 @@ var rtr = /* @__PURE__ */ x(function(t, e, r, n) { filter: brightness(120%); } `, "getStyles"), utr = ctr, htr = { - db: fve, + db: dve, renderer: otr, parser: Yer, styles: utr @@ -97739,18 +97764,18 @@ function G$(t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function"); } -function KH(t, e) { +function JH(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 X$(t, e, r) { - return e && KH(t.prototype, e), r && KH(t, r), Object.defineProperty(t, "prototype", { + return e && JH(t.prototype, e), r && JH(t, r), Object.defineProperty(t, "prototype", { writable: !1 }), t; } -function Sve(t, e, r) { +function Tve(t, e, r) { return e in t ? Object.defineProperty(t, e, { value: r, enumerable: !0, @@ -97759,7 +97784,7 @@ function Sve(t, e, r) { }) : t[e] = r, t; } function Dl(t, e) { - return dtr(t) || ptr(t, e) || Tve(t, e) || gtr(); + return dtr(t) || ptr(t, e) || Cve(t, e) || gtr(); } function dtr(t) { if (Array.isArray(t)) @@ -97785,18 +97810,18 @@ function ptr(t, e) { return n; } } -function Tve(t, e) { +function Cve(t, e) { if (!!t) { if (typeof t == "string") - return JH(t, e); + return eZ(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 JH(t, e); + return eZ(t, e); } } -function JH(t, e) { +function eZ(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]; @@ -97806,10 +97831,10 @@ function gtr() { 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 Cve(t, e) { +function Eve(t, e) { var r = typeof Symbol < "u" && t[Symbol.iterator] || t["@@iterator"]; if (!r) { - if (Array.isArray(t) || (r = Tve(t)) || e && t && typeof t.length == "number") { + if (Array.isArray(t) || (r = Cve(t)) || e && t && typeof t.length == "number") { r && (t = r); var n = 0, i = function() { }; @@ -97854,9 +97879,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } }; } -var Ii = typeof window > "u" ? null : window, eZ = Ii ? Ii.navigator : null; +var Ii = typeof window > "u" ? null : window, tZ = Ii ? Ii.navigator : null; Ii && Ii.document; -var mtr = ji(""), Eve = ji({}), vtr = ji(function() { +var mtr = ji(""), _ve = ji({}), vtr = ji(function() { }), ytr = typeof HTMLElement > "u" ? "undefined" : ji(HTMLElement), Fw = function(e) { return e && e.instanceString && Gn(e.instanceString) ? e.instanceString() : null; }, Jt = function(e) { @@ -97866,9 +97891,9 @@ var mtr = ji(""), Eve = ji({}), vtr = ji(function() { }, vn = function(e) { return !Ro(e) && (Array.isArray ? Array.isArray(e) : e != null && e instanceof Array); }, zr = function(e) { - return e != null && ji(e) === Eve && !vn(e) && e.constructor === Object; + return e != null && ji(e) === _ve && !vn(e) && e.constructor === Object; }, btr = function(e) { - return e != null && ji(e) === Eve; + return e != null && ji(e) === _ve; }, Lt = function(e) { return e != null && ji(e) === ji(1) && !isNaN(e); }, xtr = function(e) { @@ -97877,14 +97902,14 @@ var mtr = ji(""), Eve = ji({}), vtr = ji(function() { if (ytr !== "undefined") return e != null && e instanceof HTMLElement; }, Ro = function(e) { - return zw(e) || _ve(e); + return zw(e) || Ave(e); }, zw = function(e) { return Fw(e) === "collection" && e._private.single; -}, _ve = function(e) { +}, Ave = function(e) { return Fw(e) === "collection" && !e._private.single; }, H$ = function(e) { return Fw(e) === "core"; -}, Ave = function(e) { +}, Lve = function(e) { return Fw(e) === "stylesheet"; }, wtr = function(e) { return Fw(e) === "event"; @@ -97897,7 +97922,7 @@ var mtr = ji(""), Eve = ji({}), vtr = ji(function() { }, Str = function(e) { return btr(e) && Gn(e.then); }, Ttr = function() { - return eZ && eZ.userAgent.match(/msie|trident|edge/i); + return tZ && tZ.userAgent.match(/msie|trident|edge/i); }, Ib = function(e, r) { r || (r = function() { if (arguments.length === 1) @@ -97921,16 +97946,16 @@ var mtr = ji(""), Eve = ji({}), vtr = ji(function() { return t.replace(/(-\w)/g, function(e) { return e[1].toUpperCase(); }); -}), Lve = Ib(function(t, e) { +}), Rve = Ib(function(t, e) { return t + e[0].toUpperCase() + e.substring(1); }, function(t, e) { return t + "$" + e; -}), tZ = function(e) { +}), rZ = function(e) { return od(e) ? e : e.charAt(0).toUpperCase() + e.substring(1); -}, qi = "(?:[-+]?(?:(?:\\d+|\\d*\\.\\d+)(?:[Ee][+-]?\\d+)?))", Ctr = "rgb[a]?\\((" + qi + "[%]?)\\s*,\\s*(" + qi + "[%]?)\\s*,\\s*(" + qi + "[%]?)(?:\\s*,\\s*(" + qi + "))?\\)", Etr = "rgb[a]?\\((?:" + qi + "[%]?)\\s*,\\s*(?:" + qi + "[%]?)\\s*,\\s*(?:" + qi + "[%]?)(?:\\s*,\\s*(?:" + qi + "))?\\)", _tr = "hsl[a]?\\((" + qi + ")\\s*,\\s*(" + qi + "[%])\\s*,\\s*(" + qi + "[%])(?:\\s*,\\s*(" + qi + "))?\\)", Atr = "hsl[a]?\\((?:" + qi + ")\\s*,\\s*(?:" + qi + "[%])\\s*,\\s*(?:" + qi + "[%])(?:\\s*,\\s*(?:" + qi + "))?\\)", Ltr = "\\#[0-9a-fA-F]{3}", Rtr = "\\#[0-9a-fA-F]{6}", Rve = function(e, r) { +}, qi = "(?:[-+]?(?:(?:\\d+|\\d*\\.\\d+)(?:[Ee][+-]?\\d+)?))", Ctr = "rgb[a]?\\((" + qi + "[%]?)\\s*,\\s*(" + qi + "[%]?)\\s*,\\s*(" + qi + "[%]?)(?:\\s*,\\s*(" + qi + "))?\\)", Etr = "rgb[a]?\\((?:" + qi + "[%]?)\\s*,\\s*(?:" + qi + "[%]?)\\s*,\\s*(?:" + qi + "[%]?)(?:\\s*,\\s*(?:" + qi + "))?\\)", _tr = "hsl[a]?\\((" + qi + ")\\s*,\\s*(" + qi + "[%])\\s*,\\s*(" + qi + "[%])(?:\\s*,\\s*(" + qi + "))?\\)", Atr = "hsl[a]?\\((?:" + qi + ")\\s*,\\s*(?:" + qi + "[%])\\s*,\\s*(?:" + qi + "[%])(?:\\s*,\\s*(?:" + qi + "))?\\)", Ltr = "\\#[0-9a-fA-F]{3}", Rtr = "\\#[0-9a-fA-F]{6}", Mve = function(e, r) { return e < r ? -1 : e > r ? 1 : 0; }, Mtr = function(e, r) { - return -1 * Rve(e, r); + return -1 * Mve(e, r); }, ur = Object.assign != null ? Object.assign.bind(Object) : function(t) { for (var e = arguments, r = 1; r < e.length; r++) { var n = e[r]; @@ -98138,14 +98163,14 @@ var mtr = ji(""), Eve = ji({}), vtr = ji(function() { whitesmoke: [245, 245, 245], yellow: [255, 255, 0], yellowgreen: [154, 205, 50] -}, Mve = function(e) { +}, Dve = function(e) { for (var r = e.map, n = e.keys, i = n.length, s = 0; s < i; s++) { var a = n[s]; if (zr(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; } -}, Dve = function(e) { +}, Pve = function(e) { for (var r = e.map, n = e.keys, i = n.length, s = 0; s < i; s++) { var a = n[s]; if (zr(a)) @@ -98175,7 +98200,7 @@ var Xtr = Gtr, Htr = /^\s+/; function Ztr(t) { return t && t.slice(0, Xtr(t) + 1).replace(Htr, ""); } -var jtr = Ztr, Ktr = FE.Symbol, f1 = Ktr, Pve = Object.prototype, Jtr = Pve.hasOwnProperty, err = Pve.toString, Xv = f1 ? f1.toStringTag : void 0; +var jtr = Ztr, Ktr = FE.Symbol, f1 = Ktr, Nve = Object.prototype, Jtr = Nve.hasOwnProperty, err = Nve.toString, Xv = f1 ? f1.toStringTag : void 0; function trr(t) { var e = Jtr.call(t, Xv), r = t[Xv]; try { @@ -98190,24 +98215,24 @@ var rrr = trr, nrr = Object.prototype, irr = nrr.toString; function srr(t) { return irr.call(t); } -var arr = srr, orr = "[object Null]", lrr = "[object Undefined]", rZ = f1 ? f1.toStringTag : void 0; +var arr = srr, orr = "[object Null]", lrr = "[object Undefined]", nZ = f1 ? f1.toStringTag : void 0; function crr(t) { - return t == null ? t === void 0 ? lrr : orr : rZ && rZ in Object(t) ? rrr(t) : arr(t); + return t == null ? t === void 0 ? lrr : orr : nZ && nZ in Object(t) ? rrr(t) : arr(t); } -var Nve = crr; +var Ive = crr; function urr(t) { return t != null && typeof t == "object"; } var hrr = urr, frr = "[object Symbol]"; function drr(t) { - return typeof t == "symbol" || hrr(t) && Nve(t) == frr; + return typeof t == "symbol" || hrr(t) && Ive(t) == frr; } -var Qw = drr, nZ = 0 / 0, prr = /^[-+]0x[0-9a-f]+$/i, grr = /^0b[01]+$/i, mrr = /^0o[0-7]+$/i, vrr = parseInt; +var Qw = drr, iZ = 0 / 0, prr = /^[-+]0x[0-9a-f]+$/i, grr = /^0b[01]+$/i, mrr = /^0o[0-7]+$/i, vrr = parseInt; function yrr(t) { if (typeof t == "number") return t; if (Qw(t)) - return nZ; + return iZ; if (cp(t)) { var e = typeof t.valueOf == "function" ? t.valueOf() : t; t = cp(e) ? e + "" : e; @@ -98216,14 +98241,14 @@ function yrr(t) { return t === 0 ? t : +t; t = jtr(t); var r = grr.test(t); - return r || mrr.test(t) ? vrr(t.slice(2), r ? 2 : 8) : prr.test(t) ? nZ : +t; + return r || mrr.test(t) ? vrr(t.slice(2), r ? 2 : 8) : prr.test(t) ? iZ : +t; } -var iZ = yrr, brr = "Expected a function", xrr = Math.max, wrr = Math.min; +var sZ = yrr, brr = "Expected a function", xrr = Math.max, wrr = Math.min; function Orr(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(brr); - e = iZ(e) || 0, cp(r) && (h = !!r.leading, f = "maxWait" in r, s = f ? xrr(iZ(r.maxWait) || 0, e) : s, d = "trailing" in r ? !!r.trailing : d); + e = sZ(e) || 0, cp(r) && (h = !!r.leading, f = "maxWait" in r, s = f ? xrr(sZ(r.maxWait) || 0, e) : s, d = "trailing" in r ? !!r.trailing : d); function p(C) { var T = n, A = i; return n = i = void 0, u = C, a = t.apply(A, T), a; @@ -98266,7 +98291,7 @@ function Orr(t, e, r) { } return S.cancel = w, S.flush = O, S; } -var zE = Orr, l7 = Ii ? Ii.performance : null, Ive = l7 && l7.now ? function() { +var zE = Orr, l7 = Ii ? Ii.performance : null, $ve = l7 && l7.now ? function() { return l7.now(); } : function() { return Date.now(); @@ -98291,18 +98316,18 @@ var zE = Orr, l7 = Ii ? Ii.performance : null, Ive = l7 && l7.now ? function() { } return function(t) { t && setTimeout(function() { - t(Ive()); + t($ve()); }, 1e3 / 60); }; }(), oT = function(e) { return krr(e); -}, Eh = Ive, Eg = 9261, $ve = 65599, Cy = 5381, Bve = function(e) { +}, Eh = $ve, Eg = 9261, Bve = 65599, Cy = 5381, Fve = function(e) { for (var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Eg, n = r, i; i = e.next(), !i.done; ) - n = n * $ve + i.value | 0; + n = n * Bve + i.value | 0; return n; }, $b = function(e) { var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Eg; - return r * $ve + e | 0; + return r * Bve + e | 0; }, Bb = function(e) { var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Cy; return (r << 5) + r + e | 0; @@ -98321,7 +98346,7 @@ var zE = Orr, l7 = Ii ? Ii.performance : null, Ive = l7 && l7.now ? function() { return i < s ? n.value = e[i++] : n.done = !0, n; } }; - return Bve(a, r); + return Fve(a, r); }, up = function(e, r) { var n = { value: 0, @@ -98331,8 +98356,8 @@ var zE = Orr, l7 = Ii ? Ii.performance : null, Ive = l7 && l7.now ? function() { return i < s ? n.value = e.charCodeAt(i++) : n.done = !0, n; } }; - return Bve(a, r); -}, Fve = function() { + return Fve(a, r); +}, zve = function() { return Crr(arguments); }, Crr = function(e) { for (var r, n = 0; n < e.length; n++) { @@ -98340,33 +98365,33 @@ var zE = Orr, l7 = Ii ? Ii.performance : null, Ive = l7 && l7.now ? function() { n === 0 ? r = up(i) : r = up(i, r); } return r; -}, sZ = !0, Err = console.warn != null, _rr = console.trace != null, j$ = Number.MAX_SAFE_INTEGER || 9007199254740991, zve = function() { +}, aZ = !0, Err = console.warn != null, _rr = console.trace != null, j$ = Number.MAX_SAFE_INTEGER || 9007199254740991, Qve = function() { return !0; }, lT = function() { return !1; -}, aZ = function() { +}, oZ = function() { return 0; }, K$ = function() { }, ii = function(e) { throw new Error(e); -}, Qve = function(e) { +}, Uve = function(e) { if (e !== void 0) - sZ = !!e; + aZ = !!e; else - return sZ; + return aZ; }, rn = function(e) { - !Qve() || (Err ? console.warn(e) : (console.log(e), _rr && console.trace())); + !Uve() || (Err ? console.warn(e) : (console.log(e), _rr && console.trace())); }, Arr = function(e) { return ur({}, e); }, Hc = function(e) { return e == null ? e : vn(e) ? e.slice() : zr(e) ? Arr(e) : e; }, Lrr = function(e) { return e.slice(); -}, Uve = function(e, r) { +}, Vve = 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; -}, Rrr = {}, Vve = function() { +}, Rrr = {}, qve = function() { return Rrr; }, Bs = function(e) { var r = Object.keys(e); @@ -98388,9 +98413,9 @@ var zE = Orr, l7 = Ii ? Ii.performance : null, Ive = l7 && l7.now ? function() { e.push(i); } }, Fl = function(e, r, n) { - return n && (r = Lve(n, r)), e[r]; + return n && (r = Rve(n, r)), e[r]; }, lf = function(e, r, n, i) { - n && (r = Lve(n, r)), e[r] = i; + n && (r = Rve(n, r)), e[r] = i; }, Drr = /* @__PURE__ */ function() { function t() { G$(this, t), this._obj = {}; @@ -98557,7 +98582,7 @@ var zE = Orr, l7 = Ii ? Ii.performance : null, Ive = l7 && l7.now ? function() { this.createEmitter(); var p = r.style || r.css; p && (rn("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(); -}, oZ = function(e) { +}, lZ = function(e) { return e = { bfs: e.bfs || !e.dfs, dfs: e.dfs || !e.bfs @@ -98604,10 +98629,10 @@ var zE = Orr, l7 = Ii ? Ii.performance : null, Ive = l7 && l7.now ? function() { }; }; }, Fb = { - breadthFirstSearch: oZ({ + breadthFirstSearch: lZ({ bfs: !0 }), - depthFirstSearch: oZ({ + depthFirstSearch: lZ({ dfs: !0 }) }; @@ -99074,7 +99099,7 @@ var Irr = ztr(function(t, e) { x: e.x * r + n.x, y: e.y * r + n.y }; -}, qve = function(e, r, n) { +}, Yve = function(e, r, n) { return { x: (e.x - n.x) / r, y: (e.y - n.y) / r @@ -99120,7 +99145,7 @@ var Irr = ztr(function(t, e) { return Math.atan2(r, e) - Math.PI / 2; }, eB = Math.log2 || function(t) { return Math.log(t) / Math.log(2); -}, Yve = function(e) { +}, Wve = function(e) { return e > 0 ? 1 : e < 0 ? -1 : 0; }, hp = function(e, r) { return Math.sqrt(Ud(e, r)); @@ -99204,7 +99229,7 @@ var Irr = ztr(function(t, e) { w: e.w, h: e.h }; -}, Wve = function(e, r) { +}, Gve = 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; }, anr = 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; @@ -99222,7 +99247,7 @@ var Irr = ztr(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; -}, lZ = function(e, r) { +}, cZ = 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; }, tB = 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); @@ -99230,9 +99255,9 @@ var Irr = ztr(function(t, e) { return e.x1 <= r && r <= e.x2 && e.y1 <= n && n <= e.y2; }, onr = function(e, r) { return d1(e, r.x, r.y); -}, Gve = function(e, r) { +}, Xve = function(e, r) { return d1(e, r.x1, r.y1) && d1(e, r.x2, r.y2); -}, Xve = function(e, r, n, i, s, a, o) { +}, Hve = function(e, r, n, i, s, a, o) { var l = arguments.length > 7 && arguments[7] !== void 0 ? arguments[7] : "auto", u = l === "auto" ? fp(s, a) : l, h = s / 2, f = a / 2; u = Math.min(u, h, f); var d = u !== h, p = u !== f, g; @@ -99435,8 +99460,8 @@ var Irr = ztr(function(t, e) { return a < 0 && (a = 1e-5), [r[0] + a * i[0], r[1] + a * i[1]]; }, xa = function(e, r) { var n = uM(e, r); - return n = Hve(n), n; -}, Hve = function(e) { + return n = Zve(n), n; +}, Zve = 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++) @@ -99453,7 +99478,7 @@ var Irr = ztr(function(t, e) { return s; }, fp = function(e, r) { return Math.min(e / 4, r / 4, 8); -}, Zve = function(e, r) { +}, jve = function(e, r) { return Math.min(e / 10, r / 10, 8); }, rB = function() { return 8; @@ -99524,7 +99549,7 @@ var Irr = ztr(function(t, e) { }; return j; } -}, cZ = Bs({ +}, uZ = Bs({ root: null, weight: function(e) { return 1; @@ -99533,7 +99558,7 @@ var Irr = ztr(function(t, e) { alpha: 0 }), tm = { degreeCentralityNormalized: function(e) { - e = cZ(e); + e = uZ(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++) { @@ -99565,7 +99590,7 @@ var Irr = ztr(function(t, e) { } }, degreeCentrality: function(e) { - e = cZ(e); + e = uZ(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) { @@ -99591,7 +99616,7 @@ var Irr = ztr(function(t, e) { }; tm.dc = tm.degreeCentrality; tm.dcn = tm.degreeCentralityNormalised = tm.degreeCentralityNormalized; -var uZ = Bs({ +var hZ = Bs({ harmonic: !0, weight: function() { return 1; @@ -99600,7 +99625,7 @@ var uZ = Bs({ root: null }), rm = { closenessCentralityNormalized: function(e) { - for (var r = uZ(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 = hZ(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++) { @@ -99618,7 +99643,7 @@ var uZ = Bs({ }; }, closenessCentrality: function(e) { - var r = uZ(e), n = r.root, i = r.weight, s = r.directed, a = r.harmonic; + var r = hZ(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, @@ -99720,7 +99745,7 @@ var wnr = Bs({ }, Snr = function(e, r, n) { for (var i = 0; i < r; i++) e[i * r + i] = n; -}, jve = function(e, r) { +}, Kve = function(e, r) { for (var n, i = 0; i < r; i++) { n = 0; for (var s = 0; s < r; s++) @@ -99744,7 +99769,7 @@ var wnr = Bs({ }, Enr = 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 jve(i, r), i; + return Kve(i, r), i; }, _nr = 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); @@ -99769,7 +99794,7 @@ var wnr = Bs({ for (var n = 0; n < e.length; n++) r != n && Lnr(e[r], e[n]) && e.splice(n, 1); return e; -}, hZ = function(e) { +}, fZ = function(e) { for (var r = this.nodes(), n = this.edges(), i = this.cy(), s = Onr(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++) @@ -99778,39 +99803,39 @@ var wnr = Bs({ var g = n[p], m = a[g.source().id()], v = a[g.target().id()], y = knr(g, s.attributes); h[m * l + v] += y, h[v * l + m] += y; } - Snr(h, l, s.multFactor), jve(h, l); + Snr(h, l, s.multFactor), Kve(h, l); for (var b = !0, w = 0; b && w < s.maxIterations; ) b = !1, f = Cnr(h, l, s.expandFactor), h = Enr(f, l, s.inflateFactor), _nr(h, f, u, 4) || (b = !0), w++; var O = Anr(h, l, r, i); return O = Rnr(O), O; }, Mnr = { - markovClustering: hZ, - mcl: hZ + markovClustering: fZ, + mcl: fZ }, Dnr = function(e) { return e; -}, Kve = function(e, r) { +}, Jve = function(e, r) { return Math.abs(r - e); -}, fZ = function(e, r, n) { - return e + Kve(r, n); }, dZ = function(e, r, n) { + return e + Jve(r, n); +}, pZ = function(e, r, n) { return e + Math.pow(n - r, 2); }, Pnr = function(e) { return Math.sqrt(e); }, Nnr = function(e, r, n) { - return Math.max(e, Kve(r, n)); + return Math.max(e, Jve(r, n)); }, Hv = function(e, r, n, i, s) { for (var a = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : Dnr, o = i, l, u, h = 0; h < e; h++) l = r(h), u = n(h), o = s(o, l, u); return a(o); }, p1 = { euclidean: function(e, r, n) { - return e >= 2 ? Hv(e, r, n, 0, dZ, Pnr) : Hv(e, r, n, 0, fZ); + return e >= 2 ? Hv(e, r, n, 0, pZ, Pnr) : Hv(e, r, n, 0, dZ); }, squaredEuclidean: function(e, r, n) { - return Hv(e, r, n, 0, dZ); + return Hv(e, r, n, 0, pZ); }, manhattan: function(e, r, n) { - return Hv(e, r, n, 0, fZ); + return Hv(e, r, n, 0, dZ); }, max: function(e, r, n) { return Hv(e, r, n, -1 / 0, Nnr); @@ -99852,13 +99877,13 @@ var Inr = Bs({ o[h] = l; } return o; -}, Jve = function(e, r, n, i, s) { +}, eye = function(e, r, n, i, s) { for (var a = 1 / 0, o = 0, l = 0; l < r.length; l++) { var u = hT(n, e, r[l], i, s); u < a && (a = u, o = l); } return o; -}, eye = function(e, r, n) { +}, tye = 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; @@ -99877,7 +99902,7 @@ var Inr = Bs({ if (e === r[i]) return !0; return !1; -}, pZ = function(e, r) { +}, gZ = function(e, r) { var n = new Array(r); if (e.length < 50) for (var i = 0; i < r; i++) { @@ -99889,7 +99914,7 @@ var Inr = Bs({ for (var a = 0; a < r; a++) n[a] = e[Math.floor(Math.random() * e.length)]; return n; -}, gZ = function(e, r, n) { +}, mZ = function(e, r, n) { for (var i = 0, s = 0; s < r.length; s++) i += hT("manhattan", r[s], e, n, "kMedoids"); return i; @@ -99898,10 +99923,10 @@ var Inr = Bs({ s.testMode ? typeof s.testCentroids == "number" ? (s.testCentroids, l = h7(n, s.k, s.attributes)) : ji(s.testCentroids) === "object" ? l = s.testCentroids : l = h7(n, s.k, s.attributes) : l = h7(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()] = Jve(i, l, s.distance, s.attributes, "kMeans"); + i = n[f], o[i.id()] = eye(i, l, s.distance, s.attributes, "kMeans"); u = !1; for (var d = 0; d < s.k; d++) { - var p = eye(d, n, o); + var p = tye(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; @@ -99917,17 +99942,17 @@ var Inr = Bs({ return a; }, Qnr = function(e) { var r = this.cy(), n = this.nodes(), i = null, s = nB(e), a = new Array(s.k), o, l = {}, u, h = new Array(s.k); - s.testMode ? typeof s.testCentroids == "number" || (ji(s.testCentroids) === "object" ? o = s.testCentroids : o = pZ(n, s.k)) : o = pZ(n, s.k); + s.testMode ? typeof s.testCentroids == "number" || (ji(s.testCentroids) === "object" ? o = s.testCentroids : o = gZ(n, s.k)) : o = gZ(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()] = Jve(i, o, s.distance, s.attributes, "kMedoids"); + i = n[p], l[i.id()] = eye(i, o, s.distance, s.attributes, "kMedoids"); f = !1; for (var g = 0; g < o.length; g++) { - var m = eye(g, n, l); + var m = tye(g, n, l); if (m.length !== 0) { - h[g] = gZ(o[g], m, s.attributes); + h[g] = mZ(o[g], m, s.attributes); for (var v = 0; v < m.length; v++) - u = gZ(m[v], m, s.attributes), u < h[g] && (h[g] = u, o[g] = m[v], f = !0); + u = mZ(m[v], m, s.attributes), u < h[g] && (h[g] = u, o[g] = m[v], f = !0); a[g] = r.collection(m); } } @@ -99967,7 +99992,7 @@ var Inr = Bs({ for (var f = 0; f < s.length; f++) s[f] = i.collection(s[f]); return s; -}, mZ = function(e) { +}, vZ = function(e) { var r = this.cy(), n = this.nodes(), i = nB(e), s, a, o, l, u; l = new Array(n.length); for (var h = 0; h < n.length; h++) @@ -99996,8 +100021,8 @@ var Inr = Bs({ }, Ynr = { kMeans: znr, kMedoids: Qnr, - fuzzyCMeans: mZ, - fcm: mZ + fuzzyCMeans: vZ, + fcm: vZ }, Wnr = Bs({ distance: "euclidean", linkage: "min", @@ -100012,7 +100037,7 @@ var Inr = Bs({ }, Xnr = function(e) { var r = Wnr(e), n = Gnr[r.linkage]; return n != null && (r.linkage = n), r; -}, vZ = function(e, r, n, i, s) { +}, yZ = function(e, r, n, i, s) { for (var a = 0, o = 1 / 0, l, u = s.attributes, h = function(E, L) { return VE(s.distance, u.length, function(_) { return u[_](E); @@ -100082,7 +100107,7 @@ var Inr = Bs({ return []; var i = [], s = [], a = []; return r === 0 ? (e.left && D4(e.left, i), e.right && D4(e.right, s), a = i.concat(s), [n.collection(a)]) : r === 1 ? e.value ? [n.collection(e.value)] : (e.left && D4(e.left, i), e.right && D4(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)); -}, yZ = function(e) { +}, bZ = function(e) { for (var r = this.cy(), n = this.nodes(), i = Xnr(e), s = i.attributes, a = function(w, O) { return VE(i.distance, s.length, function(S) { return s[S](w); @@ -100102,15 +100127,15 @@ var Inr = Bs({ 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 = vZ(o, h, l, u, i); v; ) - v = vZ(o, h, l, u, i); + for (var v = yZ(o, h, l, u, i); v; ) + v = yZ(o, h, l, u, i); var y; return i.mode === "dendrogram" ? (y = Znr(o[0], i.dendrogramDepth, r), i.addDendrogram && Hnr(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; }, jnr = { - hierarchicalClustering: yZ, - hca: yZ + hierarchicalClustering: bZ, + hca: bZ }, Knr = Bs({ distance: "euclidean", preference: "median", @@ -100143,7 +100168,7 @@ var Inr = Bs({ for (var i = [], s = 0; s < e; s++) r[s * e + s] + n[s * e + s] > 0 && i.push(s); return i; -}, bZ = function(e, r, n) { +}, xZ = 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]; @@ -100155,7 +100180,7 @@ var Inr = Bs({ i[n[h]] = n[h]; return i; }, nir = function(e, r, n) { - for (var i = bZ(e, r, n), s = 0; s < n.length; s++) { + for (var i = xZ(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++) { @@ -100165,8 +100190,8 @@ var Inr = Bs({ } n[s] = a[l]; } - return i = bZ(e, r, n), i; -}, xZ = function(e) { + return i = xZ(e, r, n), i; +}, wZ = function(e) { for (var r = this.cy(), n = this.nodes(), i = Jnr(e), s = {}, a = 0; a < n.length; a++) s[n[a].id()] = a; var o, l, u, h, f, d; @@ -100231,8 +100256,8 @@ var Inr = Bs({ ae[te] = r.collection(U[ee[te]]); return ae; }, iir = { - affinityPropagation: xZ, - ap: xZ + affinityPropagation: wZ, + ap: wZ }, sir = Bs({ root: void 0, directed: !1 @@ -100390,39 +100415,39 @@ var Inr = Bs({ tsc: N4, tscc: N4, tarjanStronglyConnectedComponents: N4 -}, tye = {}; +}, rye = {}; [Fb, Brr, Frr, Qrr, Vrr, Yrr, Xrr, bnr, tm, rm, fM, Mnr, Ynr, jnr, iir, air, oir, lir].forEach(function(t) { - ur(tye, t); + ur(rye, 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 rye = 0, nye = 1, iye = 2, Ah = function t(e) { +var nye = 0, iye = 1, sye = 2, Ah = function t(e) { if (!(this instanceof t)) return new t(e); - this.id = "Thenable/1.0.7", this.state = rye, this.fulfillValue = void 0, this.rejectReason = void 0, this.onFulfilled = [], this.onRejected = [], this.proxy = { + this.id = "Thenable/1.0.7", this.state = nye, 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)); }; Ah.prototype = { fulfill: function(e) { - return wZ(this, nye, "fulfillValue", e); + return OZ(this, iye, "fulfillValue", e); }, reject: function(e) { - return wZ(this, iye, "rejectReason", e); + return OZ(this, sye, "rejectReason", e); }, then: function(e, r) { var n = this, i = new Ah(); - return n.onFulfilled.push(kZ(e, i, "fulfill")), n.onRejected.push(kZ(r, i, "reject")), sye(n), i.proxy; + return n.onFulfilled.push(SZ(e, i, "fulfill")), n.onRejected.push(SZ(r, i, "reject")), aye(n), i.proxy; } }; -var wZ = function(e, r, n, i) { - return e.state === rye && (e.state = r, e[n] = i, sye(e)), e; -}, sye = function(e) { - e.state === nye ? OZ(e, "onFulfilled", e.fulfillValue) : e.state === iye && OZ(e, "onRejected", e.rejectReason); -}, OZ = function(e, r, n) { +var OZ = function(e, r, n, i) { + return e.state === nye && (e.state = r, e[n] = i, aye(e)), e; +}, aye = function(e) { + e.state === iye ? kZ(e, "onFulfilled", e.fulfillValue) : e.state === sye && kZ(e, "onRejected", e.rejectReason); +}, kZ = function(e, r, n) { if (e[r].length !== 0) { var i = e[r]; e[r] = []; @@ -100432,7 +100457,7 @@ var wZ = function(e, r, n, i) { }; typeof setImmediate == "function" ? setImmediate(s) : setTimeout(s, 0); } -}, kZ = function(e, r, n) { +}, SZ = function(e, r, n) { return function(i) { if (typeof e != "function") r[n].call(r, i); @@ -100678,7 +100703,7 @@ var uir = { } 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 = qve(d, g, p); + r.position = Yve(d, g, p); } if (l && r.panBy != null) { var m = r.panBy, v = o.pan(); @@ -100744,15 +100769,15 @@ var gir = pir, mir = "[object AsyncFunction]", vir = "[object Function]", yir = function xir(t) { if (!cp(t)) return !1; - var e = Nve(t); + var e = Ive(t); return e == vir || e == yir || e == mir || e == bir; } -var wir = xir, Oir = FE["__core-js_shared__"], f7 = Oir, SZ = function() { +var wir = xir, Oir = FE["__core-js_shared__"], f7 = Oir, TZ = function() { var t = /[^.]+$/.exec(f7 && f7.keys && f7.keys.IE_PROTO || ""); return t ? "Symbol(src)_1." + t : ""; }(); function kir(t) { - return !!SZ && SZ in t; + return !!TZ && TZ in t; } var Sir = kir, Tir = Function.prototype, Cir = Tir.toString; function Eir(t) { @@ -100827,7 +100852,7 @@ nv.prototype.delete = Yir; nv.prototype.get = Zir; nv.prototype.has = esr; nv.prototype.set = nsr; -var TZ = nv; +var CZ = nv; function isr() { this.__data__ = [], this.size = 0; } @@ -100835,10 +100860,10 @@ var ssr = isr; function asr(t, e) { return t === e || t !== t && e !== e; } -var aye = asr; +var oye = asr; function osr(t, e) { for (var r = t.length; r--; ) - if (aye(t[r][0], e)) + if (oye(t[r][0], e)) return r; return -1; } @@ -100880,9 +100905,9 @@ iv.prototype.set = vsr; var ysr = iv, bsr = iB(FE, "Map"), xsr = bsr; function wsr() { this.size = 0, this.__data__ = { - hash: new TZ(), + hash: new CZ(), map: new (xsr || ysr)(), - string: new TZ() + string: new CZ() }; } var Osr = wsr; @@ -100926,7 +100951,7 @@ sv.prototype.delete = Esr; sv.prototype.get = Asr; sv.prototype.has = Rsr; sv.prototype.set = Dsr; -var oye = sv, Psr = "Expected a function"; +var lye = sv, Psr = "Expected a function"; function sB(t, e) { if (typeof t != "function" || e != null && typeof e != "function") throw new TypeError(Psr); @@ -100937,9 +100962,9 @@ function sB(t, e) { var a = t.apply(this, n); return r.cache = s.set(i, a) || s, a; }; - return r.cache = new (sB.Cache || oye)(), r; + return r.cache = new (sB.Cache || lye)(), r; } -sB.Cache = oye; +sB.Cache = lye; var Nsr = sB, Isr = 500; function $sr(t) { var e = Nsr(t, function(n) { @@ -100952,32 +100977,32 @@ var Bsr = $sr, Fsr = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.) return t.charCodeAt(0) === 46 && e.push(""), t.replace(Fsr, function(r, n, i, s) { e.push(i ? s.replace(zsr, "$1") : n || r); }), e; -}), lye = Qsr; +}), cye = Qsr; function Usr(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 cye = Usr, Vsr = 1 / 0, CZ = f1 ? f1.prototype : void 0, EZ = CZ ? CZ.toString : void 0; -function uye(t) { +var uye = Usr, Vsr = 1 / 0, EZ = f1 ? f1.prototype : void 0, _Z = EZ ? EZ.toString : void 0; +function hye(t) { if (typeof t == "string") return t; if (qE(t)) - return cye(t, uye) + ""; + return uye(t, hye) + ""; if (Qw(t)) - return EZ ? EZ.call(t) : ""; + return _Z ? _Z.call(t) : ""; var e = t + ""; return e == "0" && 1 / t == -Vsr ? "-0" : e; } -var qsr = uye; +var qsr = hye; function Ysr(t) { return t == null ? "" : qsr(t); } -var hye = Ysr; +var fye = Ysr; function Wsr(t, e) { - return qE(t) ? t : gir(t, e) ? [t] : lye(hye(t)); + return qE(t) ? t : gir(t, e) ? [t] : cye(fye(t)); } -var fye = Wsr, Gsr = 1 / 0; +var dye = Wsr, Gsr = 1 / 0; function Xsr(t) { if (typeof t == "string" || Qw(t)) return t; @@ -100986,7 +101011,7 @@ function Xsr(t) { } var aB = Xsr; function Hsr(t, e) { - e = fye(e, t); + e = dye(e, t); for (var r = 0, n = e.length; t != null && r < n; ) t = t[aB(e[r++])]; return r && r == n ? t : void 0; @@ -101002,9 +101027,9 @@ var Ksr = jsr, Jsr = function() { return t({}, "", {}), t; } catch { } -}(), _Z = Jsr; +}(), AZ = Jsr; function ear(t, e, r) { - e == "__proto__" && _Z ? _Z(t, e, { + e == "__proto__" && AZ ? AZ(t, e, { configurable: !0, enumerable: !0, value: r, @@ -101014,7 +101039,7 @@ function ear(t, e, r) { var tar = ear, rar = Object.prototype, nar = rar.hasOwnProperty; function iar(t, e, r) { var n = t[e]; - (!(nar.call(t, e) && aye(n, r)) || r === void 0 && !(e in t)) && tar(t, e, r); + (!(nar.call(t, e) && oye(n, r)) || r === void 0 && !(e in t)) && tar(t, e, r); } var sar = iar, aar = 9007199254740991, oar = /^(?:0|[1-9]\d*)$/; function lar(t, e) { @@ -101025,7 +101050,7 @@ var car = lar; function uar(t, e, r, n) { if (!cp(t)) return t; - e = fye(e, t); + e = dye(e, t); for (var i = -1, s = e.length, a = s - 1, o = t; o != null && ++i < s; ) { var l = aB(e[i]), u = r; if (l === "__proto__" || l === "constructor" || l === "prototype") @@ -101051,7 +101076,7 @@ function par(t, e) { } var gar = par; function mar(t) { - return qE(t) ? cye(t, aB) : Qw(t) ? [t] : gar(lye(hye(t))); + return qE(t) ? uye(t, aB) : Qw(t) ? [t] : gar(cye(fye(t))); } var yar = mar, bar = { data: function(e) { @@ -101086,7 +101111,7 @@ var yar = mar, bar = { } else if (a.allowSetting && s !== void 0) { var g = !a.immutableKeys[i]; if (g) { - var m = Sve({}, i, s); + var m = Tve({}, i, s); a.beforeSet(o, m); for (var v = 0, y = u.length; v < y; v++) { var b = u[v]; @@ -101783,7 +101808,7 @@ var Tar = function(e) { }, Aar = { parse: Ear, toString: _ar -}, dye = function(e, r, n) { +}, pye = function(e, r, n) { var i, s = Jt(e), a = Lt(e), o = Jt(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 "*=": @@ -101853,11 +101878,11 @@ si[Qt.CLASS] = function(t, e) { }; si[Qt.META_COMPARE] = function(t, e) { var r = t.field, n = t.operator, i = t.value; - return dye(Mar(e, r), n, i); + return pye(Mar(e, r), n, i); }; si[Qt.DATA_COMPARE] = function(t, e) { var r = t.field, n = t.operator, i = t.value; - return dye(oB(e, r), n, i); + return pye(oB(e, r), n, i); }; si[Qt.DATA_BOOL] = function(t, e) { var r = t.field, n = t.operator; @@ -102140,7 +102165,7 @@ function lB(t, e, r, n) { } return t; } -function pye(t, e, r) { +function gye(t, e, r) { if (r.isParent()) for (var n = r._private.children, i = 0; i < n.length; i++) { var s = n[i]; @@ -102149,9 +102174,9 @@ function pye(t, e, r) { } g1.forEachDown = function(t) { var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0; - return lB(this, t, e, pye); + return lB(this, t, e, gye); }; -function gye(t, e, r) { +function mye(t, e, r) { if (r.isChild()) { var n = r._private.parent; e.has(n.id()) || t.push(n); @@ -102159,18 +102184,18 @@ function gye(t, e, r) { } g1.forEachUp = function(t) { var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0; - return lB(this, t, e, gye); + return lB(this, t, e, mye); }; function Iar(t, e, r) { - gye(t, e, r), pye(t, e, r); + mye(t, e, r), gye(t, e, r); } g1.forEachUpAndDown = function(t) { var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0; return lB(this, t, e, Iar); }; g1.ancestors = g1.parents; -var Vb, mye; -Vb = mye = { +var Vb, vye; +Vb = vye = { data: Jr.data({ field: "data", bindingEvent: "data", @@ -102238,7 +102263,7 @@ Vb = mye = { }; Vb.attr = Vb.data; Vb.removeAttr = Vb.removeData; -var $ar = mye, GE = {}; +var $ar = vye, GE = {}; function d7(t) { return function(e) { var r = this; @@ -102300,7 +102325,7 @@ ur(GE, { return r; } }); -var Kl, vye, yye = function(e, r, n) { +var Kl, yye, bye = function(e, r, n) { for (var i = 0; i < e.length; i++) { var s = e[i]; if (!s.locked()) { @@ -102311,7 +102336,7 @@ var Kl, vye, yye = function(e, r, n) { s.isParent() && !(o.x === 0 && o.y === 0) && s.children().shift(o, n), s.dirtyBoundingBoxCache(); } } -}, AZ = { +}, LZ = { field: "position", bindingEvent: "position", allowBinding: !0, @@ -102325,7 +102350,7 @@ var Kl, vye, yye = function(e, r, n) { e.updateCompoundBounds(); }, beforeSet: function(e, r) { - yye(e, r, !1); + bye(e, r, !1); }, onSet: function(e) { e.dirtyCompoundBoundsCache(); @@ -102334,15 +102359,15 @@ var Kl, vye, yye = function(e, r, n) { return !e.locked(); } }; -Kl = vye = { - position: Jr.data(AZ), - silentPosition: Jr.data(ur({}, AZ, { +Kl = yye = { + position: Jr.data(LZ), + silentPosition: Jr.data(ur({}, LZ, { allowBinding: !1, allowSetting: !0, settingTriggersEvent: !1, allowGetting: !1, beforeSet: function(e, r) { - yye(e, r, !0); + bye(e, r, !0); }, onSet: function(e) { e.dirtyCompoundBoundsCache(); @@ -102399,7 +102424,7 @@ Kl = vye = { 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(qve(o, s, a)); + r !== void 0 ? h.position(e, (r - a[e]) / s) : o !== void 0 && h.position(Yve(o, s, a)); } else { var f = n.position(); @@ -102446,7 +102471,7 @@ Kl.modelPosition = Kl.point = Kl.position; Kl.modelPositions = Kl.points = Kl.positions; Kl.renderedPoint = Kl.renderedPosition; Kl.relativePoint = Kl.relativePosition; -var Bar = vye, nm, kd; +var Bar = yye, nm, kd; nm = kd = {}; kd.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; @@ -102636,7 +102661,7 @@ var Xo = function(e) { var d = e.h * u - e.h, p = e.w * l - e.w; if (t5(e, [Math.ceil(d / 2), Math.ceil(p / 2)]), h != 0 || f !== 0) { var g = snr(e, h, f); - Wve(e, g); + Gve(e, g); } } } @@ -102711,19 +102736,19 @@ var Xo = function(e) { } } var J = o.bodyBounds = o.bodyBounds || {}; - lZ(J, a), t5(J, y), e5(J, 1), i && (h = a.x1, f = a.x2, d = a.y1, p = a.y2, Nl(a, h - A, d - A, f + A, p + A)); + cZ(J, a), t5(J, y), e5(J, 1), i && (h = a.x1, f = a.x2, d = a.y1, p = a.y2, Nl(a, h - A, d - A, f + A, p + A)); var oe = o.overlayBounds = o.overlayBounds || {}; - lZ(oe, a), t5(oe, y), e5(oe, 1); + cZ(oe, a), t5(oe, y), e5(oe, 1); var ae = o.labelBounds = o.labelBounds || {}; ae.all != null ? inr(ae.all) : ae.all = lo(), i && r.includeLabels && (r.includeMainLabels && p7(a, e, null), u && (r.includeSourceLabels && p7(a, e, "source"), r.includeTargetLabels && p7(a, e, "target"))); } return a.x1 = Xo(a.x1), a.y1 = Xo(a.y1), a.x2 = Xo(a.x2), a.y2 = Xo(a.y2), a.w = Xo(a.x2 - a.x1), a.h = Xo(a.y2 - a.y1), a.w > 0 && a.h > 0 && w && (t5(a, y), e5(a, 1)), a; -}, bye = function(e) { +}, xye = 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; -}, xye = function(e) { +}, wye = function(e) { if (e.isEdge()) { var r = e.source().position(), n = e.target().position(), i = function(a) { return Math.round(a); @@ -102731,8 +102756,8 @@ var Xo = function(e) { return Trr([i(r.x), i(r.y), i(n.x), i(n.y)]); } else return 0; -}, LZ = function(e, r) { - var n = e._private, i, s = e.isEdge(), a = r == null ? RZ : bye(r), o = a === RZ, l = xye(e), u = n.bbCachePosKey === l, h = r.useCache && u, f = function(m) { +}, RZ = function(e, r) { + var n = e._private, i, s = e.isEdge(), a = r == null ? MZ : xye(r), o = a === MZ, l = wye(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 = zar(e, qb), n.bbCache = i, n.bbCachePosKey = l) : i = n.bbCache, !o) { @@ -102751,23 +102776,23 @@ var Xo = function(e) { includeUnderlays: !0, includeOutlines: !0, useCache: !0 -}, RZ = bye(qb), MZ = Bs(qb); +}, MZ = xye(qb), DZ = Bs(qb); kd.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 = qb : t = MZ(t), e = LZ(this[0], t); + t === void 0 ? t = qb : t = DZ(t), e = RZ(this[0], t); else { e = lo(), t = t || qb; - var r = MZ(t), n = this, i = n.cy(), s = i.styleEnabled(); + var r = DZ(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 = xye(o), h = l.bbCachePosKey === u, f = r.useCache && h && !l.styleDirty; + var o = n[a], l = o._private, u = wye(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]; - Vd(e, LZ(p, r)); + Vd(e, RZ(p, r)); } } return e.x1 = Xo(e.x1), e.y1 = Xo(e.y1), e.x2 = Xo(e.x2), e.y2 = Xo(e.y2), e.w = Xo(e.x2 - e.x1), e.h = Xo(e.y2 - e.y1), e; @@ -102804,8 +102829,8 @@ nm.boundingbox = nm.bb = nm.boundingBox; nm.renderedBoundingbox = nm.renderedBoundingBox; var Qar = kd, _y, Vw; _y = Vw = {}; -var wye = function(e) { - e.uppercaseName = tZ(e.name), e.autoName = "auto" + e.uppercaseName, e.labelName = "label" + e.uppercaseName, e.outerName = "outer" + e.uppercaseName, e.uppercaseOuterName = tZ(e.outerName), _y[e.name] = function() { +var Oye = function(e) { + e.uppercaseName = rZ(e.name), e.autoName = "auto" + e.uppercaseName, e.labelName = "label" + e.uppercaseName, e.outerName = "outer" + e.uppercaseName, e.uppercaseOuterName = rZ(e.outerName), _y[e.name] = function() { var n = this[0], i = n._private, s = i.cy, a = s._private.styleEnabled; if (n) if (a) { @@ -102842,10 +102867,10 @@ var wye = function(e) { } }; }; -wye({ +Oye({ name: "width" }); -wye({ +Oye({ name: "height" }); Vw.padding = function() { @@ -102885,7 +102910,7 @@ var Uar = Vw, Var = function(e, r) { return e.renderer().getTargetEndpoint(e); }, Zar = function(e) { return e.renderer().getEdgeMidpoint(e); -}, DZ = { +}, PZ = { controlPoints: { get: War, mult: !0 @@ -102905,8 +102930,8 @@ var Uar = Vw, Var = function(e, r) { } }, jar = function(e) { return "rendered" + e[0].toUpperCase() + e.substr(1); -}, Kar = Object.keys(DZ).reduce(function(t, e) { - var r = DZ[e], n = jar(e); +}, Kar = Object.keys(PZ).reduce(function(t, e) { + var r = PZ[e], n = jar(e); return t[e] = function() { return Var(this, r.get); }, r.mult ? t[n] = function() { @@ -102922,7 +102947,7 @@ https://jquery.org/license/ https://tldrlegal.com/license/mit-license https://github.com/jquery/jquery/blob/master/src/event.js */ -var Oye = function(e, r) { +var kye = function(e, r) { this.recycle(e, r); }; function jv() { @@ -102931,7 +102956,7 @@ function jv() { function $4() { return !0; } -Oye.prototype = { +kye.prototype = { instanceString: function() { return "event"; }, @@ -102962,7 +102987,7 @@ Oye.prototype = { isPropagationStopped: jv, isImmediatePropagationStopped: jv }; -var kye = /^([^.]+)(\.(?:[^.]+))?$/, eor = ".*", Sye = { +var Sye = /^([^.]+)(\.(?:[^.]+))?$/, eor = ".*", Tye = { qualifierCompare: function(e, r) { return e === r; }, @@ -102985,20 +103010,20 @@ var kye = /^([^.]+)(\.(?:[^.]+))?$/, eor = ".*", Sye = { return null; }, context: null -}, PZ = Object.keys(Sye), tor = {}; +}, NZ = Object.keys(Tye), tor = {}; function XE() { - for (var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : tor, e = arguments.length > 1 ? arguments[1] : void 0, r = 0; r < PZ.length; r++) { - var n = PZ[r]; - this[n] = t[n] || Sye[n]; + for (var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : tor, e = arguments.length > 1 ? arguments[1] : void 0, r = 0; r < NZ.length; r++) { + var n = NZ[r]; + this[n] = t[n] || Tye[n]; } this.context = e || this.context, this.listeners = [], this.emitting = 0; } -var hd = XE.prototype, Tye = function(e, r, n, i, s, a, o) { +var hd = XE.prototype, Cye = function(e, r, n, i, s, a, o) { Gn(i) && (s = i, i = null), o && (a == null ? a = o : a = ur({}, a, o)); for (var l = vn(n) ? n : n.split(/\s+/), u = 0; u < l.length; u++) { var h = l[u]; if (!od(h)) { - var f = h.match(kye); + var f = h.match(Sye); if (f) { var d = f[1], p = f[2] ? f[2] : null, g = r(e, h, d, p, i, s, a); if (g === !1) @@ -103006,22 +103031,22 @@ var hd = XE.prototype, Tye = function(e, r, n, i, s, a, o) { } } } -}, NZ = function(e, r) { - return e.addEventFields(e.context, r), new Oye(r.type, r); +}, IZ = function(e, r) { + return e.addEventFields(e.context, r), new kye(r.type, r); }, ror = function(e, r, n) { if (wtr(n)) { r(e, n); return; } else if (zr(n)) { - r(e, NZ(e, n)); + r(e, IZ(e, n)); return; } for (var i = vn(n) ? n : n.split(/\s+/), s = 0; s < i.length; s++) { var a = i[s]; if (!od(a)) { - var o = a.match(kye); + var o = a.match(Sye); if (o) { - var l = o[1], u = o[2] ? o[2] : null, h = NZ(e, { + var l = o[1], u = o[2] ? o[2] : null, h = IZ(e, { type: l, namespace: u, target: e.context @@ -103032,7 +103057,7 @@ var hd = XE.prototype, Tye = function(e, r, n, i, s, a, o) { } }; hd.on = hd.addListener = function(t, e, r, n, i) { - return Tye(this, function(s, a, o, l, u, h, f) { + return Cye(this, function(s, a, o, l, u, h, f) { Gn(h) && s.listeners.push({ event: a, callback: h, @@ -103053,7 +103078,7 @@ hd.removeListener = hd.off = function(t, e, r, n) { this.emitting !== 0 && (this.listeners = Lrr(this.listeners)); for (var s = this.listeners, a = function(u) { var h = s[u]; - Tye(i, function(f, d, p, g, m, v) { + Cye(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); @@ -103113,7 +103138,7 @@ var nor = { } }, B4 = function(e) { return Jt(e) ? new cd(e) : e; -}, Cye = { +}, Eye = { createEmitter: function() { for (var e = 0; e < this.length; e++) { var r = this[e], n = r._private; @@ -103173,8 +103198,8 @@ var nor = { return this.cy().notify(e, this), this.emit(e, r), this; } }; -Jr.eventAliasesOn(Cye); -var Eye = { +Jr.eventAliasesOn(Eye); +var _ye = { nodes: function(e) { return this.filter(function(r) { return r.isNode(); @@ -103367,7 +103392,7 @@ var Eye = { ele: i }; } -}, Vr = Eye; +}, Vr = _ye; Vr.u = Vr["|"] = Vr["+"] = Vr.union = Vr.or = Vr.add; Vr["\\"] = Vr["!"] = Vr["-"] = Vr.difference = Vr.relativeComplement = Vr.subtract = Vr.not; Vr.n = Vr["&"] = Vr["."] = Vr.and = Vr.intersection = Vr.intersect; @@ -103392,7 +103417,7 @@ var ior = { if (e) return e._private.group; } -}, _ye = function(e, r) { +}, Aye = function(e, r) { var n = e.cy(), i = n.hasCompoundNodes(); function s(h) { var f = h.pstyle("z-compound-depth"); @@ -103457,7 +103482,7 @@ var ior = { return this.spawn(r); }, sortByZIndex: function() { - return this.sort(_ye); + return this.sort(Aye); }, zDepth: function() { var e = this[0]; @@ -103481,7 +103506,7 @@ var sor = function() { value: void 0, done: !1 }, s = 0, a = this.length; - return Sve({ + return Tve({ next: function() { return s < a ? i.value = n[s++] : (i.value = void 0, i.done = !0), i; } @@ -103616,13 +103641,13 @@ var aor = Bs({ } }; n5.createLayout = n5.makeLayout = n5.layout; -function Aye(t, e, r) { +function Lye(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 HE(t, e) { return t = up(t), function(n) { - return Aye(t, e, n); + return Lye(t, e, n); }; } function ZE(t, e) { @@ -103633,7 +103658,7 @@ function ZE(t, e) { return function() { var i = this[0]; if (i) - return Aye(t, r, i); + return Lye(t, r, i); }; } var As = { @@ -103853,7 +103878,7 @@ As.renderedCss = As.renderedStyle; As.removeBypass = As.removeCss = As.removeStyle; As.pstyle = As.parsedStyle; var Df = {}; -function IZ(t) { +function $Z(t) { return function() { var e = arguments, r = []; if (e.length === 2) { @@ -103889,13 +103914,13 @@ function ov(t) { } return e._private[t.field]; } - }, Df[t.on] = IZ({ + }, Df[t.on] = $Z({ event: t.on, field: t.field, ableField: t.ableField, overrideAble: t.overrideAble, value: !0 - }), Df[t.off] = IZ({ + }), Df[t.off] = $Z({ event: t.off, field: t.field, ableField: t.ableField, @@ -103957,7 +103982,7 @@ Df.inactive = function() { if (t) return !t._private.active; }; -var ia = {}, $Z = function(e) { +var ia = {}, BZ = function(e) { return function(n) { for (var i = this, s = [], a = 0; a < i.length; a++) { var o = i[a]; @@ -103974,7 +103999,7 @@ var ia = {}, $Z = function(e) { } return this.spawn(s, !0).filter(n); }; -}, BZ = function(e) { +}, FZ = function(e) { return function(r) { for (var n = this, i = [], s = 0; s < n.length; s++) { var a = n[s]; @@ -103986,7 +104011,7 @@ var ia = {}, $Z = function(e) { } return this.spawn(i, !0).filter(r); }; -}, FZ = function(e) { +}, zZ = function(e) { return function(r) { for (var n = this, i = [], s = {}; ; ) { var a = e.outgoing ? n.outgoers() : n.incomers(); @@ -104008,22 +104033,22 @@ ia.clearTraversalCache = function() { this[t]._private.traversalCache = null; }; ur(ia, { - roots: $Z({ + roots: BZ({ noIncomingEdges: !0 }), - leaves: $Z({ + leaves: BZ({ noOutgoingEdges: !0 }), - outgoers: sl(BZ({ + outgoers: sl(FZ({ outgoing: !0 }), "outgoers"), - successors: FZ({ + successors: zZ({ outgoing: !0 }), - incomers: sl(BZ({ + incomers: sl(FZ({ incoming: !0 }), "incomers"), - predecessors: FZ({ + predecessors: zZ({ incoming: !0 }) }); @@ -104055,14 +104080,14 @@ ur(ia, { var r = this[0], n; return r && (n = r._private.target || r.cy().collection()), n && e ? n.filter(e) : n; }, "target"), - sources: zZ({ + sources: QZ({ attr: "source" }), - targets: zZ({ + targets: QZ({ attr: "target" }) }); -function zZ(t) { +function QZ(t) { return function(r) { for (var n = [], i = 0; i < this.length; i++) { var s = this[i], a = s._private[t.attr]; @@ -104072,12 +104097,12 @@ function zZ(t) { }; } ur(ia, { - edgesWith: sl(QZ(), "edgesWith"), - edgesTo: sl(QZ({ + edgesWith: sl(UZ(), "edgesWith"), + edgesTo: sl(UZ({ thisIsSrc: !0 }), "edgesTo") }); -function QZ(t) { +function UZ(t) { return function(r) { var n = [], i = this._private.cy, s = t || {}; Jt(r) && (r = i.$(r)); @@ -104108,12 +104133,12 @@ ur(ia, { } return this.spawn(e, !0).filter(t); }, "connectedNodes"), - parallelEdges: sl(UZ(), "parallelEdges"), - codirectedEdges: sl(UZ({ + parallelEdges: sl(VZ(), "parallelEdges"), + codirectedEdges: sl(VZ({ codirected: !0 }), "codirectedEdges") }); -function UZ(t) { +function VZ(t) { var e = { codirected: !1 }; @@ -104178,7 +104203,7 @@ var Ls = function(e, r) { f.data == null && (f.data = {}); var d = f.data; if (d.id == null) - d.id = Uve(); + d.id = Vve(); else if (e.hasElementWithId(d.id) || l.has(d.id)) continue; var p = new QE(e, f, !1); @@ -104236,7 +104261,7 @@ En.element = function() { return this[0]; }; En.collection = function() { - return _ve(this) ? this : new Ls(this._private.cy, [this]); + return Ave(this) ? this : new Ls(this._private.cy, [this]); }; En.unique = function() { return new Ls(this._private.cy, this, !0); @@ -104336,7 +104361,7 @@ En.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 = Uve(); + m.id = Vve(); else if (Lt(m.id)) m.id = "" + m.id; else if (od(m.id) || !Jt(m.id)) { @@ -104505,7 +104530,7 @@ En.move = function(t) { } return this; }; -[tye, war, r5, Mf, g1, $ar, GE, Jar, Cye, Eye, ior, fT, n5, As, Df, ia].forEach(function(t) { +[rye, war, r5, Mf, g1, $ar, GE, Jar, Eye, _ye, ior, fT, n5, As, Df, ia].forEach(function(t) { ur(En, t); }); var hor = { @@ -104708,26 +104733,26 @@ var por = function() { }, "cubic-bezier": wn }; -function VZ(t, e, r, n, i) { +function qZ(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 qZ(t, e) { +function YZ(t, e) { return t.pfValue != null || t.value != null ? t.pfValue != null && (e == null || e.type.units !== "%") ? t.pfValue : t.value : t; } function tg(t, e, r, n, i) { var s = i != null ? i.type : null; r < 0 ? r = 0 : r > 1 && (r = 1); - var a = qZ(t, i), o = qZ(e, i); + var a = YZ(t, i), o = YZ(e, i); if (Lt(a) && Lt(o)) - return VZ(s, a, o, r, n); + return qZ(s, a, o, r, n); if (vn(a) && vn(o)) { for (var l = [], u = 0; u < o.length; u++) { var h = a[u], f = o[u]; if (h != null && f != null) { - var d = VZ(s, h, f, r, n); + var d = qZ(s, h, f, r, n); l.push(d); } else l.push(f); @@ -104781,7 +104806,7 @@ function mor(t, e, r, n) { var i = e._private; i.started = !0, i.startTime = r - i.progress * i.duration; } -function YZ(t, e) { +function WZ(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; @@ -104833,12 +104858,12 @@ var vor = { return; function r() { !e._private.animationsRunning || oT(function(s) { - YZ(s, e), r(); + WZ(s, e), r(); }); } var n = e.renderer(); n && n.beforeRender ? n.beforeRender(function(s, a) { - YZ(a, e); + WZ(a, e); }, n.beforeRenderPriorities.animations) : r(); } }, yor = { @@ -104857,7 +104882,7 @@ var vor = { } }, F4 = function(e) { return Jt(e) ? new cd(e) : e; -}, Lye = { +}, Rye = { createEmitter: function() { var e = this._private; return e.emitter || (e.emitter = new XE(yor, this)), this; @@ -104887,7 +104912,7 @@ var vor = { return this.emit(e), this.notify(e, r), this; } }; -Jr.eventAliasesOn(Lye); +Jr.eventAliasesOn(Rye); var mM = { png: function(e) { var r = this._private.renderer; @@ -106930,7 +106955,7 @@ KE.parse = function(t, e, r, n) { var i = this; if (Gn(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 = Fve(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 = zve(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 = Hc(h), h && (h.value = Hc(h.value))), h; }; KE.parseImplWarn = function(t, e, r, n) { @@ -107181,7 +107206,7 @@ sa.cssRule = function(t, e) { return this; }; sa.append = function(t) { - return Ave(t) ? t.appendToStyle(this) : vn(t) ? this.appendFromJson(t) : Jt(t) && this.appendFromString(t), this; + return Lve(t) ? t.appendToStyle(this) : vn(t) ? this.appendFromJson(t) : Jt(t) && this.appendFromString(t), this; }; na.fromJson = function(t, e) { var r = new na(t); @@ -107208,7 +107233,7 @@ var Oor = { }, setStyle: function(e) { var r = this._private; - return Ave(e) ? r.style = e.generateStyle(this) : vn(e) ? r.style = na.fromJson(this, e) : Jt(e) ? r.style = na.fromString(this, e) : r.style = na(this), r.style; + return Lve(e) ? r.style = e.generateStyle(this) : vn(e) ? r.style = na.fromJson(this, e) : Jt(e) ? r.style = na.fromString(this, e) : r.style = na(this), r.style; }, updateStyle: function() { this.mutableElements().updateStyle(); @@ -107764,7 +107789,7 @@ ur(dT, { } }); dT.$id = dT.getElementById; -[hor, vor, Lye, mM, s5, bor, vM, a5, Oor, pp, Yb].forEach(function(t) { +[hor, vor, Rye, mM, s5, bor, vM, a5, Oor, pp, Yb].forEach(function(t) { ur(dT, t); }); var Sor = { @@ -107795,13 +107820,13 @@ var Sor = { acyclic: !1 }, rg = function(e) { return e.scratch("breadthfirst"); -}, WZ = function(e, r) { +}, GZ = function(e, r) { return e.scratch("breadthfirst", r); }; -function Rye(t) { +function Mye(t) { this.options = ur({}, Sor, Tor, t); } -Rye.prototype.run = function() { +Mye.prototype.run = function() { var t = this.options, e = t, r = t.cy, n = e.eles, i = n.nodes().filter(function(ae) { return !ae.isParent(); }), s = n, a = e.directed, o = e.acyclic || e.maximal || e.maximalAdjustments > 0, l = lo(e.boundingBox ? e.boundingBox : { @@ -107836,7 +107861,7 @@ Rye.prototype.run = function() { var y = [], b = {}, w = function(te, De) { y[De] == null && (y[De] = []); var he = y[De].length; - y[De].push(te), WZ(te, { + y[De].push(te), GZ(te, { index: he, depth: De }); @@ -107863,7 +107888,7 @@ Rye.prototype.run = function() { De.splice(he, 1), he--; continue; } - WZ(_e, { + GZ(_e, { depth: te, index: he }); @@ -107932,7 +107957,7 @@ Rye.prototype.run = function() { return Pe = Math.max(1, Pe), _e = _e / Pe, Pe === 0 && (_e = 0), Y[te.id()] = _e, _e; }, X = function(te, De) { var he = G(te), _e = G(De), Pe = he - _e; - return Pe === 0 ? Rve(te.id(), De.id()) : Pe; + return Pe === 0 ? Mve(te.id(), De.id()) : Pe; }; e.depthSort !== void 0 && (X = e.depthSort); for (var q = 0; q < y.length; q++) @@ -107989,10 +108014,10 @@ var Cor = { return r; } }; -function Mye(t) { +function Dye(t) { this.options = ur({}, Cor, t); } -Mye.prototype.run = function() { +Dye.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 = lo(e.boundingBox ? e.boundingBox : { @@ -108053,10 +108078,10 @@ var Eor = { return r; } }; -function Dye(t) { +function Pye(t) { this.options = ur({}, Eor, t); } -Dye.prototype.run = function() { +Pye.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 = lo(e.boundingBox ? e.boundingBox : { x1: 0, y1: 0, @@ -108192,7 +108217,7 @@ JE.prototype.run = function() { layout: r }); else { - var d = t.eles.nodes(), p = Pye(n, t, d); + var d = t.eles.nodes(), p = Nye(n, t, d); d.layoutPositions(r, t, p); } }, l = 0, u = !0; @@ -108201,7 +108226,7 @@ JE.prototype.run = function() { for (var d = 0; u && d < t.refresh; ) u = a(l), l++, d++; if (!u) - XZ(n, t), o(); + HZ(n, t), o(); else { var p = Eh(); p - i >= t.animationThreshold && s(), oT(f); @@ -108211,7 +108236,7 @@ JE.prototype.run = function() { } else { for (; u; ) u = a(l), l++; - XZ(n, t), o(); + HZ(n, t), o(); } return this; }; @@ -108311,7 +108336,7 @@ var Aor = function(e, r, n) { var a = e.layoutNodes[s]; a.children.length === 0 && !a.isLocked && (a.positionX = Math.random() * n, a.positionY = Math.random() * i); } -}, Pye = function(e, r, n) { +}, Nye = function(e, r, n) { var i = e.boundingBox, s = { x1: 1 / 0, x2: -1 / 0, @@ -108336,7 +108361,7 @@ var Aor = function(e, r, n) { }; }; }, Por = function(e, r, n) { - var i = n.layout, s = n.eles.nodes(), a = Pye(e, n, s); + var i = n.layout, s = n.eles.nodes(), a = Nye(e, n, s); s.positions(a), e.ready !== !0 && (e.ready = !0, i.one("layoutready", n.ready), i.emit({ type: "layoutready", layout: this @@ -108350,13 +108375,13 @@ var Aor = function(e, r, n) { var u = e.layoutNodes[e.idToIndex[i[l]]]; $or(o, u, e, r); } -}, GZ = function(e) { +}, XZ = function(e) { return -e + 2 * e * Math.random(); }, $or = 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 = GZ(u), l = GZ(u)); + o === 0 && l === 0 && (o = XZ(u), l = XZ(u)); var h = Bor(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; @@ -108456,7 +108481,7 @@ var Aor = function(e, r, n) { 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); } -}, XZ = function(e, r) { +}, HZ = 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); @@ -108511,10 +108536,10 @@ var Aor = function(e, r, n) { return r; } }; -function Nye(t) { +function Iye(t) { this.options = ur({}, Yor, t); } -Nye.prototype.run = function() { +Iye.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 = lo(e.boundingBox ? e.boundingBox : { @@ -108647,10 +108672,10 @@ var Gor = { return r; } }; -function Iye(t) { +function $ye(t) { this.options = ur({}, Gor, t); } -Iye.prototype.run = function() { +$ye.prototype.run = function() { var t = this.options, e = t.eles, r = e.nodes(), n = Gn(t.positions); function i(s) { if (t.positions == null) @@ -108681,10 +108706,10 @@ var Xor = { return r; } }; -function $ye(t) { +function Bye(t) { this.options = ur({}, Xor, t); } -$ye.prototype.run = function() { +Bye.prototype.run = function() { var t = this.options, e = t.cy, r = t.eles, n = lo(t.boundingBox ? t.boundingBox : { x1: 0, y1: 0, @@ -108700,47 +108725,47 @@ $ye.prototype.run = function() { }; var Hor = [{ name: "breadthfirst", - impl: Rye + impl: Mye }, { name: "circle", - impl: Mye + impl: Dye }, { name: "concentric", - impl: Dye + impl: Pye }, { name: "cose", impl: JE }, { name: "grid", - impl: Nye + impl: Iye }, { name: "null", impl: fB }, { name: "preset", - impl: Iye + impl: $ye }, { name: "random", - impl: $ye + impl: Bye }]; -function Bye(t) { +function Fye(t) { this.options = t, this.notifications = 0; } -var HZ = function() { -}, ZZ = function() { +var ZZ = function() { +}, jZ = function() { throw new Error("A headless instance can not render images"); }; -Bye.prototype = { - recalculateRenderedStyle: HZ, +Fye.prototype = { + recalculateRenderedStyle: ZZ, notify: function() { this.notifications++; }, - init: HZ, + init: ZZ, isHeadless: function() { return !0; }, - png: ZZ, - jpg: ZZ + png: jZ, + jpg: jZ }; var dB = {}; dB.arrowShapeWidth = 0.3; @@ -108791,8 +108816,8 @@ dB.registerArrowShapes = function() { collide: lT, roughCollide: lT, draw: K$, - spacing: aZ, - gap: aZ + spacing: oZ, + gap: oZ }), o("triangle", { points: [-0.15, -0.3, 0, 0, 0.15, -0.3] }), o("arrow", "triangle"), o("triangle-backcurve", { @@ -109049,7 +109074,7 @@ zp.getAllInBox = function(t, e, r, n) { includeEdges: !1, includeLabels: !1 }); - tB(h, g) && !Gve(g, h) && s.push(p); + tB(h, g) && !Xve(g, h) && s.push(p); } else { var m = d, v = m._private, y = v.rscratch; if (y.startX != null && y.startY != null && !d1(h, y.startX, y.startY) || y.endX != null && y.endY != null && !d1(h, y.endX, y.endY)) @@ -109123,18 +109148,18 @@ gT.getArrowWidth = gT.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 yM, bM, _c = {}, Yo = {}, jZ, KZ, n0, o5, $u, $d, qd, Cc, ng, z4, Fye, zye, xM, wM, JZ, ej = function(e, r, n) { +var yM, bM, _c = {}, Yo = {}, KZ, JZ, n0, o5, $u, $d, qd, Cc, ng, z4, zye, Qye, xM, wM, ej, tj = 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); }, Zor = 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; }, jor = function(e, r, n, i, s) { - if (e !== JZ ? ej(r, e, _c) : Zor(Yo, _c), ej(r, n, Yo), jZ = _c.nx * Yo.ny - _c.ny * Yo.nx, KZ = _c.nx * Yo.nx - _c.ny * -Yo.ny, $u = Math.asin(Math.max(-1, Math.min(1, jZ))), Math.abs($u) < 1e-6) { + if (e !== ej ? tj(r, e, _c) : Zor(Yo, _c), tj(r, n, Yo), KZ = _c.nx * Yo.ny - _c.ny * Yo.nx, JZ = _c.nx * Yo.nx - _c.ny * -Yo.ny, $u = Math.asin(Math.max(-1, Math.min(1, KZ))), Math.abs($u) < 1e-6) { yM = r.x, bM = r.y, qd = ng = 0; return; } - n0 = 1, o5 = !1, KZ < 0 ? $u < 0 ? $u = Math.PI + $u : ($u = Math.PI - $u, n0 = -1, o5 = !0) : $u > 0 && (n0 = -1, o5 = !0), r.radius !== void 0 ? ng = r.radius : ng = i, $d = $u / 2, z4 = Math.min(_c.len / 2, Yo.len / 2), s ? (Cc = Math.abs(Math.cos($d) * ng / Math.sin($d)), Cc > z4 ? (Cc = z4, qd = Math.abs(Cc * Math.sin($d) / Math.cos($d))) : qd = ng) : (Cc = Math.min(z4, ng), qd = Math.abs(Cc * Math.sin($d) / Math.cos($d))), xM = r.x + Yo.nx * Cc, wM = r.y + Yo.ny * Cc, yM = xM - Yo.ny * qd * n0, bM = wM + Yo.nx * qd * n0, Fye = r.x + _c.nx * Cc, zye = r.y + _c.ny * Cc, JZ = r; + n0 = 1, o5 = !1, JZ < 0 ? $u < 0 ? $u = Math.PI + $u : ($u = Math.PI - $u, n0 = -1, o5 = !0) : $u > 0 && (n0 = -1, o5 = !0), r.radius !== void 0 ? ng = r.radius : ng = i, $d = $u / 2, z4 = Math.min(_c.len / 2, Yo.len / 2), s ? (Cc = Math.abs(Math.cos($d) * ng / Math.sin($d)), Cc > z4 ? (Cc = z4, qd = Math.abs(Cc * Math.sin($d) / Math.cos($d))) : qd = ng) : (Cc = Math.min(z4, ng), qd = Math.abs(Cc * Math.sin($d) / Math.cos($d))), xM = r.x + Yo.nx * Cc, wM = r.y + Yo.ny * Cc, yM = xM - Yo.ny * qd * n0, bM = wM + Yo.nx * qd * n0, zye = r.x + _c.nx * Cc, Qye = r.y + _c.ny * Cc, ej = r; }; -function Qye(t, e) { +function Uye(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 pB(t, e, r, n) { @@ -109154,8 +109179,8 @@ function pB(t, e, r, n) { cx: yM, cy: bM, radius: qd, - startX: Fye, - startY: zye, + startX: zye, + startY: Qye, stopX: xM, stopY: wM, startAngle: _c.ang + Math.PI / 2 * n0, @@ -109258,7 +109283,7 @@ fa.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 = Yve(g); + var g = (0.5 - e.eles.length / 2 + r) * a * (i ? -1 : 1), m = void 0, v = Wve(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, @@ -109274,7 +109299,7 @@ fa.findTaxiPoints = function(t, e) { return we > 0 ? Math.max(we - Ee, 0) : Math.min(we + Ee, 0); }, $ = R(L, A), k = R(_, E), P = !1; b === u ? y = Math.abs($) > Math.abs(k) ? i : n : b === l || b === o ? (y = n, P = !0) : (b === s || b === a) && (y = i, P = !0); - var M = y === n, N = M ? k : $, D = M ? _ : L, I = Yve(D), F = !1; + var M = y === n, N = M ? k : $, D = M ? _ : L, I = Wve(D), F = !1; !(P && (O || C)) && (b === o && D < 0 || b === l && D > 0 || b === s && D > 0 || b === a && D < 0) && (I *= -1, N = I * Math.abs(N), F = !0); var B; if (O) { @@ -109549,7 +109574,7 @@ fa.findEdgeControlPoints = function(t) { this.findHaystackPoints(o); } }; -function Uye(t) { +function Vye(t) { var e = []; if (t != null) { for (var r = 0; r < t.length; r += 2) { @@ -109565,12 +109590,12 @@ function Uye(t) { fa.getSegmentPoints = function(t) { var e = t[0]._private.rscratch, r = e.edgeType; if (r === "segments") - return this.recalculateRenderedStyle(t), Uye(e.segpts); + return this.recalculateRenderedStyle(t), Vye(e.segpts); }; fa.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), Uye(e.ctrlpts); + return this.recalculateRenderedStyle(t), Vye(e.ctrlpts); }; fa.getEdgeMidpoint = function(t) { var e = t[0]._private.rscratch; @@ -109750,15 +109775,15 @@ Lu.recalculateNodeLabelProjection = function(t) { f.labelX = r, f.labelY = n, d.labelX = r, d.labelY = n, this.calculateLabelAngles(t), this.applyLabelDimensions(t); } }; -var Vye = function(e, r) { +var qye = function(e, r) { var n = Math.atan(r / e); return e === 0 && n < 0 && (n = n * -1), n; -}, qye = function(e, r) { +}, Yye = function(e, r) { var n = r.x - e.x, i = r.y - e.y; - return Vye(n, i); + return qye(n, i); }, Jor = function(e, r, n, i) { var s = zb(0, i - 1e-3, 1), a = zb(0, i + 1e-3, 1), o = em(e, r, n, s), l = em(e, r, n, a); - return qye(o, l); + return Yye(o, l); }; Lu.recalculateEdgeLabelProjections = function(t) { var e, r = t._private, n = r.rscratch, i = this, s = { @@ -109775,7 +109800,7 @@ Lu.recalculateEdgeLabelProjections = function(t) { lf(r.rscratch, f, d, p), lf(r.rstyle, f, d, p); }; a("labelX", null, e.x), a("labelY", null, e.y); - var o = Vye(n.midDispX, n.midDispY); + var o = qye(n.midDispX, n.midDispY); a("labelAutoAngle", null, o); var l = function h() { if (h.cache) @@ -109865,7 +109890,7 @@ Lu.recalculateEdgeLabelProjections = function(t) { }), k = hp(M, N), P = $, $ += k, !($ >= g)); I += 2) ; var F = g - P, B = F / k; - B = zb(0, B, 1), e = rnr(M, N, B), d = qye(M, N); + B = zb(0, B, 1), e = rnr(M, N, B), d = Yye(M, N); break; } } @@ -109902,7 +109927,7 @@ Lu.getLabelText = function(t, e) { y = O; } if (w > f) { - var S = y.matchAll(m), C = "", T = 0, A = Cve(S), E; + var S = y.matchAll(m), C = "", T = 0, A = Eve(S), E; try { for (A.s(); !(E = A.n()).done; ) { var L = E.value, _ = L[0], R = y.substring(T, L.index); @@ -109981,11 +110006,11 @@ Lu.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 Yye = {}, tj = 28, rj = !1; -Yye.getNodeShape = function(t) { +var Wye = {}, rj = 28, nj = !1; +Wye.getNodeShape = function(t) { var e = this, r = t.pstyle("shape").value; - if (r === "cutrectangle" && (t.width() < tj || t.height() < tj)) - return rj || (rn("The `cutrectangle` node shape can not be used at small sizes so `rectangle` is used instead"), rj = !0), "rectangle"; + if (r === "cutrectangle" && (t.width() < rj || t.height() < rj)) + return nj || (rn("The `cutrectangle` node shape can not be used at small sizes so `rectangle` is used instead"), nj = !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") { @@ -110077,19 +110102,19 @@ t_.invalidateCachedZSortedEles = function() { t_.getCachedZSortedEles = function(t) { if (t || !this.cachedZSortedEles) { var e = this.cy.mutableElements().toArray(); - e.sort(_ye), e.interactive = e.filter(function(r) { + e.sort(Aye), e.interactive = e.filter(function(r) { return r.interactive(); }), this.cachedZSortedEles = e, this.updateCachedGrabbedEles(); } else e = this.cachedZSortedEles; return e; }; -var Wye = {}; -[zp, gT, fa, Yw, gB, Lu, Yye, e_, t_].forEach(function(t) { - ur(Wye, t); -}); var Gye = {}; -Gye.getCachedImage = function(t, e, r) { +[zp, gT, fa, Yw, gB, Lu, Wye, e_, t_].forEach(function(t) { + ur(Gye, t); +}); +var Xye = {}; +Xye.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; @@ -111075,7 +111100,7 @@ zh.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" ? Zve(s, a) : o; + o = o === "auto" ? jve(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], @@ -111106,7 +111131,7 @@ zh.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 Xve(s, a, e, r, n, i, o, l); + return Hve(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; @@ -111234,7 +111259,7 @@ zh.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 = bf(s, a, e, r, u, h, d, f, !1); - return p.length > 0 ? p : Xve(s, a, e, r, n, i, o, l); + return p.length > 0 ? p : Hve(s, a, e, r, n, i, o, l); }, checkPoint: function(e, r, n, i, s, a, o, l) { l = l === "auto" ? fp(i, s) : l; @@ -111263,7 +111288,7 @@ zh.registerNodeShapes = function() { 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 = Hve(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 = Zve(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); @@ -111278,7 +111303,7 @@ Ww.timeToRender = function() { return this.redrawTotalTime / this.redrawCount; }; Ww.redraw = function(t) { - t = t || Vve(); + t = t || qve(); 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; }; @@ -111294,7 +111319,7 @@ Ww.beforeRender = function(t, e) { }); } }; -var nj = function(e, r, n) { +var ij = function(e, r, n) { for (var i = e.beforeRenderCallbacks, s = 0; s < i.length; s++) i[s].fn(r, n); }; @@ -111306,7 +111331,7 @@ Ww.startRenderLoop = function() { if (!t.destroyed) { if (!e.batching()) if (t.requestedFrame && !t.skipFrame) { - nj(t, !0, i); + ij(t, !0, i); var s = Eh(); t.render(t.renderOptions); var a = t.lastDrawTime = Eh(); @@ -111314,7 +111339,7 @@ Ww.startRenderLoop = function() { var o = a - s; t.redrawTotalTime += o, t.lastRedrawTime = o, t.averageRedrawTime = t.averageRedrawTime / 2 + o / 2, t.requestedFrame = !1; } else - nj(t, !1, i); + ij(t, !1, i); t.skipFrame = !1, oT(n); } }; @@ -111323,7 +111348,7 @@ Ww.startRenderLoop = function() { }; var elr = function(e) { this.init(e); -}, Xye = elr, cv = Xye.prototype; +}, Hye = elr, cv = Hye.prototype; cv.clientFunctions = ["redrawHint", "render", "renderTo", "matchCanvasSize", "nodeShapeImpl", "arrowShapeImpl"]; cv.init = function(t) { var e = this; @@ -111394,10 +111419,10 @@ cv.destroy = function() { cv.isHeadless = function() { return !1; }; -[dB, Wye, Gye, lv, zh, Ww].forEach(function(t) { +[dB, Gye, Xye, lv, zh, Ww].forEach(function(t) { ur(cv, t); }); -var v7 = 1e3 / 60, Hye = { +var v7 = 1e3 / 60, Zye = { setupDequeueing: function(e) { return function() { var n = this, i = this.renderer; @@ -111554,7 +111579,7 @@ var v7 = 1e3 / 60, Hye = { return s && this.invalidateKey(i), s || this.getNumberOfIdsForKey(i) === 0; } }]), t; -}(), ij = 25, Q4 = 50, l5 = -4, OM = 3, rlr = 7.99, nlr = 8, ilr = 1024, slr = 1024, alr = 1024, olr = 0.2, llr = 0.8, clr = 10, ulr = 0.15, hlr = 0.1, flr = 0.9, dlr = 0.9, plr = 100, glr = 1, Ag = { +}(), sj = 25, Q4 = 50, l5 = -4, OM = 3, rlr = 7.99, nlr = 8, ilr = 1024, slr = 1024, alr = 1024, olr = 0.2, llr = 0.8, clr = 10, ulr = 0.15, hlr = 0.1, flr = 0.9, dlr = 0.9, plr = 100, glr = 1, Ag = { dequeue: "dequeue", downscale: "downscale", highQuality: "highQuality" @@ -111565,7 +111590,7 @@ var v7 = 1e3 / 60, Hye = { getBoundingBox: null, getRotationPoint: null, getRotationOffset: null, - isVisible: zve, + isVisible: Qve, allowEdgeTxrCaching: !0, allowParentTxrCaching: !0 }), Ay = function(e, r) { @@ -111608,7 +111633,7 @@ es.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 <= ij ? g = ij : h <= Q4 ? g = Q4 : g = Math.ceil(h / Q4) * Q4, h > alr || f > slr) + if (h <= sj ? g = sj : h <= Q4 ? g = Q4 : g = Math.ceil(h / Q4) * Q4, h > alr || f > slr) return null; var m = s.getTextureQueue(g), v = m[m.length - 2], y = function() { return s.recycleTexture(g, f) || s.addTexture(g, f); @@ -111743,7 +111768,7 @@ es.onDequeue = function(t) { es.offDequeue = function(t) { ld(this.onDequeues, t); }; -es.setupDequeueing = Hye.setupDequeueing({ +es.setupDequeueing = Zye.setupDequeueing({ deqRedrawThreshold: plr, deqCost: ulr, deqAvgCost: hlr, @@ -111771,21 +111796,21 @@ es.setupDequeueing = Hye.setupDequeueing({ return e.renderer.beforeRenderPriorities.eleTxrDeq; } }); -var vlr = 1, a2 = -4, mT = 2, ylr = 3.99, blr = 50, xlr = 50, wlr = 0.15, Olr = 0.1, klr = 0.9, Slr = 0.9, Tlr = 1, sj = 250, Clr = 4e3 * 4e3, Elr = !0, Zye = function(e) { +var vlr = 1, a2 = -4, mT = 2, ylr = 3.99, blr = 50, xlr = 50, wlr = 0.15, Olr = 0.1, klr = 0.9, Slr = 0.9, Tlr = 1, aj = 250, Clr = 4e3 * 4e3, Elr = !0, jye = function(e) { var r = this, n = r.renderer = e, i = n.cy; - r.layersByLevel = {}, r.firstGet = !0, r.lastInvalidationTime = Eh() - 2 * sj, r.skipping = !1, r.eleTxrDeqs = i.collection(), r.scheduleElementRefinement = zE(function() { + r.layersByLevel = {}, r.firstGet = !0, r.lastInvalidationTime = Eh() - 2 * aj, r.skipping = !1, r.eleTxrDeqs = i.collection(), r.scheduleElementRefinement = zE(function() { r.refineElementTextures(r.eleTxrDeqs), r.eleTxrDeqs.unmerge(r.eleTxrDeqs); }, xlr), n.beforeRender(function(a, o) { - o - r.lastInvalidationTime <= sj ? r.skipping = !0 : r.skipping = !1; + o - r.lastInvalidationTime <= aj ? r.skipping = !0 : r.skipping = !1; }, n.beforeRenderPriorities.lyrTxrSkip); var s = function(o, l) { return l.reqs - o.reqs; }; r.layersQueue = new Uw(s), r.setupDequeueing(); -}, Fs = Zye.prototype, aj = 0, _lr = Math.pow(2, 53) - 1; +}, Fs = jye.prototype, oj = 0, _lr = Math.pow(2, 53) - 1; Fs.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: aj = ++aj % _lr, + id: oj = ++oj % _lr, bb: t, level: e, width: n, @@ -111830,7 +111855,7 @@ Fs.getLayers = function(t, e, r) { if (!f) { f = lo(); for (var L = 0; L < t.length; L++) - Wve(f, t[L].boundingBox()); + Gve(f, t[L].boundingBox()); } return f; }, v = function(L) { @@ -111856,7 +111881,7 @@ Fs.getLayers = function(t, e, r) { y = A; continue; } - if ((!y || y.eles.length >= b || !Gve(y.bb, S.boundingBox())) && (y = v({ + if ((!y || y.eles.length >= b || !Xve(y.bb, S.boundingBox())) && (y = v({ insert: !0, after: y }), !y)) @@ -111995,7 +112020,7 @@ Fs.requestRedraw = zE(function() { var t = this.renderer; t.redrawHint("eles", !0), t.redrawHint("drag", !0), t.redraw(); }, 100); -Fs.setupDequeueing = Hye.setupDequeueing({ +Fs.setupDequeueing = Zye.setupDequeueing({ deqRedrawThreshold: blr, deqCost: wlr, deqAvgCost: Olr, @@ -112005,12 +112030,12 @@ Fs.setupDequeueing = Hye.setupDequeueing({ return e.dequeue(r); }, onDeqd: K$, - shouldRedraw: zve, + shouldRedraw: Qve, priority: function(e) { return e.renderer.beforeRenderPriorities.lyrTxrDeq; } }); -var jye = {}, oj; +var Kye = {}, lj; function Alr(t, e) { for (var r = 0; r < e.length; r++) { var n = e[r]; @@ -112024,7 +112049,7 @@ function Llr(t, e, r) { } t.quadraticCurveTo(r.x, r.y, n.x, n.y); } -function lj(t, e, r) { +function cj(t, e, r) { t.beginPath && t.beginPath(); for (var n = e, i = 0; i < n.length; i++) { var s = n[i]; @@ -112051,13 +112076,13 @@ function Rlr(t, e, r, n, i) { function Mlr(t, e, r, n) { t.arc(e, r, n, 0, Math.PI * 2, !1); } -jye.arrowShapeImpl = function(t) { - return (oj || (oj = { +Kye.arrowShapeImpl = function(t) { + return (lj || (lj = { polygon: Alr, "triangle-backcurve": Llr, - "triangle-tee": lj, + "triangle-tee": cj, "circle-triangle": Rlr, - "triangle-cross": lj, + "triangle-cross": cj, circle: Mlr }))[t]; }; @@ -112182,7 +112207,7 @@ Qh.drawEdge = function(t, e, r) { C(), w(), T(), S(), A(), r && t.translate(l.x1, l.y1); } }; -var Kye = function(e) { +var Jye = function(e) { if (!["overlay", "underlay"].includes(e)) throw new Error("Invalid state"); return function(r, n) { @@ -112195,8 +112220,8 @@ var Kye = function(e) { } }; }; -Qh.drawEdgeOverlay = Kye("overlay"); -Qh.drawEdgeUnderlay = Kye("underlay"); +Qh.drawEdgeOverlay = Jye("overlay"); +Qh.drawEdgeUnderlay = Jye("underlay"); Qh.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) { @@ -112231,11 +112256,11 @@ Qh.drawEdgePath = function(t, e, r, n) { break; case "segments": if (i.isRound) { - var m = Cve(i.roundCorners), v; + var m = Eve(i.roundCorners), v; try { for (m.s(); !(v = m.n()).done; ) { var y = v.value; - Qye(e, y); + Uye(e, y); } } catch (w) { m.e(w); @@ -112495,7 +112520,7 @@ uv.drawNode = function(t, e, r) { var pe = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : X; a.colorStrokeStyle(t, Y[0], Y[1], Y[2], pe); }, W = function(pe, ge, ve, we) { - var Ee = a.nodePathCache = a.nodePathCache || [], Re = Fve(ve === "polygon" ? ve + "," + we.join(",") : ve, "" + ge, "" + pe, "" + ee), Ce = Ee[Re], $e, Le = !1; + var Ee = a.nodePathCache = a.nodePathCache || [], Re = zve(ve === "polygon" ? ve + "," + we.join(",") : ve, "" + ge, "" + pe, "" + ee), Ce = Ee[Re], $e, Le = !1; return Ce != null ? ($e = Ce, Le = !0, h.pathCache = $e) : ($e = new Path2D(), Ee[Re] = h.pathCache = $e), { path: $e, cacheHit: Le @@ -112594,7 +112619,7 @@ uv.drawNode = function(t, e, r) { a.drawEllipsePath(Le || t, pe.x, pe.y, Re, Ce); else if (["round-diamond", "round-heptagon", "round-hexagon", "round-octagon", "round-pentagon", "round-polygon", "round-triangle", "round-tag"].includes(ge)) { var Fe = 0, ot = 0, at = 0; - ge === "round-diamond" ? Fe = (ve + q + Q) * 1.4 : ge === "round-heptagon" ? (Fe = (ve + q + Q) * 1.075, at = -(ve / 2 + q + Q) / 35) : ge === "round-hexagon" ? Fe = (ve + q + Q) * 1.12 : ge === "round-pentagon" ? (Fe = (ve + q + Q) * 1.13, at = -(ve / 2 + q + Q) / 15) : ge === "round-tag" ? (Fe = (ve + q + Q) * 1.12, ot = (ve / 2 + Q + q) * 0.07) : ge === "round-triangle" && (Fe = (ve + q + Q) * (Math.PI / 2), at = -(ve + q / 2 + Q) / Math.PI), Fe !== 0 && (we = (o + Fe) / o, Re = o * we, ["round-hexagon", "round-tag"].includes(ge) || (Ee = (l + Fe) / l, Ce = l * Ee)), ee = ee === "auto" ? Zve(Re, Ce) : ee; + ge === "round-diamond" ? Fe = (ve + q + Q) * 1.4 : ge === "round-heptagon" ? (Fe = (ve + q + Q) * 1.075, at = -(ve / 2 + q + Q) / 35) : ge === "round-hexagon" ? Fe = (ve + q + Q) * 1.12 : ge === "round-pentagon" ? (Fe = (ve + q + Q) * 1.13, at = -(ve / 2 + q + Q) / 15) : ge === "round-tag" ? (Fe = (ve + q + Q) * 1.12, ot = (ve / 2 + Q + q) * 0.07) : ge === "round-triangle" && (Fe = (ve + q + Q) * (Math.PI / 2), at = -(ve + q / 2 + Q) / Math.PI), Fe !== 0 && (we = (o + Fe) / o, Re = o * we, ["round-hexagon", "round-tag"].includes(ge) || (Ee = (l + Fe) / l, Ce = l * Ee)), ee = ee === "auto" ? jve(Re, Ce) : ee; for (var bt = Re / 2, xt = Ce / 2, gt = ee + (ve + Q + q) / 2, et = new Array($e.length / 2), Ke = new Array($e.length / 2), wt = 0; wt < $e.length / 2; wt++) et[wt] = { x: pe.x + ot + bt * $e[wt * 2], @@ -112640,7 +112665,7 @@ uv.drawNode = function(t, e, r) { p && t.translate(-f.x, -f.y), Ge(), p && t.translate(f.x, f.y), j(), He(), se(), te(), De(d, !0), U(), Pe(), he(_ !== 0 || R !== 0), De(d, !1), _e(), p && t.translate(-f.x, -f.y), Ie(), nt(), r && t.translate(y.x1, y.y1); } }; -var Jye = function(e) { +var e2e = function(e) { if (!["overlay", "underlay"].includes(e)) throw new Error("Invalid state"); return function(r, n, i, s, a) { @@ -112657,8 +112682,8 @@ var Jye = function(e) { } }; }; -uv.drawNodeOverlay = Jye("overlay"); -uv.drawNodeUnderlay = Jye("underlay"); +uv.drawNodeOverlay = e2e("overlay"); +uv.drawNodeUnderlay = e2e("underlay"); uv.hasPie = function(t) { return t = t[0], t._private.hasPie; }; @@ -112810,7 +112835,7 @@ zo.renderTo = function(t, e, r, n) { }); }; zo.render = function(t) { - t = t || Vve(); + t = t || qve(); 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; @@ -112928,7 +112953,7 @@ Sd.drawPolygonPath = function(t, e, r, n, i, s) { }; Sd.drawRoundPolygonPath = function(t, e, r, n, i, s, a) { a.forEach(function(o) { - return Qye(t, o); + return Uye(t, o); }), t.closePath(); }; Sd.drawRoundRectanglePath = function(t, e, r, n, i, s) { @@ -112947,15 +112972,15 @@ Sd.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 = hM(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 cj = Math.sin(0), uj = Math.cos(0), kM = {}, SM = {}, e2e = Math.PI / 40; -for (var ig = 0 * Math.PI; ig < 2 * Math.PI; ig += e2e) +var uj = Math.sin(0), hj = Math.cos(0), kM = {}, SM = {}, t2e = Math.PI / 40; +for (var ig = 0 * Math.PI; ig < 2 * Math.PI; ig += t2e) kM[ig] = Math.sin(ig), SM[ig] = Math.cos(ig); Sd.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 += e2e) - s = e - o * kM[u] * cj + o * SM[u] * uj, a = r + l * SM[u] * cj + l * kM[u] * uj, 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 += t2e) + s = e - o * kM[u] * uj + o * SM[u] * hj, a = r + l * SM[u] * uj + l * kM[u] * hj, u === 0 ? t.moveTo(s, a) : t.lineTo(s, a); t.closePath(); }; var Gw = {}; @@ -112998,11 +113023,11 @@ function Flr(t, e) { type: e }); } -function hj(t) { +function fj(t) { var e = t.indexOf(","); return t.substr(e + 1); } -function t2e(t, e, r) { +function r2e(t, e, r) { var n = function() { return e.toDataURL(r, t.quality); }; @@ -113018,22 +113043,22 @@ function t2e(t, e, r) { } }); case "blob": - return Flr(hj(n()), r); + return Flr(fj(n()), r); case "base64": - return hj(n()); + return fj(n()); case "base64uri": default: return n(); } } Gw.png = function(t) { - return t2e(t, this.bufferCanvasImage(t), "image/png"); + return r2e(t, this.bufferCanvasImage(t), "image/png"); }; Gw.jpg = function(t) { - return t2e(t, this.bufferCanvasImage(t), "image/jpeg"); + return r2e(t, this.bufferCanvasImage(t), "image/jpeg"); }; -var r2e = {}; -r2e.nodeShapeImpl = function(t, e, r, n, i, s, a, o) { +var n2e = {}; +n2e.nodeShapeImpl = function(t, e, r, n, i, s, a, o) { switch (t) { case "ellipse": return this.drawEllipsePath(e, r, n, i, s); @@ -113054,7 +113079,7 @@ r2e.nodeShapeImpl = function(t, e, r, n, i, s, a, o) { return this.drawBarrelPath(e, r, n, i, s); } }; -var zlr = n2e, Ur = n2e.prototype; +var zlr = i2e, Ur = i2e.prototype; Ur.CANVAS_LAYERS = 3; Ur.SELECT_BOX = 0; Ur.DRAG = 1; @@ -113063,7 +113088,7 @@ Ur.BUFFER_COUNT = 3; Ur.TEXTURE_BUFFER = 0; Ur.MOTIONBLUR_BUFFER_NODE = 1; Ur.MOTIONBLUR_BUFFER_DRAG = 2; -function n2e(t) { +function i2e(t) { var e = this, r = e.cy.window(), n = r.document; e.data = { canvases: new Array(Ur.CANVAS_LAYERS), @@ -113212,7 +113237,7 @@ function n2e(t) { getRotationPoint: N, getRotationOffset: F, isVisible: _ - }), q = e.data.lyrTxrCache = new Zye(e); + }), q = e.data.lyrTxrCache = new jye(e); e.onUpdateEleCalcs(function(U, j) { Q.invalidateElements(j), Y.invalidateElements(j), G.invalidateElements(j), X.invalidateElements(j), q.invalidateElements(j); for (var W = 0; W < j.length; W++) { @@ -113265,15 +113290,15 @@ Ur.makeOffscreenCanvas = function(t, e) { } return r; }; -[jye, Ru, Qh, mB, Qp, uv, zo, Sd, Gw, r2e].forEach(function(t) { +[Kye, Ru, Qh, mB, Qp, uv, zo, Sd, Gw, n2e].forEach(function(t) { ur(Ur, t); }); var Ulr = [{ name: "null", - impl: Bye + impl: Fye }, { name: "base", - impl: Xye + impl: Hye }, { name: "canvas", impl: zlr @@ -113283,8 +113308,8 @@ var Ulr = [{ }, { type: "renderer", extensions: Ulr -}], i2e = {}, s2e = {}; -function a2e(t, e, r) { +}], s2e = {}, a2e = {}; +function o2e(t, e, r) { var n = r, i = function(A) { rn("Can not register `" + e + "` for `" + t + "` since `" + A + "` already exists in the prototype and can not be overridden"); }; @@ -113365,7 +113390,7 @@ function a2e(t, e, r) { } }), Jr.eventAliasesOn(a), n = s; } else if (t === "renderer" && e !== "null" && e !== "base") { - var p = o2e("renderer", "base"), g = p.prototype, m = r, v = r.prototype, y = function() { + var p = l2e("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) { @@ -113383,36 +113408,36 @@ function a2e(t, e, r) { }), n = y; } else if (t === "__proto__" || t === "constructor" || t === "prototype") return ii(t + " is an illegal type to be registered, possibly lead to prototype pollutions"); - return Mve({ - map: i2e, + return Dve({ + map: s2e, keys: [t, e], value: n }); } -function o2e(t, e) { - return Dve({ - map: i2e, +function l2e(t, e) { + return Pve({ + map: s2e, keys: [t, e] }); } function qlr(t, e, r, n, i) { - return Mve({ - map: s2e, + return Dve({ + map: a2e, keys: [t, e, r, n], value: i }); } function Ylr(t, e, r, n) { - return Dve({ - map: s2e, + return Pve({ + map: a2e, keys: [t, e, r, n] }); } var TM = function() { if (arguments.length === 2) - return o2e.apply(null, arguments); + return l2e.apply(null, arguments); if (arguments.length === 3) - return a2e.apply(null, arguments); + return o2e.apply(null, arguments); if (arguments.length === 4) return Ylr.apply(null, arguments); if (arguments.length === 5) @@ -113422,14 +113447,14 @@ var TM = function() { Wb.prototype.extension = TM; Vlr.forEach(function(t) { t.extensions.forEach(function(e) { - a2e(t.type, e.name, e.impl); + o2e(t.type, e.name, e.impl); }); }); -var l2e = function t() { +var c2e = function t() { if (!(this instanceof t)) return new t(); this.length = 0; -}, gp = l2e.prototype; +}, gp = c2e.prototype; gp.instanceString = function() { return "stylesheet"; }; @@ -113490,13 +113515,13 @@ gu.use = function(t) { return e.unshift(gu), t.apply(null, e), this; }; gu.warnings = function(t) { - return Qve(t); + return Uve(t); }; gu.version = Wlr; -gu.stylesheet = gu.Stylesheet = l2e; -var c2e = { exports: {} }, x7 = { exports: {} }, w7 = { exports: {} }, fj; +gu.stylesheet = gu.Stylesheet = c2e; +var u2e = { exports: {} }, x7 = { exports: {} }, w7 = { exports: {} }, dj; function Glr() { - return fj || (fj = 1, function(t, e) { + return dj || (dj = 1, function(t, e) { (function(n, i) { t.exports = i(); })(wa, function() { @@ -115024,9 +115049,9 @@ function Glr() { }); }(w7)), w7.exports; } -var dj; +var pj; function Xlr() { - return dj || (dj = 1, function(t, e) { + return pj || (pj = 1, function(t, e) { (function(n, i) { t.exports = i(Glr()); })(wa, function(r) { @@ -115711,8 +115736,8 @@ function Xlr() { } ]); }); -})(c2e); -const Hlr = /* @__PURE__ */ Kj(c2e.exports); +})(u2e); +const Hlr = /* @__PURE__ */ Jj(u2e.exports); var CM = function() { var t = /* @__PURE__ */ x(function(O, S, C, T) { for (C = C || {}, T = O.length; T--; C[O[T]] = S) @@ -116100,8 +116125,8 @@ Expecting ` + oe.join(", ") + ", got '" + (this.terminals_[X] || X) + "'" : ae = return x(w, "Parser"), w.prototype = y, y.Parser = w, new w(); }(); CM.parser = CM; -var Zlr = CM, Jl = [], u2e = 0, vB = {}, jlr = /* @__PURE__ */ x(() => { - Jl = [], u2e = 0, vB = {}; +var Zlr = CM, Jl = [], h2e = 0, vB = {}, jlr = /* @__PURE__ */ x(() => { + Jl = [], h2e = 0, vB = {}; }, "clear"), Klr = /* @__PURE__ */ x(function(t) { for (let e = Jl.length - 1; e >= 0; e--) if (Jl[e].level < t) @@ -116119,7 +116144,7 @@ var Zlr = CM, Jl = [], u2e = 0, vB = {}, jlr = /* @__PURE__ */ x(() => { s *= 2; } const a = { - id: u2e++, + id: h2e++, nodeId: yi(e, i), level: t, descr: yi(r, i), @@ -116253,7 +116278,7 @@ var Zlr = CM, Jl = [], u2e = 0, vB = {}, jlr = /* @__PURE__ */ x(() => { }, "bangBkg"), pcr = /* @__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 h2e(t, e, r, n, i) { +function f2e(t, e, r, n, i) { return t.insert("polygon", ":first-child").attr( "points", n.map(function(s) { @@ -116261,7 +116286,7 @@ function h2e(t, e, r, n, i) { }).join(" ") ).attr("transform", "translate(" + (i.width - e) / 2 + ", " + r + ")"); } -x(h2e, "insertPolygonShape"); +x(f2e, "insertPolygonShape"); var gcr = /* @__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 }, @@ -116271,7 +116296,7 @@ var gcr = /* @__PURE__ */ x(function(t, e, r) { { x: s, y: -n }, { x: 0, y: -n / 2 } ]; - h2e(e, a, n, o, r); + f2e(e, a, n, o, r); }, "hexagonBkg"), mcr = /* @__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"), vcr = /* @__PURE__ */ x(async function(t, e, r, n, i) { @@ -116352,7 +116377,7 @@ async function yB(t, e, r, n, i) { ); } x(yB, "drawNodes"); -function f2e(t, e) { +function d2e(t, e) { e.edges().map((r, n) => { const i = r.data(); if (r[0]._private.bodyBounds) { @@ -116364,7 +116389,7 @@ function f2e(t, e) { } }); } -x(f2e, "drawEdges"); +x(d2e, "drawEdges"); function bB(t, e, r, n) { e.add({ group: "nodes", @@ -116396,7 +116421,7 @@ function bB(t, e, r, n) { }); } x(bB, "addNodes"); -function d2e(t, e) { +function p2e(t, e) { return new Promise((r) => { const n = ht("body").append("div").attr("id", "cy").attr("style", "display:none"), i = gu({ container: document.getElementById("cy"), @@ -116424,8 +116449,8 @@ function d2e(t, e) { }); }); } -x(d2e, "layoutMindmap"); -function p2e(t, e) { +x(p2e, "layoutMindmap"); +function g2e(t, e) { e.nodes().map((r, n) => { const i = r.data(); i.x = r.position().x, i.y = r.position().y, ycr(t, i); @@ -116436,7 +116461,7 @@ function p2e(t, e) { ), s.attr("attr", `apa-${n})`); }); } -x(p2e, "positionNodes"); +x(g2e, "positionNodes"); var bcr = /* @__PURE__ */ x(async (t, e, r, n) => { var f, d, p, g; Z.debug(`Rendering mindmap diagram @@ -116450,8 +116475,8 @@ var bcr = /* @__PURE__ */ x(async (t, e, r, n) => { l.attr("class", "mindmap-edges"); const u = o.append("g"); u.attr("class", "mindmap-nodes"), await yB(i, u, s, -1, a); - const h = await d2e(s, a); - f2e(l, h), p2e(i, h), P1( + const h = await p2e(s, a); + d2e(l, h), g2e(i, h), P1( void 0, o, (d = (f = a.mindmap) == null ? void 0 : f.padding) != null ? d : cn.mindmap.padding, @@ -116533,7 +116558,7 @@ const Tcr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty( __proto__: null, diagram: Scr }, Symbol.toStringTag, { value: "Module" })); -function pj(t, e) { +function gj(t, e) { let r; if (e === void 0) for (const n of t) @@ -116545,7 +116570,7 @@ function pj(t, e) { } return r; } -function g2e(t, e) { +function m2e(t, e) { let r; if (e === void 0) for (const n of t) @@ -116578,21 +116603,21 @@ function Ecr(t) { function _cr(t, e) { return e - 1 - t.height; } -function m2e(t, e) { +function v2e(t, e) { return t.sourceLinks.length ? t.depth : e - 1; } function Acr(t) { - return t.targetLinks.length ? t.depth : t.sourceLinks.length ? g2e(t.sourceLinks, Ccr) - 1 : 0; + return t.targetLinks.length ? t.depth : t.sourceLinks.length ? m2e(t.sourceLinks, Ccr) - 1 : 0; } function U4(t) { return function() { return t; }; } -function gj(t, e) { +function mj(t, e) { return vT(t.source, e.source) || t.index - e.index; } -function mj(t, e) { +function vj(t, e) { return vT(t.target, e.target) || t.index - e.index; } function vT(t, e) { @@ -116610,13 +116635,13 @@ function Rcr(t) { function Mcr(t) { return t.links; } -function vj(t, e) { +function yj(t, e) { const r = t.get(e); if (!r) throw new Error("missing: " + e); return r; } -function yj({ nodes: t }) { +function bj({ nodes: t }) { for (const e of t) { let r = e.y0, n = r; for (const i of e.sourceLinks) @@ -116626,13 +116651,13 @@ function yj({ nodes: t }) { } } function Dcr() { - let t = 0, e = 0, r = 1, n = 1, i = 24, s = 8, a, o = Lcr, l = m2e, u, h, f = Rcr, d = Mcr, p = 6; + let t = 0, e = 0, r = 1, n = 1, i = 24, s = 8, a, o = Lcr, l = v2e, u, h, f = Rcr, d = Mcr, p = 6; function g() { const P = { nodes: f.apply(null, arguments), links: d.apply(null, arguments) }; - return m(P), v(P), y(P), b(P), S(P), yj(P), P; + return m(P), v(P), y(P), b(P), S(P), bj(P), P; } g.update = function(P) { - return yj(P), P; + return bj(P), P; }, g.nodeId = function(P) { return arguments.length ? (o = typeof P == "function" ? P : U4(P), g) : o; }, g.nodeAlign = function(P) { @@ -116663,7 +116688,7 @@ function Dcr() { for (const [D, I] of M.entries()) { I.index = D; let { source: F, target: B } = I; - typeof F != "object" && (F = I.source = vj(N, F)), typeof B != "object" && (B = I.target = vj(N, B)), F.sourceLinks.push(I), B.targetLinks.push(I); + typeof F != "object" && (F = I.source = yj(N, F)), typeof B != "object" && (B = I.target = yj(N, B)), F.sourceLinks.push(I), B.targetLinks.push(I); } if (h != null) for (const { sourceLinks: D, targetLinks: I } of P) @@ -116702,7 +116727,7 @@ function Dcr() { } } function w({ nodes: P }) { - const M = pj(P, (I) => I.depth) + 1, N = (r - t - i) / (M - 1), D = new Array(M); + const M = gj(P, (I) => I.depth) + 1, N = (r - t - i) / (M - 1), D = new Array(M); for (const I of P) { const F = Math.max(0, Math.min(M - 1, Math.floor(l.call(null, I, M)))); I.layer = F, I.x0 = t + F * N, I.x1 = I.x0 + i, D[F] ? D[F].push(I) : D[F] = [I]; @@ -116713,7 +116738,7 @@ function Dcr() { return D; } function O(P) { - const M = g2e(P, (N) => (n - e - (N.length - 1) * a) / O7(N, k7)); + const M = m2e(P, (N) => (n - e - (N.length - 1) * a) / O7(N, k7)); for (const N of P) { let D = e; for (const I of N) { @@ -116731,7 +116756,7 @@ function Dcr() { } function S(P) { const M = w(P); - a = Math.min(s, (n - e) / (pj(M, (N) => N.length) - 1)), O(M); + a = Math.min(s, (n - e) / (gj(M, (N) => N.length) - 1)), O(M); for (let N = 0; N < p; ++N) { const D = Math.pow(0.99, N), I = Math.max(1 - D, (N + 1) / p); T(M, D, I), C(M, D, I); @@ -116790,15 +116815,15 @@ function Dcr() { function _({ sourceLinks: P, targetLinks: M }) { if (h === void 0) { for (const { source: { sourceLinks: N } } of M) - N.sort(mj); + N.sort(vj); for (const { target: { targetLinks: N } } of P) - N.sort(gj); + N.sort(mj); } } function R(P) { if (h === void 0) for (const { sourceLinks: M, targetLinks: N } of P) - M.sort(mj), N.sort(gj); + M.sort(vj), N.sort(mj); } function $(P, M) { let N = P.y0 - (P.sourceLinks.length - 1) * a / 2; @@ -116834,10 +116859,10 @@ var EM = Math.PI, _M = 2 * EM, Yd = 1e-6, Pcr = _M - Yd; function AM() { this._x0 = this._y0 = this._x1 = this._y1 = null, this._ = ""; } -function v2e() { +function y2e() { return new AM(); } -AM.prototype = v2e.prototype = { +AM.prototype = y2e.prototype = { constructor: AM, moveTo: function(t, e) { this._ += "M" + (this._x0 = this._x1 = +t) + "," + (this._y0 = this._y1 = +e); @@ -116883,7 +116908,7 @@ AM.prototype = v2e.prototype = { return this._; } }; -function bj(t) { +function xj(t) { return function() { return t; }; @@ -116905,7 +116930,7 @@ function zcr(t) { var e = Bcr, r = Fcr, n = Ncr, i = Icr, s = null; function a() { var o, l = $cr.call(arguments), u = e.apply(this, l), h = r.apply(this, l); - if (s || (s = o = v2e()), 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) + if (s || (s = o = y2e()), 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) { @@ -116913,9 +116938,9 @@ function zcr(t) { }, a.target = function(o) { return arguments.length ? (r = o, a) : r; }, a.x = function(o) { - return arguments.length ? (n = typeof o == "function" ? o : bj(+o), a) : n; + return arguments.length ? (n = typeof o == "function" ? o : xj(+o), a) : n; }, a.y = function(o) { - return arguments.length ? (i = typeof o == "function" ? o : bj(+o), a) : i; + return arguments.length ? (i = typeof o == "function" ? o : xj(+o), a) : i; }, a.context = function(o) { return arguments.length ? (s = o == null ? null : o, a) : s; }, a; @@ -117267,7 +117292,7 @@ var yT = LM, r_ = [], n_ = [], bT = /* @__PURE__ */ new Map(), Wcr = /* @__PURE_ getDiagramTitle: $s, setDiagramTitle: Na, clear: Wcr -}, xf, xj = (xf = class { +}, xf, wj = (xf = class { static next(e) { return new xf(e + ++xf.count); } @@ -117285,10 +117310,10 @@ var yT = LM, r_ = [], n_ = [], bT = /* @__PURE__ */ new Map(), Wcr = /* @__PURE_ left: Ecr, right: _cr, center: Acr, - justify: m2e + justify: v2e }, rur = /* @__PURE__ */ x(function(t, e, r, n) { var L, _, R, $, k, P, M, N; - const { securityLevel: i, sankey: s } = ke(), a = cae.sankey; + const { securityLevel: i, sankey: s } = ke(), a = uae.sankey; let o; i === "sandbox" && (o = ht("#i" + e)); const l = ht(i === "sandbox" ? o.nodes()[0].contentDocument.body : "body"), u = i === "sandbox" ? l.select(`[id="${e}"]`) : ht(`[id="${e}"]`), h = (L = s == null ? void 0 : s.width) != null ? L : a.width, f = (_ = s == null ? void 0 : s.height) != null ? _ : a.width, d = (R = s == null ? void 0 : s.useMaxWidth) != null ? R : 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 = (P = s == null ? void 0 : s.suffix) != null ? P : a.suffix, v = (M = s == null ? void 0 : s.showValues) != null ? M : a.showValues, y = n.db.getGraph(), b = tur[p], w = 10; @@ -117297,7 +117322,7 @@ var yT = LM, r_ = [], n_ = [], bT = /* @__PURE__ */ new Map(), Wcr = /* @__PURE_ [h, f] ])(y); const S = RC(_kt); - u.append("g").attr("class", "nodes").selectAll(".node").data(y.nodes).join("g").attr("class", "node").attr("id", (D) => (D.uid = xj.next("node-")).id).attr("transform", function(D) { + u.append("g").attr("class", "nodes").selectAll(".node").data(y.nodes).join("g").attr("class", "node").attr("id", (D) => (D.uid = wj.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: I }) => v ? `${D} @@ -117305,7 +117330,7 @@ ${g}${Math.round(I * 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"), A = (N = s == null ? void 0 : s.linkColor) != null ? N : "gradient"; if (A === "gradient") { - const D = T.append("linearGradient").attr("id", (I) => (I.uid = xj.next("linearGradient-")).id).attr("gradientUnits", "userSpaceOnUse").attr("x1", (I) => I.source.x1).attr("x2", (I) => I.target.x0); + const D = T.append("linearGradient").attr("id", (I) => (I.uid = wj.next("linearGradient-")).id).attr("gradientUnits", "userSpaceOnUse").attr("x1", (I) => I.source.x1).attr("x2", (I) => I.target.x0); D.append("stop").attr("offset", "0%").attr("stop-color", (I) => S(I.source.id)), D.append("stop").attr("offset", "100%").attr("stop-color", (I) => S(I.target.id)); } let E; @@ -117337,9 +117362,9 @@ const our = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty( __proto__: null, diagram: aur }, Symbol.toStringTag, { value: "Module" })); -var y2e = { +var b2e = { packet: [] -}, xB = structuredClone(y2e), lur = cn.packet, cur = /* @__PURE__ */ x(() => { +}, xB = structuredClone(b2e), lur = cn.packet, cur = /* @__PURE__ */ x(() => { const t = $h({ ...lur, ...Li().packet @@ -117348,7 +117373,7 @@ var y2e = { }, "getConfig"), uur = /* @__PURE__ */ x(() => xB.packet, "getPacket"), hur = /* @__PURE__ */ x((t) => { t.length > 0 && xB.packet.push(t); }, "pushWord"), fur = /* @__PURE__ */ x(() => { - us(), xB = structuredClone(y2e); + us(), xB = structuredClone(b2e); }, "clear"), gg = { pushWord: hur, getPacket: uur, @@ -118045,19 +118070,19 @@ Expecting ` + J.join(", ") + ", got '" + (this.terminals_[G] || G) + "'" : oe = return x(b, "Parser"), b.prototype = v, v.Parser = b, new b(); }(); RM.parser = RM; -var Sur = RM, ec = /* @__PURE__ */ new Map(), wB = [], MM = /* @__PURE__ */ new Map(), wj = "color", Oj = "fill", Tur = "bgFill", b2e = ",", Cur = ke(), xT = /* @__PURE__ */ new Map(), Eur = /* @__PURE__ */ x((t) => mt.sanitizeText(t, Cur), "sanitizeText"), _ur = /* @__PURE__ */ x(function(t, e = "") { +var Sur = RM, ec = /* @__PURE__ */ new Map(), wB = [], MM = /* @__PURE__ */ new Map(), Oj = "color", kj = "fill", Tur = "bgFill", x2e = ",", Cur = ke(), xT = /* @__PURE__ */ new Map(), Eur = /* @__PURE__ */ x((t) => mt.sanitizeText(t, Cur), "sanitizeText"), _ur = /* @__PURE__ */ x(function(t, e = "") { let r = xT.get(t); - r || (r = { id: t, styles: [], textStyles: [] }, xT.set(t, r)), e != null && e.split(b2e).forEach((n) => { + r || (r = { id: t, styles: [], textStyles: [] }, xT.set(t, r)), e != null && e.split(x2e).forEach((n) => { const i = n.replace(/([^;]*);/, "$1").trim(); - if (RegExp(wj).exec(n)) { - const a = i.replace(Oj, Tur).replace(wj, Oj); + if (RegExp(Oj).exec(n)) { + const a = i.replace(kj, Tur).replace(Oj, kj); r.textStyles.push(a); } r.styles.push(i); }); }, "addStyleClass"), Aur = /* @__PURE__ */ x(function(t, e = "") { const r = ec.get(t); - e != null && (r.styles = e.split(b2e)); + e != null && (r.styles = e.split(x2e)); }, "addStyle2Node"), Lur = /* @__PURE__ */ x(function(t, e) { t.split(",").forEach(function(r) { let n = ec.get(r); @@ -118067,7 +118092,7 @@ var Sur = RM, ec = /* @__PURE__ */ new Map(), wB = [], MM = /* @__PURE__ */ new } n.classes || (n.classes = []), n.classes.push(e); }); -}, "setCssClass"), x2e = /* @__PURE__ */ x((t, e) => { +}, "setCssClass"), w2e = /* @__PURE__ */ x((t, e) => { var i, s, a, o; const r = t.flat(), n = []; for (const l of r) { @@ -118091,7 +118116,7 @@ var Sur = RM, ec = /* @__PURE__ */ new Map(), wB = [], MM = /* @__PURE__ */ new } else { l.label || (l.type === "composite" ? l.label = "" : l.label = l.id); const u = ec.get(l.id); - if (u === void 0 ? ec.set(l.id, l) : (l.type !== "na" && (u.type = l.type), l.label !== l.id && (u.label = l.label)), l.children && x2e(l.children, l), l.type === "space") { + if (u === void 0 ? ec.set(l.id, l) : (l.type !== "na" && (u.type = l.type), l.label !== l.id && (u.label = l.label)), l.children && w2e(l.children, l), l.type === "space") { const h = (o = l.width) != null ? o : 1; for (let f = 0; f < h; f++) { const d = Hi(l); @@ -118105,7 +118130,7 @@ var Sur = RM, ec = /* @__PURE__ */ new Map(), wB = [], MM = /* @__PURE__ */ new }, "populateBlockDatabase"), OB = [], o2 = { id: "root", type: "composite", children: [], columns: -1 }, Rur = /* @__PURE__ */ x(() => { Z.debug("Clear called"), us(), o2 = { id: "root", type: "composite", children: [], columns: -1 }, ec = /* @__PURE__ */ new Map([["root", o2]]), OB = [], xT = /* @__PURE__ */ new Map(), wB = [], MM = /* @__PURE__ */ new Map(); }, "clear"); -function w2e(t) { +function O2e(t) { switch (Z.debug("typeStr2Type", t), t) { case "[]": return "square"; @@ -118141,8 +118166,8 @@ function w2e(t) { return "na"; } } -x(w2e, "typeStr2Type"); -function O2e(t) { +x(O2e, "typeStr2Type"); +function k2e(t) { switch (Z.debug("typeStr2Type", t), t) { case "==": return "thick"; @@ -118150,8 +118175,8 @@ function O2e(t) { return "normal"; } } -x(O2e, "edgeTypeStr2Type"); -function k2e(t) { +x(k2e, "edgeTypeStr2Type"); +function S2e(t) { switch (t.trim()) { case "--x": return "arrow_cross"; @@ -118161,9 +118186,9 @@ function k2e(t) { return "arrow_point"; } } -x(k2e, "edgeStrToEdgeData"); -var kj = 0, Mur = /* @__PURE__ */ x(() => (kj++, "id-" + Math.random().toString(36).substr(2, 12) + "-" + kj), "generateId"), Dur = /* @__PURE__ */ x((t) => { - o2.children = t, x2e(t, o2), OB = o2.children; +x(S2e, "edgeStrToEdgeData"); +var Sj = 0, Mur = /* @__PURE__ */ x(() => (Sj++, "id-" + Math.random().toString(36).substr(2, 12) + "-" + Sj), "generateId"), Dur = /* @__PURE__ */ x((t) => { + o2.children = t, w2e(t, o2), OB = o2.children; }, "setHierarchy"), Pur = /* @__PURE__ */ x((t) => { const e = ec.get(t); return e ? e.columns ? e.columns : e.children ? e.children.length : -1 : -1; @@ -118173,9 +118198,9 @@ var kj = 0, Mur = /* @__PURE__ */ x(() => (kj++, "id-" + Math.random().toString( return xT; }, "getClasses"), Uur = { getConfig: /* @__PURE__ */ x(() => Li().block, "getConfig"), - typeStr2Type: w2e, - edgeTypeStr2Type: O2e, - edgeStrToEdgeData: k2e, + typeStr2Type: O2e, + edgeTypeStr2Type: k2e, + edgeStrToEdgeData: S2e, getLogger: zur, getBlocksFlat: Nur, getBlocks: Iur, @@ -118188,7 +118213,7 @@ var kj = 0, Mur = /* @__PURE__ */ x(() => (kj++, "id-" + Math.random().toString( clear: Rur, generateId: Mur }, Vur = Uur, V4 = /* @__PURE__ */ x((t, e) => { - const r = zse, n = r(t, "r"), i = r(t, "g"), s = r(t, "b"); + const r = Qse, n = r(t, "r"), i = r(t, "g"), s = r(t, "b"); return E0(n, i, s, e); }, "fade"), qur = /* @__PURE__ */ x((t) => `.label { font-family: ${t.fontFamily}; @@ -118302,8 +118327,8 @@ var kj = 0, Mur = /* @__PURE__ */ x(() => (kj++, "id-" + Math.random().toString( font-size: 18px; fill: ${t.textColor}; } -`, "getStyles"), Yur = qur, Aj, Lj, Rj, li = (Rj = (Lj = (Aj = ke()) == null ? void 0 : Aj.block) == null ? void 0 : Lj.padding) != null ? Rj : 8; -function S2e(t, e) { +`, "getStyles"), Yur = qur, Lj, Rj, Mj, li = (Mj = (Rj = (Lj = ke()) == null ? void 0 : Lj.block) == null ? void 0 : Rj.padding) != null ? Mj : 8; +function T2e(t, e) { if (t === 0 || !Number.isInteger(t)) throw new Error("Columns must be an integer !== 0."); if (e < 0 || !Number.isInteger(e)) @@ -118315,7 +118340,7 @@ function S2e(t, e) { const r = e % t, n = Math.floor(e / t); return { px: r, py: n }; } -x(S2e, "calculateBlockPosition"); +x(T2e, "calculateBlockPosition"); var Wur = /* @__PURE__ */ x((t) => { var n, i; let e = 0, r = 0; @@ -118429,7 +118454,7 @@ function kB(t, e) { const P = t; if (!k.size) continue; - const { width: M, height: N } = k.size, { px: D, py: I } = S2e(r, _); + const { width: M, height: N } = k.size, { px: D, py: I } = T2e(r, _); if (I != $ && ($ = I, R = (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) : -li, Z.debug("New row in layout for block", t.id, " and child ", k.id, $)), Z.debug( `abc89 layout blocks (child) id: ${k.id} Pos: ${_} (px, py) ${D},${I} (${(y = P == null ? void 0 : P.size) == null ? void 0 : y.x},${(b = P == null ? void 0 : P.size) == null ? void 0 : b.y}) parent: ${P.id} width: ${M}${li}` ), P.size) { @@ -118459,7 +118484,7 @@ function SB(t, { minX: e, minY: r, maxX: n, maxY: i } = { minX: 0, minY: 0, maxX return { minX: e, minY: r, maxX: n, maxY: i }; } x(SB, "findBounds"); -function T2e(t) { +function C2e(t) { const e = t.getBlock("root"); if (!e) return; @@ -118467,7 +118492,7 @@ function T2e(t) { const { minX: r, minY: n, maxX: i, maxY: s } = SB(e), a = s - n, o = i - r; return { x: r, y: n, width: o, height: a }; } -x(T2e, "layout"); +x(C2e, "layout"); function TB(t, e, r = !1) { var d, p, g, m, v, y, b; const n = t; @@ -118557,33 +118582,33 @@ function TB(t, e, r = !1) { }; } x(TB, "getNodeFromBlock"); -async function C2e(t, e, r) { +async function E2e(t, e, r) { const n = TB(e, r, !1); if (n.type === "group") return; const i = await EI(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(C2e, "calculateBlockSize"); -async function E2e(t, e, r) { +x(E2e, "calculateBlockSize"); +async function _2e(t, e, r) { const n = TB(e, r, !0); r.getBlock(n.id).type !== "space" && (await EI(t, n), e.intersect = n == null ? void 0 : n.intersect, HL(n)); } -x(E2e, "insertBlockPositioned"); +x(_2e, "insertBlockPositioned"); async function i_(t, e, r, n) { for (const i of e) await n(t, i, r), i.children && await i_(t, i.children, r, n); } x(i_, "performOperations"); -async function _2e(t, e, r) { - await i_(t, e, r, C2e); -} -x(_2e, "calculateBlockSizes"); async function A2e(t, e, r) { await i_(t, e, r, E2e); } -x(A2e, "insertBlocks"); -async function L2e(t, e, r, n, i) { +x(A2e, "calculateBlockSizes"); +async function L2e(t, e, r) { + await i_(t, e, r, _2e); +} +x(L2e, "insertBlocks"); +async function R2e(t, e, r, n, i) { const s = new Ji({ multigraph: !0, compound: !0 @@ -118610,7 +118635,7 @@ async function L2e(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 } ]; - S1e( + T1e( t, { v: a.start, w: a.end, name: a.id }, { @@ -118624,7 +118649,7 @@ async function L2e(t, e, r, n, i) { "block", s, i - ), a.label && (await O1e(t, { + ), a.label && (await k1e(t, { ...a, label: a.label, labelStyle: "stroke: #333; stroke-width: 1.5px;fill:none;", @@ -118632,7 +118657,7 @@ async function L2e(t, e, r, n, i) { arrowTypeStart: a.arrowTypeStart, points: f, classes: "edge-thickness-normal edge-pattern-solid flowchart-link LS-a1 LE-b1" - }), k1e( + }), S1e( { ...a, x: f[1].x, y: f[1].y }, { originalPath: f @@ -118641,7 +118666,7 @@ async function L2e(t, e, r, n, i) { } } } -x(L2e, "insertEdges"); +x(R2e, "insertEdges"); var Gur = /* @__PURE__ */ x(function(t, e) { return e.db.getClasses(); }, "getClasses"), Xur = /* @__PURE__ */ x(async function(t, e, r, n) { @@ -118649,11 +118674,11 @@ var Gur = /* @__PURE__ */ x(function(t, e) { let o; i === "sandbox" && (o = ht("#i" + e)); const l = ht(i === "sandbox" ? o.nodes()[0].contentDocument.body : "body"), u = i === "sandbox" ? l.select(`[id="${e}"]`) : ht(`[id="${e}"]`); - w1e(u, ["point", "circle", "cross"], n.type, e); + O1e(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 _2e(g, f, a); - const m = T2e(a); - if (await A2e(g, f, a), await L2e(g, p, d, a, e), m) { + await A2e(g, f, a); + const m = C2e(a); + if (await L2e(g, f, a), await R2e(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; Ds(u, b, w, !!O), Z.debug("Here Bounds", m, v), u.attr( "viewBox", @@ -118673,9 +118698,9 @@ const jur = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty( __proto__: null, diagram: Zur }, Symbol.toStringTag, { value: "Module" })); -var R2e = { exports: {} }, S7 = { exports: {} }, T7 = { exports: {} }, Sj; +var M2e = { exports: {} }, S7 = { exports: {} }, T7 = { exports: {} }, Tj; function Kur() { - return Sj || (Sj = 1, function(t, e) { + return Tj || (Tj = 1, function(t, e) { (function(n, i) { t.exports = i(); })(wa, function() { @@ -120503,9 +120528,9 @@ function Kur() { }); }(T7)), T7.exports; } -var Tj; +var Cj; function Jur() { - return Tj || (Tj = 1, function(t, e) { + return Cj || (Cj = 1, function(t, e) { (function(n, i) { t.exports = i(Kur()); })(wa, function(r) { @@ -122300,14 +122325,14 @@ function Jur() { return a; })(); }); -})(R2e); -const ehr = R2e.exports; -var Cj = { +})(M2e); +const ehr = M2e.exports; +var Ej = { L: "left", R: "right", T: "top", B: "bottom" -}, Ej = { +}, _j = { 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"), @@ -122319,7 +122344,7 @@ var Cj = { B: /* @__PURE__ */ x((t, e) => t - 2, "B") }, thr = /* @__PURE__ */ x(function(t) { return Ya(t) ? t === "L" ? "R" : "L" : t === "T" ? "B" : "T"; -}, "getOppositeArchitectureDirection"), _j = /* @__PURE__ */ x(function(t) { +}, "getOppositeArchitectureDirection"), Aj = /* @__PURE__ */ x(function(t) { const e = t; return e === "L" || e === "R" || e === "T" || e === "B"; }, "isArchitectureDirection"), Ya = /* @__PURE__ */ x(function(t) { @@ -122328,7 +122353,7 @@ var Cj = { }, "isArchitectureDirectionX"), fd = /* @__PURE__ */ x(function(t) { const e = t; return e === "T" || e === "B"; -}, "isArchitectureDirectionY"), M2e = /* @__PURE__ */ x(function(t, e) { +}, "isArchitectureDirectionY"), D2e = /* @__PURE__ */ x(function(t, e) { const r = Ya(t) && fd(e), n = fd(t) && Ya(e); return r || n; }, "isArchitectureDirectionXY"), rhr = /* @__PURE__ */ x(function(t) { @@ -122348,12 +122373,12 @@ var Cj = { return t.type === "service"; }, "isArchitectureService"), ohr = /* @__PURE__ */ x(function(t) { return t.type === "junction"; -}, "isArchitectureJunction"), D2e = /* @__PURE__ */ x((t) => t.data(), "edgeData"), Lg = /* @__PURE__ */ x((t) => t.data(), "nodeData"), P2e = cn.architecture, Sr = new DI(() => ({ +}, "isArchitectureJunction"), P2e = /* @__PURE__ */ x((t) => t.data(), "edgeData"), Lg = /* @__PURE__ */ x((t) => t.data(), "nodeData"), N2e = cn.architecture, Sr = new DI(() => ({ nodes: {}, groups: {}, edges: [], registeredIds: {}, - config: P2e, + config: N2e, dataStructures: void 0, elements: {} })), lhr = /* @__PURE__ */ x(() => { @@ -122427,11 +122452,11 @@ var Cj = { rhsGroup: o, title: l }) { - if (!_j(r)) + if (!Aj(r)) throw new Error( `Invalid direction given for left hand side of edge ${t}--${e}. Expected (L,R,T,B) got ${r}` ); - if (!_j(n)) + if (!Aj(n)) throw new Error( `Invalid direction given for right hand side of edge ${t}--${e}. Expected (L,R,T,B) got ${n}` ); @@ -122529,7 +122554,7 @@ var Cj = { }; function Yi(t) { const e = ke().architecture; - return e != null && e[t] ? e[t] : P2e[t]; + return e != null && e[t] ? e[t] : N2e[t]; } x(Yi, "getConfigField"); var Ohr = /* @__PURE__ */ x((t, e) => { @@ -122600,7 +122625,7 @@ var Ohr = /* @__PURE__ */ x((t, e) => { '' ) }, - unknown: fae, + unknown: dae, blank: { body: sg("") } @@ -122620,7 +122645,7 @@ var Ohr = /* @__PURE__ */ x((t, e) => { targetArrow: g, targetGroup: m, label: v - } = D2e(o); + } = P2e(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(); @@ -122629,14 +122654,14 @@ var Ohr = /* @__PURE__ */ x((t, e) => { const L = t.insert("g"); if (L.insert("path").attr("d", `M ${y},${b} L ${w},${O} L${S},${C} `).attr("class", "edge"), h) { const _ = Ya(u) ? q4[u](y, s) : y - a, R = fd(u) ? q4[u](b, s) : b - a; - L.insert("polygon").attr("points", Ej[u](s)).attr("transform", `translate(${_},${R})`).attr("class", "arrow"); + L.insert("polygon").attr("points", _j[u](s)).attr("transform", `translate(${_},${R})`).attr("class", "arrow"); } if (g) { const _ = Ya(p) ? q4[p](S, s) : S - a, R = fd(p) ? q4[p](C, s) : C - a; - L.insert("polygon").attr("points", Ej[p](s)).attr("transform", `translate(${_},${R})`).attr("class", "arrow"); + L.insert("polygon").attr("points", _j[p](s)).attr("transform", `translate(${_},${R})`).attr("class", "arrow"); } if (v) { - const _ = M2e(u, p) ? "XY" : Ya(u) ? "X" : "Y"; + const _ = D2e(u, p) ? "XY" : Ya(u) ? "X" : "Y"; let R = 0; _ === "X" ? R = Math.abs(y - S) : _ === "Y" ? R = Math.abs(b - C) / 1.5 : R = Math.abs(y - S) / 2; const $ = L.append("g"); @@ -122759,14 +122784,14 @@ var Ohr = /* @__PURE__ */ x((t, e) => { i.width = o, i.height = l, t.setElementForId(n.id, i); }); }, "drawJunctions"); -pae([ +gae([ { name: Gb.prefix, icons: Gb } ]); gu.use(ehr); -function N2e(t, e) { +function I2e(t, e) { t.forEach((r) => { e.add({ group: "nodes", @@ -122783,8 +122808,8 @@ function N2e(t, e) { }); }); } -x(N2e, "addServices"); -function I2e(t, e) { +x(I2e, "addServices"); +function $2e(t, e) { t.forEach((r) => { e.add({ group: "nodes", @@ -122799,8 +122824,8 @@ function I2e(t, e) { }); }); } -x(I2e, "addJunctions"); -function $2e(t, e) { +x($2e, "addJunctions"); +function B2e(t, e) { e.nodes().map((r) => { const n = Lg(r); if (n.type === "group") @@ -122808,8 +122833,8 @@ function $2e(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($2e, "positionNodes"); -function B2e(t, e) { +x(B2e, "positionNodes"); +function F2e(t, e) { t.forEach((r) => { e.add({ group: "nodes", @@ -122824,10 +122849,10 @@ function B2e(t, e) { }); }); } -x(B2e, "addGroups"); -function F2e(t, e) { +x(F2e, "addGroups"); +function z2e(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 = M2e(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 = D2e(r.lhsDir, r.rhsDir) ? "segments" : "straight", p = { id: `${n}-${i}`, label: f, source: n, @@ -122848,8 +122873,8 @@ function F2e(t, e) { }); }); } -x(F2e, "addEdges"); -function z2e(t) { +x(z2e, "addEdges"); +function Q2e(t) { const e = t.map((i) => { const s = {}, a = {}; return Object.entries(i).forEach(([o, [l, u]]) => { @@ -122870,8 +122895,8 @@ function z2e(t) { vertical: n }; } -x(z2e, "getAlignments"); -function Q2e(t) { +x(Q2e, "getAlignments"); +function U2e(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( @@ -122892,8 +122917,8 @@ function Q2e(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({ - [Cj[d]]: m, - [Cj[thr(d)]]: h, + [Ej[d]]: m, + [Ej[thr(d)]]: h, gap: 1.5 * Yi("iconSize") })); }); @@ -122902,8 +122927,8 @@ function Q2e(t) { } }), e; } -x(Q2e, "getRelativeConstraints"); -function U2e(t, e, r, n, { spatialMaps: i }) { +x(U2e, "getRelativeConstraints"); +function V2e(t, e, r, n, { spatialMaps: i }) { return new Promise((s) => { const a = ht("body").append("div").attr("id", "cy").attr("style", "display:none"), o = gu({ container: document.getElementById("cy"), @@ -122965,8 +122990,8 @@ function U2e(t, e, r, n, { spatialMaps: i }) { } ] }); - a.remove(), B2e(r, o), N2e(t, o), I2e(e, o), F2e(n, o); - const l = z2e(i), u = Q2e(i), h = o.layout({ + a.remove(), F2e(r, o), I2e(t, o), $2e(e, o), z2e(n, o); + const l = Q2e(i), u = U2e(i), h = o.layout({ name: "fcose", quality: "proof", styleEnabled: !1, @@ -123019,7 +123044,7 @@ function U2e(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 } = D2e(p), [S, C] = fd(O) ? [b.x, w.y] : [w.x, b.y], { weights: T, distances: A } = f(b, w, S, C); + const b = p.sourceEndpoint(), w = p.targetEndpoint(), { sourceDir: O } = P2e(p), [S, C] = fd(O) ? [b.x, w.y] : [w.x, b.y], { weights: T, distances: A } = f(b, w, S, C); p.style("segment-distances", A), p.style("segment-weights", T); } } @@ -123029,7 +123054,7 @@ function U2e(t, e, r, n, { spatialMaps: i }) { }); }); } -x(U2e, "layoutArchitecture"); +x(V2e, "layoutArchitecture"); var Lhr = /* @__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 = Rp(e), f = h.append("g"); f.attr("class", "architecture-edges"); @@ -123037,8 +123062,8 @@ var Lhr = /* @__PURE__ */ x(async (t, e, r, n) => { d.attr("class", "architecture-services"); const p = h.append("g"); p.attr("class", "architecture-groups"), await _hr(i, d, s), Ahr(i, d, a); - const g = await U2e(s, a, o, l, u); - await Chr(f, g), await Ehr(p, g), $2e(i, g), P1(void 0, h, Yi("padding"), Yi("useMaxWidth")); + const g = await V2e(s, a, o, l, u); + await Chr(f, g), await Ehr(p, g), B2e(i, g), P1(void 0, h, Yi("padding"), Yi("useMaxWidth")); }, "draw"), Rhr = { draw: Lhr }, Mhr = { parser: khr, db: OT, @@ -123050,28 +123075,28 @@ const Dhr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty( diagram: Mhr }, Symbol.toStringTag, { value: "Module" })), Phr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - InfoModule: Qge, - createInfoServices: Uge + InfoModule: Uge, + createInfoServices: Vge }, Symbol.toStringTag, { value: "Module" })), Nhr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - PacketModule: Vge, - createPacketServices: qge + PacketModule: qge, + createPacketServices: Yge }, Symbol.toStringTag, { value: "Module" })), Ihr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - PieModule: Yge, - createPieServices: Wge + PieModule: Wge, + createPieServices: Gge }, Symbol.toStringTag, { value: "Module" })), $hr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - ArchitectureModule: Gge, - createArchitectureServices: Xge + ArchitectureModule: Xge, + createArchitectureServices: Hge }, Symbol.toStringTag, { value: "Module" })), Bhr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - GitGraphModule: Fge, - createGitGraphServices: zge + GitGraphModule: zge, + createGitGraphServices: Qge }, Symbol.toStringTag, { value: "Module" })); export { Uhr as MystEditorGit, - afe as MystEditorPreact, + ofe as MystEditorPreact, Tv as batch, lP as computed, Vhr as default, diff --git a/docs/collaboration.html b/docs/collaboration.html index f067a88..e219d88 100644 --- a/docs/collaboration.html +++ b/docs/collaboration.html @@ -404,7 +404,7 @@

Other Collaborative FeaturesOther Collaborative Features86b522ea + 57cc9e23 @ main diff --git a/docs/comments.html b/docs/comments.html index df142af..7b0ecb9 100644 --- a/docs/comments.html +++ b/docs/comments.html @@ -569,7 +569,7 @@

Suggestions Last update: - 2024-12-20 + 2024-12-25 @@ -622,7 +622,7 @@

Suggestions - 86b522ea + 57cc9e23 @ main diff --git a/docs/genindex.html b/docs/genindex.html index a6e2e34..cc899ab 100644 --- a/docs/genindex.html +++ b/docs/genindex.html @@ -335,7 +335,7 @@ Last update: - 2024-12-20 + 2024-12-25 @@ -367,7 +367,7 @@ - 86b522ea + 57cc9e23 @ main diff --git a/docs/index.html b/docs/index.html index 69200fc..f244604 100644 --- a/docs/index.html +++ b/docs/index.html @@ -373,7 +373,7 @@

MyST Editor - User Manual Last update: - 2024-12-20 + 2024-12-25 @@ -426,7 +426,7 @@

MyST Editor - User Manual - 86b522ea + 57cc9e23 @ main diff --git a/docs/introduction.html b/docs/introduction.html index 8f6e610..099429f 100644 --- a/docs/introduction.html +++ b/docs/introduction.html @@ -358,7 +358,7 @@

Introduction Last update: - 2024-12-20 + 2024-12-25 @@ -426,7 +426,7 @@

Introduction - 86b522ea + 57cc9e23 @ main diff --git a/docs/mermaid.html b/docs/mermaid.html index c166f16..c731e47 100644 --- a/docs/mermaid.html +++ b/docs/mermaid.html @@ -362,7 +362,7 @@

Mermaid DiagramsMermaid Diagrams86b522ea + 57cc9e23 @ main diff --git a/docs/rich-links.html b/docs/rich-links.html index 1e37d6c..b43e3ca 100644 --- a/docs/rich-links.html +++ b/docs/rich-links.html @@ -438,7 +438,7 @@

View Mode ButtonsView Mode Buttons86b522ea + 57cc9e23 @ main