From d6cc2c79dc56dda0de4faed6189b036350b6eee7 Mon Sep 17 00:00:00 2001 From: antmicrobot Date: Tue, 2 Jul 2024 13:27:29 +0000 Subject: [PATCH] deploy: 929fd1f713097a670eb79bd4c2f7819007381035 --- MystEditor.js | 14372 ++++++++++++++++++++++++------------------------ 1 file changed, 7197 insertions(+), 7175 deletions(-) diff --git a/MystEditor.js b/MystEditor.js index 121692a..9e1678f 100644 --- a/MystEditor.js +++ b/MystEditor.js @@ -1,13 +1,13 @@ -var W$ = Object.defineProperty; -var V$ = (t, e, n) => e in t ? W$(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n; -var oo = (t, e, n) => (V$(t, typeof e != "symbol" ? e + "" : e, n), n); -var Rl, Y, Pw, ii, dO, Tw, td, Qw, jo = {}, Ew = [], j$ = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, Sh = Array.isArray; +var V$ = Object.defineProperty; +var j$ = (t, e, n) => e in t ? V$(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n; +var oo = (t, e, n) => (j$(t, typeof e != "symbol" ? e + "" : e, n), n); +var Dl, Y, Tw, ii, pO, Qw, nd, Ew, Vo = {}, Dw = [], z$ = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, _h = Array.isArray; function rr(t, e) { for (var n in e) t[n] = e[n]; return t; } -function Dw(t) { +function Rw(t) { var e = t.parentNode; e && e.removeChild(t); } @@ -15,16 +15,16 @@ function fn(t, e, n) { var r, i, s, o = {}; for (s in e) s == "key" ? r = e[s] : s == "ref" ? i = e[s] : o[s] = e[s]; - if (arguments.length > 2 && (o.children = arguments.length > 3 ? Rl.call(arguments, 2) : n), typeof t == "function" && t.defaultProps != null) + if (arguments.length > 2 && (o.children = arguments.length > 3 ? Dl.call(arguments, 2) : n), typeof t == "function" && t.defaultProps != null) for (s in t.defaultProps) o[s] === void 0 && (o[s] = t.defaultProps[s]); return Qo(t, o, r, i, null); } function Qo(t, e, n, r, i) { - var s = { type: t, props: e, key: n, ref: r, __k: null, __: null, __b: 0, __e: null, __d: void 0, __c: null, constructor: void 0, __v: i == null ? ++Pw : i, __i: -1, __u: 0 }; + var s = { type: t, props: e, key: n, ref: r, __k: null, __: null, __b: 0, __e: null, __d: void 0, __c: null, constructor: void 0, __v: i == null ? ++Tw : i, __i: -1, __u: 0 }; return i == null && Y.vnode != null && Y.vnode(s), s; } -function z$() { +function F$() { return { current: null }; } function cr(t) { @@ -33,15 +33,15 @@ function cr(t) { function In(t, e) { this.props = t, this.context = e; } -function ms(t, e) { +function gs(t, e) { if (e == null) - return t.__ ? ms(t.__, t.__i + 1) : null; + return t.__ ? gs(t.__, t.__i + 1) : null; for (var n; e < t.__k.length; e++) if ((n = t.__k[e]) != null && n.__e != null) return n.__e; - return typeof t.type == "function" ? ms(t) : null; + return typeof t.type == "function" ? gs(t) : null; } -function Rw(t) { +function Mw(t) { var e, n; if ((t = t.__) != null && t.__c != null) { for (t.__e = t.__c.base = null, e = 0; e < t.__k.length; e++) @@ -49,47 +49,47 @@ function Rw(t) { t.__e = t.__c.base = n.__e; break; } - return Rw(t); + return Mw(t); } } -function nd(t) { - (!t.__d && (t.__d = !0) && ii.push(t) && !vc.__r++ || dO !== Y.debounceRendering) && ((dO = Y.debounceRendering) || Tw)(vc); +function rd(t) { + (!t.__d && (t.__d = !0) && ii.push(t) && !Sc.__r++ || pO !== Y.debounceRendering) && ((pO = Y.debounceRendering) || Qw)(Sc); } -function vc() { +function Sc() { var t, e, n, r, i, s, o, l, a; - for (ii.sort(td); t = ii.shift(); ) - t.__d && (e = ii.length, r = void 0, s = (i = (n = t).__v).__e, l = [], a = [], (o = n.__P) && ((r = rr({}, i)).__v = i.__v + 1, Y.vnode && Y.vnode(r), em(o, r, i, n.__n, o.ownerSVGElement !== void 0, 32 & i.__u ? [s] : null, l, s == null ? ms(i) : s, !!(32 & i.__u), a), r.__.__k[r.__i] = r, Lw(l, r, a), r.__e != s && Rw(r)), ii.length > e && ii.sort(td)); - vc.__r = 0; + for (ii.sort(nd); t = ii.shift(); ) + t.__d && (e = ii.length, r = void 0, s = (i = (n = t).__v).__e, l = [], a = [], (o = n.__P) && ((r = rr({}, i)).__v = i.__v + 1, Y.vnode && Y.vnode(r), tg(o, r, i, n.__n, o.ownerSVGElement !== void 0, 32 & i.__u ? [s] : null, l, s == null ? gs(i) : s, !!(32 & i.__u), a), r.__.__k[r.__i] = r, Iw(l, r, a), r.__e != s && Mw(r)), ii.length > e && ii.sort(nd)); + Sc.__r = 0; } -function Mw(t, e, n, r, i, s, o, l, a, c, h) { - var u, f, d, p, m, g = r && r.__k || Ew, O = e.length; - for (n.__d = a, F$(n, e, g), a = n.__d, u = 0; u < O; u++) - (d = n.__k[u]) != null && typeof d != "boolean" && typeof d != "function" && (f = d.__i === -1 ? jo : g[d.__i] || jo, d.__i = u, em(t, d, f, i, s, o, l, a, c, h), p = d.__e, d.ref && f.ref != d.ref && (f.ref && tm(f.ref, null, d), h.push(d.ref, d.__c || p, d)), m == null && p != null && (m = p), 65536 & d.__u || f.__k === d.__k ? a = Zw(d, a, t) : typeof d.type == "function" && d.__d !== void 0 ? a = d.__d : p && (a = p.nextSibling), d.__d = void 0, d.__u &= -196609); - n.__d = a, n.__e = m; +function Zw(t, e, n, r, i, s, o, l, a, c, h) { + var u, f, d, p, g, m = r && r.__k || Dw, O = e.length; + for (n.__d = a, U$(n, e, m), a = n.__d, u = 0; u < O; u++) + (d = n.__k[u]) != null && typeof d != "boolean" && typeof d != "function" && (f = d.__i === -1 ? Vo : m[d.__i] || Vo, d.__i = u, tg(t, d, f, i, s, o, l, a, c, h), p = d.__e, d.ref && f.ref != d.ref && (f.ref && ng(f.ref, null, d), h.push(d.ref, d.__c || p, d)), g == null && p != null && (g = p), 65536 & d.__u || f.__k === d.__k ? a = Lw(d, a, t) : typeof d.type == "function" && d.__d !== void 0 ? a = d.__d : p && (a = p.nextSibling), d.__d = void 0, d.__u &= -196609); + n.__d = a, n.__e = g; } -function F$(t, e, n) { +function U$(t, e, n) { var r, i, s, o, l, a = e.length, c = n.length, h = c, u = 0; for (t.__k = [], r = 0; r < a; r++) - (i = t.__k[r] = (i = e[r]) == null || typeof i == "boolean" || typeof i == "function" ? null : typeof i == "string" || typeof i == "number" || typeof i == "bigint" || i.constructor == String ? Qo(null, i, null, null, i) : Sh(i) ? Qo(cr, { children: i }, null, null, null) : i.constructor === void 0 && i.__b > 0 ? Qo(i.type, i.props, i.key, i.ref ? i.ref : null, i.__v) : i) != null ? (i.__ = t, i.__b = t.__b + 1, l = U$(i, n, o = r + u, h), i.__i = l, s = null, l !== -1 && (h--, (s = n[l]) && (s.__u |= 131072)), s == null || s.__v === null ? (l == -1 && u--, typeof i.type != "function" && (i.__u |= 65536)) : l !== o && (l === o + 1 ? u++ : l > o ? h > a - o ? u += l - o : u-- : u = l < o && l == o - 1 ? l - o : 0, l !== r + u && (i.__u |= 65536))) : (s = n[r]) && s.key == null && s.__e && (s.__e == t.__d && (t.__d = ms(s)), rd(s, s, !1), n[r] = null, h--); + (i = t.__k[r] = (i = e[r]) == null || typeof i == "boolean" || typeof i == "function" ? null : typeof i == "string" || typeof i == "number" || typeof i == "bigint" || i.constructor == String ? Qo(null, i, null, null, i) : _h(i) ? Qo(cr, { children: i }, null, null, null) : i.constructor === void 0 && i.__b > 0 ? Qo(i.type, i.props, i.key, i.ref ? i.ref : null, i.__v) : i) != null ? (i.__ = t, i.__b = t.__b + 1, l = G$(i, n, o = r + u, h), i.__i = l, s = null, l !== -1 && (h--, (s = n[l]) && (s.__u |= 131072)), s == null || s.__v === null ? (l == -1 && u--, typeof i.type != "function" && (i.__u |= 65536)) : l !== o && (l === o + 1 ? u++ : l > o ? h > a - o ? u += l - o : u-- : u = l < o && l == o - 1 ? l - o : 0, l !== r + u && (i.__u |= 65536))) : (s = n[r]) && s.key == null && s.__e && (s.__e == t.__d && (t.__d = gs(s)), id(s, s, !1), n[r] = null, h--); if (h) for (r = 0; r < c; r++) - (s = n[r]) != null && (131072 & s.__u) == 0 && (s.__e == t.__d && (t.__d = ms(s)), rd(s, s)); + (s = n[r]) != null && (131072 & s.__u) == 0 && (s.__e == t.__d && (t.__d = gs(s)), id(s, s)); } -function Zw(t, e, n) { +function Lw(t, e, n) { var r, i; if (typeof t.type == "function") { for (r = t.__k, i = 0; r && i < r.length; i++) - r[i] && (r[i].__ = t, e = Zw(r[i], e, n)); + r[i] && (r[i].__ = t, e = Lw(r[i], e, n)); return e; } return t.__e != e && (n.insertBefore(t.__e, e || null), e = t.__e), e && e.nextSibling; } function ir(t, e) { - return e = e || [], t == null || typeof t == "boolean" || (Sh(t) ? t.some(function(n) { + return e = e || [], t == null || typeof t == "boolean" || (_h(t) ? t.some(function(n) { ir(n, e); }) : e.push(t)), e; } -function U$(t, e, n, r) { +function G$(t, e, n, r) { var i = t.key, s = t.type, o = n - 1, l = n + 1, a = e[n]; if (a === null || a && i == a.key && s === a.type) return n; @@ -108,8 +108,8 @@ function U$(t, e, n, r) { } return -1; } -function pO(t, e, n) { - e[0] === "-" ? t.setProperty(e, n == null ? "" : n) : t[e] = n == null ? "" : typeof n != "number" || j$.test(e) ? n : n + "px"; +function gO(t, e, n) { + e[0] === "-" ? t.setProperty(e, n == null ? "" : n) : t[e] = n == null ? "" : typeof n != "number" || z$.test(e) ? n : n + "px"; } function sa(t, e, n, r, i) { var s; @@ -120,13 +120,13 @@ function sa(t, e, n, r, i) { else { if (typeof r == "string" && (t.style.cssText = r = ""), r) for (e in r) - n && e in n || pO(t.style, e, ""); + n && e in n || gO(t.style, e, ""); if (n) for (e in n) - r && n[e] === r[e] || pO(t.style, e, n[e]); + r && n[e] === r[e] || gO(t.style, e, n[e]); } else if (e[0] === "o" && e[1] === "n") - s = e !== (e = e.replace(/(PointerCapture)$|Capture$/, "$1")), e = e.toLowerCase() in t ? e.toLowerCase().slice(2) : e.slice(2), t.l || (t.l = {}), t.l[e + s] = n, n ? r ? n.u = r.u : (n.u = Date.now(), t.addEventListener(e, s ? gO : mO, s)) : t.removeEventListener(e, s ? gO : mO, s); + s = e !== (e = e.replace(/(PointerCapture)$|Capture$/, "$1")), e = e.toLowerCase() in t ? e.toLowerCase().slice(2) : e.slice(2), t.l || (t.l = {}), t.l[e + s] = n, n ? r ? n.u = r.u : (n.u = Date.now(), t.addEventListener(e, s ? OO : mO, s)) : t.removeEventListener(e, s ? OO : mO, s); else { if (i) e = e.replace(/xlink(H|:h)/, "h").replace(/sName$/, "s"); @@ -148,18 +148,18 @@ function mO(t) { t.t = Date.now(); return e(Y.event ? Y.event(t) : t); } -function gO(t) { +function OO(t) { return this.l[t.type + !0](Y.event ? Y.event(t) : t); } -function em(t, e, n, r, i, s, o, l, a, c) { - var h, u, f, d, p, m, g, O, b, y, w, S, x, v, P, D = e.type; +function tg(t, e, n, r, i, s, o, l, a, c) { + var h, u, f, d, p, g, m, O, b, y, w, S, x, v, P, D = e.type; if (e.constructor !== void 0) return null; 128 & n.__u && (a = !!(32 & n.__u), s = [l = e.__e = n.__e]), (h = Y.__b) && h(e); e: if (typeof D == "function") try { - if (O = e.props, b = (h = D.contextType) && r[h.__c], y = h ? b ? b.props.value : h.__ : r, n.__c ? g = (u = e.__c = n.__c).__ = u.__E : ("prototype" in D && D.prototype.render ? e.__c = u = new D(O, y) : (e.__c = u = new In(O, y), u.constructor = D, u.render = H$), b && b.sub(u), u.props = O, u.state || (u.state = {}), u.context = y, u.__n = r, f = u.__d = !0, u.__h = [], u._sb = []), u.__s == null && (u.__s = u.state), D.getDerivedStateFromProps != null && (u.__s == u.state && (u.__s = rr({}, u.__s)), rr(u.__s, D.getDerivedStateFromProps(O, u.__s))), d = u.props, p = u.state, u.__v = e, f) + if (O = e.props, b = (h = D.contextType) && r[h.__c], y = h ? b ? b.props.value : h.__ : r, n.__c ? m = (u = e.__c = n.__c).__ = u.__E : ("prototype" in D && D.prototype.render ? e.__c = u = new D(O, y) : (e.__c = u = new In(O, y), u.constructor = D, u.render = K$), b && b.sub(u), u.props = O, u.state || (u.state = {}), u.context = y, u.__n = r, f = u.__d = !0, u.__h = [], u._sb = []), u.__s == null && (u.__s = u.state), D.getDerivedStateFromProps != null && (u.__s == u.state && (u.__s = rr({}, u.__s)), rr(u.__s, D.getDerivedStateFromProps(O, u.__s))), d = u.props, p = u.state, u.__v = e, f) D.getDerivedStateFromProps == null && u.componentWillMount != null && u.componentWillMount(), u.componentDidMount != null && u.__h.push(u.componentDidMount); else { if (D.getDerivedStateFromProps == null && O !== d && u.componentWillReceiveProps != null && u.componentWillReceiveProps(O, y), !u.__e && (u.shouldComponentUpdate != null && u.shouldComponentUpdate(O, u.__s, y) === !1 || e.__v === n.__v)) { @@ -171,7 +171,7 @@ function em(t, e, n, r, i, s, o, l, a, c) { break e; } u.componentWillUpdate != null && u.componentWillUpdate(O, u.__s, y), u.componentDidUpdate != null && u.__h.push(function() { - u.componentDidUpdate(d, p, m); + u.componentDidUpdate(d, p, g); }); } if (u.context = y, u.props = O, u.__P = t, u.__e = !1, S = Y.__r, x = 0, "prototype" in D && D.prototype.render) { @@ -182,18 +182,18 @@ function em(t, e, n, r, i, s, o, l, a, c) { do u.__d = !1, S && S(e), h = u.render(u.props, u.state, u.context), u.state = u.__s; while (u.__d && ++x < 25); - u.state = u.__s, u.getChildContext != null && (r = rr(rr({}, r), u.getChildContext())), f || u.getSnapshotBeforeUpdate == null || (m = u.getSnapshotBeforeUpdate(d, p)), Mw(t, Sh(P = h != null && h.type === cr && h.key == null ? h.props.children : h) ? P : [P], e, n, r, i, s, o, l, a, c), u.base = e.__e, e.__u &= -161, u.__h.length && o.push(u), g && (u.__E = u.__ = null); + u.state = u.__s, u.getChildContext != null && (r = rr(rr({}, r), u.getChildContext())), f || u.getSnapshotBeforeUpdate == null || (g = u.getSnapshotBeforeUpdate(d, p)), Zw(t, _h(P = h != null && h.type === cr && h.key == null ? h.props.children : h) ? P : [P], e, n, r, i, s, o, l, a, c), u.base = e.__e, e.__u &= -161, u.__h.length && o.push(u), m && (u.__E = u.__ = null); } catch (T) { e.__v = null, a || s != null ? (e.__e = l, e.__u |= a ? 160 : 32, s[s.indexOf(l)] = null) : (e.__e = n.__e, e.__k = n.__k), Y.__e(T, e, n); } else - s == null && e.__v === n.__v ? (e.__k = n.__k, e.__e = n.__e) : e.__e = G$(n.__e, e, n, r, i, s, o, a, c); + s == null && e.__v === n.__v ? (e.__k = n.__k, e.__e = n.__e) : e.__e = H$(n.__e, e, n, r, i, s, o, a, c); (h = Y.diffed) && h(e); } -function Lw(t, e, n) { +function Iw(t, e, n) { e.__d = void 0; for (var r = 0; r < n.length; r++) - tm(n[r], n[++r], n[++r]); + ng(n[r], n[++r], n[++r]); Y.__c && Y.__c(e, t), t.some(function(i) { try { t = i.__h, i.__h = [], t.some(function(s) { @@ -204,8 +204,8 @@ function Lw(t, e, n) { } }); } -function G$(t, e, n, r, i, s, o, l, a) { - var c, h, u, f, d, p, m, g = n.props, O = e.props, b = e.type; +function H$(t, e, n, r, i, s, o, l, a) { + var c, h, u, f, d, p, g, m = n.props, O = e.props, b = e.type; if (b === "svg" && (i = !0), s != null) { for (c = 0; c < s.length; c++) if ((d = s[c]) && "setAttribute" in d == !!b && (b ? d.localName === b : d.nodeType === 3)) { @@ -219,34 +219,34 @@ function G$(t, e, n, r, i, s, o, l, a) { t = i ? document.createElementNS("http://www.w3.org/2000/svg", b) : document.createElement(b, O.is && O), s = null, l = !1; } if (b === null) - g === O || l && t.data === O || (t.data = O); + m === O || l && t.data === O || (t.data = O); else { - if (s = s && Rl.call(t.childNodes), g = n.props || jo, !l && s != null) - for (g = {}, c = 0; c < t.attributes.length; c++) - g[(d = t.attributes[c]).name] = d.value; - for (c in g) - d = g[c], c == "children" || (c == "dangerouslySetInnerHTML" ? u = d : c === "key" || c in O || sa(t, c, null, d, i)); + if (s = s && Dl.call(t.childNodes), m = n.props || Vo, !l && s != null) + for (m = {}, c = 0; c < t.attributes.length; c++) + m[(d = t.attributes[c]).name] = d.value; + for (c in m) + d = m[c], c == "children" || (c == "dangerouslySetInnerHTML" ? u = d : c === "key" || c in O || sa(t, c, null, d, i)); for (c in O) - d = O[c], c == "children" ? f = d : c == "dangerouslySetInnerHTML" ? h = d : c == "value" ? p = d : c == "checked" ? m = d : c === "key" || l && typeof d != "function" || g[c] === d || sa(t, c, d, g[c], i); + d = O[c], c == "children" ? f = d : c == "dangerouslySetInnerHTML" ? h = d : c == "value" ? p = d : c == "checked" ? g = d : c === "key" || l && typeof d != "function" || m[c] === d || sa(t, c, d, m[c], i); if (h) l || u && (h.__html === u.__html || h.__html === t.innerHTML) || (t.innerHTML = h.__html), e.__k = []; - else if (u && (t.innerHTML = ""), Mw(t, Sh(f) ? f : [f], e, n, r, i && b !== "foreignObject", s, o, s ? s[0] : n.__k && ms(n, 0), l, a), s != null) + else if (u && (t.innerHTML = ""), Zw(t, _h(f) ? f : [f], e, n, r, i && b !== "foreignObject", s, o, s ? s[0] : n.__k && gs(n, 0), l, a), s != null) for (c = s.length; c--; ) - s[c] != null && Dw(s[c]); - l || (c = "value", p !== void 0 && (p !== t[c] || b === "progress" && !p || b === "option" && p !== g[c]) && sa(t, c, p, g[c], !1), c = "checked", m !== void 0 && m !== t[c] && sa(t, c, m, g[c], !1)); + s[c] != null && Rw(s[c]); + l || (c = "value", p !== void 0 && (p !== t[c] || b === "progress" && !p || b === "option" && p !== m[c]) && sa(t, c, p, m[c], !1), c = "checked", g !== void 0 && g !== t[c] && sa(t, c, g, m[c], !1)); } return t; } -function tm(t, e, n) { +function ng(t, e, n) { try { typeof t == "function" ? t(e) : t.current = e; } catch (r) { Y.__e(r, n); } } -function rd(t, e, n) { +function id(t, e, n) { var r, i; - if (Y.unmount && Y.unmount(t), (r = t.ref) && (r.current && r.current !== t.__e || tm(r, null, e)), (r = t.__c) != null) { + if (Y.unmount && Y.unmount(t), (r = t.ref) && (r.current && r.current !== t.__e || ng(r, null, e)), (r = t.__c) != null) { if (r.componentWillUnmount) try { r.componentWillUnmount(); @@ -257,27 +257,27 @@ function rd(t, e, n) { } if (r = t.__k) for (i = 0; i < r.length; i++) - r[i] && rd(r[i], e, n || typeof t.type != "function"); - n || t.__e == null || Dw(t.__e), t.__ = t.__e = t.__d = void 0; + r[i] && id(r[i], e, n || typeof t.type != "function"); + n || t.__e == null || Rw(t.__e), t.__ = t.__e = t.__d = void 0; } -function H$(t, e, n) { +function K$(t, e, n) { return this.constructor(t, n); } -function zo(t, e, n) { +function jo(t, e, n) { var r, i, s, o; - Y.__ && Y.__(t, e), i = (r = typeof n == "function") ? null : n && n.__k || e.__k, s = [], o = [], em(e, t = (!r && n || e).__k = fn(cr, null, [t]), i || jo, jo, e.ownerSVGElement !== void 0, !r && n ? [n] : i ? null : e.firstChild ? Rl.call(e.childNodes) : null, s, !r && n ? n : i ? i.__e : e.firstChild, r, o), Lw(s, t, o); + Y.__ && Y.__(t, e), i = (r = typeof n == "function") ? null : n && n.__k || e.__k, s = [], o = [], tg(e, t = (!r && n || e).__k = fn(cr, null, [t]), i || Vo, Vo, e.ownerSVGElement !== void 0, !r && n ? [n] : i ? null : e.firstChild ? Dl.call(e.childNodes) : null, s, !r && n ? n : i ? i.__e : e.firstChild, r, o), Iw(s, t, o); } -function Iw(t, e) { - zo(t, e, Iw); +function Nw(t, e) { + jo(t, e, Nw); } -function K$(t, e, n) { +function J$(t, e, n) { var r, i, s, o, l = rr({}, t.props); for (s in t.type && t.type.defaultProps && (o = t.type.defaultProps), e) s == "key" ? r = e[s] : s == "ref" ? i = e[s] : l[s] = e[s] === void 0 && o !== void 0 ? o[s] : e[s]; - return arguments.length > 2 && (l.children = arguments.length > 3 ? Rl.call(arguments, 2) : n), Qo(t.type, l, r || t.key, i || t.ref, null); + return arguments.length > 2 && (l.children = arguments.length > 3 ? Dl.call(arguments, 2) : n), Qo(t.type, l, r || t.key, i || t.ref, null); } -function J$(t, e) { - var n = { __c: e = "__cC" + Qw++, __: t, Consumer: function(r, i) { +function eP(t, e) { + var n = { __c: e = "__cC" + Ew++, __: t, Consumer: function(r, i) { return r.children(i); }, Provider: function(r) { var i, s; @@ -285,7 +285,7 @@ function J$(t, e) { return s; }, this.shouldComponentUpdate = function(o) { this.props.value !== o.value && i.some(function(l) { - l.__e = !0, nd(l); + l.__e = !0, rd(l); }); }, this.sub = function(o) { i.push(o); @@ -297,7 +297,7 @@ function J$(t, e) { } }; return n.Provider.__ = n.Consumer.contextType = n; } -Rl = Ew.slice, Y = { __e: function(t, e, n, r) { +Dl = Dw.slice, Y = { __e: function(t, e, n, r) { for (var i, s, o; e = e.__; ) if ((i = e.__c) && !i.__) try { @@ -307,26 +307,26 @@ Rl = Ew.slice, Y = { __e: function(t, e, n, r) { t = l; } throw t; -} }, Pw = 0, In.prototype.setState = function(t, e) { +} }, Tw = 0, In.prototype.setState = function(t, e) { var n; - n = this.__s != null && this.__s !== this.state ? this.__s : this.__s = rr({}, this.state), typeof t == "function" && (t = t(rr({}, n), this.props)), t && rr(n, t), t != null && this.__v && (e && this._sb.push(e), nd(this)); + n = this.__s != null && this.__s !== this.state ? this.__s : this.__s = rr({}, this.state), typeof t == "function" && (t = t(rr({}, n), this.props)), t && rr(n, t), t != null && this.__v && (e && this._sb.push(e), rd(this)); }, In.prototype.forceUpdate = function(t) { - this.__v && (this.__e = !0, t && this.__h.push(t), nd(this)); -}, In.prototype.render = cr, ii = [], Tw = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, td = function(t, e) { + this.__v && (this.__e = !0, t && this.__h.push(t), rd(this)); +}, In.prototype.render = cr, ii = [], Qw = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, nd = function(t, e) { return t.__v.__b - e.__v.__b; -}, vc.__r = 0, Qw = 0; -var Nr, Ae, $u, OO, gs = 0, Nw = [], Ua = [], bO = Y.__b, yO = Y.__r, wO = Y.diffed, kO = Y.__c, xO = Y.unmount; +}, Sc.__r = 0, Ew = 0; +var Nr, Ae, $u, bO, ms = 0, qw = [], Ua = [], yO = Y.__b, wO = Y.__r, kO = Y.diffed, xO = Y.__c, vO = Y.unmount; function Bs(t, e) { - Y.__h && Y.__h(Ae, t, gs || e), gs = 0; + Y.__h && Y.__h(Ae, t, ms || e), ms = 0; var n = Ae.__H || (Ae.__H = { __: [], __h: [] }); return t >= n.__.length && n.__.push({ __V: Ua }), n.__[t]; } function Me(t) { - return gs = 1, _h(Bw, t); + return ms = 1, Ch(Yw, t); } -function _h(t, e, n) { +function Ch(t, e, n) { var r = Bs(Nr++, 2); - if (r.t = t, !r.__c && (r.__ = [n ? n(e) : Bw(void 0, e), function(l) { + if (r.t = t, !r.__c && (r.__ = [n ? n(e) : Yw(void 0, e), function(l) { var a = r.__N ? r.__N[0] : r.__[0], c = r.t(a, l); a !== c && (r.__N = [c, r.__[1]], r.__c.setState({})); }], r.__c = Ae, !Ae.u)) { @@ -362,19 +362,19 @@ function _h(t, e, n) { } function Pt(t, e) { var n = Bs(Nr++, 3); - !Y.__s && rm(n.__H, e) && (n.__ = t, n.i = e, Ae.__H.__h.push(n)); + !Y.__s && ig(n.__H, e) && (n.__ = t, n.i = e, Ae.__H.__h.push(n)); } -function Ch(t, e) { +function Ah(t, e) { var n = Bs(Nr++, 4); - !Y.__s && rm(n.__H, e) && (n.__ = t, n.i = e, Ae.__h.push(n)); + !Y.__s && ig(n.__H, e) && (n.__ = t, n.i = e, Ae.__h.push(n)); } function Nn(t) { - return gs = 5, rt(function() { + return ms = 5, rt(function() { return { current: t }; }, []); } -function eP(t, e, n) { - gs = 6, Ch(function() { +function tP(t, e, n) { + ms = 6, Ah(function() { return typeof t == "function" ? (t(e()), function() { return t(null); }) : t ? (t.current = e(), function() { @@ -384,21 +384,21 @@ function eP(t, e, n) { } function rt(t, e) { var n = Bs(Nr++, 7); - return rm(n.__H, e) ? (n.__V = t(), n.i = e, n.__h = t, n.__V) : n.__; + return ig(n.__H, e) ? (n.__V = t(), n.i = e, n.__h = t, n.__V) : n.__; } -function nm(t, e) { - return gs = 8, rt(function() { +function rg(t, e) { + return ms = 8, rt(function() { return t; }, e); } -function qw(t) { +function Bw(t) { var e = Ae.context[t.__c], n = Bs(Nr++, 9); return n.c = t, e ? (n.__ == null && (n.__ = !0, e.sub(Ae)), e.props.value) : t.__; } -function id(t, e) { +function sd(t, e) { Y.useDebugValue && Y.useDebugValue(e ? e(t) : t); } -function tP() { +function nP() { var t = Bs(Nr++, 11); if (!t.__) { for (var e = Ae.__v; e !== null && !e.__m && e.__ !== null; ) @@ -408,43 +408,43 @@ function tP() { } return t.__; } -function nP() { - for (var t; t = Nw.shift(); ) +function rP() { + for (var t; t = qw.shift(); ) if (t.__P && t.__H) try { - t.__H.__h.forEach(Ga), t.__H.__h.forEach(sd), t.__H.__h = []; + t.__H.__h.forEach(Ga), t.__H.__h.forEach(od), t.__H.__h = []; } catch (e) { t.__H.__h = [], Y.__e(e, t.__v); } } Y.__b = function(t) { - Ae = null, bO && bO(t); + Ae = null, yO && yO(t); }, Y.__r = function(t) { - yO && yO(t), Nr = 0; + wO && wO(t), Nr = 0; var e = (Ae = t.__c).__H; e && ($u === Ae ? (e.__h = [], Ae.__h = [], e.__.forEach(function(n) { n.__N && (n.__ = n.__N), n.__V = Ua, n.__N = n.i = void 0; - })) : (e.__h.forEach(Ga), e.__h.forEach(sd), e.__h = [], Nr = 0)), $u = Ae; + })) : (e.__h.forEach(Ga), e.__h.forEach(od), e.__h = [], Nr = 0)), $u = Ae; }, Y.diffed = function(t) { - wO && wO(t); + kO && kO(t); var e = t.__c; - e && e.__H && (e.__H.__h.length && (Nw.push(e) !== 1 && OO === Y.requestAnimationFrame || ((OO = Y.requestAnimationFrame) || rP)(nP)), e.__H.__.forEach(function(n) { + e && e.__H && (e.__H.__h.length && (qw.push(e) !== 1 && bO === Y.requestAnimationFrame || ((bO = Y.requestAnimationFrame) || iP)(rP)), e.__H.__.forEach(function(n) { n.i && (n.__H = n.i), n.__V !== Ua && (n.__ = n.__V), n.i = void 0, n.__V = Ua; })), $u = Ae = null; }, Y.__c = function(t, e) { e.some(function(n) { try { n.__h.forEach(Ga), n.__h = n.__h.filter(function(r) { - return !r.__ || sd(r); + return !r.__ || od(r); }); } catch (r) { e.some(function(i) { i.__h && (i.__h = []); }), e = [], Y.__e(r, n.__v); } - }), kO && kO(t, e); + }), xO && xO(t, e); }, Y.unmount = function(t) { - xO && xO(t); + vO && vO(t); var e, n = t.__c; n && n.__H && (n.__H.__.forEach(function(r) { try { @@ -454,41 +454,41 @@ Y.__b = function(t) { } }), n.__H = void 0, e && Y.__e(e, n.__v)); }; -var vO = typeof requestAnimationFrame == "function"; -function rP(t) { +var SO = typeof requestAnimationFrame == "function"; +function iP(t) { var e, n = function() { - clearTimeout(r), vO && cancelAnimationFrame(e), setTimeout(t); + clearTimeout(r), SO && cancelAnimationFrame(e), setTimeout(t); }, r = setTimeout(n, 100); - vO && (e = requestAnimationFrame(n)); + SO && (e = requestAnimationFrame(n)); } function Ga(t) { var e = Ae, n = t.__c; typeof n == "function" && (t.__c = void 0, n()), Ae = e; } -function sd(t) { +function od(t) { var e = Ae; t.__c = t.__(), Ae = e; } -function rm(t, e) { +function ig(t, e) { return !t || t.length !== e.length || e.some(function(n, r) { return n !== t[r]; }); } -function Bw(t, e) { +function Yw(t, e) { return typeof e == "function" ? e(t) : e; } -var Yw = function(t, e, n, r) { +var Xw = function(t, e, n, r) { var i; e[0] = 0; for (var s = 1; s < e.length; s++) { var o = e[s++], l = e[s] ? (e[0] |= o ? 1 : 2, n[e[s++]]) : e[++s]; - o === 3 ? r[0] = l : o === 4 ? r[1] = Object.assign(r[1] || {}, l) : o === 5 ? (r[1] = r[1] || {})[e[++s]] = l : o === 6 ? r[1][e[++s]] += l + "" : o ? (i = t.apply(l, Yw(t, l, n, ["", null])), r.push(i), l[0] ? e[0] |= 2 : (e[s - 2] = 0, e[s] = i)) : r.push(l); + o === 3 ? r[0] = l : o === 4 ? r[1] = Object.assign(r[1] || {}, l) : o === 5 ? (r[1] = r[1] || {})[e[++s]] = l : o === 6 ? r[1][e[++s]] += l + "" : o ? (i = t.apply(l, Xw(t, l, n, ["", null])), r.push(i), l[0] ? e[0] |= 2 : (e[s - 2] = 0, e[s] = i)) : r.push(l); } return r; -}, SO = /* @__PURE__ */ new Map(); -function iP(t) { - var e = SO.get(this); - return e || (e = /* @__PURE__ */ new Map(), SO.set(this, e)), (e = Yw(this, e.get(t) || (e.set(t, e = function(n) { +}, _O = /* @__PURE__ */ new Map(); +function sP(t) { + var e = _O.get(this); + return e || (e = /* @__PURE__ */ new Map(), _O.set(this, e)), (e = Xw(this, e.get(t) || (e.set(t, e = function(n) { for (var r, i, s = 1, o = "", l = "", a = [0], c = function(f) { s === 1 && (f || (o = o.replace(/^\s*\n\s*|\s*\n\s*$/g, ""))) ? a.push(0, f, o) : s === 3 && (f || o) ? (a.push(3, f, o), s = 2) : s === 2 && o === "..." && f ? a.push(4, f, 0) : s === 2 && o && !f ? a.push(5, 0, !0, o) : s >= 5 && ((o || !f && s === 5) && (a.push(s, 0, o, i), s = 6), f && (a.push(s, f, 0, i), s = 6)), o = ""; }, h = 0; h < n.length; h++) { @@ -500,7 +500,7 @@ function iP(t) { return c(), a; }(t)), e), arguments, [])).length > 1 ? e : e[0]; } -var K = iP.bind(fn), Ct = function() { +var H = sP.bind(fn), Ct = function() { return Ct = Object.assign || function(e) { for (var n, r = 1, i = arguments.length; r < i; r++) { n = arguments[r]; @@ -516,23 +516,23 @@ function Os(t, e, n) { (s || !(r in e)) && (s || (s = Array.prototype.slice.call(e, 0, r)), s[r] = e[r]); return t.concat(s || Array.prototype.slice.call(e)); } -function sP(t) { +function oP(t) { var e = /* @__PURE__ */ Object.create(null); return function(n) { return e[n] === void 0 && (e[n] = t(n)), e[n]; }; } -var oP = /^((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)-.*))$/, lP = /* @__PURE__ */ sP( +var lP = /^((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)-.*))$/, aP = /* @__PURE__ */ oP( function(t) { - return oP.test(t) || t.charCodeAt(0) === 111 && t.charCodeAt(1) === 110 && t.charCodeAt(2) < 91; + return lP.test(t) || t.charCodeAt(0) === 111 && t.charCodeAt(1) === 110 && t.charCodeAt(2) < 91; } ); -function Xw(t, e) { +function Ww(t, e) { for (var n in e) t[n] = e[n]; return t; } -function od(t, e) { +function ld(t, e) { for (var n in t) if (n !== "__source" && !(n in e)) return !0; @@ -541,73 +541,73 @@ function od(t, e) { return !0; return !1; } -function ld(t) { +function ad(t) { this.props = t; } -function aP(t, e) { +function cP(t, e) { function n(i) { var s = this.props.ref, o = s == i.ref; - return !o && s && (s.call ? s(null) : s.current = null), e ? !e(this.props, i) || !o : od(this.props, i); + return !o && s && (s.call ? s(null) : s.current = null), e ? !e(this.props, i) || !o : ld(this.props, i); } function r(i) { return this.shouldComponentUpdate = n, fn(t, i); } return r.displayName = "Memo(" + (t.displayName || t.name) + ")", r.prototype.isReactComponent = !0, r.__f = !0, r; } -(ld.prototype = new In()).isPureReactComponent = !0, ld.prototype.shouldComponentUpdate = function(t, e) { - return od(this.props, t) || od(this.state, e); +(ad.prototype = new In()).isPureReactComponent = !0, ad.prototype.shouldComponentUpdate = function(t, e) { + return ld(this.props, t) || ld(this.state, e); }; -var _O = Y.__b; +var CO = Y.__b; Y.__b = function(t) { - t.type && t.type.__f && t.ref && (t.props.ref = t.ref, t.ref = null), _O && _O(t); + t.type && t.type.__f && t.ref && (t.props.ref = t.ref, t.ref = null), CO && CO(t); }; -var cP = typeof Symbol < "u" && Symbol.for && Symbol.for("react.forward_ref") || 3911; -function hP(t) { +var hP = typeof Symbol < "u" && Symbol.for && Symbol.for("react.forward_ref") || 3911; +function uP(t) { function e(n) { - var r = Xw({}, n); + var r = Ww({}, n); return delete r.ref, t(r, n.ref || null); } - return e.$$typeof = cP, e.render = e, e.prototype.isReactComponent = e.__f = !0, e.displayName = "ForwardRef(" + (t.displayName || t.name) + ")", e; + return e.$$typeof = hP, e.render = e, e.prototype.isReactComponent = e.__f = !0, e.displayName = "ForwardRef(" + (t.displayName || t.name) + ")", e; } -var CO = function(t, e) { +var AO = function(t, e) { return t == null ? null : ir(ir(t).map(e)); -}, uP = { map: CO, forEach: CO, count: function(t) { +}, fP = { map: AO, forEach: AO, count: function(t) { return t ? ir(t).length : 0; }, only: function(t) { var e = ir(t); if (e.length !== 1) throw "Children.only"; return e[0]; -}, toArray: ir }, fP = Y.__e; +}, toArray: ir }, dP = Y.__e; Y.__e = function(t, e, n, r) { if (t.then) { for (var i, s = e; s = s.__; ) if ((i = s.__c) && i.__c) return e.__e == null && (e.__e = n.__e, e.__k = n.__k), i.__c(t, e); } - fP(t, e, n, r); + dP(t, e, n, r); }; -var AO = Y.unmount; -function Ww(t, e, n) { +var $O = Y.unmount; +function Vw(t, e, n) { return t && (t.__c && t.__c.__H && (t.__c.__H.__.forEach(function(r) { typeof r.__c == "function" && r.__c(); - }), t.__c.__H = null), (t = Xw({}, t)).__c != null && (t.__c.__P === n && (t.__c.__P = e), t.__c = null), t.__k = t.__k && t.__k.map(function(r) { - return Ww(r, e, n); + }), t.__c.__H = null), (t = Ww({}, t)).__c != null && (t.__c.__P === n && (t.__c.__P = e), t.__c = null), t.__k = t.__k && t.__k.map(function(r) { + return Vw(r, e, n); })), t; } -function Vw(t, e, n) { +function jw(t, e, n) { return t && n && (t.__v = null, t.__k = t.__k && t.__k.map(function(r) { - return Vw(r, e, n); + return jw(r, e, n); }), t.__c && t.__c.__P === e && (t.__e && n.appendChild(t.__e), t.__c.__e = !0, t.__c.__P = n)), t; } function Ha() { this.__u = 0, this.t = null, this.__b = null; } -function jw(t) { +function zw(t) { var e = t.__.__c; return e && e.__a && e.__a(t); } -function dP(t) { +function pP(t) { var e, n, r; function i(s) { if (e || (e = t()).then(function(o) { @@ -627,11 +627,11 @@ function wo() { } Y.unmount = function(t) { var e = t.__c; - e && e.__R && e.__R(), e && 32 & t.__u && (t.type = null), AO && AO(t); + e && e.__R && e.__R(), e && 32 & t.__u && (t.type = null), $O && $O(t); }, (Ha.prototype = new In()).__c = function(t, e) { var n = e.__c, r = this; r.t == null && (r.t = []), r.t.push(n); - var i = jw(r.__v), s = !1, o = function() { + var i = zw(r.__v), s = !1, o = function() { s || (s = !0, n.__R = null, i ? i(l) : l()); }; n.__R = o; @@ -639,7 +639,7 @@ Y.unmount = function(t) { if (!--r.__u) { if (r.state.__a) { var a = r.state.__a; - r.__v.__k[0] = Vw(a, a.__c.__P, a.__c.__O); + r.__v.__k[0] = jw(a, a.__c.__P, a.__c.__O); } var c; for (r.setState({ __a: r.__b = null }); c = r.t.pop(); ) @@ -653,14 +653,14 @@ Y.unmount = function(t) { if (this.__b) { if (this.__v.__k) { var n = document.createElement("div"), r = this.__v.__k[0].__c; - this.__v.__k[0] = Ww(this.__b, n, r.__O = r.__P); + this.__v.__k[0] = Vw(this.__b, n, r.__O = r.__P); } this.__b = null; } var i = e.__a && fn(cr, null, t.fallback); return i && (i.__u &= -33), [fn(cr, null, e.__a ? null : t.children), i]; }; -var $O = function(t, e, n) { +var PO = function(t, e, n) { if (++n[1] === n[0] && t.o.delete(e), t.props.revealOrder && (t.props.revealOrder[0] !== "t" || !t.o.size)) for (n = t.u; n; ) { for (; n.length > 3; ) @@ -670,7 +670,7 @@ var $O = function(t, e, n) { t.u = n = n[2]; } }; -function pP(t) { +function gP(t) { return this.getChildContext = function() { return t.context; }, t.children; @@ -678,24 +678,24 @@ function pP(t) { function mP(t) { var e = this, n = t.i; e.componentWillUnmount = function() { - zo(null, e.l), e.l = null, e.i = null; + jo(null, e.l), e.l = null, e.i = null; }, e.i && e.i !== n && e.componentWillUnmount(), e.l || (e.i = n, e.l = { nodeType: 1, parentNode: n, childNodes: [], appendChild: function(r) { this.childNodes.push(r), e.i.appendChild(r); }, insertBefore: function(r, i) { this.childNodes.push(r), e.i.appendChild(r); }, removeChild: function(r) { this.childNodes.splice(this.childNodes.indexOf(r) >>> 1, 1), e.i.removeChild(r); - } }), zo(fn(pP, { context: e.context }, t.__v), e.l); + } }), jo(fn(gP, { context: e.context }, t.__v), e.l); } -function gP(t, e) { +function OP(t, e) { var n = fn(mP, { __v: t, i: e }); return n.containerInfo = e, n; } (wo.prototype = new In()).__a = function(t) { - var e = this, n = jw(e.__v), r = e.o.get(t); + var e = this, n = zw(e.__v), r = e.o.get(t); return r[0]++, function(i) { var s = function() { - e.props.revealOrder ? (r.push(i), $O(e, t, r)) : i(); + e.props.revealOrder ? (r.push(i), PO(e, t, r)) : i(); }; n ? n(s) : s(); }; @@ -709,17 +709,17 @@ function gP(t, e) { }, wo.prototype.componentDidUpdate = wo.prototype.componentDidMount = function() { var t = this; this.o.forEach(function(e, n) { - $O(t, n, e); + PO(t, n, e); }); }; -var zw = typeof Symbol < "u" && Symbol.for && Symbol.for("react.element") || 60103, OP = /^(?: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]/, bP = /^on(Ani|Tra|Tou|BeforeInp|Compo)/, yP = /[A-Z0-9]/g, wP = typeof document < "u", kP = function(t) { +var Fw = typeof Symbol < "u" && Symbol.for && Symbol.for("react.element") || 60103, bP = /^(?: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]/, yP = /^on(Ani|Tra|Tou|BeforeInp|Compo)/, wP = /[A-Z0-9]/g, kP = typeof document < "u", xP = function(t) { return (typeof Symbol < "u" && typeof Symbol() == "symbol" ? /fil|che|rad/ : /fil|che|ra/).test(t); }; -function xP(t, e, n) { - return e.__k == null && (e.textContent = ""), zo(t, e), typeof n == "function" && n(), t ? t.__c : null; -} function vP(t, e, n) { - return Iw(t, e), typeof n == "function" && n(), t ? t.__c : null; + return e.__k == null && (e.textContent = ""), jo(t, e), typeof n == "function" && n(), t ? t.__c : null; +} +function SP(t, e, n) { + return Nw(t, e), typeof n == "function" && n(), t ? t.__c : null; } In.prototype.isReactComponent = {}, ["componentWillMount", "componentWillReceiveProps", "componentWillUpdate"].forEach(function(t) { Object.defineProperty(In.prototype, t, { configurable: !0, get: function() { @@ -728,87 +728,87 @@ In.prototype.isReactComponent = {}, ["componentWillMount", "componentWillReceive Object.defineProperty(this, t, { configurable: !0, writable: !0, value: e }); } }); }); -var PO = Y.event; -function SP() { -} +var TO = Y.event; function _P() { - return this.cancelBubble; } function CP() { + return this.cancelBubble; +} +function AP() { return this.defaultPrevented; } Y.event = function(t) { - return PO && (t = PO(t)), t.persist = SP, t.isPropagationStopped = _P, t.isDefaultPrevented = CP, t.nativeEvent = t; + return TO && (t = TO(t)), t.persist = _P, t.isPropagationStopped = CP, t.isDefaultPrevented = AP, t.nativeEvent = t; }; -var im, AP = { enumerable: !1, configurable: !0, get: function() { +var sg, $P = { enumerable: !1, configurable: !0, get: function() { return this.class; -} }, TO = Y.vnode; +} }, QO = Y.vnode; Y.vnode = function(t) { typeof t.type == "string" && function(e) { var n = e.props, r = e.type, i = {}; for (var s in n) { var o = n[s]; - if (!(s === "value" && "defaultValue" in n && o == null || wP && s === "children" && r === "noscript" || s === "class" || s === "className")) { + if (!(s === "value" && "defaultValue" in n && o == null || kP && s === "children" && r === "noscript" || s === "class" || s === "className")) { var l = s.toLowerCase(); - s === "defaultValue" && "value" in n && n.value == null ? s = "value" : s === "download" && o === !0 ? o = "" : l === "ondoubleclick" ? s = "ondblclick" : l !== "onchange" || r !== "input" && r !== "textarea" || kP(n.type) ? l === "onfocus" ? s = "onfocusin" : l === "onblur" ? s = "onfocusout" : bP.test(s) ? s = l : r.indexOf("-") === -1 && OP.test(s) ? s = s.replace(yP, "-$&").toLowerCase() : o === null && (o = void 0) : l = s = "oninput", l === "oninput" && i[s = l] && (s = "oninputCapture"), i[s] = o; + s === "defaultValue" && "value" in n && n.value == null ? s = "value" : s === "download" && o === !0 ? o = "" : l === "ondoubleclick" ? s = "ondblclick" : l !== "onchange" || r !== "input" && r !== "textarea" || xP(n.type) ? l === "onfocus" ? s = "onfocusin" : l === "onblur" ? s = "onfocusout" : yP.test(s) ? s = l : r.indexOf("-") === -1 && bP.test(s) ? s = s.replace(wP, "-$&").toLowerCase() : o === null && (o = void 0) : l = s = "oninput", l === "oninput" && i[s = l] && (s = "oninputCapture"), i[s] = o; } } r == "select" && i.multiple && Array.isArray(i.value) && (i.value = ir(n.children).forEach(function(a) { a.props.selected = i.value.indexOf(a.props.value) != -1; })), r == "select" && i.defaultValue != null && (i.value = ir(n.children).forEach(function(a) { a.props.selected = i.multiple ? i.defaultValue.indexOf(a.props.value) != -1 : i.defaultValue == a.props.value; - })), n.class && !n.className ? (i.class = n.class, Object.defineProperty(i, "className", AP)) : (n.className && !n.class || n.class && n.className) && (i.class = i.className = n.className), e.props = i; - }(t), t.$$typeof = zw, TO && TO(t); + })), n.class && !n.className ? (i.class = n.class, Object.defineProperty(i, "className", $P)) : (n.className && !n.class || n.class && n.className) && (i.class = i.className = n.className), e.props = i; + }(t), t.$$typeof = Fw, QO && QO(t); }; -var QO = Y.__r; +var EO = Y.__r; Y.__r = function(t) { - QO && QO(t), im = t.__c; + EO && EO(t), sg = t.__c; }; -var EO = Y.diffed; +var DO = Y.diffed; Y.diffed = function(t) { - EO && EO(t); + DO && DO(t); var e = t.props, n = t.__e; - n != null && t.type === "textarea" && "value" in e && e.value !== n.value && (n.value = e.value == null ? "" : e.value), im = null; + n != null && t.type === "textarea" && "value" in e && e.value !== n.value && (n.value = e.value == null ? "" : e.value), sg = null; }; -var $P = { ReactCurrentDispatcher: { current: { readContext: function(t) { - return im.__n[t.__c].props.value; +var PP = { ReactCurrentDispatcher: { current: { readContext: function(t) { + return sg.__n[t.__c].props.value; } } } }; -function PP(t) { +function TP(t) { return fn.bind(null, t); } -function Ah(t) { - return !!t && t.$$typeof === zw; -} -function TP(t) { - return Ah(t) && t.type === cr; +function $h(t) { + return !!t && t.$$typeof === Fw; } function QP(t) { - return Ah(t) ? K$.apply(null, arguments) : t; + return $h(t) && t.type === cr; } function EP(t) { - return !!t.__k && (zo(null, t), !0); + return $h(t) ? J$.apply(null, arguments) : t; } function DP(t) { + return !!t.__k && (jo(null, t), !0); +} +function RP(t) { return t && (t.base || t.nodeType === 1 && t) || null; } -var RP = function(t, e) { +var MP = function(t, e) { return t(e); -}, MP = function(t, e) { +}, ZP = function(t, e) { return t(e); -}, ZP = cr; -function Fw(t) { +}, LP = cr; +function Uw(t) { t(); } -function LP(t) { +function IP(t) { return t; } -function IP() { - return [!1, Fw]; +function NP() { + return [!1, Uw]; } -var NP = Ch, qP = Ah; -function BP(t, e) { +var qP = Ah, BP = $h; +function YP(t, e) { var n = e(), r = Me({ h: { __: n, v: e } }), i = r[0].h, s = r[1]; - return Ch(function() { + return Ah(function() { i.__ = n, i.v = e, Pu(i) && s({ h: i }); }, [t, n, e]), Pt(function() { return Pu(i) && s({ h: i }), t(function() { @@ -825,11 +825,11 @@ function Pu(t) { return !0; } } -var xi = { useState: Me, useId: tP, useReducer: _h, useEffect: Pt, useLayoutEffect: Ch, useInsertionEffect: NP, useTransition: IP, useDeferredValue: LP, useSyncExternalStore: BP, startTransition: Fw, useRef: Nn, useImperativeHandle: eP, useMemo: rt, useCallback: nm, useContext: qw, useDebugValue: id, version: "17.0.2", Children: uP, render: xP, hydrate: vP, unmountComponentAtNode: EP, createPortal: gP, createElement: fn, createContext: J$, createFactory: PP, cloneElement: QP, createRef: z$, Fragment: cr, isValidElement: Ah, isElement: qP, isFragment: TP, findDOMNode: DP, Component: In, PureComponent: ld, memo: aP, forwardRef: hP, flushSync: MP, unstable_batchedUpdates: RP, StrictMode: ZP, Suspense: Ha, SuspenseList: wo, lazy: dP, __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: $P }; -function YP(t) { +var xi = { useState: Me, useId: nP, useReducer: Ch, useEffect: Pt, useLayoutEffect: Ah, useInsertionEffect: qP, useTransition: NP, useDeferredValue: IP, useSyncExternalStore: YP, startTransition: Uw, useRef: Nn, useImperativeHandle: tP, useMemo: rt, useCallback: rg, useContext: Bw, useDebugValue: sd, version: "17.0.2", Children: fP, render: vP, hydrate: SP, unmountComponentAtNode: DP, createPortal: OP, createElement: fn, createContext: eP, createFactory: TP, cloneElement: EP, createRef: F$, Fragment: cr, isValidElement: $h, isElement: BP, isFragment: QP, findDOMNode: RP, Component: In, PureComponent: ad, memo: cP, forwardRef: uP, flushSync: ZP, unstable_batchedUpdates: MP, StrictMode: LP, Suspense: Ha, SuspenseList: wo, lazy: pP, __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: PP }; +function XP(t) { return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t; } -function Uw(t) { +function Gw(t) { var e = t.default; if (typeof e == "function") { var n = function() { @@ -850,7 +850,7 @@ function Uw(t) { }); }), n; } -var XP = function(e, n, r, i) { +var WP = function(e, n, r, i) { var s = r ? r.call(i, e, n) : void 0; if (s !== void 0) return !!s; @@ -870,11 +870,11 @@ var XP = function(e, n, r, i) { return !1; } return !0; -}, _e = "-ms-", Eo = "-moz-", ue = "-webkit-", Gw = "comm", $h = "rule", sm = "decl", WP = "@import", Hw = "@keyframes", VP = "@layer", jP = Math.abs, om = String.fromCharCode, ad = Object.assign; -function zP(t, e) { +}, _e = "-ms-", Eo = "-moz-", he = "-webkit-", Hw = "comm", Ph = "rule", og = "decl", VP = "@import", Kw = "@keyframes", jP = "@layer", zP = Math.abs, lg = String.fromCharCode, cd = Object.assign; +function FP(t, e) { return Ge(t, 0) ^ 45 ? (((e << 2 ^ Ge(t, 0)) << 2 ^ Ge(t, 1)) << 2 ^ Ge(t, 2)) << 2 ^ Ge(t, 3) : 0; } -function Kw(t) { +function Jw(t) { return t.trim(); } function tr(t, e) { @@ -895,51 +895,51 @@ function bs(t, e, n) { function Pn(t) { return t.length; } -function Jw(t) { +function ek(t) { return t.length; } function ko(t, e) { return e.push(t), t; } -function FP(t, e) { +function UP(t, e) { return t.map(e).join(""); } -function DO(t, e) { +function RO(t, e) { return t.filter(function(n) { return !tr(n, e); }); } -var Ph = 1, ys = 1, ek = 0, Gt = 0, qe = 0, Ys = ""; -function Th(t, e, n, r, i, s, o, l) { - return { value: t, root: e, parent: n, type: r, props: i, children: s, line: Ph, column: ys, length: o, return: "", siblings: l }; +var Th = 1, ys = 1, tk = 0, Gt = 0, qe = 0, Ys = ""; +function Qh(t, e, n, r, i, s, o, l) { + return { value: t, root: e, parent: n, type: r, props: i, children: s, line: Th, column: ys, length: o, return: "", siblings: l }; } function kr(t, e) { - return ad(Th("", null, null, "", null, null, 0, t.siblings), t, { length: -t.length }, e); + return cd(Qh("", null, null, "", null, null, 0, t.siblings), t, { length: -t.length }, e); } function Xi(t) { for (; t.root; ) t = kr(t.root, { children: [t] }); ko(t, t.siblings); } -function UP() { +function GP() { return qe; } -function GP() { - return qe = Gt > 0 ? Ge(Ys, --Gt) : 0, ys--, qe === 10 && (ys = 1, Ph--), qe; +function HP() { + return qe = Gt > 0 ? Ge(Ys, --Gt) : 0, ys--, qe === 10 && (ys = 1, Th--), qe; } function hn() { - return qe = Gt < ek ? Ge(Ys, Gt++) : 0, ys++, qe === 10 && (ys = 1, Ph++), qe; + return qe = Gt < tk ? Ge(Ys, Gt++) : 0, ys++, qe === 10 && (ys = 1, Th++), qe; } -function gi() { +function mi() { return Ge(Ys, Gt); } function Ja() { return Gt; } -function Qh(t, e) { +function Eh(t, e) { return bs(Ys, t, e); } -function cd(t) { +function hd(t) { switch (t) { case 0: case 9: @@ -971,36 +971,36 @@ function cd(t) { } return 0; } -function HP(t) { - return Ph = ys = 1, ek = Pn(Ys = t), Gt = 0, []; -} function KP(t) { + return Th = ys = 1, tk = Pn(Ys = t), Gt = 0, []; +} +function JP(t) { return Ys = "", t; } function Tu(t) { - return Kw(Qh(Gt - 1, hd(t === 91 ? t + 2 : t === 40 ? t + 1 : t))); + return Jw(Eh(Gt - 1, ud(t === 91 ? t + 2 : t === 40 ? t + 1 : t))); } -function JP(t) { - for (; (qe = gi()) && qe < 33; ) +function eT(t) { + for (; (qe = mi()) && qe < 33; ) hn(); - return cd(t) > 2 || cd(qe) > 3 ? "" : " "; + return hd(t) > 2 || hd(qe) > 3 ? "" : " "; } -function eT(t, e) { +function tT(t, e) { for (; --e && hn() && !(qe < 48 || qe > 102 || qe > 57 && qe < 65 || qe > 70 && qe < 97); ) ; - return Qh(t, Ja() + (e < 6 && gi() == 32 && hn() == 32)); + return Eh(t, Ja() + (e < 6 && mi() == 32 && hn() == 32)); } -function hd(t) { +function ud(t) { for (; hn(); ) switch (qe) { case t: return Gt; case 34: case 39: - t !== 34 && t !== 39 && hd(qe); + t !== 34 && t !== 39 && ud(qe); break; case 40: - t === 41 && hd(t); + t === 41 && ud(t); break; case 92: hn(); @@ -1008,22 +1008,22 @@ function hd(t) { } return Gt; } -function tT(t, e) { +function nT(t, e) { for (; hn() && t + qe !== 47 + 10; ) - if (t + qe === 42 + 42 && gi() === 47) + if (t + qe === 42 + 42 && mi() === 47) break; - return "/*" + Qh(e, Gt - 1) + "*" + om(t === 47 ? t : hn()); + return "/*" + Eh(e, Gt - 1) + "*" + lg(t === 47 ? t : hn()); } -function nT(t) { - for (; !cd(gi()); ) +function rT(t) { + for (; !hd(mi()); ) hn(); - return Qh(t, Gt); + return Eh(t, Gt); } -function rT(t) { - return KP(ec("", null, null, null, [""], t = HP(t), 0, [0], t)); +function iT(t) { + return JP(ec("", null, null, null, [""], t = KP(t), 0, [0], t)); } function ec(t, e, n, r, i, s, o, l, a) { - for (var c = 0, h = 0, u = o, f = 0, d = 0, p = 0, m = 1, g = 1, O = 1, b = 0, y = "", w = i, S = s, x = r, v = y; g; ) + for (var c = 0, h = 0, u = o, f = 0, d = 0, p = 0, g = 1, m = 1, O = 1, b = 0, y = "", w = i, S = s, x = r, v = y; m; ) switch (p = b, b = hn()) { case 40: if (p != 108 && Ge(v, u - 1) == 58) { @@ -1039,37 +1039,37 @@ function ec(t, e, n, r, i, s, o, l, a) { case 10: case 13: case 32: - v += JP(p); + v += eT(p); break; case 92: - v += eT(Ja() - 1, 7); + v += tT(Ja() - 1, 7); continue; case 47: - switch (gi()) { + switch (mi()) { case 42: case 47: - ko(iT(tT(hn(), Ja()), e, n, a), a); + ko(sT(nT(hn(), Ja()), e, n, a), a); break; default: v += "/"; } break; - case 123 * m: + case 123 * g: l[c++] = Pn(v) * O; - case 125 * m: + case 125 * g: case 59: case 0: switch (b) { case 0: case 125: - g = 0; + m = 0; case 59 + h: - O == -1 && (v = te(v, /\f/g, "")), d > 0 && Pn(v) - u && ko(d > 32 ? MO(v + ";", r, n, u - 1, a) : MO(te(v, " ", "") + ";", r, n, u - 2, a), a); + O == -1 && (v = te(v, /\f/g, "")), d > 0 && Pn(v) - u && ko(d > 32 ? ZO(v + ";", r, n, u - 1, a) : ZO(te(v, " ", "") + ";", r, n, u - 2, a), a); break; case 59: v += ";"; default: - if (ko(x = RO(v, e, n, c, h, i, l, y, w = [], S = [], u, s), s), b === 123) + if (ko(x = MO(v, e, n, c, h, i, l, y, w = [], S = [], u, s), s), b === 123) if (h === 0) ec(v, e, x, x, w, s, u, l, S); else @@ -1078,24 +1078,24 @@ function ec(t, e, n, r, i, s, o, l, a) { case 108: case 109: case 115: - ec(t, x, x, r && ko(RO(t, x, x, 0, 0, i, l, y, i, w = [], u, S), S), i, S, u, l, r ? w : S); + ec(t, x, x, r && ko(MO(t, x, x, 0, 0, i, l, y, i, w = [], u, S), S), i, S, u, l, r ? w : S); break; default: ec(v, x, x, x, [""], S, 0, l, S); } } - c = h = d = 0, m = O = 1, y = v = "", u = o; + c = h = d = 0, g = O = 1, y = v = "", u = o; break; case 58: u = 1 + Pn(v), d = p; default: - if (m < 1) { + if (g < 1) { if (b == 123) - --m; - else if (b == 125 && m++ == 0 && GP() == 125) + --g; + else if (b == 125 && g++ == 0 && HP() == 125) continue; } - switch (v += om(b), b * m) { + switch (v += lg(b), b * g) { case 38: O = h > 0 ? 1 : (v += "\f", -1); break; @@ -1103,30 +1103,30 @@ function ec(t, e, n, r, i, s, o, l, a) { l[c++] = (Pn(v) - 1) * O, O = 1; break; case 64: - gi() === 45 && (v += Tu(hn())), f = gi(), h = u = Pn(y = v += nT(Ja())), b++; + mi() === 45 && (v += Tu(hn())), f = mi(), h = u = Pn(y = v += rT(Ja())), b++; break; case 45: - p === 45 && Pn(v) == 2 && (m = 0); + p === 45 && Pn(v) == 2 && (g = 0); } } return s; } -function RO(t, e, n, r, i, s, o, l, a, c, h, u) { - for (var f = i - 1, d = i === 0 ? s : [""], p = Jw(d), m = 0, g = 0, O = 0; m < r; ++m) - for (var b = 0, y = bs(t, f + 1, f = jP(g = o[m])), w = t; b < p; ++b) - (w = Kw(g > 0 ? d[b] + " " + y : te(y, /&\f/g, d[b]))) && (a[O++] = w); - return Th(t, e, n, i === 0 ? $h : l, a, c, h, u); +function MO(t, e, n, r, i, s, o, l, a, c, h, u) { + for (var f = i - 1, d = i === 0 ? s : [""], p = ek(d), g = 0, m = 0, O = 0; g < r; ++g) + for (var b = 0, y = bs(t, f + 1, f = zP(m = o[g])), w = t; b < p; ++b) + (w = Jw(m > 0 ? d[b] + " " + y : te(y, /&\f/g, d[b]))) && (a[O++] = w); + return Qh(t, e, n, i === 0 ? Ph : l, a, c, h, u); } -function iT(t, e, n, r) { - return Th(t, e, n, Gw, om(UP()), bs(t, 2, -2), 0, r); +function sT(t, e, n, r) { + return Qh(t, e, n, Hw, lg(GP()), bs(t, 2, -2), 0, r); } -function MO(t, e, n, r, i) { - return Th(t, e, n, sm, bs(t, 0, r), bs(t, r + 1, -1), r, i); +function ZO(t, e, n, r, i) { + return Qh(t, e, n, og, bs(t, 0, r), bs(t, r + 1, -1), r, i); } -function tk(t, e, n) { - switch (zP(t, e)) { +function nk(t, e, n) { + switch (FP(t, e)) { case 5103: - return ue + "print-" + t + t; + return he + "print-" + t + t; case 5737: case 4201: case 3177: @@ -1152,7 +1152,7 @@ function tk(t, e, n) { case 5365: case 5621: case 3829: - return ue + t + t; + return he + t + t; case 4789: return Eo + t + t; case 5349: @@ -1160,43 +1160,43 @@ function tk(t, e, n) { case 4810: case 6968: case 2756: - return ue + t + Eo + t + _e + t + t; + return he + t + Eo + t + _e + t + t; case 5936: switch (Ge(t, e + 11)) { case 114: - return ue + t + _e + te(t, /[svh]\w+-[tblr]{2}/, "tb") + t; + return he + t + _e + te(t, /[svh]\w+-[tblr]{2}/, "tb") + t; case 108: - return ue + t + _e + te(t, /[svh]\w+-[tblr]{2}/, "tb-rl") + t; + return he + t + _e + te(t, /[svh]\w+-[tblr]{2}/, "tb-rl") + t; case 45: - return ue + t + _e + te(t, /[svh]\w+-[tblr]{2}/, "lr") + t; + return he + t + _e + te(t, /[svh]\w+-[tblr]{2}/, "lr") + t; } case 6828: case 4268: case 2903: - return ue + t + _e + t + t; + return he + t + _e + t + t; case 6165: - return ue + t + _e + "flex-" + t + t; + return he + t + _e + "flex-" + t + t; case 5187: - return ue + t + te(t, /(\w+).+(:[^]+)/, ue + "box-$1$2" + _e + "flex-$1$2") + t; + return he + t + te(t, /(\w+).+(:[^]+)/, he + "box-$1$2" + _e + "flex-$1$2") + t; case 5443: - return ue + t + _e + "flex-item-" + te(t, /flex-|-self/g, "") + (tr(t, /flex-|baseline/) ? "" : _e + "grid-row-" + te(t, /flex-|-self/g, "")) + t; + return he + t + _e + "flex-item-" + te(t, /flex-|-self/g, "") + (tr(t, /flex-|baseline/) ? "" : _e + "grid-row-" + te(t, /flex-|-self/g, "")) + t; case 4675: - return ue + t + _e + "flex-line-pack" + te(t, /align-content|flex-|-self/g, "") + t; + return he + t + _e + "flex-line-pack" + te(t, /align-content|flex-|-self/g, "") + t; case 5548: - return ue + t + _e + te(t, "shrink", "negative") + t; + return he + t + _e + te(t, "shrink", "negative") + t; case 5292: - return ue + t + _e + te(t, "basis", "preferred-size") + t; + return he + t + _e + te(t, "basis", "preferred-size") + t; case 6060: - return ue + "box-" + te(t, "-grow", "") + ue + t + _e + te(t, "grow", "positive") + t; + return he + "box-" + te(t, "-grow", "") + he + t + _e + te(t, "grow", "positive") + t; case 4554: - return ue + te(t, /([^-])(transform)/g, "$1" + ue + "$2") + t; + return he + te(t, /([^-])(transform)/g, "$1" + he + "$2") + t; case 6187: - return te(te(te(t, /(zoom-|grab)/, ue + "$1"), /(image-set)/, ue + "$1"), t, "") + t; + return te(te(te(t, /(zoom-|grab)/, he + "$1"), /(image-set)/, he + "$1"), t, "") + t; case 5495: case 3959: - return te(t, /(image-set\([^]*)/, ue + "$1$`$1"); + return te(t, /(image-set\([^]*)/, he + "$1$`$1"); case 4968: - return te(te(t, /(.+:)(flex-)?(.*)/, ue + "box-pack:$3" + _e + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + ue + t + t; + return te(te(t, /(.+:)(flex-)?(.*)/, he + "box-pack:$3" + _e + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + he + t + t; case 4200: if (!tr(t, /flex-|baseline/)) return _e + "grid-column-align" + bs(t, e) + t; @@ -1218,7 +1218,7 @@ function tk(t, e, n) { case 3583: case 4068: case 2532: - return te(t, /(.+)-inline(.+)/, ue + "$1$2") + t; + return te(t, /(.+)-inline(.+)/, he + "$1$2") + t; case 8116: case 7059: case 5753: @@ -1237,9 +1237,9 @@ function tk(t, e, n) { if (Ge(t, e + 4) !== 45) break; case 102: - return te(t, /(.+:)(.+)-([^]+)/, "$1" + ue + "$2-$3$1" + Eo + (Ge(t, e + 3) == 108 ? "$3" : "$2-$3")) + t; + return te(t, /(.+:)(.+)-([^]+)/, "$1" + he + "$2-$3$1" + Eo + (Ge(t, e + 3) == 108 ? "$3" : "$2-$3")) + t; case 115: - return ~Ka(t, "stretch") ? tk(te(t, "stretch", "fill-available"), e, n) + t : t; + return ~Ka(t, "stretch") ? nk(te(t, "stretch", "fill-available"), e, n) + t : t; } break; case 5152: @@ -1249,12 +1249,12 @@ function tk(t, e, n) { }); case 4949: if (Ge(t, e + 6) === 121) - return te(t, ":", ":" + ue) + t; + return te(t, ":", ":" + he) + t; break; case 6444: switch (Ge(t, Ge(t, 14) === 45 ? 18 : 11)) { case 120: - return te(t, /(.+:)([^;\s!]+)(;|(\s+)?!.+)?/, "$1" + ue + (Ge(t, 14) === 45 ? "inline-" : "") + "box$3$1" + ue + "$2$3$1" + _e + "$2box$3") + t; + return te(t, /(.+:)([^;\s!]+)(;|(\s+)?!.+)?/, "$1" + he + (Ge(t, 14) === 45 ? "inline-" : "") + "box$3$1" + he + "$2$3$1" + _e + "$2box$3") + t; case 100: return te(t, ":", ":" + _e) + t; } @@ -1268,67 +1268,67 @@ function tk(t, e, n) { } return t; } -function Sc(t, e) { +function _c(t, e) { for (var n = "", r = 0; r < t.length; r++) n += e(t[r], r, t, e) || ""; return n; } -function sT(t, e, n, r) { +function oT(t, e, n, r) { switch (t.type) { - case VP: + case jP: if (t.children.length) break; - case WP: - case sm: + case VP: + case og: return t.return = t.return || t.value; - case Gw: - return ""; case Hw: - return t.return = t.value + "{" + Sc(t.children, r) + "}"; - case $h: + return ""; + case Kw: + return t.return = t.value + "{" + _c(t.children, r) + "}"; + case Ph: if (!Pn(t.value = t.props.join(","))) return ""; } - return Pn(n = Sc(t.children, r)) ? t.return = t.value + "{" + n + "}" : ""; + return Pn(n = _c(t.children, r)) ? t.return = t.value + "{" + n + "}" : ""; } -function oT(t) { - var e = Jw(t); +function lT(t) { + var e = ek(t); return function(n, r, i, s) { for (var o = "", l = 0; l < e; l++) o += t[l](n, r, i, s) || ""; return o; }; } -function lT(t) { +function aT(t) { return function(e) { e.root || (e = e.return) && t(e); }; } -function aT(t, e, n, r) { +function cT(t, e, n, r) { if (t.length > -1 && !t.return) switch (t.type) { - case sm: - t.return = tk(t.value, t.length, n); + case og: + t.return = nk(t.value, t.length, n); return; - case Hw: - return Sc([kr(t, { value: te(t.value, "@", "@" + ue) })], r); - case $h: + case Kw: + return _c([kr(t, { value: te(t.value, "@", "@" + he) })], r); + case Ph: if (t.length) - return FP(n = t.props, function(i) { + return UP(n = t.props, function(i) { switch (tr(i, r = /(::plac\w+|:read-\w+)/)) { case ":read-only": case ":read-write": - Xi(kr(t, { props: [te(i, /:(read-\w+)/, ":" + Eo + "$1")] })), Xi(kr(t, { props: [i] })), ad(t, { props: DO(n, r) }); + Xi(kr(t, { props: [te(i, /:(read-\w+)/, ":" + Eo + "$1")] })), Xi(kr(t, { props: [i] })), cd(t, { props: RO(n, r) }); break; case "::placeholder": - Xi(kr(t, { props: [te(i, /:(plac\w+)/, ":" + ue + "input-$1")] })), Xi(kr(t, { props: [te(i, /:(plac\w+)/, ":" + Eo + "$1")] })), Xi(kr(t, { props: [te(i, /:(plac\w+)/, _e + "input-$1")] })), Xi(kr(t, { props: [i] })), ad(t, { props: DO(n, r) }); + Xi(kr(t, { props: [te(i, /:(plac\w+)/, ":" + he + "input-$1")] })), Xi(kr(t, { props: [te(i, /:(plac\w+)/, ":" + Eo + "$1")] })), Xi(kr(t, { props: [te(i, /:(plac\w+)/, _e + "input-$1")] })), Xi(kr(t, { props: [i] })), cd(t, { props: RO(n, r) }); break; } return ""; }); } } -var cT = { +var hT = { animationIterationCount: 1, aspectRatio: 1, borderImageOutset: 1, @@ -1375,8 +1375,8 @@ var cT = { strokeMiterlimit: 1, strokeOpacity: 1, strokeWidth: 1 -}, vi = typeof process < "u" && {} !== void 0 && ({}.REACT_APP_SC_ATTR || {}.SC_ATTR) || "data-styled", nk = "active", rk = "data-styled-version", Eh = "6.1.2", lm = `/*!sc*/ -`, am = typeof window < "u" && "HTMLElement" in window, hT = 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"), ZO = /invalid hook call/i, oa = /* @__PURE__ */ new Set(), uT = function(t, e) { +}, vi = typeof process < "u" && {} !== void 0 && ({}.REACT_APP_SC_ATTR || {}.SC_ATTR) || "data-styled", rk = "active", ik = "data-styled-version", Dh = "6.1.2", ag = `/*!sc*/ +`, cg = typeof window < "u" && "HTMLElement" in window, uT = 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"), LO = /invalid hook call/i, oa = /* @__PURE__ */ new Set(), fT = function(t, e) { if ({}.NODE_ENV !== "production") { var n = e ? ' with the id of "'.concat(e, '"') : "", r = "The component ".concat(t).concat(n, ` has been created dynamically. `) + `You may see this warning because you've called styled inside another component. @@ -1386,67 +1386,67 @@ To resolve this only create new StyledComponents outside of any render method an console.error = function(o) { for (var l = [], a = 1; a < arguments.length; a++) l[a - 1] = arguments[a]; - ZO.test(o) ? (s = !1, oa.delete(r)) : i.apply(void 0, Os([o], l, !1)); + LO.test(o) ? (s = !1, oa.delete(r)) : i.apply(void 0, Os([o], l, !1)); }, Nn(), s && !oa.has(r) && (console.warn(r), oa.add(r)); } catch (o) { - ZO.test(o.message) && oa.delete(r); + LO.test(o.message) && oa.delete(r); } finally { console.error = i; } } -}, Dh = Object.freeze([]), ws = Object.freeze({}); -function fT(t, e, n) { +}, Rh = Object.freeze([]), ws = Object.freeze({}); +function dT(t, e, n) { return n === void 0 && (n = ws), t.theme !== n.theme && t.theme || e || n.theme; } -var ud = /* @__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"]), dT = /[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g, pT = /(^-|-$)/g; -function LO(t) { - return t.replace(dT, "-").replace(pT, ""); +var fd = /* @__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"]), pT = /[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g, gT = /(^-|-$)/g; +function IO(t) { + return t.replace(pT, "-").replace(gT, ""); } -var mT = /(a)(d)/gi, la = 52, IO = function(t) { +var mT = /(a)(d)/gi, la = 52, NO = function(t) { return String.fromCharCode(t + (t > 25 ? 39 : 97)); }; -function fd(t) { +function dd(t) { var e, n = ""; for (e = Math.abs(t); e > la; e = e / la | 0) - n = IO(e % la) + n; - return (IO(e % la) + n).replace(mT, "$1-$2"); + n = NO(e % la) + n; + return (NO(e % la) + n).replace(mT, "$1-$2"); } -var Qu, ik = 5381, si = function(t, e) { +var Qu, sk = 5381, si = function(t, e) { for (var n = e.length; n; ) t = 33 * t ^ e.charCodeAt(--n); return t; -}, sk = function(t) { - return si(ik, t); +}, ok = function(t) { + return si(sk, t); }; -function gT(t) { - return fd(sk(t) >>> 0); +function OT(t) { + return dd(ok(t) >>> 0); } -function ok(t) { +function lk(t) { return {}.NODE_ENV !== "production" && typeof t == "string" && t || t.displayName || t.name || "Component"; } function Eu(t) { return typeof t == "string" && ({}.NODE_ENV === "production" || t.charAt(0) === t.charAt(0).toLowerCase()); } -var lk = typeof Symbol == "function" && Symbol.for, ak = lk ? Symbol.for("react.memo") : 60115, OT = lk ? Symbol.for("react.forward_ref") : 60112, bT = { childContextTypes: !0, contextType: !0, contextTypes: !0, defaultProps: !0, displayName: !0, getDefaultProps: !0, getDerivedStateFromError: !0, getDerivedStateFromProps: !0, mixins: !0, propTypes: !0, type: !0 }, yT = { name: !0, length: !0, prototype: !0, caller: !0, callee: !0, arguments: !0, arity: !0 }, ck = { $$typeof: !0, compare: !0, defaultProps: !0, displayName: !0, propTypes: !0, type: !0 }, wT = ((Qu = {})[OT] = { $$typeof: !0, render: !0, defaultProps: !0, displayName: !0, propTypes: !0 }, Qu[ak] = ck, Qu); -function NO(t) { - return ("type" in (e = t) && e.type.$$typeof) === ak ? ck : "$$typeof" in t ? wT[t.$$typeof] : bT; +var ak = typeof Symbol == "function" && Symbol.for, ck = ak ? Symbol.for("react.memo") : 60115, bT = ak ? Symbol.for("react.forward_ref") : 60112, yT = { childContextTypes: !0, contextType: !0, contextTypes: !0, defaultProps: !0, displayName: !0, getDefaultProps: !0, getDerivedStateFromError: !0, getDerivedStateFromProps: !0, mixins: !0, propTypes: !0, type: !0 }, wT = { name: !0, length: !0, prototype: !0, caller: !0, callee: !0, arguments: !0, arity: !0 }, hk = { $$typeof: !0, compare: !0, defaultProps: !0, displayName: !0, propTypes: !0, type: !0 }, kT = ((Qu = {})[bT] = { $$typeof: !0, render: !0, defaultProps: !0, displayName: !0, propTypes: !0 }, Qu[ck] = hk, Qu); +function qO(t) { + return ("type" in (e = t) && e.type.$$typeof) === ck ? hk : "$$typeof" in t ? kT[t.$$typeof] : yT; var e; } -var kT = Object.defineProperty, xT = Object.getOwnPropertyNames, qO = Object.getOwnPropertySymbols, vT = Object.getOwnPropertyDescriptor, ST = Object.getPrototypeOf, BO = Object.prototype; -function hk(t, e, n) { +var xT = Object.defineProperty, vT = Object.getOwnPropertyNames, BO = Object.getOwnPropertySymbols, ST = Object.getOwnPropertyDescriptor, _T = Object.getPrototypeOf, YO = Object.prototype; +function uk(t, e, n) { if (typeof e != "string") { - if (BO) { - var r = ST(e); - r && r !== BO && hk(t, r, n); + if (YO) { + var r = _T(e); + r && r !== YO && uk(t, r, n); } - var i = xT(e); - qO && (i = i.concat(qO(e))); - for (var s = NO(t), o = NO(e), l = 0; l < i.length; ++l) { + var i = vT(e); + BO && (i = i.concat(BO(e))); + for (var s = qO(t), o = qO(e), l = 0; l < i.length; ++l) { var a = i[l]; - if (!(a in yT || n && n[a] || o && a in o || s && a in s)) { - var c = vT(e, a); + if (!(a in wT || n && n[a] || o && a in o || s && a in s)) { + var c = ST(e, a); try { - kT(t, a, c); + xT(t, a, c); } catch { } } @@ -1457,13 +1457,13 @@ function hk(t, e, n) { function ks(t) { return typeof t == "function"; } -function cm(t) { +function hg(t) { return typeof t == "object" && "styledComponentId" in t; } function hi(t, e) { return t && e ? "".concat(t, " ").concat(e) : t || e || ""; } -function YO(t, e) { +function XO(t, e) { if (t.length === 0) return ""; for (var n = t[0], r = 1; r < t.length; r++) @@ -1473,21 +1473,21 @@ function YO(t, e) { function xs(t) { return t !== null && typeof t == "object" && t.constructor.name === Object.name && !("props" in t && t.$$typeof); } -function dd(t, e, n) { +function pd(t, e, n) { if (n === void 0 && (n = !1), !n && !xs(t) && !Array.isArray(t)) return e; if (Array.isArray(e)) for (var r = 0; r < e.length; r++) - t[r] = dd(t[r], e[r]); + t[r] = pd(t[r], e[r]); else if (xs(e)) for (var r in e) - t[r] = dd(t[r], e[r]); + t[r] = pd(t[r], e[r]); return t; } -function hm(t, e) { +function ug(t, e) { Object.defineProperty(t, "toString", { value: e }); } -var _T = {}.NODE_ENV !== "production" ? { 1: `Cannot create styled-component for component: %s. +var CT = {}.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. @@ -1529,7 +1529,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 CT() { +function AT() { for (var t = [], e = 0; e < arguments.length; e++) t[e] = arguments[e]; for (var n = t[0], r = [], i = 1, s = t.length; i < s; i += 1) @@ -1541,9 +1541,9 @@ function CT() { function Xs(t) { for (var e = [], n = 1; n < arguments.length; n++) e[n - 1] = arguments[n]; - 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(CT.apply(void 0, Os([_T[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(AT.apply(void 0, Os([CT[t]], e, !1)).trim()); } -var AT = function() { +var $T = function() { function t(e) { this.groupSizes = new Uint32Array(512), this.length = 512, this.tag = e; } @@ -1574,50 +1574,50 @@ var AT = function() { if (e >= this.length || this.groupSizes[e] === 0) return n; for (var r = this.groupSizes[e], i = this.indexOfGroup(e), s = i + r, o = i; o < s; o++) - n += "".concat(this.tag.getRule(o)).concat(lm); + n += "".concat(this.tag.getRule(o)).concat(ag); return n; }, t; -}(), tc = /* @__PURE__ */ new Map(), _c = /* @__PURE__ */ new Map(), nc = 1, aa = function(t) { +}(), tc = /* @__PURE__ */ new Map(), Cc = /* @__PURE__ */ new Map(), nc = 1, aa = function(t) { if (tc.has(t)) return tc.get(t); - for (; _c.has(nc); ) + for (; Cc.has(nc); ) nc++; var e = nc++; if ({}.NODE_ENV !== "production" && ((0 | e) < 0 || e > 1073741824)) throw Xs(16, "".concat(e)); - return tc.set(t, e), _c.set(e, t), e; -}, $T = function(t, e) { - nc = e + 1, tc.set(t, e), _c.set(e, t); -}, PT = "style[".concat(vi, "][").concat(rk, '="').concat(Eh, '"]'), TT = new RegExp("^".concat(vi, '\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')), QT = function(t, e, n) { + return tc.set(t, e), Cc.set(e, t), e; +}, PT = function(t, e) { + nc = e + 1, tc.set(t, e), Cc.set(e, t); +}, TT = "style[".concat(vi, "][").concat(ik, '="').concat(Dh, '"]'), QT = new RegExp("^".concat(vi, '\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')), ET = function(t, e, n) { for (var r, i = n.split(","), s = 0, o = i.length; s < o; s++) (r = i[s]) && t.registerName(e, r); -}, ET = function(t, e) { - for (var n, r = ((n = e.textContent) !== null && n !== void 0 ? n : "").split(lm), i = [], s = 0, o = r.length; s < o; s++) { +}, DT = function(t, e) { + for (var n, r = ((n = e.textContent) !== null && n !== void 0 ? n : "").split(ag), i = [], s = 0, o = r.length; s < o; s++) { var l = r[s].trim(); if (l) { - var a = l.match(TT); + var a = l.match(QT); if (a) { var c = 0 | parseInt(a[1], 10), h = a[2]; - c !== 0 && ($T(h, c), QT(t, h, a[3]), t.getTag().insertRules(c, i)), i.length = 0; + c !== 0 && (PT(h, c), ET(t, h, a[3]), t.getTag().insertRules(c, i)), i.length = 0; } else i.push(l); } } }; -function DT() { +function RT() { return typeof __webpack_nonce__ < "u" ? __webpack_nonce__ : null; } -var uk = function(t) { +var fk = function(t) { var e = document.head, n = t || e, r = document.createElement("style"), i = function(l) { var a = Array.from(l.querySelectorAll("style[".concat(vi, "]"))); return a[a.length - 1]; }(n), s = i !== void 0 ? i.nextSibling : null; - r.setAttribute(vi, nk), r.setAttribute(rk, Eh); - var o = DT(); + r.setAttribute(vi, rk), r.setAttribute(ik, Dh); + var o = RT(); return o && r.setAttribute("nonce", o), n.insertBefore(r, s), r; -}, RT = function() { +}, MT = function() { function t(e) { - this.element = uk(e), this.element.appendChild(document.createTextNode("")), this.sheet = function(n) { + this.element = fk(e), this.element.appendChild(document.createTextNode("")), this.sheet = function(n) { if (n.sheet) return n.sheet; for (var r = document.styleSheets, i = 0, s = r.length; i < s; i++) { @@ -1640,9 +1640,9 @@ var uk = function(t) { var n = this.sheet.cssRules[e]; return n && n.cssText ? n.cssText : ""; }, t; -}(), MT = function() { +}(), ZT = function() { function t(e) { - this.element = uk(e), this.nodes = this.element.childNodes, this.length = 0; + this.element = fk(e), this.nodes = this.element.childNodes, this.length = 0; } return t.prototype.insertRule = function(e, n) { if (e <= this.length && e >= 0) { @@ -1655,7 +1655,7 @@ var uk = function(t) { }, t.prototype.getRule = function(e) { return e < this.length ? this.nodes[e].textContent : ""; }, t; -}(), ZT = function() { +}(), LT = function() { function t(e) { this.rules = [], this.length = 0; } @@ -1666,30 +1666,30 @@ var uk = function(t) { }, t.prototype.getRule = function(e) { return e < this.length ? this.rules[e] : ""; }, t; -}(), XO = am, LT = { isServer: !am, useCSSOMInjection: !hT }, fk = function() { +}(), WO = cg, IT = { isServer: !cg, useCSSOMInjection: !uT }, dk = function() { function t(e, n, r) { e === void 0 && (e = ws), n === void 0 && (n = {}); var i = this; - this.options = Ct(Ct({}, LT), e), this.gs = n, this.names = new Map(r), this.server = !!e.isServer, !this.server && am && XO && (XO = !1, function(s) { - for (var o = document.querySelectorAll(PT), l = 0, a = o.length; l < a; l++) { + this.options = Ct(Ct({}, IT), e), this.gs = n, this.names = new Map(r), this.server = !!e.isServer, !this.server && cg && WO && (WO = !1, function(s) { + for (var o = document.querySelectorAll(TT), l = 0, a = o.length; l < a; l++) { var c = o[l]; - c && c.getAttribute(vi) !== nk && (ET(s, c), c.parentNode && c.parentNode.removeChild(c)); + c && c.getAttribute(vi) !== rk && (DT(s, c), c.parentNode && c.parentNode.removeChild(c)); } - }(this)), hm(this, function() { + }(this)), ug(this, function() { return function(s) { for (var o = s.getTag(), l = o.length, a = "", c = function(u) { var f = function(O) { - return _c.get(O); + return Cc.get(O); }(u); if (f === void 0) return "continue"; var d = s.names.get(f), p = o.getGroup(u); if (d === void 0 || p.length === 0) return "continue"; - var m = "".concat(vi, ".g").concat(u, '[id="').concat(f, '"]'), g = ""; + var g = "".concat(vi, ".g").concat(u, '[id="').concat(f, '"]'), m = ""; d !== void 0 && d.forEach(function(O) { - O.length > 0 && (g += "".concat(O, ",")); - }), a += "".concat(p).concat(m, '{content:"').concat(g, '"}').concat(lm); + O.length > 0 && (m += "".concat(O, ",")); + }), a += "".concat(p).concat(g, '{content:"').concat(m, '"}').concat(ag); }, h = 0; h < l; h++) c(h); return a; @@ -1705,8 +1705,8 @@ var uk = function(t) { }, t.prototype.getTag = function() { return this.tag || (this.tag = (e = function(n) { var r = n.useCSSOMInjection, i = n.target; - return n.isServer ? new ZT(i) : r ? new RT(i) : new MT(i); - }(this.options), new AT(e))); + return n.isServer ? new LT(i) : r ? new MT(i) : new ZT(i); + }(this.options), new $T(e))); var e; }, t.prototype.hasNameForId = function(e, n) { return this.names.has(e) && this.names.get(e).has(n); @@ -1726,118 +1726,118 @@ var uk = function(t) { }, t.prototype.clearTag = function() { this.tag = void 0; }, t; -}(), IT = /&/g, NT = /^\s*\/\/.*$/gm; -function dk(t, e) { +}(), NT = /&/g, qT = /^\s*\/\/.*$/gm; +function pk(t, e) { return t.map(function(n) { return n.type === "rule" && (n.value = "".concat(e, " ").concat(n.value), n.value = n.value.replaceAll(",", ",".concat(e, " ")), n.props = n.props.map(function(r) { return "".concat(e, " ").concat(r); - })), Array.isArray(n.children) && n.type !== "@keyframes" && (n.children = dk(n.children, e)), n; + })), Array.isArray(n.children) && n.type !== "@keyframes" && (n.children = pk(n.children, e)), n; }); } -function pk(t) { - var e, n, r, i = t === void 0 ? ws : t, s = i.options, o = s === void 0 ? ws : s, l = i.plugins, a = l === void 0 ? Dh : l, c = function(f, d, p) { +function gk(t) { + var e, n, r, i = t === void 0 ? ws : t, s = i.options, o = s === void 0 ? ws : s, l = i.plugins, a = l === void 0 ? Rh : l, c = function(f, d, p) { return p === n || p.startsWith(n) && p.endsWith(n) && p.replaceAll(n, "").length > 0 ? ".".concat(e) : f; }, h = a.slice(); h.push(function(f) { - f.type === $h && f.value.includes("&") && (f.props[0] = f.props[0].replace(IT, n).replace(r, c)); - }), o.prefix && h.push(aT), h.push(sT); - var u = function(f, d, p, m) { - d === void 0 && (d = ""), p === void 0 && (p = ""), m === void 0 && (m = "&"), e = m, n = d, r = new RegExp("\\".concat(n, "\\b"), "g"); - var g = f.replace(NT, ""), O = rT(p || d ? "".concat(p, " ").concat(d, " { ").concat(g, " }") : g); - o.namespace && (O = dk(O, o.namespace)); + f.type === Ph && f.value.includes("&") && (f.props[0] = f.props[0].replace(NT, n).replace(r, c)); + }), o.prefix && h.push(cT), h.push(oT); + var u = function(f, d, p, g) { + d === void 0 && (d = ""), p === void 0 && (p = ""), g === void 0 && (g = "&"), e = g, n = d, r = new RegExp("\\".concat(n, "\\b"), "g"); + var m = f.replace(qT, ""), O = iT(p || d ? "".concat(p, " ").concat(d, " { ").concat(m, " }") : m); + o.namespace && (O = pk(O, o.namespace)); var b = []; - return Sc(O, oT(h.concat(lT(function(y) { + return _c(O, lT(h.concat(aT(function(y) { return b.push(y); })))), b; }; return u.hash = a.length ? a.reduce(function(f, d) { return d.name || Xs(15), si(f, d.name); - }, ik).toString() : "", u; + }, sk).toString() : "", u; } -var qT = new fk(), pd = pk(), um = xi.createContext({ shouldForwardProp: void 0, styleSheet: qT, stylis: pd }); -um.Consumer; -var BT = xi.createContext(void 0); +var BT = new dk(), gd = gk(), fg = xi.createContext({ shouldForwardProp: void 0, styleSheet: BT, stylis: gd }); +fg.Consumer; +var YT = xi.createContext(void 0); function md() { - return qw(um); + return Bw(fg); } -function YT(t) { +function XT(t) { var e = Me(t.stylisPlugins), n = e[0], r = e[1], i = md().styleSheet, s = rt(function() { var a = i; return t.sheet ? a = t.sheet : t.target && (a = a.reconstructWithOptions({ target: t.target }, !1)), t.disableCSSOMInjection && (a = a.reconstructWithOptions({ useCSSOMInjection: !1 })), a; }, [t.disableCSSOMInjection, t.sheet, t.target, i]), o = rt(function() { - return pk({ options: { namespace: t.namespace, prefix: t.enableVendorPrefixes }, plugins: n }); + return gk({ options: { namespace: t.namespace, prefix: t.enableVendorPrefixes }, plugins: n }); }, [t.enableVendorPrefixes, t.namespace, n]); Pt(function() { - XP(n, t.stylisPlugins) || r(t.stylisPlugins); + WP(n, t.stylisPlugins) || r(t.stylisPlugins); }, [t.stylisPlugins]); var l = rt(function() { return { shouldForwardProp: t.shouldForwardProp, styleSheet: s, stylis: o }; }, [t.shouldForwardProp, s, o]); - return xi.createElement(um.Provider, { value: l }, xi.createElement(BT.Provider, { value: o }, t.children)); + return xi.createElement(fg.Provider, { value: l }, xi.createElement(YT.Provider, { value: o }, t.children)); } -var WO = function() { +var VO = function() { function t(e, n) { var r = this; this.inject = function(i, s) { - s === void 0 && (s = pd); + s === void 0 && (s = gd); var o = r.name + s.hash; i.hasNameForId(r.id, o) || i.insertRules(r.id, o, s(r.rules, o, "@keyframes")); - }, this.name = e, this.id = "sc-keyframes-".concat(e), this.rules = n, hm(this, function() { + }, this.name = e, this.id = "sc-keyframes-".concat(e), this.rules = n, ug(this, function() { throw Xs(12, String(r.name)); }); } return t.prototype.getName = function(e) { - return e === void 0 && (e = pd), this.name + e.hash; + return e === void 0 && (e = gd), this.name + e.hash; }, t; -}(), XT = function(t) { +}(), WT = function(t) { return t >= "A" && t <= "Z"; }; -function VO(t) { +function jO(t) { for (var e = "", n = 0; n < t.length; n++) { var r = t[n]; if (n === 1 && r === "-" && t[0] === "-") return t; - XT(r) ? e += "-" + r.toLowerCase() : e += r; + WT(r) ? e += "-" + r.toLowerCase() : e += r; } return e.startsWith("ms-") ? "-" + e : e; } var mk = function(t) { return t == null || t === !1 || t === ""; -}, gk = function(t) { +}, Ok = function(t) { var e, n, r = []; for (var i in t) { var s = t[i]; - t.hasOwnProperty(i) && !mk(s) && (Array.isArray(s) && s.isCss || ks(s) ? r.push("".concat(VO(i), ":"), s, ";") : xs(s) ? r.push.apply(r, Os(Os(["".concat(i, " {")], gk(s), !1), ["}"], !1)) : r.push("".concat(VO(i), ": ").concat((e = i, (n = s) == null || typeof n == "boolean" || n === "" ? "" : typeof n != "number" || n === 0 || e in cT || e.startsWith("--") ? String(n).trim() : "".concat(n, "px")), ";"))); + t.hasOwnProperty(i) && !mk(s) && (Array.isArray(s) && s.isCss || ks(s) ? r.push("".concat(jO(i), ":"), s, ";") : xs(s) ? r.push.apply(r, Os(Os(["".concat(i, " {")], Ok(s), !1), ["}"], !1)) : r.push("".concat(jO(i), ": ").concat((e = i, (n = s) == null || typeof n == "boolean" || n === "" ? "" : typeof n != "number" || n === 0 || e in hT || e.startsWith("--") ? String(n).trim() : "".concat(n, "px")), ";"))); } return r; }; function Oi(t, e, n, r) { if (mk(t)) return []; - if (cm(t)) + if (hg(t)) return [".".concat(t.styledComponentId)]; if (ks(t)) { if (!ks(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 WO || xs(i) || i === null || console.error("".concat(ok(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.")), Oi(i, e, n, r); + return {}.NODE_ENV === "production" || typeof i != "object" || Array.isArray(i) || i instanceof VO || xs(i) || i === null || console.error("".concat(lk(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.")), Oi(i, e, n, r); } var s; - return t instanceof WO ? n ? (t.inject(n, r), [t.getName(r)]) : [t] : xs(t) ? gk(t) : Array.isArray(t) ? Array.prototype.concat.apply(Dh, t.map(function(o) { + return t instanceof VO ? n ? (t.inject(n, r), [t.getName(r)]) : [t] : xs(t) ? Ok(t) : Array.isArray(t) ? Array.prototype.concat.apply(Rh, t.map(function(o) { return Oi(o, e, n, r); })) : [t.toString()]; } -function WT(t) { +function VT(t) { for (var e = 0; e < t.length; e += 1) { var n = t[e]; - if (ks(n) && !cm(n)) + if (ks(n) && !hg(n)) return !1; } return !0; } -var VT = sk(Eh), jT = function() { +var jT = ok(Dh), zT = function() { function t(e, n, r) { - this.rules = e, this.staticRulesId = "", this.isStatic = {}.NODE_ENV === "production" && (r === void 0 || r.isStatic) && WT(e), this.componentId = n, this.baseHash = si(VT, n), this.baseStyle = r, fk.registerId(n); + this.rules = e, this.staticRulesId = "", this.isStatic = {}.NODE_ENV === "production" && (r === void 0 || r.isStatic) && VT(e), this.componentId = n, this.baseHash = si(jT, n), this.baseStyle = r, dk.registerId(n); } return t.prototype.generateAndInjectStyles = function(e, n, r) { var i = this.baseStyle ? this.baseStyle.generateAndInjectStyles(e, n, r) : ""; @@ -1845,7 +1845,7 @@ var VT = sk(Eh), jT = function() { if (this.staticRulesId && n.hasNameForId(this.componentId, this.staticRulesId)) i = hi(i, this.staticRulesId); else { - var s = YO(Oi(this.rules, e, n, r)), o = fd(si(this.baseHash, s) >>> 0); + var s = XO(Oi(this.rules, e, n, r)), o = dd(si(this.baseHash, s) >>> 0); if (!n.hasNameForId(this.componentId, o)) { var l = r(s, ".".concat(o), void 0, this.componentId); n.insertRules(this.componentId, o, l); @@ -1858,61 +1858,61 @@ var VT = sk(Eh), jT = function() { if (typeof u == "string") c += u, {}.NODE_ENV !== "production" && (a = si(a, u)); else if (u) { - var f = YO(Oi(u, e, n, r)); + var f = XO(Oi(u, e, n, r)); a = si(a, f + h), c += f; } } if (c) { - var d = fd(a >>> 0); + var d = dd(a >>> 0); n.hasNameForId(this.componentId, d) || n.insertRules(this.componentId, d, r(c, ".".concat(d), void 0, this.componentId)), i = hi(i, d); } } return i; }, t; -}(), Ok = xi.createContext(void 0); -Ok.Consumer; -var Du = {}, jO = /* @__PURE__ */ new Set(); -function zT(t, e, n) { - var r = cm(t), i = t, s = !Eu(t), o = e.attrs, l = o === void 0 ? Dh : o, a = e.componentId, c = a === void 0 ? function(w, S) { - var x = typeof w != "string" ? "sc" : LO(w); +}(), bk = xi.createContext(void 0); +bk.Consumer; +var Du = {}, zO = /* @__PURE__ */ new Set(); +function FT(t, e, n) { + var r = hg(t), i = t, s = !Eu(t), o = e.attrs, l = o === void 0 ? Rh : o, a = e.componentId, c = a === void 0 ? function(w, S) { + var x = typeof w != "string" ? "sc" : IO(w); Du[x] = (Du[x] || 0) + 1; - var v = "".concat(x, "-").concat(gT(Eh + x + Du[x])); + var v = "".concat(x, "-").concat(OT(Dh + x + Du[x])); return S ? "".concat(S, "-").concat(v) : v; }(e.displayName, e.parentComponentId) : a, h = e.displayName, u = h === void 0 ? function(w) { - return Eu(w) ? "styled.".concat(w) : "Styled(".concat(ok(w), ")"); - }(t) : h, f = e.displayName && e.componentId ? "".concat(LO(e.displayName), "-").concat(e.componentId) : e.componentId || c, d = r && i.attrs ? i.attrs.concat(l).filter(Boolean) : l, p = e.shouldForwardProp; + return Eu(w) ? "styled.".concat(w) : "Styled(".concat(lk(w), ")"); + }(t) : h, f = e.displayName && e.componentId ? "".concat(IO(e.displayName), "-").concat(e.componentId) : e.componentId || c, d = r && i.attrs ? i.attrs.concat(l).filter(Boolean) : l, p = e.shouldForwardProp; if (r && i.shouldForwardProp) { - var m = i.shouldForwardProp; + var g = i.shouldForwardProp; if (e.shouldForwardProp) { - var g = e.shouldForwardProp; + var m = e.shouldForwardProp; p = function(w, S) { - return m(w, S) && g(w, S); + return g(w, S) && m(w, S); }; } else - p = m; + p = g; } - var O = new jT(n, f, r ? i.componentStyle : void 0); + var O = new zT(n, f, r ? i.componentStyle : void 0); function b(w, S) { return function(x, v, P) { - var D = x.attrs, T = x.componentStyle, M = x.defaultProps, q = x.foldedComponentIds, U = x.styledComponentId, A = x.target, j = xi.useContext(Ok), z = md(), de = x.shouldForwardProp || z.shouldForwardProp; - ({}).NODE_ENV !== "production" && id(U); - var Oe = function(he, Tt, me) { - for (var Bt, rn = Ct(Ct({}, Tt), { className: void 0, theme: me }), Zi = 0; Zi < he.length; Zi += 1) { - var yr = ks(Bt = he[Zi]) ? Bt(rn) : Bt; + var D = x.attrs, T = x.componentStyle, M = x.defaultProps, q = x.foldedComponentIds, U = x.styledComponentId, A = x.target, j = xi.useContext(bk), z = md(), de = x.shouldForwardProp || z.shouldForwardProp; + ({}).NODE_ENV !== "production" && sd(U); + var Oe = function(ce, Tt, ge) { + for (var Bt, rn = Ct(Ct({}, Tt), { className: void 0, theme: ge }), Zi = 0; Zi < ce.length; Zi += 1) { + var yr = ks(Bt = ce[Zi]) ? Bt(rn) : Bt; for (var sn in yr) rn[sn] = sn === "className" ? hi(rn[sn], yr[sn]) : sn === "style" ? Ct(Ct({}, rn[sn]), yr[sn]) : yr[sn]; } return Tt.className && (rn.className = hi(rn.className, Tt.className)), rn; - }(D, v, fT(v, j, M) || ws), Ie = Oe.as || A, ge = {}; + }(D, v, dT(v, j, M) || ws), Ie = Oe.as || A, me = {}; for (var pe in Oe) - Oe[pe] === void 0 || pe[0] === "$" || pe === "as" || pe === "theme" || (pe === "forwardedAs" ? ge.as = Oe.forwardedAs : de && !de(pe, Ie) || (ge[pe] = Oe[pe], de || {}.NODE_ENV !== "development" || lP(pe) || jO.has(pe) || !ud.has(Ie) || (jO.add(pe), console.warn('styled-components: it looks like an unknown prop "'.concat(pe, '" 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 re = function(he, Tt) { - var me = md(), Bt = he.generateAndInjectStyles(Tt, me.styleSheet, me.stylis); - return {}.NODE_ENV !== "production" && id(Bt), Bt; + Oe[pe] === void 0 || pe[0] === "$" || pe === "as" || pe === "theme" || (pe === "forwardedAs" ? me.as = Oe.forwardedAs : de && !de(pe, Ie) || (me[pe] = Oe[pe], de || {}.NODE_ENV !== "development" || aP(pe) || zO.has(pe) || !fd.has(Ie) || (zO.add(pe), console.warn('styled-components: it looks like an unknown prop "'.concat(pe, '" 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 re = function(ce, Tt) { + var ge = md(), Bt = ce.generateAndInjectStyles(Tt, ge.styleSheet, ge.stylis); + return {}.NODE_ENV !== "production" && sd(Bt), Bt; }(T, Oe); ({}).NODE_ENV !== "production" && x.warnTooManyClasses && x.warnTooManyClasses(re); var kt = hi(q, U); - return re && (kt += " " + re), Oe.className && (kt += " " + Oe.className), ge[Eu(Ie) && !ud.has(Ie) ? "class" : "className"] = kt, ge.ref = P, fn(Ie, ge); + return re && (kt += " " + re), Oe.className && (kt += " " + Oe.className), me[Eu(Ie) && !fd.has(Ie) ? "class" : "className"] = kt, me.ref = P, fn(Ie, me); }(y, w, S); } b.displayName = u; @@ -1924,10 +1924,10 @@ function zT(t, e, n) { for (var x = [], v = 1; v < arguments.length; v++) x[v - 1] = arguments[v]; for (var P = 0, D = x; P < D.length; P++) - dd(S, D[P], !0); + pd(S, D[P], !0); return S; }({}, i.defaultProps, w) : w; - } }), {}.NODE_ENV !== "production" && (uT(u, f), y.warnTooManyClasses = function(w, S) { + } }), {}.NODE_ENV !== "production" && (fT(u, f), y.warnTooManyClasses = function(w, S) { var x = {}, v = !1; return function(P) { if (!v && (x[P] = !0, Object.keys(x).length >= 200)) { @@ -1944,27 +1944,27 @@ Example: `), v = !0, x = {}; } }; - }(u, f)), hm(y, function() { + }(u, f)), ug(y, function() { return ".".concat(y.styledComponentId); - }), s && hk(y, t, { attrs: !0, componentStyle: !0, displayName: !0, foldedComponentIds: !0, shouldForwardProp: !0, styledComponentId: !0, target: !0 }), y; + }), s && uk(y, t, { attrs: !0, componentStyle: !0, displayName: !0, foldedComponentIds: !0, shouldForwardProp: !0, styledComponentId: !0, target: !0 }), y; } -function zO(t, e) { +function FO(t, e) { for (var n = [t[0]], r = 0, i = e.length; r < i; r += 1) n.push(e[r], t[r + 1]); return n; } -var FO = function(t) { +var UO = function(t) { return Object.assign(t, { isCss: !0 }); }; function Do(t) { for (var e = [], n = 1; n < arguments.length; n++) e[n - 1] = arguments[n]; if (ks(t) || xs(t)) - return FO(Oi(zO(Dh, Os([t], e, !0)))); + return UO(Oi(FO(Rh, Os([t], e, !0)))); var r = t; - return e.length === 0 && r.length === 1 && typeof r[0] == "string" ? Oi(r) : FO(Oi(zO(r, e))); + return e.length === 0 && r.length === 1 && typeof r[0] == "string" ? Oi(r) : UO(Oi(FO(r, e))); } -function gd(t, e, n) { +function Od(t, e, n) { if (n === void 0 && (n = ws), !e) throw Xs(1, e); var r = function(i) { @@ -1973,16 +1973,16 @@ function gd(t, e, n) { return t(e, n, Do.apply(void 0, Os([i], s, !1))); }; return r.attrs = function(i) { - return gd(t, e, Ct(Ct({}, n), { attrs: Array.prototype.concat(n.attrs, i).filter(Boolean) })); + return Od(t, e, Ct(Ct({}, n), { attrs: Array.prototype.concat(n.attrs, i).filter(Boolean) })); }, r.withConfig = function(i) { - return gd(t, e, Ct(Ct({}, n), i)); + return Od(t, e, Ct(Ct({}, n), i)); }, r; } -var bk = function(t) { - return gd(zT, t); -}, ae = bk; -ud.forEach(function(t) { - ae[t] = bk(t); +var yk = function(t) { + return Od(FT, t); +}, fe = yk; +fd.forEach(function(t) { + fe[t] = yk(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'? @@ -2032,7 +2032,7 @@ class se { return new Ro(this, e); } iterRange(e, n = this.length) { - return new yk(this, e, n); + return new wk(this, e, n); } iterLines(e, n) { let r; @@ -2043,7 +2043,7 @@ class se { let i = this.line(e).from; r = this.iterRange(i, Math.max(i, n == this.lines + 1 ? this.length : n <= 1 ? 0 : this.line(n - 1).to)); } - return new wk(r); + return new kk(r); } toString() { return this.sliceString(0); @@ -2061,7 +2061,7 @@ class se { } } class Re extends se { - constructor(e, n = FT(e)) { + constructor(e, n = UT(e)) { super(), this.text = e, this.length = n; } get lines() { @@ -2074,12 +2074,12 @@ class Re extends se { for (let s = 0; ; s++) { let o = this.text[s], l = i + o.length; if ((n ? r : l) >= e) - return new UT(i, l, r, o); + return new GT(i, l, r, o); i = l + 1, r++; } } decompose(e, n, r, i) { - let s = e <= 0 && n >= this.length ? this : new Re(UO(this.text, e, n), Math.min(n, this.length) - Math.max(0, e)); + let s = e <= 0 && n >= this.length ? this : new Re(GO(this.text, e, n), Math.min(n, this.length) - Math.max(0, e)); if (i & 1) { let o = r.pop(), l = rc(s.text, o.text.slice(), 0, s.length); if (l.length <= 32) @@ -2095,7 +2095,7 @@ class Re extends se { if (!(r instanceof Re)) return super.replace(e, n, r); [e, n] = vs(this, e, n); - let i = rc(this.text, rc(r.text, UO(this.text, 0, e)), n), s = this.length + r.length - (n - e); + let i = rc(this.text, rc(r.text, GO(this.text, 0, e)), n), s = this.length + r.length - (n - e); return i.length <= 32 ? new Re(i, s) : Tn.from(Re.split(i, []), s); } sliceString(e, n = this.length, r = ` @@ -2203,8 +2203,8 @@ class Tn extends se { function u(d) { let p; if (d.lines > s && d instanceof Tn) - for (let m of d.children) - u(m); + for (let g of d.children) + u(g); else d.lines > o && (a > o || !a) ? (f(), l.push(d)) : d instanceof Re && a && (p = h[h.length - 1]) instanceof Re && d.lines + p.lines <= 32 ? (a += d.lines, c += d.length + 1, h[h.length - 1] = new Re(p.text.concat(d.text), p.length + 1 + d.length)) : (a + d.lines > i && f(), a += d.lines, c += d.length + 1, h.push(d)); } @@ -2217,7 +2217,7 @@ class Tn extends se { } } se.empty = /* @__PURE__ */ new Re([""], 0); -function FT(t) { +function UT(t) { let e = -1; for (let n of t) e += n.length + 1; @@ -2230,7 +2230,7 @@ function rc(t, e, n = 0, r = 1e9) { } return e; } -function UO(t, e, n) { +function GO(t, e, n) { return rc(t, [""], e, n); } class Ro { @@ -2264,7 +2264,7 @@ class Ro { return e < 0 && (this.nextInner(-e, -this.dir), e = this.value.length), this.nextInner(e, this.dir); } } -class yk { +class wk { constructor(e, n, r) { this.value = "", this.done = !1, this.cursor = new Ro(e, n > r ? -1 : 1), this.pos = n > r ? e.length : 0, this.from = Math.min(n, r), this.to = Math.max(n, r); } @@ -2284,7 +2284,7 @@ class yk { return this.cursor.lineBreak && this.value != ""; } } -class wk { +class kk { constructor(e) { this.inner = e, this.afterBreak = !0, this.value = "", this.done = !1; } @@ -2298,10 +2298,10 @@ class wk { } typeof Symbol < "u" && (se.prototype[Symbol.iterator] = function() { return this.iter(); -}, Ro.prototype[Symbol.iterator] = yk.prototype[Symbol.iterator] = wk.prototype[Symbol.iterator] = function() { +}, Ro.prototype[Symbol.iterator] = wk.prototype[Symbol.iterator] = kk.prototype[Symbol.iterator] = function() { return this; }); -class UT { +class GT { constructor(e, n, r, i) { this.from = e, this.to = n, this.number = r, this.text = i; } @@ -2315,31 +2315,31 @@ function vs(t, e, n) { let rs = /* @__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 < rs.length; t++) rs[t] += rs[t - 1]; -function GT(t) { +function HT(t) { for (let e = 1; e < rs.length; e += 2) if (rs[e] > t) return rs[e - 1] <= t; return !1; } -function GO(t) { +function HO(t) { return t >= 127462 && t <= 127487; } -const HO = 8205; +const KO = 8205; function it(t, e, n = !0, r = !0) { - return (n ? kk : HT)(t, e, r); + return (n ? xk : KT)(t, e, r); } -function kk(t, e, n) { +function xk(t, e, n) { if (e == t.length) return e; - e && xk(t.charCodeAt(e)) && vk(t.charCodeAt(e - 1)) && e--; + e && vk(t.charCodeAt(e)) && Sk(t.charCodeAt(e - 1)) && e--; let r = et(t, e); for (e += Yt(r); e < t.length; ) { let i = et(t, e); - if (r == HO || i == HO || n && GT(i)) + if (r == KO || i == KO || n && HT(i)) e += Yt(i), r = i; - else if (GO(i)) { + else if (HO(i)) { let s = 0, o = e - 2; - for (; o >= 0 && GO(et(t, o)); ) + for (; o >= 0 && HO(et(t, o)); ) s++, o -= 2; if (s % 2 == 0) break; @@ -2349,35 +2349,35 @@ function kk(t, e, n) { } return e; } -function HT(t, e, n) { +function KT(t, e, n) { for (; e > 0; ) { - let r = kk(t, e - 2, n); + let r = xk(t, e - 2, n); if (r < e) return r; e--; } return 0; } -function xk(t) { +function vk(t) { return t >= 56320 && t < 57344; } -function vk(t) { +function Sk(t) { return t >= 55296 && t < 56320; } function et(t, e) { let n = t.charCodeAt(e); - if (!vk(n) || e + 1 == t.length) + if (!Sk(n) || e + 1 == t.length) return n; let r = t.charCodeAt(e + 1); - return xk(r) ? (n - 55296 << 10) + (r - 56320) + 65536 : n; + return vk(r) ? (n - 55296 << 10) + (r - 56320) + 65536 : n; } -function fm(t) { +function dg(t) { return t <= 65535 ? String.fromCharCode(t) : (t -= 65536, String.fromCharCode((t >> 10) + 55296, (t & 1023) + 56320)); } function Yt(t) { return t < 65536 ? 1 : 2; } -const Od = /\r\n?|\n/; +const bd = /\r\n?|\n/; var nt = /* @__PURE__ */ function(t) { return t[t.Simple = 0] = "Simple", t[t.TrackDel = 1] = "TrackDel", t[t.TrackBefore = 2] = "TrackBefore", t[t.TrackAfter = 3] = "TrackAfter", t; }(nt || (nt = {})); @@ -2409,7 +2409,7 @@ class qn { } } iterChangedRanges(e, n = !1) { - bd(this, e, n); + yd(this, e, n); } get invertedDesc() { let e = []; @@ -2420,10 +2420,10 @@ class qn { return new qn(e); } composeDesc(e) { - return this.empty ? e : e.empty ? this : Sk(this, e); + return this.empty ? e : e.empty ? this : _k(this, e); } mapDesc(e, n = !1) { - return e.empty ? this : yd(this, e, n); + return e.empty ? this : wd(this, e, n); } mapPos(e, n = -1, r = nt.Simple) { let i = 0, s = 0; @@ -2482,10 +2482,10 @@ class Ne extends qn { apply(e) { if (this.length != e.length) throw new RangeError("Applying change set to a document with the wrong length"); - return bd(this, (n, r, i, s, o) => e = e.replace(i, i + (r - n), o), !1), e; + return yd(this, (n, r, i, s, o) => e = e.replace(i, i + (r - n), o), !1), e; } mapDesc(e, n = !1) { - return yd(this, e, n, !0); + return wd(this, e, n, !0); } invert(e) { let n = this.sections.slice(), r = []; @@ -2503,19 +2503,19 @@ class Ne extends qn { return new Ne(n, r); } compose(e) { - return this.empty ? e : e.empty ? this : Sk(this, e, !0); + return this.empty ? e : e.empty ? this : _k(this, e, !0); } map(e, n = !1) { - return e.empty ? this : yd(this, e, n, !0); + return e.empty ? this : wd(this, e, n, !0); } iterChanges(e, n = !1) { - bd(this, e, n); + yd(this, e, n); } get desc() { return qn.create(this.sections); } filter(e) { - let n = [], r = [], i = [], s = new Fo(this); + let n = [], r = [], i = [], s = new zo(this); e: for (let o = 0, l = 0; ; ) { let a = o == e.length ? 1e9 : e[o++]; @@ -2569,10 +2569,10 @@ class Ne extends qn { let { from: u, to: f = u, insert: d } = h; if (u > f || u < 0 || f > n) throw new RangeError(`Invalid change range ${u} to ${f} (in doc of length ${n})`); - let p = d ? typeof d == "string" ? se.of(d.split(r || Od)) : d : se.empty, m = p.length; - if (u == f && m == 0) + let p = d ? typeof d == "string" ? se.of(d.split(r || bd)) : d : se.empty, g = p.length; + if (u == f && g == 0) return; - u < o && a(), u > o && ht(i, u - o, -1), ht(i, f - u, m), $r(s, i, p), o = f; + u < o && a(), u > o && ht(i, u - o, -1), ht(i, f - u, g), $r(s, i, p), o = f; } } return c(e), a(!l), l; @@ -2624,7 +2624,7 @@ function $r(t, e, n) { t.push(n); } } -function bd(t, e, n) { +function yd(t, e, n) { let r = t.inserted; for (let i = 0, s = 0, o = 0; o < t.sections.length; ) { let l = t.sections[o++], a = t.sections[o++]; @@ -2638,8 +2638,8 @@ function bd(t, e, n) { } } } -function yd(t, e, n, r = !1) { - let i = [], s = r ? [] : null, o = new Fo(t), l = new Fo(e); +function wd(t, e, n, r = !1) { + let i = [], s = r ? [] : null, o = new zo(t), l = new zo(e); for (let a = -1; ; ) if (o.ins == -1 && l.ins == -1) { let c = Math.min(o.len, l.len); @@ -2668,8 +2668,8 @@ function yd(t, e, n, r = !1) { throw new Error("Mismatched change set lengths"); } } -function Sk(t, e, n = !1) { - let r = [], i = n ? [] : null, s = new Fo(t), o = new Fo(e); +function _k(t, e, n = !1) { + let r = [], i = n ? [] : null, s = new zo(t), o = new zo(e); for (let l = !1; ; ) { if (s.done && o.done) return i ? Ne.createSet(r, i) : qn.create(r); @@ -2692,7 +2692,7 @@ function Sk(t, e, n = !1) { } } } -class Fo { +class zo { constructor(e) { this.set = e, this.i = 0, this.next(); } @@ -2840,21 +2840,21 @@ class C { return new C(e, n); } } -function _k(t, e) { +function Ck(t, e) { for (let n of t.ranges) if (n.to > e) throw new RangeError("Selection points outside of document"); } -let dm = 0; +let pg = 0; class I { constructor(e, n, r, i, s) { - this.combine = e, this.compareInput = n, this.compare = r, this.isStatic = i, this.id = dm++, this.default = e([]), this.extensions = typeof s == "function" ? s(this) : s; + this.combine = e, this.compareInput = n, this.compare = r, this.isStatic = i, this.id = pg++, this.default = e([]), this.extensions = typeof s == "function" ? s(this) : s; } get reader() { return this; } static define(e = {}) { - return new I(e.combine || ((n) => n), e.compareInput || ((n, r) => n === r), e.compare || (e.combine ? (n, r) => n === r : pm), !!e.static, e.enables); + return new I(e.combine || ((n) => n), e.compareInput || ((n, r) => n === r), e.compare || (e.combine ? (n, r) => n === r : gg), !!e.static, e.enables); } of(e) { return new ic([], this, 0, e); @@ -2873,12 +2873,12 @@ class I { return n || (n = (r) => r), this.compute([e], (r) => n(r.field(e))); } } -function pm(t, e) { +function gg(t, e) { return t == e || t.length == e.length && t.every((n, r) => n === e[r]); } class ic { constructor(e, n, r, i) { - this.dependencies = e, this.facet = n, this.type = r, this.value = i, this.id = dm++; + this.dependencies = e, this.facet = n, this.type = r, this.value = i, this.id = pg++; } dynamicSlot(e) { var n; @@ -2890,9 +2890,9 @@ class ic { return u.values[o] = r(u), 1; }, update(u, f) { - if (a && f.docChanged || c && (f.docChanged || f.selection) || wd(u, h)) { + if (a && f.docChanged || c && (f.docChanged || f.selection) || kd(u, h)) { let d = r(u); - if (l ? !KO(d, u.values[o], i) : !i(d, u.values[o])) + if (l ? !JO(d, u.values[o], i) : !i(d, u.values[o])) return u.values[o] = d, 1; } return 0; @@ -2900,9 +2900,9 @@ class ic { reconfigure: (u, f) => { let d, p = f.config.address[s]; if (p != null) { - let m = Ac(f, p); - if (this.dependencies.every((g) => g instanceof I ? f.facet(g) === u.facet(g) : g instanceof Ee ? f.field(g, !1) == u.field(g, !1) : !0) || (l ? KO(d = r(u), m, i) : i(d = r(u), m))) - return u.values[o] = m, 0; + let g = $c(f, p); + if (this.dependencies.every((m) => m instanceof I ? f.facet(m) === u.facet(m) : m instanceof Ee ? f.field(m, !1) == u.field(m, !1) : !0) || (l ? JO(d = r(u), g, i) : i(d = r(u), g))) + return u.values[o] = g, 0; } else d = r(u); return u.values[o] = d, 1; @@ -2910,7 +2910,7 @@ class ic { }; } } -function KO(t, e, n) { +function JO(t, e, n) { if (t.length != e.length) return !1; for (let r = 0; r < t.length; r++) @@ -2918,18 +2918,18 @@ function KO(t, e, n) { return !1; return !0; } -function wd(t, e) { +function kd(t, e) { let n = !1; for (let r of e) Mo(t, r) & 1 && (n = !0); return n; } -function KT(t, e, n) { +function JT(t, e, n) { let r = n.map((a) => t[a.id]), i = n.map((a) => a.type), s = r.filter((a) => !(a & 1)), o = t[e.id] >> 1; function l(a) { let c = []; for (let h = 0; h < r.length; h++) { - let u = Ac(a, r[h]); + let u = $c(a, r[h]); if (i[h] == 2) for (let f of u) c.push(f); @@ -2945,31 +2945,31 @@ function KT(t, e, n) { return a.values[o] = l(a), 1; }, update(a, c) { - if (!wd(a, s)) + if (!kd(a, s)) return 0; let h = l(a); return e.compare(h, a.values[o]) ? 0 : (a.values[o] = h, 1); }, reconfigure(a, c) { - let h = wd(a, r), u = c.config.facets[e.id], f = c.facet(e); - if (u && !h && pm(n, u)) + let h = kd(a, r), u = c.config.facets[e.id], f = c.facet(e); + if (u && !h && gg(n, u)) return a.values[o] = f, 0; let d = l(a); return e.compare(d, f) ? (a.values[o] = f, 0) : (a.values[o] = d, 1); } }; } -const JO = /* @__PURE__ */ I.define({ static: !0 }); +const e0 = /* @__PURE__ */ I.define({ static: !0 }); class Ee { constructor(e, n, r, i, s) { this.id = e, this.createF = n, this.updateF = r, this.compareF = i, this.spec = s, this.provides = void 0; } static define(e) { - let n = new Ee(dm++, e.create, e.update, e.compare || ((r, i) => r === i), e); + let n = new Ee(pg++, e.create, e.update, e.compare || ((r, i) => r === i), e); return e.provide && (n.provides = e.provide(n)), n; } create(e) { - let n = e.facet(JO).find((r) => r.field == this); + let n = e.facet(e0).find((r) => r.field == this); return ((n == null ? void 0 : n.create) || this.createF)(e); } slot(e) { @@ -2984,7 +2984,7 @@ class Ee { }; } init(e) { - return [this, JO.of({ field: this, create: e })]; + return [this, e0.of({ field: this, create: e })]; } get extension() { return this; @@ -2992,7 +2992,7 @@ class Ee { } const oi = { lowest: 4, low: 3, default: 2, high: 1, highest: 0 }; function lo(t) { - return (e) => new Ck(e, t); + return (e) => new Ak(e, t); } const bn = { highest: /* @__PURE__ */ lo(oi.highest), @@ -3001,14 +3001,14 @@ const bn = { low: /* @__PURE__ */ lo(oi.low), lowest: /* @__PURE__ */ lo(oi.lowest) }; -class Ck { +class Ak { constructor(e, n) { this.inner = e, this.prec = n; } } class Ws { of(e) { - return new kd(this, e); + return new xd(this, e); } reconfigure(e) { return Ws.reconfigure.of({ compartment: this, extension: e }); @@ -3017,12 +3017,12 @@ class Ws { return e.config.compartments.get(this); } } -class kd { +class xd { constructor(e, n) { this.compartment = e, this.inner = n; } } -class Cc { +class Ac { constructor(e, n, r, i, s, o) { for (this.base = e, this.compartments = n, this.dynamicSlots = r, this.address = i, this.staticValues = s, this.facets = o, this.statusTemplate = []; this.statusTemplate.length < r.length; ) this.statusTemplate.push(0); @@ -3033,32 +3033,32 @@ class Cc { } static resolve(e, n, r) { let i = [], s = /* @__PURE__ */ Object.create(null), o = /* @__PURE__ */ new Map(); - for (let f of JT(e, n, o)) + for (let f of e2(e, n, o)) f instanceof Ee ? i.push(f) : (s[f.facet.id] || (s[f.facet.id] = [])).push(f); let l = /* @__PURE__ */ Object.create(null), a = [], c = []; for (let f of i) l[f.id] = c.length << 1, c.push((d) => f.slot(d)); let h = r == null ? void 0 : r.config.facets; for (let f in s) { - let d = s[f], p = d[0].facet, m = h && h[f] || []; - if (d.every((g) => g.type == 0)) - if (l[p.id] = a.length << 1 | 1, pm(m, d)) + let d = s[f], p = d[0].facet, g = h && h[f] || []; + if (d.every((m) => m.type == 0)) + if (l[p.id] = a.length << 1 | 1, gg(g, d)) a.push(r.facet(p)); else { - let g = p.combine(d.map((O) => O.value)); - a.push(r && p.compare(g, r.facet(p)) ? r.facet(p) : g); + let m = p.combine(d.map((O) => O.value)); + a.push(r && p.compare(m, r.facet(p)) ? r.facet(p) : m); } else { - for (let g of d) - g.type == 0 ? (l[g.id] = a.length << 1 | 1, a.push(g.value)) : (l[g.id] = c.length << 1, c.push((O) => g.dynamicSlot(O))); - l[p.id] = c.length << 1, c.push((g) => KT(g, p, d)); + for (let m of d) + m.type == 0 ? (l[m.id] = a.length << 1 | 1, a.push(m.value)) : (l[m.id] = c.length << 1, c.push((O) => m.dynamicSlot(O))); + l[p.id] = c.length << 1, c.push((m) => JT(m, p, d)); } } let u = c.map((f) => f(l)); - return new Cc(e, o, u, l, a, s); + return new Ac(e, o, u, l, a, s); } } -function JT(t, e, n) { +function e2(t, e, n) { let r = [[], [], [], [], []], i = /* @__PURE__ */ new Map(); function s(o, l) { let a = i.get(o); @@ -3066,17 +3066,17 @@ function JT(t, e, n) { if (a <= l) return; let c = r[a].indexOf(o); - c > -1 && r[a].splice(c, 1), o instanceof kd && n.delete(o.compartment); + c > -1 && r[a].splice(c, 1), o instanceof xd && n.delete(o.compartment); } if (i.set(o, l), Array.isArray(o)) for (let c of o) s(c, l); - else if (o instanceof kd) { + else if (o instanceof xd) { if (n.has(o.compartment)) throw new RangeError("Duplicate use of compartment in extensions"); let c = e.get(o.compartment) || o.inner; n.set(o.compartment, c), s(c, l); - } else if (o instanceof Ck) + } else if (o instanceof Ak) s(o.inner, o.prec); else if (o instanceof Ee) r[l].push(o), o.provides && s(o.provides, l); @@ -3103,16 +3103,16 @@ function Mo(t, e) { let i = t.computeSlot(t, t.config.dynamicSlots[n]); return t.status[n] = 2 | i; } -function Ac(t, e) { +function $c(t, e) { return e & 1 ? t.config.staticValues[e >> 1] : t.values[e >> 1]; } -const Ak = /* @__PURE__ */ I.define(), xd = /* @__PURE__ */ I.define({ +const $k = /* @__PURE__ */ I.define(), vd = /* @__PURE__ */ I.define({ combine: (t) => t.some((e) => e), static: !0 -}), $k = /* @__PURE__ */ I.define({ +}), Pk = /* @__PURE__ */ I.define({ combine: (t) => t.length ? t[0] : void 0, static: !0 -}), Pk = /* @__PURE__ */ I.define(), Tk = /* @__PURE__ */ I.define(), Qk = /* @__PURE__ */ I.define(), Ek = /* @__PURE__ */ I.define({ +}), Tk = /* @__PURE__ */ I.define(), Qk = /* @__PURE__ */ I.define(), Ek = /* @__PURE__ */ I.define(), Dk = /* @__PURE__ */ I.define({ combine: (t) => t.length ? t[0] : !1 }); class yn { @@ -3120,15 +3120,15 @@ class yn { this.type = e, this.value = n; } static define() { - return new eQ(); + return new t2(); } } -class eQ { +class t2 { of(e) { return new yn(this, e); } } -class tQ { +class n2 { constructor(e) { this.map = e; } @@ -3148,7 +3148,7 @@ class F { return this.type == e; } static define(e = {}) { - return new tQ(e.map || ((n) => n)); + return new n2(e.map || ((n) => n)); } static mapEffects(e, n) { if (!e.length) @@ -3165,7 +3165,7 @@ F.reconfigure = /* @__PURE__ */ F.define(); F.appendConfig = /* @__PURE__ */ F.define(); class We { constructor(e, n, r, i, s, o) { - this.startState = e, this.changes = n, this.selection = r, this.effects = i, this.annotations = s, this.scrollIntoView = o, this._doc = null, this._state = null, r && _k(r, n.newLength), s.some((l) => l.type == We.time) || (this.annotations = s.concat(We.time.of(Date.now()))); + this.startState = e, this.changes = n, this.selection = r, this.effects = i, this.annotations = s, this.scrollIntoView = o, this._doc = null, this._state = null, r && Ck(r, n.newLength), s.some((l) => l.type == We.time) || (this.annotations = s.concat(We.time.of(Date.now()))); } static create(e, n, r, i, s, o) { return new We(e, n, r, i, s, o); @@ -3199,7 +3199,7 @@ We.time = /* @__PURE__ */ yn.define(); We.userEvent = /* @__PURE__ */ yn.define(); We.addToHistory = /* @__PURE__ */ yn.define(); We.remote = /* @__PURE__ */ yn.define(); -function nQ(t, e) { +function r2(t, e) { let n = []; for (let r = 0, i = 0; ; ) { let s, o; @@ -3212,7 +3212,7 @@ function nQ(t, e) { !n.length || n[n.length - 1] < s ? n.push(s, o) : n[n.length - 1] < o && (n[n.length - 1] = o); } } -function Dk(t, e, n) { +function Rk(t, e, n) { var r; let i, s, o; return n ? (i = e.changes, s = Ne.empty(e.changes.length), o = t.changes.compose(e.changes)) : (i = e.changes.map(t.changes), s = t.changes.mapDesc(e.changes, !0), o = t.changes.compose(i)), { @@ -3223,36 +3223,36 @@ function Dk(t, e, n) { scrollIntoView: t.scrollIntoView || e.scrollIntoView }; } -function vd(t, e, n) { +function Sd(t, e, n) { let r = e.selection, i = is(e.annotations); return e.userEvent && (i = i.concat(We.userEvent.of(e.userEvent))), { - changes: e.changes instanceof Ne ? e.changes : Ne.of(e.changes || [], n, t.facet($k)), + changes: e.changes instanceof Ne ? e.changes : Ne.of(e.changes || [], n, t.facet(Pk)), selection: r && (r instanceof C ? r : C.single(r.anchor, r.head)), effects: is(e.effects), annotations: i, scrollIntoView: !!e.scrollIntoView }; } -function Rk(t, e, n) { - let r = vd(t, e.length ? e[0] : {}, t.doc.length); +function Mk(t, e, n) { + let r = Sd(t, e.length ? e[0] : {}, t.doc.length); e.length && e[0].filter === !1 && (n = !1); for (let s = 1; s < e.length; s++) { e[s].filter === !1 && (n = !1); let o = !!e[s].sequential; - r = Dk(r, vd(t, e[s], o ? r.changes.newLength : t.doc.length), o); + r = Rk(r, Sd(t, e[s], o ? r.changes.newLength : t.doc.length), o); } let i = We.create(t, r.changes, r.selection, r.effects, r.annotations, r.scrollIntoView); - return iQ(n ? rQ(i) : i); + return s2(n ? i2(i) : i); } -function rQ(t) { +function i2(t) { let e = t.startState, n = !0; - for (let i of e.facet(Pk)) { + for (let i of e.facet(Tk)) { let s = i(t); if (s === !1) { n = !1; break; } - Array.isArray(s) && (n = n === !0 ? s : nQ(n, s)); + Array.isArray(s) && (n = n === !0 ? s : r2(n, s)); } if (n !== !0) { let i, s; @@ -3264,49 +3264,49 @@ function rQ(t) { } t = We.create(e, i, t.selection && t.selection.map(s), F.mapEffects(t.effects, s), t.annotations, t.scrollIntoView); } - let r = e.facet(Tk); + let r = e.facet(Qk); for (let i = r.length - 1; i >= 0; i--) { let s = r[i](t); - s instanceof We ? t = s : Array.isArray(s) && s.length == 1 && s[0] instanceof We ? t = s[0] : t = Rk(e, is(s), !1); + s instanceof We ? t = s : Array.isArray(s) && s.length == 1 && s[0] instanceof We ? t = s[0] : t = Mk(e, is(s), !1); } return t; } -function iQ(t) { - let e = t.startState, n = e.facet(Qk), r = t; +function s2(t) { + let e = t.startState, n = e.facet(Ek), r = t; for (let i = n.length - 1; i >= 0; i--) { let s = n[i](t); - s && Object.keys(s).length && (r = Dk(r, vd(e, s, t.changes.newLength), !0)); + s && Object.keys(s).length && (r = Rk(r, Sd(e, s, t.changes.newLength), !0)); } return r == t ? t : We.create(e, t.changes, t.selection, r.effects, r.annotations, r.scrollIntoView); } -const sQ = []; +const o2 = []; function is(t) { - return t == null ? sQ : Array.isArray(t) ? t : [t]; + return t == null ? o2 : Array.isArray(t) ? t : [t]; } var Pe = /* @__PURE__ */ function(t) { return t[t.Word = 0] = "Word", t[t.Space = 1] = "Space", t[t.Other = 2] = "Other", t; }(Pe || (Pe = {})); -const oQ = /[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/; -let Sd; +const l2 = /[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/; +let _d; try { - Sd = /* @__PURE__ */ new RegExp("[\\p{Alphabetic}\\p{Number}_]", "u"); + _d = /* @__PURE__ */ new RegExp("[\\p{Alphabetic}\\p{Number}_]", "u"); } catch { } -function lQ(t) { - if (Sd) - return Sd.test(t); +function a2(t) { + if (_d) + return _d.test(t); for (let e = 0; e < t.length; e++) { let n = t[e]; - if (/\w/.test(n) || n > "\x80" && (n.toUpperCase() != n.toLowerCase() || oQ.test(n))) + if (/\w/.test(n) || n > "\x80" && (n.toUpperCase() != n.toLowerCase() || l2.test(n))) return !0; } return !1; } -function aQ(t) { +function c2(t) { return (e) => { if (!/\S/.test(e)) return Pe.Space; - if (lQ(e)) + if (a2(e)) return Pe.Word; for (let n = 0; n < t.length; n++) if (e.indexOf(t[n]) > -1) @@ -3328,18 +3328,18 @@ class ne { throw new RangeError("Field is not present in this state"); return; } - return Mo(this, r), Ac(this, r); + return Mo(this, r), $c(this, r); } update(...e) { - return Rk(this, e, !0); + return Mk(this, e, !0); } applyTransaction(e) { let n = this.config, { base: r, compartments: i } = n; for (let l of e.effects) l.is(Ws.reconfigure) ? (n && (i = /* @__PURE__ */ new Map(), n.compartments.forEach((a, c) => i.set(c, a)), n = null), i.set(l.value.compartment, l.value.extension)) : l.is(F.reconfigure) ? (n = null, r = l.value) : l.is(F.appendConfig) && (n = null, r = is(r).concat(l.value)); let s; - n ? s = e.startState.values.slice() : (n = Cc.resolve(r, i, this), s = new ne(n, this.doc, this.selection, n.dynamicSlots.map(() => null), (a, c) => c.reconfigure(a, this), null).values); - let o = e.startState.facet(xd) ? e.newSelection : e.newSelection.asSingle(); + n ? s = e.startState.values.slice() : (n = Ac.resolve(r, i, this), s = new ne(n, this.doc, this.selection, n.dynamicSlots.map(() => null), (a, c) => c.reconfigure(a, this), null).values); + let o = e.startState.facet(vd) ? e.newSelection : e.newSelection.asSingle(); new ne(n, e.newDoc, o, s, (l, a) => a.update(l, e), e); } replaceSelection(e) { @@ -3367,14 +3367,14 @@ class ne { return e instanceof Ne ? e : Ne.of(e, this.doc.length, this.facet(ne.lineSeparator)); } toText(e) { - return se.of(e.split(this.facet(ne.lineSeparator) || Od)); + return se.of(e.split(this.facet(ne.lineSeparator) || bd)); } sliceDoc(e = 0, n = this.doc.length) { return this.doc.sliceString(e, n, this.lineBreak); } facet(e) { let n = this.config.address[e.id]; - return n == null ? e.default : (Mo(this, n), Ac(this, n)); + return n == null ? e.default : (Mo(this, n), $c(this, n)); } toJSON(e) { let n = { @@ -3406,8 +3406,8 @@ class ne { }); } static create(e = {}) { - let n = Cc.resolve(e.extensions || [], /* @__PURE__ */ new Map()), r = e.doc instanceof se ? e.doc : se.of((e.doc || "").split(n.staticFacet(ne.lineSeparator) || Od)), i = e.selection ? e.selection instanceof C ? e.selection : C.single(e.selection.anchor, e.selection.head) : C.single(0); - return _k(i, r.length), n.staticFacet(xd) || (i = i.asSingle()), new ne(n, r, i, n.dynamicSlots.map(() => null), (s, o) => o.create(s), null); + let n = Ac.resolve(e.extensions || [], /* @__PURE__ */ new Map()), r = e.doc instanceof se ? e.doc : se.of((e.doc || "").split(n.staticFacet(ne.lineSeparator) || bd)), i = e.selection ? e.selection instanceof C ? e.selection : C.single(e.selection.anchor, e.selection.head) : C.single(0); + return Ck(i, r.length), n.staticFacet(vd) || (i = i.asSingle()), new ne(n, r, i, n.dynamicSlots.map(() => null), (s, o) => o.create(s), null); } get tabSize() { return this.facet(ne.tabSize); @@ -3417,7 +3417,7 @@ class ne { `; } get readOnly() { - return this.facet(Ek); + return this.facet(Dk); } phrase(e, ...n) { for (let r of this.facet(ne.phrases)) @@ -3434,13 +3434,13 @@ class ne { } languageDataAt(e, n, r = -1) { let i = []; - for (let s of this.facet(Ak)) + for (let s of this.facet($k)) for (let o of s(this, n, r)) Object.prototype.hasOwnProperty.call(o, e) && i.push(o[e]); return i; } charCategorizer(e) { - return aQ(this.languageDataAt("wordChars", e).join("")); + return c2(this.languageDataAt("wordChars", e).join("")); } wordAt(e) { let { text: n, from: r, length: i } = this.doc.lineAt(e), s = this.charCategorizer(e), o = e - r, l = e - r; @@ -3459,22 +3459,22 @@ class ne { return o == l ? null : C.range(o + r, l + r); } } -ne.allowMultipleSelections = xd; +ne.allowMultipleSelections = vd; ne.tabSize = /* @__PURE__ */ I.define({ combine: (t) => t.length ? t[0] : 4 }); -ne.lineSeparator = $k; -ne.readOnly = Ek; +ne.lineSeparator = Pk; +ne.readOnly = Dk; ne.phrases = /* @__PURE__ */ I.define({ compare(t, e) { let n = Object.keys(t), r = Object.keys(e); return n.length == r.length && n.every((i) => t[i] == e[i]); } }); -ne.languageData = Ak; -ne.changeFilter = Pk; -ne.transactionFilter = Tk; -ne.transactionExtender = Qk; +ne.languageData = $k; +ne.changeFilter = Tk; +ne.transactionFilter = Qk; +ne.transactionExtender = Ek; Ws.reconfigure = /* @__PURE__ */ F.define(); function jn(t, e, n = {}) { let r = {}; @@ -3498,24 +3498,24 @@ class Si { return this == e; } range(e, n = e) { - return Uo.create(e, n, this); + return Fo.create(e, n, this); } } Si.prototype.startSide = Si.prototype.endSide = 0; Si.prototype.point = !1; Si.prototype.mapMode = nt.TrackDel; -class Uo { +class Fo { constructor(e, n, r) { this.from = e, this.to = n, this.value = r; } static create(e, n, r) { - return new Uo(e, n, r); + return new Fo(e, n, r); } } -function _d(t, e) { +function Cd(t, e) { return t.from - e.from || t.value.startSide - e.value.startSide; } -class mm { +class mg { constructor(e, n, r, i) { this.from = e, this.to = n, this.value = r, this.maxPoint = i; } @@ -3550,7 +3550,7 @@ class mm { continue; (d - f || c.endSide - c.startSide) < 0 || (o < 0 && (o = f), c.point && (l = Math.max(l, d - f)), r.push(c), i.push(f - o), s.push(d - o)); } - return { mapped: r.length ? new mm(i, s, r, l) : null, pos: o }; + return { mapped: r.length ? new mg(i, s, r, l) : null, pos: o }; } } class ie { @@ -3579,15 +3579,15 @@ class ie { let { add: n = [], sort: r = !1, filterFrom: i = 0, filterTo: s = this.length } = e, o = e.filter; if (n.length == 0 && !o) return this; - if (r && (n = n.slice().sort(_d)), this.isEmpty) + if (r && (n = n.slice().sort(Cd)), this.isEmpty) return n.length ? ie.of(n) : this; - let l = new Mk(this, null, -1).goto(0), a = 0, c = [], h = new He(); + let l = new Zk(this, null, -1).goto(0), a = 0, c = [], h = new He(); for (; l.value || a < n.length; ) if (a < n.length && (l.from - n[a].from || l.startSide - n[a].value.startSide) >= 0) { let u = n[a++]; h.addInner(u.from, u.to, u.value) || c.push(u); } else - l.rangeIndex == 1 && l.chunkIndex < this.chunk.length && (a == n.length || this.chunkEnd(l.chunkIndex) < n[a].from) && (!o || i > this.chunkEnd(l.chunkIndex) || s < this.chunkPos[l.chunkIndex]) && h.addChunk(this.chunkPos[l.chunkIndex], this.chunk[l.chunkIndex]) ? l.nextChunk() : ((!o || i > l.to || s < l.from || o(l.from, l.to, l.value)) && (h.addInner(l.from, l.to, l.value) || c.push(Uo.create(l.from, l.to, l.value))), l.next()); + l.rangeIndex == 1 && l.chunkIndex < this.chunk.length && (a == n.length || this.chunkEnd(l.chunkIndex) < n[a].from) && (!o || i > this.chunkEnd(l.chunkIndex) || s < this.chunkPos[l.chunkIndex]) && h.addChunk(this.chunkPos[l.chunkIndex], this.chunk[l.chunkIndex]) ? l.nextChunk() : ((!o || i > l.to || s < l.from || o(l.from, l.to, l.value)) && (h.addInner(l.from, l.to, l.value) || c.push(Fo.create(l.from, l.to, l.value))), l.next()); return h.finishInner(this.nextLayer.isEmpty && !c.length ? ie.empty : this.nextLayer.update({ add: c, filter: o, filterFrom: i, filterTo: s })); } map(e) { @@ -3617,17 +3617,17 @@ class ie { } } iter(e = 0) { - return Go.from([this]).goto(e); + return Uo.from([this]).goto(e); } get isEmpty() { return this.nextLayer == this; } static iter(e, n = 0) { - return Go.from(e).goto(n); + return Uo.from(e).goto(n); } static compare(e, n, r, i, s = -1) { - let o = e.filter((u) => u.maxPoint > 0 || !u.isEmpty && u.maxPoint >= s), l = n.filter((u) => u.maxPoint > 0 || !u.isEmpty && u.maxPoint >= s), a = e0(o, l, r), c = new ao(o, a, s), h = new ao(l, a, s); - r.iterGaps((u, f, d) => t0(c, u, h, f, d, i)), r.empty && r.length == 0 && t0(c, 0, h, 0, 0, i); + let o = e.filter((u) => u.maxPoint > 0 || !u.isEmpty && u.maxPoint >= s), l = n.filter((u) => u.maxPoint > 0 || !u.isEmpty && u.maxPoint >= s), a = t0(o, l, r), c = new ao(o, a, s), h = new ao(l, a, s); + r.iterGaps((u, f, d) => n0(c, u, h, f, d, i)), r.empty && r.length == 0 && n0(c, 0, h, 0, 0, i); } static eq(e, n, r = 0, i) { i == null && (i = 1e9 - 1); @@ -3636,9 +3636,9 @@ class ie { return !1; if (!s.length) return !0; - let l = e0(s, o), a = new ao(s, l, 0).goto(r), c = new ao(o, l, 0).goto(r); + let l = t0(s, o), a = new ao(s, l, 0).goto(r), c = new ao(o, l, 0).goto(r); for (; ; ) { - if (a.to != c.to || !Cd(a.active, c.active) || a.point && (!c.point || !a.point.eq(c.point))) + if (a.to != c.to || !Ad(a.active, c.active) || a.point && (!c.point || !a.point.eq(c.point))) return !1; if (a.to > i) return !0; @@ -3661,18 +3661,18 @@ class ie { } static of(e, n = !1) { let r = new He(); - for (let i of e instanceof Uo ? [e] : n ? cQ(e) : e) + for (let i of e instanceof Fo ? [e] : n ? h2(e) : e) r.add(i.from, i.to, i.value); return r.finish(); } } ie.empty = /* @__PURE__ */ new ie([], [], null, -1); -function cQ(t) { +function h2(t) { if (t.length > 1) for (let e = t[0], n = 1; n < t.length; n++) { let r = t[n]; - if (_d(e, r) > 0) - return t.slice().sort(_d); + if (Cd(e, r) > 0) + return t.slice().sort(Cd); e = r; } return t; @@ -3680,7 +3680,7 @@ function cQ(t) { ie.empty.nextLayer = ie.empty; class He { finishChunk(e) { - this.chunks.push(new mm(this.from, this.to, this.value, this.maxPoint)), this.chunkPos.push(this.chunkStart), this.chunkStart = -1, this.setMaxPoint = Math.max(this.setMaxPoint, this.maxPoint), this.maxPoint = -1, e && (this.from = [], this.to = [], this.value = []); + this.chunks.push(new mg(this.from, this.to, this.value, this.maxPoint)), this.chunkPos.push(this.chunkStart), this.chunkStart = -1, this.setMaxPoint = Math.max(this.setMaxPoint, this.maxPoint), this.maxPoint = -1, e && (this.from = [], this.to = [], this.value = []); } constructor() { this.chunks = [], this.chunkPos = [], this.chunkStart = -1, this.last = null, this.lastFrom = -1e9, this.lastTo = -1e9, this.from = [], this.to = [], this.value = [], this.maxPoint = -1, this.setMaxPoint = -1, this.nextLayer = null; @@ -3711,7 +3711,7 @@ class He { return this.from = null, n; } } -function e0(t, e, n) { +function t0(t, e, n) { let r = /* @__PURE__ */ new Map(); for (let s of t) for (let o = 0; o < s.chunk.length; o++) @@ -3724,7 +3724,7 @@ function e0(t, e, n) { } return i; } -class Mk { +class Zk { constructor(e, n, r, i = 0) { this.layer = e, this.skip = n, this.minPoint = r, this.rank = i; } @@ -3780,7 +3780,7 @@ class Mk { return this.from - e.from || this.startSide - e.startSide || this.rank - e.rank || this.to - e.to || this.endSide - e.endSide; } } -class Go { +class Uo { constructor(e) { this.heap = e; } @@ -3788,8 +3788,8 @@ class Go { let i = []; for (let s = 0; s < e.length; s++) for (let o = e[s]; !o.isEmpty; o = o.nextLayer) - o.maxPoint >= r && i.push(new Mk(o, n, r, s)); - return i.length == 1 ? i[0] : new Go(i); + o.maxPoint >= r && i.push(new Zk(o, n, r, s)); + return i.length == 1 ? i[0] : new Uo(i); } get startSide() { return this.value ? this.value.startSide : 0; @@ -3830,7 +3830,7 @@ function Ru(t, e) { } class ao { constructor(e, n, r) { - this.minPoint = r, this.active = [], this.activeTo = [], this.activeRank = [], this.minActive = -1, this.point = null, this.pointFrom = 0, this.pointRank = 0, this.to = -1e9, this.endSide = 0, this.openStart = -1, this.cursor = Go.from(e, n, r); + this.minPoint = r, this.active = [], this.activeTo = [], this.activeRank = [], this.minActive = -1, this.point = null, this.pointFrom = 0, this.pointRank = 0, this.to = -1e9, this.endSide = 0, this.openStart = -1, this.cursor = Uo.from(e, n, r); } goto(e, n = -1e9) { return this.cursor.goto(e, n), this.active.length = this.activeTo.length = this.activeRank.length = 0, this.minActive = -1, this.to = e, this.endSide = n, this.openStart = -1, this.next(), this; @@ -3841,13 +3841,13 @@ class ao { this.cursor.forward(e, n); } removeActive(e) { - ha(this.active, e), ha(this.activeTo, e), ha(this.activeRank, e), this.minActive = n0(this.active, this.activeTo); + ha(this.active, e), ha(this.activeTo, e), ha(this.activeRank, e), this.minActive = r0(this.active, this.activeTo); } addActive(e) { let n = 0, { value: r, to: i, rank: s } = this.cursor; for (; n < this.activeRank.length && this.activeRank[n] <= s; ) n++; - ua(this.active, n, r), ua(this.activeTo, n, i), ua(this.activeRank, n, s), e && ua(e, n, this.cursor.from), this.minActive = n0(this.active, this.activeTo); + ua(this.active, n, r), ua(this.activeTo, n, i), ua(this.activeRank, n, s), e && ua(e, n, this.cursor.from), this.minActive = r0(this.active, this.activeTo); } next() { let e = this.to, n = this.point; @@ -3902,17 +3902,17 @@ class ao { return n; } } -function t0(t, e, n, r, i, s) { +function n0(t, e, n, r, i, s) { t.goto(e), n.goto(r); let o = r + i, l = r, a = r - e; for (; ; ) { let c = t.to + a - n.to || t.endSide - n.endSide, h = c < 0 ? t.to + a : n.to, u = Math.min(h, o); - if (t.point || n.point ? t.point && n.point && (t.point == n.point || t.point.eq(n.point)) && Cd(t.activeForPoint(t.to), n.activeForPoint(n.to)) || s.comparePoint(l, u, t.point, n.point) : u > l && !Cd(t.active, n.active) && s.compareRange(l, u, t.active, n.active), h > o) + if (t.point || n.point ? t.point && n.point && (t.point == n.point || t.point.eq(n.point)) && Ad(t.activeForPoint(t.to), n.activeForPoint(n.to)) || s.comparePoint(l, u, t.point, n.point) : u > l && !Ad(t.active, n.active) && s.compareRange(l, u, t.active, n.active), h > o) break; l = h, c <= 0 && t.next(), c >= 0 && n.next(); } } -function Cd(t, e) { +function Ad(t, e) { if (t.length != e.length) return !1; for (let n = 0; n < t.length; n++) @@ -3930,7 +3930,7 @@ function ua(t, e, n) { t[r + 1] = t[r]; t[e] = n; } -function n0(t, e) { +function r0(t, e) { let n = -1, r = 1e9; for (let i = 0; i < e.length; i++) (e[i] - r || t[i].endSide - t[n].endSide) < 0 && (n = i, r = e[i]); @@ -3942,7 +3942,7 @@ function dn(t, e, n = t.length) { t.charCodeAt(i) == 9 ? (r += e - r % e, i++) : (r++, i = it(t, i)); return r; } -function Ad(t, e, n, r) { +function $d(t, e, n, r) { for (let i = 0, s = 0; ; ) { if (s >= e) return i; @@ -3952,7 +3952,7 @@ function Ad(t, e, n, r) { } return r === !0 ? -1 : t.length; } -const $d = "\u037C", r0 = typeof Symbol > "u" ? "__" + $d : Symbol.for($d), Pd = typeof Symbol > "u" ? "__styleSet" + Math.floor(Math.random() * 1e8) : Symbol("styleSet"), i0 = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : {}; +const Pd = "\u037C", i0 = typeof Symbol > "u" ? "__" + Pd : Symbol.for(Pd), Td = typeof Symbol > "u" ? "__styleSet" + Math.floor(Math.random() * 1e8) : Symbol("styleSet"), s0 = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : {}; class hr { constructor(e, n) { this.rules = []; @@ -3968,7 +3968,7 @@ class hr { let p = l[d]; if (/&/.test(d)) s( - d.split(/,\s*/).map((m) => o.map((g) => m.replace(/&/, g))).reduce((m, g) => m.concat(g)), + d.split(/,\s*/).map((g) => o.map((m) => g.replace(/&/, m))).reduce((g, m) => g.concat(m)), p, a ); @@ -3977,7 +3977,7 @@ class hr { throw new RangeError("The value of a property (" + d + ") should be a primitive value."); s(i(d), p, h, f); } else - p != null && h.push(d.replace(/_.*/, "").replace(/[A-Z]/g, (m) => "-" + m.toLowerCase()) + ": " + p + ";"); + p != null && h.push(d.replace(/_.*/, "").replace(/[A-Z]/g, (g) => "-" + g.toLowerCase()) + ": " + p + ";"); } (h.length || f) && a.push((r && !u && !c ? o.map(r) : o).join(", ") + " {" + h.join(" ") + "}"); } @@ -3989,29 +3989,29 @@ class hr { `); } static newName() { - let e = i0[r0] || 1; - return i0[r0] = e + 1, $d + e.toString(36); + let e = s0[i0] || 1; + return s0[i0] = e + 1, Pd + e.toString(36); } static mount(e, n, r) { - let i = e[Pd], s = r && r.nonce; - i ? s && i.setNonce(s) : i = new hQ(e, s), i.mount(Array.isArray(n) ? n : [n]); + let i = e[Td], s = r && r.nonce; + i ? s && i.setNonce(s) : i = new u2(e, s), i.mount(Array.isArray(n) ? n : [n]); } } -let s0 = /* @__PURE__ */ new Map(); -class hQ { +let o0 = /* @__PURE__ */ new Map(); +class u2 { constructor(e, n) { let r = e.ownerDocument || e, i = r.defaultView; if (!e.head && e.adoptedStyleSheets && i.CSSStyleSheet) { - let s = s0.get(r); + let s = o0.get(r); if (s) - return e.adoptedStyleSheets = [s.sheet, ...e.adoptedStyleSheets], e[Pd] = s; - this.sheet = new i.CSSStyleSheet(), e.adoptedStyleSheets = [this.sheet, ...e.adoptedStyleSheets], s0.set(r, this); + return e.adoptedStyleSheets = [s.sheet, ...e.adoptedStyleSheets], e[Td] = s; + this.sheet = new i.CSSStyleSheet(), e.adoptedStyleSheets = [this.sheet, ...e.adoptedStyleSheets], o0.set(r, this); } else { this.styleTag = r.createElement("style"), n && this.styleTag.setAttribute("nonce", n); let s = e.head || e; s.insertBefore(this.styleTag, s.firstChild); } - this.modules = [], e[Pd] = this; + this.modules = [], e[Td] = this; } mount(e) { let n = this.sheet, r = 0, i = 0; @@ -4092,7 +4092,7 @@ var qr = { 220: "\\", 221: "]", 222: "'" -}, Ho = { +}, Go = { 48: ")", 49: "!", 50: "@", @@ -4117,27 +4117,27 @@ var qr = { 220: "|", 221: "}", 222: '"' -}, uQ = typeof navigator < "u" && /Mac/.test(navigator.platform), fQ = typeof navigator < "u" && /MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent); +}, f2 = typeof navigator < "u" && /Mac/.test(navigator.platform), d2 = typeof navigator < "u" && /MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent); for (var tt = 0; tt < 10; tt++) qr[48 + tt] = qr[96 + tt] = String(tt); for (var tt = 1; tt <= 24; tt++) qr[tt + 111] = "F" + tt; for (var tt = 65; tt <= 90; tt++) - qr[tt] = String.fromCharCode(tt + 32), Ho[tt] = String.fromCharCode(tt); + qr[tt] = String.fromCharCode(tt + 32), Go[tt] = String.fromCharCode(tt); for (var Mu in qr) - Ho.hasOwnProperty(Mu) || (Ho[Mu] = qr[Mu]); -function dQ(t) { - var e = uQ && t.metaKey && t.shiftKey && !t.ctrlKey && !t.altKey || fQ && t.shiftKey && t.key && t.key.length == 1 || t.key == "Unidentified", n = !e && t.key || (t.shiftKey ? Ho : qr)[t.keyCode] || t.key || "Unidentified"; + Go.hasOwnProperty(Mu) || (Go[Mu] = qr[Mu]); +function p2(t) { + var e = f2 && t.metaKey && t.shiftKey && !t.ctrlKey && !t.altKey || d2 && t.shiftKey && t.key && t.key.length == 1 || t.key == "Unidentified", n = !e && t.key || (t.shiftKey ? Go : qr)[t.keyCode] || t.key || "Unidentified"; return n == "Esc" && (n = "Escape"), n == "Del" && (n = "Delete"), n == "Left" && (n = "ArrowLeft"), n == "Up" && (n = "ArrowUp"), n == "Right" && (n = "ArrowRight"), n == "Down" && (n = "ArrowDown"), n; } -function $c(t) { +function Pc(t) { let e; return t.nodeType == 11 ? e = t.getSelection ? t : t.ownerDocument : e = t, e.getSelection(); } -function Td(t, e) { +function Qd(t, e) { return e ? t == e || t.contains(e.nodeType != 1 ? e.parentNode : e) : !1; } -function pQ(t) { +function g2(t) { let e = t.activeElement; for (; e && e.shadowRoot; ) e = e.shadowRoot.activeElement; @@ -4147,23 +4147,23 @@ function sc(t, e) { if (!e.anchorNode) return !1; try { - return Td(t, e.anchorNode); + return Qd(t, e.anchorNode); } catch { return !1; } } -function Ko(t) { +function Ho(t) { return t.nodeType == 3 ? _i(t, 0, t.nodeValue.length).getClientRects() : t.nodeType == 1 ? t.getClientRects() : []; } -function Pc(t, e, n, r) { - return n ? o0(t, e, n, r, -1) || o0(t, e, n, r, 1) : !1; +function Tc(t, e, n, r) { + return n ? l0(t, e, n, r, -1) || l0(t, e, n, r, 1) : !1; } -function Jo(t) { +function Ko(t) { for (var e = 0; ; e++) if (t = t.previousSibling, !t) return e; } -function o0(t, e, n, r, i) { +function l0(t, e, n, r, i) { for (; ; ) { if (t == n && e == r) return !0; @@ -4173,7 +4173,7 @@ function o0(t, e, n, r, i) { let s = t.parentNode; if (!s || s.nodeType != 1) return !1; - e = Jo(t) + (i < 0 ? 0 : 1), t = s; + e = Ko(t) + (i < 0 ? 0 : 1), t = s; } else if (t.nodeType == 1) { if (t = t.childNodes[e + (i < 0 ? -1 : 0)], t.nodeType == 1 && t.contentEditable == "false") return !1; @@ -4185,11 +4185,11 @@ function o0(t, e, n, r, i) { function ur(t) { return t.nodeType == 3 ? t.nodeValue.length : t.childNodes.length; } -function gm(t, e) { +function Og(t, e) { let n = e ? t.left : t.right; return { left: n, right: n, top: t.top, bottom: t.bottom }; } -function mQ(t) { +function m2(t) { return { left: 0, right: t.innerWidth, @@ -4197,56 +4197,56 @@ function mQ(t) { bottom: t.innerHeight }; } -function Zk(t, e) { +function Lk(t, e) { let n = e.width / t.offsetWidth, r = e.height / t.offsetHeight; return (n > 0.995 && n < 1.005 || !isFinite(n) || Math.abs(e.width - t.offsetWidth) < 1) && (n = 1), (r > 0.995 && r < 1.005 || !isFinite(r) || Math.abs(e.height - t.offsetHeight) < 1) && (r = 1), { scaleX: n, scaleY: r }; } -function gQ(t, e, n, r, i, s, o, l) { +function O2(t, e, n, r, i, s, o, l) { let a = t.ownerDocument, c = a.defaultView || window; for (let h = t, u = !1; h && !u; ) if (h.nodeType == 1) { - let f, d = h == a.body, p = 1, m = 1; + let f, d = h == a.body, p = 1, g = 1; if (d) - f = mQ(c); + f = m2(c); else { if (/^(fixed|sticky)$/.test(getComputedStyle(h).position) && (u = !0), h.scrollHeight <= h.clientHeight && h.scrollWidth <= h.clientWidth) { h = h.assignedSlot || h.parentNode; continue; } let b = h.getBoundingClientRect(); - ({ scaleX: p, scaleY: m } = Zk(h, b)), f = { + ({ scaleX: p, scaleY: g } = Lk(h, b)), f = { left: b.left, right: b.left + h.clientWidth * p, top: b.top, - bottom: b.top + h.clientHeight * m + bottom: b.top + h.clientHeight * g }; } - let g = 0, O = 0; + let m = 0, O = 0; if (i == "nearest") e.top < f.top ? (O = -(f.top - e.top + o), n > 0 && e.bottom > f.bottom + O && (O = e.bottom - f.bottom + O + o)) : e.bottom > f.bottom && (O = e.bottom - f.bottom + o, n < 0 && e.top - O < f.top && (O = -(f.top + O - e.top + o))); else { let b = e.bottom - e.top, y = f.bottom - f.top; O = (i == "center" && b <= y ? e.top + b / 2 - y / 2 : i == "start" || i == "center" && n < 0 ? e.top - o : e.bottom - y + o) - f.top; } - if (r == "nearest" ? e.left < f.left ? (g = -(f.left - e.left + s), n > 0 && e.right > f.right + g && (g = e.right - f.right + g + s)) : e.right > f.right && (g = e.right - f.right + s, n < 0 && e.left < f.left + g && (g = -(f.left + g - e.left + s))) : g = (r == "center" ? e.left + (e.right - e.left) / 2 - (f.right - f.left) / 2 : r == "start" == l ? e.left - s : e.right - (f.right - f.left) + s) - f.left, g || O) + if (r == "nearest" ? e.left < f.left ? (m = -(f.left - e.left + s), n > 0 && e.right > f.right + m && (m = e.right - f.right + m + s)) : e.right > f.right && (m = e.right - f.right + s, n < 0 && e.left < f.left + m && (m = -(f.left + m - e.left + s))) : m = (r == "center" ? e.left + (e.right - e.left) / 2 - (f.right - f.left) / 2 : r == "start" == l ? e.left - s : e.right - (f.right - f.left) + s) - f.left, m || O) if (d) - c.scrollBy(g, O); + c.scrollBy(m, O); else { let b = 0, y = 0; if (O) { let w = h.scrollTop; - h.scrollTop += O / m, y = (h.scrollTop - w) * m; + h.scrollTop += O / g, y = (h.scrollTop - w) * g; } - if (g) { + if (m) { let w = h.scrollLeft; - h.scrollLeft += g / p, b = (h.scrollLeft - w) * p; + h.scrollLeft += m / p, b = (h.scrollLeft - w) * p; } e = { left: e.left - b, top: e.top - y, right: e.right - b, bottom: e.bottom - y - }, b && Math.abs(b - g) < 1 && (r = "nearest"), y && Math.abs(y - O) < 1 && (i = "nearest"); + }, b && Math.abs(b - m) < 1 && (r = "nearest"), y && Math.abs(y - O) < 1 && (i = "nearest"); } if (d) break; @@ -4256,7 +4256,7 @@ function gQ(t, e, n, r, i, s, o, l) { else break; } -function OQ(t) { +function b2(t) { let e = t.ownerDocument; for (let n = t.parentNode; n && n != e.body; ) if (n.nodeType == 1) { @@ -4269,7 +4269,7 @@ function OQ(t) { break; return null; } -class bQ { +class y2 { constructor() { this.anchorNode = null, this.anchorOffset = 0, this.focusNode = null, this.focusOffset = 0; } @@ -4285,7 +4285,7 @@ class bQ { } } let Wi = null; -function Lk(t) { +function Ik(t) { if (t.setActive) return t.setActive(); if (Wi) @@ -4305,9 +4305,9 @@ function Lk(t) { } } } -let l0; +let a0; function _i(t, e, n = e) { - let r = l0 || (l0 = document.createRange()); + let r = a0 || (a0 = document.createRange()); return r.setEnd(t, n), r.setStart(t, e), r; } function ss(t, e, n) { @@ -4316,7 +4316,7 @@ function ss(t, e, n) { let s = new KeyboardEvent("keyup", r); return s.synthetic = !0, t.dispatchEvent(s), i.defaultPrevented || s.defaultPrevented; } -function yQ(t) { +function w2(t) { for (; t; ) { if (t && (t.nodeType == 9 || t.nodeType == 11 && t.host)) return t; @@ -4324,11 +4324,11 @@ function yQ(t) { } return null; } -function Ik(t) { +function Nk(t) { for (; t.attributes.length; ) t.removeAttributeNode(t.attributes[0]); } -function wQ(t, e) { +function k2(t, e) { let n = e.focusNode, r = e.focusOffset; if (!n || e.anchorNode != n || e.anchorOffset != r) return !1; @@ -4341,10 +4341,10 @@ function wQ(t, e) { } else { if (n == t) return !0; - r = Jo(n), n = n.parentNode; + r = Ko(n), n = n.parentNode; } } -function Nk(t) { +function qk(t) { return t.scrollTop > Math.max(1, t.scrollHeight - t.clientHeight - 4); } class ut { @@ -4352,13 +4352,13 @@ class ut { this.node = e, this.offset = n, this.precise = r; } static before(e, n) { - return new ut(e.parentNode, Jo(e), n); + return new ut(e.parentNode, Ko(e), n); } static after(e, n) { - return new ut(e.parentNode, Jo(e) + 1, n); + return new ut(e.parentNode, Ko(e) + 1, n); } } -const Om = []; +const bg = []; class $e { constructor() { this.parent = null, this.dom = null, this.flags = 2; @@ -4397,13 +4397,13 @@ class $e { } if (s = i ? i.nextSibling : r.firstChild, n && !n.written && n.node == r && s != o.dom && (n.written = !0), o.dom.parentNode == r) for (; s && s != o.dom; ) - s = a0(s); + s = c0(s); else r.insertBefore(o.dom, s); i = o.dom; } for (s = i ? i.nextSibling : r.firstChild, s && n && n.node == r && (n.written = !0); s; ) - s = a0(s); + s = c0(s); } else if (this.flags & 1) for (let r of this.children) r.flags & 7 && (r.sync(e, n), r.flags &= -8); @@ -4480,7 +4480,7 @@ class $e { e = n; } } - replaceChildren(e, n, r = Om) { + replaceChildren(e, n, r = bg) { this.markDirty(); for (let i = e; i < n; i++) { let s = this.children[i]; @@ -4497,7 +4497,7 @@ class $e { return !1; } childCursor(e = this.length) { - return new qk(this.children, e, this.children.length); + return new Bk(this.children, e, this.children.length); } childPos(e, n = 1) { return this.childCursor().findPos(e, n); @@ -4537,11 +4537,11 @@ class $e { } } $e.prototype.breakAfter = 0; -function a0(t) { +function c0(t) { let e = t.nextSibling; return t.parentNode.removeChild(t), e; } -class qk { +class Bk { constructor(e, n, r) { this.children = e, this.pos = n, this.i = r, this.off = 0; } @@ -4554,7 +4554,7 @@ class qk { } } } -function Bk(t, e, n, r, i, s, o, l, a) { +function Yk(t, e, n, r, i, s, o, l, a) { let { children: c } = t, h = c.length ? c[e] : null, u = s.length ? s[s.length - 1] : null, f = u ? u.breakAfter : o; if (!(e == r && h && !o && !f && s.length < 2 && h.merge(n, i, s.length ? u : null, n == 0, l, a))) { if (r < c.length) { @@ -4571,32 +4571,32 @@ function Bk(t, e, n, r, i, s, o, l, a) { !s.length && e && r < c.length && !c[e - 1].breakAfter && c[r].merge(0, 0, c[e - 1], !1, l, a) && e--, (e < r || s.length) && t.replaceChildren(e, r, s); } } -function Yk(t, e, n, r, i, s) { +function Xk(t, e, n, r, i, s) { let o = t.childCursor(), { i: l, off: a } = o.findPos(n, 1), { i: c, off: h } = o.findPos(e, -1), u = e - n; for (let f of r) u += f.length; - t.length += u, Bk(t, c, h, l, a, r, 0, i, s); + t.length += u, Yk(t, c, h, l, a, r, 0, i, s); } -let Lt = typeof navigator < "u" ? navigator : { userAgent: "", vendor: "", platform: "" }, Qd = typeof document < "u" ? document : { documentElement: { style: {} } }; -const Ed = /* @__PURE__ */ /Edge\/(\d+)/.exec(Lt.userAgent), Xk = /* @__PURE__ */ /MSIE \d/.test(Lt.userAgent), Dd = /* @__PURE__ */ /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Lt.userAgent), Rh = !!(Xk || Dd || Ed), c0 = !Rh && /* @__PURE__ */ /gecko\/(\d+)/i.test(Lt.userAgent), Zu = !Rh && /* @__PURE__ */ /Chrome\/(\d+)/.exec(Lt.userAgent), h0 = "webkitFontSmoothing" in Qd.documentElement.style, Wk = !Rh && /* @__PURE__ */ /Apple Computer/.test(Lt.vendor), u0 = Wk && (/* @__PURE__ */ /Mobile\/\w+/.test(Lt.userAgent) || Lt.maxTouchPoints > 2); +let Lt = typeof navigator < "u" ? navigator : { userAgent: "", vendor: "", platform: "" }, Ed = typeof document < "u" ? document : { documentElement: { style: {} } }; +const Dd = /* @__PURE__ */ /Edge\/(\d+)/.exec(Lt.userAgent), Wk = /* @__PURE__ */ /MSIE \d/.test(Lt.userAgent), Rd = /* @__PURE__ */ /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Lt.userAgent), Mh = !!(Wk || Rd || Dd), h0 = !Mh && /* @__PURE__ */ /gecko\/(\d+)/i.test(Lt.userAgent), Zu = !Mh && /* @__PURE__ */ /Chrome\/(\d+)/.exec(Lt.userAgent), u0 = "webkitFontSmoothing" in Ed.documentElement.style, Vk = !Mh && /* @__PURE__ */ /Apple Computer/.test(Lt.vendor), f0 = Vk && (/* @__PURE__ */ /Mobile\/\w+/.test(Lt.userAgent) || Lt.maxTouchPoints > 2); var N = { - mac: u0 || /* @__PURE__ */ /Mac/.test(Lt.platform), + mac: f0 || /* @__PURE__ */ /Mac/.test(Lt.platform), windows: /* @__PURE__ */ /Win/.test(Lt.platform), linux: /* @__PURE__ */ /Linux|X11/.test(Lt.platform), - ie: Rh, - ie_version: Xk ? Qd.documentMode || 6 : Dd ? +Dd[1] : Ed ? +Ed[1] : 0, - gecko: c0, - gecko_version: c0 ? +(/* @__PURE__ */ /Firefox\/(\d+)/.exec(Lt.userAgent) || [0, 0])[1] : 0, + ie: Mh, + ie_version: Wk ? Ed.documentMode || 6 : Rd ? +Rd[1] : Dd ? +Dd[1] : 0, + gecko: h0, + gecko_version: h0 ? +(/* @__PURE__ */ /Firefox\/(\d+)/.exec(Lt.userAgent) || [0, 0])[1] : 0, chrome: !!Zu, chrome_version: Zu ? +Zu[1] : 0, - ios: u0, + ios: f0, android: /* @__PURE__ */ /Android\b/.test(Lt.userAgent), - webkit: h0, - safari: Wk, - webkit_version: h0 ? +(/* @__PURE__ */ /\bAppleWebKit\/(\d+)/.exec(navigator.userAgent) || [0, 0])[1] : 0, - tabSize: Qd.documentElement.style.tabSize != null ? "tab-size" : "-moz-tab-size" + webkit: u0, + safari: Vk, + webkit_version: u0 ? +(/* @__PURE__ */ /\bAppleWebKit\/(\d+)/.exec(navigator.userAgent) || [0, 0])[1] : 0, + tabSize: Ed.documentElement.style.tabSize != null ? "tab-size" : "-moz-tab-size" }; -const kQ = 256; +const x2 = 256; class fr extends $e { constructor(e) { super(), this.text = e; @@ -4614,7 +4614,7 @@ class fr extends $e { e.nodeType == 3 && this.createDOM(e); } merge(e, n, r) { - return this.flags & 8 || r && (!(r instanceof fr) || this.length - (n - e) + r.length > kQ || r.flags & 8) ? !1 : (this.text = this.text.slice(0, e) + (r ? r.text : "") + this.text.slice(n), this.markDirty(), !0); + return this.flags & 8 || r && (!(r instanceof fr) || this.length - (n - e) + r.length > x2 || r.flags & 8) ? !1 : (this.text = this.text.slice(0, e) + (r ? r.text : "") + this.text.slice(n), this.markDirty(), !0); } split(e) { let n = new fr(this.text.slice(e)); @@ -4630,7 +4630,7 @@ class fr extends $e { return { from: r, to: r + this.length, startDOM: this.dom, endDOM: this.dom.nextSibling }; } coordsAt(e, n) { - return xQ(this.dom, e, n); + return v2(this.dom, e, n); } } class dr extends $e { @@ -4640,7 +4640,7 @@ class dr extends $e { i.setParent(this); } setAttrs(e) { - if (Ik(e), this.mark.class && (e.className = this.mark.class), this.mark.attrs) + if (Nk(e), this.mark.class && (e.className = this.mark.class), this.mark.attrs) for (let n in this.mark.attrs) e.setAttribute(n, this.mark.attrs[n]); return e; @@ -4655,7 +4655,7 @@ class dr extends $e { this.dom ? this.flags & 4 && this.setAttrs(this.dom) : this.setDOM(this.setAttrs(document.createElement(this.mark.tagName))), super.sync(e, n); } merge(e, n, r, i, s, o) { - return r && (!(r instanceof dr && r.mark.eq(this.mark)) || e && s <= 0 || n < this.length && o <= 0) ? !1 : (Yk(this, e, n, r ? r.children.slice() : [], s - 1, o - 1), this.markDirty(), !0); + return r && (!(r instanceof dr && r.mark.eq(this.mark)) || e && s <= 0 || n < this.length && o <= 0) ? !1 : (Xk(this, e, n, r ? r.children.slice() : [], s - 1, o - 1), this.markDirty(), !0); } split(e) { let n = [], r = 0, i = -1, s = 0; @@ -4667,13 +4667,13 @@ class dr extends $e { return this.length = e, i > -1 && (this.children.length = i, this.markDirty()), new dr(this.mark, n, o); } domAtPos(e) { - return Vk(this, e); + return jk(this, e); } coordsAt(e, n) { - return zk(this, e, n); + return Fk(this, e, n); } } -function xQ(t, e, n) { +function v2(t, e, n) { let r = t.nodeValue.length; e > r && (e = r); let i = e, s = e, o = 0; @@ -4682,7 +4682,7 @@ function xQ(t, e, n) { if (!l.length) return null; let a = l[(o ? o < 0 : n >= 0) ? 0 : l.length - 1]; - return N.safari && !o && a.width == 0 && (a = Array.prototype.find.call(l, (c) => c.width) || a), o ? gm(a, o < 0) : a || null; + return N.safari && !o && a.width == 0 && (a = Array.prototype.find.call(l, (c) => c.width) || a), o ? Og(a, o < 0) : a || null; } class Pr extends $e { static create(e, n, r) { @@ -4738,7 +4738,7 @@ class Pr extends $e { let o = this.side ? this.side < 0 : e > 0; for (let l = o ? i.length - 1 : 0; s = i[l], !(e > 0 ? l == 0 : l == i.length - 1 || s.top < s.bottom); l += o ? -1 : 1) ; - return gm(s, !o); + return Og(s, !o); } get isEditable() { return !1; @@ -4797,8 +4797,8 @@ class Ss extends $e { return !0; } } -fr.prototype.children = Pr.prototype.children = Ss.prototype.children = Om; -function Vk(t, e) { +fr.prototype.children = Pr.prototype.children = Ss.prototype.children = bg; +function jk(t, e) { let n = t.dom, { children: r } = t, i = 0; for (let s = 0; i < r.length; i++) { let o = r[i], l = s + o.length; @@ -4822,11 +4822,11 @@ function Vk(t, e) { } return new ut(n, 0); } -function jk(t, e, n) { +function zk(t, e, n) { let r, { children: i } = t; - n > 0 && e instanceof dr && i.length && (r = i[i.length - 1]) instanceof dr && r.mark.eq(e.mark) ? jk(r, e.children[0], n - 1) : (i.push(e), e.setParent(t)), t.length += e.length; + n > 0 && e instanceof dr && i.length && (r = i[i.length - 1]) instanceof dr && r.mark.eq(e.mark) ? zk(r, e.children[0], n - 1) : (i.push(e), e.setParent(t)), t.length += e.length; } -function zk(t, e, n) { +function Fk(t, e, n) { let r = null, i = -1, s = null, o = -1; function l(c, h) { for (let u = 0, f = 0; u < c.children.length && f <= h; u++) { @@ -4836,25 +4836,25 @@ function zk(t, e, n) { } l(t, e); let a = (n < 0 ? r : s) || r || s; - return a ? a.coordsAt(Math.max(0, a == r ? i : o), n) : vQ(t); + return a ? a.coordsAt(Math.max(0, a == r ? i : o), n) : S2(t); } -function vQ(t) { +function S2(t) { let e = t.dom.lastChild; if (!e) return t.dom.getBoundingClientRect(); - let n = Ko(e); + let n = Ho(e); return n[n.length - 1] || null; } -function Rd(t, e) { +function Md(t, e) { for (let n in t) n == "class" && e.class ? e.class += " " + t.class : n == "style" && e.style ? e.style += ";" + t.style : e[n] = t[n]; return e; } -const f0 = /* @__PURE__ */ Object.create(null); -function bm(t, e, n) { +const d0 = /* @__PURE__ */ Object.create(null); +function yg(t, e, n) { if (t == e) return !0; - t || (t = f0), e || (e = f0); + t || (t = d0), e || (e = d0); let r = Object.keys(t), i = Object.keys(e); if (r.length - (n && r.indexOf(n) > -1 ? 1 : 0) != i.length - (n && i.indexOf(n) > -1 ? 1 : 0)) return !1; @@ -4863,7 +4863,7 @@ function bm(t, e, n) { return !1; return !0; } -function Md(t, e, n) { +function Zd(t, e, n) { let r = !1; if (e) for (let i in e) @@ -4873,7 +4873,7 @@ function Md(t, e, n) { e && e[i] == n[i] || (r = !0, i == "style" ? t.style.cssText = n[i] : t.setAttribute(i, n[i])); return r; } -function SQ(t) { +function _2(t) { let e = /* @__PURE__ */ Object.create(null); for (let n = 0; n < t.attributes.length; n++) { let r = t.attributes[n]; @@ -4891,7 +4891,7 @@ class Ye extends $e { return !1; this.dom || r.transferDOM(this); } - return i && this.setDeco(r ? r.attrs : null), Yk(this, e, n, r ? r.children.slice() : [], s, o), !0; + return i && this.setDeco(r ? r.attrs : null), Xk(this, e, n, r ? r.children.slice() : [], s, o), !0; } split(e) { let n = new Ye(); @@ -4909,24 +4909,24 @@ class Ye extends $e { !this.dom || (this.markDirty(), e.setDOM(this.dom), e.prevAttrs = this.prevAttrs === void 0 ? this.attrs : this.prevAttrs, this.prevAttrs = void 0, this.dom = null); } setDeco(e) { - bm(this.attrs, e) || (this.dom && (this.prevAttrs = this.attrs, this.markDirty()), this.attrs = e); + yg(this.attrs, e) || (this.dom && (this.prevAttrs = this.attrs, this.markDirty()), this.attrs = e); } append(e, n) { - jk(this, e, n); + zk(this, e, n); } addLineDeco(e) { let n = e.spec.attributes, r = e.spec.class; - n && (this.attrs = Rd(n, this.attrs || {})), r && (this.attrs = Rd({ class: r }, this.attrs || {})); + n && (this.attrs = Md(n, this.attrs || {})), r && (this.attrs = Md({ class: r }, this.attrs || {})); } domAtPos(e) { - return Vk(this, e); + return jk(this, e); } reuseDOM(e) { e.nodeName == "DIV" && (this.setDOM(e), this.flags |= 6); } sync(e, n) { var r; - this.dom ? this.flags & 4 && (Ik(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 && (Md(this.dom, this.prevAttrs, this.attrs), this.dom.classList.add("cm-line"), this.prevAttrs = void 0), super.sync(e, n); + this.dom ? this.flags & 4 && (Nk(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 && (Zd(this.dom, this.prevAttrs, this.attrs), this.dom.classList.add("cm-line"), this.prevAttrs = void 0), super.sync(e, n); let i = this.dom.lastChild; for (; i && $e.get(i) instanceof dr; ) i = i.lastChild; @@ -4942,7 +4942,7 @@ class Ye extends $e { for (let r of this.children) { if (!(r instanceof fr) || /[^ -~]/.test(r.text)) return null; - let i = Ko(r.dom); + let i = Ho(r.dom); if (i.length != 1) return null; e += i[0].width, n = i[0].height; @@ -4954,7 +4954,7 @@ class Ye extends $e { } : null; } coordsAt(e, n) { - let r = zk(this, e, n); + let r = Fk(this, e, n); if (!this.children.length && r && this.parent) { let { heightOracle: i } = this.parent.view.viewState, s = r.bottom - r.top; if (Math.abs(s - i.lineHeight) < 2 && i.textHeight < s) { @@ -5001,7 +5001,7 @@ class Dr extends $e { return r.breakAfter = this.breakAfter, r; } get children() { - return Om; + return bg; } sync(e) { (!this.dom || !this.widget.updateDOM(this.dom, e)) && (this.dom && this.prevWidget && this.prevWidget.destroy(this.dom), this.prevWidget = null, this.setDOM(this.widget.toDOM(e)), this.dom.contentEditable = "false"); @@ -5077,7 +5077,7 @@ class L extends Si { return !1; } static mark(e) { - return new Ml(e); + return new Rl(e); } static widget(e) { let n = Math.max(-1e4, Math.min(1e4, e.side || 0)), r = !!e.block; @@ -5088,13 +5088,13 @@ class L extends Si { if (e.isBlockGap) r = -5e8, i = 4e8; else { - let { start: s, end: o } = Fk(e, n); + let { start: s, end: o } = Uk(e, n); r = (s ? n ? -3e8 : -1 : 5e8) - 1, i = (o ? n ? 2e8 : 1 : -6e8) + 1; } return new Br(e, r, i, n, e.widget || null, !0); } static line(e) { - return new Zl(e); + return new Ml(e); } static set(e, n = !1) { return ie.of(e, n); @@ -5104,14 +5104,14 @@ class L extends Si { } } L.none = ie.empty; -class Ml extends L { +class Rl extends L { constructor(e) { - let { start: n, end: r } = Fk(e); + let { start: n, end: r } = Uk(e); super(n ? -1 : 5e8, r ? 1 : -6e8, null, e), this.tagName = e.tagName || "span", this.class = e.class || "", this.attrs = e.attributes || null; } eq(e) { var n, r; - return this == e || e instanceof Ml && this.tagName == e.tagName && (this.class || ((n = this.attrs) === null || n === void 0 ? void 0 : n.class)) == (e.class || ((r = e.attrs) === null || r === void 0 ? void 0 : r.class)) && bm(this.attrs, e.attrs, "class"); + return this == e || e instanceof Rl && this.tagName == e.tagName && (this.class || ((n = this.attrs) === null || n === void 0 ? void 0 : n.class)) == (e.class || ((r = e.attrs) === null || r === void 0 ? void 0 : r.class)) && yg(this.attrs, e.attrs, "class"); } range(e, n = e) { if (e >= n) @@ -5119,13 +5119,13 @@ class Ml extends L { return super.range(e, n); } } -Ml.prototype.point = !1; -class Zl extends L { +Rl.prototype.point = !1; +class Ml extends L { constructor(e) { super(-2e8, -2e8, null, e); } eq(e) { - return e instanceof Zl && this.spec.class == e.spec.class && bm(this.spec.attributes, e.spec.attributes); + return e instanceof Ml && this.spec.class == e.spec.class && yg(this.spec.attributes, e.spec.attributes); } range(e, n = e) { if (n != e) @@ -5133,8 +5133,8 @@ class Zl extends L { return super.range(e, n); } } -Zl.prototype.mapMode = nt.TrackBefore; -Zl.prototype.point = !0; +Ml.prototype.mapMode = nt.TrackBefore; +Ml.prototype.point = !0; class Br extends L { constructor(e, n, r, i, s, o) { super(n, r, s, e), this.block = i, this.isReplace = o, this.mapMode = i ? n <= 0 ? nt.TrackBefore : nt.TrackAfter : nt.TrackDel; @@ -5146,7 +5146,7 @@ class Br extends L { return this.block || !!this.widget && (this.widget.estimatedHeight >= 5 || this.widget.lineBreaks > 0); } eq(e) { - return e instanceof Br && _Q(this.widget, e.widget) && this.block == e.block && this.startSide == e.startSide && this.endSide == e.endSide; + return e instanceof Br && C2(this.widget, e.widget) && this.block == e.block && this.startSide == e.startSide && this.endSide == e.endSide; } range(e, n = e) { if (this.isReplace && (e > n || e == n && this.startSide > 0 && this.endSide <= 0)) @@ -5157,14 +5157,14 @@ class Br extends L { } } Br.prototype.point = !0; -function Fk(t, e = !1) { +function Uk(t, e = !1) { let { inclusiveStart: n, inclusiveEnd: r } = t; return n == null && (n = t.inclusive), r == null && (r = t.inclusive), { start: n != null ? n : e, end: r != null ? r : e }; } -function _Q(t, e) { +function C2(t, e) { return t == e || !!(t && e && t.compare(e)); } -function Zd(t, e, n, r = 0) { +function Ld(t, e, n, r = 0) { let i = n.length - 1; i >= 0 && n[i] + r >= t ? n[i] = Math.max(n[i], e) : n.push(t, e); } @@ -5219,9 +5219,9 @@ class Zo { let l = n - e; if (r instanceof Br) if (r.block) - r.startSide > 0 && !this.posCovered() && this.getLine(), this.addBlockWidget(new Dr(r.widget || new d0("div"), l, r)); + r.startSide > 0 && !this.posCovered() && this.getLine(), this.addBlockWidget(new Dr(r.widget || new p0("div"), l, r)); else { - let a = Pr.create(r.widget || new d0("span"), l, l ? 0 : r.startSide), c = this.atCursorPos && !a.isEditable && s <= i.length && (e < n || r.startSide > 0), h = !a.isEditable && (e < n || s > i.length || r.startSide <= 0), u = this.getLine(); + let a = Pr.create(r.widget || new p0("span"), l, l ? 0 : r.startSide), c = this.atCursorPos && !a.isEditable && s <= i.length && (e < n || r.startSide > 0), h = !a.isEditable && (e < n || s > i.length || r.startSide <= 0), u = this.getLine(); this.pendingBuffer == 2 && !c && !a.isEditable && (this.pendingBuffer = 0), this.flushBuffer(i), c && (u.append(fa(new Ss(1), i), s), s = i.length + Math.max(0, s - i.length)), u.append(fa(a, i), s), this.atCursorPos = h, this.pendingBuffer = h ? e < n || s > i.length ? 1 : 2 : 0, this.pendingBuffer && (this.bufferMarks = i.slice()); } else @@ -5238,7 +5238,7 @@ function fa(t, e) { t = new dr(n, [t], t.length); return t; } -class d0 extends qt { +class p0 extends qt { constructor(e) { super(), this.tag = e; } @@ -5255,9 +5255,9 @@ class d0 extends qt { return !0; } } -const Uk = /* @__PURE__ */ I.define(), Gk = /* @__PURE__ */ I.define(), Hk = /* @__PURE__ */ I.define(), Kk = /* @__PURE__ */ I.define(), Ld = /* @__PURE__ */ I.define(), Jk = /* @__PURE__ */ I.define(), ex = /* @__PURE__ */ I.define(), tx = /* @__PURE__ */ I.define({ +const Gk = /* @__PURE__ */ I.define(), Hk = /* @__PURE__ */ I.define(), Kk = /* @__PURE__ */ I.define(), Jk = /* @__PURE__ */ I.define(), Id = /* @__PURE__ */ I.define(), ex = /* @__PURE__ */ I.define(), tx = /* @__PURE__ */ I.define(), nx = /* @__PURE__ */ I.define({ combine: (t) => t.some((e) => e) -}), nx = /* @__PURE__ */ I.define({ +}), rx = /* @__PURE__ */ I.define({ combine: (t) => t.some((e) => e) }); class os { @@ -5273,11 +5273,11 @@ class os { } const da = /* @__PURE__ */ F.define({ map: (t, e) => t.map(e) }); function Ft(t, e, n) { - let r = t.facet(Kk); + let r = t.facet(Jk); r.length ? r[0](e) : window.onerror ? window.onerror(String(e), n, void 0, void 0, e) : n ? console.error(n + ":", e) : console.error(e); } -const Mh = /* @__PURE__ */ I.define({ combine: (t) => t.length ? t[0] : !0 }); -let CQ = 0; +const Zh = /* @__PURE__ */ I.define({ combine: (t) => t.length ? t[0] : !0 }); +let A2 = 0; const xo = /* @__PURE__ */ I.define(); class ke { constructor(e, n, r, i, s) { @@ -5285,9 +5285,9 @@ class ke { } static define(e, n) { const { eventHandlers: r, eventObservers: i, provide: s, decorations: o } = n || {}; - return new ke(CQ++, e, r, i, (l) => { + return new ke(A2++, e, r, i, (l) => { let a = [xo.of(l)]; - return o && a.push(el.of((c) => { + return o && a.push(Jo.of((c) => { let h = c.plugin(l); return h ? o(h) : L.none; })), s && a.push(s(l)), a; @@ -5338,9 +5338,9 @@ class Lu { this.spec = this.value = null; } } -const rx = /* @__PURE__ */ I.define(), ym = /* @__PURE__ */ I.define(), el = /* @__PURE__ */ I.define(), wm = /* @__PURE__ */ I.define(), ix = /* @__PURE__ */ I.define(); -function p0(t, e, n) { - let r = t.state.facet(ix); +const ix = /* @__PURE__ */ I.define(), wg = /* @__PURE__ */ I.define(), Jo = /* @__PURE__ */ I.define(), kg = /* @__PURE__ */ I.define(), sx = /* @__PURE__ */ I.define(); +function g0(t, e, n) { + let r = t.state.facet(sx); if (!r.length) return r; let i = r.map((o) => o instanceof Function ? o(t) : o), s = []; @@ -5362,10 +5362,10 @@ function p0(t, e, n) { } }), s; } -const sx = /* @__PURE__ */ I.define(); -function ox(t) { +const ox = /* @__PURE__ */ I.define(); +function lx(t) { let e = 0, n = 0, r = 0, i = 0; - for (let s of t.state.facet(sx)) { + for (let s of t.state.facet(ox)) { let o = s(t); o && (o.left != null && (e = Math.max(e, o.left)), o.right != null && (n = Math.max(n, o.right)), o.top != null && (r = Math.max(r, o.top)), o.bottom != null && (i = Math.max(i, o.bottom))); } @@ -5409,7 +5409,7 @@ class Ut { } } } -class Tc { +class Qc { constructor(e, n, r) { this.view = e, this.state = n, this.transactions = r, this.flags = 0, this.startState = e.state, this.changes = Ne.empty(this.startState.doc.length); for (let s of r) @@ -5418,7 +5418,7 @@ class Tc { this.changes.iterChangedRanges((s, o, l, a) => i.push(new Ut(s, o, l, a))), this.changedRanges = i; } static create(e, n, r) { - return new Tc(e, n, r); + return new Qc(e, n, r); } get viewportChanged() { return (this.flags & 4) > 0; @@ -5445,25 +5445,25 @@ class Tc { var Qe = /* @__PURE__ */ function(t) { return t[t.LTR = 0] = "LTR", t[t.RTL = 1] = "RTL", t; }(Qe || (Qe = {})); -const tl = Qe.LTR, lx = Qe.RTL; -function ax(t) { +const el = Qe.LTR, ax = Qe.RTL; +function cx(t) { let e = []; for (let n = 0; n < t.length; n++) e.push(1 << +t[n]); return e; } -const AQ = /* @__PURE__ */ ax("88888888888888888888888888888888888666888888787833333333337888888000000000000000000000000008888880000000000000000000000000088888888888888888888888888888888888887866668888088888663380888308888800000000000000000000000800000000000000000000000000000008"), $Q = /* @__PURE__ */ ax("4444448826627288999999999992222222222222222222222222222222222222222222222229999999999999999999994444444444644222822222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222999999949999999229989999223333333333"), Id = /* @__PURE__ */ Object.create(null), Sn = []; +const $2 = /* @__PURE__ */ cx("88888888888888888888888888888888888666888888787833333333337888888000000000000000000000000008888880000000000000000000000000088888888888888888888888888888888888887866668888088888663380888308888800000000000000000000000800000000000000000000000000000008"), P2 = /* @__PURE__ */ cx("4444448826627288999999999992222222222222222222222222222222222222222222222229999999999999999999994444444444644222822222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222999999949999999229989999223333333333"), Nd = /* @__PURE__ */ Object.create(null), Sn = []; for (let t of ["()", "[]", "{}"]) { let e = /* @__PURE__ */ t.charCodeAt(0), n = /* @__PURE__ */ t.charCodeAt(1); - Id[e] = n, Id[n] = -e; + Nd[e] = n, Nd[n] = -e; } -function PQ(t) { - return t <= 247 ? AQ[t] : 1424 <= t && t <= 1524 ? 2 : 1536 <= t && t <= 1785 ? $Q[t - 1536] : 1774 <= t && t <= 2220 ? 4 : 8192 <= t && t <= 8204 ? 256 : 64336 <= t && t <= 65023 ? 4 : 1; +function T2(t) { + return t <= 247 ? $2[t] : 1424 <= t && t <= 1524 ? 2 : 1536 <= t && t <= 1785 ? P2[t - 1536] : 1774 <= t && t <= 2220 ? 4 : 8192 <= t && t <= 8204 ? 256 : 64336 <= t && t <= 65023 ? 4 : 1; } -const TQ = /[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\ufb50-\ufdff]/; +const Q2 = /[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\ufb50-\ufdff]/; class Tr { get dir() { - return this.level % 2 ? lx : tl; + return this.level % 2 ? ax : el; } constructor(e, n, r) { this.from = e, this.to = n, this.level = r; @@ -5486,22 +5486,22 @@ class Tr { return s; } } -function cx(t, e) { +function hx(t, e) { if (t.length != e.length) return !1; for (let n = 0; n < t.length; n++) { let r = t[n], i = e[n]; - if (r.from != i.from || r.to != i.to || r.direction != i.direction || !cx(r.inner, i.inner)) + if (r.from != i.from || r.to != i.to || r.direction != i.direction || !hx(r.inner, i.inner)) return !1; } return !0; } const be = []; -function QQ(t, e, n, r, i) { +function E2(t, e, n, r, i) { for (let s = 0; s <= r.length; s++) { let o = s ? r[s - 1].to : e, l = s < r.length ? r[s].from : n, a = s ? 256 : i; for (let c = o, h = a, u = a; c < l; c++) { - let f = PQ(t.charCodeAt(c)); + let f = T2(t.charCodeAt(c)); f == 512 ? f = h : f == 8 && u == 4 && (f = 16), be[c] = f == 4 ? 2 : f, f & 7 && (u = f), h = f; } for (let c = o, h = a, u = a; c < l; c++) { @@ -5513,8 +5513,8 @@ function QQ(t, e, n, r, i) { for (; d < l && be[d] == 64; ) d++; let p = c && h == 8 || d < n && be[d] == 8 ? u == 1 ? 1 : 8 : 256; - for (let m = c; m < d; m++) - be[m] = p; + for (let g = c; g < d; g++) + be[g] = p; c = d - 1; } else f == 8 && u == 1 && (be[c] = 1); @@ -5522,17 +5522,17 @@ function QQ(t, e, n, r, i) { } } } -function EQ(t, e, n, r, i) { +function D2(t, e, n, r, i) { let s = i == 1 ? 2 : 1; for (let o = 0, l = 0, a = 0; o <= r.length; o++) { let c = o ? r[o - 1].to : e, h = o < r.length ? r[o].from : n; for (let u = c, f, d, p; u < h; u++) - if (d = Id[f = t.charCodeAt(u)]) + if (d = Nd[f = t.charCodeAt(u)]) if (d < 0) { - for (let m = l - 3; m >= 0; m -= 3) - if (Sn[m + 1] == -d) { - let g = Sn[m + 2], O = g & 2 ? i : g & 4 ? g & 1 ? s : i : 0; - O && (be[u] = be[Sn[m]] = O), l = m; + for (let g = l - 3; g >= 0; g -= 3) + if (Sn[g + 1] == -d) { + let m = Sn[g + 2], O = m & 2 ? i : m & 4 ? m & 1 ? s : i : 0; + O && (be[u] = be[Sn[g]] = O), l = g; break; } } else { @@ -5541,24 +5541,24 @@ function EQ(t, e, n, r, i) { Sn[l++] = u, Sn[l++] = f, Sn[l++] = a; } else if ((p = be[u]) == 2 || p == 1) { - let m = p == i; - a = m ? 0 : 1; - for (let g = l - 3; g >= 0; g -= 3) { - let O = Sn[g + 2]; + let g = p == i; + a = g ? 0 : 1; + for (let m = l - 3; m >= 0; m -= 3) { + let O = Sn[m + 2]; if (O & 2) break; - if (m) - Sn[g + 2] |= 2; + if (g) + Sn[m + 2] |= 2; else { if (O & 4) break; - Sn[g + 2] |= 4; + Sn[m + 2] |= 4; } } } } } -function DQ(t, e, n, r) { +function R2(t, e, n, r) { for (let i = 0, s = r; i <= n.length; i++) { let o = i ? n[i - 1].to : t, l = i < n.length ? n[i].from : e; for (let a = o; a < l; ) { @@ -5575,22 +5575,22 @@ function DQ(t, e, n, r) { else break; let u = s == 1, f = (h < e ? be[h] : r) == 1, d = u == f ? u ? 1 : 2 : r; - for (let p = h, m = i, g = m ? n[m - 1].to : t; p > a; ) - p == g && (p = n[--m].from, g = m ? n[m - 1].to : t), be[--p] = d; + for (let p = h, g = i, m = g ? n[g - 1].to : t; p > a; ) + p == m && (p = n[--g].from, m = g ? n[g - 1].to : t), be[--p] = d; a = h; } else s = c, a++; } } } -function Nd(t, e, n, r, i, s, o) { +function qd(t, e, n, r, i, s, o) { let l = r % 2 ? 2 : 1; if (r % 2 == i % 2) for (let a = e, c = 0; a < n; ) { let h = !0, u = !1; if (c == s.length || a < s[c].from) { - let m = be[a]; - m != l && (h = !1, u = m == 16); + let g = be[a]; + g != l && (h = !1, u = g == 16); } let f = !h && l == 1 ? [] : null, d = h ? r : r + 1, p = a; e: @@ -5598,40 +5598,40 @@ function Nd(t, e, n, r, i, s, o) { if (c < s.length && p == s[c].from) { if (u) break e; - let m = s[c]; + let g = s[c]; if (!h) - for (let g = m.to, O = c + 1; ; ) { - if (g == n) + for (let m = g.to, O = c + 1; ; ) { + if (m == n) break e; - if (O < s.length && s[O].from == g) - g = s[O++].to; + if (O < s.length && s[O].from == m) + m = s[O++].to; else { - if (be[g] == l) + if (be[m] == l) break e; break; } } if (c++, f) - f.push(m); + f.push(g); else { - m.from > a && o.push(new Tr(a, m.from, d)); - let g = m.direction == tl != !(d % 2); - qd(t, g ? r + 1 : r, i, m.inner, m.from, m.to, o), a = m.to; + g.from > a && o.push(new Tr(a, g.from, d)); + let m = g.direction == el != !(d % 2); + Bd(t, m ? r + 1 : r, i, g.inner, g.from, g.to, o), a = g.to; } - p = m.to; + p = g.to; } else { if (p == n || (h ? be[p] != l : be[p] == l)) break; p++; } - f ? Nd(t, a, p, r + 1, i, f, o) : a < p && o.push(new Tr(a, p, d)), a = p; + f ? qd(t, a, p, r + 1, i, f, o) : a < p && o.push(new Tr(a, p, d)), a = p; } else for (let a = n, c = s.length; a > e; ) { let h = !0, u = !1; if (!c || a > s[c - 1].to) { - let m = be[a - 1]; - m != l && (h = !1, u = m == 16); + let g = be[a - 1]; + g != l && (h = !1, u = g == 16); } let f = !h && l == 1 ? [] : null, d = h ? r : r + 1, p = a; e: @@ -5639,55 +5639,55 @@ function Nd(t, e, n, r, i, s, o) { if (c && p == s[c - 1].to) { if (u) break e; - let m = s[--c]; + let g = s[--c]; if (!h) - for (let g = m.from, O = c; ; ) { - if (g == e) + for (let m = g.from, O = c; ; ) { + if (m == e) break e; - if (O && s[O - 1].to == g) - g = s[--O].from; + if (O && s[O - 1].to == m) + m = s[--O].from; else { - if (be[g - 1] == l) + if (be[m - 1] == l) break e; break; } } if (f) - f.push(m); + f.push(g); else { - m.to < a && o.push(new Tr(m.to, a, d)); - let g = m.direction == tl != !(d % 2); - qd(t, g ? r + 1 : r, i, m.inner, m.from, m.to, o), a = m.from; + g.to < a && o.push(new Tr(g.to, a, d)); + let m = g.direction == el != !(d % 2); + Bd(t, m ? r + 1 : r, i, g.inner, g.from, g.to, o), a = g.from; } - p = m.from; + p = g.from; } else { if (p == e || (h ? be[p - 1] != l : be[p - 1] == l)) break; p--; } - f ? Nd(t, p, a, r + 1, i, f, o) : p < a && o.push(new Tr(p, a, d)), a = p; + f ? qd(t, p, a, r + 1, i, f, o) : p < a && o.push(new Tr(p, a, d)), a = p; } } -function qd(t, e, n, r, i, s, o) { +function Bd(t, e, n, r, i, s, o) { let l = e % 2 ? 2 : 1; - QQ(t, i, s, r, l), EQ(t, i, s, r, l), DQ(i, s, r, l), Nd(t, i, s, e, n, r, o); + E2(t, i, s, r, l), D2(t, i, s, r, l), R2(i, s, r, l), qd(t, i, s, e, n, r, o); } -function RQ(t, e, n) { +function M2(t, e, n) { if (!t) - return [new Tr(0, 0, e == lx ? 1 : 0)]; - if (e == tl && !n.length && !TQ.test(t)) - return hx(t.length); + return [new Tr(0, 0, e == ax ? 1 : 0)]; + if (e == el && !n.length && !Q2.test(t)) + return ux(t.length); if (n.length) for (; t.length > be.length; ) be[be.length] = 256; - let r = [], i = e == tl ? 0 : 1; - return qd(t, i, i, n, 0, t.length, r), r; + let r = [], i = e == el ? 0 : 1; + return Bd(t, i, i, n, 0, t.length, r), r; } -function hx(t) { +function ux(t) { return [new Tr(0, t, 0)]; } -let ux = ""; -function MQ(t, e, n, r, i) { +let fx = ""; +function Z2(t, e, n, r, i) { var s; let o = r.head - t.from, l = -1; if (o == 0) { @@ -5704,7 +5704,7 @@ function MQ(t, e, n, r, i) { let a = e[l]; o == a.side(i, n) && (a = e[l += i ? 1 : -1], o = a.side(!i, n)); let c = i == (a.dir == n), h = it(t.text, o, c); - if (ux = t.text.slice(Math.min(o, h), Math.max(o, h)), h > a.from && h < a.to) + if (fx = t.text.slice(Math.min(o, h), Math.max(o, h)), h > a.from && h < a.to) return C.cursor(h + t.from, c ? -1 : 1, a.level); let u = l == (i ? e.length - 1 : 0) ? null : e[l + (i ? 1 : -1)]; return !u && a.level != n ? C.cursor(i ? t.to : t.from, i ? -1 : 1, n) : u && u.level < a.level ? C.cursor(u.side(!i, n) + t.from, i ? 1 : -1, u.level) : C.cursor(h + t.from, i ? -1 : 1, a.level); @@ -5721,15 +5721,15 @@ class m0 extends $e { let r = e.changedRanges; this.minWidth > 0 && r.length && (r.every(({ fromA: c, toA: h }) => h < this.minWidthFrom || c > 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 && (!((n = this.domChanged) === null || n === void 0) && n.newSel ? i = this.domChanged.newSel.head : !YQ(e.changes, this.hasComposition) && !e.selectionSet && (i = e.state.selection.main.head)); - let s = i > -1 ? LQ(this.view, e.changes, i) : null; + this.view.inputState.composing >= 0 && (!((n = this.domChanged) === null || n === void 0) && n.newSel ? i = this.domChanged.newSel.head : !X2(e.changes, this.hasComposition) && !e.selectionSet && (i = e.state.selection.main.head)); + let s = i > -1 ? I2(this.view, e.changes, i) : null; if (this.domChanged = null, this.hasComposition) { this.markedForComposition.clear(); let { from: c, to: h } = this.hasComposition; r = new Ut(c, h, e.changes.mapPos(c, -1), e.changes.mapPos(h, 1)).addToSet(r.slice()); } this.hasComposition = s ? { from: s.range.fromB, to: s.range.toB } : null, (N.ie || N.chrome) && !s && e && e.state.doc.lines != e.startState.doc.lines && (this.forceSelection = !0); - let o = this.decorations, l = this.updateDeco(), a = qQ(o, l, e.changes); + let o = this.decorations, l = this.updateDeco(), a = B2(o, l, e.changes); return r = Ut.extendWithRanges(r, a), !(this.flags & 7) && r.length == 0 ? !1 : (this.updateInner(r, e.startState.doc.length, s), e.transactions.length && (this.lastUpdate = Date.now()), !0); } updateInner(e, n, r) { @@ -5743,7 +5743,7 @@ class m0 extends $e { let s = []; if (this.view.viewport.from || this.view.viewport.to < this.view.state.doc.length) for (let o of this.children) - o instanceof Dr && o.widget instanceof g0 && s.push(o.dom); + o instanceof Dr && o.widget instanceof O0 && s.push(o.dom); i.updateGaps(s); } updateChildren(e, n, r) { @@ -5752,16 +5752,16 @@ class m0 extends $e { let l = o >= 0 ? i[o] : null; if (!l) break; - let { fromA: a, toA: c, fromB: h, toB: u } = l, f, d, p, m; + let { fromA: a, toA: c, fromB: h, toB: u } = l, f, d, p, g; if (r && r.range.fromB < u && r.range.toB > h) { let w = Zo.build(this.view.state.doc, h, r.range.fromB, this.decorations, this.dynamicDecorationMap), S = Zo.build(this.view.state.doc, r.range.toB, u, this.decorations, this.dynamicDecorationMap); - d = w.breakAtStart, p = w.openStart, m = S.openEnd; + d = w.breakAtStart, p = w.openStart, g = S.openEnd; let x = this.compositionView(r); S.breakAtStart ? x.breakAfter = 1 : S.content.length && x.merge(x.length, x.length, S.content[0], !1, S.openStart, 0) && (x.breakAfter = S.content[0].breakAfter, S.content.shift()), w.content.length && x.merge(0, 0, w.content[w.content.length - 1], !0, 0, w.openEnd) && w.content.pop(), f = w.content.concat(x).concat(S.content); } else - ({ content: f, breakAtStart: d, openStart: p, openEnd: m } = Zo.build(this.view.state.doc, h, u, this.decorations, this.dynamicDecorationMap)); - let { i: g, off: O } = s.findPos(c, 1), { i: b, off: y } = s.findPos(a, -1); - Bk(this, b, y, g, O, f, d, p, m); + ({ content: f, breakAtStart: d, openStart: p, openEnd: g } = Zo.build(this.view.state.doc, h, u, this.decorations, this.dynamicDecorationMap)); + let { i: m, off: O } = s.findPos(c, 1), { i: b, off: y } = s.findPos(a, -1); + Yk(this, b, y, m, O, f, d, p, g); } r && this.fixCompositionDOM(r); } @@ -5791,20 +5791,20 @@ class m0 extends $e { let o = this.forceSelection; this.forceSelection = !1; let l = this.view.state.selection.main, a = this.moveToLine(this.domAtPos(l.anchor)), c = l.empty ? a : this.moveToLine(this.domAtPos(l.head)); - if (N.gecko && l.empty && !this.hasComposition && ZQ(a)) { + if (N.gecko && l.empty && !this.hasComposition && L2(a)) { let u = document.createTextNode(""); this.view.observer.ignore(() => a.node.insertBefore(u, a.node.childNodes[a.offset] || null)), a = c = new ut(u, 0), o = !0; } let h = this.view.observer.selectionRange; - (o || !h.focusNode || !Pc(a.node, a.offset, h.anchorNode, h.anchorOffset) || !Pc(c.node, c.offset, h.focusNode, h.focusOffset)) && (this.view.observer.ignore(() => { - N.android && N.chrome && this.dom.contains(h.focusNode) && BQ(h.focusNode, this.dom) && (this.dom.blur(), this.dom.focus({ preventScroll: !0 })); - let u = $c(this.view.root); + (o || !h.focusNode || !Tc(a.node, a.offset, h.anchorNode, h.anchorOffset) || !Tc(c.node, c.offset, h.focusNode, h.focusOffset)) && (this.view.observer.ignore(() => { + N.android && N.chrome && this.dom.contains(h.focusNode) && Y2(h.focusNode, this.dom) && (this.dom.blur(), this.dom.focus({ preventScroll: !0 })); + let u = Pc(this.view.root); if (u) if (l.empty) { if (N.gecko) { - let f = IQ(a.node, a.offset); + let f = N2(a.node, a.offset); if (f && f != 3) { - let d = dx(a.node, a.offset, f == 1 ? 1 : -1); + let d = px(a.node, a.offset, f == 1 ? 1 : -1); d && (a = new ut(d.node, d.offset)); } } @@ -5825,7 +5825,7 @@ class m0 extends $e { enforceCursorAssoc() { if (this.hasComposition) return; - let { view: e } = this, n = e.state.selection.main, r = $c(e.root), { anchorNode: i, anchorOffset: s } = e.observer.selectionRange; + let { view: e } = this, n = e.state.selection.main, r = Pc(e.root), { anchorNode: i, anchorOffset: s } = e.observer.selectionRange; if (!r || !n.empty || !n.assoc || !r.modify) return; let o = Ye.find(this, n.head); @@ -5927,9 +5927,9 @@ class m0 extends $e { if (c >= r) { let d = u.dom.getBoundingClientRect(); if (n.push(d.height), o) { - let p = u.dom.lastChild, m = p ? Ko(p) : []; - if (m.length) { - let g = m[m.length - 1], O = a ? g.right - d.left : d.right - g.left; + let p = u.dom.lastChild, g = p ? Ho(p) : []; + if (g.length) { + let m = g[g.length - 1], O = a ? m.right - d.left : d.right - m.left; O > l && (l = O, this.minWidth = s, this.minWidthFrom = c, this.minWidthTo = f); } } @@ -5952,13 +5952,13 @@ class m0 extends $e { let e = document.createElement("div"), n, r, i; return e.className = "cm-line", e.style.width = "99999px", e.style.position = "absolute", e.textContent = "abc def ghi jkl mno pqr stu", this.view.observer.ignore(() => { this.dom.appendChild(e); - let s = Ko(e.firstChild)[0]; + let s = Ho(e.firstChild)[0]; n = e.getBoundingClientRect().height, r = s ? s.width / 27 : 7, i = s ? s.height : n, e.remove(); }), { lineHeight: n, charWidth: r, textHeight: i }; } childCursor(e = this.length) { let n = this.children.length; - return n && (e -= this.children[--n].length), new qk(this.children, e, n); + return n && (e -= this.children[--n].length), new Bk(this.children, e, n); } computeBlockGapDeco() { let e = [], n = this.view.viewState; @@ -5967,7 +5967,7 @@ class m0 extends $e { if (o > r) { let l = (n.lineBlockAt(o).bottom - n.lineBlockAt(r).top) / this.view.scaleY; e.push(L.replace({ - widget: new g0(l), + widget: new O0(l), block: !0, inclusive: !0, isBlockGap: !0 @@ -5980,7 +5980,7 @@ class m0 extends $e { return L.set(e); } updateDeco() { - let e = this.view.state.facet(el).map((n, r) => (this.dynamicDecorationMap[r] = typeof n == "function") ? n(this.view) : n); + let e = this.view.state.facet(Jo).map((n, r) => (this.dynamicDecorationMap[r] = typeof n == "function") ? n(this.view) : n); for (let n = e.length; n < e.length + 3; n++) this.dynamicDecorationMap[n] = !1; return this.decorations = [ @@ -6004,19 +6004,19 @@ class m0 extends $e { right: Math.max(r.right, i.right), bottom: Math.max(r.bottom, i.bottom) }); - let s = ox(this.view), o = { + let s = lx(this.view), o = { left: r.left - s.left, top: r.top - s.top, right: r.right + s.right, bottom: r.bottom + s.bottom }, { offsetWidth: l, offsetHeight: a } = this.view.scrollDOM; - gQ(this.view.scrollDOM, o, n.head < n.anchor ? -1 : 1, e.x, e.y, Math.max(Math.min(e.xMargin, l), -l), Math.max(Math.min(e.yMargin, a), -a), this.view.textDirection == Qe.LTR); + O2(this.view.scrollDOM, o, n.head < n.anchor ? -1 : 1, e.x, e.y, Math.max(Math.min(e.xMargin, l), -l), Math.max(Math.min(e.yMargin, a), -a), this.view.textDirection == Qe.LTR); } } -function ZQ(t) { +function L2(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 g0 extends qt { +class O0 extends qt { constructor(e) { super(), this.height = e; } @@ -6034,15 +6034,15 @@ class g0 extends qt { return this.height; } } -function fx(t, e) { - let n = t.observer.selectionRange, r = n.focusNode && dx(n.focusNode, n.focusOffset, 0); +function dx(t, e) { + let n = t.observer.selectionRange, r = n.focusNode && px(n.focusNode, n.focusOffset, 0); if (!r) return null; let i = e - r.offset; return { from: i, to: i + r.node.nodeValue.length, node: r.node }; } -function LQ(t, e, n) { - let r = fx(t, n); +function I2(t, e, n) { + let r = dx(t, n); if (!r) return null; let { node: i, from: s, to: o } = r, l = i.nodeValue; @@ -6057,9 +6057,9 @@ function LQ(t, e, n) { if (f instanceof Ye || u.nodeName == "DIV" && u.parentNode == t.contentDOM) return { range: c, text: i, marks: h, line: u }; if (u != t.contentDOM) - h.push({ node: u, deco: new Ml({ + h.push({ node: u, deco: new Rl({ inclusive: !0, - attributes: SQ(u), + attributes: _2(u), tagName: u.tagName.toLowerCase() }) }); else @@ -6067,7 +6067,7 @@ function LQ(t, e, n) { } } } -function dx(t, e, n) { +function px(t, e, n) { if (n <= 0) for (let r = t, i = e; ; ) { if (r.nodeType == 3) @@ -6088,37 +6088,37 @@ function dx(t, e, n) { } return null; } -function IQ(t, e) { +function N2(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 NQ = class { +let q2 = class { constructor() { this.changes = []; } compareRange(e, n) { - Zd(e, n, this.changes); + Ld(e, n, this.changes); } comparePoint(e, n) { - Zd(e, n, this.changes); + Ld(e, n, this.changes); } }; -function qQ(t, e, n) { - let r = new NQ(); +function B2(t, e, n) { + let r = new q2(); return ie.compare(t, e, n, r), r.changes; } -function BQ(t, e) { +function Y2(t, e) { for (let n = t; n && n != e; n = n.assignedSlot || n.parentNode) if (n.nodeType == 1 && n.contentEditable == "false") return !0; return !1; } -function YQ(t, e) { +function X2(t, e) { let n = !1; return e && t.iterChangedRanges((r, i) => { r < e.to && i > e.from && (n = !0); }), n; } -function XQ(t, e, n = 1) { +function W2(t, e, n = 1) { let r = t.charCategorizer(e), i = t.doc.lineAt(e), s = e - i.from; if (i.length == 0) return C.cursor(e); @@ -6140,50 +6140,50 @@ function XQ(t, e, n = 1) { } return C.range(o + i.from, l + i.from); } -function WQ(t, e) { +function V2(t, e) { return e.left > t ? e.left - t : Math.max(0, t - e.right); } -function VQ(t, e) { +function j2(t, e) { return e.top > t ? e.top - t : Math.max(0, t - e.bottom); } function Iu(t, e) { return t.top < e.bottom - 1 && t.bottom > e.top + 1; } -function O0(t, e) { +function b0(t, e) { return e < t.top ? { top: e, left: t.left, right: t.right, bottom: t.bottom } : t; } -function b0(t, e) { +function y0(t, e) { return e > t.bottom ? { top: t.top, left: t.left, right: t.right, bottom: e } : t; } -function Bd(t, e, n) { +function Yd(t, e, n) { let r, i, s, o, l = !1, a, c, h, u; for (let p = t.firstChild; p; p = p.nextSibling) { - let m = Ko(p); - for (let g = 0; g < m.length; g++) { - let O = m[g]; - i && Iu(i, O) && (O = O0(b0(O, i.bottom), i.top)); - let b = WQ(e, O), y = VQ(n, O); + let g = Ho(p); + for (let m = 0; m < g.length; m++) { + let O = g[m]; + i && Iu(i, O) && (O = b0(y0(O, i.bottom), i.top)); + let b = V2(e, O), y = j2(n, O); if (b == 0 && y == 0) - return p.nodeType == 3 ? y0(p, e, n) : Bd(p, e, n); + return p.nodeType == 3 ? w0(p, e, n) : Yd(p, e, n); if (!r || o > y || o == y && s > b) { r = p, i = O, s = b, o = y; let w = y ? n < O.top ? -1 : 1 : b ? e < O.left ? -1 : 1 : 0; - l = !w || (w > 0 ? g < m.length - 1 : g > 0); + l = !w || (w > 0 ? m < g.length - 1 : m > 0); } - b == 0 ? n > O.bottom && (!h || h.bottom < O.bottom) ? (a = p, h = O) : n < O.top && (!u || u.top > O.top) && (c = p, u = O) : h && Iu(h, O) ? h = b0(h, O.bottom) : u && Iu(u, O) && (u = O0(u, O.top)); + b == 0 ? n > O.bottom && (!h || h.bottom < O.bottom) ? (a = p, h = O) : n < O.top && (!u || u.top > O.top) && (c = p, u = O) : h && Iu(h, O) ? h = y0(h, O.bottom) : u && Iu(u, O) && (u = b0(u, O.top)); } } if (h && h.bottom >= n ? (r = a, i = h) : u && u.top <= n && (r = c, i = u), !r) return { node: t, offset: 0 }; let f = Math.max(i.left, Math.min(i.right, e)); if (r.nodeType == 3) - return y0(r, f, n); + return w0(r, f, n); if (l && r.contentEditable != "false") - return Bd(r, f, n); + return Yd(r, f, n); let d = Array.prototype.indexOf.call(t.childNodes, r) + (e >= (i.left + i.right) / 2 ? 1 : 0); return { node: t, offset: d }; } -function y0(t, e, n) { +function w0(t, e, n) { let r = t.nodeValue.length, i = -1, s = 1e9, o = 0; for (let l = 0; l < r; l++) { let a = _i(t, l, l + 1).getClientRects(); @@ -6203,7 +6203,7 @@ function y0(t, e, n) { } return { node: t, offset: i > -1 ? i : o > 0 ? t.nodeValue.length : 0 }; } -function px(t, e, n, r = -1) { +function gx(t, e, n, r = -1) { var i, s; let o = t.contentDOM.getBoundingClientRect(), l = o.top + t.viewState.paddingTop, a, { docHeight: c } = t.viewState, { x: h, y: u } = e, f = u - l; if (f < 0) @@ -6219,26 +6219,26 @@ function px(t, e, n, r = -1) { u = l + f; let d = a.from; if (d < t.viewport.from) - return t.viewport.from == 0 ? 0 : n ? null : w0(t, o, a, h, u); + return t.viewport.from == 0 ? 0 : n ? null : k0(t, o, a, h, u); if (d > t.viewport.to) - return t.viewport.to == t.state.doc.length ? t.state.doc.length : n ? null : w0(t, o, a, h, u); - let p = t.dom.ownerDocument, m = t.root.elementFromPoint ? t.root : p, g = m.elementFromPoint(h, u); - g && !t.contentDOM.contains(g) && (g = null), g || (h = Math.max(o.left + 1, Math.min(o.right - 1, h)), g = m.elementFromPoint(h, u), g && !t.contentDOM.contains(g) && (g = null)); + return t.viewport.to == t.state.doc.length ? t.state.doc.length : n ? null : k0(t, o, a, h, u); + let p = t.dom.ownerDocument, g = t.root.elementFromPoint ? t.root : p, m = g.elementFromPoint(h, u); + m && !t.contentDOM.contains(m) && (m = null), m || (h = Math.max(o.left + 1, Math.min(o.right - 1, h)), m = g.elementFromPoint(h, u), m && !t.contentDOM.contains(m) && (m = null)); let O, b = -1; - if (g && ((i = t.docView.nearest(g)) === null || i === void 0 ? void 0 : i.isEditable) != !1) { + if (m && ((i = t.docView.nearest(m)) === null || i === void 0 ? void 0 : i.isEditable) != !1) { if (p.caretPositionFromPoint) { let w = p.caretPositionFromPoint(h, u); w && ({ offsetNode: O, offset: b } = w); } else if (p.caretRangeFromPoint) { let w = p.caretRangeFromPoint(h, u); - w && ({ startContainer: O, startOffset: b } = w, (!t.contentDOM.contains(O) || N.safari && jQ(O, b, h) || N.chrome && zQ(O, b, h)) && (O = void 0)); + w && ({ startContainer: O, startOffset: b } = w, (!t.contentDOM.contains(O) || N.safari && z2(O, b, h) || N.chrome && F2(O, b, h)) && (O = void 0)); } } if (!O || !t.docView.dom.contains(O)) { let w = Ye.find(t.docView, d); if (!w) return f > a.top + a.height / 2 ? a.to : a.from; - ({ node: O, offset: b } = Bd(w.dom, h, u)); + ({ node: O, offset: b } = Yd(w.dom, h, u)); } let y = t.docView.nearest(O); if (!y) @@ -6249,16 +6249,16 @@ function px(t, e, n, r = -1) { } else return y.localPosFromDOM(O, b) + y.posAtStart; } -function w0(t, e, n, r, i) { +function k0(t, e, n, r, i) { let s = Math.round((r - e.left) * t.defaultCharacterWidth); if (t.lineWrapping && n.height > t.defaultLineHeight * 1.5) { let l = t.viewState.heightOracle.textHeight, a = Math.floor((i - n.top - (t.defaultLineHeight - l) * 0.5) / l); s += a * t.viewState.heightOracle.lineLength; } let o = t.state.sliceDoc(n.from, n.to); - return n.from + Ad(o, s, t.state.tabSize); + return n.from + $d(o, s, t.state.tabSize); } -function jQ(t, e, n) { +function z2(t, e, n) { let r; if (t.nodeType != 3 || e != (r = t.nodeValue.length)) return !1; @@ -6267,7 +6267,7 @@ function jQ(t, e, n) { return !1; return _i(t, r - 1, r).getBoundingClientRect().left > n; } -function zQ(t, e, n) { +function F2(t, e, n) { if (e != 0) return !1; for (let i = t; ; ) { @@ -6281,7 +6281,7 @@ function zQ(t, e, n) { let r = t.nodeType == 1 ? t.getBoundingClientRect() : _i(t, 0, Math.max(t.nodeValue.length, 1)).getBoundingClientRect(); return n - r.left > 5; } -function Yd(t, e) { +function Xd(t, e) { let n = t.lineBlockAt(e); if (Array.isArray(n.type)) { for (let r of n.type) @@ -6290,8 +6290,8 @@ function Yd(t, e) { } return n; } -function FQ(t, e, n, r) { - let i = Yd(t, e.head), s = !r || i.type != bt.Text || !(t.lineWrapping || i.widgetLineBreaks) ? null : t.coordsAtPos(e.assoc < 0 && e.head > i.from ? e.head - 1 : e.head); +function U2(t, e, n, r) { + let i = Xd(t, e.head), s = !r || i.type != bt.Text || !(t.lineWrapping || i.widgetLineBreaks) ? null : t.coordsAtPos(e.assoc < 0 && e.head > i.from ? e.head - 1 : e.head); if (s) { let o = t.dom.getBoundingClientRect(), l = t.textDirectionAt(i.from), a = t.posAtCoords({ x: n == (l == Qe.LTR) ? o.right - 1 : o.left + 1, @@ -6302,10 +6302,10 @@ function FQ(t, e, n, r) { } return C.cursor(n ? i.to : i.from, n ? -1 : 1); } -function k0(t, e, n, r) { +function x0(t, e, n, r) { let i = t.state.doc.lineAt(e.head), s = t.bidiSpans(i), o = t.textDirectionAt(i.from); for (let l = e, a = null; ; ) { - let c = MQ(i, s, o, l, n), h = ux; + let c = Z2(i, s, o, l, n), h = fx; if (!c) { if (i.number == (n ? t.state.doc.lines : 1)) return l; @@ -6323,14 +6323,14 @@ function k0(t, e, n, r) { l = c; } } -function UQ(t, e, n) { +function G2(t, e, n) { let r = t.state.charCategorizer(e), i = r(n); return (s) => { let o = r(s); return i == Pe.Space && (i = o), i == o; }; } -function GQ(t, e, n, r) { +function H2(t, e, n, r) { let i = e.head, s = n ? 1 : -1; if (i == (n ? t.state.doc.length : 0)) return C.cursor(i, e.assoc); @@ -6343,10 +6343,10 @@ function GQ(t, e, n, r) { } let u = a.left + o, f = r != null ? r : t.viewState.heightOracle.textHeight >> 1; for (let d = 0; ; d += 10) { - let p = l + (f + d) * s, m = px(t, { x: u, y: p }, !1, s); - if (p < a.top || p > a.bottom || (s < 0 ? m < i : m > i)) { - let g = t.docView.coordsForChar(m), O = !g || p < g.top ? -1 : 1; - return C.cursor(m, O, void 0, o); + let p = l + (f + d) * s, g = gx(t, { x: u, y: p }, !1, s); + if (p < a.top || p > a.bottom || (s < 0 ? g < i : g > i)) { + let m = t.docView.coordsForChar(g), O = !m || p < m.top ? -1 : 1; + return C.cursor(g, O, void 0, o); } } } @@ -6365,18 +6365,18 @@ function oc(t, e, n) { } } function Nu(t, e, n) { - let r = oc(t.state.facet(wm).map((i) => i(t)), n.from, e.head > n.from ? -1 : 1); + let r = oc(t.state.facet(kg).map((i) => i(t)), n.from, e.head > n.from ? -1 : 1); return r == n.from ? n : C.cursor(r, r < n.from ? 1 : -1); } -class HQ { +class K2 { 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, N.safari && e.contentDOM.addEventListener("input", () => null), N.gecko && d2(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, N.safari && e.contentDOM.addEventListener("input", () => null), N.gecko && pQ(e.contentDOM.ownerDocument); } handleEvent(e) { - !s2(this.view, e) || this.ignoreDuringComposition(e) || e.type == "keydown" && this.keydown(e) || this.runHandlers(e.type, e); + !oQ(this.view, e) || this.ignoreDuringComposition(e) || e.type == "keydown" && this.keydown(e) || this.runHandlers(e.type, e); } runHandlers(e, n) { let r = this.handlers[e]; @@ -6394,7 +6394,7 @@ class HQ { } } ensureHandlers(e) { - let n = KQ(e), r = this.handlers, i = this.view.contentDOM; + let n = J2(e), r = this.handlers, i = this.view.contentDOM; for (let s in n) if (s != "scroll") { let o = !n[s].handlers.length, l = r[s]; @@ -6407,10 +6407,10 @@ class HQ { 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 && gx.indexOf(e.keyCode) < 0 && (this.view.inputState.lastEscPress = 0), N.android && N.chrome && !e.synthetic && (e.keyCode == 13 || e.keyCode == 8)) + if (e.keyCode != 27 && Ox.indexOf(e.keyCode) < 0 && (this.view.inputState.lastEscPress = 0), N.android && N.chrome && !e.synthetic && (e.keyCode == 13 || e.keyCode == 8)) return this.view.observer.delayAndroidKey(e.key, e.keyCode), !0; let n; - return N.ios && !e.synthetic && !e.altKey && !e.metaKey && ((n = mx.find((r) => r.keyCode == e.keyCode)) && !e.ctrlKey || JQ.indexOf(e.key) > -1 && e.ctrlKey && !e.shiftKey) ? (this.pendingIOSKey = n || e, setTimeout(() => this.flushIOSKey(), 250), !0) : (e.keyCode != 229 && this.view.observer.forceFlush(), !1); + return N.ios && !e.synthetic && !e.altKey && !e.metaKey && ((n = mx.find((r) => r.keyCode == e.keyCode)) && !e.ctrlKey || eQ.indexOf(e.key) > -1 && e.ctrlKey && !e.shiftKey) ? (this.pendingIOSKey = n || e, setTimeout(() => this.flushIOSKey(), 250), !0) : (e.keyCode != 229 && this.view.observer.forceFlush(), !1); } flushIOSKey() { let e = this.pendingIOSKey; @@ -6429,7 +6429,7 @@ class HQ { this.mouseSelection && this.mouseSelection.destroy(); } } -function x0(t, e) { +function v0(t, e) { return (n, r) => { try { return e.call(t, r, n); @@ -6438,7 +6438,7 @@ function x0(t, e) { } }; } -function KQ(t) { +function J2(t) { let e = /* @__PURE__ */ Object.create(null); function n(r) { return e[r] || (e[r] = { observers: [], handlers: [] }); @@ -6448,18 +6448,18 @@ function KQ(t) { if (i && i.domEventHandlers) for (let s in i.domEventHandlers) { let o = i.domEventHandlers[s]; - o && n(s).handlers.push(x0(r.value, o)); + o && n(s).handlers.push(v0(r.value, o)); } if (i && i.domEventObservers) for (let s in i.domEventObservers) { let o = i.domEventObservers[s]; - o && n(s).observers.push(x0(r.value, o)); + o && n(s).observers.push(v0(r.value, o)); } } for (let r in pn) n(r).handlers.push(pn[r]); - for (let r in mn) - n(r).observers.push(mn[r]); + for (let r in gn) + n(r).observers.push(gn[r]); return e; } const mx = [ @@ -6467,18 +6467,18 @@ const mx = [ { key: "Enter", keyCode: 13, inputType: "insertParagraph" }, { key: "Enter", keyCode: 13, inputType: "insertLineBreak" }, { key: "Delete", keyCode: 46, inputType: "deleteContentForward" } -], JQ = "dthko", gx = [16, 17, 18, 20, 91, 92, 224, 225], pa = 6; -function ma(t) { +], eQ = "dthko", Ox = [16, 17, 18, 20, 91, 92, 224, 225], pa = 6; +function ga(t) { return Math.max(0, t) * 0.7 + 8; } -function e2(t, e) { +function tQ(t, e) { return Math.max(Math.abs(t.clientX - e.clientX), Math.abs(t.clientY - e.clientY)); } -class t2 { +class nQ { constructor(e, n, r, i) { - this.view = e, this.startEvent = n, this.style = r, this.mustSelect = i, this.scrollSpeed = { x: 0, y: 0 }, this.scrolling = -1, this.lastEvent = n, this.scrollParent = OQ(e.contentDOM), this.atoms = e.state.facet(wm).map((o) => o(e)); + this.view = e, this.startEvent = n, this.style = r, this.mustSelect = i, this.scrollSpeed = { x: 0, y: 0 }, this.scrolling = -1, this.lastEvent = n, this.scrollParent = b2(e.contentDOM), this.atoms = e.state.facet(kg).map((o) => o(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 = n.shiftKey, this.multiple = e.state.facet(ne.allowMultipleSelections) && n2(e, n), this.dragging = i2(e, n) && wx(n) == 1 ? null : !1; + s.addEventListener("mousemove", this.move = this.move.bind(this)), s.addEventListener("mouseup", this.up = this.up.bind(this)), this.extend = n.shiftKey, this.multiple = e.state.facet(ne.allowMultipleSelections) && rQ(e, n), this.dragging = sQ(e, n) && kx(n) == 1 ? null : !1; } start(e) { this.dragging === !1 && this.select(e); @@ -6487,11 +6487,11 @@ class t2 { var n; if (e.buttons == 0) return this.destroy(); - if (this.dragging || this.dragging == null && e2(this.startEvent, e) < 10) + if (this.dragging || this.dragging == null && tQ(this.startEvent, e) < 10) return; this.select(this.lastEvent = e); - let r = 0, i = 0, s = ((n = this.scrollParent) === null || n === void 0 ? void 0 : n.getBoundingClientRect()) || { left: 0, top: 0, right: this.view.win.innerWidth, bottom: this.view.win.innerHeight }, o = ox(this.view); - e.clientX - o.left <= s.left + pa ? r = -ma(s.left - e.clientX) : e.clientX + o.right >= s.right - pa && (r = ma(e.clientX - s.right)), e.clientY - o.top <= s.top + pa ? i = -ma(s.top - e.clientY) : e.clientY + o.bottom >= s.bottom - pa && (i = ma(e.clientY - s.bottom)), this.setScrollSpeed(r, i); + let r = 0, i = 0, s = ((n = this.scrollParent) === null || n === void 0 ? void 0 : n.getBoundingClientRect()) || { left: 0, top: 0, right: this.view.win.innerWidth, bottom: this.view.win.innerHeight }, o = lx(this.view); + e.clientX - o.left <= s.left + pa ? r = -ga(s.left - e.clientX) : e.clientX + o.right >= s.right - pa && (r = ga(e.clientX - s.right)), e.clientY - o.top <= s.top + pa ? i = -ga(s.top - e.clientY) : e.clientY + o.bottom >= s.bottom - pa && (i = ga(e.clientY - s.bottom)), this.setScrollSpeed(r, i); } up(e) { this.dragging == null && this.select(this.lastEvent), this.dragging || e.preventDefault(), this.destroy(); @@ -6533,19 +6533,19 @@ class t2 { this.style.update(e) && setTimeout(() => this.select(this.lastEvent), 20); } } -function n2(t, e) { - let n = t.state.facet(Uk); +function rQ(t, e) { + let n = t.state.facet(Gk); return n.length ? n[0](e) : N.mac ? e.metaKey : e.ctrlKey; } -function r2(t, e) { - let n = t.state.facet(Gk); +function iQ(t, e) { + let n = t.state.facet(Hk); return n.length ? n[0](e) : N.mac ? !e.altKey : !e.ctrlKey; } -function i2(t, e) { +function sQ(t, e) { let { main: n } = t.state.selection; if (n.empty) return !1; - let r = $c(t.root); + let r = Pc(t.root); if (!r || r.rangeCount == 0) return !0; let i = r.getRangeAt(0).getClientRects(); @@ -6556,7 +6556,7 @@ function i2(t, e) { } return !1; } -function s2(t, e) { +function oQ(t, e) { if (!e.bubbles) return !0; if (e.defaultPrevented) @@ -6566,19 +6566,19 @@ function s2(t, e) { return !1; return !0; } -const pn = /* @__PURE__ */ Object.create(null), mn = /* @__PURE__ */ Object.create(null), Ox = N.ie && N.ie_version < 15 || N.ios && N.webkit_version < 604; -function o2(t) { +const pn = /* @__PURE__ */ Object.create(null), gn = /* @__PURE__ */ Object.create(null), bx = N.ie && N.ie_version < 15 || N.ios && N.webkit_version < 604; +function lQ(t) { let e = t.dom.parentNode; if (!e) return; let n = e.appendChild(document.createElement("textarea")); n.style.cssText = "position: fixed; left: -10000px; top: 10px", n.focus(), setTimeout(() => { - t.focus(), n.remove(), bx(t, n.value); + t.focus(), n.remove(), yx(t, n.value); }, 50); } -function bx(t, e) { +function yx(t, e) { let { state: n } = t, r, i = 1, s = n.toText(e), o = s.lines == n.selection.ranges.length; - if (Xd != null && n.selection.ranges.every((a) => a.empty) && Xd == s.toString()) { + if (Wd != null && n.selection.ranges.every((a) => a.empty) && Wd == s.toString()) { let a = -1; r = n.changeByRange((c) => { let h = n.doc.lineAt(c.from); @@ -6604,44 +6604,44 @@ function bx(t, e) { scrollIntoView: !0 }); } -mn.scroll = (t) => { +gn.scroll = (t) => { t.inputState.lastScrollTop = t.scrollDOM.scrollTop, t.inputState.lastScrollLeft = t.scrollDOM.scrollLeft; }; pn.keydown = (t, e) => (t.inputState.setSelectionOrigin("select"), e.keyCode == 27 && (t.inputState.lastEscPress = Date.now()), !1); -mn.touchstart = (t, e) => { +gn.touchstart = (t, e) => { t.inputState.lastTouchTime = Date.now(), t.inputState.setSelectionOrigin("select.pointer"); }; -mn.touchmove = (t) => { +gn.touchmove = (t) => { t.inputState.setSelectionOrigin("select.pointer"); }; pn.mousedown = (t, e) => { if (t.observer.flush(), t.inputState.lastTouchTime > Date.now() - 2e3) return !1; let n = null; - for (let r of t.state.facet(Hk)) + for (let r of t.state.facet(Kk)) if (n = r(t, e), n) break; - if (!n && e.button == 0 && (n = c2(t, e)), n) { + if (!n && e.button == 0 && (n = hQ(t, e)), n) { let r = !t.hasFocus; - t.inputState.startMouseSelection(new t2(t, e, n, r)), r && t.observer.ignore(() => Lk(t.contentDOM)); + t.inputState.startMouseSelection(new nQ(t, e, n, r)), r && t.observer.ignore(() => Ik(t.contentDOM)); let i = t.inputState.mouseSelection; if (i) return i.start(e), i.dragging === !1; } return !1; }; -function v0(t, e, n, r) { +function S0(t, e, n, r) { if (r == 1) return C.cursor(e, n); if (r == 2) - return XQ(t.state, e, n); + return W2(t.state, e, n); { let i = Ye.find(t.docView, e), s = t.state.doc.lineAt(i ? i.posAtEnd : e), o = i ? i.posAtStart : s.from, l = i ? i.posAtEnd : s.to; return l < t.state.doc.length && l == s.to && l++, C.range(o, l); } } -let yx = (t, e) => t >= e.top && t <= e.bottom, S0 = (t, e, n) => yx(e, n) && t >= n.left && t <= n.right; -function l2(t, e, n, r) { +let wx = (t, e) => t >= e.top && t <= e.bottom, _0 = (t, e, n) => wx(e, n) && t >= n.left && t <= n.right; +function aQ(t, e, n, r) { let i = Ye.find(t.docView, e); if (!i) return 1; @@ -6651,40 +6651,40 @@ function l2(t, e, n, r) { if (s == i.length) return -1; let o = i.coordsAt(s, -1); - if (o && S0(n, r, o)) + if (o && _0(n, r, o)) return -1; let l = i.coordsAt(s, 1); - return l && S0(n, r, l) ? 1 : o && yx(r, o) ? -1 : 1; + return l && _0(n, r, l) ? 1 : o && wx(r, o) ? -1 : 1; } -function _0(t, e) { +function C0(t, e) { let n = t.posAtCoords({ x: e.clientX, y: e.clientY }, !1); - return { pos: n, bias: l2(t, n, e.clientX, e.clientY) }; + return { pos: n, bias: aQ(t, n, e.clientX, e.clientY) }; } -const a2 = N.ie && N.ie_version <= 11; -let C0 = null, A0 = 0, $0 = 0; -function wx(t) { - if (!a2) +const cQ = N.ie && N.ie_version <= 11; +let A0 = null, $0 = 0, P0 = 0; +function kx(t) { + if (!cQ) return t.detail; - let e = C0, n = $0; - return C0 = t, $0 = Date.now(), A0 = !e || n > Date.now() - 400 && Math.abs(e.clientX - t.clientX) < 2 && Math.abs(e.clientY - t.clientY) < 2 ? (A0 + 1) % 3 : 1; + let e = A0, n = P0; + return A0 = t, P0 = Date.now(), $0 = !e || n > Date.now() - 400 && Math.abs(e.clientX - t.clientX) < 2 && Math.abs(e.clientY - t.clientY) < 2 ? ($0 + 1) % 3 : 1; } -function c2(t, e) { - let n = _0(t, e), r = wx(e), i = t.state.selection; +function hQ(t, e) { + let n = C0(t, e), r = kx(e), i = t.state.selection; return { update(s) { s.docChanged && (n.pos = s.changes.mapPos(n.pos), i = i.map(s.changes)); }, get(s, o, l) { - let a = _0(t, s), c, h = v0(t, a.pos, a.bias, r); + let a = C0(t, s), c, h = S0(t, a.pos, a.bias, r); if (n.pos != a.pos && !o) { - let u = v0(t, n.pos, n.bias, r), f = Math.min(u.from, h.from), d = Math.max(u.to, h.to); + let u = S0(t, n.pos, n.bias, r), f = Math.min(u.from, h.from), d = Math.max(u.to, h.to); h = f < h.from ? C.range(f, d) : C.range(d, f); } - return o ? i.replaceRange(i.main.extend(h.from, h.to)) : l && r == 1 && i.ranges.length > 1 && (c = h2(i, a.pos)) ? c : l ? i.addRange(h) : C.create([h]); + return o ? i.replaceRange(i.main.extend(h.from, h.to)) : l && r == 1 && i.ranges.length > 1 && (c = uQ(i, a.pos)) ? c : l ? i.addRange(h) : C.create([h]); } }; } -function h2(t, e) { +function uQ(t, e) { for (let n = 0; n < t.ranges.length; n++) { let { from: r, to: i } = t.ranges[n]; if (r <= e && i >= e) @@ -6705,10 +6705,10 @@ pn.dragstart = (t, e) => { return r.mouseSelection && (r.mouseSelection.dragging = !0), r.draggedContent = n, e.dataTransfer && (e.dataTransfer.setData("Text", t.state.sliceDoc(n.from, n.to)), e.dataTransfer.effectAllowed = "copyMove"), !1; }; pn.dragend = (t) => (t.inputState.draggedContent = null, !1); -function P0(t, e, n, r) { +function T0(t, e, n, r) { if (!n) return; - let i = t.posAtCoords({ x: e.clientX, y: e.clientY }, !1), { draggedContent: s } = t.inputState, o = r && s && r2(t, e) ? { from: s.from, to: s.to } : null, l = { from: i, insert: n }, a = t.state.changes(o ? [o, l] : l); + let i = t.posAtCoords({ x: e.clientX, y: e.clientY }, !1), { draggedContent: s } = t.inputState, o = r && s && iQ(t, e) ? { from: s.from, to: s.to } : null, l = { from: i, insert: n }, a = t.state.changes(o ? [o, l] : l); t.focus(), t.dispatch({ changes: a, selection: { anchor: a.mapPos(i, -1), head: a.mapPos(i, 1) }, @@ -6723,7 +6723,7 @@ pn.drop = (t, e) => { let n = e.dataTransfer.files; if (n && n.length) { let r = Array(n.length), i = 0, s = () => { - ++i == n.length && P0(t, e, r.filter((o) => o != null).join(t.state.lineBreak), !1); + ++i == n.length && T0(t, e, r.filter((o) => o != null).join(t.state.lineBreak), !1); }; for (let o = 0; o < n.length; o++) { let l = new FileReader(); @@ -6735,7 +6735,7 @@ pn.drop = (t, e) => { } else { let r = e.dataTransfer.getData("Text"); if (r) - return P0(t, e, r, !0), !0; + return T0(t, e, r, !0), !0; } return !1; }; @@ -6743,10 +6743,10 @@ pn.paste = (t, e) => { if (t.state.readOnly) return !0; t.observer.flush(); - let n = Ox ? null : e.clipboardData; - return n ? (bx(t, n.getData("text/plain") || n.getData("text/uri-text")), !0) : (o2(t), !1); + let n = bx ? null : e.clipboardData; + return n ? (yx(t, n.getData("text/plain") || n.getData("text/uri-text")), !0) : (lQ(t), !1); }; -function u2(t, e) { +function fQ(t, e) { let n = t.dom.parentNode; if (!n) return; @@ -6755,7 +6755,7 @@ function u2(t, e) { r.remove(), t.focus(); }, 50); } -function f2(t) { +function dQ(t) { let e = [], n = [], r = !1; for (let i of t.selection.ranges) i.empty || (e.push(t.sliceDoc(i.from, i.to)), n.push(i)); @@ -6769,52 +6769,52 @@ function f2(t) { } return { text: e.join(t.lineBreak), ranges: n, linewise: r }; } -let Xd = null; +let Wd = null; pn.copy = pn.cut = (t, e) => { - let { text: n, ranges: r, linewise: i } = f2(t.state); + let { text: n, ranges: r, linewise: i } = dQ(t.state); if (!n && !i) return !1; - Xd = i ? n : null, e.type == "cut" && !t.state.readOnly && t.dispatch({ + Wd = i ? n : null, e.type == "cut" && !t.state.readOnly && t.dispatch({ changes: r, scrollIntoView: !0, userEvent: "delete.cut" }); - let s = Ox ? null : e.clipboardData; - return s ? (s.clearData(), s.setData("text/plain", n), !0) : (u2(t, n), !1); + let s = bx ? null : e.clipboardData; + return s ? (s.clearData(), s.setData("text/plain", n), !0) : (fQ(t, n), !1); }; -const kx = /* @__PURE__ */ yn.define(); -function xx(t, e) { +const xx = /* @__PURE__ */ yn.define(); +function vx(t, e) { let n = []; - for (let r of t.facet(ex)) { + for (let r of t.facet(tx)) { let i = r(t, e); i && n.push(i); } - return n ? t.update({ effects: n, annotations: kx.of(!0) }) : null; + return n ? t.update({ effects: n, annotations: xx.of(!0) }) : null; } -function vx(t) { +function Sx(t) { setTimeout(() => { let e = t.hasFocus; if (e != t.inputState.notifiedFocused) { - let n = xx(t.state, e); + let n = vx(t.state, e); n ? t.dispatch(n) : t.update([]); } }, 10); } -mn.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), vx(t); +gn.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), Sx(t); }; -mn.blur = (t) => { - t.observer.clearSelectionRange(), vx(t); +gn.blur = (t) => { + t.observer.clearSelectionRange(), Sx(t); }; -mn.compositionstart = mn.compositionupdate = (t) => { +gn.compositionstart = gn.compositionupdate = (t) => { t.inputState.compositionFirstChange == null && (t.inputState.compositionFirstChange = !0), t.inputState.composing < 0 && (t.inputState.composing = 0); }; -mn.compositionend = (t) => { +gn.compositionend = (t) => { t.inputState.composing = -1, t.inputState.compositionEndedAt = Date.now(), t.inputState.compositionPendingKey = !0, t.inputState.compositionPendingChange = t.observer.pendingRecords().length > 0, t.inputState.compositionFirstChange = null, N.chrome && N.android ? t.observer.flushSoon() : t.inputState.compositionPendingChange ? Promise.resolve().then(() => t.observer.flush()) : setTimeout(() => { t.inputState.composing < 0 && t.docView.hasComposition && t.update([]); }, 50); }; -mn.contextmenu = (t) => { +gn.contextmenu = (t) => { t.inputState.lastContextMenu = Date.now(); }; pn.beforeinput = (t, e) => { @@ -6829,14 +6829,14 @@ pn.beforeinput = (t, e) => { } return !1; }; -const T0 = /* @__PURE__ */ new Set(); -function d2(t) { - T0.has(t) || (T0.add(t), t.addEventListener("copy", () => { +const Q0 = /* @__PURE__ */ new Set(); +function pQ(t) { + Q0.has(t) || (Q0.add(t), t.addEventListener("copy", () => { }), t.addEventListener("cut", () => { })); } -const Q0 = ["pre-wrap", "normal", "pre-line", "break-spaces"]; -class p2 { +const E0 = ["pre-wrap", "normal", "pre-line", "break-spaces"]; +class gQ { constructor(e) { this.lineWrapping = e, this.doc = se.empty, this.heightSamples = {}, this.lineHeight = 14, this.charWidth = 7, this.textHeight = 14, this.lineLength = 30, this.heightChanged = !1; } @@ -6851,7 +6851,7 @@ class p2 { return this.doc = e, this; } mustRefreshForWrapping(e) { - return Q0.indexOf(e) > -1 != this.lineWrapping; + return E0.indexOf(e) > -1 != this.lineWrapping; } mustRefreshForHeights(e) { let n = !1; @@ -6862,7 +6862,7 @@ class p2 { return n; } refresh(e, n, r, i, s, o) { - let l = Q0.indexOf(e) > -1, a = Math.round(n) != Math.round(this.lineHeight) || this.lineWrapping != l; + let l = E0.indexOf(e) > -1, a = Math.round(n) != Math.round(this.lineHeight) || this.lineWrapping != l; if (this.lineWrapping = l, this.lineHeight = n, this.charWidth = r, this.textHeight = i, this.lineLength = s, a) { this.heightSamples = {}; for (let c = 0; c < o.length; c++) { @@ -6873,7 +6873,7 @@ class p2 { return a; } } -class m2 { +class mQ { constructor(e, n) { this.from = e, this.heights = n, this.index = 0; } @@ -6938,7 +6938,7 @@ class yt { for (u += d.to - c, c = d.to; l > 0 && f.from <= i[l - 1].toA; ) a = i[l - 1].fromA, h = i[l - 1].fromB, l--, a < f.from && (f = s.lineAt(a, Ce.ByPosNoHeight, r, 0, 0)); h += f.from - a, a = f.from; - let p = km.build(r.setDoc(o), e, h, u); + let p = xg.build(r.setDoc(o), e, h, u); s = s.replace(a, c, p); } return s.updateHeight(r, 0); @@ -6968,11 +6968,11 @@ class yt { l && (s += l.size); } let o = 0; - return e[n - 1] == null ? (o = 1, n--) : e[n] == null && (o = 1, r++), new g2(yt.of(e.slice(0, n)), o, yt.of(e.slice(r))); + return e[n - 1] == null ? (o = 1, n--) : e[n] == null && (o = 1, r++), new OQ(yt.of(e.slice(0, n)), o, yt.of(e.slice(r))); } } yt.prototype.size = 1; -class Sx extends yt { +class _x extends yt { constructor(e, n, r) { super(e, n), this.deco = r; } @@ -6992,7 +6992,7 @@ class Sx extends yt { return `block(${this.length})`; } } -class Mt extends Sx { +class Mt extends _x { constructor(e, n) { super(e, n, null), this.collapsed = 0, this.widgetHeight = 0, this.breaks = 0; } @@ -7097,7 +7097,7 @@ class Je extends yt { return `gap(${this.length})`; } } -class g2 extends yt { +class OQ extends yt { constructor(e, n, r) { super(e.length + n + r.length, e.height + r.height, n | (e.outdated || r.outdated ? 2 : 0)), this.left = e, this.right = r, this.size = e.size + r.size; } @@ -7135,9 +7135,9 @@ class g2 extends yt { let o = s.length; for (let l of r) s.push(l); - if (e > 0 && E0(s, o - 1), n < this.length) { + if (e > 0 && D0(s, o - 1), n < this.length) { let l = s.length; - this.decomposeRight(n, s), E0(s, l); + this.decomposeRight(n, s), D0(s, l); } return yt.of(s); } @@ -7164,12 +7164,12 @@ class g2 extends yt { return this.left + (this.break ? " " : "-") + this.right; } } -function E0(t, e) { +function D0(t, e) { let n, r; t[e] == null && (n = t[e - 1]) instanceof Je && (r = t[e + 1]) instanceof Je && t.splice(e - 1, 3, new Je(n.length + 1 + r.length)); } -const O2 = 5; -class km { +const bQ = 5; +class xg { constructor(e, n) { this.pos = e, this.oracle = n, this.nodes = [], this.lineStart = -1, this.lineEnd = -1, this.covering = null, this.writtenTo = e; } @@ -7188,7 +7188,7 @@ class km { let i = r.widget ? r.widget.estimatedHeight : 0, s = r.widget ? r.widget.lineBreaks : 0; i < 0 && (i = this.oracle.lineHeight); let o = n - e; - r.block ? this.addBlock(new Sx(o, i, r)) : (o || s || i >= O2) && this.addLineDeco(i, s, o); + r.block ? this.addBlock(new _x(o, i, r)) : (o || s || i >= bQ) && this.addLineDeco(i, s, o); } else n > e && this.span(e, n); this.lineEnd > -1 && this.lineEnd < this.pos && (this.lineEnd = this.oracle.doc.lineAt(this.pos).to); @@ -7229,25 +7229,25 @@ class km { return this.nodes; } static build(e, n, r, i) { - let s = new km(r, e); + let s = new xg(r, e); return ie.spans(n, r, i, s, 0), s.finish(r); } } -function b2(t, e, n) { - let r = new y2(); +function yQ(t, e, n) { + let r = new wQ(); return ie.compare(t, e, n, r, 0), r.changes; } -class y2 { +class wQ { constructor() { this.changes = []; } compareRange() { } comparePoint(e, n, r, i) { - (e < n || r && r.heightRelevant || i && i.heightRelevant) && Zd(e, n, this.changes, 5); + (e < n || r && r.heightRelevant || i && i.heightRelevant) && Ld(e, n, this.changes, 5); } } -function w2(t, e) { +function kQ(t, e) { let n = t.getBoundingClientRect(), r = t.ownerDocument, i = r.defaultView || window, s = Math.max(0, n.left), o = Math.min(i.innerWidth, n.right), l = Math.max(0, n.top), a = Math.min(i.innerHeight, n.bottom); for (let c = t.parentNode; c && c != r.body; ) if (c.nodeType == 1) { @@ -7268,7 +7268,7 @@ function w2(t, e) { bottom: Math.max(l, a) - (n.top + e) }; } -function k2(t, e) { +function xQ(t, e) { let n = t.getBoundingClientRect(); return { left: 0, @@ -7293,11 +7293,11 @@ class qu { } draw(e, n) { return L.replace({ - widget: new x2(this.size * (n ? e.scaleY : e.scaleX), n) + widget: new vQ(this.size * (n ? e.scaleY : e.scaleX), n) }).range(this.from, this.to); } } -class x2 extends qt { +class vQ extends qt { constructor(e, n) { super(), this.size = e, this.vertical = n; } @@ -7312,11 +7312,11 @@ class x2 extends qt { return this.vertical ? this.size : -1; } } -class D0 { +class R0 { 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 = R0, this.scrollTarget = null, this.printing = !1, this.mustMeasureContent = !0, this.defaultTextDirection = Qe.LTR, this.visibleRanges = [], this.mustEnforceCursorAssoc = !1; - let n = e.facet(ym).some((r) => typeof r != "function" && r.class == "cm-lineWrapping"); - this.heightOracle = new p2(n), this.stateDeco = e.facet(el).filter((r) => typeof r != "function"), this.heightMap = yt.empty().applyChanges(this.stateDeco, se.empty, this.heightOracle.setDoc(e.doc), [new Ut(0, 0, 0, e.doc.length)]), this.viewport = this.getViewport(0, null), this.updateViewportLines(), this.updateForViewport(), this.lineGaps = this.ensureLineGaps([]), this.lineGapDeco = L.set(this.lineGaps.map((r) => r.draw(this, !1))), this.computeVisibleRanges(); + this.state = e, this.pixelViewport = { left: 0, right: window.innerWidth, top: 0, bottom: 0 }, this.inView = !0, this.paddingTop = 0, this.paddingBottom = 0, this.contentDOMWidth = 0, this.contentDOMHeight = 0, this.editorHeight = 0, this.editorWidth = 0, this.scrollTop = 0, this.scrolledToBottom = !0, this.scaleX = 1, this.scaleY = 1, this.scrollAnchorPos = 0, this.scrollAnchorHeight = -1, this.scaler = M0, this.scrollTarget = null, this.printing = !1, this.mustMeasureContent = !0, this.defaultTextDirection = Qe.LTR, this.visibleRanges = [], this.mustEnforceCursorAssoc = !1; + let n = e.facet(wg).some((r) => typeof r != "function" && r.class == "cm-lineWrapping"); + this.heightOracle = new gQ(n), this.stateDeco = e.facet(Jo).filter((r) => typeof r != "function"), this.heightMap = yt.empty().applyChanges(this.stateDeco, se.empty, this.heightOracle.setDoc(e.doc), [new Ut(0, 0, 0, e.doc.length)]), this.viewport = this.getViewport(0, null), this.updateViewportLines(), this.updateForViewport(), this.lineGaps = this.ensureLineGaps([]), this.lineGapDeco = L.set(this.lineGaps.map((r) => r.draw(this, !1))), this.computeVisibleRanges(); } updateForViewport() { let e = [this.viewport], { main: n } = this.state.selection; @@ -7324,10 +7324,10 @@ class D0 { let i = r ? n.head : n.anchor; if (!e.some(({ from: s, to: o }) => i >= s && i <= o)) { let { from: s, to: o } = this.lineBlockAt(i); - e.push(new ga(s, o)); + e.push(new ma(s, o)); } } - this.viewports = e.sort((r, i) => r.from - i.from), this.scaler = this.heightMap.height <= 7e6 ? R0 : new _2(this.heightOracle, this.heightMap, this.viewports); + this.viewports = e.sort((r, i) => r.from - i.from), this.scaler = this.heightMap.height <= 7e6 ? M0 : new CQ(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) => { @@ -7337,13 +7337,13 @@ class D0 { update(e, n = null) { this.state = e.state; let r = this.stateDeco; - this.stateDeco = this.state.facet(el).filter((h) => typeof h != "function"); - let i = e.changedRanges, s = Ut.extendWithRanges(i, b2(r, this.stateDeco, e ? e.changes : Ne.empty(this.state.doc.length))), o = this.heightMap.height, l = this.scrolledToBottom ? null : this.scrollAnchorAt(this.scrollTop); + this.stateDeco = this.state.facet(Jo).filter((h) => typeof h != "function"); + let i = e.changedRanges, s = Ut.extendWithRanges(i, yQ(r, this.stateDeco, e ? e.changes : Ne.empty(this.state.doc.length))), o = this.heightMap.height, l = 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 != o && (e.flags |= 2), l ? (this.scrollAnchorPos = e.changes.mapPos(l.from, -1), this.scrollAnchorHeight = l.top) : (this.scrollAnchorPos = -1, this.scrollAnchorHeight = this.heightMap.height); let a = s.length ? this.mapViewport(this.viewport, e.changes) : this.viewport; (n && (n.range.head < a.from || n.range.head > a.to) || !this.viewportIsAppropriate(a)) && (a = this.getViewport(0, n)); let c = !e.changes.empty || e.flags & 2 || a.from != this.viewport.from || a.to != this.viewport.to; - this.viewport = a, this.updateForViewport(), c && 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(), n && (this.scrollTarget = n), !this.mustEnforceCursorAssoc && e.selectionSet && e.view.lineWrapping && e.state.selection.main.empty && e.state.selection.main.assoc && !e.state.facet(nx) && (this.mustEnforceCursorAssoc = !0); + this.viewport = a, this.updateForViewport(), c && 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(), n && (this.scrollTarget = n), !this.mustEnforceCursorAssoc && e.selectionSet && e.view.lineWrapping && e.state.selection.main.empty && e.state.selection.main.assoc && !e.state.facet(rx) && (this.mustEnforceCursorAssoc = !0); } measure(e) { let n = e.contentDOM, r = window.getComputedStyle(n), i = this.heightOracle, s = r.whiteSpace; @@ -7352,14 +7352,14 @@ class D0 { this.contentDOMHeight = l.height, this.mustMeasureContent = !1; let c = 0, h = 0; if (l.width && l.height) { - let { scaleX: w, scaleY: S } = Zk(n, l); + let { scaleX: w, scaleY: S } = Lk(n, l); (this.scaleX != w || this.scaleY != S) && (this.scaleX = w, this.scaleY = S, c |= 8, o = a = !0); } let u = (parseInt(r.paddingTop) || 0) * this.scaleY, f = (parseInt(r.paddingBottom) || 0) * this.scaleY; (this.paddingTop != u || this.paddingBottom != f) && (this.paddingTop = u, this.paddingBottom = f, c |= 10), this.editorWidth != e.scrollDOM.clientWidth && (i.lineWrapping && (a = !0), this.editorWidth = e.scrollDOM.clientWidth, c |= 8); let d = e.scrollDOM.scrollTop * this.scaleY; - this.scrollTop != d && (this.scrollAnchorHeight = -1, this.scrollTop = d), this.scrolledToBottom = Nk(e.scrollDOM); - let p = (this.printing ? k2 : w2)(n, this.paddingTop), m = p.top - this.pixelViewport.top, g = p.bottom - this.pixelViewport.bottom; + this.scrollTop != d && (this.scrollAnchorHeight = -1, this.scrollTop = d), this.scrolledToBottom = qk(e.scrollDOM); + let p = (this.printing ? xQ : kQ)(n, this.paddingTop), g = p.top - this.pixelViewport.top, m = p.bottom - this.pixelViewport.bottom; this.pixelViewport = p; let O = this.pixelViewport.bottom > this.pixelViewport.top && this.pixelViewport.right > this.pixelViewport.left; if (O != this.inView && (this.inView = O, O && (a = !0)), !this.inView && !this.scrollTarget) @@ -7371,10 +7371,10 @@ class D0 { let { lineHeight: S, charWidth: x, textHeight: v } = e.docView.measureTextSize(); o = S > 0 && i.refresh(s, S, x, v, b / x, w), o && (e.docView.minWidth = 0, c |= 8); } - m > 0 && g > 0 ? h = Math.max(m, g) : m < 0 && g < 0 && (h = Math.min(m, g)), i.heightChanged = !1; + g > 0 && m > 0 ? h = Math.max(g, m) : g < 0 && m < 0 && (h = Math.min(g, m)), i.heightChanged = !1; for (let S of this.viewports) { let x = S.from == this.viewport.from ? w : e.docView.measureVisibleLineHeights(S); - this.heightMap = (o ? yt.empty().applyChanges(this.stateDeco, se.empty, this.heightOracle, [new Ut(0, 0, 0, e.state.doc.length)]) : this.heightMap).updateHeight(i, 0, o, new m2(S.from, x)); + this.heightMap = (o ? yt.empty().applyChanges(this.stateDeco, se.empty, this.heightOracle, [new Ut(0, 0, 0, e.state.doc.length)]) : this.heightMap).updateHeight(i, 0, o, new mQ(S.from, x)); } i.heightChanged && (c |= 2); } @@ -7388,19 +7388,19 @@ class D0 { return this.scaler.fromDOM(this.pixelViewport.bottom); } getViewport(e, n) { - let r = 0.5 - Math.max(-0.5, Math.min(0.5, e / 1e3 / 2)), i = this.heightMap, s = this.heightOracle, { visibleTop: o, visibleBottom: l } = this, a = new ga(i.lineAt(o - r * 1e3, Ce.ByHeight, s, 0, 0).from, i.lineAt(l + (1 - r) * 1e3, Ce.ByHeight, s, 0, 0).to); + let r = 0.5 - Math.max(-0.5, Math.min(0.5, e / 1e3 / 2)), i = this.heightMap, s = this.heightOracle, { visibleTop: o, visibleBottom: l } = this, a = new ma(i.lineAt(o - r * 1e3, Ce.ByHeight, s, 0, 0).from, i.lineAt(l + (1 - r) * 1e3, Ce.ByHeight, s, 0, 0).to); if (n) { let { head: c } = n.range; if (c < a.from || c > a.to) { let h = Math.min(this.editorHeight, this.pixelViewport.bottom - this.pixelViewport.top), u = i.lineAt(c, Ce.ByPos, s, 0, 0), f; - n.y == "center" ? f = (u.top + u.bottom) / 2 - h / 2 : n.y == "start" || n.y == "nearest" && c < a.from ? f = u.top : f = u.bottom - h, a = new ga(i.lineAt(f - 1e3 / 2, Ce.ByHeight, s, 0, 0).from, i.lineAt(f + h + 1e3 / 2, Ce.ByHeight, s, 0, 0).to); + n.y == "center" ? f = (u.top + u.bottom) / 2 - h / 2 : n.y == "start" || n.y == "nearest" && c < a.from ? f = u.top : f = u.bottom - h, a = new ma(i.lineAt(f - 1e3 / 2, Ce.ByHeight, s, 0, 0).from, i.lineAt(f + h + 1e3 / 2, Ce.ByHeight, s, 0, 0).to); } } return a; } mapViewport(e, n) { let r = n.mapPos(e.from, -1), i = n.mapPos(e.to, 1); - return new ga(this.heightMap.lineAt(r, Ce.ByPos, this.heightOracle, 0, 0).from, this.heightMap.lineAt(i, Ce.ByPos, this.heightOracle, 0, 0).to); + return new ma(this.heightMap.lineAt(r, Ce.ByPos, this.heightOracle, 0, 0).from, this.heightMap.lineAt(i, Ce.ByPos, this.heightOracle, 0, 0).to); } viewportIsAppropriate({ from: e, to: n }, r = 0) { if (!this.inView) @@ -7425,44 +7425,44 @@ class D0 { return; let d = this.state.selection.main, p = [d.from]; d.empty || p.push(d.to); - for (let g of p) - if (g > c && g < h) { - a(c, g - 10, u, f), a(g + 10, h, u, f); + for (let m of p) + if (m > c && m < h) { + a(c, m - 10, u, f), a(m + 10, h, u, f); return; } - let m = S2(e, (g) => g.from >= u.from && g.to <= u.to && Math.abs(g.from - c) < s && Math.abs(g.to - h) < s && !p.some((O) => g.from < O && g.to > O)); - if (!m) { - if (h < u.to && n && r && n.visibleRanges.some((g) => g.from <= h && g.to >= h)) { - let g = n.moveToLineBoundary(C.cursor(h), !1, !0).head; - g > c && (h = g); + let g = _Q(e, (m) => m.from >= u.from && m.to <= u.to && Math.abs(m.from - c) < s && Math.abs(m.to - h) < s && !p.some((O) => m.from < O && m.to > O)); + if (!g) { + if (h < u.to && n && r && n.visibleRanges.some((m) => m.from <= h && m.to >= h)) { + let m = n.moveToLineBoundary(C.cursor(h), !1, !0).head; + m > c && (h = m); } - m = new qu(c, h, this.gapSize(u, c, h, f)); + g = new qu(c, h, this.gapSize(u, c, h, f)); } - l.push(m); + l.push(g); }; for (let c of this.viewportLines) { if (c.length < o) continue; - let h = v2(c.from, c.to, this.stateDeco); + let h = SQ(c.from, c.to, this.stateDeco); if (h.total < o) continue; let u = this.scrollTarget ? this.scrollTarget.range.head : null, f, d; if (r) { - let p = i / this.heightOracle.lineLength * this.heightOracle.lineHeight, m, g; + let p = i / this.heightOracle.lineLength * this.heightOracle.lineHeight, g, m; if (u != null) { let O = ba(h, u), b = ((this.visibleBottom - this.visibleTop) / 2 + p) / c.height; - m = O - b, g = O + b; + g = O - b, m = O + b; } else - m = (this.visibleTop - c.top - p) / c.height, g = (this.visibleBottom - c.top + p) / c.height; - f = Oa(h, m), d = Oa(h, g); + g = (this.visibleTop - c.top - p) / c.height, m = (this.visibleBottom - c.top + p) / c.height; + f = Oa(h, g), d = Oa(h, m); } else { - let p = h.total * this.heightOracle.charWidth, m = i * this.heightOracle.charWidth, g, O; + let p = h.total * this.heightOracle.charWidth, g = i * this.heightOracle.charWidth, m, O; if (u != null) { - let b = ba(h, u), y = ((this.pixelViewport.right - this.pixelViewport.left) / 2 + m) / p; - g = b - y, O = b + y; + let b = ba(h, u), y = ((this.pixelViewport.right - this.pixelViewport.left) / 2 + g) / p; + m = b - y, O = b + y; } else - g = (this.pixelViewport.left - m) / p, O = (this.pixelViewport.right + m) / p; - f = Oa(h, g), d = Oa(h, O); + m = (this.pixelViewport.left - g) / p, O = (this.pixelViewport.right + g) / p; + f = Oa(h, m), d = Oa(h, O); } f > c.from && a(c.from, f, c, h), d < c.to && a(d, c.to, c, h); } @@ -7509,12 +7509,12 @@ class D0 { return this.docHeight + this.paddingTop + this.paddingBottom; } } -class ga { +class ma { constructor(e, n) { this.from = e, this.to = n; } } -function v2(t, e, n) { +function SQ(t, e, n) { let r = [], i = t, s = 0; return ie.spans(n, t, e, { span() { @@ -7548,12 +7548,12 @@ function ba(t, e) { } return n / t.total; } -function S2(t, e) { +function _Q(t, e) { for (let n of t) if (e(n)) return n; } -const R0 = { +const M0 = { toDOM(t) { return t; }, @@ -7562,7 +7562,7 @@ const R0 = { }, scale: 1 }; -class _2 { +class CQ { constructor(e, n, r) { let i = 0, s = 0, o = 0; this.viewports = r.map(({ from: l, to: a }) => { @@ -7599,8 +7599,8 @@ function So(t, e) { let n = e.toDOM(t.top), r = e.toDOM(t.bottom); return new Qn(t.from, t.length, n, r - n, Array.isArray(t._content) ? t._content.map((i) => So(i, e)) : t._content); } -const ya = /* @__PURE__ */ I.define({ combine: (t) => t.join(" ") }), Wd = /* @__PURE__ */ I.define({ combine: (t) => t.indexOf(!0) > -1 }), Vd = /* @__PURE__ */ hr.newName(), _x = /* @__PURE__ */ hr.newName(), Cx = /* @__PURE__ */ hr.newName(), Ax = { "&light": "." + _x, "&dark": "." + Cx }; -function jd(t, e, n) { +const ya = /* @__PURE__ */ I.define({ combine: (t) => t.join(" ") }), Vd = /* @__PURE__ */ I.define({ combine: (t) => t.indexOf(!0) > -1 }), jd = /* @__PURE__ */ hr.newName(), Cx = /* @__PURE__ */ hr.newName(), Ax = /* @__PURE__ */ hr.newName(), $x = { "&light": "." + Cx, "&dark": "." + Ax }; +function zd(t, e, n) { return new hr(e, { finish(r) { return /&/.test(r) ? r.replace(/&\w*/, (i) => { @@ -7613,7 +7613,7 @@ function jd(t, e, n) { } }); } -const C2 = /* @__PURE__ */ jd("." + Vd, { +const AQ = /* @__PURE__ */ zd("." + jd, { "&": { position: "relative !important", boxSizing: "border-box", @@ -7844,8 +7844,8 @@ const C2 = /* @__PURE__ */ jd("." + Vd, { border: "1px solid #555", backgroundColor: "inherit" } -}, Ax), _o = "\uFFFF"; -class A2 { +}, $x), _o = "\uFFFF"; +class $Q { constructor(e, n) { this.points = e, this.text = "", this.lineSeparator = n.facet(ne.lineSeparator); } @@ -7867,7 +7867,7 @@ class A2 { if (o == n) break; let l = $e.get(i), a = $e.get(o); - (l && a ? l.breakAfter : (l ? l.breakAfter : M0(i)) || M0(o) && (i.nodeName != "BR" || i.cmIgnore) && this.text.length > s) && this.lineBreak(), i = o; + (l && a ? l.breakAfter : (l ? l.breakAfter : Z0(i)) || Z0(o) && (i.nodeName != "BR" || i.cmIgnore) && this.text.length > s) && this.lineBreak(), i = o; } return this.findPointBefore(r, n), this; } @@ -7902,54 +7902,54 @@ class A2 { } findPointInside(e, n) { for (let r of this.points) - (e.nodeType == 3 ? r.node == e : e.contains(r.node)) && (r.pos = this.text.length + ($2(e, r.node, r.offset) ? n : 0)); + (e.nodeType == 3 ? r.node == e : e.contains(r.node)) && (r.pos = this.text.length + (PQ(e, r.node, r.offset) ? n : 0)); } } -function $2(t, e, n) { +function PQ(t, e, n) { for (; ; ) { if (!e || n < ur(e)) return !1; if (e == t) return !0; - n = Jo(e) + 1, e = e.parentNode; + n = Ko(e) + 1, e = e.parentNode; } } -function M0(t) { +function Z0(t) { return t.nodeType == 1 && /^(DIV|P|LI|UL|OL|BLOCKQUOTE|DD|DT|H\d|SECTION|PRE)$/.test(t.nodeName); } -class Z0 { +class L0 { constructor(e, n) { this.node = e, this.offset = n, this.pos = -1; } } -class P2 { +class TQ { constructor(e, n, r, i) { this.typeOver = i, this.bounds = null, this.text = ""; let { impreciseHead: s, impreciseAnchor: o } = e.docView; if (e.state.readOnly && n > -1) this.newSel = null; else if (n > -1 && (this.bounds = e.docView.domBoundsAround(n, r, 0))) { - let l = s || o ? [] : E2(e), a = new A2(l, e.state); - a.readRange(this.bounds.startDOM, this.bounds.endDOM), this.text = a.text, this.newSel = D2(l, this.bounds.from); + let l = s || o ? [] : DQ(e), a = new $Q(l, e.state); + a.readRange(this.bounds.startDOM, this.bounds.endDOM), this.text = a.text, this.newSel = RQ(l, this.bounds.from); } else { - let l = e.observer.selectionRange, a = s && s.node == l.focusNode && s.offset == l.focusOffset || !Td(e.contentDOM, l.focusNode) ? e.state.selection.main.head : e.docView.posFromDOM(l.focusNode, l.focusOffset), c = o && o.node == l.anchorNode && o.offset == l.anchorOffset || !Td(e.contentDOM, l.anchorNode) ? e.state.selection.main.anchor : e.docView.posFromDOM(l.anchorNode, l.anchorOffset); + let l = e.observer.selectionRange, a = s && s.node == l.focusNode && s.offset == l.focusOffset || !Qd(e.contentDOM, l.focusNode) ? e.state.selection.main.head : e.docView.posFromDOM(l.focusNode, l.focusOffset), c = o && o.node == l.anchorNode && o.offset == l.anchorOffset || !Qd(e.contentDOM, l.anchorNode) ? e.state.selection.main.anchor : e.docView.posFromDOM(l.anchorNode, l.anchorOffset); this.newSel = C.single(c, a); } } } -function $x(t, e) { +function Px(t, e) { let n, { newSel: r } = e, i = t.state.selection.main, s = t.inputState.lastKeyTime > Date.now() - 100 ? t.inputState.lastKeyCode : -1; if (e.bounds) { let { from: o, to: l } = e.bounds, a = i.from, c = null; (s === 8 || N.android && e.text.length < l - o) && (a = i.to, c = "end"); - let h = Q2(t.state.doc.sliceString(o, l, _o), e.text, a - o, c); + let h = EQ(t.state.doc.sliceString(o, l, _o), e.text, a - o, c); h && (N.chrome && s == 13 && h.toB == h.from + 2 && e.text.slice(h.from, h.toB) == _o + _o && h.toB--, n = { from: o + h.from, to: o + h.toA, insert: se.of(e.text.slice(h.from, h.toB).split(_o)) }); } else - r && (!t.hasFocus && t.state.facet(Mh) || r.main.eq(i)) && (r = null); + r && (!t.hasFocus && t.state.facet(Zh) || r.main.eq(i)) && (r = null); if (!n && !r) return !1; if (!n && e.typeOver && !i.empty && r && r.main.empty ? n = { from: i.from, to: i.to, insert: t.state.doc.slice(i.from, i.to) } : n && n.from >= i.from && n.to <= i.to && (n.from != i.from || n.to != i.to) && i.to - i.from - (n.to - n.from) <= 4 ? n = { @@ -7962,15 +7962,15 @@ function $x(t, e) { return !0; let o = n.insert.toString(); t.inputState.composing >= 0 && t.inputState.composing++; - let l, a = () => l || (l = T2(t, n, r)); - return t.state.facet(Jk).some((c) => c(t, n.from, n.to, o, a)) || t.dispatch(a()), !0; + let l, a = () => l || (l = QQ(t, n, r)); + return t.state.facet(ex).some((c) => c(t, n.from, n.to, o, a)) || t.dispatch(a()), !0; } else if (r && !r.main.eq(i)) { let o = !1, l = "select"; return t.inputState.lastSelectionTime > Date.now() - 50 && (t.inputState.lastSelectionOrigin == "select" && (o = !0), l = t.inputState.lastSelectionOrigin), t.dispatch({ selection: r, scrollIntoView: o, userEvent: l }), !0; } else return !1; } -function T2(t, e, n) { +function QQ(t, e, n) { let r, 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 && (!n || n.main.empty && n.main.from == e.from + e.insert.length) && t.inputState.composing < 0) { let l = s.from < e.from ? i.sliceDoc(s.from, e.from) : "", a = s.to > e.to ? i.sliceDoc(e.to, s.to) : ""; @@ -7978,7 +7978,7 @@ function T2(t, e, n) { } else { let l = i.changes(e), a = n && n.main.to <= l.newLength ? n.main : void 0; if (i.selection.ranges.length > 1 && t.inputState.composing >= 0 && e.to <= s.to && e.to >= s.to - 10) { - let c = t.state.sliceDoc(e.from, e.to), h, u = n && fx(t, n.main.head); + let c = t.state.sliceDoc(e.from, e.to), h, u = n && dx(t, n.main.head); if (u) { let p = e.insert.length - (e.to - e.from); h = { from: u.from, to: u.to - p }; @@ -7988,10 +7988,10 @@ function T2(t, e, n) { r = i.changeByRange((p) => { if (p.from == s.from && p.to == s.to) return { changes: l, range: a || p.map(l) }; - let m = p.to - f, g = m - c.length; - if (p.to - p.from != d || t.state.sliceDoc(g, m) != c || p.to >= h.from && p.from <= h.to) + let g = p.to - f, m = g - c.length; + if (p.to - p.from != d || t.state.sliceDoc(m, g) != c || p.to >= h.from && p.from <= h.to) return { range: p }; - let O = i.changes({ from: g, to: m, insert: e.insert }), b = p.to - s.to; + let O = i.changes({ from: m, to: g, insert: e.insert }), b = p.to - s.to; return { changes: O, range: a ? C.range(Math.max(0, a.anchor + b), Math.max(0, a.head + b)) : p.map(O) @@ -8006,7 +8006,7 @@ function T2(t, e, n) { let o = "input.type"; return (t.composing || t.inputState.compositionPendingChange && t.inputState.compositionEndedAt > Date.now() - 50) && (t.inputState.compositionPendingChange = !1, o += ".compose", t.inputState.compositionFirstChange && (o += ".start", t.inputState.compositionFirstChange = !1)), i.update(r, { userEvent: o, scrollIntoView: !0 }); } -function Q2(t, e, n, r) { +function EQ(t, e, n, r) { let i = Math.min(t.length, e.length), s = 0; for (; s < i && t.charCodeAt(s) == e.charCodeAt(s); ) s++; @@ -8028,29 +8028,29 @@ function Q2(t, e, n, r) { } return { from: s, toA: o, toB: l }; } -function E2(t) { +function DQ(t) { let e = []; if (t.root.activeElement != t.contentDOM) return e; let { anchorNode: n, anchorOffset: r, focusNode: i, focusOffset: s } = t.observer.selectionRange; - return n && (e.push(new Z0(n, r)), (i != n || s != r) && e.push(new Z0(i, s))), e; + return n && (e.push(new L0(n, r)), (i != n || s != r) && e.push(new L0(i, s))), e; } -function D2(t, e) { +function RQ(t, e) { if (t.length == 0) return null; let n = t[0].pos, r = t.length == 2 ? t[1].pos : n; return n > -1 && r > -1 ? C.single(n + e, r + e) : null; } -const R2 = { +const MQ = { childList: !0, characterData: !0, subtree: !0, attributes: !0, characterDataOldValue: !0 }, Bu = N.ie && N.ie_version <= 11; -class M2 { +class ZQ { constructor(e) { - this.view = e, this.active = !1, this.selectionRange = new bQ(), 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((n) => { + this.view = e, this.active = !1, this.selectionRange = new y2(), 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((n) => { for (let r of n) this.queue.push(r); (N.ie && N.ie_version <= 11 || N.ios && e.composing) && n.some((r) => r.type == "childList" && r.removedNodes.length || r.type == "characterData" && r.oldValue.length > r.target.nodeValue.length) ? this.flushSoon() : this.flush(); @@ -8098,21 +8098,21 @@ class M2 { if (!this.readSelectionRange() || this.delayedAndroidKey) return; let { view: r } = this, i = this.selectionRange; - if (r.state.facet(Mh) ? r.root.activeElement != this.dom : !sc(r.dom, i)) + if (r.state.facet(Zh) ? r.root.activeElement != this.dom : !sc(r.dom, i)) return; let s = i.anchorNode && r.docView.nearest(i.anchorNode); if (s && s.ignoreEvent(e)) { n || (this.selectionChanged = !1); return; } - (N.ie && N.ie_version <= 11 || N.android && N.chrome) && !r.state.selection.main.empty && i.focusNode && Pc(i.focusNode, i.focusOffset, i.anchorNode, i.anchorOffset) ? this.flushSoon() : this.flush(!1); + (N.ie && N.ie_version <= 11 || N.android && N.chrome) && !r.state.selection.main.empty && i.focusNode && Tc(i.focusNode, i.focusOffset, i.anchorNode, i.anchorOffset) ? this.flushSoon() : this.flush(!1); } readSelectionRange() { - let { view: e } = this, n = N.safari && e.root.nodeType == 11 && pQ(this.dom.ownerDocument) == this.dom && Z2(this.view) || $c(e.root); + let { view: e } = this, n = N.safari && e.root.nodeType == 11 && g2(this.dom.ownerDocument) == this.dom && LQ(this.view) || Pc(e.root); if (!n || this.selectionRange.eq(n)) return !1; let r = sc(this.dom, n); - return r && !this.selectionChanged && e.inputState.lastFocusTime > Date.now() - 200 && e.inputState.lastTouchTime < Date.now() - 300 && wQ(this.dom, n) ? (this.view.inputState.lastFocusTime = 0, e.docView.updateSelection(), !1) : (this.selectionRange.setRange(n), r && (this.selectionChanged = !0), !0); + return r && !this.selectionChanged && e.inputState.lastFocusTime > Date.now() - 200 && e.inputState.lastTouchTime < Date.now() - 300 && k2(this.dom, n) ? (this.view.inputState.lastFocusTime = 0, e.docView.updateSelection(), !1) : (this.selectionRange.setRange(n), r && (this.selectionChanged = !0), !0); } setSelectionRange(e, n) { this.selectionRange.set(e.node, e.offset, n.node, n.offset), this.selectionChanged = !1; @@ -8147,7 +8147,7 @@ class M2 { } } start() { - this.active || (this.observer.observe(this.dom, R2), Bu && this.dom.addEventListener("DOMCharacterDataModified", this.onCharData), this.active = !0); + this.active || (this.observer.observe(this.dom, MQ), Bu && this.dom.addEventListener("DOMCharacterDataModified", this.onCharData), this.active = !0); } stop() { !this.active || (this.active = !1, this.observer.disconnect(), Bu && this.dom.removeEventListener("DOMCharacterDataModified", this.onCharData)); @@ -8201,7 +8201,7 @@ class M2 { if (e < 0 && !i) return null; e > -1 && (this.lastChange = Date.now()), this.view.inputState.lastFocusTime = 0, this.selectionChanged = !1; - let s = new P2(this.view, e, n, r); + let s = new TQ(this.view, e, n, r); return this.view.docView.domChanged = { newSel: s.newSel ? s.newSel.main : null }, s; } flush(e = !0) { @@ -8211,7 +8211,7 @@ class M2 { let n = this.readChange(); if (!n) return this.view.requestMeasure(), !1; - let r = this.view.state, i = $x(this.view, n); + let r = this.view.state, i = Px(this.view, n); return this.view.state == r && this.view.update([]), i; } readMutation(e) { @@ -8219,7 +8219,7 @@ class M2 { if (!n || n.ignoreMutation(e)) return null; if (n.markDirty(e.type == "attributes"), e.type == "attributes" && (n.flags |= 4), e.type == "childList") { - let r = L0(n, e.previousSibling || e.target.previousSibling, -1), i = L0(n, e.nextSibling || e.target.nextSibling, 1); + let r = I0(n, e.previousSibling || e.target.previousSibling, -1), i = I0(n, e.nextSibling || e.target.nextSibling, 1); return { from: r ? n.posAfter(r) : n.posAtStart, to: i ? n.posBefore(i) : n.posAtEnd, @@ -8245,7 +8245,7 @@ class M2 { this.removeWindowListeners(this.win), clearTimeout(this.parentCheck), clearTimeout(this.resizeTimeout), this.win.cancelAnimationFrame(this.delayedFlush), this.win.cancelAnimationFrame(this.flushingAndroidKey); } } -function L0(t, e, n) { +function I0(t, e, n) { for (; e; ) { let r = $e.get(e); if (r && r.parent == t) @@ -8255,7 +8255,7 @@ function L0(t, e, n) { } return null; } -function Z2(t) { +function LQ(t) { let e = null; function n(a) { a.preventDefault(), a.stopImmediatePropagation(), e = a.getTargetRanges()[0]; @@ -8263,7 +8263,7 @@ function Z2(t) { if (t.contentDOM.addEventListener("beforeinput", n, !0), t.dom.ownerDocument.execCommand("indent"), t.contentDOM.removeEventListener("beforeinput", n, !0), !e) return null; let r = e.startContainer, i = e.startOffset, s = e.endContainer, o = e.endOffset, l = t.docView.domAtPos(t.state.selection.main.anchor); - return Pc(l.node, l.offset, s, o) && ([r, i, s, o] = [s, o, r, i]), { anchorNode: r, anchorOffset: i, focusNode: s, focusOffset: o }; + return Tc(l.node, l.offset, s, o) && ([r, i, s, o] = [s, o, r, i]), { anchorNode: r, anchorOffset: i, focusNode: s, focusOffset: o }; } class E { get state() { @@ -8293,10 +8293,10 @@ class E { 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: n } = e; - this.dispatchTransactions = e.dispatchTransactions || n && ((r) => r.forEach((i) => n(i, this))) || ((r) => this.update(r)), this.dispatch = this.dispatch.bind(this), this._root = e.root || yQ(e.parent) || document, this.viewState = new D0(e.state || ne.create(e)), e.scrollTo && e.scrollTo.is(da) && (this.viewState.scrollTarget = e.scrollTo.value.clip(this.viewState.state)), this.plugins = this.state.facet(xo).map((r) => new Lu(r)); + this.dispatchTransactions = e.dispatchTransactions || n && ((r) => r.forEach((i) => n(i, this))) || ((r) => this.update(r)), this.dispatch = this.dispatch.bind(this), this._root = e.root || w2(e.parent) || document, this.viewState = new R0(e.state || ne.create(e)), e.scrollTo && e.scrollTo.is(da) && (this.viewState.scrollTarget = e.scrollTo.value.clip(this.viewState.state)), this.plugins = this.state.facet(xo).map((r) => new Lu(r)); for (let r of this.plugins) r.update(this); - this.observer = new M2(this), this.inputState = new HQ(this), this.inputState.ensureHandlers(this.plugins), this.docView = new m0(this), this.mountStyles(), this.updateAttrs(), this.updateState = 0, this.requestMeasure(); + this.observer = new ZQ(this), this.inputState = new K2(this), this.inputState.ensureHandlers(this.plugins), this.docView = new m0(this), this.mountStyles(), this.updateAttrs(), this.updateState = 0, this.requestMeasure(); } dispatch(...e) { let n = e.length == 1 && e[0] instanceof We ? e : e.length == 1 && Array.isArray(e[0]) ? e[0] : [this.state.update(...e)]; @@ -8316,11 +8316,11 @@ class E { return; } let o = this.hasFocus, l = 0, a = null; - e.some((f) => f.annotation(kx)) ? (this.inputState.notifiedFocused = o, l = 1) : o != this.inputState.notifiedFocused && (this.inputState.notifiedFocused = o, a = xx(s, o), a || (l = 1)); + e.some((f) => f.annotation(xx)) ? (this.inputState.notifiedFocused = o, l = 1) : o != this.inputState.notifiedFocused && (this.inputState.notifiedFocused = o, a = vx(s, o), a || (l = 1)); let c = this.observer.delayedAndroidKey, h = null; if (c ? (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(ne.phrases) != this.state.facet(ne.phrases)) return this.setState(s); - i = Tc.create(this, s, e), i.flags |= l; + i = Qc.create(this, s, e), i.flags |= l; let u = this.viewState.scrollTarget; try { this.updateState = 2; @@ -8332,19 +8332,19 @@ class E { for (let d of f.effects) d.is(da) && (u = d.value.clip(this.state)); } - this.viewState.update(i, u), this.bidiCache = Qc.update(this.bidiCache, i.changes), i.empty || (this.updatePlugins(i), this.inputState.update(i)), n = this.docView.update(i), this.state.facet(vo) != this.styleModules && this.mountStyles(), r = this.updateAttrs(), this.showAnnouncements(e), this.docView.updateSelection(n, e.some((f) => f.isUserEvent("select.pointer"))); + this.viewState.update(i, u), this.bidiCache = Ec.update(this.bidiCache, i.changes), i.empty || (this.updatePlugins(i), this.inputState.update(i)), n = this.docView.update(i), this.state.facet(vo) != this.styleModules && this.mountStyles(), r = this.updateAttrs(), this.showAnnouncements(e), this.docView.updateSelection(n, e.some((f) => f.isUserEvent("select.pointer"))); } finally { this.updateState = 0; } if (i.startState.facet(ya) != i.state.facet(ya) && (this.viewState.mustMeasureContent = !0), (n || r || u || this.viewState.mustEnforceCursorAssoc || this.viewState.mustMeasureContent) && this.requestMeasure(), !i.empty) - for (let f of this.state.facet(Ld)) + for (let f of this.state.facet(Id)) try { f(i); } catch (d) { Ft(this.state, d, "update listener"); } (a || h) && Promise.resolve().then(() => { - a && this.state == a.startState && this.dispatch(a), h && !$x(this, h) && c.force && ss(this.contentDOM, c.key, c.keyCode); + a && this.state == a.startState && this.dispatch(a), h && !Px(this, h) && c.force && ss(this.contentDOM, c.key, c.keyCode); }); } setState(e) { @@ -8359,7 +8359,7 @@ class E { try { for (let r of this.plugins) r.destroy(this); - this.viewState = new D0(e), this.plugins = e.facet(xo).map((r) => new Lu(r)), this.pluginMap.clear(); + this.viewState = new R0(e), this.plugins = e.facet(xo).map((r) => new Lu(r)), this.pluginMap.clear(); for (let r of this.plugins) r.update(this); this.docView.destroy(), this.docView = new m0(this), this.inputState.ensureHandlers(this.plugins), this.mountStyles(), this.updateAttrs(), this.bidiCache = []; @@ -8404,7 +8404,7 @@ class E { try { for (let l = 0; ; l++) { if (o < 0) - if (Nk(r)) + if (qk(r)) s = -1, o = this.viewState.heightMap.height; else { let d = this.viewState.scrollAnchorAt(i); @@ -8424,12 +8424,12 @@ class E { try { return d.read(this); } catch (p) { - return Ft(this.state, p), I0; + return Ft(this.state, p), N0; } - }), u = Tc.create(this, this.state, []), f = !1; + }), u = Qc.create(this, this.state, []), f = !1; u.flags |= a, n ? n.flags |= a : n = u, this.updateState = 2, u.empty || (this.updatePlugins(u), this.inputState.update(u), this.updateAttrs(), f = this.docView.update(u)); for (let d = 0; d < c.length; d++) - if (h[d] != I0) + if (h[d] != N0) try { let p = c[d]; p.write && p.write(h[d], this); @@ -8455,29 +8455,29 @@ class E { this.updateState = 0, this.measureScheduled = -1; } if (n && !n.empty) - for (let l of this.state.facet(Ld)) + for (let l of this.state.facet(Id)) l(n); } get themeClasses() { - return Vd + " " + (this.state.facet(Wd) ? Cx : _x) + " " + this.state.facet(ya); + return jd + " " + (this.state.facet(Vd) ? Ax : Cx) + " " + this.state.facet(ya); } updateAttrs() { - let e = N0(this, rx, { + let e = q0(this, ix, { class: "cm-editor" + (this.hasFocus ? " cm-focused " : " ") + this.themeClasses }), n = { spellcheck: "false", autocorrect: "off", autocapitalize: "off", translate: "no", - contenteditable: this.state.facet(Mh) ? "true" : "false", + contenteditable: this.state.facet(Zh) ? "true" : "false", class: "cm-content", style: `${N.tabSize}: ${this.state.tabSize}`, role: "textbox", "aria-multiline": "true" }; - this.state.readOnly && (n["aria-readonly"] = "true"), N0(this, ym, n); + this.state.readOnly && (n["aria-readonly"] = "true"), q0(this, wg, n); let r = this.observer.ignore(() => { - let i = Md(this.contentDOM, this.contentAttrs, n), s = Md(this.dom, this.editorAttrs, e); + let i = Zd(this.contentDOM, this.contentAttrs, n), s = Zd(this.dom, this.editorAttrs, e); return i || s; }); return this.editorAttrs = e, this.contentAttrs = n, r; @@ -8495,7 +8495,7 @@ class E { mountStyles() { this.styleModules = this.state.facet(vo); let e = this.state.facet(E.cspNonce); - hr.mount(this.root, this.styleModules.concat(C2).reverse(), e ? { nonce: e } : void 0); + hr.mount(this.root, this.styleModules.concat(AQ).reverse(), e ? { nonce: e } : void 0); } readMeasured() { if (this.updateState == 2) @@ -8548,16 +8548,16 @@ class E { return this.viewState.contentHeight; } moveByChar(e, n, r) { - return Nu(this, e, k0(this, e, n, r)); + return Nu(this, e, x0(this, e, n, r)); } moveByGroup(e, n) { - return Nu(this, e, k0(this, e, n, (r) => UQ(this, e.head, r))); + return Nu(this, e, x0(this, e, n, (r) => G2(this, e.head, r))); } moveToLineBoundary(e, n, r = !0) { - return FQ(this, e, n, r); + return U2(this, e, n, r); } moveVertically(e, n, r) { - return Nu(this, e, GQ(this, e, n, r)); + return Nu(this, e, H2(this, e, n, r)); } domAtPos(e) { return this.docView.domAtPos(e); @@ -8566,7 +8566,7 @@ class E { return this.docView.posFromDOM(e, n); } posAtCoords(e, n = !0) { - return this.readMeasured(), px(this, e, n); + return this.readMeasured(), gx(this, e, n); } coordsAtPos(e, n = 1) { this.readMeasured(); @@ -8574,7 +8574,7 @@ class E { if (!r || r.left == r.right) return r; let i = this.state.doc.lineAt(e), s = this.bidiSpans(i), o = s[Tr.find(s, e - i.from, -1, n)]; - return gm(r, o.dir == Qe.LTR == n > 0); + return Og(r, o.dir == Qe.LTR == n > 0); } coordsForChar(e) { return this.readMeasured(), this.docView.coordsForChar(e); @@ -8589,21 +8589,21 @@ class E { return this.viewState.defaultTextDirection; } textDirectionAt(e) { - return !this.state.facet(tx) || e < this.viewport.from || e > this.viewport.to ? this.textDirection : (this.readMeasured(), this.docView.textDirectionAt(e)); + return !this.state.facet(nx) || 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 > L2) - return hx(e.length); + if (e.length > IQ) + return ux(e.length); let n = this.textDirectionAt(e.from), r; for (let s of this.bidiCache) - if (s.from == e.from && s.dir == n && (s.fresh || cx(s.isolates, r = p0(this, e.from, e.to)))) + if (s.from == e.from && s.dir == n && (s.fresh || hx(s.isolates, r = g0(this, e.from, e.to)))) return s.order; - r || (r = p0(this, e.from, e.to)); - let i = RQ(e.text, n, r); - return this.bidiCache.push(new Qc(e.from, e.to, n, r, !0, i)), i; + r || (r = g0(this, e.from, e.to)); + let i = M2(e.text, n, r); + return this.bidiCache.push(new Ec(e.from, e.to, n, r, !0, i)), i; } get hasFocus() { var e; @@ -8611,7 +8611,7 @@ class E { } focus() { this.observer.ignore(() => { - Lk(this.contentDOM), this.docView.updateSelection(); + Ik(this.contentDOM), this.docView.updateSelection(); }); } setRoot(e) { @@ -8636,11 +8636,11 @@ class E { return ke.define(() => ({}), { eventObservers: e }); } static theme(e, n) { - let r = hr.newName(), i = [ya.of(r), vo.of(jd(`.${r}`, e))]; - return n && n.dark && i.push(Wd.of(!0)), i; + let r = hr.newName(), i = [ya.of(r), vo.of(zd(`.${r}`, e))]; + return n && n.dark && i.push(Vd.of(!0)), i; } static baseTheme(e) { - return bn.lowest(vo.of(jd("." + Vd, e, Ax))); + return bn.lowest(vo.of(zd("." + jd, e, $x))); } static findFromDOM(e) { var n; @@ -8649,27 +8649,27 @@ class E { } } E.styleModule = vo; -E.inputHandler = Jk; -E.focusChangeEffect = ex; -E.perLineTextDirection = tx; -E.exceptionSink = Kk; -E.updateListener = Ld; -E.editable = Mh; -E.mouseSelectionStyle = Hk; -E.dragMovesSelection = Gk; -E.clickAddsSelectionRange = Uk; -E.decorations = el; -E.atomicRanges = wm; -E.bidiIsolatedRanges = ix; -E.scrollMargins = sx; -E.darkTheme = Wd; +E.inputHandler = ex; +E.focusChangeEffect = tx; +E.perLineTextDirection = nx; +E.exceptionSink = Jk; +E.updateListener = Id; +E.editable = Zh; +E.mouseSelectionStyle = Kk; +E.dragMovesSelection = Hk; +E.clickAddsSelectionRange = Gk; +E.decorations = Jo; +E.atomicRanges = kg; +E.bidiIsolatedRanges = sx; +E.scrollMargins = ox; +E.darkTheme = Vd; E.cspNonce = /* @__PURE__ */ I.define({ combine: (t) => t.length ? t[0] : "" }); -E.contentAttributes = ym; -E.editorAttributes = rx; +E.contentAttributes = wg; +E.editorAttributes = ix; E.lineWrapping = /* @__PURE__ */ E.contentAttributes.of({ class: "cm-lineWrapping" }); E.announce = /* @__PURE__ */ F.define(); -const L2 = 4096, I0 = {}; -class Qc { +const IQ = 4096, N0 = {}; +class Ec { constructor(e, n, r, i, s, o) { this.from = e, this.to = n, this.dir = r, this.isolates = i, this.fresh = s, this.order = o; } @@ -8679,20 +8679,20 @@ class Qc { let r = [], i = e.length ? e[e.length - 1].dir : Qe.LTR; for (let s = Math.max(0, e.length - 10); s < e.length; s++) { let o = e[s]; - o.dir == i && !n.touchesRange(o.from, o.to) && r.push(new Qc(n.mapPos(o.from, 1), n.mapPos(o.to, -1), o.dir, o.isolates, !1, o.order)); + o.dir == i && !n.touchesRange(o.from, o.to) && r.push(new Ec(n.mapPos(o.from, 1), n.mapPos(o.to, -1), o.dir, o.isolates, !1, o.order)); } return r; } } -function N0(t, e, n) { +function q0(t, e, n) { for (let r = t.state.facet(e), i = r.length - 1; i >= 0; i--) { let s = r[i], o = typeof s == "function" ? s(t) : s; - o && Rd(o, n); + o && Md(o, n); } return n; } -const I2 = N.mac ? "mac" : N.windows ? "win" : N.linux ? "linux" : "key"; -function N2(t, e) { +const NQ = N.mac ? "mac" : N.windows ? "win" : N.linux ? "linux" : "key"; +function qQ(t, e) { const n = t.split(/-(?!$)/); let r = n[n.length - 1]; r == "Space" && (r = " "); @@ -8717,21 +8717,21 @@ function N2(t, e) { function wa(t, e, n) { return e.altKey && (t = "Alt-" + t), e.ctrlKey && (t = "Ctrl-" + t), e.metaKey && (t = "Meta-" + t), n !== !1 && e.shiftKey && (t = "Shift-" + t), t; } -const q2 = /* @__PURE__ */ bn.default(/* @__PURE__ */ E.domEventHandlers({ +const BQ = /* @__PURE__ */ bn.default(/* @__PURE__ */ E.domEventHandlers({ keydown(t, e) { - return Tx(Px(e.state), t, e, "editor"); + return Qx(Tx(e.state), t, e, "editor"); } -})), sr = /* @__PURE__ */ I.define({ enables: q2 }), q0 = /* @__PURE__ */ new WeakMap(); -function Px(t) { - let e = t.facet(sr), n = q0.get(e); - return n || q0.set(e, n = X2(e.reduce((r, i) => r.concat(i), []))), n; +})), sr = /* @__PURE__ */ I.define({ enables: BQ }), B0 = /* @__PURE__ */ new WeakMap(); +function Tx(t) { + let e = t.facet(sr), n = B0.get(e); + return n || B0.set(e, n = WQ(e.reduce((r, i) => r.concat(i), []))), n; } -function B2(t, e, n) { - return Tx(Px(t.state), e, t, n); +function YQ(t, e, n) { + return Qx(Tx(t.state), e, t, n); } let _r = null; -const Y2 = 4e3; -function X2(t, e = I2) { +const XQ = 4e3; +function WQ(t, e = NQ) { let n = /* @__PURE__ */ Object.create(null), r = /* @__PURE__ */ Object.create(null), i = (o, l) => { let a = r[o]; if (a == null) @@ -8740,7 +8740,7 @@ function X2(t, e = I2) { throw new Error("Key binding " + o + " is used both as a regular binding and as a multi-stroke prefix"); }, s = (o, l, a, c, h) => { var u, f; - let d = n[o] || (n[o] = /* @__PURE__ */ Object.create(null)), p = l.split(/ (?!$)/).map((O) => N2(O, e)); + let d = n[o] || (n[o] = /* @__PURE__ */ Object.create(null)), p = l.split(/ (?!$)/).map((O) => qQ(O, e)); for (let O = 1; O < p.length; O++) { let b = p.slice(0, O).join(" "); i(b, !0), d[b] || (d[b] = { @@ -8750,18 +8750,18 @@ function X2(t, e = I2) { let w = _r = { view: y, prefix: b, scope: o }; return setTimeout(() => { _r == w && (_r = null); - }, Y2), !0; + }, XQ), !0; }] }); } - let m = p.join(" "); - i(m, !1); - let g = d[m] || (d[m] = { + let g = p.join(" "); + i(g, !1); + let m = d[g] || (d[g] = { preventDefault: !1, stopPropagation: !1, run: ((f = (u = d._any) === null || u === void 0 ? void 0 : u.run) === null || f === void 0 ? void 0 : f.slice()) || [] }); - a && g.run.push(a), c && (g.preventDefault = !0), h && (g.stopPropagation = !0); + a && m.run.push(a), c && (m.preventDefault = !0), h && (m.stopPropagation = !0); }; for (let o of t) { let l = o.scope ? o.scope.split(" ") : ["editor"]; @@ -8779,21 +8779,21 @@ function X2(t, e = I2) { } return n; } -function Tx(t, e, n, r) { - let i = dQ(e), s = et(i, 0), o = Yt(s) == i.length && i != " ", l = "", a = !1, c = !1, h = !1; - _r && _r.view == n && _r.scope == r && (l = _r.prefix + " ", gx.indexOf(e.keyCode) < 0 && (c = !0, _r = null)); - let u = /* @__PURE__ */ new Set(), f = (g) => { - if (g) { - for (let O of g.run) +function Qx(t, e, n, r) { + let i = p2(e), s = et(i, 0), o = Yt(s) == i.length && i != " ", l = "", a = !1, c = !1, h = !1; + _r && _r.view == n && _r.scope == r && (l = _r.prefix + " ", Ox.indexOf(e.keyCode) < 0 && (c = !0, _r = null)); + let u = /* @__PURE__ */ new Set(), f = (m) => { + if (m) { + for (let O of m.run) if (!u.has(O) && (u.add(O), O(n, e))) - return g.stopPropagation && (h = !0), !0; - g.preventDefault && (g.stopPropagation && (h = !0), c = !0); + return m.stopPropagation && (h = !0), !0; + m.preventDefault && (m.stopPropagation && (h = !0), c = !0); } return !1; - }, d = t[r], p, m; - return d && (f(d[l + wa(i, e, !o)]) ? a = !0 : o && (e.altKey || e.metaKey || e.ctrlKey) && !(N.windows && e.ctrlKey && e.altKey) && (p = qr[e.keyCode]) && p != i ? (f(d[l + wa(p, e, !0)]) || e.shiftKey && (m = Ho[e.keyCode]) != i && m != p && f(d[l + wa(m, e, !1)])) && (a = !0) : o && e.shiftKey && f(d[l + wa(i, e, !0)]) && (a = !0), !a && f(d._any) && (a = !0)), c && (a = !0), a && h && e.stopPropagation(), a; + }, d = t[r], p, g; + return d && (f(d[l + wa(i, e, !o)]) ? a = !0 : o && (e.altKey || e.metaKey || e.ctrlKey) && !(N.windows && e.ctrlKey && e.altKey) && (p = qr[e.keyCode]) && p != i ? (f(d[l + wa(p, e, !0)]) || e.shiftKey && (g = Go[e.keyCode]) != i && g != p && f(d[l + wa(g, e, !1)])) && (a = !0) : o && e.shiftKey && f(d[l + wa(i, e, !0)]) && (a = !0), !a && f(d._any) && (a = !0)), c && (a = !0), a && h && e.stopPropagation(), a; } -class Ll { +class Zl { constructor(e, n, r, i, s) { this.className = e, this.left = n, this.top = r, this.width = i, this.height = s; } @@ -8815,17 +8815,17 @@ class Ll { let i = e.coordsAtPos(r.head, r.assoc || 1); if (!i) return []; - let s = Qx(e); - return [new Ll(n, i.left - s.left, i.top - s.top, null, i.bottom - i.top)]; + let s = Ex(e); + return [new Zl(n, i.left - s.left, i.top - s.top, null, i.bottom - i.top)]; } else - return W2(e, n, r); + return VQ(e, n, r); } } -function Qx(t) { +function Ex(t) { let e = t.scrollDOM.getBoundingClientRect(); return { left: (t.textDirection == Qe.LTR ? e.left : e.right - t.scrollDOM.clientWidth * t.scaleX) - t.scrollDOM.scrollLeft * t.scaleX, top: e.top - t.scrollDOM.scrollTop * t.scaleY }; } -function B0(t, e, n) { +function Y0(t, e, n) { let r = C.cursor(e); return { from: Math.max(n.from, t.moveToLineBoundary(r, !1, !0).from), @@ -8833,18 +8833,18 @@ function B0(t, e, n) { type: bt.Text }; } -function W2(t, e, n) { +function VQ(t, e, n) { if (n.to <= t.viewport.from || n.from >= t.viewport.to) return []; - let r = Math.max(n.from, t.viewport.from), i = Math.min(n.to, t.viewport.to), s = t.textDirection == Qe.LTR, o = t.contentDOM, l = o.getBoundingClientRect(), a = Qx(t), c = o.querySelector(".cm-line"), h = c && window.getComputedStyle(c), u = l.left + (h ? parseInt(h.paddingLeft) + Math.min(0, parseInt(h.textIndent)) : 0), f = l.right - (h ? parseInt(h.paddingRight) : 0), d = Yd(t, r), p = Yd(t, i), m = d.type == bt.Text ? d : null, g = p.type == bt.Text ? p : null; - if (m && (t.lineWrapping || d.widgetLineBreaks) && (m = B0(t, r, m)), g && (t.lineWrapping || p.widgetLineBreaks) && (g = B0(t, i, g)), m && g && m.from == g.from) - return b(y(n.from, n.to, m)); + let r = Math.max(n.from, t.viewport.from), i = Math.min(n.to, t.viewport.to), s = t.textDirection == Qe.LTR, o = t.contentDOM, l = o.getBoundingClientRect(), a = Ex(t), c = o.querySelector(".cm-line"), h = c && window.getComputedStyle(c), u = l.left + (h ? parseInt(h.paddingLeft) + Math.min(0, parseInt(h.textIndent)) : 0), f = l.right - (h ? parseInt(h.paddingRight) : 0), d = Xd(t, r), p = Xd(t, i), g = d.type == bt.Text ? d : null, m = p.type == bt.Text ? p : null; + if (g && (t.lineWrapping || d.widgetLineBreaks) && (g = Y0(t, r, g)), m && (t.lineWrapping || p.widgetLineBreaks) && (m = Y0(t, i, m)), g && m && g.from == m.from) + return b(y(n.from, n.to, g)); { - let S = m ? y(n.from, null, m) : w(d, !1), x = g ? y(null, n.to, g) : w(p, !0), v = []; - return (m || d).to < (g || p).from - (m && g ? 1 : 0) || d.widgetLineBreaks > 1 && S.bottom + t.defaultLineHeight / 2 < x.top ? v.push(O(u, S.bottom, f, x.top)) : S.bottom < x.top && t.elementAtHeight((S.bottom + x.top) / 2).type == bt.Text && (S.bottom = x.top = (S.bottom + x.top) / 2), b(S).concat(v).concat(b(x)); + let S = g ? y(n.from, null, g) : w(d, !1), x = m ? y(null, n.to, m) : w(p, !0), v = []; + return (g || d).to < (m || p).from - (g && m ? 1 : 0) || d.widgetLineBreaks > 1 && S.bottom + t.defaultLineHeight / 2 < x.top ? v.push(O(u, S.bottom, f, x.top)) : S.bottom < x.top && t.elementAtHeight((S.bottom + x.top) / 2).type == bt.Text && (S.bottom = x.top = (S.bottom + x.top) / 2), b(S).concat(v).concat(b(x)); } function O(S, x, v, P) { - return new Ll(e, S - a.left, x - a.top - 0.01, v - S, P - x + 0.01); + return new Zl(e, S - a.left, x - a.top - 0.01, v - S, P - x + 0.01); } function b({ top: S, bottom: x, horizontal: v }) { let P = []; @@ -8855,8 +8855,8 @@ function W2(t, e, n) { function y(S, x, v) { let P = 1e9, D = -1e9, T = []; function M(A, j, z, de, Oe) { - let Ie = t.coordsAtPos(A, A == v.to ? -2 : 2), ge = t.coordsAtPos(z, z == v.from ? 2 : -2); - !Ie || !ge || (P = Math.min(Ie.top, ge.top, P), D = Math.max(Ie.bottom, ge.bottom, D), Oe == Qe.LTR ? T.push(s && j ? u : Ie.left, s && de ? f : ge.right) : T.push(!s && de ? u : ge.left, !s && j ? f : Ie.right)); + let Ie = t.coordsAtPos(A, A == v.to ? -2 : 2), me = t.coordsAtPos(z, z == v.from ? 2 : -2); + !Ie || !me || (P = Math.min(Ie.top, me.top, P), D = Math.max(Ie.bottom, me.bottom, D), Oe == Qe.LTR ? T.push(s && j ? u : Ie.left, s && de ? f : me.right) : T.push(!s && de ? u : me.left, !s && j ? f : Ie.right)); } let q = S != null ? S : v.from, U = x != null ? x : v.to; for (let A of t.visibleRanges) @@ -8864,10 +8864,10 @@ function W2(t, e, n) { for (let j = Math.max(A.from, q), z = Math.min(A.to, U); ; ) { let de = t.state.doc.lineAt(j); for (let Oe of t.bidiSpans(de)) { - let Ie = Oe.from + de.from, ge = Oe.to + de.from; + let Ie = Oe.from + de.from, me = Oe.to + de.from; if (Ie >= z) break; - ge > j && M(Math.max(Ie, j), S == null && Ie <= q, Math.min(ge, z), x == null && ge >= U, Oe.dir); + me > j && M(Math.max(Ie, j), S == null && Ie <= q, Math.min(me, z), x == null && me >= U, Oe.dir); } if (j = de.to + 1, j >= z) break; @@ -8879,10 +8879,10 @@ function W2(t, e, n) { return { top: v, bottom: v, horizontal: [] }; } } -function V2(t, e) { +function jQ(t, e) { return t.constructor == e.constructor && t.eq(e); } -class j2 { +class zQ { constructor(e, n) { this.view = e, this.layer = n, 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"), n.above && this.dom.classList.add("cm-layer-above"), n.class && this.dom.classList.add(n.class), this.scale(), this.dom.setAttribute("aria-hidden", "true"), this.setOrder(e.state), e.requestMeasure(this.measureReq), n.mount && n.mount(this.dom, e); } @@ -8903,7 +8903,7 @@ class j2 { (e != this.scaleX || n != this.scaleY) && (this.scaleX = e, this.scaleY = n, this.dom.style.transform = `scale(${1 / e}, ${1 / n})`); } draw(e) { - if (e.length != this.drawn.length || e.some((n, r) => !V2(n, this.drawn[r]))) { + if (e.length != this.drawn.length || e.some((n, r) => !jQ(n, this.drawn[r]))) { let n = this.dom.firstChild, r = 0; for (let i of e) i.update && n && i.constructor && this.drawn[r].constructor && i.update(n, this.drawn[r]) ? (n = n.nextSibling, r++) : this.dom.insertBefore(i.draw(), n); @@ -8919,13 +8919,13 @@ class j2 { } } const ac = /* @__PURE__ */ I.define(); -function Ex(t) { +function Dx(t) { return [ - ke.define((e) => new j2(e, t)), + ke.define((e) => new zQ(e, t)), ac.of(t) ]; } -const Dx = !N.ios, nl = /* @__PURE__ */ I.define({ +const Rx = !N.ios, tl = /* @__PURE__ */ I.define({ combine(t) { return jn(t, { cursorBlinkRate: 1200, @@ -8936,27 +8936,27 @@ const Dx = !N.ios, nl = /* @__PURE__ */ I.define({ }); } }); -function Rx(t = {}) { +function Mx(t = {}) { return [ - nl.of(t), - z2, - F2, - U2, - nx.of(!0) + tl.of(t), + FQ, + UQ, + GQ, + rx.of(!0) ]; } -function Mx(t) { - return t.startState.facet(nl) != t.state.facet(nl); +function Zx(t) { + return t.startState.facet(tl) != t.state.facet(tl); } -const z2 = /* @__PURE__ */ Ex({ +const FQ = /* @__PURE__ */ Dx({ above: !0, markers(t) { - let { state: e } = t, n = e.facet(nl), r = []; + let { state: e } = t, n = e.facet(tl), r = []; for (let i of e.selection.ranges) { let s = i == e.selection.main; - if (i.empty ? !s || Dx : n.drawRangeCursor) { + if (i.empty ? !s || Rx : n.drawRangeCursor) { let o = s ? "cm-cursor cm-cursor-primary" : "cm-cursor cm-cursor-secondary", l = i.empty ? i : C.cursor(i.head, i.head > i.anchor ? -1 : 1); - for (let a of Ll.forRange(t, o, l)) + for (let a of Zl.forRange(t, o, l)) r.push(a); } } @@ -8964,34 +8964,34 @@ const z2 = /* @__PURE__ */ Ex({ }, update(t, e) { t.transactions.some((r) => r.selection) && (e.style.animationName = e.style.animationName == "cm-blink" ? "cm-blink2" : "cm-blink"); - let n = Mx(t); - return n && Y0(t.state, e), t.docChanged || t.selectionSet || n; + let n = Zx(t); + return n && X0(t.state, e), t.docChanged || t.selectionSet || n; }, mount(t, e) { - Y0(e.state, t); + X0(e.state, t); }, class: "cm-cursorLayer" }); -function Y0(t, e) { - e.style.animationDuration = t.facet(nl).cursorBlinkRate + "ms"; +function X0(t, e) { + e.style.animationDuration = t.facet(tl).cursorBlinkRate + "ms"; } -const F2 = /* @__PURE__ */ Ex({ +const UQ = /* @__PURE__ */ Dx({ above: !1, markers(t) { - return t.state.selection.ranges.map((e) => e.empty ? [] : Ll.forRange(t, "cm-selectionBackground", e)).reduce((e, n) => e.concat(n)); + return t.state.selection.ranges.map((e) => e.empty ? [] : Zl.forRange(t, "cm-selectionBackground", e)).reduce((e, n) => e.concat(n)); }, update(t, e) { - return t.docChanged || t.selectionSet || t.viewportChanged || Mx(t); + return t.docChanged || t.selectionSet || t.viewportChanged || Zx(t); }, class: "cm-selectionLayer" -}), zd = { +}), Fd = { ".cm-line": { "& ::selection": { backgroundColor: "transparent !important" }, "&::selection": { backgroundColor: "transparent !important" } } }; -Dx && (zd[".cm-line"].caretColor = "transparent !important", zd[".cm-content"] = { caretColor: "transparent !important" }); -const U2 = /* @__PURE__ */ bn.highest(/* @__PURE__ */ E.theme(zd)), Zx = /* @__PURE__ */ F.define({ +Rx && (Fd[".cm-line"].caretColor = "transparent !important", Fd[".cm-content"] = { caretColor: "transparent !important" }); +const GQ = /* @__PURE__ */ bn.highest(/* @__PURE__ */ E.theme(Fd)), Lx = /* @__PURE__ */ F.define({ map(t, e) { return t == null ? null : e.mapPos(t); } @@ -9000,9 +9000,9 @@ const U2 = /* @__PURE__ */ bn.highest(/* @__PURE__ */ E.theme(zd)), Zx = /* @__P return null; }, update(t, e) { - return t != null && (t = e.changes.mapPos(t)), e.effects.reduce((n, r) => r.is(Zx) ? r.value : n, t); + return t != null && (t = e.changes.mapPos(t)), e.effects.reduce((n, r) => r.is(Lx) ? r.value : n, t); } -}), G2 = /* @__PURE__ */ ke.fromClass(class { +}), HQ = /* @__PURE__ */ ke.fromClass(class { constructor(t) { this.view = t, this.cursor = null, this.measureReq = { read: this.readPos.bind(this), write: this.drawCursor.bind(this) }; } @@ -9032,7 +9032,7 @@ const U2 = /* @__PURE__ */ bn.highest(/* @__PURE__ */ E.theme(zd)), Zx = /* @__P this.cursor && this.cursor.remove(); } setDropPos(t) { - this.view.state.field(Co) != t && this.view.dispatch({ effects: Zx.of(t) }); + this.view.state.field(Co) != t && this.view.dispatch({ effects: Lx.of(t) }); } }, { eventObservers: { @@ -9050,17 +9050,17 @@ const U2 = /* @__PURE__ */ bn.highest(/* @__PURE__ */ E.theme(zd)), Zx = /* @__P } } }); -function H2() { - return [Co, G2]; +function KQ() { + return [Co, HQ]; } -function X0(t, e, n, r, i) { +function W0(t, e, n, r, i) { e.lastIndex = 0; for (let s = t.iterRange(n, r), o = n, l; !s.next().done; o += s.value.length) if (!s.lineBreak) for (; l = e.exec(s.value); ) i(o + l.index, l); } -function K2(t, e) { +function JQ(t, e) { let n = t.visibleRanges; if (n.length == 1 && n[0].from == t.viewport.from && n[0].to == t.viewport.to) return n; @@ -9069,7 +9069,7 @@ function K2(t, e) { i = Math.max(t.state.doc.lineAt(i).from, i - e), s = Math.min(t.state.doc.lineAt(s).to, s + e), r.length && r[r.length - 1].to >= i ? r[r.length - 1].to = s : r.push({ from: i, to: s }); return r; } -class J2 { +class eE { constructor(e) { const { regexp: n, decoration: r, decorate: i, boundary: s, maxLength: o = 1e3 } = e; if (!n.global) @@ -9089,8 +9089,8 @@ class J2 { } createDeco(e) { let n = new He(), r = n.add.bind(n); - for (let { from: i, to: s } of K2(e, this.maxLength)) - X0(e.state.doc, this.regexp, i, s, (o, l) => this.addMatch(l, e, o, r)); + for (let { from: i, to: s } of JQ(e, this.maxLength)) + W0(e.state.doc, this.regexp, i, s, (o, l) => this.addMatch(l, e, o, r)); return n.finish(); } updateDeco(e, n) { @@ -9116,20 +9116,20 @@ class J2 { break; } } - let f = [], d, p = (m, g, O) => f.push(O.range(m, g)); + let f = [], d, p = (g, m, O) => f.push(O.range(g, m)); if (a == c) for (this.regexp.lastIndex = h - a.from; (d = this.regexp.exec(a.text)) && d.index < u - a.from; ) this.addMatch(d, e, d.index + a.from, p); else - X0(e.state.doc, this.regexp, h, u, (m, g) => this.addMatch(g, e, m, p)); - n = n.update({ filterFrom: h, filterTo: u, filter: (m, g) => m < h || g > u, add: f }); + W0(e.state.doc, this.regexp, h, u, (g, m) => this.addMatch(m, e, g, p)); + n = n.update({ filterFrom: h, filterTo: u, filter: (g, m) => g < h || m > u, add: f }); } } return n; } } -const Fd = /x/.unicode != null ? "gu" : "g", eE = /* @__PURE__ */ new RegExp(`[\0-\b --\x7F-\x9F\xAD\u061C\u200B\u200E\u200F\u2028\u2029\u202D\u202E\u2066\u2067\u2069\uFEFF\uFFF9-\uFFFC]`, Fd), tE = { +const Ud = /x/.unicode != null ? "gu" : "g", tE = /* @__PURE__ */ new RegExp(`[\0-\b +-\x7F-\x9F\xAD\u061C\u200B\u200E\u200F\u2028\u2029\u202D\u202E\u2066\u2067\u2069\uFEFF\uFFF9-\uFFFC]`, Ud), nE = { 0: "null", 7: "bell", 8: "backspace", @@ -9153,7 +9153,7 @@ const Fd = /x/.unicode != null ? "gu" : "g", eE = /* @__PURE__ */ new RegExp(`[\ 65532: "object replacement" }; let Yu = null; -function nE() { +function rE() { var t; if (Yu == null && typeof document < "u" && document.body) { let e = document.body.style; @@ -9165,33 +9165,33 @@ const cc = /* @__PURE__ */ I.define({ combine(t) { let e = jn(t, { render: null, - specialChars: eE, + specialChars: tE, addSpecialChars: null }); - return (e.replaceTabs = !nE()) && (e.specialChars = new RegExp(" |" + e.specialChars.source, Fd)), e.addSpecialChars && (e.specialChars = new RegExp(e.specialChars.source + "|" + e.addSpecialChars.source, Fd)), e; + return (e.replaceTabs = !rE()) && (e.specialChars = new RegExp(" |" + e.specialChars.source, Ud)), e.addSpecialChars && (e.specialChars = new RegExp(e.specialChars.source + "|" + e.addSpecialChars.source, Ud)), e; } }); -function Lx(t = {}) { - return [cc.of(t), rE()]; +function Ix(t = {}) { + return [cc.of(t), iE()]; } -let W0 = null; -function rE() { - return W0 || (W0 = ke.fromClass(class { +let V0 = null; +function iE() { + return V0 || (V0 = ke.fromClass(class { constructor(t) { this.view = t, this.decorations = L.none, this.decorationCache = /* @__PURE__ */ Object.create(null), this.decorator = this.makeDecorator(t.state.facet(cc)), this.decorations = this.decorator.createDeco(t); } makeDecorator(t) { - return new J2({ + return new eE({ regexp: t.specialChars, decoration: (e, n, r) => { let { doc: i } = n.state, s = et(e[0], 0); if (s == 9) { let o = i.lineAt(r), l = n.state.tabSize, a = dn(o.text, l, r - o.from); return L.replace({ - widget: new lE((l - a % l) * this.view.defaultCharacterWidth / this.view.scaleX) + widget: new aE((l - a % l) * this.view.defaultCharacterWidth / this.view.scaleX) }); } - return this.decorationCache[s] || (this.decorationCache[s] = L.replace({ widget: new oE(t, s) })); + return this.decorationCache[s] || (this.decorationCache[s] = L.replace({ widget: new lE(t, s) })); }, boundary: t.replaceTabs ? void 0 : /[^]/ }); @@ -9204,11 +9204,11 @@ function rE() { decorations: (t) => t.decorations })); } -const iE = "\u2022"; -function sE(t) { - return t >= 32 ? iE : t == 10 ? "\u2424" : String.fromCharCode(9216 + t); +const sE = "\u2022"; +function oE(t) { + return t >= 32 ? sE : t == 10 ? "\u2424" : String.fromCharCode(9216 + t); } -class oE extends qt { +class lE extends qt { constructor(e, n) { super(), this.options = e, this.code = n; } @@ -9216,7 +9216,7 @@ class oE extends qt { return e.code == this.code; } toDOM(e) { - let n = sE(this.code), r = e.state.phrase("Control character") + " " + (tE[this.code] || "0x" + this.code.toString(16)), i = this.options.render && this.options.render(this.code, r, n); + let n = oE(this.code), r = e.state.phrase("Control character") + " " + (nE[this.code] || "0x" + this.code.toString(16)), i = this.options.render && this.options.render(this.code, r, n); if (i) return i; let s = document.createElement("span"); @@ -9226,7 +9226,7 @@ class oE extends qt { return !1; } } -class lE extends qt { +class aE extends qt { constructor(e) { super(), this.width = e; } @@ -9241,10 +9241,10 @@ class lE extends qt { return !1; } } -function Ix() { - return cE; +function Nx() { + return hE; } -const aE = /* @__PURE__ */ L.line({ class: "cm-activeLine" }), cE = /* @__PURE__ */ ke.fromClass(class { +const cE = /* @__PURE__ */ L.line({ class: "cm-activeLine" }), hE = /* @__PURE__ */ ke.fromClass(class { constructor(t) { this.decorations = this.getDeco(t); } @@ -9255,16 +9255,16 @@ const aE = /* @__PURE__ */ L.line({ class: "cm-activeLine" }), cE = /* @__PURE__ let e = -1, n = []; for (let r of t.state.selection.ranges) { let i = t.lineBlockAt(r.head); - i.from > e && (n.push(aE.range(i.from)), e = i.from); + i.from > e && (n.push(cE.range(i.from)), e = i.from); } return L.set(n); } }, { decorations: (t) => t.decorations -}), Ud = 2e3; -function hE(t, e, n) { +}), Gd = 2e3; +function uE(t, e, n) { let r = Math.min(e.line, n.line), i = Math.max(e.line, n.line), s = []; - if (e.off > Ud || n.off > Ud || e.col < 0 || n.col < 0) { + if (e.off > Gd || n.off > Gd || e.col < 0 || n.col < 0) { let o = Math.min(e.off, n.off), l = Math.max(e.off, n.off); for (let a = r; a <= i; a++) { let c = t.doc.line(a); @@ -9273,27 +9273,27 @@ function hE(t, e, n) { } else { let o = Math.min(e.col, n.col), l = Math.max(e.col, n.col); for (let a = r; a <= i; a++) { - let c = t.doc.line(a), h = Ad(c.text, o, t.tabSize, !0); + let c = t.doc.line(a), h = $d(c.text, o, t.tabSize, !0); if (h < 0) s.push(C.cursor(c.to)); else { - let u = Ad(c.text, l, t.tabSize); + let u = $d(c.text, l, t.tabSize); s.push(C.range(c.from + h, c.from + u)); } } } return s; } -function uE(t, e) { +function fE(t, e) { let n = t.coordsAtPos(t.viewport.from); return n ? Math.round(Math.abs((n.left - e) / t.defaultCharacterWidth)) : -1; } -function V0(t, e) { - let n = t.posAtCoords({ x: e.clientX, y: e.clientY }, !1), r = t.state.doc.lineAt(n), i = n - r.from, s = i > Ud ? -1 : i == r.length ? uE(t, e.clientX) : dn(r.text, t.state.tabSize, n - r.from); +function j0(t, e) { + let n = t.posAtCoords({ x: e.clientX, y: e.clientY }, !1), r = t.state.doc.lineAt(n), i = n - r.from, s = i > Gd ? -1 : i == r.length ? fE(t, e.clientX) : dn(r.text, t.state.tabSize, n - r.from); return { line: r.number, col: s, off: i }; } -function fE(t, e) { - let n = V0(t, e), r = t.state.selection; +function dE(t, e) { + let n = j0(t, e), r = t.state.selection; return n ? { update(i) { if (i.docChanged) { @@ -9302,26 +9302,26 @@ function fE(t, e) { } }, get(i, s, o) { - let l = V0(t, i); + let l = j0(t, i); if (!l) return r; - let a = hE(t.state, n, l); + let a = uE(t.state, n, l); return a.length ? o ? C.create(a.concat(r.ranges)) : C.create(a) : r; } } : null; } -function dE(t) { +function pE(t) { let e = (t == null ? void 0 : t.eventFilter) || ((n) => n.altKey && n.button == 0); - return E.mouseSelectionStyle.of((n, r) => e(r) ? fE(n, r) : null); + return E.mouseSelectionStyle.of((n, r) => e(r) ? dE(n, r) : null); } -const pE = { +const gE = { Alt: [18, (t) => !!t.altKey], Control: [17, (t) => !!t.ctrlKey], Shift: [16, (t) => !!t.shiftKey], Meta: [91, (t) => !!t.metaKey] }, mE = { style: "cursor: crosshair" }; -function gE(t = {}) { - let [e, n] = pE[t.key || "Alt"], r = ke.fromClass(class { +function OE(t = {}) { + let [e, n] = gE[t.key || "Alt"], r = ke.fromClass(class { constructor(i) { this.view = i, this.isDown = !1; } @@ -9350,7 +9350,7 @@ function gE(t = {}) { ]; } const co = "-10000px"; -class Nx { +class qx { constructor(e, n, r) { this.facet = n, this.createTooltipView = r, this.input = e.state.facet(n), this.tooltips = this.input.filter((i) => i), this.tooltipViews = this.tooltips.map(r); } @@ -9383,7 +9383,7 @@ class Nx { return n && (l.forEach((a, c) => n[c] = a), n.length = l.length), this.input = i, this.tooltips = s, this.tooltipViews = o, !0; } } -function OE(t) { +function bE(t) { let { win: e } = t; return { top: 0, left: 0, bottom: e.innerHeight, right: e.innerWidth }; } @@ -9393,14 +9393,14 @@ const Xu = /* @__PURE__ */ I.define({ return { position: N.ios ? "absolute" : ((e = t.find((i) => i.position)) === null || e === void 0 ? void 0 : e.position) || "fixed", parent: ((n = t.find((i) => i.parent)) === null || n === void 0 ? void 0 : n.parent) || null, - tooltipSpace: ((r = t.find((i) => i.tooltipSpace)) === null || r === void 0 ? void 0 : r.tooltipSpace) || OE + tooltipSpace: ((r = t.find((i) => i.tooltipSpace)) === null || r === void 0 ? void 0 : r.tooltipSpace) || bE }; } -}), j0 = /* @__PURE__ */ new WeakMap(), xm = /* @__PURE__ */ ke.fromClass(class { +}), z0 = /* @__PURE__ */ new WeakMap(), vg = /* @__PURE__ */ ke.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(Xu); - 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 Nx(t, vm, (n) => this.createTooltip(n)), this.intersectionObserver = typeof IntersectionObserver == "function" ? new IntersectionObserver((n) => { + 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 qx(t, Sg, (n) => this.createTooltip(n)), this.intersectionObserver = typeof IntersectionObserver == "function" ? new IntersectionObserver((n) => { Date.now() > this.lastTransaction - 50 && n.length > 0 && n[n.length - 1].intersectionRatio < 1 && this.measureSoon(); }, { threshold: [1] }) : null, this.observeIntersection(), t.win.addEventListener("resize", this.measureSoon = this.measureSoon.bind(this)), this.maybeMeasure(); } @@ -9499,26 +9499,26 @@ const Xu = /* @__PURE__ */ I.define({ h.style.top = co; continue; } - let d = a.arrow ? c.dom.querySelector(".cm-tooltip-arrow") : null, p = d ? 7 : 0, m = f.right - f.left, g = (e = j0.get(c)) !== null && e !== void 0 ? e : f.bottom - f.top, O = c.offset || yE, b = this.view.textDirection == Qe.LTR, y = f.width > r.right - r.left ? b ? r.left : r.right - f.width : b ? Math.min(u.left - (d ? 14 : 0) + O.x, r.right - m) : Math.max(r.left, u.left - m + (d ? 14 : 0) - O.x), w = this.above[l]; + let d = a.arrow ? c.dom.querySelector(".cm-tooltip-arrow") : null, p = d ? 7 : 0, g = f.right - f.left, m = (e = z0.get(c)) !== null && e !== void 0 ? e : f.bottom - f.top, O = c.offset || wE, b = this.view.textDirection == Qe.LTR, y = f.width > r.right - r.left ? b ? r.left : r.right - f.width : b ? Math.min(u.left - (d ? 14 : 0) + O.x, r.right - g) : Math.max(r.left, u.left - g + (d ? 14 : 0) - O.x), w = this.above[l]; !a.strictSide && (w ? u.top - (f.bottom - f.top) - O.y < r.top : u.bottom + (f.bottom - f.top) + O.y > r.bottom) && w == r.bottom - u.bottom > u.top - r.top && (w = this.above[l] = !w); let S = (w ? u.top - r.top : r.bottom - u.bottom) - p; - if (S < g && c.resize !== !1) { + if (S < m && c.resize !== !1) { if (S < this.view.defaultLineHeight) { h.style.top = co; continue; } - j0.set(c, g), h.style.height = (g = S) / s + "px"; + z0.set(c, m), h.style.height = (m = S) / s + "px"; } else h.style.height && (h.style.height = ""); - let x = w ? u.top - g - p - O.y : u.bottom + p + O.y, v = y + m; + let x = w ? u.top - m - p - O.y : u.bottom + p + O.y, v = y + g; if (c.overlap !== !0) for (let P of o) - P.left < v && P.right > y && P.top < x + g && P.bottom > x && (x = w ? P.top - g - 2 - p : P.bottom + p + 2); + P.left < v && P.right > y && P.top < x + m && P.bottom > x && (x = w ? P.top - m - 2 - p : P.bottom + p + 2); if (this.position == "absolute" ? (h.style.top = (x - t.parent.top) / s + "px", h.style.left = (y - t.parent.left) / i + "px") : (h.style.top = x / s + "px", h.style.left = y / i + "px"), d) { let P = u.left + (b ? O.x : -O.x) - (y + 14 - 7); d.style.left = P / i + "px"; } - c.overlap !== !0 && o.push({ left: y, top: x, right: v, bottom: x + g }), h.classList.toggle("cm-tooltip-above", w), h.classList.toggle("cm-tooltip-below", !w), c.positioned && c.positioned(t.space); + c.overlap !== !0 && o.push({ left: y, top: x, right: v, bottom: x + m }), h.classList.toggle("cm-tooltip-above", w), h.classList.toggle("cm-tooltip-below", !w), c.positioned && c.positioned(t.space); } } maybeMeasure() { @@ -9532,7 +9532,7 @@ const Xu = /* @__PURE__ */ I.define({ this.maybeMeasure(); } } -}), bE = /* @__PURE__ */ E.baseTheme({ +}), yE = /* @__PURE__ */ E.baseTheme({ ".cm-tooltip": { zIndex: 100, boxSizing: "border-box" @@ -9593,15 +9593,15 @@ const Xu = /* @__PURE__ */ I.define({ borderBottomColor: "transparent" } } -}), yE = { x: 0, y: 0 }, vm = /* @__PURE__ */ I.define({ - enables: [xm, bE] -}), Ec = /* @__PURE__ */ I.define(); -class Zh { +}), wE = { x: 0, y: 0 }, Sg = /* @__PURE__ */ I.define({ + enables: [vg, yE] +}), Dc = /* @__PURE__ */ I.define(); +class Lh { static create(e) { - return new Zh(e); + return new Lh(e); } constructor(e) { - this.view = e, this.mounted = !1, this.dom = document.createElement("div"), this.dom.classList.add("cm-tooltip-hover"), this.manager = new Nx(e, Ec, (n) => this.createHostedView(n)); + this.view = e, this.mounted = !1, this.dom = document.createElement("div"), this.dom.classList.add("cm-tooltip-hover"), this.manager = new qx(e, Dc, (n) => this.createHostedView(n)); } createHostedView(e) { let n = e.create(this.view); @@ -9650,20 +9650,20 @@ class Zh { return this.passProp("resize"); } } -const wE = /* @__PURE__ */ vm.compute([Ec], (t) => { - let e = t.facet(Ec).filter((n) => n); +const kE = /* @__PURE__ */ Sg.compute([Dc], (t) => { + let e = t.facet(Dc).filter((n) => n); return e.length === 0 ? null : { pos: Math.min(...e.map((n) => n.pos)), end: Math.max(...e.map((n) => { var r; return (r = n.end) !== null && r !== void 0 ? r : n.pos; })), - create: Zh.create, + create: Lh.create, above: e[0].above, arrow: e.some((n) => n.arrow) }; }); -class kE { +class xE { constructor(e, n, r, i, s) { this.view = e, this.source = n, this.field = r, 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)); } @@ -9706,16 +9706,16 @@ class kE { o && e.dispatch({ effects: this.setHover.of(o) }); } get tooltip() { - let e = this.view.plugin(xm), n = e ? e.manager.tooltips.findIndex((r) => r.create == Zh.create) : -1; + let e = this.view.plugin(vg), n = e ? e.manager.tooltips.findIndex((r) => r.create == Lh.create) : -1; return n > -1 ? e.manager.tooltipViews[n] : null; } mousemove(e) { var n; 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: r, tooltip: i } = this; - if (r && i && !xE(i.dom, e) || this.pending) { + if (r && i && !vE(i.dom, e) || this.pending) { let { pos: s } = r || this.pending, o = (n = r == null ? void 0 : r.end) !== null && n !== void 0 ? n : s; - (s == o ? this.view.posAtCoords(this.lastMove) != s : !vE(this.view, s, o, e.clientX, e.clientY)) && (this.view.dispatch({ effects: this.setHover.of(null) }), this.pending = null); + (s == o ? this.view.posAtCoords(this.lastMove) != s : !SE(this.view, s, o, e.clientX, e.clientY)) && (this.view.dispatch({ effects: this.setHover.of(null) }), this.pending = null); } } mouseleave(e) { @@ -9737,18 +9737,18 @@ class kE { } } const ka = 4; -function xE(t, e) { +function vE(t, e) { let n = t.getBoundingClientRect(); return e.clientX >= n.left - ka && e.clientX <= n.right + ka && e.clientY >= n.top - ka && e.clientY <= n.bottom + ka; } -function vE(t, e, n, r, i, s) { +function SE(t, e, n, r, i, s) { let o = t.scrollDOM.getBoundingClientRect(), l = t.documentTop + t.documentPadding.top + t.contentHeight; if (o.left > r || o.right < r || o.top > i || Math.min(o.bottom, l) < i) return !1; let a = t.posAtCoords({ x: r, y: i }, !1); return a >= e && a <= n; } -function SE(t, e = {}) { +function _E(t, e = {}) { let n = F.define(), r = Ee.define({ create() { return null; @@ -9764,25 +9764,25 @@ function SE(t, e = {}) { l.pos = o, i.end != null && (l.end = s.changes.mapPos(i.end)), i = l; } for (let o of s.effects) - o.is(n) && (i = o.value), o.is(_E) && (i = null); + o.is(n) && (i = o.value), o.is(CE) && (i = null); return i; }, - provide: (i) => Ec.from(i) + provide: (i) => Dc.from(i) }); return [ r, - ke.define((i) => new kE(i, t, r, n, e.hoverTime || 300)), - wE + ke.define((i) => new xE(i, t, r, n, e.hoverTime || 300)), + kE ]; } -function qx(t, e) { - let n = t.plugin(xm); +function Bx(t, e) { + let n = t.plugin(vg); if (!n) return null; let r = n.manager.tooltips.indexOf(e); return r < 0 ? null : n.manager.tooltipViews[r]; } -const _E = /* @__PURE__ */ F.define(), z0 = /* @__PURE__ */ I.define({ +const CE = /* @__PURE__ */ F.define(), F0 = /* @__PURE__ */ I.define({ combine(t) { let e, n; for (let r of t) @@ -9790,22 +9790,22 @@ const _E = /* @__PURE__ */ F.define(), z0 = /* @__PURE__ */ I.define({ return { topContainer: e, bottomContainer: n }; } }); -function rl(t, e) { - let n = t.plugin(Bx), r = n ? n.specs.indexOf(e) : -1; +function nl(t, e) { + let n = t.plugin(Yx), r = n ? n.specs.indexOf(e) : -1; return r > -1 ? n.panels[r] : null; } -const Bx = /* @__PURE__ */ ke.fromClass(class { +const Yx = /* @__PURE__ */ ke.fromClass(class { constructor(t) { - this.input = t.state.facet(il), this.specs = this.input.filter((n) => n), this.panels = this.specs.map((n) => n(t)); - let e = t.state.facet(z0); + this.input = t.state.facet(rl), this.specs = this.input.filter((n) => n), this.panels = this.specs.map((n) => n(t)); + let e = t.state.facet(F0); this.top = new xa(t, !0, e.topContainer), this.bottom = new xa(t, !1, e.bottomContainer), this.top.sync(this.panels.filter((n) => n.top)), this.bottom.sync(this.panels.filter((n) => !n.top)); for (let n of this.panels) n.dom.classList.add("cm-panel"), n.mount && n.mount(); } update(t) { - let e = t.state.facet(z0); + let e = t.state.facet(F0); this.top.container != e.topContainer && (this.top.sync([]), this.top = new xa(t.view, !0, e.topContainer)), this.bottom.container != e.bottomContainer && (this.bottom.sync([]), this.bottom = new xa(t.view, !1, e.bottomContainer)), this.top.syncClasses(), this.bottom.syncClasses(); - let n = t.state.facet(il); + let n = t.state.facet(rl); if (n != this.input) { let r = n.filter((a) => a), i = [], s = [], o = [], l = []; for (let a of r) { @@ -9851,12 +9851,12 @@ class xa { for (let n of this.panels) if (n.dom.parentNode == this.dom) { for (; e != n.dom; ) - e = F0(e); + e = U0(e); e = e.nextSibling; } else this.dom.insertBefore(n.dom, e); for (; e; ) - e = F0(e); + e = U0(e); } scrollMargin() { return !this.dom || this.container ? 0 : Math.max(0, this.top ? this.dom.getBoundingClientRect().bottom - Math.max(0, this.view.scrollDOM.getBoundingClientRect().top) : Math.min(innerHeight, this.view.scrollDOM.getBoundingClientRect().bottom) - this.dom.getBoundingClientRect().top); @@ -9870,12 +9870,12 @@ class xa { } } } -function F0(t) { +function U0(t) { let e = t.nextSibling; return t.remove(), e; } -const il = /* @__PURE__ */ I.define({ - enables: Bx +const rl = /* @__PURE__ */ I.define({ + enables: Yx }); class Ht extends Si { compare(e) { @@ -9892,7 +9892,7 @@ Ht.prototype.toDOM = void 0; Ht.prototype.mapMode = nt.TrackBefore; Ht.prototype.startSide = Ht.prototype.endSide = -1; Ht.prototype.point = !0; -const hc = /* @__PURE__ */ I.define(), CE = { +const hc = /* @__PURE__ */ I.define(), AE = { class: "", renderEmptyElements: !1, elementStyle: "", @@ -9904,42 +9904,42 @@ const hc = /* @__PURE__ */ I.define(), CE = { updateSpacer: null, domEventHandlers: {} }, Lo = /* @__PURE__ */ I.define(); -function Lh(t) { - return [Yx(), Lo.of(Object.assign(Object.assign({}, CE), t))]; +function Ih(t) { + return [Xx(), Lo.of(Object.assign(Object.assign({}, AE), t))]; } -const Gd = /* @__PURE__ */ I.define({ +const Hd = /* @__PURE__ */ I.define({ combine: (t) => t.some((e) => e) }); -function Yx(t) { +function Xx(t) { let e = [ - AE + $E ]; - return t && t.fixed === !1 && e.push(Gd.of(!0)), e; + return t && t.fixed === !1 && e.push(Hd.of(!0)), e; } -const AE = /* @__PURE__ */ ke.fromClass(class { +const $E = /* @__PURE__ */ ke.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(Lo).map((e) => new G0(t, e)); + this.view = t, this.prevViewport = t.viewport, this.dom = document.createElement("div"), this.dom.className = "cm-gutters", this.dom.setAttribute("aria-hidden", "true"), this.dom.style.minHeight = this.view.contentHeight / this.view.scaleY + "px", this.gutters = t.state.facet(Lo).map((e) => new H0(t, e)); for (let e of this.gutters) this.dom.appendChild(e.dom); - this.fixed = !t.state.facet(Gd), this.fixed && (this.dom.style.position = "sticky"), this.syncGutters(!1), t.scrollDOM.insertBefore(this.dom, t.contentDOM); + this.fixed = !t.state.facet(Hd), this.fixed && (this.dom.style.position = "sticky"), this.syncGutters(!1), t.scrollDOM.insertBefore(this.dom, t.contentDOM); } update(t) { if (this.updateGutters(t)) { let e = this.prevViewport, n = t.view.viewport, r = Math.min(e.to, n.to) - Math.max(e.from, n.from); this.syncGutters(r < (n.to - n.from) * 0.8); } - t.geometryChanged && (this.dom.style.minHeight = this.view.contentHeight + "px"), this.view.state.facet(Gd) != !this.fixed && (this.fixed = !this.fixed, this.dom.style.position = this.fixed ? "sticky" : ""), this.prevViewport = t.view.viewport; + t.geometryChanged && (this.dom.style.minHeight = this.view.contentHeight + "px"), this.view.state.facet(Hd) != !this.fixed && (this.fixed = !this.fixed, this.dom.style.position = this.fixed ? "sticky" : ""), this.prevViewport = t.view.viewport; } syncGutters(t) { let e = this.dom.nextSibling; t && this.dom.remove(); - let n = ie.iter(this.view.state.facet(hc), this.view.viewport.from), r = [], i = this.gutters.map((s) => new $E(s, this.view.viewport, -this.view.documentPadding.top)); + let n = ie.iter(this.view.state.facet(hc), this.view.viewport.from), r = [], i = this.gutters.map((s) => new PE(s, this.view.viewport, -this.view.documentPadding.top)); for (let s of this.view.viewportLineBlocks) if (r.length && (r = []), Array.isArray(s.type)) { let o = !0; for (let l of s.type) if (l.type == bt.Text && o) { - Hd(n, r, l.from); + Kd(n, r, l.from); for (let a of i) a.line(this.view, l, r); o = !1; @@ -9947,7 +9947,7 @@ const AE = /* @__PURE__ */ ke.fromClass(class { for (let a of i) a.widget(this.view, l); } else if (s.type == bt.Text) { - Hd(n, r, s.from); + Kd(n, r, s.from); for (let o of i) o.line(this.view, s, r); } else if (s.widget) @@ -9967,7 +9967,7 @@ const AE = /* @__PURE__ */ ke.fromClass(class { let i = []; for (let s of n) { let o = e.indexOf(s); - o < 0 ? i.push(new G0(this.view, s)) : (this.gutters[o].update(t), i.push(this.gutters[o])); + o < 0 ? i.push(new H0(this.view, s)) : (this.gutters[o].update(t), i.push(this.gutters[o])); } for (let s of this.gutters) s.dom.remove(), i.indexOf(s) < 0 && s.destroy(); @@ -9988,21 +9988,21 @@ const AE = /* @__PURE__ */ ke.fromClass(class { return !n || n.gutters.length == 0 || !n.fixed ? null : e.textDirection == Qe.LTR ? { left: n.dom.offsetWidth * e.scaleX } : { right: n.dom.offsetWidth * e.scaleX }; }) }); -function U0(t) { +function G0(t) { return Array.isArray(t) ? t : [t]; } -function Hd(t, e, n) { +function Kd(t, e, n) { for (; t.value && t.from <= n; ) t.from == n && e.push(t.value), t.next(); } -class $E { +class PE { constructor(e, n, r) { this.gutter = e, this.height = r, this.i = 0, this.cursor = ie.iter(e.markers, n.from); } addElement(e, n, r) { let { gutter: i } = this, s = (n.top - this.height) / e.scaleY, o = n.height / e.scaleY; if (this.i == i.elements.length) { - let l = new Xx(e, o, s, r); + let l = new Wx(e, o, s, r); i.elements.push(l), i.dom.appendChild(l.dom); } else i.elements[this.i].update(e, o, s, r); @@ -10010,7 +10010,7 @@ class $E { } line(e, n, r) { let i = []; - Hd(this.cursor, i, n.from), r.length && (i = i.concat(r)); + Kd(this.cursor, i, n.from), r.length && (i = i.concat(r)); let s = this.gutter.config.lineMarker(e, n, i); s && i.unshift(s); let o = this.gutter; @@ -10028,7 +10028,7 @@ class $E { } } } -class G0 { +class H0 { constructor(e, n) { this.view = e, this.config = n, this.elements = [], this.spacer = null, this.dom = document.createElement("div"), this.dom.className = "cm-gutter" + (this.config.class ? " " + this.config.class : ""); for (let r in n.domEventHandlers) @@ -10044,11 +10044,11 @@ class G0 { let l = e.lineBlockAtHeight(o - e.documentTop); n.domEventHandlers[r](e, l, i) && i.preventDefault(); }); - this.markers = U0(n.markers(e)), n.initialSpacer && (this.spacer = new Xx(e, 0, 0, [n.initialSpacer(e)]), this.dom.appendChild(this.spacer.dom), this.spacer.dom.style.cssText += "visibility: hidden; pointer-events: none"); + this.markers = G0(n.markers(e)), n.initialSpacer && (this.spacer = new Wx(e, 0, 0, [n.initialSpacer(e)]), this.dom.appendChild(this.spacer.dom), this.spacer.dom.style.cssText += "visibility: hidden; pointer-events: none"); } update(e) { let n = this.markers; - if (this.markers = U0(this.config.markers(e.view)), this.spacer && this.config.updateSpacer) { + if (this.markers = G0(this.config.markers(e.view)), this.spacer && this.config.updateSpacer) { let i = this.config.updateSpacer(this.spacer.markers[0], e); i != this.spacer.markers[0] && this.spacer.update(e.view, 0, 0, [i]); } @@ -10060,12 +10060,12 @@ class G0 { e.destroy(); } } -class Xx { +class Wx { constructor(e, n, r, i) { this.height = -1, this.above = 0, this.markers = [], this.dom = document.createElement("div"), this.dom.className = "cm-gutterElement", this.update(e, n, r, i); } update(e, n, r, i) { - this.height != n && (this.height = n, this.dom.style.height = n + "px"), this.above != r && (this.dom.style.marginTop = (this.above = r) ? r + "px" : ""), PE(this.markers, i) || this.setMarkers(e, i); + this.height != n && (this.height = n, this.dom.style.height = n + "px"), this.above != r && (this.dom.style.marginTop = (this.above = r) ? r + "px" : ""), TE(this.markers, i) || this.setMarkers(e, i); } setMarkers(e, n) { let r = "cm-gutterElement", i = this.dom.firstChild; @@ -10099,7 +10099,7 @@ class Xx { this.setMarkers(null, []); } } -function PE(t, e) { +function TE(t, e) { if (t.length != e.length) return !1; for (let n = 0; n < t.length; n++) @@ -10107,7 +10107,7 @@ function PE(t, e) { return !1; return !0; } -const TE = /* @__PURE__ */ I.define(), Ki = /* @__PURE__ */ I.define({ +const QE = /* @__PURE__ */ I.define(), Ki = /* @__PURE__ */ I.define({ combine(t) { return jn(t, { formatNumber: String, domEventHandlers: {} }, { domEventHandlers(e, n) { @@ -10135,11 +10135,11 @@ class Wu extends Ht { function Vu(t, e) { return t.state.facet(Ki).formatNumber(e, t.state); } -const QE = /* @__PURE__ */ Lo.compute([Ki], (t) => ({ +const EE = /* @__PURE__ */ Lo.compute([Ki], (t) => ({ class: "cm-lineNumbers", renderEmptyElements: !1, markers(e) { - return e.state.facet(TE); + return e.state.facet(QE); }, lineMarker(e, n, r) { return r.some((i) => i.toDOM) ? null : new Wu(Vu(e, e.state.doc.lineAt(n.from).number)); @@ -10147,52 +10147,52 @@ const QE = /* @__PURE__ */ Lo.compute([Ki], (t) => ({ widgetMarker: () => null, lineMarkerChange: (e) => e.startState.facet(Ki) != e.state.facet(Ki), initialSpacer(e) { - return new Wu(Vu(e, H0(e.state.doc.lines))); + return new Wu(Vu(e, K0(e.state.doc.lines))); }, updateSpacer(e, n) { - let r = Vu(n.view, H0(n.view.state.doc.lines)); + let r = Vu(n.view, K0(n.view.state.doc.lines)); return r == e.number ? e : new Wu(r); }, domEventHandlers: t.facet(Ki).domEventHandlers })); -function EE(t = {}) { +function DE(t = {}) { return [ Ki.of(t), - Yx(), - QE + Xx(), + EE ]; } -function H0(t) { +function K0(t) { let e = 9; for (; e < t; ) e = e * 10 + 9; return e; } -const DE = /* @__PURE__ */ new class extends Ht { +const RE = /* @__PURE__ */ new class extends Ht { constructor() { super(...arguments), this.elementClass = "cm-activeLineGutter"; } -}(), RE = /* @__PURE__ */ hc.compute(["selection"], (t) => { +}(), ME = /* @__PURE__ */ hc.compute(["selection"], (t) => { let e = [], n = -1; for (let r of t.selection.ranges) { let i = t.doc.lineAt(r.head).from; - i > n && (n = i, e.push(DE.range(i))); + i > n && (n = i, e.push(RE.range(i))); } return ie.of(e); }); -function ME() { - return RE; +function ZE() { + return ME; } -const Wx = 1024; -let ZE = 0; +const Vx = 1024; +let LE = 0; class Vt { constructor(e, n) { this.from = e, this.to = n; } } -class H { +class K { constructor(e = {}) { - this.id = ZE++, this.perNode = !!e.perNode, this.deserialize = e.deserialize || (() => { + this.id = LE++, this.perNode = !!e.perNode, this.deserialize = e.deserialize || (() => { throw new Error("This node type doesn't define a deserialize function"); }); } @@ -10205,27 +10205,27 @@ class H { }; } } -H.closedBy = new H({ deserialize: (t) => t.split(" ") }); -H.openedBy = new H({ deserialize: (t) => t.split(" ") }); -H.group = new H({ deserialize: (t) => t.split(" ") }); -H.contextHash = new H({ perNode: !0 }); -H.lookAhead = new H({ perNode: !0 }); -H.mounted = new H({ perNode: !0 }); -class sl { +K.closedBy = new K({ deserialize: (t) => t.split(" ") }); +K.openedBy = new K({ deserialize: (t) => t.split(" ") }); +K.group = new K({ deserialize: (t) => t.split(" ") }); +K.contextHash = new K({ perNode: !0 }); +K.lookAhead = new K({ perNode: !0 }); +K.mounted = new K({ perNode: !0 }); +class il { constructor(e, n, r) { this.tree = e, this.overlay = n, this.parser = r; } static get(e) { - return e && e.props && e.props[H.mounted.id]; + return e && e.props && e.props[K.mounted.id]; } } -const LE = /* @__PURE__ */ Object.create(null); +const IE = /* @__PURE__ */ Object.create(null); class Ve { constructor(e, n, r, i = 0) { this.name = e, this.props = n, this.id = r, this.flags = i; } static define(e) { - let n = e.props && e.props.length ? /* @__PURE__ */ Object.create(null) : LE, r = (e.top ? 1 : 0) | (e.skipped ? 2 : 0) | (e.error ? 4 : 0) | (e.name == null ? 8 : 0), i = new Ve(e.name || "", n, e.id, r); + let n = e.props && e.props.length ? /* @__PURE__ */ Object.create(null) : IE, r = (e.top ? 1 : 0) | (e.skipped ? 2 : 0) | (e.error ? 4 : 0) | (e.name == null ? 8 : 0), i = new Ve(e.name || "", n, e.id, r); if (e.props) { for (let s of e.props) if (Array.isArray(s) || (s = s(i)), s) { @@ -10255,7 +10255,7 @@ class Ve { if (typeof e == "string") { if (this.name == e) return !0; - let n = this.prop(H.group); + let n = this.prop(K.group); return n ? n.indexOf(e) > -1 : !1; } return this.id == e; @@ -10266,7 +10266,7 @@ class Ve { for (let i of r.split(" ")) n[i] = e[r]; return (r) => { - for (let i = r.prop(H.group), s = -1; s < (i ? i.length : 0); s++) { + for (let i = r.prop(K.group), s = -1; s < (i ? i.length : 0); s++) { let o = n[s < 0 ? r.name : i[s]]; if (o) return o; @@ -10275,7 +10275,7 @@ class Ve { } } Ve.none = new Ve("", /* @__PURE__ */ Object.create(null), 0, 8); -class Il { +class Ll { constructor(e) { this.types = e; for (let n = 0; n < e.length; n++) @@ -10292,15 +10292,15 @@ class Il { } n.push(i ? new Ve(r.name, i, r.id, r.flags) : r); } - return new Il(n); + return new Ll(n); } } -const va = /* @__PURE__ */ new WeakMap(), K0 = /* @__PURE__ */ new WeakMap(); +const va = /* @__PURE__ */ new WeakMap(), J0 = /* @__PURE__ */ new WeakMap(); var ve; (function(t) { t[t.ExcludeBuffers = 1] = "ExcludeBuffers", t[t.IncludeAnonymous = 2] = "IncludeAnonymous", t[t.IgnoreMounts = 4] = "IgnoreMounts", t[t.IgnoreOverlays = 8] = "IgnoreOverlays"; })(ve || (ve = {})); -class fe { +class ue { constructor(e, n, r, i, s) { if (this.type = e, this.children = n, this.positions = r, this.length = i, this.props = null, s && s.length) { this.props = /* @__PURE__ */ Object.create(null); @@ -10309,7 +10309,7 @@ class fe { } } toString() { - let e = sl.get(this); + let e = il.get(this); if (e && !e.overlay) return e.tree.toString(); let n = ""; @@ -10320,25 +10320,25 @@ class fe { return this.type.name ? (/\W/.test(this.type.name) && !this.type.isError ? JSON.stringify(this.type.name) : this.type.name) + (n.length ? "(" + n + ")" : "") : n; } cursor(e = 0) { - return new Dc(this.topNode, e); + return new Rc(this.topNode, e); } cursorAt(e, n = 0, r = 0) { - let i = va.get(this) || this.topNode, s = new Dc(i); + let i = va.get(this) || this.topNode, s = new Rc(i); return s.moveTo(e, n), va.set(this, s._tree), s; } get topNode() { return new dt(this, 0, 0, null); } resolve(e, n = 0) { - let r = ol(va.get(this) || this.topNode, e, n, !1); + let r = sl(va.get(this) || this.topNode, e, n, !1); return va.set(this, r), r; } resolveInner(e, n = 0) { - let r = ol(K0.get(this) || this.topNode, e, n, !0); - return K0.set(this, r), r; + let r = sl(J0.get(this) || this.topNode, e, n, !0); + return J0.set(this, r), r; } resolveStack(e, n = 0) { - return qE(this, e, n); + return BE(this, e, n); } iterate(e) { let { enter: n, leave: r, from: i = 0, to: s = this.length } = e, o = e.mode || 0, l = (o & ve.IncludeAnonymous) > 0; @@ -10367,14 +10367,14 @@ class fe { return e; } balance(e = {}) { - return this.children.length <= 8 ? this : Cm(Ve.none, this.children, this.positions, 0, this.children.length, 0, this.length, (n, r, i) => new fe(this.type, n, r, i, this.propValues), e.makeTree || ((n, r, i) => new fe(Ve.none, n, r, i))); + return this.children.length <= 8 ? this : Ag(Ve.none, this.children, this.positions, 0, this.children.length, 0, this.length, (n, r, i) => new ue(this.type, n, r, i, this.propValues), e.makeTree || ((n, r, i) => new ue(Ve.none, n, r, i))); } static build(e) { - return BE(e); + return YE(e); } } -fe.empty = new fe(Ve.none, [], [], 0); -class Sm { +ue.empty = new ue(Ve.none, [], [], 0); +class _g { constructor(e, n) { this.buffer = e, this.index = n; } @@ -10397,7 +10397,7 @@ class Sm { this.index -= 4; } fork() { - return new Sm(this.buffer, this.index); + return new _g(this.buffer, this.index); } } class Yr { @@ -10424,7 +10424,7 @@ class Yr { } findChild(e, n, r, i, s) { let { buffer: o } = this, l = -1; - for (let a = e; a != n && !(Vx(s, i, o[a + 1], o[a + 2]) && (l = a, r > 0)); a = o[a + 3]) + for (let a = e; a != n && !(jx(s, i, o[a + 1], o[a + 2]) && (l = a, r > 0)); a = o[a + 3]) ; return l; } @@ -10438,7 +10438,7 @@ class Yr { return new Yr(s, o, this.set); } } -function Vx(t, e, n, r) { +function jx(t, e, n, r) { switch (t) { case -2: return n < e; @@ -10454,7 +10454,7 @@ function Vx(t, e, n, r) { return !0; } } -function ol(t, e, n, r) { +function sl(t, e, n, r) { for (var i; t.from == t.to || (n < 1 ? t.from >= e : t.from > e) || (n > -1 ? t.to <= e : t.to < e); ) { let o = !r && t instanceof dt && t.index < 0 ? null : t.parent; if (!o) @@ -10472,25 +10472,25 @@ function ol(t, e, n, r) { t = o; } } -class jx { +class zx { cursor(e = 0) { - return new Dc(this, e); + return new Rc(this, e); } getChild(e, n = null, r = null) { - let i = J0(this, e, n, r); + let i = e1(this, e, n, r); return i.length ? i[0] : null; } getChildren(e, n = null, r = null) { - return J0(this, e, n, r); + return e1(this, e, n, r); } resolve(e, n = 0) { - return ol(this, e, n, !1); + return sl(this, e, n, !1); } resolveInner(e, n = 0) { - return ol(this, e, n, !0); + return sl(this, e, n, !0); } matchContext(e) { - return Kd(this, e); + return Jd(this, e); } enterUnfinishedNodesBefore(e) { let n = this.childBefore(e), r = this; @@ -10509,7 +10509,7 @@ class jx { return this.parent; } } -class dt extends jx { +class dt extends zx { constructor(e, n, r, i) { super(), this._tree = e, this.from = n, this.index = r, this._parent = i; } @@ -10526,16 +10526,16 @@ class dt extends jx { for (let o = this; ; ) { for (let { children: l, positions: a } = o._tree, c = n > 0 ? l.length : -1; e != c; e += n) { let h = l[e], u = a[e] + o.from; - if (!!Vx(i, r, u, u + h.length)) { + if (!!jx(i, r, u, u + h.length)) { if (h instanceof Yr) { if (s & ve.ExcludeBuffers) continue; let f = h.findChild(0, h.buffer.length, n, r - u, i); if (f > -1) - return new Dn(new IE(o, h, e, u), null, f); - } else if (s & ve.IncludeAnonymous || !h.type.isAnonymous || _m(h)) { + return new Dn(new NE(o, h, e, u), null, f); + } else if (s & ve.IncludeAnonymous || !h.type.isAnonymous || Cg(h)) { let f; - if (!(s & ve.IgnoreMounts) && (f = sl.get(h)) && !f.overlay) + if (!(s & ve.IgnoreMounts) && (f = il.get(h)) && !f.overlay) return new dt(f.tree, u, e, o); let d = new dt(h, u, e, o); return s & ve.IncludeAnonymous || !d.type.isAnonymous ? d : d.nextChild(n < 0 ? h.children.length - 1 : 0, n, r, i); @@ -10560,7 +10560,7 @@ class dt extends jx { } enter(e, n, r = 0) { let i; - if (!(r & ve.IgnoreOverlays) && (i = sl.get(this._tree)) && i.overlay) { + if (!(r & ve.IgnoreOverlays) && (i = il.get(this._tree)) && i.overlay) { let s = e - this.from; for (let { from: o, to: l } of i.overlay) if ((n > 0 ? o <= s : o < s) && (n < 0 ? l >= s : l > s)) @@ -10593,7 +10593,7 @@ class dt extends jx { return this._tree.toString(); } } -function J0(t, e, n, r) { +function e1(t, e, n, r) { let i = t.cursor(), s = []; if (!i.firstChild()) return s; @@ -10609,7 +10609,7 @@ function J0(t, e, n, r) { return r == null ? s : []; } } -function Kd(t, e, n = e.length - 1) { +function Jd(t, e, n = e.length - 1) { for (let r = t.parent; n >= 0; r = r.parent) { if (!r) return !1; @@ -10621,12 +10621,12 @@ function Kd(t, e, n = e.length - 1) { } return !0; } -class IE { +class NE { constructor(e, n, r, i) { this.parent = e, this.buffer = n, this.index = r, this.start = i; } } -class Dn extends jx { +class Dn extends zx { get name() { return this.type.name; } @@ -10684,13 +10684,13 @@ class Dn extends jx { let o = r.buffer[this.index + 1]; e.push(r.slice(i, s, o)), n.push(0); } - return new fe(this.type, e, n, this.to - this.from); + return new ue(this.type, e, n, this.to - this.from); } toString() { return this.context.buffer.childString(this.index); } } -function zx(t) { +function Fx(t) { if (!t.length) return null; let e = 0, n = t[0]; @@ -10699,32 +10699,32 @@ function zx(t) { (o.from > n.from || o.to < n.to) && (n = o, e = s); } let r = n instanceof dt && n.index < 0 ? null : n.parent, i = t.slice(); - return r ? i[e] = r : i.splice(e, 1), new NE(i, n); + return r ? i[e] = r : i.splice(e, 1), new qE(i, n); } -class NE { +class qE { constructor(e, n) { this.heads = e, this.node = n; } get next() { - return zx(this.heads); + return Fx(this.heads); } } -function qE(t, e, n) { +function BE(t, e, n) { let r = t.resolveInner(e, n), i = null; for (let s = r instanceof dt ? r : r.context.parent; s; s = s.parent) if (s.index < 0) { let o = s.parent; (i || (i = [r])).push(o.resolve(e, n)), s = o; } else { - let o = sl.get(s.tree); + let o = il.get(s.tree); if (o && o.overlay && o.overlay[0].from <= e && o.overlay[o.overlay.length - 1].to >= e) { let l = new dt(o.tree, o.overlay[0].from + s.from, -1, s); - (i || (i = [r])).push(ol(l, e, n, !1)); + (i || (i = [r])).push(sl(l, e, n, !1)); } } - return i ? zx(i) : r; + return i ? Fx(i) : r; } -class Dc { +class Rc { get name() { return this.type.name; } @@ -10819,7 +10819,7 @@ class Dc { if (n > -1) for (let s = n + e, o = e < 0 ? -1 : r._tree.children.length; s != o; s += e) { let l = r._tree.children[s]; - if (this.mode & ve.IncludeAnonymous || l instanceof Yr || !l.type.isAnonymous || _m(l)) + if (this.mode & ve.IncludeAnonymous || l instanceof Yr || !l.type.isAnonymous || Cg(l)) return !1; } return !0; @@ -10890,11 +10890,11 @@ class Dc { } matchContext(e) { if (!this.buffer) - return Kd(this.node, e); + return Jd(this.node, e); let { buffer: n } = this.buffer, { types: r } = n.set; for (let i = e.length - 1, s = this.stack.length - 1; i >= 0; s--) { if (s < 0) - return Kd(this.node, e, i); + return Jd(this.node, e, i); let o = r[n.buffer[this.stack[s]]]; if (!o.isAnonymous) { if (e[i] && e[i] != o.name) @@ -10905,18 +10905,18 @@ class Dc { return !0; } } -function _m(t) { - return t.children.some((e) => e instanceof Yr || !e.type.isAnonymous || _m(e)); +function Cg(t) { + return t.children.some((e) => e instanceof Yr || !e.type.isAnonymous || Cg(e)); } -function BE(t) { +function YE(t) { var e; - let { buffer: n, nodeSet: r, maxBufferLength: i = Wx, reused: s = [], minRepeatType: o = r.types.length } = t, l = Array.isArray(n) ? new Sm(n, n.length) : n, a = r.types, c = 0, h = 0; + let { buffer: n, nodeSet: r, maxBufferLength: i = Vx, reused: s = [], minRepeatType: o = r.types.length } = t, l = Array.isArray(n) ? new _g(n, n.length) : n, a = r.types, c = 0, h = 0; function u(S, x, v, P, D, T) { let { id: M, start: q, end: U, size: A } = l, j = h; for (; A < 0; ) if (l.next(), A == -1) { - let ge = s[M]; - v.push(ge), P.push(q - S); + let me = s[M]; + v.push(me), P.push(q - S); return; } else if (A == -3) { c = M; @@ -10927,22 +10927,22 @@ function BE(t) { } else throw new RangeError(`Unrecognized record size: ${A}`); let z = a[M], de, Oe, Ie = q - S; - if (U - q <= i && (Oe = g(l.pos - x, D))) { - let ge = new Uint16Array(Oe.size - Oe.skip), pe = l.pos - Oe.size, re = ge.length; + if (U - q <= i && (Oe = m(l.pos - x, D))) { + let me = new Uint16Array(Oe.size - Oe.skip), pe = l.pos - Oe.size, re = me.length; for (; l.pos > pe; ) - re = O(Oe.start, ge, re); - de = new Yr(ge, U - Oe.start, r), Ie = Oe.start - S; + re = O(Oe.start, me, re); + de = new Yr(me, U - Oe.start, r), Ie = Oe.start - S; } else { - let ge = l.pos - A; + let me = l.pos - A; l.next(); - let pe = [], re = [], kt = M >= o ? M : -1, he = 0, Tt = U; - for (; l.pos > ge; ) - kt >= 0 && l.id == kt && l.size >= 0 ? (l.end <= Tt - i && (p(pe, re, q, he, l.end, Tt, kt, j), he = pe.length, Tt = l.end), l.next()) : T > 2500 ? f(q, ge, pe, re) : u(q, ge, pe, re, kt, T + 1); - if (kt >= 0 && he > 0 && he < pe.length && p(pe, re, q, he, q, Tt, kt, j), pe.reverse(), re.reverse(), kt > -1 && he > 0) { - let me = d(z); - de = Cm(z, pe, re, 0, pe.length, 0, U - q, me, me); + let pe = [], re = [], kt = M >= o ? M : -1, ce = 0, Tt = U; + for (; l.pos > me; ) + kt >= 0 && l.id == kt && l.size >= 0 ? (l.end <= Tt - i && (p(pe, re, q, ce, l.end, Tt, kt, j), ce = pe.length, Tt = l.end), l.next()) : T > 2500 ? f(q, me, pe, re) : u(q, me, pe, re, kt, T + 1); + if (kt >= 0 && ce > 0 && ce < pe.length && p(pe, re, q, ce, q, Tt, kt, j), pe.reverse(), re.reverse(), kt > -1 && ce > 0) { + let ge = d(z); + de = Ag(z, pe, re, 0, pe.length, 0, U - q, ge, ge); } else - de = m(z, pe, re, U - q, j - U); + de = g(z, pe, re, U - q, j - U); } v.push(de), P.push(Ie); } @@ -10968,32 +10968,32 @@ function BE(t) { function d(S) { return (x, v, P) => { let D = 0, T = x.length - 1, M, q; - if (T >= 0 && (M = x[T]) instanceof fe) { + if (T >= 0 && (M = x[T]) instanceof ue) { if (!T && M.type == S && M.length == P) return M; - (q = M.prop(H.lookAhead)) && (D = v[T] + M.length + q); + (q = M.prop(K.lookAhead)) && (D = v[T] + M.length + q); } - return m(S, x, v, P, D); + return g(S, x, v, P, D); }; } function p(S, x, v, P, D, T, M, q) { let U = [], A = []; for (; S.length > P; ) U.push(S.pop()), A.push(x.pop() + v - D); - S.push(m(r.types[M], U, A, T - D, q - T)), x.push(D - v); + S.push(g(r.types[M], U, A, T - D, q - T)), x.push(D - v); } - function m(S, x, v, P, D = 0, T) { + function g(S, x, v, P, D = 0, T) { if (c) { - let M = [H.contextHash, c]; + let M = [K.contextHash, c]; T = T ? [M].concat(T) : [M]; } if (D > 25) { - let M = [H.lookAhead, D]; + let M = [K.lookAhead, D]; T = T ? [M].concat(T) : [M]; } - return new fe(S, x, v, P, T); + return new ue(S, x, v, P, T); } - function g(S, x) { + function m(S, x) { let v = l.fork(), P = 0, D = 0, T = 0, M = v.end - i, q = { size: 0, start: 0, skip: 0 }; e: for (let U = v.pos - S; v.pos > U; ) { @@ -11038,34 +11038,34 @@ function BE(t) { for (; l.pos > 0; ) u(t.start || 0, t.bufferStart || 0, b, y, -1, 0); let w = (e = t.length) !== null && e !== void 0 ? e : b.length ? y[0] + b[0].length : 0; - return new fe(a[t.topID], b.reverse(), y.reverse(), w); + return new ue(a[t.topID], b.reverse(), y.reverse(), w); } -const e1 = /* @__PURE__ */ new WeakMap(); +const t1 = /* @__PURE__ */ new WeakMap(); function uc(t, e) { if (!t.isAnonymous || e instanceof Yr || e.type != t) return 1; - let n = e1.get(e); + let n = t1.get(e); if (n == null) { n = 1; for (let r of e.children) { - if (r.type != t || !(r instanceof fe)) { + if (r.type != t || !(r instanceof ue)) { n = 1; break; } n += uc(t, r); } - e1.set(e, n); + t1.set(e, n); } return n; } -function Cm(t, e, n, r, i, s, o, l, a) { +function Ag(t, e, n, r, i, s, o, l, a) { let c = 0; for (let p = r; p < i; p++) c += uc(t, e[p]); let h = Math.ceil(c * 1.5 / 8), u = [], f = []; - function d(p, m, g, O, b) { - for (let y = g; y < O; ) { - let w = y, S = m[y], x = uc(t, p[y]); + function d(p, g, m, O, b) { + for (let y = m; y < O; ) { + let w = y, S = g[y], x = uc(t, p[y]); for (y++; y < O; y++) { let v = uc(t, p[y]); if (x + v >= h) @@ -11075,20 +11075,20 @@ function Cm(t, e, n, r, i, s, o, l, a) { if (y == w + 1) { if (x > h) { let v = p[w]; - d(v.children, v.positions, 0, v.children.length, m[w] + b); + d(v.children, v.positions, 0, v.children.length, g[w] + b); continue; } u.push(p[w]); } else { - let v = m[y - 1] + p[y - 1].length - S; - u.push(Cm(t, p, m, w, y, S, v, null, a)); + let v = g[y - 1] + p[y - 1].length - S; + u.push(Ag(t, p, g, w, y, S, v, null, a)); } f.push(S + b - s); } } return d(e, n, r, i, 0), (l || a)(u, f, o); } -class Fx { +class Ux { constructor() { this.map = /* @__PURE__ */ new WeakMap(); } @@ -11153,9 +11153,9 @@ class or { return i; } } -class Am { +class $g { startParse(e, n, r) { - return typeof e == "string" && (e = new YE(e)), r = r ? r.length ? r.map((i) => new Vt(i.from, i.to)) : [new Vt(0, 0)] : [new Vt(0, e.length)], this.createParse(e, n || [], r); + return typeof e == "string" && (e = new XE(e)), r = r ? r.length ? r.map((i) => new Vt(i.from, i.to)) : [new Vt(0, 0)] : [new Vt(0, e.length)], this.createParse(e, n || [], r); } parse(e, n, r) { let i = this.startParse(e, n, r); @@ -11166,7 +11166,7 @@ class Am { } } } -class YE { +class XE { constructor(e) { this.string = e; } @@ -11183,25 +11183,25 @@ class YE { return this.string.slice(e, n); } } -function Ux(t) { - return (e, n, r, i) => new WE(e, t, n, r, i); +function Gx(t) { + return (e, n, r, i) => new VE(e, t, n, r, i); } -class t1 { +class n1 { constructor(e, n, r, i, s) { this.parser = e, this.parse = n, this.overlay = r, this.target = i, this.from = s; } } -function n1(t) { +function r1(t) { if (!t.length || t.some((e) => e.from >= e.to)) throw new RangeError("Invalid inner parse ranges given: " + JSON.stringify(t)); } -class XE { +class WE { constructor(e, n, r, i, s, o, l) { this.parser = e, this.predicate = n, this.mounts = r, this.index = i, this.start = s, this.target = o, this.prev = l, this.depth = 0, this.ranges = []; } } -const Jd = new H({ perNode: !0 }); -class WE { +const ep = new K({ perNode: !0 }); +class VE { constructor(e, n, r, i, s) { this.nest = n, this.input = r, this.fragments = i, this.ranges = s, this.inner = [], this.innerDone = 0, this.baseTree = null, this.stoppedAt = null, this.baseParse = e; } @@ -11216,13 +11216,13 @@ class WE { } if (this.innerDone == this.inner.length) { let r = this.baseTree; - return this.stoppedAt != null && (r = new fe(r.type, r.children, r.positions, r.length, r.propValues.concat([[Jd, this.stoppedAt]]))), r; + return this.stoppedAt != null && (r = new ue(r.type, r.children, r.positions, r.length, r.propValues.concat([[ep, this.stoppedAt]]))), r; } let e = this.inner[this.innerDone], n = e.parse.advance(); if (n) { this.innerDone++; let r = Object.assign(/* @__PURE__ */ Object.create(null), e.target.props); - r[H.mounted.id] = new sl(n, e.overlay, e.parser), e.target.props = r; + r[K.mounted.id] = new il(n, e.overlay, e.parser), e.target.props = r; } return null; } @@ -11242,7 +11242,7 @@ class WE { this.inner[n].parse.stopAt(e); } startInner() { - let e = new zE(this.fragments), n = null, r = null, i = new Dc(new dt(this.baseTree, this.ranges[0].from, 0, null), ve.IncludeAnonymous | ve.IgnoreMounts); + let e = new FE(this.fragments), n = null, r = null, i = new Rc(new dt(this.baseTree, this.ranges[0].from, 0, null), ve.IncludeAnonymous | ve.IgnoreMounts); e: for (let s, o; ; ) { let l = !0, a; @@ -11258,16 +11258,16 @@ class WE { } } l = !1; - } else if (r && (o = VE(r.ranges, i.from, i.to))) + } else if (r && (o = jE(r.ranges, i.from, i.to))) l = o != 2; else if (!i.type.isAnonymous && (s = this.nest(i, this.input)) && (i.from < i.to || !s.overlay)) { - i.tree || jE(i); + i.tree || zE(i); let c = e.findMounts(i.from, s.parser); if (typeof s.overlay == "function") - n = new XE(s.parser, s.overlay, c, this.inner.length, i.from, i.tree, n); + n = new WE(s.parser, s.overlay, c, this.inner.length, i.from, i.tree, n); else { - let h = s1(this.ranges, s.overlay || (i.from < i.to ? [new Vt(i.from, i.to)] : [])); - h.length && n1(h), (h.length || !s.overlay) && this.inner.push(new t1(s.parser, h.length ? s.parser.startParse(this.input, o1(c, h), h) : s.parser.startParse(""), s.overlay ? s.overlay.map((u) => new Vt(u.from - i.from, u.to - i.from)) : null, i.tree, h.length ? h[0].from : i.from)), s.overlay ? h.length && (r = { ranges: h, depth: 0, prev: r }) : l = !1; + let h = o1(this.ranges, s.overlay || (i.from < i.to ? [new Vt(i.from, i.to)] : [])); + h.length && r1(h), (h.length || !s.overlay) && this.inner.push(new n1(s.parser, h.length ? s.parser.startParse(this.input, l1(c, h), h) : s.parser.startParse(""), s.overlay ? s.overlay.map((u) => new Vt(u.from - i.from, u.to - i.from)) : null, i.tree, h.length ? h[0].from : i.from)), s.overlay ? h.length && (r = { ranges: h, depth: 0, prev: r }) : l = !1; } } else n && (a = n.predicate(i)) && (a === !0 && (a = new Vt(i.from, i.to)), a.from < a.to && n.ranges.push(a)); @@ -11278,15 +11278,15 @@ class WE { if (!i.parent()) break e; if (n && !--n.depth) { - let c = s1(this.ranges, n.ranges); - c.length && (n1(c), this.inner.splice(n.index, 0, new t1(n.parser, n.parser.startParse(this.input, o1(n.mounts, c), c), n.ranges.map((h) => new Vt(h.from - n.start, h.to - n.start)), n.target, c[0].from))), n = n.prev; + let c = o1(this.ranges, n.ranges); + c.length && (r1(c), this.inner.splice(n.index, 0, new n1(n.parser, n.parser.startParse(this.input, l1(n.mounts, c), c), n.ranges.map((h) => new Vt(h.from - n.start, h.to - n.start)), n.target, c[0].from))), n = n.prev; } r && !--r.depth && (r = r.prev); } } } } -function VE(t, e, n) { +function jE(t, e, n) { for (let r of t) { if (r.from >= n) break; @@ -11295,25 +11295,25 @@ function VE(t, e, n) { } return 0; } -function r1(t, e, n, r, i, s) { +function i1(t, e, n, r, i, s) { if (e < n) { let o = t.buffer[e + 1]; r.push(t.slice(e, n, o)), i.push(o - s); } } -function jE(t) { +function zE(t) { let { node: e } = t, n = [], r = e.context.buffer; do n.push(t.index), t.parent(); while (!t.tree); let i = t.tree, s = i.children.indexOf(r), o = i.children[s], l = o.buffer, a = [s]; - function c(h, u, f, d, p, m) { - let g = n[m], O = [], b = []; - r1(o, h, g, O, b, d); - let y = l[g + 1], w = l[g + 2]; + function c(h, u, f, d, p, g) { + let m = n[g], O = [], b = []; + i1(o, h, m, O, b, d); + let y = l[m + 1], w = l[m + 2]; a.push(O.length); - let S = m ? c(g + 4, l[g + 3], o.set.types[l[g]], y, w - y, m - 1) : e.toTree(); - return O.push(S), b.push(y - d), r1(o, l[g + 3], u, O, b, d), new fe(f, O, b, p); + let S = g ? c(m + 4, l[m + 3], o.set.types[l[m]], y, w - y, g - 1) : e.toTree(); + return O.push(S), b.push(y - d), i1(o, l[m + 3], u, O, b, d), new ue(f, O, b, p); } i.children[s] = c(0, l.length, Ve.none, 0, o.length, n.length - 1); for (let h of a) { @@ -11321,7 +11321,7 @@ function jE(t) { t.yield(new dt(u, f + t.from, h, t._tree)); } } -class i1 { +class s1 { constructor(e, n) { this.offset = n, this.done = !1, this.cursor = e.cursor(ve.IncludeAnonymous | ve.IgnoreMounts); } @@ -11335,7 +11335,7 @@ class i1 { for (let n = this.cursor.tree; ; ) { if (n == e.tree) return !0; - if (n.children.length && n.positions[0] == 0 && n.children[0] instanceof fe) + if (n.children.length && n.positions[0] == 0 && n.children[0] instanceof ue) n = n.children[0]; else break; @@ -11343,12 +11343,12 @@ class i1 { return !1; } } -class zE { +class FE { constructor(e) { var n; if (this.fragments = e, this.curTo = 0, this.fragI = 0, e.length) { let r = this.curFrag = e[0]; - this.curTo = (n = r.tree.prop(Jd)) !== null && n !== void 0 ? n : r.to, this.inner = new i1(r.tree, -r.offset); + this.curTo = (n = r.tree.prop(ep)) !== null && n !== void 0 ? n : r.to, this.inner = new s1(r.tree, -r.offset); } else this.curFrag = this.inner = null; } @@ -11363,7 +11363,7 @@ class zE { this.curFrag = this.inner = null; else { let n = this.curFrag = this.fragments[this.fragI]; - this.curTo = (e = n.tree.prop(Jd)) !== null && e !== void 0 ? e : n.to, this.inner = new i1(n.tree, -n.offset); + this.curTo = (e = n.tree.prop(ep)) !== null && e !== void 0 ? e : n.to, this.inner = new s1(n.tree, -n.offset); } } findMounts(e, n) { @@ -11372,7 +11372,7 @@ class zE { if (this.inner) { this.inner.cursor.moveTo(e, 1); for (let s = this.inner.cursor.node; s; s = s.parent) { - let o = (r = s.tree) === null || r === void 0 ? void 0 : r.prop(H.mounted); + let o = (r = s.tree) === null || r === void 0 ? void 0 : r.prop(K.mounted); if (o && o.parser == n) for (let l = this.fragI; l < this.fragments.length; l++) { let a = this.fragments[l]; @@ -11389,7 +11389,7 @@ class zE { return i; } } -function s1(t, e) { +function o1(t, e) { let n = null, r = e; for (let i = 1, s = 0; i < t.length; i++) { let o = t[i - 1].to, l = t[i].from; @@ -11402,7 +11402,7 @@ function s1(t, e) { } return r; } -function FE(t, e, n, r) { +function UE(t, e, n, r) { let i = 0, s = 0, o = !1, l = !1, a = -1e9, c = []; for (; ; ) { let h = i == t.length ? 1e9 : o ? t[i].to : t[i].from, u = s == e.length ? 1e9 : l ? e[s].to : e[s].from; @@ -11416,15 +11416,15 @@ function FE(t, e, n, r) { } return c; } -function o1(t, e) { +function l1(t, e) { let n = []; for (let { pos: r, mount: i, frag: s } of t) { let o = r + (i.overlay ? i.overlay[0].from : 0), l = o + i.tree.length, a = Math.max(s.from, o), c = Math.min(s.to, l); if (i.overlay) { - let h = i.overlay.map((f) => new Vt(f.from + r, f.to + r)), u = FE(e, h, a, c); + let h = i.overlay.map((f) => new Vt(f.from + r, f.to + r)), u = UE(e, h, a, c); for (let f = 0, d = a; ; f++) { - let p = f == u.length, m = p ? c : u[f].from; - if (m > d && n.push(new or(d, m, i.tree, -o, s.from >= d || s.openStart, s.to <= m || s.openEnd)), p) + let p = f == u.length, g = p ? c : u[f].from; + if (g > d && n.push(new or(d, g, i.tree, -o, s.from >= d || s.openStart, s.to <= g || s.openEnd)), p) break; d = u[f].to; } @@ -11433,10 +11433,10 @@ function o1(t, e) { } return n; } -let UE = 0; +let GE = 0; class an { constructor(e, n, r) { - this.set = e, this.base = n, this.modified = r, this.id = UE++; + this.set = e, this.base = n, this.modified = r, this.id = GE++; } static define(e) { if (e != null && e.base) @@ -11448,36 +11448,36 @@ class an { return n; } static defineModifier() { - let e = new Rc(); - return (n) => n.modified.indexOf(e) > -1 ? n : Rc.get(n.base || n, n.modified.concat(e).sort((r, i) => r.id - i.id)); + let e = new Mc(); + return (n) => n.modified.indexOf(e) > -1 ? n : Mc.get(n.base || n, n.modified.concat(e).sort((r, i) => r.id - i.id)); } } -let GE = 0; -class Rc { +let HE = 0; +class Mc { constructor() { - this.instances = [], this.id = GE++; + this.instances = [], this.id = HE++; } static get(e, n) { if (!n.length) return e; - let r = n[0].instances.find((l) => l.base == e && HE(n, l.modified)); + let r = n[0].instances.find((l) => l.base == e && KE(n, l.modified)); if (r) return r; let i = [], s = new an(i, e, n); for (let l of n) l.instances.push(s); - let o = KE(n); + let o = JE(n); for (let l of e.set) if (!l.modified.length) for (let a of o) - i.push(Rc.get(l, a)); + i.push(Mc.get(l, a)); return s; } } -function HE(t, e) { +function KE(t, e) { return t.length == e.length && t.every((n, r) => n == e[r]); } -function KE(t) { +function JE(t) { let e = [[]]; for (let n = 0; n < t.length; n++) for (let r = 0, i = e.length; r < i; r++) @@ -11514,14 +11514,14 @@ function Vs(t) { let a = s.length - 1, c = s[a]; if (!c) throw new RangeError("Invalid path: " + i); - let h = new Mc(r, o, a > 0 ? s.slice(0, a) : null); + let h = new Zc(r, o, a > 0 ? s.slice(0, a) : null); e[c] = h.sort(e[c]); } } - return Gx.add(e); + return Hx.add(e); } -const Gx = new H(); -class Mc { +const Hx = new K(); +class Zc { constructor(e, n, r, i) { this.tags = e, this.mode = n, this.context = r, this.next = i; } @@ -11538,8 +11538,8 @@ class Mc { return this.context ? this.context.length : 0; } } -Mc.empty = new Mc([], 2, null); -function Hx(t, e) { +Zc.empty = new Zc([], 2, null); +function Kx(t, e) { let n = /* @__PURE__ */ Object.create(null); for (let s of t) if (!Array.isArray(s.tag)) @@ -11564,7 +11564,7 @@ function Hx(t, e) { scope: r }; } -function JE(t, e) { +function eD(t, e) { let n = null; for (let r of t) { let i = r.style(e); @@ -11572,11 +11572,11 @@ function JE(t, e) { } return n; } -function eD(t, e, n, r = 0, i = t.length) { - let s = new tD(r, Array.isArray(e) ? e : [e], n); +function tD(t, e, n, r = 0, i = t.length) { + let s = new nD(r, Array.isArray(e) ? e : [e], n); s.highlightRange(t.cursor(), r, i, "", s.highlighters), s.flush(i); } -class tD { +class nD { constructor(e, n, r) { this.at = e, this.highlighters = n, this.span = r, this.class = ""; } @@ -11591,22 +11591,22 @@ class tD { if (l >= r || a <= n) return; o.isTop && (s = this.highlighters.filter((d) => !d.scope || d.scope(o))); - let c = i, h = nD(e) || Mc.empty, u = JE(s, h.tags); + let c = i, h = rD(e) || Zc.empty, u = eD(s, h.tags); if (u && (c && (c += " "), c += u, h.mode == 1 && (i += (i ? " " : "") + u)), this.startSpan(Math.max(n, l), c), h.opaque) return; - let f = e.tree && e.tree.prop(H.mounted); + let f = e.tree && e.tree.prop(K.mounted); if (f && f.overlay) { - let d = e.node.enter(f.overlay[0].from + l, 1), p = this.highlighters.filter((g) => !g.scope || g.scope(f.tree.type)), m = e.firstChild(); - for (let g = 0, O = l; ; g++) { - let b = g < f.overlay.length ? f.overlay[g] : null, y = b ? b.from + l : a, w = Math.max(n, O), S = Math.min(r, y); - if (w < S && m) + let d = e.node.enter(f.overlay[0].from + l, 1), p = this.highlighters.filter((m) => !m.scope || m.scope(f.tree.type)), g = e.firstChild(); + for (let m = 0, O = l; ; m++) { + let b = m < f.overlay.length ? f.overlay[m] : null, y = b ? b.from + l : a, w = Math.max(n, O), S = Math.min(r, y); + if (w < S && g) for (; e.from < S && (this.highlightRange(e, w, S, i, s), this.startSpan(Math.min(S, e.to), c), !(e.to >= y || !e.nextSibling())); ) ; if (!b || y > r) break; O = b.to + l, O > n && (this.highlightRange(d.cursor(), Math.max(n, b.from + l), Math.min(r, O), "", p), this.startSpan(Math.min(r, O), c)); } - m && e.parent(); + g && e.parent(); } else if (e.firstChild()) { f && (i = ""); do @@ -11620,23 +11620,23 @@ class tD { } } } -function nD(t) { - let e = t.type.prop(Gx); +function rD(t) { + let e = t.type.prop(Hx); for (; e && e.context && !t.matchContext(e.context); ) e = e.next; return e || null; } -const R = an.define, Sa = R(), xr = R(), l1 = R(xr), a1 = R(xr), vr = R(), _a = R(vr), ju = R(vr), $n = R(), ei = R($n), _n = R(), Cn = R(), ep = R(), ho = R(ep), Ca = R(), k = { +const R = an.define, Sa = R(), xr = R(), a1 = R(xr), c1 = R(xr), vr = R(), _a = R(vr), ju = R(vr), $n = R(), ei = R($n), _n = R(), Cn = R(), tp = R(), ho = R(tp), Ca = R(), k = { comment: Sa, lineComment: R(Sa), blockComment: R(Sa), docComment: R(Sa), name: xr, variableName: R(xr), - typeName: l1, - tagName: R(l1), - propertyName: a1, - attributeName: R(a1), + typeName: a1, + tagName: R(a1), + propertyName: c1, + attributeName: R(c1), className: R(xr), labelName: R(xr), namespace: R(xr), @@ -11674,8 +11674,8 @@ const R = an.define, Sa = R(), xr = R(), l1 = R(xr), a1 = R(xr), vr = R(), _a = definitionOperator: R(Cn), typeOperator: R(Cn), controlOperator: R(Cn), - punctuation: ep, - separator: R(ep), + punctuation: tp, + separator: R(tp), bracket: ho, angleBracket: R(ho), squareBracket: R(ho), @@ -11712,7 +11712,7 @@ const R = an.define, Sa = R(), xr = R(), l1 = R(xr), a1 = R(xr), vr = R(), _a = local: an.defineModifier(), special: an.defineModifier() }; -Hx([ +Kx([ { tag: k.link, class: "tok-link" }, { tag: k.heading, class: "tok-heading" }, { tag: k.emphasis, class: "tok-emphasis" }, @@ -11745,13 +11745,13 @@ Hx([ { tag: k.punctuation, class: "tok-punctuation" } ]); var zu; -const fi = /* @__PURE__ */ new H(); -function $m(t) { +const fi = /* @__PURE__ */ new K(); +function Pg(t) { return I.define({ combine: t ? (e) => e.concat(t) : void 0 }); } -const Pm = /* @__PURE__ */ new H(); +const Tg = /* @__PURE__ */ new K(); class jt { constructor(e, n, r = [], i = "") { this.data = e, this.name = i, ne.prototype.hasOwnProperty("tree") || Object.defineProperty(ne.prototype, "tree", { get() { @@ -11759,10 +11759,10 @@ class jt { } }), this.parser = n, this.extension = [ Xr.of(this), ne.languageData.of((s, o, l) => { - let a = c1(s, o, l), c = a.type.prop(fi); + let a = h1(s, o, l), c = a.type.prop(fi); if (!c) return []; - let h = s.facet(c), u = a.type.prop(Pm); + let h = s.facet(c), u = a.type.prop(Tg); if (u) { let f = a.resolve(o - a.from, l); for (let d of u) @@ -11776,7 +11776,7 @@ class jt { ].concat(r); } isActiveAt(e, n, r = -1) { - return c1(e, n, r).type.prop(fi) == this.data; + return h1(e, n, r).type.prop(fi) == this.data; } findRegions(e) { let n = e.facet(Xr); @@ -11789,7 +11789,7 @@ class jt { r.push({ from: o, to: o + s.length }); return; } - let l = s.prop(H.mounted); + let l = s.prop(K.mounted); if (l) { if (l.tree.prop(fi) == this.data) { if (l.overlay) @@ -11806,7 +11806,7 @@ class jt { } for (let a = 0; a < s.children.length; a++) { let c = s.children[a]; - c instanceof fe && i(c, s.positions[a] + o); + c instanceof ue && i(c, s.positions[a] + o); } }; return i(Se(e), 0), r; @@ -11816,7 +11816,7 @@ class jt { } } jt.setState = /* @__PURE__ */ F.define(); -function c1(t, e, n) { +function h1(t, e, n) { let r = t.facet(Xr), i = Se(t).topNode; if (!r || r.allowsNesting) for (let s = i; s; s = s.enter(e, n, ve.ExcludeBuffers)) @@ -11828,7 +11828,7 @@ class _s extends jt { super(e, n, [], r), this.parser = n; } static define(e) { - let n = $m(e.languageData); + let n = Pg(e.languageData); return new _s(n, e.parser.configure({ props: [fi.add((r) => r.isTop ? n : void 0)] }), e.name); @@ -11842,9 +11842,9 @@ class _s extends jt { } function Se(t) { let e = t.field(jt.state, !1); - return e ? e.tree : fe.empty; + return e ? e.tree : ue.empty; } -class rD { +class iD { constructor(e) { this.doc = e, this.cursorPos = 0, this.string = "", this.cursor = e.iter(); } @@ -11866,18 +11866,18 @@ class rD { } } let uo = null; -class ll { +class ol { constructor(e, n, r = [], i, s, o, l, a) { this.parser = e, this.state = n, this.fragments = r, this.tree = i, this.treeLen = s, this.viewport = o, this.skipped = l, this.scheduleOn = a, this.parse = null, this.tempSkipped = []; } static create(e, n, r) { - return new ll(e, n, [], fe.empty, 0, r, [], null); + return new ol(e, n, [], ue.empty, 0, r, [], null); } startParse() { - return this.parser.startParse(new rD(this.state.doc), this.fragments); + return this.parser.startParse(new iD(this.state.doc), this.fragments); } work(e, n) { - return n != null && n >= this.state.doc.length && (n = void 0), this.tree != fe.empty && this.isDone(n != null ? n : this.state.doc.length) ? (this.takeTree(), !0) : this.withContext(() => { + return n != null && n >= this.state.doc.length && (n = void 0), this.tree != ue.empty && this.isDone(n != null ? n : this.state.doc.length) ? (this.takeTree(), !0) : this.withContext(() => { var r; if (typeof e == "number") { let i = Date.now() + e; @@ -11913,14 +11913,14 @@ class ll { } withoutTempSkipped(e) { for (let n; n = this.tempSkipped.pop(); ) - e = h1(e, n.from, n.to); + e = u1(e, n.from, n.to); return e; } changes(e, n) { let { fragments: r, tree: i, treeLen: s, viewport: o, skipped: l } = this; if (this.takeTree(), !e.empty) { let a = []; - if (e.iterChangedRanges((c, h, u, f) => a.push({ fromA: c, toA: h, fromB: u, toB: f })), r = or.applyChanges(r, a), i = fe.empty, s = 0, o = { from: e.mapPos(o.from, -1), to: e.mapPos(o.to, 1) }, this.skipped.length) { + if (e.iterChangedRanges((c, h, u, f) => a.push({ fromA: c, toA: h, fromB: u, toB: f })), r = or.applyChanges(r, a), i = ue.empty, s = 0, o = { from: e.mapPos(o.from, -1), to: e.mapPos(o.to, 1) }, this.skipped.length) { l = []; for (let c of this.skipped) { let h = e.mapPos(c.from, 1), u = e.mapPos(c.to, -1); @@ -11928,7 +11928,7 @@ class ll { } } } - return new ll(this.parser, n, r, i, s, o, l, this.scheduleOn); + return new ol(this.parser, n, r, i, s, o, l, this.scheduleOn); } updateViewport(e) { if (this.viewport.from == e.from && this.viewport.to == e.to) @@ -11937,7 +11937,7 @@ class ll { let n = this.skipped.length; for (let r = 0; r < this.skipped.length; r++) { let { from: i, to: s } = this.skipped[r]; - i < e.to && s > e.from && (this.fragments = h1(this.fragments, i, s), this.skipped.splice(r--, 1)); + i < e.to && s > e.from && (this.fragments = u1(this.fragments, i, s), this.skipped.splice(r--, 1)); } return this.skipped.length >= n ? !1 : (this.reset(), !0); } @@ -11948,7 +11948,7 @@ class ll { this.skipped.push({ from: e, to: n }); } static getSkippingParser(e) { - return new class extends Am { + return new class extends $g { createParse(n, r, i) { let s = i[0].from, o = i[i.length - 1].to; return { @@ -11960,7 +11960,7 @@ class ll { a.tempSkipped.push(c); e && (a.scheduleOn = a.scheduleOn ? Promise.all([a.scheduleOn, e]) : e); } - return this.parsedPos = o, new fe(Ve.none, [], [], o - s); + return this.parsedPos = o, new ue(Ve.none, [], [], o - s); }, stoppedAt: null, stopAt() { @@ -11978,7 +11978,7 @@ class ll { return uo; } } -function h1(t, e, n) { +function u1(t, e, n) { return or.applyChanges(t, [{ fromA: e, toA: n, fromB: e, toB: n }]); } class Cs { @@ -11992,7 +11992,7 @@ class Cs { return n.work(20, r) || n.takeTree(), new Cs(n); } static init(e) { - let n = Math.min(3e3, e.doc.length), r = ll.create(e.facet(Xr).parser, e, { from: 0, to: n }); + let n = Math.min(3e3, e.doc.length), r = ol.create(e.facet(Xr).parser, e, { from: 0, to: n }); return r.work(20, n) || r.takeTree(), new Cs(r); } } @@ -12005,17 +12005,17 @@ jt.state = /* @__PURE__ */ Ee.define({ return e.startState.facet(Xr) != e.state.facet(Xr) ? Cs.init(e.state) : t.apply(e); } }); -let Kx = (t) => { +let Jx = (t) => { let e = setTimeout(() => t(), 500); return () => clearTimeout(e); }; -typeof requestIdleCallback < "u" && (Kx = (t) => { +typeof requestIdleCallback < "u" && (Jx = (t) => { let e = -1, n = setTimeout(() => { e = requestIdleCallback(t, { timeout: 500 - 100 }); }, 100); return () => e < 0 ? clearTimeout(n) : cancelIdleCallback(e); }); -const Fu = typeof navigator < "u" && ((zu = navigator.scheduling) === null || zu === void 0 ? void 0 : zu.isInputPending) ? () => navigator.scheduling.isInputPending() : null, iD = /* @__PURE__ */ ke.fromClass(class { +const Fu = typeof navigator < "u" && ((zu = navigator.scheduling) === null || zu === void 0 ? void 0 : zu.isInputPending) ? () => navigator.scheduling.isInputPending() : null, sD = /* @__PURE__ */ ke.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(); } @@ -12027,7 +12027,7 @@ const Fu = typeof navigator < "u" && ((zu = navigator.scheduling) === null || zu if (this.working) return; let { state: e } = this.view, n = e.field(jt.state); - (n.tree != n.context.tree || !n.context.isDone(e.doc.length)) && (this.working = Kx(this.work)); + (n.tree != n.context.tree || !n.context.isDone(e.doc.length)) && (this.working = Jx(this.work)); } work(e) { this.working = null; @@ -12059,19 +12059,19 @@ const Fu = typeof navigator < "u" && ((zu = navigator.scheduling) === null || zu }, enables: (t) => [ jt.state, - iD, + sD, E.contentAttributes.compute([t], (e) => { let n = e.facet(t); return n && n.name ? { "data-language": n.name } : {}; }) ] }); -class al { +class ll { constructor(e, n = []) { this.language = e, this.support = n, this.extension = [e, n]; } } -class Zc { +class Lc { constructor(e, n, r, i, s, o = void 0) { this.name = e, this.alias = n, this.extensions = r, this.filename = i, this.loadFunc = s, this.support = o, this.loading = null; } @@ -12087,7 +12087,7 @@ class Zc { throw new RangeError("Must pass either 'load' or 'support' to LanguageDescription.of"); n = () => Promise.resolve(r); } - return new Zc(e.name, (e.alias || []).concat(e.name).map((i) => i.toLowerCase()), e.extensions || [], e.filename, n, r); + return new Lc(e.name, (e.alias || []).concat(e.name).map((i) => i.toLowerCase()), e.extensions || [], e.filename, n, r); } static matchFilename(e, n) { for (let i of e) @@ -12116,7 +12116,7 @@ class Zc { return null; } } -const sD = /* @__PURE__ */ I.define(), Nl = /* @__PURE__ */ I.define({ +const oD = /* @__PURE__ */ I.define(), Il = /* @__PURE__ */ I.define({ combine: (t) => { if (!t.length) return " "; @@ -12126,12 +12126,12 @@ const sD = /* @__PURE__ */ I.define(), Nl = /* @__PURE__ */ I.define({ return e; } }); -function Lc(t) { - let e = t.facet(Nl); +function Ic(t) { + let e = t.facet(Il); return e.charCodeAt(0) == 9 ? t.tabSize * e.length : e.length; } -function cl(t, e) { - let n = "", r = t.tabSize, i = t.facet(Nl)[0]; +function al(t, e) { + let n = "", r = t.tabSize, i = t.facet(Il)[0]; if (i == " ") { for (; e >= r; ) n += " ", e -= r; @@ -12141,19 +12141,19 @@ function cl(t, e) { n += i; return n; } -function Tm(t, e) { - t instanceof ne && (t = new Ih(t)); - for (let r of t.state.facet(sD)) { +function Qg(t, e) { + t instanceof ne && (t = new Nh(t)); + for (let r of t.state.facet(oD)) { let i = r(t, e); if (i !== void 0) return i; } let n = Se(t.state); - return n.length >= e ? oD(t, n, e) : null; + return n.length >= e ? lD(t, n, e) : null; } -class Ih { +class Nh { constructor(e, n = {}) { - this.state = e, this.options = n, this.unit = Lc(e); + this.state = e, this.options = n, this.unit = Ic(e); } lineAt(e, n = 1) { let r = this.state.doc.lineAt(e), { simulateBreak: i, simulateDoubleBreak: s } = this.options; @@ -12185,8 +12185,8 @@ class Ih { return this.options.simulateBreak || null; } } -const ql = /* @__PURE__ */ new H(); -function oD(t, e, n) { +const Nl = /* @__PURE__ */ new K(); +function lD(t, e, n) { let r = e.resolveStack(n), i = r.node.enterUnfinishedNodesBefore(n); if (i != r.node) { let s = []; @@ -12195,34 +12195,34 @@ function oD(t, e, n) { for (let o = s.length - 1; o >= 0; o--) r = { node: s[o], next: r }; } - return Jx(r, t, n); + return ev(r, t, n); } -function Jx(t, e, n) { +function ev(t, e, n) { for (let r = t; r; r = r.next) { - let i = aD(r.node); + let i = cD(r.node); if (i) - return i(Qm.create(e, n, r)); + return i(Eg.create(e, n, r)); } return 0; } -function lD(t) { +function aD(t) { return t.pos == t.options.simulateBreak && t.options.simulateDoubleBreak; } -function aD(t) { - let e = t.type.prop(ql); +function cD(t) { + let e = t.type.prop(Nl); if (e) return e; let n = t.firstChild, r; - if (n && (r = n.type.prop(H.closedBy))) { + if (n && (r = n.type.prop(K.closedBy))) { let i = t.lastChild, s = i && r.indexOf(i.name) > -1; - return (o) => ev(o, !0, 1, void 0, s && !lD(o) ? i.from : void 0); + return (o) => tv(o, !0, 1, void 0, s && !aD(o) ? i.from : void 0); } - return t.parent == null ? cD : null; + return t.parent == null ? hD : null; } -function cD() { +function hD() { return 0; } -class Qm extends Ih { +class Eg extends Nh { constructor(e, n, r) { super(e.state, e.options), this.base = e, this.pos = n, this.context = r; } @@ -12230,7 +12230,7 @@ class Qm extends Ih { return this.context.node; } static create(e, n, r) { - return new Qm(e, n, r); + return new Eg(e, n, r); } get textAfter() { return this.textAfterPos(this.pos); @@ -12244,23 +12244,23 @@ class Qm extends Ih { let r = e.resolve(n.from); for (; r.parent && r.parent.from == r.from; ) r = r.parent; - if (hD(r, e)) + if (uD(r, e)) break; n = this.state.doc.lineAt(r.from); } return this.lineIndent(n.from); } continue() { - return Jx(this.context.next, this.base, this.pos); + return ev(this.context.next, this.base, this.pos); } } -function hD(t, e) { +function uD(t, e) { for (let n = e; n; n = n.parent) if (t == n) return !0; return !1; } -function uD(t) { +function fD(t) { let e = t.node, n = e.childAfter(e.from), r = e.lastChild; if (!n) return null; @@ -12274,21 +12274,21 @@ function uD(t) { l = a.to; } } -function fD({ closing: t, align: e = !0, units: n = 1 }) { - return (r) => ev(r, e, n, t); +function dD({ closing: t, align: e = !0, units: n = 1 }) { + return (r) => tv(r, e, n, t); } -function ev(t, e, n, r, i) { - let s = t.textAfter, o = s.match(/^\s*/)[0].length, l = r && s.slice(o, o + r.length) == r || i == t.pos + o, a = e ? uD(t) : null; +function tv(t, e, n, r, i) { + let s = t.textAfter, o = s.match(/^\s*/)[0].length, l = r && s.slice(o, o + r.length) == r || i == t.pos + o, a = e ? fD(t) : null; return a ? l ? t.column(a.from) : t.column(a.to) : t.baseIndent + (l ? 0 : t.unit * n); } -const dD = (t) => t.baseIndent; +const pD = (t) => t.baseIndent; function fc({ except: t, units: e = 1 } = {}) { return (n) => { let r = t && t.test(n.textAfter); return n.baseIndent + (r ? 0 : e * n.unit); }; } -const pD = 200; +const gD = 200; function mD() { return ne.transactionFilter.of((t) => { if (!t.docChanged || !t.isUserEvent("input.type") && !t.isUserEvent("input.complete")) @@ -12297,7 +12297,7 @@ function mD() { if (!e.length) return t; let n = t.newDoc, { head: r } = t.newSelection.main, i = n.lineAt(r); - if (r > i.from + pD) + if (r > i.from + gD) return t; let s = n.sliceString(i.from, r); if (!e.some((c) => c.test(s))) @@ -12308,21 +12308,21 @@ function mD() { if (h.from == l) continue; l = h.from; - let u = Tm(o, h.from); + let u = Qg(o, h.from); if (u == null) continue; - let f = /^\s*/.exec(h.text)[0], d = cl(o, u); + let f = /^\s*/.exec(h.text)[0], d = al(o, u); f != d && a.push({ from: h.from, to: h.from + f.length, insert: d }); } return a.length ? [t, { changes: a, sequential: !0 }] : t; }); } -const tv = /* @__PURE__ */ I.define(), js = /* @__PURE__ */ new H(); -function nv(t) { +const nv = /* @__PURE__ */ I.define(), js = /* @__PURE__ */ new K(); +function rv(t) { let e = t.firstChild, n = t.lastChild; return e && e.to < n.from ? { from: e.to, to: n.type.isError ? t.to : n.from } : null; } -function gD(t, e, n) { +function OD(t, e, n) { let r = Se(t); if (r.length < n) return null; @@ -12334,31 +12334,31 @@ function gD(t, e, n) { if (s && l.from < e) break; let a = l.type.prop(js); - if (a && (l.to < r.length - 50 || r.length == t.doc.length || !OD(l))) { + if (a && (l.to < r.length - 50 || r.length == t.doc.length || !bD(l))) { let c = a(l, t); c && c.from <= n && c.from >= e && c.to > n && (s = c); } } return s; } -function OD(t) { +function bD(t) { let e = t.lastChild; return e && e.to == t.to && e.type.isError; } -function Ic(t, e, n) { - for (let r of t.facet(tv)) { +function Nc(t, e, n) { + for (let r of t.facet(nv)) { let i = r(t, e, n); if (i) return i; } - return gD(t, e, n); + return OD(t, e, n); } -function rv(t, e) { +function iv(t, e) { let n = e.mapPos(t.from, 1), r = e.mapPos(t.to, -1); return n >= r ? void 0 : { from: n, to: r }; } -const Nh = /* @__PURE__ */ F.define({ map: rv }), Bl = /* @__PURE__ */ F.define({ map: rv }); -function iv(t) { +const qh = /* @__PURE__ */ F.define({ map: iv }), ql = /* @__PURE__ */ F.define({ map: iv }); +function sv(t) { let e = []; for (let { head: n } of t.state.selection.ranges) e.some((r) => r.from <= n && r.to >= n) || e.push(t.lineBlockAt(n)); @@ -12371,11 +12371,11 @@ const Ci = /* @__PURE__ */ Ee.define({ update(t, e) { t = t.map(e.changes); for (let n of e.effects) - if (n.is(Nh) && !bD(t, n.value.from, n.value.to)) { - let { preparePlaceholder: r } = e.state.facet(Em), i = r ? L.replace({ widget: new _D(r(e.state, n.value)) }) : u1; + if (n.is(qh) && !yD(t, n.value.from, n.value.to)) { + let { preparePlaceholder: r } = e.state.facet(Dg), i = r ? L.replace({ widget: new CD(r(e.state, n.value)) }) : f1; t = t.update({ add: [i.range(n.value.from, n.value.to)] }); } else - n.is(Bl) && (t = t.update({ + n.is(ql) && (t = t.update({ filter: (r, i) => n.value.from != r || n.value.to != i, filterFrom: n.value.from, filterTo: n.value.to @@ -12407,97 +12407,97 @@ const Ci = /* @__PURE__ */ Ee.define({ let r = t[n++], i = t[n++]; if (typeof r != "number" || typeof i != "number") throw new RangeError("Invalid JSON for fold state"); - e.push(u1.range(r, i)); + e.push(f1.range(r, i)); } return L.set(e, !0); } }); -function Nc(t, e, n) { +function qc(t, e, n) { var r; let i = null; return (r = t.field(Ci, !1)) === null || r === void 0 || r.between(e, n, (s, o) => { (!i || i.from > s) && (i = { from: s, to: o }); }), i; } -function bD(t, e, n) { +function yD(t, e, n) { let r = !1; return t.between(e, e, (i, s) => { i == e && s == n && (r = !0); }), r; } -function sv(t, e) { - return t.field(Ci, !1) ? e : e.concat(F.appendConfig.of(lv())); +function ov(t, e) { + return t.field(Ci, !1) ? e : e.concat(F.appendConfig.of(av())); } -const yD = (t) => { - for (let e of iv(t)) { - let n = Ic(t.state, e.from, e.to); +const wD = (t) => { + for (let e of sv(t)) { + let n = Nc(t.state, e.from, e.to); if (n) - return t.dispatch({ effects: sv(t.state, [Nh.of(n), ov(t, n)]) }), !0; + return t.dispatch({ effects: ov(t.state, [qh.of(n), lv(t, n)]) }), !0; } return !1; -}, wD = (t) => { +}, kD = (t) => { if (!t.state.field(Ci, !1)) return !1; let e = []; - for (let n of iv(t)) { - let r = Nc(t.state, n.from, n.to); - r && e.push(Bl.of(r), ov(t, r, !1)); + for (let n of sv(t)) { + let r = qc(t.state, n.from, n.to); + r && e.push(ql.of(r), lv(t, r, !1)); } return e.length && t.dispatch({ effects: e }), e.length > 0; }; -function ov(t, e, n = !0) { +function lv(t, e, n = !0) { let r = t.state.doc.lineAt(e.from).number, i = t.state.doc.lineAt(e.to).number; return E.announce.of(`${t.state.phrase(n ? "Folded lines" : "Unfolded lines")} ${r} ${t.state.phrase("to")} ${i}.`); } -const kD = (t) => { +const xD = (t) => { let { state: e } = t, n = []; for (let r = 0; r < e.doc.length; ) { - let i = t.lineBlockAt(r), s = Ic(e, i.from, i.to); - s && n.push(Nh.of(s)), r = (s ? t.lineBlockAt(s.to) : i).to + 1; + let i = t.lineBlockAt(r), s = Nc(e, i.from, i.to); + s && n.push(qh.of(s)), r = (s ? t.lineBlockAt(s.to) : i).to + 1; } - return n.length && t.dispatch({ effects: sv(t.state, n) }), !!n.length; -}, xD = (t) => { + return n.length && t.dispatch({ effects: ov(t.state, n) }), !!n.length; +}, vD = (t) => { let e = t.state.field(Ci, !1); if (!e || !e.size) return !1; let n = []; return e.between(0, t.state.doc.length, (r, i) => { - n.push(Bl.of({ from: r, to: i })); + n.push(ql.of({ from: r, to: i })); }), t.dispatch({ effects: n }), !0; -}, vD = [ - { key: "Ctrl-Shift-[", mac: "Cmd-Alt-[", run: yD }, - { key: "Ctrl-Shift-]", mac: "Cmd-Alt-]", run: wD }, - { key: "Ctrl-Alt-[", run: kD }, - { key: "Ctrl-Alt-]", run: xD } -], SD = { +}, SD = [ + { key: "Ctrl-Shift-[", mac: "Cmd-Alt-[", run: wD }, + { key: "Ctrl-Shift-]", mac: "Cmd-Alt-]", run: kD }, + { key: "Ctrl-Alt-[", run: xD }, + { key: "Ctrl-Alt-]", run: vD } +], _D = { placeholderDOM: null, preparePlaceholder: null, placeholderText: "\u2026" -}, Em = /* @__PURE__ */ I.define({ +}, Dg = /* @__PURE__ */ I.define({ combine(t) { - return jn(t, SD); + return jn(t, _D); } }); -function lv(t) { - let e = [Ci, $D]; - return t && e.push(Em.of(t)), e; -} -function av(t, e) { - let { state: n } = t, r = n.facet(Em), i = (o) => { - let l = t.lineBlockAt(t.posAtDOM(o.target)), a = Nc(t.state, l.from, l.to); - a && t.dispatch({ effects: Bl.of(a) }), o.preventDefault(); +function av(t) { + let e = [Ci, PD]; + return t && e.push(Dg.of(t)), e; +} +function cv(t, e) { + let { state: n } = t, r = n.facet(Dg), i = (o) => { + let l = t.lineBlockAt(t.posAtDOM(o.target)), a = qc(t.state, l.from, l.to); + a && t.dispatch({ effects: ql.of(a) }), o.preventDefault(); }; if (r.placeholderDOM) return r.placeholderDOM(t, i, e); let s = document.createElement("span"); return s.textContent = r.placeholderText, s.setAttribute("aria-label", n.phrase("folded code")), s.title = n.phrase("unfold"), s.className = "cm-foldPlaceholder", s.onclick = i, s; } -const u1 = /* @__PURE__ */ L.replace({ widget: /* @__PURE__ */ new class extends qt { +const f1 = /* @__PURE__ */ L.replace({ widget: /* @__PURE__ */ new class extends qt { toDOM(t) { - return av(t, null); + return cv(t, null); } }() }); -class _D extends qt { +class CD extends qt { constructor(e) { super(), this.value = e; } @@ -12505,10 +12505,10 @@ class _D extends qt { return this.value == e.value; } toDOM(e) { - return av(e, this.value); + return cv(e, this.value); } } -const CD = { +const AD = { openText: "\u2304", closedText: "\u203A", markerDOM: null, @@ -12529,8 +12529,8 @@ class Uu extends Ht { return n.textContent = this.open ? this.config.openText : this.config.closedText, n.title = e.state.phrase(this.open ? "Fold line" : "Unfold line"), n; } } -function AD(t = {}) { - let e = Object.assign(Object.assign({}, CD), t), n = new Uu(e, !0), r = new Uu(e, !1), i = ke.fromClass(class { +function $D(t = {}) { + let e = Object.assign(Object.assign({}, AD), t), n = new Uu(e, !0), r = new Uu(e, !1), i = ke.fromClass(class { constructor(o) { this.from = o.viewport.from, this.markers = this.buildMarkers(o); } @@ -12540,7 +12540,7 @@ function AD(t = {}) { buildMarkers(o) { let l = new He(); for (let a of o.viewportLineBlocks) { - let c = Nc(o.state, a.from, a.to) ? r : Ic(o.state, a.from, a.to) ? n : null; + let c = qc(o.state, a.from, a.to) ? r : Nc(o.state, a.from, a.to) ? n : null; c && l.add(a.from, a.from, c); } return l.finish(); @@ -12548,7 +12548,7 @@ function AD(t = {}) { }), { domEventHandlers: s } = e; return [ i, - Lh({ + Ih({ class: "cm-foldGutter", markers(o) { var l; @@ -12560,17 +12560,17 @@ function AD(t = {}) { domEventHandlers: Object.assign(Object.assign({}, s), { click: (o, l, a) => { if (s.click && s.click(o, l, a)) return !0; - let c = Nc(o.state, l.from, l.to); + let c = qc(o.state, l.from, l.to); if (c) - return o.dispatch({ effects: Bl.of(c) }), !0; - let h = Ic(o.state, l.from, l.to); - return h ? (o.dispatch({ effects: Nh.of(h) }), !0) : !1; + return o.dispatch({ effects: ql.of(c) }), !0; + let h = Nc(o.state, l.from, l.to); + return h ? (o.dispatch({ effects: qh.of(h) }), !0) : !1; } }) }), - lv() + av() ]; } -const $D = /* @__PURE__ */ E.baseTheme({ +const PD = /* @__PURE__ */ E.baseTheme({ ".cm-foldPlaceholder": { backgroundColor: "#eee", border: "1px solid #ddd", @@ -12585,7 +12585,7 @@ const $D = /* @__PURE__ */ E.baseTheme({ cursor: "pointer" } }); -class qh { +class Bh { constructor(e, n) { this.specs = e; let r; @@ -12594,7 +12594,7 @@ class qh { return (r || (r = /* @__PURE__ */ Object.create(null)))["." + a] = l, a; } const s = typeof n.all == "string" ? n.all : n.all ? i(n.all) : void 0, o = n.scope; - this.scope = o instanceof jt ? (l) => l.prop(fi) == o.data : o ? (l) => l == o : void 0, this.style = Hx(e.map((l) => ({ + this.scope = o instanceof jt ? (l) => l.prop(fi) == o.data : o ? (l) => l == o : void 0, this.style = Kx(e.map((l) => ({ tag: l.tag, class: l.class || i(Object.assign({}, l, { tag: null })) })), { @@ -12602,23 +12602,23 @@ class qh { }).style, this.module = r ? new hr(r) : null, this.themeType = n.themeType; } static define(e, n) { - return new qh(e, n || {}); + return new Bh(e, n || {}); } } -const tp = /* @__PURE__ */ I.define(), cv = /* @__PURE__ */ I.define({ +const np = /* @__PURE__ */ I.define(), hv = /* @__PURE__ */ I.define({ combine(t) { return t.length ? [t[0]] : null; } }); function Gu(t) { - let e = t.facet(tp); - return e.length ? e : t.facet(cv); + let e = t.facet(np); + return e.length ? e : t.facet(hv); } -function hv(t, e) { - let n = [TD], r; - return t instanceof qh && (t.module && n.push(E.styleModule.of(t.module)), r = t.themeType), e != null && e.fallback ? n.push(cv.of(t)) : r ? n.push(tp.computeN([E.darkTheme], (i) => i.facet(E.darkTheme) == (r == "dark") ? [t] : [])) : n.push(tp.of(t)), n; +function uv(t, e) { + let n = [QD], r; + return t instanceof Bh && (t.module && n.push(E.styleModule.of(t.module)), r = t.themeType), e != null && e.fallback ? n.push(hv.of(t)) : r ? n.push(np.computeN([E.darkTheme], (i) => i.facet(E.darkTheme) == (r == "dark") ? [t] : [])) : n.push(np.of(t)), n; } -class PD { +class TD { constructor(e) { this.markCache = /* @__PURE__ */ Object.create(null), this.tree = Se(e.state), this.decorations = this.buildDeco(e, Gu(e.state)); } @@ -12631,15 +12631,15 @@ class PD { return L.none; let r = new He(); for (let { from: i, to: s } of e.visibleRanges) - eD(this.tree, n, (o, l, a) => { + tD(this.tree, n, (o, l, a) => { r.add(o, l, this.markCache[a] || (this.markCache[a] = L.mark({ class: a }))); }, i, s); return r.finish(); } } -const TD = /* @__PURE__ */ bn.high(/* @__PURE__ */ ke.fromClass(PD, { +const QD = /* @__PURE__ */ bn.high(/* @__PURE__ */ ke.fromClass(TD, { decorations: (t) => t.decorations -})), uv = /* @__PURE__ */ qh.define([ +})), fv = /* @__PURE__ */ Bh.define([ { tag: k.meta, color: "#404740" @@ -12717,31 +12717,31 @@ const TD = /* @__PURE__ */ bn.high(/* @__PURE__ */ ke.fromClass(PD, { tag: k.invalid, color: "#f00" } -]), QD = /* @__PURE__ */ E.baseTheme({ +]), ED = /* @__PURE__ */ E.baseTheme({ "&.cm-focused .cm-matchingBracket": { backgroundColor: "#328c8252" }, "&.cm-focused .cm-nonmatchingBracket": { backgroundColor: "#bb555544" } -}), fv = 1e4, dv = "()[]{}", pv = /* @__PURE__ */ I.define({ +}), dv = 1e4, pv = "()[]{}", gv = /* @__PURE__ */ I.define({ combine(t) { return jn(t, { afterCursor: !0, - brackets: dv, - maxScanDistance: fv, - renderMatch: RD + brackets: pv, + maxScanDistance: dv, + renderMatch: MD }); } -}), ED = /* @__PURE__ */ L.mark({ class: "cm-matchingBracket" }), DD = /* @__PURE__ */ L.mark({ class: "cm-nonmatchingBracket" }); -function RD(t) { - let e = [], n = t.matched ? ED : DD; +}), DD = /* @__PURE__ */ L.mark({ class: "cm-matchingBracket" }), RD = /* @__PURE__ */ L.mark({ class: "cm-nonmatchingBracket" }); +function MD(t) { + let e = [], n = t.matched ? DD : RD; return e.push(n.range(t.start.from, t.start.to)), t.end && e.push(n.range(t.end.from, t.end.to)), e; } -const MD = /* @__PURE__ */ Ee.define({ +const ZD = /* @__PURE__ */ Ee.define({ create() { return L.none; }, update(t, e) { if (!e.docChanged && !e.selection) return t; - let n = [], r = e.state.facet(pv); + let n = [], r = e.state.facet(gv); for (let i of e.state.selection.ranges) { if (!i.empty) continue; @@ -12751,16 +12751,16 @@ const MD = /* @__PURE__ */ Ee.define({ return L.set(n, !0); }, provide: (t) => E.decorations.from(t) -}), ZD = [ - MD, - QD +}), LD = [ + ZD, + ED ]; -function LD(t = {}) { - return [pv.of(t), ZD]; +function ID(t = {}) { + return [gv.of(t), LD]; } -const mv = /* @__PURE__ */ new H(); -function np(t, e, n) { - let r = t.prop(e < 0 ? H.openedBy : H.closedBy); +const mv = /* @__PURE__ */ new K(); +function rp(t, e, n) { + let r = t.prop(e < 0 ? K.openedBy : K.closedBy); if (r) return r; if (t.name.length == 1) { @@ -12770,35 +12770,35 @@ function np(t, e, n) { } return null; } -function rp(t) { +function ip(t) { let e = t.type.prop(mv); return e ? e(t.node) : t; } function Rn(t, e, n, r = {}) { - let i = r.maxScanDistance || fv, s = r.brackets || dv, o = Se(t), l = o.resolveInner(e, n); + let i = r.maxScanDistance || dv, s = r.brackets || pv, o = Se(t), l = o.resolveInner(e, n); for (let a = l; a; a = a.parent) { - let c = np(a.type, n, s); + let c = rp(a.type, n, s); if (c && a.from < a.to) { - let h = rp(a); + let h = ip(a); if (h && (n > 0 ? e >= h.from && e < h.to : e > h.from && e <= h.to)) - return ID(t, e, n, a, h, c, s); + return ND(t, e, n, a, h, c, s); } } - return ND(t, e, n, o, l.type, i, s); + return qD(t, e, n, o, l.type, i, s); } -function ID(t, e, n, r, i, s, o) { +function ND(t, e, n, r, i, s, o) { let l = r.parent, a = { from: i.from, to: i.to }, c = 0, h = l == null ? void 0 : l.cursor(); if (h && (n < 0 ? h.childBefore(r.from) : h.childAfter(r.to))) do if (n < 0 ? h.to <= r.from : h.from >= r.to) { if (c == 0 && s.indexOf(h.type.name) > -1 && h.from < h.to) { - let u = rp(h); + let u = ip(h); return { start: a, end: u ? { from: u.from, to: u.to } : void 0, matched: !0 }; - } else if (np(h.type, n, o)) + } else if (rp(h.type, n, o)) c++; - else if (np(h.type, -n, o)) { + else if (rp(h.type, -n, o)) { if (c == 0) { - let u = rp(h); + let u = ip(h); return { start: a, end: u && u.from < u.to ? { from: u.from, to: u.to } : void 0, @@ -12811,7 +12811,7 @@ function ID(t, e, n, r, i, s, o) { while (n < 0 ? h.prevSibling() : h.nextSibling()); return { start: a, matched: !1 }; } -function ND(t, e, n, r, i, s, o) { +function qD(t, e, n, r, i, s, o) { let l = n < 0 ? t.sliceDoc(e - 1, e) : t.sliceDoc(e, e + 1), a = o.indexOf(l); if (a < 0 || a % 2 == 0 != n > 0) return null; @@ -12820,14 +12820,14 @@ function ND(t, e, n, r, i, s, o) { let d = h.value; n < 0 && (f += d.length); let p = e + f * n; - for (let m = n > 0 ? 0 : d.length - 1, g = n > 0 ? d.length : -1; m != g; m += n) { - let O = o.indexOf(d[m]); - if (!(O < 0 || r.resolveInner(p + m, 1).type != i)) + for (let g = n > 0 ? 0 : d.length - 1, m = n > 0 ? d.length : -1; g != m; g += n) { + let O = o.indexOf(d[g]); + if (!(O < 0 || r.resolveInner(p + g, 1).type != i)) if (O % 2 == 0 == n > 0) u++; else { if (u == 1) - return { start: c, end: { from: p + m, to: p + m + 1 }, matched: O >> 1 == a >> 1 }; + return { start: c, end: { from: p + g, to: p + g + 1 }, matched: O >> 1 == a >> 1 }; u--; } } @@ -12835,7 +12835,7 @@ function ND(t, e, n, r, i, s, o) { } return h.done ? { start: c, matched: !1 } : null; } -const qD = /* @__PURE__ */ Object.create(null), f1 = [Ve.none], d1 = [], p1 = /* @__PURE__ */ Object.create(null), BD = /* @__PURE__ */ Object.create(null); +const BD = /* @__PURE__ */ Object.create(null), d1 = [Ve.none], p1 = [], g1 = /* @__PURE__ */ Object.create(null), YD = /* @__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"] ]) - BD[t] = /* @__PURE__ */ YD(qD, e); + YD[t] = /* @__PURE__ */ XD(BD, e); function Hu(t, e) { - d1.indexOf(t) > -1 || (d1.push(t), console.warn(e)); + p1.indexOf(t) > -1 || (p1.push(t), console.warn(e)); } -function YD(t, e) { +function XD(t, e) { let n = []; for (let l of e.split(" ")) { let a = []; @@ -12867,21 +12867,21 @@ function YD(t, e) { } if (!n.length) return 0; - let r = e.replace(/ /g, "_"), i = r + " " + n.map((l) => l.id), s = p1[i]; + let r = e.replace(/ /g, "_"), i = r + " " + n.map((l) => l.id), s = g1[i]; if (s) return s.id; - let o = p1[i] = Ve.define({ - id: f1.length, + let o = g1[i] = Ve.define({ + id: d1.length, name: r, props: [Vs({ [r]: n })] }); - return f1.push(o), o.id; + return d1.push(o), o.id; } -const XD = (t) => { - let { state: e } = t, n = e.doc.lineAt(e.selection.main.from), r = Rm(t.state, n.from); - return r.line ? WD(t) : r.block ? jD(t) : !1; +const WD = (t) => { + let { state: e } = t, n = e.doc.lineAt(e.selection.main.from), r = Mg(t.state, n.from); + return r.line ? VD(t) : r.block ? zD(t) : !1; }; -function Dm(t, e) { +function Rg(t, e) { return ({ state: n, dispatch: r }) => { if (n.readOnly) return !1; @@ -12889,13 +12889,13 @@ function Dm(t, e) { return i ? (r(n.update(i)), !0) : !1; }; } -const WD = /* @__PURE__ */ Dm(UD, 0), VD = /* @__PURE__ */ Dm(gv, 0), jD = /* @__PURE__ */ Dm((t, e) => gv(t, e, FD(e)), 0); -function Rm(t, e) { +const VD = /* @__PURE__ */ Rg(GD, 0), jD = /* @__PURE__ */ Rg(Ov, 0), zD = /* @__PURE__ */ Rg((t, e) => Ov(t, e, UD(e)), 0); +function Mg(t, e) { let n = t.languageDataAt("commentTokens", e); return n.length ? n[0] : {}; } const fo = 50; -function zD(t, { open: e, close: n }, r, i) { +function FD(t, { open: e, close: n }, r, i) { let s = t.sliceDoc(r - fo, r), o = t.sliceDoc(i, i + fo), l = /\s*$/.exec(s)[0].length, a = /^\s*/.exec(o)[0].length, c = s.length - l; if (s.slice(c - e.length, c) == e && o.slice(a, a + n.length) == n) return { @@ -12916,7 +12916,7 @@ function zD(t, { open: e, close: n }, r, i) { } } : null; } -function FD(t) { +function UD(t) { let e = []; for (let n of t.selection.ranges) { let r = t.doc.lineAt(n.from), i = n.to <= r.to ? r : t.doc.lineAt(n.to), s = e.length - 1; @@ -12924,11 +12924,11 @@ function FD(t) { } return e; } -function gv(t, e, n = e.selection.ranges) { - let r = n.map((s) => Rm(e, s.from).block); +function Ov(t, e, n = e.selection.ranges) { + let r = n.map((s) => Mg(e, s.from).block); if (!r.every((s) => s)) return null; - let i = n.map((s, o) => zD(e, r[o], s.from, s.to)); + let i = n.map((s, o) => FD(e, r[o], s.from, s.to)); if (t != 2 && !i.every((s) => s)) return { changes: e.changes(n.map((s, o) => i[o] ? [] : [{ from: s.from, insert: r[o].open + " " }, { from: s.to, insert: " " + r[o].close }])) }; if (t != 1 && i.some((s) => s)) { @@ -12942,10 +12942,10 @@ function gv(t, e, n = e.selection.ranges) { } return null; } -function UD(t, e, n = e.selection.ranges) { +function GD(t, e, n = e.selection.ranges) { let r = [], i = -1; for (let { from: s, to: o } of n) { - let l = r.length, a = 1e9, c = Rm(e, s).line; + let l = r.length, a = 1e9, c = Mg(e, s).line; if (!!c) { for (let h = s; h <= o; ) { let u = e.doc.lineAt(h); @@ -12979,7 +12979,7 @@ function UD(t, e, n = e.selection.ranges) { } return null; } -const ip = /* @__PURE__ */ yn.define(), GD = /* @__PURE__ */ yn.define(), HD = /* @__PURE__ */ I.define(), Ov = /* @__PURE__ */ I.define({ +const sp = /* @__PURE__ */ yn.define(), HD = /* @__PURE__ */ yn.define(), KD = /* @__PURE__ */ I.define(), bv = /* @__PURE__ */ I.define({ combine(t) { return jn(t, { minDepth: 100, @@ -12991,17 +12991,17 @@ const ip = /* @__PURE__ */ yn.define(), GD = /* @__PURE__ */ yn.define(), HD = / joinToEvent: (e, n) => (r, i) => e(r, i) || n(r, i) }); } -}), bv = /* @__PURE__ */ Ee.define({ +}), yv = /* @__PURE__ */ Ee.define({ create() { return Mn.empty; }, update(t, e) { - let n = e.state.facet(Ov), r = e.annotation(ip); + let n = e.state.facet(bv), r = e.annotation(sp); if (r) { let a = At.fromTransaction(e, r.selection), c = r.side, h = c == 0 ? t.undone : t.done; - return a ? h = Bc(h, h.length, n.minDepth, a) : h = kv(h, e.startState.selection), new Mn(c == 0 ? r.rest : h, c == 0 ? h : r.rest); + return a ? h = Yc(h, h.length, n.minDepth, a) : h = xv(h, e.startState.selection), new Mn(c == 0 ? r.rest : h, c == 0 ? h : r.rest); } - let i = e.annotation(GD); + let i = e.annotation(HD); if ((i == "full" || i == "before") && (t = t.isolate()), e.annotation(We.addToHistory) === !1) return e.changes.empty ? t : t.addMapping(e.changes.desc); let s = At.fromTransaction(e), o = e.annotation(We.time), l = e.annotation(We.userEvent); @@ -13014,30 +13014,30 @@ const ip = /* @__PURE__ */ yn.define(), GD = /* @__PURE__ */ yn.define(), HD = / return new Mn(t.done.map(At.fromJSON), t.undone.map(At.fromJSON)); } }); -function Mm(t = {}) { +function Zg(t = {}) { return [ - bv, - Ov.of(t), + yv, + bv.of(t), E.domEventHandlers({ beforeinput(e, n) { - let r = e.inputType == "historyUndo" ? yv : e.inputType == "historyRedo" ? qc : null; + let r = e.inputType == "historyUndo" ? wv : e.inputType == "historyRedo" ? Bc : null; return r ? (e.preventDefault(), r(n)) : !1; } }) ]; } -function Bh(t, e) { +function Yh(t, e) { return function({ state: n, dispatch: r }) { if (!e && n.readOnly) return !1; - let i = n.field(bv, !1); + let i = n.field(yv, !1); if (!i) return !1; let s = i.pop(t, n, e); return s ? (r(s), !0) : !1; }; } -const yv = /* @__PURE__ */ Bh(0, !1), qc = /* @__PURE__ */ Bh(1, !1), KD = /* @__PURE__ */ Bh(0, !0), JD = /* @__PURE__ */ Bh(1, !0); +const wv = /* @__PURE__ */ Yh(0, !1), Bc = /* @__PURE__ */ Yh(1, !1), JD = /* @__PURE__ */ Yh(0, !0), eR = /* @__PURE__ */ Yh(1, !0); class At { constructor(e, n, r, i, s) { this.changes = e, this.effects = n, this.mapped = r, this.startSelection = i, this.selectionsAfter = s; @@ -13059,7 +13059,7 @@ class At { } static fromTransaction(e, n) { let r = zt; - for (let i of e.startState.facet(HD)) { + for (let i of e.startState.facet(KD)) { let s = i(e); s.length && (r = r.concat(s)); } @@ -13069,11 +13069,11 @@ class At { return new At(void 0, zt, void 0, void 0, e); } } -function Bc(t, e, n, r) { +function Yc(t, e, n, r) { let i = e + 1 > n + 20 ? e - n - 1 : 0, s = t.slice(i, e); return s.push(r), s; } -function eR(t, e) { +function tR(t, e) { let n = [], r = !1; return t.iterChangedRanges((i, s) => n.push(i, s)), e.iterChangedRanges((i, s, o, l) => { for (let a = 0; a < n.length; ) { @@ -13082,21 +13082,21 @@ function eR(t, e) { } }), r; } -function tR(t, e) { +function nR(t, e) { return t.ranges.length == e.ranges.length && t.ranges.filter((n, r) => n.empty != e.ranges[r].empty).length === 0; } -function wv(t, e) { +function kv(t, e) { return t.length ? e.length ? t.concat(e) : t : e; } -const zt = [], nR = 200; -function kv(t, e) { +const zt = [], rR = 200; +function xv(t, e) { if (t.length) { - let n = t[t.length - 1], r = n.selectionsAfter.slice(Math.max(0, n.selectionsAfter.length - nR)); - return r.length && r[r.length - 1].eq(e) ? t : (r.push(e), Bc(t, t.length - 1, 1e9, n.setSelAfter(r))); + let n = t[t.length - 1], r = n.selectionsAfter.slice(Math.max(0, n.selectionsAfter.length - rR)); + return r.length && r[r.length - 1].eq(e) ? t : (r.push(e), Yc(t, t.length - 1, 1e9, n.setSelAfter(r))); } else return [At.selection([e])]; } -function rR(t) { +function iR(t) { let e = t[t.length - 1], n = t.slice(); return n[t.length - 1] = e.setSelAfter(e.selectionsAfter.slice(0, e.selectionsAfter.length - 1)), n; } @@ -13105,7 +13105,7 @@ function Ku(t, e) { return t; let n = t.length, r = zt; for (; n; ) { - let i = iR(t[n - 1], e, r); + let i = sR(t[n - 1], e, r); if (i.changes && !i.changes.empty || i.effects.length) { let s = t.slice(0, n); return s[n - 1] = i, s; @@ -13114,14 +13114,14 @@ function Ku(t, e) { } return r.length ? [At.selection(r)] : zt; } -function iR(t, e, n) { - let r = wv(t.selectionsAfter.length ? t.selectionsAfter.map((l) => l.map(e)) : zt, n); +function sR(t, e, n) { + let r = kv(t.selectionsAfter.length ? t.selectionsAfter.map((l) => l.map(e)) : zt, n); if (!t.changes) return At.selection(r); let i = t.changes.map(e), s = e.mapDesc(t.changes, !0), o = t.mapped ? t.mapped.composeDesc(s) : s; return new At(i, F.mapEffects(t.effects, e), o, t.startSelection.map(s), r); } -const sR = /^(input\.type|delete)($|\.)/; +const oR = /^(input\.type|delete)($|\.)/; class Mn { constructor(e, n, r = 0, i = void 0) { this.done = e, this.undone = n, this.prevTime = r, this.prevUserEvent = i; @@ -13131,11 +13131,11 @@ class Mn { } addChanges(e, n, r, i, s) { let o = this.done, l = o[o.length - 1]; - return l && l.changes && !l.changes.empty && e.changes && (!r || sR.test(r)) && (!l.selectionsAfter.length && n - this.prevTime < i.newGroupDelay && i.joinToEvent(s, eR(l.changes, e.changes)) || r == "input.type.compose") ? o = Bc(o, o.length - 1, i.minDepth, new At(e.changes.compose(l.changes), wv(e.effects, l.effects), l.mapped, l.startSelection, zt)) : o = Bc(o, o.length, i.minDepth, e), new Mn(o, zt, n, r); + return l && l.changes && !l.changes.empty && e.changes && (!r || oR.test(r)) && (!l.selectionsAfter.length && n - this.prevTime < i.newGroupDelay && i.joinToEvent(s, tR(l.changes, e.changes)) || r == "input.type.compose") ? o = Yc(o, o.length - 1, i.minDepth, new At(e.changes.compose(l.changes), kv(e.effects, l.effects), l.mapped, l.startSelection, zt)) : o = Yc(o, o.length, i.minDepth, e), new Mn(o, zt, n, r); } addSelection(e, n, r, i) { let s = this.done.length ? this.done[this.done.length - 1].selectionsAfter : zt; - return s.length > 0 && n - this.prevTime < i && r == this.prevUserEvent && r && /^select($|\.)/.test(r) && tR(s[s.length - 1], e) ? this : new Mn(kv(this.done, e), this.undone, n, r); + return s.length > 0 && n - this.prevTime < i && r == this.prevUserEvent && r && /^select($|\.)/.test(r) && nR(s[s.length - 1], e) ? this : new Mn(xv(this.done, e), this.undone, n, r); } addMapping(e) { return new Mn(Ku(this.done, e), Ku(this.undone, e), this.prevTime, this.prevUserEvent); @@ -13148,7 +13148,7 @@ class Mn { if (r && s.selectionsAfter.length) return n.update({ selection: s.selectionsAfter[s.selectionsAfter.length - 1], - annotations: ip.of({ side: e, rest: rR(i), selection: o }), + annotations: sp.of({ side: e, rest: iR(i), selection: o }), userEvent: e == 0 ? "select.undo" : "select.redo", scrollIntoView: !0 }); @@ -13158,7 +13158,7 @@ class Mn { changes: s.changes, selection: s.startSelection, effects: s.effects, - annotations: ip.of({ side: e, rest: l, selection: o }), + annotations: sp.of({ side: e, rest: l, selection: o }), filter: !1, userEvent: e == 0 ? "undo" : "redo", scrollIntoView: !0 @@ -13168,12 +13168,12 @@ class Mn { } } Mn.empty = /* @__PURE__ */ new Mn(zt, zt); -const xv = [ - { key: "Mod-z", run: yv, preventDefault: !0 }, - { key: "Mod-y", mac: "Mod-Shift-z", run: qc, preventDefault: !0 }, - { linux: "Ctrl-Shift-z", run: qc, preventDefault: !0 }, - { key: "Mod-u", run: KD, preventDefault: !0 }, - { key: "Alt-u", mac: "Mod-Shift-u", run: JD, preventDefault: !0 } +const vv = [ + { key: "Mod-z", run: wv, preventDefault: !0 }, + { key: "Mod-y", mac: "Mod-Shift-z", run: Bc, preventDefault: !0 }, + { linux: "Ctrl-Shift-z", run: Bc, preventDefault: !0 }, + { key: "Mod-u", run: JD, preventDefault: !0 }, + { key: "Alt-u", mac: "Mod-Shift-u", run: eR, preventDefault: !0 } ]; function zs(t, e) { return C.create(t.ranges.map(e), t.mainIndex); @@ -13185,48 +13185,48 @@ function wn({ state: t, dispatch: e }, n) { let r = zs(t.selection, n); return r.eq(t.selection) ? !1 : (e(zn(t, r)), !0); } -function Yh(t, e) { +function Xh(t, e) { return C.cursor(e ? t.to : t.from); } -function vv(t, e) { - return wn(t, (n) => n.empty ? t.moveByChar(n, e) : Yh(n, e)); +function Sv(t, e) { + return wn(t, (n) => n.empty ? t.moveByChar(n, e) : Xh(n, e)); } function pt(t) { return t.textDirectionAt(t.state.selection.main.head) == Qe.LTR; } -const Sv = (t) => vv(t, !pt(t)), _v = (t) => vv(t, pt(t)); -function Cv(t, e) { - return wn(t, (n) => n.empty ? t.moveByGroup(n, e) : Yh(n, e)); +const _v = (t) => Sv(t, !pt(t)), Cv = (t) => Sv(t, pt(t)); +function Av(t, e) { + return wn(t, (n) => n.empty ? t.moveByGroup(n, e) : Xh(n, e)); } -const oR = (t) => Cv(t, !pt(t)), lR = (t) => Cv(t, pt(t)); -function aR(t, e, n) { +const lR = (t) => Av(t, !pt(t)), aR = (t) => Av(t, pt(t)); +function cR(t, e, n) { if (e.type.prop(n)) return !0; let r = e.to - e.from; return r && (r > 2 || /[^\s,.;:]/.test(t.sliceDoc(e.from, e.to))) || e.firstChild; } -function Xh(t, e, n) { - let r = Se(t).resolveInner(e.head), i = n ? H.closedBy : H.openedBy; +function Wh(t, e, n) { + let r = Se(t).resolveInner(e.head), i = n ? K.closedBy : K.openedBy; for (let a = e.head; ; ) { let c = n ? r.childAfter(a) : r.childBefore(a); if (!c) break; - aR(t, c, i) ? r = c : a = n ? c.to : c.from; + cR(t, c, i) ? r = c : a = n ? c.to : c.from; } let s = r.type.prop(i), o, l; return s && (o = n ? Rn(t, r.from, 1) : Rn(t, r.to, -1)) && o.matched ? l = n ? o.end.to : o.end.from : l = n ? r.to : r.from, C.cursor(l, n ? -1 : 1); } -const cR = (t) => wn(t, (e) => Xh(t.state, e, !pt(t))), hR = (t) => wn(t, (e) => Xh(t.state, e, pt(t))); -function Av(t, e) { +const hR = (t) => wn(t, (e) => Wh(t.state, e, !pt(t))), uR = (t) => wn(t, (e) => Wh(t.state, e, pt(t))); +function $v(t, e) { return wn(t, (n) => { if (!n.empty) - return Yh(n, e); + return Xh(n, e); let r = t.moveVertically(n, e); return r.head != n.head ? r : t.moveToLineBoundary(n, e); }); } -const $v = (t) => Av(t, !1), Pv = (t) => Av(t, !0); -function Tv(t) { +const Pv = (t) => $v(t, !1), Tv = (t) => $v(t, !0); +function Qv(t) { let e = t.scrollDOM.clientHeight < t.scrollDOM.scrollHeight - 2, n = 0, r = 0, i; if (e) { for (let s of t.state.facet(E.scrollMargins)) { @@ -13243,8 +13243,8 @@ function Tv(t) { height: Math.max(t.defaultLineHeight, i - 5) }; } -function Qv(t, e) { - let n = Tv(t), { state: r } = t, i = zs(r.selection, (o) => o.empty ? t.moveVertically(o, e, n.height) : Yh(o, e)); +function Ev(t, e) { + let n = Qv(t), { state: r } = t, i = zs(r.selection, (o) => o.empty ? t.moveVertically(o, e, n.height) : Xh(o, e)); if (i.eq(r.selection)) return !1; let s; @@ -13254,7 +13254,7 @@ function Qv(t, e) { } return t.dispatch(zn(r, i), { effects: s }), !0; } -const m1 = (t) => Qv(t, !1), sp = (t) => Qv(t, !0); +const m1 = (t) => Ev(t, !1), op = (t) => Ev(t, !0); function Ur(t, e, n) { let r = t.lineBlockAt(e.head), i = t.moveToLineBoundary(e, n); if (i.head == e.head && i.head != (n ? r.to : r.from) && (i = t.moveToLineBoundary(e, n, !1)), !n && i.head == r.from && r.length) { @@ -13263,8 +13263,8 @@ function Ur(t, e, n) { } return i; } -const uR = (t) => wn(t, (e) => Ur(t, e, !0)), fR = (t) => wn(t, (e) => Ur(t, e, !1)), dR = (t) => wn(t, (e) => Ur(t, e, !pt(t))), pR = (t) => wn(t, (e) => Ur(t, e, pt(t))), mR = (t) => wn(t, (e) => C.cursor(t.lineBlockAt(e.head).from, 1)), gR = (t) => wn(t, (e) => C.cursor(t.lineBlockAt(e.head).to, -1)); -function OR(t, e, n) { +const fR = (t) => wn(t, (e) => Ur(t, e, !0)), dR = (t) => wn(t, (e) => Ur(t, e, !1)), pR = (t) => wn(t, (e) => Ur(t, e, !pt(t))), gR = (t) => wn(t, (e) => Ur(t, e, pt(t))), mR = (t) => wn(t, (e) => C.cursor(t.lineBlockAt(e.head).from, 1)), OR = (t) => wn(t, (e) => C.cursor(t.lineBlockAt(e.head).to, -1)); +function bR(t, e, n) { let r = !1, i = zs(t.selection, (s) => { let o = Rn(t, s.head, -1) || Rn(t, s.head, 1) || s.head > 0 && Rn(t, s.head - 1, 1) || s.head < t.doc.length && Rn(t, s.head + 1, -1); if (!o || !o.end) @@ -13275,7 +13275,7 @@ function OR(t, e, n) { }); return r ? (e(zn(t, i)), !0) : !1; } -const bR = ({ state: t, dispatch: e }) => OR(t, e, !1); +const yR = ({ state: t, dispatch: e }) => bR(t, e, !1); function tn(t, e) { let n = zs(t.state.selection, (r) => { let i = e(r); @@ -13283,25 +13283,25 @@ function tn(t, e) { }); return n.eq(t.state.selection) ? !1 : (t.dispatch(zn(t.state, n)), !0); } -function Ev(t, e) { +function Dv(t, e) { return tn(t, (n) => t.moveByChar(n, e)); } -const Dv = (t) => Ev(t, !pt(t)), Rv = (t) => Ev(t, pt(t)); -function Mv(t, e) { +const Rv = (t) => Dv(t, !pt(t)), Mv = (t) => Dv(t, pt(t)); +function Zv(t, e) { return tn(t, (n) => t.moveByGroup(n, e)); } -const yR = (t) => Mv(t, !pt(t)), wR = (t) => Mv(t, pt(t)), kR = (t) => tn(t, (e) => Xh(t.state, e, !pt(t))), xR = (t) => tn(t, (e) => Xh(t.state, e, pt(t))); -function Zv(t, e) { +const wR = (t) => Zv(t, !pt(t)), kR = (t) => Zv(t, pt(t)), xR = (t) => tn(t, (e) => Wh(t.state, e, !pt(t))), vR = (t) => tn(t, (e) => Wh(t.state, e, pt(t))); +function Lv(t, e) { return tn(t, (n) => t.moveVertically(n, e)); } -const Lv = (t) => Zv(t, !1), Iv = (t) => Zv(t, !0); -function Nv(t, e) { - return tn(t, (n) => t.moveVertically(n, e, Tv(t).height)); +const Iv = (t) => Lv(t, !1), Nv = (t) => Lv(t, !0); +function qv(t, e) { + return tn(t, (n) => t.moveVertically(n, e, Qv(t).height)); } -const g1 = (t) => Nv(t, !1), O1 = (t) => Nv(t, !0), vR = (t) => tn(t, (e) => Ur(t, e, !0)), SR = (t) => tn(t, (e) => Ur(t, e, !1)), _R = (t) => tn(t, (e) => Ur(t, e, !pt(t))), CR = (t) => tn(t, (e) => Ur(t, e, pt(t))), AR = (t) => tn(t, (e) => C.cursor(t.lineBlockAt(e.head).from)), $R = (t) => tn(t, (e) => C.cursor(t.lineBlockAt(e.head).to)), b1 = ({ state: t, dispatch: e }) => (e(zn(t, { anchor: 0 })), !0), y1 = ({ state: t, dispatch: e }) => (e(zn(t, { anchor: t.doc.length })), !0), w1 = ({ state: t, dispatch: e }) => (e(zn(t, { anchor: t.selection.main.anchor, head: 0 })), !0), k1 = ({ state: t, dispatch: e }) => (e(zn(t, { anchor: t.selection.main.anchor, head: t.doc.length })), !0), PR = ({ state: t, dispatch: e }) => (e(t.update({ selection: { anchor: 0, head: t.doc.length }, userEvent: "select" })), !0), TR = ({ state: t, dispatch: e }) => { - let n = Wh(t).map(({ from: r, to: i }) => C.range(r, Math.min(i + 1, t.doc.length))); +const O1 = (t) => qv(t, !1), b1 = (t) => qv(t, !0), SR = (t) => tn(t, (e) => Ur(t, e, !0)), _R = (t) => tn(t, (e) => Ur(t, e, !1)), CR = (t) => tn(t, (e) => Ur(t, e, !pt(t))), AR = (t) => tn(t, (e) => Ur(t, e, pt(t))), $R = (t) => tn(t, (e) => C.cursor(t.lineBlockAt(e.head).from)), PR = (t) => tn(t, (e) => C.cursor(t.lineBlockAt(e.head).to)), y1 = ({ state: t, dispatch: e }) => (e(zn(t, { anchor: 0 })), !0), w1 = ({ state: t, dispatch: e }) => (e(zn(t, { anchor: t.doc.length })), !0), k1 = ({ state: t, dispatch: e }) => (e(zn(t, { anchor: t.selection.main.anchor, head: 0 })), !0), x1 = ({ state: t, dispatch: e }) => (e(zn(t, { anchor: t.selection.main.anchor, head: t.doc.length })), !0), TR = ({ state: t, dispatch: e }) => (e(t.update({ selection: { anchor: 0, head: t.doc.length }, userEvent: "select" })), !0), QR = ({ state: t, dispatch: e }) => { + let n = Vh(t).map(({ from: r, to: i }) => C.range(r, Math.min(i + 1, t.doc.length))); return e(t.update({ selection: C.create(n), userEvent: "select" })), !0; -}, QR = ({ state: t, dispatch: e }) => { +}, ER = ({ state: t, dispatch: e }) => { let n = zs(t.selection, (r) => { var i; let s = Se(t).resolveStack(r.from, 1); @@ -13313,11 +13313,11 @@ const g1 = (t) => Nv(t, !1), O1 = (t) => Nv(t, !0), vR = (t) => tn(t, (e) => Ur( return r; }); return e(zn(t, n)), !0; -}, ER = ({ state: t, dispatch: e }) => { +}, DR = ({ state: t, dispatch: e }) => { let n = t.selection, r = null; return n.ranges.length > 1 ? r = C.create([n.main]) : n.main.empty || (r = C.create([C.cursor(n.main.head)])), r ? (e(zn(t, r)), !0) : !1; }; -function Yl(t, e) { +function Bl(t, e) { if (t.state.readOnly) return !1; let n = "delete.selection", { state: r } = t, i = r.changeByRange((s) => { @@ -13343,19 +13343,19 @@ function Aa(t, e, n) { }); return e; } -const qv = (t, e) => Yl(t, (n) => { +const Bv = (t, e) => Bl(t, (n) => { let r = n.from, { state: i } = t, s = i.doc.lineAt(r), o, l; if (!e && r > s.from && r < s.from + 200 && !/[^ \t]/.test(o = s.text.slice(0, r - s.from))) { if (o[o.length - 1] == " ") return r - 1; - let a = dn(o, i.tabSize), c = a % Lc(i) || Lc(i); + let a = dn(o, i.tabSize), c = a % Ic(i) || Ic(i); for (let h = 0; h < c && o[o.length - 1 - h] == " "; h++) r--; l = r; } else l = it(s.text, r - s.from, e, e) + s.from, l == r && s.number != (e ? i.doc.lines : 1) ? l += e ? 1 : -1 : !e && /[\ufe00-\ufe0f]/.test(s.text.slice(l - s.from, r - s.from)) && (l = it(s.text, l - s.from, !1, !1) + s.from); return l; -}), op = (t) => qv(t, !1), Bv = (t) => qv(t, !0), Yv = (t, e) => Yl(t, (n) => { +}), lp = (t) => Bv(t, !1), Yv = (t) => Bv(t, !0), Xv = (t, e) => Bl(t, (n) => { let r = n.head, { state: i } = t, s = i.doc.lineAt(r), o = i.charCategorizer(r); for (let l = null; ; ) { if (r == (e ? s.to : s.from)) { @@ -13368,16 +13368,16 @@ const qv = (t, e) => Yl(t, (n) => { (c != " " || r != n.head) && (l = h), r = a; } return r; -}), Xv = (t) => Yv(t, !1), DR = (t) => Yv(t, !0), RR = (t) => Yl(t, (e) => { +}), Wv = (t) => Xv(t, !1), RR = (t) => Xv(t, !0), MR = (t) => Bl(t, (e) => { let n = t.lineBlockAt(e.head).to; return e.head < n ? n : Math.min(t.state.doc.length, e.head + 1); -}), MR = (t) => Yl(t, (e) => { +}), ZR = (t) => Bl(t, (e) => { let n = t.moveToLineBoundary(e, !1).head; return e.head > n ? n : Math.max(0, e.head - 1); -}), ZR = (t) => Yl(t, (e) => { +}), LR = (t) => Bl(t, (e) => { let n = t.moveToLineBoundary(e, !0).head; return e.head < n ? n : Math.min(t.state.doc.length, e.head + 1); -}), LR = ({ state: t, dispatch: e }) => { +}), IR = ({ state: t, dispatch: e }) => { if (t.readOnly) return !1; let n = t.changeByRange((r) => ({ @@ -13385,7 +13385,7 @@ const qv = (t, e) => Yl(t, (n) => { range: C.cursor(r.from) })); return e(t.update(n, { scrollIntoView: !0, userEvent: "input" })), !0; -}, IR = ({ state: t, dispatch: e }) => { +}, NR = ({ state: t, dispatch: e }) => { if (t.readOnly) return !1; let n = t.changeByRange((r) => { @@ -13399,7 +13399,7 @@ const qv = (t, e) => Yl(t, (n) => { }); return n.changes.empty ? !1 : (e(t.update(n, { scrollIntoView: !0, userEvent: "move.character" })), !0); }; -function Wh(t) { +function Vh(t) { let e = [], n = -1; for (let r of t.selection.ranges) { let i = t.doc.lineAt(r.from), s = t.doc.lineAt(r.to); @@ -13412,11 +13412,11 @@ function Wh(t) { } return e; } -function Wv(t, e, n) { +function Vv(t, e, n) { if (t.readOnly) return !1; let r = [], i = []; - for (let s of Wh(t)) { + for (let s of Vh(t)) { if (n ? s.to == t.doc.length : s.from == 0) continue; let o = t.doc.lineAt(n ? s.to + 1 : s.from - 1), l = o.length + 1; @@ -13437,41 +13437,41 @@ function Wv(t, e, n) { userEvent: "move.line" })), !0) : !1; } -const NR = ({ state: t, dispatch: e }) => Wv(t, e, !1), qR = ({ state: t, dispatch: e }) => Wv(t, e, !0); -function Vv(t, e, n) { +const qR = ({ state: t, dispatch: e }) => Vv(t, e, !1), BR = ({ state: t, dispatch: e }) => Vv(t, e, !0); +function jv(t, e, n) { if (t.readOnly) return !1; let r = []; - for (let i of Wh(t)) + for (let i of Vh(t)) n ? r.push({ from: i.from, insert: t.doc.slice(i.from, i.to) + t.lineBreak }) : r.push({ from: i.to, insert: t.lineBreak + t.doc.slice(i.from, i.to) }); return e(t.update({ changes: r, scrollIntoView: !0, userEvent: "input.copyline" })), !0; } -const BR = ({ state: t, dispatch: e }) => Vv(t, e, !1), YR = ({ state: t, dispatch: e }) => Vv(t, e, !0), XR = (t) => { +const YR = ({ state: t, dispatch: e }) => jv(t, e, !1), XR = ({ state: t, dispatch: e }) => jv(t, e, !0), WR = (t) => { if (t.state.readOnly) return !1; - let { state: e } = t, n = e.changes(Wh(e).map(({ from: i, to: s }) => (i > 0 ? i-- : s < e.doc.length && s++, { from: i, to: s }))), r = zs(e.selection, (i) => t.moveVertically(i, !0)).map(n); + let { state: e } = t, n = e.changes(Vh(e).map(({ from: i, to: s }) => (i > 0 ? i-- : s < e.doc.length && s++, { from: i, to: s }))), r = zs(e.selection, (i) => t.moveVertically(i, !0)).map(n); return t.dispatch({ changes: n, selection: r, scrollIntoView: !0, userEvent: "delete.line" }), !0; }; -function WR(t, e) { +function VR(t, e) { if (/\(\)|\[\]|\{\}/.test(t.sliceDoc(e - 1, e + 1))) return { from: e, to: e }; let n = Se(t).resolveInner(e), r = n.childBefore(e), i = n.childAfter(e), s; - return r && i && r.to <= e && i.from >= e && (s = r.type.prop(H.closedBy)) && s.indexOf(i.name) > -1 && t.doc.lineAt(r.to).from == t.doc.lineAt(i.from).from && !/\S/.test(t.sliceDoc(r.to, i.from)) ? { from: r.to, to: i.from } : null; + return r && i && r.to <= e && i.from >= e && (s = r.type.prop(K.closedBy)) && s.indexOf(i.name) > -1 && t.doc.lineAt(r.to).from == t.doc.lineAt(i.from).from && !/\S/.test(t.sliceDoc(r.to, i.from)) ? { from: r.to, to: i.from } : null; } -const VR = /* @__PURE__ */ jv(!1), jR = /* @__PURE__ */ jv(!0); -function jv(t) { +const jR = /* @__PURE__ */ zv(!1), zR = /* @__PURE__ */ zv(!0); +function zv(t) { return ({ state: e, dispatch: n }) => { if (e.readOnly) return !1; let r = e.changeByRange((i) => { - let { from: s, to: o } = i, l = e.doc.lineAt(s), a = !t && s == o && WR(e, s); + let { from: s, to: o } = i, l = e.doc.lineAt(s), a = !t && s == o && VR(e, s); t && (s = o = (o <= l.to ? l : e.doc.lineAt(o)).to); - let c = new Ih(e, { simulateBreak: s, simulateDoubleBreak: !!a }), h = Tm(c, s); + let c = new Nh(e, { simulateBreak: s, simulateDoubleBreak: !!a }), h = Qg(c, s); for (h == null && (h = dn(/^\s*/.exec(e.doc.lineAt(s).text)[0], e.tabSize)); o < l.to && /\s/.test(l.text[o - l.from]); ) o++; a ? { from: s, to: o } = a : s > l.from && s < l.from + 100 && !/\S/.test(l.text.slice(0, s)) && (s = l.from); - let u = ["", cl(e, h)]; - return a && u.push(cl(e, c.lineIndent(l.from, -1))), { + let u = ["", al(e, h)]; + return a && u.push(al(e, c.lineIndent(l.from, -1))), { changes: { from: s, to: o, insert: se.of(u) }, range: C.cursor(s + 1 + u[1].length) }; @@ -13479,7 +13479,7 @@ function jv(t) { return n(e.update(r, { scrollIntoView: !0, userEvent: "input" })), !0; }; } -function Zm(t, e) { +function Lg(t, e) { let n = -1; return t.changeByRange((r) => { let i = []; @@ -13494,91 +13494,91 @@ function Zm(t, e) { }; }); } -const zR = ({ state: t, dispatch: e }) => { +const FR = ({ state: t, dispatch: e }) => { if (t.readOnly) return !1; - let n = /* @__PURE__ */ Object.create(null), r = new Ih(t, { overrideIndentation: (s) => { + let n = /* @__PURE__ */ Object.create(null), r = new Nh(t, { overrideIndentation: (s) => { let o = n[s]; return o == null ? -1 : o; - } }), i = Zm(t, (s, o, l) => { - let a = Tm(r, s.from); + } }), i = Lg(t, (s, o, l) => { + let a = Qg(r, s.from); if (a == null) return; /\S/.test(s.text) || (a = 0); - let c = /^\s*/.exec(s.text)[0], h = cl(t, a); + let c = /^\s*/.exec(s.text)[0], h = al(t, a); (c != h || l.from < s.from + c.length) && (n[s.from] = a, o.push({ from: s.from, to: s.from + c.length, insert: h })); }); return i.changes.empty || e(t.update(i, { userEvent: "indent" })), !0; -}, zv = ({ state: t, dispatch: e }) => t.readOnly ? !1 : (e(t.update(Zm(t, (n, r) => { - r.push({ from: n.from, insert: t.facet(Nl) }); -}), { userEvent: "input.indent" })), !0), Fv = ({ state: t, dispatch: e }) => t.readOnly ? !1 : (e(t.update(Zm(t, (n, r) => { +}, Fv = ({ state: t, dispatch: e }) => t.readOnly ? !1 : (e(t.update(Lg(t, (n, r) => { + r.push({ from: n.from, insert: t.facet(Il) }); +}), { userEvent: "input.indent" })), !0), Uv = ({ state: t, dispatch: e }) => t.readOnly ? !1 : (e(t.update(Lg(t, (n, r) => { let i = /^\s*/.exec(n.text)[0]; if (!i) return; - let s = dn(i, t.tabSize), o = 0, l = cl(t, Math.max(0, s - Lc(t))); + let s = dn(i, t.tabSize), o = 0, l = al(t, Math.max(0, s - Ic(t))); for (; o < i.length && o < l.length && i.charCodeAt(o) == l.charCodeAt(o); ) o++; r.push({ from: n.from + o, to: n.from + i.length, insert: l.slice(o) }); -}), { userEvent: "delete.dedent" })), !0), FR = [ - { key: "Ctrl-b", run: Sv, shift: Dv, preventDefault: !0 }, - { key: "Ctrl-f", run: _v, shift: Rv }, - { key: "Ctrl-p", run: $v, shift: Lv }, - { key: "Ctrl-n", run: Pv, shift: Iv }, - { key: "Ctrl-a", run: mR, shift: AR }, - { key: "Ctrl-e", run: gR, shift: $R }, - { key: "Ctrl-d", run: Bv }, - { key: "Ctrl-h", run: op }, - { key: "Ctrl-k", run: RR }, - { key: "Ctrl-Alt-h", run: Xv }, - { key: "Ctrl-o", run: LR }, - { key: "Ctrl-t", run: IR }, - { key: "Ctrl-v", run: sp } -], UR = /* @__PURE__ */ [ - { key: "ArrowLeft", run: Sv, shift: Dv, preventDefault: !0 }, - { key: "Mod-ArrowLeft", mac: "Alt-ArrowLeft", run: oR, shift: yR, preventDefault: !0 }, - { mac: "Cmd-ArrowLeft", run: dR, shift: _R, preventDefault: !0 }, - { key: "ArrowRight", run: _v, shift: Rv, preventDefault: !0 }, - { key: "Mod-ArrowRight", mac: "Alt-ArrowRight", run: lR, shift: wR, preventDefault: !0 }, - { mac: "Cmd-ArrowRight", run: pR, shift: CR, preventDefault: !0 }, - { key: "ArrowUp", run: $v, shift: Lv, preventDefault: !0 }, - { mac: "Cmd-ArrowUp", run: b1, shift: w1 }, - { mac: "Ctrl-ArrowUp", run: m1, shift: g1 }, - { key: "ArrowDown", run: Pv, shift: Iv, preventDefault: !0 }, - { mac: "Cmd-ArrowDown", run: y1, shift: k1 }, - { mac: "Ctrl-ArrowDown", run: sp, shift: O1 }, - { key: "PageUp", run: m1, shift: g1 }, - { key: "PageDown", run: sp, shift: O1 }, - { key: "Home", run: fR, shift: SR, preventDefault: !0 }, - { key: "Mod-Home", run: b1, shift: w1 }, - { key: "End", run: uR, shift: vR, preventDefault: !0 }, - { key: "Mod-End", run: y1, shift: k1 }, - { key: "Enter", run: VR }, - { key: "Mod-a", run: PR }, - { key: "Backspace", run: op, shift: op }, - { key: "Delete", run: Bv }, - { key: "Mod-Backspace", mac: "Alt-Backspace", run: Xv }, - { key: "Mod-Delete", mac: "Alt-Delete", run: DR }, - { mac: "Mod-Backspace", run: MR }, - { mac: "Mod-Delete", run: ZR } -].concat(/* @__PURE__ */ FR.map((t) => ({ mac: t.key, run: t.run, shift: t.shift }))), Uv = /* @__PURE__ */ [ - { key: "Alt-ArrowLeft", mac: "Ctrl-ArrowLeft", run: cR, shift: kR }, - { key: "Alt-ArrowRight", mac: "Ctrl-ArrowRight", run: hR, shift: xR }, - { key: "Alt-ArrowUp", run: NR }, - { key: "Shift-Alt-ArrowUp", run: BR }, - { key: "Alt-ArrowDown", run: qR }, - { key: "Shift-Alt-ArrowDown", run: YR }, - { key: "Escape", run: ER }, - { key: "Mod-Enter", run: jR }, - { key: "Alt-l", mac: "Ctrl-l", run: TR }, - { key: "Mod-i", run: QR, preventDefault: !0 }, - { key: "Mod-[", run: Fv }, - { key: "Mod-]", run: zv }, - { key: "Mod-Alt-\\", run: zR }, - { key: "Shift-Mod-k", run: XR }, - { key: "Shift-Mod-\\", run: bR }, - { key: "Mod-/", run: XD }, - { key: "Alt-A", run: VD } -].concat(UR), GR = { key: "Tab", run: zv, shift: Fv }; +}), { userEvent: "delete.dedent" })), !0), UR = [ + { key: "Ctrl-b", run: _v, shift: Rv, preventDefault: !0 }, + { key: "Ctrl-f", run: Cv, shift: Mv }, + { key: "Ctrl-p", run: Pv, shift: Iv }, + { key: "Ctrl-n", run: Tv, shift: Nv }, + { key: "Ctrl-a", run: mR, shift: $R }, + { key: "Ctrl-e", run: OR, shift: PR }, + { key: "Ctrl-d", run: Yv }, + { key: "Ctrl-h", run: lp }, + { key: "Ctrl-k", run: MR }, + { key: "Ctrl-Alt-h", run: Wv }, + { key: "Ctrl-o", run: IR }, + { key: "Ctrl-t", run: NR }, + { key: "Ctrl-v", run: op } +], GR = /* @__PURE__ */ [ + { key: "ArrowLeft", run: _v, shift: Rv, preventDefault: !0 }, + { key: "Mod-ArrowLeft", mac: "Alt-ArrowLeft", run: lR, shift: wR, preventDefault: !0 }, + { mac: "Cmd-ArrowLeft", run: pR, shift: CR, preventDefault: !0 }, + { key: "ArrowRight", run: Cv, shift: Mv, preventDefault: !0 }, + { key: "Mod-ArrowRight", mac: "Alt-ArrowRight", run: aR, shift: kR, preventDefault: !0 }, + { mac: "Cmd-ArrowRight", run: gR, shift: AR, preventDefault: !0 }, + { key: "ArrowUp", run: Pv, shift: Iv, preventDefault: !0 }, + { mac: "Cmd-ArrowUp", run: y1, shift: k1 }, + { mac: "Ctrl-ArrowUp", run: m1, shift: O1 }, + { key: "ArrowDown", run: Tv, shift: Nv, preventDefault: !0 }, + { mac: "Cmd-ArrowDown", run: w1, shift: x1 }, + { mac: "Ctrl-ArrowDown", run: op, shift: b1 }, + { key: "PageUp", run: m1, shift: O1 }, + { key: "PageDown", run: op, shift: b1 }, + { key: "Home", run: dR, shift: _R, preventDefault: !0 }, + { key: "Mod-Home", run: y1, shift: k1 }, + { key: "End", run: fR, shift: SR, preventDefault: !0 }, + { key: "Mod-End", run: w1, shift: x1 }, + { key: "Enter", run: jR }, + { key: "Mod-a", run: TR }, + { key: "Backspace", run: lp, shift: lp }, + { key: "Delete", run: Yv }, + { key: "Mod-Backspace", mac: "Alt-Backspace", run: Wv }, + { key: "Mod-Delete", mac: "Alt-Delete", run: RR }, + { mac: "Mod-Backspace", run: ZR }, + { mac: "Mod-Delete", run: LR } +].concat(/* @__PURE__ */ UR.map((t) => ({ mac: t.key, run: t.run, shift: t.shift }))), Gv = /* @__PURE__ */ [ + { key: "Alt-ArrowLeft", mac: "Ctrl-ArrowLeft", run: hR, shift: xR }, + { key: "Alt-ArrowRight", mac: "Ctrl-ArrowRight", run: uR, shift: vR }, + { key: "Alt-ArrowUp", run: qR }, + { key: "Shift-Alt-ArrowUp", run: YR }, + { key: "Alt-ArrowDown", run: BR }, + { key: "Shift-Alt-ArrowDown", run: XR }, + { key: "Escape", run: DR }, + { key: "Mod-Enter", run: zR }, + { key: "Alt-l", mac: "Ctrl-l", run: QR }, + { key: "Mod-i", run: ER, preventDefault: !0 }, + { key: "Mod-[", run: Uv }, + { key: "Mod-]", run: Fv }, + { key: "Mod-Alt-\\", run: FR }, + { key: "Shift-Mod-k", run: WR }, + { key: "Shift-Mod-\\", run: yR }, + { key: "Mod-/", run: WD }, + { key: "Alt-A", run: jD } +].concat(GR), HR = { key: "Tab", run: Fv, shift: Uv }; function xe() { var t = arguments[0]; typeof t == "string" && (t = document.createElement(t)); @@ -13592,10 +13592,10 @@ function xe() { e++; } for (; e < arguments.length; e++) - Gv(t, arguments[e]); + Hv(t, arguments[e]); return t; } -function Gv(t, e) { +function Hv(t, e) { if (typeof e == "string") t.appendChild(document.createTextNode(e)); else if (e != null) @@ -13603,14 +13603,14 @@ function Gv(t, e) { t.appendChild(e); else if (Array.isArray(e)) for (var n = 0; n < e.length; n++) - Gv(t, e[n]); + Hv(t, e[n]); else throw new RangeError("Unsupported child node: " + e); } -const x1 = typeof String.prototype.normalize == "function" ? (t) => t.normalize("NFKD") : (t) => t; +const v1 = typeof String.prototype.normalize == "function" ? (t) => t.normalize("NFKD") : (t) => t; class As { constructor(e, n, r = 0, i = e.length, s, o) { - this.test = o, this.value = { from: 0, to: 0 }, this.done = !1, this.matches = [], this.buffer = "", this.bufferPos = 0, this.iter = e.iterRange(r, i), this.bufferStart = r, this.normalize = s ? (l) => s(x1(l)) : x1, this.query = this.normalize(n); + this.test = o, this.value = { from: 0, to: 0 }, this.done = !1, this.matches = [], this.buffer = "", this.bufferPos = 0, this.iter = e.iterRange(r, i), this.bufferStart = r, this.normalize = s ? (l) => s(v1(l)) : v1, this.query = this.normalize(n); } peek() { if (this.bufferPos == this.buffer.length) { @@ -13630,7 +13630,7 @@ class As { let e = this.peek(); if (e < 0) return this.done = !0, this; - let n = fm(e), r = this.bufferStart + this.bufferPos; + let n = dg(e), r = this.bufferStart + this.bufferPos; this.bufferPos += Yt(e); let i = this.normalize(n); for (let s = 0, o = r; ; s++) { @@ -13656,14 +13656,14 @@ class As { typeof Symbol < "u" && (As.prototype[Symbol.iterator] = function() { return this; }); -const Hv = { from: -1, to: -1, match: /* @__PURE__ */ /.*/.exec("") }, Lm = "gm" + (/x/.unicode == null ? "" : "u"); -class Kv { +const Kv = { from: -1, to: -1, match: /* @__PURE__ */ /.*/.exec("") }, Ig = "gm" + (/x/.unicode == null ? "" : "u"); +class Jv { constructor(e, n, r, i = 0, s = e.length) { - if (this.text = e, this.to = s, this.curLine = "", this.done = !1, this.value = Hv, /\\[sWDnr]|\n|\r|\[\^/.test(n)) - return new Jv(e, n, r, i, s); - this.re = new RegExp(n, Lm + (r != null && r.ignoreCase ? "i" : "")), this.test = r == null ? void 0 : r.test, this.iter = e.iter(); + if (this.text = e, this.to = s, this.curLine = "", this.done = !1, this.value = Kv, /\\[sWDnr]|\n|\r|\[\^/.test(n)) + return new eS(e, n, r, i, s); + this.re = new RegExp(n, Ig + (r != null && r.ignoreCase ? "i" : "")), this.test = r == null ? void 0 : r.test, this.iter = e.iter(); let o = e.lineAt(i); - this.curLineStart = o.from, this.matchPos = Yc(e, i), this.getLine(this.curLineStart); + this.curLineStart = o.from, this.matchPos = Xc(e, i), this.getLine(this.curLineStart); } getLine(e) { this.iter.next(e), this.iter.lineBreak ? this.curLine = "" : (this.curLine = this.iter.value, this.curLineStart + this.curLine.length > this.to && (this.curLine = this.curLine.slice(0, this.to - this.curLineStart)), this.iter.next()); @@ -13677,7 +13677,7 @@ class Kv { let n = this.matchPos <= this.to && this.re.exec(this.curLine); if (n) { let r = this.curLineStart + n.index, i = r + n[0].length; - if (this.matchPos = Yc(this.text, i + (r == i ? 1 : 0)), r == this.curLineStart + this.curLine.length && this.nextLine(), (r < i || r > this.value.to) && (!this.test || this.test(r, i, n))) + if (this.matchPos = Xc(this.text, i + (r == i ? 1 : 0)), r == this.curLineStart + this.curLine.length && this.nextLine(), (r < i || r > this.value.to) && (!this.test || this.test(r, i, n))) return this.value = { from: r, to: i, match: n }, this; e = this.matchPos - this.curLineStart; } else if (this.curLineStart + this.curLine.length < this.to) @@ -13707,9 +13707,9 @@ class ls { return o > n && (s = e.sliceString(n, o) + s, o = n), i.to < r && (s += e.sliceString(i.to, r)), Ju.set(e, new ls(o, s)), new ls(n, s.slice(n - o, r - o)); } } -class Jv { +class eS { constructor(e, n, r, i, s) { - this.text = e, this.to = s, this.done = !1, this.value = Hv, this.matchPos = Yc(e, i), this.re = new RegExp(n, Lm + (r != null && r.ignoreCase ? "i" : "")), this.test = r == null ? void 0 : r.test, this.flat = ls.get(e, i, this.chunkEnd(i + 5e3)); + this.text = e, this.to = s, this.done = !1, this.value = Kv, this.matchPos = Xc(e, i), this.re = new RegExp(n, Ig + (r != null && r.ignoreCase ? "i" : "")), this.test = r == null ? void 0 : r.test, this.flat = ls.get(e, i, this.chunkEnd(i + 5e3)); } chunkEnd(e) { return e >= this.to ? this.to : this.text.lineAt(e).to; @@ -13720,7 +13720,7 @@ class Jv { if (n && !n[0] && n.index == e && (this.re.lastIndex = e + 1, n = this.re.exec(this.flat.text)), n) { let r = this.flat.from + n.index, i = r + n[0].length; if ((this.flat.to >= this.to || n.index + n[0].length <= this.flat.text.length - 10) && (!this.test || this.test(r, i, n))) - return this.value = { from: r, to: i, match: n }, this.matchPos = Yc(this.text, i + (r == i ? 1 : 0)), this; + return this.value = { from: r, to: i, match: n }, this.matchPos = Xc(this.text, i + (r == i ? 1 : 0)), this; } if (this.flat.to == this.to) return this.done = !0, this; @@ -13728,17 +13728,17 @@ class Jv { } } } -typeof Symbol < "u" && (Kv.prototype[Symbol.iterator] = Jv.prototype[Symbol.iterator] = function() { +typeof Symbol < "u" && (Jv.prototype[Symbol.iterator] = eS.prototype[Symbol.iterator] = function() { return this; }); -function HR(t) { +function KR(t) { try { - return new RegExp(t, Lm), !0; + return new RegExp(t, Ig), !0; } catch { return !1; } } -function Yc(t, e) { +function Xc(t, e) { if (e >= t.length) return e; let n = t.lineAt(e), r; @@ -13746,11 +13746,11 @@ function Yc(t, e) { e++; return e; } -function lp(t) { +function ap(t) { let e = String(t.state.doc.lineAt(t.state.selection.main.head).number), n = xe("input", { class: "cm-textfield", name: "line", value: e }), r = xe("form", { class: "cm-gotoLine", onkeydown: (s) => { - s.keyCode == 27 ? (s.preventDefault(), t.dispatch({ effects: Xc.of(!1) }), t.focus()) : s.keyCode == 13 && (s.preventDefault(), i()); + s.keyCode == 27 ? (s.preventDefault(), t.dispatch({ effects: Wc.of(!1) }), t.focus()) : s.keyCode == 13 && (s.preventDefault(), i()); }, onsubmit: (s) => { s.preventDefault(), i(); @@ -13762,66 +13762,66 @@ function lp(t) { return; let { state: o } = t, l = o.doc.lineAt(o.selection.main.head), [, a, c, h, u] = s, f = h ? +h.slice(1) : 0, d = c ? +c : l.number; if (c && u) { - let g = d / 100; - a && (g = g * (a == "-" ? -1 : 1) + l.number / o.doc.lines), d = Math.round(o.doc.lines * g); + let m = d / 100; + a && (m = m * (a == "-" ? -1 : 1) + l.number / o.doc.lines), d = Math.round(o.doc.lines * m); } else c && a && (d = d * (a == "-" ? -1 : 1) + l.number); - let p = o.doc.line(Math.max(1, Math.min(o.doc.lines, d))), m = C.cursor(p.from + Math.max(0, Math.min(f, p.length))); + let p = o.doc.line(Math.max(1, Math.min(o.doc.lines, d))), g = C.cursor(p.from + Math.max(0, Math.min(f, p.length))); t.dispatch({ - effects: [Xc.of(!1), E.scrollIntoView(m.from, { y: "center" })], - selection: m + effects: [Wc.of(!1), E.scrollIntoView(g.from, { y: "center" })], + selection: g }), t.focus(); } return { dom: r }; } -const Xc = /* @__PURE__ */ F.define(), v1 = /* @__PURE__ */ Ee.define({ +const Wc = /* @__PURE__ */ F.define(), S1 = /* @__PURE__ */ Ee.define({ create() { return !0; }, update(t, e) { for (let n of e.effects) - n.is(Xc) && (t = n.value); + n.is(Wc) && (t = n.value); return t; }, - provide: (t) => il.from(t, (e) => e ? lp : null) -}), KR = (t) => { - let e = rl(t, lp); + provide: (t) => rl.from(t, (e) => e ? ap : null) +}), JR = (t) => { + let e = nl(t, ap); if (!e) { - let n = [Xc.of(!0)]; - t.state.field(v1, !1) == null && n.push(F.appendConfig.of([v1, JR])), t.dispatch({ effects: n }), e = rl(t, lp); + let n = [Wc.of(!0)]; + t.state.field(S1, !1) == null && n.push(F.appendConfig.of([S1, eM])), t.dispatch({ effects: n }), e = nl(t, ap); } return e && e.dom.querySelector("input").select(), !0; -}, JR = /* @__PURE__ */ E.baseTheme({ +}, eM = /* @__PURE__ */ E.baseTheme({ ".cm-panel.cm-gotoLine": { padding: "2px 6px 4px", "& label": { fontSize: "80%" } } -}), eM = { +}), tM = { highlightWordAroundCursor: !1, minSelectionLength: 1, maxMatches: 100, wholeWords: !1 -}, eS = /* @__PURE__ */ I.define({ +}, tS = /* @__PURE__ */ I.define({ combine(t) { - return jn(t, eM, { + return jn(t, tM, { highlightWordAroundCursor: (e, n) => e || n, minSelectionLength: Math.min, maxMatches: Math.min }); } }); -function tM(t) { - let e = [oM, sM]; - return t && e.push(eS.of(t)), e; +function nM(t) { + let e = [lM, oM]; + return t && e.push(tS.of(t)), e; } -const nM = /* @__PURE__ */ L.mark({ class: "cm-selectionMatch" }), rM = /* @__PURE__ */ L.mark({ class: "cm-selectionMatch cm-selectionMatch-main" }); -function S1(t, e, n, r) { +const rM = /* @__PURE__ */ L.mark({ class: "cm-selectionMatch" }), iM = /* @__PURE__ */ L.mark({ class: "cm-selectionMatch cm-selectionMatch-main" }); +function _1(t, e, n, r) { return (n == 0 || t(e.sliceDoc(n - 1, n)) != Pe.Word) && (r == e.doc.length || t(e.sliceDoc(r, r + 1)) != Pe.Word); } -function iM(t, e, n, r) { +function sM(t, e, n, r) { return t(e.sliceDoc(n, n + 1)) == Pe.Word && t(e.sliceDoc(r - 1, r)) == Pe.Word; } -const sM = /* @__PURE__ */ ke.fromClass(class { +const oM = /* @__PURE__ */ ke.fromClass(class { constructor(t) { this.decorations = this.getDeco(t); } @@ -13829,7 +13829,7 @@ const sM = /* @__PURE__ */ ke.fromClass(class { (t.selectionSet || t.docChanged || t.viewportChanged) && (this.decorations = this.getDeco(t.view)); } getDeco(t) { - let e = t.state.facet(eS), { state: n } = t, r = n.selection; + let e = t.state.facet(tS), { state: n } = t, r = n.selection; if (r.ranges.length > 1) return L.none; let i = r.main, s, o = null; @@ -13845,7 +13845,7 @@ const sM = /* @__PURE__ */ ke.fromClass(class { if (a < e.minSelectionLength || a > 200) return L.none; if (e.wholeWords) { - if (s = n.sliceDoc(i.from, i.to), o = n.charCategorizer(i.head), !(S1(o, n, i.from, i.to) && iM(o, n, i.from, i.to))) + if (s = n.sliceDoc(i.from, i.to), o = n.charCategorizer(i.head), !(_1(o, n, i.from, i.to) && sM(o, n, i.from, i.to))) return L.none; } else if (s = n.sliceDoc(i.from, i.to).trim(), !s) return L.none; @@ -13855,7 +13855,7 @@ const sM = /* @__PURE__ */ ke.fromClass(class { let c = new As(n.doc, s, a.from, a.to); for (; !c.next().done; ) { let { from: h, to: u } = c.value; - if ((!o || S1(o, n, h, u)) && (i.empty && h <= i.from && u >= i.to ? l.push(rM.range(h, u)) : (h >= i.to || u <= i.from) && l.push(nM.range(h, u)), l.length > e.maxMatches)) + if ((!o || _1(o, n, h, u)) && (i.empty && h <= i.from && u >= i.to ? l.push(iM.range(h, u)) : (h >= i.to || u <= i.from) && l.push(rM.range(h, u)), l.length > e.maxMatches)) return L.none; } } @@ -13863,14 +13863,14 @@ const sM = /* @__PURE__ */ ke.fromClass(class { } }, { decorations: (t) => t.decorations -}), oM = /* @__PURE__ */ E.baseTheme({ +}), lM = /* @__PURE__ */ E.baseTheme({ ".cm-selectionMatch": { backgroundColor: "#99ff7780" }, ".cm-searchMatch .cm-selectionMatch": { backgroundColor: "transparent" } -}), lM = ({ state: t, dispatch: e }) => { +}), aM = ({ state: t, dispatch: e }) => { let { selection: n } = t, r = C.create(n.ranges.map((i) => t.wordAt(i.head) || C.cursor(i.head)), n.mainIndex); return r.eq(n) ? !1 : (e(t.update({ selection: r })), !0); }; -function aM(t, e) { +function cM(t, e) { let { main: n, ranges: r } = t.selection, i = t.wordAt(n.head), s = i && i.from == n.from && i.to == n.to; for (let o = !1, l = new As(t.doc, e, r[r.length - 1].to); ; ) if (l.next(), l.done) { @@ -13888,14 +13888,14 @@ function aM(t, e) { return l.value; } } -const cM = ({ state: t, dispatch: e }) => { +const hM = ({ state: t, dispatch: e }) => { let { ranges: n } = t.selection; if (n.some((s) => s.from === s.to)) - return lM({ state: t, dispatch: e }); + return aM({ state: t, dispatch: e }); let r = t.sliceDoc(n[0].from, n[0].to); if (t.selection.ranges.some((s) => t.sliceDoc(s.from, s.to) != r)) return !1; - let i = aM(t, r); + let i = cM(t, r); return i ? (e(t.update({ selection: t.selection.addRange(C.range(i.from, i.to), !1), effects: E.scrollIntoView(i.to) @@ -13908,14 +13908,14 @@ const cM = ({ state: t, dispatch: e }) => { literal: !1, regexp: !1, wholeWord: !1, - createPanel: (e) => new kM(e), + createPanel: (e) => new xM(e), scrollToMatch: (e) => E.scrollIntoView(e) }); } }); -class tS { +class nS { 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 || HR(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 || KR(this.search)), this.unquoted = this.unquote(this.search), this.wholeWord = !!e.wholeWord; } unquote(e) { return this.literal ? e : e.replace(/\\([nrt\\])/g, (n, r) => r == "n" ? ` @@ -13925,25 +13925,25 @@ class tS { 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 dM(this) : new uM(this); + return this.regexp ? new pM(this) : new fM(this); } getCursor(e, n = 0, r) { let i = e.doc ? e : ne.create({ doc: e }); return r == null && (r = i.doc.length), this.regexp ? Fi(this, i, n, r) : zi(this, i, n, r); } } -class nS { +class rS { constructor(e) { this.spec = e; } } function zi(t, e, n, r) { - return new As(e.doc, t.unquoted, n, r, t.caseSensitive ? void 0 : (i) => i.toLowerCase(), t.wholeWord ? hM(e.doc, e.charCategorizer(e.selection.main.head)) : void 0); + return new As(e.doc, t.unquoted, n, r, t.caseSensitive ? void 0 : (i) => i.toLowerCase(), t.wholeWord ? uM(e.doc, e.charCategorizer(e.selection.main.head)) : void 0); } -function hM(t, e) { - return (n, r, i, s) => ((s > n || s + i.length < r) && (s = Math.max(0, n - 2), i = t.sliceString(s, Math.min(t.length, r + 2))), (e(Wc(i, n - s)) != Pe.Word || e(Vc(i, n - s)) != Pe.Word) && (e(Vc(i, r - s)) != Pe.Word || e(Wc(i, r - s)) != Pe.Word)); +function uM(t, e) { + return (n, r, i, s) => ((s > n || s + i.length < r) && (s = Math.max(0, n - 2), i = t.sliceString(s, Math.min(t.length, r + 2))), (e(Vc(i, n - s)) != Pe.Word || e(jc(i, n - s)) != Pe.Word) && (e(jc(i, r - s)) != Pe.Word || e(Vc(i, r - s)) != Pe.Word)); } -class uM extends nS { +class fM extends rS { constructor(e) { super(e); } @@ -13985,21 +13985,21 @@ class uM extends nS { } } function Fi(t, e, n, r) { - return new Kv(e.doc, t.search, { + return new Jv(e.doc, t.search, { ignoreCase: !t.caseSensitive, - test: t.wholeWord ? fM(e.charCategorizer(e.selection.main.head)) : void 0 + test: t.wholeWord ? dM(e.charCategorizer(e.selection.main.head)) : void 0 }, n, r); } -function Wc(t, e) { +function Vc(t, e) { return t.slice(it(t, e, !1), e); } -function Vc(t, e) { +function jc(t, e) { return t.slice(e, it(t, e)); } -function fM(t) { - return (e, n, r) => !r[0].length || (t(Wc(r.input, r.index)) != Pe.Word || t(Vc(r.input, r.index)) != Pe.Word) && (t(Vc(r.input, r.index + r[0].length)) != Pe.Word || t(Wc(r.input, r.index + r[0].length)) != Pe.Word); +function dM(t) { + return (e, n, r) => !r[0].length || (t(Vc(r.input, r.index)) != Pe.Word || t(jc(r.input, r.index)) != Pe.Word) && (t(jc(r.input, r.index + r[0].length)) != Pe.Word || t(Vc(r.input, r.index + r[0].length)) != Pe.Word); } -class dM extends nS { +class pM extends rS { nextMatch(e, n, r) { let i = Fi(this.spec, e, r, e.doc.length).next(); return i.done && (i = Fi(this.spec, e, 0, n).next()), i.done ? null : i.value; @@ -14036,23 +14036,23 @@ class dM extends nS { i(s.value.from, s.value.to); } } -const hl = /* @__PURE__ */ F.define(), Im = /* @__PURE__ */ F.define(), Rr = /* @__PURE__ */ Ee.define({ +const cl = /* @__PURE__ */ F.define(), Ng = /* @__PURE__ */ F.define(), Rr = /* @__PURE__ */ Ee.define({ create(t) { - return new ef(ap(t).create(), null); + return new ef(cp(t).create(), null); }, update(t, e) { for (let n of e.effects) - n.is(hl) ? t = new ef(n.value.create(), t.panel) : n.is(Im) && (t = new ef(t.query, n.value ? Nm : null)); + n.is(cl) ? t = new ef(n.value.create(), t.panel) : n.is(Ng) && (t = new ef(t.query, n.value ? qg : null)); return t; }, - provide: (t) => il.from(t, (e) => e.panel) + provide: (t) => rl.from(t, (e) => e.panel) }); class ef { constructor(e, n) { this.query = e, this.panel = n; } } -const pM = /* @__PURE__ */ L.mark({ class: "cm-searchMatch" }), mM = /* @__PURE__ */ L.mark({ class: "cm-searchMatch cm-searchMatch-selected" }), gM = /* @__PURE__ */ ke.fromClass(class { +const gM = /* @__PURE__ */ L.mark({ class: "cm-searchMatch" }), mM = /* @__PURE__ */ L.mark({ class: "cm-searchMatch cm-searchMatch-selected" }), OM = /* @__PURE__ */ ke.fromClass(class { constructor(t) { this.view = t, this.decorations = this.highlight(t.state.field(Rr)); } @@ -14070,7 +14070,7 @@ const pM = /* @__PURE__ */ L.mark({ class: "cm-searchMatch" }), mM = /* @__PURE_ a = s[++i].to; t.highlight(n.state, l, a, (c, h) => { let u = n.state.selection.ranges.some((f) => f.from == c && f.to == h); - r.add(c, h, u ? mM : pM); + r.add(c, h, u ? mM : gM); }); } return r.finish(); @@ -14078,39 +14078,39 @@ const pM = /* @__PURE__ */ L.mark({ class: "cm-searchMatch" }), mM = /* @__PURE_ }, { decorations: (t) => t.decorations }); -function Xl(t) { +function Yl(t) { return (e) => { let n = e.state.field(Rr, !1); - return n && n.query.spec.valid ? t(e, n) : sS(e); + return n && n.query.spec.valid ? t(e, n) : oS(e); }; } -const jc = /* @__PURE__ */ Xl((t, { query: e }) => { +const zc = /* @__PURE__ */ Yl((t, { query: e }) => { let { to: n } = t.state.selection.main, r = e.nextMatch(t.state, n, n); if (!r) return !1; let i = C.single(r.from, r.to), s = t.state.facet(Fs); return t.dispatch({ selection: i, - effects: [qm(t, r), s.scrollToMatch(i.main, t)], + effects: [Bg(t, r), s.scrollToMatch(i.main, t)], userEvent: "select.search" - }), iS(t), !0; -}), zc = /* @__PURE__ */ Xl((t, { query: e }) => { + }), sS(t), !0; +}), Fc = /* @__PURE__ */ Yl((t, { query: e }) => { let { state: n } = t, { from: r } = n.selection.main, i = e.prevMatch(n, r, r); if (!i) return !1; let s = C.single(i.from, i.to), o = t.state.facet(Fs); return t.dispatch({ selection: s, - effects: [qm(t, i), o.scrollToMatch(s.main, t)], + effects: [Bg(t, i), o.scrollToMatch(s.main, t)], userEvent: "select.search" - }), iS(t), !0; -}), OM = /* @__PURE__ */ Xl((t, { query: e }) => { + }), sS(t), !0; +}), bM = /* @__PURE__ */ Yl((t, { query: e }) => { let n = e.matchAll(t.state, 1e3); return !n || !n.length ? !1 : (t.dispatch({ selection: C.create(n.map((r) => C.range(r.from, r.to))), userEvent: "select.search.matches" }), !0); -}), bM = ({ state: t, dispatch: e }) => { +}), yM = ({ state: t, dispatch: e }) => { let n = t.selection; if (n.ranges.length > 1 || n.main.empty) return !1; @@ -14124,7 +14124,7 @@ const jc = /* @__PURE__ */ Xl((t, { query: e }) => { selection: C.create(s, o), userEvent: "select.search.matches" })), !0; -}, _1 = /* @__PURE__ */ Xl((t, { query: e }) => { +}, C1 = /* @__PURE__ */ Yl((t, { query: e }) => { let { state: n } = t, { from: r, to: i } = n.selection.main; if (n.readOnly) return !1; @@ -14134,7 +14134,7 @@ const jc = /* @__PURE__ */ Xl((t, { query: e }) => { let o = [], l, a, c = []; if (s.from == r && s.to == i && (a = n.toText(e.getReplacement(s)), o.push({ from: s.from, to: s.to, insert: a }), s = e.nextMatch(n, s.from, s.to), c.push(E.announce.of(n.phrase("replaced match on line $", n.doc.lineAt(r).number) + "."))), s) { let h = o.length == 0 || o[0].from >= s.to ? 0 : s.to - s.from - a.length; - l = C.single(s.from - h, s.to - h), c.push(qm(t, s)), c.push(n.facet(Fs).scrollToMatch(l.main, t)); + l = C.single(s.from - h, s.to - h), c.push(Bg(t, s)), c.push(n.facet(Fs).scrollToMatch(l.main, t)); } return t.dispatch({ changes: o, @@ -14142,7 +14142,7 @@ const jc = /* @__PURE__ */ Xl((t, { query: e }) => { effects: c, userEvent: "input.replace" }), !0; -}), yM = /* @__PURE__ */ Xl((t, { query: e }) => { +}), wM = /* @__PURE__ */ Yl((t, { query: e }) => { if (t.state.readOnly) return !1; let n = e.matchAll(t.state, 1e9).map((i) => { @@ -14158,16 +14158,16 @@ const jc = /* @__PURE__ */ Xl((t, { query: e }) => { userEvent: "input.replace.all" }), !0; }); -function Nm(t) { +function qg(t) { return t.state.facet(Fs).createPanel(t); } -function ap(t, e) { +function cp(t, e) { var n, r, i, s, o; let l = t.selection.main, a = l.empty || l.to > l.from + 100 ? "" : t.sliceDoc(l.from, l.to); if (e && !a) return e; let c = t.facet(Fs); - return new tS({ + return new nS({ search: ((n = e == null ? void 0 : e.literal) !== null && n !== void 0 ? n : c.literal) ? a : a.replace(/\n/g, "\\n"), caseSensitive: (r = e == null ? void 0 : e.caseSensitive) !== null && r !== void 0 ? r : c.caseSensitive, literal: (i = e == null ? void 0 : e.literal) !== null && i !== void 0 ? i : c.literal, @@ -14175,44 +14175,44 @@ function ap(t, e) { wholeWord: (o = e == null ? void 0 : e.wholeWord) !== null && o !== void 0 ? o : c.wholeWord }); } -function rS(t) { - let e = rl(t, Nm); +function iS(t) { + let e = nl(t, qg); return e && e.dom.querySelector("[main-field]"); } -function iS(t) { - let e = rS(t); +function sS(t) { + let e = iS(t); e && e == t.root.activeElement && e.select(); } -const sS = (t) => { +const oS = (t) => { let e = t.state.field(Rr, !1); if (e && e.panel) { - let n = rS(t); + let n = iS(t); if (n && n != t.root.activeElement) { - let r = ap(t.state, e.query.spec); - r.valid && t.dispatch({ effects: hl.of(r) }), n.focus(), n.select(); + let r = cp(t.state, e.query.spec); + r.valid && t.dispatch({ effects: cl.of(r) }), n.focus(), n.select(); } } else t.dispatch({ effects: [ - Im.of(!0), - e ? hl.of(ap(t.state, e.query.spec)) : F.appendConfig.of(vM) + Ng.of(!0), + e ? cl.of(cp(t.state, e.query.spec)) : F.appendConfig.of(SM) ] }); return !0; -}, oS = (t) => { +}, lS = (t) => { let e = t.state.field(Rr, !1); if (!e || !e.panel) return !1; - let n = rl(t, Nm); - return n && n.dom.contains(t.root.activeElement) && t.focus(), t.dispatch({ effects: Im.of(!1) }), !0; -}, wM = [ - { key: "Mod-f", run: sS, scope: "editor search-panel" }, - { key: "F3", run: jc, shift: zc, scope: "editor search-panel", preventDefault: !0 }, - { key: "Mod-g", run: jc, shift: zc, scope: "editor search-panel", preventDefault: !0 }, - { key: "Escape", run: oS, scope: "editor search-panel" }, - { key: "Mod-Shift-l", run: bM }, - { key: "Mod-Alt-g", run: KR }, - { key: "Mod-d", run: cM, preventDefault: !0 } + let n = nl(t, qg); + return n && n.dom.contains(t.root.activeElement) && t.focus(), t.dispatch({ effects: Ng.of(!1) }), !0; +}, kM = [ + { key: "Mod-f", run: oS, scope: "editor search-panel" }, + { key: "F3", run: zc, shift: Fc, scope: "editor search-panel", preventDefault: !0 }, + { key: "Mod-g", run: zc, shift: Fc, scope: "editor search-panel", preventDefault: !0 }, + { key: "Escape", run: lS, scope: "editor search-panel" }, + { key: "Mod-Shift-l", run: yM }, + { key: "Mod-Alt-g", run: JR }, + { key: "Mod-d", run: hM, preventDefault: !0 } ]; -class kM { +class xM { constructor(e) { this.view = e; let n = this.query = e.state.field(Rr).query.spec; @@ -14259,43 +14259,43 @@ class kM { } this.dom = xe("div", { onkeydown: (i) => this.keydown(i), class: "cm-search" }, [ this.searchField, - r("next", () => jc(e), [Qt(e, "next")]), - r("prev", () => zc(e), [Qt(e, "previous")]), - r("select", () => OM(e), [Qt(e, "all")]), + r("next", () => zc(e), [Qt(e, "next")]), + r("prev", () => Fc(e), [Qt(e, "previous")]), + r("select", () => bM(e), [Qt(e, "all")]), xe("label", null, [this.caseField, Qt(e, "match case")]), xe("label", null, [this.reField, Qt(e, "regexp")]), xe("label", null, [this.wordField, Qt(e, "by word")]), ...e.state.readOnly ? [] : [ xe("br"), this.replaceField, - r("replace", () => _1(e), [Qt(e, "replace")]), - r("replaceAll", () => yM(e), [Qt(e, "replace all")]) + r("replace", () => C1(e), [Qt(e, "replace")]), + r("replaceAll", () => wM(e), [Qt(e, "replace all")]) ], xe("button", { name: "close", - onclick: () => oS(e), + onclick: () => lS(e), "aria-label": Qt(e, "close"), type: "button" }, ["\xD7"]) ]); } commit() { - let e = new tS({ + let e = new nS({ search: this.searchField.value, caseSensitive: this.caseField.checked, regexp: this.reField.checked, wholeWord: this.wordField.checked, replace: this.replaceField.value }); - e.eq(this.query) || (this.query = e, this.view.dispatch({ effects: hl.of(e) })); + e.eq(this.query) || (this.query = e, this.view.dispatch({ effects: cl.of(e) })); } keydown(e) { - B2(this.view, e, "search-panel") ? e.preventDefault() : e.keyCode == 13 && e.target == this.searchField ? (e.preventDefault(), (e.shiftKey ? zc : jc)(this.view)) : e.keyCode == 13 && e.target == this.replaceField && (e.preventDefault(), _1(this.view)); + YQ(this.view, e, "search-panel") ? e.preventDefault() : e.keyCode == 13 && e.target == this.searchField ? (e.preventDefault(), (e.shiftKey ? Fc : zc)(this.view)) : e.keyCode == 13 && e.target == this.replaceField && (e.preventDefault(), C1(this.view)); } update(e) { for (let n of e.transactions) for (let r of n.effects) - r.is(hl) && !r.value.eq(this.query) && this.setQuery(r.value); + r.is(cl) && !r.value.eq(this.query) && this.setQuery(r.value); } setQuery(e) { this.query = e, this.searchField.value = e.search, this.replaceField.value = e.replace, this.caseField.checked = e.caseSensitive, this.reField.checked = e.regexp, this.wordField.checked = e.wholeWord; @@ -14314,7 +14314,7 @@ function Qt(t, e) { return t.state.phrase(e); } const $a = 30, Pa = /[\s\.,:;?!]/; -function qm(t, { from: e, to: n }) { +function Bg(t, { from: e, to: n }) { let r = t.state.doc.lineAt(e), i = t.state.doc.lineAt(n).to, s = Math.max(r.from, e - $a), o = Math.min(i, n + $a), l = t.state.sliceDoc(s, o); if (s != r.from) { for (let a = 0; a < $a; a++) @@ -14332,7 +14332,7 @@ function qm(t, { from: e, to: n }) { } return E.announce.of(`${t.state.phrase("current match")}. ${l} ${t.state.phrase("on line")} ${r.number}.`); } -const xM = /* @__PURE__ */ E.baseTheme({ +const vM = /* @__PURE__ */ E.baseTheme({ ".cm-panel.cm-search": { padding: "2px 6px 4px", position: "relative", @@ -14361,12 +14361,12 @@ const xM = /* @__PURE__ */ E.baseTheme({ "&dark .cm-searchMatch": { backgroundColor: "#00ffff8a" }, "&light .cm-searchMatch-selected": { backgroundColor: "#ff6a0054" }, "&dark .cm-searchMatch-selected": { backgroundColor: "#ff00ff8a" } -}), vM = [ +}), SM = [ Rr, - /* @__PURE__ */ bn.low(gM), - xM + /* @__PURE__ */ bn.low(OM), + vM ]; -class Bm { +class Yg { constructor(e, n, r) { this.state = e, this.pos = n, this.explicit = r, this.abortListeners = []; } @@ -14382,7 +14382,7 @@ class Bm { } : null; } matchBefore(e) { - let n = this.state.doc.lineAt(this.pos), r = Math.max(n.from, this.pos - 250), i = n.text.slice(r - n.from, this.pos - n.from), s = i.search(aS(e, !1)); + let n = this.state.doc.lineAt(this.pos), r = Math.max(n.from, this.pos - 250), i = n.text.slice(r - n.from, this.pos - n.from), s = i.search(cS(e, !1)); return s < 0 ? null : { from: r + s, to: this.pos, text: i.slice(s) }; } get aborted() { @@ -14392,28 +14392,28 @@ class Bm { e == "abort" && this.abortListeners && this.abortListeners.push(n); } } -function C1(t) { +function A1(t) { let e = Object.keys(t).join(""), n = /\w/.test(e); return n && (e = e.replace(/\w/g, "")), `[${n ? "\\w" : ""}${e.replace(/[^\w\s]/g, "\\$&")}]`; } -function SM(t) { +function _M(t) { let e = /* @__PURE__ */ Object.create(null), n = /* @__PURE__ */ Object.create(null); for (let { label: i } of t) { e[i[0]] = !0; for (let s = 1; s < i.length; s++) n[i[s]] = !0; } - let r = C1(e) + C1(n) + "*$"; + let r = A1(e) + A1(n) + "*$"; return [new RegExp("^" + r), new RegExp(r)]; } -function lS(t) { - let e = t.map((i) => typeof i == "string" ? { label: i } : i), [n, r] = e.every((i) => /^\w+$/.test(i.label)) ? [/\w*$/, /\w+$/] : SM(e); +function aS(t) { + let e = t.map((i) => typeof i == "string" ? { label: i } : i), [n, r] = e.every((i) => /^\w+$/.test(i.label)) ? [/\w*$/, /\w+$/] : _M(e); return (i) => { let s = i.matchBefore(r); return s || i.explicit ? { from: s ? s.from : i.pos, options: e, validFor: n } : null; }; } -function _M(t, e) { +function CM(t, e) { return (n) => { for (let r = Se(n.state).resolveInner(n.pos, -1); r; r = r.parent) { if (t.indexOf(r.name) > -1) @@ -14424,7 +14424,7 @@ function _M(t, e) { return e(n); }; } -class A1 { +class $1 { constructor(e, n, r, i) { this.completion = e, this.source = n, this.match = r, this.score = i; } @@ -14432,28 +14432,28 @@ class A1 { function Mr(t) { return t.selection.main.from; } -function aS(t, e) { +function cS(t, e) { var n; let { source: r } = t, i = e && r[0] != "^", s = r[r.length - 1] != "$"; return !i && !s ? t : new RegExp(`${i ? "^" : ""}(?:${r})${s ? "$" : ""}`, (n = t.flags) !== null && n !== void 0 ? n : t.ignoreCase ? "i" : ""); } -const cS = /* @__PURE__ */ yn.define(); -function CM(t, e, n, r) { +const hS = /* @__PURE__ */ yn.define(); +function AM(t, e, n, r) { let { main: i } = t.selection, s = n - i.from, o = r - i.from; return Object.assign(Object.assign({}, t.changeByRange((l) => l != i && n != r && t.sliceDoc(l.from + s, l.from + o) != t.sliceDoc(n, r) ? { range: l } : { changes: { from: l.from + s, to: r == i.from ? l.to : l.from + o, insert: e }, range: C.cursor(l.from + s + e.length) })), { scrollIntoView: !0, userEvent: "input.complete" }); } -const $1 = /* @__PURE__ */ new WeakMap(); -function AM(t) { +const P1 = /* @__PURE__ */ new WeakMap(); +function $M(t) { if (!Array.isArray(t)) return t; - let e = $1.get(t); - return e || $1.set(t, e = lS(t)), e; + let e = P1.get(t); + return e || P1.set(t, e = aS(t)), e; } -const Ym = /* @__PURE__ */ F.define(), ul = /* @__PURE__ */ F.define(); -class $M { +const Xg = /* @__PURE__ */ F.define(), hl = /* @__PURE__ */ F.define(); +class PM { constructor(e) { this.pattern = e, this.chars = [], this.folded = [], this.any = [], this.precise = [], this.byWord = [], this.score = 0, this.matched = []; for (let n = 0; n < e.length; ) { @@ -14494,14 +14494,14 @@ class $M { if (c < a) return !1; } - let h = 0, u = 0, f = !1, d = 0, p = -1, m = -1, g = /[a-z]/.test(e), O = !0; + let h = 0, u = 0, f = !1, d = 0, p = -1, g = -1, m = /[a-z]/.test(e), O = !0; for (let b = 0, y = Math.min(e.length, 200), w = 0; b < y && u < a; ) { let S = et(e, b); - l < 0 && (h < a && S == n[h] && (s[h++] = b), d < a && (S == n[d] || S == r[d] ? (d == 0 && (p = b), m = b + 1, d++) : d = 0)); - let x, v = S < 255 ? S >= 48 && S <= 57 || S >= 97 && S <= 122 ? 2 : S >= 65 && S <= 90 ? 1 : 0 : (x = fm(S)) != x.toLowerCase() ? 1 : x != x.toUpperCase() ? 2 : 0; - (!b || v == 1 && g || w == 0 && v != 0) && (n[u] == S || r[u] == S && (f = !0) ? o[u++] = b : o.length && (O = !1)), w = v, b += Yt(S); + l < 0 && (h < a && S == n[h] && (s[h++] = b), d < a && (S == n[d] || S == r[d] ? (d == 0 && (p = b), g = b + 1, d++) : d = 0)); + let x, v = S < 255 ? S >= 48 && S <= 57 || S >= 97 && S <= 122 ? 2 : S >= 65 && S <= 90 ? 1 : 0 : (x = dg(S)) != x.toLowerCase() ? 1 : x != x.toUpperCase() ? 2 : 0; + (!b || v == 1 && m || w == 0 && v != 0) && (n[u] == S || r[u] == S && (f = !0) ? o[u++] = b : o.length && (O = !1)), w = v, b += Yt(S); } - return u == a && o[0] == 0 && O ? this.result(-100 + (f ? -200 : 0), o, e) : d == a && p == 0 ? this.ret(-200 - e.length + (m == e.length ? 0 : -100), [0, m]) : l > -1 ? this.ret(-700 - e.length, [l, l + this.pattern.length]) : d == a ? this.ret(-200 + -700 - e.length, [p, m]) : u == a ? this.result(-100 + (f ? -200 : 0) + -700 + (O ? 0 : -1100), o, e) : n.length == 2 ? !1 : this.result((i[0] ? -700 : 0) + -200 + -1100, i, e); + return u == a && o[0] == 0 && O ? this.result(-100 + (f ? -200 : 0), o, e) : d == a && p == 0 ? this.ret(-200 - e.length + (g == e.length ? 0 : -100), [0, g]) : l > -1 ? this.ret(-700 - e.length, [l, l + this.pattern.length]) : d == a ? this.ret(-200 + -700 - e.length, [p, g]) : u == a ? this.result(-100 + (f ? -200 : 0) + -700 + (O ? 0 : -1100), o, e) : n.length == 2 ? !1 : this.result((i[0] ? -700 : 0) + -200 + -1100, i, e); } result(e, n, r) { let i = [], s = 0; @@ -14526,7 +14526,7 @@ const ft = /* @__PURE__ */ I.define({ aboveCursor: !1, icons: !0, addToOptions: [], - positionInfo: PM, + positionInfo: TM, compareCompletions: (e, n) => e.label.localeCompare(n.label), interactionDelay: 75, updateSyncTime: 100 @@ -14534,31 +14534,31 @@ const ft = /* @__PURE__ */ I.define({ defaultKeymap: (e, n) => e && n, closeOnBlur: (e, n) => e && n, icons: (e, n) => e && n, - tooltipClass: (e, n) => (r) => P1(e(r), n(r)), - optionClass: (e, n) => (r) => P1(e(r), n(r)), + tooltipClass: (e, n) => (r) => T1(e(r), n(r)), + optionClass: (e, n) => (r) => T1(e(r), n(r)), addToOptions: (e, n) => e.concat(n) }); } }); -function P1(t, e) { +function T1(t, e) { return t ? e ? t + " " + e : t : e; } -function PM(t, e, n, r, i, s) { - let o = t.textDirection == Qe.RTL, l = o, a = !1, c = "top", h, u, f = e.left - i.left, d = i.right - e.right, p = r.right - r.left, m = r.bottom - r.top; +function TM(t, e, n, r, i, s) { + let o = t.textDirection == Qe.RTL, l = o, a = !1, c = "top", h, u, f = e.left - i.left, d = i.right - e.right, p = r.right - r.left, g = r.bottom - r.top; if (l && f < Math.min(p, d) ? l = !1 : !l && d < Math.min(p, f) && (l = !0), p <= (l ? f : d)) - h = Math.max(i.top, Math.min(n.top, i.bottom - m)) - e.top, u = Math.min(400, l ? f : d); + h = Math.max(i.top, Math.min(n.top, i.bottom - g)) - e.top, u = Math.min(400, l ? f : d); else { a = !0, u = Math.min(400, (o ? e.right : i.right - e.left) - 30); let b = i.bottom - e.bottom; - b >= m || b > e.top ? h = n.bottom - e.top : (c = "bottom", h = e.bottom - n.top); + b >= g || b > e.top ? h = n.bottom - e.top : (c = "bottom", h = e.bottom - n.top); } - let g = (e.bottom - e.top) / s.offsetHeight, O = (e.right - e.left) / s.offsetWidth; + let m = (e.bottom - e.top) / s.offsetHeight, O = (e.right - e.left) / s.offsetWidth; return { - style: `${c}: ${h / g}px; max-width: ${u / O}px`, + style: `${c}: ${h / m}px; max-width: ${u / O}px`, class: "cm-completionInfo-" + (a ? o ? "left-narrow" : "right-narrow" : l ? "left" : "right") }; } -function TM(t) { +function QM(t) { let e = t.addToOptions.slice(); return t.icons && e.push({ render(n) { @@ -14600,7 +14600,7 @@ function tf(t, e, n) { let r = Math.floor((t - e) / n); return { from: t - (r + 1) * n, to: t - r * n }; } -class QM { +class EM { constructor(e, n, r) { this.view = e, this.stateField = n, this.applyCompletion = r, this.info = null, this.infoDestroy = null, this.placeInfoReq = { read: () => this.measureInfo(), @@ -14608,7 +14608,7 @@ class QM { key: this }, this.space = null, this.currentClass = ""; let i = e.state.field(n), { options: s, selected: o } = i.open, l = e.state.facet(ft); - this.optionContent = TM(l), this.optionClass = l.optionClass, this.tooltipClass = l.tooltipClass, this.range = tf(s.length, o, l.maxRenderedOptions), this.dom = document.createElement("div"), this.dom.className = "cm-tooltip-autocomplete", this.updateTooltipClass(e.state), this.dom.addEventListener("mousedown", (a) => { + this.optionContent = QM(l), this.optionClass = l.optionClass, this.tooltipClass = l.tooltipClass, this.range = tf(s.length, o, l.maxRenderedOptions), this.dom = document.createElement("div"), this.dom.className = "cm-tooltip-autocomplete", this.updateTooltipClass(e.state), this.dom.addEventListener("mousedown", (a) => { let { options: c } = e.state.field(n).open; for (let h = a.target, u; h && h != this.dom; h = h.parentNode) if (h.nodeName == "LI" && (u = /-(\d+)$/.exec(h.id)) && +u[1] < c.length) { @@ -14617,7 +14617,7 @@ class QM { } }), this.dom.addEventListener("focusout", (a) => { let c = e.state.field(this.stateField, !1); - c && c.tooltip && e.state.facet(ft).closeOnBlur && a.relatedTarget != e.contentDOM && e.dispatch({ effects: ul.of(null) }); + c && c.tooltip && e.state.facet(ft).closeOnBlur && a.relatedTarget != e.contentDOM && e.dispatch({ effects: hl.of(null) }); }), this.showOptions(s, i.id); } mount() { @@ -14679,7 +14679,7 @@ class QM { let n = null; for (let r = this.list.firstChild, i = this.range.from; r; r = r.nextSibling, i++) r.nodeName != "LI" || !r.id ? i-- : i == e ? r.hasAttribute("aria-selected") || (r.setAttribute("aria-selected", "true"), n = r) : r.hasAttribute("aria-selected") && r.removeAttribute("aria-selected"); - return n && DM(this.list, n), n; + return n && RM(this.list, n), n; } measureInfo() { let e = this.dom.querySelector("[aria-selected]"); @@ -14729,17 +14729,17 @@ class QM { this.destroyInfo(); } } -function EM(t, e) { - return (n) => new QM(n, t, e); -} function DM(t, e) { + return (n) => new EM(n, t, e); +} +function RM(t, e) { let n = t.getBoundingClientRect(), r = e.getBoundingClientRect(), i = n.height / t.offsetHeight; r.top < n.top ? t.scrollTop -= (n.top - r.top) / i : r.bottom > n.bottom && (t.scrollTop += (r.bottom - n.bottom) / i); } -function T1(t) { +function Q1(t) { return (t.boost || 0) * 100 + (t.apply ? 10 : 0) + (t.info ? 5 : 0) + (t.type ? 1 : 0); } -function RM(t, e) { +function MM(t, e) { let n = [], r = null, i = (a) => { n.push(a); let { section: c } = a.completion; @@ -14754,13 +14754,13 @@ function RM(t, e) { let c = a.result.getMatch; if (a.result.filter === !1) for (let h of a.result.options) - i(new A1(h, a.source, c ? c(h) : [], 1e9 - n.length)); + i(new $1(h, a.source, c ? c(h) : [], 1e9 - n.length)); else { - let h = new $M(e.sliceDoc(a.from, a.to)); + let h = new PM(e.sliceDoc(a.from, a.to)); for (let u of a.result.options) if (h.match(u.label)) { let f = u.displayLabel ? c ? c(u, h.matched) : [] : h.matched; - i(new A1(u, a.source, f, h.score + (u.boost || 0))); + i(new $1(u, a.source, f, h.score + (u.boost || 0))); } } } @@ -14779,7 +14779,7 @@ function RM(t, e) { let s = [], o = null, l = e.facet(ft).compareCompletions; for (let a of n.sort((c, h) => h.score - c.score || l(c.completion, h.completion))) { let c = a.completion; - !o || o.label != c.label || o.detail != c.detail || o.type != null && c.type != null && o.type != c.type || o.apply != c.apply || o.boost != c.boost ? s.push(a) : T1(a.completion) > T1(o) && (s[s.length - 1] = a), o = a.completion; + !o || o.label != c.label || o.detail != c.detail || o.type != null && c.type != null && o.type != c.type || o.apply != c.apply || o.boost != c.boost ? s.push(a) : Q1(a.completion) > Q1(o) && (s[s.length - 1] = a), o = a.completion; } return s; } @@ -14788,10 +14788,10 @@ class Ji { this.options = e, this.attrs = n, this.tooltip = r, this.timestamp = i, this.selected = s, this.disabled = o; } setSelected(e, n) { - return e == this.selected || e >= this.options.length ? this : new Ji(this.options, Q1(n, e), this.tooltip, this.timestamp, e, this.disabled); + return e == this.selected || e >= this.options.length ? this : new Ji(this.options, E1(n, e), this.tooltip, this.timestamp, e, this.disabled); } static build(e, n, r, i, s) { - let o = RM(e, n); + let o = MM(e, n); if (!o.length) return i && e.some((a) => a.state == 1) ? new Ji(i.options, i.attrs, i.tooltip, i.timestamp, i.selected, !0) : null; let l = n.facet(ft).selectOnOpen ? 0 : -1; @@ -14803,9 +14803,9 @@ class Ji { break; } } - return new Ji(o, Q1(r, l), { + return new Ji(o, E1(r, l), { pos: e.reduce((a, c) => c.hasResult() ? Math.min(a, c.from) : a, 1e8), - create: NM, + create: qM, above: s.aboveCursor }, i ? i.timestamp : Date.now(), l, !1); } @@ -14813,30 +14813,30 @@ class Ji { return new Ji(this.options, this.attrs, Object.assign(Object.assign({}, this.tooltip), { pos: e.mapPos(this.tooltip.pos) }), this.timestamp, this.selected, this.disabled); } } -class Fc { +class Uc { constructor(e, n, r) { this.active = e, this.id = n, this.open = r; } static start() { - return new Fc(LM, "cm-ac-" + Math.floor(Math.random() * 2e6).toString(36), null); + return new Uc(IM, "cm-ac-" + Math.floor(Math.random() * 2e6).toString(36), null); } update(e) { - let { state: n } = e, r = n.facet(ft), s = (r.override || n.languageDataAt("autocomplete", Mr(n)).map(AM)).map((l) => (this.active.find((c) => c.source == l) || new St(l, this.active.some((c) => c.state != 0) ? 1 : 0)).update(e, r)); + let { state: n } = e, r = n.facet(ft), s = (r.override || n.languageDataAt("autocomplete", Mr(n)).map($M)).map((l) => (this.active.find((c) => c.source == l) || new St(l, this.active.some((c) => c.state != 0) ? 1 : 0)).update(e, r)); s.length == this.active.length && s.every((l, a) => l == this.active[a]) && (s = this.active); let o = this.open; - o && e.docChanged && (o = o.map(e.changes)), e.selection || s.some((l) => l.hasResult() && e.changes.touchesRange(l.from, l.to)) || !MM(s, this.active) ? o = Ji.build(s, n, this.id, o, r) : o && o.disabled && !s.some((l) => l.state == 1) && (o = null), !o && s.every((l) => l.state != 1) && s.some((l) => l.hasResult()) && (s = s.map((l) => l.hasResult() ? new St(l.source, 0) : l)); + o && e.docChanged && (o = o.map(e.changes)), e.selection || s.some((l) => l.hasResult() && e.changes.touchesRange(l.from, l.to)) || !ZM(s, this.active) ? o = Ji.build(s, n, this.id, o, r) : o && o.disabled && !s.some((l) => l.state == 1) && (o = null), !o && s.every((l) => l.state != 1) && s.some((l) => l.hasResult()) && (s = s.map((l) => l.hasResult() ? new St(l.source, 0) : l)); for (let l of e.effects) - l.is(uS) && (o = o && o.setSelected(l.value, this.id)); - return s == this.active && o == this.open ? this : new Fc(s, this.id, o); + l.is(fS) && (o = o && o.setSelected(l.value, this.id)); + return s == this.active && o == this.open ? this : new Uc(s, this.id, o); } get tooltip() { return this.open ? this.open.tooltip : null; } get attrs() { - return this.open ? this.open.attrs : ZM; + return this.open ? this.open.attrs : LM; } } -function MM(t, e) { +function ZM(t, e) { if (t == e) return !0; for (let n = 0, r = 0; ; ) { @@ -14851,10 +14851,10 @@ function MM(t, e) { return !1; } } -const ZM = { +const LM = { "aria-autocomplete": "list" }; -function Q1(t, e) { +function E1(t, e) { let n = { "aria-autocomplete": "list", "aria-haspopup": "listbox", @@ -14862,8 +14862,8 @@ function Q1(t, e) { }; return e > -1 && (n["aria-activedescendant"] = t + "-" + e), n; } -const LM = []; -function cp(t) { +const IM = []; +function hp(t) { return t.isUserEvent("input.type") ? "input" : t.isUserEvent("delete.backward") ? "delete" : null; } class St { @@ -14874,14 +14874,14 @@ class St { return !1; } update(e, n) { - let r = cp(e), i = this; + let r = hp(e), i = this; r ? i = i.handleUserEvent(e, r, n) : e.docChanged ? i = i.handleChange(e) : e.selection && i.state != 0 && (i = new St(i.source, 0)); for (let s of e.effects) - if (s.is(Ym)) + if (s.is(Xg)) i = new St(i.source, 1, s.value ? Mr(e.state) : -1); - else if (s.is(ul)) + else if (s.is(hl)) i = new St(i.source, 0); - else if (s.is(hS)) + else if (s.is(uS)) for (let o of s.value) o.source == i.source && (i = o); return i; @@ -14909,7 +14909,7 @@ class as extends St { if ((this.explicitPos < 0 ? l <= s : l < this.from) || l > o || n == "delete" && Mr(e.startState) == this.from) return new St(this.source, n == "input" && r.activateOnTyping ? 1 : 0); let a = this.explicitPos < 0 ? -1 : e.changes.mapPos(this.explicitPos), c; - return IM(this.result.validFor, e.state, s, o) ? new as(this.source, a, this.result, s, o) : this.result.update && (c = this.result.update(this.result, s, o, new Bm(e.state, l, a >= 0))) ? new as(this.source, a, c, c.from, (i = c.to) !== null && i !== void 0 ? i : Mr(e.state)) : new St(this.source, 1, a); + return NM(this.result.validFor, e.state, s, o) ? new as(this.source, a, this.result, s, o) : this.result.update && (c = this.result.update(this.result, s, o, new Yg(e.state, l, a >= 0))) ? new as(this.source, a, c, c.from, (i = c.to) !== null && i !== void 0 ? i : Mr(e.state)) : new St(this.source, 1, a); } handleChange(e) { return e.changes.touchesRange(this.from, this.to) ? new St(this.source, 0) : this.map(e.changes); @@ -14918,58 +14918,58 @@ class as extends St { return e.empty ? this : new as(this.source, this.explicitPos < 0 ? -1 : e.mapPos(this.explicitPos), this.result, e.mapPos(this.from), e.mapPos(this.to, 1)); } } -function IM(t, e, n, r) { +function NM(t, e, n, r) { if (!t) return !1; let i = e.sliceDoc(n, r); - return typeof t == "function" ? t(i, n, r, e) : aS(t, !0).test(i); + return typeof t == "function" ? t(i, n, r, e) : cS(t, !0).test(i); } -const hS = /* @__PURE__ */ F.define({ +const uS = /* @__PURE__ */ F.define({ map(t, e) { return t.map((n) => n.map(e)); } -}), uS = /* @__PURE__ */ F.define(), Zt = /* @__PURE__ */ Ee.define({ +}), fS = /* @__PURE__ */ F.define(), Zt = /* @__PURE__ */ Ee.define({ create() { - return Fc.start(); + return Uc.start(); }, update(t, e) { return t.update(e); }, provide: (t) => [ - vm.from(t, (e) => e.tooltip), + Sg.from(t, (e) => e.tooltip), E.contentAttributes.from(t, (e) => e.attrs) ] }); -function fS(t, e) { +function dS(t, e) { const n = e.completion.apply || e.completion.label; let r = t.state.field(Zt).active.find((i) => i.source == e.source); - return r instanceof as ? (typeof n == "string" ? t.dispatch(Object.assign(Object.assign({}, CM(t.state, n, r.from, r.to)), { annotations: cS.of(e.completion) })) : n(t, e.completion, r.from, r.to), !0) : !1; + return r instanceof as ? (typeof n == "string" ? t.dispatch(Object.assign(Object.assign({}, AM(t.state, n, r.from, r.to)), { annotations: hS.of(e.completion) })) : n(t, e.completion, r.from, r.to), !0) : !1; } -const NM = /* @__PURE__ */ EM(Zt, fS); +const qM = /* @__PURE__ */ DM(Zt, dS); function Ta(t, e = "option") { return (n) => { let r = n.state.field(Zt, !1); if (!r || !r.open || r.open.disabled || Date.now() - r.open.timestamp < n.state.facet(ft).interactionDelay) return !1; let i = 1, s; - e == "page" && (s = qx(n, r.open.tooltip)) && (i = Math.max(2, Math.floor(s.dom.offsetHeight / s.dom.querySelector("li").offsetHeight) - 1)); + e == "page" && (s = Bx(n, r.open.tooltip)) && (i = Math.max(2, Math.floor(s.dom.offsetHeight / s.dom.querySelector("li").offsetHeight) - 1)); let { length: o } = r.open.options, l = r.open.selected > -1 ? r.open.selected + i * (t ? 1 : -1) : t ? 0 : o - 1; - return l < 0 ? l = e == "page" ? 0 : o - 1 : l >= o && (l = e == "page" ? o - 1 : 0), n.dispatch({ effects: uS.of(l) }), !0; + return l < 0 ? l = e == "page" ? 0 : o - 1 : l >= o && (l = e == "page" ? o - 1 : 0), n.dispatch({ effects: fS.of(l) }), !0; }; } -const qM = (t) => { +const BM = (t) => { let e = t.state.field(Zt, !1); - return t.state.readOnly || !e || !e.open || e.open.selected < 0 || e.open.disabled || Date.now() - e.open.timestamp < t.state.facet(ft).interactionDelay ? !1 : fS(t, e.open.options[e.open.selected]); -}, BM = (t) => t.state.field(Zt, !1) ? (t.dispatch({ effects: Ym.of(!0) }), !0) : !1, YM = (t) => { + return t.state.readOnly || !e || !e.open || e.open.selected < 0 || e.open.disabled || Date.now() - e.open.timestamp < t.state.facet(ft).interactionDelay ? !1 : dS(t, e.open.options[e.open.selected]); +}, YM = (t) => t.state.field(Zt, !1) ? (t.dispatch({ effects: Xg.of(!0) }), !0) : !1, XM = (t) => { let e = t.state.field(Zt, !1); - return !e || !e.active.some((n) => n.state != 0) ? !1 : (t.dispatch({ effects: ul.of(null) }), !0); + return !e || !e.active.some((n) => n.state != 0) ? !1 : (t.dispatch({ effects: hl.of(null) }), !0); }; -class XM { +class WM { constructor(e, n) { this.active = e, this.context = n, this.time = Date.now(), this.updates = [], this.done = void 0; } } -const WM = 50, VM = 1e3, jM = /* @__PURE__ */ ke.fromClass(class { +const VM = 50, jM = 1e3, zM = /* @__PURE__ */ ke.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(Zt).active) @@ -14979,10 +14979,10 @@ const WM = 50, VM = 1e3, jM = /* @__PURE__ */ ke.fromClass(class { let e = t.state.field(Zt); if (!t.selectionSet && !t.docChanged && t.startState.field(Zt) == e) return; - let n = t.transactions.some((r) => (r.selection || r.docChanged) && !cp(r)); + let n = t.transactions.some((r) => (r.selection || r.docChanged) && !hp(r)); for (let r = 0; r < this.running.length; r++) { let i = this.running[r]; - if (n || i.updates.length + t.transactions.length > WM && Date.now() - i.time > VM) { + if (n || i.updates.length + t.transactions.length > VM && Date.now() - i.time > jM) { for (let s of i.context.abortListeners) try { s(); @@ -14995,7 +14995,7 @@ const WM = 50, VM = 1e3, jM = /* @__PURE__ */ ke.fromClass(class { } if (this.debounceUpdate > -1 && clearTimeout(this.debounceUpdate), this.debounceUpdate = e.active.some((r) => r.state == 1 && !this.running.some((i) => i.active.source == r.source)) ? setTimeout(() => this.startUpdate(), 50) : -1, this.composing != 0) for (let r of t.transactions) - cp(r) == "input" ? this.composing = 2 : this.composing == 2 && r.selection && (this.composing = 3); + hp(r) == "input" ? this.composing = 2 : this.composing == 2 && r.selection && (this.composing = 3); } startUpdate() { this.debounceUpdate = -1; @@ -15004,11 +15004,11 @@ const WM = 50, VM = 1e3, jM = /* @__PURE__ */ ke.fromClass(class { n.state == 1 && !this.running.some((r) => r.active.source == n.source) && this.startQuery(n); } startQuery(t) { - let { state: e } = this.view, n = Mr(e), r = new Bm(e, n, t.explicitPos == n), i = new XM(t, r); + let { state: e } = this.view, n = Mr(e), r = new Yg(e, n, t.explicitPos == n), i = new WM(t, r); this.running.push(i), Promise.resolve(t.source(r)).then((s) => { i.context.aborted || (i.done = s || null, this.scheduleAccept()); }, (s) => { - this.view.dispatch({ effects: ul.of(null) }), Ft(this.view.state, s); + this.view.dispatch({ effects: hl.of(null) }), Ft(this.view.state, s); }); } scheduleAccept() { @@ -15041,25 +15041,25 @@ const WM = 50, VM = 1e3, jM = /* @__PURE__ */ ke.fromClass(class { } else this.startQuery(s); } - e.length && this.view.dispatch({ effects: hS.of(e) }); + e.length && this.view.dispatch({ effects: uS.of(e) }); } }, { eventHandlers: { blur(t) { let e = this.view.state.field(Zt, !1); if (e && e.tooltip && this.view.state.facet(ft).closeOnBlur) { - let n = e.open && qx(this.view, e.open.tooltip); - (!n || !n.dom.contains(t.relatedTarget)) && this.view.dispatch({ effects: ul.of(null) }); + let n = e.open && Bx(this.view, e.open.tooltip); + (!n || !n.dom.contains(t.relatedTarget)) && this.view.dispatch({ effects: hl.of(null) }); } }, compositionstart() { this.composing = 1; }, compositionend() { - this.composing == 3 && setTimeout(() => this.view.dispatch({ effects: Ym.of(!1) }), 20), this.composing = 0; + this.composing == 3 && setTimeout(() => this.view.dispatch({ effects: Xg.of(!1) }), 20), this.composing = 0; } } -}), dS = /* @__PURE__ */ E.baseTheme({ +}), pS = /* @__PURE__ */ E.baseTheme({ ".cm-tooltip.cm-tooltip-autocomplete": { "& > ul": { fontFamily: "monospace", @@ -15181,21 +15181,21 @@ const WM = 50, VM = 1e3, jM = /* @__PURE__ */ ke.fromClass(class { "&:after": { content: "'abc'", fontSize: "50%", verticalAlign: "middle" } } }); -class zM { +class FM { constructor(e, n, r, i) { this.field = e, this.line = n, this.from = r, this.to = i; } } -class Xm { +class Wg { constructor(e, n, r) { this.field = e, this.from = n, this.to = r; } map(e) { let n = e.mapPos(this.from, -1, nt.TrackDel), r = e.mapPos(this.to, 1, nt.TrackDel); - return n == null || r == null ? null : new Xm(this.field, n, r); + return n == null || r == null ? null : new Wg(this.field, n, r); } } -class Wm { +class Vg { constructor(e, n) { this.lines = e, this.fieldPositions = n; } @@ -15205,12 +15205,12 @@ class Wm { if (r.length) { let c = o, h = /^\t*/.exec(a)[0].length; for (let u = 0; u < h; u++) - c += e.facet(Nl); + c += e.facet(Il); i.push(n + c.length - h), a = c + a.slice(h); } r.push(a), n += a.length + 1; } - let l = this.fieldPositions.map((a) => new Xm(a.field, i[a.line] + a.from, i[a.line] + a.to)); + let l = this.fieldPositions.map((a) => new Wg(a.field, i[a.line] + a.from, i[a.line] + a.to)); return { text: r, ranges: l }; } static parse(e) { @@ -15228,7 +15228,7 @@ class Wm { for (let u of i) u.field >= c && u.field++; } - i.push(new zM(c, r.length, s.index, s.index + a.length)), o = o.slice(0, s.index) + a + o.slice(s.index + s[0].length); + i.push(new FM(c, r.length, s.index, s.index + a.length)), o = o.slice(0, s.index) + a + o.slice(s.index + s[0].length); } for (let l; l = /\\([{}])/.exec(o); ) { o = o.slice(0, l.index) + l[1] + o.slice(l.index + l[0].length); @@ -15237,10 +15237,10 @@ class Wm { } r.push(o); } - return new Wm(r, i); + return new Vg(r, i); } } -let FM = /* @__PURE__ */ L.widget({ widget: /* @__PURE__ */ new class extends qt { +let UM = /* @__PURE__ */ L.widget({ widget: /* @__PURE__ */ new class extends qt { toDOM() { let t = document.createElement("span"); return t.className = "cm-snippetFieldPosition", t; @@ -15248,10 +15248,10 @@ let FM = /* @__PURE__ */ L.widget({ widget: /* @__PURE__ */ new class extends qt ignoreEvent() { return !1; } -}() }), UM = /* @__PURE__ */ L.mark({ class: "cm-snippetField" }); +}() }), GM = /* @__PURE__ */ L.mark({ class: "cm-snippetField" }); class Us { constructor(e, n) { - this.ranges = e, this.active = n, this.deco = L.set(e.map((r) => (r.from == r.to ? FM : UM).range(r.from, r.to))); + this.ranges = e, this.active = n, this.deco = L.set(e.map((r) => (r.from == r.to ? UM : GM).range(r.from, r.to))); } map(e) { let n = []; @@ -15267,80 +15267,80 @@ class Us { return e.ranges.every((n) => this.ranges.some((r) => r.field == this.active && r.from <= n.from && r.to >= n.to)); } } -const Wl = /* @__PURE__ */ F.define({ +const Xl = /* @__PURE__ */ F.define({ map(t, e) { return t && t.map(e); } -}), GM = /* @__PURE__ */ F.define(), fl = /* @__PURE__ */ Ee.define({ +}), HM = /* @__PURE__ */ F.define(), ul = /* @__PURE__ */ Ee.define({ create() { return null; }, update(t, e) { for (let n of e.effects) { - if (n.is(Wl)) + if (n.is(Xl)) return n.value; - if (n.is(GM) && t) + if (n.is(HM) && t) return new Us(t.ranges, n.value); } return t && e.docChanged && (t = t.map(e.changes)), t && e.selection && !t.selectionInsideField(e.selection) && (t = null), t; }, provide: (t) => E.decorations.from(t, (e) => e ? e.deco : L.none) }); -function Vm(t, e) { +function jg(t, e) { return C.create(t.filter((n) => n.field == e).map((n) => C.range(n.from, n.to))); } -function HM(t) { - let e = Wm.parse(t); +function KM(t) { + let e = Vg.parse(t); return (n, r, i, s) => { let { text: o, ranges: l } = e.instantiate(n.state, i), a = { changes: { from: i, to: s, insert: se.of(o) }, scrollIntoView: !0, - annotations: r ? cS.of(r) : void 0 + annotations: r ? hS.of(r) : void 0 }; - if (l.length && (a.selection = Vm(l, 0)), l.length > 1) { - let c = new Us(l, 0), h = a.effects = [Wl.of(c)]; - n.state.field(fl, !1) === void 0 && h.push(F.appendConfig.of([fl, nZ, rZ, dS])); + if (l.length && (a.selection = jg(l, 0)), l.length > 1) { + let c = new Us(l, 0), h = a.effects = [Xl.of(c)]; + n.state.field(ul, !1) === void 0 && h.push(F.appendConfig.of([ul, r5, i5, pS])); } n.dispatch(n.state.update(a)); }; } -function pS(t) { +function gS(t) { return ({ state: e, dispatch: n }) => { - let r = e.field(fl, !1); + let r = e.field(ul, !1); if (!r || t < 0 && r.active == 0) return !1; let i = r.active + t, s = t > 0 && !r.ranges.some((o) => o.field == i + t); return n(e.update({ - selection: Vm(r.ranges, i), - effects: Wl.of(s ? null : new Us(r.ranges, i)), + selection: jg(r.ranges, i), + effects: Xl.of(s ? null : new Us(r.ranges, i)), scrollIntoView: !0 })), !0; }; } -const KM = ({ state: t, dispatch: e }) => t.field(fl, !1) ? (e(t.update({ effects: Wl.of(null) })), !0) : !1, JM = /* @__PURE__ */ pS(1), eZ = /* @__PURE__ */ pS(-1), tZ = [ - { key: "Tab", run: JM, shift: eZ }, - { key: "Escape", run: KM } -], E1 = /* @__PURE__ */ I.define({ +const JM = ({ state: t, dispatch: e }) => t.field(ul, !1) ? (e(t.update({ effects: Xl.of(null) })), !0) : !1, e5 = /* @__PURE__ */ gS(1), t5 = /* @__PURE__ */ gS(-1), n5 = [ + { key: "Tab", run: e5, shift: t5 }, + { key: "Escape", run: JM } +], D1 = /* @__PURE__ */ I.define({ combine(t) { - return t.length ? t[0] : tZ; + return t.length ? t[0] : n5; } -}), nZ = /* @__PURE__ */ bn.highest(/* @__PURE__ */ sr.compute([E1], (t) => t.facet(E1))); +}), r5 = /* @__PURE__ */ bn.highest(/* @__PURE__ */ sr.compute([D1], (t) => t.facet(D1))); function vt(t, e) { - return Object.assign(Object.assign({}, e), { apply: HM(t) }); + return Object.assign(Object.assign({}, e), { apply: KM(t) }); } -const rZ = /* @__PURE__ */ E.domEventHandlers({ +const i5 = /* @__PURE__ */ E.domEventHandlers({ mousedown(t, e) { - let n = e.state.field(fl, !1), r; + let n = e.state.field(ul, !1), r; if (!n || (r = e.posAtCoords({ x: t.clientX, y: t.clientY })) == null) return !1; let i = n.ranges.find((s) => s.from <= r && s.to >= r); return !i || i.field == n.active ? !1 : (e.dispatch({ - selection: Vm(n.ranges, i.field), - effects: Wl.of(n.ranges.some((s) => s.field > i.field) ? new Us(n.ranges, i.field) : null), + selection: jg(n.ranges, i.field), + effects: Xl.of(n.ranges.some((s) => s.field > i.field) ? new Us(n.ranges, i.field) : null), scrollIntoView: !0 }), !0); } -}), dl = { +}), fl = { brackets: ["(", "[", "{", "'", '"'], before: ")]}:;>", stringPrefixes: [] @@ -15349,10 +15349,10 @@ const rZ = /* @__PURE__ */ E.domEventHandlers({ let n = e.mapPos(t, -1, nt.TrackAfter); return n == null ? void 0 : n; } -}), jm = /* @__PURE__ */ new class extends Si { +}), zg = /* @__PURE__ */ new class extends Si { }(); -jm.startSide = 1; -jm.endSide = -1; +zg.startSide = 1; +zg.endSide = -1; const mS = /* @__PURE__ */ Ee.define({ create() { return ie.empty; @@ -15363,39 +15363,39 @@ const mS = /* @__PURE__ */ Ee.define({ t = t.update({ filter: (r) => r >= n.from && r <= n.to }); } for (let n of e.effects) - n.is(di) && (t = t.update({ add: [jm.range(n.value, n.value + 1)] })); + n.is(di) && (t = t.update({ add: [zg.range(n.value, n.value + 1)] })); return t; } }); -function iZ() { - return [oZ, mS]; +function s5() { + return [l5, mS]; } const nf = "()[]{}<>"; -function gS(t) { +function OS(t) { for (let e = 0; e < nf.length; e += 2) if (nf.charCodeAt(e) == t) return nf.charAt(e + 1); - return fm(t < 128 ? t : t + 1); + return dg(t < 128 ? t : t + 1); } -function OS(t, e) { - return t.languageDataAt("closeBrackets", e)[0] || dl; +function bS(t, e) { + return t.languageDataAt("closeBrackets", e)[0] || fl; } -const sZ = typeof navigator == "object" && /* @__PURE__ */ /Android\b/.test(navigator.userAgent), oZ = /* @__PURE__ */ E.inputHandler.of((t, e, n, r) => { - if ((sZ ? t.composing : t.compositionStarted) || t.state.readOnly) +const o5 = typeof navigator == "object" && /* @__PURE__ */ /Android\b/.test(navigator.userAgent), l5 = /* @__PURE__ */ E.inputHandler.of((t, e, n, r) => { + if ((o5 ? t.composing : t.compositionStarted) || t.state.readOnly) return !1; let i = t.state.selection.main; if (r.length > 2 || r.length == 2 && Yt(et(r, 0)) == 1 || e != i.from || n != i.to) return !1; - let s = cZ(t.state, r); + let s = h5(t.state, r); return s ? (t.dispatch(s), !0) : !1; -}), lZ = ({ state: t, dispatch: e }) => { +}), a5 = ({ state: t, dispatch: e }) => { if (t.readOnly) return !1; - let r = OS(t, t.selection.main.head).brackets || dl.brackets, i = null, s = t.changeByRange((o) => { + let r = bS(t, t.selection.main.head).brackets || fl.brackets, i = null, s = t.changeByRange((o) => { if (o.empty) { - let l = hZ(t.doc, o.head); + let l = u5(t.doc, o.head); for (let a of r) - if (a == l && Vh(t.doc, o.head) == gS(et(a, 0))) + if (a == l && jh(t.doc, o.head) == OS(et(a, 0))) return { changes: { from: o.head - a.length, to: o.head + a.length }, range: C.cursor(o.head - a.length) @@ -15404,35 +15404,35 @@ const sZ = typeof navigator == "object" && /* @__PURE__ */ /Android\b/.test(navi return { range: i = o }; }); return i || e(t.update(s, { scrollIntoView: !0, userEvent: "delete.backward" })), !i; -}, aZ = [ - { key: "Backspace", run: lZ } +}, c5 = [ + { key: "Backspace", run: a5 } ]; -function cZ(t, e) { - let n = OS(t, t.selection.main.head), r = n.brackets || dl.brackets; +function h5(t, e) { + let n = bS(t, t.selection.main.head), r = n.brackets || fl.brackets; for (let i of r) { - let s = gS(et(i, 0)); + let s = OS(et(i, 0)); if (e == i) - return s == i ? dZ(t, i, r.indexOf(i + i + i) > -1, n) : uZ(t, i, s, n.before || dl.before); - if (e == s && bS(t, t.selection.main.from)) - return fZ(t, i, s); + return s == i ? p5(t, i, r.indexOf(i + i + i) > -1, n) : f5(t, i, s, n.before || fl.before); + if (e == s && yS(t, t.selection.main.from)) + return d5(t, i, s); } return null; } -function bS(t, e) { +function yS(t, e) { let n = !1; return t.field(mS).between(0, t.doc.length, (r) => { r == e && (n = !0); }), n; } -function Vh(t, e) { +function jh(t, e) { let n = t.sliceString(e, e + 2); return n.slice(0, Yt(et(n, 0))); } -function hZ(t, e) { +function u5(t, e) { let n = t.sliceString(e - 2, e); return Yt(et(n, 0)) == n.length ? n : n.slice(1); } -function uZ(t, e, n, r) { +function f5(t, e, n, r) { let i = null, s = t.changeByRange((o) => { if (!o.empty) return { @@ -15440,7 +15440,7 @@ function uZ(t, e, n, r) { effects: di.of(o.to + e.length), range: C.range(o.anchor + e.length, o.head + e.length) }; - let l = Vh(t.doc, o.head); + let l = jh(t.doc, o.head); return !l || /\s/.test(l) || r.indexOf(l) > -1 ? { changes: { insert: e + n, from: o.head }, effects: di.of(o.head + e.length), @@ -15452,8 +15452,8 @@ function uZ(t, e, n, r) { userEvent: "input.type" }); } -function fZ(t, e, n) { - let r = null, i = t.changeByRange((s) => s.empty && Vh(t.doc, s.head) == n ? { +function d5(t, e, n) { + let r = null, i = t.changeByRange((s) => s.empty && jh(t.doc, s.head) == n ? { changes: { from: s.head, to: s.head + n.length, insert: n }, range: C.cursor(s.head + n.length) } : r = { range: s }); @@ -15462,23 +15462,23 @@ function fZ(t, e, n) { userEvent: "input.type" }); } -function dZ(t, e, n, r) { - let i = r.stringPrefixes || dl.stringPrefixes, s = null, o = t.changeByRange((l) => { +function p5(t, e, n, r) { + let i = r.stringPrefixes || fl.stringPrefixes, s = null, o = t.changeByRange((l) => { if (!l.empty) return { changes: [{ insert: e, from: l.from }, { insert: e, from: l.to }], effects: di.of(l.to + e.length), range: C.range(l.anchor + e.length, l.head + e.length) }; - let a = l.head, c = Vh(t.doc, a), h; + let a = l.head, c = jh(t.doc, a), h; if (c == e) { - if (D1(t, a)) + if (R1(t, a)) return { changes: { insert: e + e, from: a }, effects: di.of(a + e.length), range: C.cursor(a + e.length) }; - if (bS(t, a)) { + if (yS(t, a)) { let f = n && t.sliceDoc(a, a + e.length * 3) == e + e + e ? e + e + e : e; return { changes: { from: a, to: a + f.length, insert: f }, @@ -15486,13 +15486,13 @@ function dZ(t, e, n, r) { }; } } else { - if (n && t.sliceDoc(a - 2 * e.length, a) == e + e && (h = R1(t, a - 2 * e.length, i)) > -1 && D1(t, h)) + if (n && t.sliceDoc(a - 2 * e.length, a) == e + e && (h = M1(t, a - 2 * e.length, i)) > -1 && R1(t, h)) return { changes: { insert: e + e + e + e, from: a }, effects: di.of(a + e.length), range: C.cursor(a + e.length) }; - if (t.charCategorizer(a)(c) != Pe.Word && R1(t, a, i) > -1 && !pZ(t, a, e, i)) + if (t.charCategorizer(a)(c) != Pe.Word && M1(t, a, i) > -1 && !g5(t, a, e, i)) return { changes: { insert: e + e, from: a }, effects: di.of(a + e.length), @@ -15506,11 +15506,11 @@ function dZ(t, e, n, r) { userEvent: "input.type" }); } -function D1(t, e) { +function R1(t, e) { let n = Se(t).resolveInner(e + 1); return n.parent && n.from == e; } -function pZ(t, e, n, r) { +function g5(t, e, n, r) { let i = Se(t).resolveInner(e, -1), s = r.reduce((o, l) => Math.max(o, l.length), 0); for (let o = 0; o < 5; o++) { let l = t.sliceDoc(i.from, Math.min(i.to, i.from + n.length + s)), a = l.indexOf(n); @@ -15530,7 +15530,7 @@ function pZ(t, e, n, r) { } return !1; } -function R1(t, e, n) { +function M1(t, e, n) { let r = t.charCategorizer(e); if (r(t.sliceDoc(e - 1, e)) != Pe.Word) return e; @@ -15541,25 +15541,25 @@ function R1(t, e, n) { } return -1; } -function mZ(t = {}) { +function m5(t = {}) { return [ Zt, ft.of(t), - jM, - gZ, - dS + zM, + O5, + pS ]; } -const yS = [ - { key: "Ctrl-Space", run: BM }, - { key: "Escape", run: YM }, +const wS = [ + { key: "Ctrl-Space", run: YM }, + { key: "Escape", run: XM }, { key: "ArrowDown", run: /* @__PURE__ */ Ta(!0) }, { key: "ArrowUp", run: /* @__PURE__ */ Ta(!1) }, { key: "PageDown", run: /* @__PURE__ */ Ta(!0, "page") }, { key: "PageUp", run: /* @__PURE__ */ Ta(!1, "page") }, - { key: "Enter", run: qM } -], gZ = /* @__PURE__ */ bn.highest(/* @__PURE__ */ sr.computeN([ft], (t) => t.facet(ft).defaultKeymap ? [yS] : [])); -class OZ { + { key: "Enter", run: BM } +], O5 = /* @__PURE__ */ bn.highest(/* @__PURE__ */ sr.computeN([ft], (t) => t.facet(ft).defaultKeymap ? [wS] : [])); +class b5 { constructor(e, n, r) { this.from = e, this.to = n, this.diagnostic = r; } @@ -15569,10 +15569,10 @@ class li { this.diagnostics = e, this.panel = n, this.selected = r; } static init(e, n, r) { - let i = e, s = r.facet(xS).markerFilter; + let i = e, s = r.facet(vS).markerFilter; s && (i = s(i)); let o = L.set(i.map((l) => l.from == l.to || l.from == l.to - 1 && r.doc.lineAt(l.from).to == l.from ? L.widget({ - widget: new CZ(l), + widget: new A5(l), diagnostic: l }).range(l.from) : L.mark({ attributes: { class: "cm-lintRange cm-lintRange-" + l.severity + (l.markClass ? " " + l.markClass : "") }, @@ -15585,17 +15585,17 @@ function $s(t, e = null, n = 0) { let r = null; return t.between(n, 1e9, (i, s, { spec: o }) => { if (!(e && o.diagnostic != e)) - return r = new OZ(i, s, o.diagnostic), !1; + return r = new b5(i, s, o.diagnostic), !1; }), r; } -function bZ(t, e) { +function y5(t, e) { let n = t.startState.doc.lineAt(e.pos); - return !!(t.effects.some((r) => r.is(wS)) || t.changes.touchesRange(n.from, n.to)); + return !!(t.effects.some((r) => r.is(kS)) || t.changes.touchesRange(n.from, n.to)); } -function yZ(t, e) { - return t.field(It, !1) ? e : e.concat(F.appendConfig.of(PZ)); +function w5(t, e) { + return t.field(It, !1) ? e : e.concat(F.appendConfig.of(T5)); } -const wS = /* @__PURE__ */ F.define(), zm = /* @__PURE__ */ F.define(), kS = /* @__PURE__ */ F.define(), It = /* @__PURE__ */ Ee.define({ +const kS = /* @__PURE__ */ F.define(), Fg = /* @__PURE__ */ F.define(), xS = /* @__PURE__ */ F.define(), It = /* @__PURE__ */ Ee.define({ create() { return new li(L.none, null, null); }, @@ -15609,50 +15609,50 @@ const wS = /* @__PURE__ */ F.define(), zm = /* @__PURE__ */ F.define(), kS = /* t = new li(n, t.panel, r); } for (let n of e.effects) - n.is(wS) ? t = li.init(n.value, t.panel, e.state) : n.is(zm) ? t = new li(t.diagnostics, n.value ? jh.open : null, t.selected) : n.is(kS) && (t = new li(t.diagnostics, t.panel, n.value)); + n.is(kS) ? t = li.init(n.value, t.panel, e.state) : n.is(Fg) ? t = new li(t.diagnostics, n.value ? zh.open : null, t.selected) : n.is(xS) && (t = new li(t.diagnostics, t.panel, n.value)); return t; }, provide: (t) => [ - il.from(t, (e) => e.panel), + rl.from(t, (e) => e.panel), E.decorations.from(t, (e) => e.diagnostics) ] -}), wZ = /* @__PURE__ */ L.mark({ class: "cm-lintRange cm-lintRange-active" }); -function kZ(t, e, n) { +}), k5 = /* @__PURE__ */ L.mark({ class: "cm-lintRange cm-lintRange-active" }); +function x5(t, e, n) { let { diagnostics: r } = t.state.field(It), i = [], s = 2e8, o = 0; r.between(e - (n < 0 ? 1 : 0), e + (n > 0 ? 1 : 0), (a, c, { spec: h }) => { e >= a && e <= c && (a == c || (e > a || n > 0) && (e < c || n < 0)) && (i.push(h.diagnostic), s = Math.min(a, s), o = Math.max(c, o)); }); - let l = t.state.facet(xS).tooltipFilter; + let l = t.state.facet(vS).tooltipFilter; return l && (i = l(i)), i.length ? { pos: s, end: o, above: t.state.doc.lineAt(s).to < o, create() { - return { dom: xZ(t, i) }; + return { dom: v5(t, i) }; } } : null; } -function xZ(t, e) { - return xe("ul", { class: "cm-tooltip-lint" }, e.map((n) => SS(t, n, !1))); +function v5(t, e) { + return xe("ul", { class: "cm-tooltip-lint" }, e.map((n) => _S(t, n, !1))); } -const vZ = (t) => { +const S5 = (t) => { let e = t.state.field(It, !1); - (!e || !e.panel) && t.dispatch({ effects: yZ(t.state, [zm.of(!0)]) }); - let n = rl(t, jh.open); + (!e || !e.panel) && t.dispatch({ effects: w5(t.state, [Fg.of(!0)]) }); + let n = nl(t, zh.open); return n && n.dom.querySelector(".cm-panel-lint ul").focus(), !0; -}, M1 = (t) => { +}, Z1 = (t) => { let e = t.state.field(It, !1); - return !e || !e.panel ? !1 : (t.dispatch({ effects: zm.of(!1) }), !0); -}, SZ = (t) => { + return !e || !e.panel ? !1 : (t.dispatch({ effects: Fg.of(!1) }), !0); +}, _5 = (t) => { let e = t.state.field(It, !1); if (!e) return !1; let n = t.state.selection.main, r = e.diagnostics.iter(n.to + 1); return !r.value && (r = e.diagnostics.iter(0), !r.value || r.from == n.from && r.to == n.to) ? !1 : (t.dispatch({ selection: { anchor: r.from, head: r.to }, scrollIntoView: !0 }), !0); -}, _Z = [ - { key: "Mod-Shift-m", run: vZ, preventDefault: !0 }, - { key: "F8", run: SZ } -], xS = /* @__PURE__ */ I.define({ +}, C5 = [ + { key: "Mod-Shift-m", run: S5, preventDefault: !0 }, + { key: "F8", run: _5 } +], vS = /* @__PURE__ */ I.define({ combine(t) { return Object.assign({ sources: t.map((e) => e.source) }, jn(t.map((e) => e.config), { delay: 750, @@ -15664,7 +15664,7 @@ const vZ = (t) => { })); } }); -function vS(t) { +function SS(t) { let e = []; if (t) e: @@ -15680,9 +15680,9 @@ function vS(t) { } return e; } -function SS(t, e, n) { +function _S(t, e, n) { var r; - let i = n ? vS(e.actions) : []; + let i = n ? SS(e.actions) : []; return xe("li", { class: "cm-diagnostic cm-diagnostic-" + e.severity }, xe("span", { class: "cm-diagnosticText" }, e.renderMessage ? e.renderMessage() : e.message), (r = e.actions) === null || r === void 0 ? void 0 : r.map((s, o) => { let l = !1, a = (f) => { if (f.preventDefault(), l) @@ -15704,7 +15704,7 @@ function SS(t, e, n) { }, u); }), e.source && xe("div", { class: "cm-diagnosticSource" }, e.source)); } -class CZ extends qt { +class A5 extends qt { constructor(e) { super(), this.diagnostic = e; } @@ -15715,17 +15715,17 @@ class CZ extends qt { return xe("span", { class: "cm-lintPoint cm-lintPoint-" + this.diagnostic.severity }); } } -class Z1 { +class L1 { constructor(e, n) { - this.diagnostic = n, this.id = "item_" + Math.floor(Math.random() * 4294967295).toString(16), this.dom = SS(e, n, !0), this.dom.id = this.id, this.dom.setAttribute("role", "option"); + this.diagnostic = n, this.id = "item_" + Math.floor(Math.random() * 4294967295).toString(16), this.dom = _S(e, n, !0), this.dom.id = this.id, this.dom.setAttribute("role", "option"); } } -class jh { +class zh { constructor(e) { this.view = e, this.items = []; let n = (i) => { if (i.keyCode == 27) - M1(this.view), this.view.focus(); + Z1(this.view), this.view.focus(); else if (i.keyCode == 38 || i.keyCode == 33) this.moveSelection((this.selectedIndex - 1 + this.items.length) % this.items.length); else if (i.keyCode == 40 || i.keyCode == 34) @@ -15737,7 +15737,7 @@ class jh { 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], o = vS(s.actions); + let { diagnostic: s } = this.items[this.selectedIndex], o = SS(s.actions); for (let l = 0; l < o.length; l++) if (o[l].toUpperCase().charCodeAt(0) == i.keyCode) { let a = $s(this.view.state.field(It).diagnostics, s); @@ -15760,7 +15760,7 @@ class jh { type: "button", name: "close", "aria-label": this.view.state.phrase("close"), - onclick: () => M1(this.view) + onclick: () => Z1(this.view) }, "\xD7")), this.update(); } get selectedIndex() { @@ -15781,10 +15781,10 @@ class jh { c = u; break; } - c < 0 ? (h = new Z1(this.view, a.diagnostic), this.items.splice(r, 0, h), i = !0) : (h = this.items[c], c > r && (this.items.splice(r, c - r), i = !0)), n && h.diagnostic == n.diagnostic ? h.dom.hasAttribute("aria-selected") || (h.dom.setAttribute("aria-selected", "true"), s = h) : h.dom.hasAttribute("aria-selected") && h.dom.removeAttribute("aria-selected"), r++; + c < 0 ? (h = new L1(this.view, a.diagnostic), this.items.splice(r, 0, h), i = !0) : (h = this.items[c], c > r && (this.items.splice(r, c - r), i = !0)), n && h.diagnostic == n.diagnostic ? h.dom.hasAttribute("aria-selected") || (h.dom.setAttribute("aria-selected", "true"), s = h) : h.dom.hasAttribute("aria-selected") && h.dom.removeAttribute("aria-selected"), r++; }); r < this.items.length && !(this.items.length == 1 && this.items[0].diagnostic.from < 0); ) i = !0, this.items.pop(); - this.items.length == 0 && (this.items.push(new Z1(this.view, { + this.items.length == 0 && (this.items.push(new L1(this.view, { from: -1, to: -1, severity: "info", @@ -15821,20 +15821,20 @@ class jh { !r || this.view.dispatch({ selection: { anchor: r.from, head: r.to }, scrollIntoView: !0, - effects: kS.of(r) + effects: xS.of(r) }); } static open(e) { - return new jh(e); + return new zh(e); } } -function AZ(t, e = 'viewBox="0 0 40 40"') { +function $5(t, e = 'viewBox="0 0 40 40"') { return `url('data:image/svg+xml,${encodeURIComponent(t)}')`; } function Qa(t) { - return AZ(``, 'width="6" height="3"'); + return $5(``, 'width="6" height="3"'); } -const $Z = /* @__PURE__ */ E.baseTheme({ +const P5 = /* @__PURE__ */ E.baseTheme({ ".cm-diagnostic": { padding: "3px 6px 3px 8px", marginLeft: "-1px", @@ -15924,85 +15924,85 @@ const $Z = /* @__PURE__ */ E.baseTheme({ margin: 0 } } -}), PZ = [ +}), T5 = [ It, /* @__PURE__ */ E.decorations.compute([It], (t) => { let { selected: e, panel: n } = t.field(It); return !e || !n || e.from == e.to ? L.none : L.set([ - wZ.range(e.from, e.to) + k5.range(e.from, e.to) ]); }), - /* @__PURE__ */ SE(kZ, { hideOn: bZ }), - $Z -], TZ = /* @__PURE__ */ (() => [ - EE(), - ME(), - Lx(), - Mm(), - AD(), - Rx(), - H2(), + /* @__PURE__ */ _E(x5, { hideOn: y5 }), + P5 +], Q5 = /* @__PURE__ */ (() => [ + DE(), + ZE(), + Ix(), + Zg(), + $D(), + Mx(), + KQ(), ne.allowMultipleSelections.of(!0), mD(), - hv(uv, { fallback: !0 }), - LD(), - iZ(), - mZ(), - dE(), - gE(), - Ix(), - tM(), + uv(fv, { fallback: !0 }), + ID(), + s5(), + m5(), + pE(), + OE(), + Nx(), + nM(), sr.of([ - ...aZ, - ...Uv, - ...wM, - ...xv, - ...vD, - ...yS, - ..._Z + ...c5, + ...Gv, + ...kM, + ...vv, + ...SD, + ...wS, + ...C5 ]) -])(), QZ = /* @__PURE__ */ (() => [ - Lx(), - Mm(), - Rx(), - hv(uv, { fallback: !0 }), +])(), E5 = /* @__PURE__ */ (() => [ + Ix(), + Zg(), + Mx(), + uv(fv, { fallback: !0 }), sr.of([ - ...Uv, - ...xv + ...Gv, + ...vv ]) -])(), un = () => /* @__PURE__ */ new Map(), hp = (t) => { +])(), un = () => /* @__PURE__ */ new Map(), up = (t) => { const e = un(); return t.forEach((n, r) => { e.set(r, n); }), e; -}, gr = (t, e, n) => { +}, mr = (t, e, n) => { let r = t.get(e); return r === void 0 && t.set(e, r = n()), r; -}, EZ = (t, e) => { +}, D5 = (t, e) => { const n = []; for (const [r, i] of t) n.push(e(i, r)); return n; -}, DZ = (t, e) => { +}, R5 = (t, e) => { for (const [n, r] of t) if (e(r, n)) return !0; return !1; -}, Ai = () => /* @__PURE__ */ new Set(), rf = (t) => t[t.length - 1], RZ = (t, e) => { +}, Ai = () => /* @__PURE__ */ new Set(), rf = (t) => t[t.length - 1], M5 = (t, e) => { for (let n = 0; n < e.length; n++) t.push(e[n]); -}, Wr = Array.from, MZ = (t, e) => { +}, Wr = Array.from, Z5 = (t, e) => { for (let n = 0; n < t.length; n++) if (e(t[n], n, t)) return !0; return !1; -}, up = Array.isArray; -class zh { +}, fp = Array.isArray; +class Fh { constructor() { this._observers = un(); } on(e, n) { - gr(this._observers, e, Ai).add(n); + mr(this._observers, e, Ai).add(n); } once(e, n) { const r = (...i) => { @@ -16021,83 +16021,83 @@ class zh { this._observers = un(); } } -const pr = Math.floor, dc = Math.abs, Fh = (t, e) => t < e ? t : e, Gr = (t, e) => t > e ? t : e, ZZ = Math.pow, _S = (t) => t !== 0 ? t < 0 : 1 / t < 0, L1 = 1, I1 = 2, sf = 4, of = 8, pl = 32, lr = 64, Nt = 128, Uh = 31, fp = 63, bi = 127, LZ = 2147483647, CS = Number.MAX_SAFE_INTEGER, IZ = Number.isInteger || ((t) => typeof t == "number" && isFinite(t) && pr(t) === t), NZ = String.fromCharCode, qZ = (t) => t.toLowerCase(), BZ = /^\s*/g, YZ = (t) => t.replace(BZ, ""), XZ = /([A-Z])/g, N1 = (t, e) => YZ(t.replace(XZ, (n) => `${e}${qZ(n)}`)), WZ = (t) => { +const pr = Math.floor, dc = Math.abs, Uh = (t, e) => t < e ? t : e, Gr = (t, e) => t > e ? t : e, L5 = Math.pow, CS = (t) => t !== 0 ? t < 0 : 1 / t < 0, I1 = 1, N1 = 2, sf = 4, of = 8, dl = 32, lr = 64, Nt = 128, Gh = 31, dp = 63, bi = 127, I5 = 2147483647, AS = Number.MAX_SAFE_INTEGER, N5 = Number.isInteger || ((t) => typeof t == "number" && isFinite(t) && pr(t) === t), q5 = String.fromCharCode, B5 = (t) => t.toLowerCase(), Y5 = /^\s*/g, X5 = (t) => t.replace(Y5, ""), W5 = /([A-Z])/g, q1 = (t, e) => X5(t.replace(W5, (n) => `${e}${B5(n)}`)), V5 = (t) => { const e = unescape(encodeURIComponent(t)), n = e.length, r = new Uint8Array(n); for (let i = 0; i < n; i++) r[i] = e.codePointAt(i); return r; -}, ml = typeof TextEncoder < "u" ? new TextEncoder() : null, VZ = (t) => ml.encode(t), jZ = ml ? VZ : WZ; +}, pl = typeof TextEncoder < "u" ? new TextEncoder() : null, j5 = (t) => pl.encode(t), z5 = pl ? j5 : V5; let Io = typeof TextDecoder > "u" ? null : new TextDecoder("utf-8", { fatal: !0, ignoreBOM: !0 }); Io && Io.decode(new Uint8Array()).length === 1 && (Io = null); -class Vl { +class Wl { constructor() { this.cpos = 0, this.cbuf = new Uint8Array(100), this.bufs = []; } } -const ct = () => new Vl(), Fm = (t) => { +const ct = () => new Wl(), Ug = (t) => { let e = t.cpos; for (let n = 0; n < t.bufs.length; n++) e += t.bufs[n].length; return e; }, Te = (t) => { - const e = new Uint8Array(Fm(t)); + const e = new Uint8Array(Ug(t)); let n = 0; for (let r = 0; r < t.bufs.length; r++) { const i = t.bufs[r]; e.set(i, n), n += i.length; } return e.set(new Uint8Array(t.cbuf.buffer, 0, t.cpos), n), e; -}, zZ = (t, e) => { +}, F5 = (t, e) => { const n = t.cbuf.length; n - t.cpos < e && (t.bufs.push(new Uint8Array(t.cbuf.buffer, 0, t.cpos)), t.cbuf = new Uint8Array(Gr(n, e) * 2), t.cpos = 0); }, Ue = (t, e) => { const n = t.cbuf.length; t.cpos === n && (t.bufs.push(t.cbuf), t.cbuf = new Uint8Array(n * 2), t.cpos = 0), t.cbuf[t.cpos++] = e; -}, dp = Ue, V = (t, e) => { +}, pp = Ue, V = (t, e) => { for (; e > bi; ) Ue(t, Nt | bi & e), e = pr(e / 128); Ue(t, bi & e); -}, Um = (t, e) => { - const n = _S(e); - for (n && (e = -e), Ue(t, (e > fp ? Nt : 0) | (n ? lr : 0) | fp & e), e = pr(e / 64); e > 0; ) +}, Gg = (t, e) => { + const n = CS(e); + for (n && (e = -e), Ue(t, (e > dp ? Nt : 0) | (n ? lr : 0) | dp & e), e = pr(e / 64); e > 0; ) Ue(t, (e > bi ? Nt : 0) | bi & e), e = pr(e / 128); -}, pp = new Uint8Array(3e4), FZ = pp.length / 3, UZ = (t, e) => { - if (e.length < FZ) { - const n = ml.encodeInto(e, pp).written || 0; +}, gp = new Uint8Array(3e4), U5 = gp.length / 3, G5 = (t, e) => { + if (e.length < U5) { + const n = pl.encodeInto(e, gp).written || 0; V(t, n); for (let r = 0; r < n; r++) - Ue(t, pp[r]); + Ue(t, gp[r]); } else - De(t, jZ(e)); -}, GZ = (t, e) => { + De(t, z5(e)); +}, H5 = (t, e) => { const n = unescape(encodeURIComponent(e)), r = n.length; V(t, r); for (let i = 0; i < r; i++) Ue(t, n.codePointAt(i)); -}, yi = ml && ml.encodeInto ? UZ : GZ, Gh = (t, e) => { - const n = t.cbuf.length, r = t.cpos, i = Fh(n - r, e.length), s = e.length - i; +}, yi = pl && pl.encodeInto ? G5 : H5, Hh = (t, e) => { + const n = t.cbuf.length, r = t.cpos, i = Uh(n - r, e.length), s = e.length - i; t.cbuf.set(e.subarray(0, i), r), t.cpos += i, s > 0 && (t.bufs.push(t.cbuf), t.cbuf = new Uint8Array(Gr(n * 2, s)), t.cbuf.set(e.subarray(i)), t.cpos = s); }, De = (t, e) => { - V(t, e.byteLength), Gh(t, e); -}, Gm = (t, e) => { - zZ(t, e); + V(t, e.byteLength), Hh(t, e); +}, Hg = (t, e) => { + F5(t, e); const n = new DataView(t.cbuf.buffer, t.cpos, e); return t.cpos += e, n; -}, HZ = (t, e) => Gm(t, 4).setFloat32(0, e, !1), KZ = (t, e) => Gm(t, 8).setFloat64(0, e, !1), JZ = (t, e) => Gm(t, 8).setBigInt64(0, e, !1), q1 = new DataView(new ArrayBuffer(4)), e5 = (t) => (q1.setFloat32(0, t), q1.getFloat32(0) === t), gl = (t, e) => { +}, K5 = (t, e) => Hg(t, 4).setFloat32(0, e, !1), J5 = (t, e) => Hg(t, 8).setFloat64(0, e, !1), eZ = (t, e) => Hg(t, 8).setBigInt64(0, e, !1), B1 = new DataView(new ArrayBuffer(4)), tZ = (t) => (B1.setFloat32(0, t), B1.getFloat32(0) === t), gl = (t, e) => { switch (typeof e) { case "string": Ue(t, 119), yi(t, e); break; case "number": - IZ(e) && dc(e) <= LZ ? (Ue(t, 125), Um(t, e)) : e5(e) ? (Ue(t, 124), HZ(t, e)) : (Ue(t, 123), KZ(t, e)); + N5(e) && dc(e) <= I5 ? (Ue(t, 125), Gg(t, e)) : tZ(e) ? (Ue(t, 124), K5(t, e)) : (Ue(t, 123), J5(t, e)); break; case "bigint": - Ue(t, 122), JZ(t, e); + Ue(t, 122), eZ(t, e); break; case "object": if (e === null) Ue(t, 126); - else if (up(e)) { + else if (fp(e)) { Ue(t, 117), V(t, e.length); for (let n = 0; n < e.length; n++) gl(t, e[n]); @@ -16120,7 +16120,7 @@ const ct = () => new Vl(), Fm = (t) => { Ue(t, 127); } }; -class B1 extends Vl { +class Y1 extends Wl { constructor(e) { super(), this.w = e, this.s = null, this.count = 0; } @@ -16128,38 +16128,38 @@ class B1 extends Vl { this.s === e ? this.count++ : (this.count > 0 && V(this, this.count - 1), this.count = 1, this.w(this, e), this.s = e); } } -const Y1 = (t) => { - t.count > 0 && (Um(t.encoder, t.count === 1 ? t.s : -t.s), t.count > 1 && V(t.encoder, t.count - 2)); +const X1 = (t) => { + t.count > 0 && (Gg(t.encoder, t.count === 1 ? t.s : -t.s), t.count > 1 && V(t.encoder, t.count - 2)); }; class pc { constructor() { - this.encoder = new Vl(), this.s = 0, this.count = 0; + this.encoder = new Wl(), this.s = 0, this.count = 0; } write(e) { - this.s === e ? this.count++ : (Y1(this), this.count = 1, this.s = e); + this.s === e ? this.count++ : (X1(this), this.count = 1, this.s = e); } toUint8Array() { - return Y1(this), Te(this.encoder); + return X1(this), Te(this.encoder); } } -const X1 = (t) => { +const W1 = (t) => { if (t.count > 0) { const e = t.diff * 2 + (t.count === 1 ? 0 : 1); - Um(t.encoder, e), t.count > 1 && V(t.encoder, t.count - 2); + Gg(t.encoder, e), t.count > 1 && V(t.encoder, t.count - 2); } }; class lf { constructor() { - this.encoder = new Vl(), this.s = 0, this.count = 0, this.diff = 0; + this.encoder = new Wl(), this.s = 0, this.count = 0, this.diff = 0; } write(e) { - this.diff === e - this.s ? (this.s = e, this.count++) : (X1(this), this.count = 1, this.diff = e - this.s, this.s = e); + this.diff === e - this.s ? (this.s = e, this.count++) : (W1(this), this.count = 1, this.diff = e - this.s, this.s = e); } toUint8Array() { - return X1(this), Te(this.encoder); + return W1(this), Te(this.encoder); } } -class t5 { +class nZ { constructor() { this.sarr = [], this.s = "", this.lensE = new pc(); } @@ -16167,36 +16167,36 @@ class t5 { this.s += e, this.s.length > 19 && (this.sarr.push(this.s), this.s = ""), this.lensE.write(e.length); } toUint8Array() { - const e = new Vl(); - return this.sarr.push(this.s), this.s = "", yi(e, this.sarr.join("")), Gh(e, this.lensE.toUint8Array()), Te(e); + const e = new Wl(); + return this.sarr.push(this.s), this.s = "", yi(e, this.sarr.join("")), Hh(e, this.lensE.toUint8Array()), Te(e); } } const Vr = (t) => new Error(t), Bn = () => { throw Vr("Method unimplemented"); -}, gn = () => { +}, mn = () => { throw Vr("Unexpected case"); -}, AS = Vr("Unexpected end of array"), $S = Vr("Integer out of Range"); -class Hh { +}, $S = Vr("Unexpected end of array"), PS = Vr("Integer out of Range"); +class Kh { constructor(e) { this.arr = e, this.pos = 0; } } -const Hr = (t) => new Hh(t), n5 = (t) => t.pos !== t.arr.length, r5 = (t, e) => { +const Hr = (t) => new Kh(t), rZ = (t) => t.pos !== t.arr.length, iZ = (t, e) => { const n = new Uint8Array(t.arr.buffer, t.pos + t.arr.byteOffset, e); return t.pos += e, n; -}, at = (t) => r5(t, G(t)), Ps = (t) => t.arr[t.pos++], G = (t) => { +}, at = (t) => iZ(t, G(t)), Ps = (t) => t.arr[t.pos++], G = (t) => { let e = 0, n = 1; const r = t.arr.length; for (; t.pos < r; ) { const i = t.arr[t.pos++]; if (e = e + (i & bi) * n, n *= 128, i < Nt) return e; - if (e > CS) - throw $S; + if (e > AS) + throw PS; } - throw AS; -}, Hm = (t) => { - let e = t.arr[t.pos++], n = e & fp, r = 64; + throw $S; +}, Kg = (t) => { + let e = t.arr[t.pos++], n = e & dp, r = 64; const i = (e & lr) > 0 ? -1 : 1; if ((e & Nt) === 0) return i * n; @@ -16204,11 +16204,11 @@ const Hr = (t) => new Hh(t), n5 = (t) => t.pos !== t.arr.length, r5 = (t, e) => for (; t.pos < s; ) { if (e = t.arr[t.pos++], n = n + (e & bi) * r, r *= 128, e < Nt) return i * n; - if (n > CS) - throw $S; + if (n > AS) + throw PS; } - throw AS; -}, i5 = (t) => { + throw $S; +}, sZ = (t) => { let e = G(t); if (e === 0) return ""; @@ -16224,17 +16224,17 @@ const Hr = (t) => new Hh(t), n5 = (t) => t.pos !== t.arr.length, r5 = (t, e) => } return decodeURIComponent(escape(n)); } -}, s5 = (t) => Io.decode(at(t)), Zr = Io ? s5 : i5, Km = (t, e) => { +}, oZ = (t) => Io.decode(at(t)), Zr = Io ? oZ : sZ, Jg = (t, e) => { const n = new DataView(t.arr.buffer, t.arr.byteOffset + t.pos, e); return t.pos += e, n; -}, o5 = (t) => Km(t, 4).getFloat32(0, !1), l5 = (t) => Km(t, 8).getFloat64(0, !1), a5 = (t) => Km(t, 8).getBigInt64(0, !1), c5 = [ +}, lZ = (t) => Jg(t, 4).getFloat32(0, !1), aZ = (t) => Jg(t, 8).getFloat64(0, !1), cZ = (t) => Jg(t, 8).getBigInt64(0, !1), hZ = [ (t) => { }, (t) => null, - Hm, - o5, - l5, - a5, + Kg, + lZ, + aZ, + cZ, (t) => !1, (t) => !0, Zr, @@ -16242,67 +16242,67 @@ const Hr = (t) => new Hh(t), n5 = (t) => t.pos !== t.arr.length, r5 = (t, e) => const e = G(t), n = {}; for (let r = 0; r < e; r++) { const i = Zr(t); - n[i] = Ol(t); + n[i] = ml(t); } return n; }, (t) => { const e = G(t), n = []; for (let r = 0; r < e; r++) - n.push(Ol(t)); + n.push(ml(t)); return n; }, at -], Ol = (t) => c5[127 - Ps(t)](t); -class W1 extends Hh { +], ml = (t) => hZ[127 - Ps(t)](t); +class V1 extends Kh { constructor(e, n) { super(e), this.reader = n, this.s = null, this.count = 0; } read() { - return this.count === 0 && (this.s = this.reader(this), n5(this) ? this.count = G(this) + 1 : this.count = -1), this.count--, this.s; + return this.count === 0 && (this.s = this.reader(this), rZ(this) ? this.count = G(this) + 1 : this.count = -1), this.count--, this.s; } } -class mc extends Hh { +class gc extends Kh { constructor(e) { super(e), this.s = 0, this.count = 0; } read() { if (this.count === 0) { - this.s = Hm(this); - const e = _S(this.s); + this.s = Kg(this); + const e = CS(this.s); this.count = 1, e && (this.s = -this.s, this.count = G(this) + 2); } return this.count--, this.s; } } -class af extends Hh { +class af extends Kh { constructor(e) { super(e), this.s = 0, this.count = 0, this.diff = 0; } read() { if (this.count === 0) { - const e = Hm(this), n = e & 1; + const e = Kg(this), n = e & 1; this.diff = pr(e / 2), this.count = 1, n && (this.count = G(this) + 2); } return this.s += this.diff, this.count--, this.s; } } -class h5 { +class uZ { constructor(e) { - this.decoder = new mc(e), this.str = Zr(this.decoder), this.spos = 0; + this.decoder = new gc(e), this.str = Zr(this.decoder), this.spos = 0; } read() { const e = this.spos + this.decoder.read(), n = this.str.slice(this.spos, e); return this.spos = e, n; } } -const u5 = crypto.getRandomValues.bind(crypto), PS = () => u5(new Uint32Array(1))[0], f5 = [1e7] + -1e3 + -4e3 + -8e3 + -1e11, d5 = () => f5.replace( +const fZ = crypto.getRandomValues.bind(crypto), TS = () => fZ(new Uint32Array(1))[0], dZ = [1e7] + -1e3 + -4e3 + -8e3 + -1e11, pZ = () => dZ.replace( /[018]/g, - (t) => (t ^ PS() & 15 >> t / 4).toString(16) -), jr = Date.now, V1 = (t) => new Promise(t); + (t) => (t ^ TS() & 15 >> t / 4).toString(16) +), jr = Date.now, j1 = (t) => new Promise(t); Promise.all.bind(Promise); -const j1 = (t) => t === void 0 ? null : t; -class p5 { +const z1 = (t) => t === void 0 ? null : t; +class gZ { constructor() { this.map = /* @__PURE__ */ new Map(); } @@ -16313,38 +16313,38 @@ class p5 { return this.map.get(e); } } -let TS = new p5(), Jm = !0; +let QS = new gZ(), em = !0; try { - typeof localStorage < "u" && localStorage && (TS = localStorage, Jm = !1); + typeof localStorage < "u" && localStorage && (QS = localStorage, em = !1); } catch { } -const QS = TS, m5 = (t) => Jm || addEventListener("storage", t), g5 = (t) => Jm || removeEventListener("storage", t), O5 = Object.assign, b5 = Object.keys, y5 = (t, e) => { +const ES = QS, mZ = (t) => em || addEventListener("storage", t), OZ = (t) => em || removeEventListener("storage", t), bZ = Object.assign, yZ = Object.keys, wZ = (t, e) => { for (const n in t) e(t[n], n); -}, w5 = (t, e) => { +}, kZ = (t, e) => { const n = []; for (const r in t) n.push(e(t[r], r)); return n; -}, Uc = (t) => b5(t).length, k5 = (t) => { +}, Gc = (t) => yZ(t).length, xZ = (t) => { for (const e in t) return !1; return !0; -}, x5 = (t, e) => { +}, vZ = (t, e) => { for (const n in t) if (!e(t[n], n)) return !1; return !0; -}, ES = (t, e) => Object.prototype.hasOwnProperty.call(t, e), v5 = (t, e) => t === e || Uc(t) === Uc(e) && x5(t, (n, r) => (n !== void 0 || ES(e, r)) && e[r] === n), eg = (t, e, n = 0) => { +}, DS = (t, e) => Object.prototype.hasOwnProperty.call(t, e), SZ = (t, e) => t === e || Gc(t) === Gc(e) && vZ(t, (n, r) => (n !== void 0 || DS(e, r)) && e[r] === n), tm = (t, e, n = 0) => { try { for (; n < t.length; n++) t[n](...e); } finally { - n < t.length && eg(t, e, n + 1); + n < t.length && tm(t, e, n + 1); } -}, S5 = (t) => t, _5 = (t, e) => t === e, No = (t, e) => { +}, _Z = (t) => t, CZ = (t, e) => t === e, No = (t, e) => { if (t == null || e == null) - return _5(t, e); + return CZ(t, e); if (t.constructor !== e.constructor) return !1; if (t === e) @@ -16377,10 +16377,10 @@ const QS = TS, m5 = (t) => Jm || addEventListener("storage", t), g5 = (t) => Jm break; } case Object: - if (Uc(t) !== Uc(e)) + if (Gc(t) !== Gc(e)) return !1; for (const n in t) - if (!ES(t, n) || !No(t[n], e[n])) + if (!DS(t, n) || !No(t[n], e[n])) return !1; break; case Array: @@ -16394,10 +16394,10 @@ const QS = TS, m5 = (t) => Jm || addEventListener("storage", t), g5 = (t) => Jm return !1; } return !0; -}, C5 = (t, e) => e.includes(t), Ts = typeof process < "u" && process.release && /node|io\.js/.test(process.release.name) && Object.prototype.toString.call(typeof process < "u" ? process : 0) === "[object process]", DS = typeof window < "u" && typeof document < "u" && !Ts; +}, AZ = (t, e) => e.includes(t), Ts = typeof process < "u" && process.release && /node|io\.js/.test(process.release.name) && Object.prototype.toString.call(typeof process < "u" ? process : 0) === "[object process]", RS = typeof window < "u" && typeof document < "u" && !Ts; typeof navigator < "u" && /Mac/.test(navigator.platform); let An; -const A5 = () => { +const $Z = () => { if (An === void 0) if (Ts) { An = un(); @@ -16412,44 +16412,44 @@ const A5 = () => { typeof location == "object" ? (An = un(), (location.search || "?").slice(1).split("&").forEach((t) => { if (t.length !== 0) { const [e, n] = t.split("="); - An.set(`--${N1(e, "-")}`, n), An.set(`-${N1(e, "-")}`, n); + An.set(`--${q1(e, "-")}`, n), An.set(`-${q1(e, "-")}`, n); } })) : An = un(); return An; -}, mp = (t) => A5().has(t), gp = (t) => j1(Ts ? {}[t.toUpperCase()] : QS.getItem(t)), $5 = (t) => mp("--" + t) || gp(t) !== null; -$5("production"); -const z1 = Ts && C5({}.FORCE_COLOR, ["true", "1", "2"]), P5 = !mp("no-colors") && (!Ts || process.stdout.isTTY || z1) && (!Ts || mp("color") || z1 || gp("COLORTERM") !== null || (gp("TERM") || "").includes("color")), RS = (t) => new Uint8Array(t), T5 = (t, e, n) => new Uint8Array(t, e, n), Q5 = (t) => new Uint8Array(t), E5 = (t) => { +}, mp = (t) => $Z().has(t), Op = (t) => z1(Ts ? {}[t.toUpperCase()] : ES.getItem(t)), PZ = (t) => mp("--" + t) || Op(t) !== null; +PZ("production"); +const F1 = Ts && AZ({}.FORCE_COLOR, ["true", "1", "2"]), TZ = !mp("no-colors") && (!Ts || process.stdout.isTTY || F1) && (!Ts || mp("color") || F1 || Op("COLORTERM") !== null || (Op("TERM") || "").includes("color")), MS = (t) => new Uint8Array(t), QZ = (t, e, n) => new Uint8Array(t, e, n), EZ = (t) => new Uint8Array(t), DZ = (t) => { let e = ""; for (let n = 0; n < t.byteLength; n++) - e += NZ(t[n]); + e += q5(t[n]); return btoa(e); -}, D5 = (t) => Buffer.from(t.buffer, t.byteOffset, t.byteLength).toString("base64"), R5 = (t) => { - const e = atob(t), n = RS(e.length); +}, RZ = (t) => Buffer.from(t.buffer, t.byteOffset, t.byteLength).toString("base64"), MZ = (t) => { + const e = atob(t), n = MS(e.length); for (let r = 0; r < e.length; r++) n[r] = e.charCodeAt(r); return n; -}, M5 = (t) => { +}, ZZ = (t) => { const e = Buffer.from(t, "base64"); - return T5(e.buffer, e.byteOffset, e.byteLength); -}, Z5 = DS ? E5 : D5, L5 = DS ? R5 : M5, I5 = (t) => { - const e = RS(t.byteLength); + return QZ(e.buffer, e.byteOffset, e.byteLength); +}, LZ = RS ? DZ : RZ, IZ = RS ? MZ : ZZ, NZ = (t) => { + const e = MS(t.byteLength); return e.set(t), e; }; -class N5 { +class qZ { constructor(e, n) { this.left = e, this.right = n; } } -const Rt = (t, e) => new N5(t, e), q5 = (t, e) => t.forEach((n) => e(n.left, n.right)), Fn = typeof document < "u" ? document : {}, B5 = (t) => Fn.createElement(t), Y5 = () => Fn.createDocumentFragment(), X5 = (t) => Fn.createTextNode(t); +const Rt = (t, e) => new qZ(t, e), BZ = (t, e) => t.forEach((n) => e(n.left, n.right)), Fn = typeof document < "u" ? document : {}, YZ = (t) => Fn.createElement(t), XZ = () => Fn.createDocumentFragment(), WZ = (t) => Fn.createTextNode(t); typeof DOMParser < "u" && new DOMParser(); -const W5 = (t, e) => (q5(e, (n, r) => { +const VZ = (t, e) => (BZ(e, (n, r) => { r === !1 ? t.removeAttribute(n) : r === !0 ? t.setAttribute(n, "") : t.setAttribute(n, r); -}), t), V5 = (t) => { - const e = Y5(); +}), t), jZ = (t) => { + const e = XZ(); for (let n = 0; n < t.length; n++) - MS(e, t[n]); + ZS(e, t[n]); return e; -}, j5 = (t, e) => (MS(t, V5(e)), t), cf = (t, e = [], n = []) => j5(W5(B5(t), e), n), Ea = X5, z5 = (t) => EZ(t, (e, n) => `${n}:${e};`).join(""), MS = (t, e) => t.appendChild(e); +}, zZ = (t, e) => (ZS(t, jZ(e)), t), cf = (t, e = [], n = []) => zZ(VZ(YZ(t), e), n), Ea = WZ, FZ = (t) => D5(t, (e, n) => `${n}:${e};`).join(""), ZS = (t, e) => t.appendChild(e); Fn.ELEMENT_NODE; Fn.TEXT_NODE; Fn.CDATA_SECTION_NODE; @@ -16457,7 +16457,7 @@ Fn.COMMENT_NODE; Fn.DOCUMENT_NODE; Fn.DOCUMENT_TYPE_NODE; Fn.DOCUMENT_FRAGMENT_NODE; -const Or = Symbol, ZS = Or(), LS = Or(), F5 = Or(), U5 = Or(), G5 = Or(), IS = Or(), H5 = Or(), tg = Or(), K5 = Or(), J5 = (t) => { +const Or = Symbol, LS = Or(), IS = Or(), UZ = Or(), GZ = Or(), HZ = Or(), NS = Or(), KZ = Or(), nm = Or(), JZ = Or(), eL = (t) => { const e = []; let n = 0; for (; n < t.length; n++) { @@ -16465,25 +16465,25 @@ const Or = Symbol, ZS = Or(), LS = Or(), F5 = Or(), U5 = Or(), G5 = Or(), IS = O r.constructor === String || r.constructor === Number || r.constructor === Object && e.push(JSON.stringify(r)); } return e; -}, eL = { - [ZS]: Rt("font-weight", "bold"), - [LS]: Rt("font-weight", "normal"), - [F5]: Rt("color", "blue"), - [G5]: Rt("color", "green"), - [U5]: Rt("color", "grey"), - [IS]: Rt("color", "red"), - [H5]: Rt("color", "purple"), - [tg]: Rt("color", "orange"), - [K5]: Rt("color", "black") -}, tL = (t) => { +}, tL = { + [LS]: Rt("font-weight", "bold"), + [IS]: Rt("font-weight", "normal"), + [UZ]: Rt("color", "blue"), + [HZ]: Rt("color", "green"), + [GZ]: Rt("color", "grey"), + [NS]: Rt("color", "red"), + [KZ]: Rt("color", "purple"), + [nm]: Rt("color", "orange"), + [JZ]: Rt("color", "black") +}, nL = (t) => { const e = [], n = [], r = un(); let i = [], s = 0; for (; s < t.length; s++) { - const o = t[s], l = eL[o]; + const o = t[s], l = tL[o]; if (l !== void 0) r.set(l.left, l.right); else if (o.constructor === String || o.constructor === Number) { - const a = z5(r); + const a = FZ(r); s > 0 || a.length > 0 ? (e.push("%c" + o), n.push(a)) : e.push(o); } else break; @@ -16493,26 +16493,26 @@ const Or = Symbol, ZS = Or(), LS = Or(), F5 = Or(), U5 = Or(), G5 = Or(), IS = O o instanceof Symbol || i.push(o); } return i; -}, NS = P5 ? tL : J5, nL = (...t) => { - console.log(...NS(t)), qS.forEach((e) => e.print(t)); -}, rL = (...t) => { - console.warn(...NS(t)), t.unshift(tg), qS.forEach((e) => e.print(t)); -}, qS = Ai(), BS = (t) => ({ +}, qS = TZ ? nL : eL, rL = (...t) => { + console.log(...qS(t)), BS.forEach((e) => e.print(t)); +}, iL = (...t) => { + console.warn(...qS(t)), t.unshift(nm), BS.forEach((e) => e.print(t)); +}, BS = Ai(), YS = (t) => ({ [Symbol.iterator]() { return this; }, next: t -}), iL = (t, e) => BS(() => { +}), sL = (t, e) => YS(() => { let n; do n = t.next(); while (!n.done && !e(n.value)); return n; -}), hf = (t, e) => BS(() => { +}), hf = (t, e) => YS(() => { const { done: n, value: r } = t.next(); return { done: n, value: n ? void 0 : e(r) }; }); -class ng { +class rm { constructor(e, n) { this.clock = e, this.len = n; } @@ -16526,9 +16526,9 @@ const Qs = (t, e, n) => e.clients.forEach((r, i) => { const s = t.doc.store.clients.get(i); for (let o = 0; o < r.length; o++) { const l = r[o]; - n_(t, s, l.clock, l.len, n); + r_(t, s, l.clock, l.len, n); } -}), sL = (t, e) => { +}), oL = (t, e) => { let n = 0, r = t.length - 1; for (; n <= r; ) { const i = pr((n + r) / 2), s = t[i], o = s.clock; @@ -16540,10 +16540,10 @@ const Qs = (t, e, n) => e.clients.forEach((r, i) => { r = i - 1; } return null; -}, jl = (t, e) => { +}, Vl = (t, e) => { const n = t.clients.get(e.client); - return n !== void 0 && sL(n, e.clock) !== null; -}, rg = (t) => { + return n !== void 0 && oL(n, e.clock) !== null; +}, im = (t) => { t.clients.forEach((e) => { e.sort((i, s) => i.clock - s.clock); let n, r; @@ -16553,22 +16553,22 @@ const Qs = (t, e, n) => e.clients.forEach((r, i) => { } e.length = r; }); -}, Op = (t) => { +}, bp = (t) => { const e = new Gs(); for (let n = 0; n < t.length; n++) t[n].clients.forEach((r, i) => { if (!e.clients.has(i)) { const s = r.slice(); for (let o = n + 1; o < t.length; o++) - RZ(s, t[o].clients.get(i) || []); + M5(s, t[o].clients.get(i) || []); e.clients.set(i, s); } }); - return rg(e), e; -}, bl = (t, e, n, r) => { - gr(t.clients, e, () => []).push(new ng(n, r)); -}, YS = () => new Gs(), oL = (t) => { - const e = YS(); + return im(e), e; +}, Ol = (t, e, n, r) => { + mr(t.clients, e, () => []).push(new rm(n, r)); +}, XS = () => new Gs(), lL = (t) => { + const e = XS(); return t.clients.forEach((n, r) => { const i = []; for (let s = 0; s < n.length; s++) { @@ -16579,7 +16579,7 @@ const Qs = (t, e, n) => e.clients.forEach((r, i) => { if (s + 1 < n.length) for (let c = n[s + 1]; s + 1 < n.length && c.deleted; c = n[++s + 1]) a += c.length; - i.push(new ng(l, a)); + i.push(new rm(l, a)); } } i.length > 0 && e.clients.set(r, i); @@ -16594,19 +16594,19 @@ const Qs = (t, e, n) => e.clients.forEach((r, i) => { t.writeDsClock(o.clock), t.writeDsLen(o.len); } }); -}, ig = (t) => { +}, sm = (t) => { const e = new Gs(), n = G(t.restDecoder); for (let r = 0; r < n; r++) { t.resetDsCurVal(); const i = G(t.restDecoder), s = G(t.restDecoder); if (s > 0) { - const o = gr(e.clients, i, () => []); + const o = mr(e.clients, i, () => []); for (let l = 0; l < s; l++) - o.push(new ng(t.readDsClock(), t.readDsLen())); + o.push(new rm(t.readDsClock(), t.readDsLen())); } } return e; -}, F1 = (t, e, n) => { +}, U1 = (t, e, n) => { const r = new Gs(), i = G(t.restDecoder); for (let s = 0; s < i; s++) { t.resetDsCurVal(); @@ -16614,12 +16614,12 @@ const Qs = (t, e, n) => e.clients.forEach((r, i) => { for (let h = 0; h < l; h++) { const u = t.readDsClock(), f = u + t.readDsLen(); if (u < c) { - c < f && bl(r, o, c, f - c); + c < f && Ol(r, o, c, f - c); let d = Wn(a, u), p = a[d]; - for (!p.deleted && p.id.clock < u && (a.splice(d + 1, 0, rh(e, p, u - p.id.clock)), d++); d < a.length && (p = a[d++], p.id.clock < f); ) - p.deleted || (f < p.id.clock + p.length && a.splice(d, 0, rh(e, p, f - p.id.clock)), p.delete(e)); + for (!p.deleted && p.id.clock < u && (a.splice(d + 1, 0, ih(e, p, u - p.id.clock)), d++); d < a.length && (p = a[d++], p.id.clock < f); ) + p.deleted || (f < p.id.clock + p.length && a.splice(d, 0, ih(e, p, f - p.id.clock)), p.delete(e)); } else - bl(r, o, u, f - u); + Ol(r, o, u, f - u); } } if (r.clients.size > 0) { @@ -16627,15 +16627,15 @@ const Qs = (t, e, n) => e.clients.forEach((r, i) => { return V(s.restEncoder, 0), Hs(s, r), s.toUint8Array(); } return null; -}, XS = PS; -class Ks extends zh { - constructor({ guid: e = d5(), collectionid: n = null, gc: r = !0, gcFilter: i = () => !0, meta: s = null, autoLoad: o = !1, shouldLoad: l = !0 } = {}) { - super(), this.gc = r, this.gcFilter = i, this.clientID = XS(), this.guid = e, this.collectionid = n, this.share = /* @__PURE__ */ new Map(), this.store = new e_(), this._transaction = null, this._transactionCleanups = [], this.subdocs = /* @__PURE__ */ new Set(), this._item = null, this.shouldLoad = l, this.autoLoad = o, this.meta = s, this.isLoaded = !1, this.isSynced = !1, this.whenLoaded = V1((c) => { +}, WS = TS; +class Ks extends Fh { + constructor({ guid: e = pZ(), collectionid: n = null, gc: r = !0, gcFilter: i = () => !0, meta: s = null, autoLoad: o = !1, shouldLoad: l = !0 } = {}) { + super(), this.gc = r, this.gcFilter = i, this.clientID = WS(), this.guid = e, this.collectionid = n, this.share = /* @__PURE__ */ new Map(), this.store = new t_(), this._transaction = null, this._transactionCleanups = [], this.subdocs = /* @__PURE__ */ new Set(), this._item = null, this.shouldLoad = l, this.autoLoad = o, this.meta = s, this.isLoaded = !1, this.isSynced = !1, this.whenLoaded = j1((c) => { this.on("load", () => { this.isLoaded = !0, c(this); }); }); - const a = () => V1((c) => { + const a = () => j1((c) => { const h = (u) => { (u === void 0 || u === !0) && (this.off("sync", h), c()); }; @@ -16661,7 +16661,7 @@ class Ks extends zh { return ye(this, e, n); } get(e, n = st) { - const r = gr(this.share, e, () => { + const r = mr(this.share, e, () => { const s = new n(); return s._integrate(this, null), s; }), i = r.constructor; @@ -16717,7 +16717,7 @@ class Ks extends zh { super.off(e, n); } } -class WS { +class VS { constructor(e) { this.restDecoder = e; } @@ -16730,7 +16730,7 @@ class WS { return G(this.restDecoder); } } -class VS extends WS { +class jS extends VS { readLeftID() { return J(G(this.restDecoder), G(this.restDecoder)); } @@ -16756,10 +16756,10 @@ class VS extends WS { return G(this.restDecoder); } readAny() { - return Ol(this.restDecoder); + return ml(this.restDecoder); } readBuf() { - return I5(at(this.restDecoder)); + return NZ(at(this.restDecoder)); } readJSON() { return JSON.parse(Zr(this.restDecoder)); @@ -16768,7 +16768,7 @@ class VS extends WS { return Zr(this.restDecoder); } } -class lL { +class aL { constructor(e) { this.dsCurrVal = 0, this.restDecoder = e; } @@ -16783,9 +16783,9 @@ class lL { return this.dsCurrVal += e, e; } } -class Es extends lL { +class Es extends aL { constructor(e) { - super(e), this.keys = [], G(e), this.keyClockDecoder = new af(at(e)), this.clientDecoder = new mc(at(e)), this.leftClockDecoder = new af(at(e)), this.rightClockDecoder = new af(at(e)), this.infoDecoder = new W1(at(e), Ps), this.stringDecoder = new h5(at(e)), this.parentInfoDecoder = new W1(at(e), Ps), this.typeRefDecoder = new mc(at(e)), this.lenDecoder = new mc(at(e)); + super(e), this.keys = [], G(e), this.keyClockDecoder = new af(at(e)), this.clientDecoder = new gc(at(e)), this.leftClockDecoder = new af(at(e)), this.rightClockDecoder = new af(at(e)), this.infoDecoder = new V1(at(e), Ps), this.stringDecoder = new uZ(at(e)), this.parentInfoDecoder = new V1(at(e), Ps), this.typeRefDecoder = new gc(at(e)), this.lenDecoder = new gc(at(e)); } readLeftID() { return new cs(this.clientDecoder.read(), this.leftClockDecoder.read()); @@ -16812,13 +16812,13 @@ class Es extends lL { return this.lenDecoder.read(); } readAny() { - return Ol(this.restDecoder); + return ml(this.restDecoder); } readBuf() { return at(this.restDecoder); } readJSON() { - return Ol(this.restDecoder); + return ml(this.restDecoder); } readKey() { const e = this.keyClockDecoder.read(); @@ -16830,7 +16830,7 @@ class Es extends lL { } } } -class jS { +class zS { constructor() { this.restEncoder = ct(); } @@ -16846,7 +16846,7 @@ class jS { V(this.restEncoder, e); } } -class zl extends jS { +class jl extends zS { writeLeftID(e) { V(this.restEncoder, e.client), V(this.restEncoder, e.clock); } @@ -16857,7 +16857,7 @@ class zl extends jS { V(this.restEncoder, e); } writeInfo(e) { - dp(this.restEncoder, e); + pp(this.restEncoder, e); } writeString(e) { yi(this.restEncoder, e); @@ -16884,7 +16884,7 @@ class zl extends jS { yi(this.restEncoder, e); } } -class zS { +class FS { constructor() { this.restEncoder = ct(), this.dsCurrVal = 0; } @@ -16899,16 +16899,16 @@ class zS { this.dsCurrVal = e, V(this.restEncoder, n); } writeDsLen(e) { - e === 0 && gn(), V(this.restEncoder, e - 1), this.dsCurrVal += e; + e === 0 && mn(), V(this.restEncoder, e - 1), this.dsCurrVal += e; } } -class $i extends zS { +class $i extends FS { constructor() { - super(), this.keyMap = /* @__PURE__ */ new Map(), this.keyClock = 0, this.keyClockEncoder = new lf(), this.clientEncoder = new pc(), this.leftClockEncoder = new lf(), this.rightClockEncoder = new lf(), this.infoEncoder = new B1(dp), this.stringEncoder = new t5(), this.parentInfoEncoder = new B1(dp), this.typeRefEncoder = new pc(), this.lenEncoder = new pc(); + super(), this.keyMap = /* @__PURE__ */ new Map(), this.keyClock = 0, this.keyClockEncoder = new lf(), this.clientEncoder = new pc(), this.leftClockEncoder = new lf(), this.rightClockEncoder = new lf(), this.infoEncoder = new Y1(pp), this.stringEncoder = new nZ(), this.parentInfoEncoder = new Y1(pp), this.typeRefEncoder = new pc(), this.lenEncoder = new pc(); } toUint8Array() { const e = ct(); - return V(e, 0), De(e, this.keyClockEncoder.toUint8Array()), De(e, this.clientEncoder.toUint8Array()), De(e, this.leftClockEncoder.toUint8Array()), De(e, this.rightClockEncoder.toUint8Array()), De(e, Te(this.infoEncoder)), De(e, this.stringEncoder.toUint8Array()), De(e, Te(this.parentInfoEncoder)), De(e, this.typeRefEncoder.toUint8Array()), De(e, this.lenEncoder.toUint8Array()), Gh(e, Te(this.restEncoder)), Te(e); + return V(e, 0), De(e, this.keyClockEncoder.toUint8Array()), De(e, this.clientEncoder.toUint8Array()), De(e, this.leftClockEncoder.toUint8Array()), De(e, this.rightClockEncoder.toUint8Array()), De(e, Te(this.infoEncoder)), De(e, this.stringEncoder.toUint8Array()), De(e, Te(this.parentInfoEncoder)), De(e, this.typeRefEncoder.toUint8Array()), De(e, this.lenEncoder.toUint8Array()), Hh(e, Te(this.restEncoder)), Te(e); } writeLeftID(e) { this.clientEncoder.write(e.client), this.leftClockEncoder.write(e.clock); @@ -16948,7 +16948,7 @@ class $i extends zS { n === void 0 ? (this.keyClockEncoder.write(this.keyClock++), this.stringEncoder.write(e)) : this.keyClockEncoder.write(n); } } -const aL = (t, e, n, r) => { +const cL = (t, e, n, r) => { r = Gr(r, e[0].id.clock); const i = Wn(e, r); V(t.restEncoder, e.length - i), t.writeClient(n), V(t.restEncoder, r); @@ -16956,16 +16956,16 @@ const aL = (t, e, n, r) => { s.write(t, r - s.id.clock); for (let o = i + 1; o < e.length; o++) e[o].write(t, 0); -}, sg = (t, e, n) => { +}, om = (t, e, n) => { const r = /* @__PURE__ */ new Map(); n.forEach((i, s) => { Le(e, s) > i && r.set(s, i); - }), Kh(e).forEach((i, s) => { + }), Jh(e).forEach((i, s) => { n.has(s) || r.set(s, 0); }), V(t.restEncoder, r.size), Wr(r.entries()).sort((i, s) => s[0] - i[0]).forEach(([i, s]) => { - aL(t, e.clients.get(i), i, s); + cL(t, e.clients.get(i), i, s); }); -}, cL = (t, e) => { +}, hL = (t, e) => { const n = un(), r = G(t.restDecoder); for (let i = 0; i < r; i++) { const s = G(t.restDecoder), o = new Array(s), l = t.readClient(); @@ -16973,7 +16973,7 @@ const aL = (t, e, n, r) => { n.set(l, { i: 0, refs: o }); for (let c = 0; c < s; c++) { const h = t.readInfo(); - switch (Uh & h) { + switch (Gh & h) { case 0: { const u = t.readLen(); o[c] = new Xt(J(l, a), u), a += u; @@ -16992,8 +16992,8 @@ const aL = (t, e, n, r) => { null, (h & lr) === lr ? t.readRightID() : null, u ? t.readParentInfo() ? e.get(t.readString()) : t.readLeftID() : null, - u && (h & pl) === pl ? t.readString() : null, - x_(t, h) + u && (h & dl) === dl ? t.readString() : null, + v_(t, h) ); o[c] = f, a += f.length; } @@ -17001,7 +17001,7 @@ const aL = (t, e, n, r) => { } } return n; -}, hL = (t, e, n) => { +}, uL = (t, e, n) => { const r = []; let i = Wr(n.keys()).sort((d, p) => d - p); if (i.length === 0) @@ -17020,32 +17020,32 @@ const aL = (t, e, n, r) => { let o = s(); if (o === null) return null; - const l = new e_(), a = /* @__PURE__ */ new Map(), c = (d, p) => { - const m = a.get(d); - (m == null || m > p) && a.set(d, p); + const l = new t_(), a = /* @__PURE__ */ new Map(), c = (d, p) => { + const g = a.get(d); + (g == null || g > p) && a.set(d, p); }; let h = o.refs[o.i++]; const u = /* @__PURE__ */ new Map(), f = () => { for (const d of r) { - const p = d.id.client, m = n.get(p); - m ? (m.i--, l.clients.set(p, m.refs.slice(m.i)), n.delete(p), m.i = 0, m.refs = []) : l.clients.set(p, [d]), i = i.filter((g) => g !== p); + const p = d.id.client, g = n.get(p); + g ? (g.i--, l.clients.set(p, g.refs.slice(g.i)), n.delete(p), g.i = 0, g.refs = []) : l.clients.set(p, [d]), i = i.filter((m) => m !== p); } r.length = 0; }; for (; ; ) { if (h.constructor !== Wt) { - const p = gr(u, h.id.client, () => Le(e, h.id.client)) - h.id.clock; + const p = mr(u, h.id.client, () => Le(e, h.id.client)) - h.id.clock; if (p < 0) r.push(h), c(h.id.client, h.id.clock - 1), f(); else { - const m = h.getMissing(t, e); - if (m !== null) { + const g = h.getMissing(t, e); + if (g !== null) { r.push(h); - const g = n.get(m) || { refs: [], i: 0 }; - if (g.refs.length === g.i) - c(m, Le(e, m)), f(); + const m = n.get(g) || { refs: [], i: 0 }; + if (m.refs.length === m.i) + c(g, Le(e, g)), f(); else { - h = g.refs[g.i++]; + h = m.refs[m.i++]; continue; } } else @@ -17064,13 +17064,13 @@ const aL = (t, e, n, r) => { } if (l.clients.size > 0) { const d = new $i(); - return sg(d, l, /* @__PURE__ */ new Map()), V(d.restEncoder, 0), { missing: a, update: d.toUint8Array() }; + return om(d, l, /* @__PURE__ */ new Map()), V(d.restEncoder, 0), { missing: a, update: d.toUint8Array() }; } return null; -}, uL = (t, e) => sg(t, e.doc.store, e.beforeState), fL = (t, e, n, r = new Es(t)) => ye(e, (i) => { +}, fL = (t, e) => om(t, e.doc.store, e.beforeState), dL = (t, e, n, r = new Es(t)) => ye(e, (i) => { i.local = !1; let s = !1; - const o = i.doc, l = o.store, a = cL(r, o), c = hL(i, l, a), h = l.pendingStructs; + const o = i.doc, l = o.store, a = hL(r, o), c = uL(i, l, a), h = l.pendingStructs; if (h) { for (const [f, d] of h.missing) if (d < Le(l, f)) { @@ -17082,68 +17082,68 @@ const aL = (t, e, n, r) => { const p = h.missing.get(f); (p == null || p > d) && h.missing.set(f, d); } - h.update = Hc([h.update, c.update]); + h.update = Kc([h.update, c.update]); } } else l.pendingStructs = c; - const u = F1(r, i, l); + const u = U1(r, i, l); if (l.pendingDs) { const f = new Es(Hr(l.pendingDs)); G(f.restDecoder); - const d = F1(f, i, l); - u && d ? l.pendingDs = Hc([u, d]) : l.pendingDs = u || d; + const d = U1(f, i, l); + u && d ? l.pendingDs = Kc([u, d]) : l.pendingDs = u || d; } else l.pendingDs = u; if (s) { const f = l.pendingStructs.update; - l.pendingStructs = null, FS(i.doc, f); + l.pendingStructs = null, US(i.doc, f); } -}, n, !1), FS = (t, e, n, r = Es) => { +}, n, !1), US = (t, e, n, r = Es) => { const i = Hr(e); - fL(i, t, n, new r(i)); -}, dL = (t, e, n) => FS(t, e, n, VS), pL = (t, e, n = /* @__PURE__ */ new Map()) => { - sg(t, e.store, n), Hs(t, oL(e.store)); + dL(i, t, n, new r(i)); +}, pL = (t, e, n) => US(t, e, n, jS), gL = (t, e, n = /* @__PURE__ */ new Map()) => { + om(t, e.store, n), Hs(t, lL(e.store)); }, mL = (t, e = new Uint8Array([0]), n = new $i()) => { - const r = US(e); - pL(n, t, r); + const r = GS(e); + gL(n, t, r); const i = [n.toUint8Array()]; - if (t.store.pendingDs && i.push(t.store.pendingDs), t.store.pendingStructs && i.push(ML(t.store.pendingStructs.update, e)), i.length > 1) { - if (n.constructor === zl) - return DL(i.map((s, o) => o === 0 ? s : LL(s))); + if (t.store.pendingDs && i.push(t.store.pendingDs), t.store.pendingStructs && i.push(ZL(t.store.pendingStructs.update, e)), i.length > 1) { + if (n.constructor === jl) + return RL(i.map((s, o) => o === 0 ? s : IL(s))); if (n.constructor === $i) - return Hc(i); + return Kc(i); } return i[0]; -}, gL = (t, e) => mL(t, e, new zl()), OL = (t) => { +}, OL = (t, e) => mL(t, e, new jl()), bL = (t) => { const e = /* @__PURE__ */ new Map(), n = G(t.restDecoder); for (let r = 0; r < n; r++) { const i = G(t.restDecoder), s = G(t.restDecoder); e.set(i, s); } return e; -}, US = (t) => OL(new WS(Hr(t))), GS = (t, e) => (V(t.restEncoder, e.size), Wr(e.entries()).sort((n, r) => r[0] - n[0]).forEach(([n, r]) => { +}, GS = (t) => bL(new VS(Hr(t))), HS = (t, e) => (V(t.restEncoder, e.size), Wr(e.entries()).sort((n, r) => r[0] - n[0]).forEach(([n, r]) => { V(t.restEncoder, n), V(t.restEncoder, r); -}), t), bL = (t, e) => GS(t, Kh(e.store)), yL = (t, e = new zS()) => (t instanceof Map ? GS(e, t) : bL(e, t), e.toUint8Array()), wL = (t) => yL(t, new jS()); -class kL { +}), t), yL = (t, e) => HS(t, Jh(e.store)), wL = (t, e = new FS()) => (t instanceof Map ? HS(e, t) : yL(e, t), e.toUint8Array()), kL = (t) => wL(t, new zS()); +class xL { constructor() { this.l = []; } } -const U1 = () => new kL(), G1 = (t, e) => t.l.push(e), H1 = (t, e) => { +const G1 = () => new xL(), H1 = (t, e) => t.l.push(e), K1 = (t, e) => { const n = t.l, r = n.length; t.l = n.filter((i) => e !== i), r === t.l.length && console.error("[yjs] Tried to remove event handler that doesn't exist."); -}, HS = (t, e, n) => eg(t.l, [e, n]); +}, KS = (t, e, n) => tm(t.l, [e, n]); class cs { constructor(e, n) { this.client = e, this.clock = n; } } -const es = (t, e) => t === e || t !== null && e !== null && t.client === e.client && t.clock === e.clock, J = (t, e) => new cs(t, e), KS = (t) => { +const es = (t, e) => t === e || t !== null && e !== null && t.client === e.client && t.clock === e.clock, J = (t, e) => new cs(t, e), JS = (t) => { for (const [e, n] of t.doc.share.entries()) if (n === t) return e; - throw gn(); -}, Gc = (t, e) => { + throw mn(); +}, Hc = (t, e) => { for (; e !== null; ) { if (e.parent === t) return !0; @@ -17151,24 +17151,24 @@ const es = (t, e) => t === e || t !== null && e !== null && t.client === e.clien } return !1; }; -class JS { +class e_ { constructor(e, n, r, i = 0) { this.type = e, this.tname = n, this.item = r, this.assoc = i; } } -const K1 = (t) => { +const J1 = (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; -}, yl = (t) => new JS(t.type == null ? null : J(t.type.client, t.type.clock), t.tname || null, t.item == null ? null : J(t.item.client, t.item.clock), t.assoc == null ? 0 : t.assoc); -class xL { +}, bl = (t) => new e_(t.type == null ? null : J(t.type.client, t.type.clock), t.tname || null, t.item == null ? null : J(t.item.client, t.item.clock), t.assoc == null ? 0 : t.assoc); +class vL { constructor(e, n, r = 0) { this.type = e, this.index = n, this.assoc = r; } } -const vL = (t, e, n = 0) => new xL(t, e, n), Da = (t, e, n) => { +const SL = (t, e, n = 0) => new vL(t, e, n), Da = (t, e, n) => { let r = null, i = null; - return t._item === null ? i = KS(t) : r = J(t._item.id.client, t._item.id.clock), new JS(r, i, e, n); -}, bp = (t, e, n = 0) => { + return t._item === null ? i = JS(t) : r = J(t._item.id.client, t._item.id.clock), new e_(r, i, e, n); +}, yp = (t, e, n = 0) => { let r = t._start; if (n < 0) { if (e === 0) @@ -17186,13 +17186,13 @@ const vL = (t, e, n = 0) => new xL(t, e, n), Da = (t, e, n) => { r = r.right; } return Da(t, null, n); -}, yp = (t, e) => { +}, wp = (t, e) => { const n = e.store, r = t.item, i = t.type, s = t.tname, o = t.assoc; let l = null, a = 0; if (r !== null) { if (Le(n, r.client) <= r.clock) return null; - const c = vp(n, r), h = c.item; + const c = Sp(n, r), h = c.item; if (!(h instanceof we)) return null; if (l = h.parent, l._item === null || !l._item.deleted) { @@ -17207,37 +17207,37 @@ const vL = (t, e, n = 0) => new xL(t, e, n), Da = (t, e, n) => { else if (i !== null) { if (Le(n, i.client) <= i.clock) return null; - const { item: c } = vp(n, i); + const { item: c } = Sp(n, i); if (c instanceof we && c.content instanceof Un) l = c.content.type; else return null; } else - throw gn(); + throw mn(); o >= 0 ? a = l._length : a = 0; } - return vL(l, a, t.assoc); -}, J1 = (t, e) => t === e || t !== null && e !== null && t.tname === e.tname && es(t.item, e.item) && es(t.type, e.type) && t.assoc === e.assoc; -class SL { + return SL(l, a, t.assoc); +}, eb = (t, e) => t === e || t !== null && e !== null && t.tname === e.tname && es(t.item, e.item) && es(t.type, e.type) && t.assoc === e.assoc; +class _L { constructor(e, n) { this.ds = e, this.sv = n; } } -const _L = (t, e) => new SL(t, e); -_L(YS(), /* @__PURE__ */ new Map()); -const Ui = (t, e) => e === void 0 ? !t.deleted : e.sv.has(t.id.client) && (e.sv.get(t.id.client) || 0) > t.id.clock && !jl(e.ds, t.id), wp = (t, e) => { - const n = gr(t.meta, wp, Ai), r = t.doc.store; +const CL = (t, e) => new _L(t, e); +CL(XS(), /* @__PURE__ */ new Map()); +const Ui = (t, e) => e === void 0 ? !t.deleted : e.sv.has(t.id.client) && (e.sv.get(t.id.client) || 0) > t.id.clock && !Vl(e.ds, t.id), kp = (t, e) => { + const n = mr(t.meta, kp, Ai), r = t.doc.store; n.has(e) || (e.sv.forEach((i, s) => { i < Le(r, s) && _t(t, J(s, i)); }), Qs(t, e.ds, (i) => { }), n.add(e)); }; -class e_ { +class t_ { constructor() { this.clients = /* @__PURE__ */ new Map(), this.pendingStructs = null, this.pendingDs = null; } } -const Kh = (t) => { +const Jh = (t) => { const e = /* @__PURE__ */ new Map(); return t.clients.forEach((n, r) => { const i = n[n.length - 1]; @@ -17249,14 +17249,14 @@ const Kh = (t) => { return 0; const r = n[n.length - 1]; return r.id.clock + r.length; -}, t_ = (t, e) => { +}, n_ = (t, e) => { let n = t.clients.get(e.id.client); if (n === void 0) n = [], t.clients.set(e.id.client, n); else { const r = n[n.length - 1]; if (r.id.clock + r.length !== e.id.clock) - throw gn(); + throw mn(); } n.push(e); }, Wn = (t, e) => { @@ -17273,39 +17273,39 @@ const Kh = (t) => { r = o - 1; o = pr((n + r) / 2); } - throw gn(); -}, CL = (t, e) => { + throw mn(); +}, AL = (t, e) => { const n = t.clients.get(e.client); return n[Wn(n, e.clock)]; -}, gc = CL, kp = (t, e, n) => { +}, mc = AL, xp = (t, e, n) => { const r = Wn(e, n), i = e[r]; - return i.id.clock < n && i instanceof we ? (e.splice(r + 1, 0, rh(t, i, n - i.id.clock)), r + 1) : r; + return i.id.clock < n && i instanceof we ? (e.splice(r + 1, 0, ih(t, i, n - i.id.clock)), r + 1) : r; }, _t = (t, e) => { const n = t.doc.store.clients.get(e.client); - return n[kp(t, n, e.clock)]; -}, eb = (t, e, n) => { + return n[xp(t, n, e.clock)]; +}, tb = (t, e, n) => { const r = e.clients.get(n.client), i = Wn(r, n.clock), s = r[i]; - return n.clock !== s.id.clock + s.length - 1 && s.constructor !== Xt && r.splice(i + 1, 0, rh(t, s, n.clock - s.id.clock + 1)), s; -}, AL = (t, e, n) => { + return n.clock !== s.id.clock + s.length - 1 && s.constructor !== Xt && r.splice(i + 1, 0, ih(t, s, n.clock - s.id.clock + 1)), s; +}, $L = (t, e, n) => { const r = t.clients.get(e.id.client); r[Wn(r, e.id.clock)] = n; -}, n_ = (t, e, n, r, i) => { +}, r_ = (t, e, n, r, i) => { if (r === 0) return; const s = n + r; - let o = kp(t, e, n), l; + let o = xp(t, e, n), l; do - l = e[o++], s < l.id.clock + l.length && kp(t, e, s), i(l); + l = e[o++], s < l.id.clock + l.length && xp(t, e, s), i(l); while (o < e.length && e[o].id.clock < s); }; -class $L { +class PL { constructor(e, n, r) { - this.doc = e, this.deleteSet = new Gs(), this.beforeState = Kh(e.store), this.afterState = /* @__PURE__ */ new Map(), this.changed = /* @__PURE__ */ new Map(), this.changedParentTypes = /* @__PURE__ */ new Map(), this._mergeStructs = [], this.origin = n, this.meta = /* @__PURE__ */ new Map(), this.local = r, this.subdocsAdded = /* @__PURE__ */ new Set(), this.subdocsRemoved = /* @__PURE__ */ new Set(), this.subdocsLoaded = /* @__PURE__ */ new Set(), this._needFormattingCleanup = !1; + this.doc = e, this.deleteSet = new Gs(), this.beforeState = Jh(e.store), this.afterState = /* @__PURE__ */ new Map(), this.changed = /* @__PURE__ */ new Map(), this.changedParentTypes = /* @__PURE__ */ new Map(), this._mergeStructs = [], this.origin = n, this.meta = /* @__PURE__ */ new Map(), this.local = r, this.subdocsAdded = /* @__PURE__ */ new Set(), this.subdocsRemoved = /* @__PURE__ */ new Set(), this.subdocsLoaded = /* @__PURE__ */ new Set(), this._needFormattingCleanup = !1; } } -const tb = (t, e) => e.deleteSet.clients.size === 0 && !DZ(e.afterState, (n, r) => e.beforeState.get(r) !== n) ? !1 : (rg(e.deleteSet), uL(t, e), Hs(t, e.deleteSet), !0), nb = (t, e, n) => { +const nb = (t, e) => e.deleteSet.clients.size === 0 && !R5(e.afterState, (n, r) => e.beforeState.get(r) !== n) ? !1 : (im(e.deleteSet), fL(t, e), Hs(t, e.deleteSet), !0), rb = (t, e, n) => { const r = e._item; - (r === null || r.id.clock < (t.beforeState.get(r.id.client) || 0) && !r.deleted) && gr(t.changed, e, Ai).add(n); + (r === null || r.id.clock < (t.beforeState.get(r.id.client) || 0) && !r.deleted) && mr(t.changed, e, Ai).add(n); }, Oc = (t, e) => { let n = t[e], r = t[e - 1], i = e; for (; i > 0; n = r, r = t[--i - 1]) { @@ -17317,7 +17317,7 @@ const tb = (t, e) => e.deleteSet.clients.size === 0 && !DZ(e.afterState, (n, r) } const s = e - i; return s && t.splice(e + 1 - s, s), s; -}, PL = (t, e, n) => { +}, TL = (t, e, n) => { for (const [r, i] of t.clients.entries()) { const s = e.clients.get(r); for (let o = i.length - 1; o >= 0; o--) { @@ -17330,20 +17330,20 @@ const tb = (t, e) => e.deleteSet.clients.size === 0 && !DZ(e.afterState, (n, r) } } } -}, TL = (t, e) => { +}, QL = (t, e) => { t.clients.forEach((n, r) => { const i = e.clients.get(r); for (let s = n.length - 1; s >= 0; s--) { - const o = n[s], l = Fh(i.length - 1, 1 + Wn(i, o.clock + o.len - 1)); + const o = n[s], l = Uh(i.length - 1, 1 + Wn(i, o.clock + o.len - 1)); for (let a = l, c = i[a]; a > 0 && c.id.clock >= o.clock; c = i[a]) a -= 1 + Oc(i, a); } }); -}, r_ = (t, e) => { +}, i_ = (t, e) => { if (e < t.length) { const n = t[e], r = n.doc, i = r.store, s = n.deleteSet, o = n._mergeStructs; try { - rg(s), n.afterState = Kh(n.doc.store), r.emit("beforeObserverCalls", [n, r]); + im(s), n.afterState = Jh(n.doc.store), r.emit("beforeObserverCalls", [n, r]); const l = []; n.changed.forEach( (a, c) => l.push(() => { @@ -17355,60 +17355,60 @@ const tb = (t, e) => e.deleteSet.clients.size === 0 && !DZ(e.afterState, (n, r) (h) => h.target._item === null || !h.target._item.deleted ), a.forEach((h) => { h.currentTarget = c, h._path = null; - }), a.sort((h, u) => h.path.length - u.path.length), HS(c._dEH, a, n)); + }), a.sort((h, u) => h.path.length - u.path.length), KS(c._dEH, a, n)); }); - }), l.push(() => r.emit("afterTransaction", [n, r])), eg(l, []), n._needFormattingCleanup && HL(n); + }), l.push(() => r.emit("afterTransaction", [n, r])), tm(l, []), n._needFormattingCleanup && KL(n); } finally { - r.gc && PL(s, i, r.gcFilter), TL(s, i), n.afterState.forEach((h, u) => { + r.gc && TL(s, i, r.gcFilter), QL(s, i), n.afterState.forEach((h, u) => { const f = n.beforeState.get(u) || 0; if (f !== h) { const d = i.clients.get(u), p = Gr(Wn(d, f), 1); - for (let m = d.length - 1; m >= p; ) - m -= 1 + Oc(d, m); + for (let g = d.length - 1; g >= p; ) + g -= 1 + Oc(d, g); } }); for (let h = o.length - 1; h >= 0; h--) { const { client: u, clock: f } = o[h].id, d = i.clients.get(u), p = Wn(d, f); p + 1 < d.length && Oc(d, p + 1) > 1 || p > 0 && Oc(d, p); } - if (!n.local && n.afterState.get(r.clientID) !== n.beforeState.get(r.clientID) && (nL(tg, ZS, "[yjs] ", LS, IS, "Changed the client-id because another client seems to be using it."), r.clientID = XS()), r.emit("afterTransactionCleanup", [n, r]), r._observers.has("update")) { - const h = new zl(); - tb(h, n) && r.emit("update", [h.toUint8Array(), n.origin, r, n]); + if (!n.local && n.afterState.get(r.clientID) !== n.beforeState.get(r.clientID) && (rL(nm, LS, "[yjs] ", IS, NS, "Changed the client-id because another client seems to be using it."), r.clientID = WS()), r.emit("afterTransactionCleanup", [n, r]), r._observers.has("update")) { + const h = new jl(); + nb(h, n) && r.emit("update", [h.toUint8Array(), n.origin, r, n]); } if (r._observers.has("updateV2")) { const h = new $i(); - tb(h, n) && r.emit("updateV2", [h.toUint8Array(), n.origin, r, n]); + nb(h, n) && r.emit("updateV2", [h.toUint8Array(), n.origin, r, n]); } const { subdocsAdded: l, subdocsLoaded: a, subdocsRemoved: c } = n; (l.size > 0 || c.size > 0 || a.size > 0) && (l.forEach((h) => { h.clientID = r.clientID, h.collectionid == null && (h.collectionid = r.collectionid), r.subdocs.add(h); - }), c.forEach((h) => r.subdocs.delete(h)), r.emit("subdocs", [{ loaded: a, added: l, removed: c }, r, n]), c.forEach((h) => h.destroy())), t.length <= e + 1 ? (r._transactionCleanups = [], r.emit("afterAllTransactions", [r, t])) : r_(t, e + 1); + }), c.forEach((h) => r.subdocs.delete(h)), r.emit("subdocs", [{ loaded: a, added: l, removed: c }, r, n]), c.forEach((h) => h.destroy())), t.length <= e + 1 ? (r._transactionCleanups = [], r.emit("afterAllTransactions", [r, t])) : i_(t, e + 1); } } }, ye = (t, e, n = null, r = !0) => { const i = t._transactionCleanups; let s = !1, o = null; - t._transaction === null && (s = !0, t._transaction = new $L(t, n, r), 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 PL(t, n, r), i.push(t._transaction), i.length === 1 && t.emit("beforeAllTransactions", [t]), t.emit("beforeTransaction", [t._transaction, t])); try { o = e(t._transaction); } finally { if (s) { const l = t._transaction === i[0]; - t._transaction = null, l && r_(i, 0); + t._transaction = null, l && i_(i, 0); } } return o; }; -class QL { +class EL { constructor(e, n) { this.insertions = n, this.deletions = e, this.meta = /* @__PURE__ */ new Map(); } } -const rb = (t, e, n) => { +const ib = (t, e, n) => { Qs(t, n.deletions, (r) => { - r instanceof we && e.scope.some((i) => Gc(i, r)) && pg(r, !1); + r instanceof we && e.scope.some((i) => Hc(i, r)) && gm(r, !1); }); -}, ib = (t, e, n) => { +}, sb = (t, e, n) => { let r = null, i = null; const s = t.doc, o = t.scope; if (ye(s, (l) => { @@ -17418,15 +17418,15 @@ const rb = (t, e, n) => { Qs(l, c.insertions, (d) => { if (d instanceof we) { if (d.redone !== null) { - let { item: p, diff: m } = vp(a, d.id); - m > 0 && (p = _t(l, J(p.id.client, p.id.clock + m))), d = p; + let { item: p, diff: g } = Sp(a, d.id); + g > 0 && (p = _t(l, J(p.id.client, p.id.clock + g))), d = p; } - !d.deleted && o.some((p) => Gc(p, d)) && u.push(d); + !d.deleted && o.some((p) => Hc(p, d)) && u.push(d); } }), Qs(l, c.deletions, (d) => { - d instanceof we && o.some((p) => Gc(p, d)) && !jl(c.insertions, d.id) && h.add(d); + d instanceof we && o.some((p) => Hc(p, d)) && !Vl(c.insertions, d.id) && h.add(d); }), h.forEach((d) => { - f = k_(l, d, h, c.insertions, t.ignoreRemoteMapChanges, t) !== null || f; + f = x_(l, d, h, c.insertions, t.ignoreRemoteMapChanges, t) !== null || f; }); for (let d = u.length - 1; d >= 0; d--) { const p = u[d]; @@ -17443,44 +17443,44 @@ const rb = (t, e, n) => { } return r; }; -class og extends zh { +class lm extends Fh { constructor(e, { captureTimeout: n = 500, captureTransaction: r = (a) => !0, deleteFilter: i = () => !0, trackedOrigins: s = /* @__PURE__ */ new Set([null]), ignoreRemoteMapChanges: o = !1, - doc: l = up(e) ? e[0].doc : e.doc + doc: l = fp(e) ? e[0].doc : e.doc } = {}) { super(), this.scope = [], this.doc = l, this.addToScope(e), this.deleteFilter = i, s.add(this), this.trackedOrigins = s, this.captureTransaction = r, this.undoStack = [], this.redoStack = [], this.undoing = !1, this.redoing = !1, this.lastChange = 0, this.ignoreRemoteMapChanges = o, this.captureTimeout = n, this.afterTransactionHandler = (a) => { - if (!this.captureTransaction(a) || !this.scope.some((g) => a.changedParentTypes.has(g)) || !this.trackedOrigins.has(a.origin) && (!a.origin || !this.trackedOrigins.has(a.origin.constructor))) + if (!this.captureTransaction(a) || !this.scope.some((m) => a.changedParentTypes.has(m)) || !this.trackedOrigins.has(a.origin) && (!a.origin || !this.trackedOrigins.has(a.origin.constructor))) return; const c = this.undoing, h = this.redoing, u = c ? this.redoStack : this.undoStack; c ? this.stopCapturing() : h || this.clear(!1, !0); const f = new Gs(); - a.afterState.forEach((g, O) => { - const b = a.beforeState.get(O) || 0, y = g - b; - y > 0 && bl(f, O, b, y); + a.afterState.forEach((m, O) => { + const b = a.beforeState.get(O) || 0, y = m - b; + y > 0 && Ol(f, O, b, y); }); const d = jr(); let p = !1; if (this.lastChange > 0 && d - this.lastChange < this.captureTimeout && u.length > 0 && !c && !h) { - const g = u[u.length - 1]; - g.deletions = Op([g.deletions, a.deleteSet]), g.insertions = Op([g.insertions, f]); + const m = u[u.length - 1]; + m.deletions = bp([m.deletions, a.deleteSet]), m.insertions = bp([m.insertions, f]); } else - u.push(new QL(a.deleteSet, f)), p = !0; - !c && !h && (this.lastChange = d), Qs(a, a.deleteSet, (g) => { - g instanceof we && this.scope.some((O) => Gc(O, g)) && pg(g, !0); + u.push(new EL(a.deleteSet, f)), p = !0; + !c && !h && (this.lastChange = d), Qs(a, a.deleteSet, (m) => { + m instanceof we && this.scope.some((O) => Hc(O, m)) && gm(m, !0); }); - const m = [{ stackItem: u[u.length - 1], origin: a.origin, type: c ? "redo" : "undo", changedParentTypes: a.changedParentTypes }, this]; - p ? this.emit("stack-item-added", m) : this.emit("stack-item-updated", m); + const g = [{ stackItem: u[u.length - 1], origin: a.origin, type: c ? "redo" : "undo", changedParentTypes: a.changedParentTypes }, this]; + p ? this.emit("stack-item-added", g) : this.emit("stack-item-updated", g); }, this.doc.on("afterTransaction", this.afterTransactionHandler), this.doc.on("destroy", () => { this.destroy(); }); } addToScope(e) { - e = up(e) ? e : [e], e.forEach((n) => { - this.scope.every((r) => r !== n) && (n.doc !== this.doc && rL("[yjs#509] Not same Y.Doc"), this.scope.push(n)); + e = fp(e) ? e : [e], e.forEach((n) => { + this.scope.every((r) => r !== n) && (n.doc !== this.doc && iL("[yjs#509] Not same Y.Doc"), this.scope.push(n)); }); } addTrackedOrigin(e) { @@ -17491,7 +17491,7 @@ class og extends zh { } clear(e = !0, n = !0) { (e && this.canUndo() || n && this.canRedo()) && this.doc.transact((r) => { - e && (this.undoStack.forEach((i) => rb(r, this, i)), this.undoStack = []), n && (this.redoStack.forEach((i) => rb(r, this, i)), this.redoStack = []), this.emit("stack-cleared", [{ undoStackCleared: e, redoStackCleared: n }]); + e && (this.undoStack.forEach((i) => ib(r, this, i)), this.undoStack = []), n && (this.redoStack.forEach((i) => ib(r, this, i)), this.redoStack = []), this.emit("stack-cleared", [{ undoStackCleared: e, redoStackCleared: n }]); }); } stopCapturing() { @@ -17501,7 +17501,7 @@ class og extends zh { this.undoing = !0; let e; try { - e = ib(this, this.undoStack, "undo"); + e = sb(this, this.undoStack, "undo"); } finally { this.undoing = !1; } @@ -17511,7 +17511,7 @@ class og extends zh { this.redoing = !0; let e; try { - e = ib(this, this.redoStack, "redo"); + e = sb(this, this.redoStack, "redo"); } finally { this.redoing = !1; } @@ -17527,7 +17527,7 @@ class og extends zh { this.trackedOrigins.delete(this), this.doc.off("afterTransaction", this.afterTransactionHandler), super.destroy(); } } -function* EL(t) { +function* DL(t) { const e = G(t.restDecoder); for (let n = 0; n < e; n++) { const r = G(t.restDecoder), i = t.readClient(); @@ -17537,7 +17537,7 @@ function* EL(t) { if (l === 10) { const a = G(t.restDecoder); yield new Wt(J(i, s), a), s += a; - } else if ((Uh & l) !== 0) { + } else if ((Gh & l) !== 0) { const a = (l & (lr | Nt)) === 0, c = new we( J(i, s), null, @@ -17545,8 +17545,8 @@ function* EL(t) { null, (l & lr) === lr ? t.readRightID() : null, a ? t.readParentInfo() ? t.readString() : t.readLeftID() : null, - a && (l & pl) === pl ? t.readString() : null, - x_(t, l) + a && (l & dl) === dl ? t.readString() : null, + v_(t, l) ); yield c, s += c.length; } else { @@ -17556,9 +17556,9 @@ function* EL(t) { } } } -class lg { +class am { constructor(e, n) { - this.gen = EL(e), this.curr = null, this.done = !1, this.filterSkips = n, this.next(); + this.gen = DL(e), this.curr = null, this.done = !1, this.filterSkips = n, this.next(); } next() { do @@ -17567,12 +17567,12 @@ class lg { return this.curr; } } -class ag { +class cm { constructor(e) { this.currClient = 0, this.startClock = 0, this.written = 0, this.encoder = e, this.clientStructs = []; } } -const DL = (t) => Hc(t, VS, zl), RL = (t, e) => { +const RL = (t) => Kc(t, jS, jl), ML = (t, e) => { if (t.constructor === Xt) { const { client: n, clock: r } = t.id; return new Xt(J(n, r + e), t.length - e); @@ -17592,12 +17592,12 @@ const DL = (t) => Hc(t, VS, zl), RL = (t, e) => { n.content.splice(e) ); } -}, Hc = (t, e = Es, n = $i) => { +}, Kc = (t, e = Es, n = $i) => { if (t.length === 1) return t[0]; const r = t.map((h) => new e(Hr(h))); - let i = r.map((h) => new lg(h, !0)), s = null; - const o = new n(), l = new ag(o); + let i = r.map((h) => new am(h, !0)), s = null; + const o = new n(), l = new cm(o); for (; i = i.filter((f) => f.curr !== null), i.sort( (f, d) => { if (f.curr.id.client === d.curr.id.client) { @@ -17626,18 +17626,18 @@ const DL = (t) => Hc(t, VS, zl), RL = (t, e) => { } else { const p = s.struct.id.clock + s.struct.length - f.id.clock; - p > 0 && (s.struct.constructor === Wt ? s.struct.length -= p : f = RL(f, p)), s.struct.mergeWith(f) || (Cr(l, s.struct, s.offset), s = { struct: f, offset: 0 }, h.next()); + p > 0 && (s.struct.constructor === Wt ? s.struct.length -= p : f = ML(f, p)), s.struct.mergeWith(f) || (Cr(l, s.struct, s.offset), s = { struct: f, offset: 0 }, h.next()); } } else s = { struct: h.curr, offset: 0 }, h.next(); for (let f = h.curr; f !== null && f.id.client === u && f.id.clock === s.struct.id.clock + s.struct.length && f.constructor !== Wt; f = h.next()) Cr(l, s.struct, s.offset), s = { struct: f, offset: 0 }; } - s !== null && (Cr(l, s.struct, s.offset), s = null), cg(l); - const a = r.map((h) => ig(h)), c = Op(a); + s !== null && (Cr(l, s.struct, s.offset), s = null), hm(l); + const a = r.map((h) => sm(h)), c = bp(a); return Hs(o, c), o.toUint8Array(); -}, ML = (t, e, n = Es, r = $i) => { - const i = US(e), s = new r(), o = new ag(s), l = new n(Hr(t)), a = new lg(l, !1); +}, ZL = (t, e, n = Es, r = $i) => { + const i = GS(e), s = new r(), o = new cm(s), l = new n(Hr(t)), a = new am(l, !1); for (; a.curr; ) { const h = a.curr, u = h.id.client, f = i.get(u) || 0; if (a.curr.constructor === Wt) { @@ -17651,43 +17651,43 @@ const DL = (t) => Hc(t, VS, zl), RL = (t, e) => { for (; a.curr && a.curr.id.client === u && a.curr.id.clock + a.curr.length <= f; ) a.next(); } - cg(o); - const c = ig(l); + hm(o); + const c = sm(l); return Hs(s, c), s.toUint8Array(); -}, i_ = (t) => { +}, s_ = (t) => { t.written > 0 && (t.clientStructs.push({ written: t.written, restEncoder: Te(t.encoder.restEncoder) }), t.encoder.restEncoder = ct(), t.written = 0); }, Cr = (t, e, n) => { - t.written > 0 && t.currClient !== e.id.client && i_(t), t.written === 0 && (t.currClient = e.id.client, t.encoder.writeClient(e.id.client), V(t.encoder.restEncoder, e.id.clock + n)), e.write(t.encoder, n), t.written++; -}, cg = (t) => { - i_(t); + t.written > 0 && t.currClient !== e.id.client && s_(t), t.written === 0 && (t.currClient = e.id.client, t.encoder.writeClient(e.id.client), V(t.encoder.restEncoder, e.id.clock + n)), e.write(t.encoder, n), t.written++; +}, hm = (t) => { + s_(t); const e = t.encoder.restEncoder; V(e, t.clientStructs.length); for (let n = 0; n < t.clientStructs.length; n++) { const r = t.clientStructs[n]; - V(e, r.written), Gh(e, r.restEncoder); + V(e, r.written), Hh(e, r.restEncoder); } -}, ZL = (t, e, n, r) => { - const i = new n(Hr(t)), s = new lg(i, !1), o = new r(), l = new ag(o); +}, LL = (t, e, n, r) => { + const i = new n(Hr(t)), s = new am(i, !1), o = new r(), l = new cm(o); for (let c = s.curr; c !== null; c = s.next()) Cr(l, e(c), 0); - cg(l); - const a = ig(i); + hm(l); + const a = sm(i); return Hs(o, a), o.toUint8Array(); -}, LL = (t) => ZL(t, S5, Es, zl), sb = "You must not compute changes after the event-handler fired."; -class Jh { +}, IL = (t) => LL(t, _Z, Es, jl), ob = "You must not compute changes after the event-handler fired."; +class eu { constructor(e, n) { this.target = e, this.currentTarget = e, this.transaction = n, this._changes = null, this._keys = null, this._delta = null, this._path = null; } get path() { - return this._path || (this._path = IL(this.currentTarget, this.target)); + return this._path || (this._path = NL(this.currentTarget, this.target)); } deletes(e) { - return jl(this.transaction.deleteSet, e.id); + return Vl(this.transaction.deleteSet, e.id); } get keys() { if (this._keys === null) { if (this.transaction.doc._transactionCleanups.length === 0) - throw Vr(sb); + throw Vr(ob); const e = /* @__PURE__ */ new Map(), n = this.target; this.transaction.changed.get(n).forEach((i) => { if (i !== null) { @@ -17724,7 +17724,7 @@ class Jh { let e = this._changes; if (e === null) { if (this.transaction.doc._transactionCleanups.length === 0) - throw Vr(sb); + throw Vr(ob); const n = this.target, r = Ai(), i = Ai(), s = []; if (e = { added: r, @@ -17745,7 +17745,7 @@ class Jh { return e; } } -const IL = (t, e) => { +const NL = (t, e) => { const n = []; for (; e._item !== null && e !== t; ) { if (e._item.parentSub !== null) @@ -17759,31 +17759,31 @@ const IL = (t, e) => { e = e._item.parent; } return n; -}, s_ = 80; -let hg = 0; -class NL { +}, o_ = 80; +let um = 0; +class qL { constructor(e, n) { - e.marker = !0, this.p = e, this.index = n, this.timestamp = hg++; + e.marker = !0, this.p = e, this.index = n, this.timestamp = um++; } } -const qL = (t) => { - t.timestamp = hg++; -}, o_ = (t, e, n) => { - t.p.marker = !1, t.p = e, e.marker = !0, t.index = n, t.timestamp = hg++; -}, BL = (t, e, n) => { - if (t.length >= s_) { +const BL = (t) => { + t.timestamp = um++; +}, l_ = (t, e, n) => { + t.p.marker = !1, t.p = e, e.marker = !0, t.index = n, t.timestamp = um++; +}, YL = (t, e, n) => { + if (t.length >= o_) { const r = t.reduce((i, s) => i.timestamp < s.timestamp ? i : s); - return o_(r, e, n), r; + return l_(r, e, n), r; } else { - const r = new NL(e, n); + const r = new qL(e, n); return t.push(r), r; } -}, eu = (t, e) => { +}, tu = (t, e) => { if (t._start === null || e === 0 || t._searchMarker === null) return null; const n = t._searchMarker.length === 0 ? null : t._searchMarker.reduce((s, o) => dc(e - s.index) < dc(e - o.index) ? s : o); let r = t._start, i = 0; - for (n !== null && (r = n.p, i = n.index, qL(n)); r.right !== null && i < e; ) { + for (n !== null && (r = n.p, i = n.index, BL(n)); r.right !== null && i < e; ) { if (!r.deleted && r.countable) { if (e < i + r.length) break; @@ -17795,8 +17795,8 @@ const qL = (t) => { r = r.left, !r.deleted && r.countable && (i -= r.length); for (; r.left !== null && r.left.id.client === r.id.client && r.left.id.clock + r.left.length === r.id.clock; ) r = r.left, !r.deleted && r.countable && (i -= r.length); - return n !== null && dc(n.index - i) < r.parent.length / s_ ? (o_(n, r, i), n) : BL(t._searchMarker, r, i); -}, wl = (t, e, n) => { + return n !== null && dc(n.index - i) < r.parent.length / o_ ? (l_(n, r, i), n) : YL(t._searchMarker, r, i); +}, yl = (t, e, n) => { for (let r = t.length - 1; r >= 0; r--) { const i = t[r]; if (n > 0) { @@ -17811,15 +17811,15 @@ const qL = (t) => { } (e < i.index || n > 0 && e === i.index) && (i.index = Gr(e, i.index + n)); } -}, tu = (t, e, n) => { +}, nu = (t, e, n) => { const r = t, i = e.changedParentTypes; - for (; gr(i, t, () => []).push(n), t._item !== null; ) + for (; mr(i, t, () => []).push(n), t._item !== null; ) t = t._item.parent; - HS(r._eH, n, e); + KS(r._eH, n, e); }; class st { constructor() { - this._item = null, this._map = /* @__PURE__ */ new Map(), this._start = null, this.doc = null, this._length = 0, this._eH = U1(), this._dEH = U1(), this._searchMarker = null; + this._item = null, this._map = /* @__PURE__ */ new Map(), this._start = null, this.doc = null, this._length = 0, this._eH = G1(), this._dEH = G1(), this._searchMarker = null; } get parent() { return this._item ? this._item.parent : null; @@ -17845,21 +17845,21 @@ class st { !e.local && this._searchMarker && (this._searchMarker.length = 0); } observe(e) { - G1(this._eH, e); + H1(this._eH, e); } observeDeep(e) { - G1(this._dEH, e); + H1(this._dEH, e); } unobserve(e) { - H1(this._eH, e); + K1(this._eH, e); } unobserveDeep(e) { - H1(this._dEH, e); + K1(this._dEH, e); } toJSON() { } } -const l_ = (t, e, n) => { +const a_ = (t, e, n) => { e < 0 && (e = t._length + e), n < 0 && (n = t._length + n); let r = n - e; const i = []; @@ -17878,7 +17878,7 @@ const l_ = (t, e, n) => { s = s.right; } return i; -}, a_ = (t) => { +}, c_ = (t) => { const e = []; let n = t._start; for (; n !== null; ) { @@ -17890,7 +17890,7 @@ const l_ = (t, e, n) => { n = n.right; } return e; -}, kl = (t, e) => { +}, wl = (t, e) => { let n = 0, r = t._start; for (; r !== null; ) { if (r.countable && !r.deleted) { @@ -17900,12 +17900,12 @@ const l_ = (t, e, n) => { } r = r.right; } -}, c_ = (t, e) => { +}, h_ = (t, e) => { const n = []; - return kl(t, (r, i) => { + return wl(t, (r, i) => { n.push(e(r, i, t)); }), n; -}, YL = (t) => { +}, XL = (t) => { let e = t._start, n = null, r = 0; return { [Symbol.iterator]() { @@ -17929,8 +17929,8 @@ const l_ = (t, e, n) => { }; } }; -}, h_ = (t, e) => { - const n = eu(t, e); +}, u_ = (t, e) => { + const n = tu(t, e); let r = t._start; for (n !== null && (r = n.p, e -= n.index); r !== null; r = r.right) if (!r.deleted && r.countable) { @@ -17938,7 +17938,7 @@ const l_ = (t, e, n) => { return r.content.getContent()[e]; e -= r.length; } -}, Kc = (t, e, n, r) => { +}, Jc = (t, e, n, r) => { let i = n; const s = t.doc, o = s.clientID, l = s.store, a = n === null ? e._start : n.right; let c = []; @@ -17961,10 +17961,10 @@ const l_ = (t, e, n) => { switch (h(), u.constructor) { case Uint8Array: case ArrayBuffer: - i = new we(J(o, Le(l, o)), i, i && i.lastId, a, a && a.id, e, null, new Fl(new Uint8Array(u))), i.integrate(t, 0); + i = new we(J(o, Le(l, o)), i, i && i.lastId, a, a && a.id, e, null, new zl(new Uint8Array(u))), i.integrate(t, 0); break; case Ks: - i = new we(J(o, Le(l, o)), i, i && i.lastId, a, a && a.id, e, null, new Ul(u)), i.integrate(t, 0); + i = new we(J(o, Le(l, o)), i, i && i.lastId, a, a && a.id, e, null, new Fl(u)), i.integrate(t, 0); break; default: if (u instanceof st) @@ -17974,12 +17974,12 @@ const l_ = (t, e, n) => { } } }), h(); -}, u_ = () => Vr("Length exceeded!"), f_ = (t, e, n, r) => { +}, f_ = () => Vr("Length exceeded!"), d_ = (t, e, n, r) => { if (n > e._length) - throw u_(); + throw f_(); if (n === 0) - return e._searchMarker && wl(e._searchMarker, n, r.length), Kc(t, e, null, r); - const i = n, s = eu(e, n); + return e._searchMarker && yl(e._searchMarker, n, r.length), Jc(t, e, null, r); + const i = n, s = tu(e, n); let o = e._start; for (s !== null && (o = s.p, n -= s.index, n === 0 && (o = o.prev, n += o && o.countable && !o.deleted ? o.length : 0)); o !== null; o = o.right) if (!o.deleted && o.countable) { @@ -17989,29 +17989,29 @@ const l_ = (t, e, n) => { } n -= o.length; } - return e._searchMarker && wl(e._searchMarker, i, r.length), Kc(t, e, o, r); -}, XL = (t, e, n) => { + return e._searchMarker && yl(e._searchMarker, i, r.length), Jc(t, e, o, r); +}, WL = (t, e, n) => { let i = (e._searchMarker || []).reduce((s, o) => o.index > s.index ? o : s, { index: 0, p: e._start }).p; if (i) for (; i.right; ) i = i.right; - return Kc(t, e, i, n); -}, d_ = (t, e, n, r) => { + return Jc(t, e, i, n); +}, p_ = (t, e, n, r) => { if (r === 0) return; - const i = n, s = r, o = eu(e, n); + const i = n, s = r, o = tu(e, n); let l = e._start; for (o !== null && (l = o.p, n -= o.index); l !== null && n > 0; l = l.right) !l.deleted && l.countable && (n < l.length && _t(t, J(l.id.client, l.id.clock + n)), n -= l.length); for (; r > 0 && l !== null; ) l.deleted || (r < l.length && _t(t, J(l.id.client, l.id.clock + r)), l.delete(t), r -= l.length), l = l.right; if (r > 0) - throw u_(); - e._searchMarker && wl(e._searchMarker, i, -s + r); -}, Jc = (t, e, n) => { + throw f_(); + e._searchMarker && yl(e._searchMarker, i, -s + r); +}, eh = (t, e, n) => { const r = e._map.get(n); r !== void 0 && r.delete(t); -}, ug = (t, e, n, r) => { +}, fm = (t, e, n, r) => { const i = e._map.get(n) || null, s = t.doc, o = s.clientID; let l; if (r == null) @@ -18026,10 +18026,10 @@ const l_ = (t, e, n) => { l = new Ti([r]); break; case Uint8Array: - l = new Fl(r); + l = new zl(r); break; case Ks: - l = new Ul(r); + l = new Fl(r); break; default: if (r instanceof st) @@ -18038,10 +18038,10 @@ const l_ = (t, e, n) => { throw new Error("Unexpected content type"); } new we(J(o, Le(s.store, o)), i, i && i.lastId, null, null, e, n, l).integrate(t, 0); -}, fg = (t, e) => { +}, dm = (t, e) => { const n = t._map.get(e); return n !== void 0 && !n.deleted ? n.content.getContent()[n.length - 1] : void 0; -}, p_ = (t) => { +}, g_ = (t) => { const e = {}; return t._map.forEach((n, r) => { n.deleted || (e[r] = n.content.getContent()[n.length - 1]); @@ -18049,7 +18049,7 @@ const l_ = (t, e, n) => { }, m_ = (t, e) => { const n = t._map.get(e); return n !== void 0 && !n.deleted; -}, WL = (t, e) => { +}, VL = (t, e) => { const n = {}; return t._map.forEach((r, i) => { let s = r; @@ -18057,8 +18057,8 @@ const l_ = (t, e, n) => { s = s.left; s !== null && Ui(s, e) && (n[i] = s.content.getContent()[s.length - 1]); }), n; -}, Ra = (t) => iL(t.entries(), (e) => !e[1].deleted); -class VL extends Jh { +}, Ra = (t) => sL(t.entries(), (e) => !e[1].deleted); +class jL extends eu { constructor(e, n) { super(e, n), this._transaction = n; } @@ -18087,16 +18087,16 @@ class hs extends st { return this._prelimContent === null ? this._length : this._prelimContent.length; } _callObserver(e, n) { - super._callObserver(e, n), tu(this, e, new VL(this, e)); + super._callObserver(e, n), nu(this, e, new jL(this, e)); } insert(e, n) { this.doc !== null ? ye(this.doc, (r) => { - f_(r, this, e, n); + d_(r, this, e, n); }) : this._prelimContent.splice(e, 0, ...n); } push(e) { this.doc !== null ? ye(this.doc, (n) => { - XL(n, this, e); + WL(n, this, e); }) : this._prelimContent.push(...e); } unshift(e) { @@ -18104,36 +18104,36 @@ class hs extends st { } delete(e, n = 1) { this.doc !== null ? ye(this.doc, (r) => { - d_(r, this, e, n); + p_(r, this, e, n); }) : this._prelimContent.splice(e, n); } get(e) { - return h_(this, e); + return u_(this, e); } toArray() { - return a_(this); + return c_(this); } slice(e = 0, n = this.length) { - return l_(this, e, n); + return a_(this, e, n); } toJSON() { return this.map((e) => e instanceof st ? e.toJSON() : e); } map(e) { - return c_(this, e); + return h_(this, e); } forEach(e) { - kl(this, e); + wl(this, e); } [Symbol.iterator]() { - return YL(this); + return XL(this); } _write(e) { e.writeTypeRef(mI); } } -const jL = (t) => new hs(); -class zL extends Jh { +const zL = (t) => new hs(); +class FL extends eu { constructor(e, n, r) { super(e, n), this.keysChanged = r; } @@ -18157,7 +18157,7 @@ class ar extends st { }), e; } _callObserver(e, n) { - tu(this, e, new zL(this, e, n)); + nu(this, e, new FL(this, e, n)); } toJSON() { const e = {}; @@ -18190,16 +18190,16 @@ class ar extends st { } delete(e) { this.doc !== null ? ye(this.doc, (n) => { - Jc(n, this, e); + eh(n, this, e); }) : this._prelimContent.delete(e); } set(e, n) { return this.doc !== null ? ye(this.doc, (r) => { - ug(r, this, e, n); + fm(r, this, e, n); }) : this._prelimContent.set(e, n), n; } get(e) { - return fg(this, e); + return dm(this, e); } has(e) { return m_(this, e); @@ -18207,21 +18207,21 @@ class ar extends st { clear() { this.doc !== null ? ye(this.doc, (e) => { this.forEach(function(n, r, i) { - Jc(e, i, r); + eh(e, i, r); }); }) : this._prelimContent.clear(); } _write(e) { - e.writeTypeRef(gI); + e.writeTypeRef(OI); } } -const FL = (t) => new ar(), Qr = (t, e) => t === e || typeof t == "object" && typeof e == "object" && t && e && v5(t, e); -class xp { +const UL = (t) => new ar(), Qr = (t, e) => t === e || typeof t == "object" && typeof e == "object" && t && e && SZ(t, e); +class vp { constructor(e, n, r, i) { this.left = e, this.right = n, this.index = r, this.currentAttributes = i; } forward() { - switch (this.right === null && gn(), this.right.content.constructor) { + switch (this.right === null && mn(), this.right.content.constructor) { case je: this.right.deleted || Js(this.currentAttributes, this.right.content); break; @@ -18232,7 +18232,7 @@ class xp { this.left = this.right, this.right = this.right.right; } } -const ob = (t, e, n) => { +const lb = (t, e, n) => { for (; e.right !== null && n > 0; ) { switch (e.right.content.constructor) { case je: @@ -18246,15 +18246,15 @@ const ob = (t, e, n) => { } return e; }, Ma = (t, e, n) => { - const r = /* @__PURE__ */ new Map(), i = eu(e, n); + const r = /* @__PURE__ */ new Map(), i = tu(e, n); if (i) { - const s = new xp(i.p.left, i.p, i.index, r); - return ob(t, s, n - i.index); + const s = new vp(i.p.left, i.p, i.index, r); + return lb(t, s, n - i.index); } else { - const s = new xp(null, e._start, 0, r); - return ob(t, s, n); + const s = new vp(null, e._start, 0, r); + return lb(t, s, n); } -}, g_ = (t, e, n, r) => { +}, O_ = (t, e, n, r) => { for (; n.right !== null && (n.right.deleted === !0 || n.right.content.constructor === je && Qr(r.get(n.right.content.key), n.right.content.value)); ) n.right.deleted || r.delete(n.right.content.key), n.forward(); const i = t.doc, s = i.clientID; @@ -18265,13 +18265,13 @@ const ob = (t, e, n) => { }, Js = (t, e) => { const { key: n, value: r } = e; r === null ? t.delete(n) : t.set(n, r); -}, O_ = (t, e) => { +}, b_ = (t, e) => { for (; t.right !== null; ) { if (!(t.right.deleted || t.right.content.constructor === je && Qr(e[t.right.content.key] || null, t.right.content.value))) break; t.forward(); } -}, b_ = (t, e, n, r) => { +}, y_ = (t, e, n, r) => { const i = t.doc, s = i.clientID, o = /* @__PURE__ */ new Map(); for (const l in r) { const a = r[l], c = n.currentAttributes.get(l) || null; @@ -18287,14 +18287,14 @@ const ob = (t, e, n) => { i[d] === void 0 && (i[d] = null); }); const s = t.doc, o = s.clientID; - O_(n, i); - const l = b_(t, e, n, i), a = r.constructor === String ? new Vn(r) : r instanceof st ? new Un(r) : new Ri(r); + b_(n, i); + const l = y_(t, e, n, i), a = r.constructor === String ? new Vn(r) : r instanceof st ? new Un(r) : new Ri(r); let { left: c, right: h, index: u } = n; - e._searchMarker && wl(e._searchMarker, n.index, a.getLength()), h = new we(J(o, Le(s.store, o)), c, c && c.lastId, h, h && h.id, e, null, a), h.integrate(t, 0), n.right = h, n.index = u, n.forward(), g_(t, e, n, l); -}, lb = (t, e, n, r, i) => { + e._searchMarker && yl(e._searchMarker, n.index, a.getLength()), h = new we(J(o, Le(s.store, o)), c, c && c.lastId, h, h && h.id, e, null, a), h.integrate(t, 0), n.right = h, n.index = u, n.forward(), O_(t, e, n, l); +}, ab = (t, e, n, r, i) => { const s = t.doc, o = s.clientID; - O_(n, i); - const l = b_(t, e, n, i); + b_(n, i); + const l = y_(t, e, n, i); e: for (; n.right !== null && (r > 0 || l.size > 0 && (n.right.deleted || n.right.content.constructor === je)); ) { if (!n.right.deleted) @@ -18327,8 +18327,8 @@ const ob = (t, e, n) => { `; n.right = new we(J(o, Le(s.store, o)), n.left, n.left && n.left.lastId, n.right, n.right && n.right.id, e, null, new Vn(a)), n.right.integrate(t, 0), n.forward(); } - g_(t, e, n, l); -}, y_ = (t, e, n, r, i) => { + O_(t, e, n, l); +}, w_ = (t, e, n, r, i) => { let s = e; const o = un(); for (; s && (!s.countable || s.deleted); ) { @@ -18353,7 +18353,7 @@ const ob = (t, e, n) => { e = e.right; } return l; -}, UL = (t, e) => { +}, GL = (t, e) => { for (; e && e.right && (e.right.deleted || !e.right.countable); ) e = e.right; const n = /* @__PURE__ */ new Set(); @@ -18364,11 +18364,11 @@ const ob = (t, e, n) => { } e = e.left; } -}, GL = (t) => { +}, HL = (t) => { let e = 0; return ye(t.doc, (n) => { let r = t._start, i = t._start, s = un(); - const o = hp(s); + const o = up(s); for (; i; ) { if (i.deleted === !1) switch (i.content.constructor) { @@ -18376,17 +18376,17 @@ const ob = (t, e, n) => { Js(o, i.content); break; default: - e += y_(n, r, i, s, o), s = hp(o), r = i; + e += w_(n, r, i, s, o), s = up(o), r = i; break; } i = i.right; } }), e; -}, HL = (t) => { +}, KL = (t) => { const e = /* @__PURE__ */ new Set(), n = t.doc; for (const [r, i] of t.afterState.entries()) { const s = t.beforeState.get(r) || 0; - i !== s && n_(t, n.store.clients.get(r), s, i, (o) => { + i !== s && r_(t, n.store.clients.get(r), s, i, (o) => { !o.deleted && o.content.constructor === je && o.constructor !== Xt && e.add(o.parent); }); } @@ -18395,13 +18395,13 @@ const ob = (t, e, n) => { if (i instanceof Xt || !i.parent._hasFormatting || e.has(i.parent)) return; const s = i.parent; - i.content.constructor === je ? e.add(s) : UL(r, i); + i.content.constructor === je ? e.add(s) : GL(r, i); }); for (const i of e) - GL(i); + HL(i); }); -}, ab = (t, e, n) => { - const r = n, i = hp(e.currentAttributes), s = e.right; +}, cb = (t, e, n) => { + const r = n, i = up(e.currentAttributes), s = e.right; for (; n > 0 && e.right !== null; ) { if (e.right.deleted === !1) switch (e.right.content.constructor) { @@ -18413,11 +18413,11 @@ const ob = (t, e, n) => { } e.forward(); } - s && y_(t, s, e.right, i, e.currentAttributes); + s && w_(t, s, e.right, i, e.currentAttributes); const o = (e.left || e.right).parent; - return o._searchMarker && wl(o._searchMarker, e.index, -r + n), e; + return o._searchMarker && yl(o._searchMarker, e.index, -r + n), e; }; -class KL extends Jh { +class JL extends eu { constructor(e, n, r) { super(e, n), this.childListChanged = !1, this.keysChanged = /* @__PURE__ */ new Set(), r.forEach((i) => { i === null ? this.childListChanged = !0 : this.keysChanged.add(i); @@ -18451,12 +18451,12 @@ class KL extends Jh { u > 0 && (d = { delete: u }), u = 0; break; case "insert": - (typeof c == "object" || c.length > 0) && (d = { insert: c }, i.size > 0 && (d.attributes = {}, i.forEach((p, m) => { - p !== null && (d.attributes[m] = p); + (typeof c == "object" || c.length > 0) && (d = { insert: c }, i.size > 0 && (d.attributes = {}, i.forEach((p, g) => { + p !== null && (d.attributes[g] = p); }))), c = ""; break; case "retain": - h > 0 && (d = { retain: h }, k5(a) || (d.attributes = O5({}, a))), h = 0; + h > 0 && (d = { retain: h }, xZ(a) || (d.attributes = bZ({}, a))), h = 0; break; } d && n.push(d), l = null; @@ -18475,17 +18475,17 @@ class KL extends Jh { const { key: d, value: p } = o.content; if (this.adds(o)) { if (!this.deletes(o)) { - const m = i.get(d) || null; - Qr(m, p) ? p !== null && o.delete(r) : (l === "retain" && f(), Qr(p, s.get(d) || null) ? delete a[d] : a[d] = p); + const g = i.get(d) || null; + Qr(g, p) ? p !== null && o.delete(r) : (l === "retain" && f(), Qr(p, s.get(d) || null) ? delete a[d] : a[d] = p); } } else if (this.deletes(o)) { s.set(d, p); - const m = i.get(d) || null; - Qr(m, p) || (l === "retain" && f(), a[d] = m); + const g = i.get(d) || null; + Qr(g, p) || (l === "retain" && f(), a[d] = g); } else if (!o.deleted) { s.set(d, p); - const m = a[d]; - m !== void 0 && (Qr(m, p) ? m !== null && o.delete(r) : (l === "retain" && f(), p === null ? delete a[d] : a[d] = p)); + const g = a[d]; + g !== void 0 && (Qr(g, p) ? g !== null && o.delete(r) : (l === "retain" && f(), p === null ? delete a[d] : a[d] = p)); } o.deleted || (l === "insert" && f(), Js(i, o.content)); break; @@ -18530,8 +18530,8 @@ class Ds extends st { } _callObserver(e, n) { super._callObserver(e, n); - const r = new KL(this, e, n); - tu(this, e, r), !e.local && this._hasFormatting && (e._needFormattingCleanup = !0); + const r = new JL(this, e, n); + nu(this, e, r), !e.local && this._hasFormatting && (e._needFormattingCleanup = !0); } toString() { let e = "", n = this._start; @@ -18544,7 +18544,7 @@ class Ds extends st { } applyDelta(e, { sanitize: n = !0 } = {}) { this.doc !== null ? ye(this.doc, (r) => { - const i = new xp(null, this._start, 0, /* @__PURE__ */ new Map()); + const i = new vp(null, this._start, 0, /* @__PURE__ */ new Map()); for (let s = 0; s < e.length; s++) { const o = e[s]; if (o.insert !== void 0) { @@ -18552,7 +18552,7 @@ class Ds extends st { ` ? o.insert.slice(0, -1) : o.insert; (typeof l != "string" || l.length > 0) && uf(r, this, i, l, o.attributes || {}); } else - o.retain !== void 0 ? lb(r, this, i, o.retain, o.attributes || {}) : o.delete !== void 0 && ab(r, i, o.delete); + o.retain !== void 0 ? ab(r, this, i, o.retain, o.attributes || {}) : o.delete !== void 0 && cb(r, i, o.delete); } }) : this._pending.push(() => this.applyDelta(e)); } @@ -18563,8 +18563,8 @@ class Ds extends st { if (l.length > 0) { const u = {}; let f = !1; - s.forEach((p, m) => { - f = !0, u[m] = p; + s.forEach((p, g) => { + f = !0, u[g] = p; }); const d = { insert: l }; f && (d.attributes = u), i.push(d), l = ""; @@ -18603,7 +18603,7 @@ class Ds extends st { c(); }; return e || n ? ye(o, (u) => { - e && wp(u, e), n && wp(u, n), h(); + e && kp(u, e), n && kp(u, n), h(); }, "cleanup") : h(), i; } insert(e, n, r) { @@ -18629,7 +18629,7 @@ class Ds extends st { return; const r = this.doc; r !== null ? ye(r, (i) => { - ab(i, Ma(i, this, e), n); + cb(i, Ma(i, this, e), n); }) : this._pending.push(() => this.delete(e, n)); } format(e, n, r) { @@ -18638,30 +18638,30 @@ class Ds extends st { const i = this.doc; i !== null ? ye(i, (s) => { const o = Ma(s, this, e); - o.right !== null && lb(s, this, o, n, r); + o.right !== null && ab(s, this, o, n, r); }) : this._pending.push(() => this.format(e, n, r)); } removeAttribute(e) { this.doc !== null ? ye(this.doc, (n) => { - Jc(n, this, e); + eh(n, this, e); }) : this._pending.push(() => this.removeAttribute(e)); } setAttribute(e, n) { this.doc !== null ? ye(this.doc, (r) => { - ug(r, this, e, n); + fm(r, this, e, n); }) : this._pending.push(() => this.setAttribute(e, n)); } getAttribute(e) { - return fg(this, e); + return dm(this, e); } getAttributes() { - return p_(this); + return g_(this); } _write(e) { - e.writeTypeRef(OI); + e.writeTypeRef(bI); } } -const JL = (t) => new Ds(); +const eI = (t) => new Ds(); class ff { constructor(e, n = () => !0) { this._filter = n, this._root = e, this._currentNode = e._start, this._firstCall = !0; @@ -18673,7 +18673,7 @@ class ff { let e = this._currentNode, n = e && e.content && e.content.type; if (e !== null && (!this._firstCall || e.deleted || !this._filter(n))) do - if (n = e.content.type, !e.deleted && (n.constructor === xl || n.constructor === Pi) && n._start !== null) + if (n = e.content.type, !e.deleted && (n.constructor === kl || n.constructor === Pi) && n._start !== null) e = n._start; else for (; e !== null; ) @@ -18719,30 +18719,30 @@ class Pi extends st { return e = e.toUpperCase(), Wr(new ff(this, (n) => n.nodeName && n.nodeName.toUpperCase() === e)); } _callObserver(e, n) { - tu(this, e, new nI(this, n, e)); + nu(this, e, new rI(this, n, e)); } toString() { - return c_(this, (e) => e.toString()).join(""); + return h_(this, (e) => e.toString()).join(""); } toJSON() { return this.toString(); } toDOM(e = document, n = {}, r) { const i = e.createDocumentFragment(); - return r !== void 0 && r._createAssociation(i, this), kl(this, (s) => { + return r !== void 0 && r._createAssociation(i, this), wl(this, (s) => { i.insertBefore(s.toDOM(e, n, r), null); }), i; } insert(e, n) { this.doc !== null ? ye(this.doc, (r) => { - f_(r, this, e, n); + d_(r, this, e, n); }) : this._prelimContent.splice(e, 0, ...n); } insertAfter(e, n) { if (this.doc !== null) ye(this.doc, (r) => { const i = e && e instanceof st ? e._item : e; - Kc(r, this, i, n); + Jc(r, this, i, n); }); else { const r = this._prelimContent, i = e === null ? 0 : r.findIndex((s) => s === e) + 1; @@ -18753,11 +18753,11 @@ class Pi extends st { } delete(e, n = 1) { this.doc !== null ? ye(this.doc, (r) => { - d_(r, this, e, n); + p_(r, this, e, n); }) : this._prelimContent.splice(e, n); } toArray() { - return a_(this); + return c_(this); } push(e) { this.insert(this.length, e); @@ -18766,20 +18766,20 @@ class Pi extends st { this.insert(0, e); } get(e) { - return h_(this, e); + return u_(this, e); } slice(e = 0, n = this.length) { - return l_(this, e, n); + return a_(this, e, n); } forEach(e) { - kl(this, e); + wl(this, e); } _write(e) { - e.writeTypeRef(yI); + e.writeTypeRef(wI); } } -const eI = (t) => new Pi(); -class xl extends Pi { +const tI = (t) => new Pi(); +class kl extends Pi { constructor(e = "UNDEFINED") { super(), this.nodeName = e, this._prelimAttrs = /* @__PURE__ */ new Map(); } @@ -18797,11 +18797,11 @@ class xl extends Pi { }), this._prelimAttrs = null; } _copy() { - return new xl(this.nodeName); + return new kl(this.nodeName); } clone() { - const e = new xl(this.nodeName), n = this.getAttributes(); - return y5(n, (r, i) => { + const e = new kl(this.nodeName), n = this.getAttributes(); + return wZ(n, (r, i) => { typeof r == "string" && e.setAttribute(i, r); }), e.insert(0, this.toArray().map((r) => r instanceof st ? r.clone() : r)), e; } @@ -18820,22 +18820,22 @@ class xl extends Pi { } removeAttribute(e) { this.doc !== null ? ye(this.doc, (n) => { - Jc(n, this, e); + eh(n, this, e); }) : this._prelimAttrs.delete(e); } setAttribute(e, n) { this.doc !== null ? ye(this.doc, (r) => { - ug(r, this, e, n); + fm(r, this, e, n); }) : this._prelimAttrs.set(e, n); } getAttribute(e) { - return fg(this, e); + return dm(this, e); } hasAttribute(e) { return m_(this, e); } getAttributes(e) { - return e ? WL(this, e) : p_(this); + return e ? VL(this, e) : g_(this); } toDOM(e = document, n = {}, r) { const i = e.createElement(this.nodeName), s = this.getAttributes(); @@ -18843,31 +18843,31 @@ class xl extends Pi { const l = s[o]; typeof l == "string" && i.setAttribute(o, l); } - return kl(this, (o) => { + return wl(this, (o) => { i.appendChild(o.toDOM(e, n, r)); }), r !== void 0 && r._createAssociation(i, this), i; } _write(e) { - e.writeTypeRef(bI), e.writeKey(this.nodeName); + e.writeTypeRef(yI), e.writeKey(this.nodeName); } } -const tI = (t) => new xl(t.readKey()); -class nI extends Jh { +const nI = (t) => new kl(t.readKey()); +class rI extends eu { constructor(e, n, r) { super(e, r), this.childListChanged = !1, this.attributesChanged = /* @__PURE__ */ new Set(), n.forEach((i) => { i === null ? this.childListChanged = !0 : this.attributesChanged.add(i); }); } } -class eh extends ar { +class th extends ar { constructor(e) { super(), this.hookName = e; } _copy() { - return new eh(this.hookName); + return new th(this.hookName); } clone() { - const e = new eh(this.hookName); + const e = new th(this.hookName); return this.forEach((n, r) => { e.set(r, n); }), e; @@ -18878,11 +18878,11 @@ class eh extends ar { return i !== void 0 ? s = i.createDom(this) : s = document.createElement(this.hookName), s.setAttribute("data-yjs-hook", this.hookName), r !== void 0 && r._createAssociation(s, this), s; } _write(e) { - e.writeTypeRef(wI), e.writeKey(this.hookName); + e.writeTypeRef(kI), e.writeKey(this.hookName); } } -const rI = (t) => new eh(t.readKey()); -class th extends Ds { +const iI = (t) => new th(t.readKey()); +class nh extends Ds { get nextSibling() { const e = this._item ? this._item.next : null; return e ? e.content.type : null; @@ -18892,10 +18892,10 @@ class th extends Ds { return e ? e.content.type : null; } _copy() { - return new th(); + return new nh(); } clone() { - const e = new th(); + const e = new nh(); return e.applyDelta(this.toDelta()), e; } toDOM(e = document, n, r) { @@ -18932,11 +18932,11 @@ class th extends Ds { return this.toString(); } _write(e) { - e.writeTypeRef(kI); + e.writeTypeRef(xI); } } -const iI = (t) => new th(); -class dg { +const sI = (t) => new nh(); +class pm { constructor(e, n) { this.id = e, this.length = n; } @@ -18953,8 +18953,8 @@ class dg { throw Bn(); } } -const sI = 0; -class Xt extends dg { +const oI = 0; +class Xt extends pm { get deleted() { return !0; } @@ -18964,16 +18964,16 @@ class Xt extends dg { return this.constructor !== e.constructor ? !1 : (this.length += e.length, !0); } integrate(e, n) { - n > 0 && (this.id.clock += n, this.length -= n), t_(e.doc.store, this); + n > 0 && (this.id.clock += n, this.length -= n), n_(e.doc.store, this); } write(e, n) { - e.writeInfo(sI), e.writeLen(this.length - n); + e.writeInfo(oI), e.writeLen(this.length - n); } getMissing(e, n) { return null; } } -class Fl { +class zl { constructor(e) { this.content = e; } @@ -18987,7 +18987,7 @@ class Fl { return !0; } copy() { - return new Fl(this.content); + return new zl(this.content); } splice(e) { throw Bn(); @@ -19008,8 +19008,8 @@ class Fl { return 3; } } -const oI = (t) => new Fl(t.readBuf()); -class vl { +const lI = (t) => new zl(t.readBuf()); +class xl { constructor(e) { this.len = e; } @@ -19023,17 +19023,17 @@ class vl { return !1; } copy() { - return new vl(this.len); + return new xl(this.len); } splice(e) { - const n = new vl(this.len - e); + const n = new xl(this.len - e); return this.len = e, n; } mergeWith(e) { return this.len += e.len, !0; } integrate(e, n) { - bl(e.deleteSet, n.id.client, n.id.clock, this.len), n.markDeleted(); + Ol(e.deleteSet, n.id.client, n.id.clock, this.len), n.markDeleted(); } delete(e) { } @@ -19046,8 +19046,8 @@ class vl { return 1; } } -const lI = (t) => new vl(t.readLen()), w_ = (t, e) => new Ks({ guid: t, ...e, shouldLoad: e.shouldLoad || e.autoLoad || !1 }); -class Ul { +const aI = (t) => new xl(t.readLen()), k_ = (t, e) => new Ks({ guid: t, ...e, shouldLoad: e.shouldLoad || e.autoLoad || !1 }); +class Fl { 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; const n = {}; @@ -19063,7 +19063,7 @@ class Ul { return !0; } copy() { - return new Ul(w_(this.doc.guid, this.opts)); + return new Fl(k_(this.doc.guid, this.opts)); } splice(e) { throw Bn(); @@ -19086,7 +19086,7 @@ class Ul { return 9; } } -const aI = (t) => new Ul(w_(t.readString(), t.readAny())); +const cI = (t) => new Fl(k_(t.readString(), t.readAny())); class Ri { constructor(e) { this.embed = e; @@ -19122,7 +19122,7 @@ class Ri { return 5; } } -const cI = (t) => new Ri(t.readJSON()); +const hI = (t) => new Ri(t.readJSON()); class je { constructor(e, n) { this.key = e, this.value = n; @@ -19160,8 +19160,8 @@ class je { return 6; } } -const hI = (t) => new je(t.readKey(), t.readJSON()); -class nh { +const uI = (t) => new je(t.readKey(), t.readJSON()); +class rh { constructor(e) { this.arr = e; } @@ -19175,10 +19175,10 @@ class nh { return !0; } copy() { - return new nh(this.arr); + return new rh(this.arr); } splice(e) { - const n = new nh(this.arr.slice(e)); + const n = new rh(this.arr.slice(e)); return this.arr = this.arr.slice(0, e), n; } mergeWith(e) { @@ -19202,13 +19202,13 @@ class nh { return 2; } } -const uI = (t) => { +const fI = (t) => { const e = t.readLen(), n = []; for (let r = 0; r < e; r++) { const i = t.readString(); i === "undefined" ? n.push(void 0) : n.push(JSON.parse(i)); } - return new nh(n); + return new rh(n); }; class Ti { constructor(e) { @@ -19251,7 +19251,7 @@ class Ti { return 8; } } -const fI = (t) => { +const dI = (t) => { const e = t.readLen(), n = []; for (let r = 0; r < e; r++) n.push(t.readAny()); @@ -19295,15 +19295,15 @@ class Vn { return 4; } } -const dI = (t) => new Vn(t.readString()), pI = [ - jL, - FL, - JL, - tI, +const pI = (t) => new Vn(t.readString()), gI = [ + zL, + UL, eI, - rI, - iI -], mI = 0, gI = 1, OI = 2, bI = 3, yI = 4, wI = 5, kI = 6; + nI, + tI, + iI, + sI +], mI = 0, OI = 1, bI = 2, yI = 3, wI = 4, kI = 5, xI = 6; class Un { constructor(e) { this.type = e; @@ -19353,19 +19353,19 @@ class Un { return 7; } } -const xI = (t) => new Un(pI[t.readTypeRef()](t)), vp = (t, e) => { +const vI = (t) => new Un(gI[t.readTypeRef()](t)), Sp = (t, e) => { let n = e, r = 0, i; do - r > 0 && (n = J(n.client, n.clock + r)), i = gc(t, n), r = n.clock - i.id.clock, n = i.redone; + r > 0 && (n = J(n.client, n.clock + r)), i = mc(t, n), r = n.clock - i.id.clock, n = i.redone; while (n !== null && i instanceof we); return { item: i, diff: r }; -}, pg = (t, e) => { +}, gm = (t, e) => { for (; t !== null && t.keep !== e; ) t.keep = e, t = t.parent._item; -}, rh = (t, e, n) => { +}, ih = (t, e, n) => { const { client: r, clock: i } = e.id, s = new we( J(r, i + n), e, @@ -19377,13 +19377,13 @@ const xI = (t) => new Un(pI[t.readTypeRef()](t)), vp = (t, e) => { e.content.splice(n) ); return e.deleted && s.markDeleted(), e.keep && (s.keep = !0), e.redone !== null && (s.redone = J(e.redone.client, e.redone.clock + n)), 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 = n, s; -}, cb = (t, e) => MZ(t, (n) => jl(n.deletions, e)), k_ = (t, e, n, r, i, s) => { +}, hb = (t, e) => Z5(t, (n) => Vl(n.deletions, e)), x_ = (t, e, n, r, i, s) => { const o = t.doc, l = o.store, a = o.clientID, c = e.redone; if (c !== null) return _t(t, c); let h = e.parent._item, u = null, f; if (h !== null && h.deleted === !0) { - if (h.redone === null && (!n.has(h) || k_(t, h, n, r, i, s) === null)) + if (h.redone === null && (!n.has(h) || x_(t, h, n, r, i, s) === null)) return null; for (; h.redone !== null; ) h = _t(t, h.redone); @@ -19411,15 +19411,15 @@ const xI = (t) => new Un(pI[t.readTypeRef()](t)), vp = (t, e) => { f = f.right; } } else if (f = null, e.right && !i) { - for (u = e; u !== null && u.right !== null && (u.right.redone || jl(r, u.right.id) || cb(s.undoStack, u.right.id) || cb(s.redoStack, u.right.id)); ) + for (u = e; u !== null && u.right !== null && (u.right.redone || Vl(r, u.right.id) || hb(s.undoStack, u.right.id) || hb(s.redoStack, u.right.id)); ) for (u = u.right; u.redone; ) u = _t(t, u.redone); if (u && u.right !== null) return null; } else u = d._map.get(e.parentSub) || null; - const p = Le(l, a), m = J(a, p), g = new we( - m, + const p = Le(l, a), g = J(a, p), m = new we( + g, u, u && u.lastId, f, @@ -19428,11 +19428,11 @@ const xI = (t) => new Un(pI[t.readTypeRef()](t)), vp = (t, e) => { e.parentSub, e.content.copy() ); - return e.redone = m, pg(g, !0), g.integrate(t, 0), g; + return e.redone = g, gm(m, !0), m.integrate(t, 0), m; }; -class we extends dg { +class we extends pm { constructor(e, n, r, i, s, o, l, a) { - super(e, a.getLength()), this.origin = r, this.left = n, this.right = i, this.rightOrigin = s, this.parent = o, this.parentSub = l, this.redone = null, this.content = a, this.info = this.content.isCountable() ? I1 : 0; + super(e, a.getLength()), this.origin = r, this.left = n, this.right = i, this.rightOrigin = s, this.parent = o, this.parentSub = l, this.redone = null, this.content = a, this.info = this.content.isCountable() ? N1 : 0; } set marker(e) { (this.info & of) > 0 !== e && (this.info ^= of); @@ -19441,13 +19441,13 @@ class we extends dg { return (this.info & of) > 0; } get keep() { - return (this.info & L1) > 0; + return (this.info & I1) > 0; } set keep(e) { - this.keep !== e && (this.info ^= L1); + this.keep !== e && (this.info ^= I1); } get countable() { - return (this.info & I1) > 0; + return (this.info & N1) > 0; } get deleted() { return (this.info & sf) > 0; @@ -19465,18 +19465,18 @@ class we extends dg { return this.rightOrigin.client; if (this.parent && this.parent.constructor === cs && this.id.client !== this.parent.client && this.parent.clock >= Le(n, this.parent.client)) return this.parent.client; - if (this.origin && (this.left = eb(e, n, this.origin), this.origin = this.left.lastId), this.rightOrigin && (this.right = _t(e, this.rightOrigin), this.rightOrigin = this.right.id), this.left && this.left.constructor === Xt || this.right && this.right.constructor === Xt) + if (this.origin && (this.left = tb(e, n, this.origin), this.origin = this.left.lastId), this.rightOrigin && (this.right = _t(e, this.rightOrigin), this.rightOrigin = this.right.id), this.left && this.left.constructor === Xt || this.right && this.right.constructor === Xt) this.parent = null; else if (!this.parent) this.left && this.left.constructor === we && (this.parent = this.left.parent, this.parentSub = this.left.parentSub), this.right && this.right.constructor === we && (this.parent = this.right.parent, this.parentSub = this.right.parentSub); else if (this.parent.constructor === cs) { - const r = gc(n, this.parent); + const r = mc(n, this.parent); r.constructor === Xt ? this.parent = null : this.parent = r.content.type; } return null; } integrate(e, n) { - if (n > 0 && (this.id.clock += n, this.left = eb(e, e.doc.store, J(this.id.client, this.id.clock - 1)), this.origin = this.left.lastId, this.content = this.content.splice(n), this.length -= n), this.parent) { + if (n > 0 && (this.id.clock += n, this.left = tb(e, e.doc.store, J(this.id.client, this.id.clock - 1)), this.origin = this.left.lastId, this.content = this.content.splice(n), this.length -= n), this.parent) { if (!this.left && (!this.right || this.right.left !== null) || this.left && this.left.right !== this.right) { let r = this.left, i; if (r !== null) @@ -19493,8 +19493,8 @@ class we extends dg { r = i, s.clear(); else if (es(this.rightOrigin, i.rightOrigin)) break; - } else if (i.origin !== null && o.has(gc(e.doc.store, i.origin))) - s.has(gc(e.doc.store, i.origin)) || (r = i, s.clear()); + } else if (i.origin !== null && o.has(mc(e.doc.store, i.origin))) + s.has(mc(e.doc.store, i.origin)) || (r = i, s.clear()); else break; i = i.right; @@ -19513,7 +19513,7 @@ class we extends dg { r = this.parent._start, this.parent._start = this; this.right = r; } - 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), t_(e.doc.store, this), this.content.integrate(e, this), nb(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), n_(e.doc.store, this), this.content.integrate(e, this), rb(e, this.parent, this.parentSub), (this.parent._item !== null && this.parent._item.deleted || this.parentSub !== null && this.right !== null) && this.delete(e); } else new Xt(this.id, this.length).integrate(e, 0); } @@ -19544,50 +19544,50 @@ class we extends dg { delete(e) { if (!this.deleted) { const n = this.parent; - this.countable && this.parentSub === null && (n._length -= this.length), this.markDeleted(), bl(e.deleteSet, this.id.client, this.id.clock, this.length), nb(e, n, this.parentSub), this.content.delete(e); + this.countable && this.parentSub === null && (n._length -= this.length), this.markDeleted(), Ol(e.deleteSet, this.id.client, this.id.clock, this.length), rb(e, n, this.parentSub), this.content.delete(e); } } gc(e, n) { if (!this.deleted) - throw gn(); - this.content.gc(e), n ? AL(e, this, new Xt(this.id, this.length)) : this.content = new vl(this.length); + throw mn(); + this.content.gc(e), n ? $L(e, this, new Xt(this.id, this.length)) : this.content = new xl(this.length); } write(e, n) { - const r = n > 0 ? J(this.id.client, this.id.clock + n - 1) : this.origin, i = this.rightOrigin, s = this.parentSub, o = this.content.getRef() & Uh | (r === null ? 0 : Nt) | (i === null ? 0 : lr) | (s === null ? 0 : pl); + const r = n > 0 ? J(this.id.client, this.id.clock + n - 1) : this.origin, i = this.rightOrigin, s = this.parentSub, o = this.content.getRef() & Gh | (r === null ? 0 : Nt) | (i === null ? 0 : lr) | (s === null ? 0 : dl); if (e.writeInfo(o), r !== null && e.writeLeftID(r), i !== null && e.writeRightID(i), r === null && i === null) { const l = this.parent; if (l._item !== void 0) { const a = l._item; if (a === null) { - const c = KS(l); + const c = JS(l); e.writeParentInfo(!0), e.writeString(c); } else e.writeParentInfo(!1), e.writeLeftID(a.id); } else - l.constructor === String ? (e.writeParentInfo(!0), e.writeString(l)) : l.constructor === cs ? (e.writeParentInfo(!1), e.writeLeftID(l)) : gn(); + l.constructor === String ? (e.writeParentInfo(!0), e.writeString(l)) : l.constructor === cs ? (e.writeParentInfo(!1), e.writeLeftID(l)) : mn(); s !== null && e.writeString(s); } this.content.write(e, n); } } -const x_ = (t, e) => vI[e & Uh](t), vI = [ +const v_ = (t, e) => SI[e & Gh](t), SI = [ () => { - gn(); + mn(); }, + aI, + fI, lI, + pI, + hI, uI, - oI, + vI, dI, cI, - hI, - xI, - fI, - aI, () => { - gn(); + mn(); } -], SI = 10; -class Wt extends dg { +], _I = 10; +class Wt extends pm { get deleted() { return !0; } @@ -19597,20 +19597,20 @@ class Wt extends dg { return this.constructor !== e.constructor ? !1 : (this.length += e.length, !0); } integrate(e, n) { - gn(); + mn(); } write(e, n) { - e.writeInfo(SI), V(e.restEncoder, this.length - n); + e.writeInfo(_I), V(e.restEncoder, this.length - n); } getMissing(e, n) { return null; } } -const v_ = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : {}, S_ = "__ $YJS$ __"; -v_[S_] === !0 && console.error("Yjs was already imported. This breaks constructor checks and will lead to issues! - https://github.com/yjs/yjs/issues/438"); -v_[S_] = !0; +const S_ = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : {}, __ = "__ $YJS$ __"; +S_[__] === !0 && console.error("Yjs was already imported. This breaks constructor checks and will lead to issues! - https://github.com/yjs/yjs/issues/438"); +S_[__] = !0; const df = 3e4; -class __ extends zh { +class C_ extends Fh { constructor(e) { super(), this.doc = e, this.clientID = e.clientID, this.states = /* @__PURE__ */ new Map(), this.meta = /* @__PURE__ */ new Map(), this._checkInterval = setInterval(() => { const n = jr(); @@ -19618,7 +19618,7 @@ class __ extends zh { const r = []; this.meta.forEach((i, s) => { s !== this.clientID && df <= n - i.lastUpdated && this.states.has(s) && r.push(s); - }), r.length > 0 && mg(this, r, "timeout"); + }), r.length > 0 && mm(this, r, "timeout"); }, pr(df / 10)), e.on("destroy", () => { this.destroy(); }), this.setLocalState({}); @@ -19649,7 +19649,7 @@ class __ extends zh { return this.states; } } -const mg = (t, e, n) => { +const mm = (t, e, n) => { const r = []; for (let i = 0; i < e.length; i++) { const s = e[i]; @@ -19673,16 +19673,16 @@ const mg = (t, e, n) => { V(i, o), V(i, a), yi(i, JSON.stringify(l)); } return Te(i); -}, _I = (t, e, n) => { +}, CI = (t, e, n) => { const r = Hr(e), i = jr(), s = [], o = [], l = [], a = [], c = G(r); for (let h = 0; h < c; h++) { const u = G(r); let f = G(r); - const d = JSON.parse(Zr(r)), p = t.meta.get(u), m = t.states.get(u), g = p === void 0 ? 0 : p.clock; - (g < f || g === f && d === null && t.states.has(u)) && (d === null ? u === t.clientID && t.getLocalState() != null ? f++ : t.states.delete(u) : t.states.set(u, d), t.meta.set(u, { + const d = JSON.parse(Zr(r)), p = t.meta.get(u), g = t.states.get(u), m = p === void 0 ? 0 : p.clock; + (m < f || m === f && d === null && t.states.has(u)) && (d === null ? u === t.clientID && t.getLocalState() != null ? f++ : t.states.delete(u) : t.states.set(u, d), t.meta.set(u, { clock: f, lastUpdated: i - }), p === void 0 && d !== null ? s.push(u) : p !== void 0 && d === null ? a.push(u) : d !== null && (No(d, m) || l.push(u), o.push(u))); + }), p === void 0 && d !== null ? s.push(u) : p !== void 0 && d === null ? a.push(u) : d !== null && (No(d, g) || l.push(u), o.push(u))); } (s.length > 0 || l.length > 0 || a.length > 0) && t.emit("change", [{ added: s, @@ -19693,77 +19693,77 @@ const mg = (t, e, n) => { updated: o, removed: a }, n]); -}, C_ = /* @__PURE__ */ new Map(); -class CI { +}, A_ = /* @__PURE__ */ new Map(); +class AI { constructor(e) { - this.room = e, this.onmessage = null, this._onChange = (n) => n.key === e && this.onmessage !== null && this.onmessage({ data: L5(n.newValue || "") }), m5(this._onChange); + this.room = e, this.onmessage = null, this._onChange = (n) => n.key === e && this.onmessage !== null && this.onmessage({ data: IZ(n.newValue || "") }), mZ(this._onChange); } postMessage(e) { - QS.setItem(this.room, Z5(Q5(e))); + ES.setItem(this.room, LZ(EZ(e))); } close() { - g5(this._onChange); + OZ(this._onChange); } } -const AI = typeof BroadcastChannel > "u" ? CI : BroadcastChannel, gg = (t) => gr(C_, t, () => { - const e = Ai(), n = new AI(t); +const $I = typeof BroadcastChannel > "u" ? AI : BroadcastChannel, Om = (t) => mr(A_, t, () => { + const e = Ai(), n = new $I(t); return n.onmessage = (r) => e.forEach((i) => i(r.data, "broadcastchannel")), { bc: n, subs: e }; -}), $I = (t, e) => (gg(t).subs.add(e), e), PI = (t, e) => { - const n = gg(t), r = n.subs.delete(e); - return r && n.subs.size === 0 && (n.bc.close(), C_.delete(t)), r; +}), PI = (t, e) => (Om(t).subs.add(e), e), TI = (t, e) => { + const n = Om(t), r = n.subs.delete(e); + return r && n.subs.size === 0 && (n.bc.close(), A_.delete(t)), r; }, Gi = (t, e, n = null) => { - const r = gg(t); + const r = Om(t); r.bc.postMessage(e), r.subs.forEach((i) => i(e, n)); -}, A_ = 0, Og = 1, $_ = 2, Sp = (t, e) => { - V(t, A_); - const n = wL(e); +}, $_ = 0, bm = 1, P_ = 2, _p = (t, e) => { + V(t, $_); + const n = kL(e); De(t, n); -}, P_ = (t, e, n) => { - V(t, Og), De(t, gL(e, n)); -}, TI = (t, e, n) => P_(e, n, at(t)), T_ = (t, e, n) => { +}, T_ = (t, e, n) => { + V(t, bm), De(t, OL(e, n)); +}, QI = (t, e, n) => T_(e, n, at(t)), Q_ = (t, e, n) => { try { - dL(e, at(t), n); + pL(e, at(t), n); } catch (r) { console.error("Caught error while handling a Yjs update", r); } -}, QI = (t, e) => { - V(t, $_), De(t, e); -}, EI = T_, DI = (t, e, n, r) => { +}, EI = (t, e) => { + V(t, P_), De(t, e); +}, DI = Q_, RI = (t, e, n, r) => { const i = G(t); switch (i) { - case A_: - TI(t, e, n); + case $_: + QI(t, e, n); break; - case Og: - T_(t, n, r); + case bm: + Q_(t, n, r); break; - case $_: - EI(t, n, r); + case P_: + DI(t, n, r); break; default: throw new Error("Unknown message type"); } return i; -}, RI = 0, MI = (t, e, n) => { +}, MI = 0, ZI = (t, e, n) => { switch (G(t)) { - case RI: + case MI: n(e, Zr(t)); } -}, ZI = (t) => w5(t, (e, n) => `${encodeURIComponent(n)}=${encodeURIComponent(e)}`).join("&"), pi = 0, Q_ = 3, us = 1, LI = 2, Gl = []; -Gl[pi] = (t, e, n, r, i) => { +}, LI = (t) => kZ(t, (e, n) => `${encodeURIComponent(n)}=${encodeURIComponent(e)}`).join("&"), pi = 0, E_ = 3, us = 1, II = 2, Ul = []; +Ul[pi] = (t, e, n, r, i) => { V(t, pi); - const s = DI( + const s = RI( e, t, n.doc, n ); - r && s === Og && !n.synced && (n.synced = !0); + r && s === bm && !n.synced && (n.synced = !0); }; -Gl[Q_] = (t, e, n, r, i) => { +Ul[E_] = (t, e, n, r, i) => { V(t, us), De( t, qo( @@ -19772,35 +19772,35 @@ Gl[Q_] = (t, e, n, r, i) => { ) ); }; -Gl[us] = (t, e, n, r, i) => { - _I( +Ul[us] = (t, e, n, r, i) => { + CI( n.awareness, at(e), n ); }; -Gl[LI] = (t, e, n, r, i) => { - MI( +Ul[II] = (t, e, n, r, i) => { + ZI( e, n.doc, - (s, o) => II(n, o) + (s, o) => NI(n, o) ); }; -const hb = 3e4, II = (t, e) => console.warn(`Permission denied to access ${t.url}. -${e}`), E_ = (t, e, n) => { +const ub = 3e4, NI = (t, e) => console.warn(`Permission denied to access ${t.url}. +${e}`), D_ = (t, e, n) => { const r = Hr(e), i = ct(), s = G(r), o = t.messageHandlers[s]; return o ? o(i, r, t, n, s) : console.error("Unable to compute message"), i; -}, D_ = (t) => { +}, R_ = (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 = (n) => { t.wsLastMessageReceived = jr(); - const r = E_(t, new Uint8Array(n.data), !0); - Fm(r) > 1 && e.send(Te(r)); + const r = D_(t, new Uint8Array(n.data), !0); + Ug(r) > 1 && e.send(Te(r)); }, e.onerror = (n) => { t.emit("connection-error", [n, t]); }, e.onclose = (n) => { - t.emit("connection-close", [n, t]), t.ws = null, t.wsconnecting = !1, t.wsconnected ? (t.wsconnected = !1, t.synced = !1, mg( + t.emit("connection-close", [n, t]), t.ws = null, t.wsconnecting = !1, t.wsconnected ? (t.wsconnected = !1, t.synced = !1, mm( t.awareness, Array.from(t.awareness.getStates().keys()).filter( (r) => r !== t.doc.clientID @@ -19809,9 +19809,9 @@ ${e}`), E_ = (t, e, n) => { ), t.emit("status", [{ status: "disconnected" }])) : t.wsUnsuccessfulReconnects++, setTimeout( - D_, - Fh( - ZZ(2, t.wsUnsuccessfulReconnects) * 100, + R_, + Uh( + L5(2, t.wsUnsuccessfulReconnects) * 100, t.maxBackoffTime ), t @@ -19821,7 +19821,7 @@ ${e}`), E_ = (t, e, n) => { status: "connected" }]); const n = ct(); - if (V(n, pi), Sp(n, t.doc), e.send(Te(n)), t.awareness.getLocalState() !== null) { + if (V(n, pi), _p(n, t.doc), e.send(Te(n)), t.awareness.getLocalState() !== null) { const r = ct(); V(r, us), De( r, @@ -19838,10 +19838,10 @@ ${e}`), E_ = (t, e, n) => { const n = t.ws; t.wsconnected && n && n.readyState === n.OPEN && n.send(e), t.bcconnected && Gi(t.bcChannel, e, t); }; -class R_ extends zh { +class M_ extends Fh { constructor(e, n, r, { connect: i = !0, - awareness: s = new __(r), + awareness: s = new C_(r), params: o = {}, WebSocketPolyfill: l = WebSocket, resyncInterval: a = -1, @@ -19850,37 +19850,37 @@ class R_ extends zh { } = {}) { for (super(); e[e.length - 1] === "/"; ) e = e.slice(0, e.length - 1); - const u = ZI(o); - this.maxBackoffTime = c, this.bcChannel = e + "/" + n, this.url = e + "/" + n + (u.length === 0 ? "" : "?" + u), this.roomname = n, this.doc = r, this._WS = l, this.awareness = s, this.wsconnected = !1, this.wsconnecting = !1, this.bcconnected = !1, this.disableBc = h, this.wsUnsuccessfulReconnects = 0, this.messageHandlers = Gl.slice(), this._synced = !1, this.ws = null, this.wsLastMessageReceived = 0, this.shouldConnect = i, this._resyncInterval = 0, a > 0 && (this._resyncInterval = setInterval(() => { + const u = LI(o); + this.maxBackoffTime = c, this.bcChannel = e + "/" + n, this.url = e + "/" + n + (u.length === 0 ? "" : "?" + u), this.roomname = n, this.doc = r, this._WS = l, this.awareness = s, this.wsconnected = !1, this.wsconnecting = !1, this.bcconnected = !1, this.disableBc = h, this.wsUnsuccessfulReconnects = 0, this.messageHandlers = Ul.slice(), this._synced = !1, this.ws = null, this.wsLastMessageReceived = 0, this.shouldConnect = i, this._resyncInterval = 0, a > 0 && (this._resyncInterval = setInterval(() => { if (this.ws && this.ws.readyState === WebSocket.OPEN) { const f = ct(); - V(f, pi), Sp(f, r), this.ws.send(Te(f)); + V(f, pi), _p(f, r), this.ws.send(Te(f)); } }, a)), this._bcSubscriber = (f, d) => { if (d !== this) { - const p = E_(this, new Uint8Array(f), !1); - Fm(p) > 1 && Gi(this.bcChannel, Te(p), this); + const p = D_(this, new Uint8Array(f), !1); + Ug(p) > 1 && Gi(this.bcChannel, Te(p), this); } }, this._updateHandler = (f, d) => { if (d !== this) { const p = ct(); - V(p, pi), QI(p, f), pf(this, Te(p)); + V(p, pi), EI(p, f), pf(this, Te(p)); } - }, this.doc.on("update", this._updateHandler), this._awarenessUpdateHandler = ({ added: f, updated: d, removed: p }, m) => { - const g = f.concat(d).concat(p), O = ct(); + }, this.doc.on("update", this._updateHandler), this._awarenessUpdateHandler = ({ added: f, updated: d, removed: p }, g) => { + const m = f.concat(d).concat(p), O = ct(); V(O, us), De( O, - qo(s, g) + qo(s, m) ), pf(this, Te(O)); }, this._unloadHandler = () => { - mg( + mm( this.awareness, [r.clientID], "window unload" ); }, typeof window < "u" ? window.addEventListener("unload", this._unloadHandler) : typeof process < "u" && process.on("exit", this._unloadHandler), s.on("update", this._awarenessUpdateHandler), this._checkInterval = setInterval(() => { - this.wsconnected && hb < jr() - this.wsLastMessageReceived && this.ws.close(); - }, hb / 10), i && this.connect(); + this.wsconnected && ub < jr() - this.wsLastMessageReceived && this.ws.close(); + }, ub / 10), i && this.connect(); } get synced() { return this._synced; @@ -19894,13 +19894,13 @@ class R_ extends zh { connectBc() { if (this.disableBc) return; - this.bcconnected || ($I(this.bcChannel, this._bcSubscriber), this.bcconnected = !0); + this.bcconnected || (PI(this.bcChannel, this._bcSubscriber), this.bcconnected = !0); const e = ct(); - V(e, pi), Sp(e, this.doc), Gi(this.bcChannel, Te(e), this); + V(e, pi), _p(e, this.doc), Gi(this.bcChannel, Te(e), this); const n = ct(); - V(n, pi), P_(n, this.doc), Gi(this.bcChannel, Te(n), this); + V(n, pi), T_(n, this.doc), Gi(this.bcChannel, Te(n), this); const r = ct(); - V(r, Q_), Gi( + V(r, E_), Gi( this.bcChannel, Te(r), this @@ -19924,16 +19924,16 @@ class R_ extends zh { qo(this.awareness, [ this.doc.clientID ], /* @__PURE__ */ new Map()) - ), pf(this, Te(e)), this.bcconnected && (PI(this.bcChannel, this._bcSubscriber), this.bcconnected = !1); + ), pf(this, Te(e)), this.bcconnected && (TI(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 && (D_(this), this.connectBc()); + this.shouldConnect = !0, !this.wsconnected && this.ws === null && (R_(this), this.connectBc()); } } -R_.prototype.watchCollabolators = function(t) { +M_.prototype.watchCollabolators = function(t) { this.awareness.on("change", ({ added: e, removed: n @@ -19949,16 +19949,16 @@ R_.prototype.watchCollabolators = function(t) { } }); }; -function NI(t) { +function qI(t) { if (!t.enabled) return {}; const e = rt(() => new Ks(), []), [n, r] = Me(!1), [i, s] = Me(!1), [o, l] = Me(!1), a = rt(() => { var f; - const u = new R_((f = t.wsUrl) != null ? f : "ws://localhost:4444", t.room, e, { + const u = new M_((f = t.wsUrl) != null ? f : "ws://localhost:4444", t.room, e, { connect: !0, params: {}, WebSocketPolyfill: WebSocket, - awareness: new __(e), + awareness: new C_(e), maxBackoffTime: 2500 }); return u.awareness.setLocalStateField("user", { @@ -19967,7 +19967,7 @@ function NI(t) { }), u.ws.onerror = () => l(!0), u.on("sync", r), u.on("status", ({ status: d }) => s(d == "connected")), u; - }, []), c = rt(() => e.getText("codemirror"), []), h = rt(() => new og(c, { + }, []), c = rt(() => e.getText("codemirror"), []), h = rt(() => new lm(c, { trackedOrigins: /* @__PURE__ */ new Set([a.doc.clientID, null]), ignoreRemoteMapChanges: !0 }), []); @@ -19980,29 +19980,29 @@ function NI(t) { ready: n && i }; } -class bg { +class ym { constructor(e, n) { this.yanchor = e, this.yhead = n; } toJSON() { return { - yanchor: K1(this.yanchor), - yhead: K1(this.yhead) + yanchor: J1(this.yanchor), + yhead: J1(this.yhead) }; } static fromJSON(e) { - return new bg(yl(e.yanchor), yl(e.yhead)); + return new ym(bl(e.yanchor), bl(e.yhead)); } } -class qI { +class BI { constructor(e, n) { - this.ytext = e, this.awareness = n, this.undoManager = new og(e); + this.ytext = e, this.awareness = n, this.undoManager = new lm(e); } toYPos(e, n = 0) { - return bp(this.ytext, e, n); + return yp(this.ytext, e, n); } fromYPos(e) { - const n = yp(yl(e), this.ytext.doc); + const n = wp(bl(e), this.ytext.doc); if (n == null || n.type !== this.ytext) throw new Error("[y-codemirror] The position you want to retrieve was created by a different document"); return { @@ -20012,21 +20012,21 @@ class qI { } toYRange(e) { const n = e.assoc, r = this.toYPos(e.anchor, n), i = this.toYPos(e.head, n); - return new bg(r, i); + return new ym(r, i); } fromYRange(e) { const n = this.fromYPos(e.yanchor), r = this.fromYPos(e.yhead); return n.pos === r.pos ? C.cursor(r.pos, r.assoc) : C.range(n.pos, r.pos); } } -const nu = I.define({ +const ru = I.define({ combine(t) { return t[t.length - 1]; } -}), _p = yn.define(); -class BI { +}), Cp = yn.define(); +class YI { constructor(e) { - this.view = e, this.conf = e.state.facet(nu), this._observer = (n, r) => { + this.view = e, this.conf = e.state.facet(ru), this._observer = (n, r) => { if (r.origin !== this.conf) { const i = n.delta, s = []; let o = 0; @@ -20034,12 +20034,12 @@ class BI { const a = i[l]; a.insert != null ? s.push({ from: o, to: o, insert: a.insert }) : a.delete != null ? (s.push({ from: o, to: o + a.delete, insert: "" }), o += a.delete) : o += a.retain; } - e.dispatch({ changes: s, annotations: [_p.of(this.conf)] }); + e.dispatch({ changes: s, annotations: [Cp.of(this.conf)] }); } }, this._ytext = this.conf.ytext, this._ytext.observe(this._observer); } update(e) { - if (!e.docChanged || e.transactions.length > 0 && e.transactions[0].annotation(_p) === this.conf) + if (!e.docChanged || e.transactions.length > 0 && e.transactions[0].annotation(Cp) === this.conf) return; const n = this.conf.ytext; n.doc.transact(() => { @@ -20055,7 +20055,7 @@ class BI { this._ytext.unobserve(this._observer); } } -const YI = ke.fromClass(BI), XI = E.baseTheme({ +const XI = ke.fromClass(YI), WI = E.baseTheme({ ".cm-ySelection": {}, ".cm-yLineSelection": { padding: 0, @@ -20109,8 +20109,8 @@ const YI = ke.fromClass(BI), XI = E.baseTheme({ opacity: 1, transitionDelay: "0s" } -}), WI = yn.define(); -class VI extends qt { +}), VI = yn.define(); +class jI extends qt { constructor(e, n) { super(), this.color = e, this.name = n; } @@ -20145,10 +20145,10 @@ class VI extends qt { return !0; } } -class jI { +class zI { constructor(e) { - this.conf = e.state.facet(nu), this._listener = ({ added: n, updated: r, removed: i }, s, o) => { - n.concat(r).concat(i).findIndex((a) => a !== this.conf.awareness.doc.clientID) >= 0 && e.dispatch({ annotations: [WI.of([])] }); + this.conf = e.state.facet(ru), this._listener = ({ added: n, updated: r, removed: i }, s, o) => { + n.concat(r).concat(i).findIndex((a) => a !== this.conf.awareness.doc.clientID) >= 0 && e.dispatch({ annotations: [VI.of([])] }); }, this._awareness = this.conf.awareness, this._awareness.on("change", this._listener), this.decorations = ie.of([]); } destroy() { @@ -20157,10 +20157,10 @@ class jI { update(e) { const n = this.conf.ytext, r = n.doc, i = this.conf.awareness, s = [], o = this.conf.awareness.getLocalState(); if (o != null) { - const l = e.view.hasFocus && e.view.dom.ownerDocument.hasFocus(), a = l ? e.state.selection.main : null, c = o.cursor == null ? null : yl(o.cursor.anchor), h = o.cursor == null ? null : yl(o.cursor.head); + const l = e.view.hasFocus && e.view.dom.ownerDocument.hasFocus(), a = l ? e.state.selection.main : null, c = o.cursor == null ? null : bl(o.cursor.anchor), h = o.cursor == null ? null : bl(o.cursor.head); if (a != null) { - const u = bp(n, a.anchor), f = bp(n, a.head); - (o.cursor == null || !J1(c, u) || !J1(h, f)) && i.setLocalStateField("cursor", { + const u = yp(n, a.anchor), f = yp(n, a.head); + (o.cursor == null || !eb(c, u) || !eb(h, f)) && i.setLocalStateField("cursor", { anchor: u, head: f }); @@ -20173,14 +20173,14 @@ class jI { const c = l.cursor; if (c == null || c.anchor == null || c.head == null) return; - const h = yp(c.anchor, r), u = yp(c.head, r); + const h = wp(c.anchor, r), u = wp(c.head, r); if (h == null || u == null || h.type !== n || u.type !== n) return; - const { color: f = "#30bced", name: d = "Anonymous" } = l.user || {}, p = l.user && l.user.colorLight || f + "33", m = Fh(h.index, u.index), g = Gr(h.index, u.index), O = e.view.state.doc.lineAt(m), b = e.view.state.doc.lineAt(g); + const { color: f = "#30bced", name: d = "Anonymous" } = l.user || {}, p = l.user && l.user.colorLight || f + "33", g = Uh(h.index, u.index), m = Gr(h.index, u.index), O = e.view.state.doc.lineAt(g), b = e.view.state.doc.lineAt(m); if (O.number === b.number) s.push({ - from: m, - to: g, + from: g, + to: m, value: L.mark({ attributes: { style: `background-color: ${p}` }, class: "cm-ySelection" @@ -20188,7 +20188,7 @@ class jI { }); else { s.push({ - from: m, + from: g, to: O.from + O.length, value: L.mark({ attributes: { style: `background-color: ${p}` }, @@ -20196,7 +20196,7 @@ class jI { }) }), s.push({ from: b.from, - to: g, + to: m, value: L.mark({ attributes: { style: `background-color: ${p}` }, class: "cm-ySelection" @@ -20219,15 +20219,15 @@ class jI { value: L.widget({ side: u.index - h.index > 0 ? -1 : 1, block: !1, - widget: new VI(f, d) + widget: new jI(f, d) }) }); }), this.decorations = L.set(s, !0); } } -const zI = ke.fromClass(jI, { +const FI = ke.fromClass(zI, { decorations: (t) => t.decorations -}), FI = () => { +}), UI = () => { let t = !0; return (e, n) => { if (t) { @@ -20241,7 +20241,7 @@ const zI = ke.fromClass(jI, { n !== void 0 && n(); }; }; -class UI { +class GI { constructor(e) { this.undoManager = e; } @@ -20258,14 +20258,14 @@ class UI { return this.undoManager.redo() != null; } } -const ru = I.define({ +const iu = I.define({ combine(t) { return t[t.length - 1]; } }); -class GI { +class HI { constructor(e) { - this.view = e, this.conf = e.state.facet(ru), this._undoManager = this.conf.undoManager, this.syncConf = e.state.facet(nu), this._beforeChangeSelection = null, this._mux = FI(), this._onStackItemAdded = ({ stackItem: n, changedParentTypes: r }) => { + this.view = e, this.conf = e.state.facet(iu), this._undoManager = this.conf.undoManager, this.syncConf = e.state.facet(ru), this._beforeChangeSelection = null, this._mux = UI(), this._onStackItemAdded = ({ stackItem: n, changedParentTypes: r }) => { r.has(this.syncConf.ytext) && this._beforeChangeSelection && !n.meta.has(this) && n.meta.set(this, this._beforeChangeSelection); }, this._onStackItemPopped = ({ stackItem: n }) => { const r = n.meta.get(this); @@ -20278,45 +20278,45 @@ class GI { }, this._undoManager.on("stack-item-added", this._onStackItemAdded), this._undoManager.on("stack-item-popped", this._onStackItemPopped), this._undoManager.addTrackedOrigin(this.syncConf); } update(e) { - e.selectionSet && (e.transactions.length === 0 || e.transactions[0].annotation(_p) !== this.syncConf) && this._storeSelection(); + e.selectionSet && (e.transactions.length === 0 || e.transactions[0].annotation(Cp) !== this.syncConf) && this._storeSelection(); } destroy() { this._undoManager.off("stack-item-added", this._onStackItemAdded), this._undoManager.off("stack-item-popped", this._onStackItemPopped), this._undoManager.removeTrackedOrigin(this.syncConf); } } -const HI = ke.fromClass(GI), KI = ({ state: t, dispatch: e }) => t.facet(ru).undo() || !0, JI = ({ state: t, dispatch: e }) => t.facet(ru).redo() || !0, e3 = (t, e, { undoManager: n = new og(t) } = {}) => { - const r = new qI(t, e), i = [ - nu.of(r), - YI +const KI = ke.fromClass(HI), JI = ({ state: t, dispatch: e }) => t.facet(iu).undo() || !0, e3 = ({ state: t, dispatch: e }) => t.facet(iu).redo() || !0, t3 = (t, e, { undoManager: n = new lm(t) } = {}) => { + const r = new BI(t, e), i = [ + ru.of(r), + XI ]; return e && i.push( - XI, - zI + WI, + FI ), n !== !1 && i.push( - ru.of(new UI(n)), - HI, + iu.of(new GI(n)), + KI, E.domEventHandlers({ beforeinput(s, o) { - return s.inputType === "historyUndo" ? KI(o) : s.inputType === "historyRedo" ? JI(o) : !1; + return s.inputType === "historyUndo" ? JI(o) : s.inputType === "historyRedo" ? e3(o) : !1; } }) ), i; }; -class ih { +class sh { static create(e, n, r, i, s) { let o = i + (i << 8) + e + (n << 4) | 0; - return new ih(e, n, r, o, s, [], []); + return new sh(e, n, r, o, s, [], []); } constructor(e, n, r, i, s, o, l) { - this.type = e, this.value = n, this.from = r, this.hash = i, this.end = s, this.children = o, this.positions = l, this.hashProp = [[H.contextHash, i]]; + this.type = e, this.value = n, this.from = r, this.hash = i, this.end = s, this.children = o, this.positions = l, this.hashProp = [[K.contextHash, i]]; } addChild(e, n) { - e.prop(H.contextHash) != this.hash && (e = new fe(e.type, e.children, e.positions, e.length, this.hashProp)), this.children.push(e), this.positions.push(n); + e.prop(K.contextHash) != this.hash && (e = new ue(e.type, e.children, e.positions, e.length, this.hashProp)), this.children.push(e), this.positions.push(n); } toTree(e, n = this.end) { let r = this.children.length - 1; - return r >= 0 && (n = Math.max(n, this.positions[r] + this.children[r].length + this.from)), new fe(e.types[this.type], this.children, this.positions, n - this.from).balance({ - makeTree: (i, s, o) => new fe(Ve.none, i, s, o, this.hashProp) + return r >= 0 && (n = Math.max(n, this.positions[r] + this.children[r].length + this.from)), new ue(e.types[this.type], this.children, this.positions, n - this.from).balance({ + makeTree: (i, s, o) => new ue(Ve.none, i, s, o, this.hashProp) }); } } @@ -20324,12 +20324,12 @@ var Q; (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"; })(Q || (Q = {})); -class t3 { +class n3 { constructor(e, n) { this.start = e, this.content = n, this.marks = [], this.parsers = []; } } -class n3 { +class r3 { constructor() { this.text = "", this.baseIndent = 0, this.basePos = 0, this.depth = 0, this.markers = [], this.pos = 0, this.indent = 0, this.next = -1; } @@ -20376,23 +20376,23 @@ class n3 { return e + this.text.slice(this.basePos); } } -function ub(t, e, n) { +function fb(t, e, n) { if (n.pos == n.text.length || t != e.block && n.indent >= e.stack[n.depth + 1].value + n.baseIndent) return !0; if (n.indent >= n.baseIndent + 4) return !1; - let r = (t.type == Q.OrderedList ? kg : wg)(n, e, !1); - return r > 0 && (t.type != Q.BulletList || yg(n, e, !1) < 0) && n.text.charCodeAt(n.pos + r - 1) == t.value; + let r = (t.type == Q.OrderedList ? xm : km)(n, e, !1); + return r > 0 && (t.type != Q.BulletList || wm(n, e, !1) < 0) && n.text.charCodeAt(n.pos + r - 1) == t.value; } -const M_ = { +const Z_ = { [Q.Blockquote](t, e, n) { return n.next != 62 ? !1 : (n.markers.push(le(Q.QuoteMark, e.lineStart + n.pos, e.lineStart + n.pos + 1)), n.moveBase(n.pos + (nn(n.text.charCodeAt(n.pos + 1)) ? 2 : 1)), t.end = e.lineStart + n.text.length, !0); }, [Q.ListItem](t, e, n) { return n.indent < n.baseIndent + t.value && n.next > -1 ? !1 : (n.moveBaseColumn(n.baseIndent + t.value), !0); }, - [Q.OrderedList]: ub, - [Q.BulletList]: ub, + [Q.OrderedList]: fb, + [Q.BulletList]: fb, [Q.Document]() { return !0; } @@ -20405,12 +20405,12 @@ function Bo(t, e = 0) { e++; return e; } -function fb(t, e, n) { +function db(t, e, n) { for (; e > n && nn(t.charCodeAt(e - 1)); ) e--; return e; } -function Z_(t) { +function L_(t) { if (t.next != 96 && t.next != 126) return -1; let e = t.pos + 1; @@ -20425,10 +20425,10 @@ function Z_(t) { } return e; } -function L_(t) { +function I_(t) { return t.next != 62 ? -1 : t.text.charCodeAt(t.pos + 1) == 32 ? 2 : 1; } -function yg(t, e, n) { +function wm(t, e, n) { if (t.next != 42 && t.next != 45 && t.next != 95) return -1; let r = 1; @@ -20439,18 +20439,18 @@ function yg(t, e, n) { else if (!nn(s)) return -1; } - return n && t.next == 45 && q_(t) > -1 && t.depth == e.stack.length || r < 3 ? -1 : 1; + return n && t.next == 45 && B_(t) > -1 && t.depth == e.stack.length || r < 3 ? -1 : 1; } -function I_(t, e) { +function N_(t, e) { for (let n = t.stack.length - 1; n >= 0; n--) if (t.stack[n].type == e) return !0; return !1; } -function wg(t, e, n) { - return (t.next == 45 || t.next == 43 || t.next == 42) && (t.pos == t.text.length - 1 || nn(t.text.charCodeAt(t.pos + 1))) && (!n || I_(e, Q.BulletList) || t.skipSpace(t.pos + 2) < t.text.length) ? 1 : -1; +function km(t, e, n) { + return (t.next == 45 || t.next == 43 || t.next == 42) && (t.pos == t.text.length - 1 || nn(t.text.charCodeAt(t.pos + 1))) && (!n || N_(e, Q.BulletList) || t.skipSpace(t.pos + 2) < t.text.length) ? 1 : -1; } -function kg(t, e, n) { +function xm(t, e, n) { let r = t.pos, i = t.next; for (; i >= 48 && i <= 57; ) { r++; @@ -20458,9 +20458,9 @@ function kg(t, e, n) { return -1; i = t.text.charCodeAt(r); } - return r == t.pos || r > t.pos + 9 || i != 46 && i != 41 || r < t.text.length - 1 && !nn(t.text.charCodeAt(r + 1)) || n && !I_(e, Q.OrderedList) && (t.skipSpace(r + 1) == t.text.length || r > t.pos + 1 || t.next != 49) ? -1 : r + 1 - t.pos; + return r == t.pos || r > t.pos + 9 || i != 46 && i != 41 || r < t.text.length - 1 && !nn(t.text.charCodeAt(r + 1)) || n && !N_(e, Q.OrderedList) && (t.skipSpace(r + 1) == t.text.length || r > t.pos + 1 || t.next != 49) ? -1 : r + 1 - t.pos; } -function N_(t) { +function q_(t) { if (t.next != 35) return -1; let e = t.pos + 1; @@ -20471,7 +20471,7 @@ function N_(t) { let n = e - t.pos; return n > 6 ? -1 : n; } -function q_(t) { +function B_(t) { if (t.next != 45 && t.next != 61 || t.indent >= t.baseIndent + 4) return -1; let e = t.pos + 1; @@ -20482,25 +20482,25 @@ function q_(t) { e++; return e == t.text.length ? n : -1; } -const Cp = /^[ \t]*$/, B_ = /-->/, Y_ = /\?>/, Ap = [ +const Ap = /^[ \t]*$/, Y_ = /-->/, X_ = /\?>/, $p = [ [/^<(?:script|pre|style)(?:\s|>|$)/i, /<\/(?:script|pre|style)>/i], - [/^\s*" } } }), IC = /* @__PURE__ */ new H(), NC = /* @__PURE__ */ p3.configure({ +}), IC = /* @__PURE__ */ Pg({ commentTokens: { block: { open: "" } } }), NC = /* @__PURE__ */ new K(), qC = /* @__PURE__ */ g3.configure({ props: [ - /* @__PURE__ */ js.add((t) => !t.is("Block") || t.is("Document") || Rp(t) != null ? void 0 : (e, n) => ({ from: n.doc.lineAt(e.from).to, to: e.to })), - /* @__PURE__ */ IC.add(Rp), - /* @__PURE__ */ ql.add({ + /* @__PURE__ */ js.add((t) => !t.is("Block") || t.is("Document") || Mp(t) != null ? void 0 : (e, n) => ({ from: n.doc.lineAt(e.from).to, to: e.to })), + /* @__PURE__ */ NC.add(Mp), + /* @__PURE__ */ Nl.add({ Document: () => null }), /* @__PURE__ */ fi.add({ - Document: LC + Document: IC }) ] }); -function Rp(t) { +function Mp(t) { let e = /^(?:ATX|Setext)Heading(\d)$/.exec(t.name); return e ? +e[1] : void 0; } -function Iq(t, e) { +function Nq(t, e) { let n = t; for (; ; ) { let r = n.nextSibling, i; - if (!r || (i = Rp(r.type)) != null && i <= e) + if (!r || (i = Mp(r.type)) != null && i <= e) break; n = r; } return n.to; } -const Nq = /* @__PURE__ */ tv.of((t, e, n) => { +const qq = /* @__PURE__ */ nv.of((t, e, n) => { for (let r = Se(t).resolveInner(n, -1); r && !(r.from < e); r = r.parent) { - let i = r.type.prop(IC); + let i = r.type.prop(NC); if (i == null) continue; - let s = Iq(r, i); + let s = Nq(r, i); if (s > n) return { from: n, to: s }; } return null; }); -function _g(t) { - return new jt(LC, t, [Nq], "markdown"); +function Cm(t) { + return new jt(IC, t, [qq], "markdown"); } -const qq = /* @__PURE__ */ _g(NC), Bq = /* @__PURE__ */ NC.configure([_3, A3, C3, $3, { +const Bq = /* @__PURE__ */ Cm(qC), Yq = /* @__PURE__ */ qC.configure([C3, $3, A3, P3, { props: [ /* @__PURE__ */ js.add({ Table: (t, e) => ({ from: e.doc.lineAt(t.from).to, to: t.to }) }) ] -}]), qC = /* @__PURE__ */ _g(Bq); -function Yq(t, e) { +}]), BC = /* @__PURE__ */ Cm(Yq); +function Xq(t, e) { return (n) => { if (n && t) { let r = null; - if (n = /\S*/.exec(n)[0], typeof t == "function" ? r = t(n) : r = Zc.matchLanguageName(t, n, !0), r instanceof Zc) - return r.support ? r.support.language.parser : ll.getSkippingParser(r.load()); + if (n = /\S*/.exec(n)[0], typeof t == "function" ? r = t(n) : r = Lc.matchLanguageName(t, n, !0), r instanceof Lc) + return r.support ? r.support.language.parser : ol.getSkippingParser(r.load()); if (r) return r.parser; } @@ -25028,11 +25028,11 @@ class Ia { } } marker(e, n) { - let r = this.node.name == "OrderedList" ? String(+YC(this.item, e)[2] + n) : ""; + let r = this.node.name == "OrderedList" ? String(+XC(this.item, e)[2] + n) : ""; return this.spaceBefore + r + this.type + this.spaceAfter; } } -function BC(t, e) { +function YC(t, e) { let n = []; for (let i = t; i && i.name != "Document"; i = i.parent) (i.name == "ListItem" || i.name == "Blockquote" || i.name == "FencedCode") && n.push(i); @@ -25055,13 +25055,13 @@ function BC(t, e) { } return r; } -function YC(t, e) { +function XC(t, e) { return /^(\s*)(\d+)(?=[.)])/.exec(e.sliceString(t.from, t.from + 10)); } function Af(t, e, n, r = 0) { for (let i = -1, s = t; ; ) { if (s.name == "ListItem") { - let l = YC(s, e), a = +l[2]; + let l = XC(s, e), a = +l[2]; if (i >= 0) { if (a != i + 1) return; @@ -25075,20 +25075,20 @@ function Af(t, e, n, r = 0) { s = o; } } -function Mp(t, e) { +function Zp(t, e) { let n = /^[ \t]*/.exec(t)[0].length; - if (!n || e.facet(Nl) != " ") + if (!n || e.facet(Il) != " ") return t; let r = dn(t, 4, n), i = ""; for (let s = r; s > 0; ) s >= 4 ? (i += " ", s -= 4) : (i += " ", s--); return i + t.slice(n); } -const Xq = ({ state: t, dispatch: e }) => { +const Wq = ({ state: t, dispatch: e }) => { let n = Se(t), { doc: r } = t, i = null, s = t.changeByRange((o) => { - if (!o.empty || !qC.isActiveAt(t, o.from)) + if (!o.empty || !BC.isActiveAt(t, o.from)) return i = { range: o }; - let l = o.from, a = r.lineAt(l), c = BC(n.resolveInner(l, -1), r); + let l = o.from, a = r.lineAt(l), c = YC(n.resolveInner(l, -1), r); for (; c.length && c[c.length - 1].from > l - a.from; ) c.pop(); if (!c.length) @@ -25099,24 +25099,24 @@ const Xq = ({ state: t, dispatch: e }) => { let u = l >= h.to - h.spaceAfter.length && !/\S/.test(a.text.slice(h.to)); if (h.item && u) if (h.node.firstChild.to >= l || a.from > 0 && !/[^\s>]/.test(r.lineAt(a.from - 1).text)) { - let g = c.length > 1 ? c[c.length - 2] : null, O, b = ""; - g && g.item ? (O = a.from + g.from, b = g.marker(r, 1)) : O = a.from + (g ? g.to : 0); + let m = c.length > 1 ? c[c.length - 2] : null, O, b = ""; + m && m.item ? (O = a.from + m.from, b = m.marker(r, 1)) : O = a.from + (m ? m.to : 0); let y = [{ from: O, to: l, insert: b }]; - return h.node.name == "OrderedList" && Af(h.item, r, y, -2), g && g.node.name == "OrderedList" && Af(g.item, r, y), { range: C.cursor(O + b.length), changes: y }; + return h.node.name == "OrderedList" && Af(h.item, r, y, -2), m && m.node.name == "OrderedList" && Af(m.item, r, y), { range: C.cursor(O + b.length), changes: y }; } else { - let g = ""; + let m = ""; for (let O = 0, b = c.length - 2; O <= b; O++) - g += c[O].blank(O < b ? dn(a.text, 4, c[O + 1].from) - g.length : null, O < b); - return g = Mp(g, t), { - range: C.cursor(l + g.length + 1), - changes: { from: a.from, insert: g + t.lineBreak } + m += c[O].blank(O < b ? dn(a.text, 4, c[O + 1].from) - m.length : null, O < b); + return m = Zp(m, t), { + range: C.cursor(l + m.length + 1), + changes: { from: a.from, insert: m + t.lineBreak } }; } if (h.node.name == "Blockquote" && u && a.from) { - let g = r.lineAt(a.from - 1), O = />\s*$/.exec(g.text); + let m = r.lineAt(a.from - 1), O = />\s*$/.exec(m.text); if (O && O.index == h.from) { let b = t.changes([ - { from: g.from + O.index, to: g.to }, + { from: m.from + O.index, to: m.to }, { from: a.from + h.from, to: a.to } ]); return { range: o.map(b), changes: b }; @@ -25126,23 +25126,23 @@ const Xq = ({ state: t, dispatch: e }) => { h.node.name == "OrderedList" && Af(h.item, r, f); let d = h.item && h.item.from < a.from, p = ""; if (!d || /^[\s\d.)\-+*>]*/.exec(a.text)[0].length >= h.to) - for (let g = 0, O = c.length - 1; g <= O; g++) - p += g == O && !d ? c[g].marker(r, 1) : c[g].blank(g < O ? dn(a.text, 4, c[g + 1].from) - p.length : null); - let m = l; - for (; m > a.from && /\s/.test(a.text.charAt(m - a.from - 1)); ) - m--; - return p = Mp(p, t), f.push({ from: m, to: l, insert: t.lineBreak + p }), { range: C.cursor(m + p.length + 1), changes: f }; + for (let m = 0, O = c.length - 1; m <= O; m++) + p += m == O && !d ? c[m].marker(r, 1) : c[m].blank(m < O ? dn(a.text, 4, c[m + 1].from) - p.length : null); + let g = l; + for (; g > a.from && /\s/.test(a.text.charAt(g - a.from - 1)); ) + g--; + return p = Zp(p, t), f.push({ from: g, to: l, insert: t.lineBreak + p }), { range: C.cursor(g + p.length + 1), changes: f }; }); return i ? !1 : (e(t.update(s, { scrollIntoView: !0, userEvent: "input" })), !0); }; -function Gb(t) { +function Hb(t) { return t.name == "QuoteMark" || t.name == "ListMark"; } -function Wq(t, e) { +function Vq(t, e) { let n = t.resolveInner(e, -1), r = e; - Gb(n) && (r = n.from, n = n.parent); + Hb(n) && (r = n.from, n = n.parent); for (let i; i = n.childBefore(r); ) - if (Gb(i)) + if (Hb(i)) r = i.from; else if (i.name == "OrderedList" || i.name == "BulletList") n = i.lastChild, r = n.to; @@ -25150,11 +25150,11 @@ function Wq(t, e) { break; return n; } -const Vq = ({ state: t, dispatch: e }) => { +const jq = ({ state: t, dispatch: e }) => { let n = Se(t), r = null, i = t.changeByRange((s) => { let o = s.from, { doc: l } = t; - if (s.empty && qC.isActiveAt(t, s.from)) { - let a = l.lineAt(o), c = BC(Wq(n, o), l); + if (s.empty && BC.isActiveAt(t, s.from)) { + let a = l.lineAt(o), c = YC(Vq(n, o), l); if (c.length) { let h = c[c.length - 1], u = h.to - h.spaceAfter.length + (h.spaceAfter ? 1 : 0); if (o - a.from > u && !/\S/.test(a.text.slice(u, o - a.from))) @@ -25166,7 +25166,7 @@ const Vq = ({ state: t, dispatch: e }) => { let f = a.from + h.from; if (h.item && h.node.from < h.item.from && /\S/.test(a.text.slice(h.from, h.to))) { let d = h.blank(dn(a.text, 4, h.to) - dn(a.text, 4, h.from)); - return f == a.from && (d = Mp(d, t)), { + return f == a.from && (d = Zp(d, t)), { range: C.cursor(f + d.length), changes: { from: f, to: a.from + h.to, insert: d } }; @@ -25179,22 +25179,22 @@ const Vq = ({ state: t, dispatch: e }) => { return r = { range: s }; }); return r ? !1 : (e(t.update(i, { scrollIntoView: !0, userEvent: "delete" })), !0); -}, jq = [ - { key: "Enter", run: Xq }, - { key: "Backspace", run: Vq } -], Zp = /* @__PURE__ */ Zq({ matchClosingTags: !1 }); -function zq(t = {}) { - let { codeLanguages: e, defaultCodeLanguage: n, addKeymap: r = !0, base: { parser: i } = qq, completeHTMLTags: s = !0 } = t; - if (!(i instanceof iu)) +}, zq = [ + { key: "Enter", run: Wq }, + { key: "Backspace", run: jq } +], Lp = /* @__PURE__ */ Lq({ matchClosingTags: !1 }); +function Fq(t = {}) { + let { codeLanguages: e, defaultCodeLanguage: n, addKeymap: r = !0, base: { parser: i } = Bq, completeHTMLTags: s = !0 } = t; + if (!(i instanceof su)) throw new RangeError("Base parser provided to `markdown` should be a Markdown parser"); - let o = t.extensions ? [t.extensions] : [], l = [Zp.support], a; - n instanceof al ? (l.push(n.support), a = n.language) : n && (a = n); - let c = e || a ? Yq(e, a) : void 0; - o.push(g3({ codeParser: c, htmlParser: Zp.language.parser })), r && l.push(bn.high(sr.of(jq))); - let h = _g(i.configure(o)); - return s && l.push(h.data.of({ autocomplete: Fq })), new al(h, l); -} -function Fq(t) { + let o = t.extensions ? [t.extensions] : [], l = [Lp.support], a; + n instanceof ll ? (l.push(n.support), a = n.language) : n && (a = n); + let c = e || a ? Xq(e, a) : void 0; + o.push(O3({ codeParser: c, htmlParser: Lp.language.parser })), r && l.push(bn.high(sr.of(zq))); + let h = Cm(i.configure(o)); + return s && l.push(h.data.of({ autocomplete: Uq })), new ll(h, l); +} +function Uq(t) { let { state: e, pos: n } = t, r = /<[:\-\.\w\u00b7-\uffff]*$/.exec(e.sliceDoc(n - 25, n)); if (!r) return null; @@ -25207,49 +25207,49 @@ function Fq(t) { return { from: n - r[0].length, to: n, - options: Uq(), + options: Gq(), validFor: /^<[:\-\.\w\u00b7-\uffff]*$/ }; } let $f = null; -function Uq() { +function Gq() { if ($f) return $f; - let t = Dq(new Bm(ne.create({ extensions: Zp }), 0, !0)); + let t = Rq(new Yg(ne.create({ extensions: Lp }), 0, !0)); return $f = t ? t.options : []; } -function Gq(t) { +function Hq(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 XC = { exports: {} }; -const Hq = {}, Kq = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +var WC = { exports: {} }; +const Kq = {}, Jq = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - default: Hq -}, Symbol.toStringTag, { value: "Module" })), Jq = /* @__PURE__ */ Uw(Kq); + default: Kq +}, Symbol.toStringTag, { value: "Module" })), e7 = /* @__PURE__ */ Gw(Jq); (function(t) { var e; (function() { e = function(n, r, i, s) { s = s || {}, this.dictionary = null, this.rules = {}, this.dictionaryTable = {}, this.compoundRules = [], this.compoundRuleCodes = {}, this.replacementTable = [], this.flags = s.flags || {}, this.memoized = {}, this.loaded = !1; var o = this, l, a, c, h, u; - n && (o.dictionary = n, r && i ? m() : typeof window < "u" && "chrome" in window && "extension" in window.chrome && "getURL" in window.chrome.extension ? (s.dictionaryPath ? l = s.dictionaryPath : l = "typo/dictionaries", r || f(chrome.extension.getURL(l + "/" + n + "/" + n + ".aff"), d), i || f(chrome.extension.getURL(l + "/" + n + "/" + n + ".dic"), p)) : (s.dictionaryPath ? l = s.dictionaryPath : typeof __dirname < "u" ? l = __dirname + "/dictionaries" : l = "./dictionaries", r || f(l + "/" + n + "/" + n + ".aff", d), i || f(l + "/" + n + "/" + n + ".dic", p))); - function f(g, O) { - var b = o._readFile(g, null, s.asyncLoad); + n && (o.dictionary = n, r && i ? g() : typeof window < "u" && "chrome" in window && "extension" in window.chrome && "getURL" in window.chrome.extension ? (s.dictionaryPath ? l = s.dictionaryPath : l = "typo/dictionaries", r || f(chrome.extension.getURL(l + "/" + n + "/" + n + ".aff"), d), i || f(chrome.extension.getURL(l + "/" + n + "/" + n + ".dic"), p)) : (s.dictionaryPath ? l = s.dictionaryPath : typeof __dirname < "u" ? l = __dirname + "/dictionaries" : l = "./dictionaries", r || f(l + "/" + n + "/" + n + ".aff", d), i || f(l + "/" + n + "/" + n + ".dic", p))); + function f(m, O) { + var b = o._readFile(m, null, s.asyncLoad); s.asyncLoad ? b.then(function(y) { O(y); }) : O(b); } - function d(g) { - r = g, i && m(); + function d(m) { + r = m, i && g(); } - function p(g) { - i = g, r && m(); + function p(m) { + i = m, r && g(); } - function m() { + function g() { for (o.rules = o._parseAFF(r), o.compoundRuleCodes = {}, a = 0, h = o.compoundRules.length; a < h; a++) { - var g = o.compoundRules[a]; - for (c = 0, u = g.length; c < u; c++) - o.compoundRuleCodes[g[c]] = []; + var m = o.compoundRules[a]; + for (c = 0, u = m.length; c < u; c++) + o.compoundRuleCodes[m[c]] = []; } "ONLYINCOMPOUND" in o.flags && (o.compoundRuleCodes[o.flags.ONLYINCOMPOUND] = []), o.dictionaryTable = o._parseDIC(i); for (a in o.compoundRuleCodes) @@ -25281,8 +25281,8 @@ const Hq = {}, Kq = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP c(o.statusText); }; })), o.overrideMimeType && o.overrideMimeType("text/plain; charset=" + r), o.send(null), i ? s : o.responseText; - } else if (typeof Gq < "u") { - var l = Jq; + } else if (typeof Hq < "u") { + var l = e7; try { if (l.existsSync(n)) return l.readFileSync(n, r); @@ -25298,7 +25298,7 @@ const Hq = {}, Kq = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP if (i = this._removeAffixComments(f[a]), i = i.trim(), !!i) { var d = i.split(/\s+/), p = d[0]; if (p == "PFX" || p == "SFX") { - var m = d[1], g = d[2]; + var g = d[1], m = d[2]; o = parseInt(d[3], 10); var O = []; for (c = a + 1, u = a + 1 + o; c < u; c++) { @@ -25308,7 +25308,7 @@ const Hq = {}, Kq = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP var S = this.parseRuleCodes(y[1]), x = l[4], v = {}; v.add = w, S.length > 0 && (v.continuationClasses = S), x !== "." && (p === "SFX" ? v.match = new RegExp(x + "$") : v.match = new RegExp("^" + x)), b != "0" && (p === "SFX" ? v.remove = new RegExp(b + "$") : v.remove = b), O.push(v); } - r[m] = { type: p, combineable: g == "Y", entries: O }, a += o; + r[g] = { type: p, combineable: m == "Y", entries: O }, a += o; } else if (p === "COMPOUNDRULE") { for (o = parseInt(d[1], 10), c = a + 1, u = a + 1 + o; c < u; c++) i = f[c], l = i.split(/\s+/), this.compoundRules.push(l[1]); @@ -25335,14 +25335,14 @@ const Hq = {}, Kq = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP var u = this.parseRuleCodes(c[1]); (!("NEEDAFFIX" in this.flags) || u.indexOf(this.flags.NEEDAFFIX) == -1) && s(h, u); for (var f = 0, d = u.length; f < d; f++) { - var p = u[f], m = this.rules[p]; - if (m) - for (var g = this._applyRule(h, m), O = 0, b = g.length; O < b; O++) { - var y = g[O]; - if (s(y, []), m.combineable) + var p = u[f], g = this.rules[p]; + if (g) + for (var m = this._applyRule(h, g), O = 0, b = m.length; O < b; O++) { + var y = m[O]; + if (s(y, []), g.combineable) for (var w = f + 1; w < d; w++) { var S = u[w], x = this.rules[S]; - if (x && x.combineable && m.type != x.type) + if (x && x.combineable && g.type != x.type) for (var v = this._applyRule(y, x), P = 0, D = v.length; P < D; P++) { var T = v[P]; s(T, []); @@ -25466,8 +25466,8 @@ const Hq = {}, Kq = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP this.alphabet += s; } var u = this; - function f(p, m) { - var g = {}, O, b, y, w, S = u.alphabet.length; + function f(p, g) { + var m = {}, O, b, y, w, S = u.alphabet.length; if (typeof p == "string") { var x = p; p = {}, p[x] = !0; @@ -25475,25 +25475,25 @@ const Hq = {}, Kq = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP for (var x in p) for (O = 0, y = x.length + 1; O < y; O++) { var v = [x.substring(0, O), x.substring(O)]; - if (v[1] && (w = v[0] + v[1].substring(1), (!m || u.check(w)) && (w in g ? g[w] += 1 : g[w] = 1)), v[1].length > 1 && v[1][1] !== v[1][0] && (w = v[0] + v[1][1] + v[1][0] + v[1].substring(2), (!m || u.check(w)) && (w in g ? g[w] += 1 : g[w] = 1)), v[1]) { + if (v[1] && (w = v[0] + v[1].substring(1), (!g || u.check(w)) && (w in m ? m[w] += 1 : m[w] = 1)), v[1].length > 1 && v[1][1] !== v[1][0] && (w = v[0] + v[1][1] + v[1][0] + v[1].substring(2), (!g || u.check(w)) && (w in m ? m[w] += 1 : m[w] = 1)), v[1]) { var P = v[1].substring(0, 1).toUpperCase() === v[1].substring(0, 1) ? "uppercase" : "lowercase"; for (b = 0; b < S; b++) { var D = u.alphabet[b]; - P === "uppercase" && (D = D.toUpperCase()), D != v[1].substring(0, 1) && (w = v[0] + D + v[1].substring(1), (!m || u.check(w)) && (w in g ? g[w] += 1 : g[w] = 1)); + P === "uppercase" && (D = D.toUpperCase()), D != v[1].substring(0, 1) && (w = v[0] + D + v[1].substring(1), (!g || u.check(w)) && (w in m ? m[w] += 1 : m[w] = 1)); } } if (v[1]) for (b = 0; b < S; b++) { var P = v[0].substring(-1).toUpperCase() === v[0].substring(-1) && v[1].substring(0, 1).toUpperCase() === v[1].substring(0, 1) ? "uppercase" : "lowercase", D = u.alphabet[b]; - P === "uppercase" && (D = D.toUpperCase()), w = v[0] + D + v[1], (!m || u.check(w)) && (w in g ? g[w] += 1 : g[w] = 1); + P === "uppercase" && (D = D.toUpperCase()), w = v[0] + D + v[1], (!g || u.check(w)) && (w in m ? m[w] += 1 : m[w] = 1); } } - return g; + return m; } function d(p) { - var m = f(p), g = f(m, !0), O = g; - for (var b in m) - !u.check(b) || (b in O ? O[b] += m[b] : O[b] = m[b]); + var g = f(p), m = f(g, !0), O = m; + for (var b in g) + !u.check(b) || (b in O ? O[b] += g[b] : O[b] = g[b]); var y, w = []; for (y in O) O.hasOwnProperty(y) && w.push([y, O[y]]); @@ -25516,44 +25516,44 @@ const Hq = {}, Kq = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP } }; })(), t.exports = e; -})(XC); -const e7 = XC.exports, WC = I.define({ +})(WC); +const t7 = WC.exports, VC = I.define({ combine: (t) => t[t.length - 1] -}), t7 = L.mark({ +}), n7 = L.mark({ class: "cm-error" -}), n7 = (t) => Object.keys(t.rules).length > 0; -function Hb(t) { +}), r7 = (t) => Object.keys(t.rules).length > 0; +function Kb(t) { var s, o; let e = ((s = t.visibleRanges[0]) == null ? void 0 : s.from) || 0, n = ((o = t.visibleRanges[0]) == null ? void 0 : o.to) || void 0; - const r = new He(), i = t.state.facet(WC); - return n7(i) && t.state.doc.sliceString(e, n).replaceAll(/\w+/g, (l, a) => !i.check(l) && r.add(e + a, e + a + l.length, t7)), r.finish(); + const r = new He(), i = t.state.facet(VC); + return r7(i) && t.state.doc.sliceString(e, n).replaceAll(/\w+/g, (l, a) => !i.check(l) && r.add(e + a, e + a + l.length, n7)), r.finish(); } -const r7 = ke.fromClass(class { +const i7 = ke.fromClass(class { constructor(t) { - this.decorations = Hb(t); + this.decorations = Kb(t); } update(t) { - (t.docChanged || t.viewportChanged) && (this.decorations = Hb(t.view)); + (t.docChanged || t.viewportChanged) && (this.decorations = Kb(t.view)); } }, { decorations: (t) => t.decorations }); -function i7(t) { +function s7(t) { if (!t) return []; let { dict: e = "en_US", dictionaryPath: n = "/dictionaries" } = t; - return [WC.of(new e7(e, null, null, { + return [VC.of(new t7(e, null, null, { dictionaryPath: n - })), r7]; + })), i7]; } -const s7 = "cm-link", o7 = [{ +const o7 = "cm-link", l7 = [{ target: /`[^`\n]+`/g, cssClass: "cm-mono" }]; -function Kb(t, e) { +function Jb(t, e) { var o, l; let n = ((o = t.visibleRanges[0]) == null ? void 0 : o.from) || 0, r = ((l = t.visibleRanges[0]) == null ? void 0 : l.to) || void 0; const i = new He(), s = t.state.doc.sliceString(n, r); @@ -25566,24 +25566,24 @@ function Kb(t, e) { }) => i.add(n + c.index, n + c.index + c[0].length, a.cssClass ? L.mark({ class: a.cssClass }) : L.mark({ - class: s7 + class: o7 }))), i.finish(); } -const l7 = (t) => { +const a7 = (t) => { t || (t = []); - const e = t.concat(o7); + const e = t.concat(l7); return ke.fromClass(class { constructor(n) { - this.decorations = Kb(n, e); + this.decorations = Jb(n, e); } update(n) { - (n.docChanged || n.viewportChanged) && (this.decorations = Kb(n.view, e)); + (n.docChanged || n.viewportChanged) && (this.decorations = Jb(n.view, e)); } }, { decorations: (n) => n.decorations }); -}, a7 = () => "comment-" + Math.random().toString().replace(".", ""); -class c7 { +}, c7 = () => "comment-" + Math.random().toString().replace(".", ""); +class h7 { constructor(e, n, r, i) { this.user = n.awareness.getLocalState().user, this.lineAuthors = e.getArray(i + "/commentLineAuthors"), this.ydoc = e, this.getAvatar = r; } @@ -25620,7 +25620,7 @@ class c7 { ); } } -class h7 { +class u7 { constructor(e) { this.commentPositions = e.getMap(Xo.dataPath); } @@ -25649,7 +25649,7 @@ class h7 { this.commentPositions.delete(e); } } -class u7 { +class f7 { constructor() { this.comments = {}, this._onUpdate = () => { }; @@ -25689,12 +25689,12 @@ class u7 { this.setVisibility(e, !0); } } -const Ug = class { +const Gm = class { constructor(e, n, r) { - this.ydoc = e, this.provider = n, this.getAvatar = r, this.mainCodeMirror = null, this.newLocalComment = !1, this.positionManager = new h7(e), this.displayManager = new u7(), this.draggedComment = null, this.commentWithPopup = null, this.positionManager.commentPositions.observeDeep(() => this.updateMainCodeMirror()); + this.ydoc = e, this.provider = n, this.getAvatar = r, this.mainCodeMirror = null, this.newLocalComment = !1, this.positionManager = new u7(e), this.displayManager = new f7(), this.draggedComment = null, this.commentWithPopup = null, this.positionManager.commentPositions.observeDeep(() => this.updateMainCodeMirror()); } lineAuthors(e) { - return new c7(this.ydoc, this.provider, this.getAvatar, e); + return new h7(this.ydoc, this.provider, this.getAvatar, e); } positions() { return this.positionManager; @@ -25709,14 +25709,14 @@ const Ug = class { return this.mainCodeMirror.dom.querySelector(".cm-gutters").offsetWidth; } getTextForComment(e) { - return this.ydoc.getText(Ug.commentsPrefix + e); + return this.ydoc.getText(Gm.commentsPrefix + e); } delText(e) { let n = this.getTextForComment(e); n != null && n.parent && n.delete(); } newComment(e) { - const n = a7(); + const n = c7(); return this.positions().set(n, e.toString()), this.display().new(n), this.lineAuthors(n).mark(1), this.newLocalComment = !0, n; } deleteComment(e) { @@ -25779,17 +25779,17 @@ const Ug = class { } updateMainCodeMirror() { this.mainCodeMirror ? this.mainCodeMirror.dispatch({ - effects: fh.of(null) + effects: dh.of(null) }) : console.warn("[YComments] Failed to update the main CodeMirror instance since it doesn't exist."); } }; -let Xo = Ug; +let Xo = Gm; oo(Xo, "commentsPrefix", "comments/"); -const su = I.define({ +const ou = I.define({ combine: (t) => t[t.length - 1], static: !0 -}), fh = F.define(); -class f7 extends qt { +}), dh = F.define(); +class d7 extends qt { constructor(e, n) { super(), this.height = e, this.commentId = n; } @@ -25798,24 +25798,24 @@ class f7 extends qt { return e.id = this.commentId, e.classList = "comment-box", e.style.height = this.height + "px", e; } } -const d7 = (t, e) => L.widget({ - widget: new f7(t, e), +const p7 = (t, e) => L.widget({ + widget: new d7(t, e), side: 1e4, inlineOrder: !1, block: !0 -}), p7 = (t, e) => t.lineNumber - e.lineNumber, m7 = (t) => t.docChanged || t.effects.some((e) => e.is(fh)), g7 = (t) => [(e, { +}), g7 = (t, e) => t.lineNumber - e.lineNumber, m7 = (t) => t.docChanged || t.effects.some((e) => e.is(dh)), O7 = (t) => [(e, { commentId: n, lineNumber: r, height: i }) => { try { const s = t.newDoc.line(r).to; - e.add(s, s, d7(i, n)); + e.add(s, s, p7(i, n)); } catch (s) { console.warn(s), console.warn(`An error occured when rendering comment ${n}. Comment will not be shown.`); } return e; -}, new He()], O7 = (t, e) => { +}, new He()], b7 = (t, e) => { if (t.isUserEvent("input") || t.isUserEvent("delete")) { const n = t.state.doc.lines - t.startState.doc.lines; if (n != 0) { @@ -25823,16 +25823,16 @@ const d7 = (t, e) => L.widget({ e.positions().shift(i, n, r); } } -}, b7 = Ee.define({ +}, y7 = Ee.define({ create() { return new He().finish(); }, update(t, e) { if (m7(e)) { - const n = e.state.facet(su), r = ({ + const n = e.state.facet(ou), r = ({ isShown: i }) => i; - return O7(e, n), n.iterComments().filter(r).sort(p7).reduce(...g7(e)).finish(); + return b7(e, n), n.iterComments().filter(r).sort(g7).reduce(...O7(e)).finish(); } return t; }, @@ -25842,7 +25842,7 @@ const d7 = (t, e) => L.widget({ }), ci = class extends Ht { constructor(e, n) { var r; - super(), this.gutterMarker = null, this.icon = null, n && e && (this.ycomments = n.state.facet(su), this.lineNumber = n.state.doc.lineAt(e.to).number, this.commentId = (r = this.ycomments.findCommentOn(this.lineNumber)) == null ? void 0 : r.commentId); + super(), this.gutterMarker = null, this.icon = null, n && e && (this.ycomments = n.state.facet(ou), this.lineNumber = n.state.doc.lineAt(e.to).number, this.commentId = (r = this.ycomments.findCommentOn(this.lineNumber)) == null ? void 0 : r.commentId); } hasComments() { return Boolean(this.commentId); @@ -25864,28 +25864,28 @@ const d7 = (t, e) => L.widget({ }; let ai = ci; oo(ai, "MAIN_CLASS", "comment-gutter"), oo(ai, "ICON_CLASS", "comment-gutter-icon"), oo(ai, "COMMENT_IMAGE_CLASS", "comment-image"); -const y7 = (t, e, n) => { +const w7 = (t, e, n) => { var s; const r = t.state.doc.lineAt(e.to).number, i = (s = n.findCommentOn(r)) == null ? void 0 : s.commentId; return i || n.newComment(r); -}, w7 = Lh({ +}, k7 = Ih({ lineMarker(t, e) { return new ai(e, t); }, - lineMarkerChange: (t) => t.transactions.some((e) => e.effects.some((n) => n.is(fh))), + lineMarkerChange: (t) => t.transactions.some((e) => e.effects.some((n) => n.is(dh))), initialSpacer: () => new ai(null, null), domEventHandlers: { mouseup(t, e) { - let n = t.state.facet(su.reader), r = y7(t, e, n); + let n = t.state.facet(ou.reader), r = w7(t, e, n); n.display().switchVisibility(r), t.dispatch({ - effects: fh.of(null) + effects: dh.of(null) }); } } -}), k7 = (t) => [su.of(t), b7, w7, E.updateListener.of((e) => t.syncComments(e))], x7 = (t) => ["input", "delete", "undo", "redo"].some((e) => t.isUserEvent(e)), Al = I.define({ +}), x7 = (t) => [ou.of(t), y7, k7, E.updateListener.of((e) => t.syncComments(e))], v7 = (t) => ["input", "delete", "undo", "redo"].some((e) => t.isUserEvent(e)), Cl = I.define({ combine: (t) => t[t.length - 1], static: !0 -}), v7 = ke.fromClass(class { +}), S7 = ke.fromClass(class { constructor(t) { this.decorations = this.colorEditorLines(t); } @@ -25901,7 +25901,7 @@ const y7 = (t, e, n) => { }); } colorEditorLines(t) { - const e = t.state.facet(Al), n = new He(); + const e = t.state.facet(Cl), n = new He(); for (let r = 1; r <= t.state.doc.lines; r++) { const i = t.state.doc.line(r), s = e.get(r); s && n.add(i.from, i.from, this.markAuthor(s, r)); @@ -25909,7 +25909,7 @@ const y7 = (t, e, n) => { return n.finish(); } markLinesEditedInTransaction(t) { - const e = t.state.facet(Al); + const e = t.state.facet(Cl); t.changes.iterChangedRanges((n, r, i, s) => { const o = t.newDoc.lineAt(i), l = t.newDoc.lineAt(s), a = t.newDoc.slice(i, s).toString().trim().length == 0, c = t.state.doc.lines - t.startState.doc.lines; if (c > 0 && (a && !l.length ? e.insert(o.number + 1, c) : o.from == i ? e.insert(o.number, c) : (e.insert(o.number, c), e.mark(l.number))), c < 0) { @@ -25920,29 +25920,29 @@ const y7 = (t, e, n) => { }); } update(t) { - (t.docChanged || t.viewportChanged) && (t.transactions.filter(x7).forEach((e) => this.markLinesEditedInTransaction(e)), this.decorations = this.colorEditorLines(t.view)), t.view.dom.onmouseleave = () => t.view.dispatch({ - effects: Lp.of(null) + (t.docChanged || t.viewportChanged) && (t.transactions.filter(v7).forEach((e) => this.markLinesEditedInTransaction(e)), this.decorations = this.colorEditorLines(t.view)), t.view.dom.onmouseleave = () => t.view.dispatch({ + effects: Ip.of(null) }), t.view.dom.querySelectorAll(".cm-line").forEach((e) => { e.onmouseenter = (n) => t.view.dispatch({ - effects: Lp.of(parseInt(n.target.dataset.lineNumber)) + effects: Ip.of(parseInt(n.target.dataset.lineNumber)) }); }); } }, { decorations: (t) => t.decorations -}), Lp = F.define(), dh = Ee.define({ +}), Ip = F.define(), ph = Ee.define({ create() { return null; }, update(t, e) { var i; - const n = e.state.facet(Al), r = (i = e.effects.find((s) => s.is(Lp))) == null ? void 0 : i.value; + const n = e.state.facet(Cl), r = (i = e.effects.find((s) => s.is(Ip))) == null ? void 0 : i.value; return r ? n.firstLineOfSection(r) : null; } }); -class Jb extends Ht { +class ey extends Ht { constructor(e, n) { - super(), n && e && (this.lineNumber = n.state.doc.lineAt(e.to).number, this.lineAuthors = n.state.facet(Al), this.selectedLine = n.state.facet(dh)); + super(), n && e && (this.lineNumber = n.state.doc.lineAt(e.to).number, this.lineAuthors = n.state.facet(Cl), this.selectedLine = n.state.facet(ph)); } authorAvatar() { const { @@ -25955,11 +25955,11 @@ class Jb extends Ht { return this.selectedLine && this.selectedLine == this.lineNumber ? this.authorAvatar() : document.createElement("div"); } } -const S7 = Lh({ - lineMarker: (t, e) => new Jb(e, t), - lineMarkerChange: (t) => t.startState.field(dh) != t.state.field(dh), - initialSpacer: () => new Jb(null, null) -}), _7 = (t) => [Al.of(t), dh.init(null), S7, v7], C7 = TZ.filter((t, e) => e != 3), A7 = QZ.filter((t, e) => e != 1), $7 = (t) => { +const _7 = Ih({ + lineMarker: (t, e) => new ey(e, t), + lineMarkerChange: (t) => t.startState.field(ph) != t.state.field(ph), + initialSpacer: () => new ey(null, null) +}), C7 = (t) => [Cl.of(t), ph.init(null), _7, S7], A7 = Q5.filter((t, e) => e != 3), $7 = E5.filter((t, e) => e != 1), P7 = (t) => { const { from: e } = t.state.selection.main, n = t.state.doc.lineAt(e); @@ -25967,7 +25967,7 @@ const S7 = Lh({ line: n.number - 1, ch: e - n.from }; -}, P7 = (t, e) => { +}, T7 = (t, e) => { const { line: n, ch: r @@ -25985,15 +25985,15 @@ class Lr { this.important = [], this.base = e, this.extensions = Lr.defaultPlugins(); } static minimalSetup() { - return new Lr(A7); + return new Lr($7); } static basicSetup() { - return new Lr(C7); + return new Lr(A7); } static defaultPlugins() { - return [E.lineWrapping, zq(), Ix(), sr.of([GR, { + return [E.lineWrapping, Fq(), Nx(), sr.of([HR, { key: "Mod-Z", - run: qc + run: Bc }])]; } disable(e) { @@ -26006,25 +26006,25 @@ class Lr { return this.extensions.push(E.updateListener.of(e)), this; } useSpellcheck(e) { - return this.extensions.push(i7(e)), this; + return this.extensions.push(s7(e)), this; } useHighlighter(e) { - return this.extensions.push(l7(e)), this; + return this.extensions.push(a7(e)), this; } useComments({ enabled: e, ycomments: n }) { - return e ? (this.important.push(k7(n)), this) : this; + return e ? (this.important.push(x7(n)), this) : this; } showCommentLineAuthors(e) { - return this.important.push(_7(e)), this; + return this.important.push(C7(e)), this; } readonly() { return this.extensions.push(E.editable.of(!1), ne.readOnly.of(!0)), this; } useDefaultHistory() { - return this.base.push(Mm()), this; + return this.base.push(Zg()), this; } useCollaboration({ enabled: e = !0, @@ -26033,12 +26033,12 @@ class Lr { undoManager: i, editorRef: s }) { - return e ? (this.extensions.push(e3(n, r.awareness, { + return e ? (this.extensions.push(t3(n, r.awareness, { undoManager: i })), i && (i.on("stack-item-added", (o) => { - o.stackItem.meta.set("cursor-location", $7(s.current)); + o.stackItem.meta.set("cursor-location", P7(s.current)); }), i.on("stack-item-popped", (o) => { - P7(s.current, o.stackItem.meta.get("cursor-location")); + T7(s.current, o.stackItem.meta.get("cursor-location")); }), this.extensions.push(sr.of([{ key: "Mod-z", run: () => i.undo(), @@ -26057,7 +26057,7 @@ class Lr { return [...this.important, ...this.base, ...this.extensions]; } } -const T7 = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNSIgaGVpZ2h0PSIyMCIgdmlld0JveD0iMCAyIDIwIDEyIiBmaWxsPSJub25lIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik02LjM4NDk2IDUuMDkxNzRDNS45MDUwNyA1LjA5MTc0IDUuNTE0NjUgNS40ODIxNiA1LjUxNDY1IDUuOTYyMDVDNS41MTQ2NSA2LjE4OTc5IDUuNjA0MTIgNi40MTc1NCA1Ljc2Njc5IDYuNTgwMjFDNS45Mjk0NyA2Ljc0Mjg5IDYuMTQ5MDggNi44MzIzNiA2LjM4NDk2IDYuODMyMzZDNi42MjA4NCA2LjgzMjM2IDYuODQwNDUgNi43NDI4OSA3LjAwMzEzIDYuNTgwMjFDNy4xNjU4IDYuNDE3NTQgNy4yNTUyNyA2LjE5NzkzIDcuMjU1MjcgNS45NjIwNUM3LjI1NTI3IDUuNDgyMTYgNi44NjQ4NSA1LjA5MTc0IDYuMzg0OTYgNS4wOTE3NFoiIGZpbGw9IiMzMzJEMzciLz4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik04Ljk5NjI5IDUuMDkxNzRDOC41MTY0IDUuMDkxNzQgOC4xMjU5OCA1LjQ4MjE2IDguMTI1OTggNS45NjIwNUM4LjEyNTk4IDYuMTg5NzkgOC4yMTU0NSA2LjQxNzU0IDguMzc4MTIgNi41ODAyMUM4LjU0MDggNi43NDI4OSA4Ljc2MDQxIDYuODMyMzYgOC45OTYyOSA2LjgzMjM2QzkuMjMyMTcgNi44MzIzNiA5LjQ1MTc4IDYuNzQyODkgOS42MTQ0NSA2LjU4MDIxQzkuNzc3MTMgNi40MTc1NCA5Ljg2NjYgNi4xOTc5MyA5Ljg2NjYgNS45NjIwNUM5Ljg2NjYgNS40ODIxNiA5LjQ3NjE4IDUuMDkxNzQgOC45OTYyOSA1LjA5MTc0WiIgZmlsbD0iIzMzMkQzNyIvPgo8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTExLjYwNjYgNS4wOTE3NEMxMS4xMjY3IDUuMDkxNzQgMTAuNzM2MyA1LjQ4MjE2IDEwLjczNjMgNS45NjIwNUMxMC43MzYzIDYuMTg5NzkgMTAuODI1OCA2LjQxNzU0IDEwLjk4ODUgNi41ODAyMUMxMS4xNTExIDYuNzQyODkgMTEuMzcwOCA2LjgzMjM2IDExLjYwNjYgNi44MzIzNkMxMS44NDI1IDYuODMyMzYgMTIuMDYyMSA2Ljc0Mjg5IDEyLjIyNDggNi41ODAyMUMxMi4zODc1IDYuNDE3NTQgMTIuNDc3IDYuMTk3OTMgMTIuNDc3IDUuOTYyMDVDMTIuNDc3IDUuNDgyMTYgMTIuMDg2NSA1LjA5MTc0IDExLjYwNjYgNS4wOTE3NFoiIGZpbGw9IiMzMzJEMzciLz4KPHBhdGggZD0iTTE3LjEyOTggMTEuMDM3NVYwLjg2MjE4M0gwLjg2MjMwNVYxMC44NzQ4TDUuMTE2MjYgMTAuOTE1NUw5LjA1MyAxNC44NTIyTDEyLjg4NCAxMS4wMjk0TDE3LjEyOTggMTEuMDM3NVoiIHN0cm9rZT0iIzMzMkQzNyIgc3Ryb2tlLXdpZHRoPSIxLjUiLz4KPC9zdmc+", Q7 = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTgiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAxOCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTcuNzEzODcgNi4xNDI5NFYxMi41NzE1IiBzdHJva2U9IiNFNzQ3M0MiIHN0cm9rZS13aWR0aD0iMS43NSIvPgo8cGF0aCBkPSJNMTAuMjg1MiA2LjE0Mjg4VjEyLjU3MTUiIHN0cm9rZT0iI0U3NDczQyIgc3Ryb2tlLXdpZHRoPSIxLjc1Ii8+CjxwYXRoIGQ9Ik02LjQyODcxIDFIMTEuNTcxNiIgc3Ryb2tlPSIjRTc0NzNDIiBzdHJva2Utd2lkdGg9IjEuNzUiLz4KPHBhdGggZD0iTTAgMi4yODU2NEgxOCIgc3Ryb2tlPSIjRTc0NzNDIiBzdHJva2Utd2lkdGg9IjEuNzUiLz4KPHBhdGggZD0iTTEuOTI4NzEgMi4yODU2NEwzLjg1NzI4IDE4LjM1NzFIMTQuMTQzTDE2LjA3MTYgMi4yODU2NCIgc3Ryb2tlPSIjRTc0NzNDIiBzdHJva2Utd2lkdGg9IjEuNzUiLz4KPC9zdmc+Cg==", E7 = ae.div` +const Q7 = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNSIgaGVpZ2h0PSIyMCIgdmlld0JveD0iMCAyIDIwIDEyIiBmaWxsPSJub25lIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik02LjM4NDk2IDUuMDkxNzRDNS45MDUwNyA1LjA5MTc0IDUuNTE0NjUgNS40ODIxNiA1LjUxNDY1IDUuOTYyMDVDNS41MTQ2NSA2LjE4OTc5IDUuNjA0MTIgNi40MTc1NCA1Ljc2Njc5IDYuNTgwMjFDNS45Mjk0NyA2Ljc0Mjg5IDYuMTQ5MDggNi44MzIzNiA2LjM4NDk2IDYuODMyMzZDNi42MjA4NCA2LjgzMjM2IDYuODQwNDUgNi43NDI4OSA3LjAwMzEzIDYuNTgwMjFDNy4xNjU4IDYuNDE3NTQgNy4yNTUyNyA2LjE5NzkzIDcuMjU1MjcgNS45NjIwNUM3LjI1NTI3IDUuNDgyMTYgNi44NjQ4NSA1LjA5MTc0IDYuMzg0OTYgNS4wOTE3NFoiIGZpbGw9IiMzMzJEMzciLz4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik04Ljk5NjI5IDUuMDkxNzRDOC41MTY0IDUuMDkxNzQgOC4xMjU5OCA1LjQ4MjE2IDguMTI1OTggNS45NjIwNUM4LjEyNTk4IDYuMTg5NzkgOC4yMTU0NSA2LjQxNzU0IDguMzc4MTIgNi41ODAyMUM4LjU0MDggNi43NDI4OSA4Ljc2MDQxIDYuODMyMzYgOC45OTYyOSA2LjgzMjM2QzkuMjMyMTcgNi44MzIzNiA5LjQ1MTc4IDYuNzQyODkgOS42MTQ0NSA2LjU4MDIxQzkuNzc3MTMgNi40MTc1NCA5Ljg2NjYgNi4xOTc5MyA5Ljg2NjYgNS45NjIwNUM5Ljg2NjYgNS40ODIxNiA5LjQ3NjE4IDUuMDkxNzQgOC45OTYyOSA1LjA5MTc0WiIgZmlsbD0iIzMzMkQzNyIvPgo8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTExLjYwNjYgNS4wOTE3NEMxMS4xMjY3IDUuMDkxNzQgMTAuNzM2MyA1LjQ4MjE2IDEwLjczNjMgNS45NjIwNUMxMC43MzYzIDYuMTg5NzkgMTAuODI1OCA2LjQxNzU0IDEwLjk4ODUgNi41ODAyMUMxMS4xNTExIDYuNzQyODkgMTEuMzcwOCA2LjgzMjM2IDExLjYwNjYgNi44MzIzNkMxMS44NDI1IDYuODMyMzYgMTIuMDYyMSA2Ljc0Mjg5IDEyLjIyNDggNi41ODAyMUMxMi4zODc1IDYuNDE3NTQgMTIuNDc3IDYuMTk3OTMgMTIuNDc3IDUuOTYyMDVDMTIuNDc3IDUuNDgyMTYgMTIuMDg2NSA1LjA5MTc0IDExLjYwNjYgNS4wOTE3NFoiIGZpbGw9IiMzMzJEMzciLz4KPHBhdGggZD0iTTE3LjEyOTggMTEuMDM3NVYwLjg2MjE4M0gwLjg2MjMwNVYxMC44NzQ4TDUuMTE2MjYgMTAuOTE1NUw5LjA1MyAxNC44NTIyTDEyLjg4NCAxMS4wMjk0TDE3LjEyOTggMTEuMDM3NVoiIHN0cm9rZT0iIzMzMkQzNyIgc3Ryb2tlLXdpZHRoPSIxLjUiLz4KPC9zdmc+", E7 = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTgiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAxOCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTcuNzEzODcgNi4xNDI5NFYxMi41NzE1IiBzdHJva2U9IiNFNzQ3M0MiIHN0cm9rZS13aWR0aD0iMS43NSIvPgo8cGF0aCBkPSJNMTAuMjg1MiA2LjE0Mjg4VjEyLjU3MTUiIHN0cm9rZT0iI0U3NDczQyIgc3Ryb2tlLXdpZHRoPSIxLjc1Ii8+CjxwYXRoIGQ9Ik02LjQyODcxIDFIMTEuNTcxNiIgc3Ryb2tlPSIjRTc0NzNDIiBzdHJva2Utd2lkdGg9IjEuNzUiLz4KPHBhdGggZD0iTTAgMi4yODU2NEgxOCIgc3Ryb2tlPSIjRTc0NzNDIiBzdHJva2Utd2lkdGg9IjEuNzUiLz4KPHBhdGggZD0iTTEuOTI4NzEgMi4yODU2NEwzLjg1NzI4IDE4LjM1NzFIMTQuMTQzTDE2LjA3MTYgMi4yODU2NCIgc3Ryb2tlPSIjRTc0NzNDIiBzdHJva2Utd2lkdGg9IjEuNzUiLz4KPC9zdmc+Cg==", D7 = fe.div` position: absolute; top: ${(t) => t.top + 20}px; left: ${(t) => t.left + 19}px; @@ -26099,12 +26099,12 @@ const T7 = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMj position: absolute; transform: translateX(-30px); } -`, D7 = ({ +`, R7 = ({ ycomments: t, commentId: e }) => { let n = Nn(null); - const r = rt(() => t.lineAuthors(e), [e]), i = nm((l) => l.heightChanged && t.updateHeight(e, n.current.clientHeight), [e]), s = t.parentLineHeight(e) + 3.8; + const r = rt(() => t.lineAuthors(e), [e]), i = rg((l) => l.heightChanged && t.updateHeight(e, n.current.clientHeight), [e]), s = t.parentLineHeight(e) + 3.8; Pt(() => { if (!n.current) return; @@ -26131,34 +26131,34 @@ const T7 = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMj }, o.current.ondragend = () => { t.draggedComment = null, t.display().update(); }); - }, [o.current]), K` <${E7} + }, [o.current]), H` <${D7} left=${t.marginLeft()} top=${t.display().offset(e)} fade=${t.draggedComment == e} >
- ${t.commentWithPopup == e && K` - <${R7} + ${t.commentWithPopup == e && H` + <${M7} left=${t.marginLeft()} shift=${s} onMouseLeave=${() => { t.commentWithPopup = null, t.updateMainCodeMirror(); }} > - + - <${Z7} onClick=${() => t.deleteComment(e)} /> + <${L7} onClick=${() => t.deleteComment(e)} /> `}
`; -}, R7 = ae.div` +}, M7 = fe.div` width: 114px; height: 25px; border-radius: 2px; @@ -26181,7 +26181,7 @@ const T7 = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMj svg { box-sizing: content-box; } -`, M7 = ae.div` +`, Z7 = fe.div` display: inline-flex; cursor: pointer; position: absolute; @@ -26211,34 +26211,34 @@ const T7 = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMj margin-left: 5px; box-sizing: content-box; } -`, Z7 = ({ +`, L7 = ({ onClick: t -}) => K` - <${M7} onClick=${t}> - +}) => H` + <${Z7} onClick=${t}> + DELETE - `, L7 = ({ + `, I7 = ({ ycomments: t }) => { let e = ({ commentId: s - }) => K`<${D7} ...${{ + }) => H`<${R7} ...${{ key: s, commentId: s, ycomments: t }} />`, n = () => t.iterComments().map(e), [r, i] = Me(n()); - return t.display().onUpdate(() => i(n())), K` ${r} `; + return t.display().onUpdate(() => i(n())), H` ${r} `; }; -function I7(t, e, n) { +function N7(t, e, n) { return !t || !e ? null : rt(() => new Xo(t, e, n), []); } -const N7 = ` +const q7 = ` -`, VC = ae.div` +`, jC = fe.div` border-radius: var(--border-radius); background: var(--gray-200); font-family: monospace; @@ -26266,7 +26266,7 @@ const N7 = ` encodeURIComponent(N7)}"); + background-image: url("data:image/svg+xml;charset=UTF-8,${(t) => encodeURIComponent(q7)}"); background-repeat: no-repeat; } @@ -26351,9 +26351,9 @@ const N7 = ` { +`, Y7 = (t, e) => { t.dispatch({ changes: { from: 0, @@ -26361,7 +26361,7 @@ const N7 = ` { var b; - if (i.enabled && g) { + if (i.enabled && m) { t.readyToRender(), (b = c.current) == null || b.destroy(); const y = new E({ state: ne.create({ @@ -26393,8 +26393,8 @@ const N7 = ` { - if (i.enabled && !m || c.current || g) + }, [m]), Pt(() => { + if (i.enabled && !g || c.current || m) return; i.enabled && t.set(d.toString()), t.readyToRender(); const b = ne.create({ @@ -26413,18 +26413,18 @@ const N7 = ` B7(y, w)), () => { + return c.current = y, O == null || O.registerCodeMirror(y), u == null || u.watchCollabolators(l), t.onSync((w) => Y7(y, w)), () => { i.enabled && (u.disconnect(), p.destroy()), y.destroy(); }; - }, [m]), K` - <${VC} className="main-editor" ref=${h} $mode=${r} id="${e}-editor"> - ${g && K`
No connection to the collaboration server
`} - ${i.enabled && !m && !g && K`
Connecting to the collaboration server ...
`} - ${i.commentsEnabled && !g ? K`<${L7} ycomments=${O} />` : ""} + }, [g]), H` + <${jC} className="main-editor" ref=${h} $mode=${r} id="${e}-editor"> + ${m && H`
No connection to the collaboration server
`} + ${i.enabled && !g && !m && H`
Connecting to the collaboration server ...
`} + ${i.commentsEnabled && !m ? H`<${I7} ycomments=${O} />` : ""} - <${q7} value=${t.get()} name=${n} id=${e}> + <${B7} value=${t.get()} name=${n} id=${e}> `; -}, jC = ae.div` +}, zC = fe.div` background-color: white; padding: 20px; min-height: 150px; @@ -26754,7 +26754,7 @@ const N7 = ` $o * 16) - return Math.min(o, l) > $o * 64 ? [new Ze(e, n, i, s)] : ey(t, e, n, r, i, s); + return Math.min(o, l) > $o * 64 ? [new Ze(e, n, i, s)] : ty(t, e, n, r, i, s); let a = Math.ceil((o + l) / 2); Pf.reset(a), Tf.reset(a); let c = (d, p) => t.charCodeAt(e + d) == r.charCodeAt(i + p), h = (d, p) => t.charCodeAt(n - d - 1) == r.charCodeAt(s - p - 1), u = (o - l) % 2 != 0 ? Tf : null, f = u ? null : Pf; for (let d = 0; d < a; d++) { if (d > $o) - return ey(t, e, n, r, i, s); + return ty(t, e, n, r, i, s); let p = Pf.advance(d, o, l, a, u, !1, c) || Tf.advance(d, o, l, a, f, !0, h); if (p) - return W7(t, e, n, e + p[0], r, i, s, i + p[1]); + return V7(t, e, n, e + p[0], r, i, s, i + p[1]); } return [new Ze(e, n, i, s)]; } -class zC { +class FC { constructor() { this.vec = []; } @@ -26850,21 +26850,21 @@ class zC { return null; } } -const Pf = /* @__PURE__ */ new zC(), Tf = /* @__PURE__ */ new zC(); -function W7(t, e, n, r, i, s, o, l) { +const Pf = /* @__PURE__ */ new FC(), Tf = /* @__PURE__ */ new FC(); +function V7(t, e, n, r, i, s, o, l) { let a = !1; return !Is(t, r) && ++r == n && (a = !0), !Is(i, l) && ++l == o && (a = !0), a ? [new Ze(e, n, s, o)] : Qi(t, e, r, i, s, l).concat(Qi(t, r, n, i, l, o)); } -function FC(t, e) { +function UC(t, e) { let n = 1, r = Math.min(t, e); for (; n < r; ) n = n << 1; return n; } -function Cg(t, e, n, r, i, s) { +function Am(t, e, n, r, i, s) { if (e == n || e == s || t.charCodeAt(e) != r.charCodeAt(i)) return 0; - let o = FC(n - e, s - i); + let o = UC(n - e, s - i); for (let l = e, a = i; ; ) { let c = l + o, h = a + o; if (c > n || h > s || t.slice(l, c) != r.slice(a, h)) { @@ -26878,10 +26878,10 @@ function Cg(t, e, n, r, i, s) { } } } -function Ag(t, e, n, r, i, s) { +function $m(t, e, n, r, i, s) { if (e == n || i == s || t.charCodeAt(n - 1) != r.charCodeAt(s - 1)) return 0; - let o = FC(n - e, s - i); + let o = UC(n - e, s - i); for (let l = n, a = s; ; ) { let c = l - o, h = a - o; if (c < e || h < i || t.slice(c, l) != r.slice(h, a)) { @@ -26895,7 +26895,7 @@ function Ag(t, e, n, r, i, s) { } } } -function Ip(t, e, n, r, i, s, o, l) { +function Np(t, e, n, r, i, s, o, l) { let a = r.slice(i, s), c = null; for (; ; ) { if (c || o < l) @@ -26907,8 +26907,8 @@ function Ip(t, e, n, r, i, s, o, l) { break; let f = t.slice(h, u), d = -1; for (; (d = a.indexOf(f, d + 1)) != -1; ) { - let p = Cg(t, u, n, r, i + d + f.length, s), m = Ag(t, e, h, r, i, i + d), g = f.length + p + m; - (!c || c[2] < g) && (c = [h - m, i + d - m, g]); + let p = Am(t, u, n, r, i + d + f.length, s), g = $m(t, e, h, r, i, i + d), m = f.length + p + g; + (!c || c[2] < m) && (c = [h - g, i + d - g, m]); } h = u; } @@ -26917,39 +26917,39 @@ function Ip(t, e, n, r, i, s, o, l) { o = o >> 1; } } -function UC(t, e, n, r, i, s) { +function GC(t, e, n, r, i, s) { let o = n - e, l = s - i; if (o < l) { - let a = UC(r, i, s, t, e, n); + let a = GC(r, i, s, t, e, n); return a && [a[1], a[0], a[2]]; } - return o < 4 || l * 2 < o ? null : Ip(t, e, n, r, i, s, Math.floor(o / 4), -1); + return o < 4 || l * 2 < o ? null : Np(t, e, n, r, i, s, Math.floor(o / 4), -1); } -function ey(t, e, n, r, i, s) { +function ty(t, e, n, r, i, s) { let o = n - e, l = s - i, a; if (o < l) { - let f = Ip(r, i, s, t, e, n, Math.floor(o / 6), 50); + let f = Np(r, i, s, t, e, n, Math.floor(o / 6), 50); a = f && [f[1], f[0], f[2]]; } else - a = Ip(t, e, n, r, i, s, Math.floor(l / 6), 50); + a = Np(t, e, n, r, i, s, Math.floor(l / 6), 50); if (!a) return [new Ze(e, n, i, s)]; let [c, h, u] = a; return Qi(t, e, c, r, i, h).concat(Qi(t, c + u, n, r, h + u, s)); } -function GC(t, e) { +function HC(t, e) { for (let n = 1; n < t.length; n++) { let r = t[n - 1], i = t[n]; r.toA > i.fromA - e && r.toB > i.fromB - e && (t[n - 1] = new Ze(r.fromA, i.toA, r.fromB, i.toB), t.splice(n--, 1)); } } -function V7(t, e, n) { +function j7(t, e, n) { for (; ; ) { - GC(n, 1); + HC(n, 1); let r = !1; for (let i = 0; i < n.length; i++) { let s = n[i], o, l; - (o = Cg(t, s.fromA, s.toA, e, s.fromB, s.toB)) && (s = n[i] = new Ze(s.fromA + o, s.toA, s.fromB + o, s.toB)), (l = Ag(t, s.fromA, s.toA, e, s.fromB, s.toB)) && (s = n[i] = new Ze(s.fromA, s.toA - l, s.fromB, s.toB - l)); + (o = Am(t, s.fromA, s.toA, e, s.fromB, s.toB)) && (s = n[i] = new Ze(s.fromA + o, s.toA, s.fromB + o, s.toB)), (l = $m(t, s.fromA, s.toA, e, s.fromB, s.toB)) && (s = n[i] = new Ze(s.fromA, s.toA - l, s.fromB, s.toB - l)); let a = s.toA - s.fromA, c = s.toB - s.fromB; if (a && c) continue; @@ -26964,63 +26964,63 @@ function V7(t, e, n) { } return n; } -function j7(t, e, n) { +function z7(t, e, n) { for (let r = 0, i = 0; i < t.length; i++) { let s = t[i], o = s.toA - s.fromA, l = s.toB - s.fromB; if (o && l || o > 3 || l > 3) { - let a = i == t.length - 1 ? e.length : t[i + 1].fromA, c = s.fromA - r, h = a - s.toA, u = ny(e, s.fromA, Math.min(c, 5)), f = ty(e, s.toA, Math.min(h, 5)), d = s.fromA - u, p = f - s.toA; + let a = i == t.length - 1 ? e.length : t[i + 1].fromA, c = s.fromA - r, h = a - s.toA, u = ry(e, s.fromA, Math.min(c, 5)), f = ny(e, s.toA, Math.min(h, 5)), d = s.fromA - u, p = f - s.toA; if (!o || !l) { - let m = Math.max(o, l), [g, O, b] = o ? [e, s.fromA, s.toA] : [n, s.fromB, s.toB], y, w; - d && p ? (m > d && e.slice(u, s.fromA) == g.slice(b - d, b) ? (s = t[i] = new Ze(u, u + o, s.fromB - d, s.toB - d), u = s.fromA, f = ty(e, s.toA, Math.min(a - s.toA, 5))) : m > p && e.slice(s.toA, f) == g.slice(O, O + p) && (s = t[i] = new Ze(f - o, f, s.fromB + p, s.toB + p), f = s.toA, u = ny(e, s.fromA, Math.min(s.fromA - r, 5))), d = s.fromA - u, p = f - s.toA) : !d && !p && (w = s.fromA - (y = z7(e, s.fromA, c))) && e.slice(y, s.fromA) == g.slice(b - w, b) && (s = t[i] = new Ze(y, y + o, s.fromB - w, s.toB - w)); + let g = Math.max(o, l), [m, O, b] = o ? [e, s.fromA, s.toA] : [n, s.fromB, s.toB], y, w; + d && p ? (g > d && e.slice(u, s.fromA) == m.slice(b - d, b) ? (s = t[i] = new Ze(u, u + o, s.fromB - d, s.toB - d), u = s.fromA, f = ny(e, s.toA, Math.min(a - s.toA, 5))) : g > p && e.slice(s.toA, f) == m.slice(O, O + p) && (s = t[i] = new Ze(f - o, f, s.fromB + p, s.toB + p), f = s.toA, u = ry(e, s.fromA, Math.min(s.fromA - r, 5))), d = s.fromA - u, p = f - s.toA) : !d && !p && (w = s.fromA - (y = F7(e, s.fromA, c))) && e.slice(y, s.fromA) == m.slice(b - w, b) && (s = t[i] = new Ze(y, y + o, s.fromB - w, s.toB - w)); } (d || p) && (s = t[i] = new Ze(s.fromA - d, s.toA + p, s.fromB - d, s.toB + p)), r = s.toA; } } - return GC(t, 3), t; + return HC(t, 3), t; } let wi; try { wi = /* @__PURE__ */ new RegExp("[\\p{Alphabetic}\\p{Number}]", "u"); } catch { } -function HC(t) { +function KC(t) { return t > 48 && t < 58 || t > 64 && t < 91 || t > 96 && t < 123; } -function KC(t, e) { +function JC(t, e) { if (e == t.length) return 0; let n = t.charCodeAt(e); - return n < 192 ? HC(n) ? 1 : 0 : wi ? !eA(n) || e == t.length - 1 ? wi.test(String.fromCharCode(n)) ? 1 : 0 : wi.test(t.slice(e, e + 2)) ? 2 : 0 : 0; + return n < 192 ? KC(n) ? 1 : 0 : wi ? !tA(n) || e == t.length - 1 ? wi.test(String.fromCharCode(n)) ? 1 : 0 : wi.test(t.slice(e, e + 2)) ? 2 : 0 : 0; } -function JC(t, e) { +function eA(t, e) { if (!e) return 0; let n = t.charCodeAt(e - 1); - return n < 192 ? HC(n) ? 1 : 0 : wi ? !tA(n) || e == 1 ? wi.test(String.fromCharCode(n)) ? 1 : 0 : wi.test(t.slice(e - 2, e)) ? 2 : 0 : 0; + return n < 192 ? KC(n) ? 1 : 0 : wi ? !nA(n) || e == 1 ? wi.test(String.fromCharCode(n)) ? 1 : 0 : wi.test(t.slice(e - 2, e)) ? 2 : 0 : 0; } -function ty(t, e, n) { - if (e == t.length || !JC(t, e)) +function ny(t, e, n) { + if (e == t.length || !eA(t, e)) return e; for (let r = e, i = e + n; ; ) { - let s = KC(t, r); + let s = JC(t, r); if (!s) return r; if (r += s, r > i) return e; } } -function ny(t, e, n) { - if (!e || !KC(t, e)) +function ry(t, e, n) { + if (!e || !JC(t, e)) return e; for (let r = e, i = e - n; ; ) { - let s = JC(t, r); + let s = eA(t, r); if (!s) return r; if (r -= s, r < i) return e; } } -function z7(t, e, n) { +function F7(t, e, n) { for (let r = e, i = e - n; ; ) { let s = r ? t.charCodeAt(r - 1) : 10; if (s == 10) @@ -27029,26 +27029,26 @@ function z7(t, e, n) { return e; } } -const eA = (t) => t >= 55296 && t <= 56319, tA = (t) => t >= 56320 && t <= 57343; +const tA = (t) => t >= 55296 && t <= 56319, nA = (t) => t >= 56320 && t <= 57343; function Is(t, e) { - return !e || e == t.length || !eA(t.charCodeAt(e - 1)) || !tA(t.charCodeAt(e)); + return !e || e == t.length || !tA(t.charCodeAt(e - 1)) || !nA(t.charCodeAt(e)); } -function F7(t, e, n) { +function U7(t, e, n) { var r; - return $o = ((r = n == null ? void 0 : n.scanLimit) !== null && r !== void 0 ? r : 1e9) >> 1, V7(t, e, Qi(t, 0, t.length, e, 0, e.length)); + return $o = ((r = n == null ? void 0 : n.scanLimit) !== null && r !== void 0 ? r : 1e9) >> 1, j7(t, e, Qi(t, 0, t.length, e, 0, e.length)); } -function nA(t, e, n) { - return j7(F7(t, e, n), t, e); +function rA(t, e, n) { + return z7(U7(t, e, n), t, e); } const En = /* @__PURE__ */ I.define({ combine: (t) => t[0] -}), Np = /* @__PURE__ */ F.define(), Ns = /* @__PURE__ */ Ee.define({ +}), qp = /* @__PURE__ */ F.define(), Ns = /* @__PURE__ */ Ee.define({ create(t) { return null; }, update(t, e) { for (let n of e.effects) - n.is(Np) && (t = n.value); + n.is(qp) && (t = n.value); return t; } }); @@ -27066,39 +27066,39 @@ class ds { return Math.max(this.fromB, this.toB - 1); } static build(e, n, r) { - return rA(nA(e.toString(), n.toString(), r), e, n, 0, 0); + return iA(rA(e.toString(), n.toString(), r), e, n, 0, 0); } static updateA(e, n, r, i, s) { - return ly(oy(e, i, !0, r.length), e, n, r, s); + return ay(ly(e, i, !0, r.length), e, n, r, s); } static updateB(e, n, r, i, s) { - return ly(oy(e, i, !1, n.length), e, n, r, s); + return ay(ly(e, i, !1, n.length), e, n, r, s); } } -function ry(t, e, n, r) { +function iy(t, e, n, r) { let i = n.lineAt(t), s = r.lineAt(e); return i.to == t && s.to == e && t < n.length && e < r.length ? [t + 1, e + 1] : [i.from, s.from]; } -function iy(t, e, n, r) { +function sy(t, e, n, r) { let i = n.lineAt(t), s = r.lineAt(e); return i.from == t && s.from == e ? [t, e] : [i.to + 1, s.to + 1]; } -function rA(t, e, n, r, i) { +function iA(t, e, n, r, i) { let s = []; for (let o = 0; o < t.length; o++) { - let l = t[o], [a, c] = ry(l.fromA + r, l.fromB + i, e, n), [h, u] = iy(l.toA + r, l.toB + i, e, n), f = [l.offset(-a + r, -c + i)]; + let l = t[o], [a, c] = iy(l.fromA + r, l.fromB + i, e, n), [h, u] = sy(l.toA + r, l.toB + i, e, n), f = [l.offset(-a + r, -c + i)]; for (; o < t.length - 1; ) { - let d = t[o + 1], [p, m] = ry(d.fromA + r, d.fromB + i, e, n); - if (p > h + 1 && m > u + 1) + let d = t[o + 1], [p, g] = iy(d.fromA + r, d.fromB + i, e, n); + if (p > h + 1 && g > u + 1) break; - f.push(d.offset(-a + r, -c + i)), [h, u] = iy(d.toA + r, d.toB + i, e, n), o++; + f.push(d.offset(-a + r, -c + i)), [h, u] = sy(d.toA + r, d.toB + i, e, n), o++; } s.push(new ds(f, a, Math.max(a, h), c, Math.max(c, u))); } return s; } const Na = 1e3; -function sy(t, e, n, r) { +function oy(t, e, n, r) { let i = 0, s = t.length; for (; ; ) { if (i == s) { @@ -27116,23 +27116,23 @@ function sy(t, e, n, r) { return r ? [l.fromA, l.fromB] : [l.toA, l.toB]; } } -function oy(t, e, n, r) { +function ly(t, e, n, r) { let i = []; return e.iterChangedRanges((s, o, l, a) => { let c = 0, h = n ? e.length : r, u = 0, f = n ? r : e.length; - s > Na && ([c, u] = sy(t, s - Na, n, !0)), o < e.length - Na && ([h, f] = sy(t, o + Na, n, !1)); - let d = a - l - (o - s), p, [m, g] = n ? [d, 0] : [0, d]; + s > Na && ([c, u] = oy(t, s - Na, n, !0)), o < e.length - Na && ([h, f] = oy(t, o + Na, n, !1)); + let d = a - l - (o - s), p, [g, m] = n ? [d, 0] : [0, d]; i.length && (p = i[i.length - 1]).toA >= c ? i[i.length - 1] = { fromA: p.fromA, fromB: p.fromB, toA: h, toB: f, - diffA: p.diffA + m, - diffB: p.diffB + g - } : i.push({ fromA: c, toA: h, fromB: u, toB: f, diffA: m, diffB: g }); + diffA: p.diffA + g, + diffB: p.diffB + m + } : i.push({ fromA: c, toA: h, fromB: u, toB: f, diffA: g, diffB: m }); }), i; } -function ly(t, e, n, r, i) { +function ay(t, e, n, r, i) { if (!t.length) return e; let s = 0, o = 0, l = 0, a = []; @@ -27146,7 +27146,7 @@ function ly(t, e, n, r, i) { break; s++; } - for (let p of rA(nA(n.sliceString(h, u), r.sliceString(f, d), i), n, r, h, f)) + for (let p of iA(rA(n.sliceString(h, u), r.sliceString(f, d), i), n, r, h, f)) a.push(p); o += c.diffA, l += c.diffB; } @@ -27154,47 +27154,47 @@ function ly(t, e, n, r, i) { a.push(e[s++].offset(o, l)); return a; } -const iA = /* @__PURE__ */ ke.fromClass(class { +const sA = /* @__PURE__ */ ke.fromClass(class { constructor(t) { - ({ deco: this.deco, gutter: this.gutter } = hy(t)); + ({ deco: this.deco, gutter: this.gutter } = uy(t)); } update(t) { - (t.docChanged || t.viewportChanged || U7(t.startState, t.state) || G7(t.startState, t.state)) && ({ deco: this.deco, gutter: this.gutter } = hy(t.view)); + (t.docChanged || t.viewportChanged || G7(t.startState, t.state) || H7(t.startState, t.state)) && ({ deco: this.deco, gutter: this.gutter } = uy(t.view)); } }, { decorations: (t) => t.deco -}), qa = /* @__PURE__ */ bn.low(/* @__PURE__ */ Lh({ +}), qa = /* @__PURE__ */ bn.low(/* @__PURE__ */ Ih({ class: "cm-changeGutter", markers: (t) => { var e; - return ((e = t.plugin(iA)) === null || e === void 0 ? void 0 : e.gutter) || ie.empty; + return ((e = t.plugin(sA)) === null || e === void 0 ? void 0 : e.gutter) || ie.empty; } })); -function U7(t, e) { +function G7(t, e) { return t.field(Ns, !1) != e.field(Ns, !1); } -function G7(t, e) { +function H7(t, e) { return t.facet(En) != e.facet(En); } -const ay = /* @__PURE__ */ L.line({ class: "cm-changedLine" }), H7 = /* @__PURE__ */ L.mark({ class: "cm-changedText" }), K7 = /* @__PURE__ */ L.mark({ tagName: "ins", class: "cm-insertedLine" }), J7 = /* @__PURE__ */ L.mark({ tagName: "del", class: "cm-deletedLine" }), cy = /* @__PURE__ */ new class extends Ht { +const cy = /* @__PURE__ */ L.line({ class: "cm-changedLine" }), K7 = /* @__PURE__ */ L.mark({ class: "cm-changedText" }), J7 = /* @__PURE__ */ L.mark({ tagName: "ins", class: "cm-insertedLine" }), e4 = /* @__PURE__ */ L.mark({ tagName: "del", class: "cm-deletedLine" }), hy = /* @__PURE__ */ new class extends Ht { constructor() { super(...arguments), this.elementClass = "cm-changedLineGutter"; } }(); -function eB(t, e, n, r, i, s) { +function t4(t, e, n, r, i, s) { let o = n ? t.fromA : t.fromB, l = n ? t.toA : t.toB, a = 0; if (o != l) { - i.add(o, o, ay), i.add(o, l, n ? J7 : K7), s && s.add(o, o, cy); + i.add(o, o, cy), i.add(o, l, n ? e4 : J7), s && s.add(o, o, hy); for (let c = e.iterRange(o, l - 1), h = o; !c.next().done; ) { if (c.lineBreak) { - h++, i.add(h, h, ay), s && s.add(h, h, cy); + h++, i.add(h, h, cy), s && s.add(h, h, hy); continue; } let u = h + c.value.length; if (r) for (; a < t.changes.length; ) { - let f = t.changes[a], d = o + (n ? f.fromA : f.fromB), p = o + (n ? f.toA : f.toB), m = Math.max(h, d), g = Math.min(u, p); - if (m < g && i.add(m, g, H7), p < u) + let f = t.changes[a], d = o + (n ? f.fromA : f.fromB), p = o + (n ? f.toA : f.toB), g = Math.max(h, d), m = Math.min(u, p); + if (g < m && i.add(g, m, K7), p < u) a++; else break; @@ -27203,12 +27203,12 @@ function eB(t, e, n, r, i, s) { } } } -function hy(t) { +function uy(t) { let e = t.state.field(Ns), { side: n, highlightChanges: r, markGutter: i } = t.state.facet(En), s = n == "a", o = new He(), l = i ? new He() : null, { from: a, to: c } = t.viewport; for (let h of e) { if ((s ? h.fromA : h.fromB) >= c) break; - (s ? h.toA : h.toB) > a && eB(h, t.state.doc, s, r, o, l); + (s ? h.toA : h.toB) > a && t4(h, t.state.doc, s, r, o, l); } return { deco: o.finish(), gutter: l && l.finish() }; } @@ -27233,24 +27233,24 @@ class Ba extends qt { return !1; } } -const ph = /* @__PURE__ */ F.define({ +const gh = /* @__PURE__ */ F.define({ map: (t, e) => t.map(e) }), Po = /* @__PURE__ */ Ee.define({ create: () => L.none, update: (t, e) => { for (let n of e.effects) - if (n.is(ph)) + if (n.is(gh)) return n.value; return t.map(e.changes); }, provide: (t) => E.decorations.from(t) }), Ya = 0.01; -function tB(t, e, n) { +function n4(t, e, n) { let r = new He(), i = new He(), s = t.state.field(Po).iter(), o = e.state.field(Po).iter(), l = 0, a = 0, c = 0, h = 0; for (let p = 0; ; p++) { - let m = p < n.length ? n[p] : null; - if (l < (m ? m.fromA : t.state.doc.length)) { - let g = t.lineBlockAt(l).top + c, O = e.lineBlockAt(a).top + h, b = g - O; + let g = p < n.length ? n[p] : null; + if (l < (g ? g.fromA : t.state.doc.length)) { + let m = t.lineBlockAt(l).top + c, O = e.lineBlockAt(a).top + h, b = m - O; b < -Ya ? (c -= b, r.add(l, l, L.widget({ widget: new Ba(-b), block: !0, @@ -27261,9 +27261,9 @@ function tB(t, e, n) { side: -1 }))); } - if (!m) + if (!g) break; - for (l = m.toA, a = m.toB; s.value && s.from < l; ) + for (l = g.toA, a = g.toB; s.value && s.from < l; ) c -= s.value.spec.widget.height, s.next(); for (; o.value && o.from < a; ) h -= o.value.spec.widget.height, o.next(); @@ -27283,12 +27283,12 @@ function tB(t, e, n) { side: 1 })); let f = r.finish(), d = i.finish(); - ie.eq([f], [t.state.field(Po)]) || t.dispatch({ effects: ph.of(f) }), ie.eq([d], [e.state.field(Po)]) || e.dispatch({ effects: ph.of(d) }); + ie.eq([f], [t.state.field(Po)]) || t.dispatch({ effects: gh.of(f) }), ie.eq([d], [e.state.field(Po)]) || e.dispatch({ effects: gh.of(d) }); } -const qp = /* @__PURE__ */ F.define({ +const Bp = /* @__PURE__ */ F.define({ map: (t, e) => e.mapPos(t) }); -class nB extends qt { +class r4 extends qt { constructor(e) { super(), this.lines = e; } @@ -27299,9 +27299,9 @@ class nB extends qt { let n = document.createElement("div"); return n.className = "cm-collapsedLines", n.textContent = "\u299A " + e.state.phrase("$ unchanged lines", this.lines) + " \u299A", n.addEventListener("click", (r) => { let i = e.posAtDOM(r.target); - e.dispatch({ effects: qp.of(i) }); + e.dispatch({ effects: Bp.of(i) }); let { side: s, sibling: o } = e.state.facet(En); - o && o().dispatch({ effects: qp.of(rB(i, e.state.field(Ns), s == "a")) }); + o && o().dispatch({ effects: Bp.of(i4(i, e.state.field(Ns), s == "a")) }); }), n; } ignoreEvent(e) { @@ -27311,7 +27311,7 @@ class nB extends qt { return 27; } } -function rB(t, e, n) { +function i4(t, e, n) { let r = 0, i = 0; for (let s = 0; ; s++) { let o = s < e.length ? e[s] : null; @@ -27320,27 +27320,27 @@ function rB(t, e, n) { [r, i] = n ? [o.toA, o.toB] : [o.toB, o.toA]; } } -const iB = /* @__PURE__ */ Ee.define({ +const s4 = /* @__PURE__ */ Ee.define({ create(t) { return L.none; }, update(t, e) { t = t.map(e.changes); for (let n of e.effects) - n.is(qp) && (t = t.update({ filter: (r) => r != n.value })); + n.is(Bp) && (t = t.update({ filter: (r) => r != n.value })); return t; }, provide: (t) => E.decorations.from(t) }); -function uy({ margin: t = 3, minSize: e = 4 }) { - return iB.init((n) => sB(n, t, e)); +function fy({ margin: t = 3, minSize: e = 4 }) { + return s4.init((n) => o4(n, t, e)); } -function sB(t, e, n) { +function o4(t, e, n) { let r = new He(), i = t.facet(En).side == "a", s = t.field(Ns), o = 1; for (let l = 0; ; l++) { let a = l < s.length ? s[l] : null, c = l ? o + e : 1, h = a ? t.doc.lineAt(i ? a.fromA : a.fromB).number - 1 - e : t.doc.lines, u = h - c + 1; if (u >= n && r.add(t.doc.line(c).from, t.doc.line(h).to, L.replace({ - widget: new nB(u), + widget: new r4(u), block: !0 })), !a) break; @@ -27348,7 +27348,7 @@ function sB(t, e, n) { } return r.finish(); } -const oB = /* @__PURE__ */ E.styleModule.of(/* @__PURE__ */ new hr({ +const l4 = /* @__PURE__ */ E.styleModule.of(/* @__PURE__ */ new hr({ ".cm-mergeView": { overflowY: "auto" }, @@ -27378,7 +27378,7 @@ const oB = /* @__PURE__ */ E.styleModule.of(/* @__PURE__ */ new hr({ font: "inherit", cursor: "pointer" } -})), lB = /* @__PURE__ */ E.baseTheme({ +})), a4 = /* @__PURE__ */ E.baseTheme({ ".cm-mergeView & .cm-scroller, .cm-mergeView &": { height: "auto !important", overflowY: "visible !important" @@ -27437,17 +27437,17 @@ const oB = /* @__PURE__ */ E.styleModule.of(/* @__PURE__ */ new hr({ "&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" } -}), fy = /* @__PURE__ */ new Ws(), Xa = /* @__PURE__ */ new Ws(); -class aB { +}), dy = /* @__PURE__ */ new Ws(), Xa = /* @__PURE__ */ new Ws(); +class c4 { constructor(e) { this.revertDOM = null, this.revertToA = !1, this.revertToLeft = !1, this.measuring = -1, this.diffConf = e.diffConfig; let n = [ - bn.low(iA), - lB, - oB, + bn.low(sA), + a4, + l4, Po, E.updateListener.of((u) => { - this.measuring < 0 && (u.heightChanged || u.viewportChanged) && !u.transactions.some((f) => f.effects.some((d) => d.is(ph))) && this.measure(); + this.measuring < 0 && (u.heightChanged || u.viewportChanged) && !u.transactions.some((f) => f.effects.some((d) => d.is(gh))) && this.measure(); }) ], r = [En.of({ side: "a", @@ -27485,7 +27485,7 @@ class aB { this.chunks = ds.build(i.doc, o.doc, this.diffConf); let l = [ Ns.init(() => this.chunks), - fy.of(e.collapseUnchanged ? uy(e.collapseUnchanged) : []) + dy.of(e.collapseUnchanged ? fy(e.collapseUnchanged) : []) ]; i = i.update({ effects: F.appendConfig.of(l) }).state, o = o.update({ effects: F.appendConfig.of(l) }).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 a = e.orientation || "a-b", c = document.createElement("div"); @@ -27506,9 +27506,9 @@ class aB { dispatch(e, n) { if (e.some((r) => r.docChanged)) { let r = e[e.length - 1], i = e.reduce((o, l) => o.compose(l.changes), Ne.empty(e[0].startState.doc.length)); - this.chunks = n == this.a ? ds.updateA(this.chunks, r.newDoc, this.b.state.doc, i, this.diffConf) : ds.updateB(this.chunks, this.a.state.doc, r.newDoc, i, this.diffConf), n.update([...e, r.state.update({ effects: Np.of(this.chunks) })]); + this.chunks = n == this.a ? ds.updateA(this.chunks, r.newDoc, this.b.state.doc, i, this.diffConf) : ds.updateB(this.chunks, this.a.state.doc, r.newDoc, i, this.diffConf), n.update([...e, r.state.update({ effects: qp.of(this.chunks) })]); let s = n == this.a ? this.b : this.a; - s.update([s.state.update({ effects: Np.of(this.chunks) })]), this.scheduleMeasure(); + s.update([s.state.update({ effects: qp.of(this.chunks) })]), this.scheduleMeasure(); } else n.update(e); } @@ -27538,7 +27538,7 @@ class aB { ])); } if (i) { - let l = fy.reconfigure(e.collapseUnchanged ? uy(e.collapseUnchanged) : []); + let l = dy.reconfigure(e.collapseUnchanged ? fy(e.collapseUnchanged) : []); s.push(l), o.push(l); } this.a.dispatch({ effects: s }), this.b.dispatch({ effects: o }); @@ -27557,7 +27557,7 @@ class aB { } } measure() { - tB(this.a, this.b, this.chunks), this.revertDOM && this.updateRevertButtons(); + n4(this.a, this.b, this.chunks), this.revertDOM && this.updateRevertButtons(); } updateRevertButtons() { let e = this.revertDOM, n = e.firstChild, r = this.a.viewport, i = this.b.viewport; @@ -27569,11 +27569,11 @@ class aB { continue; let l = this.a.lineBlockAt(o.fromA).top + "px"; for (; n && +n.dataset.chunk < s; ) - n = dy(n); + n = py(n); n && n.dataset.chunk == String(s) ? (n.style.top != l && (n.style.top = l), n = n.nextSibling) : e.insertBefore(this.renderRevertButton(l, s), n); } for (; n; ) - n = dy(n); + n = py(n); } renderRevertButton(e, n) { let r; @@ -27602,19 +27602,19 @@ class aB { this.a.destroy(), this.b.destroy(), this.measuring > -1 && (this.dom.ownerDocument.defaultView || window).cancelAnimationFrame(this.measuring), this.dom.remove(); } } -function dy(t) { +function py(t) { let e = t.nextSibling; return t.remove(), e; } -const py = ae(VC)` +const gy = fe(jC)` width: 50%; display: block; -`, cB = ({ +`, h4 = ({ old: t, current: e }) => { const n = Lr.basicSetup().readonly().create(); - return new aB({ + return new c4({ a: { doc: t, extensions: n @@ -27625,7 +27625,7 @@ const py = ae(VC)` }, orientation: "b-a" }); -}, sA = ({ +}, oA = ({ oldText: t, text: e }) => { @@ -27633,2152 +27633,2152 @@ const py = ae(VC)` return Pt(() => { if (i.current) return !1; - i.current = cB({ + i.current = h4({ old: t, current: e.get() }), n.current.appendChild(i.current.b.dom), r.current.appendChild(i.current.a.dom); - }, []), K`
- <${py} ref=${n} /> - <${py} ref=${r} /> + }, []), H`
+ <${gy} ref=${n} /> + <${gy} ref=${r} />
`; }; -sA.defaultProps = { +oA.defaultProps = { className: "diff" }; -var oA = { exports: {} }, ce = {}, $g = { exports: {} }; -const hB = "\xC1", uB = "\xE1", fB = "\u0102", dB = "\u0103", pB = "\u223E", mB = "\u223F", gB = "\u223E\u0333", OB = "\xC2", bB = "\xE2", yB = "\xB4", wB = "\u0410", kB = "\u0430", xB = "\xC6", vB = "\xE6", SB = "\u2061", _B = "\u{1D504}", CB = "\u{1D51E}", AB = "\xC0", $B = "\xE0", PB = "\u2135", TB = "\u2135", QB = "\u0391", EB = "\u03B1", DB = "\u0100", RB = "\u0101", MB = "\u2A3F", ZB = "&", LB = "&", IB = "\u2A55", NB = "\u2A53", qB = "\u2227", BB = "\u2A5C", YB = "\u2A58", XB = "\u2A5A", WB = "\u2220", VB = "\u29A4", jB = "\u2220", zB = "\u29A8", FB = "\u29A9", UB = "\u29AA", GB = "\u29AB", HB = "\u29AC", KB = "\u29AD", JB = "\u29AE", e4 = "\u29AF", t4 = "\u2221", n4 = "\u221F", r4 = "\u22BE", i4 = "\u299D", s4 = "\u2222", o4 = "\xC5", l4 = "\u237C", a4 = "\u0104", c4 = "\u0105", h4 = "\u{1D538}", u4 = "\u{1D552}", f4 = "\u2A6F", d4 = "\u2248", p4 = "\u2A70", m4 = "\u224A", g4 = "\u224B", O4 = "'", b4 = "\u2061", y4 = "\u2248", w4 = "\u224A", k4 = "\xC5", x4 = "\xE5", v4 = "\u{1D49C}", S4 = "\u{1D4B6}", _4 = "\u2254", C4 = "*", A4 = "\u2248", $4 = "\u224D", P4 = "\xC3", T4 = "\xE3", Q4 = "\xC4", E4 = "\xE4", D4 = "\u2233", R4 = "\u2A11", M4 = "\u224C", Z4 = "\u03F6", L4 = "\u2035", I4 = "\u223D", N4 = "\u22CD", q4 = "\u2216", B4 = "\u2AE7", Y4 = "\u22BD", X4 = "\u2305", W4 = "\u2306", V4 = "\u2305", j4 = "\u23B5", z4 = "\u23B6", F4 = "\u224C", U4 = "\u0411", G4 = "\u0431", H4 = "\u201E", K4 = "\u2235", J4 = "\u2235", eY = "\u2235", tY = "\u29B0", nY = "\u03F6", rY = "\u212C", iY = "\u212C", sY = "\u0392", oY = "\u03B2", lY = "\u2136", aY = "\u226C", cY = "\u{1D505}", hY = "\u{1D51F}", uY = "\u22C2", fY = "\u25EF", dY = "\u22C3", pY = "\u2A00", mY = "\u2A01", gY = "\u2A02", OY = "\u2A06", bY = "\u2605", yY = "\u25BD", wY = "\u25B3", kY = "\u2A04", xY = "\u22C1", vY = "\u22C0", SY = "\u290D", _Y = "\u29EB", CY = "\u25AA", AY = "\u25B4", $Y = "\u25BE", PY = "\u25C2", TY = "\u25B8", QY = "\u2423", EY = "\u2592", DY = "\u2591", RY = "\u2593", MY = "\u2588", ZY = "=\u20E5", LY = "\u2261\u20E5", IY = "\u2AED", NY = "\u2310", qY = "\u{1D539}", BY = "\u{1D553}", YY = "\u22A5", XY = "\u22A5", WY = "\u22C8", VY = "\u29C9", jY = "\u2510", zY = "\u2555", FY = "\u2556", UY = "\u2557", GY = "\u250C", HY = "\u2552", KY = "\u2553", JY = "\u2554", eX = "\u2500", tX = "\u2550", nX = "\u252C", rX = "\u2564", iX = "\u2565", sX = "\u2566", oX = "\u2534", lX = "\u2567", aX = "\u2568", cX = "\u2569", hX = "\u229F", uX = "\u229E", fX = "\u22A0", dX = "\u2518", pX = "\u255B", mX = "\u255C", gX = "\u255D", OX = "\u2514", bX = "\u2558", yX = "\u2559", wX = "\u255A", kX = "\u2502", xX = "\u2551", vX = "\u253C", SX = "\u256A", _X = "\u256B", CX = "\u256C", AX = "\u2524", $X = "\u2561", PX = "\u2562", TX = "\u2563", QX = "\u251C", EX = "\u255E", DX = "\u255F", RX = "\u2560", MX = "\u2035", ZX = "\u02D8", LX = "\u02D8", IX = "\xA6", NX = "\u{1D4B7}", qX = "\u212C", BX = "\u204F", YX = "\u223D", XX = "\u22CD", WX = "\u29C5", VX = "\\", jX = "\u27C8", zX = "\u2022", FX = "\u2022", UX = "\u224E", GX = "\u2AAE", HX = "\u224F", KX = "\u224E", JX = "\u224F", eW = "\u0106", tW = "\u0107", nW = "\u2A44", rW = "\u2A49", iW = "\u2A4B", sW = "\u2229", oW = "\u22D2", lW = "\u2A47", aW = "\u2A40", cW = "\u2145", hW = "\u2229\uFE00", uW = "\u2041", fW = "\u02C7", dW = "\u212D", pW = "\u2A4D", mW = "\u010C", gW = "\u010D", OW = "\xC7", bW = "\xE7", yW = "\u0108", wW = "\u0109", kW = "\u2230", xW = "\u2A4C", vW = "\u2A50", SW = "\u010A", _W = "\u010B", CW = "\xB8", AW = "\xB8", $W = "\u29B2", PW = "\xA2", TW = "\xB7", QW = "\xB7", EW = "\u{1D520}", DW = "\u212D", RW = "\u0427", MW = "\u0447", ZW = "\u2713", LW = "\u2713", IW = "\u03A7", NW = "\u03C7", qW = "\u02C6", BW = "\u2257", YW = "\u21BA", XW = "\u21BB", WW = "\u229B", VW = "\u229A", jW = "\u229D", zW = "\u2299", FW = "\xAE", UW = "\u24C8", GW = "\u2296", HW = "\u2295", KW = "\u2297", JW = "\u25CB", eV = "\u29C3", tV = "\u2257", nV = "\u2A10", rV = "\u2AEF", iV = "\u29C2", sV = "\u2232", oV = "\u201D", lV = "\u2019", aV = "\u2663", cV = "\u2663", hV = ":", uV = "\u2237", fV = "\u2A74", dV = "\u2254", pV = "\u2254", mV = ",", gV = "@", OV = "\u2201", bV = "\u2218", yV = "\u2201", wV = "\u2102", kV = "\u2245", xV = "\u2A6D", vV = "\u2261", SV = "\u222E", _V = "\u222F", CV = "\u222E", AV = "\u{1D554}", $V = "\u2102", PV = "\u2210", TV = "\u2210", QV = "\xA9", EV = "\xA9", DV = "\u2117", RV = "\u2233", MV = "\u21B5", ZV = "\u2717", LV = "\u2A2F", IV = "\u{1D49E}", NV = "\u{1D4B8}", qV = "\u2ACF", BV = "\u2AD1", YV = "\u2AD0", XV = "\u2AD2", WV = "\u22EF", VV = "\u2938", jV = "\u2935", zV = "\u22DE", FV = "\u22DF", UV = "\u21B6", GV = "\u293D", HV = "\u2A48", KV = "\u2A46", JV = "\u224D", ej = "\u222A", tj = "\u22D3", nj = "\u2A4A", rj = "\u228D", ij = "\u2A45", sj = "\u222A\uFE00", oj = "\u21B7", lj = "\u293C", aj = "\u22DE", cj = "\u22DF", hj = "\u22CE", uj = "\u22CF", fj = "\xA4", dj = "\u21B6", pj = "\u21B7", mj = "\u22CE", gj = "\u22CF", Oj = "\u2232", bj = "\u2231", yj = "\u232D", wj = "\u2020", kj = "\u2021", xj = "\u2138", vj = "\u2193", Sj = "\u21A1", _j = "\u21D3", Cj = "\u2010", Aj = "\u2AE4", $j = "\u22A3", Pj = "\u290F", Tj = "\u02DD", Qj = "\u010E", Ej = "\u010F", Dj = "\u0414", Rj = "\u0434", Mj = "\u2021", Zj = "\u21CA", Lj = "\u2145", Ij = "\u2146", Nj = "\u2911", qj = "\u2A77", Bj = "\xB0", Yj = "\u2207", Xj = "\u0394", Wj = "\u03B4", Vj = "\u29B1", jj = "\u297F", zj = "\u{1D507}", Fj = "\u{1D521}", Uj = "\u2965", Gj = "\u21C3", Hj = "\u21C2", Kj = "\xB4", Jj = "\u02D9", e8 = "\u02DD", t8 = "`", n8 = "\u02DC", r8 = "\u22C4", i8 = "\u22C4", s8 = "\u22C4", o8 = "\u2666", l8 = "\u2666", a8 = "\xA8", c8 = "\u2146", h8 = "\u03DD", u8 = "\u22F2", f8 = "\xF7", d8 = "\xF7", p8 = "\u22C7", m8 = "\u22C7", g8 = "\u0402", O8 = "\u0452", b8 = "\u231E", y8 = "\u230D", w8 = "$", k8 = "\u{1D53B}", x8 = "\u{1D555}", v8 = "\xA8", S8 = "\u02D9", _8 = "\u20DC", C8 = "\u2250", A8 = "\u2251", $8 = "\u2250", P8 = "\u2238", T8 = "\u2214", Q8 = "\u22A1", E8 = "\u2306", D8 = "\u222F", R8 = "\xA8", M8 = "\u21D3", Z8 = "\u21D0", L8 = "\u21D4", I8 = "\u2AE4", N8 = "\u27F8", q8 = "\u27FA", B8 = "\u27F9", Y8 = "\u21D2", X8 = "\u22A8", W8 = "\u21D1", V8 = "\u21D5", j8 = "\u2225", z8 = "\u2913", F8 = "\u2193", U8 = "\u2193", G8 = "\u21D3", H8 = "\u21F5", K8 = "\u0311", J8 = "\u21CA", ez = "\u21C3", tz = "\u21C2", nz = "\u2950", rz = "\u295E", iz = "\u2956", sz = "\u21BD", oz = "\u295F", lz = "\u2957", az = "\u21C1", cz = "\u21A7", hz = "\u22A4", uz = "\u2910", fz = "\u231F", dz = "\u230C", pz = "\u{1D49F}", mz = "\u{1D4B9}", gz = "\u0405", Oz = "\u0455", bz = "\u29F6", yz = "\u0110", wz = "\u0111", kz = "\u22F1", xz = "\u25BF", vz = "\u25BE", Sz = "\u21F5", _z = "\u296F", Cz = "\u29A6", Az = "\u040F", $z = "\u045F", Pz = "\u27FF", Tz = "\xC9", Qz = "\xE9", Ez = "\u2A6E", Dz = "\u011A", Rz = "\u011B", Mz = "\xCA", Zz = "\xEA", Lz = "\u2256", Iz = "\u2255", Nz = "\u042D", qz = "\u044D", Bz = "\u2A77", Yz = "\u0116", Xz = "\u0117", Wz = "\u2251", Vz = "\u2147", jz = "\u2252", zz = "\u{1D508}", Fz = "\u{1D522}", Uz = "\u2A9A", Gz = "\xC8", Hz = "\xE8", Kz = "\u2A96", Jz = "\u2A98", e9 = "\u2A99", t9 = "\u2208", n9 = "\u23E7", r9 = "\u2113", i9 = "\u2A95", s9 = "\u2A97", o9 = "\u0112", l9 = "\u0113", a9 = "\u2205", c9 = "\u2205", h9 = "\u25FB", u9 = "\u2205", f9 = "\u25AB", d9 = "\u2004", p9 = "\u2005", m9 = "\u2003", g9 = "\u014A", O9 = "\u014B", b9 = "\u2002", y9 = "\u0118", w9 = "\u0119", k9 = "\u{1D53C}", x9 = "\u{1D556}", v9 = "\u22D5", S9 = "\u29E3", _9 = "\u2A71", C9 = "\u03B5", A9 = "\u0395", $9 = "\u03B5", P9 = "\u03F5", T9 = "\u2256", Q9 = "\u2255", E9 = "\u2242", D9 = "\u2A96", R9 = "\u2A95", M9 = "\u2A75", Z9 = "=", L9 = "\u2242", I9 = "\u225F", N9 = "\u21CC", q9 = "\u2261", B9 = "\u2A78", Y9 = "\u29E5", X9 = "\u2971", W9 = "\u2253", V9 = "\u212F", j9 = "\u2130", z9 = "\u2250", F9 = "\u2A73", U9 = "\u2242", G9 = "\u0397", H9 = "\u03B7", K9 = "\xD0", J9 = "\xF0", e6 = "\xCB", t6 = "\xEB", n6 = "\u20AC", r6 = "!", i6 = "\u2203", s6 = "\u2203", o6 = "\u2130", l6 = "\u2147", a6 = "\u2147", c6 = "\u2252", h6 = "\u0424", u6 = "\u0444", f6 = "\u2640", d6 = "\uFB03", p6 = "\uFB00", m6 = "\uFB04", g6 = "\u{1D509}", O6 = "\u{1D523}", b6 = "\uFB01", y6 = "\u25FC", w6 = "\u25AA", k6 = "fj", x6 = "\u266D", v6 = "\uFB02", S6 = "\u25B1", _6 = "\u0192", C6 = "\u{1D53D}", A6 = "\u{1D557}", $6 = "\u2200", P6 = "\u2200", T6 = "\u22D4", Q6 = "\u2AD9", E6 = "\u2131", D6 = "\u2A0D", R6 = "\xBD", M6 = "\u2153", Z6 = "\xBC", L6 = "\u2155", I6 = "\u2159", N6 = "\u215B", q6 = "\u2154", B6 = "\u2156", Y6 = "\xBE", X6 = "\u2157", W6 = "\u215C", V6 = "\u2158", j6 = "\u215A", z6 = "\u215D", F6 = "\u215E", U6 = "\u2044", G6 = "\u2322", H6 = "\u{1D4BB}", K6 = "\u2131", J6 = "\u01F5", eF = "\u0393", tF = "\u03B3", nF = "\u03DC", rF = "\u03DD", iF = "\u2A86", sF = "\u011E", oF = "\u011F", lF = "\u0122", aF = "\u011C", cF = "\u011D", hF = "\u0413", uF = "\u0433", fF = "\u0120", dF = "\u0121", pF = "\u2265", mF = "\u2267", gF = "\u2A8C", OF = "\u22DB", bF = "\u2265", yF = "\u2267", wF = "\u2A7E", kF = "\u2AA9", xF = "\u2A7E", vF = "\u2A80", SF = "\u2A82", _F = "\u2A84", CF = "\u22DB\uFE00", AF = "\u2A94", $F = "\u{1D50A}", PF = "\u{1D524}", TF = "\u226B", QF = "\u22D9", EF = "\u22D9", DF = "\u2137", RF = "\u0403", MF = "\u0453", ZF = "\u2AA5", LF = "\u2277", IF = "\u2A92", NF = "\u2AA4", qF = "\u2A8A", BF = "\u2A8A", YF = "\u2A88", XF = "\u2269", WF = "\u2A88", VF = "\u2269", jF = "\u22E7", zF = "\u{1D53E}", FF = "\u{1D558}", UF = "`", GF = "\u2265", HF = "\u22DB", KF = "\u2267", JF = "\u2AA2", eU = "\u2277", tU = "\u2A7E", nU = "\u2273", rU = "\u{1D4A2}", iU = "\u210A", sU = "\u2273", oU = "\u2A8E", lU = "\u2A90", aU = "\u2AA7", cU = "\u2A7A", hU = ">", uU = ">", fU = "\u226B", dU = "\u22D7", pU = "\u2995", mU = "\u2A7C", gU = "\u2A86", OU = "\u2978", bU = "\u22D7", yU = "\u22DB", wU = "\u2A8C", kU = "\u2277", xU = "\u2273", vU = "\u2269\uFE00", SU = "\u2269\uFE00", _U = "\u02C7", CU = "\u200A", AU = "\xBD", $U = "\u210B", PU = "\u042A", TU = "\u044A", QU = "\u2948", EU = "\u2194", DU = "\u21D4", RU = "\u21AD", MU = "^", ZU = "\u210F", LU = "\u0124", IU = "\u0125", NU = "\u2665", qU = "\u2665", BU = "\u2026", YU = "\u22B9", XU = "\u{1D525}", WU = "\u210C", VU = "\u210B", jU = "\u2925", zU = "\u2926", FU = "\u21FF", UU = "\u223B", GU = "\u21A9", HU = "\u21AA", KU = "\u{1D559}", JU = "\u210D", eG = "\u2015", tG = "\u2500", nG = "\u{1D4BD}", rG = "\u210B", iG = "\u210F", sG = "\u0126", oG = "\u0127", lG = "\u224E", aG = "\u224F", cG = "\u2043", hG = "\u2010", uG = "\xCD", fG = "\xED", dG = "\u2063", pG = "\xCE", mG = "\xEE", gG = "\u0418", OG = "\u0438", bG = "\u0130", yG = "\u0415", wG = "\u0435", kG = "\xA1", xG = "\u21D4", vG = "\u{1D526}", SG = "\u2111", _G = "\xCC", CG = "\xEC", AG = "\u2148", $G = "\u2A0C", PG = "\u222D", TG = "\u29DC", QG = "\u2129", EG = "\u0132", DG = "\u0133", RG = "\u012A", MG = "\u012B", ZG = "\u2111", LG = "\u2148", IG = "\u2110", NG = "\u2111", qG = "\u0131", BG = "\u2111", YG = "\u22B7", XG = "\u01B5", WG = "\u21D2", VG = "\u2105", jG = "\u221E", zG = "\u29DD", FG = "\u0131", UG = "\u22BA", GG = "\u222B", HG = "\u222C", KG = "\u2124", JG = "\u222B", eH = "\u22BA", tH = "\u22C2", nH = "\u2A17", rH = "\u2A3C", iH = "\u2063", sH = "\u2062", oH = "\u0401", lH = "\u0451", aH = "\u012E", cH = "\u012F", hH = "\u{1D540}", uH = "\u{1D55A}", fH = "\u0399", dH = "\u03B9", pH = "\u2A3C", mH = "\xBF", gH = "\u{1D4BE}", OH = "\u2110", bH = "\u2208", yH = "\u22F5", wH = "\u22F9", kH = "\u22F4", xH = "\u22F3", vH = "\u2208", SH = "\u2062", _H = "\u0128", CH = "\u0129", AH = "\u0406", $H = "\u0456", PH = "\xCF", TH = "\xEF", QH = "\u0134", EH = "\u0135", DH = "\u0419", RH = "\u0439", MH = "\u{1D50D}", ZH = "\u{1D527}", LH = "\u0237", IH = "\u{1D541}", NH = "\u{1D55B}", qH = "\u{1D4A5}", BH = "\u{1D4BF}", YH = "\u0408", XH = "\u0458", WH = "\u0404", VH = "\u0454", jH = "\u039A", zH = "\u03BA", FH = "\u03F0", UH = "\u0136", GH = "\u0137", HH = "\u041A", KH = "\u043A", JH = "\u{1D50E}", eK = "\u{1D528}", tK = "\u0138", nK = "\u0425", rK = "\u0445", iK = "\u040C", sK = "\u045C", oK = "\u{1D542}", lK = "\u{1D55C}", aK = "\u{1D4A6}", cK = "\u{1D4C0}", hK = "\u21DA", uK = "\u0139", fK = "\u013A", dK = "\u29B4", pK = "\u2112", mK = "\u039B", gK = "\u03BB", OK = "\u27E8", bK = "\u27EA", yK = "\u2991", wK = "\u27E8", kK = "\u2A85", xK = "\u2112", vK = "\xAB", SK = "\u21E4", _K = "\u291F", CK = "\u2190", AK = "\u219E", $K = "\u21D0", PK = "\u291D", TK = "\u21A9", QK = "\u21AB", EK = "\u2939", DK = "\u2973", RK = "\u21A2", MK = "\u2919", ZK = "\u291B", LK = "\u2AAB", IK = "\u2AAD", NK = "\u2AAD\uFE00", qK = "\u290C", BK = "\u290E", YK = "\u2772", XK = "{", WK = "[", VK = "\u298B", jK = "\u298F", zK = "\u298D", FK = "\u013D", UK = "\u013E", GK = "\u013B", HK = "\u013C", KK = "\u2308", JK = "{", eJ = "\u041B", tJ = "\u043B", nJ = "\u2936", rJ = "\u201C", iJ = "\u201E", sJ = "\u2967", oJ = "\u294B", lJ = "\u21B2", aJ = "\u2264", cJ = "\u2266", hJ = "\u27E8", uJ = "\u21E4", fJ = "\u2190", dJ = "\u2190", pJ = "\u21D0", mJ = "\u21C6", gJ = "\u21A2", OJ = "\u2308", bJ = "\u27E6", yJ = "\u2961", wJ = "\u2959", kJ = "\u21C3", xJ = "\u230A", vJ = "\u21BD", SJ = "\u21BC", _J = "\u21C7", CJ = "\u2194", AJ = "\u2194", $J = "\u21D4", PJ = "\u21C6", TJ = "\u21CB", QJ = "\u21AD", EJ = "\u294E", DJ = "\u21A4", RJ = "\u22A3", MJ = "\u295A", ZJ = "\u22CB", LJ = "\u29CF", IJ = "\u22B2", NJ = "\u22B4", qJ = "\u2951", BJ = "\u2960", YJ = "\u2958", XJ = "\u21BF", WJ = "\u2952", VJ = "\u21BC", jJ = "\u2A8B", zJ = "\u22DA", FJ = "\u2264", UJ = "\u2266", GJ = "\u2A7D", HJ = "\u2AA8", KJ = "\u2A7D", JJ = "\u2A7F", eee = "\u2A81", tee = "\u2A83", nee = "\u22DA\uFE00", ree = "\u2A93", iee = "\u2A85", see = "\u22D6", oee = "\u22DA", lee = "\u2A8B", aee = "\u22DA", cee = "\u2266", hee = "\u2276", uee = "\u2276", fee = "\u2AA1", dee = "\u2272", pee = "\u2A7D", mee = "\u2272", gee = "\u297C", Oee = "\u230A", bee = "\u{1D50F}", yee = "\u{1D529}", wee = "\u2276", kee = "\u2A91", xee = "\u2962", vee = "\u21BD", See = "\u21BC", _ee = "\u296A", Cee = "\u2584", Aee = "\u0409", $ee = "\u0459", Pee = "\u21C7", Tee = "\u226A", Qee = "\u22D8", Eee = "\u231E", Dee = "\u21DA", Ree = "\u296B", Mee = "\u25FA", Zee = "\u013F", Lee = "\u0140", Iee = "\u23B0", Nee = "\u23B0", qee = "\u2A89", Bee = "\u2A89", Yee = "\u2A87", Xee = "\u2268", Wee = "\u2A87", Vee = "\u2268", jee = "\u22E6", zee = "\u27EC", Fee = "\u21FD", Uee = "\u27E6", Gee = "\u27F5", Hee = "\u27F5", Kee = "\u27F8", Jee = "\u27F7", ete = "\u27F7", tte = "\u27FA", nte = "\u27FC", rte = "\u27F6", ite = "\u27F6", ste = "\u27F9", ote = "\u21AB", lte = "\u21AC", ate = "\u2985", cte = "\u{1D543}", hte = "\u{1D55D}", ute = "\u2A2D", fte = "\u2A34", dte = "\u2217", pte = "_", mte = "\u2199", gte = "\u2198", Ote = "\u25CA", bte = "\u25CA", yte = "\u29EB", wte = "(", kte = "\u2993", xte = "\u21C6", vte = "\u231F", Ste = "\u21CB", _te = "\u296D", Cte = "\u200E", Ate = "\u22BF", $te = "\u2039", Pte = "\u{1D4C1}", Tte = "\u2112", Qte = "\u21B0", Ete = "\u21B0", Dte = "\u2272", Rte = "\u2A8D", Mte = "\u2A8F", Zte = "[", Lte = "\u2018", Ite = "\u201A", Nte = "\u0141", qte = "\u0142", Bte = "\u2AA6", Yte = "\u2A79", Xte = "<", Wte = "<", Vte = "\u226A", jte = "\u22D6", zte = "\u22CB", Fte = "\u22C9", Ute = "\u2976", Gte = "\u2A7B", Hte = "\u25C3", Kte = "\u22B4", Jte = "\u25C2", ene = "\u2996", tne = "\u294A", nne = "\u2966", rne = "\u2268\uFE00", ine = "\u2268\uFE00", sne = "\xAF", one = "\u2642", lne = "\u2720", ane = "\u2720", cne = "\u21A6", hne = "\u21A6", une = "\u21A7", fne = "\u21A4", dne = "\u21A5", pne = "\u25AE", mne = "\u2A29", gne = "\u041C", One = "\u043C", bne = "\u2014", yne = "\u223A", wne = "\u2221", kne = "\u205F", xne = "\u2133", vne = "\u{1D510}", Sne = "\u{1D52A}", _ne = "\u2127", Cne = "\xB5", Ane = "*", $ne = "\u2AF0", Pne = "\u2223", Tne = "\xB7", Qne = "\u229F", Ene = "\u2212", Dne = "\u2238", Rne = "\u2A2A", Mne = "\u2213", Zne = "\u2ADB", Lne = "\u2026", Ine = "\u2213", Nne = "\u22A7", qne = "\u{1D544}", Bne = "\u{1D55E}", Yne = "\u2213", Xne = "\u{1D4C2}", Wne = "\u2133", Vne = "\u223E", jne = "\u039C", zne = "\u03BC", Fne = "\u22B8", Une = "\u22B8", Gne = "\u2207", Hne = "\u0143", Kne = "\u0144", Jne = "\u2220\u20D2", ere = "\u2249", tre = "\u2A70\u0338", nre = "\u224B\u0338", rre = "\u0149", ire = "\u2249", sre = "\u266E", ore = "\u2115", lre = "\u266E", are = "\xA0", cre = "\u224E\u0338", hre = "\u224F\u0338", ure = "\u2A43", fre = "\u0147", dre = "\u0148", pre = "\u0145", mre = "\u0146", gre = "\u2247", Ore = "\u2A6D\u0338", bre = "\u2A42", yre = "\u041D", wre = "\u043D", kre = "\u2013", xre = "\u2924", vre = "\u2197", Sre = "\u21D7", _re = "\u2197", Cre = "\u2260", Are = "\u2250\u0338", $re = "\u200B", Pre = "\u200B", Tre = "\u200B", Qre = "\u200B", Ere = "\u2262", Dre = "\u2928", Rre = "\u2242\u0338", Mre = "\u226B", Zre = "\u226A", Lre = ` -`, Ire = "\u2204", Nre = "\u2204", qre = "\u{1D511}", Bre = "\u{1D52B}", Yre = "\u2267\u0338", Xre = "\u2271", Wre = "\u2271", Vre = "\u2267\u0338", jre = "\u2A7E\u0338", zre = "\u2A7E\u0338", Fre = "\u22D9\u0338", Ure = "\u2275", Gre = "\u226B\u20D2", Hre = "\u226F", Kre = "\u226F", Jre = "\u226B\u0338", eie = "\u21AE", tie = "\u21CE", nie = "\u2AF2", rie = "\u220B", iie = "\u22FC", sie = "\u22FA", oie = "\u220B", lie = "\u040A", aie = "\u045A", cie = "\u219A", hie = "\u21CD", uie = "\u2025", fie = "\u2266\u0338", die = "\u2270", pie = "\u219A", mie = "\u21CD", gie = "\u21AE", Oie = "\u21CE", bie = "\u2270", yie = "\u2266\u0338", wie = "\u2A7D\u0338", kie = "\u2A7D\u0338", xie = "\u226E", vie = "\u22D8\u0338", Sie = "\u2274", _ie = "\u226A\u20D2", Cie = "\u226E", Aie = "\u22EA", $ie = "\u22EC", Pie = "\u226A\u0338", Tie = "\u2224", Qie = "\u2060", Eie = "\xA0", Die = "\u{1D55F}", Rie = "\u2115", Mie = "\u2AEC", Zie = "\xAC", Lie = "\u2262", Iie = "\u226D", Nie = "\u2226", qie = "\u2209", Bie = "\u2260", Yie = "\u2242\u0338", Xie = "\u2204", Wie = "\u226F", Vie = "\u2271", jie = "\u2267\u0338", zie = "\u226B\u0338", Fie = "\u2279", Uie = "\u2A7E\u0338", Gie = "\u2275", Hie = "\u224E\u0338", Kie = "\u224F\u0338", Jie = "\u2209", ese = "\u22F5\u0338", tse = "\u22F9\u0338", nse = "\u2209", rse = "\u22F7", ise = "\u22F6", sse = "\u29CF\u0338", ose = "\u22EA", lse = "\u22EC", ase = "\u226E", cse = "\u2270", hse = "\u2278", use = "\u226A\u0338", fse = "\u2A7D\u0338", dse = "\u2274", pse = "\u2AA2\u0338", mse = "\u2AA1\u0338", gse = "\u220C", Ose = "\u220C", bse = "\u22FE", yse = "\u22FD", wse = "\u2280", kse = "\u2AAF\u0338", xse = "\u22E0", vse = "\u220C", Sse = "\u29D0\u0338", _se = "\u22EB", Cse = "\u22ED", Ase = "\u228F\u0338", $se = "\u22E2", Pse = "\u2290\u0338", Tse = "\u22E3", Qse = "\u2282\u20D2", Ese = "\u2288", Dse = "\u2281", Rse = "\u2AB0\u0338", Mse = "\u22E1", Zse = "\u227F\u0338", Lse = "\u2283\u20D2", Ise = "\u2289", Nse = "\u2241", qse = "\u2244", Bse = "\u2247", Yse = "\u2249", Xse = "\u2224", Wse = "\u2226", Vse = "\u2226", jse = "\u2AFD\u20E5", zse = "\u2202\u0338", Fse = "\u2A14", Use = "\u2280", Gse = "\u22E0", Hse = "\u2280", Kse = "\u2AAF\u0338", Jse = "\u2AAF\u0338", eoe = "\u2933\u0338", toe = "\u219B", noe = "\u21CF", roe = "\u219D\u0338", ioe = "\u219B", soe = "\u21CF", ooe = "\u22EB", loe = "\u22ED", aoe = "\u2281", coe = "\u22E1", hoe = "\u2AB0\u0338", uoe = "\u{1D4A9}", foe = "\u{1D4C3}", doe = "\u2224", poe = "\u2226", moe = "\u2241", goe = "\u2244", Ooe = "\u2244", boe = "\u2224", yoe = "\u2226", woe = "\u22E2", koe = "\u22E3", xoe = "\u2284", voe = "\u2AC5\u0338", Soe = "\u2288", _oe = "\u2282\u20D2", Coe = "\u2288", Aoe = "\u2AC5\u0338", $oe = "\u2281", Poe = "\u2AB0\u0338", Toe = "\u2285", Qoe = "\u2AC6\u0338", Eoe = "\u2289", Doe = "\u2283\u20D2", Roe = "\u2289", Moe = "\u2AC6\u0338", Zoe = "\u2279", Loe = "\xD1", Ioe = "\xF1", Noe = "\u2278", qoe = "\u22EA", Boe = "\u22EC", Yoe = "\u22EB", Xoe = "\u22ED", Woe = "\u039D", Voe = "\u03BD", joe = "#", zoe = "\u2116", Foe = "\u2007", Uoe = "\u224D\u20D2", Goe = "\u22AC", Hoe = "\u22AD", Koe = "\u22AE", Joe = "\u22AF", ele = "\u2265\u20D2", tle = ">\u20D2", nle = "\u2904", rle = "\u29DE", ile = "\u2902", sle = "\u2264\u20D2", ole = "<\u20D2", lle = "\u22B4\u20D2", ale = "\u2903", cle = "\u22B5\u20D2", hle = "\u223C\u20D2", ule = "\u2923", fle = "\u2196", dle = "\u21D6", ple = "\u2196", mle = "\u2927", gle = "\xD3", Ole = "\xF3", ble = "\u229B", yle = "\xD4", wle = "\xF4", kle = "\u229A", xle = "\u041E", vle = "\u043E", Sle = "\u229D", _le = "\u0150", Cle = "\u0151", Ale = "\u2A38", $le = "\u2299", Ple = "\u29BC", Tle = "\u0152", Qle = "\u0153", Ele = "\u29BF", Dle = "\u{1D512}", Rle = "\u{1D52C}", Mle = "\u02DB", Zle = "\xD2", Lle = "\xF2", Ile = "\u29C1", Nle = "\u29B5", qle = "\u03A9", Ble = "\u222E", Yle = "\u21BA", Xle = "\u29BE", Wle = "\u29BB", Vle = "\u203E", jle = "\u29C0", zle = "\u014C", Fle = "\u014D", Ule = "\u03A9", Gle = "\u03C9", Hle = "\u039F", Kle = "\u03BF", Jle = "\u29B6", eae = "\u2296", tae = "\u{1D546}", nae = "\u{1D560}", rae = "\u29B7", iae = "\u201C", sae = "\u2018", oae = "\u29B9", lae = "\u2295", aae = "\u21BB", cae = "\u2A54", hae = "\u2228", uae = "\u2A5D", fae = "\u2134", dae = "\u2134", pae = "\xAA", mae = "\xBA", gae = "\u22B6", Oae = "\u2A56", bae = "\u2A57", yae = "\u2A5B", wae = "\u24C8", kae = "\u{1D4AA}", xae = "\u2134", vae = "\xD8", Sae = "\xF8", _ae = "\u2298", Cae = "\xD5", Aae = "\xF5", $ae = "\u2A36", Pae = "\u2A37", Tae = "\u2297", Qae = "\xD6", Eae = "\xF6", Dae = "\u233D", Rae = "\u203E", Mae = "\u23DE", Zae = "\u23B4", Lae = "\u23DC", Iae = "\xB6", Nae = "\u2225", qae = "\u2225", Bae = "\u2AF3", Yae = "\u2AFD", Xae = "\u2202", Wae = "\u2202", Vae = "\u041F", jae = "\u043F", zae = "%", Fae = ".", Uae = "\u2030", Gae = "\u22A5", Hae = "\u2031", Kae = "\u{1D513}", Jae = "\u{1D52D}", ece = "\u03A6", tce = "\u03C6", nce = "\u03D5", rce = "\u2133", ice = "\u260E", sce = "\u03A0", oce = "\u03C0", lce = "\u22D4", ace = "\u03D6", cce = "\u210F", hce = "\u210E", uce = "\u210F", fce = "\u2A23", dce = "\u229E", pce = "\u2A22", mce = "+", gce = "\u2214", Oce = "\u2A25", bce = "\u2A72", yce = "\xB1", wce = "\xB1", kce = "\u2A26", xce = "\u2A27", vce = "\xB1", Sce = "\u210C", _ce = "\u2A15", Cce = "\u{1D561}", Ace = "\u2119", $ce = "\xA3", Pce = "\u2AB7", Tce = "\u2ABB", Qce = "\u227A", Ece = "\u227C", Dce = "\u2AB7", Rce = "\u227A", Mce = "\u227C", Zce = "\u227A", Lce = "\u2AAF", Ice = "\u227C", Nce = "\u227E", qce = "\u2AAF", Bce = "\u2AB9", Yce = "\u2AB5", Xce = "\u22E8", Wce = "\u2AAF", Vce = "\u2AB3", jce = "\u227E", zce = "\u2032", Fce = "\u2033", Uce = "\u2119", Gce = "\u2AB9", Hce = "\u2AB5", Kce = "\u22E8", Jce = "\u220F", ehe = "\u220F", the = "\u232E", nhe = "\u2312", rhe = "\u2313", ihe = "\u221D", she = "\u221D", ohe = "\u2237", lhe = "\u221D", ahe = "\u227E", che = "\u22B0", hhe = "\u{1D4AB}", uhe = "\u{1D4C5}", fhe = "\u03A8", dhe = "\u03C8", phe = "\u2008", mhe = "\u{1D514}", ghe = "\u{1D52E}", Ohe = "\u2A0C", bhe = "\u{1D562}", yhe = "\u211A", whe = "\u2057", khe = "\u{1D4AC}", xhe = "\u{1D4C6}", vhe = "\u210D", She = "\u2A16", _he = "?", Che = "\u225F", Ahe = '"', $he = '"', Phe = "\u21DB", The = "\u223D\u0331", Qhe = "\u0154", Ehe = "\u0155", Dhe = "\u221A", Rhe = "\u29B3", Mhe = "\u27E9", Zhe = "\u27EB", Lhe = "\u2992", Ihe = "\u29A5", Nhe = "\u27E9", qhe = "\xBB", Bhe = "\u2975", Yhe = "\u21E5", Xhe = "\u2920", Whe = "\u2933", Vhe = "\u2192", jhe = "\u21A0", zhe = "\u21D2", Fhe = "\u291E", Uhe = "\u21AA", Ghe = "\u21AC", Hhe = "\u2945", Khe = "\u2974", Jhe = "\u2916", eue = "\u21A3", tue = "\u219D", nue = "\u291A", rue = "\u291C", iue = "\u2236", sue = "\u211A", oue = "\u290D", lue = "\u290F", aue = "\u2910", cue = "\u2773", hue = "}", uue = "]", fue = "\u298C", due = "\u298E", pue = "\u2990", mue = "\u0158", gue = "\u0159", Oue = "\u0156", bue = "\u0157", yue = "\u2309", wue = "}", kue = "\u0420", xue = "\u0440", vue = "\u2937", Sue = "\u2969", _ue = "\u201D", Cue = "\u201D", Aue = "\u21B3", $ue = "\u211C", Pue = "\u211B", Tue = "\u211C", Que = "\u211D", Eue = "\u211C", Due = "\u25AD", Rue = "\xAE", Mue = "\xAE", Zue = "\u220B", Lue = "\u21CB", Iue = "\u296F", Nue = "\u297D", que = "\u230B", Bue = "\u{1D52F}", Yue = "\u211C", Xue = "\u2964", Wue = "\u21C1", Vue = "\u21C0", jue = "\u296C", zue = "\u03A1", Fue = "\u03C1", Uue = "\u03F1", Gue = "\u27E9", Hue = "\u21E5", Kue = "\u2192", Jue = "\u2192", efe = "\u21D2", tfe = "\u21C4", nfe = "\u21A3", rfe = "\u2309", ife = "\u27E7", sfe = "\u295D", ofe = "\u2955", lfe = "\u21C2", afe = "\u230B", cfe = "\u21C1", hfe = "\u21C0", ufe = "\u21C4", ffe = "\u21CC", dfe = "\u21C9", pfe = "\u219D", mfe = "\u21A6", gfe = "\u22A2", Ofe = "\u295B", bfe = "\u22CC", yfe = "\u29D0", wfe = "\u22B3", kfe = "\u22B5", xfe = "\u294F", vfe = "\u295C", Sfe = "\u2954", _fe = "\u21BE", Cfe = "\u2953", Afe = "\u21C0", $fe = "\u02DA", Pfe = "\u2253", Tfe = "\u21C4", Qfe = "\u21CC", Efe = "\u200F", Dfe = "\u23B1", Rfe = "\u23B1", Mfe = "\u2AEE", Zfe = "\u27ED", Lfe = "\u21FE", Ife = "\u27E7", Nfe = "\u2986", qfe = "\u{1D563}", Bfe = "\u211D", Yfe = "\u2A2E", Xfe = "\u2A35", Wfe = "\u2970", Vfe = ")", jfe = "\u2994", zfe = "\u2A12", Ffe = "\u21C9", Ufe = "\u21DB", Gfe = "\u203A", Hfe = "\u{1D4C7}", Kfe = "\u211B", Jfe = "\u21B1", ede = "\u21B1", tde = "]", nde = "\u2019", rde = "\u2019", ide = "\u22CC", sde = "\u22CA", ode = "\u25B9", lde = "\u22B5", ade = "\u25B8", cde = "\u29CE", hde = "\u29F4", ude = "\u2968", fde = "\u211E", dde = "\u015A", pde = "\u015B", mde = "\u201A", gde = "\u2AB8", Ode = "\u0160", bde = "\u0161", yde = "\u2ABC", wde = "\u227B", kde = "\u227D", xde = "\u2AB0", vde = "\u2AB4", Sde = "\u015E", _de = "\u015F", Cde = "\u015C", Ade = "\u015D", $de = "\u2ABA", Pde = "\u2AB6", Tde = "\u22E9", Qde = "\u2A13", Ede = "\u227F", Dde = "\u0421", Rde = "\u0441", Mde = "\u22A1", Zde = "\u22C5", Lde = "\u2A66", Ide = "\u2925", Nde = "\u2198", qde = "\u21D8", Bde = "\u2198", Yde = "\xA7", Xde = ";", Wde = "\u2929", Vde = "\u2216", jde = "\u2216", zde = "\u2736", Fde = "\u{1D516}", Ude = "\u{1D530}", Gde = "\u2322", Hde = "\u266F", Kde = "\u0429", Jde = "\u0449", epe = "\u0428", tpe = "\u0448", npe = "\u2193", rpe = "\u2190", ipe = "\u2223", spe = "\u2225", ope = "\u2192", lpe = "\u2191", ape = "\xAD", cpe = "\u03A3", hpe = "\u03C3", upe = "\u03C2", fpe = "\u03C2", dpe = "\u223C", ppe = "\u2A6A", mpe = "\u2243", gpe = "\u2243", Ope = "\u2A9E", bpe = "\u2AA0", ype = "\u2A9D", wpe = "\u2A9F", kpe = "\u2246", xpe = "\u2A24", vpe = "\u2972", Spe = "\u2190", _pe = "\u2218", Cpe = "\u2216", Ape = "\u2A33", $pe = "\u29E4", Ppe = "\u2223", Tpe = "\u2323", Qpe = "\u2AAA", Epe = "\u2AAC", Dpe = "\u2AAC\uFE00", Rpe = "\u042C", Mpe = "\u044C", Zpe = "\u233F", Lpe = "\u29C4", Ipe = "/", Npe = "\u{1D54A}", qpe = "\u{1D564}", Bpe = "\u2660", Ype = "\u2660", Xpe = "\u2225", Wpe = "\u2293", Vpe = "\u2293\uFE00", jpe = "\u2294", zpe = "\u2294\uFE00", Fpe = "\u221A", Upe = "\u228F", Gpe = "\u2291", Hpe = "\u228F", Kpe = "\u2291", Jpe = "\u2290", eme = "\u2292", tme = "\u2290", nme = "\u2292", rme = "\u25A1", ime = "\u25A1", sme = "\u2293", ome = "\u228F", lme = "\u2291", ame = "\u2290", cme = "\u2292", hme = "\u2294", ume = "\u25AA", fme = "\u25A1", dme = "\u25AA", pme = "\u2192", mme = "\u{1D4AE}", gme = "\u{1D4C8}", Ome = "\u2216", bme = "\u2323", yme = "\u22C6", wme = "\u22C6", kme = "\u2606", xme = "\u2605", vme = "\u03F5", Sme = "\u03D5", _me = "\xAF", Cme = "\u2282", Ame = "\u22D0", $me = "\u2ABD", Pme = "\u2AC5", Tme = "\u2286", Qme = "\u2AC3", Eme = "\u2AC1", Dme = "\u2ACB", Rme = "\u228A", Mme = "\u2ABF", Zme = "\u2979", Lme = "\u2282", Ime = "\u22D0", Nme = "\u2286", qme = "\u2AC5", Bme = "\u2286", Yme = "\u228A", Xme = "\u2ACB", Wme = "\u2AC7", Vme = "\u2AD5", jme = "\u2AD3", zme = "\u2AB8", Fme = "\u227B", Ume = "\u227D", Gme = "\u227B", Hme = "\u2AB0", Kme = "\u227D", Jme = "\u227F", ege = "\u2AB0", tge = "\u2ABA", nge = "\u2AB6", rge = "\u22E9", ige = "\u227F", sge = "\u220B", oge = "\u2211", lge = "\u2211", age = "\u266A", cge = "\xB9", hge = "\xB2", uge = "\xB3", fge = "\u2283", dge = "\u22D1", pge = "\u2ABE", mge = "\u2AD8", gge = "\u2AC6", Oge = "\u2287", bge = "\u2AC4", yge = "\u2283", wge = "\u2287", kge = "\u27C9", xge = "\u2AD7", vge = "\u297B", Sge = "\u2AC2", _ge = "\u2ACC", Cge = "\u228B", Age = "\u2AC0", $ge = "\u2283", Pge = "\u22D1", Tge = "\u2287", Qge = "\u2AC6", Ege = "\u228B", Dge = "\u2ACC", Rge = "\u2AC8", Mge = "\u2AD4", Zge = "\u2AD6", Lge = "\u2926", Ige = "\u2199", Nge = "\u21D9", qge = "\u2199", Bge = "\u292A", Yge = "\xDF", Xge = " ", Wge = "\u2316", Vge = "\u03A4", jge = "\u03C4", zge = "\u23B4", Fge = "\u0164", Uge = "\u0165", Gge = "\u0162", Hge = "\u0163", Kge = "\u0422", Jge = "\u0442", eOe = "\u20DB", tOe = "\u2315", nOe = "\u{1D517}", rOe = "\u{1D531}", iOe = "\u2234", sOe = "\u2234", oOe = "\u2234", lOe = "\u0398", aOe = "\u03B8", cOe = "\u03D1", hOe = "\u03D1", uOe = "\u2248", fOe = "\u223C", dOe = "\u205F\u200A", pOe = "\u2009", mOe = "\u2009", gOe = "\u2248", OOe = "\u223C", bOe = "\xDE", yOe = "\xFE", wOe = "\u02DC", kOe = "\u223C", xOe = "\u2243", vOe = "\u2245", SOe = "\u2248", _Oe = "\u2A31", COe = "\u22A0", AOe = "\xD7", $Oe = "\u2A30", POe = "\u222D", TOe = "\u2928", QOe = "\u2336", EOe = "\u2AF1", DOe = "\u22A4", ROe = "\u{1D54B}", MOe = "\u{1D565}", ZOe = "\u2ADA", LOe = "\u2929", IOe = "\u2034", NOe = "\u2122", qOe = "\u2122", BOe = "\u25B5", YOe = "\u25BF", XOe = "\u25C3", WOe = "\u22B4", VOe = "\u225C", jOe = "\u25B9", zOe = "\u22B5", FOe = "\u25EC", UOe = "\u225C", GOe = "\u2A3A", HOe = "\u20DB", KOe = "\u2A39", JOe = "\u29CD", e0e = "\u2A3B", t0e = "\u23E2", n0e = "\u{1D4AF}", r0e = "\u{1D4C9}", i0e = "\u0426", s0e = "\u0446", o0e = "\u040B", l0e = "\u045B", a0e = "\u0166", c0e = "\u0167", h0e = "\u226C", u0e = "\u219E", f0e = "\u21A0", d0e = "\xDA", p0e = "\xFA", m0e = "\u2191", g0e = "\u219F", O0e = "\u21D1", b0e = "\u2949", y0e = "\u040E", w0e = "\u045E", k0e = "\u016C", x0e = "\u016D", v0e = "\xDB", S0e = "\xFB", _0e = "\u0423", C0e = "\u0443", A0e = "\u21C5", $0e = "\u0170", P0e = "\u0171", T0e = "\u296E", Q0e = "\u297E", E0e = "\u{1D518}", D0e = "\u{1D532}", R0e = "\xD9", M0e = "\xF9", Z0e = "\u2963", L0e = "\u21BF", I0e = "\u21BE", N0e = "\u2580", q0e = "\u231C", B0e = "\u231C", Y0e = "\u230F", X0e = "\u25F8", W0e = "\u016A", V0e = "\u016B", j0e = "\xA8", z0e = "_", F0e = "\u23DF", U0e = "\u23B5", G0e = "\u23DD", H0e = "\u22C3", K0e = "\u228E", J0e = "\u0172", e1e = "\u0173", t1e = "\u{1D54C}", n1e = "\u{1D566}", r1e = "\u2912", i1e = "\u2191", s1e = "\u2191", o1e = "\u21D1", l1e = "\u21C5", a1e = "\u2195", c1e = "\u2195", h1e = "\u21D5", u1e = "\u296E", f1e = "\u21BF", d1e = "\u21BE", p1e = "\u228E", m1e = "\u2196", g1e = "\u2197", O1e = "\u03C5", b1e = "\u03D2", y1e = "\u03D2", w1e = "\u03A5", k1e = "\u03C5", x1e = "\u21A5", v1e = "\u22A5", S1e = "\u21C8", _1e = "\u231D", C1e = "\u231D", A1e = "\u230E", $1e = "\u016E", P1e = "\u016F", T1e = "\u25F9", Q1e = "\u{1D4B0}", E1e = "\u{1D4CA}", D1e = "\u22F0", R1e = "\u0168", M1e = "\u0169", Z1e = "\u25B5", L1e = "\u25B4", I1e = "\u21C8", N1e = "\xDC", q1e = "\xFC", B1e = "\u29A7", Y1e = "\u299C", X1e = "\u03F5", W1e = "\u03F0", V1e = "\u2205", j1e = "\u03D5", z1e = "\u03D6", F1e = "\u221D", U1e = "\u2195", G1e = "\u21D5", H1e = "\u03F1", K1e = "\u03C2", J1e = "\u228A\uFE00", ebe = "\u2ACB\uFE00", tbe = "\u228B\uFE00", nbe = "\u2ACC\uFE00", rbe = "\u03D1", ibe = "\u22B2", sbe = "\u22B3", obe = "\u2AE8", lbe = "\u2AEB", abe = "\u2AE9", cbe = "\u0412", hbe = "\u0432", ube = "\u22A2", fbe = "\u22A8", dbe = "\u22A9", pbe = "\u22AB", mbe = "\u2AE6", gbe = "\u22BB", Obe = "\u2228", bbe = "\u22C1", ybe = "\u225A", wbe = "\u22EE", kbe = "|", xbe = "\u2016", vbe = "|", Sbe = "\u2016", _be = "\u2223", Cbe = "|", Abe = "\u2758", $be = "\u2240", Pbe = "\u200A", Tbe = "\u{1D519}", Qbe = "\u{1D533}", Ebe = "\u22B2", Dbe = "\u2282\u20D2", Rbe = "\u2283\u20D2", Mbe = "\u{1D54D}", Zbe = "\u{1D567}", Lbe = "\u221D", Ibe = "\u22B3", Nbe = "\u{1D4B1}", qbe = "\u{1D4CB}", Bbe = "\u2ACB\uFE00", Ybe = "\u228A\uFE00", Xbe = "\u2ACC\uFE00", Wbe = "\u228B\uFE00", Vbe = "\u22AA", jbe = "\u299A", zbe = "\u0174", Fbe = "\u0175", Ube = "\u2A5F", Gbe = "\u2227", Hbe = "\u22C0", Kbe = "\u2259", Jbe = "\u2118", eye = "\u{1D51A}", tye = "\u{1D534}", nye = "\u{1D54E}", rye = "\u{1D568}", iye = "\u2118", sye = "\u2240", oye = "\u2240", lye = "\u{1D4B2}", aye = "\u{1D4CC}", cye = "\u22C2", hye = "\u25EF", uye = "\u22C3", fye = "\u25BD", dye = "\u{1D51B}", pye = "\u{1D535}", mye = "\u27F7", gye = "\u27FA", Oye = "\u039E", bye = "\u03BE", yye = "\u27F5", wye = "\u27F8", kye = "\u27FC", xye = "\u22FB", vye = "\u2A00", Sye = "\u{1D54F}", _ye = "\u{1D569}", Cye = "\u2A01", Aye = "\u2A02", $ye = "\u27F6", Pye = "\u27F9", Tye = "\u{1D4B3}", Qye = "\u{1D4CD}", Eye = "\u2A06", Dye = "\u2A04", Rye = "\u25B3", Mye = "\u22C1", Zye = "\u22C0", Lye = "\xDD", Iye = "\xFD", Nye = "\u042F", qye = "\u044F", Bye = "\u0176", Yye = "\u0177", Xye = "\u042B", Wye = "\u044B", Vye = "\xA5", jye = "\u{1D51C}", zye = "\u{1D536}", Fye = "\u0407", Uye = "\u0457", Gye = "\u{1D550}", Hye = "\u{1D56A}", Kye = "\u{1D4B4}", Jye = "\u{1D4CE}", ewe = "\u042E", twe = "\u044E", nwe = "\xFF", rwe = "\u0178", iwe = "\u0179", swe = "\u017A", owe = "\u017D", lwe = "\u017E", awe = "\u0417", cwe = "\u0437", hwe = "\u017B", uwe = "\u017C", fwe = "\u2128", dwe = "\u200B", pwe = "\u0396", mwe = "\u03B6", gwe = "\u{1D537}", Owe = "\u2128", bwe = "\u0416", ywe = "\u0436", wwe = "\u21DD", kwe = "\u{1D56B}", xwe = "\u2124", vwe = "\u{1D4B5}", Swe = "\u{1D4CF}", _we = "\u200D", Cwe = "\u200C", Awe = { - Aacute: hB, - aacute: uB, - Abreve: fB, - abreve: dB, - ac: pB, - acd: mB, - acE: gB, - Acirc: OB, - acirc: bB, - acute: yB, - Acy: wB, - acy: kB, - AElig: xB, - aelig: vB, - af: SB, - Afr: _B, - afr: CB, - Agrave: AB, - agrave: $B, - alefsym: PB, - aleph: TB, - Alpha: QB, - alpha: EB, - Amacr: DB, - amacr: RB, - amalg: MB, - amp: ZB, - AMP: LB, - andand: IB, - And: NB, - and: qB, - andd: BB, - andslope: YB, - andv: XB, - ang: WB, - ange: VB, - angle: jB, - angmsdaa: zB, - angmsdab: FB, - angmsdac: UB, - angmsdad: GB, - angmsdae: HB, - angmsdaf: KB, - angmsdag: JB, - angmsdah: e4, - angmsd: t4, - angrt: n4, - angrtvb: r4, - angrtvbd: i4, - angsph: s4, - angst: o4, - angzarr: l4, - Aogon: a4, - aogon: c4, - Aopf: h4, - aopf: u4, - apacir: f4, - ap: d4, - apE: p4, - ape: m4, - apid: g4, - apos: O4, - ApplyFunction: b4, - approx: y4, - approxeq: w4, - Aring: k4, - aring: x4, - Ascr: v4, - ascr: S4, - Assign: _4, - ast: C4, - asymp: A4, - asympeq: $4, - Atilde: P4, - atilde: T4, - Auml: Q4, - auml: E4, - awconint: D4, - awint: R4, - backcong: M4, - backepsilon: Z4, - backprime: L4, - backsim: I4, - backsimeq: N4, - Backslash: q4, - Barv: B4, - barvee: Y4, - barwed: X4, - Barwed: W4, - barwedge: V4, - bbrk: j4, - bbrktbrk: z4, - bcong: F4, - Bcy: U4, - bcy: G4, - bdquo: H4, - becaus: K4, - because: J4, - Because: eY, - bemptyv: tY, - bepsi: nY, - bernou: rY, - Bernoullis: iY, - Beta: sY, - beta: oY, - beth: lY, - between: aY, - Bfr: cY, - bfr: hY, - bigcap: uY, - bigcirc: fY, - bigcup: dY, - bigodot: pY, +var lA = { exports: {} }, ae = {}, Pm = { exports: {} }; +const u4 = "\xC1", f4 = "\xE1", d4 = "\u0102", p4 = "\u0103", g4 = "\u223E", m4 = "\u223F", O4 = "\u223E\u0333", b4 = "\xC2", y4 = "\xE2", w4 = "\xB4", k4 = "\u0410", x4 = "\u0430", v4 = "\xC6", S4 = "\xE6", _4 = "\u2061", C4 = "\u{1D504}", A4 = "\u{1D51E}", $4 = "\xC0", P4 = "\xE0", T4 = "\u2135", Q4 = "\u2135", E4 = "\u0391", D4 = "\u03B1", R4 = "\u0100", M4 = "\u0101", Z4 = "\u2A3F", L4 = "&", I4 = "&", N4 = "\u2A55", q4 = "\u2A53", B4 = "\u2227", Y4 = "\u2A5C", X4 = "\u2A58", W4 = "\u2A5A", V4 = "\u2220", j4 = "\u29A4", z4 = "\u2220", F4 = "\u29A8", U4 = "\u29A9", G4 = "\u29AA", H4 = "\u29AB", K4 = "\u29AC", J4 = "\u29AD", eB = "\u29AE", tB = "\u29AF", nB = "\u2221", rB = "\u221F", iB = "\u22BE", sB = "\u299D", oB = "\u2222", lB = "\xC5", aB = "\u237C", cB = "\u0104", hB = "\u0105", uB = "\u{1D538}", fB = "\u{1D552}", dB = "\u2A6F", pB = "\u2248", gB = "\u2A70", mB = "\u224A", OB = "\u224B", bB = "'", yB = "\u2061", wB = "\u2248", kB = "\u224A", xB = "\xC5", vB = "\xE5", SB = "\u{1D49C}", _B = "\u{1D4B6}", CB = "\u2254", AB = "*", $B = "\u2248", PB = "\u224D", TB = "\xC3", QB = "\xE3", EB = "\xC4", DB = "\xE4", RB = "\u2233", MB = "\u2A11", ZB = "\u224C", LB = "\u03F6", IB = "\u2035", NB = "\u223D", qB = "\u22CD", BB = "\u2216", YB = "\u2AE7", XB = "\u22BD", WB = "\u2305", VB = "\u2306", jB = "\u2305", zB = "\u23B5", FB = "\u23B6", UB = "\u224C", GB = "\u0411", HB = "\u0431", KB = "\u201E", JB = "\u2235", eY = "\u2235", tY = "\u2235", nY = "\u29B0", rY = "\u03F6", iY = "\u212C", sY = "\u212C", oY = "\u0392", lY = "\u03B2", aY = "\u2136", cY = "\u226C", hY = "\u{1D505}", uY = "\u{1D51F}", fY = "\u22C2", dY = "\u25EF", pY = "\u22C3", gY = "\u2A00", mY = "\u2A01", OY = "\u2A02", bY = "\u2A06", yY = "\u2605", wY = "\u25BD", kY = "\u25B3", xY = "\u2A04", vY = "\u22C1", SY = "\u22C0", _Y = "\u290D", CY = "\u29EB", AY = "\u25AA", $Y = "\u25B4", PY = "\u25BE", TY = "\u25C2", QY = "\u25B8", EY = "\u2423", DY = "\u2592", RY = "\u2591", MY = "\u2593", ZY = "\u2588", LY = "=\u20E5", IY = "\u2261\u20E5", NY = "\u2AED", qY = "\u2310", BY = "\u{1D539}", YY = "\u{1D553}", XY = "\u22A5", WY = "\u22A5", VY = "\u22C8", jY = "\u29C9", zY = "\u2510", FY = "\u2555", UY = "\u2556", GY = "\u2557", HY = "\u250C", KY = "\u2552", JY = "\u2553", eX = "\u2554", tX = "\u2500", nX = "\u2550", rX = "\u252C", iX = "\u2564", sX = "\u2565", oX = "\u2566", lX = "\u2534", aX = "\u2567", cX = "\u2568", hX = "\u2569", uX = "\u229F", fX = "\u229E", dX = "\u22A0", pX = "\u2518", gX = "\u255B", mX = "\u255C", OX = "\u255D", bX = "\u2514", yX = "\u2558", wX = "\u2559", kX = "\u255A", xX = "\u2502", vX = "\u2551", SX = "\u253C", _X = "\u256A", CX = "\u256B", AX = "\u256C", $X = "\u2524", PX = "\u2561", TX = "\u2562", QX = "\u2563", EX = "\u251C", DX = "\u255E", RX = "\u255F", MX = "\u2560", ZX = "\u2035", LX = "\u02D8", IX = "\u02D8", NX = "\xA6", qX = "\u{1D4B7}", BX = "\u212C", YX = "\u204F", XX = "\u223D", WX = "\u22CD", VX = "\u29C5", jX = "\\", zX = "\u27C8", FX = "\u2022", UX = "\u2022", GX = "\u224E", HX = "\u2AAE", KX = "\u224F", JX = "\u224E", eW = "\u224F", tW = "\u0106", nW = "\u0107", rW = "\u2A44", iW = "\u2A49", sW = "\u2A4B", oW = "\u2229", lW = "\u22D2", aW = "\u2A47", cW = "\u2A40", hW = "\u2145", uW = "\u2229\uFE00", fW = "\u2041", dW = "\u02C7", pW = "\u212D", gW = "\u2A4D", mW = "\u010C", OW = "\u010D", bW = "\xC7", yW = "\xE7", wW = "\u0108", kW = "\u0109", xW = "\u2230", vW = "\u2A4C", SW = "\u2A50", _W = "\u010A", CW = "\u010B", AW = "\xB8", $W = "\xB8", PW = "\u29B2", TW = "\xA2", QW = "\xB7", EW = "\xB7", DW = "\u{1D520}", RW = "\u212D", MW = "\u0427", ZW = "\u0447", LW = "\u2713", IW = "\u2713", NW = "\u03A7", qW = "\u03C7", BW = "\u02C6", YW = "\u2257", XW = "\u21BA", WW = "\u21BB", VW = "\u229B", jW = "\u229A", zW = "\u229D", FW = "\u2299", UW = "\xAE", GW = "\u24C8", HW = "\u2296", KW = "\u2295", JW = "\u2297", e8 = "\u25CB", t8 = "\u29C3", n8 = "\u2257", r8 = "\u2A10", i8 = "\u2AEF", s8 = "\u29C2", o8 = "\u2232", l8 = "\u201D", a8 = "\u2019", c8 = "\u2663", h8 = "\u2663", u8 = ":", f8 = "\u2237", d8 = "\u2A74", p8 = "\u2254", g8 = "\u2254", m8 = ",", O8 = "@", b8 = "\u2201", y8 = "\u2218", w8 = "\u2201", k8 = "\u2102", x8 = "\u2245", v8 = "\u2A6D", S8 = "\u2261", _8 = "\u222E", C8 = "\u222F", A8 = "\u222E", $8 = "\u{1D554}", P8 = "\u2102", T8 = "\u2210", Q8 = "\u2210", E8 = "\xA9", D8 = "\xA9", R8 = "\u2117", M8 = "\u2233", Z8 = "\u21B5", L8 = "\u2717", I8 = "\u2A2F", N8 = "\u{1D49E}", q8 = "\u{1D4B8}", B8 = "\u2ACF", Y8 = "\u2AD1", X8 = "\u2AD0", W8 = "\u2AD2", V8 = "\u22EF", j8 = "\u2938", z8 = "\u2935", F8 = "\u22DE", U8 = "\u22DF", G8 = "\u21B6", H8 = "\u293D", K8 = "\u2A48", J8 = "\u2A46", eV = "\u224D", tV = "\u222A", nV = "\u22D3", rV = "\u2A4A", iV = "\u228D", sV = "\u2A45", oV = "\u222A\uFE00", lV = "\u21B7", aV = "\u293C", cV = "\u22DE", hV = "\u22DF", uV = "\u22CE", fV = "\u22CF", dV = "\xA4", pV = "\u21B6", gV = "\u21B7", mV = "\u22CE", OV = "\u22CF", bV = "\u2232", yV = "\u2231", wV = "\u232D", kV = "\u2020", xV = "\u2021", vV = "\u2138", SV = "\u2193", _V = "\u21A1", CV = "\u21D3", AV = "\u2010", $V = "\u2AE4", PV = "\u22A3", TV = "\u290F", QV = "\u02DD", EV = "\u010E", DV = "\u010F", RV = "\u0414", MV = "\u0434", ZV = "\u2021", LV = "\u21CA", IV = "\u2145", NV = "\u2146", qV = "\u2911", BV = "\u2A77", YV = "\xB0", XV = "\u2207", WV = "\u0394", VV = "\u03B4", jV = "\u29B1", zV = "\u297F", FV = "\u{1D507}", UV = "\u{1D521}", GV = "\u2965", HV = "\u21C3", KV = "\u21C2", JV = "\xB4", ej = "\u02D9", tj = "\u02DD", nj = "`", rj = "\u02DC", ij = "\u22C4", sj = "\u22C4", oj = "\u22C4", lj = "\u2666", aj = "\u2666", cj = "\xA8", hj = "\u2146", uj = "\u03DD", fj = "\u22F2", dj = "\xF7", pj = "\xF7", gj = "\u22C7", mj = "\u22C7", Oj = "\u0402", bj = "\u0452", yj = "\u231E", wj = "\u230D", kj = "$", xj = "\u{1D53B}", vj = "\u{1D555}", Sj = "\xA8", _j = "\u02D9", Cj = "\u20DC", Aj = "\u2250", $j = "\u2251", Pj = "\u2250", Tj = "\u2238", Qj = "\u2214", Ej = "\u22A1", Dj = "\u2306", Rj = "\u222F", Mj = "\xA8", Zj = "\u21D3", Lj = "\u21D0", Ij = "\u21D4", Nj = "\u2AE4", qj = "\u27F8", Bj = "\u27FA", Yj = "\u27F9", Xj = "\u21D2", Wj = "\u22A8", Vj = "\u21D1", jj = "\u21D5", zj = "\u2225", Fj = "\u2913", Uj = "\u2193", Gj = "\u2193", Hj = "\u21D3", Kj = "\u21F5", Jj = "\u0311", ez = "\u21CA", tz = "\u21C3", nz = "\u21C2", rz = "\u2950", iz = "\u295E", sz = "\u2956", oz = "\u21BD", lz = "\u295F", az = "\u2957", cz = "\u21C1", hz = "\u21A7", uz = "\u22A4", fz = "\u2910", dz = "\u231F", pz = "\u230C", gz = "\u{1D49F}", mz = "\u{1D4B9}", Oz = "\u0405", bz = "\u0455", yz = "\u29F6", wz = "\u0110", kz = "\u0111", xz = "\u22F1", vz = "\u25BF", Sz = "\u25BE", _z = "\u21F5", Cz = "\u296F", Az = "\u29A6", $z = "\u040F", Pz = "\u045F", Tz = "\u27FF", Qz = "\xC9", Ez = "\xE9", Dz = "\u2A6E", Rz = "\u011A", Mz = "\u011B", Zz = "\xCA", Lz = "\xEA", Iz = "\u2256", Nz = "\u2255", qz = "\u042D", Bz = "\u044D", Yz = "\u2A77", Xz = "\u0116", Wz = "\u0117", Vz = "\u2251", jz = "\u2147", zz = "\u2252", Fz = "\u{1D508}", Uz = "\u{1D522}", Gz = "\u2A9A", Hz = "\xC8", Kz = "\xE8", Jz = "\u2A96", e9 = "\u2A98", t9 = "\u2A99", n9 = "\u2208", r9 = "\u23E7", i9 = "\u2113", s9 = "\u2A95", o9 = "\u2A97", l9 = "\u0112", a9 = "\u0113", c9 = "\u2205", h9 = "\u2205", u9 = "\u25FB", f9 = "\u2205", d9 = "\u25AB", p9 = "\u2004", g9 = "\u2005", m9 = "\u2003", O9 = "\u014A", b9 = "\u014B", y9 = "\u2002", w9 = "\u0118", k9 = "\u0119", x9 = "\u{1D53C}", v9 = "\u{1D556}", S9 = "\u22D5", _9 = "\u29E3", C9 = "\u2A71", A9 = "\u03B5", $9 = "\u0395", P9 = "\u03B5", T9 = "\u03F5", Q9 = "\u2256", E9 = "\u2255", D9 = "\u2242", R9 = "\u2A96", M9 = "\u2A95", Z9 = "\u2A75", L9 = "=", I9 = "\u2242", N9 = "\u225F", q9 = "\u21CC", B9 = "\u2261", Y9 = "\u2A78", X9 = "\u29E5", W9 = "\u2971", V9 = "\u2253", j9 = "\u212F", z9 = "\u2130", F9 = "\u2250", U9 = "\u2A73", G9 = "\u2242", H9 = "\u0397", K9 = "\u03B7", J9 = "\xD0", e6 = "\xF0", t6 = "\xCB", n6 = "\xEB", r6 = "\u20AC", i6 = "!", s6 = "\u2203", o6 = "\u2203", l6 = "\u2130", a6 = "\u2147", c6 = "\u2147", h6 = "\u2252", u6 = "\u0424", f6 = "\u0444", d6 = "\u2640", p6 = "\uFB03", g6 = "\uFB00", m6 = "\uFB04", O6 = "\u{1D509}", b6 = "\u{1D523}", y6 = "\uFB01", w6 = "\u25FC", k6 = "\u25AA", x6 = "fj", v6 = "\u266D", S6 = "\uFB02", _6 = "\u25B1", C6 = "\u0192", A6 = "\u{1D53D}", $6 = "\u{1D557}", P6 = "\u2200", T6 = "\u2200", Q6 = "\u22D4", E6 = "\u2AD9", D6 = "\u2131", R6 = "\u2A0D", M6 = "\xBD", Z6 = "\u2153", L6 = "\xBC", I6 = "\u2155", N6 = "\u2159", q6 = "\u215B", B6 = "\u2154", Y6 = "\u2156", X6 = "\xBE", W6 = "\u2157", V6 = "\u215C", j6 = "\u2158", z6 = "\u215A", F6 = "\u215D", U6 = "\u215E", G6 = "\u2044", H6 = "\u2322", K6 = "\u{1D4BB}", J6 = "\u2131", eF = "\u01F5", tF = "\u0393", nF = "\u03B3", rF = "\u03DC", iF = "\u03DD", sF = "\u2A86", oF = "\u011E", lF = "\u011F", aF = "\u0122", cF = "\u011C", hF = "\u011D", uF = "\u0413", fF = "\u0433", dF = "\u0120", pF = "\u0121", gF = "\u2265", mF = "\u2267", OF = "\u2A8C", bF = "\u22DB", yF = "\u2265", wF = "\u2267", kF = "\u2A7E", xF = "\u2AA9", vF = "\u2A7E", SF = "\u2A80", _F = "\u2A82", CF = "\u2A84", AF = "\u22DB\uFE00", $F = "\u2A94", PF = "\u{1D50A}", TF = "\u{1D524}", QF = "\u226B", EF = "\u22D9", DF = "\u22D9", RF = "\u2137", MF = "\u0403", ZF = "\u0453", LF = "\u2AA5", IF = "\u2277", NF = "\u2A92", qF = "\u2AA4", BF = "\u2A8A", YF = "\u2A8A", XF = "\u2A88", WF = "\u2269", VF = "\u2A88", jF = "\u2269", zF = "\u22E7", FF = "\u{1D53E}", UF = "\u{1D558}", GF = "`", HF = "\u2265", KF = "\u22DB", JF = "\u2267", eU = "\u2AA2", tU = "\u2277", nU = "\u2A7E", rU = "\u2273", iU = "\u{1D4A2}", sU = "\u210A", oU = "\u2273", lU = "\u2A8E", aU = "\u2A90", cU = "\u2AA7", hU = "\u2A7A", uU = ">", fU = ">", dU = "\u226B", pU = "\u22D7", gU = "\u2995", mU = "\u2A7C", OU = "\u2A86", bU = "\u2978", yU = "\u22D7", wU = "\u22DB", kU = "\u2A8C", xU = "\u2277", vU = "\u2273", SU = "\u2269\uFE00", _U = "\u2269\uFE00", CU = "\u02C7", AU = "\u200A", $U = "\xBD", PU = "\u210B", TU = "\u042A", QU = "\u044A", EU = "\u2948", DU = "\u2194", RU = "\u21D4", MU = "\u21AD", ZU = "^", LU = "\u210F", IU = "\u0124", NU = "\u0125", qU = "\u2665", BU = "\u2665", YU = "\u2026", XU = "\u22B9", WU = "\u{1D525}", VU = "\u210C", jU = "\u210B", zU = "\u2925", FU = "\u2926", UU = "\u21FF", GU = "\u223B", HU = "\u21A9", KU = "\u21AA", JU = "\u{1D559}", eG = "\u210D", tG = "\u2015", nG = "\u2500", rG = "\u{1D4BD}", iG = "\u210B", sG = "\u210F", oG = "\u0126", lG = "\u0127", aG = "\u224E", cG = "\u224F", hG = "\u2043", uG = "\u2010", fG = "\xCD", dG = "\xED", pG = "\u2063", gG = "\xCE", mG = "\xEE", OG = "\u0418", bG = "\u0438", yG = "\u0130", wG = "\u0415", kG = "\u0435", xG = "\xA1", vG = "\u21D4", SG = "\u{1D526}", _G = "\u2111", CG = "\xCC", AG = "\xEC", $G = "\u2148", PG = "\u2A0C", TG = "\u222D", QG = "\u29DC", EG = "\u2129", DG = "\u0132", RG = "\u0133", MG = "\u012A", ZG = "\u012B", LG = "\u2111", IG = "\u2148", NG = "\u2110", qG = "\u2111", BG = "\u0131", YG = "\u2111", XG = "\u22B7", WG = "\u01B5", VG = "\u21D2", jG = "\u2105", zG = "\u221E", FG = "\u29DD", UG = "\u0131", GG = "\u22BA", HG = "\u222B", KG = "\u222C", JG = "\u2124", eH = "\u222B", tH = "\u22BA", nH = "\u22C2", rH = "\u2A17", iH = "\u2A3C", sH = "\u2063", oH = "\u2062", lH = "\u0401", aH = "\u0451", cH = "\u012E", hH = "\u012F", uH = "\u{1D540}", fH = "\u{1D55A}", dH = "\u0399", pH = "\u03B9", gH = "\u2A3C", mH = "\xBF", OH = "\u{1D4BE}", bH = "\u2110", yH = "\u2208", wH = "\u22F5", kH = "\u22F9", xH = "\u22F4", vH = "\u22F3", SH = "\u2208", _H = "\u2062", CH = "\u0128", AH = "\u0129", $H = "\u0406", PH = "\u0456", TH = "\xCF", QH = "\xEF", EH = "\u0134", DH = "\u0135", RH = "\u0419", MH = "\u0439", ZH = "\u{1D50D}", LH = "\u{1D527}", IH = "\u0237", NH = "\u{1D541}", qH = "\u{1D55B}", BH = "\u{1D4A5}", YH = "\u{1D4BF}", XH = "\u0408", WH = "\u0458", VH = "\u0404", jH = "\u0454", zH = "\u039A", FH = "\u03BA", UH = "\u03F0", GH = "\u0136", HH = "\u0137", KH = "\u041A", JH = "\u043A", eK = "\u{1D50E}", tK = "\u{1D528}", nK = "\u0138", rK = "\u0425", iK = "\u0445", sK = "\u040C", oK = "\u045C", lK = "\u{1D542}", aK = "\u{1D55C}", cK = "\u{1D4A6}", hK = "\u{1D4C0}", uK = "\u21DA", fK = "\u0139", dK = "\u013A", pK = "\u29B4", gK = "\u2112", mK = "\u039B", OK = "\u03BB", bK = "\u27E8", yK = "\u27EA", wK = "\u2991", kK = "\u27E8", xK = "\u2A85", vK = "\u2112", SK = "\xAB", _K = "\u21E4", CK = "\u291F", AK = "\u2190", $K = "\u219E", PK = "\u21D0", TK = "\u291D", QK = "\u21A9", EK = "\u21AB", DK = "\u2939", RK = "\u2973", MK = "\u21A2", ZK = "\u2919", LK = "\u291B", IK = "\u2AAB", NK = "\u2AAD", qK = "\u2AAD\uFE00", BK = "\u290C", YK = "\u290E", XK = "\u2772", WK = "{", VK = "[", jK = "\u298B", zK = "\u298F", FK = "\u298D", UK = "\u013D", GK = "\u013E", HK = "\u013B", KK = "\u013C", JK = "\u2308", eJ = "{", tJ = "\u041B", nJ = "\u043B", rJ = "\u2936", iJ = "\u201C", sJ = "\u201E", oJ = "\u2967", lJ = "\u294B", aJ = "\u21B2", cJ = "\u2264", hJ = "\u2266", uJ = "\u27E8", fJ = "\u21E4", dJ = "\u2190", pJ = "\u2190", gJ = "\u21D0", mJ = "\u21C6", OJ = "\u21A2", bJ = "\u2308", yJ = "\u27E6", wJ = "\u2961", kJ = "\u2959", xJ = "\u21C3", vJ = "\u230A", SJ = "\u21BD", _J = "\u21BC", CJ = "\u21C7", AJ = "\u2194", $J = "\u2194", PJ = "\u21D4", TJ = "\u21C6", QJ = "\u21CB", EJ = "\u21AD", DJ = "\u294E", RJ = "\u21A4", MJ = "\u22A3", ZJ = "\u295A", LJ = "\u22CB", IJ = "\u29CF", NJ = "\u22B2", qJ = "\u22B4", BJ = "\u2951", YJ = "\u2960", XJ = "\u2958", WJ = "\u21BF", VJ = "\u2952", jJ = "\u21BC", zJ = "\u2A8B", FJ = "\u22DA", UJ = "\u2264", GJ = "\u2266", HJ = "\u2A7D", KJ = "\u2AA8", JJ = "\u2A7D", eee = "\u2A7F", tee = "\u2A81", nee = "\u2A83", ree = "\u22DA\uFE00", iee = "\u2A93", see = "\u2A85", oee = "\u22D6", lee = "\u22DA", aee = "\u2A8B", cee = "\u22DA", hee = "\u2266", uee = "\u2276", fee = "\u2276", dee = "\u2AA1", pee = "\u2272", gee = "\u2A7D", mee = "\u2272", Oee = "\u297C", bee = "\u230A", yee = "\u{1D50F}", wee = "\u{1D529}", kee = "\u2276", xee = "\u2A91", vee = "\u2962", See = "\u21BD", _ee = "\u21BC", Cee = "\u296A", Aee = "\u2584", $ee = "\u0409", Pee = "\u0459", Tee = "\u21C7", Qee = "\u226A", Eee = "\u22D8", Dee = "\u231E", Ree = "\u21DA", Mee = "\u296B", Zee = "\u25FA", Lee = "\u013F", Iee = "\u0140", Nee = "\u23B0", qee = "\u23B0", Bee = "\u2A89", Yee = "\u2A89", Xee = "\u2A87", Wee = "\u2268", Vee = "\u2A87", jee = "\u2268", zee = "\u22E6", Fee = "\u27EC", Uee = "\u21FD", Gee = "\u27E6", Hee = "\u27F5", Kee = "\u27F5", Jee = "\u27F8", ete = "\u27F7", tte = "\u27F7", nte = "\u27FA", rte = "\u27FC", ite = "\u27F6", ste = "\u27F6", ote = "\u27F9", lte = "\u21AB", ate = "\u21AC", cte = "\u2985", hte = "\u{1D543}", ute = "\u{1D55D}", fte = "\u2A2D", dte = "\u2A34", pte = "\u2217", gte = "_", mte = "\u2199", Ote = "\u2198", bte = "\u25CA", yte = "\u25CA", wte = "\u29EB", kte = "(", xte = "\u2993", vte = "\u21C6", Ste = "\u231F", _te = "\u21CB", Cte = "\u296D", Ate = "\u200E", $te = "\u22BF", Pte = "\u2039", Tte = "\u{1D4C1}", Qte = "\u2112", Ete = "\u21B0", Dte = "\u21B0", Rte = "\u2272", Mte = "\u2A8D", Zte = "\u2A8F", Lte = "[", Ite = "\u2018", Nte = "\u201A", qte = "\u0141", Bte = "\u0142", Yte = "\u2AA6", Xte = "\u2A79", Wte = "<", Vte = "<", jte = "\u226A", zte = "\u22D6", Fte = "\u22CB", Ute = "\u22C9", Gte = "\u2976", Hte = "\u2A7B", Kte = "\u25C3", Jte = "\u22B4", ene = "\u25C2", tne = "\u2996", nne = "\u294A", rne = "\u2966", ine = "\u2268\uFE00", sne = "\u2268\uFE00", one = "\xAF", lne = "\u2642", ane = "\u2720", cne = "\u2720", hne = "\u21A6", une = "\u21A6", fne = "\u21A7", dne = "\u21A4", pne = "\u21A5", gne = "\u25AE", mne = "\u2A29", One = "\u041C", bne = "\u043C", yne = "\u2014", wne = "\u223A", kne = "\u2221", xne = "\u205F", vne = "\u2133", Sne = "\u{1D510}", _ne = "\u{1D52A}", Cne = "\u2127", Ane = "\xB5", $ne = "*", Pne = "\u2AF0", Tne = "\u2223", Qne = "\xB7", Ene = "\u229F", Dne = "\u2212", Rne = "\u2238", Mne = "\u2A2A", Zne = "\u2213", Lne = "\u2ADB", Ine = "\u2026", Nne = "\u2213", qne = "\u22A7", Bne = "\u{1D544}", Yne = "\u{1D55E}", Xne = "\u2213", Wne = "\u{1D4C2}", Vne = "\u2133", jne = "\u223E", zne = "\u039C", Fne = "\u03BC", Une = "\u22B8", Gne = "\u22B8", Hne = "\u2207", Kne = "\u0143", Jne = "\u0144", ere = "\u2220\u20D2", tre = "\u2249", nre = "\u2A70\u0338", rre = "\u224B\u0338", ire = "\u0149", sre = "\u2249", ore = "\u266E", lre = "\u2115", are = "\u266E", cre = "\xA0", hre = "\u224E\u0338", ure = "\u224F\u0338", fre = "\u2A43", dre = "\u0147", pre = "\u0148", gre = "\u0145", mre = "\u0146", Ore = "\u2247", bre = "\u2A6D\u0338", yre = "\u2A42", wre = "\u041D", kre = "\u043D", xre = "\u2013", vre = "\u2924", Sre = "\u2197", _re = "\u21D7", Cre = "\u2197", Are = "\u2260", $re = "\u2250\u0338", Pre = "\u200B", Tre = "\u200B", Qre = "\u200B", Ere = "\u200B", Dre = "\u2262", Rre = "\u2928", Mre = "\u2242\u0338", Zre = "\u226B", Lre = "\u226A", Ire = ` +`, Nre = "\u2204", qre = "\u2204", Bre = "\u{1D511}", Yre = "\u{1D52B}", Xre = "\u2267\u0338", Wre = "\u2271", Vre = "\u2271", jre = "\u2267\u0338", zre = "\u2A7E\u0338", Fre = "\u2A7E\u0338", Ure = "\u22D9\u0338", Gre = "\u2275", Hre = "\u226B\u20D2", Kre = "\u226F", Jre = "\u226F", eie = "\u226B\u0338", tie = "\u21AE", nie = "\u21CE", rie = "\u2AF2", iie = "\u220B", sie = "\u22FC", oie = "\u22FA", lie = "\u220B", aie = "\u040A", cie = "\u045A", hie = "\u219A", uie = "\u21CD", fie = "\u2025", die = "\u2266\u0338", pie = "\u2270", gie = "\u219A", mie = "\u21CD", Oie = "\u21AE", bie = "\u21CE", yie = "\u2270", wie = "\u2266\u0338", kie = "\u2A7D\u0338", xie = "\u2A7D\u0338", vie = "\u226E", Sie = "\u22D8\u0338", _ie = "\u2274", Cie = "\u226A\u20D2", Aie = "\u226E", $ie = "\u22EA", Pie = "\u22EC", Tie = "\u226A\u0338", Qie = "\u2224", Eie = "\u2060", Die = "\xA0", Rie = "\u{1D55F}", Mie = "\u2115", Zie = "\u2AEC", Lie = "\xAC", Iie = "\u2262", Nie = "\u226D", qie = "\u2226", Bie = "\u2209", Yie = "\u2260", Xie = "\u2242\u0338", Wie = "\u2204", Vie = "\u226F", jie = "\u2271", zie = "\u2267\u0338", Fie = "\u226B\u0338", Uie = "\u2279", Gie = "\u2A7E\u0338", Hie = "\u2275", Kie = "\u224E\u0338", Jie = "\u224F\u0338", ese = "\u2209", tse = "\u22F5\u0338", nse = "\u22F9\u0338", rse = "\u2209", ise = "\u22F7", sse = "\u22F6", ose = "\u29CF\u0338", lse = "\u22EA", ase = "\u22EC", cse = "\u226E", hse = "\u2270", use = "\u2278", fse = "\u226A\u0338", dse = "\u2A7D\u0338", pse = "\u2274", gse = "\u2AA2\u0338", mse = "\u2AA1\u0338", Ose = "\u220C", bse = "\u220C", yse = "\u22FE", wse = "\u22FD", kse = "\u2280", xse = "\u2AAF\u0338", vse = "\u22E0", Sse = "\u220C", _se = "\u29D0\u0338", Cse = "\u22EB", Ase = "\u22ED", $se = "\u228F\u0338", Pse = "\u22E2", Tse = "\u2290\u0338", Qse = "\u22E3", Ese = "\u2282\u20D2", Dse = "\u2288", Rse = "\u2281", Mse = "\u2AB0\u0338", Zse = "\u22E1", Lse = "\u227F\u0338", Ise = "\u2283\u20D2", Nse = "\u2289", qse = "\u2241", Bse = "\u2244", Yse = "\u2247", Xse = "\u2249", Wse = "\u2224", Vse = "\u2226", jse = "\u2226", zse = "\u2AFD\u20E5", Fse = "\u2202\u0338", Use = "\u2A14", Gse = "\u2280", Hse = "\u22E0", Kse = "\u2280", Jse = "\u2AAF\u0338", eoe = "\u2AAF\u0338", toe = "\u2933\u0338", noe = "\u219B", roe = "\u21CF", ioe = "\u219D\u0338", soe = "\u219B", ooe = "\u21CF", loe = "\u22EB", aoe = "\u22ED", coe = "\u2281", hoe = "\u22E1", uoe = "\u2AB0\u0338", foe = "\u{1D4A9}", doe = "\u{1D4C3}", poe = "\u2224", goe = "\u2226", moe = "\u2241", Ooe = "\u2244", boe = "\u2244", yoe = "\u2224", woe = "\u2226", koe = "\u22E2", xoe = "\u22E3", voe = "\u2284", Soe = "\u2AC5\u0338", _oe = "\u2288", Coe = "\u2282\u20D2", Aoe = "\u2288", $oe = "\u2AC5\u0338", Poe = "\u2281", Toe = "\u2AB0\u0338", Qoe = "\u2285", Eoe = "\u2AC6\u0338", Doe = "\u2289", Roe = "\u2283\u20D2", Moe = "\u2289", Zoe = "\u2AC6\u0338", Loe = "\u2279", Ioe = "\xD1", Noe = "\xF1", qoe = "\u2278", Boe = "\u22EA", Yoe = "\u22EC", Xoe = "\u22EB", Woe = "\u22ED", Voe = "\u039D", joe = "\u03BD", zoe = "#", Foe = "\u2116", Uoe = "\u2007", Goe = "\u224D\u20D2", Hoe = "\u22AC", Koe = "\u22AD", Joe = "\u22AE", ele = "\u22AF", tle = "\u2265\u20D2", nle = ">\u20D2", rle = "\u2904", ile = "\u29DE", sle = "\u2902", ole = "\u2264\u20D2", lle = "<\u20D2", ale = "\u22B4\u20D2", cle = "\u2903", hle = "\u22B5\u20D2", ule = "\u223C\u20D2", fle = "\u2923", dle = "\u2196", ple = "\u21D6", gle = "\u2196", mle = "\u2927", Ole = "\xD3", ble = "\xF3", yle = "\u229B", wle = "\xD4", kle = "\xF4", xle = "\u229A", vle = "\u041E", Sle = "\u043E", _le = "\u229D", Cle = "\u0150", Ale = "\u0151", $le = "\u2A38", Ple = "\u2299", Tle = "\u29BC", Qle = "\u0152", Ele = "\u0153", Dle = "\u29BF", Rle = "\u{1D512}", Mle = "\u{1D52C}", Zle = "\u02DB", Lle = "\xD2", Ile = "\xF2", Nle = "\u29C1", qle = "\u29B5", Ble = "\u03A9", Yle = "\u222E", Xle = "\u21BA", Wle = "\u29BE", Vle = "\u29BB", jle = "\u203E", zle = "\u29C0", Fle = "\u014C", Ule = "\u014D", Gle = "\u03A9", Hle = "\u03C9", Kle = "\u039F", Jle = "\u03BF", eae = "\u29B6", tae = "\u2296", nae = "\u{1D546}", rae = "\u{1D560}", iae = "\u29B7", sae = "\u201C", oae = "\u2018", lae = "\u29B9", aae = "\u2295", cae = "\u21BB", hae = "\u2A54", uae = "\u2228", fae = "\u2A5D", dae = "\u2134", pae = "\u2134", gae = "\xAA", mae = "\xBA", Oae = "\u22B6", bae = "\u2A56", yae = "\u2A57", wae = "\u2A5B", kae = "\u24C8", xae = "\u{1D4AA}", vae = "\u2134", Sae = "\xD8", _ae = "\xF8", Cae = "\u2298", Aae = "\xD5", $ae = "\xF5", Pae = "\u2A36", Tae = "\u2A37", Qae = "\u2297", Eae = "\xD6", Dae = "\xF6", Rae = "\u233D", Mae = "\u203E", Zae = "\u23DE", Lae = "\u23B4", Iae = "\u23DC", Nae = "\xB6", qae = "\u2225", Bae = "\u2225", Yae = "\u2AF3", Xae = "\u2AFD", Wae = "\u2202", Vae = "\u2202", jae = "\u041F", zae = "\u043F", Fae = "%", Uae = ".", Gae = "\u2030", Hae = "\u22A5", Kae = "\u2031", Jae = "\u{1D513}", ece = "\u{1D52D}", tce = "\u03A6", nce = "\u03C6", rce = "\u03D5", ice = "\u2133", sce = "\u260E", oce = "\u03A0", lce = "\u03C0", ace = "\u22D4", cce = "\u03D6", hce = "\u210F", uce = "\u210E", fce = "\u210F", dce = "\u2A23", pce = "\u229E", gce = "\u2A22", mce = "+", Oce = "\u2214", bce = "\u2A25", yce = "\u2A72", wce = "\xB1", kce = "\xB1", xce = "\u2A26", vce = "\u2A27", Sce = "\xB1", _ce = "\u210C", Cce = "\u2A15", Ace = "\u{1D561}", $ce = "\u2119", Pce = "\xA3", Tce = "\u2AB7", Qce = "\u2ABB", Ece = "\u227A", Dce = "\u227C", Rce = "\u2AB7", Mce = "\u227A", Zce = "\u227C", Lce = "\u227A", Ice = "\u2AAF", Nce = "\u227C", qce = "\u227E", Bce = "\u2AAF", Yce = "\u2AB9", Xce = "\u2AB5", Wce = "\u22E8", Vce = "\u2AAF", jce = "\u2AB3", zce = "\u227E", Fce = "\u2032", Uce = "\u2033", Gce = "\u2119", Hce = "\u2AB9", Kce = "\u2AB5", Jce = "\u22E8", ehe = "\u220F", the = "\u220F", nhe = "\u232E", rhe = "\u2312", ihe = "\u2313", she = "\u221D", ohe = "\u221D", lhe = "\u2237", ahe = "\u221D", che = "\u227E", hhe = "\u22B0", uhe = "\u{1D4AB}", fhe = "\u{1D4C5}", dhe = "\u03A8", phe = "\u03C8", ghe = "\u2008", mhe = "\u{1D514}", Ohe = "\u{1D52E}", bhe = "\u2A0C", yhe = "\u{1D562}", whe = "\u211A", khe = "\u2057", xhe = "\u{1D4AC}", vhe = "\u{1D4C6}", She = "\u210D", _he = "\u2A16", Che = "?", Ahe = "\u225F", $he = '"', Phe = '"', The = "\u21DB", Qhe = "\u223D\u0331", Ehe = "\u0154", Dhe = "\u0155", Rhe = "\u221A", Mhe = "\u29B3", Zhe = "\u27E9", Lhe = "\u27EB", Ihe = "\u2992", Nhe = "\u29A5", qhe = "\u27E9", Bhe = "\xBB", Yhe = "\u2975", Xhe = "\u21E5", Whe = "\u2920", Vhe = "\u2933", jhe = "\u2192", zhe = "\u21A0", Fhe = "\u21D2", Uhe = "\u291E", Ghe = "\u21AA", Hhe = "\u21AC", Khe = "\u2945", Jhe = "\u2974", eue = "\u2916", tue = "\u21A3", nue = "\u219D", rue = "\u291A", iue = "\u291C", sue = "\u2236", oue = "\u211A", lue = "\u290D", aue = "\u290F", cue = "\u2910", hue = "\u2773", uue = "}", fue = "]", due = "\u298C", pue = "\u298E", gue = "\u2990", mue = "\u0158", Oue = "\u0159", bue = "\u0156", yue = "\u0157", wue = "\u2309", kue = "}", xue = "\u0420", vue = "\u0440", Sue = "\u2937", _ue = "\u2969", Cue = "\u201D", Aue = "\u201D", $ue = "\u21B3", Pue = "\u211C", Tue = "\u211B", Que = "\u211C", Eue = "\u211D", Due = "\u211C", Rue = "\u25AD", Mue = "\xAE", Zue = "\xAE", Lue = "\u220B", Iue = "\u21CB", Nue = "\u296F", que = "\u297D", Bue = "\u230B", Yue = "\u{1D52F}", Xue = "\u211C", Wue = "\u2964", Vue = "\u21C1", jue = "\u21C0", zue = "\u296C", Fue = "\u03A1", Uue = "\u03C1", Gue = "\u03F1", Hue = "\u27E9", Kue = "\u21E5", Jue = "\u2192", efe = "\u2192", tfe = "\u21D2", nfe = "\u21C4", rfe = "\u21A3", ife = "\u2309", sfe = "\u27E7", ofe = "\u295D", lfe = "\u2955", afe = "\u21C2", cfe = "\u230B", hfe = "\u21C1", ufe = "\u21C0", ffe = "\u21C4", dfe = "\u21CC", pfe = "\u21C9", gfe = "\u219D", mfe = "\u21A6", Ofe = "\u22A2", bfe = "\u295B", yfe = "\u22CC", wfe = "\u29D0", kfe = "\u22B3", xfe = "\u22B5", vfe = "\u294F", Sfe = "\u295C", _fe = "\u2954", Cfe = "\u21BE", Afe = "\u2953", $fe = "\u21C0", Pfe = "\u02DA", Tfe = "\u2253", Qfe = "\u21C4", Efe = "\u21CC", Dfe = "\u200F", Rfe = "\u23B1", Mfe = "\u23B1", Zfe = "\u2AEE", Lfe = "\u27ED", Ife = "\u21FE", Nfe = "\u27E7", qfe = "\u2986", Bfe = "\u{1D563}", Yfe = "\u211D", Xfe = "\u2A2E", Wfe = "\u2A35", Vfe = "\u2970", jfe = ")", zfe = "\u2994", Ffe = "\u2A12", Ufe = "\u21C9", Gfe = "\u21DB", Hfe = "\u203A", Kfe = "\u{1D4C7}", Jfe = "\u211B", ede = "\u21B1", tde = "\u21B1", nde = "]", rde = "\u2019", ide = "\u2019", sde = "\u22CC", ode = "\u22CA", lde = "\u25B9", ade = "\u22B5", cde = "\u25B8", hde = "\u29CE", ude = "\u29F4", fde = "\u2968", dde = "\u211E", pde = "\u015A", gde = "\u015B", mde = "\u201A", Ode = "\u2AB8", bde = "\u0160", yde = "\u0161", wde = "\u2ABC", kde = "\u227B", xde = "\u227D", vde = "\u2AB0", Sde = "\u2AB4", _de = "\u015E", Cde = "\u015F", Ade = "\u015C", $de = "\u015D", Pde = "\u2ABA", Tde = "\u2AB6", Qde = "\u22E9", Ede = "\u2A13", Dde = "\u227F", Rde = "\u0421", Mde = "\u0441", Zde = "\u22A1", Lde = "\u22C5", Ide = "\u2A66", Nde = "\u2925", qde = "\u2198", Bde = "\u21D8", Yde = "\u2198", Xde = "\xA7", Wde = ";", Vde = "\u2929", jde = "\u2216", zde = "\u2216", Fde = "\u2736", Ude = "\u{1D516}", Gde = "\u{1D530}", Hde = "\u2322", Kde = "\u266F", Jde = "\u0429", epe = "\u0449", tpe = "\u0428", npe = "\u0448", rpe = "\u2193", ipe = "\u2190", spe = "\u2223", ope = "\u2225", lpe = "\u2192", ape = "\u2191", cpe = "\xAD", hpe = "\u03A3", upe = "\u03C3", fpe = "\u03C2", dpe = "\u03C2", ppe = "\u223C", gpe = "\u2A6A", mpe = "\u2243", Ope = "\u2243", bpe = "\u2A9E", ype = "\u2AA0", wpe = "\u2A9D", kpe = "\u2A9F", xpe = "\u2246", vpe = "\u2A24", Spe = "\u2972", _pe = "\u2190", Cpe = "\u2218", Ape = "\u2216", $pe = "\u2A33", Ppe = "\u29E4", Tpe = "\u2223", Qpe = "\u2323", Epe = "\u2AAA", Dpe = "\u2AAC", Rpe = "\u2AAC\uFE00", Mpe = "\u042C", Zpe = "\u044C", Lpe = "\u233F", Ipe = "\u29C4", Npe = "/", qpe = "\u{1D54A}", Bpe = "\u{1D564}", Ype = "\u2660", Xpe = "\u2660", Wpe = "\u2225", Vpe = "\u2293", jpe = "\u2293\uFE00", zpe = "\u2294", Fpe = "\u2294\uFE00", Upe = "\u221A", Gpe = "\u228F", Hpe = "\u2291", Kpe = "\u228F", Jpe = "\u2291", ege = "\u2290", tge = "\u2292", nge = "\u2290", rge = "\u2292", ige = "\u25A1", sge = "\u25A1", oge = "\u2293", lge = "\u228F", age = "\u2291", cge = "\u2290", hge = "\u2292", uge = "\u2294", fge = "\u25AA", dge = "\u25A1", pge = "\u25AA", gge = "\u2192", mge = "\u{1D4AE}", Oge = "\u{1D4C8}", bge = "\u2216", yge = "\u2323", wge = "\u22C6", kge = "\u22C6", xge = "\u2606", vge = "\u2605", Sge = "\u03F5", _ge = "\u03D5", Cge = "\xAF", Age = "\u2282", $ge = "\u22D0", Pge = "\u2ABD", Tge = "\u2AC5", Qge = "\u2286", Ege = "\u2AC3", Dge = "\u2AC1", Rge = "\u2ACB", Mge = "\u228A", Zge = "\u2ABF", Lge = "\u2979", Ige = "\u2282", Nge = "\u22D0", qge = "\u2286", Bge = "\u2AC5", Yge = "\u2286", Xge = "\u228A", Wge = "\u2ACB", Vge = "\u2AC7", jge = "\u2AD5", zge = "\u2AD3", Fge = "\u2AB8", Uge = "\u227B", Gge = "\u227D", Hge = "\u227B", Kge = "\u2AB0", Jge = "\u227D", eme = "\u227F", tme = "\u2AB0", nme = "\u2ABA", rme = "\u2AB6", ime = "\u22E9", sme = "\u227F", ome = "\u220B", lme = "\u2211", ame = "\u2211", cme = "\u266A", hme = "\xB9", ume = "\xB2", fme = "\xB3", dme = "\u2283", pme = "\u22D1", gme = "\u2ABE", mme = "\u2AD8", Ome = "\u2AC6", bme = "\u2287", yme = "\u2AC4", wme = "\u2283", kme = "\u2287", xme = "\u27C9", vme = "\u2AD7", Sme = "\u297B", _me = "\u2AC2", Cme = "\u2ACC", Ame = "\u228B", $me = "\u2AC0", Pme = "\u2283", Tme = "\u22D1", Qme = "\u2287", Eme = "\u2AC6", Dme = "\u228B", Rme = "\u2ACC", Mme = "\u2AC8", Zme = "\u2AD4", Lme = "\u2AD6", Ime = "\u2926", Nme = "\u2199", qme = "\u21D9", Bme = "\u2199", Yme = "\u292A", Xme = "\xDF", Wme = " ", Vme = "\u2316", jme = "\u03A4", zme = "\u03C4", Fme = "\u23B4", Ume = "\u0164", Gme = "\u0165", Hme = "\u0162", Kme = "\u0163", Jme = "\u0422", eOe = "\u0442", tOe = "\u20DB", nOe = "\u2315", rOe = "\u{1D517}", iOe = "\u{1D531}", sOe = "\u2234", oOe = "\u2234", lOe = "\u2234", aOe = "\u0398", cOe = "\u03B8", hOe = "\u03D1", uOe = "\u03D1", fOe = "\u2248", dOe = "\u223C", pOe = "\u205F\u200A", gOe = "\u2009", mOe = "\u2009", OOe = "\u2248", bOe = "\u223C", yOe = "\xDE", wOe = "\xFE", kOe = "\u02DC", xOe = "\u223C", vOe = "\u2243", SOe = "\u2245", _Oe = "\u2248", COe = "\u2A31", AOe = "\u22A0", $Oe = "\xD7", POe = "\u2A30", TOe = "\u222D", QOe = "\u2928", EOe = "\u2336", DOe = "\u2AF1", ROe = "\u22A4", MOe = "\u{1D54B}", ZOe = "\u{1D565}", LOe = "\u2ADA", IOe = "\u2929", NOe = "\u2034", qOe = "\u2122", BOe = "\u2122", YOe = "\u25B5", XOe = "\u25BF", WOe = "\u25C3", VOe = "\u22B4", jOe = "\u225C", zOe = "\u25B9", FOe = "\u22B5", UOe = "\u25EC", GOe = "\u225C", HOe = "\u2A3A", KOe = "\u20DB", JOe = "\u2A39", e0e = "\u29CD", t0e = "\u2A3B", n0e = "\u23E2", r0e = "\u{1D4AF}", i0e = "\u{1D4C9}", s0e = "\u0426", o0e = "\u0446", l0e = "\u040B", a0e = "\u045B", c0e = "\u0166", h0e = "\u0167", u0e = "\u226C", f0e = "\u219E", d0e = "\u21A0", p0e = "\xDA", g0e = "\xFA", m0e = "\u2191", O0e = "\u219F", b0e = "\u21D1", y0e = "\u2949", w0e = "\u040E", k0e = "\u045E", x0e = "\u016C", v0e = "\u016D", S0e = "\xDB", _0e = "\xFB", C0e = "\u0423", A0e = "\u0443", $0e = "\u21C5", P0e = "\u0170", T0e = "\u0171", Q0e = "\u296E", E0e = "\u297E", D0e = "\u{1D518}", R0e = "\u{1D532}", M0e = "\xD9", Z0e = "\xF9", L0e = "\u2963", I0e = "\u21BF", N0e = "\u21BE", q0e = "\u2580", B0e = "\u231C", Y0e = "\u231C", X0e = "\u230F", W0e = "\u25F8", V0e = "\u016A", j0e = "\u016B", z0e = "\xA8", F0e = "_", U0e = "\u23DF", G0e = "\u23B5", H0e = "\u23DD", K0e = "\u22C3", J0e = "\u228E", e1e = "\u0172", t1e = "\u0173", n1e = "\u{1D54C}", r1e = "\u{1D566}", i1e = "\u2912", s1e = "\u2191", o1e = "\u2191", l1e = "\u21D1", a1e = "\u21C5", c1e = "\u2195", h1e = "\u2195", u1e = "\u21D5", f1e = "\u296E", d1e = "\u21BF", p1e = "\u21BE", g1e = "\u228E", m1e = "\u2196", O1e = "\u2197", b1e = "\u03C5", y1e = "\u03D2", w1e = "\u03D2", k1e = "\u03A5", x1e = "\u03C5", v1e = "\u21A5", S1e = "\u22A5", _1e = "\u21C8", C1e = "\u231D", A1e = "\u231D", $1e = "\u230E", P1e = "\u016E", T1e = "\u016F", Q1e = "\u25F9", E1e = "\u{1D4B0}", D1e = "\u{1D4CA}", R1e = "\u22F0", M1e = "\u0168", Z1e = "\u0169", L1e = "\u25B5", I1e = "\u25B4", N1e = "\u21C8", q1e = "\xDC", B1e = "\xFC", Y1e = "\u29A7", X1e = "\u299C", W1e = "\u03F5", V1e = "\u03F0", j1e = "\u2205", z1e = "\u03D5", F1e = "\u03D6", U1e = "\u221D", G1e = "\u2195", H1e = "\u21D5", K1e = "\u03F1", J1e = "\u03C2", ebe = "\u228A\uFE00", tbe = "\u2ACB\uFE00", nbe = "\u228B\uFE00", rbe = "\u2ACC\uFE00", ibe = "\u03D1", sbe = "\u22B2", obe = "\u22B3", lbe = "\u2AE8", abe = "\u2AEB", cbe = "\u2AE9", hbe = "\u0412", ube = "\u0432", fbe = "\u22A2", dbe = "\u22A8", pbe = "\u22A9", gbe = "\u22AB", mbe = "\u2AE6", Obe = "\u22BB", bbe = "\u2228", ybe = "\u22C1", wbe = "\u225A", kbe = "\u22EE", xbe = "|", vbe = "\u2016", Sbe = "|", _be = "\u2016", Cbe = "\u2223", Abe = "|", $be = "\u2758", Pbe = "\u2240", Tbe = "\u200A", Qbe = "\u{1D519}", Ebe = "\u{1D533}", Dbe = "\u22B2", Rbe = "\u2282\u20D2", Mbe = "\u2283\u20D2", Zbe = "\u{1D54D}", Lbe = "\u{1D567}", Ibe = "\u221D", Nbe = "\u22B3", qbe = "\u{1D4B1}", Bbe = "\u{1D4CB}", Ybe = "\u2ACB\uFE00", Xbe = "\u228A\uFE00", Wbe = "\u2ACC\uFE00", Vbe = "\u228B\uFE00", jbe = "\u22AA", zbe = "\u299A", Fbe = "\u0174", Ube = "\u0175", Gbe = "\u2A5F", Hbe = "\u2227", Kbe = "\u22C0", Jbe = "\u2259", eye = "\u2118", tye = "\u{1D51A}", nye = "\u{1D534}", rye = "\u{1D54E}", iye = "\u{1D568}", sye = "\u2118", oye = "\u2240", lye = "\u2240", aye = "\u{1D4B2}", cye = "\u{1D4CC}", hye = "\u22C2", uye = "\u25EF", fye = "\u22C3", dye = "\u25BD", pye = "\u{1D51B}", gye = "\u{1D535}", mye = "\u27F7", Oye = "\u27FA", bye = "\u039E", yye = "\u03BE", wye = "\u27F5", kye = "\u27F8", xye = "\u27FC", vye = "\u22FB", Sye = "\u2A00", _ye = "\u{1D54F}", Cye = "\u{1D569}", Aye = "\u2A01", $ye = "\u2A02", Pye = "\u27F6", Tye = "\u27F9", Qye = "\u{1D4B3}", Eye = "\u{1D4CD}", Dye = "\u2A06", Rye = "\u2A04", Mye = "\u25B3", Zye = "\u22C1", Lye = "\u22C0", Iye = "\xDD", Nye = "\xFD", qye = "\u042F", Bye = "\u044F", Yye = "\u0176", Xye = "\u0177", Wye = "\u042B", Vye = "\u044B", jye = "\xA5", zye = "\u{1D51C}", Fye = "\u{1D536}", Uye = "\u0407", Gye = "\u0457", Hye = "\u{1D550}", Kye = "\u{1D56A}", Jye = "\u{1D4B4}", ewe = "\u{1D4CE}", twe = "\u042E", nwe = "\u044E", rwe = "\xFF", iwe = "\u0178", swe = "\u0179", owe = "\u017A", lwe = "\u017D", awe = "\u017E", cwe = "\u0417", hwe = "\u0437", uwe = "\u017B", fwe = "\u017C", dwe = "\u2128", pwe = "\u200B", gwe = "\u0396", mwe = "\u03B6", Owe = "\u{1D537}", bwe = "\u2128", ywe = "\u0416", wwe = "\u0436", kwe = "\u21DD", xwe = "\u{1D56B}", vwe = "\u2124", Swe = "\u{1D4B5}", _we = "\u{1D4CF}", Cwe = "\u200D", Awe = "\u200C", $we = { + Aacute: u4, + aacute: f4, + Abreve: d4, + abreve: p4, + ac: g4, + acd: m4, + acE: O4, + Acirc: b4, + acirc: y4, + acute: w4, + Acy: k4, + acy: x4, + AElig: v4, + aelig: S4, + af: _4, + Afr: C4, + afr: A4, + Agrave: $4, + agrave: P4, + alefsym: T4, + aleph: Q4, + Alpha: E4, + alpha: D4, + Amacr: R4, + amacr: M4, + amalg: Z4, + amp: L4, + AMP: I4, + andand: N4, + And: q4, + and: B4, + andd: Y4, + andslope: X4, + andv: W4, + ang: V4, + ange: j4, + angle: z4, + angmsdaa: F4, + angmsdab: U4, + angmsdac: G4, + angmsdad: H4, + angmsdae: K4, + angmsdaf: J4, + angmsdag: eB, + angmsdah: tB, + angmsd: nB, + angrt: rB, + angrtvb: iB, + angrtvbd: sB, + angsph: oB, + angst: lB, + angzarr: aB, + Aogon: cB, + aogon: hB, + Aopf: uB, + aopf: fB, + apacir: dB, + ap: pB, + apE: gB, + ape: mB, + apid: OB, + apos: bB, + ApplyFunction: yB, + approx: wB, + approxeq: kB, + Aring: xB, + aring: vB, + Ascr: SB, + ascr: _B, + Assign: CB, + ast: AB, + asymp: $B, + asympeq: PB, + Atilde: TB, + atilde: QB, + Auml: EB, + auml: DB, + awconint: RB, + awint: MB, + backcong: ZB, + backepsilon: LB, + backprime: IB, + backsim: NB, + backsimeq: qB, + Backslash: BB, + Barv: YB, + barvee: XB, + barwed: WB, + Barwed: VB, + barwedge: jB, + bbrk: zB, + bbrktbrk: FB, + bcong: UB, + Bcy: GB, + bcy: HB, + bdquo: KB, + becaus: JB, + because: eY, + Because: tY, + bemptyv: nY, + bepsi: rY, + bernou: iY, + Bernoullis: sY, + Beta: oY, + beta: lY, + beth: aY, + between: cY, + Bfr: hY, + bfr: uY, + bigcap: fY, + bigcirc: dY, + bigcup: pY, + bigodot: gY, bigoplus: mY, - bigotimes: gY, - bigsqcup: OY, - bigstar: bY, - bigtriangledown: yY, - bigtriangleup: wY, - biguplus: kY, - bigvee: xY, - bigwedge: vY, - bkarow: SY, - blacklozenge: _Y, - blacksquare: CY, - blacktriangle: AY, - blacktriangledown: $Y, - blacktriangleleft: PY, - blacktriangleright: TY, - blank: QY, - blk12: EY, - blk14: DY, - blk34: RY, - block: MY, - bne: ZY, - bnequiv: LY, - bNot: IY, - bnot: NY, - Bopf: qY, - bopf: BY, - bot: YY, - bottom: XY, - bowtie: WY, - boxbox: VY, - boxdl: jY, - boxdL: zY, - boxDl: FY, - boxDL: UY, - boxdr: GY, - boxdR: HY, - boxDr: KY, - boxDR: JY, - boxh: eX, - boxH: tX, - boxhd: nX, - boxHd: rX, - boxhD: iX, - boxHD: sX, - boxhu: oX, - boxHu: lX, - boxhU: aX, - boxHU: cX, - boxminus: hX, - boxplus: uX, - boxtimes: fX, - boxul: dX, - boxuL: pX, + bigotimes: OY, + bigsqcup: bY, + bigstar: yY, + bigtriangledown: wY, + bigtriangleup: kY, + biguplus: xY, + bigvee: vY, + bigwedge: SY, + bkarow: _Y, + blacklozenge: CY, + blacksquare: AY, + blacktriangle: $Y, + blacktriangledown: PY, + blacktriangleleft: TY, + blacktriangleright: QY, + blank: EY, + blk12: DY, + blk14: RY, + blk34: MY, + block: ZY, + bne: LY, + bnequiv: IY, + bNot: NY, + bnot: qY, + Bopf: BY, + bopf: YY, + bot: XY, + bottom: WY, + bowtie: VY, + boxbox: jY, + boxdl: zY, + boxdL: FY, + boxDl: UY, + boxDL: GY, + boxdr: HY, + boxdR: KY, + boxDr: JY, + boxDR: eX, + boxh: tX, + boxH: nX, + boxhd: rX, + boxHd: iX, + boxhD: sX, + boxHD: oX, + boxhu: lX, + boxHu: aX, + boxhU: cX, + boxHU: hX, + boxminus: uX, + boxplus: fX, + boxtimes: dX, + boxul: pX, + boxuL: gX, boxUl: mX, - boxUL: gX, - boxur: OX, - boxuR: bX, - boxUr: yX, - boxUR: wX, - boxv: kX, - boxV: xX, - boxvh: vX, - boxvH: SX, - boxVh: _X, - boxVH: CX, - boxvl: AX, - boxvL: $X, - boxVl: PX, - boxVL: TX, - boxvr: QX, - boxvR: EX, - boxVr: DX, - boxVR: RX, - bprime: MX, - breve: ZX, - Breve: LX, - brvbar: IX, - bscr: NX, - Bscr: qX, - bsemi: BX, - bsim: YX, - bsime: XX, - bsolb: WX, - bsol: VX, - bsolhsub: jX, - bull: zX, - bullet: FX, - bump: UX, - bumpE: GX, - bumpe: HX, - Bumpeq: KX, - bumpeq: JX, - Cacute: eW, - cacute: tW, - capand: nW, - capbrcup: rW, - capcap: iW, - cap: sW, - Cap: oW, - capcup: lW, - capdot: aW, - CapitalDifferentialD: cW, - caps: hW, - caret: uW, - caron: fW, - Cayleys: dW, - ccaps: pW, + boxUL: OX, + boxur: bX, + boxuR: yX, + boxUr: wX, + boxUR: kX, + boxv: xX, + boxV: vX, + boxvh: SX, + boxvH: _X, + boxVh: CX, + boxVH: AX, + boxvl: $X, + boxvL: PX, + boxVl: TX, + boxVL: QX, + boxvr: EX, + boxvR: DX, + boxVr: RX, + boxVR: MX, + bprime: ZX, + breve: LX, + Breve: IX, + brvbar: NX, + bscr: qX, + Bscr: BX, + bsemi: YX, + bsim: XX, + bsime: WX, + bsolb: VX, + bsol: jX, + bsolhsub: zX, + bull: FX, + bullet: UX, + bump: GX, + bumpE: HX, + bumpe: KX, + Bumpeq: JX, + bumpeq: eW, + Cacute: tW, + cacute: nW, + capand: rW, + capbrcup: iW, + capcap: sW, + cap: oW, + Cap: lW, + capcup: aW, + capdot: cW, + CapitalDifferentialD: hW, + caps: uW, + caret: fW, + caron: dW, + Cayleys: pW, + ccaps: gW, Ccaron: mW, - ccaron: gW, - Ccedil: OW, - ccedil: bW, - Ccirc: yW, - ccirc: wW, - Cconint: kW, - ccups: xW, - ccupssm: vW, - Cdot: SW, - cdot: _W, - cedil: CW, - Cedilla: AW, - cemptyv: $W, - cent: PW, - centerdot: TW, - CenterDot: QW, - cfr: EW, - Cfr: DW, - CHcy: RW, - chcy: MW, - check: ZW, - checkmark: LW, - Chi: IW, - chi: NW, - circ: qW, - circeq: BW, - circlearrowleft: YW, - circlearrowright: XW, - circledast: WW, - circledcirc: VW, - circleddash: jW, - CircleDot: zW, - circledR: FW, - circledS: UW, - CircleMinus: GW, - CirclePlus: HW, - CircleTimes: KW, - cir: JW, - cirE: eV, - cire: tV, - cirfnint: nV, - cirmid: rV, - cirscir: iV, - ClockwiseContourIntegral: sV, - CloseCurlyDoubleQuote: oV, - CloseCurlyQuote: lV, - clubs: aV, - clubsuit: cV, - colon: hV, - Colon: uV, - Colone: fV, - colone: dV, - coloneq: pV, - comma: mV, - commat: gV, - comp: OV, - compfn: bV, - complement: yV, - complexes: wV, - cong: kV, - congdot: xV, - Congruent: vV, - conint: SV, - Conint: _V, - ContourIntegral: CV, - copf: AV, - Copf: $V, - coprod: PV, - Coproduct: TV, - copy: QV, - COPY: EV, - copysr: DV, - CounterClockwiseContourIntegral: RV, - crarr: MV, - cross: ZV, - Cross: LV, - Cscr: IV, - cscr: NV, - csub: qV, - csube: BV, - csup: YV, - csupe: XV, - ctdot: WV, - cudarrl: VV, - cudarrr: jV, - cuepr: zV, - cuesc: FV, - cularr: UV, - cularrp: GV, - cupbrcap: HV, - cupcap: KV, - CupCap: JV, - cup: ej, - Cup: tj, - cupcup: nj, - cupdot: rj, - cupor: ij, - cups: sj, - curarr: oj, - curarrm: lj, - curlyeqprec: aj, - curlyeqsucc: cj, - curlyvee: hj, - curlywedge: uj, - curren: fj, - curvearrowleft: dj, - curvearrowright: pj, - cuvee: mj, - cuwed: gj, - cwconint: Oj, - cwint: bj, - cylcty: yj, - dagger: wj, - Dagger: kj, - daleth: xj, - darr: vj, - Darr: Sj, - dArr: _j, - dash: Cj, - Dashv: Aj, - dashv: $j, - dbkarow: Pj, - dblac: Tj, - Dcaron: Qj, - dcaron: Ej, - Dcy: Dj, - dcy: Rj, - ddagger: Mj, - ddarr: Zj, - DD: Lj, - dd: Ij, - DDotrahd: Nj, - ddotseq: qj, - deg: Bj, - Del: Yj, - Delta: Xj, - delta: Wj, - demptyv: Vj, - dfisht: jj, - Dfr: zj, - dfr: Fj, - dHar: Uj, - dharl: Gj, - dharr: Hj, - DiacriticalAcute: Kj, - DiacriticalDot: Jj, - DiacriticalDoubleAcute: e8, - DiacriticalGrave: t8, - DiacriticalTilde: n8, - diam: r8, - diamond: i8, - Diamond: s8, - diamondsuit: o8, - diams: l8, - die: a8, - DifferentialD: c8, - digamma: h8, - disin: u8, - div: f8, - divide: d8, - divideontimes: p8, - divonx: m8, - DJcy: g8, - djcy: O8, - dlcorn: b8, - dlcrop: y8, - dollar: w8, - Dopf: k8, - dopf: x8, - Dot: v8, - dot: S8, - DotDot: _8, - doteq: C8, - doteqdot: A8, - DotEqual: $8, - dotminus: P8, - dotplus: T8, - dotsquare: Q8, - doublebarwedge: E8, - DoubleContourIntegral: D8, - DoubleDot: R8, - DoubleDownArrow: M8, - DoubleLeftArrow: Z8, - DoubleLeftRightArrow: L8, - DoubleLeftTee: I8, - DoubleLongLeftArrow: N8, - DoubleLongLeftRightArrow: q8, - DoubleLongRightArrow: B8, - DoubleRightArrow: Y8, - DoubleRightTee: X8, - DoubleUpArrow: W8, - DoubleUpDownArrow: V8, - DoubleVerticalBar: j8, - DownArrowBar: z8, - downarrow: F8, - DownArrow: U8, - Downarrow: G8, - DownArrowUpArrow: H8, - DownBreve: K8, - downdownarrows: J8, - downharpoonleft: ez, - downharpoonright: tz, - DownLeftRightVector: nz, - DownLeftTeeVector: rz, - DownLeftVectorBar: iz, - DownLeftVector: sz, - DownRightTeeVector: oz, - DownRightVectorBar: lz, - DownRightVector: az, - DownTeeArrow: cz, - DownTee: hz, - drbkarow: uz, - drcorn: fz, - drcrop: dz, - Dscr: pz, + ccaron: OW, + Ccedil: bW, + ccedil: yW, + Ccirc: wW, + ccirc: kW, + Cconint: xW, + ccups: vW, + ccupssm: SW, + Cdot: _W, + cdot: CW, + cedil: AW, + Cedilla: $W, + cemptyv: PW, + cent: TW, + centerdot: QW, + CenterDot: EW, + cfr: DW, + Cfr: RW, + CHcy: MW, + chcy: ZW, + check: LW, + checkmark: IW, + Chi: NW, + chi: qW, + circ: BW, + circeq: YW, + circlearrowleft: XW, + circlearrowright: WW, + circledast: VW, + circledcirc: jW, + circleddash: zW, + CircleDot: FW, + circledR: UW, + circledS: GW, + CircleMinus: HW, + CirclePlus: KW, + CircleTimes: JW, + cir: e8, + cirE: t8, + cire: n8, + cirfnint: r8, + cirmid: i8, + cirscir: s8, + ClockwiseContourIntegral: o8, + CloseCurlyDoubleQuote: l8, + CloseCurlyQuote: a8, + clubs: c8, + clubsuit: h8, + colon: u8, + Colon: f8, + Colone: d8, + colone: p8, + coloneq: g8, + comma: m8, + commat: O8, + comp: b8, + compfn: y8, + complement: w8, + complexes: k8, + cong: x8, + congdot: v8, + Congruent: S8, + conint: _8, + Conint: C8, + ContourIntegral: A8, + copf: $8, + Copf: P8, + coprod: T8, + Coproduct: Q8, + copy: E8, + COPY: D8, + copysr: R8, + CounterClockwiseContourIntegral: M8, + crarr: Z8, + cross: L8, + Cross: I8, + Cscr: N8, + cscr: q8, + csub: B8, + csube: Y8, + csup: X8, + csupe: W8, + ctdot: V8, + cudarrl: j8, + cudarrr: z8, + cuepr: F8, + cuesc: U8, + cularr: G8, + cularrp: H8, + cupbrcap: K8, + cupcap: J8, + CupCap: eV, + cup: tV, + Cup: nV, + cupcup: rV, + cupdot: iV, + cupor: sV, + cups: oV, + curarr: lV, + curarrm: aV, + curlyeqprec: cV, + curlyeqsucc: hV, + curlyvee: uV, + curlywedge: fV, + curren: dV, + curvearrowleft: pV, + curvearrowright: gV, + cuvee: mV, + cuwed: OV, + cwconint: bV, + cwint: yV, + cylcty: wV, + dagger: kV, + Dagger: xV, + daleth: vV, + darr: SV, + Darr: _V, + dArr: CV, + dash: AV, + Dashv: $V, + dashv: PV, + dbkarow: TV, + dblac: QV, + Dcaron: EV, + dcaron: DV, + Dcy: RV, + dcy: MV, + ddagger: ZV, + ddarr: LV, + DD: IV, + dd: NV, + DDotrahd: qV, + ddotseq: BV, + deg: YV, + Del: XV, + Delta: WV, + delta: VV, + demptyv: jV, + dfisht: zV, + Dfr: FV, + dfr: UV, + dHar: GV, + dharl: HV, + dharr: KV, + DiacriticalAcute: JV, + DiacriticalDot: ej, + DiacriticalDoubleAcute: tj, + DiacriticalGrave: nj, + DiacriticalTilde: rj, + diam: ij, + diamond: sj, + Diamond: oj, + diamondsuit: lj, + diams: aj, + die: cj, + DifferentialD: hj, + digamma: uj, + disin: fj, + div: dj, + divide: pj, + divideontimes: gj, + divonx: mj, + DJcy: Oj, + djcy: bj, + dlcorn: yj, + dlcrop: wj, + dollar: kj, + Dopf: xj, + dopf: vj, + Dot: Sj, + dot: _j, + DotDot: Cj, + doteq: Aj, + doteqdot: $j, + DotEqual: Pj, + dotminus: Tj, + dotplus: Qj, + dotsquare: Ej, + doublebarwedge: Dj, + DoubleContourIntegral: Rj, + DoubleDot: Mj, + DoubleDownArrow: Zj, + DoubleLeftArrow: Lj, + DoubleLeftRightArrow: Ij, + DoubleLeftTee: Nj, + DoubleLongLeftArrow: qj, + DoubleLongLeftRightArrow: Bj, + DoubleLongRightArrow: Yj, + DoubleRightArrow: Xj, + DoubleRightTee: Wj, + DoubleUpArrow: Vj, + DoubleUpDownArrow: jj, + DoubleVerticalBar: zj, + DownArrowBar: Fj, + downarrow: Uj, + DownArrow: Gj, + Downarrow: Hj, + DownArrowUpArrow: Kj, + DownBreve: Jj, + downdownarrows: ez, + downharpoonleft: tz, + downharpoonright: nz, + DownLeftRightVector: rz, + DownLeftTeeVector: iz, + DownLeftVectorBar: sz, + DownLeftVector: oz, + DownRightTeeVector: lz, + DownRightVectorBar: az, + DownRightVector: cz, + DownTeeArrow: hz, + DownTee: uz, + drbkarow: fz, + drcorn: dz, + drcrop: pz, + Dscr: gz, dscr: mz, - DScy: gz, - dscy: Oz, - dsol: bz, - Dstrok: yz, - dstrok: wz, - dtdot: kz, - dtri: xz, - dtrif: vz, - duarr: Sz, - duhar: _z, - dwangle: Cz, - DZcy: Az, - dzcy: $z, - dzigrarr: Pz, - Eacute: Tz, - eacute: Qz, - easter: Ez, - Ecaron: Dz, - ecaron: Rz, - Ecirc: Mz, - ecirc: Zz, - ecir: Lz, - ecolon: Iz, - Ecy: Nz, - ecy: qz, - eDDot: Bz, - Edot: Yz, - edot: Xz, - eDot: Wz, - ee: Vz, - efDot: jz, - Efr: zz, - efr: Fz, - eg: Uz, - Egrave: Gz, - egrave: Hz, - egs: Kz, - egsdot: Jz, - el: e9, - Element: t9, - elinters: n9, - ell: r9, - els: i9, - elsdot: s9, - Emacr: o9, - emacr: l9, - empty: a9, - emptyset: c9, - EmptySmallSquare: h9, - emptyv: u9, - EmptyVerySmallSquare: f9, - emsp13: d9, - emsp14: p9, + DScy: Oz, + dscy: bz, + dsol: yz, + Dstrok: wz, + dstrok: kz, + dtdot: xz, + dtri: vz, + dtrif: Sz, + duarr: _z, + duhar: Cz, + dwangle: Az, + DZcy: $z, + dzcy: Pz, + dzigrarr: Tz, + Eacute: Qz, + eacute: Ez, + easter: Dz, + Ecaron: Rz, + ecaron: Mz, + Ecirc: Zz, + ecirc: Lz, + ecir: Iz, + ecolon: Nz, + Ecy: qz, + ecy: Bz, + eDDot: Yz, + Edot: Xz, + edot: Wz, + eDot: Vz, + ee: jz, + efDot: zz, + Efr: Fz, + efr: Uz, + eg: Gz, + Egrave: Hz, + egrave: Kz, + egs: Jz, + egsdot: e9, + el: t9, + Element: n9, + elinters: r9, + ell: i9, + els: s9, + elsdot: o9, + Emacr: l9, + emacr: a9, + empty: c9, + emptyset: h9, + EmptySmallSquare: u9, + emptyv: f9, + EmptyVerySmallSquare: d9, + emsp13: p9, + emsp14: g9, emsp: m9, - ENG: g9, - eng: O9, - ensp: b9, - Eogon: y9, - eogon: w9, - Eopf: k9, - eopf: x9, - epar: v9, - eparsl: S9, - eplus: _9, - epsi: C9, - Epsilon: A9, - epsilon: $9, - epsiv: P9, - eqcirc: T9, - eqcolon: Q9, - eqsim: E9, - eqslantgtr: D9, - eqslantless: R9, - Equal: M9, - equals: Z9, - EqualTilde: L9, - equest: I9, - Equilibrium: N9, - equiv: q9, - equivDD: B9, - eqvparsl: Y9, - erarr: X9, - erDot: W9, - escr: V9, - Escr: j9, - esdot: z9, - Esim: F9, - esim: U9, - Eta: G9, - eta: H9, - ETH: K9, - eth: J9, - Euml: e6, - euml: t6, - euro: n6, - excl: r6, - exist: i6, - Exists: s6, - expectation: o6, - exponentiale: l6, - ExponentialE: a6, - fallingdotseq: c6, - Fcy: h6, - fcy: u6, - female: f6, - ffilig: d6, - fflig: p6, + ENG: O9, + eng: b9, + ensp: y9, + Eogon: w9, + eogon: k9, + Eopf: x9, + eopf: v9, + epar: S9, + eparsl: _9, + eplus: C9, + epsi: A9, + Epsilon: $9, + epsilon: P9, + epsiv: T9, + eqcirc: Q9, + eqcolon: E9, + eqsim: D9, + eqslantgtr: R9, + eqslantless: M9, + Equal: Z9, + equals: L9, + EqualTilde: I9, + equest: N9, + Equilibrium: q9, + equiv: B9, + equivDD: Y9, + eqvparsl: X9, + erarr: W9, + erDot: V9, + escr: j9, + Escr: z9, + esdot: F9, + Esim: U9, + esim: G9, + Eta: H9, + eta: K9, + ETH: J9, + eth: e6, + Euml: t6, + euml: n6, + euro: r6, + excl: i6, + exist: s6, + Exists: o6, + expectation: l6, + exponentiale: a6, + ExponentialE: c6, + fallingdotseq: h6, + Fcy: u6, + fcy: f6, + female: d6, + ffilig: p6, + fflig: g6, ffllig: m6, - Ffr: g6, - ffr: O6, - filig: b6, - FilledSmallSquare: y6, - FilledVerySmallSquare: w6, - fjlig: k6, - flat: x6, - fllig: v6, - fltns: S6, - fnof: _6, - Fopf: C6, - fopf: A6, - forall: $6, - ForAll: P6, - fork: T6, - forkv: Q6, - Fouriertrf: E6, - fpartint: D6, - frac12: R6, - frac13: M6, - frac14: Z6, - frac15: L6, - frac16: I6, - frac18: N6, - frac23: q6, - frac25: B6, - frac34: Y6, - frac35: X6, - frac38: W6, - frac45: V6, - frac56: j6, - frac58: z6, - frac78: F6, - frasl: U6, - frown: G6, - fscr: H6, - Fscr: K6, - gacute: J6, - Gamma: eF, - gamma: tF, - Gammad: nF, - gammad: rF, - gap: iF, - Gbreve: sF, - gbreve: oF, - Gcedil: lF, - Gcirc: aF, - gcirc: cF, - Gcy: hF, - gcy: uF, - Gdot: fF, - gdot: dF, - ge: pF, + Ffr: O6, + ffr: b6, + filig: y6, + FilledSmallSquare: w6, + FilledVerySmallSquare: k6, + fjlig: x6, + flat: v6, + fllig: S6, + fltns: _6, + fnof: C6, + Fopf: A6, + fopf: $6, + forall: P6, + ForAll: T6, + fork: Q6, + forkv: E6, + Fouriertrf: D6, + fpartint: R6, + frac12: M6, + frac13: Z6, + frac14: L6, + frac15: I6, + frac16: N6, + frac18: q6, + frac23: B6, + frac25: Y6, + frac34: X6, + frac35: W6, + frac38: V6, + frac45: j6, + frac56: z6, + frac58: F6, + frac78: U6, + frasl: G6, + frown: H6, + fscr: K6, + Fscr: J6, + gacute: eF, + Gamma: tF, + gamma: nF, + Gammad: rF, + gammad: iF, + gap: sF, + Gbreve: oF, + gbreve: lF, + Gcedil: aF, + Gcirc: cF, + gcirc: hF, + Gcy: uF, + gcy: fF, + Gdot: dF, + gdot: pF, + ge: gF, gE: mF, - gEl: gF, - gel: OF, - geq: bF, - geqq: yF, - geqslant: wF, - gescc: kF, - ges: xF, - gesdot: vF, - gesdoto: SF, - gesdotol: _F, - gesl: CF, - gesles: AF, - Gfr: $F, - gfr: PF, - gg: TF, - Gg: QF, - ggg: EF, - gimel: DF, - GJcy: RF, - gjcy: MF, - gla: ZF, - gl: LF, - glE: IF, - glj: NF, - gnap: qF, - gnapprox: BF, - gne: YF, - gnE: XF, - gneq: WF, - gneqq: VF, - gnsim: jF, - Gopf: zF, - gopf: FF, - grave: UF, - GreaterEqual: GF, - GreaterEqualLess: HF, - GreaterFullEqual: KF, - GreaterGreater: JF, - GreaterLess: eU, - GreaterSlantEqual: tU, - GreaterTilde: nU, - Gscr: rU, - gscr: iU, - gsim: sU, - gsime: oU, - gsiml: lU, - gtcc: aU, - gtcir: cU, - gt: hU, - GT: uU, - Gt: fU, - gtdot: dU, - gtlPar: pU, + gEl: OF, + gel: bF, + geq: yF, + geqq: wF, + geqslant: kF, + gescc: xF, + ges: vF, + gesdot: SF, + gesdoto: _F, + gesdotol: CF, + gesl: AF, + gesles: $F, + Gfr: PF, + gfr: TF, + gg: QF, + Gg: EF, + ggg: DF, + gimel: RF, + GJcy: MF, + gjcy: ZF, + gla: LF, + gl: IF, + glE: NF, + glj: qF, + gnap: BF, + gnapprox: YF, + gne: XF, + gnE: WF, + gneq: VF, + gneqq: jF, + gnsim: zF, + Gopf: FF, + gopf: UF, + grave: GF, + GreaterEqual: HF, + GreaterEqualLess: KF, + GreaterFullEqual: JF, + GreaterGreater: eU, + GreaterLess: tU, + GreaterSlantEqual: nU, + GreaterTilde: rU, + Gscr: iU, + gscr: sU, + gsim: oU, + gsime: lU, + gsiml: aU, + gtcc: cU, + gtcir: hU, + gt: uU, + GT: fU, + Gt: dU, + gtdot: pU, + gtlPar: gU, gtquest: mU, - gtrapprox: gU, - gtrarr: OU, - gtrdot: bU, - gtreqless: yU, - gtreqqless: wU, - gtrless: kU, - gtrsim: xU, - gvertneqq: vU, - gvnE: SU, - Hacek: _U, - hairsp: CU, - half: AU, - hamilt: $U, - HARDcy: PU, - hardcy: TU, - harrcir: QU, - harr: EU, - hArr: DU, - harrw: RU, - Hat: MU, - hbar: ZU, - Hcirc: LU, - hcirc: IU, - hearts: NU, - heartsuit: qU, - hellip: BU, - hercon: YU, - hfr: XU, - Hfr: WU, - HilbertSpace: VU, - hksearow: jU, - hkswarow: zU, - hoarr: FU, - homtht: UU, - hookleftarrow: GU, - hookrightarrow: HU, - hopf: KU, - Hopf: JU, - horbar: eG, - HorizontalLine: tG, - hscr: nG, - Hscr: rG, - hslash: iG, - Hstrok: sG, - hstrok: oG, - HumpDownHump: lG, - HumpEqual: aG, - hybull: cG, - hyphen: hG, - Iacute: uG, - iacute: fG, - ic: dG, - Icirc: pG, + gtrapprox: OU, + gtrarr: bU, + gtrdot: yU, + gtreqless: wU, + gtreqqless: kU, + gtrless: xU, + gtrsim: vU, + gvertneqq: SU, + gvnE: _U, + Hacek: CU, + hairsp: AU, + half: $U, + hamilt: PU, + HARDcy: TU, + hardcy: QU, + harrcir: EU, + harr: DU, + hArr: RU, + harrw: MU, + Hat: ZU, + hbar: LU, + Hcirc: IU, + hcirc: NU, + hearts: qU, + heartsuit: BU, + hellip: YU, + hercon: XU, + hfr: WU, + Hfr: VU, + HilbertSpace: jU, + hksearow: zU, + hkswarow: FU, + hoarr: UU, + homtht: GU, + hookleftarrow: HU, + hookrightarrow: KU, + hopf: JU, + Hopf: eG, + horbar: tG, + HorizontalLine: nG, + hscr: rG, + Hscr: iG, + hslash: sG, + Hstrok: oG, + hstrok: lG, + HumpDownHump: aG, + HumpEqual: cG, + hybull: hG, + hyphen: uG, + Iacute: fG, + iacute: dG, + ic: pG, + Icirc: gG, icirc: mG, - Icy: gG, - icy: OG, - Idot: bG, - IEcy: yG, - iecy: wG, - iexcl: kG, - iff: xG, - ifr: vG, - Ifr: SG, - Igrave: _G, - igrave: CG, - ii: AG, - iiiint: $G, - iiint: PG, - iinfin: TG, - iiota: QG, - IJlig: EG, - ijlig: DG, - Imacr: RG, - imacr: MG, - image: ZG, - ImaginaryI: LG, - imagline: IG, - imagpart: NG, - imath: qG, - Im: BG, - imof: YG, - imped: XG, - Implies: WG, - incare: VG, + Icy: OG, + icy: bG, + Idot: yG, + IEcy: wG, + iecy: kG, + iexcl: xG, + iff: vG, + ifr: SG, + Ifr: _G, + Igrave: CG, + igrave: AG, + ii: $G, + iiiint: PG, + iiint: TG, + iinfin: QG, + iiota: EG, + IJlig: DG, + ijlig: RG, + Imacr: MG, + imacr: ZG, + image: LG, + ImaginaryI: IG, + imagline: NG, + imagpart: qG, + imath: BG, + Im: YG, + imof: XG, + imped: WG, + Implies: VG, + incare: jG, in: "\u2208", - infin: jG, - infintie: zG, - inodot: FG, - intcal: UG, - int: GG, - Int: HG, - integers: KG, - Integral: JG, - intercal: eH, - Intersection: tH, - intlarhk: nH, - intprod: rH, - InvisibleComma: iH, - InvisibleTimes: sH, - IOcy: oH, - iocy: lH, - Iogon: aH, - iogon: cH, - Iopf: hH, - iopf: uH, - Iota: fH, - iota: dH, - iprod: pH, + infin: zG, + infintie: FG, + inodot: UG, + intcal: GG, + int: HG, + Int: KG, + integers: JG, + Integral: eH, + intercal: tH, + Intersection: nH, + intlarhk: rH, + intprod: iH, + InvisibleComma: sH, + InvisibleTimes: oH, + IOcy: lH, + iocy: aH, + Iogon: cH, + iogon: hH, + Iopf: uH, + iopf: fH, + Iota: dH, + iota: pH, + iprod: gH, iquest: mH, - iscr: gH, - Iscr: OH, - isin: bH, - isindot: yH, - isinE: wH, - isins: kH, - isinsv: xH, - isinv: vH, - it: SH, - Itilde: _H, - itilde: CH, - Iukcy: AH, - iukcy: $H, - Iuml: PH, - iuml: TH, - Jcirc: QH, - jcirc: EH, - Jcy: DH, - jcy: RH, - Jfr: MH, - jfr: ZH, - jmath: LH, - Jopf: IH, - jopf: NH, - Jscr: qH, - jscr: BH, - Jsercy: YH, - jsercy: XH, - Jukcy: WH, - jukcy: VH, - Kappa: jH, - kappa: zH, - kappav: FH, - Kcedil: UH, - kcedil: GH, - Kcy: HH, - kcy: KH, - Kfr: JH, - kfr: eK, - kgreen: tK, - KHcy: nK, - khcy: rK, - KJcy: iK, - kjcy: sK, - Kopf: oK, - kopf: lK, - Kscr: aK, - kscr: cK, - lAarr: hK, - Lacute: uK, - lacute: fK, - laemptyv: dK, - lagran: pK, + iscr: OH, + Iscr: bH, + isin: yH, + isindot: wH, + isinE: kH, + isins: xH, + isinsv: vH, + isinv: SH, + it: _H, + Itilde: CH, + itilde: AH, + Iukcy: $H, + iukcy: PH, + Iuml: TH, + iuml: QH, + Jcirc: EH, + jcirc: DH, + Jcy: RH, + jcy: MH, + Jfr: ZH, + jfr: LH, + jmath: IH, + Jopf: NH, + jopf: qH, + Jscr: BH, + jscr: YH, + Jsercy: XH, + jsercy: WH, + Jukcy: VH, + jukcy: jH, + Kappa: zH, + kappa: FH, + kappav: UH, + Kcedil: GH, + kcedil: HH, + Kcy: KH, + kcy: JH, + Kfr: eK, + kfr: tK, + kgreen: nK, + KHcy: rK, + khcy: iK, + KJcy: sK, + kjcy: oK, + Kopf: lK, + kopf: aK, + Kscr: cK, + kscr: hK, + lAarr: uK, + Lacute: fK, + lacute: dK, + laemptyv: pK, + lagran: gK, Lambda: mK, - lambda: gK, - lang: OK, - Lang: bK, - langd: yK, - langle: wK, - lap: kK, - Laplacetrf: xK, - laquo: vK, - larrb: SK, - larrbfs: _K, - larr: CK, - Larr: AK, - lArr: $K, - larrfs: PK, - larrhk: TK, - larrlp: QK, - larrpl: EK, - larrsim: DK, - larrtl: RK, - latail: MK, - lAtail: ZK, - lat: LK, - late: IK, - lates: NK, - lbarr: qK, - lBarr: BK, - lbbrk: YK, - lbrace: XK, - lbrack: WK, - lbrke: VK, - lbrksld: jK, - lbrkslu: zK, - Lcaron: FK, - lcaron: UK, - Lcedil: GK, - lcedil: HK, - lceil: KK, - lcub: JK, - Lcy: eJ, - lcy: tJ, - ldca: nJ, - ldquo: rJ, - ldquor: iJ, - ldrdhar: sJ, - ldrushar: oJ, - ldsh: lJ, - le: aJ, - lE: cJ, - LeftAngleBracket: hJ, - LeftArrowBar: uJ, - leftarrow: fJ, - LeftArrow: dJ, - Leftarrow: pJ, + lambda: OK, + lang: bK, + Lang: yK, + langd: wK, + langle: kK, + lap: xK, + Laplacetrf: vK, + laquo: SK, + larrb: _K, + larrbfs: CK, + larr: AK, + Larr: $K, + lArr: PK, + larrfs: TK, + larrhk: QK, + larrlp: EK, + larrpl: DK, + larrsim: RK, + larrtl: MK, + latail: ZK, + lAtail: LK, + lat: IK, + late: NK, + lates: qK, + lbarr: BK, + lBarr: YK, + lbbrk: XK, + lbrace: WK, + lbrack: VK, + lbrke: jK, + lbrksld: zK, + lbrkslu: FK, + Lcaron: UK, + lcaron: GK, + Lcedil: HK, + lcedil: KK, + lceil: JK, + lcub: eJ, + Lcy: tJ, + lcy: nJ, + ldca: rJ, + ldquo: iJ, + ldquor: sJ, + ldrdhar: oJ, + ldrushar: lJ, + ldsh: aJ, + le: cJ, + lE: hJ, + LeftAngleBracket: uJ, + LeftArrowBar: fJ, + leftarrow: dJ, + LeftArrow: pJ, + Leftarrow: gJ, LeftArrowRightArrow: mJ, - leftarrowtail: gJ, - LeftCeiling: OJ, - LeftDoubleBracket: bJ, - LeftDownTeeVector: yJ, - LeftDownVectorBar: wJ, - LeftDownVector: kJ, - LeftFloor: xJ, - leftharpoondown: vJ, - leftharpoonup: SJ, - leftleftarrows: _J, - leftrightarrow: CJ, - LeftRightArrow: AJ, - Leftrightarrow: $J, - leftrightarrows: PJ, - leftrightharpoons: TJ, - leftrightsquigarrow: QJ, - LeftRightVector: EJ, - LeftTeeArrow: DJ, - LeftTee: RJ, - LeftTeeVector: MJ, - leftthreetimes: ZJ, - LeftTriangleBar: LJ, - LeftTriangle: IJ, - LeftTriangleEqual: NJ, - LeftUpDownVector: qJ, - LeftUpTeeVector: BJ, - LeftUpVectorBar: YJ, - LeftUpVector: XJ, - LeftVectorBar: WJ, - LeftVector: VJ, - lEg: jJ, - leg: zJ, - leq: FJ, - leqq: UJ, - leqslant: GJ, - lescc: HJ, - les: KJ, - lesdot: JJ, - lesdoto: eee, - lesdotor: tee, - lesg: nee, - lesges: ree, - lessapprox: iee, - lessdot: see, - lesseqgtr: oee, - lesseqqgtr: lee, - LessEqualGreater: aee, - LessFullEqual: cee, - LessGreater: hee, - lessgtr: uee, - LessLess: fee, - lesssim: dee, - LessSlantEqual: pee, + leftarrowtail: OJ, + LeftCeiling: bJ, + LeftDoubleBracket: yJ, + LeftDownTeeVector: wJ, + LeftDownVectorBar: kJ, + LeftDownVector: xJ, + LeftFloor: vJ, + leftharpoondown: SJ, + leftharpoonup: _J, + leftleftarrows: CJ, + leftrightarrow: AJ, + LeftRightArrow: $J, + Leftrightarrow: PJ, + leftrightarrows: TJ, + leftrightharpoons: QJ, + leftrightsquigarrow: EJ, + LeftRightVector: DJ, + LeftTeeArrow: RJ, + LeftTee: MJ, + LeftTeeVector: ZJ, + leftthreetimes: LJ, + LeftTriangleBar: IJ, + LeftTriangle: NJ, + LeftTriangleEqual: qJ, + LeftUpDownVector: BJ, + LeftUpTeeVector: YJ, + LeftUpVectorBar: XJ, + LeftUpVector: WJ, + LeftVectorBar: VJ, + LeftVector: jJ, + lEg: zJ, + leg: FJ, + leq: UJ, + leqq: GJ, + leqslant: HJ, + lescc: KJ, + les: JJ, + lesdot: eee, + lesdoto: tee, + lesdotor: nee, + lesg: ree, + lesges: iee, + lessapprox: see, + lessdot: oee, + lesseqgtr: lee, + lesseqqgtr: aee, + LessEqualGreater: cee, + LessFullEqual: hee, + LessGreater: uee, + lessgtr: fee, + LessLess: dee, + lesssim: pee, + LessSlantEqual: gee, LessTilde: mee, - lfisht: gee, - lfloor: Oee, - Lfr: bee, - lfr: yee, - lg: wee, - lgE: kee, - lHar: xee, - lhard: vee, - lharu: See, - lharul: _ee, - lhblk: Cee, - LJcy: Aee, - ljcy: $ee, - llarr: Pee, - ll: Tee, - Ll: Qee, - llcorner: Eee, - Lleftarrow: Dee, - llhard: Ree, - lltri: Mee, - Lmidot: Zee, - lmidot: Lee, - lmoustache: Iee, - lmoust: Nee, - lnap: qee, - lnapprox: Bee, - lne: Yee, - lnE: Xee, - lneq: Wee, - lneqq: Vee, - lnsim: jee, - loang: zee, - loarr: Fee, - lobrk: Uee, - longleftarrow: Gee, - LongLeftArrow: Hee, - Longleftarrow: Kee, - longleftrightarrow: Jee, - LongLeftRightArrow: ete, - Longleftrightarrow: tte, - longmapsto: nte, - longrightarrow: rte, - LongRightArrow: ite, - Longrightarrow: ste, - looparrowleft: ote, - looparrowright: lte, - lopar: ate, - Lopf: cte, - lopf: hte, - loplus: ute, - lotimes: fte, - lowast: dte, - lowbar: pte, + lfisht: Oee, + lfloor: bee, + Lfr: yee, + lfr: wee, + lg: kee, + lgE: xee, + lHar: vee, + lhard: See, + lharu: _ee, + lharul: Cee, + lhblk: Aee, + LJcy: $ee, + ljcy: Pee, + llarr: Tee, + ll: Qee, + Ll: Eee, + llcorner: Dee, + Lleftarrow: Ree, + llhard: Mee, + lltri: Zee, + Lmidot: Lee, + lmidot: Iee, + lmoustache: Nee, + lmoust: qee, + lnap: Bee, + lnapprox: Yee, + lne: Xee, + lnE: Wee, + lneq: Vee, + lneqq: jee, + lnsim: zee, + loang: Fee, + loarr: Uee, + lobrk: Gee, + longleftarrow: Hee, + LongLeftArrow: Kee, + Longleftarrow: Jee, + longleftrightarrow: ete, + LongLeftRightArrow: tte, + Longleftrightarrow: nte, + longmapsto: rte, + longrightarrow: ite, + LongRightArrow: ste, + Longrightarrow: ote, + looparrowleft: lte, + looparrowright: ate, + lopar: cte, + Lopf: hte, + lopf: ute, + loplus: fte, + lotimes: dte, + lowast: pte, + lowbar: gte, LowerLeftArrow: mte, - LowerRightArrow: gte, - loz: Ote, - lozenge: bte, - lozf: yte, - lpar: wte, - lparlt: kte, - lrarr: xte, - lrcorner: vte, - lrhar: Ste, - lrhard: _te, - lrm: Cte, - lrtri: Ate, - lsaquo: $te, - lscr: Pte, - Lscr: Tte, - lsh: Qte, - Lsh: Ete, - lsim: Dte, - lsime: Rte, - lsimg: Mte, - lsqb: Zte, - lsquo: Lte, - lsquor: Ite, - Lstrok: Nte, - lstrok: qte, - ltcc: Bte, - ltcir: Yte, - lt: Xte, - LT: Wte, - Lt: Vte, - ltdot: jte, - lthree: zte, - ltimes: Fte, - ltlarr: Ute, - ltquest: Gte, - ltri: Hte, - ltrie: Kte, - ltrif: Jte, - ltrPar: ene, - lurdshar: tne, - luruhar: nne, - lvertneqq: rne, - lvnE: ine, - macr: sne, - male: one, - malt: lne, - maltese: ane, + LowerRightArrow: Ote, + loz: bte, + lozenge: yte, + lozf: wte, + lpar: kte, + lparlt: xte, + lrarr: vte, + lrcorner: Ste, + lrhar: _te, + lrhard: Cte, + lrm: Ate, + lrtri: $te, + lsaquo: Pte, + lscr: Tte, + Lscr: Qte, + lsh: Ete, + Lsh: Dte, + lsim: Rte, + lsime: Mte, + lsimg: Zte, + lsqb: Lte, + lsquo: Ite, + lsquor: Nte, + Lstrok: qte, + lstrok: Bte, + ltcc: Yte, + ltcir: Xte, + lt: Wte, + LT: Vte, + Lt: jte, + ltdot: zte, + lthree: Fte, + ltimes: Ute, + ltlarr: Gte, + ltquest: Hte, + ltri: Kte, + ltrie: Jte, + ltrif: ene, + ltrPar: tne, + lurdshar: nne, + luruhar: rne, + lvertneqq: ine, + lvnE: sne, + macr: one, + male: lne, + malt: ane, + maltese: cne, Map: "\u2905", - map: cne, - mapsto: hne, - mapstodown: une, - mapstoleft: fne, - mapstoup: dne, - marker: pne, + map: hne, + mapsto: une, + mapstodown: fne, + mapstoleft: dne, + mapstoup: pne, + marker: gne, mcomma: mne, - Mcy: gne, - mcy: One, - mdash: bne, - mDDot: yne, - measuredangle: wne, - MediumSpace: kne, - Mellintrf: xne, - Mfr: vne, - mfr: Sne, - mho: _ne, - micro: Cne, - midast: Ane, - midcir: $ne, - mid: Pne, - middot: Tne, - minusb: Qne, - minus: Ene, - minusd: Dne, - minusdu: Rne, - MinusPlus: Mne, - mlcp: Zne, - mldr: Lne, - mnplus: Ine, - models: Nne, - Mopf: qne, - mopf: Bne, - mp: Yne, - mscr: Xne, - Mscr: Wne, - mstpos: Vne, - Mu: jne, - mu: zne, - multimap: Fne, - mumap: Une, - nabla: Gne, - Nacute: Hne, - nacute: Kne, - nang: Jne, - nap: ere, - napE: tre, - napid: nre, - napos: rre, - napprox: ire, - natural: sre, - naturals: ore, - natur: lre, - nbsp: are, - nbump: cre, - nbumpe: hre, - ncap: ure, - Ncaron: fre, - ncaron: dre, - Ncedil: pre, + Mcy: One, + mcy: bne, + mdash: yne, + mDDot: wne, + measuredangle: kne, + MediumSpace: xne, + Mellintrf: vne, + Mfr: Sne, + mfr: _ne, + mho: Cne, + micro: Ane, + midast: $ne, + midcir: Pne, + mid: Tne, + middot: Qne, + minusb: Ene, + minus: Dne, + minusd: Rne, + minusdu: Mne, + MinusPlus: Zne, + mlcp: Lne, + mldr: Ine, + mnplus: Nne, + models: qne, + Mopf: Bne, + mopf: Yne, + mp: Xne, + mscr: Wne, + Mscr: Vne, + mstpos: jne, + Mu: zne, + mu: Fne, + multimap: Une, + mumap: Gne, + nabla: Hne, + Nacute: Kne, + nacute: Jne, + nang: ere, + nap: tre, + napE: nre, + napid: rre, + napos: ire, + napprox: sre, + natural: ore, + naturals: lre, + natur: are, + nbsp: cre, + nbump: hre, + nbumpe: ure, + ncap: fre, + Ncaron: dre, + ncaron: pre, + Ncedil: gre, ncedil: mre, - ncong: gre, - ncongdot: Ore, - ncup: bre, - Ncy: yre, - ncy: wre, - ndash: kre, - nearhk: xre, - nearr: vre, - neArr: Sre, - nearrow: _re, - ne: Cre, - nedot: Are, - NegativeMediumSpace: $re, - NegativeThickSpace: Pre, - NegativeThinSpace: Tre, - NegativeVeryThinSpace: Qre, - nequiv: Ere, - nesear: Dre, - nesim: Rre, - NestedGreaterGreater: Mre, - NestedLessLess: Zre, - NewLine: Lre, - nexist: Ire, - nexists: Nre, - Nfr: qre, - nfr: Bre, - ngE: Yre, - nge: Xre, - ngeq: Wre, - ngeqq: Vre, - ngeqslant: jre, - nges: zre, - nGg: Fre, - ngsim: Ure, - nGt: Gre, - ngt: Hre, - ngtr: Kre, - nGtv: Jre, - nharr: eie, - nhArr: tie, - nhpar: nie, - ni: rie, - nis: iie, - nisd: sie, - niv: oie, - NJcy: lie, - njcy: aie, - nlarr: cie, - nlArr: hie, - nldr: uie, - nlE: fie, - nle: die, - nleftarrow: pie, + ncong: Ore, + ncongdot: bre, + ncup: yre, + Ncy: wre, + ncy: kre, + ndash: xre, + nearhk: vre, + nearr: Sre, + neArr: _re, + nearrow: Cre, + ne: Are, + nedot: $re, + NegativeMediumSpace: Pre, + NegativeThickSpace: Tre, + NegativeThinSpace: Qre, + NegativeVeryThinSpace: Ere, + nequiv: Dre, + nesear: Rre, + nesim: Mre, + NestedGreaterGreater: Zre, + NestedLessLess: Lre, + NewLine: Ire, + nexist: Nre, + nexists: qre, + Nfr: Bre, + nfr: Yre, + ngE: Xre, + nge: Wre, + ngeq: Vre, + ngeqq: jre, + ngeqslant: zre, + nges: Fre, + nGg: Ure, + ngsim: Gre, + nGt: Hre, + ngt: Kre, + ngtr: Jre, + nGtv: eie, + nharr: tie, + nhArr: nie, + nhpar: rie, + ni: iie, + nis: sie, + nisd: oie, + niv: lie, + NJcy: aie, + njcy: cie, + nlarr: hie, + nlArr: uie, + nldr: fie, + nlE: die, + nle: pie, + nleftarrow: gie, nLeftarrow: mie, - nleftrightarrow: gie, - nLeftrightarrow: Oie, - nleq: bie, - nleqq: yie, - nleqslant: wie, - nles: kie, - nless: xie, - nLl: vie, - nlsim: Sie, - nLt: _ie, - nlt: Cie, - nltri: Aie, - nltrie: $ie, - nLtv: Pie, - nmid: Tie, - NoBreak: Qie, - NonBreakingSpace: Eie, - nopf: Die, - Nopf: Rie, - Not: Mie, - not: Zie, - NotCongruent: Lie, - NotCupCap: Iie, - NotDoubleVerticalBar: Nie, - NotElement: qie, - NotEqual: Bie, - NotEqualTilde: Yie, - NotExists: Xie, - NotGreater: Wie, - NotGreaterEqual: Vie, - NotGreaterFullEqual: jie, - NotGreaterGreater: zie, - NotGreaterLess: Fie, - NotGreaterSlantEqual: Uie, - NotGreaterTilde: Gie, - NotHumpDownHump: Hie, - NotHumpEqual: Kie, - notin: Jie, - notindot: ese, - notinE: tse, - notinva: nse, - notinvb: rse, - notinvc: ise, - NotLeftTriangleBar: sse, - NotLeftTriangle: ose, - NotLeftTriangleEqual: lse, - NotLess: ase, - NotLessEqual: cse, - NotLessGreater: hse, - NotLessLess: use, - NotLessSlantEqual: fse, - NotLessTilde: dse, - NotNestedGreaterGreater: pse, + nleftrightarrow: Oie, + nLeftrightarrow: bie, + nleq: yie, + nleqq: wie, + nleqslant: kie, + nles: xie, + nless: vie, + nLl: Sie, + nlsim: _ie, + nLt: Cie, + nlt: Aie, + nltri: $ie, + nltrie: Pie, + nLtv: Tie, + nmid: Qie, + NoBreak: Eie, + NonBreakingSpace: Die, + nopf: Rie, + Nopf: Mie, + Not: Zie, + not: Lie, + NotCongruent: Iie, + NotCupCap: Nie, + NotDoubleVerticalBar: qie, + NotElement: Bie, + NotEqual: Yie, + NotEqualTilde: Xie, + NotExists: Wie, + NotGreater: Vie, + NotGreaterEqual: jie, + NotGreaterFullEqual: zie, + NotGreaterGreater: Fie, + NotGreaterLess: Uie, + NotGreaterSlantEqual: Gie, + NotGreaterTilde: Hie, + NotHumpDownHump: Kie, + NotHumpEqual: Jie, + notin: ese, + notindot: tse, + notinE: nse, + notinva: rse, + notinvb: ise, + notinvc: sse, + NotLeftTriangleBar: ose, + NotLeftTriangle: lse, + NotLeftTriangleEqual: ase, + NotLess: cse, + NotLessEqual: hse, + NotLessGreater: use, + NotLessLess: fse, + NotLessSlantEqual: dse, + NotLessTilde: pse, + NotNestedGreaterGreater: gse, NotNestedLessLess: mse, - notni: gse, - notniva: Ose, - notnivb: bse, - notnivc: yse, - NotPrecedes: wse, - NotPrecedesEqual: kse, - NotPrecedesSlantEqual: xse, - NotReverseElement: vse, - NotRightTriangleBar: Sse, - NotRightTriangle: _se, - NotRightTriangleEqual: Cse, - NotSquareSubset: Ase, - NotSquareSubsetEqual: $se, - NotSquareSuperset: Pse, - NotSquareSupersetEqual: Tse, - NotSubset: Qse, - NotSubsetEqual: Ese, - NotSucceeds: Dse, - NotSucceedsEqual: Rse, - NotSucceedsSlantEqual: Mse, - NotSucceedsTilde: Zse, - NotSuperset: Lse, - NotSupersetEqual: Ise, - NotTilde: Nse, - NotTildeEqual: qse, - NotTildeFullEqual: Bse, - NotTildeTilde: Yse, - NotVerticalBar: Xse, - nparallel: Wse, - npar: Vse, - nparsl: jse, - npart: zse, - npolint: Fse, - npr: Use, - nprcue: Gse, - nprec: Hse, - npreceq: Kse, - npre: Jse, - nrarrc: eoe, - nrarr: toe, - nrArr: noe, - nrarrw: roe, - nrightarrow: ioe, - nRightarrow: soe, - nrtri: ooe, - nrtrie: loe, - nsc: aoe, - nsccue: coe, - nsce: hoe, - Nscr: uoe, - nscr: foe, - nshortmid: doe, - nshortparallel: poe, + notni: Ose, + notniva: bse, + notnivb: yse, + notnivc: wse, + NotPrecedes: kse, + NotPrecedesEqual: xse, + NotPrecedesSlantEqual: vse, + NotReverseElement: Sse, + NotRightTriangleBar: _se, + NotRightTriangle: Cse, + NotRightTriangleEqual: Ase, + NotSquareSubset: $se, + NotSquareSubsetEqual: Pse, + NotSquareSuperset: Tse, + NotSquareSupersetEqual: Qse, + NotSubset: Ese, + NotSubsetEqual: Dse, + NotSucceeds: Rse, + NotSucceedsEqual: Mse, + NotSucceedsSlantEqual: Zse, + NotSucceedsTilde: Lse, + NotSuperset: Ise, + NotSupersetEqual: Nse, + NotTilde: qse, + NotTildeEqual: Bse, + NotTildeFullEqual: Yse, + NotTildeTilde: Xse, + NotVerticalBar: Wse, + nparallel: Vse, + npar: jse, + nparsl: zse, + npart: Fse, + npolint: Use, + npr: Gse, + nprcue: Hse, + nprec: Kse, + npreceq: Jse, + npre: eoe, + nrarrc: toe, + nrarr: noe, + nrArr: roe, + nrarrw: ioe, + nrightarrow: soe, + nRightarrow: ooe, + nrtri: loe, + nrtrie: aoe, + nsc: coe, + nsccue: hoe, + nsce: uoe, + Nscr: foe, + nscr: doe, + nshortmid: poe, + nshortparallel: goe, nsim: moe, - nsime: goe, - nsimeq: Ooe, - nsmid: boe, - nspar: yoe, - nsqsube: woe, - nsqsupe: koe, - nsub: xoe, - nsubE: voe, - nsube: Soe, - nsubset: _oe, - nsubseteq: Coe, - nsubseteqq: Aoe, - nsucc: $oe, - nsucceq: Poe, - nsup: Toe, - nsupE: Qoe, - nsupe: Eoe, - nsupset: Doe, - nsupseteq: Roe, - nsupseteqq: Moe, - ntgl: Zoe, - Ntilde: Loe, - ntilde: Ioe, - ntlg: Noe, - ntriangleleft: qoe, - ntrianglelefteq: Boe, - ntriangleright: Yoe, - ntrianglerighteq: Xoe, - Nu: Woe, - nu: Voe, - num: joe, - numero: zoe, - numsp: Foe, - nvap: Uoe, - nvdash: Goe, - nvDash: Hoe, - nVdash: Koe, - nVDash: Joe, - nvge: ele, - nvgt: tle, - nvHarr: nle, - nvinfin: rle, - nvlArr: ile, - nvle: sle, - nvlt: ole, - nvltrie: lle, - nvrArr: ale, - nvrtrie: cle, - nvsim: hle, - nwarhk: ule, - nwarr: fle, - nwArr: dle, - nwarrow: ple, + nsime: Ooe, + nsimeq: boe, + nsmid: yoe, + nspar: woe, + nsqsube: koe, + nsqsupe: xoe, + nsub: voe, + nsubE: Soe, + nsube: _oe, + nsubset: Coe, + nsubseteq: Aoe, + nsubseteqq: $oe, + nsucc: Poe, + nsucceq: Toe, + nsup: Qoe, + nsupE: Eoe, + nsupe: Doe, + nsupset: Roe, + nsupseteq: Moe, + nsupseteqq: Zoe, + ntgl: Loe, + Ntilde: Ioe, + ntilde: Noe, + ntlg: qoe, + ntriangleleft: Boe, + ntrianglelefteq: Yoe, + ntriangleright: Xoe, + ntrianglerighteq: Woe, + Nu: Voe, + nu: joe, + num: zoe, + numero: Foe, + numsp: Uoe, + nvap: Goe, + nvdash: Hoe, + nvDash: Koe, + nVdash: Joe, + nVDash: ele, + nvge: tle, + nvgt: nle, + nvHarr: rle, + nvinfin: ile, + nvlArr: sle, + nvle: ole, + nvlt: lle, + nvltrie: ale, + nvrArr: cle, + nvrtrie: hle, + nvsim: ule, + nwarhk: fle, + nwarr: dle, + nwArr: ple, + nwarrow: gle, nwnear: mle, - Oacute: gle, - oacute: Ole, - oast: ble, - Ocirc: yle, - ocirc: wle, - ocir: kle, - Ocy: xle, - ocy: vle, - odash: Sle, - Odblac: _le, - odblac: Cle, - odiv: Ale, - odot: $le, - odsold: Ple, - OElig: Tle, - oelig: Qle, - ofcir: Ele, - Ofr: Dle, - ofr: Rle, - ogon: Mle, - Ograve: Zle, - ograve: Lle, - ogt: Ile, - ohbar: Nle, - ohm: qle, - oint: Ble, - olarr: Yle, - olcir: Xle, - olcross: Wle, - oline: Vle, - olt: jle, - Omacr: zle, - omacr: Fle, - Omega: Ule, - omega: Gle, - Omicron: Hle, - omicron: Kle, - omid: Jle, - ominus: eae, - Oopf: tae, - oopf: nae, - opar: rae, - OpenCurlyDoubleQuote: iae, - OpenCurlyQuote: sae, - operp: oae, - oplus: lae, - orarr: aae, - Or: cae, - or: hae, - ord: uae, - order: fae, - orderof: dae, - ordf: pae, + Oacute: Ole, + oacute: ble, + oast: yle, + Ocirc: wle, + ocirc: kle, + ocir: xle, + Ocy: vle, + ocy: Sle, + odash: _le, + Odblac: Cle, + odblac: Ale, + odiv: $le, + odot: Ple, + odsold: Tle, + OElig: Qle, + oelig: Ele, + ofcir: Dle, + Ofr: Rle, + ofr: Mle, + ogon: Zle, + Ograve: Lle, + ograve: Ile, + ogt: Nle, + ohbar: qle, + ohm: Ble, + oint: Yle, + olarr: Xle, + olcir: Wle, + olcross: Vle, + oline: jle, + olt: zle, + Omacr: Fle, + omacr: Ule, + Omega: Gle, + omega: Hle, + Omicron: Kle, + omicron: Jle, + omid: eae, + ominus: tae, + Oopf: nae, + oopf: rae, + opar: iae, + OpenCurlyDoubleQuote: sae, + OpenCurlyQuote: oae, + operp: lae, + oplus: aae, + orarr: cae, + Or: hae, + or: uae, + ord: fae, + order: dae, + orderof: pae, + ordf: gae, ordm: mae, - origof: gae, - oror: Oae, - orslope: bae, - orv: yae, - oS: wae, - Oscr: kae, - oscr: xae, - Oslash: vae, - oslash: Sae, - osol: _ae, - Otilde: Cae, - otilde: Aae, - otimesas: $ae, - Otimes: Pae, - otimes: Tae, - Ouml: Qae, - ouml: Eae, - ovbar: Dae, - OverBar: Rae, - OverBrace: Mae, - OverBracket: Zae, - OverParenthesis: Lae, - para: Iae, - parallel: Nae, - par: qae, - parsim: Bae, - parsl: Yae, - part: Xae, - PartialD: Wae, - Pcy: Vae, - pcy: jae, - percnt: zae, - period: Fae, - permil: Uae, - perp: Gae, - pertenk: Hae, - Pfr: Kae, - pfr: Jae, - Phi: ece, - phi: tce, - phiv: nce, - phmmat: rce, - phone: ice, - Pi: sce, - pi: oce, - pitchfork: lce, - piv: ace, - planck: cce, - planckh: hce, - plankv: uce, - plusacir: fce, - plusb: dce, - pluscir: pce, + origof: Oae, + oror: bae, + orslope: yae, + orv: wae, + oS: kae, + Oscr: xae, + oscr: vae, + Oslash: Sae, + oslash: _ae, + osol: Cae, + Otilde: Aae, + otilde: $ae, + otimesas: Pae, + Otimes: Tae, + otimes: Qae, + Ouml: Eae, + ouml: Dae, + ovbar: Rae, + OverBar: Mae, + OverBrace: Zae, + OverBracket: Lae, + OverParenthesis: Iae, + para: Nae, + parallel: qae, + par: Bae, + parsim: Yae, + parsl: Xae, + part: Wae, + PartialD: Vae, + Pcy: jae, + pcy: zae, + percnt: Fae, + period: Uae, + permil: Gae, + perp: Hae, + pertenk: Kae, + Pfr: Jae, + pfr: ece, + Phi: tce, + phi: nce, + phiv: rce, + phmmat: ice, + phone: sce, + Pi: oce, + pi: lce, + pitchfork: ace, + piv: cce, + planck: hce, + planckh: uce, + plankv: fce, + plusacir: dce, + plusb: pce, + pluscir: gce, plus: mce, - plusdo: gce, - plusdu: Oce, - pluse: bce, - PlusMinus: yce, - plusmn: wce, - plussim: kce, - plustwo: xce, - pm: vce, - Poincareplane: Sce, - pointint: _ce, - popf: Cce, - Popf: Ace, - pound: $ce, - prap: Pce, - Pr: Tce, - pr: Qce, - prcue: Ece, - precapprox: Dce, - prec: Rce, - preccurlyeq: Mce, - Precedes: Zce, - PrecedesEqual: Lce, - PrecedesSlantEqual: Ice, - PrecedesTilde: Nce, - preceq: qce, - precnapprox: Bce, - precneqq: Yce, - precnsim: Xce, - pre: Wce, - prE: Vce, - precsim: jce, - prime: zce, - Prime: Fce, - primes: Uce, - prnap: Gce, - prnE: Hce, - prnsim: Kce, - prod: Jce, - Product: ehe, - profalar: the, - profline: nhe, - profsurf: rhe, - prop: ihe, - Proportional: she, - Proportion: ohe, - propto: lhe, - prsim: ahe, - prurel: che, - Pscr: hhe, - pscr: uhe, - Psi: fhe, - psi: dhe, - puncsp: phe, + plusdo: Oce, + plusdu: bce, + pluse: yce, + PlusMinus: wce, + plusmn: kce, + plussim: xce, + plustwo: vce, + pm: Sce, + Poincareplane: _ce, + pointint: Cce, + popf: Ace, + Popf: $ce, + pound: Pce, + prap: Tce, + Pr: Qce, + pr: Ece, + prcue: Dce, + precapprox: Rce, + prec: Mce, + preccurlyeq: Zce, + Precedes: Lce, + PrecedesEqual: Ice, + PrecedesSlantEqual: Nce, + PrecedesTilde: qce, + preceq: Bce, + precnapprox: Yce, + precneqq: Xce, + precnsim: Wce, + pre: Vce, + prE: jce, + precsim: zce, + prime: Fce, + Prime: Uce, + primes: Gce, + prnap: Hce, + prnE: Kce, + prnsim: Jce, + prod: ehe, + Product: the, + profalar: nhe, + profline: rhe, + profsurf: ihe, + prop: she, + Proportional: ohe, + Proportion: lhe, + propto: ahe, + prsim: che, + prurel: hhe, + Pscr: uhe, + pscr: fhe, + Psi: dhe, + psi: phe, + puncsp: ghe, Qfr: mhe, - qfr: ghe, - qint: Ohe, - qopf: bhe, - Qopf: yhe, - qprime: whe, - Qscr: khe, - qscr: xhe, - quaternions: vhe, - quatint: She, - quest: _he, - questeq: Che, - quot: Ahe, - QUOT: $he, - rAarr: Phe, - race: The, - Racute: Qhe, - racute: Ehe, - radic: Dhe, - raemptyv: Rhe, - rang: Mhe, - Rang: Zhe, - rangd: Lhe, - range: Ihe, - rangle: Nhe, - raquo: qhe, - rarrap: Bhe, - rarrb: Yhe, - rarrbfs: Xhe, - rarrc: Whe, - rarr: Vhe, - Rarr: jhe, - rArr: zhe, - rarrfs: Fhe, - rarrhk: Uhe, - rarrlp: Ghe, - rarrpl: Hhe, - rarrsim: Khe, - Rarrtl: Jhe, - rarrtl: eue, - rarrw: tue, - ratail: nue, - rAtail: rue, - ratio: iue, - rationals: sue, - rbarr: oue, - rBarr: lue, - RBarr: aue, - rbbrk: cue, - rbrace: hue, - rbrack: uue, - rbrke: fue, - rbrksld: due, - rbrkslu: pue, + qfr: Ohe, + qint: bhe, + qopf: yhe, + Qopf: whe, + qprime: khe, + Qscr: xhe, + qscr: vhe, + quaternions: She, + quatint: _he, + quest: Che, + questeq: Ahe, + quot: $he, + QUOT: Phe, + rAarr: The, + race: Qhe, + Racute: Ehe, + racute: Dhe, + radic: Rhe, + raemptyv: Mhe, + rang: Zhe, + Rang: Lhe, + rangd: Ihe, + range: Nhe, + rangle: qhe, + raquo: Bhe, + rarrap: Yhe, + rarrb: Xhe, + rarrbfs: Whe, + rarrc: Vhe, + rarr: jhe, + Rarr: zhe, + rArr: Fhe, + rarrfs: Uhe, + rarrhk: Ghe, + rarrlp: Hhe, + rarrpl: Khe, + rarrsim: Jhe, + Rarrtl: eue, + rarrtl: tue, + rarrw: nue, + ratail: rue, + rAtail: iue, + ratio: sue, + rationals: oue, + rbarr: lue, + rBarr: aue, + RBarr: cue, + rbbrk: hue, + rbrace: uue, + rbrack: fue, + rbrke: due, + rbrksld: pue, + rbrkslu: gue, Rcaron: mue, - rcaron: gue, - Rcedil: Oue, - rcedil: bue, - rceil: yue, - rcub: wue, - Rcy: kue, - rcy: xue, - rdca: vue, - rdldhar: Sue, - rdquo: _ue, - rdquor: Cue, - rdsh: Aue, - real: $ue, - realine: Pue, - realpart: Tue, - reals: Que, - Re: Eue, - rect: Due, - reg: Rue, - REG: Mue, - ReverseElement: Zue, - ReverseEquilibrium: Lue, - ReverseUpEquilibrium: Iue, - rfisht: Nue, - rfloor: que, - rfr: Bue, - Rfr: Yue, - rHar: Xue, - rhard: Wue, - rharu: Vue, - rharul: jue, - Rho: zue, - rho: Fue, - rhov: Uue, - RightAngleBracket: Gue, - RightArrowBar: Hue, - rightarrow: Kue, - RightArrow: Jue, - Rightarrow: efe, - RightArrowLeftArrow: tfe, - rightarrowtail: nfe, - RightCeiling: rfe, - RightDoubleBracket: ife, - RightDownTeeVector: sfe, - RightDownVectorBar: ofe, - RightDownVector: lfe, - RightFloor: afe, - rightharpoondown: cfe, - rightharpoonup: hfe, - rightleftarrows: ufe, - rightleftharpoons: ffe, - rightrightarrows: dfe, - rightsquigarrow: pfe, + rcaron: Oue, + Rcedil: bue, + rcedil: yue, + rceil: wue, + rcub: kue, + Rcy: xue, + rcy: vue, + rdca: Sue, + rdldhar: _ue, + rdquo: Cue, + rdquor: Aue, + rdsh: $ue, + real: Pue, + realine: Tue, + realpart: Que, + reals: Eue, + Re: Due, + rect: Rue, + reg: Mue, + REG: Zue, + ReverseElement: Lue, + ReverseEquilibrium: Iue, + ReverseUpEquilibrium: Nue, + rfisht: que, + rfloor: Bue, + rfr: Yue, + Rfr: Xue, + rHar: Wue, + rhard: Vue, + rharu: jue, + rharul: zue, + Rho: Fue, + rho: Uue, + rhov: Gue, + RightAngleBracket: Hue, + RightArrowBar: Kue, + rightarrow: Jue, + RightArrow: efe, + Rightarrow: tfe, + RightArrowLeftArrow: nfe, + rightarrowtail: rfe, + RightCeiling: ife, + RightDoubleBracket: sfe, + RightDownTeeVector: ofe, + RightDownVectorBar: lfe, + RightDownVector: afe, + RightFloor: cfe, + rightharpoondown: hfe, + rightharpoonup: ufe, + rightleftarrows: ffe, + rightleftharpoons: dfe, + rightrightarrows: pfe, + rightsquigarrow: gfe, RightTeeArrow: mfe, - RightTee: gfe, - RightTeeVector: Ofe, - rightthreetimes: bfe, - RightTriangleBar: yfe, - RightTriangle: wfe, - RightTriangleEqual: kfe, - RightUpDownVector: xfe, - RightUpTeeVector: vfe, - RightUpVectorBar: Sfe, - RightUpVector: _fe, - RightVectorBar: Cfe, - RightVector: Afe, - ring: $fe, - risingdotseq: Pfe, - rlarr: Tfe, - rlhar: Qfe, - rlm: Efe, - rmoustache: Dfe, - rmoust: Rfe, - rnmid: Mfe, - roang: Zfe, - roarr: Lfe, - robrk: Ife, - ropar: Nfe, - ropf: qfe, - Ropf: Bfe, - roplus: Yfe, - rotimes: Xfe, - RoundImplies: Wfe, - rpar: Vfe, - rpargt: jfe, - rppolint: zfe, - rrarr: Ffe, - Rrightarrow: Ufe, - rsaquo: Gfe, - rscr: Hfe, - Rscr: Kfe, - rsh: Jfe, - Rsh: ede, - rsqb: tde, - rsquo: nde, - rsquor: rde, - rthree: ide, - rtimes: sde, - rtri: ode, - rtrie: lde, - rtrif: ade, - rtriltri: cde, - RuleDelayed: hde, - ruluhar: ude, - rx: fde, - Sacute: dde, - sacute: pde, + RightTee: Ofe, + RightTeeVector: bfe, + rightthreetimes: yfe, + RightTriangleBar: wfe, + RightTriangle: kfe, + RightTriangleEqual: xfe, + RightUpDownVector: vfe, + RightUpTeeVector: Sfe, + RightUpVectorBar: _fe, + RightUpVector: Cfe, + RightVectorBar: Afe, + RightVector: $fe, + ring: Pfe, + risingdotseq: Tfe, + rlarr: Qfe, + rlhar: Efe, + rlm: Dfe, + rmoustache: Rfe, + rmoust: Mfe, + rnmid: Zfe, + roang: Lfe, + roarr: Ife, + robrk: Nfe, + ropar: qfe, + ropf: Bfe, + Ropf: Yfe, + roplus: Xfe, + rotimes: Wfe, + RoundImplies: Vfe, + rpar: jfe, + rpargt: zfe, + rppolint: Ffe, + rrarr: Ufe, + Rrightarrow: Gfe, + rsaquo: Hfe, + rscr: Kfe, + Rscr: Jfe, + rsh: ede, + Rsh: tde, + rsqb: nde, + rsquo: rde, + rsquor: ide, + rthree: sde, + rtimes: ode, + rtri: lde, + rtrie: ade, + rtrif: cde, + rtriltri: hde, + RuleDelayed: ude, + ruluhar: fde, + rx: dde, + Sacute: pde, + sacute: gde, sbquo: mde, - scap: gde, - Scaron: Ode, - scaron: bde, - Sc: yde, - sc: wde, - sccue: kde, - sce: xde, - scE: vde, - Scedil: Sde, - scedil: _de, - Scirc: Cde, - scirc: Ade, - scnap: $de, - scnE: Pde, - scnsim: Tde, - scpolint: Qde, - scsim: Ede, - Scy: Dde, - scy: Rde, - sdotb: Mde, - sdot: Zde, - sdote: Lde, - searhk: Ide, - searr: Nde, - seArr: qde, - searrow: Bde, - sect: Yde, - semi: Xde, - seswar: Wde, - setminus: Vde, - setmn: jde, - sext: zde, - Sfr: Fde, - sfr: Ude, - sfrown: Gde, - sharp: Hde, - SHCHcy: Kde, - shchcy: Jde, - SHcy: epe, - shcy: tpe, - ShortDownArrow: npe, - ShortLeftArrow: rpe, - shortmid: ipe, - shortparallel: spe, - ShortRightArrow: ope, - ShortUpArrow: lpe, - shy: ape, - Sigma: cpe, - sigma: hpe, - sigmaf: upe, - sigmav: fpe, - sim: dpe, - simdot: ppe, + scap: Ode, + Scaron: bde, + scaron: yde, + Sc: wde, + sc: kde, + sccue: xde, + sce: vde, + scE: Sde, + Scedil: _de, + scedil: Cde, + Scirc: Ade, + scirc: $de, + scnap: Pde, + scnE: Tde, + scnsim: Qde, + scpolint: Ede, + scsim: Dde, + Scy: Rde, + scy: Mde, + sdotb: Zde, + sdot: Lde, + sdote: Ide, + searhk: Nde, + searr: qde, + seArr: Bde, + searrow: Yde, + sect: Xde, + semi: Wde, + seswar: Vde, + setminus: jde, + setmn: zde, + sext: Fde, + Sfr: Ude, + sfr: Gde, + sfrown: Hde, + sharp: Kde, + SHCHcy: Jde, + shchcy: epe, + SHcy: tpe, + shcy: npe, + ShortDownArrow: rpe, + ShortLeftArrow: ipe, + shortmid: spe, + shortparallel: ope, + ShortRightArrow: lpe, + ShortUpArrow: ape, + shy: cpe, + Sigma: hpe, + sigma: upe, + sigmaf: fpe, + sigmav: dpe, + sim: ppe, + simdot: gpe, sime: mpe, - simeq: gpe, - simg: Ope, - simgE: bpe, - siml: ype, - simlE: wpe, - simne: kpe, - simplus: xpe, - simrarr: vpe, - slarr: Spe, - SmallCircle: _pe, - smallsetminus: Cpe, - smashp: Ape, - smeparsl: $pe, - smid: Ppe, - smile: Tpe, - smt: Qpe, - smte: Epe, - smtes: Dpe, - SOFTcy: Rpe, - softcy: Mpe, - solbar: Zpe, - solb: Lpe, - sol: Ipe, - Sopf: Npe, - sopf: qpe, - spades: Bpe, - spadesuit: Ype, - spar: Xpe, - sqcap: Wpe, - sqcaps: Vpe, - sqcup: jpe, - sqcups: zpe, - Sqrt: Fpe, - sqsub: Upe, - sqsube: Gpe, - sqsubset: Hpe, - sqsubseteq: Kpe, - sqsup: Jpe, - sqsupe: eme, - sqsupset: tme, - sqsupseteq: nme, - square: rme, - Square: ime, - SquareIntersection: sme, - SquareSubset: ome, - SquareSubsetEqual: lme, - SquareSuperset: ame, - SquareSupersetEqual: cme, - SquareUnion: hme, - squarf: ume, - squ: fme, - squf: dme, - srarr: pme, - Sscr: mme, - sscr: gme, - ssetmn: Ome, - ssmile: bme, - sstarf: yme, - Star: wme, - star: kme, - starf: xme, - straightepsilon: vme, - straightphi: Sme, - strns: _me, - sub: Cme, - Sub: Ame, - subdot: $me, - subE: Pme, - sube: Tme, - subedot: Qme, - submult: Eme, - subnE: Dme, - subne: Rme, - subplus: Mme, - subrarr: Zme, - subset: Lme, - Subset: Ime, - subseteq: Nme, - subseteqq: qme, - SubsetEqual: Bme, - subsetneq: Yme, - subsetneqq: Xme, - subsim: Wme, - subsub: Vme, - subsup: jme, - succapprox: zme, - succ: Fme, - succcurlyeq: Ume, - Succeeds: Gme, - SucceedsEqual: Hme, - SucceedsSlantEqual: Kme, - SucceedsTilde: Jme, - succeq: ege, - succnapprox: tge, - succneqq: nge, - succnsim: rge, - succsim: ige, - SuchThat: sge, - sum: oge, - Sum: lge, - sung: age, - sup1: cge, - sup2: hge, - sup3: uge, - sup: fge, - Sup: dge, - supdot: pge, - supdsub: mge, - supE: gge, - supe: Oge, - supedot: bge, - Superset: yge, - SupersetEqual: wge, - suphsol: kge, - suphsub: xge, - suplarr: vge, - supmult: Sge, - supnE: _ge, - supne: Cge, - supplus: Age, - supset: $ge, - Supset: Pge, - supseteq: Tge, - supseteqq: Qge, - supsetneq: Ege, - supsetneqq: Dge, - supsim: Rge, - supsub: Mge, - supsup: Zge, - swarhk: Lge, - swarr: Ige, - swArr: Nge, - swarrow: qge, - swnwar: Bge, - szlig: Yge, - Tab: Xge, - target: Wge, - Tau: Vge, - tau: jge, - tbrk: zge, - Tcaron: Fge, - tcaron: Uge, - Tcedil: Gge, - tcedil: Hge, - Tcy: Kge, - tcy: Jge, - tdot: eOe, - telrec: tOe, - Tfr: nOe, - tfr: rOe, - there4: iOe, - therefore: sOe, - Therefore: oOe, - Theta: lOe, - theta: aOe, - thetasym: cOe, - thetav: hOe, - thickapprox: uOe, - thicksim: fOe, - ThickSpace: dOe, - ThinSpace: pOe, + simeq: Ope, + simg: bpe, + simgE: ype, + siml: wpe, + simlE: kpe, + simne: xpe, + simplus: vpe, + simrarr: Spe, + slarr: _pe, + SmallCircle: Cpe, + smallsetminus: Ape, + smashp: $pe, + smeparsl: Ppe, + smid: Tpe, + smile: Qpe, + smt: Epe, + smte: Dpe, + smtes: Rpe, + SOFTcy: Mpe, + softcy: Zpe, + solbar: Lpe, + solb: Ipe, + sol: Npe, + Sopf: qpe, + sopf: Bpe, + spades: Ype, + spadesuit: Xpe, + spar: Wpe, + sqcap: Vpe, + sqcaps: jpe, + sqcup: zpe, + sqcups: Fpe, + Sqrt: Upe, + sqsub: Gpe, + sqsube: Hpe, + sqsubset: Kpe, + sqsubseteq: Jpe, + sqsup: ege, + sqsupe: tge, + sqsupset: nge, + sqsupseteq: rge, + square: ige, + Square: sge, + SquareIntersection: oge, + SquareSubset: lge, + SquareSubsetEqual: age, + SquareSuperset: cge, + SquareSupersetEqual: hge, + SquareUnion: uge, + squarf: fge, + squ: dge, + squf: pge, + srarr: gge, + Sscr: mge, + sscr: Oge, + ssetmn: bge, + ssmile: yge, + sstarf: wge, + Star: kge, + star: xge, + starf: vge, + straightepsilon: Sge, + straightphi: _ge, + strns: Cge, + sub: Age, + Sub: $ge, + subdot: Pge, + subE: Tge, + sube: Qge, + subedot: Ege, + submult: Dge, + subnE: Rge, + subne: Mge, + subplus: Zge, + subrarr: Lge, + subset: Ige, + Subset: Nge, + subseteq: qge, + subseteqq: Bge, + SubsetEqual: Yge, + subsetneq: Xge, + subsetneqq: Wge, + subsim: Vge, + subsub: jge, + subsup: zge, + succapprox: Fge, + succ: Uge, + succcurlyeq: Gge, + Succeeds: Hge, + SucceedsEqual: Kge, + SucceedsSlantEqual: Jge, + SucceedsTilde: eme, + succeq: tme, + succnapprox: nme, + succneqq: rme, + succnsim: ime, + succsim: sme, + SuchThat: ome, + sum: lme, + Sum: ame, + sung: cme, + sup1: hme, + sup2: ume, + sup3: fme, + sup: dme, + Sup: pme, + supdot: gme, + supdsub: mme, + supE: Ome, + supe: bme, + supedot: yme, + Superset: wme, + SupersetEqual: kme, + suphsol: xme, + suphsub: vme, + suplarr: Sme, + supmult: _me, + supnE: Cme, + supne: Ame, + supplus: $me, + supset: Pme, + Supset: Tme, + supseteq: Qme, + supseteqq: Eme, + supsetneq: Dme, + supsetneqq: Rme, + supsim: Mme, + supsub: Zme, + supsup: Lme, + swarhk: Ime, + swarr: Nme, + swArr: qme, + swarrow: Bme, + swnwar: Yme, + szlig: Xme, + Tab: Wme, + target: Vme, + Tau: jme, + tau: zme, + tbrk: Fme, + Tcaron: Ume, + tcaron: Gme, + Tcedil: Hme, + tcedil: Kme, + Tcy: Jme, + tcy: eOe, + tdot: tOe, + telrec: nOe, + Tfr: rOe, + tfr: iOe, + there4: sOe, + therefore: oOe, + Therefore: lOe, + Theta: aOe, + theta: cOe, + thetasym: hOe, + thetav: uOe, + thickapprox: fOe, + thicksim: dOe, + ThickSpace: pOe, + ThinSpace: gOe, thinsp: mOe, - thkap: gOe, - thksim: OOe, - THORN: bOe, - thorn: yOe, - tilde: wOe, - Tilde: kOe, - TildeEqual: xOe, - TildeFullEqual: vOe, - TildeTilde: SOe, - timesbar: _Oe, - timesb: COe, - times: AOe, - timesd: $Oe, - tint: POe, - toea: TOe, - topbot: QOe, - topcir: EOe, - top: DOe, - Topf: ROe, - topf: MOe, - topfork: ZOe, - tosa: LOe, - tprime: IOe, - trade: NOe, - TRADE: qOe, - triangle: BOe, - triangledown: YOe, - triangleleft: XOe, - trianglelefteq: WOe, - triangleq: VOe, - triangleright: jOe, - trianglerighteq: zOe, - tridot: FOe, - trie: UOe, - triminus: GOe, - TripleDot: HOe, - triplus: KOe, - trisb: JOe, - tritime: e0e, - trpezium: t0e, - Tscr: n0e, - tscr: r0e, - TScy: i0e, - tscy: s0e, - TSHcy: o0e, - tshcy: l0e, - Tstrok: a0e, - tstrok: c0e, - twixt: h0e, - twoheadleftarrow: u0e, - twoheadrightarrow: f0e, - Uacute: d0e, - uacute: p0e, + thkap: OOe, + thksim: bOe, + THORN: yOe, + thorn: wOe, + tilde: kOe, + Tilde: xOe, + TildeEqual: vOe, + TildeFullEqual: SOe, + TildeTilde: _Oe, + timesbar: COe, + timesb: AOe, + times: $Oe, + timesd: POe, + tint: TOe, + toea: QOe, + topbot: EOe, + topcir: DOe, + top: ROe, + Topf: MOe, + topf: ZOe, + topfork: LOe, + tosa: IOe, + tprime: NOe, + trade: qOe, + TRADE: BOe, + triangle: YOe, + triangledown: XOe, + triangleleft: WOe, + trianglelefteq: VOe, + triangleq: jOe, + triangleright: zOe, + trianglerighteq: FOe, + tridot: UOe, + trie: GOe, + triminus: HOe, + TripleDot: KOe, + triplus: JOe, + trisb: e0e, + tritime: t0e, + trpezium: n0e, + Tscr: r0e, + tscr: i0e, + TScy: s0e, + tscy: o0e, + TSHcy: l0e, + tshcy: a0e, + Tstrok: c0e, + tstrok: h0e, + twixt: u0e, + twoheadleftarrow: f0e, + twoheadrightarrow: d0e, + Uacute: p0e, + uacute: g0e, uarr: m0e, - Uarr: g0e, - uArr: O0e, - Uarrocir: b0e, - Ubrcy: y0e, - ubrcy: w0e, - Ubreve: k0e, - ubreve: x0e, - Ucirc: v0e, - ucirc: S0e, - Ucy: _0e, - ucy: C0e, - udarr: A0e, - Udblac: $0e, - udblac: P0e, - udhar: T0e, - ufisht: Q0e, - Ufr: E0e, - ufr: D0e, - Ugrave: R0e, - ugrave: M0e, - uHar: Z0e, - uharl: L0e, - uharr: I0e, - uhblk: N0e, - ulcorn: q0e, - ulcorner: B0e, - ulcrop: Y0e, - ultri: X0e, - Umacr: W0e, - umacr: V0e, - uml: j0e, - UnderBar: z0e, - UnderBrace: F0e, - UnderBracket: U0e, - UnderParenthesis: G0e, - Union: H0e, - UnionPlus: K0e, - Uogon: J0e, - uogon: e1e, - Uopf: t1e, - uopf: n1e, - UpArrowBar: r1e, - uparrow: i1e, - UpArrow: s1e, - Uparrow: o1e, - UpArrowDownArrow: l1e, - updownarrow: a1e, - UpDownArrow: c1e, - Updownarrow: h1e, - UpEquilibrium: u1e, - upharpoonleft: f1e, - upharpoonright: d1e, - uplus: p1e, + Uarr: O0e, + uArr: b0e, + Uarrocir: y0e, + Ubrcy: w0e, + ubrcy: k0e, + Ubreve: x0e, + ubreve: v0e, + Ucirc: S0e, + ucirc: _0e, + Ucy: C0e, + ucy: A0e, + udarr: $0e, + Udblac: P0e, + udblac: T0e, + udhar: Q0e, + ufisht: E0e, + Ufr: D0e, + ufr: R0e, + Ugrave: M0e, + ugrave: Z0e, + uHar: L0e, + uharl: I0e, + uharr: N0e, + uhblk: q0e, + ulcorn: B0e, + ulcorner: Y0e, + ulcrop: X0e, + ultri: W0e, + Umacr: V0e, + umacr: j0e, + uml: z0e, + UnderBar: F0e, + UnderBrace: U0e, + UnderBracket: G0e, + UnderParenthesis: H0e, + Union: K0e, + UnionPlus: J0e, + Uogon: e1e, + uogon: t1e, + Uopf: n1e, + uopf: r1e, + UpArrowBar: i1e, + uparrow: s1e, + UpArrow: o1e, + Uparrow: l1e, + UpArrowDownArrow: a1e, + updownarrow: c1e, + UpDownArrow: h1e, + Updownarrow: u1e, + UpEquilibrium: f1e, + upharpoonleft: d1e, + upharpoonright: p1e, + uplus: g1e, UpperLeftArrow: m1e, - UpperRightArrow: g1e, - upsi: O1e, - Upsi: b1e, - upsih: y1e, - Upsilon: w1e, - upsilon: k1e, - UpTeeArrow: x1e, - UpTee: v1e, - upuparrows: S1e, - urcorn: _1e, - urcorner: C1e, - urcrop: A1e, - Uring: $1e, - uring: P1e, - urtri: T1e, - Uscr: Q1e, - uscr: E1e, - utdot: D1e, - Utilde: R1e, - utilde: M1e, - utri: Z1e, - utrif: L1e, - uuarr: I1e, - Uuml: N1e, - uuml: q1e, - uwangle: B1e, - vangrt: Y1e, - varepsilon: X1e, - varkappa: W1e, - varnothing: V1e, - varphi: j1e, - varpi: z1e, - varpropto: F1e, - varr: U1e, - vArr: G1e, - varrho: H1e, - varsigma: K1e, - varsubsetneq: J1e, - varsubsetneqq: ebe, - varsupsetneq: tbe, - varsupsetneqq: nbe, - vartheta: rbe, - vartriangleleft: ibe, - vartriangleright: sbe, - vBar: obe, - Vbar: lbe, - vBarv: abe, - Vcy: cbe, - vcy: hbe, - vdash: ube, - vDash: fbe, - Vdash: dbe, - VDash: pbe, + UpperRightArrow: O1e, + upsi: b1e, + Upsi: y1e, + upsih: w1e, + Upsilon: k1e, + upsilon: x1e, + UpTeeArrow: v1e, + UpTee: S1e, + upuparrows: _1e, + urcorn: C1e, + urcorner: A1e, + urcrop: $1e, + Uring: P1e, + uring: T1e, + urtri: Q1e, + Uscr: E1e, + uscr: D1e, + utdot: R1e, + Utilde: M1e, + utilde: Z1e, + utri: L1e, + utrif: I1e, + uuarr: N1e, + Uuml: q1e, + uuml: B1e, + uwangle: Y1e, + vangrt: X1e, + varepsilon: W1e, + varkappa: V1e, + varnothing: j1e, + varphi: z1e, + varpi: F1e, + varpropto: U1e, + varr: G1e, + vArr: H1e, + varrho: K1e, + varsigma: J1e, + varsubsetneq: ebe, + varsubsetneqq: tbe, + varsupsetneq: nbe, + varsupsetneqq: rbe, + vartheta: ibe, + vartriangleleft: sbe, + vartriangleright: obe, + vBar: lbe, + Vbar: abe, + vBarv: cbe, + Vcy: hbe, + vcy: ube, + vdash: fbe, + vDash: dbe, + Vdash: pbe, + VDash: gbe, Vdashl: mbe, - veebar: gbe, - vee: Obe, - Vee: bbe, - veeeq: ybe, - vellip: wbe, - verbar: kbe, - Verbar: xbe, - vert: vbe, - Vert: Sbe, - VerticalBar: _be, - VerticalLine: Cbe, - VerticalSeparator: Abe, - VerticalTilde: $be, - VeryThinSpace: Pbe, - Vfr: Tbe, - vfr: Qbe, - vltri: Ebe, - vnsub: Dbe, - vnsup: Rbe, - Vopf: Mbe, - vopf: Zbe, - vprop: Lbe, - vrtri: Ibe, - Vscr: Nbe, - vscr: qbe, - vsubnE: Bbe, - vsubne: Ybe, - vsupnE: Xbe, - vsupne: Wbe, - Vvdash: Vbe, - vzigzag: jbe, - Wcirc: zbe, - wcirc: Fbe, - wedbar: Ube, - wedge: Gbe, - Wedge: Hbe, - wedgeq: Kbe, - weierp: Jbe, - Wfr: eye, - wfr: tye, - Wopf: nye, - wopf: rye, - wp: iye, - wr: sye, - wreath: oye, - Wscr: lye, - wscr: aye, - xcap: cye, - xcirc: hye, - xcup: uye, - xdtri: fye, - Xfr: dye, - xfr: pye, + veebar: Obe, + vee: bbe, + Vee: ybe, + veeeq: wbe, + vellip: kbe, + verbar: xbe, + Verbar: vbe, + vert: Sbe, + Vert: _be, + VerticalBar: Cbe, + VerticalLine: Abe, + VerticalSeparator: $be, + VerticalTilde: Pbe, + VeryThinSpace: Tbe, + Vfr: Qbe, + vfr: Ebe, + vltri: Dbe, + vnsub: Rbe, + vnsup: Mbe, + Vopf: Zbe, + vopf: Lbe, + vprop: Ibe, + vrtri: Nbe, + Vscr: qbe, + vscr: Bbe, + vsubnE: Ybe, + vsubne: Xbe, + vsupnE: Wbe, + vsupne: Vbe, + Vvdash: jbe, + vzigzag: zbe, + Wcirc: Fbe, + wcirc: Ube, + wedbar: Gbe, + wedge: Hbe, + Wedge: Kbe, + wedgeq: Jbe, + weierp: eye, + Wfr: tye, + wfr: nye, + Wopf: rye, + wopf: iye, + wp: sye, + wr: oye, + wreath: lye, + Wscr: aye, + wscr: cye, + xcap: hye, + xcirc: uye, + xcup: fye, + xdtri: dye, + Xfr: pye, + xfr: gye, xharr: mye, - xhArr: gye, - Xi: Oye, - xi: bye, - xlarr: yye, - xlArr: wye, - xmap: kye, - xnis: xye, - xodot: vye, - Xopf: Sye, - xopf: _ye, - xoplus: Cye, - xotime: Aye, - xrarr: $ye, - xrArr: Pye, - Xscr: Tye, - xscr: Qye, - xsqcup: Eye, - xuplus: Dye, - xutri: Rye, - xvee: Mye, - xwedge: Zye, - Yacute: Lye, - yacute: Iye, - YAcy: Nye, - yacy: qye, - Ycirc: Bye, - ycirc: Yye, - Ycy: Xye, - ycy: Wye, - yen: Vye, - Yfr: jye, - yfr: zye, - YIcy: Fye, - yicy: Uye, - Yopf: Gye, - yopf: Hye, - Yscr: Kye, - yscr: Jye, - YUcy: ewe, - yucy: twe, - yuml: nwe, - Yuml: rwe, - Zacute: iwe, - zacute: swe, - Zcaron: owe, - zcaron: lwe, - Zcy: awe, - zcy: cwe, - Zdot: hwe, - zdot: uwe, - zeetrf: fwe, - ZeroWidthSpace: dwe, - Zeta: pwe, + xhArr: Oye, + Xi: bye, + xi: yye, + xlarr: wye, + xlArr: kye, + xmap: xye, + xnis: vye, + xodot: Sye, + Xopf: _ye, + xopf: Cye, + xoplus: Aye, + xotime: $ye, + xrarr: Pye, + xrArr: Tye, + Xscr: Qye, + xscr: Eye, + xsqcup: Dye, + xuplus: Rye, + xutri: Mye, + xvee: Zye, + xwedge: Lye, + Yacute: Iye, + yacute: Nye, + YAcy: qye, + yacy: Bye, + Ycirc: Yye, + ycirc: Xye, + Ycy: Wye, + ycy: Vye, + yen: jye, + Yfr: zye, + yfr: Fye, + YIcy: Uye, + yicy: Gye, + Yopf: Hye, + yopf: Kye, + Yscr: Jye, + yscr: ewe, + YUcy: twe, + yucy: nwe, + yuml: rwe, + Yuml: iwe, + Zacute: swe, + zacute: owe, + Zcaron: lwe, + zcaron: awe, + Zcy: cwe, + zcy: hwe, + Zdot: uwe, + zdot: fwe, + zeetrf: dwe, + ZeroWidthSpace: pwe, + Zeta: gwe, zeta: mwe, - zfr: gwe, - Zfr: Owe, - ZHcy: bwe, - zhcy: ywe, - zigrarr: wwe, - zopf: kwe, - Zopf: xwe, - Zscr: vwe, - zscr: Swe, - zwj: _we, - zwnj: Cwe + zfr: Owe, + Zfr: bwe, + ZHcy: ywe, + zhcy: wwe, + zigrarr: kwe, + zopf: xwe, + Zopf: vwe, + Zscr: Swe, + zscr: _we, + zwj: Cwe, + zwnj: Awe }; (function(t) { - t.exports = Awe; -})($g); -var Pg = /[!-#%-\*,-\/:;\?@\[-\]_\{\}\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]/, eo = {}, my = {}; -function $we(t) { + t.exports = $we; +})(Pm); +var Tm = /[!-#%-\*,-\/:;\?@\[-\]_\{\}\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]/, eo = {}, my = {}; +function Pwe(t) { var e, n, r = my[t]; if (r) return r; @@ -29788,9 +29788,9 @@ function $we(t) { r[t.charCodeAt(e)] = t[e]; return r; } -function ou(t, e, n) { +function lu(t, e, n) { var r, i, s, o, l, a = ""; - for (typeof e != "string" && (n = e, e = ou.defaultChars), typeof n > "u" && (n = !0), l = $we(e), r = 0, i = t.length; r < i; r++) { + for (typeof e != "string" && (n = e, e = lu.defaultChars), typeof n > "u" && (n = !0), l = Pwe(e), r = 0, i = t.length; r < i; r++) { if (s = t.charCodeAt(r), n && s === 37 && r + 2 < i && /^[0-9a-f]{2}$/i.test(t.slice(r + 1, r + 3))) { a += t.slice(r, r + 3), r += 2; continue; @@ -29811,22 +29811,22 @@ function ou(t, e, n) { } return a; } -ou.defaultChars = ";/?:@&=+$,-_.!~*'()#"; -ou.componentChars = "-_.!~*'()"; -var Pwe = ou, gy = {}; -function Twe(t) { - var e, n, r = gy[t]; +lu.defaultChars = ";/?:@&=+$,-_.!~*'()#"; +lu.componentChars = "-_.!~*'()"; +var Twe = lu, Oy = {}; +function Qwe(t) { + var e, n, r = Oy[t]; if (r) return r; - for (r = gy[t] = [], e = 0; e < 128; e++) + for (r = Oy[t] = [], e = 0; e < 128; e++) n = String.fromCharCode(e), r.push(n); for (e = 0; e < t.length; e++) n = t.charCodeAt(e), r[n] = "%" + ("0" + n.toString(16).toUpperCase()).slice(-2); return r; } -function lu(t, e) { +function au(t, e) { var n; - return typeof e != "string" && (e = lu.defaultChars), n = Twe(e), t.replace(/(%[a-f0-9]{2})+/gi, function(r) { + return typeof e != "string" && (e = au.defaultChars), n = Qwe(e), t.replace(/(%[a-f0-9]{2})+/gi, function(r) { var i, s, o, l, a, c, h, u = ""; for (i = 0, s = r.length; i < s; i += 3) { if (o = parseInt(r.slice(i + 1, i + 3), 16), o < 128) { @@ -29850,20 +29850,20 @@ function lu(t, e) { return u; }); } -lu.defaultChars = ";/?:@&=+$,#"; -lu.componentChars = ""; -var Qwe = lu, Ewe = function(e) { +au.defaultChars = ";/?:@&=+$,#"; +au.componentChars = ""; +var Ewe = au, Dwe = function(e) { var n = ""; return n += e.protocol || "", n += e.slashes ? "//" : "", n += e.auth ? e.auth + "@" : "", e.hostname && e.hostname.indexOf(":") !== -1 ? n += "[" + e.hostname + "]" : n += e.hostname || "", n += e.port ? ":" + e.port : "", n += e.pathname || "", n += e.search || "", n += e.hash || "", n; }; function mh() { 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 Dwe = /^([a-z0-9.+-]+:)/i, Rwe = /:[0-9]*$/, Mwe = /^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/, Zwe = ["<", ">", '"', "`", " ", "\r", ` -`, " "], Lwe = ["{", "}", "|", "\\", "^", "`"].concat(Zwe), Iwe = ["'"].concat(Lwe), Oy = ["%", "/", "?", ";", "#"].concat(Iwe), by = ["/", "?", "#"], Nwe = 255, yy = /^[+a-z0-9A-Z_-]{0,63}$/, qwe = /^([+a-z0-9A-Z_-]{0,63})(.*)$/, wy = { +var Rwe = /^([a-z0-9.+-]+:)/i, Mwe = /:[0-9]*$/, Zwe = /^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/, Lwe = ["<", ">", '"', "`", " ", "\r", ` +`, " "], Iwe = ["{", "}", "|", "\\", "^", "`"].concat(Lwe), Nwe = ["'"].concat(Iwe), by = ["%", "/", "?", ";", "#"].concat(Nwe), yy = ["/", "?", "#"], qwe = 255, wy = /^[+a-z0-9A-Z_-]{0,63}$/, Bwe = /^([+a-z0-9A-Z_-]{0,63})(.*)$/, ky = { javascript: !0, "javascript:": !0 -}, ky = { +}, xy = { http: !0, https: !0, ftp: !0, @@ -29875,7 +29875,7 @@ var Dwe = /^([a-z0-9.+-]+:)/i, Rwe = /:[0-9]*$/, Mwe = /^(\/\/?(?!\/)[^\?\s]*)(\ "gopher:": !0, "file:": !0 }; -function Bwe(t, e) { +function Ywe(t, e) { if (t && t instanceof mh) return t; var n = new mh(); @@ -29884,72 +29884,72 @@ function Bwe(t, e) { mh.prototype.parse = function(t, e) { var n, r, i, s, o, l = t; if (l = l.trim(), !e && t.split("#").length === 1) { - var a = Mwe.exec(l); + var a = Zwe.exec(l); if (a) return this.pathname = a[1], a[2] && (this.search = a[2]), this; } - var c = Dwe.exec(l); - if (c && (c = c[0], i = c.toLowerCase(), this.protocol = c, l = l.substr(c.length)), (e || c || l.match(/^\/\/[^@\/]+@[^@\/]+/)) && (o = l.substr(0, 2) === "//", o && !(c && wy[c]) && (l = l.substr(2), this.slashes = !0)), !wy[c] && (o || c && !ky[c])) { + var c = Rwe.exec(l); + if (c && (c = c[0], i = c.toLowerCase(), this.protocol = c, l = l.substr(c.length)), (e || c || l.match(/^\/\/[^@\/]+@[^@\/]+/)) && (o = l.substr(0, 2) === "//", o && !(c && ky[c]) && (l = l.substr(2), this.slashes = !0)), !ky[c] && (o || c && !xy[c])) { var h = -1; - for (n = 0; n < by.length; n++) - s = l.indexOf(by[n]), s !== -1 && (h === -1 || s < h) && (h = s); + for (n = 0; n < yy.length; n++) + s = l.indexOf(yy[n]), s !== -1 && (h === -1 || s < h) && (h = s); var u, f; - for (h === -1 ? f = l.lastIndexOf("@") : f = l.lastIndexOf("@", h), f !== -1 && (u = l.slice(0, f), l = l.slice(f + 1), this.auth = u), h = -1, n = 0; n < Oy.length; n++) - s = l.indexOf(Oy[n]), s !== -1 && (h === -1 || s < h) && (h = s); + for (h === -1 ? f = l.lastIndexOf("@") : f = l.lastIndexOf("@", h), f !== -1 && (u = l.slice(0, f), l = l.slice(f + 1), this.auth = u), h = -1, n = 0; n < by.length; n++) + s = l.indexOf(by[n]), s !== -1 && (h === -1 || s < h) && (h = s); h === -1 && (h = l.length), l[h - 1] === ":" && h--; var d = l.slice(0, h); l = l.slice(h), this.parseHost(d), this.hostname = this.hostname || ""; var p = this.hostname[0] === "[" && this.hostname[this.hostname.length - 1] === "]"; if (!p) { - var m = this.hostname.split(/\./); - for (n = 0, r = m.length; n < r; n++) { - var g = m[n]; - if (!!g && !g.match(yy)) { - for (var O = "", b = 0, y = g.length; b < y; b++) - g.charCodeAt(b) > 127 ? O += "x" : O += g[b]; - if (!O.match(yy)) { - var w = m.slice(0, n), S = m.slice(n + 1), x = g.match(qwe); + var g = this.hostname.split(/\./); + for (n = 0, r = g.length; n < r; n++) { + var m = g[n]; + if (!!m && !m.match(wy)) { + for (var O = "", b = 0, y = m.length; b < y; b++) + m.charCodeAt(b) > 127 ? O += "x" : O += m[b]; + if (!O.match(wy)) { + var w = g.slice(0, n), S = g.slice(n + 1), x = m.match(Bwe); x && (w.push(x[1]), S.unshift(x[2])), S.length && (l = S.join(".") + l), this.hostname = w.join("."); break; } } } } - this.hostname.length > Nwe && (this.hostname = ""), p && (this.hostname = this.hostname.substr(1, this.hostname.length - 2)); + this.hostname.length > qwe && (this.hostname = ""), p && (this.hostname = this.hostname.substr(1, this.hostname.length - 2)); } var v = l.indexOf("#"); v !== -1 && (this.hash = l.substr(v), l = l.slice(0, v)); var P = l.indexOf("?"); - return P !== -1 && (this.search = l.substr(P), l = l.slice(0, P)), l && (this.pathname = l), ky[i] && this.hostname && !this.pathname && (this.pathname = ""), this; + return P !== -1 && (this.search = l.substr(P), l = l.slice(0, P)), l && (this.pathname = l), xy[i] && this.hostname && !this.pathname && (this.pathname = ""), this; }; mh.prototype.parseHost = function(t) { - var e = Rwe.exec(t); + var e = Mwe.exec(t); e && (e = e[0], e !== ":" && (this.port = e.substr(1)), t = t.substr(0, t.length - e.length)), t && (this.hostname = t); }; -var Ywe = Bwe; -eo.encode = Pwe; -eo.decode = Qwe; -eo.format = Ewe; -eo.parse = Ywe; -var ni = {}, Qf, xy; -function lA() { - return xy || (xy = 1, Qf = /[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/), Qf; -} -var Ef, vy; +var Xwe = Ywe; +eo.encode = Twe; +eo.decode = Ewe; +eo.format = Dwe; +eo.parse = Xwe; +var ni = {}, Qf, vy; function aA() { - return vy || (vy = 1, Ef = /[\0-\x1F\x7F-\x9F]/), Ef; -} -var Df, Sy; -function Xwe() { - return Sy || (Sy = 1, Df = /[\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]/), Df; + return vy || (vy = 1, Qf = /[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/), Qf; } -var Rf, _y; +var Ef, Sy; function cA() { - return _y || (_y = 1, Rf = /[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/), Rf; + return Sy || (Sy = 1, Ef = /[\0-\x1F\x7F-\x9F]/), Ef; } -var Cy; +var Df, _y; function Wwe() { - return Cy || (Cy = 1, ni.Any = lA(), ni.Cc = aA(), ni.Cf = Xwe(), ni.P = Pg, ni.Z = cA()), ni; + return _y || (_y = 1, Df = /[\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]/), Df; +} +var Rf, Cy; +function hA() { + return Cy || (Cy = 1, Rf = /[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/), Rf; +} +var Ay; +function Vwe() { + return Ay || (Ay = 1, ni.Any = aA(), ni.Cc = cA(), ni.Cf = Wwe(), ni.P = Tm, ni.Z = hA()), ni; } (function(t) { function e(A) { @@ -29988,15 +29988,15 @@ function Wwe() { } return String.fromCharCode(A); } - var c = /\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g, h = /&([a-z#][a-z0-9]{1,31});/gi, u = new RegExp(c.source + "|" + h.source, "gi"), f = /^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i, d = $g.exports; + var c = /\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g, h = /&([a-z#][a-z0-9]{1,31});/gi, u = new RegExp(c.source + "|" + h.source, "gi"), f = /^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i, d = Pm.exports; function p(A, j) { var z = 0; return i(d, j) ? d[j] : j.charCodeAt(0) === 35 && f.test(j) && (z = j[1].toLowerCase() === "x" ? parseInt(j.slice(2), 16) : parseInt(j.slice(1), 10), l(z)) ? a(z) : A; } - function m(A) { + function g(A) { return A.indexOf("\\") < 0 ? A : A.replace(c, "$1"); } - function g(A) { + function m(A) { return A.indexOf("\\") < 0 && A.indexOf("&") < 0 ? A : A.replace(u, function(j, z, de) { return z || p(j, de); }); @@ -30044,7 +30044,7 @@ function Wwe() { } return !1; } - var T = Pg; + var T = Tm; function M(A) { return T.test(A); } @@ -30090,9 +30090,9 @@ function Wwe() { function U(A) { return A = A.trim().replace(/\s+/g, " "), "\u1E9E".toLowerCase() === "\u1E7E" && (A = A.replace(/ẞ/g, "\xDF")), A.toLowerCase().toUpperCase(); } - t.lib = {}, t.lib.mdurl = eo, t.lib.ucmicro = Wwe(), t.assign = s, t.isString = n, t.has = i, t.unescapeMd = m, t.unescapeAll = g, t.isValidEntityCode = l, t.fromCodePoint = a, t.escapeHtml = S, t.arrayReplaceAt = o, t.isSpace = P, t.isWhiteSpace = D, t.isMdAsciiPunct = q, t.isPunctChar = M, t.escapeRE = v, t.normalizeReference = U; -})(ce); -var au = {}, Vwe = function(e, n, r) { + t.lib = {}, t.lib.mdurl = eo, t.lib.ucmicro = Vwe(), t.assign = s, t.isString = n, t.has = i, t.unescapeMd = g, t.unescapeAll = m, t.isValidEntityCode = l, t.fromCodePoint = a, t.escapeHtml = S, t.arrayReplaceAt = o, t.isSpace = P, t.isWhiteSpace = D, t.isMdAsciiPunct = q, t.isPunctChar = M, t.escapeRE = v, t.normalizeReference = U; +})(ae); +var cu = {}, jwe = function(e, n, r) { var i, s, o, l, a = -1, c = e.posMax, h = e.pos; for (e.pos = n + 1, i = 1; e.pos < c; ) { if (o = e.src.charCodeAt(e.pos), o === 93 && (i--, i === 0)) { @@ -30107,7 +30107,7 @@ var au = {}, Vwe = function(e, n, r) { } } return s && (a = e.pos), e.pos = h, a; -}, Ay = ce.unescapeAll, jwe = function(e, n, r) { +}, $y = ae.unescapeAll, zwe = function(e, n, r) { var i, s, o = 0, l = n, a = { ok: !1, pos: 0, @@ -30119,7 +30119,7 @@ var au = {}, Vwe = function(e, n, r) { if (i = e.charCodeAt(n), i === 10 || i === 60) return a; if (i === 62) - return a.pos = n + 1, a.str = Ay(e.slice(l + 1, n)), a.ok = !0, a; + return a.pos = n + 1, a.str = $y(e.slice(l + 1, n)), a.ok = !0, a; if (i === 92 && n + 1 < r) { n += 2; continue; @@ -30144,8 +30144,8 @@ var au = {}, Vwe = function(e, n, r) { } n++; } - return l === n || s !== 0 || (a.str = Ay(e.slice(l, n)), a.lines = o, a.pos = n, a.ok = !0), a; -}, zwe = ce.unescapeAll, Fwe = function(e, n, r) { + return l === n || s !== 0 || (a.str = $y(e.slice(l, n)), a.lines = o, a.pos = n, a.ok = !0), a; +}, Fwe = ae.unescapeAll, Uwe = function(e, n, r) { var i, s, o = 0, l = n, a = { ok: !1, pos: 0, @@ -30156,17 +30156,17 @@ var au = {}, Vwe = function(e, n, r) { return a; for (n++, s === 40 && (s = 41); n < r; ) { if (i = e.charCodeAt(n), i === s) - return a.pos = n + 1, a.lines = o, a.str = zwe(e.slice(l + 1, n)), a.ok = !0, a; + return a.pos = n + 1, a.lines = o, a.str = Fwe(e.slice(l + 1, n)), a.ok = !0, a; if (i === 40 && s === 41) return a; i === 10 ? o++ : i === 92 && n + 1 < r && (n++, e.charCodeAt(n) === 10 && o++), n++; } return a; }; -au.parseLinkLabel = Vwe; -au.parseLinkDestination = jwe; -au.parseLinkTitle = Fwe; -var Uwe = ce.assign, Gwe = ce.unescapeAll, Ei = ce.escapeHtml, Gn = {}; +cu.parseLinkLabel = jwe; +cu.parseLinkDestination = zwe; +cu.parseLinkTitle = Uwe; +var Gwe = ae.assign, Hwe = ae.unescapeAll, Ei = ae.escapeHtml, Gn = {}; Gn.code_inline = function(t, e, n, r, i) { var s = t[e]; return "" + Ei(t[e].content) + ""; @@ -30177,7 +30177,7 @@ Gn.code_block = function(t, e, n, r, i) { `; }; Gn.fence = function(t, e, n, r, i) { - var s = t[e], o = s.info ? Gwe(s.info).trim() : "", l = "", a = "", c, h, u, f, d; + var s = t[e], o = s.info ? Hwe(s.info).trim() : "", l = "", a = "", c, h, u, f, d; return o && (u = o.split(/(\s+)/g), l = u[0], a = u.slice(2).join("")), n.highlight ? c = n.highlight(s.content, l, a) || Ei(s.content) : c = Ei(s.content), c.indexOf("\s]/i.test(t); } -function ske(t) { +function oke(t) { return /^<\/a\s*>/i.test(t); } -var oke = function(e) { - var n, r, i, s, o, l, a, c, h, u, f, d, p, m, g, O, b = e.tokens, y; +var lke = function(e) { + var n, r, i, s, o, l, a, c, h, u, f, d, p, g, m, O, b = e.tokens, y; if (!!e.md.options.linkify) { for (r = 0, i = b.length; r < i; r++) if (!(b[r].type !== "inline" || !e.md.linkify.pretest(b[r].content))) @@ -30365,43 +30365,43 @@ var oke = function(e) { n--; continue; } - if (l.type === "html_inline" && (ike(l.content) && p > 0 && p--, ske(l.content) && p++), !(p > 0) && l.type === "text" && e.md.linkify.test(l.content)) { + if (l.type === "html_inline" && (ske(l.content) && p > 0 && p--, oke(l.content) && p++), !(p > 0) && l.type === "text" && e.md.linkify.test(l.content)) { for (h = l.content, y = e.md.linkify.match(h), a = [], d = l.level, f = 0, c = 0; c < y.length; c++) - m = y[c].url, g = e.md.normalizeLink(m), e.md.validateLink(g) && (O = y[c].text, y[c].schema ? y[c].schema === "mailto:" && !/^mailto:/i.test(O) ? O = e.md.normalizeLinkText("mailto:" + O).replace(/^mailto:/, "") : O = e.md.normalizeLinkText(O) : O = e.md.normalizeLinkText("http://" + O).replace(/^http:\/\//, ""), u = y[c].index, u > f && (o = new e.Token("text", "", 0), o.content = h.slice(f, u), o.level = d, a.push(o)), o = new e.Token("link_open", "a", 1), o.attrs = [["href", g]], o.level = d++, o.markup = "linkify", o.info = "auto", a.push(o), o = new e.Token("text", "", 0), o.content = O, o.level = d, a.push(o), o = new e.Token("link_close", "a", -1), o.level = --d, o.markup = "linkify", o.info = "auto", a.push(o), f = y[c].lastIndex); - f < h.length && (o = new e.Token("text", "", 0), o.content = h.slice(f), o.level = d, a.push(o)), b[r].children = s = rke(s, n, a); + g = y[c].url, m = e.md.normalizeLink(g), e.md.validateLink(m) && (O = y[c].text, y[c].schema ? y[c].schema === "mailto:" && !/^mailto:/i.test(O) ? O = e.md.normalizeLinkText("mailto:" + O).replace(/^mailto:/, "") : O = e.md.normalizeLinkText(O) : O = e.md.normalizeLinkText("http://" + O).replace(/^http:\/\//, ""), u = y[c].index, u > f && (o = new e.Token("text", "", 0), o.content = h.slice(f, u), o.level = d, a.push(o)), o = new e.Token("link_open", "a", 1), o.attrs = [["href", m]], o.level = d++, o.markup = "linkify", o.info = "auto", a.push(o), o = new e.Token("text", "", 0), o.content = O, o.level = d, a.push(o), o = new e.Token("link_close", "a", -1), o.level = --d, o.markup = "linkify", o.info = "auto", a.push(o), f = y[c].lastIndex); + f < h.length && (o = new e.Token("text", "", 0), o.content = h.slice(f), o.level = d, a.push(o)), b[r].children = s = ike(s, n, a); } } } -}, hA = /\+-|\.\.|\?\?\?\?|!!!!|,,|--/, lke = /\((c|tm|r|p)\)/i, ake = /\((c|tm|r|p)\)/ig, cke = { +}, uA = /\+-|\.\.|\?\?\?\?|!!!!|,,|--/, ake = /\((c|tm|r|p)\)/i, cke = /\((c|tm|r|p)\)/ig, hke = { c: "\xA9", r: "\xAE", p: "\xA7", tm: "\u2122" }; -function hke(t, e) { - return cke[e.toLowerCase()]; +function uke(t, e) { + return hke[e.toLowerCase()]; } -function uke(t) { +function fke(t) { var e, n, r = 0; for (e = t.length - 1; e >= 0; e--) - n = t[e], n.type === "text" && !r && (n.content = n.content.replace(ake, hke)), n.type === "link_open" && n.info === "auto" && r--, n.type === "link_close" && n.info === "auto" && r++; + n = t[e], n.type === "text" && !r && (n.content = n.content.replace(cke, uke)), n.type === "link_open" && n.info === "auto" && r--, n.type === "link_close" && n.info === "auto" && r++; } -function fke(t) { +function dke(t) { var e, n, r = 0; for (e = t.length - 1; e >= 0; e--) - n = t[e], n.type === "text" && !r && hA.test(n.content) && (n.content = n.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")), n.type === "link_open" && n.info === "auto" && r--, n.type === "link_close" && n.info === "auto" && r++; + n = t[e], n.type === "text" && !r && uA.test(n.content) && (n.content = n.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")), n.type === "link_open" && n.info === "auto" && r--, n.type === "link_close" && n.info === "auto" && r++; } -var dke = function(e) { +var pke = function(e) { var n; if (!!e.md.options.typographer) for (n = e.tokens.length - 1; n >= 0; n--) - e.tokens[n].type === "inline" && (lke.test(e.tokens[n].content) && uke(e.tokens[n].children), hA.test(e.tokens[n].content) && fke(e.tokens[n].children)); -}, $y = ce.isWhiteSpace, Py = ce.isPunctChar, Ty = ce.isMdAsciiPunct, pke = /['"]/, Qy = /['"]/g, Ey = "\u2019"; + e.tokens[n].type === "inline" && (ake.test(e.tokens[n].content) && fke(e.tokens[n].children), uA.test(e.tokens[n].content) && dke(e.tokens[n].children)); +}, Py = ae.isWhiteSpace, Ty = ae.isPunctChar, Qy = ae.isMdAsciiPunct, gke = /['"]/, Ey = /['"]/g, Dy = "\u2019"; function Wa(t, e, n) { return t.substr(0, e) + n + t.substr(e + 1); } function mke(t, e) { - var n, r, i, s, o, l, a, c, h, u, f, d, p, m, g, O, b, y, w, S, x; + var n, r, i, s, o, l, a, c, h, u, f, d, p, g, m, O, b, y, w, S, x; for (w = [], n = 0; n < t.length; n++) { for (r = t[n], a = t[n].level, b = w.length - 1; b >= 0 && !(w[b].level <= a); b--) ; @@ -30409,8 +30409,8 @@ function mke(t, e) { continue; i = r.content, o = 0, l = i.length; e: - for (; o < l && (Qy.lastIndex = o, s = Qy.exec(i), !!s); ) { - if (g = O = !0, o = s.index + 1, y = s[0] === "'", h = 32, s.index - 1 >= 0) + for (; o < l && (Ey.lastIndex = o, s = Ey.exec(i), !!s); ) { + if (m = O = !0, o = s.index + 1, y = s[0] === "'", h = 32, s.index - 1 >= 0) h = i.charCodeAt(s.index - 1); else for (b = n - 1; b >= 0 && !(t[b].type === "softbreak" || t[b].type === "hardbreak"); b--) @@ -30426,8 +30426,8 @@ function mke(t, e) { u = t[b].content.charCodeAt(0); break; } - if (f = Ty(h) || Py(String.fromCharCode(h)), d = Ty(u) || Py(String.fromCharCode(u)), p = $y(h), m = $y(u), m ? g = !1 : d && (p || f || (g = !1)), p ? O = !1 : f && (m || d || (O = !1)), u === 34 && s[0] === '"' && h >= 48 && h <= 57 && (O = g = !1), g && O && (g = f, O = d), !g && !O) { - y && (r.content = Wa(r.content, s.index, Ey)); + if (f = Qy(h) || Ty(String.fromCharCode(h)), d = Qy(u) || Ty(String.fromCharCode(u)), p = Py(h), g = Py(u), g ? m = !1 : d && (p || f || (m = !1)), p ? O = !1 : f && (g || d || (O = !1)), u === 34 && s[0] === '"' && h >= 48 && h <= 57 && (O = m = !1), m && O && (m = f, O = d), !m && !O) { + y && (r.content = Wa(r.content, s.index, Dy)); continue; } if (O) { @@ -30441,20 +30441,20 @@ function mke(t, e) { continue e; } } - g ? w.push({ + m ? w.push({ token: n, pos: s.index, single: y, level: a - }) : O && y && (r.content = Wa(r.content, s.index, Ey)); + }) : O && y && (r.content = Wa(r.content, s.index, Dy)); } } } -var gke = function(e) { +var Oke = function(e) { var n; if (!!e.md.options.typographer) for (n = e.tokens.length - 1; n >= 0; n--) - e.tokens[n].type !== "inline" || !pke.test(e.tokens[n].content) || mke(e.tokens[n].children, e); + e.tokens[n].type !== "inline" || !gke.test(e.tokens[n].content) || mke(e.tokens[n].children, e); }; function no(t, e, n) { this.type = t, this.tag = e, this.attrs = null, this.map = null, this.nesting = n, this.level = 0, this.children = null, this.content = "", this.markup = "", this.info = "", this.meta = null, this.block = !1, this.hidden = !1; @@ -30483,43 +30483,43 @@ no.prototype.attrJoin = function(e, n) { var r = this.attrIndex(e); r < 0 ? this.attrPush([e, n]) : this.attrs[r][1] = this.attrs[r][1] + " " + n; }; -var Qg = no, Oke = Qg; -function uA(t, e, n) { +var Em = no, bke = Em; +function fA(t, e, n) { this.src = t, this.env = n, this.tokens = [], this.inlineMode = !1, this.md = e; } -uA.prototype.Token = Oke; -var bke = uA, yke = Tg, Mf = [ - ["normalize", eke], - ["block", tke], - ["inline", nke], - ["linkify", oke], - ["replacements", dke], - ["smartquotes", gke] +fA.prototype.Token = bke; +var yke = fA, wke = Qm, Mf = [ + ["normalize", tke], + ["block", nke], + ["inline", rke], + ["linkify", lke], + ["replacements", pke], + ["smartquotes", Oke] ]; -function Eg() { - this.ruler = new yke(); +function Dm() { + this.ruler = new wke(); for (var t = 0; t < Mf.length; t++) this.ruler.push(Mf[t][0], Mf[t][1]); } -Eg.prototype.process = function(t) { +Dm.prototype.process = function(t) { var e, n, r; for (r = this.ruler.getRules(""), e = 0, n = r.length; e < n; e++) r[e](t); }; -Eg.prototype.State = bke; -var wke = Eg, Zf = ce.isSpace; +Dm.prototype.State = yke; +var kke = Dm, Zf = ae.isSpace; function Lf(t, e) { var n = t.bMarks[e] + t.tShift[e], r = t.eMarks[e]; return t.src.substr(n, r - n); } -function Dy(t) { +function Ry(t) { var e = [], n = 0, r = t.length, i, s = !1, o = 0, l = ""; for (i = t.charCodeAt(n); n < r; ) i === 124 && (s ? (l += t.substring(o, n - 1), o = n) : (e.push(l + t.substring(o, n)), l = "", o = n + 1)), s = i === 92, n++, i = t.charCodeAt(n); return e.push(l + t.substring(o)), e; } -var kke = function(e, n, r, i) { - var s, o, l, a, c, h, u, f, d, p, m, g, O, b, y, w, S, x; +var xke = function(e, n, r, i) { + var s, o, l, a, c, h, u, f, d, p, g, m, O, b, y, w, S, x; if (n + 2 > r || (h = n + 1, e.sCount[h] < e.blkIndent) || e.sCount[h] - e.blkIndent >= 4 || (l = e.bMarks[h] + e.tShift[h], l >= e.eMarks[h]) || (S = e.src.charCodeAt(l++), S !== 124 && S !== 45 && S !== 58) || l >= e.eMarks[h] || (x = e.src.charCodeAt(l++), x !== 124 && x !== 45 && x !== 58 && !Zf(x)) || S === 45 && Zf(x)) return !1; for (; l < e.eMarks[h]; ) { @@ -30528,20 +30528,20 @@ var kke = function(e, n, r, i) { l++; } for (o = Lf(e, n + 1), u = o.split("|"), p = [], a = 0; a < u.length; a++) { - if (m = u[a].trim(), !m) { + if (g = u[a].trim(), !g) { if (a === 0 || a === u.length - 1) continue; return !1; } - if (!/^:?-+:?$/.test(m)) + if (!/^:?-+:?$/.test(g)) return !1; - m.charCodeAt(m.length - 1) === 58 ? p.push(m.charCodeAt(0) === 58 ? "center" : "right") : m.charCodeAt(0) === 58 ? p.push("left") : p.push(""); + g.charCodeAt(g.length - 1) === 58 ? p.push(g.charCodeAt(0) === 58 ? "center" : "right") : g.charCodeAt(0) === 58 ? p.push("left") : p.push(""); } - if (o = Lf(e, n).trim(), o.indexOf("|") === -1 || e.sCount[n] - e.blkIndent >= 4 || (u = Dy(o), u.length && u[0] === "" && u.shift(), u.length && u[u.length - 1] === "" && u.pop(), f = u.length, f === 0 || f !== p.length)) + if (o = Lf(e, n).trim(), o.indexOf("|") === -1 || e.sCount[n] - e.blkIndent >= 4 || (u = Ry(o), u.length && u[0] === "" && u.shift(), u.length && u[u.length - 1] === "" && u.pop(), f = u.length, f === 0 || f !== p.length)) return !1; if (i) return !0; - for (b = e.parentType, e.parentType = "table", w = e.md.block.ruler.getRules("blockquote"), d = e.push("table_open", "table", 1), d.map = g = [n, 0], d = e.push("thead_open", "thead", 1), d.map = [n, n + 1], d = e.push("tr_open", "tr", 1), d.map = [n, n + 1], a = 0; a < u.length; a++) + for (b = e.parentType, e.parentType = "table", w = e.md.block.ruler.getRules("blockquote"), d = e.push("table_open", "table", 1), d.map = m = [n, 0], d = e.push("thead_open", "thead", 1), d.map = [n, n + 1], d = e.push("tr_open", "tr", 1), d.map = [n, n + 1], a = 0; a < u.length; a++) d = e.push("th_open", "th", 1), p[a] && (d.attrs = [["style", "text-align:" + p[a]]]), d = e.push("inline", "", 0), d.content = u[a].trim(), d.children = [], d = e.push("th_close", "th", -1); for (d = e.push("tr_close", "tr", -1), d = e.push("thead_close", "thead", -1), h = n + 2; h < r && !(e.sCount[h] < e.blkIndent); h++) { for (y = !1, a = 0, c = w.length; a < c; a++) @@ -30551,12 +30551,12 @@ var kke = function(e, n, r, i) { } if (y || (o = Lf(e, h).trim(), !o) || e.sCount[h] - e.blkIndent >= 4) break; - for (u = Dy(o), u.length && u[0] === "" && u.shift(), u.length && u[u.length - 1] === "" && u.pop(), h === n + 2 && (d = e.push("tbody_open", "tbody", 1), d.map = O = [n + 2, 0]), d = e.push("tr_open", "tr", 1), d.map = [h, h + 1], a = 0; a < f; a++) + for (u = Ry(o), u.length && u[0] === "" && u.shift(), u.length && u[u.length - 1] === "" && u.pop(), h === n + 2 && (d = e.push("tbody_open", "tbody", 1), d.map = O = [n + 2, 0]), d = e.push("tr_open", "tr", 1), d.map = [h, h + 1], a = 0; a < f; a++) d = e.push("td_open", "td", 1), p[a] && (d.attrs = [["style", "text-align:" + p[a]]]), d = e.push("inline", "", 0), d.content = u[a] ? u[a].trim() : "", d.children = [], d = e.push("td_close", "td", -1); d = e.push("tr_close", "tr", -1); } - return O && (d = e.push("tbody_close", "tbody", -1), O[1] = h), d = e.push("table_close", "table", -1), g[1] = h, e.parentType = b, e.line = h, !0; -}, xke = function(e, n, r) { + return O && (d = e.push("tbody_close", "tbody", -1), O[1] = h), d = e.push("table_close", "table", -1), m[1] = h, e.parentType = b, e.line = h, !0; +}, vke = function(e, n, r) { var i, s, o; if (e.sCount[n] - e.blkIndent < 4) return !1; @@ -30573,7 +30573,7 @@ var kke = function(e, n, r, i) { } return e.line = s, o = e.push("code_block", "code", 0), o.content = e.getLines(n, s, 4 + e.blkIndent, !1) + ` `, o.map = [n, e.line], !0; -}, vke = function(e, n, r, i) { +}, Ske = function(e, n, r, i) { var s, o, l, a, c, h, u, f = !1, d = e.bMarks[n] + e.tShift[n], p = e.eMarks[n]; if (e.sCount[n] - e.blkIndent >= 4 || d + 3 > p || (s = e.src.charCodeAt(d), s !== 126 && s !== 96) || (c = d, d = e.skipChars(d, s), o = d - c, o < 3) || (u = e.src.slice(c, d), l = e.src.slice(d, p), s === 96 && l.indexOf(String.fromCharCode(s)) >= 0)) return !1; @@ -30585,23 +30585,23 @@ var kke = function(e, n, r, i) { break; } return o = e.sCount[n], e.line = a + (f ? 1 : 0), h = e.push("fence", "code", 0), h.info = l, h.content = e.getLines(n + 1, a, o, !0), h.markup = u, h.map = [n, e.line], !0; -}, Ry = ce.isSpace, Ske = function(e, n, r, i) { - var s, o, l, a, c, h, u, f, d, p, m, g, O, b, y, w, S, x, v, P, D = e.lineMax, T = e.bMarks[n] + e.tShift[n], M = e.eMarks[n]; +}, My = ae.isSpace, _ke = function(e, n, r, i) { + var s, o, l, a, c, h, u, f, d, p, g, m, O, b, y, w, S, x, v, P, D = e.lineMax, T = e.bMarks[n] + e.tShift[n], M = e.eMarks[n]; if (e.sCount[n] - e.blkIndent >= 4 || e.src.charCodeAt(T++) !== 62) return !1; if (i) return !0; - for (a = d = e.sCount[n] + 1, e.src.charCodeAt(T) === 32 ? (T++, a++, d++, s = !1, w = !0) : e.src.charCodeAt(T) === 9 ? (w = !0, (e.bsCount[n] + d) % 4 === 3 ? (T++, a++, d++, s = !1) : s = !0) : w = !1, p = [e.bMarks[n]], e.bMarks[n] = T; T < M && (o = e.src.charCodeAt(T), Ry(o)); ) { + for (a = d = e.sCount[n] + 1, e.src.charCodeAt(T) === 32 ? (T++, a++, d++, s = !1, w = !0) : e.src.charCodeAt(T) === 9 ? (w = !0, (e.bsCount[n] + d) % 4 === 3 ? (T++, a++, d++, s = !1) : s = !0) : w = !1, p = [e.bMarks[n]], e.bMarks[n] = T; T < M && (o = e.src.charCodeAt(T), My(o)); ) { o === 9 ? d += 4 - (d + e.bsCount[n] + (s ? 1 : 0)) % 4 : d++; T++; } - for (m = [e.bsCount[n]], e.bsCount[n] = e.sCount[n] + 1 + (w ? 1 : 0), h = T >= M, b = [e.sCount[n]], e.sCount[n] = d - a, y = [e.tShift[n]], e.tShift[n] = T - e.bMarks[n], x = e.md.block.ruler.getRules("blockquote"), O = e.parentType, e.parentType = "blockquote", f = n + 1; f < r && (P = e.sCount[f] < e.blkIndent, T = e.bMarks[f] + e.tShift[f], M = e.eMarks[f], !(T >= M)); f++) { + for (g = [e.bsCount[n]], e.bsCount[n] = e.sCount[n] + 1 + (w ? 1 : 0), h = T >= M, b = [e.sCount[n]], e.sCount[n] = d - a, y = [e.tShift[n]], e.tShift[n] = T - e.bMarks[n], x = e.md.block.ruler.getRules("blockquote"), O = e.parentType, e.parentType = "blockquote", f = n + 1; f < r && (P = e.sCount[f] < e.blkIndent, T = e.bMarks[f] + e.tShift[f], M = e.eMarks[f], !(T >= M)); f++) { if (e.src.charCodeAt(T++) === 62 && !P) { - for (a = d = e.sCount[f] + 1, e.src.charCodeAt(T) === 32 ? (T++, a++, d++, s = !1, w = !0) : e.src.charCodeAt(T) === 9 ? (w = !0, (e.bsCount[f] + d) % 4 === 3 ? (T++, a++, d++, s = !1) : s = !0) : w = !1, p.push(e.bMarks[f]), e.bMarks[f] = T; T < M && (o = e.src.charCodeAt(T), Ry(o)); ) { + for (a = d = e.sCount[f] + 1, e.src.charCodeAt(T) === 32 ? (T++, a++, d++, s = !1, w = !0) : e.src.charCodeAt(T) === 9 ? (w = !0, (e.bsCount[f] + d) % 4 === 3 ? (T++, a++, d++, s = !1) : s = !0) : w = !1, p.push(e.bMarks[f]), e.bMarks[f] = T; T < M && (o = e.src.charCodeAt(T), My(o)); ) { o === 9 ? d += 4 - (d + e.bsCount[f] + (s ? 1 : 0)) % 4 : d++; T++; } - h = T >= M, m.push(e.bsCount[f]), e.bsCount[f] = e.sCount[f] + 1 + (w ? 1 : 0), b.push(e.sCount[f]), e.sCount[f] = d - a, y.push(e.tShift[f]), e.tShift[f] = T - e.bMarks[f]; + h = T >= M, g.push(e.bsCount[f]), e.bsCount[f] = e.sCount[f] + 1 + (w ? 1 : 0), b.push(e.sCount[f]), e.sCount[f] = d - a, y.push(e.tShift[f]), e.tShift[f] = T - e.bMarks[f]; continue; } if (h) @@ -30612,30 +30612,30 @@ var kke = function(e, n, r, i) { break; } if (S) { - e.lineMax = f, e.blkIndent !== 0 && (p.push(e.bMarks[f]), m.push(e.bsCount[f]), y.push(e.tShift[f]), b.push(e.sCount[f]), e.sCount[f] -= e.blkIndent); + e.lineMax = f, e.blkIndent !== 0 && (p.push(e.bMarks[f]), g.push(e.bsCount[f]), y.push(e.tShift[f]), b.push(e.sCount[f]), e.sCount[f] -= e.blkIndent); break; } - p.push(e.bMarks[f]), m.push(e.bsCount[f]), y.push(e.tShift[f]), b.push(e.sCount[f]), e.sCount[f] = -1; + p.push(e.bMarks[f]), g.push(e.bsCount[f]), y.push(e.tShift[f]), b.push(e.sCount[f]), e.sCount[f] = -1; } - for (g = e.blkIndent, e.blkIndent = 0, v = e.push("blockquote_open", "blockquote", 1), v.markup = ">", v.map = u = [n, 0], e.md.block.tokenize(e, n, f), v = e.push("blockquote_close", "blockquote", -1), v.markup = ">", e.lineMax = D, e.parentType = O, u[1] = e.line, l = 0; l < y.length; l++) - e.bMarks[l + n] = p[l], e.tShift[l + n] = y[l], e.sCount[l + n] = b[l], e.bsCount[l + n] = m[l]; - return e.blkIndent = g, !0; -}, _ke = ce.isSpace, Cke = function(e, n, r, i) { + for (m = e.blkIndent, e.blkIndent = 0, v = e.push("blockquote_open", "blockquote", 1), v.markup = ">", v.map = u = [n, 0], e.md.block.tokenize(e, n, f), v = e.push("blockquote_close", "blockquote", -1), v.markup = ">", e.lineMax = D, e.parentType = O, u[1] = e.line, l = 0; l < y.length; l++) + e.bMarks[l + n] = p[l], e.tShift[l + n] = y[l], e.sCount[l + n] = b[l], e.bsCount[l + n] = g[l]; + return e.blkIndent = m, !0; +}, Cke = ae.isSpace, Ake = function(e, n, r, i) { var s, o, l, a, c = e.bMarks[n] + e.tShift[n], h = e.eMarks[n]; if (e.sCount[n] - e.blkIndent >= 4 || (s = e.src.charCodeAt(c++), s !== 42 && s !== 45 && s !== 95)) return !1; for (o = 1; c < h; ) { - if (l = e.src.charCodeAt(c++), l !== s && !_ke(l)) + if (l = e.src.charCodeAt(c++), l !== s && !Cke(l)) return !1; l === s && o++; } return o < 3 ? !1 : (i || (e.line = n + 1, a = e.push("hr", "hr", 0), a.map = [n, e.line], a.markup = Array(o + 1).join(String.fromCharCode(s))), !0); -}, fA = ce.isSpace; -function My(t, e) { +}, dA = ae.isSpace; +function Zy(t, e) { var n, r, i, s; - return r = t.bMarks[e] + t.tShift[e], i = t.eMarks[e], n = t.src.charCodeAt(r++), n !== 42 && n !== 45 && n !== 43 || r < i && (s = t.src.charCodeAt(r), !fA(s)) ? -1 : r; + return r = t.bMarks[e] + t.tShift[e], i = t.eMarks[e], n = t.src.charCodeAt(r++), n !== 42 && n !== 45 && n !== 43 || r < i && (s = t.src.charCodeAt(r), !dA(s)) ? -1 : r; } -function Zy(t, e) { +function Ly(t, e) { var n, r = t.bMarks[e] + t.tShift[e], i = r, s = t.eMarks[e]; if (i + 1 >= s || (n = t.src.charCodeAt(i++), n < 48 || n > 57)) return -1; @@ -30651,29 +30651,29 @@ function Zy(t, e) { break; return -1; } - return i < s && (n = t.src.charCodeAt(i), !fA(n)) ? -1 : i; + return i < s && (n = t.src.charCodeAt(i), !dA(n)) ? -1 : i; } -function Ake(t, e) { +function $ke(t, e) { var n, r, i = t.level + 2; for (n = e + 2, r = t.tokens.length - 2; n < r; n++) t.tokens[n].level === i && t.tokens[n].type === "paragraph_open" && (t.tokens[n + 2].hidden = !0, t.tokens[n].hidden = !0, n += 2); } -var $ke = function(e, n, r, i) { - var s, o, l, a, c, h, u, f, d, p, m, g, O, b, y, w, S, x, v, P, D, T, M, q, U, A, j, z, de = !1, Oe = !0; +var Pke = function(e, n, r, i) { + var s, o, l, a, c, h, u, f, d, p, g, m, O, b, y, w, S, x, v, P, D, T, M, q, U, A, j, z, de = !1, Oe = !0; if (e.sCount[n] - e.blkIndent >= 4 || e.listIndent >= 0 && e.sCount[n] - e.listIndent >= 4 && e.sCount[n] < e.blkIndent) return !1; - if (i && e.parentType === "paragraph" && e.sCount[n] >= e.blkIndent && (de = !0), (M = Zy(e, n)) >= 0) { + if (i && e.parentType === "paragraph" && e.sCount[n] >= e.blkIndent && (de = !0), (M = Ly(e, n)) >= 0) { if (u = !0, U = e.bMarks[n] + e.tShift[n], O = Number(e.src.slice(U, M - 1)), de && O !== 1) return !1; - } else if ((M = My(e, n)) >= 0) + } else if ((M = Zy(e, n)) >= 0) u = !1; else return !1; if (de && e.skipSpaces(M) >= e.eMarks[n]) return !1; - if (g = e.src.charCodeAt(M - 1), i) + if (m = e.src.charCodeAt(M - 1), i) return !0; - for (m = e.tokens.length, u ? (z = e.push("ordered_list_open", "ol", 1), O !== 1 && (z.attrs = [["start", O]])) : z = e.push("bullet_list_open", "ul", 1), z.map = p = [n, 0], z.markup = String.fromCharCode(g), y = n, q = !1, j = e.md.block.ruler.getRules("list"), x = e.parentType, e.parentType = "list"; y < r; ) { + for (g = e.tokens.length, u ? (z = e.push("ordered_list_open", "ol", 1), O !== 1 && (z.attrs = [["start", O]])) : z = e.push("bullet_list_open", "ul", 1), z.map = p = [n, 0], z.markup = String.fromCharCode(m), y = n, q = !1, j = e.md.block.ruler.getRules("list"), x = e.parentType, e.parentType = "list"; y < r; ) { for (T = M, b = e.eMarks[y], h = w = e.sCount[y] + M - (e.bMarks[n] + e.tShift[n]); T < b; ) { if (s = e.src.charCodeAt(T), s === 9) w += 4 - (w + e.bsCount[y]) % 4; @@ -30683,7 +30683,7 @@ var $ke = function(e, n, r, i) { break; T++; } - if (o = T, o >= b ? c = 1 : c = w - h, c > 4 && (c = 1), a = h + c, z = e.push("list_item_open", "li", 1), z.markup = String.fromCharCode(g), z.map = f = [n, 0], u && (z.info = e.src.slice(U, M - 1)), D = e.tight, P = e.tShift[n], v = e.sCount[n], S = e.listIndent, e.listIndent = e.blkIndent, e.blkIndent = a, e.tight = !0, e.tShift[n] = o - e.bMarks[n], e.sCount[n] = w, o >= b && e.isEmpty(n + 1) ? e.line = Math.min(e.line + 2, r) : e.md.block.tokenize(e, n, r, !0), (!e.tight || q) && (Oe = !1), q = e.line - n > 1 && e.isEmpty(e.line - 1), e.blkIndent = e.listIndent, e.listIndent = S, e.tShift[n] = P, e.sCount[n] = v, e.tight = D, z = e.push("list_item_close", "li", -1), z.markup = String.fromCharCode(g), y = n = e.line, f[1] = y, o = e.bMarks[n], y >= r || e.sCount[y] < e.blkIndent || e.sCount[n] - e.blkIndent >= 4) + if (o = T, o >= b ? c = 1 : c = w - h, c > 4 && (c = 1), a = h + c, z = e.push("list_item_open", "li", 1), z.markup = String.fromCharCode(m), z.map = f = [n, 0], u && (z.info = e.src.slice(U, M - 1)), D = e.tight, P = e.tShift[n], v = e.sCount[n], S = e.listIndent, e.listIndent = e.blkIndent, e.blkIndent = a, e.tight = !0, e.tShift[n] = o - e.bMarks[n], e.sCount[n] = w, o >= b && e.isEmpty(n + 1) ? e.line = Math.min(e.line + 2, r) : e.md.block.tokenize(e, n, r, !0), (!e.tight || q) && (Oe = !1), q = e.line - n > 1 && e.isEmpty(e.line - 1), e.blkIndent = e.listIndent, e.listIndent = S, e.tShift[n] = P, e.sCount[n] = v, e.tight = D, z = e.push("list_item_close", "li", -1), z.markup = String.fromCharCode(m), y = n = e.line, f[1] = y, o = e.bMarks[n], y >= r || e.sCount[y] < e.blkIndent || e.sCount[n] - e.blkIndent >= 4) break; for (A = !1, l = 0, d = j.length; l < d; l++) if (j[l](e, y, r, !0)) { @@ -30693,17 +30693,17 @@ var $ke = function(e, n, r, i) { if (A) break; if (u) { - if (M = Zy(e, y), M < 0) + if (M = Ly(e, y), M < 0) break; U = e.bMarks[y] + e.tShift[y]; - } else if (M = My(e, y), M < 0) + } else if (M = Zy(e, y), M < 0) break; - if (g !== e.src.charCodeAt(M - 1)) + if (m !== e.src.charCodeAt(M - 1)) break; } - return u ? z = e.push("ordered_list_close", "ol", -1) : z = e.push("bullet_list_close", "ul", -1), z.markup = String.fromCharCode(g), p[1] = y, e.line = y, e.parentType = x, Oe && Ake(e, m), !0; -}, Pke = ce.normalizeReference, Va = ce.isSpace, Tke = function(e, n, r, i) { - var s, o, l, a, c, h, u, f, d, p, m, g, O, b, y, w, S = 0, x = e.bMarks[n] + e.tShift[n], v = e.eMarks[n], P = n + 1; + return u ? z = e.push("ordered_list_close", "ol", -1) : z = e.push("bullet_list_close", "ul", -1), z.markup = String.fromCharCode(m), p[1] = y, e.line = y, e.parentType = x, Oe && $ke(e, g), !0; +}, Tke = ae.normalizeReference, Va = ae.isSpace, Qke = function(e, n, r, i) { + var s, o, l, a, c, h, u, f, d, p, g, m, O, b, y, w, S = 0, x = e.bMarks[n] + e.tShift[n], v = e.eMarks[n], P = n + 1; if (e.sCount[n] - e.blkIndent >= 4 || e.src.charCodeAt(x) !== 91) return !1; for (; ++x < v; ) @@ -30738,20 +30738,20 @@ var $ke = function(e, n, r, i) { S++; else if (!Va(s)) break; - if (m = e.md.helpers.parseLinkDestination(O, x, v), !m.ok || (c = e.md.normalizeLink(m.str), !e.md.validateLink(c))) + if (g = e.md.helpers.parseLinkDestination(O, x, v), !g.ok || (c = e.md.normalizeLink(g.str), !e.md.validateLink(c))) return !1; - for (x = m.pos, S += m.lines, o = x, l = S, g = x; x < v; x++) + for (x = g.pos, S += g.lines, o = x, l = S, m = x; x < v; x++) if (s = O.charCodeAt(x), s === 10) S++; else if (!Va(s)) break; - for (m = e.md.helpers.parseLinkTitle(O, x, v), x < v && g !== x && m.ok ? (w = m.str, x = m.pos, S += m.lines) : (w = "", x = o, S = l); x < v && (s = O.charCodeAt(x), !!Va(s)); ) + for (g = e.md.helpers.parseLinkTitle(O, x, v), x < v && m !== x && g.ok ? (w = g.str, x = g.pos, S += g.lines) : (w = "", x = o, S = l); x < v && (s = O.charCodeAt(x), !!Va(s)); ) x++; if (x < v && O.charCodeAt(x) !== 10 && w) for (w = "", x = o, S = l; x < v && (s = O.charCodeAt(x), !!Va(s)); ) x++; - return x < v && O.charCodeAt(x) !== 10 || (f = Pke(O.slice(1, d)), !f) ? !1 : (i || (typeof e.env.references > "u" && (e.env.references = {}), typeof e.env.references[f] > "u" && (e.env.references[f] = { title: w, href: c }), e.parentType = p, e.line = n + S + 1), !0); -}, Qke = [ + return x < v && O.charCodeAt(x) !== 10 || (f = Tke(O.slice(1, d)), !f) ? !1 : (i || (typeof e.env.references > "u" && (e.env.references = {}), typeof e.env.references[f] > "u" && (e.env.references[f] = { title: w, href: c }), e.parentType = p, e.line = n + S + 1), !0); +}, Eke = [ "address", "article", "aside", @@ -30814,18 +30814,18 @@ var $ke = function(e, n, r, i) { "tr", "track", "ul" -], cu = {}, Eke = "[a-zA-Z_:][a-zA-Z0-9:._-]*", Dke = "[^\"'=<>`\\x00-\\x20]+", Rke = "'[^']*'", Mke = '"[^"]*"', Zke = "(?:" + Dke + "|" + Rke + "|" + Mke + ")", Lke = "(?:\\s+" + Eke + "(?:\\s*=\\s*" + Zke + ")?)", dA = "<[A-Za-z][A-Za-z0-9\\-]*" + Lke + "*\\s*\\/?>", pA = "<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>", Ike = "|", Nke = "<[?][\\s\\S]*?[?]>", qke = "]*>", Bke = "", Yke = new RegExp("^(?:" + dA + "|" + pA + "|" + Ike + "|" + Nke + "|" + qke + "|" + Bke + ")"), Xke = new RegExp("^(?:" + dA + "|" + pA + ")"); -cu.HTML_TAG_RE = Yke; -cu.HTML_OPEN_CLOSE_TAG_RE = Xke; -var Wke = Qke, Vke = cu.HTML_OPEN_CLOSE_TAG_RE, Vi = [ +], hu = {}, Dke = "[a-zA-Z_:][a-zA-Z0-9:._-]*", Rke = "[^\"'=<>`\\x00-\\x20]+", Mke = "'[^']*'", Zke = '"[^"]*"', Lke = "(?:" + Rke + "|" + Mke + "|" + Zke + ")", Ike = "(?:\\s+" + Dke + "(?:\\s*=\\s*" + Lke + ")?)", pA = "<[A-Za-z][A-Za-z0-9\\-]*" + Ike + "*\\s*\\/?>", gA = "<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>", Nke = "|", qke = "<[?][\\s\\S]*?[?]>", Bke = "]*>", Yke = "", Xke = new RegExp("^(?:" + pA + "|" + gA + "|" + Nke + "|" + qke + "|" + Bke + "|" + Yke + ")"), Wke = new RegExp("^(?:" + pA + "|" + gA + ")"); +hu.HTML_TAG_RE = Xke; +hu.HTML_OPEN_CLOSE_TAG_RE = Wke; +var Vke = Eke, jke = hu.HTML_OPEN_CLOSE_TAG_RE, Vi = [ [/^<(script|pre|style|textarea)(?=(\s|>|$))/i, /<\/(script|pre|style|textarea)>/i, !0], [/^/, !0], [/^<\?/, /\?>/, !0], [/^/, !0], [/^/, !0], - [new RegExp("^|$))", "i"), /^$/, !0], - [new RegExp(Vke.source + "\\s*$"), /^$/, !1] -], jke = function(e, n, r, i) { + [new RegExp("^|$))", "i"), /^$/, !0], + [new RegExp(jke.source + "\\s*$"), /^$/, !1] +], zke = function(e, n, r, i) { var s, o, l, a, c = e.bMarks[n] + e.tShift[n], h = e.eMarks[n]; if (e.sCount[n] - e.blkIndent >= 4 || !e.md.options.html || e.src.charCodeAt(c) !== 60) return !1; @@ -30843,15 +30843,15 @@ var Wke = Qke, Vke = cu.HTML_OPEN_CLOSE_TAG_RE, Vi = [ } } return e.line = o, l = e.push("html_block", "", 0), l.map = [n, o], l.content = e.getLines(n, o, e.blkIndent, !0), !0; -}, Ly = ce.isSpace, zke = function(e, n, r, i) { +}, Iy = ae.isSpace, Fke = function(e, n, r, i) { var s, o, l, a, c = e.bMarks[n] + e.tShift[n], h = e.eMarks[n]; if (e.sCount[n] - e.blkIndent >= 4 || (s = e.src.charCodeAt(c), s !== 35 || c >= h)) return !1; for (o = 1, s = e.src.charCodeAt(++c); s === 35 && c < h && o <= 6; ) o++, s = e.src.charCodeAt(++c); - return o > 6 || c < h && !Ly(s) ? !1 : (i || (h = e.skipSpacesBack(h, c), l = e.skipCharsBack(h, 35, c), l > c && Ly(e.src.charCodeAt(l - 1)) && (h = l), e.line = n + 1, a = e.push("heading_open", "h" + String(o), 1), a.markup = "########".slice(0, o), a.map = [n, e.line], a = e.push("inline", "", 0), a.content = e.src.slice(c, h).trim(), a.map = [n, e.line], a.children = [], a = e.push("heading_close", "h" + String(o), -1), a.markup = "########".slice(0, o)), !0); -}, Fke = function(e, n, r) { - var i, s, o, l, a, c, h, u, f, d = n + 1, p, m = e.md.block.ruler.getRules("paragraph"); + return o > 6 || c < h && !Iy(s) ? !1 : (i || (h = e.skipSpacesBack(h, c), l = e.skipCharsBack(h, 35, c), l > c && Iy(e.src.charCodeAt(l - 1)) && (h = l), e.line = n + 1, a = e.push("heading_open", "h" + String(o), 1), a.markup = "########".slice(0, o), a.map = [n, e.line], a = e.push("inline", "", 0), a.content = e.src.slice(c, h).trim(), a.map = [n, e.line], a.children = [], a = e.push("heading_close", "h" + String(o), -1), a.markup = "########".slice(0, o)), !0); +}, Uke = function(e, n, r) { + var i, s, o, l, a, c, h, u, f, d = n + 1, p, g = e.md.block.ruler.getRules("paragraph"); if (e.sCount[n] - e.blkIndent >= 4) return !1; for (p = e.parentType, e.parentType = "paragraph"; d < r && !e.isEmpty(d); d++) @@ -30861,8 +30861,8 @@ var Wke = Qke, Vke = cu.HTML_OPEN_CLOSE_TAG_RE, Vi = [ break; } if (!(e.sCount[d] < 0)) { - for (s = !1, o = 0, l = m.length; o < l; o++) - if (m[o](e, d, r, !0)) { + for (s = !1, o = 0, l = g.length; o < l; o++) + if (g[o](e, d, r, !0)) { s = !0; break; } @@ -30871,7 +30871,7 @@ var Wke = Qke, Vke = cu.HTML_OPEN_CLOSE_TAG_RE, Vi = [ } } return u ? (i = e.getLines(n, d, e.blkIndent, !1).trim(), e.line = d + 1, a = e.push("heading_open", "h" + String(u), 1), a.markup = String.fromCharCode(f), a.map = [n, e.line], a = e.push("inline", "", 0), a.content = i, a.map = [n, e.line - 1], a.children = [], a = e.push("heading_close", "h" + String(u), -1), a.markup = String.fromCharCode(f), e.parentType = p, !0) : !1; -}, Uke = function(e, n) { +}, Gke = function(e, n) { var r, i, s, o, l, a, c = n + 1, h = e.md.block.ruler.getRules("paragraph"), u = e.lineMax; for (a = e.parentType, e.parentType = "paragraph"; c < u && !e.isEmpty(c); c++) if (!(e.sCount[c] - e.blkIndent > 3) && !(e.sCount[c] < 0)) { @@ -30884,12 +30884,12 @@ var Wke = Qke, Vke = cu.HTML_OPEN_CLOSE_TAG_RE, Vi = [ break; } return r = e.getLines(n, c, e.blkIndent, !1).trim(), e.line = c, l = e.push("paragraph_open", "p", 1), l.map = [n, e.line], l = e.push("inline", "", 0), l.content = r, l.map = [n, e.line], l.children = [], l = e.push("paragraph_close", "p", -1), e.parentType = a, !0; -}, mA = Qg, hu = ce.isSpace; +}, mA = Em, uu = ae.isSpace; function Hn(t, e, n, r) { var i, s, o, l, a, c, h, u; for (this.src = t, this.md = e, this.env = n, this.tokens = r, 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, u = !1, o = l = c = h = 0, a = s.length; l < a; l++) { if (i = s.charCodeAt(l), !u) - if (hu(i)) { + if (uu(i)) { c++, i === 9 ? h += 4 - h % 4 : h++; continue; } else @@ -30911,7 +30911,7 @@ Hn.prototype.skipEmptyLines = function(e) { return e; }; Hn.prototype.skipSpaces = function(e) { - for (var n, r = this.src.length; e < r && (n = this.src.charCodeAt(e), !!hu(n)); e++) + for (var n, r = this.src.length; e < r && (n = this.src.charCodeAt(e), !!uu(n)); e++) ; return e; }; @@ -30919,7 +30919,7 @@ Hn.prototype.skipSpacesBack = function(e, n) { if (e <= n) return e; for (; e > n; ) - if (!hu(this.src.charCodeAt(--e))) + if (!uu(this.src.charCodeAt(--e))) return e + 1; return e; }; @@ -30942,7 +30942,7 @@ Hn.prototype.getLines = function(e, n, r, i) { return ""; for (h = new Array(n - e), s = 0; f < n; f++, s++) { for (o = 0, u = a = this.bMarks[f], f + 1 < n || i ? c = this.eMarks[f] + 1 : c = this.eMarks[f]; a < c && o < r; ) { - if (l = this.src.charCodeAt(a), hu(l)) + if (l = this.src.charCodeAt(a), uu(l)) l === 9 ? o += 4 - (o + this.bsCount[f]) % 4 : o++; else if (a - u < this.tShift[f]) o++; @@ -30955,25 +30955,25 @@ Hn.prototype.getLines = function(e, n, r, i) { return h.join(""); }; Hn.prototype.Token = mA; -var Gke = Hn, Hke = Tg, ja = [ - ["table", kke, ["paragraph", "reference"]], - ["code", xke], - ["fence", vke, ["paragraph", "reference", "blockquote", "list"]], - ["blockquote", Ske, ["paragraph", "reference", "blockquote", "list"]], - ["hr", Cke, ["paragraph", "reference", "blockquote", "list"]], - ["list", $ke, ["paragraph", "reference", "blockquote"]], - ["reference", Tke], - ["html_block", jke, ["paragraph", "reference", "blockquote"]], - ["heading", zke, ["paragraph", "reference", "blockquote"]], - ["lheading", Fke], - ["paragraph", Uke] +var Hke = Hn, Kke = Qm, ja = [ + ["table", xke, ["paragraph", "reference"]], + ["code", vke], + ["fence", Ske, ["paragraph", "reference", "blockquote", "list"]], + ["blockquote", _ke, ["paragraph", "reference", "blockquote", "list"]], + ["hr", Ake, ["paragraph", "reference", "blockquote", "list"]], + ["list", Pke, ["paragraph", "reference", "blockquote"]], + ["reference", Qke], + ["html_block", zke, ["paragraph", "reference", "blockquote"]], + ["heading", Fke, ["paragraph", "reference", "blockquote"]], + ["lheading", Uke], + ["paragraph", Gke] ]; -function uu() { - this.ruler = new Hke(); +function fu() { + this.ruler = new Kke(); for (var t = 0; t < ja.length; t++) this.ruler.push(ja[t][0], ja[t][1], { alt: (ja[t][2] || []).slice() }); } -uu.prototype.tokenize = function(t, e, n) { +fu.prototype.tokenize = function(t, e, n) { for (var r, i, s = this.ruler.getRules(""), o = s.length, l = e, a = !1, c = t.md.options.maxNesting; l < n && (t.line = l = t.skipEmptyLines(l), !(l >= n || t.sCount[l] < t.blkIndent)); ) { if (t.level >= c) { t.line = n; @@ -30984,13 +30984,13 @@ uu.prototype.tokenize = function(t, e, n) { t.tight = !a, t.isEmpty(t.line - 1) && (a = !0), l = t.line, l < n && t.isEmpty(l) && (a = !0, l++, t.line = l); } }; -uu.prototype.parse = function(t, e, n, r) { +fu.prototype.parse = function(t, e, n, r) { var i; !t || (i = new this.State(t, e, n, r), this.tokenize(i, i.line, i.lineMax)); }; -uu.prototype.State = Gke; -var Kke = uu; -function Jke(t) { +fu.prototype.State = Hke; +var Jke = fu; +function exe(t) { switch (t) { case 10: case 33: @@ -31020,11 +31020,11 @@ function Jke(t) { return !1; } } -var exe = function(e, n) { - for (var r = e.pos; r < e.posMax && !Jke(e.src.charCodeAt(r)); ) +var txe = function(e, n) { + for (var r = e.pos; r < e.posMax && !exe(e.src.charCodeAt(r)); ) r++; return r === e.pos ? !1 : (n || (e.pending += e.src.slice(e.pos, r)), e.pos = r, !0); -}, txe = ce.isSpace, nxe = function(e, n) { +}, nxe = ae.isSpace, rxe = function(e, n) { var r, i, s, o = e.pos; if (e.src.charCodeAt(o) !== 10) return !1; @@ -31038,30 +31038,30 @@ var exe = function(e, n) { e.pending = e.pending.slice(0, -1), e.push("softbreak", "br", 0); else e.push("softbreak", "br", 0); - for (o++; o < i && txe(e.src.charCodeAt(o)); ) + for (o++; o < i && nxe(e.src.charCodeAt(o)); ) o++; return e.pos = o, !0; -}, rxe = ce.isSpace, Dg = []; -for (var Iy = 0; Iy < 256; Iy++) - Dg.push(0); +}, ixe = ae.isSpace, Rm = []; +for (var Ny = 0; Ny < 256; Ny++) + Rm.push(0); "\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(t) { - Dg[t.charCodeAt(0)] = 1; + Rm[t.charCodeAt(0)] = 1; }); -var ixe = function(e, n) { +var sxe = function(e, n) { var r, i = e.pos, s = e.posMax; if (e.src.charCodeAt(i) !== 92) return !1; if (i++, i < s) { - if (r = e.src.charCodeAt(i), r < 256 && Dg[r] !== 0) + if (r = e.src.charCodeAt(i), r < 256 && Rm[r] !== 0) return n || (e.pending += e.src[i]), e.pos += 2, !0; if (r === 10) { - for (n || e.push("hardbreak", "br", 0), i++; i < s && (r = e.src.charCodeAt(i), !!rxe(r)); ) + for (n || e.push("hardbreak", "br", 0), i++; i < s && (r = e.src.charCodeAt(i), !!ixe(r)); ) i++; return e.pos = i, !0; } } return n || (e.pending += "\\"), e.pos++, !0; -}, sxe = function(e, n) { +}, oxe = function(e, n) { var r, i, s, o, l, a, c, h, u = e.pos, f = e.src.charCodeAt(u); if (f !== 96) return !1; @@ -31077,8 +31077,8 @@ var ixe = function(e, n) { e.backticks[h] = l; } return e.backticksScanned = !0, n || (e.pending += s), e.pos += c, !0; -}, fu = {}; -fu.tokenize = function(e, n) { +}, du = {}; +du.tokenize = function(e, n) { var r, i, s, o, l, a = e.pos, c = e.src.charCodeAt(a); if (n || c !== 126 || (i = e.scanDelims(e.pos, !0), o = i.length, l = String.fromCharCode(c), o < 2)) return !1; @@ -31093,7 +31093,7 @@ fu.tokenize = function(e, n) { }); return e.pos += i.length, !0; }; -function Ny(t, e) { +function qy(t, e) { var n, r, i, s, o, l = [], a = e.length; for (n = 0; n < a; n++) i = e[n], i.marker === 126 && i.end !== -1 && (s = e[i.end], o = t.tokens[i.token], o.type = "s_open", o.tag = "s", o.nesting = 1, o.markup = "~~", o.content = "", o = t.tokens[s.token], o.type = "s_close", o.tag = "s", o.nesting = -1, o.markup = "~~", o.content = "", t.tokens[s.token - 1].type === "text" && t.tokens[s.token - 1].content === "~" && l.push(s.token - 1)); @@ -31103,13 +31103,13 @@ function Ny(t, e) { r--, n !== r && (o = t.tokens[r], t.tokens[r] = t.tokens[n], t.tokens[n] = o); } } -fu.postProcess = function(e) { +du.postProcess = function(e) { var n, r = e.tokens_meta, i = e.tokens_meta.length; - for (Ny(e, e.delimiters), n = 0; n < i; n++) - r[n] && r[n].delimiters && Ny(e, r[n].delimiters); + for (qy(e, e.delimiters), n = 0; n < i; n++) + r[n] && r[n].delimiters && qy(e, r[n].delimiters); }; -var du = {}; -du.tokenize = function(e, n) { +var pu = {}; +pu.tokenize = function(e, n) { var r, i, s, o = e.pos, l = e.src.charCodeAt(o); if (n || l !== 95 && l !== 42) return !1; @@ -31124,44 +31124,44 @@ du.tokenize = function(e, n) { }); return e.pos += i.length, !0; }; -function qy(t, e) { +function By(t, e) { var n, r, i, s, o, l, a = e.length; for (n = a - 1; n >= 0; n--) r = e[n], !(r.marker !== 95 && r.marker !== 42) && r.end !== -1 && (i = e[r.end], l = n > 0 && e[n - 1].end === r.end + 1 && e[n - 1].marker === r.marker && e[n - 1].token === r.token - 1 && e[r.end + 1].token === i.token + 1, o = String.fromCharCode(r.marker), s = t.tokens[r.token], s.type = l ? "strong_open" : "em_open", s.tag = l ? "strong" : "em", s.nesting = 1, s.markup = l ? o + o : o, s.content = "", s = t.tokens[i.token], s.type = l ? "strong_close" : "em_close", s.tag = l ? "strong" : "em", s.nesting = -1, s.markup = l ? o + o : o, s.content = "", l && (t.tokens[e[n - 1].token].content = "", t.tokens[e[r.end + 1].token].content = "", n--)); } -du.postProcess = function(e) { +pu.postProcess = function(e) { var n, r = e.tokens_meta, i = e.tokens_meta.length; - for (qy(e, e.delimiters), n = 0; n < i; n++) - r[n] && r[n].delimiters && qy(e, r[n].delimiters); + for (By(e, e.delimiters), n = 0; n < i; n++) + r[n] && r[n].delimiters && By(e, r[n].delimiters); }; -var oxe = ce.normalizeReference, If = ce.isSpace, lxe = function(e, n) { - var r, i, s, o, l, a, c, h, u, f = "", d = "", p = e.pos, m = e.posMax, g = e.pos, O = !0; +var lxe = ae.normalizeReference, If = ae.isSpace, axe = function(e, n) { + var r, i, s, o, l, a, c, h, u, f = "", d = "", p = e.pos, g = e.posMax, m = e.pos, O = !0; if (e.src.charCodeAt(e.pos) !== 91 || (l = e.pos + 1, o = e.md.helpers.parseLinkLabel(e, e.pos, !0), o < 0)) return !1; - if (a = o + 1, a < m && e.src.charCodeAt(a) === 40) { - for (O = !1, a++; a < m && (i = e.src.charCodeAt(a), !(!If(i) && i !== 10)); a++) + if (a = o + 1, a < g && e.src.charCodeAt(a) === 40) { + for (O = !1, a++; a < g && (i = e.src.charCodeAt(a), !(!If(i) && i !== 10)); a++) ; - if (a >= m) + if (a >= g) return !1; - if (g = a, c = e.md.helpers.parseLinkDestination(e.src, a, e.posMax), c.ok) { - for (f = e.md.normalizeLink(c.str), e.md.validateLink(f) ? a = c.pos : f = "", g = a; a < m && (i = e.src.charCodeAt(a), !(!If(i) && i !== 10)); a++) + if (m = a, c = e.md.helpers.parseLinkDestination(e.src, a, e.posMax), c.ok) { + for (f = e.md.normalizeLink(c.str), e.md.validateLink(f) ? a = c.pos : f = "", m = a; a < g && (i = e.src.charCodeAt(a), !(!If(i) && i !== 10)); a++) ; - if (c = e.md.helpers.parseLinkTitle(e.src, a, e.posMax), a < m && g !== a && c.ok) - for (d = c.str, a = c.pos; a < m && (i = e.src.charCodeAt(a), !(!If(i) && i !== 10)); a++) + if (c = e.md.helpers.parseLinkTitle(e.src, a, e.posMax), a < g && m !== a && c.ok) + for (d = c.str, a = c.pos; a < g && (i = e.src.charCodeAt(a), !(!If(i) && i !== 10)); a++) ; } - (a >= m || e.src.charCodeAt(a) !== 41) && (O = !0), a++; + (a >= g || e.src.charCodeAt(a) !== 41) && (O = !0), a++; } if (O) { if (typeof e.env.references > "u") return !1; - if (a < m && e.src.charCodeAt(a) === 91 ? (g = a + 1, a = e.md.helpers.parseLinkLabel(e, a), a >= 0 ? s = e.src.slice(g, a++) : a = o + 1) : a = o + 1, s || (s = e.src.slice(l, o)), h = e.env.references[oxe(s)], !h) + if (a < g && e.src.charCodeAt(a) === 91 ? (m = a + 1, a = e.md.helpers.parseLinkLabel(e, a), a >= 0 ? s = e.src.slice(m, a++) : a = o + 1) : a = o + 1, s || (s = e.src.slice(l, o)), h = e.env.references[lxe(s)], !h) return e.pos = p, !1; f = h.href, d = h.title; } - return n || (e.pos = l, e.posMax = o, u = e.push("link_open", "a", 1), u.attrs = r = [["href", f]], d && r.push(["title", d]), e.md.inline.tokenize(e), u = e.push("link_close", "a", -1)), e.pos = a, e.posMax = m, !0; -}, axe = ce.normalizeReference, Nf = ce.isSpace, cxe = function(e, n) { - var r, i, s, o, l, a, c, h, u, f, d, p, m, g = "", O = e.pos, b = e.posMax; + return n || (e.pos = l, e.posMax = o, u = e.push("link_open", "a", 1), u.attrs = r = [["href", f]], d && r.push(["title", d]), e.md.inline.tokenize(e), u = e.push("link_close", "a", -1)), e.pos = a, e.posMax = g, !0; +}, cxe = ae.normalizeReference, Nf = ae.isSpace, hxe = function(e, n) { + var r, i, s, o, l, a, c, h, u, f, d, p, g, m = "", O = e.pos, b = e.posMax; if (e.src.charCodeAt(e.pos) !== 33 || e.src.charCodeAt(e.pos + 1) !== 91 || (a = e.pos + 2, l = e.md.helpers.parseLinkLabel(e, e.pos + 1, !1), l < 0)) return !1; if (c = l + 1, c < b && e.src.charCodeAt(c) === 40) { @@ -31169,9 +31169,9 @@ var oxe = ce.normalizeReference, If = ce.isSpace, lxe = function(e, n) { ; if (c >= b) return !1; - for (m = c, u = e.md.helpers.parseLinkDestination(e.src, c, e.posMax), u.ok && (g = e.md.normalizeLink(u.str), e.md.validateLink(g) ? c = u.pos : g = ""), m = c; c < b && (i = e.src.charCodeAt(c), !(!Nf(i) && i !== 10)); c++) + for (g = c, u = e.md.helpers.parseLinkDestination(e.src, c, e.posMax), u.ok && (m = e.md.normalizeLink(u.str), e.md.validateLink(m) ? c = u.pos : m = ""), g = c; c < b && (i = e.src.charCodeAt(c), !(!Nf(i) && i !== 10)); c++) ; - if (u = e.md.helpers.parseLinkTitle(e.src, c, e.posMax), c < b && m !== c && u.ok) + if (u = e.md.helpers.parseLinkTitle(e.src, c, e.posMax), c < b && g !== c && u.ok) for (f = u.str, c = u.pos; c < b && (i = e.src.charCodeAt(c), !(!Nf(i) && i !== 10)); c++) ; else @@ -31182,17 +31182,17 @@ var oxe = ce.normalizeReference, If = ce.isSpace, lxe = function(e, n) { } else { if (typeof e.env.references > "u") return !1; - if (c < b && e.src.charCodeAt(c) === 91 ? (m = c + 1, c = e.md.helpers.parseLinkLabel(e, c), c >= 0 ? o = e.src.slice(m, c++) : c = l + 1) : c = l + 1, o || (o = e.src.slice(a, l)), h = e.env.references[axe(o)], !h) + if (c < b && e.src.charCodeAt(c) === 91 ? (g = c + 1, c = e.md.helpers.parseLinkLabel(e, c), c >= 0 ? o = e.src.slice(g, c++) : c = l + 1) : c = l + 1, o || (o = e.src.slice(a, l)), h = e.env.references[cxe(o)], !h) return e.pos = O, !1; - g = h.href, f = h.title; + m = h.href, f = h.title; } return n || (s = e.src.slice(a, l), e.md.inline.parse( s, e.md, e.env, p = [] - ), d = e.push("image", "img", 0), d.attrs = r = [["src", g], ["alt", ""]], d.children = p, d.content = s, f && r.push(["title", f])), e.pos = c, e.posMax = b, !0; -}, hxe = /^([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])?)*)$/, uxe = /^([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)$/, fxe = function(e, n) { + ), d = e.push("image", "img", 0), d.attrs = r = [["src", m], ["alt", ""]], d.children = p, d.content = s, f && r.push(["title", f])), e.pos = c, e.posMax = b, !0; +}, uxe = /^([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])?)*)$/, fxe = /^([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)$/, dxe = function(e, n) { var r, i, s, o, l, a, c = e.pos; if (e.src.charCodeAt(c) !== 60) return !1; @@ -31202,29 +31202,29 @@ var oxe = ce.normalizeReference, If = ce.isSpace, lxe = function(e, n) { if (o === 62) break; } - return r = e.src.slice(l + 1, c), uxe.test(r) ? (i = e.md.normalizeLink(r), e.md.validateLink(i) ? (n || (s = e.push("link_open", "a", 1), s.attrs = [["href", i]], s.markup = "autolink", s.info = "auto", s = e.push("text", "", 0), s.content = e.md.normalizeLinkText(r), s = e.push("link_close", "a", -1), s.markup = "autolink", s.info = "auto"), e.pos += r.length + 2, !0) : !1) : hxe.test(r) ? (i = e.md.normalizeLink("mailto:" + r), e.md.validateLink(i) ? (n || (s = e.push("link_open", "a", 1), s.attrs = [["href", i]], s.markup = "autolink", s.info = "auto", s = e.push("text", "", 0), s.content = e.md.normalizeLinkText(r), s = e.push("link_close", "a", -1), s.markup = "autolink", s.info = "auto"), e.pos += r.length + 2, !0) : !1) : !1; -}, dxe = cu.HTML_TAG_RE; -function pxe(t) { + return r = e.src.slice(l + 1, c), fxe.test(r) ? (i = e.md.normalizeLink(r), e.md.validateLink(i) ? (n || (s = e.push("link_open", "a", 1), s.attrs = [["href", i]], s.markup = "autolink", s.info = "auto", s = e.push("text", "", 0), s.content = e.md.normalizeLinkText(r), s = e.push("link_close", "a", -1), s.markup = "autolink", s.info = "auto"), e.pos += r.length + 2, !0) : !1) : uxe.test(r) ? (i = e.md.normalizeLink("mailto:" + r), e.md.validateLink(i) ? (n || (s = e.push("link_open", "a", 1), s.attrs = [["href", i]], s.markup = "autolink", s.info = "auto", s = e.push("text", "", 0), s.content = e.md.normalizeLinkText(r), s = e.push("link_close", "a", -1), s.markup = "autolink", s.info = "auto"), e.pos += r.length + 2, !0) : !1) : !1; +}, pxe = hu.HTML_TAG_RE; +function gxe(t) { var e = t | 32; return e >= 97 && e <= 122; } var mxe = function(e, n) { var r, i, s, o, l = e.pos; - return !e.md.options.html || (s = e.posMax, e.src.charCodeAt(l) !== 60 || l + 2 >= s) || (r = e.src.charCodeAt(l + 1), r !== 33 && r !== 63 && r !== 47 && !pxe(r)) || (i = e.src.slice(l).match(dxe), !i) ? !1 : (n || (o = e.push("html_inline", "", 0), o.content = e.src.slice(l, l + i[0].length)), e.pos += i[0].length, !0); -}, By = $g.exports, gxe = ce.has, Oxe = ce.isValidEntityCode, Yy = ce.fromCodePoint, bxe = /^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i, yxe = /^&([a-z][a-z0-9]{1,31});/i, wxe = function(e, n) { + return !e.md.options.html || (s = e.posMax, e.src.charCodeAt(l) !== 60 || l + 2 >= s) || (r = e.src.charCodeAt(l + 1), r !== 33 && r !== 63 && r !== 47 && !gxe(r)) || (i = e.src.slice(l).match(pxe), !i) ? !1 : (n || (o = e.push("html_inline", "", 0), o.content = e.src.slice(l, l + i[0].length)), e.pos += i[0].length, !0); +}, Yy = Pm.exports, Oxe = ae.has, bxe = ae.isValidEntityCode, Xy = ae.fromCodePoint, yxe = /^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i, wxe = /^&([a-z][a-z0-9]{1,31});/i, kxe = function(e, n) { var r, i, s, o = e.pos, l = e.posMax; if (e.src.charCodeAt(o) !== 38) return !1; if (o + 1 < l) { if (r = e.src.charCodeAt(o + 1), r === 35) { - if (s = e.src.slice(o).match(bxe), s) - return n || (i = s[1][0].toLowerCase() === "x" ? parseInt(s[1].slice(1), 16) : parseInt(s[1], 10), e.pending += Oxe(i) ? Yy(i) : Yy(65533)), e.pos += s[0].length, !0; - } else if (s = e.src.slice(o).match(yxe), s && gxe(By, s[1])) - return n || (e.pending += By[s[1]]), e.pos += s[0].length, !0; + if (s = e.src.slice(o).match(yxe), s) + return n || (i = s[1][0].toLowerCase() === "x" ? parseInt(s[1].slice(1), 16) : parseInt(s[1], 10), e.pending += bxe(i) ? Xy(i) : Xy(65533)), e.pos += s[0].length, !0; + } else if (s = e.src.slice(o).match(wxe), s && Oxe(Yy, s[1])) + return n || (e.pending += Yy[s[1]]), e.pos += s[0].length, !0; } return n || (e.pending += "&"), e.pos++, !0; }; -function Xy(t, e) { +function Wy(t, e) { var n, r, i, s, o, l, a, c, h = {}, u = e.length; if (!!u) { var f = 0, d = -2, p = []; @@ -31239,65 +31239,65 @@ function Xy(t, e) { } } } -var kxe = function(e) { +var xxe = function(e) { var n, r = e.tokens_meta, i = e.tokens_meta.length; - for (Xy(e, e.delimiters), n = 0; n < i; n++) - r[n] && r[n].delimiters && Xy(e, r[n].delimiters); -}, xxe = function(e) { + for (Wy(e, e.delimiters), n = 0; n < i; n++) + r[n] && r[n].delimiters && Wy(e, r[n].delimiters); +}, vxe = function(e) { var n, r, i = 0, s = e.tokens, o = e.tokens.length; for (n = r = 0; n < o; n++) s[n].nesting < 0 && i--, s[n].level = i, s[n].nesting > 0 && i++, s[n].type === "text" && n + 1 < o && s[n + 1].type === "text" ? s[n + 1].content = s[n].content + s[n + 1].content : (n !== r && (s[r] = s[n]), r++); n !== r && (s.length = r); -}, Rg = Qg, Wy = ce.isWhiteSpace, Vy = ce.isPunctChar, jy = ce.isMdAsciiPunct; -function Hl(t, e, n, r) { +}, Mm = Em, Vy = ae.isWhiteSpace, jy = ae.isPunctChar, zy = ae.isMdAsciiPunct; +function Gl(t, e, n, r) { this.src = t, this.env = n, this.md = e, this.tokens = r, this.tokens_meta = Array(r.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; } -Hl.prototype.pushPending = function() { - var t = new Rg("text", "", 0); +Gl.prototype.pushPending = function() { + var t = new Mm("text", "", 0); return t.content = this.pending, t.level = this.pendingLevel, this.tokens.push(t), this.pending = "", t; }; -Hl.prototype.push = function(t, e, n) { +Gl.prototype.push = function(t, e, n) { this.pending && this.pushPending(); - var r = new Rg(t, e, n), i = null; + var r = new Mm(t, e, n), i = null; return n < 0 && (this.level--, this.delimiters = this._prev_delimiters.pop()), r.level = this.level, n > 0 && (this.level++, this._prev_delimiters.push(this.delimiters), this.delimiters = [], i = { delimiters: this.delimiters }), this.pendingLevel = this.level, this.tokens.push(r), this.tokens_meta.push(i), r; }; -Hl.prototype.scanDelims = function(t, e) { - var n = t, r, i, s, o, l, a, c, h, u, f = !0, d = !0, p = this.posMax, m = this.src.charCodeAt(t); - for (r = t > 0 ? this.src.charCodeAt(t - 1) : 32; n < p && this.src.charCodeAt(n) === m; ) +Gl.prototype.scanDelims = function(t, e) { + var n = t, r, i, s, o, l, a, c, h, u, f = !0, d = !0, p = this.posMax, g = this.src.charCodeAt(t); + for (r = t > 0 ? this.src.charCodeAt(t - 1) : 32; n < p && this.src.charCodeAt(n) === g; ) n++; - return s = n - t, i = n < p ? this.src.charCodeAt(n) : 32, c = jy(r) || Vy(String.fromCharCode(r)), u = jy(i) || Vy(String.fromCharCode(i)), a = Wy(r), h = Wy(i), h ? f = !1 : u && (a || c || (f = !1)), a ? d = !1 : c && (h || u || (d = !1)), e ? (o = f, l = d) : (o = f && (!d || c), l = d && (!f || u)), { + return s = n - t, i = n < p ? this.src.charCodeAt(n) : 32, c = zy(r) || jy(String.fromCharCode(r)), u = zy(i) || jy(String.fromCharCode(i)), a = Vy(r), h = Vy(i), h ? f = !1 : u && (a || c || (f = !1)), a ? d = !1 : c && (h || u || (d = !1)), e ? (o = f, l = d) : (o = f && (!d || c), l = d && (!f || u)), { can_open: o, can_close: l, length: s }; }; -Hl.prototype.Token = Rg; -var vxe = Hl, zy = Tg, qf = [ - ["text", exe], - ["newline", nxe], - ["escape", ixe], - ["backticks", sxe], - ["strikethrough", fu.tokenize], - ["emphasis", du.tokenize], - ["link", lxe], - ["image", cxe], - ["autolink", fxe], +Gl.prototype.Token = Mm; +var Sxe = Gl, Fy = Qm, qf = [ + ["text", txe], + ["newline", rxe], + ["escape", sxe], + ["backticks", oxe], + ["strikethrough", du.tokenize], + ["emphasis", pu.tokenize], + ["link", axe], + ["image", hxe], + ["autolink", dxe], ["html_inline", mxe], - ["entity", wxe] + ["entity", kxe] ], Bf = [ - ["balance_pairs", kxe], - ["strikethrough", fu.postProcess], - ["emphasis", du.postProcess], - ["text_collapse", xxe] + ["balance_pairs", xxe], + ["strikethrough", du.postProcess], + ["emphasis", pu.postProcess], + ["text_collapse", vxe] ]; -function Kl() { +function Hl() { var t; - for (this.ruler = new zy(), t = 0; t < qf.length; t++) + for (this.ruler = new Fy(), t = 0; t < qf.length; t++) this.ruler.push(qf[t][0], qf[t][1]); - for (this.ruler2 = new zy(), t = 0; t < Bf.length; t++) + for (this.ruler2 = new Fy(), t = 0; t < Bf.length; t++) this.ruler2.push(Bf[t][0], Bf[t][1]); } -Kl.prototype.skipToken = function(t) { +Hl.prototype.skipToken = function(t) { var e, n, r = t.pos, i = this.ruler.getRules(""), s = i.length, o = t.md.options.maxNesting, l = t.cache; if (typeof l[r] < "u") { t.pos = l[r]; @@ -31310,7 +31310,7 @@ Kl.prototype.skipToken = function(t) { t.pos = t.posMax; e || t.pos++, l[r] = t.pos; }; -Kl.prototype.tokenize = function(t) { +Hl.prototype.tokenize = function(t) { for (var e, n, r = this.ruler.getRules(""), i = r.length, s = t.posMax, o = t.md.options.maxNesting; t.pos < s; ) { if (t.level < o) for (n = 0; n < i && (e = r[n](t, !1), !e); n++) @@ -31324,22 +31324,22 @@ Kl.prototype.tokenize = function(t) { } t.pending && t.pushPending(); }; -Kl.prototype.parse = function(t, e, n, r) { +Hl.prototype.parse = function(t, e, n, r) { var i, s, o, l = new this.State(t, e, n, r); for (this.tokenize(l), s = this.ruler2.getRules(""), o = s.length, i = 0; i < o; i++) s[i](l); }; -Kl.prototype.State = vxe; -var Sxe = Kl, Yf, Fy; -function _xe() { - return Fy || (Fy = 1, Yf = function(t) { +Hl.prototype.State = Sxe; +var _xe = Hl, Yf, Uy; +function Cxe() { + return Uy || (Uy = 1, Yf = function(t) { var e = {}; - e.src_Any = lA().source, e.src_Cc = aA().source, e.src_Z = cA().source, e.src_P = Pg.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 = aA().source, e.src_Cc = cA().source, e.src_Z = hA().source, e.src_P = Tm.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 n = "[><\uFF5C]"; return e.src_pseudo_letter = "(?:(?!" + n + "|" + 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 = "(?=$|" + n + "|" + e.src_ZPCc + ")(?!-|_|:\\d|\\.-|\\.(?!$|" + e.src_ZPCc + "))", e.src_path = "(?:[/?#](?:(?!" + e.src_ZCc + "|" + n + `|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!` + 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 = "(^|" + n + '|"|\\(|' + 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; }), Yf; } -function Bp(t) { +function Yp(t) { var e = Array.prototype.slice.call(arguments, 1); return e.forEach(function(n) { !n || Object.keys(n).forEach(function(r) { @@ -31347,35 +31347,35 @@ function Bp(t) { }); }), t; } -function pu(t) { +function gu(t) { return Object.prototype.toString.call(t); } -function Cxe(t) { - return pu(t) === "[object String]"; -} function Axe(t) { - return pu(t) === "[object Object]"; + return gu(t) === "[object String]"; } function $xe(t) { - return pu(t) === "[object RegExp]"; -} -function Uy(t) { - return pu(t) === "[object Function]"; + return gu(t) === "[object Object]"; } function Pxe(t) { + return gu(t) === "[object RegExp]"; +} +function Gy(t) { + return gu(t) === "[object Function]"; +} +function Txe(t) { return t.replace(/[.?*+^$[\]\\(){}|-]/g, "\\$&"); } -var gA = { +var OA = { fuzzyLink: !0, fuzzyEmail: !0, fuzzyIP: !1 }; -function Txe(t) { +function Qxe(t) { return Object.keys(t || {}).reduce(function(e, n) { - return e || gA.hasOwnProperty(n); + return e || OA.hasOwnProperty(n); }, !1); } -var Qxe = { +var Exe = { "http:": { validate: function(t, e, n) { var r = t.slice(e); @@ -31405,24 +31405,24 @@ var Qxe = { )), n.re.mailto.test(r) ? r.match(n.re.mailto)[0].length : 0; } } -}, Exe = "a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]", Dxe = "biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|\u0440\u0444".split("|"); -function Rxe(t) { +}, Dxe = "a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]", Rxe = "biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|\u0440\u0444".split("|"); +function Mxe(t) { t.__index__ = -1, t.__text_cache__ = ""; } -function Mxe(t) { +function Zxe(t) { return function(e, n) { var r = e.slice(n); return t.test(r) ? r.match(t)[0].length : 0; }; } -function Gy() { +function Hy() { return function(t, e) { e.normalize(t); }; } -function gh(t) { - var e = t.re = _xe()(t.__opts__), n = t.__tlds__.slice(); - t.onCompile(), t.__tlds_replaced__ || n.push(Exe), n.push(e.src_xn), e.src_tlds = n.join("|"); +function Oh(t) { + var e = t.re = Cxe()(t.__opts__), n = t.__tlds__.slice(); + t.onCompile(), t.__tlds_replaced__ || n.push(Dxe), n.push(e.src_xn), e.src_tlds = n.join("|"); function r(l) { return l.replace("%TLDS%", e.src_tlds); } @@ -31436,11 +31436,11 @@ function gh(t) { var a = t.__schemas__[l]; if (a !== null) { var c = { validate: null, link: null }; - if (t.__compiled__[l] = c, Axe(a)) { - $xe(a.validate) ? c.validate = Mxe(a.validate) : Uy(a.validate) ? c.validate = a.validate : s(l, a), Uy(a.normalize) ? c.normalize = a.normalize : a.normalize ? s(l, a) : c.normalize = Gy(); + if (t.__compiled__[l] = c, $xe(a)) { + Pxe(a.validate) ? c.validate = Zxe(a.validate) : Gy(a.validate) ? c.validate = a.validate : s(l, a), Gy(a.normalize) ? c.normalize = a.normalize : a.normalize ? s(l, a) : c.normalize = Hy(); return; } - if (Cxe(a)) { + if (Axe(a)) { i.push(l); return; } @@ -31448,33 +31448,33 @@ function gh(t) { } }), i.forEach(function(l) { !t.__compiled__[t.__schemas__[l]] || (t.__compiled__[l].validate = t.__compiled__[t.__schemas__[l]].validate, t.__compiled__[l].normalize = t.__compiled__[t.__schemas__[l]].normalize); - }), t.__compiled__[""] = { validate: null, normalize: Gy() }; + }), t.__compiled__[""] = { validate: null, normalize: Hy() }; var o = Object.keys(t.__compiled__).filter(function(l) { return l.length > 0 && t.__compiled__[l]; - }).map(Pxe).join("|"); + }).map(Txe).join("|"); t.re.schema_test = RegExp("(^|(?!_)(?:[><\uFF5C]|" + e.src_ZPCc + "))(" + o + ")", "i"), t.re.schema_search = RegExp("(^|(?!_)(?:[><\uFF5C]|" + e.src_ZPCc + "))(" + o + ")", "ig"), t.re.pretest = RegExp( "(" + t.re.schema_test.source + ")|(" + t.re.host_fuzzy_test.source + ")|@", "i" - ), Rxe(t); + ), Mxe(t); } -function Zxe(t, e) { +function Lxe(t, e) { var n = t.__index__, r = t.__last_index__, i = t.__text_cache__.slice(n, r); this.schema = t.__schema__.toLowerCase(), this.index = n + e, this.lastIndex = r + e, this.raw = i, this.text = i, this.url = i; } -function Hy(t, e) { - var n = new Zxe(t, e); +function Ky(t, e) { + var n = new Lxe(t, e); return t.__compiled__[n.schema].normalize(n, t), n; } function Kt(t, e) { if (!(this instanceof Kt)) return new Kt(t, e); - e || Txe(t) && (e = t, t = {}), this.__opts__ = Bp({}, gA, e), this.__index__ = -1, this.__last_index__ = -1, this.__schema__ = "", this.__text_cache__ = "", this.__schemas__ = Bp({}, Qxe, t), this.__compiled__ = {}, this.__tlds__ = Dxe, this.__tlds_replaced__ = !1, this.re = {}, gh(this); + e || Qxe(t) && (e = t, t = {}), this.__opts__ = Yp({}, OA, e), this.__index__ = -1, this.__last_index__ = -1, this.__schema__ = "", this.__text_cache__ = "", this.__schemas__ = Yp({}, Exe, t), this.__compiled__ = {}, this.__tlds__ = Rxe, this.__tlds_replaced__ = !1, this.re = {}, Oh(this); } Kt.prototype.add = function(e, n) { - return this.__schemas__[e] = n, gh(this), this; + return this.__schemas__[e] = n, Oh(this), this; }; Kt.prototype.set = function(e) { - return this.__opts__ = Bp(this.__opts__, e), this; + return this.__opts__ = Yp(this.__opts__, e), this; }; Kt.prototype.test = function(e) { if (this.__text_cache__ = e, this.__index__ = -1, !e.length) @@ -31497,45 +31497,45 @@ Kt.prototype.testSchemaAt = function(e, n, r) { }; Kt.prototype.match = function(e) { var n = 0, r = []; - this.__index__ >= 0 && this.__text_cache__ === e && (r.push(Hy(this, n)), n = this.__last_index__); + this.__index__ >= 0 && this.__text_cache__ === e && (r.push(Ky(this, n)), n = this.__last_index__); for (var i = n ? e.slice(n) : e; this.test(i); ) - r.push(Hy(this, n)), i = i.slice(this.__last_index__), n += this.__last_index__; + r.push(Ky(this, n)), i = i.slice(this.__last_index__), n += this.__last_index__; return r.length ? r : null; }; Kt.prototype.tlds = function(e, n) { return e = Array.isArray(e) ? e : [e], n ? (this.__tlds__ = this.__tlds__.concat(e).sort().filter(function(r, i, s) { return r !== s[i - 1]; - }).reverse(), gh(this), this) : (this.__tlds__ = e.slice(), this.__tlds_replaced__ = !0, gh(this), this); + }).reverse(), Oh(this), this) : (this.__tlds__ = e.slice(), this.__tlds_replaced__ = !0, Oh(this), this); }; Kt.prototype.normalize = function(e) { e.schema || (e.url = "http://" + e.url), e.schema === "mailto:" && !/^mailto:/i.test(e.url) && (e.url = "mailto:" + e.url); }; Kt.prototype.onCompile = function() { }; -var Lxe = Kt; -const ps = 2147483647, Zn = 36, Mg = 1, $l = 26, Ixe = 38, Nxe = 700, OA = 72, bA = 128, yA = "-", qxe = /^xn--/, Bxe = /[^\0-\x7F]/, Yxe = /[\x2E\u3002\uFF0E\uFF61]/g, Xxe = { +var Ixe = Kt; +const ps = 2147483647, Zn = 36, Zm = 1, Al = 26, Nxe = 38, qxe = 700, bA = 72, yA = 128, wA = "-", Bxe = /^xn--/, Yxe = /[^\0-\x7F]/, Xxe = /[\x2E\u3002\uFF0E\uFF61]/g, Wxe = { overflow: "Overflow: input needs wider integers to process", "not-basic": "Illegal input >= 0x80 (not a basic code point)", "invalid-input": "Invalid input" -}, Xf = Zn - Mg, Ln = Math.floor, Wf = String.fromCharCode; +}, Xf = Zn - Zm, Ln = Math.floor, Wf = String.fromCharCode; function Sr(t) { - throw new RangeError(Xxe[t]); + throw new RangeError(Wxe[t]); } -function Wxe(t, e) { +function Vxe(t, e) { const n = []; let r = t.length; for (; r--; ) n[r] = e(t[r]); return n; } -function wA(t, e) { +function kA(t, e) { const n = t.split("@"); let r = ""; - n.length > 1 && (r = n[0] + "@", t = n[1]), t = t.replace(Yxe, "."); - const i = t.split("."), s = Wxe(i, e).join("."); + n.length > 1 && (r = n[0] + "@", t = n[1]), t = t.replace(Xxe, "."); + const i = t.split("."), s = Vxe(i, e).join("."); return r + s; } -function Zg(t) { +function Lm(t) { const e = []; let n = 0; const r = t.length; @@ -31549,18 +31549,18 @@ function Zg(t) { } return e; } -const kA = (t) => String.fromCodePoint(...t), Vxe = function(t) { +const xA = (t) => String.fromCodePoint(...t), jxe = function(t) { return t >= 48 && t < 58 ? 26 + (t - 48) : t >= 65 && t < 91 ? t - 65 : t >= 97 && t < 123 ? t - 97 : Zn; -}, Ky = function(t, e) { +}, Jy = function(t, e) { return t + 22 + 75 * (t < 26) - ((e != 0) << 5); -}, xA = function(t, e, n) { +}, vA = function(t, e, n) { let r = 0; - for (t = n ? Ln(t / Nxe) : t >> 1, t += Ln(t / e); t > Xf * $l >> 1; r += Zn) + for (t = n ? Ln(t / qxe) : t >> 1, t += Ln(t / e); t > Xf * Al >> 1; r += Zn) t = Ln(t / Xf); - return Ln(r + (Xf + 1) * t / (t + Ixe)); -}, Lg = function(t) { + return Ln(r + (Xf + 1) * t / (t + Nxe)); +}, Im = function(t) { const e = [], n = t.length; - let r = 0, i = bA, s = OA, o = t.lastIndexOf(yA); + let r = 0, i = yA, s = bA, o = t.lastIndexOf(wA); o < 0 && (o = 0); for (let l = 0; l < o; ++l) t.charCodeAt(l) >= 128 && Sr("not-basic"), e.push(t.charCodeAt(l)); @@ -31568,28 +31568,28 @@ const kA = (t) => String.fromCodePoint(...t), Vxe = function(t) { const a = r; for (let h = 1, u = Zn; ; u += Zn) { l >= n && Sr("invalid-input"); - const f = Vxe(t.charCodeAt(l++)); + const f = jxe(t.charCodeAt(l++)); f >= Zn && Sr("invalid-input"), f > Ln((ps - r) / h) && Sr("overflow"), r += f * h; - const d = u <= s ? Mg : u >= s + $l ? $l : u - s; + const d = u <= s ? Zm : u >= s + Al ? Al : u - s; if (f < d) break; const p = Zn - d; h > Ln(ps / p) && Sr("overflow"), h *= p; } const c = e.length + 1; - s = xA(r - a, c, a == 0), Ln(r / c) > ps - i && Sr("overflow"), i += Ln(r / c), r %= c, e.splice(r++, 0, i); + s = vA(r - a, c, a == 0), Ln(r / c) > ps - i && Sr("overflow"), i += Ln(r / c), r %= c, e.splice(r++, 0, i); } return String.fromCodePoint(...e); -}, Ig = function(t) { +}, Nm = function(t) { const e = []; - t = Zg(t); + t = Lm(t); const n = t.length; - let r = bA, i = 0, s = OA; + let r = yA, i = 0, s = bA; for (const a of t) a < 128 && e.push(Wf(a)); const o = e.length; let l = o; - for (o && e.push(yA); l < n; ) { + for (o && e.push(wA); l < n; ) { let a = ps; for (const h of t) h >= r && h < a && (a = h); @@ -31599,48 +31599,48 @@ const kA = (t) => String.fromCodePoint(...t), Vxe = function(t) { if (h < r && ++i > ps && Sr("overflow"), h === r) { let u = i; for (let f = Zn; ; f += Zn) { - const d = f <= s ? Mg : f >= s + $l ? $l : f - s; + const d = f <= s ? Zm : f >= s + Al ? Al : f - s; if (u < d) break; - const p = u - d, m = Zn - d; + const p = u - d, g = Zn - d; e.push( - Wf(Ky(d + p % m, 0)) - ), u = Ln(p / m); + Wf(Jy(d + p % g, 0)) + ), u = Ln(p / g); } - e.push(Wf(Ky(u, 0))), s = xA(i, c, l === o), i = 0, ++l; + e.push(Wf(Jy(u, 0))), s = vA(i, c, l === o), i = 0, ++l; } ++i, ++r; } return e.join(""); -}, vA = function(t) { - return wA(t, function(e) { - return qxe.test(e) ? Lg(e.slice(4).toLowerCase()) : e; - }); }, SA = function(t) { - return wA(t, function(e) { - return Bxe.test(e) ? "xn--" + Ig(e) : e; + return kA(t, function(e) { + return Bxe.test(e) ? Im(e.slice(4).toLowerCase()) : e; }); -}, jxe = { +}, _A = function(t) { + return kA(t, function(e) { + return Yxe.test(e) ? "xn--" + Nm(e) : e; + }); +}, zxe = { version: "2.3.1", ucs2: { - decode: Zg, - encode: kA + decode: Lm, + encode: xA }, - decode: Lg, - encode: Ig, - toASCII: SA, - toUnicode: vA -}, zxe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ + decode: Im, + encode: Nm, + toASCII: _A, + toUnicode: SA +}, Fxe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - ucs2decode: Zg, - ucs2encode: kA, - decode: Lg, - encode: Ig, - toASCII: SA, - toUnicode: vA, - default: jxe -}, Symbol.toStringTag, { value: "Module" })), Fxe = /* @__PURE__ */ Uw(zxe); -var Uxe = { + ucs2decode: Lm, + ucs2encode: xA, + decode: Im, + encode: Nm, + toASCII: _A, + toUnicode: SA, + default: zxe +}, Symbol.toStringTag, { value: "Module" })), Uxe = /* @__PURE__ */ Gw(Fxe); +var Gxe = { options: { html: !1, xhtmlOut: !1, @@ -31657,7 +31657,7 @@ var Uxe = { block: {}, inline: {} } -}, Gxe = { +}, Hxe = { options: { html: !1, xhtmlOut: !1, @@ -31692,7 +31692,7 @@ var Uxe = { ] } } -}, Hxe = { +}, Kxe = { options: { html: !0, xhtmlOut: !0, @@ -31746,45 +31746,45 @@ var Uxe = { ] } } -}, Wo = ce, Kxe = au, Jxe = Hwe, eve = wke, tve = Kke, nve = Sxe, rve = Lxe, mi = eo, _A = Fxe, ive = { - default: Uxe, - zero: Gxe, - commonmark: Hxe -}, sve = /^(vbscript|javascript|file|data):/, ove = /^data:image\/(gif|png|jpeg|webp);/; -function lve(t) { +}, Wo = ae, Jxe = cu, eve = Kwe, tve = kke, nve = Jke, rve = _xe, ive = Ixe, gi = eo, CA = Uxe, sve = { + default: Gxe, + zero: Hxe, + commonmark: Kxe +}, ove = /^(vbscript|javascript|file|data):/, lve = /^data:image\/(gif|png|jpeg|webp);/; +function ave(t) { var e = t.trim().toLowerCase(); - return sve.test(e) ? !!ove.test(e) : !0; + return ove.test(e) ? !!lve.test(e) : !0; } -var CA = ["http:", "https:", "mailto:"]; -function ave(t) { - var e = mi.parse(t, !0); - if (e.hostname && (!e.protocol || CA.indexOf(e.protocol) >= 0)) +var AA = ["http:", "https:", "mailto:"]; +function cve(t) { + var e = gi.parse(t, !0); + if (e.hostname && (!e.protocol || AA.indexOf(e.protocol) >= 0)) try { - e.hostname = _A.toASCII(e.hostname); + e.hostname = CA.toASCII(e.hostname); } catch { } - return mi.encode(mi.format(e)); + return gi.encode(gi.format(e)); } -function cve(t) { - var e = mi.parse(t, !0); - if (e.hostname && (!e.protocol || CA.indexOf(e.protocol) >= 0)) +function hve(t) { + var e = gi.parse(t, !0); + if (e.hostname && (!e.protocol || AA.indexOf(e.protocol) >= 0)) try { - e.hostname = _A.toUnicode(e.hostname); + e.hostname = CA.toUnicode(e.hostname); } catch { } - return mi.decode(mi.format(e), mi.decode.defaultChars + "%"); + return gi.decode(gi.format(e), gi.decode.defaultChars + "%"); } function Jt(t, e) { if (!(this instanceof Jt)) return new Jt(t, e); - e || Wo.isString(t) || (e = t || {}, t = "default"), this.inline = new nve(), this.block = new tve(), this.core = new eve(), this.renderer = new Jxe(), this.linkify = new rve(), this.validateLink = lve, this.normalizeLink = ave, this.normalizeLinkText = cve, this.utils = Wo, this.helpers = Wo.assign({}, Kxe), this.options = {}, this.configure(t), e && this.set(e); + e || Wo.isString(t) || (e = t || {}, t = "default"), this.inline = new rve(), this.block = new nve(), this.core = new tve(), this.renderer = new eve(), this.linkify = new ive(), this.validateLink = ave, this.normalizeLink = cve, this.normalizeLinkText = hve, this.utils = Wo, this.helpers = Wo.assign({}, Jxe), this.options = {}, this.configure(t), e && this.set(e); } Jt.prototype.set = function(t) { return Wo.assign(this.options, t), this; }; Jt.prototype.configure = function(t) { var e = this, n; - if (Wo.isString(t) && (n = t, t = ive[n], !t)) + if (Wo.isString(t) && (n = t, t = sve[n], !t)) throw new Error('Wrong `markdown-it` preset "' + n + '", check name'); if (!t) throw new Error("Wrong `markdown-it` preset, can't be empty"); @@ -31836,11 +31836,11 @@ Jt.prototype.parseInline = function(t, e) { Jt.prototype.renderInline = function(t, e) { return e = e || {}, this.renderer.render(this.parseInline(t, e), this.options, e); }; -var hve = Jt; +var uve = Jt; (function(t) { - t.exports = hve; -})(oA); -const uve = /* @__PURE__ */ YP(oA.exports); + t.exports = uve; +})(lA); +const fve = /* @__PURE__ */ XP(lA.exports); class br { constructor(e) { this.state = e; @@ -31849,42 +31849,42 @@ class br { return []; } } -class fve extends br { +class dve extends br { run(e) { const n = new this.state.Token("code_inline", "code", 0); return n.content = e.content, [n]; } } -const dve = { - raw: fve -}, Yp = "math_inline"; -class pve extends br { +const pve = { + raw: dve +}, Xp = "math_inline"; +class gve extends br { run(e) { - const n = new this.state.Token(Yp, "span", 0); + const n = new this.state.Token(Xp, "span", 0); return n.attrSet("class", "math inline"), n.markup = "$", n.content = e.content, [n]; } } function mve(t, e) { var n; - !(!((n = e == null ? void 0 : e.roles) === null || n === void 0) && n.math) || t.renderer.rules[Yp] || (t.renderer.rules[Yp] = (r, i) => { + !(!((n = e == null ? void 0 : e.roles) === null || n === void 0) && n.math) || t.renderer.rules[Xp] || (t.renderer.rules[Xp] = (r, i) => { var s, o, l; const a = (l = (o = (s = e == null ? void 0 : e.opts) === null || s === void 0 ? void 0 : s.math) === null || o === void 0 ? void 0 : o.renderer) !== null && l !== void 0 ? l : (f) => t.utils.escapeHtml(f), c = r[i], h = c.content.trim(), u = a(h, { displayMode: !1 }); return `${u}`; }); } -const gve = { - math: pve +const Ove = { + math: gve }; -function AA(t, e) { - e.parseRoles && t.inline.ruler.before("backticks", "parse_roles", Ove), t.core.ruler.after(e.rolesAfter || "inline", "run_roles", yve(e.roles || {})), t.renderer.rules.role = (n, r) => { +function $A(t, e) { + e.parseRoles && t.inline.ruler.before("backticks", "parse_roles", bve), t.core.ruler.after(e.rolesAfter || "inline", "run_roles", wve(e.roles || {})), t.renderer.rules.role = (n, r) => { const i = n[r]; return `${i.meta.name}${i.content}`; }, mve(t, e); } -function Ove(t, e) { +function bve(t, e) { if (t.src.charCodeAt(t.pos - 1) === 92) return !1; - const n = bve.exec(t.src.slice(t.pos)); + const n = yve.exec(t.src.slice(t.pos)); if (n == null) return !1; const [r, i, , s] = n; @@ -31894,14 +31894,14 @@ function Ove(t, e) { } return !0; } -let Xp; +let Wp; try { - Xp = new RegExp("^\\{([a-zA-Z_\\-+:]{1,36})\\}(`+)(?!`)(.+?)(?]+)>$/; -class Sve extends br { +const TA = /^(.+?)<([^<>]+)>$/; +class _ve extends br { run(e) { const n = new this.state.Token("ref_open", "a", 1), r = new this.state.Token("text", "", 0), i = new this.state.Token("ref_close", "a", -1); - return Ng(this.state, { open: n, content: r, close: i }, { kind: "eq", label: e.content }, { - kind: Pl.equation, + return qm(this.state, { open: n, content: r, close: i }, { kind: "eq", label: e.content }, { + kind: $l.equation, contentFromTarget: (s) => `(${s.number})` }), [n, r, i]; } } -class _ve extends br { +class Cve extends br { run(e) { - const n = PA.exec(e.content), [, r, i] = n != null ? n : [], s = r == null ? void 0 : r.trim(), o = new this.state.Token("ref_open", "a", 1), l = new this.state.Token("text", "", 0), a = new this.state.Token("ref_close", "a", -1); - return Ng(this.state, { open: o, content: l, close: a }, { kind: "numref", label: i || e.content, value: s }, { + const n = TA.exec(e.content), [, r, i] = n != null ? n : [], s = r == null ? void 0 : r.trim(), o = new this.state.Token("ref_open", "a", 1), l = new this.state.Token("text", "", 0), a = new this.state.Token("ref_close", "a", -1); + return qm(this.state, { open: o, content: l, close: a }, { kind: "numref", label: i || e.content, value: s }, { contentFromTarget: (c) => n ? s.replace(/%s/g, String(c.number)).replace(/\{number\}/g, String(c.number)) : c.title.trim() }), [o, l, a]; } } -class Cve extends br { +class Ave extends br { run(e) { - const n = PA.exec(e.content), [, r, i] = n != null ? n : [], s = r == null ? void 0 : r.trim(), o = new this.state.Token("ref_open", "a", 1), l = new this.state.Token("text", "", 0), a = new this.state.Token("ref_close", "a", -1); - return Ng(this.state, { open: o, content: l, close: a }, { kind: "ref", label: i || e.content, value: s }, { + const n = TA.exec(e.content), [, r, i] = n != null ? n : [], s = r == null ? void 0 : r.trim(), o = new this.state.Token("ref_open", "a", 1), l = new this.state.Token("text", "", 0), a = new this.state.Token("ref_close", "a", -1); + return qm(this.state, { open: o, content: l, close: a }, { kind: "ref", label: i || e.content, value: s }, { contentFromTarget: (c) => s || c.title }), [o, l, a]; } } -const Ave = { - eq: Sve, - ref: Cve, - numref: _ve -}, $ve = Object.assign(Object.assign(Object.assign(Object.assign({}, dve), kve), gve), Ave); +const $ve = { + eq: _ve, + ref: Ave, + numref: Cve +}, Pve = Object.assign(Object.assign(Object.assign(Object.assign({}, pve), xve), Ove), $ve); /*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */ -function TA(t) { +function QA(t) { return typeof t > "u" || t === null; } -function Pve(t) { +function Tve(t) { return typeof t == "object" && t !== null; } -function Tve(t) { - return Array.isArray(t) ? t : TA(t) ? [] : [t]; +function Qve(t) { + return Array.isArray(t) ? t : QA(t) ? [] : [t]; } -function Qve(t, e) { +function Eve(t, e) { var n, r, i, s; if (e) for (s = Object.keys(e), n = 0, r = s.length; n < r; n += 1) i = s[n], t[i] = e[i]; return t; } -function Eve(t, e) { +function Dve(t, e) { var n = "", r; for (r = 0; r < e; r += 1) n += t; return n; } -function Dve(t) { +function Rve(t) { return t === 0 && Number.NEGATIVE_INFINITY === 1 / t; } -var Rve = TA, Mve = Pve, Zve = Tve, Lve = Eve, Ive = Dve, Nve = Qve, Xe = { - isNothing: Rve, - isObject: Mve, - toArray: Zve, - repeat: Lve, - isNegativeZero: Ive, - extend: Nve +var Mve = QA, Zve = Tve, Lve = Qve, Ive = Dve, Nve = Rve, qve = Eve, Xe = { + isNothing: Mve, + isObject: Zve, + toArray: Lve, + repeat: Ive, + isNegativeZero: Nve, + extend: qve }; -function QA(t, e) { +function EA(t, e) { var n = "", r = t.reason || "(unknown reason)"; return t.mark ? (t.mark.name && (n += 'in "' + t.mark.name + '" '), n += "(" + (t.mark.line + 1) + ":" + (t.mark.column + 1) + ")", !e && t.mark.snippet && (n += ` ` + t.mark.snippet), r + " " + n) : r; } -function Tl(t, e) { - Error.call(this), this.name = "YAMLException", this.reason = t, this.mark = e, this.message = QA(this, !1), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack || ""; +function Pl(t, e) { + Error.call(this), this.name = "YAMLException", this.reason = t, this.mark = e, this.message = EA(this, !1), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack || ""; } -Tl.prototype = Object.create(Error.prototype); -Tl.prototype.constructor = Tl; -Tl.prototype.toString = function(e) { - return this.name + ": " + QA(this, e); +Pl.prototype = Object.create(Error.prototype); +Pl.prototype.constructor = Pl; +Pl.prototype.toString = function(e) { + return this.name + ": " + EA(this, e); }; -var Ot = Tl; +var Ot = Pl; function Vf(t, e, n, r, i) { var s = "", o = "", l = Math.floor(i / 2) - 1; return r - e > l && (s = " ... ", e = r - l + s.length), n - r > l && (o = " ...", n = r + l - o.length), { @@ -32096,7 +32096,7 @@ function Vf(t, e, n, r, i) { function jf(t, e) { return Xe.repeat(" ", e - t.length) + t; } -function qve(t, e) { +function Bve(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); @@ -32126,7 +32126,7 @@ function qve(t, e) { `; return l.replace(/\n$/, ""); } -var Bve = qve, Yve = [ +var Yve = Bve, Xve = [ "kind", "multi", "resolve", @@ -32137,12 +32137,12 @@ var Bve = qve, Yve = [ "representName", "defaultStyle", "styleAliases" -], Xve = [ +], Wve = [ "scalar", "sequence", "mapping" ]; -function Wve(t) { +function Vve(t) { var e = {}; return t !== null && Object.keys(t).forEach(function(n) { t[n].forEach(function(r) { @@ -32150,19 +32150,19 @@ function Wve(t) { }); }), e; } -function Vve(t, e) { +function jve(t, e) { if (e = e || {}, Object.keys(e).forEach(function(n) { - if (Yve.indexOf(n) === -1) + if (Xve.indexOf(n) === -1) throw new Ot('Unknown option "' + n + '" is met in definition of "' + t + '" YAML type.'); }), this.options = e, this.tag = t, this.kind = e.kind || null, this.resolve = e.resolve || function() { return !0; }, this.construct = e.construct || function(n) { return n; - }, 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 = Wve(e.styleAliases || null), Xve.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 = Vve(e.styleAliases || null), Wve.indexOf(this.kind) === -1) throw new Ot('Unknown kind "' + this.kind + '" is specified for "' + t + '" YAML type.'); } -var ot = Vve; -function nw(t, e) { +var ot = jve; +function rw(t, e) { var n = []; return t[e].forEach(function(r) { var i = n.length; @@ -32171,7 +32171,7 @@ function nw(t, e) { }), n[i] = r; }), n; } -function jve() { +function zve() { var t = { scalar: {}, sequence: {}, @@ -32191,10 +32191,10 @@ function jve() { arguments[e].forEach(r); return t; } -function Wp(t) { +function Vp(t) { return this.extend(t); } -Wp.prototype.extend = function(e) { +Vp.prototype.extend = function(e) { var n = [], r = []; if (e instanceof ot) r.push(e); @@ -32215,48 +32215,48 @@ Wp.prototype.extend = function(e) { if (!(s instanceof ot)) throw new Ot("Specified list of YAML types (or a single Type object) contains a non-Type object."); }); - var i = Object.create(Wp.prototype); - return i.implicit = (this.implicit || []).concat(n), i.explicit = (this.explicit || []).concat(r), i.compiledImplicit = nw(i, "implicit"), i.compiledExplicit = nw(i, "explicit"), i.compiledTypeMap = jve(i.compiledImplicit, i.compiledExplicit), i; + var i = Object.create(Vp.prototype); + return i.implicit = (this.implicit || []).concat(n), i.explicit = (this.explicit || []).concat(r), i.compiledImplicit = rw(i, "implicit"), i.compiledExplicit = rw(i, "explicit"), i.compiledTypeMap = zve(i.compiledImplicit, i.compiledExplicit), i; }; -var EA = Wp, DA = new ot("tag:yaml.org,2002:str", { +var DA = Vp, RA = new ot("tag:yaml.org,2002:str", { kind: "scalar", construct: function(t) { return t !== null ? t : ""; } -}), RA = new ot("tag:yaml.org,2002:seq", { +}), MA = new ot("tag:yaml.org,2002:seq", { kind: "sequence", construct: function(t) { return t !== null ? t : []; } -}), MA = new ot("tag:yaml.org,2002:map", { +}), ZA = new ot("tag:yaml.org,2002:map", { kind: "mapping", construct: function(t) { return t !== null ? t : {}; } -}), ZA = new EA({ +}), LA = new DA({ explicit: [ - DA, RA, - MA + MA, + ZA ] }); -function zve(t) { +function Fve(t) { if (t === null) return !0; var e = t.length; return e === 1 && t === "~" || e === 4 && (t === "null" || t === "Null" || t === "NULL"); } -function Fve() { +function Uve() { return null; } -function Uve(t) { +function Gve(t) { return t === null; } -var LA = new ot("tag:yaml.org,2002:null", { +var IA = new ot("tag:yaml.org,2002:null", { kind: "scalar", - resolve: zve, - construct: Fve, - predicate: Uve, + resolve: Fve, + construct: Uve, + predicate: Gve, represent: { canonical: function() { return "~"; @@ -32276,23 +32276,23 @@ var LA = new ot("tag:yaml.org,2002:null", { }, defaultStyle: "lowercase" }); -function Gve(t) { +function Hve(t) { if (t === null) return !1; var e = t.length; return e === 4 && (t === "true" || t === "True" || t === "TRUE") || e === 5 && (t === "false" || t === "False" || t === "FALSE"); } -function Hve(t) { +function Kve(t) { return t === "true" || t === "True" || t === "TRUE"; } -function Kve(t) { +function Jve(t) { return Object.prototype.toString.call(t) === "[object Boolean]"; } -var IA = new ot("tag:yaml.org,2002:bool", { +var NA = new ot("tag:yaml.org,2002:bool", { kind: "scalar", - resolve: Gve, - construct: Hve, - predicate: Kve, + resolve: Hve, + construct: Kve, + predicate: Jve, represent: { lowercase: function(t) { return t ? "true" : "false"; @@ -32306,16 +32306,16 @@ var IA = new ot("tag:yaml.org,2002:bool", { }, defaultStyle: "lowercase" }); -function Jve(t) { +function eSe(t) { return 48 <= t && t <= 57 || 65 <= t && t <= 70 || 97 <= t && t <= 102; } -function eSe(t) { +function tSe(t) { return 48 <= t && t <= 55; } -function tSe(t) { +function nSe(t) { return 48 <= t && t <= 57; } -function nSe(t) { +function rSe(t) { if (t === null) return !1; var e = t.length, n = 0, r = !1, i; @@ -32336,7 +32336,7 @@ function nSe(t) { if (i === "x") { for (n++; n < e; n++) if (i = t[n], i !== "_") { - if (!Jve(t.charCodeAt(n))) + if (!eSe(t.charCodeAt(n))) return !1; r = !0; } @@ -32345,7 +32345,7 @@ function nSe(t) { if (i === "o") { for (n++; n < e; n++) if (i = t[n], i !== "_") { - if (!eSe(t.charCodeAt(n))) + if (!tSe(t.charCodeAt(n))) return !1; r = !0; } @@ -32356,13 +32356,13 @@ function nSe(t) { return !1; for (; n < e; n++) if (i = t[n], i !== "_") { - if (!tSe(t.charCodeAt(n))) + if (!nSe(t.charCodeAt(n))) return !1; r = !0; } return !(!r || i === "_"); } -function rSe(t) { +function iSe(t) { var e = t, n = 1, r; if (e.indexOf("_") !== -1 && (e = e.replace(/_/g, "")), r = e[0], (r === "-" || r === "+") && (r === "-" && (n = -1), e = e.slice(1), r = e[0]), e === "0") return 0; @@ -32376,14 +32376,14 @@ function rSe(t) { } return n * parseInt(e, 10); } -function iSe(t) { +function sSe(t) { return Object.prototype.toString.call(t) === "[object Number]" && t % 1 === 0 && !Xe.isNegativeZero(t); } -var NA = new ot("tag:yaml.org,2002:int", { +var qA = new ot("tag:yaml.org,2002:int", { kind: "scalar", - resolve: nSe, - construct: rSe, - predicate: iSe, + resolve: rSe, + construct: iSe, + predicate: sSe, represent: { binary: function(t) { return t >= 0 ? "0b" + t.toString(2) : "-0b" + t.toString(2).slice(1); @@ -32405,18 +32405,18 @@ var NA = new ot("tag:yaml.org,2002:int", { decimal: [10, "dec"], hexadecimal: [16, "hex"] } -}), sSe = new RegExp( +}), oSe = new RegExp( "^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$" ); -function oSe(t) { - return !(t === null || !sSe.test(t) || t[t.length - 1] === "_"); -} function lSe(t) { + return !(t === null || !oSe.test(t) || t[t.length - 1] === "_"); +} +function aSe(t) { var e, n; return e = t.replace(/_/g, "").toLowerCase(), n = e[0] === "-" ? -1 : 1, "+-".indexOf(e[0]) >= 0 && (e = e.slice(1)), e === ".inf" ? n === 1 ? Number.POSITIVE_INFINITY : Number.NEGATIVE_INFINITY : e === ".nan" ? NaN : n * parseFloat(e, 10); } -var aSe = /^[-+]?[0-9]+e/; -function cSe(t, e) { +var cSe = /^[-+]?[0-9]+e/; +function hSe(t, e) { var n; if (isNaN(t)) switch (e) { @@ -32447,36 +32447,36 @@ function cSe(t, e) { } else if (Xe.isNegativeZero(t)) return "-0.0"; - return n = t.toString(10), aSe.test(n) ? n.replace("e", ".e") : n; + return n = t.toString(10), cSe.test(n) ? n.replace("e", ".e") : n; } -function hSe(t) { +function uSe(t) { return Object.prototype.toString.call(t) === "[object Number]" && (t % 1 !== 0 || Xe.isNegativeZero(t)); } -var qA = new ot("tag:yaml.org,2002:float", { +var BA = new ot("tag:yaml.org,2002:float", { kind: "scalar", - resolve: oSe, - construct: lSe, - predicate: hSe, - represent: cSe, + resolve: lSe, + construct: aSe, + predicate: uSe, + represent: hSe, defaultStyle: "lowercase" -}), BA = ZA.extend({ +}), YA = LA.extend({ implicit: [ - LA, IA, NA, - qA + qA, + BA ] -}), YA = BA, XA = new RegExp( +}), XA = YA, WA = new RegExp( "^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$" -), WA = new RegExp( +), VA = 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 uSe(t) { - return t === null ? !1 : XA.exec(t) !== null || WA.exec(t) !== null; -} function fSe(t) { + return t === null ? !1 : WA.exec(t) !== null || VA.exec(t) !== null; +} +function dSe(t) { var e, n, r, i, s, o, l, a = 0, c = null, h, u, f; - if (e = XA.exec(t), e === null && (e = WA.exec(t)), e === null) + if (e = WA.exec(t), e === null && (e = VA.exec(t)), e === null) throw new Error("Date resolve error"); if (n = +e[1], r = +e[2] - 1, i = +e[3], !e[4]) return new Date(Date.UTC(n, r, i)); @@ -32487,28 +32487,28 @@ function fSe(t) { } return e[9] && (h = +e[10], u = +(e[11] || 0), c = (h * 60 + u) * 6e4, e[9] === "-" && (c = -c)), f = new Date(Date.UTC(n, r, i, s, o, l, a)), c && f.setTime(f.getTime() - c), f; } -function dSe(t) { +function pSe(t) { return t.toISOString(); } -var VA = new ot("tag:yaml.org,2002:timestamp", { +var jA = new ot("tag:yaml.org,2002:timestamp", { kind: "scalar", - resolve: uSe, - construct: fSe, + resolve: fSe, + construct: dSe, instanceOf: Date, - represent: dSe + represent: pSe }); -function pSe(t) { +function gSe(t) { return t === "<<" || t === null; } -var jA = new ot("tag:yaml.org,2002:merge", { +var zA = new ot("tag:yaml.org,2002:merge", { kind: "scalar", - resolve: pSe -}), qg = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/= + resolve: gSe +}), Bm = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/= \r`; function mSe(t) { if (t === null) return !1; - var e, n, r = 0, i = t.length, s = qg; + var e, n, r = 0, i = t.length, s = Bm; for (n = 0; n < i; n++) if (e = s.indexOf(t.charAt(n)), !(e > 64)) { if (e < 0) @@ -32517,37 +32517,37 @@ function mSe(t) { } return r % 8 === 0; } -function gSe(t) { - var e, n, r = t.replace(/[\r\n=]/g, ""), i = r.length, s = qg, o = 0, l = []; +function OSe(t) { + var e, n, r = t.replace(/[\r\n=]/g, ""), i = r.length, s = Bm, o = 0, l = []; for (e = 0; e < i; e++) e % 4 === 0 && e && (l.push(o >> 16 & 255), l.push(o >> 8 & 255), l.push(o & 255)), o = o << 6 | s.indexOf(r.charAt(e)); return n = i % 4 * 6, n === 0 ? (l.push(o >> 16 & 255), l.push(o >> 8 & 255), l.push(o & 255)) : n === 18 ? (l.push(o >> 10 & 255), l.push(o >> 2 & 255)) : n === 12 && l.push(o >> 4 & 255), new Uint8Array(l); } -function OSe(t) { - var e = "", n = 0, r, i, s = t.length, o = qg; +function bSe(t) { + var e = "", n = 0, r, i, s = t.length, o = Bm; for (r = 0; r < s; r++) r % 3 === 0 && r && (e += o[n >> 18 & 63], e += o[n >> 12 & 63], e += o[n >> 6 & 63], e += o[n & 63]), n = (n << 8) + t[r]; return i = s % 3, i === 0 ? (e += o[n >> 18 & 63], e += o[n >> 12 & 63], e += o[n >> 6 & 63], e += o[n & 63]) : i === 2 ? (e += o[n >> 10 & 63], e += o[n >> 4 & 63], e += o[n << 2 & 63], e += o[64]) : i === 1 && (e += o[n >> 2 & 63], e += o[n << 4 & 63], e += o[64], e += o[64]), e; } -function bSe(t) { +function ySe(t) { return Object.prototype.toString.call(t) === "[object Uint8Array]"; } -var zA = new ot("tag:yaml.org,2002:binary", { +var FA = new ot("tag:yaml.org,2002:binary", { kind: "scalar", resolve: mSe, - construct: gSe, - predicate: bSe, - represent: OSe -}), ySe = Object.prototype.hasOwnProperty, wSe = Object.prototype.toString; -function kSe(t) { + construct: OSe, + predicate: ySe, + represent: bSe +}), wSe = Object.prototype.hasOwnProperty, kSe = Object.prototype.toString; +function xSe(t) { if (t === null) return !0; var e = [], n, r, i, s, o, l = t; for (n = 0, r = l.length; n < r; n += 1) { - if (i = l[n], o = !1, wSe.call(i) !== "[object Object]") + if (i = l[n], o = !1, kSe.call(i) !== "[object Object]") return !1; for (s in i) - if (ySe.call(i, s)) + if (wSe.call(i, s)) if (!o) o = !0; else @@ -32561,26 +32561,26 @@ function kSe(t) { } return !0; } -function xSe(t) { +function vSe(t) { return t !== null ? t : []; } -var FA = new ot("tag:yaml.org,2002:omap", { +var UA = new ot("tag:yaml.org,2002:omap", { kind: "sequence", - resolve: kSe, - construct: xSe -}), vSe = Object.prototype.toString; -function SSe(t) { + resolve: xSe, + construct: vSe +}), SSe = Object.prototype.toString; +function _Se(t) { if (t === null) return !0; var e, n, r, i, s, o = t; for (s = new Array(o.length), e = 0, n = o.length; e < n; e += 1) { - if (r = o[e], vSe.call(r) !== "[object Object]" || (i = Object.keys(r), i.length !== 1)) + if (r = o[e], SSe.call(r) !== "[object Object]" || (i = Object.keys(r), i.length !== 1)) return !1; s[e] = [i[0], r[i[0]]]; } return !0; } -function _Se(t) { +function CSe(t) { if (t === null) return []; var e, n, r, i, s, o = t; @@ -32588,40 +32588,40 @@ function _Se(t) { r = o[e], i = Object.keys(r), s[e] = [i[0], r[i[0]]]; return s; } -var UA = new ot("tag:yaml.org,2002:pairs", { +var GA = new ot("tag:yaml.org,2002:pairs", { kind: "sequence", - resolve: SSe, - construct: _Se -}), CSe = Object.prototype.hasOwnProperty; -function ASe(t) { + resolve: _Se, + construct: CSe +}), ASe = Object.prototype.hasOwnProperty; +function $Se(t) { if (t === null) return !0; var e, n = t; for (e in n) - if (CSe.call(n, e) && n[e] !== null) + if (ASe.call(n, e) && n[e] !== null) return !1; return !0; } -function $Se(t) { +function PSe(t) { return t !== null ? t : {}; } -var GA = new ot("tag:yaml.org,2002:set", { +var HA = new ot("tag:yaml.org,2002:set", { kind: "mapping", - resolve: ASe, - construct: $Se -}), Bg = YA.extend({ + resolve: $Se, + construct: PSe +}), Ym = XA.extend({ implicit: [ - VA, - jA + jA, + zA ], explicit: [ - zA, FA, UA, - GA + GA, + HA ] -}), zr = Object.prototype.hasOwnProperty, Oh = 1, HA = 2, KA = 3, bh = 4, zf = 1, PSe = 2, rw = 3, TSe = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, QSe = /[\x85\u2028\u2029]/, ESe = /[,\[\]\{\}]/, JA = /^(?:!|!!|![a-z\-]+!)$/i, e$ = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i; -function iw(t) { +}), zr = Object.prototype.hasOwnProperty, bh = 1, KA = 2, JA = 3, yh = 4, zf = 1, TSe = 2, iw = 3, QSe = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, ESe = /[\x85\u2028\u2029]/, DSe = /[,\[\]\{\}]/, e$ = /^(?:!|!!|![a-z\-]+!)$/i, t$ = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i; +function sw(t) { return Object.prototype.toString.call(t); } function Xn(t) { @@ -32636,33 +32636,33 @@ function $t(t) { function ts(t) { return t === 44 || t === 91 || t === 93 || t === 123 || t === 125; } -function DSe(t) { +function RSe(t) { var e; return 48 <= t && t <= 57 ? t - 48 : (e = t | 32, 97 <= e && e <= 102 ? e - 97 + 10 : -1); } -function RSe(t) { +function MSe(t) { return t === 120 ? 2 : t === 117 ? 4 : t === 85 ? 8 : 0; } -function MSe(t) { +function ZSe(t) { return 48 <= t && t <= 57 ? t - 48 : -1; } -function sw(t) { +function ow(t) { return t === 48 ? "\0" : t === 97 ? "\x07" : t === 98 ? "\b" : t === 116 || t === 9 ? " " : t === 110 ? ` ` : t === 118 ? "\v" : t === 102 ? "\f" : t === 114 ? "\r" : t === 101 ? "\x1B" : t === 32 ? " " : t === 34 ? '"' : t === 47 ? "/" : t === 92 ? "\\" : t === 78 ? "\x85" : t === 95 ? "\xA0" : t === 76 ? "\u2028" : t === 80 ? "\u2029" : ""; } -function ZSe(t) { +function LSe(t) { return t <= 65535 ? String.fromCharCode(t) : String.fromCharCode( (t - 65536 >> 10) + 55296, (t - 65536 & 1023) + 56320 ); } -var t$ = new Array(256), n$ = new Array(256); +var n$ = new Array(256), r$ = new Array(256); for (var ji = 0; ji < 256; ji++) - t$[ji] = sw(ji) ? 1 : 0, n$[ji] = sw(ji); -function LSe(t, e) { - this.input = t, this.filename = e.filename || null, this.schema = e.schema || Bg, 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 = []; + n$[ji] = ow(ji) ? 1 : 0, r$[ji] = ow(ji); +function ISe(t, e) { + this.input = t, this.filename = e.filename || null, this.schema = e.schema || Ym, 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 r$(t, e) { +function i$(t, e) { var n = { name: t.filename, buffer: t.input.slice(0, -1), @@ -32670,22 +32670,22 @@ function r$(t, e) { line: t.line, column: t.position - t.lineStart }; - return n.snippet = Bve(n), new Ot(e, n); + return n.snippet = Yve(n), new Ot(e, n); } function W(t, e) { - throw r$(t, e); + throw i$(t, e); } -function yh(t, e) { - t.onWarning && t.onWarning.call(null, r$(t, e)); +function wh(t, e) { + t.onWarning && t.onWarning.call(null, i$(t, e)); } -var ow = { +var lw = { YAML: function(e, n, r) { var i, s, o; - e.version !== null && W(e, "duplication of %YAML directive"), r.length !== 1 && W(e, "YAML directive accepts exactly one argument"), i = /^([0-9]+)\.([0-9]+)$/.exec(r[0]), i === null && W(e, "ill-formed argument of the YAML directive"), s = parseInt(i[1], 10), o = parseInt(i[2], 10), s !== 1 && W(e, "unacceptable YAML version of the document"), e.version = r[0], e.checkLineBreaks = o < 2, o !== 1 && o !== 2 && yh(e, "unsupported YAML version of the document"); + e.version !== null && W(e, "duplication of %YAML directive"), r.length !== 1 && W(e, "YAML directive accepts exactly one argument"), i = /^([0-9]+)\.([0-9]+)$/.exec(r[0]), i === null && W(e, "ill-formed argument of the YAML directive"), s = parseInt(i[1], 10), o = parseInt(i[2], 10), s !== 1 && W(e, "unacceptable YAML version of the document"), e.version = r[0], e.checkLineBreaks = o < 2, o !== 1 && o !== 2 && wh(e, "unsupported YAML version of the document"); }, TAG: function(e, n, r) { var i, s; - r.length !== 2 && W(e, "TAG directive accepts exactly two arguments"), i = r[0], s = r[1], JA.test(i) || W(e, "ill-formed tag handle (first argument) of the TAG directive"), zr.call(e.tagMap, i) && W(e, 'there is a previously declared suffix for "' + i + '" tag handle'), e$.test(s) || W(e, "ill-formed tag prefix (second argument) of the TAG directive"); + r.length !== 2 && W(e, "TAG directive accepts exactly two arguments"), i = r[0], s = r[1], e$.test(i) || W(e, "ill-formed tag handle (first argument) of the TAG directive"), zr.call(e.tagMap, i) && W(e, 'there is a previously declared suffix for "' + i + '" tag handle'), t$.test(s) || W(e, "ill-formed tag prefix (second argument) of the TAG directive"); try { s = decodeURIComponent(s); } catch { @@ -32701,11 +32701,11 @@ function Ir(t, e, n, r) { for (i = 0, s = l.length; i < s; i += 1) o = l.charCodeAt(i), o === 9 || 32 <= o && o <= 1114111 || W(t, "expected valid JSON character"); else - TSe.test(l) && W(t, "the stream contains non-printable characters"); + QSe.test(l) && W(t, "the stream contains non-printable characters"); t.result += l; } } -function lw(t, e, n, r) { +function aw(t, e, n, r) { var i, s, o, l; for (Xe.isObject(n) || W(t, "cannot merge mappings; the provided source object is unacceptable"), i = Object.keys(n), o = 0, l = i.length; o < l; o += 1) s = i[o], zr.call(e, s) || (e[s] = n[s], r[s] = !0); @@ -32714,13 +32714,13 @@ function ns(t, e, n, r, i, s, o, l, a) { var c, h; if (Array.isArray(i)) for (i = Array.prototype.slice.call(i), c = 0, h = i.length; c < h; c += 1) - Array.isArray(i[c]) && W(t, "nested arrays are not supported inside keys"), typeof i == "object" && iw(i[c]) === "[object Object]" && (i[c] = "[object Object]"); - if (typeof i == "object" && iw(i) === "[object Object]" && (i = "[object Object]"), i = String(i), e === null && (e = {}), r === "tag:yaml.org,2002:merge") + Array.isArray(i[c]) && W(t, "nested arrays are not supported inside keys"), typeof i == "object" && sw(i[c]) === "[object Object]" && (i[c] = "[object Object]"); + if (typeof i == "object" && sw(i) === "[object Object]" && (i = "[object Object]"), i = String(i), e === null && (e = {}), r === "tag:yaml.org,2002:merge") if (Array.isArray(s)) for (c = 0, h = s.length; c < h; c += 1) - lw(t, e, s[c], n); + aw(t, e, s[c], n); else - lw(t, e, s, n); + aw(t, e, s, n); else !t.json && !zr.call(n, i) && zr.call(e, i) && (t.line = o || t.line, t.lineStart = l || t.lineStart, t.position = a || t.position, W(t, "duplicated mapping key")), i === "__proto__" ? Object.defineProperty(e, i, { configurable: !0, @@ -32730,7 +32730,7 @@ function ns(t, e, n, r, i, s, o, l, a) { }) : e[i] = s, delete n[i]; return e; } -function Yg(t) { +function Xm(t) { var e; e = t.input.charCodeAt(t.position), e === 10 ? t.position++ : e === 13 ? (t.position++, t.input.charCodeAt(t.position) === 10 && t.position++) : W(t, "a line break is expected"), t.line += 1, t.lineStart = t.position, t.firstTabInLine = -1; } @@ -32743,22 +32743,22 @@ function Be(t, e, n) { i = t.input.charCodeAt(++t.position); while (i !== 10 && i !== 13 && i !== 0); if (Xn(i)) - for (Yg(t), i = t.input.charCodeAt(t.position), r++, t.lineIndent = 0; i === 32; ) + for (Xm(t), i = t.input.charCodeAt(t.position), r++, t.lineIndent = 0; i === 32; ) t.lineIndent++, i = t.input.charCodeAt(++t.position); else break; } - return n !== -1 && r !== 0 && t.lineIndent < n && yh(t, "deficient indentation"), r; + return n !== -1 && r !== 0 && t.lineIndent < n && wh(t, "deficient indentation"), r; } -function gu(t) { +function Ou(t) { var e = t.position, n; return n = t.input.charCodeAt(e), !!((n === 45 || n === 46) && n === t.input.charCodeAt(e + 1) && n === t.input.charCodeAt(e + 2) && (e += 3, n = t.input.charCodeAt(e), n === 0 || $t(n))); } -function Xg(t, e) { +function Wm(t, e) { e === 1 ? t.result += " " : e > 1 && (t.result += Xe.repeat(` `, e - 1)); } -function ISe(t, e, n) { +function NSe(t, e, n) { var r, i, s, o, l, a, c, h, u = t.kind, f = t.result, d; if (d = t.input.charCodeAt(t.position), $t(d) || ts(d) || d === 35 || d === 38 || d === 42 || d === 33 || d === 124 || d === 62 || d === 39 || d === 34 || d === 37 || d === 64 || d === 96 || (d === 63 || d === 45) && (i = t.input.charCodeAt(t.position + 1), $t(i) || n && ts(i))) return !1; @@ -32770,7 +32770,7 @@ function ISe(t, e, n) { if (r = t.input.charCodeAt(t.position - 1), $t(r)) break; } else { - if (t.position === t.lineStart && gu(t) || n && ts(d)) + if (t.position === t.lineStart && Ou(t) || n && ts(d)) break; if (Xn(d)) if (a = t.line, c = t.lineStart, h = t.lineIndent, Be(t, !1, -1), t.lineIndent >= e) { @@ -32781,11 +32781,11 @@ function ISe(t, e, n) { break; } } - l && (Ir(t, s, o, !1), Xg(t, t.line - a), s = o = t.position, l = !1), ki(d) || (o = t.position + 1), d = t.input.charCodeAt(++t.position); + l && (Ir(t, s, o, !1), Wm(t, t.line - a), s = o = t.position, l = !1), ki(d) || (o = t.position + 1), d = t.input.charCodeAt(++t.position); } return Ir(t, s, o, !1), t.result ? !0 : (t.kind = u, t.result = f, !1); } -function NSe(t, e) { +function qSe(t, e) { var n, r, i; if (n = t.input.charCodeAt(t.position), n !== 39) return !1; @@ -32796,10 +32796,10 @@ function NSe(t, e) { else return !0; else - Xn(n) ? (Ir(t, r, i, !0), Xg(t, Be(t, !1, e)), r = i = t.position) : t.position === t.lineStart && gu(t) ? W(t, "unexpected end of the document within a single quoted scalar") : (t.position++, i = t.position); + Xn(n) ? (Ir(t, r, i, !0), Wm(t, Be(t, !1, e)), r = i = t.position) : t.position === t.lineStart && Ou(t) ? W(t, "unexpected end of the document within a single quoted scalar") : (t.position++, i = t.position); W(t, "unexpected end of the stream within a single quoted scalar"); } -function qSe(t, e) { +function BSe(t, e) { var n, r, i, s, o, l; if (l = t.input.charCodeAt(t.position), l !== 34) return !1; @@ -32809,22 +32809,22 @@ function qSe(t, e) { if (l === 92) { if (Ir(t, n, t.position, !0), l = t.input.charCodeAt(++t.position), Xn(l)) Be(t, !1, e); - else if (l < 256 && t$[l]) - t.result += n$[l], t.position++; - else if ((o = RSe(l)) > 0) { + else if (l < 256 && n$[l]) + t.result += r$[l], t.position++; + else if ((o = MSe(l)) > 0) { for (i = o, s = 0; i > 0; i--) - l = t.input.charCodeAt(++t.position), (o = DSe(l)) >= 0 ? s = (s << 4) + o : W(t, "expected hexadecimal character"); - t.result += ZSe(s), t.position++; + l = t.input.charCodeAt(++t.position), (o = RSe(l)) >= 0 ? s = (s << 4) + o : W(t, "expected hexadecimal character"); + t.result += LSe(s), t.position++; } else W(t, "unknown escape sequence"); n = r = t.position; } else - Xn(l) ? (Ir(t, n, r, !0), Xg(t, Be(t, !1, e)), n = r = t.position) : t.position === t.lineStart && gu(t) ? W(t, "unexpected end of the document within a double quoted scalar") : (t.position++, r = t.position); + Xn(l) ? (Ir(t, n, r, !0), Wm(t, Be(t, !1, e)), n = r = t.position) : t.position === t.lineStart && Ou(t) ? W(t, "unexpected end of the document within a double quoted scalar") : (t.position++, r = t.position); } W(t, "unexpected end of the stream within a double quoted scalar"); } -function BSe(t, e) { - var n = !0, r, i, s, o = t.tag, l, a = t.anchor, c, h, u, f, d, p = /* @__PURE__ */ Object.create(null), m, g, O, b; +function YSe(t, e) { + var n = !0, r, i, s, o = t.tag, l, a = t.anchor, c, h, u, f, d, p = /* @__PURE__ */ Object.create(null), g, m, O, b; if (b = t.input.charCodeAt(t.position), b === 91) h = 93, d = !1, l = []; else if (b === 123) @@ -32834,11 +32834,11 @@ function BSe(t, e) { for (t.anchor !== null && (t.anchorMap[t.anchor] = l), b = t.input.charCodeAt(++t.position); b !== 0; ) { if (Be(t, !0, e), b = t.input.charCodeAt(t.position), b === h) return t.position++, t.tag = o, t.anchor = a, t.kind = d ? "mapping" : "sequence", t.result = l, !0; - n ? b === 44 && W(t, "expected the node content, but found ','") : W(t, "missed comma between flow collection entries"), g = m = O = null, u = f = !1, b === 63 && (c = t.input.charCodeAt(t.position + 1), $t(c) && (u = f = !0, t.position++, Be(t, !0, e))), r = t.line, i = t.lineStart, s = t.position, qs(t, e, Oh, !1, !0), g = t.tag, m = t.result, Be(t, !0, e), b = t.input.charCodeAt(t.position), (f || t.line === r) && b === 58 && (u = !0, b = t.input.charCodeAt(++t.position), Be(t, !0, e), qs(t, e, Oh, !1, !0), O = t.result), d ? ns(t, l, p, g, m, O, r, i, s) : u ? l.push(ns(t, null, p, g, m, O, r, i, s)) : l.push(m), Be(t, !0, e), b = t.input.charCodeAt(t.position), b === 44 ? (n = !0, b = t.input.charCodeAt(++t.position)) : n = !1; + n ? b === 44 && W(t, "expected the node content, but found ','") : W(t, "missed comma between flow collection entries"), m = g = O = null, u = f = !1, b === 63 && (c = t.input.charCodeAt(t.position + 1), $t(c) && (u = f = !0, t.position++, Be(t, !0, e))), r = t.line, i = t.lineStart, s = t.position, qs(t, e, bh, !1, !0), m = t.tag, g = t.result, Be(t, !0, e), b = t.input.charCodeAt(t.position), (f || t.line === r) && b === 58 && (u = !0, b = t.input.charCodeAt(++t.position), Be(t, !0, e), qs(t, e, bh, !1, !0), O = t.result), d ? ns(t, l, p, m, g, O, r, i, s) : u ? l.push(ns(t, null, p, m, g, O, r, i, s)) : l.push(g), Be(t, !0, e), b = t.input.charCodeAt(t.position), b === 44 ? (n = !0, b = t.input.charCodeAt(++t.position)) : n = !1; } W(t, "unexpected end of the stream within a flow collection"); } -function YSe(t, e) { +function XSe(t, e) { var n, r, i = zf, s = !1, o = !1, l = e, a = 0, c = !1, h, u; if (u = t.input.charCodeAt(t.position), u === 124) r = !1; @@ -32848,8 +32848,8 @@ function YSe(t, e) { return !1; for (t.kind = "scalar", t.result = ""; u !== 0; ) if (u = t.input.charCodeAt(++t.position), u === 43 || u === 45) - zf === i ? i = u === 43 ? rw : PSe : W(t, "repeat of a chomping mode identifier"); - else if ((h = MSe(u)) >= 0) + zf === i ? i = u === 43 ? iw : TSe : W(t, "repeat of a chomping mode identifier"); + else if ((h = ZSe(u)) >= 0) h === 0 ? W(t, "bad explicit indentation width of a block scalar; it cannot be less than one") : o ? W(t, "repeat of an indentation width identifier") : (l = e + h - 1, o = !0); else break; @@ -32863,14 +32863,14 @@ function YSe(t, e) { while (!Xn(u) && u !== 0); } for (; u !== 0; ) { - for (Yg(t), t.lineIndent = 0, u = t.input.charCodeAt(t.position); (!o || t.lineIndent < l) && u === 32; ) + for (Xm(t), t.lineIndent = 0, u = t.input.charCodeAt(t.position); (!o || t.lineIndent < l) && u === 32; ) t.lineIndent++, u = t.input.charCodeAt(++t.position); if (!o && t.lineIndent > l && (l = t.lineIndent), Xn(u)) { a++; continue; } if (t.lineIndent < l) { - i === rw ? t.result += Xe.repeat(` + i === iw ? t.result += Xe.repeat(` `, s ? 1 + a : a) : i === zf && s && (t.result += ` `); break; @@ -32885,7 +32885,7 @@ function YSe(t, e) { } return !0; } -function aw(t, e) { +function cw(t, e) { var n, r = t.tag, i = t.anchor, s = [], o, l = !1, a; if (t.firstTabInLine !== -1) return !1; @@ -32894,28 +32894,28 @@ function aw(t, e) { s.push(null), a = t.input.charCodeAt(t.position); continue; } - if (n = t.line, qs(t, e, KA, !1, !0), s.push(t.result), Be(t, !0, -1), a = t.input.charCodeAt(t.position), (t.line === n || t.lineIndent > e) && a !== 0) + if (n = t.line, qs(t, e, JA, !1, !0), s.push(t.result), Be(t, !0, -1), a = t.input.charCodeAt(t.position), (t.line === n || t.lineIndent > e) && a !== 0) W(t, "bad indentation of a sequence entry"); else if (t.lineIndent < e) break; } return l ? (t.tag = r, t.anchor = i, t.kind = "sequence", t.result = s, !0) : !1; } -function XSe(t, e, n) { - var r, i, s, o, l, a, c = t.tag, h = t.anchor, u = {}, f = /* @__PURE__ */ Object.create(null), d = null, p = null, m = null, g = !1, O = !1, b; +function WSe(t, e, n) { + var r, i, s, o, l, a, c = t.tag, h = t.anchor, u = {}, f = /* @__PURE__ */ Object.create(null), d = null, p = null, g = null, m = !1, O = !1, b; if (t.firstTabInLine !== -1) return !1; for (t.anchor !== null && (t.anchorMap[t.anchor] = u), b = t.input.charCodeAt(t.position); b !== 0; ) { - if (!g && t.firstTabInLine !== -1 && (t.position = t.firstTabInLine, W(t, "tab characters must not be used in indentation")), r = t.input.charCodeAt(t.position + 1), s = t.line, (b === 63 || b === 58) && $t(r)) - b === 63 ? (g && (ns(t, u, f, d, p, null, o, l, a), d = p = m = null), O = !0, g = !0, i = !0) : g ? (g = !1, i = !0) : W(t, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), t.position += 1, b = r; + if (!m && t.firstTabInLine !== -1 && (t.position = t.firstTabInLine, W(t, "tab characters must not be used in indentation")), r = t.input.charCodeAt(t.position + 1), s = t.line, (b === 63 || b === 58) && $t(r)) + b === 63 ? (m && (ns(t, u, f, d, p, null, o, l, a), d = p = g = null), O = !0, m = !0, i = !0) : m ? (m = !1, i = !0) : W(t, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), t.position += 1, b = r; else { - if (o = t.line, l = t.lineStart, a = t.position, !qs(t, n, HA, !1, !0)) + if (o = t.line, l = t.lineStart, a = t.position, !qs(t, n, KA, !1, !0)) break; if (t.line === s) { for (b = t.input.charCodeAt(t.position); ki(b); ) b = t.input.charCodeAt(++t.position); if (b === 58) - b = t.input.charCodeAt(++t.position), $t(b) || W(t, "a whitespace character is expected after the key-value separator within a block mapping"), g && (ns(t, u, f, d, p, null, o, l, a), d = p = m = null), O = !0, g = !1, i = !1, d = t.tag, p = t.result; + b = t.input.charCodeAt(++t.position), $t(b) || W(t, "a whitespace character is expected after the key-value separator within a block mapping"), m && (ns(t, u, f, d, p, null, o, l, a), d = p = g = null), O = !0, m = !1, i = !1, d = t.tag, p = t.result; else if (O) W(t, "can not read an implicit mapping pair; a colon is missed"); else @@ -32925,14 +32925,14 @@ function XSe(t, e, n) { else return t.tag = c, t.anchor = h, !0; } - if ((t.line === s || t.lineIndent > e) && (g && (o = t.line, l = t.lineStart, a = t.position), qs(t, e, bh, !0, i) && (g ? p = t.result : m = t.result), g || (ns(t, u, f, d, p, m, o, l, a), d = p = m = null), Be(t, !0, -1), b = t.input.charCodeAt(t.position)), (t.line === s || t.lineIndent > e) && b !== 0) + if ((t.line === s || t.lineIndent > e) && (m && (o = t.line, l = t.lineStart, a = t.position), qs(t, e, yh, !0, i) && (m ? p = t.result : g = t.result), m || (ns(t, u, f, d, p, g, o, l, a), d = p = g = null), Be(t, !0, -1), b = t.input.charCodeAt(t.position)), (t.line === s || t.lineIndent > e) && b !== 0) W(t, "bad indentation of a mapping entry"); else if (t.lineIndent < e) break; } - return g && ns(t, u, f, d, p, null, o, l, a), O && (t.tag = c, t.anchor = h, t.kind = "mapping", t.result = u), O; + return m && ns(t, u, f, d, p, null, o, l, a), O && (t.tag = c, t.anchor = h, t.kind = "mapping", t.result = u), O; } -function WSe(t) { +function VSe(t) { var e, n = !1, r = !1, i, s, o; if (o = t.input.charCodeAt(t.position), o !== 33) return !1; @@ -32943,10 +32943,10 @@ function WSe(t) { t.position < t.length ? (s = t.input.slice(e, t.position), o = t.input.charCodeAt(++t.position)) : W(t, "unexpected end of the stream within a verbatim tag"); } else { for (; o !== 0 && !$t(o); ) - o === 33 && (r ? W(t, "tag suffix cannot contain exclamation marks") : (i = t.input.slice(e - 1, t.position + 1), JA.test(i) || W(t, "named tag handle cannot contain such characters"), r = !0, e = t.position + 1)), o = t.input.charCodeAt(++t.position); - s = t.input.slice(e, t.position), ESe.test(s) && W(t, "tag suffix cannot contain flow indicator characters"); + o === 33 && (r ? W(t, "tag suffix cannot contain exclamation marks") : (i = t.input.slice(e - 1, t.position + 1), e$.test(i) || W(t, "named tag handle cannot contain such characters"), r = !0, e = t.position + 1)), o = t.input.charCodeAt(++t.position); + s = t.input.slice(e, t.position), DSe.test(s) && W(t, "tag suffix cannot contain flow indicator characters"); } - s && !e$.test(s) && W(t, "tag name cannot contain such characters: " + s); + s && !t$.test(s) && W(t, "tag name cannot contain such characters: " + s); try { s = decodeURIComponent(s); } catch { @@ -32954,7 +32954,7 @@ function WSe(t) { } return n ? t.tag = s : zr.call(t.tagMap, i) ? t.tag = t.tagMap[i] + s : i === "!" ? t.tag = "!" + s : i === "!!" ? t.tag = "tag:yaml.org,2002:" + s : W(t, 'undeclared tag handle "' + i + '"'), !0; } -function VSe(t) { +function jSe(t) { var e, n; if (n = t.input.charCodeAt(t.position), n !== 38) return !1; @@ -32962,7 +32962,7 @@ function VSe(t) { n = t.input.charCodeAt(++t.position); return t.position === e && W(t, "name of an anchor node must contain at least one character"), t.anchor = t.input.slice(e, t.position), !0; } -function jSe(t) { +function zSe(t) { var e, n, r; if (r = t.input.charCodeAt(t.position), r !== 42) return !1; @@ -32971,11 +32971,11 @@ function jSe(t) { return t.position === e && W(t, "name of an alias node must contain at least one character"), n = t.input.slice(e, t.position), zr.call(t.anchorMap, n) || W(t, 'unidentified alias "' + n + '"'), t.result = t.anchorMap[n], Be(t, !0, -1), !0; } function qs(t, e, n, r, i) { - var s, o, l, a = 1, c = !1, h = !1, u, f, d, p, m, g; - if (t.listener !== null && t.listener("open", t), t.tag = null, t.anchor = null, t.kind = null, t.result = null, s = o = l = bh === n || KA === n, r && Be(t, !0, -1) && (c = !0, t.lineIndent > e ? a = 1 : t.lineIndent === e ? a = 0 : t.lineIndent < e && (a = -1)), a === 1) - for (; WSe(t) || VSe(t); ) + var s, o, l, a = 1, c = !1, h = !1, u, f, d, p, g, m; + if (t.listener !== null && t.listener("open", t), t.tag = null, t.anchor = null, t.kind = null, t.result = null, s = o = l = yh === n || JA === n, r && Be(t, !0, -1) && (c = !0, t.lineIndent > e ? a = 1 : t.lineIndent === e ? a = 0 : t.lineIndent < e && (a = -1)), a === 1) + for (; VSe(t) || jSe(t); ) Be(t, !0, -1) ? (c = !0, l = s, t.lineIndent > e ? a = 1 : t.lineIndent === e ? a = 0 : t.lineIndent < e && (a = -1)) : l = !1; - if (l && (l = c || i), (a === 1 || bh === n) && (Oh === n || HA === n ? m = e : m = e + 1, g = t.position - t.lineStart, a === 1 ? l && (aw(t, g) || XSe(t, g, m)) || BSe(t, m) ? h = !0 : (o && YSe(t, m) || NSe(t, m) || qSe(t, m) ? h = !0 : jSe(t) ? (h = !0, (t.tag !== null || t.anchor !== null) && W(t, "alias node should not have any properties")) : ISe(t, m, Oh === n) && (h = !0, t.tag === null && (t.tag = "?")), t.anchor !== null && (t.anchorMap[t.anchor] = t.result)) : a === 0 && (h = l && aw(t, g))), t.tag === null) + if (l && (l = c || i), (a === 1 || yh === n) && (bh === n || KA === n ? g = e : g = e + 1, m = t.position - t.lineStart, a === 1 ? l && (cw(t, m) || WSe(t, m, g)) || YSe(t, g) ? h = !0 : (o && XSe(t, g) || qSe(t, g) || BSe(t, g) ? h = !0 : zSe(t) ? (h = !0, (t.tag !== null || t.anchor !== null) && W(t, "alias node should not have any properties")) : NSe(t, g, bh === n) && (h = !0, t.tag === null && (t.tag = "?")), t.anchor !== null && (t.anchorMap[t.anchor] = t.result)) : a === 0 && (h = l && cw(t, m))), t.tag === null) t.anchor !== null && (t.anchorMap[t.anchor] = t.result); else if (t.tag === "?") { for (t.result !== null && t.kind !== "scalar" && W(t, 'unacceptable node kind for ! tag; it should be "scalar", not "' + t.kind + '"'), u = 0, f = t.implicitTypes.length; u < f; u += 1) @@ -32996,7 +32996,7 @@ function qs(t, e, n, r, i) { } return t.listener !== null && t.listener("close", t), t.tag !== null || t.anchor !== null || h; } -function zSe(t) { +function FSe(t) { var e = t.position, n, r, i, s = !1, o; for (t.version = null, t.checkLineBreaks = t.legacy, t.tagMap = /* @__PURE__ */ Object.create(null), t.anchorMap = /* @__PURE__ */ Object.create(null); (o = t.input.charCodeAt(t.position)) !== 0 && (Be(t, !0, -1), o = t.input.charCodeAt(t.position), !(t.lineIndent > 0 || o !== 37)); ) { for (s = !0, o = t.input.charCodeAt(++t.position), n = t.position; o !== 0 && !$t(o); ) @@ -33016,9 +33016,9 @@ function zSe(t) { o = t.input.charCodeAt(++t.position); i.push(t.input.slice(n, t.position)); } - o !== 0 && Yg(t), zr.call(ow, r) ? ow[r](t, r, i) : yh(t, 'unknown document directive "' + r + '"'); + o !== 0 && Xm(t), zr.call(lw, r) ? lw[r](t, r, i) : wh(t, 'unknown document directive "' + r + '"'); } - if (Be(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, Be(t, !0, -1)) : s && W(t, "directives end mark is expected"), qs(t, t.lineIndent - 1, bh, !1, !0), Be(t, !0, -1), t.checkLineBreaks && QSe.test(t.input.slice(e, t.position)) && yh(t, "non-ASCII line breaks are interpreted as content"), t.documents.push(t.result), t.position === t.lineStart && gu(t)) { + if (Be(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, Be(t, !0, -1)) : s && W(t, "directives end mark is expected"), qs(t, t.lineIndent - 1, yh, !1, !0), Be(t, !0, -1), t.checkLineBreaks && ESe.test(t.input.slice(e, t.position)) && wh(t, "non-ASCII line breaks are interpreted as content"), t.documents.push(t.result), t.position === t.lineStart && Ou(t)) { t.input.charCodeAt(t.position) === 46 && (t.position += 3, Be(t, !0, -1)); return; } @@ -33027,52 +33027,52 @@ function zSe(t) { else return; } -function i$(t, e) { +function s$(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 n = new LSe(t, e), r = t.indexOf("\0"); + var n = new ISe(t, e), r = t.indexOf("\0"); for (r !== -1 && (n.position = r, W(n, "null byte is not allowed in input")), n.input += "\0"; n.input.charCodeAt(n.position) === 32; ) n.lineIndent += 1, n.position += 1; for (; n.position < n.length - 1; ) - zSe(n); + FSe(n); return n.documents; } -function FSe(t, e, n) { +function USe(t, e, n) { e !== null && typeof e == "object" && typeof n > "u" && (n = e, e = null); - var r = i$(t, n); + var r = s$(t, n); if (typeof e != "function") return r; for (var i = 0, s = r.length; i < s; i += 1) e(r[i]); } -function USe(t, e) { - var n = i$(t, e); +function GSe(t, e) { + var n = s$(t, e); if (n.length !== 0) { if (n.length === 1) return n[0]; throw new Ot("expected a single document in the stream, but found more"); } } -var GSe = FSe, HSe = USe, s$ = { - loadAll: GSe, - load: HSe -}, o$ = Object.prototype.toString, l$ = Object.prototype.hasOwnProperty, Wg = 65279, KSe = 9, Ql = 10, JSe = 13, e_e = 32, t_e = 33, n_e = 34, Vp = 35, r_e = 37, i_e = 38, s_e = 39, o_e = 42, a$ = 44, l_e = 45, wh = 58, a_e = 61, c_e = 62, h_e = 63, u_e = 64, c$ = 91, h$ = 93, f_e = 96, u$ = 123, d_e = 124, f$ = 125, mt = {}; -mt[0] = "\\0"; -mt[7] = "\\a"; -mt[8] = "\\b"; -mt[9] = "\\t"; -mt[10] = "\\n"; -mt[11] = "\\v"; -mt[12] = "\\f"; -mt[13] = "\\r"; -mt[27] = "\\e"; -mt[34] = '\\"'; -mt[92] = "\\\\"; -mt[133] = "\\N"; -mt[160] = "\\_"; -mt[8232] = "\\L"; -mt[8233] = "\\P"; -var p_e = [ +var HSe = USe, KSe = GSe, o$ = { + loadAll: HSe, + load: KSe +}, l$ = Object.prototype.toString, a$ = Object.prototype.hasOwnProperty, Vm = 65279, JSe = 9, Tl = 10, e_e = 13, t_e = 32, n_e = 33, r_e = 34, jp = 35, i_e = 37, s_e = 38, o_e = 39, l_e = 42, c$ = 44, a_e = 45, kh = 58, c_e = 61, h_e = 62, u_e = 63, f_e = 64, h$ = 91, u$ = 93, d_e = 96, f$ = 123, p_e = 124, d$ = 125, gt = {}; +gt[0] = "\\0"; +gt[7] = "\\a"; +gt[8] = "\\b"; +gt[9] = "\\t"; +gt[10] = "\\n"; +gt[11] = "\\v"; +gt[12] = "\\f"; +gt[13] = "\\r"; +gt[27] = "\\e"; +gt[34] = '\\"'; +gt[92] = "\\\\"; +gt[133] = "\\N"; +gt[160] = "\\_"; +gt[8232] = "\\L"; +gt[8233] = "\\P"; +var g_e = [ "y", "Y", "yes", @@ -33090,15 +33090,15 @@ var p_e = [ "Off", "OFF" ], m_e = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/; -function g_e(t, e) { +function O_e(t, e) { var n, r, i, s, o, l, a; if (e === null) return {}; for (n = {}, r = Object.keys(e), i = 0, s = r.length; i < s; i += 1) - o = r[i], l = String(e[o]), o.slice(0, 2) === "!!" && (o = "tag:yaml.org,2002:" + o.slice(2)), a = t.compiledTypeMap.fallback[o], a && l$.call(a.styleAliases, l) && (l = a.styleAliases[l]), n[o] = l; + o = r[i], l = String(e[o]), o.slice(0, 2) === "!!" && (o = "tag:yaml.org,2002:" + o.slice(2)), a = t.compiledTypeMap.fallback[o], a && a$.call(a.styleAliases, l) && (l = a.styleAliases[l]), n[o] = l; return n; } -function O_e(t) { +function b_e(t) { var e, n, r; if (e = t.toString(16).toUpperCase(), t <= 255) n = "x", r = 2; @@ -33110,87 +33110,87 @@ function O_e(t) { throw new Ot("code point within a string may not be greater than 0xFFFFFFFF"); return "\\" + n + Xe.repeat("0", r - e.length) + e; } -var b_e = 1, El = 2; -function y_e(t) { - this.schema = t.schema || Bg, this.indent = Math.max(1, t.indent || 2), this.noArrayIndent = t.noArrayIndent || !1, this.skipInvalid = t.skipInvalid || !1, this.flowLevel = Xe.isNothing(t.flowLevel) ? -1 : t.flowLevel, this.styleMap = g_e(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 === '"' ? El : b_e, this.forceQuotes = t.forceQuotes || !1, this.replacer = typeof t.replacer == "function" ? t.replacer : null, this.implicitTypes = this.schema.compiledImplicit, this.explicitTypes = this.schema.compiledExplicit, this.tag = null, this.result = "", this.duplicates = [], this.usedDuplicates = null; +var y_e = 1, Ql = 2; +function w_e(t) { + this.schema = t.schema || Ym, this.indent = Math.max(1, t.indent || 2), this.noArrayIndent = t.noArrayIndent || !1, this.skipInvalid = t.skipInvalid || !1, this.flowLevel = Xe.isNothing(t.flowLevel) ? -1 : t.flowLevel, this.styleMap = O_e(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 === '"' ? Ql : y_e, 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 cw(t, e) { +function hw(t, e) { for (var n = Xe.repeat(" ", e), r = 0, i = -1, s = "", o, l = t.length; r < l; ) i = t.indexOf(` `, r), i === -1 ? (o = t.slice(r), r = l) : (o = t.slice(r, i + 1), r = i + 1), o.length && o !== ` ` && (s += n), s += o; return s; } -function jp(t, e) { +function zp(t, e) { return ` ` + Xe.repeat(" ", t.indent * e); } -function w_e(t, e) { +function k_e(t, e) { var n, r, i; for (n = 0, r = t.implicitTypes.length; n < r; n += 1) if (i = t.implicitTypes[n], i.resolve(e)) return !0; return !1; } -function kh(t) { - return t === e_e || t === KSe; -} -function Dl(t) { - return 32 <= t && t <= 126 || 161 <= t && t <= 55295 && t !== 8232 && t !== 8233 || 57344 <= t && t <= 65533 && t !== Wg || 65536 <= t && t <= 1114111; +function xh(t) { + return t === t_e || t === JSe; } -function hw(t) { - return Dl(t) && t !== Wg && t !== JSe && t !== Ql; +function El(t) { + return 32 <= t && t <= 126 || 161 <= t && t <= 55295 && t !== 8232 && t !== 8233 || 57344 <= t && t <= 65533 && t !== Vm || 65536 <= t && t <= 1114111; } -function uw(t, e, n) { - var r = hw(t), i = r && !kh(t); - return (n ? r : r && t !== a$ && t !== c$ && t !== h$ && t !== u$ && t !== f$) && t !== Vp && !(e === wh && !i) || hw(e) && !kh(e) && t === Vp || e === wh && i; +function uw(t) { + return El(t) && t !== Vm && t !== e_e && t !== Tl; } -function k_e(t) { - return Dl(t) && t !== Wg && !kh(t) && t !== l_e && t !== h_e && t !== wh && t !== a$ && t !== c$ && t !== h$ && t !== u$ && t !== f$ && t !== Vp && t !== i_e && t !== o_e && t !== t_e && t !== d_e && t !== a_e && t !== c_e && t !== s_e && t !== n_e && t !== r_e && t !== u_e && t !== f_e; +function fw(t, e, n) { + var r = uw(t), i = r && !xh(t); + return (n ? r : r && t !== c$ && t !== h$ && t !== u$ && t !== f$ && t !== d$) && t !== jp && !(e === kh && !i) || uw(e) && !xh(e) && t === jp || e === kh && i; } function x_e(t) { - return !kh(t) && t !== wh; + return El(t) && t !== Vm && !xh(t) && t !== a_e && t !== u_e && t !== kh && t !== c$ && t !== h$ && t !== u$ && t !== f$ && t !== d$ && t !== jp && t !== s_e && t !== l_e && t !== n_e && t !== p_e && t !== c_e && t !== h_e && t !== o_e && t !== r_e && t !== i_e && t !== f_e && t !== d_e; +} +function v_e(t) { + return !xh(t) && t !== kh; } function To(t, e) { var n = t.charCodeAt(e), r; return n >= 55296 && n <= 56319 && e + 1 < t.length && (r = t.charCodeAt(e + 1), r >= 56320 && r <= 57343) ? (n - 55296) * 1024 + r - 56320 + 65536 : n; } -function d$(t) { +function p$(t) { var e = /^\n* /; return e.test(t); } -var p$ = 1, zp = 2, m$ = 3, g$ = 4, Hi = 5; -function v_e(t, e, n, r, i, s, o, l) { - var a, c = 0, h = null, u = !1, f = !1, d = r !== -1, p = -1, m = k_e(To(t, 0)) && x_e(To(t, t.length - 1)); +var g$ = 1, Fp = 2, m$ = 3, O$ = 4, Hi = 5; +function S_e(t, e, n, r, i, s, o, l) { + var a, c = 0, h = null, u = !1, f = !1, d = r !== -1, p = -1, g = x_e(To(t, 0)) && v_e(To(t, t.length - 1)); if (e || o) for (a = 0; a < t.length; c >= 65536 ? a += 2 : a++) { - if (c = To(t, a), !Dl(c)) + if (c = To(t, a), !El(c)) return Hi; - m = m && uw(c, h, l), h = c; + g = g && fw(c, h, l), h = c; } else { for (a = 0; a < t.length; c >= 65536 ? a += 2 : a++) { - if (c = To(t, a), c === Ql) + if (c = To(t, a), c === Tl) u = !0, d && (f = f || a - p - 1 > r && t[p + 1] !== " ", p = a); - else if (!Dl(c)) + else if (!El(c)) return Hi; - m = m && uw(c, h, l), h = c; + g = g && fw(c, h, l), h = c; } f = f || d && a - p - 1 > r && t[p + 1] !== " "; } - return !u && !f ? m && !o && !i(t) ? p$ : s === El ? Hi : zp : n > 9 && d$(t) ? Hi : o ? s === El ? Hi : zp : f ? g$ : m$; + return !u && !f ? g && !o && !i(t) ? g$ : s === Ql ? Hi : Fp : n > 9 && p$(t) ? Hi : o ? s === Ql ? Hi : Fp : f ? O$ : m$; } -function S_e(t, e, n, r, i) { +function __e(t, e, n, r, i) { t.dump = function() { if (e.length === 0) - return t.quotingType === El ? '""' : "''"; - if (!t.noCompatMode && (p_e.indexOf(e) !== -1 || m_e.test(e))) - return t.quotingType === El ? '"' + e + '"' : "'" + e + "'"; + return t.quotingType === Ql ? '""' : "''"; + if (!t.noCompatMode && (g_e.indexOf(e) !== -1 || m_e.test(e))) + return t.quotingType === Ql ? '"' + e + '"' : "'" + e + "'"; var s = t.indent * Math.max(1, n), o = t.lineWidth === -1 ? -1 : Math.max(Math.min(t.lineWidth, 40), t.lineWidth - s), l = r || t.flowLevel > -1 && n >= t.flowLevel; function a(c) { - return w_e(t, c); + return k_e(t, c); } - switch (v_e( + switch (S_e( e, l, t.indent, @@ -33200,47 +33200,47 @@ function S_e(t, e, n, r, i) { t.forceQuotes && !r, i )) { - case p$: + case g$: return e; - case zp: + case Fp: return "'" + e.replace(/'/g, "''") + "'"; case m$: - return "|" + fw(e, t.indent) + dw(cw(e, s)); - case g$: - return ">" + fw(e, t.indent) + dw(cw(__e(e, o), s)); + return "|" + dw(e, t.indent) + pw(hw(e, s)); + case O$: + return ">" + dw(e, t.indent) + pw(hw(C_e(e, o), s)); case Hi: - return '"' + C_e(e) + '"'; + return '"' + A_e(e) + '"'; default: throw new Ot("impossible error: invalid scalar style"); } }(); } -function fw(t, e) { - var n = d$(t) ? String(e) : "", r = t[t.length - 1] === ` +function dw(t, e) { + var n = p$(t) ? String(e) : "", r = t[t.length - 1] === ` `, i = r && (t[t.length - 2] === ` ` || t === ` `), s = i ? "+" : r ? "" : "-"; return n + s + ` `; } -function dw(t) { +function pw(t) { return t[t.length - 1] === ` ` ? t.slice(0, -1) : t; } -function __e(t, e) { +function C_e(t, e) { for (var n = /(\n+)([^\n]*)/g, r = function() { var c = t.indexOf(` `); - return c = c !== -1 ? c : t.length, n.lastIndex = c, pw(t.slice(0, c), e); + return c = c !== -1 ? c : t.length, n.lastIndex = c, gw(t.slice(0, c), e); }(), i = t[0] === ` ` || t[0] === " ", s, o; o = n.exec(t); ) { var l = o[1], a = o[2]; s = a[0] === " ", r += l + (!i && !s && a !== "" ? ` -` : "") + pw(a, e), i = s; +` : "") + gw(a, e), i = s; } return r; } -function pw(t, e) { +function gw(t, e) { if (t === "" || t[0] === " ") return t; for (var n = / [^ ]/g, r, i = 0, s, o = 0, l = 0, a = ""; r = n.exec(t); ) @@ -33250,30 +33250,30 @@ function pw(t, e) { `, t.length - i > e && o > i ? a += t.slice(i, o) + ` ` + t.slice(o + 1) : a += t.slice(i), a.slice(1); } -function C_e(t) { +function A_e(t) { for (var e = "", n = 0, r, i = 0; i < t.length; n >= 65536 ? i += 2 : i++) - n = To(t, i), r = mt[n], !r && Dl(n) ? (e += t[i], n >= 65536 && (e += t[i + 1])) : e += r || O_e(n); + n = To(t, i), r = gt[n], !r && El(n) ? (e += t[i], n >= 65536 && (e += t[i + 1])) : e += r || b_e(n); return e; } -function A_e(t, e, n) { +function $_e(t, e, n) { var r = "", i = t.tag, s, o, l; for (s = 0, o = n.length; s < o; s += 1) - l = n[s], t.replacer && (l = t.replacer.call(n, String(s), l)), (mr(t, e, l, !1, !1) || typeof l > "u" && mr(t, e, null, !1, !1)) && (r !== "" && (r += "," + (t.condenseFlow ? "" : " ")), r += t.dump); + l = n[s], t.replacer && (l = t.replacer.call(n, String(s), l)), (gr(t, e, l, !1, !1) || typeof l > "u" && gr(t, e, null, !1, !1)) && (r !== "" && (r += "," + (t.condenseFlow ? "" : " ")), r += t.dump); t.tag = i, t.dump = "[" + r + "]"; } function mw(t, e, n, r) { var i = "", s = t.tag, o, l, a; for (o = 0, l = n.length; o < l; o += 1) - a = n[o], t.replacer && (a = t.replacer.call(n, String(o), a)), (mr(t, e + 1, a, !0, !0, !1, !0) || typeof a > "u" && mr(t, e + 1, null, !0, !0, !1, !0)) && ((!r || i !== "") && (i += jp(t, e)), t.dump && Ql === t.dump.charCodeAt(0) ? i += "-" : i += "- ", i += t.dump); + a = n[o], t.replacer && (a = t.replacer.call(n, String(o), a)), (gr(t, e + 1, a, !0, !0, !1, !0) || typeof a > "u" && gr(t, e + 1, null, !0, !0, !1, !0)) && ((!r || i !== "") && (i += zp(t, e)), t.dump && Tl === t.dump.charCodeAt(0) ? i += "-" : i += "- ", i += t.dump); t.tag = s, t.dump = i || "[]"; } -function $_e(t, e, n) { +function P_e(t, e, n) { var r = "", i = t.tag, s = Object.keys(n), o, l, a, c, h; for (o = 0, l = s.length; o < l; o += 1) - h = "", r !== "" && (h += ", "), t.condenseFlow && (h += '"'), a = s[o], c = n[a], t.replacer && (c = t.replacer.call(n, a, c)), mr(t, e, a, !1, !1) && (t.dump.length > 1024 && (h += "? "), h += t.dump + (t.condenseFlow ? '"' : "") + ":" + (t.condenseFlow ? "" : " "), mr(t, e, c, !1, !1) && (h += t.dump, r += h)); + h = "", r !== "" && (h += ", "), t.condenseFlow && (h += '"'), a = s[o], c = n[a], t.replacer && (c = t.replacer.call(n, a, c)), gr(t, e, a, !1, !1) && (t.dump.length > 1024 && (h += "? "), h += t.dump + (t.condenseFlow ? '"' : "") + ":" + (t.condenseFlow ? "" : " "), gr(t, e, c, !1, !1) && (h += t.dump, r += h)); t.tag = i, t.dump = "{" + r + "}"; } -function P_e(t, e, n, r) { +function T_e(t, e, n, r) { var i = "", s = t.tag, o = Object.keys(n), l, a, c, h, u, f; if (t.sortKeys === !0) o.sort(); @@ -33282,17 +33282,17 @@ function P_e(t, e, n, r) { else if (t.sortKeys) throw new Ot("sortKeys must be a boolean or a function"); for (l = 0, a = o.length; l < a; l += 1) - f = "", (!r || i !== "") && (f += jp(t, e)), c = o[l], h = n[c], t.replacer && (h = t.replacer.call(n, c, h)), mr(t, e + 1, c, !0, !0, !0) && (u = t.tag !== null && t.tag !== "?" || t.dump && t.dump.length > 1024, u && (t.dump && Ql === t.dump.charCodeAt(0) ? f += "?" : f += "? "), f += t.dump, u && (f += jp(t, e)), mr(t, e + 1, h, !0, u) && (t.dump && Ql === t.dump.charCodeAt(0) ? f += ":" : f += ": ", f += t.dump, i += f)); + f = "", (!r || i !== "") && (f += zp(t, e)), c = o[l], h = n[c], t.replacer && (h = t.replacer.call(n, c, h)), gr(t, e + 1, c, !0, !0, !0) && (u = t.tag !== null && t.tag !== "?" || t.dump && t.dump.length > 1024, u && (t.dump && Tl === t.dump.charCodeAt(0) ? f += "?" : f += "? "), f += t.dump, u && (f += zp(t, e)), gr(t, e + 1, h, !0, u) && (t.dump && Tl === t.dump.charCodeAt(0) ? f += ":" : f += ": ", f += t.dump, i += f)); t.tag = s, t.dump = i || "{}"; } -function gw(t, e, n) { +function Ow(t, e, n) { var r, i, s, o, l, a; for (i = n ? t.explicitTypes : t.implicitTypes, s = 0, o = i.length; s < o; s += 1) if (l = i[s], (l.instanceOf || l.predicate) && (!l.instanceOf || typeof e == "object" && e instanceof l.instanceOf) && (!l.predicate || l.predicate(e))) { if (n ? l.multi && l.representName ? t.tag = l.representName(e) : t.tag = l.tag : t.tag = "?", l.represent) { - if (a = t.styleMap[l.tag] || l.defaultStyle, o$.call(l.represent) === "[object Function]") + if (a = t.styleMap[l.tag] || l.defaultStyle, l$.call(l.represent) === "[object Function]") r = l.represent(e, a); - else if (l$.call(l.represent, a)) + else if (a$.call(l.represent, a)) r = l.represent[a](e, a); else throw new Ot("!<" + l.tag + '> tag resolver accepts not "' + a + '" style'); @@ -33302,20 +33302,20 @@ function gw(t, e, n) { } return !1; } -function mr(t, e, n, r, i, s, o) { - t.tag = null, t.dump = n, gw(t, n, !1) || gw(t, n, !0); - var l = o$.call(t.dump), a = r, c; +function gr(t, e, n, r, i, s, o) { + t.tag = null, t.dump = n, Ow(t, n, !1) || Ow(t, n, !0); + var l = l$.call(t.dump), a = r, c; r && (r = t.flowLevel < 0 || t.flowLevel > e); var h = l === "[object Object]" || l === "[object Array]", u, f; if (h && (u = t.duplicates.indexOf(n), f = u !== -1), (t.tag !== null && t.tag !== "?" || f || t.indent !== 2 && e > 0) && (i = !1), f && t.usedDuplicates[u]) t.dump = "*ref_" + u; else { if (h && f && !t.usedDuplicates[u] && (t.usedDuplicates[u] = !0), l === "[object Object]") - r && Object.keys(t.dump).length !== 0 ? (P_e(t, e, t.dump, i), f && (t.dump = "&ref_" + u + t.dump)) : ($_e(t, e, t.dump), f && (t.dump = "&ref_" + u + " " + t.dump)); + r && Object.keys(t.dump).length !== 0 ? (T_e(t, e, t.dump, i), f && (t.dump = "&ref_" + u + t.dump)) : (P_e(t, e, t.dump), f && (t.dump = "&ref_" + u + " " + t.dump)); else if (l === "[object Array]") - r && t.dump.length !== 0 ? (t.noArrayIndent && !o && e > 0 ? mw(t, e - 1, t.dump, i) : mw(t, e, t.dump, i), f && (t.dump = "&ref_" + u + t.dump)) : (A_e(t, e, t.dump), f && (t.dump = "&ref_" + u + " " + t.dump)); + r && t.dump.length !== 0 ? (t.noArrayIndent && !o && e > 0 ? mw(t, e - 1, t.dump, i) : mw(t, e, t.dump, i), f && (t.dump = "&ref_" + u + t.dump)) : ($_e(t, e, t.dump), f && (t.dump = "&ref_" + u + " " + t.dump)); else if (l === "[object String]") - t.tag !== "?" && S_e(t, t.dump, e, s, a); + t.tag !== "?" && __e(t, t.dump, e, s, a); else { if (l === "[object Undefined]") return !1; @@ -33329,71 +33329,71 @@ function mr(t, e, n, r, i, s, o) { } return !0; } -function T_e(t, e) { +function Q_e(t, e) { var n = [], r = [], i, s; - for (Fp(t, n, r), i = 0, s = r.length; i < s; i += 1) + for (Up(t, n, r), i = 0, s = r.length; i < s; i += 1) e.duplicates.push(n[r[i]]); e.usedDuplicates = new Array(s); } -function Fp(t, e, n) { +function Up(t, e, n) { var r, i, s; if (t !== null && typeof t == "object") if (i = e.indexOf(t), i !== -1) n.indexOf(i) === -1 && n.push(i); else if (e.push(t), Array.isArray(t)) for (i = 0, s = t.length; i < s; i += 1) - Fp(t[i], e, n); + Up(t[i], e, n); else for (r = Object.keys(t), i = 0, s = r.length; i < s; i += 1) - Fp(t[r[i]], e, n); + Up(t[r[i]], e, n); } -function Q_e(t, e) { +function E_e(t, e) { e = e || {}; - var n = new y_e(e); - n.noRefs || T_e(t, n); + var n = new w_e(e); + n.noRefs || Q_e(t, n); var r = t; - return n.replacer && (r = n.replacer.call({ "": r }, "", r)), mr(n, 0, r, !0, !0) ? n.dump + ` + return n.replacer && (r = n.replacer.call({ "": r }, "", r)), gr(n, 0, r, !0, !0) ? n.dump + ` ` : ""; } -var E_e = Q_e, D_e = { - dump: E_e +var D_e = E_e, R_e = { + dump: D_e }; -function Vg(t, e) { +function jm(t, e) { return function() { throw new Error("Function yaml." + t + " is removed in js-yaml 4. Use yaml." + e + " instead, which is now safe by default."); }; } -var R_e = ot, M_e = EA, Z_e = ZA, L_e = BA, I_e = YA, N_e = Bg, q_e = s$.load, B_e = s$.loadAll, Y_e = D_e.dump, X_e = Ot, W_e = { - binary: zA, - float: qA, - map: MA, - null: LA, - pairs: UA, - set: GA, - timestamp: VA, - bool: IA, - int: NA, - merge: jA, - omap: FA, - seq: RA, - str: DA -}, V_e = Vg("safeLoad", "load"), j_e = Vg("safeLoadAll", "loadAll"), z_e = Vg("safeDump", "dump"), F_e = { - Type: R_e, - Schema: M_e, - FAILSAFE_SCHEMA: Z_e, - JSON_SCHEMA: L_e, - CORE_SCHEMA: I_e, - DEFAULT_SCHEMA: N_e, - load: q_e, - loadAll: B_e, - dump: Y_e, - YAMLException: X_e, - types: W_e, - safeLoad: V_e, - safeLoadAll: j_e, - safeDump: z_e +var M_e = ot, Z_e = DA, L_e = LA, I_e = YA, N_e = XA, q_e = Ym, B_e = o$.load, Y_e = o$.loadAll, X_e = R_e.dump, W_e = Ot, V_e = { + binary: FA, + float: BA, + map: ZA, + null: IA, + pairs: GA, + set: HA, + timestamp: jA, + bool: NA, + int: qA, + merge: zA, + omap: UA, + seq: MA, + str: RA +}, j_e = jm("safeLoad", "load"), z_e = jm("safeLoadAll", "loadAll"), F_e = jm("safeDump", "dump"), U_e = { + Type: M_e, + Schema: Z_e, + FAILSAFE_SCHEMA: L_e, + JSON_SCHEMA: I_e, + CORE_SCHEMA: N_e, + DEFAULT_SCHEMA: q_e, + load: B_e, + loadAll: Y_e, + dump: X_e, + YAMLException: W_e, + types: V_e, + safeLoad: j_e, + safeLoadAll: z_e, + safeDump: F_e }; -function U_e(t, e, n, r, i, s = !0) { +function G_e(t, e, n, r, i, s = !0) { const o = []; for (const a of [...t.core.ruler.__rules__].reverse()) { if (a.name === e) { @@ -33433,7 +33433,7 @@ class Mi { return (i == null ? void 0 : i.content) !== void 0 && (s.content = i.content), (i == null ? void 0 : i.level) !== void 0 && (s.level = i.level), (i == null ? void 0 : i.map) !== void 0 && (s.map = i.map), (i == null ? void 0 : i.block) !== void 0 && (s.block = i.block), (i == null ? void 0 : i.info) !== void 0 && (s.info = i.info), (i == null ? void 0 : i.meta) !== void 0 && (s.meta = i.meta), (i == null ? void 0 : i.children) !== void 0 && (s.children = i.children), s; } nestedParse(e, n) { - return U_e(this.state.md, "run_directives", e, this.state.env, n, !0); + return G_e(this.state.md, "run_directives", e, this.state.env, n, !0); } } class Er extends Error { @@ -33441,12 +33441,12 @@ class Er extends Error { super(...arguments), this.name = "DirectiveParsingError"; } } -function G_e(t, e) { +function H_e(t, e) { const n = t.meta.arg || "", r = t.content; let i = r.trim() ? r.split(/\r?\n/) : [], s = 0, o = {}; - (Object.keys(e.option_spec || {}) || e.rawOptions) && ([i, o, s] = O$(i, e)); + (Object.keys(e.option_spec || {}) || e.rawOptions) && ([i, o, s] = b$(i, e)); let l = []; - if (!e.required_arguments && !e.optional_arguments ? n && (s = 0, i = [n].concat(i)) : l = H_e(n, e), i.length && !i[0].trim() && (i.shift(), s++), i.length && !e.has_content) + if (!e.required_arguments && !e.optional_arguments ? n && (s = 0, i = [n].concat(i)) : l = K_e(n, e), i.length && !i[0].trim() && (i.shift(), s++), i.length && !e.has_content) throw new Er("Has content but content not allowed"); return { map: t.map ? t.map : [0, 0], @@ -33460,7 +33460,7 @@ function G_e(t, e) { ] : [0, 0] }; } -function O$(t, e) { +function b$(t, e) { let n = 1, r = {}, i = null; if (t.length && t[0].startsWith("---")) { n++; @@ -33490,7 +33490,7 @@ function O$(t, e) { } if (i !== null) try { - const s = F_e.load(i.join(` + const s = U_e.load(i.join(` `)); if (s !== null && typeof s == "object") r = s; @@ -33517,7 +33517,7 @@ ${c}`); } return [t, r, n]; } -function H_e(t, e) { +function K_e(t, e) { var n; let r = t.trim() ? (n = t.trim()) === null || n === void 0 ? void 0 : n.split(/\s+/) : []; const i = (e.required_arguments || 0) + (e.optional_arguments || 0); @@ -33531,10 +33531,10 @@ function H_e(t, e) { throw new Er(`maximum ${i} argument(s) allowed, ${r.length} supplied`); return r; } -function K_e(t, e) { +function J_e(t, e) { var n; let r = e.directivesAfter || "block"; - (!((n = e.replaceFences) !== null && n !== void 0) || n) && (t.core.ruler.after(r, "fence_to_directive", J_e), r = "fence_to_directive"), t.core.ruler.after(r, "run_directives", eCe(e.directives || {})), t.renderer.rules.directive = (i, s) => { + (!((n = e.replaceFences) !== null && n !== void 0) || n) && (t.core.ruler.after(r, "fence_to_directive", eCe), r = "fence_to_directive"), t.core.ruler.after(r, "run_directives", tCe(e.directives || {})), t.renderer.rules.directive = (i, s) => { const o = i[s]; return ` `; }; } -function J_e(t) { +function eCe(t) { for (const e of t.tokens) if (e.type === "fence" || e.type === "colon_fence") { const n = e.info.match(/^\{([^\s}]+)\}\s*(.*)$/); @@ -33561,13 +33561,13 @@ function J_e(t) { } return !0; } -function eCe(t) { +function tCe(t) { function e(n) { const r = []; for (const i of n.tokens) if (i.type === "directive" && i.info in t) try { - const s = new t[i.info](n), o = G_e(i, s), [l, a] = O$(i.content.trim() ? i.content.split(/\r?\n/) : [], s), c = new n.Token("parsed_directive_open", "", 1); + const s = new t[i.info](n), o = H_e(i, s), [l, a] = b$(i.content.trim() ? i.content.split(/\r?\n/) : [], s), c = new n.Token("parsed_directive_open", "", 1); c.info = i.info, c.hidden = !0, c.content = l.join(` `).trim(), c.meta = { arg: i.meta.arg, @@ -33587,7 +33587,7 @@ function eCe(t) { } return e; } -function tCe(t) { +function nCe(t) { return t.toLowerCase().split(/\s+/).join("-").replace(/[^a-z0-9]+/, "-").replace(/^[-0-9]+|-+$/, ""); } class Di extends Error { @@ -33595,16 +33595,16 @@ class Di extends Error { super(...arguments), this.name = "OptionSpecError"; } } -const Fr = (t) => t, Up = (t) => { +const Fr = (t) => t, Gp = (t) => { if (!t) throw new Di("Argument required but none supplied"); return t; -}, Gp = (t) => { +}, Hp = (t) => { if (t.trim()) throw new Di(`No argument is allowed: "${t}" supplied`); return null; -}, ro = (t) => `${t || ""}`.split(/\s+/).map((e) => tCe(e)); -function b$(t) { +}, ro = (t) => `${t || ""}`.split(/\s+/).map((e) => nCe(e)); +function y$(t) { if (!t) throw new Di("Value is not set"); const e = Number.parseFloat(t); @@ -33612,34 +33612,34 @@ function b$(t) { throw new Di(`Value "${t}" is not an integer`); return e; } -function xh(t) { - const e = b$(t); +function vh(t) { + const e = y$(t); if (e < 0) throw new Di(`Value "${t}" must be positive or zero`); return e; } -const y$ = (t) => t ? xh(t) : null, nCe = (t) => (t = `${t || ""}`.replace(/\s+%$/, ""), xh(t)); -function w$(t, e) { +const w$ = (t) => t ? vh(t) : null, rCe = (t) => (t = `${t || ""}`.replace(/\s+%$/, ""), vh(t)); +function k$(t, e) { const r = new RegExp(`^(?[0-9.]+)\\s*(?${e.join("|")})$`).exec(t); if (!r || !r.groups) throw new Di(`not a positive measure of one of the following units: ${e.join("|")}`); return r.groups.number + r.groups.units; } -const k$ = ["em", "ex", "px", "in", "cm", "mm", "pt", "pc"], x$ = (t) => w$(t, [...k$, ""]), jg = (t, e = "") => { +const x$ = ["em", "ex", "px", "in", "cm", "mm", "pt", "pc"], v$ = (t) => k$(t, [...x$, ""]), zm = (t, e = "") => { try { - return w$(t, [...k$, "%"]); + return k$(t, [...x$, "%"]); } catch { - return x$(t) + e; + return v$(t) + e; } -}, rCe = (t, e = "") => t.toLowerCase() === "image" ? "image" : jg(t, e); -function zg(t) { +}, iCe = (t, e = "") => t.toLowerCase() === "image" ? "image" : zm(t, e); +function Fm(t) { return (e) => { if (e = e.toLowerCase().trim(), t.includes(e)) return e; throw new Di(`must be in: ${t.join("|")}`); }; } -const iCe = (t) => t; +const sCe = (t) => t; class vn extends Mi { constructor() { super(...arguments), this.final_argument_whitespace = !0, this.has_content = !0, this.option_spec = { @@ -33667,52 +33667,52 @@ class vn extends Mi { return r.push(...l), r.push(this.createToken("admonition_close", "aside", -1, { block: !0 })), r; } } -class sCe extends vn { +class oCe extends vn { constructor() { super(...arguments), this.required_arguments = 1; } } -class oCe extends vn { +class lCe extends vn { constructor() { super(...arguments), this.title = "Attention", this.kind = "attention"; } } -class lCe extends vn { +class aCe extends vn { constructor() { super(...arguments), this.title = "Caution", this.kind = "caution"; } } -class aCe extends vn { +class cCe extends vn { constructor() { super(...arguments), this.title = "Danger", this.kind = "danger"; } } -class cCe extends vn { +class hCe extends vn { constructor() { super(...arguments), this.title = "Error", this.kind = "error"; } } -class hCe extends vn { +class uCe extends vn { constructor() { super(...arguments), this.title = "Important", this.kind = "important"; } } -class uCe extends vn { +class fCe extends vn { constructor() { super(...arguments), this.title = "Hint", this.kind = "hint"; } } -class fCe extends vn { +class dCe extends vn { constructor() { super(...arguments), this.title = "Note", this.kind = "note"; } } -class dCe extends vn { +class pCe extends vn { constructor() { super(...arguments), this.title = "See Also", this.kind = "seealso"; } } -class pCe extends vn { +class gCe extends vn { constructor() { super(...arguments), this.title = "Tip", this.kind = "tip"; } @@ -33722,24 +33722,24 @@ class mCe extends vn { super(...arguments), this.title = "Warning", this.kind = "warning"; } } -const gCe = { - admonition: sCe, - attention: oCe, - caution: lCe, - danger: aCe, - error: cCe, - important: hCe, - hint: uCe, - note: fCe, - seealso: dCe, - tip: pCe, +const OCe = { + admonition: oCe, + attention: lCe, + caution: aCe, + danger: cCe, + error: hCe, + important: uCe, + hint: fCe, + note: dCe, + seealso: pCe, + tip: gCe, warning: mCe }; -class OCe extends Mi { +class bCe extends Mi { 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": y$, - force: Gp, + "number-lines": w$, + force: Hp, name: Fr, class: ro }; @@ -33752,15 +33752,15 @@ class OCe extends Mi { })]; } } -class bCe extends Mi { +class yCe extends Mi { constructor() { super(...arguments), this.required_arguments = 0, this.optional_arguments = 1, this.final_argument_whitespace = !1, this.has_content = !0, this.option_spec = { - linenos: Gp, - "lineno-start": b$, - dedent: y$, - "emphasize-lines": Up, - caption: Up, - force: Gp, + linenos: Hp, + "lineno-start": y$, + dedent: w$, + "emphasize-lines": Gp, + caption: Gp, + force: Hp, name: Fr, class: ro }; @@ -33773,7 +33773,7 @@ class bCe extends Mi { })]; } } -class yCe extends Mi { +class wCe extends Mi { constructor() { super(...arguments), this.required_arguments = 0, this.optional_arguments = 1, this.final_argument_whitespace = !1, this.has_content = !0, this.rawOptions = !0; } @@ -33785,25 +33785,25 @@ class yCe extends Mi { })]; } } -const wCe = { - code: OCe, - "code-block": bCe, - "code-cell": yCe -}, v$ = { +const kCe = { + code: bCe, + "code-block": yCe, + "code-cell": wCe +}, S$ = { alt: Fr, - height: x$, - width: jg, - scale: nCe, - target: Up, + height: v$, + width: zm, + scale: rCe, + target: Gp, class: ro, name: Fr }; -class S$ extends Mi { +class _$ extends Mi { constructor() { - super(...arguments), this.required_arguments = 1, this.optional_arguments = 0, this.final_argument_whitespace = !0, this.option_spec = Object.assign(Object.assign({}, v$), { align: zg(["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({}, S$), { align: Fm(["left", "center", "right", "top", "middle", "bottom"]) }); } create_image(e) { - const n = iCe(e.args[0] || ""), r = this.createToken("image", "img", 0, { map: e.map, block: !0 }); + const n = sCe(e.args[0] || ""), r = this.createToken("image", "img", 0, { map: e.map, block: !0 }); r.attrSet("src", n), r.attrSet("alt", e.options.alt || ""); const i = []; return e.options.alt && this.state.md.inline.parse(e.options.alt, this.state.md, this.state.env, i), r.children = i, e.options.height && r.attrSet("height", e.options.height), e.options.width && r.attrSet("width", e.options.width), e.options.align && r.attrJoin("class", `align-${e.options.align}`), e.options.class && r.attrJoin("class", e.options.class.join(" ")), r; @@ -33812,9 +33812,9 @@ class S$ extends Mi { return [this.create_image(e)]; } } -class kCe extends S$ { +class xCe extends _$ { constructor() { - super(...arguments), this.option_spec = Object.assign(Object.assign({}, v$), { align: zg(["left", "center", "right"]), figwidth: rCe, figclass: ro }), this.has_content = !0; + super(...arguments), this.option_spec = Object.assign(Object.assign({}, S$), { align: Fm(["left", "center", "right"]), figwidth: iCe, figclass: ro }), this.has_content = !0; } run(e) { const n = this.createToken("figure_open", "figure", 1, { @@ -33823,10 +33823,10 @@ class kCe extends S$ { }); e.options.figclass && n.attrJoin("class", e.options.figclass.join(" ")), e.options.align && n.attrJoin("class", `align-${e.options.align}`), e.options.figwidth && e.options.figwidth !== "image" && n.attrSet("width", e.options.figwidth); let r; - e.options.name && (r = $A( + e.options.name && (r = PA( this.state, n, - Pl.figure, + $l.figure, e.options.name, e.body.trim() ), n.attrJoin("class", "numbered")); @@ -33846,24 +33846,24 @@ class kCe extends S$ { block: !0 }); if (s = [f, ...d, p], h) { - const m = u + a.split(` -`).length + 1, g = this.createToken("figure_legend_open", "", 1, { + const g = u + a.split(` +`).length + 1, m = this.createToken("figure_legend_open", "", 1, { block: !0 - }), O = this.nestedParse(h, m), b = this.createToken("figure_legend_close", "", -1, { + }), O = this.nestedParse(h, g), b = this.createToken("figure_legend_close", "", -1, { block: !0 }); - o = [g, ...O, b]; + o = [m, ...O, b]; } } const l = this.createToken("figure_close", "figure", -1, { block: !0 }); return [n, i, ...s, ...o, l]; } } -const xCe = { - image: S$, - figure: kCe +const vCe = { + image: _$, + figure: xCe }; -class Fg { +class Um { constructor(e, n = !0) { if (this.children = [], this.children = [], n) { this._set_children_from_tokens(e); @@ -33899,7 +33899,7 @@ class Fg { } } _add_child(e) { - const n = new Fg(e, !1); + const n = new Um(e, !1); n.parent = this, this.children.push(n); } to_tokens() { @@ -33985,16 +33985,16 @@ class Fg { return this.attribute_token().attrs; } } -class vCe extends Mi { +class SCe extends Mi { constructor() { super(...arguments), this.required_arguments = 0, this.optional_arguments = 1, this.final_argument_whitespace = !0, this.has_content = !0, this.option_spec = { - "header-rows": xh, - "stub-columns": xh, - width: jg, + "header-rows": vh, + "stub-columns": vh, + width: zm, widths: Fr, class: ro, name: Fr, - align: zg(["left", "center", "right"]) + align: Fm(["left", "center", "right"]) }; } run(e) { @@ -34011,7 +34011,7 @@ class vCe extends Mi { let o = "th"; n ? (i.push(this.createToken("thead_open", "thead", 1, { level: 1 })), o = "th") : (i.push(this.createToken("tbody_open", "tbody", 1, { level: 1 })), o = "td"); let l, a = 0; - for (const c of new Fg(r.slice(1, -1)).children) { + for (const c of new Um(r.slice(1, -1)).children) { a += 1, this.assert(c.type === "list_item", `list item ${a} not of type 'list_item': ${c.type}`), this.assert(c.children.length === 1 && c.children[0].type === "bullet_list", `list item ${a} content not a nested bullet list`); const h = c.children[0].children; l === void 0 ? l = h.length : this.assert(h.length === l, `list item ${a} does not contain the same number of columns as previous items`), n && a === n + 1 && (i.push(this.createToken("thead_close", "thead", -1, { level: 1 })), i.push(this.createToken("tbody_open", "tbody", 1, { level: 1 })), o = "td"), i.push(this.createToken("tr_open", "tr", 1, { map: c.map, level: 2 })); @@ -34024,10 +34024,10 @@ class vCe extends Mi { return o === "td" ? i.push(this.createToken("tbody_close", "tbody", -1, { level: 1 })) : i.push(this.createToken("thead_close", "thead", -1, { level: 1 })), i.push(this.createToken("table_close", "table", -1)), i; } } -const SCe = { - "list-table": vCe +const _Ce = { + "list-table": SCe }; -class _Ce extends Mi { +class CCe extends Mi { constructor() { super(...arguments), this.required_arguments = 0, this.optional_arguments = 0, this.final_argument_whitespace = !1, this.has_content = !0, this.option_spec = { label: Fr @@ -34042,16 +34042,16 @@ class _Ce extends Mi { }); if (n.attrSet("class", "math block"), e.options.label) { n.attrSet("id", e.options.label); - const r = $A(this.state, n, Pl.equation, e.options.label, ""); + const r = PA(this.state, n, $l.equation, e.options.label, ""); n.attrSet("number", `${r.number}`), n.info = e.options.label, n.meta = { label: e.options.label, numbered: !0, number: r.number }; } return [n]; } } -const CCe = { - math: _Ce -}, ACe = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, gCe), xCe), wCe), SCe), CCe); -function $Ce(t) { +const ACe = { + math: CCe +}, $Ce = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, OCe), vCe), kCe), _Ce), ACe); +function PCe(t) { return (e) => { const n = mu(e); return n.references.forEach((r) => { @@ -34069,26 +34069,26 @@ function $Ce(t) { }), !0; }; } -function PCe(t, e) { - t.core.ruler.push("docutils_number", $Ce()); +function TCe(t, e) { + t.core.ruler.push("docutils_number", PCe()); } -const TCe = { +const QCe = { parseRoles: !0, replaceFences: !0, rolesAfter: "inline", directivesAfter: "block", - directives: ACe, - roles: $ve + directives: $Ce, + roles: Pve }; -function QCe(t, e) { - const n = Object.assign(Object.assign({}, TCe), e); - t.use(AA, n), t.use(K_e, n), t.use(PCe, n); +function ECe(t, e) { + const n = Object.assign(Object.assign({}, QCe), e); + t.use($A, n), t.use(J_e, n), t.use(TCe, n); } -const _$ = "myst-editor/", ECe = (t) => sessionStorage.getItem(_$ + t), Ow = (t, e) => sessionStorage.setItem(_$ + t, e), C$ = () => { +const C$ = "myst-editor/", DCe = (t) => sessionStorage.getItem(C$ + t), bw = (t, e) => sessionStorage.setItem(C$ + t, e), A$ = () => { for (var t in sessionStorage) t.startsWith("myst-editor") && sessionStorage.removeItem(t); }; -function DCe(t) { +function RCe(t) { return new Promise((e) => { const n = new MutationObserver(() => { const r = document.getElementById(t); @@ -34100,41 +34100,41 @@ function DCe(t) { })); }); } -const RCe = (t, e) => { +const MCe = (t, e) => { const n = document.getElementById(t); n && (n.outerHTML = e); -}, MCe = (t) => { +}, ZCe = (t) => { const e = document.getElementById(t); e && (e.outerHTML = e.innerHTML); -}, ZCe = (t, e) => { +}, LCe = (t, e) => { const n = "placeholder-" + Math.random().toString().slice(2); - return e.then(DCe(n)).then((r) => { - Ow(t, r), RCe(n, r); + return e.then(RCe(n)).then((r) => { + bw(t, r), MCe(n, r); }).catch((r) => { - console.error(r), MCe(n), Ow(t, t); + console.error(r), ZCe(n), bw(t, t); }), `${t}`; -}, A$ = ({ +}, $$ = ({ transform: t, target: e }) => ({ target: e, transform: (n) => { - const r = ECe(n); + const r = DCe(n); if (r) return r; let i = t(n); - return typeof i.then == "function" ? ZCe(n, i) : i; + return typeof i.then == "function" ? LCe(n, i) : i; } -}), LCe = (t, { +}), ICe = (t, { transform: e, target: n -}) => t.replaceAll(n, e), ICe = (t) => (e) => { +}) => t.replaceAll(n, e), NCe = (t) => (e) => { const n = e.renderer.rules.text; e.renderer.rules.text = function(...r) { const i = n(...r); - return t.map(A$).reduce(LCe, i); + return t.map($$).reduce(ICe, i); }; -}, $$ = "custom_role", NCe = ({ +}, P$ = "custom_role", qCe = ({ target: t, transform: e }) => ({ @@ -34143,16 +34143,16 @@ const RCe = (t, e) => { run({ content: r }) { - const i = new this.state.Token($$, "span", 1); + const i = new this.state.Token(P$, "span", 1); return i.content = e(r), [i]; } } -}), qCe = (t) => t.map(A$).map(NCe).reduce((e, { +}), BCe = (t) => t.map($$).map(qCe).reduce((e, { name: n, role: r -}) => (e[n] = r, e), {}), BCe = (t) => (e) => { - const n = qCe(t); - e.renderer.rules[$$] = (r, i) => r[i].content, e.use(AA, { +}) => (e[n] = r, e), {}), YCe = (t) => (e) => { + const n = BCe(t); + e.renderer.rules[P$] = (r, i) => r[i].content, e.use($A, { roles: n }); }; @@ -34164,12 +34164,12 @@ function Ar(t) { return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e; }, Ar(t); } -function Hp(t, e) { - return Hp = Object.setPrototypeOf || function(r, i) { +function Kp(t, e) { + return Kp = Object.setPrototypeOf || function(r, i) { return r.__proto__ = i, r; - }, Hp(t, e); + }, Kp(t, e); } -function YCe() { +function XCe() { if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham) return !1; if (typeof Proxy == "function") @@ -34182,47 +34182,47 @@ function YCe() { } } function kc(t, e, n) { - return YCe() ? kc = Reflect.construct : kc = function(i, s, o) { + return XCe() ? kc = Reflect.construct : kc = function(i, s, o) { var l = [null]; l.push.apply(l, s); var a = Function.bind.apply(i, l), c = new a(); - return o && Hp(c, o.prototype), c; + return o && Kp(c, o.prototype), c; }, kc.apply(null, arguments); } function ln(t) { - return XCe(t) || WCe(t) || VCe(t) || jCe(); + return WCe(t) || VCe(t) || jCe(t) || zCe(); } -function XCe(t) { +function WCe(t) { if (Array.isArray(t)) - return Kp(t); + return Jp(t); } -function WCe(t) { +function VCe(t) { if (typeof Symbol < "u" && t[Symbol.iterator] != null || t["@@iterator"] != null) return Array.from(t); } -function VCe(t, e) { +function jCe(t, e) { if (!!t) { if (typeof t == "string") - return Kp(t, e); + return Jp(t, e); var n = Object.prototype.toString.call(t).slice(8, -1); if (n === "Object" && t.constructor && (n = t.constructor.name), n === "Map" || n === "Set") return Array.from(t); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) - return Kp(t, e); + return Jp(t, e); } } -function Kp(t, e) { +function Jp(t, e) { (e == null || e > t.length) && (e = t.length); for (var n = 0, r = new Array(e); n < e; n++) r[n] = t[n]; return r; } -function jCe() { +function zCe() { 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 zCe = Object.hasOwnProperty, bw = Object.setPrototypeOf, FCe = Object.isFrozen, UCe = Object.getPrototypeOf, GCe = Object.getOwnPropertyDescriptor, wt = Object.freeze, On = Object.seal, HCe = Object.create, P$ = typeof Reflect < "u" && Reflect, vh = P$.apply, Jp = P$.construct; -vh || (vh = function(e, n, r) { +var FCe = Object.hasOwnProperty, yw = Object.setPrototypeOf, UCe = Object.isFrozen, GCe = Object.getPrototypeOf, HCe = Object.getOwnPropertyDescriptor, wt = Object.freeze, On = Object.seal, KCe = Object.create, T$ = typeof Reflect < "u" && Reflect, Sh = T$.apply, eg = T$.construct; +Sh || (Sh = function(e, n, r) { return e.apply(n, r); }); wt || (wt = function(e) { @@ -34231,64 +34231,64 @@ wt || (wt = function(e) { On || (On = function(e) { return e; }); -Jp || (Jp = function(e, n) { +eg || (eg = function(e, n) { return kc(e, ln(n)); }); -var KCe = en(Array.prototype.forEach), yw = en(Array.prototype.pop), bo = en(Array.prototype.push), xc = en(String.prototype.toLowerCase), Ff = en(String.prototype.toString), JCe = en(String.prototype.match), on = en(String.prototype.replace), eAe = en(String.prototype.indexOf), tAe = en(String.prototype.trim), gt = en(RegExp.prototype.test), Uf = nAe(TypeError); +var JCe = en(Array.prototype.forEach), ww = en(Array.prototype.pop), bo = en(Array.prototype.push), xc = en(String.prototype.toLowerCase), Ff = en(String.prototype.toString), eAe = en(String.prototype.match), on = en(String.prototype.replace), tAe = en(String.prototype.indexOf), nAe = en(String.prototype.trim), mt = en(RegExp.prototype.test), Uf = rAe(TypeError); function en(t) { return function(e) { for (var n = arguments.length, r = new Array(n > 1 ? n - 1 : 0), i = 1; i < n; i++) r[i - 1] = arguments[i]; - return vh(t, e, r); + return Sh(t, e, r); }; } -function nAe(t) { +function rAe(t) { return function() { for (var e = arguments.length, n = new Array(e), r = 0; r < e; r++) n[r] = arguments[r]; - return Jp(t, n); + return eg(t, n); }; } function ee(t, e, n) { var r; - n = (r = n) !== null && r !== void 0 ? r : xc, bw && bw(t, null); + n = (r = n) !== null && r !== void 0 ? r : xc, yw && yw(t, null); for (var i = e.length; i--; ) { var s = e[i]; if (typeof s == "string") { var o = n(s); - o !== s && (FCe(e) || (e[i] = o), s = o); + o !== s && (UCe(e) || (e[i] = o), s = o); } t[s] = !0; } return t; } function ri(t) { - var e = HCe(null), n; + var e = KCe(null), n; for (n in t) - vh(zCe, t, [n]) === !0 && (e[n] = t[n]); + Sh(FCe, t, [n]) === !0 && (e[n] = t[n]); return e; } function za(t, e) { for (; t !== null; ) { - var n = GCe(t, e); + var n = HCe(t, e); if (n) { if (n.get) return en(n.get); if (typeof n.value == "function") return en(n.value); } - t = UCe(t); + t = GCe(t); } function r(i) { return console.warn("fallback value for", i), null; } return r; } -var ww = wt(["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"]), Gf = wt(["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"]), Hf = wt(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), rAe = wt(["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"]), Kf = wt(["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"]), iAe = wt(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), kw = wt(["#text"]), xw = wt(["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"]), Jf = wt(["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"]), vw = wt(["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"]), Fa = wt(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), sAe = On(/\{\{[\w\W]*|[\w\W]*\}\}/gm), oAe = On(/<%[\w\W]*|[\w\W]*%>/gm), lAe = On(/\${[\w\W]*}/gm), aAe = On(/^data-[\-\w.\u00B7-\uFFFF]/), cAe = On(/^aria-[\-\w]+$/), hAe = On( +var kw = wt(["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"]), Gf = wt(["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"]), Hf = wt(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), iAe = wt(["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"]), Kf = wt(["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"]), sAe = wt(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), xw = wt(["#text"]), vw = wt(["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"]), Jf = wt(["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"]), Sw = wt(["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"]), Fa = wt(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), oAe = On(/\{\{[\w\W]*|[\w\W]*\}\}/gm), lAe = On(/<%[\w\W]*|[\w\W]*%>/gm), aAe = On(/\${[\w\W]*}/gm), cAe = On(/^data-[\-\w.\u00B7-\uFFFF]/), hAe = On(/^aria-[\-\w]+$/), uAe = On( /^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i -), uAe = On(/^(?:\w+script|data):/i), fAe = On( +), fAe = On(/^(?:\w+script|data):/i), dAe = On( /[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g -), dAe = On(/^html$/i), pAe = function() { +), pAe = On(/^html$/i), gAe = function() { return typeof window > "u" ? null : window; }, mAe = function(e, n) { if (Ar(e) !== "object" || typeof e.createPolicy != "function") @@ -34309,13 +34309,13 @@ var ww = wt(["a", "abbr", "acronym", "address", "area", "article", "aside", "aud return console.warn("TrustedTypes policy " + s + " could not be created."), null; } }; -function T$() { - var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : pAe(), e = function(_) { - return T$(_); +function Q$() { + var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : gAe(), e = function(_) { + return Q$(_); }; if (e.version = "2.4.7", e.removed = [], !t || !t.document || t.document.nodeType !== 9) return e.isSupported = !1, e; - var n = t.document, r = t.document, i = t.DocumentFragment, s = t.HTMLTemplateElement, o = t.Node, l = t.Element, a = t.NodeFilter, c = t.NamedNodeMap, h = c === void 0 ? t.NamedNodeMap || t.MozNamedAttrMap : c, u = t.HTMLFormElement, f = t.DOMParser, d = t.trustedTypes, p = l.prototype, m = za(p, "cloneNode"), g = za(p, "nextSibling"), O = za(p, "childNodes"), b = za(p, "parentNode"); + var n = t.document, r = t.document, i = t.DocumentFragment, s = t.HTMLTemplateElement, o = t.Node, l = t.Element, a = t.NodeFilter, c = t.NamedNodeMap, h = c === void 0 ? t.NamedNodeMap || t.MozNamedAttrMap : c, u = t.HTMLFormElement, f = t.DOMParser, d = t.trustedTypes, p = l.prototype, g = za(p, "cloneNode"), m = za(p, "nextSibling"), O = za(p, "childNodes"), b = za(p, "parentNode"); if (typeof s == "function") { var y = r.createElement("template"); y.content && y.content.ownerDocument && (r = y.content.ownerDocument); @@ -34327,7 +34327,7 @@ function T$() { } var U = {}; e.isSupported = typeof b == "function" && v && v.createHTMLDocument !== void 0 && q !== 9; - var A = sAe, j = oAe, z = lAe, de = aAe, Oe = cAe, Ie = uAe, ge = fAe, pe = hAe, re = null, kt = ee({}, [].concat(ln(ww), ln(Gf), ln(Hf), ln(Kf), ln(kw))), he = null, Tt = ee({}, [].concat(ln(xw), ln(Jf), ln(vw), ln(Fa))), me = Object.seal(Object.create(null, { + var A = oAe, j = lAe, z = aAe, de = cAe, Oe = hAe, Ie = fAe, me = dAe, pe = uAe, re = null, kt = ee({}, [].concat(ln(kw), ln(Gf), ln(Hf), ln(Kf), ln(xw))), ce = null, Tt = ee({}, [].concat(ln(vw), ln(Jf), ln(Sw), ln(Fa))), ge = Object.seal(Object.create(null, { tagNameCheck: { writable: !0, configurable: !1, @@ -34346,30 +34346,30 @@ function T$() { enumerable: !0, value: !1 } - })), Bt = null, rn = null, Zi = !0, yr = !0, sn = !1, Gg = !0, Li = !1, Kr = !1, bu = !1, yu = !1, Ii = !1, Jl = !1, ea = !1, Hg = !0, Kg = !1, M$ = "user-content-", wu = !0, io = !1, Ni = {}, qi = null, Jg = ee({}, ["annotation-xml", "audio", "colgroup", "desc", "foreignobject", "head", "iframe", "math", "mi", "mn", "mo", "ms", "mtext", "noembed", "noframes", "noscript", "plaintext", "script", "style", "svg", "template", "thead", "title", "video", "xmp"]), eO = null, tO = ee({}, ["audio", "video", "img", "source", "image", "track"]), ku = null, nO = ee({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), ta = "http://www.w3.org/1998/Math/MathML", na = "http://www.w3.org/2000/svg", Kn = "http://www.w3.org/1999/xhtml", Bi = Kn, xu = !1, vu = null, Z$ = ee({}, [ta, na, Kn], Ff), Jr, L$ = ["application/xhtml+xml", "text/html"], I$ = "text/html", ze, Yi = null, N$ = r.createElement("form"), rO = function(_) { + })), Bt = null, rn = null, Zi = !0, yr = !0, sn = !1, Hm = !0, Li = !1, Kr = !1, bu = !1, yu = !1, Ii = !1, Jl = !1, ea = !1, Km = !0, Jm = !1, Z$ = "user-content-", wu = !0, io = !1, Ni = {}, qi = null, eO = ee({}, ["annotation-xml", "audio", "colgroup", "desc", "foreignobject", "head", "iframe", "math", "mi", "mn", "mo", "ms", "mtext", "noembed", "noframes", "noscript", "plaintext", "script", "style", "svg", "template", "thead", "title", "video", "xmp"]), tO = null, nO = ee({}, ["audio", "video", "img", "source", "image", "track"]), ku = null, rO = ee({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), ta = "http://www.w3.org/1998/Math/MathML", na = "http://www.w3.org/2000/svg", Kn = "http://www.w3.org/1999/xhtml", Bi = Kn, xu = !1, vu = null, L$ = ee({}, [ta, na, Kn], Ff), Jr, I$ = ["application/xhtml+xml", "text/html"], N$ = "text/html", ze, Yi = null, q$ = r.createElement("form"), iO = function(_) { return _ instanceof RegExp || _ instanceof Function; }, Su = function(_) { - Yi && Yi === _ || ((!_ || Ar(_) !== "object") && (_ = {}), _ = ri(_), Jr = L$.indexOf(_.PARSER_MEDIA_TYPE) === -1 ? Jr = I$ : Jr = _.PARSER_MEDIA_TYPE, ze = Jr === "application/xhtml+xml" ? Ff : xc, re = "ALLOWED_TAGS" in _ ? ee({}, _.ALLOWED_TAGS, ze) : kt, he = "ALLOWED_ATTR" in _ ? ee({}, _.ALLOWED_ATTR, ze) : Tt, vu = "ALLOWED_NAMESPACES" in _ ? ee({}, _.ALLOWED_NAMESPACES, Ff) : Z$, ku = "ADD_URI_SAFE_ATTR" in _ ? ee( - ri(nO), + Yi && Yi === _ || ((!_ || Ar(_) !== "object") && (_ = {}), _ = ri(_), Jr = I$.indexOf(_.PARSER_MEDIA_TYPE) === -1 ? Jr = N$ : Jr = _.PARSER_MEDIA_TYPE, ze = Jr === "application/xhtml+xml" ? Ff : xc, re = "ALLOWED_TAGS" in _ ? ee({}, _.ALLOWED_TAGS, ze) : kt, ce = "ALLOWED_ATTR" in _ ? ee({}, _.ALLOWED_ATTR, ze) : Tt, vu = "ALLOWED_NAMESPACES" in _ ? ee({}, _.ALLOWED_NAMESPACES, Ff) : L$, ku = "ADD_URI_SAFE_ATTR" in _ ? ee( + ri(rO), _.ADD_URI_SAFE_ATTR, ze - ) : nO, eO = "ADD_DATA_URI_TAGS" in _ ? ee( - ri(tO), + ) : rO, tO = "ADD_DATA_URI_TAGS" in _ ? ee( + ri(nO), _.ADD_DATA_URI_TAGS, ze - ) : tO, qi = "FORBID_CONTENTS" in _ ? ee({}, _.FORBID_CONTENTS, ze) : Jg, Bt = "FORBID_TAGS" in _ ? ee({}, _.FORBID_TAGS, ze) : {}, rn = "FORBID_ATTR" in _ ? ee({}, _.FORBID_ATTR, ze) : {}, Ni = "USE_PROFILES" in _ ? _.USE_PROFILES : !1, Zi = _.ALLOW_ARIA_ATTR !== !1, yr = _.ALLOW_DATA_ATTR !== !1, sn = _.ALLOW_UNKNOWN_PROTOCOLS || !1, Gg = _.ALLOW_SELF_CLOSE_IN_ATTR !== !1, Li = _.SAFE_FOR_TEMPLATES || !1, Kr = _.WHOLE_DOCUMENT || !1, Ii = _.RETURN_DOM || !1, Jl = _.RETURN_DOM_FRAGMENT || !1, ea = _.RETURN_TRUSTED_TYPE || !1, yu = _.FORCE_BODY || !1, Hg = _.SANITIZE_DOM !== !1, Kg = _.SANITIZE_NAMED_PROPS || !1, wu = _.KEEP_CONTENT !== !1, io = _.IN_PLACE || !1, pe = _.ALLOWED_URI_REGEXP || pe, Bi = _.NAMESPACE || Kn, me = _.CUSTOM_ELEMENT_HANDLING || {}, _.CUSTOM_ELEMENT_HANDLING && rO(_.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (me.tagNameCheck = _.CUSTOM_ELEMENT_HANDLING.tagNameCheck), _.CUSTOM_ELEMENT_HANDLING && rO(_.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (me.attributeNameCheck = _.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), _.CUSTOM_ELEMENT_HANDLING && typeof _.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (me.allowCustomizedBuiltInElements = _.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), Li && (yr = !1), Jl && (Ii = !0), Ni && (re = ee({}, ln(kw)), he = [], Ni.html === !0 && (ee(re, ww), ee(he, xw)), Ni.svg === !0 && (ee(re, Gf), ee(he, Jf), ee(he, Fa)), Ni.svgFilters === !0 && (ee(re, Hf), ee(he, Jf), ee(he, Fa)), Ni.mathMl === !0 && (ee(re, Kf), ee(he, vw), ee(he, Fa))), _.ADD_TAGS && (re === kt && (re = ri(re)), ee(re, _.ADD_TAGS, ze)), _.ADD_ATTR && (he === Tt && (he = ri(he)), ee(he, _.ADD_ATTR, ze)), _.ADD_URI_SAFE_ATTR && ee(ku, _.ADD_URI_SAFE_ATTR, ze), _.FORBID_CONTENTS && (qi === Jg && (qi = ri(qi)), ee(qi, _.FORBID_CONTENTS, ze)), wu && (re["#text"] = !0), Kr && ee(re, ["html", "head", "body"]), re.table && (ee(re, ["tbody"]), delete Bt.tbody), wt && wt(_), Yi = _); - }, iO = ee({}, ["mi", "mo", "mn", "ms", "mtext"]), sO = ee({}, ["foreignobject", "desc", "title", "annotation-xml"]), q$ = ee({}, ["title", "style", "font", "a", "script"]), ra = ee({}, Gf); - ee(ra, Hf), ee(ra, rAe); + ) : nO, qi = "FORBID_CONTENTS" in _ ? ee({}, _.FORBID_CONTENTS, ze) : eO, Bt = "FORBID_TAGS" in _ ? ee({}, _.FORBID_TAGS, ze) : {}, rn = "FORBID_ATTR" in _ ? ee({}, _.FORBID_ATTR, ze) : {}, Ni = "USE_PROFILES" in _ ? _.USE_PROFILES : !1, Zi = _.ALLOW_ARIA_ATTR !== !1, yr = _.ALLOW_DATA_ATTR !== !1, sn = _.ALLOW_UNKNOWN_PROTOCOLS || !1, Hm = _.ALLOW_SELF_CLOSE_IN_ATTR !== !1, Li = _.SAFE_FOR_TEMPLATES || !1, Kr = _.WHOLE_DOCUMENT || !1, Ii = _.RETURN_DOM || !1, Jl = _.RETURN_DOM_FRAGMENT || !1, ea = _.RETURN_TRUSTED_TYPE || !1, yu = _.FORCE_BODY || !1, Km = _.SANITIZE_DOM !== !1, Jm = _.SANITIZE_NAMED_PROPS || !1, wu = _.KEEP_CONTENT !== !1, io = _.IN_PLACE || !1, pe = _.ALLOWED_URI_REGEXP || pe, Bi = _.NAMESPACE || Kn, ge = _.CUSTOM_ELEMENT_HANDLING || {}, _.CUSTOM_ELEMENT_HANDLING && iO(_.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (ge.tagNameCheck = _.CUSTOM_ELEMENT_HANDLING.tagNameCheck), _.CUSTOM_ELEMENT_HANDLING && iO(_.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (ge.attributeNameCheck = _.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), _.CUSTOM_ELEMENT_HANDLING && typeof _.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (ge.allowCustomizedBuiltInElements = _.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), Li && (yr = !1), Jl && (Ii = !0), Ni && (re = ee({}, ln(xw)), ce = [], Ni.html === !0 && (ee(re, kw), ee(ce, vw)), Ni.svg === !0 && (ee(re, Gf), ee(ce, Jf), ee(ce, Fa)), Ni.svgFilters === !0 && (ee(re, Hf), ee(ce, Jf), ee(ce, Fa)), Ni.mathMl === !0 && (ee(re, Kf), ee(ce, Sw), ee(ce, Fa))), _.ADD_TAGS && (re === kt && (re = ri(re)), ee(re, _.ADD_TAGS, ze)), _.ADD_ATTR && (ce === Tt && (ce = ri(ce)), ee(ce, _.ADD_ATTR, ze)), _.ADD_URI_SAFE_ATTR && ee(ku, _.ADD_URI_SAFE_ATTR, ze), _.FORBID_CONTENTS && (qi === eO && (qi = ri(qi)), ee(qi, _.FORBID_CONTENTS, ze)), wu && (re["#text"] = !0), Kr && ee(re, ["html", "head", "body"]), re.table && (ee(re, ["tbody"]), delete Bt.tbody), wt && wt(_), Yi = _); + }, sO = ee({}, ["mi", "mo", "mn", "ms", "mtext"]), oO = ee({}, ["foreignobject", "desc", "title", "annotation-xml"]), B$ = ee({}, ["title", "style", "font", "a", "script"]), ra = ee({}, Gf); + ee(ra, Hf), ee(ra, iAe); var _u = ee({}, Kf); - ee(_u, iAe); - var B$ = function(_) { + ee(_u, sAe); + var Y$ = function(_) { var $ = b(_); (!$ || !$.tagName) && ($ = { namespaceURI: Bi, tagName: "template" }); var Z = xc(_.tagName), oe = xc($.tagName); - return vu[_.namespaceURI] ? _.namespaceURI === na ? $.namespaceURI === Kn ? Z === "svg" : $.namespaceURI === ta ? Z === "svg" && (oe === "annotation-xml" || iO[oe]) : Boolean(ra[Z]) : _.namespaceURI === ta ? $.namespaceURI === Kn ? Z === "math" : $.namespaceURI === na ? Z === "math" && sO[oe] : Boolean(_u[Z]) : _.namespaceURI === Kn ? $.namespaceURI === na && !sO[oe] || $.namespaceURI === ta && !iO[oe] ? !1 : !_u[Z] && (q$[Z] || !ra[Z]) : !!(Jr === "application/xhtml+xml" && vu[_.namespaceURI]) : !1; + return vu[_.namespaceURI] ? _.namespaceURI === na ? $.namespaceURI === Kn ? Z === "svg" : $.namespaceURI === ta ? Z === "svg" && (oe === "annotation-xml" || sO[oe]) : Boolean(ra[Z]) : _.namespaceURI === ta ? $.namespaceURI === Kn ? Z === "math" : $.namespaceURI === na ? Z === "math" && oO[oe] : Boolean(_u[Z]) : _.namespaceURI === Kn ? $.namespaceURI === na && !oO[oe] || $.namespaceURI === ta && !sO[oe] ? !1 : !_u[Z] && (B$[Z] || !ra[Z]) : !!(Jr === "application/xhtml+xml" && vu[_.namespaceURI]) : !1; }, Jn = function(_) { bo(e.removed, { element: _ @@ -34395,7 +34395,7 @@ function T$() { from: $ }); } - if ($.removeAttribute(_), _ === "is" && !he[_]) + if ($.removeAttribute(_), _ === "is" && !ce[_]) if (Ii || Jl) try { Jn($); @@ -34406,12 +34406,12 @@ function T$() { $.setAttribute(_, ""); } catch { } - }, oO = function(_) { + }, lO = function(_) { var $, Z; if (yu) _ = "" + _; else { - var oe = JCe(_, /^[\r\n\t ]+/); + var oe = eAe(_, /^[\r\n\t ]+/); Z = oe && oe[0]; } Jr === "application/xhtml+xml" && Bi === Kn && (_ = '' + _ + ""); @@ -34430,7 +34430,7 @@ function T$() { } var lt = $.body || $.documentElement; return _ && Z && lt.insertBefore(r.createTextNode(Z), lt.childNodes[0] || null), Bi === Kn ? T.call($, Kr ? "html" : "body")[0] : Kr ? $.documentElement : lt; - }, lO = function(_) { + }, aO = function(_) { return P.call( _.ownerDocument || _, _, @@ -34438,50 +34438,50 @@ function T$() { null, !1 ); - }, Y$ = function(_) { + }, X$ = function(_) { return _ instanceof u && (typeof _.nodeName != "string" || typeof _.textContent != "string" || typeof _.removeChild != "function" || !(_.attributes instanceof h) || typeof _.removeAttribute != "function" || typeof _.setAttribute != "function" || typeof _.namespaceURI != "string" || typeof _.insertBefore != "function" || typeof _.hasChildNodes != "function"); }, so = function(_) { return Ar(o) === "object" ? _ instanceof o : _ && Ar(_) === "object" && typeof _.nodeType == "number" && typeof _.nodeName == "string"; }, er = function(_, $, Z) { - !U[_] || KCe(U[_], function(oe) { + !U[_] || JCe(U[_], function(oe) { oe.call(e, $, Z, Yi); }); - }, aO = function(_) { + }, cO = function(_) { var $; - if (er("beforeSanitizeElements", _, null), Y$(_) || gt(/[\u0080-\uFFFF]/, _.nodeName)) + if (er("beforeSanitizeElements", _, null), X$(_) || mt(/[\u0080-\uFFFF]/, _.nodeName)) return Jn(_), !0; var Z = ze(_.nodeName); if (er("uponSanitizeElement", _, { tagName: Z, allowedTags: re - }), _.hasChildNodes() && !so(_.firstElementChild) && (!so(_.content) || !so(_.content.firstElementChild)) && gt(/<[/\w]/g, _.innerHTML) && gt(/<[/\w]/g, _.textContent) || Z === "select" && gt(/